From 2494f5313fe58b821012ad612e7bfaeb9f0f9e6b Mon Sep 17 00:00:00 2001 From: mwojick-keeper Date: Thu, 5 Mar 2026 15:04:48 -0800 Subject: [PATCH 1/3] add .prettierrc and .git-blame-ignore-revs --- .git-blame-ignore-revs | 0 .prettierrc | 7 +++++++ 2 files changed, 7 insertions(+) create mode 100644 .git-blame-ignore-revs create mode 100644 .prettierrc diff --git a/.git-blame-ignore-revs b/.git-blame-ignore-revs new file mode 100644 index 0000000..e69de29 diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 0000000..4f06c22 --- /dev/null +++ b/.prettierrc @@ -0,0 +1,7 @@ +{ + "singleQuote": true, + "semi": true, + "tabWidth": 4, + "printWidth": 120, + "trailingComma": "es5" +} From 1738772fec746bca5575c5e7d8b0fbd3acad505a Mon Sep 17 00:00:00 2001 From: mwojick-keeper Date: Thu, 5 Mar 2026 15:05:24 -0800 Subject: [PATCH 2/3] run prettier --- .github/workflows/main.yml | 100 +- .github/workflows/publish.npm.yml | 42 +- README.md | 31 +- examples/print-vault-browser/README.md | 4 +- examples/print-vault-browser/package.json | 74 +- .../print-vault-browser/public/index.html | 33 +- .../print-vault-browser/public/manifest.json | 26 +- examples/print-vault-browser/src/App.css | 20 +- examples/print-vault-browser/src/App.tsx | 142 +- examples/print-vault-browser/src/index.css | 15 +- .../print-vault-browser/src/serviceWorker.ts | 198 +- examples/print-vault-browser/tsconfig.json | 40 +- examples/print-vault-node/README.md | 4 +- examples/print-vault-node/package-lock.json | 538 +- examples/print-vault-node/package.json | 38 +- examples/print-vault-node/src/index.ts | 53 +- examples/print-vault-node/tsconfig.json | 18 +- keeperapi/babel.config.js | 7 +- keeperapi/jest.config.js | 23 +- keeperapi/package-lock.json | 29466 +-- keeperapi/package.json | 86 +- keeperapi/rollup.config.js | 59 +- keeperapi/scripts/cleanDistFolder.js | 8 +- keeperapi/setup-jest.ts | 20 +- .../src/__tests__/SyncDownResponseBuilder.ts | 549 +- .../src/__tests__/createUserRequest.test.ts | 75 +- keeperapi/src/__tests__/crypto.test.ts | 92 +- keeperapi/src/__tests__/ecies-test-vectors.ts | 8 +- keeperapi/src/__tests__/endpoint.test.ts | 525 +- .../src/__tests__/getOnsitePublicKey.test.ts | 67 +- keeperapi/src/__tests__/processTeams.test.ts | 148 +- keeperapi/src/__tests__/qrc.test.ts | 17 +- keeperapi/src/__tests__/utils.test.js | 20 +- keeperapi/src/__tests__/vault.test.ts | 4030 +- keeperapi/src/auth.ts | 1232 +- keeperapi/src/browser/asn1hex.ts | 12 +- keeperapi/src/browser/browserWorker.ts | 16 +- keeperapi/src/browser/index.ts | 31 +- keeperapi/src/browser/jsbn.ts | 1362 +- keeperapi/src/browser/platform.ts | 1119 +- keeperapi/src/browser/rng.ts | 2 +- keeperapi/src/browser/rsa.ts | 166 +- keeperapi/src/commands.ts | 298 +- keeperapi/src/company.ts | 8 +- keeperapi/src/configuration.ts | 150 +- keeperapi/src/cryptoWorker.ts | 118 +- keeperapi/src/endpoint.ts | 465 +- keeperapi/src/node/index.ts | 31 +- keeperapi/src/node/platform.ts | 477 +- keeperapi/src/platform.ts | 117 +- keeperapi/src/proto.d.ts | 23133 ++- keeperapi/src/proto.js | 144136 ++++++++------- keeperapi/src/qrc/constants.ts | 16 +- keeperapi/src/qrc/context.ts | 8 +- keeperapi/src/qrc/hpke.ts | 12 +- keeperapi/src/qrc/index.ts | 27 +- keeperapi/src/qrc/mlkem.ts | 15 +- keeperapi/src/qrc/pem.ts | 6 +- keeperapi/src/qrc/utils.ts | 10 +- keeperapi/src/restMessages.ts | 1112 +- keeperapi/src/socket.ts | 296 +- keeperapi/src/transmissionKeys.ts | 76 +- keeperapi/src/utils.ts | 105 +- keeperapi/src/vault.ts | 1288 +- keeperapi/src/vendorModel.ts | 1 - keeperapi/tsconfig.json | 28 +- keeperapi/tsconfig.rollup.json | 22 +- package-lock.json | 8 +- 68 files changed, 113346 insertions(+), 99133 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index acb5216..96296ca 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -3,53 +3,53 @@ name: Audit on: [push] jobs: - audit: - name: Audit Project - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v3 - - - name: Setup Node - uses: actions/setup-node@v4 - with: - node-version: '24' - - - name: Lib - Install - run: npm i - working-directory: ./keeperapi - env: - NPM_TOKEN: "" - - - name: Lib - Build - run: npm run build - working-directory: ./keeperapi - env: - NPM_TOKEN: "" - - - name: Lib - Check Types - run: npm run types:ci - working-directory: ./keeperapi - env: - NPM_TOKEN: "" - - - name: Lib - Run Unit Tests - run: npm run test - working-directory: ./keeperapi - - - name: Examples (node) - Installation - run: npm run link-local - working-directory: ./examples/print-vault-node - - - name: Examples (node) - Check Types - run: npm run types:ci - working-directory: ./examples/print-vault-node - - - name: Examples (browser) - Installation - run: npm run link-local - working-directory: ./examples/print-vault-browser - - - name: Examples (browser) - Check Types - run: npm run types:ci - working-directory: ./examples/print-vault-browser + audit: + name: Audit Project + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - name: Setup Node + uses: actions/setup-node@v4 + with: + node-version: '24' + + - name: Lib - Install + run: npm i + working-directory: ./keeperapi + env: + NPM_TOKEN: '' + + - name: Lib - Build + run: npm run build + working-directory: ./keeperapi + env: + NPM_TOKEN: '' + + - name: Lib - Check Types + run: npm run types:ci + working-directory: ./keeperapi + env: + NPM_TOKEN: '' + + - name: Lib - Run Unit Tests + run: npm run test + working-directory: ./keeperapi + + - name: Examples (node) - Installation + run: npm run link-local + working-directory: ./examples/print-vault-node + + - name: Examples (node) - Check Types + run: npm run types:ci + working-directory: ./examples/print-vault-node + + - name: Examples (browser) - Installation + run: npm run link-local + working-directory: ./examples/print-vault-browser + + - name: Examples (browser) - Check Types + run: npm run types:ci + working-directory: ./examples/print-vault-browser diff --git a/.github/workflows/publish.npm.yml b/.github/workflows/publish.npm.yml index 9fc66b2..d6de0e7 100644 --- a/.github/workflows/publish.npm.yml +++ b/.github/workflows/publish.npm.yml @@ -1,32 +1,32 @@ name: Publish to NPM on: - workflow_dispatch: + workflow_dispatch: permissions: - contents: read - id-token: write + contents: read + id-token: write jobs: - publish-npm: - environment: prod - runs-on: ubuntu-latest + publish-npm: + environment: prod + runs-on: ubuntu-latest - defaults: - run: - working-directory: ./keeperapi + defaults: + run: + working-directory: ./keeperapi - steps: - - name: Get the source code - uses: actions/checkout@v4 + steps: + - name: Get the source code + uses: actions/checkout@v4 - - name: Setup Node - uses: actions/setup-node@v4 - with: - node-version: '24' - registry-url: 'https://registry.npmjs.org' + - name: Setup Node + uses: actions/setup-node@v4 + with: + node-version: '24' + registry-url: 'https://registry.npmjs.org' - - name: Install dependencies - run: npm install + - name: Install dependencies + run: npm install - - name: Publish package - run: npm publish + - name: Publish package + run: npm publish diff --git a/README.md b/README.md index c424d7a..be5351b 100644 --- a/README.md +++ b/README.md @@ -15,27 +15,28 @@ npm install keeperapi ``` ```typescript - try { - let auth = new Auth({ - host: KeeperEnvironment.DEV - }); - await auth.login(username, password); - console.log("login successful"); - let vault = new Vault(auth); - await vault.syncDown(); - vault.records.forEach(x => console.log(JSON.stringify(x))); - } catch (e) { - console.log(e); - } +try { + let auth = new Auth({ + host: KeeperEnvironment.DEV, + }); + await auth.login(username, password); + console.log('login successful'); + let vault = new Vault(auth); + await vault.syncDown(); + vault.records.forEach((x) => console.log(JSON.stringify(x))); +} catch (e) { + console.log(e); +} ``` -For local development, +For local development, ```bash npm run build ``` - from "keeperapi" folder, then - + +from "keeperapi" folder, then + ```bash npm link ../../keeperapi ``` diff --git a/examples/print-vault-browser/README.md b/examples/print-vault-browser/README.md index 7d67074..ceb59ac 100644 --- a/examples/print-vault-browser/README.md +++ b/examples/print-vault-browser/README.md @@ -1,8 +1,10 @@ # print-vault-browser ### INSTRUCTIONS + - `npm install` - `npm start` ### NOTES -- By default, the `preinstall` script links the installed version of `keeperapi` to the local version in this repo \ No newline at end of file + +- By default, the `preinstall` script links the installed version of `keeperapi` to the local version in this repo diff --git a/examples/print-vault-browser/package.json b/examples/print-vault-browser/package.json index 0b08ecb..adc74a8 100644 --- a/examples/print-vault-browser/package.json +++ b/examples/print-vault-browser/package.json @@ -1,39 +1,39 @@ { - "name": "print-vault-browser", - "version": "0.1.0", - "private": true, - "scripts": { - "start": "react-scripts start", - "link-local": "npm link ../../keeperapi", - "types": "tsc --watch", - "types:ci": "tsc" - }, - "dependencies": { - "keeperapi": "0.2.0", - "react": "^16.8.6", - "react-dom": "^16.8.6" - }, - "devDependencies": { - "@types/jest": "24.0.15", - "@types/node": "12.0.8", - "@types/react": "16.8.21", - "@types/react-dom": "16.8.4", - "react-scripts": "3.0.1", - "typescript": "^4.0.1" - }, - "eslintConfig": { - "extends": "react-app" - }, - "browserslist": { - "production": [ - ">0.2%", - "not dead", - "not op_mini all" - ], - "development": [ - "last 1 chrome version", - "last 1 firefox version", - "last 1 safari version" - ] - } + "name": "print-vault-browser", + "version": "0.1.0", + "private": true, + "scripts": { + "start": "react-scripts start", + "link-local": "npm link ../../keeperapi", + "types": "tsc --watch", + "types:ci": "tsc" + }, + "dependencies": { + "keeperapi": "0.2.0", + "react": "^16.8.6", + "react-dom": "^16.8.6" + }, + "devDependencies": { + "@types/jest": "24.0.15", + "@types/node": "12.0.8", + "@types/react": "16.8.21", + "@types/react-dom": "16.8.4", + "react-scripts": "3.0.1", + "typescript": "^4.0.1" + }, + "eslintConfig": { + "extends": "react-app" + }, + "browserslist": { + "production": [ + ">0.2%", + "not dead", + "not op_mini all" + ], + "development": [ + "last 1 chrome version", + "last 1 firefox version", + "last 1 safari version" + ] + } } diff --git a/examples/print-vault-browser/public/index.html b/examples/print-vault-browser/public/index.html index c84141d..15a5604 100644 --- a/examples/print-vault-browser/public/index.html +++ b/examples/print-vault-browser/public/index.html @@ -1,16 +1,16 @@ - + - - - - - - - - - Keeper SDK - Browser - - - -
- - + --> diff --git a/examples/print-vault-browser/public/manifest.json b/examples/print-vault-browser/public/manifest.json index 1f2f141..ccea8eb 100644 --- a/examples/print-vault-browser/public/manifest.json +++ b/examples/print-vault-browser/public/manifest.json @@ -1,15 +1,15 @@ { - "short_name": "React App", - "name": "Create React App Sample", - "icons": [ - { - "src": "favicon.ico", - "sizes": "64x64 32x32 24x24 16x16", - "type": "image/x-icon" - } - ], - "start_url": ".", - "display": "standalone", - "theme_color": "#000000", - "background_color": "#ffffff" + "short_name": "React App", + "name": "Create React App Sample", + "icons": [ + { + "src": "favicon.ico", + "sizes": "64x64 32x32 24x24 16x16", + "type": "image/x-icon" + } + ], + "start_url": ".", + "display": "standalone", + "theme_color": "#000000", + "background_color": "#ffffff" } diff --git a/examples/print-vault-browser/src/App.css b/examples/print-vault-browser/src/App.css index cd0a232..b2c0545 100644 --- a/examples/print-vault-browser/src/App.css +++ b/examples/print-vault-browser/src/App.css @@ -1,24 +1,24 @@ .App { - display: flex; - justify-content: center; + display: flex; + justify-content: center; } form { - margin-top: 5rem; - max-width: 40rem; + margin-top: 5rem; + max-width: 40rem; } input { - min-width: 20rem; - min-height: 1rem; + min-width: 20rem; + min-height: 1rem; } button { - margin-top: 2rem; - width: 5rem; - height: 2rem; + margin-top: 2rem; + width: 5rem; + height: 2rem; } .data { - margin-top: 5rem; + margin-top: 5rem; } diff --git a/examples/print-vault-browser/src/App.tsx b/examples/print-vault-browser/src/App.tsx index 4730568..e115ae2 100644 --- a/examples/print-vault-browser/src/App.tsx +++ b/examples/print-vault-browser/src/App.tsx @@ -1,6 +1,14 @@ -import React, {Component} from 'react' -import './App.css' -import {Auth, AuthUI, KeeperEnvironment, syncDown, VaultStorage, DRecord, Authentication} from '@keeper-security/keeperapi' +import React, { Component } from 'react'; +import './App.css'; +import { + Auth, + AuthUI, + KeeperEnvironment, + syncDown, + VaultStorage, + DRecord, + Authentication, +} from '@keeper-security/keeperapi'; import LoginType = Authentication.LoginType; interface AppState { @@ -11,112 +19,118 @@ interface AppState { } class App extends Component<{}, AppState> implements AuthUI { - private readonly userName: React.RefObject - private readonly password: React.RefObject - private readonly twoFactorCode: React.RefObject - private twoFactorPromise: Promise - private twoFactorResolve?: (value: (PromiseLike | string)) => void + private readonly userName: React.RefObject; + private readonly password: React.RefObject; + private readonly twoFactorCode: React.RefObject; + private twoFactorPromise: Promise; + private twoFactorResolve?: (value: PromiseLike | string) => void; constructor(props: {}) { - super(props) - this.userName = React.createRef() - this.password = React.createRef() - this.twoFactorCode = React.createRef() - this.twoFactorPromise = new Promise((resolve => { - this.twoFactorResolve = resolve - })) + super(props); + this.userName = React.createRef(); + this.password = React.createRef(); + this.twoFactorCode = React.createRef(); + this.twoFactorPromise = new Promise((resolve) => { + this.twoFactorResolve = resolve; + }); this.state = { status: [], records: [], twoFactor: false, - loggedIn: false - } + loggedIn: false, + }; } displayDialog(): Promise { - return Promise.resolve(false) + return Promise.resolve(false); } getTwoFactorCode(): Promise { - let newState = {...this.state} - newState.status.push('Awaiting Two Factor...') - newState.twoFactor = true - this.setState(newState) - return this.twoFactorPromise + let newState = { ...this.state }; + newState.status.push('Awaiting Two Factor...'); + newState.twoFactor = true; + this.setState(newState); + return this.twoFactorPromise; } async submit(e: any) { - e.preventDefault() + e.preventDefault(); try { - let auth = new Auth({host: KeeperEnvironment.DEV, authUI: this}) - let newState = {...this.state} - newState.status.push('Logging In...') - this.setState(newState) - await auth.loginV3({ username: this.userName.current['value'], password: this.password.current['value'], loginType: LoginType.NORMAL}) - newState = {...this.state} - newState.status.push('Logged In, querying records...') - newState.loggedIn = true - this.setState(newState) - const records = [] as DRecord[] - const storage = {} as VaultStorage + let auth = new Auth({ host: KeeperEnvironment.DEV, authUI: this }); + let newState = { ...this.state }; + newState.status.push('Logging In...'); + this.setState(newState); + await auth.loginV3({ + username: this.userName.current['value'], + password: this.password.current['value'], + loginType: LoginType.NORMAL, + }); + newState = { ...this.state }; + newState.status.push('Logged In, querying records...'); + newState.loggedIn = true; + this.setState(newState); + const records = [] as DRecord[]; + const storage = {} as VaultStorage; await syncDown({ - auth, - storage, - }) - newState = {...this.state} - newState.records = [...records.map(x => JSON.stringify(x))] - this.setState(newState) + auth, + storage, + }); + newState = { ...this.state }; + newState.records = [...records.map((x) => JSON.stringify(x))]; + this.setState(newState); } catch (e) { - console.log(e) + console.log(e); } } async submit2fa(e: any) { - e.preventDefault() - let newState = {...this.state} - newState.status.push('Continue with Two Factor...') - this.setState(newState) - this.twoFactorResolve!(this.twoFactorCode.current['value']) + e.preventDefault(); + let newState = { ...this.state }; + newState.status.push('Continue with Two Factor...'); + this.setState(newState); + this.twoFactorResolve!(this.twoFactorCode.current['value']); } render() { return (
- { - !this.state.loggedIn && !this.state.twoFactor && -
this.submit(e)}> + {!this.state.loggedIn && !this.state.twoFactor && ( + this.submit(e)}>
username:
- +
-
+
password:
- +
- } - { - !this.state.loggedIn && this.state.twoFactor && -
this.submit2fa(e)}> + )} + {!this.state.loggedIn && this.state.twoFactor && ( + this.submit2fa(e)}>
Enter Code:
- +
- } -
+ )} +
- {this.state.status.map((x, i) =>
{x}
)} - {this.state.records.map((x, i) =>
{x}
)} + {this.state.status.map((x, i) => ( +
{x}
+ ))} + {this.state.records.map((x, i) => ( +
{x}
+ ))}
- ) + ); } } -export default App +export default App; diff --git a/examples/print-vault-browser/src/index.css b/examples/print-vault-browser/src/index.css index ec2585e..4b90428 100644 --- a/examples/print-vault-browser/src/index.css +++ b/examples/print-vault-browser/src/index.css @@ -1,13 +1,12 @@ body { - margin: 0; - font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', - 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', - sans-serif; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; + margin: 0; + font-family: + -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', + 'Droid Sans', 'Helvetica Neue', sans-serif; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; } code { - font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', - monospace; + font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', monospace; } diff --git a/examples/print-vault-browser/src/serviceWorker.ts b/examples/print-vault-browser/src/serviceWorker.ts index 15d90cb..14b6e0f 100644 --- a/examples/print-vault-browser/src/serviceWorker.ts +++ b/examples/print-vault-browser/src/serviceWorker.ts @@ -11,133 +11,123 @@ // opt-in, read https://bit.ly/CRA-PWA const isLocalhost = Boolean( - window.location.hostname === 'localhost' || + window.location.hostname === 'localhost' || // [::1] is the IPv6 localhost address. window.location.hostname === '[::1]' || // 127.0.0.1/8 is considered localhost for IPv4. - window.location.hostname.match( - /^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/ - ) + window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/) ); type Config = { - onSuccess?: (registration: ServiceWorkerRegistration) => void; - onUpdate?: (registration: ServiceWorkerRegistration) => void; + onSuccess?: (registration: ServiceWorkerRegistration) => void; + onUpdate?: (registration: ServiceWorkerRegistration) => void; }; export function register(config?: Config) { - if (process.env.NODE_ENV === 'production' && 'serviceWorker' in navigator) { - // The URL constructor is available in all browsers that support SW. - const publicUrl = new URL( - (process as { env: { [key: string]: string } }).env.PUBLIC_URL, - window.location.href - ); - if (publicUrl.origin !== window.location.origin) { - // Our service worker won't work if PUBLIC_URL is on a different origin - // from what our page is served on. This might happen if a CDN is used to - // serve assets; see https://github.com/facebook/create-react-app/issues/2374 - return; - } + if (process.env.NODE_ENV === 'production' && 'serviceWorker' in navigator) { + // The URL constructor is available in all browsers that support SW. + const publicUrl = new URL((process as { env: { [key: string]: string } }).env.PUBLIC_URL, window.location.href); + if (publicUrl.origin !== window.location.origin) { + // Our service worker won't work if PUBLIC_URL is on a different origin + // from what our page is served on. This might happen if a CDN is used to + // serve assets; see https://github.com/facebook/create-react-app/issues/2374 + return; + } - window.addEventListener('load', () => { - const swUrl = `${process.env.PUBLIC_URL}/service-worker.js`; + window.addEventListener('load', () => { + const swUrl = `${process.env.PUBLIC_URL}/service-worker.js`; - if (isLocalhost) { - // This is running on localhost. Let's check if a service worker still exists or not. - checkValidServiceWorker(swUrl, config); + if (isLocalhost) { + // This is running on localhost. Let's check if a service worker still exists or not. + checkValidServiceWorker(swUrl, config); - // Add some additional logging to localhost, pointing developers to the - // service worker/PWA documentation. - navigator.serviceWorker.ready.then(() => { - console.log( - 'This web app is being served cache-first by a service ' + - 'worker. To learn more, visit https://bit.ly/CRA-PWA' - ); + // Add some additional logging to localhost, pointing developers to the + // service worker/PWA documentation. + navigator.serviceWorker.ready.then(() => { + console.log( + 'This web app is being served cache-first by a service ' + + 'worker. To learn more, visit https://bit.ly/CRA-PWA' + ); + }); + } else { + // Is not localhost. Just register service worker + registerValidSW(swUrl, config); + } }); - } else { - // Is not localhost. Just register service worker - registerValidSW(swUrl, config); - } - }); - } + } } function registerValidSW(swUrl: string, config?: Config) { - navigator.serviceWorker - .register(swUrl) - .then(registration => { - registration.onupdatefound = () => { - const installingWorker = registration.installing; - if (installingWorker == null) { - return; - } - installingWorker.onstatechange = () => { - if (installingWorker.state === 'installed') { - if (navigator.serviceWorker.controller) { - // At this point, the updated precached content has been fetched, - // but the previous service worker will still serve the older - // content until all client tabs are closed. - console.log( - 'New content is available and will be used when all ' + - 'tabs for this page are closed. See https://bit.ly/CRA-PWA.' - ); + navigator.serviceWorker + .register(swUrl) + .then((registration) => { + registration.onupdatefound = () => { + const installingWorker = registration.installing; + if (installingWorker == null) { + return; + } + installingWorker.onstatechange = () => { + if (installingWorker.state === 'installed') { + if (navigator.serviceWorker.controller) { + // At this point, the updated precached content has been fetched, + // but the previous service worker will still serve the older + // content until all client tabs are closed. + console.log( + 'New content is available and will be used when all ' + + 'tabs for this page are closed. See https://bit.ly/CRA-PWA.' + ); - // Execute callback - if (config && config.onUpdate) { - config.onUpdate(registration); - } - } else { - // At this point, everything has been precached. - // It's the perfect time to display a - // "Content is cached for offline use." message. - console.log('Content is cached for offline use.'); + // Execute callback + if (config && config.onUpdate) { + config.onUpdate(registration); + } + } else { + // At this point, everything has been precached. + // It's the perfect time to display a + // "Content is cached for offline use." message. + console.log('Content is cached for offline use.'); - // Execute callback - if (config && config.onSuccess) { - config.onSuccess(registration); - } - } - } - }; - }; - }) - .catch(error => { - console.error('Error during service worker registration:', error); - }); + // Execute callback + if (config && config.onSuccess) { + config.onSuccess(registration); + } + } + } + }; + }; + }) + .catch((error) => { + console.error('Error during service worker registration:', error); + }); } function checkValidServiceWorker(swUrl: string, config?: Config) { - // Check if the service worker can be found. If it can't reload the page. - fetch(swUrl) - .then(response => { - // Ensure service worker exists, and that we really are getting a JS file. - const contentType = response.headers.get('content-type'); - if ( - response.status === 404 || - (contentType != null && contentType.indexOf('javascript') === -1) - ) { - // No service worker found. Probably a different app. Reload the page. - navigator.serviceWorker.ready.then(registration => { - registration.unregister().then(() => { - window.location.reload(); - }); + // Check if the service worker can be found. If it can't reload the page. + fetch(swUrl) + .then((response) => { + // Ensure service worker exists, and that we really are getting a JS file. + const contentType = response.headers.get('content-type'); + if (response.status === 404 || (contentType != null && contentType.indexOf('javascript') === -1)) { + // No service worker found. Probably a different app. Reload the page. + navigator.serviceWorker.ready.then((registration) => { + registration.unregister().then(() => { + window.location.reload(); + }); + }); + } else { + // Service worker found. Proceed as normal. + registerValidSW(swUrl, config); + } + }) + .catch(() => { + console.log('No internet connection found. App is running in offline mode.'); }); - } else { - // Service worker found. Proceed as normal. - registerValidSW(swUrl, config); - } - }) - .catch(() => { - console.log( - 'No internet connection found. App is running in offline mode.' - ); - }); } export function unregister() { - if ('serviceWorker' in navigator) { - navigator.serviceWorker.ready.then(registration => { - registration.unregister(); - }); - } + if ('serviceWorker' in navigator) { + navigator.serviceWorker.ready.then((registration) => { + registration.unregister(); + }); + } } diff --git a/examples/print-vault-browser/tsconfig.json b/examples/print-vault-browser/tsconfig.json index 0980b23..6a0153f 100644 --- a/examples/print-vault-browser/tsconfig.json +++ b/examples/print-vault-browser/tsconfig.json @@ -1,25 +1,19 @@ { - "compilerOptions": { - "target": "es5", - "lib": [ - "dom", - "dom.iterable", - "esnext" - ], - "allowJs": true, - "skipLibCheck": true, - "esModuleInterop": true, - "allowSyntheticDefaultImports": true, - "strict": true, - "forceConsistentCasingInFileNames": true, - "module": "esnext", - "moduleResolution": "node", - "resolveJsonModule": true, - "isolatedModules": true, - "noEmit": true, - "jsx": "preserve" - }, - "include": [ - "src" - ] + "compilerOptions": { + "target": "es5", + "lib": ["dom", "dom.iterable", "esnext"], + "allowJs": true, + "skipLibCheck": true, + "esModuleInterop": true, + "allowSyntheticDefaultImports": true, + "strict": true, + "forceConsistentCasingInFileNames": true, + "module": "esnext", + "moduleResolution": "node", + "resolveJsonModule": true, + "isolatedModules": true, + "noEmit": true, + "jsx": "preserve" + }, + "include": ["src"] } diff --git a/examples/print-vault-node/README.md b/examples/print-vault-node/README.md index c31c03a..bccb508 100644 --- a/examples/print-vault-node/README.md +++ b/examples/print-vault-node/README.md @@ -1,8 +1,10 @@ # print-vault-node ### INSTRUCTIONS + - `npm install` - `npm start` ### NOTES -- By default, the `preinstall` script links the installed version of `keeperapi` to the local version in this repo \ No newline at end of file + +- By default, the `preinstall` script links the installed version of `keeperapi` to the local version in this repo diff --git a/examples/print-vault-node/package-lock.json b/examples/print-vault-node/package-lock.json index 186f58a..1f15516 100644 --- a/examples/print-vault-node/package-lock.json +++ b/examples/print-vault-node/package-lock.json @@ -1,274 +1,274 @@ { - "name": "print-vault-node", - "lockfileVersion": 2, - "requires": true, - "packages": { - "": { - "name": "print-vault-node", - "license": "ISC", - "dependencies": { - "@types/node": "^17.0.25", - "ts-node": "^10.7.0", - "typescript": "^4.6.3" - } - }, - "node_modules/@cspotcode/source-map-consumer": { - "version": "0.8.0", - "resolved": "https://registry.npmjs.org/@cspotcode/source-map-consumer/-/source-map-consumer-0.8.0.tgz", - "integrity": "sha512-41qniHzTU8yAGbCp04ohlmSrZf8bkf/iJsl3V0dRGsQN/5GFfx+LbCSsCpp2gqrqjTVg/K6O8ycoV35JIwAzAg==", - "engines": { - "node": ">= 12" - } - }, - "node_modules/@cspotcode/source-map-support": { - "version": "0.7.0", - "resolved": "https://registry.npmjs.org/@cspotcode/source-map-support/-/source-map-support-0.7.0.tgz", - "integrity": "sha512-X4xqRHqN8ACt2aHVe51OxeA2HjbcL4MqFqXkrmQszJ1NOUuUu5u6Vqx/0lZSVNku7velL5FC/s5uEAj1lsBMhA==", - "dependencies": { - "@cspotcode/source-map-consumer": "0.8.0" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/@tsconfig/node10": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/@tsconfig/node10/-/node10-1.0.8.tgz", - "integrity": "sha512-6XFfSQmMgq0CFLY1MslA/CPUfhIL919M1rMsa5lP2P097N2Wd1sSX0tx1u4olM16fLNhtHZpRhedZJphNJqmZg==" - }, - "node_modules/@tsconfig/node12": { - "version": "1.0.9", - "resolved": "https://registry.npmjs.org/@tsconfig/node12/-/node12-1.0.9.tgz", - "integrity": "sha512-/yBMcem+fbvhSREH+s14YJi18sp7J9jpuhYByADT2rypfajMZZN4WQ6zBGgBKp53NKmqI36wFYDb3yaMPurITw==" - }, - "node_modules/@tsconfig/node14": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@tsconfig/node14/-/node14-1.0.1.tgz", - "integrity": "sha512-509r2+yARFfHHE7T6Puu2jjkoycftovhXRqW328PDXTVGKihlb1P8Z9mMZH04ebyajfRY7dedfGynlrFHJUQCg==" - }, - "node_modules/@tsconfig/node16": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/@tsconfig/node16/-/node16-1.0.2.tgz", - "integrity": "sha512-eZxlbI8GZscaGS7kkc/trHTT5xgrjH3/1n2JDwusC9iahPKWMRvRjJSAN5mCXviuTGQ/lHnhvv8Q1YTpnfz9gA==" - }, - "node_modules/@types/node": { - "version": "17.0.25", - "resolved": "https://registry.npmjs.org/@types/node/-/node-17.0.25.tgz", - "integrity": "sha512-wANk6fBrUwdpY4isjWrKTufkrXdu1D2YHCot2fD/DfWxF5sMrVSA+KN7ydckvaTCh0HiqX9IVl0L5/ZoXg5M7w==" - }, - "node_modules/acorn": { - "version": "8.7.0", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.7.0.tgz", - "integrity": "sha512-V/LGr1APy+PXIwKebEWrkZPwoeoF+w1jiOBUmuxuiUIaOHtob8Qc9BTrYo7VuI5fR8tqsy+buA2WFooR5olqvQ==", - "bin": { - "acorn": "bin/acorn" - }, - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/acorn-walk": { - "version": "8.2.0", - "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.2.0.tgz", - "integrity": "sha512-k+iyHEuPgSw6SbuDpGQM+06HQUa04DZ3o+F6CSzXMvvI5KMvnaEqXe+YVe555R9nn6GPt404fos4wcgpw12SDA==", - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/arg": { - "version": "4.1.3", - "resolved": "https://registry.npmjs.org/arg/-/arg-4.1.3.tgz", - "integrity": "sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==" - }, - "node_modules/create-require": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz", - "integrity": "sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==" - }, - "node_modules/diff": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", - "integrity": "sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==", - "engines": { - "node": ">=0.3.1" - } - }, - "node_modules/make-error": { - "version": "1.3.6", - "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz", - "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==" - }, - "node_modules/ts-node": { - "version": "10.7.0", - "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-10.7.0.tgz", - "integrity": "sha512-TbIGS4xgJoX2i3do417KSaep1uRAW/Lu+WAL2doDHC0D6ummjirVOXU5/7aiZotbQ5p1Zp9tP7U6cYhA0O7M8A==", - "dependencies": { - "@cspotcode/source-map-support": "0.7.0", - "@tsconfig/node10": "^1.0.7", - "@tsconfig/node12": "^1.0.7", - "@tsconfig/node14": "^1.0.0", - "@tsconfig/node16": "^1.0.2", - "acorn": "^8.4.1", - "acorn-walk": "^8.1.1", - "arg": "^4.1.0", - "create-require": "^1.1.0", - "diff": "^4.0.1", - "make-error": "^1.1.1", - "v8-compile-cache-lib": "^3.0.0", - "yn": "3.1.1" - }, - "bin": { - "ts-node": "dist/bin.js", - "ts-node-cwd": "dist/bin-cwd.js", - "ts-node-esm": "dist/bin-esm.js", - "ts-node-script": "dist/bin-script.js", - "ts-node-transpile-only": "dist/bin-transpile.js", - "ts-script": "dist/bin-script-deprecated.js" - }, - "peerDependencies": { - "@swc/core": ">=1.2.50", - "@swc/wasm": ">=1.2.50", - "@types/node": "*", - "typescript": ">=2.7" - }, - "peerDependenciesMeta": { - "@swc/core": { - "optional": true - }, - "@swc/wasm": { - "optional": true + "name": "print-vault-node", + "lockfileVersion": 2, + "requires": true, + "packages": { + "": { + "name": "print-vault-node", + "license": "ISC", + "dependencies": { + "@types/node": "^17.0.25", + "ts-node": "^10.7.0", + "typescript": "^4.6.3" + } + }, + "node_modules/@cspotcode/source-map-consumer": { + "version": "0.8.0", + "resolved": "https://registry.npmjs.org/@cspotcode/source-map-consumer/-/source-map-consumer-0.8.0.tgz", + "integrity": "sha512-41qniHzTU8yAGbCp04ohlmSrZf8bkf/iJsl3V0dRGsQN/5GFfx+LbCSsCpp2gqrqjTVg/K6O8ycoV35JIwAzAg==", + "engines": { + "node": ">= 12" + } + }, + "node_modules/@cspotcode/source-map-support": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/@cspotcode/source-map-support/-/source-map-support-0.7.0.tgz", + "integrity": "sha512-X4xqRHqN8ACt2aHVe51OxeA2HjbcL4MqFqXkrmQszJ1NOUuUu5u6Vqx/0lZSVNku7velL5FC/s5uEAj1lsBMhA==", + "dependencies": { + "@cspotcode/source-map-consumer": "0.8.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/@tsconfig/node10": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/@tsconfig/node10/-/node10-1.0.8.tgz", + "integrity": "sha512-6XFfSQmMgq0CFLY1MslA/CPUfhIL919M1rMsa5lP2P097N2Wd1sSX0tx1u4olM16fLNhtHZpRhedZJphNJqmZg==" + }, + "node_modules/@tsconfig/node12": { + "version": "1.0.9", + "resolved": "https://registry.npmjs.org/@tsconfig/node12/-/node12-1.0.9.tgz", + "integrity": "sha512-/yBMcem+fbvhSREH+s14YJi18sp7J9jpuhYByADT2rypfajMZZN4WQ6zBGgBKp53NKmqI36wFYDb3yaMPurITw==" + }, + "node_modules/@tsconfig/node14": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@tsconfig/node14/-/node14-1.0.1.tgz", + "integrity": "sha512-509r2+yARFfHHE7T6Puu2jjkoycftovhXRqW328PDXTVGKihlb1P8Z9mMZH04ebyajfRY7dedfGynlrFHJUQCg==" + }, + "node_modules/@tsconfig/node16": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@tsconfig/node16/-/node16-1.0.2.tgz", + "integrity": "sha512-eZxlbI8GZscaGS7kkc/trHTT5xgrjH3/1n2JDwusC9iahPKWMRvRjJSAN5mCXviuTGQ/lHnhvv8Q1YTpnfz9gA==" + }, + "node_modules/@types/node": { + "version": "17.0.25", + "resolved": "https://registry.npmjs.org/@types/node/-/node-17.0.25.tgz", + "integrity": "sha512-wANk6fBrUwdpY4isjWrKTufkrXdu1D2YHCot2fD/DfWxF5sMrVSA+KN7ydckvaTCh0HiqX9IVl0L5/ZoXg5M7w==" + }, + "node_modules/acorn": { + "version": "8.7.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.7.0.tgz", + "integrity": "sha512-V/LGr1APy+PXIwKebEWrkZPwoeoF+w1jiOBUmuxuiUIaOHtob8Qc9BTrYo7VuI5fR8tqsy+buA2WFooR5olqvQ==", + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/acorn-walk": { + "version": "8.2.0", + "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.2.0.tgz", + "integrity": "sha512-k+iyHEuPgSw6SbuDpGQM+06HQUa04DZ3o+F6CSzXMvvI5KMvnaEqXe+YVe555R9nn6GPt404fos4wcgpw12SDA==", + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/arg": { + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/arg/-/arg-4.1.3.tgz", + "integrity": "sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==" + }, + "node_modules/create-require": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz", + "integrity": "sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==" + }, + "node_modules/diff": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", + "integrity": "sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==", + "engines": { + "node": ">=0.3.1" + } + }, + "node_modules/make-error": { + "version": "1.3.6", + "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz", + "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==" + }, + "node_modules/ts-node": { + "version": "10.7.0", + "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-10.7.0.tgz", + "integrity": "sha512-TbIGS4xgJoX2i3do417KSaep1uRAW/Lu+WAL2doDHC0D6ummjirVOXU5/7aiZotbQ5p1Zp9tP7U6cYhA0O7M8A==", + "dependencies": { + "@cspotcode/source-map-support": "0.7.0", + "@tsconfig/node10": "^1.0.7", + "@tsconfig/node12": "^1.0.7", + "@tsconfig/node14": "^1.0.0", + "@tsconfig/node16": "^1.0.2", + "acorn": "^8.4.1", + "acorn-walk": "^8.1.1", + "arg": "^4.1.0", + "create-require": "^1.1.0", + "diff": "^4.0.1", + "make-error": "^1.1.1", + "v8-compile-cache-lib": "^3.0.0", + "yn": "3.1.1" + }, + "bin": { + "ts-node": "dist/bin.js", + "ts-node-cwd": "dist/bin-cwd.js", + "ts-node-esm": "dist/bin-esm.js", + "ts-node-script": "dist/bin-script.js", + "ts-node-transpile-only": "dist/bin-transpile.js", + "ts-script": "dist/bin-script-deprecated.js" + }, + "peerDependencies": { + "@swc/core": ">=1.2.50", + "@swc/wasm": ">=1.2.50", + "@types/node": "*", + "typescript": ">=2.7" + }, + "peerDependenciesMeta": { + "@swc/core": { + "optional": true + }, + "@swc/wasm": { + "optional": true + } + } + }, + "node_modules/typescript": { + "version": "4.6.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.6.3.tgz", + "integrity": "sha512-yNIatDa5iaofVozS/uQJEl3JRWLKKGJKh6Yaiv0GLGSuhpFJe7P3SbHZ8/yjAHRQwKRoA6YZqlfjXWmVzoVSMw==", + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=4.2.0" + } + }, + "node_modules/v8-compile-cache-lib": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.1.tgz", + "integrity": "sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==" + }, + "node_modules/yn": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz", + "integrity": "sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==", + "engines": { + "node": ">=6" + } } - } - }, - "node_modules/typescript": { - "version": "4.6.3", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.6.3.tgz", - "integrity": "sha512-yNIatDa5iaofVozS/uQJEl3JRWLKKGJKh6Yaiv0GLGSuhpFJe7P3SbHZ8/yjAHRQwKRoA6YZqlfjXWmVzoVSMw==", - "bin": { - "tsc": "bin/tsc", - "tsserver": "bin/tsserver" - }, - "engines": { - "node": ">=4.2.0" - } }, - "node_modules/v8-compile-cache-lib": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.1.tgz", - "integrity": "sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==" - }, - "node_modules/yn": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz", - "integrity": "sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==", - "engines": { - "node": ">=6" - } - } - }, - "dependencies": { - "@cspotcode/source-map-consumer": { - "version": "0.8.0", - "resolved": "https://registry.npmjs.org/@cspotcode/source-map-consumer/-/source-map-consumer-0.8.0.tgz", - "integrity": "sha512-41qniHzTU8yAGbCp04ohlmSrZf8bkf/iJsl3V0dRGsQN/5GFfx+LbCSsCpp2gqrqjTVg/K6O8ycoV35JIwAzAg==" - }, - "@cspotcode/source-map-support": { - "version": "0.7.0", - "resolved": "https://registry.npmjs.org/@cspotcode/source-map-support/-/source-map-support-0.7.0.tgz", - "integrity": "sha512-X4xqRHqN8ACt2aHVe51OxeA2HjbcL4MqFqXkrmQszJ1NOUuUu5u6Vqx/0lZSVNku7velL5FC/s5uEAj1lsBMhA==", - "requires": { - "@cspotcode/source-map-consumer": "0.8.0" - } - }, - "@tsconfig/node10": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/@tsconfig/node10/-/node10-1.0.8.tgz", - "integrity": "sha512-6XFfSQmMgq0CFLY1MslA/CPUfhIL919M1rMsa5lP2P097N2Wd1sSX0tx1u4olM16fLNhtHZpRhedZJphNJqmZg==" - }, - "@tsconfig/node12": { - "version": "1.0.9", - "resolved": "https://registry.npmjs.org/@tsconfig/node12/-/node12-1.0.9.tgz", - "integrity": "sha512-/yBMcem+fbvhSREH+s14YJi18sp7J9jpuhYByADT2rypfajMZZN4WQ6zBGgBKp53NKmqI36wFYDb3yaMPurITw==" - }, - "@tsconfig/node14": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@tsconfig/node14/-/node14-1.0.1.tgz", - "integrity": "sha512-509r2+yARFfHHE7T6Puu2jjkoycftovhXRqW328PDXTVGKihlb1P8Z9mMZH04ebyajfRY7dedfGynlrFHJUQCg==" - }, - "@tsconfig/node16": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/@tsconfig/node16/-/node16-1.0.2.tgz", - "integrity": "sha512-eZxlbI8GZscaGS7kkc/trHTT5xgrjH3/1n2JDwusC9iahPKWMRvRjJSAN5mCXviuTGQ/lHnhvv8Q1YTpnfz9gA==" - }, - "@types/node": { - "version": "17.0.25", - "resolved": "https://registry.npmjs.org/@types/node/-/node-17.0.25.tgz", - "integrity": "sha512-wANk6fBrUwdpY4isjWrKTufkrXdu1D2YHCot2fD/DfWxF5sMrVSA+KN7ydckvaTCh0HiqX9IVl0L5/ZoXg5M7w==" - }, - "acorn": { - "version": "8.7.0", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.7.0.tgz", - "integrity": "sha512-V/LGr1APy+PXIwKebEWrkZPwoeoF+w1jiOBUmuxuiUIaOHtob8Qc9BTrYo7VuI5fR8tqsy+buA2WFooR5olqvQ==" - }, - "acorn-walk": { - "version": "8.2.0", - "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.2.0.tgz", - "integrity": "sha512-k+iyHEuPgSw6SbuDpGQM+06HQUa04DZ3o+F6CSzXMvvI5KMvnaEqXe+YVe555R9nn6GPt404fos4wcgpw12SDA==" - }, - "arg": { - "version": "4.1.3", - "resolved": "https://registry.npmjs.org/arg/-/arg-4.1.3.tgz", - "integrity": "sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==" - }, - "create-require": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz", - "integrity": "sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==" - }, - "diff": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", - "integrity": "sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==" - }, - "make-error": { - "version": "1.3.6", - "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz", - "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==" - }, - "ts-node": { - "version": "10.7.0", - "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-10.7.0.tgz", - "integrity": "sha512-TbIGS4xgJoX2i3do417KSaep1uRAW/Lu+WAL2doDHC0D6ummjirVOXU5/7aiZotbQ5p1Zp9tP7U6cYhA0O7M8A==", - "requires": { - "@cspotcode/source-map-support": "0.7.0", - "@tsconfig/node10": "^1.0.7", - "@tsconfig/node12": "^1.0.7", - "@tsconfig/node14": "^1.0.0", - "@tsconfig/node16": "^1.0.2", - "acorn": "^8.4.1", - "acorn-walk": "^8.1.1", - "arg": "^4.1.0", - "create-require": "^1.1.0", - "diff": "^4.0.1", - "make-error": "^1.1.1", - "v8-compile-cache-lib": "^3.0.0", - "yn": "3.1.1" - } - }, - "typescript": { - "version": "4.6.3", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.6.3.tgz", - "integrity": "sha512-yNIatDa5iaofVozS/uQJEl3JRWLKKGJKh6Yaiv0GLGSuhpFJe7P3SbHZ8/yjAHRQwKRoA6YZqlfjXWmVzoVSMw==" - }, - "v8-compile-cache-lib": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.1.tgz", - "integrity": "sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==" - }, - "yn": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz", - "integrity": "sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==" + "dependencies": { + "@cspotcode/source-map-consumer": { + "version": "0.8.0", + "resolved": "https://registry.npmjs.org/@cspotcode/source-map-consumer/-/source-map-consumer-0.8.0.tgz", + "integrity": "sha512-41qniHzTU8yAGbCp04ohlmSrZf8bkf/iJsl3V0dRGsQN/5GFfx+LbCSsCpp2gqrqjTVg/K6O8ycoV35JIwAzAg==" + }, + "@cspotcode/source-map-support": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/@cspotcode/source-map-support/-/source-map-support-0.7.0.tgz", + "integrity": "sha512-X4xqRHqN8ACt2aHVe51OxeA2HjbcL4MqFqXkrmQszJ1NOUuUu5u6Vqx/0lZSVNku7velL5FC/s5uEAj1lsBMhA==", + "requires": { + "@cspotcode/source-map-consumer": "0.8.0" + } + }, + "@tsconfig/node10": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/@tsconfig/node10/-/node10-1.0.8.tgz", + "integrity": "sha512-6XFfSQmMgq0CFLY1MslA/CPUfhIL919M1rMsa5lP2P097N2Wd1sSX0tx1u4olM16fLNhtHZpRhedZJphNJqmZg==" + }, + "@tsconfig/node12": { + "version": "1.0.9", + "resolved": "https://registry.npmjs.org/@tsconfig/node12/-/node12-1.0.9.tgz", + "integrity": "sha512-/yBMcem+fbvhSREH+s14YJi18sp7J9jpuhYByADT2rypfajMZZN4WQ6zBGgBKp53NKmqI36wFYDb3yaMPurITw==" + }, + "@tsconfig/node14": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@tsconfig/node14/-/node14-1.0.1.tgz", + "integrity": "sha512-509r2+yARFfHHE7T6Puu2jjkoycftovhXRqW328PDXTVGKihlb1P8Z9mMZH04ebyajfRY7dedfGynlrFHJUQCg==" + }, + "@tsconfig/node16": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@tsconfig/node16/-/node16-1.0.2.tgz", + "integrity": "sha512-eZxlbI8GZscaGS7kkc/trHTT5xgrjH3/1n2JDwusC9iahPKWMRvRjJSAN5mCXviuTGQ/lHnhvv8Q1YTpnfz9gA==" + }, + "@types/node": { + "version": "17.0.25", + "resolved": "https://registry.npmjs.org/@types/node/-/node-17.0.25.tgz", + "integrity": "sha512-wANk6fBrUwdpY4isjWrKTufkrXdu1D2YHCot2fD/DfWxF5sMrVSA+KN7ydckvaTCh0HiqX9IVl0L5/ZoXg5M7w==" + }, + "acorn": { + "version": "8.7.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.7.0.tgz", + "integrity": "sha512-V/LGr1APy+PXIwKebEWrkZPwoeoF+w1jiOBUmuxuiUIaOHtob8Qc9BTrYo7VuI5fR8tqsy+buA2WFooR5olqvQ==" + }, + "acorn-walk": { + "version": "8.2.0", + "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.2.0.tgz", + "integrity": "sha512-k+iyHEuPgSw6SbuDpGQM+06HQUa04DZ3o+F6CSzXMvvI5KMvnaEqXe+YVe555R9nn6GPt404fos4wcgpw12SDA==" + }, + "arg": { + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/arg/-/arg-4.1.3.tgz", + "integrity": "sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==" + }, + "create-require": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz", + "integrity": "sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==" + }, + "diff": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", + "integrity": "sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==" + }, + "make-error": { + "version": "1.3.6", + "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz", + "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==" + }, + "ts-node": { + "version": "10.7.0", + "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-10.7.0.tgz", + "integrity": "sha512-TbIGS4xgJoX2i3do417KSaep1uRAW/Lu+WAL2doDHC0D6ummjirVOXU5/7aiZotbQ5p1Zp9tP7U6cYhA0O7M8A==", + "requires": { + "@cspotcode/source-map-support": "0.7.0", + "@tsconfig/node10": "^1.0.7", + "@tsconfig/node12": "^1.0.7", + "@tsconfig/node14": "^1.0.0", + "@tsconfig/node16": "^1.0.2", + "acorn": "^8.4.1", + "acorn-walk": "^8.1.1", + "arg": "^4.1.0", + "create-require": "^1.1.0", + "diff": "^4.0.1", + "make-error": "^1.1.1", + "v8-compile-cache-lib": "^3.0.0", + "yn": "3.1.1" + } + }, + "typescript": { + "version": "4.6.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.6.3.tgz", + "integrity": "sha512-yNIatDa5iaofVozS/uQJEl3JRWLKKGJKh6Yaiv0GLGSuhpFJe7P3SbHZ8/yjAHRQwKRoA6YZqlfjXWmVzoVSMw==" + }, + "v8-compile-cache-lib": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.1.tgz", + "integrity": "sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==" + }, + "yn": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz", + "integrity": "sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==" + } } - } } diff --git a/examples/print-vault-node/package.json b/examples/print-vault-node/package.json index 320fe2c..4902ee2 100644 --- a/examples/print-vault-node/package.json +++ b/examples/print-vault-node/package.json @@ -1,21 +1,21 @@ { - "name": "print-vault-node", - "description": "Sample utility to print Keeper Vault content", - "author": { - "email": "saldoukhov@keepersecurity.com", - "name": "Sergey Aldoukhov" - }, - "license": "ISC", - "scripts": { - "start": "ts-node src/index.ts", - "link-local": "npm link ../../keeperapi", - "types": "tsc --watch", - "types:ci": "tsc" - }, - "dependencies": { - "@keeper-security/keeperapi": "16.0.5", - "@types/node": "^17.0.25", - "ts-node": "^10.7.0", - "typescript": "^4.6.3" - } + "name": "print-vault-node", + "description": "Sample utility to print Keeper Vault content", + "author": { + "email": "saldoukhov@keepersecurity.com", + "name": "Sergey Aldoukhov" + }, + "license": "ISC", + "scripts": { + "start": "ts-node src/index.ts", + "link-local": "npm link ../../keeperapi", + "types": "tsc --watch", + "types:ci": "tsc" + }, + "dependencies": { + "@keeper-security/keeperapi": "16.0.5", + "@types/node": "^17.0.25", + "ts-node": "^10.7.0", + "typescript": "^4.6.3" + } } diff --git a/examples/print-vault-node/src/index.ts b/examples/print-vault-node/src/index.ts index 795a6ee..9092b96 100644 --- a/examples/print-vault-node/src/index.ts +++ b/examples/print-vault-node/src/index.ts @@ -1,45 +1,40 @@ -import {Auth, KeeperEnvironment, syncDown, VaultStorage, DRecord, Authentication} from '@keeper-security/keeperapi' -import * as readline from 'readline' +import { Auth, KeeperEnvironment, syncDown, VaultStorage, DRecord, Authentication } from '@keeper-security/keeperapi'; +import * as readline from 'readline'; import LoginType = Authentication.LoginType; -process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0' +process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0'; -const clientVersion = 'w16.4.0' +const clientVersion = 'w16.4.0'; async function printVault(username: string, password: string) { try { let auth = new Auth({ host: KeeperEnvironment.DEV, - clientVersion: clientVersion - }) - await auth.loginV3({username, password, loginType: LoginType.NORMAL}) - console.log('login successful') + clientVersion: clientVersion, + }); + await auth.loginV3({ username, password, loginType: LoginType.NORMAL }); + console.log('login successful'); - const records = [] as DRecord[] - const storage = {} as VaultStorage + const records = [] as DRecord[]; + const storage = {} as VaultStorage; await syncDown({ - auth, - storage, - }) - records.forEach(x => console.log(JSON.stringify(x))) + auth, + storage, + }); + records.forEach((x) => console.log(JSON.stringify(x))); } catch (e) { - console.log(e) + console.log(e); } } const rl = readline.createInterface({ input: process.stdin, - output: process.stdout -}) - -rl.question('Username:', username => { - rl.question('Password:', password => { - printVault(username, password).finally() - rl.close() - }) -}) - - - - - + output: process.stdout, +}); + +rl.question('Username:', (username) => { + rl.question('Password:', (password) => { + printVault(username, password).finally(); + rl.close(); + }); +}); diff --git a/examples/print-vault-node/tsconfig.json b/examples/print-vault-node/tsconfig.json index 2a6a53a..c2d099f 100644 --- a/examples/print-vault-node/tsconfig.json +++ b/examples/print-vault-node/tsconfig.json @@ -1,12 +1,10 @@ { - "compilerOptions": { - "module": "commonjs", - "target": "es5", - "sourceMap": true, - "strict": false, - "skipLibCheck": true - }, - "exclude": [ - "node_modules" - ] + "compilerOptions": { + "module": "commonjs", + "target": "es5", + "sourceMap": true, + "strict": false, + "skipLibCheck": true + }, + "exclude": ["node_modules"] } diff --git a/keeperapi/babel.config.js b/keeperapi/babel.config.js index 6546cc9..c1b4e6b 100644 --- a/keeperapi/babel.config.js +++ b/keeperapi/babel.config.js @@ -1,6 +1,3 @@ module.exports = { - "presets": [ - ["@babel/preset-env", {"targets": {"node": "current"}}], - ["@babel/preset-typescript"] - ] -} \ No newline at end of file + presets: [['@babel/preset-env', { targets: { node: 'current' } }], ['@babel/preset-typescript']], +}; diff --git a/keeperapi/jest.config.js b/keeperapi/jest.config.js index aec65aa..0c3dd8a 100644 --- a/keeperapi/jest.config.js +++ b/keeperapi/jest.config.js @@ -1,19 +1,16 @@ module.exports = { - // Only match test files with .test.ts or .test.js extensions - testMatch: [ - "/src/__tests__/**/*.test.ts", - "/src/__tests__/**/*.test.js", - ], + // Only match test files with .test.ts or .test.js extensions + testMatch: ['/src/__tests__/**/*.test.ts', '/src/__tests__/**/*.test.js'], - // Ignore dist folder and node_modules - testPathIgnorePatterns: ["/node_modules/", "/dist/"], + // Ignore dist folder and node_modules + testPathIgnorePatterns: ['/node_modules/', '/dist/'], - // Transform ESM packages from node_modules - transformIgnorePatterns: ["node_modules/(?!@noble/)"], + // Transform ESM packages from node_modules + transformIgnorePatterns: ['node_modules/(?!@noble/)'], - // Module file extensions - moduleFileExtensions: ["ts", "tsx", "js", "jsx", "json", "node"], + // Module file extensions + moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'], - // Setup file to run before each test file - setupFilesAfterEnv: ["/setup-jest.ts"], + // Setup file to run before each test file + setupFilesAfterEnv: ['/setup-jest.ts'], }; diff --git a/keeperapi/package-lock.json b/keeperapi/package-lock.json index 9b60cd1..b0f0406 100644 --- a/keeperapi/package-lock.json +++ b/keeperapi/package-lock.json @@ -1,14899 +1,14899 @@ { - "name": "@keeper-security/keeperapi", - "version": "17.0.7", - "lockfileVersion": 2, - "requires": true, - "packages": { - "": { - "name": "@keeper-security/keeperapi", - "version": "17.0.7", - "license": "ISC", - "dependencies": { - "@noble/post-quantum": "^0.5.2", - "asmcrypto.js": "^2.3.2", - "faye-websocket": "^0.11.3", - "form-data": "^4.0.4", - "node-rsa": "^1.0.8" - }, - "devDependencies": { - "@babel/preset-env": "^7.23.5", - "@babel/preset-typescript": "^7.23.3", - "@rollup/plugin-commonjs": "^22.0.1", - "@rollup/plugin-node-resolve": "^13.3.0", - "@types/jest": "^24.0.15", - "@types/node": "^20.9.1", - "jest": "^29.6.1", - "jest-environment-jsdom": "^29.7.0", - "protobufjs": "^7.2.4", - "protobufjs-cli": "^1.1.1", - "rollup": "^2.79.2", - "rollup-plugin-typescript2": "^0.32.1", - "ts-jest": "^29.1.1", - "ts-node": "^8.10.2", - "typescript": "^4.0.1" - } - }, - "node_modules/@ampproject/remapping": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.2.1.tgz", - "integrity": "sha512-lFMjJTrFL3j7L9yBxwYfCq2k6qqwHyzuUl/XBnif78PWTJYyL/dfowQHWE3sp6U6ZzqWiiIZnpTMO96zhkjwtg==", - "dev": true, - "dependencies": { - "@jridgewell/gen-mapping": "^0.3.0", - "@jridgewell/trace-mapping": "^0.3.9" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@babel/code-frame": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.27.1.tgz", - "integrity": "sha512-cjQ7ZlQ0Mv3b47hABuTevyTuYN4i+loJKGeV9flcCgIK37cCXRh+L1bd3iBHlynerhQ7BhCkn2BPbQUL+rGqFg==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-validator-identifier": "^7.27.1", - "js-tokens": "^4.0.0", - "picocolors": "^1.1.1" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/compat-data": { - "version": "7.23.5", - "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.23.5.tgz", - "integrity": "sha512-uU27kfDRlhfKl+w1U6vp16IuvSLtjAxdArVXPa9BvLkrr7CYIsxH5adpHObeAGY/41+syctUWOZ140a2Rvkgjw==", - "dev": true, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/core": { - "version": "7.22.9", - "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.22.9.tgz", - "integrity": "sha512-G2EgeufBcYw27U4hhoIwFcgc1XU7TlXJ3mv04oOv1WCuo900U/anZSPzEqNjwdjgffkk2Gs0AN0dW1CKVLcG7w==", - "dev": true, - "dependencies": { - "@ampproject/remapping": "^2.2.0", - "@babel/code-frame": "^7.22.5", - "@babel/generator": "^7.22.9", - "@babel/helper-compilation-targets": "^7.22.9", - "@babel/helper-module-transforms": "^7.22.9", - "@babel/helpers": "^7.22.6", - "@babel/parser": "^7.22.7", - "@babel/template": "^7.22.5", - "@babel/traverse": "^7.22.8", - "@babel/types": "^7.22.5", - "convert-source-map": "^1.7.0", - "debug": "^4.1.0", - "gensync": "^1.0.0-beta.2", - "json5": "^2.2.2", - "semver": "^6.3.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/babel" - } - }, - "node_modules/@babel/core/node_modules/convert-source-map": { - "version": "1.9.0", - "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.9.0.tgz", - "integrity": "sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A==", - "dev": true - }, - "node_modules/@babel/generator": { - "version": "7.23.0", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.23.0.tgz", - "integrity": "sha512-lN85QRR+5IbYrMWM6Y4pE/noaQtg4pNiqeNGX60eqOfo6gtEj6uw/JagelB8vVztSd7R6M5n1+PQkDbHbBRU4g==", - "dev": true, - "dependencies": { - "@babel/types": "^7.23.0", - "@jridgewell/gen-mapping": "^0.3.2", - "@jridgewell/trace-mapping": "^0.3.17", - "jsesc": "^2.5.1" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-annotate-as-pure": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.22.5.tgz", - "integrity": "sha512-LvBTxu8bQSQkcyKOU+a1btnNFQ1dMAd0R6PyW3arXes06F6QLWLIrd681bxRPIXlrMGR3XYnW9JyML7dP3qgxg==", - "dev": true, - "dependencies": { - "@babel/types": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-builder-binary-assignment-operator-visitor": { - "version": "7.22.15", - "resolved": "https://registry.npmjs.org/@babel/helper-builder-binary-assignment-operator-visitor/-/helper-builder-binary-assignment-operator-visitor-7.22.15.tgz", - "integrity": "sha512-QkBXwGgaoC2GtGZRoma6kv7Szfv06khvhFav67ZExau2RaXzy8MpHSMO2PNoP2XtmQphJQRHFfg77Bq731Yizw==", - "dev": true, - "dependencies": { - "@babel/types": "^7.22.15" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-compilation-targets": { - "version": "7.22.15", - "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.22.15.tgz", - "integrity": "sha512-y6EEzULok0Qvz8yyLkCvVX+02ic+By2UdOhylwUOvOn9dvYc9mKICJuuU1n1XBI02YWsNsnrY1kc6DVbjcXbtw==", - "dev": true, - "dependencies": { - "@babel/compat-data": "^7.22.9", - "@babel/helper-validator-option": "^7.22.15", - "browserslist": "^4.21.9", - "lru-cache": "^5.1.1", - "semver": "^6.3.1" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-create-class-features-plugin": { - "version": "7.23.5", - "resolved": "https://registry.npmjs.org/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.23.5.tgz", - "integrity": "sha512-QELlRWxSpgdwdJzSJn4WAhKC+hvw/AtHbbrIoncKHkhKKR/luAlKkgBDcri1EzWAo8f8VvYVryEHN4tax/V67A==", - "dev": true, - "dependencies": { - "@babel/helper-annotate-as-pure": "^7.22.5", - "@babel/helper-environment-visitor": "^7.22.20", - "@babel/helper-function-name": "^7.23.0", - "@babel/helper-member-expression-to-functions": "^7.23.0", - "@babel/helper-optimise-call-expression": "^7.22.5", - "@babel/helper-replace-supers": "^7.22.20", - "@babel/helper-skip-transparent-expression-wrappers": "^7.22.5", - "@babel/helper-split-export-declaration": "^7.22.6", - "semver": "^6.3.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/helper-create-regexp-features-plugin": { - "version": "7.22.15", - "resolved": "https://registry.npmjs.org/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.22.15.tgz", - "integrity": "sha512-29FkPLFjn4TPEa3RE7GpW+qbE8tlsu3jntNYNfcGsc49LphF1PQIiD+vMZ1z1xVOKt+93khA9tc2JBs3kBjA7w==", - "dev": true, - "dependencies": { - "@babel/helper-annotate-as-pure": "^7.22.5", - "regexpu-core": "^5.3.1", - "semver": "^6.3.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/helper-define-polyfill-provider": { - "version": "0.4.3", - "resolved": "https://registry.npmjs.org/@babel/helper-define-polyfill-provider/-/helper-define-polyfill-provider-0.4.3.tgz", - "integrity": "sha512-WBrLmuPP47n7PNwsZ57pqam6G/RGo1vw/87b0Blc53tZNGZ4x7YvZ6HgQe2vo1W/FR20OgjeZuGXzudPiXHFug==", - "dev": true, - "dependencies": { - "@babel/helper-compilation-targets": "^7.22.6", - "@babel/helper-plugin-utils": "^7.22.5", - "debug": "^4.1.1", - "lodash.debounce": "^4.0.8", - "resolve": "^1.14.2" - }, - "peerDependencies": { - "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0" - } - }, - "node_modules/@babel/helper-environment-visitor": { - "version": "7.22.20", - "resolved": "https://registry.npmjs.org/@babel/helper-environment-visitor/-/helper-environment-visitor-7.22.20.tgz", - "integrity": "sha512-zfedSIzFhat/gFhWfHtgWvlec0nqB9YEIVrpuwjruLlXfUSnA8cJB0miHKwqDnQ7d32aKo2xt88/xZptwxbfhA==", - "dev": true, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-function-name": { - "version": "7.23.0", - "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.23.0.tgz", - "integrity": "sha512-OErEqsrxjZTJciZ4Oo+eoZqeW9UIiOcuYKRJA4ZAgV9myA+pOXhhmpfNCKjEH/auVfEYVFJ6y1Tc4r0eIApqiw==", - "dev": true, - "dependencies": { - "@babel/template": "^7.22.15", - "@babel/types": "^7.23.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-hoist-variables": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.22.5.tgz", - "integrity": "sha512-wGjk9QZVzvknA6yKIUURb8zY3grXCcOZt+/7Wcy8O2uctxhplmUPkOdlgoNhmdVee2c92JXbf1xpMtVNbfoxRw==", - "dev": true, - "dependencies": { - "@babel/types": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-member-expression-to-functions": { - "version": "7.23.0", - "resolved": "https://registry.npmjs.org/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.23.0.tgz", - "integrity": "sha512-6gfrPwh7OuT6gZyJZvd6WbTfrqAo7vm4xCzAXOusKqq/vWdKXphTpj5klHKNmRUU6/QRGlBsyU9mAIPaWHlqJA==", - "dev": true, - "dependencies": { - "@babel/types": "^7.23.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-module-imports": { - "version": "7.22.15", - "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.22.15.tgz", - "integrity": "sha512-0pYVBnDKZO2fnSPCrgM/6WMc7eS20Fbok+0r88fp+YtWVLZrp4CkafFGIp+W0VKw4a22sgebPT99y+FDNMdP4w==", - "dev": true, - "dependencies": { - "@babel/types": "^7.22.15" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-module-transforms": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.23.3.tgz", - "integrity": "sha512-7bBs4ED9OmswdfDzpz4MpWgSrV7FXlc3zIagvLFjS5H+Mk7Snr21vQ6QwrsoCGMfNC4e4LQPdoULEt4ykz0SRQ==", - "dev": true, - "dependencies": { - "@babel/helper-environment-visitor": "^7.22.20", - "@babel/helper-module-imports": "^7.22.15", - "@babel/helper-simple-access": "^7.22.5", - "@babel/helper-split-export-declaration": "^7.22.6", - "@babel/helper-validator-identifier": "^7.22.20" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/helper-optimise-call-expression": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.22.5.tgz", - "integrity": "sha512-HBwaojN0xFRx4yIvpwGqxiV2tUfl7401jlok564NgB9EHS1y6QT17FmKWm4ztqjeVdXLuC4fSvHc5ePpQjoTbw==", - "dev": true, - "dependencies": { - "@babel/types": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-plugin-utils": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.22.5.tgz", - "integrity": "sha512-uLls06UVKgFG9QD4OeFYLEGteMIAa5kpTPcFL28yuCIIzsf6ZyKZMllKVOCZFhiZ5ptnwX4mtKdWCBE/uT4amg==", - "dev": true, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-remap-async-to-generator": { - "version": "7.22.20", - "resolved": "https://registry.npmjs.org/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.22.20.tgz", - "integrity": "sha512-pBGyV4uBqOns+0UvhsTO8qgl8hO89PmiDYv+/COyp1aeMcmfrfruz+/nCMFiYyFF/Knn0yfrC85ZzNFjembFTw==", - "dev": true, - "dependencies": { - "@babel/helper-annotate-as-pure": "^7.22.5", - "@babel/helper-environment-visitor": "^7.22.20", - "@babel/helper-wrap-function": "^7.22.20" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/helper-replace-supers": { - "version": "7.22.20", - "resolved": "https://registry.npmjs.org/@babel/helper-replace-supers/-/helper-replace-supers-7.22.20.tgz", - "integrity": "sha512-qsW0In3dbwQUbK8kejJ4R7IHVGwHJlV6lpG6UA7a9hSa2YEiAib+N1T2kr6PEeUT+Fl7najmSOS6SmAwCHK6Tw==", - "dev": true, - "dependencies": { - "@babel/helper-environment-visitor": "^7.22.20", - "@babel/helper-member-expression-to-functions": "^7.22.15", - "@babel/helper-optimise-call-expression": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/helper-simple-access": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.22.5.tgz", - "integrity": "sha512-n0H99E/K+Bika3++WNL17POvo4rKWZ7lZEp1Q+fStVbUi8nxPQEBOlTmCOxW/0JsS56SKKQ+ojAe2pHKJHN35w==", - "dev": true, - "dependencies": { - "@babel/types": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-skip-transparent-expression-wrappers": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/helper-skip-transparent-expression-wrappers/-/helper-skip-transparent-expression-wrappers-7.22.5.tgz", - "integrity": "sha512-tK14r66JZKiC43p8Ki33yLBVJKlQDFoA8GYN67lWCDCqoL6EMMSuM9b+Iff2jHaM/RRFYl7K+iiru7hbRqNx8Q==", - "dev": true, - "dependencies": { - "@babel/types": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-split-export-declaration": { - "version": "7.22.6", - "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.22.6.tgz", - "integrity": "sha512-AsUnxuLhRYsisFiaJwvp1QF+I3KjD5FOxut14q/GzovUe6orHLesW2C7d754kRm53h5gqrz6sFl6sxc4BVtE/g==", - "dev": true, - "dependencies": { - "@babel/types": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-string-parser": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.27.1.tgz", - "integrity": "sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-validator-identifier": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.27.1.tgz", - "integrity": "sha512-D2hP9eA+Sqx1kBZgzxZh0y1trbuU+JoDkiEwqhQ36nodYqJwyEIhPSdMNd7lOm/4io72luTPWH20Yda0xOuUow==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-validator-option": { - "version": "7.23.5", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.23.5.tgz", - "integrity": "sha512-85ttAOMLsr53VgXkTbkx8oA6YTfT4q7/HzXSLEYmjcSTJPMPQtvq1BD79Byep5xMUYbGRzEpDsjUf3dyp54IKw==", - "dev": true, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-wrap-function": { - "version": "7.22.20", - "resolved": "https://registry.npmjs.org/@babel/helper-wrap-function/-/helper-wrap-function-7.22.20.tgz", - "integrity": "sha512-pms/UwkOpnQe/PDAEdV/d7dVCoBbB+R4FvYoHGZz+4VPcg7RtYy2KP7S2lbuWM6FCSgob5wshfGESbC/hzNXZw==", - "dev": true, - "dependencies": { - "@babel/helper-function-name": "^7.22.5", - "@babel/template": "^7.22.15", - "@babel/types": "^7.22.19" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helpers": { - "version": "7.27.6", - "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.27.6.tgz", - "integrity": "sha512-muE8Tt8M22638HU31A3CgfSUciwz1fhATfoVai05aPXGor//CdWDCbnlY1yvBPo07njuVOCNGCSp/GTt12lIug==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/template": "^7.27.2", - "@babel/types": "^7.27.6" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/parser": { - "version": "7.28.0", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.28.0.tgz", - "integrity": "sha512-jVZGvOxOuNSsuQuLRTh13nU0AogFlw32w/MT+LV6D3sP5WdbW61E77RnkbaO2dUvmPAYrBDJXGn5gGS6tH4j8g==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/types": "^7.28.0" - }, - "bin": { - "parser": "bin/babel-parser.js" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression/-/plugin-bugfix-safari-id-destructuring-collision-in-function-expression-7.23.3.tgz", - "integrity": "sha512-iRkKcCqb7iGnq9+3G6rZ+Ciz5VywC4XNRHe57lKM+jOeYAoR0lVqdeeDRfh0tQcTfw/+vBhHn926FmQhLtlFLQ==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining/-/plugin-bugfix-v8-spread-parameters-in-optional-chaining-7.23.3.tgz", - "integrity": "sha512-WwlxbfMNdVEpQjZmK5mhm7oSwD3dS6eU+Iwsi4Knl9wAletWem7kaRsGOG+8UEbRyqxY4SS5zvtfXwX+jMxUwQ==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5", - "@babel/helper-skip-transparent-expression-wrappers": "^7.22.5", - "@babel/plugin-transform-optional-chaining": "^7.23.3" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.13.0" - } - }, - "node_modules/@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly/-/plugin-bugfix-v8-static-class-fields-redefine-readonly-7.23.3.tgz", - "integrity": "sha512-XaJak1qcityzrX0/IU5nKHb34VaibwP3saKqG6a/tppelgllOH13LUann4ZCIBcVOeE6H18K4Vx9QKkVww3z/w==", - "dev": true, - "dependencies": { - "@babel/helper-environment-visitor": "^7.22.20", - "@babel/helper-plugin-utils": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/plugin-proposal-private-property-in-object": { - "version": "7.21.0-placeholder-for-preset-env.2", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-private-property-in-object/-/plugin-proposal-private-property-in-object-7.21.0-placeholder-for-preset-env.2.tgz", - "integrity": "sha512-SOSkfJDddaM7mak6cPEpswyTRnuRltl429hMraQEglW+OkovnCzsiszTmsrlY//qLFjCpQDFRvjdm2wA5pPm9w==", - "dev": true, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-async-generators": { - "version": "7.8.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz", - "integrity": "sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.8.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-bigint": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-bigint/-/plugin-syntax-bigint-7.8.3.tgz", - "integrity": "sha512-wnTnFlG+YxQm3vDxpGE57Pj0srRU4sHE/mDkt1qv2YJJSeUAec2ma4WLUnUPeKjyrfntVwe/N6dCXpU+zL3Npg==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.8.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-class-properties": { - "version": "7.12.13", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.12.13.tgz", - "integrity": "sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.12.13" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-class-static-block": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-static-block/-/plugin-syntax-class-static-block-7.14.5.tgz", - "integrity": "sha512-b+YyPmr6ldyNnM6sqYeMWE+bgJcJpO6yS4QD7ymxgH34GBPNDM/THBh8iunyvKIZztiwLH4CJZ0RxTk9emgpjw==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.14.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-dynamic-import": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-dynamic-import/-/plugin-syntax-dynamic-import-7.8.3.tgz", - "integrity": "sha512-5gdGbFon+PszYzqs83S3E5mpi7/y/8M9eC90MRTZfduQOYW76ig6SOSPNe41IG5LoP3FGBn2N0RjVDSQiS94kQ==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.8.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-export-namespace-from": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-export-namespace-from/-/plugin-syntax-export-namespace-from-7.8.3.tgz", - "integrity": "sha512-MXf5laXo6c1IbEbegDmzGPwGNTsHZmEy6QGznu5Sh2UCWvueywb2ee+CCE4zQiZstxU9BMoQO9i6zUFSY0Kj0Q==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.8.3" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-import-assertions": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-assertions/-/plugin-syntax-import-assertions-7.23.3.tgz", - "integrity": "sha512-lPgDSU+SJLK3xmFDTV2ZRQAiM7UuUjGidwBywFavObCiZc1BeAAcMtHJKUya92hPHO+at63JJPLygilZard8jw==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-import-attributes": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-attributes/-/plugin-syntax-import-attributes-7.23.3.tgz", - "integrity": "sha512-pawnE0P9g10xgoP7yKr6CK63K2FMsTE+FZidZO/1PwRdzmAPVs+HS1mAURUsgaoxammTJvULUdIkEK0gOcU2tA==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-import-meta": { - "version": "7.10.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-meta/-/plugin-syntax-import-meta-7.10.4.tgz", - "integrity": "sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.10.4" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-json-strings": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.8.3.tgz", - "integrity": "sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.8.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-jsx": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.23.3.tgz", - "integrity": "sha512-EB2MELswq55OHUoRZLGg/zC7QWUKfNLpE57m/S2yr1uEneIgsTgrSzXP3NXEsMkVn76OlaVVnzN+ugObuYGwhg==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-logical-assignment-operators": { - "version": "7.10.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.10.4.tgz", - "integrity": "sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.10.4" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-nullish-coalescing-operator": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz", - "integrity": "sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.8.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-numeric-separator": { - "version": "7.10.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-numeric-separator/-/plugin-syntax-numeric-separator-7.10.4.tgz", - "integrity": "sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.10.4" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-object-rest-spread": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz", - "integrity": "sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.8.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-optional-catch-binding": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.8.3.tgz", - "integrity": "sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.8.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-optional-chaining": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.3.tgz", - "integrity": "sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.8.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-private-property-in-object": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-private-property-in-object/-/plugin-syntax-private-property-in-object-7.14.5.tgz", - "integrity": "sha512-0wVnp9dxJ72ZUJDV27ZfbSj6iHLoytYZmh3rFcxNnvsJF3ktkzLDZPy/mA17HGsaQT3/DQsWYX1f1QGWkCoVUg==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.14.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-top-level-await": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.14.5.tgz", - "integrity": "sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.14.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-typescript": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.23.3.tgz", - "integrity": "sha512-9EiNjVJOMwCO+43TqoTrgQ8jMwcAd0sWyXi9RPfIsLTj4R2MADDDQXELhffaUx/uJv2AYcxBgPwH6j4TIA4ytQ==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-unicode-sets-regex": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-unicode-sets-regex/-/plugin-syntax-unicode-sets-regex-7.18.6.tgz", - "integrity": "sha512-727YkEAPwSIQTv5im8QHz3upqp92JTWhidIC81Tdx4VJYIte/VndKf1qKrfnnhPLiPghStWfvC/iFaMCQu7Nqg==", - "dev": true, - "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.18.6", - "@babel/helper-plugin-utils": "^7.18.6" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/plugin-transform-arrow-functions": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.23.3.tgz", - "integrity": "sha512-NzQcQrzaQPkaEwoTm4Mhyl8jI1huEL/WWIEvudjTCMJ9aBZNpsJbMASx7EQECtQQPS/DcnFpo0FIh3LvEO9cxQ==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-async-generator-functions": { - "version": "7.23.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-async-generator-functions/-/plugin-transform-async-generator-functions-7.23.4.tgz", - "integrity": "sha512-efdkfPhHYTtn0G6n2ddrESE91fgXxjlqLsnUtPWnJs4a4mZIbUaK7ffqKIIUKXSHwcDvaCVX6GXkaJJFqtX7jw==", - "dev": true, - "dependencies": { - "@babel/helper-environment-visitor": "^7.22.20", - "@babel/helper-plugin-utils": "^7.22.5", - "@babel/helper-remap-async-to-generator": "^7.22.20", - "@babel/plugin-syntax-async-generators": "^7.8.4" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-async-to-generator": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.23.3.tgz", - "integrity": "sha512-A7LFsKi4U4fomjqXJlZg/u0ft/n8/7n7lpffUP/ZULx/DtV9SGlNKZolHH6PE8Xl1ngCc0M11OaeZptXVkfKSw==", - "dev": true, - "dependencies": { - "@babel/helper-module-imports": "^7.22.15", - "@babel/helper-plugin-utils": "^7.22.5", - "@babel/helper-remap-async-to-generator": "^7.22.20" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-block-scoped-functions": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.23.3.tgz", - "integrity": "sha512-vI+0sIaPIO6CNuM9Kk5VmXcMVRiOpDh7w2zZt9GXzmE/9KD70CUEVhvPR/etAeNK/FAEkhxQtXOzVF3EuRL41A==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-block-scoping": { - "version": "7.23.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.23.4.tgz", - "integrity": "sha512-0QqbP6B6HOh7/8iNR4CQU2Th/bbRtBp4KS9vcaZd1fZ0wSh5Fyssg0UCIHwxh+ka+pNDREbVLQnHCMHKZfPwfw==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-class-properties": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-class-properties/-/plugin-transform-class-properties-7.23.3.tgz", - "integrity": "sha512-uM+AN8yCIjDPccsKGlw271xjJtGii+xQIF/uMPS8H15L12jZTsLfF4o5vNO7d/oUguOyfdikHGc/yi9ge4SGIg==", - "dev": true, - "dependencies": { - "@babel/helper-create-class-features-plugin": "^7.22.15", - "@babel/helper-plugin-utils": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-class-static-block": { - "version": "7.23.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-class-static-block/-/plugin-transform-class-static-block-7.23.4.tgz", - "integrity": "sha512-nsWu/1M+ggti1SOALj3hfx5FXzAY06fwPJsUZD4/A5e1bWi46VUIWtD+kOX6/IdhXGsXBWllLFDSnqSCdUNydQ==", - "dev": true, - "dependencies": { - "@babel/helper-create-class-features-plugin": "^7.22.15", - "@babel/helper-plugin-utils": "^7.22.5", - "@babel/plugin-syntax-class-static-block": "^7.14.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.12.0" - } - }, - "node_modules/@babel/plugin-transform-classes": { - "version": "7.23.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-classes/-/plugin-transform-classes-7.23.5.tgz", - "integrity": "sha512-jvOTR4nicqYC9yzOHIhXG5emiFEOpappSJAl73SDSEDcybD+Puuze8Tnpb9p9qEyYup24tq891gkaygIFvWDqg==", - "dev": true, - "dependencies": { - "@babel/helper-annotate-as-pure": "^7.22.5", - "@babel/helper-compilation-targets": "^7.22.15", - "@babel/helper-environment-visitor": "^7.22.20", - "@babel/helper-function-name": "^7.23.0", - "@babel/helper-optimise-call-expression": "^7.22.5", - "@babel/helper-plugin-utils": "^7.22.5", - "@babel/helper-replace-supers": "^7.22.20", - "@babel/helper-split-export-declaration": "^7.22.6", - "globals": "^11.1.0" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-computed-properties": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.23.3.tgz", - "integrity": "sha512-dTj83UVTLw/+nbiHqQSFdwO9CbTtwq1DsDqm3CUEtDrZNET5rT5E6bIdTlOftDTDLMYxvxHNEYO4B9SLl8SLZw==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5", - "@babel/template": "^7.22.15" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-destructuring": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.23.3.tgz", - "integrity": "sha512-n225npDqjDIr967cMScVKHXJs7rout1q+tt50inyBCPkyZ8KxeI6d+GIbSBTT/w/9WdlWDOej3V9HE5Lgk57gw==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-dotall-regex": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.23.3.tgz", - "integrity": "sha512-vgnFYDHAKzFaTVp+mneDsIEbnJ2Np/9ng9iviHw3P/KVcgONxpNULEW/51Z/BaFojG2GI2GwwXck5uV1+1NOYQ==", - "dev": true, - "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.22.15", - "@babel/helper-plugin-utils": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-duplicate-keys": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-duplicate-keys/-/plugin-transform-duplicate-keys-7.23.3.tgz", - "integrity": "sha512-RrqQ+BQmU3Oyav3J+7/myfvRCq7Tbz+kKLLshUmMwNlDHExbGL7ARhajvoBJEvc+fCguPPu887N+3RRXBVKZUA==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-dynamic-import": { - "version": "7.23.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-dynamic-import/-/plugin-transform-dynamic-import-7.23.4.tgz", - "integrity": "sha512-V6jIbLhdJK86MaLh4Jpghi8ho5fGzt3imHOBu/x0jlBaPYqDoWz4RDXjmMOfnh+JWNaQleEAByZLV0QzBT4YQQ==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5", - "@babel/plugin-syntax-dynamic-import": "^7.8.3" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-exponentiation-operator": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.23.3.tgz", - "integrity": "sha512-5fhCsl1odX96u7ILKHBj4/Y8vipoqwsJMh4csSA8qFfxrZDEA4Ssku2DyNvMJSmZNOEBT750LfFPbtrnTP90BQ==", - "dev": true, - "dependencies": { - "@babel/helper-builder-binary-assignment-operator-visitor": "^7.22.15", - "@babel/helper-plugin-utils": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-export-namespace-from": { - "version": "7.23.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-export-namespace-from/-/plugin-transform-export-namespace-from-7.23.4.tgz", - "integrity": "sha512-GzuSBcKkx62dGzZI1WVgTWvkkz84FZO5TC5T8dl/Tht/rAla6Dg/Mz9Yhypg+ezVACf/rgDuQt3kbWEv7LdUDQ==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5", - "@babel/plugin-syntax-export-namespace-from": "^7.8.3" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-for-of": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.23.3.tgz", - "integrity": "sha512-X8jSm8X1CMwxmK878qsUGJRmbysKNbdpTv/O1/v0LuY/ZkZrng5WYiekYSdg9m09OTmDDUWeEDsTE+17WYbAZw==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-function-name": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.23.3.tgz", - "integrity": "sha512-I1QXp1LxIvt8yLaib49dRW5Okt7Q4oaxao6tFVKS/anCdEOMtYwWVKoiOA1p34GOWIZjUK0E+zCp7+l1pfQyiw==", - "dev": true, - "dependencies": { - "@babel/helper-compilation-targets": "^7.22.15", - "@babel/helper-function-name": "^7.23.0", - "@babel/helper-plugin-utils": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-json-strings": { - "version": "7.23.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-json-strings/-/plugin-transform-json-strings-7.23.4.tgz", - "integrity": "sha512-81nTOqM1dMwZ/aRXQ59zVubN9wHGqk6UtqRK+/q+ciXmRy8fSolhGVvG09HHRGo4l6fr/c4ZhXUQH0uFW7PZbg==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5", - "@babel/plugin-syntax-json-strings": "^7.8.3" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-literals": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-literals/-/plugin-transform-literals-7.23.3.tgz", - "integrity": "sha512-wZ0PIXRxnwZvl9AYpqNUxpZ5BiTGrYt7kueGQ+N5FiQ7RCOD4cm8iShd6S6ggfVIWaJf2EMk8eRzAh52RfP4rQ==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-logical-assignment-operators": { - "version": "7.23.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-logical-assignment-operators/-/plugin-transform-logical-assignment-operators-7.23.4.tgz", - "integrity": "sha512-Mc/ALf1rmZTP4JKKEhUwiORU+vcfarFVLfcFiolKUo6sewoxSEgl36ak5t+4WamRsNr6nzjZXQjM35WsU+9vbg==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5", - "@babel/plugin-syntax-logical-assignment-operators": "^7.10.4" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-member-expression-literals": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.23.3.tgz", - "integrity": "sha512-sC3LdDBDi5x96LA+Ytekz2ZPk8i/Ck+DEuDbRAll5rknJ5XRTSaPKEYwomLcs1AA8wg9b3KjIQRsnApj+q51Ag==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-modules-amd": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.23.3.tgz", - "integrity": "sha512-vJYQGxeKM4t8hYCKVBlZX/gtIY2I7mRGFNcm85sgXGMTBcoV3QdVtdpbcWEbzbfUIUZKwvgFT82mRvaQIebZzw==", - "dev": true, - "dependencies": { - "@babel/helper-module-transforms": "^7.23.3", - "@babel/helper-plugin-utils": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-modules-commonjs": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.23.3.tgz", - "integrity": "sha512-aVS0F65LKsdNOtcz6FRCpE4OgsP2OFnW46qNxNIX9h3wuzaNcSQsJysuMwqSibC98HPrf2vCgtxKNwS0DAlgcA==", - "dev": true, - "dependencies": { - "@babel/helper-module-transforms": "^7.23.3", - "@babel/helper-plugin-utils": "^7.22.5", - "@babel/helper-simple-access": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-modules-systemjs": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.23.3.tgz", - "integrity": "sha512-ZxyKGTkF9xT9YJuKQRo19ewf3pXpopuYQd8cDXqNzc3mUNbOME0RKMoZxviQk74hwzfQsEe66dE92MaZbdHKNQ==", - "dev": true, - "dependencies": { - "@babel/helper-hoist-variables": "^7.22.5", - "@babel/helper-module-transforms": "^7.23.3", - "@babel/helper-plugin-utils": "^7.22.5", - "@babel/helper-validator-identifier": "^7.22.20" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-modules-umd": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.23.3.tgz", - "integrity": "sha512-zHsy9iXX2nIsCBFPud3jKn1IRPWg3Ing1qOZgeKV39m1ZgIdpJqvlWVeiHBZC6ITRG0MfskhYe9cLgntfSFPIg==", - "dev": true, - "dependencies": { - "@babel/helper-module-transforms": "^7.23.3", - "@babel/helper-plugin-utils": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-named-capturing-groups-regex": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-named-capturing-groups-regex/-/plugin-transform-named-capturing-groups-regex-7.22.5.tgz", - "integrity": "sha512-YgLLKmS3aUBhHaxp5hi1WJTgOUb/NCuDHzGT9z9WTt3YG+CPRhJs6nprbStx6DnWM4dh6gt7SU3sZodbZ08adQ==", - "dev": true, - "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.22.5", - "@babel/helper-plugin-utils": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/plugin-transform-new-target": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-new-target/-/plugin-transform-new-target-7.23.3.tgz", - "integrity": "sha512-YJ3xKqtJMAT5/TIZnpAR3I+K+WaDowYbN3xyxI8zxx/Gsypwf9B9h0VB+1Nh6ACAAPRS5NSRje0uVv5i79HYGQ==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-nullish-coalescing-operator": { - "version": "7.23.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-nullish-coalescing-operator/-/plugin-transform-nullish-coalescing-operator-7.23.4.tgz", - "integrity": "sha512-jHE9EVVqHKAQx+VePv5LLGHjmHSJR76vawFPTdlxR/LVJPfOEGxREQwQfjuZEOPTwG92X3LINSh3M40Rv4zpVA==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5", - "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-numeric-separator": { - "version": "7.23.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-numeric-separator/-/plugin-transform-numeric-separator-7.23.4.tgz", - "integrity": "sha512-mps6auzgwjRrwKEZA05cOwuDc9FAzoyFS4ZsG/8F43bTLf/TgkJg7QXOrPO1JO599iA3qgK9MXdMGOEC8O1h6Q==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5", - "@babel/plugin-syntax-numeric-separator": "^7.10.4" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-object-rest-spread": { - "version": "7.23.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-rest-spread/-/plugin-transform-object-rest-spread-7.23.4.tgz", - "integrity": "sha512-9x9K1YyeQVw0iOXJlIzwm8ltobIIv7j2iLyP2jIhEbqPRQ7ScNgwQufU2I0Gq11VjyG4gI4yMXt2VFags+1N3g==", - "dev": true, - "dependencies": { - "@babel/compat-data": "^7.23.3", - "@babel/helper-compilation-targets": "^7.22.15", - "@babel/helper-plugin-utils": "^7.22.5", - "@babel/plugin-syntax-object-rest-spread": "^7.8.3", - "@babel/plugin-transform-parameters": "^7.23.3" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-object-super": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.23.3.tgz", - "integrity": "sha512-BwQ8q0x2JG+3lxCVFohg+KbQM7plfpBwThdW9A6TMtWwLsbDA01Ek2Zb/AgDN39BiZsExm4qrXxjk+P1/fzGrA==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5", - "@babel/helper-replace-supers": "^7.22.20" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-optional-catch-binding": { - "version": "7.23.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-optional-catch-binding/-/plugin-transform-optional-catch-binding-7.23.4.tgz", - "integrity": "sha512-XIq8t0rJPHf6Wvmbn9nFxU6ao4c7WhghTR5WyV8SrJfUFzyxhCm4nhC+iAp3HFhbAKLfYpgzhJ6t4XCtVwqO5A==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5", - "@babel/plugin-syntax-optional-catch-binding": "^7.8.3" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-optional-chaining": { - "version": "7.23.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-optional-chaining/-/plugin-transform-optional-chaining-7.23.4.tgz", - "integrity": "sha512-ZU8y5zWOfjM5vZ+asjgAPwDaBjJzgufjES89Rs4Lpq63O300R/kOz30WCLo6BxxX6QVEilwSlpClnG5cZaikTA==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5", - "@babel/helper-skip-transparent-expression-wrappers": "^7.22.5", - "@babel/plugin-syntax-optional-chaining": "^7.8.3" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-parameters": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.23.3.tgz", - "integrity": "sha512-09lMt6UsUb3/34BbECKVbVwrT9bO6lILWln237z7sLaWnMsTi7Yc9fhX5DLpkJzAGfaReXI22wP41SZmnAA3Vw==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-private-methods": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-private-methods/-/plugin-transform-private-methods-7.23.3.tgz", - "integrity": "sha512-UzqRcRtWsDMTLrRWFvUBDwmw06tCQH9Rl1uAjfh6ijMSmGYQ+fpdB+cnqRC8EMh5tuuxSv0/TejGL+7vyj+50g==", - "dev": true, - "dependencies": { - "@babel/helper-create-class-features-plugin": "^7.22.15", - "@babel/helper-plugin-utils": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-private-property-in-object": { - "version": "7.23.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-private-property-in-object/-/plugin-transform-private-property-in-object-7.23.4.tgz", - "integrity": "sha512-9G3K1YqTq3F4Vt88Djx1UZ79PDyj+yKRnUy7cZGSMe+a7jkwD259uKKuUzQlPkGam7R+8RJwh5z4xO27fA1o2A==", - "dev": true, - "dependencies": { - "@babel/helper-annotate-as-pure": "^7.22.5", - "@babel/helper-create-class-features-plugin": "^7.22.15", - "@babel/helper-plugin-utils": "^7.22.5", - "@babel/plugin-syntax-private-property-in-object": "^7.14.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-property-literals": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.23.3.tgz", - "integrity": "sha512-jR3Jn3y7cZp4oEWPFAlRsSWjxKe4PZILGBSd4nis1TsC5qeSpb+nrtihJuDhNI7QHiVbUaiXa0X2RZY3/TI6Nw==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-regenerator": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.23.3.tgz", - "integrity": "sha512-KP+75h0KghBMcVpuKisx3XTu9Ncut8Q8TuvGO4IhY+9D5DFEckQefOuIsB/gQ2tG71lCke4NMrtIPS8pOj18BQ==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5", - "regenerator-transform": "^0.15.2" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-reserved-words": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-reserved-words/-/plugin-transform-reserved-words-7.23.3.tgz", - "integrity": "sha512-QnNTazY54YqgGxwIexMZva9gqbPa15t/x9VS+0fsEFWplwVpXYZivtgl43Z1vMpc1bdPP2PP8siFeVcnFvA3Cg==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-shorthand-properties": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.23.3.tgz", - "integrity": "sha512-ED2fgqZLmexWiN+YNFX26fx4gh5qHDhn1O2gvEhreLW2iI63Sqm4llRLCXALKrCnbN4Jy0VcMQZl/SAzqug/jg==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-spread": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-spread/-/plugin-transform-spread-7.23.3.tgz", - "integrity": "sha512-VvfVYlrlBVu+77xVTOAoxQ6mZbnIq5FM0aGBSFEcIh03qHf+zNqA4DC/3XMUozTg7bZV3e3mZQ0i13VB6v5yUg==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5", - "@babel/helper-skip-transparent-expression-wrappers": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-sticky-regex": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.23.3.tgz", - "integrity": "sha512-HZOyN9g+rtvnOU3Yh7kSxXrKbzgrm5X4GncPY1QOquu7epga5MxKHVpYu2hvQnry/H+JjckSYRb93iNfsioAGg==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-template-literals": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.23.3.tgz", - "integrity": "sha512-Flok06AYNp7GV2oJPZZcP9vZdszev6vPBkHLwxwSpaIqx75wn6mUd3UFWsSsA0l8nXAKkyCmL/sR02m8RYGeHg==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-typeof-symbol": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.23.3.tgz", - "integrity": "sha512-4t15ViVnaFdrPC74be1gXBSMzXk3B4Us9lP7uLRQHTFpV5Dvt33pn+2MyyNxmN3VTTm3oTrZVMUmuw3oBnQ2oQ==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-typescript": { - "version": "7.23.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-typescript/-/plugin-transform-typescript-7.23.5.tgz", - "integrity": "sha512-2fMkXEJkrmwgu2Bsv1Saxgj30IXZdJ+84lQcKKI7sm719oXs0BBw2ZENKdJdR1PjWndgLCEBNXJOri0fk7RYQA==", - "dev": true, - "dependencies": { - "@babel/helper-annotate-as-pure": "^7.22.5", - "@babel/helper-create-class-features-plugin": "^7.23.5", - "@babel/helper-plugin-utils": "^7.22.5", - "@babel/plugin-syntax-typescript": "^7.23.3" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-unicode-escapes": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-escapes/-/plugin-transform-unicode-escapes-7.23.3.tgz", - "integrity": "sha512-OMCUx/bU6ChE3r4+ZdylEqAjaQgHAgipgW8nsCfu5pGqDcFytVd91AwRvUJSBZDz0exPGgnjoqhgRYLRjFZc9Q==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-unicode-property-regex": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-property-regex/-/plugin-transform-unicode-property-regex-7.23.3.tgz", - "integrity": "sha512-KcLIm+pDZkWZQAFJ9pdfmh89EwVfmNovFBcXko8szpBeF8z68kWIPeKlmSOkT9BXJxs2C0uk+5LxoxIv62MROA==", - "dev": true, - "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.22.15", - "@babel/helper-plugin-utils": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-unicode-regex": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.23.3.tgz", - "integrity": "sha512-wMHpNA4x2cIA32b/ci3AfwNgheiva2W0WUKWTK7vBHBhDKfPsc5cFGNWm69WBqpwd86u1qwZ9PWevKqm1A3yAw==", - "dev": true, - "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.22.15", - "@babel/helper-plugin-utils": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-transform-unicode-sets-regex": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-sets-regex/-/plugin-transform-unicode-sets-regex-7.23.3.tgz", - "integrity": "sha512-W7lliA/v9bNR83Qc3q1ip9CQMZ09CcHDbHfbLRDNuAhn1Mvkr1ZNF7hPmztMQvtTGVLJ9m8IZqWsTkXOml8dbw==", - "dev": true, - "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.22.15", - "@babel/helper-plugin-utils": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/@babel/preset-env": { - "version": "7.23.5", - "resolved": "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.23.5.tgz", - "integrity": "sha512-0d/uxVD6tFGWXGDSfyMD1p2otoaKmu6+GD+NfAx0tMaH+dxORnp7T9TaVQ6mKyya7iBtCIVxHjWT7MuzzM9z+A==", - "dev": true, - "dependencies": { - "@babel/compat-data": "^7.23.5", - "@babel/helper-compilation-targets": "^7.22.15", - "@babel/helper-plugin-utils": "^7.22.5", - "@babel/helper-validator-option": "^7.23.5", - "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": "^7.23.3", - "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": "^7.23.3", - "@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly": "^7.23.3", - "@babel/plugin-proposal-private-property-in-object": "7.21.0-placeholder-for-preset-env.2", - "@babel/plugin-syntax-async-generators": "^7.8.4", - "@babel/plugin-syntax-class-properties": "^7.12.13", - "@babel/plugin-syntax-class-static-block": "^7.14.5", - "@babel/plugin-syntax-dynamic-import": "^7.8.3", - "@babel/plugin-syntax-export-namespace-from": "^7.8.3", - "@babel/plugin-syntax-import-assertions": "^7.23.3", - "@babel/plugin-syntax-import-attributes": "^7.23.3", - "@babel/plugin-syntax-import-meta": "^7.10.4", - "@babel/plugin-syntax-json-strings": "^7.8.3", - "@babel/plugin-syntax-logical-assignment-operators": "^7.10.4", - "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3", - "@babel/plugin-syntax-numeric-separator": "^7.10.4", - "@babel/plugin-syntax-object-rest-spread": "^7.8.3", - "@babel/plugin-syntax-optional-catch-binding": "^7.8.3", - "@babel/plugin-syntax-optional-chaining": "^7.8.3", - "@babel/plugin-syntax-private-property-in-object": "^7.14.5", - "@babel/plugin-syntax-top-level-await": "^7.14.5", - "@babel/plugin-syntax-unicode-sets-regex": "^7.18.6", - "@babel/plugin-transform-arrow-functions": "^7.23.3", - "@babel/plugin-transform-async-generator-functions": "^7.23.4", - "@babel/plugin-transform-async-to-generator": "^7.23.3", - "@babel/plugin-transform-block-scoped-functions": "^7.23.3", - "@babel/plugin-transform-block-scoping": "^7.23.4", - "@babel/plugin-transform-class-properties": "^7.23.3", - "@babel/plugin-transform-class-static-block": "^7.23.4", - "@babel/plugin-transform-classes": "^7.23.5", - "@babel/plugin-transform-computed-properties": "^7.23.3", - "@babel/plugin-transform-destructuring": "^7.23.3", - "@babel/plugin-transform-dotall-regex": "^7.23.3", - "@babel/plugin-transform-duplicate-keys": "^7.23.3", - "@babel/plugin-transform-dynamic-import": "^7.23.4", - "@babel/plugin-transform-exponentiation-operator": "^7.23.3", - "@babel/plugin-transform-export-namespace-from": "^7.23.4", - "@babel/plugin-transform-for-of": "^7.23.3", - "@babel/plugin-transform-function-name": "^7.23.3", - "@babel/plugin-transform-json-strings": "^7.23.4", - "@babel/plugin-transform-literals": "^7.23.3", - "@babel/plugin-transform-logical-assignment-operators": "^7.23.4", - "@babel/plugin-transform-member-expression-literals": "^7.23.3", - "@babel/plugin-transform-modules-amd": "^7.23.3", - "@babel/plugin-transform-modules-commonjs": "^7.23.3", - "@babel/plugin-transform-modules-systemjs": "^7.23.3", - "@babel/plugin-transform-modules-umd": "^7.23.3", - "@babel/plugin-transform-named-capturing-groups-regex": "^7.22.5", - "@babel/plugin-transform-new-target": "^7.23.3", - "@babel/plugin-transform-nullish-coalescing-operator": "^7.23.4", - "@babel/plugin-transform-numeric-separator": "^7.23.4", - "@babel/plugin-transform-object-rest-spread": "^7.23.4", - "@babel/plugin-transform-object-super": "^7.23.3", - "@babel/plugin-transform-optional-catch-binding": "^7.23.4", - "@babel/plugin-transform-optional-chaining": "^7.23.4", - "@babel/plugin-transform-parameters": "^7.23.3", - "@babel/plugin-transform-private-methods": "^7.23.3", - "@babel/plugin-transform-private-property-in-object": "^7.23.4", - "@babel/plugin-transform-property-literals": "^7.23.3", - "@babel/plugin-transform-regenerator": "^7.23.3", - "@babel/plugin-transform-reserved-words": "^7.23.3", - "@babel/plugin-transform-shorthand-properties": "^7.23.3", - "@babel/plugin-transform-spread": "^7.23.3", - "@babel/plugin-transform-sticky-regex": "^7.23.3", - "@babel/plugin-transform-template-literals": "^7.23.3", - "@babel/plugin-transform-typeof-symbol": "^7.23.3", - "@babel/plugin-transform-unicode-escapes": "^7.23.3", - "@babel/plugin-transform-unicode-property-regex": "^7.23.3", - "@babel/plugin-transform-unicode-regex": "^7.23.3", - "@babel/plugin-transform-unicode-sets-regex": "^7.23.3", - "@babel/preset-modules": "0.1.6-no-external-plugins", - "babel-plugin-polyfill-corejs2": "^0.4.6", - "babel-plugin-polyfill-corejs3": "^0.8.5", - "babel-plugin-polyfill-regenerator": "^0.5.3", - "core-js-compat": "^3.31.0", - "semver": "^6.3.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/preset-modules": { - "version": "0.1.6-no-external-plugins", - "resolved": "https://registry.npmjs.org/@babel/preset-modules/-/preset-modules-0.1.6-no-external-plugins.tgz", - "integrity": "sha512-HrcgcIESLm9aIR842yhJ5RWan/gebQUJ6E/E5+rf0y9o6oj7w0Br+sWuL6kEQ/o/AdfvR1Je9jG18/gnpwjEyA==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.0.0", - "@babel/types": "^7.4.4", - "esutils": "^2.0.2" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0 || ^8.0.0-0 <8.0.0" - } - }, - "node_modules/@babel/preset-typescript": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/preset-typescript/-/preset-typescript-7.23.3.tgz", - "integrity": "sha512-17oIGVlqz6CchO9RFYn5U6ZpWRZIngayYCtrPRSgANSwC2V1Jb+iP74nVxzzXJte8b8BYxrL1yY96xfhTBrNNQ==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.22.5", - "@babel/helper-validator-option": "^7.22.15", - "@babel/plugin-syntax-jsx": "^7.23.3", - "@babel/plugin-transform-modules-commonjs": "^7.23.3", - "@babel/plugin-transform-typescript": "^7.23.3" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/regjsgen": { - "version": "0.8.0", - "resolved": "https://registry.npmjs.org/@babel/regjsgen/-/regjsgen-0.8.0.tgz", - "integrity": "sha512-x/rqGMdzj+fWZvCOYForTghzbtqPDZ5gPwaoNGHdgDfF2QA/XZbCBp4Moo5scrkAMPhB7z26XM/AaHuIJdgauA==", - "dev": true - }, - "node_modules/@babel/runtime": { - "version": "7.27.6", - "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.27.6.tgz", - "integrity": "sha512-vbavdySgbTTrmFE+EsiqUTzlOr5bzlnJtUv9PynGCAKvfQqjIXbvFdumPM/GxMDfyuGMJaJAU6TO4zc1Jf1i8Q==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/template": { - "version": "7.27.2", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.27.2.tgz", - "integrity": "sha512-LPDZ85aEJyYSd18/DkjNh4/y1ntkE5KwUHWTiqgRxruuZL2F1yuHligVHLvcHY2vMHXttKFpJn6LwfI7cw7ODw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/code-frame": "^7.27.1", - "@babel/parser": "^7.27.2", - "@babel/types": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/traverse": { - "version": "7.23.2", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.23.2.tgz", - "integrity": "sha512-azpe59SQ48qG6nu2CzcMLbxUudtN+dOM9kDbUqGq3HXUJRlo7i8fvPoxQUzYgLZ4cMVmuZgm8vvBpNeRhd6XSw==", - "dev": true, - "dependencies": { - "@babel/code-frame": "^7.22.13", - "@babel/generator": "^7.23.0", - "@babel/helper-environment-visitor": "^7.22.20", - "@babel/helper-function-name": "^7.23.0", - "@babel/helper-hoist-variables": "^7.22.5", - "@babel/helper-split-export-declaration": "^7.22.6", - "@babel/parser": "^7.23.0", - "@babel/types": "^7.23.0", - "debug": "^4.1.0", - "globals": "^11.1.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/types": { - "version": "7.28.1", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.28.1.tgz", - "integrity": "sha512-x0LvFTekgSX+83TI28Y9wYPUfzrnl2aT5+5QLnO6v7mSJYtEEevuDRN0F0uSHRk1G1IWZC43o00Y0xDDrpBGPQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@babel/helper-string-parser": "^7.27.1", - "@babel/helper-validator-identifier": "^7.27.1" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@bcoe/v8-coverage": { - "version": "0.2.3", - "resolved": "https://registry.npmjs.org/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz", - "integrity": "sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==", - "dev": true - }, - "node_modules/@istanbuljs/load-nyc-config": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz", - "integrity": "sha512-VjeHSlIzpv/NyD3N0YuHfXOPDIixcA1q2ZV98wsMqcYlPmv2n3Yb2lYP9XMElnaFVXg5A7YLTeLu6V84uQDjmQ==", - "dev": true, - "dependencies": { - "camelcase": "^5.3.1", - "find-up": "^4.1.0", - "get-package-type": "^0.1.0", - "js-yaml": "^3.13.1", - "resolve-from": "^5.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/@istanbuljs/schema": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/@istanbuljs/schema/-/schema-0.1.3.tgz", - "integrity": "sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/@jest/console": { - "version": "29.6.1", - "resolved": "https://registry.npmjs.org/@jest/console/-/console-29.6.1.tgz", - "integrity": "sha512-Aj772AYgwTSr5w8qnyoJ0eDYvN6bMsH3ORH1ivMotrInHLKdUz6BDlaEXHdM6kODaBIkNIyQGzsMvRdOv7VG7Q==", - "dev": true, - "dependencies": { - "@jest/types": "^29.6.1", - "@types/node": "*", - "chalk": "^4.0.0", - "jest-message-util": "^29.6.1", - "jest-util": "^29.6.1", - "slash": "^3.0.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/@jest/console/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/@jest/console/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/@jest/console/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/@jest/console/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "node_modules/@jest/console/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/@jest/console/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/@jest/core": { - "version": "29.6.1", - "resolved": "https://registry.npmjs.org/@jest/core/-/core-29.6.1.tgz", - "integrity": "sha512-CcowHypRSm5oYQ1obz1wfvkjZZ2qoQlrKKvlfPwh5jUXVU12TWr2qMeH8chLMuTFzHh5a1g2yaqlqDICbr+ukQ==", - "dev": true, - "dependencies": { - "@jest/console": "^29.6.1", - "@jest/reporters": "^29.6.1", - "@jest/test-result": "^29.6.1", - "@jest/transform": "^29.6.1", - "@jest/types": "^29.6.1", - "@types/node": "*", - "ansi-escapes": "^4.2.1", - "chalk": "^4.0.0", - "ci-info": "^3.2.0", - "exit": "^0.1.2", - "graceful-fs": "^4.2.9", - "jest-changed-files": "^29.5.0", - "jest-config": "^29.6.1", - "jest-haste-map": "^29.6.1", - "jest-message-util": "^29.6.1", - "jest-regex-util": "^29.4.3", - "jest-resolve": "^29.6.1", - "jest-resolve-dependencies": "^29.6.1", - "jest-runner": "^29.6.1", - "jest-runtime": "^29.6.1", - "jest-snapshot": "^29.6.1", - "jest-util": "^29.6.1", - "jest-validate": "^29.6.1", - "jest-watcher": "^29.6.1", - "micromatch": "^4.0.4", - "pretty-format": "^29.6.1", - "slash": "^3.0.0", - "strip-ansi": "^6.0.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - }, - "peerDependencies": { - "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" - }, - "peerDependenciesMeta": { - "node-notifier": { - "optional": true - } - } - }, - "node_modules/@jest/core/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/@jest/core/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/@jest/core/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/@jest/core/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "node_modules/@jest/core/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/@jest/core/node_modules/jest-config": { - "version": "29.6.1", - "resolved": "https://registry.npmjs.org/jest-config/-/jest-config-29.6.1.tgz", - "integrity": "sha512-XdjYV2fy2xYixUiV2Wc54t3Z4oxYPAELUzWnV6+mcbq0rh742X2p52pii5A3oeRzYjLnQxCsZmp0qpI6klE2cQ==", - "dev": true, - "dependencies": { - "@babel/core": "^7.11.6", - "@jest/test-sequencer": "^29.6.1", - "@jest/types": "^29.6.1", - "babel-jest": "^29.6.1", - "chalk": "^4.0.0", - "ci-info": "^3.2.0", - "deepmerge": "^4.2.2", - "glob": "^7.1.3", - "graceful-fs": "^4.2.9", - "jest-circus": "^29.6.1", - "jest-environment-node": "^29.6.1", - "jest-get-type": "^29.4.3", - "jest-regex-util": "^29.4.3", - "jest-resolve": "^29.6.1", - "jest-runner": "^29.6.1", - "jest-util": "^29.6.1", - "jest-validate": "^29.6.1", - "micromatch": "^4.0.4", - "parse-json": "^5.2.0", - "pretty-format": "^29.6.1", - "slash": "^3.0.0", - "strip-json-comments": "^3.1.1" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - }, - "peerDependencies": { - "@types/node": "*", - "ts-node": ">=9.0.0" - }, - "peerDependenciesMeta": { - "@types/node": { - "optional": true + "name": "@keeper-security/keeperapi", + "version": "17.0.7", + "lockfileVersion": 2, + "requires": true, + "packages": { + "": { + "name": "@keeper-security/keeperapi", + "version": "17.0.7", + "license": "ISC", + "dependencies": { + "@noble/post-quantum": "^0.5.2", + "asmcrypto.js": "^2.3.2", + "faye-websocket": "^0.11.3", + "form-data": "^4.0.4", + "node-rsa": "^1.0.8" + }, + "devDependencies": { + "@babel/preset-env": "^7.23.5", + "@babel/preset-typescript": "^7.23.3", + "@rollup/plugin-commonjs": "^22.0.1", + "@rollup/plugin-node-resolve": "^13.3.0", + "@types/jest": "^24.0.15", + "@types/node": "^20.9.1", + "jest": "^29.6.1", + "jest-environment-jsdom": "^29.7.0", + "protobufjs": "^7.2.4", + "protobufjs-cli": "^1.1.1", + "rollup": "^2.79.2", + "rollup-plugin-typescript2": "^0.32.1", + "ts-jest": "^29.1.1", + "ts-node": "^8.10.2", + "typescript": "^4.0.1" + } }, - "ts-node": { - "optional": true - } - } - }, - "node_modules/@jest/core/node_modules/jest-get-type": { - "version": "29.4.3", - "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.4.3.tgz", - "integrity": "sha512-J5Xez4nRRMjk8emnTpWrlkyb9pfRQQanDrvWHhsR1+VUfbwxi30eVcZFlcdGInRibU4G5LwHXpI7IRHU0CY+gg==", - "dev": true, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/@jest/core/node_modules/pretty-format": { - "version": "29.6.1", - "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.6.1.tgz", - "integrity": "sha512-7jRj+yXO0W7e4/tSJKoR7HRIHLPPjtNaUGG2xxKQnGvPNRkgWcQ0AZX6P4KBRJN4FcTBWb3sa7DVUJmocYuoog==", - "dev": true, - "dependencies": { - "@jest/schemas": "^29.6.0", - "ansi-styles": "^5.0.0", - "react-is": "^18.0.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/@jest/core/node_modules/pretty-format/node_modules/ansi-styles": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", - "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/@jest/core/node_modules/react-is": { - "version": "18.2.0", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", - "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", - "dev": true - }, - "node_modules/@jest/core/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/@jest/environment": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/@jest/environment/-/environment-29.7.0.tgz", - "integrity": "sha512-aQIfHDq33ExsN4jP1NWGXhxgQ/wixs60gDiKO+XVMd8Mn0NWPWgc34ZQDTb2jKaUWQ7MuwoitXAsN2XVXNMpAw==", - "dev": true, - "dependencies": { - "@jest/fake-timers": "^29.7.0", - "@jest/types": "^29.6.3", - "@types/node": "*", - "jest-mock": "^29.7.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/@jest/expect": { - "version": "29.6.1", - "resolved": "https://registry.npmjs.org/@jest/expect/-/expect-29.6.1.tgz", - "integrity": "sha512-N5xlPrAYaRNyFgVf2s9Uyyvr795jnB6rObuPx4QFvNJz8aAjpZUDfO4bh5G/xuplMID8PrnuF1+SfSyDxhsgYg==", - "dev": true, - "dependencies": { - "expect": "^29.6.1", - "jest-snapshot": "^29.6.1" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/@jest/expect-utils": { - "version": "29.6.1", - "resolved": "https://registry.npmjs.org/@jest/expect-utils/-/expect-utils-29.6.1.tgz", - "integrity": "sha512-o319vIf5pEMx0LmzSxxkYYxo4wrRLKHq9dP1yJU7FoPTB0LfAKSz8SWD6D/6U3v/O52t9cF5t+MeJiRsfk7zMw==", - "dev": true, - "dependencies": { - "jest-get-type": "^29.4.3" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/@jest/expect-utils/node_modules/jest-get-type": { - "version": "29.4.3", - "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.4.3.tgz", - "integrity": "sha512-J5Xez4nRRMjk8emnTpWrlkyb9pfRQQanDrvWHhsR1+VUfbwxi30eVcZFlcdGInRibU4G5LwHXpI7IRHU0CY+gg==", - "dev": true, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/@jest/fake-timers": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/@jest/fake-timers/-/fake-timers-29.7.0.tgz", - "integrity": "sha512-q4DH1Ha4TTFPdxLsqDXK1d3+ioSL7yL5oCMJZgDYm6i+6CygW5E5xVr/D1HdsGxjt1ZWSfUAs9OxSB/BNelWrQ==", - "dev": true, - "dependencies": { - "@jest/types": "^29.6.3", - "@sinonjs/fake-timers": "^10.0.2", - "@types/node": "*", - "jest-message-util": "^29.7.0", - "jest-mock": "^29.7.0", - "jest-util": "^29.7.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/@jest/globals": { - "version": "29.6.1", - "resolved": "https://registry.npmjs.org/@jest/globals/-/globals-29.6.1.tgz", - "integrity": "sha512-2VjpaGy78JY9n9370H8zGRCFbYVWwjY6RdDMhoJHa1sYfwe6XM/azGN0SjY8kk7BOZApIejQ1BFPyH7FPG0w3A==", - "dev": true, - "dependencies": { - "@jest/environment": "^29.6.1", - "@jest/expect": "^29.6.1", - "@jest/types": "^29.6.1", - "jest-mock": "^29.6.1" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/@jest/reporters": { - "version": "29.6.1", - "resolved": "https://registry.npmjs.org/@jest/reporters/-/reporters-29.6.1.tgz", - "integrity": "sha512-9zuaI9QKr9JnoZtFQlw4GREQbxgmNYXU6QuWtmuODvk5nvPUeBYapVR/VYMyi2WSx3jXTLJTJji8rN6+Cm4+FA==", - "dev": true, - "dependencies": { - "@bcoe/v8-coverage": "^0.2.3", - "@jest/console": "^29.6.1", - "@jest/test-result": "^29.6.1", - "@jest/transform": "^29.6.1", - "@jest/types": "^29.6.1", - "@jridgewell/trace-mapping": "^0.3.18", - "@types/node": "*", - "chalk": "^4.0.0", - "collect-v8-coverage": "^1.0.0", - "exit": "^0.1.2", - "glob": "^7.1.3", - "graceful-fs": "^4.2.9", - "istanbul-lib-coverage": "^3.0.0", - "istanbul-lib-instrument": "^5.1.0", - "istanbul-lib-report": "^3.0.0", - "istanbul-lib-source-maps": "^4.0.0", - "istanbul-reports": "^3.1.3", - "jest-message-util": "^29.6.1", - "jest-util": "^29.6.1", - "jest-worker": "^29.6.1", - "slash": "^3.0.0", - "string-length": "^4.0.1", - "strip-ansi": "^6.0.0", - "v8-to-istanbul": "^9.0.1" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - }, - "peerDependencies": { - "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" - }, - "peerDependenciesMeta": { - "node-notifier": { - "optional": true - } - } - }, - "node_modules/@jest/reporters/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/@jest/reporters/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/@jest/reporters/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/@jest/reporters/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "node_modules/@jest/reporters/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/@jest/reporters/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/@jest/schemas": { - "version": "29.6.3", - "resolved": "https://registry.npmjs.org/@jest/schemas/-/schemas-29.6.3.tgz", - "integrity": "sha512-mo5j5X+jIZmJQveBKeS/clAueipV7KgiX1vMgCxam1RNYiqE1w62n0/tJJnHtjW8ZHcQco5gY85jA3mi0L+nSA==", - "dev": true, - "dependencies": { - "@sinclair/typebox": "^0.27.8" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/@jest/source-map": { - "version": "29.6.0", - "resolved": "https://registry.npmjs.org/@jest/source-map/-/source-map-29.6.0.tgz", - "integrity": "sha512-oA+I2SHHQGxDCZpbrsCQSoMLb3Bz547JnM+jUr9qEbuw0vQlWZfpPS7CO9J7XiwKicEz9OFn/IYoLkkiUD7bzA==", - "dev": true, - "dependencies": { - "@jridgewell/trace-mapping": "^0.3.18", - "callsites": "^3.0.0", - "graceful-fs": "^4.2.9" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/@jest/test-result": { - "version": "29.6.1", - "resolved": "https://registry.npmjs.org/@jest/test-result/-/test-result-29.6.1.tgz", - "integrity": "sha512-Ynr13ZRcpX6INak0TPUukU8GWRfm/vAytE3JbJNGAvINySWYdfE7dGZMbk36oVuK4CigpbhMn8eg1dixZ7ZJOw==", - "dev": true, - "dependencies": { - "@jest/console": "^29.6.1", - "@jest/types": "^29.6.1", - "@types/istanbul-lib-coverage": "^2.0.0", - "collect-v8-coverage": "^1.0.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/@jest/test-sequencer": { - "version": "29.6.1", - "resolved": "https://registry.npmjs.org/@jest/test-sequencer/-/test-sequencer-29.6.1.tgz", - "integrity": "sha512-oBkC36PCDf/wb6dWeQIhaviU0l5u6VCsXa119yqdUosYAt7/FbQU2M2UoziO3igj/HBDEgp57ONQ3fm0v9uyyg==", - "dev": true, - "dependencies": { - "@jest/test-result": "^29.6.1", - "graceful-fs": "^4.2.9", - "jest-haste-map": "^29.6.1", - "slash": "^3.0.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/@jest/transform": { - "version": "29.6.1", - "resolved": "https://registry.npmjs.org/@jest/transform/-/transform-29.6.1.tgz", - "integrity": "sha512-URnTneIU3ZjRSaf906cvf6Hpox3hIeJXRnz3VDSw5/X93gR8ycdfSIEy19FlVx8NFmpN7fe3Gb1xF+NjXaQLWg==", - "dev": true, - "dependencies": { - "@babel/core": "^7.11.6", - "@jest/types": "^29.6.1", - "@jridgewell/trace-mapping": "^0.3.18", - "babel-plugin-istanbul": "^6.1.1", - "chalk": "^4.0.0", - "convert-source-map": "^2.0.0", - "fast-json-stable-stringify": "^2.1.0", - "graceful-fs": "^4.2.9", - "jest-haste-map": "^29.6.1", - "jest-regex-util": "^29.4.3", - "jest-util": "^29.6.1", - "micromatch": "^4.0.4", - "pirates": "^4.0.4", - "slash": "^3.0.0", - "write-file-atomic": "^4.0.2" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/@jest/transform/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/@jest/transform/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/@jest/transform/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/@jest/transform/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "node_modules/@jest/transform/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/@jest/transform/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/@jest/types": { - "version": "29.6.3", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-29.6.3.tgz", - "integrity": "sha512-u3UPsIilWKOM3F9CXtrG8LEJmNxwoCQC/XVj4IKYXvvpx7QIi/Kg1LI5uDmDpKlac62NUtX7eLjRh+jVZcLOzw==", - "dev": true, - "dependencies": { - "@jest/schemas": "^29.6.3", - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^3.0.0", - "@types/node": "*", - "@types/yargs": "^17.0.8", - "chalk": "^4.0.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/@jest/types/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/@jest/types/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/@jest/types/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/@jest/types/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "node_modules/@jest/types/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/@jest/types/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/@jridgewell/gen-mapping": { - "version": "0.3.3", - "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.3.tgz", - "integrity": "sha512-HLhSWOLRi875zjjMG/r+Nv0oCW8umGb0BgEhyX3dDX3egwZtB8PqLnjz3yedt8R5StBrzcg4aBpnh8UA9D1BoQ==", - "dev": true, - "dependencies": { - "@jridgewell/set-array": "^1.0.1", - "@jridgewell/sourcemap-codec": "^1.4.10", - "@jridgewell/trace-mapping": "^0.3.9" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@jridgewell/resolve-uri": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.0.tgz", - "integrity": "sha512-F2msla3tad+Mfht5cJq7LSXcdudKTWCVYUgw6pLFOOHSTtZlj6SWNYAp+AhuqLmWdBO2X5hPrLcu8cVP8fy28w==", - "dev": true, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@jridgewell/set-array": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.1.2.tgz", - "integrity": "sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==", - "dev": true, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/@jridgewell/sourcemap-codec": { - "version": "1.4.15", - "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz", - "integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==", - "dev": true - }, - "node_modules/@jridgewell/trace-mapping": { - "version": "0.3.18", - "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.18.tgz", - "integrity": "sha512-w+niJYzMHdd7USdiH2U6869nqhD2nbfZXND5Yp93qIbEmnDNk7PD48o+YchRVpzMU7M6jVCbenTR7PA1FLQ9pA==", - "dev": true, - "dependencies": { - "@jridgewell/resolve-uri": "3.1.0", - "@jridgewell/sourcemap-codec": "1.4.14" - } - }, - "node_modules/@jridgewell/trace-mapping/node_modules/@jridgewell/sourcemap-codec": { - "version": "1.4.14", - "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.14.tgz", - "integrity": "sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw==", - "dev": true - }, - "node_modules/@jsdoc/salty": { - "version": "0.2.5", - "resolved": "https://registry.npmjs.org/@jsdoc/salty/-/salty-0.2.5.tgz", - "integrity": "sha512-TfRP53RqunNe2HBobVBJ0VLhK1HbfvBYeTC1ahnN64PWvyYyGebmMiPkuwvD9fpw2ZbkoPb8Q7mwy0aR8Z9rvw==", - "dev": true, - "dependencies": { - "lodash": "^4.17.21" - }, - "engines": { - "node": ">=v12.0.0" - } - }, - "node_modules/@noble/curves": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/@noble/curves/-/curves-2.0.1.tgz", - "integrity": "sha512-vs1Az2OOTBiP4q0pwjW5aF0xp9n4MxVrmkFBxc6EKZc6ddYx5gaZiAsZoq0uRRXWbi3AT/sBqn05eRPtn1JCPw==", - "license": "MIT", - "dependencies": { - "@noble/hashes": "2.0.1" - }, - "engines": { - "node": ">= 20.19.0" - }, - "funding": { - "url": "https://paulmillr.com/funding/" - } - }, - "node_modules/@noble/hashes": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-2.0.1.tgz", - "integrity": "sha512-XlOlEbQcE9fmuXxrVTXCTlG2nlRXa9Rj3rr5Ue/+tX+nmkgbX720YHh0VR3hBF9xDvwnb8D2shVGOwNx+ulArw==", - "license": "MIT", - "engines": { - "node": ">= 20.19.0" - }, - "funding": { - "url": "https://paulmillr.com/funding/" - } - }, - "node_modules/@noble/post-quantum": { - "version": "0.5.2", - "resolved": "https://registry.npmjs.org/@noble/post-quantum/-/post-quantum-0.5.2.tgz", - "integrity": "sha512-etMDBkCuB95Xj/gfsWYBD2x+84IjL4uMLd/FhGoUUG/g+eh0K2eP7pJz1EmvpN8Df3vKdoWVAc7RxIBCHQfFHQ==", - "license": "MIT", - "dependencies": { - "@noble/curves": "~2.0.0", - "@noble/hashes": "~2.0.0" - }, - "engines": { - "node": ">= 20.19.0" - }, - "funding": { - "url": "https://paulmillr.com/funding/" - } - }, - "node_modules/@protobufjs/aspromise": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@protobufjs/aspromise/-/aspromise-1.1.2.tgz", - "integrity": "sha1-m4sMxmPWaafY9vXQiToU00jzD78=", - "dev": true - }, - "node_modules/@protobufjs/base64": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@protobufjs/base64/-/base64-1.1.2.tgz", - "integrity": "sha512-AZkcAA5vnN/v4PDqKyMR5lx7hZttPDgClv83E//FMNhR2TMcLUhfRUBHCmSl0oi9zMgDDqRUJkSxO3wm85+XLg==", - "dev": true - }, - "node_modules/@protobufjs/codegen": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/@protobufjs/codegen/-/codegen-2.0.4.tgz", - "integrity": "sha512-YyFaikqM5sH0ziFZCN3xDC7zeGaB/d0IUb9CATugHWbd1FRFwWwt4ld4OYMPWu5a3Xe01mGAULCdqhMlPl29Jg==", - "dev": true - }, - "node_modules/@protobufjs/eventemitter": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@protobufjs/eventemitter/-/eventemitter-1.1.0.tgz", - "integrity": "sha1-NVy8mLr61ZePntCV85diHx0Ga3A=", - "dev": true - }, - "node_modules/@protobufjs/fetch": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@protobufjs/fetch/-/fetch-1.1.0.tgz", - "integrity": "sha1-upn7WYYUr2VwDBYZ/wbUVLDYTEU=", - "dev": true, - "dependencies": { - "@protobufjs/aspromise": "^1.1.1", - "@protobufjs/inquire": "^1.1.0" - } - }, - "node_modules/@protobufjs/float": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/@protobufjs/float/-/float-1.0.2.tgz", - "integrity": "sha1-Xp4avctz/Ap8uLKR33jIy9l7h9E=", - "dev": true - }, - "node_modules/@protobufjs/inquire": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@protobufjs/inquire/-/inquire-1.1.0.tgz", - "integrity": "sha1-/yAOPnzyQp4tyvwRQIKOjMY48Ik=", - "dev": true - }, - "node_modules/@protobufjs/path": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@protobufjs/path/-/path-1.1.2.tgz", - "integrity": "sha1-bMKyDFya1q0NzP0hynZz2Nf79o0=", - "dev": true - }, - "node_modules/@protobufjs/pool": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@protobufjs/pool/-/pool-1.1.0.tgz", - "integrity": "sha1-Cf0V8tbTq/qbZbw2ZQbWrXhG/1Q=", - "dev": true - }, - "node_modules/@protobufjs/utf8": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@protobufjs/utf8/-/utf8-1.1.0.tgz", - "integrity": "sha1-p3c2C1s5oaLlEG+OhY8v0tBgxXA=", - "dev": true - }, - "node_modules/@rollup/plugin-commonjs": { - "version": "22.0.1", - "resolved": "https://registry.npmjs.org/@rollup/plugin-commonjs/-/plugin-commonjs-22.0.1.tgz", - "integrity": "sha512-dGfEZvdjDHObBiP5IvwTKMVeq/tBZGMBHZFMdIV1ClMM/YoWS34xrHFGfag9SN2ZtMgNZRFruqvxZQEa70O6nQ==", - "dev": true, - "dependencies": { - "@rollup/pluginutils": "^3.1.0", - "commondir": "^1.0.1", - "estree-walker": "^2.0.1", - "glob": "^7.1.6", - "is-reference": "^1.2.1", - "magic-string": "^0.25.7", - "resolve": "^1.17.0" - }, - "engines": { - "node": ">= 12.0.0" - }, - "peerDependencies": { - "rollup": "^2.68.0" - } - }, - "node_modules/@rollup/plugin-commonjs/node_modules/estree-walker": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-2.0.2.tgz", - "integrity": "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==", - "dev": true - }, - "node_modules/@rollup/plugin-node-resolve": { - "version": "13.3.0", - "resolved": "https://registry.npmjs.org/@rollup/plugin-node-resolve/-/plugin-node-resolve-13.3.0.tgz", - "integrity": "sha512-Lus8rbUo1eEcnS4yTFKLZrVumLPY+YayBdWXgFSHYhTT2iJbMhoaaBL3xl5NCdeRytErGr8tZ0L71BMRmnlwSw==", - "dev": true, - "dependencies": { - "@rollup/pluginutils": "^3.1.0", - "@types/resolve": "1.17.1", - "deepmerge": "^4.2.2", - "is-builtin-module": "^3.1.0", - "is-module": "^1.0.0", - "resolve": "^1.19.0" - }, - "engines": { - "node": ">= 10.0.0" - }, - "peerDependencies": { - "rollup": "^2.42.0" - } - }, - "node_modules/@rollup/pluginutils": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/@rollup/pluginutils/-/pluginutils-3.1.0.tgz", - "integrity": "sha512-GksZ6pr6TpIjHm8h9lSQ8pi8BE9VeubNT0OMJ3B5uZJ8pz73NPiqOtCog/x2/QzM1ENChPKxMDhiQuRHsqc+lg==", - "dev": true, - "dependencies": { - "@types/estree": "0.0.39", - "estree-walker": "^1.0.1", - "picomatch": "^2.2.2" - }, - "engines": { - "node": ">= 8.0.0" - }, - "peerDependencies": { - "rollup": "^1.20.0||^2.0.0" - } - }, - "node_modules/@sinclair/typebox": { - "version": "0.27.8", - "resolved": "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.27.8.tgz", - "integrity": "sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA==", - "dev": true - }, - "node_modules/@sinonjs/commons": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/@sinonjs/commons/-/commons-3.0.0.tgz", - "integrity": "sha512-jXBtWAF4vmdNmZgD5FoKsVLv3rPgDnLgPbU84LIJ3otV44vJlDRokVng5v8NFJdCf/da9legHcKaRuZs4L7faA==", - "dev": true, - "dependencies": { - "type-detect": "4.0.8" - } - }, - "node_modules/@sinonjs/fake-timers": { - "version": "10.3.0", - "resolved": "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-10.3.0.tgz", - "integrity": "sha512-V4BG07kuYSUkTCSBHG8G8TNhM+F19jXFWnQtzj+we8DrkpSBCee9Z3Ms8yiGer/dlmhe35/Xdgyo3/0rQKg7YA==", - "dev": true, - "dependencies": { - "@sinonjs/commons": "^3.0.0" - } - }, - "node_modules/@tootallnate/once": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/@tootallnate/once/-/once-2.0.0.tgz", - "integrity": "sha512-XCuKFP5PS55gnMVu3dty8KPatLqUoy/ZYzDzAGCQ8JNFCkLXzmI7vNHCR+XpbZaMWQK/vQubr7PkYq8g470J/A==", - "dev": true, - "engines": { - "node": ">= 10" - } - }, - "node_modules/@types/babel__core": { - "version": "7.20.1", - "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.1.tgz", - "integrity": "sha512-aACu/U/omhdk15O4Nfb+fHgH/z3QsfQzpnvRZhYhThms83ZnAOZz7zZAWO7mn2yyNQaA4xTO8GLK3uqFU4bYYw==", - "dev": true, - "dependencies": { - "@babel/parser": "^7.20.7", - "@babel/types": "^7.20.7", - "@types/babel__generator": "*", - "@types/babel__template": "*", - "@types/babel__traverse": "*" - } - }, - "node_modules/@types/babel__generator": { - "version": "7.6.4", - "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.6.4.tgz", - "integrity": "sha512-tFkciB9j2K755yrTALxD44McOrk+gfpIpvC3sxHjRawj6PfnQxrse4Clq5y/Rq+G3mrBurMax/lG8Qn2t9mSsg==", - "dev": true, - "dependencies": { - "@babel/types": "^7.0.0" - } - }, - "node_modules/@types/babel__template": { - "version": "7.4.1", - "resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.1.tgz", - "integrity": "sha512-azBFKemX6kMg5Io+/rdGT0dkGreboUVR0Cdm3fz9QJWpaQGJRQXl7C+6hOTCZcMll7KFyEQpgbYI2lHdsS4U7g==", - "dev": true, - "dependencies": { - "@babel/parser": "^7.1.0", - "@babel/types": "^7.0.0" - } - }, - "node_modules/@types/babel__traverse": { - "version": "7.20.1", - "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.20.1.tgz", - "integrity": "sha512-MitHFXnhtgwsGZWtT68URpOvLN4EREih1u3QtQiN4VdAxWKRVvGCSvw/Qth0M0Qq3pJpnGOu5JaM/ydK7OGbqg==", - "dev": true, - "dependencies": { - "@babel/types": "^7.20.7" - } - }, - "node_modules/@types/estree": { - "version": "0.0.39", - "resolved": "https://registry.npmjs.org/@types/estree/-/estree-0.0.39.tgz", - "integrity": "sha512-EYNwp3bU+98cpU4lAWYYL7Zz+2gryWH1qbdDTidVd6hkiR6weksdbMadyXKXNPEkQFhXM+hVO9ZygomHXp+AIw==", - "dev": true - }, - "node_modules/@types/graceful-fs": { - "version": "4.1.6", - "resolved": "https://registry.npmjs.org/@types/graceful-fs/-/graceful-fs-4.1.6.tgz", - "integrity": "sha512-Sig0SNORX9fdW+bQuTEovKj3uHcUL6LQKbCrrqb1X7J6/ReAbhCXRAhc+SMejhLELFj2QcyuxmUooZ4bt5ReSw==", - "dev": true, - "dependencies": { - "@types/node": "*" - } - }, - "node_modules/@types/istanbul-lib-coverage": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.4.tgz", - "integrity": "sha512-z/QT1XN4K4KYuslS23k62yDIDLwLFkzxOuMplDtObz0+y7VqJCaO2o+SPwHCvLFZh7xazvvoor2tA/hPz9ee7g==", - "dev": true - }, - "node_modules/@types/istanbul-lib-report": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/@types/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz", - "integrity": "sha512-plGgXAPfVKFoYfa9NpYDAkseG+g6Jr294RqeqcqDixSbU34MZVJRi/P+7Y8GDpzkEwLaGZZOpKIEmeVZNtKsrg==", - "dev": true, - "dependencies": { - "@types/istanbul-lib-coverage": "*" - } - }, - "node_modules/@types/istanbul-reports": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.1.tgz", - "integrity": "sha512-c3mAZEuK0lvBp8tmuL74XRKn1+y2dcwOUpH7x4WrF6gk1GIgiluDRgMYQtw2OFcBvAJWlt6ASU3tSqxp0Uu0Aw==", - "dev": true, - "dependencies": { - "@types/istanbul-lib-report": "*" - } - }, - "node_modules/@types/jest": { - "version": "24.9.1", - "resolved": "https://registry.npmjs.org/@types/jest/-/jest-24.9.1.tgz", - "integrity": "sha512-Fb38HkXSVA4L8fGKEZ6le5bB8r6MRWlOCZbVuWZcmOMSCd2wCYOwN1ibj8daIoV9naq7aaOZjrLCoCMptKU/4Q==", - "dev": true, - "dependencies": { - "jest-diff": "^24.3.0" - } - }, - "node_modules/@types/jsdom": { - "version": "20.0.1", - "resolved": "https://registry.npmjs.org/@types/jsdom/-/jsdom-20.0.1.tgz", - "integrity": "sha512-d0r18sZPmMQr1eG35u12FZfhIXNrnsPU/g5wvRKCUf/tOGilKKwYMYGqh33BNR6ba+2gkHw1EUiHoN3mn7E5IQ==", - "dev": true, - "dependencies": { - "@types/node": "*", - "@types/tough-cookie": "*", - "parse5": "^7.0.0" - } - }, - "node_modules/@types/linkify-it": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/@types/linkify-it/-/linkify-it-3.0.2.tgz", - "integrity": "sha512-HZQYqbiFVWufzCwexrvh694SOim8z2d+xJl5UNamcvQFejLY/2YUtzXHYi3cHdI7PMlS8ejH2slRAOJQ32aNbA==", - "dev": true - }, - "node_modules/@types/markdown-it": { - "version": "12.2.3", - "resolved": "https://registry.npmjs.org/@types/markdown-it/-/markdown-it-12.2.3.tgz", - "integrity": "sha512-GKMHFfv3458yYy+v/N8gjufHO6MSZKCOXpZc5GXIWWy8uldwfmPn98vp81gZ5f9SVw8YYBctgfJ22a2d7AOMeQ==", - "dev": true, - "dependencies": { - "@types/linkify-it": "*", - "@types/mdurl": "*" - } - }, - "node_modules/@types/mdurl": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/@types/mdurl/-/mdurl-1.0.2.tgz", - "integrity": "sha512-eC4U9MlIcu2q0KQmXszyn5Akca/0jrQmwDRgpAMJai7qBWq4amIQhZyNau4VYGtCeALvW1/NtjzJJ567aZxfKA==", - "dev": true - }, - "node_modules/@types/node": { - "version": "20.10.2", - "resolved": "https://registry.npmjs.org/@types/node/-/node-20.10.2.tgz", - "integrity": "sha512-37MXfxkb0vuIlRKHNxwCkb60PNBpR94u4efQuN4JgIAm66zfCDXGSAFCef9XUWFovX2R1ok6Z7MHhtdVXXkkIw==", - "dev": true, - "dependencies": { - "undici-types": "~5.26.4" - } - }, - "node_modules/@types/prettier": { - "version": "2.7.3", - "resolved": "https://registry.npmjs.org/@types/prettier/-/prettier-2.7.3.tgz", - "integrity": "sha512-+68kP9yzs4LMp7VNh8gdzMSPZFL44MLGqiHWvttYJe+6qnuVr4Ek9wSBQoveqY/r+LwjCcU29kNVkidwim+kYA==", - "dev": true - }, - "node_modules/@types/resolve": { - "version": "1.17.1", - "resolved": "https://registry.npmjs.org/@types/resolve/-/resolve-1.17.1.tgz", - "integrity": "sha512-yy7HuzQhj0dhGpD8RLXSZWEkLsV9ibvxvi6EiJ3bkqLAO1RGo0WbkWQiwpRlSFymTJRz0d3k5LM3kkx8ArDbLw==", - "dev": true, - "dependencies": { - "@types/node": "*" - } - }, - "node_modules/@types/stack-utils": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/@types/stack-utils/-/stack-utils-2.0.1.tgz", - "integrity": "sha512-Hl219/BT5fLAaz6NDkSuhzasy49dwQS/DSdu4MdggFB8zcXv7vflBI3xp7FEmkmdDkBUI2bPUNeMttp2knYdxw==", - "dev": true - }, - "node_modules/@types/tough-cookie": { - "version": "4.0.5", - "resolved": "https://registry.npmjs.org/@types/tough-cookie/-/tough-cookie-4.0.5.tgz", - "integrity": "sha512-/Ad8+nIOV7Rl++6f1BdKxFSMgmoqEoYbHRpPcx3JEfv8VRsQe9Z4mCXeJBzxs7mbHY/XOZZuXlRNfhpVPbs6ZA==", - "dev": true - }, - "node_modules/@types/yargs": { - "version": "17.0.24", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.24.tgz", - "integrity": "sha512-6i0aC7jV6QzQB8ne1joVZ0eSFIstHsCrobmOtghM11yGlH0j43FKL2UhWdELkyps0zuf7qVTUVCCR+tgSlyLLw==", - "dev": true, - "dependencies": { - "@types/yargs-parser": "*" - } - }, - "node_modules/@types/yargs-parser": { - "version": "21.0.0", - "resolved": "https://registry.npmjs.org/@types/yargs-parser/-/yargs-parser-21.0.0.tgz", - "integrity": "sha512-iO9ZQHkZxHn4mSakYV0vFHAVDyEOIJQrV2uZ06HxEPcx+mt8swXoZHIbaaJ2crJYFfErySgktuTZ3BeLz+XmFA==", - "dev": true - }, - "node_modules/abab": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/abab/-/abab-2.0.6.tgz", - "integrity": "sha512-j2afSsaIENvHZN2B8GOpF566vZ5WVk5opAiMTvWgaQT8DkbOqsTfvNAvHoRGU2zzP8cPoqys+xHTRDWW8L+/BA==", - "deprecated": "Use your platform's native atob() and btoa() methods instead", - "dev": true - }, - "node_modules/acorn": { - "version": "8.10.0", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.10.0.tgz", - "integrity": "sha512-F0SAmZ8iUtS//m8DmCTA0jlh6TDKkHQyK6xc6V4KDTyZKA9dnvX9/3sRTVQrWm79glUAZbnmmNcdYwUIHWVybw==", - "dev": true, - "bin": { - "acorn": "bin/acorn" - }, - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/acorn-globals": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/acorn-globals/-/acorn-globals-7.0.1.tgz", - "integrity": "sha512-umOSDSDrfHbTNPuNpC2NSnnA3LUrqpevPb4T9jRx4MagXNS0rs+gwiTcAvqCRmsD6utzsrzNt+ebm00SNWiC3Q==", - "dev": true, - "dependencies": { - "acorn": "^8.1.0", - "acorn-walk": "^8.0.2" - } - }, - "node_modules/acorn-jsx": { - "version": "5.3.2", - "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", - "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", - "dev": true, - "peerDependencies": { - "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" - } - }, - "node_modules/acorn-walk": { - "version": "8.2.0", - "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.2.0.tgz", - "integrity": "sha512-k+iyHEuPgSw6SbuDpGQM+06HQUa04DZ3o+F6CSzXMvvI5KMvnaEqXe+YVe555R9nn6GPt404fos4wcgpw12SDA==", - "dev": true, - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/agent-base": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz", - "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==", - "dev": true, - "dependencies": { - "debug": "4" - }, - "engines": { - "node": ">= 6.0.0" - } - }, - "node_modules/ansi-escapes": { - "version": "4.3.2", - "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz", - "integrity": "sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==", - "dev": true, - "dependencies": { - "type-fest": "^0.21.3" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/ansi-regex": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.1.tgz", - "integrity": "sha512-ILlv4k/3f6vfQ4OoP2AGvirOktlQ98ZEL1k9FaQjxa3L1abBgbuTDAdPOpvbGncC0BTVQrl+OM8xZGK6tWXt7g==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "dev": true, - "dependencies": { - "color-convert": "^1.9.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/anymatch": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", - "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", - "dev": true, - "dependencies": { - "normalize-path": "^3.0.0", - "picomatch": "^2.0.4" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/arg": { - "version": "4.1.3", - "resolved": "https://registry.npmjs.org/arg/-/arg-4.1.3.tgz", - "integrity": "sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==", - "dev": true - }, - "node_modules/argparse": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", - "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", - "dev": true, - "dependencies": { - "sprintf-js": "~1.0.2" - } - }, - "node_modules/asmcrypto.js": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/asmcrypto.js/-/asmcrypto.js-2.3.2.tgz", - "integrity": "sha512-3FgFARf7RupsZETQ1nHnhLUUvpcttcCq1iZCaVAbJZbCZ5VNRrNyvpDyHTOb0KC3llFcsyOT/a99NZcCbeiEsA==" - }, - "node_modules/asn1": { - "version": "0.2.6", - "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.6.tgz", - "integrity": "sha512-ix/FxPn0MDjeyJ7i/yoHGFt/EX6LyNbxSEhPPXODPL+KB0VPk86UYfL0lMdy+KCnv+fmvIzySwaK5COwqVbWTQ==", - "dependencies": { - "safer-buffer": "~2.1.0" - } - }, - "node_modules/asynckit": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", - "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=" - }, - "node_modules/babel-jest": { - "version": "29.6.1", - "resolved": "https://registry.npmjs.org/babel-jest/-/babel-jest-29.6.1.tgz", - "integrity": "sha512-qu+3bdPEQC6KZSPz+4Fyjbga5OODNcp49j6GKzG1EKbkfyJBxEYGVUmVGpwCSeGouG52R4EgYMLb6p9YeEEQ4A==", - "dev": true, - "dependencies": { - "@jest/transform": "^29.6.1", - "@types/babel__core": "^7.1.14", - "babel-plugin-istanbul": "^6.1.1", - "babel-preset-jest": "^29.5.0", - "chalk": "^4.0.0", - "graceful-fs": "^4.2.9", - "slash": "^3.0.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - }, - "peerDependencies": { - "@babel/core": "^7.8.0" - } - }, - "node_modules/babel-jest/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/babel-jest/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/babel-jest/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/babel-jest/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "node_modules/babel-jest/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/babel-jest/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/babel-plugin-istanbul": { - "version": "6.1.1", - "resolved": "https://registry.npmjs.org/babel-plugin-istanbul/-/babel-plugin-istanbul-6.1.1.tgz", - "integrity": "sha512-Y1IQok9821cC9onCx5otgFfRm7Lm+I+wwxOx738M/WLPZ9Q42m4IG5W0FNX8WLL2gYMZo3JkuXIH2DOpWM+qwA==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.0.0", - "@istanbuljs/load-nyc-config": "^1.0.0", - "@istanbuljs/schema": "^0.1.2", - "istanbul-lib-instrument": "^5.0.4", - "test-exclude": "^6.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/babel-plugin-jest-hoist": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-29.5.0.tgz", - "integrity": "sha512-zSuuuAlTMT4mzLj2nPnUm6fsE6270vdOfnpbJ+RmruU75UhLFvL0N2NgI7xpeS7NaB6hGqmd5pVpGTDYvi4Q3w==", - "dev": true, - "dependencies": { - "@babel/template": "^7.3.3", - "@babel/types": "^7.3.3", - "@types/babel__core": "^7.1.14", - "@types/babel__traverse": "^7.0.6" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/babel-plugin-polyfill-corejs2": { - "version": "0.4.6", - "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs2/-/babel-plugin-polyfill-corejs2-0.4.6.tgz", - "integrity": "sha512-jhHiWVZIlnPbEUKSSNb9YoWcQGdlTLq7z1GHL4AjFxaoOUMuuEVJ+Y4pAaQUGOGk93YsVCKPbqbfw3m0SM6H8Q==", - "dev": true, - "dependencies": { - "@babel/compat-data": "^7.22.6", - "@babel/helper-define-polyfill-provider": "^0.4.3", - "semver": "^6.3.1" - }, - "peerDependencies": { - "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0" - } - }, - "node_modules/babel-plugin-polyfill-corejs3": { - "version": "0.8.6", - "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.8.6.tgz", - "integrity": "sha512-leDIc4l4tUgU7str5BWLS2h8q2N4Nf6lGZP6UrNDxdtfF2g69eJ5L0H7S8A5Ln/arfFAfHor5InAdZuIOwZdgQ==", - "dev": true, - "dependencies": { - "@babel/helper-define-polyfill-provider": "^0.4.3", - "core-js-compat": "^3.33.1" - }, - "peerDependencies": { - "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0" - } - }, - "node_modules/babel-plugin-polyfill-regenerator": { - "version": "0.5.3", - "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-regenerator/-/babel-plugin-polyfill-regenerator-0.5.3.tgz", - "integrity": "sha512-8sHeDOmXC8csczMrYEOf0UTNa4yE2SxV5JGeT/LP1n0OYVDUUFPxG9vdk2AlDlIit4t+Kf0xCtpgXPBwnn/9pw==", - "dev": true, - "dependencies": { - "@babel/helper-define-polyfill-provider": "^0.4.3" - }, - "peerDependencies": { - "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0" - } - }, - "node_modules/babel-preset-current-node-syntax": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/babel-preset-current-node-syntax/-/babel-preset-current-node-syntax-1.0.1.tgz", - "integrity": "sha512-M7LQ0bxarkxQoN+vz5aJPsLBn77n8QgTFmo8WK0/44auK2xlCXrYcUxHFxgU7qW5Yzw/CjmLRK2uJzaCd7LvqQ==", - "dev": true, - "dependencies": { - "@babel/plugin-syntax-async-generators": "^7.8.4", - "@babel/plugin-syntax-bigint": "^7.8.3", - "@babel/plugin-syntax-class-properties": "^7.8.3", - "@babel/plugin-syntax-import-meta": "^7.8.3", - "@babel/plugin-syntax-json-strings": "^7.8.3", - "@babel/plugin-syntax-logical-assignment-operators": "^7.8.3", - "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3", - "@babel/plugin-syntax-numeric-separator": "^7.8.3", - "@babel/plugin-syntax-object-rest-spread": "^7.8.3", - "@babel/plugin-syntax-optional-catch-binding": "^7.8.3", - "@babel/plugin-syntax-optional-chaining": "^7.8.3", - "@babel/plugin-syntax-top-level-await": "^7.8.3" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/babel-preset-jest": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/babel-preset-jest/-/babel-preset-jest-29.5.0.tgz", - "integrity": "sha512-JOMloxOqdiBSxMAzjRaH023/vvcaSaec49zvg+2LmNsktC7ei39LTJGw02J+9uUtTZUq6xbLyJ4dxe9sSmIuAg==", - "dev": true, - "dependencies": { - "babel-plugin-jest-hoist": "^29.5.0", - "babel-preset-current-node-syntax": "^1.0.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/balanced-match": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", - "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", - "dev": true - }, - "node_modules/bluebird": { - "version": "3.7.2", - "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.7.2.tgz", - "integrity": "sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg==", - "dev": true - }, - "node_modules/brace-expansion": { - "version": "1.1.12", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.12.tgz", - "integrity": "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==", - "dev": true, - "license": "MIT", - "dependencies": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "node_modules/braces": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", - "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", - "dev": true, - "dependencies": { - "fill-range": "^7.1.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/browserslist": { - "version": "4.22.1", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.22.1.tgz", - "integrity": "sha512-FEVc202+2iuClEhZhrWy6ZiAcRLvNMyYcxZ8raemul1DYVOVdFsbqckWLdsixQZCpJlwe77Z3UTalE7jsjnKfQ==", - "dev": true, - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/browserslist" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/browserslist" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "dependencies": { - "caniuse-lite": "^1.0.30001541", - "electron-to-chromium": "^1.4.535", - "node-releases": "^2.0.13", - "update-browserslist-db": "^1.0.13" - }, - "bin": { - "browserslist": "cli.js" - }, - "engines": { - "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" - } - }, - "node_modules/bs-logger": { - "version": "0.2.6", - "resolved": "https://registry.npmjs.org/bs-logger/-/bs-logger-0.2.6.tgz", - "integrity": "sha512-pd8DCoxmbgc7hyPKOvxtqNcjYoOsABPQdcCUjGp3d42VR2CX1ORhk2A87oqqu5R1kk+76nsxZupkmyd+MVtCog==", - "dev": true, - "dependencies": { - "fast-json-stable-stringify": "2.x" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/bser": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/bser/-/bser-2.1.1.tgz", - "integrity": "sha512-gQxTNE/GAfIIrmHLUE3oJyp5FO6HRBfhjnw4/wMmA63ZGDJnWBmgY/lyQBpnDUkGmAhbSe39tx2d/iTOAfglwQ==", - "dev": true, - "dependencies": { - "node-int64": "^0.4.0" - } - }, - "node_modules/buffer-from": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", - "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", - "dev": true - }, - "node_modules/builtin-modules": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-3.3.0.tgz", - "integrity": "sha512-zhaCDicdLuWN5UbN5IMnFqNMhNfo919sH85y2/ea+5Yg9TsTkeZxpL+JLbp6cgYFS4sRLp3YV4S6yDuqVWHYOw==", - "dev": true, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/call-bind-apply-helpers": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz", - "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==", - "license": "MIT", - "dependencies": { - "es-errors": "^1.3.0", - "function-bind": "^1.1.2" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/callsites": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", - "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/camelcase": { - "version": "5.3.1", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", - "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/caniuse-lite": { - "version": "1.0.30001565", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001565.tgz", - "integrity": "sha512-xrE//a3O7TP0vaJ8ikzkD2c2NgcVUvsEe2IvFTntV4Yd1Z9FVzh+gW+enX96L0psrbaFMcVcH2l90xNuGDWc8w==", - "dev": true, - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/browserslist" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/caniuse-lite" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ] - }, - "node_modules/catharsis": { - "version": "0.9.0", - "resolved": "https://registry.npmjs.org/catharsis/-/catharsis-0.9.0.tgz", - "integrity": "sha512-prMTQVpcns/tzFgFVkVp6ak6RykZyWb3gu8ckUpd6YkTlacOd3DXGJjIpD4Q6zJirizvaiAjSSHlOsA+6sNh2A==", - "dev": true, - "dependencies": { - "lodash": "^4.17.15" - }, - "engines": { - "node": ">= 10" - } - }, - "node_modules/chalk": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", - "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", - "dev": true, - "dependencies": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/char-regex": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/char-regex/-/char-regex-1.0.2.tgz", - "integrity": "sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw==", - "dev": true, - "engines": { - "node": ">=10" - } - }, - "node_modules/ci-info": { - "version": "3.8.0", - "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-3.8.0.tgz", - "integrity": "sha512-eXTggHWSooYhq49F2opQhuHWgzucfF2YgODK4e1566GQs5BIfP30B0oenwBJHfWxAs2fyPB1s7Mg949zLf61Yw==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/sibiraj-s" - } - ], - "engines": { - "node": ">=8" - } - }, - "node_modules/cjs-module-lexer": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/cjs-module-lexer/-/cjs-module-lexer-1.2.3.tgz", - "integrity": "sha512-0TNiGstbQmCFwt4akjjBg5pLRTSyj/PkWQ1ZoO2zntmg9yLqSRxwEa4iCfQLGjqhiqBfOJa7W/E8wfGrTDmlZQ==", - "dev": true - }, - "node_modules/cliui": { - "version": "8.0.1", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", - "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", - "dev": true, - "dependencies": { - "string-width": "^4.2.0", - "strip-ansi": "^6.0.1", - "wrap-ansi": "^7.0.0" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/co": { - "version": "4.6.0", - "resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz", - "integrity": "sha512-QVb0dM5HvG+uaxitm8wONl7jltx8dqhfU33DcqtOZcLSVIKSDDLDi7+0LbAKiyI8hD9u42m2YxXSkMGWThaecQ==", - "dev": true, - "engines": { - "iojs": ">= 1.0.0", - "node": ">= 0.12.0" - } - }, - "node_modules/collect-v8-coverage": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/collect-v8-coverage/-/collect-v8-coverage-1.0.2.tgz", - "integrity": "sha512-lHl4d5/ONEbLlJvaJNtsF/Lz+WvB07u2ycqTYbdrq7UypDXailES4valYb2eWiJFxZlVmpGekfqoxQhzyFdT4Q==", - "dev": true - }, - "node_modules/color-convert": { - "version": "1.9.3", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", - "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", - "dev": true, - "dependencies": { - "color-name": "1.1.3" - } - }, - "node_modules/color-name": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", - "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", - "dev": true - }, - "node_modules/combined-stream": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", - "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", - "dependencies": { - "delayed-stream": "~1.0.0" - }, - "engines": { - "node": ">= 0.8" - } - }, - "node_modules/commondir": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/commondir/-/commondir-1.0.1.tgz", - "integrity": "sha512-W9pAhw0ja1Edb5GVdIF1mjZw/ASI0AlShXM83UUGe2DVr5TdAPEA1OA8m/g8zWp9x6On7gqufY+FatDbC3MDQg==", - "dev": true - }, - "node_modules/concat-map": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", - "dev": true - }, - "node_modules/convert-source-map": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", - "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==", - "dev": true - }, - "node_modules/core-js-compat": { - "version": "3.33.3", - "resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.33.3.tgz", - "integrity": "sha512-cNzGqFsh3Ot+529GIXacjTJ7kegdt5fPXxCBVS1G0iaZpuo/tBz399ymceLJveQhFFZ8qThHiP3fzuoQjKN2ow==", - "dev": true, - "dependencies": { - "browserslist": "^4.22.1" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/core-js" - } - }, - "node_modules/cross-spawn": { - "version": "7.0.6", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", - "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", - "dev": true, - "license": "MIT", - "dependencies": { - "path-key": "^3.1.0", - "shebang-command": "^2.0.0", - "which": "^2.0.1" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/cssom": { - "version": "0.5.0", - "resolved": "https://registry.npmjs.org/cssom/-/cssom-0.5.0.tgz", - "integrity": "sha512-iKuQcq+NdHqlAcwUY0o/HL69XQrUaQdMjmStJ8JFmUaiiQErlhrmuigkg/CU4E2J0IyUKUrMAgl36TvN67MqTw==", - "dev": true - }, - "node_modules/cssstyle": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/cssstyle/-/cssstyle-2.3.0.tgz", - "integrity": "sha512-AZL67abkUzIuvcHqk7c09cezpGNcxUxU4Ioi/05xHk4DQeTkWmGYftIE6ctU6AEt+Gn4n1lDStOtj7FKycP71A==", - "dev": true, - "dependencies": { - "cssom": "~0.3.6" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/cssstyle/node_modules/cssom": { - "version": "0.3.8", - "resolved": "https://registry.npmjs.org/cssom/-/cssom-0.3.8.tgz", - "integrity": "sha512-b0tGHbfegbhPJpxpiBPU2sCkigAqtM9O121le6bbOlgyV+NyGyCmVfJ6QW9eRjz8CpNfWEOYBIMIGRYkLwsIYg==", - "dev": true - }, - "node_modules/data-urls": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/data-urls/-/data-urls-3.0.2.tgz", - "integrity": "sha512-Jy/tj3ldjZJo63sVAvg6LHt2mHvl4V6AgRAmNDtLdm7faqtsx+aJG42rsyCo9JCoRVKwPFzKlIPx3DIibwSIaQ==", - "dev": true, - "dependencies": { - "abab": "^2.0.6", - "whatwg-mimetype": "^3.0.0", - "whatwg-url": "^11.0.0" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/debug": { - "version": "4.3.4", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", - "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", - "dev": true, - "dependencies": { - "ms": "2.1.2" - }, - "engines": { - "node": ">=6.0" - }, - "peerDependenciesMeta": { - "supports-color": { - "optional": true - } - } - }, - "node_modules/decimal.js": { - "version": "10.4.3", - "resolved": "https://registry.npmjs.org/decimal.js/-/decimal.js-10.4.3.tgz", - "integrity": "sha512-VBBaLc1MgL5XpzgIP7ny5Z6Nx3UrRkIViUkPUdtl9aya5amy3De1gsUUSB1g3+3sExYNjCAsAznmukyxCb1GRA==", - "dev": true - }, - "node_modules/dedent": { - "version": "0.7.0", - "resolved": "https://registry.npmjs.org/dedent/-/dedent-0.7.0.tgz", - "integrity": "sha512-Q6fKUPqnAHAyhiUgFU7BUzLiv0kd8saH9al7tnu5Q/okj6dnupxyTgFIBjVzJATdfIAm9NAsvXNzjaKa+bxVyA==", - "dev": true - }, - "node_modules/deep-is": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", - "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", - "dev": true - }, - "node_modules/deepmerge": { - "version": "4.2.2", - "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.2.2.tgz", - "integrity": "sha512-FJ3UgI4gIl+PHZm53knsuSFpE+nESMr7M4v9QcgB7S63Kj/6WqMiFQJpBBYz1Pt+66bZpP3Q7Lye0Oo9MPKEdg==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/delayed-stream": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", - "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk=", - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/detect-newline": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/detect-newline/-/detect-newline-3.1.0.tgz", - "integrity": "sha512-TLz+x/vEXm/Y7P7wn1EJFNLxYpUD4TgMosxY6fAVJUnJMbupHBOncxyWUG9OpTaH9EBD7uFI5LfEgmMOc54DsA==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/diff": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", - "integrity": "sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==", - "dev": true, - "engines": { - "node": ">=0.3.1" - } - }, - "node_modules/diff-sequences": { - "version": "24.9.0", - "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-24.9.0.tgz", - "integrity": "sha512-Dj6Wk3tWyTE+Fo1rW8v0Xhwk80um6yFYKbuAxc9c3EZxIHFDYwbi34Uk42u1CdnIiVorvt4RmlSDjIPyzGC2ew==", - "dev": true, - "engines": { - "node": ">= 6" - } - }, - "node_modules/domexception": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/domexception/-/domexception-4.0.0.tgz", - "integrity": "sha512-A2is4PLG+eeSfoTMA95/s4pvAoSo2mKtiM5jlHkAVewmiO8ISFTFKZjH7UAM1Atli/OT/7JHOrJRJiMKUZKYBw==", - "deprecated": "Use your platform's native DOMException instead", - "dev": true, - "dependencies": { - "webidl-conversions": "^7.0.0" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/dunder-proto": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz", - "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==", - "license": "MIT", - "dependencies": { - "call-bind-apply-helpers": "^1.0.1", - "es-errors": "^1.3.0", - "gopd": "^1.2.0" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/electron-to-chromium": { - "version": "1.4.600", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.600.tgz", - "integrity": "sha512-KD6CWjf1BnQG+NsXuyiTDDT1eV13sKuYsOUioXkQweYTQIbgHkXPry9K7M+7cKtYHnSUPitVaLrXYB1jTkkYrw==", - "dev": true - }, - "node_modules/emittery": { - "version": "0.13.1", - "resolved": "https://registry.npmjs.org/emittery/-/emittery-0.13.1.tgz", - "integrity": "sha512-DeWwawk6r5yR9jFgnDKYt4sLS0LmHJJi3ZOnb5/JdbYwj3nW+FxQnHIjhBKz8YLC7oRNPVM9NQ47I3CVx34eqQ==", - "dev": true, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sindresorhus/emittery?sponsor=1" - } - }, - "node_modules/emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", - "dev": true - }, - "node_modules/entities": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/entities/-/entities-2.1.0.tgz", - "integrity": "sha512-hCx1oky9PFrJ611mf0ifBLBRW8lUUVRlFolb5gWRfIELabBlbp9xZvrqZLZAs+NxFnbfQoeGd8wDkygjg7U85w==", - "dev": true, - "funding": { - "url": "https://github.com/fb55/entities?sponsor=1" - } - }, - "node_modules/error-ex": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", - "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==", - "dev": true, - "dependencies": { - "is-arrayish": "^0.2.1" - } - }, - "node_modules/es-define-property": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz", - "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==", - "license": "MIT", - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/es-errors": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", - "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", - "license": "MIT", - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/es-object-atoms": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz", - "integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==", - "license": "MIT", - "dependencies": { - "es-errors": "^1.3.0" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/es-set-tostringtag": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.1.0.tgz", - "integrity": "sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==", - "license": "MIT", - "dependencies": { - "es-errors": "^1.3.0", - "get-intrinsic": "^1.2.6", - "has-tostringtag": "^1.0.2", - "hasown": "^2.0.2" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/escalade": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", - "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/escape-string-regexp": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", - "dev": true, - "engines": { - "node": ">=0.8.0" - } - }, - "node_modules/escodegen": { - "version": "1.14.3", - "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-1.14.3.tgz", - "integrity": "sha512-qFcX0XJkdg+PB3xjZZG/wKSuT1PnQWx57+TVSjIMmILd2yC/6ByYElPwJnslDsuWuSAp4AwJGumarAAmJch5Kw==", - "dev": true, - "dependencies": { - "esprima": "^4.0.1", - "estraverse": "^4.2.0", - "esutils": "^2.0.2", - "optionator": "^0.8.1" - }, - "bin": { - "escodegen": "bin/escodegen.js", - "esgenerate": "bin/esgenerate.js" - }, - "engines": { - "node": ">=4.0" - }, - "optionalDependencies": { - "source-map": "~0.6.1" - } - }, - "node_modules/escodegen/node_modules/estraverse": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", - "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", - "dev": true, - "engines": { - "node": ">=4.0" - } - }, - "node_modules/eslint-visitor-keys": { - "version": "3.4.1", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.1.tgz", - "integrity": "sha512-pZnmmLwYzf+kWaM/Qgrvpen51upAktaaiI01nsJD/Yr3lMOdNtq0cxkrrg16w64VtisN6okbs7Q8AfGqj4c9fA==", - "dev": true, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/espree": { - "version": "9.6.1", - "resolved": "https://registry.npmjs.org/espree/-/espree-9.6.1.tgz", - "integrity": "sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==", - "dev": true, - "dependencies": { - "acorn": "^8.9.0", - "acorn-jsx": "^5.3.2", - "eslint-visitor-keys": "^3.4.1" - }, - "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" - }, - "funding": { - "url": "https://opencollective.com/eslint" - } - }, - "node_modules/esprima": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", - "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", - "dev": true, - "bin": { - "esparse": "bin/esparse.js", - "esvalidate": "bin/esvalidate.js" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/estraverse": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", - "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", - "dev": true, - "engines": { - "node": ">=4.0" - } - }, - "node_modules/estree-walker": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-1.0.1.tgz", - "integrity": "sha512-1fMXF3YP4pZZVozF8j/ZLfvnR8NSIljt56UhbZ5PeeDmmGHpgpdwQt7ITlGvYaQukCvuBRMLEiKiYC+oeIg4cg==", - "dev": true - }, - "node_modules/esutils": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", - "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/execa": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz", - "integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==", - "dev": true, - "dependencies": { - "cross-spawn": "^7.0.3", - "get-stream": "^6.0.0", - "human-signals": "^2.1.0", - "is-stream": "^2.0.0", - "merge-stream": "^2.0.0", - "npm-run-path": "^4.0.1", - "onetime": "^5.1.2", - "signal-exit": "^3.0.3", - "strip-final-newline": "^2.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sindresorhus/execa?sponsor=1" - } - }, - "node_modules/exit": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/exit/-/exit-0.1.2.tgz", - "integrity": "sha512-Zk/eNKV2zbjpKzrsQ+n1G6poVbErQxJ0LBOJXaKZ1EViLzH+hrLu9cdXI4zw9dBQJslwBEpbQ2P1oS7nDxs6jQ==", - "dev": true, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/expect": { - "version": "29.6.1", - "resolved": "https://registry.npmjs.org/expect/-/expect-29.6.1.tgz", - "integrity": "sha512-XEdDLonERCU1n9uR56/Stx9OqojaLAQtZf9PrCHH9Hl8YXiEIka3H4NXJ3NOIBmQJTg7+j7buh34PMHfJujc8g==", - "dev": true, - "dependencies": { - "@jest/expect-utils": "^29.6.1", - "@types/node": "*", - "jest-get-type": "^29.4.3", - "jest-matcher-utils": "^29.6.1", - "jest-message-util": "^29.6.1", - "jest-util": "^29.6.1" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/expect/node_modules/jest-get-type": { - "version": "29.4.3", - "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.4.3.tgz", - "integrity": "sha512-J5Xez4nRRMjk8emnTpWrlkyb9pfRQQanDrvWHhsR1+VUfbwxi30eVcZFlcdGInRibU4G5LwHXpI7IRHU0CY+gg==", - "dev": true, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/fast-json-stable-stringify": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", - "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", - "dev": true - }, - "node_modules/fast-levenshtein": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", - "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", - "dev": true - }, - "node_modules/faye-websocket": { - "version": "0.11.4", - "resolved": "https://registry.npmjs.org/faye-websocket/-/faye-websocket-0.11.4.tgz", - "integrity": "sha512-CzbClwlXAuiRQAlUyfqPgvPoNKTckTPGfwZV4ZdAhVcP2lh9KUxJg2b5GkE7XbjKQ3YJnQ9z6D9ntLAlB+tP8g==", - "dependencies": { - "websocket-driver": ">=0.5.1" - }, - "engines": { - "node": ">=0.8.0" - } - }, - "node_modules/fb-watchman": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/fb-watchman/-/fb-watchman-2.0.2.tgz", - "integrity": "sha512-p5161BqbuCaSnB8jIbzQHOlpgsPmK5rJVDfDKO91Axs5NC1uu3HRQm6wt9cd9/+GtQQIO53JdGXXoyDpTAsgYA==", - "dev": true, - "dependencies": { - "bser": "2.1.1" - } - }, - "node_modules/fill-range": { - "version": "7.1.1", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", - "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", - "dev": true, - "dependencies": { - "to-regex-range": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/find-cache-dir": { - "version": "3.3.2", - "resolved": "https://registry.npmjs.org/find-cache-dir/-/find-cache-dir-3.3.2.tgz", - "integrity": "sha512-wXZV5emFEjrridIgED11OoUKLxiYjAcqot/NJdAkOhlJ+vGzwhOAfcG5OX1jP+S0PcjEn8bdMJv+g2jwQ3Onig==", - "dev": true, - "dependencies": { - "commondir": "^1.0.1", - "make-dir": "^3.0.2", - "pkg-dir": "^4.1.0" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/avajs/find-cache-dir?sponsor=1" - } - }, - "node_modules/find-up": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", - "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", - "dev": true, - "dependencies": { - "locate-path": "^5.0.0", - "path-exists": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/form-data": { - "version": "4.0.4", - "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.4.tgz", - "integrity": "sha512-KrGhL9Q4zjj0kiUt5OO4Mr/A/jlI2jDYs5eHBpYHPcBEVSiipAvn2Ko2HnPe20rmcuuvMHNdZFp+4IlGTMF0Ow==", - "license": "MIT", - "dependencies": { - "asynckit": "^0.4.0", - "combined-stream": "^1.0.8", - "es-set-tostringtag": "^2.1.0", - "hasown": "^2.0.2", - "mime-types": "^2.1.12" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/fs-extra": { - "version": "10.1.0", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.1.0.tgz", - "integrity": "sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==", - "dev": true, - "dependencies": { - "graceful-fs": "^4.2.0", - "jsonfile": "^6.0.1", - "universalify": "^2.0.0" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/fs.realpath": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", - "dev": true - }, - "node_modules/fsevents": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", - "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", - "dev": true, - "hasInstallScript": true, - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": "^8.16.0 || ^10.6.0 || >=11.0.0" - } - }, - "node_modules/function-bind": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", - "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", - "license": "MIT", - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/gensync": { - "version": "1.0.0-beta.2", - "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", - "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", - "dev": true, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/get-caller-file": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", - "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", - "dev": true, - "engines": { - "node": "6.* || 8.* || >= 10.*" - } - }, - "node_modules/get-intrinsic": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz", - "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==", - "license": "MIT", - "dependencies": { - "call-bind-apply-helpers": "^1.0.2", - "es-define-property": "^1.0.1", - "es-errors": "^1.3.0", - "es-object-atoms": "^1.1.1", - "function-bind": "^1.1.2", - "get-proto": "^1.0.1", - "gopd": "^1.2.0", - "has-symbols": "^1.1.0", - "hasown": "^2.0.2", - "math-intrinsics": "^1.1.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/get-package-type": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/get-package-type/-/get-package-type-0.1.0.tgz", - "integrity": "sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q==", - "dev": true, - "engines": { - "node": ">=8.0.0" - } - }, - "node_modules/get-proto": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz", - "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==", - "license": "MIT", - "dependencies": { - "dunder-proto": "^1.0.1", - "es-object-atoms": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/get-stream": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz", - "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/glob": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.0.tgz", - "integrity": "sha512-lmLf6gtyrPq8tTjSmrO94wBeQbFR3HbLHbuyD69wuyQkImp2hWqMGB47OX65FBkPffO641IP9jWa1z4ivqG26Q==", - "dev": true, - "dependencies": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.0.4", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - }, - "engines": { - "node": "*" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/globals": { - "version": "11.12.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", - "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/gopd": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz", - "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==", - "license": "MIT", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/graceful-fs": { - "version": "4.2.10", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.10.tgz", - "integrity": "sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA==", - "dev": true - }, - "node_modules/has": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", - "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", - "dev": true, - "dependencies": { - "function-bind": "^1.1.1" - }, - "engines": { - "node": ">= 0.4.0" - } - }, - "node_modules/has-flag": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/has-symbols": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz", - "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==", - "license": "MIT", - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/has-tostringtag": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz", - "integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==", - "license": "MIT", - "dependencies": { - "has-symbols": "^1.0.3" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/hasown": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", - "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", - "license": "MIT", - "dependencies": { - "function-bind": "^1.1.2" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/html-encoding-sniffer": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/html-encoding-sniffer/-/html-encoding-sniffer-3.0.0.tgz", - "integrity": "sha512-oWv4T4yJ52iKrufjnyZPkrN0CH3QnrUqdB6In1g5Fe1mia8GmF36gnfNySxoZtxD5+NmYw1EElVXiBk93UeskA==", - "dev": true, - "dependencies": { - "whatwg-encoding": "^2.0.0" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/html-escaper": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/html-escaper/-/html-escaper-2.0.2.tgz", - "integrity": "sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==", - "dev": true - }, - "node_modules/http-parser-js": { - "version": "0.5.6", - "resolved": "https://registry.npmjs.org/http-parser-js/-/http-parser-js-0.5.6.tgz", - "integrity": "sha512-vDlkRPDJn93swjcjqMSaGSPABbIarsr1TLAui/gLDXzV5VsJNdXNzMYDyNBLQkjWQCJ1uizu8T2oDMhmGt0PRA==" - }, - "node_modules/http-proxy-agent": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-5.0.0.tgz", - "integrity": "sha512-n2hY8YdoRE1i7r6M0w9DIw5GgZN0G25P8zLCRQ8rjXtTU3vsNFBI/vWK/UIeE6g5MUUz6avwAPXmL6Fy9D/90w==", - "dev": true, - "dependencies": { - "@tootallnate/once": "2", - "agent-base": "6", - "debug": "4" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/https-proxy-agent": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz", - "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==", - "dev": true, - "dependencies": { - "agent-base": "6", - "debug": "4" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/human-signals": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz", - "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==", - "dev": true, - "engines": { - "node": ">=10.17.0" - } - }, - "node_modules/iconv-lite": { - "version": "0.6.3", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz", - "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==", - "dev": true, - "dependencies": { - "safer-buffer": ">= 2.1.2 < 3.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/import-local": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/import-local/-/import-local-3.1.0.tgz", - "integrity": "sha512-ASB07uLtnDs1o6EHjKpX34BKYDSqnFerfTOJL2HvMqF70LnxpjkzDB8J44oT9pu4AMPkQwf8jl6szgvNd2tRIg==", - "dev": true, - "dependencies": { - "pkg-dir": "^4.2.0", - "resolve-cwd": "^3.0.0" - }, - "bin": { - "import-local-fixture": "fixtures/cli.js" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/imurmurhash": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", - "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", - "dev": true, - "engines": { - "node": ">=0.8.19" - } - }, - "node_modules/inflight": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", - "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", - "dev": true, - "dependencies": { - "once": "^1.3.0", - "wrappy": "1" - } - }, - "node_modules/inherits": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", - "dev": true - }, - "node_modules/is-arrayish": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", - "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==", - "dev": true - }, - "node_modules/is-builtin-module": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/is-builtin-module/-/is-builtin-module-3.1.0.tgz", - "integrity": "sha512-OV7JjAgOTfAFJmHZLvpSTb4qi0nIILDV1gWPYDnDJUTNFM5aGlRAhk4QcT8i7TuAleeEV5Fdkqn3t4mS+Q11fg==", - "dev": true, - "dependencies": { - "builtin-modules": "^3.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/is-core-module": { - "version": "2.12.1", - "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.12.1.tgz", - "integrity": "sha512-Q4ZuBAe2FUsKtyQJoQHlvP8OvBERxO3jEmy1I7hcRXcJBGGHFh/aJBswbXuS9sgrDH2QUO8ilkwNPHvHMd8clg==", - "dev": true, - "dependencies": { - "has": "^1.0.3" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/is-generator-fn": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-generator-fn/-/is-generator-fn-2.1.0.tgz", - "integrity": "sha512-cTIB4yPYL/Grw0EaSzASzg6bBy9gqCofvWN8okThAYIxKJZC+udlRAmGbM0XLeniEJSs8uEgHPGuHSe1XsOLSQ==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/is-module": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-module/-/is-module-1.0.0.tgz", - "integrity": "sha512-51ypPSPCoTEIN9dy5Oy+h4pShgJmPCygKfyRCISBI+JoWT/2oJvK8QPxmwv7b/p239jXrm9M1mlQbyKJ5A152g==", - "dev": true - }, - "node_modules/is-number": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", - "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", - "dev": true, - "engines": { - "node": ">=0.12.0" - } - }, - "node_modules/is-potential-custom-element-name": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-potential-custom-element-name/-/is-potential-custom-element-name-1.0.1.tgz", - "integrity": "sha512-bCYeRA2rVibKZd+s2625gGnGF/t7DSqDs4dP7CrLA1m7jKWz6pps0LpYLJN8Q64HtmPKJ1hrN3nzPNKFEKOUiQ==", - "dev": true - }, - "node_modules/is-reference": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/is-reference/-/is-reference-1.2.1.tgz", - "integrity": "sha512-U82MsXXiFIrjCK4otLT+o2NA2Cd2g5MLoOVXUZjIOhLurrRxpEXzI8O0KZHr3IjLvlAH1kTPYSuqer5T9ZVBKQ==", - "dev": true, - "dependencies": { - "@types/estree": "*" - } - }, - "node_modules/is-stream": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", - "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==", - "dev": true, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/isexe": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", - "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", - "dev": true - }, - "node_modules/istanbul-lib-coverage": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.0.tgz", - "integrity": "sha512-eOeJ5BHCmHYvQK7xt9GkdHuzuCGS1Y6g9Gvnx3Ym33fz/HpLRYxiS0wHNr+m/MBC8B647Xt608vCDEvhl9c6Mw==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/istanbul-lib-instrument": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-5.2.1.tgz", - "integrity": "sha512-pzqtp31nLv/XFOzXGuvhCb8qhjmTVo5vjVk19XE4CRlSWz0KoeJ3bw9XsA7nOp9YBf4qHjwBxkDzKcME/J29Yg==", - "dev": true, - "dependencies": { - "@babel/core": "^7.12.3", - "@babel/parser": "^7.14.7", - "@istanbuljs/schema": "^0.1.2", - "istanbul-lib-coverage": "^3.2.0", - "semver": "^6.3.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/istanbul-lib-report": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz", - "integrity": "sha512-wcdi+uAKzfiGT2abPpKZ0hSU1rGQjUQnLvtY5MpQ7QCTahD3VODhcu4wcfY1YtkGaDD5yuydOLINXsfbus9ROw==", - "dev": true, - "dependencies": { - "istanbul-lib-coverage": "^3.0.0", - "make-dir": "^3.0.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/istanbul-lib-report/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/istanbul-lib-report/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/istanbul-lib-source-maps": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/istanbul-lib-source-maps/-/istanbul-lib-source-maps-4.0.1.tgz", - "integrity": "sha512-n3s8EwkdFIJCG3BPKBYvskgXGoy88ARzvegkitk60NxRdwltLOTaH7CUiMRXvwYorl0Q712iEjcWB+fK/MrWVw==", - "dev": true, - "dependencies": { - "debug": "^4.1.1", - "istanbul-lib-coverage": "^3.0.0", - "source-map": "^0.6.1" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/istanbul-reports": { - "version": "3.1.5", - "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.1.5.tgz", - "integrity": "sha512-nUsEMa9pBt/NOHqbcbeJEgqIlY/K7rVWUX6Lql2orY5e9roQOthbR3vtY4zzf2orPELg80fnxxk9zUyPlgwD1w==", - "dev": true, - "dependencies": { - "html-escaper": "^2.0.0", - "istanbul-lib-report": "^3.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/jest": { - "version": "29.6.1", - "resolved": "https://registry.npmjs.org/jest/-/jest-29.6.1.tgz", - "integrity": "sha512-Nirw5B4nn69rVUZtemCQhwxOBhm0nsp3hmtF4rzCeWD7BkjAXRIji7xWQfnTNbz9g0aVsBX6aZK3n+23LM6uDw==", - "dev": true, - "dependencies": { - "@jest/core": "^29.6.1", - "@jest/types": "^29.6.1", - "import-local": "^3.0.2", - "jest-cli": "^29.6.1" - }, - "bin": { - "jest": "bin/jest.js" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - }, - "peerDependencies": { - "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" - }, - "peerDependenciesMeta": { - "node-notifier": { - "optional": true - } - } - }, - "node_modules/jest-changed-files": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/jest-changed-files/-/jest-changed-files-29.5.0.tgz", - "integrity": "sha512-IFG34IUMUaNBIxjQXF/iu7g6EcdMrGRRxaUSw92I/2g2YC6vCdTltl4nHvt7Ci5nSJwXIkCu8Ka1DKF+X7Z1Ag==", - "dev": true, - "dependencies": { - "execa": "^5.0.0", - "p-limit": "^3.1.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-circus": { - "version": "29.6.1", - "resolved": "https://registry.npmjs.org/jest-circus/-/jest-circus-29.6.1.tgz", - "integrity": "sha512-tPbYLEiBU4MYAL2XoZme/bgfUeotpDBd81lgHLCbDZZFaGmECk0b+/xejPFtmiBP87GgP/y4jplcRpbH+fgCzQ==", - "dev": true, - "dependencies": { - "@jest/environment": "^29.6.1", - "@jest/expect": "^29.6.1", - "@jest/test-result": "^29.6.1", - "@jest/types": "^29.6.1", - "@types/node": "*", - "chalk": "^4.0.0", - "co": "^4.6.0", - "dedent": "^0.7.0", - "is-generator-fn": "^2.0.0", - "jest-each": "^29.6.1", - "jest-matcher-utils": "^29.6.1", - "jest-message-util": "^29.6.1", - "jest-runtime": "^29.6.1", - "jest-snapshot": "^29.6.1", - "jest-util": "^29.6.1", - "p-limit": "^3.1.0", - "pretty-format": "^29.6.1", - "pure-rand": "^6.0.0", - "slash": "^3.0.0", - "stack-utils": "^2.0.3" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-circus/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/jest-circus/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/jest-circus/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/jest-circus/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "node_modules/jest-circus/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/jest-circus/node_modules/pretty-format": { - "version": "29.6.1", - "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.6.1.tgz", - "integrity": "sha512-7jRj+yXO0W7e4/tSJKoR7HRIHLPPjtNaUGG2xxKQnGvPNRkgWcQ0AZX6P4KBRJN4FcTBWb3sa7DVUJmocYuoog==", - "dev": true, - "dependencies": { - "@jest/schemas": "^29.6.0", - "ansi-styles": "^5.0.0", - "react-is": "^18.0.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-circus/node_modules/pretty-format/node_modules/ansi-styles": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", - "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/jest-circus/node_modules/react-is": { - "version": "18.2.0", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", - "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", - "dev": true - }, - "node_modules/jest-circus/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/jest-cli": { - "version": "29.6.1", - "resolved": "https://registry.npmjs.org/jest-cli/-/jest-cli-29.6.1.tgz", - "integrity": "sha512-607dSgTA4ODIN6go9w6xY3EYkyPFGicx51a69H7yfvt7lN53xNswEVLovq+E77VsTRi5fWprLH0yl4DJgE8Ing==", - "dev": true, - "dependencies": { - "@jest/core": "^29.6.1", - "@jest/test-result": "^29.6.1", - "@jest/types": "^29.6.1", - "chalk": "^4.0.0", - "exit": "^0.1.2", - "graceful-fs": "^4.2.9", - "import-local": "^3.0.2", - "jest-config": "^29.6.1", - "jest-util": "^29.6.1", - "jest-validate": "^29.6.1", - "prompts": "^2.0.1", - "yargs": "^17.3.1" - }, - "bin": { - "jest": "bin/jest.js" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - }, - "peerDependencies": { - "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" - }, - "peerDependenciesMeta": { - "node-notifier": { - "optional": true - } - } - }, - "node_modules/jest-cli/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/jest-cli/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/jest-cli/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/jest-cli/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "node_modules/jest-cli/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/jest-cli/node_modules/jest-config": { - "version": "29.6.1", - "resolved": "https://registry.npmjs.org/jest-config/-/jest-config-29.6.1.tgz", - "integrity": "sha512-XdjYV2fy2xYixUiV2Wc54t3Z4oxYPAELUzWnV6+mcbq0rh742X2p52pii5A3oeRzYjLnQxCsZmp0qpI6klE2cQ==", - "dev": true, - "dependencies": { - "@babel/core": "^7.11.6", - "@jest/test-sequencer": "^29.6.1", - "@jest/types": "^29.6.1", - "babel-jest": "^29.6.1", - "chalk": "^4.0.0", - "ci-info": "^3.2.0", - "deepmerge": "^4.2.2", - "glob": "^7.1.3", - "graceful-fs": "^4.2.9", - "jest-circus": "^29.6.1", - "jest-environment-node": "^29.6.1", - "jest-get-type": "^29.4.3", - "jest-regex-util": "^29.4.3", - "jest-resolve": "^29.6.1", - "jest-runner": "^29.6.1", - "jest-util": "^29.6.1", - "jest-validate": "^29.6.1", - "micromatch": "^4.0.4", - "parse-json": "^5.2.0", - "pretty-format": "^29.6.1", - "slash": "^3.0.0", - "strip-json-comments": "^3.1.1" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - }, - "peerDependencies": { - "@types/node": "*", - "ts-node": ">=9.0.0" - }, - "peerDependenciesMeta": { - "@types/node": { - "optional": true + "node_modules/@ampproject/remapping": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.2.1.tgz", + "integrity": "sha512-lFMjJTrFL3j7L9yBxwYfCq2k6qqwHyzuUl/XBnif78PWTJYyL/dfowQHWE3sp6U6ZzqWiiIZnpTMO96zhkjwtg==", + "dev": true, + "dependencies": { + "@jridgewell/gen-mapping": "^0.3.0", + "@jridgewell/trace-mapping": "^0.3.9" + }, + "engines": { + "node": ">=6.0.0" + } }, - "ts-node": { - "optional": true - } - } - }, - "node_modules/jest-cli/node_modules/jest-get-type": { - "version": "29.4.3", - "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.4.3.tgz", - "integrity": "sha512-J5Xez4nRRMjk8emnTpWrlkyb9pfRQQanDrvWHhsR1+VUfbwxi30eVcZFlcdGInRibU4G5LwHXpI7IRHU0CY+gg==", - "dev": true, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-cli/node_modules/pretty-format": { - "version": "29.6.1", - "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.6.1.tgz", - "integrity": "sha512-7jRj+yXO0W7e4/tSJKoR7HRIHLPPjtNaUGG2xxKQnGvPNRkgWcQ0AZX6P4KBRJN4FcTBWb3sa7DVUJmocYuoog==", - "dev": true, - "dependencies": { - "@jest/schemas": "^29.6.0", - "ansi-styles": "^5.0.0", - "react-is": "^18.0.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-cli/node_modules/pretty-format/node_modules/ansi-styles": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", - "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/jest-cli/node_modules/react-is": { - "version": "18.2.0", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", - "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", - "dev": true - }, - "node_modules/jest-cli/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/jest-diff": { - "version": "24.9.0", - "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-24.9.0.tgz", - "integrity": "sha512-qMfrTs8AdJE2iqrTp0hzh7kTd2PQWrsFyj9tORoKmu32xjPjeE4NyjVRDz8ybYwqS2ik8N4hsIpiVTyFeo2lBQ==", - "dev": true, - "dependencies": { - "chalk": "^2.0.1", - "diff-sequences": "^24.9.0", - "jest-get-type": "^24.9.0", - "pretty-format": "^24.9.0" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/jest-docblock": { - "version": "29.4.3", - "resolved": "https://registry.npmjs.org/jest-docblock/-/jest-docblock-29.4.3.tgz", - "integrity": "sha512-fzdTftThczeSD9nZ3fzA/4KkHtnmllawWrXO69vtI+L9WjEIuXWs4AmyME7lN5hU7dB0sHhuPfcKofRsUb/2Fg==", - "dev": true, - "dependencies": { - "detect-newline": "^3.0.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-each": { - "version": "29.6.1", - "resolved": "https://registry.npmjs.org/jest-each/-/jest-each-29.6.1.tgz", - "integrity": "sha512-n5eoj5eiTHpKQCAVcNTT7DRqeUmJ01hsAL0Q1SMiBHcBcvTKDELixQOGMCpqhbIuTcfC4kMfSnpmDqRgRJcLNQ==", - "dev": true, - "dependencies": { - "@jest/types": "^29.6.1", - "chalk": "^4.0.0", - "jest-get-type": "^29.4.3", - "jest-util": "^29.6.1", - "pretty-format": "^29.6.1" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-each/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/jest-each/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/jest-each/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/jest-each/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "node_modules/jest-each/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/jest-each/node_modules/jest-get-type": { - "version": "29.4.3", - "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.4.3.tgz", - "integrity": "sha512-J5Xez4nRRMjk8emnTpWrlkyb9pfRQQanDrvWHhsR1+VUfbwxi30eVcZFlcdGInRibU4G5LwHXpI7IRHU0CY+gg==", - "dev": true, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-each/node_modules/pretty-format": { - "version": "29.6.1", - "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.6.1.tgz", - "integrity": "sha512-7jRj+yXO0W7e4/tSJKoR7HRIHLPPjtNaUGG2xxKQnGvPNRkgWcQ0AZX6P4KBRJN4FcTBWb3sa7DVUJmocYuoog==", - "dev": true, - "dependencies": { - "@jest/schemas": "^29.6.0", - "ansi-styles": "^5.0.0", - "react-is": "^18.0.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-each/node_modules/pretty-format/node_modules/ansi-styles": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", - "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/jest-each/node_modules/react-is": { - "version": "18.2.0", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", - "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", - "dev": true - }, - "node_modules/jest-each/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/jest-environment-jsdom": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-environment-jsdom/-/jest-environment-jsdom-29.7.0.tgz", - "integrity": "sha512-k9iQbsf9OyOfdzWH8HDmrRT0gSIcX+FLNW7IQq94tFX0gynPwqDTW0Ho6iMVNjGz/nb+l/vW3dWM2bbLLpkbXA==", - "dev": true, - "dependencies": { - "@jest/environment": "^29.7.0", - "@jest/fake-timers": "^29.7.0", - "@jest/types": "^29.6.3", - "@types/jsdom": "^20.0.0", - "@types/node": "*", - "jest-mock": "^29.7.0", - "jest-util": "^29.7.0", - "jsdom": "^20.0.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - }, - "peerDependencies": { - "canvas": "^2.5.0" - }, - "peerDependenciesMeta": { - "canvas": { - "optional": true - } - } - }, - "node_modules/jest-environment-node": { - "version": "29.6.1", - "resolved": "https://registry.npmjs.org/jest-environment-node/-/jest-environment-node-29.6.1.tgz", - "integrity": "sha512-ZNIfAiE+foBog24W+2caIldl4Irh8Lx1PUhg/GZ0odM1d/h2qORAsejiFc7zb+SEmYPn1yDZzEDSU5PmDkmVLQ==", - "dev": true, - "dependencies": { - "@jest/environment": "^29.6.1", - "@jest/fake-timers": "^29.6.1", - "@jest/types": "^29.6.1", - "@types/node": "*", - "jest-mock": "^29.6.1", - "jest-util": "^29.6.1" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-get-type": { - "version": "24.9.0", - "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-24.9.0.tgz", - "integrity": "sha512-lUseMzAley4LhIcpSP9Jf+fTrQ4a1yHQwLNeeVa2cEmbCGeoZAtYPOIv8JaxLD/sUpKxetKGP+gsHl8f8TSj8Q==", - "dev": true, - "engines": { - "node": ">= 6" - } - }, - "node_modules/jest-haste-map": { - "version": "29.6.1", - "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-29.6.1.tgz", - "integrity": "sha512-0m7f9PZXxOCk1gRACiVgX85knUKPKLPg4oRCjLoqIm9brTHXaorMA0JpmtmVkQiT8nmXyIVoZd/nnH1cfC33ig==", - "dev": true, - "dependencies": { - "@jest/types": "^29.6.1", - "@types/graceful-fs": "^4.1.3", - "@types/node": "*", - "anymatch": "^3.0.3", - "fb-watchman": "^2.0.0", - "graceful-fs": "^4.2.9", - "jest-regex-util": "^29.4.3", - "jest-util": "^29.6.1", - "jest-worker": "^29.6.1", - "micromatch": "^4.0.4", - "walker": "^1.0.8" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - }, - "optionalDependencies": { - "fsevents": "^2.3.2" - } - }, - "node_modules/jest-leak-detector": { - "version": "29.6.1", - "resolved": "https://registry.npmjs.org/jest-leak-detector/-/jest-leak-detector-29.6.1.tgz", - "integrity": "sha512-OrxMNyZirpOEwkF3UHnIkAiZbtkBWiye+hhBweCHkVbCgyEy71Mwbb5zgeTNYWJBi1qgDVfPC1IwO9dVEeTLwQ==", - "dev": true, - "dependencies": { - "jest-get-type": "^29.4.3", - "pretty-format": "^29.6.1" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-leak-detector/node_modules/ansi-styles": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", - "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/jest-leak-detector/node_modules/jest-get-type": { - "version": "29.4.3", - "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.4.3.tgz", - "integrity": "sha512-J5Xez4nRRMjk8emnTpWrlkyb9pfRQQanDrvWHhsR1+VUfbwxi30eVcZFlcdGInRibU4G5LwHXpI7IRHU0CY+gg==", - "dev": true, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-leak-detector/node_modules/pretty-format": { - "version": "29.6.1", - "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.6.1.tgz", - "integrity": "sha512-7jRj+yXO0W7e4/tSJKoR7HRIHLPPjtNaUGG2xxKQnGvPNRkgWcQ0AZX6P4KBRJN4FcTBWb3sa7DVUJmocYuoog==", - "dev": true, - "dependencies": { - "@jest/schemas": "^29.6.0", - "ansi-styles": "^5.0.0", - "react-is": "^18.0.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-leak-detector/node_modules/react-is": { - "version": "18.2.0", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", - "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", - "dev": true - }, - "node_modules/jest-matcher-utils": { - "version": "29.6.1", - "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-29.6.1.tgz", - "integrity": "sha512-SLaztw9d2mfQQKHmJXKM0HCbl2PPVld/t9Xa6P9sgiExijviSp7TnZZpw2Fpt+OI3nwUO/slJbOfzfUMKKC5QA==", - "dev": true, - "dependencies": { - "chalk": "^4.0.0", - "jest-diff": "^29.6.1", - "jest-get-type": "^29.4.3", - "pretty-format": "^29.6.1" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-matcher-utils/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/jest-matcher-utils/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/jest-matcher-utils/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/jest-matcher-utils/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "node_modules/jest-matcher-utils/node_modules/diff-sequences": { - "version": "29.4.3", - "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-29.4.3.tgz", - "integrity": "sha512-ofrBgwpPhCD85kMKtE9RYFFq6OC1A89oW2vvgWZNCwxrUpRUILopY7lsYyMDSjc8g6U6aiO0Qubg6r4Wgt5ZnA==", - "dev": true, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-matcher-utils/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/jest-matcher-utils/node_modules/jest-diff": { - "version": "29.6.1", - "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-29.6.1.tgz", - "integrity": "sha512-FsNCvinvl8oVxpNLttNQX7FAq7vR+gMDGj90tiP7siWw1UdakWUGqrylpsYrpvj908IYckm5Y0Q7azNAozU1Kg==", - "dev": true, - "dependencies": { - "chalk": "^4.0.0", - "diff-sequences": "^29.4.3", - "jest-get-type": "^29.4.3", - "pretty-format": "^29.6.1" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-matcher-utils/node_modules/jest-get-type": { - "version": "29.4.3", - "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.4.3.tgz", - "integrity": "sha512-J5Xez4nRRMjk8emnTpWrlkyb9pfRQQanDrvWHhsR1+VUfbwxi30eVcZFlcdGInRibU4G5LwHXpI7IRHU0CY+gg==", - "dev": true, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-matcher-utils/node_modules/pretty-format": { - "version": "29.6.1", - "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.6.1.tgz", - "integrity": "sha512-7jRj+yXO0W7e4/tSJKoR7HRIHLPPjtNaUGG2xxKQnGvPNRkgWcQ0AZX6P4KBRJN4FcTBWb3sa7DVUJmocYuoog==", - "dev": true, - "dependencies": { - "@jest/schemas": "^29.6.0", - "ansi-styles": "^5.0.0", - "react-is": "^18.0.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-matcher-utils/node_modules/pretty-format/node_modules/ansi-styles": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", - "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/jest-matcher-utils/node_modules/react-is": { - "version": "18.2.0", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", - "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", - "dev": true - }, - "node_modules/jest-matcher-utils/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/jest-message-util": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-29.7.0.tgz", - "integrity": "sha512-GBEV4GRADeP+qtB2+6u61stea8mGcOT4mCtrYISZwfu9/ISHFJ/5zOMXYbpBE9RsS5+Gb63DW4FgmnKJ79Kf6w==", - "dev": true, - "dependencies": { - "@babel/code-frame": "^7.12.13", - "@jest/types": "^29.6.3", - "@types/stack-utils": "^2.0.0", - "chalk": "^4.0.0", - "graceful-fs": "^4.2.9", - "micromatch": "^4.0.4", - "pretty-format": "^29.7.0", - "slash": "^3.0.0", - "stack-utils": "^2.0.3" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-message-util/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/jest-message-util/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/jest-message-util/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/jest-message-util/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "node_modules/jest-message-util/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/jest-message-util/node_modules/pretty-format": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.7.0.tgz", - "integrity": "sha512-Pdlw/oPxN+aXdmM9R00JVC9WVFoCLTKJvDVLgmJ+qAffBMxsV85l/Lu7sNx4zSzPyoL2euImuEwHhOXdEgNFZQ==", - "dev": true, - "dependencies": { - "@jest/schemas": "^29.6.3", - "ansi-styles": "^5.0.0", - "react-is": "^18.0.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-message-util/node_modules/pretty-format/node_modules/ansi-styles": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", - "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/jest-message-util/node_modules/react-is": { - "version": "18.2.0", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", - "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", - "dev": true - }, - "node_modules/jest-message-util/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/jest-mock": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-mock/-/jest-mock-29.7.0.tgz", - "integrity": "sha512-ITOMZn+UkYS4ZFh83xYAOzWStloNzJFO2s8DWrE4lhtGD+AorgnbkiKERe4wQVBydIGPx059g6riW5Btp6Llnw==", - "dev": true, - "dependencies": { - "@jest/types": "^29.6.3", - "@types/node": "*", - "jest-util": "^29.7.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-pnp-resolver": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/jest-pnp-resolver/-/jest-pnp-resolver-1.2.3.tgz", - "integrity": "sha512-+3NpwQEnRoIBtx4fyhblQDPgJI0H1IEIkX7ShLUjPGA7TtUTvI1oiKi3SR4oBR0hQhQR80l4WAe5RrXBwWMA8w==", - "dev": true, - "engines": { - "node": ">=6" - }, - "peerDependencies": { - "jest-resolve": "*" - }, - "peerDependenciesMeta": { - "jest-resolve": { - "optional": true - } - } - }, - "node_modules/jest-regex-util": { - "version": "29.4.3", - "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-29.4.3.tgz", - "integrity": "sha512-O4FglZaMmWXbGHSQInfXewIsd1LMn9p3ZXB/6r4FOkyhX2/iP/soMG98jGvk/A3HAN78+5VWcBGO0BJAPRh4kg==", - "dev": true, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-resolve": { - "version": "29.6.1", - "resolved": "https://registry.npmjs.org/jest-resolve/-/jest-resolve-29.6.1.tgz", - "integrity": "sha512-AeRkyS8g37UyJiP9w3mmI/VXU/q8l/IH52vj/cDAyScDcemRbSBhfX/NMYIGilQgSVwsjxrCHf3XJu4f+lxCMg==", - "dev": true, - "dependencies": { - "chalk": "^4.0.0", - "graceful-fs": "^4.2.9", - "jest-haste-map": "^29.6.1", - "jest-pnp-resolver": "^1.2.2", - "jest-util": "^29.6.1", - "jest-validate": "^29.6.1", - "resolve": "^1.20.0", - "resolve.exports": "^2.0.0", - "slash": "^3.0.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-resolve-dependencies": { - "version": "29.6.1", - "resolved": "https://registry.npmjs.org/jest-resolve-dependencies/-/jest-resolve-dependencies-29.6.1.tgz", - "integrity": "sha512-BbFvxLXtcldaFOhNMXmHRWx1nXQO5LoXiKSGQcA1LxxirYceZT6ch8KTE1bK3X31TNG/JbkI7OkS/ABexVahiw==", - "dev": true, - "dependencies": { - "jest-regex-util": "^29.4.3", - "jest-snapshot": "^29.6.1" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-resolve/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/jest-resolve/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/jest-resolve/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/jest-resolve/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "node_modules/jest-resolve/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/jest-resolve/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/jest-runner": { - "version": "29.6.1", - "resolved": "https://registry.npmjs.org/jest-runner/-/jest-runner-29.6.1.tgz", - "integrity": "sha512-tw0wb2Q9yhjAQ2w8rHRDxteryyIck7gIzQE4Reu3JuOBpGp96xWgF0nY8MDdejzrLCZKDcp8JlZrBN/EtkQvPQ==", - "dev": true, - "dependencies": { - "@jest/console": "^29.6.1", - "@jest/environment": "^29.6.1", - "@jest/test-result": "^29.6.1", - "@jest/transform": "^29.6.1", - "@jest/types": "^29.6.1", - "@types/node": "*", - "chalk": "^4.0.0", - "emittery": "^0.13.1", - "graceful-fs": "^4.2.9", - "jest-docblock": "^29.4.3", - "jest-environment-node": "^29.6.1", - "jest-haste-map": "^29.6.1", - "jest-leak-detector": "^29.6.1", - "jest-message-util": "^29.6.1", - "jest-resolve": "^29.6.1", - "jest-runtime": "^29.6.1", - "jest-util": "^29.6.1", - "jest-watcher": "^29.6.1", - "jest-worker": "^29.6.1", - "p-limit": "^3.1.0", - "source-map-support": "0.5.13" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-runner/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/jest-runner/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/jest-runner/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/jest-runner/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "node_modules/jest-runner/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/jest-runner/node_modules/source-map-support": { - "version": "0.5.13", - "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.13.tgz", - "integrity": "sha512-SHSKFHadjVA5oR4PPqhtAVdcBWwRYVd6g6cAXnIbRiIwc2EhPrTuKUBdSLvlEKyIP3GCf89fltvcZiP9MMFA1w==", - "dev": true, - "dependencies": { - "buffer-from": "^1.0.0", - "source-map": "^0.6.0" - } - }, - "node_modules/jest-runner/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/jest-runtime": { - "version": "29.6.1", - "resolved": "https://registry.npmjs.org/jest-runtime/-/jest-runtime-29.6.1.tgz", - "integrity": "sha512-D6/AYOA+Lhs5e5il8+5pSLemjtJezUr+8zx+Sn8xlmOux3XOqx4d8l/2udBea8CRPqqrzhsKUsN/gBDE/IcaPQ==", - "dev": true, - "dependencies": { - "@jest/environment": "^29.6.1", - "@jest/fake-timers": "^29.6.1", - "@jest/globals": "^29.6.1", - "@jest/source-map": "^29.6.0", - "@jest/test-result": "^29.6.1", - "@jest/transform": "^29.6.1", - "@jest/types": "^29.6.1", - "@types/node": "*", - "chalk": "^4.0.0", - "cjs-module-lexer": "^1.0.0", - "collect-v8-coverage": "^1.0.0", - "glob": "^7.1.3", - "graceful-fs": "^4.2.9", - "jest-haste-map": "^29.6.1", - "jest-message-util": "^29.6.1", - "jest-mock": "^29.6.1", - "jest-regex-util": "^29.4.3", - "jest-resolve": "^29.6.1", - "jest-snapshot": "^29.6.1", - "jest-util": "^29.6.1", - "slash": "^3.0.0", - "strip-bom": "^4.0.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-runtime/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/jest-runtime/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/jest-runtime/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/jest-runtime/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "node_modules/jest-runtime/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/jest-runtime/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/jest-snapshot": { - "version": "29.6.1", - "resolved": "https://registry.npmjs.org/jest-snapshot/-/jest-snapshot-29.6.1.tgz", - "integrity": "sha512-G4UQE1QQ6OaCgfY+A0uR1W2AY0tGXUPQpoUClhWHq1Xdnx1H6JOrC2nH5lqnOEqaDgbHFgIwZ7bNq24HpB180A==", - "dev": true, - "dependencies": { - "@babel/core": "^7.11.6", - "@babel/generator": "^7.7.2", - "@babel/plugin-syntax-jsx": "^7.7.2", - "@babel/plugin-syntax-typescript": "^7.7.2", - "@babel/types": "^7.3.3", - "@jest/expect-utils": "^29.6.1", - "@jest/transform": "^29.6.1", - "@jest/types": "^29.6.1", - "@types/prettier": "^2.1.5", - "babel-preset-current-node-syntax": "^1.0.0", - "chalk": "^4.0.0", - "expect": "^29.6.1", - "graceful-fs": "^4.2.9", - "jest-diff": "^29.6.1", - "jest-get-type": "^29.4.3", - "jest-matcher-utils": "^29.6.1", - "jest-message-util": "^29.6.1", - "jest-util": "^29.6.1", - "natural-compare": "^1.4.0", - "pretty-format": "^29.6.1", - "semver": "^7.5.3" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-snapshot/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/jest-snapshot/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/jest-snapshot/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/jest-snapshot/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "node_modules/jest-snapshot/node_modules/diff-sequences": { - "version": "29.4.3", - "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-29.4.3.tgz", - "integrity": "sha512-ofrBgwpPhCD85kMKtE9RYFFq6OC1A89oW2vvgWZNCwxrUpRUILopY7lsYyMDSjc8g6U6aiO0Qubg6r4Wgt5ZnA==", - "dev": true, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-snapshot/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/jest-snapshot/node_modules/jest-diff": { - "version": "29.6.1", - "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-29.6.1.tgz", - "integrity": "sha512-FsNCvinvl8oVxpNLttNQX7FAq7vR+gMDGj90tiP7siWw1UdakWUGqrylpsYrpvj908IYckm5Y0Q7azNAozU1Kg==", - "dev": true, - "dependencies": { - "chalk": "^4.0.0", - "diff-sequences": "^29.4.3", - "jest-get-type": "^29.4.3", - "pretty-format": "^29.6.1" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-snapshot/node_modules/jest-get-type": { - "version": "29.4.3", - "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.4.3.tgz", - "integrity": "sha512-J5Xez4nRRMjk8emnTpWrlkyb9pfRQQanDrvWHhsR1+VUfbwxi30eVcZFlcdGInRibU4G5LwHXpI7IRHU0CY+gg==", - "dev": true, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-snapshot/node_modules/lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dev": true, - "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/jest-snapshot/node_modules/pretty-format": { - "version": "29.6.1", - "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.6.1.tgz", - "integrity": "sha512-7jRj+yXO0W7e4/tSJKoR7HRIHLPPjtNaUGG2xxKQnGvPNRkgWcQ0AZX6P4KBRJN4FcTBWb3sa7DVUJmocYuoog==", - "dev": true, - "dependencies": { - "@jest/schemas": "^29.6.0", - "ansi-styles": "^5.0.0", - "react-is": "^18.0.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-snapshot/node_modules/pretty-format/node_modules/ansi-styles": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", - "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/jest-snapshot/node_modules/react-is": { - "version": "18.2.0", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", - "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", - "dev": true - }, - "node_modules/jest-snapshot/node_modules/semver": { - "version": "7.5.4", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", - "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", - "dev": true, - "dependencies": { - "lru-cache": "^6.0.0" - }, - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/jest-snapshot/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/jest-snapshot/node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true - }, - "node_modules/jest-util": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-29.7.0.tgz", - "integrity": "sha512-z6EbKajIpqGKU56y5KBUgy1dt1ihhQJgWzUlZHArA/+X2ad7Cb5iF+AK1EWVL/Bo7Rz9uurpqw6SiBCefUbCGA==", - "dev": true, - "dependencies": { - "@jest/types": "^29.6.3", - "@types/node": "*", - "chalk": "^4.0.0", - "ci-info": "^3.2.0", - "graceful-fs": "^4.2.9", - "picomatch": "^2.2.3" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-util/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/jest-util/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/jest-util/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/jest-util/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "node_modules/jest-util/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/jest-util/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/jest-validate": { - "version": "29.6.1", - "resolved": "https://registry.npmjs.org/jest-validate/-/jest-validate-29.6.1.tgz", - "integrity": "sha512-r3Ds69/0KCN4vx4sYAbGL1EVpZ7MSS0vLmd3gV78O+NAx3PDQQukRU5hNHPXlyqCgFY8XUk7EuTMLugh0KzahA==", - "dev": true, - "dependencies": { - "@jest/types": "^29.6.1", - "camelcase": "^6.2.0", - "chalk": "^4.0.0", - "jest-get-type": "^29.4.3", - "leven": "^3.1.0", - "pretty-format": "^29.6.1" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-validate/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/jest-validate/node_modules/camelcase": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", - "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/jest-validate/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/jest-validate/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/jest-validate/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "node_modules/jest-validate/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/jest-validate/node_modules/jest-get-type": { - "version": "29.4.3", - "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.4.3.tgz", - "integrity": "sha512-J5Xez4nRRMjk8emnTpWrlkyb9pfRQQanDrvWHhsR1+VUfbwxi30eVcZFlcdGInRibU4G5LwHXpI7IRHU0CY+gg==", - "dev": true, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-validate/node_modules/pretty-format": { - "version": "29.6.1", - "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.6.1.tgz", - "integrity": "sha512-7jRj+yXO0W7e4/tSJKoR7HRIHLPPjtNaUGG2xxKQnGvPNRkgWcQ0AZX6P4KBRJN4FcTBWb3sa7DVUJmocYuoog==", - "dev": true, - "dependencies": { - "@jest/schemas": "^29.6.0", - "ansi-styles": "^5.0.0", - "react-is": "^18.0.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-validate/node_modules/pretty-format/node_modules/ansi-styles": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", - "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/jest-validate/node_modules/react-is": { - "version": "18.2.0", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", - "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", - "dev": true - }, - "node_modules/jest-validate/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/jest-watcher": { - "version": "29.6.1", - "resolved": "https://registry.npmjs.org/jest-watcher/-/jest-watcher-29.6.1.tgz", - "integrity": "sha512-d4wpjWTS7HEZPaaj8m36QiaP856JthRZkrgcIY/7ISoUWPIillrXM23WPboZVLbiwZBt4/qn2Jke84Sla6JhFA==", - "dev": true, - "dependencies": { - "@jest/test-result": "^29.6.1", - "@jest/types": "^29.6.1", - "@types/node": "*", - "ansi-escapes": "^4.2.1", - "chalk": "^4.0.0", - "emittery": "^0.13.1", - "jest-util": "^29.6.1", - "string-length": "^4.0.1" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-watcher/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/jest-watcher/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/jest-watcher/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/jest-watcher/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "node_modules/jest-watcher/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/jest-watcher/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/jest-worker": { - "version": "29.6.1", - "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-29.6.1.tgz", - "integrity": "sha512-U+Wrbca7S8ZAxAe9L6nb6g8kPdia5hj32Puu5iOqBCMTMWFHXuK6dOV2IFrpedbTV8fjMFLdWNttQTBL6u2MRA==", - "dev": true, - "dependencies": { - "@types/node": "*", - "jest-util": "^29.6.1", - "merge-stream": "^2.0.0", - "supports-color": "^8.0.0" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - } - }, - "node_modules/jest-worker/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/jest-worker/node_modules/supports-color": { - "version": "8.1.1", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", - "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", - "dev": true, - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/supports-color?sponsor=1" - } - }, - "node_modules/js-tokens": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", - "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", - "dev": true, - "license": "MIT" - }, - "node_modules/js-yaml": { - "version": "3.14.2", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.2.tgz", - "integrity": "sha512-PMSmkqxr106Xa156c2M265Z+FTrPl+oxd/rgOQy2tijQeK5TxQ43psO1ZCwhVOSdnn+RzkzlRz/eY4BgJBYVpg==", - "dev": true, - "license": "MIT", - "dependencies": { - "argparse": "^1.0.7", - "esprima": "^4.0.0" - }, - "bin": { - "js-yaml": "bin/js-yaml.js" - } - }, - "node_modules/js2xmlparser": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/js2xmlparser/-/js2xmlparser-4.0.2.tgz", - "integrity": "sha512-6n4D8gLlLf1n5mNLQPRfViYzu9RATblzPEtm1SthMX1Pjao0r9YI9nw7ZIfRxQMERS87mcswrg+r/OYrPRX6jA==", - "dev": true, - "dependencies": { - "xmlcreate": "^2.0.4" - } - }, - "node_modules/jsdoc": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/jsdoc/-/jsdoc-4.0.2.tgz", - "integrity": "sha512-e8cIg2z62InH7azBBi3EsSEqrKx+nUtAS5bBcYTSpZFA+vhNPyhv8PTFZ0WsjOPDj04/dOLlm08EDcQJDqaGQg==", - "dev": true, - "dependencies": { - "@babel/parser": "^7.20.15", - "@jsdoc/salty": "^0.2.1", - "@types/markdown-it": "^12.2.3", - "bluebird": "^3.7.2", - "catharsis": "^0.9.0", - "escape-string-regexp": "^2.0.0", - "js2xmlparser": "^4.0.2", - "klaw": "^3.0.0", - "markdown-it": "^12.3.2", - "markdown-it-anchor": "^8.4.1", - "marked": "^4.0.10", - "mkdirp": "^1.0.4", - "requizzle": "^0.2.3", - "strip-json-comments": "^3.1.0", - "underscore": "~1.13.2" - }, - "bin": { - "jsdoc": "jsdoc.js" - }, - "engines": { - "node": ">=12.0.0" - } - }, - "node_modules/jsdoc/node_modules/escape-string-regexp": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz", - "integrity": "sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/jsdom": { - "version": "20.0.3", - "resolved": "https://registry.npmjs.org/jsdom/-/jsdom-20.0.3.tgz", - "integrity": "sha512-SYhBvTh89tTfCD/CRdSOm13mOBa42iTaTyfyEWBdKcGdPxPtLFBXuHR8XHb33YNYaP+lLbmSvBTsnoesCNJEsQ==", - "dev": true, - "dependencies": { - "abab": "^2.0.6", - "acorn": "^8.8.1", - "acorn-globals": "^7.0.0", - "cssom": "^0.5.0", - "cssstyle": "^2.3.0", - "data-urls": "^3.0.2", - "decimal.js": "^10.4.2", - "domexception": "^4.0.0", - "escodegen": "^2.0.0", - "form-data": "^4.0.0", - "html-encoding-sniffer": "^3.0.0", - "http-proxy-agent": "^5.0.0", - "https-proxy-agent": "^5.0.1", - "is-potential-custom-element-name": "^1.0.1", - "nwsapi": "^2.2.2", - "parse5": "^7.1.1", - "saxes": "^6.0.0", - "symbol-tree": "^3.2.4", - "tough-cookie": "^4.1.2", - "w3c-xmlserializer": "^4.0.0", - "webidl-conversions": "^7.0.0", - "whatwg-encoding": "^2.0.0", - "whatwg-mimetype": "^3.0.0", - "whatwg-url": "^11.0.0", - "ws": "^8.11.0", - "xml-name-validator": "^4.0.0" - }, - "engines": { - "node": ">=14" - }, - "peerDependencies": { - "canvas": "^2.5.0" - }, - "peerDependenciesMeta": { - "canvas": { - "optional": true - } - } - }, - "node_modules/jsdom/node_modules/escodegen": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-2.1.0.tgz", - "integrity": "sha512-2NlIDTwUWJN0mRPQOdtQBzbUHvdGY2P1VXSyU83Q3xKxM7WHX2Ql8dKq782Q9TgQUNOLEzEYu9bzLNj1q88I5w==", - "dev": true, - "dependencies": { - "esprima": "^4.0.1", - "estraverse": "^5.2.0", - "esutils": "^2.0.2" - }, - "bin": { - "escodegen": "bin/escodegen.js", - "esgenerate": "bin/esgenerate.js" - }, - "engines": { - "node": ">=6.0" - }, - "optionalDependencies": { - "source-map": "~0.6.1" - } - }, - "node_modules/jsesc": { - "version": "2.5.2", - "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", - "integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==", - "dev": true, - "bin": { - "jsesc": "bin/jsesc" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/json-parse-even-better-errors": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", - "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==", - "dev": true - }, - "node_modules/json5": { - "version": "2.2.3", - "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", - "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", - "dev": true, - "bin": { - "json5": "lib/cli.js" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/jsonfile": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", - "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==", - "dev": true, - "dependencies": { - "universalify": "^2.0.0" - }, - "optionalDependencies": { - "graceful-fs": "^4.1.6" - } - }, - "node_modules/klaw": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/klaw/-/klaw-3.0.0.tgz", - "integrity": "sha512-0Fo5oir+O9jnXu5EefYbVK+mHMBeEVEy2cmctR1O1NECcCkPRreJKrS6Qt/j3KC2C148Dfo9i3pCmCMsdqGr0g==", - "dev": true, - "dependencies": { - "graceful-fs": "^4.1.9" - } - }, - "node_modules/kleur": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/kleur/-/kleur-3.0.3.tgz", - "integrity": "sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/leven": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/leven/-/leven-3.1.0.tgz", - "integrity": "sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/levn": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/levn/-/levn-0.3.0.tgz", - "integrity": "sha512-0OO4y2iOHix2W6ujICbKIaEQXvFQHue65vUG3pb5EUomzPI90z9hsA1VsO/dbIIpC53J8gxM9Q4Oho0jrCM/yA==", - "dev": true, - "dependencies": { - "prelude-ls": "~1.1.2", - "type-check": "~0.3.2" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/lines-and-columns": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz", - "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==", - "dev": true - }, - "node_modules/linkify-it": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/linkify-it/-/linkify-it-3.0.3.tgz", - "integrity": "sha512-ynTsyrFSdE5oZ/O9GEf00kPngmOfVwazR5GKDq6EYfhlpFug3J2zybX56a2PRRpc9P+FuSoGNAwjlbDs9jJBPQ==", - "dev": true, - "dependencies": { - "uc.micro": "^1.0.1" - } - }, - "node_modules/locate-path": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", - "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", - "dev": true, - "dependencies": { - "p-locate": "^4.1.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/lodash": { - "version": "4.17.21", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", - "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==", - "dev": true - }, - "node_modules/lodash.debounce": { - "version": "4.0.8", - "resolved": "https://registry.npmjs.org/lodash.debounce/-/lodash.debounce-4.0.8.tgz", - "integrity": "sha512-FT1yDzDYEoYWhnSGnpE/4Kj1fLZkDFyqRb7fNt6FdYOSxlUWAtp42Eh6Wb0rGIv/m9Bgo7x4GhQbm5Ys4SG5ow==", - "dev": true - }, - "node_modules/lodash.memoize": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/lodash.memoize/-/lodash.memoize-4.1.2.tgz", - "integrity": "sha1-vMbEmkKihA7Zl/Mj6tpezRguC/4=", - "dev": true - }, - "node_modules/long": { - "version": "5.2.3", - "resolved": "https://registry.npmjs.org/long/-/long-5.2.3.tgz", - "integrity": "sha512-lcHwpNoggQTObv5apGNCTdJrO69eHOZMi4BNC+rTLER8iHAqGrUVeLh/irVIM7zTw2bOXA8T6uNPeujwOLg/2Q==", - "dev": true - }, - "node_modules/lru-cache": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", - "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", - "dev": true, - "dependencies": { - "yallist": "^3.0.2" - } - }, - "node_modules/magic-string": { - "version": "0.25.9", - "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.25.9.tgz", - "integrity": "sha512-RmF0AsMzgt25qzqqLc1+MbHmhdx0ojF2Fvs4XnOqz2ZOBXzzkEwc/dJQZCYHAn7v1jbVOjAZfK8msRn4BxO4VQ==", - "dev": true, - "dependencies": { - "sourcemap-codec": "^1.4.8" - } - }, - "node_modules/make-dir": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", - "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==", - "dev": true, - "dependencies": { - "semver": "^6.0.0" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/make-error": { - "version": "1.3.6", - "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz", - "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==", - "dev": true - }, - "node_modules/makeerror": { - "version": "1.0.12", - "resolved": "https://registry.npmjs.org/makeerror/-/makeerror-1.0.12.tgz", - "integrity": "sha512-JmqCvUhmt43madlpFzG4BQzG2Z3m6tvQDNKdClZnO3VbIudJYmxsT0FNJMeiB2+JTSlTQTSbU8QdesVmwJcmLg==", - "dev": true, - "dependencies": { - "tmpl": "1.0.5" - } - }, - "node_modules/markdown-it": { - "version": "12.3.2", - "resolved": "https://registry.npmjs.org/markdown-it/-/markdown-it-12.3.2.tgz", - "integrity": "sha512-TchMembfxfNVpHkbtriWltGWc+m3xszaRD0CZup7GFFhzIgQqxIfn3eGj1yZpfuflzPvfkt611B2Q/Bsk1YnGg==", - "dev": true, - "dependencies": { - "argparse": "^2.0.1", - "entities": "~2.1.0", - "linkify-it": "^3.0.1", - "mdurl": "^1.0.1", - "uc.micro": "^1.0.5" - }, - "bin": { - "markdown-it": "bin/markdown-it.js" - } - }, - "node_modules/markdown-it-anchor": { - "version": "8.6.7", - "resolved": "https://registry.npmjs.org/markdown-it-anchor/-/markdown-it-anchor-8.6.7.tgz", - "integrity": "sha512-FlCHFwNnutLgVTflOYHPW2pPcl2AACqVzExlkGQNsi4CJgqOHN7YTgDd4LuhgN1BFO3TS0vLAruV1Td6dwWPJA==", - "dev": true, - "peerDependencies": { - "@types/markdown-it": "*", - "markdown-it": "*" - } - }, - "node_modules/markdown-it/node_modules/argparse": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", - "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", - "dev": true - }, - "node_modules/marked": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/marked/-/marked-4.3.0.tgz", - "integrity": "sha512-PRsaiG84bK+AMvxziE/lCFss8juXjNaWzVbN5tXAm4XjeaS9NAHhop+PjQxz2A9h8Q4M/xGmzP8vqNwy6JeK0A==", - "dev": true, - "bin": { - "marked": "bin/marked.js" - }, - "engines": { - "node": ">= 12" - } - }, - "node_modules/math-intrinsics": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz", - "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==", - "license": "MIT", - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/mdurl": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/mdurl/-/mdurl-1.0.1.tgz", - "integrity": "sha512-/sKlQJCBYVY9Ers9hqzKou4H6V5UWc/M59TH2dvkt+84itfnq7uFOMLpOiOS4ujvHP4etln18fmIxA5R5fll0g==", - "dev": true - }, - "node_modules/merge-stream": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", - "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", - "dev": true - }, - "node_modules/micromatch": { - "version": "4.0.8", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz", - "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==", - "dev": true, - "dependencies": { - "braces": "^3.0.3", - "picomatch": "^2.3.1" - }, - "engines": { - "node": ">=8.6" - } - }, - "node_modules/mime-db": { - "version": "1.52.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", - "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/mime-types": { - "version": "2.1.35", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", - "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", - "dependencies": { - "mime-db": "1.52.0" - }, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/mimic-fn": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", - "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/minimatch": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", - "dev": true, - "dependencies": { - "brace-expansion": "^1.1.7" - }, - "engines": { - "node": "*" - } - }, - "node_modules/minimist": { - "version": "1.2.8", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", - "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==", - "dev": true, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/mkdirp": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", - "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==", - "dev": true, - "bin": { - "mkdirp": "bin/cmd.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/ms": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", - "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", - "dev": true - }, - "node_modules/natural-compare": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", - "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", - "dev": true - }, - "node_modules/node-int64": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/node-int64/-/node-int64-0.4.0.tgz", - "integrity": "sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw==", - "dev": true - }, - "node_modules/node-releases": { - "version": "2.0.13", - "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.13.tgz", - "integrity": "sha512-uYr7J37ae/ORWdZeQ1xxMJe3NtdmqMC/JZK+geofDrkLUApKRHPd18/TxtBOJ4A0/+uUIliorNrfYV6s1b02eQ==", - "dev": true - }, - "node_modules/node-rsa": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/node-rsa/-/node-rsa-1.1.1.tgz", - "integrity": "sha512-Jd4cvbJMryN21r5HgxQOpMEqv+ooke/korixNNK3mGqfGJmy0M77WDDzo/05969+OkMy3XW1UuZsSmW9KQm7Fw==", - "dependencies": { - "asn1": "^0.2.4" - } - }, - "node_modules/normalize-path": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", - "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/npm-run-path": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz", - "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==", - "dev": true, - "dependencies": { - "path-key": "^3.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/nwsapi": { - "version": "2.2.7", - "resolved": "https://registry.npmjs.org/nwsapi/-/nwsapi-2.2.7.tgz", - "integrity": "sha512-ub5E4+FBPKwAZx0UwIQOjYWGHTEq5sPqHQNRN8Z9e4A7u3Tj1weLJsL59yH9vmvqEtBHaOmT6cYQKIZOxp35FQ==", - "dev": true - }, - "node_modules/once": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", - "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", - "dev": true, - "dependencies": { - "wrappy": "1" - } - }, - "node_modules/onetime": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", - "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", - "dev": true, - "dependencies": { - "mimic-fn": "^2.1.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/optionator": { - "version": "0.8.3", - "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.8.3.tgz", - "integrity": "sha512-+IW9pACdk3XWmmTXG8m3upGUJst5XRGzxMRjXzAuJ1XnIFNvfhjjIuYkDvysnPQ7qzqVzLt78BCruntqRhWQbA==", - "dev": true, - "dependencies": { - "deep-is": "~0.1.3", - "fast-levenshtein": "~2.0.6", - "levn": "~0.3.0", - "prelude-ls": "~1.1.2", - "type-check": "~0.3.2", - "word-wrap": "~1.2.3" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/p-limit": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", - "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", - "dev": true, - "dependencies": { - "yocto-queue": "^0.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/p-locate": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", - "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", - "dev": true, - "dependencies": { - "p-limit": "^2.2.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/p-locate/node_modules/p-limit": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", - "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", - "dev": true, - "dependencies": { - "p-try": "^2.0.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/p-try": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", - "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/parse-json": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz", - "integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==", - "dev": true, - "dependencies": { - "@babel/code-frame": "^7.0.0", - "error-ex": "^1.3.1", - "json-parse-even-better-errors": "^2.3.0", - "lines-and-columns": "^1.1.6" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/parse5": { - "version": "7.1.2", - "resolved": "https://registry.npmjs.org/parse5/-/parse5-7.1.2.tgz", - "integrity": "sha512-Czj1WaSVpaoj0wbhMzLmWD69anp2WH7FXMB9n1Sy8/ZFF9jolSQVMu1Ij5WIyGmcBmhk7EOndpO4mIpihVqAXw==", - "dev": true, - "dependencies": { - "entities": "^4.4.0" - }, - "funding": { - "url": "https://github.com/inikulin/parse5?sponsor=1" - } - }, - "node_modules/parse5/node_modules/entities": { - "version": "4.5.0", - "resolved": "https://registry.npmjs.org/entities/-/entities-4.5.0.tgz", - "integrity": "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==", - "dev": true, - "engines": { - "node": ">=0.12" - }, - "funding": { - "url": "https://github.com/fb55/entities?sponsor=1" - } - }, - "node_modules/path-exists": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", - "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/path-is-absolute": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", - "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/path-key": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", - "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/path-parse": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", - "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", - "dev": true - }, - "node_modules/picocolors": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", - "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", - "dev": true, - "license": "ISC" - }, - "node_modules/picomatch": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", - "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", - "dev": true, - "engines": { - "node": ">=8.6" - }, - "funding": { - "url": "https://github.com/sponsors/jonschlinkert" - } - }, - "node_modules/pirates": { - "version": "4.0.6", - "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.6.tgz", - "integrity": "sha512-saLsH7WeYYPiD25LDuLRRY/i+6HaPYr6G1OUlN39otzkSTxKnubR9RTxS3/Kk50s1g2JTgFwWQDQyplC5/SHZg==", - "dev": true, - "engines": { - "node": ">= 6" - } - }, - "node_modules/pkg-dir": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz", - "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==", - "dev": true, - "dependencies": { - "find-up": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/prelude-ls": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.1.2.tgz", - "integrity": "sha512-ESF23V4SKG6lVSGZgYNpbsiaAkdab6ZgOxe52p7+Kid3W3u3bxR4Vfd/o21dmN7jSt0IwgZ4v5MUd26FEtXE9w==", - "dev": true, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/pretty-format": { - "version": "24.9.0", - "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-24.9.0.tgz", - "integrity": "sha512-00ZMZUiHaJrNfk33guavqgvfJS30sLYf0f8+Srklv0AMPodGGHcoHgksZ3OThYnIvOd+8yMCn0YiEOogjlgsnA==", - "dev": true, - "dependencies": { - "@jest/types": "^24.9.0", - "ansi-regex": "^4.0.0", - "ansi-styles": "^3.2.0", - "react-is": "^16.8.4" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/pretty-format/node_modules/@jest/types": { - "version": "24.9.0", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-24.9.0.tgz", - "integrity": "sha512-XKK7ze1apu5JWQ5eZjHITP66AX+QsLlbaJRBGYr8pNzwcAE2JVkwnf0yqjHTsDRcjR0mujy/NmZMXw5kl+kGBw==", - "dev": true, - "dependencies": { - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^1.1.1", - "@types/yargs": "^13.0.0" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/pretty-format/node_modules/@types/istanbul-reports": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-1.1.2.tgz", - "integrity": "sha512-P/W9yOX/3oPZSpaYOCQzGqgCQRXn0FFO/V8bWrCQs+wLmvVVxk6CRBXALEvNs9OHIatlnlFokfhuDo2ug01ciw==", - "dev": true, - "dependencies": { - "@types/istanbul-lib-coverage": "*", - "@types/istanbul-lib-report": "*" - } - }, - "node_modules/pretty-format/node_modules/@types/yargs": { - "version": "13.0.12", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-13.0.12.tgz", - "integrity": "sha512-qCxJE1qgz2y0hA4pIxjBR+PelCH0U5CK1XJXFwCNqfmliatKp47UCXXE9Dyk1OXBDLvsCF57TqQEJaeLfDYEOQ==", - "dev": true, - "dependencies": { - "@types/yargs-parser": "*" - } - }, - "node_modules/prompts": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/prompts/-/prompts-2.4.2.tgz", - "integrity": "sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q==", - "dev": true, - "dependencies": { - "kleur": "^3.0.3", - "sisteransi": "^1.0.5" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/protobufjs": { - "version": "7.2.6", - "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-7.2.6.tgz", - "integrity": "sha512-dgJaEDDL6x8ASUZ1YqWciTRrdOuYNzoOf27oHNfdyvKqHr5i0FV7FSLU+aIeFjyFgVxrpTOtQUi0BLLBymZaBw==", - "dev": true, - "hasInstallScript": true, - "dependencies": { - "@protobufjs/aspromise": "^1.1.2", - "@protobufjs/base64": "^1.1.2", - "@protobufjs/codegen": "^2.0.4", - "@protobufjs/eventemitter": "^1.1.0", - "@protobufjs/fetch": "^1.1.0", - "@protobufjs/float": "^1.0.2", - "@protobufjs/inquire": "^1.1.0", - "@protobufjs/path": "^1.1.2", - "@protobufjs/pool": "^1.1.0", - "@protobufjs/utf8": "^1.1.0", - "@types/node": ">=13.7.0", - "long": "^5.0.0" - }, - "engines": { - "node": ">=12.0.0" - } - }, - "node_modules/protobufjs-cli": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/protobufjs-cli/-/protobufjs-cli-1.1.1.tgz", - "integrity": "sha512-VPWMgIcRNyQwWUv8OLPyGQ/0lQY/QTQAVN5fh+XzfDwsVw1FZ2L3DM/bcBf8WPiRz2tNpaov9lPZfNcmNo6LXA==", - "dev": true, - "dependencies": { - "chalk": "^4.0.0", - "escodegen": "^1.13.0", - "espree": "^9.0.0", - "estraverse": "^5.1.0", - "glob": "^8.0.0", - "jsdoc": "^4.0.0", - "minimist": "^1.2.0", - "semver": "^7.1.2", - "tmp": "^0.2.1", - "uglify-js": "^3.7.7" - }, - "bin": { - "pbjs": "bin/pbjs", - "pbts": "bin/pbts" - }, - "engines": { - "node": ">=12.0.0" - }, - "peerDependencies": { - "protobufjs": "^7.0.0" - } - }, - "node_modules/protobufjs-cli/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/protobufjs-cli/node_modules/brace-expansion": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz", - "integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "balanced-match": "^1.0.0" - } - }, - "node_modules/protobufjs-cli/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/protobufjs-cli/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/protobufjs-cli/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "node_modules/protobufjs-cli/node_modules/glob": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/glob/-/glob-8.1.0.tgz", - "integrity": "sha512-r8hpEjiQEYlF2QU0df3dS+nxxSIreXQS1qRhMJM0Q5NDdR386C7jb7Hwwod8Fgiuex+k0GFjgft18yvxm5XoCQ==", - "dev": true, - "dependencies": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^5.0.1", - "once": "^1.3.0" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/isaacs" - } - }, - "node_modules/protobufjs-cli/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/protobufjs-cli/node_modules/lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dev": true, - "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/protobufjs-cli/node_modules/minimatch": { - "version": "5.1.6", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.6.tgz", - "integrity": "sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==", - "dev": true, - "dependencies": { - "brace-expansion": "^2.0.1" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/protobufjs-cli/node_modules/semver": { - "version": "7.5.4", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", - "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", - "dev": true, - "dependencies": { - "lru-cache": "^6.0.0" - }, - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/protobufjs-cli/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/protobufjs-cli/node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true - }, - "node_modules/psl": { - "version": "1.9.0", - "resolved": "https://registry.npmjs.org/psl/-/psl-1.9.0.tgz", - "integrity": "sha512-E/ZsdU4HLs/68gYzgGTkMicWTLPdAftJLfJFlLUAAKZGkStNU72sZjT66SnMDVOfOWY/YAoiD7Jxa9iHvngcag==", - "dev": true - }, - "node_modules/punycode": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", - "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/pure-rand": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/pure-rand/-/pure-rand-6.0.2.tgz", - "integrity": "sha512-6Yg0ekpKICSjPswYOuC5sku/TSWaRYlA0qsXqJgM/d/4pLPHPuTxK7Nbf7jFKzAeedUhR8C7K9Uv63FBsSo8xQ==", - "dev": true, - "funding": [ - { - "type": "individual", - "url": "https://github.com/sponsors/dubzzz" - }, - { - "type": "opencollective", - "url": "https://opencollective.com/fast-check" + "node_modules/@babel/code-frame": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.27.1.tgz", + "integrity": "sha512-cjQ7ZlQ0Mv3b47hABuTevyTuYN4i+loJKGeV9flcCgIK37cCXRh+L1bd3iBHlynerhQ7BhCkn2BPbQUL+rGqFg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-validator-identifier": "^7.27.1", + "js-tokens": "^4.0.0", + "picocolors": "^1.1.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/compat-data": { + "version": "7.23.5", + "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.23.5.tgz", + "integrity": "sha512-uU27kfDRlhfKl+w1U6vp16IuvSLtjAxdArVXPa9BvLkrr7CYIsxH5adpHObeAGY/41+syctUWOZ140a2Rvkgjw==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/core": { + "version": "7.22.9", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.22.9.tgz", + "integrity": "sha512-G2EgeufBcYw27U4hhoIwFcgc1XU7TlXJ3mv04oOv1WCuo900U/anZSPzEqNjwdjgffkk2Gs0AN0dW1CKVLcG7w==", + "dev": true, + "dependencies": { + "@ampproject/remapping": "^2.2.0", + "@babel/code-frame": "^7.22.5", + "@babel/generator": "^7.22.9", + "@babel/helper-compilation-targets": "^7.22.9", + "@babel/helper-module-transforms": "^7.22.9", + "@babel/helpers": "^7.22.6", + "@babel/parser": "^7.22.7", + "@babel/template": "^7.22.5", + "@babel/traverse": "^7.22.8", + "@babel/types": "^7.22.5", + "convert-source-map": "^1.7.0", + "debug": "^4.1.0", + "gensync": "^1.0.0-beta.2", + "json5": "^2.2.2", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/babel" + } + }, + "node_modules/@babel/core/node_modules/convert-source-map": { + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.9.0.tgz", + "integrity": "sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A==", + "dev": true + }, + "node_modules/@babel/generator": { + "version": "7.23.0", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.23.0.tgz", + "integrity": "sha512-lN85QRR+5IbYrMWM6Y4pE/noaQtg4pNiqeNGX60eqOfo6gtEj6uw/JagelB8vVztSd7R6M5n1+PQkDbHbBRU4g==", + "dev": true, + "dependencies": { + "@babel/types": "^7.23.0", + "@jridgewell/gen-mapping": "^0.3.2", + "@jridgewell/trace-mapping": "^0.3.17", + "jsesc": "^2.5.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-annotate-as-pure": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.22.5.tgz", + "integrity": "sha512-LvBTxu8bQSQkcyKOU+a1btnNFQ1dMAd0R6PyW3arXes06F6QLWLIrd681bxRPIXlrMGR3XYnW9JyML7dP3qgxg==", + "dev": true, + "dependencies": { + "@babel/types": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-builder-binary-assignment-operator-visitor": { + "version": "7.22.15", + "resolved": "https://registry.npmjs.org/@babel/helper-builder-binary-assignment-operator-visitor/-/helper-builder-binary-assignment-operator-visitor-7.22.15.tgz", + "integrity": "sha512-QkBXwGgaoC2GtGZRoma6kv7Szfv06khvhFav67ZExau2RaXzy8MpHSMO2PNoP2XtmQphJQRHFfg77Bq731Yizw==", + "dev": true, + "dependencies": { + "@babel/types": "^7.22.15" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-compilation-targets": { + "version": "7.22.15", + "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.22.15.tgz", + "integrity": "sha512-y6EEzULok0Qvz8yyLkCvVX+02ic+By2UdOhylwUOvOn9dvYc9mKICJuuU1n1XBI02YWsNsnrY1kc6DVbjcXbtw==", + "dev": true, + "dependencies": { + "@babel/compat-data": "^7.22.9", + "@babel/helper-validator-option": "^7.22.15", + "browserslist": "^4.21.9", + "lru-cache": "^5.1.1", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-create-class-features-plugin": { + "version": "7.23.5", + "resolved": "https://registry.npmjs.org/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.23.5.tgz", + "integrity": "sha512-QELlRWxSpgdwdJzSJn4WAhKC+hvw/AtHbbrIoncKHkhKKR/luAlKkgBDcri1EzWAo8f8VvYVryEHN4tax/V67A==", + "dev": true, + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.22.5", + "@babel/helper-environment-visitor": "^7.22.20", + "@babel/helper-function-name": "^7.23.0", + "@babel/helper-member-expression-to-functions": "^7.23.0", + "@babel/helper-optimise-call-expression": "^7.22.5", + "@babel/helper-replace-supers": "^7.22.20", + "@babel/helper-skip-transparent-expression-wrappers": "^7.22.5", + "@babel/helper-split-export-declaration": "^7.22.6", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-create-regexp-features-plugin": { + "version": "7.22.15", + "resolved": "https://registry.npmjs.org/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.22.15.tgz", + "integrity": "sha512-29FkPLFjn4TPEa3RE7GpW+qbE8tlsu3jntNYNfcGsc49LphF1PQIiD+vMZ1z1xVOKt+93khA9tc2JBs3kBjA7w==", + "dev": true, + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.22.5", + "regexpu-core": "^5.3.1", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-define-polyfill-provider": { + "version": "0.4.3", + "resolved": "https://registry.npmjs.org/@babel/helper-define-polyfill-provider/-/helper-define-polyfill-provider-0.4.3.tgz", + "integrity": "sha512-WBrLmuPP47n7PNwsZ57pqam6G/RGo1vw/87b0Blc53tZNGZ4x7YvZ6HgQe2vo1W/FR20OgjeZuGXzudPiXHFug==", + "dev": true, + "dependencies": { + "@babel/helper-compilation-targets": "^7.22.6", + "@babel/helper-plugin-utils": "^7.22.5", + "debug": "^4.1.1", + "lodash.debounce": "^4.0.8", + "resolve": "^1.14.2" + }, + "peerDependencies": { + "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0" + } + }, + "node_modules/@babel/helper-environment-visitor": { + "version": "7.22.20", + "resolved": "https://registry.npmjs.org/@babel/helper-environment-visitor/-/helper-environment-visitor-7.22.20.tgz", + "integrity": "sha512-zfedSIzFhat/gFhWfHtgWvlec0nqB9YEIVrpuwjruLlXfUSnA8cJB0miHKwqDnQ7d32aKo2xt88/xZptwxbfhA==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-function-name": { + "version": "7.23.0", + "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.23.0.tgz", + "integrity": "sha512-OErEqsrxjZTJciZ4Oo+eoZqeW9UIiOcuYKRJA4ZAgV9myA+pOXhhmpfNCKjEH/auVfEYVFJ6y1Tc4r0eIApqiw==", + "dev": true, + "dependencies": { + "@babel/template": "^7.22.15", + "@babel/types": "^7.23.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-hoist-variables": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.22.5.tgz", + "integrity": "sha512-wGjk9QZVzvknA6yKIUURb8zY3grXCcOZt+/7Wcy8O2uctxhplmUPkOdlgoNhmdVee2c92JXbf1xpMtVNbfoxRw==", + "dev": true, + "dependencies": { + "@babel/types": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-member-expression-to-functions": { + "version": "7.23.0", + "resolved": "https://registry.npmjs.org/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.23.0.tgz", + "integrity": "sha512-6gfrPwh7OuT6gZyJZvd6WbTfrqAo7vm4xCzAXOusKqq/vWdKXphTpj5klHKNmRUU6/QRGlBsyU9mAIPaWHlqJA==", + "dev": true, + "dependencies": { + "@babel/types": "^7.23.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-imports": { + "version": "7.22.15", + "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.22.15.tgz", + "integrity": "sha512-0pYVBnDKZO2fnSPCrgM/6WMc7eS20Fbok+0r88fp+YtWVLZrp4CkafFGIp+W0VKw4a22sgebPT99y+FDNMdP4w==", + "dev": true, + "dependencies": { + "@babel/types": "^7.22.15" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-transforms": { + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.23.3.tgz", + "integrity": "sha512-7bBs4ED9OmswdfDzpz4MpWgSrV7FXlc3zIagvLFjS5H+Mk7Snr21vQ6QwrsoCGMfNC4e4LQPdoULEt4ykz0SRQ==", + "dev": true, + "dependencies": { + "@babel/helper-environment-visitor": "^7.22.20", + "@babel/helper-module-imports": "^7.22.15", + "@babel/helper-simple-access": "^7.22.5", + "@babel/helper-split-export-declaration": "^7.22.6", + "@babel/helper-validator-identifier": "^7.22.20" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-optimise-call-expression": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.22.5.tgz", + "integrity": "sha512-HBwaojN0xFRx4yIvpwGqxiV2tUfl7401jlok564NgB9EHS1y6QT17FmKWm4ztqjeVdXLuC4fSvHc5ePpQjoTbw==", + "dev": true, + "dependencies": { + "@babel/types": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-plugin-utils": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.22.5.tgz", + "integrity": "sha512-uLls06UVKgFG9QD4OeFYLEGteMIAa5kpTPcFL28yuCIIzsf6ZyKZMllKVOCZFhiZ5ptnwX4mtKdWCBE/uT4amg==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-remap-async-to-generator": { + "version": "7.22.20", + "resolved": "https://registry.npmjs.org/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.22.20.tgz", + "integrity": "sha512-pBGyV4uBqOns+0UvhsTO8qgl8hO89PmiDYv+/COyp1aeMcmfrfruz+/nCMFiYyFF/Knn0yfrC85ZzNFjembFTw==", + "dev": true, + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.22.5", + "@babel/helper-environment-visitor": "^7.22.20", + "@babel/helper-wrap-function": "^7.22.20" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-replace-supers": { + "version": "7.22.20", + "resolved": "https://registry.npmjs.org/@babel/helper-replace-supers/-/helper-replace-supers-7.22.20.tgz", + "integrity": "sha512-qsW0In3dbwQUbK8kejJ4R7IHVGwHJlV6lpG6UA7a9hSa2YEiAib+N1T2kr6PEeUT+Fl7najmSOS6SmAwCHK6Tw==", + "dev": true, + "dependencies": { + "@babel/helper-environment-visitor": "^7.22.20", + "@babel/helper-member-expression-to-functions": "^7.22.15", + "@babel/helper-optimise-call-expression": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-simple-access": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.22.5.tgz", + "integrity": "sha512-n0H99E/K+Bika3++WNL17POvo4rKWZ7lZEp1Q+fStVbUi8nxPQEBOlTmCOxW/0JsS56SKKQ+ojAe2pHKJHN35w==", + "dev": true, + "dependencies": { + "@babel/types": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-skip-transparent-expression-wrappers": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-skip-transparent-expression-wrappers/-/helper-skip-transparent-expression-wrappers-7.22.5.tgz", + "integrity": "sha512-tK14r66JZKiC43p8Ki33yLBVJKlQDFoA8GYN67lWCDCqoL6EMMSuM9b+Iff2jHaM/RRFYl7K+iiru7hbRqNx8Q==", + "dev": true, + "dependencies": { + "@babel/types": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-split-export-declaration": { + "version": "7.22.6", + "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.22.6.tgz", + "integrity": "sha512-AsUnxuLhRYsisFiaJwvp1QF+I3KjD5FOxut14q/GzovUe6orHLesW2C7d754kRm53h5gqrz6sFl6sxc4BVtE/g==", + "dev": true, + "dependencies": { + "@babel/types": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-string-parser": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.27.1.tgz", + "integrity": "sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-identifier": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.27.1.tgz", + "integrity": "sha512-D2hP9eA+Sqx1kBZgzxZh0y1trbuU+JoDkiEwqhQ36nodYqJwyEIhPSdMNd7lOm/4io72luTPWH20Yda0xOuUow==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-option": { + "version": "7.23.5", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.23.5.tgz", + "integrity": "sha512-85ttAOMLsr53VgXkTbkx8oA6YTfT4q7/HzXSLEYmjcSTJPMPQtvq1BD79Byep5xMUYbGRzEpDsjUf3dyp54IKw==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-wrap-function": { + "version": "7.22.20", + "resolved": "https://registry.npmjs.org/@babel/helper-wrap-function/-/helper-wrap-function-7.22.20.tgz", + "integrity": "sha512-pms/UwkOpnQe/PDAEdV/d7dVCoBbB+R4FvYoHGZz+4VPcg7RtYy2KP7S2lbuWM6FCSgob5wshfGESbC/hzNXZw==", + "dev": true, + "dependencies": { + "@babel/helper-function-name": "^7.22.5", + "@babel/template": "^7.22.15", + "@babel/types": "^7.22.19" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helpers": { + "version": "7.27.6", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.27.6.tgz", + "integrity": "sha512-muE8Tt8M22638HU31A3CgfSUciwz1fhATfoVai05aPXGor//CdWDCbnlY1yvBPo07njuVOCNGCSp/GTt12lIug==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/template": "^7.27.2", + "@babel/types": "^7.27.6" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/parser": { + "version": "7.28.0", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.28.0.tgz", + "integrity": "sha512-jVZGvOxOuNSsuQuLRTh13nU0AogFlw32w/MT+LV6D3sP5WdbW61E77RnkbaO2dUvmPAYrBDJXGn5gGS6tH4j8g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/types": "^7.28.0" + }, + "bin": { + "parser": "bin/babel-parser.js" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": { + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression/-/plugin-bugfix-safari-id-destructuring-collision-in-function-expression-7.23.3.tgz", + "integrity": "sha512-iRkKcCqb7iGnq9+3G6rZ+Ciz5VywC4XNRHe57lKM+jOeYAoR0lVqdeeDRfh0tQcTfw/+vBhHn926FmQhLtlFLQ==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": { + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining/-/plugin-bugfix-v8-spread-parameters-in-optional-chaining-7.23.3.tgz", + "integrity": "sha512-WwlxbfMNdVEpQjZmK5mhm7oSwD3dS6eU+Iwsi4Knl9wAletWem7kaRsGOG+8UEbRyqxY4SS5zvtfXwX+jMxUwQ==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/helper-skip-transparent-expression-wrappers": "^7.22.5", + "@babel/plugin-transform-optional-chaining": "^7.23.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.13.0" + } + }, + "node_modules/@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly": { + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly/-/plugin-bugfix-v8-static-class-fields-redefine-readonly-7.23.3.tgz", + "integrity": "sha512-XaJak1qcityzrX0/IU5nKHb34VaibwP3saKqG6a/tppelgllOH13LUann4ZCIBcVOeE6H18K4Vx9QKkVww3z/w==", + "dev": true, + "dependencies": { + "@babel/helper-environment-visitor": "^7.22.20", + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/plugin-proposal-private-property-in-object": { + "version": "7.21.0-placeholder-for-preset-env.2", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-private-property-in-object/-/plugin-proposal-private-property-in-object-7.21.0-placeholder-for-preset-env.2.tgz", + "integrity": "sha512-SOSkfJDddaM7mak6cPEpswyTRnuRltl429hMraQEglW+OkovnCzsiszTmsrlY//qLFjCpQDFRvjdm2wA5pPm9w==", + "dev": true, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-async-generators": { + "version": "7.8.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz", + "integrity": "sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-bigint": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-bigint/-/plugin-syntax-bigint-7.8.3.tgz", + "integrity": "sha512-wnTnFlG+YxQm3vDxpGE57Pj0srRU4sHE/mDkt1qv2YJJSeUAec2ma4WLUnUPeKjyrfntVwe/N6dCXpU+zL3Npg==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-class-properties": { + "version": "7.12.13", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.12.13.tgz", + "integrity": "sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.12.13" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-class-static-block": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-static-block/-/plugin-syntax-class-static-block-7.14.5.tgz", + "integrity": "sha512-b+YyPmr6ldyNnM6sqYeMWE+bgJcJpO6yS4QD7ymxgH34GBPNDM/THBh8iunyvKIZztiwLH4CJZ0RxTk9emgpjw==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-dynamic-import": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-dynamic-import/-/plugin-syntax-dynamic-import-7.8.3.tgz", + "integrity": "sha512-5gdGbFon+PszYzqs83S3E5mpi7/y/8M9eC90MRTZfduQOYW76ig6SOSPNe41IG5LoP3FGBn2N0RjVDSQiS94kQ==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-export-namespace-from": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-export-namespace-from/-/plugin-syntax-export-namespace-from-7.8.3.tgz", + "integrity": "sha512-MXf5laXo6c1IbEbegDmzGPwGNTsHZmEy6QGznu5Sh2UCWvueywb2ee+CCE4zQiZstxU9BMoQO9i6zUFSY0Kj0Q==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.3" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-import-assertions": { + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-assertions/-/plugin-syntax-import-assertions-7.23.3.tgz", + "integrity": "sha512-lPgDSU+SJLK3xmFDTV2ZRQAiM7UuUjGidwBywFavObCiZc1BeAAcMtHJKUya92hPHO+at63JJPLygilZard8jw==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-import-attributes": { + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-attributes/-/plugin-syntax-import-attributes-7.23.3.tgz", + "integrity": "sha512-pawnE0P9g10xgoP7yKr6CK63K2FMsTE+FZidZO/1PwRdzmAPVs+HS1mAURUsgaoxammTJvULUdIkEK0gOcU2tA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-import-meta": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-meta/-/plugin-syntax-import-meta-7.10.4.tgz", + "integrity": "sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.10.4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-json-strings": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.8.3.tgz", + "integrity": "sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-jsx": { + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.23.3.tgz", + "integrity": "sha512-EB2MELswq55OHUoRZLGg/zC7QWUKfNLpE57m/S2yr1uEneIgsTgrSzXP3NXEsMkVn76OlaVVnzN+ugObuYGwhg==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-logical-assignment-operators": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.10.4.tgz", + "integrity": "sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.10.4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-nullish-coalescing-operator": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz", + "integrity": "sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-numeric-separator": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-numeric-separator/-/plugin-syntax-numeric-separator-7.10.4.tgz", + "integrity": "sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.10.4" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-object-rest-spread": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz", + "integrity": "sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-optional-catch-binding": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.8.3.tgz", + "integrity": "sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-optional-chaining": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.3.tgz", + "integrity": "sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.8.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-private-property-in-object": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-private-property-in-object/-/plugin-syntax-private-property-in-object-7.14.5.tgz", + "integrity": "sha512-0wVnp9dxJ72ZUJDV27ZfbSj6iHLoytYZmh3rFcxNnvsJF3ktkzLDZPy/mA17HGsaQT3/DQsWYX1f1QGWkCoVUg==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-top-level-await": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.14.5.tgz", + "integrity": "sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-typescript": { + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.23.3.tgz", + "integrity": "sha512-9EiNjVJOMwCO+43TqoTrgQ8jMwcAd0sWyXi9RPfIsLTj4R2MADDDQXELhffaUx/uJv2AYcxBgPwH6j4TIA4ytQ==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-unicode-sets-regex": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-unicode-sets-regex/-/plugin-syntax-unicode-sets-regex-7.18.6.tgz", + "integrity": "sha512-727YkEAPwSIQTv5im8QHz3upqp92JTWhidIC81Tdx4VJYIte/VndKf1qKrfnnhPLiPghStWfvC/iFaMCQu7Nqg==", + "dev": true, + "dependencies": { + "@babel/helper-create-regexp-features-plugin": "^7.18.6", + "@babel/helper-plugin-utils": "^7.18.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/plugin-transform-arrow-functions": { + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.23.3.tgz", + "integrity": "sha512-NzQcQrzaQPkaEwoTm4Mhyl8jI1huEL/WWIEvudjTCMJ9aBZNpsJbMASx7EQECtQQPS/DcnFpo0FIh3LvEO9cxQ==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-async-generator-functions": { + "version": "7.23.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-async-generator-functions/-/plugin-transform-async-generator-functions-7.23.4.tgz", + "integrity": "sha512-efdkfPhHYTtn0G6n2ddrESE91fgXxjlqLsnUtPWnJs4a4mZIbUaK7ffqKIIUKXSHwcDvaCVX6GXkaJJFqtX7jw==", + "dev": true, + "dependencies": { + "@babel/helper-environment-visitor": "^7.22.20", + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/helper-remap-async-to-generator": "^7.22.20", + "@babel/plugin-syntax-async-generators": "^7.8.4" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-async-to-generator": { + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.23.3.tgz", + "integrity": "sha512-A7LFsKi4U4fomjqXJlZg/u0ft/n8/7n7lpffUP/ZULx/DtV9SGlNKZolHH6PE8Xl1ngCc0M11OaeZptXVkfKSw==", + "dev": true, + "dependencies": { + "@babel/helper-module-imports": "^7.22.15", + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/helper-remap-async-to-generator": "^7.22.20" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-block-scoped-functions": { + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.23.3.tgz", + "integrity": "sha512-vI+0sIaPIO6CNuM9Kk5VmXcMVRiOpDh7w2zZt9GXzmE/9KD70CUEVhvPR/etAeNK/FAEkhxQtXOzVF3EuRL41A==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-block-scoping": { + "version": "7.23.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.23.4.tgz", + "integrity": "sha512-0QqbP6B6HOh7/8iNR4CQU2Th/bbRtBp4KS9vcaZd1fZ0wSh5Fyssg0UCIHwxh+ka+pNDREbVLQnHCMHKZfPwfw==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-class-properties": { + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-class-properties/-/plugin-transform-class-properties-7.23.3.tgz", + "integrity": "sha512-uM+AN8yCIjDPccsKGlw271xjJtGii+xQIF/uMPS8H15L12jZTsLfF4o5vNO7d/oUguOyfdikHGc/yi9ge4SGIg==", + "dev": true, + "dependencies": { + "@babel/helper-create-class-features-plugin": "^7.22.15", + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-class-static-block": { + "version": "7.23.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-class-static-block/-/plugin-transform-class-static-block-7.23.4.tgz", + "integrity": "sha512-nsWu/1M+ggti1SOALj3hfx5FXzAY06fwPJsUZD4/A5e1bWi46VUIWtD+kOX6/IdhXGsXBWllLFDSnqSCdUNydQ==", + "dev": true, + "dependencies": { + "@babel/helper-create-class-features-plugin": "^7.22.15", + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/plugin-syntax-class-static-block": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.12.0" + } + }, + "node_modules/@babel/plugin-transform-classes": { + "version": "7.23.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-classes/-/plugin-transform-classes-7.23.5.tgz", + "integrity": "sha512-jvOTR4nicqYC9yzOHIhXG5emiFEOpappSJAl73SDSEDcybD+Puuze8Tnpb9p9qEyYup24tq891gkaygIFvWDqg==", + "dev": true, + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.22.5", + "@babel/helper-compilation-targets": "^7.22.15", + "@babel/helper-environment-visitor": "^7.22.20", + "@babel/helper-function-name": "^7.23.0", + "@babel/helper-optimise-call-expression": "^7.22.5", + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/helper-replace-supers": "^7.22.20", + "@babel/helper-split-export-declaration": "^7.22.6", + "globals": "^11.1.0" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-computed-properties": { + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.23.3.tgz", + "integrity": "sha512-dTj83UVTLw/+nbiHqQSFdwO9CbTtwq1DsDqm3CUEtDrZNET5rT5E6bIdTlOftDTDLMYxvxHNEYO4B9SLl8SLZw==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/template": "^7.22.15" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-destructuring": { + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.23.3.tgz", + "integrity": "sha512-n225npDqjDIr967cMScVKHXJs7rout1q+tt50inyBCPkyZ8KxeI6d+GIbSBTT/w/9WdlWDOej3V9HE5Lgk57gw==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-dotall-regex": { + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.23.3.tgz", + "integrity": "sha512-vgnFYDHAKzFaTVp+mneDsIEbnJ2Np/9ng9iviHw3P/KVcgONxpNULEW/51Z/BaFojG2GI2GwwXck5uV1+1NOYQ==", + "dev": true, + "dependencies": { + "@babel/helper-create-regexp-features-plugin": "^7.22.15", + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-duplicate-keys": { + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-duplicate-keys/-/plugin-transform-duplicate-keys-7.23.3.tgz", + "integrity": "sha512-RrqQ+BQmU3Oyav3J+7/myfvRCq7Tbz+kKLLshUmMwNlDHExbGL7ARhajvoBJEvc+fCguPPu887N+3RRXBVKZUA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-dynamic-import": { + "version": "7.23.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-dynamic-import/-/plugin-transform-dynamic-import-7.23.4.tgz", + "integrity": "sha512-V6jIbLhdJK86MaLh4Jpghi8ho5fGzt3imHOBu/x0jlBaPYqDoWz4RDXjmMOfnh+JWNaQleEAByZLV0QzBT4YQQ==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/plugin-syntax-dynamic-import": "^7.8.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-exponentiation-operator": { + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.23.3.tgz", + "integrity": "sha512-5fhCsl1odX96u7ILKHBj4/Y8vipoqwsJMh4csSA8qFfxrZDEA4Ssku2DyNvMJSmZNOEBT750LfFPbtrnTP90BQ==", + "dev": true, + "dependencies": { + "@babel/helper-builder-binary-assignment-operator-visitor": "^7.22.15", + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-export-namespace-from": { + "version": "7.23.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-export-namespace-from/-/plugin-transform-export-namespace-from-7.23.4.tgz", + "integrity": "sha512-GzuSBcKkx62dGzZI1WVgTWvkkz84FZO5TC5T8dl/Tht/rAla6Dg/Mz9Yhypg+ezVACf/rgDuQt3kbWEv7LdUDQ==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/plugin-syntax-export-namespace-from": "^7.8.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-for-of": { + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.23.3.tgz", + "integrity": "sha512-X8jSm8X1CMwxmK878qsUGJRmbysKNbdpTv/O1/v0LuY/ZkZrng5WYiekYSdg9m09OTmDDUWeEDsTE+17WYbAZw==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-function-name": { + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.23.3.tgz", + "integrity": "sha512-I1QXp1LxIvt8yLaib49dRW5Okt7Q4oaxao6tFVKS/anCdEOMtYwWVKoiOA1p34GOWIZjUK0E+zCp7+l1pfQyiw==", + "dev": true, + "dependencies": { + "@babel/helper-compilation-targets": "^7.22.15", + "@babel/helper-function-name": "^7.23.0", + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-json-strings": { + "version": "7.23.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-json-strings/-/plugin-transform-json-strings-7.23.4.tgz", + "integrity": "sha512-81nTOqM1dMwZ/aRXQ59zVubN9wHGqk6UtqRK+/q+ciXmRy8fSolhGVvG09HHRGo4l6fr/c4ZhXUQH0uFW7PZbg==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/plugin-syntax-json-strings": "^7.8.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-literals": { + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-literals/-/plugin-transform-literals-7.23.3.tgz", + "integrity": "sha512-wZ0PIXRxnwZvl9AYpqNUxpZ5BiTGrYt7kueGQ+N5FiQ7RCOD4cm8iShd6S6ggfVIWaJf2EMk8eRzAh52RfP4rQ==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-logical-assignment-operators": { + "version": "7.23.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-logical-assignment-operators/-/plugin-transform-logical-assignment-operators-7.23.4.tgz", + "integrity": "sha512-Mc/ALf1rmZTP4JKKEhUwiORU+vcfarFVLfcFiolKUo6sewoxSEgl36ak5t+4WamRsNr6nzjZXQjM35WsU+9vbg==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/plugin-syntax-logical-assignment-operators": "^7.10.4" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-member-expression-literals": { + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.23.3.tgz", + "integrity": "sha512-sC3LdDBDi5x96LA+Ytekz2ZPk8i/Ck+DEuDbRAll5rknJ5XRTSaPKEYwomLcs1AA8wg9b3KjIQRsnApj+q51Ag==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-modules-amd": { + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.23.3.tgz", + "integrity": "sha512-vJYQGxeKM4t8hYCKVBlZX/gtIY2I7mRGFNcm85sgXGMTBcoV3QdVtdpbcWEbzbfUIUZKwvgFT82mRvaQIebZzw==", + "dev": true, + "dependencies": { + "@babel/helper-module-transforms": "^7.23.3", + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-modules-commonjs": { + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.23.3.tgz", + "integrity": "sha512-aVS0F65LKsdNOtcz6FRCpE4OgsP2OFnW46qNxNIX9h3wuzaNcSQsJysuMwqSibC98HPrf2vCgtxKNwS0DAlgcA==", + "dev": true, + "dependencies": { + "@babel/helper-module-transforms": "^7.23.3", + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/helper-simple-access": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-modules-systemjs": { + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.23.3.tgz", + "integrity": "sha512-ZxyKGTkF9xT9YJuKQRo19ewf3pXpopuYQd8cDXqNzc3mUNbOME0RKMoZxviQk74hwzfQsEe66dE92MaZbdHKNQ==", + "dev": true, + "dependencies": { + "@babel/helper-hoist-variables": "^7.22.5", + "@babel/helper-module-transforms": "^7.23.3", + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/helper-validator-identifier": "^7.22.20" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-modules-umd": { + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.23.3.tgz", + "integrity": "sha512-zHsy9iXX2nIsCBFPud3jKn1IRPWg3Ing1qOZgeKV39m1ZgIdpJqvlWVeiHBZC6ITRG0MfskhYe9cLgntfSFPIg==", + "dev": true, + "dependencies": { + "@babel/helper-module-transforms": "^7.23.3", + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-named-capturing-groups-regex": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-named-capturing-groups-regex/-/plugin-transform-named-capturing-groups-regex-7.22.5.tgz", + "integrity": "sha512-YgLLKmS3aUBhHaxp5hi1WJTgOUb/NCuDHzGT9z9WTt3YG+CPRhJs6nprbStx6DnWM4dh6gt7SU3sZodbZ08adQ==", + "dev": true, + "dependencies": { + "@babel/helper-create-regexp-features-plugin": "^7.22.5", + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/plugin-transform-new-target": { + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-new-target/-/plugin-transform-new-target-7.23.3.tgz", + "integrity": "sha512-YJ3xKqtJMAT5/TIZnpAR3I+K+WaDowYbN3xyxI8zxx/Gsypwf9B9h0VB+1Nh6ACAAPRS5NSRje0uVv5i79HYGQ==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-nullish-coalescing-operator": { + "version": "7.23.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-nullish-coalescing-operator/-/plugin-transform-nullish-coalescing-operator-7.23.4.tgz", + "integrity": "sha512-jHE9EVVqHKAQx+VePv5LLGHjmHSJR76vawFPTdlxR/LVJPfOEGxREQwQfjuZEOPTwG92X3LINSh3M40Rv4zpVA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-numeric-separator": { + "version": "7.23.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-numeric-separator/-/plugin-transform-numeric-separator-7.23.4.tgz", + "integrity": "sha512-mps6auzgwjRrwKEZA05cOwuDc9FAzoyFS4ZsG/8F43bTLf/TgkJg7QXOrPO1JO599iA3qgK9MXdMGOEC8O1h6Q==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/plugin-syntax-numeric-separator": "^7.10.4" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-object-rest-spread": { + "version": "7.23.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-rest-spread/-/plugin-transform-object-rest-spread-7.23.4.tgz", + "integrity": "sha512-9x9K1YyeQVw0iOXJlIzwm8ltobIIv7j2iLyP2jIhEbqPRQ7ScNgwQufU2I0Gq11VjyG4gI4yMXt2VFags+1N3g==", + "dev": true, + "dependencies": { + "@babel/compat-data": "^7.23.3", + "@babel/helper-compilation-targets": "^7.22.15", + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/plugin-syntax-object-rest-spread": "^7.8.3", + "@babel/plugin-transform-parameters": "^7.23.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-object-super": { + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.23.3.tgz", + "integrity": "sha512-BwQ8q0x2JG+3lxCVFohg+KbQM7plfpBwThdW9A6TMtWwLsbDA01Ek2Zb/AgDN39BiZsExm4qrXxjk+P1/fzGrA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/helper-replace-supers": "^7.22.20" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-optional-catch-binding": { + "version": "7.23.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-optional-catch-binding/-/plugin-transform-optional-catch-binding-7.23.4.tgz", + "integrity": "sha512-XIq8t0rJPHf6Wvmbn9nFxU6ao4c7WhghTR5WyV8SrJfUFzyxhCm4nhC+iAp3HFhbAKLfYpgzhJ6t4XCtVwqO5A==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/plugin-syntax-optional-catch-binding": "^7.8.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-optional-chaining": { + "version": "7.23.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-optional-chaining/-/plugin-transform-optional-chaining-7.23.4.tgz", + "integrity": "sha512-ZU8y5zWOfjM5vZ+asjgAPwDaBjJzgufjES89Rs4Lpq63O300R/kOz30WCLo6BxxX6QVEilwSlpClnG5cZaikTA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/helper-skip-transparent-expression-wrappers": "^7.22.5", + "@babel/plugin-syntax-optional-chaining": "^7.8.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-parameters": { + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.23.3.tgz", + "integrity": "sha512-09lMt6UsUb3/34BbECKVbVwrT9bO6lILWln237z7sLaWnMsTi7Yc9fhX5DLpkJzAGfaReXI22wP41SZmnAA3Vw==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-private-methods": { + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-private-methods/-/plugin-transform-private-methods-7.23.3.tgz", + "integrity": "sha512-UzqRcRtWsDMTLrRWFvUBDwmw06tCQH9Rl1uAjfh6ijMSmGYQ+fpdB+cnqRC8EMh5tuuxSv0/TejGL+7vyj+50g==", + "dev": true, + "dependencies": { + "@babel/helper-create-class-features-plugin": "^7.22.15", + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-private-property-in-object": { + "version": "7.23.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-private-property-in-object/-/plugin-transform-private-property-in-object-7.23.4.tgz", + "integrity": "sha512-9G3K1YqTq3F4Vt88Djx1UZ79PDyj+yKRnUy7cZGSMe+a7jkwD259uKKuUzQlPkGam7R+8RJwh5z4xO27fA1o2A==", + "dev": true, + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.22.5", + "@babel/helper-create-class-features-plugin": "^7.22.15", + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/plugin-syntax-private-property-in-object": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-property-literals": { + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.23.3.tgz", + "integrity": "sha512-jR3Jn3y7cZp4oEWPFAlRsSWjxKe4PZILGBSd4nis1TsC5qeSpb+nrtihJuDhNI7QHiVbUaiXa0X2RZY3/TI6Nw==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-regenerator": { + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.23.3.tgz", + "integrity": "sha512-KP+75h0KghBMcVpuKisx3XTu9Ncut8Q8TuvGO4IhY+9D5DFEckQefOuIsB/gQ2tG71lCke4NMrtIPS8pOj18BQ==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5", + "regenerator-transform": "^0.15.2" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-reserved-words": { + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-reserved-words/-/plugin-transform-reserved-words-7.23.3.tgz", + "integrity": "sha512-QnNTazY54YqgGxwIexMZva9gqbPa15t/x9VS+0fsEFWplwVpXYZivtgl43Z1vMpc1bdPP2PP8siFeVcnFvA3Cg==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-shorthand-properties": { + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.23.3.tgz", + "integrity": "sha512-ED2fgqZLmexWiN+YNFX26fx4gh5qHDhn1O2gvEhreLW2iI63Sqm4llRLCXALKrCnbN4Jy0VcMQZl/SAzqug/jg==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-spread": { + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-spread/-/plugin-transform-spread-7.23.3.tgz", + "integrity": "sha512-VvfVYlrlBVu+77xVTOAoxQ6mZbnIq5FM0aGBSFEcIh03qHf+zNqA4DC/3XMUozTg7bZV3e3mZQ0i13VB6v5yUg==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/helper-skip-transparent-expression-wrappers": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-sticky-regex": { + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.23.3.tgz", + "integrity": "sha512-HZOyN9g+rtvnOU3Yh7kSxXrKbzgrm5X4GncPY1QOquu7epga5MxKHVpYu2hvQnry/H+JjckSYRb93iNfsioAGg==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-template-literals": { + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.23.3.tgz", + "integrity": "sha512-Flok06AYNp7GV2oJPZZcP9vZdszev6vPBkHLwxwSpaIqx75wn6mUd3UFWsSsA0l8nXAKkyCmL/sR02m8RYGeHg==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-typeof-symbol": { + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.23.3.tgz", + "integrity": "sha512-4t15ViVnaFdrPC74be1gXBSMzXk3B4Us9lP7uLRQHTFpV5Dvt33pn+2MyyNxmN3VTTm3oTrZVMUmuw3oBnQ2oQ==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-typescript": { + "version": "7.23.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-typescript/-/plugin-transform-typescript-7.23.5.tgz", + "integrity": "sha512-2fMkXEJkrmwgu2Bsv1Saxgj30IXZdJ+84lQcKKI7sm719oXs0BBw2ZENKdJdR1PjWndgLCEBNXJOri0fk7RYQA==", + "dev": true, + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.22.5", + "@babel/helper-create-class-features-plugin": "^7.23.5", + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/plugin-syntax-typescript": "^7.23.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-unicode-escapes": { + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-escapes/-/plugin-transform-unicode-escapes-7.23.3.tgz", + "integrity": "sha512-OMCUx/bU6ChE3r4+ZdylEqAjaQgHAgipgW8nsCfu5pGqDcFytVd91AwRvUJSBZDz0exPGgnjoqhgRYLRjFZc9Q==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-unicode-property-regex": { + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-property-regex/-/plugin-transform-unicode-property-regex-7.23.3.tgz", + "integrity": "sha512-KcLIm+pDZkWZQAFJ9pdfmh89EwVfmNovFBcXko8szpBeF8z68kWIPeKlmSOkT9BXJxs2C0uk+5LxoxIv62MROA==", + "dev": true, + "dependencies": { + "@babel/helper-create-regexp-features-plugin": "^7.22.15", + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-unicode-regex": { + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.23.3.tgz", + "integrity": "sha512-wMHpNA4x2cIA32b/ci3AfwNgheiva2W0WUKWTK7vBHBhDKfPsc5cFGNWm69WBqpwd86u1qwZ9PWevKqm1A3yAw==", + "dev": true, + "dependencies": { + "@babel/helper-create-regexp-features-plugin": "^7.22.15", + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-unicode-sets-regex": { + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-sets-regex/-/plugin-transform-unicode-sets-regex-7.23.3.tgz", + "integrity": "sha512-W7lliA/v9bNR83Qc3q1ip9CQMZ09CcHDbHfbLRDNuAhn1Mvkr1ZNF7hPmztMQvtTGVLJ9m8IZqWsTkXOml8dbw==", + "dev": true, + "dependencies": { + "@babel/helper-create-regexp-features-plugin": "^7.22.15", + "@babel/helper-plugin-utils": "^7.22.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/preset-env": { + "version": "7.23.5", + "resolved": "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.23.5.tgz", + "integrity": "sha512-0d/uxVD6tFGWXGDSfyMD1p2otoaKmu6+GD+NfAx0tMaH+dxORnp7T9TaVQ6mKyya7iBtCIVxHjWT7MuzzM9z+A==", + "dev": true, + "dependencies": { + "@babel/compat-data": "^7.23.5", + "@babel/helper-compilation-targets": "^7.22.15", + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/helper-validator-option": "^7.23.5", + "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": "^7.23.3", + "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": "^7.23.3", + "@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly": "^7.23.3", + "@babel/plugin-proposal-private-property-in-object": "7.21.0-placeholder-for-preset-env.2", + "@babel/plugin-syntax-async-generators": "^7.8.4", + "@babel/plugin-syntax-class-properties": "^7.12.13", + "@babel/plugin-syntax-class-static-block": "^7.14.5", + "@babel/plugin-syntax-dynamic-import": "^7.8.3", + "@babel/plugin-syntax-export-namespace-from": "^7.8.3", + "@babel/plugin-syntax-import-assertions": "^7.23.3", + "@babel/plugin-syntax-import-attributes": "^7.23.3", + "@babel/plugin-syntax-import-meta": "^7.10.4", + "@babel/plugin-syntax-json-strings": "^7.8.3", + "@babel/plugin-syntax-logical-assignment-operators": "^7.10.4", + "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3", + "@babel/plugin-syntax-numeric-separator": "^7.10.4", + "@babel/plugin-syntax-object-rest-spread": "^7.8.3", + "@babel/plugin-syntax-optional-catch-binding": "^7.8.3", + "@babel/plugin-syntax-optional-chaining": "^7.8.3", + "@babel/plugin-syntax-private-property-in-object": "^7.14.5", + "@babel/plugin-syntax-top-level-await": "^7.14.5", + "@babel/plugin-syntax-unicode-sets-regex": "^7.18.6", + "@babel/plugin-transform-arrow-functions": "^7.23.3", + "@babel/plugin-transform-async-generator-functions": "^7.23.4", + "@babel/plugin-transform-async-to-generator": "^7.23.3", + "@babel/plugin-transform-block-scoped-functions": "^7.23.3", + "@babel/plugin-transform-block-scoping": "^7.23.4", + "@babel/plugin-transform-class-properties": "^7.23.3", + "@babel/plugin-transform-class-static-block": "^7.23.4", + "@babel/plugin-transform-classes": "^7.23.5", + "@babel/plugin-transform-computed-properties": "^7.23.3", + "@babel/plugin-transform-destructuring": "^7.23.3", + "@babel/plugin-transform-dotall-regex": "^7.23.3", + "@babel/plugin-transform-duplicate-keys": "^7.23.3", + "@babel/plugin-transform-dynamic-import": "^7.23.4", + "@babel/plugin-transform-exponentiation-operator": "^7.23.3", + "@babel/plugin-transform-export-namespace-from": "^7.23.4", + "@babel/plugin-transform-for-of": "^7.23.3", + "@babel/plugin-transform-function-name": "^7.23.3", + "@babel/plugin-transform-json-strings": "^7.23.4", + "@babel/plugin-transform-literals": "^7.23.3", + "@babel/plugin-transform-logical-assignment-operators": "^7.23.4", + "@babel/plugin-transform-member-expression-literals": "^7.23.3", + "@babel/plugin-transform-modules-amd": "^7.23.3", + "@babel/plugin-transform-modules-commonjs": "^7.23.3", + "@babel/plugin-transform-modules-systemjs": "^7.23.3", + "@babel/plugin-transform-modules-umd": "^7.23.3", + "@babel/plugin-transform-named-capturing-groups-regex": "^7.22.5", + "@babel/plugin-transform-new-target": "^7.23.3", + "@babel/plugin-transform-nullish-coalescing-operator": "^7.23.4", + "@babel/plugin-transform-numeric-separator": "^7.23.4", + "@babel/plugin-transform-object-rest-spread": "^7.23.4", + "@babel/plugin-transform-object-super": "^7.23.3", + "@babel/plugin-transform-optional-catch-binding": "^7.23.4", + "@babel/plugin-transform-optional-chaining": "^7.23.4", + "@babel/plugin-transform-parameters": "^7.23.3", + "@babel/plugin-transform-private-methods": "^7.23.3", + "@babel/plugin-transform-private-property-in-object": "^7.23.4", + "@babel/plugin-transform-property-literals": "^7.23.3", + "@babel/plugin-transform-regenerator": "^7.23.3", + "@babel/plugin-transform-reserved-words": "^7.23.3", + "@babel/plugin-transform-shorthand-properties": "^7.23.3", + "@babel/plugin-transform-spread": "^7.23.3", + "@babel/plugin-transform-sticky-regex": "^7.23.3", + "@babel/plugin-transform-template-literals": "^7.23.3", + "@babel/plugin-transform-typeof-symbol": "^7.23.3", + "@babel/plugin-transform-unicode-escapes": "^7.23.3", + "@babel/plugin-transform-unicode-property-regex": "^7.23.3", + "@babel/plugin-transform-unicode-regex": "^7.23.3", + "@babel/plugin-transform-unicode-sets-regex": "^7.23.3", + "@babel/preset-modules": "0.1.6-no-external-plugins", + "babel-plugin-polyfill-corejs2": "^0.4.6", + "babel-plugin-polyfill-corejs3": "^0.8.5", + "babel-plugin-polyfill-regenerator": "^0.5.3", + "core-js-compat": "^3.31.0", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/preset-modules": { + "version": "0.1.6-no-external-plugins", + "resolved": "https://registry.npmjs.org/@babel/preset-modules/-/preset-modules-0.1.6-no-external-plugins.tgz", + "integrity": "sha512-HrcgcIESLm9aIR842yhJ5RWan/gebQUJ6E/E5+rf0y9o6oj7w0Br+sWuL6kEQ/o/AdfvR1Je9jG18/gnpwjEyA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.0.0", + "@babel/types": "^7.4.4", + "esutils": "^2.0.2" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0 || ^8.0.0-0 <8.0.0" + } + }, + "node_modules/@babel/preset-typescript": { + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/preset-typescript/-/preset-typescript-7.23.3.tgz", + "integrity": "sha512-17oIGVlqz6CchO9RFYn5U6ZpWRZIngayYCtrPRSgANSwC2V1Jb+iP74nVxzzXJte8b8BYxrL1yY96xfhTBrNNQ==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/helper-validator-option": "^7.22.15", + "@babel/plugin-syntax-jsx": "^7.23.3", + "@babel/plugin-transform-modules-commonjs": "^7.23.3", + "@babel/plugin-transform-typescript": "^7.23.3" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/regjsgen": { + "version": "0.8.0", + "resolved": "https://registry.npmjs.org/@babel/regjsgen/-/regjsgen-0.8.0.tgz", + "integrity": "sha512-x/rqGMdzj+fWZvCOYForTghzbtqPDZ5gPwaoNGHdgDfF2QA/XZbCBp4Moo5scrkAMPhB7z26XM/AaHuIJdgauA==", + "dev": true + }, + "node_modules/@babel/runtime": { + "version": "7.27.6", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.27.6.tgz", + "integrity": "sha512-vbavdySgbTTrmFE+EsiqUTzlOr5bzlnJtUv9PynGCAKvfQqjIXbvFdumPM/GxMDfyuGMJaJAU6TO4zc1Jf1i8Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/template": { + "version": "7.27.2", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.27.2.tgz", + "integrity": "sha512-LPDZ85aEJyYSd18/DkjNh4/y1ntkE5KwUHWTiqgRxruuZL2F1yuHligVHLvcHY2vMHXttKFpJn6LwfI7cw7ODw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.27.1", + "@babel/parser": "^7.27.2", + "@babel/types": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/traverse": { + "version": "7.23.2", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.23.2.tgz", + "integrity": "sha512-azpe59SQ48qG6nu2CzcMLbxUudtN+dOM9kDbUqGq3HXUJRlo7i8fvPoxQUzYgLZ4cMVmuZgm8vvBpNeRhd6XSw==", + "dev": true, + "dependencies": { + "@babel/code-frame": "^7.22.13", + "@babel/generator": "^7.23.0", + "@babel/helper-environment-visitor": "^7.22.20", + "@babel/helper-function-name": "^7.23.0", + "@babel/helper-hoist-variables": "^7.22.5", + "@babel/helper-split-export-declaration": "^7.22.6", + "@babel/parser": "^7.23.0", + "@babel/types": "^7.23.0", + "debug": "^4.1.0", + "globals": "^11.1.0" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/types": { + "version": "7.28.1", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.28.1.tgz", + "integrity": "sha512-x0LvFTekgSX+83TI28Y9wYPUfzrnl2aT5+5QLnO6v7mSJYtEEevuDRN0F0uSHRk1G1IWZC43o00Y0xDDrpBGPQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-string-parser": "^7.27.1", + "@babel/helper-validator-identifier": "^7.27.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@bcoe/v8-coverage": { + "version": "0.2.3", + "resolved": "https://registry.npmjs.org/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz", + "integrity": "sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==", + "dev": true + }, + "node_modules/@istanbuljs/load-nyc-config": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz", + "integrity": "sha512-VjeHSlIzpv/NyD3N0YuHfXOPDIixcA1q2ZV98wsMqcYlPmv2n3Yb2lYP9XMElnaFVXg5A7YLTeLu6V84uQDjmQ==", + "dev": true, + "dependencies": { + "camelcase": "^5.3.1", + "find-up": "^4.1.0", + "get-package-type": "^0.1.0", + "js-yaml": "^3.13.1", + "resolve-from": "^5.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@istanbuljs/schema": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/@istanbuljs/schema/-/schema-0.1.3.tgz", + "integrity": "sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/@jest/console": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/@jest/console/-/console-29.6.1.tgz", + "integrity": "sha512-Aj772AYgwTSr5w8qnyoJ0eDYvN6bMsH3ORH1ivMotrInHLKdUz6BDlaEXHdM6kODaBIkNIyQGzsMvRdOv7VG7Q==", + "dev": true, + "dependencies": { + "@jest/types": "^29.6.1", + "@types/node": "*", + "chalk": "^4.0.0", + "jest-message-util": "^29.6.1", + "jest-util": "^29.6.1", + "slash": "^3.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/console/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/@jest/console/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/@jest/console/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/@jest/console/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/@jest/console/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/@jest/console/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@jest/core": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/@jest/core/-/core-29.6.1.tgz", + "integrity": "sha512-CcowHypRSm5oYQ1obz1wfvkjZZ2qoQlrKKvlfPwh5jUXVU12TWr2qMeH8chLMuTFzHh5a1g2yaqlqDICbr+ukQ==", + "dev": true, + "dependencies": { + "@jest/console": "^29.6.1", + "@jest/reporters": "^29.6.1", + "@jest/test-result": "^29.6.1", + "@jest/transform": "^29.6.1", + "@jest/types": "^29.6.1", + "@types/node": "*", + "ansi-escapes": "^4.2.1", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "exit": "^0.1.2", + "graceful-fs": "^4.2.9", + "jest-changed-files": "^29.5.0", + "jest-config": "^29.6.1", + "jest-haste-map": "^29.6.1", + "jest-message-util": "^29.6.1", + "jest-regex-util": "^29.4.3", + "jest-resolve": "^29.6.1", + "jest-resolve-dependencies": "^29.6.1", + "jest-runner": "^29.6.1", + "jest-runtime": "^29.6.1", + "jest-snapshot": "^29.6.1", + "jest-util": "^29.6.1", + "jest-validate": "^29.6.1", + "jest-watcher": "^29.6.1", + "micromatch": "^4.0.4", + "pretty-format": "^29.6.1", + "slash": "^3.0.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" + }, + "peerDependenciesMeta": { + "node-notifier": { + "optional": true + } + } + }, + "node_modules/@jest/core/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/@jest/core/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/@jest/core/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/@jest/core/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/@jest/core/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/@jest/core/node_modules/jest-config": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/jest-config/-/jest-config-29.6.1.tgz", + "integrity": "sha512-XdjYV2fy2xYixUiV2Wc54t3Z4oxYPAELUzWnV6+mcbq0rh742X2p52pii5A3oeRzYjLnQxCsZmp0qpI6klE2cQ==", + "dev": true, + "dependencies": { + "@babel/core": "^7.11.6", + "@jest/test-sequencer": "^29.6.1", + "@jest/types": "^29.6.1", + "babel-jest": "^29.6.1", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "deepmerge": "^4.2.2", + "glob": "^7.1.3", + "graceful-fs": "^4.2.9", + "jest-circus": "^29.6.1", + "jest-environment-node": "^29.6.1", + "jest-get-type": "^29.4.3", + "jest-regex-util": "^29.4.3", + "jest-resolve": "^29.6.1", + "jest-runner": "^29.6.1", + "jest-util": "^29.6.1", + "jest-validate": "^29.6.1", + "micromatch": "^4.0.4", + "parse-json": "^5.2.0", + "pretty-format": "^29.6.1", + "slash": "^3.0.0", + "strip-json-comments": "^3.1.1" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "@types/node": "*", + "ts-node": ">=9.0.0" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + }, + "ts-node": { + "optional": true + } + } + }, + "node_modules/@jest/core/node_modules/jest-get-type": { + "version": "29.4.3", + "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.4.3.tgz", + "integrity": "sha512-J5Xez4nRRMjk8emnTpWrlkyb9pfRQQanDrvWHhsR1+VUfbwxi30eVcZFlcdGInRibU4G5LwHXpI7IRHU0CY+gg==", + "dev": true, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/core/node_modules/pretty-format": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.6.1.tgz", + "integrity": "sha512-7jRj+yXO0W7e4/tSJKoR7HRIHLPPjtNaUGG2xxKQnGvPNRkgWcQ0AZX6P4KBRJN4FcTBWb3sa7DVUJmocYuoog==", + "dev": true, + "dependencies": { + "@jest/schemas": "^29.6.0", + "ansi-styles": "^5.0.0", + "react-is": "^18.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/core/node_modules/pretty-format/node_modules/ansi-styles": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", + "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/@jest/core/node_modules/react-is": { + "version": "18.2.0", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", + "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", + "dev": true + }, + "node_modules/@jest/core/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@jest/environment": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/environment/-/environment-29.7.0.tgz", + "integrity": "sha512-aQIfHDq33ExsN4jP1NWGXhxgQ/wixs60gDiKO+XVMd8Mn0NWPWgc34ZQDTb2jKaUWQ7MuwoitXAsN2XVXNMpAw==", + "dev": true, + "dependencies": { + "@jest/fake-timers": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "jest-mock": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/expect": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/@jest/expect/-/expect-29.6.1.tgz", + "integrity": "sha512-N5xlPrAYaRNyFgVf2s9Uyyvr795jnB6rObuPx4QFvNJz8aAjpZUDfO4bh5G/xuplMID8PrnuF1+SfSyDxhsgYg==", + "dev": true, + "dependencies": { + "expect": "^29.6.1", + "jest-snapshot": "^29.6.1" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/expect-utils": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/@jest/expect-utils/-/expect-utils-29.6.1.tgz", + "integrity": "sha512-o319vIf5pEMx0LmzSxxkYYxo4wrRLKHq9dP1yJU7FoPTB0LfAKSz8SWD6D/6U3v/O52t9cF5t+MeJiRsfk7zMw==", + "dev": true, + "dependencies": { + "jest-get-type": "^29.4.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/expect-utils/node_modules/jest-get-type": { + "version": "29.4.3", + "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.4.3.tgz", + "integrity": "sha512-J5Xez4nRRMjk8emnTpWrlkyb9pfRQQanDrvWHhsR1+VUfbwxi30eVcZFlcdGInRibU4G5LwHXpI7IRHU0CY+gg==", + "dev": true, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/fake-timers": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/fake-timers/-/fake-timers-29.7.0.tgz", + "integrity": "sha512-q4DH1Ha4TTFPdxLsqDXK1d3+ioSL7yL5oCMJZgDYm6i+6CygW5E5xVr/D1HdsGxjt1ZWSfUAs9OxSB/BNelWrQ==", + "dev": true, + "dependencies": { + "@jest/types": "^29.6.3", + "@sinonjs/fake-timers": "^10.0.2", + "@types/node": "*", + "jest-message-util": "^29.7.0", + "jest-mock": "^29.7.0", + "jest-util": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/globals": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/@jest/globals/-/globals-29.6.1.tgz", + "integrity": "sha512-2VjpaGy78JY9n9370H8zGRCFbYVWwjY6RdDMhoJHa1sYfwe6XM/azGN0SjY8kk7BOZApIejQ1BFPyH7FPG0w3A==", + "dev": true, + "dependencies": { + "@jest/environment": "^29.6.1", + "@jest/expect": "^29.6.1", + "@jest/types": "^29.6.1", + "jest-mock": "^29.6.1" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/reporters": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/@jest/reporters/-/reporters-29.6.1.tgz", + "integrity": "sha512-9zuaI9QKr9JnoZtFQlw4GREQbxgmNYXU6QuWtmuODvk5nvPUeBYapVR/VYMyi2WSx3jXTLJTJji8rN6+Cm4+FA==", + "dev": true, + "dependencies": { + "@bcoe/v8-coverage": "^0.2.3", + "@jest/console": "^29.6.1", + "@jest/test-result": "^29.6.1", + "@jest/transform": "^29.6.1", + "@jest/types": "^29.6.1", + "@jridgewell/trace-mapping": "^0.3.18", + "@types/node": "*", + "chalk": "^4.0.0", + "collect-v8-coverage": "^1.0.0", + "exit": "^0.1.2", + "glob": "^7.1.3", + "graceful-fs": "^4.2.9", + "istanbul-lib-coverage": "^3.0.0", + "istanbul-lib-instrument": "^5.1.0", + "istanbul-lib-report": "^3.0.0", + "istanbul-lib-source-maps": "^4.0.0", + "istanbul-reports": "^3.1.3", + "jest-message-util": "^29.6.1", + "jest-util": "^29.6.1", + "jest-worker": "^29.6.1", + "slash": "^3.0.0", + "string-length": "^4.0.1", + "strip-ansi": "^6.0.0", + "v8-to-istanbul": "^9.0.1" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" + }, + "peerDependenciesMeta": { + "node-notifier": { + "optional": true + } + } + }, + "node_modules/@jest/reporters/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/@jest/reporters/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/@jest/reporters/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/@jest/reporters/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/@jest/reporters/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/@jest/reporters/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@jest/schemas": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/@jest/schemas/-/schemas-29.6.3.tgz", + "integrity": "sha512-mo5j5X+jIZmJQveBKeS/clAueipV7KgiX1vMgCxam1RNYiqE1w62n0/tJJnHtjW8ZHcQco5gY85jA3mi0L+nSA==", + "dev": true, + "dependencies": { + "@sinclair/typebox": "^0.27.8" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/source-map": { + "version": "29.6.0", + "resolved": "https://registry.npmjs.org/@jest/source-map/-/source-map-29.6.0.tgz", + "integrity": "sha512-oA+I2SHHQGxDCZpbrsCQSoMLb3Bz547JnM+jUr9qEbuw0vQlWZfpPS7CO9J7XiwKicEz9OFn/IYoLkkiUD7bzA==", + "dev": true, + "dependencies": { + "@jridgewell/trace-mapping": "^0.3.18", + "callsites": "^3.0.0", + "graceful-fs": "^4.2.9" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/test-result": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/@jest/test-result/-/test-result-29.6.1.tgz", + "integrity": "sha512-Ynr13ZRcpX6INak0TPUukU8GWRfm/vAytE3JbJNGAvINySWYdfE7dGZMbk36oVuK4CigpbhMn8eg1dixZ7ZJOw==", + "dev": true, + "dependencies": { + "@jest/console": "^29.6.1", + "@jest/types": "^29.6.1", + "@types/istanbul-lib-coverage": "^2.0.0", + "collect-v8-coverage": "^1.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/test-sequencer": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/@jest/test-sequencer/-/test-sequencer-29.6.1.tgz", + "integrity": "sha512-oBkC36PCDf/wb6dWeQIhaviU0l5u6VCsXa119yqdUosYAt7/FbQU2M2UoziO3igj/HBDEgp57ONQ3fm0v9uyyg==", + "dev": true, + "dependencies": { + "@jest/test-result": "^29.6.1", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.6.1", + "slash": "^3.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/transform": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/@jest/transform/-/transform-29.6.1.tgz", + "integrity": "sha512-URnTneIU3ZjRSaf906cvf6Hpox3hIeJXRnz3VDSw5/X93gR8ycdfSIEy19FlVx8NFmpN7fe3Gb1xF+NjXaQLWg==", + "dev": true, + "dependencies": { + "@babel/core": "^7.11.6", + "@jest/types": "^29.6.1", + "@jridgewell/trace-mapping": "^0.3.18", + "babel-plugin-istanbul": "^6.1.1", + "chalk": "^4.0.0", + "convert-source-map": "^2.0.0", + "fast-json-stable-stringify": "^2.1.0", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.6.1", + "jest-regex-util": "^29.4.3", + "jest-util": "^29.6.1", + "micromatch": "^4.0.4", + "pirates": "^4.0.4", + "slash": "^3.0.0", + "write-file-atomic": "^4.0.2" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/transform/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/@jest/transform/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/@jest/transform/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/@jest/transform/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/@jest/transform/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/@jest/transform/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@jest/types": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-29.6.3.tgz", + "integrity": "sha512-u3UPsIilWKOM3F9CXtrG8LEJmNxwoCQC/XVj4IKYXvvpx7QIi/Kg1LI5uDmDpKlac62NUtX7eLjRh+jVZcLOzw==", + "dev": true, + "dependencies": { + "@jest/schemas": "^29.6.3", + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^17.0.8", + "chalk": "^4.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/types/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/@jest/types/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/@jest/types/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/@jest/types/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/@jest/types/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/@jest/types/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/@jridgewell/gen-mapping": { + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.3.tgz", + "integrity": "sha512-HLhSWOLRi875zjjMG/r+Nv0oCW8umGb0BgEhyX3dDX3egwZtB8PqLnjz3yedt8R5StBrzcg4aBpnh8UA9D1BoQ==", + "dev": true, + "dependencies": { + "@jridgewell/set-array": "^1.0.1", + "@jridgewell/sourcemap-codec": "^1.4.10", + "@jridgewell/trace-mapping": "^0.3.9" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/resolve-uri": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.0.tgz", + "integrity": "sha512-F2msla3tad+Mfht5cJq7LSXcdudKTWCVYUgw6pLFOOHSTtZlj6SWNYAp+AhuqLmWdBO2X5hPrLcu8cVP8fy28w==", + "dev": true, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/set-array": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.1.2.tgz", + "integrity": "sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==", + "dev": true, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.4.15", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz", + "integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==", + "dev": true + }, + "node_modules/@jridgewell/trace-mapping": { + "version": "0.3.18", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.18.tgz", + "integrity": "sha512-w+niJYzMHdd7USdiH2U6869nqhD2nbfZXND5Yp93qIbEmnDNk7PD48o+YchRVpzMU7M6jVCbenTR7PA1FLQ9pA==", + "dev": true, + "dependencies": { + "@jridgewell/resolve-uri": "3.1.0", + "@jridgewell/sourcemap-codec": "1.4.14" + } + }, + "node_modules/@jridgewell/trace-mapping/node_modules/@jridgewell/sourcemap-codec": { + "version": "1.4.14", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.14.tgz", + "integrity": "sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw==", + "dev": true + }, + "node_modules/@jsdoc/salty": { + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/@jsdoc/salty/-/salty-0.2.5.tgz", + "integrity": "sha512-TfRP53RqunNe2HBobVBJ0VLhK1HbfvBYeTC1ahnN64PWvyYyGebmMiPkuwvD9fpw2ZbkoPb8Q7mwy0aR8Z9rvw==", + "dev": true, + "dependencies": { + "lodash": "^4.17.21" + }, + "engines": { + "node": ">=v12.0.0" + } + }, + "node_modules/@noble/curves": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/@noble/curves/-/curves-2.0.1.tgz", + "integrity": "sha512-vs1Az2OOTBiP4q0pwjW5aF0xp9n4MxVrmkFBxc6EKZc6ddYx5gaZiAsZoq0uRRXWbi3AT/sBqn05eRPtn1JCPw==", + "license": "MIT", + "dependencies": { + "@noble/hashes": "2.0.1" + }, + "engines": { + "node": ">= 20.19.0" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/@noble/hashes": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-2.0.1.tgz", + "integrity": "sha512-XlOlEbQcE9fmuXxrVTXCTlG2nlRXa9Rj3rr5Ue/+tX+nmkgbX720YHh0VR3hBF9xDvwnb8D2shVGOwNx+ulArw==", + "license": "MIT", + "engines": { + "node": ">= 20.19.0" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/@noble/post-quantum": { + "version": "0.5.2", + "resolved": "https://registry.npmjs.org/@noble/post-quantum/-/post-quantum-0.5.2.tgz", + "integrity": "sha512-etMDBkCuB95Xj/gfsWYBD2x+84IjL4uMLd/FhGoUUG/g+eh0K2eP7pJz1EmvpN8Df3vKdoWVAc7RxIBCHQfFHQ==", + "license": "MIT", + "dependencies": { + "@noble/curves": "~2.0.0", + "@noble/hashes": "~2.0.0" + }, + "engines": { + "node": ">= 20.19.0" + }, + "funding": { + "url": "https://paulmillr.com/funding/" + } + }, + "node_modules/@protobufjs/aspromise": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@protobufjs/aspromise/-/aspromise-1.1.2.tgz", + "integrity": "sha1-m4sMxmPWaafY9vXQiToU00jzD78=", + "dev": true + }, + "node_modules/@protobufjs/base64": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@protobufjs/base64/-/base64-1.1.2.tgz", + "integrity": "sha512-AZkcAA5vnN/v4PDqKyMR5lx7hZttPDgClv83E//FMNhR2TMcLUhfRUBHCmSl0oi9zMgDDqRUJkSxO3wm85+XLg==", + "dev": true + }, + "node_modules/@protobufjs/codegen": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/@protobufjs/codegen/-/codegen-2.0.4.tgz", + "integrity": "sha512-YyFaikqM5sH0ziFZCN3xDC7zeGaB/d0IUb9CATugHWbd1FRFwWwt4ld4OYMPWu5a3Xe01mGAULCdqhMlPl29Jg==", + "dev": true + }, + "node_modules/@protobufjs/eventemitter": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@protobufjs/eventemitter/-/eventemitter-1.1.0.tgz", + "integrity": "sha1-NVy8mLr61ZePntCV85diHx0Ga3A=", + "dev": true + }, + "node_modules/@protobufjs/fetch": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@protobufjs/fetch/-/fetch-1.1.0.tgz", + "integrity": "sha1-upn7WYYUr2VwDBYZ/wbUVLDYTEU=", + "dev": true, + "dependencies": { + "@protobufjs/aspromise": "^1.1.1", + "@protobufjs/inquire": "^1.1.0" + } + }, + "node_modules/@protobufjs/float": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@protobufjs/float/-/float-1.0.2.tgz", + "integrity": "sha1-Xp4avctz/Ap8uLKR33jIy9l7h9E=", + "dev": true + }, + "node_modules/@protobufjs/inquire": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@protobufjs/inquire/-/inquire-1.1.0.tgz", + "integrity": "sha1-/yAOPnzyQp4tyvwRQIKOjMY48Ik=", + "dev": true + }, + "node_modules/@protobufjs/path": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@protobufjs/path/-/path-1.1.2.tgz", + "integrity": "sha1-bMKyDFya1q0NzP0hynZz2Nf79o0=", + "dev": true + }, + "node_modules/@protobufjs/pool": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@protobufjs/pool/-/pool-1.1.0.tgz", + "integrity": "sha1-Cf0V8tbTq/qbZbw2ZQbWrXhG/1Q=", + "dev": true + }, + "node_modules/@protobufjs/utf8": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@protobufjs/utf8/-/utf8-1.1.0.tgz", + "integrity": "sha1-p3c2C1s5oaLlEG+OhY8v0tBgxXA=", + "dev": true + }, + "node_modules/@rollup/plugin-commonjs": { + "version": "22.0.1", + "resolved": "https://registry.npmjs.org/@rollup/plugin-commonjs/-/plugin-commonjs-22.0.1.tgz", + "integrity": "sha512-dGfEZvdjDHObBiP5IvwTKMVeq/tBZGMBHZFMdIV1ClMM/YoWS34xrHFGfag9SN2ZtMgNZRFruqvxZQEa70O6nQ==", + "dev": true, + "dependencies": { + "@rollup/pluginutils": "^3.1.0", + "commondir": "^1.0.1", + "estree-walker": "^2.0.1", + "glob": "^7.1.6", + "is-reference": "^1.2.1", + "magic-string": "^0.25.7", + "resolve": "^1.17.0" + }, + "engines": { + "node": ">= 12.0.0" + }, + "peerDependencies": { + "rollup": "^2.68.0" + } + }, + "node_modules/@rollup/plugin-commonjs/node_modules/estree-walker": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-2.0.2.tgz", + "integrity": "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==", + "dev": true + }, + "node_modules/@rollup/plugin-node-resolve": { + "version": "13.3.0", + "resolved": "https://registry.npmjs.org/@rollup/plugin-node-resolve/-/plugin-node-resolve-13.3.0.tgz", + "integrity": "sha512-Lus8rbUo1eEcnS4yTFKLZrVumLPY+YayBdWXgFSHYhTT2iJbMhoaaBL3xl5NCdeRytErGr8tZ0L71BMRmnlwSw==", + "dev": true, + "dependencies": { + "@rollup/pluginutils": "^3.1.0", + "@types/resolve": "1.17.1", + "deepmerge": "^4.2.2", + "is-builtin-module": "^3.1.0", + "is-module": "^1.0.0", + "resolve": "^1.19.0" + }, + "engines": { + "node": ">= 10.0.0" + }, + "peerDependencies": { + "rollup": "^2.42.0" + } + }, + "node_modules/@rollup/pluginutils": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/@rollup/pluginutils/-/pluginutils-3.1.0.tgz", + "integrity": "sha512-GksZ6pr6TpIjHm8h9lSQ8pi8BE9VeubNT0OMJ3B5uZJ8pz73NPiqOtCog/x2/QzM1ENChPKxMDhiQuRHsqc+lg==", + "dev": true, + "dependencies": { + "@types/estree": "0.0.39", + "estree-walker": "^1.0.1", + "picomatch": "^2.2.2" + }, + "engines": { + "node": ">= 8.0.0" + }, + "peerDependencies": { + "rollup": "^1.20.0||^2.0.0" + } + }, + "node_modules/@sinclair/typebox": { + "version": "0.27.8", + "resolved": "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.27.8.tgz", + "integrity": "sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA==", + "dev": true + }, + "node_modules/@sinonjs/commons": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@sinonjs/commons/-/commons-3.0.0.tgz", + "integrity": "sha512-jXBtWAF4vmdNmZgD5FoKsVLv3rPgDnLgPbU84LIJ3otV44vJlDRokVng5v8NFJdCf/da9legHcKaRuZs4L7faA==", + "dev": true, + "dependencies": { + "type-detect": "4.0.8" + } + }, + "node_modules/@sinonjs/fake-timers": { + "version": "10.3.0", + "resolved": "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-10.3.0.tgz", + "integrity": "sha512-V4BG07kuYSUkTCSBHG8G8TNhM+F19jXFWnQtzj+we8DrkpSBCee9Z3Ms8yiGer/dlmhe35/Xdgyo3/0rQKg7YA==", + "dev": true, + "dependencies": { + "@sinonjs/commons": "^3.0.0" + } + }, + "node_modules/@tootallnate/once": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@tootallnate/once/-/once-2.0.0.tgz", + "integrity": "sha512-XCuKFP5PS55gnMVu3dty8KPatLqUoy/ZYzDzAGCQ8JNFCkLXzmI7vNHCR+XpbZaMWQK/vQubr7PkYq8g470J/A==", + "dev": true, + "engines": { + "node": ">= 10" + } + }, + "node_modules/@types/babel__core": { + "version": "7.20.1", + "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.1.tgz", + "integrity": "sha512-aACu/U/omhdk15O4Nfb+fHgH/z3QsfQzpnvRZhYhThms83ZnAOZz7zZAWO7mn2yyNQaA4xTO8GLK3uqFU4bYYw==", + "dev": true, + "dependencies": { + "@babel/parser": "^7.20.7", + "@babel/types": "^7.20.7", + "@types/babel__generator": "*", + "@types/babel__template": "*", + "@types/babel__traverse": "*" + } + }, + "node_modules/@types/babel__generator": { + "version": "7.6.4", + "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.6.4.tgz", + "integrity": "sha512-tFkciB9j2K755yrTALxD44McOrk+gfpIpvC3sxHjRawj6PfnQxrse4Clq5y/Rq+G3mrBurMax/lG8Qn2t9mSsg==", + "dev": true, + "dependencies": { + "@babel/types": "^7.0.0" + } + }, + "node_modules/@types/babel__template": { + "version": "7.4.1", + "resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.1.tgz", + "integrity": "sha512-azBFKemX6kMg5Io+/rdGT0dkGreboUVR0Cdm3fz9QJWpaQGJRQXl7C+6hOTCZcMll7KFyEQpgbYI2lHdsS4U7g==", + "dev": true, + "dependencies": { + "@babel/parser": "^7.1.0", + "@babel/types": "^7.0.0" + } + }, + "node_modules/@types/babel__traverse": { + "version": "7.20.1", + "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.20.1.tgz", + "integrity": "sha512-MitHFXnhtgwsGZWtT68URpOvLN4EREih1u3QtQiN4VdAxWKRVvGCSvw/Qth0M0Qq3pJpnGOu5JaM/ydK7OGbqg==", + "dev": true, + "dependencies": { + "@babel/types": "^7.20.7" + } + }, + "node_modules/@types/estree": { + "version": "0.0.39", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-0.0.39.tgz", + "integrity": "sha512-EYNwp3bU+98cpU4lAWYYL7Zz+2gryWH1qbdDTidVd6hkiR6weksdbMadyXKXNPEkQFhXM+hVO9ZygomHXp+AIw==", + "dev": true + }, + "node_modules/@types/graceful-fs": { + "version": "4.1.6", + "resolved": "https://registry.npmjs.org/@types/graceful-fs/-/graceful-fs-4.1.6.tgz", + "integrity": "sha512-Sig0SNORX9fdW+bQuTEovKj3uHcUL6LQKbCrrqb1X7J6/ReAbhCXRAhc+SMejhLELFj2QcyuxmUooZ4bt5ReSw==", + "dev": true, + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/istanbul-lib-coverage": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.4.tgz", + "integrity": "sha512-z/QT1XN4K4KYuslS23k62yDIDLwLFkzxOuMplDtObz0+y7VqJCaO2o+SPwHCvLFZh7xazvvoor2tA/hPz9ee7g==", + "dev": true + }, + "node_modules/@types/istanbul-lib-report": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@types/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz", + "integrity": "sha512-plGgXAPfVKFoYfa9NpYDAkseG+g6Jr294RqeqcqDixSbU34MZVJRi/P+7Y8GDpzkEwLaGZZOpKIEmeVZNtKsrg==", + "dev": true, + "dependencies": { + "@types/istanbul-lib-coverage": "*" + } + }, + "node_modules/@types/istanbul-reports": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.1.tgz", + "integrity": "sha512-c3mAZEuK0lvBp8tmuL74XRKn1+y2dcwOUpH7x4WrF6gk1GIgiluDRgMYQtw2OFcBvAJWlt6ASU3tSqxp0Uu0Aw==", + "dev": true, + "dependencies": { + "@types/istanbul-lib-report": "*" + } + }, + "node_modules/@types/jest": { + "version": "24.9.1", + "resolved": "https://registry.npmjs.org/@types/jest/-/jest-24.9.1.tgz", + "integrity": "sha512-Fb38HkXSVA4L8fGKEZ6le5bB8r6MRWlOCZbVuWZcmOMSCd2wCYOwN1ibj8daIoV9naq7aaOZjrLCoCMptKU/4Q==", + "dev": true, + "dependencies": { + "jest-diff": "^24.3.0" + } + }, + "node_modules/@types/jsdom": { + "version": "20.0.1", + "resolved": "https://registry.npmjs.org/@types/jsdom/-/jsdom-20.0.1.tgz", + "integrity": "sha512-d0r18sZPmMQr1eG35u12FZfhIXNrnsPU/g5wvRKCUf/tOGilKKwYMYGqh33BNR6ba+2gkHw1EUiHoN3mn7E5IQ==", + "dev": true, + "dependencies": { + "@types/node": "*", + "@types/tough-cookie": "*", + "parse5": "^7.0.0" + } + }, + "node_modules/@types/linkify-it": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/@types/linkify-it/-/linkify-it-3.0.2.tgz", + "integrity": "sha512-HZQYqbiFVWufzCwexrvh694SOim8z2d+xJl5UNamcvQFejLY/2YUtzXHYi3cHdI7PMlS8ejH2slRAOJQ32aNbA==", + "dev": true + }, + "node_modules/@types/markdown-it": { + "version": "12.2.3", + "resolved": "https://registry.npmjs.org/@types/markdown-it/-/markdown-it-12.2.3.tgz", + "integrity": "sha512-GKMHFfv3458yYy+v/N8gjufHO6MSZKCOXpZc5GXIWWy8uldwfmPn98vp81gZ5f9SVw8YYBctgfJ22a2d7AOMeQ==", + "dev": true, + "dependencies": { + "@types/linkify-it": "*", + "@types/mdurl": "*" + } + }, + "node_modules/@types/mdurl": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@types/mdurl/-/mdurl-1.0.2.tgz", + "integrity": "sha512-eC4U9MlIcu2q0KQmXszyn5Akca/0jrQmwDRgpAMJai7qBWq4amIQhZyNau4VYGtCeALvW1/NtjzJJ567aZxfKA==", + "dev": true + }, + "node_modules/@types/node": { + "version": "20.10.2", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.10.2.tgz", + "integrity": "sha512-37MXfxkb0vuIlRKHNxwCkb60PNBpR94u4efQuN4JgIAm66zfCDXGSAFCef9XUWFovX2R1ok6Z7MHhtdVXXkkIw==", + "dev": true, + "dependencies": { + "undici-types": "~5.26.4" + } + }, + "node_modules/@types/prettier": { + "version": "2.7.3", + "resolved": "https://registry.npmjs.org/@types/prettier/-/prettier-2.7.3.tgz", + "integrity": "sha512-+68kP9yzs4LMp7VNh8gdzMSPZFL44MLGqiHWvttYJe+6qnuVr4Ek9wSBQoveqY/r+LwjCcU29kNVkidwim+kYA==", + "dev": true + }, + "node_modules/@types/resolve": { + "version": "1.17.1", + "resolved": "https://registry.npmjs.org/@types/resolve/-/resolve-1.17.1.tgz", + "integrity": "sha512-yy7HuzQhj0dhGpD8RLXSZWEkLsV9ibvxvi6EiJ3bkqLAO1RGo0WbkWQiwpRlSFymTJRz0d3k5LM3kkx8ArDbLw==", + "dev": true, + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@types/stack-utils": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/@types/stack-utils/-/stack-utils-2.0.1.tgz", + "integrity": "sha512-Hl219/BT5fLAaz6NDkSuhzasy49dwQS/DSdu4MdggFB8zcXv7vflBI3xp7FEmkmdDkBUI2bPUNeMttp2knYdxw==", + "dev": true + }, + "node_modules/@types/tough-cookie": { + "version": "4.0.5", + "resolved": "https://registry.npmjs.org/@types/tough-cookie/-/tough-cookie-4.0.5.tgz", + "integrity": "sha512-/Ad8+nIOV7Rl++6f1BdKxFSMgmoqEoYbHRpPcx3JEfv8VRsQe9Z4mCXeJBzxs7mbHY/XOZZuXlRNfhpVPbs6ZA==", + "dev": true + }, + "node_modules/@types/yargs": { + "version": "17.0.24", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.24.tgz", + "integrity": "sha512-6i0aC7jV6QzQB8ne1joVZ0eSFIstHsCrobmOtghM11yGlH0j43FKL2UhWdELkyps0zuf7qVTUVCCR+tgSlyLLw==", + "dev": true, + "dependencies": { + "@types/yargs-parser": "*" + } + }, + "node_modules/@types/yargs-parser": { + "version": "21.0.0", + "resolved": "https://registry.npmjs.org/@types/yargs-parser/-/yargs-parser-21.0.0.tgz", + "integrity": "sha512-iO9ZQHkZxHn4mSakYV0vFHAVDyEOIJQrV2uZ06HxEPcx+mt8swXoZHIbaaJ2crJYFfErySgktuTZ3BeLz+XmFA==", + "dev": true + }, + "node_modules/abab": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/abab/-/abab-2.0.6.tgz", + "integrity": "sha512-j2afSsaIENvHZN2B8GOpF566vZ5WVk5opAiMTvWgaQT8DkbOqsTfvNAvHoRGU2zzP8cPoqys+xHTRDWW8L+/BA==", + "deprecated": "Use your platform's native atob() and btoa() methods instead", + "dev": true + }, + "node_modules/acorn": { + "version": "8.10.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.10.0.tgz", + "integrity": "sha512-F0SAmZ8iUtS//m8DmCTA0jlh6TDKkHQyK6xc6V4KDTyZKA9dnvX9/3sRTVQrWm79glUAZbnmmNcdYwUIHWVybw==", + "dev": true, + "bin": { + "acorn": "bin/acorn" + }, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/acorn-globals": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/acorn-globals/-/acorn-globals-7.0.1.tgz", + "integrity": "sha512-umOSDSDrfHbTNPuNpC2NSnnA3LUrqpevPb4T9jRx4MagXNS0rs+gwiTcAvqCRmsD6utzsrzNt+ebm00SNWiC3Q==", + "dev": true, + "dependencies": { + "acorn": "^8.1.0", + "acorn-walk": "^8.0.2" + } + }, + "node_modules/acorn-jsx": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", + "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", + "dev": true, + "peerDependencies": { + "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" + } + }, + "node_modules/acorn-walk": { + "version": "8.2.0", + "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.2.0.tgz", + "integrity": "sha512-k+iyHEuPgSw6SbuDpGQM+06HQUa04DZ3o+F6CSzXMvvI5KMvnaEqXe+YVe555R9nn6GPt404fos4wcgpw12SDA==", + "dev": true, + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/agent-base": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz", + "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==", + "dev": true, + "dependencies": { + "debug": "4" + }, + "engines": { + "node": ">= 6.0.0" + } + }, + "node_modules/ansi-escapes": { + "version": "4.3.2", + "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz", + "integrity": "sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==", + "dev": true, + "dependencies": { + "type-fest": "^0.21.3" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/ansi-regex": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.1.tgz", + "integrity": "sha512-ILlv4k/3f6vfQ4OoP2AGvirOktlQ98ZEL1k9FaQjxa3L1abBgbuTDAdPOpvbGncC0BTVQrl+OM8xZGK6tWXt7g==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dev": true, + "dependencies": { + "color-convert": "^1.9.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/anymatch": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", + "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", + "dev": true, + "dependencies": { + "normalize-path": "^3.0.0", + "picomatch": "^2.0.4" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/arg": { + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/arg/-/arg-4.1.3.tgz", + "integrity": "sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==", + "dev": true + }, + "node_modules/argparse": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", + "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "dev": true, + "dependencies": { + "sprintf-js": "~1.0.2" + } + }, + "node_modules/asmcrypto.js": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/asmcrypto.js/-/asmcrypto.js-2.3.2.tgz", + "integrity": "sha512-3FgFARf7RupsZETQ1nHnhLUUvpcttcCq1iZCaVAbJZbCZ5VNRrNyvpDyHTOb0KC3llFcsyOT/a99NZcCbeiEsA==" + }, + "node_modules/asn1": { + "version": "0.2.6", + "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.6.tgz", + "integrity": "sha512-ix/FxPn0MDjeyJ7i/yoHGFt/EX6LyNbxSEhPPXODPL+KB0VPk86UYfL0lMdy+KCnv+fmvIzySwaK5COwqVbWTQ==", + "dependencies": { + "safer-buffer": "~2.1.0" + } + }, + "node_modules/asynckit": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", + "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=" + }, + "node_modules/babel-jest": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/babel-jest/-/babel-jest-29.6.1.tgz", + "integrity": "sha512-qu+3bdPEQC6KZSPz+4Fyjbga5OODNcp49j6GKzG1EKbkfyJBxEYGVUmVGpwCSeGouG52R4EgYMLb6p9YeEEQ4A==", + "dev": true, + "dependencies": { + "@jest/transform": "^29.6.1", + "@types/babel__core": "^7.1.14", + "babel-plugin-istanbul": "^6.1.1", + "babel-preset-jest": "^29.5.0", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "slash": "^3.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "@babel/core": "^7.8.0" + } + }, + "node_modules/babel-jest/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/babel-jest/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/babel-jest/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/babel-jest/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/babel-jest/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/babel-jest/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/babel-plugin-istanbul": { + "version": "6.1.1", + "resolved": "https://registry.npmjs.org/babel-plugin-istanbul/-/babel-plugin-istanbul-6.1.1.tgz", + "integrity": "sha512-Y1IQok9821cC9onCx5otgFfRm7Lm+I+wwxOx738M/WLPZ9Q42m4IG5W0FNX8WLL2gYMZo3JkuXIH2DOpWM+qwA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.0.0", + "@istanbuljs/load-nyc-config": "^1.0.0", + "@istanbuljs/schema": "^0.1.2", + "istanbul-lib-instrument": "^5.0.4", + "test-exclude": "^6.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/babel-plugin-jest-hoist": { + "version": "29.5.0", + "resolved": "https://registry.npmjs.org/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-29.5.0.tgz", + "integrity": "sha512-zSuuuAlTMT4mzLj2nPnUm6fsE6270vdOfnpbJ+RmruU75UhLFvL0N2NgI7xpeS7NaB6hGqmd5pVpGTDYvi4Q3w==", + "dev": true, + "dependencies": { + "@babel/template": "^7.3.3", + "@babel/types": "^7.3.3", + "@types/babel__core": "^7.1.14", + "@types/babel__traverse": "^7.0.6" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/babel-plugin-polyfill-corejs2": { + "version": "0.4.6", + "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs2/-/babel-plugin-polyfill-corejs2-0.4.6.tgz", + "integrity": "sha512-jhHiWVZIlnPbEUKSSNb9YoWcQGdlTLq7z1GHL4AjFxaoOUMuuEVJ+Y4pAaQUGOGk93YsVCKPbqbfw3m0SM6H8Q==", + "dev": true, + "dependencies": { + "@babel/compat-data": "^7.22.6", + "@babel/helper-define-polyfill-provider": "^0.4.3", + "semver": "^6.3.1" + }, + "peerDependencies": { + "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0" + } + }, + "node_modules/babel-plugin-polyfill-corejs3": { + "version": "0.8.6", + "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.8.6.tgz", + "integrity": "sha512-leDIc4l4tUgU7str5BWLS2h8q2N4Nf6lGZP6UrNDxdtfF2g69eJ5L0H7S8A5Ln/arfFAfHor5InAdZuIOwZdgQ==", + "dev": true, + "dependencies": { + "@babel/helper-define-polyfill-provider": "^0.4.3", + "core-js-compat": "^3.33.1" + }, + "peerDependencies": { + "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0" + } + }, + "node_modules/babel-plugin-polyfill-regenerator": { + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-regenerator/-/babel-plugin-polyfill-regenerator-0.5.3.tgz", + "integrity": "sha512-8sHeDOmXC8csczMrYEOf0UTNa4yE2SxV5JGeT/LP1n0OYVDUUFPxG9vdk2AlDlIit4t+Kf0xCtpgXPBwnn/9pw==", + "dev": true, + "dependencies": { + "@babel/helper-define-polyfill-provider": "^0.4.3" + }, + "peerDependencies": { + "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0" + } + }, + "node_modules/babel-preset-current-node-syntax": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/babel-preset-current-node-syntax/-/babel-preset-current-node-syntax-1.0.1.tgz", + "integrity": "sha512-M7LQ0bxarkxQoN+vz5aJPsLBn77n8QgTFmo8WK0/44auK2xlCXrYcUxHFxgU7qW5Yzw/CjmLRK2uJzaCd7LvqQ==", + "dev": true, + "dependencies": { + "@babel/plugin-syntax-async-generators": "^7.8.4", + "@babel/plugin-syntax-bigint": "^7.8.3", + "@babel/plugin-syntax-class-properties": "^7.8.3", + "@babel/plugin-syntax-import-meta": "^7.8.3", + "@babel/plugin-syntax-json-strings": "^7.8.3", + "@babel/plugin-syntax-logical-assignment-operators": "^7.8.3", + "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3", + "@babel/plugin-syntax-numeric-separator": "^7.8.3", + "@babel/plugin-syntax-object-rest-spread": "^7.8.3", + "@babel/plugin-syntax-optional-catch-binding": "^7.8.3", + "@babel/plugin-syntax-optional-chaining": "^7.8.3", + "@babel/plugin-syntax-top-level-await": "^7.8.3" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/babel-preset-jest": { + "version": "29.5.0", + "resolved": "https://registry.npmjs.org/babel-preset-jest/-/babel-preset-jest-29.5.0.tgz", + "integrity": "sha512-JOMloxOqdiBSxMAzjRaH023/vvcaSaec49zvg+2LmNsktC7ei39LTJGw02J+9uUtTZUq6xbLyJ4dxe9sSmIuAg==", + "dev": true, + "dependencies": { + "babel-plugin-jest-hoist": "^29.5.0", + "babel-preset-current-node-syntax": "^1.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", + "dev": true + }, + "node_modules/bluebird": { + "version": "3.7.2", + "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.7.2.tgz", + "integrity": "sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg==", + "dev": true + }, + "node_modules/brace-expansion": { + "version": "1.1.12", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.12.tgz", + "integrity": "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/braces": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", + "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", + "dev": true, + "dependencies": { + "fill-range": "^7.1.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/browserslist": { + "version": "4.22.1", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.22.1.tgz", + "integrity": "sha512-FEVc202+2iuClEhZhrWy6ZiAcRLvNMyYcxZ8raemul1DYVOVdFsbqckWLdsixQZCpJlwe77Z3UTalE7jsjnKfQ==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "dependencies": { + "caniuse-lite": "^1.0.30001541", + "electron-to-chromium": "^1.4.535", + "node-releases": "^2.0.13", + "update-browserslist-db": "^1.0.13" + }, + "bin": { + "browserslist": "cli.js" + }, + "engines": { + "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" + } + }, + "node_modules/bs-logger": { + "version": "0.2.6", + "resolved": "https://registry.npmjs.org/bs-logger/-/bs-logger-0.2.6.tgz", + "integrity": "sha512-pd8DCoxmbgc7hyPKOvxtqNcjYoOsABPQdcCUjGp3d42VR2CX1ORhk2A87oqqu5R1kk+76nsxZupkmyd+MVtCog==", + "dev": true, + "dependencies": { + "fast-json-stable-stringify": "2.x" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/bser": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/bser/-/bser-2.1.1.tgz", + "integrity": "sha512-gQxTNE/GAfIIrmHLUE3oJyp5FO6HRBfhjnw4/wMmA63ZGDJnWBmgY/lyQBpnDUkGmAhbSe39tx2d/iTOAfglwQ==", + "dev": true, + "dependencies": { + "node-int64": "^0.4.0" + } + }, + "node_modules/buffer-from": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", + "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", + "dev": true + }, + "node_modules/builtin-modules": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-3.3.0.tgz", + "integrity": "sha512-zhaCDicdLuWN5UbN5IMnFqNMhNfo919sH85y2/ea+5Yg9TsTkeZxpL+JLbp6cgYFS4sRLp3YV4S6yDuqVWHYOw==", + "dev": true, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/call-bind-apply-helpers": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz", + "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/callsites": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", + "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/camelcase": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", + "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/caniuse-lite": { + "version": "1.0.30001565", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001565.tgz", + "integrity": "sha512-xrE//a3O7TP0vaJ8ikzkD2c2NgcVUvsEe2IvFTntV4Yd1Z9FVzh+gW+enX96L0psrbaFMcVcH2l90xNuGDWc8w==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/caniuse-lite" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ] + }, + "node_modules/catharsis": { + "version": "0.9.0", + "resolved": "https://registry.npmjs.org/catharsis/-/catharsis-0.9.0.tgz", + "integrity": "sha512-prMTQVpcns/tzFgFVkVp6ak6RykZyWb3gu8ckUpd6YkTlacOd3DXGJjIpD4Q6zJirizvaiAjSSHlOsA+6sNh2A==", + "dev": true, + "dependencies": { + "lodash": "^4.17.15" + }, + "engines": { + "node": ">= 10" + } + }, + "node_modules/chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dev": true, + "dependencies": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/char-regex": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/char-regex/-/char-regex-1.0.2.tgz", + "integrity": "sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw==", + "dev": true, + "engines": { + "node": ">=10" + } + }, + "node_modules/ci-info": { + "version": "3.8.0", + "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-3.8.0.tgz", + "integrity": "sha512-eXTggHWSooYhq49F2opQhuHWgzucfF2YgODK4e1566GQs5BIfP30B0oenwBJHfWxAs2fyPB1s7Mg949zLf61Yw==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/sibiraj-s" + } + ], + "engines": { + "node": ">=8" + } + }, + "node_modules/cjs-module-lexer": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/cjs-module-lexer/-/cjs-module-lexer-1.2.3.tgz", + "integrity": "sha512-0TNiGstbQmCFwt4akjjBg5pLRTSyj/PkWQ1ZoO2zntmg9yLqSRxwEa4iCfQLGjqhiqBfOJa7W/E8wfGrTDmlZQ==", + "dev": true + }, + "node_modules/cliui": { + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", + "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", + "dev": true, + "dependencies": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.1", + "wrap-ansi": "^7.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/co": { + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz", + "integrity": "sha512-QVb0dM5HvG+uaxitm8wONl7jltx8dqhfU33DcqtOZcLSVIKSDDLDi7+0LbAKiyI8hD9u42m2YxXSkMGWThaecQ==", + "dev": true, + "engines": { + "iojs": ">= 1.0.0", + "node": ">= 0.12.0" + } + }, + "node_modules/collect-v8-coverage": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/collect-v8-coverage/-/collect-v8-coverage-1.0.2.tgz", + "integrity": "sha512-lHl4d5/ONEbLlJvaJNtsF/Lz+WvB07u2ycqTYbdrq7UypDXailES4valYb2eWiJFxZlVmpGekfqoxQhzyFdT4Q==", + "dev": true + }, + "node_modules/color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "dev": true, + "dependencies": { + "color-name": "1.1.3" + } + }, + "node_modules/color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", + "dev": true + }, + "node_modules/combined-stream": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", + "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", + "dependencies": { + "delayed-stream": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/commondir": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/commondir/-/commondir-1.0.1.tgz", + "integrity": "sha512-W9pAhw0ja1Edb5GVdIF1mjZw/ASI0AlShXM83UUGe2DVr5TdAPEA1OA8m/g8zWp9x6On7gqufY+FatDbC3MDQg==", + "dev": true + }, + "node_modules/concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", + "dev": true + }, + "node_modules/convert-source-map": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", + "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==", + "dev": true + }, + "node_modules/core-js-compat": { + "version": "3.33.3", + "resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.33.3.tgz", + "integrity": "sha512-cNzGqFsh3Ot+529GIXacjTJ7kegdt5fPXxCBVS1G0iaZpuo/tBz399ymceLJveQhFFZ8qThHiP3fzuoQjKN2ow==", + "dev": true, + "dependencies": { + "browserslist": "^4.22.1" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/core-js" + } + }, + "node_modules/cross-spawn": { + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", + "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", + "dev": true, + "license": "MIT", + "dependencies": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/cssom": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/cssom/-/cssom-0.5.0.tgz", + "integrity": "sha512-iKuQcq+NdHqlAcwUY0o/HL69XQrUaQdMjmStJ8JFmUaiiQErlhrmuigkg/CU4E2J0IyUKUrMAgl36TvN67MqTw==", + "dev": true + }, + "node_modules/cssstyle": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/cssstyle/-/cssstyle-2.3.0.tgz", + "integrity": "sha512-AZL67abkUzIuvcHqk7c09cezpGNcxUxU4Ioi/05xHk4DQeTkWmGYftIE6ctU6AEt+Gn4n1lDStOtj7FKycP71A==", + "dev": true, + "dependencies": { + "cssom": "~0.3.6" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/cssstyle/node_modules/cssom": { + "version": "0.3.8", + "resolved": "https://registry.npmjs.org/cssom/-/cssom-0.3.8.tgz", + "integrity": "sha512-b0tGHbfegbhPJpxpiBPU2sCkigAqtM9O121le6bbOlgyV+NyGyCmVfJ6QW9eRjz8CpNfWEOYBIMIGRYkLwsIYg==", + "dev": true + }, + "node_modules/data-urls": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/data-urls/-/data-urls-3.0.2.tgz", + "integrity": "sha512-Jy/tj3ldjZJo63sVAvg6LHt2mHvl4V6AgRAmNDtLdm7faqtsx+aJG42rsyCo9JCoRVKwPFzKlIPx3DIibwSIaQ==", + "dev": true, + "dependencies": { + "abab": "^2.0.6", + "whatwg-mimetype": "^3.0.0", + "whatwg-url": "^11.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/debug": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "dev": true, + "dependencies": { + "ms": "2.1.2" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/decimal.js": { + "version": "10.4.3", + "resolved": "https://registry.npmjs.org/decimal.js/-/decimal.js-10.4.3.tgz", + "integrity": "sha512-VBBaLc1MgL5XpzgIP7ny5Z6Nx3UrRkIViUkPUdtl9aya5amy3De1gsUUSB1g3+3sExYNjCAsAznmukyxCb1GRA==", + "dev": true + }, + "node_modules/dedent": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/dedent/-/dedent-0.7.0.tgz", + "integrity": "sha512-Q6fKUPqnAHAyhiUgFU7BUzLiv0kd8saH9al7tnu5Q/okj6dnupxyTgFIBjVzJATdfIAm9NAsvXNzjaKa+bxVyA==", + "dev": true + }, + "node_modules/deep-is": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", + "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", + "dev": true + }, + "node_modules/deepmerge": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.2.2.tgz", + "integrity": "sha512-FJ3UgI4gIl+PHZm53knsuSFpE+nESMr7M4v9QcgB7S63Kj/6WqMiFQJpBBYz1Pt+66bZpP3Q7Lye0Oo9MPKEdg==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/delayed-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", + "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk=", + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/detect-newline": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/detect-newline/-/detect-newline-3.1.0.tgz", + "integrity": "sha512-TLz+x/vEXm/Y7P7wn1EJFNLxYpUD4TgMosxY6fAVJUnJMbupHBOncxyWUG9OpTaH9EBD7uFI5LfEgmMOc54DsA==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/diff": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", + "integrity": "sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==", + "dev": true, + "engines": { + "node": ">=0.3.1" + } + }, + "node_modules/diff-sequences": { + "version": "24.9.0", + "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-24.9.0.tgz", + "integrity": "sha512-Dj6Wk3tWyTE+Fo1rW8v0Xhwk80um6yFYKbuAxc9c3EZxIHFDYwbi34Uk42u1CdnIiVorvt4RmlSDjIPyzGC2ew==", + "dev": true, + "engines": { + "node": ">= 6" + } + }, + "node_modules/domexception": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/domexception/-/domexception-4.0.0.tgz", + "integrity": "sha512-A2is4PLG+eeSfoTMA95/s4pvAoSo2mKtiM5jlHkAVewmiO8ISFTFKZjH7UAM1Atli/OT/7JHOrJRJiMKUZKYBw==", + "deprecated": "Use your platform's native DOMException instead", + "dev": true, + "dependencies": { + "webidl-conversions": "^7.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/dunder-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz", + "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==", + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.1", + "es-errors": "^1.3.0", + "gopd": "^1.2.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/electron-to-chromium": { + "version": "1.4.600", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.600.tgz", + "integrity": "sha512-KD6CWjf1BnQG+NsXuyiTDDT1eV13sKuYsOUioXkQweYTQIbgHkXPry9K7M+7cKtYHnSUPitVaLrXYB1jTkkYrw==", + "dev": true + }, + "node_modules/emittery": { + "version": "0.13.1", + "resolved": "https://registry.npmjs.org/emittery/-/emittery-0.13.1.tgz", + "integrity": "sha512-DeWwawk6r5yR9jFgnDKYt4sLS0LmHJJi3ZOnb5/JdbYwj3nW+FxQnHIjhBKz8YLC7oRNPVM9NQ47I3CVx34eqQ==", + "dev": true, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sindresorhus/emittery?sponsor=1" + } + }, + "node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "dev": true + }, + "node_modules/entities": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/entities/-/entities-2.1.0.tgz", + "integrity": "sha512-hCx1oky9PFrJ611mf0ifBLBRW8lUUVRlFolb5gWRfIELabBlbp9xZvrqZLZAs+NxFnbfQoeGd8wDkygjg7U85w==", + "dev": true, + "funding": { + "url": "https://github.com/fb55/entities?sponsor=1" + } + }, + "node_modules/error-ex": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", + "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==", + "dev": true, + "dependencies": { + "is-arrayish": "^0.2.1" + } + }, + "node_modules/es-define-property": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz", + "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-errors": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", + "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-object-atoms": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz", + "integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-set-tostringtag": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.1.0.tgz", + "integrity": "sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.6", + "has-tostringtag": "^1.0.2", + "hasown": "^2.0.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/escalade": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", + "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", + "dev": true, + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/escodegen": { + "version": "1.14.3", + "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-1.14.3.tgz", + "integrity": "sha512-qFcX0XJkdg+PB3xjZZG/wKSuT1PnQWx57+TVSjIMmILd2yC/6ByYElPwJnslDsuWuSAp4AwJGumarAAmJch5Kw==", + "dev": true, + "dependencies": { + "esprima": "^4.0.1", + "estraverse": "^4.2.0", + "esutils": "^2.0.2", + "optionator": "^0.8.1" + }, + "bin": { + "escodegen": "bin/escodegen.js", + "esgenerate": "bin/esgenerate.js" + }, + "engines": { + "node": ">=4.0" + }, + "optionalDependencies": { + "source-map": "~0.6.1" + } + }, + "node_modules/escodegen/node_modules/estraverse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", + "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", + "dev": true, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/eslint-visitor-keys": { + "version": "3.4.1", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.1.tgz", + "integrity": "sha512-pZnmmLwYzf+kWaM/Qgrvpen51upAktaaiI01nsJD/Yr3lMOdNtq0cxkrrg16w64VtisN6okbs7Q8AfGqj4c9fA==", + "dev": true, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/espree": { + "version": "9.6.1", + "resolved": "https://registry.npmjs.org/espree/-/espree-9.6.1.tgz", + "integrity": "sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==", + "dev": true, + "dependencies": { + "acorn": "^8.9.0", + "acorn-jsx": "^5.3.2", + "eslint-visitor-keys": "^3.4.1" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" + } + }, + "node_modules/esprima": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", + "dev": true, + "bin": { + "esparse": "bin/esparse.js", + "esvalidate": "bin/esvalidate.js" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true, + "engines": { + "node": ">=4.0" + } + }, + "node_modules/estree-walker": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-1.0.1.tgz", + "integrity": "sha512-1fMXF3YP4pZZVozF8j/ZLfvnR8NSIljt56UhbZ5PeeDmmGHpgpdwQt7ITlGvYaQukCvuBRMLEiKiYC+oeIg4cg==", + "dev": true + }, + "node_modules/esutils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/execa": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz", + "integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==", + "dev": true, + "dependencies": { + "cross-spawn": "^7.0.3", + "get-stream": "^6.0.0", + "human-signals": "^2.1.0", + "is-stream": "^2.0.0", + "merge-stream": "^2.0.0", + "npm-run-path": "^4.0.1", + "onetime": "^5.1.2", + "signal-exit": "^3.0.3", + "strip-final-newline": "^2.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sindresorhus/execa?sponsor=1" + } + }, + "node_modules/exit": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/exit/-/exit-0.1.2.tgz", + "integrity": "sha512-Zk/eNKV2zbjpKzrsQ+n1G6poVbErQxJ0LBOJXaKZ1EViLzH+hrLu9cdXI4zw9dBQJslwBEpbQ2P1oS7nDxs6jQ==", + "dev": true, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/expect": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/expect/-/expect-29.6.1.tgz", + "integrity": "sha512-XEdDLonERCU1n9uR56/Stx9OqojaLAQtZf9PrCHH9Hl8YXiEIka3H4NXJ3NOIBmQJTg7+j7buh34PMHfJujc8g==", + "dev": true, + "dependencies": { + "@jest/expect-utils": "^29.6.1", + "@types/node": "*", + "jest-get-type": "^29.4.3", + "jest-matcher-utils": "^29.6.1", + "jest-message-util": "^29.6.1", + "jest-util": "^29.6.1" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/expect/node_modules/jest-get-type": { + "version": "29.4.3", + "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.4.3.tgz", + "integrity": "sha512-J5Xez4nRRMjk8emnTpWrlkyb9pfRQQanDrvWHhsR1+VUfbwxi30eVcZFlcdGInRibU4G5LwHXpI7IRHU0CY+gg==", + "dev": true, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/fast-json-stable-stringify": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", + "dev": true + }, + "node_modules/fast-levenshtein": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", + "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", + "dev": true + }, + "node_modules/faye-websocket": { + "version": "0.11.4", + "resolved": "https://registry.npmjs.org/faye-websocket/-/faye-websocket-0.11.4.tgz", + "integrity": "sha512-CzbClwlXAuiRQAlUyfqPgvPoNKTckTPGfwZV4ZdAhVcP2lh9KUxJg2b5GkE7XbjKQ3YJnQ9z6D9ntLAlB+tP8g==", + "dependencies": { + "websocket-driver": ">=0.5.1" + }, + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/fb-watchman": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/fb-watchman/-/fb-watchman-2.0.2.tgz", + "integrity": "sha512-p5161BqbuCaSnB8jIbzQHOlpgsPmK5rJVDfDKO91Axs5NC1uu3HRQm6wt9cd9/+GtQQIO53JdGXXoyDpTAsgYA==", + "dev": true, + "dependencies": { + "bser": "2.1.1" + } + }, + "node_modules/fill-range": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", + "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", + "dev": true, + "dependencies": { + "to-regex-range": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/find-cache-dir": { + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/find-cache-dir/-/find-cache-dir-3.3.2.tgz", + "integrity": "sha512-wXZV5emFEjrridIgED11OoUKLxiYjAcqot/NJdAkOhlJ+vGzwhOAfcG5OX1jP+S0PcjEn8bdMJv+g2jwQ3Onig==", + "dev": true, + "dependencies": { + "commondir": "^1.0.1", + "make-dir": "^3.0.2", + "pkg-dir": "^4.1.0" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/avajs/find-cache-dir?sponsor=1" + } + }, + "node_modules/find-up": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "dev": true, + "dependencies": { + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/form-data": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.4.tgz", + "integrity": "sha512-KrGhL9Q4zjj0kiUt5OO4Mr/A/jlI2jDYs5eHBpYHPcBEVSiipAvn2Ko2HnPe20rmcuuvMHNdZFp+4IlGTMF0Ow==", + "license": "MIT", + "dependencies": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "es-set-tostringtag": "^2.1.0", + "hasown": "^2.0.2", + "mime-types": "^2.1.12" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/fs-extra": { + "version": "10.1.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.1.0.tgz", + "integrity": "sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==", + "dev": true, + "dependencies": { + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", + "dev": true + }, + "node_modules/fsevents": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", + "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", + "dev": true, + "hasInstallScript": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, + "node_modules/function-bind": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", + "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/gensync": { + "version": "1.0.0-beta.2", + "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", + "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", + "dev": true, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/get-caller-file": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", + "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", + "dev": true, + "engines": { + "node": "6.* || 8.* || >= 10.*" + } + }, + "node_modules/get-intrinsic": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz", + "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==", + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.2", + "es-define-property": "^1.0.1", + "es-errors": "^1.3.0", + "es-object-atoms": "^1.1.1", + "function-bind": "^1.1.2", + "get-proto": "^1.0.1", + "gopd": "^1.2.0", + "has-symbols": "^1.1.0", + "hasown": "^2.0.2", + "math-intrinsics": "^1.1.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/get-package-type": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/get-package-type/-/get-package-type-0.1.0.tgz", + "integrity": "sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q==", + "dev": true, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/get-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz", + "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==", + "license": "MIT", + "dependencies": { + "dunder-proto": "^1.0.1", + "es-object-atoms": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/get-stream": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz", + "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/glob": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.0.tgz", + "integrity": "sha512-lmLf6gtyrPq8tTjSmrO94wBeQbFR3HbLHbuyD69wuyQkImp2hWqMGB47OX65FBkPffO641IP9jWa1z4ivqG26Q==", + "dev": true, + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.0.4", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/globals": { + "version": "11.12.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", + "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/gopd": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz", + "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/graceful-fs": { + "version": "4.2.10", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.10.tgz", + "integrity": "sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA==", + "dev": true + }, + "node_modules/has": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", + "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", + "dev": true, + "dependencies": { + "function-bind": "^1.1.1" + }, + "engines": { + "node": ">= 0.4.0" + } + }, + "node_modules/has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/has-symbols": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz", + "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-tostringtag": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz", + "integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==", + "license": "MIT", + "dependencies": { + "has-symbols": "^1.0.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/hasown": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", + "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", + "license": "MIT", + "dependencies": { + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/html-encoding-sniffer": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/html-encoding-sniffer/-/html-encoding-sniffer-3.0.0.tgz", + "integrity": "sha512-oWv4T4yJ52iKrufjnyZPkrN0CH3QnrUqdB6In1g5Fe1mia8GmF36gnfNySxoZtxD5+NmYw1EElVXiBk93UeskA==", + "dev": true, + "dependencies": { + "whatwg-encoding": "^2.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/html-escaper": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/html-escaper/-/html-escaper-2.0.2.tgz", + "integrity": "sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==", + "dev": true + }, + "node_modules/http-parser-js": { + "version": "0.5.6", + "resolved": "https://registry.npmjs.org/http-parser-js/-/http-parser-js-0.5.6.tgz", + "integrity": "sha512-vDlkRPDJn93swjcjqMSaGSPABbIarsr1TLAui/gLDXzV5VsJNdXNzMYDyNBLQkjWQCJ1uizu8T2oDMhmGt0PRA==" + }, + "node_modules/http-proxy-agent": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-5.0.0.tgz", + "integrity": "sha512-n2hY8YdoRE1i7r6M0w9DIw5GgZN0G25P8zLCRQ8rjXtTU3vsNFBI/vWK/UIeE6g5MUUz6avwAPXmL6Fy9D/90w==", + "dev": true, + "dependencies": { + "@tootallnate/once": "2", + "agent-base": "6", + "debug": "4" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/https-proxy-agent": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz", + "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==", + "dev": true, + "dependencies": { + "agent-base": "6", + "debug": "4" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/human-signals": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz", + "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==", + "dev": true, + "engines": { + "node": ">=10.17.0" + } + }, + "node_modules/iconv-lite": { + "version": "0.6.3", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz", + "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==", + "dev": true, + "dependencies": { + "safer-buffer": ">= 2.1.2 < 3.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/import-local": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/import-local/-/import-local-3.1.0.tgz", + "integrity": "sha512-ASB07uLtnDs1o6EHjKpX34BKYDSqnFerfTOJL2HvMqF70LnxpjkzDB8J44oT9pu4AMPkQwf8jl6szgvNd2tRIg==", + "dev": true, + "dependencies": { + "pkg-dir": "^4.2.0", + "resolve-cwd": "^3.0.0" + }, + "bin": { + "import-local-fixture": "fixtures/cli.js" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/imurmurhash": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", + "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", + "dev": true, + "engines": { + "node": ">=0.8.19" + } + }, + "node_modules/inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", + "dev": true, + "dependencies": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "node_modules/inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", + "dev": true + }, + "node_modules/is-arrayish": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", + "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==", + "dev": true + }, + "node_modules/is-builtin-module": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/is-builtin-module/-/is-builtin-module-3.1.0.tgz", + "integrity": "sha512-OV7JjAgOTfAFJmHZLvpSTb4qi0nIILDV1gWPYDnDJUTNFM5aGlRAhk4QcT8i7TuAleeEV5Fdkqn3t4mS+Q11fg==", + "dev": true, + "dependencies": { + "builtin-modules": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/is-core-module": { + "version": "2.12.1", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.12.1.tgz", + "integrity": "sha512-Q4ZuBAe2FUsKtyQJoQHlvP8OvBERxO3jEmy1I7hcRXcJBGGHFh/aJBswbXuS9sgrDH2QUO8ilkwNPHvHMd8clg==", + "dev": true, + "dependencies": { + "has": "^1.0.3" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/is-generator-fn": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-generator-fn/-/is-generator-fn-2.1.0.tgz", + "integrity": "sha512-cTIB4yPYL/Grw0EaSzASzg6bBy9gqCofvWN8okThAYIxKJZC+udlRAmGbM0XLeniEJSs8uEgHPGuHSe1XsOLSQ==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/is-module": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-module/-/is-module-1.0.0.tgz", + "integrity": "sha512-51ypPSPCoTEIN9dy5Oy+h4pShgJmPCygKfyRCISBI+JoWT/2oJvK8QPxmwv7b/p239jXrm9M1mlQbyKJ5A152g==", + "dev": true + }, + "node_modules/is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "dev": true, + "engines": { + "node": ">=0.12.0" + } + }, + "node_modules/is-potential-custom-element-name": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-potential-custom-element-name/-/is-potential-custom-element-name-1.0.1.tgz", + "integrity": "sha512-bCYeRA2rVibKZd+s2625gGnGF/t7DSqDs4dP7CrLA1m7jKWz6pps0LpYLJN8Q64HtmPKJ1hrN3nzPNKFEKOUiQ==", + "dev": true + }, + "node_modules/is-reference": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/is-reference/-/is-reference-1.2.1.tgz", + "integrity": "sha512-U82MsXXiFIrjCK4otLT+o2NA2Cd2g5MLoOVXUZjIOhLurrRxpEXzI8O0KZHr3IjLvlAH1kTPYSuqer5T9ZVBKQ==", + "dev": true, + "dependencies": { + "@types/estree": "*" + } + }, + "node_modules/is-stream": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", + "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==", + "dev": true, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", + "dev": true + }, + "node_modules/istanbul-lib-coverage": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.0.tgz", + "integrity": "sha512-eOeJ5BHCmHYvQK7xt9GkdHuzuCGS1Y6g9Gvnx3Ym33fz/HpLRYxiS0wHNr+m/MBC8B647Xt608vCDEvhl9c6Mw==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/istanbul-lib-instrument": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-5.2.1.tgz", + "integrity": "sha512-pzqtp31nLv/XFOzXGuvhCb8qhjmTVo5vjVk19XE4CRlSWz0KoeJ3bw9XsA7nOp9YBf4qHjwBxkDzKcME/J29Yg==", + "dev": true, + "dependencies": { + "@babel/core": "^7.12.3", + "@babel/parser": "^7.14.7", + "@istanbuljs/schema": "^0.1.2", + "istanbul-lib-coverage": "^3.2.0", + "semver": "^6.3.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/istanbul-lib-report": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz", + "integrity": "sha512-wcdi+uAKzfiGT2abPpKZ0hSU1rGQjUQnLvtY5MpQ7QCTahD3VODhcu4wcfY1YtkGaDD5yuydOLINXsfbus9ROw==", + "dev": true, + "dependencies": { + "istanbul-lib-coverage": "^3.0.0", + "make-dir": "^3.0.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/istanbul-lib-report/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/istanbul-lib-report/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/istanbul-lib-source-maps": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/istanbul-lib-source-maps/-/istanbul-lib-source-maps-4.0.1.tgz", + "integrity": "sha512-n3s8EwkdFIJCG3BPKBYvskgXGoy88ARzvegkitk60NxRdwltLOTaH7CUiMRXvwYorl0Q712iEjcWB+fK/MrWVw==", + "dev": true, + "dependencies": { + "debug": "^4.1.1", + "istanbul-lib-coverage": "^3.0.0", + "source-map": "^0.6.1" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/istanbul-reports": { + "version": "3.1.5", + "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.1.5.tgz", + "integrity": "sha512-nUsEMa9pBt/NOHqbcbeJEgqIlY/K7rVWUX6Lql2orY5e9roQOthbR3vtY4zzf2orPELg80fnxxk9zUyPlgwD1w==", + "dev": true, + "dependencies": { + "html-escaper": "^2.0.0", + "istanbul-lib-report": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/jest/-/jest-29.6.1.tgz", + "integrity": "sha512-Nirw5B4nn69rVUZtemCQhwxOBhm0nsp3hmtF4rzCeWD7BkjAXRIji7xWQfnTNbz9g0aVsBX6aZK3n+23LM6uDw==", + "dev": true, + "dependencies": { + "@jest/core": "^29.6.1", + "@jest/types": "^29.6.1", + "import-local": "^3.0.2", + "jest-cli": "^29.6.1" + }, + "bin": { + "jest": "bin/jest.js" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" + }, + "peerDependenciesMeta": { + "node-notifier": { + "optional": true + } + } + }, + "node_modules/jest-changed-files": { + "version": "29.5.0", + "resolved": "https://registry.npmjs.org/jest-changed-files/-/jest-changed-files-29.5.0.tgz", + "integrity": "sha512-IFG34IUMUaNBIxjQXF/iu7g6EcdMrGRRxaUSw92I/2g2YC6vCdTltl4nHvt7Ci5nSJwXIkCu8Ka1DKF+X7Z1Ag==", + "dev": true, + "dependencies": { + "execa": "^5.0.0", + "p-limit": "^3.1.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-circus": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/jest-circus/-/jest-circus-29.6.1.tgz", + "integrity": "sha512-tPbYLEiBU4MYAL2XoZme/bgfUeotpDBd81lgHLCbDZZFaGmECk0b+/xejPFtmiBP87GgP/y4jplcRpbH+fgCzQ==", + "dev": true, + "dependencies": { + "@jest/environment": "^29.6.1", + "@jest/expect": "^29.6.1", + "@jest/test-result": "^29.6.1", + "@jest/types": "^29.6.1", + "@types/node": "*", + "chalk": "^4.0.0", + "co": "^4.6.0", + "dedent": "^0.7.0", + "is-generator-fn": "^2.0.0", + "jest-each": "^29.6.1", + "jest-matcher-utils": "^29.6.1", + "jest-message-util": "^29.6.1", + "jest-runtime": "^29.6.1", + "jest-snapshot": "^29.6.1", + "jest-util": "^29.6.1", + "p-limit": "^3.1.0", + "pretty-format": "^29.6.1", + "pure-rand": "^6.0.0", + "slash": "^3.0.0", + "stack-utils": "^2.0.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-circus/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-circus/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest-circus/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jest-circus/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/jest-circus/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-circus/node_modules/pretty-format": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.6.1.tgz", + "integrity": "sha512-7jRj+yXO0W7e4/tSJKoR7HRIHLPPjtNaUGG2xxKQnGvPNRkgWcQ0AZX6P4KBRJN4FcTBWb3sa7DVUJmocYuoog==", + "dev": true, + "dependencies": { + "@jest/schemas": "^29.6.0", + "ansi-styles": "^5.0.0", + "react-is": "^18.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-circus/node_modules/pretty-format/node_modules/ansi-styles": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", + "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-circus/node_modules/react-is": { + "version": "18.2.0", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", + "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", + "dev": true + }, + "node_modules/jest-circus/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-cli": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/jest-cli/-/jest-cli-29.6.1.tgz", + "integrity": "sha512-607dSgTA4ODIN6go9w6xY3EYkyPFGicx51a69H7yfvt7lN53xNswEVLovq+E77VsTRi5fWprLH0yl4DJgE8Ing==", + "dev": true, + "dependencies": { + "@jest/core": "^29.6.1", + "@jest/test-result": "^29.6.1", + "@jest/types": "^29.6.1", + "chalk": "^4.0.0", + "exit": "^0.1.2", + "graceful-fs": "^4.2.9", + "import-local": "^3.0.2", + "jest-config": "^29.6.1", + "jest-util": "^29.6.1", + "jest-validate": "^29.6.1", + "prompts": "^2.0.1", + "yargs": "^17.3.1" + }, + "bin": { + "jest": "bin/jest.js" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" + }, + "peerDependenciesMeta": { + "node-notifier": { + "optional": true + } + } + }, + "node_modules/jest-cli/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-cli/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest-cli/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jest-cli/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/jest-cli/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-cli/node_modules/jest-config": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/jest-config/-/jest-config-29.6.1.tgz", + "integrity": "sha512-XdjYV2fy2xYixUiV2Wc54t3Z4oxYPAELUzWnV6+mcbq0rh742X2p52pii5A3oeRzYjLnQxCsZmp0qpI6klE2cQ==", + "dev": true, + "dependencies": { + "@babel/core": "^7.11.6", + "@jest/test-sequencer": "^29.6.1", + "@jest/types": "^29.6.1", + "babel-jest": "^29.6.1", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "deepmerge": "^4.2.2", + "glob": "^7.1.3", + "graceful-fs": "^4.2.9", + "jest-circus": "^29.6.1", + "jest-environment-node": "^29.6.1", + "jest-get-type": "^29.4.3", + "jest-regex-util": "^29.4.3", + "jest-resolve": "^29.6.1", + "jest-runner": "^29.6.1", + "jest-util": "^29.6.1", + "jest-validate": "^29.6.1", + "micromatch": "^4.0.4", + "parse-json": "^5.2.0", + "pretty-format": "^29.6.1", + "slash": "^3.0.0", + "strip-json-comments": "^3.1.1" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "@types/node": "*", + "ts-node": ">=9.0.0" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + }, + "ts-node": { + "optional": true + } + } + }, + "node_modules/jest-cli/node_modules/jest-get-type": { + "version": "29.4.3", + "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.4.3.tgz", + "integrity": "sha512-J5Xez4nRRMjk8emnTpWrlkyb9pfRQQanDrvWHhsR1+VUfbwxi30eVcZFlcdGInRibU4G5LwHXpI7IRHU0CY+gg==", + "dev": true, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-cli/node_modules/pretty-format": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.6.1.tgz", + "integrity": "sha512-7jRj+yXO0W7e4/tSJKoR7HRIHLPPjtNaUGG2xxKQnGvPNRkgWcQ0AZX6P4KBRJN4FcTBWb3sa7DVUJmocYuoog==", + "dev": true, + "dependencies": { + "@jest/schemas": "^29.6.0", + "ansi-styles": "^5.0.0", + "react-is": "^18.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-cli/node_modules/pretty-format/node_modules/ansi-styles": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", + "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-cli/node_modules/react-is": { + "version": "18.2.0", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", + "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", + "dev": true + }, + "node_modules/jest-cli/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-diff": { + "version": "24.9.0", + "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-24.9.0.tgz", + "integrity": "sha512-qMfrTs8AdJE2iqrTp0hzh7kTd2PQWrsFyj9tORoKmu32xjPjeE4NyjVRDz8ybYwqS2ik8N4hsIpiVTyFeo2lBQ==", + "dev": true, + "dependencies": { + "chalk": "^2.0.1", + "diff-sequences": "^24.9.0", + "jest-get-type": "^24.9.0", + "pretty-format": "^24.9.0" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/jest-docblock": { + "version": "29.4.3", + "resolved": "https://registry.npmjs.org/jest-docblock/-/jest-docblock-29.4.3.tgz", + "integrity": "sha512-fzdTftThczeSD9nZ3fzA/4KkHtnmllawWrXO69vtI+L9WjEIuXWs4AmyME7lN5hU7dB0sHhuPfcKofRsUb/2Fg==", + "dev": true, + "dependencies": { + "detect-newline": "^3.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-each": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/jest-each/-/jest-each-29.6.1.tgz", + "integrity": "sha512-n5eoj5eiTHpKQCAVcNTT7DRqeUmJ01hsAL0Q1SMiBHcBcvTKDELixQOGMCpqhbIuTcfC4kMfSnpmDqRgRJcLNQ==", + "dev": true, + "dependencies": { + "@jest/types": "^29.6.1", + "chalk": "^4.0.0", + "jest-get-type": "^29.4.3", + "jest-util": "^29.6.1", + "pretty-format": "^29.6.1" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-each/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-each/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest-each/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jest-each/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/jest-each/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-each/node_modules/jest-get-type": { + "version": "29.4.3", + "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.4.3.tgz", + "integrity": "sha512-J5Xez4nRRMjk8emnTpWrlkyb9pfRQQanDrvWHhsR1+VUfbwxi30eVcZFlcdGInRibU4G5LwHXpI7IRHU0CY+gg==", + "dev": true, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-each/node_modules/pretty-format": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.6.1.tgz", + "integrity": "sha512-7jRj+yXO0W7e4/tSJKoR7HRIHLPPjtNaUGG2xxKQnGvPNRkgWcQ0AZX6P4KBRJN4FcTBWb3sa7DVUJmocYuoog==", + "dev": true, + "dependencies": { + "@jest/schemas": "^29.6.0", + "ansi-styles": "^5.0.0", + "react-is": "^18.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-each/node_modules/pretty-format/node_modules/ansi-styles": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", + "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-each/node_modules/react-is": { + "version": "18.2.0", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", + "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", + "dev": true + }, + "node_modules/jest-each/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-environment-jsdom": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-environment-jsdom/-/jest-environment-jsdom-29.7.0.tgz", + "integrity": "sha512-k9iQbsf9OyOfdzWH8HDmrRT0gSIcX+FLNW7IQq94tFX0gynPwqDTW0Ho6iMVNjGz/nb+l/vW3dWM2bbLLpkbXA==", + "dev": true, + "dependencies": { + "@jest/environment": "^29.7.0", + "@jest/fake-timers": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/jsdom": "^20.0.0", + "@types/node": "*", + "jest-mock": "^29.7.0", + "jest-util": "^29.7.0", + "jsdom": "^20.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "canvas": "^2.5.0" + }, + "peerDependenciesMeta": { + "canvas": { + "optional": true + } + } + }, + "node_modules/jest-environment-node": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/jest-environment-node/-/jest-environment-node-29.6.1.tgz", + "integrity": "sha512-ZNIfAiE+foBog24W+2caIldl4Irh8Lx1PUhg/GZ0odM1d/h2qORAsejiFc7zb+SEmYPn1yDZzEDSU5PmDkmVLQ==", + "dev": true, + "dependencies": { + "@jest/environment": "^29.6.1", + "@jest/fake-timers": "^29.6.1", + "@jest/types": "^29.6.1", + "@types/node": "*", + "jest-mock": "^29.6.1", + "jest-util": "^29.6.1" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-get-type": { + "version": "24.9.0", + "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-24.9.0.tgz", + "integrity": "sha512-lUseMzAley4LhIcpSP9Jf+fTrQ4a1yHQwLNeeVa2cEmbCGeoZAtYPOIv8JaxLD/sUpKxetKGP+gsHl8f8TSj8Q==", + "dev": true, + "engines": { + "node": ">= 6" + } + }, + "node_modules/jest-haste-map": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-29.6.1.tgz", + "integrity": "sha512-0m7f9PZXxOCk1gRACiVgX85knUKPKLPg4oRCjLoqIm9brTHXaorMA0JpmtmVkQiT8nmXyIVoZd/nnH1cfC33ig==", + "dev": true, + "dependencies": { + "@jest/types": "^29.6.1", + "@types/graceful-fs": "^4.1.3", + "@types/node": "*", + "anymatch": "^3.0.3", + "fb-watchman": "^2.0.0", + "graceful-fs": "^4.2.9", + "jest-regex-util": "^29.4.3", + "jest-util": "^29.6.1", + "jest-worker": "^29.6.1", + "micromatch": "^4.0.4", + "walker": "^1.0.8" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "optionalDependencies": { + "fsevents": "^2.3.2" + } + }, + "node_modules/jest-leak-detector": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/jest-leak-detector/-/jest-leak-detector-29.6.1.tgz", + "integrity": "sha512-OrxMNyZirpOEwkF3UHnIkAiZbtkBWiye+hhBweCHkVbCgyEy71Mwbb5zgeTNYWJBi1qgDVfPC1IwO9dVEeTLwQ==", + "dev": true, + "dependencies": { + "jest-get-type": "^29.4.3", + "pretty-format": "^29.6.1" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-leak-detector/node_modules/ansi-styles": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", + "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-leak-detector/node_modules/jest-get-type": { + "version": "29.4.3", + "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.4.3.tgz", + "integrity": "sha512-J5Xez4nRRMjk8emnTpWrlkyb9pfRQQanDrvWHhsR1+VUfbwxi30eVcZFlcdGInRibU4G5LwHXpI7IRHU0CY+gg==", + "dev": true, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-leak-detector/node_modules/pretty-format": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.6.1.tgz", + "integrity": "sha512-7jRj+yXO0W7e4/tSJKoR7HRIHLPPjtNaUGG2xxKQnGvPNRkgWcQ0AZX6P4KBRJN4FcTBWb3sa7DVUJmocYuoog==", + "dev": true, + "dependencies": { + "@jest/schemas": "^29.6.0", + "ansi-styles": "^5.0.0", + "react-is": "^18.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-leak-detector/node_modules/react-is": { + "version": "18.2.0", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", + "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", + "dev": true + }, + "node_modules/jest-matcher-utils": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-29.6.1.tgz", + "integrity": "sha512-SLaztw9d2mfQQKHmJXKM0HCbl2PPVld/t9Xa6P9sgiExijviSp7TnZZpw2Fpt+OI3nwUO/slJbOfzfUMKKC5QA==", + "dev": true, + "dependencies": { + "chalk": "^4.0.0", + "jest-diff": "^29.6.1", + "jest-get-type": "^29.4.3", + "pretty-format": "^29.6.1" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-matcher-utils/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-matcher-utils/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest-matcher-utils/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jest-matcher-utils/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/jest-matcher-utils/node_modules/diff-sequences": { + "version": "29.4.3", + "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-29.4.3.tgz", + "integrity": "sha512-ofrBgwpPhCD85kMKtE9RYFFq6OC1A89oW2vvgWZNCwxrUpRUILopY7lsYyMDSjc8g6U6aiO0Qubg6r4Wgt5ZnA==", + "dev": true, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-matcher-utils/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-matcher-utils/node_modules/jest-diff": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-29.6.1.tgz", + "integrity": "sha512-FsNCvinvl8oVxpNLttNQX7FAq7vR+gMDGj90tiP7siWw1UdakWUGqrylpsYrpvj908IYckm5Y0Q7azNAozU1Kg==", + "dev": true, + "dependencies": { + "chalk": "^4.0.0", + "diff-sequences": "^29.4.3", + "jest-get-type": "^29.4.3", + "pretty-format": "^29.6.1" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-matcher-utils/node_modules/jest-get-type": { + "version": "29.4.3", + "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.4.3.tgz", + "integrity": "sha512-J5Xez4nRRMjk8emnTpWrlkyb9pfRQQanDrvWHhsR1+VUfbwxi30eVcZFlcdGInRibU4G5LwHXpI7IRHU0CY+gg==", + "dev": true, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-matcher-utils/node_modules/pretty-format": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.6.1.tgz", + "integrity": "sha512-7jRj+yXO0W7e4/tSJKoR7HRIHLPPjtNaUGG2xxKQnGvPNRkgWcQ0AZX6P4KBRJN4FcTBWb3sa7DVUJmocYuoog==", + "dev": true, + "dependencies": { + "@jest/schemas": "^29.6.0", + "ansi-styles": "^5.0.0", + "react-is": "^18.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-matcher-utils/node_modules/pretty-format/node_modules/ansi-styles": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", + "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-matcher-utils/node_modules/react-is": { + "version": "18.2.0", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", + "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", + "dev": true + }, + "node_modules/jest-matcher-utils/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-message-util": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-29.7.0.tgz", + "integrity": "sha512-GBEV4GRADeP+qtB2+6u61stea8mGcOT4mCtrYISZwfu9/ISHFJ/5zOMXYbpBE9RsS5+Gb63DW4FgmnKJ79Kf6w==", + "dev": true, + "dependencies": { + "@babel/code-frame": "^7.12.13", + "@jest/types": "^29.6.3", + "@types/stack-utils": "^2.0.0", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "micromatch": "^4.0.4", + "pretty-format": "^29.7.0", + "slash": "^3.0.0", + "stack-utils": "^2.0.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-message-util/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-message-util/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest-message-util/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jest-message-util/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/jest-message-util/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-message-util/node_modules/pretty-format": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.7.0.tgz", + "integrity": "sha512-Pdlw/oPxN+aXdmM9R00JVC9WVFoCLTKJvDVLgmJ+qAffBMxsV85l/Lu7sNx4zSzPyoL2euImuEwHhOXdEgNFZQ==", + "dev": true, + "dependencies": { + "@jest/schemas": "^29.6.3", + "ansi-styles": "^5.0.0", + "react-is": "^18.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-message-util/node_modules/pretty-format/node_modules/ansi-styles": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", + "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-message-util/node_modules/react-is": { + "version": "18.2.0", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", + "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", + "dev": true + }, + "node_modules/jest-message-util/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-mock": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-mock/-/jest-mock-29.7.0.tgz", + "integrity": "sha512-ITOMZn+UkYS4ZFh83xYAOzWStloNzJFO2s8DWrE4lhtGD+AorgnbkiKERe4wQVBydIGPx059g6riW5Btp6Llnw==", + "dev": true, + "dependencies": { + "@jest/types": "^29.6.3", + "@types/node": "*", + "jest-util": "^29.7.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-pnp-resolver": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/jest-pnp-resolver/-/jest-pnp-resolver-1.2.3.tgz", + "integrity": "sha512-+3NpwQEnRoIBtx4fyhblQDPgJI0H1IEIkX7ShLUjPGA7TtUTvI1oiKi3SR4oBR0hQhQR80l4WAe5RrXBwWMA8w==", + "dev": true, + "engines": { + "node": ">=6" + }, + "peerDependencies": { + "jest-resolve": "*" + }, + "peerDependenciesMeta": { + "jest-resolve": { + "optional": true + } + } + }, + "node_modules/jest-regex-util": { + "version": "29.4.3", + "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-29.4.3.tgz", + "integrity": "sha512-O4FglZaMmWXbGHSQInfXewIsd1LMn9p3ZXB/6r4FOkyhX2/iP/soMG98jGvk/A3HAN78+5VWcBGO0BJAPRh4kg==", + "dev": true, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-resolve": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/jest-resolve/-/jest-resolve-29.6.1.tgz", + "integrity": "sha512-AeRkyS8g37UyJiP9w3mmI/VXU/q8l/IH52vj/cDAyScDcemRbSBhfX/NMYIGilQgSVwsjxrCHf3XJu4f+lxCMg==", + "dev": true, + "dependencies": { + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.6.1", + "jest-pnp-resolver": "^1.2.2", + "jest-util": "^29.6.1", + "jest-validate": "^29.6.1", + "resolve": "^1.20.0", + "resolve.exports": "^2.0.0", + "slash": "^3.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-resolve-dependencies": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/jest-resolve-dependencies/-/jest-resolve-dependencies-29.6.1.tgz", + "integrity": "sha512-BbFvxLXtcldaFOhNMXmHRWx1nXQO5LoXiKSGQcA1LxxirYceZT6ch8KTE1bK3X31TNG/JbkI7OkS/ABexVahiw==", + "dev": true, + "dependencies": { + "jest-regex-util": "^29.4.3", + "jest-snapshot": "^29.6.1" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-resolve/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-resolve/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest-resolve/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jest-resolve/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/jest-resolve/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-resolve/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-runner": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/jest-runner/-/jest-runner-29.6.1.tgz", + "integrity": "sha512-tw0wb2Q9yhjAQ2w8rHRDxteryyIck7gIzQE4Reu3JuOBpGp96xWgF0nY8MDdejzrLCZKDcp8JlZrBN/EtkQvPQ==", + "dev": true, + "dependencies": { + "@jest/console": "^29.6.1", + "@jest/environment": "^29.6.1", + "@jest/test-result": "^29.6.1", + "@jest/transform": "^29.6.1", + "@jest/types": "^29.6.1", + "@types/node": "*", + "chalk": "^4.0.0", + "emittery": "^0.13.1", + "graceful-fs": "^4.2.9", + "jest-docblock": "^29.4.3", + "jest-environment-node": "^29.6.1", + "jest-haste-map": "^29.6.1", + "jest-leak-detector": "^29.6.1", + "jest-message-util": "^29.6.1", + "jest-resolve": "^29.6.1", + "jest-runtime": "^29.6.1", + "jest-util": "^29.6.1", + "jest-watcher": "^29.6.1", + "jest-worker": "^29.6.1", + "p-limit": "^3.1.0", + "source-map-support": "0.5.13" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-runner/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-runner/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest-runner/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jest-runner/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/jest-runner/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-runner/node_modules/source-map-support": { + "version": "0.5.13", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.13.tgz", + "integrity": "sha512-SHSKFHadjVA5oR4PPqhtAVdcBWwRYVd6g6cAXnIbRiIwc2EhPrTuKUBdSLvlEKyIP3GCf89fltvcZiP9MMFA1w==", + "dev": true, + "dependencies": { + "buffer-from": "^1.0.0", + "source-map": "^0.6.0" + } + }, + "node_modules/jest-runner/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-runtime": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/jest-runtime/-/jest-runtime-29.6.1.tgz", + "integrity": "sha512-D6/AYOA+Lhs5e5il8+5pSLemjtJezUr+8zx+Sn8xlmOux3XOqx4d8l/2udBea8CRPqqrzhsKUsN/gBDE/IcaPQ==", + "dev": true, + "dependencies": { + "@jest/environment": "^29.6.1", + "@jest/fake-timers": "^29.6.1", + "@jest/globals": "^29.6.1", + "@jest/source-map": "^29.6.0", + "@jest/test-result": "^29.6.1", + "@jest/transform": "^29.6.1", + "@jest/types": "^29.6.1", + "@types/node": "*", + "chalk": "^4.0.0", + "cjs-module-lexer": "^1.0.0", + "collect-v8-coverage": "^1.0.0", + "glob": "^7.1.3", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.6.1", + "jest-message-util": "^29.6.1", + "jest-mock": "^29.6.1", + "jest-regex-util": "^29.4.3", + "jest-resolve": "^29.6.1", + "jest-snapshot": "^29.6.1", + "jest-util": "^29.6.1", + "slash": "^3.0.0", + "strip-bom": "^4.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-runtime/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-runtime/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest-runtime/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jest-runtime/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/jest-runtime/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-runtime/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-snapshot": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/jest-snapshot/-/jest-snapshot-29.6.1.tgz", + "integrity": "sha512-G4UQE1QQ6OaCgfY+A0uR1W2AY0tGXUPQpoUClhWHq1Xdnx1H6JOrC2nH5lqnOEqaDgbHFgIwZ7bNq24HpB180A==", + "dev": true, + "dependencies": { + "@babel/core": "^7.11.6", + "@babel/generator": "^7.7.2", + "@babel/plugin-syntax-jsx": "^7.7.2", + "@babel/plugin-syntax-typescript": "^7.7.2", + "@babel/types": "^7.3.3", + "@jest/expect-utils": "^29.6.1", + "@jest/transform": "^29.6.1", + "@jest/types": "^29.6.1", + "@types/prettier": "^2.1.5", + "babel-preset-current-node-syntax": "^1.0.0", + "chalk": "^4.0.0", + "expect": "^29.6.1", + "graceful-fs": "^4.2.9", + "jest-diff": "^29.6.1", + "jest-get-type": "^29.4.3", + "jest-matcher-utils": "^29.6.1", + "jest-message-util": "^29.6.1", + "jest-util": "^29.6.1", + "natural-compare": "^1.4.0", + "pretty-format": "^29.6.1", + "semver": "^7.5.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-snapshot/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-snapshot/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest-snapshot/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jest-snapshot/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/jest-snapshot/node_modules/diff-sequences": { + "version": "29.4.3", + "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-29.4.3.tgz", + "integrity": "sha512-ofrBgwpPhCD85kMKtE9RYFFq6OC1A89oW2vvgWZNCwxrUpRUILopY7lsYyMDSjc8g6U6aiO0Qubg6r4Wgt5ZnA==", + "dev": true, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-snapshot/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-snapshot/node_modules/jest-diff": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-29.6.1.tgz", + "integrity": "sha512-FsNCvinvl8oVxpNLttNQX7FAq7vR+gMDGj90tiP7siWw1UdakWUGqrylpsYrpvj908IYckm5Y0Q7azNAozU1Kg==", + "dev": true, + "dependencies": { + "chalk": "^4.0.0", + "diff-sequences": "^29.4.3", + "jest-get-type": "^29.4.3", + "pretty-format": "^29.6.1" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-snapshot/node_modules/jest-get-type": { + "version": "29.4.3", + "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.4.3.tgz", + "integrity": "sha512-J5Xez4nRRMjk8emnTpWrlkyb9pfRQQanDrvWHhsR1+VUfbwxi30eVcZFlcdGInRibU4G5LwHXpI7IRHU0CY+gg==", + "dev": true, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-snapshot/node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dev": true, + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/jest-snapshot/node_modules/pretty-format": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.6.1.tgz", + "integrity": "sha512-7jRj+yXO0W7e4/tSJKoR7HRIHLPPjtNaUGG2xxKQnGvPNRkgWcQ0AZX6P4KBRJN4FcTBWb3sa7DVUJmocYuoog==", + "dev": true, + "dependencies": { + "@jest/schemas": "^29.6.0", + "ansi-styles": "^5.0.0", + "react-is": "^18.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-snapshot/node_modules/pretty-format/node_modules/ansi-styles": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", + "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-snapshot/node_modules/react-is": { + "version": "18.2.0", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", + "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", + "dev": true + }, + "node_modules/jest-snapshot/node_modules/semver": { + "version": "7.5.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", + "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", + "dev": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/jest-snapshot/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-snapshot/node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true + }, + "node_modules/jest-util": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-29.7.0.tgz", + "integrity": "sha512-z6EbKajIpqGKU56y5KBUgy1dt1ihhQJgWzUlZHArA/+X2ad7Cb5iF+AK1EWVL/Bo7Rz9uurpqw6SiBCefUbCGA==", + "dev": true, + "dependencies": { + "@jest/types": "^29.6.3", + "@types/node": "*", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "graceful-fs": "^4.2.9", + "picomatch": "^2.2.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-util/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-util/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest-util/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jest-util/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/jest-util/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-util/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-validate": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/jest-validate/-/jest-validate-29.6.1.tgz", + "integrity": "sha512-r3Ds69/0KCN4vx4sYAbGL1EVpZ7MSS0vLmd3gV78O+NAx3PDQQukRU5hNHPXlyqCgFY8XUk7EuTMLugh0KzahA==", + "dev": true, + "dependencies": { + "@jest/types": "^29.6.1", + "camelcase": "^6.2.0", + "chalk": "^4.0.0", + "jest-get-type": "^29.4.3", + "leven": "^3.1.0", + "pretty-format": "^29.6.1" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-validate/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-validate/node_modules/camelcase": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", + "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/jest-validate/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest-validate/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jest-validate/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/jest-validate/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-validate/node_modules/jest-get-type": { + "version": "29.4.3", + "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.4.3.tgz", + "integrity": "sha512-J5Xez4nRRMjk8emnTpWrlkyb9pfRQQanDrvWHhsR1+VUfbwxi30eVcZFlcdGInRibU4G5LwHXpI7IRHU0CY+gg==", + "dev": true, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-validate/node_modules/pretty-format": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.6.1.tgz", + "integrity": "sha512-7jRj+yXO0W7e4/tSJKoR7HRIHLPPjtNaUGG2xxKQnGvPNRkgWcQ0AZX6P4KBRJN4FcTBWb3sa7DVUJmocYuoog==", + "dev": true, + "dependencies": { + "@jest/schemas": "^29.6.0", + "ansi-styles": "^5.0.0", + "react-is": "^18.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-validate/node_modules/pretty-format/node_modules/ansi-styles": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", + "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-validate/node_modules/react-is": { + "version": "18.2.0", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", + "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", + "dev": true + }, + "node_modules/jest-validate/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-watcher": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/jest-watcher/-/jest-watcher-29.6.1.tgz", + "integrity": "sha512-d4wpjWTS7HEZPaaj8m36QiaP856JthRZkrgcIY/7ISoUWPIillrXM23WPboZVLbiwZBt4/qn2Jke84Sla6JhFA==", + "dev": true, + "dependencies": { + "@jest/test-result": "^29.6.1", + "@jest/types": "^29.6.1", + "@types/node": "*", + "ansi-escapes": "^4.2.1", + "chalk": "^4.0.0", + "emittery": "^0.13.1", + "jest-util": "^29.6.1", + "string-length": "^4.0.1" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-watcher/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/jest-watcher/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/jest-watcher/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/jest-watcher/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/jest-watcher/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-watcher/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-worker": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-29.6.1.tgz", + "integrity": "sha512-U+Wrbca7S8ZAxAe9L6nb6g8kPdia5hj32Puu5iOqBCMTMWFHXuK6dOV2IFrpedbTV8fjMFLdWNttQTBL6u2MRA==", + "dev": true, + "dependencies": { + "@types/node": "*", + "jest-util": "^29.6.1", + "merge-stream": "^2.0.0", + "supports-color": "^8.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-worker/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/jest-worker/node_modules/supports-color": { + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", + "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/supports-color?sponsor=1" + } + }, + "node_modules/js-tokens": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/js-yaml": { + "version": "3.14.2", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.2.tgz", + "integrity": "sha512-PMSmkqxr106Xa156c2M265Z+FTrPl+oxd/rgOQy2tijQeK5TxQ43psO1ZCwhVOSdnn+RzkzlRz/eY4BgJBYVpg==", + "dev": true, + "license": "MIT", + "dependencies": { + "argparse": "^1.0.7", + "esprima": "^4.0.0" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/js2xmlparser": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/js2xmlparser/-/js2xmlparser-4.0.2.tgz", + "integrity": "sha512-6n4D8gLlLf1n5mNLQPRfViYzu9RATblzPEtm1SthMX1Pjao0r9YI9nw7ZIfRxQMERS87mcswrg+r/OYrPRX6jA==", + "dev": true, + "dependencies": { + "xmlcreate": "^2.0.4" + } + }, + "node_modules/jsdoc": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/jsdoc/-/jsdoc-4.0.2.tgz", + "integrity": "sha512-e8cIg2z62InH7azBBi3EsSEqrKx+nUtAS5bBcYTSpZFA+vhNPyhv8PTFZ0WsjOPDj04/dOLlm08EDcQJDqaGQg==", + "dev": true, + "dependencies": { + "@babel/parser": "^7.20.15", + "@jsdoc/salty": "^0.2.1", + "@types/markdown-it": "^12.2.3", + "bluebird": "^3.7.2", + "catharsis": "^0.9.0", + "escape-string-regexp": "^2.0.0", + "js2xmlparser": "^4.0.2", + "klaw": "^3.0.0", + "markdown-it": "^12.3.2", + "markdown-it-anchor": "^8.4.1", + "marked": "^4.0.10", + "mkdirp": "^1.0.4", + "requizzle": "^0.2.3", + "strip-json-comments": "^3.1.0", + "underscore": "~1.13.2" + }, + "bin": { + "jsdoc": "jsdoc.js" + }, + "engines": { + "node": ">=12.0.0" + } + }, + "node_modules/jsdoc/node_modules/escape-string-regexp": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz", + "integrity": "sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/jsdom": { + "version": "20.0.3", + "resolved": "https://registry.npmjs.org/jsdom/-/jsdom-20.0.3.tgz", + "integrity": "sha512-SYhBvTh89tTfCD/CRdSOm13mOBa42iTaTyfyEWBdKcGdPxPtLFBXuHR8XHb33YNYaP+lLbmSvBTsnoesCNJEsQ==", + "dev": true, + "dependencies": { + "abab": "^2.0.6", + "acorn": "^8.8.1", + "acorn-globals": "^7.0.0", + "cssom": "^0.5.0", + "cssstyle": "^2.3.0", + "data-urls": "^3.0.2", + "decimal.js": "^10.4.2", + "domexception": "^4.0.0", + "escodegen": "^2.0.0", + "form-data": "^4.0.0", + "html-encoding-sniffer": "^3.0.0", + "http-proxy-agent": "^5.0.0", + "https-proxy-agent": "^5.0.1", + "is-potential-custom-element-name": "^1.0.1", + "nwsapi": "^2.2.2", + "parse5": "^7.1.1", + "saxes": "^6.0.0", + "symbol-tree": "^3.2.4", + "tough-cookie": "^4.1.2", + "w3c-xmlserializer": "^4.0.0", + "webidl-conversions": "^7.0.0", + "whatwg-encoding": "^2.0.0", + "whatwg-mimetype": "^3.0.0", + "whatwg-url": "^11.0.0", + "ws": "^8.11.0", + "xml-name-validator": "^4.0.0" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "canvas": "^2.5.0" + }, + "peerDependenciesMeta": { + "canvas": { + "optional": true + } + } + }, + "node_modules/jsdom/node_modules/escodegen": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-2.1.0.tgz", + "integrity": "sha512-2NlIDTwUWJN0mRPQOdtQBzbUHvdGY2P1VXSyU83Q3xKxM7WHX2Ql8dKq782Q9TgQUNOLEzEYu9bzLNj1q88I5w==", + "dev": true, + "dependencies": { + "esprima": "^4.0.1", + "estraverse": "^5.2.0", + "esutils": "^2.0.2" + }, + "bin": { + "escodegen": "bin/escodegen.js", + "esgenerate": "bin/esgenerate.js" + }, + "engines": { + "node": ">=6.0" + }, + "optionalDependencies": { + "source-map": "~0.6.1" + } + }, + "node_modules/jsesc": { + "version": "2.5.2", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", + "integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==", + "dev": true, + "bin": { + "jsesc": "bin/jsesc" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/json-parse-even-better-errors": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", + "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==", + "dev": true + }, + "node_modules/json5": { + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", + "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", + "dev": true, + "bin": { + "json5": "lib/cli.js" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/jsonfile": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", + "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==", + "dev": true, + "dependencies": { + "universalify": "^2.0.0" + }, + "optionalDependencies": { + "graceful-fs": "^4.1.6" + } + }, + "node_modules/klaw": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/klaw/-/klaw-3.0.0.tgz", + "integrity": "sha512-0Fo5oir+O9jnXu5EefYbVK+mHMBeEVEy2cmctR1O1NECcCkPRreJKrS6Qt/j3KC2C148Dfo9i3pCmCMsdqGr0g==", + "dev": true, + "dependencies": { + "graceful-fs": "^4.1.9" + } + }, + "node_modules/kleur": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/kleur/-/kleur-3.0.3.tgz", + "integrity": "sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/leven": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/leven/-/leven-3.1.0.tgz", + "integrity": "sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/levn": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/levn/-/levn-0.3.0.tgz", + "integrity": "sha512-0OO4y2iOHix2W6ujICbKIaEQXvFQHue65vUG3pb5EUomzPI90z9hsA1VsO/dbIIpC53J8gxM9Q4Oho0jrCM/yA==", + "dev": true, + "dependencies": { + "prelude-ls": "~1.1.2", + "type-check": "~0.3.2" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/lines-and-columns": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz", + "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==", + "dev": true + }, + "node_modules/linkify-it": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/linkify-it/-/linkify-it-3.0.3.tgz", + "integrity": "sha512-ynTsyrFSdE5oZ/O9GEf00kPngmOfVwazR5GKDq6EYfhlpFug3J2zybX56a2PRRpc9P+FuSoGNAwjlbDs9jJBPQ==", + "dev": true, + "dependencies": { + "uc.micro": "^1.0.1" + } + }, + "node_modules/locate-path": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "dev": true, + "dependencies": { + "p-locate": "^4.1.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/lodash": { + "version": "4.17.21", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", + "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==", + "dev": true + }, + "node_modules/lodash.debounce": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/lodash.debounce/-/lodash.debounce-4.0.8.tgz", + "integrity": "sha512-FT1yDzDYEoYWhnSGnpE/4Kj1fLZkDFyqRb7fNt6FdYOSxlUWAtp42Eh6Wb0rGIv/m9Bgo7x4GhQbm5Ys4SG5ow==", + "dev": true + }, + "node_modules/lodash.memoize": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/lodash.memoize/-/lodash.memoize-4.1.2.tgz", + "integrity": "sha1-vMbEmkKihA7Zl/Mj6tpezRguC/4=", + "dev": true + }, + "node_modules/long": { + "version": "5.2.3", + "resolved": "https://registry.npmjs.org/long/-/long-5.2.3.tgz", + "integrity": "sha512-lcHwpNoggQTObv5apGNCTdJrO69eHOZMi4BNC+rTLER8iHAqGrUVeLh/irVIM7zTw2bOXA8T6uNPeujwOLg/2Q==", + "dev": true + }, + "node_modules/lru-cache": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", + "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", + "dev": true, + "dependencies": { + "yallist": "^3.0.2" + } + }, + "node_modules/magic-string": { + "version": "0.25.9", + "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.25.9.tgz", + "integrity": "sha512-RmF0AsMzgt25qzqqLc1+MbHmhdx0ojF2Fvs4XnOqz2ZOBXzzkEwc/dJQZCYHAn7v1jbVOjAZfK8msRn4BxO4VQ==", + "dev": true, + "dependencies": { + "sourcemap-codec": "^1.4.8" + } + }, + "node_modules/make-dir": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", + "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==", + "dev": true, + "dependencies": { + "semver": "^6.0.0" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/make-error": { + "version": "1.3.6", + "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz", + "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==", + "dev": true + }, + "node_modules/makeerror": { + "version": "1.0.12", + "resolved": "https://registry.npmjs.org/makeerror/-/makeerror-1.0.12.tgz", + "integrity": "sha512-JmqCvUhmt43madlpFzG4BQzG2Z3m6tvQDNKdClZnO3VbIudJYmxsT0FNJMeiB2+JTSlTQTSbU8QdesVmwJcmLg==", + "dev": true, + "dependencies": { + "tmpl": "1.0.5" + } + }, + "node_modules/markdown-it": { + "version": "12.3.2", + "resolved": "https://registry.npmjs.org/markdown-it/-/markdown-it-12.3.2.tgz", + "integrity": "sha512-TchMembfxfNVpHkbtriWltGWc+m3xszaRD0CZup7GFFhzIgQqxIfn3eGj1yZpfuflzPvfkt611B2Q/Bsk1YnGg==", + "dev": true, + "dependencies": { + "argparse": "^2.0.1", + "entities": "~2.1.0", + "linkify-it": "^3.0.1", + "mdurl": "^1.0.1", + "uc.micro": "^1.0.5" + }, + "bin": { + "markdown-it": "bin/markdown-it.js" + } + }, + "node_modules/markdown-it-anchor": { + "version": "8.6.7", + "resolved": "https://registry.npmjs.org/markdown-it-anchor/-/markdown-it-anchor-8.6.7.tgz", + "integrity": "sha512-FlCHFwNnutLgVTflOYHPW2pPcl2AACqVzExlkGQNsi4CJgqOHN7YTgDd4LuhgN1BFO3TS0vLAruV1Td6dwWPJA==", + "dev": true, + "peerDependencies": { + "@types/markdown-it": "*", + "markdown-it": "*" + } + }, + "node_modules/markdown-it/node_modules/argparse": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", + "dev": true + }, + "node_modules/marked": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/marked/-/marked-4.3.0.tgz", + "integrity": "sha512-PRsaiG84bK+AMvxziE/lCFss8juXjNaWzVbN5tXAm4XjeaS9NAHhop+PjQxz2A9h8Q4M/xGmzP8vqNwy6JeK0A==", + "dev": true, + "bin": { + "marked": "bin/marked.js" + }, + "engines": { + "node": ">= 12" + } + }, + "node_modules/math-intrinsics": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz", + "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/mdurl": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/mdurl/-/mdurl-1.0.1.tgz", + "integrity": "sha512-/sKlQJCBYVY9Ers9hqzKou4H6V5UWc/M59TH2dvkt+84itfnq7uFOMLpOiOS4ujvHP4etln18fmIxA5R5fll0g==", + "dev": true + }, + "node_modules/merge-stream": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", + "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", + "dev": true + }, + "node_modules/micromatch": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz", + "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==", + "dev": true, + "dependencies": { + "braces": "^3.0.3", + "picomatch": "^2.3.1" + }, + "engines": { + "node": ">=8.6" + } + }, + "node_modules/mime-db": { + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mime-types": { + "version": "2.1.35", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "dependencies": { + "mime-db": "1.52.0" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mimic-fn": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", + "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/minimist": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", + "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==", + "dev": true, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/mkdirp": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", + "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==", + "dev": true, + "bin": { + "mkdirp": "bin/cmd.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", + "dev": true + }, + "node_modules/natural-compare": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", + "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", + "dev": true + }, + "node_modules/node-int64": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/node-int64/-/node-int64-0.4.0.tgz", + "integrity": "sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw==", + "dev": true + }, + "node_modules/node-releases": { + "version": "2.0.13", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.13.tgz", + "integrity": "sha512-uYr7J37ae/ORWdZeQ1xxMJe3NtdmqMC/JZK+geofDrkLUApKRHPd18/TxtBOJ4A0/+uUIliorNrfYV6s1b02eQ==", + "dev": true + }, + "node_modules/node-rsa": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/node-rsa/-/node-rsa-1.1.1.tgz", + "integrity": "sha512-Jd4cvbJMryN21r5HgxQOpMEqv+ooke/korixNNK3mGqfGJmy0M77WDDzo/05969+OkMy3XW1UuZsSmW9KQm7Fw==", + "dependencies": { + "asn1": "^0.2.4" + } + }, + "node_modules/normalize-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", + "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/npm-run-path": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz", + "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==", + "dev": true, + "dependencies": { + "path-key": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/nwsapi": { + "version": "2.2.7", + "resolved": "https://registry.npmjs.org/nwsapi/-/nwsapi-2.2.7.tgz", + "integrity": "sha512-ub5E4+FBPKwAZx0UwIQOjYWGHTEq5sPqHQNRN8Z9e4A7u3Tj1weLJsL59yH9vmvqEtBHaOmT6cYQKIZOxp35FQ==", + "dev": true + }, + "node_modules/once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", + "dev": true, + "dependencies": { + "wrappy": "1" + } + }, + "node_modules/onetime": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", + "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", + "dev": true, + "dependencies": { + "mimic-fn": "^2.1.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/optionator": { + "version": "0.8.3", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.8.3.tgz", + "integrity": "sha512-+IW9pACdk3XWmmTXG8m3upGUJst5XRGzxMRjXzAuJ1XnIFNvfhjjIuYkDvysnPQ7qzqVzLt78BCruntqRhWQbA==", + "dev": true, + "dependencies": { + "deep-is": "~0.1.3", + "fast-levenshtein": "~2.0.6", + "levn": "~0.3.0", + "prelude-ls": "~1.1.2", + "type-check": "~0.3.2", + "word-wrap": "~1.2.3" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/p-limit": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", + "dev": true, + "dependencies": { + "yocto-queue": "^0.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-locate": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "dev": true, + "dependencies": { + "p-limit": "^2.2.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/p-locate/node_modules/p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "dev": true, + "dependencies": { + "p-try": "^2.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-try": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", + "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/parse-json": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz", + "integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==", + "dev": true, + "dependencies": { + "@babel/code-frame": "^7.0.0", + "error-ex": "^1.3.1", + "json-parse-even-better-errors": "^2.3.0", + "lines-and-columns": "^1.1.6" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/parse5": { + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/parse5/-/parse5-7.1.2.tgz", + "integrity": "sha512-Czj1WaSVpaoj0wbhMzLmWD69anp2WH7FXMB9n1Sy8/ZFF9jolSQVMu1Ij5WIyGmcBmhk7EOndpO4mIpihVqAXw==", + "dev": true, + "dependencies": { + "entities": "^4.4.0" + }, + "funding": { + "url": "https://github.com/inikulin/parse5?sponsor=1" + } + }, + "node_modules/parse5/node_modules/entities": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/entities/-/entities-4.5.0.tgz", + "integrity": "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==", + "dev": true, + "engines": { + "node": ">=0.12" + }, + "funding": { + "url": "https://github.com/fb55/entities?sponsor=1" + } + }, + "node_modules/path-exists": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/path-is-absolute": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/path-parse": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", + "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", + "dev": true + }, + "node_modules/picocolors": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", + "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", + "dev": true, + "license": "ISC" + }, + "node_modules/picomatch": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", + "dev": true, + "engines": { + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/pirates": { + "version": "4.0.6", + "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.6.tgz", + "integrity": "sha512-saLsH7WeYYPiD25LDuLRRY/i+6HaPYr6G1OUlN39otzkSTxKnubR9RTxS3/Kk50s1g2JTgFwWQDQyplC5/SHZg==", + "dev": true, + "engines": { + "node": ">= 6" + } + }, + "node_modules/pkg-dir": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz", + "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==", + "dev": true, + "dependencies": { + "find-up": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/prelude-ls": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.1.2.tgz", + "integrity": "sha512-ESF23V4SKG6lVSGZgYNpbsiaAkdab6ZgOxe52p7+Kid3W3u3bxR4Vfd/o21dmN7jSt0IwgZ4v5MUd26FEtXE9w==", + "dev": true, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/pretty-format": { + "version": "24.9.0", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-24.9.0.tgz", + "integrity": "sha512-00ZMZUiHaJrNfk33guavqgvfJS30sLYf0f8+Srklv0AMPodGGHcoHgksZ3OThYnIvOd+8yMCn0YiEOogjlgsnA==", + "dev": true, + "dependencies": { + "@jest/types": "^24.9.0", + "ansi-regex": "^4.0.0", + "ansi-styles": "^3.2.0", + "react-is": "^16.8.4" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/pretty-format/node_modules/@jest/types": { + "version": "24.9.0", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-24.9.0.tgz", + "integrity": "sha512-XKK7ze1apu5JWQ5eZjHITP66AX+QsLlbaJRBGYr8pNzwcAE2JVkwnf0yqjHTsDRcjR0mujy/NmZMXw5kl+kGBw==", + "dev": true, + "dependencies": { + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^1.1.1", + "@types/yargs": "^13.0.0" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/pretty-format/node_modules/@types/istanbul-reports": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-1.1.2.tgz", + "integrity": "sha512-P/W9yOX/3oPZSpaYOCQzGqgCQRXn0FFO/V8bWrCQs+wLmvVVxk6CRBXALEvNs9OHIatlnlFokfhuDo2ug01ciw==", + "dev": true, + "dependencies": { + "@types/istanbul-lib-coverage": "*", + "@types/istanbul-lib-report": "*" + } + }, + "node_modules/pretty-format/node_modules/@types/yargs": { + "version": "13.0.12", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-13.0.12.tgz", + "integrity": "sha512-qCxJE1qgz2y0hA4pIxjBR+PelCH0U5CK1XJXFwCNqfmliatKp47UCXXE9Dyk1OXBDLvsCF57TqQEJaeLfDYEOQ==", + "dev": true, + "dependencies": { + "@types/yargs-parser": "*" + } + }, + "node_modules/prompts": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/prompts/-/prompts-2.4.2.tgz", + "integrity": "sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q==", + "dev": true, + "dependencies": { + "kleur": "^3.0.3", + "sisteransi": "^1.0.5" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/protobufjs": { + "version": "7.2.6", + "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-7.2.6.tgz", + "integrity": "sha512-dgJaEDDL6x8ASUZ1YqWciTRrdOuYNzoOf27oHNfdyvKqHr5i0FV7FSLU+aIeFjyFgVxrpTOtQUi0BLLBymZaBw==", + "dev": true, + "hasInstallScript": true, + "dependencies": { + "@protobufjs/aspromise": "^1.1.2", + "@protobufjs/base64": "^1.1.2", + "@protobufjs/codegen": "^2.0.4", + "@protobufjs/eventemitter": "^1.1.0", + "@protobufjs/fetch": "^1.1.0", + "@protobufjs/float": "^1.0.2", + "@protobufjs/inquire": "^1.1.0", + "@protobufjs/path": "^1.1.2", + "@protobufjs/pool": "^1.1.0", + "@protobufjs/utf8": "^1.1.0", + "@types/node": ">=13.7.0", + "long": "^5.0.0" + }, + "engines": { + "node": ">=12.0.0" + } + }, + "node_modules/protobufjs-cli": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/protobufjs-cli/-/protobufjs-cli-1.1.1.tgz", + "integrity": "sha512-VPWMgIcRNyQwWUv8OLPyGQ/0lQY/QTQAVN5fh+XzfDwsVw1FZ2L3DM/bcBf8WPiRz2tNpaov9lPZfNcmNo6LXA==", + "dev": true, + "dependencies": { + "chalk": "^4.0.0", + "escodegen": "^1.13.0", + "espree": "^9.0.0", + "estraverse": "^5.1.0", + "glob": "^8.0.0", + "jsdoc": "^4.0.0", + "minimist": "^1.2.0", + "semver": "^7.1.2", + "tmp": "^0.2.1", + "uglify-js": "^3.7.7" + }, + "bin": { + "pbjs": "bin/pbjs", + "pbts": "bin/pbts" + }, + "engines": { + "node": ">=12.0.0" + }, + "peerDependencies": { + "protobufjs": "^7.0.0" + } + }, + "node_modules/protobufjs-cli/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/protobufjs-cli/node_modules/brace-expansion": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz", + "integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/protobufjs-cli/node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/protobufjs-cli/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/protobufjs-cli/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/protobufjs-cli/node_modules/glob": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/glob/-/glob-8.1.0.tgz", + "integrity": "sha512-r8hpEjiQEYlF2QU0df3dS+nxxSIreXQS1qRhMJM0Q5NDdR386C7jb7Hwwod8Fgiuex+k0GFjgft18yvxm5XoCQ==", + "dev": true, + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^5.0.1", + "once": "^1.3.0" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/protobufjs-cli/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/protobufjs-cli/node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dev": true, + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/protobufjs-cli/node_modules/minimatch": { + "version": "5.1.6", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.6.tgz", + "integrity": "sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==", + "dev": true, + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/protobufjs-cli/node_modules/semver": { + "version": "7.5.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", + "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", + "dev": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/protobufjs-cli/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/protobufjs-cli/node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true + }, + "node_modules/psl": { + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/psl/-/psl-1.9.0.tgz", + "integrity": "sha512-E/ZsdU4HLs/68gYzgGTkMicWTLPdAftJLfJFlLUAAKZGkStNU72sZjT66SnMDVOfOWY/YAoiD7Jxa9iHvngcag==", + "dev": true + }, + "node_modules/punycode": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", + "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/pure-rand": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/pure-rand/-/pure-rand-6.0.2.tgz", + "integrity": "sha512-6Yg0ekpKICSjPswYOuC5sku/TSWaRYlA0qsXqJgM/d/4pLPHPuTxK7Nbf7jFKzAeedUhR8C7K9Uv63FBsSo8xQ==", + "dev": true, + "funding": [ + { + "type": "individual", + "url": "https://github.com/sponsors/dubzzz" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/fast-check" + } + ] + }, + "node_modules/querystringify": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/querystringify/-/querystringify-2.2.0.tgz", + "integrity": "sha512-FIqgj2EUvTa7R50u0rGsyTftzjYmv/a3hO345bZNrqabNqjtgiDMgmo4mkUjd+nzU5oF3dClKqFIPUKybUyqoQ==", + "dev": true + }, + "node_modules/react-is": { + "version": "16.13.1", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz", + "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==", + "dev": true + }, + "node_modules/regenerate": { + "version": "1.4.2", + "resolved": "https://registry.npmjs.org/regenerate/-/regenerate-1.4.2.tgz", + "integrity": "sha512-zrceR/XhGYU/d/opr2EKO7aRHUeiBI8qjtfHqADTwZd6Szfy16la6kqD0MIUs5z5hx6AaKa+PixpPrR289+I0A==", + "dev": true + }, + "node_modules/regenerate-unicode-properties": { + "version": "10.1.1", + "resolved": "https://registry.npmjs.org/regenerate-unicode-properties/-/regenerate-unicode-properties-10.1.1.tgz", + "integrity": "sha512-X007RyZLsCJVVrjgEFVpLUTZwyOZk3oiL75ZcuYjlIWd6rNJtOjkBwQc5AsRrpbKVkxN6sklw/k/9m2jJYOf8Q==", + "dev": true, + "dependencies": { + "regenerate": "^1.4.2" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/regenerator-transform": { + "version": "0.15.2", + "resolved": "https://registry.npmjs.org/regenerator-transform/-/regenerator-transform-0.15.2.tgz", + "integrity": "sha512-hfMp2BoF0qOk3uc5V20ALGDS2ddjQaLrdl7xrGXvAIow7qeWRM2VA2HuCHkUKk9slq3VwEwLNK3DFBqDfPGYtg==", + "dev": true, + "dependencies": { + "@babel/runtime": "^7.8.4" + } + }, + "node_modules/regexpu-core": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/regexpu-core/-/regexpu-core-5.3.2.tgz", + "integrity": "sha512-RAM5FlZz+Lhmo7db9L298p2vHP5ZywrVXmVXpmAD9GuL5MPH6t9ROw1iA/wfHkQ76Qe7AaPF0nGuim96/IrQMQ==", + "dev": true, + "dependencies": { + "@babel/regjsgen": "^0.8.0", + "regenerate": "^1.4.2", + "regenerate-unicode-properties": "^10.1.0", + "regjsparser": "^0.9.1", + "unicode-match-property-ecmascript": "^2.0.0", + "unicode-match-property-value-ecmascript": "^2.1.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/regjsparser": { + "version": "0.9.1", + "resolved": "https://registry.npmjs.org/regjsparser/-/regjsparser-0.9.1.tgz", + "integrity": "sha512-dQUtn90WanSNl+7mQKcXAgZxvUe7Z0SqXlgzv0za4LwiUhyzBC58yQO3liFoUgu8GiJVInAhJjkj1N0EtQ5nkQ==", + "dev": true, + "dependencies": { + "jsesc": "~0.5.0" + }, + "bin": { + "regjsparser": "bin/parser" + } + }, + "node_modules/regjsparser/node_modules/jsesc": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-0.5.0.tgz", + "integrity": "sha512-uZz5UnB7u4T9LvwmFqXii7pZSouaRPorGs5who1Ip7VO0wxanFvBL7GkM6dTHlgX+jhBApRetaWpnDabOeTcnA==", + "dev": true, + "bin": { + "jsesc": "bin/jsesc" + } + }, + "node_modules/require-directory": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", + "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/requires-port": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/requires-port/-/requires-port-1.0.0.tgz", + "integrity": "sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ==", + "dev": true + }, + "node_modules/requizzle": { + "version": "0.2.4", + "resolved": "https://registry.npmjs.org/requizzle/-/requizzle-0.2.4.tgz", + "integrity": "sha512-JRrFk1D4OQ4SqovXOgdav+K8EAhSB/LJZqCz8tbX0KObcdeM15Ss59ozWMBWmmINMagCwmqn4ZNryUGpBsl6Jw==", + "dev": true, + "dependencies": { + "lodash": "^4.17.21" + } + }, + "node_modules/resolve": { + "version": "1.22.2", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.2.tgz", + "integrity": "sha512-Sb+mjNHOULsBv818T40qSPeRiuWLyaGMa5ewydRLFimneixmVy2zdivRl+AF6jaYPC8ERxGDmFSiqui6SfPd+g==", + "dev": true, + "dependencies": { + "is-core-module": "^2.11.0", + "path-parse": "^1.0.7", + "supports-preserve-symlinks-flag": "^1.0.0" + }, + "bin": { + "resolve": "bin/resolve" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/resolve-cwd": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/resolve-cwd/-/resolve-cwd-3.0.0.tgz", + "integrity": "sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg==", + "dev": true, + "dependencies": { + "resolve-from": "^5.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/resolve-from": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", + "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/resolve.exports": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/resolve.exports/-/resolve.exports-2.0.2.tgz", + "integrity": "sha512-X2UW6Nw3n/aMgDVy+0rSqgHlv39WZAlZrXCdnbyEiKm17DSqHX4MmQMaST3FbeWR5FTuRcUwYAziZajji0Y7mg==", + "dev": true, + "engines": { + "node": ">=10" + } + }, + "node_modules/rollup": { + "version": "2.79.2", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-2.79.2.tgz", + "integrity": "sha512-fS6iqSPZDs3dr/y7Od6y5nha8dW1YnbgtsyotCVvoFGKbERG++CVRFv1meyGDE1SNItQA8BrnCw7ScdAhRJ3XQ==", + "dev": true, + "bin": { + "rollup": "dist/bin/rollup" + }, + "engines": { + "node": ">=10.0.0" + }, + "optionalDependencies": { + "fsevents": "~2.3.2" + } + }, + "node_modules/rollup-plugin-typescript2": { + "version": "0.32.1", + "resolved": "https://registry.npmjs.org/rollup-plugin-typescript2/-/rollup-plugin-typescript2-0.32.1.tgz", + "integrity": "sha512-RanO8bp1WbeMv0bVlgcbsFNCn+Y3rX7wF97SQLDxf0fMLsg0B/QFF005t4AsGUcDgF3aKJHoqt4JF2xVaABeKw==", + "dev": true, + "dependencies": { + "@rollup/pluginutils": "^4.1.2", + "find-cache-dir": "^3.3.2", + "fs-extra": "^10.0.0", + "resolve": "^1.20.0", + "tslib": "^2.4.0" + }, + "peerDependencies": { + "rollup": ">=1.26.3", + "typescript": ">=2.4.0" + } + }, + "node_modules/rollup-plugin-typescript2/node_modules/@rollup/pluginutils": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/@rollup/pluginutils/-/pluginutils-4.2.1.tgz", + "integrity": "sha512-iKnFXr7NkdZAIHiIWE+BX5ULi/ucVFYWD6TbAV+rZctiRTY2PL6tsIKhoIOaoskiWAkgu+VsbXgUVDNLHf+InQ==", + "dev": true, + "dependencies": { + "estree-walker": "^2.0.1", + "picomatch": "^2.2.2" + }, + "engines": { + "node": ">= 8.0.0" + } + }, + "node_modules/rollup-plugin-typescript2/node_modules/estree-walker": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-2.0.2.tgz", + "integrity": "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==", + "dev": true + }, + "node_modules/safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" + }, + "node_modules/safer-buffer": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", + "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" + }, + "node_modules/saxes": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/saxes/-/saxes-6.0.0.tgz", + "integrity": "sha512-xAg7SOnEhrm5zI3puOOKyy1OMcMlIJZYNJY7xLBwSze0UjhPLnWfj2GF2EpT0jmzaJKIWKHLsaSSajf35bcYnA==", + "dev": true, + "dependencies": { + "xmlchars": "^2.2.0" + }, + "engines": { + "node": ">=v12.22.7" + } + }, + "node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/shebang-command": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "dev": true, + "dependencies": { + "shebang-regex": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/signal-exit": { + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", + "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", + "dev": true + }, + "node_modules/sisteransi": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/sisteransi/-/sisteransi-1.0.5.tgz", + "integrity": "sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==", + "dev": true + }, + "node_modules/slash": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", + "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/source-map-support": { + "version": "0.5.21", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", + "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", + "dev": true, + "dependencies": { + "buffer-from": "^1.0.0", + "source-map": "^0.6.0" + } + }, + "node_modules/sourcemap-codec": { + "version": "1.4.8", + "resolved": "https://registry.npmjs.org/sourcemap-codec/-/sourcemap-codec-1.4.8.tgz", + "integrity": "sha512-9NykojV5Uih4lgo5So5dtw+f0JgJX30KCNI8gwhz2J9A15wD0Ml6tjHKwf6fTSa6fAdVBdZeNOs9eJ71qCk8vA==", + "dev": true + }, + "node_modules/sprintf-js": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", + "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==", + "dev": true + }, + "node_modules/stack-utils": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/stack-utils/-/stack-utils-2.0.6.tgz", + "integrity": "sha512-XlkWvfIm6RmsWtNJx+uqtKLS8eqFbxUg0ZzLXqY0caEy9l7hruX8IpiDnjsLavoBgqCCR71TqWO8MaXYheJ3RQ==", + "dev": true, + "dependencies": { + "escape-string-regexp": "^2.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/stack-utils/node_modules/escape-string-regexp": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz", + "integrity": "sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/string-length": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/string-length/-/string-length-4.0.2.tgz", + "integrity": "sha512-+l6rNN5fYHNhZZy41RXsYptCjA2Igmq4EG7kZAYFQI1E1VTXarr6ZPXBg6eq7Y6eK4FEhY6AJlyuFIb/v/S0VQ==", + "dev": true, + "dependencies": { + "char-regex": "^1.0.2", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dev": true, + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dev": true, + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-ansi/node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-bom": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-4.0.0.tgz", + "integrity": "sha512-3xurFv5tEgii33Zi8Jtp55wEIILR9eh34FAW00PZf+JnSsTmV/ioewSgQl97JHvgjoRGwPShsWm+IdrxB35d0w==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-final-newline": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz", + "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/strip-json-comments": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", + "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", + "dev": true, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dev": true, + "dependencies": { + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/supports-preserve-symlinks-flag": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", + "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", + "dev": true, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/symbol-tree": { + "version": "3.2.4", + "resolved": "https://registry.npmjs.org/symbol-tree/-/symbol-tree-3.2.4.tgz", + "integrity": "sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw==", + "dev": true + }, + "node_modules/test-exclude": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/test-exclude/-/test-exclude-6.0.0.tgz", + "integrity": "sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w==", + "dev": true, + "dependencies": { + "@istanbuljs/schema": "^0.1.2", + "glob": "^7.1.4", + "minimatch": "^3.0.4" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/tmp": { + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.2.5.tgz", + "integrity": "sha512-voyz6MApa1rQGUxT3E+BK7/ROe8itEx7vD8/HEvt4xwXucvQ5G5oeEiHkmHZJuBO21RpOf+YYm9MOivj709jow==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=14.14" + } + }, + "node_modules/tmpl": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/tmpl/-/tmpl-1.0.5.tgz", + "integrity": "sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw==", + "dev": true + }, + "node_modules/to-regex-range": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "dev": true, + "dependencies": { + "is-number": "^7.0.0" + }, + "engines": { + "node": ">=8.0" + } + }, + "node_modules/tough-cookie": { + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-4.1.3.tgz", + "integrity": "sha512-aX/y5pVRkfRnfmuX+OdbSdXvPe6ieKX/G2s7e98f4poJHnqH3281gDPm/metm6E/WRamfx7WC4HUqkWHfQHprw==", + "dev": true, + "dependencies": { + "psl": "^1.1.33", + "punycode": "^2.1.1", + "universalify": "^0.2.0", + "url-parse": "^1.5.3" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/tough-cookie/node_modules/universalify": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.2.0.tgz", + "integrity": "sha512-CJ1QgKmNg3CwvAv/kOFmtnEN05f0D/cn9QntgNOQlQF9dgvVTHj3t+8JPdjqawCHk7V/KA+fbUqzZ9XWhcqPUg==", + "dev": true, + "engines": { + "node": ">= 4.0.0" + } + }, + "node_modules/tr46": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-3.0.0.tgz", + "integrity": "sha512-l7FvfAHlcmulp8kr+flpQZmVwtu7nfRV7NZujtN0OqES8EL4O4e0qqzL0DC5gAvx/ZC/9lk6rhcUwYvkBnBnYA==", + "dev": true, + "dependencies": { + "punycode": "^2.1.1" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/ts-jest": { + "version": "29.1.1", + "resolved": "https://registry.npmjs.org/ts-jest/-/ts-jest-29.1.1.tgz", + "integrity": "sha512-D6xjnnbP17cC85nliwGiL+tpoKN0StpgE0TeOjXQTU6MVCfsB4v7aW05CgQ/1OywGb0x/oy9hHFnN+sczTiRaA==", + "dev": true, + "dependencies": { + "bs-logger": "0.x", + "fast-json-stable-stringify": "2.x", + "jest-util": "^29.0.0", + "json5": "^2.2.3", + "lodash.memoize": "4.x", + "make-error": "1.x", + "semver": "^7.5.3", + "yargs-parser": "^21.0.1" + }, + "bin": { + "ts-jest": "cli.js" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "@babel/core": ">=7.0.0-beta.0 <8", + "@jest/types": "^29.0.0", + "babel-jest": "^29.0.0", + "jest": "^29.0.0", + "typescript": ">=4.3 <6" + }, + "peerDependenciesMeta": { + "@babel/core": { + "optional": true + }, + "@jest/types": { + "optional": true + }, + "babel-jest": { + "optional": true + }, + "esbuild": { + "optional": true + } + } + }, + "node_modules/ts-jest/node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dev": true, + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/ts-jest/node_modules/semver": { + "version": "7.5.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", + "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", + "dev": true, + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/ts-jest/node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true + }, + "node_modules/ts-node": { + "version": "8.10.2", + "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-8.10.2.tgz", + "integrity": "sha512-ISJJGgkIpDdBhWVu3jufsWpK3Rzo7bdiIXJjQc0ynKxVOVcg2oIrf2H2cejminGrptVc6q6/uynAHNCuWGbpVA==", + "dev": true, + "dependencies": { + "arg": "^4.1.0", + "diff": "^4.0.1", + "make-error": "^1.1.1", + "source-map-support": "^0.5.17", + "yn": "3.1.1" + }, + "bin": { + "ts-node": "dist/bin.js", + "ts-node-script": "dist/bin-script.js", + "ts-node-transpile-only": "dist/bin-transpile.js", + "ts-script": "dist/bin-script-deprecated.js" + }, + "engines": { + "node": ">=6.0.0" + }, + "peerDependencies": { + "typescript": ">=2.7" + } + }, + "node_modules/tslib": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.0.tgz", + "integrity": "sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ==", + "dev": true + }, + "node_modules/type-check": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.3.2.tgz", + "integrity": "sha512-ZCmOJdvOWDBYJlzAoFkC+Q0+bUyEOS1ltgp1MGU03fqHG+dbi9tBFU2Rd9QKiDZFAYrhPh2JUf7rZRIuHRKtOg==", + "dev": true, + "dependencies": { + "prelude-ls": "~1.1.2" + }, + "engines": { + "node": ">= 0.8.0" + } + }, + "node_modules/type-detect": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz", + "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/type-fest": { + "version": "0.21.3", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz", + "integrity": "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/typescript": { + "version": "4.6.4", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.6.4.tgz", + "integrity": "sha512-9ia/jWHIEbo49HfjrLGfKbZSuWo9iTMwXO+Ca3pRsSpbsMbc7/IU8NKdCZVRRBafVPGnoJeFL76ZOAA84I9fEg==", + "dev": true, + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=4.2.0" + } + }, + "node_modules/uc.micro": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/uc.micro/-/uc.micro-1.0.6.tgz", + "integrity": "sha512-8Y75pvTYkLJW2hWQHXxoqRgV7qb9B+9vFEtidML+7koHUFapnVJAZ6cKs+Qjz5Aw3aZWHMC6u0wJE3At+nSGwA==", + "dev": true + }, + "node_modules/uglify-js": { + "version": "3.17.4", + "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.17.4.tgz", + "integrity": "sha512-T9q82TJI9e/C1TAxYvfb16xO120tMVFZrGA3f9/P4424DNu6ypK103y0GPFVa17yotwSyZW5iYXgjYHkGrJW/g==", + "dev": true, + "bin": { + "uglifyjs": "bin/uglifyjs" + }, + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/underscore": { + "version": "1.13.6", + "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.13.6.tgz", + "integrity": "sha512-+A5Sja4HP1M08MaXya7p5LvjuM7K6q/2EaC0+iovj/wOcMsTzMvDFbasi/oSapiwOlt252IqsKqPjCl7huKS0A==", + "dev": true + }, + "node_modules/undici-types": { + "version": "5.26.5", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz", + "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==", + "dev": true + }, + "node_modules/unicode-canonical-property-names-ecmascript": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-2.0.0.tgz", + "integrity": "sha512-yY5PpDlfVIU5+y/BSCxAJRBIS1Zc2dDG3Ujq+sR0U+JjUevW2JhocOF+soROYDSaAezOzOKuyyixhD6mBknSmQ==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/unicode-match-property-ecmascript": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/unicode-match-property-ecmascript/-/unicode-match-property-ecmascript-2.0.0.tgz", + "integrity": "sha512-5kaZCrbp5mmbz5ulBkDkbY0SsPOjKqVS35VpL9ulMPfSl0J0Xsm+9Evphv9CoIZFwre7aJoa94AY6seMKGVN5Q==", + "dev": true, + "dependencies": { + "unicode-canonical-property-names-ecmascript": "^2.0.0", + "unicode-property-aliases-ecmascript": "^2.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/unicode-match-property-value-ecmascript": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/unicode-match-property-value-ecmascript/-/unicode-match-property-value-ecmascript-2.1.0.tgz", + "integrity": "sha512-qxkjQt6qjg/mYscYMC0XKRn3Rh0wFPlfxB0xkt9CfyTvpX1Ra0+rAmdX2QyAobptSEvuy4RtpPRui6XkV+8wjA==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/unicode-property-aliases-ecmascript": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/unicode-property-aliases-ecmascript/-/unicode-property-aliases-ecmascript-2.1.0.tgz", + "integrity": "sha512-6t3foTQI9qne+OZoVQB/8x8rk2k1eVy1gRXhV3oFQ5T6R1dqQ1xtin3XqSlx3+ATBkliTaR/hHyJBm+LVPNM8w==", + "dev": true, + "engines": { + "node": ">=4" + } + }, + "node_modules/universalify": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.0.tgz", + "integrity": "sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ==", + "dev": true, + "engines": { + "node": ">= 10.0.0" + } + }, + "node_modules/update-browserslist-db": { + "version": "1.0.13", + "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.13.tgz", + "integrity": "sha512-xebP81SNcPuNpPP3uzeW1NYXxI3rxyJzF3pD6sH4jE7o/IX+WtSpwnVU+qIsDPyk0d3hmFQ7mjqc6AtV604hbg==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "dependencies": { + "escalade": "^3.1.1", + "picocolors": "^1.0.0" + }, + "bin": { + "update-browserslist-db": "cli.js" + }, + "peerDependencies": { + "browserslist": ">= 4.21.0" + } + }, + "node_modules/url-parse": { + "version": "1.5.10", + "resolved": "https://registry.npmjs.org/url-parse/-/url-parse-1.5.10.tgz", + "integrity": "sha512-WypcfiRhfeUP9vvF0j6rw0J3hrWrw6iZv3+22h6iRMJ/8z1Tj6XfLP4DsUix5MhMPnXpiHDoKyoZ/bdCkwBCiQ==", + "dev": true, + "dependencies": { + "querystringify": "^2.1.1", + "requires-port": "^1.0.0" + } + }, + "node_modules/v8-to-istanbul": { + "version": "9.1.0", + "resolved": "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-9.1.0.tgz", + "integrity": "sha512-6z3GW9x8G1gd+JIIgQQQxXuiJtCXeAjp6RaPEPLv62mH3iPHPxV6W3robxtCzNErRo6ZwTmzWhsbNvjyEBKzKA==", + "dev": true, + "dependencies": { + "@jridgewell/trace-mapping": "^0.3.12", + "@types/istanbul-lib-coverage": "^2.0.1", + "convert-source-map": "^1.6.0" + }, + "engines": { + "node": ">=10.12.0" + } + }, + "node_modules/v8-to-istanbul/node_modules/convert-source-map": { + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.9.0.tgz", + "integrity": "sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A==", + "dev": true + }, + "node_modules/w3c-xmlserializer": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/w3c-xmlserializer/-/w3c-xmlserializer-4.0.0.tgz", + "integrity": "sha512-d+BFHzbiCx6zGfz0HyQ6Rg69w9k19nviJspaj4yNscGjrHu94sVP+aRm75yEbCh+r2/yR+7q6hux9LVtbuTGBw==", + "dev": true, + "dependencies": { + "xml-name-validator": "^4.0.0" + }, + "engines": { + "node": ">=14" + } + }, + "node_modules/walker": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/walker/-/walker-1.0.8.tgz", + "integrity": "sha512-ts/8E8l5b7kY0vlWLewOkDXMmPdLcVV4GmOQLyxuSswIJsweeFZtAsMF7k1Nszz+TYBQrlYRmzOnr398y1JemQ==", + "dev": true, + "dependencies": { + "makeerror": "1.0.12" + } + }, + "node_modules/webidl-conversions": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-7.0.0.tgz", + "integrity": "sha512-VwddBukDzu71offAQR975unBIGqfKZpM+8ZX6ySk8nYhVoo5CYaZyzt3YBvYtRtO+aoGlqxPg/B87NGVZ/fu6g==", + "dev": true, + "engines": { + "node": ">=12" + } + }, + "node_modules/websocket-driver": { + "version": "0.7.4", + "resolved": "https://registry.npmjs.org/websocket-driver/-/websocket-driver-0.7.4.tgz", + "integrity": "sha512-b17KeDIQVjvb0ssuSDF2cYXSg2iztliJ4B9WdsuB6J952qCPKmnVq4DyW5motImXHDC1cBT/1UezrJVsKw5zjg==", + "dependencies": { + "http-parser-js": ">=0.5.1", + "safe-buffer": ">=5.1.0", + "websocket-extensions": ">=0.1.1" + }, + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/websocket-extensions": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/websocket-extensions/-/websocket-extensions-0.1.4.tgz", + "integrity": "sha512-OqedPIGOfsDlo31UNwYbCFMSaO9m9G/0faIHj5/dZFDMFqPTcx6UwqyOy3COEaEOg/9VsGIpdqn62W5KhoKSpg==", + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/whatwg-encoding": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/whatwg-encoding/-/whatwg-encoding-2.0.0.tgz", + "integrity": "sha512-p41ogyeMUrw3jWclHWTQg1k05DSVXPLcVxRTYsXUk+ZooOCZLcoYgPZ/HL/D/N+uQPOtcp1me1WhBEaX02mhWg==", + "dev": true, + "dependencies": { + "iconv-lite": "0.6.3" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/whatwg-mimetype": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/whatwg-mimetype/-/whatwg-mimetype-3.0.0.tgz", + "integrity": "sha512-nt+N2dzIutVRxARx1nghPKGv1xHikU7HKdfafKkLNLindmPU/ch3U31NOCGGA/dmPcmb1VlofO0vnKAcsm0o/Q==", + "dev": true, + "engines": { + "node": ">=12" + } + }, + "node_modules/whatwg-url": { + "version": "11.0.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-11.0.0.tgz", + "integrity": "sha512-RKT8HExMpoYx4igMiVMY83lN6UeITKJlBQ+vR/8ZJ8OCdSiN3RwCq+9gH0+Xzj0+5IrM6i4j/6LuvzbZIQgEcQ==", + "dev": true, + "dependencies": { + "tr46": "^3.0.0", + "webidl-conversions": "^7.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dev": true, + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/word-wrap": { + "version": "1.2.5", + "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz", + "integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/wrap-ansi": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", + "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", + "dev": true, + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, + "node_modules/wrap-ansi/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/wrap-ansi/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/wrap-ansi/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "node_modules/wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", + "dev": true + }, + "node_modules/write-file-atomic": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-4.0.2.tgz", + "integrity": "sha512-7KxauUdBmSdWnmpaGFg+ppNjKF8uNLry8LyzjauQDOVONfFLNKrKvQOxZ/VuTIcS/gge/YNahf5RIIQWTSarlg==", + "dev": true, + "dependencies": { + "imurmurhash": "^0.1.4", + "signal-exit": "^3.0.7" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || >=16.0.0" + } + }, + "node_modules/ws": { + "version": "8.17.1", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.17.1.tgz", + "integrity": "sha512-6XQFvXTkbfUOZOKKILFG1PDK2NDQs4azKQl26T0YS5CxqWLgXajbPZ+h4gZekJyRqFU8pvnbAbbs/3TgRPy+GQ==", + "dev": true, + "engines": { + "node": ">=10.0.0" + }, + "peerDependencies": { + "bufferutil": "^4.0.1", + "utf-8-validate": ">=5.0.2" + }, + "peerDependenciesMeta": { + "bufferutil": { + "optional": true + }, + "utf-8-validate": { + "optional": true + } + } + }, + "node_modules/xml-name-validator": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/xml-name-validator/-/xml-name-validator-4.0.0.tgz", + "integrity": "sha512-ICP2e+jsHvAj2E2lIHxa5tjXRlKDJo4IdvPvCXbXQGdzSfmSpNVyIKMvoZHjDY9DP0zV17iI85o90vRFXNccRw==", + "dev": true, + "engines": { + "node": ">=12" + } + }, + "node_modules/xmlchars": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/xmlchars/-/xmlchars-2.2.0.tgz", + "integrity": "sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw==", + "dev": true + }, + "node_modules/xmlcreate": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/xmlcreate/-/xmlcreate-2.0.4.tgz", + "integrity": "sha512-nquOebG4sngPmGPICTS5EnxqhKbCmz5Ox5hsszI2T6U5qdrJizBc+0ilYSEjTSzU0yZcmvppztXe/5Al5fUwdg==", + "dev": true + }, + "node_modules/y18n": { + "version": "5.0.8", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", + "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", + "dev": true, + "engines": { + "node": ">=10" + } + }, + "node_modules/yallist": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", + "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", + "dev": true + }, + "node_modules/yargs": { + "version": "17.7.2", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz", + "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==", + "dev": true, + "dependencies": { + "cliui": "^8.0.1", + "escalade": "^3.1.1", + "get-caller-file": "^2.0.5", + "require-directory": "^2.1.1", + "string-width": "^4.2.3", + "y18n": "^5.0.5", + "yargs-parser": "^21.1.1" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/yargs-parser": { + "version": "21.1.1", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", + "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", + "dev": true, + "engines": { + "node": ">=12" + } + }, + "node_modules/yn": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz", + "integrity": "sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==", + "dev": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/yocto-queue": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", + "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", + "dev": true, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } } - ] - }, - "node_modules/querystringify": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/querystringify/-/querystringify-2.2.0.tgz", - "integrity": "sha512-FIqgj2EUvTa7R50u0rGsyTftzjYmv/a3hO345bZNrqabNqjtgiDMgmo4mkUjd+nzU5oF3dClKqFIPUKybUyqoQ==", - "dev": true - }, - "node_modules/react-is": { - "version": "16.13.1", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz", - "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==", - "dev": true - }, - "node_modules/regenerate": { - "version": "1.4.2", - "resolved": "https://registry.npmjs.org/regenerate/-/regenerate-1.4.2.tgz", - "integrity": "sha512-zrceR/XhGYU/d/opr2EKO7aRHUeiBI8qjtfHqADTwZd6Szfy16la6kqD0MIUs5z5hx6AaKa+PixpPrR289+I0A==", - "dev": true - }, - "node_modules/regenerate-unicode-properties": { - "version": "10.1.1", - "resolved": "https://registry.npmjs.org/regenerate-unicode-properties/-/regenerate-unicode-properties-10.1.1.tgz", - "integrity": "sha512-X007RyZLsCJVVrjgEFVpLUTZwyOZk3oiL75ZcuYjlIWd6rNJtOjkBwQc5AsRrpbKVkxN6sklw/k/9m2jJYOf8Q==", - "dev": true, - "dependencies": { - "regenerate": "^1.4.2" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/regenerator-transform": { - "version": "0.15.2", - "resolved": "https://registry.npmjs.org/regenerator-transform/-/regenerator-transform-0.15.2.tgz", - "integrity": "sha512-hfMp2BoF0qOk3uc5V20ALGDS2ddjQaLrdl7xrGXvAIow7qeWRM2VA2HuCHkUKk9slq3VwEwLNK3DFBqDfPGYtg==", - "dev": true, - "dependencies": { - "@babel/runtime": "^7.8.4" - } - }, - "node_modules/regexpu-core": { - "version": "5.3.2", - "resolved": "https://registry.npmjs.org/regexpu-core/-/regexpu-core-5.3.2.tgz", - "integrity": "sha512-RAM5FlZz+Lhmo7db9L298p2vHP5ZywrVXmVXpmAD9GuL5MPH6t9ROw1iA/wfHkQ76Qe7AaPF0nGuim96/IrQMQ==", - "dev": true, - "dependencies": { - "@babel/regjsgen": "^0.8.0", - "regenerate": "^1.4.2", - "regenerate-unicode-properties": "^10.1.0", - "regjsparser": "^0.9.1", - "unicode-match-property-ecmascript": "^2.0.0", - "unicode-match-property-value-ecmascript": "^2.1.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/regjsparser": { - "version": "0.9.1", - "resolved": "https://registry.npmjs.org/regjsparser/-/regjsparser-0.9.1.tgz", - "integrity": "sha512-dQUtn90WanSNl+7mQKcXAgZxvUe7Z0SqXlgzv0za4LwiUhyzBC58yQO3liFoUgu8GiJVInAhJjkj1N0EtQ5nkQ==", - "dev": true, - "dependencies": { - "jsesc": "~0.5.0" - }, - "bin": { - "regjsparser": "bin/parser" - } - }, - "node_modules/regjsparser/node_modules/jsesc": { - "version": "0.5.0", - "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-0.5.0.tgz", - "integrity": "sha512-uZz5UnB7u4T9LvwmFqXii7pZSouaRPorGs5who1Ip7VO0wxanFvBL7GkM6dTHlgX+jhBApRetaWpnDabOeTcnA==", - "dev": true, - "bin": { - "jsesc": "bin/jsesc" - } - }, - "node_modules/require-directory": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", - "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/requires-port": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/requires-port/-/requires-port-1.0.0.tgz", - "integrity": "sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ==", - "dev": true - }, - "node_modules/requizzle": { - "version": "0.2.4", - "resolved": "https://registry.npmjs.org/requizzle/-/requizzle-0.2.4.tgz", - "integrity": "sha512-JRrFk1D4OQ4SqovXOgdav+K8EAhSB/LJZqCz8tbX0KObcdeM15Ss59ozWMBWmmINMagCwmqn4ZNryUGpBsl6Jw==", - "dev": true, - "dependencies": { - "lodash": "^4.17.21" - } - }, - "node_modules/resolve": { - "version": "1.22.2", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.2.tgz", - "integrity": "sha512-Sb+mjNHOULsBv818T40qSPeRiuWLyaGMa5ewydRLFimneixmVy2zdivRl+AF6jaYPC8ERxGDmFSiqui6SfPd+g==", - "dev": true, - "dependencies": { - "is-core-module": "^2.11.0", - "path-parse": "^1.0.7", - "supports-preserve-symlinks-flag": "^1.0.0" - }, - "bin": { - "resolve": "bin/resolve" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/resolve-cwd": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/resolve-cwd/-/resolve-cwd-3.0.0.tgz", - "integrity": "sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg==", - "dev": true, - "dependencies": { - "resolve-from": "^5.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/resolve-from": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", - "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/resolve.exports": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/resolve.exports/-/resolve.exports-2.0.2.tgz", - "integrity": "sha512-X2UW6Nw3n/aMgDVy+0rSqgHlv39WZAlZrXCdnbyEiKm17DSqHX4MmQMaST3FbeWR5FTuRcUwYAziZajji0Y7mg==", - "dev": true, - "engines": { - "node": ">=10" - } - }, - "node_modules/rollup": { - "version": "2.79.2", - "resolved": "https://registry.npmjs.org/rollup/-/rollup-2.79.2.tgz", - "integrity": "sha512-fS6iqSPZDs3dr/y7Od6y5nha8dW1YnbgtsyotCVvoFGKbERG++CVRFv1meyGDE1SNItQA8BrnCw7ScdAhRJ3XQ==", - "dev": true, - "bin": { - "rollup": "dist/bin/rollup" - }, - "engines": { - "node": ">=10.0.0" - }, - "optionalDependencies": { - "fsevents": "~2.3.2" - } - }, - "node_modules/rollup-plugin-typescript2": { - "version": "0.32.1", - "resolved": "https://registry.npmjs.org/rollup-plugin-typescript2/-/rollup-plugin-typescript2-0.32.1.tgz", - "integrity": "sha512-RanO8bp1WbeMv0bVlgcbsFNCn+Y3rX7wF97SQLDxf0fMLsg0B/QFF005t4AsGUcDgF3aKJHoqt4JF2xVaABeKw==", - "dev": true, - "dependencies": { - "@rollup/pluginutils": "^4.1.2", - "find-cache-dir": "^3.3.2", - "fs-extra": "^10.0.0", - "resolve": "^1.20.0", - "tslib": "^2.4.0" - }, - "peerDependencies": { - "rollup": ">=1.26.3", - "typescript": ">=2.4.0" - } - }, - "node_modules/rollup-plugin-typescript2/node_modules/@rollup/pluginutils": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/@rollup/pluginutils/-/pluginutils-4.2.1.tgz", - "integrity": "sha512-iKnFXr7NkdZAIHiIWE+BX5ULi/ucVFYWD6TbAV+rZctiRTY2PL6tsIKhoIOaoskiWAkgu+VsbXgUVDNLHf+InQ==", - "dev": true, - "dependencies": { - "estree-walker": "^2.0.1", - "picomatch": "^2.2.2" - }, - "engines": { - "node": ">= 8.0.0" - } - }, - "node_modules/rollup-plugin-typescript2/node_modules/estree-walker": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-2.0.2.tgz", - "integrity": "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==", - "dev": true - }, - "node_modules/safe-buffer": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", - "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" - }, - "node_modules/safer-buffer": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", - "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" - }, - "node_modules/saxes": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/saxes/-/saxes-6.0.0.tgz", - "integrity": "sha512-xAg7SOnEhrm5zI3puOOKyy1OMcMlIJZYNJY7xLBwSze0UjhPLnWfj2GF2EpT0jmzaJKIWKHLsaSSajf35bcYnA==", - "dev": true, - "dependencies": { - "xmlchars": "^2.2.0" - }, - "engines": { - "node": ">=v12.22.7" - } - }, - "node_modules/semver": { - "version": "6.3.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", - "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", - "dev": true, - "bin": { - "semver": "bin/semver.js" - } - }, - "node_modules/shebang-command": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", - "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", - "dev": true, - "dependencies": { - "shebang-regex": "^3.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/shebang-regex": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", - "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/signal-exit": { - "version": "3.0.7", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", - "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", - "dev": true - }, - "node_modules/sisteransi": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/sisteransi/-/sisteransi-1.0.5.tgz", - "integrity": "sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==", - "dev": true - }, - "node_modules/slash": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", - "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/source-map-support": { - "version": "0.5.21", - "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", - "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", - "dev": true, - "dependencies": { - "buffer-from": "^1.0.0", - "source-map": "^0.6.0" - } }, - "node_modules/sourcemap-codec": { - "version": "1.4.8", - "resolved": "https://registry.npmjs.org/sourcemap-codec/-/sourcemap-codec-1.4.8.tgz", - "integrity": "sha512-9NykojV5Uih4lgo5So5dtw+f0JgJX30KCNI8gwhz2J9A15wD0Ml6tjHKwf6fTSa6fAdVBdZeNOs9eJ71qCk8vA==", - "dev": true - }, - "node_modules/sprintf-js": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", - "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==", - "dev": true - }, - "node_modules/stack-utils": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/stack-utils/-/stack-utils-2.0.6.tgz", - "integrity": "sha512-XlkWvfIm6RmsWtNJx+uqtKLS8eqFbxUg0ZzLXqY0caEy9l7hruX8IpiDnjsLavoBgqCCR71TqWO8MaXYheJ3RQ==", - "dev": true, - "dependencies": { - "escape-string-regexp": "^2.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/stack-utils/node_modules/escape-string-regexp": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz", - "integrity": "sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/string-length": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/string-length/-/string-length-4.0.2.tgz", - "integrity": "sha512-+l6rNN5fYHNhZZy41RXsYptCjA2Igmq4EG7kZAYFQI1E1VTXarr6ZPXBg6eq7Y6eK4FEhY6AJlyuFIb/v/S0VQ==", - "dev": true, - "dependencies": { - "char-regex": "^1.0.2", - "strip-ansi": "^6.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/string-width": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "dev": true, - "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dev": true, - "dependencies": { - "ansi-regex": "^5.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/strip-ansi/node_modules/ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/strip-bom": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-4.0.0.tgz", - "integrity": "sha512-3xurFv5tEgii33Zi8Jtp55wEIILR9eh34FAW00PZf+JnSsTmV/ioewSgQl97JHvgjoRGwPShsWm+IdrxB35d0w==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/strip-final-newline": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz", - "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/strip-json-comments": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", - "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", - "dev": true, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/supports-color": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", - "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", - "dev": true, - "dependencies": { - "has-flag": "^3.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/supports-preserve-symlinks-flag": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", - "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", - "dev": true, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/symbol-tree": { - "version": "3.2.4", - "resolved": "https://registry.npmjs.org/symbol-tree/-/symbol-tree-3.2.4.tgz", - "integrity": "sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw==", - "dev": true - }, - "node_modules/test-exclude": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/test-exclude/-/test-exclude-6.0.0.tgz", - "integrity": "sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w==", - "dev": true, - "dependencies": { - "@istanbuljs/schema": "^0.1.2", - "glob": "^7.1.4", - "minimatch": "^3.0.4" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/tmp": { - "version": "0.2.5", - "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.2.5.tgz", - "integrity": "sha512-voyz6MApa1rQGUxT3E+BK7/ROe8itEx7vD8/HEvt4xwXucvQ5G5oeEiHkmHZJuBO21RpOf+YYm9MOivj709jow==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=14.14" - } - }, - "node_modules/tmpl": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/tmpl/-/tmpl-1.0.5.tgz", - "integrity": "sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw==", - "dev": true - }, - "node_modules/to-regex-range": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", - "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", - "dev": true, - "dependencies": { - "is-number": "^7.0.0" - }, - "engines": { - "node": ">=8.0" - } - }, - "node_modules/tough-cookie": { - "version": "4.1.3", - "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-4.1.3.tgz", - "integrity": "sha512-aX/y5pVRkfRnfmuX+OdbSdXvPe6ieKX/G2s7e98f4poJHnqH3281gDPm/metm6E/WRamfx7WC4HUqkWHfQHprw==", - "dev": true, - "dependencies": { - "psl": "^1.1.33", - "punycode": "^2.1.1", - "universalify": "^0.2.0", - "url-parse": "^1.5.3" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/tough-cookie/node_modules/universalify": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.2.0.tgz", - "integrity": "sha512-CJ1QgKmNg3CwvAv/kOFmtnEN05f0D/cn9QntgNOQlQF9dgvVTHj3t+8JPdjqawCHk7V/KA+fbUqzZ9XWhcqPUg==", - "dev": true, - "engines": { - "node": ">= 4.0.0" - } - }, - "node_modules/tr46": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/tr46/-/tr46-3.0.0.tgz", - "integrity": "sha512-l7FvfAHlcmulp8kr+flpQZmVwtu7nfRV7NZujtN0OqES8EL4O4e0qqzL0DC5gAvx/ZC/9lk6rhcUwYvkBnBnYA==", - "dev": true, - "dependencies": { - "punycode": "^2.1.1" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/ts-jest": { - "version": "29.1.1", - "resolved": "https://registry.npmjs.org/ts-jest/-/ts-jest-29.1.1.tgz", - "integrity": "sha512-D6xjnnbP17cC85nliwGiL+tpoKN0StpgE0TeOjXQTU6MVCfsB4v7aW05CgQ/1OywGb0x/oy9hHFnN+sczTiRaA==", - "dev": true, - "dependencies": { - "bs-logger": "0.x", - "fast-json-stable-stringify": "2.x", - "jest-util": "^29.0.0", - "json5": "^2.2.3", - "lodash.memoize": "4.x", - "make-error": "1.x", - "semver": "^7.5.3", - "yargs-parser": "^21.0.1" - }, - "bin": { - "ts-jest": "cli.js" - }, - "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" - }, - "peerDependencies": { - "@babel/core": ">=7.0.0-beta.0 <8", - "@jest/types": "^29.0.0", - "babel-jest": "^29.0.0", - "jest": "^29.0.0", - "typescript": ">=4.3 <6" - }, - "peerDependenciesMeta": { + "dependencies": { + "@ampproject/remapping": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.2.1.tgz", + "integrity": "sha512-lFMjJTrFL3j7L9yBxwYfCq2k6qqwHyzuUl/XBnif78PWTJYyL/dfowQHWE3sp6U6ZzqWiiIZnpTMO96zhkjwtg==", + "dev": true, + "requires": { + "@jridgewell/gen-mapping": "^0.3.0", + "@jridgewell/trace-mapping": "^0.3.9" + } + }, + "@babel/code-frame": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.27.1.tgz", + "integrity": "sha512-cjQ7ZlQ0Mv3b47hABuTevyTuYN4i+loJKGeV9flcCgIK37cCXRh+L1bd3iBHlynerhQ7BhCkn2BPbQUL+rGqFg==", + "dev": true, + "requires": { + "@babel/helper-validator-identifier": "^7.27.1", + "js-tokens": "^4.0.0", + "picocolors": "^1.1.1" + } + }, + "@babel/compat-data": { + "version": "7.23.5", + "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.23.5.tgz", + "integrity": "sha512-uU27kfDRlhfKl+w1U6vp16IuvSLtjAxdArVXPa9BvLkrr7CYIsxH5adpHObeAGY/41+syctUWOZ140a2Rvkgjw==", + "dev": true + }, "@babel/core": { - "optional": true + "version": "7.22.9", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.22.9.tgz", + "integrity": "sha512-G2EgeufBcYw27U4hhoIwFcgc1XU7TlXJ3mv04oOv1WCuo900U/anZSPzEqNjwdjgffkk2Gs0AN0dW1CKVLcG7w==", + "dev": true, + "requires": { + "@ampproject/remapping": "^2.2.0", + "@babel/code-frame": "^7.22.5", + "@babel/generator": "^7.22.9", + "@babel/helper-compilation-targets": "^7.22.9", + "@babel/helper-module-transforms": "^7.22.9", + "@babel/helpers": "^7.22.6", + "@babel/parser": "^7.22.7", + "@babel/template": "^7.22.5", + "@babel/traverse": "^7.22.8", + "@babel/types": "^7.22.5", + "convert-source-map": "^1.7.0", + "debug": "^4.1.0", + "gensync": "^1.0.0-beta.2", + "json5": "^2.2.2", + "semver": "^6.3.1" + }, + "dependencies": { + "convert-source-map": { + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.9.0.tgz", + "integrity": "sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A==", + "dev": true + } + } + }, + "@babel/generator": { + "version": "7.23.0", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.23.0.tgz", + "integrity": "sha512-lN85QRR+5IbYrMWM6Y4pE/noaQtg4pNiqeNGX60eqOfo6gtEj6uw/JagelB8vVztSd7R6M5n1+PQkDbHbBRU4g==", + "dev": true, + "requires": { + "@babel/types": "^7.23.0", + "@jridgewell/gen-mapping": "^0.3.2", + "@jridgewell/trace-mapping": "^0.3.17", + "jsesc": "^2.5.1" + } + }, + "@babel/helper-annotate-as-pure": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.22.5.tgz", + "integrity": "sha512-LvBTxu8bQSQkcyKOU+a1btnNFQ1dMAd0R6PyW3arXes06F6QLWLIrd681bxRPIXlrMGR3XYnW9JyML7dP3qgxg==", + "dev": true, + "requires": { + "@babel/types": "^7.22.5" + } + }, + "@babel/helper-builder-binary-assignment-operator-visitor": { + "version": "7.22.15", + "resolved": "https://registry.npmjs.org/@babel/helper-builder-binary-assignment-operator-visitor/-/helper-builder-binary-assignment-operator-visitor-7.22.15.tgz", + "integrity": "sha512-QkBXwGgaoC2GtGZRoma6kv7Szfv06khvhFav67ZExau2RaXzy8MpHSMO2PNoP2XtmQphJQRHFfg77Bq731Yizw==", + "dev": true, + "requires": { + "@babel/types": "^7.22.15" + } + }, + "@babel/helper-compilation-targets": { + "version": "7.22.15", + "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.22.15.tgz", + "integrity": "sha512-y6EEzULok0Qvz8yyLkCvVX+02ic+By2UdOhylwUOvOn9dvYc9mKICJuuU1n1XBI02YWsNsnrY1kc6DVbjcXbtw==", + "dev": true, + "requires": { + "@babel/compat-data": "^7.22.9", + "@babel/helper-validator-option": "^7.22.15", + "browserslist": "^4.21.9", + "lru-cache": "^5.1.1", + "semver": "^6.3.1" + } + }, + "@babel/helper-create-class-features-plugin": { + "version": "7.23.5", + "resolved": "https://registry.npmjs.org/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.23.5.tgz", + "integrity": "sha512-QELlRWxSpgdwdJzSJn4WAhKC+hvw/AtHbbrIoncKHkhKKR/luAlKkgBDcri1EzWAo8f8VvYVryEHN4tax/V67A==", + "dev": true, + "requires": { + "@babel/helper-annotate-as-pure": "^7.22.5", + "@babel/helper-environment-visitor": "^7.22.20", + "@babel/helper-function-name": "^7.23.0", + "@babel/helper-member-expression-to-functions": "^7.23.0", + "@babel/helper-optimise-call-expression": "^7.22.5", + "@babel/helper-replace-supers": "^7.22.20", + "@babel/helper-skip-transparent-expression-wrappers": "^7.22.5", + "@babel/helper-split-export-declaration": "^7.22.6", + "semver": "^6.3.1" + } + }, + "@babel/helper-create-regexp-features-plugin": { + "version": "7.22.15", + "resolved": "https://registry.npmjs.org/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.22.15.tgz", + "integrity": "sha512-29FkPLFjn4TPEa3RE7GpW+qbE8tlsu3jntNYNfcGsc49LphF1PQIiD+vMZ1z1xVOKt+93khA9tc2JBs3kBjA7w==", + "dev": true, + "requires": { + "@babel/helper-annotate-as-pure": "^7.22.5", + "regexpu-core": "^5.3.1", + "semver": "^6.3.1" + } + }, + "@babel/helper-define-polyfill-provider": { + "version": "0.4.3", + "resolved": "https://registry.npmjs.org/@babel/helper-define-polyfill-provider/-/helper-define-polyfill-provider-0.4.3.tgz", + "integrity": "sha512-WBrLmuPP47n7PNwsZ57pqam6G/RGo1vw/87b0Blc53tZNGZ4x7YvZ6HgQe2vo1W/FR20OgjeZuGXzudPiXHFug==", + "dev": true, + "requires": { + "@babel/helper-compilation-targets": "^7.22.6", + "@babel/helper-plugin-utils": "^7.22.5", + "debug": "^4.1.1", + "lodash.debounce": "^4.0.8", + "resolve": "^1.14.2" + } + }, + "@babel/helper-environment-visitor": { + "version": "7.22.20", + "resolved": "https://registry.npmjs.org/@babel/helper-environment-visitor/-/helper-environment-visitor-7.22.20.tgz", + "integrity": "sha512-zfedSIzFhat/gFhWfHtgWvlec0nqB9YEIVrpuwjruLlXfUSnA8cJB0miHKwqDnQ7d32aKo2xt88/xZptwxbfhA==", + "dev": true + }, + "@babel/helper-function-name": { + "version": "7.23.0", + "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.23.0.tgz", + "integrity": "sha512-OErEqsrxjZTJciZ4Oo+eoZqeW9UIiOcuYKRJA4ZAgV9myA+pOXhhmpfNCKjEH/auVfEYVFJ6y1Tc4r0eIApqiw==", + "dev": true, + "requires": { + "@babel/template": "^7.22.15", + "@babel/types": "^7.23.0" + } + }, + "@babel/helper-hoist-variables": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.22.5.tgz", + "integrity": "sha512-wGjk9QZVzvknA6yKIUURb8zY3grXCcOZt+/7Wcy8O2uctxhplmUPkOdlgoNhmdVee2c92JXbf1xpMtVNbfoxRw==", + "dev": true, + "requires": { + "@babel/types": "^7.22.5" + } + }, + "@babel/helper-member-expression-to-functions": { + "version": "7.23.0", + "resolved": "https://registry.npmjs.org/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.23.0.tgz", + "integrity": "sha512-6gfrPwh7OuT6gZyJZvd6WbTfrqAo7vm4xCzAXOusKqq/vWdKXphTpj5klHKNmRUU6/QRGlBsyU9mAIPaWHlqJA==", + "dev": true, + "requires": { + "@babel/types": "^7.23.0" + } + }, + "@babel/helper-module-imports": { + "version": "7.22.15", + "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.22.15.tgz", + "integrity": "sha512-0pYVBnDKZO2fnSPCrgM/6WMc7eS20Fbok+0r88fp+YtWVLZrp4CkafFGIp+W0VKw4a22sgebPT99y+FDNMdP4w==", + "dev": true, + "requires": { + "@babel/types": "^7.22.15" + } + }, + "@babel/helper-module-transforms": { + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.23.3.tgz", + "integrity": "sha512-7bBs4ED9OmswdfDzpz4MpWgSrV7FXlc3zIagvLFjS5H+Mk7Snr21vQ6QwrsoCGMfNC4e4LQPdoULEt4ykz0SRQ==", + "dev": true, + "requires": { + "@babel/helper-environment-visitor": "^7.22.20", + "@babel/helper-module-imports": "^7.22.15", + "@babel/helper-simple-access": "^7.22.5", + "@babel/helper-split-export-declaration": "^7.22.6", + "@babel/helper-validator-identifier": "^7.22.20" + } + }, + "@babel/helper-optimise-call-expression": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.22.5.tgz", + "integrity": "sha512-HBwaojN0xFRx4yIvpwGqxiV2tUfl7401jlok564NgB9EHS1y6QT17FmKWm4ztqjeVdXLuC4fSvHc5ePpQjoTbw==", + "dev": true, + "requires": { + "@babel/types": "^7.22.5" + } + }, + "@babel/helper-plugin-utils": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.22.5.tgz", + "integrity": "sha512-uLls06UVKgFG9QD4OeFYLEGteMIAa5kpTPcFL28yuCIIzsf6ZyKZMllKVOCZFhiZ5ptnwX4mtKdWCBE/uT4amg==", + "dev": true + }, + "@babel/helper-remap-async-to-generator": { + "version": "7.22.20", + "resolved": "https://registry.npmjs.org/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.22.20.tgz", + "integrity": "sha512-pBGyV4uBqOns+0UvhsTO8qgl8hO89PmiDYv+/COyp1aeMcmfrfruz+/nCMFiYyFF/Knn0yfrC85ZzNFjembFTw==", + "dev": true, + "requires": { + "@babel/helper-annotate-as-pure": "^7.22.5", + "@babel/helper-environment-visitor": "^7.22.20", + "@babel/helper-wrap-function": "^7.22.20" + } + }, + "@babel/helper-replace-supers": { + "version": "7.22.20", + "resolved": "https://registry.npmjs.org/@babel/helper-replace-supers/-/helper-replace-supers-7.22.20.tgz", + "integrity": "sha512-qsW0In3dbwQUbK8kejJ4R7IHVGwHJlV6lpG6UA7a9hSa2YEiAib+N1T2kr6PEeUT+Fl7najmSOS6SmAwCHK6Tw==", + "dev": true, + "requires": { + "@babel/helper-environment-visitor": "^7.22.20", + "@babel/helper-member-expression-to-functions": "^7.22.15", + "@babel/helper-optimise-call-expression": "^7.22.5" + } + }, + "@babel/helper-simple-access": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.22.5.tgz", + "integrity": "sha512-n0H99E/K+Bika3++WNL17POvo4rKWZ7lZEp1Q+fStVbUi8nxPQEBOlTmCOxW/0JsS56SKKQ+ojAe2pHKJHN35w==", + "dev": true, + "requires": { + "@babel/types": "^7.22.5" + } + }, + "@babel/helper-skip-transparent-expression-wrappers": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/helper-skip-transparent-expression-wrappers/-/helper-skip-transparent-expression-wrappers-7.22.5.tgz", + "integrity": "sha512-tK14r66JZKiC43p8Ki33yLBVJKlQDFoA8GYN67lWCDCqoL6EMMSuM9b+Iff2jHaM/RRFYl7K+iiru7hbRqNx8Q==", + "dev": true, + "requires": { + "@babel/types": "^7.22.5" + } + }, + "@babel/helper-split-export-declaration": { + "version": "7.22.6", + "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.22.6.tgz", + "integrity": "sha512-AsUnxuLhRYsisFiaJwvp1QF+I3KjD5FOxut14q/GzovUe6orHLesW2C7d754kRm53h5gqrz6sFl6sxc4BVtE/g==", + "dev": true, + "requires": { + "@babel/types": "^7.22.5" + } + }, + "@babel/helper-string-parser": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.27.1.tgz", + "integrity": "sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA==", + "dev": true + }, + "@babel/helper-validator-identifier": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.27.1.tgz", + "integrity": "sha512-D2hP9eA+Sqx1kBZgzxZh0y1trbuU+JoDkiEwqhQ36nodYqJwyEIhPSdMNd7lOm/4io72luTPWH20Yda0xOuUow==", + "dev": true + }, + "@babel/helper-validator-option": { + "version": "7.23.5", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.23.5.tgz", + "integrity": "sha512-85ttAOMLsr53VgXkTbkx8oA6YTfT4q7/HzXSLEYmjcSTJPMPQtvq1BD79Byep5xMUYbGRzEpDsjUf3dyp54IKw==", + "dev": true + }, + "@babel/helper-wrap-function": { + "version": "7.22.20", + "resolved": "https://registry.npmjs.org/@babel/helper-wrap-function/-/helper-wrap-function-7.22.20.tgz", + "integrity": "sha512-pms/UwkOpnQe/PDAEdV/d7dVCoBbB+R4FvYoHGZz+4VPcg7RtYy2KP7S2lbuWM6FCSgob5wshfGESbC/hzNXZw==", + "dev": true, + "requires": { + "@babel/helper-function-name": "^7.22.5", + "@babel/template": "^7.22.15", + "@babel/types": "^7.22.19" + } + }, + "@babel/helpers": { + "version": "7.27.6", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.27.6.tgz", + "integrity": "sha512-muE8Tt8M22638HU31A3CgfSUciwz1fhATfoVai05aPXGor//CdWDCbnlY1yvBPo07njuVOCNGCSp/GTt12lIug==", + "dev": true, + "requires": { + "@babel/template": "^7.27.2", + "@babel/types": "^7.27.6" + } + }, + "@babel/parser": { + "version": "7.28.0", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.28.0.tgz", + "integrity": "sha512-jVZGvOxOuNSsuQuLRTh13nU0AogFlw32w/MT+LV6D3sP5WdbW61E77RnkbaO2dUvmPAYrBDJXGn5gGS6tH4j8g==", + "dev": true, + "requires": { + "@babel/types": "^7.28.0" + } + }, + "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": { + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression/-/plugin-bugfix-safari-id-destructuring-collision-in-function-expression-7.23.3.tgz", + "integrity": "sha512-iRkKcCqb7iGnq9+3G6rZ+Ciz5VywC4XNRHe57lKM+jOeYAoR0lVqdeeDRfh0tQcTfw/+vBhHn926FmQhLtlFLQ==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.22.5" + } + }, + "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": { + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining/-/plugin-bugfix-v8-spread-parameters-in-optional-chaining-7.23.3.tgz", + "integrity": "sha512-WwlxbfMNdVEpQjZmK5mhm7oSwD3dS6eU+Iwsi4Knl9wAletWem7kaRsGOG+8UEbRyqxY4SS5zvtfXwX+jMxUwQ==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/helper-skip-transparent-expression-wrappers": "^7.22.5", + "@babel/plugin-transform-optional-chaining": "^7.23.3" + } + }, + "@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly": { + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly/-/plugin-bugfix-v8-static-class-fields-redefine-readonly-7.23.3.tgz", + "integrity": "sha512-XaJak1qcityzrX0/IU5nKHb34VaibwP3saKqG6a/tppelgllOH13LUann4ZCIBcVOeE6H18K4Vx9QKkVww3z/w==", + "dev": true, + "requires": { + "@babel/helper-environment-visitor": "^7.22.20", + "@babel/helper-plugin-utils": "^7.22.5" + } + }, + "@babel/plugin-proposal-private-property-in-object": { + "version": "7.21.0-placeholder-for-preset-env.2", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-private-property-in-object/-/plugin-proposal-private-property-in-object-7.21.0-placeholder-for-preset-env.2.tgz", + "integrity": "sha512-SOSkfJDddaM7mak6cPEpswyTRnuRltl429hMraQEglW+OkovnCzsiszTmsrlY//qLFjCpQDFRvjdm2wA5pPm9w==", + "dev": true, + "requires": {} + }, + "@babel/plugin-syntax-async-generators": { + "version": "7.8.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz", + "integrity": "sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.8.0" + } + }, + "@babel/plugin-syntax-bigint": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-bigint/-/plugin-syntax-bigint-7.8.3.tgz", + "integrity": "sha512-wnTnFlG+YxQm3vDxpGE57Pj0srRU4sHE/mDkt1qv2YJJSeUAec2ma4WLUnUPeKjyrfntVwe/N6dCXpU+zL3Npg==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.8.0" + } + }, + "@babel/plugin-syntax-class-properties": { + "version": "7.12.13", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.12.13.tgz", + "integrity": "sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.12.13" + } + }, + "@babel/plugin-syntax-class-static-block": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-static-block/-/plugin-syntax-class-static-block-7.14.5.tgz", + "integrity": "sha512-b+YyPmr6ldyNnM6sqYeMWE+bgJcJpO6yS4QD7ymxgH34GBPNDM/THBh8iunyvKIZztiwLH4CJZ0RxTk9emgpjw==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.14.5" + } + }, + "@babel/plugin-syntax-dynamic-import": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-dynamic-import/-/plugin-syntax-dynamic-import-7.8.3.tgz", + "integrity": "sha512-5gdGbFon+PszYzqs83S3E5mpi7/y/8M9eC90MRTZfduQOYW76ig6SOSPNe41IG5LoP3FGBn2N0RjVDSQiS94kQ==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.8.0" + } + }, + "@babel/plugin-syntax-export-namespace-from": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-export-namespace-from/-/plugin-syntax-export-namespace-from-7.8.3.tgz", + "integrity": "sha512-MXf5laXo6c1IbEbegDmzGPwGNTsHZmEy6QGznu5Sh2UCWvueywb2ee+CCE4zQiZstxU9BMoQO9i6zUFSY0Kj0Q==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.8.3" + } + }, + "@babel/plugin-syntax-import-assertions": { + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-assertions/-/plugin-syntax-import-assertions-7.23.3.tgz", + "integrity": "sha512-lPgDSU+SJLK3xmFDTV2ZRQAiM7UuUjGidwBywFavObCiZc1BeAAcMtHJKUya92hPHO+at63JJPLygilZard8jw==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.22.5" + } + }, + "@babel/plugin-syntax-import-attributes": { + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-attributes/-/plugin-syntax-import-attributes-7.23.3.tgz", + "integrity": "sha512-pawnE0P9g10xgoP7yKr6CK63K2FMsTE+FZidZO/1PwRdzmAPVs+HS1mAURUsgaoxammTJvULUdIkEK0gOcU2tA==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.22.5" + } + }, + "@babel/plugin-syntax-import-meta": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-meta/-/plugin-syntax-import-meta-7.10.4.tgz", + "integrity": "sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.10.4" + } + }, + "@babel/plugin-syntax-json-strings": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.8.3.tgz", + "integrity": "sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.8.0" + } + }, + "@babel/plugin-syntax-jsx": { + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.23.3.tgz", + "integrity": "sha512-EB2MELswq55OHUoRZLGg/zC7QWUKfNLpE57m/S2yr1uEneIgsTgrSzXP3NXEsMkVn76OlaVVnzN+ugObuYGwhg==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.22.5" + } + }, + "@babel/plugin-syntax-logical-assignment-operators": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.10.4.tgz", + "integrity": "sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.10.4" + } + }, + "@babel/plugin-syntax-nullish-coalescing-operator": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz", + "integrity": "sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.8.0" + } + }, + "@babel/plugin-syntax-numeric-separator": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-numeric-separator/-/plugin-syntax-numeric-separator-7.10.4.tgz", + "integrity": "sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.10.4" + } + }, + "@babel/plugin-syntax-object-rest-spread": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz", + "integrity": "sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.8.0" + } + }, + "@babel/plugin-syntax-optional-catch-binding": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.8.3.tgz", + "integrity": "sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.8.0" + } + }, + "@babel/plugin-syntax-optional-chaining": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.3.tgz", + "integrity": "sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.8.0" + } + }, + "@babel/plugin-syntax-private-property-in-object": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-private-property-in-object/-/plugin-syntax-private-property-in-object-7.14.5.tgz", + "integrity": "sha512-0wVnp9dxJ72ZUJDV27ZfbSj6iHLoytYZmh3rFcxNnvsJF3ktkzLDZPy/mA17HGsaQT3/DQsWYX1f1QGWkCoVUg==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.14.5" + } + }, + "@babel/plugin-syntax-top-level-await": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.14.5.tgz", + "integrity": "sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.14.5" + } + }, + "@babel/plugin-syntax-typescript": { + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.23.3.tgz", + "integrity": "sha512-9EiNjVJOMwCO+43TqoTrgQ8jMwcAd0sWyXi9RPfIsLTj4R2MADDDQXELhffaUx/uJv2AYcxBgPwH6j4TIA4ytQ==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.22.5" + } + }, + "@babel/plugin-syntax-unicode-sets-regex": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-unicode-sets-regex/-/plugin-syntax-unicode-sets-regex-7.18.6.tgz", + "integrity": "sha512-727YkEAPwSIQTv5im8QHz3upqp92JTWhidIC81Tdx4VJYIte/VndKf1qKrfnnhPLiPghStWfvC/iFaMCQu7Nqg==", + "dev": true, + "requires": { + "@babel/helper-create-regexp-features-plugin": "^7.18.6", + "@babel/helper-plugin-utils": "^7.18.6" + } + }, + "@babel/plugin-transform-arrow-functions": { + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.23.3.tgz", + "integrity": "sha512-NzQcQrzaQPkaEwoTm4Mhyl8jI1huEL/WWIEvudjTCMJ9aBZNpsJbMASx7EQECtQQPS/DcnFpo0FIh3LvEO9cxQ==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.22.5" + } + }, + "@babel/plugin-transform-async-generator-functions": { + "version": "7.23.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-async-generator-functions/-/plugin-transform-async-generator-functions-7.23.4.tgz", + "integrity": "sha512-efdkfPhHYTtn0G6n2ddrESE91fgXxjlqLsnUtPWnJs4a4mZIbUaK7ffqKIIUKXSHwcDvaCVX6GXkaJJFqtX7jw==", + "dev": true, + "requires": { + "@babel/helper-environment-visitor": "^7.22.20", + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/helper-remap-async-to-generator": "^7.22.20", + "@babel/plugin-syntax-async-generators": "^7.8.4" + } + }, + "@babel/plugin-transform-async-to-generator": { + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.23.3.tgz", + "integrity": "sha512-A7LFsKi4U4fomjqXJlZg/u0ft/n8/7n7lpffUP/ZULx/DtV9SGlNKZolHH6PE8Xl1ngCc0M11OaeZptXVkfKSw==", + "dev": true, + "requires": { + "@babel/helper-module-imports": "^7.22.15", + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/helper-remap-async-to-generator": "^7.22.20" + } + }, + "@babel/plugin-transform-block-scoped-functions": { + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.23.3.tgz", + "integrity": "sha512-vI+0sIaPIO6CNuM9Kk5VmXcMVRiOpDh7w2zZt9GXzmE/9KD70CUEVhvPR/etAeNK/FAEkhxQtXOzVF3EuRL41A==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.22.5" + } + }, + "@babel/plugin-transform-block-scoping": { + "version": "7.23.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.23.4.tgz", + "integrity": "sha512-0QqbP6B6HOh7/8iNR4CQU2Th/bbRtBp4KS9vcaZd1fZ0wSh5Fyssg0UCIHwxh+ka+pNDREbVLQnHCMHKZfPwfw==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.22.5" + } + }, + "@babel/plugin-transform-class-properties": { + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-class-properties/-/plugin-transform-class-properties-7.23.3.tgz", + "integrity": "sha512-uM+AN8yCIjDPccsKGlw271xjJtGii+xQIF/uMPS8H15L12jZTsLfF4o5vNO7d/oUguOyfdikHGc/yi9ge4SGIg==", + "dev": true, + "requires": { + "@babel/helper-create-class-features-plugin": "^7.22.15", + "@babel/helper-plugin-utils": "^7.22.5" + } + }, + "@babel/plugin-transform-class-static-block": { + "version": "7.23.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-class-static-block/-/plugin-transform-class-static-block-7.23.4.tgz", + "integrity": "sha512-nsWu/1M+ggti1SOALj3hfx5FXzAY06fwPJsUZD4/A5e1bWi46VUIWtD+kOX6/IdhXGsXBWllLFDSnqSCdUNydQ==", + "dev": true, + "requires": { + "@babel/helper-create-class-features-plugin": "^7.22.15", + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/plugin-syntax-class-static-block": "^7.14.5" + } + }, + "@babel/plugin-transform-classes": { + "version": "7.23.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-classes/-/plugin-transform-classes-7.23.5.tgz", + "integrity": "sha512-jvOTR4nicqYC9yzOHIhXG5emiFEOpappSJAl73SDSEDcybD+Puuze8Tnpb9p9qEyYup24tq891gkaygIFvWDqg==", + "dev": true, + "requires": { + "@babel/helper-annotate-as-pure": "^7.22.5", + "@babel/helper-compilation-targets": "^7.22.15", + "@babel/helper-environment-visitor": "^7.22.20", + "@babel/helper-function-name": "^7.23.0", + "@babel/helper-optimise-call-expression": "^7.22.5", + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/helper-replace-supers": "^7.22.20", + "@babel/helper-split-export-declaration": "^7.22.6", + "globals": "^11.1.0" + } + }, + "@babel/plugin-transform-computed-properties": { + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.23.3.tgz", + "integrity": "sha512-dTj83UVTLw/+nbiHqQSFdwO9CbTtwq1DsDqm3CUEtDrZNET5rT5E6bIdTlOftDTDLMYxvxHNEYO4B9SLl8SLZw==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/template": "^7.22.15" + } + }, + "@babel/plugin-transform-destructuring": { + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.23.3.tgz", + "integrity": "sha512-n225npDqjDIr967cMScVKHXJs7rout1q+tt50inyBCPkyZ8KxeI6d+GIbSBTT/w/9WdlWDOej3V9HE5Lgk57gw==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.22.5" + } + }, + "@babel/plugin-transform-dotall-regex": { + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.23.3.tgz", + "integrity": "sha512-vgnFYDHAKzFaTVp+mneDsIEbnJ2Np/9ng9iviHw3P/KVcgONxpNULEW/51Z/BaFojG2GI2GwwXck5uV1+1NOYQ==", + "dev": true, + "requires": { + "@babel/helper-create-regexp-features-plugin": "^7.22.15", + "@babel/helper-plugin-utils": "^7.22.5" + } + }, + "@babel/plugin-transform-duplicate-keys": { + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-duplicate-keys/-/plugin-transform-duplicate-keys-7.23.3.tgz", + "integrity": "sha512-RrqQ+BQmU3Oyav3J+7/myfvRCq7Tbz+kKLLshUmMwNlDHExbGL7ARhajvoBJEvc+fCguPPu887N+3RRXBVKZUA==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.22.5" + } + }, + "@babel/plugin-transform-dynamic-import": { + "version": "7.23.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-dynamic-import/-/plugin-transform-dynamic-import-7.23.4.tgz", + "integrity": "sha512-V6jIbLhdJK86MaLh4Jpghi8ho5fGzt3imHOBu/x0jlBaPYqDoWz4RDXjmMOfnh+JWNaQleEAByZLV0QzBT4YQQ==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/plugin-syntax-dynamic-import": "^7.8.3" + } + }, + "@babel/plugin-transform-exponentiation-operator": { + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.23.3.tgz", + "integrity": "sha512-5fhCsl1odX96u7ILKHBj4/Y8vipoqwsJMh4csSA8qFfxrZDEA4Ssku2DyNvMJSmZNOEBT750LfFPbtrnTP90BQ==", + "dev": true, + "requires": { + "@babel/helper-builder-binary-assignment-operator-visitor": "^7.22.15", + "@babel/helper-plugin-utils": "^7.22.5" + } + }, + "@babel/plugin-transform-export-namespace-from": { + "version": "7.23.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-export-namespace-from/-/plugin-transform-export-namespace-from-7.23.4.tgz", + "integrity": "sha512-GzuSBcKkx62dGzZI1WVgTWvkkz84FZO5TC5T8dl/Tht/rAla6Dg/Mz9Yhypg+ezVACf/rgDuQt3kbWEv7LdUDQ==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/plugin-syntax-export-namespace-from": "^7.8.3" + } + }, + "@babel/plugin-transform-for-of": { + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.23.3.tgz", + "integrity": "sha512-X8jSm8X1CMwxmK878qsUGJRmbysKNbdpTv/O1/v0LuY/ZkZrng5WYiekYSdg9m09OTmDDUWeEDsTE+17WYbAZw==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.22.5" + } + }, + "@babel/plugin-transform-function-name": { + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.23.3.tgz", + "integrity": "sha512-I1QXp1LxIvt8yLaib49dRW5Okt7Q4oaxao6tFVKS/anCdEOMtYwWVKoiOA1p34GOWIZjUK0E+zCp7+l1pfQyiw==", + "dev": true, + "requires": { + "@babel/helper-compilation-targets": "^7.22.15", + "@babel/helper-function-name": "^7.23.0", + "@babel/helper-plugin-utils": "^7.22.5" + } + }, + "@babel/plugin-transform-json-strings": { + "version": "7.23.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-json-strings/-/plugin-transform-json-strings-7.23.4.tgz", + "integrity": "sha512-81nTOqM1dMwZ/aRXQ59zVubN9wHGqk6UtqRK+/q+ciXmRy8fSolhGVvG09HHRGo4l6fr/c4ZhXUQH0uFW7PZbg==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/plugin-syntax-json-strings": "^7.8.3" + } + }, + "@babel/plugin-transform-literals": { + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-literals/-/plugin-transform-literals-7.23.3.tgz", + "integrity": "sha512-wZ0PIXRxnwZvl9AYpqNUxpZ5BiTGrYt7kueGQ+N5FiQ7RCOD4cm8iShd6S6ggfVIWaJf2EMk8eRzAh52RfP4rQ==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.22.5" + } + }, + "@babel/plugin-transform-logical-assignment-operators": { + "version": "7.23.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-logical-assignment-operators/-/plugin-transform-logical-assignment-operators-7.23.4.tgz", + "integrity": "sha512-Mc/ALf1rmZTP4JKKEhUwiORU+vcfarFVLfcFiolKUo6sewoxSEgl36ak5t+4WamRsNr6nzjZXQjM35WsU+9vbg==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/plugin-syntax-logical-assignment-operators": "^7.10.4" + } + }, + "@babel/plugin-transform-member-expression-literals": { + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.23.3.tgz", + "integrity": "sha512-sC3LdDBDi5x96LA+Ytekz2ZPk8i/Ck+DEuDbRAll5rknJ5XRTSaPKEYwomLcs1AA8wg9b3KjIQRsnApj+q51Ag==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.22.5" + } + }, + "@babel/plugin-transform-modules-amd": { + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.23.3.tgz", + "integrity": "sha512-vJYQGxeKM4t8hYCKVBlZX/gtIY2I7mRGFNcm85sgXGMTBcoV3QdVtdpbcWEbzbfUIUZKwvgFT82mRvaQIebZzw==", + "dev": true, + "requires": { + "@babel/helper-module-transforms": "^7.23.3", + "@babel/helper-plugin-utils": "^7.22.5" + } + }, + "@babel/plugin-transform-modules-commonjs": { + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.23.3.tgz", + "integrity": "sha512-aVS0F65LKsdNOtcz6FRCpE4OgsP2OFnW46qNxNIX9h3wuzaNcSQsJysuMwqSibC98HPrf2vCgtxKNwS0DAlgcA==", + "dev": true, + "requires": { + "@babel/helper-module-transforms": "^7.23.3", + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/helper-simple-access": "^7.22.5" + } + }, + "@babel/plugin-transform-modules-systemjs": { + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.23.3.tgz", + "integrity": "sha512-ZxyKGTkF9xT9YJuKQRo19ewf3pXpopuYQd8cDXqNzc3mUNbOME0RKMoZxviQk74hwzfQsEe66dE92MaZbdHKNQ==", + "dev": true, + "requires": { + "@babel/helper-hoist-variables": "^7.22.5", + "@babel/helper-module-transforms": "^7.23.3", + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/helper-validator-identifier": "^7.22.20" + } + }, + "@babel/plugin-transform-modules-umd": { + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.23.3.tgz", + "integrity": "sha512-zHsy9iXX2nIsCBFPud3jKn1IRPWg3Ing1qOZgeKV39m1ZgIdpJqvlWVeiHBZC6ITRG0MfskhYe9cLgntfSFPIg==", + "dev": true, + "requires": { + "@babel/helper-module-transforms": "^7.23.3", + "@babel/helper-plugin-utils": "^7.22.5" + } + }, + "@babel/plugin-transform-named-capturing-groups-regex": { + "version": "7.22.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-named-capturing-groups-regex/-/plugin-transform-named-capturing-groups-regex-7.22.5.tgz", + "integrity": "sha512-YgLLKmS3aUBhHaxp5hi1WJTgOUb/NCuDHzGT9z9WTt3YG+CPRhJs6nprbStx6DnWM4dh6gt7SU3sZodbZ08adQ==", + "dev": true, + "requires": { + "@babel/helper-create-regexp-features-plugin": "^7.22.5", + "@babel/helper-plugin-utils": "^7.22.5" + } + }, + "@babel/plugin-transform-new-target": { + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-new-target/-/plugin-transform-new-target-7.23.3.tgz", + "integrity": "sha512-YJ3xKqtJMAT5/TIZnpAR3I+K+WaDowYbN3xyxI8zxx/Gsypwf9B9h0VB+1Nh6ACAAPRS5NSRje0uVv5i79HYGQ==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.22.5" + } + }, + "@babel/plugin-transform-nullish-coalescing-operator": { + "version": "7.23.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-nullish-coalescing-operator/-/plugin-transform-nullish-coalescing-operator-7.23.4.tgz", + "integrity": "sha512-jHE9EVVqHKAQx+VePv5LLGHjmHSJR76vawFPTdlxR/LVJPfOEGxREQwQfjuZEOPTwG92X3LINSh3M40Rv4zpVA==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3" + } + }, + "@babel/plugin-transform-numeric-separator": { + "version": "7.23.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-numeric-separator/-/plugin-transform-numeric-separator-7.23.4.tgz", + "integrity": "sha512-mps6auzgwjRrwKEZA05cOwuDc9FAzoyFS4ZsG/8F43bTLf/TgkJg7QXOrPO1JO599iA3qgK9MXdMGOEC8O1h6Q==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/plugin-syntax-numeric-separator": "^7.10.4" + } + }, + "@babel/plugin-transform-object-rest-spread": { + "version": "7.23.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-rest-spread/-/plugin-transform-object-rest-spread-7.23.4.tgz", + "integrity": "sha512-9x9K1YyeQVw0iOXJlIzwm8ltobIIv7j2iLyP2jIhEbqPRQ7ScNgwQufU2I0Gq11VjyG4gI4yMXt2VFags+1N3g==", + "dev": true, + "requires": { + "@babel/compat-data": "^7.23.3", + "@babel/helper-compilation-targets": "^7.22.15", + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/plugin-syntax-object-rest-spread": "^7.8.3", + "@babel/plugin-transform-parameters": "^7.23.3" + } + }, + "@babel/plugin-transform-object-super": { + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.23.3.tgz", + "integrity": "sha512-BwQ8q0x2JG+3lxCVFohg+KbQM7plfpBwThdW9A6TMtWwLsbDA01Ek2Zb/AgDN39BiZsExm4qrXxjk+P1/fzGrA==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/helper-replace-supers": "^7.22.20" + } + }, + "@babel/plugin-transform-optional-catch-binding": { + "version": "7.23.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-optional-catch-binding/-/plugin-transform-optional-catch-binding-7.23.4.tgz", + "integrity": "sha512-XIq8t0rJPHf6Wvmbn9nFxU6ao4c7WhghTR5WyV8SrJfUFzyxhCm4nhC+iAp3HFhbAKLfYpgzhJ6t4XCtVwqO5A==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/plugin-syntax-optional-catch-binding": "^7.8.3" + } + }, + "@babel/plugin-transform-optional-chaining": { + "version": "7.23.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-optional-chaining/-/plugin-transform-optional-chaining-7.23.4.tgz", + "integrity": "sha512-ZU8y5zWOfjM5vZ+asjgAPwDaBjJzgufjES89Rs4Lpq63O300R/kOz30WCLo6BxxX6QVEilwSlpClnG5cZaikTA==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/helper-skip-transparent-expression-wrappers": "^7.22.5", + "@babel/plugin-syntax-optional-chaining": "^7.8.3" + } + }, + "@babel/plugin-transform-parameters": { + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.23.3.tgz", + "integrity": "sha512-09lMt6UsUb3/34BbECKVbVwrT9bO6lILWln237z7sLaWnMsTi7Yc9fhX5DLpkJzAGfaReXI22wP41SZmnAA3Vw==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.22.5" + } + }, + "@babel/plugin-transform-private-methods": { + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-private-methods/-/plugin-transform-private-methods-7.23.3.tgz", + "integrity": "sha512-UzqRcRtWsDMTLrRWFvUBDwmw06tCQH9Rl1uAjfh6ijMSmGYQ+fpdB+cnqRC8EMh5tuuxSv0/TejGL+7vyj+50g==", + "dev": true, + "requires": { + "@babel/helper-create-class-features-plugin": "^7.22.15", + "@babel/helper-plugin-utils": "^7.22.5" + } + }, + "@babel/plugin-transform-private-property-in-object": { + "version": "7.23.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-private-property-in-object/-/plugin-transform-private-property-in-object-7.23.4.tgz", + "integrity": "sha512-9G3K1YqTq3F4Vt88Djx1UZ79PDyj+yKRnUy7cZGSMe+a7jkwD259uKKuUzQlPkGam7R+8RJwh5z4xO27fA1o2A==", + "dev": true, + "requires": { + "@babel/helper-annotate-as-pure": "^7.22.5", + "@babel/helper-create-class-features-plugin": "^7.22.15", + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/plugin-syntax-private-property-in-object": "^7.14.5" + } + }, + "@babel/plugin-transform-property-literals": { + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.23.3.tgz", + "integrity": "sha512-jR3Jn3y7cZp4oEWPFAlRsSWjxKe4PZILGBSd4nis1TsC5qeSpb+nrtihJuDhNI7QHiVbUaiXa0X2RZY3/TI6Nw==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.22.5" + } + }, + "@babel/plugin-transform-regenerator": { + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.23.3.tgz", + "integrity": "sha512-KP+75h0KghBMcVpuKisx3XTu9Ncut8Q8TuvGO4IhY+9D5DFEckQefOuIsB/gQ2tG71lCke4NMrtIPS8pOj18BQ==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.22.5", + "regenerator-transform": "^0.15.2" + } + }, + "@babel/plugin-transform-reserved-words": { + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-reserved-words/-/plugin-transform-reserved-words-7.23.3.tgz", + "integrity": "sha512-QnNTazY54YqgGxwIexMZva9gqbPa15t/x9VS+0fsEFWplwVpXYZivtgl43Z1vMpc1bdPP2PP8siFeVcnFvA3Cg==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.22.5" + } + }, + "@babel/plugin-transform-shorthand-properties": { + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.23.3.tgz", + "integrity": "sha512-ED2fgqZLmexWiN+YNFX26fx4gh5qHDhn1O2gvEhreLW2iI63Sqm4llRLCXALKrCnbN4Jy0VcMQZl/SAzqug/jg==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.22.5" + } + }, + "@babel/plugin-transform-spread": { + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-spread/-/plugin-transform-spread-7.23.3.tgz", + "integrity": "sha512-VvfVYlrlBVu+77xVTOAoxQ6mZbnIq5FM0aGBSFEcIh03qHf+zNqA4DC/3XMUozTg7bZV3e3mZQ0i13VB6v5yUg==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/helper-skip-transparent-expression-wrappers": "^7.22.5" + } + }, + "@babel/plugin-transform-sticky-regex": { + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.23.3.tgz", + "integrity": "sha512-HZOyN9g+rtvnOU3Yh7kSxXrKbzgrm5X4GncPY1QOquu7epga5MxKHVpYu2hvQnry/H+JjckSYRb93iNfsioAGg==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.22.5" + } + }, + "@babel/plugin-transform-template-literals": { + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.23.3.tgz", + "integrity": "sha512-Flok06AYNp7GV2oJPZZcP9vZdszev6vPBkHLwxwSpaIqx75wn6mUd3UFWsSsA0l8nXAKkyCmL/sR02m8RYGeHg==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.22.5" + } + }, + "@babel/plugin-transform-typeof-symbol": { + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.23.3.tgz", + "integrity": "sha512-4t15ViVnaFdrPC74be1gXBSMzXk3B4Us9lP7uLRQHTFpV5Dvt33pn+2MyyNxmN3VTTm3oTrZVMUmuw3oBnQ2oQ==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.22.5" + } + }, + "@babel/plugin-transform-typescript": { + "version": "7.23.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-typescript/-/plugin-transform-typescript-7.23.5.tgz", + "integrity": "sha512-2fMkXEJkrmwgu2Bsv1Saxgj30IXZdJ+84lQcKKI7sm719oXs0BBw2ZENKdJdR1PjWndgLCEBNXJOri0fk7RYQA==", + "dev": true, + "requires": { + "@babel/helper-annotate-as-pure": "^7.22.5", + "@babel/helper-create-class-features-plugin": "^7.23.5", + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/plugin-syntax-typescript": "^7.23.3" + } + }, + "@babel/plugin-transform-unicode-escapes": { + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-escapes/-/plugin-transform-unicode-escapes-7.23.3.tgz", + "integrity": "sha512-OMCUx/bU6ChE3r4+ZdylEqAjaQgHAgipgW8nsCfu5pGqDcFytVd91AwRvUJSBZDz0exPGgnjoqhgRYLRjFZc9Q==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.22.5" + } + }, + "@babel/plugin-transform-unicode-property-regex": { + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-property-regex/-/plugin-transform-unicode-property-regex-7.23.3.tgz", + "integrity": "sha512-KcLIm+pDZkWZQAFJ9pdfmh89EwVfmNovFBcXko8szpBeF8z68kWIPeKlmSOkT9BXJxs2C0uk+5LxoxIv62MROA==", + "dev": true, + "requires": { + "@babel/helper-create-regexp-features-plugin": "^7.22.15", + "@babel/helper-plugin-utils": "^7.22.5" + } + }, + "@babel/plugin-transform-unicode-regex": { + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.23.3.tgz", + "integrity": "sha512-wMHpNA4x2cIA32b/ci3AfwNgheiva2W0WUKWTK7vBHBhDKfPsc5cFGNWm69WBqpwd86u1qwZ9PWevKqm1A3yAw==", + "dev": true, + "requires": { + "@babel/helper-create-regexp-features-plugin": "^7.22.15", + "@babel/helper-plugin-utils": "^7.22.5" + } + }, + "@babel/plugin-transform-unicode-sets-regex": { + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-sets-regex/-/plugin-transform-unicode-sets-regex-7.23.3.tgz", + "integrity": "sha512-W7lliA/v9bNR83Qc3q1ip9CQMZ09CcHDbHfbLRDNuAhn1Mvkr1ZNF7hPmztMQvtTGVLJ9m8IZqWsTkXOml8dbw==", + "dev": true, + "requires": { + "@babel/helper-create-regexp-features-plugin": "^7.22.15", + "@babel/helper-plugin-utils": "^7.22.5" + } + }, + "@babel/preset-env": { + "version": "7.23.5", + "resolved": "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.23.5.tgz", + "integrity": "sha512-0d/uxVD6tFGWXGDSfyMD1p2otoaKmu6+GD+NfAx0tMaH+dxORnp7T9TaVQ6mKyya7iBtCIVxHjWT7MuzzM9z+A==", + "dev": true, + "requires": { + "@babel/compat-data": "^7.23.5", + "@babel/helper-compilation-targets": "^7.22.15", + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/helper-validator-option": "^7.23.5", + "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": "^7.23.3", + "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": "^7.23.3", + "@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly": "^7.23.3", + "@babel/plugin-proposal-private-property-in-object": "7.21.0-placeholder-for-preset-env.2", + "@babel/plugin-syntax-async-generators": "^7.8.4", + "@babel/plugin-syntax-class-properties": "^7.12.13", + "@babel/plugin-syntax-class-static-block": "^7.14.5", + "@babel/plugin-syntax-dynamic-import": "^7.8.3", + "@babel/plugin-syntax-export-namespace-from": "^7.8.3", + "@babel/plugin-syntax-import-assertions": "^7.23.3", + "@babel/plugin-syntax-import-attributes": "^7.23.3", + "@babel/plugin-syntax-import-meta": "^7.10.4", + "@babel/plugin-syntax-json-strings": "^7.8.3", + "@babel/plugin-syntax-logical-assignment-operators": "^7.10.4", + "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3", + "@babel/plugin-syntax-numeric-separator": "^7.10.4", + "@babel/plugin-syntax-object-rest-spread": "^7.8.3", + "@babel/plugin-syntax-optional-catch-binding": "^7.8.3", + "@babel/plugin-syntax-optional-chaining": "^7.8.3", + "@babel/plugin-syntax-private-property-in-object": "^7.14.5", + "@babel/plugin-syntax-top-level-await": "^7.14.5", + "@babel/plugin-syntax-unicode-sets-regex": "^7.18.6", + "@babel/plugin-transform-arrow-functions": "^7.23.3", + "@babel/plugin-transform-async-generator-functions": "^7.23.4", + "@babel/plugin-transform-async-to-generator": "^7.23.3", + "@babel/plugin-transform-block-scoped-functions": "^7.23.3", + "@babel/plugin-transform-block-scoping": "^7.23.4", + "@babel/plugin-transform-class-properties": "^7.23.3", + "@babel/plugin-transform-class-static-block": "^7.23.4", + "@babel/plugin-transform-classes": "^7.23.5", + "@babel/plugin-transform-computed-properties": "^7.23.3", + "@babel/plugin-transform-destructuring": "^7.23.3", + "@babel/plugin-transform-dotall-regex": "^7.23.3", + "@babel/plugin-transform-duplicate-keys": "^7.23.3", + "@babel/plugin-transform-dynamic-import": "^7.23.4", + "@babel/plugin-transform-exponentiation-operator": "^7.23.3", + "@babel/plugin-transform-export-namespace-from": "^7.23.4", + "@babel/plugin-transform-for-of": "^7.23.3", + "@babel/plugin-transform-function-name": "^7.23.3", + "@babel/plugin-transform-json-strings": "^7.23.4", + "@babel/plugin-transform-literals": "^7.23.3", + "@babel/plugin-transform-logical-assignment-operators": "^7.23.4", + "@babel/plugin-transform-member-expression-literals": "^7.23.3", + "@babel/plugin-transform-modules-amd": "^7.23.3", + "@babel/plugin-transform-modules-commonjs": "^7.23.3", + "@babel/plugin-transform-modules-systemjs": "^7.23.3", + "@babel/plugin-transform-modules-umd": "^7.23.3", + "@babel/plugin-transform-named-capturing-groups-regex": "^7.22.5", + "@babel/plugin-transform-new-target": "^7.23.3", + "@babel/plugin-transform-nullish-coalescing-operator": "^7.23.4", + "@babel/plugin-transform-numeric-separator": "^7.23.4", + "@babel/plugin-transform-object-rest-spread": "^7.23.4", + "@babel/plugin-transform-object-super": "^7.23.3", + "@babel/plugin-transform-optional-catch-binding": "^7.23.4", + "@babel/plugin-transform-optional-chaining": "^7.23.4", + "@babel/plugin-transform-parameters": "^7.23.3", + "@babel/plugin-transform-private-methods": "^7.23.3", + "@babel/plugin-transform-private-property-in-object": "^7.23.4", + "@babel/plugin-transform-property-literals": "^7.23.3", + "@babel/plugin-transform-regenerator": "^7.23.3", + "@babel/plugin-transform-reserved-words": "^7.23.3", + "@babel/plugin-transform-shorthand-properties": "^7.23.3", + "@babel/plugin-transform-spread": "^7.23.3", + "@babel/plugin-transform-sticky-regex": "^7.23.3", + "@babel/plugin-transform-template-literals": "^7.23.3", + "@babel/plugin-transform-typeof-symbol": "^7.23.3", + "@babel/plugin-transform-unicode-escapes": "^7.23.3", + "@babel/plugin-transform-unicode-property-regex": "^7.23.3", + "@babel/plugin-transform-unicode-regex": "^7.23.3", + "@babel/plugin-transform-unicode-sets-regex": "^7.23.3", + "@babel/preset-modules": "0.1.6-no-external-plugins", + "babel-plugin-polyfill-corejs2": "^0.4.6", + "babel-plugin-polyfill-corejs3": "^0.8.5", + "babel-plugin-polyfill-regenerator": "^0.5.3", + "core-js-compat": "^3.31.0", + "semver": "^6.3.1" + } + }, + "@babel/preset-modules": { + "version": "0.1.6-no-external-plugins", + "resolved": "https://registry.npmjs.org/@babel/preset-modules/-/preset-modules-0.1.6-no-external-plugins.tgz", + "integrity": "sha512-HrcgcIESLm9aIR842yhJ5RWan/gebQUJ6E/E5+rf0y9o6oj7w0Br+sWuL6kEQ/o/AdfvR1Je9jG18/gnpwjEyA==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.0.0", + "@babel/types": "^7.4.4", + "esutils": "^2.0.2" + } + }, + "@babel/preset-typescript": { + "version": "7.23.3", + "resolved": "https://registry.npmjs.org/@babel/preset-typescript/-/preset-typescript-7.23.3.tgz", + "integrity": "sha512-17oIGVlqz6CchO9RFYn5U6ZpWRZIngayYCtrPRSgANSwC2V1Jb+iP74nVxzzXJte8b8BYxrL1yY96xfhTBrNNQ==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.22.5", + "@babel/helper-validator-option": "^7.22.15", + "@babel/plugin-syntax-jsx": "^7.23.3", + "@babel/plugin-transform-modules-commonjs": "^7.23.3", + "@babel/plugin-transform-typescript": "^7.23.3" + } + }, + "@babel/regjsgen": { + "version": "0.8.0", + "resolved": "https://registry.npmjs.org/@babel/regjsgen/-/regjsgen-0.8.0.tgz", + "integrity": "sha512-x/rqGMdzj+fWZvCOYForTghzbtqPDZ5gPwaoNGHdgDfF2QA/XZbCBp4Moo5scrkAMPhB7z26XM/AaHuIJdgauA==", + "dev": true + }, + "@babel/runtime": { + "version": "7.27.6", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.27.6.tgz", + "integrity": "sha512-vbavdySgbTTrmFE+EsiqUTzlOr5bzlnJtUv9PynGCAKvfQqjIXbvFdumPM/GxMDfyuGMJaJAU6TO4zc1Jf1i8Q==", + "dev": true + }, + "@babel/template": { + "version": "7.27.2", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.27.2.tgz", + "integrity": "sha512-LPDZ85aEJyYSd18/DkjNh4/y1ntkE5KwUHWTiqgRxruuZL2F1yuHligVHLvcHY2vMHXttKFpJn6LwfI7cw7ODw==", + "dev": true, + "requires": { + "@babel/code-frame": "^7.27.1", + "@babel/parser": "^7.27.2", + "@babel/types": "^7.27.1" + } + }, + "@babel/traverse": { + "version": "7.23.2", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.23.2.tgz", + "integrity": "sha512-azpe59SQ48qG6nu2CzcMLbxUudtN+dOM9kDbUqGq3HXUJRlo7i8fvPoxQUzYgLZ4cMVmuZgm8vvBpNeRhd6XSw==", + "dev": true, + "requires": { + "@babel/code-frame": "^7.22.13", + "@babel/generator": "^7.23.0", + "@babel/helper-environment-visitor": "^7.22.20", + "@babel/helper-function-name": "^7.23.0", + "@babel/helper-hoist-variables": "^7.22.5", + "@babel/helper-split-export-declaration": "^7.22.6", + "@babel/parser": "^7.23.0", + "@babel/types": "^7.23.0", + "debug": "^4.1.0", + "globals": "^11.1.0" + } + }, + "@babel/types": { + "version": "7.28.1", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.28.1.tgz", + "integrity": "sha512-x0LvFTekgSX+83TI28Y9wYPUfzrnl2aT5+5QLnO6v7mSJYtEEevuDRN0F0uSHRk1G1IWZC43o00Y0xDDrpBGPQ==", + "dev": true, + "requires": { + "@babel/helper-string-parser": "^7.27.1", + "@babel/helper-validator-identifier": "^7.27.1" + } + }, + "@bcoe/v8-coverage": { + "version": "0.2.3", + "resolved": "https://registry.npmjs.org/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz", + "integrity": "sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==", + "dev": true + }, + "@istanbuljs/load-nyc-config": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz", + "integrity": "sha512-VjeHSlIzpv/NyD3N0YuHfXOPDIixcA1q2ZV98wsMqcYlPmv2n3Yb2lYP9XMElnaFVXg5A7YLTeLu6V84uQDjmQ==", + "dev": true, + "requires": { + "camelcase": "^5.3.1", + "find-up": "^4.1.0", + "get-package-type": "^0.1.0", + "js-yaml": "^3.13.1", + "resolve-from": "^5.0.0" + } + }, + "@istanbuljs/schema": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/@istanbuljs/schema/-/schema-0.1.3.tgz", + "integrity": "sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA==", + "dev": true + }, + "@jest/console": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/@jest/console/-/console-29.6.1.tgz", + "integrity": "sha512-Aj772AYgwTSr5w8qnyoJ0eDYvN6bMsH3ORH1ivMotrInHLKdUz6BDlaEXHdM6kODaBIkNIyQGzsMvRdOv7VG7Q==", + "dev": true, + "requires": { + "@jest/types": "^29.6.1", + "@types/node": "*", + "chalk": "^4.0.0", + "jest-message-util": "^29.6.1", + "jest-util": "^29.6.1", + "slash": "^3.0.0" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "requires": { + "color-convert": "^2.0.1" + } + }, + "chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, + "@jest/core": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/@jest/core/-/core-29.6.1.tgz", + "integrity": "sha512-CcowHypRSm5oYQ1obz1wfvkjZZ2qoQlrKKvlfPwh5jUXVU12TWr2qMeH8chLMuTFzHh5a1g2yaqlqDICbr+ukQ==", + "dev": true, + "requires": { + "@jest/console": "^29.6.1", + "@jest/reporters": "^29.6.1", + "@jest/test-result": "^29.6.1", + "@jest/transform": "^29.6.1", + "@jest/types": "^29.6.1", + "@types/node": "*", + "ansi-escapes": "^4.2.1", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "exit": "^0.1.2", + "graceful-fs": "^4.2.9", + "jest-changed-files": "^29.5.0", + "jest-config": "^29.6.1", + "jest-haste-map": "^29.6.1", + "jest-message-util": "^29.6.1", + "jest-regex-util": "^29.4.3", + "jest-resolve": "^29.6.1", + "jest-resolve-dependencies": "^29.6.1", + "jest-runner": "^29.6.1", + "jest-runtime": "^29.6.1", + "jest-snapshot": "^29.6.1", + "jest-util": "^29.6.1", + "jest-validate": "^29.6.1", + "jest-watcher": "^29.6.1", + "micromatch": "^4.0.4", + "pretty-format": "^29.6.1", + "slash": "^3.0.0", + "strip-ansi": "^6.0.0" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "requires": { + "color-convert": "^2.0.1" + } + }, + "chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true + }, + "jest-config": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/jest-config/-/jest-config-29.6.1.tgz", + "integrity": "sha512-XdjYV2fy2xYixUiV2Wc54t3Z4oxYPAELUzWnV6+mcbq0rh742X2p52pii5A3oeRzYjLnQxCsZmp0qpI6klE2cQ==", + "dev": true, + "requires": { + "@babel/core": "^7.11.6", + "@jest/test-sequencer": "^29.6.1", + "@jest/types": "^29.6.1", + "babel-jest": "^29.6.1", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "deepmerge": "^4.2.2", + "glob": "^7.1.3", + "graceful-fs": "^4.2.9", + "jest-circus": "^29.6.1", + "jest-environment-node": "^29.6.1", + "jest-get-type": "^29.4.3", + "jest-regex-util": "^29.4.3", + "jest-resolve": "^29.6.1", + "jest-runner": "^29.6.1", + "jest-util": "^29.6.1", + "jest-validate": "^29.6.1", + "micromatch": "^4.0.4", + "parse-json": "^5.2.0", + "pretty-format": "^29.6.1", + "slash": "^3.0.0", + "strip-json-comments": "^3.1.1" + } + }, + "jest-get-type": { + "version": "29.4.3", + "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.4.3.tgz", + "integrity": "sha512-J5Xez4nRRMjk8emnTpWrlkyb9pfRQQanDrvWHhsR1+VUfbwxi30eVcZFlcdGInRibU4G5LwHXpI7IRHU0CY+gg==", + "dev": true + }, + "pretty-format": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.6.1.tgz", + "integrity": "sha512-7jRj+yXO0W7e4/tSJKoR7HRIHLPPjtNaUGG2xxKQnGvPNRkgWcQ0AZX6P4KBRJN4FcTBWb3sa7DVUJmocYuoog==", + "dev": true, + "requires": { + "@jest/schemas": "^29.6.0", + "ansi-styles": "^5.0.0", + "react-is": "^18.0.0" + }, + "dependencies": { + "ansi-styles": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", + "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", + "dev": true + } + } + }, + "react-is": { + "version": "18.2.0", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", + "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", + "dev": true + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, + "@jest/environment": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/environment/-/environment-29.7.0.tgz", + "integrity": "sha512-aQIfHDq33ExsN4jP1NWGXhxgQ/wixs60gDiKO+XVMd8Mn0NWPWgc34ZQDTb2jKaUWQ7MuwoitXAsN2XVXNMpAw==", + "dev": true, + "requires": { + "@jest/fake-timers": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "jest-mock": "^29.7.0" + } + }, + "@jest/expect": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/@jest/expect/-/expect-29.6.1.tgz", + "integrity": "sha512-N5xlPrAYaRNyFgVf2s9Uyyvr795jnB6rObuPx4QFvNJz8aAjpZUDfO4bh5G/xuplMID8PrnuF1+SfSyDxhsgYg==", + "dev": true, + "requires": { + "expect": "^29.6.1", + "jest-snapshot": "^29.6.1" + } + }, + "@jest/expect-utils": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/@jest/expect-utils/-/expect-utils-29.6.1.tgz", + "integrity": "sha512-o319vIf5pEMx0LmzSxxkYYxo4wrRLKHq9dP1yJU7FoPTB0LfAKSz8SWD6D/6U3v/O52t9cF5t+MeJiRsfk7zMw==", + "dev": true, + "requires": { + "jest-get-type": "^29.4.3" + }, + "dependencies": { + "jest-get-type": { + "version": "29.4.3", + "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.4.3.tgz", + "integrity": "sha512-J5Xez4nRRMjk8emnTpWrlkyb9pfRQQanDrvWHhsR1+VUfbwxi30eVcZFlcdGInRibU4G5LwHXpI7IRHU0CY+gg==", + "dev": true + } + } + }, + "@jest/fake-timers": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/fake-timers/-/fake-timers-29.7.0.tgz", + "integrity": "sha512-q4DH1Ha4TTFPdxLsqDXK1d3+ioSL7yL5oCMJZgDYm6i+6CygW5E5xVr/D1HdsGxjt1ZWSfUAs9OxSB/BNelWrQ==", + "dev": true, + "requires": { + "@jest/types": "^29.6.3", + "@sinonjs/fake-timers": "^10.0.2", + "@types/node": "*", + "jest-message-util": "^29.7.0", + "jest-mock": "^29.7.0", + "jest-util": "^29.7.0" + } + }, + "@jest/globals": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/@jest/globals/-/globals-29.6.1.tgz", + "integrity": "sha512-2VjpaGy78JY9n9370H8zGRCFbYVWwjY6RdDMhoJHa1sYfwe6XM/azGN0SjY8kk7BOZApIejQ1BFPyH7FPG0w3A==", + "dev": true, + "requires": { + "@jest/environment": "^29.6.1", + "@jest/expect": "^29.6.1", + "@jest/types": "^29.6.1", + "jest-mock": "^29.6.1" + } + }, + "@jest/reporters": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/@jest/reporters/-/reporters-29.6.1.tgz", + "integrity": "sha512-9zuaI9QKr9JnoZtFQlw4GREQbxgmNYXU6QuWtmuODvk5nvPUeBYapVR/VYMyi2WSx3jXTLJTJji8rN6+Cm4+FA==", + "dev": true, + "requires": { + "@bcoe/v8-coverage": "^0.2.3", + "@jest/console": "^29.6.1", + "@jest/test-result": "^29.6.1", + "@jest/transform": "^29.6.1", + "@jest/types": "^29.6.1", + "@jridgewell/trace-mapping": "^0.3.18", + "@types/node": "*", + "chalk": "^4.0.0", + "collect-v8-coverage": "^1.0.0", + "exit": "^0.1.2", + "glob": "^7.1.3", + "graceful-fs": "^4.2.9", + "istanbul-lib-coverage": "^3.0.0", + "istanbul-lib-instrument": "^5.1.0", + "istanbul-lib-report": "^3.0.0", + "istanbul-lib-source-maps": "^4.0.0", + "istanbul-reports": "^3.1.3", + "jest-message-util": "^29.6.1", + "jest-util": "^29.6.1", + "jest-worker": "^29.6.1", + "slash": "^3.0.0", + "string-length": "^4.0.1", + "strip-ansi": "^6.0.0", + "v8-to-istanbul": "^9.0.1" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "requires": { + "color-convert": "^2.0.1" + } + }, + "chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, + "@jest/schemas": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/@jest/schemas/-/schemas-29.6.3.tgz", + "integrity": "sha512-mo5j5X+jIZmJQveBKeS/clAueipV7KgiX1vMgCxam1RNYiqE1w62n0/tJJnHtjW8ZHcQco5gY85jA3mi0L+nSA==", + "dev": true, + "requires": { + "@sinclair/typebox": "^0.27.8" + } + }, + "@jest/source-map": { + "version": "29.6.0", + "resolved": "https://registry.npmjs.org/@jest/source-map/-/source-map-29.6.0.tgz", + "integrity": "sha512-oA+I2SHHQGxDCZpbrsCQSoMLb3Bz547JnM+jUr9qEbuw0vQlWZfpPS7CO9J7XiwKicEz9OFn/IYoLkkiUD7bzA==", + "dev": true, + "requires": { + "@jridgewell/trace-mapping": "^0.3.18", + "callsites": "^3.0.0", + "graceful-fs": "^4.2.9" + } + }, + "@jest/test-result": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/@jest/test-result/-/test-result-29.6.1.tgz", + "integrity": "sha512-Ynr13ZRcpX6INak0TPUukU8GWRfm/vAytE3JbJNGAvINySWYdfE7dGZMbk36oVuK4CigpbhMn8eg1dixZ7ZJOw==", + "dev": true, + "requires": { + "@jest/console": "^29.6.1", + "@jest/types": "^29.6.1", + "@types/istanbul-lib-coverage": "^2.0.0", + "collect-v8-coverage": "^1.0.0" + } + }, + "@jest/test-sequencer": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/@jest/test-sequencer/-/test-sequencer-29.6.1.tgz", + "integrity": "sha512-oBkC36PCDf/wb6dWeQIhaviU0l5u6VCsXa119yqdUosYAt7/FbQU2M2UoziO3igj/HBDEgp57ONQ3fm0v9uyyg==", + "dev": true, + "requires": { + "@jest/test-result": "^29.6.1", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.6.1", + "slash": "^3.0.0" + } + }, + "@jest/transform": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/@jest/transform/-/transform-29.6.1.tgz", + "integrity": "sha512-URnTneIU3ZjRSaf906cvf6Hpox3hIeJXRnz3VDSw5/X93gR8ycdfSIEy19FlVx8NFmpN7fe3Gb1xF+NjXaQLWg==", + "dev": true, + "requires": { + "@babel/core": "^7.11.6", + "@jest/types": "^29.6.1", + "@jridgewell/trace-mapping": "^0.3.18", + "babel-plugin-istanbul": "^6.1.1", + "chalk": "^4.0.0", + "convert-source-map": "^2.0.0", + "fast-json-stable-stringify": "^2.1.0", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.6.1", + "jest-regex-util": "^29.4.3", + "jest-util": "^29.6.1", + "micromatch": "^4.0.4", + "pirates": "^4.0.4", + "slash": "^3.0.0", + "write-file-atomic": "^4.0.2" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "requires": { + "color-convert": "^2.0.1" + } + }, + "chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, + "@jest/types": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-29.6.3.tgz", + "integrity": "sha512-u3UPsIilWKOM3F9CXtrG8LEJmNxwoCQC/XVj4IKYXvvpx7QIi/Kg1LI5uDmDpKlac62NUtX7eLjRh+jVZcLOzw==", + "dev": true, + "requires": { + "@jest/schemas": "^29.6.3", + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^17.0.8", + "chalk": "^4.0.0" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "requires": { + "color-convert": "^2.0.1" + } + }, + "chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, + "@jridgewell/gen-mapping": { + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.3.tgz", + "integrity": "sha512-HLhSWOLRi875zjjMG/r+Nv0oCW8umGb0BgEhyX3dDX3egwZtB8PqLnjz3yedt8R5StBrzcg4aBpnh8UA9D1BoQ==", + "dev": true, + "requires": { + "@jridgewell/set-array": "^1.0.1", + "@jridgewell/sourcemap-codec": "^1.4.10", + "@jridgewell/trace-mapping": "^0.3.9" + } + }, + "@jridgewell/resolve-uri": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.0.tgz", + "integrity": "sha512-F2msla3tad+Mfht5cJq7LSXcdudKTWCVYUgw6pLFOOHSTtZlj6SWNYAp+AhuqLmWdBO2X5hPrLcu8cVP8fy28w==", + "dev": true + }, + "@jridgewell/set-array": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.1.2.tgz", + "integrity": "sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==", + "dev": true + }, + "@jridgewell/sourcemap-codec": { + "version": "1.4.15", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz", + "integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==", + "dev": true + }, + "@jridgewell/trace-mapping": { + "version": "0.3.18", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.18.tgz", + "integrity": "sha512-w+niJYzMHdd7USdiH2U6869nqhD2nbfZXND5Yp93qIbEmnDNk7PD48o+YchRVpzMU7M6jVCbenTR7PA1FLQ9pA==", + "dev": true, + "requires": { + "@jridgewell/resolve-uri": "3.1.0", + "@jridgewell/sourcemap-codec": "1.4.14" + }, + "dependencies": { + "@jridgewell/sourcemap-codec": { + "version": "1.4.14", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.14.tgz", + "integrity": "sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw==", + "dev": true + } + } + }, + "@jsdoc/salty": { + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/@jsdoc/salty/-/salty-0.2.5.tgz", + "integrity": "sha512-TfRP53RqunNe2HBobVBJ0VLhK1HbfvBYeTC1ahnN64PWvyYyGebmMiPkuwvD9fpw2ZbkoPb8Q7mwy0aR8Z9rvw==", + "dev": true, + "requires": { + "lodash": "^4.17.21" + } + }, + "@noble/curves": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/@noble/curves/-/curves-2.0.1.tgz", + "integrity": "sha512-vs1Az2OOTBiP4q0pwjW5aF0xp9n4MxVrmkFBxc6EKZc6ddYx5gaZiAsZoq0uRRXWbi3AT/sBqn05eRPtn1JCPw==", + "requires": { + "@noble/hashes": "2.0.1" + } + }, + "@noble/hashes": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-2.0.1.tgz", + "integrity": "sha512-XlOlEbQcE9fmuXxrVTXCTlG2nlRXa9Rj3rr5Ue/+tX+nmkgbX720YHh0VR3hBF9xDvwnb8D2shVGOwNx+ulArw==" + }, + "@noble/post-quantum": { + "version": "0.5.2", + "resolved": "https://registry.npmjs.org/@noble/post-quantum/-/post-quantum-0.5.2.tgz", + "integrity": "sha512-etMDBkCuB95Xj/gfsWYBD2x+84IjL4uMLd/FhGoUUG/g+eh0K2eP7pJz1EmvpN8Df3vKdoWVAc7RxIBCHQfFHQ==", + "requires": { + "@noble/curves": "~2.0.0", + "@noble/hashes": "~2.0.0" + } + }, + "@protobufjs/aspromise": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@protobufjs/aspromise/-/aspromise-1.1.2.tgz", + "integrity": "sha1-m4sMxmPWaafY9vXQiToU00jzD78=", + "dev": true + }, + "@protobufjs/base64": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@protobufjs/base64/-/base64-1.1.2.tgz", + "integrity": "sha512-AZkcAA5vnN/v4PDqKyMR5lx7hZttPDgClv83E//FMNhR2TMcLUhfRUBHCmSl0oi9zMgDDqRUJkSxO3wm85+XLg==", + "dev": true + }, + "@protobufjs/codegen": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/@protobufjs/codegen/-/codegen-2.0.4.tgz", + "integrity": "sha512-YyFaikqM5sH0ziFZCN3xDC7zeGaB/d0IUb9CATugHWbd1FRFwWwt4ld4OYMPWu5a3Xe01mGAULCdqhMlPl29Jg==", + "dev": true + }, + "@protobufjs/eventemitter": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@protobufjs/eventemitter/-/eventemitter-1.1.0.tgz", + "integrity": "sha1-NVy8mLr61ZePntCV85diHx0Ga3A=", + "dev": true + }, + "@protobufjs/fetch": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@protobufjs/fetch/-/fetch-1.1.0.tgz", + "integrity": "sha1-upn7WYYUr2VwDBYZ/wbUVLDYTEU=", + "dev": true, + "requires": { + "@protobufjs/aspromise": "^1.1.1", + "@protobufjs/inquire": "^1.1.0" + } + }, + "@protobufjs/float": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@protobufjs/float/-/float-1.0.2.tgz", + "integrity": "sha1-Xp4avctz/Ap8uLKR33jIy9l7h9E=", + "dev": true + }, + "@protobufjs/inquire": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@protobufjs/inquire/-/inquire-1.1.0.tgz", + "integrity": "sha1-/yAOPnzyQp4tyvwRQIKOjMY48Ik=", + "dev": true + }, + "@protobufjs/path": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@protobufjs/path/-/path-1.1.2.tgz", + "integrity": "sha1-bMKyDFya1q0NzP0hynZz2Nf79o0=", + "dev": true + }, + "@protobufjs/pool": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@protobufjs/pool/-/pool-1.1.0.tgz", + "integrity": "sha1-Cf0V8tbTq/qbZbw2ZQbWrXhG/1Q=", + "dev": true + }, + "@protobufjs/utf8": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@protobufjs/utf8/-/utf8-1.1.0.tgz", + "integrity": "sha1-p3c2C1s5oaLlEG+OhY8v0tBgxXA=", + "dev": true + }, + "@rollup/plugin-commonjs": { + "version": "22.0.1", + "resolved": "https://registry.npmjs.org/@rollup/plugin-commonjs/-/plugin-commonjs-22.0.1.tgz", + "integrity": "sha512-dGfEZvdjDHObBiP5IvwTKMVeq/tBZGMBHZFMdIV1ClMM/YoWS34xrHFGfag9SN2ZtMgNZRFruqvxZQEa70O6nQ==", + "dev": true, + "requires": { + "@rollup/pluginutils": "^3.1.0", + "commondir": "^1.0.1", + "estree-walker": "^2.0.1", + "glob": "^7.1.6", + "is-reference": "^1.2.1", + "magic-string": "^0.25.7", + "resolve": "^1.17.0" + }, + "dependencies": { + "estree-walker": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-2.0.2.tgz", + "integrity": "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==", + "dev": true + } + } + }, + "@rollup/plugin-node-resolve": { + "version": "13.3.0", + "resolved": "https://registry.npmjs.org/@rollup/plugin-node-resolve/-/plugin-node-resolve-13.3.0.tgz", + "integrity": "sha512-Lus8rbUo1eEcnS4yTFKLZrVumLPY+YayBdWXgFSHYhTT2iJbMhoaaBL3xl5NCdeRytErGr8tZ0L71BMRmnlwSw==", + "dev": true, + "requires": { + "@rollup/pluginutils": "^3.1.0", + "@types/resolve": "1.17.1", + "deepmerge": "^4.2.2", + "is-builtin-module": "^3.1.0", + "is-module": "^1.0.0", + "resolve": "^1.19.0" + } + }, + "@rollup/pluginutils": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/@rollup/pluginutils/-/pluginutils-3.1.0.tgz", + "integrity": "sha512-GksZ6pr6TpIjHm8h9lSQ8pi8BE9VeubNT0OMJ3B5uZJ8pz73NPiqOtCog/x2/QzM1ENChPKxMDhiQuRHsqc+lg==", + "dev": true, + "requires": { + "@types/estree": "0.0.39", + "estree-walker": "^1.0.1", + "picomatch": "^2.2.2" + } + }, + "@sinclair/typebox": { + "version": "0.27.8", + "resolved": "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.27.8.tgz", + "integrity": "sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA==", + "dev": true + }, + "@sinonjs/commons": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@sinonjs/commons/-/commons-3.0.0.tgz", + "integrity": "sha512-jXBtWAF4vmdNmZgD5FoKsVLv3rPgDnLgPbU84LIJ3otV44vJlDRokVng5v8NFJdCf/da9legHcKaRuZs4L7faA==", + "dev": true, + "requires": { + "type-detect": "4.0.8" + } + }, + "@sinonjs/fake-timers": { + "version": "10.3.0", + "resolved": "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-10.3.0.tgz", + "integrity": "sha512-V4BG07kuYSUkTCSBHG8G8TNhM+F19jXFWnQtzj+we8DrkpSBCee9Z3Ms8yiGer/dlmhe35/Xdgyo3/0rQKg7YA==", + "dev": true, + "requires": { + "@sinonjs/commons": "^3.0.0" + } + }, + "@tootallnate/once": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@tootallnate/once/-/once-2.0.0.tgz", + "integrity": "sha512-XCuKFP5PS55gnMVu3dty8KPatLqUoy/ZYzDzAGCQ8JNFCkLXzmI7vNHCR+XpbZaMWQK/vQubr7PkYq8g470J/A==", + "dev": true + }, + "@types/babel__core": { + "version": "7.20.1", + "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.1.tgz", + "integrity": "sha512-aACu/U/omhdk15O4Nfb+fHgH/z3QsfQzpnvRZhYhThms83ZnAOZz7zZAWO7mn2yyNQaA4xTO8GLK3uqFU4bYYw==", + "dev": true, + "requires": { + "@babel/parser": "^7.20.7", + "@babel/types": "^7.20.7", + "@types/babel__generator": "*", + "@types/babel__template": "*", + "@types/babel__traverse": "*" + } + }, + "@types/babel__generator": { + "version": "7.6.4", + "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.6.4.tgz", + "integrity": "sha512-tFkciB9j2K755yrTALxD44McOrk+gfpIpvC3sxHjRawj6PfnQxrse4Clq5y/Rq+G3mrBurMax/lG8Qn2t9mSsg==", + "dev": true, + "requires": { + "@babel/types": "^7.0.0" + } }, - "@jest/types": { - "optional": true + "@types/babel__template": { + "version": "7.4.1", + "resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.1.tgz", + "integrity": "sha512-azBFKemX6kMg5Io+/rdGT0dkGreboUVR0Cdm3fz9QJWpaQGJRQXl7C+6hOTCZcMll7KFyEQpgbYI2lHdsS4U7g==", + "dev": true, + "requires": { + "@babel/parser": "^7.1.0", + "@babel/types": "^7.0.0" + } }, - "babel-jest": { - "optional": true + "@types/babel__traverse": { + "version": "7.20.1", + "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.20.1.tgz", + "integrity": "sha512-MitHFXnhtgwsGZWtT68URpOvLN4EREih1u3QtQiN4VdAxWKRVvGCSvw/Qth0M0Qq3pJpnGOu5JaM/ydK7OGbqg==", + "dev": true, + "requires": { + "@babel/types": "^7.20.7" + } }, - "esbuild": { - "optional": true - } - } - }, - "node_modules/ts-jest/node_modules/lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dev": true, - "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/ts-jest/node_modules/semver": { - "version": "7.5.4", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", - "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", - "dev": true, - "dependencies": { - "lru-cache": "^6.0.0" - }, - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/ts-jest/node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true - }, - "node_modules/ts-node": { - "version": "8.10.2", - "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-8.10.2.tgz", - "integrity": "sha512-ISJJGgkIpDdBhWVu3jufsWpK3Rzo7bdiIXJjQc0ynKxVOVcg2oIrf2H2cejminGrptVc6q6/uynAHNCuWGbpVA==", - "dev": true, - "dependencies": { - "arg": "^4.1.0", - "diff": "^4.0.1", - "make-error": "^1.1.1", - "source-map-support": "^0.5.17", - "yn": "3.1.1" - }, - "bin": { - "ts-node": "dist/bin.js", - "ts-node-script": "dist/bin-script.js", - "ts-node-transpile-only": "dist/bin-transpile.js", - "ts-script": "dist/bin-script-deprecated.js" - }, - "engines": { - "node": ">=6.0.0" - }, - "peerDependencies": { - "typescript": ">=2.7" - } - }, - "node_modules/tslib": { - "version": "2.4.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.0.tgz", - "integrity": "sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ==", - "dev": true - }, - "node_modules/type-check": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.3.2.tgz", - "integrity": "sha512-ZCmOJdvOWDBYJlzAoFkC+Q0+bUyEOS1ltgp1MGU03fqHG+dbi9tBFU2Rd9QKiDZFAYrhPh2JUf7rZRIuHRKtOg==", - "dev": true, - "dependencies": { - "prelude-ls": "~1.1.2" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/type-detect": { - "version": "4.0.8", - "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz", - "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/type-fest": { - "version": "0.21.3", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz", - "integrity": "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/typescript": { - "version": "4.6.4", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.6.4.tgz", - "integrity": "sha512-9ia/jWHIEbo49HfjrLGfKbZSuWo9iTMwXO+Ca3pRsSpbsMbc7/IU8NKdCZVRRBafVPGnoJeFL76ZOAA84I9fEg==", - "dev": true, - "bin": { - "tsc": "bin/tsc", - "tsserver": "bin/tsserver" - }, - "engines": { - "node": ">=4.2.0" - } - }, - "node_modules/uc.micro": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/uc.micro/-/uc.micro-1.0.6.tgz", - "integrity": "sha512-8Y75pvTYkLJW2hWQHXxoqRgV7qb9B+9vFEtidML+7koHUFapnVJAZ6cKs+Qjz5Aw3aZWHMC6u0wJE3At+nSGwA==", - "dev": true - }, - "node_modules/uglify-js": { - "version": "3.17.4", - "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.17.4.tgz", - "integrity": "sha512-T9q82TJI9e/C1TAxYvfb16xO120tMVFZrGA3f9/P4424DNu6ypK103y0GPFVa17yotwSyZW5iYXgjYHkGrJW/g==", - "dev": true, - "bin": { - "uglifyjs": "bin/uglifyjs" - }, - "engines": { - "node": ">=0.8.0" - } - }, - "node_modules/underscore": { - "version": "1.13.6", - "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.13.6.tgz", - "integrity": "sha512-+A5Sja4HP1M08MaXya7p5LvjuM7K6q/2EaC0+iovj/wOcMsTzMvDFbasi/oSapiwOlt252IqsKqPjCl7huKS0A==", - "dev": true - }, - "node_modules/undici-types": { - "version": "5.26.5", - "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz", - "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==", - "dev": true - }, - "node_modules/unicode-canonical-property-names-ecmascript": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-2.0.0.tgz", - "integrity": "sha512-yY5PpDlfVIU5+y/BSCxAJRBIS1Zc2dDG3Ujq+sR0U+JjUevW2JhocOF+soROYDSaAezOzOKuyyixhD6mBknSmQ==", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/unicode-match-property-ecmascript": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/unicode-match-property-ecmascript/-/unicode-match-property-ecmascript-2.0.0.tgz", - "integrity": "sha512-5kaZCrbp5mmbz5ulBkDkbY0SsPOjKqVS35VpL9ulMPfSl0J0Xsm+9Evphv9CoIZFwre7aJoa94AY6seMKGVN5Q==", - "dev": true, - "dependencies": { - "unicode-canonical-property-names-ecmascript": "^2.0.0", - "unicode-property-aliases-ecmascript": "^2.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/unicode-match-property-value-ecmascript": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/unicode-match-property-value-ecmascript/-/unicode-match-property-value-ecmascript-2.1.0.tgz", - "integrity": "sha512-qxkjQt6qjg/mYscYMC0XKRn3Rh0wFPlfxB0xkt9CfyTvpX1Ra0+rAmdX2QyAobptSEvuy4RtpPRui6XkV+8wjA==", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/unicode-property-aliases-ecmascript": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/unicode-property-aliases-ecmascript/-/unicode-property-aliases-ecmascript-2.1.0.tgz", - "integrity": "sha512-6t3foTQI9qne+OZoVQB/8x8rk2k1eVy1gRXhV3oFQ5T6R1dqQ1xtin3XqSlx3+ATBkliTaR/hHyJBm+LVPNM8w==", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/universalify": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.0.tgz", - "integrity": "sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ==", - "dev": true, - "engines": { - "node": ">= 10.0.0" - } - }, - "node_modules/update-browserslist-db": { - "version": "1.0.13", - "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.13.tgz", - "integrity": "sha512-xebP81SNcPuNpPP3uzeW1NYXxI3rxyJzF3pD6sH4jE7o/IX+WtSpwnVU+qIsDPyk0d3hmFQ7mjqc6AtV604hbg==", - "dev": true, - "funding": [ - { - "type": "opencollective", - "url": "https://opencollective.com/browserslist" - }, - { - "type": "tidelift", - "url": "https://tidelift.com/funding/github/npm/browserslist" - }, - { - "type": "github", - "url": "https://github.com/sponsors/ai" - } - ], - "dependencies": { - "escalade": "^3.1.1", - "picocolors": "^1.0.0" - }, - "bin": { - "update-browserslist-db": "cli.js" - }, - "peerDependencies": { - "browserslist": ">= 4.21.0" - } - }, - "node_modules/url-parse": { - "version": "1.5.10", - "resolved": "https://registry.npmjs.org/url-parse/-/url-parse-1.5.10.tgz", - "integrity": "sha512-WypcfiRhfeUP9vvF0j6rw0J3hrWrw6iZv3+22h6iRMJ/8z1Tj6XfLP4DsUix5MhMPnXpiHDoKyoZ/bdCkwBCiQ==", - "dev": true, - "dependencies": { - "querystringify": "^2.1.1", - "requires-port": "^1.0.0" - } - }, - "node_modules/v8-to-istanbul": { - "version": "9.1.0", - "resolved": "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-9.1.0.tgz", - "integrity": "sha512-6z3GW9x8G1gd+JIIgQQQxXuiJtCXeAjp6RaPEPLv62mH3iPHPxV6W3robxtCzNErRo6ZwTmzWhsbNvjyEBKzKA==", - "dev": true, - "dependencies": { - "@jridgewell/trace-mapping": "^0.3.12", - "@types/istanbul-lib-coverage": "^2.0.1", - "convert-source-map": "^1.6.0" - }, - "engines": { - "node": ">=10.12.0" - } - }, - "node_modules/v8-to-istanbul/node_modules/convert-source-map": { - "version": "1.9.0", - "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.9.0.tgz", - "integrity": "sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A==", - "dev": true - }, - "node_modules/w3c-xmlserializer": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/w3c-xmlserializer/-/w3c-xmlserializer-4.0.0.tgz", - "integrity": "sha512-d+BFHzbiCx6zGfz0HyQ6Rg69w9k19nviJspaj4yNscGjrHu94sVP+aRm75yEbCh+r2/yR+7q6hux9LVtbuTGBw==", - "dev": true, - "dependencies": { - "xml-name-validator": "^4.0.0" - }, - "engines": { - "node": ">=14" - } - }, - "node_modules/walker": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/walker/-/walker-1.0.8.tgz", - "integrity": "sha512-ts/8E8l5b7kY0vlWLewOkDXMmPdLcVV4GmOQLyxuSswIJsweeFZtAsMF7k1Nszz+TYBQrlYRmzOnr398y1JemQ==", - "dev": true, - "dependencies": { - "makeerror": "1.0.12" - } - }, - "node_modules/webidl-conversions": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-7.0.0.tgz", - "integrity": "sha512-VwddBukDzu71offAQR975unBIGqfKZpM+8ZX6ySk8nYhVoo5CYaZyzt3YBvYtRtO+aoGlqxPg/B87NGVZ/fu6g==", - "dev": true, - "engines": { - "node": ">=12" - } - }, - "node_modules/websocket-driver": { - "version": "0.7.4", - "resolved": "https://registry.npmjs.org/websocket-driver/-/websocket-driver-0.7.4.tgz", - "integrity": "sha512-b17KeDIQVjvb0ssuSDF2cYXSg2iztliJ4B9WdsuB6J952qCPKmnVq4DyW5motImXHDC1cBT/1UezrJVsKw5zjg==", - "dependencies": { - "http-parser-js": ">=0.5.1", - "safe-buffer": ">=5.1.0", - "websocket-extensions": ">=0.1.1" - }, - "engines": { - "node": ">=0.8.0" - } - }, - "node_modules/websocket-extensions": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/websocket-extensions/-/websocket-extensions-0.1.4.tgz", - "integrity": "sha512-OqedPIGOfsDlo31UNwYbCFMSaO9m9G/0faIHj5/dZFDMFqPTcx6UwqyOy3COEaEOg/9VsGIpdqn62W5KhoKSpg==", - "engines": { - "node": ">=0.8.0" - } - }, - "node_modules/whatwg-encoding": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/whatwg-encoding/-/whatwg-encoding-2.0.0.tgz", - "integrity": "sha512-p41ogyeMUrw3jWclHWTQg1k05DSVXPLcVxRTYsXUk+ZooOCZLcoYgPZ/HL/D/N+uQPOtcp1me1WhBEaX02mhWg==", - "dev": true, - "dependencies": { - "iconv-lite": "0.6.3" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/whatwg-mimetype": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/whatwg-mimetype/-/whatwg-mimetype-3.0.0.tgz", - "integrity": "sha512-nt+N2dzIutVRxARx1nghPKGv1xHikU7HKdfafKkLNLindmPU/ch3U31NOCGGA/dmPcmb1VlofO0vnKAcsm0o/Q==", - "dev": true, - "engines": { - "node": ">=12" - } - }, - "node_modules/whatwg-url": { - "version": "11.0.0", - "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-11.0.0.tgz", - "integrity": "sha512-RKT8HExMpoYx4igMiVMY83lN6UeITKJlBQ+vR/8ZJ8OCdSiN3RwCq+9gH0+Xzj0+5IrM6i4j/6LuvzbZIQgEcQ==", - "dev": true, - "dependencies": { - "tr46": "^3.0.0", - "webidl-conversions": "^7.0.0" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/which": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", - "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", - "dev": true, - "dependencies": { - "isexe": "^2.0.0" - }, - "bin": { - "node-which": "bin/node-which" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/word-wrap": { - "version": "1.2.5", - "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz", - "integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/wrap-ansi": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", - "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/wrap-ansi?sponsor=1" - } - }, - "node_modules/wrap-ansi/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/wrap-ansi/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/wrap-ansi/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "node_modules/wrappy": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", - "dev": true - }, - "node_modules/write-file-atomic": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-4.0.2.tgz", - "integrity": "sha512-7KxauUdBmSdWnmpaGFg+ppNjKF8uNLry8LyzjauQDOVONfFLNKrKvQOxZ/VuTIcS/gge/YNahf5RIIQWTSarlg==", - "dev": true, - "dependencies": { - "imurmurhash": "^0.1.4", - "signal-exit": "^3.0.7" - }, - "engines": { - "node": "^12.13.0 || ^14.15.0 || >=16.0.0" - } - }, - "node_modules/ws": { - "version": "8.17.1", - "resolved": "https://registry.npmjs.org/ws/-/ws-8.17.1.tgz", - "integrity": "sha512-6XQFvXTkbfUOZOKKILFG1PDK2NDQs4azKQl26T0YS5CxqWLgXajbPZ+h4gZekJyRqFU8pvnbAbbs/3TgRPy+GQ==", - "dev": true, - "engines": { - "node": ">=10.0.0" - }, - "peerDependencies": { - "bufferutil": "^4.0.1", - "utf-8-validate": ">=5.0.2" - }, - "peerDependenciesMeta": { - "bufferutil": { - "optional": true - }, - "utf-8-validate": { - "optional": true - } - } - }, - "node_modules/xml-name-validator": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/xml-name-validator/-/xml-name-validator-4.0.0.tgz", - "integrity": "sha512-ICP2e+jsHvAj2E2lIHxa5tjXRlKDJo4IdvPvCXbXQGdzSfmSpNVyIKMvoZHjDY9DP0zV17iI85o90vRFXNccRw==", - "dev": true, - "engines": { - "node": ">=12" - } - }, - "node_modules/xmlchars": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/xmlchars/-/xmlchars-2.2.0.tgz", - "integrity": "sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw==", - "dev": true - }, - "node_modules/xmlcreate": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/xmlcreate/-/xmlcreate-2.0.4.tgz", - "integrity": "sha512-nquOebG4sngPmGPICTS5EnxqhKbCmz5Ox5hsszI2T6U5qdrJizBc+0ilYSEjTSzU0yZcmvppztXe/5Al5fUwdg==", - "dev": true - }, - "node_modules/y18n": { - "version": "5.0.8", - "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", - "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", - "dev": true, - "engines": { - "node": ">=10" - } - }, - "node_modules/yallist": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", - "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", - "dev": true - }, - "node_modules/yargs": { - "version": "17.7.2", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz", - "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==", - "dev": true, - "dependencies": { - "cliui": "^8.0.1", - "escalade": "^3.1.1", - "get-caller-file": "^2.0.5", - "require-directory": "^2.1.1", - "string-width": "^4.2.3", - "y18n": "^5.0.5", - "yargs-parser": "^21.1.1" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/yargs-parser": { - "version": "21.1.1", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", - "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", - "dev": true, - "engines": { - "node": ">=12" - } - }, - "node_modules/yn": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz", - "integrity": "sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/yocto-queue": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", - "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - } - }, - "dependencies": { - "@ampproject/remapping": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.2.1.tgz", - "integrity": "sha512-lFMjJTrFL3j7L9yBxwYfCq2k6qqwHyzuUl/XBnif78PWTJYyL/dfowQHWE3sp6U6ZzqWiiIZnpTMO96zhkjwtg==", - "dev": true, - "requires": { - "@jridgewell/gen-mapping": "^0.3.0", - "@jridgewell/trace-mapping": "^0.3.9" - } - }, - "@babel/code-frame": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.27.1.tgz", - "integrity": "sha512-cjQ7ZlQ0Mv3b47hABuTevyTuYN4i+loJKGeV9flcCgIK37cCXRh+L1bd3iBHlynerhQ7BhCkn2BPbQUL+rGqFg==", - "dev": true, - "requires": { - "@babel/helper-validator-identifier": "^7.27.1", - "js-tokens": "^4.0.0", - "picocolors": "^1.1.1" - } - }, - "@babel/compat-data": { - "version": "7.23.5", - "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.23.5.tgz", - "integrity": "sha512-uU27kfDRlhfKl+w1U6vp16IuvSLtjAxdArVXPa9BvLkrr7CYIsxH5adpHObeAGY/41+syctUWOZ140a2Rvkgjw==", - "dev": true - }, - "@babel/core": { - "version": "7.22.9", - "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.22.9.tgz", - "integrity": "sha512-G2EgeufBcYw27U4hhoIwFcgc1XU7TlXJ3mv04oOv1WCuo900U/anZSPzEqNjwdjgffkk2Gs0AN0dW1CKVLcG7w==", - "dev": true, - "requires": { - "@ampproject/remapping": "^2.2.0", - "@babel/code-frame": "^7.22.5", - "@babel/generator": "^7.22.9", - "@babel/helper-compilation-targets": "^7.22.9", - "@babel/helper-module-transforms": "^7.22.9", - "@babel/helpers": "^7.22.6", - "@babel/parser": "^7.22.7", - "@babel/template": "^7.22.5", - "@babel/traverse": "^7.22.8", - "@babel/types": "^7.22.5", - "convert-source-map": "^1.7.0", - "debug": "^4.1.0", - "gensync": "^1.0.0-beta.2", - "json5": "^2.2.2", - "semver": "^6.3.1" - }, - "dependencies": { - "convert-source-map": { - "version": "1.9.0", - "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.9.0.tgz", - "integrity": "sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A==", - "dev": true - } - } - }, - "@babel/generator": { - "version": "7.23.0", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.23.0.tgz", - "integrity": "sha512-lN85QRR+5IbYrMWM6Y4pE/noaQtg4pNiqeNGX60eqOfo6gtEj6uw/JagelB8vVztSd7R6M5n1+PQkDbHbBRU4g==", - "dev": true, - "requires": { - "@babel/types": "^7.23.0", - "@jridgewell/gen-mapping": "^0.3.2", - "@jridgewell/trace-mapping": "^0.3.17", - "jsesc": "^2.5.1" - } - }, - "@babel/helper-annotate-as-pure": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.22.5.tgz", - "integrity": "sha512-LvBTxu8bQSQkcyKOU+a1btnNFQ1dMAd0R6PyW3arXes06F6QLWLIrd681bxRPIXlrMGR3XYnW9JyML7dP3qgxg==", - "dev": true, - "requires": { - "@babel/types": "^7.22.5" - } - }, - "@babel/helper-builder-binary-assignment-operator-visitor": { - "version": "7.22.15", - "resolved": "https://registry.npmjs.org/@babel/helper-builder-binary-assignment-operator-visitor/-/helper-builder-binary-assignment-operator-visitor-7.22.15.tgz", - "integrity": "sha512-QkBXwGgaoC2GtGZRoma6kv7Szfv06khvhFav67ZExau2RaXzy8MpHSMO2PNoP2XtmQphJQRHFfg77Bq731Yizw==", - "dev": true, - "requires": { - "@babel/types": "^7.22.15" - } - }, - "@babel/helper-compilation-targets": { - "version": "7.22.15", - "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.22.15.tgz", - "integrity": "sha512-y6EEzULok0Qvz8yyLkCvVX+02ic+By2UdOhylwUOvOn9dvYc9mKICJuuU1n1XBI02YWsNsnrY1kc6DVbjcXbtw==", - "dev": true, - "requires": { - "@babel/compat-data": "^7.22.9", - "@babel/helper-validator-option": "^7.22.15", - "browserslist": "^4.21.9", - "lru-cache": "^5.1.1", - "semver": "^6.3.1" - } - }, - "@babel/helper-create-class-features-plugin": { - "version": "7.23.5", - "resolved": "https://registry.npmjs.org/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.23.5.tgz", - "integrity": "sha512-QELlRWxSpgdwdJzSJn4WAhKC+hvw/AtHbbrIoncKHkhKKR/luAlKkgBDcri1EzWAo8f8VvYVryEHN4tax/V67A==", - "dev": true, - "requires": { - "@babel/helper-annotate-as-pure": "^7.22.5", - "@babel/helper-environment-visitor": "^7.22.20", - "@babel/helper-function-name": "^7.23.0", - "@babel/helper-member-expression-to-functions": "^7.23.0", - "@babel/helper-optimise-call-expression": "^7.22.5", - "@babel/helper-replace-supers": "^7.22.20", - "@babel/helper-skip-transparent-expression-wrappers": "^7.22.5", - "@babel/helper-split-export-declaration": "^7.22.6", - "semver": "^6.3.1" - } - }, - "@babel/helper-create-regexp-features-plugin": { - "version": "7.22.15", - "resolved": "https://registry.npmjs.org/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.22.15.tgz", - "integrity": "sha512-29FkPLFjn4TPEa3RE7GpW+qbE8tlsu3jntNYNfcGsc49LphF1PQIiD+vMZ1z1xVOKt+93khA9tc2JBs3kBjA7w==", - "dev": true, - "requires": { - "@babel/helper-annotate-as-pure": "^7.22.5", - "regexpu-core": "^5.3.1", - "semver": "^6.3.1" - } - }, - "@babel/helper-define-polyfill-provider": { - "version": "0.4.3", - "resolved": "https://registry.npmjs.org/@babel/helper-define-polyfill-provider/-/helper-define-polyfill-provider-0.4.3.tgz", - "integrity": "sha512-WBrLmuPP47n7PNwsZ57pqam6G/RGo1vw/87b0Blc53tZNGZ4x7YvZ6HgQe2vo1W/FR20OgjeZuGXzudPiXHFug==", - "dev": true, - "requires": { - "@babel/helper-compilation-targets": "^7.22.6", - "@babel/helper-plugin-utils": "^7.22.5", - "debug": "^4.1.1", - "lodash.debounce": "^4.0.8", - "resolve": "^1.14.2" - } - }, - "@babel/helper-environment-visitor": { - "version": "7.22.20", - "resolved": "https://registry.npmjs.org/@babel/helper-environment-visitor/-/helper-environment-visitor-7.22.20.tgz", - "integrity": "sha512-zfedSIzFhat/gFhWfHtgWvlec0nqB9YEIVrpuwjruLlXfUSnA8cJB0miHKwqDnQ7d32aKo2xt88/xZptwxbfhA==", - "dev": true - }, - "@babel/helper-function-name": { - "version": "7.23.0", - "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.23.0.tgz", - "integrity": "sha512-OErEqsrxjZTJciZ4Oo+eoZqeW9UIiOcuYKRJA4ZAgV9myA+pOXhhmpfNCKjEH/auVfEYVFJ6y1Tc4r0eIApqiw==", - "dev": true, - "requires": { - "@babel/template": "^7.22.15", - "@babel/types": "^7.23.0" - } - }, - "@babel/helper-hoist-variables": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.22.5.tgz", - "integrity": "sha512-wGjk9QZVzvknA6yKIUURb8zY3grXCcOZt+/7Wcy8O2uctxhplmUPkOdlgoNhmdVee2c92JXbf1xpMtVNbfoxRw==", - "dev": true, - "requires": { - "@babel/types": "^7.22.5" - } - }, - "@babel/helper-member-expression-to-functions": { - "version": "7.23.0", - "resolved": "https://registry.npmjs.org/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.23.0.tgz", - "integrity": "sha512-6gfrPwh7OuT6gZyJZvd6WbTfrqAo7vm4xCzAXOusKqq/vWdKXphTpj5klHKNmRUU6/QRGlBsyU9mAIPaWHlqJA==", - "dev": true, - "requires": { - "@babel/types": "^7.23.0" - } - }, - "@babel/helper-module-imports": { - "version": "7.22.15", - "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.22.15.tgz", - "integrity": "sha512-0pYVBnDKZO2fnSPCrgM/6WMc7eS20Fbok+0r88fp+YtWVLZrp4CkafFGIp+W0VKw4a22sgebPT99y+FDNMdP4w==", - "dev": true, - "requires": { - "@babel/types": "^7.22.15" - } - }, - "@babel/helper-module-transforms": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.23.3.tgz", - "integrity": "sha512-7bBs4ED9OmswdfDzpz4MpWgSrV7FXlc3zIagvLFjS5H+Mk7Snr21vQ6QwrsoCGMfNC4e4LQPdoULEt4ykz0SRQ==", - "dev": true, - "requires": { - "@babel/helper-environment-visitor": "^7.22.20", - "@babel/helper-module-imports": "^7.22.15", - "@babel/helper-simple-access": "^7.22.5", - "@babel/helper-split-export-declaration": "^7.22.6", - "@babel/helper-validator-identifier": "^7.22.20" - } - }, - "@babel/helper-optimise-call-expression": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.22.5.tgz", - "integrity": "sha512-HBwaojN0xFRx4yIvpwGqxiV2tUfl7401jlok564NgB9EHS1y6QT17FmKWm4ztqjeVdXLuC4fSvHc5ePpQjoTbw==", - "dev": true, - "requires": { - "@babel/types": "^7.22.5" - } - }, - "@babel/helper-plugin-utils": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.22.5.tgz", - "integrity": "sha512-uLls06UVKgFG9QD4OeFYLEGteMIAa5kpTPcFL28yuCIIzsf6ZyKZMllKVOCZFhiZ5ptnwX4mtKdWCBE/uT4amg==", - "dev": true - }, - "@babel/helper-remap-async-to-generator": { - "version": "7.22.20", - "resolved": "https://registry.npmjs.org/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.22.20.tgz", - "integrity": "sha512-pBGyV4uBqOns+0UvhsTO8qgl8hO89PmiDYv+/COyp1aeMcmfrfruz+/nCMFiYyFF/Knn0yfrC85ZzNFjembFTw==", - "dev": true, - "requires": { - "@babel/helper-annotate-as-pure": "^7.22.5", - "@babel/helper-environment-visitor": "^7.22.20", - "@babel/helper-wrap-function": "^7.22.20" - } - }, - "@babel/helper-replace-supers": { - "version": "7.22.20", - "resolved": "https://registry.npmjs.org/@babel/helper-replace-supers/-/helper-replace-supers-7.22.20.tgz", - "integrity": "sha512-qsW0In3dbwQUbK8kejJ4R7IHVGwHJlV6lpG6UA7a9hSa2YEiAib+N1T2kr6PEeUT+Fl7najmSOS6SmAwCHK6Tw==", - "dev": true, - "requires": { - "@babel/helper-environment-visitor": "^7.22.20", - "@babel/helper-member-expression-to-functions": "^7.22.15", - "@babel/helper-optimise-call-expression": "^7.22.5" - } - }, - "@babel/helper-simple-access": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.22.5.tgz", - "integrity": "sha512-n0H99E/K+Bika3++WNL17POvo4rKWZ7lZEp1Q+fStVbUi8nxPQEBOlTmCOxW/0JsS56SKKQ+ojAe2pHKJHN35w==", - "dev": true, - "requires": { - "@babel/types": "^7.22.5" - } - }, - "@babel/helper-skip-transparent-expression-wrappers": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/helper-skip-transparent-expression-wrappers/-/helper-skip-transparent-expression-wrappers-7.22.5.tgz", - "integrity": "sha512-tK14r66JZKiC43p8Ki33yLBVJKlQDFoA8GYN67lWCDCqoL6EMMSuM9b+Iff2jHaM/RRFYl7K+iiru7hbRqNx8Q==", - "dev": true, - "requires": { - "@babel/types": "^7.22.5" - } - }, - "@babel/helper-split-export-declaration": { - "version": "7.22.6", - "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.22.6.tgz", - "integrity": "sha512-AsUnxuLhRYsisFiaJwvp1QF+I3KjD5FOxut14q/GzovUe6orHLesW2C7d754kRm53h5gqrz6sFl6sxc4BVtE/g==", - "dev": true, - "requires": { - "@babel/types": "^7.22.5" - } - }, - "@babel/helper-string-parser": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.27.1.tgz", - "integrity": "sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA==", - "dev": true - }, - "@babel/helper-validator-identifier": { - "version": "7.27.1", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.27.1.tgz", - "integrity": "sha512-D2hP9eA+Sqx1kBZgzxZh0y1trbuU+JoDkiEwqhQ36nodYqJwyEIhPSdMNd7lOm/4io72luTPWH20Yda0xOuUow==", - "dev": true - }, - "@babel/helper-validator-option": { - "version": "7.23.5", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.23.5.tgz", - "integrity": "sha512-85ttAOMLsr53VgXkTbkx8oA6YTfT4q7/HzXSLEYmjcSTJPMPQtvq1BD79Byep5xMUYbGRzEpDsjUf3dyp54IKw==", - "dev": true - }, - "@babel/helper-wrap-function": { - "version": "7.22.20", - "resolved": "https://registry.npmjs.org/@babel/helper-wrap-function/-/helper-wrap-function-7.22.20.tgz", - "integrity": "sha512-pms/UwkOpnQe/PDAEdV/d7dVCoBbB+R4FvYoHGZz+4VPcg7RtYy2KP7S2lbuWM6FCSgob5wshfGESbC/hzNXZw==", - "dev": true, - "requires": { - "@babel/helper-function-name": "^7.22.5", - "@babel/template": "^7.22.15", - "@babel/types": "^7.22.19" - } - }, - "@babel/helpers": { - "version": "7.27.6", - "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.27.6.tgz", - "integrity": "sha512-muE8Tt8M22638HU31A3CgfSUciwz1fhATfoVai05aPXGor//CdWDCbnlY1yvBPo07njuVOCNGCSp/GTt12lIug==", - "dev": true, - "requires": { - "@babel/template": "^7.27.2", - "@babel/types": "^7.27.6" - } - }, - "@babel/parser": { - "version": "7.28.0", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.28.0.tgz", - "integrity": "sha512-jVZGvOxOuNSsuQuLRTh13nU0AogFlw32w/MT+LV6D3sP5WdbW61E77RnkbaO2dUvmPAYrBDJXGn5gGS6tH4j8g==", - "dev": true, - "requires": { - "@babel/types": "^7.28.0" - } - }, - "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression/-/plugin-bugfix-safari-id-destructuring-collision-in-function-expression-7.23.3.tgz", - "integrity": "sha512-iRkKcCqb7iGnq9+3G6rZ+Ciz5VywC4XNRHe57lKM+jOeYAoR0lVqdeeDRfh0tQcTfw/+vBhHn926FmQhLtlFLQ==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.22.5" - } - }, - "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining/-/plugin-bugfix-v8-spread-parameters-in-optional-chaining-7.23.3.tgz", - "integrity": "sha512-WwlxbfMNdVEpQjZmK5mhm7oSwD3dS6eU+Iwsi4Knl9wAletWem7kaRsGOG+8UEbRyqxY4SS5zvtfXwX+jMxUwQ==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.22.5", - "@babel/helper-skip-transparent-expression-wrappers": "^7.22.5", - "@babel/plugin-transform-optional-chaining": "^7.23.3" - } - }, - "@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly/-/plugin-bugfix-v8-static-class-fields-redefine-readonly-7.23.3.tgz", - "integrity": "sha512-XaJak1qcityzrX0/IU5nKHb34VaibwP3saKqG6a/tppelgllOH13LUann4ZCIBcVOeE6H18K4Vx9QKkVww3z/w==", - "dev": true, - "requires": { - "@babel/helper-environment-visitor": "^7.22.20", - "@babel/helper-plugin-utils": "^7.22.5" - } - }, - "@babel/plugin-proposal-private-property-in-object": { - "version": "7.21.0-placeholder-for-preset-env.2", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-private-property-in-object/-/plugin-proposal-private-property-in-object-7.21.0-placeholder-for-preset-env.2.tgz", - "integrity": "sha512-SOSkfJDddaM7mak6cPEpswyTRnuRltl429hMraQEglW+OkovnCzsiszTmsrlY//qLFjCpQDFRvjdm2wA5pPm9w==", - "dev": true, - "requires": {} - }, - "@babel/plugin-syntax-async-generators": { - "version": "7.8.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz", - "integrity": "sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.8.0" - } - }, - "@babel/plugin-syntax-bigint": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-bigint/-/plugin-syntax-bigint-7.8.3.tgz", - "integrity": "sha512-wnTnFlG+YxQm3vDxpGE57Pj0srRU4sHE/mDkt1qv2YJJSeUAec2ma4WLUnUPeKjyrfntVwe/N6dCXpU+zL3Npg==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.8.0" - } - }, - "@babel/plugin-syntax-class-properties": { - "version": "7.12.13", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.12.13.tgz", - "integrity": "sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.12.13" - } - }, - "@babel/plugin-syntax-class-static-block": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-static-block/-/plugin-syntax-class-static-block-7.14.5.tgz", - "integrity": "sha512-b+YyPmr6ldyNnM6sqYeMWE+bgJcJpO6yS4QD7ymxgH34GBPNDM/THBh8iunyvKIZztiwLH4CJZ0RxTk9emgpjw==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.14.5" - } - }, - "@babel/plugin-syntax-dynamic-import": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-dynamic-import/-/plugin-syntax-dynamic-import-7.8.3.tgz", - "integrity": "sha512-5gdGbFon+PszYzqs83S3E5mpi7/y/8M9eC90MRTZfduQOYW76ig6SOSPNe41IG5LoP3FGBn2N0RjVDSQiS94kQ==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.8.0" - } - }, - "@babel/plugin-syntax-export-namespace-from": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-export-namespace-from/-/plugin-syntax-export-namespace-from-7.8.3.tgz", - "integrity": "sha512-MXf5laXo6c1IbEbegDmzGPwGNTsHZmEy6QGznu5Sh2UCWvueywb2ee+CCE4zQiZstxU9BMoQO9i6zUFSY0Kj0Q==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.8.3" - } - }, - "@babel/plugin-syntax-import-assertions": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-assertions/-/plugin-syntax-import-assertions-7.23.3.tgz", - "integrity": "sha512-lPgDSU+SJLK3xmFDTV2ZRQAiM7UuUjGidwBywFavObCiZc1BeAAcMtHJKUya92hPHO+at63JJPLygilZard8jw==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.22.5" - } - }, - "@babel/plugin-syntax-import-attributes": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-attributes/-/plugin-syntax-import-attributes-7.23.3.tgz", - "integrity": "sha512-pawnE0P9g10xgoP7yKr6CK63K2FMsTE+FZidZO/1PwRdzmAPVs+HS1mAURUsgaoxammTJvULUdIkEK0gOcU2tA==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.22.5" - } - }, - "@babel/plugin-syntax-import-meta": { - "version": "7.10.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-meta/-/plugin-syntax-import-meta-7.10.4.tgz", - "integrity": "sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.10.4" - } - }, - "@babel/plugin-syntax-json-strings": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.8.3.tgz", - "integrity": "sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.8.0" - } - }, - "@babel/plugin-syntax-jsx": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.23.3.tgz", - "integrity": "sha512-EB2MELswq55OHUoRZLGg/zC7QWUKfNLpE57m/S2yr1uEneIgsTgrSzXP3NXEsMkVn76OlaVVnzN+ugObuYGwhg==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.22.5" - } - }, - "@babel/plugin-syntax-logical-assignment-operators": { - "version": "7.10.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.10.4.tgz", - "integrity": "sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.10.4" - } - }, - "@babel/plugin-syntax-nullish-coalescing-operator": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz", - "integrity": "sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.8.0" - } - }, - "@babel/plugin-syntax-numeric-separator": { - "version": "7.10.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-numeric-separator/-/plugin-syntax-numeric-separator-7.10.4.tgz", - "integrity": "sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.10.4" - } - }, - "@babel/plugin-syntax-object-rest-spread": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz", - "integrity": "sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.8.0" - } - }, - "@babel/plugin-syntax-optional-catch-binding": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.8.3.tgz", - "integrity": "sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.8.0" - } - }, - "@babel/plugin-syntax-optional-chaining": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.3.tgz", - "integrity": "sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.8.0" - } - }, - "@babel/plugin-syntax-private-property-in-object": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-private-property-in-object/-/plugin-syntax-private-property-in-object-7.14.5.tgz", - "integrity": "sha512-0wVnp9dxJ72ZUJDV27ZfbSj6iHLoytYZmh3rFcxNnvsJF3ktkzLDZPy/mA17HGsaQT3/DQsWYX1f1QGWkCoVUg==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.14.5" - } - }, - "@babel/plugin-syntax-top-level-await": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.14.5.tgz", - "integrity": "sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.14.5" - } - }, - "@babel/plugin-syntax-typescript": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.23.3.tgz", - "integrity": "sha512-9EiNjVJOMwCO+43TqoTrgQ8jMwcAd0sWyXi9RPfIsLTj4R2MADDDQXELhffaUx/uJv2AYcxBgPwH6j4TIA4ytQ==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.22.5" - } - }, - "@babel/plugin-syntax-unicode-sets-regex": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-unicode-sets-regex/-/plugin-syntax-unicode-sets-regex-7.18.6.tgz", - "integrity": "sha512-727YkEAPwSIQTv5im8QHz3upqp92JTWhidIC81Tdx4VJYIte/VndKf1qKrfnnhPLiPghStWfvC/iFaMCQu7Nqg==", - "dev": true, - "requires": { - "@babel/helper-create-regexp-features-plugin": "^7.18.6", - "@babel/helper-plugin-utils": "^7.18.6" - } - }, - "@babel/plugin-transform-arrow-functions": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.23.3.tgz", - "integrity": "sha512-NzQcQrzaQPkaEwoTm4Mhyl8jI1huEL/WWIEvudjTCMJ9aBZNpsJbMASx7EQECtQQPS/DcnFpo0FIh3LvEO9cxQ==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.22.5" - } - }, - "@babel/plugin-transform-async-generator-functions": { - "version": "7.23.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-async-generator-functions/-/plugin-transform-async-generator-functions-7.23.4.tgz", - "integrity": "sha512-efdkfPhHYTtn0G6n2ddrESE91fgXxjlqLsnUtPWnJs4a4mZIbUaK7ffqKIIUKXSHwcDvaCVX6GXkaJJFqtX7jw==", - "dev": true, - "requires": { - "@babel/helper-environment-visitor": "^7.22.20", - "@babel/helper-plugin-utils": "^7.22.5", - "@babel/helper-remap-async-to-generator": "^7.22.20", - "@babel/plugin-syntax-async-generators": "^7.8.4" - } - }, - "@babel/plugin-transform-async-to-generator": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.23.3.tgz", - "integrity": "sha512-A7LFsKi4U4fomjqXJlZg/u0ft/n8/7n7lpffUP/ZULx/DtV9SGlNKZolHH6PE8Xl1ngCc0M11OaeZptXVkfKSw==", - "dev": true, - "requires": { - "@babel/helper-module-imports": "^7.22.15", - "@babel/helper-plugin-utils": "^7.22.5", - "@babel/helper-remap-async-to-generator": "^7.22.20" - } - }, - "@babel/plugin-transform-block-scoped-functions": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.23.3.tgz", - "integrity": "sha512-vI+0sIaPIO6CNuM9Kk5VmXcMVRiOpDh7w2zZt9GXzmE/9KD70CUEVhvPR/etAeNK/FAEkhxQtXOzVF3EuRL41A==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.22.5" - } - }, - "@babel/plugin-transform-block-scoping": { - "version": "7.23.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.23.4.tgz", - "integrity": "sha512-0QqbP6B6HOh7/8iNR4CQU2Th/bbRtBp4KS9vcaZd1fZ0wSh5Fyssg0UCIHwxh+ka+pNDREbVLQnHCMHKZfPwfw==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.22.5" - } - }, - "@babel/plugin-transform-class-properties": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-class-properties/-/plugin-transform-class-properties-7.23.3.tgz", - "integrity": "sha512-uM+AN8yCIjDPccsKGlw271xjJtGii+xQIF/uMPS8H15L12jZTsLfF4o5vNO7d/oUguOyfdikHGc/yi9ge4SGIg==", - "dev": true, - "requires": { - "@babel/helper-create-class-features-plugin": "^7.22.15", - "@babel/helper-plugin-utils": "^7.22.5" - } - }, - "@babel/plugin-transform-class-static-block": { - "version": "7.23.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-class-static-block/-/plugin-transform-class-static-block-7.23.4.tgz", - "integrity": "sha512-nsWu/1M+ggti1SOALj3hfx5FXzAY06fwPJsUZD4/A5e1bWi46VUIWtD+kOX6/IdhXGsXBWllLFDSnqSCdUNydQ==", - "dev": true, - "requires": { - "@babel/helper-create-class-features-plugin": "^7.22.15", - "@babel/helper-plugin-utils": "^7.22.5", - "@babel/plugin-syntax-class-static-block": "^7.14.5" - } - }, - "@babel/plugin-transform-classes": { - "version": "7.23.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-classes/-/plugin-transform-classes-7.23.5.tgz", - "integrity": "sha512-jvOTR4nicqYC9yzOHIhXG5emiFEOpappSJAl73SDSEDcybD+Puuze8Tnpb9p9qEyYup24tq891gkaygIFvWDqg==", - "dev": true, - "requires": { - "@babel/helper-annotate-as-pure": "^7.22.5", - "@babel/helper-compilation-targets": "^7.22.15", - "@babel/helper-environment-visitor": "^7.22.20", - "@babel/helper-function-name": "^7.23.0", - "@babel/helper-optimise-call-expression": "^7.22.5", - "@babel/helper-plugin-utils": "^7.22.5", - "@babel/helper-replace-supers": "^7.22.20", - "@babel/helper-split-export-declaration": "^7.22.6", - "globals": "^11.1.0" - } - }, - "@babel/plugin-transform-computed-properties": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.23.3.tgz", - "integrity": "sha512-dTj83UVTLw/+nbiHqQSFdwO9CbTtwq1DsDqm3CUEtDrZNET5rT5E6bIdTlOftDTDLMYxvxHNEYO4B9SLl8SLZw==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.22.5", - "@babel/template": "^7.22.15" - } - }, - "@babel/plugin-transform-destructuring": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.23.3.tgz", - "integrity": "sha512-n225npDqjDIr967cMScVKHXJs7rout1q+tt50inyBCPkyZ8KxeI6d+GIbSBTT/w/9WdlWDOej3V9HE5Lgk57gw==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.22.5" - } - }, - "@babel/plugin-transform-dotall-regex": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.23.3.tgz", - "integrity": "sha512-vgnFYDHAKzFaTVp+mneDsIEbnJ2Np/9ng9iviHw3P/KVcgONxpNULEW/51Z/BaFojG2GI2GwwXck5uV1+1NOYQ==", - "dev": true, - "requires": { - "@babel/helper-create-regexp-features-plugin": "^7.22.15", - "@babel/helper-plugin-utils": "^7.22.5" - } - }, - "@babel/plugin-transform-duplicate-keys": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-duplicate-keys/-/plugin-transform-duplicate-keys-7.23.3.tgz", - "integrity": "sha512-RrqQ+BQmU3Oyav3J+7/myfvRCq7Tbz+kKLLshUmMwNlDHExbGL7ARhajvoBJEvc+fCguPPu887N+3RRXBVKZUA==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.22.5" - } - }, - "@babel/plugin-transform-dynamic-import": { - "version": "7.23.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-dynamic-import/-/plugin-transform-dynamic-import-7.23.4.tgz", - "integrity": "sha512-V6jIbLhdJK86MaLh4Jpghi8ho5fGzt3imHOBu/x0jlBaPYqDoWz4RDXjmMOfnh+JWNaQleEAByZLV0QzBT4YQQ==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.22.5", - "@babel/plugin-syntax-dynamic-import": "^7.8.3" - } - }, - "@babel/plugin-transform-exponentiation-operator": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.23.3.tgz", - "integrity": "sha512-5fhCsl1odX96u7ILKHBj4/Y8vipoqwsJMh4csSA8qFfxrZDEA4Ssku2DyNvMJSmZNOEBT750LfFPbtrnTP90BQ==", - "dev": true, - "requires": { - "@babel/helper-builder-binary-assignment-operator-visitor": "^7.22.15", - "@babel/helper-plugin-utils": "^7.22.5" - } - }, - "@babel/plugin-transform-export-namespace-from": { - "version": "7.23.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-export-namespace-from/-/plugin-transform-export-namespace-from-7.23.4.tgz", - "integrity": "sha512-GzuSBcKkx62dGzZI1WVgTWvkkz84FZO5TC5T8dl/Tht/rAla6Dg/Mz9Yhypg+ezVACf/rgDuQt3kbWEv7LdUDQ==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.22.5", - "@babel/plugin-syntax-export-namespace-from": "^7.8.3" - } - }, - "@babel/plugin-transform-for-of": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.23.3.tgz", - "integrity": "sha512-X8jSm8X1CMwxmK878qsUGJRmbysKNbdpTv/O1/v0LuY/ZkZrng5WYiekYSdg9m09OTmDDUWeEDsTE+17WYbAZw==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.22.5" - } - }, - "@babel/plugin-transform-function-name": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.23.3.tgz", - "integrity": "sha512-I1QXp1LxIvt8yLaib49dRW5Okt7Q4oaxao6tFVKS/anCdEOMtYwWVKoiOA1p34GOWIZjUK0E+zCp7+l1pfQyiw==", - "dev": true, - "requires": { - "@babel/helper-compilation-targets": "^7.22.15", - "@babel/helper-function-name": "^7.23.0", - "@babel/helper-plugin-utils": "^7.22.5" - } - }, - "@babel/plugin-transform-json-strings": { - "version": "7.23.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-json-strings/-/plugin-transform-json-strings-7.23.4.tgz", - "integrity": "sha512-81nTOqM1dMwZ/aRXQ59zVubN9wHGqk6UtqRK+/q+ciXmRy8fSolhGVvG09HHRGo4l6fr/c4ZhXUQH0uFW7PZbg==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.22.5", - "@babel/plugin-syntax-json-strings": "^7.8.3" - } - }, - "@babel/plugin-transform-literals": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-literals/-/plugin-transform-literals-7.23.3.tgz", - "integrity": "sha512-wZ0PIXRxnwZvl9AYpqNUxpZ5BiTGrYt7kueGQ+N5FiQ7RCOD4cm8iShd6S6ggfVIWaJf2EMk8eRzAh52RfP4rQ==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.22.5" - } - }, - "@babel/plugin-transform-logical-assignment-operators": { - "version": "7.23.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-logical-assignment-operators/-/plugin-transform-logical-assignment-operators-7.23.4.tgz", - "integrity": "sha512-Mc/ALf1rmZTP4JKKEhUwiORU+vcfarFVLfcFiolKUo6sewoxSEgl36ak5t+4WamRsNr6nzjZXQjM35WsU+9vbg==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.22.5", - "@babel/plugin-syntax-logical-assignment-operators": "^7.10.4" - } - }, - "@babel/plugin-transform-member-expression-literals": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.23.3.tgz", - "integrity": "sha512-sC3LdDBDi5x96LA+Ytekz2ZPk8i/Ck+DEuDbRAll5rknJ5XRTSaPKEYwomLcs1AA8wg9b3KjIQRsnApj+q51Ag==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.22.5" - } - }, - "@babel/plugin-transform-modules-amd": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.23.3.tgz", - "integrity": "sha512-vJYQGxeKM4t8hYCKVBlZX/gtIY2I7mRGFNcm85sgXGMTBcoV3QdVtdpbcWEbzbfUIUZKwvgFT82mRvaQIebZzw==", - "dev": true, - "requires": { - "@babel/helper-module-transforms": "^7.23.3", - "@babel/helper-plugin-utils": "^7.22.5" - } - }, - "@babel/plugin-transform-modules-commonjs": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.23.3.tgz", - "integrity": "sha512-aVS0F65LKsdNOtcz6FRCpE4OgsP2OFnW46qNxNIX9h3wuzaNcSQsJysuMwqSibC98HPrf2vCgtxKNwS0DAlgcA==", - "dev": true, - "requires": { - "@babel/helper-module-transforms": "^7.23.3", - "@babel/helper-plugin-utils": "^7.22.5", - "@babel/helper-simple-access": "^7.22.5" - } - }, - "@babel/plugin-transform-modules-systemjs": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.23.3.tgz", - "integrity": "sha512-ZxyKGTkF9xT9YJuKQRo19ewf3pXpopuYQd8cDXqNzc3mUNbOME0RKMoZxviQk74hwzfQsEe66dE92MaZbdHKNQ==", - "dev": true, - "requires": { - "@babel/helper-hoist-variables": "^7.22.5", - "@babel/helper-module-transforms": "^7.23.3", - "@babel/helper-plugin-utils": "^7.22.5", - "@babel/helper-validator-identifier": "^7.22.20" - } - }, - "@babel/plugin-transform-modules-umd": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.23.3.tgz", - "integrity": "sha512-zHsy9iXX2nIsCBFPud3jKn1IRPWg3Ing1qOZgeKV39m1ZgIdpJqvlWVeiHBZC6ITRG0MfskhYe9cLgntfSFPIg==", - "dev": true, - "requires": { - "@babel/helper-module-transforms": "^7.23.3", - "@babel/helper-plugin-utils": "^7.22.5" - } - }, - "@babel/plugin-transform-named-capturing-groups-regex": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-named-capturing-groups-regex/-/plugin-transform-named-capturing-groups-regex-7.22.5.tgz", - "integrity": "sha512-YgLLKmS3aUBhHaxp5hi1WJTgOUb/NCuDHzGT9z9WTt3YG+CPRhJs6nprbStx6DnWM4dh6gt7SU3sZodbZ08adQ==", - "dev": true, - "requires": { - "@babel/helper-create-regexp-features-plugin": "^7.22.5", - "@babel/helper-plugin-utils": "^7.22.5" - } - }, - "@babel/plugin-transform-new-target": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-new-target/-/plugin-transform-new-target-7.23.3.tgz", - "integrity": "sha512-YJ3xKqtJMAT5/TIZnpAR3I+K+WaDowYbN3xyxI8zxx/Gsypwf9B9h0VB+1Nh6ACAAPRS5NSRje0uVv5i79HYGQ==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.22.5" - } - }, - "@babel/plugin-transform-nullish-coalescing-operator": { - "version": "7.23.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-nullish-coalescing-operator/-/plugin-transform-nullish-coalescing-operator-7.23.4.tgz", - "integrity": "sha512-jHE9EVVqHKAQx+VePv5LLGHjmHSJR76vawFPTdlxR/LVJPfOEGxREQwQfjuZEOPTwG92X3LINSh3M40Rv4zpVA==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.22.5", - "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3" - } - }, - "@babel/plugin-transform-numeric-separator": { - "version": "7.23.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-numeric-separator/-/plugin-transform-numeric-separator-7.23.4.tgz", - "integrity": "sha512-mps6auzgwjRrwKEZA05cOwuDc9FAzoyFS4ZsG/8F43bTLf/TgkJg7QXOrPO1JO599iA3qgK9MXdMGOEC8O1h6Q==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.22.5", - "@babel/plugin-syntax-numeric-separator": "^7.10.4" - } - }, - "@babel/plugin-transform-object-rest-spread": { - "version": "7.23.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-rest-spread/-/plugin-transform-object-rest-spread-7.23.4.tgz", - "integrity": "sha512-9x9K1YyeQVw0iOXJlIzwm8ltobIIv7j2iLyP2jIhEbqPRQ7ScNgwQufU2I0Gq11VjyG4gI4yMXt2VFags+1N3g==", - "dev": true, - "requires": { - "@babel/compat-data": "^7.23.3", - "@babel/helper-compilation-targets": "^7.22.15", - "@babel/helper-plugin-utils": "^7.22.5", - "@babel/plugin-syntax-object-rest-spread": "^7.8.3", - "@babel/plugin-transform-parameters": "^7.23.3" - } - }, - "@babel/plugin-transform-object-super": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.23.3.tgz", - "integrity": "sha512-BwQ8q0x2JG+3lxCVFohg+KbQM7plfpBwThdW9A6TMtWwLsbDA01Ek2Zb/AgDN39BiZsExm4qrXxjk+P1/fzGrA==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.22.5", - "@babel/helper-replace-supers": "^7.22.20" - } - }, - "@babel/plugin-transform-optional-catch-binding": { - "version": "7.23.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-optional-catch-binding/-/plugin-transform-optional-catch-binding-7.23.4.tgz", - "integrity": "sha512-XIq8t0rJPHf6Wvmbn9nFxU6ao4c7WhghTR5WyV8SrJfUFzyxhCm4nhC+iAp3HFhbAKLfYpgzhJ6t4XCtVwqO5A==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.22.5", - "@babel/plugin-syntax-optional-catch-binding": "^7.8.3" - } - }, - "@babel/plugin-transform-optional-chaining": { - "version": "7.23.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-optional-chaining/-/plugin-transform-optional-chaining-7.23.4.tgz", - "integrity": "sha512-ZU8y5zWOfjM5vZ+asjgAPwDaBjJzgufjES89Rs4Lpq63O300R/kOz30WCLo6BxxX6QVEilwSlpClnG5cZaikTA==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.22.5", - "@babel/helper-skip-transparent-expression-wrappers": "^7.22.5", - "@babel/plugin-syntax-optional-chaining": "^7.8.3" - } - }, - "@babel/plugin-transform-parameters": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.23.3.tgz", - "integrity": "sha512-09lMt6UsUb3/34BbECKVbVwrT9bO6lILWln237z7sLaWnMsTi7Yc9fhX5DLpkJzAGfaReXI22wP41SZmnAA3Vw==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.22.5" - } - }, - "@babel/plugin-transform-private-methods": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-private-methods/-/plugin-transform-private-methods-7.23.3.tgz", - "integrity": "sha512-UzqRcRtWsDMTLrRWFvUBDwmw06tCQH9Rl1uAjfh6ijMSmGYQ+fpdB+cnqRC8EMh5tuuxSv0/TejGL+7vyj+50g==", - "dev": true, - "requires": { - "@babel/helper-create-class-features-plugin": "^7.22.15", - "@babel/helper-plugin-utils": "^7.22.5" - } - }, - "@babel/plugin-transform-private-property-in-object": { - "version": "7.23.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-private-property-in-object/-/plugin-transform-private-property-in-object-7.23.4.tgz", - "integrity": "sha512-9G3K1YqTq3F4Vt88Djx1UZ79PDyj+yKRnUy7cZGSMe+a7jkwD259uKKuUzQlPkGam7R+8RJwh5z4xO27fA1o2A==", - "dev": true, - "requires": { - "@babel/helper-annotate-as-pure": "^7.22.5", - "@babel/helper-create-class-features-plugin": "^7.22.15", - "@babel/helper-plugin-utils": "^7.22.5", - "@babel/plugin-syntax-private-property-in-object": "^7.14.5" - } - }, - "@babel/plugin-transform-property-literals": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.23.3.tgz", - "integrity": "sha512-jR3Jn3y7cZp4oEWPFAlRsSWjxKe4PZILGBSd4nis1TsC5qeSpb+nrtihJuDhNI7QHiVbUaiXa0X2RZY3/TI6Nw==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.22.5" - } - }, - "@babel/plugin-transform-regenerator": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.23.3.tgz", - "integrity": "sha512-KP+75h0KghBMcVpuKisx3XTu9Ncut8Q8TuvGO4IhY+9D5DFEckQefOuIsB/gQ2tG71lCke4NMrtIPS8pOj18BQ==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.22.5", - "regenerator-transform": "^0.15.2" - } - }, - "@babel/plugin-transform-reserved-words": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-reserved-words/-/plugin-transform-reserved-words-7.23.3.tgz", - "integrity": "sha512-QnNTazY54YqgGxwIexMZva9gqbPa15t/x9VS+0fsEFWplwVpXYZivtgl43Z1vMpc1bdPP2PP8siFeVcnFvA3Cg==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.22.5" - } - }, - "@babel/plugin-transform-shorthand-properties": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.23.3.tgz", - "integrity": "sha512-ED2fgqZLmexWiN+YNFX26fx4gh5qHDhn1O2gvEhreLW2iI63Sqm4llRLCXALKrCnbN4Jy0VcMQZl/SAzqug/jg==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.22.5" - } - }, - "@babel/plugin-transform-spread": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-spread/-/plugin-transform-spread-7.23.3.tgz", - "integrity": "sha512-VvfVYlrlBVu+77xVTOAoxQ6mZbnIq5FM0aGBSFEcIh03qHf+zNqA4DC/3XMUozTg7bZV3e3mZQ0i13VB6v5yUg==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.22.5", - "@babel/helper-skip-transparent-expression-wrappers": "^7.22.5" - } - }, - "@babel/plugin-transform-sticky-regex": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.23.3.tgz", - "integrity": "sha512-HZOyN9g+rtvnOU3Yh7kSxXrKbzgrm5X4GncPY1QOquu7epga5MxKHVpYu2hvQnry/H+JjckSYRb93iNfsioAGg==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.22.5" - } - }, - "@babel/plugin-transform-template-literals": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.23.3.tgz", - "integrity": "sha512-Flok06AYNp7GV2oJPZZcP9vZdszev6vPBkHLwxwSpaIqx75wn6mUd3UFWsSsA0l8nXAKkyCmL/sR02m8RYGeHg==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.22.5" - } - }, - "@babel/plugin-transform-typeof-symbol": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.23.3.tgz", - "integrity": "sha512-4t15ViVnaFdrPC74be1gXBSMzXk3B4Us9lP7uLRQHTFpV5Dvt33pn+2MyyNxmN3VTTm3oTrZVMUmuw3oBnQ2oQ==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.22.5" - } - }, - "@babel/plugin-transform-typescript": { - "version": "7.23.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-typescript/-/plugin-transform-typescript-7.23.5.tgz", - "integrity": "sha512-2fMkXEJkrmwgu2Bsv1Saxgj30IXZdJ+84lQcKKI7sm719oXs0BBw2ZENKdJdR1PjWndgLCEBNXJOri0fk7RYQA==", - "dev": true, - "requires": { - "@babel/helper-annotate-as-pure": "^7.22.5", - "@babel/helper-create-class-features-plugin": "^7.23.5", - "@babel/helper-plugin-utils": "^7.22.5", - "@babel/plugin-syntax-typescript": "^7.23.3" - } - }, - "@babel/plugin-transform-unicode-escapes": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-escapes/-/plugin-transform-unicode-escapes-7.23.3.tgz", - "integrity": "sha512-OMCUx/bU6ChE3r4+ZdylEqAjaQgHAgipgW8nsCfu5pGqDcFytVd91AwRvUJSBZDz0exPGgnjoqhgRYLRjFZc9Q==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.22.5" - } - }, - "@babel/plugin-transform-unicode-property-regex": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-property-regex/-/plugin-transform-unicode-property-regex-7.23.3.tgz", - "integrity": "sha512-KcLIm+pDZkWZQAFJ9pdfmh89EwVfmNovFBcXko8szpBeF8z68kWIPeKlmSOkT9BXJxs2C0uk+5LxoxIv62MROA==", - "dev": true, - "requires": { - "@babel/helper-create-regexp-features-plugin": "^7.22.15", - "@babel/helper-plugin-utils": "^7.22.5" - } - }, - "@babel/plugin-transform-unicode-regex": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.23.3.tgz", - "integrity": "sha512-wMHpNA4x2cIA32b/ci3AfwNgheiva2W0WUKWTK7vBHBhDKfPsc5cFGNWm69WBqpwd86u1qwZ9PWevKqm1A3yAw==", - "dev": true, - "requires": { - "@babel/helper-create-regexp-features-plugin": "^7.22.15", - "@babel/helper-plugin-utils": "^7.22.5" - } - }, - "@babel/plugin-transform-unicode-sets-regex": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-sets-regex/-/plugin-transform-unicode-sets-regex-7.23.3.tgz", - "integrity": "sha512-W7lliA/v9bNR83Qc3q1ip9CQMZ09CcHDbHfbLRDNuAhn1Mvkr1ZNF7hPmztMQvtTGVLJ9m8IZqWsTkXOml8dbw==", - "dev": true, - "requires": { - "@babel/helper-create-regexp-features-plugin": "^7.22.15", - "@babel/helper-plugin-utils": "^7.22.5" - } - }, - "@babel/preset-env": { - "version": "7.23.5", - "resolved": "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.23.5.tgz", - "integrity": "sha512-0d/uxVD6tFGWXGDSfyMD1p2otoaKmu6+GD+NfAx0tMaH+dxORnp7T9TaVQ6mKyya7iBtCIVxHjWT7MuzzM9z+A==", - "dev": true, - "requires": { - "@babel/compat-data": "^7.23.5", - "@babel/helper-compilation-targets": "^7.22.15", - "@babel/helper-plugin-utils": "^7.22.5", - "@babel/helper-validator-option": "^7.23.5", - "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": "^7.23.3", - "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": "^7.23.3", - "@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly": "^7.23.3", - "@babel/plugin-proposal-private-property-in-object": "7.21.0-placeholder-for-preset-env.2", - "@babel/plugin-syntax-async-generators": "^7.8.4", - "@babel/plugin-syntax-class-properties": "^7.12.13", - "@babel/plugin-syntax-class-static-block": "^7.14.5", - "@babel/plugin-syntax-dynamic-import": "^7.8.3", - "@babel/plugin-syntax-export-namespace-from": "^7.8.3", - "@babel/plugin-syntax-import-assertions": "^7.23.3", - "@babel/plugin-syntax-import-attributes": "^7.23.3", - "@babel/plugin-syntax-import-meta": "^7.10.4", - "@babel/plugin-syntax-json-strings": "^7.8.3", - "@babel/plugin-syntax-logical-assignment-operators": "^7.10.4", - "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3", - "@babel/plugin-syntax-numeric-separator": "^7.10.4", - "@babel/plugin-syntax-object-rest-spread": "^7.8.3", - "@babel/plugin-syntax-optional-catch-binding": "^7.8.3", - "@babel/plugin-syntax-optional-chaining": "^7.8.3", - "@babel/plugin-syntax-private-property-in-object": "^7.14.5", - "@babel/plugin-syntax-top-level-await": "^7.14.5", - "@babel/plugin-syntax-unicode-sets-regex": "^7.18.6", - "@babel/plugin-transform-arrow-functions": "^7.23.3", - "@babel/plugin-transform-async-generator-functions": "^7.23.4", - "@babel/plugin-transform-async-to-generator": "^7.23.3", - "@babel/plugin-transform-block-scoped-functions": "^7.23.3", - "@babel/plugin-transform-block-scoping": "^7.23.4", - "@babel/plugin-transform-class-properties": "^7.23.3", - "@babel/plugin-transform-class-static-block": "^7.23.4", - "@babel/plugin-transform-classes": "^7.23.5", - "@babel/plugin-transform-computed-properties": "^7.23.3", - "@babel/plugin-transform-destructuring": "^7.23.3", - "@babel/plugin-transform-dotall-regex": "^7.23.3", - "@babel/plugin-transform-duplicate-keys": "^7.23.3", - "@babel/plugin-transform-dynamic-import": "^7.23.4", - "@babel/plugin-transform-exponentiation-operator": "^7.23.3", - "@babel/plugin-transform-export-namespace-from": "^7.23.4", - "@babel/plugin-transform-for-of": "^7.23.3", - "@babel/plugin-transform-function-name": "^7.23.3", - "@babel/plugin-transform-json-strings": "^7.23.4", - "@babel/plugin-transform-literals": "^7.23.3", - "@babel/plugin-transform-logical-assignment-operators": "^7.23.4", - "@babel/plugin-transform-member-expression-literals": "^7.23.3", - "@babel/plugin-transform-modules-amd": "^7.23.3", - "@babel/plugin-transform-modules-commonjs": "^7.23.3", - "@babel/plugin-transform-modules-systemjs": "^7.23.3", - "@babel/plugin-transform-modules-umd": "^7.23.3", - "@babel/plugin-transform-named-capturing-groups-regex": "^7.22.5", - "@babel/plugin-transform-new-target": "^7.23.3", - "@babel/plugin-transform-nullish-coalescing-operator": "^7.23.4", - "@babel/plugin-transform-numeric-separator": "^7.23.4", - "@babel/plugin-transform-object-rest-spread": "^7.23.4", - "@babel/plugin-transform-object-super": "^7.23.3", - "@babel/plugin-transform-optional-catch-binding": "^7.23.4", - "@babel/plugin-transform-optional-chaining": "^7.23.4", - "@babel/plugin-transform-parameters": "^7.23.3", - "@babel/plugin-transform-private-methods": "^7.23.3", - "@babel/plugin-transform-private-property-in-object": "^7.23.4", - "@babel/plugin-transform-property-literals": "^7.23.3", - "@babel/plugin-transform-regenerator": "^7.23.3", - "@babel/plugin-transform-reserved-words": "^7.23.3", - "@babel/plugin-transform-shorthand-properties": "^7.23.3", - "@babel/plugin-transform-spread": "^7.23.3", - "@babel/plugin-transform-sticky-regex": "^7.23.3", - "@babel/plugin-transform-template-literals": "^7.23.3", - "@babel/plugin-transform-typeof-symbol": "^7.23.3", - "@babel/plugin-transform-unicode-escapes": "^7.23.3", - "@babel/plugin-transform-unicode-property-regex": "^7.23.3", - "@babel/plugin-transform-unicode-regex": "^7.23.3", - "@babel/plugin-transform-unicode-sets-regex": "^7.23.3", - "@babel/preset-modules": "0.1.6-no-external-plugins", - "babel-plugin-polyfill-corejs2": "^0.4.6", - "babel-plugin-polyfill-corejs3": "^0.8.5", - "babel-plugin-polyfill-regenerator": "^0.5.3", - "core-js-compat": "^3.31.0", - "semver": "^6.3.1" - } - }, - "@babel/preset-modules": { - "version": "0.1.6-no-external-plugins", - "resolved": "https://registry.npmjs.org/@babel/preset-modules/-/preset-modules-0.1.6-no-external-plugins.tgz", - "integrity": "sha512-HrcgcIESLm9aIR842yhJ5RWan/gebQUJ6E/E5+rf0y9o6oj7w0Br+sWuL6kEQ/o/AdfvR1Je9jG18/gnpwjEyA==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.0.0", - "@babel/types": "^7.4.4", - "esutils": "^2.0.2" - } - }, - "@babel/preset-typescript": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/preset-typescript/-/preset-typescript-7.23.3.tgz", - "integrity": "sha512-17oIGVlqz6CchO9RFYn5U6ZpWRZIngayYCtrPRSgANSwC2V1Jb+iP74nVxzzXJte8b8BYxrL1yY96xfhTBrNNQ==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.22.5", - "@babel/helper-validator-option": "^7.22.15", - "@babel/plugin-syntax-jsx": "^7.23.3", - "@babel/plugin-transform-modules-commonjs": "^7.23.3", - "@babel/plugin-transform-typescript": "^7.23.3" - } - }, - "@babel/regjsgen": { - "version": "0.8.0", - "resolved": "https://registry.npmjs.org/@babel/regjsgen/-/regjsgen-0.8.0.tgz", - "integrity": "sha512-x/rqGMdzj+fWZvCOYForTghzbtqPDZ5gPwaoNGHdgDfF2QA/XZbCBp4Moo5scrkAMPhB7z26XM/AaHuIJdgauA==", - "dev": true - }, - "@babel/runtime": { - "version": "7.27.6", - "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.27.6.tgz", - "integrity": "sha512-vbavdySgbTTrmFE+EsiqUTzlOr5bzlnJtUv9PynGCAKvfQqjIXbvFdumPM/GxMDfyuGMJaJAU6TO4zc1Jf1i8Q==", - "dev": true - }, - "@babel/template": { - "version": "7.27.2", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.27.2.tgz", - "integrity": "sha512-LPDZ85aEJyYSd18/DkjNh4/y1ntkE5KwUHWTiqgRxruuZL2F1yuHligVHLvcHY2vMHXttKFpJn6LwfI7cw7ODw==", - "dev": true, - "requires": { - "@babel/code-frame": "^7.27.1", - "@babel/parser": "^7.27.2", - "@babel/types": "^7.27.1" - } - }, - "@babel/traverse": { - "version": "7.23.2", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.23.2.tgz", - "integrity": "sha512-azpe59SQ48qG6nu2CzcMLbxUudtN+dOM9kDbUqGq3HXUJRlo7i8fvPoxQUzYgLZ4cMVmuZgm8vvBpNeRhd6XSw==", - "dev": true, - "requires": { - "@babel/code-frame": "^7.22.13", - "@babel/generator": "^7.23.0", - "@babel/helper-environment-visitor": "^7.22.20", - "@babel/helper-function-name": "^7.23.0", - "@babel/helper-hoist-variables": "^7.22.5", - "@babel/helper-split-export-declaration": "^7.22.6", - "@babel/parser": "^7.23.0", - "@babel/types": "^7.23.0", - "debug": "^4.1.0", - "globals": "^11.1.0" - } - }, - "@babel/types": { - "version": "7.28.1", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.28.1.tgz", - "integrity": "sha512-x0LvFTekgSX+83TI28Y9wYPUfzrnl2aT5+5QLnO6v7mSJYtEEevuDRN0F0uSHRk1G1IWZC43o00Y0xDDrpBGPQ==", - "dev": true, - "requires": { - "@babel/helper-string-parser": "^7.27.1", - "@babel/helper-validator-identifier": "^7.27.1" - } - }, - "@bcoe/v8-coverage": { - "version": "0.2.3", - "resolved": "https://registry.npmjs.org/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz", - "integrity": "sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==", - "dev": true - }, - "@istanbuljs/load-nyc-config": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz", - "integrity": "sha512-VjeHSlIzpv/NyD3N0YuHfXOPDIixcA1q2ZV98wsMqcYlPmv2n3Yb2lYP9XMElnaFVXg5A7YLTeLu6V84uQDjmQ==", - "dev": true, - "requires": { - "camelcase": "^5.3.1", - "find-up": "^4.1.0", - "get-package-type": "^0.1.0", - "js-yaml": "^3.13.1", - "resolve-from": "^5.0.0" - } - }, - "@istanbuljs/schema": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/@istanbuljs/schema/-/schema-0.1.3.tgz", - "integrity": "sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA==", - "dev": true - }, - "@jest/console": { - "version": "29.6.1", - "resolved": "https://registry.npmjs.org/@jest/console/-/console-29.6.1.tgz", - "integrity": "sha512-Aj772AYgwTSr5w8qnyoJ0eDYvN6bMsH3ORH1ivMotrInHLKdUz6BDlaEXHdM6kODaBIkNIyQGzsMvRdOv7VG7Q==", - "dev": true, - "requires": { - "@jest/types": "^29.6.1", - "@types/node": "*", - "chalk": "^4.0.0", - "jest-message-util": "^29.6.1", - "jest-util": "^29.6.1", - "slash": "^3.0.0" - }, - "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "requires": { - "color-convert": "^2.0.1" - } + "@types/estree": { + "version": "0.0.39", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-0.0.39.tgz", + "integrity": "sha512-EYNwp3bU+98cpU4lAWYYL7Zz+2gryWH1qbdDTidVd6hkiR6weksdbMadyXKXNPEkQFhXM+hVO9ZygomHXp+AIw==", + "dev": true + }, + "@types/graceful-fs": { + "version": "4.1.6", + "resolved": "https://registry.npmjs.org/@types/graceful-fs/-/graceful-fs-4.1.6.tgz", + "integrity": "sha512-Sig0SNORX9fdW+bQuTEovKj3uHcUL6LQKbCrrqb1X7J6/ReAbhCXRAhc+SMejhLELFj2QcyuxmUooZ4bt5ReSw==", + "dev": true, + "requires": { + "@types/node": "*" + } }, - "chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } + "@types/istanbul-lib-coverage": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.4.tgz", + "integrity": "sha512-z/QT1XN4K4KYuslS23k62yDIDLwLFkzxOuMplDtObz0+y7VqJCaO2o+SPwHCvLFZh7xazvvoor2tA/hPz9ee7g==", + "dev": true + }, + "@types/istanbul-lib-report": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@types/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz", + "integrity": "sha512-plGgXAPfVKFoYfa9NpYDAkseG+g6Jr294RqeqcqDixSbU34MZVJRi/P+7Y8GDpzkEwLaGZZOpKIEmeVZNtKsrg==", + "dev": true, + "requires": { + "@types/istanbul-lib-coverage": "*" + } }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "requires": { - "color-name": "~1.1.4" - } + "@types/istanbul-reports": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.1.tgz", + "integrity": "sha512-c3mAZEuK0lvBp8tmuL74XRKn1+y2dcwOUpH7x4WrF6gk1GIgiluDRgMYQtw2OFcBvAJWlt6ASU3tSqxp0Uu0Aw==", + "dev": true, + "requires": { + "@types/istanbul-lib-report": "*" + } }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true + "@types/jest": { + "version": "24.9.1", + "resolved": "https://registry.npmjs.org/@types/jest/-/jest-24.9.1.tgz", + "integrity": "sha512-Fb38HkXSVA4L8fGKEZ6le5bB8r6MRWlOCZbVuWZcmOMSCd2wCYOwN1ibj8daIoV9naq7aaOZjrLCoCMptKU/4Q==", + "dev": true, + "requires": { + "jest-diff": "^24.3.0" + } }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true + "@types/jsdom": { + "version": "20.0.1", + "resolved": "https://registry.npmjs.org/@types/jsdom/-/jsdom-20.0.1.tgz", + "integrity": "sha512-d0r18sZPmMQr1eG35u12FZfhIXNrnsPU/g5wvRKCUf/tOGilKKwYMYGqh33BNR6ba+2gkHw1EUiHoN3mn7E5IQ==", + "dev": true, + "requires": { + "@types/node": "*", + "@types/tough-cookie": "*", + "parse5": "^7.0.0" + } }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } - } - } - }, - "@jest/core": { - "version": "29.6.1", - "resolved": "https://registry.npmjs.org/@jest/core/-/core-29.6.1.tgz", - "integrity": "sha512-CcowHypRSm5oYQ1obz1wfvkjZZ2qoQlrKKvlfPwh5jUXVU12TWr2qMeH8chLMuTFzHh5a1g2yaqlqDICbr+ukQ==", - "dev": true, - "requires": { - "@jest/console": "^29.6.1", - "@jest/reporters": "^29.6.1", - "@jest/test-result": "^29.6.1", - "@jest/transform": "^29.6.1", - "@jest/types": "^29.6.1", - "@types/node": "*", - "ansi-escapes": "^4.2.1", - "chalk": "^4.0.0", - "ci-info": "^3.2.0", - "exit": "^0.1.2", - "graceful-fs": "^4.2.9", - "jest-changed-files": "^29.5.0", - "jest-config": "^29.6.1", - "jest-haste-map": "^29.6.1", - "jest-message-util": "^29.6.1", - "jest-regex-util": "^29.4.3", - "jest-resolve": "^29.6.1", - "jest-resolve-dependencies": "^29.6.1", - "jest-runner": "^29.6.1", - "jest-runtime": "^29.6.1", - "jest-snapshot": "^29.6.1", - "jest-util": "^29.6.1", - "jest-validate": "^29.6.1", - "jest-watcher": "^29.6.1", - "micromatch": "^4.0.4", - "pretty-format": "^29.6.1", - "slash": "^3.0.0", - "strip-ansi": "^6.0.0" - }, - "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "requires": { - "color-convert": "^2.0.1" - } + "@types/linkify-it": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/@types/linkify-it/-/linkify-it-3.0.2.tgz", + "integrity": "sha512-HZQYqbiFVWufzCwexrvh694SOim8z2d+xJl5UNamcvQFejLY/2YUtzXHYi3cHdI7PMlS8ejH2slRAOJQ32aNbA==", + "dev": true + }, + "@types/markdown-it": { + "version": "12.2.3", + "resolved": "https://registry.npmjs.org/@types/markdown-it/-/markdown-it-12.2.3.tgz", + "integrity": "sha512-GKMHFfv3458yYy+v/N8gjufHO6MSZKCOXpZc5GXIWWy8uldwfmPn98vp81gZ5f9SVw8YYBctgfJ22a2d7AOMeQ==", + "dev": true, + "requires": { + "@types/linkify-it": "*", + "@types/mdurl": "*" + } }, - "chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } + "@types/mdurl": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@types/mdurl/-/mdurl-1.0.2.tgz", + "integrity": "sha512-eC4U9MlIcu2q0KQmXszyn5Akca/0jrQmwDRgpAMJai7qBWq4amIQhZyNau4VYGtCeALvW1/NtjzJJ567aZxfKA==", + "dev": true }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "requires": { - "color-name": "~1.1.4" - } + "@types/node": { + "version": "20.10.2", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.10.2.tgz", + "integrity": "sha512-37MXfxkb0vuIlRKHNxwCkb60PNBpR94u4efQuN4JgIAm66zfCDXGSAFCef9XUWFovX2R1ok6Z7MHhtdVXXkkIw==", + "dev": true, + "requires": { + "undici-types": "~5.26.4" + } }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true + "@types/prettier": { + "version": "2.7.3", + "resolved": "https://registry.npmjs.org/@types/prettier/-/prettier-2.7.3.tgz", + "integrity": "sha512-+68kP9yzs4LMp7VNh8gdzMSPZFL44MLGqiHWvttYJe+6qnuVr4Ek9wSBQoveqY/r+LwjCcU29kNVkidwim+kYA==", + "dev": true + }, + "@types/resolve": { + "version": "1.17.1", + "resolved": "https://registry.npmjs.org/@types/resolve/-/resolve-1.17.1.tgz", + "integrity": "sha512-yy7HuzQhj0dhGpD8RLXSZWEkLsV9ibvxvi6EiJ3bkqLAO1RGo0WbkWQiwpRlSFymTJRz0d3k5LM3kkx8ArDbLw==", + "dev": true, + "requires": { + "@types/node": "*" + } }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true - }, - "jest-config": { - "version": "29.6.1", - "resolved": "https://registry.npmjs.org/jest-config/-/jest-config-29.6.1.tgz", - "integrity": "sha512-XdjYV2fy2xYixUiV2Wc54t3Z4oxYPAELUzWnV6+mcbq0rh742X2p52pii5A3oeRzYjLnQxCsZmp0qpI6klE2cQ==", - "dev": true, - "requires": { - "@babel/core": "^7.11.6", - "@jest/test-sequencer": "^29.6.1", - "@jest/types": "^29.6.1", - "babel-jest": "^29.6.1", - "chalk": "^4.0.0", - "ci-info": "^3.2.0", - "deepmerge": "^4.2.2", - "glob": "^7.1.3", - "graceful-fs": "^4.2.9", - "jest-circus": "^29.6.1", - "jest-environment-node": "^29.6.1", - "jest-get-type": "^29.4.3", - "jest-regex-util": "^29.4.3", - "jest-resolve": "^29.6.1", - "jest-runner": "^29.6.1", - "jest-util": "^29.6.1", - "jest-validate": "^29.6.1", - "micromatch": "^4.0.4", - "parse-json": "^5.2.0", - "pretty-format": "^29.6.1", - "slash": "^3.0.0", - "strip-json-comments": "^3.1.1" - } + "@types/stack-utils": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/@types/stack-utils/-/stack-utils-2.0.1.tgz", + "integrity": "sha512-Hl219/BT5fLAaz6NDkSuhzasy49dwQS/DSdu4MdggFB8zcXv7vflBI3xp7FEmkmdDkBUI2bPUNeMttp2knYdxw==", + "dev": true }, - "jest-get-type": { - "version": "29.4.3", - "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.4.3.tgz", - "integrity": "sha512-J5Xez4nRRMjk8emnTpWrlkyb9pfRQQanDrvWHhsR1+VUfbwxi30eVcZFlcdGInRibU4G5LwHXpI7IRHU0CY+gg==", - "dev": true + "@types/tough-cookie": { + "version": "4.0.5", + "resolved": "https://registry.npmjs.org/@types/tough-cookie/-/tough-cookie-4.0.5.tgz", + "integrity": "sha512-/Ad8+nIOV7Rl++6f1BdKxFSMgmoqEoYbHRpPcx3JEfv8VRsQe9Z4mCXeJBzxs7mbHY/XOZZuXlRNfhpVPbs6ZA==", + "dev": true }, - "pretty-format": { - "version": "29.6.1", - "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.6.1.tgz", - "integrity": "sha512-7jRj+yXO0W7e4/tSJKoR7HRIHLPPjtNaUGG2xxKQnGvPNRkgWcQ0AZX6P4KBRJN4FcTBWb3sa7DVUJmocYuoog==", - "dev": true, - "requires": { - "@jest/schemas": "^29.6.0", - "ansi-styles": "^5.0.0", - "react-is": "^18.0.0" - }, - "dependencies": { - "ansi-styles": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", - "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", - "dev": true - } - } + "@types/yargs": { + "version": "17.0.24", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.24.tgz", + "integrity": "sha512-6i0aC7jV6QzQB8ne1joVZ0eSFIstHsCrobmOtghM11yGlH0j43FKL2UhWdELkyps0zuf7qVTUVCCR+tgSlyLLw==", + "dev": true, + "requires": { + "@types/yargs-parser": "*" + } }, - "react-is": { - "version": "18.2.0", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", - "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", - "dev": true + "@types/yargs-parser": { + "version": "21.0.0", + "resolved": "https://registry.npmjs.org/@types/yargs-parser/-/yargs-parser-21.0.0.tgz", + "integrity": "sha512-iO9ZQHkZxHn4mSakYV0vFHAVDyEOIJQrV2uZ06HxEPcx+mt8swXoZHIbaaJ2crJYFfErySgktuTZ3BeLz+XmFA==", + "dev": true + }, + "abab": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/abab/-/abab-2.0.6.tgz", + "integrity": "sha512-j2afSsaIENvHZN2B8GOpF566vZ5WVk5opAiMTvWgaQT8DkbOqsTfvNAvHoRGU2zzP8cPoqys+xHTRDWW8L+/BA==", + "dev": true + }, + "acorn": { + "version": "8.10.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.10.0.tgz", + "integrity": "sha512-F0SAmZ8iUtS//m8DmCTA0jlh6TDKkHQyK6xc6V4KDTyZKA9dnvX9/3sRTVQrWm79glUAZbnmmNcdYwUIHWVybw==", + "dev": true + }, + "acorn-globals": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/acorn-globals/-/acorn-globals-7.0.1.tgz", + "integrity": "sha512-umOSDSDrfHbTNPuNpC2NSnnA3LUrqpevPb4T9jRx4MagXNS0rs+gwiTcAvqCRmsD6utzsrzNt+ebm00SNWiC3Q==", + "dev": true, + "requires": { + "acorn": "^8.1.0", + "acorn-walk": "^8.0.2" + } + }, + "acorn-jsx": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", + "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", + "dev": true, + "requires": {} + }, + "acorn-walk": { + "version": "8.2.0", + "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.2.0.tgz", + "integrity": "sha512-k+iyHEuPgSw6SbuDpGQM+06HQUa04DZ3o+F6CSzXMvvI5KMvnaEqXe+YVe555R9nn6GPt404fos4wcgpw12SDA==", + "dev": true + }, + "agent-base": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz", + "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==", + "dev": true, + "requires": { + "debug": "4" + } + }, + "ansi-escapes": { + "version": "4.3.2", + "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz", + "integrity": "sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==", + "dev": true, + "requires": { + "type-fest": "^0.21.3" + } + }, + "ansi-regex": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.1.tgz", + "integrity": "sha512-ILlv4k/3f6vfQ4OoP2AGvirOktlQ98ZEL1k9FaQjxa3L1abBgbuTDAdPOpvbGncC0BTVQrl+OM8xZGK6tWXt7g==", + "dev": true }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } - } - } - }, - "@jest/environment": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/@jest/environment/-/environment-29.7.0.tgz", - "integrity": "sha512-aQIfHDq33ExsN4jP1NWGXhxgQ/wixs60gDiKO+XVMd8Mn0NWPWgc34ZQDTb2jKaUWQ7MuwoitXAsN2XVXNMpAw==", - "dev": true, - "requires": { - "@jest/fake-timers": "^29.7.0", - "@jest/types": "^29.6.3", - "@types/node": "*", - "jest-mock": "^29.7.0" - } - }, - "@jest/expect": { - "version": "29.6.1", - "resolved": "https://registry.npmjs.org/@jest/expect/-/expect-29.6.1.tgz", - "integrity": "sha512-N5xlPrAYaRNyFgVf2s9Uyyvr795jnB6rObuPx4QFvNJz8aAjpZUDfO4bh5G/xuplMID8PrnuF1+SfSyDxhsgYg==", - "dev": true, - "requires": { - "expect": "^29.6.1", - "jest-snapshot": "^29.6.1" - } - }, - "@jest/expect-utils": { - "version": "29.6.1", - "resolved": "https://registry.npmjs.org/@jest/expect-utils/-/expect-utils-29.6.1.tgz", - "integrity": "sha512-o319vIf5pEMx0LmzSxxkYYxo4wrRLKHq9dP1yJU7FoPTB0LfAKSz8SWD6D/6U3v/O52t9cF5t+MeJiRsfk7zMw==", - "dev": true, - "requires": { - "jest-get-type": "^29.4.3" - }, - "dependencies": { - "jest-get-type": { - "version": "29.4.3", - "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.4.3.tgz", - "integrity": "sha512-J5Xez4nRRMjk8emnTpWrlkyb9pfRQQanDrvWHhsR1+VUfbwxi30eVcZFlcdGInRibU4G5LwHXpI7IRHU0CY+gg==", - "dev": true - } - } - }, - "@jest/fake-timers": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/@jest/fake-timers/-/fake-timers-29.7.0.tgz", - "integrity": "sha512-q4DH1Ha4TTFPdxLsqDXK1d3+ioSL7yL5oCMJZgDYm6i+6CygW5E5xVr/D1HdsGxjt1ZWSfUAs9OxSB/BNelWrQ==", - "dev": true, - "requires": { - "@jest/types": "^29.6.3", - "@sinonjs/fake-timers": "^10.0.2", - "@types/node": "*", - "jest-message-util": "^29.7.0", - "jest-mock": "^29.7.0", - "jest-util": "^29.7.0" - } - }, - "@jest/globals": { - "version": "29.6.1", - "resolved": "https://registry.npmjs.org/@jest/globals/-/globals-29.6.1.tgz", - "integrity": "sha512-2VjpaGy78JY9n9370H8zGRCFbYVWwjY6RdDMhoJHa1sYfwe6XM/azGN0SjY8kk7BOZApIejQ1BFPyH7FPG0w3A==", - "dev": true, - "requires": { - "@jest/environment": "^29.6.1", - "@jest/expect": "^29.6.1", - "@jest/types": "^29.6.1", - "jest-mock": "^29.6.1" - } - }, - "@jest/reporters": { - "version": "29.6.1", - "resolved": "https://registry.npmjs.org/@jest/reporters/-/reporters-29.6.1.tgz", - "integrity": "sha512-9zuaI9QKr9JnoZtFQlw4GREQbxgmNYXU6QuWtmuODvk5nvPUeBYapVR/VYMyi2WSx3jXTLJTJji8rN6+Cm4+FA==", - "dev": true, - "requires": { - "@bcoe/v8-coverage": "^0.2.3", - "@jest/console": "^29.6.1", - "@jest/test-result": "^29.6.1", - "@jest/transform": "^29.6.1", - "@jest/types": "^29.6.1", - "@jridgewell/trace-mapping": "^0.3.18", - "@types/node": "*", - "chalk": "^4.0.0", - "collect-v8-coverage": "^1.0.0", - "exit": "^0.1.2", - "glob": "^7.1.3", - "graceful-fs": "^4.2.9", - "istanbul-lib-coverage": "^3.0.0", - "istanbul-lib-instrument": "^5.1.0", - "istanbul-lib-report": "^3.0.0", - "istanbul-lib-source-maps": "^4.0.0", - "istanbul-reports": "^3.1.3", - "jest-message-util": "^29.6.1", - "jest-util": "^29.6.1", - "jest-worker": "^29.6.1", - "slash": "^3.0.0", - "string-length": "^4.0.1", - "strip-ansi": "^6.0.0", - "v8-to-istanbul": "^9.0.1" - }, - "dependencies": { "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "requires": { - "color-convert": "^2.0.1" - } + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dev": true, + "requires": { + "color-convert": "^1.9.0" + } + }, + "anymatch": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", + "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", + "dev": true, + "requires": { + "normalize-path": "^3.0.0", + "picomatch": "^2.0.4" + } + }, + "arg": { + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/arg/-/arg-4.1.3.tgz", + "integrity": "sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==", + "dev": true + }, + "argparse": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", + "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "dev": true, + "requires": { + "sprintf-js": "~1.0.2" + } + }, + "asmcrypto.js": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/asmcrypto.js/-/asmcrypto.js-2.3.2.tgz", + "integrity": "sha512-3FgFARf7RupsZETQ1nHnhLUUvpcttcCq1iZCaVAbJZbCZ5VNRrNyvpDyHTOb0KC3llFcsyOT/a99NZcCbeiEsA==" + }, + "asn1": { + "version": "0.2.6", + "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.6.tgz", + "integrity": "sha512-ix/FxPn0MDjeyJ7i/yoHGFt/EX6LyNbxSEhPPXODPL+KB0VPk86UYfL0lMdy+KCnv+fmvIzySwaK5COwqVbWTQ==", + "requires": { + "safer-buffer": "~2.1.0" + } + }, + "asynckit": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", + "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=" + }, + "babel-jest": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/babel-jest/-/babel-jest-29.6.1.tgz", + "integrity": "sha512-qu+3bdPEQC6KZSPz+4Fyjbga5OODNcp49j6GKzG1EKbkfyJBxEYGVUmVGpwCSeGouG52R4EgYMLb6p9YeEEQ4A==", + "dev": true, + "requires": { + "@jest/transform": "^29.6.1", + "@types/babel__core": "^7.1.14", + "babel-plugin-istanbul": "^6.1.1", + "babel-preset-jest": "^29.5.0", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "slash": "^3.0.0" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "requires": { + "color-convert": "^2.0.1" + } + }, + "chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, + "babel-plugin-istanbul": { + "version": "6.1.1", + "resolved": "https://registry.npmjs.org/babel-plugin-istanbul/-/babel-plugin-istanbul-6.1.1.tgz", + "integrity": "sha512-Y1IQok9821cC9onCx5otgFfRm7Lm+I+wwxOx738M/WLPZ9Q42m4IG5W0FNX8WLL2gYMZo3JkuXIH2DOpWM+qwA==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.0.0", + "@istanbuljs/load-nyc-config": "^1.0.0", + "@istanbuljs/schema": "^0.1.2", + "istanbul-lib-instrument": "^5.0.4", + "test-exclude": "^6.0.0" + } + }, + "babel-plugin-jest-hoist": { + "version": "29.5.0", + "resolved": "https://registry.npmjs.org/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-29.5.0.tgz", + "integrity": "sha512-zSuuuAlTMT4mzLj2nPnUm6fsE6270vdOfnpbJ+RmruU75UhLFvL0N2NgI7xpeS7NaB6hGqmd5pVpGTDYvi4Q3w==", + "dev": true, + "requires": { + "@babel/template": "^7.3.3", + "@babel/types": "^7.3.3", + "@types/babel__core": "^7.1.14", + "@types/babel__traverse": "^7.0.6" + } + }, + "babel-plugin-polyfill-corejs2": { + "version": "0.4.6", + "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs2/-/babel-plugin-polyfill-corejs2-0.4.6.tgz", + "integrity": "sha512-jhHiWVZIlnPbEUKSSNb9YoWcQGdlTLq7z1GHL4AjFxaoOUMuuEVJ+Y4pAaQUGOGk93YsVCKPbqbfw3m0SM6H8Q==", + "dev": true, + "requires": { + "@babel/compat-data": "^7.22.6", + "@babel/helper-define-polyfill-provider": "^0.4.3", + "semver": "^6.3.1" + } + }, + "babel-plugin-polyfill-corejs3": { + "version": "0.8.6", + "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.8.6.tgz", + "integrity": "sha512-leDIc4l4tUgU7str5BWLS2h8q2N4Nf6lGZP6UrNDxdtfF2g69eJ5L0H7S8A5Ln/arfFAfHor5InAdZuIOwZdgQ==", + "dev": true, + "requires": { + "@babel/helper-define-polyfill-provider": "^0.4.3", + "core-js-compat": "^3.33.1" + } + }, + "babel-plugin-polyfill-regenerator": { + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-regenerator/-/babel-plugin-polyfill-regenerator-0.5.3.tgz", + "integrity": "sha512-8sHeDOmXC8csczMrYEOf0UTNa4yE2SxV5JGeT/LP1n0OYVDUUFPxG9vdk2AlDlIit4t+Kf0xCtpgXPBwnn/9pw==", + "dev": true, + "requires": { + "@babel/helper-define-polyfill-provider": "^0.4.3" + } + }, + "babel-preset-current-node-syntax": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/babel-preset-current-node-syntax/-/babel-preset-current-node-syntax-1.0.1.tgz", + "integrity": "sha512-M7LQ0bxarkxQoN+vz5aJPsLBn77n8QgTFmo8WK0/44auK2xlCXrYcUxHFxgU7qW5Yzw/CjmLRK2uJzaCd7LvqQ==", + "dev": true, + "requires": { + "@babel/plugin-syntax-async-generators": "^7.8.4", + "@babel/plugin-syntax-bigint": "^7.8.3", + "@babel/plugin-syntax-class-properties": "^7.8.3", + "@babel/plugin-syntax-import-meta": "^7.8.3", + "@babel/plugin-syntax-json-strings": "^7.8.3", + "@babel/plugin-syntax-logical-assignment-operators": "^7.8.3", + "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3", + "@babel/plugin-syntax-numeric-separator": "^7.8.3", + "@babel/plugin-syntax-object-rest-spread": "^7.8.3", + "@babel/plugin-syntax-optional-catch-binding": "^7.8.3", + "@babel/plugin-syntax-optional-chaining": "^7.8.3", + "@babel/plugin-syntax-top-level-await": "^7.8.3" + } + }, + "babel-preset-jest": { + "version": "29.5.0", + "resolved": "https://registry.npmjs.org/babel-preset-jest/-/babel-preset-jest-29.5.0.tgz", + "integrity": "sha512-JOMloxOqdiBSxMAzjRaH023/vvcaSaec49zvg+2LmNsktC7ei39LTJGw02J+9uUtTZUq6xbLyJ4dxe9sSmIuAg==", + "dev": true, + "requires": { + "babel-plugin-jest-hoist": "^29.5.0", + "babel-preset-current-node-syntax": "^1.0.0" + } + }, + "balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", + "dev": true + }, + "bluebird": { + "version": "3.7.2", + "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.7.2.tgz", + "integrity": "sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg==", + "dev": true + }, + "brace-expansion": { + "version": "1.1.12", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.12.tgz", + "integrity": "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==", + "dev": true, + "requires": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "braces": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", + "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", + "dev": true, + "requires": { + "fill-range": "^7.1.1" + } + }, + "browserslist": { + "version": "4.22.1", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.22.1.tgz", + "integrity": "sha512-FEVc202+2iuClEhZhrWy6ZiAcRLvNMyYcxZ8raemul1DYVOVdFsbqckWLdsixQZCpJlwe77Z3UTalE7jsjnKfQ==", + "dev": true, + "requires": { + "caniuse-lite": "^1.0.30001541", + "electron-to-chromium": "^1.4.535", + "node-releases": "^2.0.13", + "update-browserslist-db": "^1.0.13" + } + }, + "bs-logger": { + "version": "0.2.6", + "resolved": "https://registry.npmjs.org/bs-logger/-/bs-logger-0.2.6.tgz", + "integrity": "sha512-pd8DCoxmbgc7hyPKOvxtqNcjYoOsABPQdcCUjGp3d42VR2CX1ORhk2A87oqqu5R1kk+76nsxZupkmyd+MVtCog==", + "dev": true, + "requires": { + "fast-json-stable-stringify": "2.x" + } + }, + "bser": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/bser/-/bser-2.1.1.tgz", + "integrity": "sha512-gQxTNE/GAfIIrmHLUE3oJyp5FO6HRBfhjnw4/wMmA63ZGDJnWBmgY/lyQBpnDUkGmAhbSe39tx2d/iTOAfglwQ==", + "dev": true, + "requires": { + "node-int64": "^0.4.0" + } + }, + "buffer-from": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", + "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", + "dev": true + }, + "builtin-modules": { + "version": "3.3.0", + "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-3.3.0.tgz", + "integrity": "sha512-zhaCDicdLuWN5UbN5IMnFqNMhNfo919sH85y2/ea+5Yg9TsTkeZxpL+JLbp6cgYFS4sRLp3YV4S6yDuqVWHYOw==", + "dev": true + }, + "call-bind-apply-helpers": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz", + "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==", + "requires": { + "es-errors": "^1.3.0", + "function-bind": "^1.1.2" + } + }, + "callsites": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", + "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", + "dev": true + }, + "camelcase": { + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", + "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", + "dev": true + }, + "caniuse-lite": { + "version": "1.0.30001565", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001565.tgz", + "integrity": "sha512-xrE//a3O7TP0vaJ8ikzkD2c2NgcVUvsEe2IvFTntV4Yd1Z9FVzh+gW+enX96L0psrbaFMcVcH2l90xNuGDWc8w==", + "dev": true + }, + "catharsis": { + "version": "0.9.0", + "resolved": "https://registry.npmjs.org/catharsis/-/catharsis-0.9.0.tgz", + "integrity": "sha512-prMTQVpcns/tzFgFVkVp6ak6RykZyWb3gu8ckUpd6YkTlacOd3DXGJjIpD4Q6zJirizvaiAjSSHlOsA+6sNh2A==", + "dev": true, + "requires": { + "lodash": "^4.17.15" + } }, "chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dev": true, + "requires": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + } + }, + "char-regex": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/char-regex/-/char-regex-1.0.2.tgz", + "integrity": "sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw==", + "dev": true + }, + "ci-info": { + "version": "3.8.0", + "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-3.8.0.tgz", + "integrity": "sha512-eXTggHWSooYhq49F2opQhuHWgzucfF2YgODK4e1566GQs5BIfP30B0oenwBJHfWxAs2fyPB1s7Mg949zLf61Yw==", + "dev": true + }, + "cjs-module-lexer": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/cjs-module-lexer/-/cjs-module-lexer-1.2.3.tgz", + "integrity": "sha512-0TNiGstbQmCFwt4akjjBg5pLRTSyj/PkWQ1ZoO2zntmg9yLqSRxwEa4iCfQLGjqhiqBfOJa7W/E8wfGrTDmlZQ==", + "dev": true + }, + "cliui": { + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", + "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", + "dev": true, + "requires": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.1", + "wrap-ansi": "^7.0.0" + } + }, + "co": { + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz", + "integrity": "sha512-QVb0dM5HvG+uaxitm8wONl7jltx8dqhfU33DcqtOZcLSVIKSDDLDi7+0LbAKiyI8hD9u42m2YxXSkMGWThaecQ==", + "dev": true + }, + "collect-v8-coverage": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/collect-v8-coverage/-/collect-v8-coverage-1.0.2.tgz", + "integrity": "sha512-lHl4d5/ONEbLlJvaJNtsF/Lz+WvB07u2ycqTYbdrq7UypDXailES4valYb2eWiJFxZlVmpGekfqoxQhzyFdT4Q==", + "dev": true }, "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "requires": { - "color-name": "~1.1.4" - } + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "dev": true, + "requires": { + "color-name": "1.1.3" + } }, "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", + "dev": true + }, + "combined-stream": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", + "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", + "requires": { + "delayed-stream": "~1.0.0" + } }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true + "commondir": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/commondir/-/commondir-1.0.1.tgz", + "integrity": "sha512-W9pAhw0ja1Edb5GVdIF1mjZw/ASI0AlShXM83UUGe2DVr5TdAPEA1OA8m/g8zWp9x6On7gqufY+FatDbC3MDQg==", + "dev": true }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } - } - } - }, - "@jest/schemas": { - "version": "29.6.3", - "resolved": "https://registry.npmjs.org/@jest/schemas/-/schemas-29.6.3.tgz", - "integrity": "sha512-mo5j5X+jIZmJQveBKeS/clAueipV7KgiX1vMgCxam1RNYiqE1w62n0/tJJnHtjW8ZHcQco5gY85jA3mi0L+nSA==", - "dev": true, - "requires": { - "@sinclair/typebox": "^0.27.8" - } - }, - "@jest/source-map": { - "version": "29.6.0", - "resolved": "https://registry.npmjs.org/@jest/source-map/-/source-map-29.6.0.tgz", - "integrity": "sha512-oA+I2SHHQGxDCZpbrsCQSoMLb3Bz547JnM+jUr9qEbuw0vQlWZfpPS7CO9J7XiwKicEz9OFn/IYoLkkiUD7bzA==", - "dev": true, - "requires": { - "@jridgewell/trace-mapping": "^0.3.18", - "callsites": "^3.0.0", - "graceful-fs": "^4.2.9" - } - }, - "@jest/test-result": { - "version": "29.6.1", - "resolved": "https://registry.npmjs.org/@jest/test-result/-/test-result-29.6.1.tgz", - "integrity": "sha512-Ynr13ZRcpX6INak0TPUukU8GWRfm/vAytE3JbJNGAvINySWYdfE7dGZMbk36oVuK4CigpbhMn8eg1dixZ7ZJOw==", - "dev": true, - "requires": { - "@jest/console": "^29.6.1", - "@jest/types": "^29.6.1", - "@types/istanbul-lib-coverage": "^2.0.0", - "collect-v8-coverage": "^1.0.0" - } - }, - "@jest/test-sequencer": { - "version": "29.6.1", - "resolved": "https://registry.npmjs.org/@jest/test-sequencer/-/test-sequencer-29.6.1.tgz", - "integrity": "sha512-oBkC36PCDf/wb6dWeQIhaviU0l5u6VCsXa119yqdUosYAt7/FbQU2M2UoziO3igj/HBDEgp57ONQ3fm0v9uyyg==", - "dev": true, - "requires": { - "@jest/test-result": "^29.6.1", - "graceful-fs": "^4.2.9", - "jest-haste-map": "^29.6.1", - "slash": "^3.0.0" - } - }, - "@jest/transform": { - "version": "29.6.1", - "resolved": "https://registry.npmjs.org/@jest/transform/-/transform-29.6.1.tgz", - "integrity": "sha512-URnTneIU3ZjRSaf906cvf6Hpox3hIeJXRnz3VDSw5/X93gR8ycdfSIEy19FlVx8NFmpN7fe3Gb1xF+NjXaQLWg==", - "dev": true, - "requires": { - "@babel/core": "^7.11.6", - "@jest/types": "^29.6.1", - "@jridgewell/trace-mapping": "^0.3.18", - "babel-plugin-istanbul": "^6.1.1", - "chalk": "^4.0.0", - "convert-source-map": "^2.0.0", - "fast-json-stable-stringify": "^2.1.0", - "graceful-fs": "^4.2.9", - "jest-haste-map": "^29.6.1", - "jest-regex-util": "^29.4.3", - "jest-util": "^29.6.1", - "micromatch": "^4.0.4", - "pirates": "^4.0.4", - "slash": "^3.0.0", - "write-file-atomic": "^4.0.2" - }, - "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "requires": { - "color-convert": "^2.0.1" - } + "concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", + "dev": true }, - "chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } + "convert-source-map": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", + "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==", + "dev": true + }, + "core-js-compat": { + "version": "3.33.3", + "resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.33.3.tgz", + "integrity": "sha512-cNzGqFsh3Ot+529GIXacjTJ7kegdt5fPXxCBVS1G0iaZpuo/tBz399ymceLJveQhFFZ8qThHiP3fzuoQjKN2ow==", + "dev": true, + "requires": { + "browserslist": "^4.22.1" + } }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "requires": { - "color-name": "~1.1.4" - } + "cross-spawn": { + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", + "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", + "dev": true, + "requires": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + } }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true + "cssom": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/cssom/-/cssom-0.5.0.tgz", + "integrity": "sha512-iKuQcq+NdHqlAcwUY0o/HL69XQrUaQdMjmStJ8JFmUaiiQErlhrmuigkg/CU4E2J0IyUKUrMAgl36TvN67MqTw==", + "dev": true + }, + "cssstyle": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/cssstyle/-/cssstyle-2.3.0.tgz", + "integrity": "sha512-AZL67abkUzIuvcHqk7c09cezpGNcxUxU4Ioi/05xHk4DQeTkWmGYftIE6ctU6AEt+Gn4n1lDStOtj7FKycP71A==", + "dev": true, + "requires": { + "cssom": "~0.3.6" + }, + "dependencies": { + "cssom": { + "version": "0.3.8", + "resolved": "https://registry.npmjs.org/cssom/-/cssom-0.3.8.tgz", + "integrity": "sha512-b0tGHbfegbhPJpxpiBPU2sCkigAqtM9O121le6bbOlgyV+NyGyCmVfJ6QW9eRjz8CpNfWEOYBIMIGRYkLwsIYg==", + "dev": true + } + } }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true + "data-urls": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/data-urls/-/data-urls-3.0.2.tgz", + "integrity": "sha512-Jy/tj3ldjZJo63sVAvg6LHt2mHvl4V6AgRAmNDtLdm7faqtsx+aJG42rsyCo9JCoRVKwPFzKlIPx3DIibwSIaQ==", + "dev": true, + "requires": { + "abab": "^2.0.6", + "whatwg-mimetype": "^3.0.0", + "whatwg-url": "^11.0.0" + } }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } - } - } - }, - "@jest/types": { - "version": "29.6.3", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-29.6.3.tgz", - "integrity": "sha512-u3UPsIilWKOM3F9CXtrG8LEJmNxwoCQC/XVj4IKYXvvpx7QIi/Kg1LI5uDmDpKlac62NUtX7eLjRh+jVZcLOzw==", - "dev": true, - "requires": { - "@jest/schemas": "^29.6.3", - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^3.0.0", - "@types/node": "*", - "@types/yargs": "^17.0.8", - "chalk": "^4.0.0" - }, - "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "requires": { - "color-convert": "^2.0.1" - } + "debug": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "dev": true, + "requires": { + "ms": "2.1.2" + } }, - "chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } + "decimal.js": { + "version": "10.4.3", + "resolved": "https://registry.npmjs.org/decimal.js/-/decimal.js-10.4.3.tgz", + "integrity": "sha512-VBBaLc1MgL5XpzgIP7ny5Z6Nx3UrRkIViUkPUdtl9aya5amy3De1gsUUSB1g3+3sExYNjCAsAznmukyxCb1GRA==", + "dev": true + }, + "dedent": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/dedent/-/dedent-0.7.0.tgz", + "integrity": "sha512-Q6fKUPqnAHAyhiUgFU7BUzLiv0kd8saH9al7tnu5Q/okj6dnupxyTgFIBjVzJATdfIAm9NAsvXNzjaKa+bxVyA==", + "dev": true + }, + "deep-is": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", + "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", + "dev": true + }, + "deepmerge": { + "version": "4.2.2", + "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.2.2.tgz", + "integrity": "sha512-FJ3UgI4gIl+PHZm53knsuSFpE+nESMr7M4v9QcgB7S63Kj/6WqMiFQJpBBYz1Pt+66bZpP3Q7Lye0Oo9MPKEdg==", + "dev": true + }, + "delayed-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", + "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk=" + }, + "detect-newline": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/detect-newline/-/detect-newline-3.1.0.tgz", + "integrity": "sha512-TLz+x/vEXm/Y7P7wn1EJFNLxYpUD4TgMosxY6fAVJUnJMbupHBOncxyWUG9OpTaH9EBD7uFI5LfEgmMOc54DsA==", + "dev": true + }, + "diff": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", + "integrity": "sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==", + "dev": true }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "requires": { - "color-name": "~1.1.4" - } + "diff-sequences": { + "version": "24.9.0", + "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-24.9.0.tgz", + "integrity": "sha512-Dj6Wk3tWyTE+Fo1rW8v0Xhwk80um6yFYKbuAxc9c3EZxIHFDYwbi34Uk42u1CdnIiVorvt4RmlSDjIPyzGC2ew==", + "dev": true + }, + "domexception": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/domexception/-/domexception-4.0.0.tgz", + "integrity": "sha512-A2is4PLG+eeSfoTMA95/s4pvAoSo2mKtiM5jlHkAVewmiO8ISFTFKZjH7UAM1Atli/OT/7JHOrJRJiMKUZKYBw==", + "dev": true, + "requires": { + "webidl-conversions": "^7.0.0" + } }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true + "dunder-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz", + "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==", + "requires": { + "call-bind-apply-helpers": "^1.0.1", + "es-errors": "^1.3.0", + "gopd": "^1.2.0" + } }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true + "electron-to-chromium": { + "version": "1.4.600", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.600.tgz", + "integrity": "sha512-KD6CWjf1BnQG+NsXuyiTDDT1eV13sKuYsOUioXkQweYTQIbgHkXPry9K7M+7cKtYHnSUPitVaLrXYB1jTkkYrw==", + "dev": true }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } - } - } - }, - "@jridgewell/gen-mapping": { - "version": "0.3.3", - "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.3.tgz", - "integrity": "sha512-HLhSWOLRi875zjjMG/r+Nv0oCW8umGb0BgEhyX3dDX3egwZtB8PqLnjz3yedt8R5StBrzcg4aBpnh8UA9D1BoQ==", - "dev": true, - "requires": { - "@jridgewell/set-array": "^1.0.1", - "@jridgewell/sourcemap-codec": "^1.4.10", - "@jridgewell/trace-mapping": "^0.3.9" - } - }, - "@jridgewell/resolve-uri": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.0.tgz", - "integrity": "sha512-F2msla3tad+Mfht5cJq7LSXcdudKTWCVYUgw6pLFOOHSTtZlj6SWNYAp+AhuqLmWdBO2X5hPrLcu8cVP8fy28w==", - "dev": true - }, - "@jridgewell/set-array": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.1.2.tgz", - "integrity": "sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==", - "dev": true - }, - "@jridgewell/sourcemap-codec": { - "version": "1.4.15", - "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz", - "integrity": "sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==", - "dev": true - }, - "@jridgewell/trace-mapping": { - "version": "0.3.18", - "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.18.tgz", - "integrity": "sha512-w+niJYzMHdd7USdiH2U6869nqhD2nbfZXND5Yp93qIbEmnDNk7PD48o+YchRVpzMU7M6jVCbenTR7PA1FLQ9pA==", - "dev": true, - "requires": { - "@jridgewell/resolve-uri": "3.1.0", - "@jridgewell/sourcemap-codec": "1.4.14" - }, - "dependencies": { - "@jridgewell/sourcemap-codec": { - "version": "1.4.14", - "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.14.tgz", - "integrity": "sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw==", - "dev": true - } - } - }, - "@jsdoc/salty": { - "version": "0.2.5", - "resolved": "https://registry.npmjs.org/@jsdoc/salty/-/salty-0.2.5.tgz", - "integrity": "sha512-TfRP53RqunNe2HBobVBJ0VLhK1HbfvBYeTC1ahnN64PWvyYyGebmMiPkuwvD9fpw2ZbkoPb8Q7mwy0aR8Z9rvw==", - "dev": true, - "requires": { - "lodash": "^4.17.21" - } - }, - "@noble/curves": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/@noble/curves/-/curves-2.0.1.tgz", - "integrity": "sha512-vs1Az2OOTBiP4q0pwjW5aF0xp9n4MxVrmkFBxc6EKZc6ddYx5gaZiAsZoq0uRRXWbi3AT/sBqn05eRPtn1JCPw==", - "requires": { - "@noble/hashes": "2.0.1" - } - }, - "@noble/hashes": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-2.0.1.tgz", - "integrity": "sha512-XlOlEbQcE9fmuXxrVTXCTlG2nlRXa9Rj3rr5Ue/+tX+nmkgbX720YHh0VR3hBF9xDvwnb8D2shVGOwNx+ulArw==" - }, - "@noble/post-quantum": { - "version": "0.5.2", - "resolved": "https://registry.npmjs.org/@noble/post-quantum/-/post-quantum-0.5.2.tgz", - "integrity": "sha512-etMDBkCuB95Xj/gfsWYBD2x+84IjL4uMLd/FhGoUUG/g+eh0K2eP7pJz1EmvpN8Df3vKdoWVAc7RxIBCHQfFHQ==", - "requires": { - "@noble/curves": "~2.0.0", - "@noble/hashes": "~2.0.0" - } - }, - "@protobufjs/aspromise": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@protobufjs/aspromise/-/aspromise-1.1.2.tgz", - "integrity": "sha1-m4sMxmPWaafY9vXQiToU00jzD78=", - "dev": true - }, - "@protobufjs/base64": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@protobufjs/base64/-/base64-1.1.2.tgz", - "integrity": "sha512-AZkcAA5vnN/v4PDqKyMR5lx7hZttPDgClv83E//FMNhR2TMcLUhfRUBHCmSl0oi9zMgDDqRUJkSxO3wm85+XLg==", - "dev": true - }, - "@protobufjs/codegen": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/@protobufjs/codegen/-/codegen-2.0.4.tgz", - "integrity": "sha512-YyFaikqM5sH0ziFZCN3xDC7zeGaB/d0IUb9CATugHWbd1FRFwWwt4ld4OYMPWu5a3Xe01mGAULCdqhMlPl29Jg==", - "dev": true - }, - "@protobufjs/eventemitter": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@protobufjs/eventemitter/-/eventemitter-1.1.0.tgz", - "integrity": "sha1-NVy8mLr61ZePntCV85diHx0Ga3A=", - "dev": true - }, - "@protobufjs/fetch": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@protobufjs/fetch/-/fetch-1.1.0.tgz", - "integrity": "sha1-upn7WYYUr2VwDBYZ/wbUVLDYTEU=", - "dev": true, - "requires": { - "@protobufjs/aspromise": "^1.1.1", - "@protobufjs/inquire": "^1.1.0" - } - }, - "@protobufjs/float": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/@protobufjs/float/-/float-1.0.2.tgz", - "integrity": "sha1-Xp4avctz/Ap8uLKR33jIy9l7h9E=", - "dev": true - }, - "@protobufjs/inquire": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@protobufjs/inquire/-/inquire-1.1.0.tgz", - "integrity": "sha1-/yAOPnzyQp4tyvwRQIKOjMY48Ik=", - "dev": true - }, - "@protobufjs/path": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@protobufjs/path/-/path-1.1.2.tgz", - "integrity": "sha1-bMKyDFya1q0NzP0hynZz2Nf79o0=", - "dev": true - }, - "@protobufjs/pool": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@protobufjs/pool/-/pool-1.1.0.tgz", - "integrity": "sha1-Cf0V8tbTq/qbZbw2ZQbWrXhG/1Q=", - "dev": true - }, - "@protobufjs/utf8": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@protobufjs/utf8/-/utf8-1.1.0.tgz", - "integrity": "sha1-p3c2C1s5oaLlEG+OhY8v0tBgxXA=", - "dev": true - }, - "@rollup/plugin-commonjs": { - "version": "22.0.1", - "resolved": "https://registry.npmjs.org/@rollup/plugin-commonjs/-/plugin-commonjs-22.0.1.tgz", - "integrity": "sha512-dGfEZvdjDHObBiP5IvwTKMVeq/tBZGMBHZFMdIV1ClMM/YoWS34xrHFGfag9SN2ZtMgNZRFruqvxZQEa70O6nQ==", - "dev": true, - "requires": { - "@rollup/pluginutils": "^3.1.0", - "commondir": "^1.0.1", - "estree-walker": "^2.0.1", - "glob": "^7.1.6", - "is-reference": "^1.2.1", - "magic-string": "^0.25.7", - "resolve": "^1.17.0" - }, - "dependencies": { - "estree-walker": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-2.0.2.tgz", - "integrity": "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==", - "dev": true - } - } - }, - "@rollup/plugin-node-resolve": { - "version": "13.3.0", - "resolved": "https://registry.npmjs.org/@rollup/plugin-node-resolve/-/plugin-node-resolve-13.3.0.tgz", - "integrity": "sha512-Lus8rbUo1eEcnS4yTFKLZrVumLPY+YayBdWXgFSHYhTT2iJbMhoaaBL3xl5NCdeRytErGr8tZ0L71BMRmnlwSw==", - "dev": true, - "requires": { - "@rollup/pluginutils": "^3.1.0", - "@types/resolve": "1.17.1", - "deepmerge": "^4.2.2", - "is-builtin-module": "^3.1.0", - "is-module": "^1.0.0", - "resolve": "^1.19.0" - } - }, - "@rollup/pluginutils": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/@rollup/pluginutils/-/pluginutils-3.1.0.tgz", - "integrity": "sha512-GksZ6pr6TpIjHm8h9lSQ8pi8BE9VeubNT0OMJ3B5uZJ8pz73NPiqOtCog/x2/QzM1ENChPKxMDhiQuRHsqc+lg==", - "dev": true, - "requires": { - "@types/estree": "0.0.39", - "estree-walker": "^1.0.1", - "picomatch": "^2.2.2" - } - }, - "@sinclair/typebox": { - "version": "0.27.8", - "resolved": "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.27.8.tgz", - "integrity": "sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA==", - "dev": true - }, - "@sinonjs/commons": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/@sinonjs/commons/-/commons-3.0.0.tgz", - "integrity": "sha512-jXBtWAF4vmdNmZgD5FoKsVLv3rPgDnLgPbU84LIJ3otV44vJlDRokVng5v8NFJdCf/da9legHcKaRuZs4L7faA==", - "dev": true, - "requires": { - "type-detect": "4.0.8" - } - }, - "@sinonjs/fake-timers": { - "version": "10.3.0", - "resolved": "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-10.3.0.tgz", - "integrity": "sha512-V4BG07kuYSUkTCSBHG8G8TNhM+F19jXFWnQtzj+we8DrkpSBCee9Z3Ms8yiGer/dlmhe35/Xdgyo3/0rQKg7YA==", - "dev": true, - "requires": { - "@sinonjs/commons": "^3.0.0" - } - }, - "@tootallnate/once": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/@tootallnate/once/-/once-2.0.0.tgz", - "integrity": "sha512-XCuKFP5PS55gnMVu3dty8KPatLqUoy/ZYzDzAGCQ8JNFCkLXzmI7vNHCR+XpbZaMWQK/vQubr7PkYq8g470J/A==", - "dev": true - }, - "@types/babel__core": { - "version": "7.20.1", - "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.1.tgz", - "integrity": "sha512-aACu/U/omhdk15O4Nfb+fHgH/z3QsfQzpnvRZhYhThms83ZnAOZz7zZAWO7mn2yyNQaA4xTO8GLK3uqFU4bYYw==", - "dev": true, - "requires": { - "@babel/parser": "^7.20.7", - "@babel/types": "^7.20.7", - "@types/babel__generator": "*", - "@types/babel__template": "*", - "@types/babel__traverse": "*" - } - }, - "@types/babel__generator": { - "version": "7.6.4", - "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.6.4.tgz", - "integrity": "sha512-tFkciB9j2K755yrTALxD44McOrk+gfpIpvC3sxHjRawj6PfnQxrse4Clq5y/Rq+G3mrBurMax/lG8Qn2t9mSsg==", - "dev": true, - "requires": { - "@babel/types": "^7.0.0" - } - }, - "@types/babel__template": { - "version": "7.4.1", - "resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.1.tgz", - "integrity": "sha512-azBFKemX6kMg5Io+/rdGT0dkGreboUVR0Cdm3fz9QJWpaQGJRQXl7C+6hOTCZcMll7KFyEQpgbYI2lHdsS4U7g==", - "dev": true, - "requires": { - "@babel/parser": "^7.1.0", - "@babel/types": "^7.0.0" - } - }, - "@types/babel__traverse": { - "version": "7.20.1", - "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.20.1.tgz", - "integrity": "sha512-MitHFXnhtgwsGZWtT68URpOvLN4EREih1u3QtQiN4VdAxWKRVvGCSvw/Qth0M0Qq3pJpnGOu5JaM/ydK7OGbqg==", - "dev": true, - "requires": { - "@babel/types": "^7.20.7" - } - }, - "@types/estree": { - "version": "0.0.39", - "resolved": "https://registry.npmjs.org/@types/estree/-/estree-0.0.39.tgz", - "integrity": "sha512-EYNwp3bU+98cpU4lAWYYL7Zz+2gryWH1qbdDTidVd6hkiR6weksdbMadyXKXNPEkQFhXM+hVO9ZygomHXp+AIw==", - "dev": true - }, - "@types/graceful-fs": { - "version": "4.1.6", - "resolved": "https://registry.npmjs.org/@types/graceful-fs/-/graceful-fs-4.1.6.tgz", - "integrity": "sha512-Sig0SNORX9fdW+bQuTEovKj3uHcUL6LQKbCrrqb1X7J6/ReAbhCXRAhc+SMejhLELFj2QcyuxmUooZ4bt5ReSw==", - "dev": true, - "requires": { - "@types/node": "*" - } - }, - "@types/istanbul-lib-coverage": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.4.tgz", - "integrity": "sha512-z/QT1XN4K4KYuslS23k62yDIDLwLFkzxOuMplDtObz0+y7VqJCaO2o+SPwHCvLFZh7xazvvoor2tA/hPz9ee7g==", - "dev": true - }, - "@types/istanbul-lib-report": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/@types/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz", - "integrity": "sha512-plGgXAPfVKFoYfa9NpYDAkseG+g6Jr294RqeqcqDixSbU34MZVJRi/P+7Y8GDpzkEwLaGZZOpKIEmeVZNtKsrg==", - "dev": true, - "requires": { - "@types/istanbul-lib-coverage": "*" - } - }, - "@types/istanbul-reports": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.1.tgz", - "integrity": "sha512-c3mAZEuK0lvBp8tmuL74XRKn1+y2dcwOUpH7x4WrF6gk1GIgiluDRgMYQtw2OFcBvAJWlt6ASU3tSqxp0Uu0Aw==", - "dev": true, - "requires": { - "@types/istanbul-lib-report": "*" - } - }, - "@types/jest": { - "version": "24.9.1", - "resolved": "https://registry.npmjs.org/@types/jest/-/jest-24.9.1.tgz", - "integrity": "sha512-Fb38HkXSVA4L8fGKEZ6le5bB8r6MRWlOCZbVuWZcmOMSCd2wCYOwN1ibj8daIoV9naq7aaOZjrLCoCMptKU/4Q==", - "dev": true, - "requires": { - "jest-diff": "^24.3.0" - } - }, - "@types/jsdom": { - "version": "20.0.1", - "resolved": "https://registry.npmjs.org/@types/jsdom/-/jsdom-20.0.1.tgz", - "integrity": "sha512-d0r18sZPmMQr1eG35u12FZfhIXNrnsPU/g5wvRKCUf/tOGilKKwYMYGqh33BNR6ba+2gkHw1EUiHoN3mn7E5IQ==", - "dev": true, - "requires": { - "@types/node": "*", - "@types/tough-cookie": "*", - "parse5": "^7.0.0" - } - }, - "@types/linkify-it": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/@types/linkify-it/-/linkify-it-3.0.2.tgz", - "integrity": "sha512-HZQYqbiFVWufzCwexrvh694SOim8z2d+xJl5UNamcvQFejLY/2YUtzXHYi3cHdI7PMlS8ejH2slRAOJQ32aNbA==", - "dev": true - }, - "@types/markdown-it": { - "version": "12.2.3", - "resolved": "https://registry.npmjs.org/@types/markdown-it/-/markdown-it-12.2.3.tgz", - "integrity": "sha512-GKMHFfv3458yYy+v/N8gjufHO6MSZKCOXpZc5GXIWWy8uldwfmPn98vp81gZ5f9SVw8YYBctgfJ22a2d7AOMeQ==", - "dev": true, - "requires": { - "@types/linkify-it": "*", - "@types/mdurl": "*" - } - }, - "@types/mdurl": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/@types/mdurl/-/mdurl-1.0.2.tgz", - "integrity": "sha512-eC4U9MlIcu2q0KQmXszyn5Akca/0jrQmwDRgpAMJai7qBWq4amIQhZyNau4VYGtCeALvW1/NtjzJJ567aZxfKA==", - "dev": true - }, - "@types/node": { - "version": "20.10.2", - "resolved": "https://registry.npmjs.org/@types/node/-/node-20.10.2.tgz", - "integrity": "sha512-37MXfxkb0vuIlRKHNxwCkb60PNBpR94u4efQuN4JgIAm66zfCDXGSAFCef9XUWFovX2R1ok6Z7MHhtdVXXkkIw==", - "dev": true, - "requires": { - "undici-types": "~5.26.4" - } - }, - "@types/prettier": { - "version": "2.7.3", - "resolved": "https://registry.npmjs.org/@types/prettier/-/prettier-2.7.3.tgz", - "integrity": "sha512-+68kP9yzs4LMp7VNh8gdzMSPZFL44MLGqiHWvttYJe+6qnuVr4Ek9wSBQoveqY/r+LwjCcU29kNVkidwim+kYA==", - "dev": true - }, - "@types/resolve": { - "version": "1.17.1", - "resolved": "https://registry.npmjs.org/@types/resolve/-/resolve-1.17.1.tgz", - "integrity": "sha512-yy7HuzQhj0dhGpD8RLXSZWEkLsV9ibvxvi6EiJ3bkqLAO1RGo0WbkWQiwpRlSFymTJRz0d3k5LM3kkx8ArDbLw==", - "dev": true, - "requires": { - "@types/node": "*" - } - }, - "@types/stack-utils": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/@types/stack-utils/-/stack-utils-2.0.1.tgz", - "integrity": "sha512-Hl219/BT5fLAaz6NDkSuhzasy49dwQS/DSdu4MdggFB8zcXv7vflBI3xp7FEmkmdDkBUI2bPUNeMttp2knYdxw==", - "dev": true - }, - "@types/tough-cookie": { - "version": "4.0.5", - "resolved": "https://registry.npmjs.org/@types/tough-cookie/-/tough-cookie-4.0.5.tgz", - "integrity": "sha512-/Ad8+nIOV7Rl++6f1BdKxFSMgmoqEoYbHRpPcx3JEfv8VRsQe9Z4mCXeJBzxs7mbHY/XOZZuXlRNfhpVPbs6ZA==", - "dev": true - }, - "@types/yargs": { - "version": "17.0.24", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.24.tgz", - "integrity": "sha512-6i0aC7jV6QzQB8ne1joVZ0eSFIstHsCrobmOtghM11yGlH0j43FKL2UhWdELkyps0zuf7qVTUVCCR+tgSlyLLw==", - "dev": true, - "requires": { - "@types/yargs-parser": "*" - } - }, - "@types/yargs-parser": { - "version": "21.0.0", - "resolved": "https://registry.npmjs.org/@types/yargs-parser/-/yargs-parser-21.0.0.tgz", - "integrity": "sha512-iO9ZQHkZxHn4mSakYV0vFHAVDyEOIJQrV2uZ06HxEPcx+mt8swXoZHIbaaJ2crJYFfErySgktuTZ3BeLz+XmFA==", - "dev": true - }, - "abab": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/abab/-/abab-2.0.6.tgz", - "integrity": "sha512-j2afSsaIENvHZN2B8GOpF566vZ5WVk5opAiMTvWgaQT8DkbOqsTfvNAvHoRGU2zzP8cPoqys+xHTRDWW8L+/BA==", - "dev": true - }, - "acorn": { - "version": "8.10.0", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.10.0.tgz", - "integrity": "sha512-F0SAmZ8iUtS//m8DmCTA0jlh6TDKkHQyK6xc6V4KDTyZKA9dnvX9/3sRTVQrWm79glUAZbnmmNcdYwUIHWVybw==", - "dev": true - }, - "acorn-globals": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/acorn-globals/-/acorn-globals-7.0.1.tgz", - "integrity": "sha512-umOSDSDrfHbTNPuNpC2NSnnA3LUrqpevPb4T9jRx4MagXNS0rs+gwiTcAvqCRmsD6utzsrzNt+ebm00SNWiC3Q==", - "dev": true, - "requires": { - "acorn": "^8.1.0", - "acorn-walk": "^8.0.2" - } - }, - "acorn-jsx": { - "version": "5.3.2", - "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz", - "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==", - "dev": true, - "requires": {} - }, - "acorn-walk": { - "version": "8.2.0", - "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.2.0.tgz", - "integrity": "sha512-k+iyHEuPgSw6SbuDpGQM+06HQUa04DZ3o+F6CSzXMvvI5KMvnaEqXe+YVe555R9nn6GPt404fos4wcgpw12SDA==", - "dev": true - }, - "agent-base": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz", - "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==", - "dev": true, - "requires": { - "debug": "4" - } - }, - "ansi-escapes": { - "version": "4.3.2", - "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz", - "integrity": "sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==", - "dev": true, - "requires": { - "type-fest": "^0.21.3" - } - }, - "ansi-regex": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.1.tgz", - "integrity": "sha512-ILlv4k/3f6vfQ4OoP2AGvirOktlQ98ZEL1k9FaQjxa3L1abBgbuTDAdPOpvbGncC0BTVQrl+OM8xZGK6tWXt7g==", - "dev": true - }, - "ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "dev": true, - "requires": { - "color-convert": "^1.9.0" - } - }, - "anymatch": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", - "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", - "dev": true, - "requires": { - "normalize-path": "^3.0.0", - "picomatch": "^2.0.4" - } - }, - "arg": { - "version": "4.1.3", - "resolved": "https://registry.npmjs.org/arg/-/arg-4.1.3.tgz", - "integrity": "sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==", - "dev": true - }, - "argparse": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", - "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", - "dev": true, - "requires": { - "sprintf-js": "~1.0.2" - } - }, - "asmcrypto.js": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/asmcrypto.js/-/asmcrypto.js-2.3.2.tgz", - "integrity": "sha512-3FgFARf7RupsZETQ1nHnhLUUvpcttcCq1iZCaVAbJZbCZ5VNRrNyvpDyHTOb0KC3llFcsyOT/a99NZcCbeiEsA==" - }, - "asn1": { - "version": "0.2.6", - "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.6.tgz", - "integrity": "sha512-ix/FxPn0MDjeyJ7i/yoHGFt/EX6LyNbxSEhPPXODPL+KB0VPk86UYfL0lMdy+KCnv+fmvIzySwaK5COwqVbWTQ==", - "requires": { - "safer-buffer": "~2.1.0" - } - }, - "asynckit": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", - "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=" - }, - "babel-jest": { - "version": "29.6.1", - "resolved": "https://registry.npmjs.org/babel-jest/-/babel-jest-29.6.1.tgz", - "integrity": "sha512-qu+3bdPEQC6KZSPz+4Fyjbga5OODNcp49j6GKzG1EKbkfyJBxEYGVUmVGpwCSeGouG52R4EgYMLb6p9YeEEQ4A==", - "dev": true, - "requires": { - "@jest/transform": "^29.6.1", - "@types/babel__core": "^7.1.14", - "babel-plugin-istanbul": "^6.1.1", - "babel-preset-jest": "^29.5.0", - "chalk": "^4.0.0", - "graceful-fs": "^4.2.9", - "slash": "^3.0.0" - }, - "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "requires": { - "color-convert": "^2.0.1" - } + "emittery": { + "version": "0.13.1", + "resolved": "https://registry.npmjs.org/emittery/-/emittery-0.13.1.tgz", + "integrity": "sha512-DeWwawk6r5yR9jFgnDKYt4sLS0LmHJJi3ZOnb5/JdbYwj3nW+FxQnHIjhBKz8YLC7oRNPVM9NQ47I3CVx34eqQ==", + "dev": true }, - "chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } + "emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "dev": true }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "requires": { - "color-name": "~1.1.4" - } + "entities": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/entities/-/entities-2.1.0.tgz", + "integrity": "sha512-hCx1oky9PFrJ611mf0ifBLBRW8lUUVRlFolb5gWRfIELabBlbp9xZvrqZLZAs+NxFnbfQoeGd8wDkygjg7U85w==", + "dev": true + }, + "error-ex": { + "version": "1.3.2", + "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", + "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==", + "dev": true, + "requires": { + "is-arrayish": "^0.2.1" + } }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true + "es-define-property": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz", + "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==" + }, + "es-errors": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", + "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==" + }, + "es-object-atoms": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz", + "integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==", + "requires": { + "es-errors": "^1.3.0" + } }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true + "es-set-tostringtag": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.1.0.tgz", + "integrity": "sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==", + "requires": { + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.6", + "has-tostringtag": "^1.0.2", + "hasown": "^2.0.2" + } }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } - } - } - }, - "babel-plugin-istanbul": { - "version": "6.1.1", - "resolved": "https://registry.npmjs.org/babel-plugin-istanbul/-/babel-plugin-istanbul-6.1.1.tgz", - "integrity": "sha512-Y1IQok9821cC9onCx5otgFfRm7Lm+I+wwxOx738M/WLPZ9Q42m4IG5W0FNX8WLL2gYMZo3JkuXIH2DOpWM+qwA==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.0.0", - "@istanbuljs/load-nyc-config": "^1.0.0", - "@istanbuljs/schema": "^0.1.2", - "istanbul-lib-instrument": "^5.0.4", - "test-exclude": "^6.0.0" - } - }, - "babel-plugin-jest-hoist": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-29.5.0.tgz", - "integrity": "sha512-zSuuuAlTMT4mzLj2nPnUm6fsE6270vdOfnpbJ+RmruU75UhLFvL0N2NgI7xpeS7NaB6hGqmd5pVpGTDYvi4Q3w==", - "dev": true, - "requires": { - "@babel/template": "^7.3.3", - "@babel/types": "^7.3.3", - "@types/babel__core": "^7.1.14", - "@types/babel__traverse": "^7.0.6" - } - }, - "babel-plugin-polyfill-corejs2": { - "version": "0.4.6", - "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs2/-/babel-plugin-polyfill-corejs2-0.4.6.tgz", - "integrity": "sha512-jhHiWVZIlnPbEUKSSNb9YoWcQGdlTLq7z1GHL4AjFxaoOUMuuEVJ+Y4pAaQUGOGk93YsVCKPbqbfw3m0SM6H8Q==", - "dev": true, - "requires": { - "@babel/compat-data": "^7.22.6", - "@babel/helper-define-polyfill-provider": "^0.4.3", - "semver": "^6.3.1" - } - }, - "babel-plugin-polyfill-corejs3": { - "version": "0.8.6", - "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.8.6.tgz", - "integrity": "sha512-leDIc4l4tUgU7str5BWLS2h8q2N4Nf6lGZP6UrNDxdtfF2g69eJ5L0H7S8A5Ln/arfFAfHor5InAdZuIOwZdgQ==", - "dev": true, - "requires": { - "@babel/helper-define-polyfill-provider": "^0.4.3", - "core-js-compat": "^3.33.1" - } - }, - "babel-plugin-polyfill-regenerator": { - "version": "0.5.3", - "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-regenerator/-/babel-plugin-polyfill-regenerator-0.5.3.tgz", - "integrity": "sha512-8sHeDOmXC8csczMrYEOf0UTNa4yE2SxV5JGeT/LP1n0OYVDUUFPxG9vdk2AlDlIit4t+Kf0xCtpgXPBwnn/9pw==", - "dev": true, - "requires": { - "@babel/helper-define-polyfill-provider": "^0.4.3" - } - }, - "babel-preset-current-node-syntax": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/babel-preset-current-node-syntax/-/babel-preset-current-node-syntax-1.0.1.tgz", - "integrity": "sha512-M7LQ0bxarkxQoN+vz5aJPsLBn77n8QgTFmo8WK0/44auK2xlCXrYcUxHFxgU7qW5Yzw/CjmLRK2uJzaCd7LvqQ==", - "dev": true, - "requires": { - "@babel/plugin-syntax-async-generators": "^7.8.4", - "@babel/plugin-syntax-bigint": "^7.8.3", - "@babel/plugin-syntax-class-properties": "^7.8.3", - "@babel/plugin-syntax-import-meta": "^7.8.3", - "@babel/plugin-syntax-json-strings": "^7.8.3", - "@babel/plugin-syntax-logical-assignment-operators": "^7.8.3", - "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3", - "@babel/plugin-syntax-numeric-separator": "^7.8.3", - "@babel/plugin-syntax-object-rest-spread": "^7.8.3", - "@babel/plugin-syntax-optional-catch-binding": "^7.8.3", - "@babel/plugin-syntax-optional-chaining": "^7.8.3", - "@babel/plugin-syntax-top-level-await": "^7.8.3" - } - }, - "babel-preset-jest": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/babel-preset-jest/-/babel-preset-jest-29.5.0.tgz", - "integrity": "sha512-JOMloxOqdiBSxMAzjRaH023/vvcaSaec49zvg+2LmNsktC7ei39LTJGw02J+9uUtTZUq6xbLyJ4dxe9sSmIuAg==", - "dev": true, - "requires": { - "babel-plugin-jest-hoist": "^29.5.0", - "babel-preset-current-node-syntax": "^1.0.0" - } - }, - "balanced-match": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", - "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", - "dev": true - }, - "bluebird": { - "version": "3.7.2", - "resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.7.2.tgz", - "integrity": "sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg==", - "dev": true - }, - "brace-expansion": { - "version": "1.1.12", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.12.tgz", - "integrity": "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==", - "dev": true, - "requires": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "braces": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", - "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", - "dev": true, - "requires": { - "fill-range": "^7.1.1" - } - }, - "browserslist": { - "version": "4.22.1", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.22.1.tgz", - "integrity": "sha512-FEVc202+2iuClEhZhrWy6ZiAcRLvNMyYcxZ8raemul1DYVOVdFsbqckWLdsixQZCpJlwe77Z3UTalE7jsjnKfQ==", - "dev": true, - "requires": { - "caniuse-lite": "^1.0.30001541", - "electron-to-chromium": "^1.4.535", - "node-releases": "^2.0.13", - "update-browserslist-db": "^1.0.13" - } - }, - "bs-logger": { - "version": "0.2.6", - "resolved": "https://registry.npmjs.org/bs-logger/-/bs-logger-0.2.6.tgz", - "integrity": "sha512-pd8DCoxmbgc7hyPKOvxtqNcjYoOsABPQdcCUjGp3d42VR2CX1ORhk2A87oqqu5R1kk+76nsxZupkmyd+MVtCog==", - "dev": true, - "requires": { - "fast-json-stable-stringify": "2.x" - } - }, - "bser": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/bser/-/bser-2.1.1.tgz", - "integrity": "sha512-gQxTNE/GAfIIrmHLUE3oJyp5FO6HRBfhjnw4/wMmA63ZGDJnWBmgY/lyQBpnDUkGmAhbSe39tx2d/iTOAfglwQ==", - "dev": true, - "requires": { - "node-int64": "^0.4.0" - } - }, - "buffer-from": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", - "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", - "dev": true - }, - "builtin-modules": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/builtin-modules/-/builtin-modules-3.3.0.tgz", - "integrity": "sha512-zhaCDicdLuWN5UbN5IMnFqNMhNfo919sH85y2/ea+5Yg9TsTkeZxpL+JLbp6cgYFS4sRLp3YV4S6yDuqVWHYOw==", - "dev": true - }, - "call-bind-apply-helpers": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz", - "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==", - "requires": { - "es-errors": "^1.3.0", - "function-bind": "^1.1.2" - } - }, - "callsites": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", - "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", - "dev": true - }, - "camelcase": { - "version": "5.3.1", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", - "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", - "dev": true - }, - "caniuse-lite": { - "version": "1.0.30001565", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001565.tgz", - "integrity": "sha512-xrE//a3O7TP0vaJ8ikzkD2c2NgcVUvsEe2IvFTntV4Yd1Z9FVzh+gW+enX96L0psrbaFMcVcH2l90xNuGDWc8w==", - "dev": true - }, - "catharsis": { - "version": "0.9.0", - "resolved": "https://registry.npmjs.org/catharsis/-/catharsis-0.9.0.tgz", - "integrity": "sha512-prMTQVpcns/tzFgFVkVp6ak6RykZyWb3gu8ckUpd6YkTlacOd3DXGJjIpD4Q6zJirizvaiAjSSHlOsA+6sNh2A==", - "dev": true, - "requires": { - "lodash": "^4.17.15" - } - }, - "chalk": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", - "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", - "dev": true, - "requires": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - } - }, - "char-regex": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/char-regex/-/char-regex-1.0.2.tgz", - "integrity": "sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw==", - "dev": true - }, - "ci-info": { - "version": "3.8.0", - "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-3.8.0.tgz", - "integrity": "sha512-eXTggHWSooYhq49F2opQhuHWgzucfF2YgODK4e1566GQs5BIfP30B0oenwBJHfWxAs2fyPB1s7Mg949zLf61Yw==", - "dev": true - }, - "cjs-module-lexer": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/cjs-module-lexer/-/cjs-module-lexer-1.2.3.tgz", - "integrity": "sha512-0TNiGstbQmCFwt4akjjBg5pLRTSyj/PkWQ1ZoO2zntmg9yLqSRxwEa4iCfQLGjqhiqBfOJa7W/E8wfGrTDmlZQ==", - "dev": true - }, - "cliui": { - "version": "8.0.1", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", - "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", - "dev": true, - "requires": { - "string-width": "^4.2.0", - "strip-ansi": "^6.0.1", - "wrap-ansi": "^7.0.0" - } - }, - "co": { - "version": "4.6.0", - "resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz", - "integrity": "sha512-QVb0dM5HvG+uaxitm8wONl7jltx8dqhfU33DcqtOZcLSVIKSDDLDi7+0LbAKiyI8hD9u42m2YxXSkMGWThaecQ==", - "dev": true - }, - "collect-v8-coverage": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/collect-v8-coverage/-/collect-v8-coverage-1.0.2.tgz", - "integrity": "sha512-lHl4d5/ONEbLlJvaJNtsF/Lz+WvB07u2ycqTYbdrq7UypDXailES4valYb2eWiJFxZlVmpGekfqoxQhzyFdT4Q==", - "dev": true - }, - "color-convert": { - "version": "1.9.3", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", - "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", - "dev": true, - "requires": { - "color-name": "1.1.3" - } - }, - "color-name": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", - "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", - "dev": true - }, - "combined-stream": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", - "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", - "requires": { - "delayed-stream": "~1.0.0" - } - }, - "commondir": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/commondir/-/commondir-1.0.1.tgz", - "integrity": "sha512-W9pAhw0ja1Edb5GVdIF1mjZw/ASI0AlShXM83UUGe2DVr5TdAPEA1OA8m/g8zWp9x6On7gqufY+FatDbC3MDQg==", - "dev": true - }, - "concat-map": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", - "dev": true - }, - "convert-source-map": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", - "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==", - "dev": true - }, - "core-js-compat": { - "version": "3.33.3", - "resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.33.3.tgz", - "integrity": "sha512-cNzGqFsh3Ot+529GIXacjTJ7kegdt5fPXxCBVS1G0iaZpuo/tBz399ymceLJveQhFFZ8qThHiP3fzuoQjKN2ow==", - "dev": true, - "requires": { - "browserslist": "^4.22.1" - } - }, - "cross-spawn": { - "version": "7.0.6", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", - "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", - "dev": true, - "requires": { - "path-key": "^3.1.0", - "shebang-command": "^2.0.0", - "which": "^2.0.1" - } - }, - "cssom": { - "version": "0.5.0", - "resolved": "https://registry.npmjs.org/cssom/-/cssom-0.5.0.tgz", - "integrity": "sha512-iKuQcq+NdHqlAcwUY0o/HL69XQrUaQdMjmStJ8JFmUaiiQErlhrmuigkg/CU4E2J0IyUKUrMAgl36TvN67MqTw==", - "dev": true - }, - "cssstyle": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/cssstyle/-/cssstyle-2.3.0.tgz", - "integrity": "sha512-AZL67abkUzIuvcHqk7c09cezpGNcxUxU4Ioi/05xHk4DQeTkWmGYftIE6ctU6AEt+Gn4n1lDStOtj7FKycP71A==", - "dev": true, - "requires": { - "cssom": "~0.3.6" - }, - "dependencies": { - "cssom": { - "version": "0.3.8", - "resolved": "https://registry.npmjs.org/cssom/-/cssom-0.3.8.tgz", - "integrity": "sha512-b0tGHbfegbhPJpxpiBPU2sCkigAqtM9O121le6bbOlgyV+NyGyCmVfJ6QW9eRjz8CpNfWEOYBIMIGRYkLwsIYg==", - "dev": true - } - } - }, - "data-urls": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/data-urls/-/data-urls-3.0.2.tgz", - "integrity": "sha512-Jy/tj3ldjZJo63sVAvg6LHt2mHvl4V6AgRAmNDtLdm7faqtsx+aJG42rsyCo9JCoRVKwPFzKlIPx3DIibwSIaQ==", - "dev": true, - "requires": { - "abab": "^2.0.6", - "whatwg-mimetype": "^3.0.0", - "whatwg-url": "^11.0.0" - } - }, - "debug": { - "version": "4.3.4", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", - "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", - "dev": true, - "requires": { - "ms": "2.1.2" - } - }, - "decimal.js": { - "version": "10.4.3", - "resolved": "https://registry.npmjs.org/decimal.js/-/decimal.js-10.4.3.tgz", - "integrity": "sha512-VBBaLc1MgL5XpzgIP7ny5Z6Nx3UrRkIViUkPUdtl9aya5amy3De1gsUUSB1g3+3sExYNjCAsAznmukyxCb1GRA==", - "dev": true - }, - "dedent": { - "version": "0.7.0", - "resolved": "https://registry.npmjs.org/dedent/-/dedent-0.7.0.tgz", - "integrity": "sha512-Q6fKUPqnAHAyhiUgFU7BUzLiv0kd8saH9al7tnu5Q/okj6dnupxyTgFIBjVzJATdfIAm9NAsvXNzjaKa+bxVyA==", - "dev": true - }, - "deep-is": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", - "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", - "dev": true - }, - "deepmerge": { - "version": "4.2.2", - "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.2.2.tgz", - "integrity": "sha512-FJ3UgI4gIl+PHZm53knsuSFpE+nESMr7M4v9QcgB7S63Kj/6WqMiFQJpBBYz1Pt+66bZpP3Q7Lye0Oo9MPKEdg==", - "dev": true - }, - "delayed-stream": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", - "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk=" - }, - "detect-newline": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/detect-newline/-/detect-newline-3.1.0.tgz", - "integrity": "sha512-TLz+x/vEXm/Y7P7wn1EJFNLxYpUD4TgMosxY6fAVJUnJMbupHBOncxyWUG9OpTaH9EBD7uFI5LfEgmMOc54DsA==", - "dev": true - }, - "diff": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/diff/-/diff-4.0.2.tgz", - "integrity": "sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==", - "dev": true - }, - "diff-sequences": { - "version": "24.9.0", - "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-24.9.0.tgz", - "integrity": "sha512-Dj6Wk3tWyTE+Fo1rW8v0Xhwk80um6yFYKbuAxc9c3EZxIHFDYwbi34Uk42u1CdnIiVorvt4RmlSDjIPyzGC2ew==", - "dev": true - }, - "domexception": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/domexception/-/domexception-4.0.0.tgz", - "integrity": "sha512-A2is4PLG+eeSfoTMA95/s4pvAoSo2mKtiM5jlHkAVewmiO8ISFTFKZjH7UAM1Atli/OT/7JHOrJRJiMKUZKYBw==", - "dev": true, - "requires": { - "webidl-conversions": "^7.0.0" - } - }, - "dunder-proto": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz", - "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==", - "requires": { - "call-bind-apply-helpers": "^1.0.1", - "es-errors": "^1.3.0", - "gopd": "^1.2.0" - } - }, - "electron-to-chromium": { - "version": "1.4.600", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.600.tgz", - "integrity": "sha512-KD6CWjf1BnQG+NsXuyiTDDT1eV13sKuYsOUioXkQweYTQIbgHkXPry9K7M+7cKtYHnSUPitVaLrXYB1jTkkYrw==", - "dev": true - }, - "emittery": { - "version": "0.13.1", - "resolved": "https://registry.npmjs.org/emittery/-/emittery-0.13.1.tgz", - "integrity": "sha512-DeWwawk6r5yR9jFgnDKYt4sLS0LmHJJi3ZOnb5/JdbYwj3nW+FxQnHIjhBKz8YLC7oRNPVM9NQ47I3CVx34eqQ==", - "dev": true - }, - "emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", - "dev": true - }, - "entities": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/entities/-/entities-2.1.0.tgz", - "integrity": "sha512-hCx1oky9PFrJ611mf0ifBLBRW8lUUVRlFolb5gWRfIELabBlbp9xZvrqZLZAs+NxFnbfQoeGd8wDkygjg7U85w==", - "dev": true - }, - "error-ex": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", - "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==", - "dev": true, - "requires": { - "is-arrayish": "^0.2.1" - } - }, - "es-define-property": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz", - "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==" - }, - "es-errors": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", - "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==" - }, - "es-object-atoms": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz", - "integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==", - "requires": { - "es-errors": "^1.3.0" - } - }, - "es-set-tostringtag": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.1.0.tgz", - "integrity": "sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==", - "requires": { - "es-errors": "^1.3.0", - "get-intrinsic": "^1.2.6", - "has-tostringtag": "^1.0.2", - "hasown": "^2.0.2" - } - }, - "escalade": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", - "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==", - "dev": true - }, - "escape-string-regexp": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", - "dev": true - }, - "escodegen": { - "version": "1.14.3", - "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-1.14.3.tgz", - "integrity": "sha512-qFcX0XJkdg+PB3xjZZG/wKSuT1PnQWx57+TVSjIMmILd2yC/6ByYElPwJnslDsuWuSAp4AwJGumarAAmJch5Kw==", - "dev": true, - "requires": { - "esprima": "^4.0.1", - "estraverse": "^4.2.0", - "esutils": "^2.0.2", - "optionator": "^0.8.1", - "source-map": "~0.6.1" - }, - "dependencies": { - "estraverse": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", - "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", - "dev": true - } - } - }, - "eslint-visitor-keys": { - "version": "3.4.1", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.1.tgz", - "integrity": "sha512-pZnmmLwYzf+kWaM/Qgrvpen51upAktaaiI01nsJD/Yr3lMOdNtq0cxkrrg16w64VtisN6okbs7Q8AfGqj4c9fA==", - "dev": true - }, - "espree": { - "version": "9.6.1", - "resolved": "https://registry.npmjs.org/espree/-/espree-9.6.1.tgz", - "integrity": "sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==", - "dev": true, - "requires": { - "acorn": "^8.9.0", - "acorn-jsx": "^5.3.2", - "eslint-visitor-keys": "^3.4.1" - } - }, - "esprima": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", - "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", - "dev": true - }, - "estraverse": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", - "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", - "dev": true - }, - "estree-walker": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-1.0.1.tgz", - "integrity": "sha512-1fMXF3YP4pZZVozF8j/ZLfvnR8NSIljt56UhbZ5PeeDmmGHpgpdwQt7ITlGvYaQukCvuBRMLEiKiYC+oeIg4cg==", - "dev": true - }, - "esutils": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", - "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", - "dev": true - }, - "execa": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz", - "integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==", - "dev": true, - "requires": { - "cross-spawn": "^7.0.3", - "get-stream": "^6.0.0", - "human-signals": "^2.1.0", - "is-stream": "^2.0.0", - "merge-stream": "^2.0.0", - "npm-run-path": "^4.0.1", - "onetime": "^5.1.2", - "signal-exit": "^3.0.3", - "strip-final-newline": "^2.0.0" - } - }, - "exit": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/exit/-/exit-0.1.2.tgz", - "integrity": "sha512-Zk/eNKV2zbjpKzrsQ+n1G6poVbErQxJ0LBOJXaKZ1EViLzH+hrLu9cdXI4zw9dBQJslwBEpbQ2P1oS7nDxs6jQ==", - "dev": true - }, - "expect": { - "version": "29.6.1", - "resolved": "https://registry.npmjs.org/expect/-/expect-29.6.1.tgz", - "integrity": "sha512-XEdDLonERCU1n9uR56/Stx9OqojaLAQtZf9PrCHH9Hl8YXiEIka3H4NXJ3NOIBmQJTg7+j7buh34PMHfJujc8g==", - "dev": true, - "requires": { - "@jest/expect-utils": "^29.6.1", - "@types/node": "*", - "jest-get-type": "^29.4.3", - "jest-matcher-utils": "^29.6.1", - "jest-message-util": "^29.6.1", - "jest-util": "^29.6.1" - }, - "dependencies": { - "jest-get-type": { - "version": "29.4.3", - "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.4.3.tgz", - "integrity": "sha512-J5Xez4nRRMjk8emnTpWrlkyb9pfRQQanDrvWHhsR1+VUfbwxi30eVcZFlcdGInRibU4G5LwHXpI7IRHU0CY+gg==", - "dev": true - } - } - }, - "fast-json-stable-stringify": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", - "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", - "dev": true - }, - "fast-levenshtein": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", - "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", - "dev": true - }, - "faye-websocket": { - "version": "0.11.4", - "resolved": "https://registry.npmjs.org/faye-websocket/-/faye-websocket-0.11.4.tgz", - "integrity": "sha512-CzbClwlXAuiRQAlUyfqPgvPoNKTckTPGfwZV4ZdAhVcP2lh9KUxJg2b5GkE7XbjKQ3YJnQ9z6D9ntLAlB+tP8g==", - "requires": { - "websocket-driver": ">=0.5.1" - } - }, - "fb-watchman": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/fb-watchman/-/fb-watchman-2.0.2.tgz", - "integrity": "sha512-p5161BqbuCaSnB8jIbzQHOlpgsPmK5rJVDfDKO91Axs5NC1uu3HRQm6wt9cd9/+GtQQIO53JdGXXoyDpTAsgYA==", - "dev": true, - "requires": { - "bser": "2.1.1" - } - }, - "fill-range": { - "version": "7.1.1", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", - "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", - "dev": true, - "requires": { - "to-regex-range": "^5.0.1" - } - }, - "find-cache-dir": { - "version": "3.3.2", - "resolved": "https://registry.npmjs.org/find-cache-dir/-/find-cache-dir-3.3.2.tgz", - "integrity": "sha512-wXZV5emFEjrridIgED11OoUKLxiYjAcqot/NJdAkOhlJ+vGzwhOAfcG5OX1jP+S0PcjEn8bdMJv+g2jwQ3Onig==", - "dev": true, - "requires": { - "commondir": "^1.0.1", - "make-dir": "^3.0.2", - "pkg-dir": "^4.1.0" - } - }, - "find-up": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", - "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", - "dev": true, - "requires": { - "locate-path": "^5.0.0", - "path-exists": "^4.0.0" - } - }, - "form-data": { - "version": "4.0.4", - "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.4.tgz", - "integrity": "sha512-KrGhL9Q4zjj0kiUt5OO4Mr/A/jlI2jDYs5eHBpYHPcBEVSiipAvn2Ko2HnPe20rmcuuvMHNdZFp+4IlGTMF0Ow==", - "requires": { - "asynckit": "^0.4.0", - "combined-stream": "^1.0.8", - "es-set-tostringtag": "^2.1.0", - "hasown": "^2.0.2", - "mime-types": "^2.1.12" - } - }, - "fs-extra": { - "version": "10.1.0", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.1.0.tgz", - "integrity": "sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==", - "dev": true, - "requires": { - "graceful-fs": "^4.2.0", - "jsonfile": "^6.0.1", - "universalify": "^2.0.0" - } - }, - "fs.realpath": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", - "dev": true - }, - "fsevents": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", - "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", - "dev": true, - "optional": true - }, - "function-bind": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", - "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==" - }, - "gensync": { - "version": "1.0.0-beta.2", - "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", - "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", - "dev": true - }, - "get-caller-file": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", - "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", - "dev": true - }, - "get-intrinsic": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz", - "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==", - "requires": { - "call-bind-apply-helpers": "^1.0.2", - "es-define-property": "^1.0.1", - "es-errors": "^1.3.0", - "es-object-atoms": "^1.1.1", - "function-bind": "^1.1.2", - "get-proto": "^1.0.1", - "gopd": "^1.2.0", - "has-symbols": "^1.1.0", - "hasown": "^2.0.2", - "math-intrinsics": "^1.1.0" - } - }, - "get-package-type": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/get-package-type/-/get-package-type-0.1.0.tgz", - "integrity": "sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q==", - "dev": true - }, - "get-proto": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz", - "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==", - "requires": { - "dunder-proto": "^1.0.1", - "es-object-atoms": "^1.0.0" - } - }, - "get-stream": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz", - "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==", - "dev": true - }, - "glob": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.0.tgz", - "integrity": "sha512-lmLf6gtyrPq8tTjSmrO94wBeQbFR3HbLHbuyD69wuyQkImp2hWqMGB47OX65FBkPffO641IP9jWa1z4ivqG26Q==", - "dev": true, - "requires": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.0.4", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - } - }, - "globals": { - "version": "11.12.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", - "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", - "dev": true - }, - "gopd": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz", - "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==" - }, - "graceful-fs": { - "version": "4.2.10", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.10.tgz", - "integrity": "sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA==", - "dev": true - }, - "has": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", - "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", - "dev": true, - "requires": { - "function-bind": "^1.1.1" - } - }, - "has-flag": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", - "dev": true - }, - "has-symbols": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz", - "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==" - }, - "has-tostringtag": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz", - "integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==", - "requires": { - "has-symbols": "^1.0.3" - } - }, - "hasown": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", - "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", - "requires": { - "function-bind": "^1.1.2" - } - }, - "html-encoding-sniffer": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/html-encoding-sniffer/-/html-encoding-sniffer-3.0.0.tgz", - "integrity": "sha512-oWv4T4yJ52iKrufjnyZPkrN0CH3QnrUqdB6In1g5Fe1mia8GmF36gnfNySxoZtxD5+NmYw1EElVXiBk93UeskA==", - "dev": true, - "requires": { - "whatwg-encoding": "^2.0.0" - } - }, - "html-escaper": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/html-escaper/-/html-escaper-2.0.2.tgz", - "integrity": "sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==", - "dev": true - }, - "http-parser-js": { - "version": "0.5.6", - "resolved": "https://registry.npmjs.org/http-parser-js/-/http-parser-js-0.5.6.tgz", - "integrity": "sha512-vDlkRPDJn93swjcjqMSaGSPABbIarsr1TLAui/gLDXzV5VsJNdXNzMYDyNBLQkjWQCJ1uizu8T2oDMhmGt0PRA==" - }, - "http-proxy-agent": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-5.0.0.tgz", - "integrity": "sha512-n2hY8YdoRE1i7r6M0w9DIw5GgZN0G25P8zLCRQ8rjXtTU3vsNFBI/vWK/UIeE6g5MUUz6avwAPXmL6Fy9D/90w==", - "dev": true, - "requires": { - "@tootallnate/once": "2", - "agent-base": "6", - "debug": "4" - } - }, - "https-proxy-agent": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz", - "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==", - "dev": true, - "requires": { - "agent-base": "6", - "debug": "4" - } - }, - "human-signals": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz", - "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==", - "dev": true - }, - "iconv-lite": { - "version": "0.6.3", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz", - "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==", - "dev": true, - "requires": { - "safer-buffer": ">= 2.1.2 < 3.0.0" - } - }, - "import-local": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/import-local/-/import-local-3.1.0.tgz", - "integrity": "sha512-ASB07uLtnDs1o6EHjKpX34BKYDSqnFerfTOJL2HvMqF70LnxpjkzDB8J44oT9pu4AMPkQwf8jl6szgvNd2tRIg==", - "dev": true, - "requires": { - "pkg-dir": "^4.2.0", - "resolve-cwd": "^3.0.0" - } - }, - "imurmurhash": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", - "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", - "dev": true - }, - "inflight": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", - "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", - "dev": true, - "requires": { - "once": "^1.3.0", - "wrappy": "1" - } - }, - "inherits": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", - "dev": true - }, - "is-arrayish": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", - "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==", - "dev": true - }, - "is-builtin-module": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/is-builtin-module/-/is-builtin-module-3.1.0.tgz", - "integrity": "sha512-OV7JjAgOTfAFJmHZLvpSTb4qi0nIILDV1gWPYDnDJUTNFM5aGlRAhk4QcT8i7TuAleeEV5Fdkqn3t4mS+Q11fg==", - "dev": true, - "requires": { - "builtin-modules": "^3.0.0" - } - }, - "is-core-module": { - "version": "2.12.1", - "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.12.1.tgz", - "integrity": "sha512-Q4ZuBAe2FUsKtyQJoQHlvP8OvBERxO3jEmy1I7hcRXcJBGGHFh/aJBswbXuS9sgrDH2QUO8ilkwNPHvHMd8clg==", - "dev": true, - "requires": { - "has": "^1.0.3" - } - }, - "is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", - "dev": true - }, - "is-generator-fn": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-generator-fn/-/is-generator-fn-2.1.0.tgz", - "integrity": "sha512-cTIB4yPYL/Grw0EaSzASzg6bBy9gqCofvWN8okThAYIxKJZC+udlRAmGbM0XLeniEJSs8uEgHPGuHSe1XsOLSQ==", - "dev": true - }, - "is-module": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-module/-/is-module-1.0.0.tgz", - "integrity": "sha512-51ypPSPCoTEIN9dy5Oy+h4pShgJmPCygKfyRCISBI+JoWT/2oJvK8QPxmwv7b/p239jXrm9M1mlQbyKJ5A152g==", - "dev": true - }, - "is-number": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", - "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", - "dev": true - }, - "is-potential-custom-element-name": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-potential-custom-element-name/-/is-potential-custom-element-name-1.0.1.tgz", - "integrity": "sha512-bCYeRA2rVibKZd+s2625gGnGF/t7DSqDs4dP7CrLA1m7jKWz6pps0LpYLJN8Q64HtmPKJ1hrN3nzPNKFEKOUiQ==", - "dev": true - }, - "is-reference": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/is-reference/-/is-reference-1.2.1.tgz", - "integrity": "sha512-U82MsXXiFIrjCK4otLT+o2NA2Cd2g5MLoOVXUZjIOhLurrRxpEXzI8O0KZHr3IjLvlAH1kTPYSuqer5T9ZVBKQ==", - "dev": true, - "requires": { - "@types/estree": "*" - } - }, - "is-stream": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", - "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==", - "dev": true - }, - "isexe": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", - "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", - "dev": true - }, - "istanbul-lib-coverage": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.0.tgz", - "integrity": "sha512-eOeJ5BHCmHYvQK7xt9GkdHuzuCGS1Y6g9Gvnx3Ym33fz/HpLRYxiS0wHNr+m/MBC8B647Xt608vCDEvhl9c6Mw==", - "dev": true - }, - "istanbul-lib-instrument": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-5.2.1.tgz", - "integrity": "sha512-pzqtp31nLv/XFOzXGuvhCb8qhjmTVo5vjVk19XE4CRlSWz0KoeJ3bw9XsA7nOp9YBf4qHjwBxkDzKcME/J29Yg==", - "dev": true, - "requires": { - "@babel/core": "^7.12.3", - "@babel/parser": "^7.14.7", - "@istanbuljs/schema": "^0.1.2", - "istanbul-lib-coverage": "^3.2.0", - "semver": "^6.3.0" - } - }, - "istanbul-lib-report": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz", - "integrity": "sha512-wcdi+uAKzfiGT2abPpKZ0hSU1rGQjUQnLvtY5MpQ7QCTahD3VODhcu4wcfY1YtkGaDD5yuydOLINXsfbus9ROw==", - "dev": true, - "requires": { - "istanbul-lib-coverage": "^3.0.0", - "make-dir": "^3.0.0", - "supports-color": "^7.1.0" - }, - "dependencies": { - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true + "escalade": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", + "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==", + "dev": true }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } - } - } - }, - "istanbul-lib-source-maps": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/istanbul-lib-source-maps/-/istanbul-lib-source-maps-4.0.1.tgz", - "integrity": "sha512-n3s8EwkdFIJCG3BPKBYvskgXGoy88ARzvegkitk60NxRdwltLOTaH7CUiMRXvwYorl0Q712iEjcWB+fK/MrWVw==", - "dev": true, - "requires": { - "debug": "^4.1.1", - "istanbul-lib-coverage": "^3.0.0", - "source-map": "^0.6.1" - } - }, - "istanbul-reports": { - "version": "3.1.5", - "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.1.5.tgz", - "integrity": "sha512-nUsEMa9pBt/NOHqbcbeJEgqIlY/K7rVWUX6Lql2orY5e9roQOthbR3vtY4zzf2orPELg80fnxxk9zUyPlgwD1w==", - "dev": true, - "requires": { - "html-escaper": "^2.0.0", - "istanbul-lib-report": "^3.0.0" - } - }, - "jest": { - "version": "29.6.1", - "resolved": "https://registry.npmjs.org/jest/-/jest-29.6.1.tgz", - "integrity": "sha512-Nirw5B4nn69rVUZtemCQhwxOBhm0nsp3hmtF4rzCeWD7BkjAXRIji7xWQfnTNbz9g0aVsBX6aZK3n+23LM6uDw==", - "dev": true, - "requires": { - "@jest/core": "^29.6.1", - "@jest/types": "^29.6.1", - "import-local": "^3.0.2", - "jest-cli": "^29.6.1" - } - }, - "jest-changed-files": { - "version": "29.5.0", - "resolved": "https://registry.npmjs.org/jest-changed-files/-/jest-changed-files-29.5.0.tgz", - "integrity": "sha512-IFG34IUMUaNBIxjQXF/iu7g6EcdMrGRRxaUSw92I/2g2YC6vCdTltl4nHvt7Ci5nSJwXIkCu8Ka1DKF+X7Z1Ag==", - "dev": true, - "requires": { - "execa": "^5.0.0", - "p-limit": "^3.1.0" - } - }, - "jest-circus": { - "version": "29.6.1", - "resolved": "https://registry.npmjs.org/jest-circus/-/jest-circus-29.6.1.tgz", - "integrity": "sha512-tPbYLEiBU4MYAL2XoZme/bgfUeotpDBd81lgHLCbDZZFaGmECk0b+/xejPFtmiBP87GgP/y4jplcRpbH+fgCzQ==", - "dev": true, - "requires": { - "@jest/environment": "^29.6.1", - "@jest/expect": "^29.6.1", - "@jest/test-result": "^29.6.1", - "@jest/types": "^29.6.1", - "@types/node": "*", - "chalk": "^4.0.0", - "co": "^4.6.0", - "dedent": "^0.7.0", - "is-generator-fn": "^2.0.0", - "jest-each": "^29.6.1", - "jest-matcher-utils": "^29.6.1", - "jest-message-util": "^29.6.1", - "jest-runtime": "^29.6.1", - "jest-snapshot": "^29.6.1", - "jest-util": "^29.6.1", - "p-limit": "^3.1.0", - "pretty-format": "^29.6.1", - "pure-rand": "^6.0.0", - "slash": "^3.0.0", - "stack-utils": "^2.0.3" - }, - "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "requires": { - "color-convert": "^2.0.1" - } + "escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", + "dev": true }, - "chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } + "escodegen": { + "version": "1.14.3", + "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-1.14.3.tgz", + "integrity": "sha512-qFcX0XJkdg+PB3xjZZG/wKSuT1PnQWx57+TVSjIMmILd2yC/6ByYElPwJnslDsuWuSAp4AwJGumarAAmJch5Kw==", + "dev": true, + "requires": { + "esprima": "^4.0.1", + "estraverse": "^4.2.0", + "esutils": "^2.0.2", + "optionator": "^0.8.1", + "source-map": "~0.6.1" + }, + "dependencies": { + "estraverse": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-4.3.0.tgz", + "integrity": "sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw==", + "dev": true + } + } }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "requires": { - "color-name": "~1.1.4" - } + "eslint-visitor-keys": { + "version": "3.4.1", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.1.tgz", + "integrity": "sha512-pZnmmLwYzf+kWaM/Qgrvpen51upAktaaiI01nsJD/Yr3lMOdNtq0cxkrrg16w64VtisN6okbs7Q8AfGqj4c9fA==", + "dev": true + }, + "espree": { + "version": "9.6.1", + "resolved": "https://registry.npmjs.org/espree/-/espree-9.6.1.tgz", + "integrity": "sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==", + "dev": true, + "requires": { + "acorn": "^8.9.0", + "acorn-jsx": "^5.3.2", + "eslint-visitor-keys": "^3.4.1" + } }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true + "esprima": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", + "dev": true }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true + "estraverse": { + "version": "5.3.0", + "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", + "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", + "dev": true }, - "pretty-format": { - "version": "29.6.1", - "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.6.1.tgz", - "integrity": "sha512-7jRj+yXO0W7e4/tSJKoR7HRIHLPPjtNaUGG2xxKQnGvPNRkgWcQ0AZX6P4KBRJN4FcTBWb3sa7DVUJmocYuoog==", - "dev": true, - "requires": { - "@jest/schemas": "^29.6.0", - "ansi-styles": "^5.0.0", - "react-is": "^18.0.0" - }, - "dependencies": { - "ansi-styles": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", - "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", - "dev": true - } - } + "estree-walker": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-1.0.1.tgz", + "integrity": "sha512-1fMXF3YP4pZZVozF8j/ZLfvnR8NSIljt56UhbZ5PeeDmmGHpgpdwQt7ITlGvYaQukCvuBRMLEiKiYC+oeIg4cg==", + "dev": true + }, + "esutils": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", + "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", + "dev": true + }, + "execa": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz", + "integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==", + "dev": true, + "requires": { + "cross-spawn": "^7.0.3", + "get-stream": "^6.0.0", + "human-signals": "^2.1.0", + "is-stream": "^2.0.0", + "merge-stream": "^2.0.0", + "npm-run-path": "^4.0.1", + "onetime": "^5.1.2", + "signal-exit": "^3.0.3", + "strip-final-newline": "^2.0.0" + } }, - "react-is": { - "version": "18.2.0", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", - "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", - "dev": true + "exit": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/exit/-/exit-0.1.2.tgz", + "integrity": "sha512-Zk/eNKV2zbjpKzrsQ+n1G6poVbErQxJ0LBOJXaKZ1EViLzH+hrLu9cdXI4zw9dBQJslwBEpbQ2P1oS7nDxs6jQ==", + "dev": true + }, + "expect": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/expect/-/expect-29.6.1.tgz", + "integrity": "sha512-XEdDLonERCU1n9uR56/Stx9OqojaLAQtZf9PrCHH9Hl8YXiEIka3H4NXJ3NOIBmQJTg7+j7buh34PMHfJujc8g==", + "dev": true, + "requires": { + "@jest/expect-utils": "^29.6.1", + "@types/node": "*", + "jest-get-type": "^29.4.3", + "jest-matcher-utils": "^29.6.1", + "jest-message-util": "^29.6.1", + "jest-util": "^29.6.1" + }, + "dependencies": { + "jest-get-type": { + "version": "29.4.3", + "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.4.3.tgz", + "integrity": "sha512-J5Xez4nRRMjk8emnTpWrlkyb9pfRQQanDrvWHhsR1+VUfbwxi30eVcZFlcdGInRibU4G5LwHXpI7IRHU0CY+gg==", + "dev": true + } + } }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } - } - } - }, - "jest-cli": { - "version": "29.6.1", - "resolved": "https://registry.npmjs.org/jest-cli/-/jest-cli-29.6.1.tgz", - "integrity": "sha512-607dSgTA4ODIN6go9w6xY3EYkyPFGicx51a69H7yfvt7lN53xNswEVLovq+E77VsTRi5fWprLH0yl4DJgE8Ing==", - "dev": true, - "requires": { - "@jest/core": "^29.6.1", - "@jest/test-result": "^29.6.1", - "@jest/types": "^29.6.1", - "chalk": "^4.0.0", - "exit": "^0.1.2", - "graceful-fs": "^4.2.9", - "import-local": "^3.0.2", - "jest-config": "^29.6.1", - "jest-util": "^29.6.1", - "jest-validate": "^29.6.1", - "prompts": "^2.0.1", - "yargs": "^17.3.1" - }, - "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "requires": { - "color-convert": "^2.0.1" - } + "fast-json-stable-stringify": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", + "dev": true + }, + "fast-levenshtein": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", + "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", + "dev": true + }, + "faye-websocket": { + "version": "0.11.4", + "resolved": "https://registry.npmjs.org/faye-websocket/-/faye-websocket-0.11.4.tgz", + "integrity": "sha512-CzbClwlXAuiRQAlUyfqPgvPoNKTckTPGfwZV4ZdAhVcP2lh9KUxJg2b5GkE7XbjKQ3YJnQ9z6D9ntLAlB+tP8g==", + "requires": { + "websocket-driver": ">=0.5.1" + } }, - "chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } + "fb-watchman": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/fb-watchman/-/fb-watchman-2.0.2.tgz", + "integrity": "sha512-p5161BqbuCaSnB8jIbzQHOlpgsPmK5rJVDfDKO91Axs5NC1uu3HRQm6wt9cd9/+GtQQIO53JdGXXoyDpTAsgYA==", + "dev": true, + "requires": { + "bser": "2.1.1" + } }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "requires": { - "color-name": "~1.1.4" - } + "fill-range": { + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", + "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", + "dev": true, + "requires": { + "to-regex-range": "^5.0.1" + } }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true + "find-cache-dir": { + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/find-cache-dir/-/find-cache-dir-3.3.2.tgz", + "integrity": "sha512-wXZV5emFEjrridIgED11OoUKLxiYjAcqot/NJdAkOhlJ+vGzwhOAfcG5OX1jP+S0PcjEn8bdMJv+g2jwQ3Onig==", + "dev": true, + "requires": { + "commondir": "^1.0.1", + "make-dir": "^3.0.2", + "pkg-dir": "^4.1.0" + } }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true - }, - "jest-config": { - "version": "29.6.1", - "resolved": "https://registry.npmjs.org/jest-config/-/jest-config-29.6.1.tgz", - "integrity": "sha512-XdjYV2fy2xYixUiV2Wc54t3Z4oxYPAELUzWnV6+mcbq0rh742X2p52pii5A3oeRzYjLnQxCsZmp0qpI6klE2cQ==", - "dev": true, - "requires": { - "@babel/core": "^7.11.6", - "@jest/test-sequencer": "^29.6.1", - "@jest/types": "^29.6.1", - "babel-jest": "^29.6.1", - "chalk": "^4.0.0", - "ci-info": "^3.2.0", - "deepmerge": "^4.2.2", - "glob": "^7.1.3", - "graceful-fs": "^4.2.9", - "jest-circus": "^29.6.1", - "jest-environment-node": "^29.6.1", - "jest-get-type": "^29.4.3", - "jest-regex-util": "^29.4.3", - "jest-resolve": "^29.6.1", - "jest-runner": "^29.6.1", - "jest-util": "^29.6.1", - "jest-validate": "^29.6.1", - "micromatch": "^4.0.4", - "parse-json": "^5.2.0", - "pretty-format": "^29.6.1", - "slash": "^3.0.0", - "strip-json-comments": "^3.1.1" - } + "find-up": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "dev": true, + "requires": { + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" + } }, - "jest-get-type": { - "version": "29.4.3", - "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.4.3.tgz", - "integrity": "sha512-J5Xez4nRRMjk8emnTpWrlkyb9pfRQQanDrvWHhsR1+VUfbwxi30eVcZFlcdGInRibU4G5LwHXpI7IRHU0CY+gg==", - "dev": true + "form-data": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.4.tgz", + "integrity": "sha512-KrGhL9Q4zjj0kiUt5OO4Mr/A/jlI2jDYs5eHBpYHPcBEVSiipAvn2Ko2HnPe20rmcuuvMHNdZFp+4IlGTMF0Ow==", + "requires": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "es-set-tostringtag": "^2.1.0", + "hasown": "^2.0.2", + "mime-types": "^2.1.12" + } }, - "pretty-format": { - "version": "29.6.1", - "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.6.1.tgz", - "integrity": "sha512-7jRj+yXO0W7e4/tSJKoR7HRIHLPPjtNaUGG2xxKQnGvPNRkgWcQ0AZX6P4KBRJN4FcTBWb3sa7DVUJmocYuoog==", - "dev": true, - "requires": { - "@jest/schemas": "^29.6.0", - "ansi-styles": "^5.0.0", - "react-is": "^18.0.0" - }, - "dependencies": { - "ansi-styles": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", - "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", - "dev": true - } - } + "fs-extra": { + "version": "10.1.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.1.0.tgz", + "integrity": "sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==", + "dev": true, + "requires": { + "graceful-fs": "^4.2.0", + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" + } }, - "react-is": { - "version": "18.2.0", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", - "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", - "dev": true + "fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", + "dev": true + }, + "fsevents": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", + "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", + "dev": true, + "optional": true + }, + "function-bind": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", + "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==" + }, + "gensync": { + "version": "1.0.0-beta.2", + "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", + "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", + "dev": true + }, + "get-caller-file": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", + "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", + "dev": true + }, + "get-intrinsic": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz", + "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==", + "requires": { + "call-bind-apply-helpers": "^1.0.2", + "es-define-property": "^1.0.1", + "es-errors": "^1.3.0", + "es-object-atoms": "^1.1.1", + "function-bind": "^1.1.2", + "get-proto": "^1.0.1", + "gopd": "^1.2.0", + "has-symbols": "^1.1.0", + "hasown": "^2.0.2", + "math-intrinsics": "^1.1.0" + } }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } - } - } - }, - "jest-diff": { - "version": "24.9.0", - "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-24.9.0.tgz", - "integrity": "sha512-qMfrTs8AdJE2iqrTp0hzh7kTd2PQWrsFyj9tORoKmu32xjPjeE4NyjVRDz8ybYwqS2ik8N4hsIpiVTyFeo2lBQ==", - "dev": true, - "requires": { - "chalk": "^2.0.1", - "diff-sequences": "^24.9.0", - "jest-get-type": "^24.9.0", - "pretty-format": "^24.9.0" - } - }, - "jest-docblock": { - "version": "29.4.3", - "resolved": "https://registry.npmjs.org/jest-docblock/-/jest-docblock-29.4.3.tgz", - "integrity": "sha512-fzdTftThczeSD9nZ3fzA/4KkHtnmllawWrXO69vtI+L9WjEIuXWs4AmyME7lN5hU7dB0sHhuPfcKofRsUb/2Fg==", - "dev": true, - "requires": { - "detect-newline": "^3.0.0" - } - }, - "jest-each": { - "version": "29.6.1", - "resolved": "https://registry.npmjs.org/jest-each/-/jest-each-29.6.1.tgz", - "integrity": "sha512-n5eoj5eiTHpKQCAVcNTT7DRqeUmJ01hsAL0Q1SMiBHcBcvTKDELixQOGMCpqhbIuTcfC4kMfSnpmDqRgRJcLNQ==", - "dev": true, - "requires": { - "@jest/types": "^29.6.1", - "chalk": "^4.0.0", - "jest-get-type": "^29.4.3", - "jest-util": "^29.6.1", - "pretty-format": "^29.6.1" - }, - "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "requires": { - "color-convert": "^2.0.1" - } + "get-package-type": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/get-package-type/-/get-package-type-0.1.0.tgz", + "integrity": "sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q==", + "dev": true + }, + "get-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz", + "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==", + "requires": { + "dunder-proto": "^1.0.1", + "es-object-atoms": "^1.0.0" + } }, - "chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } + "get-stream": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz", + "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==", + "dev": true }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "requires": { - "color-name": "~1.1.4" - } + "glob": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.0.tgz", + "integrity": "sha512-lmLf6gtyrPq8tTjSmrO94wBeQbFR3HbLHbuyD69wuyQkImp2hWqMGB47OX65FBkPffO641IP9jWa1z4ivqG26Q==", + "dev": true, + "requires": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.0.4", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + } }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true + "globals": { + "version": "11.12.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", + "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", + "dev": true + }, + "gopd": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz", + "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==" + }, + "graceful-fs": { + "version": "4.2.10", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.10.tgz", + "integrity": "sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA==", + "dev": true + }, + "has": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", + "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", + "dev": true, + "requires": { + "function-bind": "^1.1.1" + } }, "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", + "dev": true + }, + "has-symbols": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz", + "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==" + }, + "has-tostringtag": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz", + "integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==", + "requires": { + "has-symbols": "^1.0.3" + } }, - "jest-get-type": { - "version": "29.4.3", - "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.4.3.tgz", - "integrity": "sha512-J5Xez4nRRMjk8emnTpWrlkyb9pfRQQanDrvWHhsR1+VUfbwxi30eVcZFlcdGInRibU4G5LwHXpI7IRHU0CY+gg==", - "dev": true + "hasown": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", + "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", + "requires": { + "function-bind": "^1.1.2" + } }, - "pretty-format": { - "version": "29.6.1", - "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.6.1.tgz", - "integrity": "sha512-7jRj+yXO0W7e4/tSJKoR7HRIHLPPjtNaUGG2xxKQnGvPNRkgWcQ0AZX6P4KBRJN4FcTBWb3sa7DVUJmocYuoog==", - "dev": true, - "requires": { - "@jest/schemas": "^29.6.0", - "ansi-styles": "^5.0.0", - "react-is": "^18.0.0" - }, - "dependencies": { - "ansi-styles": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", - "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", - "dev": true - } - } + "html-encoding-sniffer": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/html-encoding-sniffer/-/html-encoding-sniffer-3.0.0.tgz", + "integrity": "sha512-oWv4T4yJ52iKrufjnyZPkrN0CH3QnrUqdB6In1g5Fe1mia8GmF36gnfNySxoZtxD5+NmYw1EElVXiBk93UeskA==", + "dev": true, + "requires": { + "whatwg-encoding": "^2.0.0" + } }, - "react-is": { - "version": "18.2.0", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", - "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", - "dev": true + "html-escaper": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/html-escaper/-/html-escaper-2.0.2.tgz", + "integrity": "sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==", + "dev": true + }, + "http-parser-js": { + "version": "0.5.6", + "resolved": "https://registry.npmjs.org/http-parser-js/-/http-parser-js-0.5.6.tgz", + "integrity": "sha512-vDlkRPDJn93swjcjqMSaGSPABbIarsr1TLAui/gLDXzV5VsJNdXNzMYDyNBLQkjWQCJ1uizu8T2oDMhmGt0PRA==" + }, + "http-proxy-agent": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-5.0.0.tgz", + "integrity": "sha512-n2hY8YdoRE1i7r6M0w9DIw5GgZN0G25P8zLCRQ8rjXtTU3vsNFBI/vWK/UIeE6g5MUUz6avwAPXmL6Fy9D/90w==", + "dev": true, + "requires": { + "@tootallnate/once": "2", + "agent-base": "6", + "debug": "4" + } }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } - } - } - }, - "jest-environment-jsdom": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-environment-jsdom/-/jest-environment-jsdom-29.7.0.tgz", - "integrity": "sha512-k9iQbsf9OyOfdzWH8HDmrRT0gSIcX+FLNW7IQq94tFX0gynPwqDTW0Ho6iMVNjGz/nb+l/vW3dWM2bbLLpkbXA==", - "dev": true, - "requires": { - "@jest/environment": "^29.7.0", - "@jest/fake-timers": "^29.7.0", - "@jest/types": "^29.6.3", - "@types/jsdom": "^20.0.0", - "@types/node": "*", - "jest-mock": "^29.7.0", - "jest-util": "^29.7.0", - "jsdom": "^20.0.0" - } - }, - "jest-environment-node": { - "version": "29.6.1", - "resolved": "https://registry.npmjs.org/jest-environment-node/-/jest-environment-node-29.6.1.tgz", - "integrity": "sha512-ZNIfAiE+foBog24W+2caIldl4Irh8Lx1PUhg/GZ0odM1d/h2qORAsejiFc7zb+SEmYPn1yDZzEDSU5PmDkmVLQ==", - "dev": true, - "requires": { - "@jest/environment": "^29.6.1", - "@jest/fake-timers": "^29.6.1", - "@jest/types": "^29.6.1", - "@types/node": "*", - "jest-mock": "^29.6.1", - "jest-util": "^29.6.1" - } - }, - "jest-get-type": { - "version": "24.9.0", - "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-24.9.0.tgz", - "integrity": "sha512-lUseMzAley4LhIcpSP9Jf+fTrQ4a1yHQwLNeeVa2cEmbCGeoZAtYPOIv8JaxLD/sUpKxetKGP+gsHl8f8TSj8Q==", - "dev": true - }, - "jest-haste-map": { - "version": "29.6.1", - "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-29.6.1.tgz", - "integrity": "sha512-0m7f9PZXxOCk1gRACiVgX85knUKPKLPg4oRCjLoqIm9brTHXaorMA0JpmtmVkQiT8nmXyIVoZd/nnH1cfC33ig==", - "dev": true, - "requires": { - "@jest/types": "^29.6.1", - "@types/graceful-fs": "^4.1.3", - "@types/node": "*", - "anymatch": "^3.0.3", - "fb-watchman": "^2.0.0", - "fsevents": "^2.3.2", - "graceful-fs": "^4.2.9", - "jest-regex-util": "^29.4.3", - "jest-util": "^29.6.1", - "jest-worker": "^29.6.1", - "micromatch": "^4.0.4", - "walker": "^1.0.8" - } - }, - "jest-leak-detector": { - "version": "29.6.1", - "resolved": "https://registry.npmjs.org/jest-leak-detector/-/jest-leak-detector-29.6.1.tgz", - "integrity": "sha512-OrxMNyZirpOEwkF3UHnIkAiZbtkBWiye+hhBweCHkVbCgyEy71Mwbb5zgeTNYWJBi1qgDVfPC1IwO9dVEeTLwQ==", - "dev": true, - "requires": { - "jest-get-type": "^29.4.3", - "pretty-format": "^29.6.1" - }, - "dependencies": { - "ansi-styles": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", - "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", - "dev": true + "https-proxy-agent": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz", + "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==", + "dev": true, + "requires": { + "agent-base": "6", + "debug": "4" + } }, - "jest-get-type": { - "version": "29.4.3", - "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.4.3.tgz", - "integrity": "sha512-J5Xez4nRRMjk8emnTpWrlkyb9pfRQQanDrvWHhsR1+VUfbwxi30eVcZFlcdGInRibU4G5LwHXpI7IRHU0CY+gg==", - "dev": true + "human-signals": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz", + "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==", + "dev": true + }, + "iconv-lite": { + "version": "0.6.3", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz", + "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==", + "dev": true, + "requires": { + "safer-buffer": ">= 2.1.2 < 3.0.0" + } }, - "pretty-format": { - "version": "29.6.1", - "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.6.1.tgz", - "integrity": "sha512-7jRj+yXO0W7e4/tSJKoR7HRIHLPPjtNaUGG2xxKQnGvPNRkgWcQ0AZX6P4KBRJN4FcTBWb3sa7DVUJmocYuoog==", - "dev": true, - "requires": { - "@jest/schemas": "^29.6.0", - "ansi-styles": "^5.0.0", - "react-is": "^18.0.0" - } + "import-local": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/import-local/-/import-local-3.1.0.tgz", + "integrity": "sha512-ASB07uLtnDs1o6EHjKpX34BKYDSqnFerfTOJL2HvMqF70LnxpjkzDB8J44oT9pu4AMPkQwf8jl6szgvNd2tRIg==", + "dev": true, + "requires": { + "pkg-dir": "^4.2.0", + "resolve-cwd": "^3.0.0" + } }, - "react-is": { - "version": "18.2.0", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", - "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", - "dev": true - } - } - }, - "jest-matcher-utils": { - "version": "29.6.1", - "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-29.6.1.tgz", - "integrity": "sha512-SLaztw9d2mfQQKHmJXKM0HCbl2PPVld/t9Xa6P9sgiExijviSp7TnZZpw2Fpt+OI3nwUO/slJbOfzfUMKKC5QA==", - "dev": true, - "requires": { - "chalk": "^4.0.0", - "jest-diff": "^29.6.1", - "jest-get-type": "^29.4.3", - "pretty-format": "^29.6.1" - }, - "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "requires": { - "color-convert": "^2.0.1" - } + "imurmurhash": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", + "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", + "dev": true + }, + "inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", + "dev": true, + "requires": { + "once": "^1.3.0", + "wrappy": "1" + } }, - "chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } + "inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", + "dev": true + }, + "is-arrayish": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", + "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==", + "dev": true + }, + "is-builtin-module": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/is-builtin-module/-/is-builtin-module-3.1.0.tgz", + "integrity": "sha512-OV7JjAgOTfAFJmHZLvpSTb4qi0nIILDV1gWPYDnDJUTNFM5aGlRAhk4QcT8i7TuAleeEV5Fdkqn3t4mS+Q11fg==", + "dev": true, + "requires": { + "builtin-modules": "^3.0.0" + } }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "requires": { - "color-name": "~1.1.4" - } + "is-core-module": { + "version": "2.12.1", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.12.1.tgz", + "integrity": "sha512-Q4ZuBAe2FUsKtyQJoQHlvP8OvBERxO3jEmy1I7hcRXcJBGGHFh/aJBswbXuS9sgrDH2QUO8ilkwNPHvHMd8clg==", + "dev": true, + "requires": { + "has": "^1.0.3" + } }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true + "is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "dev": true + }, + "is-generator-fn": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-generator-fn/-/is-generator-fn-2.1.0.tgz", + "integrity": "sha512-cTIB4yPYL/Grw0EaSzASzg6bBy9gqCofvWN8okThAYIxKJZC+udlRAmGbM0XLeniEJSs8uEgHPGuHSe1XsOLSQ==", + "dev": true + }, + "is-module": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-module/-/is-module-1.0.0.tgz", + "integrity": "sha512-51ypPSPCoTEIN9dy5Oy+h4pShgJmPCygKfyRCISBI+JoWT/2oJvK8QPxmwv7b/p239jXrm9M1mlQbyKJ5A152g==", + "dev": true + }, + "is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "dev": true + }, + "is-potential-custom-element-name": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-potential-custom-element-name/-/is-potential-custom-element-name-1.0.1.tgz", + "integrity": "sha512-bCYeRA2rVibKZd+s2625gGnGF/t7DSqDs4dP7CrLA1m7jKWz6pps0LpYLJN8Q64HtmPKJ1hrN3nzPNKFEKOUiQ==", + "dev": true + }, + "is-reference": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/is-reference/-/is-reference-1.2.1.tgz", + "integrity": "sha512-U82MsXXiFIrjCK4otLT+o2NA2Cd2g5MLoOVXUZjIOhLurrRxpEXzI8O0KZHr3IjLvlAH1kTPYSuqer5T9ZVBKQ==", + "dev": true, + "requires": { + "@types/estree": "*" + } }, - "diff-sequences": { - "version": "29.4.3", - "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-29.4.3.tgz", - "integrity": "sha512-ofrBgwpPhCD85kMKtE9RYFFq6OC1A89oW2vvgWZNCwxrUpRUILopY7lsYyMDSjc8g6U6aiO0Qubg6r4Wgt5ZnA==", - "dev": true + "is-stream": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", + "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==", + "dev": true + }, + "isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", + "dev": true + }, + "istanbul-lib-coverage": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.0.tgz", + "integrity": "sha512-eOeJ5BHCmHYvQK7xt9GkdHuzuCGS1Y6g9Gvnx3Ym33fz/HpLRYxiS0wHNr+m/MBC8B647Xt608vCDEvhl9c6Mw==", + "dev": true + }, + "istanbul-lib-instrument": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-5.2.1.tgz", + "integrity": "sha512-pzqtp31nLv/XFOzXGuvhCb8qhjmTVo5vjVk19XE4CRlSWz0KoeJ3bw9XsA7nOp9YBf4qHjwBxkDzKcME/J29Yg==", + "dev": true, + "requires": { + "@babel/core": "^7.12.3", + "@babel/parser": "^7.14.7", + "@istanbuljs/schema": "^0.1.2", + "istanbul-lib-coverage": "^3.2.0", + "semver": "^6.3.0" + } }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true + "istanbul-lib-report": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz", + "integrity": "sha512-wcdi+uAKzfiGT2abPpKZ0hSU1rGQjUQnLvtY5MpQ7QCTahD3VODhcu4wcfY1YtkGaDD5yuydOLINXsfbus9ROw==", + "dev": true, + "requires": { + "istanbul-lib-coverage": "^3.0.0", + "make-dir": "^3.0.0", + "supports-color": "^7.1.0" + }, + "dependencies": { + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, + "istanbul-lib-source-maps": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/istanbul-lib-source-maps/-/istanbul-lib-source-maps-4.0.1.tgz", + "integrity": "sha512-n3s8EwkdFIJCG3BPKBYvskgXGoy88ARzvegkitk60NxRdwltLOTaH7CUiMRXvwYorl0Q712iEjcWB+fK/MrWVw==", + "dev": true, + "requires": { + "debug": "^4.1.1", + "istanbul-lib-coverage": "^3.0.0", + "source-map": "^0.6.1" + } + }, + "istanbul-reports": { + "version": "3.1.5", + "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.1.5.tgz", + "integrity": "sha512-nUsEMa9pBt/NOHqbcbeJEgqIlY/K7rVWUX6Lql2orY5e9roQOthbR3vtY4zzf2orPELg80fnxxk9zUyPlgwD1w==", + "dev": true, + "requires": { + "html-escaper": "^2.0.0", + "istanbul-lib-report": "^3.0.0" + } + }, + "jest": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/jest/-/jest-29.6.1.tgz", + "integrity": "sha512-Nirw5B4nn69rVUZtemCQhwxOBhm0nsp3hmtF4rzCeWD7BkjAXRIji7xWQfnTNbz9g0aVsBX6aZK3n+23LM6uDw==", + "dev": true, + "requires": { + "@jest/core": "^29.6.1", + "@jest/types": "^29.6.1", + "import-local": "^3.0.2", + "jest-cli": "^29.6.1" + } + }, + "jest-changed-files": { + "version": "29.5.0", + "resolved": "https://registry.npmjs.org/jest-changed-files/-/jest-changed-files-29.5.0.tgz", + "integrity": "sha512-IFG34IUMUaNBIxjQXF/iu7g6EcdMrGRRxaUSw92I/2g2YC6vCdTltl4nHvt7Ci5nSJwXIkCu8Ka1DKF+X7Z1Ag==", + "dev": true, + "requires": { + "execa": "^5.0.0", + "p-limit": "^3.1.0" + } + }, + "jest-circus": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/jest-circus/-/jest-circus-29.6.1.tgz", + "integrity": "sha512-tPbYLEiBU4MYAL2XoZme/bgfUeotpDBd81lgHLCbDZZFaGmECk0b+/xejPFtmiBP87GgP/y4jplcRpbH+fgCzQ==", + "dev": true, + "requires": { + "@jest/environment": "^29.6.1", + "@jest/expect": "^29.6.1", + "@jest/test-result": "^29.6.1", + "@jest/types": "^29.6.1", + "@types/node": "*", + "chalk": "^4.0.0", + "co": "^4.6.0", + "dedent": "^0.7.0", + "is-generator-fn": "^2.0.0", + "jest-each": "^29.6.1", + "jest-matcher-utils": "^29.6.1", + "jest-message-util": "^29.6.1", + "jest-runtime": "^29.6.1", + "jest-snapshot": "^29.6.1", + "jest-util": "^29.6.1", + "p-limit": "^3.1.0", + "pretty-format": "^29.6.1", + "pure-rand": "^6.0.0", + "slash": "^3.0.0", + "stack-utils": "^2.0.3" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "requires": { + "color-convert": "^2.0.1" + } + }, + "chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true + }, + "pretty-format": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.6.1.tgz", + "integrity": "sha512-7jRj+yXO0W7e4/tSJKoR7HRIHLPPjtNaUGG2xxKQnGvPNRkgWcQ0AZX6P4KBRJN4FcTBWb3sa7DVUJmocYuoog==", + "dev": true, + "requires": { + "@jest/schemas": "^29.6.0", + "ansi-styles": "^5.0.0", + "react-is": "^18.0.0" + }, + "dependencies": { + "ansi-styles": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", + "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", + "dev": true + } + } + }, + "react-is": { + "version": "18.2.0", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", + "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", + "dev": true + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, + "jest-cli": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/jest-cli/-/jest-cli-29.6.1.tgz", + "integrity": "sha512-607dSgTA4ODIN6go9w6xY3EYkyPFGicx51a69H7yfvt7lN53xNswEVLovq+E77VsTRi5fWprLH0yl4DJgE8Ing==", + "dev": true, + "requires": { + "@jest/core": "^29.6.1", + "@jest/test-result": "^29.6.1", + "@jest/types": "^29.6.1", + "chalk": "^4.0.0", + "exit": "^0.1.2", + "graceful-fs": "^4.2.9", + "import-local": "^3.0.2", + "jest-config": "^29.6.1", + "jest-util": "^29.6.1", + "jest-validate": "^29.6.1", + "prompts": "^2.0.1", + "yargs": "^17.3.1" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "requires": { + "color-convert": "^2.0.1" + } + }, + "chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true + }, + "jest-config": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/jest-config/-/jest-config-29.6.1.tgz", + "integrity": "sha512-XdjYV2fy2xYixUiV2Wc54t3Z4oxYPAELUzWnV6+mcbq0rh742X2p52pii5A3oeRzYjLnQxCsZmp0qpI6klE2cQ==", + "dev": true, + "requires": { + "@babel/core": "^7.11.6", + "@jest/test-sequencer": "^29.6.1", + "@jest/types": "^29.6.1", + "babel-jest": "^29.6.1", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "deepmerge": "^4.2.2", + "glob": "^7.1.3", + "graceful-fs": "^4.2.9", + "jest-circus": "^29.6.1", + "jest-environment-node": "^29.6.1", + "jest-get-type": "^29.4.3", + "jest-regex-util": "^29.4.3", + "jest-resolve": "^29.6.1", + "jest-runner": "^29.6.1", + "jest-util": "^29.6.1", + "jest-validate": "^29.6.1", + "micromatch": "^4.0.4", + "parse-json": "^5.2.0", + "pretty-format": "^29.6.1", + "slash": "^3.0.0", + "strip-json-comments": "^3.1.1" + } + }, + "jest-get-type": { + "version": "29.4.3", + "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.4.3.tgz", + "integrity": "sha512-J5Xez4nRRMjk8emnTpWrlkyb9pfRQQanDrvWHhsR1+VUfbwxi30eVcZFlcdGInRibU4G5LwHXpI7IRHU0CY+gg==", + "dev": true + }, + "pretty-format": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.6.1.tgz", + "integrity": "sha512-7jRj+yXO0W7e4/tSJKoR7HRIHLPPjtNaUGG2xxKQnGvPNRkgWcQ0AZX6P4KBRJN4FcTBWb3sa7DVUJmocYuoog==", + "dev": true, + "requires": { + "@jest/schemas": "^29.6.0", + "ansi-styles": "^5.0.0", + "react-is": "^18.0.0" + }, + "dependencies": { + "ansi-styles": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", + "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", + "dev": true + } + } + }, + "react-is": { + "version": "18.2.0", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", + "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", + "dev": true + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" + } + } + } }, "jest-diff": { - "version": "29.6.1", - "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-29.6.1.tgz", - "integrity": "sha512-FsNCvinvl8oVxpNLttNQX7FAq7vR+gMDGj90tiP7siWw1UdakWUGqrylpsYrpvj908IYckm5Y0Q7azNAozU1Kg==", - "dev": true, - "requires": { - "chalk": "^4.0.0", - "diff-sequences": "^29.4.3", - "jest-get-type": "^29.4.3", - "pretty-format": "^29.6.1" - } + "version": "24.9.0", + "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-24.9.0.tgz", + "integrity": "sha512-qMfrTs8AdJE2iqrTp0hzh7kTd2PQWrsFyj9tORoKmu32xjPjeE4NyjVRDz8ybYwqS2ik8N4hsIpiVTyFeo2lBQ==", + "dev": true, + "requires": { + "chalk": "^2.0.1", + "diff-sequences": "^24.9.0", + "jest-get-type": "^24.9.0", + "pretty-format": "^24.9.0" + } + }, + "jest-docblock": { + "version": "29.4.3", + "resolved": "https://registry.npmjs.org/jest-docblock/-/jest-docblock-29.4.3.tgz", + "integrity": "sha512-fzdTftThczeSD9nZ3fzA/4KkHtnmllawWrXO69vtI+L9WjEIuXWs4AmyME7lN5hU7dB0sHhuPfcKofRsUb/2Fg==", + "dev": true, + "requires": { + "detect-newline": "^3.0.0" + } + }, + "jest-each": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/jest-each/-/jest-each-29.6.1.tgz", + "integrity": "sha512-n5eoj5eiTHpKQCAVcNTT7DRqeUmJ01hsAL0Q1SMiBHcBcvTKDELixQOGMCpqhbIuTcfC4kMfSnpmDqRgRJcLNQ==", + "dev": true, + "requires": { + "@jest/types": "^29.6.1", + "chalk": "^4.0.0", + "jest-get-type": "^29.4.3", + "jest-util": "^29.6.1", + "pretty-format": "^29.6.1" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "requires": { + "color-convert": "^2.0.1" + } + }, + "chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true + }, + "jest-get-type": { + "version": "29.4.3", + "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.4.3.tgz", + "integrity": "sha512-J5Xez4nRRMjk8emnTpWrlkyb9pfRQQanDrvWHhsR1+VUfbwxi30eVcZFlcdGInRibU4G5LwHXpI7IRHU0CY+gg==", + "dev": true + }, + "pretty-format": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.6.1.tgz", + "integrity": "sha512-7jRj+yXO0W7e4/tSJKoR7HRIHLPPjtNaUGG2xxKQnGvPNRkgWcQ0AZX6P4KBRJN4FcTBWb3sa7DVUJmocYuoog==", + "dev": true, + "requires": { + "@jest/schemas": "^29.6.0", + "ansi-styles": "^5.0.0", + "react-is": "^18.0.0" + }, + "dependencies": { + "ansi-styles": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", + "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", + "dev": true + } + } + }, + "react-is": { + "version": "18.2.0", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", + "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", + "dev": true + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" + } + } + } + }, + "jest-environment-jsdom": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-environment-jsdom/-/jest-environment-jsdom-29.7.0.tgz", + "integrity": "sha512-k9iQbsf9OyOfdzWH8HDmrRT0gSIcX+FLNW7IQq94tFX0gynPwqDTW0Ho6iMVNjGz/nb+l/vW3dWM2bbLLpkbXA==", + "dev": true, + "requires": { + "@jest/environment": "^29.7.0", + "@jest/fake-timers": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/jsdom": "^20.0.0", + "@types/node": "*", + "jest-mock": "^29.7.0", + "jest-util": "^29.7.0", + "jsdom": "^20.0.0" + } + }, + "jest-environment-node": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/jest-environment-node/-/jest-environment-node-29.6.1.tgz", + "integrity": "sha512-ZNIfAiE+foBog24W+2caIldl4Irh8Lx1PUhg/GZ0odM1d/h2qORAsejiFc7zb+SEmYPn1yDZzEDSU5PmDkmVLQ==", + "dev": true, + "requires": { + "@jest/environment": "^29.6.1", + "@jest/fake-timers": "^29.6.1", + "@jest/types": "^29.6.1", + "@types/node": "*", + "jest-mock": "^29.6.1", + "jest-util": "^29.6.1" + } }, "jest-get-type": { - "version": "29.4.3", - "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.4.3.tgz", - "integrity": "sha512-J5Xez4nRRMjk8emnTpWrlkyb9pfRQQanDrvWHhsR1+VUfbwxi30eVcZFlcdGInRibU4G5LwHXpI7IRHU0CY+gg==", - "dev": true + "version": "24.9.0", + "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-24.9.0.tgz", + "integrity": "sha512-lUseMzAley4LhIcpSP9Jf+fTrQ4a1yHQwLNeeVa2cEmbCGeoZAtYPOIv8JaxLD/sUpKxetKGP+gsHl8f8TSj8Q==", + "dev": true + }, + "jest-haste-map": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-29.6.1.tgz", + "integrity": "sha512-0m7f9PZXxOCk1gRACiVgX85knUKPKLPg4oRCjLoqIm9brTHXaorMA0JpmtmVkQiT8nmXyIVoZd/nnH1cfC33ig==", + "dev": true, + "requires": { + "@jest/types": "^29.6.1", + "@types/graceful-fs": "^4.1.3", + "@types/node": "*", + "anymatch": "^3.0.3", + "fb-watchman": "^2.0.0", + "fsevents": "^2.3.2", + "graceful-fs": "^4.2.9", + "jest-regex-util": "^29.4.3", + "jest-util": "^29.6.1", + "jest-worker": "^29.6.1", + "micromatch": "^4.0.4", + "walker": "^1.0.8" + } }, - "pretty-format": { - "version": "29.6.1", - "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.6.1.tgz", - "integrity": "sha512-7jRj+yXO0W7e4/tSJKoR7HRIHLPPjtNaUGG2xxKQnGvPNRkgWcQ0AZX6P4KBRJN4FcTBWb3sa7DVUJmocYuoog==", - "dev": true, - "requires": { - "@jest/schemas": "^29.6.0", - "ansi-styles": "^5.0.0", - "react-is": "^18.0.0" - }, - "dependencies": { - "ansi-styles": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", - "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", - "dev": true - } - } + "jest-leak-detector": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/jest-leak-detector/-/jest-leak-detector-29.6.1.tgz", + "integrity": "sha512-OrxMNyZirpOEwkF3UHnIkAiZbtkBWiye+hhBweCHkVbCgyEy71Mwbb5zgeTNYWJBi1qgDVfPC1IwO9dVEeTLwQ==", + "dev": true, + "requires": { + "jest-get-type": "^29.4.3", + "pretty-format": "^29.6.1" + }, + "dependencies": { + "ansi-styles": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", + "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", + "dev": true + }, + "jest-get-type": { + "version": "29.4.3", + "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.4.3.tgz", + "integrity": "sha512-J5Xez4nRRMjk8emnTpWrlkyb9pfRQQanDrvWHhsR1+VUfbwxi30eVcZFlcdGInRibU4G5LwHXpI7IRHU0CY+gg==", + "dev": true + }, + "pretty-format": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.6.1.tgz", + "integrity": "sha512-7jRj+yXO0W7e4/tSJKoR7HRIHLPPjtNaUGG2xxKQnGvPNRkgWcQ0AZX6P4KBRJN4FcTBWb3sa7DVUJmocYuoog==", + "dev": true, + "requires": { + "@jest/schemas": "^29.6.0", + "ansi-styles": "^5.0.0", + "react-is": "^18.0.0" + } + }, + "react-is": { + "version": "18.2.0", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", + "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", + "dev": true + } + } }, - "react-is": { - "version": "18.2.0", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", - "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", - "dev": true + "jest-matcher-utils": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-29.6.1.tgz", + "integrity": "sha512-SLaztw9d2mfQQKHmJXKM0HCbl2PPVld/t9Xa6P9sgiExijviSp7TnZZpw2Fpt+OI3nwUO/slJbOfzfUMKKC5QA==", + "dev": true, + "requires": { + "chalk": "^4.0.0", + "jest-diff": "^29.6.1", + "jest-get-type": "^29.4.3", + "pretty-format": "^29.6.1" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "requires": { + "color-convert": "^2.0.1" + } + }, + "chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "diff-sequences": { + "version": "29.4.3", + "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-29.4.3.tgz", + "integrity": "sha512-ofrBgwpPhCD85kMKtE9RYFFq6OC1A89oW2vvgWZNCwxrUpRUILopY7lsYyMDSjc8g6U6aiO0Qubg6r4Wgt5ZnA==", + "dev": true + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true + }, + "jest-diff": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-29.6.1.tgz", + "integrity": "sha512-FsNCvinvl8oVxpNLttNQX7FAq7vR+gMDGj90tiP7siWw1UdakWUGqrylpsYrpvj908IYckm5Y0Q7azNAozU1Kg==", + "dev": true, + "requires": { + "chalk": "^4.0.0", + "diff-sequences": "^29.4.3", + "jest-get-type": "^29.4.3", + "pretty-format": "^29.6.1" + } + }, + "jest-get-type": { + "version": "29.4.3", + "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.4.3.tgz", + "integrity": "sha512-J5Xez4nRRMjk8emnTpWrlkyb9pfRQQanDrvWHhsR1+VUfbwxi30eVcZFlcdGInRibU4G5LwHXpI7IRHU0CY+gg==", + "dev": true + }, + "pretty-format": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.6.1.tgz", + "integrity": "sha512-7jRj+yXO0W7e4/tSJKoR7HRIHLPPjtNaUGG2xxKQnGvPNRkgWcQ0AZX6P4KBRJN4FcTBWb3sa7DVUJmocYuoog==", + "dev": true, + "requires": { + "@jest/schemas": "^29.6.0", + "ansi-styles": "^5.0.0", + "react-is": "^18.0.0" + }, + "dependencies": { + "ansi-styles": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", + "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", + "dev": true + } + } + }, + "react-is": { + "version": "18.2.0", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", + "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", + "dev": true + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" + } + } + } }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } - } - } - }, - "jest-message-util": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-29.7.0.tgz", - "integrity": "sha512-GBEV4GRADeP+qtB2+6u61stea8mGcOT4mCtrYISZwfu9/ISHFJ/5zOMXYbpBE9RsS5+Gb63DW4FgmnKJ79Kf6w==", - "dev": true, - "requires": { - "@babel/code-frame": "^7.12.13", - "@jest/types": "^29.6.3", - "@types/stack-utils": "^2.0.0", - "chalk": "^4.0.0", - "graceful-fs": "^4.2.9", - "micromatch": "^4.0.4", - "pretty-format": "^29.7.0", - "slash": "^3.0.0", - "stack-utils": "^2.0.3" - }, - "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "requires": { - "color-convert": "^2.0.1" - } + "jest-message-util": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-29.7.0.tgz", + "integrity": "sha512-GBEV4GRADeP+qtB2+6u61stea8mGcOT4mCtrYISZwfu9/ISHFJ/5zOMXYbpBE9RsS5+Gb63DW4FgmnKJ79Kf6w==", + "dev": true, + "requires": { + "@babel/code-frame": "^7.12.13", + "@jest/types": "^29.6.3", + "@types/stack-utils": "^2.0.0", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "micromatch": "^4.0.4", + "pretty-format": "^29.7.0", + "slash": "^3.0.0", + "stack-utils": "^2.0.3" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "requires": { + "color-convert": "^2.0.1" + } + }, + "chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true + }, + "pretty-format": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.7.0.tgz", + "integrity": "sha512-Pdlw/oPxN+aXdmM9R00JVC9WVFoCLTKJvDVLgmJ+qAffBMxsV85l/Lu7sNx4zSzPyoL2euImuEwHhOXdEgNFZQ==", + "dev": true, + "requires": { + "@jest/schemas": "^29.6.3", + "ansi-styles": "^5.0.0", + "react-is": "^18.0.0" + }, + "dependencies": { + "ansi-styles": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", + "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", + "dev": true + } + } + }, + "react-is": { + "version": "18.2.0", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", + "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", + "dev": true + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" + } + } + } }, - "chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } + "jest-mock": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-mock/-/jest-mock-29.7.0.tgz", + "integrity": "sha512-ITOMZn+UkYS4ZFh83xYAOzWStloNzJFO2s8DWrE4lhtGD+AorgnbkiKERe4wQVBydIGPx059g6riW5Btp6Llnw==", + "dev": true, + "requires": { + "@jest/types": "^29.6.3", + "@types/node": "*", + "jest-util": "^29.7.0" + } }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "requires": { - "color-name": "~1.1.4" - } + "jest-pnp-resolver": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/jest-pnp-resolver/-/jest-pnp-resolver-1.2.3.tgz", + "integrity": "sha512-+3NpwQEnRoIBtx4fyhblQDPgJI0H1IEIkX7ShLUjPGA7TtUTvI1oiKi3SR4oBR0hQhQR80l4WAe5RrXBwWMA8w==", + "dev": true, + "requires": {} }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true + "jest-regex-util": { + "version": "29.4.3", + "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-29.4.3.tgz", + "integrity": "sha512-O4FglZaMmWXbGHSQInfXewIsd1LMn9p3ZXB/6r4FOkyhX2/iP/soMG98jGvk/A3HAN78+5VWcBGO0BJAPRh4kg==", + "dev": true }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true + "jest-resolve": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/jest-resolve/-/jest-resolve-29.6.1.tgz", + "integrity": "sha512-AeRkyS8g37UyJiP9w3mmI/VXU/q8l/IH52vj/cDAyScDcemRbSBhfX/NMYIGilQgSVwsjxrCHf3XJu4f+lxCMg==", + "dev": true, + "requires": { + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.6.1", + "jest-pnp-resolver": "^1.2.2", + "jest-util": "^29.6.1", + "jest-validate": "^29.6.1", + "resolve": "^1.20.0", + "resolve.exports": "^2.0.0", + "slash": "^3.0.0" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "requires": { + "color-convert": "^2.0.1" + } + }, + "chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" + } + } + } }, - "pretty-format": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.7.0.tgz", - "integrity": "sha512-Pdlw/oPxN+aXdmM9R00JVC9WVFoCLTKJvDVLgmJ+qAffBMxsV85l/Lu7sNx4zSzPyoL2euImuEwHhOXdEgNFZQ==", - "dev": true, - "requires": { - "@jest/schemas": "^29.6.3", - "ansi-styles": "^5.0.0", - "react-is": "^18.0.0" - }, - "dependencies": { - "ansi-styles": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", - "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", - "dev": true - } - } + "jest-resolve-dependencies": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/jest-resolve-dependencies/-/jest-resolve-dependencies-29.6.1.tgz", + "integrity": "sha512-BbFvxLXtcldaFOhNMXmHRWx1nXQO5LoXiKSGQcA1LxxirYceZT6ch8KTE1bK3X31TNG/JbkI7OkS/ABexVahiw==", + "dev": true, + "requires": { + "jest-regex-util": "^29.4.3", + "jest-snapshot": "^29.6.1" + } }, - "react-is": { - "version": "18.2.0", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", - "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", - "dev": true + "jest-runner": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/jest-runner/-/jest-runner-29.6.1.tgz", + "integrity": "sha512-tw0wb2Q9yhjAQ2w8rHRDxteryyIck7gIzQE4Reu3JuOBpGp96xWgF0nY8MDdejzrLCZKDcp8JlZrBN/EtkQvPQ==", + "dev": true, + "requires": { + "@jest/console": "^29.6.1", + "@jest/environment": "^29.6.1", + "@jest/test-result": "^29.6.1", + "@jest/transform": "^29.6.1", + "@jest/types": "^29.6.1", + "@types/node": "*", + "chalk": "^4.0.0", + "emittery": "^0.13.1", + "graceful-fs": "^4.2.9", + "jest-docblock": "^29.4.3", + "jest-environment-node": "^29.6.1", + "jest-haste-map": "^29.6.1", + "jest-leak-detector": "^29.6.1", + "jest-message-util": "^29.6.1", + "jest-resolve": "^29.6.1", + "jest-runtime": "^29.6.1", + "jest-util": "^29.6.1", + "jest-watcher": "^29.6.1", + "jest-worker": "^29.6.1", + "p-limit": "^3.1.0", + "source-map-support": "0.5.13" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "requires": { + "color-convert": "^2.0.1" + } + }, + "chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true + }, + "source-map-support": { + "version": "0.5.13", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.13.tgz", + "integrity": "sha512-SHSKFHadjVA5oR4PPqhtAVdcBWwRYVd6g6cAXnIbRiIwc2EhPrTuKUBdSLvlEKyIP3GCf89fltvcZiP9MMFA1w==", + "dev": true, + "requires": { + "buffer-from": "^1.0.0", + "source-map": "^0.6.0" + } + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" + } + } + } }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } - } - } - }, - "jest-mock": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-mock/-/jest-mock-29.7.0.tgz", - "integrity": "sha512-ITOMZn+UkYS4ZFh83xYAOzWStloNzJFO2s8DWrE4lhtGD+AorgnbkiKERe4wQVBydIGPx059g6riW5Btp6Llnw==", - "dev": true, - "requires": { - "@jest/types": "^29.6.3", - "@types/node": "*", - "jest-util": "^29.7.0" - } - }, - "jest-pnp-resolver": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/jest-pnp-resolver/-/jest-pnp-resolver-1.2.3.tgz", - "integrity": "sha512-+3NpwQEnRoIBtx4fyhblQDPgJI0H1IEIkX7ShLUjPGA7TtUTvI1oiKi3SR4oBR0hQhQR80l4WAe5RrXBwWMA8w==", - "dev": true, - "requires": {} - }, - "jest-regex-util": { - "version": "29.4.3", - "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-29.4.3.tgz", - "integrity": "sha512-O4FglZaMmWXbGHSQInfXewIsd1LMn9p3ZXB/6r4FOkyhX2/iP/soMG98jGvk/A3HAN78+5VWcBGO0BJAPRh4kg==", - "dev": true - }, - "jest-resolve": { - "version": "29.6.1", - "resolved": "https://registry.npmjs.org/jest-resolve/-/jest-resolve-29.6.1.tgz", - "integrity": "sha512-AeRkyS8g37UyJiP9w3mmI/VXU/q8l/IH52vj/cDAyScDcemRbSBhfX/NMYIGilQgSVwsjxrCHf3XJu4f+lxCMg==", - "dev": true, - "requires": { - "chalk": "^4.0.0", - "graceful-fs": "^4.2.9", - "jest-haste-map": "^29.6.1", - "jest-pnp-resolver": "^1.2.2", - "jest-util": "^29.6.1", - "jest-validate": "^29.6.1", - "resolve": "^1.20.0", - "resolve.exports": "^2.0.0", - "slash": "^3.0.0" - }, - "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "requires": { - "color-convert": "^2.0.1" - } + "jest-runtime": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/jest-runtime/-/jest-runtime-29.6.1.tgz", + "integrity": "sha512-D6/AYOA+Lhs5e5il8+5pSLemjtJezUr+8zx+Sn8xlmOux3XOqx4d8l/2udBea8CRPqqrzhsKUsN/gBDE/IcaPQ==", + "dev": true, + "requires": { + "@jest/environment": "^29.6.1", + "@jest/fake-timers": "^29.6.1", + "@jest/globals": "^29.6.1", + "@jest/source-map": "^29.6.0", + "@jest/test-result": "^29.6.1", + "@jest/transform": "^29.6.1", + "@jest/types": "^29.6.1", + "@types/node": "*", + "chalk": "^4.0.0", + "cjs-module-lexer": "^1.0.0", + "collect-v8-coverage": "^1.0.0", + "glob": "^7.1.3", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.6.1", + "jest-message-util": "^29.6.1", + "jest-mock": "^29.6.1", + "jest-regex-util": "^29.4.3", + "jest-resolve": "^29.6.1", + "jest-snapshot": "^29.6.1", + "jest-util": "^29.6.1", + "slash": "^3.0.0", + "strip-bom": "^4.0.0" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "requires": { + "color-convert": "^2.0.1" + } + }, + "chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" + } + } + } }, - "chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } + "jest-snapshot": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/jest-snapshot/-/jest-snapshot-29.6.1.tgz", + "integrity": "sha512-G4UQE1QQ6OaCgfY+A0uR1W2AY0tGXUPQpoUClhWHq1Xdnx1H6JOrC2nH5lqnOEqaDgbHFgIwZ7bNq24HpB180A==", + "dev": true, + "requires": { + "@babel/core": "^7.11.6", + "@babel/generator": "^7.7.2", + "@babel/plugin-syntax-jsx": "^7.7.2", + "@babel/plugin-syntax-typescript": "^7.7.2", + "@babel/types": "^7.3.3", + "@jest/expect-utils": "^29.6.1", + "@jest/transform": "^29.6.1", + "@jest/types": "^29.6.1", + "@types/prettier": "^2.1.5", + "babel-preset-current-node-syntax": "^1.0.0", + "chalk": "^4.0.0", + "expect": "^29.6.1", + "graceful-fs": "^4.2.9", + "jest-diff": "^29.6.1", + "jest-get-type": "^29.4.3", + "jest-matcher-utils": "^29.6.1", + "jest-message-util": "^29.6.1", + "jest-util": "^29.6.1", + "natural-compare": "^1.4.0", + "pretty-format": "^29.6.1", + "semver": "^7.5.3" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "requires": { + "color-convert": "^2.0.1" + } + }, + "chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "diff-sequences": { + "version": "29.4.3", + "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-29.4.3.tgz", + "integrity": "sha512-ofrBgwpPhCD85kMKtE9RYFFq6OC1A89oW2vvgWZNCwxrUpRUILopY7lsYyMDSjc8g6U6aiO0Qubg6r4Wgt5ZnA==", + "dev": true + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true + }, + "jest-diff": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-29.6.1.tgz", + "integrity": "sha512-FsNCvinvl8oVxpNLttNQX7FAq7vR+gMDGj90tiP7siWw1UdakWUGqrylpsYrpvj908IYckm5Y0Q7azNAozU1Kg==", + "dev": true, + "requires": { + "chalk": "^4.0.0", + "diff-sequences": "^29.4.3", + "jest-get-type": "^29.4.3", + "pretty-format": "^29.6.1" + } + }, + "jest-get-type": { + "version": "29.4.3", + "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.4.3.tgz", + "integrity": "sha512-J5Xez4nRRMjk8emnTpWrlkyb9pfRQQanDrvWHhsR1+VUfbwxi30eVcZFlcdGInRibU4G5LwHXpI7IRHU0CY+gg==", + "dev": true + }, + "lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dev": true, + "requires": { + "yallist": "^4.0.0" + } + }, + "pretty-format": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.6.1.tgz", + "integrity": "sha512-7jRj+yXO0W7e4/tSJKoR7HRIHLPPjtNaUGG2xxKQnGvPNRkgWcQ0AZX6P4KBRJN4FcTBWb3sa7DVUJmocYuoog==", + "dev": true, + "requires": { + "@jest/schemas": "^29.6.0", + "ansi-styles": "^5.0.0", + "react-is": "^18.0.0" + }, + "dependencies": { + "ansi-styles": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", + "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", + "dev": true + } + } + }, + "react-is": { + "version": "18.2.0", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", + "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", + "dev": true + }, + "semver": { + "version": "7.5.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", + "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", + "dev": true, + "requires": { + "lru-cache": "^6.0.0" + } + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" + } + }, + "yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true + } + } }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "requires": { - "color-name": "~1.1.4" - } + "jest-util": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-29.7.0.tgz", + "integrity": "sha512-z6EbKajIpqGKU56y5KBUgy1dt1ihhQJgWzUlZHArA/+X2ad7Cb5iF+AK1EWVL/Bo7Rz9uurpqw6SiBCefUbCGA==", + "dev": true, + "requires": { + "@jest/types": "^29.6.3", + "@types/node": "*", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "graceful-fs": "^4.2.9", + "picomatch": "^2.2.3" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "requires": { + "color-convert": "^2.0.1" + } + }, + "chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" + } + } + } }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true + "jest-validate": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/jest-validate/-/jest-validate-29.6.1.tgz", + "integrity": "sha512-r3Ds69/0KCN4vx4sYAbGL1EVpZ7MSS0vLmd3gV78O+NAx3PDQQukRU5hNHPXlyqCgFY8XUk7EuTMLugh0KzahA==", + "dev": true, + "requires": { + "@jest/types": "^29.6.1", + "camelcase": "^6.2.0", + "chalk": "^4.0.0", + "jest-get-type": "^29.4.3", + "leven": "^3.1.0", + "pretty-format": "^29.6.1" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "requires": { + "color-convert": "^2.0.1" + } + }, + "camelcase": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", + "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==", + "dev": true + }, + "chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true + }, + "jest-get-type": { + "version": "29.4.3", + "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.4.3.tgz", + "integrity": "sha512-J5Xez4nRRMjk8emnTpWrlkyb9pfRQQanDrvWHhsR1+VUfbwxi30eVcZFlcdGInRibU4G5LwHXpI7IRHU0CY+gg==", + "dev": true + }, + "pretty-format": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.6.1.tgz", + "integrity": "sha512-7jRj+yXO0W7e4/tSJKoR7HRIHLPPjtNaUGG2xxKQnGvPNRkgWcQ0AZX6P4KBRJN4FcTBWb3sa7DVUJmocYuoog==", + "dev": true, + "requires": { + "@jest/schemas": "^29.6.0", + "ansi-styles": "^5.0.0", + "react-is": "^18.0.0" + }, + "dependencies": { + "ansi-styles": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", + "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", + "dev": true + } + } + }, + "react-is": { + "version": "18.2.0", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", + "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", + "dev": true + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" + } + } + } }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true + "jest-watcher": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/jest-watcher/-/jest-watcher-29.6.1.tgz", + "integrity": "sha512-d4wpjWTS7HEZPaaj8m36QiaP856JthRZkrgcIY/7ISoUWPIillrXM23WPboZVLbiwZBt4/qn2Jke84Sla6JhFA==", + "dev": true, + "requires": { + "@jest/test-result": "^29.6.1", + "@jest/types": "^29.6.1", + "@types/node": "*", + "ansi-escapes": "^4.2.1", + "chalk": "^4.0.0", + "emittery": "^0.13.1", + "jest-util": "^29.6.1", + "string-length": "^4.0.1" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "requires": { + "color-convert": "^2.0.1" + } + }, + "chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" + } + } + } }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } - } - } - }, - "jest-resolve-dependencies": { - "version": "29.6.1", - "resolved": "https://registry.npmjs.org/jest-resolve-dependencies/-/jest-resolve-dependencies-29.6.1.tgz", - "integrity": "sha512-BbFvxLXtcldaFOhNMXmHRWx1nXQO5LoXiKSGQcA1LxxirYceZT6ch8KTE1bK3X31TNG/JbkI7OkS/ABexVahiw==", - "dev": true, - "requires": { - "jest-regex-util": "^29.4.3", - "jest-snapshot": "^29.6.1" - } - }, - "jest-runner": { - "version": "29.6.1", - "resolved": "https://registry.npmjs.org/jest-runner/-/jest-runner-29.6.1.tgz", - "integrity": "sha512-tw0wb2Q9yhjAQ2w8rHRDxteryyIck7gIzQE4Reu3JuOBpGp96xWgF0nY8MDdejzrLCZKDcp8JlZrBN/EtkQvPQ==", - "dev": true, - "requires": { - "@jest/console": "^29.6.1", - "@jest/environment": "^29.6.1", - "@jest/test-result": "^29.6.1", - "@jest/transform": "^29.6.1", - "@jest/types": "^29.6.1", - "@types/node": "*", - "chalk": "^4.0.0", - "emittery": "^0.13.1", - "graceful-fs": "^4.2.9", - "jest-docblock": "^29.4.3", - "jest-environment-node": "^29.6.1", - "jest-haste-map": "^29.6.1", - "jest-leak-detector": "^29.6.1", - "jest-message-util": "^29.6.1", - "jest-resolve": "^29.6.1", - "jest-runtime": "^29.6.1", - "jest-util": "^29.6.1", - "jest-watcher": "^29.6.1", - "jest-worker": "^29.6.1", - "p-limit": "^3.1.0", - "source-map-support": "0.5.13" - }, - "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "requires": { - "color-convert": "^2.0.1" - } + "jest-worker": { + "version": "29.6.1", + "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-29.6.1.tgz", + "integrity": "sha512-U+Wrbca7S8ZAxAe9L6nb6g8kPdia5hj32Puu5iOqBCMTMWFHXuK6dOV2IFrpedbTV8fjMFLdWNttQTBL6u2MRA==", + "dev": true, + "requires": { + "@types/node": "*", + "jest-util": "^29.6.1", + "merge-stream": "^2.0.0", + "supports-color": "^8.0.0" + }, + "dependencies": { + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true + }, + "supports-color": { + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", + "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" + } + } + } }, - "chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } + "js-tokens": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", + "dev": true + }, + "js-yaml": { + "version": "3.14.2", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.2.tgz", + "integrity": "sha512-PMSmkqxr106Xa156c2M265Z+FTrPl+oxd/rgOQy2tijQeK5TxQ43psO1ZCwhVOSdnn+RzkzlRz/eY4BgJBYVpg==", + "dev": true, + "requires": { + "argparse": "^1.0.7", + "esprima": "^4.0.0" + } }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "requires": { - "color-name": "~1.1.4" - } + "js2xmlparser": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/js2xmlparser/-/js2xmlparser-4.0.2.tgz", + "integrity": "sha512-6n4D8gLlLf1n5mNLQPRfViYzu9RATblzPEtm1SthMX1Pjao0r9YI9nw7ZIfRxQMERS87mcswrg+r/OYrPRX6jA==", + "dev": true, + "requires": { + "xmlcreate": "^2.0.4" + } }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true + "jsdoc": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/jsdoc/-/jsdoc-4.0.2.tgz", + "integrity": "sha512-e8cIg2z62InH7azBBi3EsSEqrKx+nUtAS5bBcYTSpZFA+vhNPyhv8PTFZ0WsjOPDj04/dOLlm08EDcQJDqaGQg==", + "dev": true, + "requires": { + "@babel/parser": "^7.20.15", + "@jsdoc/salty": "^0.2.1", + "@types/markdown-it": "^12.2.3", + "bluebird": "^3.7.2", + "catharsis": "^0.9.0", + "escape-string-regexp": "^2.0.0", + "js2xmlparser": "^4.0.2", + "klaw": "^3.0.0", + "markdown-it": "^12.3.2", + "markdown-it-anchor": "^8.4.1", + "marked": "^4.0.10", + "mkdirp": "^1.0.4", + "requizzle": "^0.2.3", + "strip-json-comments": "^3.1.0", + "underscore": "~1.13.2" + }, + "dependencies": { + "escape-string-regexp": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz", + "integrity": "sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==", + "dev": true + } + } }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true + "jsdom": { + "version": "20.0.3", + "resolved": "https://registry.npmjs.org/jsdom/-/jsdom-20.0.3.tgz", + "integrity": "sha512-SYhBvTh89tTfCD/CRdSOm13mOBa42iTaTyfyEWBdKcGdPxPtLFBXuHR8XHb33YNYaP+lLbmSvBTsnoesCNJEsQ==", + "dev": true, + "requires": { + "abab": "^2.0.6", + "acorn": "^8.8.1", + "acorn-globals": "^7.0.0", + "cssom": "^0.5.0", + "cssstyle": "^2.3.0", + "data-urls": "^3.0.2", + "decimal.js": "^10.4.2", + "domexception": "^4.0.0", + "escodegen": "^2.0.0", + "form-data": "^4.0.0", + "html-encoding-sniffer": "^3.0.0", + "http-proxy-agent": "^5.0.0", + "https-proxy-agent": "^5.0.1", + "is-potential-custom-element-name": "^1.0.1", + "nwsapi": "^2.2.2", + "parse5": "^7.1.1", + "saxes": "^6.0.0", + "symbol-tree": "^3.2.4", + "tough-cookie": "^4.1.2", + "w3c-xmlserializer": "^4.0.0", + "webidl-conversions": "^7.0.0", + "whatwg-encoding": "^2.0.0", + "whatwg-mimetype": "^3.0.0", + "whatwg-url": "^11.0.0", + "ws": "^8.11.0", + "xml-name-validator": "^4.0.0" + }, + "dependencies": { + "escodegen": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-2.1.0.tgz", + "integrity": "sha512-2NlIDTwUWJN0mRPQOdtQBzbUHvdGY2P1VXSyU83Q3xKxM7WHX2Ql8dKq782Q9TgQUNOLEzEYu9bzLNj1q88I5w==", + "dev": true, + "requires": { + "esprima": "^4.0.1", + "estraverse": "^5.2.0", + "esutils": "^2.0.2", + "source-map": "~0.6.1" + } + } + } }, - "source-map-support": { - "version": "0.5.13", - "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.13.tgz", - "integrity": "sha512-SHSKFHadjVA5oR4PPqhtAVdcBWwRYVd6g6cAXnIbRiIwc2EhPrTuKUBdSLvlEKyIP3GCf89fltvcZiP9MMFA1w==", - "dev": true, - "requires": { - "buffer-from": "^1.0.0", - "source-map": "^0.6.0" - } + "jsesc": { + "version": "2.5.2", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", + "integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==", + "dev": true + }, + "json-parse-even-better-errors": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", + "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==", + "dev": true + }, + "json5": { + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", + "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", + "dev": true + }, + "jsonfile": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", + "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==", + "dev": true, + "requires": { + "graceful-fs": "^4.1.6", + "universalify": "^2.0.0" + } }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } - } - } - }, - "jest-runtime": { - "version": "29.6.1", - "resolved": "https://registry.npmjs.org/jest-runtime/-/jest-runtime-29.6.1.tgz", - "integrity": "sha512-D6/AYOA+Lhs5e5il8+5pSLemjtJezUr+8zx+Sn8xlmOux3XOqx4d8l/2udBea8CRPqqrzhsKUsN/gBDE/IcaPQ==", - "dev": true, - "requires": { - "@jest/environment": "^29.6.1", - "@jest/fake-timers": "^29.6.1", - "@jest/globals": "^29.6.1", - "@jest/source-map": "^29.6.0", - "@jest/test-result": "^29.6.1", - "@jest/transform": "^29.6.1", - "@jest/types": "^29.6.1", - "@types/node": "*", - "chalk": "^4.0.0", - "cjs-module-lexer": "^1.0.0", - "collect-v8-coverage": "^1.0.0", - "glob": "^7.1.3", - "graceful-fs": "^4.2.9", - "jest-haste-map": "^29.6.1", - "jest-message-util": "^29.6.1", - "jest-mock": "^29.6.1", - "jest-regex-util": "^29.4.3", - "jest-resolve": "^29.6.1", - "jest-snapshot": "^29.6.1", - "jest-util": "^29.6.1", - "slash": "^3.0.0", - "strip-bom": "^4.0.0" - }, - "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "requires": { - "color-convert": "^2.0.1" - } + "klaw": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/klaw/-/klaw-3.0.0.tgz", + "integrity": "sha512-0Fo5oir+O9jnXu5EefYbVK+mHMBeEVEy2cmctR1O1NECcCkPRreJKrS6Qt/j3KC2C148Dfo9i3pCmCMsdqGr0g==", + "dev": true, + "requires": { + "graceful-fs": "^4.1.9" + } }, - "chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } + "kleur": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/kleur/-/kleur-3.0.3.tgz", + "integrity": "sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==", + "dev": true + }, + "leven": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/leven/-/leven-3.1.0.tgz", + "integrity": "sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A==", + "dev": true + }, + "levn": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/levn/-/levn-0.3.0.tgz", + "integrity": "sha512-0OO4y2iOHix2W6ujICbKIaEQXvFQHue65vUG3pb5EUomzPI90z9hsA1VsO/dbIIpC53J8gxM9Q4Oho0jrCM/yA==", + "dev": true, + "requires": { + "prelude-ls": "~1.1.2", + "type-check": "~0.3.2" + } }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "requires": { - "color-name": "~1.1.4" - } + "lines-and-columns": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz", + "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==", + "dev": true + }, + "linkify-it": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/linkify-it/-/linkify-it-3.0.3.tgz", + "integrity": "sha512-ynTsyrFSdE5oZ/O9GEf00kPngmOfVwazR5GKDq6EYfhlpFug3J2zybX56a2PRRpc9P+FuSoGNAwjlbDs9jJBPQ==", + "dev": true, + "requires": { + "uc.micro": "^1.0.1" + } }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true + "locate-path": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "dev": true, + "requires": { + "p-locate": "^4.1.0" + } }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true + "lodash": { + "version": "4.17.21", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", + "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==", + "dev": true + }, + "lodash.debounce": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/lodash.debounce/-/lodash.debounce-4.0.8.tgz", + "integrity": "sha512-FT1yDzDYEoYWhnSGnpE/4Kj1fLZkDFyqRb7fNt6FdYOSxlUWAtp42Eh6Wb0rGIv/m9Bgo7x4GhQbm5Ys4SG5ow==", + "dev": true + }, + "lodash.memoize": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/lodash.memoize/-/lodash.memoize-4.1.2.tgz", + "integrity": "sha1-vMbEmkKihA7Zl/Mj6tpezRguC/4=", + "dev": true + }, + "long": { + "version": "5.2.3", + "resolved": "https://registry.npmjs.org/long/-/long-5.2.3.tgz", + "integrity": "sha512-lcHwpNoggQTObv5apGNCTdJrO69eHOZMi4BNC+rTLER8iHAqGrUVeLh/irVIM7zTw2bOXA8T6uNPeujwOLg/2Q==", + "dev": true }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } - } - } - }, - "jest-snapshot": { - "version": "29.6.1", - "resolved": "https://registry.npmjs.org/jest-snapshot/-/jest-snapshot-29.6.1.tgz", - "integrity": "sha512-G4UQE1QQ6OaCgfY+A0uR1W2AY0tGXUPQpoUClhWHq1Xdnx1H6JOrC2nH5lqnOEqaDgbHFgIwZ7bNq24HpB180A==", - "dev": true, - "requires": { - "@babel/core": "^7.11.6", - "@babel/generator": "^7.7.2", - "@babel/plugin-syntax-jsx": "^7.7.2", - "@babel/plugin-syntax-typescript": "^7.7.2", - "@babel/types": "^7.3.3", - "@jest/expect-utils": "^29.6.1", - "@jest/transform": "^29.6.1", - "@jest/types": "^29.6.1", - "@types/prettier": "^2.1.5", - "babel-preset-current-node-syntax": "^1.0.0", - "chalk": "^4.0.0", - "expect": "^29.6.1", - "graceful-fs": "^4.2.9", - "jest-diff": "^29.6.1", - "jest-get-type": "^29.4.3", - "jest-matcher-utils": "^29.6.1", - "jest-message-util": "^29.6.1", - "jest-util": "^29.6.1", - "natural-compare": "^1.4.0", - "pretty-format": "^29.6.1", - "semver": "^7.5.3" - }, - "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "requires": { - "color-convert": "^2.0.1" - } + "lru-cache": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", + "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", + "dev": true, + "requires": { + "yallist": "^3.0.2" + } }, - "chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } + "magic-string": { + "version": "0.25.9", + "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.25.9.tgz", + "integrity": "sha512-RmF0AsMzgt25qzqqLc1+MbHmhdx0ojF2Fvs4XnOqz2ZOBXzzkEwc/dJQZCYHAn7v1jbVOjAZfK8msRn4BxO4VQ==", + "dev": true, + "requires": { + "sourcemap-codec": "^1.4.8" + } }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "requires": { - "color-name": "~1.1.4" - } + "make-dir": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", + "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==", + "dev": true, + "requires": { + "semver": "^6.0.0" + } }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true + "make-error": { + "version": "1.3.6", + "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz", + "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==", + "dev": true + }, + "makeerror": { + "version": "1.0.12", + "resolved": "https://registry.npmjs.org/makeerror/-/makeerror-1.0.12.tgz", + "integrity": "sha512-JmqCvUhmt43madlpFzG4BQzG2Z3m6tvQDNKdClZnO3VbIudJYmxsT0FNJMeiB2+JTSlTQTSbU8QdesVmwJcmLg==", + "dev": true, + "requires": { + "tmpl": "1.0.5" + } }, - "diff-sequences": { - "version": "29.4.3", - "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-29.4.3.tgz", - "integrity": "sha512-ofrBgwpPhCD85kMKtE9RYFFq6OC1A89oW2vvgWZNCwxrUpRUILopY7lsYyMDSjc8g6U6aiO0Qubg6r4Wgt5ZnA==", - "dev": true + "markdown-it": { + "version": "12.3.2", + "resolved": "https://registry.npmjs.org/markdown-it/-/markdown-it-12.3.2.tgz", + "integrity": "sha512-TchMembfxfNVpHkbtriWltGWc+m3xszaRD0CZup7GFFhzIgQqxIfn3eGj1yZpfuflzPvfkt611B2Q/Bsk1YnGg==", + "dev": true, + "requires": { + "argparse": "^2.0.1", + "entities": "~2.1.0", + "linkify-it": "^3.0.1", + "mdurl": "^1.0.1", + "uc.micro": "^1.0.5" + }, + "dependencies": { + "argparse": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", + "dev": true + } + } }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true + "markdown-it-anchor": { + "version": "8.6.7", + "resolved": "https://registry.npmjs.org/markdown-it-anchor/-/markdown-it-anchor-8.6.7.tgz", + "integrity": "sha512-FlCHFwNnutLgVTflOYHPW2pPcl2AACqVzExlkGQNsi4CJgqOHN7YTgDd4LuhgN1BFO3TS0vLAruV1Td6dwWPJA==", + "dev": true, + "requires": {} + }, + "marked": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/marked/-/marked-4.3.0.tgz", + "integrity": "sha512-PRsaiG84bK+AMvxziE/lCFss8juXjNaWzVbN5tXAm4XjeaS9NAHhop+PjQxz2A9h8Q4M/xGmzP8vqNwy6JeK0A==", + "dev": true + }, + "math-intrinsics": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz", + "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==" + }, + "mdurl": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/mdurl/-/mdurl-1.0.1.tgz", + "integrity": "sha512-/sKlQJCBYVY9Ers9hqzKou4H6V5UWc/M59TH2dvkt+84itfnq7uFOMLpOiOS4ujvHP4etln18fmIxA5R5fll0g==", + "dev": true + }, + "merge-stream": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", + "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", + "dev": true + }, + "micromatch": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz", + "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==", + "dev": true, + "requires": { + "braces": "^3.0.3", + "picomatch": "^2.3.1" + } }, - "jest-diff": { - "version": "29.6.1", - "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-29.6.1.tgz", - "integrity": "sha512-FsNCvinvl8oVxpNLttNQX7FAq7vR+gMDGj90tiP7siWw1UdakWUGqrylpsYrpvj908IYckm5Y0Q7azNAozU1Kg==", - "dev": true, - "requires": { - "chalk": "^4.0.0", - "diff-sequences": "^29.4.3", - "jest-get-type": "^29.4.3", - "pretty-format": "^29.6.1" - } + "mime-db": { + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==" + }, + "mime-types": { + "version": "2.1.35", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "requires": { + "mime-db": "1.52.0" + } }, - "jest-get-type": { - "version": "29.4.3", - "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.4.3.tgz", - "integrity": "sha512-J5Xez4nRRMjk8emnTpWrlkyb9pfRQQanDrvWHhsR1+VUfbwxi30eVcZFlcdGInRibU4G5LwHXpI7IRHU0CY+gg==", - "dev": true + "mimic-fn": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", + "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", + "dev": true }, - "lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dev": true, - "requires": { - "yallist": "^4.0.0" - } + "minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "requires": { + "brace-expansion": "^1.1.7" + } + }, + "minimist": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", + "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==", + "dev": true + }, + "mkdirp": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", + "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==", + "dev": true + }, + "ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", + "dev": true + }, + "natural-compare": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", + "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", + "dev": true + }, + "node-int64": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/node-int64/-/node-int64-0.4.0.tgz", + "integrity": "sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw==", + "dev": true + }, + "node-releases": { + "version": "2.0.13", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.13.tgz", + "integrity": "sha512-uYr7J37ae/ORWdZeQ1xxMJe3NtdmqMC/JZK+geofDrkLUApKRHPd18/TxtBOJ4A0/+uUIliorNrfYV6s1b02eQ==", + "dev": true + }, + "node-rsa": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/node-rsa/-/node-rsa-1.1.1.tgz", + "integrity": "sha512-Jd4cvbJMryN21r5HgxQOpMEqv+ooke/korixNNK3mGqfGJmy0M77WDDzo/05969+OkMy3XW1UuZsSmW9KQm7Fw==", + "requires": { + "asn1": "^0.2.4" + } + }, + "normalize-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", + "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", + "dev": true + }, + "npm-run-path": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz", + "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==", + "dev": true, + "requires": { + "path-key": "^3.0.0" + } + }, + "nwsapi": { + "version": "2.2.7", + "resolved": "https://registry.npmjs.org/nwsapi/-/nwsapi-2.2.7.tgz", + "integrity": "sha512-ub5E4+FBPKwAZx0UwIQOjYWGHTEq5sPqHQNRN8Z9e4A7u3Tj1weLJsL59yH9vmvqEtBHaOmT6cYQKIZOxp35FQ==", + "dev": true + }, + "once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", + "dev": true, + "requires": { + "wrappy": "1" + } + }, + "onetime": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", + "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", + "dev": true, + "requires": { + "mimic-fn": "^2.1.0" + } + }, + "optionator": { + "version": "0.8.3", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.8.3.tgz", + "integrity": "sha512-+IW9pACdk3XWmmTXG8m3upGUJst5XRGzxMRjXzAuJ1XnIFNvfhjjIuYkDvysnPQ7qzqVzLt78BCruntqRhWQbA==", + "dev": true, + "requires": { + "deep-is": "~0.1.3", + "fast-levenshtein": "~2.0.6", + "levn": "~0.3.0", + "prelude-ls": "~1.1.2", + "type-check": "~0.3.2", + "word-wrap": "~1.2.3" + } + }, + "p-limit": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", + "dev": true, + "requires": { + "yocto-queue": "^0.1.0" + } + }, + "p-locate": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "dev": true, + "requires": { + "p-limit": "^2.2.0" + }, + "dependencies": { + "p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "dev": true, + "requires": { + "p-try": "^2.0.0" + } + } + } + }, + "p-try": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", + "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", + "dev": true + }, + "parse-json": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz", + "integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==", + "dev": true, + "requires": { + "@babel/code-frame": "^7.0.0", + "error-ex": "^1.3.1", + "json-parse-even-better-errors": "^2.3.0", + "lines-and-columns": "^1.1.6" + } + }, + "parse5": { + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/parse5/-/parse5-7.1.2.tgz", + "integrity": "sha512-Czj1WaSVpaoj0wbhMzLmWD69anp2WH7FXMB9n1Sy8/ZFF9jolSQVMu1Ij5WIyGmcBmhk7EOndpO4mIpihVqAXw==", + "dev": true, + "requires": { + "entities": "^4.4.0" + }, + "dependencies": { + "entities": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/entities/-/entities-4.5.0.tgz", + "integrity": "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==", + "dev": true + } + } + }, + "path-exists": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", + "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", + "dev": true + }, + "path-is-absolute": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", + "dev": true + }, + "path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "dev": true + }, + "path-parse": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", + "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", + "dev": true + }, + "picocolors": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", + "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", + "dev": true + }, + "picomatch": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", + "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", + "dev": true + }, + "pirates": { + "version": "4.0.6", + "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.6.tgz", + "integrity": "sha512-saLsH7WeYYPiD25LDuLRRY/i+6HaPYr6G1OUlN39otzkSTxKnubR9RTxS3/Kk50s1g2JTgFwWQDQyplC5/SHZg==", + "dev": true + }, + "pkg-dir": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz", + "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==", + "dev": true, + "requires": { + "find-up": "^4.0.0" + } + }, + "prelude-ls": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.1.2.tgz", + "integrity": "sha512-ESF23V4SKG6lVSGZgYNpbsiaAkdab6ZgOxe52p7+Kid3W3u3bxR4Vfd/o21dmN7jSt0IwgZ4v5MUd26FEtXE9w==", + "dev": true }, "pretty-format": { - "version": "29.6.1", - "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.6.1.tgz", - "integrity": "sha512-7jRj+yXO0W7e4/tSJKoR7HRIHLPPjtNaUGG2xxKQnGvPNRkgWcQ0AZX6P4KBRJN4FcTBWb3sa7DVUJmocYuoog==", - "dev": true, - "requires": { - "@jest/schemas": "^29.6.0", - "ansi-styles": "^5.0.0", - "react-is": "^18.0.0" - }, - "dependencies": { - "ansi-styles": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", - "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", - "dev": true - } - } + "version": "24.9.0", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-24.9.0.tgz", + "integrity": "sha512-00ZMZUiHaJrNfk33guavqgvfJS30sLYf0f8+Srklv0AMPodGGHcoHgksZ3OThYnIvOd+8yMCn0YiEOogjlgsnA==", + "dev": true, + "requires": { + "@jest/types": "^24.9.0", + "ansi-regex": "^4.0.0", + "ansi-styles": "^3.2.0", + "react-is": "^16.8.4" + }, + "dependencies": { + "@jest/types": { + "version": "24.9.0", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-24.9.0.tgz", + "integrity": "sha512-XKK7ze1apu5JWQ5eZjHITP66AX+QsLlbaJRBGYr8pNzwcAE2JVkwnf0yqjHTsDRcjR0mujy/NmZMXw5kl+kGBw==", + "dev": true, + "requires": { + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^1.1.1", + "@types/yargs": "^13.0.0" + } + }, + "@types/istanbul-reports": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-1.1.2.tgz", + "integrity": "sha512-P/W9yOX/3oPZSpaYOCQzGqgCQRXn0FFO/V8bWrCQs+wLmvVVxk6CRBXALEvNs9OHIatlnlFokfhuDo2ug01ciw==", + "dev": true, + "requires": { + "@types/istanbul-lib-coverage": "*", + "@types/istanbul-lib-report": "*" + } + }, + "@types/yargs": { + "version": "13.0.12", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-13.0.12.tgz", + "integrity": "sha512-qCxJE1qgz2y0hA4pIxjBR+PelCH0U5CK1XJXFwCNqfmliatKp47UCXXE9Dyk1OXBDLvsCF57TqQEJaeLfDYEOQ==", + "dev": true, + "requires": { + "@types/yargs-parser": "*" + } + } + } + }, + "prompts": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/prompts/-/prompts-2.4.2.tgz", + "integrity": "sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q==", + "dev": true, + "requires": { + "kleur": "^3.0.3", + "sisteransi": "^1.0.5" + } + }, + "protobufjs": { + "version": "7.2.6", + "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-7.2.6.tgz", + "integrity": "sha512-dgJaEDDL6x8ASUZ1YqWciTRrdOuYNzoOf27oHNfdyvKqHr5i0FV7FSLU+aIeFjyFgVxrpTOtQUi0BLLBymZaBw==", + "dev": true, + "requires": { + "@protobufjs/aspromise": "^1.1.2", + "@protobufjs/base64": "^1.1.2", + "@protobufjs/codegen": "^2.0.4", + "@protobufjs/eventemitter": "^1.1.0", + "@protobufjs/fetch": "^1.1.0", + "@protobufjs/float": "^1.0.2", + "@protobufjs/inquire": "^1.1.0", + "@protobufjs/path": "^1.1.2", + "@protobufjs/pool": "^1.1.0", + "@protobufjs/utf8": "^1.1.0", + "@types/node": ">=13.7.0", + "long": "^5.0.0" + } + }, + "protobufjs-cli": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/protobufjs-cli/-/protobufjs-cli-1.1.1.tgz", + "integrity": "sha512-VPWMgIcRNyQwWUv8OLPyGQ/0lQY/QTQAVN5fh+XzfDwsVw1FZ2L3DM/bcBf8WPiRz2tNpaov9lPZfNcmNo6LXA==", + "dev": true, + "requires": { + "chalk": "^4.0.0", + "escodegen": "^1.13.0", + "espree": "^9.0.0", + "estraverse": "^5.1.0", + "glob": "^8.0.0", + "jsdoc": "^4.0.0", + "minimist": "^1.2.0", + "semver": "^7.1.2", + "tmp": "^0.2.1", + "uglify-js": "^3.7.7" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "requires": { + "color-convert": "^2.0.1" + } + }, + "brace-expansion": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz", + "integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==", + "dev": true, + "requires": { + "balanced-match": "^1.0.0" + } + }, + "chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "requires": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + } + }, + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + }, + "glob": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/glob/-/glob-8.1.0.tgz", + "integrity": "sha512-r8hpEjiQEYlF2QU0df3dS+nxxSIreXQS1qRhMJM0Q5NDdR386C7jb7Hwwod8Fgiuex+k0GFjgft18yvxm5XoCQ==", + "dev": true, + "requires": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^5.0.1", + "once": "^1.3.0" + } + }, + "has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true + }, + "lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dev": true, + "requires": { + "yallist": "^4.0.0" + } + }, + "minimatch": { + "version": "5.1.6", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.6.tgz", + "integrity": "sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==", + "dev": true, + "requires": { + "brace-expansion": "^2.0.1" + } + }, + "semver": { + "version": "7.5.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", + "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", + "dev": true, + "requires": { + "lru-cache": "^6.0.0" + } + }, + "supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "requires": { + "has-flag": "^4.0.0" + } + }, + "yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true + } + } + }, + "psl": { + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/psl/-/psl-1.9.0.tgz", + "integrity": "sha512-E/ZsdU4HLs/68gYzgGTkMicWTLPdAftJLfJFlLUAAKZGkStNU72sZjT66SnMDVOfOWY/YAoiD7Jxa9iHvngcag==", + "dev": true + }, + "punycode": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", + "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", + "dev": true + }, + "pure-rand": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/pure-rand/-/pure-rand-6.0.2.tgz", + "integrity": "sha512-6Yg0ekpKICSjPswYOuC5sku/TSWaRYlA0qsXqJgM/d/4pLPHPuTxK7Nbf7jFKzAeedUhR8C7K9Uv63FBsSo8xQ==", + "dev": true + }, + "querystringify": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/querystringify/-/querystringify-2.2.0.tgz", + "integrity": "sha512-FIqgj2EUvTa7R50u0rGsyTftzjYmv/a3hO345bZNrqabNqjtgiDMgmo4mkUjd+nzU5oF3dClKqFIPUKybUyqoQ==", + "dev": true }, "react-is": { - "version": "18.2.0", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", - "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", - "dev": true + "version": "16.13.1", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz", + "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==", + "dev": true + }, + "regenerate": { + "version": "1.4.2", + "resolved": "https://registry.npmjs.org/regenerate/-/regenerate-1.4.2.tgz", + "integrity": "sha512-zrceR/XhGYU/d/opr2EKO7aRHUeiBI8qjtfHqADTwZd6Szfy16la6kqD0MIUs5z5hx6AaKa+PixpPrR289+I0A==", + "dev": true + }, + "regenerate-unicode-properties": { + "version": "10.1.1", + "resolved": "https://registry.npmjs.org/regenerate-unicode-properties/-/regenerate-unicode-properties-10.1.1.tgz", + "integrity": "sha512-X007RyZLsCJVVrjgEFVpLUTZwyOZk3oiL75ZcuYjlIWd6rNJtOjkBwQc5AsRrpbKVkxN6sklw/k/9m2jJYOf8Q==", + "dev": true, + "requires": { + "regenerate": "^1.4.2" + } }, - "semver": { - "version": "7.5.4", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", - "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", - "dev": true, - "requires": { - "lru-cache": "^6.0.0" - } + "regenerator-transform": { + "version": "0.15.2", + "resolved": "https://registry.npmjs.org/regenerator-transform/-/regenerator-transform-0.15.2.tgz", + "integrity": "sha512-hfMp2BoF0qOk3uc5V20ALGDS2ddjQaLrdl7xrGXvAIow7qeWRM2VA2HuCHkUKk9slq3VwEwLNK3DFBqDfPGYtg==", + "dev": true, + "requires": { + "@babel/runtime": "^7.8.4" + } }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } + "regexpu-core": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/regexpu-core/-/regexpu-core-5.3.2.tgz", + "integrity": "sha512-RAM5FlZz+Lhmo7db9L298p2vHP5ZywrVXmVXpmAD9GuL5MPH6t9ROw1iA/wfHkQ76Qe7AaPF0nGuim96/IrQMQ==", + "dev": true, + "requires": { + "@babel/regjsgen": "^0.8.0", + "regenerate": "^1.4.2", + "regenerate-unicode-properties": "^10.1.0", + "regjsparser": "^0.9.1", + "unicode-match-property-ecmascript": "^2.0.0", + "unicode-match-property-value-ecmascript": "^2.1.0" + } }, - "yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true - } - } - }, - "jest-util": { - "version": "29.7.0", - "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-29.7.0.tgz", - "integrity": "sha512-z6EbKajIpqGKU56y5KBUgy1dt1ihhQJgWzUlZHArA/+X2ad7Cb5iF+AK1EWVL/Bo7Rz9uurpqw6SiBCefUbCGA==", - "dev": true, - "requires": { - "@jest/types": "^29.6.3", - "@types/node": "*", - "chalk": "^4.0.0", - "ci-info": "^3.2.0", - "graceful-fs": "^4.2.9", - "picomatch": "^2.2.3" - }, - "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "requires": { - "color-convert": "^2.0.1" - } + "regjsparser": { + "version": "0.9.1", + "resolved": "https://registry.npmjs.org/regjsparser/-/regjsparser-0.9.1.tgz", + "integrity": "sha512-dQUtn90WanSNl+7mQKcXAgZxvUe7Z0SqXlgzv0za4LwiUhyzBC58yQO3liFoUgu8GiJVInAhJjkj1N0EtQ5nkQ==", + "dev": true, + "requires": { + "jsesc": "~0.5.0" + }, + "dependencies": { + "jsesc": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-0.5.0.tgz", + "integrity": "sha512-uZz5UnB7u4T9LvwmFqXii7pZSouaRPorGs5who1Ip7VO0wxanFvBL7GkM6dTHlgX+jhBApRetaWpnDabOeTcnA==", + "dev": true + } + } }, - "chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } + "require-directory": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", + "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", + "dev": true + }, + "requires-port": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/requires-port/-/requires-port-1.0.0.tgz", + "integrity": "sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ==", + "dev": true + }, + "requizzle": { + "version": "0.2.4", + "resolved": "https://registry.npmjs.org/requizzle/-/requizzle-0.2.4.tgz", + "integrity": "sha512-JRrFk1D4OQ4SqovXOgdav+K8EAhSB/LJZqCz8tbX0KObcdeM15Ss59ozWMBWmmINMagCwmqn4ZNryUGpBsl6Jw==", + "dev": true, + "requires": { + "lodash": "^4.17.21" + } }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "requires": { - "color-name": "~1.1.4" - } + "resolve": { + "version": "1.22.2", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.2.tgz", + "integrity": "sha512-Sb+mjNHOULsBv818T40qSPeRiuWLyaGMa5ewydRLFimneixmVy2zdivRl+AF6jaYPC8ERxGDmFSiqui6SfPd+g==", + "dev": true, + "requires": { + "is-core-module": "^2.11.0", + "path-parse": "^1.0.7", + "supports-preserve-symlinks-flag": "^1.0.0" + } }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true + "resolve-cwd": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/resolve-cwd/-/resolve-cwd-3.0.0.tgz", + "integrity": "sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg==", + "dev": true, + "requires": { + "resolve-from": "^5.0.0" + } }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true + "resolve-from": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", + "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", + "dev": true + }, + "resolve.exports": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/resolve.exports/-/resolve.exports-2.0.2.tgz", + "integrity": "sha512-X2UW6Nw3n/aMgDVy+0rSqgHlv39WZAlZrXCdnbyEiKm17DSqHX4MmQMaST3FbeWR5FTuRcUwYAziZajji0Y7mg==", + "dev": true + }, + "rollup": { + "version": "2.79.2", + "resolved": "https://registry.npmjs.org/rollup/-/rollup-2.79.2.tgz", + "integrity": "sha512-fS6iqSPZDs3dr/y7Od6y5nha8dW1YnbgtsyotCVvoFGKbERG++CVRFv1meyGDE1SNItQA8BrnCw7ScdAhRJ3XQ==", + "dev": true, + "requires": { + "fsevents": "~2.3.2" + } }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } - } - } - }, - "jest-validate": { - "version": "29.6.1", - "resolved": "https://registry.npmjs.org/jest-validate/-/jest-validate-29.6.1.tgz", - "integrity": "sha512-r3Ds69/0KCN4vx4sYAbGL1EVpZ7MSS0vLmd3gV78O+NAx3PDQQukRU5hNHPXlyqCgFY8XUk7EuTMLugh0KzahA==", - "dev": true, - "requires": { - "@jest/types": "^29.6.1", - "camelcase": "^6.2.0", - "chalk": "^4.0.0", - "jest-get-type": "^29.4.3", - "leven": "^3.1.0", - "pretty-format": "^29.6.1" - }, - "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "requires": { - "color-convert": "^2.0.1" - } + "rollup-plugin-typescript2": { + "version": "0.32.1", + "resolved": "https://registry.npmjs.org/rollup-plugin-typescript2/-/rollup-plugin-typescript2-0.32.1.tgz", + "integrity": "sha512-RanO8bp1WbeMv0bVlgcbsFNCn+Y3rX7wF97SQLDxf0fMLsg0B/QFF005t4AsGUcDgF3aKJHoqt4JF2xVaABeKw==", + "dev": true, + "requires": { + "@rollup/pluginutils": "^4.1.2", + "find-cache-dir": "^3.3.2", + "fs-extra": "^10.0.0", + "resolve": "^1.20.0", + "tslib": "^2.4.0" + }, + "dependencies": { + "@rollup/pluginutils": { + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/@rollup/pluginutils/-/pluginutils-4.2.1.tgz", + "integrity": "sha512-iKnFXr7NkdZAIHiIWE+BX5ULi/ucVFYWD6TbAV+rZctiRTY2PL6tsIKhoIOaoskiWAkgu+VsbXgUVDNLHf+InQ==", + "dev": true, + "requires": { + "estree-walker": "^2.0.1", + "picomatch": "^2.2.2" + } + }, + "estree-walker": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-2.0.2.tgz", + "integrity": "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==", + "dev": true + } + } + }, + "safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" + }, + "safer-buffer": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", + "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" + }, + "saxes": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/saxes/-/saxes-6.0.0.tgz", + "integrity": "sha512-xAg7SOnEhrm5zI3puOOKyy1OMcMlIJZYNJY7xLBwSze0UjhPLnWfj2GF2EpT0jmzaJKIWKHLsaSSajf35bcYnA==", + "dev": true, + "requires": { + "xmlchars": "^2.2.0" + } + }, + "semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true + }, + "shebang-command": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "dev": true, + "requires": { + "shebang-regex": "^3.0.0" + } }, - "camelcase": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", - "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==", - "dev": true + "shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "dev": true + }, + "signal-exit": { + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", + "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", + "dev": true + }, + "sisteransi": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/sisteransi/-/sisteransi-1.0.5.tgz", + "integrity": "sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==", + "dev": true + }, + "slash": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", + "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", + "dev": true + }, + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true }, - "chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } + "source-map-support": { + "version": "0.5.21", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", + "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", + "dev": true, + "requires": { + "buffer-from": "^1.0.0", + "source-map": "^0.6.0" + } }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "requires": { - "color-name": "~1.1.4" - } + "sourcemap-codec": { + "version": "1.4.8", + "resolved": "https://registry.npmjs.org/sourcemap-codec/-/sourcemap-codec-1.4.8.tgz", + "integrity": "sha512-9NykojV5Uih4lgo5So5dtw+f0JgJX30KCNI8gwhz2J9A15wD0Ml6tjHKwf6fTSa6fAdVBdZeNOs9eJ71qCk8vA==", + "dev": true + }, + "sprintf-js": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", + "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==", + "dev": true + }, + "stack-utils": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/stack-utils/-/stack-utils-2.0.6.tgz", + "integrity": "sha512-XlkWvfIm6RmsWtNJx+uqtKLS8eqFbxUg0ZzLXqY0caEy9l7hruX8IpiDnjsLavoBgqCCR71TqWO8MaXYheJ3RQ==", + "dev": true, + "requires": { + "escape-string-regexp": "^2.0.0" + }, + "dependencies": { + "escape-string-regexp": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz", + "integrity": "sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==", + "dev": true + } + } }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true + "string-length": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/string-length/-/string-length-4.0.2.tgz", + "integrity": "sha512-+l6rNN5fYHNhZZy41RXsYptCjA2Igmq4EG7kZAYFQI1E1VTXarr6ZPXBg6eq7Y6eK4FEhY6AJlyuFIb/v/S0VQ==", + "dev": true, + "requires": { + "char-regex": "^1.0.2", + "strip-ansi": "^6.0.0" + } }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true + "string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dev": true, + "requires": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + } }, - "jest-get-type": { - "version": "29.4.3", - "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.4.3.tgz", - "integrity": "sha512-J5Xez4nRRMjk8emnTpWrlkyb9pfRQQanDrvWHhsR1+VUfbwxi30eVcZFlcdGInRibU4G5LwHXpI7IRHU0CY+gg==", - "dev": true + "strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dev": true, + "requires": { + "ansi-regex": "^5.0.1" + }, + "dependencies": { + "ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "dev": true + } + } }, - "pretty-format": { - "version": "29.6.1", - "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.6.1.tgz", - "integrity": "sha512-7jRj+yXO0W7e4/tSJKoR7HRIHLPPjtNaUGG2xxKQnGvPNRkgWcQ0AZX6P4KBRJN4FcTBWb3sa7DVUJmocYuoog==", - "dev": true, - "requires": { - "@jest/schemas": "^29.6.0", - "ansi-styles": "^5.0.0", - "react-is": "^18.0.0" - }, - "dependencies": { - "ansi-styles": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", - "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", - "dev": true - } - } + "strip-bom": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-4.0.0.tgz", + "integrity": "sha512-3xurFv5tEgii33Zi8Jtp55wEIILR9eh34FAW00PZf+JnSsTmV/ioewSgQl97JHvgjoRGwPShsWm+IdrxB35d0w==", + "dev": true }, - "react-is": { - "version": "18.2.0", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz", - "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w==", - "dev": true + "strip-final-newline": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz", + "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==", + "dev": true + }, + "strip-json-comments": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", + "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", + "dev": true }, "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } - } - } - }, - "jest-watcher": { - "version": "29.6.1", - "resolved": "https://registry.npmjs.org/jest-watcher/-/jest-watcher-29.6.1.tgz", - "integrity": "sha512-d4wpjWTS7HEZPaaj8m36QiaP856JthRZkrgcIY/7ISoUWPIillrXM23WPboZVLbiwZBt4/qn2Jke84Sla6JhFA==", - "dev": true, - "requires": { - "@jest/test-result": "^29.6.1", - "@jest/types": "^29.6.1", - "@types/node": "*", - "ansi-escapes": "^4.2.1", - "chalk": "^4.0.0", - "emittery": "^0.13.1", - "jest-util": "^29.6.1", - "string-length": "^4.0.1" - }, - "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "requires": { - "color-convert": "^2.0.1" - } + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dev": true, + "requires": { + "has-flag": "^3.0.0" + } }, - "chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } + "supports-preserve-symlinks-flag": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", + "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", + "dev": true + }, + "symbol-tree": { + "version": "3.2.4", + "resolved": "https://registry.npmjs.org/symbol-tree/-/symbol-tree-3.2.4.tgz", + "integrity": "sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw==", + "dev": true + }, + "test-exclude": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/test-exclude/-/test-exclude-6.0.0.tgz", + "integrity": "sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w==", + "dev": true, + "requires": { + "@istanbuljs/schema": "^0.1.2", + "glob": "^7.1.4", + "minimatch": "^3.0.4" + } }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "requires": { - "color-name": "~1.1.4" - } + "tmp": { + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.2.5.tgz", + "integrity": "sha512-voyz6MApa1rQGUxT3E+BK7/ROe8itEx7vD8/HEvt4xwXucvQ5G5oeEiHkmHZJuBO21RpOf+YYm9MOivj709jow==", + "dev": true + }, + "tmpl": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/tmpl/-/tmpl-1.0.5.tgz", + "integrity": "sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw==", + "dev": true + }, + "to-regex-range": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", + "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", + "dev": true, + "requires": { + "is-number": "^7.0.0" + } }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true + "tough-cookie": { + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-4.1.3.tgz", + "integrity": "sha512-aX/y5pVRkfRnfmuX+OdbSdXvPe6ieKX/G2s7e98f4poJHnqH3281gDPm/metm6E/WRamfx7WC4HUqkWHfQHprw==", + "dev": true, + "requires": { + "psl": "^1.1.33", + "punycode": "^2.1.1", + "universalify": "^0.2.0", + "url-parse": "^1.5.3" + }, + "dependencies": { + "universalify": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.2.0.tgz", + "integrity": "sha512-CJ1QgKmNg3CwvAv/kOFmtnEN05f0D/cn9QntgNOQlQF9dgvVTHj3t+8JPdjqawCHk7V/KA+fbUqzZ9XWhcqPUg==", + "dev": true + } + } }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true + "tr46": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-3.0.0.tgz", + "integrity": "sha512-l7FvfAHlcmulp8kr+flpQZmVwtu7nfRV7NZujtN0OqES8EL4O4e0qqzL0DC5gAvx/ZC/9lk6rhcUwYvkBnBnYA==", + "dev": true, + "requires": { + "punycode": "^2.1.1" + } }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } - } - } - }, - "jest-worker": { - "version": "29.6.1", - "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-29.6.1.tgz", - "integrity": "sha512-U+Wrbca7S8ZAxAe9L6nb6g8kPdia5hj32Puu5iOqBCMTMWFHXuK6dOV2IFrpedbTV8fjMFLdWNttQTBL6u2MRA==", - "dev": true, - "requires": { - "@types/node": "*", - "jest-util": "^29.6.1", - "merge-stream": "^2.0.0", - "supports-color": "^8.0.0" - }, - "dependencies": { - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true + "ts-jest": { + "version": "29.1.1", + "resolved": "https://registry.npmjs.org/ts-jest/-/ts-jest-29.1.1.tgz", + "integrity": "sha512-D6xjnnbP17cC85nliwGiL+tpoKN0StpgE0TeOjXQTU6MVCfsB4v7aW05CgQ/1OywGb0x/oy9hHFnN+sczTiRaA==", + "dev": true, + "requires": { + "bs-logger": "0.x", + "fast-json-stable-stringify": "2.x", + "jest-util": "^29.0.0", + "json5": "^2.2.3", + "lodash.memoize": "4.x", + "make-error": "1.x", + "semver": "^7.5.3", + "yargs-parser": "^21.0.1" + }, + "dependencies": { + "lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dev": true, + "requires": { + "yallist": "^4.0.0" + } + }, + "semver": { + "version": "7.5.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", + "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", + "dev": true, + "requires": { + "lru-cache": "^6.0.0" + } + }, + "yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "dev": true + } + } }, - "supports-color": { - "version": "8.1.1", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", - "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } - } - } - }, - "js-tokens": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", - "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", - "dev": true - }, - "js-yaml": { - "version": "3.14.2", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.2.tgz", - "integrity": "sha512-PMSmkqxr106Xa156c2M265Z+FTrPl+oxd/rgOQy2tijQeK5TxQ43psO1ZCwhVOSdnn+RzkzlRz/eY4BgJBYVpg==", - "dev": true, - "requires": { - "argparse": "^1.0.7", - "esprima": "^4.0.0" - } - }, - "js2xmlparser": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/js2xmlparser/-/js2xmlparser-4.0.2.tgz", - "integrity": "sha512-6n4D8gLlLf1n5mNLQPRfViYzu9RATblzPEtm1SthMX1Pjao0r9YI9nw7ZIfRxQMERS87mcswrg+r/OYrPRX6jA==", - "dev": true, - "requires": { - "xmlcreate": "^2.0.4" - } - }, - "jsdoc": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/jsdoc/-/jsdoc-4.0.2.tgz", - "integrity": "sha512-e8cIg2z62InH7azBBi3EsSEqrKx+nUtAS5bBcYTSpZFA+vhNPyhv8PTFZ0WsjOPDj04/dOLlm08EDcQJDqaGQg==", - "dev": true, - "requires": { - "@babel/parser": "^7.20.15", - "@jsdoc/salty": "^0.2.1", - "@types/markdown-it": "^12.2.3", - "bluebird": "^3.7.2", - "catharsis": "^0.9.0", - "escape-string-regexp": "^2.0.0", - "js2xmlparser": "^4.0.2", - "klaw": "^3.0.0", - "markdown-it": "^12.3.2", - "markdown-it-anchor": "^8.4.1", - "marked": "^4.0.10", - "mkdirp": "^1.0.4", - "requizzle": "^0.2.3", - "strip-json-comments": "^3.1.0", - "underscore": "~1.13.2" - }, - "dependencies": { - "escape-string-regexp": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz", - "integrity": "sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==", - "dev": true - } - } - }, - "jsdom": { - "version": "20.0.3", - "resolved": "https://registry.npmjs.org/jsdom/-/jsdom-20.0.3.tgz", - "integrity": "sha512-SYhBvTh89tTfCD/CRdSOm13mOBa42iTaTyfyEWBdKcGdPxPtLFBXuHR8XHb33YNYaP+lLbmSvBTsnoesCNJEsQ==", - "dev": true, - "requires": { - "abab": "^2.0.6", - "acorn": "^8.8.1", - "acorn-globals": "^7.0.0", - "cssom": "^0.5.0", - "cssstyle": "^2.3.0", - "data-urls": "^3.0.2", - "decimal.js": "^10.4.2", - "domexception": "^4.0.0", - "escodegen": "^2.0.0", - "form-data": "^4.0.0", - "html-encoding-sniffer": "^3.0.0", - "http-proxy-agent": "^5.0.0", - "https-proxy-agent": "^5.0.1", - "is-potential-custom-element-name": "^1.0.1", - "nwsapi": "^2.2.2", - "parse5": "^7.1.1", - "saxes": "^6.0.0", - "symbol-tree": "^3.2.4", - "tough-cookie": "^4.1.2", - "w3c-xmlserializer": "^4.0.0", - "webidl-conversions": "^7.0.0", - "whatwg-encoding": "^2.0.0", - "whatwg-mimetype": "^3.0.0", - "whatwg-url": "^11.0.0", - "ws": "^8.11.0", - "xml-name-validator": "^4.0.0" - }, - "dependencies": { - "escodegen": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-2.1.0.tgz", - "integrity": "sha512-2NlIDTwUWJN0mRPQOdtQBzbUHvdGY2P1VXSyU83Q3xKxM7WHX2Ql8dKq782Q9TgQUNOLEzEYu9bzLNj1q88I5w==", - "dev": true, - "requires": { - "esprima": "^4.0.1", - "estraverse": "^5.2.0", - "esutils": "^2.0.2", - "source-map": "~0.6.1" - } - } - } - }, - "jsesc": { - "version": "2.5.2", - "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", - "integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==", - "dev": true - }, - "json-parse-even-better-errors": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", - "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==", - "dev": true - }, - "json5": { - "version": "2.2.3", - "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", - "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", - "dev": true - }, - "jsonfile": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", - "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==", - "dev": true, - "requires": { - "graceful-fs": "^4.1.6", - "universalify": "^2.0.0" - } - }, - "klaw": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/klaw/-/klaw-3.0.0.tgz", - "integrity": "sha512-0Fo5oir+O9jnXu5EefYbVK+mHMBeEVEy2cmctR1O1NECcCkPRreJKrS6Qt/j3KC2C148Dfo9i3pCmCMsdqGr0g==", - "dev": true, - "requires": { - "graceful-fs": "^4.1.9" - } - }, - "kleur": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/kleur/-/kleur-3.0.3.tgz", - "integrity": "sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==", - "dev": true - }, - "leven": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/leven/-/leven-3.1.0.tgz", - "integrity": "sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A==", - "dev": true - }, - "levn": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/levn/-/levn-0.3.0.tgz", - "integrity": "sha512-0OO4y2iOHix2W6ujICbKIaEQXvFQHue65vUG3pb5EUomzPI90z9hsA1VsO/dbIIpC53J8gxM9Q4Oho0jrCM/yA==", - "dev": true, - "requires": { - "prelude-ls": "~1.1.2", - "type-check": "~0.3.2" - } - }, - "lines-and-columns": { - "version": "1.2.4", - "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz", - "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==", - "dev": true - }, - "linkify-it": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/linkify-it/-/linkify-it-3.0.3.tgz", - "integrity": "sha512-ynTsyrFSdE5oZ/O9GEf00kPngmOfVwazR5GKDq6EYfhlpFug3J2zybX56a2PRRpc9P+FuSoGNAwjlbDs9jJBPQ==", - "dev": true, - "requires": { - "uc.micro": "^1.0.1" - } - }, - "locate-path": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", - "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", - "dev": true, - "requires": { - "p-locate": "^4.1.0" - } - }, - "lodash": { - "version": "4.17.21", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", - "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==", - "dev": true - }, - "lodash.debounce": { - "version": "4.0.8", - "resolved": "https://registry.npmjs.org/lodash.debounce/-/lodash.debounce-4.0.8.tgz", - "integrity": "sha512-FT1yDzDYEoYWhnSGnpE/4Kj1fLZkDFyqRb7fNt6FdYOSxlUWAtp42Eh6Wb0rGIv/m9Bgo7x4GhQbm5Ys4SG5ow==", - "dev": true - }, - "lodash.memoize": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/lodash.memoize/-/lodash.memoize-4.1.2.tgz", - "integrity": "sha1-vMbEmkKihA7Zl/Mj6tpezRguC/4=", - "dev": true - }, - "long": { - "version": "5.2.3", - "resolved": "https://registry.npmjs.org/long/-/long-5.2.3.tgz", - "integrity": "sha512-lcHwpNoggQTObv5apGNCTdJrO69eHOZMi4BNC+rTLER8iHAqGrUVeLh/irVIM7zTw2bOXA8T6uNPeujwOLg/2Q==", - "dev": true - }, - "lru-cache": { - "version": "5.1.1", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", - "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", - "dev": true, - "requires": { - "yallist": "^3.0.2" - } - }, - "magic-string": { - "version": "0.25.9", - "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.25.9.tgz", - "integrity": "sha512-RmF0AsMzgt25qzqqLc1+MbHmhdx0ojF2Fvs4XnOqz2ZOBXzzkEwc/dJQZCYHAn7v1jbVOjAZfK8msRn4BxO4VQ==", - "dev": true, - "requires": { - "sourcemap-codec": "^1.4.8" - } - }, - "make-dir": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", - "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==", - "dev": true, - "requires": { - "semver": "^6.0.0" - } - }, - "make-error": { - "version": "1.3.6", - "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz", - "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==", - "dev": true - }, - "makeerror": { - "version": "1.0.12", - "resolved": "https://registry.npmjs.org/makeerror/-/makeerror-1.0.12.tgz", - "integrity": "sha512-JmqCvUhmt43madlpFzG4BQzG2Z3m6tvQDNKdClZnO3VbIudJYmxsT0FNJMeiB2+JTSlTQTSbU8QdesVmwJcmLg==", - "dev": true, - "requires": { - "tmpl": "1.0.5" - } - }, - "markdown-it": { - "version": "12.3.2", - "resolved": "https://registry.npmjs.org/markdown-it/-/markdown-it-12.3.2.tgz", - "integrity": "sha512-TchMembfxfNVpHkbtriWltGWc+m3xszaRD0CZup7GFFhzIgQqxIfn3eGj1yZpfuflzPvfkt611B2Q/Bsk1YnGg==", - "dev": true, - "requires": { - "argparse": "^2.0.1", - "entities": "~2.1.0", - "linkify-it": "^3.0.1", - "mdurl": "^1.0.1", - "uc.micro": "^1.0.5" - }, - "dependencies": { - "argparse": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", - "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", - "dev": true - } - } - }, - "markdown-it-anchor": { - "version": "8.6.7", - "resolved": "https://registry.npmjs.org/markdown-it-anchor/-/markdown-it-anchor-8.6.7.tgz", - "integrity": "sha512-FlCHFwNnutLgVTflOYHPW2pPcl2AACqVzExlkGQNsi4CJgqOHN7YTgDd4LuhgN1BFO3TS0vLAruV1Td6dwWPJA==", - "dev": true, - "requires": {} - }, - "marked": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/marked/-/marked-4.3.0.tgz", - "integrity": "sha512-PRsaiG84bK+AMvxziE/lCFss8juXjNaWzVbN5tXAm4XjeaS9NAHhop+PjQxz2A9h8Q4M/xGmzP8vqNwy6JeK0A==", - "dev": true - }, - "math-intrinsics": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz", - "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==" - }, - "mdurl": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/mdurl/-/mdurl-1.0.1.tgz", - "integrity": "sha512-/sKlQJCBYVY9Ers9hqzKou4H6V5UWc/M59TH2dvkt+84itfnq7uFOMLpOiOS4ujvHP4etln18fmIxA5R5fll0g==", - "dev": true - }, - "merge-stream": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", - "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", - "dev": true - }, - "micromatch": { - "version": "4.0.8", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz", - "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==", - "dev": true, - "requires": { - "braces": "^3.0.3", - "picomatch": "^2.3.1" - } - }, - "mime-db": { - "version": "1.52.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", - "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==" - }, - "mime-types": { - "version": "2.1.35", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", - "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", - "requires": { - "mime-db": "1.52.0" - } - }, - "mimic-fn": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", - "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", - "dev": true - }, - "minimatch": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", - "dev": true, - "requires": { - "brace-expansion": "^1.1.7" - } - }, - "minimist": { - "version": "1.2.8", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", - "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==", - "dev": true - }, - "mkdirp": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", - "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==", - "dev": true - }, - "ms": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", - "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", - "dev": true - }, - "natural-compare": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", - "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", - "dev": true - }, - "node-int64": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/node-int64/-/node-int64-0.4.0.tgz", - "integrity": "sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw==", - "dev": true - }, - "node-releases": { - "version": "2.0.13", - "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.13.tgz", - "integrity": "sha512-uYr7J37ae/ORWdZeQ1xxMJe3NtdmqMC/JZK+geofDrkLUApKRHPd18/TxtBOJ4A0/+uUIliorNrfYV6s1b02eQ==", - "dev": true - }, - "node-rsa": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/node-rsa/-/node-rsa-1.1.1.tgz", - "integrity": "sha512-Jd4cvbJMryN21r5HgxQOpMEqv+ooke/korixNNK3mGqfGJmy0M77WDDzo/05969+OkMy3XW1UuZsSmW9KQm7Fw==", - "requires": { - "asn1": "^0.2.4" - } - }, - "normalize-path": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", - "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", - "dev": true - }, - "npm-run-path": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz", - "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==", - "dev": true, - "requires": { - "path-key": "^3.0.0" - } - }, - "nwsapi": { - "version": "2.2.7", - "resolved": "https://registry.npmjs.org/nwsapi/-/nwsapi-2.2.7.tgz", - "integrity": "sha512-ub5E4+FBPKwAZx0UwIQOjYWGHTEq5sPqHQNRN8Z9e4A7u3Tj1weLJsL59yH9vmvqEtBHaOmT6cYQKIZOxp35FQ==", - "dev": true - }, - "once": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", - "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", - "dev": true, - "requires": { - "wrappy": "1" - } - }, - "onetime": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", - "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", - "dev": true, - "requires": { - "mimic-fn": "^2.1.0" - } - }, - "optionator": { - "version": "0.8.3", - "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.8.3.tgz", - "integrity": "sha512-+IW9pACdk3XWmmTXG8m3upGUJst5XRGzxMRjXzAuJ1XnIFNvfhjjIuYkDvysnPQ7qzqVzLt78BCruntqRhWQbA==", - "dev": true, - "requires": { - "deep-is": "~0.1.3", - "fast-levenshtein": "~2.0.6", - "levn": "~0.3.0", - "prelude-ls": "~1.1.2", - "type-check": "~0.3.2", - "word-wrap": "~1.2.3" - } - }, - "p-limit": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", - "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", - "dev": true, - "requires": { - "yocto-queue": "^0.1.0" - } - }, - "p-locate": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", - "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", - "dev": true, - "requires": { - "p-limit": "^2.2.0" - }, - "dependencies": { - "p-limit": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", - "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", - "dev": true, - "requires": { - "p-try": "^2.0.0" - } - } - } - }, - "p-try": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", - "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", - "dev": true - }, - "parse-json": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz", - "integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==", - "dev": true, - "requires": { - "@babel/code-frame": "^7.0.0", - "error-ex": "^1.3.1", - "json-parse-even-better-errors": "^2.3.0", - "lines-and-columns": "^1.1.6" - } - }, - "parse5": { - "version": "7.1.2", - "resolved": "https://registry.npmjs.org/parse5/-/parse5-7.1.2.tgz", - "integrity": "sha512-Czj1WaSVpaoj0wbhMzLmWD69anp2WH7FXMB9n1Sy8/ZFF9jolSQVMu1Ij5WIyGmcBmhk7EOndpO4mIpihVqAXw==", - "dev": true, - "requires": { - "entities": "^4.4.0" - }, - "dependencies": { - "entities": { - "version": "4.5.0", - "resolved": "https://registry.npmjs.org/entities/-/entities-4.5.0.tgz", - "integrity": "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==", - "dev": true - } - } - }, - "path-exists": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", - "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", - "dev": true - }, - "path-is-absolute": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", - "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", - "dev": true - }, - "path-key": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", - "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", - "dev": true - }, - "path-parse": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", - "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", - "dev": true - }, - "picocolors": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", - "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", - "dev": true - }, - "picomatch": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", - "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", - "dev": true - }, - "pirates": { - "version": "4.0.6", - "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.6.tgz", - "integrity": "sha512-saLsH7WeYYPiD25LDuLRRY/i+6HaPYr6G1OUlN39otzkSTxKnubR9RTxS3/Kk50s1g2JTgFwWQDQyplC5/SHZg==", - "dev": true - }, - "pkg-dir": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz", - "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==", - "dev": true, - "requires": { - "find-up": "^4.0.0" - } - }, - "prelude-ls": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.1.2.tgz", - "integrity": "sha512-ESF23V4SKG6lVSGZgYNpbsiaAkdab6ZgOxe52p7+Kid3W3u3bxR4Vfd/o21dmN7jSt0IwgZ4v5MUd26FEtXE9w==", - "dev": true - }, - "pretty-format": { - "version": "24.9.0", - "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-24.9.0.tgz", - "integrity": "sha512-00ZMZUiHaJrNfk33guavqgvfJS30sLYf0f8+Srklv0AMPodGGHcoHgksZ3OThYnIvOd+8yMCn0YiEOogjlgsnA==", - "dev": true, - "requires": { - "@jest/types": "^24.9.0", - "ansi-regex": "^4.0.0", - "ansi-styles": "^3.2.0", - "react-is": "^16.8.4" - }, - "dependencies": { - "@jest/types": { - "version": "24.9.0", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-24.9.0.tgz", - "integrity": "sha512-XKK7ze1apu5JWQ5eZjHITP66AX+QsLlbaJRBGYr8pNzwcAE2JVkwnf0yqjHTsDRcjR0mujy/NmZMXw5kl+kGBw==", - "dev": true, - "requires": { - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^1.1.1", - "@types/yargs": "^13.0.0" - } + "ts-node": { + "version": "8.10.2", + "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-8.10.2.tgz", + "integrity": "sha512-ISJJGgkIpDdBhWVu3jufsWpK3Rzo7bdiIXJjQc0ynKxVOVcg2oIrf2H2cejminGrptVc6q6/uynAHNCuWGbpVA==", + "dev": true, + "requires": { + "arg": "^4.1.0", + "diff": "^4.0.1", + "make-error": "^1.1.1", + "source-map-support": "^0.5.17", + "yn": "3.1.1" + } }, - "@types/istanbul-reports": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-1.1.2.tgz", - "integrity": "sha512-P/W9yOX/3oPZSpaYOCQzGqgCQRXn0FFO/V8bWrCQs+wLmvVVxk6CRBXALEvNs9OHIatlnlFokfhuDo2ug01ciw==", - "dev": true, - "requires": { - "@types/istanbul-lib-coverage": "*", - "@types/istanbul-lib-report": "*" - } + "tslib": { + "version": "2.4.0", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.0.tgz", + "integrity": "sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ==", + "dev": true + }, + "type-check": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.3.2.tgz", + "integrity": "sha512-ZCmOJdvOWDBYJlzAoFkC+Q0+bUyEOS1ltgp1MGU03fqHG+dbi9tBFU2Rd9QKiDZFAYrhPh2JUf7rZRIuHRKtOg==", + "dev": true, + "requires": { + "prelude-ls": "~1.1.2" + } }, - "@types/yargs": { - "version": "13.0.12", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-13.0.12.tgz", - "integrity": "sha512-qCxJE1qgz2y0hA4pIxjBR+PelCH0U5CK1XJXFwCNqfmliatKp47UCXXE9Dyk1OXBDLvsCF57TqQEJaeLfDYEOQ==", - "dev": true, - "requires": { - "@types/yargs-parser": "*" - } - } - } - }, - "prompts": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/prompts/-/prompts-2.4.2.tgz", - "integrity": "sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q==", - "dev": true, - "requires": { - "kleur": "^3.0.3", - "sisteransi": "^1.0.5" - } - }, - "protobufjs": { - "version": "7.2.6", - "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-7.2.6.tgz", - "integrity": "sha512-dgJaEDDL6x8ASUZ1YqWciTRrdOuYNzoOf27oHNfdyvKqHr5i0FV7FSLU+aIeFjyFgVxrpTOtQUi0BLLBymZaBw==", - "dev": true, - "requires": { - "@protobufjs/aspromise": "^1.1.2", - "@protobufjs/base64": "^1.1.2", - "@protobufjs/codegen": "^2.0.4", - "@protobufjs/eventemitter": "^1.1.0", - "@protobufjs/fetch": "^1.1.0", - "@protobufjs/float": "^1.0.2", - "@protobufjs/inquire": "^1.1.0", - "@protobufjs/path": "^1.1.2", - "@protobufjs/pool": "^1.1.0", - "@protobufjs/utf8": "^1.1.0", - "@types/node": ">=13.7.0", - "long": "^5.0.0" - } - }, - "protobufjs-cli": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/protobufjs-cli/-/protobufjs-cli-1.1.1.tgz", - "integrity": "sha512-VPWMgIcRNyQwWUv8OLPyGQ/0lQY/QTQAVN5fh+XzfDwsVw1FZ2L3DM/bcBf8WPiRz2tNpaov9lPZfNcmNo6LXA==", - "dev": true, - "requires": { - "chalk": "^4.0.0", - "escodegen": "^1.13.0", - "espree": "^9.0.0", - "estraverse": "^5.1.0", - "glob": "^8.0.0", - "jsdoc": "^4.0.0", - "minimist": "^1.2.0", - "semver": "^7.1.2", - "tmp": "^0.2.1", - "uglify-js": "^3.7.7" - }, - "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "requires": { - "color-convert": "^2.0.1" - } + "type-detect": { + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz", + "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==", + "dev": true + }, + "type-fest": { + "version": "0.21.3", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz", + "integrity": "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==", + "dev": true + }, + "typescript": { + "version": "4.6.4", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.6.4.tgz", + "integrity": "sha512-9ia/jWHIEbo49HfjrLGfKbZSuWo9iTMwXO+Ca3pRsSpbsMbc7/IU8NKdCZVRRBafVPGnoJeFL76ZOAA84I9fEg==", + "dev": true + }, + "uc.micro": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/uc.micro/-/uc.micro-1.0.6.tgz", + "integrity": "sha512-8Y75pvTYkLJW2hWQHXxoqRgV7qb9B+9vFEtidML+7koHUFapnVJAZ6cKs+Qjz5Aw3aZWHMC6u0wJE3At+nSGwA==", + "dev": true + }, + "uglify-js": { + "version": "3.17.4", + "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.17.4.tgz", + "integrity": "sha512-T9q82TJI9e/C1TAxYvfb16xO120tMVFZrGA3f9/P4424DNu6ypK103y0GPFVa17yotwSyZW5iYXgjYHkGrJW/g==", + "dev": true + }, + "underscore": { + "version": "1.13.6", + "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.13.6.tgz", + "integrity": "sha512-+A5Sja4HP1M08MaXya7p5LvjuM7K6q/2EaC0+iovj/wOcMsTzMvDFbasi/oSapiwOlt252IqsKqPjCl7huKS0A==", + "dev": true + }, + "undici-types": { + "version": "5.26.5", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz", + "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==", + "dev": true + }, + "unicode-canonical-property-names-ecmascript": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-2.0.0.tgz", + "integrity": "sha512-yY5PpDlfVIU5+y/BSCxAJRBIS1Zc2dDG3Ujq+sR0U+JjUevW2JhocOF+soROYDSaAezOzOKuyyixhD6mBknSmQ==", + "dev": true + }, + "unicode-match-property-ecmascript": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/unicode-match-property-ecmascript/-/unicode-match-property-ecmascript-2.0.0.tgz", + "integrity": "sha512-5kaZCrbp5mmbz5ulBkDkbY0SsPOjKqVS35VpL9ulMPfSl0J0Xsm+9Evphv9CoIZFwre7aJoa94AY6seMKGVN5Q==", + "dev": true, + "requires": { + "unicode-canonical-property-names-ecmascript": "^2.0.0", + "unicode-property-aliases-ecmascript": "^2.0.0" + } }, - "brace-expansion": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz", - "integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==", - "dev": true, - "requires": { - "balanced-match": "^1.0.0" - } + "unicode-match-property-value-ecmascript": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/unicode-match-property-value-ecmascript/-/unicode-match-property-value-ecmascript-2.1.0.tgz", + "integrity": "sha512-qxkjQt6qjg/mYscYMC0XKRn3Rh0wFPlfxB0xkt9CfyTvpX1Ra0+rAmdX2QyAobptSEvuy4RtpPRui6XkV+8wjA==", + "dev": true }, - "chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } + "unicode-property-aliases-ecmascript": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/unicode-property-aliases-ecmascript/-/unicode-property-aliases-ecmascript-2.1.0.tgz", + "integrity": "sha512-6t3foTQI9qne+OZoVQB/8x8rk2k1eVy1gRXhV3oFQ5T6R1dqQ1xtin3XqSlx3+ATBkliTaR/hHyJBm+LVPNM8w==", + "dev": true }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "requires": { - "color-name": "~1.1.4" - } + "universalify": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.0.tgz", + "integrity": "sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ==", + "dev": true + }, + "update-browserslist-db": { + "version": "1.0.13", + "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.13.tgz", + "integrity": "sha512-xebP81SNcPuNpPP3uzeW1NYXxI3rxyJzF3pD6sH4jE7o/IX+WtSpwnVU+qIsDPyk0d3hmFQ7mjqc6AtV604hbg==", + "dev": true, + "requires": { + "escalade": "^3.1.1", + "picocolors": "^1.0.0" + } }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true + "url-parse": { + "version": "1.5.10", + "resolved": "https://registry.npmjs.org/url-parse/-/url-parse-1.5.10.tgz", + "integrity": "sha512-WypcfiRhfeUP9vvF0j6rw0J3hrWrw6iZv3+22h6iRMJ/8z1Tj6XfLP4DsUix5MhMPnXpiHDoKyoZ/bdCkwBCiQ==", + "dev": true, + "requires": { + "querystringify": "^2.1.1", + "requires-port": "^1.0.0" + } }, - "glob": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/glob/-/glob-8.1.0.tgz", - "integrity": "sha512-r8hpEjiQEYlF2QU0df3dS+nxxSIreXQS1qRhMJM0Q5NDdR386C7jb7Hwwod8Fgiuex+k0GFjgft18yvxm5XoCQ==", - "dev": true, - "requires": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^5.0.1", - "once": "^1.3.0" - } + "v8-to-istanbul": { + "version": "9.1.0", + "resolved": "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-9.1.0.tgz", + "integrity": "sha512-6z3GW9x8G1gd+JIIgQQQxXuiJtCXeAjp6RaPEPLv62mH3iPHPxV6W3robxtCzNErRo6ZwTmzWhsbNvjyEBKzKA==", + "dev": true, + "requires": { + "@jridgewell/trace-mapping": "^0.3.12", + "@types/istanbul-lib-coverage": "^2.0.1", + "convert-source-map": "^1.6.0" + }, + "dependencies": { + "convert-source-map": { + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.9.0.tgz", + "integrity": "sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A==", + "dev": true + } + } }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true + "w3c-xmlserializer": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/w3c-xmlserializer/-/w3c-xmlserializer-4.0.0.tgz", + "integrity": "sha512-d+BFHzbiCx6zGfz0HyQ6Rg69w9k19nviJspaj4yNscGjrHu94sVP+aRm75yEbCh+r2/yR+7q6hux9LVtbuTGBw==", + "dev": true, + "requires": { + "xml-name-validator": "^4.0.0" + } }, - "lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dev": true, - "requires": { - "yallist": "^4.0.0" - } + "walker": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/walker/-/walker-1.0.8.tgz", + "integrity": "sha512-ts/8E8l5b7kY0vlWLewOkDXMmPdLcVV4GmOQLyxuSswIJsweeFZtAsMF7k1Nszz+TYBQrlYRmzOnr398y1JemQ==", + "dev": true, + "requires": { + "makeerror": "1.0.12" + } }, - "minimatch": { - "version": "5.1.6", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.6.tgz", - "integrity": "sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==", - "dev": true, - "requires": { - "brace-expansion": "^2.0.1" - } + "webidl-conversions": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-7.0.0.tgz", + "integrity": "sha512-VwddBukDzu71offAQR975unBIGqfKZpM+8ZX6ySk8nYhVoo5CYaZyzt3YBvYtRtO+aoGlqxPg/B87NGVZ/fu6g==", + "dev": true + }, + "websocket-driver": { + "version": "0.7.4", + "resolved": "https://registry.npmjs.org/websocket-driver/-/websocket-driver-0.7.4.tgz", + "integrity": "sha512-b17KeDIQVjvb0ssuSDF2cYXSg2iztliJ4B9WdsuB6J952qCPKmnVq4DyW5motImXHDC1cBT/1UezrJVsKw5zjg==", + "requires": { + "http-parser-js": ">=0.5.1", + "safe-buffer": ">=5.1.0", + "websocket-extensions": ">=0.1.1" + } }, - "semver": { - "version": "7.5.4", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", - "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", - "dev": true, - "requires": { - "lru-cache": "^6.0.0" - } + "websocket-extensions": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/websocket-extensions/-/websocket-extensions-0.1.4.tgz", + "integrity": "sha512-OqedPIGOfsDlo31UNwYbCFMSaO9m9G/0faIHj5/dZFDMFqPTcx6UwqyOy3COEaEOg/9VsGIpdqn62W5KhoKSpg==" + }, + "whatwg-encoding": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/whatwg-encoding/-/whatwg-encoding-2.0.0.tgz", + "integrity": "sha512-p41ogyeMUrw3jWclHWTQg1k05DSVXPLcVxRTYsXUk+ZooOCZLcoYgPZ/HL/D/N+uQPOtcp1me1WhBEaX02mhWg==", + "dev": true, + "requires": { + "iconv-lite": "0.6.3" + } }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } + "whatwg-mimetype": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/whatwg-mimetype/-/whatwg-mimetype-3.0.0.tgz", + "integrity": "sha512-nt+N2dzIutVRxARx1nghPKGv1xHikU7HKdfafKkLNLindmPU/ch3U31NOCGGA/dmPcmb1VlofO0vnKAcsm0o/Q==", + "dev": true + }, + "whatwg-url": { + "version": "11.0.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-11.0.0.tgz", + "integrity": "sha512-RKT8HExMpoYx4igMiVMY83lN6UeITKJlBQ+vR/8ZJ8OCdSiN3RwCq+9gH0+Xzj0+5IrM6i4j/6LuvzbZIQgEcQ==", + "dev": true, + "requires": { + "tr46": "^3.0.0", + "webidl-conversions": "^7.0.0" + } }, - "yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true - } - } - }, - "psl": { - "version": "1.9.0", - "resolved": "https://registry.npmjs.org/psl/-/psl-1.9.0.tgz", - "integrity": "sha512-E/ZsdU4HLs/68gYzgGTkMicWTLPdAftJLfJFlLUAAKZGkStNU72sZjT66SnMDVOfOWY/YAoiD7Jxa9iHvngcag==", - "dev": true - }, - "punycode": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", - "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", - "dev": true - }, - "pure-rand": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/pure-rand/-/pure-rand-6.0.2.tgz", - "integrity": "sha512-6Yg0ekpKICSjPswYOuC5sku/TSWaRYlA0qsXqJgM/d/4pLPHPuTxK7Nbf7jFKzAeedUhR8C7K9Uv63FBsSo8xQ==", - "dev": true - }, - "querystringify": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/querystringify/-/querystringify-2.2.0.tgz", - "integrity": "sha512-FIqgj2EUvTa7R50u0rGsyTftzjYmv/a3hO345bZNrqabNqjtgiDMgmo4mkUjd+nzU5oF3dClKqFIPUKybUyqoQ==", - "dev": true - }, - "react-is": { - "version": "16.13.1", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz", - "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==", - "dev": true - }, - "regenerate": { - "version": "1.4.2", - "resolved": "https://registry.npmjs.org/regenerate/-/regenerate-1.4.2.tgz", - "integrity": "sha512-zrceR/XhGYU/d/opr2EKO7aRHUeiBI8qjtfHqADTwZd6Szfy16la6kqD0MIUs5z5hx6AaKa+PixpPrR289+I0A==", - "dev": true - }, - "regenerate-unicode-properties": { - "version": "10.1.1", - "resolved": "https://registry.npmjs.org/regenerate-unicode-properties/-/regenerate-unicode-properties-10.1.1.tgz", - "integrity": "sha512-X007RyZLsCJVVrjgEFVpLUTZwyOZk3oiL75ZcuYjlIWd6rNJtOjkBwQc5AsRrpbKVkxN6sklw/k/9m2jJYOf8Q==", - "dev": true, - "requires": { - "regenerate": "^1.4.2" - } - }, - "regenerator-transform": { - "version": "0.15.2", - "resolved": "https://registry.npmjs.org/regenerator-transform/-/regenerator-transform-0.15.2.tgz", - "integrity": "sha512-hfMp2BoF0qOk3uc5V20ALGDS2ddjQaLrdl7xrGXvAIow7qeWRM2VA2HuCHkUKk9slq3VwEwLNK3DFBqDfPGYtg==", - "dev": true, - "requires": { - "@babel/runtime": "^7.8.4" - } - }, - "regexpu-core": { - "version": "5.3.2", - "resolved": "https://registry.npmjs.org/regexpu-core/-/regexpu-core-5.3.2.tgz", - "integrity": "sha512-RAM5FlZz+Lhmo7db9L298p2vHP5ZywrVXmVXpmAD9GuL5MPH6t9ROw1iA/wfHkQ76Qe7AaPF0nGuim96/IrQMQ==", - "dev": true, - "requires": { - "@babel/regjsgen": "^0.8.0", - "regenerate": "^1.4.2", - "regenerate-unicode-properties": "^10.1.0", - "regjsparser": "^0.9.1", - "unicode-match-property-ecmascript": "^2.0.0", - "unicode-match-property-value-ecmascript": "^2.1.0" - } - }, - "regjsparser": { - "version": "0.9.1", - "resolved": "https://registry.npmjs.org/regjsparser/-/regjsparser-0.9.1.tgz", - "integrity": "sha512-dQUtn90WanSNl+7mQKcXAgZxvUe7Z0SqXlgzv0za4LwiUhyzBC58yQO3liFoUgu8GiJVInAhJjkj1N0EtQ5nkQ==", - "dev": true, - "requires": { - "jsesc": "~0.5.0" - }, - "dependencies": { - "jsesc": { - "version": "0.5.0", - "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-0.5.0.tgz", - "integrity": "sha512-uZz5UnB7u4T9LvwmFqXii7pZSouaRPorGs5who1Ip7VO0wxanFvBL7GkM6dTHlgX+jhBApRetaWpnDabOeTcnA==", - "dev": true - } - } - }, - "require-directory": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", - "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", - "dev": true - }, - "requires-port": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/requires-port/-/requires-port-1.0.0.tgz", - "integrity": "sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ==", - "dev": true - }, - "requizzle": { - "version": "0.2.4", - "resolved": "https://registry.npmjs.org/requizzle/-/requizzle-0.2.4.tgz", - "integrity": "sha512-JRrFk1D4OQ4SqovXOgdav+K8EAhSB/LJZqCz8tbX0KObcdeM15Ss59ozWMBWmmINMagCwmqn4ZNryUGpBsl6Jw==", - "dev": true, - "requires": { - "lodash": "^4.17.21" - } - }, - "resolve": { - "version": "1.22.2", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.2.tgz", - "integrity": "sha512-Sb+mjNHOULsBv818T40qSPeRiuWLyaGMa5ewydRLFimneixmVy2zdivRl+AF6jaYPC8ERxGDmFSiqui6SfPd+g==", - "dev": true, - "requires": { - "is-core-module": "^2.11.0", - "path-parse": "^1.0.7", - "supports-preserve-symlinks-flag": "^1.0.0" - } - }, - "resolve-cwd": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/resolve-cwd/-/resolve-cwd-3.0.0.tgz", - "integrity": "sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg==", - "dev": true, - "requires": { - "resolve-from": "^5.0.0" - } - }, - "resolve-from": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", - "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", - "dev": true - }, - "resolve.exports": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/resolve.exports/-/resolve.exports-2.0.2.tgz", - "integrity": "sha512-X2UW6Nw3n/aMgDVy+0rSqgHlv39WZAlZrXCdnbyEiKm17DSqHX4MmQMaST3FbeWR5FTuRcUwYAziZajji0Y7mg==", - "dev": true - }, - "rollup": { - "version": "2.79.2", - "resolved": "https://registry.npmjs.org/rollup/-/rollup-2.79.2.tgz", - "integrity": "sha512-fS6iqSPZDs3dr/y7Od6y5nha8dW1YnbgtsyotCVvoFGKbERG++CVRFv1meyGDE1SNItQA8BrnCw7ScdAhRJ3XQ==", - "dev": true, - "requires": { - "fsevents": "~2.3.2" - } - }, - "rollup-plugin-typescript2": { - "version": "0.32.1", - "resolved": "https://registry.npmjs.org/rollup-plugin-typescript2/-/rollup-plugin-typescript2-0.32.1.tgz", - "integrity": "sha512-RanO8bp1WbeMv0bVlgcbsFNCn+Y3rX7wF97SQLDxf0fMLsg0B/QFF005t4AsGUcDgF3aKJHoqt4JF2xVaABeKw==", - "dev": true, - "requires": { - "@rollup/pluginutils": "^4.1.2", - "find-cache-dir": "^3.3.2", - "fs-extra": "^10.0.0", - "resolve": "^1.20.0", - "tslib": "^2.4.0" - }, - "dependencies": { - "@rollup/pluginutils": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/@rollup/pluginutils/-/pluginutils-4.2.1.tgz", - "integrity": "sha512-iKnFXr7NkdZAIHiIWE+BX5ULi/ucVFYWD6TbAV+rZctiRTY2PL6tsIKhoIOaoskiWAkgu+VsbXgUVDNLHf+InQ==", - "dev": true, - "requires": { - "estree-walker": "^2.0.1", - "picomatch": "^2.2.2" - } + "which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "dev": true, + "requires": { + "isexe": "^2.0.0" + } }, - "estree-walker": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-2.0.2.tgz", - "integrity": "sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==", - "dev": true - } - } - }, - "safe-buffer": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", - "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" - }, - "safer-buffer": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", - "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" - }, - "saxes": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/saxes/-/saxes-6.0.0.tgz", - "integrity": "sha512-xAg7SOnEhrm5zI3puOOKyy1OMcMlIJZYNJY7xLBwSze0UjhPLnWfj2GF2EpT0jmzaJKIWKHLsaSSajf35bcYnA==", - "dev": true, - "requires": { - "xmlchars": "^2.2.0" - } - }, - "semver": { - "version": "6.3.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", - "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", - "dev": true - }, - "shebang-command": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", - "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", - "dev": true, - "requires": { - "shebang-regex": "^3.0.0" - } - }, - "shebang-regex": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", - "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", - "dev": true - }, - "signal-exit": { - "version": "3.0.7", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", - "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", - "dev": true - }, - "sisteransi": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/sisteransi/-/sisteransi-1.0.5.tgz", - "integrity": "sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==", - "dev": true - }, - "slash": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", - "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", - "dev": true - }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - }, - "source-map-support": { - "version": "0.5.21", - "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", - "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", - "dev": true, - "requires": { - "buffer-from": "^1.0.0", - "source-map": "^0.6.0" - } - }, - "sourcemap-codec": { - "version": "1.4.8", - "resolved": "https://registry.npmjs.org/sourcemap-codec/-/sourcemap-codec-1.4.8.tgz", - "integrity": "sha512-9NykojV5Uih4lgo5So5dtw+f0JgJX30KCNI8gwhz2J9A15wD0Ml6tjHKwf6fTSa6fAdVBdZeNOs9eJ71qCk8vA==", - "dev": true - }, - "sprintf-js": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", - "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==", - "dev": true - }, - "stack-utils": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/stack-utils/-/stack-utils-2.0.6.tgz", - "integrity": "sha512-XlkWvfIm6RmsWtNJx+uqtKLS8eqFbxUg0ZzLXqY0caEy9l7hruX8IpiDnjsLavoBgqCCR71TqWO8MaXYheJ3RQ==", - "dev": true, - "requires": { - "escape-string-regexp": "^2.0.0" - }, - "dependencies": { - "escape-string-regexp": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz", - "integrity": "sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==", - "dev": true - } - } - }, - "string-length": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/string-length/-/string-length-4.0.2.tgz", - "integrity": "sha512-+l6rNN5fYHNhZZy41RXsYptCjA2Igmq4EG7kZAYFQI1E1VTXarr6ZPXBg6eq7Y6eK4FEhY6AJlyuFIb/v/S0VQ==", - "dev": true, - "requires": { - "char-regex": "^1.0.2", - "strip-ansi": "^6.0.0" - } - }, - "string-width": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "dev": true, - "requires": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - } - }, - "strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dev": true, - "requires": { - "ansi-regex": "^5.0.1" - }, - "dependencies": { - "ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "dev": true - } - } - }, - "strip-bom": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-4.0.0.tgz", - "integrity": "sha512-3xurFv5tEgii33Zi8Jtp55wEIILR9eh34FAW00PZf+JnSsTmV/ioewSgQl97JHvgjoRGwPShsWm+IdrxB35d0w==", - "dev": true - }, - "strip-final-newline": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz", - "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==", - "dev": true - }, - "strip-json-comments": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", - "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", - "dev": true - }, - "supports-color": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", - "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", - "dev": true, - "requires": { - "has-flag": "^3.0.0" - } - }, - "supports-preserve-symlinks-flag": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", - "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", - "dev": true - }, - "symbol-tree": { - "version": "3.2.4", - "resolved": "https://registry.npmjs.org/symbol-tree/-/symbol-tree-3.2.4.tgz", - "integrity": "sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw==", - "dev": true - }, - "test-exclude": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/test-exclude/-/test-exclude-6.0.0.tgz", - "integrity": "sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w==", - "dev": true, - "requires": { - "@istanbuljs/schema": "^0.1.2", - "glob": "^7.1.4", - "minimatch": "^3.0.4" - } - }, - "tmp": { - "version": "0.2.5", - "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.2.5.tgz", - "integrity": "sha512-voyz6MApa1rQGUxT3E+BK7/ROe8itEx7vD8/HEvt4xwXucvQ5G5oeEiHkmHZJuBO21RpOf+YYm9MOivj709jow==", - "dev": true - }, - "tmpl": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/tmpl/-/tmpl-1.0.5.tgz", - "integrity": "sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw==", - "dev": true - }, - "to-regex-range": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", - "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", - "dev": true, - "requires": { - "is-number": "^7.0.0" - } - }, - "tough-cookie": { - "version": "4.1.3", - "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-4.1.3.tgz", - "integrity": "sha512-aX/y5pVRkfRnfmuX+OdbSdXvPe6ieKX/G2s7e98f4poJHnqH3281gDPm/metm6E/WRamfx7WC4HUqkWHfQHprw==", - "dev": true, - "requires": { - "psl": "^1.1.33", - "punycode": "^2.1.1", - "universalify": "^0.2.0", - "url-parse": "^1.5.3" - }, - "dependencies": { - "universalify": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.2.0.tgz", - "integrity": "sha512-CJ1QgKmNg3CwvAv/kOFmtnEN05f0D/cn9QntgNOQlQF9dgvVTHj3t+8JPdjqawCHk7V/KA+fbUqzZ9XWhcqPUg==", - "dev": true - } - } - }, - "tr46": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/tr46/-/tr46-3.0.0.tgz", - "integrity": "sha512-l7FvfAHlcmulp8kr+flpQZmVwtu7nfRV7NZujtN0OqES8EL4O4e0qqzL0DC5gAvx/ZC/9lk6rhcUwYvkBnBnYA==", - "dev": true, - "requires": { - "punycode": "^2.1.1" - } - }, - "ts-jest": { - "version": "29.1.1", - "resolved": "https://registry.npmjs.org/ts-jest/-/ts-jest-29.1.1.tgz", - "integrity": "sha512-D6xjnnbP17cC85nliwGiL+tpoKN0StpgE0TeOjXQTU6MVCfsB4v7aW05CgQ/1OywGb0x/oy9hHFnN+sczTiRaA==", - "dev": true, - "requires": { - "bs-logger": "0.x", - "fast-json-stable-stringify": "2.x", - "jest-util": "^29.0.0", - "json5": "^2.2.3", - "lodash.memoize": "4.x", - "make-error": "1.x", - "semver": "^7.5.3", - "yargs-parser": "^21.0.1" - }, - "dependencies": { - "lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dev": true, - "requires": { - "yallist": "^4.0.0" - } + "word-wrap": { + "version": "1.2.5", + "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz", + "integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==", + "dev": true + }, + "wrap-ansi": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", + "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", + "dev": true, + "requires": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "dependencies": { + "ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "requires": { + "color-convert": "^2.0.1" + } + }, + "color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true + } + } }, - "semver": { - "version": "7.5.4", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", - "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", - "dev": true, - "requires": { - "lru-cache": "^6.0.0" - } + "wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", + "dev": true + }, + "write-file-atomic": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-4.0.2.tgz", + "integrity": "sha512-7KxauUdBmSdWnmpaGFg+ppNjKF8uNLry8LyzjauQDOVONfFLNKrKvQOxZ/VuTIcS/gge/YNahf5RIIQWTSarlg==", + "dev": true, + "requires": { + "imurmurhash": "^0.1.4", + "signal-exit": "^3.0.7" + } }, - "yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true - } - } - }, - "ts-node": { - "version": "8.10.2", - "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-8.10.2.tgz", - "integrity": "sha512-ISJJGgkIpDdBhWVu3jufsWpK3Rzo7bdiIXJjQc0ynKxVOVcg2oIrf2H2cejminGrptVc6q6/uynAHNCuWGbpVA==", - "dev": true, - "requires": { - "arg": "^4.1.0", - "diff": "^4.0.1", - "make-error": "^1.1.1", - "source-map-support": "^0.5.17", - "yn": "3.1.1" - } - }, - "tslib": { - "version": "2.4.0", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.0.tgz", - "integrity": "sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ==", - "dev": true - }, - "type-check": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.3.2.tgz", - "integrity": "sha512-ZCmOJdvOWDBYJlzAoFkC+Q0+bUyEOS1ltgp1MGU03fqHG+dbi9tBFU2Rd9QKiDZFAYrhPh2JUf7rZRIuHRKtOg==", - "dev": true, - "requires": { - "prelude-ls": "~1.1.2" - } - }, - "type-detect": { - "version": "4.0.8", - "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz", - "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==", - "dev": true - }, - "type-fest": { - "version": "0.21.3", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz", - "integrity": "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==", - "dev": true - }, - "typescript": { - "version": "4.6.4", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.6.4.tgz", - "integrity": "sha512-9ia/jWHIEbo49HfjrLGfKbZSuWo9iTMwXO+Ca3pRsSpbsMbc7/IU8NKdCZVRRBafVPGnoJeFL76ZOAA84I9fEg==", - "dev": true - }, - "uc.micro": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/uc.micro/-/uc.micro-1.0.6.tgz", - "integrity": "sha512-8Y75pvTYkLJW2hWQHXxoqRgV7qb9B+9vFEtidML+7koHUFapnVJAZ6cKs+Qjz5Aw3aZWHMC6u0wJE3At+nSGwA==", - "dev": true - }, - "uglify-js": { - "version": "3.17.4", - "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.17.4.tgz", - "integrity": "sha512-T9q82TJI9e/C1TAxYvfb16xO120tMVFZrGA3f9/P4424DNu6ypK103y0GPFVa17yotwSyZW5iYXgjYHkGrJW/g==", - "dev": true - }, - "underscore": { - "version": "1.13.6", - "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.13.6.tgz", - "integrity": "sha512-+A5Sja4HP1M08MaXya7p5LvjuM7K6q/2EaC0+iovj/wOcMsTzMvDFbasi/oSapiwOlt252IqsKqPjCl7huKS0A==", - "dev": true - }, - "undici-types": { - "version": "5.26.5", - "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz", - "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==", - "dev": true - }, - "unicode-canonical-property-names-ecmascript": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-2.0.0.tgz", - "integrity": "sha512-yY5PpDlfVIU5+y/BSCxAJRBIS1Zc2dDG3Ujq+sR0U+JjUevW2JhocOF+soROYDSaAezOzOKuyyixhD6mBknSmQ==", - "dev": true - }, - "unicode-match-property-ecmascript": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/unicode-match-property-ecmascript/-/unicode-match-property-ecmascript-2.0.0.tgz", - "integrity": "sha512-5kaZCrbp5mmbz5ulBkDkbY0SsPOjKqVS35VpL9ulMPfSl0J0Xsm+9Evphv9CoIZFwre7aJoa94AY6seMKGVN5Q==", - "dev": true, - "requires": { - "unicode-canonical-property-names-ecmascript": "^2.0.0", - "unicode-property-aliases-ecmascript": "^2.0.0" - } - }, - "unicode-match-property-value-ecmascript": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/unicode-match-property-value-ecmascript/-/unicode-match-property-value-ecmascript-2.1.0.tgz", - "integrity": "sha512-qxkjQt6qjg/mYscYMC0XKRn3Rh0wFPlfxB0xkt9CfyTvpX1Ra0+rAmdX2QyAobptSEvuy4RtpPRui6XkV+8wjA==", - "dev": true - }, - "unicode-property-aliases-ecmascript": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/unicode-property-aliases-ecmascript/-/unicode-property-aliases-ecmascript-2.1.0.tgz", - "integrity": "sha512-6t3foTQI9qne+OZoVQB/8x8rk2k1eVy1gRXhV3oFQ5T6R1dqQ1xtin3XqSlx3+ATBkliTaR/hHyJBm+LVPNM8w==", - "dev": true - }, - "universalify": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.0.tgz", - "integrity": "sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ==", - "dev": true - }, - "update-browserslist-db": { - "version": "1.0.13", - "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.13.tgz", - "integrity": "sha512-xebP81SNcPuNpPP3uzeW1NYXxI3rxyJzF3pD6sH4jE7o/IX+WtSpwnVU+qIsDPyk0d3hmFQ7mjqc6AtV604hbg==", - "dev": true, - "requires": { - "escalade": "^3.1.1", - "picocolors": "^1.0.0" - } - }, - "url-parse": { - "version": "1.5.10", - "resolved": "https://registry.npmjs.org/url-parse/-/url-parse-1.5.10.tgz", - "integrity": "sha512-WypcfiRhfeUP9vvF0j6rw0J3hrWrw6iZv3+22h6iRMJ/8z1Tj6XfLP4DsUix5MhMPnXpiHDoKyoZ/bdCkwBCiQ==", - "dev": true, - "requires": { - "querystringify": "^2.1.1", - "requires-port": "^1.0.0" - } - }, - "v8-to-istanbul": { - "version": "9.1.0", - "resolved": "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-9.1.0.tgz", - "integrity": "sha512-6z3GW9x8G1gd+JIIgQQQxXuiJtCXeAjp6RaPEPLv62mH3iPHPxV6W3robxtCzNErRo6ZwTmzWhsbNvjyEBKzKA==", - "dev": true, - "requires": { - "@jridgewell/trace-mapping": "^0.3.12", - "@types/istanbul-lib-coverage": "^2.0.1", - "convert-source-map": "^1.6.0" - }, - "dependencies": { - "convert-source-map": { - "version": "1.9.0", - "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.9.0.tgz", - "integrity": "sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A==", - "dev": true - } - } - }, - "w3c-xmlserializer": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/w3c-xmlserializer/-/w3c-xmlserializer-4.0.0.tgz", - "integrity": "sha512-d+BFHzbiCx6zGfz0HyQ6Rg69w9k19nviJspaj4yNscGjrHu94sVP+aRm75yEbCh+r2/yR+7q6hux9LVtbuTGBw==", - "dev": true, - "requires": { - "xml-name-validator": "^4.0.0" - } - }, - "walker": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/walker/-/walker-1.0.8.tgz", - "integrity": "sha512-ts/8E8l5b7kY0vlWLewOkDXMmPdLcVV4GmOQLyxuSswIJsweeFZtAsMF7k1Nszz+TYBQrlYRmzOnr398y1JemQ==", - "dev": true, - "requires": { - "makeerror": "1.0.12" - } - }, - "webidl-conversions": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-7.0.0.tgz", - "integrity": "sha512-VwddBukDzu71offAQR975unBIGqfKZpM+8ZX6ySk8nYhVoo5CYaZyzt3YBvYtRtO+aoGlqxPg/B87NGVZ/fu6g==", - "dev": true - }, - "websocket-driver": { - "version": "0.7.4", - "resolved": "https://registry.npmjs.org/websocket-driver/-/websocket-driver-0.7.4.tgz", - "integrity": "sha512-b17KeDIQVjvb0ssuSDF2cYXSg2iztliJ4B9WdsuB6J952qCPKmnVq4DyW5motImXHDC1cBT/1UezrJVsKw5zjg==", - "requires": { - "http-parser-js": ">=0.5.1", - "safe-buffer": ">=5.1.0", - "websocket-extensions": ">=0.1.1" - } - }, - "websocket-extensions": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/websocket-extensions/-/websocket-extensions-0.1.4.tgz", - "integrity": "sha512-OqedPIGOfsDlo31UNwYbCFMSaO9m9G/0faIHj5/dZFDMFqPTcx6UwqyOy3COEaEOg/9VsGIpdqn62W5KhoKSpg==" - }, - "whatwg-encoding": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/whatwg-encoding/-/whatwg-encoding-2.0.0.tgz", - "integrity": "sha512-p41ogyeMUrw3jWclHWTQg1k05DSVXPLcVxRTYsXUk+ZooOCZLcoYgPZ/HL/D/N+uQPOtcp1me1WhBEaX02mhWg==", - "dev": true, - "requires": { - "iconv-lite": "0.6.3" - } - }, - "whatwg-mimetype": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/whatwg-mimetype/-/whatwg-mimetype-3.0.0.tgz", - "integrity": "sha512-nt+N2dzIutVRxARx1nghPKGv1xHikU7HKdfafKkLNLindmPU/ch3U31NOCGGA/dmPcmb1VlofO0vnKAcsm0o/Q==", - "dev": true - }, - "whatwg-url": { - "version": "11.0.0", - "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-11.0.0.tgz", - "integrity": "sha512-RKT8HExMpoYx4igMiVMY83lN6UeITKJlBQ+vR/8ZJ8OCdSiN3RwCq+9gH0+Xzj0+5IrM6i4j/6LuvzbZIQgEcQ==", - "dev": true, - "requires": { - "tr46": "^3.0.0", - "webidl-conversions": "^7.0.0" - } - }, - "which": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", - "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", - "dev": true, - "requires": { - "isexe": "^2.0.0" - } - }, - "word-wrap": { - "version": "1.2.5", - "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz", - "integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==", - "dev": true - }, - "wrap-ansi": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", - "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", - "dev": true, - "requires": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - }, - "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "requires": { - "color-convert": "^2.0.1" - } + "ws": { + "version": "8.17.1", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.17.1.tgz", + "integrity": "sha512-6XQFvXTkbfUOZOKKILFG1PDK2NDQs4azKQl26T0YS5CxqWLgXajbPZ+h4gZekJyRqFU8pvnbAbbs/3TgRPy+GQ==", + "dev": true, + "requires": {} + }, + "xml-name-validator": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/xml-name-validator/-/xml-name-validator-4.0.0.tgz", + "integrity": "sha512-ICP2e+jsHvAj2E2lIHxa5tjXRlKDJo4IdvPvCXbXQGdzSfmSpNVyIKMvoZHjDY9DP0zV17iI85o90vRFXNccRw==", + "dev": true + }, + "xmlchars": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/xmlchars/-/xmlchars-2.2.0.tgz", + "integrity": "sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw==", + "dev": true + }, + "xmlcreate": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/xmlcreate/-/xmlcreate-2.0.4.tgz", + "integrity": "sha512-nquOebG4sngPmGPICTS5EnxqhKbCmz5Ox5hsszI2T6U5qdrJizBc+0ilYSEjTSzU0yZcmvppztXe/5Al5fUwdg==", + "dev": true + }, + "y18n": { + "version": "5.0.8", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", + "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", + "dev": true }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "requires": { - "color-name": "~1.1.4" - } + "yallist": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", + "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", + "dev": true + }, + "yargs": { + "version": "17.7.2", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz", + "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==", + "dev": true, + "requires": { + "cliui": "^8.0.1", + "escalade": "^3.1.1", + "get-caller-file": "^2.0.5", + "require-directory": "^2.1.1", + "string-width": "^4.2.3", + "y18n": "^5.0.5", + "yargs-parser": "^21.1.1" + } }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true + "yargs-parser": { + "version": "21.1.1", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", + "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", + "dev": true + }, + "yn": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz", + "integrity": "sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==", + "dev": true + }, + "yocto-queue": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", + "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", + "dev": true } - } - }, - "wrappy": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", - "dev": true - }, - "write-file-atomic": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-4.0.2.tgz", - "integrity": "sha512-7KxauUdBmSdWnmpaGFg+ppNjKF8uNLry8LyzjauQDOVONfFLNKrKvQOxZ/VuTIcS/gge/YNahf5RIIQWTSarlg==", - "dev": true, - "requires": { - "imurmurhash": "^0.1.4", - "signal-exit": "^3.0.7" - } - }, - "ws": { - "version": "8.17.1", - "resolved": "https://registry.npmjs.org/ws/-/ws-8.17.1.tgz", - "integrity": "sha512-6XQFvXTkbfUOZOKKILFG1PDK2NDQs4azKQl26T0YS5CxqWLgXajbPZ+h4gZekJyRqFU8pvnbAbbs/3TgRPy+GQ==", - "dev": true, - "requires": {} - }, - "xml-name-validator": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/xml-name-validator/-/xml-name-validator-4.0.0.tgz", - "integrity": "sha512-ICP2e+jsHvAj2E2lIHxa5tjXRlKDJo4IdvPvCXbXQGdzSfmSpNVyIKMvoZHjDY9DP0zV17iI85o90vRFXNccRw==", - "dev": true - }, - "xmlchars": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/xmlchars/-/xmlchars-2.2.0.tgz", - "integrity": "sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw==", - "dev": true - }, - "xmlcreate": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/xmlcreate/-/xmlcreate-2.0.4.tgz", - "integrity": "sha512-nquOebG4sngPmGPICTS5EnxqhKbCmz5Ox5hsszI2T6U5qdrJizBc+0ilYSEjTSzU0yZcmvppztXe/5Al5fUwdg==", - "dev": true - }, - "y18n": { - "version": "5.0.8", - "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", - "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", - "dev": true - }, - "yallist": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", - "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", - "dev": true - }, - "yargs": { - "version": "17.7.2", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz", - "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==", - "dev": true, - "requires": { - "cliui": "^8.0.1", - "escalade": "^3.1.1", - "get-caller-file": "^2.0.5", - "require-directory": "^2.1.1", - "string-width": "^4.2.3", - "y18n": "^5.0.5", - "yargs-parser": "^21.1.1" - } - }, - "yargs-parser": { - "version": "21.1.1", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", - "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", - "dev": true - }, - "yn": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/yn/-/yn-3.1.1.tgz", - "integrity": "sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==", - "dev": true - }, - "yocto-queue": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", - "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", - "dev": true } - } } diff --git a/keeperapi/package.json b/keeperapi/package.json index 24ffefd..68e4594 100644 --- a/keeperapi/package.json +++ b/keeperapi/package.json @@ -1,45 +1,45 @@ { - "name": "@keeper-security/keeperapi", - "description": "Keeper API Javascript SDK", - "version": "17.0.7", - "browser": "dist/index.es.js", - "main": "dist/index.cjs.js", - "types": "dist/node/index.d.ts", - "repository": "https://github.com/Keeper-Security/keeper-sdk-javascript", - "license": "ISC", - "scripts": { - "start": "rollup -cw", - "build": "node ./scripts/cleanDistFolder.js && rollup -c && cp src/proto.d.ts dist", - "update-proto:es6": "pbjs -t static-module -w es6 -o src/proto.js ../../keeperapp-protobuf/APIRequest.proto ../../keeperapp-protobuf/AccountSummary.proto ../../keeperapp-protobuf/automator.proto ../../keeperapp-protobuf/breachwatch.proto ../../keeperapp-protobuf/client.proto ../../keeperapp-protobuf/externalservice.proto ../../keeperapp-protobuf/folder.proto ../../keeperapp-protobuf/push.proto ../../keeperapp-protobuf/record.proto ../../keeperapp-protobuf/servicelogger.proto ../../keeperapp-protobuf/ssocloud.proto ../../keeperapp-protobuf/token.proto ../../keeperapp-protobuf/upsell.proto ../../keeperapp-protobuf/SyncDown.proto ../../keeperapp-protobuf/BI.proto && pbts -o src/proto.d.ts src/proto.js", - "update-proto:cjs": "pbjs -t json-module -w commonjs -o src/proto.js ../../keeperapp-protobuf/APIRequest.proto ../../keeperapp-protobuf/AccountSummary.proto ../../keeperapp-protobuf/automator.proto ../../keeperapp-protobuf/breachwatch.proto ../../keeperapp-protobuf/client.proto ../../keeperapp-protobuf/externalservice.proto ../../keeperapp-protobuf/folder.proto ../../keeperapp-protobuf/push.proto ../../keeperapp-protobuf/record.proto ../../keeperapp-protobuf/servicelogger.proto ../../keeperapp-protobuf/ssocloud.proto ../../keeperapp-protobuf/token.proto ../../keeperapp-protobuf/upsell.proto ../../keeperapp-protobuf/SyncDown.proto && pbjs -t static-module -w commonjs ../../keeperapp-protobuf/APIRequest.proto ../../keeperapp-protobuf/AccountSummary.proto ../../keeperapp-protobuf/automator.proto ../../keeperapp-protobuf/breachwatch.proto ../../keeperapp-protobuf/client.proto ../../keeperapp-protobuf/externalservice.proto ../../keeperapp-protobuf/folder.proto ../../keeperapp-protobuf/push.proto ../../keeperapp-protobuf/record.proto ../../keeperapp-protobuf/servicelogger.proto ../../keeperapp-protobuf/ssocloud.proto ../../keeperapp-protobuf/token.proto ../../keeperapp-protobuf/upsell.proto ../../keeperapp-protobuf/SyncDown.proto ../../keeperapp-protobuf/BI.proto | pbts -o src/proto.d.ts -", - "test": "jest", - "types": "tsc --watch", - "types:ci": "tsc", - "prepublishOnly": "rollup -c && cp src/proto.d.ts dist", - "publish-to-npm": "npm publish" - }, - "dependencies": { - "@noble/post-quantum": "^0.5.2", - "asmcrypto.js": "^2.3.2", - "faye-websocket": "^0.11.3", - "form-data": "^4.0.4", - "node-rsa": "^1.0.8" - }, - "devDependencies": { - "@babel/preset-env": "^7.23.5", - "@babel/preset-typescript": "^7.23.3", - "@rollup/plugin-commonjs": "^22.0.1", - "@rollup/plugin-node-resolve": "^13.3.0", - "@types/jest": "^24.0.15", - "@types/node": "^20.9.1", - "jest": "^29.6.1", - "jest-environment-jsdom": "^29.7.0", - "protobufjs": "^7.2.4", - "protobufjs-cli": "^1.1.1", - "rollup": "^2.79.2", - "rollup-plugin-typescript2": "^0.32.1", - "ts-jest": "^29.1.1", - "ts-node": "^8.10.2", - "typescript": "^4.0.1" - } + "name": "@keeper-security/keeperapi", + "description": "Keeper API Javascript SDK", + "version": "17.0.7", + "browser": "dist/index.es.js", + "main": "dist/index.cjs.js", + "types": "dist/node/index.d.ts", + "repository": "https://github.com/Keeper-Security/keeper-sdk-javascript", + "license": "ISC", + "scripts": { + "start": "rollup -cw", + "build": "node ./scripts/cleanDistFolder.js && rollup -c && cp src/proto.d.ts dist", + "update-proto:es6": "pbjs -t static-module -w es6 -o src/proto.js ../../keeperapp-protobuf/APIRequest.proto ../../keeperapp-protobuf/AccountSummary.proto ../../keeperapp-protobuf/automator.proto ../../keeperapp-protobuf/breachwatch.proto ../../keeperapp-protobuf/client.proto ../../keeperapp-protobuf/externalservice.proto ../../keeperapp-protobuf/folder.proto ../../keeperapp-protobuf/push.proto ../../keeperapp-protobuf/record.proto ../../keeperapp-protobuf/servicelogger.proto ../../keeperapp-protobuf/ssocloud.proto ../../keeperapp-protobuf/token.proto ../../keeperapp-protobuf/upsell.proto ../../keeperapp-protobuf/SyncDown.proto ../../keeperapp-protobuf/BI.proto && pbts -o src/proto.d.ts src/proto.js", + "update-proto:cjs": "pbjs -t json-module -w commonjs -o src/proto.js ../../keeperapp-protobuf/APIRequest.proto ../../keeperapp-protobuf/AccountSummary.proto ../../keeperapp-protobuf/automator.proto ../../keeperapp-protobuf/breachwatch.proto ../../keeperapp-protobuf/client.proto ../../keeperapp-protobuf/externalservice.proto ../../keeperapp-protobuf/folder.proto ../../keeperapp-protobuf/push.proto ../../keeperapp-protobuf/record.proto ../../keeperapp-protobuf/servicelogger.proto ../../keeperapp-protobuf/ssocloud.proto ../../keeperapp-protobuf/token.proto ../../keeperapp-protobuf/upsell.proto ../../keeperapp-protobuf/SyncDown.proto && pbjs -t static-module -w commonjs ../../keeperapp-protobuf/APIRequest.proto ../../keeperapp-protobuf/AccountSummary.proto ../../keeperapp-protobuf/automator.proto ../../keeperapp-protobuf/breachwatch.proto ../../keeperapp-protobuf/client.proto ../../keeperapp-protobuf/externalservice.proto ../../keeperapp-protobuf/folder.proto ../../keeperapp-protobuf/push.proto ../../keeperapp-protobuf/record.proto ../../keeperapp-protobuf/servicelogger.proto ../../keeperapp-protobuf/ssocloud.proto ../../keeperapp-protobuf/token.proto ../../keeperapp-protobuf/upsell.proto ../../keeperapp-protobuf/SyncDown.proto ../../keeperapp-protobuf/BI.proto | pbts -o src/proto.d.ts -", + "test": "jest", + "types": "tsc --watch", + "types:ci": "tsc", + "prepublishOnly": "rollup -c && cp src/proto.d.ts dist", + "publish-to-npm": "npm publish" + }, + "dependencies": { + "@noble/post-quantum": "^0.5.2", + "asmcrypto.js": "^2.3.2", + "faye-websocket": "^0.11.3", + "form-data": "^4.0.4", + "node-rsa": "^1.0.8" + }, + "devDependencies": { + "@babel/preset-env": "^7.23.5", + "@babel/preset-typescript": "^7.23.3", + "@rollup/plugin-commonjs": "^22.0.1", + "@rollup/plugin-node-resolve": "^13.3.0", + "@types/jest": "^24.0.15", + "@types/node": "^20.9.1", + "jest": "^29.6.1", + "jest-environment-jsdom": "^29.7.0", + "protobufjs": "^7.2.4", + "protobufjs-cli": "^1.1.1", + "rollup": "^2.79.2", + "rollup-plugin-typescript2": "^0.32.1", + "ts-jest": "^29.1.1", + "ts-node": "^8.10.2", + "typescript": "^4.0.1" + } } diff --git a/keeperapi/rollup.config.js b/keeperapi/rollup.config.js index 9456250..b08cfb2 100644 --- a/keeperapi/rollup.config.js +++ b/keeperapi/rollup.config.js @@ -1,7 +1,7 @@ -import typescript from "rollup-plugin-typescript2" -import pkg from './package.json' -import resolve from '@rollup/plugin-node-resolve' -import commonjs from '@rollup/plugin-commonjs' +import typescript from 'rollup-plugin-typescript2'; +import pkg from './package.json'; +import resolve from '@rollup/plugin-node-resolve'; +import commonjs from '@rollup/plugin-commonjs'; export default [ { @@ -10,38 +10,36 @@ export default [ { file: pkg.browser, format: 'es', - sourcemap: true + sourcemap: true, }, // { // file: pkg.browsertest, // format: 'cjs', // }, ], - external: [ - ...Object.keys(pkg.dependencies || {}), - "protobufjs/minimal", - "@noble/post-quantum/ml-kem.js" - ], + external: [...Object.keys(pkg.dependencies || {}), 'protobufjs/minimal', '@noble/post-quantum/ml-kem.js'], plugins: [ typescript({ - tsconfig: "tsconfig.rollup.json" - }) - ] + tsconfig: 'tsconfig.rollup.json', + }), + ], }, { input: 'src/browser/browserWorker.ts', - output: [{ - file: 'dist/worker/browserWorker.js', - format: 'iife', - sourcemap: true - }], + output: [ + { + file: 'dist/worker/browserWorker.js', + format: 'iife', + sourcemap: true, + }, + ], plugins: [ typescript({ - tsconfig: "tsconfig.rollup.json" + tsconfig: 'tsconfig.rollup.json', }), resolve(), - commonjs() - ] + commonjs(), + ], }, { input: 'src/node/index.ts', @@ -49,18 +47,21 @@ export default [ { file: pkg.main, format: 'cjs', - sourcemap: true - } + sourcemap: true, + }, ], external: [ ...Object.keys(pkg.dependencies || {}), - "crypto", "constants", "https", "protobufjs/minimal", - "@noble/post-quantum/ml-kem.js" + 'crypto', + 'constants', + 'https', + 'protobufjs/minimal', + '@noble/post-quantum/ml-kem.js', ], plugins: [ typescript({ - tsconfig: "tsconfig.rollup.json" - }) - ] - } + tsconfig: 'tsconfig.rollup.json', + }), + ], + }, ]; diff --git a/keeperapi/scripts/cleanDistFolder.js b/keeperapi/scripts/cleanDistFolder.js index 6bfbe67..5c69285 100644 --- a/keeperapi/scripts/cleanDistFolder.js +++ b/keeperapi/scripts/cleanDistFolder.js @@ -1,9 +1,9 @@ -const fs = require('fs') +const fs = require('fs'); -const distDir = `${__dirname}/../dist` +const distDir = `${__dirname}/../dist`; try { - fs.rmSync(distDir, {recursive: true}) + fs.rmSync(distDir, { recursive: true }); } catch (e) {} -console.log('Dist folder cleaned') +console.log('Dist folder cleaned'); diff --git a/keeperapi/setup-jest.ts b/keeperapi/setup-jest.ts index 1c36da4..677e474 100644 --- a/keeperapi/setup-jest.ts +++ b/keeperapi/setup-jest.ts @@ -4,26 +4,26 @@ */ // @ts-ignore -import crypto from 'crypto' -import { TextEncoder, TextDecoder } from 'util' +import crypto from 'crypto'; +import { TextEncoder, TextDecoder } from 'util'; // Set up global TextEncoder and TextDecoder for jsdom environment -Object.assign(global, { TextDecoder, TextEncoder }) +Object.assign(global, { TextDecoder, TextEncoder }); // Set up crypto object with Web Crypto API for both browser and node environments const cryptoObj = { subtle: crypto.webcrypto.subtle, getRandomValues: (array: Uint8Array) => { - const randomData = crypto.randomBytes(array.length) - array.set(randomData) - return array - } -} + const randomData = crypto.randomBytes(array.length); + array.set(randomData); + return array; + }, +}; // Set up crypto for global.self (browser APIs) - only if self exists (jsdom environment) if (typeof global.self !== 'undefined') { - Object.defineProperty(global.self, 'crypto', { value: cryptoObj }) + Object.defineProperty(global.self, 'crypto', { value: cryptoObj }); } // Set up crypto for globalThis (noble libraries) -Object.defineProperty(globalThis, 'crypto', { value: cryptoObj }) +Object.defineProperty(globalThis, 'crypto', { value: cryptoObj }); diff --git a/keeperapi/src/__tests__/SyncDownResponseBuilder.ts b/keeperapi/src/__tests__/SyncDownResponseBuilder.ts index 8163d97..23cdf45 100644 --- a/keeperapi/src/__tests__/SyncDownResponseBuilder.ts +++ b/keeperapi/src/__tests__/SyncDownResponseBuilder.ts @@ -1,289 +1,324 @@ -import {Records, Vault} from "../proto"; -import {platform, Platform} from "../platform"; -import {Auth} from "../auth"; +import { Records, Vault } from '../proto'; +import { platform, Platform } from '../platform'; +import { Auth } from '../auth'; type RecordFieldData = { - type: string, - value: string[] -} + type: string; + value: string[]; +}; type DecryptedRecordData = { - title: string - fields?: RecordFieldData[] -} + title: string; + fields?: RecordFieldData[]; +}; type DecryptedSecurityScoreDataData = { - padding: string, - password: string, - score: number, - version: number, -} + padding: string; + password: string; + score: number; + version: number; +}; type DecryptedSharedFolderFolderData = { - name: string // folder name -} + name: string; // folder name +}; type DecryptedSharedFolderData = { - name: string -} + name: string; +}; type UserInfo = { - username: string - accountUid: Uint8Array -} + username: string; + accountUid: Uint8Array; +}; type SharedFolderPermissionData = Pick< - Vault.ISharedFolder, - "defaultCanEdit" | "defaultCanReshare" | "defaultManageUsers" | "defaultManageRecords" -> + Vault.ISharedFolder, + 'defaultCanEdit' | 'defaultCanReshare' | 'defaultManageUsers' | 'defaultManageRecords' +>; export class SyncDownResponseBuilder { - private readonly data: Vault.ISyncDownResponse; - private readonly platform: Platform - private readonly auth: Auth - - constructor(platform: Platform, auth: Auth) { - this.platform = platform - this.auth = auth - this.data = { - continuationToken: new Uint8Array([]), - users: [], - teams: [], - userFolders: [], - userFolderRecords: [], - sharedFolders: [], - sharedFolderUsers: [], - sharedFolderTeams: [], - sharedFolderRecords: [], - sharedFolderFolderRecords: [], - userFolderSharedFolders: [], - sharedFolderFolders: [], - recordMetaData: [], - recordLinks: [], - records: [], - nonSharedData: [], - breachWatchRecords: [], - breachWatchSecurityData: [], - securityScoreData: [], - removedTeams: [], - removedRecords: [], - removedRecordLinks: [], - removedUserFolders: [], - removedUserFolderRecords: [], - removedSharedFolderFolders: [], - removedSharedFolderTeams: [], - removedSharedFolderUsers: [], - removedSharedFolderRecords: [], - removedSharedFolderFolderRecords: [], - removedSharedFolders: [], - removedUsers: [], + private readonly data: Vault.ISyncDownResponse; + private readonly platform: Platform; + private readonly auth: Auth; + + constructor(platform: Platform, auth: Auth) { + this.platform = platform; + this.auth = auth; + this.data = { + continuationToken: new Uint8Array([]), + users: [], + teams: [], + userFolders: [], + userFolderRecords: [], + sharedFolders: [], + sharedFolderUsers: [], + sharedFolderTeams: [], + sharedFolderRecords: [], + sharedFolderFolderRecords: [], + userFolderSharedFolders: [], + sharedFolderFolders: [], + recordMetaData: [], + recordLinks: [], + records: [], + nonSharedData: [], + breachWatchRecords: [], + breachWatchSecurityData: [], + securityScoreData: [], + removedTeams: [], + removedRecords: [], + removedRecordLinks: [], + removedUserFolders: [], + removedUserFolderRecords: [], + removedSharedFolderFolders: [], + removedSharedFolderTeams: [], + removedSharedFolderUsers: [], + removedSharedFolderRecords: [], + removedSharedFolderFolderRecords: [], + removedSharedFolders: [], + removedUsers: [], + }; + } + + addUserFolderRecord(userFolderRecord: Vault.IUserFolderRecord) { + this.data.userFolderRecords?.push(userFolderRecord); + } + + addRecordMetadata(recordMetadata: Vault.IRecordMetaData) { + this.data.recordMetaData?.push(recordMetadata); + } + + async addRecord(decryptedRecordData: DecryptedRecordData, encryptionKey?: Uint8Array) { + const decryptedRecordKey = this.platform.getRandomBytes(32); + const recordKey = await this.platform.aesGcmEncrypt( + decryptedRecordKey, + encryptionKey ? encryptionKey : this.auth.dataKey! + ); + const recordUid = this.platform.getRandomBytes(16); + const decodedRecordData = this.platform.stringToBytes(JSON.stringify(decryptedRecordData)); + const recordData = await this.platform.aesGcmEncrypt(decodedRecordData, decryptedRecordKey); + const record: Vault.IRecord = { + recordUid, + version: 3, + data: recordData, + extra: new Uint8Array([]), + revision: Date.now(), + }; + this.data.records?.push(record); + + const passwordField = decryptedRecordData.fields?.find((data) => data.type === 'password'); + const passwordFieldValue = passwordField?.value ? passwordField.value[0] : undefined; + let decryptedSecurityScoreDataData: DecryptedSecurityScoreDataData | undefined; + + // add breach watch / security score data if a password field value presents + if (!!passwordFieldValue) { + this.data.breachWatchSecurityData?.push({ + recordUid, + revision: record.revision, + }); + decryptedSecurityScoreDataData = { + padding: '', + password: passwordFieldValue, + score: 1, + version: 1, + }; + this.data.securityScoreData?.push({ + recordUid, + data: await platform.aesGcmEncrypt( + platform.stringToBytes(JSON.stringify(decryptedSecurityScoreDataData)), + decryptedRecordKey + ), + revision: record.revision, + }); + } + + return { + recordKey, + recordUid, + record, + decryptedSecurityScoreDataData, + decryptedRecordKey, + }; + } + + addRemovedRecord(recordUid: Uint8Array) { + this.data.removedRecords?.push(recordUid); + } + + addUserFolder(userFolder: Vault.IUserFolder) { + this.data.userFolders?.push(userFolder); + } + + addRemovedUserFolder(userFolderId: Uint8Array) { + this.data.removedUserFolders?.push(userFolderId); + } + + addRemovedUserFolderRecord(recordUid: Uint8Array, folderUid: Uint8Array) { + this.data.removedUserFolderRecords?.push({ recordUid, folderUid }); } - } - - addUserFolderRecord(userFolderRecord: Vault.IUserFolderRecord) { - this.data.userFolderRecords?.push(userFolderRecord) - } - - addRecordMetadata(recordMetadata: Vault.IRecordMetaData) { - this.data.recordMetaData?.push(recordMetadata) - } - - async addRecord(decryptedRecordData: DecryptedRecordData, encryptionKey?: Uint8Array) { - const decryptedRecordKey = this.platform.getRandomBytes(32) - const recordKey = await this.platform.aesGcmEncrypt(decryptedRecordKey, encryptionKey ? encryptionKey : this.auth.dataKey!) - const recordUid = this.platform.getRandomBytes(16) - const decodedRecordData = this.platform.stringToBytes(JSON.stringify(decryptedRecordData)) - const recordData = await this.platform.aesGcmEncrypt(decodedRecordData, decryptedRecordKey) - const record: Vault.IRecord = { - recordUid, - version: 3, - data: recordData, - extra: new Uint8Array([]), - revision: Date.now(), + + async addSharedFolder( + decryptedSharedFolderData: DecryptedSharedFolderData, + userInfo: UserInfo, + permissionData: SharedFolderPermissionData, + options?: { + encryptionKey?: Uint8Array; + parentFolderUid?: Uint8Array; + } + ) { + const sharedFolderUid = platform.getRandomBytes(16); + const decryptedSharedFolderKey = platform.getRandomBytes(32); + let sharedFolderKey: Uint8Array; + if (!options?.encryptionKey) { + sharedFolderKey = await platform.aesCbcEncrypt( + decryptedSharedFolderKey, + options?.encryptionKey ? options?.encryptionKey : this.auth.dataKey!, + true + ); + } else { + // normally when a shared folder is shared to a team + sharedFolderKey = platform.publicEncrypt( + decryptedSharedFolderKey, + platform.bytesToBase64(options.encryptionKey) + ); + } + const sharedFolder: Vault.ISharedFolder = { + sharedFolderUid, + sharedFolderKey, + owner: userInfo.username, + ownerAccountUid: userInfo.accountUid, + keyType: options?.encryptionKey + ? Records.RecordKeyType.NO_KEY + : Records.RecordKeyType.ENCRYPTED_BY_DATA_KEY, + revision: Date.now(), + name: await platform.aesCbcEncrypt( + platform.stringToBytes(decryptedSharedFolderData.name), + decryptedSharedFolderKey, + true + ), + data: await platform.aesCbcEncrypt( + platform.stringToBytes(JSON.stringify(decryptedSharedFolderData)), + decryptedSharedFolderKey, + true + ), + ...permissionData, + }; + + this.data.sharedFolders?.push(sharedFolder); + this.data.userFolderSharedFolders?.push({ + sharedFolderUid, + revision: sharedFolder.revision, + folderUid: options?.parentFolderUid ? options?.parentFolderUid : new Uint8Array([]), + }); + + return { sharedFolderUid, sharedFolder, sharedFolderKey, decryptedSharedFolderKey }; + } + + addSharedFolderUser(sharedFolderUser: Vault.ISharedFolderUser) { + this.data.sharedFolderUsers?.push(sharedFolderUser); + } + + addRemovedSharedFolder(sharedFolderUid: Uint8Array) { + this.data.removedSharedFolders?.push(sharedFolderUid); } - this.data.records?.push(record) - - const passwordField = decryptedRecordData.fields?.find(data => data.type === 'password') - const passwordFieldValue = passwordField?.value ? passwordField.value[0] : undefined - let decryptedSecurityScoreDataData: DecryptedSecurityScoreDataData | undefined; - - // add breach watch / security score data if a password field value presents - if (!!passwordFieldValue) { - this.data.breachWatchSecurityData?.push({ - recordUid, - revision: record.revision, - }) - decryptedSecurityScoreDataData = { - padding: '', - password: passwordFieldValue, - score: 1, - version: 1, - } - this.data.securityScoreData?.push({ - recordUid, - data: await platform.aesGcmEncrypt(platform.stringToBytes(JSON.stringify(decryptedSecurityScoreDataData)), decryptedRecordKey), - revision: record.revision, - }) + + addRemovedSharedFolderTeam(sharedFolderTeam: Vault.ISharedFolderTeam) { + this.data.removedSharedFolderTeams?.push(sharedFolderTeam); } - return { - recordKey, - recordUid, - record, - decryptedSecurityScoreDataData, - decryptedRecordKey, + addSharedFolderTeam(sharedFolderTeam: Vault.ISharedFolderTeam) { + this.data.sharedFolderTeams?.push(sharedFolderTeam); } - } - - addRemovedRecord(recordUid: Uint8Array) { - this.data.removedRecords?.push(recordUid) - } - - addUserFolder(userFolder: Vault.IUserFolder) { - this.data.userFolders?.push(userFolder) - } - - addRemovedUserFolder(userFolderId: Uint8Array) { - this.data.removedUserFolders?.push(userFolderId) - } - - addRemovedUserFolderRecord(recordUid: Uint8Array, folderUid: Uint8Array) { - this.data.removedUserFolderRecords?.push({recordUid, folderUid}) - } - - async addSharedFolder( - decryptedSharedFolderData: DecryptedSharedFolderData, - userInfo: UserInfo, - permissionData: SharedFolderPermissionData, - options?: { - encryptionKey?: Uint8Array - parentFolderUid?: Uint8Array - }, - ) { - const sharedFolderUid = platform.getRandomBytes(16) - const decryptedSharedFolderKey = platform.getRandomBytes(32) - let sharedFolderKey: Uint8Array - if (!options?.encryptionKey) { - sharedFolderKey = await platform.aesCbcEncrypt(decryptedSharedFolderKey, options?.encryptionKey ? options?.encryptionKey : this.auth.dataKey!, true) - } else {// normally when a shared folder is shared to a team - sharedFolderKey = platform.publicEncrypt(decryptedSharedFolderKey, platform.bytesToBase64(options.encryptionKey)) + + addTeam(team: Vault.ITeam) { + this.data.teams?.push(team); + } + + addSharedFolderRecord(sharedFolderRecord: Vault.ISharedFolderRecord) { + this.data.sharedFolderRecords?.push(sharedFolderRecord); } - const sharedFolder: Vault.ISharedFolder = { - sharedFolderUid, - sharedFolderKey, - owner: userInfo.username, - ownerAccountUid: userInfo.accountUid, - keyType: options?.encryptionKey ? Records.RecordKeyType.NO_KEY : Records.RecordKeyType.ENCRYPTED_BY_DATA_KEY, - revision: Date.now(), - name: await platform.aesCbcEncrypt(platform.stringToBytes(decryptedSharedFolderData.name), decryptedSharedFolderKey, true), - data: await platform.aesCbcEncrypt(platform.stringToBytes(JSON.stringify(decryptedSharedFolderData)), decryptedSharedFolderKey, true), - ...permissionData, + + addRemovedSharedFolderRecord(sharedFolderRecord: Vault.ISharedFolderRecord) { + this.data.removedSharedFolderRecords?.push(sharedFolderRecord); } - this.data.sharedFolders?.push(sharedFolder) - this.data.userFolderSharedFolders?.push({ - sharedFolderUid, - revision: sharedFolder.revision, - folderUid: options?.parentFolderUid ? options?.parentFolderUid : new Uint8Array([]), - }) - - return {sharedFolderUid, sharedFolder, sharedFolderKey, decryptedSharedFolderKey} - } - - addSharedFolderUser(sharedFolderUser: Vault.ISharedFolderUser) { - this.data.sharedFolderUsers?.push(sharedFolderUser) - } - - addRemovedSharedFolder(sharedFolderUid: Uint8Array) { - this.data.removedSharedFolders?.push(sharedFolderUid) - } - - addRemovedSharedFolderTeam(sharedFolderTeam: Vault.ISharedFolderTeam) { - this.data.removedSharedFolderTeams?.push(sharedFolderTeam) - } - - addSharedFolderTeam(sharedFolderTeam: Vault.ISharedFolderTeam) { - this.data.sharedFolderTeams?.push(sharedFolderTeam) - } - - addTeam(team: Vault.ITeam) { - this.data.teams?.push(team) - } - - addSharedFolderRecord(sharedFolderRecord: Vault.ISharedFolderRecord) { - this.data.sharedFolderRecords?.push(sharedFolderRecord) - } - - addRemovedSharedFolderRecord(sharedFolderRecord: Vault.ISharedFolderRecord) { - this.data.removedSharedFolderRecords?.push(sharedFolderRecord) - } - - async addSharedFolderFolder( - decryptedSharedFolderFolderData: DecryptedSharedFolderFolderData, - sharedFolderUid: Uint8Array, - decryptedSharedFolderKey: Uint8Array, - parentUid: Uint8Array = new Uint8Array([]) + async addSharedFolderFolder( + decryptedSharedFolderFolderData: DecryptedSharedFolderFolderData, + sharedFolderUid: Uint8Array, + decryptedSharedFolderKey: Uint8Array, + parentUid: Uint8Array = new Uint8Array([]) ) { - const sharedFolderFolderUid = platform.getRandomBytes(16) - const decryptedSharedFolderFolderKey = platform.getRandomBytes(32) - const sharedFolderFolderKey = await platform.aesCbcEncrypt(decryptedSharedFolderFolderKey, decryptedSharedFolderKey, true) - const sharedFolderFolder: Vault.ISharedFolderFolder = { - sharedFolderUid, - folderUid: sharedFolderFolderUid, - sharedFolderFolderKey, - keyType: Records.RecordKeyType.ENCRYPTED_BY_DATA_KEY, - revision: Date.now(), - data: await platform.aesCbcEncrypt(platform.stringToBytes(JSON.stringify(decryptedSharedFolderFolderData)), decryptedSharedFolderFolderKey, true), - // either empty or the parent shared folder's uid if the folder is the direct child of the shared folder (level 0) - parentUid, + const sharedFolderFolderUid = platform.getRandomBytes(16); + const decryptedSharedFolderFolderKey = platform.getRandomBytes(32); + const sharedFolderFolderKey = await platform.aesCbcEncrypt( + decryptedSharedFolderFolderKey, + decryptedSharedFolderKey, + true + ); + const sharedFolderFolder: Vault.ISharedFolderFolder = { + sharedFolderUid, + folderUid: sharedFolderFolderUid, + sharedFolderFolderKey, + keyType: Records.RecordKeyType.ENCRYPTED_BY_DATA_KEY, + revision: Date.now(), + data: await platform.aesCbcEncrypt( + platform.stringToBytes(JSON.stringify(decryptedSharedFolderFolderData)), + decryptedSharedFolderFolderKey, + true + ), + // either empty or the parent shared folder's uid if the folder is the direct child of the shared folder (level 0) + parentUid, + }; + + this.data.sharedFolderFolders?.push(sharedFolderFolder); + + return { + sharedFolderFolderUid, + sharedFolderFolder, + }; + } + + addRemovedSharedFolderFolder(removedSharedFolderFolder: Vault.ISharedFolderFolder) { + this.data.removedSharedFolderFolders?.push(removedSharedFolderFolder); + } + + addSharedFolderFolderRecord(sharedFolderFolderRecord: Vault.ISharedFolderFolderRecord) { + this.data.sharedFolderFolderRecords?.push(sharedFolderFolderRecord); } - this.data.sharedFolderFolders?.push(sharedFolderFolder) + addRemovedSharedFolderFolderRecord(sharedFolderFolderRecord: Vault.ISharedFolderFolderRecord) { + this.data.removedSharedFolderFolderRecords?.push(sharedFolderFolderRecord); + } - return { - sharedFolderFolderUid, - sharedFolderFolder, + addRecordLink(recordLink: Vault.IRecordLink) { + this.data.recordLinks?.push(recordLink); } - } - - addRemovedSharedFolderFolder(removedSharedFolderFolder: Vault.ISharedFolderFolder) { - this.data.removedSharedFolderFolders?.push(removedSharedFolderFolder) - } - - addSharedFolderFolderRecord(sharedFolderFolderRecord: Vault.ISharedFolderFolderRecord) { - this.data.sharedFolderFolderRecords?.push(sharedFolderFolderRecord) - } - - addRemovedSharedFolderFolderRecord(sharedFolderFolderRecord: Vault.ISharedFolderFolderRecord) { - this.data.removedSharedFolderFolderRecords?.push(sharedFolderFolderRecord) - } - - addRecordLink(recordLink: Vault.IRecordLink) { - this.data.recordLinks?.push(recordLink) - } - - addRemovedRecordLink(recordLink: Vault.IRecordLink) { - this.data.removedRecordLinks?.push(recordLink) - } - - async addLinkedRecord(data: DecryptedRecordData, version: 3 | 4, encryptionKey: Uint8Array) { - const decryptedLinkedRecordKey = this.platform.getRandomBytes(32) - const linkedRecordUid = platform.getRandomBytes(16) - const linkedRecordKey = await this.platform.aesGcmEncrypt(decryptedLinkedRecordKey, encryptionKey) - const linkedRecordData = await this.platform.aesGcmEncrypt(this.platform.stringToBytes(JSON.stringify(data)), decryptedLinkedRecordKey) - const linkedRecord: Vault.IRecord = { - recordUid: linkedRecordUid, - version, - data: linkedRecordData, - extra: new Uint8Array([]), - revision: Date.now() + + addRemovedRecordLink(recordLink: Vault.IRecordLink) { + this.data.removedRecordLinks?.push(recordLink); } - this.data.records?.push(linkedRecord) - return {linkedRecord, linkedRecordUid, linkedRecordKey} - } + async addLinkedRecord(data: DecryptedRecordData, version: 3 | 4, encryptionKey: Uint8Array) { + const decryptedLinkedRecordKey = this.platform.getRandomBytes(32); + const linkedRecordUid = platform.getRandomBytes(16); + const linkedRecordKey = await this.platform.aesGcmEncrypt(decryptedLinkedRecordKey, encryptionKey); + const linkedRecordData = await this.platform.aesGcmEncrypt( + this.platform.stringToBytes(JSON.stringify(data)), + decryptedLinkedRecordKey + ); + const linkedRecord: Vault.IRecord = { + recordUid: linkedRecordUid, + version, + data: linkedRecordData, + extra: new Uint8Array([]), + revision: Date.now(), + }; + this.data.records?.push(linkedRecord); + + return { linkedRecord, linkedRecordUid, linkedRecordKey }; + } - build() { - return this.data - } -} \ No newline at end of file + build() { + return this.data; + } +} diff --git a/keeperapi/src/__tests__/createUserRequest.test.ts b/keeperapi/src/__tests__/createUserRequest.test.ts index 07bec19..863f7ff 100644 --- a/keeperapi/src/__tests__/createUserRequest.test.ts +++ b/keeperapi/src/__tests__/createUserRequest.test.ts @@ -3,63 +3,70 @@ */ // @ts-ignore -import crypto from 'crypto' -import {nodePlatform} from "../node/platform"; -import {browserPlatform} from "../browser/platform" -import {KeyWrapper, connectPlatform, platform} from "../platform"; +import crypto from 'crypto'; +import { nodePlatform } from '../node/platform'; +import { browserPlatform } from '../browser/platform'; +import { KeyWrapper, connectPlatform, platform } from '../platform'; import { Auth } from '../auth'; import { KeeperEnvironment } from '../endpoint'; describe('create user request', () => { - - const username = 'username' - const password = 'password' - let auth: Auth + const username = 'username'; + const password = 'password'; + let auth: Auth; // needed to create auth initially - connectPlatform(browserPlatform) + connectPlatform(browserPlatform); beforeEach(() => { - auth = createAuth() - }) + auth = createAuth(); + }); it('create user request', async () => { - connectPlatform(browserPlatform) - const kp = await platform.generateECKeyPair() + connectPlatform(browserPlatform); + const kp = await platform.generateECKeyPair(); // @ts-expect-error private prop on class - const user = await auth.createUserRequest(kp.privateKey) + const user = await auth.createUserRequest(kp.privateKey); - const {rsaPublicKey, rsaEncryptedPrivateKey, eccPublicKey, eccEncryptedPrivateKey, encryptedDeviceToken, encryptedClientKey, clientVersion} = user + const { + rsaPublicKey, + rsaEncryptedPrivateKey, + eccPublicKey, + eccEncryptedPrivateKey, + encryptedDeviceToken, + encryptedClientKey, + clientVersion, + } = user; - expect(rsaPublicKey).toBeDefined() - expect(rsaPublicKey && rsaPublicKey.length === 270).toBeTruthy() + expect(rsaPublicKey).toBeDefined(); + expect(rsaPublicKey && rsaPublicKey.length === 270).toBeTruthy(); - expect(rsaEncryptedPrivateKey).toBeDefined() - expect(rsaEncryptedPrivateKey && rsaEncryptedPrivateKey.length === 1216).toBeTruthy() + expect(rsaEncryptedPrivateKey).toBeDefined(); + expect(rsaEncryptedPrivateKey && rsaEncryptedPrivateKey.length === 1216).toBeTruthy(); - expect(eccPublicKey).toBeDefined() - expect(eccPublicKey && eccPublicKey.length === 65).toBeTruthy() + expect(eccPublicKey).toBeDefined(); + expect(eccPublicKey && eccPublicKey.length === 65).toBeTruthy(); - expect(eccEncryptedPrivateKey).toBeDefined() - expect(eccEncryptedPrivateKey && eccEncryptedPrivateKey.length === 60).toBeTruthy() + expect(eccEncryptedPrivateKey).toBeDefined(); + expect(eccEncryptedPrivateKey && eccEncryptedPrivateKey.length === 60).toBeTruthy(); - expect(encryptedDeviceToken).not.toBeDefined() + expect(encryptedDeviceToken).not.toBeDefined(); - expect(encryptedClientKey).toBeDefined() - expect(encryptedClientKey && encryptedClientKey.length === 64).toBeTruthy() + expect(encryptedClientKey).toBeDefined(); + expect(encryptedClientKey && encryptedClientKey.length === 64).toBeTruthy(); - expect(clientVersion).toBeDefined() - expect(clientVersion === 'ec0.0.0').toBeTruthy() - }) -}) + expect(clientVersion).toBeDefined(); + expect(clientVersion === 'ec0.0.0').toBeTruthy(); + }); +}); -function createAuth(){ +function createAuth() { return new Auth({ host: KeeperEnvironment.DEV, clientVersion: 'ec0.0.0', - }) + }); } function createKeyWrapper(key: Uint8Array) { - return KeyWrapper.create(key) -} \ No newline at end of file + return KeyWrapper.create(key); +} diff --git a/keeperapi/src/__tests__/crypto.test.ts b/keeperapi/src/__tests__/crypto.test.ts index cb954a9..c55a70e 100644 --- a/keeperapi/src/__tests__/crypto.test.ts +++ b/keeperapi/src/__tests__/crypto.test.ts @@ -3,65 +3,65 @@ */ // @ts-ignore -import crypto from 'crypto' -import {nodePlatform} from "../node/platform"; -import {browserPlatform} from "../browser/platform" -import {publicKey, privateKey} from "./ecies-test-vectors"; -import {connectPlatform, platform} from "../platform"; +import crypto from 'crypto'; +import { nodePlatform } from '../node/platform'; +import { browserPlatform } from '../browser/platform'; +import { publicKey, privateKey } from './ecies-test-vectors'; +import { connectPlatform, platform } from '../platform'; describe('crypto test', () => { it('node API encrypts a message under EC and then decrypts it (test key pair)', async () => { - connectPlatform(nodePlatform) - await ecEncryptionTest(publicKey, privateKey) - }) + connectPlatform(nodePlatform); + await ecEncryptionTest(publicKey, privateKey); + }); it('node API encrypts a message under EC and then decrypts it (generated key pair)', async () => { - connectPlatform(nodePlatform) - const kp = await platform.generateECKeyPair() - await ecEncryptionTest(kp.publicKey, kp.privateKey) - }) + connectPlatform(nodePlatform); + const kp = await platform.generateECKeyPair(); + await ecEncryptionTest(kp.publicKey, kp.privateKey); + }); it('browser API encrypts a message under EC and then decrypts it (test key pair)', async () => { - connectPlatform(browserPlatform) - await ecEncryptionTest(publicKey, privateKey) - }) + connectPlatform(browserPlatform); + await ecEncryptionTest(publicKey, privateKey); + }); it('browser API encrypts a message under EC and then decrypts it (generated key pair)', async () => { - connectPlatform(browserPlatform) - const kp = await platform.generateECKeyPair() - await ecEncryptionTest(kp.publicKey, kp.privateKey) - }) + connectPlatform(browserPlatform); + const kp = await platform.generateECKeyPair(); + await ecEncryptionTest(kp.publicKey, kp.privateKey); + }); it('node API encrypts a message with HKDF under EC and then decrypts it (test key pair)', async () => { - connectPlatform(nodePlatform) - await ecWithHkdfEncryptionTest(publicKey, privateKey) - }) + connectPlatform(nodePlatform); + await ecWithHkdfEncryptionTest(publicKey, privateKey); + }); it('node API encrypts a message with HKDF under EC and then decrypts it (generated key pair)', async () => { - connectPlatform(nodePlatform) - const kp = await platform.generateECKeyPair() - await ecWithHkdfEncryptionTest(kp.publicKey, kp.privateKey) - }) + connectPlatform(nodePlatform); + const kp = await platform.generateECKeyPair(); + await ecWithHkdfEncryptionTest(kp.publicKey, kp.privateKey); + }); it('browser API encrypts a message with HKDF under EC and then decrypts it (test key pair)', async () => { - connectPlatform(browserPlatform) - await ecWithHkdfEncryptionTest(publicKey, privateKey) - }) + connectPlatform(browserPlatform); + await ecWithHkdfEncryptionTest(publicKey, privateKey); + }); it('browser API encrypts a message with HKDF under EC and then decrypts it (generated key pair)', async () => { - connectPlatform(browserPlatform) - const kp = await platform.generateECKeyPair() - await ecWithHkdfEncryptionTest(kp.publicKey, kp.privateKey) - }) -}) + connectPlatform(browserPlatform); + const kp = await platform.generateECKeyPair(); + await ecWithHkdfEncryptionTest(kp.publicKey, kp.privateKey); + }); +}); async function ecEncryptionTest(publicKey: Uint8Array, privateKey: Uint8Array) { - const message = 'test' - const cipher = await platform.publicEncryptEC(platform.stringToBytes(message), publicKey, Buffer.from([])) - expect(cipher).toBeTruthy() - const decryptedBuffer = await platform.privateDecryptEC(cipher, privateKey, publicKey, undefined) - const decryptedMsg = platform.bytesToString(decryptedBuffer) - expect(decryptedMsg).toEqual(message) + const message = 'test'; + const cipher = await platform.publicEncryptEC(platform.stringToBytes(message), publicKey, Buffer.from([])); + expect(cipher).toBeTruthy(); + const decryptedBuffer = await platform.privateDecryptEC(cipher, privateKey, publicKey, undefined); + const decryptedMsg = platform.bytesToString(decryptedBuffer); + expect(decryptedMsg).toEqual(message); } async function ecWithHkdfEncryptionTest(publicKey: Uint8Array, privateKey: Uint8Array) { - const message = 'test' - const cipher = await platform.publicEncryptECWithHKDF(message, publicKey, Buffer.from([])) - expect(cipher).toBeTruthy() - const decryptedBuffer = await platform.privateDecryptEC(cipher, privateKey, publicKey, undefined, true) - const decryptedMsg = platform.bytesToString(decryptedBuffer) - expect(decryptedMsg).toEqual(message) + const message = 'test'; + const cipher = await platform.publicEncryptECWithHKDF(message, publicKey, Buffer.from([])); + expect(cipher).toBeTruthy(); + const decryptedBuffer = await platform.privateDecryptEC(cipher, privateKey, publicKey, undefined, true); + const decryptedMsg = platform.bytesToString(decryptedBuffer); + expect(decryptedMsg).toEqual(message); } diff --git a/keeperapi/src/__tests__/ecies-test-vectors.ts b/keeperapi/src/__tests__/ecies-test-vectors.ts index 6621fa2..5f65904 100644 --- a/keeperapi/src/__tests__/ecies-test-vectors.ts +++ b/keeperapi/src/__tests__/ecies-test-vectors.ts @@ -1,5 +1,7 @@ -export const publicKey = new Uint8Array(Buffer.from('BHkCO8yY00I3_4W1iwWGnLSE3DTaQnoLBrTYD1nSjyKF1QFIZgGKZhgofxWE9Ss4OrZV24Oyl080377FGd_Iv_I', 'base64url')) +export const publicKey = new Uint8Array( + Buffer.from('BHkCO8yY00I3_4W1iwWGnLSE3DTaQnoLBrTYD1nSjyKF1QFIZgGKZhgofxWE9Ss4OrZV24Oyl080377FGd_Iv_I', 'base64url') +); -export const privateKey = new Uint8Array(Buffer.from('Rew7EMRzZcnMM3vvhN8tjdk6x2V4tHuzHKTM5z2QYpo', 'base64url')) +export const privateKey = new Uint8Array(Buffer.from('Rew7EMRzZcnMM3vvhN8tjdk6x2V4tHuzHKTM5z2QYpo', 'base64url')); -export const id = 'keeper-unit-test' \ No newline at end of file +export const id = 'keeper-unit-test'; diff --git a/keeperapi/src/__tests__/endpoint.test.ts b/keeperapi/src/__tests__/endpoint.test.ts index 71d5c0f..8f6deb7 100644 --- a/keeperapi/src/__tests__/endpoint.test.ts +++ b/keeperapi/src/__tests__/endpoint.test.ts @@ -2,48 +2,48 @@ * @jest-environment jsdom */ -import { KeeperEndpoint } from '../endpoint' -import { platform, connectPlatform } from '../platform' -import { browserPlatform } from '../browser/platform' -import { ClientConfigurationInternal } from '../configuration' -import { AllowedMlKemKeyIds, isAllowedEcKeyId, isAllowedMlKemKeyId } from '../transmissionKeys' -import { KeeperError } from '../configuration' -import { Authentication } from '../proto' -import { startLoginMessage } from '../restMessages' -import { HPKE_ECDH_KYBER, Ciphersuite, MlKemVariant, mlKemKeygen, encodeMlKemPublicKeyToPem } from '../qrc' -import { getKeeperMlKemKeyVariant } from '../transmissionKeys' -import { KeeperHttpResponse } from '../commands' +import { KeeperEndpoint } from '../endpoint'; +import { platform, connectPlatform } from '../platform'; +import { browserPlatform } from '../browser/platform'; +import { ClientConfigurationInternal } from '../configuration'; +import { AllowedMlKemKeyIds, isAllowedEcKeyId, isAllowedMlKemKeyId } from '../transmissionKeys'; +import { KeeperError } from '../configuration'; +import { Authentication } from '../proto'; +import { startLoginMessage } from '../restMessages'; +import { HPKE_ECDH_KYBER, Ciphersuite, MlKemVariant, mlKemKeygen, encodeMlKemPublicKeyToPem } from '../qrc'; +import { getKeeperMlKemKeyVariant } from '../transmissionKeys'; +import { KeeperHttpResponse } from '../commands'; // Mock server key configuration interface MockServerKeys { - ecKeyId: number - mlKemKeyId?: number // Optional: when undefined, server doesn't support HPKE + ecKeyId: number; + mlKemKeyId?: number; // Optional: when undefined, server doesn't support HPKE } // Store test server keys (generated in beforeAll) const testServerKeys: { [keyId: number]: { - publicKey: Uint8Array - privateKey: Uint8Array // EC private key as raw bytes - } -} = {} + publicKey: Uint8Array; + privateKey: Uint8Array; // EC private key as raw bytes + }; +} = {}; const testServerMlKemKeys: { [keyId: number]: { - publicKey: Uint8Array - privateKey: Uint8Array // ML-KEM private key - } -} = {} + publicKey: Uint8Array; + privateKey: Uint8Array; // ML-KEM private key + }; +} = {}; -let mockServerKeys: MockServerKeys +let mockServerKeys: MockServerKeys; describe('KeeperEndpoint - Transmission Key ID Rotation', () => { - let endpoint: KeeperEndpoint - let mockConfig: ClientConfigurationInternal - let onDeviceConfigMock = jest.fn() - let postSpy: jest.SpyInstance - const defaultEcKeyId = 10 - const defaultMlKemKeyId = 136 + let endpoint: KeeperEndpoint; + let mockConfig: ClientConfigurationInternal; + let onDeviceConfigMock = jest.fn(); + let postSpy: jest.SpyInstance; + const defaultEcKeyId = 10; + const defaultMlKemKeyId = 136; const startLoginRequest = startLoginMessage({ clientVersion: '17.0.0', @@ -51,45 +51,45 @@ describe('KeeperEndpoint - Transmission Key ID Rotation', () => { encryptedDeviceToken: new Uint8Array([1, 2, 3, 4, 5]), loginType: Authentication.LoginType.NORMAL, loginMethod: Authentication.LoginMethod.EXISTING_ACCOUNT, - }) + }); beforeAll(async () => { - connectPlatform(browserPlatform) + connectPlatform(browserPlatform); // Generate our own EC key pairs for testing, since we need private keys const ecKeyIds = Object.keys(platform.keys) .map(Number) - .filter(id => !isNaN(id) && isAllowedEcKeyId(id)) + .filter((id) => !isNaN(id) && isAllowedEcKeyId(id)); for (const keyId of ecKeyIds) { - const ecdh = await platform.generateECKeyPair() + const ecdh = await platform.generateECKeyPair(); testServerKeys[keyId] = { publicKey: ecdh.publicKey, - privateKey: ecdh.privateKey - } - platform.keys[keyId] = ecdh.publicKey + privateKey: ecdh.privateKey, + }; + platform.keys[keyId] = ecdh.publicKey; } // Generate our own ML-KEM key pairs for testing const mlKemKeyIds = Object.keys(platform.mlKemKeys) .map(Number) - .filter(id => !isNaN(id) && isAllowedMlKemKeyId(id)) + .filter((id) => !isNaN(id) && isAllowedMlKemKeyId(id)); for (const keyId of mlKemKeyIds) { - const variant = getKeeperMlKemKeyVariant(keyId as AllowedMlKemKeyIds) - const mlKemKeyPair = mlKemKeygen(variant) + const variant = getKeeperMlKemKeyVariant(keyId as AllowedMlKemKeyIds); + const mlKemKeyPair = mlKemKeygen(variant); testServerMlKemKeys[keyId] = { publicKey: mlKemKeyPair.publicKey, - privateKey: mlKemKeyPair.privateKey - } - const pemPublicKey = encodeMlKemPublicKeyToPem(mlKemKeyPair.publicKey, variant) - platform.mlKemKeys[keyId] = pemPublicKey + privateKey: mlKemKeyPair.privateKey, + }; + const pemPublicKey = encodeMlKemPublicKeyToPem(mlKemKeyPair.publicKey, variant); + platform.mlKemKeys[keyId] = pemPublicKey; } - }) + }); beforeEach(async () => { - jest.clearAllMocks() + jest.clearAllMocks(); // Generate real keys for testing - const ecdh = await platform.generateECKeyPair() + const ecdh = await platform.generateECKeyPair(); mockConfig = { host: 'test.keepersecurity.com', @@ -103,316 +103,312 @@ describe('KeeperEndpoint - Transmission Key ID Rotation', () => { }, clientVersion: 'ec17.6.0', onDeviceConfig: onDeviceConfigMock, - } + }; - endpoint = new KeeperEndpoint(mockConfig) + endpoint = new KeeperEndpoint(mockConfig); // Default mock server keys match client config mockServerKeys = { ecKeyId: mockConfig.deviceConfig.transmissionKeyId!, mlKemKeyId: mockConfig.deviceConfig.mlKemPublicKeyId!, - } + }; // Single mock implementation for platform.post - postSpy = jest.spyOn(platform, 'post').mockImplementation(mockPlatformPost) - }) + postSpy = jest.spyOn(platform, 'post').mockImplementation(mockPlatformPost); + }); afterEach(() => { - jest.restoreAllMocks() - }) + jest.restoreAllMocks(); + }); it('should rotate both EC and ML-KEM keys when using HPKE', async () => { - const newEcKeyId = 11 - const newMlKemKeyId = 124 + const newEcKeyId = 11; + const newMlKemKeyId = 124; // Enable HPKE for this test - mockConfig.useHpkeForTransmissionKey = true - mockConfig.deviceConfig.useHpkeTransmission = true - endpoint = new KeeperEndpoint(mockConfig) + mockConfig.useHpkeForTransmissionKey = true; + mockConfig.deviceConfig.useHpkeTransmission = true; + endpoint = new KeeperEndpoint(mockConfig); // Configure mock server to expect new key IDs - mockServerKeys.ecKeyId = newEcKeyId - mockServerKeys.mlKemKeyId = newMlKemKeyId + mockServerKeys.ecKeyId = newEcKeyId; + mockServerKeys.mlKemKeyId = newMlKemKeyId; // Ensure keys are different before rotation - expect(mockConfig.deviceConfig.transmissionKeyId).not.toBe(newEcKeyId) - expect(mockConfig.deviceConfig.mlKemPublicKeyId).not.toBe(newMlKemKeyId) + expect(mockConfig.deviceConfig.transmissionKeyId).not.toBe(newEcKeyId); + expect(mockConfig.deviceConfig.mlKemPublicKeyId).not.toBe(newMlKemKeyId); // Execute startLogin which should trigger key rotation - await endpoint.executeRest(startLoginRequest) + await endpoint.executeRest(startLoginRequest); // Verify that updateTransmissionKey was called with correct parameters - expect(mockConfig.deviceConfig.transmissionKeyId).toBe(newEcKeyId) - expect(mockConfig.deviceConfig.mlKemPublicKeyId).toBe(newMlKemKeyId) - expect(onDeviceConfigMock).toHaveBeenCalledTimes(1) - expect(postSpy).toHaveBeenCalledTimes(2) // First fails, second succeeds + expect(mockConfig.deviceConfig.transmissionKeyId).toBe(newEcKeyId); + expect(mockConfig.deviceConfig.mlKemPublicKeyId).toBe(newMlKemKeyId); + expect(onDeviceConfigMock).toHaveBeenCalledTimes(1); + expect(postSpy).toHaveBeenCalledTimes(2); // First fails, second succeeds // Check that both calls supplied a qrcMessageKey (HPKE), // and updated keys were used in the second call - const firstCallArgs = postSpy.mock.calls[0] - const firstRequest = Authentication.ApiRequest.decode(firstCallArgs[1]) - expect(firstRequest.qrcMessageKey).toBeDefined() - expect(firstRequest.qrcMessageKey!.ecKeyId).toBe(defaultEcKeyId) - expect(firstRequest.publicKeyId).toBe(defaultMlKemKeyId) - const secondCallArgs = postSpy.mock.calls[1] - const secondRequest = Authentication.ApiRequest.decode(secondCallArgs[1]) - expect(secondRequest.qrcMessageKey).toBeDefined() - expect(secondRequest.qrcMessageKey!.ecKeyId).toBe(newEcKeyId) - expect(secondRequest.publicKeyId).toBe(newMlKemKeyId) - }) + const firstCallArgs = postSpy.mock.calls[0]; + const firstRequest = Authentication.ApiRequest.decode(firstCallArgs[1]); + expect(firstRequest.qrcMessageKey).toBeDefined(); + expect(firstRequest.qrcMessageKey!.ecKeyId).toBe(defaultEcKeyId); + expect(firstRequest.publicKeyId).toBe(defaultMlKemKeyId); + const secondCallArgs = postSpy.mock.calls[1]; + const secondRequest = Authentication.ApiRequest.decode(secondCallArgs[1]); + expect(secondRequest.qrcMessageKey).toBeDefined(); + expect(secondRequest.qrcMessageKey!.ecKeyId).toBe(newEcKeyId); + expect(secondRequest.publicKeyId).toBe(newMlKemKeyId); + }); it('should rotate just EC key when using EC (not HPKE)', async () => { - const newEcKeyId = 11 - const newMlKemKeyId = 124 + const newEcKeyId = 11; + const newMlKemKeyId = 124; // Configure mock server to expect new key IDs - mockServerKeys.ecKeyId = newEcKeyId - mockServerKeys.mlKemKeyId = newMlKemKeyId + mockServerKeys.ecKeyId = newEcKeyId; + mockServerKeys.mlKemKeyId = newMlKemKeyId; // Ensure keys are different before rotation - expect(mockConfig.deviceConfig.transmissionKeyId).not.toBe(newEcKeyId) - expect(mockConfig.deviceConfig.mlKemPublicKeyId).not.toBe(newMlKemKeyId) + expect(mockConfig.deviceConfig.transmissionKeyId).not.toBe(newEcKeyId); + expect(mockConfig.deviceConfig.mlKemPublicKeyId).not.toBe(newMlKemKeyId); // Execute startLogin which should trigger key rotation - await endpoint.executeRest(startLoginRequest) + await endpoint.executeRest(startLoginRequest); // Verify that EC key was updated and ML-KEM wasn't (since we only used EC) - expect(mockConfig.deviceConfig.transmissionKeyId).toBe(newEcKeyId) - expect(mockConfig.deviceConfig.mlKemPublicKeyId).toBe(defaultMlKemKeyId) - expect(onDeviceConfigMock).toHaveBeenCalledTimes(1) - expect(postSpy).toHaveBeenCalledTimes(2) // First fails, second succeeds + expect(mockConfig.deviceConfig.transmissionKeyId).toBe(newEcKeyId); + expect(mockConfig.deviceConfig.mlKemPublicKeyId).toBe(defaultMlKemKeyId); + expect(onDeviceConfigMock).toHaveBeenCalledTimes(1); + expect(postSpy).toHaveBeenCalledTimes(2); // First fails, second succeeds // Check that first call used qrcMessageKey (HPKE), // and second call did not (non-HPKE) - const firstCallArgs = postSpy.mock.calls[0] - const firstRequest = Authentication.ApiRequest.decode(firstCallArgs[1]) - expect(firstRequest.qrcMessageKey).toBeNull() - expect(firstRequest.publicKeyId).toBe(defaultEcKeyId) - const secondCallArgs = postSpy.mock.calls[1] - const secondRequest = Authentication.ApiRequest.decode(secondCallArgs[1]) - expect(secondRequest.qrcMessageKey).toBeNull() - expect(secondRequest.publicKeyId).toBe(newEcKeyId) - }) + const firstCallArgs = postSpy.mock.calls[0]; + const firstRequest = Authentication.ApiRequest.decode(firstCallArgs[1]); + expect(firstRequest.qrcMessageKey).toBeNull(); + expect(firstRequest.publicKeyId).toBe(defaultEcKeyId); + const secondCallArgs = postSpy.mock.calls[1]; + const secondRequest = Authentication.ApiRequest.decode(secondCallArgs[1]); + expect(secondRequest.qrcMessageKey).toBeNull(); + expect(secondRequest.publicKeyId).toBe(newEcKeyId); + }); it('should use default keys when device config has no keys set (EC)', async () => { - const newEcKeyId = 11 - const newMlKemKeyId = 124 + const newEcKeyId = 11; + const newMlKemKeyId = 124; // Clear device config keys to simulate newly registered device - mockConfig.deviceConfig.transmissionKeyId = undefined - mockConfig.deviceConfig.mlKemPublicKeyId = undefined - endpoint = new KeeperEndpoint(mockConfig) + mockConfig.deviceConfig.transmissionKeyId = undefined; + mockConfig.deviceConfig.mlKemPublicKeyId = undefined; + endpoint = new KeeperEndpoint(mockConfig); // Configure mock server to expect new key IDs - mockServerKeys.ecKeyId = newEcKeyId - mockServerKeys.mlKemKeyId = newMlKemKeyId + mockServerKeys.ecKeyId = newEcKeyId; + mockServerKeys.mlKemKeyId = newMlKemKeyId; // Execute startLogin which should trigger key rotation - await endpoint.executeRest(startLoginRequest) + await endpoint.executeRest(startLoginRequest); // Verify that EC key was updated and ML-KEM wasn't (since we only used EC) - expect(mockConfig.deviceConfig.transmissionKeyId).toBe(newEcKeyId) - expect(mockConfig.deviceConfig.mlKemPublicKeyId).toBe(defaultMlKemKeyId) - expect(onDeviceConfigMock).toHaveBeenCalledTimes(1) - expect(postSpy).toHaveBeenCalledTimes(2) // First fails, second succeeds + expect(mockConfig.deviceConfig.transmissionKeyId).toBe(newEcKeyId); + expect(mockConfig.deviceConfig.mlKemPublicKeyId).toBe(defaultMlKemKeyId); + expect(onDeviceConfigMock).toHaveBeenCalledTimes(1); + expect(postSpy).toHaveBeenCalledTimes(2); // First fails, second succeeds // Check that the first call used the default EC key, and second used the new EC key - const firstCallArgs = postSpy.mock.calls[0] - const firstRequest = Authentication.ApiRequest.decode(firstCallArgs[1]) - expect(firstRequest.qrcMessageKey).toBeNull() - expect(firstRequest.publicKeyId).toBe(defaultEcKeyId) - const secondCallArgs = postSpy.mock.calls[1] - const secondRequest = Authentication.ApiRequest.decode(secondCallArgs[1]) - expect(secondRequest.qrcMessageKey).toBeNull() - expect(secondRequest.publicKeyId).toBe(newEcKeyId) - }) + const firstCallArgs = postSpy.mock.calls[0]; + const firstRequest = Authentication.ApiRequest.decode(firstCallArgs[1]); + expect(firstRequest.qrcMessageKey).toBeNull(); + expect(firstRequest.publicKeyId).toBe(defaultEcKeyId); + const secondCallArgs = postSpy.mock.calls[1]; + const secondRequest = Authentication.ApiRequest.decode(secondCallArgs[1]); + expect(secondRequest.qrcMessageKey).toBeNull(); + expect(secondRequest.publicKeyId).toBe(newEcKeyId); + }); it('should use default keys when device config has no keys set (HPKE)', async () => { - const newEcKeyId = 11 - const newMlKemKeyId = 124 + const newEcKeyId = 11; + const newMlKemKeyId = 124; // Clear device config keys to simulate newly registered device - mockConfig.deviceConfig.transmissionKeyId = undefined - mockConfig.deviceConfig.mlKemPublicKeyId = undefined - mockConfig.useHpkeForTransmissionKey = true - endpoint = new KeeperEndpoint(mockConfig) + mockConfig.deviceConfig.transmissionKeyId = undefined; + mockConfig.deviceConfig.mlKemPublicKeyId = undefined; + mockConfig.useHpkeForTransmissionKey = true; + endpoint = new KeeperEndpoint(mockConfig); // Configure mock server to expect new key IDs - mockServerKeys.ecKeyId = newEcKeyId - mockServerKeys.mlKemKeyId = newMlKemKeyId + mockServerKeys.ecKeyId = newEcKeyId; + mockServerKeys.mlKemKeyId = newMlKemKeyId; // Execute startLogin which should trigger key rotation - await endpoint.executeRest(startLoginRequest) + await endpoint.executeRest(startLoginRequest); // Verify that both keys were updated - expect(mockConfig.deviceConfig.transmissionKeyId).toBe(newEcKeyId) - expect(mockConfig.deviceConfig.mlKemPublicKeyId).toBe(newMlKemKeyId) - expect(onDeviceConfigMock).toHaveBeenCalledTimes(1) - expect(postSpy).toHaveBeenCalledTimes(2) // First fails, second succeeds + expect(mockConfig.deviceConfig.transmissionKeyId).toBe(newEcKeyId); + expect(mockConfig.deviceConfig.mlKemPublicKeyId).toBe(newMlKemKeyId); + expect(onDeviceConfigMock).toHaveBeenCalledTimes(1); + expect(postSpy).toHaveBeenCalledTimes(2); // First fails, second succeeds // Check that the first call used the default keys, and second used the new keys - const firstCallArgs = postSpy.mock.calls[0] - const firstRequest = Authentication.ApiRequest.decode(firstCallArgs[1]) - expect(firstRequest.qrcMessageKey).toBeDefined() - expect(firstRequest.qrcMessageKey!.ecKeyId).toBe(defaultEcKeyId) - expect(firstRequest.publicKeyId).toBe(defaultMlKemKeyId) - const secondCallArgs = postSpy.mock.calls[1] - const secondRequest = Authentication.ApiRequest.decode(secondCallArgs[1]) - expect(secondRequest.qrcMessageKey).toBeDefined() - expect(secondRequest.qrcMessageKey!.ecKeyId).toBe(newEcKeyId) - expect(secondRequest.publicKeyId).toBe(newMlKemKeyId) - }) + const firstCallArgs = postSpy.mock.calls[0]; + const firstRequest = Authentication.ApiRequest.decode(firstCallArgs[1]); + expect(firstRequest.qrcMessageKey).toBeDefined(); + expect(firstRequest.qrcMessageKey!.ecKeyId).toBe(defaultEcKeyId); + expect(firstRequest.publicKeyId).toBe(defaultMlKemKeyId); + const secondCallArgs = postSpy.mock.calls[1]; + const secondRequest = Authentication.ApiRequest.decode(secondCallArgs[1]); + expect(secondRequest.qrcMessageKey).toBeDefined(); + expect(secondRequest.qrcMessageKey!.ecKeyId).toBe(newEcKeyId); + expect(secondRequest.publicKeyId).toBe(newMlKemKeyId); + }); it("should switch from HPKE to non-HPKE when server doesn't support HPKE", async () => { - const newEcKeyId = 11 + const newEcKeyId = 11; // Enable HPKE for client - mockConfig.useHpkeForTransmissionKey = true - mockConfig.deviceConfig.useHpkeTransmission = true - endpoint = new KeeperEndpoint(mockConfig) + mockConfig.useHpkeForTransmissionKey = true; + mockConfig.deviceConfig.useHpkeTransmission = true; + endpoint = new KeeperEndpoint(mockConfig); // Configure mock server to not support HPKE (no ML-KEM key) mockServerKeys = { ecKeyId: newEcKeyId, - mlKemKeyId: undefined, // Server doesn't support HPKE - } + mlKemKeyId: undefined, // Server doesn't support HPKE + }; // Execute startLogin - await endpoint.executeRest(startLoginRequest) + await endpoint.executeRest(startLoginRequest); // Verify client switched to non-HPKE and updated EC key only - expect(mockConfig.deviceConfig.transmissionKeyId).toBe(newEcKeyId) - expect(mockConfig.deviceConfig.useHpkeTransmission).toBe(false) - expect(mockConfig.deviceConfig.mlKemPublicKeyId).toBe(defaultMlKemKeyId) // ML-KEM key unchanged + expect(mockConfig.deviceConfig.transmissionKeyId).toBe(newEcKeyId); + expect(mockConfig.deviceConfig.useHpkeTransmission).toBe(false); + expect(mockConfig.deviceConfig.mlKemPublicKeyId).toBe(defaultMlKemKeyId); // ML-KEM key unchanged // onDeviceConfig called twice: once to disable HPKE, once to update EC key - expect(onDeviceConfigMock).toHaveBeenCalledTimes(2) - expect(postSpy).toHaveBeenCalledTimes(2) // First HPKE fails, second non-HPKE succeeds + expect(onDeviceConfigMock).toHaveBeenCalledTimes(2); + expect(postSpy).toHaveBeenCalledTimes(2); // First HPKE fails, second non-HPKE succeeds // Verify first call used HPKE and second used non-HPKE - const firstCallArgs = postSpy.mock.calls[0] - const firstRequest = Authentication.ApiRequest.decode(firstCallArgs[1]) - expect(firstRequest.qrcMessageKey).toBeDefined() + const firstCallArgs = postSpy.mock.calls[0]; + const firstRequest = Authentication.ApiRequest.decode(firstCallArgs[1]); + expect(firstRequest.qrcMessageKey).toBeDefined(); - const secondCallArgs = postSpy.mock.calls[1] - const secondRequest = Authentication.ApiRequest.decode(secondCallArgs[1]) - expect(secondRequest.qrcMessageKey).toBeNull() - expect(secondRequest.publicKeyId).toBe(newEcKeyId) - }) + const secondCallArgs = postSpy.mock.calls[1]; + const secondRequest = Authentication.ApiRequest.decode(secondCallArgs[1]); + expect(secondRequest.qrcMessageKey).toBeNull(); + expect(secondRequest.publicKeyId).toBe(newEcKeyId); + }); it('should switch from HPKE to non-HPKE when returned qrc_ec_key_id is unknown to client', async () => { - const validEcKeyId = 11 - const unknownMlKemKeyId = 999 // ML-KEM key ID not in testServerMlKemKeys + const validEcKeyId = 11; + const unknownMlKemKeyId = 999; // ML-KEM key ID not in testServerMlKemKeys // Enable HPKE for client - mockConfig.useHpkeForTransmissionKey = true - mockConfig.deviceConfig.useHpkeTransmission = true - endpoint = new KeeperEndpoint(mockConfig) + mockConfig.useHpkeForTransmissionKey = true; + mockConfig.deviceConfig.useHpkeTransmission = true; + endpoint = new KeeperEndpoint(mockConfig); // Configure server with unknown ML-KEM key ID but valid EC key ID mockServerKeys = { ecKeyId: validEcKeyId, - mlKemKeyId: unknownMlKemKeyId, // Unknown to client - will trigger fallback - } + mlKemKeyId: unknownMlKemKeyId, // Unknown to client - will trigger fallback + }; // Execute startLogin - client will try HPKE first, get unknown ML-KEM key, fall back to non-HPKE - await endpoint.executeRest(startLoginRequest) + await endpoint.executeRest(startLoginRequest); // Verify client switched to non-HPKE and uses valid EC key - expect(mockConfig.deviceConfig.transmissionKeyId).toBe(validEcKeyId) - expect(mockConfig.deviceConfig.useHpkeTransmission).toBe(false) + expect(mockConfig.deviceConfig.transmissionKeyId).toBe(validEcKeyId); + expect(mockConfig.deviceConfig.useHpkeTransmission).toBe(false); // onDeviceConfig called twice: once to disable HPKE, once to update EC key - expect(onDeviceConfigMock).toHaveBeenCalledTimes(2) - expect(postSpy).toHaveBeenCalledTimes(2) + expect(onDeviceConfigMock).toHaveBeenCalledTimes(2); + expect(postSpy).toHaveBeenCalledTimes(2); // Verify first call used HPKE and second used non-HPKE - const firstCallArgs = postSpy.mock.calls[0] - const firstRequest = Authentication.ApiRequest.decode(firstCallArgs[1]) - expect(firstRequest.qrcMessageKey).toBeDefined() + const firstCallArgs = postSpy.mock.calls[0]; + const firstRequest = Authentication.ApiRequest.decode(firstCallArgs[1]); + expect(firstRequest.qrcMessageKey).toBeDefined(); - const secondCallArgs = postSpy.mock.calls[1] - const secondRequest = Authentication.ApiRequest.decode(secondCallArgs[1]) - expect(secondRequest.qrcMessageKey).toBeNull() - expect(secondRequest.publicKeyId).toBe(validEcKeyId) - }) + const secondCallArgs = postSpy.mock.calls[1]; + const secondRequest = Authentication.ApiRequest.decode(secondCallArgs[1]); + expect(secondRequest.qrcMessageKey).toBeNull(); + expect(secondRequest.publicKeyId).toBe(validEcKeyId); + }); it('should give device config precedence over global config for HPKE usage', async () => { - const newEcKeyId = 11 - const newMlKemKeyId = 124 + const newEcKeyId = 11; + const newMlKemKeyId = 124; // Global config says use HPKE, but device config says don't // (e.g., server previously told us it doesn't support HPKE, // or the server told us to use an unknown ML-KEM key ID) - mockConfig.useHpkeForTransmissionKey = true // Client: use/allow HPKE - mockConfig.deviceConfig.useHpkeTransmission = false // Device: don't use HPKE - endpoint = new KeeperEndpoint(mockConfig) + mockConfig.useHpkeForTransmissionKey = true; // Client: use/allow HPKE + mockConfig.deviceConfig.useHpkeTransmission = false; // Device: don't use HPKE + endpoint = new KeeperEndpoint(mockConfig); // Configure mock server for non-HPKE (device config should take precedence) mockServerKeys = { ecKeyId: newEcKeyId, mlKemKeyId: newMlKemKeyId, - } + }; // Execute startLogin - await endpoint.executeRest(startLoginRequest) + await endpoint.executeRest(startLoginRequest); // Verify device config took precedence - client used non-HPKE - expect(mockConfig.deviceConfig.transmissionKeyId).toBe(newEcKeyId) - expect(mockConfig.deviceConfig.useHpkeTransmission).toBe(false) - expect(mockConfig.deviceConfig.mlKemPublicKeyId).toBe(defaultMlKemKeyId) // ML-KEM key unchanged - expect(postSpy).toHaveBeenCalledTimes(2) + expect(mockConfig.deviceConfig.transmissionKeyId).toBe(newEcKeyId); + expect(mockConfig.deviceConfig.useHpkeTransmission).toBe(false); + expect(mockConfig.deviceConfig.mlKemPublicKeyId).toBe(defaultMlKemKeyId); // ML-KEM key unchanged + expect(postSpy).toHaveBeenCalledTimes(2); // Verify non-HPKE was used (no qrcMessageKey) - const firstCallArgs = postSpy.mock.calls[0] - const firstRequest = Authentication.ApiRequest.decode(firstCallArgs[1]) - expect(firstRequest.qrcMessageKey).toBeNull() - expect(firstRequest.publicKeyId).toBe(defaultEcKeyId) + const firstCallArgs = postSpy.mock.calls[0]; + const firstRequest = Authentication.ApiRequest.decode(firstCallArgs[1]); + expect(firstRequest.qrcMessageKey).toBeNull(); + expect(firstRequest.publicKeyId).toBe(defaultEcKeyId); - const secondCallArgs = postSpy.mock.calls[1] - const secondRequest = Authentication.ApiRequest.decode(secondCallArgs[1]) - expect(secondRequest.qrcMessageKey).toBeNull() - expect(secondRequest.publicKeyId).toBe(newEcKeyId) - }) + const secondCallArgs = postSpy.mock.calls[1]; + const secondRequest = Authentication.ApiRequest.decode(secondCallArgs[1]); + expect(secondRequest.qrcMessageKey).toBeNull(); + expect(secondRequest.publicKeyId).toBe(newEcKeyId); + }); it('should throw an error if server returns unknown EC key ID (EC mode)', async () => { - const unknownEcKeyId = 999 // EC key ID not in testServerKeys + const unknownEcKeyId = 999; // EC key ID not in testServerKeys // Configure mock server to return unknown EC key ID - mockServerKeys.ecKeyId = unknownEcKeyId - mockServerKeys.mlKemKeyId = defaultMlKemKeyId + mockServerKeys.ecKeyId = unknownEcKeyId; + mockServerKeys.mlKemKeyId = defaultMlKemKeyId; // Execute startLogin and expect error - await expect(endpoint.executeRest(startLoginRequest)) - .rejects - .toThrow() - }) + await expect(endpoint.executeRest(startLoginRequest)).rejects.toThrow(); + }); it('should throw an error if server returns unknown EC key ID (HPKE mode)', async () => { - const unknownEcKeyId = 999 // EC key ID not in testServerKeys - const newMlKemKeyId = 124 + const unknownEcKeyId = 999; // EC key ID not in testServerKeys + const newMlKemKeyId = 124; // Clear device config keys to simulate newly registered device - mockConfig.deviceConfig.transmissionKeyId = undefined - mockConfig.deviceConfig.mlKemPublicKeyId = undefined - mockConfig.useHpkeForTransmissionKey = true - endpoint = new KeeperEndpoint(mockConfig) + mockConfig.deviceConfig.transmissionKeyId = undefined; + mockConfig.deviceConfig.mlKemPublicKeyId = undefined; + mockConfig.useHpkeForTransmissionKey = true; + endpoint = new KeeperEndpoint(mockConfig); // Configure mock server to expect new key IDs - mockServerKeys.ecKeyId = unknownEcKeyId - mockServerKeys.mlKemKeyId = newMlKemKeyId + mockServerKeys.ecKeyId = unknownEcKeyId; + mockServerKeys.mlKemKeyId = newMlKemKeyId; // Execute startLogin and expect error - await expect(endpoint.executeRest(startLoginRequest)) - .rejects - .toThrow() - }) -}) + await expect(endpoint.executeRest(startLoginRequest)).rejects.toThrow(); + }); +}); async function mockPlatformPost(_, requestBody): Promise { - const apiRequest = Authentication.ApiRequest.decode(requestBody) + const apiRequest = Authentication.ApiRequest.decode(requestBody); if (apiRequest.qrcMessageKey) { // Client is using HPKE mode - const ecKeyId = apiRequest.qrcMessageKey.ecKeyId! - const mlKemKeyId = apiRequest.publicKeyId! + const ecKeyId = apiRequest.qrcMessageKey.ecKeyId!; + const mlKemKeyId = apiRequest.publicKeyId!; // Check if server doesn't support HPKE (no mlKemKeyId configured) if (mockServerKeys.mlKemKeyId === undefined) { @@ -423,43 +419,40 @@ async function mockPlatformPost(_, requestBody): Promise { location: 'encrypted_rest_filter', error: 'key', message: 'key', - } + }; return { data: platform.stringToBytes(JSON.stringify(errorObj)), statusCode: 401, headers: new Headers(), - } + }; } // Server supports HPKE - check both EC and ML-KEM key IDs - if ( - mlKemKeyId !== mockServerKeys.mlKemKeyId || - ecKeyId !== mockServerKeys.ecKeyId - ) { + if (mlKemKeyId !== mockServerKeys.mlKemKeyId || ecKeyId !== mockServerKeys.ecKeyId) { const errorObj: KeeperError = { key_id: mockServerKeys.mlKemKeyId, qrc_ec_key_id: mockServerKeys.ecKeyId, location: 'encrypted_rest_filter', error: 'key', message: 'key', - } + }; return { data: platform.stringToBytes(JSON.stringify(errorObj)), statusCode: 401, headers: new Headers(), - } + }; } // Keys match - check if they exist in our test keys if (!isAllowedEcKeyId(ecKeyId) || !testServerKeys[ecKeyId]) { - throw new Error(`Unknown EC Key ID: ${ecKeyId}`) + throw new Error(`Unknown EC Key ID: ${ecKeyId}`); } if (!isAllowedMlKemKeyId(mlKemKeyId) || !testServerMlKemKeys[mlKemKeyId]) { - throw new Error(`Unknown ML-KEM Key ID: ${mlKemKeyId}`) + throw new Error(`Unknown ML-KEM Key ID: ${mlKemKeyId}`); } } else { // Non-HPKE mode: check only EC key ID - const ecKeyId = apiRequest.publicKeyId! + const ecKeyId = apiRequest.publicKeyId!; if (ecKeyId !== mockServerKeys.ecKeyId) { const errorObj: KeeperError = { @@ -467,56 +460,59 @@ async function mockPlatformPost(_, requestBody): Promise { location: 'encrypted_rest_filter', error: 'key', message: 'key', - } + }; return { data: platform.stringToBytes(JSON.stringify(errorObj)), statusCode: 401, headers: new Headers(), - } + }; } // Key matches - check if it exists in our test keys if (!isAllowedEcKeyId(ecKeyId) || !testServerKeys[ecKeyId]) { - throw new Error(`Unknown EC Key ID: ${ecKeyId}`) + throw new Error(`Unknown EC Key ID: ${ecKeyId}`); } } // Keys match and exist - decrypt the transmission key from the request - const transmissionKey = await decryptApiRequestPayload(apiRequest) + const transmissionKey = await decryptApiRequestPayload(apiRequest); // Return success response (assume start_login for sake of test) const loginResponse = Authentication.LoginResponse.encode({ loginState: Authentication.LoginState.LOGGED_IN, encryptedSessionToken: platform.getRandomBytes(64), encryptedDataKey: platform.getRandomBytes(64), - }).finish() - const encryptedResponse = await platform.aesGcmEncrypt(loginResponse, transmissionKey) + }).finish(); + const encryptedResponse = await platform.aesGcmEncrypt(loginResponse, transmissionKey); return { data: encryptedResponse, statusCode: 200, headers: new Headers(), - } + }; } // Helper function to decrypt API request payload async function decryptApiRequestPayload(request: Authentication.ApiRequest) { if (request.qrcMessageKey) { - const qrcMessageKey = request.qrcMessageKey - const ecKeyId = qrcMessageKey.ecKeyId! - const mlKemKeyId = request.publicKeyId! + const qrcMessageKey = request.qrcMessageKey; + const ecKeyId = qrcMessageKey.ecKeyId!; + const mlKemKeyId = request.publicKeyId!; // Get the correct variant for this ML-KEM key ID - const variant = getKeeperMlKemKeyVariant(mlKemKeyId as AllowedMlKemKeyIds) - const ciphersuite = variant === MlKemVariant.ML_KEM_768 - ? Ciphersuite.HPKE_MLKEM768_ECDHP256_HKDFSHA256_AESGCM256 - : Ciphersuite.HPKE_MLKEM1024_ECDHP256_HKDFSHA256_AESGCM256 - const hpke = new HPKE_ECDH_KYBER(ciphersuite) + const variant = getKeeperMlKemKeyVariant(mlKemKeyId as AllowedMlKemKeyIds); + const ciphersuite = + variant === MlKemVariant.ML_KEM_768 + ? Ciphersuite.HPKE_MLKEM768_ECDHP256_HKDFSHA256_AESGCM256 + : Ciphersuite.HPKE_MLKEM1024_ECDHP256_HKDFSHA256_AESGCM256; + const hpke = new HPKE_ECDH_KYBER(ciphersuite); // Ensure all buffers are proper Uint8Arrays (protobuf may return Buffer objects) - const clientEcPublicKey = new Uint8Array(qrcMessageKey.clientEcPublicKey!) - const mlKemEncapsulatedKey = new Uint8Array(qrcMessageKey.mlKemEncapsulatedKey!) - const data = new Uint8Array(qrcMessageKey.data!) - const optionalData = request.encryptedTransmissionKey ? new Uint8Array(request.encryptedTransmissionKey) : undefined + const clientEcPublicKey = new Uint8Array(qrcMessageKey.clientEcPublicKey!); + const mlKemEncapsulatedKey = new Uint8Array(qrcMessageKey.mlKemEncapsulatedKey!); + const data = new Uint8Array(qrcMessageKey.data!); + const optionalData = request.encryptedTransmissionKey + ? new Uint8Array(request.encryptedTransmissionKey) + : undefined; // Decrypt the transmission key using HPKE const transmissionKey = await hpke.decrypt( @@ -524,23 +520,22 @@ async function decryptApiRequestPayload(request: Authentication.ApiRequest) { mlKemEncapsulatedKey, data, qrcMessageKey.msgVersion as number, - testServerKeys[ecKeyId].privateKey, // EC private key (raw bytes) - testServerKeys[ecKeyId].publicKey, // EC public key + testServerKeys[ecKeyId].privateKey, // EC private key (raw bytes) + testServerKeys[ecKeyId].publicKey, // EC public key testServerMlKemKeys[mlKemKeyId].privateKey, // ML-KEM private key - optionalData // optionalData - ) + optionalData // optionalData + ); - return transmissionKey + return transmissionKey; } else { // Non-HPKE mode: decrypt using EC key - const ecKeyId = request.publicKeyId! + const ecKeyId = request.publicKeyId!; const transmissionKey = await platform.privateDecryptEC( request.encryptedTransmissionKey!, testServerKeys[ecKeyId].privateKey, - testServerKeys[ecKeyId].publicKey // Public key is required for EC decryption - ) + testServerKeys[ecKeyId].publicKey // Public key is required for EC decryption + ); - return transmissionKey + return transmissionKey; } } - diff --git a/keeperapi/src/__tests__/getOnsitePublicKey.test.ts b/keeperapi/src/__tests__/getOnsitePublicKey.test.ts index 0d188c0..603caa9 100644 --- a/keeperapi/src/__tests__/getOnsitePublicKey.test.ts +++ b/keeperapi/src/__tests__/getOnsitePublicKey.test.ts @@ -3,15 +3,14 @@ */ // @ts-ignore -import crypto from 'crypto' +import crypto from 'crypto'; import { browserPlatform } from '../browser/platform'; -import {KeeperEndpoint} from '../endpoint' -import { nodePlatform } from '../node/platform' -import { connectPlatform } from '../platform' +import { KeeperEndpoint } from '../endpoint'; +import { nodePlatform } from '../node/platform'; +import { connectPlatform } from '../platform'; // import NodeRSA from 'node-rsa'; describe('getOnsitePublicKey', () => { - let endpoint = new KeeperEndpoint({ host: 'testUrl', deviceConfig: { @@ -20,8 +19,8 @@ describe('getOnsitePublicKey', () => { privateKey: new Uint8Array(), publicKey: new Uint8Array(), transmissionKeyId: 1, - }, - }) + }, + }); beforeEach(() => { endpoint = new KeeperEndpoint({ @@ -32,55 +31,55 @@ describe('getOnsitePublicKey', () => { privateKey: new Uint8Array(), publicKey: new Uint8Array(), transmissionKeyId: 1, - }, - }) - }) - + }, + }); + }); + // NODE PLATFORM it('(node) should return the rsa public key of the onsite keeper', async () => { - connectPlatform(nodePlatform) - const key = await endpoint.getOnsitePublicKey(false) + connectPlatform(nodePlatform); + const key = await endpoint.getOnsitePublicKey(false); - checkRSAKey(key) + checkRSAKey(key); // should node platform have a different length from browser? expect(key).toHaveLength(392); - }) + }); // NODE PLATFORM it('(node) should return the ecc public key of the onsite keeper', async () => { - connectPlatform(nodePlatform) + connectPlatform(nodePlatform); - const key = await endpoint.getOnsitePublicKey(true) - checkECCKey(key) - }) + const key = await endpoint.getOnsitePublicKey(true); + checkECCKey(key); + }); // BROWSER PLATFORM it('(browser) should return the rsa public key of the onsite keeper', async () => { - connectPlatform(browserPlatform) + connectPlatform(browserPlatform); - const key = await endpoint.getOnsitePublicKey(false) - - checkRSAKey(key) + const key = await endpoint.getOnsitePublicKey(false); + + checkRSAKey(key); // should browser platform have a different length from node? expect(key).toHaveLength(360); - }) + }); // BROWSER PLATFORM it('(browser) should return the ecc public key of the onsite keeper', async () => { - connectPlatform(browserPlatform) + connectPlatform(browserPlatform); - const key = await endpoint.getOnsitePublicKey(true) - checkECCKey(key) - }) -}) + const key = await endpoint.getOnsitePublicKey(true); + checkECCKey(key); + }); +}); -function checkRSAKey(key:string){ - const beginningPart = key.match(/^MIIB/i) - const endingPart = key.match(/IDAQAB$/i) +function checkRSAKey(key: string) { + const beginningPart = key.match(/^MIIB/i); + const endingPart = key.match(/IDAQAB$/i); expect(beginningPart).toBeTruthy(); expect(endingPart).toBeTruthy(); } -function checkECCKey(key:string){ +function checkECCKey(key: string) { expect(key).toHaveLength(87); -} \ No newline at end of file +} diff --git a/keeperapi/src/__tests__/processTeams.test.ts b/keeperapi/src/__tests__/processTeams.test.ts index ce8a027..36ecfc9 100644 --- a/keeperapi/src/__tests__/processTeams.test.ts +++ b/keeperapi/src/__tests__/processTeams.test.ts @@ -3,64 +3,72 @@ */ // @ts-ignore -import crypto from 'crypto' -import {nodePlatform} from "../node/platform"; -import {browserPlatform} from "../browser/platform" -import {publicKey, privateKey} from "./ecies-test-vectors"; -import {TextEncoder, TextDecoder} from 'util'; -import type {Platform} from "../platform"; -import {KeyWrapper, connectPlatform, platform} from "../platform"; +import crypto from 'crypto'; +import { nodePlatform } from '../node/platform'; +import { browserPlatform } from '../browser/platform'; +import { publicKey, privateKey } from './ecies-test-vectors'; +import { TextEncoder, TextDecoder } from 'util'; +import type { Platform } from '../platform'; +import { KeyWrapper, connectPlatform, platform } from '../platform'; import { Auth } from '../auth'; import { KeeperEnvironment } from '../endpoint'; import { Records, Vault } from '../proto'; describe('Testing processTeams for ECC conversion', () => { - const username = 'username' - const password = 'password' - let auth: Auth - let platform: Platform + const username = 'username'; + const password = 'password'; + let auth: Auth; + let platform: Platform; // needed to create auth initially - connectPlatform(browserPlatform) + connectPlatform(browserPlatform); beforeEach(() => { // auth = createAuth() - }) + }); // not completed it.skip('processTeams', async () => { - const kp = await platform.generateECKeyPair() + const kp = await platform.generateECKeyPair(); // @ts-expect-error private prop on class - const user = await auth.createUserRequest(kp.privateKey) + const user = await auth.createUserRequest(kp.privateKey); - const {rsaPublicKey, rsaEncryptedPrivateKey, eccPublicKey, eccEncryptedPrivateKey, encryptedDeviceToken, encryptedClientKey, clientVersion} = user + const { + rsaPublicKey, + rsaEncryptedPrivateKey, + eccPublicKey, + eccEncryptedPrivateKey, + encryptedDeviceToken, + encryptedClientKey, + clientVersion, + } = user; - expect(rsaPublicKey).toBeDefined() - expect(rsaPublicKey && rsaPublicKey.length === 270).toBeTruthy() + expect(rsaPublicKey).toBeDefined(); + expect(rsaPublicKey && rsaPublicKey.length === 270).toBeTruthy(); - expect(rsaEncryptedPrivateKey).toBeDefined() - expect(rsaEncryptedPrivateKey && rsaEncryptedPrivateKey.length === 1216).toBeTruthy() + expect(rsaEncryptedPrivateKey).toBeDefined(); + expect(rsaEncryptedPrivateKey && rsaEncryptedPrivateKey.length === 1216).toBeTruthy(); - expect(eccPublicKey).toBeDefined() - expect(eccPublicKey && eccPublicKey.length === 65).toBeTruthy() + expect(eccPublicKey).toBeDefined(); + expect(eccPublicKey && eccPublicKey.length === 65).toBeTruthy(); - expect(eccEncryptedPrivateKey).toBeDefined() - expect(eccEncryptedPrivateKey && eccEncryptedPrivateKey.length === 60).toBeTruthy() + expect(eccEncryptedPrivateKey).toBeDefined(); + expect(eccEncryptedPrivateKey && eccEncryptedPrivateKey.length === 60).toBeTruthy(); - expect(encryptedDeviceToken).not.toBeDefined() + expect(encryptedDeviceToken).not.toBeDefined(); - expect(encryptedClientKey).toBeDefined() - expect(encryptedClientKey && encryptedClientKey.length === 64).toBeTruthy() + expect(encryptedClientKey).toBeDefined(); + expect(encryptedClientKey && encryptedClientKey.length === 64).toBeTruthy(); - expect(clientVersion).toBeDefined() - expect(clientVersion && clientVersion.length === 3).toBeTruthy() - }) -}) + expect(clientVersion).toBeDefined(); + expect(clientVersion && clientVersion.length === 3).toBeTruthy(); + }); +}); // TODO: figure out how to create teams here // This function is to create a test team. This function will not be used to create teams in the sdk. -async function createTeam(keyType: Records.RecordKeyType):Promise{ - switch(keyType){ +async function createTeam(keyType: Records.RecordKeyType): Promise { + switch (keyType) { case Records.RecordKeyType.ENCRYPTED_BY_DATA_KEY: // teamPrivateKeys[teamUid + '_priv'] = { // data: team.teamPrivateKey, @@ -68,8 +76,8 @@ async function createTeam(keyType: Records.RecordKeyType):Promise{ // keyId: teamUid, // encryptionType: 'cbc', // unwrappedType: 'rsa', - // } - return createTeamRSA() + // } + return createTeamRSA(); case Records.RecordKeyType.ENCRYPTED_BY_PUBLIC_KEY: // teamSharedFolderKeys[folderUid] = { // data: folderKey.sharedFolderKey, @@ -78,9 +86,9 @@ async function createTeam(keyType: Records.RecordKeyType):Promise{ // encryptionType: 'rsa', // unwrappedType: 'aes', // } - return createTeamRSA() + return createTeamRSA(); case Records.RecordKeyType.ENCRYPTED_BY_DATA_KEY_GCM: - return createTeamRSA() + return createTeamRSA(); case Records.RecordKeyType.ENCRYPTED_BY_PUBLIC_KEY_ECC: // teamPrivateKeys[teamUid + '_priv'] = { // data: team.teamPrivateKey, @@ -89,13 +97,13 @@ async function createTeam(keyType: Records.RecordKeyType):Promise{ // encryptionType: 'ecc', // unwrappedType: 'aes', // } - return createTeamECC() + return createTeamECC(); case Records.RecordKeyType.ENCRYPTED_BY_ROOT_KEY_CBC: - return createTeamRSA() + return createTeamRSA(); case Records.RecordKeyType.ENCRYPTED_BY_ROOT_KEY_GCM: - return createTeamRSA() + return createTeamRSA(); default: - return createTeamRSA() + return createTeamRSA(); } // /** Team teamUid */ @@ -137,55 +145,65 @@ async function createTeam(keyType: Records.RecordKeyType):Promise{ // /** SharedFolderKey keyType */ // keyType?: (Records.RecordKeyType|null); // } - // sharedFolderKeys?: (Vault.ISharedFolderKey[]|null); + // sharedFolderKeys?: (Vault.ISharedFolderKey[]|null); return { teamUid: new Uint8Array([250, 231, 238, 68, 236, 23, 115, 181, 48, 61, 99, 17, 148, 41, 87, 39]), //(Uint8Array|null); name: 'testname', //(string|null); teamKey: new Uint8Array(), //(Uint8Array|null); teamKeyType: Records.RecordKeyType.ENCRYPTED_BY_PUBLIC_KEY_ECC, //(Records.RecordKeyType|null); generate ecc key by id - teamPrivateKey: new Uint8Array(), //(Uint8Array|null); generate rsa private key + teamPrivateKey: new Uint8Array(), //(Uint8Array|null); generate rsa private key restrictEdit: false, //(boolean|null); restrictShare: false, //(boolean|null); restrictView: false, //(boolean|null); removedSharedFolders: [new Uint8Array()], //(Uint8Array[]|null); - sharedFolderKeys: [{ - sharedFolderUid: new Uint8Array(), //(Uint8Array|null); - sharedFolderKey: new Uint8Array(), //(Uint8Array|null); - keyType: Records.RecordKeyType.ENCRYPTED_BY_PUBLIC_KEY_ECC, //(Records.RecordKeyType|null); - }]//(Vault.ISharedFolderKey[]|null); - } + sharedFolderKeys: [ + { + sharedFolderUid: new Uint8Array(), //(Uint8Array|null); + sharedFolderKey: new Uint8Array(), //(Uint8Array|null); + keyType: Records.RecordKeyType.ENCRYPTED_BY_PUBLIC_KEY_ECC, //(Records.RecordKeyType|null); + }, + ], //(Vault.ISharedFolderKey[]|null); + }; } -async function createTeamRSA(){ - const rsaPrivateKey = await platform.generateRSAKeyPair() - const uid = platform.getRandomBytes(16) +async function createTeamRSA() { + const rsaPrivateKey = await platform.generateRSAKeyPair(); + const uid = platform.getRandomBytes(16); return { teamUid: uid, name: 'testname' + uid, - teamKey: new Uint8Array([37, 8, 39, 101, 231, 83, 232, 101, 248, 53, 209, 18, 23, 159, 239, 133, 22, 154, 40, 237, 145, 233, 50, 41, 119, 79, 136, 237, 49, 138, 232, 62, 207, 7, 106, 202, 211, 125, 167, 196, 86, 194, 201, 109, 125, 45, 149, 179, 230, 253, 67, 27, 229, 84, 171, 61, 221, 120, 254, 95, 203, 75, 99, 229]), //(Uint8Array|null); + teamKey: new Uint8Array([ + 37, 8, 39, 101, 231, 83, 232, 101, 248, 53, 209, 18, 23, 159, 239, 133, 22, 154, 40, 237, 145, 233, 50, 41, + 119, 79, 136, 237, 49, 138, 232, 62, 207, 7, 106, 202, 211, 125, 167, 196, 86, 194, 201, 109, 125, 45, 149, + 179, 230, 253, 67, 27, 229, 84, 171, 61, 221, 120, 254, 95, 203, 75, 99, 229, + ]), //(Uint8Array|null); teamKeyType: Records.RecordKeyType.ENCRYPTED_BY_DATA_KEY, teamPrivateKey: rsaPrivateKey.privateKey, - restrictEdit: false, - restrictShare: false, + restrictEdit: false, + restrictShare: false, restrictView: false, - removedSharedFolders: [], + removedSharedFolders: [], sharedFolderKeys: [], - } + }; } -async function createTeamECC(){ - const eccPrivateKey = await platform.generateECKeyPair() - const uid = platform.getRandomBytes(16) +async function createTeamECC() { + const eccPrivateKey = await platform.generateECKeyPair(); + const uid = platform.getRandomBytes(16); return { teamUid: uid, name: 'testname' + uid, - teamKey: new Uint8Array([37, 8, 39, 101, 231, 83, 232, 101, 248, 53, 209, 18, 23, 159, 239, 133, 22, 154, 40, 237, 145, 233, 50, 41, 119, 79, 136, 237, 49, 138, 232, 62, 207, 7, 106, 202, 211, 125, 167, 196, 86, 194, 201, 109, 125, 45, 149, 179, 230, 253, 67, 27, 229, 84, 171, 61, 221, 120, 254, 95, 203, 75, 99, 229]), //(Uint8Array|null); + teamKey: new Uint8Array([ + 37, 8, 39, 101, 231, 83, 232, 101, 248, 53, 209, 18, 23, 159, 239, 133, 22, 154, 40, 237, 145, 233, 50, 41, + 119, 79, 136, 237, 49, 138, 232, 62, 207, 7, 106, 202, 211, 125, 167, 196, 86, 194, 201, 109, 125, 45, 149, + 179, 230, 253, 67, 27, 229, 84, 171, 61, 221, 120, 254, 95, 203, 75, 99, 229, + ]), //(Uint8Array|null); teamKeyType: Records.RecordKeyType.ENCRYPTED_BY_PUBLIC_KEY_ECC, teamPrivateKey: eccPrivateKey.privateKey, - restrictEdit: false, - restrictShare: false, + restrictEdit: false, + restrictShare: false, restrictView: false, - removedSharedFolders: [], + removedSharedFolders: [], sharedFolderKeys: [], - } + }; } diff --git a/keeperapi/src/__tests__/qrc.test.ts b/keeperapi/src/__tests__/qrc.test.ts index 1579a41..0516463 100644 --- a/keeperapi/src/__tests__/qrc.test.ts +++ b/keeperapi/src/__tests__/qrc.test.ts @@ -102,11 +102,7 @@ describe('ML-KEM Operations', () => { const message = platform.getRandomBytes(32); // Encrypt using PEM-encoded ML-KEM public key - const result = await hpke.encrypt( - message, - serverEcKeyPair.publicKey, - pemMlKemPublicKey - ); + const result = await hpke.encrypt(message, serverEcKeyPair.publicKey, pemMlKemPublicKey); expect(result.clientEcPublicKey.length).toBe(EC_PUBLIC_KEY_LENGTH); expect(result.mlKemEncapsulatedKey.length).toBe(ML_KEM_768_CIPHERTEXT_LENGTH); @@ -138,11 +134,7 @@ describe('ML-KEM Operations', () => { const message = platform.getRandomBytes(32); // Encrypt using PEM-encoded ML-KEM public key - const result = await hpke.encrypt( - message, - serverEcKeyPair.publicKey, - pemMlKemPublicKey - ); + const result = await hpke.encrypt(message, serverEcKeyPair.publicKey, pemMlKemPublicKey); expect(result.clientEcPublicKey.length).toBe(EC_PUBLIC_KEY_LENGTH); expect(result.mlKemEncapsulatedKey.length).toBe(ML_KEM_1024_CIPHERTEXT_LENGTH); @@ -178,9 +170,8 @@ describe('ML-KEM Transmission Keys', () => { } const variant = getKeeperMlKemKeyVariant(keyId); - const expectedCiphertextLength = variant === MlKemVariant.ML_KEM_768 - ? ML_KEM_768_CIPHERTEXT_LENGTH - : ML_KEM_1024_CIPHERTEXT_LENGTH; + const expectedCiphertextLength = + variant === MlKemVariant.ML_KEM_768 ? ML_KEM_768_CIPHERTEXT_LENGTH : ML_KEM_1024_CIPHERTEXT_LENGTH; // Encapsulate to verify the key can be decoded and used const { ciphertext, sharedSecret } = mlKemEncapsulate(keyData, variant); diff --git a/keeperapi/src/__tests__/utils.test.js b/keeperapi/src/__tests__/utils.test.js index 41f4d18..2953dde 100644 --- a/keeperapi/src/__tests__/utils.test.js +++ b/keeperapi/src/__tests__/utils.test.js @@ -1,13 +1,13 @@ -import {webSafe64} from '../utils' +import { webSafe64 } from '../utils'; describe('utils', () => { - describe('webSafe64', () => { - it('replaces + correctly', () => { - expect(webSafe64('a+b')).toBe('a-b') - }) + describe('webSafe64', () => { + it('replaces + correctly', () => { + expect(webSafe64('a+b')).toBe('a-b'); + }); - it('replaces / correctly', () => { - expect(webSafe64('a/b')).toBe('a_b') - }) - }) -}) \ No newline at end of file + it('replaces / correctly', () => { + expect(webSafe64('a/b')).toBe('a_b'); + }); + }); +}); diff --git a/keeperapi/src/__tests__/vault.test.ts b/keeperapi/src/__tests__/vault.test.ts index a31bcc4..ef3b48f 100644 --- a/keeperapi/src/__tests__/vault.test.ts +++ b/keeperapi/src/__tests__/vault.test.ts @@ -1,1063 +1,1126 @@ -import {syncDown, VaultStorage} from "../vault" -import {Auth} from '../auth' -import {nodePlatform} from "../node/platform" -import {connectPlatform, platform} from "../platform"; -import {SyncDownResponseBuilder} from './SyncDownResponseBuilder' -import {Records, Vault} from "../proto"; -import {webSafe64FromBytes} from "../utils"; +import { syncDown, VaultStorage } from '../vault'; +import { Auth } from '../auth'; +import { nodePlatform } from '../node/platform'; +import { connectPlatform, platform } from '../platform'; +import { SyncDownResponseBuilder } from './SyncDownResponseBuilder'; +import { Records, Vault } from '../proto'; +import { webSafe64FromBytes } from '../utils'; describe('Sync Down', () => { - let dataKey: Uint8Array - let auth: Auth; - let eccKeyPair: {privateKey: Uint8Array, publicKey: Uint8Array}; - let rsaKeyPair: {privateKey: Uint8Array, publicKey: Uint8Array}; - let storage: VaultStorage; - let mockSyncDownCommand: jest.MockedFunction<() => Promise>; - let syncDownResponseBuilder: SyncDownResponseBuilder; - let syncDownUser: { - username: string, - accountUid: Uint8Array, - } - let anotherUserA: { - username: string, - accountUid: Uint8Array, - } - beforeAll(async () => { - connectPlatform(nodePlatform) - dataKey = platform.getRandomBytes(32) - eccKeyPair = await platform.generateECKeyPair() - rsaKeyPair = await platform.generateRSAKeyPair() - syncDownUser = { - username: 'keeper@keepersecurity.com', - accountUid: platform.getRandomBytes(16) - } - anotherUserA = { - username: 'another@keepersecurity.com', - accountUid: platform.getRandomBytes(16) - } - }) - beforeEach(() => { - storage = { - get: jest.fn(), - addDependencies: jest.fn(), - delete: jest.fn(), - getDependencies: jest.fn(), - removeDependencies: jest.fn(), - put: jest.fn(), - saveObject: jest.fn(), - saveKeyBytes: jest.fn(), - } as unknown as VaultStorage; - mockSyncDownCommand = jest.fn() - auth = { - dataKey, - eccPrivateKey: eccKeyPair.privateKey, - eccPublicKey: eccKeyPair.publicKey, - privateKey: rsaKeyPair.privateKey, - executeRest: mockSyncDownCommand, - } as unknown as Auth; - syncDownResponseBuilder = new SyncDownResponseBuilder(platform, auth); - }) - describe('Owned Records', () => { - it('saves the record data when a new record is created by the user', async () => { - const decryptedRecordData = { - title: 'test record' - } - const { recordUid, recordKey } = await syncDownResponseBuilder.addRecord(decryptedRecordData) - const recordUidStr = webSafe64FromBytes(recordUid) - const userFolderRecord: Vault.IUserFolderRecord = { - recordUid, - revision: Date.now() - } - syncDownResponseBuilder.addUserFolderRecord(userFolderRecord) - const recordMetadata: Vault.IRecordMetaData = { - recordUid, - recordKey, - owner: true, - canEdit: true, - canShare: true, - recordKeyType: Records.RecordKeyType.ENCRYPTED_BY_DATA_KEY_GCM, - ownerUsername: syncDownUser.username, - ownerAccountUid: syncDownUser.accountUid, - } - syncDownResponseBuilder.addRecordMetadata(recordMetadata) - mockSyncDownCommand.mockResolvedValue(syncDownResponseBuilder.build()) - await syncDown({ - auth, - storage, - }) - expect(storage.put).toHaveBeenCalledWith( - expect.objectContaining({ - kind: 'metadata', - uid: recordUidStr, - owner: recordMetadata.owner, - ownerUsername: recordMetadata.ownerUsername, - }) - ) - expect(storage.put).toHaveBeenCalledWith( - expect.objectContaining({ - kind: 'record', - uid: recordUidStr, - data: decryptedRecordData, - }) - ) - expect(storage.addDependencies).toHaveBeenCalledWith({ - "": new Set([{ - kind: "record", - "parentUid": "", - uid: recordUidStr, - }]) - }) - }) - it('saves breach watch data and security score data if a record contains a password', async () => { - const decryptedRecordData = { - title: 'test record', - fields: [ - { - type: 'password', - value: ['this is a password'] - } - ], - } - const { recordUid, recordKey, record, decryptedSecurityScoreDataData } = await syncDownResponseBuilder.addRecord(decryptedRecordData) - const recordUidStr = webSafe64FromBytes(recordUid) - const userFolderRecord: Vault.IUserFolderRecord = { - recordUid, - revision: Date.now() - } - syncDownResponseBuilder.addUserFolderRecord(userFolderRecord) - const recordMetadata: Vault.IRecordMetaData = { - recordUid, - recordKey, - owner: true, - canEdit: true, - canShare: true, - recordKeyType: Records.RecordKeyType.ENCRYPTED_BY_DATA_KEY_GCM, - ownerUsername: syncDownUser.username, - ownerAccountUid: syncDownUser.accountUid, - } - syncDownResponseBuilder.addRecordMetadata(recordMetadata) - mockSyncDownCommand.mockResolvedValue(syncDownResponseBuilder.build()) - await syncDown({ - auth, - storage, - }) - expect(storage.put).toHaveBeenCalledWith( - expect.objectContaining({ - kind: 'metadata', - uid: recordUidStr, - owner: recordMetadata.owner, - ownerUsername: recordMetadata.ownerUsername, - }) - ) - expect(storage.put).toHaveBeenCalledWith( - expect.objectContaining({ - kind: 'record', - uid: recordUidStr, - data: decryptedRecordData, - }) - ) - expect(storage.put).toHaveBeenCalledWith( - expect.objectContaining({ - kind: 'bw_security_data', - revision: record.revision, - uid: recordUidStr, - }) - ) - expect(storage.put).toHaveBeenCalledWith( - expect.objectContaining({ - kind: 'security_score_data', - revision: record.revision, - uid: recordUidStr, - data: decryptedSecurityScoreDataData, - }) - ) - expect(storage.addDependencies).toHaveBeenCalledWith({ - "": new Set([{ - kind: "record", - "parentUid": "", - uid: recordUidStr, - }]) - }) - }) - it('saves the new record data when an existing record is updated by the user', async () => { - const decryptedRecordData = { - title: 'test record updated', - } - const {recordKey, recordUid} = await syncDownResponseBuilder.addRecord(decryptedRecordData) - const recordUidStr = webSafe64FromBytes(recordUid) - await platform.unwrapKey(recordKey, recordUidStr, 'data', 'gcm', 'aes') - mockSyncDownCommand.mockResolvedValue(syncDownResponseBuilder.build()) - await syncDown({ - auth, - storage, - }) - expect(storage.put).toHaveBeenCalledWith( - expect.objectContaining({ - kind: 'record', - uid: recordUidStr, - data: decryptedRecordData, - }) - ) - }) - it('deletes the record data when an existing record is removed', async () => { - const recordUid = platform.getRandomBytes(16) - syncDownResponseBuilder - .addRemovedRecord(recordUid) - mockSyncDownCommand.mockResolvedValue(syncDownResponseBuilder.build()) - await syncDown({ - auth, - storage, - }) - expect(storage.delete).toHaveBeenCalledWith('record', webSafe64FromBytes(recordUid)) - }) - }) - describe('Directly-Shared Records', () => { - it('saves the record data when a record is direct-shared by other user', async () => { - const decryptedRecordData = { - title: 'test record', - } - const { recordUid, recordKey } = await syncDownResponseBuilder.addRecord(decryptedRecordData) - const recordUidStr = webSafe64FromBytes(recordUid) - const recordMetadata: Vault.IRecordMetaData = { - recordUid, - recordKey, - owner: false, - canEdit: true, - canShare: true, - recordKeyType: Records.RecordKeyType.ENCRYPTED_BY_DATA_KEY_GCM, - ownerUsername: anotherUserA.username, - ownerAccountUid: anotherUserA.accountUid, - } - const userFolderRecord: Vault.IUserFolderRecord = { - recordUid, - revision: Date.now(), - } - syncDownResponseBuilder.addUserFolderRecord(userFolderRecord) - syncDownResponseBuilder.addRecordMetadata(recordMetadata) - mockSyncDownCommand.mockResolvedValue(syncDownResponseBuilder.build()) - await syncDown({ - auth, - storage, - }) - expect(storage.put).toHaveBeenCalledWith( - expect.objectContaining({ - kind: 'metadata', - uid: recordUidStr, - owner: recordMetadata.owner, - ownerUsername: recordMetadata.ownerUsername, - }) - ) - expect(storage.put).toHaveBeenCalledWith( - expect.objectContaining({ - kind: 'record', - uid: recordUidStr, - data: decryptedRecordData, - }) - ) - expect(storage.addDependencies).toHaveBeenCalledWith({ - "": new Set([{ - kind: "record", - "parentUid": "", - uid: recordUidStr, - }]) - }) - }) - it('saves the record data when the direct-shared record is updated by another user or the user', async () => { - const decryptedRecordData = { - title: 'test record updated', - } - const {recordUid, recordKey} = await syncDownResponseBuilder.addRecord(decryptedRecordData) - const recordUidStr = webSafe64FromBytes(recordUid) - const recordMetadata: Vault.IRecordMetaData = {// recordMetadata is returned only the share permission is updated - recordUid, - recordKey, - owner: false, - canEdit: true, - canShare: true, - recordKeyType: Records.RecordKeyType.ENCRYPTED_BY_DATA_KEY_GCM, - ownerUsername: anotherUserA.username, - ownerAccountUid: anotherUserA.accountUid, - } - syncDownResponseBuilder.addRecordMetadata(recordMetadata) - mockSyncDownCommand.mockResolvedValue(syncDownResponseBuilder.build()) - await syncDown({ - auth, - storage, - }) - expect(storage.put).toHaveBeenCalledWith( - expect.objectContaining({ - kind: 'metadata', - uid: recordUidStr, - owner: recordMetadata.owner, - ownerUsername: recordMetadata.ownerUsername, - }) - ) - expect(storage.put).toHaveBeenCalledWith( - expect.objectContaining({ - kind: 'record', - uid: recordUidStr, - data: decryptedRecordData, - }) - ) - }) - it('deletes the record data when the direct-shared record is unshared by another user or deleted by the user', async () => { - const recordUid = platform.getRandomBytes(16) - syncDownResponseBuilder - .addRemovedRecord(recordUid) - mockSyncDownCommand.mockResolvedValue(syncDownResponseBuilder.build()) - await syncDown({ - auth, - storage, - }) - expect(storage.delete).toHaveBeenCalledWith('record', webSafe64FromBytes(recordUid)) - }) - it('does nothing when the direct-shared record is deleted by another user', () => {}) - }) - describe('User Folders', () => { - it.each([ - "saves the new folder data when the user creates a folder at the root", - "saves the corresponding folder data when the user updates an existing folder", - ])(`%s`, async () => { - const decryptedUserFolderKey = platform.getRandomBytes(32) - const userFolderKey= await platform.aesCbcEncrypt(decryptedUserFolderKey, auth.dataKey!, true) - const folderUid = platform.getRandomBytes(16) - const folderData = { title: 'a new user folder' } - const userFolder: Vault.IUserFolder = { - folderUid, - revision: Date.now(), - keyType: Records.RecordKeyType.ENCRYPTED_BY_DATA_KEY, - userFolderKey, - data: await platform.aesCbcEncrypt(platform.stringToBytes(JSON.stringify(folderData)), decryptedUserFolderKey, true), - parentUid: new Uint8Array([]), - } - syncDownResponseBuilder - .addUserFolder(userFolder) - mockSyncDownCommand.mockResolvedValue(syncDownResponseBuilder.build()) - await syncDown({ - auth, - storage, - }) - expect(storage.put).toHaveBeenCalledWith({ - data: folderData, - kind: 'user_folder', - revision: userFolder.revision, - uid: webSafe64FromBytes(folderUid) - }) - }) - it('deletes the corresponding folder data when a user deletes an existing folder - empty folder', async () => { - const folderUid = platform.getRandomBytes(16) - const folderUidStr = webSafe64FromBytes(folderUid) - syncDownResponseBuilder.addRemovedUserFolder(folderUid) - mockSyncDownCommand.mockResolvedValue(syncDownResponseBuilder.build()) - await syncDown({ - auth, - storage, - }) - expect(storage.delete).toHaveBeenCalledWith("user_folder", folderUidStr) - expect(storage.removeDependencies).toHaveBeenCalledWith({ - [folderUidStr]: "*", - }) - }) - it('deletes the corresponding folder data when a user deletes an existing folder - folder with child records and child folders', async () => { - /* + let dataKey: Uint8Array; + let auth: Auth; + let eccKeyPair: { privateKey: Uint8Array; publicKey: Uint8Array }; + let rsaKeyPair: { privateKey: Uint8Array; publicKey: Uint8Array }; + let storage: VaultStorage; + let mockSyncDownCommand: jest.MockedFunction<() => Promise>; + let syncDownResponseBuilder: SyncDownResponseBuilder; + let syncDownUser: { + username: string; + accountUid: Uint8Array; + }; + let anotherUserA: { + username: string; + accountUid: Uint8Array; + }; + beforeAll(async () => { + connectPlatform(nodePlatform); + dataKey = platform.getRandomBytes(32); + eccKeyPair = await platform.generateECKeyPair(); + rsaKeyPair = await platform.generateRSAKeyPair(); + syncDownUser = { + username: 'keeper@keepersecurity.com', + accountUid: platform.getRandomBytes(16), + }; + anotherUserA = { + username: 'another@keepersecurity.com', + accountUid: platform.getRandomBytes(16), + }; + }); + beforeEach(() => { + storage = { + get: jest.fn(), + addDependencies: jest.fn(), + delete: jest.fn(), + getDependencies: jest.fn(), + removeDependencies: jest.fn(), + put: jest.fn(), + saveObject: jest.fn(), + saveKeyBytes: jest.fn(), + } as unknown as VaultStorage; + mockSyncDownCommand = jest.fn(); + auth = { + dataKey, + eccPrivateKey: eccKeyPair.privateKey, + eccPublicKey: eccKeyPair.publicKey, + privateKey: rsaKeyPair.privateKey, + executeRest: mockSyncDownCommand, + } as unknown as Auth; + syncDownResponseBuilder = new SyncDownResponseBuilder(platform, auth); + }); + describe('Owned Records', () => { + it('saves the record data when a new record is created by the user', async () => { + const decryptedRecordData = { + title: 'test record', + }; + const { recordUid, recordKey } = await syncDownResponseBuilder.addRecord(decryptedRecordData); + const recordUidStr = webSafe64FromBytes(recordUid); + const userFolderRecord: Vault.IUserFolderRecord = { + recordUid, + revision: Date.now(), + }; + syncDownResponseBuilder.addUserFolderRecord(userFolderRecord); + const recordMetadata: Vault.IRecordMetaData = { + recordUid, + recordKey, + owner: true, + canEdit: true, + canShare: true, + recordKeyType: Records.RecordKeyType.ENCRYPTED_BY_DATA_KEY_GCM, + ownerUsername: syncDownUser.username, + ownerAccountUid: syncDownUser.accountUid, + }; + syncDownResponseBuilder.addRecordMetadata(recordMetadata); + mockSyncDownCommand.mockResolvedValue(syncDownResponseBuilder.build()); + await syncDown({ + auth, + storage, + }); + expect(storage.put).toHaveBeenCalledWith( + expect.objectContaining({ + kind: 'metadata', + uid: recordUidStr, + owner: recordMetadata.owner, + ownerUsername: recordMetadata.ownerUsername, + }) + ); + expect(storage.put).toHaveBeenCalledWith( + expect.objectContaining({ + kind: 'record', + uid: recordUidStr, + data: decryptedRecordData, + }) + ); + expect(storage.addDependencies).toHaveBeenCalledWith({ + '': new Set([ + { + kind: 'record', + parentUid: '', + uid: recordUidStr, + }, + ]), + }); + }); + it('saves breach watch data and security score data if a record contains a password', async () => { + const decryptedRecordData = { + title: 'test record', + fields: [ + { + type: 'password', + value: ['this is a password'], + }, + ], + }; + const { recordUid, recordKey, record, decryptedSecurityScoreDataData } = + await syncDownResponseBuilder.addRecord(decryptedRecordData); + const recordUidStr = webSafe64FromBytes(recordUid); + const userFolderRecord: Vault.IUserFolderRecord = { + recordUid, + revision: Date.now(), + }; + syncDownResponseBuilder.addUserFolderRecord(userFolderRecord); + const recordMetadata: Vault.IRecordMetaData = { + recordUid, + recordKey, + owner: true, + canEdit: true, + canShare: true, + recordKeyType: Records.RecordKeyType.ENCRYPTED_BY_DATA_KEY_GCM, + ownerUsername: syncDownUser.username, + ownerAccountUid: syncDownUser.accountUid, + }; + syncDownResponseBuilder.addRecordMetadata(recordMetadata); + mockSyncDownCommand.mockResolvedValue(syncDownResponseBuilder.build()); + await syncDown({ + auth, + storage, + }); + expect(storage.put).toHaveBeenCalledWith( + expect.objectContaining({ + kind: 'metadata', + uid: recordUidStr, + owner: recordMetadata.owner, + ownerUsername: recordMetadata.ownerUsername, + }) + ); + expect(storage.put).toHaveBeenCalledWith( + expect.objectContaining({ + kind: 'record', + uid: recordUidStr, + data: decryptedRecordData, + }) + ); + expect(storage.put).toHaveBeenCalledWith( + expect.objectContaining({ + kind: 'bw_security_data', + revision: record.revision, + uid: recordUidStr, + }) + ); + expect(storage.put).toHaveBeenCalledWith( + expect.objectContaining({ + kind: 'security_score_data', + revision: record.revision, + uid: recordUidStr, + data: decryptedSecurityScoreDataData, + }) + ); + expect(storage.addDependencies).toHaveBeenCalledWith({ + '': new Set([ + { + kind: 'record', + parentUid: '', + uid: recordUidStr, + }, + ]), + }); + }); + it('saves the new record data when an existing record is updated by the user', async () => { + const decryptedRecordData = { + title: 'test record updated', + }; + const { recordKey, recordUid } = await syncDownResponseBuilder.addRecord(decryptedRecordData); + const recordUidStr = webSafe64FromBytes(recordUid); + await platform.unwrapKey(recordKey, recordUidStr, 'data', 'gcm', 'aes'); + mockSyncDownCommand.mockResolvedValue(syncDownResponseBuilder.build()); + await syncDown({ + auth, + storage, + }); + expect(storage.put).toHaveBeenCalledWith( + expect.objectContaining({ + kind: 'record', + uid: recordUidStr, + data: decryptedRecordData, + }) + ); + }); + it('deletes the record data when an existing record is removed', async () => { + const recordUid = platform.getRandomBytes(16); + syncDownResponseBuilder.addRemovedRecord(recordUid); + mockSyncDownCommand.mockResolvedValue(syncDownResponseBuilder.build()); + await syncDown({ + auth, + storage, + }); + expect(storage.delete).toHaveBeenCalledWith('record', webSafe64FromBytes(recordUid)); + }); + }); + describe('Directly-Shared Records', () => { + it('saves the record data when a record is direct-shared by other user', async () => { + const decryptedRecordData = { + title: 'test record', + }; + const { recordUid, recordKey } = await syncDownResponseBuilder.addRecord(decryptedRecordData); + const recordUidStr = webSafe64FromBytes(recordUid); + const recordMetadata: Vault.IRecordMetaData = { + recordUid, + recordKey, + owner: false, + canEdit: true, + canShare: true, + recordKeyType: Records.RecordKeyType.ENCRYPTED_BY_DATA_KEY_GCM, + ownerUsername: anotherUserA.username, + ownerAccountUid: anotherUserA.accountUid, + }; + const userFolderRecord: Vault.IUserFolderRecord = { + recordUid, + revision: Date.now(), + }; + syncDownResponseBuilder.addUserFolderRecord(userFolderRecord); + syncDownResponseBuilder.addRecordMetadata(recordMetadata); + mockSyncDownCommand.mockResolvedValue(syncDownResponseBuilder.build()); + await syncDown({ + auth, + storage, + }); + expect(storage.put).toHaveBeenCalledWith( + expect.objectContaining({ + kind: 'metadata', + uid: recordUidStr, + owner: recordMetadata.owner, + ownerUsername: recordMetadata.ownerUsername, + }) + ); + expect(storage.put).toHaveBeenCalledWith( + expect.objectContaining({ + kind: 'record', + uid: recordUidStr, + data: decryptedRecordData, + }) + ); + expect(storage.addDependencies).toHaveBeenCalledWith({ + '': new Set([ + { + kind: 'record', + parentUid: '', + uid: recordUidStr, + }, + ]), + }); + }); + it('saves the record data when the direct-shared record is updated by another user or the user', async () => { + const decryptedRecordData = { + title: 'test record updated', + }; + const { recordUid, recordKey } = await syncDownResponseBuilder.addRecord(decryptedRecordData); + const recordUidStr = webSafe64FromBytes(recordUid); + const recordMetadata: Vault.IRecordMetaData = { + // recordMetadata is returned only the share permission is updated + recordUid, + recordKey, + owner: false, + canEdit: true, + canShare: true, + recordKeyType: Records.RecordKeyType.ENCRYPTED_BY_DATA_KEY_GCM, + ownerUsername: anotherUserA.username, + ownerAccountUid: anotherUserA.accountUid, + }; + syncDownResponseBuilder.addRecordMetadata(recordMetadata); + mockSyncDownCommand.mockResolvedValue(syncDownResponseBuilder.build()); + await syncDown({ + auth, + storage, + }); + expect(storage.put).toHaveBeenCalledWith( + expect.objectContaining({ + kind: 'metadata', + uid: recordUidStr, + owner: recordMetadata.owner, + ownerUsername: recordMetadata.ownerUsername, + }) + ); + expect(storage.put).toHaveBeenCalledWith( + expect.objectContaining({ + kind: 'record', + uid: recordUidStr, + data: decryptedRecordData, + }) + ); + }); + it('deletes the record data when the direct-shared record is unshared by another user or deleted by the user', async () => { + const recordUid = platform.getRandomBytes(16); + syncDownResponseBuilder.addRemovedRecord(recordUid); + mockSyncDownCommand.mockResolvedValue(syncDownResponseBuilder.build()); + await syncDown({ + auth, + storage, + }); + expect(storage.delete).toHaveBeenCalledWith('record', webSafe64FromBytes(recordUid)); + }); + it('does nothing when the direct-shared record is deleted by another user', () => {}); + }); + describe('User Folders', () => { + it.each([ + 'saves the new folder data when the user creates a folder at the root', + 'saves the corresponding folder data when the user updates an existing folder', + ])(`%s`, async () => { + const decryptedUserFolderKey = platform.getRandomBytes(32); + const userFolderKey = await platform.aesCbcEncrypt(decryptedUserFolderKey, auth.dataKey!, true); + const folderUid = platform.getRandomBytes(16); + const folderData = { title: 'a new user folder' }; + const userFolder: Vault.IUserFolder = { + folderUid, + revision: Date.now(), + keyType: Records.RecordKeyType.ENCRYPTED_BY_DATA_KEY, + userFolderKey, + data: await platform.aesCbcEncrypt( + platform.stringToBytes(JSON.stringify(folderData)), + decryptedUserFolderKey, + true + ), + parentUid: new Uint8Array([]), + }; + syncDownResponseBuilder.addUserFolder(userFolder); + mockSyncDownCommand.mockResolvedValue(syncDownResponseBuilder.build()); + await syncDown({ + auth, + storage, + }); + expect(storage.put).toHaveBeenCalledWith({ + data: folderData, + kind: 'user_folder', + revision: userFolder.revision, + uid: webSafe64FromBytes(folderUid), + }); + }); + it('deletes the corresponding folder data when a user deletes an existing folder - empty folder', async () => { + const folderUid = platform.getRandomBytes(16); + const folderUidStr = webSafe64FromBytes(folderUid); + syncDownResponseBuilder.addRemovedUserFolder(folderUid); + mockSyncDownCommand.mockResolvedValue(syncDownResponseBuilder.build()); + await syncDown({ + auth, + storage, + }); + expect(storage.delete).toHaveBeenCalledWith('user_folder', folderUidStr); + expect(storage.removeDependencies).toHaveBeenCalledWith({ + [folderUidStr]: '*', + }); + }); + it('deletes the corresponding folder data when a user deletes an existing folder - folder with child records and child folders', async () => { + /* folder A/ <-- contains a record C └── folder B/ <-- contains a record D */ - const folderAUid = platform.getRandomBytes(16) - const recordCUid = platform.getRandomBytes(16) - const folderBUid = platform.getRandomBytes(16) - const recordDUid = platform.getRandomBytes(16) - syncDownResponseBuilder.addRemovedUserFolder(folderAUid) - syncDownResponseBuilder.addRemovedUserFolder(folderBUid) - syncDownResponseBuilder.addRemovedRecord(recordCUid) - syncDownResponseBuilder.addRemovedRecord(recordDUid) - mockSyncDownCommand.mockResolvedValue(syncDownResponseBuilder.build()) - await syncDown({ - auth, - storage, - }) - expect(storage.delete).toHaveBeenCalledWith("user_folder", webSafe64FromBytes(folderAUid)) - expect(storage.delete).toHaveBeenCalledWith("user_folder", webSafe64FromBytes(folderBUid)) - expect(storage.delete).toHaveBeenCalledWith("record", webSafe64FromBytes(recordCUid)) - expect(storage.delete).toHaveBeenCalledWith("record", webSafe64FromBytes(recordDUid)) - }) - it.each([ - "saves the new folder data when a new child folder is added to an existing folder", - "saves the folder data when an existing folder is added as a child to another folder", - "saves the folder data when an existing child folder's data is updated", - "saves the folder data when an existing child folder is removed from one parent, and moved to folder to another", - "saves the folder data when a nested child folder is moved from its current parent to another parent", - ])('%s', async () => { - const decryptedUserFolderKey = platform.getRandomBytes(32) - const userFolderKey= await platform.aesCbcEncrypt(decryptedUserFolderKey, auth.dataKey!, true) - const parentFolderUid = platform.getRandomBytes(16) - const folderUid = platform.getRandomBytes(16) - const folderUidStr = webSafe64FromBytes(folderUid) - const parentFolderUidStr = webSafe64FromBytes(parentFolderUid) - const folderData = { title: 'a child folder' } - const userFolder: Vault.IUserFolder = { - folderUid, - revision: Date.now(), - keyType: Records.RecordKeyType.ENCRYPTED_BY_DATA_KEY, - userFolderKey, - data: await platform.aesCbcEncrypt(platform.stringToBytes(JSON.stringify(folderData)), decryptedUserFolderKey, true), - parentUid: parentFolderUid, - } - syncDownResponseBuilder - .addUserFolder(userFolder) - mockSyncDownCommand.mockResolvedValue(syncDownResponseBuilder.build()) - await syncDown({ - auth, - storage, - }) - expect(storage.put).toHaveBeenCalledWith({ - data: folderData, - kind: 'user_folder', - revision: userFolder.revision, - uid: webSafe64FromBytes(folderUid) - }) - expect(storage.addDependencies).toHaveBeenCalledWith({ - [parentFolderUidStr]: new Set([{ - kind: "user_folder", - parentUid: parentFolderUidStr, - uid: folderUidStr, - }]) - }) - }) - it('saves a new child record created by the user', async () => { - const folderUid = platform.getRandomBytes(16) - const decryptedRecordData = { - title: 'a child record record', - } - const {recordUid, recordKey} = await syncDownResponseBuilder.addRecord(decryptedRecordData) - const recordUidStr = webSafe64FromBytes(recordUid) - const folderUidStr = webSafe64FromBytes(folderUid) - const recordMetadata: Vault.IRecordMetaData = { - recordUid, - recordKey, - owner: true, - canEdit: true, - canShare: true, - recordKeyType: Records.RecordKeyType.ENCRYPTED_BY_DATA_KEY_GCM, - ownerUsername: syncDownUser.username, - ownerAccountUid: syncDownUser.accountUid, - } - const userFolderRecord: Vault.IUserFolderRecord = { - recordUid, - folderUid, - revision: Date.now(), - } - syncDownResponseBuilder.addUserFolderRecord(userFolderRecord) - syncDownResponseBuilder.addRecordMetadata(recordMetadata) - mockSyncDownCommand.mockResolvedValue(syncDownResponseBuilder.build()) - await syncDown({ - auth, - storage, - }) - expect(storage.put).toHaveBeenCalledWith( - expect.objectContaining({ - kind: 'metadata', - uid: recordUidStr, - owner: recordMetadata.owner, - ownerUsername: recordMetadata.ownerUsername, - }) - ) - expect(storage.put).toHaveBeenCalledWith( - expect.objectContaining({ - kind: 'record', - uid: recordUidStr, - data: decryptedRecordData, - }) - ) - expect(storage.addDependencies).toHaveBeenCalledWith({ - [folderUidStr]: new Set([{ - kind: "record", - "parentUid": folderUidStr, - uid: recordUidStr, - }]) - }) - }) - it('saves the child record when it is moved from a folder A to another B', async () => { - const folderAUid = platform.getRandomBytes(16) - const folderBUid = platform.getRandomBytes(16) - const recordUid = platform.getRandomBytes(16) - const folderAUidStr = webSafe64FromBytes(folderAUid) - const folderBUidStr = webSafe64FromBytes(folderBUid) - const recordUidStr = webSafe64FromBytes(recordUid) - const userFolderRecord: Vault.IUserFolderRecord = { - recordUid, - folderUid: folderBUid, - revision: Date.now(), - } - syncDownResponseBuilder.addUserFolderRecord(userFolderRecord) - syncDownResponseBuilder.addRemovedUserFolderRecord(recordUid, folderAUid) - mockSyncDownCommand.mockResolvedValue(syncDownResponseBuilder.build()) - await syncDown({ - auth, - storage, - }) - expect(storage.addDependencies).toHaveBeenCalledWith({ - [folderBUidStr]: new Set([{ - kind: "record", - "parentUid": folderBUidStr, - uid: recordUidStr, - }]) - }) - expect(storage.removeDependencies).toHaveBeenCalledWith({ - [folderAUidStr]: new Set([recordUidStr]) - }) - }) - it('saves the child record data when its updated by the user', async () => { - const decryptedRecordData = { - title: 'child record updated', - } - const {recordKey, recordUid} = await syncDownResponseBuilder.addRecord(decryptedRecordData) - const recordUidStr = webSafe64FromBytes(recordUid) - await platform.unwrapKey(recordKey, recordUidStr, 'data', 'gcm', 'aes') - mockSyncDownCommand.mockResolvedValue(syncDownResponseBuilder.build()) - await syncDown({ - auth, - storage, - }) - expect(storage.put).toHaveBeenCalledWith( - expect.objectContaining({ - kind: 'record', - uid: recordUidStr, - data: decryptedRecordData, - }) - ) - }) - it('deletes the child record data when its deleted by the user', async () => { - const recordUid = platform.getRandomBytes(16) - syncDownResponseBuilder.addRemovedRecord(recordUid) - mockSyncDownCommand.mockResolvedValue(syncDownResponseBuilder.build()) - await syncDown({ - auth, - storage, - }) - expect(storage.delete).toHaveBeenCalledWith("record", webSafe64FromBytes(recordUid)) - }) - }) - describe('Shared Folders', () => { - it('saves the shared folder data when a new shared folder is created by the user', async () => { - const sharedFolderData = { - name: "a new shared folder", - } - const {sharedFolderUid, sharedFolder} = await syncDownResponseBuilder.addSharedFolder(sharedFolderData, syncDownUser, { - defaultCanEdit: false, - defaultCanReshare: false, - defaultManageUsers: false, - defaultManageRecords: false, - }) - const sharedFolderUser: Vault.ISharedFolderUser = { - // if the data is the current sync user, the username and accountUid are empty - username: '', - accountUid: new Uint8Array([]), - sharedFolderUid, - manageRecords: true, - manageUsers: true, - } - syncDownResponseBuilder.addSharedFolderUser(sharedFolderUser) - mockSyncDownCommand.mockResolvedValue(syncDownResponseBuilder.build()) - await syncDown({ - auth, - storage, - }) - expect(storage.put).toHaveBeenCalledWith({ - kind: 'shared_folder', - uid: webSafe64FromBytes(sharedFolderUid), - data: sharedFolderData, - name: sharedFolderData.name, - revision: sharedFolder.revision, - ownerUsername: sharedFolder.owner, - ownerAccountUid: webSafe64FromBytes(sharedFolder.ownerAccountUid!), - defaultCanEdit: sharedFolder.defaultCanEdit, - defaultCanShare: sharedFolder.defaultCanReshare, - defaultManageRecords: sharedFolder.defaultManageRecords, - defaultManageUsers: sharedFolder.defaultManageUsers, - }) - expect(storage.put).toHaveBeenCalledWith({ - kind: 'shared_folder_user', - sharedFolderUid: webSafe64FromBytes(sharedFolderUid), - accountUid: webSafe64FromBytes(sharedFolderUser.accountUid!), - accountUsername: sharedFolderUser.username, - manageRecords: sharedFolderUser.manageRecords, - manageUsers: sharedFolderUser.manageUsers, - }) - expect(storage.addDependencies).toHaveBeenCalledWith({}) - }) - it('saves the shared folder data when the user is added to the folder', async () => { - const sharedFolderData = { - name: "a shared folder", - } - const {sharedFolderUid, sharedFolder} = await syncDownResponseBuilder.addSharedFolder(sharedFolderData, anotherUserA, { - defaultCanEdit: false, - defaultCanReshare: false, - defaultManageUsers: false, - defaultManageRecords: false, - }) - const sharedFolderUserA: Vault.ISharedFolderUser = { - // if the data is the current sync user, the username and accountUid are empty - username: '', - accountUid: new Uint8Array([]), - sharedFolderUid, - manageRecords: false, - manageUsers: false, - } - const sharedFolderUserB: Vault.ISharedFolderUser = { - username: 'other user who owns the shared folder', - accountUid: anotherUserA.accountUid, - sharedFolderUid, - manageRecords: true, - manageUsers: true, - } - syncDownResponseBuilder.addSharedFolderUser(sharedFolderUserA) - syncDownResponseBuilder.addSharedFolderUser(sharedFolderUserB) - mockSyncDownCommand.mockResolvedValue(syncDownResponseBuilder.build()) - await syncDown({ - auth, - storage, - }) - expect(storage.put).toHaveBeenCalledWith({ - kind: 'shared_folder', - uid: webSafe64FromBytes(sharedFolderUid), - data: sharedFolderData, - name: sharedFolderData.name, - revision: sharedFolder.revision, - ownerUsername: sharedFolder.owner, - ownerAccountUid: webSafe64FromBytes(sharedFolder.ownerAccountUid!), - defaultCanEdit: sharedFolder.defaultCanEdit, - defaultCanShare: sharedFolder.defaultCanReshare, - defaultManageRecords: sharedFolder.defaultManageRecords, - defaultManageUsers: sharedFolder.defaultManageUsers, - }) - expect(storage.put).toHaveBeenCalledWith({ - kind: 'shared_folder_user', - sharedFolderUid: webSafe64FromBytes(sharedFolderUid), - accountUid: webSafe64FromBytes(sharedFolderUserA.accountUid!), - accountUsername: sharedFolderUserA.username, - manageRecords: sharedFolderUserA.manageRecords, - manageUsers: sharedFolderUserA.manageUsers, - }) - expect(storage.put).toHaveBeenCalledWith({ - kind: 'shared_folder_user', - sharedFolderUid: webSafe64FromBytes(sharedFolderUid), - accountUid: webSafe64FromBytes(sharedFolderUserB.accountUid!), - accountUsername: sharedFolderUserB.username, - manageRecords: sharedFolderUserB.manageRecords, - manageUsers: sharedFolderUserB.manageUsers, - }) - expect(storage.addDependencies).toHaveBeenCalledWith({}) - }) - it("saves the shared folder data when the user's team is added to the folder", async () => { - const sharedFolderData = { - name: "a shared folder through team access", - } - const teamUid = platform.getRandomBytes(16) - const teamUidStr = webSafe64FromBytes(teamUid) - const decryptedTeamKey = platform.getRandomBytes(32) - const encryptedTeamKey = platform.publicEncrypt(decryptedTeamKey, platform.bytesToBase64(auth.privateKey!)) - const decryptedTeamPrivateKeyPair = await platform.generateRSAKeyPair() - const encryptedTeamPrivateKey= await platform.aesCbcEncrypt(decryptedTeamPrivateKeyPair.privateKey, decryptedTeamKey, true) - const {sharedFolderUid, sharedFolder, sharedFolderKey} = await syncDownResponseBuilder.addSharedFolder(sharedFolderData, anotherUserA, { - defaultCanEdit: false, - defaultCanReshare: false, - defaultManageUsers: false, - defaultManageRecords: false, - }, {encryptionKey: decryptedTeamPrivateKeyPair.privateKey}) - const sharedFolderUidStr = webSafe64FromBytes(sharedFolderUid) - const team: Vault.ITeam = { - teamUid, - name: 'team name', - removedSharedFolders: [], - sharedFolderKeys: [ - { - keyType: Records.RecordKeyType.ENCRYPTED_BY_PUBLIC_KEY, - sharedFolderUid, - sharedFolderKey, - }, - ], - teamKey: encryptedTeamKey, - teamPrivateKey: encryptedTeamPrivateKey, - teamKeyType: Records.RecordKeyType.ENCRYPTED_BY_PUBLIC_KEY, - restrictEdit: false, - restrictShare: false, - restrictView: false, - } - const sharedFolderUser: Vault.ISharedFolderUser = { - username: 'other user who owns the shared folder', - accountUid: anotherUserA.accountUid, - sharedFolderUid, - manageRecords: true, - manageUsers: true, - } - const sharedFolderTeam: Vault.ISharedFolderTeam = { - name: sharedFolderData.name, - manageUsers: false, - manageRecords: false, - teamUid, - sharedFolderUid, - } - syncDownResponseBuilder.addTeam(team) - syncDownResponseBuilder.addSharedFolderUser(sharedFolderUser) - syncDownResponseBuilder.addSharedFolderTeam(sharedFolderTeam) - mockSyncDownCommand.mockResolvedValue(syncDownResponseBuilder.build()) - await syncDown({ - auth, - storage, - }) - expect(storage.put).toHaveBeenCalledWith({ - kind: 'team', - name: team.name, - uid: webSafe64FromBytes(teamUid), - restrictEdit: team.restrictEdit, - restrictShare: team.restrictShare, - restrictView: team.restrictView, - }) - expect(storage.put).toHaveBeenCalledWith({ - kind: 'shared_folder', - uid: webSafe64FromBytes(sharedFolderUid), - data: sharedFolderData, - name: sharedFolderData.name, - revision: sharedFolder.revision, - ownerUsername: sharedFolder.owner, - ownerAccountUid: webSafe64FromBytes(sharedFolder.ownerAccountUid!), - defaultCanEdit: sharedFolder.defaultCanEdit, - defaultCanShare: sharedFolder.defaultCanReshare, - defaultManageRecords: sharedFolder.defaultManageRecords, - defaultManageUsers: sharedFolder.defaultManageUsers, - }) - expect(storage.put).toHaveBeenCalledWith({ - kind: 'shared_folder_user', - sharedFolderUid: webSafe64FromBytes(sharedFolderUid), - accountUid: webSafe64FromBytes(sharedFolderUser.accountUid!), - accountUsername: sharedFolderUser.username, - manageRecords: sharedFolderUser.manageRecords, - manageUsers: sharedFolderUser.manageUsers, - }) - expect(storage.put).toHaveBeenCalledWith({ - kind: 'shared_folder_team', - teamUid: teamUidStr, - name: sharedFolderData.name, - sharedFolderUid: sharedFolderUidStr, - manageRecords: sharedFolderTeam.manageRecords, - manageUsers: sharedFolderTeam.manageUsers, - }) - expect(storage.addDependencies).toHaveBeenCalledWith({ - [teamUidStr]: new Set([{ - kind: 'shared_folder', - parentUid: teamUidStr, - uid: sharedFolderUidStr, - }]) - }) - }) - it('saves the shared folder data when the folder data is updated', async () => { - const sharedFolderData = { - name: 'an existing shared folder data updated', - } - const {sharedFolderUid, sharedFolder} = await syncDownResponseBuilder.addSharedFolder(sharedFolderData, anotherUserA, { - defaultCanEdit: false, - defaultCanReshare: false, - defaultManageUsers: false, - defaultManageRecords: false, - }) - mockSyncDownCommand.mockResolvedValue(syncDownResponseBuilder.build()) - await syncDown({ - auth, - storage, - }) - expect(storage.put).toHaveBeenCalledWith({ - kind: 'shared_folder', - uid: webSafe64FromBytes(sharedFolderUid), - data: sharedFolderData, - name: sharedFolderData.name, - revision: sharedFolder.revision, - ownerUsername: sharedFolder.owner, - ownerAccountUid: webSafe64FromBytes(sharedFolder.ownerAccountUid!), - defaultCanEdit: sharedFolder.defaultCanEdit, - defaultCanShare: sharedFolder.defaultCanReshare, - defaultManageRecords: sharedFolder.defaultManageRecords, - defaultManageUsers: sharedFolder.defaultManageUsers, - }) - expect(storage.addDependencies).toHaveBeenCalledWith({}) - }) - // TODO(@hleekeeper): a bug found where the shared folder folder data is not cleaned up properly when its parent shared folder is deleted/unshared. - // A Jira ticket (BE-7056) has been filed. And the business logic and the test code around this part may change as part of the BE-7056 - it.each([ - "deletes the shared folder data and its child resources when it's deleted", - "deletes the shared folder data and its child resources when the user's direct access to the folder was removed", - ])('%s', async () => { - const sharedFolderUid = platform.getRandomBytes(16) - const sharedFolderUidStr = webSafe64FromBytes(sharedFolderUid) - syncDownResponseBuilder.addRemovedSharedFolder(sharedFolderUid) - mockSyncDownCommand.mockResolvedValue(syncDownResponseBuilder.build()) - await syncDown({ - auth, - storage, - }) - expect(storage.delete).toHaveBeenCalledWith('shared_folder', sharedFolderUidStr) - expect(storage.removeDependencies).toHaveBeenCalledWith({ - [sharedFolderUidStr]: "*" - }) - }) - it("deletes the shared folder data and its child resources when the user's team access to the folder was removed", async () => { - const sharedFolderUid = platform.getRandomBytes(16) - const sharedFolderUidStr = webSafe64FromBytes(sharedFolderUid) - const teamUid = platform.getRandomBytes(16) - const teamUidStr = webSafe64FromBytes(teamUid) - const removedSharedFolderTeam: Vault.ISharedFolderTeam = { - sharedFolderUid, - teamUid, - } - syncDownResponseBuilder.addRemovedSharedFolderTeam(removedSharedFolderTeam) - mockSyncDownCommand.mockResolvedValue(syncDownResponseBuilder.build()) - await syncDown({ - auth, - storage, - }) - expect(storage.removeDependencies).toHaveBeenCalledWith({ - [sharedFolderUidStr]: new Set([teamUidStr]) - }) - }) - it('saves the record data when a new record is created in a shared folder', async () => { - const decryptedRecordData = { - title: 'an existing record moved to a shared folder' - } - const sharedFolderData = { - name: 'a shared folder', - } - const { - sharedFolderUid, - sharedFolder, - decryptedSharedFolderKey, - } = await syncDownResponseBuilder.addSharedFolder(sharedFolderData, syncDownUser, { - defaultCanEdit: false, - defaultCanReshare: false, - defaultManageUsers: false, - defaultManageRecords: false, - }) - const sharedFolderUidStr = webSafe64FromBytes(sharedFolderUid) - const {recordKey, recordUid} = await syncDownResponseBuilder.addRecord(decryptedRecordData, decryptedSharedFolderKey) - const recordUidStr = webSafe64FromBytes(recordUid) - const sharedFolderRecord: Vault.ISharedFolderRecord = { - owner: true, - recordKey, - recordUid, - sharedFolderUid, - ownerAccountUid: new Uint8Array([]), - } - const sharedFolderFolderRecord: Vault.ISharedFolderFolderRecord = { - folderUid: new Uint8Array([]), - sharedFolderUid, - recordUid, - } - syncDownResponseBuilder.addSharedFolderRecord(sharedFolderRecord) - syncDownResponseBuilder.addSharedFolderFolderRecord(sharedFolderFolderRecord) - mockSyncDownCommand.mockResolvedValue(syncDownResponseBuilder.build()) - await syncDown({ - auth, - storage, - }) - expect(storage.put).toHaveBeenCalledWith(expect.objectContaining({ - kind: 'shared_folder', - revision: sharedFolder.revision, - uid: sharedFolderUidStr, - })) - expect(storage.put).toHaveBeenCalledWith({ - kind: "shared_folder_record", - canEdit: true, - canShare: true, - owner: sharedFolderRecord.owner, - ownerUid: "", - recordUid: recordUidStr, - sharedFolderUid: sharedFolderUidStr, - }) - expect(storage.put).toHaveBeenCalledWith( - expect.objectContaining({ - kind: "record", - uid: recordUidStr, - data: decryptedRecordData, - }) - ) - expect(storage.addDependencies).toHaveBeenCalledWith({ - [sharedFolderUidStr]: new Set([{ - kind: "record", - parentUid: sharedFolderUidStr, - uid: recordUidStr, - }]) - }) - }) - it('saves the record data when an existing record is added to a shared folder', async () => { - const decryptedRecordData = { - title: 'an existing record moved to a shared folder' - } - const sharedFolderData = { - name: 'a shared folder', - } - const { - sharedFolderUid, - sharedFolder, - decryptedSharedFolderKey, - } = await syncDownResponseBuilder.addSharedFolder(sharedFolderData, syncDownUser, {}) - const sharedFolderUidStr = webSafe64FromBytes(sharedFolderUid) - const {recordKey, recordUid} = await syncDownResponseBuilder.addRecord(decryptedRecordData, decryptedSharedFolderKey) - const recordUidStr = webSafe64FromBytes(recordUid) - const sharedFolderRecord: Vault.ISharedFolderRecord = { - owner: true, - recordKey, - recordUid, - sharedFolderUid, - ownerAccountUid: new Uint8Array([]), - } - const sharedFolderFolderRecord: Vault.ISharedFolderFolderRecord = { - folderUid: new Uint8Array([]), - sharedFolderUid, - recordUid, - } + const folderAUid = platform.getRandomBytes(16); + const recordCUid = platform.getRandomBytes(16); + const folderBUid = platform.getRandomBytes(16); + const recordDUid = platform.getRandomBytes(16); + syncDownResponseBuilder.addRemovedUserFolder(folderAUid); + syncDownResponseBuilder.addRemovedUserFolder(folderBUid); + syncDownResponseBuilder.addRemovedRecord(recordCUid); + syncDownResponseBuilder.addRemovedRecord(recordDUid); + mockSyncDownCommand.mockResolvedValue(syncDownResponseBuilder.build()); + await syncDown({ + auth, + storage, + }); + expect(storage.delete).toHaveBeenCalledWith('user_folder', webSafe64FromBytes(folderAUid)); + expect(storage.delete).toHaveBeenCalledWith('user_folder', webSafe64FromBytes(folderBUid)); + expect(storage.delete).toHaveBeenCalledWith('record', webSafe64FromBytes(recordCUid)); + expect(storage.delete).toHaveBeenCalledWith('record', webSafe64FromBytes(recordDUid)); + }); + it.each([ + 'saves the new folder data when a new child folder is added to an existing folder', + 'saves the folder data when an existing folder is added as a child to another folder', + "saves the folder data when an existing child folder's data is updated", + 'saves the folder data when an existing child folder is removed from one parent, and moved to folder to another', + 'saves the folder data when a nested child folder is moved from its current parent to another parent', + ])('%s', async () => { + const decryptedUserFolderKey = platform.getRandomBytes(32); + const userFolderKey = await platform.aesCbcEncrypt(decryptedUserFolderKey, auth.dataKey!, true); + const parentFolderUid = platform.getRandomBytes(16); + const folderUid = platform.getRandomBytes(16); + const folderUidStr = webSafe64FromBytes(folderUid); + const parentFolderUidStr = webSafe64FromBytes(parentFolderUid); + const folderData = { title: 'a child folder' }; + const userFolder: Vault.IUserFolder = { + folderUid, + revision: Date.now(), + keyType: Records.RecordKeyType.ENCRYPTED_BY_DATA_KEY, + userFolderKey, + data: await platform.aesCbcEncrypt( + platform.stringToBytes(JSON.stringify(folderData)), + decryptedUserFolderKey, + true + ), + parentUid: parentFolderUid, + }; + syncDownResponseBuilder.addUserFolder(userFolder); + mockSyncDownCommand.mockResolvedValue(syncDownResponseBuilder.build()); + await syncDown({ + auth, + storage, + }); + expect(storage.put).toHaveBeenCalledWith({ + data: folderData, + kind: 'user_folder', + revision: userFolder.revision, + uid: webSafe64FromBytes(folderUid), + }); + expect(storage.addDependencies).toHaveBeenCalledWith({ + [parentFolderUidStr]: new Set([ + { + kind: 'user_folder', + parentUid: parentFolderUidStr, + uid: folderUidStr, + }, + ]), + }); + }); + it('saves a new child record created by the user', async () => { + const folderUid = platform.getRandomBytes(16); + const decryptedRecordData = { + title: 'a child record record', + }; + const { recordUid, recordKey } = await syncDownResponseBuilder.addRecord(decryptedRecordData); + const recordUidStr = webSafe64FromBytes(recordUid); + const folderUidStr = webSafe64FromBytes(folderUid); + const recordMetadata: Vault.IRecordMetaData = { + recordUid, + recordKey, + owner: true, + canEdit: true, + canShare: true, + recordKeyType: Records.RecordKeyType.ENCRYPTED_BY_DATA_KEY_GCM, + ownerUsername: syncDownUser.username, + ownerAccountUid: syncDownUser.accountUid, + }; + const userFolderRecord: Vault.IUserFolderRecord = { + recordUid, + folderUid, + revision: Date.now(), + }; + syncDownResponseBuilder.addUserFolderRecord(userFolderRecord); + syncDownResponseBuilder.addRecordMetadata(recordMetadata); + mockSyncDownCommand.mockResolvedValue(syncDownResponseBuilder.build()); + await syncDown({ + auth, + storage, + }); + expect(storage.put).toHaveBeenCalledWith( + expect.objectContaining({ + kind: 'metadata', + uid: recordUidStr, + owner: recordMetadata.owner, + ownerUsername: recordMetadata.ownerUsername, + }) + ); + expect(storage.put).toHaveBeenCalledWith( + expect.objectContaining({ + kind: 'record', + uid: recordUidStr, + data: decryptedRecordData, + }) + ); + expect(storage.addDependencies).toHaveBeenCalledWith({ + [folderUidStr]: new Set([ + { + kind: 'record', + parentUid: folderUidStr, + uid: recordUidStr, + }, + ]), + }); + }); + it('saves the child record when it is moved from a folder A to another B', async () => { + const folderAUid = platform.getRandomBytes(16); + const folderBUid = platform.getRandomBytes(16); + const recordUid = platform.getRandomBytes(16); + const folderAUidStr = webSafe64FromBytes(folderAUid); + const folderBUidStr = webSafe64FromBytes(folderBUid); + const recordUidStr = webSafe64FromBytes(recordUid); + const userFolderRecord: Vault.IUserFolderRecord = { + recordUid, + folderUid: folderBUid, + revision: Date.now(), + }; + syncDownResponseBuilder.addUserFolderRecord(userFolderRecord); + syncDownResponseBuilder.addRemovedUserFolderRecord(recordUid, folderAUid); + mockSyncDownCommand.mockResolvedValue(syncDownResponseBuilder.build()); + await syncDown({ + auth, + storage, + }); + expect(storage.addDependencies).toHaveBeenCalledWith({ + [folderBUidStr]: new Set([ + { + kind: 'record', + parentUid: folderBUidStr, + uid: recordUidStr, + }, + ]), + }); + expect(storage.removeDependencies).toHaveBeenCalledWith({ + [folderAUidStr]: new Set([recordUidStr]), + }); + }); + it('saves the child record data when its updated by the user', async () => { + const decryptedRecordData = { + title: 'child record updated', + }; + const { recordKey, recordUid } = await syncDownResponseBuilder.addRecord(decryptedRecordData); + const recordUidStr = webSafe64FromBytes(recordUid); + await platform.unwrapKey(recordKey, recordUidStr, 'data', 'gcm', 'aes'); + mockSyncDownCommand.mockResolvedValue(syncDownResponseBuilder.build()); + await syncDown({ + auth, + storage, + }); + expect(storage.put).toHaveBeenCalledWith( + expect.objectContaining({ + kind: 'record', + uid: recordUidStr, + data: decryptedRecordData, + }) + ); + }); + it('deletes the child record data when its deleted by the user', async () => { + const recordUid = platform.getRandomBytes(16); + syncDownResponseBuilder.addRemovedRecord(recordUid); + mockSyncDownCommand.mockResolvedValue(syncDownResponseBuilder.build()); + await syncDown({ + auth, + storage, + }); + expect(storage.delete).toHaveBeenCalledWith('record', webSafe64FromBytes(recordUid)); + }); + }); + describe('Shared Folders', () => { + it('saves the shared folder data when a new shared folder is created by the user', async () => { + const sharedFolderData = { + name: 'a new shared folder', + }; + const { sharedFolderUid, sharedFolder } = await syncDownResponseBuilder.addSharedFolder( + sharedFolderData, + syncDownUser, + { + defaultCanEdit: false, + defaultCanReshare: false, + defaultManageUsers: false, + defaultManageRecords: false, + } + ); + const sharedFolderUser: Vault.ISharedFolderUser = { + // if the data is the current sync user, the username and accountUid are empty + username: '', + accountUid: new Uint8Array([]), + sharedFolderUid, + manageRecords: true, + manageUsers: true, + }; + syncDownResponseBuilder.addSharedFolderUser(sharedFolderUser); + mockSyncDownCommand.mockResolvedValue(syncDownResponseBuilder.build()); + await syncDown({ + auth, + storage, + }); + expect(storage.put).toHaveBeenCalledWith({ + kind: 'shared_folder', + uid: webSafe64FromBytes(sharedFolderUid), + data: sharedFolderData, + name: sharedFolderData.name, + revision: sharedFolder.revision, + ownerUsername: sharedFolder.owner, + ownerAccountUid: webSafe64FromBytes(sharedFolder.ownerAccountUid!), + defaultCanEdit: sharedFolder.defaultCanEdit, + defaultCanShare: sharedFolder.defaultCanReshare, + defaultManageRecords: sharedFolder.defaultManageRecords, + defaultManageUsers: sharedFolder.defaultManageUsers, + }); + expect(storage.put).toHaveBeenCalledWith({ + kind: 'shared_folder_user', + sharedFolderUid: webSafe64FromBytes(sharedFolderUid), + accountUid: webSafe64FromBytes(sharedFolderUser.accountUid!), + accountUsername: sharedFolderUser.username, + manageRecords: sharedFolderUser.manageRecords, + manageUsers: sharedFolderUser.manageUsers, + }); + expect(storage.addDependencies).toHaveBeenCalledWith({}); + }); + it('saves the shared folder data when the user is added to the folder', async () => { + const sharedFolderData = { + name: 'a shared folder', + }; + const { sharedFolderUid, sharedFolder } = await syncDownResponseBuilder.addSharedFolder( + sharedFolderData, + anotherUserA, + { + defaultCanEdit: false, + defaultCanReshare: false, + defaultManageUsers: false, + defaultManageRecords: false, + } + ); + const sharedFolderUserA: Vault.ISharedFolderUser = { + // if the data is the current sync user, the username and accountUid are empty + username: '', + accountUid: new Uint8Array([]), + sharedFolderUid, + manageRecords: false, + manageUsers: false, + }; + const sharedFolderUserB: Vault.ISharedFolderUser = { + username: 'other user who owns the shared folder', + accountUid: anotherUserA.accountUid, + sharedFolderUid, + manageRecords: true, + manageUsers: true, + }; + syncDownResponseBuilder.addSharedFolderUser(sharedFolderUserA); + syncDownResponseBuilder.addSharedFolderUser(sharedFolderUserB); + mockSyncDownCommand.mockResolvedValue(syncDownResponseBuilder.build()); + await syncDown({ + auth, + storage, + }); + expect(storage.put).toHaveBeenCalledWith({ + kind: 'shared_folder', + uid: webSafe64FromBytes(sharedFolderUid), + data: sharedFolderData, + name: sharedFolderData.name, + revision: sharedFolder.revision, + ownerUsername: sharedFolder.owner, + ownerAccountUid: webSafe64FromBytes(sharedFolder.ownerAccountUid!), + defaultCanEdit: sharedFolder.defaultCanEdit, + defaultCanShare: sharedFolder.defaultCanReshare, + defaultManageRecords: sharedFolder.defaultManageRecords, + defaultManageUsers: sharedFolder.defaultManageUsers, + }); + expect(storage.put).toHaveBeenCalledWith({ + kind: 'shared_folder_user', + sharedFolderUid: webSafe64FromBytes(sharedFolderUid), + accountUid: webSafe64FromBytes(sharedFolderUserA.accountUid!), + accountUsername: sharedFolderUserA.username, + manageRecords: sharedFolderUserA.manageRecords, + manageUsers: sharedFolderUserA.manageUsers, + }); + expect(storage.put).toHaveBeenCalledWith({ + kind: 'shared_folder_user', + sharedFolderUid: webSafe64FromBytes(sharedFolderUid), + accountUid: webSafe64FromBytes(sharedFolderUserB.accountUid!), + accountUsername: sharedFolderUserB.username, + manageRecords: sharedFolderUserB.manageRecords, + manageUsers: sharedFolderUserB.manageUsers, + }); + expect(storage.addDependencies).toHaveBeenCalledWith({}); + }); + it("saves the shared folder data when the user's team is added to the folder", async () => { + const sharedFolderData = { + name: 'a shared folder through team access', + }; + const teamUid = platform.getRandomBytes(16); + const teamUidStr = webSafe64FromBytes(teamUid); + const decryptedTeamKey = platform.getRandomBytes(32); + const encryptedTeamKey = platform.publicEncrypt(decryptedTeamKey, platform.bytesToBase64(auth.privateKey!)); + const decryptedTeamPrivateKeyPair = await platform.generateRSAKeyPair(); + const encryptedTeamPrivateKey = await platform.aesCbcEncrypt( + decryptedTeamPrivateKeyPair.privateKey, + decryptedTeamKey, + true + ); + const { sharedFolderUid, sharedFolder, sharedFolderKey } = await syncDownResponseBuilder.addSharedFolder( + sharedFolderData, + anotherUserA, + { + defaultCanEdit: false, + defaultCanReshare: false, + defaultManageUsers: false, + defaultManageRecords: false, + }, + { encryptionKey: decryptedTeamPrivateKeyPair.privateKey } + ); + const sharedFolderUidStr = webSafe64FromBytes(sharedFolderUid); + const team: Vault.ITeam = { + teamUid, + name: 'team name', + removedSharedFolders: [], + sharedFolderKeys: [ + { + keyType: Records.RecordKeyType.ENCRYPTED_BY_PUBLIC_KEY, + sharedFolderUid, + sharedFolderKey, + }, + ], + teamKey: encryptedTeamKey, + teamPrivateKey: encryptedTeamPrivateKey, + teamKeyType: Records.RecordKeyType.ENCRYPTED_BY_PUBLIC_KEY, + restrictEdit: false, + restrictShare: false, + restrictView: false, + }; + const sharedFolderUser: Vault.ISharedFolderUser = { + username: 'other user who owns the shared folder', + accountUid: anotherUserA.accountUid, + sharedFolderUid, + manageRecords: true, + manageUsers: true, + }; + const sharedFolderTeam: Vault.ISharedFolderTeam = { + name: sharedFolderData.name, + manageUsers: false, + manageRecords: false, + teamUid, + sharedFolderUid, + }; + syncDownResponseBuilder.addTeam(team); + syncDownResponseBuilder.addSharedFolderUser(sharedFolderUser); + syncDownResponseBuilder.addSharedFolderTeam(sharedFolderTeam); + mockSyncDownCommand.mockResolvedValue(syncDownResponseBuilder.build()); + await syncDown({ + auth, + storage, + }); + expect(storage.put).toHaveBeenCalledWith({ + kind: 'team', + name: team.name, + uid: webSafe64FromBytes(teamUid), + restrictEdit: team.restrictEdit, + restrictShare: team.restrictShare, + restrictView: team.restrictView, + }); + expect(storage.put).toHaveBeenCalledWith({ + kind: 'shared_folder', + uid: webSafe64FromBytes(sharedFolderUid), + data: sharedFolderData, + name: sharedFolderData.name, + revision: sharedFolder.revision, + ownerUsername: sharedFolder.owner, + ownerAccountUid: webSafe64FromBytes(sharedFolder.ownerAccountUid!), + defaultCanEdit: sharedFolder.defaultCanEdit, + defaultCanShare: sharedFolder.defaultCanReshare, + defaultManageRecords: sharedFolder.defaultManageRecords, + defaultManageUsers: sharedFolder.defaultManageUsers, + }); + expect(storage.put).toHaveBeenCalledWith({ + kind: 'shared_folder_user', + sharedFolderUid: webSafe64FromBytes(sharedFolderUid), + accountUid: webSafe64FromBytes(sharedFolderUser.accountUid!), + accountUsername: sharedFolderUser.username, + manageRecords: sharedFolderUser.manageRecords, + manageUsers: sharedFolderUser.manageUsers, + }); + expect(storage.put).toHaveBeenCalledWith({ + kind: 'shared_folder_team', + teamUid: teamUidStr, + name: sharedFolderData.name, + sharedFolderUid: sharedFolderUidStr, + manageRecords: sharedFolderTeam.manageRecords, + manageUsers: sharedFolderTeam.manageUsers, + }); + expect(storage.addDependencies).toHaveBeenCalledWith({ + [teamUidStr]: new Set([ + { + kind: 'shared_folder', + parentUid: teamUidStr, + uid: sharedFolderUidStr, + }, + ]), + }); + }); + it('saves the shared folder data when the folder data is updated', async () => { + const sharedFolderData = { + name: 'an existing shared folder data updated', + }; + const { sharedFolderUid, sharedFolder } = await syncDownResponseBuilder.addSharedFolder( + sharedFolderData, + anotherUserA, + { + defaultCanEdit: false, + defaultCanReshare: false, + defaultManageUsers: false, + defaultManageRecords: false, + } + ); + mockSyncDownCommand.mockResolvedValue(syncDownResponseBuilder.build()); + await syncDown({ + auth, + storage, + }); + expect(storage.put).toHaveBeenCalledWith({ + kind: 'shared_folder', + uid: webSafe64FromBytes(sharedFolderUid), + data: sharedFolderData, + name: sharedFolderData.name, + revision: sharedFolder.revision, + ownerUsername: sharedFolder.owner, + ownerAccountUid: webSafe64FromBytes(sharedFolder.ownerAccountUid!), + defaultCanEdit: sharedFolder.defaultCanEdit, + defaultCanShare: sharedFolder.defaultCanReshare, + defaultManageRecords: sharedFolder.defaultManageRecords, + defaultManageUsers: sharedFolder.defaultManageUsers, + }); + expect(storage.addDependencies).toHaveBeenCalledWith({}); + }); + // TODO(@hleekeeper): a bug found where the shared folder folder data is not cleaned up properly when its parent shared folder is deleted/unshared. + // A Jira ticket (BE-7056) has been filed. And the business logic and the test code around this part may change as part of the BE-7056 + it.each([ + "deletes the shared folder data and its child resources when it's deleted", + "deletes the shared folder data and its child resources when the user's direct access to the folder was removed", + ])('%s', async () => { + const sharedFolderUid = platform.getRandomBytes(16); + const sharedFolderUidStr = webSafe64FromBytes(sharedFolderUid); + syncDownResponseBuilder.addRemovedSharedFolder(sharedFolderUid); + mockSyncDownCommand.mockResolvedValue(syncDownResponseBuilder.build()); + await syncDown({ + auth, + storage, + }); + expect(storage.delete).toHaveBeenCalledWith('shared_folder', sharedFolderUidStr); + expect(storage.removeDependencies).toHaveBeenCalledWith({ + [sharedFolderUidStr]: '*', + }); + }); + it("deletes the shared folder data and its child resources when the user's team access to the folder was removed", async () => { + const sharedFolderUid = platform.getRandomBytes(16); + const sharedFolderUidStr = webSafe64FromBytes(sharedFolderUid); + const teamUid = platform.getRandomBytes(16); + const teamUidStr = webSafe64FromBytes(teamUid); + const removedSharedFolderTeam: Vault.ISharedFolderTeam = { + sharedFolderUid, + teamUid, + }; + syncDownResponseBuilder.addRemovedSharedFolderTeam(removedSharedFolderTeam); + mockSyncDownCommand.mockResolvedValue(syncDownResponseBuilder.build()); + await syncDown({ + auth, + storage, + }); + expect(storage.removeDependencies).toHaveBeenCalledWith({ + [sharedFolderUidStr]: new Set([teamUidStr]), + }); + }); + it('saves the record data when a new record is created in a shared folder', async () => { + const decryptedRecordData = { + title: 'an existing record moved to a shared folder', + }; + const sharedFolderData = { + name: 'a shared folder', + }; + const { sharedFolderUid, sharedFolder, decryptedSharedFolderKey } = + await syncDownResponseBuilder.addSharedFolder(sharedFolderData, syncDownUser, { + defaultCanEdit: false, + defaultCanReshare: false, + defaultManageUsers: false, + defaultManageRecords: false, + }); + const sharedFolderUidStr = webSafe64FromBytes(sharedFolderUid); + const { recordKey, recordUid } = await syncDownResponseBuilder.addRecord( + decryptedRecordData, + decryptedSharedFolderKey + ); + const recordUidStr = webSafe64FromBytes(recordUid); + const sharedFolderRecord: Vault.ISharedFolderRecord = { + owner: true, + recordKey, + recordUid, + sharedFolderUid, + ownerAccountUid: new Uint8Array([]), + }; + const sharedFolderFolderRecord: Vault.ISharedFolderFolderRecord = { + folderUid: new Uint8Array([]), + sharedFolderUid, + recordUid, + }; + syncDownResponseBuilder.addSharedFolderRecord(sharedFolderRecord); + syncDownResponseBuilder.addSharedFolderFolderRecord(sharedFolderFolderRecord); + mockSyncDownCommand.mockResolvedValue(syncDownResponseBuilder.build()); + await syncDown({ + auth, + storage, + }); + expect(storage.put).toHaveBeenCalledWith( + expect.objectContaining({ + kind: 'shared_folder', + revision: sharedFolder.revision, + uid: sharedFolderUidStr, + }) + ); + expect(storage.put).toHaveBeenCalledWith({ + kind: 'shared_folder_record', + canEdit: true, + canShare: true, + owner: sharedFolderRecord.owner, + ownerUid: '', + recordUid: recordUidStr, + sharedFolderUid: sharedFolderUidStr, + }); + expect(storage.put).toHaveBeenCalledWith( + expect.objectContaining({ + kind: 'record', + uid: recordUidStr, + data: decryptedRecordData, + }) + ); + expect(storage.addDependencies).toHaveBeenCalledWith({ + [sharedFolderUidStr]: new Set([ + { + kind: 'record', + parentUid: sharedFolderUidStr, + uid: recordUidStr, + }, + ]), + }); + }); + it('saves the record data when an existing record is added to a shared folder', async () => { + const decryptedRecordData = { + title: 'an existing record moved to a shared folder', + }; + const sharedFolderData = { + name: 'a shared folder', + }; + const { sharedFolderUid, sharedFolder, decryptedSharedFolderKey } = + await syncDownResponseBuilder.addSharedFolder(sharedFolderData, syncDownUser, {}); + const sharedFolderUidStr = webSafe64FromBytes(sharedFolderUid); + const { recordKey, recordUid } = await syncDownResponseBuilder.addRecord( + decryptedRecordData, + decryptedSharedFolderKey + ); + const recordUidStr = webSafe64FromBytes(recordUid); + const sharedFolderRecord: Vault.ISharedFolderRecord = { + owner: true, + recordKey, + recordUid, + sharedFolderUid, + ownerAccountUid: new Uint8Array([]), + }; + const sharedFolderFolderRecord: Vault.ISharedFolderFolderRecord = { + folderUid: new Uint8Array([]), + sharedFolderUid, + recordUid, + }; - syncDownResponseBuilder.addRemovedRecord(recordUid) - syncDownResponseBuilder.addSharedFolderRecord(sharedFolderRecord) - syncDownResponseBuilder.addSharedFolderFolderRecord(sharedFolderFolderRecord) - mockSyncDownCommand.mockResolvedValue(syncDownResponseBuilder.build()) - await syncDown({ - auth, - storage, - }) - expect(storage.put).toHaveBeenCalledWith(expect.objectContaining({ - kind: 'shared_folder', - revision: sharedFolder.revision, - uid: sharedFolderUidStr, - })) - expect(storage.put).toHaveBeenCalledWith({ - kind: "shared_folder_record", - canEdit: true, - canShare: true, - owner: sharedFolderRecord.owner, - ownerUid: "", - recordUid: recordUidStr, - sharedFolderUid: sharedFolderUidStr, - }) - expect(storage.put).toHaveBeenCalledWith( - expect.objectContaining({ - kind: "record", - uid: recordUidStr, - data: decryptedRecordData, - }) - ) - expect(storage.addDependencies).toHaveBeenCalledWith({ - [sharedFolderUidStr]: new Set([{ - kind: "record", - parentUid: sharedFolderUidStr, - uid: recordUidStr, - }]) - }) - expect(storage.delete).toHaveBeenCalledWith('record', recordUidStr) - }) - it('deletes the record data when a child record is deleted from a shared folder', async () => { - const recordUid = platform.getRandomBytes(16) - const recordUidStr = webSafe64FromBytes(recordUid) - const sharedFolderData = { - name: 'a new shared folder', - } - const {sharedFolderUid, sharedFolder} = await syncDownResponseBuilder.addSharedFolder(sharedFolderData, syncDownUser, {}) - const sharedFolderUidStr = webSafe64FromBytes(sharedFolderUid) - const removedSharedFolderFolderRecord: Vault.ISharedFolderFolderRecord = { - recordUid, - sharedFolderUid, - folderUid: new Uint8Array([]) - } - const removedSharedFolderRecord: Vault.ISharedFolderRecord = { - recordUid, - sharedFolderUid, - } - syncDownResponseBuilder.addRemovedSharedFolderFolderRecord(removedSharedFolderFolderRecord) - syncDownResponseBuilder.addRemovedSharedFolderRecord(removedSharedFolderRecord) - mockSyncDownCommand.mockResolvedValue(syncDownResponseBuilder.build()) - await syncDown({ - auth, - storage, - }) - expect(storage.removeDependencies).toHaveBeenCalledWith({ - "": new Set([recordUidStr]), - [sharedFolderUidStr]: new Set([recordUidStr]) - }) - expect(storage.put).toHaveBeenCalledWith( - expect.objectContaining({ - uid: sharedFolderUidStr, - kind: "shared_folder", - revision: sharedFolder.revision, - }) - ) - }) - it('updates the record data when it is moved out of a shared folder (moved to the root vault)', async () => { - const decryptedRecordData = { - title: "a record removed from a shared folder to a root vault" - } - const {recordUid, recordKey, record} = await syncDownResponseBuilder.addRecord(decryptedRecordData) - const recordUidStr = webSafe64FromBytes(recordUid) - const recordMetadata: Vault.IRecordMetaData = { - recordUid, - recordKey, - recordKeyType: Records.RecordKeyType.ENCRYPTED_BY_DATA_KEY_GCM, - } - const sharedFolderData = { - name: 'a new shared folder', - } - const {sharedFolderUid, sharedFolder} = await syncDownResponseBuilder.addSharedFolder(sharedFolderData, syncDownUser, {}) - const sharedFolderUidStr = webSafe64FromBytes(sharedFolderUid) - const removedSharedFolderFolderRecord: Vault.ISharedFolderFolderRecord = { - recordUid, - sharedFolderUid, - folderUid: new Uint8Array([]) - } - const removedSharedFolderRecord: Vault.ISharedFolderRecord = { - recordUid, - sharedFolderUid, - } - const userFolderRecord: Vault.IUserFolderRecord = { - recordUid, - folderUid: new Uint8Array([]), - revision: Date.now(), - } - syncDownResponseBuilder.addUserFolderRecord(userFolderRecord) - syncDownResponseBuilder.addRecordMetadata(recordMetadata) - syncDownResponseBuilder.addRemovedSharedFolderFolderRecord(removedSharedFolderFolderRecord) - syncDownResponseBuilder.addRemovedSharedFolderRecord(removedSharedFolderRecord) - mockSyncDownCommand.mockResolvedValue(syncDownResponseBuilder.build()) - await syncDown({ - auth, - storage, - }) - expect(storage.put).toHaveBeenCalledWith(expect.objectContaining({ - kind: "record", - uid: recordUidStr, - revision: record.revision, - })) - expect(storage.put).toHaveBeenCalledWith(expect.objectContaining({ - kind: "metadata", - uid: recordUidStr, - })) - expect(storage.addDependencies).toHaveBeenCalledWith({ - "": new Set([{ - kind: "record", - parentUid: "", - uid: recordUidStr, - }]), - }) - expect(storage.removeDependencies).toHaveBeenCalledWith({ - "": new Set([recordUidStr]), - [sharedFolderUidStr]: new Set([recordUidStr]) - }) - expect(storage.put).toHaveBeenCalledWith( - expect.objectContaining({ - uid: sharedFolderUidStr, - kind: "shared_folder", - revision: sharedFolder.revision, - }) - ) - }) - it('updates the record data when it is moved out of a shared folder (moved to another shared folder)', async () => { - /* + syncDownResponseBuilder.addRemovedRecord(recordUid); + syncDownResponseBuilder.addSharedFolderRecord(sharedFolderRecord); + syncDownResponseBuilder.addSharedFolderFolderRecord(sharedFolderFolderRecord); + mockSyncDownCommand.mockResolvedValue(syncDownResponseBuilder.build()); + await syncDown({ + auth, + storage, + }); + expect(storage.put).toHaveBeenCalledWith( + expect.objectContaining({ + kind: 'shared_folder', + revision: sharedFolder.revision, + uid: sharedFolderUidStr, + }) + ); + expect(storage.put).toHaveBeenCalledWith({ + kind: 'shared_folder_record', + canEdit: true, + canShare: true, + owner: sharedFolderRecord.owner, + ownerUid: '', + recordUid: recordUidStr, + sharedFolderUid: sharedFolderUidStr, + }); + expect(storage.put).toHaveBeenCalledWith( + expect.objectContaining({ + kind: 'record', + uid: recordUidStr, + data: decryptedRecordData, + }) + ); + expect(storage.addDependencies).toHaveBeenCalledWith({ + [sharedFolderUidStr]: new Set([ + { + kind: 'record', + parentUid: sharedFolderUidStr, + uid: recordUidStr, + }, + ]), + }); + expect(storage.delete).toHaveBeenCalledWith('record', recordUidStr); + }); + it('deletes the record data when a child record is deleted from a shared folder', async () => { + const recordUid = platform.getRandomBytes(16); + const recordUidStr = webSafe64FromBytes(recordUid); + const sharedFolderData = { + name: 'a new shared folder', + }; + const { sharedFolderUid, sharedFolder } = await syncDownResponseBuilder.addSharedFolder( + sharedFolderData, + syncDownUser, + {} + ); + const sharedFolderUidStr = webSafe64FromBytes(sharedFolderUid); + const removedSharedFolderFolderRecord: Vault.ISharedFolderFolderRecord = { + recordUid, + sharedFolderUid, + folderUid: new Uint8Array([]), + }; + const removedSharedFolderRecord: Vault.ISharedFolderRecord = { + recordUid, + sharedFolderUid, + }; + syncDownResponseBuilder.addRemovedSharedFolderFolderRecord(removedSharedFolderFolderRecord); + syncDownResponseBuilder.addRemovedSharedFolderRecord(removedSharedFolderRecord); + mockSyncDownCommand.mockResolvedValue(syncDownResponseBuilder.build()); + await syncDown({ + auth, + storage, + }); + expect(storage.removeDependencies).toHaveBeenCalledWith({ + '': new Set([recordUidStr]), + [sharedFolderUidStr]: new Set([recordUidStr]), + }); + expect(storage.put).toHaveBeenCalledWith( + expect.objectContaining({ + uid: sharedFolderUidStr, + kind: 'shared_folder', + revision: sharedFolder.revision, + }) + ); + }); + it('updates the record data when it is moved out of a shared folder (moved to the root vault)', async () => { + const decryptedRecordData = { + title: 'a record removed from a shared folder to a root vault', + }; + const { recordUid, recordKey, record } = await syncDownResponseBuilder.addRecord(decryptedRecordData); + const recordUidStr = webSafe64FromBytes(recordUid); + const recordMetadata: Vault.IRecordMetaData = { + recordUid, + recordKey, + recordKeyType: Records.RecordKeyType.ENCRYPTED_BY_DATA_KEY_GCM, + }; + const sharedFolderData = { + name: 'a new shared folder', + }; + const { sharedFolderUid, sharedFolder } = await syncDownResponseBuilder.addSharedFolder( + sharedFolderData, + syncDownUser, + {} + ); + const sharedFolderUidStr = webSafe64FromBytes(sharedFolderUid); + const removedSharedFolderFolderRecord: Vault.ISharedFolderFolderRecord = { + recordUid, + sharedFolderUid, + folderUid: new Uint8Array([]), + }; + const removedSharedFolderRecord: Vault.ISharedFolderRecord = { + recordUid, + sharedFolderUid, + }; + const userFolderRecord: Vault.IUserFolderRecord = { + recordUid, + folderUid: new Uint8Array([]), + revision: Date.now(), + }; + syncDownResponseBuilder.addUserFolderRecord(userFolderRecord); + syncDownResponseBuilder.addRecordMetadata(recordMetadata); + syncDownResponseBuilder.addRemovedSharedFolderFolderRecord(removedSharedFolderFolderRecord); + syncDownResponseBuilder.addRemovedSharedFolderRecord(removedSharedFolderRecord); + mockSyncDownCommand.mockResolvedValue(syncDownResponseBuilder.build()); + await syncDown({ + auth, + storage, + }); + expect(storage.put).toHaveBeenCalledWith( + expect.objectContaining({ + kind: 'record', + uid: recordUidStr, + revision: record.revision, + }) + ); + expect(storage.put).toHaveBeenCalledWith( + expect.objectContaining({ + kind: 'metadata', + uid: recordUidStr, + }) + ); + expect(storage.addDependencies).toHaveBeenCalledWith({ + '': new Set([ + { + kind: 'record', + parentUid: '', + uid: recordUidStr, + }, + ]), + }); + expect(storage.removeDependencies).toHaveBeenCalledWith({ + '': new Set([recordUidStr]), + [sharedFolderUidStr]: new Set([recordUidStr]), + }); + expect(storage.put).toHaveBeenCalledWith( + expect.objectContaining({ + uid: sharedFolderUidStr, + kind: 'shared_folder', + revision: sharedFolder.revision, + }) + ); + }); + it('updates the record data when it is moved out of a shared folder (moved to another shared folder)', async () => { + /* [before update] shared folder A/ <-- contains a record shared folder B/ @@ -1065,227 +1128,256 @@ describe('Sync Down', () => { shared folder A/ shared-folder folder B/ <-- the record moved from A to B */ - const decryptedRecordData = { - title: "a record removed from a shared folder to a root vault" - } - const sharedFolderDataA = { - name: 'shared folder A', - } - const sharedFolderDataB = { - name: 'shared folder B', - } - const {sharedFolderUid: sharedFolderUidA, sharedFolder: sharedFolderA} = await syncDownResponseBuilder.addSharedFolder(sharedFolderDataA, syncDownUser, {}) - const {sharedFolderUid: sharedFolderUidB, sharedFolder: sharedFolderB, decryptedSharedFolderKey: decryptedSharedFolderKeyB} = await syncDownResponseBuilder.addSharedFolder(sharedFolderDataB, syncDownUser, {}) - const sharedFolderUidAStr = webSafe64FromBytes(sharedFolderUidA) - const sharedFolderUidBStr = webSafe64FromBytes(sharedFolderUidB) - const {recordUid, recordKey, record} = await syncDownResponseBuilder.addRecord(decryptedRecordData, decryptedSharedFolderKeyB) - const recordUidStr = webSafe64FromBytes(recordUid) - const removedSharedFolderFolderRecord: Vault.ISharedFolderFolderRecord = { - recordUid, - sharedFolderUid: sharedFolderUidA, - folderUid: new Uint8Array([]) - } - const removedSharedFolderRecord: Vault.ISharedFolderRecord = { - recordUid, - sharedFolderUid: sharedFolderUidA, - } - const sharedFolderFolderRecord: Vault.ISharedFolderFolderRecord = { - recordUid, - sharedFolderUid: sharedFolderUidB, - revision: Date.now(), - folderUid: new Uint8Array([]) - } - const sharedFolderRecord: Vault.ISharedFolderRecord = { - recordUid, - recordKey, - sharedFolderUid: sharedFolderUidB, - owner: true, - ownerAccountUid: new Uint8Array([]), - } - syncDownResponseBuilder.addRemovedSharedFolderFolderRecord(removedSharedFolderFolderRecord) - syncDownResponseBuilder.addRemovedSharedFolderRecord(removedSharedFolderRecord) - syncDownResponseBuilder.addSharedFolderRecord(sharedFolderRecord) - syncDownResponseBuilder.addSharedFolderFolderRecord(sharedFolderFolderRecord) - mockSyncDownCommand.mockResolvedValue(syncDownResponseBuilder.build()) - await syncDown({ - auth, - storage, - }) - expect(storage.put).toHaveBeenCalledWith(expect.objectContaining({ - kind: "record", - uid: recordUidStr, - revision: record.revision, - })) - expect(storage.put).toHaveBeenCalledWith(expect.objectContaining({ - kind: 'shared_folder_record', - recordUid: recordUidStr, - sharedFolderUid: sharedFolderUidBStr, - })) - expect(storage.removeDependencies).toHaveBeenCalledWith({ - "": new Set([recordUidStr]), - [sharedFolderUidAStr]: new Set([recordUidStr]) - }) - expect(storage.put).toHaveBeenCalledWith( - expect.objectContaining({ - uid: sharedFolderUidAStr, - kind: "shared_folder", - revision: sharedFolderA.revision, - }) - ) - expect(storage.put).toHaveBeenCalledWith( - expect.objectContaining({ - uid: sharedFolderUidBStr, - kind: "shared_folder", - revision: sharedFolderB.revision, - }) - ) - }) - }) - describe('Shared-Folder Folders', () => { - it.each([ - "saves the folder data when a new shared-folder folder is created in a shared folder", - "saves the folder data when an existing shared folder folder is edited in the same shared folder", - ])('%s', async () => { - const sharedFolderUid = platform.getRandomBytes(16) - const sharedFolderUidStr = webSafe64FromBytes(sharedFolderUid) - const decryptedSharedFolderKey = platform.getRandomBytes(32) - const sharedFolderKey = await platform.aesGcmEncrypt(decryptedSharedFolderKey, auth.dataKey!) - const decryptedFolderData = { name: "an existing user folder" } - const {sharedFolderFolderUid, sharedFolderFolder} = await syncDownResponseBuilder.addSharedFolderFolder(decryptedFolderData, sharedFolderUid, decryptedSharedFolderKey) - const sharedFolderFolderUidStr = webSafe64FromBytes(sharedFolderFolderUid) - syncDownResponseBuilder.addRemovedUserFolder(sharedFolderFolderUid) - mockSyncDownCommand.mockResolvedValue(syncDownResponseBuilder.build()) - await platform.unwrapKey(sharedFolderKey, sharedFolderUidStr, 'data', 'gcm', 'aes') - await syncDown({ - auth, - storage, - }) - expect(storage.put).toHaveBeenCalledWith({ - kind: 'shared_folder_folder', - data: decryptedFolderData, - revision: sharedFolderFolder.revision, - sharedFolderUid: sharedFolderUidStr, - uid: sharedFolderFolderUidStr, - }) - }) - it('saves the folder data when an existing user folder is moved to a shared folder (the user folder gets converted to a shared-folder folder)', async () => { - const sharedFolderUid = platform.getRandomBytes(16) - const sharedFolderUidStr = webSafe64FromBytes(sharedFolderUid) - const decryptedSharedFolderKey = platform.getRandomBytes(32) - const sharedFolderKey = await platform.aesGcmEncrypt(decryptedSharedFolderKey, auth.dataKey!) - const folderName = 'an existing user folder' - const decryptedFolderData = { name: folderName } - const {sharedFolderFolderUid, sharedFolderFolder} = await syncDownResponseBuilder.addSharedFolderFolder(decryptedFolderData, sharedFolderUid, decryptedSharedFolderKey, sharedFolderUid) - syncDownResponseBuilder.addRemovedUserFolder(sharedFolderFolderUid) - const sharedFolderFolderUidStr = webSafe64FromBytes(sharedFolderFolderUid) - mockSyncDownCommand.mockResolvedValue(syncDownResponseBuilder.build()) - await platform.unwrapKey(sharedFolderKey, sharedFolderUidStr, 'data', 'gcm', 'aes') - await syncDown({ - auth, - storage, - }) - expect(storage.put).toHaveBeenCalledWith({ - kind: 'shared_folder_folder', - data: decryptedFolderData, - revision: sharedFolderFolder.revision, - sharedFolderUid: sharedFolderUidStr, - uid: sharedFolderFolderUidStr, - }) - expect(storage.delete).toHaveBeenCalledWith('user_folder', sharedFolderFolderUidStr) - expect(storage.addDependencies).toHaveBeenCalledWith({ - [sharedFolderUidStr]: new Set([{ - kind: "shared_folder_folder", - parentUid: sharedFolderUidStr, - uid: sharedFolderFolderUidStr, - }]) - }) - }) - it('deletes the folder data when a shared-folder folder is deleted from a shared folder - empty folder', async () => { - const folderUid = platform.getRandomBytes(16) - const folderUidStr = webSafe64FromBytes(folderUid) - const sharedFolderUid = platform.getRandomBytes(16) - const sharedFolderUidStr = webSafe64FromBytes(sharedFolderUid) - const sharedFolderFolder: Vault.ISharedFolderFolder = { - folderUid, - sharedFolderUid, - parentUid: new Uint8Array([]) - } - syncDownResponseBuilder.addRemovedSharedFolderFolder(sharedFolderFolder) - mockSyncDownCommand.mockResolvedValue(syncDownResponseBuilder.build()) - await syncDown({ - auth, - storage, - }) - expect(storage.delete).toHaveBeenCalledWith("user_folder", folderUidStr) - expect(storage.removeDependencies).toHaveBeenCalledWith({ - [folderUidStr]: "*", - [sharedFolderUidStr]: new Set([folderUidStr]) - }) - }) - it('deletes the folder data when a shared-folder folder is deleted from a shared folder - folder with child records and child shared-folder folders', async () => { - /* + const decryptedRecordData = { + title: 'a record removed from a shared folder to a root vault', + }; + const sharedFolderDataA = { + name: 'shared folder A', + }; + const sharedFolderDataB = { + name: 'shared folder B', + }; + const { sharedFolderUid: sharedFolderUidA, sharedFolder: sharedFolderA } = + await syncDownResponseBuilder.addSharedFolder(sharedFolderDataA, syncDownUser, {}); + const { + sharedFolderUid: sharedFolderUidB, + sharedFolder: sharedFolderB, + decryptedSharedFolderKey: decryptedSharedFolderKeyB, + } = await syncDownResponseBuilder.addSharedFolder(sharedFolderDataB, syncDownUser, {}); + const sharedFolderUidAStr = webSafe64FromBytes(sharedFolderUidA); + const sharedFolderUidBStr = webSafe64FromBytes(sharedFolderUidB); + const { recordUid, recordKey, record } = await syncDownResponseBuilder.addRecord( + decryptedRecordData, + decryptedSharedFolderKeyB + ); + const recordUidStr = webSafe64FromBytes(recordUid); + const removedSharedFolderFolderRecord: Vault.ISharedFolderFolderRecord = { + recordUid, + sharedFolderUid: sharedFolderUidA, + folderUid: new Uint8Array([]), + }; + const removedSharedFolderRecord: Vault.ISharedFolderRecord = { + recordUid, + sharedFolderUid: sharedFolderUidA, + }; + const sharedFolderFolderRecord: Vault.ISharedFolderFolderRecord = { + recordUid, + sharedFolderUid: sharedFolderUidB, + revision: Date.now(), + folderUid: new Uint8Array([]), + }; + const sharedFolderRecord: Vault.ISharedFolderRecord = { + recordUid, + recordKey, + sharedFolderUid: sharedFolderUidB, + owner: true, + ownerAccountUid: new Uint8Array([]), + }; + syncDownResponseBuilder.addRemovedSharedFolderFolderRecord(removedSharedFolderFolderRecord); + syncDownResponseBuilder.addRemovedSharedFolderRecord(removedSharedFolderRecord); + syncDownResponseBuilder.addSharedFolderRecord(sharedFolderRecord); + syncDownResponseBuilder.addSharedFolderFolderRecord(sharedFolderFolderRecord); + mockSyncDownCommand.mockResolvedValue(syncDownResponseBuilder.build()); + await syncDown({ + auth, + storage, + }); + expect(storage.put).toHaveBeenCalledWith( + expect.objectContaining({ + kind: 'record', + uid: recordUidStr, + revision: record.revision, + }) + ); + expect(storage.put).toHaveBeenCalledWith( + expect.objectContaining({ + kind: 'shared_folder_record', + recordUid: recordUidStr, + sharedFolderUid: sharedFolderUidBStr, + }) + ); + expect(storage.removeDependencies).toHaveBeenCalledWith({ + '': new Set([recordUidStr]), + [sharedFolderUidAStr]: new Set([recordUidStr]), + }); + expect(storage.put).toHaveBeenCalledWith( + expect.objectContaining({ + uid: sharedFolderUidAStr, + kind: 'shared_folder', + revision: sharedFolderA.revision, + }) + ); + expect(storage.put).toHaveBeenCalledWith( + expect.objectContaining({ + uid: sharedFolderUidBStr, + kind: 'shared_folder', + revision: sharedFolderB.revision, + }) + ); + }); + }); + describe('Shared-Folder Folders', () => { + it.each([ + 'saves the folder data when a new shared-folder folder is created in a shared folder', + 'saves the folder data when an existing shared folder folder is edited in the same shared folder', + ])('%s', async () => { + const sharedFolderUid = platform.getRandomBytes(16); + const sharedFolderUidStr = webSafe64FromBytes(sharedFolderUid); + const decryptedSharedFolderKey = platform.getRandomBytes(32); + const sharedFolderKey = await platform.aesGcmEncrypt(decryptedSharedFolderKey, auth.dataKey!); + const decryptedFolderData = { name: 'an existing user folder' }; + const { sharedFolderFolderUid, sharedFolderFolder } = await syncDownResponseBuilder.addSharedFolderFolder( + decryptedFolderData, + sharedFolderUid, + decryptedSharedFolderKey + ); + const sharedFolderFolderUidStr = webSafe64FromBytes(sharedFolderFolderUid); + syncDownResponseBuilder.addRemovedUserFolder(sharedFolderFolderUid); + mockSyncDownCommand.mockResolvedValue(syncDownResponseBuilder.build()); + await platform.unwrapKey(sharedFolderKey, sharedFolderUidStr, 'data', 'gcm', 'aes'); + await syncDown({ + auth, + storage, + }); + expect(storage.put).toHaveBeenCalledWith({ + kind: 'shared_folder_folder', + data: decryptedFolderData, + revision: sharedFolderFolder.revision, + sharedFolderUid: sharedFolderUidStr, + uid: sharedFolderFolderUidStr, + }); + }); + it('saves the folder data when an existing user folder is moved to a shared folder (the user folder gets converted to a shared-folder folder)', async () => { + const sharedFolderUid = platform.getRandomBytes(16); + const sharedFolderUidStr = webSafe64FromBytes(sharedFolderUid); + const decryptedSharedFolderKey = platform.getRandomBytes(32); + const sharedFolderKey = await platform.aesGcmEncrypt(decryptedSharedFolderKey, auth.dataKey!); + const folderName = 'an existing user folder'; + const decryptedFolderData = { name: folderName }; + const { sharedFolderFolderUid, sharedFolderFolder } = await syncDownResponseBuilder.addSharedFolderFolder( + decryptedFolderData, + sharedFolderUid, + decryptedSharedFolderKey, + sharedFolderUid + ); + syncDownResponseBuilder.addRemovedUserFolder(sharedFolderFolderUid); + const sharedFolderFolderUidStr = webSafe64FromBytes(sharedFolderFolderUid); + mockSyncDownCommand.mockResolvedValue(syncDownResponseBuilder.build()); + await platform.unwrapKey(sharedFolderKey, sharedFolderUidStr, 'data', 'gcm', 'aes'); + await syncDown({ + auth, + storage, + }); + expect(storage.put).toHaveBeenCalledWith({ + kind: 'shared_folder_folder', + data: decryptedFolderData, + revision: sharedFolderFolder.revision, + sharedFolderUid: sharedFolderUidStr, + uid: sharedFolderFolderUidStr, + }); + expect(storage.delete).toHaveBeenCalledWith('user_folder', sharedFolderFolderUidStr); + expect(storage.addDependencies).toHaveBeenCalledWith({ + [sharedFolderUidStr]: new Set([ + { + kind: 'shared_folder_folder', + parentUid: sharedFolderUidStr, + uid: sharedFolderFolderUidStr, + }, + ]), + }); + }); + it('deletes the folder data when a shared-folder folder is deleted from a shared folder - empty folder', async () => { + const folderUid = platform.getRandomBytes(16); + const folderUidStr = webSafe64FromBytes(folderUid); + const sharedFolderUid = platform.getRandomBytes(16); + const sharedFolderUidStr = webSafe64FromBytes(sharedFolderUid); + const sharedFolderFolder: Vault.ISharedFolderFolder = { + folderUid, + sharedFolderUid, + parentUid: new Uint8Array([]), + }; + syncDownResponseBuilder.addRemovedSharedFolderFolder(sharedFolderFolder); + mockSyncDownCommand.mockResolvedValue(syncDownResponseBuilder.build()); + await syncDown({ + auth, + storage, + }); + expect(storage.delete).toHaveBeenCalledWith('user_folder', folderUidStr); + expect(storage.removeDependencies).toHaveBeenCalledWith({ + [folderUidStr]: '*', + [sharedFolderUidStr]: new Set([folderUidStr]), + }); + }); + it('deletes the folder data when a shared-folder folder is deleted from a shared folder - folder with child records and child shared-folder folders', async () => { + /* shared-folder folder A/ <-- contains a record C └── shared-folder folder B/ <-- contains a record D */ - const sharedFolderData = { name: "a parent shared folder" } - const sharedFolderFolderUidA = platform.getRandomBytes(16) - const sharedFolderFolderUidAStr = webSafe64FromBytes(sharedFolderFolderUidA) - const sharedFolderFolderUidB = platform.getRandomBytes(16) - const sharedFolderFolderUidBStr = webSafe64FromBytes(sharedFolderFolderUidB) - const recordUidC = platform.getRandomBytes(16) - const recordUidCStr = webSafe64FromBytes(recordUidC) - const recordUidD = platform.getRandomBytes(16) - const recordUidDStr = webSafe64FromBytes(recordUidD) - const {sharedFolderUid, sharedFolder} = await syncDownResponseBuilder.addSharedFolder(sharedFolderData, syncDownUser, {}) - const sharedFolderUidStr = webSafe64FromBytes(sharedFolderUid) - const removedSharedFolderFolderA: Vault.ISharedFolderFolder = { - folderUid: sharedFolderFolderUidA, - sharedFolderUid, - parentUid: new Uint8Array([]), - } - const removedSharedFolderFolderB: Vault.ISharedFolderFolder = { - folderUid: sharedFolderFolderUidB, - parentUid: sharedFolderFolderUidA, - sharedFolderUid, - } - const removedSharedFolderRecordC: Vault.ISharedFolderRecord = { - recordUid: recordUidC, - sharedFolderUid, - } - const removedSharedFolderRecordD: Vault.ISharedFolderRecord = { - recordUid: recordUidD, - sharedFolderUid, - } - syncDownResponseBuilder.addRemovedSharedFolderFolder(removedSharedFolderFolderA) - syncDownResponseBuilder.addRemovedSharedFolderFolder(removedSharedFolderFolderB) - syncDownResponseBuilder.addRemovedSharedFolderRecord(removedSharedFolderRecordC) - syncDownResponseBuilder.addRemovedSharedFolderRecord(removedSharedFolderRecordD) - mockSyncDownCommand.mockResolvedValue(syncDownResponseBuilder.build()) - await syncDown({ - auth, - storage, - }) - expect(storage.delete).toHaveBeenCalledWith('user_folder', sharedFolderFolderUidAStr) - expect(storage.delete).toHaveBeenCalledWith('user_folder', sharedFolderFolderUidBStr) - expect(storage.removeDependencies).toHaveBeenCalledWith({ - [sharedFolderUidStr]: new Set([ - sharedFolderFolderUidAStr, - sharedFolderFolderUidBStr, - recordUidCStr, - recordUidDStr, - ]), - [sharedFolderFolderUidAStr]: "*", - [sharedFolderFolderUidBStr]: "*", - }) - expect(storage.put).toHaveBeenCalledWith(expect.objectContaining({ - kind: "shared_folder", - uid: sharedFolderUidStr, - revision: sharedFolder.revision, - })) - }) - it('does not allow to take the shared-folder folder out from the shared folder', () => {}) - it('updates the folder data when a shared-folder folder is moved into another shared-folder folder: both are still under the same shared folder', async () => { - /* + const sharedFolderData = { name: 'a parent shared folder' }; + const sharedFolderFolderUidA = platform.getRandomBytes(16); + const sharedFolderFolderUidAStr = webSafe64FromBytes(sharedFolderFolderUidA); + const sharedFolderFolderUidB = platform.getRandomBytes(16); + const sharedFolderFolderUidBStr = webSafe64FromBytes(sharedFolderFolderUidB); + const recordUidC = platform.getRandomBytes(16); + const recordUidCStr = webSafe64FromBytes(recordUidC); + const recordUidD = platform.getRandomBytes(16); + const recordUidDStr = webSafe64FromBytes(recordUidD); + const { sharedFolderUid, sharedFolder } = await syncDownResponseBuilder.addSharedFolder( + sharedFolderData, + syncDownUser, + {} + ); + const sharedFolderUidStr = webSafe64FromBytes(sharedFolderUid); + const removedSharedFolderFolderA: Vault.ISharedFolderFolder = { + folderUid: sharedFolderFolderUidA, + sharedFolderUid, + parentUid: new Uint8Array([]), + }; + const removedSharedFolderFolderB: Vault.ISharedFolderFolder = { + folderUid: sharedFolderFolderUidB, + parentUid: sharedFolderFolderUidA, + sharedFolderUid, + }; + const removedSharedFolderRecordC: Vault.ISharedFolderRecord = { + recordUid: recordUidC, + sharedFolderUid, + }; + const removedSharedFolderRecordD: Vault.ISharedFolderRecord = { + recordUid: recordUidD, + sharedFolderUid, + }; + syncDownResponseBuilder.addRemovedSharedFolderFolder(removedSharedFolderFolderA); + syncDownResponseBuilder.addRemovedSharedFolderFolder(removedSharedFolderFolderB); + syncDownResponseBuilder.addRemovedSharedFolderRecord(removedSharedFolderRecordC); + syncDownResponseBuilder.addRemovedSharedFolderRecord(removedSharedFolderRecordD); + mockSyncDownCommand.mockResolvedValue(syncDownResponseBuilder.build()); + await syncDown({ + auth, + storage, + }); + expect(storage.delete).toHaveBeenCalledWith('user_folder', sharedFolderFolderUidAStr); + expect(storage.delete).toHaveBeenCalledWith('user_folder', sharedFolderFolderUidBStr); + expect(storage.removeDependencies).toHaveBeenCalledWith({ + [sharedFolderUidStr]: new Set([ + sharedFolderFolderUidAStr, + sharedFolderFolderUidBStr, + recordUidCStr, + recordUidDStr, + ]), + [sharedFolderFolderUidAStr]: '*', + [sharedFolderFolderUidBStr]: '*', + }); + expect(storage.put).toHaveBeenCalledWith( + expect.objectContaining({ + kind: 'shared_folder', + uid: sharedFolderUidStr, + revision: sharedFolder.revision, + }) + ); + }); + it('does not allow to take the shared-folder folder out from the shared folder', () => {}); + it('updates the folder data when a shared-folder folder is moved into another shared-folder folder: both are still under the same shared folder', async () => { + /* [before update] shared-folder folder A/ shared-folder folder B/ <-- contains a record C @@ -1293,242 +1385,291 @@ describe('Sync Down', () => { shared-folder folder A/ └── shared-folder folder B/ <-- contains a record C */ - const decryptedSharedFolderKey = platform.getRandomBytes(32) - const sharedFolderKey = await platform.aesGcmEncrypt(decryptedSharedFolderKey, auth.dataKey!) - const decryptedFolderData = { name: "an existing user folder" } - const recordUidC = platform.getRandomBytes(16) - const recordUidCStr = webSafe64FromBytes(recordUidC) - const sharedFolderUid = platform.getRandomBytes(16) - const sharedFolderUidStr = webSafe64FromBytes(sharedFolderUid) - const sharedFolderFolderAUid = platform.getRandomBytes(16) - const sharedFolderFolderAUidStr = webSafe64FromBytes(sharedFolderFolderAUid) - const {sharedFolderFolderUid: sharedFolderFolderBUid, sharedFolderFolder } = await syncDownResponseBuilder.addSharedFolderFolder(decryptedFolderData, sharedFolderUid, decryptedSharedFolderKey, sharedFolderFolderAUid) - const sharedFolderFolderBUidStr = webSafe64FromBytes(sharedFolderFolderBUid) - const sharedFolderFolderRecord: Vault.ISharedFolderFolderRecord = { - recordUid: recordUidC, - sharedFolderUid, - folderUid: sharedFolderFolderBUid, - revision: Date.now(), - } - await platform.unwrapKey(sharedFolderKey, sharedFolderUidStr, 'data', 'gcm', 'aes') - syncDownResponseBuilder.addSharedFolderFolderRecord(sharedFolderFolderRecord) - mockSyncDownCommand.mockResolvedValue(syncDownResponseBuilder.build()) - await syncDown({ - auth, - storage, - }) - expect(storage.addDependencies).toHaveBeenCalledWith({ - [sharedFolderFolderBUidStr]: new Set([{ - kind: "record", - parentUid: sharedFolderFolderBUidStr, - uid: recordUidCStr, - }]), - [sharedFolderFolderAUidStr]: new Set([{ - kind: "shared_folder_folder", - parentUid: sharedFolderFolderAUidStr, - uid: sharedFolderFolderBUidStr, - }]) - }) - expect(storage.put).toHaveBeenCalledWith(expect.objectContaining({ - kind: "shared_folder_folder", - uid: sharedFolderFolderBUidStr, - revision: sharedFolderFolder.revision, - sharedFolderUid: sharedFolderUidStr, - })) - }) - it('saves the record data when a new record data is added to a shared-folder folder', async () => { - const sharedFolderData = { - name: 'shared folder', - } - const sharedFolderFolderData = { - name: 'shared-folder folder', - } - const recordData = { - title: 'record' - } - const {sharedFolderUid, sharedFolder, decryptedSharedFolderKey} = await syncDownResponseBuilder.addSharedFolder(sharedFolderData, syncDownUser, {}) - const sharedFolderUidStr = webSafe64FromBytes(sharedFolderUid) - const {sharedFolderFolderUid, sharedFolderFolder} = await syncDownResponseBuilder.addSharedFolderFolder(sharedFolderFolderData, sharedFolderUid, decryptedSharedFolderKey) - const sharedFolderFolderUidStr = webSafe64FromBytes(sharedFolderFolderUid) - const {recordUid, record, recordKey} = await syncDownResponseBuilder.addRecord(recordData, decryptedSharedFolderKey) - const recordUidStr = webSafe64FromBytes(recordUid) - const sharedFolderFolderRecord: Vault.ISharedFolderFolderRecord = { - sharedFolderUid, - recordUid, - folderUid: sharedFolderFolderUid, - revision: Date.now(), - } - const sharedFolderRecord: Vault.ISharedFolderRecord = { - owner: true, - sharedFolderUid, - recordKey, - recordUid, - ownerAccountUid: new Uint8Array([]), - } - syncDownResponseBuilder.addSharedFolderFolderRecord(sharedFolderFolderRecord) - syncDownResponseBuilder.addSharedFolderRecord(sharedFolderRecord) - mockSyncDownCommand.mockResolvedValue(syncDownResponseBuilder.build()) - await syncDown({ - auth, - storage, - }) - expect(storage.put).toHaveBeenCalledWith(expect.objectContaining({ - kind: "shared_folder", - uid: sharedFolderUidStr, - revision: sharedFolder.revision, - })) - expect(storage.put).toHaveBeenCalledWith(expect.objectContaining({ - kind: "shared_folder_folder", - uid: sharedFolderFolderUidStr, - revision: sharedFolderFolder.revision, - })) - expect(storage.put).toHaveBeenCalledWith(expect.objectContaining({ - kind: 'record', - uid: recordUidStr, - revision: record.revision, - })) - expect(storage.put).toHaveBeenCalledWith({ - kind: 'shared_folder_record', - recordUid: recordUidStr, - sharedFolderUid: sharedFolderUidStr, - canEdit: true, - canShare: true, - owner: sharedFolderRecord.owner, - ownerUid: webSafe64FromBytes(sharedFolderRecord.ownerAccountUid!), - ownerUsername: sharedFolderRecord.ownerUsername, - }) - expect(storage.addDependencies).toHaveBeenCalledWith({ - [sharedFolderFolderUidStr]: new Set([{ - kind: "record", - uid: recordUidStr, - parentUid: sharedFolderFolderUidStr, - }]) - }) - }) - it('saves the record data when an existing record is added to a shared-folder folder', async () => { - const sharedFolderData = { - name: 'shared folder', - } - const recordData = { - title: 'record' - } - const {sharedFolderUid, sharedFolder, decryptedSharedFolderKey} = await syncDownResponseBuilder.addSharedFolder(sharedFolderData, syncDownUser, {}) - const sharedFolderUidStr = webSafe64FromBytes(sharedFolderUid) - const {recordUid, record, recordKey} = await syncDownResponseBuilder.addRecord(recordData, decryptedSharedFolderKey) - const recordUidStr = webSafe64FromBytes(recordUid) - const sharedFolderFolderUid = platform.getRandomBytes(16) - const sharedFolderFolderUidStr = webSafe64FromBytes(sharedFolderFolderUid) - const sharedFolderFolderRecord: Vault.ISharedFolderFolderRecord = { - sharedFolderUid, - recordUid, - folderUid: sharedFolderFolderUid, - revision: Date.now(), - } - const sharedFolderRecord: Vault.ISharedFolderRecord = { - owner: true, - sharedFolderUid, - recordKey, - recordUid, - ownerAccountUid: new Uint8Array([]), - } - syncDownResponseBuilder.addSharedFolderFolderRecord(sharedFolderFolderRecord) - syncDownResponseBuilder.addSharedFolderRecord(sharedFolderRecord) - syncDownResponseBuilder.addRemovedRecord(recordUid) - mockSyncDownCommand.mockResolvedValue(syncDownResponseBuilder.build()) - await syncDown({ - auth, - storage, - }) - expect(storage.put).toHaveBeenCalledWith(expect.objectContaining({ - kind: "shared_folder", - uid: sharedFolderUidStr, - revision: sharedFolder.revision, - })) - expect(storage.put).toHaveBeenCalledWith(expect.objectContaining({ - kind: "record", - uid: recordUidStr, - revision: record.revision, - })) - expect(storage.put).toHaveBeenCalledWith({ - kind: 'shared_folder_record', - recordUid: recordUidStr, - sharedFolderUid: sharedFolderUidStr, - canEdit: true, - canShare: true, - owner: sharedFolderRecord.owner, - ownerUid: webSafe64FromBytes(sharedFolderRecord.ownerAccountUid!), - ownerUsername: sharedFolderRecord.ownerUsername, - }) - expect(storage.addDependencies).toHaveBeenCalledWith({ - [sharedFolderFolderUidStr]: new Set([{ - kind: "record", - uid: recordUidStr, - parentUid: sharedFolderFolderUidStr, - }]) - }) - expect(storage.delete).toHaveBeenCalledWith("record", recordUidStr) - }) - it('saves the record data when an existing child record of a shared-folder folder is updated', async () => { - const sharedFolderUid = platform.getRandomBytes(16) - const sharedFolderUidStr = webSafe64FromBytes(sharedFolderUid) - const decryptedSharedFolderKey = platform.getRandomBytes(32) - const recordData = { - title: 'a child record has been updated' - } - const {recordUid, record, recordKey} = await syncDownResponseBuilder.addRecord(recordData, decryptedSharedFolderKey) - const recordUidStr = webSafe64FromBytes(recordUid) - const sharedFolderKey = await platform.aesGcmEncrypt(decryptedSharedFolderKey, auth.dataKey!) - await platform.unwrapKey(sharedFolderKey, sharedFolderUidStr, 'data', 'gcm', 'aes') - await platform.unwrapKey(recordKey, recordUidStr, sharedFolderUidStr, 'gcm', 'aes') - mockSyncDownCommand.mockResolvedValue(syncDownResponseBuilder.build()) - await syncDown({ - auth, - storage, - }) - expect(storage.put).toHaveBeenCalledWith(expect.objectContaining({ - kind: 'record', - uid: webSafe64FromBytes(recordUid), - revision: record.revision, - })) - }) - it('updates the record data when a child record of a shared-folder folder is deleted', async () => { - const recordUid = platform.getRandomBytes(16) - const recordUidStr = webSafe64FromBytes(recordUid) - const sharedFolderData = { - name: 'shared folder', - } - const {sharedFolderUid, sharedFolder} = await syncDownResponseBuilder.addSharedFolder(sharedFolderData, syncDownUser, {}) - const sharedFolderUidStr = webSafe64FromBytes(sharedFolderUid) - const sharedFolderFolderUid = platform.getRandomBytes(16) - const sharedFolderFolderUidStr = webSafe64FromBytes(sharedFolderFolderUid) - const removedSharedFolderRecord: Vault.ISharedFolderRecord = { - sharedFolderUid, - recordUid, - } - const removedSharedFolderFolderRecord: Vault.ISharedFolderFolderRecord = { - folderUid: sharedFolderFolderUid, - sharedFolderUid, - recordUid, - } - syncDownResponseBuilder.addRemovedSharedFolderRecord(removedSharedFolderRecord) - syncDownResponseBuilder.addRemovedSharedFolderFolderRecord(removedSharedFolderFolderRecord) - mockSyncDownCommand.mockResolvedValue(syncDownResponseBuilder.build()) - await syncDown({ - auth, - storage, - }) - expect(storage.put).toHaveBeenCalledWith(expect.objectContaining({ - kind: "shared_folder", - uid: sharedFolderUidStr, - revision: sharedFolder.revision, - })) - expect(storage.removeDependencies).toHaveBeenCalledWith({ - [sharedFolderUidStr]: new Set([recordUidStr]), - [sharedFolderFolderUidStr]: new Set([recordUidStr]), - }) - }) - it('updates the record data when a child record when its moved to another shared-folder folder within the same parent shared folder', async () => { - /* + const decryptedSharedFolderKey = platform.getRandomBytes(32); + const sharedFolderKey = await platform.aesGcmEncrypt(decryptedSharedFolderKey, auth.dataKey!); + const decryptedFolderData = { name: 'an existing user folder' }; + const recordUidC = platform.getRandomBytes(16); + const recordUidCStr = webSafe64FromBytes(recordUidC); + const sharedFolderUid = platform.getRandomBytes(16); + const sharedFolderUidStr = webSafe64FromBytes(sharedFolderUid); + const sharedFolderFolderAUid = platform.getRandomBytes(16); + const sharedFolderFolderAUidStr = webSafe64FromBytes(sharedFolderFolderAUid); + const { sharedFolderFolderUid: sharedFolderFolderBUid, sharedFolderFolder } = + await syncDownResponseBuilder.addSharedFolderFolder( + decryptedFolderData, + sharedFolderUid, + decryptedSharedFolderKey, + sharedFolderFolderAUid + ); + const sharedFolderFolderBUidStr = webSafe64FromBytes(sharedFolderFolderBUid); + const sharedFolderFolderRecord: Vault.ISharedFolderFolderRecord = { + recordUid: recordUidC, + sharedFolderUid, + folderUid: sharedFolderFolderBUid, + revision: Date.now(), + }; + await platform.unwrapKey(sharedFolderKey, sharedFolderUidStr, 'data', 'gcm', 'aes'); + syncDownResponseBuilder.addSharedFolderFolderRecord(sharedFolderFolderRecord); + mockSyncDownCommand.mockResolvedValue(syncDownResponseBuilder.build()); + await syncDown({ + auth, + storage, + }); + expect(storage.addDependencies).toHaveBeenCalledWith({ + [sharedFolderFolderBUidStr]: new Set([ + { + kind: 'record', + parentUid: sharedFolderFolderBUidStr, + uid: recordUidCStr, + }, + ]), + [sharedFolderFolderAUidStr]: new Set([ + { + kind: 'shared_folder_folder', + parentUid: sharedFolderFolderAUidStr, + uid: sharedFolderFolderBUidStr, + }, + ]), + }); + expect(storage.put).toHaveBeenCalledWith( + expect.objectContaining({ + kind: 'shared_folder_folder', + uid: sharedFolderFolderBUidStr, + revision: sharedFolderFolder.revision, + sharedFolderUid: sharedFolderUidStr, + }) + ); + }); + it('saves the record data when a new record data is added to a shared-folder folder', async () => { + const sharedFolderData = { + name: 'shared folder', + }; + const sharedFolderFolderData = { + name: 'shared-folder folder', + }; + const recordData = { + title: 'record', + }; + const { sharedFolderUid, sharedFolder, decryptedSharedFolderKey } = + await syncDownResponseBuilder.addSharedFolder(sharedFolderData, syncDownUser, {}); + const sharedFolderUidStr = webSafe64FromBytes(sharedFolderUid); + const { sharedFolderFolderUid, sharedFolderFolder } = await syncDownResponseBuilder.addSharedFolderFolder( + sharedFolderFolderData, + sharedFolderUid, + decryptedSharedFolderKey + ); + const sharedFolderFolderUidStr = webSafe64FromBytes(sharedFolderFolderUid); + const { recordUid, record, recordKey } = await syncDownResponseBuilder.addRecord( + recordData, + decryptedSharedFolderKey + ); + const recordUidStr = webSafe64FromBytes(recordUid); + const sharedFolderFolderRecord: Vault.ISharedFolderFolderRecord = { + sharedFolderUid, + recordUid, + folderUid: sharedFolderFolderUid, + revision: Date.now(), + }; + const sharedFolderRecord: Vault.ISharedFolderRecord = { + owner: true, + sharedFolderUid, + recordKey, + recordUid, + ownerAccountUid: new Uint8Array([]), + }; + syncDownResponseBuilder.addSharedFolderFolderRecord(sharedFolderFolderRecord); + syncDownResponseBuilder.addSharedFolderRecord(sharedFolderRecord); + mockSyncDownCommand.mockResolvedValue(syncDownResponseBuilder.build()); + await syncDown({ + auth, + storage, + }); + expect(storage.put).toHaveBeenCalledWith( + expect.objectContaining({ + kind: 'shared_folder', + uid: sharedFolderUidStr, + revision: sharedFolder.revision, + }) + ); + expect(storage.put).toHaveBeenCalledWith( + expect.objectContaining({ + kind: 'shared_folder_folder', + uid: sharedFolderFolderUidStr, + revision: sharedFolderFolder.revision, + }) + ); + expect(storage.put).toHaveBeenCalledWith( + expect.objectContaining({ + kind: 'record', + uid: recordUidStr, + revision: record.revision, + }) + ); + expect(storage.put).toHaveBeenCalledWith({ + kind: 'shared_folder_record', + recordUid: recordUidStr, + sharedFolderUid: sharedFolderUidStr, + canEdit: true, + canShare: true, + owner: sharedFolderRecord.owner, + ownerUid: webSafe64FromBytes(sharedFolderRecord.ownerAccountUid!), + ownerUsername: sharedFolderRecord.ownerUsername, + }); + expect(storage.addDependencies).toHaveBeenCalledWith({ + [sharedFolderFolderUidStr]: new Set([ + { + kind: 'record', + uid: recordUidStr, + parentUid: sharedFolderFolderUidStr, + }, + ]), + }); + }); + it('saves the record data when an existing record is added to a shared-folder folder', async () => { + const sharedFolderData = { + name: 'shared folder', + }; + const recordData = { + title: 'record', + }; + const { sharedFolderUid, sharedFolder, decryptedSharedFolderKey } = + await syncDownResponseBuilder.addSharedFolder(sharedFolderData, syncDownUser, {}); + const sharedFolderUidStr = webSafe64FromBytes(sharedFolderUid); + const { recordUid, record, recordKey } = await syncDownResponseBuilder.addRecord( + recordData, + decryptedSharedFolderKey + ); + const recordUidStr = webSafe64FromBytes(recordUid); + const sharedFolderFolderUid = platform.getRandomBytes(16); + const sharedFolderFolderUidStr = webSafe64FromBytes(sharedFolderFolderUid); + const sharedFolderFolderRecord: Vault.ISharedFolderFolderRecord = { + sharedFolderUid, + recordUid, + folderUid: sharedFolderFolderUid, + revision: Date.now(), + }; + const sharedFolderRecord: Vault.ISharedFolderRecord = { + owner: true, + sharedFolderUid, + recordKey, + recordUid, + ownerAccountUid: new Uint8Array([]), + }; + syncDownResponseBuilder.addSharedFolderFolderRecord(sharedFolderFolderRecord); + syncDownResponseBuilder.addSharedFolderRecord(sharedFolderRecord); + syncDownResponseBuilder.addRemovedRecord(recordUid); + mockSyncDownCommand.mockResolvedValue(syncDownResponseBuilder.build()); + await syncDown({ + auth, + storage, + }); + expect(storage.put).toHaveBeenCalledWith( + expect.objectContaining({ + kind: 'shared_folder', + uid: sharedFolderUidStr, + revision: sharedFolder.revision, + }) + ); + expect(storage.put).toHaveBeenCalledWith( + expect.objectContaining({ + kind: 'record', + uid: recordUidStr, + revision: record.revision, + }) + ); + expect(storage.put).toHaveBeenCalledWith({ + kind: 'shared_folder_record', + recordUid: recordUidStr, + sharedFolderUid: sharedFolderUidStr, + canEdit: true, + canShare: true, + owner: sharedFolderRecord.owner, + ownerUid: webSafe64FromBytes(sharedFolderRecord.ownerAccountUid!), + ownerUsername: sharedFolderRecord.ownerUsername, + }); + expect(storage.addDependencies).toHaveBeenCalledWith({ + [sharedFolderFolderUidStr]: new Set([ + { + kind: 'record', + uid: recordUidStr, + parentUid: sharedFolderFolderUidStr, + }, + ]), + }); + expect(storage.delete).toHaveBeenCalledWith('record', recordUidStr); + }); + it('saves the record data when an existing child record of a shared-folder folder is updated', async () => { + const sharedFolderUid = platform.getRandomBytes(16); + const sharedFolderUidStr = webSafe64FromBytes(sharedFolderUid); + const decryptedSharedFolderKey = platform.getRandomBytes(32); + const recordData = { + title: 'a child record has been updated', + }; + const { recordUid, record, recordKey } = await syncDownResponseBuilder.addRecord( + recordData, + decryptedSharedFolderKey + ); + const recordUidStr = webSafe64FromBytes(recordUid); + const sharedFolderKey = await platform.aesGcmEncrypt(decryptedSharedFolderKey, auth.dataKey!); + await platform.unwrapKey(sharedFolderKey, sharedFolderUidStr, 'data', 'gcm', 'aes'); + await platform.unwrapKey(recordKey, recordUidStr, sharedFolderUidStr, 'gcm', 'aes'); + mockSyncDownCommand.mockResolvedValue(syncDownResponseBuilder.build()); + await syncDown({ + auth, + storage, + }); + expect(storage.put).toHaveBeenCalledWith( + expect.objectContaining({ + kind: 'record', + uid: webSafe64FromBytes(recordUid), + revision: record.revision, + }) + ); + }); + it('updates the record data when a child record of a shared-folder folder is deleted', async () => { + const recordUid = platform.getRandomBytes(16); + const recordUidStr = webSafe64FromBytes(recordUid); + const sharedFolderData = { + name: 'shared folder', + }; + const { sharedFolderUid, sharedFolder } = await syncDownResponseBuilder.addSharedFolder( + sharedFolderData, + syncDownUser, + {} + ); + const sharedFolderUidStr = webSafe64FromBytes(sharedFolderUid); + const sharedFolderFolderUid = platform.getRandomBytes(16); + const sharedFolderFolderUidStr = webSafe64FromBytes(sharedFolderFolderUid); + const removedSharedFolderRecord: Vault.ISharedFolderRecord = { + sharedFolderUid, + recordUid, + }; + const removedSharedFolderFolderRecord: Vault.ISharedFolderFolderRecord = { + folderUid: sharedFolderFolderUid, + sharedFolderUid, + recordUid, + }; + syncDownResponseBuilder.addRemovedSharedFolderRecord(removedSharedFolderRecord); + syncDownResponseBuilder.addRemovedSharedFolderFolderRecord(removedSharedFolderFolderRecord); + mockSyncDownCommand.mockResolvedValue(syncDownResponseBuilder.build()); + await syncDown({ + auth, + storage, + }); + expect(storage.put).toHaveBeenCalledWith( + expect.objectContaining({ + kind: 'shared_folder', + uid: sharedFolderUidStr, + revision: sharedFolder.revision, + }) + ); + expect(storage.removeDependencies).toHaveBeenCalledWith({ + [sharedFolderUidStr]: new Set([recordUidStr]), + [sharedFolderFolderUidStr]: new Set([recordUidStr]), + }); + }); + it('updates the record data when a child record when its moved to another shared-folder folder within the same parent shared folder', async () => { + /* [before update] shared folder |── shared-folder folder A/ <-- contains a record C @@ -1538,44 +1679,46 @@ describe('Sync Down', () => { |── shared-folder folder A/ └── shared-folder folder B/ <-- contains a record C */ - const recordUid = platform.getRandomBytes(16) - const recordUidStr = webSafe64FromBytes(recordUid) - const sharedFolderUid = platform.getRandomBytes(16) - const sharedFolderFolderUidA = platform.getRandomBytes(16) - const sharedFolderFolderUidAStr = webSafe64FromBytes(sharedFolderFolderUidA) - const sharedFolderFolderUidB = platform.getRandomBytes(16) - const sharedFolderFolderUidBStr = webSafe64FromBytes(sharedFolderFolderUidB) - const removedSharedFolderFolderRecord: Vault.ISharedFolderFolderRecord = { - sharedFolderUid, - folderUid: sharedFolderFolderUidA, - recordUid, - } - const sharedFolderFolderRecord: Vault.ISharedFolderFolderRecord = { - sharedFolderUid, - folderUid: sharedFolderFolderUidB, - recordUid, - revision: Date.now(), - } - syncDownResponseBuilder.addRemovedSharedFolderFolderRecord(removedSharedFolderFolderRecord) - syncDownResponseBuilder.addSharedFolderFolderRecord(sharedFolderFolderRecord) - mockSyncDownCommand.mockResolvedValue(syncDownResponseBuilder.build()) - await syncDown({ - auth, - storage, - }) - expect(storage.addDependencies).toHaveBeenCalledWith({ - [sharedFolderFolderUidBStr]: new Set([{ - kind: "record", - parentUid: sharedFolderFolderUidBStr, - uid: recordUidStr, - }]), - }) - expect(storage.removeDependencies).toHaveBeenCalledWith({ - [sharedFolderFolderUidAStr]: new Set([recordUidStr]), - }) - }) - it('updates the record data when a child record of a shared-folder folder is moved out of their parent shared folder', async () => { - /* + const recordUid = platform.getRandomBytes(16); + const recordUidStr = webSafe64FromBytes(recordUid); + const sharedFolderUid = platform.getRandomBytes(16); + const sharedFolderFolderUidA = platform.getRandomBytes(16); + const sharedFolderFolderUidAStr = webSafe64FromBytes(sharedFolderFolderUidA); + const sharedFolderFolderUidB = platform.getRandomBytes(16); + const sharedFolderFolderUidBStr = webSafe64FromBytes(sharedFolderFolderUidB); + const removedSharedFolderFolderRecord: Vault.ISharedFolderFolderRecord = { + sharedFolderUid, + folderUid: sharedFolderFolderUidA, + recordUid, + }; + const sharedFolderFolderRecord: Vault.ISharedFolderFolderRecord = { + sharedFolderUid, + folderUid: sharedFolderFolderUidB, + recordUid, + revision: Date.now(), + }; + syncDownResponseBuilder.addRemovedSharedFolderFolderRecord(removedSharedFolderFolderRecord); + syncDownResponseBuilder.addSharedFolderFolderRecord(sharedFolderFolderRecord); + mockSyncDownCommand.mockResolvedValue(syncDownResponseBuilder.build()); + await syncDown({ + auth, + storage, + }); + expect(storage.addDependencies).toHaveBeenCalledWith({ + [sharedFolderFolderUidBStr]: new Set([ + { + kind: 'record', + parentUid: sharedFolderFolderUidBStr, + uid: recordUidStr, + }, + ]), + }); + expect(storage.removeDependencies).toHaveBeenCalledWith({ + [sharedFolderFolderUidAStr]: new Set([recordUidStr]), + }); + }); + it('updates the record data when a child record of a shared-folder folder is moved out of their parent shared folder', async () => { + /* [before update] root └── shared folder @@ -1585,380 +1728,421 @@ describe('Sync Down', () => { └── shared folder └── shared-folder folder/ */ - const decryptedRecordData = { - title: "a record removed from a shared-folder folder to a root vault" - } - const {recordUid, recordKey, record} = await syncDownResponseBuilder.addRecord(decryptedRecordData) - const recordUidStr = webSafe64FromBytes(recordUid) - const recordMetadata: Vault.IRecordMetaData = { - recordUid, - recordKey, - recordKeyType: Records.RecordKeyType.ENCRYPTED_BY_DATA_KEY_GCM, - } - const sharedFolderData = { - name: 'a shared folder', - } - const {sharedFolderUid, sharedFolder} = await syncDownResponseBuilder.addSharedFolder(sharedFolderData, syncDownUser, {}) - const sharedFolderUidStr = webSafe64FromBytes(sharedFolderUid) - const sharedFolderFolderUid = platform.getRandomBytes(16) - const sharedFolderFolderUidStr = webSafe64FromBytes(sharedFolderFolderUid) - const removedSharedFolderFolderRecord: Vault.ISharedFolderFolderRecord = { - recordUid, - sharedFolderUid, - folderUid: sharedFolderFolderUid, - } - const removedSharedFolderRecord: Vault.ISharedFolderRecord = { - recordUid, - sharedFolderUid, - } - const userFolderRecord: Vault.IUserFolderRecord = { - recordUid, - folderUid: new Uint8Array([]), - revision: Date.now(), - } - syncDownResponseBuilder.addUserFolderRecord(userFolderRecord) - syncDownResponseBuilder.addRecordMetadata(recordMetadata) - syncDownResponseBuilder.addRemovedSharedFolderFolderRecord(removedSharedFolderFolderRecord) - syncDownResponseBuilder.addRemovedSharedFolderRecord(removedSharedFolderRecord) - mockSyncDownCommand.mockResolvedValue(syncDownResponseBuilder.build()) - await syncDown({ - auth, - storage, - }) - expect(storage.put).toHaveBeenCalledWith(expect.objectContaining({ - kind: "record", - uid: recordUidStr, - revision: record.revision, - })) - expect(storage.put).toHaveBeenCalledWith(expect.objectContaining({ - kind: "metadata", - uid: recordUidStr, - })) - expect(storage.put).toHaveBeenCalledWith( - expect.objectContaining({ - uid: sharedFolderUidStr, - kind: "shared_folder", - revision: sharedFolder.revision, - }) - ) - expect(storage.addDependencies).toHaveBeenCalledWith({ - "": new Set([{ - kind: "record", - parentUid: "", - uid: recordUidStr, - }]), - }) - expect(storage.removeDependencies).toHaveBeenCalledWith({ - [sharedFolderUidStr]: new Set([recordUidStr]), - [sharedFolderFolderUidStr]: new Set([recordUidStr]), - }) - }) - }) - describe('Owned Records + Shared Folders', () => { - // TODO(@hleekeeper): the test cases may differ after addressing BE-7056 - it.each([ - `deletes the shared folder and all child resources including the owned child records when a user is removed from the shared folder`, - `deletes the shared folder and all child resources including the owned child records when the shared folder is deleted (regardless or access type to the folder - user or team access)`, - ])(`%s`, async () => { - const sharedFolderUid = platform.getRandomBytes(16) - syncDownResponseBuilder.addRemovedSharedFolder(sharedFolderUid) - mockSyncDownCommand.mockResolvedValue(syncDownResponseBuilder.build()) - await syncDown({ - auth, - storage, - }) - expect(storage.delete).toHaveBeenCalledWith("shared_folder", webSafe64FromBytes(sharedFolderUid)) - }) - it(`deletes the shared folder and all child resources including the owned child records when a user's team is removed from the shared folder`, async () => { - const teamUid = platform.getRandomBytes(16) - const sharedFolderUid = platform.getRandomBytes(16) - const removedSharedFolderTeam: Vault.ISharedFolderTeam = { - teamUid, - sharedFolderUid, - } - syncDownResponseBuilder.addRemovedSharedFolderTeam(removedSharedFolderTeam) - mockSyncDownCommand.mockResolvedValue(syncDownResponseBuilder.build()) - await syncDown({ - auth, - storage, - }) - expect(storage.removeDependencies).toHaveBeenCalledWith({ - [webSafe64FromBytes(sharedFolderUid)]: new Set([webSafe64FromBytes(teamUid)]) - }) - }) - }) - describe('Directly-Shared Records + Shared Folders', () => { - // TODO(@hleekeeper): the test cases may differ after addressing BE-7056 - it.each([ - `deletes the shared folder and all child resources except the directly-shared records when a user is removed from the shared folder`, - `deletes the shared folder and all child resources except the directly-shared records when the shared folder is deleted (regardless of folder access type - user or team access)`, - ])(`%s`, async () => { - const sharedFolderUid = platform.getRandomBytes(16) - syncDownResponseBuilder.addRemovedSharedFolder(sharedFolderUid) - mockSyncDownCommand.mockResolvedValue(syncDownResponseBuilder.build()) - await syncDown({ - auth, - storage, - }) - expect(storage.delete).toHaveBeenCalledWith("shared_folder", webSafe64FromBytes(sharedFolderUid)) - }) - it(`deletes the shared folder and all child resources except the directly-shared records when a user is removed from the shared folder`, async () => { - const teamUid = platform.getRandomBytes(16) - const sharedFolderUid = platform.getRandomBytes(16) - const removedSharedFolderTeam: Vault.ISharedFolderTeam = { - teamUid, - sharedFolderUid, - } - syncDownResponseBuilder.addRemovedSharedFolderTeam(removedSharedFolderTeam) - mockSyncDownCommand.mockResolvedValue(syncDownResponseBuilder.build()) - await syncDown({ - auth, - storage, - }) - expect(storage.removeDependencies).toHaveBeenCalledWith({ - [webSafe64FromBytes(sharedFolderUid)]: new Set([webSafe64FromBytes(teamUid)]) - }) - }) - it(`doesn't delete the folder data when the directly-shared record is unshared, including the record data (regardless of folder access type - user or team access)`, async () => { - const recordUid = platform.getRandomBytes(16) - syncDownResponseBuilder.addRemovedRecord(recordUid) - mockSyncDownCommand.mockResolvedValue(syncDownResponseBuilder.build()) - await syncDown({ - auth, - storage, - }) - expect(storage.delete).toHaveBeenCalledWith("record", webSafe64FromBytes(recordUid)) - }) - it(`doesn't delete the folder data when the directly-shared record is deleted, including the record data (regardless of folder access type - user or team access)`, async () => { - const recordUid = platform.getRandomBytes(16) - const recordUidStr = webSafe64FromBytes(recordUid) - const sharedFolderData = { - name: "shared folder" - } - const {sharedFolderUid, sharedFolder} = await syncDownResponseBuilder.addSharedFolder(sharedFolderData, anotherUserA, {}) - const sharedFolderUidStr = webSafe64FromBytes(sharedFolderUid) - const removedSharedFolderFolderRecord: Vault.ISharedFolderFolderRecord = { - recordUid, - sharedFolderUid, - folderUid: new Uint8Array([]), - } - const removedSharedFolderRecord: Vault.ISharedFolderRecord = { - recordUid, - sharedFolderUid, - } - syncDownResponseBuilder.addRemovedSharedFolderRecord(removedSharedFolderRecord) - syncDownResponseBuilder.addRemovedSharedFolderFolderRecord(removedSharedFolderFolderRecord) - mockSyncDownCommand.mockResolvedValue(syncDownResponseBuilder.build()) - await syncDown({ - auth, - storage, - }) - expect(storage.put).toHaveBeenCalledWith(expect.objectContaining({ - kind: 'shared_folder', - uid: sharedFolderUidStr, - revision: sharedFolder.revision, - })) - expect(storage.removeDependencies).toHaveBeenCalledWith({ - "": new Set([recordUidStr]), - [sharedFolderUidStr]: new Set([recordUidStr]), - }) - }) - }) - describe('Linked Records', () => { - describe('V4 Linked Records - File Attachments', () => { - it('saves the record data when a new linked record is added to a record', async () => { - const recordData = { - title: 'parent record', - } - const linkedRecordData = { - title: "file attached to the parent record" - } - const {recordUid, record, decryptedRecordKey, recordKey} = await syncDownResponseBuilder.addRecord(recordData) - const recordUidStr = webSafe64FromBytes(recordUid) - const {linkedRecordUid, linkedRecordKey, linkedRecord} = await syncDownResponseBuilder.addLinkedRecord(linkedRecordData, 4, decryptedRecordKey) - const linkedRecordUidStr = webSafe64FromBytes(linkedRecordUid) - const recordLink: Vault.IRecordLink = { - parentRecordUid: recordUid, - childRecordUid: linkedRecordUid, - recordKey: linkedRecordKey, - } - syncDownResponseBuilder.addRecordLink(recordLink) - await platform.unwrapKey(recordKey, recordUidStr, 'data', 'gcm', 'aes') - mockSyncDownCommand.mockResolvedValue(syncDownResponseBuilder.build()) - await syncDown({ - auth, - storage, - }) - expect(storage.put).toHaveBeenCalledWith(expect.objectContaining({ - kind: "record", - data: recordData, - uid: recordUidStr, - revision: record.revision, - })) - expect(storage.put).toHaveBeenCalledWith(expect.objectContaining({ - kind: "record", - data: linkedRecordData, - uid: linkedRecordUidStr, - revision: linkedRecord.revision, - })) - }) - it('saves the record data when a linked record is updated, attached to another record', async () => { - const recordData = { - title: 'parent record', - } - const linkedRecordData = { - title: "file attachment updated" - } - const {recordUid, record, decryptedRecordKey, recordKey} = await syncDownResponseBuilder.addRecord(recordData) - const recordUidStr = webSafe64FromBytes(recordUid) - const {linkedRecordUid, linkedRecord, linkedRecordKey} = await syncDownResponseBuilder.addLinkedRecord(linkedRecordData, 4, decryptedRecordKey) - const linkedRecordUidStr = webSafe64FromBytes(linkedRecordUid) - await platform.unwrapKey(recordKey, recordUidStr, 'data', 'gcm', 'aes') - await platform.unwrapKey(linkedRecordKey, linkedRecordUidStr, recordUidStr, 'gcm', 'aes') - mockSyncDownCommand.mockResolvedValue(syncDownResponseBuilder.build()) - await syncDown({ - auth, - storage, - }) - expect(storage.put).toHaveBeenCalledWith(expect.objectContaining({ - kind: "record", - data: recordData, - uid: recordUidStr, - revision: record.revision, - })) - expect(storage.put).toHaveBeenCalledWith(expect.objectContaining({ - kind: "record", - data: linkedRecordData, - uid: linkedRecordUidStr, - revision: linkedRecord.revision, - })) - }) - it('update the record data when a linked record is unlinked from a record', async () => { - const recordData = { - title: 'parent record', - } - const {recordUid, record, recordKey} = await syncDownResponseBuilder.addRecord(recordData) - const recordUidStr = webSafe64FromBytes(recordUid) - await platform.unwrapKey(recordKey, recordUidStr, 'data', 'gcm', 'aes') - const linkedRecordUid = platform.getRandomBytes(16) - const linkedRecordUidStr = webSafe64FromBytes(linkedRecordUid) - const removedRecordLink: Vault.IRecordLink = { - parentRecordUid: recordUid, - childRecordUid: linkedRecordUid, - } - syncDownResponseBuilder.addRemovedRecordLink(removedRecordLink) - mockSyncDownCommand.mockResolvedValue(syncDownResponseBuilder.build()) - await syncDown({ - auth, - storage, - }) - expect(storage.put).toHaveBeenCalledWith(expect.objectContaining({ - kind: "record", - data: recordData, - uid: recordUidStr, - revision: record.revision, - })) - expect(storage.removeDependencies).toHaveBeenCalledWith({ - [recordUidStr]: new Set([linkedRecordUidStr]) - }) - }) - }) - describe('V3 Linked Records - Credit Cards / Addresses', () => { - it('saves the record data when a new linked record is added to a record', async () => { - const recordData = { - title: 'parent record', - } - const linkedRecordData = { - title: "credit card" - } - const {recordUid, record, decryptedRecordKey, recordKey} = await syncDownResponseBuilder.addRecord(recordData) - const recordUidStr = webSafe64FromBytes(recordUid) - const {linkedRecordUid, linkedRecord, linkedRecordKey} = await syncDownResponseBuilder.addLinkedRecord(linkedRecordData, 3, decryptedRecordKey) - const linkedRecordUidStr = webSafe64FromBytes(linkedRecordUid) - const recordLink: Vault.IRecordLink = { - parentRecordUid: recordUid, - childRecordUid: linkedRecordUid, - recordKey: linkedRecordKey, - } - syncDownResponseBuilder.addRecordLink(recordLink) - await platform.unwrapKey(recordKey, recordUidStr, 'data', 'gcm', 'aes') - mockSyncDownCommand.mockResolvedValue(syncDownResponseBuilder.build()) - await syncDown({ - auth, - storage, - }) - expect(storage.put).toHaveBeenCalledWith(expect.objectContaining({ - kind: "record", - data: recordData, - uid: recordUidStr, - revision: record.revision, - })) - expect(storage.put).toHaveBeenCalledWith(expect.objectContaining({ - kind: "record", - data: linkedRecordData, - uid: linkedRecordUidStr, - revision: linkedRecord.revision, - })) - }) - it('saves the record data when a linked record is updated, attached to another record', async () => { - const linkedRecordData = { - title: "credit card updated" - } - const {linkedRecordUid, linkedRecordKey, linkedRecord} = await syncDownResponseBuilder.addLinkedRecord(linkedRecordData, 3, auth.dataKey!) - const linkedRecordUidStr = webSafe64FromBytes(linkedRecordUid) - await platform.unwrapKey(linkedRecordKey, linkedRecordUidStr, 'data', 'gcm', 'aes') - mockSyncDownCommand.mockResolvedValue(syncDownResponseBuilder.build()) - await syncDown({ - auth, - storage, - }) - expect(storage.put).toHaveBeenCalledWith(expect.objectContaining({ - kind: "record", - data: linkedRecordData, - uid: linkedRecordUidStr, - revision: linkedRecord.revision, - })) - }) - it('updates the record data when a linked record is unlinked from a record', async () => { - const recordData = { - title: 'parent record', - } - const {recordUid, record, recordKey} = await syncDownResponseBuilder.addRecord(recordData) - const recordUidStr = webSafe64FromBytes(recordUid) - await platform.unwrapKey(recordKey, recordUidStr, 'data', 'gcm', 'aes') - const linkedRecordUid = platform.getRandomBytes(16) - const linkedRecordUidStr = webSafe64FromBytes(linkedRecordUid) - const removedRecordLink: Vault.IRecordLink = { - parentRecordUid: recordUid, - childRecordUid: linkedRecordUid, - } - syncDownResponseBuilder.addRemovedRecordLink(removedRecordLink) - mockSyncDownCommand.mockResolvedValue(syncDownResponseBuilder.build()) - await syncDown({ - auth, - storage, - }) - expect(storage.put).toHaveBeenCalledWith(expect.objectContaining({ - kind: "record", - data: recordData, - uid: recordUidStr, - revision: record.revision, - })) - expect(storage.removeDependencies).toHaveBeenCalledWith({ - [recordUidStr]: new Set([linkedRecordUidStr]) - }) - }) - it(`deletes the record data when a linked record is deleted - owned linked records`, async () => { - const recordUid = platform.getRandomBytes(16) - syncDownResponseBuilder.addRemovedRecord(recordUid) - mockSyncDownCommand.mockResolvedValue(syncDownResponseBuilder.build()) - await syncDown({ - auth, - storage, - }) - expect(storage.delete).toHaveBeenCalledWith("record", webSafe64FromBytes(recordUid)) - }) - it('does nothing when a linked record is deleted - shared linked record', async () => {}) - }) - }) -}) + const decryptedRecordData = { + title: 'a record removed from a shared-folder folder to a root vault', + }; + const { recordUid, recordKey, record } = await syncDownResponseBuilder.addRecord(decryptedRecordData); + const recordUidStr = webSafe64FromBytes(recordUid); + const recordMetadata: Vault.IRecordMetaData = { + recordUid, + recordKey, + recordKeyType: Records.RecordKeyType.ENCRYPTED_BY_DATA_KEY_GCM, + }; + const sharedFolderData = { + name: 'a shared folder', + }; + const { sharedFolderUid, sharedFolder } = await syncDownResponseBuilder.addSharedFolder( + sharedFolderData, + syncDownUser, + {} + ); + const sharedFolderUidStr = webSafe64FromBytes(sharedFolderUid); + const sharedFolderFolderUid = platform.getRandomBytes(16); + const sharedFolderFolderUidStr = webSafe64FromBytes(sharedFolderFolderUid); + const removedSharedFolderFolderRecord: Vault.ISharedFolderFolderRecord = { + recordUid, + sharedFolderUid, + folderUid: sharedFolderFolderUid, + }; + const removedSharedFolderRecord: Vault.ISharedFolderRecord = { + recordUid, + sharedFolderUid, + }; + const userFolderRecord: Vault.IUserFolderRecord = { + recordUid, + folderUid: new Uint8Array([]), + revision: Date.now(), + }; + syncDownResponseBuilder.addUserFolderRecord(userFolderRecord); + syncDownResponseBuilder.addRecordMetadata(recordMetadata); + syncDownResponseBuilder.addRemovedSharedFolderFolderRecord(removedSharedFolderFolderRecord); + syncDownResponseBuilder.addRemovedSharedFolderRecord(removedSharedFolderRecord); + mockSyncDownCommand.mockResolvedValue(syncDownResponseBuilder.build()); + await syncDown({ + auth, + storage, + }); + expect(storage.put).toHaveBeenCalledWith( + expect.objectContaining({ + kind: 'record', + uid: recordUidStr, + revision: record.revision, + }) + ); + expect(storage.put).toHaveBeenCalledWith( + expect.objectContaining({ + kind: 'metadata', + uid: recordUidStr, + }) + ); + expect(storage.put).toHaveBeenCalledWith( + expect.objectContaining({ + uid: sharedFolderUidStr, + kind: 'shared_folder', + revision: sharedFolder.revision, + }) + ); + expect(storage.addDependencies).toHaveBeenCalledWith({ + '': new Set([ + { + kind: 'record', + parentUid: '', + uid: recordUidStr, + }, + ]), + }); + expect(storage.removeDependencies).toHaveBeenCalledWith({ + [sharedFolderUidStr]: new Set([recordUidStr]), + [sharedFolderFolderUidStr]: new Set([recordUidStr]), + }); + }); + }); + describe('Owned Records + Shared Folders', () => { + // TODO(@hleekeeper): the test cases may differ after addressing BE-7056 + it.each([ + `deletes the shared folder and all child resources including the owned child records when a user is removed from the shared folder`, + `deletes the shared folder and all child resources including the owned child records when the shared folder is deleted (regardless or access type to the folder - user or team access)`, + ])(`%s`, async () => { + const sharedFolderUid = platform.getRandomBytes(16); + syncDownResponseBuilder.addRemovedSharedFolder(sharedFolderUid); + mockSyncDownCommand.mockResolvedValue(syncDownResponseBuilder.build()); + await syncDown({ + auth, + storage, + }); + expect(storage.delete).toHaveBeenCalledWith('shared_folder', webSafe64FromBytes(sharedFolderUid)); + }); + it(`deletes the shared folder and all child resources including the owned child records when a user's team is removed from the shared folder`, async () => { + const teamUid = platform.getRandomBytes(16); + const sharedFolderUid = platform.getRandomBytes(16); + const removedSharedFolderTeam: Vault.ISharedFolderTeam = { + teamUid, + sharedFolderUid, + }; + syncDownResponseBuilder.addRemovedSharedFolderTeam(removedSharedFolderTeam); + mockSyncDownCommand.mockResolvedValue(syncDownResponseBuilder.build()); + await syncDown({ + auth, + storage, + }); + expect(storage.removeDependencies).toHaveBeenCalledWith({ + [webSafe64FromBytes(sharedFolderUid)]: new Set([webSafe64FromBytes(teamUid)]), + }); + }); + }); + describe('Directly-Shared Records + Shared Folders', () => { + // TODO(@hleekeeper): the test cases may differ after addressing BE-7056 + it.each([ + `deletes the shared folder and all child resources except the directly-shared records when a user is removed from the shared folder`, + `deletes the shared folder and all child resources except the directly-shared records when the shared folder is deleted (regardless of folder access type - user or team access)`, + ])(`%s`, async () => { + const sharedFolderUid = platform.getRandomBytes(16); + syncDownResponseBuilder.addRemovedSharedFolder(sharedFolderUid); + mockSyncDownCommand.mockResolvedValue(syncDownResponseBuilder.build()); + await syncDown({ + auth, + storage, + }); + expect(storage.delete).toHaveBeenCalledWith('shared_folder', webSafe64FromBytes(sharedFolderUid)); + }); + it(`deletes the shared folder and all child resources except the directly-shared records when a user is removed from the shared folder`, async () => { + const teamUid = platform.getRandomBytes(16); + const sharedFolderUid = platform.getRandomBytes(16); + const removedSharedFolderTeam: Vault.ISharedFolderTeam = { + teamUid, + sharedFolderUid, + }; + syncDownResponseBuilder.addRemovedSharedFolderTeam(removedSharedFolderTeam); + mockSyncDownCommand.mockResolvedValue(syncDownResponseBuilder.build()); + await syncDown({ + auth, + storage, + }); + expect(storage.removeDependencies).toHaveBeenCalledWith({ + [webSafe64FromBytes(sharedFolderUid)]: new Set([webSafe64FromBytes(teamUid)]), + }); + }); + it(`doesn't delete the folder data when the directly-shared record is unshared, including the record data (regardless of folder access type - user or team access)`, async () => { + const recordUid = platform.getRandomBytes(16); + syncDownResponseBuilder.addRemovedRecord(recordUid); + mockSyncDownCommand.mockResolvedValue(syncDownResponseBuilder.build()); + await syncDown({ + auth, + storage, + }); + expect(storage.delete).toHaveBeenCalledWith('record', webSafe64FromBytes(recordUid)); + }); + it(`doesn't delete the folder data when the directly-shared record is deleted, including the record data (regardless of folder access type - user or team access)`, async () => { + const recordUid = platform.getRandomBytes(16); + const recordUidStr = webSafe64FromBytes(recordUid); + const sharedFolderData = { + name: 'shared folder', + }; + const { sharedFolderUid, sharedFolder } = await syncDownResponseBuilder.addSharedFolder( + sharedFolderData, + anotherUserA, + {} + ); + const sharedFolderUidStr = webSafe64FromBytes(sharedFolderUid); + const removedSharedFolderFolderRecord: Vault.ISharedFolderFolderRecord = { + recordUid, + sharedFolderUid, + folderUid: new Uint8Array([]), + }; + const removedSharedFolderRecord: Vault.ISharedFolderRecord = { + recordUid, + sharedFolderUid, + }; + syncDownResponseBuilder.addRemovedSharedFolderRecord(removedSharedFolderRecord); + syncDownResponseBuilder.addRemovedSharedFolderFolderRecord(removedSharedFolderFolderRecord); + mockSyncDownCommand.mockResolvedValue(syncDownResponseBuilder.build()); + await syncDown({ + auth, + storage, + }); + expect(storage.put).toHaveBeenCalledWith( + expect.objectContaining({ + kind: 'shared_folder', + uid: sharedFolderUidStr, + revision: sharedFolder.revision, + }) + ); + expect(storage.removeDependencies).toHaveBeenCalledWith({ + '': new Set([recordUidStr]), + [sharedFolderUidStr]: new Set([recordUidStr]), + }); + }); + }); + describe('Linked Records', () => { + describe('V4 Linked Records - File Attachments', () => { + it('saves the record data when a new linked record is added to a record', async () => { + const recordData = { + title: 'parent record', + }; + const linkedRecordData = { + title: 'file attached to the parent record', + }; + const { recordUid, record, decryptedRecordKey, recordKey } = + await syncDownResponseBuilder.addRecord(recordData); + const recordUidStr = webSafe64FromBytes(recordUid); + const { linkedRecordUid, linkedRecordKey, linkedRecord } = + await syncDownResponseBuilder.addLinkedRecord(linkedRecordData, 4, decryptedRecordKey); + const linkedRecordUidStr = webSafe64FromBytes(linkedRecordUid); + const recordLink: Vault.IRecordLink = { + parentRecordUid: recordUid, + childRecordUid: linkedRecordUid, + recordKey: linkedRecordKey, + }; + syncDownResponseBuilder.addRecordLink(recordLink); + await platform.unwrapKey(recordKey, recordUidStr, 'data', 'gcm', 'aes'); + mockSyncDownCommand.mockResolvedValue(syncDownResponseBuilder.build()); + await syncDown({ + auth, + storage, + }); + expect(storage.put).toHaveBeenCalledWith( + expect.objectContaining({ + kind: 'record', + data: recordData, + uid: recordUidStr, + revision: record.revision, + }) + ); + expect(storage.put).toHaveBeenCalledWith( + expect.objectContaining({ + kind: 'record', + data: linkedRecordData, + uid: linkedRecordUidStr, + revision: linkedRecord.revision, + }) + ); + }); + it('saves the record data when a linked record is updated, attached to another record', async () => { + const recordData = { + title: 'parent record', + }; + const linkedRecordData = { + title: 'file attachment updated', + }; + const { recordUid, record, decryptedRecordKey, recordKey } = + await syncDownResponseBuilder.addRecord(recordData); + const recordUidStr = webSafe64FromBytes(recordUid); + const { linkedRecordUid, linkedRecord, linkedRecordKey } = + await syncDownResponseBuilder.addLinkedRecord(linkedRecordData, 4, decryptedRecordKey); + const linkedRecordUidStr = webSafe64FromBytes(linkedRecordUid); + await platform.unwrapKey(recordKey, recordUidStr, 'data', 'gcm', 'aes'); + await platform.unwrapKey(linkedRecordKey, linkedRecordUidStr, recordUidStr, 'gcm', 'aes'); + mockSyncDownCommand.mockResolvedValue(syncDownResponseBuilder.build()); + await syncDown({ + auth, + storage, + }); + expect(storage.put).toHaveBeenCalledWith( + expect.objectContaining({ + kind: 'record', + data: recordData, + uid: recordUidStr, + revision: record.revision, + }) + ); + expect(storage.put).toHaveBeenCalledWith( + expect.objectContaining({ + kind: 'record', + data: linkedRecordData, + uid: linkedRecordUidStr, + revision: linkedRecord.revision, + }) + ); + }); + it('update the record data when a linked record is unlinked from a record', async () => { + const recordData = { + title: 'parent record', + }; + const { recordUid, record, recordKey } = await syncDownResponseBuilder.addRecord(recordData); + const recordUidStr = webSafe64FromBytes(recordUid); + await platform.unwrapKey(recordKey, recordUidStr, 'data', 'gcm', 'aes'); + const linkedRecordUid = platform.getRandomBytes(16); + const linkedRecordUidStr = webSafe64FromBytes(linkedRecordUid); + const removedRecordLink: Vault.IRecordLink = { + parentRecordUid: recordUid, + childRecordUid: linkedRecordUid, + }; + syncDownResponseBuilder.addRemovedRecordLink(removedRecordLink); + mockSyncDownCommand.mockResolvedValue(syncDownResponseBuilder.build()); + await syncDown({ + auth, + storage, + }); + expect(storage.put).toHaveBeenCalledWith( + expect.objectContaining({ + kind: 'record', + data: recordData, + uid: recordUidStr, + revision: record.revision, + }) + ); + expect(storage.removeDependencies).toHaveBeenCalledWith({ + [recordUidStr]: new Set([linkedRecordUidStr]), + }); + }); + }); + describe('V3 Linked Records - Credit Cards / Addresses', () => { + it('saves the record data when a new linked record is added to a record', async () => { + const recordData = { + title: 'parent record', + }; + const linkedRecordData = { + title: 'credit card', + }; + const { recordUid, record, decryptedRecordKey, recordKey } = + await syncDownResponseBuilder.addRecord(recordData); + const recordUidStr = webSafe64FromBytes(recordUid); + const { linkedRecordUid, linkedRecord, linkedRecordKey } = + await syncDownResponseBuilder.addLinkedRecord(linkedRecordData, 3, decryptedRecordKey); + const linkedRecordUidStr = webSafe64FromBytes(linkedRecordUid); + const recordLink: Vault.IRecordLink = { + parentRecordUid: recordUid, + childRecordUid: linkedRecordUid, + recordKey: linkedRecordKey, + }; + syncDownResponseBuilder.addRecordLink(recordLink); + await platform.unwrapKey(recordKey, recordUidStr, 'data', 'gcm', 'aes'); + mockSyncDownCommand.mockResolvedValue(syncDownResponseBuilder.build()); + await syncDown({ + auth, + storage, + }); + expect(storage.put).toHaveBeenCalledWith( + expect.objectContaining({ + kind: 'record', + data: recordData, + uid: recordUidStr, + revision: record.revision, + }) + ); + expect(storage.put).toHaveBeenCalledWith( + expect.objectContaining({ + kind: 'record', + data: linkedRecordData, + uid: linkedRecordUidStr, + revision: linkedRecord.revision, + }) + ); + }); + it('saves the record data when a linked record is updated, attached to another record', async () => { + const linkedRecordData = { + title: 'credit card updated', + }; + const { linkedRecordUid, linkedRecordKey, linkedRecord } = + await syncDownResponseBuilder.addLinkedRecord(linkedRecordData, 3, auth.dataKey!); + const linkedRecordUidStr = webSafe64FromBytes(linkedRecordUid); + await platform.unwrapKey(linkedRecordKey, linkedRecordUidStr, 'data', 'gcm', 'aes'); + mockSyncDownCommand.mockResolvedValue(syncDownResponseBuilder.build()); + await syncDown({ + auth, + storage, + }); + expect(storage.put).toHaveBeenCalledWith( + expect.objectContaining({ + kind: 'record', + data: linkedRecordData, + uid: linkedRecordUidStr, + revision: linkedRecord.revision, + }) + ); + }); + it('updates the record data when a linked record is unlinked from a record', async () => { + const recordData = { + title: 'parent record', + }; + const { recordUid, record, recordKey } = await syncDownResponseBuilder.addRecord(recordData); + const recordUidStr = webSafe64FromBytes(recordUid); + await platform.unwrapKey(recordKey, recordUidStr, 'data', 'gcm', 'aes'); + const linkedRecordUid = platform.getRandomBytes(16); + const linkedRecordUidStr = webSafe64FromBytes(linkedRecordUid); + const removedRecordLink: Vault.IRecordLink = { + parentRecordUid: recordUid, + childRecordUid: linkedRecordUid, + }; + syncDownResponseBuilder.addRemovedRecordLink(removedRecordLink); + mockSyncDownCommand.mockResolvedValue(syncDownResponseBuilder.build()); + await syncDown({ + auth, + storage, + }); + expect(storage.put).toHaveBeenCalledWith( + expect.objectContaining({ + kind: 'record', + data: recordData, + uid: recordUidStr, + revision: record.revision, + }) + ); + expect(storage.removeDependencies).toHaveBeenCalledWith({ + [recordUidStr]: new Set([linkedRecordUidStr]), + }); + }); + it(`deletes the record data when a linked record is deleted - owned linked records`, async () => { + const recordUid = platform.getRandomBytes(16); + syncDownResponseBuilder.addRemovedRecord(recordUid); + mockSyncDownCommand.mockResolvedValue(syncDownResponseBuilder.build()); + await syncDown({ + auth, + storage, + }); + expect(storage.delete).toHaveBeenCalledWith('record', webSafe64FromBytes(recordUid)); + }); + it('does nothing when a linked record is deleted - shared linked record', async () => {}); + }); + }); +}); diff --git a/keeperapi/src/auth.ts b/keeperapi/src/auth.ts index d8ab10c..5c3c882 100644 --- a/keeperapi/src/auth.ts +++ b/keeperapi/src/auth.ts @@ -5,10 +5,10 @@ import { DeviceVerificationMethods, KeeperError, LoginError, - TwoFactorChannelData -} from './configuration' -import {KeeperEndpoint, KeeperEnvironment, ExecuteRestOptions} from "./endpoint"; -import {KeyWrapper, platform} from "./platform"; + TwoFactorChannelData, +} from './configuration'; +import { KeeperEndpoint, KeeperEnvironment, ExecuteRestOptions } from './endpoint'; +import { KeyWrapper, platform } from './platform'; import { generateEncryptionKey, generateUidBytes, @@ -16,8 +16,8 @@ import { normal64Bytes, resolvablePromise, webSafe64FromBytes, - wrapPassword -} from "./utils"; + wrapPassword, +} from './utils'; import { accountSummaryMessage, getEnterprisePublicKeyMessage, @@ -38,11 +38,11 @@ import { twoFactorValidateMessage, twoFASendDuoMessage, validateAuthHashMessage, - validateDeviceVerificationCodeMessage -} from './restMessages' -import {AccountSummary, Authentication} from './proto'; -import {RestCommand} from './commands' -import {CloseReason, createAsyncSocket, SocketListener} from './socket'; + validateDeviceVerificationCodeMessage, +} from './restMessages'; +import { AccountSummary, Authentication } from './proto'; +import { RestCommand } from './commands'; +import { CloseReason, createAsyncSocket, SocketListener } from './socket'; import ITwoFactorSendPushRequest = Authentication.ITwoFactorSendPushRequest; import TwoFactorExpiration = Authentication.TwoFactorExpiration; import TwoFactorPushType = Authentication.TwoFactorPushType; @@ -59,61 +59,61 @@ function unifyLoginError(e: any): LoginError { return JSON.parse(e.message); } catch (jsonError) { return { - error: "unknown", - message: e.message - } + error: 'unknown', + message: e.message, + }; } } else { return { error: e.result_code, - message: e.result_code - } + message: e.result_code, + }; } } export type LoginPayload = { - username: string, - password?: string | KeyWrapper, - loginToken?: Uint8Array - loginType: Authentication.LoginType | null - loginMethod?: Authentication.LoginMethod, - v2TwoFactorToken?: string - resumeSessionOnly?: boolean - givenSessionToken?: string - ecOnly?: boolean - primaryAccountSessionTokenForLinking?: Uint8Array | null - disableLinkingForAccountWithYubikey2fa?: boolean -} + username: string; + password?: string | KeyWrapper; + loginToken?: Uint8Array; + loginType: Authentication.LoginType | null; + loginMethod?: Authentication.LoginMethod; + v2TwoFactorToken?: string; + resumeSessionOnly?: boolean; + givenSessionToken?: string; + ecOnly?: boolean; + primaryAccountSessionTokenForLinking?: Uint8Array | null; + disableLinkingForAccountWithYubikey2fa?: boolean; +}; export enum UserType { - normal = "normal", - onsiteSso = "onsite_sso", - cloudSso = "cloud_sso" + normal = 'normal', + onsiteSso = 'onsite_sso', + cloudSso = 'cloud_sso', } export type SessionParams = { - accountUid: Uint8Array - username: string - sessionToken: string - sessionTokenType: Authentication.SessionTokenType - dataKey: Uint8Array - privateKey: Uint8Array - eccPrivateKey?: Uint8Array - eccPublicKey?: Uint8Array - enterprisePublicKey?: Uint8Array - enterpriseEccPublicKey?: Uint8Array - clientKey: Uint8Array - userType: UserType - ssoLogoutUrl: string - ssoSessionId: string - messageSessionUid: Uint8Array -} + accountUid: Uint8Array; + username: string; + sessionToken: string; + sessionTokenType: Authentication.SessionTokenType; + dataKey: Uint8Array; + privateKey: Uint8Array; + eccPrivateKey?: Uint8Array; + eccPublicKey?: Uint8Array; + enterprisePublicKey?: Uint8Array; + enterpriseEccPublicKey?: Uint8Array; + clientKey: Uint8Array; + userType: UserType; + ssoLogoutUrl: string; + ssoSessionId: string; + messageSessionUid: Uint8Array; +}; export type EncryptionKeys = { dataKey: Uint8Array; privateKey?: Uint8Array; eccPrivateKey: Uint8Array; -} +}; export const enum LoginV3ResultEnum { NOT_LOGGED_IN = 'notLoggedin', @@ -122,9 +122,9 @@ export const enum LoginV3ResultEnum { } export class Auth { - ssoLogoutUrl: string = '' - userType: UserType = UserType.normal - ssoSessionId: string = '' + ssoLogoutUrl: string = ''; + userType: UserType = UserType.normal; + ssoSessionId: string = ''; dataKey?: Uint8Array; privateKey?: Uint8Array; eccPrivateKey?: Uint8Array; @@ -142,18 +142,17 @@ export class Auth { private socket?: SocketListener; public clientKey?: Uint8Array; private _accountSummary?: IAccountSummaryElements; - private _accountSummaryVersion: number = 1 - + private _accountSummaryVersion: number = 1; constructor(options: ClientConfiguration) { if (options.deviceConfig && options.deviceToken) { - throw new Error('Both loginV2 and loginV3 token strategies supplied') + throw new Error('Both loginV2 and loginV3 token strategies supplied'); } - this.options = options as ClientConfigurationInternal + this.options = options as ClientConfigurationInternal; if (!this.options.deviceConfig) { - this.options.deviceConfig = { } + this.options.deviceConfig = {}; } if (!this.options.sessionStorage) { @@ -162,13 +161,13 @@ export class Auth { getCloneCode: () => Promise.resolve(null), saveCloneCode: () => new Promise((res, rej) => {}), getSessionParameters: () => Promise.resolve(null), - saveSessionParameters: () => Promise.resolve() - } + saveSessionParameters: () => Promise.resolve(), + }; } this.endpoint = new KeeperEndpoint(this.options); - this.endpoint.clientVersion = this.options.clientVersion || "c14.0.0"; - this.messageSessionUid = generateUidBytes() + this.endpoint.clientVersion = this.options.clientVersion || 'c14.0.0'; + this.messageSessionUid = generateUidBytes(); } get _endpoint(): KeeperEndpoint { @@ -188,7 +187,7 @@ export class Auth { } get sessionTokenType(): Authentication.SessionTokenType | undefined { - return this._sessionTokenType + return this._sessionTokenType; } get username(): string { @@ -200,74 +199,77 @@ export class Auth { } get accountSummary(): IAccountSummaryElements | null { - return this._accountSummary || null + return this._accountSummary || null; } async idpLogout() { if (!this.options.authUI3?.idpLogout) { - throw Error('authUI3 is not configured') + throw Error('authUI3 is not configured'); } if (this.userType == UserType.cloudSso) { - const payload = await this.endpoint.prepareSsoPayload(this.messageSessionUid, this.username, this.ssoSessionId) + const payload = await this.endpoint.prepareSsoPayload( + this.messageSessionUid, + this.username, + this.ssoSessionId + ); const params = new URLSearchParams({ - 'payload': payload, - }) + payload: payload, + }); - const url = `${this.ssoLogoutUrl}?${String(params)}` + const url = `${this.ssoLogoutUrl}?${String(params)}`; try { await this.options.authUI3.idpLogout(url); } catch (e) { - console.log('Logout errored out: ' + e) + console.log('Logout errored out: ' + e); } - } else if (this.userType == UserType.onsiteSso) { const params = new URLSearchParams({ - 'embedded': 'true', - 'username': this.username, - 'session_id': this.ssoSessionId, - 'dest': 'vault' - }) + embedded: 'true', + username: this.username, + session_id: this.ssoSessionId, + dest: 'vault', + }); - const url = `${this.ssoLogoutUrl}?${String(params)}` + const url = `${this.ssoLogoutUrl}?${String(params)}`; try { await this.options.authUI3.idpLogout(url); } catch (e) { - console.log('Logout errored out: ' + e) + console.log('Logout errored out: ' + e); } } } async logout() { - platform.unloadKeys() - await this.executeRestAction(logoutV3Message()) - await this.idpLogout() - this._sessionToken = '' + platform.unloadKeys(); + await this.executeRestAction(logoutV3Message()); + await this.idpLogout(); + this._sessionToken = ''; } async connect() { // When connecting to govcloud, remove the govcloud subdomain. There is no list of urls that do/don't require the govcloud subdomain, so for now do this. - const url = `wss://push.services.${this.options.host.replace('govcloud.', '')}/wss_open_connection` - const getConnectionRequest = (messageSessionUid) => this.endpoint.getPushConnectionRequest(messageSessionUid) + const url = `wss://push.services.${this.options.host.replace('govcloud.', '')}/wss_open_connection`; + const getConnectionRequest = (messageSessionUid) => this.endpoint.getPushConnectionRequest(messageSessionUid); - this.socket = await createAsyncSocket(url, this.messageSessionUid, getConnectionRequest) - console.log("Socket connected") + this.socket = await createAsyncSocket(url, this.messageSessionUid, getConnectionRequest); + console.log('Socket connected'); this.onCloseMessage((closeReason: CloseReason) => { if (this.options.onCommandFailure) { this.options.onCommandFailure({ result_code: closeReason.code.toString(), - message: closeReason.reason.close_reason - }) + message: closeReason.reason.close_reason, + }); } - }) + }); } disconnect() { if (this.socket) { - this.socket.disconnect() - delete this.socket + this.socket.disconnect(); + delete this.socket; } } @@ -280,61 +282,60 @@ export class Auth { * the linking flow. When true, `loginV3` will block the * linking attempt and return `LINKING_BLOCKED_BY_YUBIKEY_2FA`. */ - async loginV3( - { - username = '', - password = undefined, - loginToken = undefined, - loginType = Authentication.LoginType.NORMAL, - loginMethod = Authentication.LoginMethod.EXISTING_ACCOUNT, - v2TwoFactorToken = undefined, - resumeSessionOnly = false, - givenSessionToken = undefined, - ecOnly = false, - primaryAccountSessionTokenForLinking = undefined, - /* - * Prevents linking YubiKey 2FA accounts. - * Normally, these accounts can be linked, but some clients have technical issues - * that prevent them from supporting the linking flow, so they can opt out via this flag. - */ - disableLinkingForAccountWithYubikey2fa, - }: Partial - ): Promise<{result: LoginV3ResultEnum} | undefined> { - this._username = username || this.options.sessionStorage?.lastUsername || '' + async loginV3({ + username = '', + password = undefined, + loginToken = undefined, + loginType = Authentication.LoginType.NORMAL, + loginMethod = Authentication.LoginMethod.EXISTING_ACCOUNT, + v2TwoFactorToken = undefined, + resumeSessionOnly = false, + givenSessionToken = undefined, + ecOnly = false, + primaryAccountSessionTokenForLinking = undefined, + /* + * Prevents linking YubiKey 2FA accounts. + * Normally, these accounts can be linked, but some clients have technical issues + * that prevent them from supporting the linking flow, so they can opt out via this flag. + */ + disableLinkingForAccountWithYubikey2fa, + }: Partial): Promise<{ result: LoginV3ResultEnum } | undefined> { + this._username = username || this.options.sessionStorage?.lastUsername || ''; let wrappedPassword: KeyWrapper | undefined; if (password) { if (typeof password === 'string') { - wrappedPassword = wrapPassword(password) - } - else - wrappedPassword = password + wrappedPassword = wrapPassword(password); + } else wrappedPassword = password; } - let needUserName = false + let needUserName = false; - const handleError = (resultCode: string, loginResponse: NN, error: KeeperError) => { - const errorMessage = chooseErrorMessage(loginResponse.loginState) + const handleError = ( + resultCode: string, + loginResponse: NN, + error: KeeperError + ) => { + const errorMessage = chooseErrorMessage(loginResponse.loginState); if (this.options.onCommandFailure) { this.options.onCommandFailure({ result_code: resultCode, message: errorMessage, error: error.message, - }) + }); } else { throw error; } }; while (true) { - if (!this.options.deviceConfig.deviceToken) { - await this.endpoint.registerDevice() + await this.endpoint.registerDevice(); } if (!this.socket || !this.socket.getIsConnected()) { - await this.connect() + await this.connect(); } const startLoginRequest = new Authentication.StartLoginRequest({ @@ -342,46 +343,53 @@ export class Auth { encryptedDeviceToken: this.options.deviceConfig.deviceToken ?? null, messageSessionUid: this.messageSessionUid, loginMethod: loginMethod, - cloneCode: await this.options.sessionStorage?.getCloneCode(this.options.host as KeeperEnvironment, this._username), + cloneCode: await this.options.sessionStorage?.getCloneCode( + this.options.host as KeeperEnvironment, + this._username + ), v2TwoFactorToken: v2TwoFactorToken, fromSessionToken: primaryAccountSessionTokenForLinking, - }) + }); if (loginType !== LoginType.NORMAL && !!loginType) { - startLoginRequest.loginType = loginType + startLoginRequest.loginType = loginType; } if (loginToken) { - startLoginRequest.encryptedLoginToken = loginToken + startLoginRequest.encryptedLoginToken = loginToken; } if (needUserName || !this.options.useSessionResumption || loginType === LoginType.ALTERNATE || username) { - startLoginRequest.username = this._username - needUserName = false + startLoginRequest.username = this._username; + needUserName = false; } - console.log(startLoginRequest) + console.log(startLoginRequest); var loginResponse: NN; - if (givenSessionToken){ - this._sessionToken = givenSessionToken - try{ - loginResponse = await this.executeRest(startLoginMessageFromSessionToken(startLoginRequest)) - } catch(e: any){ - console.error('Fails session token login. failed_login_from_existing_session_token') - throw(e) + if (givenSessionToken) { + this._sessionToken = givenSessionToken; + try { + loginResponse = await this.executeRest(startLoginMessageFromSessionToken(startLoginRequest)); + } catch (e: any) { + console.error('Fails session token login. failed_login_from_existing_session_token'); + throw e; } } else { - loginResponse = await this.executeRest(startLoginMessage(startLoginRequest)) + loginResponse = await this.executeRest(startLoginMessage(startLoginRequest)); } if (loginResponse.cloneCode && loginResponse.cloneCode.length > 0) { - this.options.sessionStorage?.saveCloneCode(this.options.host as KeeperEnvironment, this._username, loginResponse.cloneCode) + this.options.sessionStorage?.saveCloneCode( + this.options.host as KeeperEnvironment, + this._username, + loginResponse.cloneCode + ); } - if (resumeSessionOnly && loginResponse && (loginResponse.loginState != Authentication.LoginState.LOGGED_IN)) { + if (resumeSessionOnly && loginResponse && loginResponse.loginState != Authentication.LoginState.LOGGED_IN) { return { result: LoginV3ResultEnum.NOT_LOGGED_IN, - } + }; } - console.log(loginResponse) - console.log("login state =", loginResponse.loginState); + console.log(loginResponse); + console.log('login state =', loginResponse.loginState); switch (loginResponse.loginState) { case Authentication.LoginState.ACCOUNT_LOCKED: @@ -391,138 +399,157 @@ export class Auth { case Authentication.LoginState.LOGIN_TOKEN_EXPIRED: case Authentication.LoginState.DEVICE_ACCOUNT_LOCKED: case Authentication.LoginState.DEVICE_LOCKED: - handleError('generic_error', loginResponse, new Error(`Unable to login, login state = ${loginResponse.loginState}`)) - return + handleError( + 'generic_error', + loginResponse, + new Error(`Unable to login, login state = ${loginResponse.loginState}`) + ); + return; case Authentication.LoginState.REQUIRES_ACCOUNT_CREATION: if (this.userType === UserType.cloudSso) { - await this.createSsoUser(loginResponse.encryptedLoginToken) + await this.createSsoUser(loginResponse.encryptedLoginToken); } else { if (!wrappedPassword) { - throw Error('Password must be assigned before user creation') + throw Error('Password must be assigned before user creation'); } - await this.createUser(this._username, wrappedPassword, ecOnly) + await this.createUser(this._username, wrappedPassword, ecOnly); } break; case Authentication.LoginState.UPGRADE: - handleError('generic_error', loginResponse, new Error(`Unable to login, login state = ${loginResponse.loginState}`)) + handleError( + 'generic_error', + loginResponse, + new Error(`Unable to login, login state = ${loginResponse.loginState}`) + ); return; case Authentication.LoginState.REQUIRES_USERNAME: if (!this._username) { - handleError('generic_error', loginResponse, new Error(`No username supplied, login state = ${loginResponse.loginState}`)); - return + handleError( + 'generic_error', + loginResponse, + new Error(`No username supplied, login state = ${loginResponse.loginState}`) + ); + return; } - needUserName = true + needUserName = true; break; case Authentication.LoginState.DEVICE_APPROVAL_REQUIRED: case Authentication.LoginState.REQUIRES_DEVICE_ENCRYPTED_DATA_KEY: - if (givenSessionToken) return { result: LoginV3ResultEnum.NOT_LOGGED_IN } + if (givenSessionToken) return { result: LoginV3ResultEnum.NOT_LOGGED_IN }; try { - loginToken = await this.verifyDevice(username, loginResponse.encryptedLoginToken, loginResponse.loginState == Authentication.LoginState.REQUIRES_DEVICE_ENCRYPTED_DATA_KEY) + loginToken = await this.verifyDevice( + username, + loginResponse.encryptedLoginToken, + loginResponse.loginState == Authentication.LoginState.REQUIRES_DEVICE_ENCRYPTED_DATA_KEY + ); } catch (e: any) { - handleError('auth_failed', loginResponse, e) - return + handleError('auth_failed', loginResponse, e); + return; } break; case Authentication.LoginState.LICENSE_EXPIRED: - handleError('license_expired', loginResponse, new Error(loginResponse.message)) + handleError('license_expired', loginResponse, new Error(loginResponse.message)); return; case Authentication.LoginState.REGION_REDIRECT: if (!!primaryAccountSessionTokenForLinking) { return { result: LoginV3ResultEnum.LINKING_BLOCKED_BY_CROSS_REGION, - } + }; } // TODO: put region_redirect in its own loop since // its unique to the other states. - this.options.host = loginResponse.stateSpecificValue - loginToken = undefined + this.options.host = loginResponse.stateSpecificValue; + loginToken = undefined; if (this.options.onRegionChanged) { - await this.options.onRegionChanged(loginResponse.stateSpecificValue) + await this.options.onRegionChanged(loginResponse.stateSpecificValue); } // Current socket no longer pointing to the right region - this.disconnect() + this.disconnect(); break; case Authentication.LoginState.REDIRECT_CLOUD_SSO: - console.log("Cloud SSO Connect login"); - this.ssoLogoutUrl = loginResponse.url.replace('login', 'logout') - this.userType = UserType.cloudSso - let payload = await this._endpoint.prepareSsoPayload(this.messageSessionUid) - let cloudSsoLoginUrl = loginResponse.url + "?payload=" + payload; + console.log('Cloud SSO Connect login'); + this.ssoLogoutUrl = loginResponse.url.replace('login', 'logout'); + this.userType = UserType.cloudSso; + let payload = await this._endpoint.prepareSsoPayload(this.messageSessionUid); + let cloudSsoLoginUrl = loginResponse.url + '?payload=' + payload; if (this.options.authUI3?.redirectCallback) { - await this.options.authUI3.redirectCallback(cloudSsoLoginUrl) - return + await this.options.authUI3.redirectCallback(cloudSsoLoginUrl); + return; } else if (this.options.authUI3?.ssoLogin) { - const token = await this.options.authUI3.ssoLogin(cloudSsoLoginUrl) - const cloudResp = await this.endpoint.decryptCloudSsoResponse(token) - console.log(cloudResp) - this._username = cloudResp.email - loginToken = cloudResp.encryptedLoginToken - loginMethod = LoginMethod.AFTER_SSO + const token = await this.options.authUI3.ssoLogin(cloudSsoLoginUrl); + const cloudResp = await this.endpoint.decryptCloudSsoResponse(token); + console.log(cloudResp); + this._username = cloudResp.email; + loginToken = cloudResp.encryptedLoginToken; + loginMethod = LoginMethod.AFTER_SSO; } break; case Authentication.LoginState.REDIRECT_ONSITE_SSO: - console.log("SSO Connect login"); - this.ssoLogoutUrl = loginResponse.url.replace('login', 'logout') - this.userType = UserType.onsiteSso + console.log('SSO Connect login'); + this.ssoLogoutUrl = loginResponse.url.replace('login', 'logout'); + this.userType = UserType.onsiteSso; - let onsitePublicKey = await this._endpoint.getOnsitePublicKey(ecOnly) - let onsiteSsoLoginUrl = loginResponse.url + '?embedded&key=' + onsitePublicKey + let onsitePublicKey = await this._endpoint.getOnsitePublicKey(ecOnly); + let onsiteSsoLoginUrl = loginResponse.url + '?embedded&key=' + onsitePublicKey; if (this.options.authUI3?.redirectCallback) { - await this.options.authUI3.redirectCallback(onsiteSsoLoginUrl) - return + await this.options.authUI3.redirectCallback(onsiteSsoLoginUrl); + return; } else if (this.options.authUI3?.ssoLogin) { - const onsiteResp = await this.options.authUI3.ssoLogin(onsiteSsoLoginUrl) - console.log(onsiteResp) - this._username = onsiteResp.email - wrappedPassword = wrapPassword(onsiteResp.password) - loginType = LoginType.SSO - loginMethod = LoginMethod.AFTER_SSO + const onsiteResp = await this.options.authUI3.ssoLogin(onsiteSsoLoginUrl); + console.log(onsiteResp); + this._username = onsiteResp.email; + wrappedPassword = wrapPassword(onsiteResp.password); + loginType = LoginType.SSO; + loginMethod = LoginMethod.AFTER_SSO; } break; case Authentication.LoginState.REQUIRES_2FA: - try{ + try { if ( - !!disableLinkingForAccountWithYubikey2fa && - !!primaryAccountSessionTokenForLinking && - hasYubikeyChannel(loginResponse.channels) + !!disableLinkingForAccountWithYubikey2fa && + !!primaryAccountSessionTokenForLinking && + hasYubikeyChannel(loginResponse.channels) ) { return { result: LoginV3ResultEnum.LINKING_BLOCKED_BY_YUBIKEY_2FA, - } + }; } - loginToken = await this.handleTwoFactor(loginResponse) - } catch(e: any){ - if (e?.message && e.message == 'push_declined'){ - handleError(e.message, loginResponse, e) + loginToken = await this.handleTwoFactor(loginResponse); + } catch (e: any) { + if (e?.message && e.message == 'push_declined') { + handleError(e.message, loginResponse, e); } } - break + break; case Authentication.LoginState.REQUIRES_AUTH_HASH: // TODO: loop in authHashLogin until successful or get into // some other state other than Authentication.LoginState.REQUIRES_AUTH_HASH if (!wrappedPassword && this.options.authUI3?.getPassword) { - password = await this.options.authUI3.getPassword(loginType === LoginType.ALTERNATE) + password = await this.options.authUI3.getPassword(loginType === LoginType.ALTERNATE); if (password) { if (typeof password === 'string') { - wrappedPassword = wrapPassword(password) - } - else - wrappedPassword = password + wrappedPassword = wrapPassword(password); + } else wrappedPassword = password; } } if (!wrappedPassword) { - throw new Error('User password required and not provided') + throw new Error('User password required and not provided'); } try { - await this.authHashLogin(loginResponse, username, wrappedPassword, loginType === LoginType.ALTERNATE) + await this.authHashLogin( + loginResponse, + username, + wrappedPassword, + loginType === LoginType.ALTERNATE + ); return; } catch (e: any) { - wrappedPassword = undefined - handleError('auth_failed', loginResponse, e) - const error = e as Error + wrappedPassword = undefined; + handleError('auth_failed', loginResponse, e); + const error = e as Error; if (error.cause?.message === 'No alternate master password found') { return; } @@ -530,34 +557,42 @@ export class Auth { } case Authentication.LoginState.LOGGED_IN: try { - await this.loginSuccess(loginResponse, undefined) - console.log("Exiting on loginState = LOGGED_IN"); + await this.loginSuccess(loginResponse, undefined); + console.log('Exiting on loginState = LOGGED_IN'); return; } catch (e) { - console.log('Error in Authentication.LoginState.LOGGED_IN: ', e) + console.log('Error in Authentication.LoginState.LOGGED_IN: ', e); return; } default: - handleError('generic_error', loginResponse, new Error(`Unknown login state ${loginResponse.loginState}`)) - return + handleError( + 'generic_error', + loginResponse, + new Error(`Unknown login state ${loginResponse.loginState}`) + ); + return; } } } - async switchToActiveAccount({username}: {username: string}): Promise { + async switchToActiveAccount({ username }: { username: string }): Promise { try { - const request = new Authentication.LoginAsUserRequest({username}) - const response = await this.executeRest(switchAccountFromAuthenticated(request)) + const request = new Authentication.LoginAsUserRequest({ username }); + const response = await this.executeRest(switchAccountFromAuthenticated(request)); if (response.loginState !== Authentication.LoginState.LOGGED_IN) { - throw new Error('account switching failed') + throw new Error('account switching failed'); } if (response.cloneCode && response.cloneCode.length > 0) { - this.options.sessionStorage?.saveCloneCode(this.options.host as KeeperEnvironment, this._username, response.cloneCode) + this.options.sessionStorage?.saveCloneCode( + this.options.host as KeeperEnvironment, + this._username, + response.cloneCode + ); } - return response + return response; } catch (err) { - console.error(err) - return undefined + console.error(err); + return undefined; } } @@ -567,32 +602,32 @@ export class Auth { */ async continueSession() { if (!this.options.sessionStorage) { - throw new Error('Missing configuration option to get session parameters') + throw new Error('Missing configuration option to get session parameters'); } - const sessionParams = await this.options.sessionStorage.getSessionParameters() + const sessionParams = await this.options.sessionStorage.getSessionParameters(); if (!sessionParams) { - throw new Error('No session to resume') + throw new Error('No session to resume'); } - this.messageSessionUid = sessionParams.messageSessionUid - this._username = sessionParams.username - this.dataKey = sessionParams.dataKey - this.clientKey = sessionParams.clientKey - this.privateKey = sessionParams.privateKey - this.eccPrivateKey = sessionParams.eccPrivateKey - this.eccPublicKey = sessionParams.eccPublicKey - this.enterprisePublicKey = sessionParams.enterprisePublicKey - this.enterpriseEccPublicKey = sessionParams.enterpriseEccPublicKey - this.ssoLogoutUrl = sessionParams.ssoLogoutUrl - this.ssoSessionId = sessionParams.ssoSessionId - this.userType = sessionParams.userType + this.messageSessionUid = sessionParams.messageSessionUid; + this._username = sessionParams.username; + this.dataKey = sessionParams.dataKey; + this.clientKey = sessionParams.clientKey; + this.privateKey = sessionParams.privateKey; + this.eccPrivateKey = sessionParams.eccPrivateKey; + this.eccPublicKey = sessionParams.eccPublicKey; + this.enterprisePublicKey = sessionParams.enterprisePublicKey; + this.enterpriseEccPublicKey = sessionParams.enterpriseEccPublicKey; + this.ssoLogoutUrl = sessionParams.ssoLogoutUrl; + this.ssoSessionId = sessionParams.ssoSessionId; + this.userType = sessionParams.userType; if (!this.socket || !this.socket.getIsConnected()) { - await this.connect() + await this.connect(); } - this.setLoginParameters(sessionParams.sessionToken, sessionParams.sessionTokenType, sessionParams.accountUid) + this.setLoginParameters(sessionParams.sessionToken, sessionParams.sessionTokenType, sessionParams.accountUid); } private getSessionParameters(): Partial { @@ -611,8 +646,8 @@ export class Auth { userType: this.userType, ssoLogoutUrl: this.ssoLogoutUrl, ssoSessionId: this.ssoSessionId, - messageSessionUid: this.messageSessionUid - } + messageSessionUid: this.messageSessionUid, + }; } async getSsoProvider(ssoDomain: string, locale?: string, ecOnly = false, skipRegionRedirect = false) { @@ -620,241 +655,258 @@ export class Auth { name: ssoDomain.trim(), locale: locale, clientVersion: this.endpoint.clientVersion, - } - const domainResponse = await this.executeRest(ssoServiceProviderRequestMessage(domainRequest), { skipRegionRedirect }) + }; + const domainResponse = await this.executeRest(ssoServiceProviderRequestMessage(domainRequest), { + skipRegionRedirect, + }); const params = domainResponse.isCloud - ? '?payload=' + await this._endpoint.prepareSsoPayload(this.messageSessionUid) - : '?embedded&key=' + await this._endpoint.getOnsitePublicKey(ecOnly) + ? '?payload=' + (await this._endpoint.prepareSsoPayload(this.messageSessionUid)) + : '?embedded&key=' + (await this._endpoint.getOnsitePublicKey(ecOnly)); - this.userType = domainResponse.isCloud ? UserType.cloudSso : UserType.onsiteSso - this.ssoLogoutUrl = domainResponse.spUrl.replace('login', 'logout') + this.userType = domainResponse.isCloud ? UserType.cloudSso : UserType.onsiteSso; + this.ssoLogoutUrl = domainResponse.spUrl.replace('login', 'logout'); return { url: domainResponse.spUrl + params, name: domainResponse.name, - } + }; } verifyDevice(username: string, loginToken: Uint8Array, isCloud: boolean = false): Promise { return new Promise((resolve, reject) => { if (!this.options.authUI3) { - reject(new Error('No authUI3 provided. authUI3 required to verify devices')) - return + reject(new Error('No authUI3 provided. authUI3 required to verify devices')); + return; } - let emailSent = false - let tfaExpiration = TwoFactorExpiration.TWO_FA_EXP_IMMEDIATELY - const deviceConfig = this.options.deviceConfig - let channels: DeviceApprovalChannel[] + let emailSent = false; + let tfaExpiration = TwoFactorExpiration.TWO_FA_EXP_IMMEDIATELY; + const deviceConfig = this.options.deviceConfig; + let channels: DeviceApprovalChannel[]; if (!isCloud) { channels = [ { channel: DeviceVerificationMethods.Email, sendApprovalRequest: async () => { - await this.executeRestAction(requestDeviceVerificationMessage({ - username: username, - verificationChannel: emailSent ? 'email_resend' : 'email', - encryptedDeviceToken: deviceConfig.deviceToken, - clientVersion: this.endpoint.clientVersion, - messageSessionUid: this.messageSessionUid - })) - emailSent = true + await this.executeRestAction( + requestDeviceVerificationMessage({ + username: username, + verificationChannel: emailSent ? 'email_resend' : 'email', + encryptedDeviceToken: deviceConfig.deviceToken, + clientVersion: this.endpoint.clientVersion, + messageSessionUid: this.messageSessionUid, + }) + ); + emailSent = true; }, validateCode: async (code) => { - await this.executeRestAction(validateDeviceVerificationCodeMessage({ - verificationCode: code, - username: username, - })) - resumeWithToken(loginToken) - } + await this.executeRestAction( + validateDeviceVerificationCodeMessage({ + verificationCode: code, + username: username, + }) + ); + resumeWithToken(loginToken); + }, }, { channel: DeviceVerificationMethods.KeeperPush, sendApprovalRequest: async () => { - await this.executeRestAction(twoFactorSend2FAPushMessage({ - encryptedLoginToken: loginToken, - pushType: TwoFactorPushType.TWO_FA_PUSH_KEEPER - })) - } + await this.executeRestAction( + twoFactorSend2FAPushMessage({ + encryptedLoginToken: loginToken, + pushType: TwoFactorPushType.TWO_FA_PUSH_KEEPER, + }) + ); + }, }, { channel: DeviceVerificationMethods.TFA, sendApprovalRequest: async () => { - await this.executeRestAction(twoFactorSend2FAPushMessage({ - encryptedLoginToken: loginToken, - })) + await this.executeRestAction( + twoFactorSend2FAPushMessage({ + encryptedLoginToken: loginToken, + }) + ); }, validateCode: async (code) => { const twoFactorValidateMsg = twoFactorValidateMessage({ encryptedLoginToken: loginToken, value: code, - expireIn: tfaExpiration - }) - const twoFactorValidateResp = await this.executeRest(twoFactorValidateMsg) + expireIn: tfaExpiration, + }); + const twoFactorValidateResp = await this.executeRest(twoFactorValidateMsg); if (twoFactorValidateResp.encryptedLoginToken) { const wssRs: Record = { event: 'received_totp', - encryptedLoginToken: platform.bytesToBase64(twoFactorValidateResp.encryptedLoginToken) - } - processPushNotification(wssRs) + encryptedLoginToken: platform.bytesToBase64( + twoFactorValidateResp.encryptedLoginToken + ), + }; + processPushNotification(wssRs); } }, - setExpiration: expiration => { - tfaExpiration = expiration - } - } + setExpiration: (expiration) => { + tfaExpiration = expiration; + }, + }, ]; } else { channels = [ { channel: DeviceVerificationMethods.KeeperPush, sendApprovalRequest: async () => { - await this.executeRestAction(twoFactorSend2FAPushMessage({ - encryptedLoginToken: loginToken, - pushType: TwoFactorPushType.TWO_FA_PUSH_KEEPER - })) - } + await this.executeRestAction( + twoFactorSend2FAPushMessage({ + encryptedLoginToken: loginToken, + pushType: TwoFactorPushType.TWO_FA_PUSH_KEEPER, + }) + ); + }, }, { channel: DeviceVerificationMethods.AdminApproval, sendApprovalRequest: async () => { - await this.executeRestAction(requestDeviceAdminApprovalMessage({ - username: username, - verificationChannel: emailSent ? 'email_resend' : 'email', - encryptedDeviceToken: deviceConfig.deviceToken, - clientVersion: this.endpoint.clientVersion, - messageSessionUid: this.messageSessionUid - })) - } - } - ] + await this.executeRestAction( + requestDeviceAdminApprovalMessage({ + username: username, + verificationChannel: emailSent ? 'email_resend' : 'email', + encryptedDeviceToken: deviceConfig.deviceToken, + clientVersion: this.endpoint.clientVersion, + messageSessionUid: this.messageSessionUid, + }) + ); + }, + }, + ]; } - let done = false + let done = false; const resumeWithToken = (token: Uint8Array) => { - done = true - resolve(token) - } + done = true; + resolve(token); + }; const rejectWithError = (error: Error) => { - done = true - reject(error) - } + done = true; + reject(error); + }; const processPushNotification = (wssRs: Record) => { if (wssRs.event === 'received_totp') { // Duo if (wssRs.encryptedLoginToken) { - const token = normal64Bytes(wssRs.encryptedLoginToken) - resumeWithToken(token) + const token = normal64Bytes(wssRs.encryptedLoginToken); + resumeWithToken(token); } // DNA else if (wssRs.passcode) { - const tfaChannel = channels.find(x => x.channel === DeviceVerificationMethods.TFA) + const tfaChannel = channels.find((x) => x.channel === DeviceVerificationMethods.TFA); if (tfaChannel && tfaChannel.validateCode) { - tfaChannel.validateCode(wssRs.passcode) + tfaChannel.validateCode(wssRs.passcode); } } else { // do nothing, we don't leak rejection during device approvals } } else if (wssRs.message === 'device_approved') { if (wssRs.approved) { - resumeWithToken(loginToken) + resumeWithToken(loginToken); } else { - rejectWithError(new Error('Rejected')) + rejectWithError(new Error('Rejected')); } } else if (wssRs.command === 'device_verified') { if (this.options.onDeviceVerified) { - this.options.onDeviceVerified(true) + this.options.onDeviceVerified(true); } - resumeWithToken(loginToken) + resumeWithToken(loginToken); } - } + }; // response from the client true - try again, false - cancel - this.options.authUI3.waitForDeviceApproval(channels, isCloud) + this.options.authUI3 + .waitForDeviceApproval(channels, isCloud) .then((ok) => { if (ok) { - resumeWithToken(loginToken) + resumeWithToken(loginToken); } else { - rejectWithError(new Error('Canceled')) + rejectWithError(new Error('Canceled')); } }) - .catch(reason => rejectWithError(reason)) + .catch((reason) => rejectWithError(reason)); // receive push notification - ;(async () => { + (async () => { if (!this.socket) { - return + return; } while (!done) { - const pushMessage = await this.socket.getPushMessage() - const wssClientResponse = await this.endpoint.decryptPushMessage(pushMessage) + const pushMessage = await this.socket.getPushMessage(); + const wssClientResponse = await this.endpoint.decryptPushMessage(pushMessage); if (!done) { - const wssRs = JSON.parse(wssClientResponse.message) - console.log(wssRs) - processPushNotification(wssRs) + const wssRs = JSON.parse(wssClientResponse.message); + console.log(wssRs); + processPushNotification(wssRs); } } })(); - }) + }); } private handleTwoFactor(loginResponse: Authentication.ILoginResponse): Promise { return new Promise((resolve, reject) => { - const responseChannels = loginResponse.channels + const responseChannels = loginResponse.channels; if (!responseChannels) { - reject(new Error('Channels not provided by API')) - return + reject(new Error('Channels not provided by API')); + return; } - const loginToken = loginResponse.encryptedLoginToken + const loginToken = loginResponse.encryptedLoginToken; if (!loginToken) { - reject(new Error('Login token not provided by API')) - return + reject(new Error('Login token not provided by API')); + return; } - let done = false + let done = false; let twoFactorWaitCancel = resolvablePromise(); const resumeWithToken = (token: Uint8Array) => { - done = true - twoFactorWaitCancel.resolve() - resolve(token) - } + done = true; + twoFactorWaitCancel.resolve(); + resolve(token); + }; const rejectWithError = (error: Error) => { - done = true - twoFactorWaitCancel.resolve() - reject(error) - } + done = true; + twoFactorWaitCancel.resolve(); + reject(error); + }; - let tfaExpiration = TwoFactorExpiration.TWO_FA_EXP_IMMEDIATELY + let tfaExpiration = TwoFactorExpiration.TWO_FA_EXP_IMMEDIATELY; const submitCode = async (channel: Authentication.TwoFactorChannelType, code: string) => { - const channelInfo = responseChannels.find(x => x.channelType === channel) - let valueType: Authentication.TwoFactorValueType | undefined + const channelInfo = responseChannels.find((x) => x.channelType === channel); + let valueType: Authentication.TwoFactorValueType | undefined; switch (channelInfo?.channelType) { case Authentication.TwoFactorChannelType.TWO_FA_CT_DNA: - valueType = Authentication.TwoFactorValueType.TWO_FA_CODE_DNA - break + valueType = Authentication.TwoFactorValueType.TWO_FA_CODE_DNA; + break; case Authentication.TwoFactorChannelType.TWO_FA_CT_DUO: - valueType = Authentication.TwoFactorValueType.TWO_FA_CODE_DUO - break + valueType = Authentication.TwoFactorValueType.TWO_FA_CODE_DUO; + break; case Authentication.TwoFactorChannelType.TWO_FA_CT_SMS: - valueType = Authentication.TwoFactorValueType.TWO_FA_CODE_SMS - break + valueType = Authentication.TwoFactorValueType.TWO_FA_CODE_SMS; + break; case Authentication.TwoFactorChannelType.TWO_FA_CT_TOTP: - valueType = Authentication.TwoFactorValueType.TWO_FA_CODE_TOTP - break + valueType = Authentication.TwoFactorValueType.TWO_FA_CODE_TOTP; + break; case Authentication.TwoFactorChannelType.TWO_FA_CT_RSA: - valueType = Authentication.TwoFactorValueType.TWO_FA_CODE_RSA - break + valueType = Authentication.TwoFactorValueType.TWO_FA_CODE_RSA; + break; case Authentication.TwoFactorChannelType.TWO_FA_CT_U2F: - valueType = Authentication.TwoFactorValueType.TWO_FA_RESP_U2F - break + valueType = Authentication.TwoFactorValueType.TWO_FA_RESP_U2F; + break; case Authentication.TwoFactorChannelType.TWO_FA_CT_WEBAUTHN: - valueType = Authentication.TwoFactorValueType.TWO_FA_RESP_WEBAUTHN - break + valueType = Authentication.TwoFactorValueType.TWO_FA_RESP_WEBAUTHN; + break; default: - valueType = undefined - break + valueType = undefined; + break; } const twoFactorValidateMsg = twoFactorValidateMessage({ channelUid: channelInfo ? channelInfo.channelUid : undefined, @@ -862,40 +914,43 @@ export class Auth { value: code, expireIn: tfaExpiration, valueType: valueType, - }) - const twoFactorValidateResp = await this.executeRest(twoFactorValidateMsg) + }); + const twoFactorValidateResp = await this.executeRest(twoFactorValidateMsg); if (twoFactorValidateResp.encryptedLoginToken) { - resumeWithToken(twoFactorValidateResp.encryptedLoginToken) + resumeWithToken(twoFactorValidateResp.encryptedLoginToken); } - } + }; - let lastPushChannel = TwoFactorChannelType.TWO_FA_CT_NONE + let lastPushChannel = TwoFactorChannelType.TWO_FA_CT_NONE; const submitPush = async (channel: TwoFactorChannelType, pushType: TwoFactorPushType) => { const sendPushRequest: ITwoFactorSendPushRequest = { encryptedLoginToken: loginResponse.encryptedLoginToken, pushType: pushType, - expireIn: tfaExpiration - } - if(channel === TwoFactorChannelType.TWO_FA_CT_DUO && [TwoFactorPushType.TWO_FA_PUSH_DUO_PUSH, TwoFactorPushType.TWO_FA_PUSH_DUO_CALL].includes(pushType)) { - const tfaValidateResponse = await this.executeRest(twoFASendDuoMessage(sendPushRequest)) - resumeWithToken(tfaValidateResponse.encryptedLoginToken) + expireIn: tfaExpiration, + }; + if ( + channel === TwoFactorChannelType.TWO_FA_CT_DUO && + [TwoFactorPushType.TWO_FA_PUSH_DUO_PUSH, TwoFactorPushType.TWO_FA_PUSH_DUO_CALL].includes(pushType) + ) { + const tfaValidateResponse = await this.executeRest(twoFASendDuoMessage(sendPushRequest)); + resumeWithToken(tfaValidateResponse.encryptedLoginToken); } else { - await this.executeRestAction(twoFactorSend2FAPushMessage(sendPushRequest)) + await this.executeRestAction(twoFactorSend2FAPushMessage(sendPushRequest)); } - lastPushChannel = channel - } + lastPushChannel = channel; + }; const channels: TwoFactorChannelData[] = responseChannels .map((ch) => { const tfachannelData: TwoFactorChannelData = { channel: ch, setExpiration: (exp) => { - tfaExpiration = exp + tfaExpiration = exp; }, sendCode: async (code) => { - await submitCode(ch.channelType!, code) - } - } + await submitCode(ch.channelType!, code); + }, + }; switch (ch.channelType) { case TwoFactorChannelType.TWO_FA_CT_U2F: case TwoFactorChannelType.TWO_FA_CT_WEBAUTHN: @@ -903,207 +958,241 @@ export class Auth { break; case TwoFactorChannelType.TWO_FA_CT_TOTP: case TwoFactorChannelType.TWO_FA_CT_RSA: - break + break; case TwoFactorChannelType.TWO_FA_CT_SMS: - tfachannelData.availablePushes = [TwoFactorPushType.TWO_FA_PUSH_SMS] - break + tfachannelData.availablePushes = [TwoFactorPushType.TWO_FA_PUSH_SMS]; + break; case TwoFactorChannelType.TWO_FA_CT_DNA: - tfachannelData.availablePushes = [TwoFactorPushType.TWO_FA_PUSH_DNA] - break + tfachannelData.availablePushes = [TwoFactorPushType.TWO_FA_PUSH_DNA]; + break; case TwoFactorChannelType.TWO_FA_CT_KEEPER: case TwoFactorChannelType.TWO_FA_CT_DUO: if (ch.capabilities) { tfachannelData.availablePushes = ch.capabilities - .map(cap => { + .map((cap) => { switch (cap) { case 'push': - return TwoFactorPushType.TWO_FA_PUSH_DUO_PUSH + return TwoFactorPushType.TWO_FA_PUSH_DUO_PUSH; case 'sms': - return TwoFactorPushType.TWO_FA_PUSH_DUO_TEXT + return TwoFactorPushType.TWO_FA_PUSH_DUO_TEXT; case 'phone': - return TwoFactorPushType.TWO_FA_PUSH_DUO_CALL + return TwoFactorPushType.TWO_FA_PUSH_DUO_CALL; default: - return undefined + return undefined; } - }).filter(cap => !!cap).map(cap => cap!) + }) + .filter((cap) => !!cap) + .map((cap) => cap!); } - break + break; } if (tfachannelData.availablePushes) { tfachannelData.sendPush = async (pushType: TwoFactorPushType) => { - submitPush(ch.channelType!, pushType) - } + submitPush(ch.channelType!, pushType); + }; } - return tfachannelData - }).filter((chd: TwoFactorChannelData | undefined) => !!chd).map(chd => chd!) + return tfachannelData; + }) + .filter((chd: TwoFactorChannelData | undefined) => !!chd) + .map((chd) => chd!); const processPushNotification = (wssRs: Record) => { if (wssRs.event === 'received_totp') { // Duo if (wssRs.encryptedLoginToken) { - const token = normal64Bytes(wssRs.encryptedLoginToken) - resumeWithToken(token) + const token = normal64Bytes(wssRs.encryptedLoginToken); + resumeWithToken(token); } // DNA else if (wssRs.passcode) { (async () => { - await submitCode(lastPushChannel, wssRs.passcode) - })() + await submitCode(lastPushChannel, wssRs.passcode); + })(); } else { - rejectWithError(new Error('push_declined')) + rejectWithError(new Error('push_declined')); } } - } + }; - this.options.authUI3?.waitForTwoFactorCode(channels, twoFactorWaitCancel.promise) - .then(ok => { + this.options.authUI3 + ?.waitForTwoFactorCode(channels, twoFactorWaitCancel.promise) + .then((ok) => { if (ok) { - resumeWithToken(loginToken) + resumeWithToken(loginToken); } else { - rejectWithError(new Error('Canceled')) + rejectWithError(new Error('Canceled')); } }) - .catch(reason => rejectWithError(reason)) + .catch((reason) => rejectWithError(reason)); // receive push notification - ;(async () => { + (async () => { if (!this.socket) { - return + return; } while (!done) { - const pushMessage = await this.socket.getPushMessage() - const wssClientResponse = await this.endpoint.decryptPushMessage(pushMessage) + const pushMessage = await this.socket.getPushMessage(); + const wssClientResponse = await this.endpoint.decryptPushMessage(pushMessage); if (!done) { - const wssRs = JSON.parse(wssClientResponse.message) - console.log(wssRs) - processPushNotification(wssRs) + const wssRs = JSON.parse(wssClientResponse.message); + console.log(wssRs); + processPushNotification(wssRs); } } })(); - }) + }); } - async authHashLogin(loginResponse: NN, username: string, password: KeyWrapper, useAlternate: boolean = false) { + async authHashLogin( + loginResponse: NN, + username: string, + password: KeyWrapper, + useAlternate: boolean = false + ) { // TODO test for account transfer and account recovery - const salt = useAlternate ? loginResponse.salt.find(s => s.name === 'alternate') : loginResponse.salt[0] + const salt = useAlternate ? loginResponse.salt.find((s) => s.name === 'alternate') : loginResponse.salt[0]; if (!salt?.salt || !salt?.iterations) { - const error = new Error('Salt missing from API response') + const error = new Error('Salt missing from API response'); if (useAlternate && !salt) { - error.cause = Error('No alternate master password found') + error.cause = Error('No alternate master password found'); } - throw error + throw error; } - this.options.salt = salt.salt - this.options.iterations = salt.iterations + this.options.salt = salt.salt; + this.options.iterations = salt.iterations; const authHashKey = await platform.deriveKey(password, salt.salt, salt.iterations); let authHash = await platform.calcAuthVerifier(authHashKey); const loginMsg = validateAuthHashMessage({ authResponse: authHash, - encryptedLoginToken: loginResponse.encryptedLoginToken - }) - const loginResp = await this.executeRest(loginMsg) - console.log(loginResp) + encryptedLoginToken: loginResponse.encryptedLoginToken, + }); + const loginResp = await this.executeRest(loginMsg); + console.log(loginResp); if (loginResp.cloneCode && loginResp.cloneCode.length > 0) { - await this.options.sessionStorage?.saveCloneCode(this.options.host as KeeperEnvironment, this._username, loginResp.cloneCode) + await this.options.sessionStorage?.saveCloneCode( + this.options.host as KeeperEnvironment, + this._username, + loginResp.cloneCode + ); } - await this.loginSuccess(loginResp, password, salt) + await this.loginSuccess(loginResp, password, salt); } - async loginSuccess(loginResponse: NN, password?: KeyWrapper, salt: Authentication.ISalt | undefined = undefined) { - this._username = loginResponse.primaryUsername || this._username - this.setLoginParameters(webSafe64FromBytes(loginResponse.encryptedSessionToken), loginResponse.sessionTokenType ?? undefined, loginResponse.accountUid) + async loginSuccess( + loginResponse: NN, + password?: KeyWrapper, + salt: Authentication.ISalt | undefined = undefined + ) { + this._username = loginResponse.primaryUsername || this._username; + this.setLoginParameters( + webSafe64FromBytes(loginResponse.encryptedSessionToken), + loginResponse.sessionTokenType ?? undefined, + loginResponse.accountUid + ); switch (loginResponse.encryptedDataKeyType) { case Authentication.EncryptedDataKeyType.BY_DEVICE_PUBLIC_KEY: if (!this.options.deviceConfig.privateKey) { - throw Error('Private key is missing from the device config') + throw Error('Private key is missing from the device config'); } - this.dataKey = await platform.privateDecryptEC(loginResponse.encryptedDataKey, this.options.deviceConfig.privateKey, this.options.deviceConfig.publicKey) + this.dataKey = await platform.privateDecryptEC( + loginResponse.encryptedDataKey, + this.options.deviceConfig.privateKey, + this.options.deviceConfig.publicKey + ); break; case Authentication.EncryptedDataKeyType.BY_PASSWORD: if (!password) { - throw Error('Password is missing, unable to continue') + throw Error('Password is missing, unable to continue'); } this.dataKey = await decryptEncryptionParams(password, loginResponse.encryptedDataKey); break; case Authentication.EncryptedDataKeyType.BY_ALTERNATE: if (!password || !salt) { - throw Error('Password or salt is missing, unable to continue') + throw Error('Password or salt is missing, unable to continue'); } if (salt) { - const encKey = await platform.deriveKeyV2('data_key', password, salt.salt!, salt.iterations!) - this.dataKey = await platform.aesGcmDecrypt(loginResponse.encryptedDataKey, encKey) + const encKey = await platform.deriveKeyV2('data_key', password, salt.salt!, salt.iterations!); + this.dataKey = await platform.aesGcmDecrypt(loginResponse.encryptedDataKey, encKey); } break; case Authentication.EncryptedDataKeyType.NO_KEY: case Authentication.EncryptedDataKeyType.BY_BIO: - throw new Error(`Data Key type ${loginResponse.encryptedDataKeyType} decryption not implemented`) + throw new Error(`Data Key type ${loginResponse.encryptedDataKeyType} decryption not implemented`); } - await this.loadAccountSummary() + await this.loadAccountSummary(); - let encryptedPrivateKey: Uint8Array | undefined - let encryptedEccPrivateKey: Uint8Array | undefined + let encryptedPrivateKey: Uint8Array | undefined; + let encryptedEccPrivateKey: Uint8Array | undefined; if (this.options.kvs) { - const encryptedPrivateKeyString = this.options.kvs.getValue(`${this._username}/private_key`) + const encryptedPrivateKeyString = this.options.kvs.getValue(`${this._username}/private_key`); if (encryptedPrivateKeyString) { - encryptedPrivateKey = platform.base64ToBytes(encryptedPrivateKeyString) + encryptedPrivateKey = platform.base64ToBytes(encryptedPrivateKeyString); } - const encryptedEccPrivateKeyString = this.options.kvs.getValue(`${this._username}/ecc_private_key`) + const encryptedEccPrivateKeyString = this.options.kvs.getValue(`${this._username}/ecc_private_key`); if (encryptedEccPrivateKeyString) { - encryptedEccPrivateKey = platform.base64ToBytes(encryptedEccPrivateKeyString) + encryptedEccPrivateKey = platform.base64ToBytes(encryptedEccPrivateKeyString); } } if (!encryptedPrivateKey || !encryptedEccPrivateKey) { // protobuf embeds the unit8array into the prototype of this.accountSummary.keysInfo, check for length as well - const encryptedPrivateKeyUint8 = this.accountSummary?.keysInfo?.encryptedPrivateKey || undefined - const encryptedEccPrivateKeyUint8 = this.accountSummary?.keysInfo?.encryptedEccPrivateKey || undefined - encryptedPrivateKey = encryptedPrivateKeyUint8?.length ? encryptedPrivateKeyUint8 : undefined - encryptedEccPrivateKey = encryptedEccPrivateKeyUint8?.length ? encryptedEccPrivateKeyUint8 : undefined + const encryptedPrivateKeyUint8 = this.accountSummary?.keysInfo?.encryptedPrivateKey || undefined; + const encryptedEccPrivateKeyUint8 = this.accountSummary?.keysInfo?.encryptedEccPrivateKey || undefined; + encryptedPrivateKey = encryptedPrivateKeyUint8?.length ? encryptedPrivateKeyUint8 : undefined; + encryptedEccPrivateKey = encryptedEccPrivateKeyUint8?.length ? encryptedEccPrivateKeyUint8 : undefined; if (this.options.kvs) { if (encryptedPrivateKey) { - this.options.kvs.saveValue(`${this._username}/private_key`, platform.bytesToBase64(encryptedPrivateKey)) + this.options.kvs.saveValue( + `${this._username}/private_key`, + platform.bytesToBase64(encryptedPrivateKey) + ); } if (encryptedEccPrivateKey) { - this.options.kvs.saveValue(`${this._username}/ecc_private_key`, platform.bytesToBase64(encryptedEccPrivateKey)) + this.options.kvs.saveValue( + `${this._username}/ecc_private_key`, + platform.bytesToBase64(encryptedEccPrivateKey) + ); } } } if (!this.dataKey) { - throw Error('Data Key is missing') + throw Error('Data Key is missing'); } if (encryptedPrivateKey) { - this.privateKey = await platform.aesCbcDecrypt(encryptedPrivateKey, this.dataKey, true) + this.privateKey = await platform.aesCbcDecrypt(encryptedPrivateKey, this.dataKey, true); } if (encryptedEccPrivateKey?.length) { - this.eccPrivateKey = await platform.aesGcmDecrypt(encryptedEccPrivateKey, this.dataKey) - this.eccPublicKey = this.accountSummary?.keysInfo?.eccPublicKey || undefined + this.eccPrivateKey = await platform.aesGcmDecrypt(encryptedEccPrivateKey, this.dataKey); + this.eccPublicKey = this.accountSummary?.keysInfo?.eccPublicKey || undefined; } if (this.accountSummary?.clientKey) { - this.clientKey = await platform.aesCbcDecrypt(this.accountSummary.clientKey, this.dataKey, true) + this.clientKey = await platform.aesCbcDecrypt(this.accountSummary.clientKey, this.dataKey, true); } if (this.options.sessionStorage) { - this.options.sessionStorage.saveSessionParameters(this.getSessionParameters()) + this.options.sessionStorage.saveSessionParameters(this.getSessionParameters()); } } async loadAccountSummary() { - this._accountSummary = await this.executeRest(accountSummaryMessage({ - summaryVersion: this._accountSummaryVersion - })); + this._accountSummary = await this.executeRest( + accountSummaryMessage({ + summaryVersion: this._accountSummaryVersion, + }) + ); } setAccountSummaryVersion(version: number) { - this._accountSummaryVersion = version + this._accountSummaryVersion = version; } public setSessionToken(token: string) { - this._sessionToken = token + this._sessionToken = token; } // async executeCommand(command: Command): Promise { @@ -1117,7 +1206,10 @@ export class Auth { // return this.endpoint.executeV2Command(command); // } - async executeRest(message: RestOutMessage | RestMessage, options?: ExecuteRestOptions): Promise { + async executeRest( + message: RestOutMessage | RestMessage, + options?: ExecuteRestOptions + ): Promise { return this.endpoint.executeRest(message, this._sessionToken, options); } @@ -1126,8 +1218,8 @@ export class Auth { command.baseRequest.username = this._username; } if (command.authorization) { - command.authorization.device_id = 'JS Keeper API' - command.authorization.session_token = this.sessionToken + command.authorization.device_id = 'JS Keeper API'; + command.authorization.session_token = this.sessionToken; } return this.endpoint.executeRestCommand(command); } @@ -1137,83 +1229,87 @@ export class Auth { } async get(path: string) { - return this.endpoint.get(path) + return this.endpoint.get(path); } - setLoginParameters(sessionToken: string, sessionTokenType?: Authentication.SessionTokenType, accountUid?: Uint8Array) { + setLoginParameters( + sessionToken: string, + sessionTokenType?: Authentication.SessionTokenType, + accountUid?: Uint8Array + ) { this._sessionToken = sessionToken; - this._sessionTokenType = sessionTokenType + this._sessionTokenType = sessionTokenType; this._accountUid = accountUid; if (!this.socket) { - throw new Error('No socket available') - } + throw new Error('No socket available'); + } if (this.socket.getIsConnected()) { - this.socket.registerLogin(this._sessionToken) + this.socket.registerLogin(this._sessionToken); } this.socket.onOpen(() => { - this.socket?.registerLogin(this._sessionToken) - }) + this.socket?.registerLogin(this._sessionToken); + }); } async registerDevice() { - await this.endpoint.registerDevice() + await this.endpoint.registerDevice(); } onClose(callback: () => void): void { if (!this.socket) { - throw new Error('No socket available') + throw new Error('No socket available'); } - this.socket.onClose(callback) + this.socket.onClose(callback); } onError(callback: () => void): void { if (!this.socket) { - throw new Error('No socket available') + throw new Error('No socket available'); } - this.socket.onError(callback) + this.socket.onError(callback); } onPushMessage(callback: (data: any) => void): void { if (!this.socket) { - throw new Error('No socket available') + throw new Error('No socket available'); } - this.socket.onPushMessage(callback) + this.socket.onPushMessage(callback); } - onCloseMessage(callback: (data:any) => void): void { + onCloseMessage(callback: (data: any) => void): void { if (!this.socket) { - throw new Error('No socket available') + throw new Error('No socket available'); } - this.socket.onCloseMessage(callback) + this.socket.onCloseMessage(callback); } async getPushMessage(): Promise { if (!this.socket) { - throw new Error('No socket available') + throw new Error('No socket available'); } - const pushMessage = await this.socket.getPushMessage() - const wssClientResponse = await this.endpoint.decryptPushMessage(pushMessage) - console.log(wssClientResponse.message) - return JSON.parse(wssClientResponse.message) + const pushMessage = await this.socket.getPushMessage(); + const wssClientResponse = await this.endpoint.decryptPushMessage(pushMessage); + console.log(wssClientResponse.message); + return JSON.parse(wssClientResponse.message); } // we need to not include rsa keys at all when ecOnly is true - private async createUserRequest(dataKey: Uint8Array, ecOnly?:boolean): Promise { - if(ecOnly){ - return this.createUserRequestECOnly(dataKey) + private async createUserRequest(dataKey: Uint8Array, ecOnly?: boolean): Promise { + if (ecOnly) { + return this.createUserRequestECOnly(dataKey); } else { - return this.createUserRequestRSAIncluded(dataKey) - } + return this.createUserRequestRSAIncluded(dataKey); + } } private async createUserRequestRSAIncluded(dataKey: Uint8Array): Promise { - const rsaKeys = await platform.generateRSAKeyPair() - const rsaEncryptedPrivateKey = await platform.aesCbcEncrypt(rsaKeys.privateKey, dataKey, true) + const rsaKeys = await platform.generateRSAKeyPair(); + const rsaEncryptedPrivateKey = await platform.aesCbcEncrypt(rsaKeys.privateKey, dataKey, true); - const ecKeys = await platform.generateECKeyPair() - const eccEncryptedPrivateKey = await platform.aesGcmEncrypt(ecKeys.privateKey, dataKey) + const ecKeys = await platform.generateECKeyPair(); + const eccEncryptedPrivateKey = await platform.aesGcmEncrypt(ecKeys.privateKey, dataKey); - const encryptedClientKey = await platform.aesCbcEncrypt(generateEncryptionKey(), dataKey, true) + const encryptedClientKey = await platform.aesCbcEncrypt(generateEncryptionKey(), dataKey, true); return { rsaPublicKey: rsaKeys.publicKey, @@ -1223,14 +1319,14 @@ export class Auth { encryptedDeviceToken: this.options.deviceConfig.deviceToken, encryptedClientKey: encryptedClientKey, clientVersion: this.options.clientVersion, - } + }; } private async createUserRequestECOnly(dataKey: Uint8Array): Promise { - const ecKeys = await platform.generateECKeyPair() - const eccEncryptedPrivateKey = await platform.aesGcmEncrypt(ecKeys.privateKey, dataKey) + const ecKeys = await platform.generateECKeyPair(); + const eccEncryptedPrivateKey = await platform.aesGcmEncrypt(ecKeys.privateKey, dataKey); - const encryptedClientKey = await platform.aesCbcEncrypt(generateEncryptionKey(), dataKey, true) + const encryptedClientKey = await platform.aesCbcEncrypt(generateEncryptionKey(), dataKey, true); return { eccPublicKey: ecKeys.publicKey, @@ -1238,115 +1334,124 @@ export class Auth { encryptedDeviceToken: this.options.deviceConfig.deviceToken, encryptedClientKey: encryptedClientKey, clientVersion: this.options.clientVersion, - } + }; } - public async createUser(username: string, password: KeyWrapper, ecOnly?:boolean) { - const iterations = 100000 - const dataKey = generateEncryptionKey() - const authVerifier = await createAuthVerifier(password, iterations) - const encryptionParams = await createEncryptionParams(password, dataKey, iterations) - const request = await this.createUserRequest(dataKey, ecOnly) - const regUserMsg = requestCreateUserMessage({ - ...request, - username: username, - authVerifier: authVerifier, - encryptionParams: encryptionParams, - }, false) - await this.executeRestAction(regUserMsg) + public async createUser(username: string, password: KeyWrapper, ecOnly?: boolean) { + const iterations = 100000; + const dataKey = generateEncryptionKey(); + const authVerifier = await createAuthVerifier(password, iterations); + const encryptionParams = await createEncryptionParams(password, dataKey, iterations); + const request = await this.createUserRequest(dataKey, ecOnly); + const regUserMsg = requestCreateUserMessage( + { + ...request, + username: username, + authVerifier: authVerifier, + encryptionParams: encryptionParams, + }, + false + ); + await this.executeRestAction(regUserMsg); } - private async createSsoUser(loginToken: Uint8Array, ecOnly?:boolean) { + private async createSsoUser(loginToken: Uint8Array, ecOnly?: boolean) { if (!this.options.deviceConfig.publicKey) { - throw Error('Public key is missing') + throw Error('Public key is missing'); } - const dataKey = generateEncryptionKey() - const encryptedDeviceDataKey = await platform.publicEncryptEC(dataKey, this.options.deviceConfig.publicKey) - const request = await this.createUserRequest(dataKey, ecOnly) - const regUserMsg = requestCreateUserMessage({ - ...request, - username: this._username, - encryptedLoginToken: loginToken, - encryptedDeviceDataKey: encryptedDeviceDataKey - }, true) - await this.executeRestAction(regUserMsg) + const dataKey = generateEncryptionKey(); + const encryptedDeviceDataKey = await platform.publicEncryptEC(dataKey, this.options.deviceConfig.publicKey); + const request = await this.createUserRequest(dataKey, ecOnly); + const regUserMsg = requestCreateUserMessage( + { + ...request, + username: this._username, + encryptedLoginToken: loginToken, + encryptedDeviceDataKey: encryptedDeviceDataKey, + }, + true + ); + await this.executeRestAction(regUserMsg); } public async getEnterprisePublicKeys() { - const resp = await this.executeRest(getEnterprisePublicKeyMessage()) + const resp = await this.executeRest(getEnterprisePublicKeyMessage()); if (resp.enterpriseECCPublicKey) { - this.enterpriseEccPublicKey = resp.enterpriseECCPublicKey + this.enterpriseEccPublicKey = resp.enterpriseECCPublicKey; } if (resp.enterprisePublicKey) { - this.enterprisePublicKey = resp.enterprisePublicKey + this.enterprisePublicKey = resp.enterprisePublicKey; } } - public getKeys(ecOnly?:boolean): EncryptionKeys { - if(ecOnly){ + public getKeys(ecOnly?: boolean): EncryptionKeys { + if (ecOnly) { if (!this.dataKey || !this.eccPrivateKey) { - throw Error('Encryption keys are missing') + throw Error('Encryption keys are missing'); } - if(this.privateKey){ + if (this.privateKey) { return { dataKey: this.dataKey, privateKey: this.privateKey, - eccPrivateKey: this.eccPrivateKey - } + eccPrivateKey: this.eccPrivateKey, + }; } else { return { dataKey: this.dataKey, - eccPrivateKey: this.eccPrivateKey - } + eccPrivateKey: this.eccPrivateKey, + }; } } else { if (!this.dataKey || !this.privateKey || !this.eccPrivateKey) { - throw Error('Encryption keys are missing') + throw Error('Encryption keys are missing'); } return { dataKey: this.dataKey, privateKey: this.privateKey, - eccPrivateKey: this.eccPrivateKey - } + eccPrivateKey: this.eccPrivateKey, + }; } } public setPrimaryUsername(username: string) { - this._username = username + this._username = username; } } const iterationsToBytes = (iterations: number): Uint8Array => { - const iterationBytes = new ArrayBuffer(4) - new DataView(iterationBytes).setUint32(0, iterations) - const bytes = new Uint8Array(iterationBytes) - bytes[0] = 1 // version - return bytes + const iterationBytes = new ArrayBuffer(4); + new DataView(iterationBytes).setUint32(0, iterations); + const bytes = new Uint8Array(iterationBytes); + bytes[0] = 1; // version + return bytes; }; export async function createAuthVerifier(password: KeyWrapper, iterations: number): Promise { const salt = platform.getRandomBytes(16); const authHashKey = await platform.deriveKey(password, salt, iterations); - return Uint8Array.of(...iterationsToBytes(iterations), ...salt, ...authHashKey) + return Uint8Array.of(...iterationsToBytes(iterations), ...salt, ...authHashKey); } -export async function createEncryptionParams(password: KeyWrapper, dataKey: Uint8Array, iterations: number): Promise { +export async function createEncryptionParams( + password: KeyWrapper, + dataKey: Uint8Array, + iterations: number +): Promise { const salt = platform.getRandomBytes(16); const authHashKey = await platform.deriveKey(password, salt, iterations); - const doubledDataKey = Uint8Array.of(...dataKey, ...dataKey) - const encryptedDoubledKey = await platform.aesCbcEncrypt(doubledDataKey, authHashKey, false) - return Uint8Array.of(...iterationsToBytes(iterations), ...salt, ...encryptedDoubledKey) + const doubledDataKey = Uint8Array.of(...dataKey, ...dataKey); + const encryptedDoubledKey = await platform.aesCbcEncrypt(doubledDataKey, authHashKey, false); + return Uint8Array.of(...iterationsToBytes(iterations), ...salt, ...encryptedDoubledKey); } async function decryptEncryptionParamsString(password: KeyWrapper, encryptionParams: string): Promise { - return decryptEncryptionParams(password, platform.base64ToBytes(normal64(encryptionParams))) + return decryptEncryptionParams(password, platform.base64ToBytes(normal64(encryptionParams))); } export async function decryptEncryptionParams(password: KeyWrapper, encryptionParams: Uint8Array): Promise { - let corruptedEncryptionParametersMessage = "Corrupted encryption parameters"; - if (encryptionParams[0] !== 1) - throw new Error(corruptedEncryptionParametersMessage); + let corruptedEncryptionParametersMessage = 'Corrupted encryption parameters'; + if (encryptionParams[0] !== 1) throw new Error(corruptedEncryptionParametersMessage); let iterations = (encryptionParams[1] << 16) + (encryptionParams[2] << 8) + encryptionParams[3]; let saltBytes = encryptionParams.subarray(4, 20); let masterKey = await platform.deriveKey(password, saltBytes, iterations); @@ -1360,18 +1465,23 @@ export async function decryptEncryptionParams(password: KeyWrapper, encryptionPa return doubledDataKey.slice(0, 32); } -function chooseErrorMessage(loginState: Authentication.LoginState){ - switch (loginState){ +function chooseErrorMessage(loginState: Authentication.LoginState) { + switch (loginState) { case Authentication.LoginState.ACCOUNT_LOCKED: - return 'account_locked' + return 'account_locked'; case Authentication.LoginState.DEVICE_ACCOUNT_LOCKED: - return 'device_account_locked' + return 'device_account_locked'; case Authentication.LoginState.DEVICE_LOCKED: - return 'device_locked' + return 'device_locked'; case Authentication.LoginState.INVALID_LOGINSTATE: - return 'invalid_loginstate' + return 'invalid_loginstate'; } } const hasYubikeyChannel = (channels: Authentication.ITwoFactorChannelInfo[]): boolean => - !!channels.find(({challenge, channelType}) => challenge && (channelType === Authentication.TwoFactorChannelType.TWO_FA_CT_U2F || channelType === Authentication.TwoFactorChannelType.TWO_FA_CT_WEBAUTHN)) + !!channels.find( + ({ challenge, channelType }) => + challenge && + (channelType === Authentication.TwoFactorChannelType.TWO_FA_CT_U2F || + channelType === Authentication.TwoFactorChannelType.TWO_FA_CT_WEBAUTHN) + ); diff --git a/keeperapi/src/browser/asn1hex.ts b/keeperapi/src/browser/asn1hex.ts index 866f0fa..45c0adf 100644 --- a/keeperapi/src/browser/asn1hex.ts +++ b/keeperapi/src/browser/asn1hex.ts @@ -36,7 +36,7 @@ * @license MIT License */ -import {parseBigInt} from './jsbn'; +import { parseBigInt } from './jsbn'; /** * get byte length for ASN.1 L(length) bytes @@ -50,12 +50,11 @@ import {parseBigInt} from './jsbn'; function _asnhex_getByteLengthOfL_AtObj(s, pos) { if (s.substring(pos + 2, pos + 3) != '8') return 1; var i = parseInt(s.substring(pos + 3, pos + 4)); - if (i == 0) return -1; // length octet '80' indefinite length - if (0 < i && i < 10) return i + 1; // including '8?' octet; - return -2; // malformed format + if (i == 0) return -1; // length octet '80' indefinite length + if (0 < i && i < 10) return i + 1; // including '8?' octet; + return -2; // malformed format } - /** * get hexadecimal string for ASN.1 L(length) bytes * @name getHexOfL_AtObj @@ -180,7 +179,7 @@ export function _asnhex_getPosArrayOfChildren_AtObj(h, pos) { var k = 0; while (1) { var pNext = _asnhex_getPosOfNextSibling_AtObj(h, p); - if (pNext == null || (pNext - p0 >= (len * 2))) break; + if (pNext == null || pNext - p0 >= len * 2) break; if (k >= 200) break; a.push(pNext); @@ -293,4 +292,3 @@ export function _rsapem_getHexValueArrayOfChildrenFromHex(hPrivateKey) { a.push(v, n, e, d, p, q, dp, dq, co); return a; } - diff --git a/keeperapi/src/browser/browserWorker.ts b/keeperapi/src/browser/browserWorker.ts index af2e117..b031cee 100644 --- a/keeperapi/src/browser/browserWorker.ts +++ b/keeperapi/src/browser/browserWorker.ts @@ -1,14 +1,14 @@ -import { CryptoWorkerMessage, handleCryptoWorkerMessage } from "../cryptoWorker" -import { connectPlatform } from "../platform" -import { browserPlatform } from "./platform" +import { CryptoWorkerMessage, handleCryptoWorkerMessage } from '../cryptoWorker'; +import { connectPlatform } from '../platform'; +import { browserPlatform } from './platform'; -connectPlatform(browserPlatform) +connectPlatform(browserPlatform); self.addEventListener('message', async function (e: MessageEvent) { - const {data} = e + const { data } = e; - const response = await handleCryptoWorkerMessage(data) + const response = await handleCryptoWorkerMessage(data); // @ts-ignore - self.postMessage(response) -}) + self.postMessage(response); +}); diff --git a/keeperapi/src/browser/index.ts b/keeperapi/src/browser/index.ts index ba1116d..db0e0db 100644 --- a/keeperapi/src/browser/index.ts +++ b/keeperapi/src/browser/index.ts @@ -1,18 +1,17 @@ -export * from "../endpoint"; -export * from "../auth"; -export * from "../vendorModel"; -export * from "../vault"; -export * from "../company"; -export * from "../configuration"; -export * from "../commands"; -export * from "../restMessages"; -export * from "../utils"; -export * from "../platform"; -export * from "../proto"; -export * from "../cryptoWorker"; -export * from "../qrc"; -import {connectPlatform} from "../platform"; -import {browserPlatform} from "./platform"; +export * from '../endpoint'; +export * from '../auth'; +export * from '../vendorModel'; +export * from '../vault'; +export * from '../company'; +export * from '../configuration'; +export * from '../commands'; +export * from '../restMessages'; +export * from '../utils'; +export * from '../platform'; +export * from '../proto'; +export * from '../cryptoWorker'; +export * from '../qrc'; +import { connectPlatform } from '../platform'; +import { browserPlatform } from './platform'; connectPlatform(browserPlatform); - diff --git a/keeperapi/src/browser/jsbn.ts b/keeperapi/src/browser/jsbn.ts index 8143c02..a877463 100644 --- a/keeperapi/src/browser/jsbn.ts +++ b/keeperapi/src/browser/jsbn.ts @@ -10,23 +10,25 @@ var dbits; // JavaScript engine analysis var canary = 0xdeadbeefcafe; -var j_lm = ((canary&0xffffff)==0xefcafe); +var j_lm = (canary & 0xffffff) == 0xefcafe; // (public) Constructor -export function BigInteger(a?,b?,c?) { - if(a != null) - if("number" == typeof a) this.fromNumber(a,b,c); - else if(b == null && "string" != typeof a) this.fromString(a,256); - else this.fromString(a,b); +export function BigInteger(a?, b?, c?) { + if (a != null) + if ('number' == typeof a) this.fromNumber(a, b, c); + else if (b == null && 'string' != typeof a) this.fromString(a, 256); + else this.fromString(a, b); } // convert a (hex) string to a bignum object -export function parseBigInt(str,r) { - return new BigInteger(str,r); +export function parseBigInt(str, r) { + return new BigInteger(str, r); } // return new, unset BigInteger -function nbi() { return new BigInteger(); } +function nbi() { + return new BigInteger(); +} // am: Compute w_j += (x*this_i), propagate carries, // c is initial carry, returns final carry. @@ -36,85 +38,88 @@ function nbi() { return new BigInteger(); } // am1: use a single mult and divide to get the high bits, // max digit bits should be 26 because // max internal value = 2*dvalue^2-2*dvalue (< 2^53) -function am1(i,x,w,j,c,n) { - while(--n >= 0) { - var v = x*this[i++]+w[j]+c; - c = Math.floor(v/0x4000000); - w[j++] = v&0x3ffffff; +function am1(i, x, w, j, c, n) { + while (--n >= 0) { + var v = x * this[i++] + w[j] + c; + c = Math.floor(v / 0x4000000); + w[j++] = v & 0x3ffffff; } return c; } // am2 avoids a big mult-and-extract completely. // Max digit bits should be <= 30 because we do bitwise ops // on values up to 2*hdvalue^2-hdvalue-1 (< 2^31) -function am2(i,x,w,j,c,n) { - var xl = x&0x7fff, xh = x>>15; - while(--n >= 0) { - var l = this[i]&0x7fff; - var h = this[i++]>>15; - var m = xh*l+h*xl; - l = xl*l+((m&0x7fff)<<15)+w[j]+(c&0x3fffffff); - c = (l>>>30)+(m>>>15)+xh*h+(c>>>30); - w[j++] = l&0x3fffffff; +function am2(i, x, w, j, c, n) { + var xl = x & 0x7fff, + xh = x >> 15; + while (--n >= 0) { + var l = this[i] & 0x7fff; + var h = this[i++] >> 15; + var m = xh * l + h * xl; + l = xl * l + ((m & 0x7fff) << 15) + w[j] + (c & 0x3fffffff); + c = (l >>> 30) + (m >>> 15) + xh * h + (c >>> 30); + w[j++] = l & 0x3fffffff; } return c; } // Alternately, set max digit bits to 28 since some // browsers slow down when dealing with 32-bit numbers. -function am3(i,x,w,j,c,n) { - var xl = x&0x3fff, xh = x>>14; - while(--n >= 0) { - var l = this[i]&0x3fff; - var h = this[i++]>>14; - var m = xh*l+h*xl; - l = xl*l+((m&0x3fff)<<14)+w[j]+c; - c = (l>>28)+(m>>14)+xh*h; - w[j++] = l&0xfffffff; +function am3(i, x, w, j, c, n) { + var xl = x & 0x3fff, + xh = x >> 14; + while (--n >= 0) { + var l = this[i] & 0x3fff; + var h = this[i++] >> 14; + var m = xh * l + h * xl; + l = xl * l + ((m & 0x3fff) << 14) + w[j] + c; + c = (l >> 28) + (m >> 14) + xh * h; + w[j++] = l & 0xfffffff; } return c; } -if(j_lm && (typeof(navigator) !== 'undefined') && (navigator.appName == "Microsoft Internet Explorer")) { +if (j_lm && typeof navigator !== 'undefined' && navigator.appName == 'Microsoft Internet Explorer') { BigInteger.prototype.am = am2; dbits = 30; -} -else if(j_lm && (typeof(navigator) !== 'undefined') && (navigator.appName != "Netscape")) { +} else if (j_lm && typeof navigator !== 'undefined' && navigator.appName != 'Netscape') { BigInteger.prototype.am = am1; dbits = 26; -} -else { // Mozilla/Netscape seems to prefer am3 +} else { + // Mozilla/Netscape seems to prefer am3 BigInteger.prototype.am = am3; dbits = 28; } BigInteger.prototype.DB = dbits; -BigInteger.prototype.DM = ((1<= 0; --i) r[i] = this[i]; + for (var i = this.t - 1; i >= 0; --i) r[i] = this[i]; r.t = this.t; r.s = this.s; } @@ -122,305 +127,374 @@ function bnpCopyTo(r) { // (protected) set from integer value x, -DV <= x < DV function bnpFromInt(x) { this.t = 1; - this.s = (x<0)?-1:0; - if(x > 0) this[0] = x; - else if(x < -1) this[0] = x+this.DV; + this.s = x < 0 ? -1 : 0; + if (x > 0) this[0] = x; + else if (x < -1) this[0] = x + this.DV; else this.t = 0; } // return bigint initialized to value -function nbv(i) { var r = nbi(); r.fromInt(i); return r; } +function nbv(i) { + var r = nbi(); + r.fromInt(i); + return r; +} // (protected) set from string and radix -function bnpFromString(s,b) { +function bnpFromString(s, b) { var k; - if(b == 16) k = 4; - else if(b == 8) k = 3; - else if(b == 256) k = 8; // byte array - else if(b == 2) k = 1; - else if(b == 32) k = 5; - else if(b == 4) k = 2; - else { this.fromRadix(s,b); return; } + if (b == 16) k = 4; + else if (b == 8) k = 3; + else if (b == 256) + k = 8; // byte array + else if (b == 2) k = 1; + else if (b == 32) k = 5; + else if (b == 4) k = 2; + else { + this.fromRadix(s, b); + return; + } this.t = 0; this.s = 0; - var i = s.length, mi = false, sh = 0; - while(--i >= 0) { - var x = (k==8)?s[i]&0xff:intAt(s,i); - if(x < 0) { - if(s.charAt(i) == "-") mi = true; + var i = s.length, + mi = false, + sh = 0; + while (--i >= 0) { + var x = k == 8 ? s[i] & 0xff : intAt(s, i); + if (x < 0) { + if (s.charAt(i) == '-') mi = true; continue; } mi = false; - if(sh == 0) - this[this.t++] = x; - else if(sh+k > this.DB) { - this[this.t-1] |= (x&((1<<(this.DB-sh))-1))<>(this.DB-sh)); - } - else - this[this.t-1] |= x< this.DB) { + this[this.t - 1] |= (x & ((1 << (this.DB - sh)) - 1)) << sh; + this[this.t++] = x >> (this.DB - sh); + } else this[this.t - 1] |= x << sh; sh += k; - if(sh >= this.DB) sh -= this.DB; + if (sh >= this.DB) sh -= this.DB; } - if(k == 8 && (s[0]&0x80) != 0) { + if (k == 8 && (s[0] & 0x80) != 0) { this.s = -1; - if(sh > 0) this[this.t-1] |= ((1<<(this.DB-sh))-1)< 0) this[this.t - 1] |= ((1 << (this.DB - sh)) - 1) << sh; } this.clamp(); - if(mi) ZERO.subTo(this,this); + if (mi) ZERO.subTo(this, this); } // (protected) clamp off excess high words function bnpClamp() { - var c = this.s&this.DM; - while(this.t > 0 && this[this.t-1] == c) --this.t; + var c = this.s & this.DM; + while (this.t > 0 && this[this.t - 1] == c) --this.t; } // (public) return string representation in given radix function bnToString(b) { - if(this.s < 0) return "-"+this.negate().toString(b); + if (this.s < 0) return '-' + this.negate().toString(b); var k; - if(b == 16) k = 4; - else if(b == 8) k = 3; - else if(b == 2) k = 1; - else if(b == 32) k = 5; - else if(b == 4) k = 2; + if (b == 16) k = 4; + else if (b == 8) k = 3; + else if (b == 2) k = 1; + else if (b == 32) k = 5; + else if (b == 4) k = 2; else return this.toRadix(b); - var km = (1< 0) { - if(p < this.DB && (d = this[i]>>p) > 0) { m = true; r = int2char(d); } - while(i >= 0) { - if(p < k) { - d = (this[i]&((1<>(p+=this.DB-k); - } - else { - d = (this[i]>>(p-=k))&km; - if(p <= 0) { p += this.DB; --i; } + var km = (1 << k) - 1, + d, + m = false, + r = '', + i = this.t; + var p = this.DB - ((i * this.DB) % k); + if (i-- > 0) { + if (p < this.DB && (d = this[i] >> p) > 0) { + m = true; + r = int2char(d); + } + while (i >= 0) { + if (p < k) { + d = (this[i] & ((1 << p) - 1)) << (k - p); + d |= this[--i] >> (p += this.DB - k); + } else { + d = (this[i] >> (p -= k)) & km; + if (p <= 0) { + p += this.DB; + --i; + } } - if(d > 0) m = true; - if(m) r += int2char(d); + if (d > 0) m = true; + if (m) r += int2char(d); } } - return m?r:"0"; + return m ? r : '0'; } // (public) -this -function bnNegate() { var r = nbi(); ZERO.subTo(this,r); return r; } +function bnNegate() { + var r = nbi(); + ZERO.subTo(this, r); + return r; +} // (public) |this| -function bnAbs() { return (this.s<0)?this.negate():this; } +function bnAbs() { + return this.s < 0 ? this.negate() : this; +} // (public) return + if this > a, - if this < a, 0 if equal function bnCompareTo(a) { - var r = this.s-a.s; - if(r != 0) return r; + var r = this.s - a.s; + if (r != 0) return r; var i = this.t; - r = i-a.t; - if(r != 0) return (this.s<0)?-r:r; - while(--i >= 0) if((r=this[i]-a[i]) != 0) return r; + r = i - a.t; + if (r != 0) return this.s < 0 ? -r : r; + while (--i >= 0) if ((r = this[i] - a[i]) != 0) return r; return 0; } // returns bit length of the integer x function nbits(x) { - var r = 1, t; - if((t=x>>>16) != 0) { x = t; r += 16; } - if((t=x>>8) != 0) { x = t; r += 8; } - if((t=x>>4) != 0) { x = t; r += 4; } - if((t=x>>2) != 0) { x = t; r += 2; } - if((t=x>>1) != 0) { x = t; r += 1; } + var r = 1, + t; + if ((t = x >>> 16) != 0) { + x = t; + r += 16; + } + if ((t = x >> 8) != 0) { + x = t; + r += 8; + } + if ((t = x >> 4) != 0) { + x = t; + r += 4; + } + if ((t = x >> 2) != 0) { + x = t; + r += 2; + } + if ((t = x >> 1) != 0) { + x = t; + r += 1; + } return r; } // (public) return the number of bits in "this" function bnBitLength() { - if(this.t <= 0) return 0; - return this.DB*(this.t-1)+nbits(this[this.t-1]^(this.s&this.DM)); + if (this.t <= 0) return 0; + return this.DB * (this.t - 1) + nbits(this[this.t - 1] ^ (this.s & this.DM)); } // (protected) r = this << n*DB -function bnpDLShiftTo(n,r) { +function bnpDLShiftTo(n, r) { var i; - for(i = this.t-1; i >= 0; --i) r[i+n] = this[i]; - for(i = n-1; i >= 0; --i) r[i] = 0; - r.t = this.t+n; + for (i = this.t - 1; i >= 0; --i) r[i + n] = this[i]; + for (i = n - 1; i >= 0; --i) r[i] = 0; + r.t = this.t + n; r.s = this.s; } // (protected) r = this >> n*DB -function bnpDRShiftTo(n,r) { - for(var i = n; i < this.t; ++i) r[i-n] = this[i]; - r.t = Math.max(this.t-n,0); +function bnpDRShiftTo(n, r) { + for (var i = n; i < this.t; ++i) r[i - n] = this[i]; + r.t = Math.max(this.t - n, 0); r.s = this.s; } // (protected) r = this << n -function bnpLShiftTo(n,r) { - var bs = n%this.DB; - var cbs = this.DB-bs; - var bm = (1<= 0; --i) { - r[i+ds+1] = (this[i]>>cbs)|c; - c = (this[i]&bm)<= 0; --i) { + r[i + ds + 1] = (this[i] >> cbs) | c; + c = (this[i] & bm) << bs; } - for(i = ds-1; i >= 0; --i) r[i] = 0; + for (i = ds - 1; i >= 0; --i) r[i] = 0; r[ds] = c; - r.t = this.t+ds+1; + r.t = this.t + ds + 1; r.s = this.s; r.clamp(); } // (protected) r = this >> n -function bnpRShiftTo(n,r) { +function bnpRShiftTo(n, r) { r.s = this.s; - var ds = Math.floor(n/this.DB); - if(ds >= this.t) { r.t = 0; return; } - var bs = n%this.DB; - var cbs = this.DB-bs; - var bm = (1<>bs; - for(var i = ds+1; i < this.t; ++i) { - r[i-ds-1] |= (this[i]&bm)<>bs; + var ds = Math.floor(n / this.DB); + if (ds >= this.t) { + r.t = 0; + return; + } + var bs = n % this.DB; + var cbs = this.DB - bs; + var bm = (1 << bs) - 1; + r[0] = this[ds] >> bs; + for (var i = ds + 1; i < this.t; ++i) { + r[i - ds - 1] |= (this[i] & bm) << cbs; + r[i - ds] = this[i] >> bs; } - if(bs > 0) r[this.t-ds-1] |= (this.s&bm)< 0) r[this.t - ds - 1] |= (this.s & bm) << cbs; + r.t = this.t - ds; r.clamp(); } // (protected) r = this - a -function bnpSubTo(a,r) { - var i = 0, c = 0, m = Math.min(a.t,this.t); - while(i < m) { - c += this[i]-a[i]; - r[i++] = c&this.DM; +function bnpSubTo(a, r) { + var i = 0, + c = 0, + m = Math.min(a.t, this.t); + while (i < m) { + c += this[i] - a[i]; + r[i++] = c & this.DM; c >>= this.DB; } - if(a.t < this.t) { + if (a.t < this.t) { c -= a.s; - while(i < this.t) { + while (i < this.t) { c += this[i]; - r[i++] = c&this.DM; + r[i++] = c & this.DM; c >>= this.DB; } c += this.s; - } - else { + } else { c += this.s; - while(i < a.t) { + while (i < a.t) { c -= a[i]; - r[i++] = c&this.DM; + r[i++] = c & this.DM; c >>= this.DB; } c -= a.s; } - r.s = (c<0)?-1:0; - if(c < -1) r[i++] = this.DV+c; - else if(c > 0) r[i++] = c; + r.s = c < 0 ? -1 : 0; + if (c < -1) r[i++] = this.DV + c; + else if (c > 0) r[i++] = c; r.t = i; r.clamp(); } // (protected) r = this * a, r != this,a (HAC 14.12) // "this" should be the larger one if appropriate. -function bnpMultiplyTo(a,r) { - var x = this.abs(), y = a.abs(); +function bnpMultiplyTo(a, r) { + var x = this.abs(), + y = a.abs(); var i = x.t; - r.t = i+y.t; - while(--i >= 0) r[i] = 0; - for(i = 0; i < y.t; ++i) r[i+x.t] = x.am(0,y[i],r,i,0,x.t); + r.t = i + y.t; + while (--i >= 0) r[i] = 0; + for (i = 0; i < y.t; ++i) r[i + x.t] = x.am(0, y[i], r, i, 0, x.t); r.s = 0; r.clamp(); - if(this.s != a.s) ZERO.subTo(r,r); + if (this.s != a.s) ZERO.subTo(r, r); } // (protected) r = this^2, r != this (HAC 14.16) function bnpSquareTo(r) { var x = this.abs(); - var i = r.t = 2*x.t; - while(--i >= 0) r[i] = 0; - for(i = 0; i < x.t-1; ++i) { - var c = x.am(i,x[i],r,2*i,0,1); - if((r[i+x.t]+=x.am(i+1,2*x[i],r,2*i+1,c,x.t-i-1)) >= x.DV) { - r[i+x.t] -= x.DV; - r[i+x.t+1] = 1; + var i = (r.t = 2 * x.t); + while (--i >= 0) r[i] = 0; + for (i = 0; i < x.t - 1; ++i) { + var c = x.am(i, x[i], r, 2 * i, 0, 1); + if ((r[i + x.t] += x.am(i + 1, 2 * x[i], r, 2 * i + 1, c, x.t - i - 1)) >= x.DV) { + r[i + x.t] -= x.DV; + r[i + x.t + 1] = 1; } } - if(r.t > 0) r[r.t-1] += x.am(i,x[i],r,2*i,0,1); + if (r.t > 0) r[r.t - 1] += x.am(i, x[i], r, 2 * i, 0, 1); r.s = 0; r.clamp(); } // (protected) divide this by m, quotient and remainder to q, r (HAC 14.20) // r != q, this != m. q or r may be null. -function bnpDivRemTo(m,q,r) { +function bnpDivRemTo(m, q, r) { var pm = m.abs(); - if(pm.t <= 0) return; + if (pm.t <= 0) return; var pt = this.abs(); - if(pt.t < pm.t) { - if(q != null) q.fromInt(0); - if(r != null) this.copyTo(r); + if (pt.t < pm.t) { + if (q != null) q.fromInt(0); + if (r != null) this.copyTo(r); return; } - if(r == null) r = nbi(); - var y = nbi(), ts = this.s, ms = m.s; - var nsh = this.DB-nbits(pm[pm.t-1]); // normalize modulus - if(nsh > 0) { pm.lShiftTo(nsh,y); pt.lShiftTo(nsh,r); } - else { pm.copyTo(y); pt.copyTo(r); } + if (r == null) r = nbi(); + var y = nbi(), + ts = this.s, + ms = m.s; + var nsh = this.DB - nbits(pm[pm.t - 1]); // normalize modulus + if (nsh > 0) { + pm.lShiftTo(nsh, y); + pt.lShiftTo(nsh, r); + } else { + pm.copyTo(y); + pt.copyTo(r); + } var ys = y.t; - var y0 = y[ys-1]; - if(y0 == 0) return; - var yt = y0*(1<1)?y[ys-2]>>this.F2:0); - var d1 = this.FV/yt, d2 = (1<= 0) { + var y0 = y[ys - 1]; + if (y0 == 0) return; + var yt = y0 * (1 << this.F1) + (ys > 1 ? y[ys - 2] >> this.F2 : 0); + var d1 = this.FV / yt, + d2 = (1 << this.F1) / yt, + e = 1 << this.F2; + var i = r.t, + j = i - ys, + t = q == null ? nbi() : q; + y.dlShiftTo(j, t); + if (r.compareTo(t) >= 0) { r[r.t++] = 1; - r.subTo(t,r); + r.subTo(t, r); } - ONE.dlShiftTo(ys,t); - t.subTo(y,y); // "negative" y so we can replace sub with am later - while(y.t < ys) y[y.t++] = 0; - while(--j >= 0) { + ONE.dlShiftTo(ys, t); + t.subTo(y, y); // "negative" y so we can replace sub with am later + while (y.t < ys) y[y.t++] = 0; + while (--j >= 0) { // Estimate quotient digit - var qd = (r[--i]==y0)?this.DM:Math.floor(r[i]*d1+(r[i-1]+e)*d2); - if((r[i]+=y.am(0,qd,r,j,0,ys)) < qd) { // Try it out - y.dlShiftTo(j,t); - r.subTo(t,r); - while(r[i] < --qd) r.subTo(t,r); + var qd = r[--i] == y0 ? this.DM : Math.floor(r[i] * d1 + (r[i - 1] + e) * d2); + if ((r[i] += y.am(0, qd, r, j, 0, ys)) < qd) { + // Try it out + y.dlShiftTo(j, t); + r.subTo(t, r); + while (r[i] < --qd) r.subTo(t, r); } } - if(q != null) { - r.drShiftTo(ys,q); - if(ts != ms) ZERO.subTo(q,q); + if (q != null) { + r.drShiftTo(ys, q); + if (ts != ms) ZERO.subTo(q, q); } r.t = ys; r.clamp(); - if(nsh > 0) r.rShiftTo(nsh,r); // Denormalize remainder - if(ts < 0) ZERO.subTo(r,r); + if (nsh > 0) r.rShiftTo(nsh, r); // Denormalize remainder + if (ts < 0) ZERO.subTo(r, r); } // (public) this mod a function bnMod(a) { var r = nbi(); - this.abs().divRemTo(a,null,r); - if(this.s < 0 && r.compareTo(ZERO) > 0) a.subTo(r,r); + this.abs().divRemTo(a, null, r); + if (this.s < 0 && r.compareTo(ZERO) > 0) a.subTo(r, r); return r; } // Modular reduction using "classic" algorithm -function Classic(m) { this.m = m; } +function Classic(m) { + this.m = m; +} function cConvert(x) { - if(x.s < 0 || x.compareTo(this.m) >= 0) return x.mod(this.m); + if (x.s < 0 || x.compareTo(this.m) >= 0) return x.mod(this.m); else return x; } -function cRevert(x) { return x; } -function cReduce(x) { x.divRemTo(this.m,null,x); } -function cMulTo(x,y,r) { x.multiplyTo(y,r); this.reduce(r); } -function cSqrTo(x,r) { x.squareTo(r); this.reduce(r); } +function cRevert(x) { + return x; +} +function cReduce(x) { + x.divRemTo(this.m, null, x); +} +function cMulTo(x, y, r) { + x.multiplyTo(y, r); + this.reduce(r); +} +function cSqrTo(x, r) { + x.squareTo(r); + this.reduce(r); +} Classic.prototype.convert = cConvert; Classic.prototype.revert = cRevert; @@ -439,36 +513,36 @@ Classic.prototype.sqrTo = cSqrTo; // should reduce x and y(2-xy) by m^2 at each step to keep size bounded. // JS multiply "overflows" differently from C/C++, so care is needed here. function bnpInvDigit() { - if(this.t < 1) return 0; + if (this.t < 1) return 0; var x = this[0]; - if((x&1) == 0) return 0; - var y = x&3; // y == 1/x mod 2^2 - y = (y*(2-(x&0xf)*y))&0xf; // y == 1/x mod 2^4 - y = (y*(2-(x&0xff)*y))&0xff; // y == 1/x mod 2^8 - y = (y*(2-(((x&0xffff)*y)&0xffff)))&0xffff; // y == 1/x mod 2^16 + if ((x & 1) == 0) return 0; + var y = x & 3; // y == 1/x mod 2^2 + y = (y * (2 - (x & 0xf) * y)) & 0xf; // y == 1/x mod 2^4 + y = (y * (2 - (x & 0xff) * y)) & 0xff; // y == 1/x mod 2^8 + y = (y * (2 - (((x & 0xffff) * y) & 0xffff))) & 0xffff; // y == 1/x mod 2^16 // last step - calculate inverse mod DV directly; // assumes 16 < DB <= 32 and assumes ability to handle 48-bit ints - y = (y*(2-x*y%this.DV))%this.DV; // y == 1/x mod 2^dbits + y = (y * (2 - ((x * y) % this.DV))) % this.DV; // y == 1/x mod 2^dbits // we really want the negative inverse, and -DV < y < DV - return (y>0)?this.DV-y:-y; + return y > 0 ? this.DV - y : -y; } // Montgomery reduction function Montgomery(m) { this.m = m; this.mp = m.invDigit(); - this.mpl = this.mp&0x7fff; - this.mph = this.mp>>15; - this.um = (1<<(m.DB-15))-1; - this.mt2 = 2*m.t; + this.mpl = this.mp & 0x7fff; + this.mph = this.mp >> 15; + this.um = (1 << (m.DB - 15)) - 1; + this.mt2 = 2 * m.t; } // xR mod m function montConvert(x) { var r = nbi(); - x.abs().dlShiftTo(this.m.t,r); - r.divRemTo(this.m,null,r); - if(x.s < 0 && r.compareTo(ZERO) > 0) this.m.subTo(r,r); + x.abs().dlShiftTo(this.m.t, r); + r.divRemTo(this.m, null, r); + if (x.s < 0 && r.compareTo(ZERO) > 0) this.m.subTo(r, r); return r; } @@ -482,28 +556,38 @@ function montRevert(x) { // x = x/R mod m (HAC 14.32) function montReduce(x) { - while(x.t <= this.mt2) // pad x so am has enough room later + while (x.t <= this.mt2) + // pad x so am has enough room later x[x.t++] = 0; - for(var i = 0; i < this.m.t; ++i) { + for (var i = 0; i < this.m.t; ++i) { // faster way of calculating u0 = x[i]*mp mod DV - var j = x[i]&0x7fff; - var u0 = (j*this.mpl+(((j*this.mph+(x[i]>>15)*this.mpl)&this.um)<<15))&x.DM; + var j = x[i] & 0x7fff; + var u0 = (j * this.mpl + (((j * this.mph + (x[i] >> 15) * this.mpl) & this.um) << 15)) & x.DM; // use am to combine the multiply-shift-add into one call - j = i+this.m.t; - x[j] += this.m.am(0,u0,x,i,0,this.m.t); + j = i + this.m.t; + x[j] += this.m.am(0, u0, x, i, 0, this.m.t); // propagate carry - while(x[j] >= x.DV) { x[j] -= x.DV; x[++j]++; } + while (x[j] >= x.DV) { + x[j] -= x.DV; + x[++j]++; + } } x.clamp(); - x.drShiftTo(this.m.t,x); - if(x.compareTo(this.m) >= 0) x.subTo(this.m,x); + x.drShiftTo(this.m.t, x); + if (x.compareTo(this.m) >= 0) x.subTo(this.m, x); } // r = "x^2/R mod m"; x != r -function montSqrTo(x,r) { x.squareTo(r); this.reduce(r); } +function montSqrTo(x, r) { + x.squareTo(r); + this.reduce(r); +} // r = "xy/R mod m"; x,y != r -function montMulTo(x,y,r) { x.multiplyTo(y,r); this.reduce(r); } +function montMulTo(x, y, r) { + x.multiplyTo(y, r); + this.reduce(r); +} Montgomery.prototype.convert = montConvert; Montgomery.prototype.revert = montRevert; @@ -512,29 +596,38 @@ Montgomery.prototype.mulTo = montMulTo; Montgomery.prototype.sqrTo = montSqrTo; // (protected) true iff this is even -function bnpIsEven() { return ((this.t>0)?(this[0]&1):this.s) == 0; } +function bnpIsEven() { + return (this.t > 0 ? this[0] & 1 : this.s) == 0; +} // (protected) this^e, e < 2^32, doing sqr and mul with "r" (HAC 14.79) -function bnpExp(e,z) { - if(e > 0xffffffff || e < 1) return ONE; - var r = nbi(), r2 = nbi(), g = z.convert(this), i = nbits(e)-1; +function bnpExp(e, z) { + if (e > 0xffffffff || e < 1) return ONE; + var r = nbi(), + r2 = nbi(), + g = z.convert(this), + i = nbits(e) - 1; g.copyTo(r); - while(--i >= 0) { - z.sqrTo(r,r2); - if((e&(1< 0) z.mulTo(r2,g,r); - else { var t = r; r = r2; r2 = t; } + while (--i >= 0) { + z.sqrTo(r, r2); + if ((e & (1 << i)) > 0) z.mulTo(r2, g, r); + else { + var t = r; + r = r2; + r2 = t; + } } return z.revert(r); } // (public) this^e % m, 0 <= e < 2^32 -function bnModPowInt(e,m) { +function bnModPowInt(e, m) { var z; - if(e < 256 || m.isEven()) z = new Classic(m); else z = new Montgomery(m); - return this.exp(e,z); + if (e < 256 || m.isEven()) z = new Classic(m); + else z = new Montgomery(m); + return this.exp(e, z); } - // jsbn2 // Extended JavaScript BN functions, required for RSA private ops. @@ -543,171 +636,223 @@ function bnModPowInt(e,m) { // Version 1.2: square() API, isProbablePrime fix // (public) -function bnClone() { var r = nbi(); this.copyTo(r); return r; } +function bnClone() { + var r = nbi(); + this.copyTo(r); + return r; +} // (public) return value as integer function bnIntValue() { - if(this.s < 0) { - if(this.t == 1) return this[0]-this.DV; - else if(this.t == 0) return -1; - } - else if(this.t == 1) return this[0]; - else if(this.t == 0) return 0; + if (this.s < 0) { + if (this.t == 1) return this[0] - this.DV; + else if (this.t == 0) return -1; + } else if (this.t == 1) return this[0]; + else if (this.t == 0) return 0; // assumes 16 < DB < 32 - return ((this[1]&((1<<(32-this.DB))-1))<>24; } +function bnByteValue() { + return this.t == 0 ? this.s : (this[0] << 24) >> 24; +} // (public) return value as short (assumes DB>=16) -function bnShortValue() { return (this.t==0)?this.s:(this[0]<<16)>>16; } +function bnShortValue() { + return this.t == 0 ? this.s : (this[0] << 16) >> 16; +} // (protected) return x s.t. r^x < DV -function bnpChunkSize(r) { return Math.floor(Math.LN2*this.DB/Math.log(r)); } +function bnpChunkSize(r) { + return Math.floor((Math.LN2 * this.DB) / Math.log(r)); +} // (public) 0 if this == 0, 1 if this > 0 function bnSigNum() { - if(this.s < 0) return -1; - else if(this.t <= 0 || (this.t == 1 && this[0] <= 0)) return 0; + if (this.s < 0) return -1; + else if (this.t <= 0 || (this.t == 1 && this[0] <= 0)) return 0; else return 1; } // (protected) convert to radix string function bnpToRadix(b) { - if(b == null) b = 10; - if(this.signum() == 0 || b < 2 || b > 36) return "0"; + if (b == null) b = 10; + if (this.signum() == 0 || b < 2 || b > 36) return '0'; var cs = this.chunkSize(b); - var a = Math.pow(b,cs); - var d = nbv(a), y = nbi(), z = nbi(), r = ""; - this.divRemTo(d,y,z); - while(y.signum() > 0) { - r = (a+z.intValue()).toString(b).substr(1) + r; - y.divRemTo(d,y,z); + var a = Math.pow(b, cs); + var d = nbv(a), + y = nbi(), + z = nbi(), + r = ''; + this.divRemTo(d, y, z); + while (y.signum() > 0) { + r = (a + z.intValue()).toString(b).substr(1) + r; + y.divRemTo(d, y, z); } return z.intValue().toString(b) + r; } // (protected) convert from radix string -function bnpFromRadix(s,b) { +function bnpFromRadix(s, b) { this.fromInt(0); - if(b == null) b = 10; + if (b == null) b = 10; var cs = this.chunkSize(b); - var d = Math.pow(b,cs), mi = false, j = 0, w = 0; - for(var i = 0; i < s.length; ++i) { - var x = intAt(s,i); - if(x < 0) { - if(s.charAt(i) == "-" && this.signum() == 0) mi = true; + var d = Math.pow(b, cs), + mi = false, + j = 0, + w = 0; + for (var i = 0; i < s.length; ++i) { + var x = intAt(s, i); + if (x < 0) { + if (s.charAt(i) == '-' && this.signum() == 0) mi = true; continue; } - w = b*w+x; - if(++j >= cs) { + w = b * w + x; + if (++j >= cs) { this.dMultiply(d); - this.dAddOffset(w,0); + this.dAddOffset(w, 0); j = 0; w = 0; } } - if(j > 0) { - this.dMultiply(Math.pow(b,j)); - this.dAddOffset(w,0); + if (j > 0) { + this.dMultiply(Math.pow(b, j)); + this.dAddOffset(w, 0); } - if(mi) ZERO.subTo(this,this); + if (mi) ZERO.subTo(this, this); } // (protected) alternate constructor -function bnpFromNumber(a,b,c) { - if("number" == typeof b) { +function bnpFromNumber(a, b, c) { + if ('number' == typeof b) { // new BigInteger(int,int,RNG) - if(a < 2) this.fromInt(1); + if (a < 2) this.fromInt(1); else { - this.fromNumber(a,c); - if(!this.testBit(a-1)) // force MSB set - this.bitwiseTo(ONE.shiftLeft(a-1),op_or,this); - if(this.isEven()) this.dAddOffset(1,0); // force odd - while(!this.isProbablePrime(b)) { - this.dAddOffset(2,0); - if(this.bitLength() > a) this.subTo(ONE.shiftLeft(a-1),this); + this.fromNumber(a, c); + if (!this.testBit(a - 1)) + // force MSB set + this.bitwiseTo(ONE.shiftLeft(a - 1), op_or, this); + if (this.isEven()) this.dAddOffset(1, 0); // force odd + while (!this.isProbablePrime(b)) { + this.dAddOffset(2, 0); + if (this.bitLength() > a) this.subTo(ONE.shiftLeft(a - 1), this); } } - } - else { + } else { // new BigInteger(int,RNG) - var x = new Array(), t = a&7; - x.length = (a>>3)+1; + var x = new Array(), + t = a & 7; + x.length = (a >> 3) + 1; b.nextBytes(x); - if(t > 0) x[0] &= ((1< 0) x[0] &= (1 << t) - 1; + else x[0] = 0; + this.fromString(x, 256); } } // (public) convert to bigendian byte array function bnToByteArray() { - var i = this.t, r = new Array(); + var i = this.t, + r = new Array(); r[0] = this.s; - var p = this.DB-(i*this.DB)%8, d, k = 0; - if(i-- > 0) { - if(p < this.DB && (d = this[i]>>p) != (this.s&this.DM)>>p) - r[k++] = d|(this.s<<(this.DB-p)); - while(i >= 0) { - if(p < 8) { - d = (this[i]&((1<>(p+=this.DB-8); - } - else { - d = (this[i]>>(p-=8))&0xff; - if(p <= 0) { p += this.DB; --i; } + var p = this.DB - ((i * this.DB) % 8), + d, + k = 0; + if (i-- > 0) { + if (p < this.DB && (d = this[i] >> p) != (this.s & this.DM) >> p) r[k++] = d | (this.s << (this.DB - p)); + while (i >= 0) { + if (p < 8) { + d = (this[i] & ((1 << p) - 1)) << (8 - p); + d |= this[--i] >> (p += this.DB - 8); + } else { + d = (this[i] >> (p -= 8)) & 0xff; + if (p <= 0) { + p += this.DB; + --i; + } } - if((d&0x80) != 0) d |= -256; - if(k == 0 && (this.s&0x80) != (d&0x80)) ++k; - if(k > 0 || d != this.s) r[k++] = d; + if ((d & 0x80) != 0) d |= -256; + if (k == 0 && (this.s & 0x80) != (d & 0x80)) ++k; + if (k > 0 || d != this.s) r[k++] = d; } } return r; } -function bnEquals(a) { return(this.compareTo(a)==0); } -function bnMin(a) { return(this.compareTo(a)<0)?this:a; } -function bnMax(a) { return(this.compareTo(a)>0)?this:a; } +function bnEquals(a) { + return this.compareTo(a) == 0; +} +function bnMin(a) { + return this.compareTo(a) < 0 ? this : a; +} +function bnMax(a) { + return this.compareTo(a) > 0 ? this : a; +} // (protected) r = this op a (bitwise) -function bnpBitwiseTo(a,op,r) { - var i, f, m = Math.min(a.t,this.t); - for(i = 0; i < m; ++i) r[i] = op(this[i],a[i]); - if(a.t < this.t) { - f = a.s&this.DM; - for(i = m; i < this.t; ++i) r[i] = op(this[i],f); +function bnpBitwiseTo(a, op, r) { + var i, + f, + m = Math.min(a.t, this.t); + for (i = 0; i < m; ++i) r[i] = op(this[i], a[i]); + if (a.t < this.t) { + f = a.s & this.DM; + for (i = m; i < this.t; ++i) r[i] = op(this[i], f); r.t = this.t; - } - else { - f = this.s&this.DM; - for(i = m; i < a.t; ++i) r[i] = op(f,a[i]); + } else { + f = this.s & this.DM; + for (i = m; i < a.t; ++i) r[i] = op(f, a[i]); r.t = a.t; } - r.s = op(this.s,a.s); + r.s = op(this.s, a.s); r.clamp(); } // (public) this & a -function op_and(x,y) { return x&y; } -function bnAnd(a) { var r = nbi(); this.bitwiseTo(a,op_and,r); return r; } +function op_and(x, y) { + return x & y; +} +function bnAnd(a) { + var r = nbi(); + this.bitwiseTo(a, op_and, r); + return r; +} // (public) this | a -function op_or(x,y) { return x|y; } -function bnOr(a) { var r = nbi(); this.bitwiseTo(a,op_or,r); return r; } +function op_or(x, y) { + return x | y; +} +function bnOr(a) { + var r = nbi(); + this.bitwiseTo(a, op_or, r); + return r; +} // (public) this ^ a -function op_xor(x,y) { return x^y; } -function bnXor(a) { var r = nbi(); this.bitwiseTo(a,op_xor,r); return r; } +function op_xor(x, y) { + return x ^ y; +} +function bnXor(a) { + var r = nbi(); + this.bitwiseTo(a, op_xor, r); + return r; +} // (public) this & ~a -function op_andnot(x,y) { return x&~y; } -function bnAndNot(a) { var r = nbi(); this.bitwiseTo(a,op_andnot,r); return r; } +function op_andnot(x, y) { + return x & ~y; +} +function bnAndNot(a) { + var r = nbi(); + this.bitwiseTo(a, op_andnot, r); + return r; +} // (public) ~this function bnNot() { var r = nbi(); - for(var i = 0; i < this.t; ++i) r[i] = this.DM&~this[i]; + for (var i = 0; i < this.t; ++i) r[i] = this.DM & ~this[i]; r.t = this.t; r.s = ~this.s; return r; @@ -716,156 +861,211 @@ function bnNot() { // (public) this << n function bnShiftLeft(n) { var r = nbi(); - if(n < 0) this.rShiftTo(-n,r); else this.lShiftTo(n,r); + if (n < 0) this.rShiftTo(-n, r); + else this.lShiftTo(n, r); return r; } // (public) this >> n function bnShiftRight(n) { var r = nbi(); - if(n < 0) this.lShiftTo(-n,r); else this.rShiftTo(n,r); + if (n < 0) this.lShiftTo(-n, r); + else this.rShiftTo(n, r); return r; } // return index of lowest 1-bit in x, x < 2^31 function lbit(x) { - if(x == 0) return -1; + if (x == 0) return -1; var r = 0; - if((x&0xffff) == 0) { x >>= 16; r += 16; } - if((x&0xff) == 0) { x >>= 8; r += 8; } - if((x&0xf) == 0) { x >>= 4; r += 4; } - if((x&3) == 0) { x >>= 2; r += 2; } - if((x&1) == 0) ++r; + if ((x & 0xffff) == 0) { + x >>= 16; + r += 16; + } + if ((x & 0xff) == 0) { + x >>= 8; + r += 8; + } + if ((x & 0xf) == 0) { + x >>= 4; + r += 4; + } + if ((x & 3) == 0) { + x >>= 2; + r += 2; + } + if ((x & 1) == 0) ++r; return r; } // (public) returns index of lowest 1-bit (or -1 if none) function bnGetLowestSetBit() { - for(var i = 0; i < this.t; ++i) - if(this[i] != 0) return i*this.DB+lbit(this[i]); - if(this.s < 0) return this.t*this.DB; + for (var i = 0; i < this.t; ++i) if (this[i] != 0) return i * this.DB + lbit(this[i]); + if (this.s < 0) return this.t * this.DB; return -1; } // return number of 1 bits in x function cbit(x) { var r = 0; - while(x != 0) { x &= x-1; ++r; } + while (x != 0) { + x &= x - 1; + ++r; + } return r; } // (public) return number of set bits function bnBitCount() { - var r = 0, x = this.s&this.DM; - for(var i = 0; i < this.t; ++i) r += cbit(this[i]^x); + var r = 0, + x = this.s & this.DM; + for (var i = 0; i < this.t; ++i) r += cbit(this[i] ^ x); return r; } // (public) true iff nth bit is set function bnTestBit(n) { - var j = Math.floor(n/this.DB); - if(j >= this.t) return(this.s!=0); - return((this[j]&(1<<(n%this.DB)))!=0); + var j = Math.floor(n / this.DB); + if (j >= this.t) return this.s != 0; + return (this[j] & (1 << (n % this.DB))) != 0; } // (protected) this op (1<>= this.DB; } - if(a.t < this.t) { + if (a.t < this.t) { c += a.s; - while(i < this.t) { + while (i < this.t) { c += this[i]; - r[i++] = c&this.DM; + r[i++] = c & this.DM; c >>= this.DB; } c += this.s; - } - else { + } else { c += this.s; - while(i < a.t) { + while (i < a.t) { c += a[i]; - r[i++] = c&this.DM; + r[i++] = c & this.DM; c >>= this.DB; } c += a.s; } - r.s = (c<0)?-1:0; - if(c > 0) r[i++] = c; - else if(c < -1) r[i++] = this.DV+c; + r.s = c < 0 ? -1 : 0; + if (c > 0) r[i++] = c; + else if (c < -1) r[i++] = this.DV + c; r.t = i; r.clamp(); } // (public) this + a -function bnAdd(a) { var r = nbi(); this.addTo(a,r); return r; } +function bnAdd(a) { + var r = nbi(); + this.addTo(a, r); + return r; +} // (public) this - a -function bnSubtract(a) { var r = nbi(); this.subTo(a,r); return r; } +function bnSubtract(a) { + var r = nbi(); + this.subTo(a, r); + return r; +} // (public) this * a -function bnMultiply(a) { var r = nbi(); this.multiplyTo(a,r); return r; } +function bnMultiply(a) { + var r = nbi(); + this.multiplyTo(a, r); + return r; +} // (public) this^2 -function bnSquare() { var r = nbi(); this.squareTo(r); return r; } +function bnSquare() { + var r = nbi(); + this.squareTo(r); + return r; +} // (public) this / a -function bnDivide(a) { var r = nbi(); this.divRemTo(a,r,null); return r; } +function bnDivide(a) { + var r = nbi(); + this.divRemTo(a, r, null); + return r; +} // (public) this % a -function bnRemainder(a) { var r = nbi(); this.divRemTo(a,null,r); return r; } +function bnRemainder(a) { + var r = nbi(); + this.divRemTo(a, null, r); + return r; +} // (public) [this/a,this%a] function bnDivideAndRemainder(a) { - var q = nbi(), r = nbi(); - this.divRemTo(a,q,r); - return new Array(q,r); + var q = nbi(), + r = nbi(); + this.divRemTo(a, q, r); + return new Array(q, r); } // (protected) this *= n, this >= 0, 1 < n < DV function bnpDMultiply(n) { - this[this.t] = this.am(0,n-1,this,0,0,this.t); + this[this.t] = this.am(0, n - 1, this, 0, 0, this.t); ++this.t; this.clamp(); } // (protected) this += n << w words, this >= 0 -function bnpDAddOffset(n,w) { - if(n == 0) return; - while(this.t <= w) this[this.t++] = 0; +function bnpDAddOffset(n, w) { + if (n == 0) return; + while (this.t <= w) this[this.t++] = 0; this[w] += n; - while(this[w] >= this.DV) { + while (this[w] >= this.DV) { this[w] -= this.DV; - if(++w >= this.t) this[this.t++] = 0; + if (++w >= this.t) this[this.t++] = 0; ++this[w]; } } // A "null" reducer function NullExp() {} -function nNop(x) { return x; } -function nMulTo(x,y,r) { x.multiplyTo(y,r); } -function nSqrTo(x,r) { x.squareTo(r); } +function nNop(x) { + return x; +} +function nMulTo(x, y, r) { + x.multiplyTo(y, r); +} +function nSqrTo(x, r) { + x.squareTo(r); +} NullExp.prototype.convert = nNop; NullExp.prototype.revert = nNop; @@ -873,32 +1073,33 @@ NullExp.prototype.mulTo = nMulTo; NullExp.prototype.sqrTo = nSqrTo; // (public) this^e -function bnPow(e) { return this.exp(e,new NullExp()); } +function bnPow(e) { + return this.exp(e, new NullExp()); +} // (protected) r = lower n words of "this * a", a.t <= n // "this" should be the larger one if appropriate. -function bnpMultiplyLowerTo(a,n,r) { - var i = Math.min(this.t+a.t,n); +function bnpMultiplyLowerTo(a, n, r) { + var i = Math.min(this.t + a.t, n); r.s = 0; // assumes a,this >= 0 r.t = i; - while(i > 0) r[--i] = 0; + while (i > 0) r[--i] = 0; var j; - for(j = r.t-this.t; i < j; ++i) r[i+this.t] = this.am(0,a[i],r,i,0,this.t); - for(j = Math.min(a.t,n); i < j; ++i) this.am(0,a[i],r,i,0,n-i); + for (j = r.t - this.t; i < j; ++i) r[i + this.t] = this.am(0, a[i], r, i, 0, this.t); + for (j = Math.min(a.t, n); i < j; ++i) this.am(0, a[i], r, i, 0, n - i); r.clamp(); } // (protected) r = "this * a" without lower n words, n > 0 // "this" should be the larger one if appropriate. -function bnpMultiplyUpperTo(a,n,r) { +function bnpMultiplyUpperTo(a, n, r) { --n; - var i = r.t = this.t+a.t-n; + var i = (r.t = this.t + a.t - n); r.s = 0; // assumes a,this >= 0 - while(--i >= 0) r[i] = 0; - for(i = Math.max(n-this.t,0); i < a.t; ++i) - r[this.t+i-n] = this.am(n-i,a[i],r,0,0,this.t+i-n); + while (--i >= 0) r[i] = 0; + for (i = Math.max(n - this.t, 0); i < a.t; ++i) r[this.t + i - n] = this.am(n - i, a[i], r, 0, 0, this.t + i - n); r.clamp(); - r.drShiftTo(1,r); + r.drShiftTo(1, r); } // Barrett modular reduction @@ -906,35 +1107,51 @@ function Barrett(m) { // setup Barrett this.r2 = nbi(); this.q3 = nbi(); - ONE.dlShiftTo(2*m.t,this.r2); + ONE.dlShiftTo(2 * m.t, this.r2); this.mu = this.r2.divide(m); this.m = m; } function barrettConvert(x) { - if(x.s < 0 || x.t > 2*this.m.t) return x.mod(this.m); - else if(x.compareTo(this.m) < 0) return x; - else { var r = nbi(); x.copyTo(r); this.reduce(r); return r; } + if (x.s < 0 || x.t > 2 * this.m.t) return x.mod(this.m); + else if (x.compareTo(this.m) < 0) return x; + else { + var r = nbi(); + x.copyTo(r); + this.reduce(r); + return r; + } } -function barrettRevert(x) { return x; } +function barrettRevert(x) { + return x; +} // x = x mod m (HAC 14.42) function barrettReduce(x) { - x.drShiftTo(this.m.t-1,this.r2); - if(x.t > this.m.t+1) { x.t = this.m.t+1; x.clamp(); } - this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3); - this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2); - while(x.compareTo(this.r2) < 0) x.dAddOffset(1,this.m.t+1); - x.subTo(this.r2,x); - while(x.compareTo(this.m) >= 0) x.subTo(this.m,x); + x.drShiftTo(this.m.t - 1, this.r2); + if (x.t > this.m.t + 1) { + x.t = this.m.t + 1; + x.clamp(); + } + this.mu.multiplyUpperTo(this.r2, this.m.t + 1, this.q3); + this.m.multiplyLowerTo(this.q3, this.m.t + 1, this.r2); + while (x.compareTo(this.r2) < 0) x.dAddOffset(1, this.m.t + 1); + x.subTo(this.r2, x); + while (x.compareTo(this.m) >= 0) x.subTo(this.m, x); } // r = x^2 mod m; x != r -function barrettSqrTo(x,r) { x.squareTo(r); this.reduce(r); } +function barrettSqrTo(x, r) { + x.squareTo(r); + this.reduce(r); +} // r = x*y mod m; x,y != r -function barrettMulTo(x,y,r) { x.multiplyTo(y,r); this.reduce(r); } +function barrettMulTo(x, y, r) { + x.multiplyTo(y, r); + this.reduce(r); +} Barrett.prototype.convert = barrettConvert; Barrett.prototype.revert = barrettRevert; @@ -943,59 +1160,87 @@ Barrett.prototype.mulTo = barrettMulTo; Barrett.prototype.sqrTo = barrettSqrTo; // (public) this^e % m (HAC 14.85) -function bnModPow(e,m) { - var i = e.bitLength(), k, r = nbv(1), z; - if(i <= 0) return r; - else if(i < 18) k = 1; - else if(i < 48) k = 3; - else if(i < 144) k = 4; - else if(i < 768) k = 5; +function bnModPow(e, m) { + var i = e.bitLength(), + k, + r = nbv(1), + z; + if (i <= 0) return r; + else if (i < 18) k = 1; + else if (i < 48) k = 3; + else if (i < 144) k = 4; + else if (i < 768) k = 5; else k = 6; - if(i < 8) - z = new Classic(m); - else if(m.isEven()) - z = new Barrett(m); - else - z = new Montgomery(m); + if (i < 8) z = new Classic(m); + else if (m.isEven()) z = new Barrett(m); + else z = new Montgomery(m); // precomputation - var g = new Array(), n = 3, k1 = k-1, km = (1< 1) { + if (k > 1) { var g2 = nbi(); - z.sqrTo(g[1],g2); - while(n <= km) { + z.sqrTo(g[1], g2); + while (n <= km) { g[n] = nbi(); - z.mulTo(g2,g[n-2],g[n]); + z.mulTo(g2, g[n - 2], g[n]); n += 2; } } - var j = e.t-1, w, is1 = true, r2 = nbi(), t; - i = nbits(e[j])-1; - while(j >= 0) { - if(i >= k1) w = (e[j]>>(i-k1))&km; + var j = e.t - 1, + w, + is1 = true, + r2 = nbi(), + t; + i = nbits(e[j]) - 1; + while (j >= 0) { + if (i >= k1) w = (e[j] >> (i - k1)) & km; else { - w = (e[j]&((1<<(i+1))-1))<<(k1-i); - if(j > 0) w |= e[j-1]>>(this.DB+i-k1); + w = (e[j] & ((1 << (i + 1)) - 1)) << (k1 - i); + if (j > 0) w |= e[j - 1] >> (this.DB + i - k1); } n = k; - while((w&1) == 0) { w >>= 1; --n; } - if((i -= n) < 0) { i += this.DB; --j; } - if(is1) { // ret == 1, don't bother squaring or multiplying it + while ((w & 1) == 0) { + w >>= 1; + --n; + } + if ((i -= n) < 0) { + i += this.DB; + --j; + } + if (is1) { + // ret == 1, don't bother squaring or multiplying it g[w].copyTo(r); is1 = false; - } - else { - while(n > 1) { z.sqrTo(r,r2); z.sqrTo(r2,r); n -= 2; } - if(n > 0) z.sqrTo(r,r2); else { t = r; r = r2; r2 = t; } - z.mulTo(r2,g[w],r); + } else { + while (n > 1) { + z.sqrTo(r, r2); + z.sqrTo(r2, r); + n -= 2; + } + if (n > 0) z.sqrTo(r, r2); + else { + t = r; + r = r2; + r2 = t; + } + z.mulTo(r2, g[w], r); } - while(j >= 0 && (e[j]&(1<= 0 && (e[j] & (1 << i)) == 0) { + z.sqrTo(r, r2); + t = r; + r = r2; + r2 = t; + if (--i < 0) { + i = this.DB - 1; + --j; + } } } return z.revert(r); @@ -1003,102 +1248,126 @@ function bnModPow(e,m) { // (public) gcd(this,a) (HAC 14.54) function bnGCD(a) { - var x = (this.s<0)?this.negate():this.clone(); - var y = (a.s<0)?a.negate():a.clone(); - if(x.compareTo(y) < 0) { var t = x; x = y; y = t; } - var i = x.getLowestSetBit(), g = y.getLowestSetBit(); - if(g < 0) return x; - if(i < g) g = i; - if(g > 0) { - x.rShiftTo(g,x); - y.rShiftTo(g,y); + var x = this.s < 0 ? this.negate() : this.clone(); + var y = a.s < 0 ? a.negate() : a.clone(); + if (x.compareTo(y) < 0) { + var t = x; + x = y; + y = t; } - while(x.signum() > 0) { - if((i = x.getLowestSetBit()) > 0) x.rShiftTo(i,x); - if((i = y.getLowestSetBit()) > 0) y.rShiftTo(i,y); - if(x.compareTo(y) >= 0) { - x.subTo(y,x); - x.rShiftTo(1,x); - } - else { - y.subTo(x,y); - y.rShiftTo(1,y); + var i = x.getLowestSetBit(), + g = y.getLowestSetBit(); + if (g < 0) return x; + if (i < g) g = i; + if (g > 0) { + x.rShiftTo(g, x); + y.rShiftTo(g, y); + } + while (x.signum() > 0) { + if ((i = x.getLowestSetBit()) > 0) x.rShiftTo(i, x); + if ((i = y.getLowestSetBit()) > 0) y.rShiftTo(i, y); + if (x.compareTo(y) >= 0) { + x.subTo(y, x); + x.rShiftTo(1, x); + } else { + y.subTo(x, y); + y.rShiftTo(1, y); } } - if(g > 0) y.lShiftTo(g,y); + if (g > 0) y.lShiftTo(g, y); return y; } // (protected) this % n, n < 2^26 function bnpModInt(n) { - if(n <= 0) return 0; - var d = this.DV%n, r = (this.s<0)?n-1:0; - if(this.t > 0) - if(d == 0) r = this[0]%n; - else for(var i = this.t-1; i >= 0; --i) r = (d*r+this[i])%n; + if (n <= 0) return 0; + var d = this.DV % n, + r = this.s < 0 ? n - 1 : 0; + if (this.t > 0) + if (d == 0) r = this[0] % n; + else for (var i = this.t - 1; i >= 0; --i) r = (d * r + this[i]) % n; return r; } // (public) 1/this % m (HAC 14.61) function bnModInverse(m) { var ac = m.isEven(); - if((this.isEven() && ac) || m.signum() == 0) return ZERO; - var u = m.clone(), v = this.clone(); - var a = nbv(1), b = nbv(0), c = nbv(0), d = nbv(1); - while(u.signum() != 0) { - while(u.isEven()) { - u.rShiftTo(1,u); - if(ac) { - if(!a.isEven() || !b.isEven()) { a.addTo(this,a); b.subTo(m,b); } - a.rShiftTo(1,a); - } - else if(!b.isEven()) b.subTo(m,b); - b.rShiftTo(1,b); - } - while(v.isEven()) { - v.rShiftTo(1,v); - if(ac) { - if(!c.isEven() || !d.isEven()) { c.addTo(this,c); d.subTo(m,d); } - c.rShiftTo(1,c); - } - else if(!d.isEven()) d.subTo(m,d); - d.rShiftTo(1,d); + if ((this.isEven() && ac) || m.signum() == 0) return ZERO; + var u = m.clone(), + v = this.clone(); + var a = nbv(1), + b = nbv(0), + c = nbv(0), + d = nbv(1); + while (u.signum() != 0) { + while (u.isEven()) { + u.rShiftTo(1, u); + if (ac) { + if (!a.isEven() || !b.isEven()) { + a.addTo(this, a); + b.subTo(m, b); + } + a.rShiftTo(1, a); + } else if (!b.isEven()) b.subTo(m, b); + b.rShiftTo(1, b); } - if(u.compareTo(v) >= 0) { - u.subTo(v,u); - if(ac) a.subTo(c,a); - b.subTo(d,b); + while (v.isEven()) { + v.rShiftTo(1, v); + if (ac) { + if (!c.isEven() || !d.isEven()) { + c.addTo(this, c); + d.subTo(m, d); + } + c.rShiftTo(1, c); + } else if (!d.isEven()) d.subTo(m, d); + d.rShiftTo(1, d); } - else { - v.subTo(u,v); - if(ac) c.subTo(a,c); - d.subTo(b,d); + if (u.compareTo(v) >= 0) { + u.subTo(v, u); + if (ac) a.subTo(c, a); + b.subTo(d, b); + } else { + v.subTo(u, v); + if (ac) c.subTo(a, c); + d.subTo(b, d); } } - if(v.compareTo(ONE) != 0) return ZERO; - if(d.compareTo(m) >= 0) return d.subtract(m); - if(d.signum() < 0) d.addTo(m,d); else return d; - if(d.signum() < 0) return d.add(m); else return d; -} - -var lowprimes = [2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997]; -var lplim = (1<<26)/lowprimes[lowprimes.length-1]; + if (v.compareTo(ONE) != 0) return ZERO; + if (d.compareTo(m) >= 0) return d.subtract(m); + if (d.signum() < 0) d.addTo(m, d); + else return d; + if (d.signum() < 0) return d.add(m); + else return d; +} + +var lowprimes = [ + 2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97, 101, 103, 107, 109, + 113, 127, 131, 137, 139, 149, 151, 157, 163, 167, 173, 179, 181, 191, 193, 197, 199, 211, 223, 227, 229, 233, 239, + 241, 251, 257, 263, 269, 271, 277, 281, 283, 293, 307, 311, 313, 317, 331, 337, 347, 349, 353, 359, 367, 373, 379, + 383, 389, 397, 401, 409, 419, 421, 431, 433, 439, 443, 449, 457, 461, 463, 467, 479, 487, 491, 499, 503, 509, 521, + 523, 541, 547, 557, 563, 569, 571, 577, 587, 593, 599, 601, 607, 613, 617, 619, 631, 641, 643, 647, 653, 659, 661, + 673, 677, 683, 691, 701, 709, 719, 727, 733, 739, 743, 751, 757, 761, 769, 773, 787, 797, 809, 811, 821, 823, 827, + 829, 839, 853, 857, 859, 863, 877, 881, 883, 887, 907, 911, 919, 929, 937, 941, 947, 953, 967, 971, 977, 983, 991, + 997, +]; +var lplim = (1 << 26) / lowprimes[lowprimes.length - 1]; // (public) test primality with certainty >= 1-.5^t function bnIsProbablePrime(t) { - var i, x = this.abs(); - if(x.t == 1 && x[0] <= lowprimes[lowprimes.length-1]) { - for(i = 0; i < lowprimes.length; ++i) - if(x[0] == lowprimes[i]) return true; + var i, + x = this.abs(); + if (x.t == 1 && x[0] <= lowprimes[lowprimes.length - 1]) { + for (i = 0; i < lowprimes.length; ++i) if (x[0] == lowprimes[i]) return true; return false; } - if(x.isEven()) return false; + if (x.isEven()) return false; i = 1; - while(i < lowprimes.length) { - var m = lowprimes[i], j = i+1; - while(j < lowprimes.length && m < lplim) m *= lowprimes[j++]; + while (i < lowprimes.length) { + var m = lowprimes[i], + j = i + 1; + while (j < lowprimes.length && m < lplim) m *= lowprimes[j++]; m = x.modInt(m); - while(i < j) if(m%lowprimes[i++] == 0) return false; + while (i < j) if (m % lowprimes[i++] == 0) return false; } return x.millerRabin(t); } @@ -1107,28 +1376,27 @@ function bnIsProbablePrime(t) { function bnpMillerRabin(t) { var n1 = this.subtract(ONE); var k = n1.getLowestSetBit(); - if(k <= 0) return false; + if (k <= 0) return false; var r = n1.shiftRight(k); - t = (t+1)>>1; - if(t > lowprimes.length) t = lowprimes.length; + t = (t + 1) >> 1; + if (t > lowprimes.length) t = lowprimes.length; var a = nbi(); - for(var i = 0; i < t; ++i) { + for (var i = 0; i < t; ++i) { //Pick bases at random, instead of starting at 2 - a.fromInt(lowprimes[Math.floor(Math.random()*lowprimes.length)]); - var y = a.modPow(r,this); - if(y.compareTo(ONE) != 0 && y.compareTo(n1) != 0) { + a.fromInt(lowprimes[Math.floor(Math.random() * lowprimes.length)]); + var y = a.modPow(r, this); + if (y.compareTo(ONE) != 0 && y.compareTo(n1) != 0) { var j = 1; - while(j++ < k && y.compareTo(n1) != 0) { - y = y.modPowInt(2,this); - if(y.compareTo(ONE) == 0) return false; + while (j++ < k && y.compareTo(n1) != 0) { + y = y.modPowInt(2, this); + if (y.compareTo(ONE) == 0) return false; } - if(y.compareTo(n1) != 0) return false; + if (y.compareTo(n1) != 0) return false; } } return true; } - // protected BigInteger.prototype.copyTo = bnpCopyTo; BigInteger.prototype.fromInt = bnpFromInt; diff --git a/keeperapi/src/browser/platform.ts b/keeperapi/src/browser/platform.ts index 2b33aac..ee31c3e 100644 --- a/keeperapi/src/browser/platform.ts +++ b/keeperapi/src/browser/platform.ts @@ -6,40 +6,39 @@ import { LogOptions, Platform, UnwrapKeyMap, - UnwrappedKeyType -} from '../platform' -import {_asnhex_getHexOfV_AtObj, _asnhex_getPosArrayOfChildren_AtObj} from "./asn1hex"; -import {RSAKey} from "./rsa"; -import {getKeeperKeys, getKeeperMlKemKeys} from "../transmissionKeys"; -import {normal64, normal64Bytes, webSafe64FromBytes} from "../utils"; -import {SocketProxy, socketSendMessage} from '../socket' -import * as asmCrypto from 'asmcrypto.js' -import type {KeeperHttpResponse} from "../commands"; + UnwrappedKeyType, +} from '../platform'; +import { _asnhex_getHexOfV_AtObj, _asnhex_getPosArrayOfChildren_AtObj } from './asn1hex'; +import { RSAKey } from './rsa'; +import { getKeeperKeys, getKeeperMlKemKeys } from '../transmissionKeys'; +import { normal64, normal64Bytes, webSafe64FromBytes } from '../utils'; +import { SocketProxy, socketSendMessage } from '../socket'; +import * as asmCrypto from 'asmcrypto.js'; +import type { KeeperHttpResponse } from '../commands'; import { CryptoResults, CryptoWorker, CryptoWorkerMessage, CryptoWorkerPool, - CryptoWorkerPoolConfig + CryptoWorkerPoolConfig, } from '../cryptoWorker'; -const rsaAlgorithmName: string = "RSASSA-PKCS1-v1_5"; -const CBC_IV_LENGTH = 16 -const GCM_IV_LENGTH = 12 -const ECC_PUB_KEY_LENGTH = 65 -let socket: WebSocket | null = null -let workerPool: CryptoWorkerPool | null = null +const rsaAlgorithmName: string = 'RSASSA-PKCS1-v1_5'; +const CBC_IV_LENGTH = 16; +const GCM_IV_LENGTH = 12; +const ECC_PUB_KEY_LENGTH = 65; +let socket: WebSocket | null = null; +let workerPool: CryptoWorkerPool | null = null; const base64ToBytes = (data: string): Uint8Array => { - return Uint8Array.from(atob(data), c => c.charCodeAt(0)) -} + return Uint8Array.from(atob(data), (c) => c.charCodeAt(0)); +}; export const browserPlatform: Platform = class { - - static supportsConcurrency: boolean = true + static supportsConcurrency: boolean = true; + + static base64ToBytes = base64ToBytes; - static base64ToBytes = base64ToBytes - static normal64Bytes(source: string): Uint8Array { return base64ToBytes(normal64(source)); } @@ -50,25 +49,25 @@ export const browserPlatform: Platform = class { static getRandomBytes(length: number): Uint8Array { let data = new Uint8Array(length); crypto.getRandomValues(data); - return data + return data; } static bytesToBase64(data: Uint8Array): string { - const chunkSize = 0x10000 + const chunkSize = 0x10000; if (data.length <= chunkSize) { // @ts-ignore - return btoa(String.fromCharCode(...data)) + return btoa(String.fromCharCode(...data)); } - let chunks: string = '' + let chunks: string = ''; for (let i = 0; i < data.length; i = i + chunkSize) { // @ts-ignore - chunks = chunks + String.fromCharCode(...data.slice(i, i + chunkSize)) + chunks = chunks + String.fromCharCode(...data.slice(i, i + chunkSize)); } - return btoa(chunks) - } + return btoa(chunks); + } static bytesToString(data: Uint8Array): string { - return new TextDecoder().decode(data) + return new TextDecoder().decode(data); } static stringToBytes(data: string): Uint8Array { @@ -76,340 +75,399 @@ export const browserPlatform: Platform = class { } static wrapPassword(password: Uint8Array): KeyWrapper { - return KeyWrapper.create(password) + return KeyWrapper.create(password); // TODO const wrappedPassword = await crypto.subtle.importKey("raw", password.asBytes(), "PBKDF2", false, ["deriveBits"]); // return KeyWrapper.create(wrappedPassword) } static unWrapPassword(password: KeyWrapper): Uint8Array { - return password.getKey() + return password.getKey(); } static async importKey(keyId: string, key: Uint8Array, storage?: KeyStorage, canExport?: boolean): Promise { // An AES key for one of our Keeper objects can be used for either CBC or GCM operations. // Since CryptoKeys are bound to a particular algorithm, we need to keep a copy for each. - const extractable = !!canExport - const cbcKey = await this.aesCbcImportKey(key, extractable) - const gcmKey = await this.aesGcmImportKey(key, extractable) - cryptoKeysCache['cbc'][keyId] = cbcKey - cryptoKeysCache['gcm'][keyId] = gcmKey + const extractable = !!canExport; + const cbcKey = await this.aesCbcImportKey(key, extractable); + const gcmKey = await this.aesGcmImportKey(key, extractable); + cryptoKeysCache['cbc'][keyId] = cbcKey; + cryptoKeysCache['gcm'][keyId] = gcmKey; if (storage) { if (storage.saveObject) { - await storage.saveObject(this.getStorageKeyId(keyId, 'cbc'), cbcKey) - await storage.saveObject(this.getStorageKeyId(keyId, 'gcm'), gcmKey) + await storage.saveObject(this.getStorageKeyId(keyId, 'cbc'), cbcKey); + await storage.saveObject(this.getStorageKeyId(keyId, 'gcm'), gcmKey); } else { - await storage.saveKeyBytes(keyId, key) + await storage.saveKeyBytes(keyId, key); } } } - static async importKeyEC(keyId: string, privateKey: Uint8Array, publicKey: Uint8Array, storage?: KeyStorage): Promise { - const key = await this.importPrivateKeyEC(privateKey, publicKey) - cryptoKeysCache['ecc'][keyId] = key + static async importKeyEC( + keyId: string, + privateKey: Uint8Array, + publicKey: Uint8Array, + storage?: KeyStorage + ): Promise { + const key = await this.importPrivateKeyEC(privateKey, publicKey); + cryptoKeysCache['ecc'][keyId] = key; if (storage) { if (storage.saveObject) { - await storage.saveObject(this.getStorageKeyId(keyId, 'ecc'), key) + await storage.saveObject(this.getStorageKeyId(keyId, 'ecc'), key); } else { - const jwk = await crypto.subtle.exportKey('jwk', key) - const keyBytes = this.stringToBytes(JSON.stringify(jwk)) - await storage.saveKeyBytes(keyId, keyBytes) + const jwk = await crypto.subtle.exportKey('jwk', key); + const keyBytes = this.stringToBytes(JSON.stringify(jwk)); + await storage.saveKeyBytes(keyId, keyBytes); } } } static async importKeyRSA(keyId: string, key: Uint8Array, storage?: KeyStorage): Promise { - keyBytesCache[keyId] = key + keyBytesCache[keyId] = key; if (storage) { - await storage.saveKeyBytes(keyId, key) + await storage.saveKeyBytes(keyId, key); } } static unloadKeys(): void { - cryptoKeysCache.cbc = {} - cryptoKeysCache.gcm = {} - cryptoKeysCache.ecc = {} - keyBytesCache = {} + cryptoKeysCache.cbc = {}; + cryptoKeysCache.gcm = {}; + cryptoKeysCache.ecc = {}; + keyBytesCache = {}; } static unloadNonUserKeys(): void { cryptoKeysCache = { cbc: { - data: cryptoKeysCache.cbc.data + data: cryptoKeysCache.cbc.data, }, gcm: { - data: cryptoKeysCache.gcm.data + data: cryptoKeysCache.gcm.data, }, ecc: { - pk_ecc: cryptoKeysCache.ecc.pk_ecc + pk_ecc: cryptoKeysCache.ecc.pk_ecc, }, - } + }; keyBytesCache = { - pk_rsa: keyBytesCache.pk_rsa - } + pk_rsa: keyBytesCache.pk_rsa, + }; } static getStorageKeyId(keyId: string, keyType: EncryptionType): string { switch (keyType) { case 'cbc': case 'gcm': - return `${keyId}_${keyType}` + return `${keyId}_${keyType}`; default: - return keyId + return keyId; } } static async loadCryptoKey(keyId: string, keyType: EncryptionType, storage?: KeyStorage): Promise { if (storage?.getObject) { - const storageKeyId = this.getStorageKeyId(keyId, keyType) - const storedKey = await storage.getObject(storageKeyId) + const storageKeyId = this.getStorageKeyId(keyId, keyType); + const storedKey = await storage.getObject(storageKeyId); if (!storedKey) { - throw new Error('Unable to load crypto key ' + keyId) + throw new Error('Unable to load crypto key ' + keyId); } - return storedKey + return storedKey; } - const keyBytes = await this.loadKeyBytes(keyId, storage) + const keyBytes = await this.loadKeyBytes(keyId, storage); switch (keyType) { case 'cbc': - return this.aesCbcImportKey(keyBytes, true) + return this.aesCbcImportKey(keyBytes, true); case 'gcm': - return this.aesGcmImportKey(keyBytes, true) + return this.aesGcmImportKey(keyBytes, true); case 'ecc': - const jwk: JsonWebKey = JSON.parse(this.bytesToString(keyBytes)) - return this.importECCJsonWebKey(jwk) + const jwk: JsonWebKey = JSON.parse(this.bytesToString(keyBytes)); + return this.importECCJsonWebKey(jwk); default: - throw new Error('Unsupported keyType: ' + keyType) + throw new Error('Unsupported keyType: ' + keyType); } } static async loadKeyBytes(keyId: string, storage?: KeyStorage): Promise { - const cachedKey = keyBytesCache[keyId] + const cachedKey = keyBytesCache[keyId]; if (cachedKey) { - return cachedKey + return cachedKey; } - const keyBytes = storage - ? await storage.getKeyBytes(keyId) - : undefined + const keyBytes = storage ? await storage.getKeyBytes(keyId) : undefined; if (!keyBytes) { - throw new Error(`Unable to load the key ${keyId}`) + throw new Error(`Unable to load the key ${keyId}`); } - keyBytesCache[keyId] = keyBytes - return keyBytes + keyBytesCache[keyId] = keyBytes; + return keyBytes; } static async loadKey(keyId: string, keyType: CryptoKeyType, storage?: KeyStorage): Promise { - const cachedKey = cryptoKeysCache[keyType][keyId] + const cachedKey = cryptoKeysCache[keyType][keyId]; if (cachedKey) { - return cachedKey + return cachedKey; } - const key = await this.loadCryptoKey(keyId, keyType, storage) - cryptoKeysCache[keyType][keyId] = key - return key + const key = await this.loadCryptoKey(keyId, keyType, storage); + cryptoKeysCache[keyType][keyId] = key; + return key; } static async unwrapKeys(keys: UnwrapKeyMap, storage?: KeyStorage): Promise { if (workerPool) { try { - const unwrappedKeys = await workerPool.runTasks(Object.values(keys)) + const unwrappedKeys = await workerPool.runTasks(Object.values(keys)); // Import keys - await Promise.all(Object.entries(unwrappedKeys).map(async ([keyId, keyBytes]) => { - try { - const {unwrappedType} = keys[keyId] - switch (unwrappedType) { - case 'aes': - await this.importKey(keyId, keyBytes, storage, true) - break - case 'rsa': - await this.importKeyRSA(keyId, keyBytes, storage) - break - case 'ecc': - try { - const privkey = keyBytes.slice(ECC_PUB_KEY_LENGTH) - const pubKey = keyBytes.slice(0, ECC_PUB_KEY_LENGTH) - await this.importKeyEC(keyId, privkey, pubKey, storage) - } catch(e){ - console.error('ecc error in unwrapKeys: ', e) - } - break - default: - throw new Error(`unable to import ${unwrappedType} key`) + await Promise.all( + Object.entries(unwrappedKeys).map(async ([keyId, keyBytes]) => { + try { + const { unwrappedType } = keys[keyId]; + switch (unwrappedType) { + case 'aes': + await this.importKey(keyId, keyBytes, storage, true); + break; + case 'rsa': + await this.importKeyRSA(keyId, keyBytes, storage); + break; + case 'ecc': + try { + const privkey = keyBytes.slice(ECC_PUB_KEY_LENGTH); + const pubKey = keyBytes.slice(0, ECC_PUB_KEY_LENGTH); + await this.importKeyEC(keyId, privkey, pubKey, storage); + } catch (e) { + console.error('ecc error in unwrapKeys: ', e); + } + break; + default: + throw new Error(`unable to import ${unwrappedType} key`); + } + } catch (e) { + console.error(`Import key error: ${e}`); } - } catch (e) { - console.error(`Import key error: ${e}`) - } - })) - - return // no error, exit + }) + ); + return; // no error, exit } catch (e) { - console.error(`Crypto worker failed: ${e}`) - await workerPool?.close() - workerPool = null + console.error(`Crypto worker failed: ${e}`); + await workerPool?.close(); + workerPool = null; } } // Default to main thread decryption - await Promise.all(Object.values(keys).map(async task => { - const {data, dataId, keyId, encryptionType, unwrappedType} = task - try { - await this.unwrapKey(data, dataId, keyId, encryptionType, unwrappedType, storage, true) - } catch (e: any) { - if (e instanceof Error && e.message === 'sync_aborted') throw e - console.error(`The key ${dataId} cannot be decrypted (${e.message})`) - } - })) + await Promise.all( + Object.values(keys).map(async (task) => { + const { data, dataId, keyId, encryptionType, unwrappedType } = task; + try { + await this.unwrapKey(data, dataId, keyId, encryptionType, unwrappedType, storage, true); + } catch (e: any) { + if (e instanceof Error && e.message === 'sync_aborted') throw e; + console.error(`The key ${dataId} cannot be decrypted (${e.message})`); + } + }) + ); } - static async unwrapKey(key: Uint8Array, keyId: string, unwrappingKeyId: string, encryptionType: EncryptionType, unwrappedKeyType: UnwrappedKeyType, storage?: KeyStorage, canExport?: boolean): Promise { + static async unwrapKey( + key: Uint8Array, + keyId: string, + unwrappingKeyId: string, + encryptionType: EncryptionType, + unwrappedKeyType: UnwrappedKeyType, + storage?: KeyStorage, + canExport?: boolean + ): Promise { switch (unwrappedKeyType) { case 'rsa': if (keyBytesCache[keyId]) { // Skip redundant RSA key decryption - return + return; } - await this.unwrapRSAKey(key, keyId, unwrappingKeyId, encryptionType, storage) - break + await this.unwrapRSAKey(key, keyId, unwrappingKeyId, encryptionType, storage); + break; case 'aes': if (cryptoKeysCache['gcm'][keyId]) { // Keeperapp sometimes provides redundant key data, for example, like if you own a record in a shared folder, // or if a record belongs to multiple shared folders. So, short circuit when possible for a performance improvement - return + return; } - await this.unwrapAesKey(key, keyId, unwrappingKeyId, encryptionType, storage, canExport) - break + await this.unwrapAesKey(key, keyId, unwrappingKeyId, encryptionType, storage, canExport); + break; // TODO: add something like this, need to find pub/priv key pair case 'ecc': if (cryptoKeysCache['gcm'][keyId]) { - return + return; } - + try { - const privkey = key.slice(ECC_PUB_KEY_LENGTH) - const pubKey = key.slice(0, ECC_PUB_KEY_LENGTH) - - await this.unwrapECCKey(privkey, pubKey, keyId, unwrappingKeyId, encryptionType, storage) - } catch(e){ - console.error('ecc error in unwrapKey: ', e) + const privkey = key.slice(ECC_PUB_KEY_LENGTH); + const pubKey = key.slice(0, ECC_PUB_KEY_LENGTH); + + await this.unwrapECCKey(privkey, pubKey, keyId, unwrappingKeyId, encryptionType, storage); + } catch (e) { + console.error('ecc error in unwrapKey: ', e); } - break + break; default: - throw new Error('Unable to unwrap key type ' + unwrappedKeyType) + throw new Error('Unable to unwrap key type ' + unwrappedKeyType); } } - static async unwrapAesKey(key: Uint8Array, keyId: string, unwrappingKeyId: string, encryptionType: EncryptionType, storage?: KeyStorage, canExport?: boolean): Promise { - let unwrappingKey: CryptoKey - let wrappedKey: Uint8Array - let algoParams: AesCbcParams | AesGcmParams + static async unwrapAesKey( + key: Uint8Array, + keyId: string, + unwrappingKeyId: string, + encryptionType: EncryptionType, + storage?: KeyStorage, + canExport?: boolean + ): Promise { + let unwrappingKey: CryptoKey; + let wrappedKey: Uint8Array; + let algoParams: AesCbcParams | AesGcmParams; switch (encryptionType) { case 'rsa': - const rsaKey = await this.loadKeyBytes(unwrappingKeyId, storage) - const keyBytes = this.privateDecrypt(key, rsaKey) - await this.importKey(keyId, keyBytes, storage, canExport) - return + const rsaKey = await this.loadKeyBytes(unwrappingKeyId, storage); + const keyBytes = this.privateDecrypt(key, rsaKey); + await this.importKey(keyId, keyBytes, storage, canExport); + return; case 'cbc': - wrappedKey = key.subarray(CBC_IV_LENGTH) + wrappedKey = key.subarray(CBC_IV_LENGTH); algoParams = { iv: key.subarray(0, CBC_IV_LENGTH), - name: 'AES-CBC' - } - unwrappingKey = await this.loadKey(unwrappingKeyId, encryptionType, storage) - break + name: 'AES-CBC', + }; + unwrappingKey = await this.loadKey(unwrappingKeyId, encryptionType, storage); + break; case 'gcm': - wrappedKey = key.subarray(GCM_IV_LENGTH) + wrappedKey = key.subarray(GCM_IV_LENGTH); algoParams = { iv: key.subarray(0, GCM_IV_LENGTH), - name: 'AES-GCM' - } - unwrappingKey = await this.loadKey(unwrappingKeyId, encryptionType, storage) - break + name: 'AES-GCM', + }; + unwrappingKey = await this.loadKey(unwrappingKeyId, encryptionType, storage); + break; case 'ecc': - const message = key.slice(ECC_PUB_KEY_LENGTH) - wrappedKey = message.subarray(GCM_IV_LENGTH) + const message = key.slice(ECC_PUB_KEY_LENGTH); + wrappedKey = message.subarray(GCM_IV_LENGTH); algoParams = { iv: message.subarray(0, GCM_IV_LENGTH), - name: 'AES-GCM' - } - const ephemeralPublicKey = key.slice(0, ECC_PUB_KEY_LENGTH) - const eccPrivateKey = await this.loadKey(unwrappingKeyId, 'ecc', storage) - unwrappingKey = await this.deriveSharedSecretKey(ephemeralPublicKey, eccPrivateKey) - break + name: 'AES-GCM', + }; + const ephemeralPublicKey = key.slice(0, ECC_PUB_KEY_LENGTH); + const eccPrivateKey = await this.loadKey(unwrappingKeyId, 'ecc', storage); + unwrappingKey = await this.deriveSharedSecretKey(ephemeralPublicKey, eccPrivateKey); + break; } - const canExtract: boolean = storage?.saveObject ? !!canExport : true - const keyUsages: KeyUsage[] = ['encrypt', 'decrypt', 'unwrapKey', 'wrapKey'] + const canExtract: boolean = storage?.saveObject ? !!canExport : true; + const keyUsages: KeyUsage[] = ['encrypt', 'decrypt', 'unwrapKey', 'wrapKey']; - const gcmKey = await crypto.subtle.unwrapKey('raw', wrappedKey, unwrappingKey, algoParams, 'AES-GCM', canExtract, keyUsages) - const cbcKey = await crypto.subtle.unwrapKey('raw', wrappedKey, unwrappingKey, algoParams, 'AES-CBC', canExtract, keyUsages) + const gcmKey = await crypto.subtle.unwrapKey( + 'raw', + wrappedKey, + unwrappingKey, + algoParams, + 'AES-GCM', + canExtract, + keyUsages + ); + const cbcKey = await crypto.subtle.unwrapKey( + 'raw', + wrappedKey, + unwrappingKey, + algoParams, + 'AES-CBC', + canExtract, + keyUsages + ); - cryptoKeysCache['cbc'][keyId] = cbcKey - cryptoKeysCache['gcm'][keyId] = gcmKey + cryptoKeysCache['cbc'][keyId] = cbcKey; + cryptoKeysCache['gcm'][keyId] = gcmKey; if (storage) { if (storage.saveObject) { - await storage.saveObject(this.getStorageKeyId(keyId, 'cbc'), cbcKey) - await storage.saveObject(this.getStorageKeyId(keyId, 'gcm'), gcmKey) + await storage.saveObject(this.getStorageKeyId(keyId, 'cbc'), cbcKey); + await storage.saveObject(this.getStorageKeyId(keyId, 'gcm'), gcmKey); } else { - const keyBuffer = await crypto.subtle.exportKey('raw', gcmKey) - await storage.saveKeyBytes(keyId, new Uint8Array(keyBuffer)) + const keyBuffer = await crypto.subtle.exportKey('raw', gcmKey); + await storage.saveKeyBytes(keyId, new Uint8Array(keyBuffer)); } } } - static async unwrapRSAKey(key: Uint8Array, keyId: string, unwrappingKeyId: string, encryptionType: EncryptionType, storage?: KeyStorage): Promise { - const rsaKey = await this.decrypt(key, unwrappingKeyId, encryptionType, storage) - await this.importKeyRSA(keyId, rsaKey, storage) + static async unwrapRSAKey( + key: Uint8Array, + keyId: string, + unwrappingKeyId: string, + encryptionType: EncryptionType, + storage?: KeyStorage + ): Promise { + const rsaKey = await this.decrypt(key, unwrappingKeyId, encryptionType, storage); + await this.importKeyRSA(keyId, rsaKey, storage); } // keyId: string, privateKey: Uint8Array, publicKey: Uint8Array, storage?: KeyStorage - static async unwrapECCKey(privateKey: Uint8Array, publicKey: Uint8Array, keyId: string, unwrappingKeyId: string, encryptionType: EncryptionType, storage?: KeyStorage): Promise { - const decryptedPrivateKey = await this.decrypt(privateKey, unwrappingKeyId, encryptionType, storage) - await this.importKeyEC(keyId, decryptedPrivateKey, publicKey, storage) - } - - static async decrypt(data: Uint8Array, keyId: string, encryptionType: EncryptionType, storage?: KeyStorage): Promise { + static async unwrapECCKey( + privateKey: Uint8Array, + publicKey: Uint8Array, + keyId: string, + unwrappingKeyId: string, + encryptionType: EncryptionType, + storage?: KeyStorage + ): Promise { + const decryptedPrivateKey = await this.decrypt(privateKey, unwrappingKeyId, encryptionType, storage); + await this.importKeyEC(keyId, decryptedPrivateKey, publicKey, storage); + } + + static async decrypt( + data: Uint8Array, + keyId: string, + encryptionType: EncryptionType, + storage?: KeyStorage + ): Promise { switch (encryptionType) { case 'cbc': { - const key = await this.loadKey(keyId, encryptionType, storage) - return this.aesCbcDecryptWebCrypto(data, key) + const key = await this.loadKey(keyId, encryptionType, storage); + return this.aesCbcDecryptWebCrypto(data, key); } case 'gcm': { - const key = await this.loadKey(keyId, encryptionType, storage) - return this.aesGcmDecryptWebCrypto(data, key) + const key = await this.loadKey(keyId, encryptionType, storage); + return this.aesGcmDecryptWebCrypto(data, key); } case 'rsa': { - const key = await this.loadKeyBytes(keyId, storage) - return this.privateDecrypt(data, key) + const key = await this.loadKeyBytes(keyId, storage); + return this.privateDecrypt(data, key); } case 'ecc': { // explains ec privkey - const key = await this.loadKey(keyId, encryptionType, storage) - return this.privateDecryptECWebCrypto(data, key) + const key = await this.loadKey(keyId, encryptionType, storage); + return this.privateDecryptECWebCrypto(data, key); } default: - throw Error('Unknown encryption type: ' + encryptionType) + throw Error('Unknown encryption type: ' + encryptionType); } } - static async generateRSAKeyPair(): Promise<{privateKey: Uint8Array; publicKey: Uint8Array}> { - let keyPair = await crypto.subtle.generateKey({ - name: rsaAlgorithmName, - modulusLength: 2048, - publicExponent: new Uint8Array([0x01, 0x00, 0x01]), // 65537 - hash: {name: 'SHA-256'}, - }, true, ["sign", "verify"]); + static async generateRSAKeyPair(): Promise<{ privateKey: Uint8Array; publicKey: Uint8Array }> { + let keyPair = await crypto.subtle.generateKey( + { + name: rsaAlgorithmName, + modulusLength: 2048, + publicExponent: new Uint8Array([0x01, 0x00, 0x01]), // 65537 + hash: { name: 'SHA-256' }, + }, + true, + ['sign', 'verify'] + ); - let jwk = await crypto.subtle.exportKey("jwk", keyPair.privateKey); + let jwk = await crypto.subtle.exportKey('jwk', keyPair.privateKey); let rsaKey = new RSAKey(); rsaKey.setPrivateEx( @@ -423,7 +481,7 @@ export const browserPlatform: Platform = class { base64ToHex(normal64(jwk.qi!)) ); - let public_key = rsaKey.toASN1HexString(false); + let public_key = rsaKey.toASN1HexString(false); let private_key = rsaKey.toASN1HexString(true); return { @@ -433,15 +491,19 @@ export const browserPlatform: Platform = class { } static async generateECKeyPair(): Promise<{ privateKey: Uint8Array; publicKey: Uint8Array }> { - const ecdh = await crypto.subtle.generateKey({ name: 'ECDH', namedCurve: 'P-256' }, true, ['deriveBits']) - const privateKey = await crypto.subtle.exportKey('jwk', ecdh.privateKey) - const publicKey = await crypto.subtle.exportKey('raw', ecdh.publicKey) - return { publicKey: new Uint8Array(publicKey), privateKey: normal64Bytes(privateKey.d!) } + const ecdh = await crypto.subtle.generateKey({ name: 'ECDH', namedCurve: 'P-256' }, true, ['deriveBits']); + const privateKey = await crypto.subtle.exportKey('jwk', ecdh.privateKey); + const publicKey = await crypto.subtle.exportKey('raw', ecdh.publicKey); + return { publicKey: new Uint8Array(publicKey), privateKey: normal64Bytes(privateKey.d!) }; } - static async publicEncryptECWithHKDF(message: string | Uint8Array, pubKey: Uint8Array, id: Uint8Array): Promise { - const messageBytes = typeof message === "string" ? this.stringToBytes(message) : message - return await this.mainPublicEncryptEC(messageBytes, pubKey, id, true) + static async publicEncryptECWithHKDF( + message: string | Uint8Array, + pubKey: Uint8Array, + id: Uint8Array + ): Promise { + const messageBytes = typeof message === 'string' ? this.stringToBytes(message) : message; + return await this.mainPublicEncryptEC(messageBytes, pubKey, id, true); } static publicEncrypt(data: Uint8Array, key: string): Uint8Array { @@ -457,45 +519,51 @@ export const browserPlatform: Platform = class { } static async mainPublicEncryptEC(data: Uint8Array, key: Uint8Array, id?: Uint8Array, useHKDF?: boolean) { - const ephemeralKeyPair = await crypto.subtle.generateKey({ name: 'ECDH', namedCurve: 'P-256' }, true, ['deriveBits']) - const ephemeralPublicKey = await crypto.subtle.exportKey('raw', ephemeralKeyPair.publicKey) - const recipientPublicKey = await crypto.subtle.importKey('raw', key, { name: 'ECDH', namedCurve: 'P-256' }, true, []) - const sharedSecret = await crypto.subtle.deriveBits({ name: 'ECDH', public: recipientPublicKey }, ephemeralKeyPair.privateKey, 256) - const idBytes = id || new Uint8Array() - let symmetricKey: ArrayBuffer + const ephemeralKeyPair = await crypto.subtle.generateKey({ name: 'ECDH', namedCurve: 'P-256' }, true, [ + 'deriveBits', + ]); + const ephemeralPublicKey = await crypto.subtle.exportKey('raw', ephemeralKeyPair.publicKey); + const recipientPublicKey = await crypto.subtle.importKey( + 'raw', + key, + { name: 'ECDH', namedCurve: 'P-256' }, + true, + [] + ); + const sharedSecret = await crypto.subtle.deriveBits( + { name: 'ECDH', public: recipientPublicKey }, + ephemeralKeyPair.privateKey, + 256 + ); + const idBytes = id || new Uint8Array(); + let symmetricKey: ArrayBuffer; if (!useHKDF) { - const sharedSecretCombined = new Uint8Array(sharedSecret.byteLength + idBytes.byteLength) - sharedSecretCombined.set(new Uint8Array(sharedSecret), 0) - sharedSecretCombined.set(idBytes, sharedSecret.byteLength) - symmetricKey = await crypto.subtle.digest('SHA-256', sharedSecretCombined) + const sharedSecretCombined = new Uint8Array(sharedSecret.byteLength + idBytes.byteLength); + sharedSecretCombined.set(new Uint8Array(sharedSecret), 0); + sharedSecretCombined.set(idBytes, sharedSecret.byteLength); + symmetricKey = await crypto.subtle.digest('SHA-256', sharedSecretCombined); } else { - const hkdfKey = await crypto.subtle.importKey( - 'raw', - sharedSecret, - 'HKDF', - false, - ['deriveBits'] - ) + const hkdfKey = await crypto.subtle.importKey('raw', sharedSecret, 'HKDF', false, ['deriveBits']); symmetricKey = await crypto.subtle.deriveBits( { name: 'HKDF', hash: 'SHA-256', salt: new Uint8Array(), - info: id + info: id, }, hkdfKey, 256 - ) + ); } - const cipherText = await this.aesGcmEncrypt(data, new Uint8Array(symmetricKey)) - const result = new Uint8Array(ephemeralPublicKey.byteLength + cipherText.byteLength) - result.set(new Uint8Array(ephemeralPublicKey), 0) - result.set(new Uint8Array(cipherText), ephemeralPublicKey.byteLength) - return result + const cipherText = await this.aesGcmEncrypt(data, new Uint8Array(symmetricKey)); + const result = new Uint8Array(ephemeralPublicKey.byteLength + cipherText.byteLength); + result.set(new Uint8Array(ephemeralPublicKey), 0); + result.set(new Uint8Array(cipherText), ephemeralPublicKey.byteLength); + return result; } static async publicEncryptEC(data: Uint8Array, key: Uint8Array, id?: Uint8Array): Promise { - return await this.mainPublicEncryptEC(data, key, id) + return await this.mainPublicEncryptEC(data, key, id); } static privateDecrypt(data: Uint8Array, key: Uint8Array): Uint8Array { @@ -507,87 +575,101 @@ export const browserPlatform: Platform = class { return hexToBytes(decryptedBinary); } - static async privateDecryptEC(data: Uint8Array, privateKey: Uint8Array, publicKey?: Uint8Array, id?: Uint8Array, useHKDF?: boolean): Promise { + static async privateDecryptEC( + data: Uint8Array, + privateKey: Uint8Array, + publicKey?: Uint8Array, + id?: Uint8Array, + useHKDF?: boolean + ): Promise { if (!publicKey) { - throw Error('Public key is required for EC decryption') + throw Error('Public key is required for EC decryption'); } - const privateKeyImport = await this.importPrivateKeyEC(privateKey, publicKey) + const privateKeyImport = await this.importPrivateKeyEC(privateKey, publicKey); - return this.privateDecryptECWebCrypto(data, privateKeyImport, id, useHKDF) + return this.privateDecryptECWebCrypto(data, privateKeyImport, id, useHKDF); } static async importPrivateKeyEC(privateKey: Uint8Array, publicKey: Uint8Array) { - const x = webSafe64FromBytes(publicKey.subarray(1, 33)) - const y = webSafe64FromBytes(publicKey.subarray(33, 65)) - const d = webSafe64FromBytes(privateKey) + const x = webSafe64FromBytes(publicKey.subarray(1, 33)); + const y = webSafe64FromBytes(publicKey.subarray(33, 65)); + const d = webSafe64FromBytes(privateKey); const jwk = { - 'crv': 'P-256', + crv: 'P-256', d, - 'ext': true, - 'key_ops': [ - 'deriveBits' - ], - 'kty': 'EC', + ext: true, + key_ops: ['deriveBits'], + kty: 'EC', x, - y - } + y, + }; - return this.importECCJsonWebKey(jwk) + return this.importECCJsonWebKey(jwk); } static async importECCJsonWebKey(jwk: JsonWebKey): Promise { - return await crypto.subtle.importKey('jwk', jwk, { name: 'ECDH', namedCurve: 'P-256' }, true, ['deriveBits']) + return await crypto.subtle.importKey('jwk', jwk, { name: 'ECDH', namedCurve: 'P-256' }, true, ['deriveBits']); } static async ecdhComputeSharedSecret( - senderPrivateKey: Uint8Array, - recipientPublicKey: Uint8Array, + senderPrivateKey: Uint8Array, + recipientPublicKey: Uint8Array, senderPublicKey: Uint8Array ): Promise { - const senderPrivateCryptoKey = await this.importPrivateKeyEC(senderPrivateKey, senderPublicKey) + const senderPrivateCryptoKey = await this.importPrivateKeyEC(senderPrivateKey, senderPublicKey); const recipientPublicCryptoKey = await crypto.subtle.importKey( 'raw', recipientPublicKey, { name: 'ECDH', namedCurve: 'P-256' }, false, [] - ) + ); const sharedSecretBuffer = await crypto.subtle.deriveBits( { name: 'ECDH', public: recipientPublicCryptoKey }, senderPrivateCryptoKey, 256 - ) - return new Uint8Array(sharedSecretBuffer) + ); + return new Uint8Array(sharedSecretBuffer); } - static async deriveSharedSecretKey(ephemeralPublicKey: Uint8Array, privateKey: CryptoKey, id?: Uint8Array, useHKDF?: boolean): Promise { - const pubCryptoKey = await crypto.subtle.importKey('raw', ephemeralPublicKey, { name: 'ECDH', namedCurve: 'P-256' }, true, []) - const sharedSecret = await crypto.subtle.deriveBits({ name: 'ECDH', public: pubCryptoKey }, privateKey, 256) + static async deriveSharedSecretKey( + ephemeralPublicKey: Uint8Array, + privateKey: CryptoKey, + id?: Uint8Array, + useHKDF?: boolean + ): Promise { + const pubCryptoKey = await crypto.subtle.importKey( + 'raw', + ephemeralPublicKey, + { name: 'ECDH', namedCurve: 'P-256' }, + true, + [] + ); + const sharedSecret = await crypto.subtle.deriveBits({ name: 'ECDH', public: pubCryptoKey }, privateKey, 256); if (!useHKDF) { - let sharedSecretCombined = new Uint8Array(sharedSecret.byteLength + (id?.byteLength ?? 0)) - sharedSecretCombined.set(new Uint8Array(sharedSecret), 0) + let sharedSecretCombined = new Uint8Array(sharedSecret.byteLength + (id?.byteLength ?? 0)); + sharedSecretCombined.set(new Uint8Array(sharedSecret), 0); if (id) { - sharedSecretCombined.set(id, sharedSecret.byteLength) + sharedSecretCombined.set(id, sharedSecret.byteLength); } - const symmetricKeyBuffer = await crypto.subtle.digest('SHA-256', sharedSecretCombined) - return this.aesGcmImportKey(new Uint8Array(symmetricKeyBuffer), false) + const symmetricKeyBuffer = await crypto.subtle.digest('SHA-256', sharedSecretCombined); + return this.aesGcmImportKey(new Uint8Array(symmetricKeyBuffer), false); } else { - const symmetricKey = await this.hkdf(new Uint8Array(), new Uint8Array(sharedSecret), id ?? new Uint8Array(), 32) - return this.aesGcmImportKey(symmetricKey, false) + const symmetricKey = await this.hkdf( + new Uint8Array(), + new Uint8Array(sharedSecret), + id ?? new Uint8Array(), + 32 + ); + return this.aesGcmImportKey(symmetricKey, false); } } static async hkdf(salt: Uint8Array, ikm: Uint8Array, info: Uint8Array, length: number): Promise { // Import IKM as HKDF key - const hkdfKey = await crypto.subtle.importKey( - 'raw', - ikm, - 'HKDF', - false, - ['deriveBits'] - ); + const hkdfKey = await crypto.subtle.importKey('raw', ikm, 'HKDF', false, ['deriveBits']); // Derive bits using HKDF const derivedBits = await crypto.subtle.deriveBits( @@ -595,7 +677,7 @@ export const browserPlatform: Platform = class { name: 'HKDF', hash: 'SHA-256', salt: salt, - info: info + info: info, }, hkdfKey, length * 8 // bits @@ -604,236 +686,294 @@ export const browserPlatform: Platform = class { return new Uint8Array(derivedBits); } - static async privateDecryptECWebCrypto(data: Uint8Array, privateKey: CryptoKey, id?: Uint8Array, useHKDF?: boolean): Promise { - const message = data.slice(ECC_PUB_KEY_LENGTH) - const ephemeralPublicKey = data.slice(0, ECC_PUB_KEY_LENGTH) + static async privateDecryptECWebCrypto( + data: Uint8Array, + privateKey: CryptoKey, + id?: Uint8Array, + useHKDF?: boolean + ): Promise { + const message = data.slice(ECC_PUB_KEY_LENGTH); + const ephemeralPublicKey = data.slice(0, ECC_PUB_KEY_LENGTH); - const symmetricKey = await this.deriveSharedSecretKey(ephemeralPublicKey, privateKey, id, useHKDF) + const symmetricKey = await this.deriveSharedSecretKey(ephemeralPublicKey, privateKey, id, useHKDF); - return await this.aesGcmDecryptWebCrypto(message, symmetricKey) + return await this.aesGcmDecryptWebCrypto(message, symmetricKey); } static async privateSign(data: Uint8Array, key: string): Promise { - let _key = await crypto.subtle.importKey("pkcs8", - browserPlatform.base64ToBytes(key), - "RSA-PSS", - true, - ["sign"]); + let _key = await crypto.subtle.importKey('pkcs8', browserPlatform.base64ToBytes(key), 'RSA-PSS', true, [ + 'sign', + ]); let signature = await crypto.subtle.sign(rsaAlgorithmName, _key, data); return new Uint8Array(signature); } - static async encrypt(data: Uint8Array, keyId: string, encryptionType: EncryptionType, storage?: KeyStorage): Promise { + static async encrypt( + data: Uint8Array, + keyId: string, + encryptionType: EncryptionType, + storage?: KeyStorage + ): Promise { switch (encryptionType) { case 'cbc': { - const key = await this.loadKey(keyId, encryptionType, storage) - return this.aesCbcEncryptWebCrypto(data, key) + const key = await this.loadKey(keyId, encryptionType, storage); + return this.aesCbcEncryptWebCrypto(data, key); } case 'gcm': { - const key = await this.loadKey(keyId, encryptionType, storage) - return this.aesGcmEncryptWebCrypto(data, key) + const key = await this.loadKey(keyId, encryptionType, storage); + return this.aesGcmEncryptWebCrypto(data, key); } case 'ecc': { - const publicKey = await this.loadKeyBytes(keyId + '_pub') - return this.publicEncryptEC(data, publicKey) + const publicKey = await this.loadKeyBytes(keyId + '_pub'); + return this.publicEncryptEC(data, publicKey); } case 'rsa': { - const publicKey = await this.loadKeyBytes(keyId + '_pub') - return this.publicEncrypt(data, this.bytesToBase64(publicKey)) + const publicKey = await this.loadKeyBytes(keyId + '_pub'); + return this.publicEncrypt(data, this.bytesToBase64(publicKey)); } default: - throw Error('Unknown encryption type: ' + encryptionType) + throw Error('Unknown encryption type: ' + encryptionType); } } - static async wrapKey(keyId: string, wrappingKeyId: string, encryptionType: CryptoKeyType, storage?: KeyStorage): Promise { + static async wrapKey( + keyId: string, + wrappingKeyId: string, + encryptionType: CryptoKeyType, + storage?: KeyStorage + ): Promise { switch (encryptionType) { case 'cbc': case 'gcm': - return this.aesWrapKey(keyId, wrappingKeyId, encryptionType, storage) + return this.aesWrapKey(keyId, wrappingKeyId, encryptionType, storage); default: - throw new Error(`Unsupported encryptionType (${encryptionType})`) + throw new Error(`Unsupported encryptionType (${encryptionType})`); } } - static async aesWrapKey(keyId: string, wrappingKeyId: string, encryptionType: Exclude, storage?: KeyStorage): Promise { - const key = await this.loadKey(keyId, 'cbc', storage) - const wrappingKey = await this.loadKey(wrappingKeyId, encryptionType, storage) + static async aesWrapKey( + keyId: string, + wrappingKeyId: string, + encryptionType: Exclude, + storage?: KeyStorage + ): Promise { + const key = await this.loadKey(keyId, 'cbc', storage); + const wrappingKey = await this.loadKey(wrappingKeyId, encryptionType, storage); - let algoParams: AesCbcParams | AesGcmParams - let iv: Uint8Array + let algoParams: AesCbcParams | AesGcmParams; + let iv: Uint8Array; switch (encryptionType) { case 'cbc': - iv = this.getRandomBytes(CBC_IV_LENGTH) + iv = this.getRandomBytes(CBC_IV_LENGTH); algoParams = { iv, - name: 'AES-CBC' - } - break + name: 'AES-CBC', + }; + break; case 'gcm': - iv = this.getRandomBytes(GCM_IV_LENGTH) + iv = this.getRandomBytes(GCM_IV_LENGTH); algoParams = { iv, - name: 'AES-GCM' - } - break + name: 'AES-GCM', + }; + break; } - const wrappedKey = await crypto.subtle.wrapKey('raw', key, wrappingKey, algoParams) + const wrappedKey = await crypto.subtle.wrapKey('raw', key, wrappingKey, algoParams); - let resArr = new Uint8Array(wrappedKey) - let result = new Uint8Array(iv.length + resArr.length) - result.set(iv) - result.set(resArr, iv.length) - return result + let resArr = new Uint8Array(wrappedKey); + let result = new Uint8Array(iv.length + resArr.length); + result.set(iv); + result.set(resArr, iv.length); + return result; } - + static async aesGcmEncrypt(data: Uint8Array, key: Uint8Array): Promise { - let _key = await crypto.subtle.importKey("raw", key, "AES-GCM", true, ["encrypt"]); - return this.aesGcmEncryptWebCrypto(data, _key) + let _key = await crypto.subtle.importKey('raw', key, 'AES-GCM', true, ['encrypt']); + return this.aesGcmEncryptWebCrypto(data, _key); } static async aesGcmEncryptWebCrypto(data: Uint8Array, key: CryptoKey): Promise { let iv = browserPlatform.getRandomBytes(GCM_IV_LENGTH); - let res = await crypto.subtle.encrypt({ - name: "AES-GCM", - iv: iv - }, key, data); + let res = await crypto.subtle.encrypt( + { + name: 'AES-GCM', + iv: iv, + }, + key, + data + ); - let resArr = new Uint8Array(res) - let result = new Uint8Array(iv.length + resArr.length) - result.set(iv) - result.set(resArr, iv.length) - return result + let resArr = new Uint8Array(res); + let result = new Uint8Array(iv.length + resArr.length); + result.set(iv); + result.set(resArr, iv.length); + return result; } static async aesGcmDecrypt(data: Uint8Array, key: Uint8Array): Promise { - const _key = await this.aesGcmImportKey(key, false) - return this.aesGcmDecryptWebCrypto(data, _key) + const _key = await this.aesGcmImportKey(key, false); + return this.aesGcmDecryptWebCrypto(data, _key); } static async aesGcmImportKey(keyBytes: Uint8Array, extractable: boolean): Promise { - return crypto.subtle.importKey("raw", keyBytes, "AES-GCM", extractable, ['decrypt', 'encrypt', 'unwrapKey', 'wrapKey']); + return crypto.subtle.importKey('raw', keyBytes, 'AES-GCM', extractable, [ + 'decrypt', + 'encrypt', + 'unwrapKey', + 'wrapKey', + ]); } static async aesGcmDecryptWebCrypto(data: Uint8Array, key: CryptoKey): Promise { const iv = data.subarray(0, GCM_IV_LENGTH); const encrypted = data.subarray(GCM_IV_LENGTH); - const res = await crypto.subtle.decrypt({ - name: "AES-GCM", - iv: iv - }, key, encrypted); + const res = await crypto.subtle.decrypt( + { + name: 'AES-GCM', + iv: iv, + }, + key, + encrypted + ); return new Uint8Array(res); } static async aesCbcEncryptWebCrypto(data: Uint8Array, key: CryptoKey): Promise { let iv = browserPlatform.getRandomBytes(CBC_IV_LENGTH); - let res = await crypto.subtle.encrypt({ - name: "aes-cbc", - iv: iv - }, key, data); + let res = await crypto.subtle.encrypt( + { + name: 'aes-cbc', + iv: iv, + }, + key, + data + ); - let resArr = new Uint8Array(res) - let result = new Uint8Array(iv.byteLength + resArr.byteLength) - result.set(iv) - result.set(resArr, iv.byteLength) - return result + let resArr = new Uint8Array(res); + let result = new Uint8Array(iv.byteLength + resArr.byteLength); + result.set(iv); + result.set(resArr, iv.byteLength); + return result; } - // The browser's implementation of aes cbc only works when padding is required. + // The browser's implementation of aes cbc only works when padding is required. // Use asmCrypto for no padding. crypto-js was found to have a vulnerability (Cache-Timing attack) static async aesCbcEncrypt(data: Uint8Array, key: Uint8Array, usePadding: boolean): Promise { - if(usePadding){ - let _key = await crypto.subtle.importKey("raw", key, "aes-cbc", true, ["encrypt"]); - return this.aesCbcEncryptWebCrypto(data, _key) + if (usePadding) { + let _key = await crypto.subtle.importKey('raw', key, 'aes-cbc', true, ['encrypt']); + return this.aesCbcEncryptWebCrypto(data, _key); } else { const iv = browserPlatform.getRandomBytes(CBC_IV_LENGTH); const encrBytes = asmCrypto.AES_CBC.encrypt(data, key, false, iv); - const keeperformat = new Uint8Array(iv.length + encrBytes.length) - keeperformat.set(iv) - keeperformat.set(encrBytes, iv.length) + const keeperformat = new Uint8Array(iv.length + encrBytes.length); + keeperformat.set(iv); + keeperformat.set(encrBytes, iv.length); - return keeperformat + return keeperformat; } } - // The browser's implementation of aes cbc only works when padding is required. + // The browser's implementation of aes cbc only works when padding is required. // Use asmCrypto for no padding. crypto-js was found to have a vulnerability (Cache-Timing attack) static async aesCbcDecrypt(data: Uint8Array, key: Uint8Array, usePadding: boolean): Promise { - if(usePadding){ - let _key = await this.aesCbcImportKey(key, false) - return this.aesCbcDecryptWebCrypto(data, _key) + if (usePadding) { + let _key = await this.aesCbcImportKey(key, false); + return this.aesCbcDecryptWebCrypto(data, _key); } else { - var iv = data.subarray(0, CBC_IV_LENGTH) - var ciphertext = data.subarray(CBC_IV_LENGTH) + var iv = data.subarray(0, CBC_IV_LENGTH); + var ciphertext = data.subarray(CBC_IV_LENGTH); - var result = asmCrypto.AES_CBC.decrypt(ciphertext, key, false, iv) - return result + var result = asmCrypto.AES_CBC.decrypt(ciphertext, key, false, iv); + return result; } } - + static async aesCbcImportKey(keyBytes: Uint8Array, extractable: boolean): Promise { - return crypto.subtle.importKey('raw', keyBytes, 'AES-CBC', extractable, ['decrypt', 'encrypt', 'unwrapKey', 'wrapKey']) + return crypto.subtle.importKey('raw', keyBytes, 'AES-CBC', extractable, [ + 'decrypt', + 'encrypt', + 'unwrapKey', + 'wrapKey', + ]); } static async aesCbcDecryptWebCrypto(data: Uint8Array, key: CryptoKey): Promise { - const iv = data.subarray(0, CBC_IV_LENGTH) - const ciphertext = data.subarray(CBC_IV_LENGTH) - const decrypt = await crypto.subtle.decrypt({ - name: 'AES-CBC', - iv: iv - }, key, ciphertext) - return new Uint8Array(decrypt) + const iv = data.subarray(0, CBC_IV_LENGTH); + const ciphertext = data.subarray(CBC_IV_LENGTH); + const decrypt = await crypto.subtle.decrypt( + { + name: 'AES-CBC', + iv: iv, + }, + key, + ciphertext + ); + return new Uint8Array(decrypt); } static async deriveKey(password: KeyWrapper, saltBytes: Uint8Array, iterations: number): Promise { - let key = await crypto.subtle.importKey("raw", password.getKey(), "PBKDF2", false, ["deriveBits"]); - let derived = await crypto.subtle.deriveBits({ - name: "PBKDF2", - salt: saltBytes, - iterations: iterations, - hash: { - name: "SHA-256" - } - }, key, 256); + let key = await crypto.subtle.importKey('raw', password.getKey(), 'PBKDF2', false, ['deriveBits']); + let derived = await crypto.subtle.deriveBits( + { + name: 'PBKDF2', + salt: saltBytes, + iterations: iterations, + hash: { + name: 'SHA-256', + }, + }, + key, + 256 + ); return new Uint8Array(derived); } - static async deriveKeyV2(domain: string, password: KeyWrapper, saltBytes: Uint8Array, iterations: number): Promise { - + static async deriveKeyV2( + domain: string, + password: KeyWrapper, + saltBytes: Uint8Array, + iterations: number + ): Promise { let key = await crypto.subtle.importKey( - "raw", + 'raw', Uint8Array.of(...browserPlatform.stringToBytes(domain), ...browserPlatform.unWrapPassword(password)), - "PBKDF2", + 'PBKDF2', false, - ["deriveBits"]); - let derived = await crypto.subtle.deriveBits({ - name: "PBKDF2", - salt: saltBytes, - iterations: iterations, - hash: { - name: "SHA-512" - } - }, key, 512); + ['deriveBits'] + ); + let derived = await crypto.subtle.deriveBits( + { + name: 'PBKDF2', + salt: saltBytes, + iterations: iterations, + hash: { + name: 'SHA-512', + }, + }, + key, + 512 + ); let hmacKey = await crypto.subtle.importKey( - "raw", + 'raw', derived, { - name: "HMAC", + name: 'HMAC', hash: { - name: "SHA-256" - } + name: 'SHA-256', + }, }, false, - ["sign", "verify"]); - const reduced = await crypto.subtle.sign("HMAC", hmacKey, browserPlatform.stringToBytes(domain)); + ['sign', 'verify'] + ); + const reduced = await crypto.subtle.sign('HMAC', hmacKey, browserPlatform.stringToBytes(domain)); return new Uint8Array(reduced); } @@ -842,34 +982,34 @@ export const browserPlatform: Platform = class { } static async sha256(data: Uint8Array): Promise { - const digest = await crypto.subtle.digest("SHA-256", data); + const digest = await crypto.subtle.digest('SHA-256', data); return new Uint8Array(digest); } static async get(url: string, headers: any): Promise { let resp = await fetch(url, { - method: "GET", + method: 'GET', headers: Object.entries(headers), }); let body = await resp.arrayBuffer(); return { statusCode: resp.status, headers: resp.headers, - data: new Uint8Array(body) - } + data: new Uint8Array(body), + }; } static async post( - url: string, - request: Uint8Array | string, - headers?: {[key: string]: string} + url: string, + request: Uint8Array | string, + headers?: { [key: string]: string } ): Promise { let resp = await fetch(url, { - method: "POST", + method: 'POST', headers: new Headers({ - "Content-Type": "application/octet-stream", - "Content-Length": String(request.length), - ...headers + 'Content-Type': 'application/octet-stream', + 'Content-Length': String(request.length), + ...headers, }), body: request, }); @@ -877,42 +1017,38 @@ export const browserPlatform: Platform = class { return { statusCode: resp.status, headers: resp.headers, - data: new Uint8Array(body) - } + data: new Uint8Array(body), + }; } - static fileUpload( - url: string, - uploadParameters: {[key: string]: string}, - data: Blob - ): Promise { + static fileUpload(url: string, uploadParameters: { [key: string]: string }, data: Blob): Promise { return new Promise((resolve, reject) => { const form = new FormData(); for (const key in uploadParameters) { form.append(key, uploadParameters[key]); } - form.append('file', data) + form.append('file', data); const fetchCfg = { method: 'PUT', body: form, - } + }; fetch(url, fetchCfg) - .then(response => response.json()) - .then(res => { - resolve({ - headers: res.headers, - statusCode: res.statusCode, - statusMessage: res.statusMessage - }) - }) - .catch(error => { - console.error('Error uploading file:', error); - reject(error) - }); - }) + .then((response) => response.json()) + .then((res) => { + resolve({ + headers: res.headers, + statusCode: res.statusCode, + statusMessage: res.statusMessage, + }); + }) + .catch((error) => { + console.error('Error uploading file:', error); + reject(error); + }); + }); } static async createCryptoWorker(keyStorage: KeyStorage, options: CryptoWorkerOptions): Promise { @@ -923,93 +1059,90 @@ export const browserPlatform: Platform = class { switch (type) { case 'cbc': case 'gcm': { - const key = await this.loadKey(keyId, type, keyStorage) - const buffer = await crypto.subtle.exportKey('raw', key) - return new Uint8Array(buffer) + const key = await this.loadKey(keyId, type, keyStorage); + const buffer = await crypto.subtle.exportKey('raw', key); + return new Uint8Array(buffer); } case 'ecc': { - const key = await this.loadKey(keyId, type, keyStorage) - const jwk = await crypto.subtle.exportKey('jwk', key) - return this.stringToBytes(JSON.stringify(jwk)) + const key = await this.loadKey(keyId, type, keyStorage); + const jwk = await crypto.subtle.exportKey('jwk', key); + return this.stringToBytes(JSON.stringify(jwk)); } default: - return this.loadKeyBytes(keyId, keyStorage) + return this.loadKeyBytes(keyId, keyStorage); } }, - ...options - } + ...options, + }; - workerPool = new CryptoWorkerPool(config) - await workerPool!.open() + workerPool = new CryptoWorkerPool(config); + await workerPool!.open(); - return workerPool + return workerPool; } static async closeCryptoWorker(): Promise { - if (!workerPool) return + if (!workerPool) return; try { - await workerPool.close() - workerPool = null + await workerPool.close(); + workerPool = null; } catch (e) { - console.error(e) + console.error(e); } } static createWebsocket(url: string): SocketProxy { - socket = new WebSocket(url) + socket = new WebSocket(url); let createdSocket; - return createdSocket = { + return (createdSocket = { onOpen: (callback: () => void) => { socket!.onopen = (e: Event) => { - callback() - } + callback(); + }; }, close: () => { - socket!.close() + socket!.close(); }, - onClose: (callback: (e:Event) => void) => { - socket!.addEventListener("close", callback) + onClose: (callback: (e: Event) => void) => { + socket!.addEventListener('close', callback); }, onError: (callback: (e: Event) => void) => { - socket!.addEventListener("error", callback) + socket!.addEventListener('error', callback); }, onMessage: (callback: (e: Uint8Array) => void) => { socket!.onmessage = async (e: MessageEvent) => { - const pmArrBuff = await e.data.arrayBuffer() - const pmUint8Buff = new Uint8Array(pmArrBuff) - callback(pmUint8Buff) - } + const pmArrBuff = await e.data.arrayBuffer(); + const pmUint8Buff = new Uint8Array(pmArrBuff); + callback(pmUint8Buff); + }; }, send: (message: any) => { - socketSendMessage(message, socket!, createdSocket) + socketSendMessage(message, socket!, createdSocket); }, messageQueue: [], - } + }); } static log(message: string, options: LogOptions): void { - if (options === 'CR') - return - console.log(message) + if (options === 'CR') return; + console.log(message); } }; - function base64ToHex(data: string): string { let raw = atob(data); let hex = ''; for (let i = 0; i < raw.length; i++) { let _hex = raw.charCodeAt(i).toString(16); - hex += (_hex.length == 2 ? _hex : '0' + _hex); + hex += _hex.length == 2 ? _hex : '0' + _hex; } return hex; } function hexToBytes(data: string): Uint8Array { let bytes: number[] = []; - for (let c = 0; c < data.length; c += 2) - bytes.push(parseInt(data.substr(c, 2), 16)); + for (let c = 0; c < data.length; c += 2) bytes.push(parseInt(data.substr(c, 2), 16)); return Uint8Array.from(bytes); } @@ -1018,59 +1151,57 @@ function bytesToHex(data: Uint8Array): string { for (let i = 0; i < data.length; i++) { let current = data[i] < 0 ? data[i] + 256 : data[i]; hex.push((current >>> 4).toString(16)); - hex.push((current & 0xF).toString(16)); + hex.push((current & 0xf).toString(16)); } - return hex.join(""); + return hex.join(''); } -const OPCODE_PING = new Uint8Array([0x9]) +const OPCODE_PING = new Uint8Array([0x9]); const heartbeat = setInterval(() => { - if (!socket) return - if (socket.readyState !== WebSocket.OPEN) return - socket.send(OPCODE_PING) -}, 10000) + if (!socket) return; + if (socket.readyState !== WebSocket.OPEN) return; + socket.send(OPCODE_PING); +}, 10000); -let keyBytesCache: Record = {} +let keyBytesCache: Record = {}; type CryptoKeyCache = { - [key in CryptoKeyType]: Record -} + [key in CryptoKeyType]: Record; +}; // Web crypto supports aes gcm, aes cbc with padding, and ecc -type CryptoKeyType = Exclude +type CryptoKeyType = Exclude; let cryptoKeysCache: CryptoKeyCache = { cbc: {}, gcm: {}, ecc: {}, -} +}; class BrowserCryptoWorker implements CryptoWorker { - - private worker: Worker + private worker: Worker; constructor() { - const url = location.origin + '/worker/browserWorker.js' - this.worker = new Worker(url) + const url = location.origin + '/worker/browserWorker.js'; + this.worker = new Worker(url); } sendMessage(message: CryptoWorkerMessage): Promise { return new Promise((resolve, reject) => { this.worker.onmessage = function onWorkerMessage(e: MessageEvent) { - resolve(e.data) - } + resolve(e.data); + }; this.worker.onerror = function onWorkerError(e) { - reject(`Worker error: ${e.message}`) - } + reject(`Worker error: ${e.message}`); + }; - this.worker.postMessage(message) - }) + this.worker.postMessage(message); + }); } async terminate() { - this.worker.terminate() + this.worker.terminate(); } } - diff --git a/keeperapi/src/browser/rng.ts b/keeperapi/src/browser/rng.ts index 8e95c6b..62ed7f6 100644 --- a/keeperapi/src/browser/rng.ts +++ b/keeperapi/src/browser/rng.ts @@ -7,7 +7,7 @@ function rng_get_bytes(ba) { let data = new Uint8Array(ba.length); crypto.getRandomValues(data); - for(let i = 0; i < ba.length; ++i) ba[i] = data[i]; + for (let i = 0; i < ba.length; ++i) ba[i] = data[i]; } export function SecureRandom() {} diff --git a/keeperapi/src/browser/rsa.ts b/keeperapi/src/browser/rsa.ts index ca0f1c6..e309cbb 100644 --- a/keeperapi/src/browser/rsa.ts +++ b/keeperapi/src/browser/rsa.ts @@ -1,47 +1,45 @@ // @ts-nocheck -import {BigInteger, parseBigInt} from "./jsbn"; -import {SecureRandom} from "./rng"; -import {_rsapem_getHexValueArrayOfChildrenFromHex} from './asn1hex'; +import { BigInteger, parseBigInt } from './jsbn'; +import { SecureRandom } from './rng'; +import { _rsapem_getHexValueArrayOfChildrenFromHex } from './asn1hex'; // Depends on jsbn.js and rng.js // Version 1.1: support utf-8 encoding in pkcs1pad2 -function linebrk(s,n) { - var ret = ""; +function linebrk(s, n) { + var ret = ''; var i = 0; - while(i + n < s.length) { - ret += s.substring(i,i+n) + "\n"; + while (i + n < s.length) { + ret += s.substring(i, i + n) + '\n'; i += n; } - return ret + s.substring(i,s.length); + return ret + s.substring(i, s.length); } function byte2Hex(b) { - if(b < 0x10) - return "0" + b.toString(16); - else - return b.toString(16); + if (b < 0x10) return '0' + b.toString(16); + else return b.toString(16); } // PKCS#1 (type 2, random) pad input string s to n bytes, and return a bigint -function pkcs1pad2(s,n) { - if(n < s.length + 11) { // TODO: fix for utf-8 - alert("Message too long for RSA"); +function pkcs1pad2(s, n) { + if (n < s.length + 11) { + // TODO: fix for utf-8 + alert('Message too long for RSA'); return null; } var ba = new Array(); var i = s.length - 1; - while(i >= 0 && n > 0) { + while (i >= 0 && n > 0) { var c = s.charCodeAt(i--); - if(c < 128) { // encode using utf-8 + if (c < 128) { + // encode using utf-8 ba[--n] = c; - } - else if((c > 127) && (c < 2048)) { + } else if (c > 127 && c < 2048) { ba[--n] = (c & 63) | 128; ba[--n] = (c >> 6) | 192; - } - else { + } else { ba[--n] = (c & 63) | 128; ba[--n] = ((c >> 6) & 63) | 128; ba[--n] = (c >> 12) | 224; @@ -50,9 +48,10 @@ function pkcs1pad2(s,n) { ba[--n] = 0; var rng = new SecureRandom(); var x = new Array(); - while(n > 2) { // random non-zero pad + while (n > 2) { + // random non-zero pad x[0] = 0; - while(x[0] == 0) rng.nextBytes(x); + while (x[0] == 0) rng.nextBytes(x); ba[--n] = x[0]; } ba[--n] = 2; @@ -73,13 +72,11 @@ export function RSAKey() { } // Set the public key fields N and e from hex strings -function RSASetPublic(N,E) { - if(N != null && E != null && N.length > 0 && E.length > 0) { - this.n = parseBigInt(N,16); - this.e = parseInt(E,16); - } - else - alert("Invalid RSA public key"); +function RSASetPublic(N, E) { + if (N != null && E != null && N.length > 0 && E.length > 0) { + this.n = parseBigInt(N, 16); + this.e = parseInt(E, 16); + } else alert('Invalid RSA public key'); } // Perform raw public operation on "x": return x^e (mod n) @@ -88,26 +85,25 @@ function RSADoPublic(x) { } function RSADoPrivate(x) { - if(this.p == null || this.q == null) - return x.modPow(this.d, this.n); + if (this.p == null || this.q == null) return x.modPow(this.d, this.n); // TODO: re-calculate any missing CRT params var xp = x.mod(this.p).modPow(this.dmp1, this.p); var xq = x.mod(this.q).modPow(this.dmq1, this.q); - while(xp.compareTo(xq) < 0) - xp = xp.add(this.p); + while (xp.compareTo(xq) < 0) xp = xp.add(this.p); return xp.subtract(xq).multiply(this.coeff).mod(this.p).multiply(this.q).add(xq); } // Return the PKCS#1 RSA encryption of "text" as an even-length hex string function RSAEncrypt(text) { - var m = pkcs1pad2(text,(this.n.bitLength()+7)>>3); - if(m == null) return null; + var m = pkcs1pad2(text, (this.n.bitLength() + 7) >> 3); + if (m == null) return null; var c = this.doPublic(m); - if(c == null) return null; + if (c == null) return null; var h = c.toString(16); - if((h.length & 1) == 0) return h; else return "0" + h; + if ((h.length & 1) == 0) return h; + else return '0' + h; } // Return the PKCS#1 RSA encryption of "text" as a Base64-encoded string @@ -116,25 +112,25 @@ function RSAEncrypt(text) { // if(h) return hex2b64(h); else return null; //} - // Binary safe pkcs1 type 2 padding -function pkcs1pad2hex(hexPlaintext,n) { - if(n < hexPlaintext.length/2 + 11) { - alert("Message too long for RSA"); +function pkcs1pad2hex(hexPlaintext, n) { + if (n < hexPlaintext.length / 2 + 11) { + alert('Message too long for RSA'); return null; } var ba = new Array(); var i = hexPlaintext.length; - while(i >= 2 && n > 0) { - ba[--n] = parseInt(hexPlaintext.slice(i-2, i), 16); + while (i >= 2 && n > 0) { + ba[--n] = parseInt(hexPlaintext.slice(i - 2, i), 16); i -= 2; } ba[--n] = 0; var rng = new SecureRandom(); var x = new Array(); - while(n > 2) { // random non-zero pad + while (n > 2) { + // random non-zero pad x[0] = 0; - while(x[0] == 0) rng.nextBytes(x); + while (x[0] == 0) rng.nextBytes(x); ba[--n] = x[0]; } ba[--n] = 2; @@ -143,19 +139,17 @@ function pkcs1pad2hex(hexPlaintext,n) { } //Binary safe pkcs1 type 2 un-padding -function pkcs1unpad2hex(d,n) { +function pkcs1unpad2hex(d, n) { var b = d.toByteArray(); var i = 0; - while(i < b.length && b[i] == 0) ++i; - if(b.length-i != n-1 || b[i] != 2) - return null; + while (i < b.length && b[i] == 0) ++i; + if (b.length - i != n - 1 || b[i] != 2) return null; ++i; - while(b[i] != 0) - if(++i >= b.length) return null; - var ret = ""; - while(++i < b.length) { + while (b[i] != 0) if (++i >= b.length) return null; + var ret = ''; + while (++i < b.length) { var c = b[i] & 255; - ret += (c < 16) ? '0' + c.toString(16) : c.toString(16); + ret += c < 16 ? '0' + c.toString(16) : c.toString(16); } return ret; } @@ -165,7 +159,7 @@ function pkcs1unpad2hex(d,n) { * @param {boolean} include_private Set to true to include the private bits as well. * @returns */ -function RSAtoASN1Hex (include_private) { +function RSAtoASN1Hex(include_private) { var v = asn('00'); var n = asn(this.n.toString(16)); var e = asn(this.e.toString(16)); @@ -178,33 +172,33 @@ function RSAtoASN1Hex (include_private) { if (typeof include_private !== 'undefined' && include_private) return asn(v + n + e + d + p + q + dmp1 + dmq1 + coeff, '30'); - else - return asn(n + e, '30'); - + else return asn(n + e, '30'); - function asn (data, type) { + function asn(data, type) { if (typeof type === 'undefined') type = '02'; // Pad the data with a leading '0' if necessary - data = (data.length % 2 === 0) ? data : '0' + data; + data = data.length % 2 === 0 ? data : '0' + data; // Pad the data again with a '00' to ensure its positive. Some parser // stupid implementations will freak out on negative RSA bits. - if (parseInt(data.substr(0,2), 16) > 127) - data = '00' + data; + if (parseInt(data.substr(0, 2), 16) > 127) data = '00' + data; return type + asn_length(data) + data; } - function asn_length (item) { - var length = item.length / 2; // We're dealing with hex here - var length_hex = (length.toString(16).length % 2 === 0) ? length.toString(16) : '0' + length.toString(16); + function asn_length(item) { + var length = item.length / 2; // We're dealing with hex here + var length_hex = length.toString(16).length % 2 === 0 ? length.toString(16) : '0' + length.toString(16); if (length < 128) { return length_hex; } else { var length_length = 128 + length_hex.length / 2; - var length_length_hex = (length_length.toString(16).length % 2 === 0) ? length_length.toString(16) : '0' + length_length.toString(16); + var length_length_hex = + length_length.toString(16).length % 2 === 0 + ? length_length.toString(16) + : '0' + length_length.toString(16); return length_length_hex + length_hex; } @@ -212,34 +206,33 @@ function RSAtoASN1Hex (include_private) { } function RSAEncryptBinary(hex) { - var m = pkcs1pad2hex(hex,(this.n.bitLength()+7)>>3); - if(m == null) return null; + var m = pkcs1pad2hex(hex, (this.n.bitLength() + 7) >> 3); + if (m == null) return null; var c = this.doPublic(m); - if(c == null) return null; + if (c == null) return null; var h = c.toString(16); - if((h.length & 1) == 0) return h; else return "0" + h; + if ((h.length & 1) == 0) return h; + else return '0' + h; } function RSADecryptBinary(ctext) { var c = parseBigInt(ctext, 16); var m = this.doPrivate(c); - if(m == null) return null; - return pkcs1unpad2hex(m, (this.n.bitLength()+7)>>3); + if (m == null) return null; + return pkcs1unpad2hex(m, (this.n.bitLength() + 7) >> 3); } -function RSASetPrivateEx(N,E,D,P,Q,DP,DQ,C) { - if(N != null && E != null && N.length > 0 && E.length > 0) { - this.n = parseBigInt(N,16); - this.e = parseInt(E,16); - this.d = parseBigInt(D,16); - this.p = parseBigInt(P,16); - this.q = parseBigInt(Q,16); - this.dmp1 = parseBigInt(DP,16); - this.dmq1 = parseBigInt(DQ,16); - this.coeff = parseBigInt(C,16); - } - else - alert("Invalid RSA private key"); +function RSASetPrivateEx(N, E, D, P, Q, DP, DQ, C) { + if (N != null && E != null && N.length > 0 && E.length > 0) { + this.n = parseBigInt(N, 16); + this.e = parseInt(E, 16); + this.d = parseBigInt(D, 16); + this.p = parseBigInt(P, 16); + this.q = parseBigInt(Q, 16); + this.dmp1 = parseBigInt(DP, 16); + this.dmq1 = parseBigInt(DQ, 16); + this.coeff = parseBigInt(C, 16); + } else alert('Invalid RSA private key'); } function RSASetPrivateKeyFromASN1HexString(keyHex) { @@ -261,4 +254,3 @@ RSAKey.prototype.decryptBinary = RSADecryptBinary; RSAKey.prototype.toASN1HexString = RSAtoASN1Hex; RSAKey.prototype.setPrivateEx = RSASetPrivateEx; RSAKey.prototype.setPrivateKeyFromASN1HexString = RSASetPrivateKeyFromASN1HexString; - diff --git a/keeperapi/src/commands.ts b/keeperapi/src/commands.ts index bb51227..8d44a46 100644 --- a/keeperapi/src/commands.ts +++ b/keeperapi/src/commands.ts @@ -1,75 +1,79 @@ export type BaseRequest = { - command: string - username?: string - client_version?: string -} + command: string; + username?: string; + client_version?: string; +}; type AuthorizedRequest = { - session_token?: string - device_id?: string -} + session_token?: string; + device_id?: string; +}; export type SyncDataInclude = - | "record" //* - | "typed_record" - | "app_record" - | "shared_folder" //* - | "sfheaders" //* - | "sfusers" - | "sfrecords" - | "folders" - | "teams" //* - | "sharing_changes" //* - | "non_shared_data" //* - | "pending_shares" //* - | "profile" - | "pending_team_users" - | "user_auth" - | "reused_passwords" - | "explicit" + | 'record' //* + | 'typed_record' + | 'app_record' + | 'shared_folder' //* + | 'sfheaders' //* + | 'sfusers' + | 'sfrecords' + | 'folders' + | 'teams' //* + | 'sharing_changes' //* + | 'non_shared_data' //* + | 'pending_shares' //* + | 'profile' + | 'pending_team_users' + | 'user_auth' + | 'reused_passwords' + | 'explicit'; type SyncDownRequest = { - revision: number - client_time?: number + revision: number; + client_time?: number; include: SyncDataInclude[]; -} +}; export type KeeperResponse = { - command: string - result: string - result_code: string - message?: string -} + command: string; + result: string; + result_code: string; + message?: string; +}; export type KeeperHttpResponse = { - statusCode: number - headers: unknown - data: Uint8Array -} + statusCode: number; + headers: unknown; + data: Uint8Array; +}; export type RestCommand = { - baseRequest: BaseRequest - request: Request - authorization?: AuthorizedRequest -} + baseRequest: BaseRequest; + request: Request; + authorization?: AuthorizedRequest; +}; -function createCommand(request: Request, command: string, noAuth: boolean = false): RestCommand { +function createCommand( + request: Request, + command: string, + noAuth: boolean = false +): RestCommand { const restCommand: RestCommand = { baseRequest: { command: command, }, - request - } + request, + }; if (!noAuth) { - restCommand.authorization = {} + restCommand.authorization = {}; } - return restCommand + return restCommand; } type NonSharedData = { record_uid: string; data: string; -} +}; type UserPermission = { owner: boolean; @@ -77,7 +81,7 @@ type UserPermission = { editable: boolean; awaiting_approval: boolean; username: string; -} +}; export type RecordData = { record_uid: string; @@ -91,7 +95,7 @@ export type RecordData = { user_permissions?: UserPermission[]; owner_uid?: string; link_key?: string; -} +}; export type RecordMetaData = { record_uid: string; @@ -100,14 +104,14 @@ export type RecordMetaData = { can_share: boolean; can_edit: boolean; record_key_type: number; -} +}; type SharedFolderRecord = { record_uid: string; record_key: string; can_share: boolean; can_edit: boolean; -} +}; export type SharedFolder = { default_can_edit: boolean; @@ -124,13 +128,13 @@ export type SharedFolder = { manage_users: boolean; manage_records: boolean; shared_folder_key: string; -} +}; type TeamSharedFolderKey = { key_type: number; shared_folder_key: string; shared_folder_uid: string; -} +}; type Team = { restrict_edit: boolean; @@ -142,7 +146,7 @@ type Team = { shared_folder_keys: TeamSharedFolderKey[]; team_uid: string; restrict_share: boolean; -} +}; type SyncDownResponse = KeeperResponse & { full_sync: boolean; @@ -154,128 +158,140 @@ type SyncDownResponse = KeeperResponse & { revision: number; shared_folders: SharedFolder[]; shared_folder_folder_records: { - record_uid: string, - folder_uid: string, - shared_folder_uid: string, - revision: number - }[] + record_uid: string; + folder_uid: string; + shared_folder_uid: string; + revision: number; + }[]; teams: Team[]; user_folder_shared_folders: { - shared_folder_uid: string, - revision: number - }[] -} + shared_folder_uid: string; + revision: number; + }[]; +}; export const syncDownCommand = (request: SyncDownRequest): RestCommand => - createCommand({ - ...request, - client_time: new Date().getTime() - }, 'sync_down') + createCommand( + { + ...request, + client_time: new Date().getTime(), + }, + 'sync_down' + ); export type RoleEnforcementAddRequest = { - role_id: number, - enforcement: string, - value?: unknown -} + role_id: number; + enforcement: string; + value?: unknown; +}; -export const roleEnforcementAddCommand = (request: RoleEnforcementAddRequest): RestCommand => - createCommand(request, 'role_enforcement_add') +export const roleEnforcementAddCommand = ( + request: RoleEnforcementAddRequest +): RestCommand => createCommand(request, 'role_enforcement_add'); export type MoveRequest = { - to_type: 'user_folder' | 'shared_folder' | 'shared_folder_folder' - to_uid?: string - link: boolean - move: MoveObject[] - transition_keys: TransitionKeyObject[] -} + to_type: 'user_folder' | 'shared_folder' | 'shared_folder_folder'; + to_uid?: string; + link: boolean; + move: MoveObject[]; + transition_keys: TransitionKeyObject[]; +}; export type MoveObject = { - type: 'record' | 'user_folder' | 'shared_folder' | 'shared_folder_folder' - uid: string - from_type: 'user_folder' | 'shared_folder' | 'shared_folder_folder' - from_uid?: string - can_edit?: boolean - can_reshare?: boolean - cascade: boolean -} + type: 'record' | 'user_folder' | 'shared_folder' | 'shared_folder_folder'; + uid: string; + from_type: 'user_folder' | 'shared_folder' | 'shared_folder_folder'; + from_uid?: string; + can_edit?: boolean; + can_reshare?: boolean; + cascade: boolean; +}; export type TransitionKeyObject = { - uid: string - key: string -} + uid: string; + key: string; +}; -export const moveCommand = (request: MoveRequest): RestCommand => createCommand(request, 'move') +export const moveCommand = (request: MoveRequest): RestCommand => + createCommand(request, 'move'); export type ShareAccountRequest = { - to_role_id: number + to_role_id: number; // do not include transfer key for EC only https://keeper.atlassian.net/wiki/x/OYCoAg - transfer_key?: string -} + transfer_key?: string; +}; -export const shareAccountCommand = (request: ShareAccountRequest): RestCommand => createCommand(request, 'share_account') +export const shareAccountCommand = (request: ShareAccountRequest): RestCommand => + createCommand(request, 'share_account'); export type RecordAddRequest = { - record_uid: string - record_key: string - record_type: string - folder_type: string - how_long_ago: number - folder_uid: string - folder_key: string - data: string - extra: string - non_shared_data: string - file_ids: string[] -} + record_uid: string; + record_key: string; + record_type: string; + folder_type: string; + how_long_ago: number; + folder_uid: string; + folder_key: string; + data: string; + extra: string; + non_shared_data: string; + file_ids: string[]; +}; -export const recordAddCommand = (request: RecordAddRequest): RestCommand => createCommand(request, 'record_add') +export const recordAddCommand = (request: RecordAddRequest): RestCommand => + createCommand(request, 'record_add'); export type RecordPreDeleteObject = { - object_uid: string - object_type: 'record' - from_uid: string - from_type: string - delete_resolution: 'unlink' -} + object_uid: string; + object_type: 'record'; + from_uid: string; + from_type: string; + delete_resolution: 'unlink'; +}; export type RecordPreDeleteRequest = { - objects: RecordPreDeleteObject[] -} + objects: RecordPreDeleteObject[]; +}; export type DeletionSummary = { - deletion_summary: string[] -} + deletion_summary: string[]; +}; export type PreDeleteResponse = { - pre_delete_token: string - would_delete: DeletionSummary -} + pre_delete_token: string; + would_delete: DeletionSummary; +}; export type KeeperPreDeleteResponse = { - result: string - result_code: string - message?: string - pre_delete_response: PreDeleteResponse -} + result: string; + result_code: string; + message?: string; + pre_delete_response: PreDeleteResponse; +}; export type RecordDeleteRequest = { - pre_delete_token: string -} + pre_delete_token: string; +}; -export const recordPreDeleteCommand = (request: RecordPreDeleteRequest): RestCommand => createCommand(request, 'pre_delete') -export const recordDeleteCommand = (request: RecordDeleteRequest): RestCommand => createCommand(request, 'delete') +export const recordPreDeleteCommand = ( + request: RecordPreDeleteRequest +): RestCommand => createCommand(request, 'pre_delete'); +export const recordDeleteCommand = (request: RecordDeleteRequest): RestCommand => + createCommand(request, 'delete'); export type EnterpriseSettingInclude = - | "AuditSyncConfig" - | "AuditSyncContext" - | "AuditAlertsConfig" - | "BackupConfig" - | "AuditReportFilter" - | "AuditAlertFilter" - | "AuditAlertContext" - | "RDControllerConfig" + | 'AuditSyncConfig' + | 'AuditSyncContext' + | 'AuditAlertsConfig' + | 'BackupConfig' + | 'AuditReportFilter' + | 'AuditAlertFilter' + | 'AuditAlertContext' + | 'RDControllerConfig'; export type PutEnterpriseSettingRequest = { - type: EnterpriseSettingInclude - settings: any -} + type: EnterpriseSettingInclude; + settings: any; +}; -export const putEnterpriseSettingCommand = (request: PutEnterpriseSettingRequest): RestCommand => createCommand(request, 'put_enterprise_setting') +export const putEnterpriseSettingCommand = ( + request: PutEnterpriseSettingRequest +): RestCommand => createCommand(request, 'put_enterprise_setting'); /** export class KeeperCommand { diff --git a/keeperapi/src/company.ts b/keeperapi/src/company.ts index bd32b1e..c764571 100644 --- a/keeperapi/src/company.ts +++ b/keeperapi/src/company.ts @@ -1,4 +1,4 @@ -import {Auth} from "./auth"; +import { Auth } from './auth'; // import { // EnterpriseAllocateIdsCommand, // EnterpriseDataInclude, @@ -18,8 +18,8 @@ import { decryptKey, generateUid, generateEncryptionKey, -} from "./utils"; -import {platform} from "./platform"; +} from './utils'; +import { platform } from './platform'; // export class Company { // @@ -240,4 +240,4 @@ import {platform} from "./platform"; // } // } -export type EncryptedData = {displayname: string} +export type EncryptedData = { displayname: string }; diff --git a/keeperapi/src/configuration.ts b/keeperapi/src/configuration.ts index bc99ed5..56ebe7a 100644 --- a/keeperapi/src/configuration.ts +++ b/keeperapi/src/configuration.ts @@ -1,56 +1,56 @@ -import {KeeperEnvironment} from "./endpoint"; -import {Authentication} from './proto'; +import { KeeperEnvironment } from './endpoint'; +import { Authentication } from './proto'; import TwoFactorExpiration = Authentication.TwoFactorExpiration; import TwoFactorPushType = Authentication.TwoFactorPushType; import TwoFactorChannelType = Authentication.TwoFactorChannelType; -import {KeyWrapper} from './platform'; -import {SessionParams} from "./auth"; +import { KeyWrapper } from './platform'; +import { SessionParams } from './auth'; -export type KeeperHost = KeeperEnvironment | string +export type KeeperHost = KeeperEnvironment | string; export interface ClientConfiguration { - authUI?: AuthUI - authUI3?: AuthUI3 - clientVersion?: string - deviceConfig?: DeviceConfig // v15+ device config - deviceToken?: Uint8Array // pre - v15 device token - host: KeeperHost, - locale?: string - onCommandFailure?: (error: KeeperError) => void, - onDeviceConfig?: (deviceConfig: DeviceConfig, host: KeeperHost) => Promise // event to store device config - onDeviceToken?: (deviceToken: Uint8Array) => void // event to store device token - onRegionChanged?: (newRegion: string) => Promise, - onDeviceVerified?: (isDeviceVerified: boolean) => void - sessionStorage?: SessionStorage + authUI?: AuthUI; + authUI3?: AuthUI3; + clientVersion?: string; + deviceConfig?: DeviceConfig; // v15+ device config + deviceToken?: Uint8Array; // pre - v15 device token + host: KeeperHost; + locale?: string; + onCommandFailure?: (error: KeeperError) => void; + onDeviceConfig?: (deviceConfig: DeviceConfig, host: KeeperHost) => Promise; // event to store device config + onDeviceToken?: (deviceToken: Uint8Array) => void; // event to store device token + onRegionChanged?: (newRegion: string) => Promise; + onDeviceVerified?: (isDeviceVerified: boolean) => void; + sessionStorage?: SessionStorage; kvs?: KeyValueStorage; - useSessionResumption?: boolean - iterations?: number - salt?: Uint8Array - useHpkeForTransmissionKey?: boolean + useSessionResumption?: boolean; + iterations?: number; + salt?: Uint8Array; + useHpkeForTransmissionKey?: boolean; } export interface ClientConfigurationInternal extends ClientConfiguration { - deviceConfig: DeviceConfig // v15+ device config + deviceConfig: DeviceConfig; // v15+ device config } export type KeeperError = { - additional_info?: string - error?: string - location?: string - message?: string - path?: string - result_code?: string - key_id?: number - qrc_ec_key_id?: number - region_host?: string -} + additional_info?: string; + error?: string; + location?: string; + message?: string; + path?: string; + result_code?: string; + key_id?: number; + qrc_ec_key_id?: number; + region_host?: string; +}; export interface DeviceConfig { - deviceName?: string - deviceToken?: Uint8Array - privateKey?: Uint8Array - publicKey?: Uint8Array - transmissionKeyId?: number - mlKemPublicKeyId?: number + deviceName?: string; + deviceToken?: Uint8Array; + privateKey?: Uint8Array; + publicKey?: Uint8Array; + transmissionKeyId?: number; + mlKemPublicKeyId?: number; /** * Overrides `ClientConfiguration.useHpkeForTransmissionKey` if set. * Relevant for GovCloud, which at time of writing has no HPKE support. @@ -58,7 +58,7 @@ export interface DeviceConfig { * may tell the client NOT to use HPKE any more even after it once did, * so this caches that state. */ - useHpkeTransmission?: boolean + useHpkeTransmission?: boolean; } export interface SessionStorage { @@ -84,25 +84,25 @@ export interface VendorConfiguration { } export interface TransmissionKey { - key: Uint8Array - ecKeyId: number - ecEncryptedKey: Uint8Array - mlKemKeyId: number + key: Uint8Array; + ecKeyId: number; + ecEncryptedKey: Uint8Array; + mlKemKeyId: number; } export interface QrcMessageKey { - clientEcPublicKey: Uint8Array - mlKemEncapsulatedKey: Uint8Array - data: Uint8Array - msgVersion: number - ecKeyId: number + clientEcPublicKey: Uint8Array; + mlKemEncapsulatedKey: Uint8Array; + data: Uint8Array; + msgVersion: number; + ecKeyId: number; } export interface TransmissionKeyHpke { - key: Uint8Array - mlKemKeyId: number - qrcMessageKey: QrcMessageKey - optionalData?: Uint8Array + key: Uint8Array; + mlKemKeyId: number; + qrcMessageKey: QrcMessageKey; + optionalData?: Uint8Array; } export interface AuthUI { @@ -111,19 +111,19 @@ export interface AuthUI { } export interface AuthUI3 { - waitForDeviceApproval(channels: DeviceApprovalChannel[], isCloud: boolean): Promise - waitForTwoFactorCode(channels: TwoFactorChannelData[], cancel: Promise): Promise - getPassword?(isAlternate: boolean): Promise - getSSOToken?(redirectUrl: string): Promise - redirectCallback?(url: string): Promise - ssoLogin?(url: string): Promise - idpLogout?(url: string): Promise + waitForDeviceApproval(channels: DeviceApprovalChannel[], isCloud: boolean): Promise; + waitForTwoFactorCode(channels: TwoFactorChannelData[], cancel: Promise): Promise; + getPassword?(isAlternate: boolean): Promise; + getSSOToken?(redirectUrl: string): Promise; + redirectCallback?(url: string): Promise; + ssoLogin?(url: string): Promise; + idpLogout?(url: string): Promise; } export type TwoFactorInput = { - twoFactorCode: string - desiredExpiration: TwoFactorExpiration -} + twoFactorCode: string; + desiredExpiration: TwoFactorExpiration; +}; export enum DeviceVerificationMethods { Email, @@ -133,21 +133,21 @@ export enum DeviceVerificationMethods { } export type DeviceApprovalChannel = { - channel: DeviceVerificationMethods - sendApprovalRequest: () => Promise - validateCode?: (code: string) => Promise - setExpiration?: (expiration: TwoFactorExpiration) => void -} + channel: DeviceVerificationMethods; + sendApprovalRequest: () => Promise; + validateCode?: (code: string) => Promise; + setExpiration?: (expiration: TwoFactorExpiration) => void; +}; export type TwoFactorChannelData = { - availablePushes?: TwoFactorPushType[], - channel: Authentication.ITwoFactorChannelInfo - sendPush?: (type: TwoFactorPushType) => void - sendCode: (code: string) => void - setExpiration: (expiration: TwoFactorExpiration) => void -} + availablePushes?: TwoFactorPushType[]; + channel: Authentication.ITwoFactorChannelInfo; + sendPush?: (type: TwoFactorPushType) => void; + sendCode: (code: string) => void; + setExpiration: (expiration: TwoFactorExpiration) => void; +}; export type LoginError = { error: string; message: string; -} +}; diff --git a/keeperapi/src/cryptoWorker.ts b/keeperapi/src/cryptoWorker.ts index 9c802ca..10d54cb 100644 --- a/keeperapi/src/cryptoWorker.ts +++ b/keeperapi/src/cryptoWorker.ts @@ -1,127 +1,125 @@ -import { EncryptionType, KeyStorage, platform, CryptoTask } from "./platform" +import { EncryptionType, KeyStorage, platform, CryptoTask } from './platform'; -export type CryptoWorkerKeys = Record +export type CryptoWorkerKeys = Record; -export type CryptoResults = - Record +export type CryptoResults = Record; export type CryptoWorkerMessage = { - data: CryptoTask[] - keys: CryptoWorkerKeys -} + data: CryptoTask[]; + keys: CryptoWorkerKeys; +}; export interface CryptoWorkerPoolConfig { - createWorker(): Promise - numThreads: number - getKey: (keyId: string, type: EncryptionType) => Promise + createWorker(): Promise; + numThreads: number; + getKey: (keyId: string, type: EncryptionType) => Promise; } export class CryptoWorkerPool { + private workers: CryptoWorker[] = []; - private workers: CryptoWorker[] = [] - - private config: CryptoWorkerPoolConfig + private config: CryptoWorkerPoolConfig; constructor(config: CryptoWorkerPoolConfig) { - this.config = config + this.config = config; } - + async open() { while (this.workers.length < this.config.numThreads) { - const worker = await this.config.createWorker() - this.workers.push(worker) + const worker = await this.config.createWorker(); + this.workers.push(worker); } } async close() { for (let worker of this.workers) { - await worker.terminate() + await worker.terminate(); } - this.workers.length = 0 + this.workers.length = 0; } private async getKeys(tasks: CryptoTask[]): Promise { - const keys: CryptoWorkerKeys = {} + const keys: CryptoWorkerKeys = {}; for (const task of tasks) { - const {keyId, encryptionType} = task - if (keys[keyId]) continue + const { keyId, encryptionType } = task; + if (keys[keyId]) continue; try { - keys[keyId] = await this.config.getKey(keyId, encryptionType) + keys[keyId] = await this.config.getKey(keyId, encryptionType); } catch (e) { - console.error(e) + console.error(e); } } - return keys + return keys; } async runTasks(tasks: CryptoTask[]): Promise { // Split into chunks for each worker - const numberOfItems = tasks.length - const chunkSize = Math.ceil(numberOfItems / this.workers.length) - const chunks = this.chunk(tasks, chunkSize) + const numberOfItems = tasks.length; + const chunkSize = Math.ceil(numberOfItems / this.workers.length); + const chunks = this.chunk(tasks, chunkSize); // Issue concurrent requests const chunkedResults = await Promise.all( - chunks.map(async (chunk, index) => { - const worker: CryptoWorker = this.workers[index] - const keys = await this.getKeys(chunk) - return worker.sendMessage({ - data: chunk, - keys + chunks.map(async (chunk, index) => { + const worker: CryptoWorker = this.workers[index]; + const keys = await this.getKeys(chunk); + return worker.sendMessage({ + data: chunk, + keys, + }); }) - }) - ) + ); // Merge and return results - return Object.assign({}, ...chunkedResults) + return Object.assign({}, ...chunkedResults); } private chunk(array: T[], chunkSize: number): T[][] { - const chunks: T[][] = [] + const chunks: T[][] = []; while (array.length) { // Important note: Array.splice drains the input array, // but faster than Array.slice - chunks.push(array.splice(0, chunkSize)) + chunks.push(array.splice(0, chunkSize)); } - return chunks + return chunks; } } export interface CryptoWorker { - - sendMessage(message: CryptoWorkerMessage): Promise - - terminate(): Promise + sendMessage(message: CryptoWorkerMessage): Promise; + terminate(): Promise; } export async function handleCryptoWorkerMessage(message: CryptoWorkerMessage): Promise { - const {data, keys} = message + const { data, keys } = message; const keyStorage: KeyStorage = { getKeyBytes: async (keyId) => { - return keys[keyId] + return keys[keyId]; }, saveKeyBytes: async (_keyId, _key) => { // unused - } - } + }, + }; - let results: CryptoResults = {} - await Promise.all(data.map(async (task) => { - const {data, dataId, keyId, encryptionType} = task - try { - const keyBytes = await platform.decrypt(data, keyId, encryptionType, keyStorage) - results[dataId] = keyBytes - } catch (e: any) { - console.error(`The key ${dataId} cannot be decrypted (${e.message})`) - } - })) + let results: CryptoResults = {}; + await Promise.all( + data.map(async (task) => { + const { data, dataId, keyId, encryptionType } = task; + try { + const keyBytes = await platform.decrypt(data, keyId, encryptionType, keyStorage); + results[dataId] = keyBytes; + } catch (e: any) { + console.error(`The key ${dataId} cannot be decrypted (${e.message})`); + } + }) + ); - return results -} \ No newline at end of file + return results; +} diff --git a/keeperapi/src/endpoint.ts b/keeperapi/src/endpoint.ts index ff5a87f..defa9d4 100644 --- a/keeperapi/src/endpoint.ts +++ b/keeperapi/src/endpoint.ts @@ -1,24 +1,28 @@ -import {KeeperError} from './configuration' -import {Authentication, Push, SsoCloud} from './proto' -import {platform} from './platform' +import { KeeperError } from './configuration'; +import { Authentication, Push, SsoCloud } from './proto'; +import { platform } from './platform'; import { formatTimeDiff, generateTransmissionKey, generateHpkeTransmissionKey, getKeeperUrl, - isTwoFactorResultCode, log, + isTwoFactorResultCode, + log, normal64Bytes, - webSafe64FromBytes -} from './utils' + webSafe64FromBytes, +} from './utils'; import { - RestMessage, RestInMessage, RestOutMessage, RestActionMessage, + RestMessage, + RestInMessage, + RestOutMessage, + RestActionMessage, deviceMessage, preLoginMessage, registerDeviceMessage, registerDeviceInRegionMessage, - updateDeviceMessage -} from './restMessages' -import {ClientConfigurationInternal, TransmissionKey} from './configuration'; + updateDeviceMessage, +} from './restMessages'; +import { ClientConfigurationInternal, TransmissionKey } from './configuration'; import ApiRequestPayload = Authentication.ApiRequestPayload; import ApiRequest = Authentication.ApiRequest; import IDeviceResponse = Authentication.IDeviceResponse; @@ -26,94 +30,103 @@ import IPreLoginResponse = Authentication.IPreLoginResponse; import WssClientResponse = Push.WssClientResponse; import WssConnectionRequest = Push.WssConnectionRequest; import SsoCloudResponse = SsoCloud.SsoCloudResponse; -import {KeeperHttpResponse, RestCommand} from './commands' -import {AllowedEcKeyIds, AllowedMlKemKeyIds, isAllowedEcKeyId, isAllowedMlKemKeyId} from './transmissionKeys' +import { KeeperHttpResponse, RestCommand } from './commands'; +import { AllowedEcKeyIds, AllowedMlKemKeyIds, isAllowedEcKeyId, isAllowedMlKemKeyId } from './transmissionKeys'; export type ExecuteRestOptions = { - skipRegionRedirect?: boolean -} + skipRegionRedirect?: boolean; +}; export class KeeperEndpoint { - private _transmissionKey?: TransmissionKey - private locale?: string - public deviceToken?: Uint8Array | null - public clientVersion + private _transmissionKey?: TransmissionKey; + private locale?: string; + public deviceToken?: Uint8Array | null; + public clientVersion; - private onsitePrivateKey: Uint8Array | null = null - private onsitePublicKey: Uint8Array | null = null + private onsitePrivateKey: Uint8Array | null = null; + private onsitePublicKey: Uint8Array | null = null; - private useHpkeForTransmissionKey: boolean = false + private useHpkeForTransmissionKey: boolean = false; constructor(private options: ClientConfigurationInternal) { if (options.deviceToken) { - this.deviceToken = options.deviceToken + this.deviceToken = options.deviceToken; } if (options.locale) { - this.locale = options.locale + this.locale = options.locale; } if (options.useHpkeForTransmissionKey && options.deviceConfig.useHpkeTransmission !== false) { - this.useHpkeForTransmissionKey = true + this.useHpkeForTransmissionKey = true; } } - async getTransmissionKey():Promise { - const DEFAULT_PROD_EC_KEY_ID = 10 - const DEFAULT_PROD_ML_KEM_KEY_ID = 136 - const deviceConfigTransmissionKeyId = this.options.deviceConfig.transmissionKeyId || DEFAULT_PROD_EC_KEY_ID - const deviceConfigMlKemKeyId = this.options.deviceConfig.mlKemPublicKeyId || DEFAULT_PROD_ML_KEM_KEY_ID - if(!this._transmissionKey && isAllowedEcKeyId(deviceConfigTransmissionKeyId) && isAllowedMlKemKeyId(deviceConfigMlKemKeyId)){ - this._transmissionKey = await generateTransmissionKey(deviceConfigTransmissionKeyId, deviceConfigMlKemKeyId) - } else if(!this._transmissionKey){ - this._transmissionKey = await generateTransmissionKey(DEFAULT_PROD_EC_KEY_ID, DEFAULT_PROD_ML_KEM_KEY_ID) + async getTransmissionKey(): Promise { + const DEFAULT_PROD_EC_KEY_ID = 10; + const DEFAULT_PROD_ML_KEM_KEY_ID = 136; + const deviceConfigTransmissionKeyId = this.options.deviceConfig.transmissionKeyId || DEFAULT_PROD_EC_KEY_ID; + const deviceConfigMlKemKeyId = this.options.deviceConfig.mlKemPublicKeyId || DEFAULT_PROD_ML_KEM_KEY_ID; + if ( + !this._transmissionKey && + isAllowedEcKeyId(deviceConfigTransmissionKeyId) && + isAllowedMlKemKeyId(deviceConfigMlKemKeyId) + ) { + this._transmissionKey = await generateTransmissionKey( + deviceConfigTransmissionKeyId, + deviceConfigMlKemKeyId + ); + } else if (!this._transmissionKey) { + this._transmissionKey = await generateTransmissionKey(DEFAULT_PROD_EC_KEY_ID, DEFAULT_PROD_ML_KEM_KEY_ID); } - return this._transmissionKey + return this._transmissionKey; } getUrl(forPath: string): string { - return getKeeperUrl(this.options.host, forPath) + return getKeeperUrl(this.options.host, forPath); } async getDeviceToken(): Promise { - return this.executeRest(deviceMessage({ - clientVersion: this.clientVersion, - deviceName: 'JS Keeper API' - })) + return this.executeRest( + deviceMessage({ + clientVersion: this.clientVersion, + deviceName: 'JS Keeper API', + }) + ); } async getPreLogin(username: string): Promise { - if (!this.deviceToken) { - console.log('Obtaining device token...') - let deviceResponse = await this.getDeviceToken() + console.log('Obtaining device token...'); + let deviceResponse = await this.getDeviceToken(); if (!deviceResponse.encryptedDeviceToken) { - throw Error(`Device token was not created. Status: ${deviceResponse.status}`) + throw Error(`Device token was not created. Status: ${deviceResponse.status}`); } - this.deviceToken = deviceResponse.encryptedDeviceToken + this.deviceToken = deviceResponse.encryptedDeviceToken; if (this.options.onDeviceToken) { - this.options.onDeviceToken(this.deviceToken) + this.options.onDeviceToken(this.deviceToken); } } while (true) { try { - return await this.executeRest(preLoginMessage({ - authRequest: { - clientVersion: this.clientVersion, - username: username, - encryptedDeviceToken: this.deviceToken - }, - loginType: Authentication.LoginType.NORMAL - })) + return await this.executeRest( + preLoginMessage({ + authRequest: { + clientVersion: this.clientVersion, + username: username, + encryptedDeviceToken: this.deviceToken, + }, + loginType: Authentication.LoginType.NORMAL, + }) + ); } catch (e) { - if (!(e instanceof Error)) - throw(e) - let errorObj = JSON.parse(e.message) + if (!(e instanceof Error)) throw e; + let errorObj = JSON.parse(e.message); if (errorObj.error === 'region_redirect') { - this.options.host = errorObj.region_host - console.log(`Redirecting to ${this.options.host}`) + this.options.host = errorObj.region_host; + console.log(`Redirecting to ${this.options.host}`); } else { - throw(e) + throw e; } } } @@ -124,54 +137,66 @@ export class KeeperEndpoint { // Case 2 existing device on 14, edt but no keys - call device update // Case 3 existing device on 15+, has edt and keys - skip registration - const deviceConfig = this.options.deviceConfig + const deviceConfig = this.options.deviceConfig; - if (deviceConfig.deviceToken && deviceConfig.privateKey && deviceConfig.publicKey) { // Case 1 - return + if (deviceConfig.deviceToken && deviceConfig.privateKey && deviceConfig.publicKey) { + // Case 1 + return; } - const ecdh = await platform.generateECKeyPair() - deviceConfig.publicKey = ecdh.publicKey - deviceConfig.privateKey = ecdh.privateKey + const ecdh = await platform.generateECKeyPair(); + deviceConfig.publicKey = ecdh.publicKey; + deviceConfig.privateKey = ecdh.privateKey; if (deviceConfig.deviceToken) { const devUpdMsg = updateDeviceMessage({ encryptedDeviceToken: deviceConfig.deviceToken, clientVersion: this.options.clientVersion, deviceName: deviceConfig.deviceName, devicePublicKey: deviceConfig.publicKey, - }) - await this.executeRestAction(devUpdMsg) + }); + await this.executeRestAction(devUpdMsg); } else { const devRegMsg = registerDeviceMessage({ clientVersion: this.options.clientVersion, deviceName: deviceConfig.deviceName, devicePublicKey: deviceConfig.publicKey, - }) - const devRegResp = await this.executeRest(devRegMsg) + }); + const devRegResp = await this.executeRest(devRegMsg); if (!devRegResp.encryptedDeviceToken) { - throw Error('Device token was not created') + throw Error('Device token was not created'); } - deviceConfig.deviceToken = devRegResp.encryptedDeviceToken + deviceConfig.deviceToken = devRegResp.encryptedDeviceToken; } if (this.options.onDeviceConfig) { await this.options.onDeviceConfig(deviceConfig, this.options.host); } } - async executeRest(message: RestOutMessage | RestMessage, sessionToken?: string, options?: ExecuteRestOptions): Promise { + async executeRest( + message: RestOutMessage | RestMessage, + sessionToken?: string, + options?: ExecuteRestOptions + ): Promise { // @ts-ignore - return this.executeRestInternal(message, sessionToken, options) + return this.executeRestInternal(message, sessionToken, options); } - async executeRestAction(message: RestInMessage | RestActionMessage, sessionToken?: string): Promise { - return this.executeRestInternal(message, sessionToken) + async executeRestAction( + message: RestInMessage | RestActionMessage, + sessionToken?: string + ): Promise { + return this.executeRestInternal(message, sessionToken); } - private async executeRestInternal(message: RestInMessage | RestOutMessage | RestMessage | RestActionMessage, sessionToken?: string, options?: ExecuteRestOptions): Promise { - this._transmissionKey = await this.getTransmissionKey() + private async executeRestInternal( + message: RestInMessage | RestOutMessage | RestMessage | RestActionMessage, + sessionToken?: string, + options?: ExecuteRestOptions + ): Promise { + this._transmissionKey = await this.getTransmissionKey(); while (true) { - const payload = 'toBytes' in message ? message.toBytes() : new Uint8Array() - const apiVersion = message.apiVersion || 0 + const payload = 'toBytes' in message ? message.toBytes() : new Uint8Array(); + const apiVersion = message.apiVersion || 0; const request = await prepareApiRequest({ payload, @@ -179,277 +204,295 @@ export class KeeperEndpoint { sessionToken, locale: this.locale, apiVersion, - useHpkeForTransmissionKey: this.useHpkeForTransmissionKey - }) + useHpkeForTransmissionKey: this.useHpkeForTransmissionKey, + }); log(`Calling REST URL: ${this.getUrl(message.path)}`, 'noCR'); - const startTime = Date.now() - const response = await platform.post(this.getUrl(message.path), request) - log(` (${formatTimeDiff(new Date(Date.now() - startTime))})`, 'CR') - if (!response.data || response.data.length === 0 && response.statusCode === 200) { + const startTime = Date.now(); + const response = await platform.post(this.getUrl(message.path), request); + log(` (${formatTimeDiff(new Date(Date.now() - startTime))})`, 'CR'); + if (!response.data || (response.data.length === 0 && response.statusCode === 200)) { if ('fromBytes' in message) { - throw Error(`Missing expected a response for ${message.path}`) + throw Error(`Missing expected a response for ${message.path}`); } - return + return; } if (response.statusCode != 200) { - console.log("Response code:", response.statusCode); + console.log('Response code:', response.statusCode); } try { - const decrypted = await platform.aesGcmDecrypt(response.data, this._transmissionKey.key) - if ('fromBytes' in message) return message.fromBytes(decrypted) - return + const decrypted = await platform.aesGcmDecrypt(response.data, this._transmissionKey.key); + if ('fromBytes' in message) return message.fromBytes(decrypted); + return; } catch { - const errorMessage = platform.bytesToString(response.data.slice(0, 1000)) + const errorMessage = platform.bytesToString(response.data.slice(0, 1000)); try { - const errorObj: KeeperError = JSON.parse(errorMessage) + const errorObj: KeeperError = JSON.parse(errorMessage); switch (errorObj.error) { case 'key': - let newEcKeyId: AllowedEcKeyIds - let newMlKemKeyId: AllowedMlKemKeyIds - let disableHpke = false + let newEcKeyId: AllowedEcKeyIds; + let newMlKemKeyId: AllowedMlKemKeyIds; + let disableHpke = false; if (errorObj.qrc_ec_key_id && errorObj.key_id && isAllowedEcKeyId(errorObj.qrc_ec_key_id)) { // Server provided both EC and ML-KEM key IDs (HPKE mode) - newEcKeyId = errorObj.qrc_ec_key_id - newMlKemKeyId = errorObj.key_id as AllowedMlKemKeyIds - disableHpke = !isAllowedMlKemKeyId(errorObj.key_id) // disable if unknown ML-KEM key + newEcKeyId = errorObj.qrc_ec_key_id; + newMlKemKeyId = errorObj.key_id as AllowedMlKemKeyIds; + disableHpke = !isAllowedMlKemKeyId(errorObj.key_id); // disable if unknown ML-KEM key } else if (errorObj.key_id && isAllowedEcKeyId(errorObj.key_id) && this._transmissionKey) { // Server provided only EC key ID (non-HPKE mode or fallback) - newEcKeyId = errorObj.key_id - newMlKemKeyId = this._transmissionKey.mlKemKeyId as AllowedMlKemKeyIds // keep current ML-KEM key id + newEcKeyId = errorObj.key_id; + newMlKemKeyId = this._transmissionKey.mlKemKeyId as AllowedMlKemKeyIds; // keep current ML-KEM key id if (this.useHpkeForTransmissionKey) { // If we tried HPKE but server only provided EC key, disable HPKE - disableHpke = true + disableHpke = true; } } else { - throw new Error(`Invalid key rotation request: ${errorMessage}`) + throw new Error(`Invalid key rotation request: ${errorMessage}`); } // Disable HPKE if server doesn't support it or provided unknown ML-KEM key if (disableHpke) { - this.useHpkeForTransmissionKey = false - this.options.deviceConfig.useHpkeTransmission = false + this.useHpkeForTransmissionKey = false; + this.options.deviceConfig.useHpkeTransmission = false; if (this.options.onDeviceConfig) { - await this.options.onDeviceConfig(this.options.deviceConfig, this.options.host) + await this.options.onDeviceConfig(this.options.deviceConfig, this.options.host); } } - await this.updateTransmissionKey(newEcKeyId, newMlKemKeyId) - continue + await this.updateTransmissionKey(newEcKeyId, newMlKemKeyId); + continue; case 'region_redirect': if (options?.skipRegionRedirect) { - throw new Error('region_redirect') + throw new Error('region_redirect'); } - this.options.host = errorObj.region_host! + this.options.host = errorObj.region_host!; if (this.options.onRegionChanged) { await this.options.onRegionChanged(this.options.host); } - continue + continue; case 'device_not_registered': { if (this.options.deviceConfig.deviceToken) { - await this.executeRestInternal(registerDeviceInRegionMessage({ - clientVersion: this.options.clientVersion, - deviceName: this.options.deviceConfig.deviceName, - devicePublicKey: this.options.deviceConfig.publicKey, - encryptedDeviceToken: this.options.deviceConfig.deviceToken - })) - continue + await this.executeRestInternal( + registerDeviceInRegionMessage({ + clientVersion: this.options.clientVersion, + deviceName: this.options.deviceConfig.deviceName, + devicePublicKey: this.options.deviceConfig.publicKey, + encryptedDeviceToken: this.options.deviceConfig.deviceToken, + }) + ); + continue; } } } if (this.options.onCommandFailure) { - this.options.onCommandFailure({ ...errorObj, ...{ path: message.path } }) + this.options.onCommandFailure({ ...errorObj, ...{ path: message.path } }); } - } catch { - } - throw(new Error(errorMessage)) + } catch {} + throw new Error(errorMessage); } } } async executeRestCommand(command: RestCommand): Promise { - this._transmissionKey = await this.getTransmissionKey() - command.baseRequest.client_version = this.clientVersion + this._transmissionKey = await this.getTransmissionKey(); + command.baseRequest.client_version = this.clientVersion; const payload = { ...command.baseRequest, ...command.authorization, - ...command.request - } - const requestBytes = await this.prepareRequest(payload) - const response = await platform.post(this.getUrl('vault/execute_v2_command'), requestBytes) - let decrypted + ...command.request, + }; + const requestBytes = await this.prepareRequest(payload); + const response = await platform.post(this.getUrl('vault/execute_v2_command'), requestBytes); + let decrypted; try { - decrypted = await platform.aesGcmDecrypt(response.data, this._transmissionKey.key) + decrypted = await platform.aesGcmDecrypt(response.data, this._transmissionKey.key); } catch (e) { - const error = platform.bytesToString(response.data) - throw(`Unable to decrypt response: ${error}`) + const error = platform.bytesToString(response.data); + throw `Unable to decrypt response: ${error}`; } - const json = JSON.parse(platform.bytesToString(decrypted)) + const json = JSON.parse(platform.bytesToString(decrypted)); if (json.result !== 'success' && !isTwoFactorResultCode(json.result_code)) { - throw(json) + throw json; } - return json as Response + return json as Response; } async get(path: string): Promise { - return platform.get(this.getUrl(path), {}) + return platform.get(this.getUrl(path), {}); } public async updateTransmissionKey(ecKeyId: AllowedEcKeyIds, mlKemKeyId: AllowedMlKemKeyIds) { - this._transmissionKey = await generateTransmissionKey(ecKeyId, mlKemKeyId) + this._transmissionKey = await generateTransmissionKey(ecKeyId, mlKemKeyId); - this.options.deviceConfig.transmissionKeyId = ecKeyId - this.options.deviceConfig.mlKemPublicKeyId = mlKemKeyId + this.options.deviceConfig.transmissionKeyId = ecKeyId; + this.options.deviceConfig.mlKemPublicKeyId = mlKemKeyId; if (this.options.onDeviceConfig) { await this.options.onDeviceConfig(this.options.deviceConfig, this.options.host); } } - public async prepareRequest(payload: Uint8Array | unknown, sessionToken?: string, apiVersion?: number): Promise { - this._transmissionKey = await this.getTransmissionKey() + public async prepareRequest( + payload: Uint8Array | unknown, + sessionToken?: string, + apiVersion?: number + ): Promise { + this._transmissionKey = await this.getTransmissionKey(); return prepareApiRequest({ payload, transmissionKey: this._transmissionKey, sessionToken, locale: this.locale, apiVersion, - useHpkeForTransmissionKey: this.useHpkeForTransmissionKey - }) + useHpkeForTransmissionKey: this.useHpkeForTransmissionKey, + }); } async decryptPushMessage(pushMessageData: Uint8Array): Promise { - this._transmissionKey = await this.getTransmissionKey() - const decryptedPushMessage = await platform.aesGcmDecrypt(pushMessageData, this._transmissionKey.key) - return WssClientResponse.decode(decryptedPushMessage) + this._transmissionKey = await this.getTransmissionKey(); + const decryptedPushMessage = await platform.aesGcmDecrypt(pushMessageData, this._transmissionKey.key); + return WssClientResponse.decode(decryptedPushMessage); } async getPushConnectionRequest(messageSessionUid: Uint8Array) { - this._transmissionKey = await this.getTransmissionKey() - return getPushConnectionRequest(messageSessionUid, this._transmissionKey, this.options.deviceConfig.deviceToken, this.locale) + this._transmissionKey = await this.getTransmissionKey(); + return getPushConnectionRequest( + messageSessionUid, + this._transmissionKey, + this.options.deviceConfig.deviceToken, + this.locale + ); } - public async prepareSsoPayload(messageSessionUid: Uint8Array, username: string = '', idpSessionId = ''): Promise { - this._transmissionKey = await this.getTransmissionKey() + public async prepareSsoPayload( + messageSessionUid: Uint8Array, + username: string = '', + idpSessionId = '' + ): Promise { + this._transmissionKey = await this.getTransmissionKey(); const payload: SsoCloud.ISsoCloudRequest = { - "embedded": true, - "clientVersion": this.clientVersion, - "dest": "vault", - "forceLogin": false, - "messageSessionUid": messageSessionUid, - "idpSessionId": idpSessionId, - "username": username - } + embedded: true, + clientVersion: this.clientVersion, + dest: 'vault', + forceLogin: false, + messageSessionUid: messageSessionUid, + idpSessionId: idpSessionId, + username: username, + }; const request = await prepareApiRequest({ payload: SsoCloud.SsoCloudRequest.encode(payload).finish(), transmissionKey: this._transmissionKey, locale: this.locale, - useHpkeForTransmissionKey: this.useHpkeForTransmissionKey - }) - return webSafe64FromBytes(request) + useHpkeForTransmissionKey: this.useHpkeForTransmissionKey, + }); + return webSafe64FromBytes(request); } public async decryptCloudSsoResponse(token: string): Promise { - this._transmissionKey = await this.getTransmissionKey() - return decryptCloudSsoResponse(token, this._transmissionKey.key) + this._transmissionKey = await this.getTransmissionKey(); + return decryptCloudSsoResponse(token, this._transmissionKey.key); } - public async getOnsitePublicKey(ecOnly:boolean): Promise { + public async getOnsitePublicKey(ecOnly: boolean): Promise { if (!this.onsitePublicKey || !this.onsitePrivateKey) { - if(ecOnly){ - const {privateKey, publicKey} = await platform.generateECKeyPair() + if (ecOnly) { + const { privateKey, publicKey } = await platform.generateECKeyPair(); - this.onsitePrivateKey = privateKey - this.onsitePublicKey = publicKey + this.onsitePrivateKey = privateKey; + this.onsitePublicKey = publicKey; } else { - const {privateKey, publicKey} = await platform.generateRSAKeyPair() + const { privateKey, publicKey } = await platform.generateRSAKeyPair(); - this.onsitePrivateKey = privateKey - this.onsitePublicKey = publicKey + this.onsitePrivateKey = privateKey; + this.onsitePublicKey = publicKey; } } - return webSafe64FromBytes(this.onsitePublicKey) + return webSafe64FromBytes(this.onsitePublicKey); } public decryptOnsiteSsoPassword(password: string): string { - const encryptedPasswordBytes = normal64Bytes(password) + const encryptedPasswordBytes = normal64Bytes(password); if (!this.onsitePrivateKey) { - throw Error('onsitePrivateKey is missing') + throw Error('onsitePrivateKey is missing'); } - const decryptedPassword = platform.privateDecrypt(encryptedPasswordBytes, this.onsitePrivateKey) - return platform.bytesToString(decryptedPassword) + const decryptedPassword = platform.privateDecrypt(encryptedPasswordBytes, this.onsitePrivateKey); + return platform.bytesToString(decryptedPassword); } } -export async function getPushConnectionRequest(messageSessionUid: Uint8Array, transmissionKey: TransmissionKey, encryptedDeviceToken?: Uint8Array, locale?: string) { +export async function getPushConnectionRequest( + messageSessionUid: Uint8Array, + transmissionKey: TransmissionKey, + encryptedDeviceToken?: Uint8Array, + locale?: string +) { const connectionRequest = WssConnectionRequest.create({ messageSessionUid: messageSessionUid, encryptedDeviceToken: encryptedDeviceToken, - deviceTimeStamp: new Date().getTime() - }) - const connectionRequestBytes = WssConnectionRequest.encode(connectionRequest).finish() + deviceTimeStamp: new Date().getTime(), + }); + const connectionRequestBytes = WssConnectionRequest.encode(connectionRequest).finish(); const apiRequest = await prepareApiRequest({ payload: connectionRequestBytes, transmissionKey, locale, - useHpkeForTransmissionKey: false // HPKE not currently supported for push - }) - return webSafe64FromBytes(apiRequest) + useHpkeForTransmissionKey: false, // HPKE not currently supported for push + }); + return webSafe64FromBytes(apiRequest); } type PrepareApiRequestParams = { - payload: Uint8Array | unknown, - transmissionKey: TransmissionKey, - sessionToken?: string, - locale?: string, - apiVersion?: number - useHpkeForTransmissionKey?: boolean -} + payload: Uint8Array | unknown; + transmissionKey: TransmissionKey; + sessionToken?: string; + locale?: string; + apiVersion?: number; + useHpkeForTransmissionKey?: boolean; +}; export async function prepareApiRequest({ - payload, - transmissionKey, - sessionToken, - locale, - apiVersion, - useHpkeForTransmissionKey + payload, + transmissionKey, + sessionToken, + locale, + apiVersion, + useHpkeForTransmissionKey, }: PrepareApiRequestParams): Promise { - const requestPayload = ApiRequestPayload.create() + const requestPayload = ApiRequestPayload.create(); if (payload) { - requestPayload.payload = payload instanceof Uint8Array - ? payload - : platform.stringToBytes(JSON.stringify(payload)) + requestPayload.payload = + payload instanceof Uint8Array ? payload : platform.stringToBytes(JSON.stringify(payload)); } if (sessionToken) { requestPayload.encryptedSessionToken = normal64Bytes(sessionToken); } - requestPayload.apiVersion = apiVersion || 0 - const requestPayloadBytes = ApiRequestPayload.encode(requestPayload).finish() - const encryptedRequestPayload = await platform.aesGcmEncrypt(requestPayloadBytes, transmissionKey.key) - let apiRequest: Authentication.IApiRequest + requestPayload.apiVersion = apiVersion || 0; + const requestPayloadBytes = ApiRequestPayload.encode(requestPayload).finish(); + const encryptedRequestPayload = await platform.aesGcmEncrypt(requestPayloadBytes, transmissionKey.key); + let apiRequest: Authentication.IApiRequest; if (useHpkeForTransmissionKey) { const hpkeTransmissionKey = await generateHpkeTransmissionKey( transmissionKey, - true // use optional data - ) + true // use optional data + ); apiRequest = ApiRequest.create({ qrcMessageKey: hpkeTransmissionKey.qrcMessageKey, encryptedPayload: encryptedRequestPayload, publicKeyId: hpkeTransmissionKey.mlKemKeyId, encryptedTransmissionKey: hpkeTransmissionKey.optionalData || null, - locale: locale || 'en_US' + locale: locale || 'en_US', }); } else { apiRequest = ApiRequest.create({ encryptedTransmissionKey: transmissionKey.ecEncryptedKey, encryptedPayload: encryptedRequestPayload, publicKeyId: transmissionKey.ecKeyId, - locale: locale || 'en_US' - }) + locale: locale || 'en_US', + }); } - return ApiRequest.encode(apiRequest).finish() + return ApiRequest.encode(apiRequest).finish(); } export async function decryptCloudSsoResponse(cloudResponseToken: string, key: Uint8Array): Promise { @@ -467,5 +510,3 @@ export enum KeeperEnvironment { QA_EU = 'qa.keepersecurity.eu', DEV_EU = 'dev.keepersecurity.eu', } - - diff --git a/keeperapi/src/node/index.ts b/keeperapi/src/node/index.ts index 05bacc6..7f465f8 100644 --- a/keeperapi/src/node/index.ts +++ b/keeperapi/src/node/index.ts @@ -1,18 +1,17 @@ -export * from "../endpoint"; -export * from "../auth"; -export * from "../vendorModel"; -export * from "../vault"; -export * from "../company"; -export * from "../configuration"; -export * from "../commands"; -export * from "../restMessages"; -export * from "../utils"; -export * from "../platform"; -export * from "../proto"; -export * from "../cryptoWorker"; -export * from "../qrc"; -import {connectPlatform} from "../platform"; -import {nodePlatform} from "./platform"; +export * from '../endpoint'; +export * from '../auth'; +export * from '../vendorModel'; +export * from '../vault'; +export * from '../company'; +export * from '../configuration'; +export * from '../commands'; +export * from '../restMessages'; +export * from '../utils'; +export * from '../platform'; +export * from '../proto'; +export * from '../cryptoWorker'; +export * from '../qrc'; +import { connectPlatform } from '../platform'; +import { nodePlatform } from './platform'; connectPlatform(nodePlatform); - diff --git a/keeperapi/src/node/platform.ts b/keeperapi/src/node/platform.ts index b48fd1e..22d03a3 100644 --- a/keeperapi/src/node/platform.ts +++ b/keeperapi/src/node/platform.ts @@ -1,9 +1,9 @@ -import * as crypto from "crypto"; -import {createECDH, hkdfSync} from "crypto"; -import * as https from "https"; -import * as FormData from "form-data" +import * as crypto from 'crypto'; +import { createECDH, hkdfSync } from 'crypto'; +import * as https from 'https'; +import * as FormData from 'form-data'; import NodeRSA from 'node-rsa'; -import * as WebSocket from 'faye-websocket' +import * as WebSocket from 'faye-websocket'; import { EncryptionType, @@ -12,23 +12,23 @@ import { LogOptions, Platform, UnwrapKeyMap, - UnwrappedKeyType -} from "../platform"; -import {RSA_PKCS1_PADDING} from "constants"; -import {getKeeperKeys, getKeeperMlKemKeys} from "../transmissionKeys"; -import {SocketProxy, socketSendMessage} from '../socket' -import {normal64} from "../utils"; -import type {KeeperHttpResponse} from "../commands"; + UnwrappedKeyType, +} from '../platform'; +import { RSA_PKCS1_PADDING } from 'constants'; +import { getKeeperKeys, getKeeperMlKemKeys } from '../transmissionKeys'; +import { SocketProxy, socketSendMessage } from '../socket'; +import { normal64 } from '../utils'; +import type { KeeperHttpResponse } from '../commands'; const base64ToBytes = (data: string): Uint8Array => { - return Buffer.from(data, "base64"); -} + return Buffer.from(data, 'base64'); +}; export const nodePlatform: Platform = class { // Unimplemented in NodeJS, worker threads did not appear to improve performance - static supportsConcurrency: boolean = false + static supportsConcurrency: boolean = false; - static base64ToBytes = base64ToBytes + static base64ToBytes = base64ToBytes; static normal64Bytes(source: string): Uint8Array { return base64ToBytes(normal64(source)); @@ -42,7 +42,7 @@ export const nodePlatform: Platform = class { } static bytesToBase64(data: Uint8Array): string { - return Buffer.from(data).toString("base64"); + return Buffer.from(data).toString('base64'); } static bytesToString(data: Uint8Array): string { @@ -54,30 +54,35 @@ export const nodePlatform: Platform = class { } static wrapPassword(password: Uint8Array): KeyWrapper { - return KeyWrapper.create(password) + return KeyWrapper.create(password); } static unWrapPassword(password: KeyWrapper): Uint8Array { - return password.getKey() + return password.getKey(); } static async importKey(keyId: string, key: Uint8Array, storage?: KeyStorage): Promise { - keyCache[keyId] = key + keyCache[keyId] = key; if (storage) { - await storage.saveKeyBytes(keyId, key) + await storage.saveKeyBytes(keyId, key); } } - static async importKeyEC(keyId: string, privateKey: Uint8Array, _publicKey: Uint8Array, storage?: KeyStorage): Promise { - this.importKey(keyId, privateKey, storage) + static async importKeyEC( + keyId: string, + privateKey: Uint8Array, + _publicKey: Uint8Array, + storage?: KeyStorage + ): Promise { + this.importKey(keyId, privateKey, storage); } static async importKeyRSA(keyId: string, key: Uint8Array, storage?: KeyStorage): Promise { - this.importKey(keyId, key, storage) + this.importKey(keyId, key, storage); } static unloadKeys() { - keyCache = {} + keyCache = {}; } static unloadNonUserKeys(): void { @@ -85,151 +90,194 @@ export const nodePlatform: Platform = class { data: keyCache.data, pk_ecc: keyCache.pk_ecc, pk_rsa: keyCache.pk_rsa, - } + }; } static async unwrapKeys(keys: UnwrapKeyMap, storage?: KeyStorage): Promise { for (const task of Object.values(keys)) { try { - await this.unwrapKey(task.data, task.dataId, task.keyId, task.encryptionType, task.unwrappedType, storage) + await this.unwrapKey( + task.data, + task.dataId, + task.keyId, + task.encryptionType, + task.unwrappedType, + storage + ); } catch (e: any) { - console.error(`The key ${task.dataId} cannot be decrypted (${e.message})`) + console.error(`The key ${task.dataId} cannot be decrypted (${e.message})`); } } } - static async unwrapKey(key: Uint8Array, keyId: string, unwrappingKeyId: string, encryptionType: EncryptionType, keyType: UnwrappedKeyType, storage?: KeyStorage): Promise { - const unwrappingKey = await loadKey(unwrappingKeyId, storage) - let unwrappedKey + static async unwrapKey( + key: Uint8Array, + keyId: string, + unwrappingKeyId: string, + encryptionType: EncryptionType, + keyType: UnwrappedKeyType, + storage?: KeyStorage + ): Promise { + const unwrappingKey = await loadKey(unwrappingKeyId, storage); + let unwrappedKey; switch (encryptionType) { case 'cbc': - unwrappedKey = await nodePlatform.aesCbcDecrypt(key, unwrappingKey, true) + unwrappedKey = await nodePlatform.aesCbcDecrypt(key, unwrappingKey, true); break; case 'gcm': - unwrappedKey = await nodePlatform.aesGcmDecrypt(key, unwrappingKey) + unwrappedKey = await nodePlatform.aesGcmDecrypt(key, unwrappingKey); break; case 'rsa': - unwrappedKey = await nodePlatform.privateDecrypt(key, unwrappingKey) + unwrappedKey = await nodePlatform.privateDecrypt(key, unwrappingKey); break; case 'ecc': - unwrappedKey = await nodePlatform.privateDecryptEC(key, unwrappingKey) + unwrappedKey = await nodePlatform.privateDecryptEC(key, unwrappingKey); break; default: - throw Error('Unknown key encryption type: ' + encryptionType) + throw Error('Unknown key encryption type: ' + encryptionType); } - keyCache[keyId] = unwrappedKey + keyCache[keyId] = unwrappedKey; if (storage) { - await storage.saveKeyBytes(keyId, unwrappedKey) + await storage.saveKeyBytes(keyId, unwrappedKey); } } - static async decrypt(data: Uint8Array, keyId: string, encryptionType: EncryptionType, storage?: KeyStorage): Promise { - const key = await loadKey(keyId, storage) + static async decrypt( + data: Uint8Array, + keyId: string, + encryptionType: EncryptionType, + storage?: KeyStorage + ): Promise { + const key = await loadKey(keyId, storage); if (!key) { - throw Error(`The key ${keyId} is missing`) + throw Error(`The key ${keyId} is missing`); } - let decrypted + let decrypted; switch (encryptionType) { case 'cbc': - decrypted = await nodePlatform.aesCbcDecrypt(data, key, true) + decrypted = await nodePlatform.aesCbcDecrypt(data, key, true); break; case 'gcm': - decrypted = await nodePlatform.aesGcmDecrypt(data, key) + decrypted = await nodePlatform.aesGcmDecrypt(data, key); break; case 'rsa': - decrypted = await nodePlatform.privateDecrypt(data, key) + decrypted = await nodePlatform.privateDecrypt(data, key); break; case 'ecc': - decrypted = await nodePlatform.privateDecryptEC(data, key) + decrypted = await nodePlatform.privateDecryptEC(data, key); break; default: - throw Error('Unknown encryption type: ' + encryptionType) + throw Error('Unknown encryption type: ' + encryptionType); } - return decrypted + return decrypted; } - static async generateRSAKeyPair(): Promise<{ privateKey: Uint8Array; publicKey: Uint8Array}> { - const rsaKeys = new NodeRSA({b: 2048}); + static async generateRSAKeyPair(): Promise<{ privateKey: Uint8Array; publicKey: Uint8Array }> { + const rsaKeys = new NodeRSA({ b: 2048 }); const rsaPublicKey: Buffer = rsaKeys.exportKey('public-der'); const rsaPrivateKey: Buffer = rsaKeys.exportKey('private-der'); return Promise.resolve({ privateKey: rsaPrivateKey, - publicKey: rsaPublicKey - }) + publicKey: rsaPublicKey, + }); } static async generateECKeyPair(): Promise<{ privateKey: Uint8Array; publicKey: Uint8Array }> { - const ecdh = createECDH('prime256v1') - ecdh.generateKeys() + const ecdh = createECDH('prime256v1'); + ecdh.generateKeys(); return Promise.resolve({ privateKey: ecdh.getPrivateKey(), - publicKey: ecdh.getPublicKey() - }) + publicKey: ecdh.getPublicKey(), + }); } - static async publicEncryptECWithHKDF(message: string | Uint8Array, pubKey: Uint8Array, id: Uint8Array): Promise { - const messageBytes = typeof message === "string" ? this.stringToBytes(message) : message - return await this.mainPublicEncryptEC(messageBytes, pubKey, id, true) + static async publicEncryptECWithHKDF( + message: string | Uint8Array, + pubKey: Uint8Array, + id: Uint8Array + ): Promise { + const messageBytes = typeof message === 'string' ? this.stringToBytes(message) : message; + return await this.mainPublicEncryptEC(messageBytes, pubKey, id, true); } - static async encrypt(data: Uint8Array, keyId: string, encryptionType: EncryptionType, storage?: KeyStorage): Promise { - const key = await loadKey(keyId, storage) + static async encrypt( + data: Uint8Array, + keyId: string, + encryptionType: EncryptionType, + storage?: KeyStorage + ): Promise { + const key = await loadKey(keyId, storage); if (!key) { - throw Error(`The key ${keyId} is missing`) + throw Error(`The key ${keyId} is missing`); } - let encrypted: Uint8Array + let encrypted: Uint8Array; switch (encryptionType) { case 'cbc': - encrypted = await nodePlatform.aesCbcEncrypt(data, key, true) + encrypted = await nodePlatform.aesCbcEncrypt(data, key, true); break; case 'gcm': - encrypted = await nodePlatform.aesGcmEncrypt(data, key) + encrypted = await nodePlatform.aesGcmEncrypt(data, key); break; case 'rsa': - encrypted = nodePlatform.publicEncrypt(data, this.bytesToBase64(key)) + encrypted = nodePlatform.publicEncrypt(data, this.bytesToBase64(key)); break; case 'ecc': - encrypted = await nodePlatform.publicEncryptEC(data, key) + encrypted = await nodePlatform.publicEncryptEC(data, key); break; default: - throw Error('Unknown encryption type: ' + encryptionType) + throw Error('Unknown encryption type: ' + encryptionType); } - return encrypted + return encrypted; } - static async wrapKey(keyId: string, wrappingKeyId: string, encryptionType: EncryptionType, storage?: KeyStorage): Promise { - const key = await loadKey(keyId, storage) - return this.encrypt(key, wrappingKeyId, encryptionType, storage) + static async wrapKey( + keyId: string, + wrappingKeyId: string, + encryptionType: EncryptionType, + storage?: KeyStorage + ): Promise { + const key = await loadKey(keyId, storage); + return this.encrypt(key, wrappingKeyId, encryptionType, storage); } - static publicEncrypt(data: Uint8Array, key: string): Uint8Array { - let publicKey = key[0] === '-' // PEM or DER? - ? key - : crypto.createPublicKey({ - key: Buffer.from(key, 'base64'), - type: 'pkcs1', - format: 'der' - }) - return crypto.publicEncrypt({ - key: publicKey, - padding: RSA_PKCS1_PADDING - }, data) - } - - static async mainPublicEncryptEC(data: Uint8Array, key: Uint8Array, id?: Uint8Array, useHKDF?: boolean): Promise { - const ecdh = createECDH('prime256v1') - ecdh.generateKeys() - const ephemeralPublicKey = ecdh.getPublicKey() - const sharedSecret = ecdh.computeSecret(key) - const sharedSecretCombined = Buffer.concat([sharedSecret, id || new Uint8Array()]) - const symmetricKey = !useHKDF ? crypto.createHash("SHA256").update(sharedSecretCombined).digest() : Buffer.from(hkdfSync('sha256', sharedSecret, new Uint8Array(), id ?? Buffer.from([]), 32)) - const encryptedData = await this.aesGcmEncrypt(data, symmetricKey) - return Buffer.concat([ephemeralPublicKey, encryptedData]) + let publicKey = + key[0] === '-' // PEM or DER? + ? key + : crypto.createPublicKey({ + key: Buffer.from(key, 'base64'), + type: 'pkcs1', + format: 'der', + }); + return crypto.publicEncrypt( + { + key: publicKey, + padding: RSA_PKCS1_PADDING, + }, + data + ); + } + + static async mainPublicEncryptEC( + data: Uint8Array, + key: Uint8Array, + id?: Uint8Array, + useHKDF?: boolean + ): Promise { + const ecdh = createECDH('prime256v1'); + ecdh.generateKeys(); + const ephemeralPublicKey = ecdh.getPublicKey(); + const sharedSecret = ecdh.computeSecret(key); + const sharedSecretCombined = Buffer.concat([sharedSecret, id || new Uint8Array()]); + const symmetricKey = !useHKDF + ? crypto.createHash('SHA256').update(sharedSecretCombined).digest() + : Buffer.from(hkdfSync('sha256', sharedSecret, new Uint8Array(), id ?? Buffer.from([]), 32)); + const encryptedData = await this.aesGcmEncrypt(data, symmetricKey); + return Buffer.concat([ephemeralPublicKey, encryptedData]); } static async publicEncryptEC(data: Uint8Array, key: Uint8Array, id?: Uint8Array): Promise { - return await this.mainPublicEncryptEC(data, key, id) + return await this.mainPublicEncryptEC(data, key, id); } static async ecdhComputeSharedSecret( @@ -237,45 +285,50 @@ export const nodePlatform: Platform = class { recipientPublicKey: Uint8Array, senderPublicKey: Uint8Array ): Promise { - const ecdh = createECDH('prime256v1') - ecdh.setPrivateKey(senderPrivateKey) - return ecdh.computeSecret(recipientPublicKey) + const ecdh = createECDH('prime256v1'); + ecdh.setPrivateKey(senderPrivateKey); + return ecdh.computeSecret(recipientPublicKey); } static async hkdf(salt: Uint8Array, ikm: Uint8Array, info: Uint8Array, length: number): Promise { - return Promise.resolve(Buffer.from(hkdfSync('sha256', ikm, salt, info, length))) + return Promise.resolve(Buffer.from(hkdfSync('sha256', ikm, salt, info, length))); } static privateDecrypt(data: Uint8Array, key: Uint8Array): Uint8Array { const rsaPrivateKey = new NodeRSA(Buffer.from(key), 'pkcs1-private-der', { - encryptionScheme: 'pkcs1' - }) - rsaPrivateKey.setOptions({environment: 'browser'}) // use pure implementation, not native (CVE-2023-46809) - return rsaPrivateKey.decrypt(Buffer.from(data)) + encryptionScheme: 'pkcs1', + }); + rsaPrivateKey.setOptions({ environment: 'browser' }); // use pure implementation, not native (CVE-2023-46809) + return rsaPrivateKey.decrypt(Buffer.from(data)); } - static async privateDecryptEC(data: Uint8Array, privateKey: Uint8Array, publicKey?: Uint8Array, id?: Uint8Array, useHKDF?: boolean): Promise { - const ecdh = createECDH('prime256v1') - ecdh.setPrivateKey(privateKey) - const publicKeyLength = 65 - const ephemeralPublicKey = data.slice(0, publicKeyLength) - const sharedSecret = ecdh.computeSecret(ephemeralPublicKey) - const sharedSecretCombined = Buffer.concat([sharedSecret, id || new Uint8Array()]) - const symmetricKey = !useHKDF ? crypto.createHash("SHA256").update(sharedSecretCombined).digest() : Buffer.from(hkdfSync('sha256', sharedSecret, new Uint8Array(), id ?? Buffer.from([]), 32)) - const encryptedData = data.slice(publicKeyLength) - return await this.aesGcmDecrypt(encryptedData, symmetricKey) + static async privateDecryptEC( + data: Uint8Array, + privateKey: Uint8Array, + publicKey?: Uint8Array, + id?: Uint8Array, + useHKDF?: boolean + ): Promise { + const ecdh = createECDH('prime256v1'); + ecdh.setPrivateKey(privateKey); + const publicKeyLength = 65; + const ephemeralPublicKey = data.slice(0, publicKeyLength); + const sharedSecret = ecdh.computeSecret(ephemeralPublicKey); + const sharedSecretCombined = Buffer.concat([sharedSecret, id || new Uint8Array()]); + const symmetricKey = !useHKDF + ? crypto.createHash('SHA256').update(sharedSecretCombined).digest() + : Buffer.from(hkdfSync('sha256', sharedSecret, new Uint8Array(), id ?? Buffer.from([]), 32)); + const encryptedData = data.slice(publicKeyLength); + return await this.aesGcmDecrypt(encryptedData, symmetricKey); } static privateSign(data: Uint8Array, key: string): Promise { - return Promise.resolve(crypto - .createSign("SHA256") - .update(data) - .sign(key)); + return Promise.resolve(crypto.createSign('SHA256').update(data).sign(key)); } static aesGcmEncrypt(data: Uint8Array, key: Uint8Array): Promise { let iv = crypto.randomBytes(12); - let cipher = crypto.createCipheriv("aes-256-gcm", key, iv); + let cipher = crypto.createCipheriv('aes-256-gcm', key, iv); let encrypted = Buffer.concat([cipher.update(data), cipher.final()]); const tag = cipher.getAuthTag(); let result = Buffer.concat([iv, encrypted, tag]); @@ -286,16 +339,14 @@ export const nodePlatform: Platform = class { let iv = data.subarray(0, 12); let encrypted = data.subarray(12, data.length - 16); let tag = data.subarray(data.length - 16); - let cipher = crypto.createDecipheriv("aes-256-gcm", key, iv); + let cipher = crypto.createDecipheriv('aes-256-gcm', key, iv); cipher.setAuthTag(tag); return Promise.resolve(Buffer.concat([cipher.update(encrypted), cipher.final()])); } static async aesCbcEncrypt(data: Uint8Array, key: Uint8Array, usePadding: boolean): Promise { let iv = crypto.randomBytes(16); - let cipher = crypto - .createCipheriv("aes-256-cbc", key, iv) - .setAutoPadding(usePadding); + let cipher = crypto.createCipheriv('aes-256-cbc', key, iv).setAutoPadding(usePadding); let encrypted = Buffer.concat([cipher.update(data), cipher.final()]); return Buffer.concat([iv, encrypted]); } @@ -303,9 +354,7 @@ export const nodePlatform: Platform = class { static async aesCbcDecrypt(data: Uint8Array, key: Uint8Array, usePadding: boolean): Promise { let iv = data.subarray(0, 16); let encrypted = data.subarray(16); - let cipher = crypto - .createDecipheriv("aes-256-cbc", key, iv) - .setAutoPadding(usePadding); + let cipher = crypto.createDecipheriv('aes-256-cbc', key, iv).setAutoPadding(usePadding); return Buffer.concat([cipher.update(encrypted), cipher.final()]); } @@ -313,9 +362,20 @@ export const nodePlatform: Platform = class { return Promise.resolve(crypto.pbkdf2Sync(password.getKey(), saltBytes, iterations, 32, 'SHA256')); } - static deriveKeyV2(domain: string, password: KeyWrapper, saltBytes: Uint8Array, iterations: number): Promise { - const bytes = crypto.pbkdf2Sync(Buffer.of(...Buffer.from(domain), ...nodePlatform.unWrapPassword(password)), saltBytes, iterations, 64, 'SHA512') - const reducedBytes = crypto.createHmac("SHA256", bytes).update(Buffer.from(domain)).digest() + static deriveKeyV2( + domain: string, + password: KeyWrapper, + saltBytes: Uint8Array, + iterations: number + ): Promise { + const bytes = crypto.pbkdf2Sync( + Buffer.of(...Buffer.from(domain), ...nodePlatform.unWrapPassword(password)), + saltBytes, + iterations, + 64, + 'SHA512' + ); + const reducedBytes = crypto.createHmac('SHA256', bytes).update(Buffer.from(domain)).digest(); return Promise.resolve(reducedBytes); } @@ -324,126 +384,125 @@ export const nodePlatform: Platform = class { } static sha256(data: Uint8Array): Promise { - return Promise.resolve(crypto.createHash("SHA256").update(data).digest()); + return Promise.resolve(crypto.createHash('SHA256').update(data).digest()); } - static get( - url: string, - headers?: {[key: string]: string} - ): Promise { + static get(url: string, headers?: { [key: string]: string }): Promise { return new Promise((resolve, reject) => { - let get = https.request(url, { - method: "get", - headers: { - "User-Agent": `Node/${process.version}`, - ...headers + let get = https.request( + url, + { + method: 'get', + headers: { + 'User-Agent': `Node/${process.version}`, + ...headers, + }, + }, + (res) => { + this.fetchData(res, resolve); } - }, (res) => { - this.fetchData(res, resolve); - }); - get.on('error', reject) + ); + get.on('error', reject); get.end(); - }) + }); } static post( - url: string, - request: Uint8Array | string, - headers?: {[key: string]: string} + url: string, + request: Uint8Array | string, + headers?: { [key: string]: string } ): Promise { return new Promise((resolve, reject) => { - let post = https.request(url, { - method: "post", - headers: { - "Content-Type": "application/octet-stream", - "Content-Length": request.length, - "User-Agent": `Node/${process.version}`, - ...headers, + let post = https.request( + url, + { + method: 'post', + headers: { + 'Content-Type': 'application/octet-stream', + 'Content-Length': request.length, + 'User-Agent': `Node/${process.version}`, + ...headers, + }, }, - }, (res) => { - this.fetchData(res, resolve) - }); - post.on('error', reject) + (res) => { + this.fetchData(res, resolve); + } + ); + post.on('error', reject); post.write(request); post.end(); - }) + }); } - static fileUpload( - url: string, - uploadParameters: {[key: string]: string}, - data: Uint8Array - ): Promise { + static fileUpload(url: string, uploadParameters: { [key: string]: string }, data: Uint8Array): Promise { return new Promise((resolve, reject) => { - const form = new FormData() + const form = new FormData(); for (const key in uploadParameters) { form.append(key, uploadParameters[key]); } - form.append('file', data) + form.append('file', data); let post = https.request(url, { - method: "post", - headers: form.getHeaders() + method: 'post', + headers: form.getHeaders(), }); - form.pipe(post) - post.on('error', reject) + form.pipe(post); + post.on('error', reject); post.on('response', function (res: any) { resolve({ headers: res.headers, statusCode: res.statusCode, - statusMessage: res.statusMessage - }) - }) - }) + statusMessage: res.statusMessage, + }); + }); + }); } private static fetchData(res, resolve) { let retVal = { statusCode: res.statusCode, headers: res.headers, - data: null + data: null, }; - res.on("data", data => { - retVal.data = retVal.data - ? Buffer.concat([retVal.data, data]) - : data + res.on('data', (data) => { + retVal.data = retVal.data ? Buffer.concat([retVal.data, data]) : data; }); - res.on("end", () => { + res.on('end', () => { resolve(retVal); }); } static createWebsocket(url: string): SocketProxy { - const socket = new WebSocket.Client(url) + const socket = new WebSocket.Client(url); let createdSocket; - return createdSocket = { + return (createdSocket = { onOpen: (callback: () => void) => { - socket.on('open', callback) + socket.on('open', callback); }, close: () => { - socket.close() + socket.close(); }, - onClose: (callback: (e:Event) => void) => { - socket.on('close', callback) + onClose: (callback: (e: Event) => void) => { + socket.on('close', callback); }, onError: (callback: (err: Error) => void) => { - socket.on('error', callback) + socket.on('error', callback); }, onMessage: (callback: (e: Uint8Array) => void) => { socket.on('message', (e: MessageEvent) => { - callback(e.data) - }) + callback(e.data); + }); + }, + send: (message) => { + socketSendMessage(message, socket, createdSocket); }, - send: (message => { - socketSendMessage(message, socket, createdSocket) - }), messageQueue: [], - } + }); } static async createCryptoWorker(): Promise { - return null + return null; } static async closeCryptoWorker(): Promise { @@ -452,30 +511,28 @@ export const nodePlatform: Platform = class { static log(message: string, options: LogOptions): void { switch (options) { - case "default": - case "CR": - console.log(message) + case 'default': + case 'CR': + console.log(message); break; - case "noCR": - process.stdout.write(message) + case 'noCR': + process.stdout.write(message); break; } } -} +}; -let keyCache: Record = {} +let keyCache: Record = {}; const loadKey = async (keyId: string, storage?: KeyStorage): Promise => { - const cachedKey = keyCache[keyId] + const cachedKey = keyCache[keyId]; if (cachedKey) { - return cachedKey + return cachedKey; } - const keyBytes = storage - ? await storage.getKeyBytes(keyId) - : undefined + const keyBytes = storage ? await storage.getKeyBytes(keyId) : undefined; if (!keyBytes) { - throw new Error(`Unable to load the key ${keyId}`) + throw new Error(`Unable to load the key ${keyId}`); } - keyCache[keyId] = keyBytes - return keyBytes -} + keyCache[keyId] = keyBytes; + return keyBytes; +}; diff --git a/keeperapi/src/platform.ts b/keeperapi/src/platform.ts index a3facaa..68f0fec 100644 --- a/keeperapi/src/platform.ts +++ b/keeperapi/src/platform.ts @@ -1,12 +1,12 @@ -import type {SocketProxy} from './socket' -import type {KeeperHttpResponse} from "./commands"; -import type {CryptoWorkerPool, CryptoWorkerPoolConfig} from './cryptoWorker'; +import type { SocketProxy } from './socket'; +import type { KeeperHttpResponse } from './commands'; +import type { CryptoWorkerPool, CryptoWorkerPoolConfig } from './cryptoWorker'; export interface Platform { keys: Uint8Array[]; mlKemKeys: Uint8Array[]; - supportsConcurrency: boolean + supportsConcurrency: boolean; getRandomBytes(length: number): Uint8Array; @@ -22,39 +22,59 @@ export interface Platform { unWrapPassword(password: KeyWrapper): Uint8Array; - importKey(keyId: string, key: Uint8Array, storage?: KeyStorage, canExport?: boolean): Promise + importKey(keyId: string, key: Uint8Array, storage?: KeyStorage, canExport?: boolean): Promise; - importKeyEC(keyId: string, privateKey: Uint8Array, publicKey: Uint8Array, storage?: KeyStorage, canExport?: boolean): Promise + importKeyEC( + keyId: string, + privateKey: Uint8Array, + publicKey: Uint8Array, + storage?: KeyStorage, + canExport?: boolean + ): Promise; - importKeyRSA(keyId: string, key: Uint8Array, storage?: KeyStorage, canExport?: boolean): Promise + importKeyRSA(keyId: string, key: Uint8Array, storage?: KeyStorage, canExport?: boolean): Promise; // Removes all keys stored in the local cache, including user keys, record keys, etc. // A typical use case is during logout, when you want to completely clear the cached keys. - unloadKeys(): void + unloadKeys(): void; // Clears all cached keys except user keys. // A good use case is a manual full sync while the user is still logged in. - unloadNonUserKeys(): void + unloadNonUserKeys(): void; - unwrapKey(key: Uint8Array, keyId: string, unwrappingKeyId: string, encryptionType: EncryptionType, unwrappedType: UnwrappedKeyType, storage?: KeyStorage, canExport?: boolean): Promise + unwrapKey( + key: Uint8Array, + keyId: string, + unwrappingKeyId: string, + encryptionType: EncryptionType, + unwrappedType: UnwrappedKeyType, + storage?: KeyStorage, + canExport?: boolean + ): Promise; - unwrapKeys(keys: UnwrapKeyMap, storage?: KeyStorage): Promise + unwrapKeys(keys: UnwrapKeyMap, storage?: KeyStorage): Promise; - decrypt(data: Uint8Array, keyId: string, encryptionType: EncryptionType, storage?: KeyStorage): Promise + decrypt(data: Uint8Array, keyId: string, encryptionType: EncryptionType, storage?: KeyStorage): Promise; - generateRSAKeyPair(): Promise<{privateKey: Uint8Array; publicKey: Uint8Array}> + generateRSAKeyPair(): Promise<{ privateKey: Uint8Array; publicKey: Uint8Array }>; - generateECKeyPair(): Promise<{privateKey: Uint8Array; publicKey: Uint8Array}> + generateECKeyPair(): Promise<{ privateKey: Uint8Array; publicKey: Uint8Array }>; - publicEncryptECWithHKDF(message: string | Uint8Array, pubKey: Uint8Array, id: Uint8Array): Promise + publicEncryptECWithHKDF(message: string | Uint8Array, pubKey: Uint8Array, id: Uint8Array): Promise; publicEncrypt(data: Uint8Array, key: string): Uint8Array; - publicEncryptEC(data: Uint8Array, key: Uint8Array, id?: Uint8Array): Promise + publicEncryptEC(data: Uint8Array, key: Uint8Array, id?: Uint8Array): Promise; privateDecrypt(data: Uint8Array, key: Uint8Array): Uint8Array; - privateDecryptEC(data: Uint8Array, privateKey: Uint8Array, publicKey?: Uint8Array, id?: Uint8Array, useHKDF?: boolean): Promise + privateDecryptEC( + data: Uint8Array, + privateKey: Uint8Array, + publicKey?: Uint8Array, + id?: Uint8Array, + useHKDF?: boolean + ): Promise; privateSign(data: Uint8Array, key: string): Promise; @@ -65,7 +85,11 @@ export interface Platform { * @param senderPublicKey - Sender's public key (65 bytes, uncompressed) * @returns Shared secret (32 bytes) */ - ecdhComputeSharedSecret(senderPrivateKey: Uint8Array, recipientPublicKey: Uint8Array, senderPublicKey: Uint8Array): Promise; + ecdhComputeSharedSecret( + senderPrivateKey: Uint8Array, + recipientPublicKey: Uint8Array, + senderPublicKey: Uint8Array + ): Promise; /** * Derives a key using HKDF-SHA256 @@ -77,9 +101,14 @@ export interface Platform { */ hkdf(salt: Uint8Array, ikm: Uint8Array, info: Uint8Array, length: number): Promise; - wrapKey(keyId: string, wrappingKeyId: string, encryptionType: EncryptionType, storage?: KeyStorage): Promise + wrapKey( + keyId: string, + wrappingKeyId: string, + encryptionType: EncryptionType, + storage?: KeyStorage + ): Promise; - encrypt(data: Uint8Array, keyId: string, encryptionType: EncryptionType, storage?: KeyStorage): Promise + encrypt(data: Uint8Array, keyId: string, encryptionType: EncryptionType, storage?: KeyStorage): Promise; aesGcmEncrypt(data: Uint8Array, key: Uint8Array): Promise; @@ -101,57 +130,57 @@ export interface Platform { post(url: string, request: Uint8Array, headers?: any): Promise; - fileUpload(url: string, uploadParameters: any, data: Uint8Array | Blob): Promise + fileUpload(url: string, uploadParameters: any, data: Uint8Array | Blob): Promise; - createCryptoWorker(keyStorage: KeyStorage, options: CryptoWorkerOptions): Promise + createCryptoWorker(keyStorage: KeyStorage, options: CryptoWorkerOptions): Promise; - closeCryptoWorker(): Promise + closeCryptoWorker(): Promise; - createWebsocket(url: string): SocketProxy + createWebsocket(url: string): SocketProxy; log(message: string, options: LogOptions): void; } export interface CryptoTask { - data: Uint8Array, - dataId: string, - keyId: string, - encryptionType: EncryptionType, + data: Uint8Array; + dataId: string; + keyId: string; + encryptionType: EncryptionType; } export interface UnwrapKey extends CryptoTask { - unwrappedType: UnwrappedKeyType, + unwrappedType: UnwrappedKeyType; } -export type UnwrapKeyMap = Record +export type UnwrapKeyMap = Record; -export type CryptoWorkerOptions = Partial +export type CryptoWorkerOptions = Partial; export class KeyWrapper { - private key: any + private key: any; static create(key: Uint8Array | any): KeyWrapper { - const wrapper = new KeyWrapper() - wrapper.key = key - return wrapper + const wrapper = new KeyWrapper(); + wrapper.key = key; + return wrapper; } public getKey() { - return this.key + return this.key; } } -export type UnwrappedKeyType = 'aes' | 'rsa' | 'ecc' +export type UnwrappedKeyType = 'aes' | 'rsa' | 'ecc'; -export type EncryptionType = 'cbc' | 'gcm' | 'rsa' | 'ecc' +export type EncryptionType = 'cbc' | 'gcm' | 'rsa' | 'ecc'; export type KeyStorage = { - getKeyBytes(keyId: string): Promise - saveKeyBytes(keyId: string, key: Uint8Array): Promise - getObject?(key: string): Promise - saveObject?(key: string, value: T): Promise -} -export type LogOptions = 'default' | 'noCR' | 'CR' + getKeyBytes(keyId: string): Promise; + saveKeyBytes(keyId: string, key: Uint8Array): Promise; + getObject?(key: string): Promise; + saveObject?(key: string, value: T): Promise; +}; +export type LogOptions = 'default' | 'noCR' | 'CR'; export function connectPlatform(p: Platform) { platform = p; diff --git a/keeperapi/src/proto.d.ts b/keeperapi/src/proto.d.ts index adb85ae..462e87f 100644 --- a/keeperapi/src/proto.d.ts +++ b/keeperapi/src/proto.d.ts @@ -1,8 +1,7 @@ -import * as $protobuf from "protobufjs"; -import Long = require("long"); +import * as $protobuf from 'protobufjs'; +import Long = require('long'); /** Namespace Authentication. */ export namespace Authentication { - /** SupportedLanguage enum. */ enum SupportedLanguage { ENGLISH = 0, @@ -27,7 +26,7 @@ export namespace Authentication { SLOVAK = 19, SPANISH = 20, FINNISH = 21, - SWEDISH = 22 + SWEDISH = 22, } /** LoginType enum. */ @@ -38,7 +37,7 @@ export namespace Authentication { ALTERNATE = 3, OFFLINE = 4, FORGOT_PASSWORD = 5, - PASSKEY_BIO = 6 + PASSKEY_BIO = 6, } /** DeviceStatus enum. */ @@ -46,7 +45,7 @@ export namespace Authentication { DEVICE_NEEDS_APPROVAL = 0, DEVICE_OK = 1, DEVICE_DISABLED_BY_USER = 2, - DEVICE_LOCKED_BY_ADMIN = 3 + DEVICE_LOCKED_BY_ADMIN = 3, } /** LicenseStatus enum. */ @@ -54,14 +53,14 @@ export namespace Authentication { OTHER = 0, ACTIVE = 1, EXPIRED = 2, - DISABLED = 3 + DISABLED = 3, } /** AccountType enum. */ enum AccountType { CONSUMER = 0, FAMILY = 1, - ENTERPRISE = 2 + ENTERPRISE = 2, } /** SessionTokenType enum. */ @@ -77,44 +76,42 @@ export namespace Authentication { EXPIRED_BUT_ALLOWED_TO_SYNC = 8, ACCEPT_FAMILY_INVITE = 9, ENTERPRISE_CREATION_PURCHASED = 10, - EMERGENCY_ACCESS = 11 + EMERGENCY_ACCESS = 11, } /** Version enum. */ enum Version { invalid_version = 0, default_version = 1, - second_version = 2 + second_version = 2, } /** MasterPasswordReentryActionType enum. */ enum MasterPasswordReentryActionType { UNMASK = 0, - COPY = 1 + COPY = 1, } /** Properties of a QrcMessageKey. */ interface IQrcMessageKey { - /** QrcMessageKey clientEcPublicKey */ - clientEcPublicKey?: (Uint8Array|null); + clientEcPublicKey?: Uint8Array | null; /** QrcMessageKey mlKemEncapsulatedKey */ - mlKemEncapsulatedKey?: (Uint8Array|null); + mlKemEncapsulatedKey?: Uint8Array | null; /** QrcMessageKey data */ - data?: (Uint8Array|null); + data?: Uint8Array | null; /** QrcMessageKey msgVersion */ - msgVersion?: (number|null); + msgVersion?: number | null; /** QrcMessageKey ecKeyId */ - ecKeyId?: (number|null); + ecKeyId?: number | null; } /** Represents a QrcMessageKey. */ class QrcMessageKey implements IQrcMessageKey { - /** * Constructs a new QrcMessageKey. * @param [properties] Properties to set @@ -157,7 +154,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.IQrcMessageKey, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.IQrcMessageKey, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a QrcMessageKey message from the specified reader or buffer. @@ -167,7 +167,7 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.QrcMessageKey; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Authentication.QrcMessageKey; /** * Decodes a QrcMessageKey message from the specified reader or buffer, length delimited. @@ -176,14 +176,14 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.QrcMessageKey; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Authentication.QrcMessageKey; /** * Verifies a QrcMessageKey message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a QrcMessageKey message from a plain object. Also converts values to their respective internal types. @@ -198,7 +198,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.QrcMessageKey, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.QrcMessageKey, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this QrcMessageKey to JSON. @@ -216,35 +219,33 @@ export namespace Authentication { /** Properties of an ApiRequest. */ interface IApiRequest { - /** ApiRequest encryptedTransmissionKey */ - encryptedTransmissionKey?: (Uint8Array|null); + encryptedTransmissionKey?: Uint8Array | null; /** ApiRequest publicKeyId */ - publicKeyId?: (number|null); + publicKeyId?: number | null; /** ApiRequest locale */ - locale?: (string|null); + locale?: string | null; /** ApiRequest encryptedPayload */ - encryptedPayload?: (Uint8Array|null); + encryptedPayload?: Uint8Array | null; /** ApiRequest encryptionType */ - encryptionType?: (number|null); + encryptionType?: number | null; /** ApiRequest recaptcha */ - recaptcha?: (string|null); + recaptcha?: string | null; /** ApiRequest subEnvironment */ - subEnvironment?: (string|null); + subEnvironment?: string | null; /** ApiRequest qrcMessageKey */ - qrcMessageKey?: (Authentication.IQrcMessageKey|null); + qrcMessageKey?: Authentication.IQrcMessageKey | null; } /** Represents an ApiRequest. */ class ApiRequest implements IApiRequest { - /** * Constructs a new ApiRequest. * @param [properties] Properties to set @@ -273,7 +274,7 @@ export namespace Authentication { public subEnvironment: string; /** ApiRequest qrcMessageKey. */ - public qrcMessageKey?: (Authentication.IQrcMessageKey|null); + public qrcMessageKey?: Authentication.IQrcMessageKey | null; /** * Creates a new ApiRequest instance using the specified properties. @@ -306,7 +307,7 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.ApiRequest; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Authentication.ApiRequest; /** * Decodes an ApiRequest message from the specified reader or buffer, length delimited. @@ -315,14 +316,14 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.ApiRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Authentication.ApiRequest; /** * Verifies an ApiRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an ApiRequest message from a plain object. Also converts values to their respective internal types. @@ -337,7 +338,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.ApiRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.ApiRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this ApiRequest to JSON. @@ -355,23 +359,21 @@ export namespace Authentication { /** Properties of an ApiRequestPayload. */ interface IApiRequestPayload { - /** ApiRequestPayload payload */ - payload?: (Uint8Array|null); + payload?: Uint8Array | null; /** ApiRequestPayload encryptedSessionToken */ - encryptedSessionToken?: (Uint8Array|null); + encryptedSessionToken?: Uint8Array | null; /** ApiRequestPayload timeToken */ - timeToken?: (Uint8Array|null); + timeToken?: Uint8Array | null; /** ApiRequestPayload apiVersion */ - apiVersion?: (number|null); + apiVersion?: number | null; } /** Represents an ApiRequestPayload. */ class ApiRequestPayload implements IApiRequestPayload { - /** * Constructs a new ApiRequestPayload. * @param [properties] Properties to set @@ -411,7 +413,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.IApiRequestPayload, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.IApiRequestPayload, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes an ApiRequestPayload message from the specified reader or buffer. @@ -421,7 +426,7 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.ApiRequestPayload; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Authentication.ApiRequestPayload; /** * Decodes an ApiRequestPayload message from the specified reader or buffer, length delimited. @@ -430,14 +435,14 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.ApiRequestPayload; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Authentication.ApiRequestPayload; /** * Verifies an ApiRequestPayload message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an ApiRequestPayload message from a plain object. Also converts values to their respective internal types. @@ -452,7 +457,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.ApiRequestPayload, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.ApiRequestPayload, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this ApiRequestPayload to JSON. @@ -470,17 +478,15 @@ export namespace Authentication { /** Properties of a Transform. */ interface ITransform { - /** Transform key */ - key?: (Uint8Array|null); + key?: Uint8Array | null; /** Transform encryptedDeviceToken */ - encryptedDeviceToken?: (Uint8Array|null); + encryptedDeviceToken?: Uint8Array | null; } /** Represents a Transform. */ class Transform implements ITransform { - /** * Constructs a new Transform. * @param [properties] Properties to set @@ -524,7 +530,7 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.Transform; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Authentication.Transform; /** * Decodes a Transform message from the specified reader or buffer, length delimited. @@ -533,14 +539,14 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.Transform; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Authentication.Transform; /** * Verifies a Transform message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a Transform message from a plain object. Also converts values to their respective internal types. @@ -555,7 +561,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.Transform, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.Transform, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this Transform to JSON. @@ -573,26 +582,24 @@ export namespace Authentication { /** Properties of a DeviceRequest. */ interface IDeviceRequest { - /** DeviceRequest clientVersion */ - clientVersion?: (string|null); + clientVersion?: string | null; /** DeviceRequest deviceName */ - deviceName?: (string|null); + deviceName?: string | null; /** DeviceRequest devicePlatform */ - devicePlatform?: (string|null); + devicePlatform?: string | null; /** DeviceRequest clientFormFactor */ - clientFormFactor?: (Authentication.ClientFormFactor|null); + clientFormFactor?: Authentication.ClientFormFactor | null; /** DeviceRequest username */ - username?: (string|null); + username?: string | null; } /** Represents a DeviceRequest. */ class DeviceRequest implements IDeviceRequest { - /** * Constructs a new DeviceRequest. * @param [properties] Properties to set @@ -635,7 +642,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.IDeviceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.IDeviceRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a DeviceRequest message from the specified reader or buffer. @@ -645,7 +655,7 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.DeviceRequest; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Authentication.DeviceRequest; /** * Decodes a DeviceRequest message from the specified reader or buffer, length delimited. @@ -654,14 +664,14 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.DeviceRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Authentication.DeviceRequest; /** * Verifies a DeviceRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a DeviceRequest message from a plain object. Also converts values to their respective internal types. @@ -676,7 +686,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.DeviceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.DeviceRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this DeviceRequest to JSON. @@ -694,20 +707,18 @@ export namespace Authentication { /** Properties of an AuthRequest. */ interface IAuthRequest { - /** AuthRequest clientVersion */ - clientVersion?: (string|null); + clientVersion?: string | null; /** AuthRequest username */ - username?: (string|null); + username?: string | null; /** AuthRequest encryptedDeviceToken */ - encryptedDeviceToken?: (Uint8Array|null); + encryptedDeviceToken?: Uint8Array | null; } /** Represents an AuthRequest. */ class AuthRequest implements IAuthRequest { - /** * Constructs a new AuthRequest. * @param [properties] Properties to set @@ -744,7 +755,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.IAuthRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.IAuthRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes an AuthRequest message from the specified reader or buffer. @@ -754,7 +768,7 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.AuthRequest; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Authentication.AuthRequest; /** * Decodes an AuthRequest message from the specified reader or buffer, length delimited. @@ -763,14 +777,14 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.AuthRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Authentication.AuthRequest; /** * Verifies an AuthRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an AuthRequest message from a plain object. Also converts values to their respective internal types. @@ -785,7 +799,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.AuthRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.AuthRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this AuthRequest to JSON. @@ -803,29 +820,27 @@ export namespace Authentication { /** Properties of a NewUserMinimumParams. */ interface INewUserMinimumParams { - /** NewUserMinimumParams minimumIterations */ - minimumIterations?: (number|null); + minimumIterations?: number | null; /** NewUserMinimumParams passwordMatchRegex */ - passwordMatchRegex?: (string[]|null); + passwordMatchRegex?: string[] | null; /** NewUserMinimumParams passwordMatchDescription */ - passwordMatchDescription?: (string[]|null); + passwordMatchDescription?: string[] | null; /** NewUserMinimumParams isEnterpriseDomain */ - isEnterpriseDomain?: (boolean|null); + isEnterpriseDomain?: boolean | null; /** NewUserMinimumParams enterpriseEccPublicKey */ - enterpriseEccPublicKey?: (Uint8Array|null); + enterpriseEccPublicKey?: Uint8Array | null; /** NewUserMinimumParams forbidKeyType2 */ - forbidKeyType2?: (boolean|null); + forbidKeyType2?: boolean | null; } /** Represents a NewUserMinimumParams. */ class NewUserMinimumParams implements INewUserMinimumParams { - /** * Constructs a new NewUserMinimumParams. * @param [properties] Properties to set @@ -863,7 +878,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Authentication.INewUserMinimumParams, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Authentication.INewUserMinimumParams, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified NewUserMinimumParams message, length delimited. Does not implicitly {@link Authentication.NewUserMinimumParams.verify|verify} messages. @@ -871,7 +889,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.INewUserMinimumParams, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.INewUserMinimumParams, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a NewUserMinimumParams message from the specified reader or buffer. @@ -881,7 +902,10 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.NewUserMinimumParams; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Authentication.NewUserMinimumParams; /** * Decodes a NewUserMinimumParams message from the specified reader or buffer, length delimited. @@ -890,14 +914,14 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.NewUserMinimumParams; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Authentication.NewUserMinimumParams; /** * Verifies a NewUserMinimumParams message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a NewUserMinimumParams message from a plain object. Also converts values to their respective internal types. @@ -912,7 +936,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.NewUserMinimumParams, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.NewUserMinimumParams, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this NewUserMinimumParams to JSON. @@ -930,20 +957,18 @@ export namespace Authentication { /** Properties of a PreLoginRequest. */ interface IPreLoginRequest { - /** PreLoginRequest authRequest */ - authRequest?: (Authentication.IAuthRequest|null); + authRequest?: Authentication.IAuthRequest | null; /** PreLoginRequest loginType */ - loginType?: (Authentication.LoginType|null); + loginType?: Authentication.LoginType | null; /** PreLoginRequest twoFactorToken */ - twoFactorToken?: (Uint8Array|null); + twoFactorToken?: Uint8Array | null; } /** Represents a PreLoginRequest. */ class PreLoginRequest implements IPreLoginRequest { - /** * Constructs a new PreLoginRequest. * @param [properties] Properties to set @@ -951,7 +976,7 @@ export namespace Authentication { constructor(properties?: Authentication.IPreLoginRequest); /** PreLoginRequest authRequest. */ - public authRequest?: (Authentication.IAuthRequest|null); + public authRequest?: Authentication.IAuthRequest | null; /** PreLoginRequest loginType. */ public loginType: Authentication.LoginType; @@ -980,7 +1005,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.IPreLoginRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.IPreLoginRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a PreLoginRequest message from the specified reader or buffer. @@ -990,7 +1018,7 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.PreLoginRequest; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Authentication.PreLoginRequest; /** * Decodes a PreLoginRequest message from the specified reader or buffer, length delimited. @@ -999,14 +1027,14 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.PreLoginRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Authentication.PreLoginRequest; /** * Verifies a PreLoginRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a PreLoginRequest message from a plain object. Also converts values to their respective internal types. @@ -1021,7 +1049,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.PreLoginRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.PreLoginRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this PreLoginRequest to JSON. @@ -1039,35 +1070,33 @@ export namespace Authentication { /** Properties of a LoginRequest. */ interface ILoginRequest { - /** LoginRequest authRequest */ - authRequest?: (Authentication.IAuthRequest|null); + authRequest?: Authentication.IAuthRequest | null; /** LoginRequest loginType */ - loginType?: (Authentication.LoginType|null); + loginType?: Authentication.LoginType | null; /** LoginRequest authenticationHashPrime */ - authenticationHashPrime?: (Uint8Array|null); + authenticationHashPrime?: Uint8Array | null; /** LoginRequest encryptedLoginToken */ - encryptedLoginToken?: (Uint8Array|null); + encryptedLoginToken?: Uint8Array | null; /** LoginRequest authResponse */ - authResponse?: (Uint8Array|null); + authResponse?: Uint8Array | null; /** LoginRequest mcEnterpriseId */ - mcEnterpriseId?: (number|null); + mcEnterpriseId?: number | null; /** LoginRequest pushToken */ - pushToken?: (string|null); + pushToken?: string | null; /** LoginRequest platform */ - platform?: (string|null); + platform?: string | null; } /** Represents a LoginRequest. */ class LoginRequest implements ILoginRequest { - /** * Constructs a new LoginRequest. * @param [properties] Properties to set @@ -1075,7 +1104,7 @@ export namespace Authentication { constructor(properties?: Authentication.ILoginRequest); /** LoginRequest authRequest. */ - public authRequest?: (Authentication.IAuthRequest|null); + public authRequest?: Authentication.IAuthRequest | null; /** LoginRequest loginType. */ public loginType: Authentication.LoginType; @@ -1119,7 +1148,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.ILoginRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.ILoginRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a LoginRequest message from the specified reader or buffer. @@ -1129,7 +1161,7 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.LoginRequest; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Authentication.LoginRequest; /** * Decodes a LoginRequest message from the specified reader or buffer, length delimited. @@ -1138,14 +1170,14 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.LoginRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Authentication.LoginRequest; /** * Verifies a LoginRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a LoginRequest message from a plain object. Also converts values to their respective internal types. @@ -1160,7 +1192,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.LoginRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.LoginRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this LoginRequest to JSON. @@ -1178,17 +1213,15 @@ export namespace Authentication { /** Properties of a DeviceResponse. */ interface IDeviceResponse { - /** DeviceResponse encryptedDeviceToken */ - encryptedDeviceToken?: (Uint8Array|null); + encryptedDeviceToken?: Uint8Array | null; /** DeviceResponse status */ - status?: (Authentication.DeviceStatus|null); + status?: Authentication.DeviceStatus | null; } /** Represents a DeviceResponse. */ class DeviceResponse implements IDeviceResponse { - /** * Constructs a new DeviceResponse. * @param [properties] Properties to set @@ -1222,7 +1255,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.IDeviceResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.IDeviceResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a DeviceResponse message from the specified reader or buffer. @@ -1232,7 +1268,7 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.DeviceResponse; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Authentication.DeviceResponse; /** * Decodes a DeviceResponse message from the specified reader or buffer, length delimited. @@ -1241,14 +1277,14 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.DeviceResponse; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Authentication.DeviceResponse; /** * Verifies a DeviceResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a DeviceResponse message from a plain object. Also converts values to their respective internal types. @@ -1263,7 +1299,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.DeviceResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.DeviceResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this DeviceResponse to JSON. @@ -1281,26 +1320,24 @@ export namespace Authentication { /** Properties of a Salt. */ interface ISalt { - /** Salt iterations */ - iterations?: (number|null); + iterations?: number | null; /** Salt salt */ - salt?: (Uint8Array|null); + salt?: Uint8Array | null; /** Salt algorithm */ - algorithm?: (number|null); + algorithm?: number | null; /** Salt uid */ - uid?: (Uint8Array|null); + uid?: Uint8Array | null; /** Salt name */ - name?: (string|null); + name?: string | null; } /** Represents a Salt. */ class Salt implements ISalt { - /** * Constructs a new Salt. * @param [properties] Properties to set @@ -1353,7 +1390,7 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.Salt; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Authentication.Salt; /** * Decodes a Salt message from the specified reader or buffer, length delimited. @@ -1362,14 +1399,14 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.Salt; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Authentication.Salt; /** * Verifies a Salt message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a Salt message from a plain object. Also converts values to their respective internal types. @@ -1384,7 +1421,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.Salt, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.Salt, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this Salt to JSON. @@ -1402,14 +1442,12 @@ export namespace Authentication { /** Properties of a TwoFactorChannel. */ interface ITwoFactorChannel { - /** TwoFactorChannel type */ - type?: (number|null); + type?: number | null; } /** Represents a TwoFactorChannel. */ class TwoFactorChannel implements ITwoFactorChannel { - /** * Constructs a new TwoFactorChannel. * @param [properties] Properties to set @@ -1440,7 +1478,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.ITwoFactorChannel, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.ITwoFactorChannel, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a TwoFactorChannel message from the specified reader or buffer. @@ -1450,7 +1491,7 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.TwoFactorChannel; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Authentication.TwoFactorChannel; /** * Decodes a TwoFactorChannel message from the specified reader or buffer, length delimited. @@ -1459,14 +1500,14 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.TwoFactorChannel; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Authentication.TwoFactorChannel; /** * Verifies a TwoFactorChannel message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a TwoFactorChannel message from a plain object. Also converts values to their respective internal types. @@ -1481,7 +1522,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.TwoFactorChannel, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.TwoFactorChannel, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this TwoFactorChannel to JSON. @@ -1503,7 +1547,7 @@ export namespace Authentication { EXISTING_ACCOUNT = 1, SSO_DOMAIN = 2, AFTER_SSO = 3, - NEW_ACCOUNT = 4 + NEW_ACCOUNT = 4, } /** LoginState enum. */ @@ -1530,7 +1574,7 @@ export namespace Authentication { PASSKEY_AUTH_REQUIRED = 20, PASSKEY_VERIFY_AUTHENTICATION = 21, AFTER_PASSKEY_LOGIN = 22, - LOGGED_IN = 99 + LOGGED_IN = 99, } /** EncryptedDataKeyType enum. */ @@ -1539,55 +1583,53 @@ export namespace Authentication { BY_DEVICE_PUBLIC_KEY = 1, BY_PASSWORD = 2, BY_ALTERNATE = 3, - BY_BIO = 4 + BY_BIO = 4, } /** Properties of a StartLoginRequest. */ interface IStartLoginRequest { - /** StartLoginRequest encryptedDeviceToken */ - encryptedDeviceToken?: (Uint8Array|null); + encryptedDeviceToken?: Uint8Array | null; /** StartLoginRequest username */ - username?: (string|null); + username?: string | null; /** StartLoginRequest clientVersion */ - clientVersion?: (string|null); + clientVersion?: string | null; /** StartLoginRequest messageSessionUid */ - messageSessionUid?: (Uint8Array|null); + messageSessionUid?: Uint8Array | null; /** StartLoginRequest encryptedLoginToken */ - encryptedLoginToken?: (Uint8Array|null); + encryptedLoginToken?: Uint8Array | null; /** StartLoginRequest loginType */ - loginType?: (Authentication.LoginType|null); + loginType?: Authentication.LoginType | null; /** StartLoginRequest mcEnterpriseId */ - mcEnterpriseId?: (number|null); + mcEnterpriseId?: number | null; /** StartLoginRequest loginMethod */ - loginMethod?: (Authentication.LoginMethod|null); + loginMethod?: Authentication.LoginMethod | null; /** StartLoginRequest forceNewLogin */ - forceNewLogin?: (boolean|null); + forceNewLogin?: boolean | null; /** StartLoginRequest cloneCode */ - cloneCode?: (Uint8Array|null); + cloneCode?: Uint8Array | null; /** StartLoginRequest v2TwoFactorToken */ - v2TwoFactorToken?: (string|null); + v2TwoFactorToken?: string | null; /** StartLoginRequest accountUid */ - accountUid?: (Uint8Array|null); + accountUid?: Uint8Array | null; /** StartLoginRequest fromSessionToken */ - fromSessionToken?: (Uint8Array|null); + fromSessionToken?: Uint8Array | null; } /** Represents a StartLoginRequest. */ class StartLoginRequest implements IStartLoginRequest { - /** * Constructs a new StartLoginRequest. * @param [properties] Properties to set @@ -1654,7 +1696,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.IStartLoginRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.IStartLoginRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a StartLoginRequest message from the specified reader or buffer. @@ -1664,7 +1709,7 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.StartLoginRequest; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Authentication.StartLoginRequest; /** * Decodes a StartLoginRequest message from the specified reader or buffer, length delimited. @@ -1673,14 +1718,14 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.StartLoginRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Authentication.StartLoginRequest; /** * Verifies a StartLoginRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a StartLoginRequest message from a plain object. Also converts values to their respective internal types. @@ -1695,7 +1740,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.StartLoginRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.StartLoginRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this StartLoginRequest to JSON. @@ -1713,59 +1761,57 @@ export namespace Authentication { /** Properties of a LoginResponse. */ interface ILoginResponse { - /** LoginResponse loginState */ - loginState?: (Authentication.LoginState|null); + loginState?: Authentication.LoginState | null; /** LoginResponse accountUid */ - accountUid?: (Uint8Array|null); + accountUid?: Uint8Array | null; /** LoginResponse primaryUsername */ - primaryUsername?: (string|null); + primaryUsername?: string | null; /** LoginResponse encryptedDataKey */ - encryptedDataKey?: (Uint8Array|null); + encryptedDataKey?: Uint8Array | null; /** LoginResponse encryptedDataKeyType */ - encryptedDataKeyType?: (Authentication.EncryptedDataKeyType|null); + encryptedDataKeyType?: Authentication.EncryptedDataKeyType | null; /** LoginResponse encryptedLoginToken */ - encryptedLoginToken?: (Uint8Array|null); + encryptedLoginToken?: Uint8Array | null; /** LoginResponse encryptedSessionToken */ - encryptedSessionToken?: (Uint8Array|null); + encryptedSessionToken?: Uint8Array | null; /** LoginResponse sessionTokenType */ - sessionTokenType?: (Authentication.SessionTokenType|null); + sessionTokenType?: Authentication.SessionTokenType | null; /** LoginResponse message */ - message?: (string|null); + message?: string | null; /** LoginResponse url */ - url?: (string|null); + url?: string | null; /** LoginResponse channels */ - channels?: (Authentication.ITwoFactorChannelInfo[]|null); + channels?: Authentication.ITwoFactorChannelInfo[] | null; /** LoginResponse salt */ - salt?: (Authentication.ISalt[]|null); + salt?: Authentication.ISalt[] | null; /** LoginResponse cloneCode */ - cloneCode?: (Uint8Array|null); + cloneCode?: Uint8Array | null; /** LoginResponse stateSpecificValue */ - stateSpecificValue?: (string|null); + stateSpecificValue?: string | null; /** LoginResponse ssoClientVersion */ - ssoClientVersion?: (string|null); + ssoClientVersion?: string | null; /** LoginResponse sessionTokenTypeModifier */ - sessionTokenTypeModifier?: (string|null); + sessionTokenTypeModifier?: string | null; } /** Represents a LoginResponse. */ class LoginResponse implements ILoginResponse { - /** * Constructs a new LoginResponse. * @param [properties] Properties to set @@ -1841,7 +1887,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.ILoginResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.ILoginResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a LoginResponse message from the specified reader or buffer. @@ -1851,7 +1900,7 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.LoginResponse; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Authentication.LoginResponse; /** * Decodes a LoginResponse message from the specified reader or buffer, length delimited. @@ -1860,14 +1909,14 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.LoginResponse; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Authentication.LoginResponse; /** * Verifies a LoginResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a LoginResponse message from a plain object. Also converts values to their respective internal types. @@ -1882,7 +1931,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.LoginResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.LoginResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this LoginResponse to JSON. @@ -1900,26 +1952,24 @@ export namespace Authentication { /** Properties of a SwitchListElement. */ interface ISwitchListElement { - /** SwitchListElement username */ - username?: (string|null); + username?: string | null; /** SwitchListElement fullName */ - fullName?: (string|null); + fullName?: string | null; /** SwitchListElement authRequired */ - authRequired?: (boolean|null); + authRequired?: boolean | null; /** SwitchListElement isLinked */ - isLinked?: (boolean|null); + isLinked?: boolean | null; /** SwitchListElement profilePicUrl */ - profilePicUrl?: (string|null); + profilePicUrl?: string | null; } /** Represents a SwitchListElement. */ class SwitchListElement implements ISwitchListElement { - /** * Constructs a new SwitchListElement. * @param [properties] Properties to set @@ -1962,7 +2012,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.ISwitchListElement, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.ISwitchListElement, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a SwitchListElement message from the specified reader or buffer. @@ -1972,7 +2025,7 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.SwitchListElement; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Authentication.SwitchListElement; /** * Decodes a SwitchListElement message from the specified reader or buffer, length delimited. @@ -1981,14 +2034,14 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.SwitchListElement; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Authentication.SwitchListElement; /** * Verifies a SwitchListElement message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a SwitchListElement message from a plain object. Also converts values to their respective internal types. @@ -2003,7 +2056,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.SwitchListElement, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.SwitchListElement, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this SwitchListElement to JSON. @@ -2021,14 +2077,12 @@ export namespace Authentication { /** Properties of a SwitchListResponse. */ interface ISwitchListResponse { - /** SwitchListResponse elements */ - elements?: (Authentication.ISwitchListElement[]|null); + elements?: Authentication.ISwitchListElement[] | null; } /** Represents a SwitchListResponse. */ class SwitchListResponse implements ISwitchListResponse { - /** * Constructs a new SwitchListResponse. * @param [properties] Properties to set @@ -2059,7 +2113,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.ISwitchListResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.ISwitchListResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a SwitchListResponse message from the specified reader or buffer. @@ -2069,7 +2126,7 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.SwitchListResponse; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Authentication.SwitchListResponse; /** * Decodes a SwitchListResponse message from the specified reader or buffer, length delimited. @@ -2078,14 +2135,14 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.SwitchListResponse; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Authentication.SwitchListResponse; /** * Verifies a SwitchListResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a SwitchListResponse message from a plain object. Also converts values to their respective internal types. @@ -2100,7 +2157,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.SwitchListResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.SwitchListResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this SwitchListResponse to JSON. @@ -2118,29 +2178,27 @@ export namespace Authentication { /** Properties of a SsoUserInfo. */ interface ISsoUserInfo { - /** SsoUserInfo companyName */ - companyName?: (string|null); + companyName?: string | null; /** SsoUserInfo samlRequest */ - samlRequest?: (string|null); + samlRequest?: string | null; /** SsoUserInfo samlRequestType */ - samlRequestType?: (string|null); + samlRequestType?: string | null; /** SsoUserInfo ssoDomainName */ - ssoDomainName?: (string|null); + ssoDomainName?: string | null; /** SsoUserInfo loginUrl */ - loginUrl?: (string|null); + loginUrl?: string | null; /** SsoUserInfo logoutUrl */ - logoutUrl?: (string|null); + logoutUrl?: string | null; } /** Represents a SsoUserInfo. */ class SsoUserInfo implements ISsoUserInfo { - /** * Constructs a new SsoUserInfo. * @param [properties] Properties to set @@ -2186,7 +2244,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.ISsoUserInfo, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.ISsoUserInfo, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a SsoUserInfo message from the specified reader or buffer. @@ -2196,7 +2257,7 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.SsoUserInfo; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Authentication.SsoUserInfo; /** * Decodes a SsoUserInfo message from the specified reader or buffer, length delimited. @@ -2205,14 +2266,14 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.SsoUserInfo; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Authentication.SsoUserInfo; /** * Verifies a SsoUserInfo message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a SsoUserInfo message from a plain object. Also converts values to their respective internal types. @@ -2227,7 +2288,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.SsoUserInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.SsoUserInfo, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this SsoUserInfo to JSON. @@ -2245,23 +2309,21 @@ export namespace Authentication { /** Properties of a PreLoginResponse. */ interface IPreLoginResponse { - /** PreLoginResponse deviceStatus */ - deviceStatus?: (Authentication.DeviceStatus|null); + deviceStatus?: Authentication.DeviceStatus | null; /** PreLoginResponse salt */ - salt?: (Authentication.ISalt[]|null); + salt?: Authentication.ISalt[] | null; /** PreLoginResponse OBSOLETE_FIELD */ - OBSOLETE_FIELD?: (Authentication.ITwoFactorChannel[]|null); + OBSOLETE_FIELD?: Authentication.ITwoFactorChannel[] | null; /** PreLoginResponse ssoUserInfo */ - ssoUserInfo?: (Authentication.ISsoUserInfo|null); + ssoUserInfo?: Authentication.ISsoUserInfo | null; } /** Represents a PreLoginResponse. */ class PreLoginResponse implements IPreLoginResponse { - /** * Constructs a new PreLoginResponse. * @param [properties] Properties to set @@ -2278,7 +2340,7 @@ export namespace Authentication { public OBSOLETE_FIELD: Authentication.ITwoFactorChannel[]; /** PreLoginResponse ssoUserInfo. */ - public ssoUserInfo?: (Authentication.ISsoUserInfo|null); + public ssoUserInfo?: Authentication.ISsoUserInfo | null; /** * Creates a new PreLoginResponse instance using the specified properties. @@ -2301,7 +2363,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.IPreLoginResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.IPreLoginResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a PreLoginResponse message from the specified reader or buffer. @@ -2311,7 +2376,7 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.PreLoginResponse; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Authentication.PreLoginResponse; /** * Decodes a PreLoginResponse message from the specified reader or buffer, length delimited. @@ -2320,14 +2385,14 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.PreLoginResponse; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Authentication.PreLoginResponse; /** * Verifies a PreLoginResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a PreLoginResponse message from a plain object. Also converts values to their respective internal types. @@ -2342,7 +2407,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.PreLoginResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.PreLoginResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this PreLoginResponse to JSON. @@ -2360,14 +2428,12 @@ export namespace Authentication { /** Properties of a LoginAsUserRequest. */ interface ILoginAsUserRequest { - /** LoginAsUserRequest username */ - username?: (string|null); + username?: string | null; } /** Represents a LoginAsUserRequest. */ class LoginAsUserRequest implements ILoginAsUserRequest { - /** * Constructs a new LoginAsUserRequest. * @param [properties] Properties to set @@ -2398,7 +2464,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.ILoginAsUserRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.ILoginAsUserRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a LoginAsUserRequest message from the specified reader or buffer. @@ -2408,7 +2477,7 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.LoginAsUserRequest; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Authentication.LoginAsUserRequest; /** * Decodes a LoginAsUserRequest message from the specified reader or buffer, length delimited. @@ -2417,14 +2486,14 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.LoginAsUserRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Authentication.LoginAsUserRequest; /** * Verifies a LoginAsUserRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a LoginAsUserRequest message from a plain object. Also converts values to their respective internal types. @@ -2439,7 +2508,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.LoginAsUserRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.LoginAsUserRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this LoginAsUserRequest to JSON. @@ -2457,17 +2529,15 @@ export namespace Authentication { /** Properties of a LoginAsUserResponse. */ interface ILoginAsUserResponse { - /** LoginAsUserResponse encryptedSessionToken */ - encryptedSessionToken?: (Uint8Array|null); + encryptedSessionToken?: Uint8Array | null; /** LoginAsUserResponse encryptedSharedAccountKey */ - encryptedSharedAccountKey?: (Uint8Array|null); + encryptedSharedAccountKey?: Uint8Array | null; } /** Represents a LoginAsUserResponse. */ class LoginAsUserResponse implements ILoginAsUserResponse { - /** * Constructs a new LoginAsUserResponse. * @param [properties] Properties to set @@ -2501,7 +2571,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.ILoginAsUserResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.ILoginAsUserResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a LoginAsUserResponse message from the specified reader or buffer. @@ -2511,7 +2584,10 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.LoginAsUserResponse; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Authentication.LoginAsUserResponse; /** * Decodes a LoginAsUserResponse message from the specified reader or buffer, length delimited. @@ -2520,14 +2596,14 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.LoginAsUserResponse; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Authentication.LoginAsUserResponse; /** * Verifies a LoginAsUserResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a LoginAsUserResponse message from a plain object. Also converts values to their respective internal types. @@ -2542,7 +2618,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.LoginAsUserResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.LoginAsUserResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this LoginAsUserResponse to JSON. @@ -2561,25 +2640,23 @@ export namespace Authentication { /** PasswordMethod enum. */ enum PasswordMethod { ENTERED = 0, - BIOMETRICS = 1 + BIOMETRICS = 1, } /** Properties of a ValidateAuthHashRequest. */ interface IValidateAuthHashRequest { - /** ValidateAuthHashRequest passwordMethod */ - passwordMethod?: (Authentication.PasswordMethod|null); + passwordMethod?: Authentication.PasswordMethod | null; /** ValidateAuthHashRequest authResponse */ - authResponse?: (Uint8Array|null); + authResponse?: Uint8Array | null; /** ValidateAuthHashRequest encryptedLoginToken */ - encryptedLoginToken?: (Uint8Array|null); + encryptedLoginToken?: Uint8Array | null; } /** Represents a ValidateAuthHashRequest. */ class ValidateAuthHashRequest implements IValidateAuthHashRequest { - /** * Constructs a new ValidateAuthHashRequest. * @param [properties] Properties to set @@ -2600,7 +2677,9 @@ export namespace Authentication { * @param [properties] Properties to set * @returns ValidateAuthHashRequest instance */ - public static create(properties?: Authentication.IValidateAuthHashRequest): Authentication.ValidateAuthHashRequest; + public static create( + properties?: Authentication.IValidateAuthHashRequest + ): Authentication.ValidateAuthHashRequest; /** * Encodes the specified ValidateAuthHashRequest message. Does not implicitly {@link Authentication.ValidateAuthHashRequest.verify|verify} messages. @@ -2608,7 +2687,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Authentication.IValidateAuthHashRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Authentication.IValidateAuthHashRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified ValidateAuthHashRequest message, length delimited. Does not implicitly {@link Authentication.ValidateAuthHashRequest.verify|verify} messages. @@ -2616,7 +2698,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.IValidateAuthHashRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.IValidateAuthHashRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a ValidateAuthHashRequest message from the specified reader or buffer. @@ -2626,7 +2711,10 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.ValidateAuthHashRequest; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Authentication.ValidateAuthHashRequest; /** * Decodes a ValidateAuthHashRequest message from the specified reader or buffer, length delimited. @@ -2635,14 +2723,14 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.ValidateAuthHashRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Authentication.ValidateAuthHashRequest; /** * Verifies a ValidateAuthHashRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a ValidateAuthHashRequest message from a plain object. Also converts values to their respective internal types. @@ -2657,7 +2745,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.ValidateAuthHashRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.ValidateAuthHashRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this ValidateAuthHashRequest to JSON. @@ -2681,7 +2772,7 @@ export namespace Authentication { TWO_FA_PUSH_DUO_PUSH = 3, TWO_FA_PUSH_DUO_TEXT = 4, TWO_FA_PUSH_DUO_CALL = 5, - TWO_FA_PUSH_DNA = 6 + TWO_FA_PUSH_DNA = 6, } /** TwoFactorValueType enum. */ @@ -2693,7 +2784,7 @@ export namespace Authentication { TWO_FA_CODE_RSA = 4, TWO_FA_RESP_U2F = 5, TWO_FA_RESP_WEBAUTHN = 6, - TWO_FA_CODE_DNA = 7 + TWO_FA_CODE_DNA = 7, } /** TwoFactorChannelType enum. */ @@ -2707,43 +2798,41 @@ export namespace Authentication { TWO_FA_CT_U2F = 6, TWO_FA_CT_WEBAUTHN = 7, TWO_FA_CT_KEEPER = 8, - TWO_FA_CT_DNA = 9 + TWO_FA_CT_DNA = 9, } /** Properties of a TwoFactorChannelInfo. */ interface ITwoFactorChannelInfo { - /** TwoFactorChannelInfo channelType */ - channelType?: (Authentication.TwoFactorChannelType|null); + channelType?: Authentication.TwoFactorChannelType | null; /** TwoFactorChannelInfo channelUid */ - channelUid?: (Uint8Array|null); + channelUid?: Uint8Array | null; /** TwoFactorChannelInfo channelName */ - channelName?: (string|null); + channelName?: string | null; /** TwoFactorChannelInfo challenge */ - challenge?: (string|null); + challenge?: string | null; /** TwoFactorChannelInfo capabilities */ - capabilities?: (string[]|null); + capabilities?: string[] | null; /** TwoFactorChannelInfo phoneNumber */ - phoneNumber?: (string|null); + phoneNumber?: string | null; /** TwoFactorChannelInfo maxExpiration */ - maxExpiration?: (Authentication.TwoFactorExpiration|null); + maxExpiration?: Authentication.TwoFactorExpiration | null; /** TwoFactorChannelInfo createdOn */ - createdOn?: (number|Long|null); + createdOn?: number | Long | null; /** TwoFactorChannelInfo lastFrequency */ - lastFrequency?: (Authentication.TwoFactorExpiration|null); + lastFrequency?: Authentication.TwoFactorExpiration | null; } /** Represents a TwoFactorChannelInfo. */ class TwoFactorChannelInfo implements ITwoFactorChannelInfo { - /** * Constructs a new TwoFactorChannelInfo. * @param [properties] Properties to set @@ -2772,7 +2861,7 @@ export namespace Authentication { public maxExpiration: Authentication.TwoFactorExpiration; /** TwoFactorChannelInfo createdOn. */ - public createdOn: (number|Long); + public createdOn: number | Long; /** TwoFactorChannelInfo lastFrequency. */ public lastFrequency: Authentication.TwoFactorExpiration; @@ -2790,7 +2879,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Authentication.ITwoFactorChannelInfo, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Authentication.ITwoFactorChannelInfo, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified TwoFactorChannelInfo message, length delimited. Does not implicitly {@link Authentication.TwoFactorChannelInfo.verify|verify} messages. @@ -2798,7 +2890,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.ITwoFactorChannelInfo, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.ITwoFactorChannelInfo, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a TwoFactorChannelInfo message from the specified reader or buffer. @@ -2808,7 +2903,10 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.TwoFactorChannelInfo; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Authentication.TwoFactorChannelInfo; /** * Decodes a TwoFactorChannelInfo message from the specified reader or buffer, length delimited. @@ -2817,14 +2915,14 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.TwoFactorChannelInfo; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Authentication.TwoFactorChannelInfo; /** * Verifies a TwoFactorChannelInfo message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a TwoFactorChannelInfo message from a plain object. Also converts values to their respective internal types. @@ -2839,7 +2937,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.TwoFactorChannelInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.TwoFactorChannelInfo, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this TwoFactorChannelInfo to JSON. @@ -2862,28 +2963,26 @@ export namespace Authentication { TWO_FA_EXP_12_HOURS = 2, TWO_FA_EXP_24_HOURS = 3, TWO_FA_EXP_30_DAYS = 4, - TWO_FA_EXP_NEVER = 5 + TWO_FA_EXP_NEVER = 5, } /** Properties of a TwoFactorDuoStatus. */ interface ITwoFactorDuoStatus { - /** TwoFactorDuoStatus capabilities */ - capabilities?: (string[]|null); + capabilities?: string[] | null; /** TwoFactorDuoStatus phoneNumber */ - phoneNumber?: (string|null); + phoneNumber?: string | null; /** TwoFactorDuoStatus enrollUrl */ - enrollUrl?: (string|null); + enrollUrl?: string | null; /** TwoFactorDuoStatus message */ - message?: (string|null); + message?: string | null; } /** Represents a TwoFactorDuoStatus. */ class TwoFactorDuoStatus implements ITwoFactorDuoStatus { - /** * Constructs a new TwoFactorDuoStatus. * @param [properties] Properties to set @@ -2923,7 +3022,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.ITwoFactorDuoStatus, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.ITwoFactorDuoStatus, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a TwoFactorDuoStatus message from the specified reader or buffer. @@ -2933,7 +3035,7 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.TwoFactorDuoStatus; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Authentication.TwoFactorDuoStatus; /** * Decodes a TwoFactorDuoStatus message from the specified reader or buffer, length delimited. @@ -2942,14 +3044,14 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.TwoFactorDuoStatus; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Authentication.TwoFactorDuoStatus; /** * Verifies a TwoFactorDuoStatus message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a TwoFactorDuoStatus message from a plain object. Also converts values to their respective internal types. @@ -2964,7 +3066,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.TwoFactorDuoStatus, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.TwoFactorDuoStatus, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this TwoFactorDuoStatus to JSON. @@ -2982,26 +3087,24 @@ export namespace Authentication { /** Properties of a TwoFactorAddRequest. */ interface ITwoFactorAddRequest { - /** TwoFactorAddRequest channelType */ - channelType?: (Authentication.TwoFactorChannelType|null); + channelType?: Authentication.TwoFactorChannelType | null; /** TwoFactorAddRequest channelUid */ - channelUid?: (Uint8Array|null); + channelUid?: Uint8Array | null; /** TwoFactorAddRequest channelName */ - channelName?: (string|null); + channelName?: string | null; /** TwoFactorAddRequest phoneNumber */ - phoneNumber?: (string|null); + phoneNumber?: string | null; /** TwoFactorAddRequest duoPushType */ - duoPushType?: (Authentication.TwoFactorPushType|null); + duoPushType?: Authentication.TwoFactorPushType | null; } /** Represents a TwoFactorAddRequest. */ class TwoFactorAddRequest implements ITwoFactorAddRequest { - /** * Constructs a new TwoFactorAddRequest. * @param [properties] Properties to set @@ -3044,7 +3147,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.ITwoFactorAddRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.ITwoFactorAddRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a TwoFactorAddRequest message from the specified reader or buffer. @@ -3054,7 +3160,10 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.TwoFactorAddRequest; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Authentication.TwoFactorAddRequest; /** * Decodes a TwoFactorAddRequest message from the specified reader or buffer, length delimited. @@ -3063,14 +3172,14 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.TwoFactorAddRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Authentication.TwoFactorAddRequest; /** * Verifies a TwoFactorAddRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a TwoFactorAddRequest message from a plain object. Also converts values to their respective internal types. @@ -3085,7 +3194,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.TwoFactorAddRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.TwoFactorAddRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this TwoFactorAddRequest to JSON. @@ -3103,17 +3215,15 @@ export namespace Authentication { /** Properties of a TwoFactorRenameRequest. */ interface ITwoFactorRenameRequest { - /** TwoFactorRenameRequest channelUid */ - channelUid?: (Uint8Array|null); + channelUid?: Uint8Array | null; /** TwoFactorRenameRequest channelName */ - channelName?: (string|null); + channelName?: string | null; } /** Represents a TwoFactorRenameRequest. */ class TwoFactorRenameRequest implements ITwoFactorRenameRequest { - /** * Constructs a new TwoFactorRenameRequest. * @param [properties] Properties to set @@ -3131,7 +3241,9 @@ export namespace Authentication { * @param [properties] Properties to set * @returns TwoFactorRenameRequest instance */ - public static create(properties?: Authentication.ITwoFactorRenameRequest): Authentication.TwoFactorRenameRequest; + public static create( + properties?: Authentication.ITwoFactorRenameRequest + ): Authentication.TwoFactorRenameRequest; /** * Encodes the specified TwoFactorRenameRequest message. Does not implicitly {@link Authentication.TwoFactorRenameRequest.verify|verify} messages. @@ -3139,7 +3251,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Authentication.ITwoFactorRenameRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Authentication.ITwoFactorRenameRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified TwoFactorRenameRequest message, length delimited. Does not implicitly {@link Authentication.TwoFactorRenameRequest.verify|verify} messages. @@ -3147,7 +3262,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.ITwoFactorRenameRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.ITwoFactorRenameRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a TwoFactorRenameRequest message from the specified reader or buffer. @@ -3157,7 +3275,10 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.TwoFactorRenameRequest; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Authentication.TwoFactorRenameRequest; /** * Decodes a TwoFactorRenameRequest message from the specified reader or buffer, length delimited. @@ -3166,14 +3287,14 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.TwoFactorRenameRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Authentication.TwoFactorRenameRequest; /** * Verifies a TwoFactorRenameRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a TwoFactorRenameRequest message from a plain object. Also converts values to their respective internal types. @@ -3188,7 +3309,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.TwoFactorRenameRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.TwoFactorRenameRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this TwoFactorRenameRequest to JSON. @@ -3206,17 +3330,15 @@ export namespace Authentication { /** Properties of a TwoFactorAddResponse. */ interface ITwoFactorAddResponse { - /** TwoFactorAddResponse challenge */ - challenge?: (string|null); + challenge?: string | null; /** TwoFactorAddResponse backupKeys */ - backupKeys?: (string[]|null); + backupKeys?: string[] | null; } /** Represents a TwoFactorAddResponse. */ class TwoFactorAddResponse implements ITwoFactorAddResponse { - /** * Constructs a new TwoFactorAddResponse. * @param [properties] Properties to set @@ -3242,7 +3364,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Authentication.ITwoFactorAddResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Authentication.ITwoFactorAddResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified TwoFactorAddResponse message, length delimited. Does not implicitly {@link Authentication.TwoFactorAddResponse.verify|verify} messages. @@ -3250,7 +3375,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.ITwoFactorAddResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.ITwoFactorAddResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a TwoFactorAddResponse message from the specified reader or buffer. @@ -3260,7 +3388,10 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.TwoFactorAddResponse; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Authentication.TwoFactorAddResponse; /** * Decodes a TwoFactorAddResponse message from the specified reader or buffer, length delimited. @@ -3269,14 +3400,14 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.TwoFactorAddResponse; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Authentication.TwoFactorAddResponse; /** * Verifies a TwoFactorAddResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a TwoFactorAddResponse message from a plain object. Also converts values to their respective internal types. @@ -3291,7 +3422,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.TwoFactorAddResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.TwoFactorAddResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this TwoFactorAddResponse to JSON. @@ -3309,14 +3443,12 @@ export namespace Authentication { /** Properties of a TwoFactorDeleteRequest. */ interface ITwoFactorDeleteRequest { - /** TwoFactorDeleteRequest channelUid */ - channelUid?: (Uint8Array|null); + channelUid?: Uint8Array | null; } /** Represents a TwoFactorDeleteRequest. */ class TwoFactorDeleteRequest implements ITwoFactorDeleteRequest { - /** * Constructs a new TwoFactorDeleteRequest. * @param [properties] Properties to set @@ -3331,7 +3463,9 @@ export namespace Authentication { * @param [properties] Properties to set * @returns TwoFactorDeleteRequest instance */ - public static create(properties?: Authentication.ITwoFactorDeleteRequest): Authentication.TwoFactorDeleteRequest; + public static create( + properties?: Authentication.ITwoFactorDeleteRequest + ): Authentication.TwoFactorDeleteRequest; /** * Encodes the specified TwoFactorDeleteRequest message. Does not implicitly {@link Authentication.TwoFactorDeleteRequest.verify|verify} messages. @@ -3339,7 +3473,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Authentication.ITwoFactorDeleteRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Authentication.ITwoFactorDeleteRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified TwoFactorDeleteRequest message, length delimited. Does not implicitly {@link Authentication.TwoFactorDeleteRequest.verify|verify} messages. @@ -3347,7 +3484,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.ITwoFactorDeleteRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.ITwoFactorDeleteRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a TwoFactorDeleteRequest message from the specified reader or buffer. @@ -3357,7 +3497,10 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.TwoFactorDeleteRequest; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Authentication.TwoFactorDeleteRequest; /** * Decodes a TwoFactorDeleteRequest message from the specified reader or buffer, length delimited. @@ -3366,14 +3509,14 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.TwoFactorDeleteRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Authentication.TwoFactorDeleteRequest; /** * Verifies a TwoFactorDeleteRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a TwoFactorDeleteRequest message from a plain object. Also converts values to their respective internal types. @@ -3388,7 +3531,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.TwoFactorDeleteRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.TwoFactorDeleteRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this TwoFactorDeleteRequest to JSON. @@ -3406,17 +3552,15 @@ export namespace Authentication { /** Properties of a TwoFactorListResponse. */ interface ITwoFactorListResponse { - /** TwoFactorListResponse channels */ - channels?: (Authentication.ITwoFactorChannelInfo[]|null); + channels?: Authentication.ITwoFactorChannelInfo[] | null; /** TwoFactorListResponse expireOn */ - expireOn?: (number|Long|null); + expireOn?: number | Long | null; } /** Represents a TwoFactorListResponse. */ class TwoFactorListResponse implements ITwoFactorListResponse { - /** * Constructs a new TwoFactorListResponse. * @param [properties] Properties to set @@ -3427,7 +3571,7 @@ export namespace Authentication { public channels: Authentication.ITwoFactorChannelInfo[]; /** TwoFactorListResponse expireOn. */ - public expireOn: (number|Long); + public expireOn: number | Long; /** * Creates a new TwoFactorListResponse instance using the specified properties. @@ -3442,7 +3586,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Authentication.ITwoFactorListResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Authentication.ITwoFactorListResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified TwoFactorListResponse message, length delimited. Does not implicitly {@link Authentication.TwoFactorListResponse.verify|verify} messages. @@ -3450,7 +3597,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.ITwoFactorListResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.ITwoFactorListResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a TwoFactorListResponse message from the specified reader or buffer. @@ -3460,7 +3610,10 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.TwoFactorListResponse; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Authentication.TwoFactorListResponse; /** * Decodes a TwoFactorListResponse message from the specified reader or buffer, length delimited. @@ -3469,14 +3622,14 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.TwoFactorListResponse; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Authentication.TwoFactorListResponse; /** * Verifies a TwoFactorListResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a TwoFactorListResponse message from a plain object. Also converts values to their respective internal types. @@ -3491,7 +3644,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.TwoFactorListResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.TwoFactorListResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this TwoFactorListResponse to JSON. @@ -3509,14 +3665,12 @@ export namespace Authentication { /** Properties of a TwoFactorUpdateExpirationRequest. */ interface ITwoFactorUpdateExpirationRequest { - /** TwoFactorUpdateExpirationRequest expireIn */ - expireIn?: (Authentication.TwoFactorExpiration|null); + expireIn?: Authentication.TwoFactorExpiration | null; } /** Represents a TwoFactorUpdateExpirationRequest. */ class TwoFactorUpdateExpirationRequest implements ITwoFactorUpdateExpirationRequest { - /** * Constructs a new TwoFactorUpdateExpirationRequest. * @param [properties] Properties to set @@ -3531,7 +3685,9 @@ export namespace Authentication { * @param [properties] Properties to set * @returns TwoFactorUpdateExpirationRequest instance */ - public static create(properties?: Authentication.ITwoFactorUpdateExpirationRequest): Authentication.TwoFactorUpdateExpirationRequest; + public static create( + properties?: Authentication.ITwoFactorUpdateExpirationRequest + ): Authentication.TwoFactorUpdateExpirationRequest; /** * Encodes the specified TwoFactorUpdateExpirationRequest message. Does not implicitly {@link Authentication.TwoFactorUpdateExpirationRequest.verify|verify} messages. @@ -3539,7 +3695,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Authentication.ITwoFactorUpdateExpirationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Authentication.ITwoFactorUpdateExpirationRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified TwoFactorUpdateExpirationRequest message, length delimited. Does not implicitly {@link Authentication.TwoFactorUpdateExpirationRequest.verify|verify} messages. @@ -3547,7 +3706,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.ITwoFactorUpdateExpirationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.ITwoFactorUpdateExpirationRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a TwoFactorUpdateExpirationRequest message from the specified reader or buffer. @@ -3557,7 +3719,10 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.TwoFactorUpdateExpirationRequest; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Authentication.TwoFactorUpdateExpirationRequest; /** * Decodes a TwoFactorUpdateExpirationRequest message from the specified reader or buffer, length delimited. @@ -3566,14 +3731,16 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.TwoFactorUpdateExpirationRequest; + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array + ): Authentication.TwoFactorUpdateExpirationRequest; /** * Verifies a TwoFactorUpdateExpirationRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a TwoFactorUpdateExpirationRequest message from a plain object. Also converts values to their respective internal types. @@ -3588,7 +3755,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.TwoFactorUpdateExpirationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.TwoFactorUpdateExpirationRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this TwoFactorUpdateExpirationRequest to JSON. @@ -3606,26 +3776,24 @@ export namespace Authentication { /** Properties of a TwoFactorValidateRequest. */ interface ITwoFactorValidateRequest { - /** TwoFactorValidateRequest encryptedLoginToken */ - encryptedLoginToken?: (Uint8Array|null); + encryptedLoginToken?: Uint8Array | null; /** TwoFactorValidateRequest valueType */ - valueType?: (Authentication.TwoFactorValueType|null); + valueType?: Authentication.TwoFactorValueType | null; /** TwoFactorValidateRequest value */ - value?: (string|null); + value?: string | null; /** TwoFactorValidateRequest channelUid */ - channelUid?: (Uint8Array|null); + channelUid?: Uint8Array | null; /** TwoFactorValidateRequest expireIn */ - expireIn?: (Authentication.TwoFactorExpiration|null); + expireIn?: Authentication.TwoFactorExpiration | null; } /** Represents a TwoFactorValidateRequest. */ class TwoFactorValidateRequest implements ITwoFactorValidateRequest { - /** * Constructs a new TwoFactorValidateRequest. * @param [properties] Properties to set @@ -3652,7 +3820,9 @@ export namespace Authentication { * @param [properties] Properties to set * @returns TwoFactorValidateRequest instance */ - public static create(properties?: Authentication.ITwoFactorValidateRequest): Authentication.TwoFactorValidateRequest; + public static create( + properties?: Authentication.ITwoFactorValidateRequest + ): Authentication.TwoFactorValidateRequest; /** * Encodes the specified TwoFactorValidateRequest message. Does not implicitly {@link Authentication.TwoFactorValidateRequest.verify|verify} messages. @@ -3660,7 +3830,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Authentication.ITwoFactorValidateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Authentication.ITwoFactorValidateRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified TwoFactorValidateRequest message, length delimited. Does not implicitly {@link Authentication.TwoFactorValidateRequest.verify|verify} messages. @@ -3668,7 +3841,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.ITwoFactorValidateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.ITwoFactorValidateRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a TwoFactorValidateRequest message from the specified reader or buffer. @@ -3678,7 +3854,10 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.TwoFactorValidateRequest; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Authentication.TwoFactorValidateRequest; /** * Decodes a TwoFactorValidateRequest message from the specified reader or buffer, length delimited. @@ -3687,14 +3866,14 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.TwoFactorValidateRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Authentication.TwoFactorValidateRequest; /** * Verifies a TwoFactorValidateRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a TwoFactorValidateRequest message from a plain object. Also converts values to their respective internal types. @@ -3709,7 +3888,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.TwoFactorValidateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.TwoFactorValidateRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this TwoFactorValidateRequest to JSON. @@ -3727,14 +3909,12 @@ export namespace Authentication { /** Properties of a TwoFactorValidateResponse. */ interface ITwoFactorValidateResponse { - /** TwoFactorValidateResponse encryptedLoginToken */ - encryptedLoginToken?: (Uint8Array|null); + encryptedLoginToken?: Uint8Array | null; } /** Represents a TwoFactorValidateResponse. */ class TwoFactorValidateResponse implements ITwoFactorValidateResponse { - /** * Constructs a new TwoFactorValidateResponse. * @param [properties] Properties to set @@ -3749,7 +3929,9 @@ export namespace Authentication { * @param [properties] Properties to set * @returns TwoFactorValidateResponse instance */ - public static create(properties?: Authentication.ITwoFactorValidateResponse): Authentication.TwoFactorValidateResponse; + public static create( + properties?: Authentication.ITwoFactorValidateResponse + ): Authentication.TwoFactorValidateResponse; /** * Encodes the specified TwoFactorValidateResponse message. Does not implicitly {@link Authentication.TwoFactorValidateResponse.verify|verify} messages. @@ -3757,7 +3939,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Authentication.ITwoFactorValidateResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Authentication.ITwoFactorValidateResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified TwoFactorValidateResponse message, length delimited. Does not implicitly {@link Authentication.TwoFactorValidateResponse.verify|verify} messages. @@ -3765,7 +3950,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.ITwoFactorValidateResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.ITwoFactorValidateResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a TwoFactorValidateResponse message from the specified reader or buffer. @@ -3775,7 +3963,10 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.TwoFactorValidateResponse; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Authentication.TwoFactorValidateResponse; /** * Decodes a TwoFactorValidateResponse message from the specified reader or buffer, length delimited. @@ -3784,14 +3975,14 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.TwoFactorValidateResponse; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Authentication.TwoFactorValidateResponse; /** * Verifies a TwoFactorValidateResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a TwoFactorValidateResponse message from a plain object. Also converts values to their respective internal types. @@ -3806,7 +3997,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.TwoFactorValidateResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.TwoFactorValidateResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this TwoFactorValidateResponse to JSON. @@ -3824,23 +4018,21 @@ export namespace Authentication { /** Properties of a TwoFactorSendPushRequest. */ interface ITwoFactorSendPushRequest { - /** TwoFactorSendPushRequest encryptedLoginToken */ - encryptedLoginToken?: (Uint8Array|null); + encryptedLoginToken?: Uint8Array | null; /** TwoFactorSendPushRequest pushType */ - pushType?: (Authentication.TwoFactorPushType|null); + pushType?: Authentication.TwoFactorPushType | null; /** TwoFactorSendPushRequest channelUid */ - channelUid?: (Uint8Array|null); + channelUid?: Uint8Array | null; /** TwoFactorSendPushRequest expireIn */ - expireIn?: (Authentication.TwoFactorExpiration|null); + expireIn?: Authentication.TwoFactorExpiration | null; } /** Represents a TwoFactorSendPushRequest. */ class TwoFactorSendPushRequest implements ITwoFactorSendPushRequest { - /** * Constructs a new TwoFactorSendPushRequest. * @param [properties] Properties to set @@ -3864,7 +4056,9 @@ export namespace Authentication { * @param [properties] Properties to set * @returns TwoFactorSendPushRequest instance */ - public static create(properties?: Authentication.ITwoFactorSendPushRequest): Authentication.TwoFactorSendPushRequest; + public static create( + properties?: Authentication.ITwoFactorSendPushRequest + ): Authentication.TwoFactorSendPushRequest; /** * Encodes the specified TwoFactorSendPushRequest message. Does not implicitly {@link Authentication.TwoFactorSendPushRequest.verify|verify} messages. @@ -3872,7 +4066,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Authentication.ITwoFactorSendPushRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Authentication.ITwoFactorSendPushRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified TwoFactorSendPushRequest message, length delimited. Does not implicitly {@link Authentication.TwoFactorSendPushRequest.verify|verify} messages. @@ -3880,7 +4077,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.ITwoFactorSendPushRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.ITwoFactorSendPushRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a TwoFactorSendPushRequest message from the specified reader or buffer. @@ -3890,7 +4090,10 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.TwoFactorSendPushRequest; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Authentication.TwoFactorSendPushRequest; /** * Decodes a TwoFactorSendPushRequest message from the specified reader or buffer, length delimited. @@ -3899,14 +4102,14 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.TwoFactorSendPushRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Authentication.TwoFactorSendPushRequest; /** * Verifies a TwoFactorSendPushRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a TwoFactorSendPushRequest message from a plain object. Also converts values to their respective internal types. @@ -3921,7 +4124,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.TwoFactorSendPushRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.TwoFactorSendPushRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this TwoFactorSendPushRequest to JSON. @@ -3939,26 +4145,24 @@ export namespace Authentication { /** Properties of a License. */ interface ILicense { - /** License created */ - created?: (number|Long|null); + created?: number | Long | null; /** License expiration */ - expiration?: (number|Long|null); + expiration?: number | Long | null; /** License licenseStatus */ - licenseStatus?: (Authentication.LicenseStatus|null); + licenseStatus?: Authentication.LicenseStatus | null; /** License paid */ - paid?: (boolean|null); + paid?: boolean | null; /** License message */ - message?: (string|null); + message?: string | null; } /** Represents a License. */ class License implements ILicense { - /** * Constructs a new License. * @param [properties] Properties to set @@ -3966,10 +4170,10 @@ export namespace Authentication { constructor(properties?: Authentication.ILicense); /** License created. */ - public created: (number|Long); + public created: number | Long; /** License expiration. */ - public expiration: (number|Long); + public expiration: number | Long; /** License licenseStatus. */ public licenseStatus: Authentication.LicenseStatus; @@ -4011,7 +4215,7 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.License; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Authentication.License; /** * Decodes a License message from the specified reader or buffer, length delimited. @@ -4020,14 +4224,14 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.License; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Authentication.License; /** * Verifies a License message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a License message from a plain object. Also converts values to their respective internal types. @@ -4042,7 +4246,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.License, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.License, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this License to JSON. @@ -4063,25 +4270,23 @@ export namespace Authentication { VAULT = 0, CHAT = 1, STORAGE = 2, - BREACHWATCH = 3 + BREACHWATCH = 3, } /** Properties of an OwnerlessRecord. */ interface IOwnerlessRecord { - /** OwnerlessRecord recordUid */ - recordUid?: (Uint8Array|null); + recordUid?: Uint8Array | null; /** OwnerlessRecord recordKey */ - recordKey?: (Uint8Array|null); + recordKey?: Uint8Array | null; /** OwnerlessRecord status */ - status?: (number|null); + status?: number | null; } /** Represents an OwnerlessRecord. */ class OwnerlessRecord implements IOwnerlessRecord { - /** * Constructs a new OwnerlessRecord. * @param [properties] Properties to set @@ -4118,7 +4323,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.IOwnerlessRecord, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.IOwnerlessRecord, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes an OwnerlessRecord message from the specified reader or buffer. @@ -4128,7 +4336,7 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.OwnerlessRecord; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Authentication.OwnerlessRecord; /** * Decodes an OwnerlessRecord message from the specified reader or buffer, length delimited. @@ -4137,14 +4345,14 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.OwnerlessRecord; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Authentication.OwnerlessRecord; /** * Verifies an OwnerlessRecord message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an OwnerlessRecord message from a plain object. Also converts values to their respective internal types. @@ -4159,7 +4367,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.OwnerlessRecord, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.OwnerlessRecord, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this OwnerlessRecord to JSON. @@ -4177,14 +4388,12 @@ export namespace Authentication { /** Properties of an OwnerlessRecords. */ interface IOwnerlessRecords { - /** OwnerlessRecords ownerlessRecord */ - ownerlessRecord?: (Authentication.IOwnerlessRecord[]|null); + ownerlessRecord?: Authentication.IOwnerlessRecord[] | null; } /** Represents an OwnerlessRecords. */ class OwnerlessRecords implements IOwnerlessRecords { - /** * Constructs a new OwnerlessRecords. * @param [properties] Properties to set @@ -4215,7 +4424,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.IOwnerlessRecords, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.IOwnerlessRecords, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes an OwnerlessRecords message from the specified reader or buffer. @@ -4225,7 +4437,7 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.OwnerlessRecords; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Authentication.OwnerlessRecords; /** * Decodes an OwnerlessRecords message from the specified reader or buffer, length delimited. @@ -4234,14 +4446,14 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.OwnerlessRecords; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Authentication.OwnerlessRecords; /** * Verifies an OwnerlessRecords message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an OwnerlessRecords message from a plain object. Also converts values to their respective internal types. @@ -4256,7 +4468,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.OwnerlessRecords, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.OwnerlessRecords, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this OwnerlessRecords to JSON. @@ -4274,38 +4489,36 @@ export namespace Authentication { /** Properties of a UserAuthRequest. */ interface IUserAuthRequest { - /** UserAuthRequest uid */ - uid?: (Uint8Array|null); + uid?: Uint8Array | null; /** UserAuthRequest salt */ - salt?: (Uint8Array|null); + salt?: Uint8Array | null; /** UserAuthRequest iterations */ - iterations?: (number|null); + iterations?: number | null; /** UserAuthRequest encryptedClientKey */ - encryptedClientKey?: (Uint8Array|null); + encryptedClientKey?: Uint8Array | null; /** UserAuthRequest authHash */ - authHash?: (Uint8Array|null); + authHash?: Uint8Array | null; /** UserAuthRequest encryptedDataKey */ - encryptedDataKey?: (Uint8Array|null); + encryptedDataKey?: Uint8Array | null; /** UserAuthRequest loginType */ - loginType?: (Authentication.LoginType|null); + loginType?: Authentication.LoginType | null; /** UserAuthRequest name */ - name?: (string|null); + name?: string | null; /** UserAuthRequest algorithm */ - algorithm?: (number|null); + algorithm?: number | null; } /** Represents a UserAuthRequest. */ class UserAuthRequest implements IUserAuthRequest { - /** * Constructs a new UserAuthRequest. * @param [properties] Properties to set @@ -4360,7 +4573,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.IUserAuthRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.IUserAuthRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a UserAuthRequest message from the specified reader or buffer. @@ -4370,7 +4586,7 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.UserAuthRequest; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Authentication.UserAuthRequest; /** * Decodes a UserAuthRequest message from the specified reader or buffer, length delimited. @@ -4379,14 +4595,14 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.UserAuthRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Authentication.UserAuthRequest; /** * Verifies a UserAuthRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a UserAuthRequest message from a plain object. Also converts values to their respective internal types. @@ -4401,7 +4617,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.UserAuthRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.UserAuthRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this UserAuthRequest to JSON. @@ -4419,14 +4638,12 @@ export namespace Authentication { /** Properties of an UidRequest. */ interface IUidRequest { - /** UidRequest uid */ - uid?: (Uint8Array[]|null); + uid?: Uint8Array[] | null; } /** Represents an UidRequest. */ class UidRequest implements IUidRequest { - /** * Constructs a new UidRequest. * @param [properties] Properties to set @@ -4467,7 +4684,7 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.UidRequest; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Authentication.UidRequest; /** * Decodes an UidRequest message from the specified reader or buffer, length delimited. @@ -4476,14 +4693,14 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.UidRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Authentication.UidRequest; /** * Verifies an UidRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an UidRequest message from a plain object. Also converts values to their respective internal types. @@ -4498,7 +4715,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.UidRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.UidRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this UidRequest to JSON. @@ -4516,32 +4736,30 @@ export namespace Authentication { /** Properties of a DeviceUpdateRequest. */ interface IDeviceUpdateRequest { - /** DeviceUpdateRequest encryptedDeviceToken */ - encryptedDeviceToken?: (Uint8Array|null); + encryptedDeviceToken?: Uint8Array | null; /** DeviceUpdateRequest clientVersion */ - clientVersion?: (string|null); + clientVersion?: string | null; /** DeviceUpdateRequest deviceName */ - deviceName?: (string|null); + deviceName?: string | null; /** DeviceUpdateRequest devicePublicKey */ - devicePublicKey?: (Uint8Array|null); + devicePublicKey?: Uint8Array | null; /** DeviceUpdateRequest deviceStatus */ - deviceStatus?: (Authentication.DeviceStatus|null); + deviceStatus?: Authentication.DeviceStatus | null; /** DeviceUpdateRequest devicePlatform */ - devicePlatform?: (string|null); + devicePlatform?: string | null; /** DeviceUpdateRequest clientFormFactor */ - clientFormFactor?: (Authentication.ClientFormFactor|null); + clientFormFactor?: Authentication.ClientFormFactor | null; } /** Represents a DeviceUpdateRequest. */ class DeviceUpdateRequest implements IDeviceUpdateRequest { - /** * Constructs a new DeviceUpdateRequest. * @param [properties] Properties to set @@ -4590,7 +4808,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.IDeviceUpdateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.IDeviceUpdateRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a DeviceUpdateRequest message from the specified reader or buffer. @@ -4600,7 +4821,10 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.DeviceUpdateRequest; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Authentication.DeviceUpdateRequest; /** * Decodes a DeviceUpdateRequest message from the specified reader or buffer, length delimited. @@ -4609,14 +4833,14 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.DeviceUpdateRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Authentication.DeviceUpdateRequest; /** * Verifies a DeviceUpdateRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a DeviceUpdateRequest message from a plain object. Also converts values to their respective internal types. @@ -4631,7 +4855,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.DeviceUpdateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.DeviceUpdateRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this DeviceUpdateRequest to JSON. @@ -4649,32 +4876,30 @@ export namespace Authentication { /** Properties of a DeviceUpdateResponse. */ interface IDeviceUpdateResponse { - /** DeviceUpdateResponse encryptedDeviceToken */ - encryptedDeviceToken?: (Uint8Array|null); + encryptedDeviceToken?: Uint8Array | null; /** DeviceUpdateResponse clientVersion */ - clientVersion?: (string|null); + clientVersion?: string | null; /** DeviceUpdateResponse deviceName */ - deviceName?: (string|null); + deviceName?: string | null; /** DeviceUpdateResponse devicePublicKey */ - devicePublicKey?: (Uint8Array|null); + devicePublicKey?: Uint8Array | null; /** DeviceUpdateResponse deviceStatus */ - deviceStatus?: (Authentication.DeviceStatus|null); + deviceStatus?: Authentication.DeviceStatus | null; /** DeviceUpdateResponse devicePlatform */ - devicePlatform?: (string|null); + devicePlatform?: string | null; /** DeviceUpdateResponse clientFormFactor */ - clientFormFactor?: (Authentication.ClientFormFactor|null); + clientFormFactor?: Authentication.ClientFormFactor | null; } /** Represents a DeviceUpdateResponse. */ class DeviceUpdateResponse implements IDeviceUpdateResponse { - /** * Constructs a new DeviceUpdateResponse. * @param [properties] Properties to set @@ -4715,7 +4940,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Authentication.IDeviceUpdateResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Authentication.IDeviceUpdateResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified DeviceUpdateResponse message, length delimited. Does not implicitly {@link Authentication.DeviceUpdateResponse.verify|verify} messages. @@ -4723,7 +4951,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.IDeviceUpdateResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.IDeviceUpdateResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a DeviceUpdateResponse message from the specified reader or buffer. @@ -4733,7 +4964,10 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.DeviceUpdateResponse; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Authentication.DeviceUpdateResponse; /** * Decodes a DeviceUpdateResponse message from the specified reader or buffer, length delimited. @@ -4742,14 +4976,14 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.DeviceUpdateResponse; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Authentication.DeviceUpdateResponse; /** * Verifies a DeviceUpdateResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a DeviceUpdateResponse message from a plain object. Also converts values to their respective internal types. @@ -4764,7 +4998,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.DeviceUpdateResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.DeviceUpdateResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this DeviceUpdateResponse to JSON. @@ -4782,29 +5019,27 @@ export namespace Authentication { /** Properties of a RegisterDeviceInRegionRequest. */ interface IRegisterDeviceInRegionRequest { - /** RegisterDeviceInRegionRequest encryptedDeviceToken */ - encryptedDeviceToken?: (Uint8Array|null); + encryptedDeviceToken?: Uint8Array | null; /** RegisterDeviceInRegionRequest clientVersion */ - clientVersion?: (string|null); + clientVersion?: string | null; /** RegisterDeviceInRegionRequest deviceName */ - deviceName?: (string|null); + deviceName?: string | null; /** RegisterDeviceInRegionRequest devicePublicKey */ - devicePublicKey?: (Uint8Array|null); + devicePublicKey?: Uint8Array | null; /** RegisterDeviceInRegionRequest devicePlatform */ - devicePlatform?: (string|null); + devicePlatform?: string | null; /** RegisterDeviceInRegionRequest clientFormFactor */ - clientFormFactor?: (Authentication.ClientFormFactor|null); + clientFormFactor?: Authentication.ClientFormFactor | null; } /** Represents a RegisterDeviceInRegionRequest. */ class RegisterDeviceInRegionRequest implements IRegisterDeviceInRegionRequest { - /** * Constructs a new RegisterDeviceInRegionRequest. * @param [properties] Properties to set @@ -4834,7 +5069,9 @@ export namespace Authentication { * @param [properties] Properties to set * @returns RegisterDeviceInRegionRequest instance */ - public static create(properties?: Authentication.IRegisterDeviceInRegionRequest): Authentication.RegisterDeviceInRegionRequest; + public static create( + properties?: Authentication.IRegisterDeviceInRegionRequest + ): Authentication.RegisterDeviceInRegionRequest; /** * Encodes the specified RegisterDeviceInRegionRequest message. Does not implicitly {@link Authentication.RegisterDeviceInRegionRequest.verify|verify} messages. @@ -4842,7 +5079,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Authentication.IRegisterDeviceInRegionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Authentication.IRegisterDeviceInRegionRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified RegisterDeviceInRegionRequest message, length delimited. Does not implicitly {@link Authentication.RegisterDeviceInRegionRequest.verify|verify} messages. @@ -4850,7 +5090,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.IRegisterDeviceInRegionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.IRegisterDeviceInRegionRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a RegisterDeviceInRegionRequest message from the specified reader or buffer. @@ -4860,7 +5103,10 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.RegisterDeviceInRegionRequest; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Authentication.RegisterDeviceInRegionRequest; /** * Decodes a RegisterDeviceInRegionRequest message from the specified reader or buffer, length delimited. @@ -4869,14 +5115,16 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.RegisterDeviceInRegionRequest; + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array + ): Authentication.RegisterDeviceInRegionRequest; /** * Verifies a RegisterDeviceInRegionRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a RegisterDeviceInRegionRequest message from a plain object. Also converts values to their respective internal types. @@ -4891,7 +5139,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.RegisterDeviceInRegionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.RegisterDeviceInRegionRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this RegisterDeviceInRegionRequest to JSON. @@ -4909,41 +5160,39 @@ export namespace Authentication { /** Properties of a RegistrationRequest. */ interface IRegistrationRequest { - /** RegistrationRequest authRequest */ - authRequest?: (Authentication.IAuthRequest|null); + authRequest?: Authentication.IAuthRequest | null; /** RegistrationRequest userAuthRequest */ - userAuthRequest?: (Authentication.IUserAuthRequest|null); + userAuthRequest?: Authentication.IUserAuthRequest | null; /** RegistrationRequest encryptedClientKey */ - encryptedClientKey?: (Uint8Array|null); + encryptedClientKey?: Uint8Array | null; /** RegistrationRequest encryptedPrivateKey */ - encryptedPrivateKey?: (Uint8Array|null); + encryptedPrivateKey?: Uint8Array | null; /** RegistrationRequest publicKey */ - publicKey?: (Uint8Array|null); + publicKey?: Uint8Array | null; /** RegistrationRequest verificationCode */ - verificationCode?: (string|null); + verificationCode?: string | null; /** RegistrationRequest deprecatedAuthHashHash */ - deprecatedAuthHashHash?: (Uint8Array|null); + deprecatedAuthHashHash?: Uint8Array | null; /** RegistrationRequest deprecatedEncryptedClientKey */ - deprecatedEncryptedClientKey?: (Uint8Array|null); + deprecatedEncryptedClientKey?: Uint8Array | null; /** RegistrationRequest deprecatedEncryptedPrivateKey */ - deprecatedEncryptedPrivateKey?: (Uint8Array|null); + deprecatedEncryptedPrivateKey?: Uint8Array | null; /** RegistrationRequest deprecatedEncryptionParams */ - deprecatedEncryptionParams?: (Uint8Array|null); + deprecatedEncryptionParams?: Uint8Array | null; } /** Represents a RegistrationRequest. */ class RegistrationRequest implements IRegistrationRequest { - /** * Constructs a new RegistrationRequest. * @param [properties] Properties to set @@ -4951,10 +5200,10 @@ export namespace Authentication { constructor(properties?: Authentication.IRegistrationRequest); /** RegistrationRequest authRequest. */ - public authRequest?: (Authentication.IAuthRequest|null); + public authRequest?: Authentication.IAuthRequest | null; /** RegistrationRequest userAuthRequest. */ - public userAuthRequest?: (Authentication.IUserAuthRequest|null); + public userAuthRequest?: Authentication.IUserAuthRequest | null; /** RegistrationRequest encryptedClientKey. */ public encryptedClientKey: Uint8Array; @@ -5001,7 +5250,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.IRegistrationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.IRegistrationRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a RegistrationRequest message from the specified reader or buffer. @@ -5011,7 +5263,10 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.RegistrationRequest; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Authentication.RegistrationRequest; /** * Decodes a RegistrationRequest message from the specified reader or buffer, length delimited. @@ -5020,14 +5275,14 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.RegistrationRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Authentication.RegistrationRequest; /** * Verifies a RegistrationRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a RegistrationRequest message from a plain object. Also converts values to their respective internal types. @@ -5042,7 +5297,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.RegistrationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.RegistrationRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this RegistrationRequest to JSON. @@ -5060,26 +5318,24 @@ export namespace Authentication { /** Properties of a ConvertUserToV3Request. */ interface IConvertUserToV3Request { - /** ConvertUserToV3Request authRequest */ - authRequest?: (Authentication.IAuthRequest|null); + authRequest?: Authentication.IAuthRequest | null; /** ConvertUserToV3Request userAuthRequest */ - userAuthRequest?: (Authentication.IUserAuthRequest|null); + userAuthRequest?: Authentication.IUserAuthRequest | null; /** ConvertUserToV3Request encryptedClientKey */ - encryptedClientKey?: (Uint8Array|null); + encryptedClientKey?: Uint8Array | null; /** ConvertUserToV3Request encryptedPrivateKey */ - encryptedPrivateKey?: (Uint8Array|null); + encryptedPrivateKey?: Uint8Array | null; /** ConvertUserToV3Request publicKey */ - publicKey?: (Uint8Array|null); + publicKey?: Uint8Array | null; } /** Represents a ConvertUserToV3Request. */ class ConvertUserToV3Request implements IConvertUserToV3Request { - /** * Constructs a new ConvertUserToV3Request. * @param [properties] Properties to set @@ -5087,10 +5343,10 @@ export namespace Authentication { constructor(properties?: Authentication.IConvertUserToV3Request); /** ConvertUserToV3Request authRequest. */ - public authRequest?: (Authentication.IAuthRequest|null); + public authRequest?: Authentication.IAuthRequest | null; /** ConvertUserToV3Request userAuthRequest. */ - public userAuthRequest?: (Authentication.IUserAuthRequest|null); + public userAuthRequest?: Authentication.IUserAuthRequest | null; /** ConvertUserToV3Request encryptedClientKey. */ public encryptedClientKey: Uint8Array; @@ -5106,7 +5362,9 @@ export namespace Authentication { * @param [properties] Properties to set * @returns ConvertUserToV3Request instance */ - public static create(properties?: Authentication.IConvertUserToV3Request): Authentication.ConvertUserToV3Request; + public static create( + properties?: Authentication.IConvertUserToV3Request + ): Authentication.ConvertUserToV3Request; /** * Encodes the specified ConvertUserToV3Request message. Does not implicitly {@link Authentication.ConvertUserToV3Request.verify|verify} messages. @@ -5114,7 +5372,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Authentication.IConvertUserToV3Request, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Authentication.IConvertUserToV3Request, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified ConvertUserToV3Request message, length delimited. Does not implicitly {@link Authentication.ConvertUserToV3Request.verify|verify} messages. @@ -5122,7 +5383,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.IConvertUserToV3Request, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.IConvertUserToV3Request, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a ConvertUserToV3Request message from the specified reader or buffer. @@ -5132,7 +5396,10 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.ConvertUserToV3Request; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Authentication.ConvertUserToV3Request; /** * Decodes a ConvertUserToV3Request message from the specified reader or buffer, length delimited. @@ -5141,14 +5408,14 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.ConvertUserToV3Request; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Authentication.ConvertUserToV3Request; /** * Verifies a ConvertUserToV3Request message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a ConvertUserToV3Request message from a plain object. Also converts values to their respective internal types. @@ -5163,7 +5430,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.ConvertUserToV3Request, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.ConvertUserToV3Request, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this ConvertUserToV3Request to JSON. @@ -5181,14 +5451,12 @@ export namespace Authentication { /** Properties of a RevisionResponse. */ interface IRevisionResponse { - /** RevisionResponse revision */ - revision?: (number|Long|null); + revision?: number | Long | null; } /** Represents a RevisionResponse. */ class RevisionResponse implements IRevisionResponse { - /** * Constructs a new RevisionResponse. * @param [properties] Properties to set @@ -5196,7 +5464,7 @@ export namespace Authentication { constructor(properties?: Authentication.IRevisionResponse); /** RevisionResponse revision. */ - public revision: (number|Long); + public revision: number | Long; /** * Creates a new RevisionResponse instance using the specified properties. @@ -5219,7 +5487,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.IRevisionResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.IRevisionResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a RevisionResponse message from the specified reader or buffer. @@ -5229,7 +5500,7 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.RevisionResponse; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Authentication.RevisionResponse; /** * Decodes a RevisionResponse message from the specified reader or buffer, length delimited. @@ -5238,14 +5509,14 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.RevisionResponse; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Authentication.RevisionResponse; /** * Verifies a RevisionResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a RevisionResponse message from a plain object. Also converts values to their respective internal types. @@ -5260,7 +5531,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.RevisionResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.RevisionResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this RevisionResponse to JSON. @@ -5278,14 +5552,12 @@ export namespace Authentication { /** Properties of a ChangeEmailRequest. */ interface IChangeEmailRequest { - /** ChangeEmailRequest newEmail */ - newEmail?: (string|null); + newEmail?: string | null; } /** Represents a ChangeEmailRequest. */ class ChangeEmailRequest implements IChangeEmailRequest { - /** * Constructs a new ChangeEmailRequest. * @param [properties] Properties to set @@ -5316,7 +5588,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.IChangeEmailRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.IChangeEmailRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a ChangeEmailRequest message from the specified reader or buffer. @@ -5326,7 +5601,7 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.ChangeEmailRequest; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Authentication.ChangeEmailRequest; /** * Decodes a ChangeEmailRequest message from the specified reader or buffer, length delimited. @@ -5335,14 +5610,14 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.ChangeEmailRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Authentication.ChangeEmailRequest; /** * Verifies a ChangeEmailRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a ChangeEmailRequest message from a plain object. Also converts values to their respective internal types. @@ -5357,7 +5632,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.ChangeEmailRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.ChangeEmailRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this ChangeEmailRequest to JSON. @@ -5375,14 +5653,12 @@ export namespace Authentication { /** Properties of a ChangeEmailResponse. */ interface IChangeEmailResponse { - /** ChangeEmailResponse encryptedChangeEmailToken */ - encryptedChangeEmailToken?: (Uint8Array|null); + encryptedChangeEmailToken?: Uint8Array | null; } /** Represents a ChangeEmailResponse. */ class ChangeEmailResponse implements IChangeEmailResponse { - /** * Constructs a new ChangeEmailResponse. * @param [properties] Properties to set @@ -5413,7 +5689,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.IChangeEmailResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.IChangeEmailResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a ChangeEmailResponse message from the specified reader or buffer. @@ -5423,7 +5702,10 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.ChangeEmailResponse; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Authentication.ChangeEmailResponse; /** * Decodes a ChangeEmailResponse message from the specified reader or buffer, length delimited. @@ -5432,14 +5714,14 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.ChangeEmailResponse; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Authentication.ChangeEmailResponse; /** * Verifies a ChangeEmailResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a ChangeEmailResponse message from a plain object. Also converts values to their respective internal types. @@ -5454,7 +5736,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.ChangeEmailResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.ChangeEmailResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this ChangeEmailResponse to JSON. @@ -5472,14 +5757,12 @@ export namespace Authentication { /** Properties of an EmailVerificationLinkResponse. */ interface IEmailVerificationLinkResponse { - /** EmailVerificationLinkResponse emailVerified */ - emailVerified?: (boolean|null); + emailVerified?: boolean | null; } /** Represents an EmailVerificationLinkResponse. */ class EmailVerificationLinkResponse implements IEmailVerificationLinkResponse { - /** * Constructs a new EmailVerificationLinkResponse. * @param [properties] Properties to set @@ -5494,7 +5777,9 @@ export namespace Authentication { * @param [properties] Properties to set * @returns EmailVerificationLinkResponse instance */ - public static create(properties?: Authentication.IEmailVerificationLinkResponse): Authentication.EmailVerificationLinkResponse; + public static create( + properties?: Authentication.IEmailVerificationLinkResponse + ): Authentication.EmailVerificationLinkResponse; /** * Encodes the specified EmailVerificationLinkResponse message. Does not implicitly {@link Authentication.EmailVerificationLinkResponse.verify|verify} messages. @@ -5502,7 +5787,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Authentication.IEmailVerificationLinkResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Authentication.IEmailVerificationLinkResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified EmailVerificationLinkResponse message, length delimited. Does not implicitly {@link Authentication.EmailVerificationLinkResponse.verify|verify} messages. @@ -5510,7 +5798,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.IEmailVerificationLinkResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.IEmailVerificationLinkResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes an EmailVerificationLinkResponse message from the specified reader or buffer. @@ -5520,7 +5811,10 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.EmailVerificationLinkResponse; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Authentication.EmailVerificationLinkResponse; /** * Decodes an EmailVerificationLinkResponse message from the specified reader or buffer, length delimited. @@ -5529,14 +5823,16 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.EmailVerificationLinkResponse; + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array + ): Authentication.EmailVerificationLinkResponse; /** * Verifies an EmailVerificationLinkResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an EmailVerificationLinkResponse message from a plain object. Also converts values to their respective internal types. @@ -5551,7 +5847,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.EmailVerificationLinkResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.EmailVerificationLinkResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this EmailVerificationLinkResponse to JSON. @@ -5569,17 +5868,15 @@ export namespace Authentication { /** Properties of a SecurityData. */ interface ISecurityData { - /** SecurityData uid */ - uid?: (Uint8Array|null); + uid?: Uint8Array | null; /** SecurityData data */ - data?: (Uint8Array|null); + data?: Uint8Array | null; } /** Represents a SecurityData. */ class SecurityData implements ISecurityData { - /** * Constructs a new SecurityData. * @param [properties] Properties to set @@ -5613,7 +5910,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.ISecurityData, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.ISecurityData, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a SecurityData message from the specified reader or buffer. @@ -5623,7 +5923,7 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.SecurityData; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Authentication.SecurityData; /** * Decodes a SecurityData message from the specified reader or buffer, length delimited. @@ -5632,14 +5932,14 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.SecurityData; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Authentication.SecurityData; /** * Verifies a SecurityData message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a SecurityData message from a plain object. Also converts values to their respective internal types. @@ -5654,7 +5954,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.SecurityData, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.SecurityData, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this SecurityData to JSON. @@ -5672,20 +5975,18 @@ export namespace Authentication { /** Properties of a SecurityScoreData. */ interface ISecurityScoreData { - /** SecurityScoreData uid */ - uid?: (Uint8Array|null); + uid?: Uint8Array | null; /** SecurityScoreData data */ - data?: (Uint8Array|null); + data?: Uint8Array | null; /** SecurityScoreData revision */ - revision?: (number|Long|null); + revision?: number | Long | null; } /** Represents a SecurityScoreData. */ class SecurityScoreData implements ISecurityScoreData { - /** * Constructs a new SecurityScoreData. * @param [properties] Properties to set @@ -5699,7 +6000,7 @@ export namespace Authentication { public data: Uint8Array; /** SecurityScoreData revision. */ - public revision: (number|Long); + public revision: number | Long; /** * Creates a new SecurityScoreData instance using the specified properties. @@ -5722,7 +6023,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.ISecurityScoreData, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.ISecurityScoreData, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a SecurityScoreData message from the specified reader or buffer. @@ -5732,7 +6036,7 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.SecurityScoreData; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Authentication.SecurityScoreData; /** * Decodes a SecurityScoreData message from the specified reader or buffer, length delimited. @@ -5741,14 +6045,14 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.SecurityScoreData; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Authentication.SecurityScoreData; /** * Verifies a SecurityScoreData message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a SecurityScoreData message from a plain object. Also converts values to their respective internal types. @@ -5763,7 +6067,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.SecurityScoreData, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.SecurityScoreData, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this SecurityScoreData to JSON. @@ -5781,23 +6088,21 @@ export namespace Authentication { /** Properties of a SecurityDataRequest. */ interface ISecurityDataRequest { - /** SecurityDataRequest recordSecurityData */ - recordSecurityData?: (Authentication.ISecurityData[]|null); + recordSecurityData?: Authentication.ISecurityData[] | null; /** SecurityDataRequest masterPasswordSecurityData */ - masterPasswordSecurityData?: (Authentication.ISecurityData[]|null); + masterPasswordSecurityData?: Authentication.ISecurityData[] | null; /** SecurityDataRequest encryptionType */ - encryptionType?: (Enterprise.EncryptedKeyType|null); + encryptionType?: Enterprise.EncryptedKeyType | null; /** SecurityDataRequest recordSecurityScoreData */ - recordSecurityScoreData?: (Authentication.ISecurityScoreData[]|null); + recordSecurityScoreData?: Authentication.ISecurityScoreData[] | null; } /** Represents a SecurityDataRequest. */ class SecurityDataRequest implements ISecurityDataRequest { - /** * Constructs a new SecurityDataRequest. * @param [properties] Properties to set @@ -5837,7 +6142,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.ISecurityDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.ISecurityDataRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a SecurityDataRequest message from the specified reader or buffer. @@ -5847,7 +6155,10 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.SecurityDataRequest; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Authentication.SecurityDataRequest; /** * Decodes a SecurityDataRequest message from the specified reader or buffer, length delimited. @@ -5856,14 +6167,14 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.SecurityDataRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Authentication.SecurityDataRequest; /** * Verifies a SecurityDataRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a SecurityDataRequest message from a plain object. Also converts values to their respective internal types. @@ -5878,7 +6189,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.SecurityDataRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.SecurityDataRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this SecurityDataRequest to JSON. @@ -5896,35 +6210,33 @@ export namespace Authentication { /** Properties of a SecurityReportIncrementalData. */ interface ISecurityReportIncrementalData { - /** SecurityReportIncrementalData enterpriseUserId */ - enterpriseUserId?: (number|Long|null); + enterpriseUserId?: number | Long | null; /** SecurityReportIncrementalData currentSecurityData */ - currentSecurityData?: (Uint8Array|null); + currentSecurityData?: Uint8Array | null; /** SecurityReportIncrementalData currentSecurityDataRevision */ - currentSecurityDataRevision?: (number|Long|null); + currentSecurityDataRevision?: number | Long | null; /** SecurityReportIncrementalData oldSecurityData */ - oldSecurityData?: (Uint8Array|null); + oldSecurityData?: Uint8Array | null; /** SecurityReportIncrementalData oldSecurityDataRevision */ - oldSecurityDataRevision?: (number|Long|null); + oldSecurityDataRevision?: number | Long | null; /** SecurityReportIncrementalData currentDataEncryptionType */ - currentDataEncryptionType?: (Enterprise.EncryptedKeyType|null); + currentDataEncryptionType?: Enterprise.EncryptedKeyType | null; /** SecurityReportIncrementalData oldDataEncryptionType */ - oldDataEncryptionType?: (Enterprise.EncryptedKeyType|null); + oldDataEncryptionType?: Enterprise.EncryptedKeyType | null; /** SecurityReportIncrementalData recordUid */ - recordUid?: (Uint8Array|null); + recordUid?: Uint8Array | null; } /** Represents a SecurityReportIncrementalData. */ class SecurityReportIncrementalData implements ISecurityReportIncrementalData { - /** * Constructs a new SecurityReportIncrementalData. * @param [properties] Properties to set @@ -5932,19 +6244,19 @@ export namespace Authentication { constructor(properties?: Authentication.ISecurityReportIncrementalData); /** SecurityReportIncrementalData enterpriseUserId. */ - public enterpriseUserId: (number|Long); + public enterpriseUserId: number | Long; /** SecurityReportIncrementalData currentSecurityData. */ public currentSecurityData: Uint8Array; /** SecurityReportIncrementalData currentSecurityDataRevision. */ - public currentSecurityDataRevision: (number|Long); + public currentSecurityDataRevision: number | Long; /** SecurityReportIncrementalData oldSecurityData. */ public oldSecurityData: Uint8Array; /** SecurityReportIncrementalData oldSecurityDataRevision. */ - public oldSecurityDataRevision: (number|Long); + public oldSecurityDataRevision: number | Long; /** SecurityReportIncrementalData currentDataEncryptionType. */ public currentDataEncryptionType: Enterprise.EncryptedKeyType; @@ -5960,7 +6272,9 @@ export namespace Authentication { * @param [properties] Properties to set * @returns SecurityReportIncrementalData instance */ - public static create(properties?: Authentication.ISecurityReportIncrementalData): Authentication.SecurityReportIncrementalData; + public static create( + properties?: Authentication.ISecurityReportIncrementalData + ): Authentication.SecurityReportIncrementalData; /** * Encodes the specified SecurityReportIncrementalData message. Does not implicitly {@link Authentication.SecurityReportIncrementalData.verify|verify} messages. @@ -5968,7 +6282,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Authentication.ISecurityReportIncrementalData, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Authentication.ISecurityReportIncrementalData, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified SecurityReportIncrementalData message, length delimited. Does not implicitly {@link Authentication.SecurityReportIncrementalData.verify|verify} messages. @@ -5976,7 +6293,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.ISecurityReportIncrementalData, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.ISecurityReportIncrementalData, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a SecurityReportIncrementalData message from the specified reader or buffer. @@ -5986,7 +6306,10 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.SecurityReportIncrementalData; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Authentication.SecurityReportIncrementalData; /** * Decodes a SecurityReportIncrementalData message from the specified reader or buffer, length delimited. @@ -5995,14 +6318,16 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.SecurityReportIncrementalData; + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array + ): Authentication.SecurityReportIncrementalData; /** * Verifies a SecurityReportIncrementalData message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a SecurityReportIncrementalData message from a plain object. Also converts values to their respective internal types. @@ -6017,7 +6342,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.SecurityReportIncrementalData, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.SecurityReportIncrementalData, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this SecurityReportIncrementalData to JSON. @@ -6035,38 +6363,36 @@ export namespace Authentication { /** Properties of a SecurityReport. */ interface ISecurityReport { - /** SecurityReport enterpriseUserId */ - enterpriseUserId?: (number|Long|null); + enterpriseUserId?: number | Long | null; /** SecurityReport encryptedReportData */ - encryptedReportData?: (Uint8Array|null); + encryptedReportData?: Uint8Array | null; /** SecurityReport revision */ - revision?: (number|Long|null); + revision?: number | Long | null; /** SecurityReport twoFactor */ - twoFactor?: (string|null); + twoFactor?: string | null; /** SecurityReport lastLogin */ - lastLogin?: (number|Long|null); + lastLogin?: number | Long | null; /** SecurityReport numberOfReusedPassword */ - numberOfReusedPassword?: (number|null); + numberOfReusedPassword?: number | null; /** SecurityReport securityReportIncrementalData */ - securityReportIncrementalData?: (Authentication.ISecurityReportIncrementalData[]|null); + securityReportIncrementalData?: Authentication.ISecurityReportIncrementalData[] | null; /** SecurityReport userId */ - userId?: (number|null); + userId?: number | null; /** SecurityReport hasOldEncryption */ - hasOldEncryption?: (boolean|null); + hasOldEncryption?: boolean | null; } /** Represents a SecurityReport. */ class SecurityReport implements ISecurityReport { - /** * Constructs a new SecurityReport. * @param [properties] Properties to set @@ -6074,19 +6400,19 @@ export namespace Authentication { constructor(properties?: Authentication.ISecurityReport); /** SecurityReport enterpriseUserId. */ - public enterpriseUserId: (number|Long); + public enterpriseUserId: number | Long; /** SecurityReport encryptedReportData. */ public encryptedReportData: Uint8Array; /** SecurityReport revision. */ - public revision: (number|Long); + public revision: number | Long; /** SecurityReport twoFactor. */ public twoFactor: string; /** SecurityReport lastLogin. */ - public lastLogin: (number|Long); + public lastLogin: number | Long; /** SecurityReport numberOfReusedPassword. */ public numberOfReusedPassword: number; @@ -6121,7 +6447,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.ISecurityReport, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.ISecurityReport, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a SecurityReport message from the specified reader or buffer. @@ -6131,7 +6460,7 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.SecurityReport; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Authentication.SecurityReport; /** * Decodes a SecurityReport message from the specified reader or buffer, length delimited. @@ -6140,14 +6469,14 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.SecurityReport; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Authentication.SecurityReport; /** * Verifies a SecurityReport message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a SecurityReport message from a plain object. Also converts values to their respective internal types. @@ -6162,7 +6491,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.SecurityReport, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.SecurityReport, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this SecurityReport to JSON. @@ -6180,17 +6512,15 @@ export namespace Authentication { /** Properties of a SecurityReportSaveRequest. */ interface ISecurityReportSaveRequest { - /** SecurityReportSaveRequest securityReport */ - securityReport?: (Authentication.ISecurityReport[]|null); + securityReport?: Authentication.ISecurityReport[] | null; /** SecurityReportSaveRequest continuationToken */ - continuationToken?: (Uint8Array|null); + continuationToken?: Uint8Array | null; } /** Represents a SecurityReportSaveRequest. */ class SecurityReportSaveRequest implements ISecurityReportSaveRequest { - /** * Constructs a new SecurityReportSaveRequest. * @param [properties] Properties to set @@ -6208,7 +6538,9 @@ export namespace Authentication { * @param [properties] Properties to set * @returns SecurityReportSaveRequest instance */ - public static create(properties?: Authentication.ISecurityReportSaveRequest): Authentication.SecurityReportSaveRequest; + public static create( + properties?: Authentication.ISecurityReportSaveRequest + ): Authentication.SecurityReportSaveRequest; /** * Encodes the specified SecurityReportSaveRequest message. Does not implicitly {@link Authentication.SecurityReportSaveRequest.verify|verify} messages. @@ -6216,7 +6548,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Authentication.ISecurityReportSaveRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Authentication.ISecurityReportSaveRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified SecurityReportSaveRequest message, length delimited. Does not implicitly {@link Authentication.SecurityReportSaveRequest.verify|verify} messages. @@ -6224,7 +6559,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.ISecurityReportSaveRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.ISecurityReportSaveRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a SecurityReportSaveRequest message from the specified reader or buffer. @@ -6234,7 +6572,10 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.SecurityReportSaveRequest; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Authentication.SecurityReportSaveRequest; /** * Decodes a SecurityReportSaveRequest message from the specified reader or buffer, length delimited. @@ -6243,14 +6584,14 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.SecurityReportSaveRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Authentication.SecurityReportSaveRequest; /** * Verifies a SecurityReportSaveRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a SecurityReportSaveRequest message from a plain object. Also converts values to their respective internal types. @@ -6265,7 +6606,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.SecurityReportSaveRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.SecurityReportSaveRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this SecurityReportSaveRequest to JSON. @@ -6283,14 +6627,12 @@ export namespace Authentication { /** Properties of a SecurityReportRequest. */ interface ISecurityReportRequest { - /** SecurityReportRequest fromPage */ - fromPage?: (number|Long|null); + fromPage?: number | Long | null; } /** Represents a SecurityReportRequest. */ class SecurityReportRequest implements ISecurityReportRequest { - /** * Constructs a new SecurityReportRequest. * @param [properties] Properties to set @@ -6298,7 +6640,7 @@ export namespace Authentication { constructor(properties?: Authentication.ISecurityReportRequest); /** SecurityReportRequest fromPage. */ - public fromPage: (number|Long); + public fromPage: number | Long; /** * Creates a new SecurityReportRequest instance using the specified properties. @@ -6313,7 +6655,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Authentication.ISecurityReportRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Authentication.ISecurityReportRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified SecurityReportRequest message, length delimited. Does not implicitly {@link Authentication.SecurityReportRequest.verify|verify} messages. @@ -6321,7 +6666,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.ISecurityReportRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.ISecurityReportRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a SecurityReportRequest message from the specified reader or buffer. @@ -6331,7 +6679,10 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.SecurityReportRequest; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Authentication.SecurityReportRequest; /** * Decodes a SecurityReportRequest message from the specified reader or buffer, length delimited. @@ -6340,14 +6691,14 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.SecurityReportRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Authentication.SecurityReportRequest; /** * Verifies a SecurityReportRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a SecurityReportRequest message from a plain object. Also converts values to their respective internal types. @@ -6362,7 +6713,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.SecurityReportRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.SecurityReportRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this SecurityReportRequest to JSON. @@ -6380,35 +6734,33 @@ export namespace Authentication { /** Properties of a SecurityReportResponse. */ interface ISecurityReportResponse { - /** SecurityReportResponse enterprisePrivateKey */ - enterprisePrivateKey?: (Uint8Array|null); + enterprisePrivateKey?: Uint8Array | null; /** SecurityReportResponse securityReport */ - securityReport?: (Authentication.ISecurityReport[]|null); + securityReport?: Authentication.ISecurityReport[] | null; /** SecurityReportResponse asOfRevision */ - asOfRevision?: (number|Long|null); + asOfRevision?: number | Long | null; /** SecurityReportResponse fromPage */ - fromPage?: (number|Long|null); + fromPage?: number | Long | null; /** SecurityReportResponse toPage */ - toPage?: (number|Long|null); + toPage?: number | Long | null; /** SecurityReportResponse complete */ - complete?: (boolean|null); + complete?: boolean | null; /** SecurityReportResponse enterpriseEccPrivateKey */ - enterpriseEccPrivateKey?: (Uint8Array|null); + enterpriseEccPrivateKey?: Uint8Array | null; /** SecurityReportResponse hasIncrementalData */ - hasIncrementalData?: (boolean|null); + hasIncrementalData?: boolean | null; } /** Represents a SecurityReportResponse. */ class SecurityReportResponse implements ISecurityReportResponse { - /** * Constructs a new SecurityReportResponse. * @param [properties] Properties to set @@ -6422,13 +6774,13 @@ export namespace Authentication { public securityReport: Authentication.ISecurityReport[]; /** SecurityReportResponse asOfRevision. */ - public asOfRevision: (number|Long); + public asOfRevision: number | Long; /** SecurityReportResponse fromPage. */ - public fromPage: (number|Long); + public fromPage: number | Long; /** SecurityReportResponse toPage. */ - public toPage: (number|Long); + public toPage: number | Long; /** SecurityReportResponse complete. */ public complete: boolean; @@ -6444,7 +6796,9 @@ export namespace Authentication { * @param [properties] Properties to set * @returns SecurityReportResponse instance */ - public static create(properties?: Authentication.ISecurityReportResponse): Authentication.SecurityReportResponse; + public static create( + properties?: Authentication.ISecurityReportResponse + ): Authentication.SecurityReportResponse; /** * Encodes the specified SecurityReportResponse message. Does not implicitly {@link Authentication.SecurityReportResponse.verify|verify} messages. @@ -6452,7 +6806,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Authentication.ISecurityReportResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Authentication.ISecurityReportResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified SecurityReportResponse message, length delimited. Does not implicitly {@link Authentication.SecurityReportResponse.verify|verify} messages. @@ -6460,7 +6817,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.ISecurityReportResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.ISecurityReportResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a SecurityReportResponse message from the specified reader or buffer. @@ -6470,7 +6830,10 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.SecurityReportResponse; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Authentication.SecurityReportResponse; /** * Decodes a SecurityReportResponse message from the specified reader or buffer, length delimited. @@ -6479,14 +6842,14 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.SecurityReportResponse; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Authentication.SecurityReportResponse; /** * Verifies a SecurityReportResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a SecurityReportResponse message from a plain object. Also converts values to their respective internal types. @@ -6501,7 +6864,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.SecurityReportResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.SecurityReportResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this SecurityReportResponse to JSON. @@ -6519,14 +6885,12 @@ export namespace Authentication { /** Properties of an IncrementalSecurityDataRequest. */ interface IIncrementalSecurityDataRequest { - /** IncrementalSecurityDataRequest continuationToken */ - continuationToken?: (Uint8Array|null); + continuationToken?: Uint8Array | null; } /** Represents an IncrementalSecurityDataRequest. */ class IncrementalSecurityDataRequest implements IIncrementalSecurityDataRequest { - /** * Constructs a new IncrementalSecurityDataRequest. * @param [properties] Properties to set @@ -6541,7 +6905,9 @@ export namespace Authentication { * @param [properties] Properties to set * @returns IncrementalSecurityDataRequest instance */ - public static create(properties?: Authentication.IIncrementalSecurityDataRequest): Authentication.IncrementalSecurityDataRequest; + public static create( + properties?: Authentication.IIncrementalSecurityDataRequest + ): Authentication.IncrementalSecurityDataRequest; /** * Encodes the specified IncrementalSecurityDataRequest message. Does not implicitly {@link Authentication.IncrementalSecurityDataRequest.verify|verify} messages. @@ -6549,7 +6915,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Authentication.IIncrementalSecurityDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Authentication.IIncrementalSecurityDataRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified IncrementalSecurityDataRequest message, length delimited. Does not implicitly {@link Authentication.IncrementalSecurityDataRequest.verify|verify} messages. @@ -6557,7 +6926,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.IIncrementalSecurityDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.IIncrementalSecurityDataRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes an IncrementalSecurityDataRequest message from the specified reader or buffer. @@ -6567,7 +6939,10 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.IncrementalSecurityDataRequest; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Authentication.IncrementalSecurityDataRequest; /** * Decodes an IncrementalSecurityDataRequest message from the specified reader or buffer, length delimited. @@ -6576,14 +6951,16 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.IncrementalSecurityDataRequest; + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array + ): Authentication.IncrementalSecurityDataRequest; /** * Verifies an IncrementalSecurityDataRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an IncrementalSecurityDataRequest message from a plain object. Also converts values to their respective internal types. @@ -6598,7 +6975,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.IncrementalSecurityDataRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.IncrementalSecurityDataRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this IncrementalSecurityDataRequest to JSON. @@ -6616,17 +6996,15 @@ export namespace Authentication { /** Properties of an IncrementalSecurityDataResponse. */ interface IIncrementalSecurityDataResponse { - /** IncrementalSecurityDataResponse securityReportIncrementalData */ - securityReportIncrementalData?: (Authentication.ISecurityReportIncrementalData[]|null); + securityReportIncrementalData?: Authentication.ISecurityReportIncrementalData[] | null; /** IncrementalSecurityDataResponse continuationToken */ - continuationToken?: (Uint8Array|null); + continuationToken?: Uint8Array | null; } /** Represents an IncrementalSecurityDataResponse. */ class IncrementalSecurityDataResponse implements IIncrementalSecurityDataResponse { - /** * Constructs a new IncrementalSecurityDataResponse. * @param [properties] Properties to set @@ -6644,7 +7022,9 @@ export namespace Authentication { * @param [properties] Properties to set * @returns IncrementalSecurityDataResponse instance */ - public static create(properties?: Authentication.IIncrementalSecurityDataResponse): Authentication.IncrementalSecurityDataResponse; + public static create( + properties?: Authentication.IIncrementalSecurityDataResponse + ): Authentication.IncrementalSecurityDataResponse; /** * Encodes the specified IncrementalSecurityDataResponse message. Does not implicitly {@link Authentication.IncrementalSecurityDataResponse.verify|verify} messages. @@ -6652,7 +7032,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Authentication.IIncrementalSecurityDataResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Authentication.IIncrementalSecurityDataResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified IncrementalSecurityDataResponse message, length delimited. Does not implicitly {@link Authentication.IncrementalSecurityDataResponse.verify|verify} messages. @@ -6660,7 +7043,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.IIncrementalSecurityDataResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.IIncrementalSecurityDataResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes an IncrementalSecurityDataResponse message from the specified reader or buffer. @@ -6670,7 +7056,10 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.IncrementalSecurityDataResponse; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Authentication.IncrementalSecurityDataResponse; /** * Decodes an IncrementalSecurityDataResponse message from the specified reader or buffer, length delimited. @@ -6679,14 +7068,16 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.IncrementalSecurityDataResponse; + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array + ): Authentication.IncrementalSecurityDataResponse; /** * Verifies an IncrementalSecurityDataResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an IncrementalSecurityDataResponse message from a plain object. Also converts values to their respective internal types. @@ -6701,7 +7092,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.IncrementalSecurityDataResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.IncrementalSecurityDataResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this IncrementalSecurityDataResponse to JSON. @@ -6719,14 +7113,12 @@ export namespace Authentication { /** Properties of a ReusedPasswordsRequest. */ interface IReusedPasswordsRequest { - /** ReusedPasswordsRequest count */ - count?: (number|null); + count?: number | null; } /** Represents a ReusedPasswordsRequest. */ class ReusedPasswordsRequest implements IReusedPasswordsRequest { - /** * Constructs a new ReusedPasswordsRequest. * @param [properties] Properties to set @@ -6741,7 +7133,9 @@ export namespace Authentication { * @param [properties] Properties to set * @returns ReusedPasswordsRequest instance */ - public static create(properties?: Authentication.IReusedPasswordsRequest): Authentication.ReusedPasswordsRequest; + public static create( + properties?: Authentication.IReusedPasswordsRequest + ): Authentication.ReusedPasswordsRequest; /** * Encodes the specified ReusedPasswordsRequest message. Does not implicitly {@link Authentication.ReusedPasswordsRequest.verify|verify} messages. @@ -6749,7 +7143,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Authentication.IReusedPasswordsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Authentication.IReusedPasswordsRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified ReusedPasswordsRequest message, length delimited. Does not implicitly {@link Authentication.ReusedPasswordsRequest.verify|verify} messages. @@ -6757,7 +7154,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.IReusedPasswordsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.IReusedPasswordsRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a ReusedPasswordsRequest message from the specified reader or buffer. @@ -6767,7 +7167,10 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.ReusedPasswordsRequest; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Authentication.ReusedPasswordsRequest; /** * Decodes a ReusedPasswordsRequest message from the specified reader or buffer, length delimited. @@ -6776,14 +7179,14 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.ReusedPasswordsRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Authentication.ReusedPasswordsRequest; /** * Verifies a ReusedPasswordsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a ReusedPasswordsRequest message from a plain object. Also converts values to their respective internal types. @@ -6798,7 +7201,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.ReusedPasswordsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.ReusedPasswordsRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this ReusedPasswordsRequest to JSON. @@ -6816,17 +7222,15 @@ export namespace Authentication { /** Properties of a SummaryConsoleReport. */ interface ISummaryConsoleReport { - /** SummaryConsoleReport reportType */ - reportType?: (number|null); + reportType?: number | null; /** SummaryConsoleReport reportData */ - reportData?: (Uint8Array|null); + reportData?: Uint8Array | null; } /** Represents a SummaryConsoleReport. */ class SummaryConsoleReport implements ISummaryConsoleReport { - /** * Constructs a new SummaryConsoleReport. * @param [properties] Properties to set @@ -6852,7 +7256,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Authentication.ISummaryConsoleReport, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Authentication.ISummaryConsoleReport, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified SummaryConsoleReport message, length delimited. Does not implicitly {@link Authentication.SummaryConsoleReport.verify|verify} messages. @@ -6860,7 +7267,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.ISummaryConsoleReport, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.ISummaryConsoleReport, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a SummaryConsoleReport message from the specified reader or buffer. @@ -6870,7 +7280,10 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.SummaryConsoleReport; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Authentication.SummaryConsoleReport; /** * Decodes a SummaryConsoleReport message from the specified reader or buffer, length delimited. @@ -6879,14 +7292,14 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.SummaryConsoleReport; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Authentication.SummaryConsoleReport; /** * Verifies a SummaryConsoleReport message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a SummaryConsoleReport message from a plain object. Also converts values to their respective internal types. @@ -6901,7 +7314,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.SummaryConsoleReport, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.SummaryConsoleReport, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this SummaryConsoleReport to JSON. @@ -6923,28 +7339,26 @@ export namespace Authentication { SHARED_FOLDER_USER = 1, SHARED_FOLDER_TEAM = 2, USER_FOLDER = 3, - TEAM_USER = 4 + TEAM_USER = 4, } /** Properties of a ChangeToKeyTypeOne. */ interface IChangeToKeyTypeOne { - /** ChangeToKeyTypeOne objectType */ - objectType?: (Authentication.ObjectTypes|null); + objectType?: Authentication.ObjectTypes | null; /** ChangeToKeyTypeOne primaryUid */ - primaryUid?: (Uint8Array|null); + primaryUid?: Uint8Array | null; /** ChangeToKeyTypeOne secondaryUid */ - secondaryUid?: (Uint8Array|null); + secondaryUid?: Uint8Array | null; /** ChangeToKeyTypeOne key */ - key?: (Uint8Array|null); + key?: Uint8Array | null; } /** Represents a ChangeToKeyTypeOne. */ class ChangeToKeyTypeOne implements IChangeToKeyTypeOne { - /** * Constructs a new ChangeToKeyTypeOne. * @param [properties] Properties to set @@ -6984,7 +7398,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.IChangeToKeyTypeOne, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.IChangeToKeyTypeOne, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a ChangeToKeyTypeOne message from the specified reader or buffer. @@ -6994,7 +7411,7 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.ChangeToKeyTypeOne; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Authentication.ChangeToKeyTypeOne; /** * Decodes a ChangeToKeyTypeOne message from the specified reader or buffer, length delimited. @@ -7003,14 +7420,14 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.ChangeToKeyTypeOne; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Authentication.ChangeToKeyTypeOne; /** * Verifies a ChangeToKeyTypeOne message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a ChangeToKeyTypeOne message from a plain object. Also converts values to their respective internal types. @@ -7025,7 +7442,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.ChangeToKeyTypeOne, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.ChangeToKeyTypeOne, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this ChangeToKeyTypeOne to JSON. @@ -7043,14 +7463,12 @@ export namespace Authentication { /** Properties of a ChangeToKeyTypeOneRequest. */ interface IChangeToKeyTypeOneRequest { - /** ChangeToKeyTypeOneRequest changeToKeyTypeOne */ - changeToKeyTypeOne?: (Authentication.IChangeToKeyTypeOne[]|null); + changeToKeyTypeOne?: Authentication.IChangeToKeyTypeOne[] | null; } /** Represents a ChangeToKeyTypeOneRequest. */ class ChangeToKeyTypeOneRequest implements IChangeToKeyTypeOneRequest { - /** * Constructs a new ChangeToKeyTypeOneRequest. * @param [properties] Properties to set @@ -7065,7 +7483,9 @@ export namespace Authentication { * @param [properties] Properties to set * @returns ChangeToKeyTypeOneRequest instance */ - public static create(properties?: Authentication.IChangeToKeyTypeOneRequest): Authentication.ChangeToKeyTypeOneRequest; + public static create( + properties?: Authentication.IChangeToKeyTypeOneRequest + ): Authentication.ChangeToKeyTypeOneRequest; /** * Encodes the specified ChangeToKeyTypeOneRequest message. Does not implicitly {@link Authentication.ChangeToKeyTypeOneRequest.verify|verify} messages. @@ -7073,7 +7493,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Authentication.IChangeToKeyTypeOneRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Authentication.IChangeToKeyTypeOneRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified ChangeToKeyTypeOneRequest message, length delimited. Does not implicitly {@link Authentication.ChangeToKeyTypeOneRequest.verify|verify} messages. @@ -7081,7 +7504,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.IChangeToKeyTypeOneRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.IChangeToKeyTypeOneRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a ChangeToKeyTypeOneRequest message from the specified reader or buffer. @@ -7091,7 +7517,10 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.ChangeToKeyTypeOneRequest; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Authentication.ChangeToKeyTypeOneRequest; /** * Decodes a ChangeToKeyTypeOneRequest message from the specified reader or buffer, length delimited. @@ -7100,14 +7529,14 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.ChangeToKeyTypeOneRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Authentication.ChangeToKeyTypeOneRequest; /** * Verifies a ChangeToKeyTypeOneRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a ChangeToKeyTypeOneRequest message from a plain object. Also converts values to their respective internal types. @@ -7122,7 +7551,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.ChangeToKeyTypeOneRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.ChangeToKeyTypeOneRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this ChangeToKeyTypeOneRequest to JSON. @@ -7140,23 +7572,21 @@ export namespace Authentication { /** Properties of a ChangeToKeyTypeOneStatus. */ interface IChangeToKeyTypeOneStatus { - /** ChangeToKeyTypeOneStatus uid */ - uid?: (Uint8Array|null); + uid?: Uint8Array | null; /** ChangeToKeyTypeOneStatus type */ - type?: (string|null); + type?: string | null; /** ChangeToKeyTypeOneStatus status */ - status?: (string|null); + status?: string | null; /** ChangeToKeyTypeOneStatus reason */ - reason?: (string|null); + reason?: string | null; } /** Represents a ChangeToKeyTypeOneStatus. */ class ChangeToKeyTypeOneStatus implements IChangeToKeyTypeOneStatus { - /** * Constructs a new ChangeToKeyTypeOneStatus. * @param [properties] Properties to set @@ -7180,7 +7610,9 @@ export namespace Authentication { * @param [properties] Properties to set * @returns ChangeToKeyTypeOneStatus instance */ - public static create(properties?: Authentication.IChangeToKeyTypeOneStatus): Authentication.ChangeToKeyTypeOneStatus; + public static create( + properties?: Authentication.IChangeToKeyTypeOneStatus + ): Authentication.ChangeToKeyTypeOneStatus; /** * Encodes the specified ChangeToKeyTypeOneStatus message. Does not implicitly {@link Authentication.ChangeToKeyTypeOneStatus.verify|verify} messages. @@ -7188,7 +7620,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Authentication.IChangeToKeyTypeOneStatus, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Authentication.IChangeToKeyTypeOneStatus, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified ChangeToKeyTypeOneStatus message, length delimited. Does not implicitly {@link Authentication.ChangeToKeyTypeOneStatus.verify|verify} messages. @@ -7196,7 +7631,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.IChangeToKeyTypeOneStatus, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.IChangeToKeyTypeOneStatus, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a ChangeToKeyTypeOneStatus message from the specified reader or buffer. @@ -7206,7 +7644,10 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.ChangeToKeyTypeOneStatus; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Authentication.ChangeToKeyTypeOneStatus; /** * Decodes a ChangeToKeyTypeOneStatus message from the specified reader or buffer, length delimited. @@ -7215,14 +7656,14 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.ChangeToKeyTypeOneStatus; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Authentication.ChangeToKeyTypeOneStatus; /** * Verifies a ChangeToKeyTypeOneStatus message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a ChangeToKeyTypeOneStatus message from a plain object. Also converts values to their respective internal types. @@ -7237,7 +7678,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.ChangeToKeyTypeOneStatus, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.ChangeToKeyTypeOneStatus, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this ChangeToKeyTypeOneStatus to JSON. @@ -7255,14 +7699,12 @@ export namespace Authentication { /** Properties of a ChangeToKeyTypeOneResponse. */ interface IChangeToKeyTypeOneResponse { - /** ChangeToKeyTypeOneResponse changeToKeyTypeOneStatus */ - changeToKeyTypeOneStatus?: (Authentication.IChangeToKeyTypeOneStatus[]|null); + changeToKeyTypeOneStatus?: Authentication.IChangeToKeyTypeOneStatus[] | null; } /** Represents a ChangeToKeyTypeOneResponse. */ class ChangeToKeyTypeOneResponse implements IChangeToKeyTypeOneResponse { - /** * Constructs a new ChangeToKeyTypeOneResponse. * @param [properties] Properties to set @@ -7277,7 +7719,9 @@ export namespace Authentication { * @param [properties] Properties to set * @returns ChangeToKeyTypeOneResponse instance */ - public static create(properties?: Authentication.IChangeToKeyTypeOneResponse): Authentication.ChangeToKeyTypeOneResponse; + public static create( + properties?: Authentication.IChangeToKeyTypeOneResponse + ): Authentication.ChangeToKeyTypeOneResponse; /** * Encodes the specified ChangeToKeyTypeOneResponse message. Does not implicitly {@link Authentication.ChangeToKeyTypeOneResponse.verify|verify} messages. @@ -7285,7 +7729,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Authentication.IChangeToKeyTypeOneResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Authentication.IChangeToKeyTypeOneResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified ChangeToKeyTypeOneResponse message, length delimited. Does not implicitly {@link Authentication.ChangeToKeyTypeOneResponse.verify|verify} messages. @@ -7293,7 +7740,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.IChangeToKeyTypeOneResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.IChangeToKeyTypeOneResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a ChangeToKeyTypeOneResponse message from the specified reader or buffer. @@ -7303,7 +7753,10 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.ChangeToKeyTypeOneResponse; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Authentication.ChangeToKeyTypeOneResponse; /** * Decodes a ChangeToKeyTypeOneResponse message from the specified reader or buffer, length delimited. @@ -7312,14 +7765,14 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.ChangeToKeyTypeOneResponse; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Authentication.ChangeToKeyTypeOneResponse; /** * Verifies a ChangeToKeyTypeOneResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a ChangeToKeyTypeOneResponse message from a plain object. Also converts values to their respective internal types. @@ -7334,7 +7787,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.ChangeToKeyTypeOneResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.ChangeToKeyTypeOneResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this ChangeToKeyTypeOneResponse to JSON. @@ -7361,31 +7817,29 @@ export namespace Authentication { EOT_SECURITY_DATA = 6, EOT_SECURITY_DATA_MASTER_PASSWORD = 7, EOT_EMERGENCY_ACCESS_KEY = 8, - EOT_V2_RECORD_KEY = 9 + EOT_V2_RECORD_KEY = 9, } /** Properties of a GetChangeKeyTypesRequest. */ interface IGetChangeKeyTypesRequest { - /** GetChangeKeyTypesRequest onlyTheseObjects */ - onlyTheseObjects?: (Authentication.EncryptedObjectType[]|null); + onlyTheseObjects?: Authentication.EncryptedObjectType[] | null; /** GetChangeKeyTypesRequest limit */ - limit?: (number|null); + limit?: number | null; /** GetChangeKeyTypesRequest includeRecommended */ - includeRecommended?: (boolean|null); + includeRecommended?: boolean | null; /** GetChangeKeyTypesRequest includeKeys */ - includeKeys?: (boolean|null); + includeKeys?: boolean | null; /** GetChangeKeyTypesRequest includeAllowedKeyTypes */ - includeAllowedKeyTypes?: (boolean|null); + includeAllowedKeyTypes?: boolean | null; } /** Represents a GetChangeKeyTypesRequest. */ class GetChangeKeyTypesRequest implements IGetChangeKeyTypesRequest { - /** * Constructs a new GetChangeKeyTypesRequest. * @param [properties] Properties to set @@ -7412,7 +7866,9 @@ export namespace Authentication { * @param [properties] Properties to set * @returns GetChangeKeyTypesRequest instance */ - public static create(properties?: Authentication.IGetChangeKeyTypesRequest): Authentication.GetChangeKeyTypesRequest; + public static create( + properties?: Authentication.IGetChangeKeyTypesRequest + ): Authentication.GetChangeKeyTypesRequest; /** * Encodes the specified GetChangeKeyTypesRequest message. Does not implicitly {@link Authentication.GetChangeKeyTypesRequest.verify|verify} messages. @@ -7420,7 +7876,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Authentication.IGetChangeKeyTypesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Authentication.IGetChangeKeyTypesRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified GetChangeKeyTypesRequest message, length delimited. Does not implicitly {@link Authentication.GetChangeKeyTypesRequest.verify|verify} messages. @@ -7428,7 +7887,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.IGetChangeKeyTypesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.IGetChangeKeyTypesRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a GetChangeKeyTypesRequest message from the specified reader or buffer. @@ -7438,7 +7900,10 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.GetChangeKeyTypesRequest; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Authentication.GetChangeKeyTypesRequest; /** * Decodes a GetChangeKeyTypesRequest message from the specified reader or buffer, length delimited. @@ -7447,14 +7912,14 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.GetChangeKeyTypesRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Authentication.GetChangeKeyTypesRequest; /** * Verifies a GetChangeKeyTypesRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a GetChangeKeyTypesRequest message from a plain object. Also converts values to their respective internal types. @@ -7469,7 +7934,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.GetChangeKeyTypesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.GetChangeKeyTypesRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this GetChangeKeyTypesRequest to JSON. @@ -7487,17 +7955,15 @@ export namespace Authentication { /** Properties of a GetChangeKeyTypesResponse. */ interface IGetChangeKeyTypesResponse { - /** GetChangeKeyTypesResponse keys */ - keys?: (Authentication.IChangeKeyType[]|null); + keys?: Authentication.IChangeKeyType[] | null; /** GetChangeKeyTypesResponse allowedKeyTypes */ - allowedKeyTypes?: (Authentication.IAllowedKeyTypes[]|null); + allowedKeyTypes?: Authentication.IAllowedKeyTypes[] | null; } /** Represents a GetChangeKeyTypesResponse. */ class GetChangeKeyTypesResponse implements IGetChangeKeyTypesResponse { - /** * Constructs a new GetChangeKeyTypesResponse. * @param [properties] Properties to set @@ -7515,7 +7981,9 @@ export namespace Authentication { * @param [properties] Properties to set * @returns GetChangeKeyTypesResponse instance */ - public static create(properties?: Authentication.IGetChangeKeyTypesResponse): Authentication.GetChangeKeyTypesResponse; + public static create( + properties?: Authentication.IGetChangeKeyTypesResponse + ): Authentication.GetChangeKeyTypesResponse; /** * Encodes the specified GetChangeKeyTypesResponse message. Does not implicitly {@link Authentication.GetChangeKeyTypesResponse.verify|verify} messages. @@ -7523,7 +7991,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Authentication.IGetChangeKeyTypesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Authentication.IGetChangeKeyTypesResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified GetChangeKeyTypesResponse message, length delimited. Does not implicitly {@link Authentication.GetChangeKeyTypesResponse.verify|verify} messages. @@ -7531,7 +8002,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.IGetChangeKeyTypesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.IGetChangeKeyTypesResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a GetChangeKeyTypesResponse message from the specified reader or buffer. @@ -7541,7 +8015,10 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.GetChangeKeyTypesResponse; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Authentication.GetChangeKeyTypesResponse; /** * Decodes a GetChangeKeyTypesResponse message from the specified reader or buffer, length delimited. @@ -7550,14 +8027,14 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.GetChangeKeyTypesResponse; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Authentication.GetChangeKeyTypesResponse; /** * Verifies a GetChangeKeyTypesResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a GetChangeKeyTypesResponse message from a plain object. Also converts values to their respective internal types. @@ -7572,7 +8049,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.GetChangeKeyTypesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.GetChangeKeyTypesResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this GetChangeKeyTypesResponse to JSON. @@ -7590,17 +8070,15 @@ export namespace Authentication { /** Properties of an AllowedKeyTypes. */ interface IAllowedKeyTypes { - /** AllowedKeyTypes objectType */ - objectType?: (Authentication.EncryptedObjectType|null); + objectType?: Authentication.EncryptedObjectType | null; /** AllowedKeyTypes allowedKeyTypes */ - allowedKeyTypes?: (Enterprise.EncryptedKeyType[]|null); + allowedKeyTypes?: Enterprise.EncryptedKeyType[] | null; } /** Represents an AllowedKeyTypes. */ class AllowedKeyTypes implements IAllowedKeyTypes { - /** * Constructs a new AllowedKeyTypes. * @param [properties] Properties to set @@ -7634,7 +8112,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.IAllowedKeyTypes, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.IAllowedKeyTypes, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes an AllowedKeyTypes message from the specified reader or buffer. @@ -7644,7 +8125,7 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.AllowedKeyTypes; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Authentication.AllowedKeyTypes; /** * Decodes an AllowedKeyTypes message from the specified reader or buffer, length delimited. @@ -7653,14 +8134,14 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.AllowedKeyTypes; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Authentication.AllowedKeyTypes; /** * Verifies an AllowedKeyTypes message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an AllowedKeyTypes message from a plain object. Also converts values to their respective internal types. @@ -7675,7 +8156,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.AllowedKeyTypes, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.AllowedKeyTypes, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this AllowedKeyTypes to JSON. @@ -7693,14 +8177,12 @@ export namespace Authentication { /** Properties of a ChangeKeyTypes. */ interface IChangeKeyTypes { - /** ChangeKeyTypes keys */ - keys?: (Authentication.IChangeKeyType[]|null); + keys?: Authentication.IChangeKeyType[] | null; } /** Represents a ChangeKeyTypes. */ class ChangeKeyTypes implements IChangeKeyTypes { - /** * Constructs a new ChangeKeyTypes. * @param [properties] Properties to set @@ -7731,7 +8213,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.IChangeKeyTypes, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.IChangeKeyTypes, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a ChangeKeyTypes message from the specified reader or buffer. @@ -7741,7 +8226,7 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.ChangeKeyTypes; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Authentication.ChangeKeyTypes; /** * Decodes a ChangeKeyTypes message from the specified reader or buffer, length delimited. @@ -7750,14 +8235,14 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.ChangeKeyTypes; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Authentication.ChangeKeyTypes; /** * Verifies a ChangeKeyTypes message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a ChangeKeyTypes message from a plain object. Also converts values to their respective internal types. @@ -7772,7 +8257,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.ChangeKeyTypes, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.ChangeKeyTypes, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this ChangeKeyTypes to JSON. @@ -7790,29 +8278,27 @@ export namespace Authentication { /** Properties of a ChangeKeyType. */ interface IChangeKeyType { - /** ChangeKeyType objectType */ - objectType?: (Authentication.EncryptedObjectType|null); + objectType?: Authentication.EncryptedObjectType | null; /** ChangeKeyType uid */ - uid?: (Uint8Array|null); + uid?: Uint8Array | null; /** ChangeKeyType secondaryUid */ - secondaryUid?: (Uint8Array|null); + secondaryUid?: Uint8Array | null; /** ChangeKeyType key */ - key?: (Uint8Array|null); + key?: Uint8Array | null; /** ChangeKeyType keyType */ - keyType?: (Enterprise.EncryptedKeyType|null); + keyType?: Enterprise.EncryptedKeyType | null; /** ChangeKeyType status */ - status?: (Authentication.GenericStatus|null); + status?: Authentication.GenericStatus | null; } /** Represents a ChangeKeyType. */ class ChangeKeyType implements IChangeKeyType { - /** * Constructs a new ChangeKeyType. * @param [properties] Properties to set @@ -7858,7 +8344,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.IChangeKeyType, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.IChangeKeyType, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a ChangeKeyType message from the specified reader or buffer. @@ -7868,7 +8357,7 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.ChangeKeyType; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Authentication.ChangeKeyType; /** * Decodes a ChangeKeyType message from the specified reader or buffer, length delimited. @@ -7877,14 +8366,14 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.ChangeKeyType; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Authentication.ChangeKeyType; /** * Verifies a ChangeKeyType message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a ChangeKeyType message from a plain object. Also converts values to their respective internal types. @@ -7899,7 +8388,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.ChangeKeyType, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.ChangeKeyType, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this ChangeKeyType to JSON. @@ -7917,17 +8409,15 @@ export namespace Authentication { /** Properties of a SetKey. */ interface ISetKey { - /** SetKey id */ - id?: (number|Long|null); + id?: number | Long | null; /** SetKey key */ - key?: (Uint8Array|null); + key?: Uint8Array | null; } /** Represents a SetKey. */ class SetKey implements ISetKey { - /** * Constructs a new SetKey. * @param [properties] Properties to set @@ -7935,7 +8425,7 @@ export namespace Authentication { constructor(properties?: Authentication.ISetKey); /** SetKey id. */ - public id: (number|Long); + public id: number | Long; /** SetKey key. */ public key: Uint8Array; @@ -7971,7 +8461,7 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.SetKey; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Authentication.SetKey; /** * Decodes a SetKey message from the specified reader or buffer, length delimited. @@ -7980,14 +8470,14 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.SetKey; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Authentication.SetKey; /** * Verifies a SetKey message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a SetKey message from a plain object. Also converts values to their respective internal types. @@ -8002,7 +8492,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.SetKey, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.SetKey, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this SetKey to JSON. @@ -8020,14 +8513,12 @@ export namespace Authentication { /** Properties of a SetKeyRequest. */ interface ISetKeyRequest { - /** SetKeyRequest keys */ - keys?: (Authentication.ISetKey[]|null); + keys?: Authentication.ISetKey[] | null; } /** Represents a SetKeyRequest. */ class SetKeyRequest implements ISetKeyRequest { - /** * Constructs a new SetKeyRequest. * @param [properties] Properties to set @@ -8058,7 +8549,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.ISetKeyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.ISetKeyRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a SetKeyRequest message from the specified reader or buffer. @@ -8068,7 +8562,7 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.SetKeyRequest; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Authentication.SetKeyRequest; /** * Decodes a SetKeyRequest message from the specified reader or buffer, length delimited. @@ -8077,14 +8571,14 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.SetKeyRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Authentication.SetKeyRequest; /** * Verifies a SetKeyRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a SetKeyRequest message from a plain object. Also converts values to their respective internal types. @@ -8099,7 +8593,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.SetKeyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.SetKeyRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this SetKeyRequest to JSON. @@ -8117,86 +8614,84 @@ export namespace Authentication { /** Properties of a CreateUserRequest. */ interface ICreateUserRequest { - /** CreateUserRequest username */ - username?: (string|null); + username?: string | null; /** CreateUserRequest authVerifier */ - authVerifier?: (Uint8Array|null); + authVerifier?: Uint8Array | null; /** CreateUserRequest encryptionParams */ - encryptionParams?: (Uint8Array|null); + encryptionParams?: Uint8Array | null; /** CreateUserRequest rsaPublicKey */ - rsaPublicKey?: (Uint8Array|null); + rsaPublicKey?: Uint8Array | null; /** CreateUserRequest rsaEncryptedPrivateKey */ - rsaEncryptedPrivateKey?: (Uint8Array|null); + rsaEncryptedPrivateKey?: Uint8Array | null; /** CreateUserRequest eccPublicKey */ - eccPublicKey?: (Uint8Array|null); + eccPublicKey?: Uint8Array | null; /** CreateUserRequest eccEncryptedPrivateKey */ - eccEncryptedPrivateKey?: (Uint8Array|null); + eccEncryptedPrivateKey?: Uint8Array | null; /** CreateUserRequest encryptedDeviceToken */ - encryptedDeviceToken?: (Uint8Array|null); + encryptedDeviceToken?: Uint8Array | null; /** CreateUserRequest encryptedClientKey */ - encryptedClientKey?: (Uint8Array|null); + encryptedClientKey?: Uint8Array | null; /** CreateUserRequest clientVersion */ - clientVersion?: (string|null); + clientVersion?: string | null; /** CreateUserRequest encryptedDeviceDataKey */ - encryptedDeviceDataKey?: (Uint8Array|null); + encryptedDeviceDataKey?: Uint8Array | null; /** CreateUserRequest encryptedLoginToken */ - encryptedLoginToken?: (Uint8Array|null); + encryptedLoginToken?: Uint8Array | null; /** CreateUserRequest messageSessionUid */ - messageSessionUid?: (Uint8Array|null); + messageSessionUid?: Uint8Array | null; /** CreateUserRequest installReferrer */ - installReferrer?: (string|null); + installReferrer?: string | null; /** CreateUserRequest mccMNC */ - mccMNC?: (number|null); + mccMNC?: number | null; /** CreateUserRequest mfg */ - mfg?: (string|null); + mfg?: string | null; /** CreateUserRequest model */ - model?: (string|null); + model?: string | null; /** CreateUserRequest brand */ - brand?: (string|null); + brand?: string | null; /** CreateUserRequest product */ - product?: (string|null); + product?: string | null; /** CreateUserRequest device */ - device?: (string|null); + device?: string | null; /** CreateUserRequest carrier */ - carrier?: (string|null); + carrier?: string | null; /** CreateUserRequest verificationCode */ - verificationCode?: (string|null); + verificationCode?: string | null; /** CreateUserRequest enterpriseRegistration */ - enterpriseRegistration?: (Enterprise.IEnterpriseRegistration|null); + enterpriseRegistration?: Enterprise.IEnterpriseRegistration | null; /** CreateUserRequest encryptedVerificationToken */ - encryptedVerificationToken?: (Uint8Array|null); + encryptedVerificationToken?: Uint8Array | null; /** CreateUserRequest enterpriseUsersDataKey */ - enterpriseUsersDataKey?: (Uint8Array|null); + enterpriseUsersDataKey?: Uint8Array | null; } /** Represents a CreateUserRequest. */ class CreateUserRequest implements ICreateUserRequest { - /** * Constructs a new CreateUserRequest. * @param [properties] Properties to set @@ -8270,7 +8765,7 @@ export namespace Authentication { public verificationCode: string; /** CreateUserRequest enterpriseRegistration. */ - public enterpriseRegistration?: (Enterprise.IEnterpriseRegistration|null); + public enterpriseRegistration?: Enterprise.IEnterpriseRegistration | null; /** CreateUserRequest encryptedVerificationToken. */ public encryptedVerificationToken: Uint8Array; @@ -8299,7 +8794,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.ICreateUserRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.ICreateUserRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a CreateUserRequest message from the specified reader or buffer. @@ -8309,7 +8807,7 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.CreateUserRequest; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Authentication.CreateUserRequest; /** * Decodes a CreateUserRequest message from the specified reader or buffer, length delimited. @@ -8318,14 +8816,14 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.CreateUserRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Authentication.CreateUserRequest; /** * Verifies a CreateUserRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a CreateUserRequest message from a plain object. Also converts values to their respective internal types. @@ -8340,7 +8838,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.CreateUserRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.CreateUserRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this CreateUserRequest to JSON. @@ -8358,20 +8859,18 @@ export namespace Authentication { /** Properties of a NodeEnforcementAddOrUpdateRequest. */ interface INodeEnforcementAddOrUpdateRequest { - /** NodeEnforcementAddOrUpdateRequest nodeId */ - nodeId?: (number|Long|null); + nodeId?: number | Long | null; /** NodeEnforcementAddOrUpdateRequest enforcement */ - enforcement?: (string|null); + enforcement?: string | null; /** NodeEnforcementAddOrUpdateRequest value */ - value?: (string|null); + value?: string | null; } /** Represents a NodeEnforcementAddOrUpdateRequest. */ class NodeEnforcementAddOrUpdateRequest implements INodeEnforcementAddOrUpdateRequest { - /** * Constructs a new NodeEnforcementAddOrUpdateRequest. * @param [properties] Properties to set @@ -8379,7 +8878,7 @@ export namespace Authentication { constructor(properties?: Authentication.INodeEnforcementAddOrUpdateRequest); /** NodeEnforcementAddOrUpdateRequest nodeId. */ - public nodeId: (number|Long); + public nodeId: number | Long; /** NodeEnforcementAddOrUpdateRequest enforcement. */ public enforcement: string; @@ -8392,7 +8891,9 @@ export namespace Authentication { * @param [properties] Properties to set * @returns NodeEnforcementAddOrUpdateRequest instance */ - public static create(properties?: Authentication.INodeEnforcementAddOrUpdateRequest): Authentication.NodeEnforcementAddOrUpdateRequest; + public static create( + properties?: Authentication.INodeEnforcementAddOrUpdateRequest + ): Authentication.NodeEnforcementAddOrUpdateRequest; /** * Encodes the specified NodeEnforcementAddOrUpdateRequest message. Does not implicitly {@link Authentication.NodeEnforcementAddOrUpdateRequest.verify|verify} messages. @@ -8400,7 +8901,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Authentication.INodeEnforcementAddOrUpdateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Authentication.INodeEnforcementAddOrUpdateRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified NodeEnforcementAddOrUpdateRequest message, length delimited. Does not implicitly {@link Authentication.NodeEnforcementAddOrUpdateRequest.verify|verify} messages. @@ -8408,7 +8912,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.INodeEnforcementAddOrUpdateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.INodeEnforcementAddOrUpdateRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a NodeEnforcementAddOrUpdateRequest message from the specified reader or buffer. @@ -8418,7 +8925,10 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.NodeEnforcementAddOrUpdateRequest; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Authentication.NodeEnforcementAddOrUpdateRequest; /** * Decodes a NodeEnforcementAddOrUpdateRequest message from the specified reader or buffer, length delimited. @@ -8427,14 +8937,16 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.NodeEnforcementAddOrUpdateRequest; + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array + ): Authentication.NodeEnforcementAddOrUpdateRequest; /** * Verifies a NodeEnforcementAddOrUpdateRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a NodeEnforcementAddOrUpdateRequest message from a plain object. Also converts values to their respective internal types. @@ -8449,7 +8961,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.NodeEnforcementAddOrUpdateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.NodeEnforcementAddOrUpdateRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this NodeEnforcementAddOrUpdateRequest to JSON. @@ -8467,17 +8982,15 @@ export namespace Authentication { /** Properties of a NodeEnforcementRemoveRequest. */ interface INodeEnforcementRemoveRequest { - /** NodeEnforcementRemoveRequest nodeId */ - nodeId?: (number|Long|null); + nodeId?: number | Long | null; /** NodeEnforcementRemoveRequest enforcement */ - enforcement?: (string|null); + enforcement?: string | null; } /** Represents a NodeEnforcementRemoveRequest. */ class NodeEnforcementRemoveRequest implements INodeEnforcementRemoveRequest { - /** * Constructs a new NodeEnforcementRemoveRequest. * @param [properties] Properties to set @@ -8485,7 +8998,7 @@ export namespace Authentication { constructor(properties?: Authentication.INodeEnforcementRemoveRequest); /** NodeEnforcementRemoveRequest nodeId. */ - public nodeId: (number|Long); + public nodeId: number | Long; /** NodeEnforcementRemoveRequest enforcement. */ public enforcement: string; @@ -8495,7 +9008,9 @@ export namespace Authentication { * @param [properties] Properties to set * @returns NodeEnforcementRemoveRequest instance */ - public static create(properties?: Authentication.INodeEnforcementRemoveRequest): Authentication.NodeEnforcementRemoveRequest; + public static create( + properties?: Authentication.INodeEnforcementRemoveRequest + ): Authentication.NodeEnforcementRemoveRequest; /** * Encodes the specified NodeEnforcementRemoveRequest message. Does not implicitly {@link Authentication.NodeEnforcementRemoveRequest.verify|verify} messages. @@ -8503,7 +9018,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Authentication.INodeEnforcementRemoveRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Authentication.INodeEnforcementRemoveRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified NodeEnforcementRemoveRequest message, length delimited. Does not implicitly {@link Authentication.NodeEnforcementRemoveRequest.verify|verify} messages. @@ -8511,7 +9029,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.INodeEnforcementRemoveRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.INodeEnforcementRemoveRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a NodeEnforcementRemoveRequest message from the specified reader or buffer. @@ -8521,7 +9042,10 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.NodeEnforcementRemoveRequest; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Authentication.NodeEnforcementRemoveRequest; /** * Decodes a NodeEnforcementRemoveRequest message from the specified reader or buffer, length delimited. @@ -8530,14 +9054,16 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.NodeEnforcementRemoveRequest; + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array + ): Authentication.NodeEnforcementRemoveRequest; /** * Verifies a NodeEnforcementRemoveRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a NodeEnforcementRemoveRequest message from a plain object. Also converts values to their respective internal types. @@ -8552,7 +9078,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.NodeEnforcementRemoveRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.NodeEnforcementRemoveRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this NodeEnforcementRemoveRequest to JSON. @@ -8570,29 +9099,27 @@ export namespace Authentication { /** Properties of an ApiRequestByKey. */ interface IApiRequestByKey { - /** ApiRequestByKey keyId */ - keyId?: (number|null); + keyId?: number | null; /** ApiRequestByKey payload */ - payload?: (Uint8Array|null); + payload?: Uint8Array | null; /** ApiRequestByKey username */ - username?: (string|null); + username?: string | null; /** ApiRequestByKey locale */ - locale?: (string|null); + locale?: string | null; /** ApiRequestByKey supportedLanguage */ - supportedLanguage?: (Authentication.SupportedLanguage|null); + supportedLanguage?: Authentication.SupportedLanguage | null; /** ApiRequestByKey type */ - type?: (number|null); + type?: number | null; } /** Represents an ApiRequestByKey. */ class ApiRequestByKey implements IApiRequestByKey { - /** * Constructs a new ApiRequestByKey. * @param [properties] Properties to set @@ -8638,7 +9165,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.IApiRequestByKey, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.IApiRequestByKey, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes an ApiRequestByKey message from the specified reader or buffer. @@ -8648,7 +9178,7 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.ApiRequestByKey; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Authentication.ApiRequestByKey; /** * Decodes an ApiRequestByKey message from the specified reader or buffer, length delimited. @@ -8657,14 +9187,14 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.ApiRequestByKey; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Authentication.ApiRequestByKey; /** * Verifies an ApiRequestByKey message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an ApiRequestByKey message from a plain object. Also converts values to their respective internal types. @@ -8679,7 +9209,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.ApiRequestByKey, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.ApiRequestByKey, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this ApiRequestByKey to JSON. @@ -8697,23 +9230,21 @@ export namespace Authentication { /** Properties of an ApiRequestByKAtoKAKey. */ interface IApiRequestByKAtoKAKey { - /** ApiRequestByKAtoKAKey sourceRegion */ - sourceRegion?: (Authentication.Region|null); + sourceRegion?: Authentication.Region | null; /** ApiRequestByKAtoKAKey payload */ - payload?: (Uint8Array|null); + payload?: Uint8Array | null; /** ApiRequestByKAtoKAKey supportedLanguage */ - supportedLanguage?: (Authentication.SupportedLanguage|null); + supportedLanguage?: Authentication.SupportedLanguage | null; /** ApiRequestByKAtoKAKey destinationRegion */ - destinationRegion?: (Authentication.Region|null); + destinationRegion?: Authentication.Region | null; } /** Represents an ApiRequestByKAtoKAKey. */ class ApiRequestByKAtoKAKey implements IApiRequestByKAtoKAKey { - /** * Constructs a new ApiRequestByKAtoKAKey. * @param [properties] Properties to set @@ -8745,7 +9276,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Authentication.IApiRequestByKAtoKAKey, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Authentication.IApiRequestByKAtoKAKey, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified ApiRequestByKAtoKAKey message, length delimited. Does not implicitly {@link Authentication.ApiRequestByKAtoKAKey.verify|verify} messages. @@ -8753,7 +9287,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.IApiRequestByKAtoKAKey, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.IApiRequestByKAtoKAKey, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes an ApiRequestByKAtoKAKey message from the specified reader or buffer. @@ -8763,7 +9300,10 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.ApiRequestByKAtoKAKey; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Authentication.ApiRequestByKAtoKAKey; /** * Decodes an ApiRequestByKAtoKAKey message from the specified reader or buffer, length delimited. @@ -8772,14 +9312,14 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.ApiRequestByKAtoKAKey; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Authentication.ApiRequestByKAtoKAKey; /** * Verifies an ApiRequestByKAtoKAKey message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an ApiRequestByKAtoKAKey message from a plain object. Also converts values to their respective internal types. @@ -8794,7 +9334,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.ApiRequestByKAtoKAKey, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.ApiRequestByKAtoKAKey, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this ApiRequestByKAtoKAKey to JSON. @@ -8812,17 +9355,15 @@ export namespace Authentication { /** Properties of a MemcacheRequest. */ interface IMemcacheRequest { - /** MemcacheRequest key */ - key?: (string|null); + key?: string | null; /** MemcacheRequest userId */ - userId?: (number|null); + userId?: number | null; } /** Represents a MemcacheRequest. */ class MemcacheRequest implements IMemcacheRequest { - /** * Constructs a new MemcacheRequest. * @param [properties] Properties to set @@ -8856,7 +9397,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.IMemcacheRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.IMemcacheRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a MemcacheRequest message from the specified reader or buffer. @@ -8866,7 +9410,7 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.MemcacheRequest; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Authentication.MemcacheRequest; /** * Decodes a MemcacheRequest message from the specified reader or buffer, length delimited. @@ -8875,14 +9419,14 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.MemcacheRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Authentication.MemcacheRequest; /** * Verifies a MemcacheRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a MemcacheRequest message from a plain object. Also converts values to their respective internal types. @@ -8897,7 +9441,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.MemcacheRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.MemcacheRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this MemcacheRequest to JSON. @@ -8915,17 +9462,15 @@ export namespace Authentication { /** Properties of a MemcacheResponse. */ interface IMemcacheResponse { - /** MemcacheResponse key */ - key?: (string|null); + key?: string | null; /** MemcacheResponse value */ - value?: (string|null); + value?: string | null; } /** Represents a MemcacheResponse. */ class MemcacheResponse implements IMemcacheResponse { - /** * Constructs a new MemcacheResponse. * @param [properties] Properties to set @@ -8959,7 +9504,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.IMemcacheResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.IMemcacheResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a MemcacheResponse message from the specified reader or buffer. @@ -8969,7 +9517,7 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.MemcacheResponse; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Authentication.MemcacheResponse; /** * Decodes a MemcacheResponse message from the specified reader or buffer, length delimited. @@ -8978,14 +9526,14 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.MemcacheResponse; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Authentication.MemcacheResponse; /** * Verifies a MemcacheResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a MemcacheResponse message from a plain object. Also converts values to their respective internal types. @@ -9000,7 +9548,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.MemcacheResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.MemcacheResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this MemcacheResponse to JSON. @@ -9018,17 +9569,15 @@ export namespace Authentication { /** Properties of a MasterPasswordReentryRequest. */ interface IMasterPasswordReentryRequest { - /** MasterPasswordReentryRequest pbkdf2Password */ - pbkdf2Password?: (string|null); + pbkdf2Password?: string | null; /** MasterPasswordReentryRequest action */ - action?: (Authentication.MasterPasswordReentryActionType|null); + action?: Authentication.MasterPasswordReentryActionType | null; } /** Represents a MasterPasswordReentryRequest. */ class MasterPasswordReentryRequest implements IMasterPasswordReentryRequest { - /** * Constructs a new MasterPasswordReentryRequest. * @param [properties] Properties to set @@ -9046,7 +9595,9 @@ export namespace Authentication { * @param [properties] Properties to set * @returns MasterPasswordReentryRequest instance */ - public static create(properties?: Authentication.IMasterPasswordReentryRequest): Authentication.MasterPasswordReentryRequest; + public static create( + properties?: Authentication.IMasterPasswordReentryRequest + ): Authentication.MasterPasswordReentryRequest; /** * Encodes the specified MasterPasswordReentryRequest message. Does not implicitly {@link Authentication.MasterPasswordReentryRequest.verify|verify} messages. @@ -9054,7 +9605,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Authentication.IMasterPasswordReentryRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Authentication.IMasterPasswordReentryRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified MasterPasswordReentryRequest message, length delimited. Does not implicitly {@link Authentication.MasterPasswordReentryRequest.verify|verify} messages. @@ -9062,7 +9616,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.IMasterPasswordReentryRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.IMasterPasswordReentryRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a MasterPasswordReentryRequest message from the specified reader or buffer. @@ -9072,7 +9629,10 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.MasterPasswordReentryRequest; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Authentication.MasterPasswordReentryRequest; /** * Decodes a MasterPasswordReentryRequest message from the specified reader or buffer, length delimited. @@ -9081,14 +9641,16 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.MasterPasswordReentryRequest; + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array + ): Authentication.MasterPasswordReentryRequest; /** * Verifies a MasterPasswordReentryRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a MasterPasswordReentryRequest message from a plain object. Also converts values to their respective internal types. @@ -9103,7 +9665,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.MasterPasswordReentryRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.MasterPasswordReentryRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this MasterPasswordReentryRequest to JSON. @@ -9123,19 +9688,17 @@ export namespace Authentication { enum MasterPasswordReentryStatus { MP_UNKNOWN = 0, MP_SUCCESS = 1, - MP_FAILURE = 2 + MP_FAILURE = 2, } /** Properties of a MasterPasswordReentryResponse. */ interface IMasterPasswordReentryResponse { - /** MasterPasswordReentryResponse status */ - status?: (Authentication.MasterPasswordReentryStatus|null); + status?: Authentication.MasterPasswordReentryStatus | null; } /** Represents a MasterPasswordReentryResponse. */ class MasterPasswordReentryResponse implements IMasterPasswordReentryResponse { - /** * Constructs a new MasterPasswordReentryResponse. * @param [properties] Properties to set @@ -9150,7 +9713,9 @@ export namespace Authentication { * @param [properties] Properties to set * @returns MasterPasswordReentryResponse instance */ - public static create(properties?: Authentication.IMasterPasswordReentryResponse): Authentication.MasterPasswordReentryResponse; + public static create( + properties?: Authentication.IMasterPasswordReentryResponse + ): Authentication.MasterPasswordReentryResponse; /** * Encodes the specified MasterPasswordReentryResponse message. Does not implicitly {@link Authentication.MasterPasswordReentryResponse.verify|verify} messages. @@ -9158,7 +9723,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Authentication.IMasterPasswordReentryResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Authentication.IMasterPasswordReentryResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified MasterPasswordReentryResponse message, length delimited. Does not implicitly {@link Authentication.MasterPasswordReentryResponse.verify|verify} messages. @@ -9166,7 +9734,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.IMasterPasswordReentryResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.IMasterPasswordReentryResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a MasterPasswordReentryResponse message from the specified reader or buffer. @@ -9176,7 +9747,10 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.MasterPasswordReentryResponse; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Authentication.MasterPasswordReentryResponse; /** * Decodes a MasterPasswordReentryResponse message from the specified reader or buffer, length delimited. @@ -9185,14 +9759,16 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.MasterPasswordReentryResponse; + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array + ): Authentication.MasterPasswordReentryResponse; /** * Verifies a MasterPasswordReentryResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a MasterPasswordReentryResponse message from a plain object. Also converts values to their respective internal types. @@ -9207,7 +9783,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.MasterPasswordReentryResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.MasterPasswordReentryResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this MasterPasswordReentryResponse to JSON. @@ -9225,29 +9804,27 @@ export namespace Authentication { /** Properties of a DeviceRegistrationRequest. */ interface IDeviceRegistrationRequest { - /** DeviceRegistrationRequest clientVersion */ - clientVersion?: (string|null); + clientVersion?: string | null; /** DeviceRegistrationRequest deviceName */ - deviceName?: (string|null); + deviceName?: string | null; /** DeviceRegistrationRequest devicePublicKey */ - devicePublicKey?: (Uint8Array|null); + devicePublicKey?: Uint8Array | null; /** DeviceRegistrationRequest devicePlatform */ - devicePlatform?: (string|null); + devicePlatform?: string | null; /** DeviceRegistrationRequest clientFormFactor */ - clientFormFactor?: (Authentication.ClientFormFactor|null); + clientFormFactor?: Authentication.ClientFormFactor | null; /** DeviceRegistrationRequest username */ - username?: (string|null); + username?: string | null; } /** Represents a DeviceRegistrationRequest. */ class DeviceRegistrationRequest implements IDeviceRegistrationRequest { - /** * Constructs a new DeviceRegistrationRequest. * @param [properties] Properties to set @@ -9277,7 +9854,9 @@ export namespace Authentication { * @param [properties] Properties to set * @returns DeviceRegistrationRequest instance */ - public static create(properties?: Authentication.IDeviceRegistrationRequest): Authentication.DeviceRegistrationRequest; + public static create( + properties?: Authentication.IDeviceRegistrationRequest + ): Authentication.DeviceRegistrationRequest; /** * Encodes the specified DeviceRegistrationRequest message. Does not implicitly {@link Authentication.DeviceRegistrationRequest.verify|verify} messages. @@ -9285,7 +9864,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Authentication.IDeviceRegistrationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Authentication.IDeviceRegistrationRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified DeviceRegistrationRequest message, length delimited. Does not implicitly {@link Authentication.DeviceRegistrationRequest.verify|verify} messages. @@ -9293,7 +9875,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.IDeviceRegistrationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.IDeviceRegistrationRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a DeviceRegistrationRequest message from the specified reader or buffer. @@ -9303,7 +9888,10 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.DeviceRegistrationRequest; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Authentication.DeviceRegistrationRequest; /** * Decodes a DeviceRegistrationRequest message from the specified reader or buffer, length delimited. @@ -9312,14 +9900,14 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.DeviceRegistrationRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Authentication.DeviceRegistrationRequest; /** * Verifies a DeviceRegistrationRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a DeviceRegistrationRequest message from a plain object. Also converts values to their respective internal types. @@ -9334,7 +9922,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.DeviceRegistrationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.DeviceRegistrationRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this DeviceRegistrationRequest to JSON. @@ -9352,26 +9943,24 @@ export namespace Authentication { /** Properties of a DeviceVerificationRequest. */ interface IDeviceVerificationRequest { - /** DeviceVerificationRequest encryptedDeviceToken */ - encryptedDeviceToken?: (Uint8Array|null); + encryptedDeviceToken?: Uint8Array | null; /** DeviceVerificationRequest username */ - username?: (string|null); + username?: string | null; /** DeviceVerificationRequest verificationChannel */ - verificationChannel?: (string|null); + verificationChannel?: string | null; /** DeviceVerificationRequest messageSessionUid */ - messageSessionUid?: (Uint8Array|null); + messageSessionUid?: Uint8Array | null; /** DeviceVerificationRequest clientVersion */ - clientVersion?: (string|null); + clientVersion?: string | null; } /** Represents a DeviceVerificationRequest. */ class DeviceVerificationRequest implements IDeviceVerificationRequest { - /** * Constructs a new DeviceVerificationRequest. * @param [properties] Properties to set @@ -9398,7 +9987,9 @@ export namespace Authentication { * @param [properties] Properties to set * @returns DeviceVerificationRequest instance */ - public static create(properties?: Authentication.IDeviceVerificationRequest): Authentication.DeviceVerificationRequest; + public static create( + properties?: Authentication.IDeviceVerificationRequest + ): Authentication.DeviceVerificationRequest; /** * Encodes the specified DeviceVerificationRequest message. Does not implicitly {@link Authentication.DeviceVerificationRequest.verify|verify} messages. @@ -9406,7 +9997,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Authentication.IDeviceVerificationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Authentication.IDeviceVerificationRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified DeviceVerificationRequest message, length delimited. Does not implicitly {@link Authentication.DeviceVerificationRequest.verify|verify} messages. @@ -9414,7 +10008,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.IDeviceVerificationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.IDeviceVerificationRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a DeviceVerificationRequest message from the specified reader or buffer. @@ -9424,7 +10021,10 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.DeviceVerificationRequest; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Authentication.DeviceVerificationRequest; /** * Decodes a DeviceVerificationRequest message from the specified reader or buffer, length delimited. @@ -9433,14 +10033,14 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.DeviceVerificationRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Authentication.DeviceVerificationRequest; /** * Verifies a DeviceVerificationRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a DeviceVerificationRequest message from a plain object. Also converts values to their respective internal types. @@ -9455,7 +10055,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.DeviceVerificationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.DeviceVerificationRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this DeviceVerificationRequest to JSON. @@ -9473,26 +10076,24 @@ export namespace Authentication { /** Properties of a DeviceVerificationResponse. */ interface IDeviceVerificationResponse { - /** DeviceVerificationResponse encryptedDeviceToken */ - encryptedDeviceToken?: (Uint8Array|null); + encryptedDeviceToken?: Uint8Array | null; /** DeviceVerificationResponse username */ - username?: (string|null); + username?: string | null; /** DeviceVerificationResponse messageSessionUid */ - messageSessionUid?: (Uint8Array|null); + messageSessionUid?: Uint8Array | null; /** DeviceVerificationResponse clientVersion */ - clientVersion?: (string|null); + clientVersion?: string | null; /** DeviceVerificationResponse deviceStatus */ - deviceStatus?: (Authentication.DeviceStatus|null); + deviceStatus?: Authentication.DeviceStatus | null; } /** Represents a DeviceVerificationResponse. */ class DeviceVerificationResponse implements IDeviceVerificationResponse { - /** * Constructs a new DeviceVerificationResponse. * @param [properties] Properties to set @@ -9519,7 +10120,9 @@ export namespace Authentication { * @param [properties] Properties to set * @returns DeviceVerificationResponse instance */ - public static create(properties?: Authentication.IDeviceVerificationResponse): Authentication.DeviceVerificationResponse; + public static create( + properties?: Authentication.IDeviceVerificationResponse + ): Authentication.DeviceVerificationResponse; /** * Encodes the specified DeviceVerificationResponse message. Does not implicitly {@link Authentication.DeviceVerificationResponse.verify|verify} messages. @@ -9527,7 +10130,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Authentication.IDeviceVerificationResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Authentication.IDeviceVerificationResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified DeviceVerificationResponse message, length delimited. Does not implicitly {@link Authentication.DeviceVerificationResponse.verify|verify} messages. @@ -9535,7 +10141,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.IDeviceVerificationResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.IDeviceVerificationResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a DeviceVerificationResponse message from the specified reader or buffer. @@ -9545,7 +10154,10 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.DeviceVerificationResponse; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Authentication.DeviceVerificationResponse; /** * Decodes a DeviceVerificationResponse message from the specified reader or buffer, length delimited. @@ -9554,14 +10166,14 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.DeviceVerificationResponse; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Authentication.DeviceVerificationResponse; /** * Verifies a DeviceVerificationResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a DeviceVerificationResponse message from a plain object. Also converts values to their respective internal types. @@ -9576,7 +10188,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.DeviceVerificationResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.DeviceVerificationResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this DeviceVerificationResponse to JSON. @@ -9594,35 +10209,33 @@ export namespace Authentication { /** Properties of a DeviceApprovalRequest. */ interface IDeviceApprovalRequest { - /** DeviceApprovalRequest email */ - email?: (string|null); + email?: string | null; /** DeviceApprovalRequest twoFactorChannel */ - twoFactorChannel?: (string|null); + twoFactorChannel?: string | null; /** DeviceApprovalRequest clientVersion */ - clientVersion?: (string|null); + clientVersion?: string | null; /** DeviceApprovalRequest locale */ - locale?: (string|null); + locale?: string | null; /** DeviceApprovalRequest encryptedDeviceToken */ - encryptedDeviceToken?: (Uint8Array|null); + encryptedDeviceToken?: Uint8Array | null; /** DeviceApprovalRequest totpCode */ - totpCode?: (string|null); + totpCode?: string | null; /** DeviceApprovalRequest deviceIp */ - deviceIp?: (string|null); + deviceIp?: string | null; /** DeviceApprovalRequest deviceTokenExpireDays */ - deviceTokenExpireDays?: (string|null); + deviceTokenExpireDays?: string | null; } /** Represents a DeviceApprovalRequest. */ class DeviceApprovalRequest implements IDeviceApprovalRequest { - /** * Constructs a new DeviceApprovalRequest. * @param [properties] Properties to set @@ -9666,7 +10279,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Authentication.IDeviceApprovalRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Authentication.IDeviceApprovalRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified DeviceApprovalRequest message, length delimited. Does not implicitly {@link Authentication.DeviceApprovalRequest.verify|verify} messages. @@ -9674,7 +10290,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.IDeviceApprovalRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.IDeviceApprovalRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a DeviceApprovalRequest message from the specified reader or buffer. @@ -9684,7 +10303,10 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.DeviceApprovalRequest; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Authentication.DeviceApprovalRequest; /** * Decodes a DeviceApprovalRequest message from the specified reader or buffer, length delimited. @@ -9693,14 +10315,14 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.DeviceApprovalRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Authentication.DeviceApprovalRequest; /** * Verifies a DeviceApprovalRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a DeviceApprovalRequest message from a plain object. Also converts values to their respective internal types. @@ -9715,7 +10337,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.DeviceApprovalRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.DeviceApprovalRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this DeviceApprovalRequest to JSON. @@ -9733,14 +10358,12 @@ export namespace Authentication { /** Properties of a DeviceApprovalResponse. */ interface IDeviceApprovalResponse { - /** DeviceApprovalResponse encryptedTwoFactorToken */ - encryptedTwoFactorToken?: (Uint8Array|null); + encryptedTwoFactorToken?: Uint8Array | null; } /** Represents a DeviceApprovalResponse. */ class DeviceApprovalResponse implements IDeviceApprovalResponse { - /** * Constructs a new DeviceApprovalResponse. * @param [properties] Properties to set @@ -9755,7 +10378,9 @@ export namespace Authentication { * @param [properties] Properties to set * @returns DeviceApprovalResponse instance */ - public static create(properties?: Authentication.IDeviceApprovalResponse): Authentication.DeviceApprovalResponse; + public static create( + properties?: Authentication.IDeviceApprovalResponse + ): Authentication.DeviceApprovalResponse; /** * Encodes the specified DeviceApprovalResponse message. Does not implicitly {@link Authentication.DeviceApprovalResponse.verify|verify} messages. @@ -9763,7 +10388,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Authentication.IDeviceApprovalResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Authentication.IDeviceApprovalResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified DeviceApprovalResponse message, length delimited. Does not implicitly {@link Authentication.DeviceApprovalResponse.verify|verify} messages. @@ -9771,7 +10399,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.IDeviceApprovalResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.IDeviceApprovalResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a DeviceApprovalResponse message from the specified reader or buffer. @@ -9781,7 +10412,10 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.DeviceApprovalResponse; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Authentication.DeviceApprovalResponse; /** * Decodes a DeviceApprovalResponse message from the specified reader or buffer, length delimited. @@ -9790,14 +10424,14 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.DeviceApprovalResponse; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Authentication.DeviceApprovalResponse; /** * Verifies a DeviceApprovalResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a DeviceApprovalResponse message from a plain object. Also converts values to their respective internal types. @@ -9812,7 +10446,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.DeviceApprovalResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.DeviceApprovalResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this DeviceApprovalResponse to JSON. @@ -9830,23 +10467,21 @@ export namespace Authentication { /** Properties of an ApproveDeviceRequest. */ interface IApproveDeviceRequest { - /** ApproveDeviceRequest encryptedDeviceToken */ - encryptedDeviceToken?: (Uint8Array|null); + encryptedDeviceToken?: Uint8Array | null; /** ApproveDeviceRequest encryptedDeviceDataKey */ - encryptedDeviceDataKey?: (Uint8Array|null); + encryptedDeviceDataKey?: Uint8Array | null; /** ApproveDeviceRequest denyApproval */ - denyApproval?: (boolean|null); + denyApproval?: boolean | null; /** ApproveDeviceRequest linkDevice */ - linkDevice?: (boolean|null); + linkDevice?: boolean | null; } /** Represents an ApproveDeviceRequest. */ class ApproveDeviceRequest implements IApproveDeviceRequest { - /** * Constructs a new ApproveDeviceRequest. * @param [properties] Properties to set @@ -9878,7 +10513,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Authentication.IApproveDeviceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Authentication.IApproveDeviceRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified ApproveDeviceRequest message, length delimited. Does not implicitly {@link Authentication.ApproveDeviceRequest.verify|verify} messages. @@ -9886,7 +10524,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.IApproveDeviceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.IApproveDeviceRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes an ApproveDeviceRequest message from the specified reader or buffer. @@ -9896,7 +10537,10 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.ApproveDeviceRequest; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Authentication.ApproveDeviceRequest; /** * Decodes an ApproveDeviceRequest message from the specified reader or buffer, length delimited. @@ -9905,14 +10549,14 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.ApproveDeviceRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Authentication.ApproveDeviceRequest; /** * Verifies an ApproveDeviceRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an ApproveDeviceRequest message from a plain object. Also converts values to their respective internal types. @@ -9927,7 +10571,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.ApproveDeviceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.ApproveDeviceRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this ApproveDeviceRequest to JSON. @@ -9945,17 +10592,15 @@ export namespace Authentication { /** Properties of an EnterpriseUserAliasRequest. */ interface IEnterpriseUserAliasRequest { - /** EnterpriseUserAliasRequest enterpriseUserId */ - enterpriseUserId?: (number|Long|null); + enterpriseUserId?: number | Long | null; /** EnterpriseUserAliasRequest alias */ - alias?: (string|null); + alias?: string | null; } /** Represents an EnterpriseUserAliasRequest. */ class EnterpriseUserAliasRequest implements IEnterpriseUserAliasRequest { - /** * Constructs a new EnterpriseUserAliasRequest. * @param [properties] Properties to set @@ -9963,7 +10608,7 @@ export namespace Authentication { constructor(properties?: Authentication.IEnterpriseUserAliasRequest); /** EnterpriseUserAliasRequest enterpriseUserId. */ - public enterpriseUserId: (number|Long); + public enterpriseUserId: number | Long; /** EnterpriseUserAliasRequest alias. */ public alias: string; @@ -9973,7 +10618,9 @@ export namespace Authentication { * @param [properties] Properties to set * @returns EnterpriseUserAliasRequest instance */ - public static create(properties?: Authentication.IEnterpriseUserAliasRequest): Authentication.EnterpriseUserAliasRequest; + public static create( + properties?: Authentication.IEnterpriseUserAliasRequest + ): Authentication.EnterpriseUserAliasRequest; /** * Encodes the specified EnterpriseUserAliasRequest message. Does not implicitly {@link Authentication.EnterpriseUserAliasRequest.verify|verify} messages. @@ -9981,7 +10628,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Authentication.IEnterpriseUserAliasRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Authentication.IEnterpriseUserAliasRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified EnterpriseUserAliasRequest message, length delimited. Does not implicitly {@link Authentication.EnterpriseUserAliasRequest.verify|verify} messages. @@ -9989,7 +10639,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.IEnterpriseUserAliasRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.IEnterpriseUserAliasRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes an EnterpriseUserAliasRequest message from the specified reader or buffer. @@ -9999,7 +10652,10 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.EnterpriseUserAliasRequest; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Authentication.EnterpriseUserAliasRequest; /** * Decodes an EnterpriseUserAliasRequest message from the specified reader or buffer, length delimited. @@ -10008,14 +10664,14 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.EnterpriseUserAliasRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Authentication.EnterpriseUserAliasRequest; /** * Verifies an EnterpriseUserAliasRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an EnterpriseUserAliasRequest message from a plain object. Also converts values to their respective internal types. @@ -10030,7 +10686,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.EnterpriseUserAliasRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.EnterpriseUserAliasRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this EnterpriseUserAliasRequest to JSON. @@ -10048,20 +10707,18 @@ export namespace Authentication { /** Properties of an EnterpriseUserAddAliasRequest. */ interface IEnterpriseUserAddAliasRequest { - /** EnterpriseUserAddAliasRequest enterpriseUserId */ - enterpriseUserId?: (number|Long|null); + enterpriseUserId?: number | Long | null; /** EnterpriseUserAddAliasRequest alias */ - alias?: (string|null); + alias?: string | null; /** EnterpriseUserAddAliasRequest primary */ - primary?: (boolean|null); + primary?: boolean | null; } /** Represents an EnterpriseUserAddAliasRequest. */ class EnterpriseUserAddAliasRequest implements IEnterpriseUserAddAliasRequest { - /** * Constructs a new EnterpriseUserAddAliasRequest. * @param [properties] Properties to set @@ -10069,7 +10726,7 @@ export namespace Authentication { constructor(properties?: Authentication.IEnterpriseUserAddAliasRequest); /** EnterpriseUserAddAliasRequest enterpriseUserId. */ - public enterpriseUserId: (number|Long); + public enterpriseUserId: number | Long; /** EnterpriseUserAddAliasRequest alias. */ public alias: string; @@ -10082,7 +10739,9 @@ export namespace Authentication { * @param [properties] Properties to set * @returns EnterpriseUserAddAliasRequest instance */ - public static create(properties?: Authentication.IEnterpriseUserAddAliasRequest): Authentication.EnterpriseUserAddAliasRequest; + public static create( + properties?: Authentication.IEnterpriseUserAddAliasRequest + ): Authentication.EnterpriseUserAddAliasRequest; /** * Encodes the specified EnterpriseUserAddAliasRequest message. Does not implicitly {@link Authentication.EnterpriseUserAddAliasRequest.verify|verify} messages. @@ -10090,7 +10749,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Authentication.IEnterpriseUserAddAliasRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Authentication.IEnterpriseUserAddAliasRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified EnterpriseUserAddAliasRequest message, length delimited. Does not implicitly {@link Authentication.EnterpriseUserAddAliasRequest.verify|verify} messages. @@ -10098,7 +10760,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.IEnterpriseUserAddAliasRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.IEnterpriseUserAddAliasRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes an EnterpriseUserAddAliasRequest message from the specified reader or buffer. @@ -10108,7 +10773,10 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.EnterpriseUserAddAliasRequest; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Authentication.EnterpriseUserAddAliasRequest; /** * Decodes an EnterpriseUserAddAliasRequest message from the specified reader or buffer, length delimited. @@ -10117,14 +10785,16 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.EnterpriseUserAddAliasRequest; + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array + ): Authentication.EnterpriseUserAddAliasRequest; /** * Verifies an EnterpriseUserAddAliasRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an EnterpriseUserAddAliasRequest message from a plain object. Also converts values to their respective internal types. @@ -10139,7 +10809,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.EnterpriseUserAddAliasRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.EnterpriseUserAddAliasRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this EnterpriseUserAddAliasRequest to JSON. @@ -10157,14 +10830,12 @@ export namespace Authentication { /** Properties of an EnterpriseUserAddAliasRequestV2. */ interface IEnterpriseUserAddAliasRequestV2 { - /** EnterpriseUserAddAliasRequestV2 enterpriseUserAddAliasRequest */ - enterpriseUserAddAliasRequest?: (Authentication.IEnterpriseUserAddAliasRequest[]|null); + enterpriseUserAddAliasRequest?: Authentication.IEnterpriseUserAddAliasRequest[] | null; } /** Represents an EnterpriseUserAddAliasRequestV2. */ class EnterpriseUserAddAliasRequestV2 implements IEnterpriseUserAddAliasRequestV2 { - /** * Constructs a new EnterpriseUserAddAliasRequestV2. * @param [properties] Properties to set @@ -10179,7 +10850,9 @@ export namespace Authentication { * @param [properties] Properties to set * @returns EnterpriseUserAddAliasRequestV2 instance */ - public static create(properties?: Authentication.IEnterpriseUserAddAliasRequestV2): Authentication.EnterpriseUserAddAliasRequestV2; + public static create( + properties?: Authentication.IEnterpriseUserAddAliasRequestV2 + ): Authentication.EnterpriseUserAddAliasRequestV2; /** * Encodes the specified EnterpriseUserAddAliasRequestV2 message. Does not implicitly {@link Authentication.EnterpriseUserAddAliasRequestV2.verify|verify} messages. @@ -10187,7 +10860,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Authentication.IEnterpriseUserAddAliasRequestV2, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Authentication.IEnterpriseUserAddAliasRequestV2, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified EnterpriseUserAddAliasRequestV2 message, length delimited. Does not implicitly {@link Authentication.EnterpriseUserAddAliasRequestV2.verify|verify} messages. @@ -10195,7 +10871,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.IEnterpriseUserAddAliasRequestV2, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.IEnterpriseUserAddAliasRequestV2, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes an EnterpriseUserAddAliasRequestV2 message from the specified reader or buffer. @@ -10205,7 +10884,10 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.EnterpriseUserAddAliasRequestV2; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Authentication.EnterpriseUserAddAliasRequestV2; /** * Decodes an EnterpriseUserAddAliasRequestV2 message from the specified reader or buffer, length delimited. @@ -10214,14 +10896,16 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.EnterpriseUserAddAliasRequestV2; + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array + ): Authentication.EnterpriseUserAddAliasRequestV2; /** * Verifies an EnterpriseUserAddAliasRequestV2 message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an EnterpriseUserAddAliasRequestV2 message from a plain object. Also converts values to their respective internal types. @@ -10236,7 +10920,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.EnterpriseUserAddAliasRequestV2, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.EnterpriseUserAddAliasRequestV2, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this EnterpriseUserAddAliasRequestV2 to JSON. @@ -10254,17 +10941,15 @@ export namespace Authentication { /** Properties of an EnterpriseUserAddAliasStatus. */ interface IEnterpriseUserAddAliasStatus { - /** EnterpriseUserAddAliasStatus enterpriseUserId */ - enterpriseUserId?: (number|Long|null); + enterpriseUserId?: number | Long | null; /** EnterpriseUserAddAliasStatus status */ - status?: (string|null); + status?: string | null; } /** Represents an EnterpriseUserAddAliasStatus. */ class EnterpriseUserAddAliasStatus implements IEnterpriseUserAddAliasStatus { - /** * Constructs a new EnterpriseUserAddAliasStatus. * @param [properties] Properties to set @@ -10272,7 +10957,7 @@ export namespace Authentication { constructor(properties?: Authentication.IEnterpriseUserAddAliasStatus); /** EnterpriseUserAddAliasStatus enterpriseUserId. */ - public enterpriseUserId: (number|Long); + public enterpriseUserId: number | Long; /** EnterpriseUserAddAliasStatus status. */ public status: string; @@ -10282,7 +10967,9 @@ export namespace Authentication { * @param [properties] Properties to set * @returns EnterpriseUserAddAliasStatus instance */ - public static create(properties?: Authentication.IEnterpriseUserAddAliasStatus): Authentication.EnterpriseUserAddAliasStatus; + public static create( + properties?: Authentication.IEnterpriseUserAddAliasStatus + ): Authentication.EnterpriseUserAddAliasStatus; /** * Encodes the specified EnterpriseUserAddAliasStatus message. Does not implicitly {@link Authentication.EnterpriseUserAddAliasStatus.verify|verify} messages. @@ -10290,7 +10977,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Authentication.IEnterpriseUserAddAliasStatus, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Authentication.IEnterpriseUserAddAliasStatus, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified EnterpriseUserAddAliasStatus message, length delimited. Does not implicitly {@link Authentication.EnterpriseUserAddAliasStatus.verify|verify} messages. @@ -10298,7 +10988,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.IEnterpriseUserAddAliasStatus, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.IEnterpriseUserAddAliasStatus, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes an EnterpriseUserAddAliasStatus message from the specified reader or buffer. @@ -10308,7 +11001,10 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.EnterpriseUserAddAliasStatus; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Authentication.EnterpriseUserAddAliasStatus; /** * Decodes an EnterpriseUserAddAliasStatus message from the specified reader or buffer, length delimited. @@ -10317,14 +11013,16 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.EnterpriseUserAddAliasStatus; + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array + ): Authentication.EnterpriseUserAddAliasStatus; /** * Verifies an EnterpriseUserAddAliasStatus message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an EnterpriseUserAddAliasStatus message from a plain object. Also converts values to their respective internal types. @@ -10339,7 +11037,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.EnterpriseUserAddAliasStatus, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.EnterpriseUserAddAliasStatus, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this EnterpriseUserAddAliasStatus to JSON. @@ -10357,14 +11058,12 @@ export namespace Authentication { /** Properties of an EnterpriseUserAddAliasResponse. */ interface IEnterpriseUserAddAliasResponse { - /** EnterpriseUserAddAliasResponse status */ - status?: (Authentication.IEnterpriseUserAddAliasStatus[]|null); + status?: Authentication.IEnterpriseUserAddAliasStatus[] | null; } /** Represents an EnterpriseUserAddAliasResponse. */ class EnterpriseUserAddAliasResponse implements IEnterpriseUserAddAliasResponse { - /** * Constructs a new EnterpriseUserAddAliasResponse. * @param [properties] Properties to set @@ -10379,7 +11078,9 @@ export namespace Authentication { * @param [properties] Properties to set * @returns EnterpriseUserAddAliasResponse instance */ - public static create(properties?: Authentication.IEnterpriseUserAddAliasResponse): Authentication.EnterpriseUserAddAliasResponse; + public static create( + properties?: Authentication.IEnterpriseUserAddAliasResponse + ): Authentication.EnterpriseUserAddAliasResponse; /** * Encodes the specified EnterpriseUserAddAliasResponse message. Does not implicitly {@link Authentication.EnterpriseUserAddAliasResponse.verify|verify} messages. @@ -10387,7 +11088,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Authentication.IEnterpriseUserAddAliasResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Authentication.IEnterpriseUserAddAliasResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified EnterpriseUserAddAliasResponse message, length delimited. Does not implicitly {@link Authentication.EnterpriseUserAddAliasResponse.verify|verify} messages. @@ -10395,7 +11099,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.IEnterpriseUserAddAliasResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.IEnterpriseUserAddAliasResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes an EnterpriseUserAddAliasResponse message from the specified reader or buffer. @@ -10405,7 +11112,10 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.EnterpriseUserAddAliasResponse; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Authentication.EnterpriseUserAddAliasResponse; /** * Decodes an EnterpriseUserAddAliasResponse message from the specified reader or buffer, length delimited. @@ -10414,14 +11124,16 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.EnterpriseUserAddAliasResponse; + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array + ): Authentication.EnterpriseUserAddAliasResponse; /** * Verifies an EnterpriseUserAddAliasResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an EnterpriseUserAddAliasResponse message from a plain object. Also converts values to their respective internal types. @@ -10436,7 +11148,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.EnterpriseUserAddAliasResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.EnterpriseUserAddAliasResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this EnterpriseUserAddAliasResponse to JSON. @@ -10454,14 +11169,12 @@ export namespace Authentication { /** Properties of a Device. */ interface IDevice { - /** Device encryptedDeviceToken */ - encryptedDeviceToken?: (Uint8Array|null); + encryptedDeviceToken?: Uint8Array | null; } /** Represents a Device. */ class Device implements IDevice { - /** * Constructs a new Device. * @param [properties] Properties to set @@ -10502,7 +11215,7 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.Device; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Authentication.Device; /** * Decodes a Device message from the specified reader or buffer, length delimited. @@ -10511,14 +11224,14 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.Device; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Authentication.Device; /** * Verifies a Device message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a Device message from a plain object. Also converts values to their respective internal types. @@ -10533,7 +11246,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.Device, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.Device, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this Device to JSON. @@ -10551,17 +11267,15 @@ export namespace Authentication { /** Properties of a RegisterDeviceDataKeyRequest. */ interface IRegisterDeviceDataKeyRequest { - /** RegisterDeviceDataKeyRequest encryptedDeviceToken */ - encryptedDeviceToken?: (Uint8Array|null); + encryptedDeviceToken?: Uint8Array | null; /** RegisterDeviceDataKeyRequest encryptedDeviceDataKey */ - encryptedDeviceDataKey?: (Uint8Array|null); + encryptedDeviceDataKey?: Uint8Array | null; } /** Represents a RegisterDeviceDataKeyRequest. */ class RegisterDeviceDataKeyRequest implements IRegisterDeviceDataKeyRequest { - /** * Constructs a new RegisterDeviceDataKeyRequest. * @param [properties] Properties to set @@ -10579,7 +11293,9 @@ export namespace Authentication { * @param [properties] Properties to set * @returns RegisterDeviceDataKeyRequest instance */ - public static create(properties?: Authentication.IRegisterDeviceDataKeyRequest): Authentication.RegisterDeviceDataKeyRequest; + public static create( + properties?: Authentication.IRegisterDeviceDataKeyRequest + ): Authentication.RegisterDeviceDataKeyRequest; /** * Encodes the specified RegisterDeviceDataKeyRequest message. Does not implicitly {@link Authentication.RegisterDeviceDataKeyRequest.verify|verify} messages. @@ -10587,7 +11303,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Authentication.IRegisterDeviceDataKeyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Authentication.IRegisterDeviceDataKeyRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified RegisterDeviceDataKeyRequest message, length delimited. Does not implicitly {@link Authentication.RegisterDeviceDataKeyRequest.verify|verify} messages. @@ -10595,7 +11314,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.IRegisterDeviceDataKeyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.IRegisterDeviceDataKeyRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a RegisterDeviceDataKeyRequest message from the specified reader or buffer. @@ -10605,7 +11327,10 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.RegisterDeviceDataKeyRequest; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Authentication.RegisterDeviceDataKeyRequest; /** * Decodes a RegisterDeviceDataKeyRequest message from the specified reader or buffer, length delimited. @@ -10614,14 +11339,16 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.RegisterDeviceDataKeyRequest; + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array + ): Authentication.RegisterDeviceDataKeyRequest; /** * Verifies a RegisterDeviceDataKeyRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a RegisterDeviceDataKeyRequest message from a plain object. Also converts values to their respective internal types. @@ -10636,7 +11363,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.RegisterDeviceDataKeyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.RegisterDeviceDataKeyRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this RegisterDeviceDataKeyRequest to JSON. @@ -10654,20 +11384,18 @@ export namespace Authentication { /** Properties of a ValidateCreateUserVerificationCodeRequest. */ interface IValidateCreateUserVerificationCodeRequest { - /** ValidateCreateUserVerificationCodeRequest username */ - username?: (string|null); + username?: string | null; /** ValidateCreateUserVerificationCodeRequest clientVersion */ - clientVersion?: (string|null); + clientVersion?: string | null; /** ValidateCreateUserVerificationCodeRequest verificationCode */ - verificationCode?: (string|null); + verificationCode?: string | null; } /** Represents a ValidateCreateUserVerificationCodeRequest. */ class ValidateCreateUserVerificationCodeRequest implements IValidateCreateUserVerificationCodeRequest { - /** * Constructs a new ValidateCreateUserVerificationCodeRequest. * @param [properties] Properties to set @@ -10688,7 +11416,9 @@ export namespace Authentication { * @param [properties] Properties to set * @returns ValidateCreateUserVerificationCodeRequest instance */ - public static create(properties?: Authentication.IValidateCreateUserVerificationCodeRequest): Authentication.ValidateCreateUserVerificationCodeRequest; + public static create( + properties?: Authentication.IValidateCreateUserVerificationCodeRequest + ): Authentication.ValidateCreateUserVerificationCodeRequest; /** * Encodes the specified ValidateCreateUserVerificationCodeRequest message. Does not implicitly {@link Authentication.ValidateCreateUserVerificationCodeRequest.verify|verify} messages. @@ -10696,7 +11426,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Authentication.IValidateCreateUserVerificationCodeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Authentication.IValidateCreateUserVerificationCodeRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified ValidateCreateUserVerificationCodeRequest message, length delimited. Does not implicitly {@link Authentication.ValidateCreateUserVerificationCodeRequest.verify|verify} messages. @@ -10704,7 +11437,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.IValidateCreateUserVerificationCodeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.IValidateCreateUserVerificationCodeRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a ValidateCreateUserVerificationCodeRequest message from the specified reader or buffer. @@ -10714,7 +11450,10 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.ValidateCreateUserVerificationCodeRequest; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Authentication.ValidateCreateUserVerificationCodeRequest; /** * Decodes a ValidateCreateUserVerificationCodeRequest message from the specified reader or buffer, length delimited. @@ -10723,21 +11462,25 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.ValidateCreateUserVerificationCodeRequest; + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array + ): Authentication.ValidateCreateUserVerificationCodeRequest; /** * Verifies a ValidateCreateUserVerificationCodeRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a ValidateCreateUserVerificationCodeRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns ValidateCreateUserVerificationCodeRequest */ - public static fromObject(object: { [k: string]: any }): Authentication.ValidateCreateUserVerificationCodeRequest; + public static fromObject(object: { + [k: string]: any; + }): Authentication.ValidateCreateUserVerificationCodeRequest; /** * Creates a plain object from a ValidateCreateUserVerificationCodeRequest message. Also converts values to other types if specified. @@ -10745,7 +11488,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.ValidateCreateUserVerificationCodeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.ValidateCreateUserVerificationCodeRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this ValidateCreateUserVerificationCodeRequest to JSON. @@ -10763,26 +11509,24 @@ export namespace Authentication { /** Properties of a ValidateDeviceVerificationCodeRequest. */ interface IValidateDeviceVerificationCodeRequest { - /** ValidateDeviceVerificationCodeRequest username */ - username?: (string|null); + username?: string | null; /** ValidateDeviceVerificationCodeRequest clientVersion */ - clientVersion?: (string|null); + clientVersion?: string | null; /** ValidateDeviceVerificationCodeRequest verificationCode */ - verificationCode?: (string|null); + verificationCode?: string | null; /** ValidateDeviceVerificationCodeRequest messageSessionUid */ - messageSessionUid?: (Uint8Array|null); + messageSessionUid?: Uint8Array | null; /** ValidateDeviceVerificationCodeRequest encryptedDeviceToken */ - encryptedDeviceToken?: (Uint8Array|null); + encryptedDeviceToken?: Uint8Array | null; } /** Represents a ValidateDeviceVerificationCodeRequest. */ class ValidateDeviceVerificationCodeRequest implements IValidateDeviceVerificationCodeRequest { - /** * Constructs a new ValidateDeviceVerificationCodeRequest. * @param [properties] Properties to set @@ -10809,7 +11553,9 @@ export namespace Authentication { * @param [properties] Properties to set * @returns ValidateDeviceVerificationCodeRequest instance */ - public static create(properties?: Authentication.IValidateDeviceVerificationCodeRequest): Authentication.ValidateDeviceVerificationCodeRequest; + public static create( + properties?: Authentication.IValidateDeviceVerificationCodeRequest + ): Authentication.ValidateDeviceVerificationCodeRequest; /** * Encodes the specified ValidateDeviceVerificationCodeRequest message. Does not implicitly {@link Authentication.ValidateDeviceVerificationCodeRequest.verify|verify} messages. @@ -10817,7 +11563,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Authentication.IValidateDeviceVerificationCodeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Authentication.IValidateDeviceVerificationCodeRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified ValidateDeviceVerificationCodeRequest message, length delimited. Does not implicitly {@link Authentication.ValidateDeviceVerificationCodeRequest.verify|verify} messages. @@ -10825,7 +11574,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.IValidateDeviceVerificationCodeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.IValidateDeviceVerificationCodeRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a ValidateDeviceVerificationCodeRequest message from the specified reader or buffer. @@ -10835,7 +11587,10 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.ValidateDeviceVerificationCodeRequest; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Authentication.ValidateDeviceVerificationCodeRequest; /** * Decodes a ValidateDeviceVerificationCodeRequest message from the specified reader or buffer, length delimited. @@ -10844,14 +11599,16 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.ValidateDeviceVerificationCodeRequest; + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array + ): Authentication.ValidateDeviceVerificationCodeRequest; /** * Verifies a ValidateDeviceVerificationCodeRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a ValidateDeviceVerificationCodeRequest message from a plain object. Also converts values to their respective internal types. @@ -10866,7 +11623,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.ValidateDeviceVerificationCodeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.ValidateDeviceVerificationCodeRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this ValidateDeviceVerificationCodeRequest to JSON. @@ -10884,20 +11644,18 @@ export namespace Authentication { /** Properties of a SendSessionMessageRequest. */ interface ISendSessionMessageRequest { - /** SendSessionMessageRequest messageSessionUid */ - messageSessionUid?: (Uint8Array|null); + messageSessionUid?: Uint8Array | null; /** SendSessionMessageRequest command */ - command?: (string|null); + command?: string | null; /** SendSessionMessageRequest username */ - username?: (string|null); + username?: string | null; } /** Represents a SendSessionMessageRequest. */ class SendSessionMessageRequest implements ISendSessionMessageRequest { - /** * Constructs a new SendSessionMessageRequest. * @param [properties] Properties to set @@ -10918,7 +11676,9 @@ export namespace Authentication { * @param [properties] Properties to set * @returns SendSessionMessageRequest instance */ - public static create(properties?: Authentication.ISendSessionMessageRequest): Authentication.SendSessionMessageRequest; + public static create( + properties?: Authentication.ISendSessionMessageRequest + ): Authentication.SendSessionMessageRequest; /** * Encodes the specified SendSessionMessageRequest message. Does not implicitly {@link Authentication.SendSessionMessageRequest.verify|verify} messages. @@ -10926,7 +11686,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Authentication.ISendSessionMessageRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Authentication.ISendSessionMessageRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified SendSessionMessageRequest message, length delimited. Does not implicitly {@link Authentication.SendSessionMessageRequest.verify|verify} messages. @@ -10934,7 +11697,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.ISendSessionMessageRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.ISendSessionMessageRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a SendSessionMessageRequest message from the specified reader or buffer. @@ -10944,7 +11710,10 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.SendSessionMessageRequest; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Authentication.SendSessionMessageRequest; /** * Decodes a SendSessionMessageRequest message from the specified reader or buffer, length delimited. @@ -10953,14 +11722,14 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.SendSessionMessageRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Authentication.SendSessionMessageRequest; /** * Verifies a SendSessionMessageRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a SendSessionMessageRequest message from a plain object. Also converts values to their respective internal types. @@ -10975,7 +11744,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.SendSessionMessageRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.SendSessionMessageRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this SendSessionMessageRequest to JSON. @@ -10993,20 +11765,18 @@ export namespace Authentication { /** Properties of a GlobalUserAccount. */ interface IGlobalUserAccount { - /** GlobalUserAccount username */ - username?: (string|null); + username?: string | null; /** GlobalUserAccount accountUid */ - accountUid?: (Uint8Array|null); + accountUid?: Uint8Array | null; /** GlobalUserAccount regionName */ - regionName?: (string|null); + regionName?: string | null; } /** Represents a GlobalUserAccount. */ class GlobalUserAccount implements IGlobalUserAccount { - /** * Constructs a new GlobalUserAccount. * @param [properties] Properties to set @@ -11043,7 +11813,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.IGlobalUserAccount, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.IGlobalUserAccount, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a GlobalUserAccount message from the specified reader or buffer. @@ -11053,7 +11826,7 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.GlobalUserAccount; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Authentication.GlobalUserAccount; /** * Decodes a GlobalUserAccount message from the specified reader or buffer, length delimited. @@ -11062,14 +11835,14 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.GlobalUserAccount; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Authentication.GlobalUserAccount; /** * Verifies a GlobalUserAccount message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a GlobalUserAccount message from a plain object. Also converts values to their respective internal types. @@ -11084,7 +11857,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.GlobalUserAccount, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.GlobalUserAccount, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this GlobalUserAccount to JSON. @@ -11102,17 +11878,15 @@ export namespace Authentication { /** Properties of an AccountUsername. */ interface IAccountUsername { - /** AccountUsername username */ - username?: (string|null); + username?: string | null; /** AccountUsername dateActive */ - dateActive?: (string|null); + dateActive?: string | null; } /** Represents an AccountUsername. */ class AccountUsername implements IAccountUsername { - /** * Constructs a new AccountUsername. * @param [properties] Properties to set @@ -11146,7 +11920,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.IAccountUsername, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.IAccountUsername, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes an AccountUsername message from the specified reader or buffer. @@ -11156,7 +11933,7 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.AccountUsername; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Authentication.AccountUsername; /** * Decodes an AccountUsername message from the specified reader or buffer, length delimited. @@ -11165,14 +11942,14 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.AccountUsername; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Authentication.AccountUsername; /** * Verifies an AccountUsername message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an AccountUsername message from a plain object. Also converts values to their respective internal types. @@ -11187,7 +11964,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.AccountUsername, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.AccountUsername, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this AccountUsername to JSON. @@ -11205,20 +11985,18 @@ export namespace Authentication { /** Properties of a SsoServiceProviderRequest. */ interface ISsoServiceProviderRequest { - /** SsoServiceProviderRequest name */ - name?: (string|null); + name?: string | null; /** SsoServiceProviderRequest clientVersion */ - clientVersion?: (string|null); + clientVersion?: string | null; /** SsoServiceProviderRequest locale */ - locale?: (string|null); + locale?: string | null; } /** This is the input to the get_sso_service_provider command. */ class SsoServiceProviderRequest implements ISsoServiceProviderRequest { - /** * Constructs a new SsoServiceProviderRequest. * @param [properties] Properties to set @@ -11239,7 +12017,9 @@ export namespace Authentication { * @param [properties] Properties to set * @returns SsoServiceProviderRequest instance */ - public static create(properties?: Authentication.ISsoServiceProviderRequest): Authentication.SsoServiceProviderRequest; + public static create( + properties?: Authentication.ISsoServiceProviderRequest + ): Authentication.SsoServiceProviderRequest; /** * Encodes the specified SsoServiceProviderRequest message. Does not implicitly {@link Authentication.SsoServiceProviderRequest.verify|verify} messages. @@ -11247,7 +12027,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Authentication.ISsoServiceProviderRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Authentication.ISsoServiceProviderRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified SsoServiceProviderRequest message, length delimited. Does not implicitly {@link Authentication.SsoServiceProviderRequest.verify|verify} messages. @@ -11255,7 +12038,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.ISsoServiceProviderRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.ISsoServiceProviderRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a SsoServiceProviderRequest message from the specified reader or buffer. @@ -11265,7 +12051,10 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.SsoServiceProviderRequest; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Authentication.SsoServiceProviderRequest; /** * Decodes a SsoServiceProviderRequest message from the specified reader or buffer, length delimited. @@ -11274,14 +12063,14 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.SsoServiceProviderRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Authentication.SsoServiceProviderRequest; /** * Verifies a SsoServiceProviderRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a SsoServiceProviderRequest message from a plain object. Also converts values to their respective internal types. @@ -11296,7 +12085,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.SsoServiceProviderRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.SsoServiceProviderRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this SsoServiceProviderRequest to JSON. @@ -11314,23 +12106,21 @@ export namespace Authentication { /** Properties of a SsoServiceProviderResponse. */ interface ISsoServiceProviderResponse { - /** SsoServiceProviderResponse name */ - name?: (string|null); + name?: string | null; /** SsoServiceProviderResponse spUrl */ - spUrl?: (string|null); + spUrl?: string | null; /** SsoServiceProviderResponse isCloud */ - isCloud?: (boolean|null); + isCloud?: boolean | null; /** SsoServiceProviderResponse clientVersion */ - clientVersion?: (string|null); + clientVersion?: string | null; } /** This is the response from the get_sso_service_provider command. */ class SsoServiceProviderResponse implements ISsoServiceProviderResponse { - /** * Constructs a new SsoServiceProviderResponse. * @param [properties] Properties to set @@ -11354,7 +12144,9 @@ export namespace Authentication { * @param [properties] Properties to set * @returns SsoServiceProviderResponse instance */ - public static create(properties?: Authentication.ISsoServiceProviderResponse): Authentication.SsoServiceProviderResponse; + public static create( + properties?: Authentication.ISsoServiceProviderResponse + ): Authentication.SsoServiceProviderResponse; /** * Encodes the specified SsoServiceProviderResponse message. Does not implicitly {@link Authentication.SsoServiceProviderResponse.verify|verify} messages. @@ -11362,7 +12154,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Authentication.ISsoServiceProviderResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Authentication.ISsoServiceProviderResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified SsoServiceProviderResponse message, length delimited. Does not implicitly {@link Authentication.SsoServiceProviderResponse.verify|verify} messages. @@ -11370,7 +12165,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.ISsoServiceProviderResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.ISsoServiceProviderResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a SsoServiceProviderResponse message from the specified reader or buffer. @@ -11380,7 +12178,10 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.SsoServiceProviderResponse; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Authentication.SsoServiceProviderResponse; /** * Decodes a SsoServiceProviderResponse message from the specified reader or buffer, length delimited. @@ -11389,14 +12190,14 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.SsoServiceProviderResponse; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Authentication.SsoServiceProviderResponse; /** * Verifies a SsoServiceProviderResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a SsoServiceProviderResponse message from a plain object. Also converts values to their respective internal types. @@ -11411,7 +12212,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.SsoServiceProviderResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.SsoServiceProviderResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this SsoServiceProviderResponse to JSON. @@ -11429,17 +12233,15 @@ export namespace Authentication { /** Properties of a UserSettingRequest. */ interface IUserSettingRequest { - /** UserSettingRequest setting */ - setting?: (string|null); + setting?: string | null; /** UserSettingRequest value */ - value?: (string|null); + value?: string | null; } /** Represents a UserSettingRequest. */ class UserSettingRequest implements IUserSettingRequest { - /** * Constructs a new UserSettingRequest. * @param [properties] Properties to set @@ -11473,7 +12275,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.IUserSettingRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.IUserSettingRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a UserSettingRequest message from the specified reader or buffer. @@ -11483,7 +12288,7 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.UserSettingRequest; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Authentication.UserSettingRequest; /** * Decodes a UserSettingRequest message from the specified reader or buffer, length delimited. @@ -11492,14 +12297,14 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.UserSettingRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Authentication.UserSettingRequest; /** * Verifies a UserSettingRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a UserSettingRequest message from a plain object. Also converts values to their respective internal types. @@ -11514,7 +12319,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.UserSettingRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.UserSettingRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this UserSettingRequest to JSON. @@ -11534,7 +12342,7 @@ export namespace Authentication { enum AlternateAuthenticationType { ALTERNATE_MASTER_PASSWORD = 0, BIOMETRIC = 1, - ACCOUNT_RECOVER = 2 + ACCOUNT_RECOVER = 2, } /** ThrottleType enum. */ @@ -11546,28 +12354,26 @@ export namespace Authentication { QA_RETRY_THROTTLE = 4, ACCOUNT_RECOVER_THROTTLE = 5, VALIDATE_DEVICE_VERIFICATION_CODE_THROTTLE = 6, - VALIDATE_CREATE_USER_VERIFICATION_CODE_THROTTLE = 7 + VALIDATE_CREATE_USER_VERIFICATION_CODE_THROTTLE = 7, } /** Properties of a ThrottleState. */ interface IThrottleState { - /** ThrottleState type */ - type?: (Authentication.ThrottleType|null); + type?: Authentication.ThrottleType | null; /** ThrottleState key */ - key?: (string|null); + key?: string | null; /** ThrottleState value */ - value?: (string|null); + value?: string | null; /** ThrottleState state */ - state?: (boolean|null); + state?: boolean | null; } /** Represents a ThrottleState. */ class ThrottleState implements IThrottleState { - /** * Constructs a new ThrottleState. * @param [properties] Properties to set @@ -11607,7 +12413,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.IThrottleState, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.IThrottleState, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a ThrottleState message from the specified reader or buffer. @@ -11617,7 +12426,7 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.ThrottleState; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Authentication.ThrottleState; /** * Decodes a ThrottleState message from the specified reader or buffer, length delimited. @@ -11626,14 +12435,14 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.ThrottleState; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Authentication.ThrottleState; /** * Verifies a ThrottleState message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a ThrottleState message from a plain object. Also converts values to their respective internal types. @@ -11648,7 +12457,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.ThrottleState, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.ThrottleState, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this ThrottleState to JSON. @@ -11666,35 +12478,33 @@ export namespace Authentication { /** Properties of a ThrottleState2. */ interface IThrottleState2 { - /** ThrottleState2 key */ - key?: (string|null); + key?: string | null; /** ThrottleState2 keyDescription */ - keyDescription?: (string|null); + keyDescription?: string | null; /** ThrottleState2 value */ - value?: (string|null); + value?: string | null; /** ThrottleState2 valueDescription */ - valueDescription?: (string|null); + valueDescription?: string | null; /** ThrottleState2 identifier */ - identifier?: (string|null); + identifier?: string | null; /** ThrottleState2 locked */ - locked?: (boolean|null); + locked?: boolean | null; /** ThrottleState2 includedInAllClear */ - includedInAllClear?: (boolean|null); + includedInAllClear?: boolean | null; /** ThrottleState2 expireSeconds */ - expireSeconds?: (number|null); + expireSeconds?: number | null; } /** Represents a ThrottleState2. */ class ThrottleState2 implements IThrottleState2 { - /** * Constructs a new ThrottleState2. * @param [properties] Properties to set @@ -11746,7 +12556,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.IThrottleState2, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.IThrottleState2, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a ThrottleState2 message from the specified reader or buffer. @@ -11756,7 +12569,7 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.ThrottleState2; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Authentication.ThrottleState2; /** * Decodes a ThrottleState2 message from the specified reader or buffer, length delimited. @@ -11765,14 +12578,14 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.ThrottleState2; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Authentication.ThrottleState2; /** * Verifies a ThrottleState2 message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a ThrottleState2 message from a plain object. Also converts values to their respective internal types. @@ -11787,7 +12600,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.ThrottleState2, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.ThrottleState2, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this ThrottleState2 to JSON. @@ -11805,26 +12621,24 @@ export namespace Authentication { /** Properties of a DeviceInformation. */ interface IDeviceInformation { - /** DeviceInformation deviceId */ - deviceId?: (number|Long|null); + deviceId?: number | Long | null; /** DeviceInformation deviceName */ - deviceName?: (string|null); + deviceName?: string | null; /** DeviceInformation clientVersion */ - clientVersion?: (string|null); + clientVersion?: string | null; /** DeviceInformation lastLogin */ - lastLogin?: (number|Long|null); + lastLogin?: number | Long | null; /** DeviceInformation deviceStatus */ - deviceStatus?: (Authentication.DeviceStatus|null); + deviceStatus?: Authentication.DeviceStatus | null; } /** Represents a DeviceInformation. */ class DeviceInformation implements IDeviceInformation { - /** * Constructs a new DeviceInformation. * @param [properties] Properties to set @@ -11832,7 +12646,7 @@ export namespace Authentication { constructor(properties?: Authentication.IDeviceInformation); /** DeviceInformation deviceId. */ - public deviceId: (number|Long); + public deviceId: number | Long; /** DeviceInformation deviceName. */ public deviceName: string; @@ -11841,7 +12655,7 @@ export namespace Authentication { public clientVersion: string; /** DeviceInformation lastLogin. */ - public lastLogin: (number|Long); + public lastLogin: number | Long; /** DeviceInformation deviceStatus. */ public deviceStatus: Authentication.DeviceStatus; @@ -11867,7 +12681,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.IDeviceInformation, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.IDeviceInformation, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a DeviceInformation message from the specified reader or buffer. @@ -11877,7 +12694,7 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.DeviceInformation; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Authentication.DeviceInformation; /** * Decodes a DeviceInformation message from the specified reader or buffer, length delimited. @@ -11886,14 +12703,14 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.DeviceInformation; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Authentication.DeviceInformation; /** * Verifies a DeviceInformation message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a DeviceInformation message from a plain object. Also converts values to their respective internal types. @@ -11908,7 +12725,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.DeviceInformation, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.DeviceInformation, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this DeviceInformation to JSON. @@ -11926,17 +12746,15 @@ export namespace Authentication { /** Properties of a UserSetting. */ interface IUserSetting { - /** UserSetting name */ - name?: (string|null); + name?: string | null; /** UserSetting value */ - value?: (boolean|null); + value?: boolean | null; } /** Represents a UserSetting. */ class UserSetting implements IUserSetting { - /** * Constructs a new UserSetting. * @param [properties] Properties to set @@ -11970,7 +12788,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.IUserSetting, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.IUserSetting, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a UserSetting message from the specified reader or buffer. @@ -11980,7 +12801,7 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.UserSetting; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Authentication.UserSetting; /** * Decodes a UserSetting message from the specified reader or buffer, length delimited. @@ -11989,14 +12810,14 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.UserSetting; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Authentication.UserSetting; /** * Verifies a UserSetting message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a UserSetting message from a plain object. Also converts values to their respective internal types. @@ -12011,7 +12832,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.UserSetting, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.UserSetting, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this UserSetting to JSON. @@ -12029,14 +12853,12 @@ export namespace Authentication { /** Properties of a UserDataKeyRequest. */ interface IUserDataKeyRequest { - /** UserDataKeyRequest enterpriseUserId */ - enterpriseUserId?: ((number|Long)[]|null); + enterpriseUserId?: (number | Long)[] | null; } /** Represents a UserDataKeyRequest. */ class UserDataKeyRequest implements IUserDataKeyRequest { - /** * Constructs a new UserDataKeyRequest. * @param [properties] Properties to set @@ -12044,7 +12866,7 @@ export namespace Authentication { constructor(properties?: Authentication.IUserDataKeyRequest); /** UserDataKeyRequest enterpriseUserId. */ - public enterpriseUserId: (number|Long)[]; + public enterpriseUserId: (number | Long)[]; /** * Creates a new UserDataKeyRequest instance using the specified properties. @@ -12067,7 +12889,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.IUserDataKeyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.IUserDataKeyRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a UserDataKeyRequest message from the specified reader or buffer. @@ -12077,7 +12902,7 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.UserDataKeyRequest; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Authentication.UserDataKeyRequest; /** * Decodes a UserDataKeyRequest message from the specified reader or buffer, length delimited. @@ -12086,14 +12911,14 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.UserDataKeyRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Authentication.UserDataKeyRequest; /** * Verifies a UserDataKeyRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a UserDataKeyRequest message from a plain object. Also converts values to their respective internal types. @@ -12108,7 +12933,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.UserDataKeyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.UserDataKeyRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this UserDataKeyRequest to JSON. @@ -12126,14 +12954,12 @@ export namespace Authentication { /** Properties of a UserDataKeyByNodeRequest. */ interface IUserDataKeyByNodeRequest { - /** UserDataKeyByNodeRequest nodeIds */ - nodeIds?: ((number|Long)[]|null); + nodeIds?: (number | Long)[] | null; } /** Represents a UserDataKeyByNodeRequest. */ class UserDataKeyByNodeRequest implements IUserDataKeyByNodeRequest { - /** * Constructs a new UserDataKeyByNodeRequest. * @param [properties] Properties to set @@ -12141,14 +12967,16 @@ export namespace Authentication { constructor(properties?: Authentication.IUserDataKeyByNodeRequest); /** UserDataKeyByNodeRequest nodeIds. */ - public nodeIds: (number|Long)[]; + public nodeIds: (number | Long)[]; /** * Creates a new UserDataKeyByNodeRequest instance using the specified properties. * @param [properties] Properties to set * @returns UserDataKeyByNodeRequest instance */ - public static create(properties?: Authentication.IUserDataKeyByNodeRequest): Authentication.UserDataKeyByNodeRequest; + public static create( + properties?: Authentication.IUserDataKeyByNodeRequest + ): Authentication.UserDataKeyByNodeRequest; /** * Encodes the specified UserDataKeyByNodeRequest message. Does not implicitly {@link Authentication.UserDataKeyByNodeRequest.verify|verify} messages. @@ -12156,7 +12984,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Authentication.IUserDataKeyByNodeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Authentication.IUserDataKeyByNodeRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified UserDataKeyByNodeRequest message, length delimited. Does not implicitly {@link Authentication.UserDataKeyByNodeRequest.verify|verify} messages. @@ -12164,7 +12995,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.IUserDataKeyByNodeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.IUserDataKeyByNodeRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a UserDataKeyByNodeRequest message from the specified reader or buffer. @@ -12174,7 +13008,10 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.UserDataKeyByNodeRequest; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Authentication.UserDataKeyByNodeRequest; /** * Decodes a UserDataKeyByNodeRequest message from the specified reader or buffer, length delimited. @@ -12183,14 +13020,14 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.UserDataKeyByNodeRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Authentication.UserDataKeyByNodeRequest; /** * Verifies a UserDataKeyByNodeRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a UserDataKeyByNodeRequest message from a plain object. Also converts values to their respective internal types. @@ -12205,7 +13042,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.UserDataKeyByNodeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.UserDataKeyByNodeRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this UserDataKeyByNodeRequest to JSON. @@ -12223,20 +13063,18 @@ export namespace Authentication { /** Properties of an EnterpriseUserIdDataKeyPair. */ interface IEnterpriseUserIdDataKeyPair { - /** EnterpriseUserIdDataKeyPair enterpriseUserId */ - enterpriseUserId?: (number|Long|null); + enterpriseUserId?: number | Long | null; /** EnterpriseUserIdDataKeyPair encryptedDataKey */ - encryptedDataKey?: (Uint8Array|null); + encryptedDataKey?: Uint8Array | null; /** EnterpriseUserIdDataKeyPair keyType */ - keyType?: (Enterprise.EncryptedKeyType|null); + keyType?: Enterprise.EncryptedKeyType | null; } /** Represents an EnterpriseUserIdDataKeyPair. */ class EnterpriseUserIdDataKeyPair implements IEnterpriseUserIdDataKeyPair { - /** * Constructs a new EnterpriseUserIdDataKeyPair. * @param [properties] Properties to set @@ -12244,7 +13082,7 @@ export namespace Authentication { constructor(properties?: Authentication.IEnterpriseUserIdDataKeyPair); /** EnterpriseUserIdDataKeyPair enterpriseUserId. */ - public enterpriseUserId: (number|Long); + public enterpriseUserId: number | Long; /** EnterpriseUserIdDataKeyPair encryptedDataKey. */ public encryptedDataKey: Uint8Array; @@ -12257,7 +13095,9 @@ export namespace Authentication { * @param [properties] Properties to set * @returns EnterpriseUserIdDataKeyPair instance */ - public static create(properties?: Authentication.IEnterpriseUserIdDataKeyPair): Authentication.EnterpriseUserIdDataKeyPair; + public static create( + properties?: Authentication.IEnterpriseUserIdDataKeyPair + ): Authentication.EnterpriseUserIdDataKeyPair; /** * Encodes the specified EnterpriseUserIdDataKeyPair message. Does not implicitly {@link Authentication.EnterpriseUserIdDataKeyPair.verify|verify} messages. @@ -12265,7 +13105,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Authentication.IEnterpriseUserIdDataKeyPair, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Authentication.IEnterpriseUserIdDataKeyPair, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified EnterpriseUserIdDataKeyPair message, length delimited. Does not implicitly {@link Authentication.EnterpriseUserIdDataKeyPair.verify|verify} messages. @@ -12273,7 +13116,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.IEnterpriseUserIdDataKeyPair, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.IEnterpriseUserIdDataKeyPair, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes an EnterpriseUserIdDataKeyPair message from the specified reader or buffer. @@ -12283,7 +13129,10 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.EnterpriseUserIdDataKeyPair; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Authentication.EnterpriseUserIdDataKeyPair; /** * Decodes an EnterpriseUserIdDataKeyPair message from the specified reader or buffer, length delimited. @@ -12292,14 +13141,16 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.EnterpriseUserIdDataKeyPair; + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array + ): Authentication.EnterpriseUserIdDataKeyPair; /** * Verifies an EnterpriseUserIdDataKeyPair message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an EnterpriseUserIdDataKeyPair message from a plain object. Also converts values to their respective internal types. @@ -12314,7 +13165,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.EnterpriseUserIdDataKeyPair, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.EnterpriseUserIdDataKeyPair, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this EnterpriseUserIdDataKeyPair to JSON. @@ -12332,23 +13186,21 @@ export namespace Authentication { /** Properties of a UserDataKey. */ interface IUserDataKey { - /** UserDataKey roleId */ - roleId?: (number|Long|null); + roleId?: number | Long | null; /** UserDataKey roleKey */ - roleKey?: (Uint8Array|null); + roleKey?: Uint8Array | null; /** UserDataKey privateKey */ - privateKey?: (string|null); + privateKey?: string | null; /** UserDataKey enterpriseUserIdDataKeyPairs */ - enterpriseUserIdDataKeyPairs?: (Authentication.IEnterpriseUserIdDataKeyPair[]|null); + enterpriseUserIdDataKeyPairs?: Authentication.IEnterpriseUserIdDataKeyPair[] | null; } /** Represents a UserDataKey. */ class UserDataKey implements IUserDataKey { - /** * Constructs a new UserDataKey. * @param [properties] Properties to set @@ -12356,7 +13208,7 @@ export namespace Authentication { constructor(properties?: Authentication.IUserDataKey); /** UserDataKey roleId. */ - public roleId: (number|Long); + public roleId: number | Long; /** UserDataKey roleKey. */ public roleKey: Uint8Array; @@ -12388,7 +13240,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.IUserDataKey, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.IUserDataKey, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a UserDataKey message from the specified reader or buffer. @@ -12398,7 +13253,7 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.UserDataKey; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Authentication.UserDataKey; /** * Decodes a UserDataKey message from the specified reader or buffer, length delimited. @@ -12407,14 +13262,14 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.UserDataKey; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Authentication.UserDataKey; /** * Verifies a UserDataKey message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a UserDataKey message from a plain object. Also converts values to their respective internal types. @@ -12429,7 +13284,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.UserDataKey, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.UserDataKey, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this UserDataKey to JSON. @@ -12447,20 +13305,18 @@ export namespace Authentication { /** Properties of a UserDataKeyResponse. */ interface IUserDataKeyResponse { - /** UserDataKeyResponse userDataKeys */ - userDataKeys?: (Authentication.IUserDataKey[]|null); + userDataKeys?: Authentication.IUserDataKey[] | null; /** UserDataKeyResponse accessDenied */ - accessDenied?: ((number|Long)[]|null); + accessDenied?: (number | Long)[] | null; /** UserDataKeyResponse noEncryptedDataKey */ - noEncryptedDataKey?: ((number|Long)[]|null); + noEncryptedDataKey?: (number | Long)[] | null; } /** Represents a UserDataKeyResponse. */ class UserDataKeyResponse implements IUserDataKeyResponse { - /** * Constructs a new UserDataKeyResponse. * @param [properties] Properties to set @@ -12471,10 +13327,10 @@ export namespace Authentication { public userDataKeys: Authentication.IUserDataKey[]; /** UserDataKeyResponse accessDenied. */ - public accessDenied: (number|Long)[]; + public accessDenied: (number | Long)[]; /** UserDataKeyResponse noEncryptedDataKey. */ - public noEncryptedDataKey: (number|Long)[]; + public noEncryptedDataKey: (number | Long)[]; /** * Creates a new UserDataKeyResponse instance using the specified properties. @@ -12497,7 +13353,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.IUserDataKeyResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.IUserDataKeyResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a UserDataKeyResponse message from the specified reader or buffer. @@ -12507,7 +13366,10 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.UserDataKeyResponse; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Authentication.UserDataKeyResponse; /** * Decodes a UserDataKeyResponse message from the specified reader or buffer, length delimited. @@ -12516,14 +13378,14 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.UserDataKeyResponse; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Authentication.UserDataKeyResponse; /** * Verifies a UserDataKeyResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a UserDataKeyResponse message from a plain object. Also converts values to their respective internal types. @@ -12538,7 +13400,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.UserDataKeyResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.UserDataKeyResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this UserDataKeyResponse to JSON. @@ -12556,14 +13421,12 @@ export namespace Authentication { /** Properties of a MasterPasswordRecoveryVerificationRequest. */ interface IMasterPasswordRecoveryVerificationRequest { - /** MasterPasswordRecoveryVerificationRequest encryptedLoginToken */ - encryptedLoginToken?: (Uint8Array|null); + encryptedLoginToken?: Uint8Array | null; } /** Represents a MasterPasswordRecoveryVerificationRequest. */ class MasterPasswordRecoveryVerificationRequest implements IMasterPasswordRecoveryVerificationRequest { - /** * Constructs a new MasterPasswordRecoveryVerificationRequest. * @param [properties] Properties to set @@ -12578,7 +13441,9 @@ export namespace Authentication { * @param [properties] Properties to set * @returns MasterPasswordRecoveryVerificationRequest instance */ - public static create(properties?: Authentication.IMasterPasswordRecoveryVerificationRequest): Authentication.MasterPasswordRecoveryVerificationRequest; + public static create( + properties?: Authentication.IMasterPasswordRecoveryVerificationRequest + ): Authentication.MasterPasswordRecoveryVerificationRequest; /** * Encodes the specified MasterPasswordRecoveryVerificationRequest message. Does not implicitly {@link Authentication.MasterPasswordRecoveryVerificationRequest.verify|verify} messages. @@ -12586,7 +13451,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Authentication.IMasterPasswordRecoveryVerificationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Authentication.IMasterPasswordRecoveryVerificationRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified MasterPasswordRecoveryVerificationRequest message, length delimited. Does not implicitly {@link Authentication.MasterPasswordRecoveryVerificationRequest.verify|verify} messages. @@ -12594,7 +13462,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.IMasterPasswordRecoveryVerificationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.IMasterPasswordRecoveryVerificationRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a MasterPasswordRecoveryVerificationRequest message from the specified reader or buffer. @@ -12604,7 +13475,10 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.MasterPasswordRecoveryVerificationRequest; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Authentication.MasterPasswordRecoveryVerificationRequest; /** * Decodes a MasterPasswordRecoveryVerificationRequest message from the specified reader or buffer, length delimited. @@ -12613,21 +13487,25 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.MasterPasswordRecoveryVerificationRequest; + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array + ): Authentication.MasterPasswordRecoveryVerificationRequest; /** * Verifies a MasterPasswordRecoveryVerificationRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a MasterPasswordRecoveryVerificationRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns MasterPasswordRecoveryVerificationRequest */ - public static fromObject(object: { [k: string]: any }): Authentication.MasterPasswordRecoveryVerificationRequest; + public static fromObject(object: { + [k: string]: any; + }): Authentication.MasterPasswordRecoveryVerificationRequest; /** * Creates a plain object from a MasterPasswordRecoveryVerificationRequest message. Also converts values to other types if specified. @@ -12635,7 +13513,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.MasterPasswordRecoveryVerificationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.MasterPasswordRecoveryVerificationRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this MasterPasswordRecoveryVerificationRequest to JSON. @@ -12653,17 +13534,15 @@ export namespace Authentication { /** Properties of a GetSecurityQuestionV3Request. */ interface IGetSecurityQuestionV3Request { - /** GetSecurityQuestionV3Request encryptedLoginToken */ - encryptedLoginToken?: (Uint8Array|null); + encryptedLoginToken?: Uint8Array | null; /** GetSecurityQuestionV3Request verificationCode */ - verificationCode?: (string|null); + verificationCode?: string | null; } /** Represents a GetSecurityQuestionV3Request. */ class GetSecurityQuestionV3Request implements IGetSecurityQuestionV3Request { - /** * Constructs a new GetSecurityQuestionV3Request. * @param [properties] Properties to set @@ -12681,7 +13560,9 @@ export namespace Authentication { * @param [properties] Properties to set * @returns GetSecurityQuestionV3Request instance */ - public static create(properties?: Authentication.IGetSecurityQuestionV3Request): Authentication.GetSecurityQuestionV3Request; + public static create( + properties?: Authentication.IGetSecurityQuestionV3Request + ): Authentication.GetSecurityQuestionV3Request; /** * Encodes the specified GetSecurityQuestionV3Request message. Does not implicitly {@link Authentication.GetSecurityQuestionV3Request.verify|verify} messages. @@ -12689,7 +13570,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Authentication.IGetSecurityQuestionV3Request, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Authentication.IGetSecurityQuestionV3Request, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified GetSecurityQuestionV3Request message, length delimited. Does not implicitly {@link Authentication.GetSecurityQuestionV3Request.verify|verify} messages. @@ -12697,7 +13581,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.IGetSecurityQuestionV3Request, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.IGetSecurityQuestionV3Request, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a GetSecurityQuestionV3Request message from the specified reader or buffer. @@ -12707,7 +13594,10 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.GetSecurityQuestionV3Request; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Authentication.GetSecurityQuestionV3Request; /** * Decodes a GetSecurityQuestionV3Request message from the specified reader or buffer, length delimited. @@ -12716,14 +13606,16 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.GetSecurityQuestionV3Request; + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array + ): Authentication.GetSecurityQuestionV3Request; /** * Verifies a GetSecurityQuestionV3Request message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a GetSecurityQuestionV3Request message from a plain object. Also converts values to their respective internal types. @@ -12738,7 +13630,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.GetSecurityQuestionV3Request, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.GetSecurityQuestionV3Request, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this GetSecurityQuestionV3Request to JSON. @@ -12756,23 +13651,21 @@ export namespace Authentication { /** Properties of a GetSecurityQuestionV3Response. */ interface IGetSecurityQuestionV3Response { - /** GetSecurityQuestionV3Response securityQuestion */ - securityQuestion?: (string|null); + securityQuestion?: string | null; /** GetSecurityQuestionV3Response backupKeyDate */ - backupKeyDate?: (number|Long|null); + backupKeyDate?: number | Long | null; /** GetSecurityQuestionV3Response salt */ - salt?: (Uint8Array|null); + salt?: Uint8Array | null; /** GetSecurityQuestionV3Response iterations */ - iterations?: (number|null); + iterations?: number | null; } /** Represents a GetSecurityQuestionV3Response. */ class GetSecurityQuestionV3Response implements IGetSecurityQuestionV3Response { - /** * Constructs a new GetSecurityQuestionV3Response. * @param [properties] Properties to set @@ -12783,7 +13676,7 @@ export namespace Authentication { public securityQuestion: string; /** GetSecurityQuestionV3Response backupKeyDate. */ - public backupKeyDate: (number|Long); + public backupKeyDate: number | Long; /** GetSecurityQuestionV3Response salt. */ public salt: Uint8Array; @@ -12796,7 +13689,9 @@ export namespace Authentication { * @param [properties] Properties to set * @returns GetSecurityQuestionV3Response instance */ - public static create(properties?: Authentication.IGetSecurityQuestionV3Response): Authentication.GetSecurityQuestionV3Response; + public static create( + properties?: Authentication.IGetSecurityQuestionV3Response + ): Authentication.GetSecurityQuestionV3Response; /** * Encodes the specified GetSecurityQuestionV3Response message. Does not implicitly {@link Authentication.GetSecurityQuestionV3Response.verify|verify} messages. @@ -12804,7 +13699,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Authentication.IGetSecurityQuestionV3Response, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Authentication.IGetSecurityQuestionV3Response, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified GetSecurityQuestionV3Response message, length delimited. Does not implicitly {@link Authentication.GetSecurityQuestionV3Response.verify|verify} messages. @@ -12812,7 +13710,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.IGetSecurityQuestionV3Response, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.IGetSecurityQuestionV3Response, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a GetSecurityQuestionV3Response message from the specified reader or buffer. @@ -12822,7 +13723,10 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.GetSecurityQuestionV3Response; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Authentication.GetSecurityQuestionV3Response; /** * Decodes a GetSecurityQuestionV3Response message from the specified reader or buffer, length delimited. @@ -12831,14 +13735,16 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.GetSecurityQuestionV3Response; + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array + ): Authentication.GetSecurityQuestionV3Response; /** * Verifies a GetSecurityQuestionV3Response message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a GetSecurityQuestionV3Response message from a plain object. Also converts values to their respective internal types. @@ -12853,7 +13759,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.GetSecurityQuestionV3Response, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.GetSecurityQuestionV3Response, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this GetSecurityQuestionV3Response to JSON. @@ -12871,20 +13780,18 @@ export namespace Authentication { /** Properties of a GetDataKeyBackupV3Request. */ interface IGetDataKeyBackupV3Request { - /** GetDataKeyBackupV3Request encryptedLoginToken */ - encryptedLoginToken?: (Uint8Array|null); + encryptedLoginToken?: Uint8Array | null; /** GetDataKeyBackupV3Request verificationCode */ - verificationCode?: (string|null); + verificationCode?: string | null; /** GetDataKeyBackupV3Request securityAnswerHash */ - securityAnswerHash?: (Uint8Array|null); + securityAnswerHash?: Uint8Array | null; } /** Represents a GetDataKeyBackupV3Request. */ class GetDataKeyBackupV3Request implements IGetDataKeyBackupV3Request { - /** * Constructs a new GetDataKeyBackupV3Request. * @param [properties] Properties to set @@ -12905,7 +13812,9 @@ export namespace Authentication { * @param [properties] Properties to set * @returns GetDataKeyBackupV3Request instance */ - public static create(properties?: Authentication.IGetDataKeyBackupV3Request): Authentication.GetDataKeyBackupV3Request; + public static create( + properties?: Authentication.IGetDataKeyBackupV3Request + ): Authentication.GetDataKeyBackupV3Request; /** * Encodes the specified GetDataKeyBackupV3Request message. Does not implicitly {@link Authentication.GetDataKeyBackupV3Request.verify|verify} messages. @@ -12913,7 +13822,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Authentication.IGetDataKeyBackupV3Request, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Authentication.IGetDataKeyBackupV3Request, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified GetDataKeyBackupV3Request message, length delimited. Does not implicitly {@link Authentication.GetDataKeyBackupV3Request.verify|verify} messages. @@ -12921,7 +13833,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.IGetDataKeyBackupV3Request, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.IGetDataKeyBackupV3Request, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a GetDataKeyBackupV3Request message from the specified reader or buffer. @@ -12931,7 +13846,10 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.GetDataKeyBackupV3Request; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Authentication.GetDataKeyBackupV3Request; /** * Decodes a GetDataKeyBackupV3Request message from the specified reader or buffer, length delimited. @@ -12940,14 +13858,14 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.GetDataKeyBackupV3Request; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Authentication.GetDataKeyBackupV3Request; /** * Verifies a GetDataKeyBackupV3Request message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a GetDataKeyBackupV3Request message from a plain object. Also converts values to their respective internal types. @@ -12962,7 +13880,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.GetDataKeyBackupV3Request, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.GetDataKeyBackupV3Request, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this GetDataKeyBackupV3Request to JSON. @@ -12980,29 +13901,27 @@ export namespace Authentication { /** Properties of a PasswordRules. */ interface IPasswordRules { - /** PasswordRules ruleType */ - ruleType?: (string|null); + ruleType?: string | null; /** PasswordRules match */ - match?: (boolean|null); + match?: boolean | null; /** PasswordRules pattern */ - pattern?: (string|null); + pattern?: string | null; /** PasswordRules description */ - description?: (string|null); + description?: string | null; /** PasswordRules minimum */ - minimum?: (number|null); + minimum?: number | null; /** PasswordRules value */ - value?: (string|null); + value?: string | null; } /** Represents a PasswordRules. */ class PasswordRules implements IPasswordRules { - /** * Constructs a new PasswordRules. * @param [properties] Properties to set @@ -13048,7 +13967,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.IPasswordRules, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.IPasswordRules, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a PasswordRules message from the specified reader or buffer. @@ -13058,7 +13980,7 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.PasswordRules; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Authentication.PasswordRules; /** * Decodes a PasswordRules message from the specified reader or buffer, length delimited. @@ -13067,14 +13989,14 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.PasswordRules; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Authentication.PasswordRules; /** * Verifies a PasswordRules message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a PasswordRules message from a plain object. Also converts values to their respective internal types. @@ -13089,7 +14011,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.PasswordRules, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.PasswordRules, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this PasswordRules to JSON. @@ -13107,41 +14032,39 @@ export namespace Authentication { /** Properties of a GetDataKeyBackupV3Response. */ interface IGetDataKeyBackupV3Response { - /** GetDataKeyBackupV3Response dataKeyBackup */ - dataKeyBackup?: (Uint8Array|null); + dataKeyBackup?: Uint8Array | null; /** GetDataKeyBackupV3Response dataKeyBackupDate */ - dataKeyBackupDate?: (number|Long|null); + dataKeyBackupDate?: number | Long | null; /** GetDataKeyBackupV3Response publicKey */ - publicKey?: (Uint8Array|null); + publicKey?: Uint8Array | null; /** GetDataKeyBackupV3Response encryptedPrivateKey */ - encryptedPrivateKey?: (Uint8Array|null); + encryptedPrivateKey?: Uint8Array | null; /** GetDataKeyBackupV3Response clientKey */ - clientKey?: (Uint8Array|null); + clientKey?: Uint8Array | null; /** GetDataKeyBackupV3Response encryptedSessionToken */ - encryptedSessionToken?: (Uint8Array|null); + encryptedSessionToken?: Uint8Array | null; /** GetDataKeyBackupV3Response passwordRules */ - passwordRules?: (Authentication.IPasswordRules[]|null); + passwordRules?: Authentication.IPasswordRules[] | null; /** GetDataKeyBackupV3Response passwordRulesIntro */ - passwordRulesIntro?: (string|null); + passwordRulesIntro?: string | null; /** GetDataKeyBackupV3Response minimumPbkdf2Iterations */ - minimumPbkdf2Iterations?: (number|null); + minimumPbkdf2Iterations?: number | null; /** GetDataKeyBackupV3Response keyType */ - keyType?: (Enterprise.KeyType|null); + keyType?: Enterprise.KeyType | null; } /** Represents a GetDataKeyBackupV3Response. */ class GetDataKeyBackupV3Response implements IGetDataKeyBackupV3Response { - /** * Constructs a new GetDataKeyBackupV3Response. * @param [properties] Properties to set @@ -13152,7 +14075,7 @@ export namespace Authentication { public dataKeyBackup: Uint8Array; /** GetDataKeyBackupV3Response dataKeyBackupDate. */ - public dataKeyBackupDate: (number|Long); + public dataKeyBackupDate: number | Long; /** GetDataKeyBackupV3Response publicKey. */ public publicKey: Uint8Array; @@ -13183,7 +14106,9 @@ export namespace Authentication { * @param [properties] Properties to set * @returns GetDataKeyBackupV3Response instance */ - public static create(properties?: Authentication.IGetDataKeyBackupV3Response): Authentication.GetDataKeyBackupV3Response; + public static create( + properties?: Authentication.IGetDataKeyBackupV3Response + ): Authentication.GetDataKeyBackupV3Response; /** * Encodes the specified GetDataKeyBackupV3Response message. Does not implicitly {@link Authentication.GetDataKeyBackupV3Response.verify|verify} messages. @@ -13191,7 +14116,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Authentication.IGetDataKeyBackupV3Response, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Authentication.IGetDataKeyBackupV3Response, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified GetDataKeyBackupV3Response message, length delimited. Does not implicitly {@link Authentication.GetDataKeyBackupV3Response.verify|verify} messages. @@ -13199,7 +14127,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.IGetDataKeyBackupV3Response, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.IGetDataKeyBackupV3Response, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a GetDataKeyBackupV3Response message from the specified reader or buffer. @@ -13209,7 +14140,10 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.GetDataKeyBackupV3Response; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Authentication.GetDataKeyBackupV3Response; /** * Decodes a GetDataKeyBackupV3Response message from the specified reader or buffer, length delimited. @@ -13218,14 +14152,14 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.GetDataKeyBackupV3Response; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Authentication.GetDataKeyBackupV3Response; /** * Verifies a GetDataKeyBackupV3Response message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a GetDataKeyBackupV3Response message from a plain object. Also converts values to their respective internal types. @@ -13240,7 +14174,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.GetDataKeyBackupV3Response, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.GetDataKeyBackupV3Response, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this GetDataKeyBackupV3Response to JSON. @@ -13258,14 +14195,12 @@ export namespace Authentication { /** Properties of a GetPublicKeysRequest. */ interface IGetPublicKeysRequest { - /** GetPublicKeysRequest usernames */ - usernames?: (string[]|null); + usernames?: string[] | null; } /** Represents a GetPublicKeysRequest. */ class GetPublicKeysRequest implements IGetPublicKeysRequest { - /** * Constructs a new GetPublicKeysRequest. * @param [properties] Properties to set @@ -13288,7 +14223,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Authentication.IGetPublicKeysRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Authentication.IGetPublicKeysRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified GetPublicKeysRequest message, length delimited. Does not implicitly {@link Authentication.GetPublicKeysRequest.verify|verify} messages. @@ -13296,7 +14234,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.IGetPublicKeysRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.IGetPublicKeysRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a GetPublicKeysRequest message from the specified reader or buffer. @@ -13306,7 +14247,10 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.GetPublicKeysRequest; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Authentication.GetPublicKeysRequest; /** * Decodes a GetPublicKeysRequest message from the specified reader or buffer, length delimited. @@ -13315,14 +14259,14 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.GetPublicKeysRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Authentication.GetPublicKeysRequest; /** * Verifies a GetPublicKeysRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a GetPublicKeysRequest message from a plain object. Also converts values to their respective internal types. @@ -13337,7 +14281,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.GetPublicKeysRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.GetPublicKeysRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this GetPublicKeysRequest to JSON. @@ -13355,26 +14302,24 @@ export namespace Authentication { /** Properties of a PublicKeyResponse. */ interface IPublicKeyResponse { - /** PublicKeyResponse username */ - username?: (string|null); + username?: string | null; /** PublicKeyResponse publicKey */ - publicKey?: (Uint8Array|null); + publicKey?: Uint8Array | null; /** PublicKeyResponse publicEccKey */ - publicEccKey?: (Uint8Array|null); + publicEccKey?: Uint8Array | null; /** PublicKeyResponse message */ - message?: (string|null); + message?: string | null; /** PublicKeyResponse errorCode */ - errorCode?: (string|null); + errorCode?: string | null; } /** Represents a PublicKeyResponse. */ class PublicKeyResponse implements IPublicKeyResponse { - /** * Constructs a new PublicKeyResponse. * @param [properties] Properties to set @@ -13417,7 +14362,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.IPublicKeyResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.IPublicKeyResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a PublicKeyResponse message from the specified reader or buffer. @@ -13427,7 +14375,7 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.PublicKeyResponse; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Authentication.PublicKeyResponse; /** * Decodes a PublicKeyResponse message from the specified reader or buffer, length delimited. @@ -13436,14 +14384,14 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.PublicKeyResponse; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Authentication.PublicKeyResponse; /** * Verifies a PublicKeyResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a PublicKeyResponse message from a plain object. Also converts values to their respective internal types. @@ -13458,7 +14406,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.PublicKeyResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.PublicKeyResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this PublicKeyResponse to JSON. @@ -13476,14 +14427,12 @@ export namespace Authentication { /** Properties of a GetPublicKeysResponse. */ interface IGetPublicKeysResponse { - /** GetPublicKeysResponse keyResponses */ - keyResponses?: (Authentication.IPublicKeyResponse[]|null); + keyResponses?: Authentication.IPublicKeyResponse[] | null; } /** Represents a GetPublicKeysResponse. */ class GetPublicKeysResponse implements IGetPublicKeysResponse { - /** * Constructs a new GetPublicKeysResponse. * @param [properties] Properties to set @@ -13506,7 +14455,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Authentication.IGetPublicKeysResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Authentication.IGetPublicKeysResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified GetPublicKeysResponse message, length delimited. Does not implicitly {@link Authentication.GetPublicKeysResponse.verify|verify} messages. @@ -13514,7 +14466,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.IGetPublicKeysResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.IGetPublicKeysResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a GetPublicKeysResponse message from the specified reader or buffer. @@ -13524,7 +14479,10 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.GetPublicKeysResponse; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Authentication.GetPublicKeysResponse; /** * Decodes a GetPublicKeysResponse message from the specified reader or buffer, length delimited. @@ -13533,14 +14491,14 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.GetPublicKeysResponse; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Authentication.GetPublicKeysResponse; /** * Verifies a GetPublicKeysResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a GetPublicKeysResponse message from a plain object. Also converts values to their respective internal types. @@ -13555,7 +14513,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.GetPublicKeysResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.GetPublicKeysResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this GetPublicKeysResponse to JSON. @@ -13573,17 +14534,15 @@ export namespace Authentication { /** Properties of a SetEccKeyPairRequest. */ interface ISetEccKeyPairRequest { - /** SetEccKeyPairRequest publicKey */ - publicKey?: (Uint8Array|null); + publicKey?: Uint8Array | null; /** SetEccKeyPairRequest encryptedPrivateKey */ - encryptedPrivateKey?: (Uint8Array|null); + encryptedPrivateKey?: Uint8Array | null; } /** Represents a SetEccKeyPairRequest. */ class SetEccKeyPairRequest implements ISetEccKeyPairRequest { - /** * Constructs a new SetEccKeyPairRequest. * @param [properties] Properties to set @@ -13609,7 +14568,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Authentication.ISetEccKeyPairRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Authentication.ISetEccKeyPairRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified SetEccKeyPairRequest message, length delimited. Does not implicitly {@link Authentication.SetEccKeyPairRequest.verify|verify} messages. @@ -13617,7 +14579,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.ISetEccKeyPairRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.ISetEccKeyPairRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a SetEccKeyPairRequest message from the specified reader or buffer. @@ -13627,7 +14592,10 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.SetEccKeyPairRequest; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Authentication.SetEccKeyPairRequest; /** * Decodes a SetEccKeyPairRequest message from the specified reader or buffer, length delimited. @@ -13636,14 +14604,14 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.SetEccKeyPairRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Authentication.SetEccKeyPairRequest; /** * Verifies a SetEccKeyPairRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a SetEccKeyPairRequest message from a plain object. Also converts values to their respective internal types. @@ -13658,7 +14626,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.SetEccKeyPairRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.SetEccKeyPairRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this SetEccKeyPairRequest to JSON. @@ -13676,14 +14647,12 @@ export namespace Authentication { /** Properties of a SetEccKeyPairsRequest. */ interface ISetEccKeyPairsRequest { - /** SetEccKeyPairsRequest teamKeys */ - teamKeys?: (Authentication.ITeamEccKeyPair[]|null); + teamKeys?: Authentication.ITeamEccKeyPair[] | null; } /** Represents a SetEccKeyPairsRequest. */ class SetEccKeyPairsRequest implements ISetEccKeyPairsRequest { - /** * Constructs a new SetEccKeyPairsRequest. * @param [properties] Properties to set @@ -13706,7 +14675,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Authentication.ISetEccKeyPairsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Authentication.ISetEccKeyPairsRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified SetEccKeyPairsRequest message, length delimited. Does not implicitly {@link Authentication.SetEccKeyPairsRequest.verify|verify} messages. @@ -13714,7 +14686,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.ISetEccKeyPairsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.ISetEccKeyPairsRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a SetEccKeyPairsRequest message from the specified reader or buffer. @@ -13724,7 +14699,10 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.SetEccKeyPairsRequest; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Authentication.SetEccKeyPairsRequest; /** * Decodes a SetEccKeyPairsRequest message from the specified reader or buffer, length delimited. @@ -13733,14 +14711,14 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.SetEccKeyPairsRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Authentication.SetEccKeyPairsRequest; /** * Verifies a SetEccKeyPairsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a SetEccKeyPairsRequest message from a plain object. Also converts values to their respective internal types. @@ -13755,7 +14733,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.SetEccKeyPairsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.SetEccKeyPairsRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this SetEccKeyPairsRequest to JSON. @@ -13773,14 +14754,12 @@ export namespace Authentication { /** Properties of a SetEccKeyPairsResponse. */ interface ISetEccKeyPairsResponse { - /** SetEccKeyPairsResponse teamKeys */ - teamKeys?: (Authentication.ITeamEccKeyPairResponse[]|null); + teamKeys?: Authentication.ITeamEccKeyPairResponse[] | null; } /** Represents a SetEccKeyPairsResponse. */ class SetEccKeyPairsResponse implements ISetEccKeyPairsResponse { - /** * Constructs a new SetEccKeyPairsResponse. * @param [properties] Properties to set @@ -13795,7 +14774,9 @@ export namespace Authentication { * @param [properties] Properties to set * @returns SetEccKeyPairsResponse instance */ - public static create(properties?: Authentication.ISetEccKeyPairsResponse): Authentication.SetEccKeyPairsResponse; + public static create( + properties?: Authentication.ISetEccKeyPairsResponse + ): Authentication.SetEccKeyPairsResponse; /** * Encodes the specified SetEccKeyPairsResponse message. Does not implicitly {@link Authentication.SetEccKeyPairsResponse.verify|verify} messages. @@ -13803,7 +14784,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Authentication.ISetEccKeyPairsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Authentication.ISetEccKeyPairsResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified SetEccKeyPairsResponse message, length delimited. Does not implicitly {@link Authentication.SetEccKeyPairsResponse.verify|verify} messages. @@ -13811,7 +14795,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.ISetEccKeyPairsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.ISetEccKeyPairsResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a SetEccKeyPairsResponse message from the specified reader or buffer. @@ -13821,7 +14808,10 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.SetEccKeyPairsResponse; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Authentication.SetEccKeyPairsResponse; /** * Decodes a SetEccKeyPairsResponse message from the specified reader or buffer, length delimited. @@ -13830,14 +14820,14 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.SetEccKeyPairsResponse; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Authentication.SetEccKeyPairsResponse; /** * Verifies a SetEccKeyPairsResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a SetEccKeyPairsResponse message from a plain object. Also converts values to their respective internal types. @@ -13852,7 +14842,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.SetEccKeyPairsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.SetEccKeyPairsResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this SetEccKeyPairsResponse to JSON. @@ -13870,20 +14863,18 @@ export namespace Authentication { /** Properties of a TeamEccKeyPair. */ interface ITeamEccKeyPair { - /** TeamEccKeyPair teamUid */ - teamUid?: (Uint8Array|null); + teamUid?: Uint8Array | null; /** TeamEccKeyPair publicKey */ - publicKey?: (Uint8Array|null); + publicKey?: Uint8Array | null; /** TeamEccKeyPair encryptedPrivateKey */ - encryptedPrivateKey?: (Uint8Array|null); + encryptedPrivateKey?: Uint8Array | null; } /** Represents a TeamEccKeyPair. */ class TeamEccKeyPair implements ITeamEccKeyPair { - /** * Constructs a new TeamEccKeyPair. * @param [properties] Properties to set @@ -13920,7 +14911,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.ITeamEccKeyPair, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.ITeamEccKeyPair, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a TeamEccKeyPair message from the specified reader or buffer. @@ -13930,7 +14924,7 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.TeamEccKeyPair; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Authentication.TeamEccKeyPair; /** * Decodes a TeamEccKeyPair message from the specified reader or buffer, length delimited. @@ -13939,14 +14933,14 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.TeamEccKeyPair; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Authentication.TeamEccKeyPair; /** * Verifies a TeamEccKeyPair message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a TeamEccKeyPair message from a plain object. Also converts values to their respective internal types. @@ -13961,7 +14955,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.TeamEccKeyPair, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.TeamEccKeyPair, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this TeamEccKeyPair to JSON. @@ -13979,17 +14976,15 @@ export namespace Authentication { /** Properties of a TeamEccKeyPairResponse. */ interface ITeamEccKeyPairResponse { - /** TeamEccKeyPairResponse teamUid */ - teamUid?: (Uint8Array|null); + teamUid?: Uint8Array | null; /** TeamEccKeyPairResponse status */ - status?: (Authentication.GenericStatus|null); + status?: Authentication.GenericStatus | null; } /** Represents a TeamEccKeyPairResponse. */ class TeamEccKeyPairResponse implements ITeamEccKeyPairResponse { - /** * Constructs a new TeamEccKeyPairResponse. * @param [properties] Properties to set @@ -14007,7 +15002,9 @@ export namespace Authentication { * @param [properties] Properties to set * @returns TeamEccKeyPairResponse instance */ - public static create(properties?: Authentication.ITeamEccKeyPairResponse): Authentication.TeamEccKeyPairResponse; + public static create( + properties?: Authentication.ITeamEccKeyPairResponse + ): Authentication.TeamEccKeyPairResponse; /** * Encodes the specified TeamEccKeyPairResponse message. Does not implicitly {@link Authentication.TeamEccKeyPairResponse.verify|verify} messages. @@ -14015,7 +15012,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Authentication.ITeamEccKeyPairResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Authentication.ITeamEccKeyPairResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified TeamEccKeyPairResponse message, length delimited. Does not implicitly {@link Authentication.TeamEccKeyPairResponse.verify|verify} messages. @@ -14023,7 +15023,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.ITeamEccKeyPairResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.ITeamEccKeyPairResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a TeamEccKeyPairResponse message from the specified reader or buffer. @@ -14033,7 +15036,10 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.TeamEccKeyPairResponse; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Authentication.TeamEccKeyPairResponse; /** * Decodes a TeamEccKeyPairResponse message from the specified reader or buffer, length delimited. @@ -14042,14 +15048,14 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.TeamEccKeyPairResponse; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Authentication.TeamEccKeyPairResponse; /** * Verifies a TeamEccKeyPairResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a TeamEccKeyPairResponse message from a plain object. Also converts values to their respective internal types. @@ -14064,7 +15070,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.TeamEccKeyPairResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.TeamEccKeyPairResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this TeamEccKeyPairResponse to JSON. @@ -14082,17 +15091,15 @@ export namespace Authentication { /** Properties of a GetKsmPublicKeysRequest. */ interface IGetKsmPublicKeysRequest { - /** GetKsmPublicKeysRequest clientIds */ - clientIds?: (Uint8Array[]|null); + clientIds?: Uint8Array[] | null; /** GetKsmPublicKeysRequest controllerUids */ - controllerUids?: (Uint8Array[]|null); + controllerUids?: Uint8Array[] | null; } /** Represents a GetKsmPublicKeysRequest. */ class GetKsmPublicKeysRequest implements IGetKsmPublicKeysRequest { - /** * Constructs a new GetKsmPublicKeysRequest. * @param [properties] Properties to set @@ -14110,7 +15117,9 @@ export namespace Authentication { * @param [properties] Properties to set * @returns GetKsmPublicKeysRequest instance */ - public static create(properties?: Authentication.IGetKsmPublicKeysRequest): Authentication.GetKsmPublicKeysRequest; + public static create( + properties?: Authentication.IGetKsmPublicKeysRequest + ): Authentication.GetKsmPublicKeysRequest; /** * Encodes the specified GetKsmPublicKeysRequest message. Does not implicitly {@link Authentication.GetKsmPublicKeysRequest.verify|verify} messages. @@ -14118,7 +15127,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Authentication.IGetKsmPublicKeysRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Authentication.IGetKsmPublicKeysRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified GetKsmPublicKeysRequest message, length delimited. Does not implicitly {@link Authentication.GetKsmPublicKeysRequest.verify|verify} messages. @@ -14126,7 +15138,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.IGetKsmPublicKeysRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.IGetKsmPublicKeysRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a GetKsmPublicKeysRequest message from the specified reader or buffer. @@ -14136,7 +15151,10 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.GetKsmPublicKeysRequest; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Authentication.GetKsmPublicKeysRequest; /** * Decodes a GetKsmPublicKeysRequest message from the specified reader or buffer, length delimited. @@ -14145,14 +15163,14 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.GetKsmPublicKeysRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Authentication.GetKsmPublicKeysRequest; /** * Verifies a GetKsmPublicKeysRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a GetKsmPublicKeysRequest message from a plain object. Also converts values to their respective internal types. @@ -14167,7 +15185,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.GetKsmPublicKeysRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.GetKsmPublicKeysRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this GetKsmPublicKeysRequest to JSON. @@ -14185,20 +15206,18 @@ export namespace Authentication { /** Properties of a DevicePublicKeyResponse. */ interface IDevicePublicKeyResponse { - /** DevicePublicKeyResponse clientId */ - clientId?: (Uint8Array|null); + clientId?: Uint8Array | null; /** DevicePublicKeyResponse publicKey */ - publicKey?: (Uint8Array|null); + publicKey?: Uint8Array | null; /** DevicePublicKeyResponse controllerUid */ - controllerUid?: (Uint8Array|null); + controllerUid?: Uint8Array | null; } /** Represents a DevicePublicKeyResponse. */ class DevicePublicKeyResponse implements IDevicePublicKeyResponse { - /** * Constructs a new DevicePublicKeyResponse. * @param [properties] Properties to set @@ -14219,7 +15238,9 @@ export namespace Authentication { * @param [properties] Properties to set * @returns DevicePublicKeyResponse instance */ - public static create(properties?: Authentication.IDevicePublicKeyResponse): Authentication.DevicePublicKeyResponse; + public static create( + properties?: Authentication.IDevicePublicKeyResponse + ): Authentication.DevicePublicKeyResponse; /** * Encodes the specified DevicePublicKeyResponse message. Does not implicitly {@link Authentication.DevicePublicKeyResponse.verify|verify} messages. @@ -14227,7 +15248,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Authentication.IDevicePublicKeyResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Authentication.IDevicePublicKeyResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified DevicePublicKeyResponse message, length delimited. Does not implicitly {@link Authentication.DevicePublicKeyResponse.verify|verify} messages. @@ -14235,7 +15259,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.IDevicePublicKeyResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.IDevicePublicKeyResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a DevicePublicKeyResponse message from the specified reader or buffer. @@ -14245,7 +15272,10 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.DevicePublicKeyResponse; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Authentication.DevicePublicKeyResponse; /** * Decodes a DevicePublicKeyResponse message from the specified reader or buffer, length delimited. @@ -14254,14 +15284,14 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.DevicePublicKeyResponse; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Authentication.DevicePublicKeyResponse; /** * Verifies a DevicePublicKeyResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a DevicePublicKeyResponse message from a plain object. Also converts values to their respective internal types. @@ -14276,7 +15306,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.DevicePublicKeyResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.DevicePublicKeyResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this DevicePublicKeyResponse to JSON. @@ -14294,14 +15327,12 @@ export namespace Authentication { /** Properties of a GetKsmPublicKeysResponse. */ interface IGetKsmPublicKeysResponse { - /** GetKsmPublicKeysResponse keyResponses */ - keyResponses?: (Authentication.IDevicePublicKeyResponse[]|null); + keyResponses?: Authentication.IDevicePublicKeyResponse[] | null; } /** Represents a GetKsmPublicKeysResponse. */ class GetKsmPublicKeysResponse implements IGetKsmPublicKeysResponse { - /** * Constructs a new GetKsmPublicKeysResponse. * @param [properties] Properties to set @@ -14316,7 +15347,9 @@ export namespace Authentication { * @param [properties] Properties to set * @returns GetKsmPublicKeysResponse instance */ - public static create(properties?: Authentication.IGetKsmPublicKeysResponse): Authentication.GetKsmPublicKeysResponse; + public static create( + properties?: Authentication.IGetKsmPublicKeysResponse + ): Authentication.GetKsmPublicKeysResponse; /** * Encodes the specified GetKsmPublicKeysResponse message. Does not implicitly {@link Authentication.GetKsmPublicKeysResponse.verify|verify} messages. @@ -14324,7 +15357,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Authentication.IGetKsmPublicKeysResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Authentication.IGetKsmPublicKeysResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified GetKsmPublicKeysResponse message, length delimited. Does not implicitly {@link Authentication.GetKsmPublicKeysResponse.verify|verify} messages. @@ -14332,7 +15368,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.IGetKsmPublicKeysResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.IGetKsmPublicKeysResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a GetKsmPublicKeysResponse message from the specified reader or buffer. @@ -14342,7 +15381,10 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.GetKsmPublicKeysResponse; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Authentication.GetKsmPublicKeysResponse; /** * Decodes a GetKsmPublicKeysResponse message from the specified reader or buffer, length delimited. @@ -14351,14 +15393,14 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.GetKsmPublicKeysResponse; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Authentication.GetKsmPublicKeysResponse; /** * Verifies a GetKsmPublicKeysResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a GetKsmPublicKeysResponse message from a plain object. Also converts values to their respective internal types. @@ -14373,7 +15415,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.GetKsmPublicKeysResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.GetKsmPublicKeysResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this GetKsmPublicKeysResponse to JSON. @@ -14397,28 +15442,26 @@ export namespace Authentication { usgov = 3, au = 4, jp = 5, - ca = 6 + ca = 6, } /** ApplicationShareType enum. */ enum ApplicationShareType { SHARE_TYPE_RECORD = 0, - SHARE_TYPE_FOLDER = 1 + SHARE_TYPE_FOLDER = 1, } /** Properties of an AddAppSharesRequest. */ interface IAddAppSharesRequest { - /** AddAppSharesRequest appRecordUid */ - appRecordUid?: (Uint8Array|null); + appRecordUid?: Uint8Array | null; /** AddAppSharesRequest shares */ - shares?: (Authentication.IAppShareAdd[]|null); + shares?: Authentication.IAppShareAdd[] | null; } /** Represents an AddAppSharesRequest. */ class AddAppSharesRequest implements IAddAppSharesRequest { - /** * Constructs a new AddAppSharesRequest. * @param [properties] Properties to set @@ -14452,7 +15495,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.IAddAppSharesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.IAddAppSharesRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes an AddAppSharesRequest message from the specified reader or buffer. @@ -14462,7 +15508,10 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.AddAppSharesRequest; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Authentication.AddAppSharesRequest; /** * Decodes an AddAppSharesRequest message from the specified reader or buffer, length delimited. @@ -14471,14 +15520,14 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.AddAppSharesRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Authentication.AddAppSharesRequest; /** * Verifies an AddAppSharesRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an AddAppSharesRequest message from a plain object. Also converts values to their respective internal types. @@ -14493,7 +15542,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.AddAppSharesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.AddAppSharesRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this AddAppSharesRequest to JSON. @@ -14511,17 +15563,15 @@ export namespace Authentication { /** Properties of a RemoveAppSharesRequest. */ interface IRemoveAppSharesRequest { - /** RemoveAppSharesRequest appRecordUid */ - appRecordUid?: (Uint8Array|null); + appRecordUid?: Uint8Array | null; /** RemoveAppSharesRequest shares */ - shares?: (Uint8Array[]|null); + shares?: Uint8Array[] | null; } /** Represents a RemoveAppSharesRequest. */ class RemoveAppSharesRequest implements IRemoveAppSharesRequest { - /** * Constructs a new RemoveAppSharesRequest. * @param [properties] Properties to set @@ -14539,7 +15589,9 @@ export namespace Authentication { * @param [properties] Properties to set * @returns RemoveAppSharesRequest instance */ - public static create(properties?: Authentication.IRemoveAppSharesRequest): Authentication.RemoveAppSharesRequest; + public static create( + properties?: Authentication.IRemoveAppSharesRequest + ): Authentication.RemoveAppSharesRequest; /** * Encodes the specified RemoveAppSharesRequest message. Does not implicitly {@link Authentication.RemoveAppSharesRequest.verify|verify} messages. @@ -14547,7 +15599,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Authentication.IRemoveAppSharesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Authentication.IRemoveAppSharesRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified RemoveAppSharesRequest message, length delimited. Does not implicitly {@link Authentication.RemoveAppSharesRequest.verify|verify} messages. @@ -14555,7 +15610,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.IRemoveAppSharesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.IRemoveAppSharesRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a RemoveAppSharesRequest message from the specified reader or buffer. @@ -14565,7 +15623,10 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.RemoveAppSharesRequest; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Authentication.RemoveAppSharesRequest; /** * Decodes a RemoveAppSharesRequest message from the specified reader or buffer, length delimited. @@ -14574,14 +15635,14 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.RemoveAppSharesRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Authentication.RemoveAppSharesRequest; /** * Verifies a RemoveAppSharesRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a RemoveAppSharesRequest message from a plain object. Also converts values to their respective internal types. @@ -14596,7 +15657,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.RemoveAppSharesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.RemoveAppSharesRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this RemoveAppSharesRequest to JSON. @@ -14614,23 +15678,21 @@ export namespace Authentication { /** Properties of an AppShareAdd. */ interface IAppShareAdd { - /** AppShareAdd secretUid */ - secretUid?: (Uint8Array|null); + secretUid?: Uint8Array | null; /** AppShareAdd shareType */ - shareType?: (Authentication.ApplicationShareType|null); + shareType?: Authentication.ApplicationShareType | null; /** AppShareAdd encryptedSecretKey */ - encryptedSecretKey?: (Uint8Array|null); + encryptedSecretKey?: Uint8Array | null; /** AppShareAdd editable */ - editable?: (boolean|null); + editable?: boolean | null; } /** Represents an AppShareAdd. */ class AppShareAdd implements IAppShareAdd { - /** * Constructs a new AppShareAdd. * @param [properties] Properties to set @@ -14670,7 +15732,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.IAppShareAdd, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.IAppShareAdd, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes an AppShareAdd message from the specified reader or buffer. @@ -14680,7 +15745,7 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.AppShareAdd; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Authentication.AppShareAdd; /** * Decodes an AppShareAdd message from the specified reader or buffer, length delimited. @@ -14689,14 +15754,14 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.AppShareAdd; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Authentication.AppShareAdd; /** * Verifies an AppShareAdd message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an AppShareAdd message from a plain object. Also converts values to their respective internal types. @@ -14711,7 +15776,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.AppShareAdd, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.AppShareAdd, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this AppShareAdd to JSON. @@ -14729,26 +15797,24 @@ export namespace Authentication { /** Properties of an AppShare. */ interface IAppShare { - /** AppShare secretUid */ - secretUid?: (Uint8Array|null); + secretUid?: Uint8Array | null; /** AppShare shareType */ - shareType?: (Authentication.ApplicationShareType|null); + shareType?: Authentication.ApplicationShareType | null; /** AppShare editable */ - editable?: (boolean|null); + editable?: boolean | null; /** AppShare createdOn */ - createdOn?: (number|Long|null); + createdOn?: number | Long | null; /** AppShare data */ - data?: (Uint8Array|null); + data?: Uint8Array | null; } /** Represents an AppShare. */ class AppShare implements IAppShare { - /** * Constructs a new AppShare. * @param [properties] Properties to set @@ -14765,7 +15831,7 @@ export namespace Authentication { public editable: boolean; /** AppShare createdOn. */ - public createdOn: (number|Long); + public createdOn: number | Long; /** AppShare data. */ public data: Uint8Array; @@ -14801,7 +15867,7 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.AppShare; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Authentication.AppShare; /** * Decodes an AppShare message from the specified reader or buffer, length delimited. @@ -14810,14 +15876,14 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.AppShare; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Authentication.AppShare; /** * Verifies an AppShare message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an AppShare message from a plain object. Also converts values to their respective internal types. @@ -14832,7 +15898,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.AppShare, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.AppShare, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this AppShare to JSON. @@ -14850,35 +15919,33 @@ export namespace Authentication { /** Properties of an AddAppClientRequest. */ interface IAddAppClientRequest { - /** AddAppClientRequest appRecordUid */ - appRecordUid?: (Uint8Array|null); + appRecordUid?: Uint8Array | null; /** AddAppClientRequest encryptedAppKey */ - encryptedAppKey?: (Uint8Array|null); + encryptedAppKey?: Uint8Array | null; /** AddAppClientRequest clientId */ - clientId?: (Uint8Array|null); + clientId?: Uint8Array | null; /** AddAppClientRequest lockIp */ - lockIp?: (boolean|null); + lockIp?: boolean | null; /** AddAppClientRequest firstAccessExpireOn */ - firstAccessExpireOn?: (number|Long|null); + firstAccessExpireOn?: number | Long | null; /** AddAppClientRequest accessExpireOn */ - accessExpireOn?: (number|Long|null); + accessExpireOn?: number | Long | null; /** AddAppClientRequest id */ - id?: (string|null); + id?: string | null; /** AddAppClientRequest appClientType */ - appClientType?: (Enterprise.AppClientType|null); + appClientType?: Enterprise.AppClientType | null; } /** Represents an AddAppClientRequest. */ class AddAppClientRequest implements IAddAppClientRequest { - /** * Constructs a new AddAppClientRequest. * @param [properties] Properties to set @@ -14898,10 +15965,10 @@ export namespace Authentication { public lockIp: boolean; /** AddAppClientRequest firstAccessExpireOn. */ - public firstAccessExpireOn: (number|Long); + public firstAccessExpireOn: number | Long; /** AddAppClientRequest accessExpireOn. */ - public accessExpireOn: (number|Long); + public accessExpireOn: number | Long; /** AddAppClientRequest id. */ public id: string; @@ -14930,7 +15997,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.IAddAppClientRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.IAddAppClientRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes an AddAppClientRequest message from the specified reader or buffer. @@ -14940,7 +16010,10 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.AddAppClientRequest; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Authentication.AddAppClientRequest; /** * Decodes an AddAppClientRequest message from the specified reader or buffer, length delimited. @@ -14949,14 +16022,14 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.AddAppClientRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Authentication.AddAppClientRequest; /** * Verifies an AddAppClientRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an AddAppClientRequest message from a plain object. Also converts values to their respective internal types. @@ -14971,7 +16044,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.AddAppClientRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.AddAppClientRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this AddAppClientRequest to JSON. @@ -14989,17 +16065,15 @@ export namespace Authentication { /** Properties of a RemoveAppClientsRequest. */ interface IRemoveAppClientsRequest { - /** RemoveAppClientsRequest appRecordUid */ - appRecordUid?: (Uint8Array|null); + appRecordUid?: Uint8Array | null; /** RemoveAppClientsRequest clients */ - clients?: (Uint8Array[]|null); + clients?: Uint8Array[] | null; } /** Represents a RemoveAppClientsRequest. */ class RemoveAppClientsRequest implements IRemoveAppClientsRequest { - /** * Constructs a new RemoveAppClientsRequest. * @param [properties] Properties to set @@ -15017,7 +16091,9 @@ export namespace Authentication { * @param [properties] Properties to set * @returns RemoveAppClientsRequest instance */ - public static create(properties?: Authentication.IRemoveAppClientsRequest): Authentication.RemoveAppClientsRequest; + public static create( + properties?: Authentication.IRemoveAppClientsRequest + ): Authentication.RemoveAppClientsRequest; /** * Encodes the specified RemoveAppClientsRequest message. Does not implicitly {@link Authentication.RemoveAppClientsRequest.verify|verify} messages. @@ -15025,7 +16101,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Authentication.IRemoveAppClientsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Authentication.IRemoveAppClientsRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified RemoveAppClientsRequest message, length delimited. Does not implicitly {@link Authentication.RemoveAppClientsRequest.verify|verify} messages. @@ -15033,7 +16112,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.IRemoveAppClientsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.IRemoveAppClientsRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a RemoveAppClientsRequest message from the specified reader or buffer. @@ -15043,7 +16125,10 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.RemoveAppClientsRequest; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Authentication.RemoveAppClientsRequest; /** * Decodes a RemoveAppClientsRequest message from the specified reader or buffer, length delimited. @@ -15052,14 +16137,14 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.RemoveAppClientsRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Authentication.RemoveAppClientsRequest; /** * Verifies a RemoveAppClientsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a RemoveAppClientsRequest message from a plain object. Also converts values to their respective internal types. @@ -15074,7 +16159,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.RemoveAppClientsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.RemoveAppClientsRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this RemoveAppClientsRequest to JSON. @@ -15092,32 +16180,30 @@ export namespace Authentication { /** Properties of an AddExternalShareRequest. */ interface IAddExternalShareRequest { - /** AddExternalShareRequest recordUid */ - recordUid?: (Uint8Array|null); + recordUid?: Uint8Array | null; /** AddExternalShareRequest encryptedRecordKey */ - encryptedRecordKey?: (Uint8Array|null); + encryptedRecordKey?: Uint8Array | null; /** AddExternalShareRequest clientId */ - clientId?: (Uint8Array|null); + clientId?: Uint8Array | null; /** AddExternalShareRequest accessExpireOn */ - accessExpireOn?: (number|Long|null); + accessExpireOn?: number | Long | null; /** AddExternalShareRequest id */ - id?: (string|null); + id?: string | null; /** AddExternalShareRequest isSelfDestruct */ - isSelfDestruct?: (boolean|null); + isSelfDestruct?: boolean | null; /** AddExternalShareRequest isEditable */ - isEditable?: (boolean|null); + isEditable?: boolean | null; } /** Represents an AddExternalShareRequest. */ class AddExternalShareRequest implements IAddExternalShareRequest { - /** * Constructs a new AddExternalShareRequest. * @param [properties] Properties to set @@ -15134,7 +16220,7 @@ export namespace Authentication { public clientId: Uint8Array; /** AddExternalShareRequest accessExpireOn. */ - public accessExpireOn: (number|Long); + public accessExpireOn: number | Long; /** AddExternalShareRequest id. */ public id: string; @@ -15150,7 +16236,9 @@ export namespace Authentication { * @param [properties] Properties to set * @returns AddExternalShareRequest instance */ - public static create(properties?: Authentication.IAddExternalShareRequest): Authentication.AddExternalShareRequest; + public static create( + properties?: Authentication.IAddExternalShareRequest + ): Authentication.AddExternalShareRequest; /** * Encodes the specified AddExternalShareRequest message. Does not implicitly {@link Authentication.AddExternalShareRequest.verify|verify} messages. @@ -15158,7 +16246,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Authentication.IAddExternalShareRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Authentication.IAddExternalShareRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified AddExternalShareRequest message, length delimited. Does not implicitly {@link Authentication.AddExternalShareRequest.verify|verify} messages. @@ -15166,7 +16257,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.IAddExternalShareRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.IAddExternalShareRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes an AddExternalShareRequest message from the specified reader or buffer. @@ -15176,7 +16270,10 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.AddExternalShareRequest; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Authentication.AddExternalShareRequest; /** * Decodes an AddExternalShareRequest message from the specified reader or buffer, length delimited. @@ -15185,14 +16282,14 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.AddExternalShareRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Authentication.AddExternalShareRequest; /** * Verifies an AddExternalShareRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an AddExternalShareRequest message from a plain object. Also converts values to their respective internal types. @@ -15207,7 +16304,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.AddExternalShareRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.AddExternalShareRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this AddExternalShareRequest to JSON. @@ -15225,47 +16325,45 @@ export namespace Authentication { /** Properties of an AppClient. */ interface IAppClient { - /** AppClient id */ - id?: (string|null); + id?: string | null; /** AppClient clientId */ - clientId?: (Uint8Array|null); + clientId?: Uint8Array | null; /** AppClient createdOn */ - createdOn?: (number|Long|null); + createdOn?: number | Long | null; /** AppClient firstAccess */ - firstAccess?: (number|Long|null); + firstAccess?: number | Long | null; /** AppClient lastAccess */ - lastAccess?: (number|Long|null); + lastAccess?: number | Long | null; /** AppClient publicKey */ - publicKey?: (Uint8Array|null); + publicKey?: Uint8Array | null; /** AppClient lockIp */ - lockIp?: (boolean|null); + lockIp?: boolean | null; /** AppClient ipAddress */ - ipAddress?: (string|null); + ipAddress?: string | null; /** AppClient firstAccessExpireOn */ - firstAccessExpireOn?: (number|Long|null); + firstAccessExpireOn?: number | Long | null; /** AppClient accessExpireOn */ - accessExpireOn?: (number|Long|null); + accessExpireOn?: number | Long | null; /** AppClient appClientType */ - appClientType?: (Enterprise.AppClientType|null); + appClientType?: Enterprise.AppClientType | null; /** AppClient canEdit */ - canEdit?: (boolean|null); + canEdit?: boolean | null; } /** Represents an AppClient. */ class AppClient implements IAppClient { - /** * Constructs a new AppClient. * @param [properties] Properties to set @@ -15279,13 +16377,13 @@ export namespace Authentication { public clientId: Uint8Array; /** AppClient createdOn. */ - public createdOn: (number|Long); + public createdOn: number | Long; /** AppClient firstAccess. */ - public firstAccess: (number|Long); + public firstAccess: number | Long; /** AppClient lastAccess. */ - public lastAccess: (number|Long); + public lastAccess: number | Long; /** AppClient publicKey. */ public publicKey: Uint8Array; @@ -15297,10 +16395,10 @@ export namespace Authentication { public ipAddress: string; /** AppClient firstAccessExpireOn. */ - public firstAccessExpireOn: (number|Long); + public firstAccessExpireOn: number | Long; /** AppClient accessExpireOn. */ - public accessExpireOn: (number|Long); + public accessExpireOn: number | Long; /** AppClient appClientType. */ public appClientType: Enterprise.AppClientType; @@ -15339,7 +16437,7 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.AppClient; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Authentication.AppClient; /** * Decodes an AppClient message from the specified reader or buffer, length delimited. @@ -15348,14 +16446,14 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.AppClient; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Authentication.AppClient; /** * Verifies an AppClient message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an AppClient message from a plain object. Also converts values to their respective internal types. @@ -15370,7 +16468,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.AppClient, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.AppClient, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this AppClient to JSON. @@ -15388,14 +16489,12 @@ export namespace Authentication { /** Properties of a GetAppInfoRequest. */ interface IGetAppInfoRequest { - /** GetAppInfoRequest appRecordUid */ - appRecordUid?: (Uint8Array[]|null); + appRecordUid?: Uint8Array[] | null; } /** Represents a GetAppInfoRequest. */ class GetAppInfoRequest implements IGetAppInfoRequest { - /** * Constructs a new GetAppInfoRequest. * @param [properties] Properties to set @@ -15426,7 +16525,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.IGetAppInfoRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.IGetAppInfoRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a GetAppInfoRequest message from the specified reader or buffer. @@ -15436,7 +16538,7 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.GetAppInfoRequest; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Authentication.GetAppInfoRequest; /** * Decodes a GetAppInfoRequest message from the specified reader or buffer, length delimited. @@ -15445,14 +16547,14 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.GetAppInfoRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Authentication.GetAppInfoRequest; /** * Verifies a GetAppInfoRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a GetAppInfoRequest message from a plain object. Also converts values to their respective internal types. @@ -15467,7 +16569,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.GetAppInfoRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.GetAppInfoRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this GetAppInfoRequest to JSON. @@ -15485,23 +16590,21 @@ export namespace Authentication { /** Properties of an AppInfo. */ interface IAppInfo { - /** AppInfo appRecordUid */ - appRecordUid?: (Uint8Array|null); + appRecordUid?: Uint8Array | null; /** AppInfo shares */ - shares?: (Authentication.IAppShare[]|null); + shares?: Authentication.IAppShare[] | null; /** AppInfo clients */ - clients?: (Authentication.IAppClient[]|null); + clients?: Authentication.IAppClient[] | null; /** AppInfo isExternalShare */ - isExternalShare?: (boolean|null); + isExternalShare?: boolean | null; } /** Represents an AppInfo. */ class AppInfo implements IAppInfo { - /** * Constructs a new AppInfo. * @param [properties] Properties to set @@ -15551,7 +16654,7 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.AppInfo; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Authentication.AppInfo; /** * Decodes an AppInfo message from the specified reader or buffer, length delimited. @@ -15560,14 +16663,14 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.AppInfo; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Authentication.AppInfo; /** * Verifies an AppInfo message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an AppInfo message from a plain object. Also converts values to their respective internal types. @@ -15582,7 +16685,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.AppInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.AppInfo, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this AppInfo to JSON. @@ -15600,14 +16706,12 @@ export namespace Authentication { /** Properties of a GetAppInfoResponse. */ interface IGetAppInfoResponse { - /** GetAppInfoResponse appInfo */ - appInfo?: (Authentication.IAppInfo[]|null); + appInfo?: Authentication.IAppInfo[] | null; } /** Represents a GetAppInfoResponse. */ class GetAppInfoResponse implements IGetAppInfoResponse { - /** * Constructs a new GetAppInfoResponse. * @param [properties] Properties to set @@ -15638,7 +16742,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.IGetAppInfoResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.IGetAppInfoResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a GetAppInfoResponse message from the specified reader or buffer. @@ -15648,7 +16755,7 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.GetAppInfoResponse; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Authentication.GetAppInfoResponse; /** * Decodes a GetAppInfoResponse message from the specified reader or buffer, length delimited. @@ -15657,14 +16764,14 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.GetAppInfoResponse; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Authentication.GetAppInfoResponse; /** * Verifies a GetAppInfoResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a GetAppInfoResponse message from a plain object. Also converts values to their respective internal types. @@ -15679,7 +16786,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.GetAppInfoResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.GetAppInfoResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this GetAppInfoResponse to JSON. @@ -15697,38 +16807,36 @@ export namespace Authentication { /** Properties of an ApplicationSummary. */ interface IApplicationSummary { - /** ApplicationSummary appRecordUid */ - appRecordUid?: (Uint8Array|null); + appRecordUid?: Uint8Array | null; /** ApplicationSummary lastAccess */ - lastAccess?: (number|Long|null); + lastAccess?: number | Long | null; /** ApplicationSummary recordShares */ - recordShares?: (number|null); + recordShares?: number | null; /** ApplicationSummary folderShares */ - folderShares?: (number|null); + folderShares?: number | null; /** ApplicationSummary folderRecords */ - folderRecords?: (number|null); + folderRecords?: number | null; /** ApplicationSummary clientCount */ - clientCount?: (number|null); + clientCount?: number | null; /** ApplicationSummary expiredClientCount */ - expiredClientCount?: (number|null); + expiredClientCount?: number | null; /** ApplicationSummary username */ - username?: (string|null); + username?: string | null; /** ApplicationSummary appData */ - appData?: (Uint8Array|null); + appData?: Uint8Array | null; } /** Represents an ApplicationSummary. */ class ApplicationSummary implements IApplicationSummary { - /** * Constructs a new ApplicationSummary. * @param [properties] Properties to set @@ -15739,7 +16847,7 @@ export namespace Authentication { public appRecordUid: Uint8Array; /** ApplicationSummary lastAccess. */ - public lastAccess: (number|Long); + public lastAccess: number | Long; /** ApplicationSummary recordShares. */ public recordShares: number; @@ -15783,7 +16891,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.IApplicationSummary, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.IApplicationSummary, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes an ApplicationSummary message from the specified reader or buffer. @@ -15793,7 +16904,7 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.ApplicationSummary; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Authentication.ApplicationSummary; /** * Decodes an ApplicationSummary message from the specified reader or buffer, length delimited. @@ -15802,14 +16913,14 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.ApplicationSummary; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Authentication.ApplicationSummary; /** * Verifies an ApplicationSummary message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an ApplicationSummary message from a plain object. Also converts values to their respective internal types. @@ -15824,7 +16935,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.ApplicationSummary, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.ApplicationSummary, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this ApplicationSummary to JSON. @@ -15842,14 +16956,12 @@ export namespace Authentication { /** Properties of a GetApplicationsSummaryResponse. */ interface IGetApplicationsSummaryResponse { - /** GetApplicationsSummaryResponse applicationSummary */ - applicationSummary?: (Authentication.IApplicationSummary[]|null); + applicationSummary?: Authentication.IApplicationSummary[] | null; } /** Represents a GetApplicationsSummaryResponse. */ class GetApplicationsSummaryResponse implements IGetApplicationsSummaryResponse { - /** * Constructs a new GetApplicationsSummaryResponse. * @param [properties] Properties to set @@ -15864,7 +16976,9 @@ export namespace Authentication { * @param [properties] Properties to set * @returns GetApplicationsSummaryResponse instance */ - public static create(properties?: Authentication.IGetApplicationsSummaryResponse): Authentication.GetApplicationsSummaryResponse; + public static create( + properties?: Authentication.IGetApplicationsSummaryResponse + ): Authentication.GetApplicationsSummaryResponse; /** * Encodes the specified GetApplicationsSummaryResponse message. Does not implicitly {@link Authentication.GetApplicationsSummaryResponse.verify|verify} messages. @@ -15872,7 +16986,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Authentication.IGetApplicationsSummaryResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Authentication.IGetApplicationsSummaryResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified GetApplicationsSummaryResponse message, length delimited. Does not implicitly {@link Authentication.GetApplicationsSummaryResponse.verify|verify} messages. @@ -15880,7 +16997,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.IGetApplicationsSummaryResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.IGetApplicationsSummaryResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a GetApplicationsSummaryResponse message from the specified reader or buffer. @@ -15890,7 +17010,10 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.GetApplicationsSummaryResponse; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Authentication.GetApplicationsSummaryResponse; /** * Decodes a GetApplicationsSummaryResponse message from the specified reader or buffer, length delimited. @@ -15899,14 +17022,16 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.GetApplicationsSummaryResponse; + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array + ): Authentication.GetApplicationsSummaryResponse; /** * Verifies a GetApplicationsSummaryResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a GetApplicationsSummaryResponse message from a plain object. Also converts values to their respective internal types. @@ -15921,7 +17046,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.GetApplicationsSummaryResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.GetApplicationsSummaryResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this GetApplicationsSummaryResponse to JSON. @@ -15939,14 +17067,12 @@ export namespace Authentication { /** Properties of a GetVerificationTokenRequest. */ interface IGetVerificationTokenRequest { - /** GetVerificationTokenRequest username */ - username?: (string|null); + username?: string | null; } /** Represents a GetVerificationTokenRequest. */ class GetVerificationTokenRequest implements IGetVerificationTokenRequest { - /** * Constructs a new GetVerificationTokenRequest. * @param [properties] Properties to set @@ -15961,7 +17087,9 @@ export namespace Authentication { * @param [properties] Properties to set * @returns GetVerificationTokenRequest instance */ - public static create(properties?: Authentication.IGetVerificationTokenRequest): Authentication.GetVerificationTokenRequest; + public static create( + properties?: Authentication.IGetVerificationTokenRequest + ): Authentication.GetVerificationTokenRequest; /** * Encodes the specified GetVerificationTokenRequest message. Does not implicitly {@link Authentication.GetVerificationTokenRequest.verify|verify} messages. @@ -15969,7 +17097,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Authentication.IGetVerificationTokenRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Authentication.IGetVerificationTokenRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified GetVerificationTokenRequest message, length delimited. Does not implicitly {@link Authentication.GetVerificationTokenRequest.verify|verify} messages. @@ -15977,7 +17108,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.IGetVerificationTokenRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.IGetVerificationTokenRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a GetVerificationTokenRequest message from the specified reader or buffer. @@ -15987,7 +17121,10 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.GetVerificationTokenRequest; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Authentication.GetVerificationTokenRequest; /** * Decodes a GetVerificationTokenRequest message from the specified reader or buffer, length delimited. @@ -15996,14 +17133,16 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.GetVerificationTokenRequest; + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array + ): Authentication.GetVerificationTokenRequest; /** * Verifies a GetVerificationTokenRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a GetVerificationTokenRequest message from a plain object. Also converts values to their respective internal types. @@ -16018,7 +17157,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.GetVerificationTokenRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.GetVerificationTokenRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this GetVerificationTokenRequest to JSON. @@ -16036,14 +17178,12 @@ export namespace Authentication { /** Properties of a GetVerificationTokenResponse. */ interface IGetVerificationTokenResponse { - /** GetVerificationTokenResponse encryptedVerificationToken */ - encryptedVerificationToken?: (Uint8Array|null); + encryptedVerificationToken?: Uint8Array | null; } /** Represents a GetVerificationTokenResponse. */ class GetVerificationTokenResponse implements IGetVerificationTokenResponse { - /** * Constructs a new GetVerificationTokenResponse. * @param [properties] Properties to set @@ -16058,7 +17198,9 @@ export namespace Authentication { * @param [properties] Properties to set * @returns GetVerificationTokenResponse instance */ - public static create(properties?: Authentication.IGetVerificationTokenResponse): Authentication.GetVerificationTokenResponse; + public static create( + properties?: Authentication.IGetVerificationTokenResponse + ): Authentication.GetVerificationTokenResponse; /** * Encodes the specified GetVerificationTokenResponse message. Does not implicitly {@link Authentication.GetVerificationTokenResponse.verify|verify} messages. @@ -16066,7 +17208,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Authentication.IGetVerificationTokenResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Authentication.IGetVerificationTokenResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified GetVerificationTokenResponse message, length delimited. Does not implicitly {@link Authentication.GetVerificationTokenResponse.verify|verify} messages. @@ -16074,7 +17219,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.IGetVerificationTokenResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.IGetVerificationTokenResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a GetVerificationTokenResponse message from the specified reader or buffer. @@ -16084,7 +17232,10 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.GetVerificationTokenResponse; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Authentication.GetVerificationTokenResponse; /** * Decodes a GetVerificationTokenResponse message from the specified reader or buffer, length delimited. @@ -16093,14 +17244,16 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.GetVerificationTokenResponse; + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array + ): Authentication.GetVerificationTokenResponse; /** * Verifies a GetVerificationTokenResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a GetVerificationTokenResponse message from a plain object. Also converts values to their respective internal types. @@ -16115,7 +17268,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.GetVerificationTokenResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.GetVerificationTokenResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this GetVerificationTokenResponse to JSON. @@ -16133,14 +17289,12 @@ export namespace Authentication { /** Properties of a SendShareInviteRequest. */ interface ISendShareInviteRequest { - /** SendShareInviteRequest email */ - email?: (string|null); + email?: string | null; } /** Represents a SendShareInviteRequest. */ class SendShareInviteRequest implements ISendShareInviteRequest { - /** * Constructs a new SendShareInviteRequest. * @param [properties] Properties to set @@ -16155,7 +17309,9 @@ export namespace Authentication { * @param [properties] Properties to set * @returns SendShareInviteRequest instance */ - public static create(properties?: Authentication.ISendShareInviteRequest): Authentication.SendShareInviteRequest; + public static create( + properties?: Authentication.ISendShareInviteRequest + ): Authentication.SendShareInviteRequest; /** * Encodes the specified SendShareInviteRequest message. Does not implicitly {@link Authentication.SendShareInviteRequest.verify|verify} messages. @@ -16163,7 +17319,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Authentication.ISendShareInviteRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Authentication.ISendShareInviteRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified SendShareInviteRequest message, length delimited. Does not implicitly {@link Authentication.SendShareInviteRequest.verify|verify} messages. @@ -16171,7 +17330,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.ISendShareInviteRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.ISendShareInviteRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a SendShareInviteRequest message from the specified reader or buffer. @@ -16181,7 +17343,10 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.SendShareInviteRequest; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Authentication.SendShareInviteRequest; /** * Decodes a SendShareInviteRequest message from the specified reader or buffer, length delimited. @@ -16190,14 +17355,14 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.SendShareInviteRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Authentication.SendShareInviteRequest; /** * Verifies a SendShareInviteRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a SendShareInviteRequest message from a plain object. Also converts values to their respective internal types. @@ -16212,7 +17377,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.SendShareInviteRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.SendShareInviteRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this SendShareInviteRequest to JSON. @@ -16233,34 +17401,32 @@ export namespace Authentication { INVALID_TIME_LIMITED_ACCESS_TYPE = 0, USER_ACCESS_TO_RECORD = 1, USER_OR_TEAM_ACCESS_TO_SHAREDFOLDER = 2, - RECORD_ACCESS_TO_SHAREDFOLDER = 3 + RECORD_ACCESS_TO_SHAREDFOLDER = 3, } /** Properties of a TimeLimitedAccessRequest. */ interface ITimeLimitedAccessRequest { - /** TimeLimitedAccessRequest accountUid */ - accountUid?: (Uint8Array[]|null); + accountUid?: Uint8Array[] | null; /** TimeLimitedAccessRequest teamUid */ - teamUid?: (Uint8Array[]|null); + teamUid?: Uint8Array[] | null; /** TimeLimitedAccessRequest recordUid */ - recordUid?: (Uint8Array[]|null); + recordUid?: Uint8Array[] | null; /** TimeLimitedAccessRequest sharedObjectUid */ - sharedObjectUid?: (Uint8Array|null); + sharedObjectUid?: Uint8Array | null; /** TimeLimitedAccessRequest timeLimitedAccessType */ - timeLimitedAccessType?: (Authentication.TimeLimitedAccessType|null); + timeLimitedAccessType?: Authentication.TimeLimitedAccessType | null; /** TimeLimitedAccessRequest expiration */ - expiration?: (number|Long|null); + expiration?: number | Long | null; } /** Represents a TimeLimitedAccessRequest. */ class TimeLimitedAccessRequest implements ITimeLimitedAccessRequest { - /** * Constructs a new TimeLimitedAccessRequest. * @param [properties] Properties to set @@ -16283,14 +17449,16 @@ export namespace Authentication { public timeLimitedAccessType: Authentication.TimeLimitedAccessType; /** TimeLimitedAccessRequest expiration. */ - public expiration: (number|Long); + public expiration: number | Long; /** * Creates a new TimeLimitedAccessRequest instance using the specified properties. * @param [properties] Properties to set * @returns TimeLimitedAccessRequest instance */ - public static create(properties?: Authentication.ITimeLimitedAccessRequest): Authentication.TimeLimitedAccessRequest; + public static create( + properties?: Authentication.ITimeLimitedAccessRequest + ): Authentication.TimeLimitedAccessRequest; /** * Encodes the specified TimeLimitedAccessRequest message. Does not implicitly {@link Authentication.TimeLimitedAccessRequest.verify|verify} messages. @@ -16298,7 +17466,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Authentication.ITimeLimitedAccessRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Authentication.ITimeLimitedAccessRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified TimeLimitedAccessRequest message, length delimited. Does not implicitly {@link Authentication.TimeLimitedAccessRequest.verify|verify} messages. @@ -16306,7 +17477,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.ITimeLimitedAccessRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.ITimeLimitedAccessRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a TimeLimitedAccessRequest message from the specified reader or buffer. @@ -16316,7 +17490,10 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.TimeLimitedAccessRequest; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Authentication.TimeLimitedAccessRequest; /** * Decodes a TimeLimitedAccessRequest message from the specified reader or buffer, length delimited. @@ -16325,14 +17502,14 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.TimeLimitedAccessRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Authentication.TimeLimitedAccessRequest; /** * Verifies a TimeLimitedAccessRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a TimeLimitedAccessRequest message from a plain object. Also converts values to their respective internal types. @@ -16347,7 +17524,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.TimeLimitedAccessRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.TimeLimitedAccessRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this TimeLimitedAccessRequest to JSON. @@ -16365,17 +17545,15 @@ export namespace Authentication { /** Properties of a TimeLimitedAccessStatus. */ interface ITimeLimitedAccessStatus { - /** TimeLimitedAccessStatus uid */ - uid?: (Uint8Array|null); + uid?: Uint8Array | null; /** TimeLimitedAccessStatus message */ - message?: (string|null); + message?: string | null; } /** Represents a TimeLimitedAccessStatus. */ class TimeLimitedAccessStatus implements ITimeLimitedAccessStatus { - /** * Constructs a new TimeLimitedAccessStatus. * @param [properties] Properties to set @@ -16393,7 +17571,9 @@ export namespace Authentication { * @param [properties] Properties to set * @returns TimeLimitedAccessStatus instance */ - public static create(properties?: Authentication.ITimeLimitedAccessStatus): Authentication.TimeLimitedAccessStatus; + public static create( + properties?: Authentication.ITimeLimitedAccessStatus + ): Authentication.TimeLimitedAccessStatus; /** * Encodes the specified TimeLimitedAccessStatus message. Does not implicitly {@link Authentication.TimeLimitedAccessStatus.verify|verify} messages. @@ -16401,7 +17581,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Authentication.ITimeLimitedAccessStatus, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Authentication.ITimeLimitedAccessStatus, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified TimeLimitedAccessStatus message, length delimited. Does not implicitly {@link Authentication.TimeLimitedAccessStatus.verify|verify} messages. @@ -16409,7 +17592,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.ITimeLimitedAccessStatus, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.ITimeLimitedAccessStatus, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a TimeLimitedAccessStatus message from the specified reader or buffer. @@ -16419,7 +17605,10 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.TimeLimitedAccessStatus; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Authentication.TimeLimitedAccessStatus; /** * Decodes a TimeLimitedAccessStatus message from the specified reader or buffer, length delimited. @@ -16428,14 +17617,14 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.TimeLimitedAccessStatus; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Authentication.TimeLimitedAccessStatus; /** * Verifies a TimeLimitedAccessStatus message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a TimeLimitedAccessStatus message from a plain object. Also converts values to their respective internal types. @@ -16450,7 +17639,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.TimeLimitedAccessStatus, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.TimeLimitedAccessStatus, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this TimeLimitedAccessStatus to JSON. @@ -16468,23 +17660,21 @@ export namespace Authentication { /** Properties of a TimeLimitedAccessResponse. */ interface ITimeLimitedAccessResponse { - /** TimeLimitedAccessResponse revision */ - revision?: (number|Long|null); + revision?: number | Long | null; /** TimeLimitedAccessResponse userAccessStatus */ - userAccessStatus?: (Authentication.ITimeLimitedAccessStatus[]|null); + userAccessStatus?: Authentication.ITimeLimitedAccessStatus[] | null; /** TimeLimitedAccessResponse teamAccessStatus */ - teamAccessStatus?: (Authentication.ITimeLimitedAccessStatus[]|null); + teamAccessStatus?: Authentication.ITimeLimitedAccessStatus[] | null; /** TimeLimitedAccessResponse recordAccessStatus */ - recordAccessStatus?: (Authentication.ITimeLimitedAccessStatus[]|null); + recordAccessStatus?: Authentication.ITimeLimitedAccessStatus[] | null; } /** Represents a TimeLimitedAccessResponse. */ class TimeLimitedAccessResponse implements ITimeLimitedAccessResponse { - /** * Constructs a new TimeLimitedAccessResponse. * @param [properties] Properties to set @@ -16492,7 +17682,7 @@ export namespace Authentication { constructor(properties?: Authentication.ITimeLimitedAccessResponse); /** TimeLimitedAccessResponse revision. */ - public revision: (number|Long); + public revision: number | Long; /** TimeLimitedAccessResponse userAccessStatus. */ public userAccessStatus: Authentication.ITimeLimitedAccessStatus[]; @@ -16508,7 +17698,9 @@ export namespace Authentication { * @param [properties] Properties to set * @returns TimeLimitedAccessResponse instance */ - public static create(properties?: Authentication.ITimeLimitedAccessResponse): Authentication.TimeLimitedAccessResponse; + public static create( + properties?: Authentication.ITimeLimitedAccessResponse + ): Authentication.TimeLimitedAccessResponse; /** * Encodes the specified TimeLimitedAccessResponse message. Does not implicitly {@link Authentication.TimeLimitedAccessResponse.verify|verify} messages. @@ -16516,7 +17708,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Authentication.ITimeLimitedAccessResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Authentication.ITimeLimitedAccessResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified TimeLimitedAccessResponse message, length delimited. Does not implicitly {@link Authentication.TimeLimitedAccessResponse.verify|verify} messages. @@ -16524,7 +17719,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.ITimeLimitedAccessResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.ITimeLimitedAccessResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a TimeLimitedAccessResponse message from the specified reader or buffer. @@ -16534,7 +17732,10 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.TimeLimitedAccessResponse; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Authentication.TimeLimitedAccessResponse; /** * Decodes a TimeLimitedAccessResponse message from the specified reader or buffer, length delimited. @@ -16543,14 +17744,14 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.TimeLimitedAccessResponse; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Authentication.TimeLimitedAccessResponse; /** * Verifies a TimeLimitedAccessResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a TimeLimitedAccessResponse message from a plain object. Also converts values to their respective internal types. @@ -16565,7 +17766,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.TimeLimitedAccessResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.TimeLimitedAccessResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this TimeLimitedAccessResponse to JSON. @@ -16583,14 +17787,12 @@ export namespace Authentication { /** Properties of a RequestDownloadRequest. */ interface IRequestDownloadRequest { - /** RequestDownloadRequest fileNames */ - fileNames?: (string[]|null); + fileNames?: string[] | null; } /** Represents a RequestDownloadRequest. */ class RequestDownloadRequest implements IRequestDownloadRequest { - /** * Constructs a new RequestDownloadRequest. * @param [properties] Properties to set @@ -16605,7 +17807,9 @@ export namespace Authentication { * @param [properties] Properties to set * @returns RequestDownloadRequest instance */ - public static create(properties?: Authentication.IRequestDownloadRequest): Authentication.RequestDownloadRequest; + public static create( + properties?: Authentication.IRequestDownloadRequest + ): Authentication.RequestDownloadRequest; /** * Encodes the specified RequestDownloadRequest message. Does not implicitly {@link Authentication.RequestDownloadRequest.verify|verify} messages. @@ -16613,7 +17817,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Authentication.IRequestDownloadRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Authentication.IRequestDownloadRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified RequestDownloadRequest message, length delimited. Does not implicitly {@link Authentication.RequestDownloadRequest.verify|verify} messages. @@ -16621,7 +17828,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.IRequestDownloadRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.IRequestDownloadRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a RequestDownloadRequest message from the specified reader or buffer. @@ -16631,7 +17841,10 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.RequestDownloadRequest; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Authentication.RequestDownloadRequest; /** * Decodes a RequestDownloadRequest message from the specified reader or buffer, length delimited. @@ -16640,14 +17853,14 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.RequestDownloadRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Authentication.RequestDownloadRequest; /** * Verifies a RequestDownloadRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a RequestDownloadRequest message from a plain object. Also converts values to their respective internal types. @@ -16662,7 +17875,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.RequestDownloadRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.RequestDownloadRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this RequestDownloadRequest to JSON. @@ -16680,20 +17896,18 @@ export namespace Authentication { /** Properties of a RequestDownloadResponse. */ interface IRequestDownloadResponse { - /** RequestDownloadResponse result */ - result?: (string|null); + result?: string | null; /** RequestDownloadResponse message */ - message?: (string|null); + message?: string | null; /** RequestDownloadResponse downloads */ - downloads?: (Authentication.IDownload[]|null); + downloads?: Authentication.IDownload[] | null; } /** Represents a RequestDownloadResponse. */ class RequestDownloadResponse implements IRequestDownloadResponse { - /** * Constructs a new RequestDownloadResponse. * @param [properties] Properties to set @@ -16714,7 +17928,9 @@ export namespace Authentication { * @param [properties] Properties to set * @returns RequestDownloadResponse instance */ - public static create(properties?: Authentication.IRequestDownloadResponse): Authentication.RequestDownloadResponse; + public static create( + properties?: Authentication.IRequestDownloadResponse + ): Authentication.RequestDownloadResponse; /** * Encodes the specified RequestDownloadResponse message. Does not implicitly {@link Authentication.RequestDownloadResponse.verify|verify} messages. @@ -16722,7 +17938,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Authentication.IRequestDownloadResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Authentication.IRequestDownloadResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified RequestDownloadResponse message, length delimited. Does not implicitly {@link Authentication.RequestDownloadResponse.verify|verify} messages. @@ -16730,7 +17949,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.IRequestDownloadResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.IRequestDownloadResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a RequestDownloadResponse message from the specified reader or buffer. @@ -16740,7 +17962,10 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.RequestDownloadResponse; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Authentication.RequestDownloadResponse; /** * Decodes a RequestDownloadResponse message from the specified reader or buffer, length delimited. @@ -16749,14 +17974,14 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.RequestDownloadResponse; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Authentication.RequestDownloadResponse; /** * Verifies a RequestDownloadResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a RequestDownloadResponse message from a plain object. Also converts values to their respective internal types. @@ -16771,7 +17996,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.RequestDownloadResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.RequestDownloadResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this RequestDownloadResponse to JSON. @@ -16789,20 +18017,18 @@ export namespace Authentication { /** Properties of a Download. */ interface IDownload { - /** Download fileName */ - fileName?: (string|null); + fileName?: string | null; /** Download url */ - url?: (string|null); + url?: string | null; /** Download successStatusCode */ - successStatusCode?: (number|null); + successStatusCode?: number | null; } /** Represents a Download. */ class Download implements IDownload { - /** * Constructs a new Download. * @param [properties] Properties to set @@ -16849,7 +18075,7 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.Download; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Authentication.Download; /** * Decodes a Download message from the specified reader or buffer, length delimited. @@ -16858,14 +18084,14 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.Download; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Authentication.Download; /** * Verifies a Download message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a Download message from a plain object. Also converts values to their respective internal types. @@ -16880,7 +18106,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.Download, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.Download, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this Download to JSON. @@ -16898,14 +18127,12 @@ export namespace Authentication { /** Properties of a DeleteUserRequest. */ interface IDeleteUserRequest { - /** DeleteUserRequest reason */ - reason?: (string|null); + reason?: string | null; } /** Represents a DeleteUserRequest. */ class DeleteUserRequest implements IDeleteUserRequest { - /** * Constructs a new DeleteUserRequest. * @param [properties] Properties to set @@ -16936,7 +18163,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.IDeleteUserRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.IDeleteUserRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a DeleteUserRequest message from the specified reader or buffer. @@ -16946,7 +18176,7 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.DeleteUserRequest; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Authentication.DeleteUserRequest; /** * Decodes a DeleteUserRequest message from the specified reader or buffer, length delimited. @@ -16955,14 +18185,14 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.DeleteUserRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Authentication.DeleteUserRequest; /** * Verifies a DeleteUserRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a DeleteUserRequest message from a plain object. Also converts values to their respective internal types. @@ -16977,7 +18207,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.DeleteUserRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.DeleteUserRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this DeleteUserRequest to JSON. @@ -16995,23 +18228,21 @@ export namespace Authentication { /** Properties of a ChangeMasterPasswordRequest. */ interface IChangeMasterPasswordRequest { - /** ChangeMasterPasswordRequest authVerifier */ - authVerifier?: (Uint8Array|null); + authVerifier?: Uint8Array | null; /** ChangeMasterPasswordRequest encryptionParams */ - encryptionParams?: (Uint8Array|null); + encryptionParams?: Uint8Array | null; /** ChangeMasterPasswordRequest fromServiceProvider */ - fromServiceProvider?: (boolean|null); + fromServiceProvider?: boolean | null; /** ChangeMasterPasswordRequest iterationsChange */ - iterationsChange?: (boolean|null); + iterationsChange?: boolean | null; } /** Represents a ChangeMasterPasswordRequest. */ class ChangeMasterPasswordRequest implements IChangeMasterPasswordRequest { - /** * Constructs a new ChangeMasterPasswordRequest. * @param [properties] Properties to set @@ -17035,7 +18266,9 @@ export namespace Authentication { * @param [properties] Properties to set * @returns ChangeMasterPasswordRequest instance */ - public static create(properties?: Authentication.IChangeMasterPasswordRequest): Authentication.ChangeMasterPasswordRequest; + public static create( + properties?: Authentication.IChangeMasterPasswordRequest + ): Authentication.ChangeMasterPasswordRequest; /** * Encodes the specified ChangeMasterPasswordRequest message. Does not implicitly {@link Authentication.ChangeMasterPasswordRequest.verify|verify} messages. @@ -17043,7 +18276,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Authentication.IChangeMasterPasswordRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Authentication.IChangeMasterPasswordRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified ChangeMasterPasswordRequest message, length delimited. Does not implicitly {@link Authentication.ChangeMasterPasswordRequest.verify|verify} messages. @@ -17051,7 +18287,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.IChangeMasterPasswordRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.IChangeMasterPasswordRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a ChangeMasterPasswordRequest message from the specified reader or buffer. @@ -17061,7 +18300,10 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.ChangeMasterPasswordRequest; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Authentication.ChangeMasterPasswordRequest; /** * Decodes a ChangeMasterPasswordRequest message from the specified reader or buffer, length delimited. @@ -17070,14 +18312,16 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.ChangeMasterPasswordRequest; + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array + ): Authentication.ChangeMasterPasswordRequest; /** * Verifies a ChangeMasterPasswordRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a ChangeMasterPasswordRequest message from a plain object. Also converts values to their respective internal types. @@ -17092,7 +18336,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.ChangeMasterPasswordRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.ChangeMasterPasswordRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this ChangeMasterPasswordRequest to JSON. @@ -17110,14 +18357,12 @@ export namespace Authentication { /** Properties of a ChangeMasterPasswordResponse. */ interface IChangeMasterPasswordResponse { - /** ChangeMasterPasswordResponse encryptedSessionToken */ - encryptedSessionToken?: (Uint8Array|null); + encryptedSessionToken?: Uint8Array | null; } /** Represents a ChangeMasterPasswordResponse. */ class ChangeMasterPasswordResponse implements IChangeMasterPasswordResponse { - /** * Constructs a new ChangeMasterPasswordResponse. * @param [properties] Properties to set @@ -17132,7 +18377,9 @@ export namespace Authentication { * @param [properties] Properties to set * @returns ChangeMasterPasswordResponse instance */ - public static create(properties?: Authentication.IChangeMasterPasswordResponse): Authentication.ChangeMasterPasswordResponse; + public static create( + properties?: Authentication.IChangeMasterPasswordResponse + ): Authentication.ChangeMasterPasswordResponse; /** * Encodes the specified ChangeMasterPasswordResponse message. Does not implicitly {@link Authentication.ChangeMasterPasswordResponse.verify|verify} messages. @@ -17140,7 +18387,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Authentication.IChangeMasterPasswordResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Authentication.IChangeMasterPasswordResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified ChangeMasterPasswordResponse message, length delimited. Does not implicitly {@link Authentication.ChangeMasterPasswordResponse.verify|verify} messages. @@ -17148,7 +18398,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.IChangeMasterPasswordResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.IChangeMasterPasswordResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a ChangeMasterPasswordResponse message from the specified reader or buffer. @@ -17158,7 +18411,10 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.ChangeMasterPasswordResponse; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Authentication.ChangeMasterPasswordResponse; /** * Decodes a ChangeMasterPasswordResponse message from the specified reader or buffer, length delimited. @@ -17167,14 +18423,16 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.ChangeMasterPasswordResponse; + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array + ): Authentication.ChangeMasterPasswordResponse; /** * Verifies a ChangeMasterPasswordResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a ChangeMasterPasswordResponse message from a plain object. Also converts values to their respective internal types. @@ -17189,7 +18447,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.ChangeMasterPasswordResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.ChangeMasterPasswordResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this ChangeMasterPasswordResponse to JSON. @@ -17207,17 +18468,15 @@ export namespace Authentication { /** Properties of an AccountRecoverySetupRequest. */ interface IAccountRecoverySetupRequest { - /** AccountRecoverySetupRequest recoveryEncryptedDataKey */ - recoveryEncryptedDataKey?: (Uint8Array|null); + recoveryEncryptedDataKey?: Uint8Array | null; /** AccountRecoverySetupRequest recoveryAuthHash */ - recoveryAuthHash?: (Uint8Array|null); + recoveryAuthHash?: Uint8Array | null; } /** Represents an AccountRecoverySetupRequest. */ class AccountRecoverySetupRequest implements IAccountRecoverySetupRequest { - /** * Constructs a new AccountRecoverySetupRequest. * @param [properties] Properties to set @@ -17235,7 +18494,9 @@ export namespace Authentication { * @param [properties] Properties to set * @returns AccountRecoverySetupRequest instance */ - public static create(properties?: Authentication.IAccountRecoverySetupRequest): Authentication.AccountRecoverySetupRequest; + public static create( + properties?: Authentication.IAccountRecoverySetupRequest + ): Authentication.AccountRecoverySetupRequest; /** * Encodes the specified AccountRecoverySetupRequest message. Does not implicitly {@link Authentication.AccountRecoverySetupRequest.verify|verify} messages. @@ -17243,7 +18504,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Authentication.IAccountRecoverySetupRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Authentication.IAccountRecoverySetupRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified AccountRecoverySetupRequest message, length delimited. Does not implicitly {@link Authentication.AccountRecoverySetupRequest.verify|verify} messages. @@ -17251,7 +18515,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.IAccountRecoverySetupRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.IAccountRecoverySetupRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes an AccountRecoverySetupRequest message from the specified reader or buffer. @@ -17261,7 +18528,10 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.AccountRecoverySetupRequest; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Authentication.AccountRecoverySetupRequest; /** * Decodes an AccountRecoverySetupRequest message from the specified reader or buffer, length delimited. @@ -17270,14 +18540,16 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.AccountRecoverySetupRequest; + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array + ): Authentication.AccountRecoverySetupRequest; /** * Verifies an AccountRecoverySetupRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an AccountRecoverySetupRequest message from a plain object. Also converts values to their respective internal types. @@ -17292,7 +18564,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.AccountRecoverySetupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.AccountRecoverySetupRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this AccountRecoverySetupRequest to JSON. @@ -17311,31 +18586,29 @@ export namespace Authentication { /** BackupKeyType enum. */ enum BackupKeyType { BKT_SEC_ANSWER = 0, - BKT_PASSPHRASE_HASH = 1 + BKT_PASSPHRASE_HASH = 1, } /** Properties of an AccountRecoveryVerifyCodeResponse. */ interface IAccountRecoveryVerifyCodeResponse { - /** AccountRecoveryVerifyCodeResponse backupKeyType */ - backupKeyType?: (Authentication.BackupKeyType|null); + backupKeyType?: Authentication.BackupKeyType | null; /** AccountRecoveryVerifyCodeResponse backupKeyDate */ - backupKeyDate?: (number|Long|null); + backupKeyDate?: number | Long | null; /** AccountRecoveryVerifyCodeResponse securityQuestion */ - securityQuestion?: (string|null); + securityQuestion?: string | null; /** AccountRecoveryVerifyCodeResponse salt */ - salt?: (Uint8Array|null); + salt?: Uint8Array | null; /** AccountRecoveryVerifyCodeResponse iterations */ - iterations?: (number|null); + iterations?: number | null; } /** Represents an AccountRecoveryVerifyCodeResponse. */ class AccountRecoveryVerifyCodeResponse implements IAccountRecoveryVerifyCodeResponse { - /** * Constructs a new AccountRecoveryVerifyCodeResponse. * @param [properties] Properties to set @@ -17346,7 +18619,7 @@ export namespace Authentication { public backupKeyType: Authentication.BackupKeyType; /** AccountRecoveryVerifyCodeResponse backupKeyDate. */ - public backupKeyDate: (number|Long); + public backupKeyDate: number | Long; /** AccountRecoveryVerifyCodeResponse securityQuestion. */ public securityQuestion: string; @@ -17362,7 +18635,9 @@ export namespace Authentication { * @param [properties] Properties to set * @returns AccountRecoveryVerifyCodeResponse instance */ - public static create(properties?: Authentication.IAccountRecoveryVerifyCodeResponse): Authentication.AccountRecoveryVerifyCodeResponse; + public static create( + properties?: Authentication.IAccountRecoveryVerifyCodeResponse + ): Authentication.AccountRecoveryVerifyCodeResponse; /** * Encodes the specified AccountRecoveryVerifyCodeResponse message. Does not implicitly {@link Authentication.AccountRecoveryVerifyCodeResponse.verify|verify} messages. @@ -17370,7 +18645,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Authentication.IAccountRecoveryVerifyCodeResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Authentication.IAccountRecoveryVerifyCodeResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified AccountRecoveryVerifyCodeResponse message, length delimited. Does not implicitly {@link Authentication.AccountRecoveryVerifyCodeResponse.verify|verify} messages. @@ -17378,7 +18656,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.IAccountRecoveryVerifyCodeResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.IAccountRecoveryVerifyCodeResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes an AccountRecoveryVerifyCodeResponse message from the specified reader or buffer. @@ -17388,7 +18669,10 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.AccountRecoveryVerifyCodeResponse; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Authentication.AccountRecoveryVerifyCodeResponse; /** * Decodes an AccountRecoveryVerifyCodeResponse message from the specified reader or buffer, length delimited. @@ -17397,14 +18681,16 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.AccountRecoveryVerifyCodeResponse; + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array + ): Authentication.AccountRecoveryVerifyCodeResponse; /** * Verifies an AccountRecoveryVerifyCodeResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an AccountRecoveryVerifyCodeResponse message from a plain object. Also converts values to their respective internal types. @@ -17419,7 +18705,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.AccountRecoveryVerifyCodeResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.AccountRecoveryVerifyCodeResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this AccountRecoveryVerifyCodeResponse to JSON. @@ -17437,14 +18726,12 @@ export namespace Authentication { /** Properties of an EmergencyAccessLoginRequest. */ interface IEmergencyAccessLoginRequest { - /** EmergencyAccessLoginRequest owner */ - owner?: (string|null); + owner?: string | null; } /** Represents an EmergencyAccessLoginRequest. */ class EmergencyAccessLoginRequest implements IEmergencyAccessLoginRequest { - /** * Constructs a new EmergencyAccessLoginRequest. * @param [properties] Properties to set @@ -17459,7 +18746,9 @@ export namespace Authentication { * @param [properties] Properties to set * @returns EmergencyAccessLoginRequest instance */ - public static create(properties?: Authentication.IEmergencyAccessLoginRequest): Authentication.EmergencyAccessLoginRequest; + public static create( + properties?: Authentication.IEmergencyAccessLoginRequest + ): Authentication.EmergencyAccessLoginRequest; /** * Encodes the specified EmergencyAccessLoginRequest message. Does not implicitly {@link Authentication.EmergencyAccessLoginRequest.verify|verify} messages. @@ -17467,7 +18756,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Authentication.IEmergencyAccessLoginRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Authentication.IEmergencyAccessLoginRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified EmergencyAccessLoginRequest message, length delimited. Does not implicitly {@link Authentication.EmergencyAccessLoginRequest.verify|verify} messages. @@ -17475,7 +18767,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.IEmergencyAccessLoginRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.IEmergencyAccessLoginRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes an EmergencyAccessLoginRequest message from the specified reader or buffer. @@ -17485,7 +18780,10 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.EmergencyAccessLoginRequest; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Authentication.EmergencyAccessLoginRequest; /** * Decodes an EmergencyAccessLoginRequest message from the specified reader or buffer, length delimited. @@ -17494,14 +18792,16 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.EmergencyAccessLoginRequest; + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array + ): Authentication.EmergencyAccessLoginRequest; /** * Verifies an EmergencyAccessLoginRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an EmergencyAccessLoginRequest message from a plain object. Also converts values to their respective internal types. @@ -17516,7 +18816,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.EmergencyAccessLoginRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.EmergencyAccessLoginRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this EmergencyAccessLoginRequest to JSON. @@ -17534,23 +18837,21 @@ export namespace Authentication { /** Properties of an EmergencyAccessLoginResponse. */ interface IEmergencyAccessLoginResponse { - /** EmergencyAccessLoginResponse sessionToken */ - sessionToken?: (Uint8Array|null); + sessionToken?: Uint8Array | null; /** EmergencyAccessLoginResponse dataKey */ - dataKey?: (Enterprise.ITypedKey|null); + dataKey?: Enterprise.ITypedKey | null; /** EmergencyAccessLoginResponse rsaPrivateKey */ - rsaPrivateKey?: (Enterprise.ITypedKey|null); + rsaPrivateKey?: Enterprise.ITypedKey | null; /** EmergencyAccessLoginResponse eccPrivateKey */ - eccPrivateKey?: (Enterprise.ITypedKey|null); + eccPrivateKey?: Enterprise.ITypedKey | null; } /** Represents an EmergencyAccessLoginResponse. */ class EmergencyAccessLoginResponse implements IEmergencyAccessLoginResponse { - /** * Constructs a new EmergencyAccessLoginResponse. * @param [properties] Properties to set @@ -17561,20 +18862,22 @@ export namespace Authentication { public sessionToken: Uint8Array; /** EmergencyAccessLoginResponse dataKey. */ - public dataKey?: (Enterprise.ITypedKey|null); + public dataKey?: Enterprise.ITypedKey | null; /** EmergencyAccessLoginResponse rsaPrivateKey. */ - public rsaPrivateKey?: (Enterprise.ITypedKey|null); + public rsaPrivateKey?: Enterprise.ITypedKey | null; /** EmergencyAccessLoginResponse eccPrivateKey. */ - public eccPrivateKey?: (Enterprise.ITypedKey|null); + public eccPrivateKey?: Enterprise.ITypedKey | null; /** * Creates a new EmergencyAccessLoginResponse instance using the specified properties. * @param [properties] Properties to set * @returns EmergencyAccessLoginResponse instance */ - public static create(properties?: Authentication.IEmergencyAccessLoginResponse): Authentication.EmergencyAccessLoginResponse; + public static create( + properties?: Authentication.IEmergencyAccessLoginResponse + ): Authentication.EmergencyAccessLoginResponse; /** * Encodes the specified EmergencyAccessLoginResponse message. Does not implicitly {@link Authentication.EmergencyAccessLoginResponse.verify|verify} messages. @@ -17582,7 +18885,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Authentication.IEmergencyAccessLoginResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Authentication.IEmergencyAccessLoginResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified EmergencyAccessLoginResponse message, length delimited. Does not implicitly {@link Authentication.EmergencyAccessLoginResponse.verify|verify} messages. @@ -17590,7 +18896,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.IEmergencyAccessLoginResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.IEmergencyAccessLoginResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes an EmergencyAccessLoginResponse message from the specified reader or buffer. @@ -17600,7 +18909,10 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.EmergencyAccessLoginResponse; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Authentication.EmergencyAccessLoginResponse; /** * Decodes an EmergencyAccessLoginResponse message from the specified reader or buffer, length delimited. @@ -17609,14 +18921,16 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.EmergencyAccessLoginResponse; + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array + ): Authentication.EmergencyAccessLoginResponse; /** * Verifies an EmergencyAccessLoginResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an EmergencyAccessLoginResponse message from a plain object. Also converts values to their respective internal types. @@ -17631,7 +18945,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.EmergencyAccessLoginResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.EmergencyAccessLoginResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this EmergencyAccessLoginResponse to JSON. @@ -17652,34 +18969,32 @@ export namespace Authentication { SUCCESS = 0, INVALID_OBJECT = 1, ALREADY_EXISTS = 2, - ACCESS_DENIED = 3 + ACCESS_DENIED = 3, } /** Properties of a UserTeamKey. */ interface IUserTeamKey { - /** UserTeamKey teamUid */ - teamUid?: (Uint8Array|null); + teamUid?: Uint8Array | null; /** UserTeamKey username */ - username?: (string|null); + username?: string | null; /** UserTeamKey enterpriseUserId */ - enterpriseUserId?: (number|Long|null); + enterpriseUserId?: number | Long | null; /** UserTeamKey encryptedTeamKeyRSA */ - encryptedTeamKeyRSA?: (Uint8Array|null); + encryptedTeamKeyRSA?: Uint8Array | null; /** UserTeamKey encryptedTeamKeyEC */ - encryptedTeamKeyEC?: (Uint8Array|null); + encryptedTeamKeyEC?: Uint8Array | null; /** UserTeamKey status */ - status?: (Authentication.GenericStatus|null); + status?: Authentication.GenericStatus | null; } /** Represents a UserTeamKey. */ class UserTeamKey implements IUserTeamKey { - /** * Constructs a new UserTeamKey. * @param [properties] Properties to set @@ -17693,7 +19008,7 @@ export namespace Authentication { public username: string; /** UserTeamKey enterpriseUserId. */ - public enterpriseUserId: (number|Long); + public enterpriseUserId: number | Long; /** UserTeamKey encryptedTeamKeyRSA. */ public encryptedTeamKeyRSA: Uint8Array; @@ -17725,7 +19040,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.IUserTeamKey, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.IUserTeamKey, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a UserTeamKey message from the specified reader or buffer. @@ -17735,7 +19053,7 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.UserTeamKey; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Authentication.UserTeamKey; /** * Decodes a UserTeamKey message from the specified reader or buffer, length delimited. @@ -17744,14 +19062,14 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.UserTeamKey; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Authentication.UserTeamKey; /** * Verifies a UserTeamKey message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a UserTeamKey message from a plain object. Also converts values to their respective internal types. @@ -17766,7 +19084,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.UserTeamKey, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.UserTeamKey, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this UserTeamKey to JSON. @@ -17784,14 +19105,12 @@ export namespace Authentication { /** Properties of a GenericRequestResponse. */ interface IGenericRequestResponse { - /** GenericRequestResponse request */ - request?: (Uint8Array[]|null); + request?: Uint8Array[] | null; } /** Represents a GenericRequestResponse. */ class GenericRequestResponse implements IGenericRequestResponse { - /** * Constructs a new GenericRequestResponse. * @param [properties] Properties to set @@ -17806,7 +19125,9 @@ export namespace Authentication { * @param [properties] Properties to set * @returns GenericRequestResponse instance */ - public static create(properties?: Authentication.IGenericRequestResponse): Authentication.GenericRequestResponse; + public static create( + properties?: Authentication.IGenericRequestResponse + ): Authentication.GenericRequestResponse; /** * Encodes the specified GenericRequestResponse message. Does not implicitly {@link Authentication.GenericRequestResponse.verify|verify} messages. @@ -17814,7 +19135,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Authentication.IGenericRequestResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Authentication.IGenericRequestResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified GenericRequestResponse message, length delimited. Does not implicitly {@link Authentication.GenericRequestResponse.verify|verify} messages. @@ -17822,7 +19146,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.IGenericRequestResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.IGenericRequestResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a GenericRequestResponse message from the specified reader or buffer. @@ -17832,7 +19159,10 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.GenericRequestResponse; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Authentication.GenericRequestResponse; /** * Decodes a GenericRequestResponse message from the specified reader or buffer, length delimited. @@ -17841,14 +19171,14 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.GenericRequestResponse; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Authentication.GenericRequestResponse; /** * Verifies a GenericRequestResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a GenericRequestResponse message from a plain object. Also converts values to their respective internal types. @@ -17863,7 +19193,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.GenericRequestResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.GenericRequestResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this GenericRequestResponse to JSON. @@ -17883,19 +19216,17 @@ export namespace Authentication { enum AuthenticatorAttachment { CROSS_PLATFORM = 0, PLATFORM = 1, - ALL_SUPPORTED = 2 + ALL_SUPPORTED = 2, } /** Properties of a PasskeyRegistrationRequest. */ interface IPasskeyRegistrationRequest { - /** PasskeyRegistrationRequest authenticatorAttachment */ - authenticatorAttachment?: (Authentication.AuthenticatorAttachment|null); + authenticatorAttachment?: Authentication.AuthenticatorAttachment | null; } /** Represents a PasskeyRegistrationRequest. */ class PasskeyRegistrationRequest implements IPasskeyRegistrationRequest { - /** * Constructs a new PasskeyRegistrationRequest. * @param [properties] Properties to set @@ -17910,7 +19241,9 @@ export namespace Authentication { * @param [properties] Properties to set * @returns PasskeyRegistrationRequest instance */ - public static create(properties?: Authentication.IPasskeyRegistrationRequest): Authentication.PasskeyRegistrationRequest; + public static create( + properties?: Authentication.IPasskeyRegistrationRequest + ): Authentication.PasskeyRegistrationRequest; /** * Encodes the specified PasskeyRegistrationRequest message. Does not implicitly {@link Authentication.PasskeyRegistrationRequest.verify|verify} messages. @@ -17918,7 +19251,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Authentication.IPasskeyRegistrationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Authentication.IPasskeyRegistrationRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified PasskeyRegistrationRequest message, length delimited. Does not implicitly {@link Authentication.PasskeyRegistrationRequest.verify|verify} messages. @@ -17926,7 +19262,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.IPasskeyRegistrationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.IPasskeyRegistrationRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a PasskeyRegistrationRequest message from the specified reader or buffer. @@ -17936,7 +19275,10 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.PasskeyRegistrationRequest; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Authentication.PasskeyRegistrationRequest; /** * Decodes a PasskeyRegistrationRequest message from the specified reader or buffer, length delimited. @@ -17945,14 +19287,14 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.PasskeyRegistrationRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Authentication.PasskeyRegistrationRequest; /** * Verifies a PasskeyRegistrationRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a PasskeyRegistrationRequest message from a plain object. Also converts values to their respective internal types. @@ -17967,7 +19309,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.PasskeyRegistrationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.PasskeyRegistrationRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this PasskeyRegistrationRequest to JSON. @@ -17985,17 +19330,15 @@ export namespace Authentication { /** Properties of a PasskeyRegistrationResponse. */ interface IPasskeyRegistrationResponse { - /** PasskeyRegistrationResponse challengeToken */ - challengeToken?: (Uint8Array|null); + challengeToken?: Uint8Array | null; /** PasskeyRegistrationResponse pkCreationOptions */ - pkCreationOptions?: (string|null); + pkCreationOptions?: string | null; } /** Represents a PasskeyRegistrationResponse. */ class PasskeyRegistrationResponse implements IPasskeyRegistrationResponse { - /** * Constructs a new PasskeyRegistrationResponse. * @param [properties] Properties to set @@ -18013,7 +19356,9 @@ export namespace Authentication { * @param [properties] Properties to set * @returns PasskeyRegistrationResponse instance */ - public static create(properties?: Authentication.IPasskeyRegistrationResponse): Authentication.PasskeyRegistrationResponse; + public static create( + properties?: Authentication.IPasskeyRegistrationResponse + ): Authentication.PasskeyRegistrationResponse; /** * Encodes the specified PasskeyRegistrationResponse message. Does not implicitly {@link Authentication.PasskeyRegistrationResponse.verify|verify} messages. @@ -18021,7 +19366,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Authentication.IPasskeyRegistrationResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Authentication.IPasskeyRegistrationResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified PasskeyRegistrationResponse message, length delimited. Does not implicitly {@link Authentication.PasskeyRegistrationResponse.verify|verify} messages. @@ -18029,7 +19377,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.IPasskeyRegistrationResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.IPasskeyRegistrationResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a PasskeyRegistrationResponse message from the specified reader or buffer. @@ -18039,7 +19390,10 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.PasskeyRegistrationResponse; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Authentication.PasskeyRegistrationResponse; /** * Decodes a PasskeyRegistrationResponse message from the specified reader or buffer, length delimited. @@ -18048,14 +19402,16 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.PasskeyRegistrationResponse; + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array + ): Authentication.PasskeyRegistrationResponse; /** * Verifies a PasskeyRegistrationResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a PasskeyRegistrationResponse message from a plain object. Also converts values to their respective internal types. @@ -18070,7 +19426,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.PasskeyRegistrationResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.PasskeyRegistrationResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this PasskeyRegistrationResponse to JSON. @@ -18088,20 +19447,18 @@ export namespace Authentication { /** Properties of a PasskeyRegistrationFinalization. */ interface IPasskeyRegistrationFinalization { - /** PasskeyRegistrationFinalization challengeToken */ - challengeToken?: (Uint8Array|null); + challengeToken?: Uint8Array | null; /** PasskeyRegistrationFinalization authenticatorResponse */ - authenticatorResponse?: (string|null); + authenticatorResponse?: string | null; /** PasskeyRegistrationFinalization friendlyName */ - friendlyName?: (string|null); + friendlyName?: string | null; } /** Represents a PasskeyRegistrationFinalization. */ class PasskeyRegistrationFinalization implements IPasskeyRegistrationFinalization { - /** * Constructs a new PasskeyRegistrationFinalization. * @param [properties] Properties to set @@ -18115,17 +19472,19 @@ export namespace Authentication { public authenticatorResponse: string; /** PasskeyRegistrationFinalization friendlyName. */ - public friendlyName?: (string|null); + public friendlyName?: string | null; /** PasskeyRegistrationFinalization _friendlyName. */ - public _friendlyName?: "friendlyName"; + public _friendlyName?: 'friendlyName'; /** * Creates a new PasskeyRegistrationFinalization instance using the specified properties. * @param [properties] Properties to set * @returns PasskeyRegistrationFinalization instance */ - public static create(properties?: Authentication.IPasskeyRegistrationFinalization): Authentication.PasskeyRegistrationFinalization; + public static create( + properties?: Authentication.IPasskeyRegistrationFinalization + ): Authentication.PasskeyRegistrationFinalization; /** * Encodes the specified PasskeyRegistrationFinalization message. Does not implicitly {@link Authentication.PasskeyRegistrationFinalization.verify|verify} messages. @@ -18133,7 +19492,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Authentication.IPasskeyRegistrationFinalization, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Authentication.IPasskeyRegistrationFinalization, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified PasskeyRegistrationFinalization message, length delimited. Does not implicitly {@link Authentication.PasskeyRegistrationFinalization.verify|verify} messages. @@ -18141,7 +19503,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.IPasskeyRegistrationFinalization, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.IPasskeyRegistrationFinalization, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a PasskeyRegistrationFinalization message from the specified reader or buffer. @@ -18151,7 +19516,10 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.PasskeyRegistrationFinalization; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Authentication.PasskeyRegistrationFinalization; /** * Decodes a PasskeyRegistrationFinalization message from the specified reader or buffer, length delimited. @@ -18160,14 +19528,16 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.PasskeyRegistrationFinalization; + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array + ): Authentication.PasskeyRegistrationFinalization; /** * Verifies a PasskeyRegistrationFinalization message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a PasskeyRegistrationFinalization message from a plain object. Also converts values to their respective internal types. @@ -18182,7 +19552,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.PasskeyRegistrationFinalization, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.PasskeyRegistrationFinalization, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this PasskeyRegistrationFinalization to JSON. @@ -18201,34 +19574,32 @@ export namespace Authentication { /** PasskeyPurpose enum. */ enum PasskeyPurpose { PK_LOGIN = 0, - PK_REAUTH = 1 + PK_REAUTH = 1, } /** Properties of a PasskeyAuthenticationRequest. */ interface IPasskeyAuthenticationRequest { - /** PasskeyAuthenticationRequest authenticatorAttachment */ - authenticatorAttachment?: (Authentication.AuthenticatorAttachment|null); + authenticatorAttachment?: Authentication.AuthenticatorAttachment | null; /** PasskeyAuthenticationRequest passkeyPurpose */ - passkeyPurpose?: (Authentication.PasskeyPurpose|null); + passkeyPurpose?: Authentication.PasskeyPurpose | null; /** PasskeyAuthenticationRequest clientVersion */ - clientVersion?: (string|null); + clientVersion?: string | null; /** PasskeyAuthenticationRequest encryptedDeviceToken */ - encryptedDeviceToken?: (Uint8Array|null); + encryptedDeviceToken?: Uint8Array | null; /** PasskeyAuthenticationRequest username */ - username?: (string|null); + username?: string | null; /** PasskeyAuthenticationRequest encryptedLoginToken */ - encryptedLoginToken?: (Uint8Array|null); + encryptedLoginToken?: Uint8Array | null; } /** Represents a PasskeyAuthenticationRequest. */ class PasskeyAuthenticationRequest implements IPasskeyAuthenticationRequest { - /** * Constructs a new PasskeyAuthenticationRequest. * @param [properties] Properties to set @@ -18248,23 +19619,25 @@ export namespace Authentication { public encryptedDeviceToken: Uint8Array; /** PasskeyAuthenticationRequest username. */ - public username?: (string|null); + public username?: string | null; /** PasskeyAuthenticationRequest encryptedLoginToken. */ - public encryptedLoginToken?: (Uint8Array|null); + public encryptedLoginToken?: Uint8Array | null; /** PasskeyAuthenticationRequest _username. */ - public _username?: "username"; + public _username?: 'username'; /** PasskeyAuthenticationRequest _encryptedLoginToken. */ - public _encryptedLoginToken?: "encryptedLoginToken"; + public _encryptedLoginToken?: 'encryptedLoginToken'; /** * Creates a new PasskeyAuthenticationRequest instance using the specified properties. * @param [properties] Properties to set * @returns PasskeyAuthenticationRequest instance */ - public static create(properties?: Authentication.IPasskeyAuthenticationRequest): Authentication.PasskeyAuthenticationRequest; + public static create( + properties?: Authentication.IPasskeyAuthenticationRequest + ): Authentication.PasskeyAuthenticationRequest; /** * Encodes the specified PasskeyAuthenticationRequest message. Does not implicitly {@link Authentication.PasskeyAuthenticationRequest.verify|verify} messages. @@ -18272,7 +19645,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Authentication.IPasskeyAuthenticationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Authentication.IPasskeyAuthenticationRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified PasskeyAuthenticationRequest message, length delimited. Does not implicitly {@link Authentication.PasskeyAuthenticationRequest.verify|verify} messages. @@ -18280,7 +19656,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.IPasskeyAuthenticationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.IPasskeyAuthenticationRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a PasskeyAuthenticationRequest message from the specified reader or buffer. @@ -18290,7 +19669,10 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.PasskeyAuthenticationRequest; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Authentication.PasskeyAuthenticationRequest; /** * Decodes a PasskeyAuthenticationRequest message from the specified reader or buffer, length delimited. @@ -18299,14 +19681,16 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.PasskeyAuthenticationRequest; + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array + ): Authentication.PasskeyAuthenticationRequest; /** * Verifies a PasskeyAuthenticationRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a PasskeyAuthenticationRequest message from a plain object. Also converts values to their respective internal types. @@ -18321,7 +19705,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.PasskeyAuthenticationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.PasskeyAuthenticationRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this PasskeyAuthenticationRequest to JSON. @@ -18339,20 +19726,18 @@ export namespace Authentication { /** Properties of a PasskeyAuthenticationResponse. */ interface IPasskeyAuthenticationResponse { - /** PasskeyAuthenticationResponse pkRequestOptions */ - pkRequestOptions?: (string|null); + pkRequestOptions?: string | null; /** PasskeyAuthenticationResponse challengeToken */ - challengeToken?: (Uint8Array|null); + challengeToken?: Uint8Array | null; /** PasskeyAuthenticationResponse encryptedLoginToken */ - encryptedLoginToken?: (Uint8Array|null); + encryptedLoginToken?: Uint8Array | null; } /** Represents a PasskeyAuthenticationResponse. */ class PasskeyAuthenticationResponse implements IPasskeyAuthenticationResponse { - /** * Constructs a new PasskeyAuthenticationResponse. * @param [properties] Properties to set @@ -18366,17 +19751,19 @@ export namespace Authentication { public challengeToken: Uint8Array; /** PasskeyAuthenticationResponse encryptedLoginToken. */ - public encryptedLoginToken?: (Uint8Array|null); + public encryptedLoginToken?: Uint8Array | null; /** PasskeyAuthenticationResponse _encryptedLoginToken. */ - public _encryptedLoginToken?: "encryptedLoginToken"; + public _encryptedLoginToken?: 'encryptedLoginToken'; /** * Creates a new PasskeyAuthenticationResponse instance using the specified properties. * @param [properties] Properties to set * @returns PasskeyAuthenticationResponse instance */ - public static create(properties?: Authentication.IPasskeyAuthenticationResponse): Authentication.PasskeyAuthenticationResponse; + public static create( + properties?: Authentication.IPasskeyAuthenticationResponse + ): Authentication.PasskeyAuthenticationResponse; /** * Encodes the specified PasskeyAuthenticationResponse message. Does not implicitly {@link Authentication.PasskeyAuthenticationResponse.verify|verify} messages. @@ -18384,7 +19771,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Authentication.IPasskeyAuthenticationResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Authentication.IPasskeyAuthenticationResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified PasskeyAuthenticationResponse message, length delimited. Does not implicitly {@link Authentication.PasskeyAuthenticationResponse.verify|verify} messages. @@ -18392,7 +19782,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.IPasskeyAuthenticationResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.IPasskeyAuthenticationResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a PasskeyAuthenticationResponse message from the specified reader or buffer. @@ -18402,7 +19795,10 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.PasskeyAuthenticationResponse; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Authentication.PasskeyAuthenticationResponse; /** * Decodes a PasskeyAuthenticationResponse message from the specified reader or buffer, length delimited. @@ -18411,14 +19807,16 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.PasskeyAuthenticationResponse; + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array + ): Authentication.PasskeyAuthenticationResponse; /** * Verifies a PasskeyAuthenticationResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a PasskeyAuthenticationResponse message from a plain object. Also converts values to their respective internal types. @@ -18433,7 +19831,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.PasskeyAuthenticationResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.PasskeyAuthenticationResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this PasskeyAuthenticationResponse to JSON. @@ -18451,23 +19852,21 @@ export namespace Authentication { /** Properties of a PasskeyValidationRequest. */ interface IPasskeyValidationRequest { - /** PasskeyValidationRequest challengeToken */ - challengeToken?: (Uint8Array|null); + challengeToken?: Uint8Array | null; /** PasskeyValidationRequest assertionResponse */ - assertionResponse?: (Uint8Array|null); + assertionResponse?: Uint8Array | null; /** PasskeyValidationRequest passkeyPurpose */ - passkeyPurpose?: (Authentication.PasskeyPurpose|null); + passkeyPurpose?: Authentication.PasskeyPurpose | null; /** PasskeyValidationRequest encryptedLoginToken */ - encryptedLoginToken?: (Uint8Array|null); + encryptedLoginToken?: Uint8Array | null; } /** Represents a PasskeyValidationRequest. */ class PasskeyValidationRequest implements IPasskeyValidationRequest { - /** * Constructs a new PasskeyValidationRequest. * @param [properties] Properties to set @@ -18484,17 +19883,19 @@ export namespace Authentication { public passkeyPurpose: Authentication.PasskeyPurpose; /** PasskeyValidationRequest encryptedLoginToken. */ - public encryptedLoginToken?: (Uint8Array|null); + public encryptedLoginToken?: Uint8Array | null; /** PasskeyValidationRequest _encryptedLoginToken. */ - public _encryptedLoginToken?: "encryptedLoginToken"; + public _encryptedLoginToken?: 'encryptedLoginToken'; /** * Creates a new PasskeyValidationRequest instance using the specified properties. * @param [properties] Properties to set * @returns PasskeyValidationRequest instance */ - public static create(properties?: Authentication.IPasskeyValidationRequest): Authentication.PasskeyValidationRequest; + public static create( + properties?: Authentication.IPasskeyValidationRequest + ): Authentication.PasskeyValidationRequest; /** * Encodes the specified PasskeyValidationRequest message. Does not implicitly {@link Authentication.PasskeyValidationRequest.verify|verify} messages. @@ -18502,7 +19903,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Authentication.IPasskeyValidationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Authentication.IPasskeyValidationRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified PasskeyValidationRequest message, length delimited. Does not implicitly {@link Authentication.PasskeyValidationRequest.verify|verify} messages. @@ -18510,7 +19914,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.IPasskeyValidationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.IPasskeyValidationRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a PasskeyValidationRequest message from the specified reader or buffer. @@ -18520,7 +19927,10 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.PasskeyValidationRequest; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Authentication.PasskeyValidationRequest; /** * Decodes a PasskeyValidationRequest message from the specified reader or buffer, length delimited. @@ -18529,14 +19939,14 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.PasskeyValidationRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Authentication.PasskeyValidationRequest; /** * Verifies a PasskeyValidationRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a PasskeyValidationRequest message from a plain object. Also converts values to their respective internal types. @@ -18551,7 +19961,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.PasskeyValidationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.PasskeyValidationRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this PasskeyValidationRequest to JSON. @@ -18569,17 +19982,15 @@ export namespace Authentication { /** Properties of a PasskeyValidationResponse. */ interface IPasskeyValidationResponse { - /** PasskeyValidationResponse isValid */ - isValid?: (boolean|null); + isValid?: boolean | null; /** PasskeyValidationResponse encryptedLoginToken */ - encryptedLoginToken?: (Uint8Array|null); + encryptedLoginToken?: Uint8Array | null; } /** Represents a PasskeyValidationResponse. */ class PasskeyValidationResponse implements IPasskeyValidationResponse { - /** * Constructs a new PasskeyValidationResponse. * @param [properties] Properties to set @@ -18597,7 +20008,9 @@ export namespace Authentication { * @param [properties] Properties to set * @returns PasskeyValidationResponse instance */ - public static create(properties?: Authentication.IPasskeyValidationResponse): Authentication.PasskeyValidationResponse; + public static create( + properties?: Authentication.IPasskeyValidationResponse + ): Authentication.PasskeyValidationResponse; /** * Encodes the specified PasskeyValidationResponse message. Does not implicitly {@link Authentication.PasskeyValidationResponse.verify|verify} messages. @@ -18605,7 +20018,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Authentication.IPasskeyValidationResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Authentication.IPasskeyValidationResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified PasskeyValidationResponse message, length delimited. Does not implicitly {@link Authentication.PasskeyValidationResponse.verify|verify} messages. @@ -18613,7 +20029,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.IPasskeyValidationResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.IPasskeyValidationResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a PasskeyValidationResponse message from the specified reader or buffer. @@ -18623,7 +20042,10 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.PasskeyValidationResponse; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Authentication.PasskeyValidationResponse; /** * Decodes a PasskeyValidationResponse message from the specified reader or buffer, length delimited. @@ -18632,14 +20054,14 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.PasskeyValidationResponse; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Authentication.PasskeyValidationResponse; /** * Verifies a PasskeyValidationResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a PasskeyValidationResponse message from a plain object. Also converts values to their respective internal types. @@ -18654,7 +20076,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.PasskeyValidationResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.PasskeyValidationResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this PasskeyValidationResponse to JSON. @@ -18672,20 +20097,18 @@ export namespace Authentication { /** Properties of an UpdatePasskeyRequest. */ interface IUpdatePasskeyRequest { - /** UpdatePasskeyRequest userId */ - userId?: (number|null); + userId?: number | null; /** UpdatePasskeyRequest credentialId */ - credentialId?: (Uint8Array|null); + credentialId?: Uint8Array | null; /** UpdatePasskeyRequest friendlyName */ - friendlyName?: (string|null); + friendlyName?: string | null; } /** Represents an UpdatePasskeyRequest. */ class UpdatePasskeyRequest implements IUpdatePasskeyRequest { - /** * Constructs a new UpdatePasskeyRequest. * @param [properties] Properties to set @@ -18699,10 +20122,10 @@ export namespace Authentication { public credentialId: Uint8Array; /** UpdatePasskeyRequest friendlyName. */ - public friendlyName?: (string|null); + public friendlyName?: string | null; /** UpdatePasskeyRequest _friendlyName. */ - public _friendlyName?: "friendlyName"; + public _friendlyName?: 'friendlyName'; /** * Creates a new UpdatePasskeyRequest instance using the specified properties. @@ -18717,7 +20140,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Authentication.IUpdatePasskeyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Authentication.IUpdatePasskeyRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified UpdatePasskeyRequest message, length delimited. Does not implicitly {@link Authentication.UpdatePasskeyRequest.verify|verify} messages. @@ -18725,7 +20151,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.IUpdatePasskeyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.IUpdatePasskeyRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes an UpdatePasskeyRequest message from the specified reader or buffer. @@ -18735,7 +20164,10 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.UpdatePasskeyRequest; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Authentication.UpdatePasskeyRequest; /** * Decodes an UpdatePasskeyRequest message from the specified reader or buffer, length delimited. @@ -18744,14 +20176,14 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.UpdatePasskeyRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Authentication.UpdatePasskeyRequest; /** * Verifies an UpdatePasskeyRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an UpdatePasskeyRequest message from a plain object. Also converts values to their respective internal types. @@ -18766,7 +20198,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.UpdatePasskeyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.UpdatePasskeyRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this UpdatePasskeyRequest to JSON. @@ -18784,14 +20219,12 @@ export namespace Authentication { /** Properties of a PasskeyListRequest. */ interface IPasskeyListRequest { - /** PasskeyListRequest includeDisabled */ - includeDisabled?: (boolean|null); + includeDisabled?: boolean | null; } /** Represents a PasskeyListRequest. */ class PasskeyListRequest implements IPasskeyListRequest { - /** * Constructs a new PasskeyListRequest. * @param [properties] Properties to set @@ -18822,7 +20255,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.IPasskeyListRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.IPasskeyListRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a PasskeyListRequest message from the specified reader or buffer. @@ -18832,7 +20268,7 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.PasskeyListRequest; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Authentication.PasskeyListRequest; /** * Decodes a PasskeyListRequest message from the specified reader or buffer, length delimited. @@ -18841,14 +20277,14 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.PasskeyListRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Authentication.PasskeyListRequest; /** * Verifies a PasskeyListRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a PasskeyListRequest message from a plain object. Also converts values to their respective internal types. @@ -18863,7 +20299,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.PasskeyListRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.PasskeyListRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this PasskeyListRequest to JSON. @@ -18881,32 +20320,30 @@ export namespace Authentication { /** Properties of a PasskeyInfo. */ interface IPasskeyInfo { - /** PasskeyInfo userId */ - userId?: (number|null); + userId?: number | null; /** PasskeyInfo credentialId */ - credentialId?: (Uint8Array|null); + credentialId?: Uint8Array | null; /** PasskeyInfo friendlyName */ - friendlyName?: (string|null); + friendlyName?: string | null; /** PasskeyInfo AAGUID */ - AAGUID?: (string|null); + AAGUID?: string | null; /** PasskeyInfo createdAtMillis */ - createdAtMillis?: (number|Long|null); + createdAtMillis?: number | Long | null; /** PasskeyInfo lastUsedMillis */ - lastUsedMillis?: (number|Long|null); + lastUsedMillis?: number | Long | null; /** PasskeyInfo disabledAtMillis */ - disabledAtMillis?: (number|Long|null); + disabledAtMillis?: number | Long | null; } /** Represents a PasskeyInfo. */ class PasskeyInfo implements IPasskeyInfo { - /** * Constructs a new PasskeyInfo. * @param [properties] Properties to set @@ -18926,13 +20363,13 @@ export namespace Authentication { public AAGUID: string; /** PasskeyInfo createdAtMillis. */ - public createdAtMillis: (number|Long); + public createdAtMillis: number | Long; /** PasskeyInfo lastUsedMillis. */ - public lastUsedMillis: (number|Long); + public lastUsedMillis: number | Long; /** PasskeyInfo disabledAtMillis. */ - public disabledAtMillis: (number|Long); + public disabledAtMillis: number | Long; /** * Creates a new PasskeyInfo instance using the specified properties. @@ -18955,7 +20392,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.IPasskeyInfo, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.IPasskeyInfo, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a PasskeyInfo message from the specified reader or buffer. @@ -18965,7 +20405,7 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.PasskeyInfo; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Authentication.PasskeyInfo; /** * Decodes a PasskeyInfo message from the specified reader or buffer, length delimited. @@ -18974,14 +20414,14 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.PasskeyInfo; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Authentication.PasskeyInfo; /** * Verifies a PasskeyInfo message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a PasskeyInfo message from a plain object. Also converts values to their respective internal types. @@ -18996,7 +20436,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.PasskeyInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.PasskeyInfo, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this PasskeyInfo to JSON. @@ -19014,14 +20457,12 @@ export namespace Authentication { /** Properties of a PasskeyListResponse. */ interface IPasskeyListResponse { - /** PasskeyListResponse passkeyInfo */ - passkeyInfo?: (Authentication.IPasskeyInfo[]|null); + passkeyInfo?: Authentication.IPasskeyInfo[] | null; } /** Represents a PasskeyListResponse. */ class PasskeyListResponse implements IPasskeyListResponse { - /** * Constructs a new PasskeyListResponse. * @param [properties] Properties to set @@ -19052,7 +20493,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.IPasskeyListResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.IPasskeyListResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a PasskeyListResponse message from the specified reader or buffer. @@ -19062,7 +20506,10 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.PasskeyListResponse; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Authentication.PasskeyListResponse; /** * Decodes a PasskeyListResponse message from the specified reader or buffer, length delimited. @@ -19071,14 +20518,14 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.PasskeyListResponse; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Authentication.PasskeyListResponse; /** * Verifies a PasskeyListResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a PasskeyListResponse message from a plain object. Also converts values to their respective internal types. @@ -19093,7 +20540,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.PasskeyListResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.PasskeyListResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this PasskeyListResponse to JSON. @@ -19114,22 +20564,20 @@ export namespace Authentication { FF_EMPTY = 0, FF_PHONE = 1, FF_TABLET = 2, - FF_WATCH = 3 + FF_WATCH = 3, } /** Properties of a TranslationInfo. */ interface ITranslationInfo { - /** TranslationInfo translationKey */ - translationKey?: (string|null); + translationKey?: string | null; /** TranslationInfo translationValue */ - translationValue?: (string|null); + translationValue?: string | null; } /** Represents a TranslationInfo. */ class TranslationInfo implements ITranslationInfo { - /** * Constructs a new TranslationInfo. * @param [properties] Properties to set @@ -19163,7 +20611,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.ITranslationInfo, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.ITranslationInfo, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a TranslationInfo message from the specified reader or buffer. @@ -19173,7 +20624,7 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.TranslationInfo; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Authentication.TranslationInfo; /** * Decodes a TranslationInfo message from the specified reader or buffer, length delimited. @@ -19182,14 +20633,14 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.TranslationInfo; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Authentication.TranslationInfo; /** * Verifies a TranslationInfo message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a TranslationInfo message from a plain object. Also converts values to their respective internal types. @@ -19204,7 +20655,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.TranslationInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.TranslationInfo, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this TranslationInfo to JSON. @@ -19222,14 +20676,12 @@ export namespace Authentication { /** Properties of a TranslationRequest. */ interface ITranslationRequest { - /** TranslationRequest translationKey */ - translationKey?: (string[]|null); + translationKey?: string[] | null; } /** Represents a TranslationRequest. */ class TranslationRequest implements ITranslationRequest { - /** * Constructs a new TranslationRequest. * @param [properties] Properties to set @@ -19260,7 +20712,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.ITranslationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.ITranslationRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a TranslationRequest message from the specified reader or buffer. @@ -19270,7 +20725,7 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.TranslationRequest; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Authentication.TranslationRequest; /** * Decodes a TranslationRequest message from the specified reader or buffer, length delimited. @@ -19279,14 +20734,14 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.TranslationRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Authentication.TranslationRequest; /** * Verifies a TranslationRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a TranslationRequest message from a plain object. Also converts values to their respective internal types. @@ -19301,7 +20756,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.TranslationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.TranslationRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this TranslationRequest to JSON. @@ -19319,14 +20777,12 @@ export namespace Authentication { /** Properties of a TranslationResponse. */ interface ITranslationResponse { - /** TranslationResponse translationInfo */ - translationInfo?: (Authentication.ITranslationInfo[]|null); + translationInfo?: Authentication.ITranslationInfo[] | null; } /** Represents a TranslationResponse. */ class TranslationResponse implements ITranslationResponse { - /** * Constructs a new TranslationResponse. * @param [properties] Properties to set @@ -19357,7 +20813,10 @@ export namespace Authentication { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Authentication.ITranslationResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Authentication.ITranslationResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a TranslationResponse message from the specified reader or buffer. @@ -19367,7 +20826,10 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Authentication.TranslationResponse; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Authentication.TranslationResponse; /** * Decodes a TranslationResponse message from the specified reader or buffer, length delimited. @@ -19376,14 +20838,14 @@ export namespace Authentication { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Authentication.TranslationResponse; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Authentication.TranslationResponse; /** * Verifies a TranslationResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a TranslationResponse message from a plain object. Also converts values to their respective internal types. @@ -19398,7 +20860,10 @@ export namespace Authentication { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Authentication.TranslationResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Authentication.TranslationResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this TranslationResponse to JSON. @@ -19417,29 +20882,26 @@ export namespace Authentication { /** Namespace Enterprise. */ export namespace Enterprise { - /** KeyType enum. */ enum KeyType { RSA = 0, - ECC = 1 + ECC = 1, } /** Properties of an EnterpriseKeyPairRequest. */ interface IEnterpriseKeyPairRequest { - /** EnterpriseKeyPairRequest enterprisePublicKey */ - enterprisePublicKey?: (Uint8Array|null); + enterprisePublicKey?: Uint8Array | null; /** EnterpriseKeyPairRequest encryptedEnterprisePrivateKey */ - encryptedEnterprisePrivateKey?: (Uint8Array|null); + encryptedEnterprisePrivateKey?: Uint8Array | null; /** EnterpriseKeyPairRequest keyType */ - keyType?: (Enterprise.KeyType|null); + keyType?: Enterprise.KeyType | null; } /** Represents an EnterpriseKeyPairRequest. */ class EnterpriseKeyPairRequest implements IEnterpriseKeyPairRequest { - /** * Constructs a new EnterpriseKeyPairRequest. * @param [properties] Properties to set @@ -19468,7 +20930,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Enterprise.IEnterpriseKeyPairRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Enterprise.IEnterpriseKeyPairRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified EnterpriseKeyPairRequest message, length delimited. Does not implicitly {@link Enterprise.EnterpriseKeyPairRequest.verify|verify} messages. @@ -19476,7 +20941,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Enterprise.IEnterpriseKeyPairRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Enterprise.IEnterpriseKeyPairRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes an EnterpriseKeyPairRequest message from the specified reader or buffer. @@ -19486,7 +20954,10 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.EnterpriseKeyPairRequest; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Enterprise.EnterpriseKeyPairRequest; /** * Decodes an EnterpriseKeyPairRequest message from the specified reader or buffer, length delimited. @@ -19495,14 +20966,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.EnterpriseKeyPairRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.EnterpriseKeyPairRequest; /** * Verifies an EnterpriseKeyPairRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an EnterpriseKeyPairRequest message from a plain object. Also converts values to their respective internal types. @@ -19517,7 +20988,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.EnterpriseKeyPairRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.EnterpriseKeyPairRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this EnterpriseKeyPairRequest to JSON. @@ -19535,14 +21009,12 @@ export namespace Enterprise { /** Properties of a GetTeamMemberRequest. */ interface IGetTeamMemberRequest { - /** GetTeamMemberRequest teamUid */ - teamUid?: (Uint8Array|null); + teamUid?: Uint8Array | null; } /** Represents a GetTeamMemberRequest. */ class GetTeamMemberRequest implements IGetTeamMemberRequest { - /** * Constructs a new GetTeamMemberRequest. * @param [properties] Properties to set @@ -19573,7 +21045,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Enterprise.IGetTeamMemberRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Enterprise.IGetTeamMemberRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a GetTeamMemberRequest message from the specified reader or buffer. @@ -19583,7 +21058,7 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.GetTeamMemberRequest; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Enterprise.GetTeamMemberRequest; /** * Decodes a GetTeamMemberRequest message from the specified reader or buffer, length delimited. @@ -19592,14 +21067,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.GetTeamMemberRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.GetTeamMemberRequest; /** * Verifies a GetTeamMemberRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a GetTeamMemberRequest message from a plain object. Also converts values to their respective internal types. @@ -19614,7 +21089,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.GetTeamMemberRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.GetTeamMemberRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this GetTeamMemberRequest to JSON. @@ -19632,26 +21110,24 @@ export namespace Enterprise { /** Properties of an EnterpriseUser. */ interface IEnterpriseUser { - /** EnterpriseUser enterpriseUserId */ - enterpriseUserId?: (number|Long|null); + enterpriseUserId?: number | Long | null; /** EnterpriseUser email */ - email?: (string|null); + email?: string | null; /** EnterpriseUser enterpriseUsername */ - enterpriseUsername?: (string|null); + enterpriseUsername?: string | null; /** EnterpriseUser isShareAdmin */ - isShareAdmin?: (boolean|null); + isShareAdmin?: boolean | null; /** EnterpriseUser username */ - username?: (string|null); + username?: string | null; } /** Represents an EnterpriseUser. */ class EnterpriseUser implements IEnterpriseUser { - /** * Constructs a new EnterpriseUser. * @param [properties] Properties to set @@ -19659,7 +21135,7 @@ export namespace Enterprise { constructor(properties?: Enterprise.IEnterpriseUser); /** EnterpriseUser enterpriseUserId. */ - public enterpriseUserId: (number|Long); + public enterpriseUserId: number | Long; /** EnterpriseUser email. */ public email: string; @@ -19704,7 +21180,7 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.EnterpriseUser; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Enterprise.EnterpriseUser; /** * Decodes an EnterpriseUser message from the specified reader or buffer, length delimited. @@ -19713,14 +21189,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.EnterpriseUser; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.EnterpriseUser; /** * Verifies an EnterpriseUser message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an EnterpriseUser message from a plain object. Also converts values to their respective internal types. @@ -19735,7 +21211,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.EnterpriseUser, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.EnterpriseUser, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this EnterpriseUser to JSON. @@ -19753,14 +21232,12 @@ export namespace Enterprise { /** Properties of a GetTeamMemberResponse. */ interface IGetTeamMemberResponse { - /** GetTeamMemberResponse enterpriseUser */ - enterpriseUser?: (Enterprise.IEnterpriseUser[]|null); + enterpriseUser?: Enterprise.IEnterpriseUser[] | null; } /** Represents a GetTeamMemberResponse. */ class GetTeamMemberResponse implements IGetTeamMemberResponse { - /** * Constructs a new GetTeamMemberResponse. * @param [properties] Properties to set @@ -19791,7 +21268,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Enterprise.IGetTeamMemberResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Enterprise.IGetTeamMemberResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a GetTeamMemberResponse message from the specified reader or buffer. @@ -19801,7 +21281,7 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.GetTeamMemberResponse; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Enterprise.GetTeamMemberResponse; /** * Decodes a GetTeamMemberResponse message from the specified reader or buffer, length delimited. @@ -19810,14 +21290,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.GetTeamMemberResponse; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.GetTeamMemberResponse; /** * Verifies a GetTeamMemberResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a GetTeamMemberResponse message from a plain object. Also converts values to their respective internal types. @@ -19832,7 +21312,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.GetTeamMemberResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.GetTeamMemberResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this GetTeamMemberResponse to JSON. @@ -19850,14 +21333,12 @@ export namespace Enterprise { /** Properties of an EnterpriseUserIds. */ interface IEnterpriseUserIds { - /** EnterpriseUserIds enterpriseUserId */ - enterpriseUserId?: ((number|Long)[]|null); + enterpriseUserId?: (number | Long)[] | null; } /** Represents an EnterpriseUserIds. */ class EnterpriseUserIds implements IEnterpriseUserIds { - /** * Constructs a new EnterpriseUserIds. * @param [properties] Properties to set @@ -19865,7 +21346,7 @@ export namespace Enterprise { constructor(properties?: Enterprise.IEnterpriseUserIds); /** EnterpriseUserIds enterpriseUserId. */ - public enterpriseUserId: (number|Long)[]; + public enterpriseUserId: (number | Long)[]; /** * Creates a new EnterpriseUserIds instance using the specified properties. @@ -19888,7 +21369,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Enterprise.IEnterpriseUserIds, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Enterprise.IEnterpriseUserIds, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes an EnterpriseUserIds message from the specified reader or buffer. @@ -19898,7 +21382,7 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.EnterpriseUserIds; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Enterprise.EnterpriseUserIds; /** * Decodes an EnterpriseUserIds message from the specified reader or buffer, length delimited. @@ -19907,14 +21391,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.EnterpriseUserIds; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.EnterpriseUserIds; /** * Verifies an EnterpriseUserIds message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an EnterpriseUserIds message from a plain object. Also converts values to their respective internal types. @@ -19929,7 +21413,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.EnterpriseUserIds, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.EnterpriseUserIds, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this EnterpriseUserIds to JSON. @@ -19947,17 +21434,15 @@ export namespace Enterprise { /** Properties of an EnterprisePersonalAccount. */ interface IEnterprisePersonalAccount { - /** EnterprisePersonalAccount email */ - email?: (string|null); + email?: string | null; /** EnterprisePersonalAccount OBSOLETE_FIELD */ - OBSOLETE_FIELD?: (Uint8Array|null); + OBSOLETE_FIELD?: Uint8Array | null; } /** Represents an EnterprisePersonalAccount. */ class EnterprisePersonalAccount implements IEnterprisePersonalAccount { - /** * Constructs a new EnterprisePersonalAccount. * @param [properties] Properties to set @@ -19983,7 +21468,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Enterprise.IEnterprisePersonalAccount, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Enterprise.IEnterprisePersonalAccount, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified EnterprisePersonalAccount message, length delimited. Does not implicitly {@link Enterprise.EnterprisePersonalAccount.verify|verify} messages. @@ -19991,7 +21479,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Enterprise.IEnterprisePersonalAccount, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Enterprise.IEnterprisePersonalAccount, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes an EnterprisePersonalAccount message from the specified reader or buffer. @@ -20001,7 +21492,10 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.EnterprisePersonalAccount; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Enterprise.EnterprisePersonalAccount; /** * Decodes an EnterprisePersonalAccount message from the specified reader or buffer, length delimited. @@ -20010,14 +21504,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.EnterprisePersonalAccount; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.EnterprisePersonalAccount; /** * Verifies an EnterprisePersonalAccount message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an EnterprisePersonalAccount message from a plain object. Also converts values to their respective internal types. @@ -20032,7 +21526,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.EnterprisePersonalAccount, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.EnterprisePersonalAccount, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this EnterprisePersonalAccount to JSON. @@ -20050,20 +21547,18 @@ export namespace Enterprise { /** Properties of an EncryptedTeamKeyRequest. */ interface IEncryptedTeamKeyRequest { - /** EncryptedTeamKeyRequest teamUid */ - teamUid?: (Uint8Array|null); + teamUid?: Uint8Array | null; /** EncryptedTeamKeyRequest encryptedTeamKey */ - encryptedTeamKey?: (Uint8Array|null); + encryptedTeamKey?: Uint8Array | null; /** EncryptedTeamKeyRequest force */ - force?: (boolean|null); + force?: boolean | null; } /** Represents an EncryptedTeamKeyRequest. */ class EncryptedTeamKeyRequest implements IEncryptedTeamKeyRequest { - /** * Constructs a new EncryptedTeamKeyRequest. * @param [properties] Properties to set @@ -20100,7 +21595,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Enterprise.IEncryptedTeamKeyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Enterprise.IEncryptedTeamKeyRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes an EncryptedTeamKeyRequest message from the specified reader or buffer. @@ -20110,7 +21608,10 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.EncryptedTeamKeyRequest; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Enterprise.EncryptedTeamKeyRequest; /** * Decodes an EncryptedTeamKeyRequest message from the specified reader or buffer, length delimited. @@ -20119,14 +21620,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.EncryptedTeamKeyRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.EncryptedTeamKeyRequest; /** * Verifies an EncryptedTeamKeyRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an EncryptedTeamKeyRequest message from a plain object. Also converts values to their respective internal types. @@ -20141,7 +21642,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.EncryptedTeamKeyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.EncryptedTeamKeyRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this EncryptedTeamKeyRequest to JSON. @@ -20159,17 +21663,15 @@ export namespace Enterprise { /** Properties of a ReEncryptedData. */ interface IReEncryptedData { - /** ReEncryptedData id */ - id?: (number|Long|null); + id?: number | Long | null; /** ReEncryptedData data */ - data?: (string|null); + data?: string | null; } /** Represents a ReEncryptedData. */ class ReEncryptedData implements IReEncryptedData { - /** * Constructs a new ReEncryptedData. * @param [properties] Properties to set @@ -20177,7 +21679,7 @@ export namespace Enterprise { constructor(properties?: Enterprise.IReEncryptedData); /** ReEncryptedData id. */ - public id: (number|Long); + public id: number | Long; /** ReEncryptedData data. */ public data: string; @@ -20203,7 +21705,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Enterprise.IReEncryptedData, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Enterprise.IReEncryptedData, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a ReEncryptedData message from the specified reader or buffer. @@ -20213,7 +21718,7 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.ReEncryptedData; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Enterprise.ReEncryptedData; /** * Decodes a ReEncryptedData message from the specified reader or buffer, length delimited. @@ -20222,14 +21727,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.ReEncryptedData; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.ReEncryptedData; /** * Verifies a ReEncryptedData message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a ReEncryptedData message from a plain object. Also converts values to their respective internal types. @@ -20244,7 +21749,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.ReEncryptedData, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.ReEncryptedData, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this ReEncryptedData to JSON. @@ -20262,17 +21770,15 @@ export namespace Enterprise { /** Properties of a ReEncryptedRoleKey. */ interface IReEncryptedRoleKey { - /** ReEncryptedRoleKey roleId */ - roleId?: (number|Long|null); + roleId?: number | Long | null; /** ReEncryptedRoleKey encryptedRoleKey */ - encryptedRoleKey?: (Uint8Array|null); + encryptedRoleKey?: Uint8Array | null; } /** Represents a ReEncryptedRoleKey. */ class ReEncryptedRoleKey implements IReEncryptedRoleKey { - /** * Constructs a new ReEncryptedRoleKey. * @param [properties] Properties to set @@ -20280,7 +21786,7 @@ export namespace Enterprise { constructor(properties?: Enterprise.IReEncryptedRoleKey); /** ReEncryptedRoleKey roleId. */ - public roleId: (number|Long); + public roleId: number | Long; /** ReEncryptedRoleKey encryptedRoleKey. */ public encryptedRoleKey: Uint8Array; @@ -20306,7 +21812,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Enterprise.IReEncryptedRoleKey, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Enterprise.IReEncryptedRoleKey, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a ReEncryptedRoleKey message from the specified reader or buffer. @@ -20316,7 +21825,7 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.ReEncryptedRoleKey; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Enterprise.ReEncryptedRoleKey; /** * Decodes a ReEncryptedRoleKey message from the specified reader or buffer, length delimited. @@ -20325,14 +21834,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.ReEncryptedRoleKey; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.ReEncryptedRoleKey; /** * Verifies a ReEncryptedRoleKey message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a ReEncryptedRoleKey message from a plain object. Also converts values to their respective internal types. @@ -20347,7 +21856,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.ReEncryptedRoleKey, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.ReEncryptedRoleKey, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this ReEncryptedRoleKey to JSON. @@ -20365,17 +21877,15 @@ export namespace Enterprise { /** Properties of a ReEncryptedUserDataKey. */ interface IReEncryptedUserDataKey { - /** ReEncryptedUserDataKey enterpriseUserId */ - enterpriseUserId?: (number|Long|null); + enterpriseUserId?: number | Long | null; /** ReEncryptedUserDataKey userEncryptedDataKey */ - userEncryptedDataKey?: (Uint8Array|null); + userEncryptedDataKey?: Uint8Array | null; } /** Represents a ReEncryptedUserDataKey. */ class ReEncryptedUserDataKey implements IReEncryptedUserDataKey { - /** * Constructs a new ReEncryptedUserDataKey. * @param [properties] Properties to set @@ -20383,7 +21893,7 @@ export namespace Enterprise { constructor(properties?: Enterprise.IReEncryptedUserDataKey); /** ReEncryptedUserDataKey enterpriseUserId. */ - public enterpriseUserId: (number|Long); + public enterpriseUserId: number | Long; /** ReEncryptedUserDataKey userEncryptedDataKey. */ public userEncryptedDataKey: Uint8Array; @@ -20409,7 +21919,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Enterprise.IReEncryptedUserDataKey, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Enterprise.IReEncryptedUserDataKey, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a ReEncryptedUserDataKey message from the specified reader or buffer. @@ -20419,7 +21932,7 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.ReEncryptedUserDataKey; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Enterprise.ReEncryptedUserDataKey; /** * Decodes a ReEncryptedUserDataKey message from the specified reader or buffer, length delimited. @@ -20428,14 +21941,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.ReEncryptedUserDataKey; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.ReEncryptedUserDataKey; /** * Verifies a ReEncryptedUserDataKey message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a ReEncryptedUserDataKey message from a plain object. Also converts values to their respective internal types. @@ -20450,7 +21963,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.ReEncryptedUserDataKey, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.ReEncryptedUserDataKey, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this ReEncryptedUserDataKey to JSON. @@ -20468,32 +21984,30 @@ export namespace Enterprise { /** Properties of a NodeToManagedCompanyRequest. */ interface INodeToManagedCompanyRequest { - /** NodeToManagedCompanyRequest companyId */ - companyId?: (number|null); + companyId?: number | null; /** NodeToManagedCompanyRequest nodes */ - nodes?: (Enterprise.IReEncryptedData[]|null); + nodes?: Enterprise.IReEncryptedData[] | null; /** NodeToManagedCompanyRequest roles */ - roles?: (Enterprise.IReEncryptedData[]|null); + roles?: Enterprise.IReEncryptedData[] | null; /** NodeToManagedCompanyRequest users */ - users?: (Enterprise.IReEncryptedData[]|null); + users?: Enterprise.IReEncryptedData[] | null; /** NodeToManagedCompanyRequest roleKeys */ - roleKeys?: (Enterprise.IReEncryptedRoleKey[]|null); + roleKeys?: Enterprise.IReEncryptedRoleKey[] | null; /** NodeToManagedCompanyRequest teamKeys */ - teamKeys?: (Enterprise.IEncryptedTeamKeyRequest[]|null); + teamKeys?: Enterprise.IEncryptedTeamKeyRequest[] | null; /** NodeToManagedCompanyRequest usersDataKeys */ - usersDataKeys?: (Enterprise.IReEncryptedUserDataKey[]|null); + usersDataKeys?: Enterprise.IReEncryptedUserDataKey[] | null; } /** Represents a NodeToManagedCompanyRequest. */ class NodeToManagedCompanyRequest implements INodeToManagedCompanyRequest { - /** * Constructs a new NodeToManagedCompanyRequest. * @param [properties] Properties to set @@ -20526,7 +22040,9 @@ export namespace Enterprise { * @param [properties] Properties to set * @returns NodeToManagedCompanyRequest instance */ - public static create(properties?: Enterprise.INodeToManagedCompanyRequest): Enterprise.NodeToManagedCompanyRequest; + public static create( + properties?: Enterprise.INodeToManagedCompanyRequest + ): Enterprise.NodeToManagedCompanyRequest; /** * Encodes the specified NodeToManagedCompanyRequest message. Does not implicitly {@link Enterprise.NodeToManagedCompanyRequest.verify|verify} messages. @@ -20534,7 +22050,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Enterprise.INodeToManagedCompanyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Enterprise.INodeToManagedCompanyRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified NodeToManagedCompanyRequest message, length delimited. Does not implicitly {@link Enterprise.NodeToManagedCompanyRequest.verify|verify} messages. @@ -20542,7 +22061,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Enterprise.INodeToManagedCompanyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Enterprise.INodeToManagedCompanyRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a NodeToManagedCompanyRequest message from the specified reader or buffer. @@ -20552,7 +22074,10 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.NodeToManagedCompanyRequest; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Enterprise.NodeToManagedCompanyRequest; /** * Decodes a NodeToManagedCompanyRequest message from the specified reader or buffer, length delimited. @@ -20561,14 +22086,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.NodeToManagedCompanyRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.NodeToManagedCompanyRequest; /** * Verifies a NodeToManagedCompanyRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a NodeToManagedCompanyRequest message from a plain object. Also converts values to their respective internal types. @@ -20583,7 +22108,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.NodeToManagedCompanyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.NodeToManagedCompanyRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this NodeToManagedCompanyRequest to JSON. @@ -20601,17 +22129,15 @@ export namespace Enterprise { /** Properties of a RoleTeam. */ interface IRoleTeam { - /** RoleTeam roleId */ - roleId?: (number|Long|null); + roleId?: number | Long | null; /** RoleTeam teamUid */ - teamUid?: (Uint8Array|null); + teamUid?: Uint8Array | null; } /** Represents a RoleTeam. */ class RoleTeam implements IRoleTeam { - /** * Constructs a new RoleTeam. * @param [properties] Properties to set @@ -20619,7 +22145,7 @@ export namespace Enterprise { constructor(properties?: Enterprise.IRoleTeam); /** RoleTeam roleId. */ - public roleId: (number|Long); + public roleId: number | Long; /** RoleTeam teamUid. */ public teamUid: Uint8Array; @@ -20655,7 +22181,7 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.RoleTeam; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Enterprise.RoleTeam; /** * Decodes a RoleTeam message from the specified reader or buffer, length delimited. @@ -20664,14 +22190,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.RoleTeam; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.RoleTeam; /** * Verifies a RoleTeam message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a RoleTeam message from a plain object. Also converts values to their respective internal types. @@ -20686,7 +22212,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.RoleTeam, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.RoleTeam, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this RoleTeam to JSON. @@ -20704,14 +22233,12 @@ export namespace Enterprise { /** Properties of a RoleTeams. */ interface IRoleTeams { - /** RoleTeams roleTeam */ - roleTeam?: (Enterprise.IRoleTeam[]|null); + roleTeam?: Enterprise.IRoleTeam[] | null; } /** Represents a RoleTeams. */ class RoleTeams implements IRoleTeams { - /** * Constructs a new RoleTeams. * @param [properties] Properties to set @@ -20752,7 +22279,7 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.RoleTeams; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Enterprise.RoleTeams; /** * Decodes a RoleTeams message from the specified reader or buffer, length delimited. @@ -20761,14 +22288,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.RoleTeams; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.RoleTeams; /** * Verifies a RoleTeams message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a RoleTeams message from a plain object. Also converts values to their respective internal types. @@ -20783,7 +22310,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.RoleTeams, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.RoleTeams, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this RoleTeams to JSON. @@ -20801,17 +22331,15 @@ export namespace Enterprise { /** Properties of a TeamsByRole. */ interface ITeamsByRole { - /** TeamsByRole roleId */ - roleId?: (number|Long|null); + roleId?: number | Long | null; /** TeamsByRole teamUid */ - teamUid?: (Uint8Array[]|null); + teamUid?: Uint8Array[] | null; } /** Represents a TeamsByRole. */ class TeamsByRole implements ITeamsByRole { - /** * Constructs a new TeamsByRole. * @param [properties] Properties to set @@ -20819,7 +22347,7 @@ export namespace Enterprise { constructor(properties?: Enterprise.ITeamsByRole); /** TeamsByRole roleId. */ - public roleId: (number|Long); + public roleId: number | Long; /** TeamsByRole teamUid. */ public teamUid: Uint8Array[]; @@ -20855,7 +22383,7 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.TeamsByRole; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Enterprise.TeamsByRole; /** * Decodes a TeamsByRole message from the specified reader or buffer, length delimited. @@ -20864,14 +22392,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.TeamsByRole; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.TeamsByRole; /** * Verifies a TeamsByRole message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a TeamsByRole message from a plain object. Also converts values to their respective internal types. @@ -20886,7 +22414,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.TeamsByRole, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.TeamsByRole, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this TeamsByRole to JSON. @@ -20904,17 +22435,15 @@ export namespace Enterprise { /** Properties of a ManagedNodesByRole. */ interface IManagedNodesByRole { - /** ManagedNodesByRole roleId */ - roleId?: (number|Long|null); + roleId?: number | Long | null; /** ManagedNodesByRole managedNodeId */ - managedNodeId?: ((number|Long)[]|null); + managedNodeId?: (number | Long)[] | null; } /** Represents a ManagedNodesByRole. */ class ManagedNodesByRole implements IManagedNodesByRole { - /** * Constructs a new ManagedNodesByRole. * @param [properties] Properties to set @@ -20922,10 +22451,10 @@ export namespace Enterprise { constructor(properties?: Enterprise.IManagedNodesByRole); /** ManagedNodesByRole roleId. */ - public roleId: (number|Long); + public roleId: number | Long; /** ManagedNodesByRole managedNodeId. */ - public managedNodeId: (number|Long)[]; + public managedNodeId: (number | Long)[]; /** * Creates a new ManagedNodesByRole instance using the specified properties. @@ -20948,7 +22477,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Enterprise.IManagedNodesByRole, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Enterprise.IManagedNodesByRole, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a ManagedNodesByRole message from the specified reader or buffer. @@ -20958,7 +22490,7 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.ManagedNodesByRole; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Enterprise.ManagedNodesByRole; /** * Decodes a ManagedNodesByRole message from the specified reader or buffer, length delimited. @@ -20967,14 +22499,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.ManagedNodesByRole; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.ManagedNodesByRole; /** * Verifies a ManagedNodesByRole message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a ManagedNodesByRole message from a plain object. Also converts values to their respective internal types. @@ -20989,7 +22521,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.ManagedNodesByRole, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.ManagedNodesByRole, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this ManagedNodesByRole to JSON. @@ -21007,20 +22542,18 @@ export namespace Enterprise { /** Properties of a RoleUserAddKeys. */ interface IRoleUserAddKeys { - /** RoleUserAddKeys enterpriseUserId */ - enterpriseUserId?: (number|Long|null); + enterpriseUserId?: number | Long | null; /** RoleUserAddKeys treeKey */ - treeKey?: (string|null); + treeKey?: string | null; /** RoleUserAddKeys roleAdminKey */ - roleAdminKey?: (string|null); + roleAdminKey?: string | null; } /** Represents a RoleUserAddKeys. */ class RoleUserAddKeys implements IRoleUserAddKeys { - /** * Constructs a new RoleUserAddKeys. * @param [properties] Properties to set @@ -21028,7 +22561,7 @@ export namespace Enterprise { constructor(properties?: Enterprise.IRoleUserAddKeys); /** RoleUserAddKeys enterpriseUserId. */ - public enterpriseUserId: (number|Long); + public enterpriseUserId: number | Long; /** RoleUserAddKeys treeKey. */ public treeKey: string; @@ -21057,7 +22590,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Enterprise.IRoleUserAddKeys, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Enterprise.IRoleUserAddKeys, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a RoleUserAddKeys message from the specified reader or buffer. @@ -21067,7 +22603,7 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.RoleUserAddKeys; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Enterprise.RoleUserAddKeys; /** * Decodes a RoleUserAddKeys message from the specified reader or buffer, length delimited. @@ -21076,14 +22612,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.RoleUserAddKeys; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.RoleUserAddKeys; /** * Verifies a RoleUserAddKeys message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a RoleUserAddKeys message from a plain object. Also converts values to their respective internal types. @@ -21098,7 +22634,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.RoleUserAddKeys, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.RoleUserAddKeys, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this RoleUserAddKeys to JSON. @@ -21116,17 +22655,15 @@ export namespace Enterprise { /** Properties of a RoleUserAdd. */ interface IRoleUserAdd { - /** RoleUserAdd roleId */ - roleId?: (number|Long|null); + roleId?: number | Long | null; /** RoleUserAdd roleUserAddKeys */ - roleUserAddKeys?: (Enterprise.IRoleUserAddKeys[]|null); + roleUserAddKeys?: Enterprise.IRoleUserAddKeys[] | null; } /** Represents a RoleUserAdd. */ class RoleUserAdd implements IRoleUserAdd { - /** * Constructs a new RoleUserAdd. * @param [properties] Properties to set @@ -21134,7 +22671,7 @@ export namespace Enterprise { constructor(properties?: Enterprise.IRoleUserAdd); /** RoleUserAdd roleId. */ - public roleId: (number|Long); + public roleId: number | Long; /** RoleUserAdd roleUserAddKeys. */ public roleUserAddKeys: Enterprise.IRoleUserAddKeys[]; @@ -21170,7 +22707,7 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.RoleUserAdd; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Enterprise.RoleUserAdd; /** * Decodes a RoleUserAdd message from the specified reader or buffer, length delimited. @@ -21179,14 +22716,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.RoleUserAdd; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.RoleUserAdd; /** * Verifies a RoleUserAdd message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a RoleUserAdd message from a plain object. Also converts values to their respective internal types. @@ -21201,7 +22738,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.RoleUserAdd, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.RoleUserAdd, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this RoleUserAdd to JSON. @@ -21219,14 +22759,12 @@ export namespace Enterprise { /** Properties of a RoleUsersAddRequest. */ interface IRoleUsersAddRequest { - /** RoleUsersAddRequest roleUserAdds */ - roleUserAdds?: (Enterprise.IRoleUserAdd[]|null); + roleUserAdds?: Enterprise.IRoleUserAdd[] | null; } /** Represents a RoleUsersAddRequest. */ class RoleUsersAddRequest implements IRoleUsersAddRequest { - /** * Constructs a new RoleUsersAddRequest. * @param [properties] Properties to set @@ -21257,7 +22795,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Enterprise.IRoleUsersAddRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Enterprise.IRoleUsersAddRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a RoleUsersAddRequest message from the specified reader or buffer. @@ -21267,7 +22808,7 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.RoleUsersAddRequest; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Enterprise.RoleUsersAddRequest; /** * Decodes a RoleUsersAddRequest message from the specified reader or buffer, length delimited. @@ -21276,14 +22817,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.RoleUsersAddRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.RoleUsersAddRequest; /** * Verifies a RoleUsersAddRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a RoleUsersAddRequest message from a plain object. Also converts values to their respective internal types. @@ -21298,7 +22839,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.RoleUsersAddRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.RoleUsersAddRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this RoleUsersAddRequest to JSON. @@ -21325,28 +22869,26 @@ export namespace Enterprise { MAY_NOT_REMOVE_SELF_FROM_ROLE = 6, MUST_HAVE_ONE_USER_ADMIN = 7, INVALID_ROLE_ID = 8, - PAM_LICENSE_SEAT_EXCEEDED = 9 + PAM_LICENSE_SEAT_EXCEEDED = 9, } /** Properties of a RoleUserAddResult. */ interface IRoleUserAddResult { - /** RoleUserAddResult roleId */ - roleId?: (number|Long|null); + roleId?: number | Long | null; /** RoleUserAddResult enterpriseUserId */ - enterpriseUserId?: (number|Long|null); + enterpriseUserId?: number | Long | null; /** RoleUserAddResult status */ - status?: (Enterprise.RoleUserModifyStatus|null); + status?: Enterprise.RoleUserModifyStatus | null; /** RoleUserAddResult message */ - message?: (string|null); + message?: string | null; } /** Represents a RoleUserAddResult. */ class RoleUserAddResult implements IRoleUserAddResult { - /** * Constructs a new RoleUserAddResult. * @param [properties] Properties to set @@ -21354,10 +22896,10 @@ export namespace Enterprise { constructor(properties?: Enterprise.IRoleUserAddResult); /** RoleUserAddResult roleId. */ - public roleId: (number|Long); + public roleId: number | Long; /** RoleUserAddResult enterpriseUserId. */ - public enterpriseUserId: (number|Long); + public enterpriseUserId: number | Long; /** RoleUserAddResult status. */ public status: Enterprise.RoleUserModifyStatus; @@ -21386,7 +22928,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Enterprise.IRoleUserAddResult, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Enterprise.IRoleUserAddResult, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a RoleUserAddResult message from the specified reader or buffer. @@ -21396,7 +22941,7 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.RoleUserAddResult; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Enterprise.RoleUserAddResult; /** * Decodes a RoleUserAddResult message from the specified reader or buffer, length delimited. @@ -21405,14 +22950,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.RoleUserAddResult; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.RoleUserAddResult; /** * Verifies a RoleUserAddResult message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a RoleUserAddResult message from a plain object. Also converts values to their respective internal types. @@ -21427,7 +22972,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.RoleUserAddResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.RoleUserAddResult, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this RoleUserAddResult to JSON. @@ -21445,14 +22993,12 @@ export namespace Enterprise { /** Properties of a RoleUsersAddResponse. */ interface IRoleUsersAddResponse { - /** RoleUsersAddResponse results */ - results?: (Enterprise.IRoleUserAddResult[]|null); + results?: Enterprise.IRoleUserAddResult[] | null; } /** Represents a RoleUsersAddResponse. */ class RoleUsersAddResponse implements IRoleUsersAddResponse { - /** * Constructs a new RoleUsersAddResponse. * @param [properties] Properties to set @@ -21483,7 +23029,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Enterprise.IRoleUsersAddResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Enterprise.IRoleUsersAddResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a RoleUsersAddResponse message from the specified reader or buffer. @@ -21493,7 +23042,7 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.RoleUsersAddResponse; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Enterprise.RoleUsersAddResponse; /** * Decodes a RoleUsersAddResponse message from the specified reader or buffer, length delimited. @@ -21502,14 +23051,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.RoleUsersAddResponse; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.RoleUsersAddResponse; /** * Verifies a RoleUsersAddResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a RoleUsersAddResponse message from a plain object. Also converts values to their respective internal types. @@ -21524,7 +23073,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.RoleUsersAddResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.RoleUsersAddResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this RoleUsersAddResponse to JSON. @@ -21542,17 +23094,15 @@ export namespace Enterprise { /** Properties of a RoleUserRemove. */ interface IRoleUserRemove { - /** RoleUserRemove roleId */ - roleId?: (number|Long|null); + roleId?: number | Long | null; /** RoleUserRemove enterpriseUserIds */ - enterpriseUserIds?: ((number|Long)[]|null); + enterpriseUserIds?: (number | Long)[] | null; } /** Represents a RoleUserRemove. */ class RoleUserRemove implements IRoleUserRemove { - /** * Constructs a new RoleUserRemove. * @param [properties] Properties to set @@ -21560,10 +23110,10 @@ export namespace Enterprise { constructor(properties?: Enterprise.IRoleUserRemove); /** RoleUserRemove roleId. */ - public roleId: (number|Long); + public roleId: number | Long; /** RoleUserRemove enterpriseUserIds. */ - public enterpriseUserIds: (number|Long)[]; + public enterpriseUserIds: (number | Long)[]; /** * Creates a new RoleUserRemove instance using the specified properties. @@ -21596,7 +23146,7 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.RoleUserRemove; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Enterprise.RoleUserRemove; /** * Decodes a RoleUserRemove message from the specified reader or buffer, length delimited. @@ -21605,14 +23155,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.RoleUserRemove; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.RoleUserRemove; /** * Verifies a RoleUserRemove message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a RoleUserRemove message from a plain object. Also converts values to their respective internal types. @@ -21627,7 +23177,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.RoleUserRemove, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.RoleUserRemove, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this RoleUserRemove to JSON. @@ -21645,14 +23198,12 @@ export namespace Enterprise { /** Properties of a RoleUsersRemoveRequest. */ interface IRoleUsersRemoveRequest { - /** RoleUsersRemoveRequest roleUserRemoves */ - roleUserRemoves?: (Enterprise.IRoleUserRemove[]|null); + roleUserRemoves?: Enterprise.IRoleUserRemove[] | null; } /** Represents a RoleUsersRemoveRequest. */ class RoleUsersRemoveRequest implements IRoleUsersRemoveRequest { - /** * Constructs a new RoleUsersRemoveRequest. * @param [properties] Properties to set @@ -21683,7 +23234,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Enterprise.IRoleUsersRemoveRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Enterprise.IRoleUsersRemoveRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a RoleUsersRemoveRequest message from the specified reader or buffer. @@ -21693,7 +23247,7 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.RoleUsersRemoveRequest; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Enterprise.RoleUsersRemoveRequest; /** * Decodes a RoleUsersRemoveRequest message from the specified reader or buffer, length delimited. @@ -21702,14 +23256,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.RoleUsersRemoveRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.RoleUsersRemoveRequest; /** * Verifies a RoleUsersRemoveRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a RoleUsersRemoveRequest message from a plain object. Also converts values to their respective internal types. @@ -21724,7 +23278,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.RoleUsersRemoveRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.RoleUsersRemoveRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this RoleUsersRemoveRequest to JSON. @@ -21742,23 +23299,21 @@ export namespace Enterprise { /** Properties of a RoleUserRemoveResult. */ interface IRoleUserRemoveResult { - /** RoleUserRemoveResult roleId */ - roleId?: (number|Long|null); + roleId?: number | Long | null; /** RoleUserRemoveResult enterpriseUserId */ - enterpriseUserId?: (number|Long|null); + enterpriseUserId?: number | Long | null; /** RoleUserRemoveResult status */ - status?: (Enterprise.RoleUserModifyStatus|null); + status?: Enterprise.RoleUserModifyStatus | null; /** RoleUserRemoveResult message */ - message?: (string|null); + message?: string | null; } /** Represents a RoleUserRemoveResult. */ class RoleUserRemoveResult implements IRoleUserRemoveResult { - /** * Constructs a new RoleUserRemoveResult. * @param [properties] Properties to set @@ -21766,10 +23321,10 @@ export namespace Enterprise { constructor(properties?: Enterprise.IRoleUserRemoveResult); /** RoleUserRemoveResult roleId. */ - public roleId: (number|Long); + public roleId: number | Long; /** RoleUserRemoveResult enterpriseUserId. */ - public enterpriseUserId: (number|Long); + public enterpriseUserId: number | Long; /** RoleUserRemoveResult status. */ public status: Enterprise.RoleUserModifyStatus; @@ -21798,7 +23353,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Enterprise.IRoleUserRemoveResult, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Enterprise.IRoleUserRemoveResult, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a RoleUserRemoveResult message from the specified reader or buffer. @@ -21808,7 +23366,7 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.RoleUserRemoveResult; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Enterprise.RoleUserRemoveResult; /** * Decodes a RoleUserRemoveResult message from the specified reader or buffer, length delimited. @@ -21817,14 +23375,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.RoleUserRemoveResult; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.RoleUserRemoveResult; /** * Verifies a RoleUserRemoveResult message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a RoleUserRemoveResult message from a plain object. Also converts values to their respective internal types. @@ -21839,7 +23397,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.RoleUserRemoveResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.RoleUserRemoveResult, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this RoleUserRemoveResult to JSON. @@ -21857,14 +23418,12 @@ export namespace Enterprise { /** Properties of a RoleUsersRemoveResponse. */ interface IRoleUsersRemoveResponse { - /** RoleUsersRemoveResponse results */ - results?: (Enterprise.IRoleUserRemoveResult[]|null); + results?: Enterprise.IRoleUserRemoveResult[] | null; } /** Represents a RoleUsersRemoveResponse. */ class RoleUsersRemoveResponse implements IRoleUsersRemoveResponse { - /** * Constructs a new RoleUsersRemoveResponse. * @param [properties] Properties to set @@ -21895,7 +23454,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Enterprise.IRoleUsersRemoveResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Enterprise.IRoleUsersRemoveResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a RoleUsersRemoveResponse message from the specified reader or buffer. @@ -21905,7 +23467,10 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.RoleUsersRemoveResponse; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Enterprise.RoleUsersRemoveResponse; /** * Decodes a RoleUsersRemoveResponse message from the specified reader or buffer, length delimited. @@ -21914,14 +23479,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.RoleUsersRemoveResponse; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.RoleUsersRemoveResponse; /** * Verifies a RoleUsersRemoveResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a RoleUsersRemoveResponse message from a plain object. Also converts values to their respective internal types. @@ -21936,7 +23501,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.RoleUsersRemoveResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.RoleUsersRemoveResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this RoleUsersRemoveResponse to JSON. @@ -21955,64 +23523,62 @@ export namespace Enterprise { /** EnterpriseType enum. */ enum EnterpriseType { ENTERPRISE_STANDARD = 0, - ENTERPRISE_MSP = 1 + ENTERPRISE_MSP = 1, } /** Properties of an EnterpriseRegistration. */ interface IEnterpriseRegistration { - /** EnterpriseRegistration encryptedTreeKey */ - encryptedTreeKey?: (Uint8Array|null); + encryptedTreeKey?: Uint8Array | null; /** EnterpriseRegistration enterpriseName */ - enterpriseName?: (string|null); + enterpriseName?: string | null; /** EnterpriseRegistration rootNodeData */ - rootNodeData?: (Uint8Array|null); + rootNodeData?: Uint8Array | null; /** EnterpriseRegistration adminUserData */ - adminUserData?: (Uint8Array|null); + adminUserData?: Uint8Array | null; /** EnterpriseRegistration adminName */ - adminName?: (string|null); + adminName?: string | null; /** EnterpriseRegistration roleData */ - roleData?: (Uint8Array|null); + roleData?: Uint8Array | null; /** EnterpriseRegistration rsaKeyPair */ - rsaKeyPair?: (Enterprise.IEnterpriseKeyPairRequest|null); + rsaKeyPair?: Enterprise.IEnterpriseKeyPairRequest | null; /** EnterpriseRegistration numberSeats */ - numberSeats?: (number|null); + numberSeats?: number | null; /** EnterpriseRegistration enterpriseType */ - enterpriseType?: (Enterprise.EnterpriseType|null); + enterpriseType?: Enterprise.EnterpriseType | null; /** EnterpriseRegistration rolePublicKey */ - rolePublicKey?: (Uint8Array|null); + rolePublicKey?: Uint8Array | null; /** EnterpriseRegistration rolePrivateKeyEncryptedWithRoleKey */ - rolePrivateKeyEncryptedWithRoleKey?: (Uint8Array|null); + rolePrivateKeyEncryptedWithRoleKey?: Uint8Array | null; /** EnterpriseRegistration roleKeyEncryptedWithTreeKey */ - roleKeyEncryptedWithTreeKey?: (Uint8Array|null); + roleKeyEncryptedWithTreeKey?: Uint8Array | null; /** EnterpriseRegistration eccKeyPair */ - eccKeyPair?: (Enterprise.IEnterpriseKeyPairRequest|null); + eccKeyPair?: Enterprise.IEnterpriseKeyPairRequest | null; /** EnterpriseRegistration allUsersRoleData */ - allUsersRoleData?: (Uint8Array|null); + allUsersRoleData?: Uint8Array | null; /** EnterpriseRegistration roleKeyEncryptedWithUserPublicKey */ - roleKeyEncryptedWithUserPublicKey?: (Uint8Array|null); + roleKeyEncryptedWithUserPublicKey?: Uint8Array | null; /** EnterpriseRegistration approverRoleData */ - approverRoleData?: (Uint8Array|null); + approverRoleData?: Uint8Array | null; } /** Represents an EnterpriseRegistration. */ class EnterpriseRegistration implements IEnterpriseRegistration { - /** * Constructs a new EnterpriseRegistration. * @param [properties] Properties to set @@ -22038,7 +23604,7 @@ export namespace Enterprise { public roleData: Uint8Array; /** EnterpriseRegistration rsaKeyPair. */ - public rsaKeyPair?: (Enterprise.IEnterpriseKeyPairRequest|null); + public rsaKeyPair?: Enterprise.IEnterpriseKeyPairRequest | null; /** EnterpriseRegistration numberSeats. */ public numberSeats: number; @@ -22056,7 +23622,7 @@ export namespace Enterprise { public roleKeyEncryptedWithTreeKey: Uint8Array; /** EnterpriseRegistration eccKeyPair. */ - public eccKeyPair?: (Enterprise.IEnterpriseKeyPairRequest|null); + public eccKeyPair?: Enterprise.IEnterpriseKeyPairRequest | null; /** EnterpriseRegistration allUsersRoleData. */ public allUsersRoleData: Uint8Array; @@ -22088,7 +23654,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Enterprise.IEnterpriseRegistration, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Enterprise.IEnterpriseRegistration, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes an EnterpriseRegistration message from the specified reader or buffer. @@ -22098,7 +23667,7 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.EnterpriseRegistration; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Enterprise.EnterpriseRegistration; /** * Decodes an EnterpriseRegistration message from the specified reader or buffer, length delimited. @@ -22107,14 +23676,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.EnterpriseRegistration; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.EnterpriseRegistration; /** * Verifies an EnterpriseRegistration message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an EnterpriseRegistration message from a plain object. Also converts values to their respective internal types. @@ -22129,7 +23698,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.EnterpriseRegistration, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.EnterpriseRegistration, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this EnterpriseRegistration to JSON. @@ -22147,17 +23719,15 @@ export namespace Enterprise { /** Properties of a DomainPasswordRulesRequest. */ interface IDomainPasswordRulesRequest { - /** DomainPasswordRulesRequest username */ - username?: (string|null); + username?: string | null; /** DomainPasswordRulesRequest verificationCode */ - verificationCode?: (string|null); + verificationCode?: string | null; } /** Represents a DomainPasswordRulesRequest. */ class DomainPasswordRulesRequest implements IDomainPasswordRulesRequest { - /** * Constructs a new DomainPasswordRulesRequest. * @param [properties] Properties to set @@ -22175,7 +23745,9 @@ export namespace Enterprise { * @param [properties] Properties to set * @returns DomainPasswordRulesRequest instance */ - public static create(properties?: Enterprise.IDomainPasswordRulesRequest): Enterprise.DomainPasswordRulesRequest; + public static create( + properties?: Enterprise.IDomainPasswordRulesRequest + ): Enterprise.DomainPasswordRulesRequest; /** * Encodes the specified DomainPasswordRulesRequest message. Does not implicitly {@link Enterprise.DomainPasswordRulesRequest.verify|verify} messages. @@ -22183,7 +23755,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Enterprise.IDomainPasswordRulesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Enterprise.IDomainPasswordRulesRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified DomainPasswordRulesRequest message, length delimited. Does not implicitly {@link Enterprise.DomainPasswordRulesRequest.verify|verify} messages. @@ -22191,7 +23766,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Enterprise.IDomainPasswordRulesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Enterprise.IDomainPasswordRulesRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a DomainPasswordRulesRequest message from the specified reader or buffer. @@ -22201,7 +23779,10 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.DomainPasswordRulesRequest; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Enterprise.DomainPasswordRulesRequest; /** * Decodes a DomainPasswordRulesRequest message from the specified reader or buffer, length delimited. @@ -22210,14 +23791,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.DomainPasswordRulesRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.DomainPasswordRulesRequest; /** * Verifies a DomainPasswordRulesRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a DomainPasswordRulesRequest message from a plain object. Also converts values to their respective internal types. @@ -22232,7 +23813,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.DomainPasswordRulesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.DomainPasswordRulesRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this DomainPasswordRulesRequest to JSON. @@ -22250,23 +23834,21 @@ export namespace Enterprise { /** Properties of a DomainPasswordRulesFields. */ interface IDomainPasswordRulesFields { - /** DomainPasswordRulesFields type */ - type?: (string|null); + type?: string | null; /** DomainPasswordRulesFields minimum */ - minimum?: (number|null); + minimum?: number | null; /** DomainPasswordRulesFields maximum */ - maximum?: (number|null); + maximum?: number | null; /** DomainPasswordRulesFields allowed */ - allowed?: (boolean|null); + allowed?: boolean | null; } /** Represents a DomainPasswordRulesFields. */ class DomainPasswordRulesFields implements IDomainPasswordRulesFields { - /** * Constructs a new DomainPasswordRulesFields. * @param [properties] Properties to set @@ -22298,7 +23880,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Enterprise.IDomainPasswordRulesFields, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Enterprise.IDomainPasswordRulesFields, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified DomainPasswordRulesFields message, length delimited. Does not implicitly {@link Enterprise.DomainPasswordRulesFields.verify|verify} messages. @@ -22306,7 +23891,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Enterprise.IDomainPasswordRulesFields, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Enterprise.IDomainPasswordRulesFields, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a DomainPasswordRulesFields message from the specified reader or buffer. @@ -22316,7 +23904,10 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.DomainPasswordRulesFields; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Enterprise.DomainPasswordRulesFields; /** * Decodes a DomainPasswordRulesFields message from the specified reader or buffer, length delimited. @@ -22325,14 +23916,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.DomainPasswordRulesFields; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.DomainPasswordRulesFields; /** * Verifies a DomainPasswordRulesFields message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a DomainPasswordRulesFields message from a plain object. Also converts values to their respective internal types. @@ -22347,7 +23938,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.DomainPasswordRulesFields, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.DomainPasswordRulesFields, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this DomainPasswordRulesFields to JSON. @@ -22365,17 +23959,15 @@ export namespace Enterprise { /** Properties of a LoginToMcRequest. */ interface ILoginToMcRequest { - /** LoginToMcRequest mcEnterpriseId */ - mcEnterpriseId?: (number|null); + mcEnterpriseId?: number | null; /** LoginToMcRequest messageSessionUid */ - messageSessionUid?: (Uint8Array|null); + messageSessionUid?: Uint8Array | null; } /** Represents a LoginToMcRequest. */ class LoginToMcRequest implements ILoginToMcRequest { - /** * Constructs a new LoginToMcRequest. * @param [properties] Properties to set @@ -22409,7 +24001,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Enterprise.ILoginToMcRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Enterprise.ILoginToMcRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a LoginToMcRequest message from the specified reader or buffer. @@ -22419,7 +24014,7 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.LoginToMcRequest; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Enterprise.LoginToMcRequest; /** * Decodes a LoginToMcRequest message from the specified reader or buffer, length delimited. @@ -22428,14 +24023,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.LoginToMcRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.LoginToMcRequest; /** * Verifies a LoginToMcRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a LoginToMcRequest message from a plain object. Also converts values to their respective internal types. @@ -22450,7 +24045,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.LoginToMcRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.LoginToMcRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this LoginToMcRequest to JSON. @@ -22468,17 +24066,15 @@ export namespace Enterprise { /** Properties of a LoginToMcResponse. */ interface ILoginToMcResponse { - /** LoginToMcResponse encryptedSessionToken */ - encryptedSessionToken?: (Uint8Array|null); + encryptedSessionToken?: Uint8Array | null; /** LoginToMcResponse encryptedTreeKey */ - encryptedTreeKey?: (string|null); + encryptedTreeKey?: string | null; } /** Represents a LoginToMcResponse. */ class LoginToMcResponse implements ILoginToMcResponse { - /** * Constructs a new LoginToMcResponse. * @param [properties] Properties to set @@ -22512,7 +24108,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Enterprise.ILoginToMcResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Enterprise.ILoginToMcResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a LoginToMcResponse message from the specified reader or buffer. @@ -22522,7 +24121,7 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.LoginToMcResponse; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Enterprise.LoginToMcResponse; /** * Decodes a LoginToMcResponse message from the specified reader or buffer, length delimited. @@ -22531,14 +24130,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.LoginToMcResponse; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.LoginToMcResponse; /** * Verifies a LoginToMcResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a LoginToMcResponse message from a plain object. Also converts values to their respective internal types. @@ -22553,7 +24152,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.LoginToMcResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.LoginToMcResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this LoginToMcResponse to JSON. @@ -22571,14 +24173,12 @@ export namespace Enterprise { /** Properties of a DomainPasswordRulesResponse. */ interface IDomainPasswordRulesResponse { - /** DomainPasswordRulesResponse domainPasswordRulesFields */ - domainPasswordRulesFields?: (Enterprise.IDomainPasswordRulesFields[]|null); + domainPasswordRulesFields?: Enterprise.IDomainPasswordRulesFields[] | null; } /** Represents a DomainPasswordRulesResponse. */ class DomainPasswordRulesResponse implements IDomainPasswordRulesResponse { - /** * Constructs a new DomainPasswordRulesResponse. * @param [properties] Properties to set @@ -22593,7 +24193,9 @@ export namespace Enterprise { * @param [properties] Properties to set * @returns DomainPasswordRulesResponse instance */ - public static create(properties?: Enterprise.IDomainPasswordRulesResponse): Enterprise.DomainPasswordRulesResponse; + public static create( + properties?: Enterprise.IDomainPasswordRulesResponse + ): Enterprise.DomainPasswordRulesResponse; /** * Encodes the specified DomainPasswordRulesResponse message. Does not implicitly {@link Enterprise.DomainPasswordRulesResponse.verify|verify} messages. @@ -22601,7 +24203,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Enterprise.IDomainPasswordRulesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Enterprise.IDomainPasswordRulesResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified DomainPasswordRulesResponse message, length delimited. Does not implicitly {@link Enterprise.DomainPasswordRulesResponse.verify|verify} messages. @@ -22609,7 +24214,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Enterprise.IDomainPasswordRulesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Enterprise.IDomainPasswordRulesResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a DomainPasswordRulesResponse message from the specified reader or buffer. @@ -22619,7 +24227,10 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.DomainPasswordRulesResponse; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Enterprise.DomainPasswordRulesResponse; /** * Decodes a DomainPasswordRulesResponse message from the specified reader or buffer, length delimited. @@ -22628,14 +24239,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.DomainPasswordRulesResponse; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.DomainPasswordRulesResponse; /** * Verifies a DomainPasswordRulesResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a DomainPasswordRulesResponse message from a plain object. Also converts values to their respective internal types. @@ -22650,7 +24261,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.DomainPasswordRulesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.DomainPasswordRulesResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this DomainPasswordRulesResponse to JSON. @@ -22668,23 +24282,21 @@ export namespace Enterprise { /** Properties of an ApproveUserDeviceRequest. */ interface IApproveUserDeviceRequest { - /** ApproveUserDeviceRequest enterpriseUserId */ - enterpriseUserId?: (number|Long|null); + enterpriseUserId?: number | Long | null; /** ApproveUserDeviceRequest encryptedDeviceToken */ - encryptedDeviceToken?: (Uint8Array|null); + encryptedDeviceToken?: Uint8Array | null; /** ApproveUserDeviceRequest encryptedDeviceDataKey */ - encryptedDeviceDataKey?: (Uint8Array|null); + encryptedDeviceDataKey?: Uint8Array | null; /** ApproveUserDeviceRequest denyApproval */ - denyApproval?: (boolean|null); + denyApproval?: boolean | null; } /** Represents an ApproveUserDeviceRequest. */ class ApproveUserDeviceRequest implements IApproveUserDeviceRequest { - /** * Constructs a new ApproveUserDeviceRequest. * @param [properties] Properties to set @@ -22692,7 +24304,7 @@ export namespace Enterprise { constructor(properties?: Enterprise.IApproveUserDeviceRequest); /** ApproveUserDeviceRequest enterpriseUserId. */ - public enterpriseUserId: (number|Long); + public enterpriseUserId: number | Long; /** ApproveUserDeviceRequest encryptedDeviceToken. */ public encryptedDeviceToken: Uint8Array; @@ -22716,7 +24328,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Enterprise.IApproveUserDeviceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Enterprise.IApproveUserDeviceRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified ApproveUserDeviceRequest message, length delimited. Does not implicitly {@link Enterprise.ApproveUserDeviceRequest.verify|verify} messages. @@ -22724,7 +24339,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Enterprise.IApproveUserDeviceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Enterprise.IApproveUserDeviceRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes an ApproveUserDeviceRequest message from the specified reader or buffer. @@ -22734,7 +24352,10 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.ApproveUserDeviceRequest; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Enterprise.ApproveUserDeviceRequest; /** * Decodes an ApproveUserDeviceRequest message from the specified reader or buffer, length delimited. @@ -22743,14 +24364,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.ApproveUserDeviceRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.ApproveUserDeviceRequest; /** * Verifies an ApproveUserDeviceRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an ApproveUserDeviceRequest message from a plain object. Also converts values to their respective internal types. @@ -22765,7 +24386,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.ApproveUserDeviceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.ApproveUserDeviceRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this ApproveUserDeviceRequest to JSON. @@ -22783,23 +24407,21 @@ export namespace Enterprise { /** Properties of an ApproveUserDeviceResponse. */ interface IApproveUserDeviceResponse { - /** ApproveUserDeviceResponse enterpriseUserId */ - enterpriseUserId?: (number|Long|null); + enterpriseUserId?: number | Long | null; /** ApproveUserDeviceResponse encryptedDeviceToken */ - encryptedDeviceToken?: (Uint8Array|null); + encryptedDeviceToken?: Uint8Array | null; /** ApproveUserDeviceResponse failed */ - failed?: (boolean|null); + failed?: boolean | null; /** ApproveUserDeviceResponse message */ - message?: (string|null); + message?: string | null; } /** Represents an ApproveUserDeviceResponse. */ class ApproveUserDeviceResponse implements IApproveUserDeviceResponse { - /** * Constructs a new ApproveUserDeviceResponse. * @param [properties] Properties to set @@ -22807,7 +24429,7 @@ export namespace Enterprise { constructor(properties?: Enterprise.IApproveUserDeviceResponse); /** ApproveUserDeviceResponse enterpriseUserId. */ - public enterpriseUserId: (number|Long); + public enterpriseUserId: number | Long; /** ApproveUserDeviceResponse encryptedDeviceToken. */ public encryptedDeviceToken: Uint8Array; @@ -22831,7 +24453,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Enterprise.IApproveUserDeviceResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Enterprise.IApproveUserDeviceResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified ApproveUserDeviceResponse message, length delimited. Does not implicitly {@link Enterprise.ApproveUserDeviceResponse.verify|verify} messages. @@ -22839,7 +24464,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Enterprise.IApproveUserDeviceResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Enterprise.IApproveUserDeviceResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes an ApproveUserDeviceResponse message from the specified reader or buffer. @@ -22849,7 +24477,10 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.ApproveUserDeviceResponse; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Enterprise.ApproveUserDeviceResponse; /** * Decodes an ApproveUserDeviceResponse message from the specified reader or buffer, length delimited. @@ -22858,14 +24489,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.ApproveUserDeviceResponse; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.ApproveUserDeviceResponse; /** * Verifies an ApproveUserDeviceResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an ApproveUserDeviceResponse message from a plain object. Also converts values to their respective internal types. @@ -22880,7 +24511,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.ApproveUserDeviceResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.ApproveUserDeviceResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this ApproveUserDeviceResponse to JSON. @@ -22898,14 +24532,12 @@ export namespace Enterprise { /** Properties of an ApproveUserDevicesRequest. */ interface IApproveUserDevicesRequest { - /** ApproveUserDevicesRequest deviceRequests */ - deviceRequests?: (Enterprise.IApproveUserDeviceRequest[]|null); + deviceRequests?: Enterprise.IApproveUserDeviceRequest[] | null; } /** Represents an ApproveUserDevicesRequest. */ class ApproveUserDevicesRequest implements IApproveUserDevicesRequest { - /** * Constructs a new ApproveUserDevicesRequest. * @param [properties] Properties to set @@ -22928,7 +24560,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Enterprise.IApproveUserDevicesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Enterprise.IApproveUserDevicesRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified ApproveUserDevicesRequest message, length delimited. Does not implicitly {@link Enterprise.ApproveUserDevicesRequest.verify|verify} messages. @@ -22936,7 +24571,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Enterprise.IApproveUserDevicesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Enterprise.IApproveUserDevicesRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes an ApproveUserDevicesRequest message from the specified reader or buffer. @@ -22946,7 +24584,10 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.ApproveUserDevicesRequest; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Enterprise.ApproveUserDevicesRequest; /** * Decodes an ApproveUserDevicesRequest message from the specified reader or buffer, length delimited. @@ -22955,14 +24596,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.ApproveUserDevicesRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.ApproveUserDevicesRequest; /** * Verifies an ApproveUserDevicesRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an ApproveUserDevicesRequest message from a plain object. Also converts values to their respective internal types. @@ -22977,7 +24618,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.ApproveUserDevicesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.ApproveUserDevicesRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this ApproveUserDevicesRequest to JSON. @@ -22995,14 +24639,12 @@ export namespace Enterprise { /** Properties of an ApproveUserDevicesResponse. */ interface IApproveUserDevicesResponse { - /** ApproveUserDevicesResponse deviceResponses */ - deviceResponses?: (Enterprise.IApproveUserDeviceResponse[]|null); + deviceResponses?: Enterprise.IApproveUserDeviceResponse[] | null; } /** Represents an ApproveUserDevicesResponse. */ class ApproveUserDevicesResponse implements IApproveUserDevicesResponse { - /** * Constructs a new ApproveUserDevicesResponse. * @param [properties] Properties to set @@ -23017,7 +24659,9 @@ export namespace Enterprise { * @param [properties] Properties to set * @returns ApproveUserDevicesResponse instance */ - public static create(properties?: Enterprise.IApproveUserDevicesResponse): Enterprise.ApproveUserDevicesResponse; + public static create( + properties?: Enterprise.IApproveUserDevicesResponse + ): Enterprise.ApproveUserDevicesResponse; /** * Encodes the specified ApproveUserDevicesResponse message. Does not implicitly {@link Enterprise.ApproveUserDevicesResponse.verify|verify} messages. @@ -23025,7 +24669,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Enterprise.IApproveUserDevicesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Enterprise.IApproveUserDevicesResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified ApproveUserDevicesResponse message, length delimited. Does not implicitly {@link Enterprise.ApproveUserDevicesResponse.verify|verify} messages. @@ -23033,7 +24680,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Enterprise.IApproveUserDevicesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Enterprise.IApproveUserDevicesResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes an ApproveUserDevicesResponse message from the specified reader or buffer. @@ -23043,7 +24693,10 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.ApproveUserDevicesResponse; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Enterprise.ApproveUserDevicesResponse; /** * Decodes an ApproveUserDevicesResponse message from the specified reader or buffer, length delimited. @@ -23052,14 +24705,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.ApproveUserDevicesResponse; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.ApproveUserDevicesResponse; /** * Verifies an ApproveUserDevicesResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an ApproveUserDevicesResponse message from a plain object. Also converts values to their respective internal types. @@ -23074,7 +24727,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.ApproveUserDevicesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.ApproveUserDevicesResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this ApproveUserDevicesResponse to JSON. @@ -23092,26 +24748,24 @@ export namespace Enterprise { /** Properties of an EnterpriseUserDataKey. */ interface IEnterpriseUserDataKey { - /** EnterpriseUserDataKey enterpriseUserId */ - enterpriseUserId?: (number|Long|null); + enterpriseUserId?: number | Long | null; /** EnterpriseUserDataKey userEncryptedDataKey */ - userEncryptedDataKey?: (Uint8Array|null); + userEncryptedDataKey?: Uint8Array | null; /** EnterpriseUserDataKey keyTypeId */ - keyTypeId?: (number|null); + keyTypeId?: number | null; /** EnterpriseUserDataKey roleKey */ - roleKey?: (Uint8Array|null); + roleKey?: Uint8Array | null; /** EnterpriseUserDataKey privateKey */ - privateKey?: (Uint8Array|null); + privateKey?: Uint8Array | null; } /** Represents an EnterpriseUserDataKey. */ class EnterpriseUserDataKey implements IEnterpriseUserDataKey { - /** * Constructs a new EnterpriseUserDataKey. * @param [properties] Properties to set @@ -23119,7 +24773,7 @@ export namespace Enterprise { constructor(properties?: Enterprise.IEnterpriseUserDataKey); /** EnterpriseUserDataKey enterpriseUserId. */ - public enterpriseUserId: (number|Long); + public enterpriseUserId: number | Long; /** EnterpriseUserDataKey userEncryptedDataKey. */ public userEncryptedDataKey: Uint8Array; @@ -23154,7 +24808,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Enterprise.IEnterpriseUserDataKey, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Enterprise.IEnterpriseUserDataKey, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes an EnterpriseUserDataKey message from the specified reader or buffer. @@ -23164,7 +24821,7 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.EnterpriseUserDataKey; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Enterprise.EnterpriseUserDataKey; /** * Decodes an EnterpriseUserDataKey message from the specified reader or buffer, length delimited. @@ -23173,14 +24830,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.EnterpriseUserDataKey; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.EnterpriseUserDataKey; /** * Verifies an EnterpriseUserDataKey message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an EnterpriseUserDataKey message from a plain object. Also converts values to their respective internal types. @@ -23195,7 +24852,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.EnterpriseUserDataKey, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.EnterpriseUserDataKey, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this EnterpriseUserDataKey to JSON. @@ -23213,14 +24873,12 @@ export namespace Enterprise { /** Properties of an EnterpriseUserDataKeys. */ interface IEnterpriseUserDataKeys { - /** EnterpriseUserDataKeys keys */ - keys?: (Enterprise.IEnterpriseUserDataKey[]|null); + keys?: Enterprise.IEnterpriseUserDataKey[] | null; } /** Represents an EnterpriseUserDataKeys. */ class EnterpriseUserDataKeys implements IEnterpriseUserDataKeys { - /** * Constructs a new EnterpriseUserDataKeys. * @param [properties] Properties to set @@ -23251,7 +24909,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Enterprise.IEnterpriseUserDataKeys, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Enterprise.IEnterpriseUserDataKeys, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes an EnterpriseUserDataKeys message from the specified reader or buffer. @@ -23261,7 +24922,7 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.EnterpriseUserDataKeys; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Enterprise.EnterpriseUserDataKeys; /** * Decodes an EnterpriseUserDataKeys message from the specified reader or buffer, length delimited. @@ -23270,14 +24931,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.EnterpriseUserDataKeys; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.EnterpriseUserDataKeys; /** * Verifies an EnterpriseUserDataKeys message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an EnterpriseUserDataKeys message from a plain object. Also converts values to their respective internal types. @@ -23292,7 +24953,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.EnterpriseUserDataKeys, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.EnterpriseUserDataKeys, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this EnterpriseUserDataKeys to JSON. @@ -23310,20 +24974,18 @@ export namespace Enterprise { /** Properties of an EnterpriseUserDataKeyLight. */ interface IEnterpriseUserDataKeyLight { - /** EnterpriseUserDataKeyLight enterpriseUserId */ - enterpriseUserId?: (number|Long|null); + enterpriseUserId?: number | Long | null; /** EnterpriseUserDataKeyLight userEncryptedDataKey */ - userEncryptedDataKey?: (Uint8Array|null); + userEncryptedDataKey?: Uint8Array | null; /** EnterpriseUserDataKeyLight keyTypeId */ - keyTypeId?: (number|null); + keyTypeId?: number | null; } /** Represents an EnterpriseUserDataKeyLight. */ class EnterpriseUserDataKeyLight implements IEnterpriseUserDataKeyLight { - /** * Constructs a new EnterpriseUserDataKeyLight. * @param [properties] Properties to set @@ -23331,7 +24993,7 @@ export namespace Enterprise { constructor(properties?: Enterprise.IEnterpriseUserDataKeyLight); /** EnterpriseUserDataKeyLight enterpriseUserId. */ - public enterpriseUserId: (number|Long); + public enterpriseUserId: number | Long; /** EnterpriseUserDataKeyLight userEncryptedDataKey. */ public userEncryptedDataKey: Uint8Array; @@ -23344,7 +25006,9 @@ export namespace Enterprise { * @param [properties] Properties to set * @returns EnterpriseUserDataKeyLight instance */ - public static create(properties?: Enterprise.IEnterpriseUserDataKeyLight): Enterprise.EnterpriseUserDataKeyLight; + public static create( + properties?: Enterprise.IEnterpriseUserDataKeyLight + ): Enterprise.EnterpriseUserDataKeyLight; /** * Encodes the specified EnterpriseUserDataKeyLight message. Does not implicitly {@link Enterprise.EnterpriseUserDataKeyLight.verify|verify} messages. @@ -23352,7 +25016,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Enterprise.IEnterpriseUserDataKeyLight, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Enterprise.IEnterpriseUserDataKeyLight, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified EnterpriseUserDataKeyLight message, length delimited. Does not implicitly {@link Enterprise.EnterpriseUserDataKeyLight.verify|verify} messages. @@ -23360,7 +25027,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Enterprise.IEnterpriseUserDataKeyLight, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Enterprise.IEnterpriseUserDataKeyLight, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes an EnterpriseUserDataKeyLight message from the specified reader or buffer. @@ -23370,7 +25040,10 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.EnterpriseUserDataKeyLight; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Enterprise.EnterpriseUserDataKeyLight; /** * Decodes an EnterpriseUserDataKeyLight message from the specified reader or buffer, length delimited. @@ -23379,14 +25052,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.EnterpriseUserDataKeyLight; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.EnterpriseUserDataKeyLight; /** * Verifies an EnterpriseUserDataKeyLight message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an EnterpriseUserDataKeyLight message from a plain object. Also converts values to their respective internal types. @@ -23401,7 +25074,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.EnterpriseUserDataKeyLight, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.EnterpriseUserDataKeyLight, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this EnterpriseUserDataKeyLight to JSON. @@ -23419,17 +25095,15 @@ export namespace Enterprise { /** Properties of an EnterpriseUserDataKeysByNode. */ interface IEnterpriseUserDataKeysByNode { - /** EnterpriseUserDataKeysByNode nodeId */ - nodeId?: (number|Long|null); + nodeId?: number | Long | null; /** EnterpriseUserDataKeysByNode keys */ - keys?: (Enterprise.IEnterpriseUserDataKeyLight[]|null); + keys?: Enterprise.IEnterpriseUserDataKeyLight[] | null; } /** Represents an EnterpriseUserDataKeysByNode. */ class EnterpriseUserDataKeysByNode implements IEnterpriseUserDataKeysByNode { - /** * Constructs a new EnterpriseUserDataKeysByNode. * @param [properties] Properties to set @@ -23437,7 +25111,7 @@ export namespace Enterprise { constructor(properties?: Enterprise.IEnterpriseUserDataKeysByNode); /** EnterpriseUserDataKeysByNode nodeId. */ - public nodeId: (number|Long); + public nodeId: number | Long; /** EnterpriseUserDataKeysByNode keys. */ public keys: Enterprise.IEnterpriseUserDataKeyLight[]; @@ -23447,7 +25121,9 @@ export namespace Enterprise { * @param [properties] Properties to set * @returns EnterpriseUserDataKeysByNode instance */ - public static create(properties?: Enterprise.IEnterpriseUserDataKeysByNode): Enterprise.EnterpriseUserDataKeysByNode; + public static create( + properties?: Enterprise.IEnterpriseUserDataKeysByNode + ): Enterprise.EnterpriseUserDataKeysByNode; /** * Encodes the specified EnterpriseUserDataKeysByNode message. Does not implicitly {@link Enterprise.EnterpriseUserDataKeysByNode.verify|verify} messages. @@ -23455,7 +25131,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Enterprise.IEnterpriseUserDataKeysByNode, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Enterprise.IEnterpriseUserDataKeysByNode, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified EnterpriseUserDataKeysByNode message, length delimited. Does not implicitly {@link Enterprise.EnterpriseUserDataKeysByNode.verify|verify} messages. @@ -23463,7 +25142,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Enterprise.IEnterpriseUserDataKeysByNode, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Enterprise.IEnterpriseUserDataKeysByNode, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes an EnterpriseUserDataKeysByNode message from the specified reader or buffer. @@ -23473,7 +25155,10 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.EnterpriseUserDataKeysByNode; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Enterprise.EnterpriseUserDataKeysByNode; /** * Decodes an EnterpriseUserDataKeysByNode message from the specified reader or buffer, length delimited. @@ -23482,14 +25167,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.EnterpriseUserDataKeysByNode; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.EnterpriseUserDataKeysByNode; /** * Verifies an EnterpriseUserDataKeysByNode message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an EnterpriseUserDataKeysByNode message from a plain object. Also converts values to their respective internal types. @@ -23504,7 +25189,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.EnterpriseUserDataKeysByNode, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.EnterpriseUserDataKeysByNode, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this EnterpriseUserDataKeysByNode to JSON. @@ -23522,14 +25210,12 @@ export namespace Enterprise { /** Properties of an EnterpriseUserDataKeysByNodeResponse. */ interface IEnterpriseUserDataKeysByNodeResponse { - /** EnterpriseUserDataKeysByNodeResponse keys */ - keys?: (Enterprise.IEnterpriseUserDataKeysByNode[]|null); + keys?: Enterprise.IEnterpriseUserDataKeysByNode[] | null; } /** Represents an EnterpriseUserDataKeysByNodeResponse. */ class EnterpriseUserDataKeysByNodeResponse implements IEnterpriseUserDataKeysByNodeResponse { - /** * Constructs a new EnterpriseUserDataKeysByNodeResponse. * @param [properties] Properties to set @@ -23544,7 +25230,9 @@ export namespace Enterprise { * @param [properties] Properties to set * @returns EnterpriseUserDataKeysByNodeResponse instance */ - public static create(properties?: Enterprise.IEnterpriseUserDataKeysByNodeResponse): Enterprise.EnterpriseUserDataKeysByNodeResponse; + public static create( + properties?: Enterprise.IEnterpriseUserDataKeysByNodeResponse + ): Enterprise.EnterpriseUserDataKeysByNodeResponse; /** * Encodes the specified EnterpriseUserDataKeysByNodeResponse message. Does not implicitly {@link Enterprise.EnterpriseUserDataKeysByNodeResponse.verify|verify} messages. @@ -23552,7 +25240,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Enterprise.IEnterpriseUserDataKeysByNodeResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Enterprise.IEnterpriseUserDataKeysByNodeResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified EnterpriseUserDataKeysByNodeResponse message, length delimited. Does not implicitly {@link Enterprise.EnterpriseUserDataKeysByNodeResponse.verify|verify} messages. @@ -23560,7 +25251,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Enterprise.IEnterpriseUserDataKeysByNodeResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Enterprise.IEnterpriseUserDataKeysByNodeResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes an EnterpriseUserDataKeysByNodeResponse message from the specified reader or buffer. @@ -23570,7 +25264,10 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.EnterpriseUserDataKeysByNodeResponse; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Enterprise.EnterpriseUserDataKeysByNodeResponse; /** * Decodes an EnterpriseUserDataKeysByNodeResponse message from the specified reader or buffer, length delimited. @@ -23579,14 +25276,16 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.EnterpriseUserDataKeysByNodeResponse; + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array + ): Enterprise.EnterpriseUserDataKeysByNodeResponse; /** * Verifies an EnterpriseUserDataKeysByNodeResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an EnterpriseUserDataKeysByNodeResponse message from a plain object. Also converts values to their respective internal types. @@ -23601,7 +25300,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.EnterpriseUserDataKeysByNodeResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.EnterpriseUserDataKeysByNodeResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this EnterpriseUserDataKeysByNodeResponse to JSON. @@ -23619,14 +25321,12 @@ export namespace Enterprise { /** Properties of an EnterpriseDataRequest. */ interface IEnterpriseDataRequest { - /** EnterpriseDataRequest continuationToken */ - continuationToken?: (Uint8Array|null); + continuationToken?: Uint8Array | null; } /** Represents an EnterpriseDataRequest. */ class EnterpriseDataRequest implements IEnterpriseDataRequest { - /** * Constructs a new EnterpriseDataRequest. * @param [properties] Properties to set @@ -23657,7 +25357,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Enterprise.IEnterpriseDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Enterprise.IEnterpriseDataRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes an EnterpriseDataRequest message from the specified reader or buffer. @@ -23667,7 +25370,7 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.EnterpriseDataRequest; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Enterprise.EnterpriseDataRequest; /** * Decodes an EnterpriseDataRequest message from the specified reader or buffer, length delimited. @@ -23676,14 +25379,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.EnterpriseDataRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.EnterpriseDataRequest; /** * Verifies an EnterpriseDataRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an EnterpriseDataRequest message from a plain object. Also converts values to their respective internal types. @@ -23698,7 +25401,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.EnterpriseDataRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.EnterpriseDataRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this EnterpriseDataRequest to JSON. @@ -23716,17 +25422,15 @@ export namespace Enterprise { /** Properties of a SpecialProvisioning. */ interface ISpecialProvisioning { - /** SpecialProvisioning url */ - url?: (string|null); + url?: string | null; /** SpecialProvisioning name */ - name?: (string|null); + name?: string | null; } /** Represents a SpecialProvisioning. */ class SpecialProvisioning implements ISpecialProvisioning { - /** * Constructs a new SpecialProvisioning. * @param [properties] Properties to set @@ -23760,7 +25464,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Enterprise.ISpecialProvisioning, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Enterprise.ISpecialProvisioning, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a SpecialProvisioning message from the specified reader or buffer. @@ -23770,7 +25477,7 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.SpecialProvisioning; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Enterprise.SpecialProvisioning; /** * Decodes a SpecialProvisioning message from the specified reader or buffer, length delimited. @@ -23779,14 +25486,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.SpecialProvisioning; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.SpecialProvisioning; /** * Verifies a SpecialProvisioning message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a SpecialProvisioning message from a plain object. Also converts values to their respective internal types. @@ -23801,7 +25508,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.SpecialProvisioning, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.SpecialProvisioning, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this SpecialProvisioning to JSON. @@ -23819,32 +25529,30 @@ export namespace Enterprise { /** Properties of a GeneralDataEntity. */ interface IGeneralDataEntity { - /** GeneralDataEntity enterpriseName */ - enterpriseName?: (string|null); + enterpriseName?: string | null; /** GeneralDataEntity restrictVisibility */ - restrictVisibility?: (boolean|null); + restrictVisibility?: boolean | null; /** GeneralDataEntity specialProvisioning */ - specialProvisioning?: (Enterprise.ISpecialProvisioning|null); + specialProvisioning?: Enterprise.ISpecialProvisioning | null; /** GeneralDataEntity userPrivilege */ - userPrivilege?: (Enterprise.IUserPrivilege|null); + userPrivilege?: Enterprise.IUserPrivilege | null; /** GeneralDataEntity distributor */ - distributor?: (boolean|null); + distributor?: boolean | null; /** GeneralDataEntity forbidAccountTransfer */ - forbidAccountTransfer?: (boolean|null); + forbidAccountTransfer?: boolean | null; /** GeneralDataEntity showUserOnboard */ - showUserOnboard?: (boolean|null); + showUserOnboard?: boolean | null; } /** Represents a GeneralDataEntity. */ class GeneralDataEntity implements IGeneralDataEntity { - /** * Constructs a new GeneralDataEntity. * @param [properties] Properties to set @@ -23858,10 +25566,10 @@ export namespace Enterprise { public restrictVisibility: boolean; /** GeneralDataEntity specialProvisioning. */ - public specialProvisioning?: (Enterprise.ISpecialProvisioning|null); + public specialProvisioning?: Enterprise.ISpecialProvisioning | null; /** GeneralDataEntity userPrivilege. */ - public userPrivilege?: (Enterprise.IUserPrivilege|null); + public userPrivilege?: Enterprise.IUserPrivilege | null; /** GeneralDataEntity distributor. */ public distributor: boolean; @@ -23893,7 +25601,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Enterprise.IGeneralDataEntity, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Enterprise.IGeneralDataEntity, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a GeneralDataEntity message from the specified reader or buffer. @@ -23903,7 +25614,7 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.GeneralDataEntity; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Enterprise.GeneralDataEntity; /** * Decodes a GeneralDataEntity message from the specified reader or buffer, length delimited. @@ -23912,14 +25623,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.GeneralDataEntity; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.GeneralDataEntity; /** * Verifies a GeneralDataEntity message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a GeneralDataEntity message from a plain object. Also converts values to their respective internal types. @@ -23934,7 +25645,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.GeneralDataEntity, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.GeneralDataEntity, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this GeneralDataEntity to JSON. @@ -23952,44 +25666,42 @@ export namespace Enterprise { /** Properties of a Node. */ interface INode { - /** Node nodeId */ - nodeId?: (number|Long|null); + nodeId?: number | Long | null; /** Node parentId */ - parentId?: (number|Long|null); + parentId?: number | Long | null; /** Node bridgeId */ - bridgeId?: (number|Long|null); + bridgeId?: number | Long | null; /** Node scimId */ - scimId?: (number|Long|null); + scimId?: number | Long | null; /** Node licenseId */ - licenseId?: (number|Long|null); + licenseId?: number | Long | null; /** Node encryptedData */ - encryptedData?: (string|null); + encryptedData?: string | null; /** Node duoEnabled */ - duoEnabled?: (boolean|null); + duoEnabled?: boolean | null; /** Node rsaEnabled */ - rsaEnabled?: (boolean|null); + rsaEnabled?: boolean | null; /** Node ssoServiceProviderId */ - ssoServiceProviderId?: (number|Long|null); + ssoServiceProviderId?: number | Long | null; /** Node restrictVisibility */ - restrictVisibility?: (boolean|null); + restrictVisibility?: boolean | null; /** Node ssoServiceProviderIds */ - ssoServiceProviderIds?: ((number|Long)[]|null); + ssoServiceProviderIds?: (number | Long)[] | null; } /** Represents a Node. */ class Node implements INode { - /** * Constructs a new Node. * @param [properties] Properties to set @@ -23997,19 +25709,19 @@ export namespace Enterprise { constructor(properties?: Enterprise.INode); /** Node nodeId. */ - public nodeId: (number|Long); + public nodeId: number | Long; /** Node parentId. */ - public parentId: (number|Long); + public parentId: number | Long; /** Node bridgeId. */ - public bridgeId: (number|Long); + public bridgeId: number | Long; /** Node scimId. */ - public scimId: (number|Long); + public scimId: number | Long; /** Node licenseId. */ - public licenseId: (number|Long); + public licenseId: number | Long; /** Node encryptedData. */ public encryptedData: string; @@ -24021,13 +25733,13 @@ export namespace Enterprise { public rsaEnabled: boolean; /** Node ssoServiceProviderId. */ - public ssoServiceProviderId: (number|Long); + public ssoServiceProviderId: number | Long; /** Node restrictVisibility. */ public restrictVisibility: boolean; /** Node ssoServiceProviderIds. */ - public ssoServiceProviderIds: (number|Long)[]; + public ssoServiceProviderIds: (number | Long)[]; /** * Creates a new Node instance using the specified properties. @@ -24060,7 +25772,7 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.Node; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Enterprise.Node; /** * Decodes a Node message from the specified reader or buffer, length delimited. @@ -24069,14 +25781,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.Node; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.Node; /** * Verifies a Node message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a Node message from a plain object. Also converts values to their respective internal types. @@ -24109,32 +25821,30 @@ export namespace Enterprise { /** Properties of a Role. */ interface IRole { - /** Role roleId */ - roleId?: (number|Long|null); + roleId?: number | Long | null; /** Role nodeId */ - nodeId?: (number|Long|null); + nodeId?: number | Long | null; /** Role encryptedData */ - encryptedData?: (string|null); + encryptedData?: string | null; /** Role keyType */ - keyType?: (string|null); + keyType?: string | null; /** Role visibleBelow */ - visibleBelow?: (boolean|null); + visibleBelow?: boolean | null; /** Role newUserInherit */ - newUserInherit?: (boolean|null); + newUserInherit?: boolean | null; /** Role roleType */ - roleType?: (string|null); + roleType?: string | null; } /** Represents a Role. */ class Role implements IRole { - /** * Constructs a new Role. * @param [properties] Properties to set @@ -24142,10 +25852,10 @@ export namespace Enterprise { constructor(properties?: Enterprise.IRole); /** Role roleId. */ - public roleId: (number|Long); + public roleId: number | Long; /** Role nodeId. */ - public nodeId: (number|Long); + public nodeId: number | Long; /** Role encryptedData. */ public encryptedData: string; @@ -24193,7 +25903,7 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.Role; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Enterprise.Role; /** * Decodes a Role message from the specified reader or buffer, length delimited. @@ -24202,14 +25912,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.Role; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.Role; /** * Verifies a Role message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a Role message from a plain object. Also converts values to their respective internal types. @@ -24246,55 +25956,53 @@ export namespace Enterprise { NOT_REQUIRED = 1, NOT_ACCEPTED = 2, PARTIALLY_ACCEPTED = 3, - ACCEPTED = 4 + ACCEPTED = 4, } /** Properties of a User. */ interface IUser { - /** User enterpriseUserId */ - enterpriseUserId?: (number|Long|null); + enterpriseUserId?: number | Long | null; /** User nodeId */ - nodeId?: (number|Long|null); + nodeId?: number | Long | null; /** User encryptedData */ - encryptedData?: (string|null); + encryptedData?: string | null; /** User keyType */ - keyType?: (string|null); + keyType?: string | null; /** User username */ - username?: (string|null); + username?: string | null; /** User status */ - status?: (string|null); + status?: string | null; /** User lock */ - lock?: (number|null); + lock?: number | null; /** User userId */ - userId?: (number|null); + userId?: number | null; /** User accountShareExpiration */ - accountShareExpiration?: (number|Long|null); + accountShareExpiration?: number | Long | null; /** User fullName */ - fullName?: (string|null); + fullName?: string | null; /** User jobTitle */ - jobTitle?: (string|null); + jobTitle?: string | null; /** User tfaEnabled */ - tfaEnabled?: (boolean|null); + tfaEnabled?: boolean | null; /** User transferAcceptanceStatus */ - transferAcceptanceStatus?: (Enterprise.TransferAcceptanceStatus|null); + transferAcceptanceStatus?: Enterprise.TransferAcceptanceStatus | null; } /** Represents a User. */ class User implements IUser { - /** * Constructs a new User. * @param [properties] Properties to set @@ -24302,10 +26010,10 @@ export namespace Enterprise { constructor(properties?: Enterprise.IUser); /** User enterpriseUserId. */ - public enterpriseUserId: (number|Long); + public enterpriseUserId: number | Long; /** User nodeId. */ - public nodeId: (number|Long); + public nodeId: number | Long; /** User encryptedData. */ public encryptedData: string; @@ -24326,7 +26034,7 @@ export namespace Enterprise { public userId: number; /** User accountShareExpiration. */ - public accountShareExpiration: (number|Long); + public accountShareExpiration: number | Long; /** User fullName. */ public fullName: string; @@ -24371,7 +26079,7 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.User; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Enterprise.User; /** * Decodes a User message from the specified reader or buffer, length delimited. @@ -24380,14 +26088,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.User; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.User; /** * Verifies a User message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a User message from a plain object. Also converts values to their respective internal types. @@ -24420,17 +26128,15 @@ export namespace Enterprise { /** Properties of a UserAlias. */ interface IUserAlias { - /** UserAlias enterpriseUserId */ - enterpriseUserId?: (number|Long|null); + enterpriseUserId?: number | Long | null; /** UserAlias username */ - username?: (string|null); + username?: string | null; } /** Represents a UserAlias. */ class UserAlias implements IUserAlias { - /** * Constructs a new UserAlias. * @param [properties] Properties to set @@ -24438,7 +26144,7 @@ export namespace Enterprise { constructor(properties?: Enterprise.IUserAlias); /** UserAlias enterpriseUserId. */ - public enterpriseUserId: (number|Long); + public enterpriseUserId: number | Long; /** UserAlias username. */ public username: string; @@ -24474,7 +26180,7 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.UserAlias; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Enterprise.UserAlias; /** * Decodes a UserAlias message from the specified reader or buffer, length delimited. @@ -24483,14 +26189,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.UserAlias; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.UserAlias; /** * Verifies a UserAlias message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a UserAlias message from a plain object. Also converts values to their respective internal types. @@ -24505,7 +26211,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.UserAlias, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.UserAlias, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this UserAlias to JSON. @@ -24523,32 +26232,30 @@ export namespace Enterprise { /** Properties of a ComplianceReportMetaData. */ interface IComplianceReportMetaData { - /** ComplianceReportMetaData reportUid */ - reportUid?: (Uint8Array|null); + reportUid?: Uint8Array | null; /** ComplianceReportMetaData nodeId */ - nodeId?: (number|Long|null); + nodeId?: number | Long | null; /** ComplianceReportMetaData reportName */ - reportName?: (string|null); + reportName?: string | null; /** ComplianceReportMetaData dateGenerated */ - dateGenerated?: (number|Long|null); + dateGenerated?: number | Long | null; /** ComplianceReportMetaData runByName */ - runByName?: (string|null); + runByName?: string | null; /** ComplianceReportMetaData numberOfOwners */ - numberOfOwners?: (number|null); + numberOfOwners?: number | null; /** ComplianceReportMetaData numberOfRecords */ - numberOfRecords?: (number|null); + numberOfRecords?: number | null; } /** Represents a ComplianceReportMetaData. */ class ComplianceReportMetaData implements IComplianceReportMetaData { - /** * Constructs a new ComplianceReportMetaData. * @param [properties] Properties to set @@ -24559,13 +26266,13 @@ export namespace Enterprise { public reportUid: Uint8Array; /** ComplianceReportMetaData nodeId. */ - public nodeId: (number|Long); + public nodeId: number | Long; /** ComplianceReportMetaData reportName. */ public reportName: string; /** ComplianceReportMetaData dateGenerated. */ - public dateGenerated: (number|Long); + public dateGenerated: number | Long; /** ComplianceReportMetaData runByName. */ public runByName: string; @@ -24589,7 +26296,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Enterprise.IComplianceReportMetaData, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Enterprise.IComplianceReportMetaData, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified ComplianceReportMetaData message, length delimited. Does not implicitly {@link Enterprise.ComplianceReportMetaData.verify|verify} messages. @@ -24597,7 +26307,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Enterprise.IComplianceReportMetaData, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Enterprise.IComplianceReportMetaData, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a ComplianceReportMetaData message from the specified reader or buffer. @@ -24607,7 +26320,10 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.ComplianceReportMetaData; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Enterprise.ComplianceReportMetaData; /** * Decodes a ComplianceReportMetaData message from the specified reader or buffer, length delimited. @@ -24616,14 +26332,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.ComplianceReportMetaData; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.ComplianceReportMetaData; /** * Verifies a ComplianceReportMetaData message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a ComplianceReportMetaData message from a plain object. Also converts values to their respective internal types. @@ -24638,7 +26354,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.ComplianceReportMetaData, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.ComplianceReportMetaData, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this ComplianceReportMetaData to JSON. @@ -24656,20 +26375,18 @@ export namespace Enterprise { /** Properties of a ManagedNode. */ interface IManagedNode { - /** ManagedNode roleId */ - roleId?: (number|Long|null); + roleId?: number | Long | null; /** ManagedNode managedNodeId */ - managedNodeId?: (number|Long|null); + managedNodeId?: number | Long | null; /** ManagedNode cascadeNodeManagement */ - cascadeNodeManagement?: (boolean|null); + cascadeNodeManagement?: boolean | null; } /** Represents a ManagedNode. */ class ManagedNode implements IManagedNode { - /** * Constructs a new ManagedNode. * @param [properties] Properties to set @@ -24677,10 +26394,10 @@ export namespace Enterprise { constructor(properties?: Enterprise.IManagedNode); /** ManagedNode roleId. */ - public roleId: (number|Long); + public roleId: number | Long; /** ManagedNode managedNodeId. */ - public managedNodeId: (number|Long); + public managedNodeId: number | Long; /** ManagedNode cascadeNodeManagement. */ public cascadeNodeManagement: boolean; @@ -24716,7 +26433,7 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.ManagedNode; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Enterprise.ManagedNode; /** * Decodes a ManagedNode message from the specified reader or buffer, length delimited. @@ -24725,14 +26442,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.ManagedNode; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.ManagedNode; /** * Verifies a ManagedNode message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a ManagedNode message from a plain object. Also converts values to their respective internal types. @@ -24747,7 +26464,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.ManagedNode, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.ManagedNode, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this ManagedNode to JSON. @@ -24765,20 +26485,18 @@ export namespace Enterprise { /** Properties of a UserManagedNode. */ interface IUserManagedNode { - /** UserManagedNode nodeId */ - nodeId?: (number|Long|null); + nodeId?: number | Long | null; /** UserManagedNode cascadeNodeManagement */ - cascadeNodeManagement?: (boolean|null); + cascadeNodeManagement?: boolean | null; /** UserManagedNode privileges */ - privileges?: (string[]|null); + privileges?: string[] | null; } /** Represents a UserManagedNode. */ class UserManagedNode implements IUserManagedNode { - /** * Constructs a new UserManagedNode. * @param [properties] Properties to set @@ -24786,7 +26504,7 @@ export namespace Enterprise { constructor(properties?: Enterprise.IUserManagedNode); /** UserManagedNode nodeId. */ - public nodeId: (number|Long); + public nodeId: number | Long; /** UserManagedNode cascadeNodeManagement. */ public cascadeNodeManagement: boolean; @@ -24815,7 +26533,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Enterprise.IUserManagedNode, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Enterprise.IUserManagedNode, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a UserManagedNode message from the specified reader or buffer. @@ -24825,7 +26546,7 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.UserManagedNode; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Enterprise.UserManagedNode; /** * Decodes a UserManagedNode message from the specified reader or buffer, length delimited. @@ -24834,14 +26555,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.UserManagedNode; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.UserManagedNode; /** * Verifies a UserManagedNode message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a UserManagedNode message from a plain object. Also converts values to their respective internal types. @@ -24856,7 +26577,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.UserManagedNode, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.UserManagedNode, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this UserManagedNode to JSON. @@ -24874,20 +26598,18 @@ export namespace Enterprise { /** Properties of a UserPrivilege. */ interface IUserPrivilege { - /** UserPrivilege userManagedNodes */ - userManagedNodes?: (Enterprise.IUserManagedNode[]|null); + userManagedNodes?: Enterprise.IUserManagedNode[] | null; /** UserPrivilege enterpriseUserId */ - enterpriseUserId?: (number|Long|null); + enterpriseUserId?: number | Long | null; /** UserPrivilege encryptedData */ - encryptedData?: (string|null); + encryptedData?: string | null; } /** Represents a UserPrivilege. */ class UserPrivilege implements IUserPrivilege { - /** * Constructs a new UserPrivilege. * @param [properties] Properties to set @@ -24898,7 +26620,7 @@ export namespace Enterprise { public userManagedNodes: Enterprise.IUserManagedNode[]; /** UserPrivilege enterpriseUserId. */ - public enterpriseUserId: (number|Long); + public enterpriseUserId: number | Long; /** UserPrivilege encryptedData. */ public encryptedData: string; @@ -24934,7 +26656,7 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.UserPrivilege; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Enterprise.UserPrivilege; /** * Decodes a UserPrivilege message from the specified reader or buffer, length delimited. @@ -24943,14 +26665,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.UserPrivilege; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.UserPrivilege; /** * Verifies a UserPrivilege message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a UserPrivilege message from a plain object. Also converts values to their respective internal types. @@ -24965,7 +26687,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.UserPrivilege, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.UserPrivilege, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this UserPrivilege to JSON. @@ -24983,17 +26708,15 @@ export namespace Enterprise { /** Properties of a RoleUser. */ interface IRoleUser { - /** RoleUser roleId */ - roleId?: (number|Long|null); + roleId?: number | Long | null; /** RoleUser enterpriseUserId */ - enterpriseUserId?: (number|Long|null); + enterpriseUserId?: number | Long | null; } /** Represents a RoleUser. */ class RoleUser implements IRoleUser { - /** * Constructs a new RoleUser. * @param [properties] Properties to set @@ -25001,10 +26724,10 @@ export namespace Enterprise { constructor(properties?: Enterprise.IRoleUser); /** RoleUser roleId. */ - public roleId: (number|Long); + public roleId: number | Long; /** RoleUser enterpriseUserId. */ - public enterpriseUserId: (number|Long); + public enterpriseUserId: number | Long; /** * Creates a new RoleUser instance using the specified properties. @@ -25037,7 +26760,7 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.RoleUser; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Enterprise.RoleUser; /** * Decodes a RoleUser message from the specified reader or buffer, length delimited. @@ -25046,14 +26769,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.RoleUser; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.RoleUser; /** * Verifies a RoleUser message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a RoleUser message from a plain object. Also converts values to their respective internal types. @@ -25068,7 +26791,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.RoleUser, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.RoleUser, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this RoleUser to JSON. @@ -25086,20 +26812,18 @@ export namespace Enterprise { /** Properties of a RolePrivilege. */ interface IRolePrivilege { - /** RolePrivilege managedNodeId */ - managedNodeId?: (number|Long|null); + managedNodeId?: number | Long | null; /** RolePrivilege roleId */ - roleId?: (number|Long|null); + roleId?: number | Long | null; /** RolePrivilege privilegeType */ - privilegeType?: (string|null); + privilegeType?: string | null; } /** Represents a RolePrivilege. */ class RolePrivilege implements IRolePrivilege { - /** * Constructs a new RolePrivilege. * @param [properties] Properties to set @@ -25107,10 +26831,10 @@ export namespace Enterprise { constructor(properties?: Enterprise.IRolePrivilege); /** RolePrivilege managedNodeId. */ - public managedNodeId: (number|Long); + public managedNodeId: number | Long; /** RolePrivilege roleId. */ - public roleId: (number|Long); + public roleId: number | Long; /** RolePrivilege privilegeType. */ public privilegeType: string; @@ -25146,7 +26870,7 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.RolePrivilege; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Enterprise.RolePrivilege; /** * Decodes a RolePrivilege message from the specified reader or buffer, length delimited. @@ -25155,14 +26879,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.RolePrivilege; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.RolePrivilege; /** * Verifies a RolePrivilege message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a RolePrivilege message from a plain object. Also converts values to their respective internal types. @@ -25177,7 +26901,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.RolePrivilege, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.RolePrivilege, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this RolePrivilege to JSON. @@ -25195,20 +26922,18 @@ export namespace Enterprise { /** Properties of a RoleEnforcement. */ interface IRoleEnforcement { - /** RoleEnforcement roleId */ - roleId?: (number|Long|null); + roleId?: number | Long | null; /** RoleEnforcement enforcementType */ - enforcementType?: (string|null); + enforcementType?: string | null; /** RoleEnforcement value */ - value?: (string|null); + value?: string | null; } /** Represents a RoleEnforcement. */ class RoleEnforcement implements IRoleEnforcement { - /** * Constructs a new RoleEnforcement. * @param [properties] Properties to set @@ -25216,7 +26941,7 @@ export namespace Enterprise { constructor(properties?: Enterprise.IRoleEnforcement); /** RoleEnforcement roleId. */ - public roleId: (number|Long); + public roleId: number | Long; /** RoleEnforcement enforcementType. */ public enforcementType: string; @@ -25245,7 +26970,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Enterprise.IRoleEnforcement, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Enterprise.IRoleEnforcement, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a RoleEnforcement message from the specified reader or buffer. @@ -25255,7 +26983,7 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.RoleEnforcement; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Enterprise.RoleEnforcement; /** * Decodes a RoleEnforcement message from the specified reader or buffer, length delimited. @@ -25264,14 +26992,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.RoleEnforcement; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.RoleEnforcement; /** * Verifies a RoleEnforcement message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a RoleEnforcement message from a plain object. Also converts values to their respective internal types. @@ -25286,7 +27014,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.RoleEnforcement, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.RoleEnforcement, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this RoleEnforcement to JSON. @@ -25304,35 +27035,33 @@ export namespace Enterprise { /** Properties of a Team. */ interface ITeam { - /** Team teamUid */ - teamUid?: (Uint8Array|null); + teamUid?: Uint8Array | null; /** Team name */ - name?: (string|null); + name?: string | null; /** Team nodeId */ - nodeId?: (number|Long|null); + nodeId?: number | Long | null; /** Team restrictEdit */ - restrictEdit?: (boolean|null); + restrictEdit?: boolean | null; /** Team restrictShare */ - restrictShare?: (boolean|null); + restrictShare?: boolean | null; /** Team restrictView */ - restrictView?: (boolean|null); + restrictView?: boolean | null; /** Team encryptedData */ - encryptedData?: (string|null); + encryptedData?: string | null; /** Team encryptedTeamKey */ - encryptedTeamKey?: (string|null); + encryptedTeamKey?: string | null; } /** Represents a Team. */ class Team implements ITeam { - /** * Constructs a new Team. * @param [properties] Properties to set @@ -25346,7 +27075,7 @@ export namespace Enterprise { public name: string; /** Team nodeId. */ - public nodeId: (number|Long); + public nodeId: number | Long; /** Team restrictEdit. */ public restrictEdit: boolean; @@ -25394,7 +27123,7 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.Team; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Enterprise.Team; /** * Decodes a Team message from the specified reader or buffer, length delimited. @@ -25403,14 +27132,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.Team; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.Team; /** * Verifies a Team message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a Team message from a plain object. Also converts values to their respective internal types. @@ -25443,20 +27172,18 @@ export namespace Enterprise { /** Properties of a TeamUser. */ interface ITeamUser { - /** TeamUser teamUid */ - teamUid?: (Uint8Array|null); + teamUid?: Uint8Array | null; /** TeamUser enterpriseUserId */ - enterpriseUserId?: (number|Long|null); + enterpriseUserId?: number | Long | null; /** TeamUser userType */ - userType?: (string|null); + userType?: string | null; } /** Represents a TeamUser. */ class TeamUser implements ITeamUser { - /** * Constructs a new TeamUser. * @param [properties] Properties to set @@ -25467,7 +27194,7 @@ export namespace Enterprise { public teamUid: Uint8Array; /** TeamUser enterpriseUserId. */ - public enterpriseUserId: (number|Long); + public enterpriseUserId: number | Long; /** TeamUser userType. */ public userType: string; @@ -25503,7 +27230,7 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.TeamUser; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Enterprise.TeamUser; /** * Decodes a TeamUser message from the specified reader or buffer, length delimited. @@ -25512,14 +27239,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.TeamUser; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.TeamUser; /** * Verifies a TeamUser message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a TeamUser message from a plain object. Also converts values to their respective internal types. @@ -25534,7 +27261,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.TeamUser, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.TeamUser, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this TeamUser to JSON. @@ -25552,14 +27282,12 @@ export namespace Enterprise { /** Properties of a GetDistributorInfoResponse. */ interface IGetDistributorInfoResponse { - /** GetDistributorInfoResponse distributors */ - distributors?: (Enterprise.IDistributor[]|null); + distributors?: Enterprise.IDistributor[] | null; } /** Represents a GetDistributorInfoResponse. */ class GetDistributorInfoResponse implements IGetDistributorInfoResponse { - /** * Constructs a new GetDistributorInfoResponse. * @param [properties] Properties to set @@ -25574,7 +27302,9 @@ export namespace Enterprise { * @param [properties] Properties to set * @returns GetDistributorInfoResponse instance */ - public static create(properties?: Enterprise.IGetDistributorInfoResponse): Enterprise.GetDistributorInfoResponse; + public static create( + properties?: Enterprise.IGetDistributorInfoResponse + ): Enterprise.GetDistributorInfoResponse; /** * Encodes the specified GetDistributorInfoResponse message. Does not implicitly {@link Enterprise.GetDistributorInfoResponse.verify|verify} messages. @@ -25582,7 +27312,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Enterprise.IGetDistributorInfoResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Enterprise.IGetDistributorInfoResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified GetDistributorInfoResponse message, length delimited. Does not implicitly {@link Enterprise.GetDistributorInfoResponse.verify|verify} messages. @@ -25590,7 +27323,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Enterprise.IGetDistributorInfoResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Enterprise.IGetDistributorInfoResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a GetDistributorInfoResponse message from the specified reader or buffer. @@ -25600,7 +27336,10 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.GetDistributorInfoResponse; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Enterprise.GetDistributorInfoResponse; /** * Decodes a GetDistributorInfoResponse message from the specified reader or buffer, length delimited. @@ -25609,14 +27348,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.GetDistributorInfoResponse; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.GetDistributorInfoResponse; /** * Verifies a GetDistributorInfoResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a GetDistributorInfoResponse message from a plain object. Also converts values to their respective internal types. @@ -25631,7 +27370,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.GetDistributorInfoResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.GetDistributorInfoResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this GetDistributorInfoResponse to JSON. @@ -25649,17 +27391,15 @@ export namespace Enterprise { /** Properties of a Distributor. */ interface IDistributor { - /** Distributor name */ - name?: (string|null); + name?: string | null; /** Distributor mspInfos */ - mspInfos?: (Enterprise.IMspInfo[]|null); + mspInfos?: Enterprise.IMspInfo[] | null; } /** Represents a Distributor. */ class Distributor implements IDistributor { - /** * Constructs a new Distributor. * @param [properties] Properties to set @@ -25703,7 +27443,7 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.Distributor; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Enterprise.Distributor; /** * Decodes a Distributor message from the specified reader or buffer, length delimited. @@ -25712,14 +27452,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.Distributor; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.Distributor; /** * Verifies a Distributor message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a Distributor message from a plain object. Also converts values to their respective internal types. @@ -25734,7 +27474,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.Distributor, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.Distributor, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this Distributor to JSON. @@ -25752,38 +27495,36 @@ export namespace Enterprise { /** Properties of a MspInfo. */ interface IMspInfo { - /** MspInfo enterpriseId */ - enterpriseId?: (number|null); + enterpriseId?: number | null; /** MspInfo enterpriseName */ - enterpriseName?: (string|null); + enterpriseName?: string | null; /** MspInfo allocatedLicenses */ - allocatedLicenses?: (number|null); + allocatedLicenses?: number | null; /** MspInfo allowedMcProducts */ - allowedMcProducts?: (string[]|null); + allowedMcProducts?: string[] | null; /** MspInfo allowedAddOns */ - allowedAddOns?: (string[]|null); + allowedAddOns?: string[] | null; /** MspInfo maxFilePlanType */ - maxFilePlanType?: (string|null); + maxFilePlanType?: string | null; /** MspInfo managedCompanies */ - managedCompanies?: (Enterprise.IManagedCompany[]|null); + managedCompanies?: Enterprise.IManagedCompany[] | null; /** MspInfo allowUnlimitedLicenses */ - allowUnlimitedLicenses?: (boolean|null); + allowUnlimitedLicenses?: boolean | null; /** MspInfo addOns */ - addOns?: (Enterprise.ILicenseAddOn[]|null); + addOns?: Enterprise.ILicenseAddOn[] | null; } /** Represents a MspInfo. */ class MspInfo implements IMspInfo { - /** * Constructs a new MspInfo. * @param [properties] Properties to set @@ -25848,7 +27589,7 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.MspInfo; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Enterprise.MspInfo; /** * Decodes a MspInfo message from the specified reader or buffer, length delimited. @@ -25857,14 +27598,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.MspInfo; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.MspInfo; /** * Verifies a MspInfo message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a MspInfo message from a plain object. Also converts values to their respective internal types. @@ -25879,7 +27620,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.MspInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.MspInfo, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this MspInfo to JSON. @@ -25897,44 +27641,42 @@ export namespace Enterprise { /** Properties of a ManagedCompany. */ interface IManagedCompany { - /** ManagedCompany mcEnterpriseId */ - mcEnterpriseId?: (number|null); + mcEnterpriseId?: number | null; /** ManagedCompany mcEnterpriseName */ - mcEnterpriseName?: (string|null); + mcEnterpriseName?: string | null; /** ManagedCompany mspNodeId */ - mspNodeId?: (number|Long|null); + mspNodeId?: number | Long | null; /** ManagedCompany numberOfSeats */ - numberOfSeats?: (number|null); + numberOfSeats?: number | null; /** ManagedCompany numberOfUsers */ - numberOfUsers?: (number|null); + numberOfUsers?: number | null; /** ManagedCompany productId */ - productId?: (string|null); + productId?: string | null; /** ManagedCompany isExpired */ - isExpired?: (boolean|null); + isExpired?: boolean | null; /** ManagedCompany treeKey */ - treeKey?: (string|null); + treeKey?: string | null; /** ManagedCompany treeKeyRole */ - treeKeyRole?: (number|Long|null); + treeKeyRole?: number | Long | null; /** ManagedCompany filePlanType */ - filePlanType?: (string|null); + filePlanType?: string | null; /** ManagedCompany addOns */ - addOns?: (Enterprise.ILicenseAddOn[]|null); + addOns?: Enterprise.ILicenseAddOn[] | null; } /** Represents a ManagedCompany. */ class ManagedCompany implements IManagedCompany { - /** * Constructs a new ManagedCompany. * @param [properties] Properties to set @@ -25948,7 +27690,7 @@ export namespace Enterprise { public mcEnterpriseName: string; /** ManagedCompany mspNodeId. */ - public mspNodeId: (number|Long); + public mspNodeId: number | Long; /** ManagedCompany numberOfSeats. */ public numberOfSeats: number; @@ -25966,7 +27708,7 @@ export namespace Enterprise { public treeKey: string; /** ManagedCompany treeKeyRole. */ - public treeKeyRole: (number|Long); + public treeKeyRole: number | Long; /** ManagedCompany filePlanType. */ public filePlanType: string; @@ -26005,7 +27747,7 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.ManagedCompany; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Enterprise.ManagedCompany; /** * Decodes a ManagedCompany message from the specified reader or buffer, length delimited. @@ -26014,14 +27756,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.ManagedCompany; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.ManagedCompany; /** * Verifies a ManagedCompany message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a ManagedCompany message from a plain object. Also converts values to their respective internal types. @@ -26036,7 +27778,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.ManagedCompany, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.ManagedCompany, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this ManagedCompany to JSON. @@ -26054,23 +27799,21 @@ export namespace Enterprise { /** Properties of a MSPPool. */ interface IMSPPool { - /** MSPPool productId */ - productId?: (string|null); + productId?: string | null; /** MSPPool seats */ - seats?: (number|null); + seats?: number | null; /** MSPPool availableSeats */ - availableSeats?: (number|null); + availableSeats?: number | null; /** MSPPool stash */ - stash?: (number|null); + stash?: number | null; } /** Represents a MSPPool. */ class MSPPool implements IMSPPool { - /** * Constructs a new MSPPool. * @param [properties] Properties to set @@ -26120,7 +27863,7 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.MSPPool; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Enterprise.MSPPool; /** * Decodes a MSPPool message from the specified reader or buffer, length delimited. @@ -26129,14 +27872,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.MSPPool; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.MSPPool; /** * Verifies a MSPPool message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a MSPPool message from a plain object. Also converts values to their respective internal types. @@ -26151,7 +27894,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.MSPPool, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.MSPPool, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this MSPPool to JSON. @@ -26169,17 +27915,15 @@ export namespace Enterprise { /** Properties of a MSPContact. */ interface IMSPContact { - /** MSPContact enterpriseId */ - enterpriseId?: (number|null); + enterpriseId?: number | null; /** MSPContact enterpriseName */ - enterpriseName?: (string|null); + enterpriseName?: string | null; } /** Represents a MSPContact. */ class MSPContact implements IMSPContact { - /** * Constructs a new MSPContact. * @param [properties] Properties to set @@ -26223,7 +27967,7 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.MSPContact; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Enterprise.MSPContact; /** * Decodes a MSPContact message from the specified reader or buffer, length delimited. @@ -26232,14 +27976,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.MSPContact; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.MSPContact; /** * Verifies a MSPContact message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a MSPContact message from a plain object. Also converts values to their respective internal types. @@ -26254,7 +27998,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.MSPContact, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.MSPContact, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this MSPContact to JSON. @@ -26272,44 +28019,42 @@ export namespace Enterprise { /** Properties of a LicenseAddOn. */ interface ILicenseAddOn { - /** LicenseAddOn name */ - name?: (string|null); + name?: string | null; /** LicenseAddOn enabled */ - enabled?: (boolean|null); + enabled?: boolean | null; /** LicenseAddOn isTrial */ - isTrial?: (boolean|null); + isTrial?: boolean | null; /** LicenseAddOn expiration */ - expiration?: (number|Long|null); + expiration?: number | Long | null; /** LicenseAddOn created */ - created?: (number|Long|null); + created?: number | Long | null; /** LicenseAddOn seats */ - seats?: (number|null); + seats?: number | null; /** LicenseAddOn activationTime */ - activationTime?: (number|Long|null); + activationTime?: number | Long | null; /** LicenseAddOn includedInProduct */ - includedInProduct?: (boolean|null); + includedInProduct?: boolean | null; /** LicenseAddOn apiCallCount */ - apiCallCount?: (number|null); + apiCallCount?: number | null; /** LicenseAddOn tierDescription */ - tierDescription?: (string|null); + tierDescription?: string | null; /** LicenseAddOn seatsAllocated */ - seatsAllocated?: (number|null); + seatsAllocated?: number | null; } /** Represents a LicenseAddOn. */ class LicenseAddOn implements ILicenseAddOn { - /** * Constructs a new LicenseAddOn. * @param [properties] Properties to set @@ -26326,16 +28071,16 @@ export namespace Enterprise { public isTrial: boolean; /** LicenseAddOn expiration. */ - public expiration: (number|Long); + public expiration: number | Long; /** LicenseAddOn created. */ - public created: (number|Long); + public created: number | Long; /** LicenseAddOn seats. */ public seats: number; /** LicenseAddOn activationTime. */ - public activationTime: (number|Long); + public activationTime: number | Long; /** LicenseAddOn includedInProduct. */ public includedInProduct: boolean; @@ -26380,7 +28125,7 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.LicenseAddOn; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Enterprise.LicenseAddOn; /** * Decodes a LicenseAddOn message from the specified reader or buffer, length delimited. @@ -26389,14 +28134,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.LicenseAddOn; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.LicenseAddOn; /** * Verifies a LicenseAddOn message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a LicenseAddOn message from a plain object. Also converts values to their respective internal types. @@ -26411,7 +28156,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.LicenseAddOn, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.LicenseAddOn, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this LicenseAddOn to JSON. @@ -26429,26 +28177,24 @@ export namespace Enterprise { /** Properties of a MCDefault. */ interface IMCDefault { - /** MCDefault mcProduct */ - mcProduct?: (string|null); + mcProduct?: string | null; /** MCDefault addOns */ - addOns?: (string[]|null); + addOns?: string[] | null; /** MCDefault filePlanType */ - filePlanType?: (string|null); + filePlanType?: string | null; /** MCDefault maxLicenses */ - maxLicenses?: (number|null); + maxLicenses?: number | null; /** MCDefault fixedMaxLicenses */ - fixedMaxLicenses?: (boolean|null); + fixedMaxLicenses?: boolean | null; } /** Represents a MCDefault. */ class MCDefault implements IMCDefault { - /** * Constructs a new MCDefault. * @param [properties] Properties to set @@ -26501,7 +28247,7 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.MCDefault; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Enterprise.MCDefault; /** * Decodes a MCDefault message from the specified reader or buffer, length delimited. @@ -26510,14 +28256,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.MCDefault; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.MCDefault; /** * Verifies a MCDefault message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a MCDefault message from a plain object. Also converts values to their respective internal types. @@ -26532,7 +28278,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.MCDefault, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.MCDefault, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this MCDefault to JSON. @@ -26550,32 +28299,30 @@ export namespace Enterprise { /** Properties of a MSPPermits. */ interface IMSPPermits { - /** MSPPermits restricted */ - restricted?: (boolean|null); + restricted?: boolean | null; /** MSPPermits maxAllowedLicenses */ - maxAllowedLicenses?: (number|null); + maxAllowedLicenses?: number | null; /** MSPPermits allowedMcProducts */ - allowedMcProducts?: (string[]|null); + allowedMcProducts?: string[] | null; /** MSPPermits allowedAddOns */ - allowedAddOns?: (string[]|null); + allowedAddOns?: string[] | null; /** MSPPermits maxFilePlanType */ - maxFilePlanType?: (string|null); + maxFilePlanType?: string | null; /** MSPPermits allowUnlimitedLicenses */ - allowUnlimitedLicenses?: (boolean|null); + allowUnlimitedLicenses?: boolean | null; /** MSPPermits mcDefaults */ - mcDefaults?: (Enterprise.IMCDefault[]|null); + mcDefaults?: Enterprise.IMCDefault[] | null; } /** Represents a MSPPermits. */ class MSPPermits implements IMSPPermits { - /** * Constructs a new MSPPermits. * @param [properties] Properties to set @@ -26634,7 +28381,7 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.MSPPermits; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Enterprise.MSPPermits; /** * Decodes a MSPPermits message from the specified reader or buffer, length delimited. @@ -26643,14 +28390,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.MSPPermits; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.MSPPermits; /** * Verifies a MSPPermits message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a MSPPermits message from a plain object. Also converts values to their respective internal types. @@ -26665,7 +28412,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.MSPPermits, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.MSPPermits, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this MSPPermits to JSON. @@ -26683,74 +28433,72 @@ export namespace Enterprise { /** Properties of a License. */ interface ILicense { - /** License paid */ - paid?: (boolean|null); + paid?: boolean | null; /** License numberOfSeats */ - numberOfSeats?: (number|null); + numberOfSeats?: number | null; /** License expiration */ - expiration?: (number|Long|null); + expiration?: number | Long | null; /** License licenseKeyId */ - licenseKeyId?: (number|null); + licenseKeyId?: number | null; /** License productTypeId */ - productTypeId?: (number|null); + productTypeId?: number | null; /** License name */ - name?: (string|null); + name?: string | null; /** License enterpriseLicenseId */ - enterpriseLicenseId?: (number|Long|null); + enterpriseLicenseId?: number | Long | null; /** License seatsAllocated */ - seatsAllocated?: (number|null); + seatsAllocated?: number | null; /** License seatsPending */ - seatsPending?: (number|null); + seatsPending?: number | null; /** License tier */ - tier?: (number|null); + tier?: number | null; /** License filePlanTypeId */ - filePlanTypeId?: (number|null); + filePlanTypeId?: number | null; /** License maxBytes */ - maxBytes?: (number|Long|null); + maxBytes?: number | Long | null; /** License storageExpiration */ - storageExpiration?: (number|Long|null); + storageExpiration?: number | Long | null; /** License licenseStatus */ - licenseStatus?: (string|null); + licenseStatus?: string | null; /** License mspPool */ - mspPool?: (Enterprise.IMSPPool[]|null); + mspPool?: Enterprise.IMSPPool[] | null; /** License managedBy */ - managedBy?: (Enterprise.IMSPContact|null); + managedBy?: Enterprise.IMSPContact | null; /** License addOns */ - addOns?: (Enterprise.ILicenseAddOn[]|null); + addOns?: Enterprise.ILicenseAddOn[] | null; /** License nextBillingDate */ - nextBillingDate?: (number|Long|null); + nextBillingDate?: number | Long | null; /** License hasMSPLegacyLog */ - hasMSPLegacyLog?: (boolean|null); + hasMSPLegacyLog?: boolean | null; /** License mspPermits */ - mspPermits?: (Enterprise.IMSPPermits|null); + mspPermits?: Enterprise.IMSPPermits | null; /** License distributor */ - distributor?: (boolean|null); + distributor?: boolean | null; } /** Represents a License. */ class License implements ILicense { - /** * Constructs a new License. * @param [properties] Properties to set @@ -26764,7 +28512,7 @@ export namespace Enterprise { public numberOfSeats: number; /** License expiration. */ - public expiration: (number|Long); + public expiration: number | Long; /** License licenseKeyId. */ public licenseKeyId: number; @@ -26776,7 +28524,7 @@ export namespace Enterprise { public name: string; /** License enterpriseLicenseId. */ - public enterpriseLicenseId: (number|Long); + public enterpriseLicenseId: number | Long; /** License seatsAllocated. */ public seatsAllocated: number; @@ -26791,10 +28539,10 @@ export namespace Enterprise { public filePlanTypeId: number; /** License maxBytes. */ - public maxBytes: (number|Long); + public maxBytes: number | Long; /** License storageExpiration. */ - public storageExpiration: (number|Long); + public storageExpiration: number | Long; /** License licenseStatus. */ public licenseStatus: string; @@ -26803,19 +28551,19 @@ export namespace Enterprise { public mspPool: Enterprise.IMSPPool[]; /** License managedBy. */ - public managedBy?: (Enterprise.IMSPContact|null); + public managedBy?: Enterprise.IMSPContact | null; /** License addOns. */ public addOns: Enterprise.ILicenseAddOn[]; /** License nextBillingDate. */ - public nextBillingDate: (number|Long); + public nextBillingDate: number | Long; /** License hasMSPLegacyLog. */ public hasMSPLegacyLog: boolean; /** License mspPermits. */ - public mspPermits?: (Enterprise.IMSPPermits|null); + public mspPermits?: Enterprise.IMSPPermits | null; /** License distributor. */ public distributor: boolean; @@ -26851,7 +28599,7 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.License; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Enterprise.License; /** * Decodes a License message from the specified reader or buffer, length delimited. @@ -26860,14 +28608,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.License; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.License; /** * Verifies a License message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a License message from a plain object. Also converts values to their respective internal types. @@ -26882,7 +28630,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.License, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.License, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this License to JSON. @@ -26900,26 +28651,24 @@ export namespace Enterprise { /** Properties of a Bridge. */ interface IBridge { - /** Bridge bridgeId */ - bridgeId?: (number|Long|null); + bridgeId?: number | Long | null; /** Bridge nodeId */ - nodeId?: (number|Long|null); + nodeId?: number | Long | null; /** Bridge wanIpEnforcement */ - wanIpEnforcement?: (string|null); + wanIpEnforcement?: string | null; /** Bridge lanIpEnforcement */ - lanIpEnforcement?: (string|null); + lanIpEnforcement?: string | null; /** Bridge status */ - status?: (string|null); + status?: string | null; } /** Represents a Bridge. */ class Bridge implements IBridge { - /** * Constructs a new Bridge. * @param [properties] Properties to set @@ -26927,10 +28676,10 @@ export namespace Enterprise { constructor(properties?: Enterprise.IBridge); /** Bridge bridgeId. */ - public bridgeId: (number|Long); + public bridgeId: number | Long; /** Bridge nodeId. */ - public nodeId: (number|Long); + public nodeId: number | Long; /** Bridge wanIpEnforcement. */ public wanIpEnforcement: string; @@ -26972,7 +28721,7 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.Bridge; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Enterprise.Bridge; /** * Decodes a Bridge message from the specified reader or buffer, length delimited. @@ -26981,14 +28730,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.Bridge; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.Bridge; /** * Verifies a Bridge message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a Bridge message from a plain object. Also converts values to their respective internal types. @@ -27003,7 +28752,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.Bridge, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.Bridge, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this Bridge to JSON. @@ -27021,29 +28773,27 @@ export namespace Enterprise { /** Properties of a Scim. */ interface IScim { - /** Scim scimId */ - scimId?: (number|Long|null); + scimId?: number | Long | null; /** Scim nodeId */ - nodeId?: (number|Long|null); + nodeId?: number | Long | null; /** Scim status */ - status?: (string|null); + status?: string | null; /** Scim lastSynced */ - lastSynced?: (number|Long|null); + lastSynced?: number | Long | null; /** Scim rolePrefix */ - rolePrefix?: (string|null); + rolePrefix?: string | null; /** Scim uniqueGroups */ - uniqueGroups?: (boolean|null); + uniqueGroups?: boolean | null; } /** Represents a Scim. */ class Scim implements IScim { - /** * Constructs a new Scim. * @param [properties] Properties to set @@ -27051,16 +28801,16 @@ export namespace Enterprise { constructor(properties?: Enterprise.IScim); /** Scim scimId. */ - public scimId: (number|Long); + public scimId: number | Long; /** Scim nodeId. */ - public nodeId: (number|Long); + public nodeId: number | Long; /** Scim status. */ public status: string; /** Scim lastSynced. */ - public lastSynced: (number|Long); + public lastSynced: number | Long; /** Scim rolePrefix. */ public rolePrefix: string; @@ -27099,7 +28849,7 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.Scim; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Enterprise.Scim; /** * Decodes a Scim message from the specified reader or buffer, length delimited. @@ -27108,14 +28858,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.Scim; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.Scim; /** * Verifies a Scim message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a Scim message from a plain object. Also converts values to their respective internal types. @@ -27148,23 +28898,21 @@ export namespace Enterprise { /** Properties of an EmailProvision. */ interface IEmailProvision { - /** EmailProvision id */ - id?: (number|null); + id?: number | null; /** EmailProvision nodeId */ - nodeId?: (number|Long|null); + nodeId?: number | Long | null; /** EmailProvision domain */ - domain?: (string|null); + domain?: string | null; /** EmailProvision method */ - method?: (string|null); + method?: string | null; } /** Represents an EmailProvision. */ class EmailProvision implements IEmailProvision { - /** * Constructs a new EmailProvision. * @param [properties] Properties to set @@ -27175,7 +28923,7 @@ export namespace Enterprise { public id: number; /** EmailProvision nodeId. */ - public nodeId: (number|Long); + public nodeId: number | Long; /** EmailProvision domain. */ public domain: string; @@ -27214,7 +28962,7 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.EmailProvision; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Enterprise.EmailProvision; /** * Decodes an EmailProvision message from the specified reader or buffer, length delimited. @@ -27223,14 +28971,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.EmailProvision; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.EmailProvision; /** * Verifies an EmailProvision message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an EmailProvision message from a plain object. Also converts values to their respective internal types. @@ -27245,7 +28993,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.EmailProvision, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.EmailProvision, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this EmailProvision to JSON. @@ -27263,23 +29014,21 @@ export namespace Enterprise { /** Properties of a QueuedTeam. */ interface IQueuedTeam { - /** QueuedTeam teamUid */ - teamUid?: (Uint8Array|null); + teamUid?: Uint8Array | null; /** QueuedTeam name */ - name?: (string|null); + name?: string | null; /** QueuedTeam nodeId */ - nodeId?: (number|Long|null); + nodeId?: number | Long | null; /** QueuedTeam encryptedData */ - encryptedData?: (string|null); + encryptedData?: string | null; } /** Represents a QueuedTeam. */ class QueuedTeam implements IQueuedTeam { - /** * Constructs a new QueuedTeam. * @param [properties] Properties to set @@ -27293,7 +29042,7 @@ export namespace Enterprise { public name: string; /** QueuedTeam nodeId. */ - public nodeId: (number|Long); + public nodeId: number | Long; /** QueuedTeam encryptedData. */ public encryptedData: string; @@ -27329,7 +29078,7 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.QueuedTeam; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Enterprise.QueuedTeam; /** * Decodes a QueuedTeam message from the specified reader or buffer, length delimited. @@ -27338,14 +29087,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.QueuedTeam; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.QueuedTeam; /** * Verifies a QueuedTeam message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a QueuedTeam message from a plain object. Also converts values to their respective internal types. @@ -27360,7 +29109,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.QueuedTeam, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.QueuedTeam, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this QueuedTeam to JSON. @@ -27378,17 +29130,15 @@ export namespace Enterprise { /** Properties of a QueuedTeamUser. */ interface IQueuedTeamUser { - /** QueuedTeamUser teamUid */ - teamUid?: (Uint8Array|null); + teamUid?: Uint8Array | null; /** QueuedTeamUser users */ - users?: ((number|Long)[]|null); + users?: (number | Long)[] | null; } /** Represents a QueuedTeamUser. */ class QueuedTeamUser implements IQueuedTeamUser { - /** * Constructs a new QueuedTeamUser. * @param [properties] Properties to set @@ -27399,7 +29149,7 @@ export namespace Enterprise { public teamUid: Uint8Array; /** QueuedTeamUser users. */ - public users: (number|Long)[]; + public users: (number | Long)[]; /** * Creates a new QueuedTeamUser instance using the specified properties. @@ -27432,7 +29182,7 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.QueuedTeamUser; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Enterprise.QueuedTeamUser; /** * Decodes a QueuedTeamUser message from the specified reader or buffer, length delimited. @@ -27441,14 +29191,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.QueuedTeamUser; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.QueuedTeamUser; /** * Verifies a QueuedTeamUser message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a QueuedTeamUser message from a plain object. Also converts values to their respective internal types. @@ -27463,7 +29213,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.QueuedTeamUser, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.QueuedTeamUser, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this QueuedTeamUser to JSON. @@ -27481,18 +29234,17 @@ export namespace Enterprise { /** Properties of a TeamsAddResult. */ interface ITeamsAddResult { - /** TeamsAddResult successfulTeamAdd */ - successfulTeamAdd?: (Enterprise.ITeamAddResult[]|null); + successfulTeamAdd?: Enterprise.ITeamAddResult[] | null; /** TeamsAddResult unsuccessfulTeamAdd */ - unsuccessfulTeamAdd?: (Enterprise.ITeamAddResult[]|null); + unsuccessfulTeamAdd?: Enterprise.ITeamAddResult[] | null; /** TeamsAddResult result */ - result?: (string|null); + result?: string | null; /** TeamsAddResult errorMessage */ - errorMessage?: (string|null); + errorMessage?: string | null; } /** @@ -27504,7 +29256,6 @@ export namespace Enterprise { * The top-level errorMessage field is used only when the top-level result is "error". */ class TeamsAddResult implements ITeamsAddResult { - /** * Constructs a new TeamsAddResult. * @param [properties] Properties to set @@ -27554,7 +29305,7 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.TeamsAddResult; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Enterprise.TeamsAddResult; /** * Decodes a TeamsAddResult message from the specified reader or buffer, length delimited. @@ -27563,14 +29314,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.TeamsAddResult; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.TeamsAddResult; /** * Verifies a TeamsAddResult message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a TeamsAddResult message from a plain object. Also converts values to their respective internal types. @@ -27585,7 +29336,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.TeamsAddResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.TeamsAddResult, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this TeamsAddResult to JSON. @@ -27603,20 +29357,18 @@ export namespace Enterprise { /** Properties of a TeamAddResult. */ interface ITeamAddResult { - /** TeamAddResult team */ - team?: (Enterprise.ITeam|null); + team?: Enterprise.ITeam | null; /** TeamAddResult result */ - result?: (string|null); + result?: string | null; /** TeamAddResult errorMessage */ - errorMessage?: (string|null); + errorMessage?: string | null; } /** Represents a TeamAddResult. */ class TeamAddResult implements ITeamAddResult { - /** * Constructs a new TeamAddResult. * @param [properties] Properties to set @@ -27624,7 +29376,7 @@ export namespace Enterprise { constructor(properties?: Enterprise.ITeamAddResult); /** TeamAddResult team. */ - public team?: (Enterprise.ITeam|null); + public team?: Enterprise.ITeam | null; /** TeamAddResult result. */ public result: string; @@ -27663,7 +29415,7 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.TeamAddResult; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Enterprise.TeamAddResult; /** * Decodes a TeamAddResult message from the specified reader or buffer, length delimited. @@ -27672,14 +29424,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.TeamAddResult; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.TeamAddResult; /** * Verifies a TeamAddResult message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a TeamAddResult message from a plain object. Also converts values to their respective internal types. @@ -27694,7 +29446,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.TeamAddResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.TeamAddResult, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this TeamAddResult to JSON. @@ -27712,32 +29467,30 @@ export namespace Enterprise { /** Properties of a SsoService. */ interface ISsoService { - /** SsoService ssoServiceProviderId */ - ssoServiceProviderId?: (number|Long|null); + ssoServiceProviderId?: number | Long | null; /** SsoService nodeId */ - nodeId?: (number|Long|null); + nodeId?: number | Long | null; /** SsoService name */ - name?: (string|null); + name?: string | null; /** SsoService spUrl */ - spUrl?: (string|null); + spUrl?: string | null; /** SsoService inviteNewUsers */ - inviteNewUsers?: (boolean|null); + inviteNewUsers?: boolean | null; /** SsoService active */ - active?: (boolean|null); + active?: boolean | null; /** SsoService isCloud */ - isCloud?: (boolean|null); + isCloud?: boolean | null; } /** Represents a SsoService. */ class SsoService implements ISsoService { - /** * Constructs a new SsoService. * @param [properties] Properties to set @@ -27745,10 +29498,10 @@ export namespace Enterprise { constructor(properties?: Enterprise.ISsoService); /** SsoService ssoServiceProviderId. */ - public ssoServiceProviderId: (number|Long); + public ssoServiceProviderId: number | Long; /** SsoService nodeId. */ - public nodeId: (number|Long); + public nodeId: number | Long; /** SsoService name. */ public name: string; @@ -27796,7 +29549,7 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.SsoService; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Enterprise.SsoService; /** * Decodes a SsoService message from the specified reader or buffer, length delimited. @@ -27805,14 +29558,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.SsoService; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.SsoService; /** * Verifies a SsoService message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a SsoService message from a plain object. Also converts values to their respective internal types. @@ -27827,7 +29580,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.SsoService, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.SsoService, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this SsoService to JSON. @@ -27845,17 +29601,15 @@ export namespace Enterprise { /** Properties of a ReportFilterUser. */ interface IReportFilterUser { - /** ReportFilterUser userId */ - userId?: (number|null); + userId?: number | null; /** ReportFilterUser email */ - email?: (string|null); + email?: string | null; } /** Represents a ReportFilterUser. */ class ReportFilterUser implements IReportFilterUser { - /** * Constructs a new ReportFilterUser. * @param [properties] Properties to set @@ -27889,7 +29643,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Enterprise.IReportFilterUser, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Enterprise.IReportFilterUser, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a ReportFilterUser message from the specified reader or buffer. @@ -27899,7 +29656,7 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.ReportFilterUser; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Enterprise.ReportFilterUser; /** * Decodes a ReportFilterUser message from the specified reader or buffer, length delimited. @@ -27908,14 +29665,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.ReportFilterUser; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.ReportFilterUser; /** * Verifies a ReportFilterUser message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a ReportFilterUser message from a plain object. Also converts values to their respective internal types. @@ -27930,7 +29687,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.ReportFilterUser, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.ReportFilterUser, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this ReportFilterUser to JSON. @@ -27948,47 +29708,45 @@ export namespace Enterprise { /** Properties of a DeviceRequestForAdminApproval. */ interface IDeviceRequestForAdminApproval { - /** DeviceRequestForAdminApproval deviceId */ - deviceId?: (number|Long|null); + deviceId?: number | Long | null; /** DeviceRequestForAdminApproval enterpriseUserId */ - enterpriseUserId?: (number|Long|null); + enterpriseUserId?: number | Long | null; /** DeviceRequestForAdminApproval encryptedDeviceToken */ - encryptedDeviceToken?: (Uint8Array|null); + encryptedDeviceToken?: Uint8Array | null; /** DeviceRequestForAdminApproval devicePublicKey */ - devicePublicKey?: (Uint8Array|null); + devicePublicKey?: Uint8Array | null; /** DeviceRequestForAdminApproval deviceName */ - deviceName?: (string|null); + deviceName?: string | null; /** DeviceRequestForAdminApproval clientVersion */ - clientVersion?: (string|null); + clientVersion?: string | null; /** DeviceRequestForAdminApproval deviceType */ - deviceType?: (string|null); + deviceType?: string | null; /** DeviceRequestForAdminApproval date */ - date?: (number|Long|null); + date?: number | Long | null; /** DeviceRequestForAdminApproval ipAddress */ - ipAddress?: (string|null); + ipAddress?: string | null; /** DeviceRequestForAdminApproval location */ - location?: (string|null); + location?: string | null; /** DeviceRequestForAdminApproval email */ - email?: (string|null); + email?: string | null; /** DeviceRequestForAdminApproval accountUid */ - accountUid?: (Uint8Array|null); + accountUid?: Uint8Array | null; } /** Represents a DeviceRequestForAdminApproval. */ class DeviceRequestForAdminApproval implements IDeviceRequestForAdminApproval { - /** * Constructs a new DeviceRequestForAdminApproval. * @param [properties] Properties to set @@ -27996,10 +29754,10 @@ export namespace Enterprise { constructor(properties?: Enterprise.IDeviceRequestForAdminApproval); /** DeviceRequestForAdminApproval deviceId. */ - public deviceId: (number|Long); + public deviceId: number | Long; /** DeviceRequestForAdminApproval enterpriseUserId. */ - public enterpriseUserId: (number|Long); + public enterpriseUserId: number | Long; /** DeviceRequestForAdminApproval encryptedDeviceToken. */ public encryptedDeviceToken: Uint8Array; @@ -28017,7 +29775,7 @@ export namespace Enterprise { public deviceType: string; /** DeviceRequestForAdminApproval date. */ - public date: (number|Long); + public date: number | Long; /** DeviceRequestForAdminApproval ipAddress. */ public ipAddress: string; @@ -28036,7 +29794,9 @@ export namespace Enterprise { * @param [properties] Properties to set * @returns DeviceRequestForAdminApproval instance */ - public static create(properties?: Enterprise.IDeviceRequestForAdminApproval): Enterprise.DeviceRequestForAdminApproval; + public static create( + properties?: Enterprise.IDeviceRequestForAdminApproval + ): Enterprise.DeviceRequestForAdminApproval; /** * Encodes the specified DeviceRequestForAdminApproval message. Does not implicitly {@link Enterprise.DeviceRequestForAdminApproval.verify|verify} messages. @@ -28044,7 +29804,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Enterprise.IDeviceRequestForAdminApproval, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Enterprise.IDeviceRequestForAdminApproval, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified DeviceRequestForAdminApproval message, length delimited. Does not implicitly {@link Enterprise.DeviceRequestForAdminApproval.verify|verify} messages. @@ -28052,7 +29815,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Enterprise.IDeviceRequestForAdminApproval, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Enterprise.IDeviceRequestForAdminApproval, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a DeviceRequestForAdminApproval message from the specified reader or buffer. @@ -28062,7 +29828,10 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.DeviceRequestForAdminApproval; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Enterprise.DeviceRequestForAdminApproval; /** * Decodes a DeviceRequestForAdminApproval message from the specified reader or buffer, length delimited. @@ -28071,14 +29840,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.DeviceRequestForAdminApproval; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.DeviceRequestForAdminApproval; /** * Verifies a DeviceRequestForAdminApproval message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a DeviceRequestForAdminApproval message from a plain object. Also converts values to their respective internal types. @@ -28093,7 +29862,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.DeviceRequestForAdminApproval, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.DeviceRequestForAdminApproval, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this DeviceRequestForAdminApproval to JSON. @@ -28134,31 +29906,29 @@ export namespace Enterprise { DEVICES_REQUEST_FOR_ADMIN_APPROVAL = 20, USER_ALIASES = 21, COMPLIANCE_REPORT_CRITERIA_AND_FILTER = 22, - COMPLIANCE_REPORTS = 23 + COMPLIANCE_REPORTS = 23, } /** CacheStatus enum. */ enum CacheStatus { KEEP = 0, - CLEAR = 1 + CLEAR = 1, } /** Properties of an EnterpriseData. */ interface IEnterpriseData { - /** EnterpriseData entity */ - entity?: (Enterprise.EnterpriseDataEntity|null); + entity?: Enterprise.EnterpriseDataEntity | null; /** EnterpriseData delete */ - "delete"?: (boolean|null); + delete?: boolean | null; /** EnterpriseData data */ - data?: (Uint8Array[]|null); + data?: Uint8Array[] | null; } /** Represents an EnterpriseData. */ class EnterpriseData implements IEnterpriseData { - /** * Constructs a new EnterpriseData. * @param [properties] Properties to set @@ -28205,7 +29975,7 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.EnterpriseData; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Enterprise.EnterpriseData; /** * Decodes an EnterpriseData message from the specified reader or buffer, length delimited. @@ -28214,14 +29984,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.EnterpriseData; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.EnterpriseData; /** * Verifies an EnterpriseData message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an EnterpriseData message from a plain object. Also converts values to their respective internal types. @@ -28236,7 +30006,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.EnterpriseData, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.EnterpriseData, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this EnterpriseData to JSON. @@ -28254,26 +30027,24 @@ export namespace Enterprise { /** Properties of an EnterpriseDataResponse. */ interface IEnterpriseDataResponse { - /** EnterpriseDataResponse continuationToken */ - continuationToken?: (Uint8Array|null); + continuationToken?: Uint8Array | null; /** EnterpriseDataResponse hasMore */ - hasMore?: (boolean|null); + hasMore?: boolean | null; /** EnterpriseDataResponse cacheStatus */ - cacheStatus?: (Enterprise.CacheStatus|null); + cacheStatus?: Enterprise.CacheStatus | null; /** EnterpriseDataResponse data */ - data?: (Enterprise.IEnterpriseData[]|null); + data?: Enterprise.IEnterpriseData[] | null; /** EnterpriseDataResponse generalData */ - generalData?: (Enterprise.IGeneralDataEntity|null); + generalData?: Enterprise.IGeneralDataEntity | null; } /** Represents an EnterpriseDataResponse. */ class EnterpriseDataResponse implements IEnterpriseDataResponse { - /** * Constructs a new EnterpriseDataResponse. * @param [properties] Properties to set @@ -28293,7 +30064,7 @@ export namespace Enterprise { public data: Enterprise.IEnterpriseData[]; /** EnterpriseDataResponse generalData. */ - public generalData?: (Enterprise.IGeneralDataEntity|null); + public generalData?: Enterprise.IGeneralDataEntity | null; /** * Creates a new EnterpriseDataResponse instance using the specified properties. @@ -28316,7 +30087,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Enterprise.IEnterpriseDataResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Enterprise.IEnterpriseDataResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes an EnterpriseDataResponse message from the specified reader or buffer. @@ -28326,7 +30100,7 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.EnterpriseDataResponse; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Enterprise.EnterpriseDataResponse; /** * Decodes an EnterpriseDataResponse message from the specified reader or buffer, length delimited. @@ -28335,14 +30109,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.EnterpriseDataResponse; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.EnterpriseDataResponse; /** * Verifies an EnterpriseDataResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an EnterpriseDataResponse message from a plain object. Also converts values to their respective internal types. @@ -28357,7 +30131,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.EnterpriseDataResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.EnterpriseDataResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this EnterpriseDataResponse to JSON. @@ -28375,14 +30152,12 @@ export namespace Enterprise { /** Properties of a BackupRequest. */ interface IBackupRequest { - /** BackupRequest continuationToken */ - continuationToken?: (Uint8Array|null); + continuationToken?: Uint8Array | null; } /** Represents a BackupRequest. */ class BackupRequest implements IBackupRequest { - /** * Constructs a new BackupRequest. * @param [properties] Properties to set @@ -28423,7 +30198,7 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.BackupRequest; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Enterprise.BackupRequest; /** * Decodes a BackupRequest message from the specified reader or buffer, length delimited. @@ -28432,14 +30207,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.BackupRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.BackupRequest; /** * Verifies a BackupRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a BackupRequest message from a plain object. Also converts values to their respective internal types. @@ -28454,7 +30229,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.BackupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.BackupRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this BackupRequest to JSON. @@ -28476,43 +30254,41 @@ export namespace Enterprise { ENCRYPTED_BY_DATA_KEY = 1, ENCRYPTED_BY_PUBLIC_KEY = 2, ENCRYPTED_BY_DATA_KEY_GCM = 3, - ENCRYPTED_BY_PUBLIC_KEY_ECC = 4 + ENCRYPTED_BY_PUBLIC_KEY_ECC = 4, } /** BackupUserDataKeyType enum. */ enum BackupUserDataKeyType { OWN = 0, - SHARED_TO_ENTERPRISE = 1 + SHARED_TO_ENTERPRISE = 1, } /** Properties of a BackupRecord. */ interface IBackupRecord { - /** BackupRecord userId */ - userId?: (number|null); + userId?: number | null; /** BackupRecord recordUid */ - recordUid?: (Uint8Array|null); + recordUid?: Uint8Array | null; /** BackupRecord key */ - key?: (Uint8Array|null); + key?: Uint8Array | null; /** BackupRecord keyType */ - keyType?: (Enterprise.BackupKeyType|null); + keyType?: Enterprise.BackupKeyType | null; /** BackupRecord version */ - version?: (number|null); + version?: number | null; /** BackupRecord data */ - data?: (Uint8Array|null); + data?: Uint8Array | null; /** BackupRecord extra */ - extra?: (Uint8Array|null); + extra?: Uint8Array | null; } /** Represents a BackupRecord. */ class BackupRecord implements IBackupRecord { - /** * Constructs a new BackupRecord. * @param [properties] Properties to set @@ -28571,7 +30347,7 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.BackupRecord; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Enterprise.BackupRecord; /** * Decodes a BackupRecord message from the specified reader or buffer, length delimited. @@ -28580,14 +30356,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.BackupRecord; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.BackupRecord; /** * Verifies a BackupRecord message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a BackupRecord message from a plain object. Also converts values to their respective internal types. @@ -28602,7 +30378,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.BackupRecord, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.BackupRecord, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this BackupRecord to JSON. @@ -28620,17 +30399,15 @@ export namespace Enterprise { /** Properties of a BackupKey. */ interface IBackupKey { - /** BackupKey userId */ - userId?: (number|null); + userId?: number | null; /** BackupKey backupKey */ - backupKey?: (Uint8Array|null); + backupKey?: Uint8Array | null; } /** Represents a BackupKey. */ class BackupKey implements IBackupKey { - /** * Constructs a new BackupKey. * @param [properties] Properties to set @@ -28674,7 +30451,7 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.BackupKey; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Enterprise.BackupKey; /** * Decodes a BackupKey message from the specified reader or buffer, length delimited. @@ -28683,14 +30460,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.BackupKey; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.BackupKey; /** * Verifies a BackupKey message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a BackupKey message from a plain object. Also converts values to their respective internal types. @@ -28705,7 +30482,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.BackupKey, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.BackupKey, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this BackupKey to JSON. @@ -28723,38 +30503,36 @@ export namespace Enterprise { /** Properties of a BackupUser. */ interface IBackupUser { - /** BackupUser userId */ - userId?: (number|null); + userId?: number | null; /** BackupUser userName */ - userName?: (string|null); + userName?: string | null; /** BackupUser dataKey */ - dataKey?: (Uint8Array|null); + dataKey?: Uint8Array | null; /** BackupUser dataKeyType */ - dataKeyType?: (Enterprise.BackupUserDataKeyType|null); + dataKeyType?: Enterprise.BackupUserDataKeyType | null; /** BackupUser privateKey */ - privateKey?: (Uint8Array|null); + privateKey?: Uint8Array | null; /** BackupUser treeKey */ - treeKey?: (Uint8Array|null); + treeKey?: Uint8Array | null; /** BackupUser treeKeyType */ - treeKeyType?: (Enterprise.BackupKeyType|null); + treeKeyType?: Enterprise.BackupKeyType | null; /** BackupUser backupKeys */ - backupKeys?: (Enterprise.IBackupKey[]|null); + backupKeys?: Enterprise.IBackupKey[] | null; /** BackupUser privateECKey */ - privateECKey?: (Uint8Array|null); + privateECKey?: Uint8Array | null; } /** Represents a BackupUser. */ class BackupUser implements IBackupUser { - /** * Constructs a new BackupUser. * @param [properties] Properties to set @@ -28819,7 +30597,7 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.BackupUser; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Enterprise.BackupUser; /** * Decodes a BackupUser message from the specified reader or buffer, length delimited. @@ -28828,14 +30606,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.BackupUser; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.BackupUser; /** * Verifies a BackupUser message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a BackupUser message from a plain object. Also converts values to their respective internal types. @@ -28850,7 +30628,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.BackupUser, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.BackupUser, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this BackupUser to JSON. @@ -28868,23 +30649,21 @@ export namespace Enterprise { /** Properties of a BackupResponse. */ interface IBackupResponse { - /** BackupResponse enterpriseEccPrivateKey */ - enterpriseEccPrivateKey?: (Uint8Array|null); + enterpriseEccPrivateKey?: Uint8Array | null; /** BackupResponse users */ - users?: (Enterprise.IBackupUser[]|null); + users?: Enterprise.IBackupUser[] | null; /** BackupResponse records */ - records?: (Enterprise.IBackupRecord[]|null); + records?: Enterprise.IBackupRecord[] | null; /** BackupResponse continuationToken */ - continuationToken?: (Uint8Array|null); + continuationToken?: Uint8Array | null; } /** Represents a BackupResponse. */ class BackupResponse implements IBackupResponse { - /** * Constructs a new BackupResponse. * @param [properties] Properties to set @@ -28934,7 +30713,7 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.BackupResponse; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Enterprise.BackupResponse; /** * Decodes a BackupResponse message from the specified reader or buffer, length delimited. @@ -28943,14 +30722,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.BackupResponse; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.BackupResponse; /** * Verifies a BackupResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a BackupResponse message from a plain object. Also converts values to their respective internal types. @@ -28965,7 +30744,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.BackupResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.BackupResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this BackupResponse to JSON. @@ -28983,26 +30765,24 @@ export namespace Enterprise { /** Properties of a BackupFile. */ interface IBackupFile { - /** BackupFile user */ - user?: (string|null); + user?: string | null; /** BackupFile backupUid */ - backupUid?: (Uint8Array|null); + backupUid?: Uint8Array | null; /** BackupFile fileName */ - fileName?: (string|null); + fileName?: string | null; /** BackupFile created */ - created?: (number|Long|null); + created?: number | Long | null; /** BackupFile downloadUrl */ - downloadUrl?: (string|null); + downloadUrl?: string | null; } /** Represents a BackupFile. */ class BackupFile implements IBackupFile { - /** * Constructs a new BackupFile. * @param [properties] Properties to set @@ -29019,7 +30799,7 @@ export namespace Enterprise { public fileName: string; /** BackupFile created. */ - public created: (number|Long); + public created: number | Long; /** BackupFile downloadUrl. */ public downloadUrl: string; @@ -29055,7 +30835,7 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.BackupFile; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Enterprise.BackupFile; /** * Decodes a BackupFile message from the specified reader or buffer, length delimited. @@ -29064,14 +30844,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.BackupFile; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.BackupFile; /** * Verifies a BackupFile message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a BackupFile message from a plain object. Also converts values to their respective internal types. @@ -29086,7 +30866,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.BackupFile, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.BackupFile, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this BackupFile to JSON. @@ -29104,14 +30887,12 @@ export namespace Enterprise { /** Properties of a BackupsResponse. */ interface IBackupsResponse { - /** BackupsResponse files */ - files?: (Enterprise.IBackupFile[]|null); + files?: Enterprise.IBackupFile[] | null; } /** Represents a BackupsResponse. */ class BackupsResponse implements IBackupsResponse { - /** * Constructs a new BackupsResponse. * @param [properties] Properties to set @@ -29142,7 +30923,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Enterprise.IBackupsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Enterprise.IBackupsResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a BackupsResponse message from the specified reader or buffer. @@ -29152,7 +30936,7 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.BackupsResponse; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Enterprise.BackupsResponse; /** * Decodes a BackupsResponse message from the specified reader or buffer, length delimited. @@ -29161,14 +30945,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.BackupsResponse; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.BackupsResponse; /** * Verifies a BackupsResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a BackupsResponse message from a plain object. Also converts values to their respective internal types. @@ -29183,7 +30967,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.BackupsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.BackupsResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this BackupsResponse to JSON. @@ -29201,14 +30988,12 @@ export namespace Enterprise { /** Properties of a GetEnterpriseDataKeysRequest. */ interface IGetEnterpriseDataKeysRequest { - /** GetEnterpriseDataKeysRequest roleId */ - roleId?: ((number|Long)[]|null); + roleId?: (number | Long)[] | null; } /** Represents a GetEnterpriseDataKeysRequest. */ class GetEnterpriseDataKeysRequest implements IGetEnterpriseDataKeysRequest { - /** * Constructs a new GetEnterpriseDataKeysRequest. * @param [properties] Properties to set @@ -29216,14 +31001,16 @@ export namespace Enterprise { constructor(properties?: Enterprise.IGetEnterpriseDataKeysRequest); /** GetEnterpriseDataKeysRequest roleId. */ - public roleId: (number|Long)[]; + public roleId: (number | Long)[]; /** * Creates a new GetEnterpriseDataKeysRequest instance using the specified properties. * @param [properties] Properties to set * @returns GetEnterpriseDataKeysRequest instance */ - public static create(properties?: Enterprise.IGetEnterpriseDataKeysRequest): Enterprise.GetEnterpriseDataKeysRequest; + public static create( + properties?: Enterprise.IGetEnterpriseDataKeysRequest + ): Enterprise.GetEnterpriseDataKeysRequest; /** * Encodes the specified GetEnterpriseDataKeysRequest message. Does not implicitly {@link Enterprise.GetEnterpriseDataKeysRequest.verify|verify} messages. @@ -29231,7 +31018,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Enterprise.IGetEnterpriseDataKeysRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Enterprise.IGetEnterpriseDataKeysRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified GetEnterpriseDataKeysRequest message, length delimited. Does not implicitly {@link Enterprise.GetEnterpriseDataKeysRequest.verify|verify} messages. @@ -29239,7 +31029,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Enterprise.IGetEnterpriseDataKeysRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Enterprise.IGetEnterpriseDataKeysRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a GetEnterpriseDataKeysRequest message from the specified reader or buffer. @@ -29249,7 +31042,10 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.GetEnterpriseDataKeysRequest; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Enterprise.GetEnterpriseDataKeysRequest; /** * Decodes a GetEnterpriseDataKeysRequest message from the specified reader or buffer, length delimited. @@ -29258,14 +31054,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.GetEnterpriseDataKeysRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.GetEnterpriseDataKeysRequest; /** * Verifies a GetEnterpriseDataKeysRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a GetEnterpriseDataKeysRequest message from a plain object. Also converts values to their respective internal types. @@ -29280,7 +31076,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.GetEnterpriseDataKeysRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.GetEnterpriseDataKeysRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this GetEnterpriseDataKeysRequest to JSON. @@ -29298,26 +31097,24 @@ export namespace Enterprise { /** Properties of a GetEnterpriseDataKeysResponse. */ interface IGetEnterpriseDataKeysResponse { - /** GetEnterpriseDataKeysResponse reEncryptedRoleKey */ - reEncryptedRoleKey?: (Enterprise.IReEncryptedRoleKey[]|null); + reEncryptedRoleKey?: Enterprise.IReEncryptedRoleKey[] | null; /** GetEnterpriseDataKeysResponse roleKey */ - roleKey?: (Enterprise.IRoleKey[]|null); + roleKey?: Enterprise.IRoleKey[] | null; /** GetEnterpriseDataKeysResponse mspKey */ - mspKey?: (Enterprise.IMspKey|null); + mspKey?: Enterprise.IMspKey | null; /** GetEnterpriseDataKeysResponse enterpriseKeys */ - enterpriseKeys?: (Enterprise.IEnterpriseKeys|null); + enterpriseKeys?: Enterprise.IEnterpriseKeys | null; /** GetEnterpriseDataKeysResponse treeKey */ - treeKey?: (Enterprise.ITreeKey|null); + treeKey?: Enterprise.ITreeKey | null; } /** Represents a GetEnterpriseDataKeysResponse. */ class GetEnterpriseDataKeysResponse implements IGetEnterpriseDataKeysResponse { - /** * Constructs a new GetEnterpriseDataKeysResponse. * @param [properties] Properties to set @@ -29331,20 +31128,22 @@ export namespace Enterprise { public roleKey: Enterprise.IRoleKey[]; /** GetEnterpriseDataKeysResponse mspKey. */ - public mspKey?: (Enterprise.IMspKey|null); + public mspKey?: Enterprise.IMspKey | null; /** GetEnterpriseDataKeysResponse enterpriseKeys. */ - public enterpriseKeys?: (Enterprise.IEnterpriseKeys|null); + public enterpriseKeys?: Enterprise.IEnterpriseKeys | null; /** GetEnterpriseDataKeysResponse treeKey. */ - public treeKey?: (Enterprise.ITreeKey|null); + public treeKey?: Enterprise.ITreeKey | null; /** * Creates a new GetEnterpriseDataKeysResponse instance using the specified properties. * @param [properties] Properties to set * @returns GetEnterpriseDataKeysResponse instance */ - public static create(properties?: Enterprise.IGetEnterpriseDataKeysResponse): Enterprise.GetEnterpriseDataKeysResponse; + public static create( + properties?: Enterprise.IGetEnterpriseDataKeysResponse + ): Enterprise.GetEnterpriseDataKeysResponse; /** * Encodes the specified GetEnterpriseDataKeysResponse message. Does not implicitly {@link Enterprise.GetEnterpriseDataKeysResponse.verify|verify} messages. @@ -29352,7 +31151,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Enterprise.IGetEnterpriseDataKeysResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Enterprise.IGetEnterpriseDataKeysResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified GetEnterpriseDataKeysResponse message, length delimited. Does not implicitly {@link Enterprise.GetEnterpriseDataKeysResponse.verify|verify} messages. @@ -29360,7 +31162,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Enterprise.IGetEnterpriseDataKeysResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Enterprise.IGetEnterpriseDataKeysResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a GetEnterpriseDataKeysResponse message from the specified reader or buffer. @@ -29370,7 +31175,10 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.GetEnterpriseDataKeysResponse; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Enterprise.GetEnterpriseDataKeysResponse; /** * Decodes a GetEnterpriseDataKeysResponse message from the specified reader or buffer, length delimited. @@ -29379,14 +31187,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.GetEnterpriseDataKeysResponse; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.GetEnterpriseDataKeysResponse; /** * Verifies a GetEnterpriseDataKeysResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a GetEnterpriseDataKeysResponse message from a plain object. Also converts values to their respective internal types. @@ -29401,7 +31209,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.GetEnterpriseDataKeysResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.GetEnterpriseDataKeysResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this GetEnterpriseDataKeysResponse to JSON. @@ -29419,20 +31230,18 @@ export namespace Enterprise { /** Properties of a RoleKey. */ interface IRoleKey { - /** RoleKey roleId */ - roleId?: (number|Long|null); + roleId?: number | Long | null; /** RoleKey encryptedKey */ - encryptedKey?: (string|null); + encryptedKey?: string | null; /** RoleKey keyType */ - keyType?: (Enterprise.EncryptedKeyType|null); + keyType?: Enterprise.EncryptedKeyType | null; } /** Represents a RoleKey. */ class RoleKey implements IRoleKey { - /** * Constructs a new RoleKey. * @param [properties] Properties to set @@ -29440,7 +31249,7 @@ export namespace Enterprise { constructor(properties?: Enterprise.IRoleKey); /** RoleKey roleId. */ - public roleId: (number|Long); + public roleId: number | Long; /** RoleKey encryptedKey. */ public encryptedKey: string; @@ -29479,7 +31288,7 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.RoleKey; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Enterprise.RoleKey; /** * Decodes a RoleKey message from the specified reader or buffer, length delimited. @@ -29488,14 +31297,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.RoleKey; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.RoleKey; /** * Verifies a RoleKey message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a RoleKey message from a plain object. Also converts values to their respective internal types. @@ -29510,7 +31319,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.RoleKey, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.RoleKey, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this RoleKey to JSON. @@ -29528,17 +31340,15 @@ export namespace Enterprise { /** Properties of a MspKey. */ interface IMspKey { - /** MspKey encryptedMspTreeKey */ - encryptedMspTreeKey?: (string|null); + encryptedMspTreeKey?: string | null; /** MspKey encryptedMspTreeKeyType */ - encryptedMspTreeKeyType?: (Enterprise.EncryptedKeyType|null); + encryptedMspTreeKeyType?: Enterprise.EncryptedKeyType | null; } /** Represents a MspKey. */ class MspKey implements IMspKey { - /** * Constructs a new MspKey. * @param [properties] Properties to set @@ -29582,7 +31392,7 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.MspKey; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Enterprise.MspKey; /** * Decodes a MspKey message from the specified reader or buffer, length delimited. @@ -29591,14 +31401,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.MspKey; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.MspKey; /** * Verifies a MspKey message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a MspKey message from a plain object. Also converts values to their respective internal types. @@ -29613,7 +31423,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.MspKey, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.MspKey, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this MspKey to JSON. @@ -29635,28 +31448,26 @@ export namespace Enterprise { KT_ENCRYPTED_BY_DATA_KEY = 1, KT_ENCRYPTED_BY_PUBLIC_KEY = 2, KT_ENCRYPTED_BY_DATA_KEY_GCM = 3, - KT_ENCRYPTED_BY_PUBLIC_KEY_ECC = 4 + KT_ENCRYPTED_BY_PUBLIC_KEY_ECC = 4, } /** Properties of an EnterpriseKeys. */ interface IEnterpriseKeys { - /** EnterpriseKeys rsaPublicKey */ - rsaPublicKey?: (Uint8Array|null); + rsaPublicKey?: Uint8Array | null; /** EnterpriseKeys rsaEncryptedPrivateKey */ - rsaEncryptedPrivateKey?: (Uint8Array|null); + rsaEncryptedPrivateKey?: Uint8Array | null; /** EnterpriseKeys eccPublicKey */ - eccPublicKey?: (Uint8Array|null); + eccPublicKey?: Uint8Array | null; /** EnterpriseKeys eccEncryptedPrivateKey */ - eccEncryptedPrivateKey?: (Uint8Array|null); + eccEncryptedPrivateKey?: Uint8Array | null; } /** Represents an EnterpriseKeys. */ class EnterpriseKeys implements IEnterpriseKeys { - /** * Constructs a new EnterpriseKeys. * @param [properties] Properties to set @@ -29706,7 +31517,7 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.EnterpriseKeys; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Enterprise.EnterpriseKeys; /** * Decodes an EnterpriseKeys message from the specified reader or buffer, length delimited. @@ -29715,14 +31526,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.EnterpriseKeys; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.EnterpriseKeys; /** * Verifies an EnterpriseKeys message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an EnterpriseKeys message from a plain object. Also converts values to their respective internal types. @@ -29737,7 +31548,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.EnterpriseKeys, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.EnterpriseKeys, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this EnterpriseKeys to JSON. @@ -29755,17 +31569,15 @@ export namespace Enterprise { /** Properties of a TreeKey. */ interface ITreeKey { - /** TreeKey treeKey */ - treeKey?: (string|null); + treeKey?: string | null; /** TreeKey keyTypeId */ - keyTypeId?: (Enterprise.BackupKeyType|null); + keyTypeId?: Enterprise.BackupKeyType | null; } /** Represents a TreeKey. */ class TreeKey implements ITreeKey { - /** * Constructs a new TreeKey. * @param [properties] Properties to set @@ -29809,7 +31621,7 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.TreeKey; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Enterprise.TreeKey; /** * Decodes a TreeKey message from the specified reader or buffer, length delimited. @@ -29818,14 +31630,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.TreeKey; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.TreeKey; /** * Verifies a TreeKey message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a TreeKey message from a plain object. Also converts values to their respective internal types. @@ -29840,7 +31652,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.TreeKey, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.TreeKey, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this TreeKey to JSON. @@ -29858,14 +31673,12 @@ export namespace Enterprise { /** Properties of a SharedRecordResponse. */ interface ISharedRecordResponse { - /** SharedRecordResponse events */ - events?: (Enterprise.ISharedRecordEvent[]|null); + events?: Enterprise.ISharedRecordEvent[] | null; } /** Represents a SharedRecordResponse. */ class SharedRecordResponse implements ISharedRecordResponse { - /** * Constructs a new SharedRecordResponse. * @param [properties] Properties to set @@ -29896,7 +31709,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Enterprise.ISharedRecordResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Enterprise.ISharedRecordResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a SharedRecordResponse message from the specified reader or buffer. @@ -29906,7 +31722,7 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.SharedRecordResponse; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Enterprise.SharedRecordResponse; /** * Decodes a SharedRecordResponse message from the specified reader or buffer, length delimited. @@ -29915,14 +31731,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.SharedRecordResponse; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.SharedRecordResponse; /** * Verifies a SharedRecordResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a SharedRecordResponse message from a plain object. Also converts values to their respective internal types. @@ -29937,7 +31753,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.SharedRecordResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.SharedRecordResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this SharedRecordResponse to JSON. @@ -29955,26 +31774,24 @@ export namespace Enterprise { /** Properties of a SharedRecordEvent. */ interface ISharedRecordEvent { - /** SharedRecordEvent recordUid */ - recordUid?: (Uint8Array|null); + recordUid?: Uint8Array | null; /** SharedRecordEvent userName */ - userName?: (string|null); + userName?: string | null; /** SharedRecordEvent canEdit */ - canEdit?: (boolean|null); + canEdit?: boolean | null; /** SharedRecordEvent canReshare */ - canReshare?: (boolean|null); + canReshare?: boolean | null; /** SharedRecordEvent shareFrom */ - shareFrom?: (number|null); + shareFrom?: number | null; } /** Represents a SharedRecordEvent. */ class SharedRecordEvent implements ISharedRecordEvent { - /** * Constructs a new SharedRecordEvent. * @param [properties] Properties to set @@ -30017,7 +31834,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Enterprise.ISharedRecordEvent, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Enterprise.ISharedRecordEvent, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a SharedRecordEvent message from the specified reader or buffer. @@ -30027,7 +31847,7 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.SharedRecordEvent; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Enterprise.SharedRecordEvent; /** * Decodes a SharedRecordEvent message from the specified reader or buffer, length delimited. @@ -30036,14 +31856,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.SharedRecordEvent; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.SharedRecordEvent; /** * Verifies a SharedRecordEvent message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a SharedRecordEvent message from a plain object. Also converts values to their respective internal types. @@ -30058,7 +31878,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.SharedRecordEvent, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.SharedRecordEvent, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this SharedRecordEvent to JSON. @@ -30086,19 +31909,17 @@ export namespace Enterprise { CONSOLE_ONBOARDED = 7, FORBID_ACCOUNT_TRANSFER = 8, NPS_POPUP_OPT_OUT = 9, - SHOW_USER_ONBOARD = 10 + SHOW_USER_ONBOARD = 10, } /** Properties of a SetRestrictVisibilityRequest. */ interface ISetRestrictVisibilityRequest { - /** SetRestrictVisibilityRequest nodeId */ - nodeId?: (number|Long|null); + nodeId?: number | Long | null; } /** Represents a SetRestrictVisibilityRequest. */ class SetRestrictVisibilityRequest implements ISetRestrictVisibilityRequest { - /** * Constructs a new SetRestrictVisibilityRequest. * @param [properties] Properties to set @@ -30106,14 +31927,16 @@ export namespace Enterprise { constructor(properties?: Enterprise.ISetRestrictVisibilityRequest); /** SetRestrictVisibilityRequest nodeId. */ - public nodeId: (number|Long); + public nodeId: number | Long; /** * Creates a new SetRestrictVisibilityRequest instance using the specified properties. * @param [properties] Properties to set * @returns SetRestrictVisibilityRequest instance */ - public static create(properties?: Enterprise.ISetRestrictVisibilityRequest): Enterprise.SetRestrictVisibilityRequest; + public static create( + properties?: Enterprise.ISetRestrictVisibilityRequest + ): Enterprise.SetRestrictVisibilityRequest; /** * Encodes the specified SetRestrictVisibilityRequest message. Does not implicitly {@link Enterprise.SetRestrictVisibilityRequest.verify|verify} messages. @@ -30121,7 +31944,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Enterprise.ISetRestrictVisibilityRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Enterprise.ISetRestrictVisibilityRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified SetRestrictVisibilityRequest message, length delimited. Does not implicitly {@link Enterprise.SetRestrictVisibilityRequest.verify|verify} messages. @@ -30129,7 +31955,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Enterprise.ISetRestrictVisibilityRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Enterprise.ISetRestrictVisibilityRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a SetRestrictVisibilityRequest message from the specified reader or buffer. @@ -30139,7 +31968,10 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.SetRestrictVisibilityRequest; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Enterprise.SetRestrictVisibilityRequest; /** * Decodes a SetRestrictVisibilityRequest message from the specified reader or buffer, length delimited. @@ -30148,14 +31980,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.SetRestrictVisibilityRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.SetRestrictVisibilityRequest; /** * Verifies a SetRestrictVisibilityRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a SetRestrictVisibilityRequest message from a plain object. Also converts values to their respective internal types. @@ -30170,7 +32002,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.SetRestrictVisibilityRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.SetRestrictVisibilityRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this SetRestrictVisibilityRequest to JSON. @@ -30188,35 +32023,33 @@ export namespace Enterprise { /** Properties of a UserAddRequest. */ interface IUserAddRequest { - /** UserAddRequest enterpriseUserId */ - enterpriseUserId?: (number|Long|null); + enterpriseUserId?: number | Long | null; /** UserAddRequest nodeId */ - nodeId?: (number|Long|null); + nodeId?: number | Long | null; /** UserAddRequest encryptedData */ - encryptedData?: (Uint8Array|null); + encryptedData?: Uint8Array | null; /** UserAddRequest keyType */ - keyType?: (Enterprise.EncryptedKeyType|null); + keyType?: Enterprise.EncryptedKeyType | null; /** UserAddRequest fullName */ - fullName?: (string|null); + fullName?: string | null; /** UserAddRequest jobTitle */ - jobTitle?: (string|null); + jobTitle?: string | null; /** UserAddRequest email */ - email?: (string|null); + email?: string | null; /** UserAddRequest suppressEmailInvite */ - suppressEmailInvite?: (boolean|null); + suppressEmailInvite?: boolean | null; } /** Represents a UserAddRequest. */ class UserAddRequest implements IUserAddRequest { - /** * Constructs a new UserAddRequest. * @param [properties] Properties to set @@ -30224,10 +32057,10 @@ export namespace Enterprise { constructor(properties?: Enterprise.IUserAddRequest); /** UserAddRequest enterpriseUserId. */ - public enterpriseUserId: (number|Long); + public enterpriseUserId: number | Long; /** UserAddRequest nodeId. */ - public nodeId: (number|Long); + public nodeId: number | Long; /** UserAddRequest encryptedData. */ public encryptedData: Uint8Array; @@ -30278,7 +32111,7 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.UserAddRequest; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Enterprise.UserAddRequest; /** * Decodes a UserAddRequest message from the specified reader or buffer, length delimited. @@ -30287,14 +32120,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.UserAddRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.UserAddRequest; /** * Verifies a UserAddRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a UserAddRequest message from a plain object. Also converts values to their respective internal types. @@ -30309,7 +32142,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.UserAddRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.UserAddRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this UserAddRequest to JSON. @@ -30327,14 +32163,12 @@ export namespace Enterprise { /** Properties of a UserUpdateRequest. */ interface IUserUpdateRequest { - /** UserUpdateRequest users */ - users?: (Enterprise.IUserUpdate[]|null); + users?: Enterprise.IUserUpdate[] | null; } /** Represents a UserUpdateRequest. */ class UserUpdateRequest implements IUserUpdateRequest { - /** * Constructs a new UserUpdateRequest. * @param [properties] Properties to set @@ -30365,7 +32199,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Enterprise.IUserUpdateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Enterprise.IUserUpdateRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a UserUpdateRequest message from the specified reader or buffer. @@ -30375,7 +32212,7 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.UserUpdateRequest; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Enterprise.UserUpdateRequest; /** * Decodes a UserUpdateRequest message from the specified reader or buffer, length delimited. @@ -30384,14 +32221,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.UserUpdateRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.UserUpdateRequest; /** * Verifies a UserUpdateRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a UserUpdateRequest message from a plain object. Also converts values to their respective internal types. @@ -30406,7 +32243,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.UserUpdateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.UserUpdateRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this UserUpdateRequest to JSON. @@ -30424,32 +32264,30 @@ export namespace Enterprise { /** Properties of a UserUpdate. */ interface IUserUpdate { - /** UserUpdate enterpriseUserId */ - enterpriseUserId?: (number|Long|null); + enterpriseUserId?: number | Long | null; /** UserUpdate nodeId */ - nodeId?: (number|Long|null); + nodeId?: number | Long | null; /** UserUpdate encryptedData */ - encryptedData?: (Uint8Array|null); + encryptedData?: Uint8Array | null; /** UserUpdate keyType */ - keyType?: (Enterprise.EncryptedKeyType|null); + keyType?: Enterprise.EncryptedKeyType | null; /** UserUpdate fullName */ - fullName?: (string|null); + fullName?: string | null; /** UserUpdate jobTitle */ - jobTitle?: (string|null); + jobTitle?: string | null; /** UserUpdate email */ - email?: (string|null); + email?: string | null; } /** Represents a UserUpdate. */ class UserUpdate implements IUserUpdate { - /** * Constructs a new UserUpdate. * @param [properties] Properties to set @@ -30457,10 +32295,10 @@ export namespace Enterprise { constructor(properties?: Enterprise.IUserUpdate); /** UserUpdate enterpriseUserId. */ - public enterpriseUserId: (number|Long); + public enterpriseUserId: number | Long; /** UserUpdate nodeId. */ - public nodeId: (number|Long); + public nodeId: number | Long; /** UserUpdate encryptedData. */ public encryptedData: Uint8Array; @@ -30508,7 +32346,7 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.UserUpdate; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Enterprise.UserUpdate; /** * Decodes a UserUpdate message from the specified reader or buffer, length delimited. @@ -30517,14 +32355,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.UserUpdate; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.UserUpdate; /** * Verifies a UserUpdate message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a UserUpdate message from a plain object. Also converts values to their respective internal types. @@ -30539,7 +32377,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.UserUpdate, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.UserUpdate, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this UserUpdate to JSON. @@ -30557,14 +32398,12 @@ export namespace Enterprise { /** Properties of a UserUpdateResponse. */ interface IUserUpdateResponse { - /** UserUpdateResponse users */ - users?: (Enterprise.IUserUpdateResult[]|null); + users?: Enterprise.IUserUpdateResult[] | null; } /** Represents a UserUpdateResponse. */ class UserUpdateResponse implements IUserUpdateResponse { - /** * Constructs a new UserUpdateResponse. * @param [properties] Properties to set @@ -30595,7 +32434,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Enterprise.IUserUpdateResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Enterprise.IUserUpdateResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a UserUpdateResponse message from the specified reader or buffer. @@ -30605,7 +32447,7 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.UserUpdateResponse; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Enterprise.UserUpdateResponse; /** * Decodes a UserUpdateResponse message from the specified reader or buffer, length delimited. @@ -30614,14 +32456,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.UserUpdateResponse; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.UserUpdateResponse; /** * Verifies a UserUpdateResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a UserUpdateResponse message from a plain object. Also converts values to their respective internal types. @@ -30636,7 +32478,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.UserUpdateResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.UserUpdateResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this UserUpdateResponse to JSON. @@ -30654,17 +32499,15 @@ export namespace Enterprise { /** Properties of a UserUpdateResult. */ interface IUserUpdateResult { - /** UserUpdateResult enterpriseUserId */ - enterpriseUserId?: (number|Long|null); + enterpriseUserId?: number | Long | null; /** UserUpdateResult status */ - status?: (Enterprise.UserUpdateStatus|null); + status?: Enterprise.UserUpdateStatus | null; } /** Represents a UserUpdateResult. */ class UserUpdateResult implements IUserUpdateResult { - /** * Constructs a new UserUpdateResult. * @param [properties] Properties to set @@ -30672,7 +32515,7 @@ export namespace Enterprise { constructor(properties?: Enterprise.IUserUpdateResult); /** UserUpdateResult enterpriseUserId. */ - public enterpriseUserId: (number|Long); + public enterpriseUserId: number | Long; /** UserUpdateResult status. */ public status: Enterprise.UserUpdateStatus; @@ -30698,7 +32541,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Enterprise.IUserUpdateResult, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Enterprise.IUserUpdateResult, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a UserUpdateResult message from the specified reader or buffer. @@ -30708,7 +32554,7 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.UserUpdateResult; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Enterprise.UserUpdateResult; /** * Decodes a UserUpdateResult message from the specified reader or buffer, length delimited. @@ -30717,14 +32563,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.UserUpdateResult; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.UserUpdateResult; /** * Verifies a UserUpdateResult message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a UserUpdateResult message from a plain object. Also converts values to their respective internal types. @@ -30739,7 +32585,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.UserUpdateResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.UserUpdateResult, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this UserUpdateResult to JSON. @@ -30758,22 +32607,20 @@ export namespace Enterprise { /** UserUpdateStatus enum. */ enum UserUpdateStatus { USER_UPDATE_OK = 0, - USER_UPDATE_ACCESS_DENIED = 1 + USER_UPDATE_ACCESS_DENIED = 1, } /** Properties of a ComplianceRecordOwnersRequest. */ interface IComplianceRecordOwnersRequest { - /** ComplianceRecordOwnersRequest nodeIds */ - nodeIds?: ((number|Long)[]|null); + nodeIds?: (number | Long)[] | null; /** ComplianceRecordOwnersRequest includeNonShared */ - includeNonShared?: (boolean|null); + includeNonShared?: boolean | null; } /** Represents a ComplianceRecordOwnersRequest. */ class ComplianceRecordOwnersRequest implements IComplianceRecordOwnersRequest { - /** * Constructs a new ComplianceRecordOwnersRequest. * @param [properties] Properties to set @@ -30781,7 +32628,7 @@ export namespace Enterprise { constructor(properties?: Enterprise.IComplianceRecordOwnersRequest); /** ComplianceRecordOwnersRequest nodeIds. */ - public nodeIds: (number|Long)[]; + public nodeIds: (number | Long)[]; /** ComplianceRecordOwnersRequest includeNonShared. */ public includeNonShared: boolean; @@ -30791,7 +32638,9 @@ export namespace Enterprise { * @param [properties] Properties to set * @returns ComplianceRecordOwnersRequest instance */ - public static create(properties?: Enterprise.IComplianceRecordOwnersRequest): Enterprise.ComplianceRecordOwnersRequest; + public static create( + properties?: Enterprise.IComplianceRecordOwnersRequest + ): Enterprise.ComplianceRecordOwnersRequest; /** * Encodes the specified ComplianceRecordOwnersRequest message. Does not implicitly {@link Enterprise.ComplianceRecordOwnersRequest.verify|verify} messages. @@ -30799,7 +32648,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Enterprise.IComplianceRecordOwnersRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Enterprise.IComplianceRecordOwnersRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified ComplianceRecordOwnersRequest message, length delimited. Does not implicitly {@link Enterprise.ComplianceRecordOwnersRequest.verify|verify} messages. @@ -30807,7 +32659,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Enterprise.IComplianceRecordOwnersRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Enterprise.IComplianceRecordOwnersRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a ComplianceRecordOwnersRequest message from the specified reader or buffer. @@ -30817,7 +32672,10 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.ComplianceRecordOwnersRequest; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Enterprise.ComplianceRecordOwnersRequest; /** * Decodes a ComplianceRecordOwnersRequest message from the specified reader or buffer, length delimited. @@ -30826,14 +32684,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.ComplianceRecordOwnersRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.ComplianceRecordOwnersRequest; /** * Verifies a ComplianceRecordOwnersRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a ComplianceRecordOwnersRequest message from a plain object. Also converts values to their respective internal types. @@ -30848,7 +32706,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.ComplianceRecordOwnersRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.ComplianceRecordOwnersRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this ComplianceRecordOwnersRequest to JSON. @@ -30866,14 +32727,12 @@ export namespace Enterprise { /** Properties of a ComplianceRecordOwnersResponse. */ interface IComplianceRecordOwnersResponse { - /** ComplianceRecordOwnersResponse recordOwners */ - recordOwners?: (Enterprise.IRecordOwner[]|null); + recordOwners?: Enterprise.IRecordOwner[] | null; } /** Represents a ComplianceRecordOwnersResponse. */ class ComplianceRecordOwnersResponse implements IComplianceRecordOwnersResponse { - /** * Constructs a new ComplianceRecordOwnersResponse. * @param [properties] Properties to set @@ -30888,7 +32747,9 @@ export namespace Enterprise { * @param [properties] Properties to set * @returns ComplianceRecordOwnersResponse instance */ - public static create(properties?: Enterprise.IComplianceRecordOwnersResponse): Enterprise.ComplianceRecordOwnersResponse; + public static create( + properties?: Enterprise.IComplianceRecordOwnersResponse + ): Enterprise.ComplianceRecordOwnersResponse; /** * Encodes the specified ComplianceRecordOwnersResponse message. Does not implicitly {@link Enterprise.ComplianceRecordOwnersResponse.verify|verify} messages. @@ -30896,7 +32757,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Enterprise.IComplianceRecordOwnersResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Enterprise.IComplianceRecordOwnersResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified ComplianceRecordOwnersResponse message, length delimited. Does not implicitly {@link Enterprise.ComplianceRecordOwnersResponse.verify|verify} messages. @@ -30904,7 +32768,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Enterprise.IComplianceRecordOwnersResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Enterprise.IComplianceRecordOwnersResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a ComplianceRecordOwnersResponse message from the specified reader or buffer. @@ -30914,7 +32781,10 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.ComplianceRecordOwnersResponse; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Enterprise.ComplianceRecordOwnersResponse; /** * Decodes a ComplianceRecordOwnersResponse message from the specified reader or buffer, length delimited. @@ -30923,14 +32793,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.ComplianceRecordOwnersResponse; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.ComplianceRecordOwnersResponse; /** * Verifies a ComplianceRecordOwnersResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a ComplianceRecordOwnersResponse message from a plain object. Also converts values to their respective internal types. @@ -30945,7 +32815,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.ComplianceRecordOwnersResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.ComplianceRecordOwnersResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this ComplianceRecordOwnersResponse to JSON. @@ -30963,17 +32836,15 @@ export namespace Enterprise { /** Properties of a RecordOwner. */ interface IRecordOwner { - /** RecordOwner enterpriseUserId */ - enterpriseUserId?: (number|Long|null); + enterpriseUserId?: number | Long | null; /** RecordOwner shared */ - shared?: (boolean|null); + shared?: boolean | null; } /** Represents a RecordOwner. */ class RecordOwner implements IRecordOwner { - /** * Constructs a new RecordOwner. * @param [properties] Properties to set @@ -30981,7 +32852,7 @@ export namespace Enterprise { constructor(properties?: Enterprise.IRecordOwner); /** RecordOwner enterpriseUserId. */ - public enterpriseUserId: (number|Long); + public enterpriseUserId: number | Long; /** RecordOwner shared. */ public shared: boolean; @@ -31017,7 +32888,7 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.RecordOwner; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Enterprise.RecordOwner; /** * Decodes a RecordOwner message from the specified reader or buffer, length delimited. @@ -31026,14 +32897,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.RecordOwner; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.RecordOwner; /** * Verifies a RecordOwner message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a RecordOwner message from a plain object. Also converts values to their respective internal types. @@ -31048,7 +32919,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.RecordOwner, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.RecordOwner, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this RecordOwner to JSON. @@ -31066,23 +32940,21 @@ export namespace Enterprise { /** Properties of a PreliminaryComplianceDataRequest. */ interface IPreliminaryComplianceDataRequest { - /** PreliminaryComplianceDataRequest enterpriseUserIds */ - enterpriseUserIds?: ((number|Long)[]|null); + enterpriseUserIds?: (number | Long)[] | null; /** PreliminaryComplianceDataRequest includeNonShared */ - includeNonShared?: (boolean|null); + includeNonShared?: boolean | null; /** PreliminaryComplianceDataRequest continuationToken */ - continuationToken?: (Uint8Array|null); + continuationToken?: Uint8Array | null; /** PreliminaryComplianceDataRequest includeTotalMatchingRecordsInFirstResponse */ - includeTotalMatchingRecordsInFirstResponse?: (boolean|null); + includeTotalMatchingRecordsInFirstResponse?: boolean | null; } /** Represents a PreliminaryComplianceDataRequest. */ class PreliminaryComplianceDataRequest implements IPreliminaryComplianceDataRequest { - /** * Constructs a new PreliminaryComplianceDataRequest. * @param [properties] Properties to set @@ -31090,7 +32962,7 @@ export namespace Enterprise { constructor(properties?: Enterprise.IPreliminaryComplianceDataRequest); /** PreliminaryComplianceDataRequest enterpriseUserIds. */ - public enterpriseUserIds: (number|Long)[]; + public enterpriseUserIds: (number | Long)[]; /** PreliminaryComplianceDataRequest includeNonShared. */ public includeNonShared: boolean; @@ -31106,7 +32978,9 @@ export namespace Enterprise { * @param [properties] Properties to set * @returns PreliminaryComplianceDataRequest instance */ - public static create(properties?: Enterprise.IPreliminaryComplianceDataRequest): Enterprise.PreliminaryComplianceDataRequest; + public static create( + properties?: Enterprise.IPreliminaryComplianceDataRequest + ): Enterprise.PreliminaryComplianceDataRequest; /** * Encodes the specified PreliminaryComplianceDataRequest message. Does not implicitly {@link Enterprise.PreliminaryComplianceDataRequest.verify|verify} messages. @@ -31114,7 +32988,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Enterprise.IPreliminaryComplianceDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Enterprise.IPreliminaryComplianceDataRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified PreliminaryComplianceDataRequest message, length delimited. Does not implicitly {@link Enterprise.PreliminaryComplianceDataRequest.verify|verify} messages. @@ -31122,7 +32999,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Enterprise.IPreliminaryComplianceDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Enterprise.IPreliminaryComplianceDataRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a PreliminaryComplianceDataRequest message from the specified reader or buffer. @@ -31132,7 +33012,10 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.PreliminaryComplianceDataRequest; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Enterprise.PreliminaryComplianceDataRequest; /** * Decodes a PreliminaryComplianceDataRequest message from the specified reader or buffer, length delimited. @@ -31141,14 +33024,16 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.PreliminaryComplianceDataRequest; + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array + ): Enterprise.PreliminaryComplianceDataRequest; /** * Verifies a PreliminaryComplianceDataRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a PreliminaryComplianceDataRequest message from a plain object. Also converts values to their respective internal types. @@ -31163,7 +33048,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.PreliminaryComplianceDataRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.PreliminaryComplianceDataRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this PreliminaryComplianceDataRequest to JSON. @@ -31181,23 +33069,21 @@ export namespace Enterprise { /** Properties of a PreliminaryComplianceDataResponse. */ interface IPreliminaryComplianceDataResponse { - /** PreliminaryComplianceDataResponse auditUserData */ - auditUserData?: (Enterprise.IAuditUserData[]|null); + auditUserData?: Enterprise.IAuditUserData[] | null; /** PreliminaryComplianceDataResponse continuationToken */ - continuationToken?: (Uint8Array|null); + continuationToken?: Uint8Array | null; /** PreliminaryComplianceDataResponse hasMore */ - hasMore?: (boolean|null); + hasMore?: boolean | null; /** PreliminaryComplianceDataResponse totalMatchingRecords */ - totalMatchingRecords?: (number|null); + totalMatchingRecords?: number | null; } /** Represents a PreliminaryComplianceDataResponse. */ class PreliminaryComplianceDataResponse implements IPreliminaryComplianceDataResponse { - /** * Constructs a new PreliminaryComplianceDataResponse. * @param [properties] Properties to set @@ -31221,7 +33107,9 @@ export namespace Enterprise { * @param [properties] Properties to set * @returns PreliminaryComplianceDataResponse instance */ - public static create(properties?: Enterprise.IPreliminaryComplianceDataResponse): Enterprise.PreliminaryComplianceDataResponse; + public static create( + properties?: Enterprise.IPreliminaryComplianceDataResponse + ): Enterprise.PreliminaryComplianceDataResponse; /** * Encodes the specified PreliminaryComplianceDataResponse message. Does not implicitly {@link Enterprise.PreliminaryComplianceDataResponse.verify|verify} messages. @@ -31229,7 +33117,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Enterprise.IPreliminaryComplianceDataResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Enterprise.IPreliminaryComplianceDataResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified PreliminaryComplianceDataResponse message, length delimited. Does not implicitly {@link Enterprise.PreliminaryComplianceDataResponse.verify|verify} messages. @@ -31237,7 +33128,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Enterprise.IPreliminaryComplianceDataResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Enterprise.IPreliminaryComplianceDataResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a PreliminaryComplianceDataResponse message from the specified reader or buffer. @@ -31247,7 +33141,10 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.PreliminaryComplianceDataResponse; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Enterprise.PreliminaryComplianceDataResponse; /** * Decodes a PreliminaryComplianceDataResponse message from the specified reader or buffer, length delimited. @@ -31256,14 +33153,16 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.PreliminaryComplianceDataResponse; + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array + ): Enterprise.PreliminaryComplianceDataResponse; /** * Verifies a PreliminaryComplianceDataResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a PreliminaryComplianceDataResponse message from a plain object. Also converts values to their respective internal types. @@ -31278,7 +33177,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.PreliminaryComplianceDataResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.PreliminaryComplianceDataResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this PreliminaryComplianceDataResponse to JSON. @@ -31296,20 +33198,18 @@ export namespace Enterprise { /** Properties of an AuditUserRecord. */ interface IAuditUserRecord { - /** AuditUserRecord recordUid */ - recordUid?: (Uint8Array|null); + recordUid?: Uint8Array | null; /** AuditUserRecord encryptedData */ - encryptedData?: (Uint8Array|null); + encryptedData?: Uint8Array | null; /** AuditUserRecord shared */ - shared?: (boolean|null); + shared?: boolean | null; } /** Represents an AuditUserRecord. */ class AuditUserRecord implements IAuditUserRecord { - /** * Constructs a new AuditUserRecord. * @param [properties] Properties to set @@ -31346,7 +33246,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Enterprise.IAuditUserRecord, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Enterprise.IAuditUserRecord, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes an AuditUserRecord message from the specified reader or buffer. @@ -31356,7 +33259,7 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.AuditUserRecord; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Enterprise.AuditUserRecord; /** * Decodes an AuditUserRecord message from the specified reader or buffer, length delimited. @@ -31365,14 +33268,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.AuditUserRecord; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.AuditUserRecord; /** * Verifies an AuditUserRecord message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an AuditUserRecord message from a plain object. Also converts values to their respective internal types. @@ -31387,7 +33290,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.AuditUserRecord, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.AuditUserRecord, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this AuditUserRecord to JSON. @@ -31407,25 +33313,23 @@ export namespace Enterprise { enum AuditUserStatus { OK = 0, ACCESS_DENIED = 1, - NO_LONGER_IN_ENTERPRISE = 2 + NO_LONGER_IN_ENTERPRISE = 2, } /** Properties of an AuditUserData. */ interface IAuditUserData { - /** AuditUserData enterpriseUserId */ - enterpriseUserId?: (number|Long|null); + enterpriseUserId?: number | Long | null; /** AuditUserData auditUserRecords */ - auditUserRecords?: (Enterprise.IAuditUserRecord[]|null); + auditUserRecords?: Enterprise.IAuditUserRecord[] | null; /** AuditUserData status */ - status?: (Enterprise.AuditUserStatus|null); + status?: Enterprise.AuditUserStatus | null; } /** Represents an AuditUserData. */ class AuditUserData implements IAuditUserData { - /** * Constructs a new AuditUserData. * @param [properties] Properties to set @@ -31433,7 +33337,7 @@ export namespace Enterprise { constructor(properties?: Enterprise.IAuditUserData); /** AuditUserData enterpriseUserId. */ - public enterpriseUserId: (number|Long); + public enterpriseUserId: number | Long; /** AuditUserData auditUserRecords. */ public auditUserRecords: Enterprise.IAuditUserRecord[]; @@ -31472,7 +33376,7 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.AuditUserData; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Enterprise.AuditUserData; /** * Decodes an AuditUserData message from the specified reader or buffer, length delimited. @@ -31481,14 +33385,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.AuditUserData; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.AuditUserData; /** * Verifies an AuditUserData message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an AuditUserData message from a plain object. Also converts values to their respective internal types. @@ -31503,7 +33407,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.AuditUserData, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.AuditUserData, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this AuditUserData to JSON. @@ -31521,26 +33428,24 @@ export namespace Enterprise { /** Properties of a ComplianceReportFilters. */ interface IComplianceReportFilters { - /** ComplianceReportFilters recordTitles */ - recordTitles?: (string[]|null); + recordTitles?: string[] | null; /** ComplianceReportFilters recordUids */ - recordUids?: (Uint8Array[]|null); + recordUids?: Uint8Array[] | null; /** ComplianceReportFilters jobTitles */ - jobTitles?: ((number|Long)[]|null); + jobTitles?: (number | Long)[] | null; /** ComplianceReportFilters urls */ - urls?: (string[]|null); + urls?: string[] | null; /** ComplianceReportFilters enterpriseUserIds */ - enterpriseUserIds?: ((number|Long)[]|null); + enterpriseUserIds?: (number | Long)[] | null; } /** Represents a ComplianceReportFilters. */ class ComplianceReportFilters implements IComplianceReportFilters { - /** * Constructs a new ComplianceReportFilters. * @param [properties] Properties to set @@ -31554,13 +33459,13 @@ export namespace Enterprise { public recordUids: Uint8Array[]; /** ComplianceReportFilters jobTitles. */ - public jobTitles: (number|Long)[]; + public jobTitles: (number | Long)[]; /** ComplianceReportFilters urls. */ public urls: string[]; /** ComplianceReportFilters enterpriseUserIds. */ - public enterpriseUserIds: (number|Long)[]; + public enterpriseUserIds: (number | Long)[]; /** * Creates a new ComplianceReportFilters instance using the specified properties. @@ -31583,7 +33488,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Enterprise.IComplianceReportFilters, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Enterprise.IComplianceReportFilters, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a ComplianceReportFilters message from the specified reader or buffer. @@ -31593,7 +33501,10 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.ComplianceReportFilters; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Enterprise.ComplianceReportFilters; /** * Decodes a ComplianceReportFilters message from the specified reader or buffer, length delimited. @@ -31602,14 +33513,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.ComplianceReportFilters; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.ComplianceReportFilters; /** * Verifies a ComplianceReportFilters message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a ComplianceReportFilters message from a plain object. Also converts values to their respective internal types. @@ -31624,7 +33535,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.ComplianceReportFilters, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.ComplianceReportFilters, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this ComplianceReportFilters to JSON. @@ -31642,20 +33556,18 @@ export namespace Enterprise { /** Properties of a ComplianceReportRequest. */ interface IComplianceReportRequest { - /** ComplianceReportRequest complianceReportRun */ - complianceReportRun?: (Enterprise.IComplianceReportRun|null); + complianceReportRun?: Enterprise.IComplianceReportRun | null; /** ComplianceReportRequest reportName */ - reportName?: (string|null); + reportName?: string | null; /** ComplianceReportRequest saveReport */ - saveReport?: (boolean|null); + saveReport?: boolean | null; } /** Represents a ComplianceReportRequest. */ class ComplianceReportRequest implements IComplianceReportRequest { - /** * Constructs a new ComplianceReportRequest. * @param [properties] Properties to set @@ -31663,7 +33575,7 @@ export namespace Enterprise { constructor(properties?: Enterprise.IComplianceReportRequest); /** ComplianceReportRequest complianceReportRun. */ - public complianceReportRun?: (Enterprise.IComplianceReportRun|null); + public complianceReportRun?: Enterprise.IComplianceReportRun | null; /** ComplianceReportRequest reportName. */ public reportName: string; @@ -31692,7 +33604,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Enterprise.IComplianceReportRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Enterprise.IComplianceReportRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a ComplianceReportRequest message from the specified reader or buffer. @@ -31702,7 +33617,10 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.ComplianceReportRequest; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Enterprise.ComplianceReportRequest; /** * Decodes a ComplianceReportRequest message from the specified reader or buffer, length delimited. @@ -31711,14 +33629,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.ComplianceReportRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.ComplianceReportRequest; /** * Verifies a ComplianceReportRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a ComplianceReportRequest message from a plain object. Also converts values to their respective internal types. @@ -31733,7 +33651,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.ComplianceReportRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.ComplianceReportRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this ComplianceReportRequest to JSON. @@ -31751,20 +33672,18 @@ export namespace Enterprise { /** Properties of a ComplianceReportRun. */ interface IComplianceReportRun { - /** ComplianceReportRun reportCriteriaAndFilter */ - reportCriteriaAndFilter?: (Enterprise.IComplianceReportCriteriaAndFilter|null); + reportCriteriaAndFilter?: Enterprise.IComplianceReportCriteriaAndFilter | null; /** ComplianceReportRun users */ - users?: ((number|Long)[]|null); + users?: (number | Long)[] | null; /** ComplianceReportRun records */ - records?: (Uint8Array[]|null); + records?: Uint8Array[] | null; } /** Represents a ComplianceReportRun. */ class ComplianceReportRun implements IComplianceReportRun { - /** * Constructs a new ComplianceReportRun. * @param [properties] Properties to set @@ -31772,10 +33691,10 @@ export namespace Enterprise { constructor(properties?: Enterprise.IComplianceReportRun); /** ComplianceReportRun reportCriteriaAndFilter. */ - public reportCriteriaAndFilter?: (Enterprise.IComplianceReportCriteriaAndFilter|null); + public reportCriteriaAndFilter?: Enterprise.IComplianceReportCriteriaAndFilter | null; /** ComplianceReportRun users. */ - public users: (number|Long)[]; + public users: (number | Long)[]; /** ComplianceReportRun records. */ public records: Uint8Array[]; @@ -31801,7 +33720,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Enterprise.IComplianceReportRun, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Enterprise.IComplianceReportRun, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a ComplianceReportRun message from the specified reader or buffer. @@ -31811,7 +33733,7 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.ComplianceReportRun; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Enterprise.ComplianceReportRun; /** * Decodes a ComplianceReportRun message from the specified reader or buffer, length delimited. @@ -31820,14 +33742,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.ComplianceReportRun; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.ComplianceReportRun; /** * Verifies a ComplianceReportRun message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a ComplianceReportRun message from a plain object. Also converts values to their respective internal types. @@ -31842,7 +33764,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.ComplianceReportRun, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.ComplianceReportRun, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this ComplianceReportRun to JSON. @@ -31860,32 +33785,30 @@ export namespace Enterprise { /** Properties of a ComplianceReportCriteriaAndFilter. */ interface IComplianceReportCriteriaAndFilter { - /** ComplianceReportCriteriaAndFilter nodeId */ - nodeId?: (number|Long|null); + nodeId?: number | Long | null; /** ComplianceReportCriteriaAndFilter criteriaUid */ - criteriaUid?: (Uint8Array|null); + criteriaUid?: Uint8Array | null; /** ComplianceReportCriteriaAndFilter criteriaName */ - criteriaName?: (string|null); + criteriaName?: string | null; /** ComplianceReportCriteriaAndFilter criteria */ - criteria?: (Enterprise.IComplianceReportCriteria|null); + criteria?: Enterprise.IComplianceReportCriteria | null; /** ComplianceReportCriteriaAndFilter filters */ - filters?: (Enterprise.IComplianceReportFilter[]|null); + filters?: Enterprise.IComplianceReportFilter[] | null; /** ComplianceReportCriteriaAndFilter lastModified */ - lastModified?: (number|Long|null); + lastModified?: number | Long | null; /** ComplianceReportCriteriaAndFilter nodeEncryptedData */ - nodeEncryptedData?: (Uint8Array|null); + nodeEncryptedData?: Uint8Array | null; } /** Represents a ComplianceReportCriteriaAndFilter. */ class ComplianceReportCriteriaAndFilter implements IComplianceReportCriteriaAndFilter { - /** * Constructs a new ComplianceReportCriteriaAndFilter. * @param [properties] Properties to set @@ -31893,7 +33816,7 @@ export namespace Enterprise { constructor(properties?: Enterprise.IComplianceReportCriteriaAndFilter); /** ComplianceReportCriteriaAndFilter nodeId. */ - public nodeId: (number|Long); + public nodeId: number | Long; /** ComplianceReportCriteriaAndFilter criteriaUid. */ public criteriaUid: Uint8Array; @@ -31902,13 +33825,13 @@ export namespace Enterprise { public criteriaName: string; /** ComplianceReportCriteriaAndFilter criteria. */ - public criteria?: (Enterprise.IComplianceReportCriteria|null); + public criteria?: Enterprise.IComplianceReportCriteria | null; /** ComplianceReportCriteriaAndFilter filters. */ public filters: Enterprise.IComplianceReportFilter[]; /** ComplianceReportCriteriaAndFilter lastModified. */ - public lastModified: (number|Long); + public lastModified: number | Long; /** ComplianceReportCriteriaAndFilter nodeEncryptedData. */ public nodeEncryptedData: Uint8Array; @@ -31918,7 +33841,9 @@ export namespace Enterprise { * @param [properties] Properties to set * @returns ComplianceReportCriteriaAndFilter instance */ - public static create(properties?: Enterprise.IComplianceReportCriteriaAndFilter): Enterprise.ComplianceReportCriteriaAndFilter; + public static create( + properties?: Enterprise.IComplianceReportCriteriaAndFilter + ): Enterprise.ComplianceReportCriteriaAndFilter; /** * Encodes the specified ComplianceReportCriteriaAndFilter message. Does not implicitly {@link Enterprise.ComplianceReportCriteriaAndFilter.verify|verify} messages. @@ -31926,7 +33851,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Enterprise.IComplianceReportCriteriaAndFilter, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Enterprise.IComplianceReportCriteriaAndFilter, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified ComplianceReportCriteriaAndFilter message, length delimited. Does not implicitly {@link Enterprise.ComplianceReportCriteriaAndFilter.verify|verify} messages. @@ -31934,7 +33862,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Enterprise.IComplianceReportCriteriaAndFilter, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Enterprise.IComplianceReportCriteriaAndFilter, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a ComplianceReportCriteriaAndFilter message from the specified reader or buffer. @@ -31944,7 +33875,10 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.ComplianceReportCriteriaAndFilter; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Enterprise.ComplianceReportCriteriaAndFilter; /** * Decodes a ComplianceReportCriteriaAndFilter message from the specified reader or buffer, length delimited. @@ -31953,14 +33887,16 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.ComplianceReportCriteriaAndFilter; + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array + ): Enterprise.ComplianceReportCriteriaAndFilter; /** * Verifies a ComplianceReportCriteriaAndFilter message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a ComplianceReportCriteriaAndFilter message from a plain object. Also converts values to their respective internal types. @@ -31975,7 +33911,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.ComplianceReportCriteriaAndFilter, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.ComplianceReportCriteriaAndFilter, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this ComplianceReportCriteriaAndFilter to JSON. @@ -31993,20 +33932,18 @@ export namespace Enterprise { /** Properties of a ComplianceReportCriteria. */ interface IComplianceReportCriteria { - /** ComplianceReportCriteria jobTitles */ - jobTitles?: (string[]|null); + jobTitles?: string[] | null; /** ComplianceReportCriteria enterpriseUserIds */ - enterpriseUserIds?: ((number|Long)[]|null); + enterpriseUserIds?: (number | Long)[] | null; /** ComplianceReportCriteria includeNonShared */ - includeNonShared?: (boolean|null); + includeNonShared?: boolean | null; } /** Represents a ComplianceReportCriteria. */ class ComplianceReportCriteria implements IComplianceReportCriteria { - /** * Constructs a new ComplianceReportCriteria. * @param [properties] Properties to set @@ -32017,7 +33954,7 @@ export namespace Enterprise { public jobTitles: string[]; /** ComplianceReportCriteria enterpriseUserIds. */ - public enterpriseUserIds: (number|Long)[]; + public enterpriseUserIds: (number | Long)[]; /** ComplianceReportCriteria includeNonShared. */ public includeNonShared: boolean; @@ -32035,7 +33972,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Enterprise.IComplianceReportCriteria, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Enterprise.IComplianceReportCriteria, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified ComplianceReportCriteria message, length delimited. Does not implicitly {@link Enterprise.ComplianceReportCriteria.verify|verify} messages. @@ -32043,7 +33983,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Enterprise.IComplianceReportCriteria, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Enterprise.IComplianceReportCriteria, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a ComplianceReportCriteria message from the specified reader or buffer. @@ -32053,7 +33996,10 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.ComplianceReportCriteria; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Enterprise.ComplianceReportCriteria; /** * Decodes a ComplianceReportCriteria message from the specified reader or buffer, length delimited. @@ -32062,14 +34008,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.ComplianceReportCriteria; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.ComplianceReportCriteria; /** * Verifies a ComplianceReportCriteria message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a ComplianceReportCriteria message from a plain object. Also converts values to their respective internal types. @@ -32084,7 +34030,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.ComplianceReportCriteria, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.ComplianceReportCriteria, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this ComplianceReportCriteria to JSON. @@ -32102,26 +34051,24 @@ export namespace Enterprise { /** Properties of a ComplianceReportFilter. */ interface IComplianceReportFilter { - /** ComplianceReportFilter recordTitles */ - recordTitles?: (string[]|null); + recordTitles?: string[] | null; /** ComplianceReportFilter recordUids */ - recordUids?: (Uint8Array[]|null); + recordUids?: Uint8Array[] | null; /** ComplianceReportFilter jobTitles */ - jobTitles?: (string[]|null); + jobTitles?: string[] | null; /** ComplianceReportFilter urls */ - urls?: (string[]|null); + urls?: string[] | null; /** ComplianceReportFilter recordTypes */ - recordTypes?: (string[]|null); + recordTypes?: string[] | null; } /** Represents a ComplianceReportFilter. */ class ComplianceReportFilter implements IComplianceReportFilter { - /** * Constructs a new ComplianceReportFilter. * @param [properties] Properties to set @@ -32164,7 +34111,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Enterprise.IComplianceReportFilter, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Enterprise.IComplianceReportFilter, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a ComplianceReportFilter message from the specified reader or buffer. @@ -32174,7 +34124,7 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.ComplianceReportFilter; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Enterprise.ComplianceReportFilter; /** * Decodes a ComplianceReportFilter message from the specified reader or buffer, length delimited. @@ -32183,14 +34133,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.ComplianceReportFilter; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.ComplianceReportFilter; /** * Verifies a ComplianceReportFilter message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a ComplianceReportFilter message from a plain object. Also converts values to their respective internal types. @@ -32205,7 +34155,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.ComplianceReportFilter, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.ComplianceReportFilter, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this ComplianceReportFilter to JSON. @@ -32223,56 +34176,54 @@ export namespace Enterprise { /** Properties of a ComplianceReportResponse. */ interface IComplianceReportResponse { - /** ComplianceReportResponse dateGenerated */ - dateGenerated?: (number|Long|null); + dateGenerated?: number | Long | null; /** ComplianceReportResponse runByUserName */ - runByUserName?: (string|null); + runByUserName?: string | null; /** ComplianceReportResponse reportName */ - reportName?: (string|null); + reportName?: string | null; /** ComplianceReportResponse reportUid */ - reportUid?: (Uint8Array|null); + reportUid?: Uint8Array | null; /** ComplianceReportResponse complianceReportRun */ - complianceReportRun?: (Enterprise.IComplianceReportRun|null); + complianceReportRun?: Enterprise.IComplianceReportRun | null; /** ComplianceReportResponse userProfiles */ - userProfiles?: (Enterprise.IUserProfile[]|null); + userProfiles?: Enterprise.IUserProfile[] | null; /** ComplianceReportResponse auditTeams */ - auditTeams?: (Enterprise.IAuditTeam[]|null); + auditTeams?: Enterprise.IAuditTeam[] | null; /** ComplianceReportResponse auditRecords */ - auditRecords?: (Enterprise.IAuditRecord[]|null); + auditRecords?: Enterprise.IAuditRecord[] | null; /** ComplianceReportResponse userRecords */ - userRecords?: (Enterprise.IUserRecord[]|null); + userRecords?: Enterprise.IUserRecord[] | null; /** ComplianceReportResponse sharedFolderRecords */ - sharedFolderRecords?: (Enterprise.ISharedFolderRecord[]|null); + sharedFolderRecords?: Enterprise.ISharedFolderRecord[] | null; /** ComplianceReportResponse sharedFolderUsers */ - sharedFolderUsers?: (Enterprise.ISharedFolderUser[]|null); + sharedFolderUsers?: Enterprise.ISharedFolderUser[] | null; /** ComplianceReportResponse sharedFolderTeams */ - sharedFolderTeams?: (Enterprise.ISharedFolderTeam[]|null); + sharedFolderTeams?: Enterprise.ISharedFolderTeam[] | null; /** ComplianceReportResponse auditTeamUsers */ - auditTeamUsers?: (Enterprise.IAuditTeamUser[]|null); + auditTeamUsers?: Enterprise.IAuditTeamUser[] | null; /** ComplianceReportResponse auditRoles */ - auditRoles?: (Enterprise.IAuditRole[]|null); + auditRoles?: Enterprise.IAuditRole[] | null; /** ComplianceReportResponse linkedRecords */ - linkedRecords?: (Enterprise.ILinkedRecord[]|null); + linkedRecords?: Enterprise.ILinkedRecord[] | null; } /** Represents a ComplianceReportResponse. */ class ComplianceReportResponse implements IComplianceReportResponse { - /** * Constructs a new ComplianceReportResponse. * @param [properties] Properties to set @@ -32280,7 +34231,7 @@ export namespace Enterprise { constructor(properties?: Enterprise.IComplianceReportResponse); /** ComplianceReportResponse dateGenerated. */ - public dateGenerated: (number|Long); + public dateGenerated: number | Long; /** ComplianceReportResponse runByUserName. */ public runByUserName: string; @@ -32292,7 +34243,7 @@ export namespace Enterprise { public reportUid: Uint8Array; /** ComplianceReportResponse complianceReportRun. */ - public complianceReportRun?: (Enterprise.IComplianceReportRun|null); + public complianceReportRun?: Enterprise.IComplianceReportRun | null; /** ComplianceReportResponse userProfiles. */ public userProfiles: Enterprise.IUserProfile[]; @@ -32337,7 +34288,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Enterprise.IComplianceReportResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Enterprise.IComplianceReportResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified ComplianceReportResponse message, length delimited. Does not implicitly {@link Enterprise.ComplianceReportResponse.verify|verify} messages. @@ -32345,7 +34299,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Enterprise.IComplianceReportResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Enterprise.IComplianceReportResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a ComplianceReportResponse message from the specified reader or buffer. @@ -32355,7 +34312,10 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.ComplianceReportResponse; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Enterprise.ComplianceReportResponse; /** * Decodes a ComplianceReportResponse message from the specified reader or buffer, length delimited. @@ -32364,14 +34324,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.ComplianceReportResponse; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.ComplianceReportResponse; /** * Verifies a ComplianceReportResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a ComplianceReportResponse message from a plain object. Also converts values to their respective internal types. @@ -32386,7 +34346,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.ComplianceReportResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.ComplianceReportResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this ComplianceReportResponse to JSON. @@ -32404,29 +34367,27 @@ export namespace Enterprise { /** Properties of an AuditRecord. */ interface IAuditRecord { - /** AuditRecord recordUid */ - recordUid?: (Uint8Array|null); + recordUid?: Uint8Array | null; /** AuditRecord auditData */ - auditData?: (Uint8Array|null); + auditData?: Uint8Array | null; /** AuditRecord hasAttachments */ - hasAttachments?: (boolean|null); + hasAttachments?: boolean | null; /** AuditRecord inTrash */ - inTrash?: (boolean|null); + inTrash?: boolean | null; /** AuditRecord treeLeft */ - treeLeft?: (number|null); + treeLeft?: number | null; /** AuditRecord treeRight */ - treeRight?: (number|null); + treeRight?: number | null; } /** Represents an AuditRecord. */ class AuditRecord implements IAuditRecord { - /** * Constructs a new AuditRecord. * @param [properties] Properties to set @@ -32482,7 +34443,7 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.AuditRecord; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Enterprise.AuditRecord; /** * Decodes an AuditRecord message from the specified reader or buffer, length delimited. @@ -32491,14 +34452,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.AuditRecord; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.AuditRecord; /** * Verifies an AuditRecord message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an AuditRecord message from a plain object. Also converts values to their respective internal types. @@ -32513,7 +34474,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.AuditRecord, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.AuditRecord, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this AuditRecord to JSON. @@ -32531,32 +34495,30 @@ export namespace Enterprise { /** Properties of an AuditRole. */ interface IAuditRole { - /** AuditRole roleId */ - roleId?: (number|Long|null); + roleId?: number | Long | null; /** AuditRole encryptedData */ - encryptedData?: (Uint8Array|null); + encryptedData?: Uint8Array | null; /** AuditRole restrictShareOutsideEnterprise */ - restrictShareOutsideEnterprise?: (boolean|null); + restrictShareOutsideEnterprise?: boolean | null; /** AuditRole restrictShareAll */ - restrictShareAll?: (boolean|null); + restrictShareAll?: boolean | null; /** AuditRole restrictShareOfAttachments */ - restrictShareOfAttachments?: (boolean|null); + restrictShareOfAttachments?: boolean | null; /** AuditRole restrictMaskPasswordsWhileEditing */ - restrictMaskPasswordsWhileEditing?: (boolean|null); + restrictMaskPasswordsWhileEditing?: boolean | null; /** AuditRole roleNodeManagements */ - roleNodeManagements?: (Enterprise.IRoleNodeManagement[]|null); + roleNodeManagements?: Enterprise.IRoleNodeManagement[] | null; } /** Represents an AuditRole. */ class AuditRole implements IAuditRole { - /** * Constructs a new AuditRole. * @param [properties] Properties to set @@ -32564,7 +34526,7 @@ export namespace Enterprise { constructor(properties?: Enterprise.IAuditRole); /** AuditRole roleId. */ - public roleId: (number|Long); + public roleId: number | Long; /** AuditRole encryptedData. */ public encryptedData: Uint8Array; @@ -32615,7 +34577,7 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.AuditRole; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Enterprise.AuditRole; /** * Decodes an AuditRole message from the specified reader or buffer, length delimited. @@ -32624,14 +34586,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.AuditRole; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.AuditRole; /** * Verifies an AuditRole message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an AuditRole message from a plain object. Also converts values to their respective internal types. @@ -32646,7 +34608,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.AuditRole, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.AuditRole, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this AuditRole to JSON. @@ -32664,23 +34629,21 @@ export namespace Enterprise { /** Properties of a RoleNodeManagement. */ interface IRoleNodeManagement { - /** RoleNodeManagement treeLeft */ - treeLeft?: (number|null); + treeLeft?: number | null; /** RoleNodeManagement treeRight */ - treeRight?: (number|null); + treeRight?: number | null; /** RoleNodeManagement cascade */ - cascade?: (boolean|null); + cascade?: boolean | null; /** RoleNodeManagement privileges */ - privileges?: (number|null); + privileges?: number | null; } /** Represents a RoleNodeManagement. */ class RoleNodeManagement implements IRoleNodeManagement { - /** * Constructs a new RoleNodeManagement. * @param [properties] Properties to set @@ -32720,7 +34683,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Enterprise.IRoleNodeManagement, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Enterprise.IRoleNodeManagement, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a RoleNodeManagement message from the specified reader or buffer. @@ -32730,7 +34696,7 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.RoleNodeManagement; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Enterprise.RoleNodeManagement; /** * Decodes a RoleNodeManagement message from the specified reader or buffer, length delimited. @@ -32739,14 +34705,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.RoleNodeManagement; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.RoleNodeManagement; /** * Verifies a RoleNodeManagement message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a RoleNodeManagement message from a plain object. Also converts values to their respective internal types. @@ -32761,7 +34727,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.RoleNodeManagement, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.RoleNodeManagement, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this RoleNodeManagement to JSON. @@ -32779,26 +34748,24 @@ export namespace Enterprise { /** Properties of a UserProfile. */ interface IUserProfile { - /** UserProfile enterpriseUserId */ - enterpriseUserId?: (number|Long|null); + enterpriseUserId?: number | Long | null; /** UserProfile fullName */ - fullName?: (string|null); + fullName?: string | null; /** UserProfile jobTitle */ - jobTitle?: (string|null); + jobTitle?: string | null; /** UserProfile email */ - email?: (string|null); + email?: string | null; /** UserProfile roleIds */ - roleIds?: ((number|Long)[]|null); + roleIds?: (number | Long)[] | null; } /** Represents a UserProfile. */ class UserProfile implements IUserProfile { - /** * Constructs a new UserProfile. * @param [properties] Properties to set @@ -32806,7 +34773,7 @@ export namespace Enterprise { constructor(properties?: Enterprise.IUserProfile); /** UserProfile enterpriseUserId. */ - public enterpriseUserId: (number|Long); + public enterpriseUserId: number | Long; /** UserProfile fullName. */ public fullName: string; @@ -32818,7 +34785,7 @@ export namespace Enterprise { public email: string; /** UserProfile roleIds. */ - public roleIds: (number|Long)[]; + public roleIds: (number | Long)[]; /** * Creates a new UserProfile instance using the specified properties. @@ -32851,7 +34818,7 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.UserProfile; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Enterprise.UserProfile; /** * Decodes a UserProfile message from the specified reader or buffer, length delimited. @@ -32860,14 +34827,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.UserProfile; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.UserProfile; /** * Verifies a UserProfile message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a UserProfile message from a plain object. Also converts values to their respective internal types. @@ -32882,7 +34849,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.UserProfile, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.UserProfile, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this UserProfile to JSON. @@ -32900,17 +34870,15 @@ export namespace Enterprise { /** Properties of a RecordPermission. */ interface IRecordPermission { - /** RecordPermission recordUid */ - recordUid?: (Uint8Array|null); + recordUid?: Uint8Array | null; /** RecordPermission permissionBits */ - permissionBits?: (number|null); + permissionBits?: number | null; } /** Represents a RecordPermission. */ class RecordPermission implements IRecordPermission { - /** * Constructs a new RecordPermission. * @param [properties] Properties to set @@ -32944,7 +34912,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Enterprise.IRecordPermission, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Enterprise.IRecordPermission, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a RecordPermission message from the specified reader or buffer. @@ -32954,7 +34925,7 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.RecordPermission; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Enterprise.RecordPermission; /** * Decodes a RecordPermission message from the specified reader or buffer, length delimited. @@ -32963,14 +34934,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.RecordPermission; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.RecordPermission; /** * Verifies a RecordPermission message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a RecordPermission message from a plain object. Also converts values to their respective internal types. @@ -32985,7 +34956,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.RecordPermission, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.RecordPermission, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this RecordPermission to JSON. @@ -33003,17 +34977,15 @@ export namespace Enterprise { /** Properties of a UserRecord. */ interface IUserRecord { - /** UserRecord enterpriseUserId */ - enterpriseUserId?: (number|Long|null); + enterpriseUserId?: number | Long | null; /** UserRecord recordPermissions */ - recordPermissions?: (Enterprise.IRecordPermission[]|null); + recordPermissions?: Enterprise.IRecordPermission[] | null; } /** Represents a UserRecord. */ class UserRecord implements IUserRecord { - /** * Constructs a new UserRecord. * @param [properties] Properties to set @@ -33021,7 +34993,7 @@ export namespace Enterprise { constructor(properties?: Enterprise.IUserRecord); /** UserRecord enterpriseUserId. */ - public enterpriseUserId: (number|Long); + public enterpriseUserId: number | Long; /** UserRecord recordPermissions. */ public recordPermissions: Enterprise.IRecordPermission[]; @@ -33057,7 +35029,7 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.UserRecord; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Enterprise.UserRecord; /** * Decodes a UserRecord message from the specified reader or buffer, length delimited. @@ -33066,14 +35038,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.UserRecord; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.UserRecord; /** * Verifies a UserRecord message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a UserRecord message from a plain object. Also converts values to their respective internal types. @@ -33088,7 +35060,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.UserRecord, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.UserRecord, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this UserRecord to JSON. @@ -33106,23 +35081,21 @@ export namespace Enterprise { /** Properties of an AuditTeam. */ interface IAuditTeam { - /** AuditTeam teamUid */ - teamUid?: (Uint8Array|null); + teamUid?: Uint8Array | null; /** AuditTeam teamName */ - teamName?: (string|null); + teamName?: string | null; /** AuditTeam restrictEdit */ - restrictEdit?: (boolean|null); + restrictEdit?: boolean | null; /** AuditTeam restrictShare */ - restrictShare?: (boolean|null); + restrictShare?: boolean | null; } /** Represents an AuditTeam. */ class AuditTeam implements IAuditTeam { - /** * Constructs a new AuditTeam. * @param [properties] Properties to set @@ -33172,7 +35145,7 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.AuditTeam; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Enterprise.AuditTeam; /** * Decodes an AuditTeam message from the specified reader or buffer, length delimited. @@ -33181,14 +35154,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.AuditTeam; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.AuditTeam; /** * Verifies an AuditTeam message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an AuditTeam message from a plain object. Also converts values to their respective internal types. @@ -33203,7 +35176,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.AuditTeam, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.AuditTeam, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this AuditTeam to JSON. @@ -33221,17 +35197,15 @@ export namespace Enterprise { /** Properties of an AuditTeamUser. */ interface IAuditTeamUser { - /** AuditTeamUser teamUid */ - teamUid?: (Uint8Array|null); + teamUid?: Uint8Array | null; /** AuditTeamUser enterpriseUserIds */ - enterpriseUserIds?: ((number|Long)[]|null); + enterpriseUserIds?: (number | Long)[] | null; } /** Represents an AuditTeamUser. */ class AuditTeamUser implements IAuditTeamUser { - /** * Constructs a new AuditTeamUser. * @param [properties] Properties to set @@ -33242,7 +35216,7 @@ export namespace Enterprise { public teamUid: Uint8Array; /** AuditTeamUser enterpriseUserIds. */ - public enterpriseUserIds: (number|Long)[]; + public enterpriseUserIds: (number | Long)[]; /** * Creates a new AuditTeamUser instance using the specified properties. @@ -33275,7 +35249,7 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.AuditTeamUser; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Enterprise.AuditTeamUser; /** * Decodes an AuditTeamUser message from the specified reader or buffer, length delimited. @@ -33284,14 +35258,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.AuditTeamUser; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.AuditTeamUser; /** * Verifies an AuditTeamUser message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an AuditTeamUser message from a plain object. Also converts values to their respective internal types. @@ -33306,7 +35280,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.AuditTeamUser, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.AuditTeamUser, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this AuditTeamUser to JSON. @@ -33324,20 +35301,18 @@ export namespace Enterprise { /** Properties of a SharedFolderRecord. */ interface ISharedFolderRecord { - /** SharedFolderRecord sharedFolderUid */ - sharedFolderUid?: (Uint8Array|null); + sharedFolderUid?: Uint8Array | null; /** SharedFolderRecord recordPermissions */ - recordPermissions?: (Enterprise.IRecordPermission[]|null); + recordPermissions?: Enterprise.IRecordPermission[] | null; /** SharedFolderRecord shareAdminRecords */ - shareAdminRecords?: (Enterprise.IShareAdminRecord[]|null); + shareAdminRecords?: Enterprise.IShareAdminRecord[] | null; } /** Represents a SharedFolderRecord. */ class SharedFolderRecord implements ISharedFolderRecord { - /** * Constructs a new SharedFolderRecord. * @param [properties] Properties to set @@ -33374,7 +35349,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Enterprise.ISharedFolderRecord, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Enterprise.ISharedFolderRecord, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a SharedFolderRecord message from the specified reader or buffer. @@ -33384,7 +35362,7 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.SharedFolderRecord; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Enterprise.SharedFolderRecord; /** * Decodes a SharedFolderRecord message from the specified reader or buffer, length delimited. @@ -33393,14 +35371,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.SharedFolderRecord; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.SharedFolderRecord; /** * Verifies a SharedFolderRecord message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a SharedFolderRecord message from a plain object. Also converts values to their respective internal types. @@ -33415,7 +35393,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.SharedFolderRecord, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.SharedFolderRecord, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this SharedFolderRecord to JSON. @@ -33433,17 +35414,15 @@ export namespace Enterprise { /** Properties of a ShareAdminRecord. */ interface IShareAdminRecord { - /** ShareAdminRecord enterpriseUserId */ - enterpriseUserId?: (number|Long|null); + enterpriseUserId?: number | Long | null; /** ShareAdminRecord recordPermissionIndexes */ - recordPermissionIndexes?: (number[]|null); + recordPermissionIndexes?: number[] | null; } /** Represents a ShareAdminRecord. */ class ShareAdminRecord implements IShareAdminRecord { - /** * Constructs a new ShareAdminRecord. * @param [properties] Properties to set @@ -33451,7 +35430,7 @@ export namespace Enterprise { constructor(properties?: Enterprise.IShareAdminRecord); /** ShareAdminRecord enterpriseUserId. */ - public enterpriseUserId: (number|Long); + public enterpriseUserId: number | Long; /** ShareAdminRecord recordPermissionIndexes. */ public recordPermissionIndexes: number[]; @@ -33477,7 +35456,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Enterprise.IShareAdminRecord, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Enterprise.IShareAdminRecord, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a ShareAdminRecord message from the specified reader or buffer. @@ -33487,7 +35469,7 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.ShareAdminRecord; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Enterprise.ShareAdminRecord; /** * Decodes a ShareAdminRecord message from the specified reader or buffer, length delimited. @@ -33496,14 +35478,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.ShareAdminRecord; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.ShareAdminRecord; /** * Verifies a ShareAdminRecord message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a ShareAdminRecord message from a plain object. Also converts values to their respective internal types. @@ -33518,7 +35500,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.ShareAdminRecord, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.ShareAdminRecord, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this ShareAdminRecord to JSON. @@ -33536,17 +35521,15 @@ export namespace Enterprise { /** Properties of a SharedFolderUser. */ interface ISharedFolderUser { - /** SharedFolderUser sharedFolderUid */ - sharedFolderUid?: (Uint8Array|null); + sharedFolderUid?: Uint8Array | null; /** SharedFolderUser enterpriseUserIds */ - enterpriseUserIds?: ((number|Long)[]|null); + enterpriseUserIds?: (number | Long)[] | null; } /** Represents a SharedFolderUser. */ class SharedFolderUser implements ISharedFolderUser { - /** * Constructs a new SharedFolderUser. * @param [properties] Properties to set @@ -33557,7 +35540,7 @@ export namespace Enterprise { public sharedFolderUid: Uint8Array; /** SharedFolderUser enterpriseUserIds. */ - public enterpriseUserIds: (number|Long)[]; + public enterpriseUserIds: (number | Long)[]; /** * Creates a new SharedFolderUser instance using the specified properties. @@ -33580,7 +35563,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Enterprise.ISharedFolderUser, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Enterprise.ISharedFolderUser, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a SharedFolderUser message from the specified reader or buffer. @@ -33590,7 +35576,7 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.SharedFolderUser; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Enterprise.SharedFolderUser; /** * Decodes a SharedFolderUser message from the specified reader or buffer, length delimited. @@ -33599,14 +35585,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.SharedFolderUser; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.SharedFolderUser; /** * Verifies a SharedFolderUser message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a SharedFolderUser message from a plain object. Also converts values to their respective internal types. @@ -33621,7 +35607,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.SharedFolderUser, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.SharedFolderUser, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this SharedFolderUser to JSON. @@ -33639,17 +35628,15 @@ export namespace Enterprise { /** Properties of a SharedFolderTeam. */ interface ISharedFolderTeam { - /** SharedFolderTeam sharedFolderUid */ - sharedFolderUid?: (Uint8Array|null); + sharedFolderUid?: Uint8Array | null; /** SharedFolderTeam teamUids */ - teamUids?: (Uint8Array[]|null); + teamUids?: Uint8Array[] | null; } /** Represents a SharedFolderTeam. */ class SharedFolderTeam implements ISharedFolderTeam { - /** * Constructs a new SharedFolderTeam. * @param [properties] Properties to set @@ -33683,7 +35670,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Enterprise.ISharedFolderTeam, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Enterprise.ISharedFolderTeam, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a SharedFolderTeam message from the specified reader or buffer. @@ -33693,7 +35683,7 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.SharedFolderTeam; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Enterprise.SharedFolderTeam; /** * Decodes a SharedFolderTeam message from the specified reader or buffer, length delimited. @@ -33702,14 +35692,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.SharedFolderTeam; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.SharedFolderTeam; /** * Verifies a SharedFolderTeam message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a SharedFolderTeam message from a plain object. Also converts values to their respective internal types. @@ -33724,7 +35714,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.SharedFolderTeam, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.SharedFolderTeam, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this SharedFolderTeam to JSON. @@ -33742,14 +35735,12 @@ export namespace Enterprise { /** Properties of a GetComplianceReportRequest. */ interface IGetComplianceReportRequest { - /** GetComplianceReportRequest reportUid */ - reportUid?: (Uint8Array|null); + reportUid?: Uint8Array | null; } /** Represents a GetComplianceReportRequest. */ class GetComplianceReportRequest implements IGetComplianceReportRequest { - /** * Constructs a new GetComplianceReportRequest. * @param [properties] Properties to set @@ -33764,7 +35755,9 @@ export namespace Enterprise { * @param [properties] Properties to set * @returns GetComplianceReportRequest instance */ - public static create(properties?: Enterprise.IGetComplianceReportRequest): Enterprise.GetComplianceReportRequest; + public static create( + properties?: Enterprise.IGetComplianceReportRequest + ): Enterprise.GetComplianceReportRequest; /** * Encodes the specified GetComplianceReportRequest message. Does not implicitly {@link Enterprise.GetComplianceReportRequest.verify|verify} messages. @@ -33772,7 +35765,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Enterprise.IGetComplianceReportRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Enterprise.IGetComplianceReportRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified GetComplianceReportRequest message, length delimited. Does not implicitly {@link Enterprise.GetComplianceReportRequest.verify|verify} messages. @@ -33780,7 +35776,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Enterprise.IGetComplianceReportRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Enterprise.IGetComplianceReportRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a GetComplianceReportRequest message from the specified reader or buffer. @@ -33790,7 +35789,10 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.GetComplianceReportRequest; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Enterprise.GetComplianceReportRequest; /** * Decodes a GetComplianceReportRequest message from the specified reader or buffer, length delimited. @@ -33799,14 +35801,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.GetComplianceReportRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.GetComplianceReportRequest; /** * Verifies a GetComplianceReportRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a GetComplianceReportRequest message from a plain object. Also converts values to their respective internal types. @@ -33821,7 +35823,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.GetComplianceReportRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.GetComplianceReportRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this GetComplianceReportRequest to JSON. @@ -33839,14 +35844,12 @@ export namespace Enterprise { /** Properties of a GetComplianceReportResponse. */ interface IGetComplianceReportResponse { - /** GetComplianceReportResponse downloadUrl */ - downloadUrl?: (string|null); + downloadUrl?: string | null; } /** Represents a GetComplianceReportResponse. */ class GetComplianceReportResponse implements IGetComplianceReportResponse { - /** * Constructs a new GetComplianceReportResponse. * @param [properties] Properties to set @@ -33861,7 +35864,9 @@ export namespace Enterprise { * @param [properties] Properties to set * @returns GetComplianceReportResponse instance */ - public static create(properties?: Enterprise.IGetComplianceReportResponse): Enterprise.GetComplianceReportResponse; + public static create( + properties?: Enterprise.IGetComplianceReportResponse + ): Enterprise.GetComplianceReportResponse; /** * Encodes the specified GetComplianceReportResponse message. Does not implicitly {@link Enterprise.GetComplianceReportResponse.verify|verify} messages. @@ -33869,7 +35874,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Enterprise.IGetComplianceReportResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Enterprise.IGetComplianceReportResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified GetComplianceReportResponse message, length delimited. Does not implicitly {@link Enterprise.GetComplianceReportResponse.verify|verify} messages. @@ -33877,7 +35885,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Enterprise.IGetComplianceReportResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Enterprise.IGetComplianceReportResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a GetComplianceReportResponse message from the specified reader or buffer. @@ -33887,7 +35898,10 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.GetComplianceReportResponse; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Enterprise.GetComplianceReportResponse; /** * Decodes a GetComplianceReportResponse message from the specified reader or buffer, length delimited. @@ -33896,14 +35910,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.GetComplianceReportResponse; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.GetComplianceReportResponse; /** * Verifies a GetComplianceReportResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a GetComplianceReportResponse message from a plain object. Also converts values to their respective internal types. @@ -33918,7 +35932,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.GetComplianceReportResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.GetComplianceReportResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this GetComplianceReportResponse to JSON. @@ -33936,14 +35953,12 @@ export namespace Enterprise { /** Properties of a ComplianceReportCriteriaRequest. */ interface IComplianceReportCriteriaRequest { - /** ComplianceReportCriteriaRequest criteriaUid */ - criteriaUid?: (Uint8Array|null); + criteriaUid?: Uint8Array | null; } /** Represents a ComplianceReportCriteriaRequest. */ class ComplianceReportCriteriaRequest implements IComplianceReportCriteriaRequest { - /** * Constructs a new ComplianceReportCriteriaRequest. * @param [properties] Properties to set @@ -33958,7 +35973,9 @@ export namespace Enterprise { * @param [properties] Properties to set * @returns ComplianceReportCriteriaRequest instance */ - public static create(properties?: Enterprise.IComplianceReportCriteriaRequest): Enterprise.ComplianceReportCriteriaRequest; + public static create( + properties?: Enterprise.IComplianceReportCriteriaRequest + ): Enterprise.ComplianceReportCriteriaRequest; /** * Encodes the specified ComplianceReportCriteriaRequest message. Does not implicitly {@link Enterprise.ComplianceReportCriteriaRequest.verify|verify} messages. @@ -33966,7 +35983,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Enterprise.IComplianceReportCriteriaRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Enterprise.IComplianceReportCriteriaRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified ComplianceReportCriteriaRequest message, length delimited. Does not implicitly {@link Enterprise.ComplianceReportCriteriaRequest.verify|verify} messages. @@ -33974,7 +35994,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Enterprise.IComplianceReportCriteriaRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Enterprise.IComplianceReportCriteriaRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a ComplianceReportCriteriaRequest message from the specified reader or buffer. @@ -33984,7 +36007,10 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.ComplianceReportCriteriaRequest; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Enterprise.ComplianceReportCriteriaRequest; /** * Decodes a ComplianceReportCriteriaRequest message from the specified reader or buffer, length delimited. @@ -33993,14 +36019,16 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.ComplianceReportCriteriaRequest; + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array + ): Enterprise.ComplianceReportCriteriaRequest; /** * Verifies a ComplianceReportCriteriaRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a ComplianceReportCriteriaRequest message from a plain object. Also converts values to their respective internal types. @@ -34015,7 +36043,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.ComplianceReportCriteriaRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.ComplianceReportCriteriaRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this ComplianceReportCriteriaRequest to JSON. @@ -34033,14 +36064,12 @@ export namespace Enterprise { /** Properties of a SaveComplianceReportCriteriaResponse. */ interface ISaveComplianceReportCriteriaResponse { - /** SaveComplianceReportCriteriaResponse criteriaUid */ - criteriaUid?: (Uint8Array|null); + criteriaUid?: Uint8Array | null; } /** Represents a SaveComplianceReportCriteriaResponse. */ class SaveComplianceReportCriteriaResponse implements ISaveComplianceReportCriteriaResponse { - /** * Constructs a new SaveComplianceReportCriteriaResponse. * @param [properties] Properties to set @@ -34055,7 +36084,9 @@ export namespace Enterprise { * @param [properties] Properties to set * @returns SaveComplianceReportCriteriaResponse instance */ - public static create(properties?: Enterprise.ISaveComplianceReportCriteriaResponse): Enterprise.SaveComplianceReportCriteriaResponse; + public static create( + properties?: Enterprise.ISaveComplianceReportCriteriaResponse + ): Enterprise.SaveComplianceReportCriteriaResponse; /** * Encodes the specified SaveComplianceReportCriteriaResponse message. Does not implicitly {@link Enterprise.SaveComplianceReportCriteriaResponse.verify|verify} messages. @@ -34063,7 +36094,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Enterprise.ISaveComplianceReportCriteriaResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Enterprise.ISaveComplianceReportCriteriaResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified SaveComplianceReportCriteriaResponse message, length delimited. Does not implicitly {@link Enterprise.SaveComplianceReportCriteriaResponse.verify|verify} messages. @@ -34071,7 +36105,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Enterprise.ISaveComplianceReportCriteriaResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Enterprise.ISaveComplianceReportCriteriaResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a SaveComplianceReportCriteriaResponse message from the specified reader or buffer. @@ -34081,7 +36118,10 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.SaveComplianceReportCriteriaResponse; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Enterprise.SaveComplianceReportCriteriaResponse; /** * Decodes a SaveComplianceReportCriteriaResponse message from the specified reader or buffer, length delimited. @@ -34090,14 +36130,16 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.SaveComplianceReportCriteriaResponse; + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array + ): Enterprise.SaveComplianceReportCriteriaResponse; /** * Verifies a SaveComplianceReportCriteriaResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a SaveComplianceReportCriteriaResponse message from a plain object. Also converts values to their respective internal types. @@ -34112,7 +36154,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.SaveComplianceReportCriteriaResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.SaveComplianceReportCriteriaResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this SaveComplianceReportCriteriaResponse to JSON. @@ -34130,17 +36175,15 @@ export namespace Enterprise { /** Properties of a LinkedRecord. */ interface ILinkedRecord { - /** LinkedRecord ownerUid */ - ownerUid?: (Uint8Array|null); + ownerUid?: Uint8Array | null; /** LinkedRecord recordUids */ - recordUids?: (Uint8Array[]|null); + recordUids?: Uint8Array[] | null; } /** Represents a LinkedRecord. */ class LinkedRecord implements ILinkedRecord { - /** * Constructs a new LinkedRecord. * @param [properties] Properties to set @@ -34184,7 +36227,7 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.LinkedRecord; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Enterprise.LinkedRecord; /** * Decodes a LinkedRecord message from the specified reader or buffer, length delimited. @@ -34193,14 +36236,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.LinkedRecord; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.LinkedRecord; /** * Verifies a LinkedRecord message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a LinkedRecord message from a plain object. Also converts values to their respective internal types. @@ -34215,7 +36258,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.LinkedRecord, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.LinkedRecord, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this LinkedRecord to JSON. @@ -34233,20 +36279,18 @@ export namespace Enterprise { /** Properties of a GetSharingAdminsRequest. */ interface IGetSharingAdminsRequest { - /** GetSharingAdminsRequest sharedFolderUid */ - sharedFolderUid?: (Uint8Array|null); + sharedFolderUid?: Uint8Array | null; /** GetSharingAdminsRequest recordUid */ - recordUid?: (Uint8Array|null); + recordUid?: Uint8Array | null; /** GetSharingAdminsRequest username */ - username?: (string|null); + username?: string | null; } /** Represents a GetSharingAdminsRequest. */ class GetSharingAdminsRequest implements IGetSharingAdminsRequest { - /** * Constructs a new GetSharingAdminsRequest. * @param [properties] Properties to set @@ -34283,7 +36327,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Enterprise.IGetSharingAdminsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Enterprise.IGetSharingAdminsRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a GetSharingAdminsRequest message from the specified reader or buffer. @@ -34293,7 +36340,10 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.GetSharingAdminsRequest; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Enterprise.GetSharingAdminsRequest; /** * Decodes a GetSharingAdminsRequest message from the specified reader or buffer, length delimited. @@ -34302,14 +36352,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.GetSharingAdminsRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.GetSharingAdminsRequest; /** * Verifies a GetSharingAdminsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a GetSharingAdminsRequest message from a plain object. Also converts values to their respective internal types. @@ -34324,7 +36374,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.GetSharingAdminsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.GetSharingAdminsRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this GetSharingAdminsRequest to JSON. @@ -34342,35 +36395,33 @@ export namespace Enterprise { /** Properties of a UserProfileExt. */ interface IUserProfileExt { - /** UserProfileExt email */ - email?: (string|null); + email?: string | null; /** UserProfileExt fullName */ - fullName?: (string|null); + fullName?: string | null; /** UserProfileExt jobTitle */ - jobTitle?: (string|null); + jobTitle?: string | null; /** UserProfileExt isMSPMCAdmin */ - isMSPMCAdmin?: (boolean|null); + isMSPMCAdmin?: boolean | null; /** UserProfileExt isInSharedFolder */ - isInSharedFolder?: (boolean|null); + isInSharedFolder?: boolean | null; /** UserProfileExt isShareAdminForRequestedObject */ - isShareAdminForRequestedObject?: (boolean|null); + isShareAdminForRequestedObject?: boolean | null; /** UserProfileExt isShareAdminForSharedFolderOwner */ - isShareAdminForSharedFolderOwner?: (boolean|null); + isShareAdminForSharedFolderOwner?: boolean | null; /** UserProfileExt hasAccessToObject */ - hasAccessToObject?: (boolean|null); + hasAccessToObject?: boolean | null; } /** Represents a UserProfileExt. */ class UserProfileExt implements IUserProfileExt { - /** * Constructs a new UserProfileExt. * @param [properties] Properties to set @@ -34432,7 +36483,7 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.UserProfileExt; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Enterprise.UserProfileExt; /** * Decodes a UserProfileExt message from the specified reader or buffer, length delimited. @@ -34441,14 +36492,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.UserProfileExt; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.UserProfileExt; /** * Verifies a UserProfileExt message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a UserProfileExt message from a plain object. Also converts values to their respective internal types. @@ -34463,7 +36514,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.UserProfileExt, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.UserProfileExt, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this UserProfileExt to JSON. @@ -34481,14 +36535,12 @@ export namespace Enterprise { /** Properties of a GetSharingAdminsResponse. */ interface IGetSharingAdminsResponse { - /** GetSharingAdminsResponse userProfileExts */ - userProfileExts?: (Enterprise.IUserProfileExt[]|null); + userProfileExts?: Enterprise.IUserProfileExt[] | null; } /** Represents a GetSharingAdminsResponse. */ class GetSharingAdminsResponse implements IGetSharingAdminsResponse { - /** * Constructs a new GetSharingAdminsResponse. * @param [properties] Properties to set @@ -34511,7 +36563,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Enterprise.IGetSharingAdminsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Enterprise.IGetSharingAdminsResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified GetSharingAdminsResponse message, length delimited. Does not implicitly {@link Enterprise.GetSharingAdminsResponse.verify|verify} messages. @@ -34519,7 +36574,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Enterprise.IGetSharingAdminsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Enterprise.IGetSharingAdminsResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a GetSharingAdminsResponse message from the specified reader or buffer. @@ -34529,7 +36587,10 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.GetSharingAdminsResponse; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Enterprise.GetSharingAdminsResponse; /** * Decodes a GetSharingAdminsResponse message from the specified reader or buffer, length delimited. @@ -34538,14 +36599,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.GetSharingAdminsResponse; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.GetSharingAdminsResponse; /** * Verifies a GetSharingAdminsResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a GetSharingAdminsResponse message from a plain object. Also converts values to their respective internal types. @@ -34560,7 +36621,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.GetSharingAdminsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.GetSharingAdminsResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this GetSharingAdminsResponse to JSON. @@ -34578,14 +36642,12 @@ export namespace Enterprise { /** Properties of a TeamsEnterpriseUsersAddRequest. */ interface ITeamsEnterpriseUsersAddRequest { - /** TeamsEnterpriseUsersAddRequest teams */ - teams?: (Enterprise.ITeamsEnterpriseUsersAddTeamRequest[]|null); + teams?: Enterprise.ITeamsEnterpriseUsersAddTeamRequest[] | null; } /** Represents a TeamsEnterpriseUsersAddRequest. */ class TeamsEnterpriseUsersAddRequest implements ITeamsEnterpriseUsersAddRequest { - /** * Constructs a new TeamsEnterpriseUsersAddRequest. * @param [properties] Properties to set @@ -34600,7 +36662,9 @@ export namespace Enterprise { * @param [properties] Properties to set * @returns TeamsEnterpriseUsersAddRequest instance */ - public static create(properties?: Enterprise.ITeamsEnterpriseUsersAddRequest): Enterprise.TeamsEnterpriseUsersAddRequest; + public static create( + properties?: Enterprise.ITeamsEnterpriseUsersAddRequest + ): Enterprise.TeamsEnterpriseUsersAddRequest; /** * Encodes the specified TeamsEnterpriseUsersAddRequest message. Does not implicitly {@link Enterprise.TeamsEnterpriseUsersAddRequest.verify|verify} messages. @@ -34608,7 +36672,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Enterprise.ITeamsEnterpriseUsersAddRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Enterprise.ITeamsEnterpriseUsersAddRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified TeamsEnterpriseUsersAddRequest message, length delimited. Does not implicitly {@link Enterprise.TeamsEnterpriseUsersAddRequest.verify|verify} messages. @@ -34616,7 +36683,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Enterprise.ITeamsEnterpriseUsersAddRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Enterprise.ITeamsEnterpriseUsersAddRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a TeamsEnterpriseUsersAddRequest message from the specified reader or buffer. @@ -34626,7 +36696,10 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.TeamsEnterpriseUsersAddRequest; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Enterprise.TeamsEnterpriseUsersAddRequest; /** * Decodes a TeamsEnterpriseUsersAddRequest message from the specified reader or buffer, length delimited. @@ -34635,14 +36708,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.TeamsEnterpriseUsersAddRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.TeamsEnterpriseUsersAddRequest; /** * Verifies a TeamsEnterpriseUsersAddRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a TeamsEnterpriseUsersAddRequest message from a plain object. Also converts values to their respective internal types. @@ -34657,7 +36730,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.TeamsEnterpriseUsersAddRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.TeamsEnterpriseUsersAddRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this TeamsEnterpriseUsersAddRequest to JSON. @@ -34675,17 +36751,15 @@ export namespace Enterprise { /** Properties of a TeamsEnterpriseUsersAddTeamRequest. */ interface ITeamsEnterpriseUsersAddTeamRequest { - /** TeamsEnterpriseUsersAddTeamRequest teamUid */ - teamUid?: (Uint8Array|null); + teamUid?: Uint8Array | null; /** TeamsEnterpriseUsersAddTeamRequest users */ - users?: (Enterprise.ITeamsEnterpriseUsersAddUserRequest[]|null); + users?: Enterprise.ITeamsEnterpriseUsersAddUserRequest[] | null; } /** Represents a TeamsEnterpriseUsersAddTeamRequest. */ class TeamsEnterpriseUsersAddTeamRequest implements ITeamsEnterpriseUsersAddTeamRequest { - /** * Constructs a new TeamsEnterpriseUsersAddTeamRequest. * @param [properties] Properties to set @@ -34703,7 +36777,9 @@ export namespace Enterprise { * @param [properties] Properties to set * @returns TeamsEnterpriseUsersAddTeamRequest instance */ - public static create(properties?: Enterprise.ITeamsEnterpriseUsersAddTeamRequest): Enterprise.TeamsEnterpriseUsersAddTeamRequest; + public static create( + properties?: Enterprise.ITeamsEnterpriseUsersAddTeamRequest + ): Enterprise.TeamsEnterpriseUsersAddTeamRequest; /** * Encodes the specified TeamsEnterpriseUsersAddTeamRequest message. Does not implicitly {@link Enterprise.TeamsEnterpriseUsersAddTeamRequest.verify|verify} messages. @@ -34711,7 +36787,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Enterprise.ITeamsEnterpriseUsersAddTeamRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Enterprise.ITeamsEnterpriseUsersAddTeamRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified TeamsEnterpriseUsersAddTeamRequest message, length delimited. Does not implicitly {@link Enterprise.TeamsEnterpriseUsersAddTeamRequest.verify|verify} messages. @@ -34719,7 +36798,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Enterprise.ITeamsEnterpriseUsersAddTeamRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Enterprise.ITeamsEnterpriseUsersAddTeamRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a TeamsEnterpriseUsersAddTeamRequest message from the specified reader or buffer. @@ -34729,7 +36811,10 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.TeamsEnterpriseUsersAddTeamRequest; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Enterprise.TeamsEnterpriseUsersAddTeamRequest; /** * Decodes a TeamsEnterpriseUsersAddTeamRequest message from the specified reader or buffer, length delimited. @@ -34738,14 +36823,16 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.TeamsEnterpriseUsersAddTeamRequest; + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array + ): Enterprise.TeamsEnterpriseUsersAddTeamRequest; /** * Verifies a TeamsEnterpriseUsersAddTeamRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a TeamsEnterpriseUsersAddTeamRequest message from a plain object. Also converts values to their respective internal types. @@ -34760,7 +36847,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.TeamsEnterpriseUsersAddTeamRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.TeamsEnterpriseUsersAddTeamRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this TeamsEnterpriseUsersAddTeamRequest to JSON. @@ -34778,23 +36868,21 @@ export namespace Enterprise { /** Properties of a TeamsEnterpriseUsersAddUserRequest. */ interface ITeamsEnterpriseUsersAddUserRequest { - /** TeamsEnterpriseUsersAddUserRequest enterpriseUserId */ - enterpriseUserId?: (number|Long|null); + enterpriseUserId?: number | Long | null; /** TeamsEnterpriseUsersAddUserRequest userType */ - userType?: (Enterprise.TeamUserType|null); + userType?: Enterprise.TeamUserType | null; /** TeamsEnterpriseUsersAddUserRequest teamKey */ - teamKey?: (string|null); + teamKey?: string | null; /** TeamsEnterpriseUsersAddUserRequest typedTeamKey */ - typedTeamKey?: (Enterprise.ITypedKey|null); + typedTeamKey?: Enterprise.ITypedKey | null; } /** Represents a TeamsEnterpriseUsersAddUserRequest. */ class TeamsEnterpriseUsersAddUserRequest implements ITeamsEnterpriseUsersAddUserRequest { - /** * Constructs a new TeamsEnterpriseUsersAddUserRequest. * @param [properties] Properties to set @@ -34802,7 +36890,7 @@ export namespace Enterprise { constructor(properties?: Enterprise.ITeamsEnterpriseUsersAddUserRequest); /** TeamsEnterpriseUsersAddUserRequest enterpriseUserId. */ - public enterpriseUserId: (number|Long); + public enterpriseUserId: number | Long; /** TeamsEnterpriseUsersAddUserRequest userType. */ public userType: Enterprise.TeamUserType; @@ -34811,14 +36899,16 @@ export namespace Enterprise { public teamKey: string; /** TeamsEnterpriseUsersAddUserRequest typedTeamKey. */ - public typedTeamKey?: (Enterprise.ITypedKey|null); + public typedTeamKey?: Enterprise.ITypedKey | null; /** * Creates a new TeamsEnterpriseUsersAddUserRequest instance using the specified properties. * @param [properties] Properties to set * @returns TeamsEnterpriseUsersAddUserRequest instance */ - public static create(properties?: Enterprise.ITeamsEnterpriseUsersAddUserRequest): Enterprise.TeamsEnterpriseUsersAddUserRequest; + public static create( + properties?: Enterprise.ITeamsEnterpriseUsersAddUserRequest + ): Enterprise.TeamsEnterpriseUsersAddUserRequest; /** * Encodes the specified TeamsEnterpriseUsersAddUserRequest message. Does not implicitly {@link Enterprise.TeamsEnterpriseUsersAddUserRequest.verify|verify} messages. @@ -34826,7 +36916,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Enterprise.ITeamsEnterpriseUsersAddUserRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Enterprise.ITeamsEnterpriseUsersAddUserRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified TeamsEnterpriseUsersAddUserRequest message, length delimited. Does not implicitly {@link Enterprise.TeamsEnterpriseUsersAddUserRequest.verify|verify} messages. @@ -34834,7 +36927,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Enterprise.ITeamsEnterpriseUsersAddUserRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Enterprise.ITeamsEnterpriseUsersAddUserRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a TeamsEnterpriseUsersAddUserRequest message from the specified reader or buffer. @@ -34844,7 +36940,10 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.TeamsEnterpriseUsersAddUserRequest; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Enterprise.TeamsEnterpriseUsersAddUserRequest; /** * Decodes a TeamsEnterpriseUsersAddUserRequest message from the specified reader or buffer, length delimited. @@ -34853,14 +36952,16 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.TeamsEnterpriseUsersAddUserRequest; + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array + ): Enterprise.TeamsEnterpriseUsersAddUserRequest; /** * Verifies a TeamsEnterpriseUsersAddUserRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a TeamsEnterpriseUsersAddUserRequest message from a plain object. Also converts values to their respective internal types. @@ -34875,7 +36976,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.TeamsEnterpriseUsersAddUserRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.TeamsEnterpriseUsersAddUserRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this TeamsEnterpriseUsersAddUserRequest to JSON. @@ -34893,17 +36997,15 @@ export namespace Enterprise { /** Properties of a TypedKey. */ interface ITypedKey { - /** TypedKey key */ - key?: (Uint8Array|null); + key?: Uint8Array | null; /** TypedKey keyType */ - keyType?: (Enterprise.EncryptedKeyType|null); + keyType?: Enterprise.EncryptedKeyType | null; } /** Represents a TypedKey. */ class TypedKey implements ITypedKey { - /** * Constructs a new TypedKey. * @param [properties] Properties to set @@ -34947,7 +37049,7 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.TypedKey; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Enterprise.TypedKey; /** * Decodes a TypedKey message from the specified reader or buffer, length delimited. @@ -34956,14 +37058,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.TypedKey; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.TypedKey; /** * Verifies a TypedKey message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a TypedKey message from a plain object. Also converts values to their respective internal types. @@ -34978,7 +37080,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.TypedKey, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.TypedKey, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this TypedKey to JSON. @@ -34998,22 +37103,20 @@ export namespace Enterprise { enum TeamUserType { USER = 0, ADMIN = 1, - ADMIN_ONLY = 2 + ADMIN_ONLY = 2, } /** Properties of a TeamsEnterpriseUsersAddResponse. */ interface ITeamsEnterpriseUsersAddResponse { - /** TeamsEnterpriseUsersAddResponse teams */ - teams?: (Enterprise.ITeamsEnterpriseUsersAddTeamResponse[]|null); + teams?: Enterprise.ITeamsEnterpriseUsersAddTeamResponse[] | null; /** TeamsEnterpriseUsersAddResponse revision */ - revision?: (number|Long|null); + revision?: number | Long | null; } /** Represents a TeamsEnterpriseUsersAddResponse. */ class TeamsEnterpriseUsersAddResponse implements ITeamsEnterpriseUsersAddResponse { - /** * Constructs a new TeamsEnterpriseUsersAddResponse. * @param [properties] Properties to set @@ -35024,14 +37127,16 @@ export namespace Enterprise { public teams: Enterprise.ITeamsEnterpriseUsersAddTeamResponse[]; /** TeamsEnterpriseUsersAddResponse revision. */ - public revision: (number|Long); + public revision: number | Long; /** * Creates a new TeamsEnterpriseUsersAddResponse instance using the specified properties. * @param [properties] Properties to set * @returns TeamsEnterpriseUsersAddResponse instance */ - public static create(properties?: Enterprise.ITeamsEnterpriseUsersAddResponse): Enterprise.TeamsEnterpriseUsersAddResponse; + public static create( + properties?: Enterprise.ITeamsEnterpriseUsersAddResponse + ): Enterprise.TeamsEnterpriseUsersAddResponse; /** * Encodes the specified TeamsEnterpriseUsersAddResponse message. Does not implicitly {@link Enterprise.TeamsEnterpriseUsersAddResponse.verify|verify} messages. @@ -35039,7 +37144,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Enterprise.ITeamsEnterpriseUsersAddResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Enterprise.ITeamsEnterpriseUsersAddResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified TeamsEnterpriseUsersAddResponse message, length delimited. Does not implicitly {@link Enterprise.TeamsEnterpriseUsersAddResponse.verify|verify} messages. @@ -35047,7 +37155,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Enterprise.ITeamsEnterpriseUsersAddResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Enterprise.ITeamsEnterpriseUsersAddResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a TeamsEnterpriseUsersAddResponse message from the specified reader or buffer. @@ -35057,7 +37168,10 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.TeamsEnterpriseUsersAddResponse; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Enterprise.TeamsEnterpriseUsersAddResponse; /** * Decodes a TeamsEnterpriseUsersAddResponse message from the specified reader or buffer, length delimited. @@ -35066,14 +37180,16 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.TeamsEnterpriseUsersAddResponse; + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array + ): Enterprise.TeamsEnterpriseUsersAddResponse; /** * Verifies a TeamsEnterpriseUsersAddResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a TeamsEnterpriseUsersAddResponse message from a plain object. Also converts values to their respective internal types. @@ -35088,7 +37204,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.TeamsEnterpriseUsersAddResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.TeamsEnterpriseUsersAddResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this TeamsEnterpriseUsersAddResponse to JSON. @@ -35106,29 +37225,27 @@ export namespace Enterprise { /** Properties of a TeamsEnterpriseUsersAddTeamResponse. */ interface ITeamsEnterpriseUsersAddTeamResponse { - /** TeamsEnterpriseUsersAddTeamResponse teamUid */ - teamUid?: (Uint8Array|null); + teamUid?: Uint8Array | null; /** TeamsEnterpriseUsersAddTeamResponse users */ - users?: (Enterprise.ITeamsEnterpriseUsersAddUserResponse[]|null); + users?: Enterprise.ITeamsEnterpriseUsersAddUserResponse[] | null; /** TeamsEnterpriseUsersAddTeamResponse success */ - success?: (boolean|null); + success?: boolean | null; /** TeamsEnterpriseUsersAddTeamResponse message */ - message?: (string|null); + message?: string | null; /** TeamsEnterpriseUsersAddTeamResponse resultCode */ - resultCode?: (string|null); + resultCode?: string | null; /** TeamsEnterpriseUsersAddTeamResponse additionalInfo */ - additionalInfo?: (string|null); + additionalInfo?: string | null; } /** Represents a TeamsEnterpriseUsersAddTeamResponse. */ class TeamsEnterpriseUsersAddTeamResponse implements ITeamsEnterpriseUsersAddTeamResponse { - /** * Constructs a new TeamsEnterpriseUsersAddTeamResponse. * @param [properties] Properties to set @@ -35158,7 +37275,9 @@ export namespace Enterprise { * @param [properties] Properties to set * @returns TeamsEnterpriseUsersAddTeamResponse instance */ - public static create(properties?: Enterprise.ITeamsEnterpriseUsersAddTeamResponse): Enterprise.TeamsEnterpriseUsersAddTeamResponse; + public static create( + properties?: Enterprise.ITeamsEnterpriseUsersAddTeamResponse + ): Enterprise.TeamsEnterpriseUsersAddTeamResponse; /** * Encodes the specified TeamsEnterpriseUsersAddTeamResponse message. Does not implicitly {@link Enterprise.TeamsEnterpriseUsersAddTeamResponse.verify|verify} messages. @@ -35166,7 +37285,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Enterprise.ITeamsEnterpriseUsersAddTeamResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Enterprise.ITeamsEnterpriseUsersAddTeamResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified TeamsEnterpriseUsersAddTeamResponse message, length delimited. Does not implicitly {@link Enterprise.TeamsEnterpriseUsersAddTeamResponse.verify|verify} messages. @@ -35174,7 +37296,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Enterprise.ITeamsEnterpriseUsersAddTeamResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Enterprise.ITeamsEnterpriseUsersAddTeamResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a TeamsEnterpriseUsersAddTeamResponse message from the specified reader or buffer. @@ -35184,7 +37309,10 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.TeamsEnterpriseUsersAddTeamResponse; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Enterprise.TeamsEnterpriseUsersAddTeamResponse; /** * Decodes a TeamsEnterpriseUsersAddTeamResponse message from the specified reader or buffer, length delimited. @@ -35193,14 +37321,16 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.TeamsEnterpriseUsersAddTeamResponse; + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array + ): Enterprise.TeamsEnterpriseUsersAddTeamResponse; /** * Verifies a TeamsEnterpriseUsersAddTeamResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a TeamsEnterpriseUsersAddTeamResponse message from a plain object. Also converts values to their respective internal types. @@ -35215,7 +37345,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.TeamsEnterpriseUsersAddTeamResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.TeamsEnterpriseUsersAddTeamResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this TeamsEnterpriseUsersAddTeamResponse to JSON. @@ -35233,29 +37366,27 @@ export namespace Enterprise { /** Properties of a TeamsEnterpriseUsersAddUserResponse. */ interface ITeamsEnterpriseUsersAddUserResponse { - /** TeamsEnterpriseUsersAddUserResponse enterpriseUserId */ - enterpriseUserId?: (number|Long|null); + enterpriseUserId?: number | Long | null; /** TeamsEnterpriseUsersAddUserResponse revision */ - revision?: (number|Long|null); + revision?: number | Long | null; /** TeamsEnterpriseUsersAddUserResponse success */ - success?: (boolean|null); + success?: boolean | null; /** TeamsEnterpriseUsersAddUserResponse message */ - message?: (string|null); + message?: string | null; /** TeamsEnterpriseUsersAddUserResponse resultCode */ - resultCode?: (string|null); + resultCode?: string | null; /** TeamsEnterpriseUsersAddUserResponse additionalInfo */ - additionalInfo?: (string|null); + additionalInfo?: string | null; } /** Represents a TeamsEnterpriseUsersAddUserResponse. */ class TeamsEnterpriseUsersAddUserResponse implements ITeamsEnterpriseUsersAddUserResponse { - /** * Constructs a new TeamsEnterpriseUsersAddUserResponse. * @param [properties] Properties to set @@ -35263,10 +37394,10 @@ export namespace Enterprise { constructor(properties?: Enterprise.ITeamsEnterpriseUsersAddUserResponse); /** TeamsEnterpriseUsersAddUserResponse enterpriseUserId. */ - public enterpriseUserId: (number|Long); + public enterpriseUserId: number | Long; /** TeamsEnterpriseUsersAddUserResponse revision. */ - public revision: (number|Long); + public revision: number | Long; /** TeamsEnterpriseUsersAddUserResponse success. */ public success: boolean; @@ -35285,7 +37416,9 @@ export namespace Enterprise { * @param [properties] Properties to set * @returns TeamsEnterpriseUsersAddUserResponse instance */ - public static create(properties?: Enterprise.ITeamsEnterpriseUsersAddUserResponse): Enterprise.TeamsEnterpriseUsersAddUserResponse; + public static create( + properties?: Enterprise.ITeamsEnterpriseUsersAddUserResponse + ): Enterprise.TeamsEnterpriseUsersAddUserResponse; /** * Encodes the specified TeamsEnterpriseUsersAddUserResponse message. Does not implicitly {@link Enterprise.TeamsEnterpriseUsersAddUserResponse.verify|verify} messages. @@ -35293,7 +37426,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Enterprise.ITeamsEnterpriseUsersAddUserResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Enterprise.ITeamsEnterpriseUsersAddUserResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified TeamsEnterpriseUsersAddUserResponse message, length delimited. Does not implicitly {@link Enterprise.TeamsEnterpriseUsersAddUserResponse.verify|verify} messages. @@ -35301,7 +37437,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Enterprise.ITeamsEnterpriseUsersAddUserResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Enterprise.ITeamsEnterpriseUsersAddUserResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a TeamsEnterpriseUsersAddUserResponse message from the specified reader or buffer. @@ -35311,7 +37450,10 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.TeamsEnterpriseUsersAddUserResponse; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Enterprise.TeamsEnterpriseUsersAddUserResponse; /** * Decodes a TeamsEnterpriseUsersAddUserResponse message from the specified reader or buffer, length delimited. @@ -35320,14 +37462,16 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.TeamsEnterpriseUsersAddUserResponse; + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array + ): Enterprise.TeamsEnterpriseUsersAddUserResponse; /** * Verifies a TeamsEnterpriseUsersAddUserResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a TeamsEnterpriseUsersAddUserResponse message from a plain object. Also converts values to their respective internal types. @@ -35342,7 +37486,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.TeamsEnterpriseUsersAddUserResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.TeamsEnterpriseUsersAddUserResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this TeamsEnterpriseUsersAddUserResponse to JSON. @@ -35360,17 +37507,15 @@ export namespace Enterprise { /** Properties of a TeamEnterpriseUserRemove. */ interface ITeamEnterpriseUserRemove { - /** TeamEnterpriseUserRemove teamUid */ - teamUid?: (Uint8Array|null); + teamUid?: Uint8Array | null; /** TeamEnterpriseUserRemove enterpriseUserId */ - enterpriseUserId?: (number|Long|null); + enterpriseUserId?: number | Long | null; } /** Represents a TeamEnterpriseUserRemove. */ class TeamEnterpriseUserRemove implements ITeamEnterpriseUserRemove { - /** * Constructs a new TeamEnterpriseUserRemove. * @param [properties] Properties to set @@ -35381,7 +37526,7 @@ export namespace Enterprise { public teamUid: Uint8Array; /** TeamEnterpriseUserRemove enterpriseUserId. */ - public enterpriseUserId: (number|Long); + public enterpriseUserId: number | Long; /** * Creates a new TeamEnterpriseUserRemove instance using the specified properties. @@ -35396,7 +37541,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Enterprise.ITeamEnterpriseUserRemove, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Enterprise.ITeamEnterpriseUserRemove, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified TeamEnterpriseUserRemove message, length delimited. Does not implicitly {@link Enterprise.TeamEnterpriseUserRemove.verify|verify} messages. @@ -35404,7 +37552,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Enterprise.ITeamEnterpriseUserRemove, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Enterprise.ITeamEnterpriseUserRemove, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a TeamEnterpriseUserRemove message from the specified reader or buffer. @@ -35414,7 +37565,10 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.TeamEnterpriseUserRemove; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Enterprise.TeamEnterpriseUserRemove; /** * Decodes a TeamEnterpriseUserRemove message from the specified reader or buffer, length delimited. @@ -35423,14 +37577,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.TeamEnterpriseUserRemove; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.TeamEnterpriseUserRemove; /** * Verifies a TeamEnterpriseUserRemove message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a TeamEnterpriseUserRemove message from a plain object. Also converts values to their respective internal types. @@ -35445,7 +37599,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.TeamEnterpriseUserRemove, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.TeamEnterpriseUserRemove, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this TeamEnterpriseUserRemove to JSON. @@ -35463,14 +37620,12 @@ export namespace Enterprise { /** Properties of a TeamEnterpriseUserRemovesRequest. */ interface ITeamEnterpriseUserRemovesRequest { - /** TeamEnterpriseUserRemovesRequest teamEnterpriseUserRemove */ - teamEnterpriseUserRemove?: (Enterprise.ITeamEnterpriseUserRemove[]|null); + teamEnterpriseUserRemove?: Enterprise.ITeamEnterpriseUserRemove[] | null; } /** Represents a TeamEnterpriseUserRemovesRequest. */ class TeamEnterpriseUserRemovesRequest implements ITeamEnterpriseUserRemovesRequest { - /** * Constructs a new TeamEnterpriseUserRemovesRequest. * @param [properties] Properties to set @@ -35485,7 +37640,9 @@ export namespace Enterprise { * @param [properties] Properties to set * @returns TeamEnterpriseUserRemovesRequest instance */ - public static create(properties?: Enterprise.ITeamEnterpriseUserRemovesRequest): Enterprise.TeamEnterpriseUserRemovesRequest; + public static create( + properties?: Enterprise.ITeamEnterpriseUserRemovesRequest + ): Enterprise.TeamEnterpriseUserRemovesRequest; /** * Encodes the specified TeamEnterpriseUserRemovesRequest message. Does not implicitly {@link Enterprise.TeamEnterpriseUserRemovesRequest.verify|verify} messages. @@ -35493,7 +37650,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Enterprise.ITeamEnterpriseUserRemovesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Enterprise.ITeamEnterpriseUserRemovesRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified TeamEnterpriseUserRemovesRequest message, length delimited. Does not implicitly {@link Enterprise.TeamEnterpriseUserRemovesRequest.verify|verify} messages. @@ -35501,7 +37661,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Enterprise.ITeamEnterpriseUserRemovesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Enterprise.ITeamEnterpriseUserRemovesRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a TeamEnterpriseUserRemovesRequest message from the specified reader or buffer. @@ -35511,7 +37674,10 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.TeamEnterpriseUserRemovesRequest; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Enterprise.TeamEnterpriseUserRemovesRequest; /** * Decodes a TeamEnterpriseUserRemovesRequest message from the specified reader or buffer, length delimited. @@ -35520,14 +37686,16 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.TeamEnterpriseUserRemovesRequest; + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array + ): Enterprise.TeamEnterpriseUserRemovesRequest; /** * Verifies a TeamEnterpriseUserRemovesRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a TeamEnterpriseUserRemovesRequest message from a plain object. Also converts values to their respective internal types. @@ -35542,7 +37710,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.TeamEnterpriseUserRemovesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.TeamEnterpriseUserRemovesRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this TeamEnterpriseUserRemovesRequest to JSON. @@ -35560,14 +37731,12 @@ export namespace Enterprise { /** Properties of a TeamEnterpriseUserRemovesResponse. */ interface ITeamEnterpriseUserRemovesResponse { - /** TeamEnterpriseUserRemovesResponse teamEnterpriseUserRemoveResponse */ - teamEnterpriseUserRemoveResponse?: (Enterprise.ITeamEnterpriseUserRemoveResponse[]|null); + teamEnterpriseUserRemoveResponse?: Enterprise.ITeamEnterpriseUserRemoveResponse[] | null; } /** Represents a TeamEnterpriseUserRemovesResponse. */ class TeamEnterpriseUserRemovesResponse implements ITeamEnterpriseUserRemovesResponse { - /** * Constructs a new TeamEnterpriseUserRemovesResponse. * @param [properties] Properties to set @@ -35582,7 +37751,9 @@ export namespace Enterprise { * @param [properties] Properties to set * @returns TeamEnterpriseUserRemovesResponse instance */ - public static create(properties?: Enterprise.ITeamEnterpriseUserRemovesResponse): Enterprise.TeamEnterpriseUserRemovesResponse; + public static create( + properties?: Enterprise.ITeamEnterpriseUserRemovesResponse + ): Enterprise.TeamEnterpriseUserRemovesResponse; /** * Encodes the specified TeamEnterpriseUserRemovesResponse message. Does not implicitly {@link Enterprise.TeamEnterpriseUserRemovesResponse.verify|verify} messages. @@ -35590,7 +37761,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Enterprise.ITeamEnterpriseUserRemovesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Enterprise.ITeamEnterpriseUserRemovesResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified TeamEnterpriseUserRemovesResponse message, length delimited. Does not implicitly {@link Enterprise.TeamEnterpriseUserRemovesResponse.verify|verify} messages. @@ -35598,7 +37772,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Enterprise.ITeamEnterpriseUserRemovesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Enterprise.ITeamEnterpriseUserRemovesResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a TeamEnterpriseUserRemovesResponse message from the specified reader or buffer. @@ -35608,7 +37785,10 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.TeamEnterpriseUserRemovesResponse; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Enterprise.TeamEnterpriseUserRemovesResponse; /** * Decodes a TeamEnterpriseUserRemovesResponse message from the specified reader or buffer, length delimited. @@ -35617,14 +37797,16 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.TeamEnterpriseUserRemovesResponse; + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array + ): Enterprise.TeamEnterpriseUserRemovesResponse; /** * Verifies a TeamEnterpriseUserRemovesResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a TeamEnterpriseUserRemovesResponse message from a plain object. Also converts values to their respective internal types. @@ -35639,7 +37821,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.TeamEnterpriseUserRemovesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.TeamEnterpriseUserRemovesResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this TeamEnterpriseUserRemovesResponse to JSON. @@ -35657,26 +37842,24 @@ export namespace Enterprise { /** Properties of a TeamEnterpriseUserRemoveResponse. */ interface ITeamEnterpriseUserRemoveResponse { - /** TeamEnterpriseUserRemoveResponse teamEnterpriseUserRemove */ - teamEnterpriseUserRemove?: (Enterprise.ITeamEnterpriseUserRemove|null); + teamEnterpriseUserRemove?: Enterprise.ITeamEnterpriseUserRemove | null; /** TeamEnterpriseUserRemoveResponse success */ - success?: (boolean|null); + success?: boolean | null; /** TeamEnterpriseUserRemoveResponse resultCode */ - resultCode?: (string|null); + resultCode?: string | null; /** TeamEnterpriseUserRemoveResponse message */ - message?: (string|null); + message?: string | null; /** TeamEnterpriseUserRemoveResponse additionalInfo */ - additionalInfo?: (string|null); + additionalInfo?: string | null; } /** Represents a TeamEnterpriseUserRemoveResponse. */ class TeamEnterpriseUserRemoveResponse implements ITeamEnterpriseUserRemoveResponse { - /** * Constructs a new TeamEnterpriseUserRemoveResponse. * @param [properties] Properties to set @@ -35684,7 +37867,7 @@ export namespace Enterprise { constructor(properties?: Enterprise.ITeamEnterpriseUserRemoveResponse); /** TeamEnterpriseUserRemoveResponse teamEnterpriseUserRemove. */ - public teamEnterpriseUserRemove?: (Enterprise.ITeamEnterpriseUserRemove|null); + public teamEnterpriseUserRemove?: Enterprise.ITeamEnterpriseUserRemove | null; /** TeamEnterpriseUserRemoveResponse success. */ public success: boolean; @@ -35703,7 +37886,9 @@ export namespace Enterprise { * @param [properties] Properties to set * @returns TeamEnterpriseUserRemoveResponse instance */ - public static create(properties?: Enterprise.ITeamEnterpriseUserRemoveResponse): Enterprise.TeamEnterpriseUserRemoveResponse; + public static create( + properties?: Enterprise.ITeamEnterpriseUserRemoveResponse + ): Enterprise.TeamEnterpriseUserRemoveResponse; /** * Encodes the specified TeamEnterpriseUserRemoveResponse message. Does not implicitly {@link Enterprise.TeamEnterpriseUserRemoveResponse.verify|verify} messages. @@ -35711,7 +37896,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Enterprise.ITeamEnterpriseUserRemoveResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Enterprise.ITeamEnterpriseUserRemoveResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified TeamEnterpriseUserRemoveResponse message, length delimited. Does not implicitly {@link Enterprise.TeamEnterpriseUserRemoveResponse.verify|verify} messages. @@ -35719,7 +37907,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Enterprise.ITeamEnterpriseUserRemoveResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Enterprise.ITeamEnterpriseUserRemoveResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a TeamEnterpriseUserRemoveResponse message from the specified reader or buffer. @@ -35729,7 +37920,10 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.TeamEnterpriseUserRemoveResponse; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Enterprise.TeamEnterpriseUserRemoveResponse; /** * Decodes a TeamEnterpriseUserRemoveResponse message from the specified reader or buffer, length delimited. @@ -35738,14 +37932,16 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.TeamEnterpriseUserRemoveResponse; + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array + ): Enterprise.TeamEnterpriseUserRemoveResponse; /** * Verifies a TeamEnterpriseUserRemoveResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a TeamEnterpriseUserRemoveResponse message from a plain object. Also converts values to their respective internal types. @@ -35760,7 +37956,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.TeamEnterpriseUserRemoveResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.TeamEnterpriseUserRemoveResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this TeamEnterpriseUserRemoveResponse to JSON. @@ -35778,23 +37977,21 @@ export namespace Enterprise { /** Properties of a DomainAlias. */ interface IDomainAlias { - /** DomainAlias domain */ - domain?: (string|null); + domain?: string | null; /** DomainAlias alias */ - alias?: (string|null); + alias?: string | null; /** DomainAlias status */ - status?: (number|null); + status?: number | null; /** DomainAlias message */ - message?: (string|null); + message?: string | null; } /** Represents a DomainAlias. */ class DomainAlias implements IDomainAlias { - /** * Constructs a new DomainAlias. * @param [properties] Properties to set @@ -35844,7 +38041,7 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.DomainAlias; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Enterprise.DomainAlias; /** * Decodes a DomainAlias message from the specified reader or buffer, length delimited. @@ -35853,14 +38050,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.DomainAlias; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.DomainAlias; /** * Verifies a DomainAlias message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a DomainAlias message from a plain object. Also converts values to their respective internal types. @@ -35875,7 +38072,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.DomainAlias, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.DomainAlias, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this DomainAlias to JSON. @@ -35893,14 +38093,12 @@ export namespace Enterprise { /** Properties of a DomainAliasRequest. */ interface IDomainAliasRequest { - /** DomainAliasRequest domainAlias */ - domainAlias?: (Enterprise.IDomainAlias[]|null); + domainAlias?: Enterprise.IDomainAlias[] | null; } /** Represents a DomainAliasRequest. */ class DomainAliasRequest implements IDomainAliasRequest { - /** * Constructs a new DomainAliasRequest. * @param [properties] Properties to set @@ -35931,7 +38129,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Enterprise.IDomainAliasRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Enterprise.IDomainAliasRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a DomainAliasRequest message from the specified reader or buffer. @@ -35941,7 +38142,7 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.DomainAliasRequest; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Enterprise.DomainAliasRequest; /** * Decodes a DomainAliasRequest message from the specified reader or buffer, length delimited. @@ -35950,14 +38151,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.DomainAliasRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.DomainAliasRequest; /** * Verifies a DomainAliasRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a DomainAliasRequest message from a plain object. Also converts values to their respective internal types. @@ -35972,7 +38173,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.DomainAliasRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.DomainAliasRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this DomainAliasRequest to JSON. @@ -35990,14 +38194,12 @@ export namespace Enterprise { /** Properties of a DomainAliasResponse. */ interface IDomainAliasResponse { - /** DomainAliasResponse domainAlias */ - domainAlias?: (Enterprise.IDomainAlias[]|null); + domainAlias?: Enterprise.IDomainAlias[] | null; } /** Represents a DomainAliasResponse. */ class DomainAliasResponse implements IDomainAliasResponse { - /** * Constructs a new DomainAliasResponse. * @param [properties] Properties to set @@ -36028,7 +38230,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Enterprise.IDomainAliasResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Enterprise.IDomainAliasResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a DomainAliasResponse message from the specified reader or buffer. @@ -36038,7 +38243,7 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.DomainAliasResponse; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Enterprise.DomainAliasResponse; /** * Decodes a DomainAliasResponse message from the specified reader or buffer, length delimited. @@ -36047,14 +38252,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.DomainAliasResponse; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.DomainAliasResponse; /** * Verifies a DomainAliasResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a DomainAliasResponse message from a plain object. Also converts values to their respective internal types. @@ -36069,7 +38274,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.DomainAliasResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.DomainAliasResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this DomainAliasResponse to JSON. @@ -36087,17 +38295,15 @@ export namespace Enterprise { /** Properties of an EnterpriseUsersProvisionRequest. */ interface IEnterpriseUsersProvisionRequest { - /** EnterpriseUsersProvisionRequest users */ - users?: (Enterprise.IEnterpriseUsersProvision[]|null); + users?: Enterprise.IEnterpriseUsersProvision[] | null; /** EnterpriseUsersProvisionRequest clientVersion */ - clientVersion?: (string|null); + clientVersion?: string | null; } /** Represents an EnterpriseUsersProvisionRequest. */ class EnterpriseUsersProvisionRequest implements IEnterpriseUsersProvisionRequest { - /** * Constructs a new EnterpriseUsersProvisionRequest. * @param [properties] Properties to set @@ -36115,7 +38321,9 @@ export namespace Enterprise { * @param [properties] Properties to set * @returns EnterpriseUsersProvisionRequest instance */ - public static create(properties?: Enterprise.IEnterpriseUsersProvisionRequest): Enterprise.EnterpriseUsersProvisionRequest; + public static create( + properties?: Enterprise.IEnterpriseUsersProvisionRequest + ): Enterprise.EnterpriseUsersProvisionRequest; /** * Encodes the specified EnterpriseUsersProvisionRequest message. Does not implicitly {@link Enterprise.EnterpriseUsersProvisionRequest.verify|verify} messages. @@ -36123,7 +38331,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Enterprise.IEnterpriseUsersProvisionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Enterprise.IEnterpriseUsersProvisionRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified EnterpriseUsersProvisionRequest message, length delimited. Does not implicitly {@link Enterprise.EnterpriseUsersProvisionRequest.verify|verify} messages. @@ -36131,7 +38342,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Enterprise.IEnterpriseUsersProvisionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Enterprise.IEnterpriseUsersProvisionRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes an EnterpriseUsersProvisionRequest message from the specified reader or buffer. @@ -36141,7 +38355,10 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.EnterpriseUsersProvisionRequest; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Enterprise.EnterpriseUsersProvisionRequest; /** * Decodes an EnterpriseUsersProvisionRequest message from the specified reader or buffer, length delimited. @@ -36150,14 +38367,16 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.EnterpriseUsersProvisionRequest; + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array + ): Enterprise.EnterpriseUsersProvisionRequest; /** * Verifies an EnterpriseUsersProvisionRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an EnterpriseUsersProvisionRequest message from a plain object. Also converts values to their respective internal types. @@ -36172,7 +38391,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.EnterpriseUsersProvisionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.EnterpriseUsersProvisionRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this EnterpriseUsersProvisionRequest to JSON. @@ -36190,59 +38412,57 @@ export namespace Enterprise { /** Properties of an EnterpriseUsersProvision. */ interface IEnterpriseUsersProvision { - /** EnterpriseUsersProvision enterpriseUserId */ - enterpriseUserId?: (number|Long|null); + enterpriseUserId?: number | Long | null; /** EnterpriseUsersProvision username */ - username?: (string|null); + username?: string | null; /** EnterpriseUsersProvision nodeId */ - nodeId?: (number|Long|null); + nodeId?: number | Long | null; /** EnterpriseUsersProvision encryptedData */ - encryptedData?: (string|null); + encryptedData?: string | null; /** EnterpriseUsersProvision keyType */ - keyType?: (Enterprise.EncryptedKeyType|null); + keyType?: Enterprise.EncryptedKeyType | null; /** EnterpriseUsersProvision fullName */ - fullName?: (string|null); + fullName?: string | null; /** EnterpriseUsersProvision jobTitle */ - jobTitle?: (string|null); + jobTitle?: string | null; /** EnterpriseUsersProvision enterpriseUsersDataKey */ - enterpriseUsersDataKey?: (Uint8Array|null); + enterpriseUsersDataKey?: Uint8Array | null; /** EnterpriseUsersProvision authVerifier */ - authVerifier?: (Uint8Array|null); + authVerifier?: Uint8Array | null; /** EnterpriseUsersProvision encryptionParams */ - encryptionParams?: (Uint8Array|null); + encryptionParams?: Uint8Array | null; /** EnterpriseUsersProvision rsaPublicKey */ - rsaPublicKey?: (Uint8Array|null); + rsaPublicKey?: Uint8Array | null; /** EnterpriseUsersProvision rsaEncryptedPrivateKey */ - rsaEncryptedPrivateKey?: (Uint8Array|null); + rsaEncryptedPrivateKey?: Uint8Array | null; /** EnterpriseUsersProvision eccPublicKey */ - eccPublicKey?: (Uint8Array|null); + eccPublicKey?: Uint8Array | null; /** EnterpriseUsersProvision eccEncryptedPrivateKey */ - eccEncryptedPrivateKey?: (Uint8Array|null); + eccEncryptedPrivateKey?: Uint8Array | null; /** EnterpriseUsersProvision encryptedDeviceToken */ - encryptedDeviceToken?: (Uint8Array|null); + encryptedDeviceToken?: Uint8Array | null; /** EnterpriseUsersProvision encryptedClientKey */ - encryptedClientKey?: (Uint8Array|null); + encryptedClientKey?: Uint8Array | null; } /** Represents an EnterpriseUsersProvision. */ class EnterpriseUsersProvision implements IEnterpriseUsersProvision { - /** * Constructs a new EnterpriseUsersProvision. * @param [properties] Properties to set @@ -36250,13 +38470,13 @@ export namespace Enterprise { constructor(properties?: Enterprise.IEnterpriseUsersProvision); /** EnterpriseUsersProvision enterpriseUserId. */ - public enterpriseUserId: (number|Long); + public enterpriseUserId: number | Long; /** EnterpriseUsersProvision username. */ public username: string; /** EnterpriseUsersProvision nodeId. */ - public nodeId: (number|Long); + public nodeId: number | Long; /** EnterpriseUsersProvision encryptedData. */ public encryptedData: string; @@ -36310,7 +38530,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Enterprise.IEnterpriseUsersProvision, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Enterprise.IEnterpriseUsersProvision, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified EnterpriseUsersProvision message, length delimited. Does not implicitly {@link Enterprise.EnterpriseUsersProvision.verify|verify} messages. @@ -36318,7 +38541,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Enterprise.IEnterpriseUsersProvision, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Enterprise.IEnterpriseUsersProvision, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes an EnterpriseUsersProvision message from the specified reader or buffer. @@ -36328,7 +38554,10 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.EnterpriseUsersProvision; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Enterprise.EnterpriseUsersProvision; /** * Decodes an EnterpriseUsersProvision message from the specified reader or buffer, length delimited. @@ -36337,14 +38566,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.EnterpriseUsersProvision; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.EnterpriseUsersProvision; /** * Verifies an EnterpriseUsersProvision message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an EnterpriseUsersProvision message from a plain object. Also converts values to their respective internal types. @@ -36359,7 +38588,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.EnterpriseUsersProvision, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.EnterpriseUsersProvision, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this EnterpriseUsersProvision to JSON. @@ -36377,14 +38609,12 @@ export namespace Enterprise { /** Properties of an EnterpriseUsersProvisionResponse. */ interface IEnterpriseUsersProvisionResponse { - /** EnterpriseUsersProvisionResponse results */ - results?: (Enterprise.IEnterpriseUsersProvisionResult[]|null); + results?: Enterprise.IEnterpriseUsersProvisionResult[] | null; } /** Represents an EnterpriseUsersProvisionResponse. */ class EnterpriseUsersProvisionResponse implements IEnterpriseUsersProvisionResponse { - /** * Constructs a new EnterpriseUsersProvisionResponse. * @param [properties] Properties to set @@ -36399,7 +38629,9 @@ export namespace Enterprise { * @param [properties] Properties to set * @returns EnterpriseUsersProvisionResponse instance */ - public static create(properties?: Enterprise.IEnterpriseUsersProvisionResponse): Enterprise.EnterpriseUsersProvisionResponse; + public static create( + properties?: Enterprise.IEnterpriseUsersProvisionResponse + ): Enterprise.EnterpriseUsersProvisionResponse; /** * Encodes the specified EnterpriseUsersProvisionResponse message. Does not implicitly {@link Enterprise.EnterpriseUsersProvisionResponse.verify|verify} messages. @@ -36407,7 +38639,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Enterprise.IEnterpriseUsersProvisionResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Enterprise.IEnterpriseUsersProvisionResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified EnterpriseUsersProvisionResponse message, length delimited. Does not implicitly {@link Enterprise.EnterpriseUsersProvisionResponse.verify|verify} messages. @@ -36415,7 +38650,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Enterprise.IEnterpriseUsersProvisionResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Enterprise.IEnterpriseUsersProvisionResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes an EnterpriseUsersProvisionResponse message from the specified reader or buffer. @@ -36425,7 +38663,10 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.EnterpriseUsersProvisionResponse; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Enterprise.EnterpriseUsersProvisionResponse; /** * Decodes an EnterpriseUsersProvisionResponse message from the specified reader or buffer, length delimited. @@ -36434,14 +38675,16 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.EnterpriseUsersProvisionResponse; + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array + ): Enterprise.EnterpriseUsersProvisionResponse; /** * Verifies an EnterpriseUsersProvisionResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an EnterpriseUsersProvisionResponse message from a plain object. Also converts values to their respective internal types. @@ -36456,7 +38699,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.EnterpriseUsersProvisionResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.EnterpriseUsersProvisionResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this EnterpriseUsersProvisionResponse to JSON. @@ -36474,23 +38720,21 @@ export namespace Enterprise { /** Properties of an EnterpriseUsersProvisionResult. */ interface IEnterpriseUsersProvisionResult { - /** EnterpriseUsersProvisionResult enterpriseUserId */ - enterpriseUserId?: (number|Long|null); + enterpriseUserId?: number | Long | null; /** EnterpriseUsersProvisionResult code */ - code?: (string|null); + code?: string | null; /** EnterpriseUsersProvisionResult message */ - message?: (string|null); + message?: string | null; /** EnterpriseUsersProvisionResult additionalInfo */ - additionalInfo?: (string|null); + additionalInfo?: string | null; } /** Represents an EnterpriseUsersProvisionResult. */ class EnterpriseUsersProvisionResult implements IEnterpriseUsersProvisionResult { - /** * Constructs a new EnterpriseUsersProvisionResult. * @param [properties] Properties to set @@ -36498,7 +38742,7 @@ export namespace Enterprise { constructor(properties?: Enterprise.IEnterpriseUsersProvisionResult); /** EnterpriseUsersProvisionResult enterpriseUserId. */ - public enterpriseUserId: (number|Long); + public enterpriseUserId: number | Long; /** EnterpriseUsersProvisionResult code. */ public code: string; @@ -36514,7 +38758,9 @@ export namespace Enterprise { * @param [properties] Properties to set * @returns EnterpriseUsersProvisionResult instance */ - public static create(properties?: Enterprise.IEnterpriseUsersProvisionResult): Enterprise.EnterpriseUsersProvisionResult; + public static create( + properties?: Enterprise.IEnterpriseUsersProvisionResult + ): Enterprise.EnterpriseUsersProvisionResult; /** * Encodes the specified EnterpriseUsersProvisionResult message. Does not implicitly {@link Enterprise.EnterpriseUsersProvisionResult.verify|verify} messages. @@ -36522,7 +38768,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Enterprise.IEnterpriseUsersProvisionResult, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Enterprise.IEnterpriseUsersProvisionResult, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified EnterpriseUsersProvisionResult message, length delimited. Does not implicitly {@link Enterprise.EnterpriseUsersProvisionResult.verify|verify} messages. @@ -36530,7 +38779,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Enterprise.IEnterpriseUsersProvisionResult, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Enterprise.IEnterpriseUsersProvisionResult, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes an EnterpriseUsersProvisionResult message from the specified reader or buffer. @@ -36540,7 +38792,10 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.EnterpriseUsersProvisionResult; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Enterprise.EnterpriseUsersProvisionResult; /** * Decodes an EnterpriseUsersProvisionResult message from the specified reader or buffer, length delimited. @@ -36549,14 +38804,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.EnterpriseUsersProvisionResult; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.EnterpriseUsersProvisionResult; /** * Verifies an EnterpriseUsersProvisionResult message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an EnterpriseUsersProvisionResult message from a plain object. Also converts values to their respective internal types. @@ -36571,7 +38826,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.EnterpriseUsersProvisionResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.EnterpriseUsersProvisionResult, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this EnterpriseUsersProvisionResult to JSON. @@ -36589,17 +38847,15 @@ export namespace Enterprise { /** Properties of an EnterpriseUsersAddRequest. */ interface IEnterpriseUsersAddRequest { - /** EnterpriseUsersAddRequest users */ - users?: (Enterprise.IEnterpriseUsersAdd[]|null); + users?: Enterprise.IEnterpriseUsersAdd[] | null; /** EnterpriseUsersAddRequest clientVersion */ - clientVersion?: (string|null); + clientVersion?: string | null; } /** Represents an EnterpriseUsersAddRequest. */ class EnterpriseUsersAddRequest implements IEnterpriseUsersAddRequest { - /** * Constructs a new EnterpriseUsersAddRequest. * @param [properties] Properties to set @@ -36625,7 +38881,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Enterprise.IEnterpriseUsersAddRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Enterprise.IEnterpriseUsersAddRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified EnterpriseUsersAddRequest message, length delimited. Does not implicitly {@link Enterprise.EnterpriseUsersAddRequest.verify|verify} messages. @@ -36633,7 +38892,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Enterprise.IEnterpriseUsersAddRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Enterprise.IEnterpriseUsersAddRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes an EnterpriseUsersAddRequest message from the specified reader or buffer. @@ -36643,7 +38905,10 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.EnterpriseUsersAddRequest; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Enterprise.EnterpriseUsersAddRequest; /** * Decodes an EnterpriseUsersAddRequest message from the specified reader or buffer, length delimited. @@ -36652,14 +38917,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.EnterpriseUsersAddRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.EnterpriseUsersAddRequest; /** * Verifies an EnterpriseUsersAddRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an EnterpriseUsersAddRequest message from a plain object. Also converts values to their respective internal types. @@ -36674,7 +38939,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.EnterpriseUsersAddRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.EnterpriseUsersAddRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this EnterpriseUsersAddRequest to JSON. @@ -36692,44 +38960,42 @@ export namespace Enterprise { /** Properties of an EnterpriseUsersAdd. */ interface IEnterpriseUsersAdd { - /** EnterpriseUsersAdd enterpriseUserId */ - enterpriseUserId?: (number|Long|null); + enterpriseUserId?: number | Long | null; /** EnterpriseUsersAdd username */ - username?: (string|null); + username?: string | null; /** EnterpriseUsersAdd nodeId */ - nodeId?: (number|Long|null); + nodeId?: number | Long | null; /** EnterpriseUsersAdd encryptedData */ - encryptedData?: (string|null); + encryptedData?: string | null; /** EnterpriseUsersAdd keyType */ - keyType?: (Enterprise.EncryptedKeyType|null); + keyType?: Enterprise.EncryptedKeyType | null; /** EnterpriseUsersAdd fullName */ - fullName?: (string|null); + fullName?: string | null; /** EnterpriseUsersAdd jobTitle */ - jobTitle?: (string|null); + jobTitle?: string | null; /** EnterpriseUsersAdd suppressEmailInvite */ - suppressEmailInvite?: (boolean|null); + suppressEmailInvite?: boolean | null; /** EnterpriseUsersAdd inviteeLocale */ - inviteeLocale?: (string|null); + inviteeLocale?: string | null; /** EnterpriseUsersAdd move */ - move?: (boolean|null); + move?: boolean | null; /** EnterpriseUsersAdd roleId */ - roleId?: (number|Long|null); + roleId?: number | Long | null; } /** Represents an EnterpriseUsersAdd. */ class EnterpriseUsersAdd implements IEnterpriseUsersAdd { - /** * Constructs a new EnterpriseUsersAdd. * @param [properties] Properties to set @@ -36737,13 +39003,13 @@ export namespace Enterprise { constructor(properties?: Enterprise.IEnterpriseUsersAdd); /** EnterpriseUsersAdd enterpriseUserId. */ - public enterpriseUserId: (number|Long); + public enterpriseUserId: number | Long; /** EnterpriseUsersAdd username. */ public username: string; /** EnterpriseUsersAdd nodeId. */ - public nodeId: (number|Long); + public nodeId: number | Long; /** EnterpriseUsersAdd encryptedData. */ public encryptedData: string; @@ -36767,7 +39033,7 @@ export namespace Enterprise { public move: boolean; /** EnterpriseUsersAdd roleId. */ - public roleId: (number|Long); + public roleId: number | Long; /** * Creates a new EnterpriseUsersAdd instance using the specified properties. @@ -36790,7 +39056,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Enterprise.IEnterpriseUsersAdd, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Enterprise.IEnterpriseUsersAdd, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes an EnterpriseUsersAdd message from the specified reader or buffer. @@ -36800,7 +39069,7 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.EnterpriseUsersAdd; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Enterprise.EnterpriseUsersAdd; /** * Decodes an EnterpriseUsersAdd message from the specified reader or buffer, length delimited. @@ -36809,14 +39078,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.EnterpriseUsersAdd; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.EnterpriseUsersAdd; /** * Verifies an EnterpriseUsersAdd message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an EnterpriseUsersAdd message from a plain object. Also converts values to their respective internal types. @@ -36831,7 +39100,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.EnterpriseUsersAdd, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.EnterpriseUsersAdd, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this EnterpriseUsersAdd to JSON. @@ -36849,26 +39121,24 @@ export namespace Enterprise { /** Properties of an EnterpriseUsersAddResponse. */ interface IEnterpriseUsersAddResponse { - /** EnterpriseUsersAddResponse results */ - results?: (Enterprise.IEnterpriseUsersAddResult[]|null); + results?: Enterprise.IEnterpriseUsersAddResult[] | null; /** EnterpriseUsersAddResponse success */ - success?: (boolean|null); + success?: boolean | null; /** EnterpriseUsersAddResponse code */ - code?: (string|null); + code?: string | null; /** EnterpriseUsersAddResponse message */ - message?: (string|null); + message?: string | null; /** EnterpriseUsersAddResponse additionalInfo */ - additionalInfo?: (string|null); + additionalInfo?: string | null; } /** Represents an EnterpriseUsersAddResponse. */ class EnterpriseUsersAddResponse implements IEnterpriseUsersAddResponse { - /** * Constructs a new EnterpriseUsersAddResponse. * @param [properties] Properties to set @@ -36895,7 +39165,9 @@ export namespace Enterprise { * @param [properties] Properties to set * @returns EnterpriseUsersAddResponse instance */ - public static create(properties?: Enterprise.IEnterpriseUsersAddResponse): Enterprise.EnterpriseUsersAddResponse; + public static create( + properties?: Enterprise.IEnterpriseUsersAddResponse + ): Enterprise.EnterpriseUsersAddResponse; /** * Encodes the specified EnterpriseUsersAddResponse message. Does not implicitly {@link Enterprise.EnterpriseUsersAddResponse.verify|verify} messages. @@ -36903,7 +39175,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Enterprise.IEnterpriseUsersAddResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Enterprise.IEnterpriseUsersAddResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified EnterpriseUsersAddResponse message, length delimited. Does not implicitly {@link Enterprise.EnterpriseUsersAddResponse.verify|verify} messages. @@ -36911,7 +39186,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Enterprise.IEnterpriseUsersAddResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Enterprise.IEnterpriseUsersAddResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes an EnterpriseUsersAddResponse message from the specified reader or buffer. @@ -36921,7 +39199,10 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.EnterpriseUsersAddResponse; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Enterprise.EnterpriseUsersAddResponse; /** * Decodes an EnterpriseUsersAddResponse message from the specified reader or buffer, length delimited. @@ -36930,14 +39211,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.EnterpriseUsersAddResponse; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.EnterpriseUsersAddResponse; /** * Verifies an EnterpriseUsersAddResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an EnterpriseUsersAddResponse message from a plain object. Also converts values to their respective internal types. @@ -36952,7 +39233,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.EnterpriseUsersAddResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.EnterpriseUsersAddResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this EnterpriseUsersAddResponse to JSON. @@ -36970,29 +39254,27 @@ export namespace Enterprise { /** Properties of an EnterpriseUsersAddResult. */ interface IEnterpriseUsersAddResult { - /** EnterpriseUsersAddResult enterpriseUserId */ - enterpriseUserId?: (number|Long|null); + enterpriseUserId?: number | Long | null; /** EnterpriseUsersAddResult success */ - success?: (boolean|null); + success?: boolean | null; /** EnterpriseUsersAddResult verificationCode */ - verificationCode?: (string|null); + verificationCode?: string | null; /** EnterpriseUsersAddResult code */ - code?: (string|null); + code?: string | null; /** EnterpriseUsersAddResult message */ - message?: (string|null); + message?: string | null; /** EnterpriseUsersAddResult additionalInfo */ - additionalInfo?: (string|null); + additionalInfo?: string | null; } /** Represents an EnterpriseUsersAddResult. */ class EnterpriseUsersAddResult implements IEnterpriseUsersAddResult { - /** * Constructs a new EnterpriseUsersAddResult. * @param [properties] Properties to set @@ -37000,7 +39282,7 @@ export namespace Enterprise { constructor(properties?: Enterprise.IEnterpriseUsersAddResult); /** EnterpriseUsersAddResult enterpriseUserId. */ - public enterpriseUserId: (number|Long); + public enterpriseUserId: number | Long; /** EnterpriseUsersAddResult success. */ public success: boolean; @@ -37030,7 +39312,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Enterprise.IEnterpriseUsersAddResult, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Enterprise.IEnterpriseUsersAddResult, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified EnterpriseUsersAddResult message, length delimited. Does not implicitly {@link Enterprise.EnterpriseUsersAddResult.verify|verify} messages. @@ -37038,7 +39323,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Enterprise.IEnterpriseUsersAddResult, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Enterprise.IEnterpriseUsersAddResult, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes an EnterpriseUsersAddResult message from the specified reader or buffer. @@ -37048,7 +39336,10 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.EnterpriseUsersAddResult; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Enterprise.EnterpriseUsersAddResult; /** * Decodes an EnterpriseUsersAddResult message from the specified reader or buffer, length delimited. @@ -37057,14 +39348,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.EnterpriseUsersAddResult; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.EnterpriseUsersAddResult; /** * Verifies an EnterpriseUsersAddResult message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an EnterpriseUsersAddResult message from a plain object. Also converts values to their respective internal types. @@ -37079,7 +39370,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.EnterpriseUsersAddResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.EnterpriseUsersAddResult, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this EnterpriseUsersAddResult to JSON. @@ -37097,29 +39391,27 @@ export namespace Enterprise { /** Properties of an UpdateMSPPermitsRequest. */ interface IUpdateMSPPermitsRequest { - /** UpdateMSPPermitsRequest mspEnterpriseId */ - mspEnterpriseId?: (number|null); + mspEnterpriseId?: number | null; /** UpdateMSPPermitsRequest maxAllowedLicenses */ - maxAllowedLicenses?: (number|null); + maxAllowedLicenses?: number | null; /** UpdateMSPPermitsRequest allowedMcProducts */ - allowedMcProducts?: (string[]|null); + allowedMcProducts?: string[] | null; /** UpdateMSPPermitsRequest allowedAddOns */ - allowedAddOns?: (string[]|null); + allowedAddOns?: string[] | null; /** UpdateMSPPermitsRequest maxFilePlanType */ - maxFilePlanType?: (string|null); + maxFilePlanType?: string | null; /** UpdateMSPPermitsRequest allowUnlimitedLicenses */ - allowUnlimitedLicenses?: (boolean|null); + allowUnlimitedLicenses?: boolean | null; } /** Represents an UpdateMSPPermitsRequest. */ class UpdateMSPPermitsRequest implements IUpdateMSPPermitsRequest { - /** * Constructs a new UpdateMSPPermitsRequest. * @param [properties] Properties to set @@ -37165,7 +39457,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Enterprise.IUpdateMSPPermitsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Enterprise.IUpdateMSPPermitsRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes an UpdateMSPPermitsRequest message from the specified reader or buffer. @@ -37175,7 +39470,10 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.UpdateMSPPermitsRequest; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Enterprise.UpdateMSPPermitsRequest; /** * Decodes an UpdateMSPPermitsRequest message from the specified reader or buffer, length delimited. @@ -37184,14 +39482,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.UpdateMSPPermitsRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.UpdateMSPPermitsRequest; /** * Verifies an UpdateMSPPermitsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an UpdateMSPPermitsRequest message from a plain object. Also converts values to their respective internal types. @@ -37206,7 +39504,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.UpdateMSPPermitsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.UpdateMSPPermitsRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this UpdateMSPPermitsRequest to JSON. @@ -37228,19 +39529,17 @@ export namespace Enterprise { GENERAL = 1, DISCOVERY_AND_ROTATION_CONTROLLER = 2, KCM_CONTROLLER = 3, - SELF_DESTRUCT = 4 + SELF_DESTRUCT = 4, } /** Properties of a DeleteEnterpriseUsersRequest. */ interface IDeleteEnterpriseUsersRequest { - /** DeleteEnterpriseUsersRequest enterpriseUserIds */ - enterpriseUserIds?: ((number|Long)[]|null); + enterpriseUserIds?: (number | Long)[] | null; } /** Represents a DeleteEnterpriseUsersRequest. */ class DeleteEnterpriseUsersRequest implements IDeleteEnterpriseUsersRequest { - /** * Constructs a new DeleteEnterpriseUsersRequest. * @param [properties] Properties to set @@ -37248,14 +39547,16 @@ export namespace Enterprise { constructor(properties?: Enterprise.IDeleteEnterpriseUsersRequest); /** DeleteEnterpriseUsersRequest enterpriseUserIds. */ - public enterpriseUserIds: (number|Long)[]; + public enterpriseUserIds: (number | Long)[]; /** * Creates a new DeleteEnterpriseUsersRequest instance using the specified properties. * @param [properties] Properties to set * @returns DeleteEnterpriseUsersRequest instance */ - public static create(properties?: Enterprise.IDeleteEnterpriseUsersRequest): Enterprise.DeleteEnterpriseUsersRequest; + public static create( + properties?: Enterprise.IDeleteEnterpriseUsersRequest + ): Enterprise.DeleteEnterpriseUsersRequest; /** * Encodes the specified DeleteEnterpriseUsersRequest message. Does not implicitly {@link Enterprise.DeleteEnterpriseUsersRequest.verify|verify} messages. @@ -37263,7 +39564,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Enterprise.IDeleteEnterpriseUsersRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Enterprise.IDeleteEnterpriseUsersRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified DeleteEnterpriseUsersRequest message, length delimited. Does not implicitly {@link Enterprise.DeleteEnterpriseUsersRequest.verify|verify} messages. @@ -37271,7 +39575,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Enterprise.IDeleteEnterpriseUsersRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Enterprise.IDeleteEnterpriseUsersRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a DeleteEnterpriseUsersRequest message from the specified reader or buffer. @@ -37281,7 +39588,10 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.DeleteEnterpriseUsersRequest; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Enterprise.DeleteEnterpriseUsersRequest; /** * Decodes a DeleteEnterpriseUsersRequest message from the specified reader or buffer, length delimited. @@ -37290,14 +39600,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.DeleteEnterpriseUsersRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.DeleteEnterpriseUsersRequest; /** * Verifies a DeleteEnterpriseUsersRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a DeleteEnterpriseUsersRequest message from a plain object. Also converts values to their respective internal types. @@ -37312,7 +39622,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.DeleteEnterpriseUsersRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.DeleteEnterpriseUsersRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this DeleteEnterpriseUsersRequest to JSON. @@ -37334,22 +39647,20 @@ export namespace Enterprise { NOT_AN_ENTERPRISE_USER = 1, CANNOT_DELETE_SELF = 2, BRIDGE_CANNOT_DELETE_ACTIVE_USER = 3, - ERROR = 4 + ERROR = 4, } /** Properties of a DeleteEnterpriseUserStatus. */ interface IDeleteEnterpriseUserStatus { - /** DeleteEnterpriseUserStatus enterpriseUserId */ - enterpriseUserId?: (number|Long|null); + enterpriseUserId?: number | Long | null; /** DeleteEnterpriseUserStatus status */ - status?: (Enterprise.DeleteEnterpriseUsersResult|null); + status?: Enterprise.DeleteEnterpriseUsersResult | null; } /** Represents a DeleteEnterpriseUserStatus. */ class DeleteEnterpriseUserStatus implements IDeleteEnterpriseUserStatus { - /** * Constructs a new DeleteEnterpriseUserStatus. * @param [properties] Properties to set @@ -37357,7 +39668,7 @@ export namespace Enterprise { constructor(properties?: Enterprise.IDeleteEnterpriseUserStatus); /** DeleteEnterpriseUserStatus enterpriseUserId. */ - public enterpriseUserId: (number|Long); + public enterpriseUserId: number | Long; /** DeleteEnterpriseUserStatus status. */ public status: Enterprise.DeleteEnterpriseUsersResult; @@ -37367,7 +39678,9 @@ export namespace Enterprise { * @param [properties] Properties to set * @returns DeleteEnterpriseUserStatus instance */ - public static create(properties?: Enterprise.IDeleteEnterpriseUserStatus): Enterprise.DeleteEnterpriseUserStatus; + public static create( + properties?: Enterprise.IDeleteEnterpriseUserStatus + ): Enterprise.DeleteEnterpriseUserStatus; /** * Encodes the specified DeleteEnterpriseUserStatus message. Does not implicitly {@link Enterprise.DeleteEnterpriseUserStatus.verify|verify} messages. @@ -37375,7 +39688,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Enterprise.IDeleteEnterpriseUserStatus, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Enterprise.IDeleteEnterpriseUserStatus, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified DeleteEnterpriseUserStatus message, length delimited. Does not implicitly {@link Enterprise.DeleteEnterpriseUserStatus.verify|verify} messages. @@ -37383,7 +39699,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Enterprise.IDeleteEnterpriseUserStatus, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Enterprise.IDeleteEnterpriseUserStatus, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a DeleteEnterpriseUserStatus message from the specified reader or buffer. @@ -37393,7 +39712,10 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.DeleteEnterpriseUserStatus; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Enterprise.DeleteEnterpriseUserStatus; /** * Decodes a DeleteEnterpriseUserStatus message from the specified reader or buffer, length delimited. @@ -37402,14 +39724,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.DeleteEnterpriseUserStatus; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.DeleteEnterpriseUserStatus; /** * Verifies a DeleteEnterpriseUserStatus message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a DeleteEnterpriseUserStatus message from a plain object. Also converts values to their respective internal types. @@ -37424,7 +39746,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.DeleteEnterpriseUserStatus, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.DeleteEnterpriseUserStatus, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this DeleteEnterpriseUserStatus to JSON. @@ -37442,14 +39767,12 @@ export namespace Enterprise { /** Properties of a DeleteEnterpriseUsersResponse. */ interface IDeleteEnterpriseUsersResponse { - /** DeleteEnterpriseUsersResponse deleteStatus */ - deleteStatus?: (Enterprise.IDeleteEnterpriseUserStatus[]|null); + deleteStatus?: Enterprise.IDeleteEnterpriseUserStatus[] | null; } /** Represents a DeleteEnterpriseUsersResponse. */ class DeleteEnterpriseUsersResponse implements IDeleteEnterpriseUsersResponse { - /** * Constructs a new DeleteEnterpriseUsersResponse. * @param [properties] Properties to set @@ -37464,7 +39787,9 @@ export namespace Enterprise { * @param [properties] Properties to set * @returns DeleteEnterpriseUsersResponse instance */ - public static create(properties?: Enterprise.IDeleteEnterpriseUsersResponse): Enterprise.DeleteEnterpriseUsersResponse; + public static create( + properties?: Enterprise.IDeleteEnterpriseUsersResponse + ): Enterprise.DeleteEnterpriseUsersResponse; /** * Encodes the specified DeleteEnterpriseUsersResponse message. Does not implicitly {@link Enterprise.DeleteEnterpriseUsersResponse.verify|verify} messages. @@ -37472,7 +39797,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Enterprise.IDeleteEnterpriseUsersResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Enterprise.IDeleteEnterpriseUsersResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified DeleteEnterpriseUsersResponse message, length delimited. Does not implicitly {@link Enterprise.DeleteEnterpriseUsersResponse.verify|verify} messages. @@ -37480,7 +39808,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Enterprise.IDeleteEnterpriseUsersResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Enterprise.IDeleteEnterpriseUsersResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a DeleteEnterpriseUsersResponse message from the specified reader or buffer. @@ -37490,7 +39821,10 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.DeleteEnterpriseUsersResponse; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Enterprise.DeleteEnterpriseUsersResponse; /** * Decodes a DeleteEnterpriseUsersResponse message from the specified reader or buffer, length delimited. @@ -37499,14 +39833,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.DeleteEnterpriseUsersResponse; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.DeleteEnterpriseUsersResponse; /** * Verifies a DeleteEnterpriseUsersResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a DeleteEnterpriseUsersResponse message from a plain object. Also converts values to their respective internal types. @@ -37521,7 +39855,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.DeleteEnterpriseUsersResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.DeleteEnterpriseUsersResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this DeleteEnterpriseUsersResponse to JSON. @@ -37541,25 +39878,23 @@ export namespace Enterprise { enum ClearSecurityDataType { RECALCULATE_SUMMARY_REPORT = 0, FORCE_CLIENT_CHECK_FOR_MISSING_DATA = 1, - FORCE_CLIENT_RESEND_SECURITY_DATA = 2 + FORCE_CLIENT_RESEND_SECURITY_DATA = 2, } /** Properties of a ClearSecurityDataRequest. */ interface IClearSecurityDataRequest { - /** ClearSecurityDataRequest enterpriseUserId */ - enterpriseUserId?: ((number|Long)[]|null); + enterpriseUserId?: (number | Long)[] | null; /** ClearSecurityDataRequest allUsers */ - allUsers?: (boolean|null); + allUsers?: boolean | null; /** ClearSecurityDataRequest type */ - type?: (Enterprise.ClearSecurityDataType|null); + type?: Enterprise.ClearSecurityDataType | null; } /** Represents a ClearSecurityDataRequest. */ class ClearSecurityDataRequest implements IClearSecurityDataRequest { - /** * Constructs a new ClearSecurityDataRequest. * @param [properties] Properties to set @@ -37567,7 +39902,7 @@ export namespace Enterprise { constructor(properties?: Enterprise.IClearSecurityDataRequest); /** ClearSecurityDataRequest enterpriseUserId. */ - public enterpriseUserId: (number|Long)[]; + public enterpriseUserId: (number | Long)[]; /** ClearSecurityDataRequest allUsers. */ public allUsers: boolean; @@ -37588,7 +39923,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Enterprise.IClearSecurityDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Enterprise.IClearSecurityDataRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified ClearSecurityDataRequest message, length delimited. Does not implicitly {@link Enterprise.ClearSecurityDataRequest.verify|verify} messages. @@ -37596,7 +39934,10 @@ export namespace Enterprise { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Enterprise.IClearSecurityDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Enterprise.IClearSecurityDataRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a ClearSecurityDataRequest message from the specified reader or buffer. @@ -37606,7 +39947,10 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.ClearSecurityDataRequest; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Enterprise.ClearSecurityDataRequest; /** * Decodes a ClearSecurityDataRequest message from the specified reader or buffer, length delimited. @@ -37615,14 +39959,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.ClearSecurityDataRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.ClearSecurityDataRequest; /** * Verifies a ClearSecurityDataRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a ClearSecurityDataRequest message from a plain object. Also converts values to their respective internal types. @@ -37637,7 +39981,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.ClearSecurityDataRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.ClearSecurityDataRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this ClearSecurityDataRequest to JSON. @@ -37655,17 +40002,15 @@ export namespace Enterprise { /** Properties of a RolesByTeam. */ interface IRolesByTeam { - /** RolesByTeam teamUid */ - teamUid?: (Uint8Array|null); + teamUid?: Uint8Array | null; /** RolesByTeam roleId */ - roleId?: ((number|Long)[]|null); + roleId?: (number | Long)[] | null; } /** Represents a RolesByTeam. */ class RolesByTeam implements IRolesByTeam { - /** * Constructs a new RolesByTeam. * @param [properties] Properties to set @@ -37676,7 +40021,7 @@ export namespace Enterprise { public teamUid: Uint8Array; /** RolesByTeam roleId. */ - public roleId: (number|Long)[]; + public roleId: (number | Long)[]; /** * Creates a new RolesByTeam instance using the specified properties. @@ -37709,7 +40054,7 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Enterprise.RolesByTeam; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Enterprise.RolesByTeam; /** * Decodes a RolesByTeam message from the specified reader or buffer, length delimited. @@ -37718,14 +40063,14 @@ export namespace Enterprise { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Enterprise.RolesByTeam; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Enterprise.RolesByTeam; /** * Verifies a RolesByTeam message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a RolesByTeam message from a plain object. Also converts values to their respective internal types. @@ -37740,7 +40085,10 @@ export namespace Enterprise { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Enterprise.RolesByTeam, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Enterprise.RolesByTeam, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this RolesByTeam to JSON. @@ -37759,20 +40107,17 @@ export namespace Enterprise { /** Namespace AccountSummary. */ export namespace AccountSummary { - /** Properties of an AccountSummaryRequest. */ interface IAccountSummaryRequest { - /** AccountSummaryRequest summaryVersion */ - summaryVersion?: (number|null); + summaryVersion?: number | null; /** AccountSummaryRequest includeRecentActivity */ - includeRecentActivity?: (boolean|null); + includeRecentActivity?: boolean | null; } /** Represents an AccountSummaryRequest. */ class AccountSummaryRequest implements IAccountSummaryRequest { - /** * Constructs a new AccountSummaryRequest. * @param [properties] Properties to set @@ -37798,7 +40143,10 @@ export namespace AccountSummary { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: AccountSummary.IAccountSummaryRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: AccountSummary.IAccountSummaryRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified AccountSummaryRequest message, length delimited. Does not implicitly {@link AccountSummary.AccountSummaryRequest.verify|verify} messages. @@ -37806,7 +40154,10 @@ export namespace AccountSummary { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: AccountSummary.IAccountSummaryRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: AccountSummary.IAccountSummaryRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes an AccountSummaryRequest message from the specified reader or buffer. @@ -37816,7 +40167,10 @@ export namespace AccountSummary { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): AccountSummary.AccountSummaryRequest; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): AccountSummary.AccountSummaryRequest; /** * Decodes an AccountSummaryRequest message from the specified reader or buffer, length delimited. @@ -37825,14 +40179,14 @@ export namespace AccountSummary { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): AccountSummary.AccountSummaryRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): AccountSummary.AccountSummaryRequest; /** * Verifies an AccountSummaryRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an AccountSummaryRequest message from a plain object. Also converts values to their respective internal types. @@ -37847,7 +40201,10 @@ export namespace AccountSummary { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: AccountSummary.AccountSummaryRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: AccountSummary.AccountSummaryRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this AccountSummaryRequest to JSON. @@ -37865,65 +40222,63 @@ export namespace AccountSummary { /** Properties of an AccountSummaryElements. */ interface IAccountSummaryElements { - /** AccountSummaryElements clientKey */ - clientKey?: (Uint8Array|null); + clientKey?: Uint8Array | null; /** AccountSummaryElements settings */ - settings?: (AccountSummary.ISettings|null); + settings?: AccountSummary.ISettings | null; /** AccountSummaryElements keysInfo */ - keysInfo?: (AccountSummary.IKeysInfo|null); + keysInfo?: AccountSummary.IKeysInfo | null; /** AccountSummaryElements syncLogs */ - syncLogs?: (AccountSummary.ISyncLog[]|null); + syncLogs?: AccountSummary.ISyncLog[] | null; /** AccountSummaryElements isEnterpriseAdmin */ - isEnterpriseAdmin?: (boolean|null); + isEnterpriseAdmin?: boolean | null; /** AccountSummaryElements license */ - license?: (AccountSummary.ILicense|null); + license?: AccountSummary.ILicense | null; /** AccountSummaryElements group */ - group?: (AccountSummary.IGroup|null); + group?: AccountSummary.IGroup | null; /** AccountSummaryElements Enforcements */ - Enforcements?: (AccountSummary.IEnforcements|null); + Enforcements?: AccountSummary.IEnforcements | null; /** AccountSummaryElements Images */ - Images?: (AccountSummary.IKeyValue[]|null); + Images?: AccountSummary.IKeyValue[] | null; /** AccountSummaryElements personalLicense */ - personalLicense?: (AccountSummary.ILicense|null); + personalLicense?: AccountSummary.ILicense | null; /** AccountSummaryElements fixSharedFolderRecords */ - fixSharedFolderRecords?: (boolean|null); + fixSharedFolderRecords?: boolean | null; /** AccountSummaryElements usernames */ - usernames?: (string[]|null); + usernames?: string[] | null; /** AccountSummaryElements devices */ - devices?: (AccountSummary.IDeviceInfo[]|null); + devices?: AccountSummary.IDeviceInfo[] | null; /** AccountSummaryElements isShareAdmin */ - isShareAdmin?: (boolean|null); + isShareAdmin?: boolean | null; /** AccountSummaryElements accountRecovery */ - accountRecovery?: (boolean|null); + accountRecovery?: boolean | null; /** AccountSummaryElements accountRecoveryPrompt */ - accountRecoveryPrompt?: (boolean|null); + accountRecoveryPrompt?: boolean | null; /** AccountSummaryElements minMasterPasswordLengthNoPrompt */ - minMasterPasswordLengthNoPrompt?: (number|null); + minMasterPasswordLengthNoPrompt?: number | null; /** AccountSummaryElements forbidKeyType2 */ - forbidKeyType2?: (boolean|null); + forbidKeyType2?: boolean | null; } /** Represents an AccountSummaryElements. */ class AccountSummaryElements implements IAccountSummaryElements { - /** * Constructs a new AccountSummaryElements. * @param [properties] Properties to set @@ -37934,10 +40289,10 @@ export namespace AccountSummary { public clientKey: Uint8Array; /** AccountSummaryElements settings. */ - public settings?: (AccountSummary.ISettings|null); + public settings?: AccountSummary.ISettings | null; /** AccountSummaryElements keysInfo. */ - public keysInfo?: (AccountSummary.IKeysInfo|null); + public keysInfo?: AccountSummary.IKeysInfo | null; /** AccountSummaryElements syncLogs. */ public syncLogs: AccountSummary.ISyncLog[]; @@ -37946,19 +40301,19 @@ export namespace AccountSummary { public isEnterpriseAdmin: boolean; /** AccountSummaryElements license. */ - public license?: (AccountSummary.ILicense|null); + public license?: AccountSummary.ILicense | null; /** AccountSummaryElements group. */ - public group?: (AccountSummary.IGroup|null); + public group?: AccountSummary.IGroup | null; /** AccountSummaryElements Enforcements. */ - public Enforcements?: (AccountSummary.IEnforcements|null); + public Enforcements?: AccountSummary.IEnforcements | null; /** AccountSummaryElements Images. */ public Images: AccountSummary.IKeyValue[]; /** AccountSummaryElements personalLicense. */ - public personalLicense?: (AccountSummary.ILicense|null); + public personalLicense?: AccountSummary.ILicense | null; /** AccountSummaryElements fixSharedFolderRecords. */ public fixSharedFolderRecords: boolean; @@ -37989,7 +40344,9 @@ export namespace AccountSummary { * @param [properties] Properties to set * @returns AccountSummaryElements instance */ - public static create(properties?: AccountSummary.IAccountSummaryElements): AccountSummary.AccountSummaryElements; + public static create( + properties?: AccountSummary.IAccountSummaryElements + ): AccountSummary.AccountSummaryElements; /** * Encodes the specified AccountSummaryElements message. Does not implicitly {@link AccountSummary.AccountSummaryElements.verify|verify} messages. @@ -37997,7 +40354,10 @@ export namespace AccountSummary { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: AccountSummary.IAccountSummaryElements, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: AccountSummary.IAccountSummaryElements, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified AccountSummaryElements message, length delimited. Does not implicitly {@link AccountSummary.AccountSummaryElements.verify|verify} messages. @@ -38005,7 +40365,10 @@ export namespace AccountSummary { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: AccountSummary.IAccountSummaryElements, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: AccountSummary.IAccountSummaryElements, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes an AccountSummaryElements message from the specified reader or buffer. @@ -38015,7 +40378,10 @@ export namespace AccountSummary { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): AccountSummary.AccountSummaryElements; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): AccountSummary.AccountSummaryElements; /** * Decodes an AccountSummaryElements message from the specified reader or buffer, length delimited. @@ -38024,14 +40390,14 @@ export namespace AccountSummary { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): AccountSummary.AccountSummaryElements; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): AccountSummary.AccountSummaryElements; /** * Verifies an AccountSummaryElements message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an AccountSummaryElements message from a plain object. Also converts values to their respective internal types. @@ -38046,7 +40412,10 @@ export namespace AccountSummary { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: AccountSummary.AccountSummaryElements, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: AccountSummary.AccountSummaryElements, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this AccountSummaryElements to JSON. @@ -38064,50 +40433,48 @@ export namespace AccountSummary { /** Properties of a DeviceInfo. */ interface IDeviceInfo { - /** DeviceInfo encryptedDeviceToken */ - encryptedDeviceToken?: (Uint8Array|null); + encryptedDeviceToken?: Uint8Array | null; /** DeviceInfo deviceName */ - deviceName?: (string|null); + deviceName?: string | null; /** DeviceInfo deviceStatus */ - deviceStatus?: (Authentication.DeviceStatus|null); + deviceStatus?: Authentication.DeviceStatus | null; /** DeviceInfo devicePublicKey */ - devicePublicKey?: (Uint8Array|null); + devicePublicKey?: Uint8Array | null; /** DeviceInfo encryptedDataKeyDoNotUse */ - encryptedDataKeyDoNotUse?: (Uint8Array|null); + encryptedDataKeyDoNotUse?: Uint8Array | null; /** DeviceInfo clientVersion */ - clientVersion?: (string|null); + clientVersion?: string | null; /** DeviceInfo username */ - username?: (string|null); + username?: string | null; /** DeviceInfo ipAddress */ - ipAddress?: (string|null); + ipAddress?: string | null; /** DeviceInfo approveRequestTime */ - approveRequestTime?: (number|Long|null); + approveRequestTime?: number | Long | null; /** DeviceInfo encryptedDataKeyPresent */ - encryptedDataKeyPresent?: (boolean|null); + encryptedDataKeyPresent?: boolean | null; /** DeviceInfo groupId */ - groupId?: (number|Long|null); + groupId?: number | Long | null; /** DeviceInfo devicePlatform */ - devicePlatform?: (string|null); + devicePlatform?: string | null; /** DeviceInfo clientFormFactor */ - clientFormFactor?: (Authentication.ClientFormFactor|null); + clientFormFactor?: Authentication.ClientFormFactor | null; } /** Represents a DeviceInfo. */ class DeviceInfo implements IDeviceInfo { - /** * Constructs a new DeviceInfo. * @param [properties] Properties to set @@ -38139,13 +40506,13 @@ export namespace AccountSummary { public ipAddress: string; /** DeviceInfo approveRequestTime. */ - public approveRequestTime: (number|Long); + public approveRequestTime: number | Long; /** DeviceInfo encryptedDataKeyPresent. */ public encryptedDataKeyPresent: boolean; /** DeviceInfo groupId. */ - public groupId: (number|Long); + public groupId: number | Long; /** DeviceInfo devicePlatform. */ public devicePlatform: string; @@ -38184,7 +40551,7 @@ export namespace AccountSummary { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): AccountSummary.DeviceInfo; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): AccountSummary.DeviceInfo; /** * Decodes a DeviceInfo message from the specified reader or buffer, length delimited. @@ -38193,14 +40560,14 @@ export namespace AccountSummary { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): AccountSummary.DeviceInfo; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): AccountSummary.DeviceInfo; /** * Verifies a DeviceInfo message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a DeviceInfo message from a plain object. Also converts values to their respective internal types. @@ -38215,7 +40582,10 @@ export namespace AccountSummary { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: AccountSummary.DeviceInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: AccountSummary.DeviceInfo, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this DeviceInfo to JSON. @@ -38233,32 +40603,30 @@ export namespace AccountSummary { /** Properties of a KeysInfo. */ interface IKeysInfo { - /** KeysInfo encryptionParams */ - encryptionParams?: (Uint8Array|null); + encryptionParams?: Uint8Array | null; /** KeysInfo encryptedDataKey */ - encryptedDataKey?: (Uint8Array|null); + encryptedDataKey?: Uint8Array | null; /** KeysInfo dataKeyBackupDate */ - dataKeyBackupDate?: (number|null); + dataKeyBackupDate?: number | null; /** KeysInfo userAuthUid */ - userAuthUid?: (Uint8Array|null); + userAuthUid?: Uint8Array | null; /** KeysInfo encryptedPrivateKey */ - encryptedPrivateKey?: (Uint8Array|null); + encryptedPrivateKey?: Uint8Array | null; /** KeysInfo encryptedEccPrivateKey */ - encryptedEccPrivateKey?: (Uint8Array|null); + encryptedEccPrivateKey?: Uint8Array | null; /** KeysInfo eccPublicKey */ - eccPublicKey?: (Uint8Array|null); + eccPublicKey?: Uint8Array | null; } /** Represents a KeysInfo. */ class KeysInfo implements IKeysInfo { - /** * Constructs a new KeysInfo. * @param [properties] Properties to set @@ -38317,7 +40685,7 @@ export namespace AccountSummary { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): AccountSummary.KeysInfo; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): AccountSummary.KeysInfo; /** * Decodes a KeysInfo message from the specified reader or buffer, length delimited. @@ -38326,14 +40694,14 @@ export namespace AccountSummary { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): AccountSummary.KeysInfo; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): AccountSummary.KeysInfo; /** * Verifies a KeysInfo message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a KeysInfo message from a plain object. Also converts values to their respective internal types. @@ -38348,7 +40716,10 @@ export namespace AccountSummary { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: AccountSummary.KeysInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: AccountSummary.KeysInfo, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this KeysInfo to JSON. @@ -38366,29 +40737,27 @@ export namespace AccountSummary { /** Properties of a SyncLog. */ interface ISyncLog { - /** SyncLog countryName */ - countryName?: (string|null); + countryName?: string | null; /** SyncLog secondsAgo */ - secondsAgo?: (number|Long|null); + secondsAgo?: number | Long | null; /** SyncLog deviceName */ - deviceName?: (string|null); + deviceName?: string | null; /** SyncLog countryCode */ - countryCode?: (string|null); + countryCode?: string | null; /** SyncLog deviceUID */ - deviceUID?: (Uint8Array|null); + deviceUID?: Uint8Array | null; /** SyncLog ipAddress */ - ipAddress?: (string|null); + ipAddress?: string | null; } /** Represents a SyncLog. */ class SyncLog implements ISyncLog { - /** * Constructs a new SyncLog. * @param [properties] Properties to set @@ -38399,7 +40768,7 @@ export namespace AccountSummary { public countryName: string; /** SyncLog secondsAgo. */ - public secondsAgo: (number|Long); + public secondsAgo: number | Long; /** SyncLog deviceName. */ public deviceName: string; @@ -38444,7 +40813,7 @@ export namespace AccountSummary { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): AccountSummary.SyncLog; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): AccountSummary.SyncLog; /** * Decodes a SyncLog message from the specified reader or buffer, length delimited. @@ -38453,14 +40822,14 @@ export namespace AccountSummary { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): AccountSummary.SyncLog; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): AccountSummary.SyncLog; /** * Verifies a SyncLog message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a SyncLog message from a plain object. Also converts values to their respective internal types. @@ -38475,7 +40844,10 @@ export namespace AccountSummary { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: AccountSummary.SyncLog, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: AccountSummary.SyncLog, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this SyncLog to JSON. @@ -38493,113 +40865,111 @@ export namespace AccountSummary { /** Properties of a License. */ interface ILicense { - /** License subscriptionCode */ - subscriptionCode?: (string|null); + subscriptionCode?: string | null; /** License productTypeId */ - productTypeId?: (number|null); + productTypeId?: number | null; /** License productTypeName */ - productTypeName?: (string|null); + productTypeName?: string | null; /** License expirationDate */ - expirationDate?: (string|null); + expirationDate?: string | null; /** License secondsUntilExpiration */ - secondsUntilExpiration?: (number|Long|null); + secondsUntilExpiration?: number | Long | null; /** License maxDevices */ - maxDevices?: (number|null); + maxDevices?: number | null; /** License filePlanType */ - filePlanType?: (number|null); + filePlanType?: number | null; /** License bytesUsed */ - bytesUsed?: (number|Long|null); + bytesUsed?: number | Long | null; /** License bytesTotal */ - bytesTotal?: (number|Long|null); + bytesTotal?: number | Long | null; /** License secondsUntilStorageExpiration */ - secondsUntilStorageExpiration?: (number|Long|null); + secondsUntilStorageExpiration?: number | Long | null; /** License storageExpirationDate */ - storageExpirationDate?: (string|null); + storageExpirationDate?: string | null; /** License hasAutoRenewableAppstoreSubscription */ - hasAutoRenewableAppstoreSubscription?: (boolean|null); + hasAutoRenewableAppstoreSubscription?: boolean | null; /** License accountType */ - accountType?: (number|null); + accountType?: number | null; /** License uploadsRemaining */ - uploadsRemaining?: (number|null); + uploadsRemaining?: number | null; /** License enterpriseId */ - enterpriseId?: (number|null); + enterpriseId?: number | null; /** License chatEnabled */ - chatEnabled?: (boolean|null); + chatEnabled?: boolean | null; /** License auditAndReportingEnabled */ - auditAndReportingEnabled?: (boolean|null); + auditAndReportingEnabled?: boolean | null; /** License breachWatchFeatureDisable */ - breachWatchFeatureDisable?: (boolean|null); + breachWatchFeatureDisable?: boolean | null; /** License accountUid */ - accountUid?: (Uint8Array|null); + accountUid?: Uint8Array | null; /** License allowPersonalLicense */ - allowPersonalLicense?: (boolean|null); + allowPersonalLicense?: boolean | null; /** License licensedBy */ - licensedBy?: (string|null); + licensedBy?: string | null; /** License email */ - email?: (string|null); + email?: string | null; /** License breachWatchEnabled */ - breachWatchEnabled?: (boolean|null); + breachWatchEnabled?: boolean | null; /** License breachWatchScanned */ - breachWatchScanned?: (boolean|null); + breachWatchScanned?: boolean | null; /** License breachWatchExpiration */ - breachWatchExpiration?: (number|Long|null); + breachWatchExpiration?: number | Long | null; /** License breachWatchDateCreated */ - breachWatchDateCreated?: (number|Long|null); + breachWatchDateCreated?: number | Long | null; /** License error */ - error?: (AccountSummary.IResult|null); + error?: AccountSummary.IResult | null; /** License expiration */ - expiration?: (number|Long|null); + expiration?: number | Long | null; /** License storageExpiration */ - storageExpiration?: (number|Long|null); + storageExpiration?: number | Long | null; /** License uploadsCount */ - uploadsCount?: (number|null); + uploadsCount?: number | null; /** License units */ - units?: (number|null); + units?: number | null; /** License pendingEnterprise */ - pendingEnterprise?: (boolean|null); + pendingEnterprise?: boolean | null; /** License isPamEnabled */ - isPamEnabled?: (boolean|null); + isPamEnabled?: boolean | null; /** License isKsmEnabled */ - isKsmEnabled?: (boolean|null); + isKsmEnabled?: boolean | null; } /** Represents a License. */ class License implements ILicense { - /** * Constructs a new License. * @param [properties] Properties to set @@ -38619,7 +40989,7 @@ export namespace AccountSummary { public expirationDate: string; /** License secondsUntilExpiration. */ - public secondsUntilExpiration: (number|Long); + public secondsUntilExpiration: number | Long; /** License maxDevices. */ public maxDevices: number; @@ -38628,13 +40998,13 @@ export namespace AccountSummary { public filePlanType: number; /** License bytesUsed. */ - public bytesUsed: (number|Long); + public bytesUsed: number | Long; /** License bytesTotal. */ - public bytesTotal: (number|Long); + public bytesTotal: number | Long; /** License secondsUntilStorageExpiration. */ - public secondsUntilStorageExpiration: (number|Long); + public secondsUntilStorageExpiration: number | Long; /** License storageExpirationDate. */ public storageExpirationDate: string; @@ -38679,19 +41049,19 @@ export namespace AccountSummary { public breachWatchScanned: boolean; /** License breachWatchExpiration. */ - public breachWatchExpiration: (number|Long); + public breachWatchExpiration: number | Long; /** License breachWatchDateCreated. */ - public breachWatchDateCreated: (number|Long); + public breachWatchDateCreated: number | Long; /** License error. */ - public error?: (AccountSummary.IResult|null); + public error?: AccountSummary.IResult | null; /** License expiration. */ - public expiration: (number|Long); + public expiration: number | Long; /** License storageExpiration. */ - public storageExpiration: (number|Long); + public storageExpiration: number | Long; /** License uploadsCount. */ public uploadsCount: number; @@ -38739,7 +41109,7 @@ export namespace AccountSummary { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): AccountSummary.License; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): AccountSummary.License; /** * Decodes a License message from the specified reader or buffer, length delimited. @@ -38748,14 +41118,14 @@ export namespace AccountSummary { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): AccountSummary.License; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): AccountSummary.License; /** * Verifies a License message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a License message from a plain object. Also converts values to their respective internal types. @@ -38770,7 +41140,10 @@ export namespace AccountSummary { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: AccountSummary.License, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: AccountSummary.License, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this License to JSON. @@ -38788,35 +41161,33 @@ export namespace AccountSummary { /** Properties of an AddOn. */ interface IAddOn { - /** AddOn licenseKeyId */ - licenseKeyId?: (number|null); + licenseKeyId?: number | null; /** AddOn name */ - name?: (string|null); + name?: string | null; /** AddOn expirationDate */ - expirationDate?: (number|Long|null); + expirationDate?: number | Long | null; /** AddOn createdDate */ - createdDate?: (number|Long|null); + createdDate?: number | Long | null; /** AddOn isTrial */ - isTrial?: (boolean|null); + isTrial?: boolean | null; /** AddOn enabled */ - enabled?: (boolean|null); + enabled?: boolean | null; /** AddOn scanned */ - scanned?: (boolean|null); + scanned?: boolean | null; /** AddOn featureDisable */ - featureDisable?: (boolean|null); + featureDisable?: boolean | null; } /** Represents an AddOn. */ class AddOn implements IAddOn { - /** * Constructs a new AddOn. * @param [properties] Properties to set @@ -38830,10 +41201,10 @@ export namespace AccountSummary { public name: string; /** AddOn expirationDate. */ - public expirationDate: (number|Long); + public expirationDate: number | Long; /** AddOn createdDate. */ - public createdDate: (number|Long); + public createdDate: number | Long; /** AddOn isTrial. */ public isTrial: boolean; @@ -38878,7 +41249,7 @@ export namespace AccountSummary { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): AccountSummary.AddOn; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): AccountSummary.AddOn; /** * Decodes an AddOn message from the specified reader or buffer, length delimited. @@ -38887,14 +41258,14 @@ export namespace AccountSummary { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): AccountSummary.AddOn; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): AccountSummary.AddOn; /** * Verifies an AddOn message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an AddOn message from a plain object. Also converts values to their respective internal types. @@ -38909,7 +41280,10 @@ export namespace AccountSummary { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: AccountSummary.AddOn, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: AccountSummary.AddOn, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this AddOn to JSON. @@ -38927,128 +41301,126 @@ export namespace AccountSummary { /** Properties of a Settings. */ interface ISettings { - /** Settings audit */ - audit?: (boolean|null); + audit?: boolean | null; /** Settings mustPerformAccountShareBy */ - mustPerformAccountShareBy?: (number|Long|null); + mustPerformAccountShareBy?: number | Long | null; /** Settings shareAccountTo */ - shareAccountTo?: (AccountSummary.IMissingAccountShareKey[]|null); + shareAccountTo?: AccountSummary.IMissingAccountShareKey[] | null; /** Settings rules */ - rules?: (AccountSummary.IPasswordRule[]|null); + rules?: AccountSummary.IPasswordRule[] | null; /** Settings passwordRulesIntro */ - passwordRulesIntro?: (string|null); + passwordRulesIntro?: string | null; /** Settings autoBackupDays */ - autoBackupDays?: (number|null); + autoBackupDays?: number | null; /** Settings theme */ - theme?: (string|null); + theme?: string | null; /** Settings channel */ - channel?: (string|null); + channel?: string | null; /** Settings channelValue */ - channelValue?: (string|null); + channelValue?: string | null; /** Settings rsaConfigured */ - rsaConfigured?: (boolean|null); + rsaConfigured?: boolean | null; /** Settings emailVerified */ - emailVerified?: (boolean|null); + emailVerified?: boolean | null; /** Settings masterPasswordLastModified */ - masterPasswordLastModified?: (number|null); + masterPasswordLastModified?: number | null; /** Settings accountFolderKey */ - accountFolderKey?: (Uint8Array|null); + accountFolderKey?: Uint8Array | null; /** Settings securityKeys */ - securityKeys?: (AccountSummary.ISecurityKey[]|null); + securityKeys?: AccountSummary.ISecurityKey[] | null; /** ????? */ - keyValues?: (AccountSummary.IKeyValue[]|null); + keyValues?: AccountSummary.IKeyValue[] | null; /** Settings ssoUser */ - ssoUser?: (boolean|null); + ssoUser?: boolean | null; /** Settings onlineAccessOnly */ - onlineAccessOnly?: (boolean|null); + onlineAccessOnly?: boolean | null; /** Settings masterPasswordExpiry */ - masterPasswordExpiry?: (number|null); + masterPasswordExpiry?: number | null; /** Settings twoFactorRequired */ - twoFactorRequired?: (boolean|null); + twoFactorRequired?: boolean | null; /** Settings disallowExport */ - disallowExport?: (boolean|null); + disallowExport?: boolean | null; /** Settings restrictFiles */ - restrictFiles?: (boolean|null); + restrictFiles?: boolean | null; /** Settings restrictAllSharing */ - restrictAllSharing?: (boolean|null); + restrictAllSharing?: boolean | null; /** Settings restrictSharing */ - restrictSharing?: (boolean|null); + restrictSharing?: boolean | null; /** Settings restrictSharingIncomingAll */ - restrictSharingIncomingAll?: (boolean|null); + restrictSharingIncomingAll?: boolean | null; /** Settings restrictSharingIncomingEnterprise */ - restrictSharingIncomingEnterprise?: (boolean|null); + restrictSharingIncomingEnterprise?: boolean | null; /** Settings logoutTimer */ - logoutTimer?: (number|Long|null); + logoutTimer?: number | Long | null; /** Settings persistentLogin */ - persistentLogin?: (boolean|null); + persistentLogin?: boolean | null; /** Settings ipDisableAutoApprove */ - ipDisableAutoApprove?: (boolean|null); + ipDisableAutoApprove?: boolean | null; /** Settings shareDataKeyWithEccPublicKey */ - shareDataKeyWithEccPublicKey?: (boolean|null); + shareDataKeyWithEccPublicKey?: boolean | null; /** Settings shareDataKeyWithDevicePublicKey */ - shareDataKeyWithDevicePublicKey?: (boolean|null); + shareDataKeyWithDevicePublicKey?: boolean | null; /** Settings RecordTypesCounter */ - RecordTypesCounter?: (number|null); + RecordTypesCounter?: number | null; /** Settings RecordTypesEnterpriseCounter */ - RecordTypesEnterpriseCounter?: (number|null); + RecordTypesEnterpriseCounter?: number | null; /** Settings recordTypesEnabled */ - recordTypesEnabled?: (boolean|null); + recordTypesEnabled?: boolean | null; /** Settings canManageRecordTypes */ - canManageRecordTypes?: (boolean|null); + canManageRecordTypes?: boolean | null; /** Settings recordTypesPAMCounter */ - recordTypesPAMCounter?: (number|null); + recordTypesPAMCounter?: number | null; /** Settings logoutTimerMinutes */ - logoutTimerMinutes?: (number|null); + logoutTimerMinutes?: number | null; /** Settings securityKeysNoUserVerify */ - securityKeysNoUserVerify?: (boolean|null); + securityKeysNoUserVerify?: boolean | null; /** Settings channels */ - channels?: (Authentication.TwoFactorChannelType[]|null); + channels?: Authentication.TwoFactorChannelType[] | null; /** Settings personalUsernames */ - personalUsernames?: (string[]|null); + personalUsernames?: string[] | null; } /** Represents a Settings. */ class Settings implements ISettings { - /** * Constructs a new Settings. * @param [properties] Properties to set @@ -39059,7 +41431,7 @@ export namespace AccountSummary { public audit: boolean; /** Settings mustPerformAccountShareBy. */ - public mustPerformAccountShareBy: (number|Long); + public mustPerformAccountShareBy: number | Long; /** Settings shareAccountTo. */ public shareAccountTo: AccountSummary.IMissingAccountShareKey[]; @@ -39131,7 +41503,7 @@ export namespace AccountSummary { public restrictSharingIncomingEnterprise: boolean; /** Settings logoutTimer. */ - public logoutTimer: (number|Long); + public logoutTimer: number | Long; /** Settings persistentLogin. */ public persistentLogin: boolean; @@ -39203,7 +41575,7 @@ export namespace AccountSummary { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): AccountSummary.Settings; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): AccountSummary.Settings; /** * Decodes a Settings message from the specified reader or buffer, length delimited. @@ -39212,14 +41584,14 @@ export namespace AccountSummary { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): AccountSummary.Settings; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): AccountSummary.Settings; /** * Verifies a Settings message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a Settings message from a plain object. Also converts values to their respective internal types. @@ -39234,7 +41606,10 @@ export namespace AccountSummary { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: AccountSummary.Settings, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: AccountSummary.Settings, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this Settings to JSON. @@ -39252,17 +41627,15 @@ export namespace AccountSummary { /** Properties of a KeyValue. */ interface IKeyValue { - /** KeyValue key */ - key?: (string|null); + key?: string | null; /** KeyValue value */ - value?: (string|null); + value?: string | null; } /** Represents a KeyValue. */ class KeyValue implements IKeyValue { - /** * Constructs a new KeyValue. * @param [properties] Properties to set @@ -39306,7 +41679,7 @@ export namespace AccountSummary { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): AccountSummary.KeyValue; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): AccountSummary.KeyValue; /** * Decodes a KeyValue message from the specified reader or buffer, length delimited. @@ -39315,14 +41688,14 @@ export namespace AccountSummary { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): AccountSummary.KeyValue; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): AccountSummary.KeyValue; /** * Verifies a KeyValue message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a KeyValue message from a plain object. Also converts values to their respective internal types. @@ -39337,7 +41710,10 @@ export namespace AccountSummary { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: AccountSummary.KeyValue, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: AccountSummary.KeyValue, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this KeyValue to JSON. @@ -39355,17 +41731,15 @@ export namespace AccountSummary { /** Properties of a KeyValueBoolean. */ interface IKeyValueBoolean { - /** KeyValueBoolean key */ - key?: (string|null); + key?: string | null; /** KeyValueBoolean value */ - value?: (boolean|null); + value?: boolean | null; } /** Represents a KeyValueBoolean. */ class KeyValueBoolean implements IKeyValueBoolean { - /** * Constructs a new KeyValueBoolean. * @param [properties] Properties to set @@ -39399,7 +41773,10 @@ export namespace AccountSummary { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: AccountSummary.IKeyValueBoolean, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: AccountSummary.IKeyValueBoolean, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a KeyValueBoolean message from the specified reader or buffer. @@ -39409,7 +41786,7 @@ export namespace AccountSummary { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): AccountSummary.KeyValueBoolean; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): AccountSummary.KeyValueBoolean; /** * Decodes a KeyValueBoolean message from the specified reader or buffer, length delimited. @@ -39418,14 +41795,14 @@ export namespace AccountSummary { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): AccountSummary.KeyValueBoolean; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): AccountSummary.KeyValueBoolean; /** * Verifies a KeyValueBoolean message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a KeyValueBoolean message from a plain object. Also converts values to their respective internal types. @@ -39440,7 +41817,10 @@ export namespace AccountSummary { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: AccountSummary.KeyValueBoolean, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: AccountSummary.KeyValueBoolean, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this KeyValueBoolean to JSON. @@ -39458,17 +41838,15 @@ export namespace AccountSummary { /** Properties of a KeyValueLong. */ interface IKeyValueLong { - /** KeyValueLong key */ - key?: (string|null); + key?: string | null; /** KeyValueLong value */ - value?: (number|Long|null); + value?: number | Long | null; } /** Represents a KeyValueLong. */ class KeyValueLong implements IKeyValueLong { - /** * Constructs a new KeyValueLong. * @param [properties] Properties to set @@ -39479,7 +41857,7 @@ export namespace AccountSummary { public key: string; /** KeyValueLong value. */ - public value: (number|Long); + public value: number | Long; /** * Creates a new KeyValueLong instance using the specified properties. @@ -39502,7 +41880,10 @@ export namespace AccountSummary { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: AccountSummary.IKeyValueLong, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: AccountSummary.IKeyValueLong, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a KeyValueLong message from the specified reader or buffer. @@ -39512,7 +41893,7 @@ export namespace AccountSummary { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): AccountSummary.KeyValueLong; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): AccountSummary.KeyValueLong; /** * Decodes a KeyValueLong message from the specified reader or buffer, length delimited. @@ -39521,14 +41902,14 @@ export namespace AccountSummary { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): AccountSummary.KeyValueLong; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): AccountSummary.KeyValueLong; /** * Verifies a KeyValueLong message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a KeyValueLong message from a plain object. Also converts values to their respective internal types. @@ -39543,7 +41924,10 @@ export namespace AccountSummary { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: AccountSummary.KeyValueLong, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: AccountSummary.KeyValueLong, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this KeyValueLong to JSON. @@ -39561,20 +41945,18 @@ export namespace AccountSummary { /** Properties of a Result. */ interface IResult { - /** Result resultCode */ - resultCode?: (string|null); + resultCode?: string | null; /** Result message */ - message?: (string|null); + message?: string | null; /** Result result */ - result?: (string|null); + result?: string | null; } /** Represents a Result. */ class Result implements IResult { - /** * Constructs a new Result. * @param [properties] Properties to set @@ -39621,7 +42003,7 @@ export namespace AccountSummary { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): AccountSummary.Result; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): AccountSummary.Result; /** * Decodes a Result message from the specified reader or buffer, length delimited. @@ -39630,14 +42012,14 @@ export namespace AccountSummary { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): AccountSummary.Result; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): AccountSummary.Result; /** * Verifies a Result message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a Result message from a plain object. Also converts values to their respective internal types. @@ -39652,7 +42034,10 @@ export namespace AccountSummary { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: AccountSummary.Result, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: AccountSummary.Result, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this Result to JSON. @@ -39670,23 +42055,21 @@ export namespace AccountSummary { /** Properties of an Enforcements. */ interface IEnforcements { - /** Enforcements strings */ - strings?: (AccountSummary.IKeyValue[]|null); + strings?: AccountSummary.IKeyValue[] | null; /** Enforcements booleans */ - booleans?: (AccountSummary.IKeyValueBoolean[]|null); + booleans?: AccountSummary.IKeyValueBoolean[] | null; /** Enforcements longs */ - longs?: (AccountSummary.IKeyValueLong[]|null); + longs?: AccountSummary.IKeyValueLong[] | null; /** Enforcements jsons */ - jsons?: (AccountSummary.IKeyValue[]|null); + jsons?: AccountSummary.IKeyValue[] | null; } /** Represents an Enforcements. */ class Enforcements implements IEnforcements { - /** * Constructs a new Enforcements. * @param [properties] Properties to set @@ -39726,7 +42109,10 @@ export namespace AccountSummary { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: AccountSummary.IEnforcements, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: AccountSummary.IEnforcements, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes an Enforcements message from the specified reader or buffer. @@ -39736,7 +42122,7 @@ export namespace AccountSummary { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): AccountSummary.Enforcements; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): AccountSummary.Enforcements; /** * Decodes an Enforcements message from the specified reader or buffer, length delimited. @@ -39745,14 +42131,14 @@ export namespace AccountSummary { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): AccountSummary.Enforcements; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): AccountSummary.Enforcements; /** * Verifies an Enforcements message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an Enforcements message from a plain object. Also converts values to their respective internal types. @@ -39767,7 +42153,10 @@ export namespace AccountSummary { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: AccountSummary.Enforcements, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: AccountSummary.Enforcements, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this Enforcements to JSON. @@ -39785,17 +42174,15 @@ export namespace AccountSummary { /** Properties of a MissingAccountShareKey. */ interface IMissingAccountShareKey { - /** MissingAccountShareKey roleId */ - roleId?: (number|Long|null); + roleId?: number | Long | null; /** MissingAccountShareKey publicKey */ - publicKey?: (Uint8Array|null); + publicKey?: Uint8Array | null; } /** Represents a MissingAccountShareKey. */ class MissingAccountShareKey implements IMissingAccountShareKey { - /** * Constructs a new MissingAccountShareKey. * @param [properties] Properties to set @@ -39803,7 +42190,7 @@ export namespace AccountSummary { constructor(properties?: AccountSummary.IMissingAccountShareKey); /** MissingAccountShareKey roleId. */ - public roleId: (number|Long); + public roleId: number | Long; /** MissingAccountShareKey publicKey. */ public publicKey: Uint8Array; @@ -39813,7 +42200,9 @@ export namespace AccountSummary { * @param [properties] Properties to set * @returns MissingAccountShareKey instance */ - public static create(properties?: AccountSummary.IMissingAccountShareKey): AccountSummary.MissingAccountShareKey; + public static create( + properties?: AccountSummary.IMissingAccountShareKey + ): AccountSummary.MissingAccountShareKey; /** * Encodes the specified MissingAccountShareKey message. Does not implicitly {@link AccountSummary.MissingAccountShareKey.verify|verify} messages. @@ -39821,7 +42210,10 @@ export namespace AccountSummary { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: AccountSummary.IMissingAccountShareKey, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: AccountSummary.IMissingAccountShareKey, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified MissingAccountShareKey message, length delimited. Does not implicitly {@link AccountSummary.MissingAccountShareKey.verify|verify} messages. @@ -39829,7 +42221,10 @@ export namespace AccountSummary { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: AccountSummary.IMissingAccountShareKey, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: AccountSummary.IMissingAccountShareKey, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a MissingAccountShareKey message from the specified reader or buffer. @@ -39839,7 +42234,10 @@ export namespace AccountSummary { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): AccountSummary.MissingAccountShareKey; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): AccountSummary.MissingAccountShareKey; /** * Decodes a MissingAccountShareKey message from the specified reader or buffer, length delimited. @@ -39848,14 +42246,14 @@ export namespace AccountSummary { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): AccountSummary.MissingAccountShareKey; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): AccountSummary.MissingAccountShareKey; /** * Verifies a MissingAccountShareKey message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a MissingAccountShareKey message from a plain object. Also converts values to their respective internal types. @@ -39870,7 +42268,10 @@ export namespace AccountSummary { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: AccountSummary.MissingAccountShareKey, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: AccountSummary.MissingAccountShareKey, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this MissingAccountShareKey to JSON. @@ -39888,29 +42289,27 @@ export namespace AccountSummary { /** Properties of a PasswordRule. */ interface IPasswordRule { - /** PasswordRule ruleType */ - ruleType?: (string|null); + ruleType?: string | null; /** PasswordRule pattern */ - pattern?: (string|null); + pattern?: string | null; /** PasswordRule match */ - match?: (boolean|null); + match?: boolean | null; /** PasswordRule minimum */ - minimum?: (number|null); + minimum?: number | null; /** PasswordRule description */ - description?: (string|null); + description?: string | null; /** PasswordRule value */ - value?: (string|null); + value?: string | null; } /** Represents a PasswordRule. */ class PasswordRule implements IPasswordRule { - /** * Constructs a new PasswordRule. * @param [properties] Properties to set @@ -39956,7 +42355,10 @@ export namespace AccountSummary { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: AccountSummary.IPasswordRule, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: AccountSummary.IPasswordRule, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a PasswordRule message from the specified reader or buffer. @@ -39966,7 +42368,7 @@ export namespace AccountSummary { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): AccountSummary.PasswordRule; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): AccountSummary.PasswordRule; /** * Decodes a PasswordRule message from the specified reader or buffer, length delimited. @@ -39975,14 +42377,14 @@ export namespace AccountSummary { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): AccountSummary.PasswordRule; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): AccountSummary.PasswordRule; /** * Verifies a PasswordRule message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a PasswordRule message from a plain object. Also converts values to their respective internal types. @@ -39997,7 +42399,10 @@ export namespace AccountSummary { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: AccountSummary.PasswordRule, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: AccountSummary.PasswordRule, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this PasswordRule to JSON. @@ -40015,26 +42420,24 @@ export namespace AccountSummary { /** Properties of a SecurityKey. */ interface ISecurityKey { - /** SecurityKey deviceId */ - deviceId?: (number|Long|null); + deviceId?: number | Long | null; /** SecurityKey deviceName */ - deviceName?: (string|null); + deviceName?: string | null; /** SecurityKey dateAdded */ - dateAdded?: (number|Long|null); + dateAdded?: number | Long | null; /** SecurityKey isValid */ - isValid?: (boolean|null); + isValid?: boolean | null; /** SecurityKey deviceRegistration */ - deviceRegistration?: (AccountSummary.IDeviceRegistration|null); + deviceRegistration?: AccountSummary.IDeviceRegistration | null; } /** Represents a SecurityKey. */ class SecurityKey implements ISecurityKey { - /** * Constructs a new SecurityKey. * @param [properties] Properties to set @@ -40042,19 +42445,19 @@ export namespace AccountSummary { constructor(properties?: AccountSummary.ISecurityKey); /** SecurityKey deviceId. */ - public deviceId: (number|Long); + public deviceId: number | Long; /** SecurityKey deviceName. */ public deviceName: string; /** SecurityKey dateAdded. */ - public dateAdded: (number|Long); + public dateAdded: number | Long; /** SecurityKey isValid. */ public isValid: boolean; /** SecurityKey deviceRegistration. */ - public deviceRegistration?: (AccountSummary.IDeviceRegistration|null); + public deviceRegistration?: AccountSummary.IDeviceRegistration | null; /** * Creates a new SecurityKey instance using the specified properties. @@ -40077,7 +42480,10 @@ export namespace AccountSummary { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: AccountSummary.ISecurityKey, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: AccountSummary.ISecurityKey, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a SecurityKey message from the specified reader or buffer. @@ -40087,7 +42493,7 @@ export namespace AccountSummary { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): AccountSummary.SecurityKey; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): AccountSummary.SecurityKey; /** * Decodes a SecurityKey message from the specified reader or buffer, length delimited. @@ -40096,14 +42502,14 @@ export namespace AccountSummary { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): AccountSummary.SecurityKey; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): AccountSummary.SecurityKey; /** * Verifies a SecurityKey message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a SecurityKey message from a plain object. Also converts values to their respective internal types. @@ -40118,7 +42524,10 @@ export namespace AccountSummary { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: AccountSummary.SecurityKey, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: AccountSummary.SecurityKey, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this SecurityKey to JSON. @@ -40136,26 +42545,24 @@ export namespace AccountSummary { /** Properties of a DeviceRegistration. */ interface IDeviceRegistration { - /** DeviceRegistration keyHandle */ - keyHandle?: (string|null); + keyHandle?: string | null; /** DeviceRegistration publicKey */ - publicKey?: (Uint8Array|null); + publicKey?: Uint8Array | null; /** DeviceRegistration attestationCert */ - attestationCert?: (string|null); + attestationCert?: string | null; /** DeviceRegistration counter */ - counter?: (number|Long|null); + counter?: number | Long | null; /** DeviceRegistration compromised */ - compromised?: (boolean|null); + compromised?: boolean | null; } /** Represents a DeviceRegistration. */ class DeviceRegistration implements IDeviceRegistration { - /** * Constructs a new DeviceRegistration. * @param [properties] Properties to set @@ -40172,7 +42579,7 @@ export namespace AccountSummary { public attestationCert: string; /** DeviceRegistration counter. */ - public counter: (number|Long); + public counter: number | Long; /** DeviceRegistration compromised. */ public compromised: boolean; @@ -40198,7 +42605,10 @@ export namespace AccountSummary { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: AccountSummary.IDeviceRegistration, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: AccountSummary.IDeviceRegistration, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a DeviceRegistration message from the specified reader or buffer. @@ -40208,7 +42618,7 @@ export namespace AccountSummary { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): AccountSummary.DeviceRegistration; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): AccountSummary.DeviceRegistration; /** * Decodes a DeviceRegistration message from the specified reader or buffer, length delimited. @@ -40217,14 +42627,14 @@ export namespace AccountSummary { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): AccountSummary.DeviceRegistration; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): AccountSummary.DeviceRegistration; /** * Verifies a DeviceRegistration message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a DeviceRegistration message from a plain object. Also converts values to their respective internal types. @@ -40239,7 +42649,10 @@ export namespace AccountSummary { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: AccountSummary.DeviceRegistration, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: AccountSummary.DeviceRegistration, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this DeviceRegistration to JSON. @@ -40257,20 +42670,18 @@ export namespace AccountSummary { /** Properties of a Group. */ interface IGroup { - /** Group admin */ - admin?: (boolean|null); + admin?: boolean | null; /** Group groupVerificationCode */ - groupVerificationCode?: (string|null); + groupVerificationCode?: string | null; /** Group administrator */ - administrator?: (AccountSummary.IAdministrator|null); + administrator?: AccountSummary.IAdministrator | null; } /** Represents a Group. */ class Group implements IGroup { - /** * Constructs a new Group. * @param [properties] Properties to set @@ -40284,7 +42695,7 @@ export namespace AccountSummary { public groupVerificationCode: string; /** Group administrator. */ - public administrator?: (AccountSummary.IAdministrator|null); + public administrator?: AccountSummary.IAdministrator | null; /** * Creates a new Group instance using the specified properties. @@ -40317,7 +42728,7 @@ export namespace AccountSummary { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): AccountSummary.Group; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): AccountSummary.Group; /** * Decodes a Group message from the specified reader or buffer, length delimited. @@ -40326,14 +42737,14 @@ export namespace AccountSummary { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): AccountSummary.Group; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): AccountSummary.Group; /** * Verifies a Group message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a Group message from a plain object. Also converts values to their respective internal types. @@ -40348,7 +42759,10 @@ export namespace AccountSummary { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: AccountSummary.Group, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: AccountSummary.Group, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this Group to JSON. @@ -40366,35 +42780,33 @@ export namespace AccountSummary { /** Properties of an Administrator. */ interface IAdministrator { - /** Administrator firstName */ - firstName?: (string|null); + firstName?: string | null; /** Administrator lastName */ - lastName?: (string|null); + lastName?: string | null; /** Administrator email */ - email?: (string|null); + email?: string | null; /** Administrator currentNumberOfUsers */ - currentNumberOfUsers?: (number|null); + currentNumberOfUsers?: number | null; /** Administrator numberOfUsers */ - numberOfUsers?: (number|null); + numberOfUsers?: number | null; /** Administrator subscriptionCode */ - subscriptionCode?: (string|null); + subscriptionCode?: string | null; /** Administrator expirationDate */ - expirationDate?: (string|null); + expirationDate?: string | null; /** Administrator purchaseDate */ - purchaseDate?: (string|null); + purchaseDate?: string | null; } /** Represents an Administrator. */ class Administrator implements IAdministrator { - /** * Constructs a new Administrator. * @param [properties] Properties to set @@ -40446,7 +42858,10 @@ export namespace AccountSummary { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: AccountSummary.IAdministrator, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: AccountSummary.IAdministrator, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes an Administrator message from the specified reader or buffer. @@ -40456,7 +42871,7 @@ export namespace AccountSummary { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): AccountSummary.Administrator; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): AccountSummary.Administrator; /** * Decodes an Administrator message from the specified reader or buffer, length delimited. @@ -40465,14 +42880,14 @@ export namespace AccountSummary { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): AccountSummary.Administrator; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): AccountSummary.Administrator; /** * Verifies an Administrator message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an Administrator message from a plain object. Also converts values to their respective internal types. @@ -40487,7 +42902,10 @@ export namespace AccountSummary { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: AccountSummary.Administrator, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: AccountSummary.Administrator, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this Administrator to JSON. @@ -40506,7 +42924,6 @@ export namespace AccountSummary { /** Namespace Automator. */ export namespace Automator { - /** * This enumerates the SSO Authentication protocols we support. * We plan to support more protocols in the future. @@ -40514,60 +42931,59 @@ export namespace Automator { enum SsoAuthenticationProtocolType { UNKNOWN_PROTOCOL = 0, SAML2 = 1, - JWT = 2 + JWT = 2, } /** CertificateFormat enum. */ enum CertificateFormat { UNKNOWN_FORMAT = 0, PKCS12 = 1, - JKS = 2 + JKS = 2, } /** Properties of an AutomatorSettingValue. */ interface IAutomatorSettingValue { - /** AutomatorSettingValue settingId */ - settingId?: (number|Long|null); + settingId?: number | Long | null; /** AutomatorSettingValue settingTypeId */ - settingTypeId?: (number|null); + settingTypeId?: number | null; /** AutomatorSettingValue settingTag */ - settingTag?: (string|null); + settingTag?: string | null; /** AutomatorSettingValue settingName */ - settingName?: (string|null); + settingName?: string | null; /** AutomatorSettingValue settingValue */ - settingValue?: (string|null); + settingValue?: string | null; /** AutomatorSettingValue dataType */ - dataType?: (SsoCloud.DataType|null); + dataType?: SsoCloud.DataType | null; /** AutomatorSettingValue lastModified */ - lastModified?: (string|null); + lastModified?: string | null; /** AutomatorSettingValue fromFile */ - fromFile?: (boolean|null); + fromFile?: boolean | null; /** AutomatorSettingValue encrypted */ - encrypted?: (boolean|null); + encrypted?: boolean | null; /** AutomatorSettingValue encoded */ - encoded?: (boolean|null); + encoded?: boolean | null; /** AutomatorSettingValue editable */ - editable?: (boolean|null); + editable?: boolean | null; /** AutomatorSettingValue translated */ - translated?: (boolean|null); + translated?: boolean | null; /** AutomatorSettingValue userVisible */ - userVisible?: (boolean|null); + userVisible?: boolean | null; /** AutomatorSettingValue required */ - required?: (boolean|null); + required?: boolean | null; } /** @@ -40578,7 +42994,6 @@ export namespace Automator { * what type of interface to present to the user (text box, file upload, etc.). */ class AutomatorSettingValue implements IAutomatorSettingValue { - /** * Constructs a new AutomatorSettingValue. * @param [properties] Properties to set @@ -40586,7 +43001,7 @@ export namespace Automator { constructor(properties?: Automator.IAutomatorSettingValue); /** AutomatorSettingValue settingId. */ - public settingId: (number|Long); + public settingId: number | Long; /** AutomatorSettingValue settingTypeId. */ public settingTypeId: number; @@ -40648,7 +43063,10 @@ export namespace Automator { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Automator.IAutomatorSettingValue, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Automator.IAutomatorSettingValue, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes an AutomatorSettingValue message from the specified reader or buffer. @@ -40658,7 +43076,7 @@ export namespace Automator { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Automator.AutomatorSettingValue; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Automator.AutomatorSettingValue; /** * Decodes an AutomatorSettingValue message from the specified reader or buffer, length delimited. @@ -40667,14 +43085,14 @@ export namespace Automator { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Automator.AutomatorSettingValue; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Automator.AutomatorSettingValue; /** * Verifies an AutomatorSettingValue message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an AutomatorSettingValue message from a plain object. Also converts values to their respective internal types. @@ -40689,7 +43107,10 @@ export namespace Automator { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Automator.AutomatorSettingValue, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Automator.AutomatorSettingValue, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this AutomatorSettingValue to JSON. @@ -40707,39 +43128,38 @@ export namespace Automator { /** Properties of an ApproveDeviceRequest. */ interface IApproveDeviceRequest { - /** ApproveDeviceRequest automatorId */ - automatorId?: (number|Long|null); + automatorId?: number | Long | null; /** ApproveDeviceRequest ssoAuthenticationProtocolType */ - ssoAuthenticationProtocolType?: (Automator.SsoAuthenticationProtocolType|null); + ssoAuthenticationProtocolType?: Automator.SsoAuthenticationProtocolType | null; /** ApproveDeviceRequest authMessage */ - authMessage?: (string|null); + authMessage?: string | null; /** ApproveDeviceRequest email */ - email?: (string|null); + email?: string | null; /** ApproveDeviceRequest devicePublicKey */ - devicePublicKey?: (Uint8Array|null); + devicePublicKey?: Uint8Array | null; /** ApproveDeviceRequest serverEccPublicKeyId */ - serverEccPublicKeyId?: (number|null); + serverEccPublicKeyId?: number | null; /** ApproveDeviceRequest userEncryptedDataKey */ - userEncryptedDataKey?: (Uint8Array|null); + userEncryptedDataKey?: Uint8Array | null; /** ApproveDeviceRequest userEncryptedDataKeyType */ - userEncryptedDataKeyType?: (Enterprise.EncryptedKeyType|null); + userEncryptedDataKeyType?: Enterprise.EncryptedKeyType | null; /** ApproveDeviceRequest ipAddress */ - ipAddress?: (string|null); + ipAddress?: string | null; /** ApproveDeviceRequest isTesting */ - isTesting?: (boolean|null); + isTesting?: boolean | null; /** ApproveDeviceRequest isEccOnly */ - isEccOnly?: (boolean|null); + isEccOnly?: boolean | null; } /** @@ -40749,7 +43169,6 @@ export namespace Automator { * */ class ApproveDeviceRequest implements IApproveDeviceRequest { - /** * Constructs a new ApproveDeviceRequest. * @param [properties] Properties to set @@ -40757,7 +43176,7 @@ export namespace Automator { constructor(properties?: Automator.IApproveDeviceRequest); /** ApproveDeviceRequest automatorId. */ - public automatorId: (number|Long); + public automatorId: number | Long; /** ApproveDeviceRequest ssoAuthenticationProtocolType. */ public ssoAuthenticationProtocolType: Automator.SsoAuthenticationProtocolType; @@ -40810,7 +43229,10 @@ export namespace Automator { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Automator.IApproveDeviceRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Automator.IApproveDeviceRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes an ApproveDeviceRequest message from the specified reader or buffer. @@ -40820,7 +43242,7 @@ export namespace Automator { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Automator.ApproveDeviceRequest; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Automator.ApproveDeviceRequest; /** * Decodes an ApproveDeviceRequest message from the specified reader or buffer, length delimited. @@ -40829,14 +43251,14 @@ export namespace Automator { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Automator.ApproveDeviceRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Automator.ApproveDeviceRequest; /** * Verifies an ApproveDeviceRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an ApproveDeviceRequest message from a plain object. Also converts values to their respective internal types. @@ -40851,7 +43273,10 @@ export namespace Automator { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Automator.ApproveDeviceRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Automator.ApproveDeviceRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this ApproveDeviceRequest to JSON. @@ -40869,30 +43294,29 @@ export namespace Automator { /** Properties of a SetupRequest. */ interface ISetupRequest { - /** SetupRequest automatorId */ - automatorId?: (number|Long|null); + automatorId?: number | Long | null; /** SetupRequest serverEccPublicKeyId */ - serverEccPublicKeyId?: (number|null); + serverEccPublicKeyId?: number | null; /** SetupRequest automatorState */ - automatorState?: (Automator.AutomatorState|null); + automatorState?: Automator.AutomatorState | null; /** SetupRequest encryptedEnterprisePrivateEccKey */ - encryptedEnterprisePrivateEccKey?: (Uint8Array|null); + encryptedEnterprisePrivateEccKey?: Uint8Array | null; /** SetupRequest encryptedEnterprisePrivateRsaKey */ - encryptedEnterprisePrivateRsaKey?: (Uint8Array|null); + encryptedEnterprisePrivateRsaKey?: Uint8Array | null; /** SetupRequest automatorSkills */ - automatorSkills?: (Automator.IAutomatorSkill[]|null); + automatorSkills?: Automator.IAutomatorSkill[] | null; /** SetupRequest encryptedTreeKey */ - encryptedTreeKey?: (Uint8Array|null); + encryptedTreeKey?: Uint8Array | null; /** SetupRequest isEccOnly */ - isEccOnly?: (boolean|null); + isEccOnly?: boolean | null; } /** @@ -40904,7 +43328,6 @@ export namespace Automator { * */ class SetupRequest implements ISetupRequest { - /** * Constructs a new SetupRequest. * @param [properties] Properties to set @@ -40912,7 +43335,7 @@ export namespace Automator { constructor(properties?: Automator.ISetupRequest); /** SetupRequest automatorId. */ - public automatorId: (number|Long); + public automatorId: number | Long; /** SetupRequest serverEccPublicKeyId. */ public serverEccPublicKeyId: number; @@ -40966,7 +43389,7 @@ export namespace Automator { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Automator.SetupRequest; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Automator.SetupRequest; /** * Decodes a SetupRequest message from the specified reader or buffer, length delimited. @@ -40975,14 +43398,14 @@ export namespace Automator { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Automator.SetupRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Automator.SetupRequest; /** * Verifies a SetupRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a SetupRequest message from a plain object. Also converts values to their respective internal types. @@ -40997,7 +43420,10 @@ export namespace Automator { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Automator.SetupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Automator.SetupRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this SetupRequest to JSON. @@ -41015,15 +43441,14 @@ export namespace Automator { /** Properties of a StatusRequest. */ interface IStatusRequest { - /** StatusRequest automatorId */ - automatorId?: (number|Long|null); + automatorId?: number | Long | null; /** StatusRequest serverEccPublicKeyId */ - serverEccPublicKeyId?: (number|null); + serverEccPublicKeyId?: number | null; /** StatusRequest isEccOnly */ - isEccOnly?: (boolean|null); + isEccOnly?: boolean | null; } /** @@ -41031,7 +43456,6 @@ export namespace Automator { * This is used to ask the Automator instance for its status via an authenticated REST call. */ class StatusRequest implements IStatusRequest { - /** * Constructs a new StatusRequest. * @param [properties] Properties to set @@ -41039,7 +43463,7 @@ export namespace Automator { constructor(properties?: Automator.IStatusRequest); /** StatusRequest automatorId. */ - public automatorId: (number|Long); + public automatorId: number | Long; /** StatusRequest serverEccPublicKeyId. */ public serverEccPublicKeyId: number; @@ -41078,7 +43502,7 @@ export namespace Automator { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Automator.StatusRequest; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Automator.StatusRequest; /** * Decodes a StatusRequest message from the specified reader or buffer, length delimited. @@ -41087,14 +43511,14 @@ export namespace Automator { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Automator.StatusRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Automator.StatusRequest; /** * Verifies a StatusRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a StatusRequest message from a plain object. Also converts values to their respective internal types. @@ -41109,7 +43533,10 @@ export namespace Automator { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Automator.StatusRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Automator.StatusRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this StatusRequest to JSON. @@ -41127,72 +43554,71 @@ export namespace Automator { /** Properties of an InitializeRequest. */ interface IInitializeRequest { - /** InitializeRequest automatorId */ - automatorId?: (number|Long|null); + automatorId?: number | Long | null; /** InitializeRequest idpMetadata */ - idpMetadata?: (string|null); + idpMetadata?: string | null; /** InitializeRequest idpSigningCertificate */ - idpSigningCertificate?: (Uint8Array|null); + idpSigningCertificate?: Uint8Array | null; /** InitializeRequest ssoEntityId */ - ssoEntityId?: (string|null); + ssoEntityId?: string | null; /** InitializeRequest emailMapping */ - emailMapping?: (string|null); + emailMapping?: string | null; /** InitializeRequest firstnameMapping */ - firstnameMapping?: (string|null); + firstnameMapping?: string | null; /** InitializeRequest lastnameMapping */ - lastnameMapping?: (string|null); + lastnameMapping?: string | null; /** InitializeRequest disabled */ - disabled?: (boolean|null); + disabled?: boolean | null; /** InitializeRequest serverEccPublicKeyId */ - serverEccPublicKeyId?: (number|null); + serverEccPublicKeyId?: number | null; /** InitializeRequest config */ - config?: (Uint8Array|null); + config?: Uint8Array | null; /** InitializeRequest sslMode */ - sslMode?: (string|null); + sslMode?: string | null; /** InitializeRequest persistState */ - persistState?: (boolean|null); + persistState?: boolean | null; /** InitializeRequest disableSniCheck */ - disableSniCheck?: (boolean|null); + disableSniCheck?: boolean | null; /** InitializeRequest sslCertificateFilename */ - sslCertificateFilename?: (string|null); + sslCertificateFilename?: string | null; /** InitializeRequest sslCertificateFilePassword */ - sslCertificateFilePassword?: (string|null); + sslCertificateFilePassword?: string | null; /** InitializeRequest sslCertificateKeyPassword */ - sslCertificateKeyPassword?: (string|null); + sslCertificateKeyPassword?: string | null; /** InitializeRequest sslCertificateContents */ - sslCertificateContents?: (Uint8Array|null); + sslCertificateContents?: Uint8Array | null; /** InitializeRequest automatorHost */ - automatorHost?: (string|null); + automatorHost?: string | null; /** InitializeRequest automatorPort */ - automatorPort?: (string|null); + automatorPort?: string | null; /** InitializeRequest ipAllow */ - ipAllow?: (string|null); + ipAllow?: string | null; /** InitializeRequest ipDeny */ - ipDeny?: (string|null); + ipDeny?: string | null; /** InitializeRequest isEccOnly */ - isEccOnly?: (boolean|null); + isEccOnly?: boolean | null; } /** @@ -41203,7 +43629,6 @@ export namespace Automator { * */ class InitializeRequest implements IInitializeRequest { - /** * Constructs a new InitializeRequest. * @param [properties] Properties to set @@ -41211,7 +43636,7 @@ export namespace Automator { constructor(properties?: Automator.IInitializeRequest); /** InitializeRequest automatorId. */ - public automatorId: (number|Long); + public automatorId: number | Long; /** InitializeRequest idpMetadata. */ public idpMetadata: string; @@ -41297,7 +43722,10 @@ export namespace Automator { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Automator.IInitializeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Automator.IInitializeRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes an InitializeRequest message from the specified reader or buffer. @@ -41307,7 +43735,7 @@ export namespace Automator { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Automator.InitializeRequest; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Automator.InitializeRequest; /** * Decodes an InitializeRequest message from the specified reader or buffer, length delimited. @@ -41316,14 +43744,14 @@ export namespace Automator { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Automator.InitializeRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Automator.InitializeRequest; /** * Verifies an InitializeRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an InitializeRequest message from a plain object. Also converts values to their respective internal types. @@ -41338,7 +43766,10 @@ export namespace Automator { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Automator.InitializeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Automator.InitializeRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this InitializeRequest to JSON. @@ -41356,30 +43787,29 @@ export namespace Automator { /** Properties of a NotInitializedResponse. */ interface INotInitializedResponse { - /** NotInitializedResponse automatorTransmissionKey */ - automatorTransmissionKey?: (Uint8Array|null); + automatorTransmissionKey?: Uint8Array | null; /** NotInitializedResponse signingCertificate */ - signingCertificate?: (Uint8Array|null); + signingCertificate?: Uint8Array | null; /** NotInitializedResponse signingCertificateFilename */ - signingCertificateFilename?: (string|null); + signingCertificateFilename?: string | null; /** NotInitializedResponse signingCertificatePassword */ - signingCertificatePassword?: (string|null); + signingCertificatePassword?: string | null; /** NotInitializedResponse signingKeyPassword */ - signingKeyPassword?: (string|null); + signingKeyPassword?: string | null; /** NotInitializedResponse signingCertificateFormat */ - signingCertificateFormat?: (Automator.CertificateFormat|null); + signingCertificateFormat?: Automator.CertificateFormat | null; /** NotInitializedResponse automatorPublicKey */ - automatorPublicKey?: (Uint8Array|null); + automatorPublicKey?: Uint8Array | null; /** NotInitializedResponse config */ - config?: (Uint8Array|null); + config?: Uint8Array | null; } /** @@ -41392,7 +43822,6 @@ export namespace Automator { * All other messages are encrypted with the automatorTransmissionKey. */ class NotInitializedResponse implements INotInitializedResponse { - /** * Constructs a new NotInitializedResponse. * @param [properties] Properties to set @@ -41444,7 +43873,10 @@ export namespace Automator { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Automator.INotInitializedResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Automator.INotInitializedResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a NotInitializedResponse message from the specified reader or buffer. @@ -41454,7 +43886,7 @@ export namespace Automator { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Automator.NotInitializedResponse; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Automator.NotInitializedResponse; /** * Decodes a NotInitializedResponse message from the specified reader or buffer, length delimited. @@ -41463,14 +43895,14 @@ export namespace Automator { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Automator.NotInitializedResponse; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Automator.NotInitializedResponse; /** * Verifies a NotInitializedResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a NotInitializedResponse message from a plain object. Also converts values to their respective internal types. @@ -41485,7 +43917,10 @@ export namespace Automator { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Automator.NotInitializedResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Automator.NotInitializedResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this NotInitializedResponse to JSON. @@ -41503,42 +43938,41 @@ export namespace Automator { /** Properties of an AutomatorResponse. */ interface IAutomatorResponse { - /** AutomatorResponse automatorId */ - automatorId?: (number|Long|null); + automatorId?: number | Long | null; /** AutomatorResponse enabled */ - enabled?: (boolean|null); + enabled?: boolean | null; /** AutomatorResponse timestamp */ - timestamp?: (number|Long|null); + timestamp?: number | Long | null; /** AutomatorResponse approveDevice */ - approveDevice?: (Automator.IApproveDeviceResponse|null); + approveDevice?: Automator.IApproveDeviceResponse | null; /** AutomatorResponse status */ - status?: (Automator.IStatusResponse|null); + status?: Automator.IStatusResponse | null; /** AutomatorResponse notInitialized */ - notInitialized?: (Automator.INotInitializedResponse|null); + notInitialized?: Automator.INotInitializedResponse | null; /** AutomatorResponse error */ - error?: (Automator.IErrorResponse|null); + error?: Automator.IErrorResponse | null; /** AutomatorResponse approveTeamsForUser */ - approveTeamsForUser?: (Automator.IApproveTeamsForUserResponse|null); + approveTeamsForUser?: Automator.IApproveTeamsForUserResponse | null; /** AutomatorResponse approveTeams */ - approveTeams?: (Automator.IApproveTeamsResponse|null); + approveTeams?: Automator.IApproveTeamsResponse | null; /** AutomatorResponse automatorState */ - automatorState?: (Automator.AutomatorState|null); + automatorState?: Automator.AutomatorState | null; /** AutomatorResponse automatorPublicEccKey */ - automatorPublicEccKey?: (Uint8Array|null); + automatorPublicEccKey?: Uint8Array | null; /** AutomatorResponse version */ - version?: (SemanticVersion.IVersion|null); + version?: SemanticVersion.IVersion | null; } /** @@ -41547,7 +43981,6 @@ export namespace Automator { * Just as in a Keeperapp client, it is encrypted with the one-time transmissionKey sent with the ApiRequest. */ class AutomatorResponse implements IAutomatorResponse { - /** * Constructs a new AutomatorResponse. * @param [properties] Properties to set @@ -41555,31 +43988,31 @@ export namespace Automator { constructor(properties?: Automator.IAutomatorResponse); /** AutomatorResponse automatorId. */ - public automatorId: (number|Long); + public automatorId: number | Long; /** AutomatorResponse enabled. */ public enabled: boolean; /** AutomatorResponse timestamp. */ - public timestamp: (number|Long); + public timestamp: number | Long; /** AutomatorResponse approveDevice. */ - public approveDevice?: (Automator.IApproveDeviceResponse|null); + public approveDevice?: Automator.IApproveDeviceResponse | null; /** AutomatorResponse status. */ - public status?: (Automator.IStatusResponse|null); + public status?: Automator.IStatusResponse | null; /** AutomatorResponse notInitialized. */ - public notInitialized?: (Automator.INotInitializedResponse|null); + public notInitialized?: Automator.INotInitializedResponse | null; /** AutomatorResponse error. */ - public error?: (Automator.IErrorResponse|null); + public error?: Automator.IErrorResponse | null; /** AutomatorResponse approveTeamsForUser. */ - public approveTeamsForUser?: (Automator.IApproveTeamsForUserResponse|null); + public approveTeamsForUser?: Automator.IApproveTeamsForUserResponse | null; /** AutomatorResponse approveTeams. */ - public approveTeams?: (Automator.IApproveTeamsResponse|null); + public approveTeams?: Automator.IApproveTeamsResponse | null; /** AutomatorResponse automatorState. */ public automatorState: Automator.AutomatorState; @@ -41588,10 +44021,16 @@ export namespace Automator { public automatorPublicEccKey: Uint8Array; /** AutomatorResponse version. */ - public version?: (SemanticVersion.IVersion|null); + public version?: SemanticVersion.IVersion | null; /** AutomatorResponse response. */ - public response?: ("approveDevice"|"status"|"notInitialized"|"error"|"approveTeamsForUser"|"approveTeams"); + public response?: + | 'approveDevice' + | 'status' + | 'notInitialized' + | 'error' + | 'approveTeamsForUser' + | 'approveTeams'; /** * Creates a new AutomatorResponse instance using the specified properties. @@ -41614,7 +44053,10 @@ export namespace Automator { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Automator.IAutomatorResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Automator.IAutomatorResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes an AutomatorResponse message from the specified reader or buffer. @@ -41624,7 +44066,7 @@ export namespace Automator { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Automator.AutomatorResponse; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Automator.AutomatorResponse; /** * Decodes an AutomatorResponse message from the specified reader or buffer, length delimited. @@ -41633,14 +44075,14 @@ export namespace Automator { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Automator.AutomatorResponse; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Automator.AutomatorResponse; /** * Verifies an AutomatorResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an AutomatorResponse message from a plain object. Also converts values to their respective internal types. @@ -41655,7 +44097,10 @@ export namespace Automator { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Automator.AutomatorResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Automator.AutomatorResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this AutomatorResponse to JSON. @@ -41673,18 +44118,17 @@ export namespace Automator { /** Properties of an ApproveDeviceResponse. */ interface IApproveDeviceResponse { - /** ApproveDeviceResponse approved */ - approved?: (boolean|null); + approved?: boolean | null; /** ApproveDeviceResponse encryptedUserDataKey */ - encryptedUserDataKey?: (Uint8Array|null); + encryptedUserDataKey?: Uint8Array | null; /** ApproveDeviceResponse message */ - message?: (string|null); + message?: string | null; /** ApproveDeviceResponse encryptedUserDataKeyType */ - encryptedUserDataKeyType?: (Enterprise.EncryptedKeyType|null); + encryptedUserDataKeyType?: Enterprise.EncryptedKeyType | null; } /** @@ -41693,7 +44137,6 @@ export namespace Automator { * There will be a message in the 'message' field of the AutomatorResponse if the device was not approved. */ class ApproveDeviceResponse implements IApproveDeviceResponse { - /** * Constructs a new ApproveDeviceResponse. * @param [properties] Properties to set @@ -41733,7 +44176,10 @@ export namespace Automator { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Automator.IApproveDeviceResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Automator.IApproveDeviceResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes an ApproveDeviceResponse message from the specified reader or buffer. @@ -41743,7 +44189,7 @@ export namespace Automator { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Automator.ApproveDeviceResponse; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Automator.ApproveDeviceResponse; /** * Decodes an ApproveDeviceResponse message from the specified reader or buffer, length delimited. @@ -41752,14 +44198,14 @@ export namespace Automator { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Automator.ApproveDeviceResponse; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Automator.ApproveDeviceResponse; /** * Verifies an ApproveDeviceResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an ApproveDeviceResponse message from a plain object. Also converts values to their respective internal types. @@ -41774,7 +44220,10 @@ export namespace Automator { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Automator.ApproveDeviceResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Automator.ApproveDeviceResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this ApproveDeviceResponse to JSON. @@ -41792,51 +44241,50 @@ export namespace Automator { /** Properties of a StatusResponse. */ interface IStatusResponse { - /** StatusResponse initialized */ - initialized?: (boolean|null); + initialized?: boolean | null; /** StatusResponse enabledTimestamp */ - enabledTimestamp?: (number|Long|null); + enabledTimestamp?: number | Long | null; /** StatusResponse initializedTimestamp */ - initializedTimestamp?: (number|Long|null); + initializedTimestamp?: number | Long | null; /** StatusResponse updatedTimestamp */ - updatedTimestamp?: (number|Long|null); + updatedTimestamp?: number | Long | null; /** StatusResponse numberOfDevicesApproved */ - numberOfDevicesApproved?: (number|Long|null); + numberOfDevicesApproved?: number | Long | null; /** StatusResponse numberOfDevicesDenied */ - numberOfDevicesDenied?: (number|Long|null); + numberOfDevicesDenied?: number | Long | null; /** StatusResponse numberOfErrors */ - numberOfErrors?: (number|Long|null); + numberOfErrors?: number | Long | null; /** StatusResponse sslCertificateExpiration */ - sslCertificateExpiration?: (number|Long|null); + sslCertificateExpiration?: number | Long | null; /** StatusResponse notInitializedResponse */ - notInitializedResponse?: (Automator.INotInitializedResponse|null); + notInitializedResponse?: Automator.INotInitializedResponse | null; /** StatusResponse config */ - config?: (Uint8Array|null); + config?: Uint8Array | null; /** StatusResponse numberOfTeamMembershipsApproved */ - numberOfTeamMembershipsApproved?: (number|Long|null); + numberOfTeamMembershipsApproved?: number | Long | null; /** StatusResponse numberOfTeamMembershipsDenied */ - numberOfTeamMembershipsDenied?: (number|Long|null); + numberOfTeamMembershipsDenied?: number | Long | null; /** StatusResponse numberOfTeamsApproved */ - numberOfTeamsApproved?: (number|Long|null); + numberOfTeamsApproved?: number | Long | null; /** StatusResponse numberOfTeamsDenied */ - numberOfTeamsDenied?: (number|Long|null); + numberOfTeamsDenied?: number | Long | null; /** StatusResponse sslCertificateInfo */ - sslCertificateInfo?: (Automator.ISSLCertificateInfo[]|null); + sslCertificateInfo?: Automator.ISSLCertificateInfo[] | null; } /** @@ -41847,7 +44295,6 @@ export namespace Automator { * contains information about the signing certificate used by the Automator. */ class StatusResponse implements IStatusResponse { - /** * Constructs a new StatusResponse. * @param [properties] Properties to set @@ -41858,43 +44305,43 @@ export namespace Automator { public initialized: boolean; /** StatusResponse enabledTimestamp. */ - public enabledTimestamp: (number|Long); + public enabledTimestamp: number | Long; /** StatusResponse initializedTimestamp. */ - public initializedTimestamp: (number|Long); + public initializedTimestamp: number | Long; /** StatusResponse updatedTimestamp. */ - public updatedTimestamp: (number|Long); + public updatedTimestamp: number | Long; /** StatusResponse numberOfDevicesApproved. */ - public numberOfDevicesApproved: (number|Long); + public numberOfDevicesApproved: number | Long; /** StatusResponse numberOfDevicesDenied. */ - public numberOfDevicesDenied: (number|Long); + public numberOfDevicesDenied: number | Long; /** StatusResponse numberOfErrors. */ - public numberOfErrors: (number|Long); + public numberOfErrors: number | Long; /** StatusResponse sslCertificateExpiration. */ - public sslCertificateExpiration: (number|Long); + public sslCertificateExpiration: number | Long; /** StatusResponse notInitializedResponse. */ - public notInitializedResponse?: (Automator.INotInitializedResponse|null); + public notInitializedResponse?: Automator.INotInitializedResponse | null; /** StatusResponse config. */ public config: Uint8Array; /** StatusResponse numberOfTeamMembershipsApproved. */ - public numberOfTeamMembershipsApproved: (number|Long); + public numberOfTeamMembershipsApproved: number | Long; /** StatusResponse numberOfTeamMembershipsDenied. */ - public numberOfTeamMembershipsDenied: (number|Long); + public numberOfTeamMembershipsDenied: number | Long; /** StatusResponse numberOfTeamsApproved. */ - public numberOfTeamsApproved: (number|Long); + public numberOfTeamsApproved: number | Long; /** StatusResponse numberOfTeamsDenied. */ - public numberOfTeamsDenied: (number|Long); + public numberOfTeamsDenied: number | Long; /** StatusResponse sslCertificateInfo. */ public sslCertificateInfo: Automator.ISSLCertificateInfo[]; @@ -41930,7 +44377,7 @@ export namespace Automator { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Automator.StatusResponse; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Automator.StatusResponse; /** * Decodes a StatusResponse message from the specified reader or buffer, length delimited. @@ -41939,14 +44386,14 @@ export namespace Automator { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Automator.StatusResponse; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Automator.StatusResponse; /** * Verifies a StatusResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a StatusResponse message from a plain object. Also converts values to their respective internal types. @@ -41961,7 +44408,10 @@ export namespace Automator { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Automator.StatusResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Automator.StatusResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this StatusResponse to JSON. @@ -41979,9 +44429,8 @@ export namespace Automator { /** Properties of an ErrorResponse. */ interface IErrorResponse { - /** ErrorResponse message */ - message?: (string|null); + message?: string | null; } /** @@ -41989,7 +44438,6 @@ export namespace Automator { * Includes error information, if the Automator encountered an error during processing. */ class ErrorResponse implements IErrorResponse { - /** * Constructs a new ErrorResponse. * @param [properties] Properties to set @@ -42030,7 +44478,7 @@ export namespace Automator { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Automator.ErrorResponse; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Automator.ErrorResponse; /** * Decodes an ErrorResponse message from the specified reader or buffer, length delimited. @@ -42039,14 +44487,14 @@ export namespace Automator { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Automator.ErrorResponse; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Automator.ErrorResponse; /** * Verifies an ErrorResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an ErrorResponse message from a plain object. Also converts values to their respective internal types. @@ -42061,7 +44509,10 @@ export namespace Automator { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Automator.ErrorResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Automator.ErrorResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this ErrorResponse to JSON. @@ -42082,23 +44533,22 @@ export namespace Automator { UNKNOWN_SKILL_TYPE = 0, DEVICE_APPROVAL = 1, TEAM_APPROVAL = 2, - TEAM_FOR_USER_APPROVAL = 3 + TEAM_FOR_USER_APPROVAL = 3, } /** Properties of a LogEntry. */ interface ILogEntry { - /** LogEntry serverTime */ - serverTime?: (string|null); + serverTime?: string | null; /** LogEntry messageLevel */ - messageLevel?: (string|null); + messageLevel?: string | null; /** LogEntry component */ - component?: (string|null); + component?: string | null; /** LogEntry message */ - message?: (string|null); + message?: string | null; } /** @@ -42108,7 +44558,6 @@ export namespace Automator { * Included in AdminResponse. */ class LogEntry implements ILogEntry { - /** * Constructs a new LogEntry. * @param [properties] Properties to set @@ -42158,7 +44607,7 @@ export namespace Automator { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Automator.LogEntry; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Automator.LogEntry; /** * Decodes a LogEntry message from the specified reader or buffer, length delimited. @@ -42167,14 +44616,14 @@ export namespace Automator { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Automator.LogEntry; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Automator.LogEntry; /** * Verifies a LogEntry message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a LogEntry message from a plain object. Also converts values to their respective internal types. @@ -42189,7 +44638,10 @@ export namespace Automator { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Automator.LogEntry, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Automator.LogEntry, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this LogEntry to JSON. @@ -42216,20 +44668,19 @@ export namespace Automator { ERROR = 2, NEEDS_INITIALIZATION = 3, NEEDS_CRYPTO_STEP_1 = 4, - NEEDS_CRYPTO_STEP_2 = 5 + NEEDS_CRYPTO_STEP_2 = 5, } /** Properties of an AdminResponse. */ interface IAdminResponse { - /** AdminResponse success */ - success?: (boolean|null); + success?: boolean | null; /** AdminResponse message */ - message?: (string|null); + message?: string | null; /** AdminResponse automatorInfo */ - automatorInfo?: (Automator.IAutomatorInfo[]|null); + automatorInfo?: Automator.IAutomatorInfo[] | null; } /** @@ -42239,7 +44690,6 @@ export namespace Automator { * There can be more than one Automator on a Node so that's why this is a multi-response. */ class AdminResponse implements IAdminResponse { - /** * Constructs a new AdminResponse. * @param [properties] Properties to set @@ -42286,7 +44736,7 @@ export namespace Automator { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Automator.AdminResponse; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Automator.AdminResponse; /** * Decodes an AdminResponse message from the specified reader or buffer, length delimited. @@ -42295,14 +44745,14 @@ export namespace Automator { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Automator.AdminResponse; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Automator.AdminResponse; /** * Verifies an AdminResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an AdminResponse message from a plain object. Also converts values to their respective internal types. @@ -42317,7 +44767,10 @@ export namespace Automator { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Automator.AdminResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Automator.AdminResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this AdminResponse to JSON. @@ -42335,44 +44788,42 @@ export namespace Automator { /** Properties of an AutomatorInfo. */ interface IAutomatorInfo { - /** AutomatorInfo automatorId */ - automatorId?: (number|Long|null); + automatorId?: number | Long | null; /** AutomatorInfo nodeId */ - nodeId?: (number|Long|null); + nodeId?: number | Long | null; /** AutomatorInfo name */ - name?: (string|null); + name?: string | null; /** AutomatorInfo enabled */ - enabled?: (boolean|null); + enabled?: boolean | null; /** AutomatorInfo url */ - url?: (string|null); + url?: string | null; /** AutomatorInfo automatorSkills */ - automatorSkills?: (Automator.IAutomatorSkill[]|null); + automatorSkills?: Automator.IAutomatorSkill[] | null; /** AutomatorInfo automatorSettingValues */ - automatorSettingValues?: (Automator.IAutomatorSettingValue[]|null); + automatorSettingValues?: Automator.IAutomatorSettingValue[] | null; /** AutomatorInfo status */ - status?: (Automator.IStatusResponse|null); + status?: Automator.IStatusResponse | null; /** AutomatorInfo logEntries */ - logEntries?: (Automator.ILogEntry[]|null); + logEntries?: Automator.ILogEntry[] | null; /** AutomatorInfo automatorState */ - automatorState?: (Automator.AutomatorState|null); + automatorState?: Automator.AutomatorState | null; /** AutomatorInfo version */ - version?: (string|null); + version?: string | null; } /** Information about an automator for a client that is configuring an Automator. */ class AutomatorInfo implements IAutomatorInfo { - /** * Constructs a new AutomatorInfo. * @param [properties] Properties to set @@ -42380,10 +44831,10 @@ export namespace Automator { constructor(properties?: Automator.IAutomatorInfo); /** AutomatorInfo automatorId. */ - public automatorId: (number|Long); + public automatorId: number | Long; /** AutomatorInfo nodeId. */ - public nodeId: (number|Long); + public nodeId: number | Long; /** AutomatorInfo name. */ public name: string; @@ -42401,7 +44852,7 @@ export namespace Automator { public automatorSettingValues: Automator.IAutomatorSettingValue[]; /** AutomatorInfo status. */ - public status?: (Automator.IStatusResponse|null); + public status?: Automator.IStatusResponse | null; /** AutomatorInfo logEntries. */ public logEntries: Automator.ILogEntry[]; @@ -42443,7 +44894,7 @@ export namespace Automator { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Automator.AutomatorInfo; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Automator.AutomatorInfo; /** * Decodes an AutomatorInfo message from the specified reader or buffer, length delimited. @@ -42452,14 +44903,14 @@ export namespace Automator { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Automator.AutomatorInfo; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Automator.AutomatorInfo; /** * Verifies an AutomatorInfo message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an AutomatorInfo message from a plain object. Also converts values to their respective internal types. @@ -42474,7 +44925,10 @@ export namespace Automator { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Automator.AutomatorInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Automator.AutomatorInfo, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this AutomatorInfo to JSON. @@ -42492,15 +44946,14 @@ export namespace Automator { /** Properties of an AdminCreateAutomatorRequest. */ interface IAdminCreateAutomatorRequest { - /** AdminCreateAutomatorRequest nodeId */ - nodeId?: (number|Long|null); + nodeId?: number | Long | null; /** AdminCreateAutomatorRequest name */ - name?: (string|null); + name?: string | null; /** AdminCreateAutomatorRequest skill */ - skill?: (Automator.IAutomatorSkill|null); + skill?: Automator.IAutomatorSkill | null; } /** @@ -42510,7 +44963,6 @@ export namespace Automator { * Returns AdminResponse */ class AdminCreateAutomatorRequest implements IAdminCreateAutomatorRequest { - /** * Constructs a new AdminCreateAutomatorRequest. * @param [properties] Properties to set @@ -42518,20 +44970,22 @@ export namespace Automator { constructor(properties?: Automator.IAdminCreateAutomatorRequest); /** AdminCreateAutomatorRequest nodeId. */ - public nodeId: (number|Long); + public nodeId: number | Long; /** AdminCreateAutomatorRequest name. */ public name: string; /** AdminCreateAutomatorRequest skill. */ - public skill?: (Automator.IAutomatorSkill|null); + public skill?: Automator.IAutomatorSkill | null; /** * Creates a new AdminCreateAutomatorRequest instance using the specified properties. * @param [properties] Properties to set * @returns AdminCreateAutomatorRequest instance */ - public static create(properties?: Automator.IAdminCreateAutomatorRequest): Automator.AdminCreateAutomatorRequest; + public static create( + properties?: Automator.IAdminCreateAutomatorRequest + ): Automator.AdminCreateAutomatorRequest; /** * Encodes the specified AdminCreateAutomatorRequest message. Does not implicitly {@link Automator.AdminCreateAutomatorRequest.verify|verify} messages. @@ -42539,7 +44993,10 @@ export namespace Automator { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Automator.IAdminCreateAutomatorRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Automator.IAdminCreateAutomatorRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified AdminCreateAutomatorRequest message, length delimited. Does not implicitly {@link Automator.AdminCreateAutomatorRequest.verify|verify} messages. @@ -42547,7 +45004,10 @@ export namespace Automator { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Automator.IAdminCreateAutomatorRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Automator.IAdminCreateAutomatorRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes an AdminCreateAutomatorRequest message from the specified reader or buffer. @@ -42557,7 +45017,10 @@ export namespace Automator { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Automator.AdminCreateAutomatorRequest; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Automator.AdminCreateAutomatorRequest; /** * Decodes an AdminCreateAutomatorRequest message from the specified reader or buffer, length delimited. @@ -42566,14 +45029,14 @@ export namespace Automator { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Automator.AdminCreateAutomatorRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Automator.AdminCreateAutomatorRequest; /** * Verifies an AdminCreateAutomatorRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an AdminCreateAutomatorRequest message from a plain object. Also converts values to their respective internal types. @@ -42588,7 +45051,10 @@ export namespace Automator { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Automator.AdminCreateAutomatorRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Automator.AdminCreateAutomatorRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this AdminCreateAutomatorRequest to JSON. @@ -42606,9 +45072,8 @@ export namespace Automator { /** Properties of an AdminDeleteAutomatorRequest. */ interface IAdminDeleteAutomatorRequest { - /** AdminDeleteAutomatorRequest automatorId */ - automatorId?: (number|Long|null); + automatorId?: number | Long | null; } /** @@ -42620,7 +45085,6 @@ export namespace Automator { * Returns AdminResponse */ class AdminDeleteAutomatorRequest implements IAdminDeleteAutomatorRequest { - /** * Constructs a new AdminDeleteAutomatorRequest. * @param [properties] Properties to set @@ -42628,14 +45092,16 @@ export namespace Automator { constructor(properties?: Automator.IAdminDeleteAutomatorRequest); /** AdminDeleteAutomatorRequest automatorId. */ - public automatorId: (number|Long); + public automatorId: number | Long; /** * Creates a new AdminDeleteAutomatorRequest instance using the specified properties. * @param [properties] Properties to set * @returns AdminDeleteAutomatorRequest instance */ - public static create(properties?: Automator.IAdminDeleteAutomatorRequest): Automator.AdminDeleteAutomatorRequest; + public static create( + properties?: Automator.IAdminDeleteAutomatorRequest + ): Automator.AdminDeleteAutomatorRequest; /** * Encodes the specified AdminDeleteAutomatorRequest message. Does not implicitly {@link Automator.AdminDeleteAutomatorRequest.verify|verify} messages. @@ -42643,7 +45109,10 @@ export namespace Automator { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Automator.IAdminDeleteAutomatorRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Automator.IAdminDeleteAutomatorRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified AdminDeleteAutomatorRequest message, length delimited. Does not implicitly {@link Automator.AdminDeleteAutomatorRequest.verify|verify} messages. @@ -42651,7 +45120,10 @@ export namespace Automator { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Automator.IAdminDeleteAutomatorRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Automator.IAdminDeleteAutomatorRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes an AdminDeleteAutomatorRequest message from the specified reader or buffer. @@ -42661,7 +45133,10 @@ export namespace Automator { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Automator.AdminDeleteAutomatorRequest; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Automator.AdminDeleteAutomatorRequest; /** * Decodes an AdminDeleteAutomatorRequest message from the specified reader or buffer, length delimited. @@ -42670,14 +45145,14 @@ export namespace Automator { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Automator.AdminDeleteAutomatorRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Automator.AdminDeleteAutomatorRequest; /** * Verifies an AdminDeleteAutomatorRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an AdminDeleteAutomatorRequest message from a plain object. Also converts values to their respective internal types. @@ -42692,7 +45167,10 @@ export namespace Automator { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Automator.AdminDeleteAutomatorRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Automator.AdminDeleteAutomatorRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this AdminDeleteAutomatorRequest to JSON. @@ -42710,9 +45188,8 @@ export namespace Automator { /** Properties of an AdminGetAutomatorsOnNodeRequest. */ interface IAdminGetAutomatorsOnNodeRequest { - /** AdminGetAutomatorsOnNodeRequest nodeId */ - nodeId?: (number|Long|null); + nodeId?: number | Long | null; } /** @@ -42723,7 +45200,6 @@ export namespace Automator { * Returns AdminResponse */ class AdminGetAutomatorsOnNodeRequest implements IAdminGetAutomatorsOnNodeRequest { - /** * Constructs a new AdminGetAutomatorsOnNodeRequest. * @param [properties] Properties to set @@ -42731,14 +45207,16 @@ export namespace Automator { constructor(properties?: Automator.IAdminGetAutomatorsOnNodeRequest); /** AdminGetAutomatorsOnNodeRequest nodeId. */ - public nodeId: (number|Long); + public nodeId: number | Long; /** * Creates a new AdminGetAutomatorsOnNodeRequest instance using the specified properties. * @param [properties] Properties to set * @returns AdminGetAutomatorsOnNodeRequest instance */ - public static create(properties?: Automator.IAdminGetAutomatorsOnNodeRequest): Automator.AdminGetAutomatorsOnNodeRequest; + public static create( + properties?: Automator.IAdminGetAutomatorsOnNodeRequest + ): Automator.AdminGetAutomatorsOnNodeRequest; /** * Encodes the specified AdminGetAutomatorsOnNodeRequest message. Does not implicitly {@link Automator.AdminGetAutomatorsOnNodeRequest.verify|verify} messages. @@ -42746,7 +45224,10 @@ export namespace Automator { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Automator.IAdminGetAutomatorsOnNodeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Automator.IAdminGetAutomatorsOnNodeRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified AdminGetAutomatorsOnNodeRequest message, length delimited. Does not implicitly {@link Automator.AdminGetAutomatorsOnNodeRequest.verify|verify} messages. @@ -42754,7 +45235,10 @@ export namespace Automator { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Automator.IAdminGetAutomatorsOnNodeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Automator.IAdminGetAutomatorsOnNodeRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes an AdminGetAutomatorsOnNodeRequest message from the specified reader or buffer. @@ -42764,7 +45248,10 @@ export namespace Automator { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Automator.AdminGetAutomatorsOnNodeRequest; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Automator.AdminGetAutomatorsOnNodeRequest; /** * Decodes an AdminGetAutomatorsOnNodeRequest message from the specified reader or buffer, length delimited. @@ -42773,14 +45260,14 @@ export namespace Automator { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Automator.AdminGetAutomatorsOnNodeRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Automator.AdminGetAutomatorsOnNodeRequest; /** * Verifies an AdminGetAutomatorsOnNodeRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an AdminGetAutomatorsOnNodeRequest message from a plain object. Also converts values to their respective internal types. @@ -42795,7 +45282,10 @@ export namespace Automator { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Automator.AdminGetAutomatorsOnNodeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Automator.AdminGetAutomatorsOnNodeRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this AdminGetAutomatorsOnNodeRequest to JSON. @@ -42813,9 +45303,8 @@ export namespace Automator { /** Properties of an AdminGetAutomatorsForEnterpriseRequest. */ interface IAdminGetAutomatorsForEnterpriseRequest { - /** AdminGetAutomatorsForEnterpriseRequest enterpriseId */ - enterpriseId?: (number|null); + enterpriseId?: number | null; } /** @@ -42827,7 +45316,6 @@ export namespace Automator { * Returns AdminResponse */ class AdminGetAutomatorsForEnterpriseRequest implements IAdminGetAutomatorsForEnterpriseRequest { - /** * Constructs a new AdminGetAutomatorsForEnterpriseRequest. * @param [properties] Properties to set @@ -42842,7 +45330,9 @@ export namespace Automator { * @param [properties] Properties to set * @returns AdminGetAutomatorsForEnterpriseRequest instance */ - public static create(properties?: Automator.IAdminGetAutomatorsForEnterpriseRequest): Automator.AdminGetAutomatorsForEnterpriseRequest; + public static create( + properties?: Automator.IAdminGetAutomatorsForEnterpriseRequest + ): Automator.AdminGetAutomatorsForEnterpriseRequest; /** * Encodes the specified AdminGetAutomatorsForEnterpriseRequest message. Does not implicitly {@link Automator.AdminGetAutomatorsForEnterpriseRequest.verify|verify} messages. @@ -42850,7 +45340,10 @@ export namespace Automator { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Automator.IAdminGetAutomatorsForEnterpriseRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Automator.IAdminGetAutomatorsForEnterpriseRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified AdminGetAutomatorsForEnterpriseRequest message, length delimited. Does not implicitly {@link Automator.AdminGetAutomatorsForEnterpriseRequest.verify|verify} messages. @@ -42858,7 +45351,10 @@ export namespace Automator { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Automator.IAdminGetAutomatorsForEnterpriseRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Automator.IAdminGetAutomatorsForEnterpriseRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes an AdminGetAutomatorsForEnterpriseRequest message from the specified reader or buffer. @@ -42868,7 +45364,10 @@ export namespace Automator { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Automator.AdminGetAutomatorsForEnterpriseRequest; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Automator.AdminGetAutomatorsForEnterpriseRequest; /** * Decodes an AdminGetAutomatorsForEnterpriseRequest message from the specified reader or buffer, length delimited. @@ -42877,14 +45376,16 @@ export namespace Automator { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Automator.AdminGetAutomatorsForEnterpriseRequest; + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array + ): Automator.AdminGetAutomatorsForEnterpriseRequest; /** * Verifies an AdminGetAutomatorsForEnterpriseRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an AdminGetAutomatorsForEnterpriseRequest message from a plain object. Also converts values to their respective internal types. @@ -42899,7 +45400,10 @@ export namespace Automator { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Automator.AdminGetAutomatorsForEnterpriseRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Automator.AdminGetAutomatorsForEnterpriseRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this AdminGetAutomatorsForEnterpriseRequest to JSON. @@ -42917,9 +45421,8 @@ export namespace Automator { /** Properties of an AdminGetAutomatorRequest. */ interface IAdminGetAutomatorRequest { - /** AdminGetAutomatorRequest automatorId */ - automatorId?: (number|Long|null); + automatorId?: number | Long | null; } /** @@ -42928,7 +45431,6 @@ export namespace Automator { * Returns AdminResponse */ class AdminGetAutomatorRequest implements IAdminGetAutomatorRequest { - /** * Constructs a new AdminGetAutomatorRequest. * @param [properties] Properties to set @@ -42936,7 +45438,7 @@ export namespace Automator { constructor(properties?: Automator.IAdminGetAutomatorRequest); /** AdminGetAutomatorRequest automatorId. */ - public automatorId: (number|Long); + public automatorId: number | Long; /** * Creates a new AdminGetAutomatorRequest instance using the specified properties. @@ -42959,7 +45461,10 @@ export namespace Automator { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Automator.IAdminGetAutomatorRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Automator.IAdminGetAutomatorRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes an AdminGetAutomatorRequest message from the specified reader or buffer. @@ -42969,7 +45474,10 @@ export namespace Automator { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Automator.AdminGetAutomatorRequest; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Automator.AdminGetAutomatorRequest; /** * Decodes an AdminGetAutomatorRequest message from the specified reader or buffer, length delimited. @@ -42978,14 +45486,14 @@ export namespace Automator { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Automator.AdminGetAutomatorRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Automator.AdminGetAutomatorRequest; /** * Verifies an AdminGetAutomatorRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an AdminGetAutomatorRequest message from a plain object. Also converts values to their respective internal types. @@ -43000,7 +45508,10 @@ export namespace Automator { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Automator.AdminGetAutomatorRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Automator.AdminGetAutomatorRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this AdminGetAutomatorRequest to JSON. @@ -43018,12 +45529,11 @@ export namespace Automator { /** Properties of an AdminEnableAutomatorRequest. */ interface IAdminEnableAutomatorRequest { - /** AdminEnableAutomatorRequest automatorId */ - automatorId?: (number|Long|null); + automatorId?: number | Long | null; /** AdminEnableAutomatorRequest enabled */ - enabled?: (boolean|null); + enabled?: boolean | null; } /** @@ -43032,7 +45542,6 @@ export namespace Automator { * Returns AdminResponse */ class AdminEnableAutomatorRequest implements IAdminEnableAutomatorRequest { - /** * Constructs a new AdminEnableAutomatorRequest. * @param [properties] Properties to set @@ -43040,7 +45549,7 @@ export namespace Automator { constructor(properties?: Automator.IAdminEnableAutomatorRequest); /** AdminEnableAutomatorRequest automatorId. */ - public automatorId: (number|Long); + public automatorId: number | Long; /** AdminEnableAutomatorRequest enabled. */ public enabled: boolean; @@ -43050,7 +45559,9 @@ export namespace Automator { * @param [properties] Properties to set * @returns AdminEnableAutomatorRequest instance */ - public static create(properties?: Automator.IAdminEnableAutomatorRequest): Automator.AdminEnableAutomatorRequest; + public static create( + properties?: Automator.IAdminEnableAutomatorRequest + ): Automator.AdminEnableAutomatorRequest; /** * Encodes the specified AdminEnableAutomatorRequest message. Does not implicitly {@link Automator.AdminEnableAutomatorRequest.verify|verify} messages. @@ -43058,7 +45569,10 @@ export namespace Automator { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Automator.IAdminEnableAutomatorRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Automator.IAdminEnableAutomatorRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified AdminEnableAutomatorRequest message, length delimited. Does not implicitly {@link Automator.AdminEnableAutomatorRequest.verify|verify} messages. @@ -43066,7 +45580,10 @@ export namespace Automator { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Automator.IAdminEnableAutomatorRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Automator.IAdminEnableAutomatorRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes an AdminEnableAutomatorRequest message from the specified reader or buffer. @@ -43076,7 +45593,10 @@ export namespace Automator { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Automator.AdminEnableAutomatorRequest; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Automator.AdminEnableAutomatorRequest; /** * Decodes an AdminEnableAutomatorRequest message from the specified reader or buffer, length delimited. @@ -43085,14 +45605,14 @@ export namespace Automator { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Automator.AdminEnableAutomatorRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Automator.AdminEnableAutomatorRequest; /** * Verifies an AdminEnableAutomatorRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an AdminEnableAutomatorRequest message from a plain object. Also converts values to their respective internal types. @@ -43107,7 +45627,10 @@ export namespace Automator { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Automator.AdminEnableAutomatorRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Automator.AdminEnableAutomatorRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this AdminEnableAutomatorRequest to JSON. @@ -43125,24 +45648,23 @@ export namespace Automator { /** Properties of an AdminEditAutomatorRequest. */ interface IAdminEditAutomatorRequest { - /** AdminEditAutomatorRequest automatorId */ - automatorId?: (number|Long|null); + automatorId?: number | Long | null; /** AdminEditAutomatorRequest name */ - name?: (string|null); + name?: string | null; /** AdminEditAutomatorRequest enabled */ - enabled?: (boolean|null); + enabled?: boolean | null; /** AdminEditAutomatorRequest url */ - url?: (string|null); + url?: string | null; /** AdminEditAutomatorRequest skillTypes */ - skillTypes?: (Automator.SkillType[]|null); + skillTypes?: Automator.SkillType[] | null; /** AdminEditAutomatorRequest automatorSettingValues */ - automatorSettingValues?: (Automator.IAutomatorSettingValue[]|null); + automatorSettingValues?: Automator.IAutomatorSettingValue[] | null; } /** @@ -43153,7 +45675,6 @@ export namespace Automator { * Returns AdminResponse with all current settings */ class AdminEditAutomatorRequest implements IAdminEditAutomatorRequest { - /** * Constructs a new AdminEditAutomatorRequest. * @param [properties] Properties to set @@ -43161,7 +45682,7 @@ export namespace Automator { constructor(properties?: Automator.IAdminEditAutomatorRequest); /** AdminEditAutomatorRequest automatorId. */ - public automatorId: (number|Long); + public automatorId: number | Long; /** AdminEditAutomatorRequest name. */ public name: string; @@ -43191,7 +45712,10 @@ export namespace Automator { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Automator.IAdminEditAutomatorRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Automator.IAdminEditAutomatorRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified AdminEditAutomatorRequest message, length delimited. Does not implicitly {@link Automator.AdminEditAutomatorRequest.verify|verify} messages. @@ -43199,7 +45723,10 @@ export namespace Automator { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Automator.IAdminEditAutomatorRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Automator.IAdminEditAutomatorRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes an AdminEditAutomatorRequest message from the specified reader or buffer. @@ -43209,7 +45736,10 @@ export namespace Automator { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Automator.AdminEditAutomatorRequest; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Automator.AdminEditAutomatorRequest; /** * Decodes an AdminEditAutomatorRequest message from the specified reader or buffer, length delimited. @@ -43218,14 +45748,14 @@ export namespace Automator { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Automator.AdminEditAutomatorRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Automator.AdminEditAutomatorRequest; /** * Verifies an AdminEditAutomatorRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an AdminEditAutomatorRequest message from a plain object. Also converts values to their respective internal types. @@ -43240,7 +45770,10 @@ export namespace Automator { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Automator.AdminEditAutomatorRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Automator.AdminEditAutomatorRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this AdminEditAutomatorRequest to JSON. @@ -43258,24 +45791,23 @@ export namespace Automator { /** Properties of an AdminSetupAutomatorRequest. */ interface IAdminSetupAutomatorRequest { - /** AdminSetupAutomatorRequest automatorId */ - automatorId?: (number|Long|null); + automatorId?: number | Long | null; /** AdminSetupAutomatorRequest automatorState */ - automatorState?: (Automator.AutomatorState|null); + automatorState?: Automator.AutomatorState | null; /** AdminSetupAutomatorRequest encryptedEccEnterprisePrivateKey */ - encryptedEccEnterprisePrivateKey?: (Uint8Array|null); + encryptedEccEnterprisePrivateKey?: Uint8Array | null; /** AdminSetupAutomatorRequest encryptedRsaEnterprisePrivateKey */ - encryptedRsaEnterprisePrivateKey?: (Uint8Array|null); + encryptedRsaEnterprisePrivateKey?: Uint8Array | null; /** AdminSetupAutomatorRequest skillTypes */ - skillTypes?: (Automator.SkillType[]|null); + skillTypes?: Automator.SkillType[] | null; /** AdminSetupAutomatorRequest encryptedTreeKey */ - encryptedTreeKey?: (Uint8Array|null); + encryptedTreeKey?: Uint8Array | null; } /** @@ -43286,7 +45818,6 @@ export namespace Automator { * Returns AdminSetupAutomatorResponse */ class AdminSetupAutomatorRequest implements IAdminSetupAutomatorRequest { - /** * Constructs a new AdminSetupAutomatorRequest. * @param [properties] Properties to set @@ -43294,7 +45825,7 @@ export namespace Automator { constructor(properties?: Automator.IAdminSetupAutomatorRequest); /** AdminSetupAutomatorRequest automatorId. */ - public automatorId: (number|Long); + public automatorId: number | Long; /** AdminSetupAutomatorRequest automatorState. */ public automatorState: Automator.AutomatorState; @@ -43324,7 +45855,10 @@ export namespace Automator { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Automator.IAdminSetupAutomatorRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Automator.IAdminSetupAutomatorRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified AdminSetupAutomatorRequest message, length delimited. Does not implicitly {@link Automator.AdminSetupAutomatorRequest.verify|verify} messages. @@ -43332,7 +45866,10 @@ export namespace Automator { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Automator.IAdminSetupAutomatorRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Automator.IAdminSetupAutomatorRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes an AdminSetupAutomatorRequest message from the specified reader or buffer. @@ -43342,7 +45879,10 @@ export namespace Automator { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Automator.AdminSetupAutomatorRequest; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Automator.AdminSetupAutomatorRequest; /** * Decodes an AdminSetupAutomatorRequest message from the specified reader or buffer, length delimited. @@ -43351,14 +45891,14 @@ export namespace Automator { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Automator.AdminSetupAutomatorRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Automator.AdminSetupAutomatorRequest; /** * Verifies an AdminSetupAutomatorRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an AdminSetupAutomatorRequest message from a plain object. Also converts values to their respective internal types. @@ -43373,7 +45913,10 @@ export namespace Automator { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Automator.AdminSetupAutomatorRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Automator.AdminSetupAutomatorRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this AdminSetupAutomatorRequest to JSON. @@ -43391,21 +45934,20 @@ export namespace Automator { /** Properties of an AdminSetupAutomatorResponse. */ interface IAdminSetupAutomatorResponse { - /** AdminSetupAutomatorResponse success */ - success?: (boolean|null); + success?: boolean | null; /** AdminSetupAutomatorResponse message */ - message?: (string|null); + message?: string | null; /** AdminSetupAutomatorResponse automatorId */ - automatorId?: (number|Long|null); + automatorId?: number | Long | null; /** AdminSetupAutomatorResponse automatorState */ - automatorState?: (Automator.AutomatorState|null); + automatorState?: Automator.AutomatorState | null; /** AdminSetupAutomatorResponse automatorEccPublicKey */ - automatorEccPublicKey?: (Uint8Array|null); + automatorEccPublicKey?: Uint8Array | null; } /** @@ -43413,7 +45955,6 @@ export namespace Automator { * The automatorEccPublicKey fields will be non-empty iff the AutomatorState is NEEDS_CRYPTO_STEP_2 */ class AdminSetupAutomatorResponse implements IAdminSetupAutomatorResponse { - /** * Constructs a new AdminSetupAutomatorResponse. * @param [properties] Properties to set @@ -43427,7 +45968,7 @@ export namespace Automator { public message: string; /** AdminSetupAutomatorResponse automatorId. */ - public automatorId: (number|Long); + public automatorId: number | Long; /** AdminSetupAutomatorResponse automatorState. */ public automatorState: Automator.AutomatorState; @@ -43440,7 +45981,9 @@ export namespace Automator { * @param [properties] Properties to set * @returns AdminSetupAutomatorResponse instance */ - public static create(properties?: Automator.IAdminSetupAutomatorResponse): Automator.AdminSetupAutomatorResponse; + public static create( + properties?: Automator.IAdminSetupAutomatorResponse + ): Automator.AdminSetupAutomatorResponse; /** * Encodes the specified AdminSetupAutomatorResponse message. Does not implicitly {@link Automator.AdminSetupAutomatorResponse.verify|verify} messages. @@ -43448,7 +45991,10 @@ export namespace Automator { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Automator.IAdminSetupAutomatorResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Automator.IAdminSetupAutomatorResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified AdminSetupAutomatorResponse message, length delimited. Does not implicitly {@link Automator.AdminSetupAutomatorResponse.verify|verify} messages. @@ -43456,7 +46002,10 @@ export namespace Automator { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Automator.IAdminSetupAutomatorResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Automator.IAdminSetupAutomatorResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes an AdminSetupAutomatorResponse message from the specified reader or buffer. @@ -43466,7 +46015,10 @@ export namespace Automator { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Automator.AdminSetupAutomatorResponse; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Automator.AdminSetupAutomatorResponse; /** * Decodes an AdminSetupAutomatorResponse message from the specified reader or buffer, length delimited. @@ -43475,14 +46027,14 @@ export namespace Automator { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Automator.AdminSetupAutomatorResponse; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Automator.AdminSetupAutomatorResponse; /** * Verifies an AdminSetupAutomatorResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an AdminSetupAutomatorResponse message from a plain object. Also converts values to their respective internal types. @@ -43497,7 +46049,10 @@ export namespace Automator { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Automator.AdminSetupAutomatorResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Automator.AdminSetupAutomatorResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this AdminSetupAutomatorResponse to JSON. @@ -43515,9 +46070,8 @@ export namespace Automator { /** Properties of an AdminAutomatorSkillsRequest. */ interface IAdminAutomatorSkillsRequest { - /** AdminAutomatorSkillsRequest automatorId */ - automatorId?: (number|Long|null); + automatorId?: number | Long | null; } /** @@ -43527,7 +46081,6 @@ export namespace Automator { * Returns AdminAutomatorSkillsResponse. */ class AdminAutomatorSkillsRequest implements IAdminAutomatorSkillsRequest { - /** * Constructs a new AdminAutomatorSkillsRequest. * @param [properties] Properties to set @@ -43535,14 +46088,16 @@ export namespace Automator { constructor(properties?: Automator.IAdminAutomatorSkillsRequest); /** AdminAutomatorSkillsRequest automatorId. */ - public automatorId: (number|Long); + public automatorId: number | Long; /** * Creates a new AdminAutomatorSkillsRequest instance using the specified properties. * @param [properties] Properties to set * @returns AdminAutomatorSkillsRequest instance */ - public static create(properties?: Automator.IAdminAutomatorSkillsRequest): Automator.AdminAutomatorSkillsRequest; + public static create( + properties?: Automator.IAdminAutomatorSkillsRequest + ): Automator.AdminAutomatorSkillsRequest; /** * Encodes the specified AdminAutomatorSkillsRequest message. Does not implicitly {@link Automator.AdminAutomatorSkillsRequest.verify|verify} messages. @@ -43550,7 +46105,10 @@ export namespace Automator { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Automator.IAdminAutomatorSkillsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Automator.IAdminAutomatorSkillsRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified AdminAutomatorSkillsRequest message, length delimited. Does not implicitly {@link Automator.AdminAutomatorSkillsRequest.verify|verify} messages. @@ -43558,7 +46116,10 @@ export namespace Automator { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Automator.IAdminAutomatorSkillsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Automator.IAdminAutomatorSkillsRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes an AdminAutomatorSkillsRequest message from the specified reader or buffer. @@ -43568,7 +46129,10 @@ export namespace Automator { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Automator.AdminAutomatorSkillsRequest; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Automator.AdminAutomatorSkillsRequest; /** * Decodes an AdminAutomatorSkillsRequest message from the specified reader or buffer, length delimited. @@ -43577,14 +46141,14 @@ export namespace Automator { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Automator.AdminAutomatorSkillsRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Automator.AdminAutomatorSkillsRequest; /** * Verifies an AdminAutomatorSkillsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an AdminAutomatorSkillsRequest message from a plain object. Also converts values to their respective internal types. @@ -43599,7 +46163,10 @@ export namespace Automator { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Automator.AdminAutomatorSkillsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Automator.AdminAutomatorSkillsRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this AdminAutomatorSkillsRequest to JSON. @@ -43617,20 +46184,18 @@ export namespace Automator { /** Properties of an AutomatorSkill. */ interface IAutomatorSkill { - /** AutomatorSkill skillType */ - skillType?: (Automator.SkillType|null); + skillType?: Automator.SkillType | null; /** AutomatorSkill name */ - name?: (string|null); + name?: string | null; /** AutomatorSkill translatedName */ - translatedName?: (string|null); + translatedName?: string | null; } /** Information about a specific defined skill such as Device Approval. */ class AutomatorSkill implements IAutomatorSkill { - /** * Constructs a new AutomatorSkill. * @param [properties] Properties to set @@ -43677,7 +46242,7 @@ export namespace Automator { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Automator.AutomatorSkill; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Automator.AutomatorSkill; /** * Decodes an AutomatorSkill message from the specified reader or buffer, length delimited. @@ -43686,14 +46251,14 @@ export namespace Automator { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Automator.AutomatorSkill; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Automator.AutomatorSkill; /** * Verifies an AutomatorSkill message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an AutomatorSkill message from a plain object. Also converts values to their respective internal types. @@ -43708,7 +46273,10 @@ export namespace Automator { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Automator.AutomatorSkill, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Automator.AutomatorSkill, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this AutomatorSkill to JSON. @@ -43726,20 +46294,18 @@ export namespace Automator { /** Properties of an AdminAutomatorSkillsResponse. */ interface IAdminAutomatorSkillsResponse { - /** AdminAutomatorSkillsResponse success */ - success?: (boolean|null); + success?: boolean | null; /** AdminAutomatorSkillsResponse message */ - message?: (string|null); + message?: string | null; /** AdminAutomatorSkillsResponse automatorSkills */ - automatorSkills?: (Automator.IAutomatorSkill[]|null); + automatorSkills?: Automator.IAutomatorSkill[] | null; } /** Contains a list of known skill types that Automators can have. */ class AdminAutomatorSkillsResponse implements IAdminAutomatorSkillsResponse { - /** * Constructs a new AdminAutomatorSkillsResponse. * @param [properties] Properties to set @@ -43760,7 +46326,9 @@ export namespace Automator { * @param [properties] Properties to set * @returns AdminAutomatorSkillsResponse instance */ - public static create(properties?: Automator.IAdminAutomatorSkillsResponse): Automator.AdminAutomatorSkillsResponse; + public static create( + properties?: Automator.IAdminAutomatorSkillsResponse + ): Automator.AdminAutomatorSkillsResponse; /** * Encodes the specified AdminAutomatorSkillsResponse message. Does not implicitly {@link Automator.AdminAutomatorSkillsResponse.verify|verify} messages. @@ -43768,7 +46336,10 @@ export namespace Automator { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Automator.IAdminAutomatorSkillsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Automator.IAdminAutomatorSkillsResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified AdminAutomatorSkillsResponse message, length delimited. Does not implicitly {@link Automator.AdminAutomatorSkillsResponse.verify|verify} messages. @@ -43776,7 +46347,10 @@ export namespace Automator { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Automator.IAdminAutomatorSkillsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Automator.IAdminAutomatorSkillsResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes an AdminAutomatorSkillsResponse message from the specified reader or buffer. @@ -43786,7 +46360,10 @@ export namespace Automator { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Automator.AdminAutomatorSkillsResponse; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Automator.AdminAutomatorSkillsResponse; /** * Decodes an AdminAutomatorSkillsResponse message from the specified reader or buffer, length delimited. @@ -43795,14 +46372,14 @@ export namespace Automator { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Automator.AdminAutomatorSkillsResponse; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Automator.AdminAutomatorSkillsResponse; /** * Verifies an AdminAutomatorSkillsResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an AdminAutomatorSkillsResponse message from a plain object. Also converts values to their respective internal types. @@ -43817,7 +46394,10 @@ export namespace Automator { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Automator.AdminAutomatorSkillsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Automator.AdminAutomatorSkillsResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this AdminAutomatorSkillsResponse to JSON. @@ -43835,9 +46415,8 @@ export namespace Automator { /** Properties of an AdminResetAutomatorRequest. */ interface IAdminResetAutomatorRequest { - /** AdminResetAutomatorRequest automatorId */ - automatorId?: (number|Long|null); + automatorId?: number | Long | null; } /** @@ -43848,7 +46427,6 @@ export namespace Automator { * Returns AdminResponse */ class AdminResetAutomatorRequest implements IAdminResetAutomatorRequest { - /** * Constructs a new AdminResetAutomatorRequest. * @param [properties] Properties to set @@ -43856,7 +46434,7 @@ export namespace Automator { constructor(properties?: Automator.IAdminResetAutomatorRequest); /** AdminResetAutomatorRequest automatorId. */ - public automatorId: (number|Long); + public automatorId: number | Long; /** * Creates a new AdminResetAutomatorRequest instance using the specified properties. @@ -43871,7 +46449,10 @@ export namespace Automator { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Automator.IAdminResetAutomatorRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Automator.IAdminResetAutomatorRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified AdminResetAutomatorRequest message, length delimited. Does not implicitly {@link Automator.AdminResetAutomatorRequest.verify|verify} messages. @@ -43879,7 +46460,10 @@ export namespace Automator { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Automator.IAdminResetAutomatorRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Automator.IAdminResetAutomatorRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes an AdminResetAutomatorRequest message from the specified reader or buffer. @@ -43889,7 +46473,10 @@ export namespace Automator { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Automator.AdminResetAutomatorRequest; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Automator.AdminResetAutomatorRequest; /** * Decodes an AdminResetAutomatorRequest message from the specified reader or buffer, length delimited. @@ -43898,14 +46485,14 @@ export namespace Automator { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Automator.AdminResetAutomatorRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Automator.AdminResetAutomatorRequest; /** * Verifies an AdminResetAutomatorRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an AdminResetAutomatorRequest message from a plain object. Also converts values to their respective internal types. @@ -43920,7 +46507,10 @@ export namespace Automator { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Automator.AdminResetAutomatorRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Automator.AdminResetAutomatorRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this AdminResetAutomatorRequest to JSON. @@ -43938,9 +46528,8 @@ export namespace Automator { /** Properties of an AdminInitializeAutomatorRequest. */ interface IAdminInitializeAutomatorRequest { - /** AdminInitializeAutomatorRequest automatorId */ - automatorId?: (number|Long|null); + automatorId?: number | Long | null; } /** @@ -43950,7 +46539,6 @@ export namespace Automator { * Returns AdminResponse */ class AdminInitializeAutomatorRequest implements IAdminInitializeAutomatorRequest { - /** * Constructs a new AdminInitializeAutomatorRequest. * @param [properties] Properties to set @@ -43958,14 +46546,16 @@ export namespace Automator { constructor(properties?: Automator.IAdminInitializeAutomatorRequest); /** AdminInitializeAutomatorRequest automatorId. */ - public automatorId: (number|Long); + public automatorId: number | Long; /** * Creates a new AdminInitializeAutomatorRequest instance using the specified properties. * @param [properties] Properties to set * @returns AdminInitializeAutomatorRequest instance */ - public static create(properties?: Automator.IAdminInitializeAutomatorRequest): Automator.AdminInitializeAutomatorRequest; + public static create( + properties?: Automator.IAdminInitializeAutomatorRequest + ): Automator.AdminInitializeAutomatorRequest; /** * Encodes the specified AdminInitializeAutomatorRequest message. Does not implicitly {@link Automator.AdminInitializeAutomatorRequest.verify|verify} messages. @@ -43973,7 +46563,10 @@ export namespace Automator { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Automator.IAdminInitializeAutomatorRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Automator.IAdminInitializeAutomatorRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified AdminInitializeAutomatorRequest message, length delimited. Does not implicitly {@link Automator.AdminInitializeAutomatorRequest.verify|verify} messages. @@ -43981,7 +46574,10 @@ export namespace Automator { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Automator.IAdminInitializeAutomatorRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Automator.IAdminInitializeAutomatorRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes an AdminInitializeAutomatorRequest message from the specified reader or buffer. @@ -43991,7 +46587,10 @@ export namespace Automator { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Automator.AdminInitializeAutomatorRequest; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Automator.AdminInitializeAutomatorRequest; /** * Decodes an AdminInitializeAutomatorRequest message from the specified reader or buffer, length delimited. @@ -44000,14 +46599,14 @@ export namespace Automator { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Automator.AdminInitializeAutomatorRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Automator.AdminInitializeAutomatorRequest; /** * Verifies an AdminInitializeAutomatorRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an AdminInitializeAutomatorRequest message from a plain object. Also converts values to their respective internal types. @@ -44022,7 +46621,10 @@ export namespace Automator { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Automator.AdminInitializeAutomatorRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Automator.AdminInitializeAutomatorRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this AdminInitializeAutomatorRequest to JSON. @@ -44040,9 +46642,8 @@ export namespace Automator { /** Properties of an AdminAutomatorLogRequest. */ interface IAdminAutomatorLogRequest { - /** AdminAutomatorLogRequest automatorId */ - automatorId?: (number|Long|null); + automatorId?: number | Long | null; } /** @@ -44054,7 +46655,6 @@ export namespace Automator { * Returns AdminResponse */ class AdminAutomatorLogRequest implements IAdminAutomatorLogRequest { - /** * Constructs a new AdminAutomatorLogRequest. * @param [properties] Properties to set @@ -44062,7 +46662,7 @@ export namespace Automator { constructor(properties?: Automator.IAdminAutomatorLogRequest); /** AdminAutomatorLogRequest automatorId. */ - public automatorId: (number|Long); + public automatorId: number | Long; /** * Creates a new AdminAutomatorLogRequest instance using the specified properties. @@ -44085,7 +46685,10 @@ export namespace Automator { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Automator.IAdminAutomatorLogRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Automator.IAdminAutomatorLogRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes an AdminAutomatorLogRequest message from the specified reader or buffer. @@ -44095,7 +46698,10 @@ export namespace Automator { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Automator.AdminAutomatorLogRequest; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Automator.AdminAutomatorLogRequest; /** * Decodes an AdminAutomatorLogRequest message from the specified reader or buffer, length delimited. @@ -44104,14 +46710,14 @@ export namespace Automator { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Automator.AdminAutomatorLogRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Automator.AdminAutomatorLogRequest; /** * Verifies an AdminAutomatorLogRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an AdminAutomatorLogRequest message from a plain object. Also converts values to their respective internal types. @@ -44126,7 +46732,10 @@ export namespace Automator { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Automator.AdminAutomatorLogRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Automator.AdminAutomatorLogRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this AdminAutomatorLogRequest to JSON. @@ -44144,9 +46753,8 @@ export namespace Automator { /** Properties of an AdminAutomatorLogClearRequest. */ interface IAdminAutomatorLogClearRequest { - /** AdminAutomatorLogClearRequest automatorId */ - automatorId?: (number|Long|null); + automatorId?: number | Long | null; } /** @@ -44158,7 +46766,6 @@ export namespace Automator { * Returns AdminResponse */ class AdminAutomatorLogClearRequest implements IAdminAutomatorLogClearRequest { - /** * Constructs a new AdminAutomatorLogClearRequest. * @param [properties] Properties to set @@ -44166,14 +46773,16 @@ export namespace Automator { constructor(properties?: Automator.IAdminAutomatorLogClearRequest); /** AdminAutomatorLogClearRequest automatorId. */ - public automatorId: (number|Long); + public automatorId: number | Long; /** * Creates a new AdminAutomatorLogClearRequest instance using the specified properties. * @param [properties] Properties to set * @returns AdminAutomatorLogClearRequest instance */ - public static create(properties?: Automator.IAdminAutomatorLogClearRequest): Automator.AdminAutomatorLogClearRequest; + public static create( + properties?: Automator.IAdminAutomatorLogClearRequest + ): Automator.AdminAutomatorLogClearRequest; /** * Encodes the specified AdminAutomatorLogClearRequest message. Does not implicitly {@link Automator.AdminAutomatorLogClearRequest.verify|verify} messages. @@ -44181,7 +46790,10 @@ export namespace Automator { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Automator.IAdminAutomatorLogClearRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Automator.IAdminAutomatorLogClearRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified AdminAutomatorLogClearRequest message, length delimited. Does not implicitly {@link Automator.AdminAutomatorLogClearRequest.verify|verify} messages. @@ -44189,7 +46801,10 @@ export namespace Automator { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Automator.IAdminAutomatorLogClearRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Automator.IAdminAutomatorLogClearRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes an AdminAutomatorLogClearRequest message from the specified reader or buffer. @@ -44199,7 +46814,10 @@ export namespace Automator { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Automator.AdminAutomatorLogClearRequest; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Automator.AdminAutomatorLogClearRequest; /** * Decodes an AdminAutomatorLogClearRequest message from the specified reader or buffer, length delimited. @@ -44208,14 +46826,14 @@ export namespace Automator { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Automator.AdminAutomatorLogClearRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Automator.AdminAutomatorLogClearRequest; /** * Verifies an AdminAutomatorLogClearRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an AdminAutomatorLogClearRequest message from a plain object. Also converts values to their respective internal types. @@ -44230,7 +46848,10 @@ export namespace Automator { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Automator.AdminAutomatorLogClearRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Automator.AdminAutomatorLogClearRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this AdminAutomatorLogClearRequest to JSON. @@ -44248,39 +46869,38 @@ export namespace Automator { /** Properties of an ApproveTeamsForUserRequest. */ interface IApproveTeamsForUserRequest { - /** ApproveTeamsForUserRequest automatorId */ - automatorId?: (number|Long|null); + automatorId?: number | Long | null; /** ApproveTeamsForUserRequest ssoAuthenticationProtocolType */ - ssoAuthenticationProtocolType?: (Automator.SsoAuthenticationProtocolType|null); + ssoAuthenticationProtocolType?: Automator.SsoAuthenticationProtocolType | null; /** ApproveTeamsForUserRequest authMessage */ - authMessage?: (string|null); + authMessage?: string | null; /** ApproveTeamsForUserRequest email */ - email?: (string|null); + email?: string | null; /** ApproveTeamsForUserRequest serverEccPublicKeyId */ - serverEccPublicKeyId?: (number|null); + serverEccPublicKeyId?: number | null; /** ApproveTeamsForUserRequest ipAddress */ - ipAddress?: (string|null); + ipAddress?: string | null; /** ApproveTeamsForUserRequest userPublicKey */ - userPublicKey?: (Uint8Array|null); + userPublicKey?: Uint8Array | null; /** ApproveTeamsForUserRequest teamDescription */ - teamDescription?: (Automator.ITeamDescription[]|null); + teamDescription?: Automator.ITeamDescription[] | null; /** ApproveTeamsForUserRequest isTesting */ - isTesting?: (boolean|null); + isTesting?: boolean | null; /** ApproveTeamsForUserRequest isEccOnly */ - isEccOnly?: (boolean|null); + isEccOnly?: boolean | null; /** ApproveTeamsForUserRequest userPublicKeyEcc */ - userPublicKeyEcc?: (Uint8Array|null); + userPublicKeyEcc?: Uint8Array | null; } /** @@ -44290,7 +46910,6 @@ export namespace Automator { * */ class ApproveTeamsForUserRequest implements IApproveTeamsForUserRequest { - /** * Constructs a new ApproveTeamsForUserRequest. * @param [properties] Properties to set @@ -44298,7 +46917,7 @@ export namespace Automator { constructor(properties?: Automator.IApproveTeamsForUserRequest); /** ApproveTeamsForUserRequest automatorId. */ - public automatorId: (number|Long); + public automatorId: number | Long; /** ApproveTeamsForUserRequest ssoAuthenticationProtocolType. */ public ssoAuthenticationProtocolType: Automator.SsoAuthenticationProtocolType; @@ -44343,7 +46962,10 @@ export namespace Automator { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Automator.IApproveTeamsForUserRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Automator.IApproveTeamsForUserRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified ApproveTeamsForUserRequest message, length delimited. Does not implicitly {@link Automator.ApproveTeamsForUserRequest.verify|verify} messages. @@ -44351,7 +46973,10 @@ export namespace Automator { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Automator.IApproveTeamsForUserRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Automator.IApproveTeamsForUserRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes an ApproveTeamsForUserRequest message from the specified reader or buffer. @@ -44361,7 +46986,10 @@ export namespace Automator { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Automator.ApproveTeamsForUserRequest; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Automator.ApproveTeamsForUserRequest; /** * Decodes an ApproveTeamsForUserRequest message from the specified reader or buffer, length delimited. @@ -44370,14 +46998,14 @@ export namespace Automator { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Automator.ApproveTeamsForUserRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Automator.ApproveTeamsForUserRequest; /** * Verifies an ApproveTeamsForUserRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an ApproveTeamsForUserRequest message from a plain object. Also converts values to their respective internal types. @@ -44392,7 +47020,10 @@ export namespace Automator { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Automator.ApproveTeamsForUserRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Automator.ApproveTeamsForUserRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this ApproveTeamsForUserRequest to JSON. @@ -44410,18 +47041,17 @@ export namespace Automator { /** Properties of a TeamDescription. */ interface ITeamDescription { - /** TeamDescription teamUid */ - teamUid?: (Uint8Array|null); + teamUid?: Uint8Array | null; /** TeamDescription teamName */ - teamName?: (string|null); + teamName?: string | null; /** TeamDescription encryptedTeamKey */ - encryptedTeamKey?: (Uint8Array|null); + encryptedTeamKey?: Uint8Array | null; /** TeamDescription encryptedTeamKeyType */ - encryptedTeamKeyType?: (Enterprise.EncryptedKeyType|null); + encryptedTeamKeyType?: Enterprise.EncryptedKeyType | null; } /** @@ -44431,7 +47061,6 @@ export namespace Automator { * Used in ApproveTeamsForUserRequest. */ class TeamDescription implements ITeamDescription { - /** * Constructs a new TeamDescription. * @param [properties] Properties to set @@ -44481,7 +47110,7 @@ export namespace Automator { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Automator.TeamDescription; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Automator.TeamDescription; /** * Decodes a TeamDescription message from the specified reader or buffer, length delimited. @@ -44490,14 +47119,14 @@ export namespace Automator { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Automator.TeamDescription; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Automator.TeamDescription; /** * Verifies a TeamDescription message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a TeamDescription message from a plain object. Also converts values to their respective internal types. @@ -44512,7 +47141,10 @@ export namespace Automator { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Automator.TeamDescription, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Automator.TeamDescription, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this TeamDescription to JSON. @@ -44530,18 +47162,17 @@ export namespace Automator { /** Properties of an ApproveTeamsForUserResponse. */ interface IApproveTeamsForUserResponse { - /** ApproveTeamsForUserResponse automatorId */ - automatorId?: (number|Long|null); + automatorId?: number | Long | null; /** ApproveTeamsForUserResponse email */ - email?: (string|null); + email?: string | null; /** ApproveTeamsForUserResponse message */ - message?: (string|null); + message?: string | null; /** ApproveTeamsForUserResponse approveTeamResponse */ - approveTeamResponse?: (Automator.IApproveOneTeamForUserResponse[]|null); + approveTeamResponse?: Automator.IApproveOneTeamForUserResponse[] | null; } /** @@ -44551,7 +47182,6 @@ export namespace Automator { * It is included in an AutomatorResponse. */ class ApproveTeamsForUserResponse implements IApproveTeamsForUserResponse { - /** * Constructs a new ApproveTeamsForUserResponse. * @param [properties] Properties to set @@ -44559,7 +47189,7 @@ export namespace Automator { constructor(properties?: Automator.IApproveTeamsForUserResponse); /** ApproveTeamsForUserResponse automatorId. */ - public automatorId: (number|Long); + public automatorId: number | Long; /** ApproveTeamsForUserResponse email. */ public email: string; @@ -44575,7 +47205,9 @@ export namespace Automator { * @param [properties] Properties to set * @returns ApproveTeamsForUserResponse instance */ - public static create(properties?: Automator.IApproveTeamsForUserResponse): Automator.ApproveTeamsForUserResponse; + public static create( + properties?: Automator.IApproveTeamsForUserResponse + ): Automator.ApproveTeamsForUserResponse; /** * Encodes the specified ApproveTeamsForUserResponse message. Does not implicitly {@link Automator.ApproveTeamsForUserResponse.verify|verify} messages. @@ -44583,7 +47215,10 @@ export namespace Automator { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Automator.IApproveTeamsForUserResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Automator.IApproveTeamsForUserResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified ApproveTeamsForUserResponse message, length delimited. Does not implicitly {@link Automator.ApproveTeamsForUserResponse.verify|verify} messages. @@ -44591,7 +47226,10 @@ export namespace Automator { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Automator.IApproveTeamsForUserResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Automator.IApproveTeamsForUserResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes an ApproveTeamsForUserResponse message from the specified reader or buffer. @@ -44601,7 +47239,10 @@ export namespace Automator { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Automator.ApproveTeamsForUserResponse; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Automator.ApproveTeamsForUserResponse; /** * Decodes an ApproveTeamsForUserResponse message from the specified reader or buffer, length delimited. @@ -44610,14 +47251,14 @@ export namespace Automator { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Automator.ApproveTeamsForUserResponse; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Automator.ApproveTeamsForUserResponse; /** * Verifies an ApproveTeamsForUserResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an ApproveTeamsForUserResponse message from a plain object. Also converts values to their respective internal types. @@ -44632,7 +47273,10 @@ export namespace Automator { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Automator.ApproveTeamsForUserResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Automator.ApproveTeamsForUserResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this ApproveTeamsForUserResponse to JSON. @@ -44650,30 +47294,29 @@ export namespace Automator { /** Properties of an ApproveOneTeamForUserResponse. */ interface IApproveOneTeamForUserResponse { - /** ApproveOneTeamForUserResponse approved */ - approved?: (boolean|null); + approved?: boolean | null; /** ApproveOneTeamForUserResponse message */ - message?: (string|null); + message?: string | null; /** ApproveOneTeamForUserResponse teamUid */ - teamUid?: (Uint8Array|null); + teamUid?: Uint8Array | null; /** ApproveOneTeamForUserResponse teamName */ - teamName?: (string|null); + teamName?: string | null; /** ApproveOneTeamForUserResponse userEncryptedTeamKey */ - userEncryptedTeamKey?: (Uint8Array|null); + userEncryptedTeamKey?: Uint8Array | null; /** ApproveOneTeamForUserResponse userEncryptedTeamKeyType */ - userEncryptedTeamKeyType?: (Enterprise.EncryptedKeyType|null); + userEncryptedTeamKeyType?: Enterprise.EncryptedKeyType | null; /** ApproveOneTeamForUserResponse userEncryptedTeamKeyByEcc */ - userEncryptedTeamKeyByEcc?: (Uint8Array|null); + userEncryptedTeamKeyByEcc?: Uint8Array | null; /** ApproveOneTeamForUserResponse userEncryptedTeamKeyByEccType */ - userEncryptedTeamKeyByEccType?: (Enterprise.EncryptedKeyType|null); + userEncryptedTeamKeyByEccType?: Enterprise.EncryptedKeyType | null; } /** @@ -44683,7 +47326,6 @@ export namespace Automator { * Provides information needed to add one user to one team. */ class ApproveOneTeamForUserResponse implements IApproveOneTeamForUserResponse { - /** * Constructs a new ApproveOneTeamForUserResponse. * @param [properties] Properties to set @@ -44719,7 +47361,9 @@ export namespace Automator { * @param [properties] Properties to set * @returns ApproveOneTeamForUserResponse instance */ - public static create(properties?: Automator.IApproveOneTeamForUserResponse): Automator.ApproveOneTeamForUserResponse; + public static create( + properties?: Automator.IApproveOneTeamForUserResponse + ): Automator.ApproveOneTeamForUserResponse; /** * Encodes the specified ApproveOneTeamForUserResponse message. Does not implicitly {@link Automator.ApproveOneTeamForUserResponse.verify|verify} messages. @@ -44727,7 +47371,10 @@ export namespace Automator { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Automator.IApproveOneTeamForUserResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Automator.IApproveOneTeamForUserResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified ApproveOneTeamForUserResponse message, length delimited. Does not implicitly {@link Automator.ApproveOneTeamForUserResponse.verify|verify} messages. @@ -44735,7 +47382,10 @@ export namespace Automator { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Automator.IApproveOneTeamForUserResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Automator.IApproveOneTeamForUserResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes an ApproveOneTeamForUserResponse message from the specified reader or buffer. @@ -44745,7 +47395,10 @@ export namespace Automator { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Automator.ApproveOneTeamForUserResponse; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Automator.ApproveOneTeamForUserResponse; /** * Decodes an ApproveOneTeamForUserResponse message from the specified reader or buffer, length delimited. @@ -44754,14 +47407,14 @@ export namespace Automator { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Automator.ApproveOneTeamForUserResponse; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Automator.ApproveOneTeamForUserResponse; /** * Verifies an ApproveOneTeamForUserResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an ApproveOneTeamForUserResponse message from a plain object. Also converts values to their respective internal types. @@ -44776,7 +47429,10 @@ export namespace Automator { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Automator.ApproveOneTeamForUserResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Automator.ApproveOneTeamForUserResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this ApproveOneTeamForUserResponse to JSON. @@ -44794,33 +47450,32 @@ export namespace Automator { /** Properties of an ApproveTeamsRequest. */ interface IApproveTeamsRequest { - /** ApproveTeamsRequest automatorId */ - automatorId?: (number|Long|null); + automatorId?: number | Long | null; /** ApproveTeamsRequest ssoAuthenticationProtocolType */ - ssoAuthenticationProtocolType?: (Automator.SsoAuthenticationProtocolType|null); + ssoAuthenticationProtocolType?: Automator.SsoAuthenticationProtocolType | null; /** ApproveTeamsRequest authMessage */ - authMessage?: (string|null); + authMessage?: string | null; /** ApproveTeamsRequest email */ - email?: (string|null); + email?: string | null; /** ApproveTeamsRequest serverEccPublicKeyId */ - serverEccPublicKeyId?: (number|null); + serverEccPublicKeyId?: number | null; /** ApproveTeamsRequest ipAddress */ - ipAddress?: (string|null); + ipAddress?: string | null; /** ApproveTeamsRequest teamDescription */ - teamDescription?: (Automator.ITeamDescription[]|null); + teamDescription?: Automator.ITeamDescription[] | null; /** ApproveTeamsRequest isEccOnly */ - isEccOnly?: (boolean|null); + isEccOnly?: boolean | null; /** ApproveTeamsRequest isTesting */ - isTesting?: (boolean|null); + isTesting?: boolean | null; } /** @@ -44830,7 +47485,6 @@ export namespace Automator { * */ class ApproveTeamsRequest implements IApproveTeamsRequest { - /** * Constructs a new ApproveTeamsRequest. * @param [properties] Properties to set @@ -44838,7 +47492,7 @@ export namespace Automator { constructor(properties?: Automator.IApproveTeamsRequest); /** ApproveTeamsRequest automatorId. */ - public automatorId: (number|Long); + public automatorId: number | Long; /** ApproveTeamsRequest ssoAuthenticationProtocolType. */ public ssoAuthenticationProtocolType: Automator.SsoAuthenticationProtocolType; @@ -44885,7 +47539,10 @@ export namespace Automator { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Automator.IApproveTeamsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Automator.IApproveTeamsRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes an ApproveTeamsRequest message from the specified reader or buffer. @@ -44895,7 +47552,7 @@ export namespace Automator { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Automator.ApproveTeamsRequest; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Automator.ApproveTeamsRequest; /** * Decodes an ApproveTeamsRequest message from the specified reader or buffer, length delimited. @@ -44904,14 +47561,14 @@ export namespace Automator { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Automator.ApproveTeamsRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Automator.ApproveTeamsRequest; /** * Verifies an ApproveTeamsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an ApproveTeamsRequest message from a plain object. Also converts values to their respective internal types. @@ -44926,7 +47583,10 @@ export namespace Automator { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Automator.ApproveTeamsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Automator.ApproveTeamsRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this ApproveTeamsRequest to JSON. @@ -44944,15 +47604,14 @@ export namespace Automator { /** Properties of an ApproveTeamsResponse. */ interface IApproveTeamsResponse { - /** ApproveTeamsResponse automatorId */ - automatorId?: (number|Long|null); + automatorId?: number | Long | null; /** ApproveTeamsResponse message */ - message?: (string|null); + message?: string | null; /** ApproveTeamsResponse approveTeamResponse */ - approveTeamResponse?: (Automator.IApproveOneTeamResponse[]|null); + approveTeamResponse?: Automator.IApproveOneTeamResponse[] | null; } /** @@ -44962,7 +47621,6 @@ export namespace Automator { * It is included in an AutomatorResponse. */ class ApproveTeamsResponse implements IApproveTeamsResponse { - /** * Constructs a new ApproveTeamsResponse. * @param [properties] Properties to set @@ -44970,7 +47628,7 @@ export namespace Automator { constructor(properties?: Automator.IApproveTeamsResponse); /** ApproveTeamsResponse automatorId. */ - public automatorId: (number|Long); + public automatorId: number | Long; /** ApproveTeamsResponse message. */ public message: string; @@ -44999,7 +47657,10 @@ export namespace Automator { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Automator.IApproveTeamsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Automator.IApproveTeamsResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes an ApproveTeamsResponse message from the specified reader or buffer. @@ -45009,7 +47670,7 @@ export namespace Automator { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Automator.ApproveTeamsResponse; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Automator.ApproveTeamsResponse; /** * Decodes an ApproveTeamsResponse message from the specified reader or buffer, length delimited. @@ -45018,14 +47679,14 @@ export namespace Automator { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Automator.ApproveTeamsResponse; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Automator.ApproveTeamsResponse; /** * Verifies an ApproveTeamsResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an ApproveTeamsResponse message from a plain object. Also converts values to their respective internal types. @@ -45040,7 +47701,10 @@ export namespace Automator { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Automator.ApproveTeamsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Automator.ApproveTeamsResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this ApproveTeamsResponse to JSON. @@ -45058,48 +47722,47 @@ export namespace Automator { /** Properties of an ApproveOneTeamResponse. */ interface IApproveOneTeamResponse { - /** ApproveOneTeamResponse approved */ - approved?: (boolean|null); + approved?: boolean | null; /** ApproveOneTeamResponse message */ - message?: (string|null); + message?: string | null; /** ApproveOneTeamResponse teamUid */ - teamUid?: (Uint8Array|null); + teamUid?: Uint8Array | null; /** ApproveOneTeamResponse teamName */ - teamName?: (string|null); + teamName?: string | null; /** ApproveOneTeamResponse encryptedTeamKeyCbc */ - encryptedTeamKeyCbc?: (Uint8Array|null); + encryptedTeamKeyCbc?: Uint8Array | null; /** ApproveOneTeamResponse encryptedTeamKeyCbcType */ - encryptedTeamKeyCbcType?: (Enterprise.EncryptedKeyType|null); + encryptedTeamKeyCbcType?: Enterprise.EncryptedKeyType | null; /** ApproveOneTeamResponse encryptedTeamKeyGcm */ - encryptedTeamKeyGcm?: (Uint8Array|null); + encryptedTeamKeyGcm?: Uint8Array | null; /** ApproveOneTeamResponse encryptedTeamKeyGcmType */ - encryptedTeamKeyGcmType?: (Enterprise.EncryptedKeyType|null); + encryptedTeamKeyGcmType?: Enterprise.EncryptedKeyType | null; /** ApproveOneTeamResponse teamPublicKeyRsa */ - teamPublicKeyRsa?: (Uint8Array|null); + teamPublicKeyRsa?: Uint8Array | null; /** ApproveOneTeamResponse encryptedTeamPrivateKeyRsa */ - encryptedTeamPrivateKeyRsa?: (Uint8Array|null); + encryptedTeamPrivateKeyRsa?: Uint8Array | null; /** ApproveOneTeamResponse encryptedTeamPrivateKeyRsaType */ - encryptedTeamPrivateKeyRsaType?: (Enterprise.EncryptedKeyType|null); + encryptedTeamPrivateKeyRsaType?: Enterprise.EncryptedKeyType | null; /** ApproveOneTeamResponse teamPublicKeyEcc */ - teamPublicKeyEcc?: (Uint8Array|null); + teamPublicKeyEcc?: Uint8Array | null; /** ApproveOneTeamResponse encryptedTeamPrivateKeyEcc */ - encryptedTeamPrivateKeyEcc?: (Uint8Array|null); + encryptedTeamPrivateKeyEcc?: Uint8Array | null; /** ApproveOneTeamResponse encryptedTeamPrivateKeyEccType */ - encryptedTeamPrivateKeyEccType?: (Enterprise.EncryptedKeyType|null); + encryptedTeamPrivateKeyEccType?: Enterprise.EncryptedKeyType | null; } /** @@ -45110,7 +47773,6 @@ export namespace Automator { * Fields 5 and above will be empty if the team was not approved. */ class ApproveOneTeamResponse implements IApproveOneTeamResponse { - /** * Constructs a new ApproveOneTeamResponse. * @param [properties] Properties to set @@ -45180,7 +47842,10 @@ export namespace Automator { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Automator.IApproveOneTeamResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Automator.IApproveOneTeamResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes an ApproveOneTeamResponse message from the specified reader or buffer. @@ -45190,7 +47855,7 @@ export namespace Automator { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Automator.ApproveOneTeamResponse; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Automator.ApproveOneTeamResponse; /** * Decodes an ApproveOneTeamResponse message from the specified reader or buffer, length delimited. @@ -45199,14 +47864,14 @@ export namespace Automator { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Automator.ApproveOneTeamResponse; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Automator.ApproveOneTeamResponse; /** * Verifies an ApproveOneTeamResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an ApproveOneTeamResponse message from a plain object. Also converts values to their respective internal types. @@ -45221,7 +47886,10 @@ export namespace Automator { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Automator.ApproveOneTeamResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Automator.ApproveOneTeamResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this ApproveOneTeamResponse to JSON. @@ -45239,24 +47907,23 @@ export namespace Automator { /** Properties of a SSLCertificateInfo. */ interface ISSLCertificateInfo { - /** SSLCertificateInfo hostname */ - hostname?: (string|null); + hostname?: string | null; /** SSLCertificateInfo subject */ - subject?: (string|null); + subject?: string | null; /** SSLCertificateInfo issuedBy */ - issuedBy?: (string|null); + issuedBy?: string | null; /** SSLCertificateInfo issuedOn */ - issuedOn?: (string|null); + issuedOn?: string | null; /** SSLCertificateInfo expiresOn */ - expiresOn?: (string|null); + expiresOn?: string | null; /** SSLCertificateInfo checkedOn */ - checkedOn?: (string|null); + checkedOn?: string | null; } /** @@ -45264,7 +47931,6 @@ export namespace Automator { * It is used to send a message to an Admin to renew the certificate. */ class SSLCertificateInfo implements ISSLCertificateInfo { - /** * Constructs a new SSLCertificateInfo. * @param [properties] Properties to set @@ -45310,7 +47976,10 @@ export namespace Automator { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Automator.ISSLCertificateInfo, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Automator.ISSLCertificateInfo, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a SSLCertificateInfo message from the specified reader or buffer. @@ -45320,7 +47989,7 @@ export namespace Automator { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Automator.SSLCertificateInfo; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Automator.SSLCertificateInfo; /** * Decodes a SSLCertificateInfo message from the specified reader or buffer, length delimited. @@ -45329,14 +47998,14 @@ export namespace Automator { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Automator.SSLCertificateInfo; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Automator.SSLCertificateInfo; /** * Verifies a SSLCertificateInfo message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a SSLCertificateInfo message from a plain object. Also converts values to their respective internal types. @@ -45351,7 +48020,10 @@ export namespace Automator { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Automator.SSLCertificateInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Automator.SSLCertificateInfo, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this SSLCertificateInfo to JSON. @@ -45370,11 +48042,10 @@ export namespace Automator { /** Namespace SsoCloud. */ export namespace SsoCloud { - /** Authentication protocols we support. */ enum AuthProtocolType { SAML2 = 0, - JWT = 1 + JWT = 1, } /** Datatypes of SsoCloudSettings */ @@ -45389,7 +48060,7 @@ export namespace SsoCloud { com_keepersecurity_proto_SsoCloud_AuthProtocolType = 7, com_keepersecurity_proto_SsoCloud_SsoIdpType = 8, LONG = 9, - TIMESTAMP = 10 + TIMESTAMP = 10, } /** This is how the client can change a Configuration setting */ @@ -45397,7 +48068,7 @@ export namespace SsoCloud { SET = 0, GET = 1, DELETE = 2, - RESET_TO_DEFAULT = 3 + RESET_TO_DEFAULT = 3, } /** SsoIdpType enum. */ @@ -45429,43 +48100,41 @@ export namespace SsoCloud { TRANSMIT = 24, TRUSONA = 25, VERIDIUM = 26, - CAS = 27 + CAS = 27, } /** Properties of a SsoCloudSettingValue. */ interface ISsoCloudSettingValue { - /** SsoCloudSettingValue settingId */ - settingId?: (number|Long|null); + settingId?: number | Long | null; /** SsoCloudSettingValue settingName */ - settingName?: (string|null); + settingName?: string | null; /** SsoCloudSettingValue label */ - label?: (string|null); + label?: string | null; /** SsoCloudSettingValue value */ - value?: (string|null); + value?: string | null; /** SsoCloudSettingValue valueType */ - valueType?: (SsoCloud.DataType|null); + valueType?: SsoCloud.DataType | null; /** SsoCloudSettingValue lastModified */ - lastModified?: (string|null); + lastModified?: string | null; /** SsoCloudSettingValue isFromFile */ - isFromFile?: (boolean|null); + isFromFile?: boolean | null; /** SsoCloudSettingValue isEditable */ - isEditable?: (boolean|null); + isEditable?: boolean | null; /** SsoCloudSettingValue isRequired */ - isRequired?: (boolean|null); + isRequired?: boolean | null; } /** This is the value of a Configuration setting */ class SsoCloudSettingValue implements ISsoCloudSettingValue { - /** * Constructs a new SsoCloudSettingValue. * @param [properties] Properties to set @@ -45473,7 +48142,7 @@ export namespace SsoCloud { constructor(properties?: SsoCloud.ISsoCloudSettingValue); /** SsoCloudSettingValue settingId. */ - public settingId: (number|Long); + public settingId: number | Long; /** SsoCloudSettingValue settingName. */ public settingName: string; @@ -45520,7 +48189,10 @@ export namespace SsoCloud { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: SsoCloud.ISsoCloudSettingValue, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: SsoCloud.ISsoCloudSettingValue, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a SsoCloudSettingValue message from the specified reader or buffer. @@ -45530,7 +48202,7 @@ export namespace SsoCloud { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): SsoCloud.SsoCloudSettingValue; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): SsoCloud.SsoCloudSettingValue; /** * Decodes a SsoCloudSettingValue message from the specified reader or buffer, length delimited. @@ -45539,14 +48211,14 @@ export namespace SsoCloud { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): SsoCloud.SsoCloudSettingValue; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): SsoCloud.SsoCloudSettingValue; /** * Verifies a SsoCloudSettingValue message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a SsoCloudSettingValue message from a plain object. Also converts values to their respective internal types. @@ -45561,7 +48233,10 @@ export namespace SsoCloud { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: SsoCloud.SsoCloudSettingValue, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: SsoCloud.SsoCloudSettingValue, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this SsoCloudSettingValue to JSON. @@ -45579,23 +48254,21 @@ export namespace SsoCloud { /** Properties of a SsoCloudSettingAction. */ interface ISsoCloudSettingAction { - /** SsoCloudSettingAction settingId */ - settingId?: (number|Long|null); + settingId?: number | Long | null; /** SsoCloudSettingAction settingName */ - settingName?: (string|null); + settingName?: string | null; /** SsoCloudSettingAction operation */ - operation?: (SsoCloud.SsoCloudSettingOperationType|null); + operation?: SsoCloud.SsoCloudSettingOperationType | null; /** SsoCloudSettingAction value */ - value?: (string|null); + value?: string | null; } /** This performs an edit operation on a Configuration setting */ class SsoCloudSettingAction implements ISsoCloudSettingAction { - /** * Constructs a new SsoCloudSettingAction. * @param [properties] Properties to set @@ -45603,7 +48276,7 @@ export namespace SsoCloud { constructor(properties?: SsoCloud.ISsoCloudSettingAction); /** SsoCloudSettingAction settingId. */ - public settingId: (number|Long); + public settingId: number | Long; /** SsoCloudSettingAction settingName. */ public settingName: string; @@ -45635,7 +48308,10 @@ export namespace SsoCloud { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: SsoCloud.ISsoCloudSettingAction, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: SsoCloud.ISsoCloudSettingAction, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a SsoCloudSettingAction message from the specified reader or buffer. @@ -45645,7 +48321,7 @@ export namespace SsoCloud { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): SsoCloud.SsoCloudSettingAction; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): SsoCloud.SsoCloudSettingAction; /** * Decodes a SsoCloudSettingAction message from the specified reader or buffer, length delimited. @@ -45654,14 +48330,14 @@ export namespace SsoCloud { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): SsoCloud.SsoCloudSettingAction; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): SsoCloud.SsoCloudSettingAction; /** * Verifies a SsoCloudSettingAction message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a SsoCloudSettingAction message from a plain object. Also converts values to their respective internal types. @@ -45676,7 +48352,10 @@ export namespace SsoCloud { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: SsoCloud.SsoCloudSettingAction, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: SsoCloud.SsoCloudSettingAction, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this SsoCloudSettingAction to JSON. @@ -45694,26 +48373,24 @@ export namespace SsoCloud { /** Properties of a SsoCloudConfigurationRequest. */ interface ISsoCloudConfigurationRequest { - /** SsoCloudConfigurationRequest ssoServiceProviderId */ - ssoServiceProviderId?: (number|Long|null); + ssoServiceProviderId?: number | Long | null; /** SsoCloudConfigurationRequest ssoSpConfigurationId */ - ssoSpConfigurationId?: (number|Long|null); + ssoSpConfigurationId?: number | Long | null; /** SsoCloudConfigurationRequest name */ - name?: (string|null); + name?: string | null; /** SsoCloudConfigurationRequest ssoAuthProtocolType */ - ssoAuthProtocolType?: (SsoCloud.AuthProtocolType|null); + ssoAuthProtocolType?: SsoCloud.AuthProtocolType | null; /** SsoCloudConfigurationRequest ssoCloudSettingAction */ - ssoCloudSettingAction?: (SsoCloud.ISsoCloudSettingAction[]|null); + ssoCloudSettingAction?: SsoCloud.ISsoCloudSettingAction[] | null; } /** Requesting the value of or a change to an SSO Configuration */ class SsoCloudConfigurationRequest implements ISsoCloudConfigurationRequest { - /** * Constructs a new SsoCloudConfigurationRequest. * @param [properties] Properties to set @@ -45721,10 +48398,10 @@ export namespace SsoCloud { constructor(properties?: SsoCloud.ISsoCloudConfigurationRequest); /** SsoCloudConfigurationRequest ssoServiceProviderId. */ - public ssoServiceProviderId: (number|Long); + public ssoServiceProviderId: number | Long; /** SsoCloudConfigurationRequest ssoSpConfigurationId. */ - public ssoSpConfigurationId: (number|Long); + public ssoSpConfigurationId: number | Long; /** SsoCloudConfigurationRequest name. */ public name: string; @@ -45740,7 +48417,9 @@ export namespace SsoCloud { * @param [properties] Properties to set * @returns SsoCloudConfigurationRequest instance */ - public static create(properties?: SsoCloud.ISsoCloudConfigurationRequest): SsoCloud.SsoCloudConfigurationRequest; + public static create( + properties?: SsoCloud.ISsoCloudConfigurationRequest + ): SsoCloud.SsoCloudConfigurationRequest; /** * Encodes the specified SsoCloudConfigurationRequest message. Does not implicitly {@link SsoCloud.SsoCloudConfigurationRequest.verify|verify} messages. @@ -45748,7 +48427,10 @@ export namespace SsoCloud { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: SsoCloud.ISsoCloudConfigurationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: SsoCloud.ISsoCloudConfigurationRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified SsoCloudConfigurationRequest message, length delimited. Does not implicitly {@link SsoCloud.SsoCloudConfigurationRequest.verify|verify} messages. @@ -45756,7 +48438,10 @@ export namespace SsoCloud { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: SsoCloud.ISsoCloudConfigurationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: SsoCloud.ISsoCloudConfigurationRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a SsoCloudConfigurationRequest message from the specified reader or buffer. @@ -45766,7 +48451,10 @@ export namespace SsoCloud { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): SsoCloud.SsoCloudConfigurationRequest; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): SsoCloud.SsoCloudConfigurationRequest; /** * Decodes a SsoCloudConfigurationRequest message from the specified reader or buffer, length delimited. @@ -45775,14 +48463,14 @@ export namespace SsoCloud { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): SsoCloud.SsoCloudConfigurationRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): SsoCloud.SsoCloudConfigurationRequest; /** * Verifies a SsoCloudConfigurationRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a SsoCloudConfigurationRequest message from a plain object. Also converts values to their respective internal types. @@ -45797,7 +48485,10 @@ export namespace SsoCloud { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: SsoCloud.SsoCloudConfigurationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: SsoCloud.SsoCloudConfigurationRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this SsoCloudConfigurationRequest to JSON. @@ -45815,20 +48506,18 @@ export namespace SsoCloud { /** Properties of a SsoSharedConfigItem. */ interface ISsoSharedConfigItem { - /** SsoSharedConfigItem ssoSpConfigurationId */ - ssoSpConfigurationId?: (number|Long|null); + ssoSpConfigurationId?: number | Long | null; /** SsoSharedConfigItem ssoServiceProviderId */ - ssoServiceProviderId?: (number|Long|null); + ssoServiceProviderId?: number | Long | null; /** SsoSharedConfigItem ssoNodeId */ - ssoNodeId?: (number|Long|null); + ssoNodeId?: number | Long | null; } /** This represents the providers that share a given configuration */ class SsoSharedConfigItem implements ISsoSharedConfigItem { - /** * Constructs a new SsoSharedConfigItem. * @param [properties] Properties to set @@ -45836,13 +48525,13 @@ export namespace SsoCloud { constructor(properties?: SsoCloud.ISsoSharedConfigItem); /** SsoSharedConfigItem ssoSpConfigurationId. */ - public ssoSpConfigurationId: (number|Long); + public ssoSpConfigurationId: number | Long; /** SsoSharedConfigItem ssoServiceProviderId. */ - public ssoServiceProviderId: (number|Long); + public ssoServiceProviderId: number | Long; /** SsoSharedConfigItem ssoNodeId. */ - public ssoNodeId: (number|Long); + public ssoNodeId: number | Long; /** * Creates a new SsoSharedConfigItem instance using the specified properties. @@ -45865,7 +48554,10 @@ export namespace SsoCloud { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: SsoCloud.ISsoSharedConfigItem, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: SsoCloud.ISsoSharedConfigItem, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a SsoSharedConfigItem message from the specified reader or buffer. @@ -45875,7 +48567,7 @@ export namespace SsoCloud { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): SsoCloud.SsoSharedConfigItem; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): SsoCloud.SsoSharedConfigItem; /** * Decodes a SsoSharedConfigItem message from the specified reader or buffer, length delimited. @@ -45884,14 +48576,14 @@ export namespace SsoCloud { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): SsoCloud.SsoSharedConfigItem; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): SsoCloud.SsoSharedConfigItem; /** * Verifies a SsoSharedConfigItem message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a SsoSharedConfigItem message from a plain object. Also converts values to their respective internal types. @@ -45906,7 +48598,10 @@ export namespace SsoCloud { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: SsoCloud.SsoSharedConfigItem, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: SsoCloud.SsoSharedConfigItem, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this SsoSharedConfigItem to JSON. @@ -45924,38 +48619,36 @@ export namespace SsoCloud { /** Properties of a SsoCloudConfigurationResponse. */ interface ISsoCloudConfigurationResponse { - /** SsoCloudConfigurationResponse ssoServiceProviderId */ - ssoServiceProviderId?: (number|Long|null); + ssoServiceProviderId?: number | Long | null; /** SsoCloudConfigurationResponse ssoSpConfigurationId */ - ssoSpConfigurationId?: (number|Long|null); + ssoSpConfigurationId?: number | Long | null; /** SsoCloudConfigurationResponse enterpriseId */ - enterpriseId?: (number|Long|null); + enterpriseId?: number | Long | null; /** SsoCloudConfigurationResponse name */ - name?: (string|null); + name?: string | null; /** SsoCloudConfigurationResponse protocol */ - protocol?: (string|null); + protocol?: string | null; /** SsoCloudConfigurationResponse lastModified */ - lastModified?: (string|null); + lastModified?: string | null; /** SsoCloudConfigurationResponse ssoCloudSettingValue */ - ssoCloudSettingValue?: (SsoCloud.ISsoCloudSettingValue[]|null); + ssoCloudSettingValue?: SsoCloud.ISsoCloudSettingValue[] | null; /** SsoCloudConfigurationResponse isShared */ - isShared?: (boolean|null); + isShared?: boolean | null; /** SsoCloudConfigurationResponse sharedConfigs */ - sharedConfigs?: (SsoCloud.ISsoSharedConfigItem[]|null); + sharedConfigs?: SsoCloud.ISsoSharedConfigItem[] | null; } /** This is the response to an SsoConfigurationRequest */ class SsoCloudConfigurationResponse implements ISsoCloudConfigurationResponse { - /** * Constructs a new SsoCloudConfigurationResponse. * @param [properties] Properties to set @@ -45963,13 +48656,13 @@ export namespace SsoCloud { constructor(properties?: SsoCloud.ISsoCloudConfigurationResponse); /** SsoCloudConfigurationResponse ssoServiceProviderId. */ - public ssoServiceProviderId: (number|Long); + public ssoServiceProviderId: number | Long; /** SsoCloudConfigurationResponse ssoSpConfigurationId. */ - public ssoSpConfigurationId: (number|Long); + public ssoSpConfigurationId: number | Long; /** SsoCloudConfigurationResponse enterpriseId. */ - public enterpriseId: (number|Long); + public enterpriseId: number | Long; /** SsoCloudConfigurationResponse name. */ public name: string; @@ -45994,7 +48687,9 @@ export namespace SsoCloud { * @param [properties] Properties to set * @returns SsoCloudConfigurationResponse instance */ - public static create(properties?: SsoCloud.ISsoCloudConfigurationResponse): SsoCloud.SsoCloudConfigurationResponse; + public static create( + properties?: SsoCloud.ISsoCloudConfigurationResponse + ): SsoCloud.SsoCloudConfigurationResponse; /** * Encodes the specified SsoCloudConfigurationResponse message. Does not implicitly {@link SsoCloud.SsoCloudConfigurationResponse.verify|verify} messages. @@ -46002,7 +48697,10 @@ export namespace SsoCloud { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: SsoCloud.ISsoCloudConfigurationResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: SsoCloud.ISsoCloudConfigurationResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified SsoCloudConfigurationResponse message, length delimited. Does not implicitly {@link SsoCloud.SsoCloudConfigurationResponse.verify|verify} messages. @@ -46010,7 +48708,10 @@ export namespace SsoCloud { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: SsoCloud.ISsoCloudConfigurationResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: SsoCloud.ISsoCloudConfigurationResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a SsoCloudConfigurationResponse message from the specified reader or buffer. @@ -46020,7 +48721,10 @@ export namespace SsoCloud { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): SsoCloud.SsoCloudConfigurationResponse; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): SsoCloud.SsoCloudConfigurationResponse; /** * Decodes a SsoCloudConfigurationResponse message from the specified reader or buffer, length delimited. @@ -46029,14 +48733,14 @@ export namespace SsoCloud { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): SsoCloud.SsoCloudConfigurationResponse; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): SsoCloud.SsoCloudConfigurationResponse; /** * Verifies a SsoCloudConfigurationResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a SsoCloudConfigurationResponse message from a plain object. Also converts values to their respective internal types. @@ -46051,7 +48755,10 @@ export namespace SsoCloud { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: SsoCloud.SsoCloudConfigurationResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: SsoCloud.SsoCloudConfigurationResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this SsoCloudConfigurationResponse to JSON. @@ -46069,20 +48776,18 @@ export namespace SsoCloud { /** Properties of a SsoIdpTypeRequest. */ interface ISsoIdpTypeRequest { - /** SsoIdpTypeRequest ssoIdpTypeId */ - ssoIdpTypeId?: (number|null); + ssoIdpTypeId?: number | null; /** SsoIdpTypeRequest tag */ - tag?: (string|null); + tag?: string | null; /** SsoIdpTypeRequest label */ - label?: (string|null); + label?: string | null; } /** This is a request to the IdpType API. */ class SsoIdpTypeRequest implements ISsoIdpTypeRequest { - /** * Constructs a new SsoIdpTypeRequest. * @param [properties] Properties to set @@ -46119,7 +48824,10 @@ export namespace SsoCloud { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: SsoCloud.ISsoIdpTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: SsoCloud.ISsoIdpTypeRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a SsoIdpTypeRequest message from the specified reader or buffer. @@ -46129,7 +48837,7 @@ export namespace SsoCloud { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): SsoCloud.SsoIdpTypeRequest; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): SsoCloud.SsoIdpTypeRequest; /** * Decodes a SsoIdpTypeRequest message from the specified reader or buffer, length delimited. @@ -46138,14 +48846,14 @@ export namespace SsoCloud { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): SsoCloud.SsoIdpTypeRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): SsoCloud.SsoIdpTypeRequest; /** * Verifies a SsoIdpTypeRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a SsoIdpTypeRequest message from a plain object. Also converts values to their respective internal types. @@ -46160,7 +48868,10 @@ export namespace SsoCloud { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: SsoCloud.SsoIdpTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: SsoCloud.SsoIdpTypeRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this SsoIdpTypeRequest to JSON. @@ -46178,20 +48889,18 @@ export namespace SsoCloud { /** Properties of a SsoIdpTypeResponse. */ interface ISsoIdpTypeResponse { - /** SsoIdpTypeResponse ssoIdpTypeId */ - ssoIdpTypeId?: (number|null); + ssoIdpTypeId?: number | null; /** SsoIdpTypeResponse tag */ - tag?: (number|null); + tag?: number | null; /** SsoIdpTypeResponse label */ - label?: (number|null); + label?: number | null; } /** This is a response from the IdpType API calls. */ class SsoIdpTypeResponse implements ISsoIdpTypeResponse { - /** * Constructs a new SsoIdpTypeResponse. * @param [properties] Properties to set @@ -46228,7 +48937,10 @@ export namespace SsoCloud { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: SsoCloud.ISsoIdpTypeResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: SsoCloud.ISsoIdpTypeResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a SsoIdpTypeResponse message from the specified reader or buffer. @@ -46238,7 +48950,7 @@ export namespace SsoCloud { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): SsoCloud.SsoIdpTypeResponse; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): SsoCloud.SsoIdpTypeResponse; /** * Decodes a SsoIdpTypeResponse message from the specified reader or buffer, length delimited. @@ -46247,14 +48959,14 @@ export namespace SsoCloud { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): SsoCloud.SsoIdpTypeResponse; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): SsoCloud.SsoIdpTypeResponse; /** * Verifies a SsoIdpTypeResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a SsoIdpTypeResponse message from a plain object. Also converts values to their respective internal types. @@ -46269,7 +48981,10 @@ export namespace SsoCloud { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: SsoCloud.SsoIdpTypeResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: SsoCloud.SsoIdpTypeResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this SsoIdpTypeResponse to JSON. @@ -46287,14 +49002,12 @@ export namespace SsoCloud { /** Properties of a SsoCloudSAMLLogRequest. */ interface ISsoCloudSAMLLogRequest { - /** SsoCloudSAMLLogRequest ssoServiceProviderId */ - ssoServiceProviderId?: (number|Long|null); + ssoServiceProviderId?: number | Long | null; } /** This is the request for the SAML logs of a service provider. Used for both saml_log_get and saml_log_clear */ class SsoCloudSAMLLogRequest implements ISsoCloudSAMLLogRequest { - /** * Constructs a new SsoCloudSAMLLogRequest. * @param [properties] Properties to set @@ -46302,7 +49015,7 @@ export namespace SsoCloud { constructor(properties?: SsoCloud.ISsoCloudSAMLLogRequest); /** SsoCloudSAMLLogRequest ssoServiceProviderId. */ - public ssoServiceProviderId: (number|Long); + public ssoServiceProviderId: number | Long; /** * Creates a new SsoCloudSAMLLogRequest instance using the specified properties. @@ -46325,7 +49038,10 @@ export namespace SsoCloud { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: SsoCloud.ISsoCloudSAMLLogRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: SsoCloud.ISsoCloudSAMLLogRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a SsoCloudSAMLLogRequest message from the specified reader or buffer. @@ -46335,7 +49051,7 @@ export namespace SsoCloud { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): SsoCloud.SsoCloudSAMLLogRequest; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): SsoCloud.SsoCloudSAMLLogRequest; /** * Decodes a SsoCloudSAMLLogRequest message from the specified reader or buffer, length delimited. @@ -46344,14 +49060,14 @@ export namespace SsoCloud { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): SsoCloud.SsoCloudSAMLLogRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): SsoCloud.SsoCloudSAMLLogRequest; /** * Verifies a SsoCloudSAMLLogRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a SsoCloudSAMLLogRequest message from a plain object. Also converts values to their respective internal types. @@ -46366,7 +49082,10 @@ export namespace SsoCloud { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: SsoCloud.SsoCloudSAMLLogRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: SsoCloud.SsoCloudSAMLLogRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this SsoCloudSAMLLogRequest to JSON. @@ -46384,41 +49103,39 @@ export namespace SsoCloud { /** Properties of a SsoCloudSAMLLogEntry. */ interface ISsoCloudSAMLLogEntry { - /** SsoCloudSAMLLogEntry serverTime */ - serverTime?: (string|null); + serverTime?: string | null; /** SsoCloudSAMLLogEntry direction */ - direction?: (string|null); + direction?: string | null; /** SsoCloudSAMLLogEntry messageType */ - messageType?: (string|null); + messageType?: string | null; /** SsoCloudSAMLLogEntry messageIssued */ - messageIssued?: (string|null); + messageIssued?: string | null; /** SsoCloudSAMLLogEntry fromEntityId */ - fromEntityId?: (string|null); + fromEntityId?: string | null; /** SsoCloudSAMLLogEntry samlStatus */ - samlStatus?: (string|null); + samlStatus?: string | null; /** SsoCloudSAMLLogEntry relayState */ - relayState?: (string|null); + relayState?: string | null; /** SsoCloudSAMLLogEntry samlContent */ - samlContent?: (string|null); + samlContent?: string | null; /** SsoCloudSAMLLogEntry isSigned */ - isSigned?: (boolean|null); + isSigned?: boolean | null; /** SsoCloudSAMLLogEntry isOK */ - isOK?: (boolean|null); + isOK?: boolean | null; } /** This represents one SAML message in the log. */ class SsoCloudSAMLLogEntry implements ISsoCloudSAMLLogEntry { - /** * Constructs a new SsoCloudSAMLLogEntry. * @param [properties] Properties to set @@ -46476,7 +49193,10 @@ export namespace SsoCloud { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: SsoCloud.ISsoCloudSAMLLogEntry, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: SsoCloud.ISsoCloudSAMLLogEntry, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a SsoCloudSAMLLogEntry message from the specified reader or buffer. @@ -46486,7 +49206,7 @@ export namespace SsoCloud { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): SsoCloud.SsoCloudSAMLLogEntry; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): SsoCloud.SsoCloudSAMLLogEntry; /** * Decodes a SsoCloudSAMLLogEntry message from the specified reader or buffer, length delimited. @@ -46495,14 +49215,14 @@ export namespace SsoCloud { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): SsoCloud.SsoCloudSAMLLogEntry; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): SsoCloud.SsoCloudSAMLLogEntry; /** * Verifies a SsoCloudSAMLLogEntry message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a SsoCloudSAMLLogEntry message from a plain object. Also converts values to their respective internal types. @@ -46517,7 +49237,10 @@ export namespace SsoCloud { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: SsoCloud.SsoCloudSAMLLogEntry, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: SsoCloud.SsoCloudSAMLLogEntry, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this SsoCloudSAMLLogEntry to JSON. @@ -46535,17 +49258,15 @@ export namespace SsoCloud { /** Properties of a SsoCloudSAMLLogResponse. */ interface ISsoCloudSAMLLogResponse { - /** SsoCloudSAMLLogResponse ssoServiceProviderId */ - ssoServiceProviderId?: (number|Long|null); + ssoServiceProviderId?: number | Long | null; /** SsoCloudSAMLLogResponse entry */ - entry?: (SsoCloud.ISsoCloudSAMLLogEntry[]|null); + entry?: SsoCloud.ISsoCloudSAMLLogEntry[] | null; } /** This represents an array of SAML responses from the log. */ class SsoCloudSAMLLogResponse implements ISsoCloudSAMLLogResponse { - /** * Constructs a new SsoCloudSAMLLogResponse. * @param [properties] Properties to set @@ -46553,7 +49274,7 @@ export namespace SsoCloud { constructor(properties?: SsoCloud.ISsoCloudSAMLLogResponse); /** SsoCloudSAMLLogResponse ssoServiceProviderId. */ - public ssoServiceProviderId: (number|Long); + public ssoServiceProviderId: number | Long; /** SsoCloudSAMLLogResponse entry. */ public entry: SsoCloud.ISsoCloudSAMLLogEntry[]; @@ -46579,7 +49300,10 @@ export namespace SsoCloud { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: SsoCloud.ISsoCloudSAMLLogResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: SsoCloud.ISsoCloudSAMLLogResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a SsoCloudSAMLLogResponse message from the specified reader or buffer. @@ -46589,7 +49313,7 @@ export namespace SsoCloud { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): SsoCloud.SsoCloudSAMLLogResponse; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): SsoCloud.SsoCloudSAMLLogResponse; /** * Decodes a SsoCloudSAMLLogResponse message from the specified reader or buffer, length delimited. @@ -46598,14 +49322,14 @@ export namespace SsoCloud { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): SsoCloud.SsoCloudSAMLLogResponse; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): SsoCloud.SsoCloudSAMLLogResponse; /** * Verifies a SsoCloudSAMLLogResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a SsoCloudSAMLLogResponse message from a plain object. Also converts values to their respective internal types. @@ -46620,7 +49344,10 @@ export namespace SsoCloud { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: SsoCloud.SsoCloudSAMLLogResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: SsoCloud.SsoCloudSAMLLogResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this SsoCloudSAMLLogResponse to JSON. @@ -46638,12 +49365,11 @@ export namespace SsoCloud { /** Properties of a SsoCloudServiceProviderUpdateRequest. */ interface ISsoCloudServiceProviderUpdateRequest { - /** SsoCloudServiceProviderUpdateRequest ssoServiceProviderId */ - ssoServiceProviderId?: (number|Long|null); + ssoServiceProviderId?: number | Long | null; /** SsoCloudServiceProviderUpdateRequest ssoSpConfigurationId */ - ssoSpConfigurationId?: (number|Long|null); + ssoSpConfigurationId?: number | Long | null; } /** @@ -46651,7 +49377,6 @@ export namespace SsoCloud { * The response is an instance of SsoCloudConfigurationRequest. */ class SsoCloudServiceProviderUpdateRequest implements ISsoCloudServiceProviderUpdateRequest { - /** * Constructs a new SsoCloudServiceProviderUpdateRequest. * @param [properties] Properties to set @@ -46659,17 +49384,19 @@ export namespace SsoCloud { constructor(properties?: SsoCloud.ISsoCloudServiceProviderUpdateRequest); /** SsoCloudServiceProviderUpdateRequest ssoServiceProviderId. */ - public ssoServiceProviderId: (number|Long); + public ssoServiceProviderId: number | Long; /** SsoCloudServiceProviderUpdateRequest ssoSpConfigurationId. */ - public ssoSpConfigurationId: (number|Long); + public ssoSpConfigurationId: number | Long; /** * Creates a new SsoCloudServiceProviderUpdateRequest instance using the specified properties. * @param [properties] Properties to set * @returns SsoCloudServiceProviderUpdateRequest instance */ - public static create(properties?: SsoCloud.ISsoCloudServiceProviderUpdateRequest): SsoCloud.SsoCloudServiceProviderUpdateRequest; + public static create( + properties?: SsoCloud.ISsoCloudServiceProviderUpdateRequest + ): SsoCloud.SsoCloudServiceProviderUpdateRequest; /** * Encodes the specified SsoCloudServiceProviderUpdateRequest message. Does not implicitly {@link SsoCloud.SsoCloudServiceProviderUpdateRequest.verify|verify} messages. @@ -46677,7 +49404,10 @@ export namespace SsoCloud { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: SsoCloud.ISsoCloudServiceProviderUpdateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: SsoCloud.ISsoCloudServiceProviderUpdateRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified SsoCloudServiceProviderUpdateRequest message, length delimited. Does not implicitly {@link SsoCloud.SsoCloudServiceProviderUpdateRequest.verify|verify} messages. @@ -46685,7 +49415,10 @@ export namespace SsoCloud { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: SsoCloud.ISsoCloudServiceProviderUpdateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: SsoCloud.ISsoCloudServiceProviderUpdateRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a SsoCloudServiceProviderUpdateRequest message from the specified reader or buffer. @@ -46695,7 +49428,10 @@ export namespace SsoCloud { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): SsoCloud.SsoCloudServiceProviderUpdateRequest; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): SsoCloud.SsoCloudServiceProviderUpdateRequest; /** * Decodes a SsoCloudServiceProviderUpdateRequest message from the specified reader or buffer, length delimited. @@ -46704,14 +49440,16 @@ export namespace SsoCloud { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): SsoCloud.SsoCloudServiceProviderUpdateRequest; + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array + ): SsoCloud.SsoCloudServiceProviderUpdateRequest; /** * Verifies a SsoCloudServiceProviderUpdateRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a SsoCloudServiceProviderUpdateRequest message from a plain object. Also converts values to their respective internal types. @@ -46726,7 +49464,10 @@ export namespace SsoCloud { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: SsoCloud.SsoCloudServiceProviderUpdateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: SsoCloud.SsoCloudServiceProviderUpdateRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this SsoCloudServiceProviderUpdateRequest to JSON. @@ -46744,15 +49485,14 @@ export namespace SsoCloud { /** Properties of a SsoCloudIdpMetadataRequest. */ interface ISsoCloudIdpMetadataRequest { - /** SsoCloudIdpMetadataRequest ssoSpConfigurationId */ - ssoSpConfigurationId?: (number|Long|null); + ssoSpConfigurationId?: number | Long | null; /** SsoCloudIdpMetadataRequest filename */ - filename?: (string|null); + filename?: string | null; /** SsoCloudIdpMetadataRequest content */ - content?: (Uint8Array|null); + content?: Uint8Array | null; } /** @@ -46760,7 +49500,6 @@ export namespace SsoCloud { * The response is an SsoCloudConfigurationValidationResponse. */ class SsoCloudIdpMetadataRequest implements ISsoCloudIdpMetadataRequest { - /** * Constructs a new SsoCloudIdpMetadataRequest. * @param [properties] Properties to set @@ -46768,7 +49507,7 @@ export namespace SsoCloud { constructor(properties?: SsoCloud.ISsoCloudIdpMetadataRequest); /** SsoCloudIdpMetadataRequest ssoSpConfigurationId. */ - public ssoSpConfigurationId: (number|Long); + public ssoSpConfigurationId: number | Long; /** SsoCloudIdpMetadataRequest filename. */ public filename: string; @@ -46789,7 +49528,10 @@ export namespace SsoCloud { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: SsoCloud.ISsoCloudIdpMetadataRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: SsoCloud.ISsoCloudIdpMetadataRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified SsoCloudIdpMetadataRequest message, length delimited. Does not implicitly {@link SsoCloud.SsoCloudIdpMetadataRequest.verify|verify} messages. @@ -46797,7 +49539,10 @@ export namespace SsoCloud { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: SsoCloud.ISsoCloudIdpMetadataRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: SsoCloud.ISsoCloudIdpMetadataRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a SsoCloudIdpMetadataRequest message from the specified reader or buffer. @@ -46807,7 +49552,10 @@ export namespace SsoCloud { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): SsoCloud.SsoCloudIdpMetadataRequest; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): SsoCloud.SsoCloudIdpMetadataRequest; /** * Decodes a SsoCloudIdpMetadataRequest message from the specified reader or buffer, length delimited. @@ -46816,14 +49564,14 @@ export namespace SsoCloud { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): SsoCloud.SsoCloudIdpMetadataRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): SsoCloud.SsoCloudIdpMetadataRequest; /** * Verifies a SsoCloudIdpMetadataRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a SsoCloudIdpMetadataRequest message from a plain object. Also converts values to their respective internal types. @@ -46838,7 +49586,10 @@ export namespace SsoCloud { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: SsoCloud.SsoCloudIdpMetadataRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: SsoCloud.SsoCloudIdpMetadataRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this SsoCloudIdpMetadataRequest to JSON. @@ -46856,21 +49607,20 @@ export namespace SsoCloud { /** Properties of a SsoCloudIdpMetadataSupportRequest. */ interface ISsoCloudIdpMetadataSupportRequest { - /** SsoCloudIdpMetadataSupportRequest ssoServiceProviderId */ - ssoServiceProviderId?: (number|Long|null); + ssoServiceProviderId?: number | Long | null; /** SsoCloudIdpMetadataSupportRequest ssoSpConfigurationId */ - ssoSpConfigurationId?: (number|Long|null); + ssoSpConfigurationId?: number | Long | null; /** SsoCloudIdpMetadataSupportRequest ssoEnterpriseId */ - ssoEnterpriseId?: (number|Long|null); + ssoEnterpriseId?: number | Long | null; /** SsoCloudIdpMetadataSupportRequest filename */ - filename?: (string|null); + filename?: string | null; /** SsoCloudIdpMetadataSupportRequest content */ - content?: (Uint8Array|null); + content?: Uint8Array | null; } /** @@ -46878,7 +49628,6 @@ export namespace SsoCloud { * The response is an SsoCloudConfigurationValidationResponse. */ class SsoCloudIdpMetadataSupportRequest implements ISsoCloudIdpMetadataSupportRequest { - /** * Constructs a new SsoCloudIdpMetadataSupportRequest. * @param [properties] Properties to set @@ -46886,13 +49635,13 @@ export namespace SsoCloud { constructor(properties?: SsoCloud.ISsoCloudIdpMetadataSupportRequest); /** SsoCloudIdpMetadataSupportRequest ssoServiceProviderId. */ - public ssoServiceProviderId: (number|Long); + public ssoServiceProviderId: number | Long; /** SsoCloudIdpMetadataSupportRequest ssoSpConfigurationId. */ - public ssoSpConfigurationId: (number|Long); + public ssoSpConfigurationId: number | Long; /** SsoCloudIdpMetadataSupportRequest ssoEnterpriseId. */ - public ssoEnterpriseId: (number|Long); + public ssoEnterpriseId: number | Long; /** SsoCloudIdpMetadataSupportRequest filename. */ public filename: string; @@ -46905,7 +49654,9 @@ export namespace SsoCloud { * @param [properties] Properties to set * @returns SsoCloudIdpMetadataSupportRequest instance */ - public static create(properties?: SsoCloud.ISsoCloudIdpMetadataSupportRequest): SsoCloud.SsoCloudIdpMetadataSupportRequest; + public static create( + properties?: SsoCloud.ISsoCloudIdpMetadataSupportRequest + ): SsoCloud.SsoCloudIdpMetadataSupportRequest; /** * Encodes the specified SsoCloudIdpMetadataSupportRequest message. Does not implicitly {@link SsoCloud.SsoCloudIdpMetadataSupportRequest.verify|verify} messages. @@ -46913,7 +49664,10 @@ export namespace SsoCloud { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: SsoCloud.ISsoCloudIdpMetadataSupportRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: SsoCloud.ISsoCloudIdpMetadataSupportRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified SsoCloudIdpMetadataSupportRequest message, length delimited. Does not implicitly {@link SsoCloud.SsoCloudIdpMetadataSupportRequest.verify|verify} messages. @@ -46921,7 +49675,10 @@ export namespace SsoCloud { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: SsoCloud.ISsoCloudIdpMetadataSupportRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: SsoCloud.ISsoCloudIdpMetadataSupportRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a SsoCloudIdpMetadataSupportRequest message from the specified reader or buffer. @@ -46931,7 +49688,10 @@ export namespace SsoCloud { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): SsoCloud.SsoCloudIdpMetadataSupportRequest; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): SsoCloud.SsoCloudIdpMetadataSupportRequest; /** * Decodes a SsoCloudIdpMetadataSupportRequest message from the specified reader or buffer, length delimited. @@ -46940,14 +49700,16 @@ export namespace SsoCloud { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): SsoCloud.SsoCloudIdpMetadataSupportRequest; + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array + ): SsoCloud.SsoCloudIdpMetadataSupportRequest; /** * Verifies a SsoCloudIdpMetadataSupportRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a SsoCloudIdpMetadataSupportRequest message from a plain object. Also converts values to their respective internal types. @@ -46962,7 +49724,10 @@ export namespace SsoCloud { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: SsoCloud.SsoCloudIdpMetadataSupportRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: SsoCloud.SsoCloudIdpMetadataSupportRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this SsoCloudIdpMetadataSupportRequest to JSON. @@ -46980,9 +49745,8 @@ export namespace SsoCloud { /** Properties of a SsoCloudConfigurationValidationRequest. */ interface ISsoCloudConfigurationValidationRequest { - /** SsoCloudConfigurationValidationRequest ssoSpConfigurationId */ - ssoSpConfigurationId?: ((number|Long)[]|null); + ssoSpConfigurationId?: (number | Long)[] | null; } /** @@ -46990,7 +49754,6 @@ export namespace SsoCloud { * The response is SsoCloudConfigurationValidationResponse. */ class SsoCloudConfigurationValidationRequest implements ISsoCloudConfigurationValidationRequest { - /** * Constructs a new SsoCloudConfigurationValidationRequest. * @param [properties] Properties to set @@ -46998,14 +49761,16 @@ export namespace SsoCloud { constructor(properties?: SsoCloud.ISsoCloudConfigurationValidationRequest); /** SsoCloudConfigurationValidationRequest ssoSpConfigurationId. */ - public ssoSpConfigurationId: (number|Long)[]; + public ssoSpConfigurationId: (number | Long)[]; /** * Creates a new SsoCloudConfigurationValidationRequest instance using the specified properties. * @param [properties] Properties to set * @returns SsoCloudConfigurationValidationRequest instance */ - public static create(properties?: SsoCloud.ISsoCloudConfigurationValidationRequest): SsoCloud.SsoCloudConfigurationValidationRequest; + public static create( + properties?: SsoCloud.ISsoCloudConfigurationValidationRequest + ): SsoCloud.SsoCloudConfigurationValidationRequest; /** * Encodes the specified SsoCloudConfigurationValidationRequest message. Does not implicitly {@link SsoCloud.SsoCloudConfigurationValidationRequest.verify|verify} messages. @@ -47013,7 +49778,10 @@ export namespace SsoCloud { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: SsoCloud.ISsoCloudConfigurationValidationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: SsoCloud.ISsoCloudConfigurationValidationRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified SsoCloudConfigurationValidationRequest message, length delimited. Does not implicitly {@link SsoCloud.SsoCloudConfigurationValidationRequest.verify|verify} messages. @@ -47021,7 +49789,10 @@ export namespace SsoCloud { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: SsoCloud.ISsoCloudConfigurationValidationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: SsoCloud.ISsoCloudConfigurationValidationRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a SsoCloudConfigurationValidationRequest message from the specified reader or buffer. @@ -47031,7 +49802,10 @@ export namespace SsoCloud { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): SsoCloud.SsoCloudConfigurationValidationRequest; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): SsoCloud.SsoCloudConfigurationValidationRequest; /** * Decodes a SsoCloudConfigurationValidationRequest message from the specified reader or buffer, length delimited. @@ -47040,14 +49814,16 @@ export namespace SsoCloud { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): SsoCloud.SsoCloudConfigurationValidationRequest; + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array + ): SsoCloud.SsoCloudConfigurationValidationRequest; /** * Verifies a SsoCloudConfigurationValidationRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a SsoCloudConfigurationValidationRequest message from a plain object. Also converts values to their respective internal types. @@ -47062,7 +49838,10 @@ export namespace SsoCloud { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: SsoCloud.SsoCloudConfigurationValidationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: SsoCloud.SsoCloudConfigurationValidationRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this SsoCloudConfigurationValidationRequest to JSON. @@ -47080,20 +49859,18 @@ export namespace SsoCloud { /** Properties of a ValidationContent. */ interface IValidationContent { - /** ValidationContent ssoSpConfigurationId */ - ssoSpConfigurationId?: (number|Long|null); + ssoSpConfigurationId?: number | Long | null; /** ValidationContent isSuccessful */ - isSuccessful?: (boolean|null); + isSuccessful?: boolean | null; /** ValidationContent errorMessage */ - errorMessage?: (string[]|null); + errorMessage?: string[] | null; } /** This is part of SsoCloudConfigurationValidationResponse. */ class ValidationContent implements IValidationContent { - /** * Constructs a new ValidationContent. * @param [properties] Properties to set @@ -47101,7 +49878,7 @@ export namespace SsoCloud { constructor(properties?: SsoCloud.IValidationContent); /** ValidationContent ssoSpConfigurationId. */ - public ssoSpConfigurationId: (number|Long); + public ssoSpConfigurationId: number | Long; /** ValidationContent isSuccessful. */ public isSuccessful: boolean; @@ -47130,7 +49907,10 @@ export namespace SsoCloud { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: SsoCloud.IValidationContent, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: SsoCloud.IValidationContent, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a ValidationContent message from the specified reader or buffer. @@ -47140,7 +49920,7 @@ export namespace SsoCloud { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): SsoCloud.ValidationContent; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): SsoCloud.ValidationContent; /** * Decodes a ValidationContent message from the specified reader or buffer, length delimited. @@ -47149,14 +49929,14 @@ export namespace SsoCloud { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): SsoCloud.ValidationContent; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): SsoCloud.ValidationContent; /** * Verifies a ValidationContent message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a ValidationContent message from a plain object. Also converts values to their respective internal types. @@ -47171,7 +49951,10 @@ export namespace SsoCloud { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: SsoCloud.ValidationContent, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: SsoCloud.ValidationContent, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this ValidationContent to JSON. @@ -47189,14 +49972,12 @@ export namespace SsoCloud { /** Properties of a SsoCloudConfigurationValidationResponse. */ interface ISsoCloudConfigurationValidationResponse { - /** SsoCloudConfigurationValidationResponse validationContent */ - validationContent?: (SsoCloud.IValidationContent[]|null); + validationContent?: SsoCloud.IValidationContent[] | null; } /** This response is sent for a configuration validation request and for a Metadata upload request. */ class SsoCloudConfigurationValidationResponse implements ISsoCloudConfigurationValidationResponse { - /** * Constructs a new SsoCloudConfigurationValidationResponse. * @param [properties] Properties to set @@ -47211,7 +49992,9 @@ export namespace SsoCloud { * @param [properties] Properties to set * @returns SsoCloudConfigurationValidationResponse instance */ - public static create(properties?: SsoCloud.ISsoCloudConfigurationValidationResponse): SsoCloud.SsoCloudConfigurationValidationResponse; + public static create( + properties?: SsoCloud.ISsoCloudConfigurationValidationResponse + ): SsoCloud.SsoCloudConfigurationValidationResponse; /** * Encodes the specified SsoCloudConfigurationValidationResponse message. Does not implicitly {@link SsoCloud.SsoCloudConfigurationValidationResponse.verify|verify} messages. @@ -47219,7 +50002,10 @@ export namespace SsoCloud { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: SsoCloud.ISsoCloudConfigurationValidationResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: SsoCloud.ISsoCloudConfigurationValidationResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified SsoCloudConfigurationValidationResponse message, length delimited. Does not implicitly {@link SsoCloud.SsoCloudConfigurationValidationResponse.verify|verify} messages. @@ -47227,7 +50013,10 @@ export namespace SsoCloud { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: SsoCloud.ISsoCloudConfigurationValidationResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: SsoCloud.ISsoCloudConfigurationValidationResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a SsoCloudConfigurationValidationResponse message from the specified reader or buffer. @@ -47237,7 +50026,10 @@ export namespace SsoCloud { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): SsoCloud.SsoCloudConfigurationValidationResponse; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): SsoCloud.SsoCloudConfigurationValidationResponse; /** * Decodes a SsoCloudConfigurationValidationResponse message from the specified reader or buffer, length delimited. @@ -47246,14 +50038,16 @@ export namespace SsoCloud { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): SsoCloud.SsoCloudConfigurationValidationResponse; + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array + ): SsoCloud.SsoCloudConfigurationValidationResponse; /** * Verifies a SsoCloudConfigurationValidationResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a SsoCloudConfigurationValidationResponse message from a plain object. Also converts values to their respective internal types. @@ -47268,7 +50062,10 @@ export namespace SsoCloud { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: SsoCloud.SsoCloudConfigurationValidationResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: SsoCloud.SsoCloudConfigurationValidationResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this SsoCloudConfigurationValidationResponse to JSON. @@ -47286,14 +50083,12 @@ export namespace SsoCloud { /** Properties of a SsoCloudServiceProviderConfigurationListRequest. */ interface ISsoCloudServiceProviderConfigurationListRequest { - /** SsoCloudServiceProviderConfigurationListRequest ssoServiceProviderId */ - ssoServiceProviderId?: (number|Long|null); + ssoServiceProviderId?: number | Long | null; } /** This request is sent to retrieve the list of configurations defined in an enterprise. */ class SsoCloudServiceProviderConfigurationListRequest implements ISsoCloudServiceProviderConfigurationListRequest { - /** * Constructs a new SsoCloudServiceProviderConfigurationListRequest. * @param [properties] Properties to set @@ -47301,14 +50096,16 @@ export namespace SsoCloud { constructor(properties?: SsoCloud.ISsoCloudServiceProviderConfigurationListRequest); /** SsoCloudServiceProviderConfigurationListRequest ssoServiceProviderId. */ - public ssoServiceProviderId: (number|Long); + public ssoServiceProviderId: number | Long; /** * Creates a new SsoCloudServiceProviderConfigurationListRequest instance using the specified properties. * @param [properties] Properties to set * @returns SsoCloudServiceProviderConfigurationListRequest instance */ - public static create(properties?: SsoCloud.ISsoCloudServiceProviderConfigurationListRequest): SsoCloud.SsoCloudServiceProviderConfigurationListRequest; + public static create( + properties?: SsoCloud.ISsoCloudServiceProviderConfigurationListRequest + ): SsoCloud.SsoCloudServiceProviderConfigurationListRequest; /** * Encodes the specified SsoCloudServiceProviderConfigurationListRequest message. Does not implicitly {@link SsoCloud.SsoCloudServiceProviderConfigurationListRequest.verify|verify} messages. @@ -47316,7 +50113,10 @@ export namespace SsoCloud { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: SsoCloud.ISsoCloudServiceProviderConfigurationListRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: SsoCloud.ISsoCloudServiceProviderConfigurationListRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified SsoCloudServiceProviderConfigurationListRequest message, length delimited. Does not implicitly {@link SsoCloud.SsoCloudServiceProviderConfigurationListRequest.verify|verify} messages. @@ -47324,7 +50124,10 @@ export namespace SsoCloud { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: SsoCloud.ISsoCloudServiceProviderConfigurationListRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: SsoCloud.ISsoCloudServiceProviderConfigurationListRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a SsoCloudServiceProviderConfigurationListRequest message from the specified reader or buffer. @@ -47334,7 +50137,10 @@ export namespace SsoCloud { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): SsoCloud.SsoCloudServiceProviderConfigurationListRequest; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): SsoCloud.SsoCloudServiceProviderConfigurationListRequest; /** * Decodes a SsoCloudServiceProviderConfigurationListRequest message from the specified reader or buffer, length delimited. @@ -47343,21 +50149,25 @@ export namespace SsoCloud { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): SsoCloud.SsoCloudServiceProviderConfigurationListRequest; + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array + ): SsoCloud.SsoCloudServiceProviderConfigurationListRequest; /** * Verifies a SsoCloudServiceProviderConfigurationListRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a SsoCloudServiceProviderConfigurationListRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns SsoCloudServiceProviderConfigurationListRequest */ - public static fromObject(object: { [k: string]: any }): SsoCloud.SsoCloudServiceProviderConfigurationListRequest; + public static fromObject(object: { + [k: string]: any; + }): SsoCloud.SsoCloudServiceProviderConfigurationListRequest; /** * Creates a plain object from a SsoCloudServiceProviderConfigurationListRequest message. Also converts values to other types if specified. @@ -47365,7 +50175,10 @@ export namespace SsoCloud { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: SsoCloud.SsoCloudServiceProviderConfigurationListRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: SsoCloud.SsoCloudServiceProviderConfigurationListRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this SsoCloudServiceProviderConfigurationListRequest to JSON. @@ -47383,18 +50196,17 @@ export namespace SsoCloud { /** Properties of a ConfigurationListItem. */ interface IConfigurationListItem { - /** ConfigurationListItem ssoSpConfigurationId */ - ssoSpConfigurationId?: (number|Long|null); + ssoSpConfigurationId?: number | Long | null; /** ConfigurationListItem name */ - name?: (string|null); + name?: string | null; /** ConfigurationListItem isSelected */ - isSelected?: (boolean|null); + isSelected?: boolean | null; /** ConfigurationListItem ssoServiceProviderId */ - ssoServiceProviderId?: ((number|Long)[]|null); + ssoServiceProviderId?: (number | Long)[] | null; } /** @@ -47402,7 +50214,6 @@ export namespace SsoCloud { * If isSelected is true this configuration is currently being used by the sso service provider(s) listed. */ class ConfigurationListItem implements IConfigurationListItem { - /** * Constructs a new ConfigurationListItem. * @param [properties] Properties to set @@ -47410,7 +50221,7 @@ export namespace SsoCloud { constructor(properties?: SsoCloud.IConfigurationListItem); /** ConfigurationListItem ssoSpConfigurationId. */ - public ssoSpConfigurationId: (number|Long); + public ssoSpConfigurationId: number | Long; /** ConfigurationListItem name. */ public name: string; @@ -47419,7 +50230,7 @@ export namespace SsoCloud { public isSelected: boolean; /** ConfigurationListItem ssoServiceProviderId. */ - public ssoServiceProviderId: (number|Long)[]; + public ssoServiceProviderId: (number | Long)[]; /** * Creates a new ConfigurationListItem instance using the specified properties. @@ -47442,7 +50253,10 @@ export namespace SsoCloud { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: SsoCloud.IConfigurationListItem, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: SsoCloud.IConfigurationListItem, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a ConfigurationListItem message from the specified reader or buffer. @@ -47452,7 +50266,7 @@ export namespace SsoCloud { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): SsoCloud.ConfigurationListItem; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): SsoCloud.ConfigurationListItem; /** * Decodes a ConfigurationListItem message from the specified reader or buffer, length delimited. @@ -47461,14 +50275,14 @@ export namespace SsoCloud { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): SsoCloud.ConfigurationListItem; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): SsoCloud.ConfigurationListItem; /** * Verifies a ConfigurationListItem message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a ConfigurationListItem message from a plain object. Also converts values to their respective internal types. @@ -47483,7 +50297,10 @@ export namespace SsoCloud { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: SsoCloud.ConfigurationListItem, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: SsoCloud.ConfigurationListItem, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this ConfigurationListItem to JSON. @@ -47501,14 +50318,12 @@ export namespace SsoCloud { /** Properties of a SsoCloudServiceProviderConfigurationListResponse. */ interface ISsoCloudServiceProviderConfigurationListResponse { - /** SsoCloudServiceProviderConfigurationListResponse configurationItem */ - configurationItem?: (SsoCloud.IConfigurationListItem[]|null); + configurationItem?: SsoCloud.IConfigurationListItem[] | null; } /** This represents a list of Configuration entries. */ class SsoCloudServiceProviderConfigurationListResponse implements ISsoCloudServiceProviderConfigurationListResponse { - /** * Constructs a new SsoCloudServiceProviderConfigurationListResponse. * @param [properties] Properties to set @@ -47523,7 +50338,9 @@ export namespace SsoCloud { * @param [properties] Properties to set * @returns SsoCloudServiceProviderConfigurationListResponse instance */ - public static create(properties?: SsoCloud.ISsoCloudServiceProviderConfigurationListResponse): SsoCloud.SsoCloudServiceProviderConfigurationListResponse; + public static create( + properties?: SsoCloud.ISsoCloudServiceProviderConfigurationListResponse + ): SsoCloud.SsoCloudServiceProviderConfigurationListResponse; /** * Encodes the specified SsoCloudServiceProviderConfigurationListResponse message. Does not implicitly {@link SsoCloud.SsoCloudServiceProviderConfigurationListResponse.verify|verify} messages. @@ -47531,7 +50348,10 @@ export namespace SsoCloud { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: SsoCloud.ISsoCloudServiceProviderConfigurationListResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: SsoCloud.ISsoCloudServiceProviderConfigurationListResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified SsoCloudServiceProviderConfigurationListResponse message, length delimited. Does not implicitly {@link SsoCloud.SsoCloudServiceProviderConfigurationListResponse.verify|verify} messages. @@ -47539,7 +50359,10 @@ export namespace SsoCloud { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: SsoCloud.ISsoCloudServiceProviderConfigurationListResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: SsoCloud.ISsoCloudServiceProviderConfigurationListResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a SsoCloudServiceProviderConfigurationListResponse message from the specified reader or buffer. @@ -47549,7 +50372,10 @@ export namespace SsoCloud { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): SsoCloud.SsoCloudServiceProviderConfigurationListResponse; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): SsoCloud.SsoCloudServiceProviderConfigurationListResponse; /** * Decodes a SsoCloudServiceProviderConfigurationListResponse message from the specified reader or buffer, length delimited. @@ -47558,21 +50384,25 @@ export namespace SsoCloud { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): SsoCloud.SsoCloudServiceProviderConfigurationListResponse; + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array + ): SsoCloud.SsoCloudServiceProviderConfigurationListResponse; /** * Verifies a SsoCloudServiceProviderConfigurationListResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a SsoCloudServiceProviderConfigurationListResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns SsoCloudServiceProviderConfigurationListResponse */ - public static fromObject(object: { [k: string]: any }): SsoCloud.SsoCloudServiceProviderConfigurationListResponse; + public static fromObject(object: { + [k: string]: any; + }): SsoCloud.SsoCloudServiceProviderConfigurationListResponse; /** * Creates a plain object from a SsoCloudServiceProviderConfigurationListResponse message. Also converts values to other types if specified. @@ -47580,7 +50410,10 @@ export namespace SsoCloud { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: SsoCloud.SsoCloudServiceProviderConfigurationListResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: SsoCloud.SsoCloudServiceProviderConfigurationListResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this SsoCloudServiceProviderConfigurationListResponse to JSON. @@ -47598,33 +50431,32 @@ export namespace SsoCloud { /** Properties of a SsoCloudRequest. */ interface ISsoCloudRequest { - /** SsoCloudRequest messageSessionUid */ - messageSessionUid?: (Uint8Array|null); + messageSessionUid?: Uint8Array | null; /** SsoCloudRequest clientVersion */ - clientVersion?: (string|null); + clientVersion?: string | null; /** SsoCloudRequest embedded */ - embedded?: (boolean|null); + embedded?: boolean | null; /** SsoCloudRequest json */ - json?: (boolean|null); + json?: boolean | null; /** SsoCloudRequest dest */ - dest?: (string|null); + dest?: string | null; /** SsoCloudRequest idpSessionId */ - idpSessionId?: (string|null); + idpSessionId?: string | null; /** SsoCloudRequest forceLogin */ - forceLogin?: (boolean|null); + forceLogin?: boolean | null; /** SsoCloudRequest username */ - username?: (string|null); + username?: string | null; /** SsoCloudRequest detached */ - detached?: (boolean|null); + detached?: boolean | null; } /** @@ -47632,7 +50464,6 @@ export namespace SsoCloud { * A typical call is: https://www.keepersecurity.com/api/rest/sso/saml/login/123456789?payload=encodedEncryptedAPIRequestContainingAnSsoCloudRequest */ class SsoCloudRequest implements ISsoCloudRequest { - /** * Constructs a new SsoCloudRequest. * @param [properties] Properties to set @@ -47697,7 +50528,7 @@ export namespace SsoCloud { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): SsoCloud.SsoCloudRequest; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): SsoCloud.SsoCloudRequest; /** * Decodes a SsoCloudRequest message from the specified reader or buffer, length delimited. @@ -47706,14 +50537,14 @@ export namespace SsoCloud { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): SsoCloud.SsoCloudRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): SsoCloud.SsoCloudRequest; /** * Verifies a SsoCloudRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a SsoCloudRequest message from a plain object. Also converts values to their respective internal types. @@ -47728,7 +50559,10 @@ export namespace SsoCloud { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: SsoCloud.SsoCloudRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: SsoCloud.SsoCloudRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this SsoCloudRequest to JSON. @@ -47746,30 +50580,29 @@ export namespace SsoCloud { /** Properties of a SsoCloudResponse. */ interface ISsoCloudResponse { - /** SsoCloudResponse command */ - command?: (string|null); + command?: string | null; /** SsoCloudResponse messageSessionUid */ - messageSessionUid?: (Uint8Array|null); + messageSessionUid?: Uint8Array | null; /** SsoCloudResponse email */ - email?: (string|null); + email?: string | null; /** SsoCloudResponse encryptedLoginToken */ - encryptedLoginToken?: (Uint8Array|null); + encryptedLoginToken?: Uint8Array | null; /** SsoCloudResponse providerName */ - providerName?: (string|null); + providerName?: string | null; /** SsoCloudResponse idpSessionId */ - idpSessionId?: (string|null); + idpSessionId?: string | null; /** SsoCloudResponse encryptedSessionToken */ - encryptedSessionToken?: (Uint8Array|null); + encryptedSessionToken?: Uint8Array | null; /** SsoCloudResponse errorToken */ - errorToken?: (string|null); + errorToken?: string | null; } /** @@ -47777,7 +50610,6 @@ export namespace SsoCloud { * It is encrypted with the key sent along with the SsoCloudRequest. */ class SsoCloudResponse implements ISsoCloudResponse { - /** * Constructs a new SsoCloudResponse. * @param [properties] Properties to set @@ -47839,7 +50671,7 @@ export namespace SsoCloud { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): SsoCloud.SsoCloudResponse; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): SsoCloud.SsoCloudResponse; /** * Decodes a SsoCloudResponse message from the specified reader or buffer, length delimited. @@ -47848,14 +50680,14 @@ export namespace SsoCloud { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): SsoCloud.SsoCloudResponse; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): SsoCloud.SsoCloudResponse; /** * Verifies a SsoCloudResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a SsoCloudResponse message from a plain object. Also converts values to their respective internal types. @@ -47870,7 +50702,10 @@ export namespace SsoCloud { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: SsoCloud.SsoCloudResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: SsoCloud.SsoCloudResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this SsoCloudResponse to JSON. @@ -47888,20 +50723,18 @@ export namespace SsoCloud { /** Properties of a SsoCloudLogRequest. */ interface ISsoCloudLogRequest { - /** SsoCloudLogRequest ssoServiceProviderId */ - ssoServiceProviderId?: (number|Long|null); + ssoServiceProviderId?: number | Long | null; /** SsoCloudLogRequest serviceName */ - serviceName?: (string|null); + serviceName?: string | null; /** SsoCloudLogRequest serviceId */ - serviceId?: (number|null); + serviceId?: number | null; } /** This allows the user to retrieve or clear SSO logs related to a service provider. */ class SsoCloudLogRequest implements ISsoCloudLogRequest { - /** * Constructs a new SsoCloudLogRequest. * @param [properties] Properties to set @@ -47909,7 +50742,7 @@ export namespace SsoCloud { constructor(properties?: SsoCloud.ISsoCloudLogRequest); /** SsoCloudLogRequest ssoServiceProviderId. */ - public ssoServiceProviderId: (number|Long); + public ssoServiceProviderId: number | Long; /** SsoCloudLogRequest serviceName. */ public serviceName: string; @@ -47938,7 +50771,10 @@ export namespace SsoCloud { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: SsoCloud.ISsoCloudLogRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: SsoCloud.ISsoCloudLogRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a SsoCloudLogRequest message from the specified reader or buffer. @@ -47948,7 +50784,7 @@ export namespace SsoCloud { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): SsoCloud.SsoCloudLogRequest; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): SsoCloud.SsoCloudLogRequest; /** * Decodes a SsoCloudLogRequest message from the specified reader or buffer, length delimited. @@ -47957,14 +50793,14 @@ export namespace SsoCloud { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): SsoCloud.SsoCloudLogRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): SsoCloud.SsoCloudLogRequest; /** * Verifies a SsoCloudLogRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a SsoCloudLogRequest message from a plain object. Also converts values to their respective internal types. @@ -47979,7 +50815,10 @@ export namespace SsoCloud { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: SsoCloud.SsoCloudLogRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: SsoCloud.SsoCloudLogRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this SsoCloudLogRequest to JSON. @@ -47997,44 +50836,42 @@ export namespace SsoCloud { /** Properties of a SamlRelayState. */ interface ISamlRelayState { - /** SamlRelayState messageSessionUid */ - messageSessionUid?: (Uint8Array|null); + messageSessionUid?: Uint8Array | null; /** SamlRelayState username */ - username?: (string|null); + username?: string | null; /** SamlRelayState embedded */ - embedded?: (boolean|null); + embedded?: boolean | null; /** SamlRelayState json */ - json?: (boolean|null); + json?: boolean | null; /** SamlRelayState destId */ - destId?: (number|null); + destId?: number | null; /** SamlRelayState keyId */ - keyId?: (number|null); + keyId?: number | null; /** SamlRelayState supportedLanguage */ - supportedLanguage?: (Authentication.SupportedLanguage|null); + supportedLanguage?: Authentication.SupportedLanguage | null; /** SamlRelayState checksum */ - checksum?: (number|Long|null); + checksum?: number | Long | null; /** SamlRelayState isGeneratedUid */ - isGeneratedUid?: (boolean|null); + isGeneratedUid?: boolean | null; /** SamlRelayState deviceId */ - deviceId?: (number|Long|null); + deviceId?: number | Long | null; /** SamlRelayState detached */ - detached?: (boolean|null); + detached?: boolean | null; } /** This is used internally by Cloud SSO. Clients do not use it. */ class SamlRelayState implements ISamlRelayState { - /** * Constructs a new SamlRelayState. * @param [properties] Properties to set @@ -48063,13 +50900,13 @@ export namespace SsoCloud { public supportedLanguage: Authentication.SupportedLanguage; /** SamlRelayState checksum. */ - public checksum: (number|Long); + public checksum: number | Long; /** SamlRelayState isGeneratedUid. */ public isGeneratedUid: boolean; /** SamlRelayState deviceId. */ - public deviceId: (number|Long); + public deviceId: number | Long; /** SamlRelayState detached. */ public detached: boolean; @@ -48105,7 +50942,7 @@ export namespace SsoCloud { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): SsoCloud.SamlRelayState; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): SsoCloud.SamlRelayState; /** * Decodes a SamlRelayState message from the specified reader or buffer, length delimited. @@ -48114,14 +50951,14 @@ export namespace SsoCloud { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): SsoCloud.SamlRelayState; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): SsoCloud.SamlRelayState; /** * Verifies a SamlRelayState message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a SamlRelayState message from a plain object. Also converts values to their respective internal types. @@ -48136,7 +50973,10 @@ export namespace SsoCloud { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: SsoCloud.SamlRelayState, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: SsoCloud.SamlRelayState, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this SamlRelayState to JSON. @@ -48154,18 +50994,17 @@ export namespace SsoCloud { /** Properties of a SsoCloudMigrationStatusRequest. */ interface ISsoCloudMigrationStatusRequest { - /** SsoCloudMigrationStatusRequest nodeId */ - nodeId?: (number|Long|null); + nodeId?: number | Long | null; /** SsoCloudMigrationStatusRequest fullStatus */ - fullStatus?: (boolean|null); + fullStatus?: boolean | null; /** SsoCloudMigrationStatusRequest includeMigratedUsers */ - includeMigratedUsers?: (boolean|null); + includeMigratedUsers?: boolean | null; /** SsoCloudMigrationStatusRequest limit */ - limit?: (number|null); + limit?: number | null; } /** @@ -48184,7 +51023,6 @@ export namespace SsoCloud { * */ class SsoCloudMigrationStatusRequest implements ISsoCloudMigrationStatusRequest { - /** * Constructs a new SsoCloudMigrationStatusRequest. * @see SsoCloudMigrationStatusResponse @@ -48193,7 +51031,7 @@ export namespace SsoCloud { constructor(properties?: SsoCloud.ISsoCloudMigrationStatusRequest); /** SsoCloudMigrationStatusRequest nodeId. */ - public nodeId: (number|Long); + public nodeId: number | Long; /** SsoCloudMigrationStatusRequest fullStatus. */ public fullStatus: boolean; @@ -48209,7 +51047,9 @@ export namespace SsoCloud { * @param [properties] Properties to set * @returns SsoCloudMigrationStatusRequest instance */ - public static create(properties?: SsoCloud.ISsoCloudMigrationStatusRequest): SsoCloud.SsoCloudMigrationStatusRequest; + public static create( + properties?: SsoCloud.ISsoCloudMigrationStatusRequest + ): SsoCloud.SsoCloudMigrationStatusRequest; /** * Encodes the specified SsoCloudMigrationStatusRequest message. Does not implicitly {@link SsoCloud.SsoCloudMigrationStatusRequest.verify|verify} messages. @@ -48217,7 +51057,10 @@ export namespace SsoCloud { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: SsoCloud.ISsoCloudMigrationStatusRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: SsoCloud.ISsoCloudMigrationStatusRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified SsoCloudMigrationStatusRequest message, length delimited. Does not implicitly {@link SsoCloud.SsoCloudMigrationStatusRequest.verify|verify} messages. @@ -48225,7 +51068,10 @@ export namespace SsoCloud { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: SsoCloud.ISsoCloudMigrationStatusRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: SsoCloud.ISsoCloudMigrationStatusRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a SsoCloudMigrationStatusRequest message from the specified reader or buffer. @@ -48235,7 +51081,10 @@ export namespace SsoCloud { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): SsoCloud.SsoCloudMigrationStatusRequest; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): SsoCloud.SsoCloudMigrationStatusRequest; /** * Decodes a SsoCloudMigrationStatusRequest message from the specified reader or buffer, length delimited. @@ -48244,14 +51093,14 @@ export namespace SsoCloud { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): SsoCloud.SsoCloudMigrationStatusRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): SsoCloud.SsoCloudMigrationStatusRequest; /** * Verifies a SsoCloudMigrationStatusRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a SsoCloudMigrationStatusRequest message from a plain object. Also converts values to their respective internal types. @@ -48266,7 +51115,10 @@ export namespace SsoCloud { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: SsoCloud.SsoCloudMigrationStatusRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: SsoCloud.SsoCloudMigrationStatusRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this SsoCloudMigrationStatusRequest to JSON. @@ -48284,39 +51136,38 @@ export namespace SsoCloud { /** Properties of a SsoCloudMigrationStatusResponse. */ interface ISsoCloudMigrationStatusResponse { - /** SsoCloudMigrationStatusResponse success */ - success?: (boolean|null); + success?: boolean | null; /** SsoCloudMigrationStatusResponse message */ - message?: (string|null); + message?: string | null; /** SsoCloudMigrationStatusResponse nodeId */ - nodeId?: (number|Long|null); + nodeId?: number | Long | null; /** SsoCloudMigrationStatusResponse ssoConnectId */ - ssoConnectId?: (number|Long|null); + ssoConnectId?: number | Long | null; /** SsoCloudMigrationStatusResponse ssoConnectName */ - ssoConnectName?: (string|null); + ssoConnectName?: string | null; /** SsoCloudMigrationStatusResponse ssoConnectCloudId */ - ssoConnectCloudId?: (number|Long|null); + ssoConnectCloudId?: number | Long | null; /** SsoCloudMigrationStatusResponse ssoConnectCloudName */ - ssoConnectCloudName?: (string|null); + ssoConnectCloudName?: string | null; /** SsoCloudMigrationStatusResponse totalUsersCount */ - totalUsersCount?: (number|null); + totalUsersCount?: number | null; /** SsoCloudMigrationStatusResponse usersMigratedCount */ - usersMigratedCount?: (number|null); + usersMigratedCount?: number | null; /** SsoCloudMigrationStatusResponse migratedUsers */ - migratedUsers?: (SsoCloud.ISsoCloudMigrationUserInfo[]|null); + migratedUsers?: SsoCloud.ISsoCloudMigrationUserInfo[] | null; /** SsoCloudMigrationStatusResponse unmigratedUsers */ - unmigratedUsers?: (SsoCloud.ISsoCloudMigrationUserInfo[]|null); + unmigratedUsers?: SsoCloud.ISsoCloudMigrationUserInfo[] | null; } /** @@ -48326,7 +51177,6 @@ export namespace SsoCloud { * */ class SsoCloudMigrationStatusResponse implements ISsoCloudMigrationStatusResponse { - /** * Constructs a new SsoCloudMigrationStatusResponse. * @see SsoCloudMigrationStatusRequest @@ -48341,16 +51191,16 @@ export namespace SsoCloud { public message: string; /** SsoCloudMigrationStatusResponse nodeId. */ - public nodeId: (number|Long); + public nodeId: number | Long; /** SsoCloudMigrationStatusResponse ssoConnectId. */ - public ssoConnectId: (number|Long); + public ssoConnectId: number | Long; /** SsoCloudMigrationStatusResponse ssoConnectName. */ public ssoConnectName: string; /** SsoCloudMigrationStatusResponse ssoConnectCloudId. */ - public ssoConnectCloudId: (number|Long); + public ssoConnectCloudId: number | Long; /** SsoCloudMigrationStatusResponse ssoConnectCloudName. */ public ssoConnectCloudName: string; @@ -48372,7 +51222,9 @@ export namespace SsoCloud { * @param [properties] Properties to set * @returns SsoCloudMigrationStatusResponse instance */ - public static create(properties?: SsoCloud.ISsoCloudMigrationStatusResponse): SsoCloud.SsoCloudMigrationStatusResponse; + public static create( + properties?: SsoCloud.ISsoCloudMigrationStatusResponse + ): SsoCloud.SsoCloudMigrationStatusResponse; /** * Encodes the specified SsoCloudMigrationStatusResponse message. Does not implicitly {@link SsoCloud.SsoCloudMigrationStatusResponse.verify|verify} messages. @@ -48380,7 +51232,10 @@ export namespace SsoCloud { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: SsoCloud.ISsoCloudMigrationStatusResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: SsoCloud.ISsoCloudMigrationStatusResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified SsoCloudMigrationStatusResponse message, length delimited. Does not implicitly {@link SsoCloud.SsoCloudMigrationStatusResponse.verify|verify} messages. @@ -48388,7 +51243,10 @@ export namespace SsoCloud { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: SsoCloud.ISsoCloudMigrationStatusResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: SsoCloud.ISsoCloudMigrationStatusResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a SsoCloudMigrationStatusResponse message from the specified reader or buffer. @@ -48398,7 +51256,10 @@ export namespace SsoCloud { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): SsoCloud.SsoCloudMigrationStatusResponse; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): SsoCloud.SsoCloudMigrationStatusResponse; /** * Decodes a SsoCloudMigrationStatusResponse message from the specified reader or buffer, length delimited. @@ -48407,14 +51268,14 @@ export namespace SsoCloud { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): SsoCloud.SsoCloudMigrationStatusResponse; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): SsoCloud.SsoCloudMigrationStatusResponse; /** * Verifies a SsoCloudMigrationStatusResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a SsoCloudMigrationStatusResponse message from a plain object. Also converts values to their respective internal types. @@ -48429,7 +51290,10 @@ export namespace SsoCloud { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: SsoCloud.SsoCloudMigrationStatusResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: SsoCloud.SsoCloudMigrationStatusResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this SsoCloudMigrationStatusResponse to JSON. @@ -48447,23 +51311,21 @@ export namespace SsoCloud { /** Properties of a SsoCloudMigrationUserInfo. */ interface ISsoCloudMigrationUserInfo { - /** SsoCloudMigrationUserInfo userId */ - userId?: (number|null); + userId?: number | null; /** SsoCloudMigrationUserInfo email */ - email?: (string|null); + email?: string | null; /** SsoCloudMigrationUserInfo fullName */ - fullName?: (string|null); + fullName?: string | null; /** SsoCloudMigrationUserInfo isMigrated */ - isMigrated?: (boolean|null); + isMigrated?: boolean | null; } /** @since MH: 2022-01-11 */ class SsoCloudMigrationUserInfo implements ISsoCloudMigrationUserInfo { - /** * Constructs a new SsoCloudMigrationUserInfo. * @param [properties] Properties to set @@ -48503,7 +51365,10 @@ export namespace SsoCloud { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: SsoCloud.ISsoCloudMigrationUserInfo, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: SsoCloud.ISsoCloudMigrationUserInfo, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a SsoCloudMigrationUserInfo message from the specified reader or buffer. @@ -48513,7 +51378,10 @@ export namespace SsoCloud { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): SsoCloud.SsoCloudMigrationUserInfo; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): SsoCloud.SsoCloudMigrationUserInfo; /** * Decodes a SsoCloudMigrationUserInfo message from the specified reader or buffer, length delimited. @@ -48522,14 +51390,14 @@ export namespace SsoCloud { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): SsoCloud.SsoCloudMigrationUserInfo; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): SsoCloud.SsoCloudMigrationUserInfo; /** * Verifies a SsoCloudMigrationUserInfo message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a SsoCloudMigrationUserInfo message from a plain object. Also converts values to their respective internal types. @@ -48544,7 +51412,10 @@ export namespace SsoCloud { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: SsoCloud.SsoCloudMigrationUserInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: SsoCloud.SsoCloudMigrationUserInfo, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this SsoCloudMigrationUserInfo to JSON. @@ -48563,26 +51434,23 @@ export namespace SsoCloud { /** Namespace SemanticVersion. */ export namespace SemanticVersion { - /** Properties of a Version. */ interface IVersion { - /** Version major */ - major?: (number|null); + major?: number | null; /** Version minor */ - minor?: (number|null); + minor?: number | null; /** Version patch */ - patch?: (number|null); + patch?: number | null; /** Version build */ - build?: (number|null); + build?: number | null; } /** Represents a Version. */ class Version implements IVersion { - /** * Constructs a new Version. * @param [properties] Properties to set @@ -48632,7 +51500,7 @@ export namespace SemanticVersion { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): SemanticVersion.Version; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): SemanticVersion.Version; /** * Decodes a Version message from the specified reader or buffer, length delimited. @@ -48641,14 +51509,14 @@ export namespace SemanticVersion { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): SemanticVersion.Version; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): SemanticVersion.Version; /** * Verifies a Version message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a Version message from a plain object. Also converts values to their respective internal types. @@ -48663,7 +51531,10 @@ export namespace SemanticVersion { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: SemanticVersion.Version, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: SemanticVersion.Version, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this Version to JSON. @@ -48682,32 +51553,29 @@ export namespace SemanticVersion { /** Namespace BreachWatch. */ export namespace BreachWatch { - /** BreachWatchInfoType enum. */ enum BreachWatchInfoType { RECORD = 0, - ALTERNATE_PASSWORD = 1 + ALTERNATE_PASSWORD = 1, } /** Properties of a BreachWatchRecordRequest. */ interface IBreachWatchRecordRequest { - /** BreachWatchRecordRequest recordUid */ - recordUid?: (Uint8Array|null); + recordUid?: Uint8Array | null; /** BreachWatchRecordRequest encryptedData */ - encryptedData?: (Uint8Array|null); + encryptedData?: Uint8Array | null; /** BreachWatchRecordRequest breachWatchInfoType */ - breachWatchInfoType?: (BreachWatch.BreachWatchInfoType|null); + breachWatchInfoType?: BreachWatch.BreachWatchInfoType | null; /** BreachWatchRecordRequest updateUserWhoScanned */ - updateUserWhoScanned?: (boolean|null); + updateUserWhoScanned?: boolean | null; } /** Represents a BreachWatchRecordRequest. */ class BreachWatchRecordRequest implements IBreachWatchRecordRequest { - /** * Constructs a new BreachWatchRecordRequest. * @param [properties] Properties to set @@ -48739,7 +51607,10 @@ export namespace BreachWatch { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: BreachWatch.IBreachWatchRecordRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: BreachWatch.IBreachWatchRecordRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified BreachWatchRecordRequest message, length delimited. Does not implicitly {@link BreachWatch.BreachWatchRecordRequest.verify|verify} messages. @@ -48747,7 +51618,10 @@ export namespace BreachWatch { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: BreachWatch.IBreachWatchRecordRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: BreachWatch.IBreachWatchRecordRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a BreachWatchRecordRequest message from the specified reader or buffer. @@ -48757,7 +51631,10 @@ export namespace BreachWatch { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BreachWatch.BreachWatchRecordRequest; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): BreachWatch.BreachWatchRecordRequest; /** * Decodes a BreachWatchRecordRequest message from the specified reader or buffer, length delimited. @@ -48766,14 +51643,14 @@ export namespace BreachWatch { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BreachWatch.BreachWatchRecordRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): BreachWatch.BreachWatchRecordRequest; /** * Verifies a BreachWatchRecordRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a BreachWatchRecordRequest message from a plain object. Also converts values to their respective internal types. @@ -48788,7 +51665,10 @@ export namespace BreachWatch { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BreachWatch.BreachWatchRecordRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: BreachWatch.BreachWatchRecordRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this BreachWatchRecordRequest to JSON. @@ -48806,17 +51686,15 @@ export namespace BreachWatch { /** Properties of a BreachWatchUpdateRequest. */ interface IBreachWatchUpdateRequest { - /** BreachWatchUpdateRequest breachWatchRecordRequest */ - breachWatchRecordRequest?: (BreachWatch.IBreachWatchRecordRequest[]|null); + breachWatchRecordRequest?: BreachWatch.IBreachWatchRecordRequest[] | null; /** BreachWatchUpdateRequest encryptedData */ - encryptedData?: (Uint8Array|null); + encryptedData?: Uint8Array | null; } /** Represents a BreachWatchUpdateRequest. */ class BreachWatchUpdateRequest implements IBreachWatchUpdateRequest { - /** * Constructs a new BreachWatchUpdateRequest. * @param [properties] Properties to set @@ -48842,7 +51720,10 @@ export namespace BreachWatch { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: BreachWatch.IBreachWatchUpdateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: BreachWatch.IBreachWatchUpdateRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified BreachWatchUpdateRequest message, length delimited. Does not implicitly {@link BreachWatch.BreachWatchUpdateRequest.verify|verify} messages. @@ -48850,7 +51731,10 @@ export namespace BreachWatch { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: BreachWatch.IBreachWatchUpdateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: BreachWatch.IBreachWatchUpdateRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a BreachWatchUpdateRequest message from the specified reader or buffer. @@ -48860,7 +51744,10 @@ export namespace BreachWatch { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BreachWatch.BreachWatchUpdateRequest; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): BreachWatch.BreachWatchUpdateRequest; /** * Decodes a BreachWatchUpdateRequest message from the specified reader or buffer, length delimited. @@ -48869,14 +51756,14 @@ export namespace BreachWatch { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BreachWatch.BreachWatchUpdateRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): BreachWatch.BreachWatchUpdateRequest; /** * Verifies a BreachWatchUpdateRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a BreachWatchUpdateRequest message from a plain object. Also converts values to their respective internal types. @@ -48891,7 +51778,10 @@ export namespace BreachWatch { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BreachWatch.BreachWatchUpdateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: BreachWatch.BreachWatchUpdateRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this BreachWatchUpdateRequest to JSON. @@ -48909,20 +51799,18 @@ export namespace BreachWatch { /** Properties of a BreachWatchRecordStatus. */ interface IBreachWatchRecordStatus { - /** BreachWatchRecordStatus recordUid */ - recordUid?: (Uint8Array|null); + recordUid?: Uint8Array | null; /** BreachWatchRecordStatus status */ - status?: (string|null); + status?: string | null; /** BreachWatchRecordStatus reason */ - reason?: (string|null); + reason?: string | null; } /** Represents a BreachWatchRecordStatus. */ class BreachWatchRecordStatus implements IBreachWatchRecordStatus { - /** * Constructs a new BreachWatchRecordStatus. * @param [properties] Properties to set @@ -48951,7 +51839,10 @@ export namespace BreachWatch { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: BreachWatch.IBreachWatchRecordStatus, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: BreachWatch.IBreachWatchRecordStatus, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified BreachWatchRecordStatus message, length delimited. Does not implicitly {@link BreachWatch.BreachWatchRecordStatus.verify|verify} messages. @@ -48959,7 +51850,10 @@ export namespace BreachWatch { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: BreachWatch.IBreachWatchRecordStatus, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: BreachWatch.IBreachWatchRecordStatus, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a BreachWatchRecordStatus message from the specified reader or buffer. @@ -48969,7 +51863,10 @@ export namespace BreachWatch { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BreachWatch.BreachWatchRecordStatus; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): BreachWatch.BreachWatchRecordStatus; /** * Decodes a BreachWatchRecordStatus message from the specified reader or buffer, length delimited. @@ -48978,14 +51875,14 @@ export namespace BreachWatch { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BreachWatch.BreachWatchRecordStatus; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): BreachWatch.BreachWatchRecordStatus; /** * Verifies a BreachWatchRecordStatus message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a BreachWatchRecordStatus message from a plain object. Also converts values to their respective internal types. @@ -49000,7 +51897,10 @@ export namespace BreachWatch { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BreachWatch.BreachWatchRecordStatus, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: BreachWatch.BreachWatchRecordStatus, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this BreachWatchRecordStatus to JSON. @@ -49018,14 +51918,12 @@ export namespace BreachWatch { /** Properties of a BreachWatchUpdateResponse. */ interface IBreachWatchUpdateResponse { - /** BreachWatchUpdateResponse breachWatchRecordStatus */ - breachWatchRecordStatus?: (BreachWatch.IBreachWatchRecordStatus[]|null); + breachWatchRecordStatus?: BreachWatch.IBreachWatchRecordStatus[] | null; } /** Represents a BreachWatchUpdateResponse. */ class BreachWatchUpdateResponse implements IBreachWatchUpdateResponse { - /** * Constructs a new BreachWatchUpdateResponse. * @param [properties] Properties to set @@ -49040,7 +51938,9 @@ export namespace BreachWatch { * @param [properties] Properties to set * @returns BreachWatchUpdateResponse instance */ - public static create(properties?: BreachWatch.IBreachWatchUpdateResponse): BreachWatch.BreachWatchUpdateResponse; + public static create( + properties?: BreachWatch.IBreachWatchUpdateResponse + ): BreachWatch.BreachWatchUpdateResponse; /** * Encodes the specified BreachWatchUpdateResponse message. Does not implicitly {@link BreachWatch.BreachWatchUpdateResponse.verify|verify} messages. @@ -49048,7 +51948,10 @@ export namespace BreachWatch { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: BreachWatch.IBreachWatchUpdateResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: BreachWatch.IBreachWatchUpdateResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified BreachWatchUpdateResponse message, length delimited. Does not implicitly {@link BreachWatch.BreachWatchUpdateResponse.verify|verify} messages. @@ -49056,7 +51959,10 @@ export namespace BreachWatch { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: BreachWatch.IBreachWatchUpdateResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: BreachWatch.IBreachWatchUpdateResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a BreachWatchUpdateResponse message from the specified reader or buffer. @@ -49066,7 +51972,10 @@ export namespace BreachWatch { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BreachWatch.BreachWatchUpdateResponse; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): BreachWatch.BreachWatchUpdateResponse; /** * Decodes a BreachWatchUpdateResponse message from the specified reader or buffer, length delimited. @@ -49075,14 +51984,14 @@ export namespace BreachWatch { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BreachWatch.BreachWatchUpdateResponse; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): BreachWatch.BreachWatchUpdateResponse; /** * Verifies a BreachWatchUpdateResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a BreachWatchUpdateResponse message from a plain object. Also converts values to their respective internal types. @@ -49097,7 +52006,10 @@ export namespace BreachWatch { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BreachWatch.BreachWatchUpdateResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: BreachWatch.BreachWatchUpdateResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this BreachWatchUpdateResponse to JSON. @@ -49115,14 +52027,12 @@ export namespace BreachWatch { /** Properties of a BreachWatchTokenRequest. */ interface IBreachWatchTokenRequest { - /** BreachWatchTokenRequest breachWatchToken */ - breachWatchToken?: (Uint8Array|null); + breachWatchToken?: Uint8Array | null; } /** Represents a BreachWatchTokenRequest. */ class BreachWatchTokenRequest implements IBreachWatchTokenRequest { - /** * Constructs a new BreachWatchTokenRequest. * @param [properties] Properties to set @@ -49145,7 +52055,10 @@ export namespace BreachWatch { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: BreachWatch.IBreachWatchTokenRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: BreachWatch.IBreachWatchTokenRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified BreachWatchTokenRequest message, length delimited. Does not implicitly {@link BreachWatch.BreachWatchTokenRequest.verify|verify} messages. @@ -49153,7 +52066,10 @@ export namespace BreachWatch { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: BreachWatch.IBreachWatchTokenRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: BreachWatch.IBreachWatchTokenRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a BreachWatchTokenRequest message from the specified reader or buffer. @@ -49163,7 +52079,10 @@ export namespace BreachWatch { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BreachWatch.BreachWatchTokenRequest; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): BreachWatch.BreachWatchTokenRequest; /** * Decodes a BreachWatchTokenRequest message from the specified reader or buffer, length delimited. @@ -49172,14 +52091,14 @@ export namespace BreachWatch { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BreachWatch.BreachWatchTokenRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): BreachWatch.BreachWatchTokenRequest; /** * Verifies a BreachWatchTokenRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a BreachWatchTokenRequest message from a plain object. Also converts values to their respective internal types. @@ -49194,7 +52113,10 @@ export namespace BreachWatch { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BreachWatch.BreachWatchTokenRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: BreachWatch.BreachWatchTokenRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this BreachWatchTokenRequest to JSON. @@ -49212,17 +52134,15 @@ export namespace BreachWatch { /** Properties of a BreachWatchTokenResponse. */ interface IBreachWatchTokenResponse { - /** BreachWatchTokenResponse breachWatchToken */ - breachWatchToken?: (Uint8Array|null); + breachWatchToken?: Uint8Array | null; /** BreachWatchTokenResponse clientEncrypted */ - clientEncrypted?: (boolean|null); + clientEncrypted?: boolean | null; } /** Represents a BreachWatchTokenResponse. */ class BreachWatchTokenResponse implements IBreachWatchTokenResponse { - /** * Constructs a new BreachWatchTokenResponse. * @param [properties] Properties to set @@ -49248,7 +52168,10 @@ export namespace BreachWatch { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: BreachWatch.IBreachWatchTokenResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: BreachWatch.IBreachWatchTokenResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified BreachWatchTokenResponse message, length delimited. Does not implicitly {@link BreachWatch.BreachWatchTokenResponse.verify|verify} messages. @@ -49256,7 +52179,10 @@ export namespace BreachWatch { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: BreachWatch.IBreachWatchTokenResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: BreachWatch.IBreachWatchTokenResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a BreachWatchTokenResponse message from the specified reader or buffer. @@ -49266,7 +52192,10 @@ export namespace BreachWatch { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BreachWatch.BreachWatchTokenResponse; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): BreachWatch.BreachWatchTokenResponse; /** * Decodes a BreachWatchTokenResponse message from the specified reader or buffer, length delimited. @@ -49275,14 +52204,14 @@ export namespace BreachWatch { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BreachWatch.BreachWatchTokenResponse; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): BreachWatch.BreachWatchTokenResponse; /** * Verifies a BreachWatchTokenResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a BreachWatchTokenResponse message from a plain object. Also converts values to their respective internal types. @@ -49297,7 +52226,10 @@ export namespace BreachWatch { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BreachWatch.BreachWatchTokenResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: BreachWatch.BreachWatchTokenResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this BreachWatchTokenResponse to JSON. @@ -49315,20 +52247,18 @@ export namespace BreachWatch { /** Properties of an AnonymizedTokenResponse. */ interface IAnonymizedTokenResponse { - /** AnonymizedTokenResponse domainToken */ - domainToken?: (Uint8Array|null); + domainToken?: Uint8Array | null; /** AnonymizedTokenResponse emailToken */ - emailToken?: (Uint8Array|null); + emailToken?: Uint8Array | null; /** AnonymizedTokenResponse passwordToken */ - passwordToken?: (Uint8Array|null); + passwordToken?: Uint8Array | null; } /** Represents an AnonymizedTokenResponse. */ class AnonymizedTokenResponse implements IAnonymizedTokenResponse { - /** * Constructs a new AnonymizedTokenResponse. * @param [properties] Properties to set @@ -49357,7 +52287,10 @@ export namespace BreachWatch { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: BreachWatch.IAnonymizedTokenResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: BreachWatch.IAnonymizedTokenResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified AnonymizedTokenResponse message, length delimited. Does not implicitly {@link BreachWatch.AnonymizedTokenResponse.verify|verify} messages. @@ -49365,7 +52298,10 @@ export namespace BreachWatch { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: BreachWatch.IAnonymizedTokenResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: BreachWatch.IAnonymizedTokenResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes an AnonymizedTokenResponse message from the specified reader or buffer. @@ -49375,7 +52311,10 @@ export namespace BreachWatch { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BreachWatch.AnonymizedTokenResponse; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): BreachWatch.AnonymizedTokenResponse; /** * Decodes an AnonymizedTokenResponse message from the specified reader or buffer, length delimited. @@ -49384,14 +52323,14 @@ export namespace BreachWatch { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BreachWatch.AnonymizedTokenResponse; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): BreachWatch.AnonymizedTokenResponse; /** * Verifies an AnonymizedTokenResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an AnonymizedTokenResponse message from a plain object. Also converts values to their respective internal types. @@ -49406,7 +52345,10 @@ export namespace BreachWatch { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BreachWatch.AnonymizedTokenResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: BreachWatch.AnonymizedTokenResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this AnonymizedTokenResponse to JSON. @@ -49424,17 +52366,15 @@ export namespace BreachWatch { /** Properties of a HashCheck. */ interface IHashCheck { - /** HashCheck hash1 */ - hash1?: (Uint8Array|null); + hash1?: Uint8Array | null; /** HashCheck euid */ - euid?: (Uint8Array|null); + euid?: Uint8Array | null; } /** Represents a HashCheck. */ class HashCheck implements IHashCheck { - /** * Constructs a new HashCheck. * @param [properties] Properties to set @@ -49478,7 +52418,7 @@ export namespace BreachWatch { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BreachWatch.HashCheck; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): BreachWatch.HashCheck; /** * Decodes a HashCheck message from the specified reader or buffer, length delimited. @@ -49487,14 +52427,14 @@ export namespace BreachWatch { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BreachWatch.HashCheck; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): BreachWatch.HashCheck; /** * Verifies a HashCheck message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a HashCheck message from a plain object. Also converts values to their respective internal types. @@ -49509,7 +52449,10 @@ export namespace BreachWatch { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BreachWatch.HashCheck, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: BreachWatch.HashCheck, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this HashCheck to JSON. @@ -49527,20 +52470,18 @@ export namespace BreachWatch { /** Properties of a BreachWatchStatusRequest. */ interface IBreachWatchStatusRequest { - /** BreachWatchStatusRequest anonymizedToken */ - anonymizedToken?: (Uint8Array|null); + anonymizedToken?: Uint8Array | null; /** BreachWatchStatusRequest hashCheck */ - hashCheck?: (BreachWatch.IHashCheck[]|null); + hashCheck?: BreachWatch.IHashCheck[] | null; /** BreachWatchStatusRequest removedEuid */ - removedEuid?: (Uint8Array[]|null); + removedEuid?: Uint8Array[] | null; } /** Represents a BreachWatchStatusRequest. */ class BreachWatchStatusRequest implements IBreachWatchStatusRequest { - /** * Constructs a new BreachWatchStatusRequest. * @param [properties] Properties to set @@ -49569,7 +52510,10 @@ export namespace BreachWatch { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: BreachWatch.IBreachWatchStatusRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: BreachWatch.IBreachWatchStatusRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified BreachWatchStatusRequest message, length delimited. Does not implicitly {@link BreachWatch.BreachWatchStatusRequest.verify|verify} messages. @@ -49577,7 +52521,10 @@ export namespace BreachWatch { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: BreachWatch.IBreachWatchStatusRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: BreachWatch.IBreachWatchStatusRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a BreachWatchStatusRequest message from the specified reader or buffer. @@ -49587,7 +52534,10 @@ export namespace BreachWatch { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BreachWatch.BreachWatchStatusRequest; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): BreachWatch.BreachWatchStatusRequest; /** * Decodes a BreachWatchStatusRequest message from the specified reader or buffer, length delimited. @@ -49596,14 +52546,14 @@ export namespace BreachWatch { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BreachWatch.BreachWatchStatusRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): BreachWatch.BreachWatchStatusRequest; /** * Verifies a BreachWatchStatusRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a BreachWatchStatusRequest message from a plain object. Also converts values to their respective internal types. @@ -49618,7 +52568,10 @@ export namespace BreachWatch { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BreachWatch.BreachWatchStatusRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: BreachWatch.BreachWatchStatusRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this BreachWatchStatusRequest to JSON. @@ -49636,20 +52589,18 @@ export namespace BreachWatch { /** Properties of a HashStatus. */ interface IHashStatus { - /** HashStatus hash1 */ - hash1?: (Uint8Array|null); + hash1?: Uint8Array | null; /** HashStatus euid */ - euid?: (Uint8Array|null); + euid?: Uint8Array | null; /** HashStatus breachDetected */ - breachDetected?: (boolean|null); + breachDetected?: boolean | null; } /** Represents a HashStatus. */ class HashStatus implements IHashStatus { - /** * Constructs a new HashStatus. * @param [properties] Properties to set @@ -49696,7 +52647,7 @@ export namespace BreachWatch { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BreachWatch.HashStatus; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): BreachWatch.HashStatus; /** * Decodes a HashStatus message from the specified reader or buffer, length delimited. @@ -49705,14 +52656,14 @@ export namespace BreachWatch { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BreachWatch.HashStatus; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): BreachWatch.HashStatus; /** * Verifies a HashStatus message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a HashStatus message from a plain object. Also converts values to their respective internal types. @@ -49727,7 +52678,10 @@ export namespace BreachWatch { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BreachWatch.HashStatus, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: BreachWatch.HashStatus, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this HashStatus to JSON. @@ -49745,14 +52699,12 @@ export namespace BreachWatch { /** Properties of a BreachWatchStatusResponse. */ interface IBreachWatchStatusResponse { - /** BreachWatchStatusResponse hashStatus */ - hashStatus?: (BreachWatch.IHashStatus[]|null); + hashStatus?: BreachWatch.IHashStatus[] | null; } /** Represents a BreachWatchStatusResponse. */ class BreachWatchStatusResponse implements IBreachWatchStatusResponse { - /** * Constructs a new BreachWatchStatusResponse. * @param [properties] Properties to set @@ -49767,7 +52719,9 @@ export namespace BreachWatch { * @param [properties] Properties to set * @returns BreachWatchStatusResponse instance */ - public static create(properties?: BreachWatch.IBreachWatchStatusResponse): BreachWatch.BreachWatchStatusResponse; + public static create( + properties?: BreachWatch.IBreachWatchStatusResponse + ): BreachWatch.BreachWatchStatusResponse; /** * Encodes the specified BreachWatchStatusResponse message. Does not implicitly {@link BreachWatch.BreachWatchStatusResponse.verify|verify} messages. @@ -49775,7 +52729,10 @@ export namespace BreachWatch { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: BreachWatch.IBreachWatchStatusResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: BreachWatch.IBreachWatchStatusResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified BreachWatchStatusResponse message, length delimited. Does not implicitly {@link BreachWatch.BreachWatchStatusResponse.verify|verify} messages. @@ -49783,7 +52740,10 @@ export namespace BreachWatch { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: BreachWatch.IBreachWatchStatusResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: BreachWatch.IBreachWatchStatusResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a BreachWatchStatusResponse message from the specified reader or buffer. @@ -49793,7 +52753,10 @@ export namespace BreachWatch { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BreachWatch.BreachWatchStatusResponse; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): BreachWatch.BreachWatchStatusResponse; /** * Decodes a BreachWatchStatusResponse message from the specified reader or buffer, length delimited. @@ -49802,14 +52765,14 @@ export namespace BreachWatch { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BreachWatch.BreachWatchStatusResponse; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): BreachWatch.BreachWatchStatusResponse; /** * Verifies a BreachWatchStatusResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a BreachWatchStatusResponse message from a plain object. Also converts values to their respective internal types. @@ -49824,7 +52787,10 @@ export namespace BreachWatch { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BreachWatch.BreachWatchStatusResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: BreachWatch.BreachWatchStatusResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this BreachWatchStatusResponse to JSON. @@ -49842,17 +52808,15 @@ export namespace BreachWatch { /** Properties of an EnterprisePublicKeyResponse. */ interface IEnterprisePublicKeyResponse { - /** EnterprisePublicKeyResponse enterprisePublicKey */ - enterprisePublicKey?: (Uint8Array|null); + enterprisePublicKey?: Uint8Array | null; /** EnterprisePublicKeyResponse enterpriseECCPublicKey */ - enterpriseECCPublicKey?: (Uint8Array|null); + enterpriseECCPublicKey?: Uint8Array | null; } /** Represents an EnterprisePublicKeyResponse. */ class EnterprisePublicKeyResponse implements IEnterprisePublicKeyResponse { - /** * Constructs a new EnterprisePublicKeyResponse. * @param [properties] Properties to set @@ -49870,7 +52834,9 @@ export namespace BreachWatch { * @param [properties] Properties to set * @returns EnterprisePublicKeyResponse instance */ - public static create(properties?: BreachWatch.IEnterprisePublicKeyResponse): BreachWatch.EnterprisePublicKeyResponse; + public static create( + properties?: BreachWatch.IEnterprisePublicKeyResponse + ): BreachWatch.EnterprisePublicKeyResponse; /** * Encodes the specified EnterprisePublicKeyResponse message. Does not implicitly {@link BreachWatch.EnterprisePublicKeyResponse.verify|verify} messages. @@ -49878,7 +52844,10 @@ export namespace BreachWatch { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: BreachWatch.IEnterprisePublicKeyResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: BreachWatch.IEnterprisePublicKeyResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified EnterprisePublicKeyResponse message, length delimited. Does not implicitly {@link BreachWatch.EnterprisePublicKeyResponse.verify|verify} messages. @@ -49886,7 +52855,10 @@ export namespace BreachWatch { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: BreachWatch.IEnterprisePublicKeyResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: BreachWatch.IEnterprisePublicKeyResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes an EnterprisePublicKeyResponse message from the specified reader or buffer. @@ -49896,7 +52868,10 @@ export namespace BreachWatch { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BreachWatch.EnterprisePublicKeyResponse; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): BreachWatch.EnterprisePublicKeyResponse; /** * Decodes an EnterprisePublicKeyResponse message from the specified reader or buffer, length delimited. @@ -49905,14 +52880,14 @@ export namespace BreachWatch { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BreachWatch.EnterprisePublicKeyResponse; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): BreachWatch.EnterprisePublicKeyResponse; /** * Verifies an EnterprisePublicKeyResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an EnterprisePublicKeyResponse message from a plain object. Also converts values to their respective internal types. @@ -49927,7 +52902,10 @@ export namespace BreachWatch { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BreachWatch.EnterprisePublicKeyResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: BreachWatch.EnterprisePublicKeyResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this EnterprisePublicKeyResponse to JSON. @@ -49945,14 +52923,12 @@ export namespace BreachWatch { /** Properties of a FreeScanRequest. */ interface IFreeScanRequest { - /** FreeScanRequest hashedEmail */ - hashedEmail?: (Uint8Array|null); + hashedEmail?: Uint8Array | null; } /** Represents a FreeScanRequest. */ class FreeScanRequest implements IFreeScanRequest { - /** * Constructs a new FreeScanRequest. * @param [properties] Properties to set @@ -49983,7 +52959,10 @@ export namespace BreachWatch { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: BreachWatch.IFreeScanRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: BreachWatch.IFreeScanRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a FreeScanRequest message from the specified reader or buffer. @@ -49993,7 +52972,7 @@ export namespace BreachWatch { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BreachWatch.FreeScanRequest; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): BreachWatch.FreeScanRequest; /** * Decodes a FreeScanRequest message from the specified reader or buffer, length delimited. @@ -50002,14 +52981,14 @@ export namespace BreachWatch { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BreachWatch.FreeScanRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): BreachWatch.FreeScanRequest; /** * Verifies a FreeScanRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a FreeScanRequest message from a plain object. Also converts values to their respective internal types. @@ -50024,7 +53003,10 @@ export namespace BreachWatch { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BreachWatch.FreeScanRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: BreachWatch.FreeScanRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this FreeScanRequest to JSON. @@ -50042,17 +53024,15 @@ export namespace BreachWatch { /** Properties of a FreeScanResponse. */ interface IFreeScanResponse { - /** FreeScanResponse emailBreaches */ - emailBreaches?: (number|null); + emailBreaches?: number | null; /** FreeScanResponse passwordBreaches */ - passwordBreaches?: (number|null); + passwordBreaches?: number | null; } /** Represents a FreeScanResponse. */ class FreeScanResponse implements IFreeScanResponse { - /** * Constructs a new FreeScanResponse. * @param [properties] Properties to set @@ -50086,7 +53066,10 @@ export namespace BreachWatch { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: BreachWatch.IFreeScanResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: BreachWatch.IFreeScanResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a FreeScanResponse message from the specified reader or buffer. @@ -50096,7 +53079,7 @@ export namespace BreachWatch { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BreachWatch.FreeScanResponse; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): BreachWatch.FreeScanResponse; /** * Decodes a FreeScanResponse message from the specified reader or buffer, length delimited. @@ -50105,14 +53088,14 @@ export namespace BreachWatch { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BreachWatch.FreeScanResponse; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): BreachWatch.FreeScanResponse; /** * Verifies a FreeScanResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a FreeScanResponse message from a plain object. Also converts values to their respective internal types. @@ -50127,7 +53110,10 @@ export namespace BreachWatch { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BreachWatch.FreeScanResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: BreachWatch.FreeScanResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this FreeScanResponse to JSON. @@ -50145,14 +53131,12 @@ export namespace BreachWatch { /** Properties of a PaidUserRequest. */ interface IPaidUserRequest { - /** PaidUserRequest email */ - email?: (string|null); + email?: string | null; } /** Represents a PaidUserRequest. */ class PaidUserRequest implements IPaidUserRequest { - /** * Constructs a new PaidUserRequest. * @param [properties] Properties to set @@ -50183,7 +53167,10 @@ export namespace BreachWatch { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: BreachWatch.IPaidUserRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: BreachWatch.IPaidUserRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a PaidUserRequest message from the specified reader or buffer. @@ -50193,7 +53180,7 @@ export namespace BreachWatch { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BreachWatch.PaidUserRequest; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): BreachWatch.PaidUserRequest; /** * Decodes a PaidUserRequest message from the specified reader or buffer, length delimited. @@ -50202,14 +53189,14 @@ export namespace BreachWatch { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BreachWatch.PaidUserRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): BreachWatch.PaidUserRequest; /** * Verifies a PaidUserRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a PaidUserRequest message from a plain object. Also converts values to their respective internal types. @@ -50224,7 +53211,10 @@ export namespace BreachWatch { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BreachWatch.PaidUserRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: BreachWatch.PaidUserRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this PaidUserRequest to JSON. @@ -50242,14 +53232,12 @@ export namespace BreachWatch { /** Properties of a PaidUserResponse. */ interface IPaidUserResponse { - /** PaidUserResponse paidUser */ - paidUser?: (boolean|null); + paidUser?: boolean | null; } /** Represents a PaidUserResponse. */ class PaidUserResponse implements IPaidUserResponse { - /** * Constructs a new PaidUserResponse. * @param [properties] Properties to set @@ -50280,7 +53268,10 @@ export namespace BreachWatch { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: BreachWatch.IPaidUserResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: BreachWatch.IPaidUserResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a PaidUserResponse message from the specified reader or buffer. @@ -50290,7 +53281,7 @@ export namespace BreachWatch { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BreachWatch.PaidUserResponse; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): BreachWatch.PaidUserResponse; /** * Decodes a PaidUserResponse message from the specified reader or buffer, length delimited. @@ -50299,14 +53290,14 @@ export namespace BreachWatch { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BreachWatch.PaidUserResponse; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): BreachWatch.PaidUserResponse; /** * Verifies a PaidUserResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a PaidUserResponse message from a plain object. Also converts values to their respective internal types. @@ -50321,7 +53312,10 @@ export namespace BreachWatch { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BreachWatch.PaidUserResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: BreachWatch.PaidUserResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this PaidUserResponse to JSON. @@ -50339,14 +53333,12 @@ export namespace BreachWatch { /** Properties of a DetailedScanRequest. */ interface IDetailedScanRequest { - /** DetailedScanRequest email */ - email?: (string|null); + email?: string | null; } /** Represents a DetailedScanRequest. */ class DetailedScanRequest implements IDetailedScanRequest { - /** * Constructs a new DetailedScanRequest. * @param [properties] Properties to set @@ -50377,7 +53369,10 @@ export namespace BreachWatch { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: BreachWatch.IDetailedScanRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: BreachWatch.IDetailedScanRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a DetailedScanRequest message from the specified reader or buffer. @@ -50387,7 +53382,7 @@ export namespace BreachWatch { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BreachWatch.DetailedScanRequest; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): BreachWatch.DetailedScanRequest; /** * Decodes a DetailedScanRequest message from the specified reader or buffer, length delimited. @@ -50396,14 +53391,14 @@ export namespace BreachWatch { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BreachWatch.DetailedScanRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): BreachWatch.DetailedScanRequest; /** * Verifies a DetailedScanRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a DetailedScanRequest message from a plain object. Also converts values to their respective internal types. @@ -50418,7 +53413,10 @@ export namespace BreachWatch { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BreachWatch.DetailedScanRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: BreachWatch.DetailedScanRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this DetailedScanRequest to JSON. @@ -50436,14 +53434,12 @@ export namespace BreachWatch { /** Properties of a UseOneTimeTokenRequest. */ interface IUseOneTimeTokenRequest { - /** UseOneTimeTokenRequest token */ - token?: (Uint8Array|null); + token?: Uint8Array | null; } /** Represents a UseOneTimeTokenRequest. */ class UseOneTimeTokenRequest implements IUseOneTimeTokenRequest { - /** * Constructs a new UseOneTimeTokenRequest. * @param [properties] Properties to set @@ -50474,7 +53470,10 @@ export namespace BreachWatch { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: BreachWatch.IUseOneTimeTokenRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: BreachWatch.IUseOneTimeTokenRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a UseOneTimeTokenRequest message from the specified reader or buffer. @@ -50484,7 +53483,10 @@ export namespace BreachWatch { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BreachWatch.UseOneTimeTokenRequest; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): BreachWatch.UseOneTimeTokenRequest; /** * Decodes a UseOneTimeTokenRequest message from the specified reader or buffer, length delimited. @@ -50493,14 +53495,14 @@ export namespace BreachWatch { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BreachWatch.UseOneTimeTokenRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): BreachWatch.UseOneTimeTokenRequest; /** * Verifies a UseOneTimeTokenRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a UseOneTimeTokenRequest message from a plain object. Also converts values to their respective internal types. @@ -50515,7 +53517,10 @@ export namespace BreachWatch { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BreachWatch.UseOneTimeTokenRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: BreachWatch.UseOneTimeTokenRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this UseOneTimeTokenRequest to JSON. @@ -50533,26 +53538,24 @@ export namespace BreachWatch { /** Properties of a BreachEvent. */ interface IBreachEvent { - /** BreachEvent site */ - site?: (string|null); + site?: string | null; /** BreachEvent email */ - email?: (string|null); + email?: string | null; /** BreachEvent passwordInBreach */ - passwordInBreach?: (boolean|null); + passwordInBreach?: boolean | null; /** BreachEvent date */ - date?: (string|null); + date?: string | null; /** BreachEvent description */ - description?: (string|null); + description?: string | null; } /** Represents a BreachEvent. */ class BreachEvent implements IBreachEvent { - /** * Constructs a new BreachEvent. * @param [properties] Properties to set @@ -50605,7 +53608,7 @@ export namespace BreachWatch { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BreachWatch.BreachEvent; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): BreachWatch.BreachEvent; /** * Decodes a BreachEvent message from the specified reader or buffer, length delimited. @@ -50614,14 +53617,14 @@ export namespace BreachWatch { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BreachWatch.BreachEvent; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): BreachWatch.BreachEvent; /** * Verifies a BreachEvent message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a BreachEvent message from a plain object. Also converts values to their respective internal types. @@ -50636,7 +53639,10 @@ export namespace BreachWatch { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BreachWatch.BreachEvent, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: BreachWatch.BreachEvent, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this BreachEvent to JSON. @@ -50654,23 +53660,21 @@ export namespace BreachWatch { /** Properties of a UseOneTimeTokenResponse. */ interface IUseOneTimeTokenResponse { - /** UseOneTimeTokenResponse emailBreaches */ - emailBreaches?: (number|null); + emailBreaches?: number | null; /** UseOneTimeTokenResponse passwordBreaches */ - passwordBreaches?: (number|null); + passwordBreaches?: number | null; /** UseOneTimeTokenResponse breachEvents */ - breachEvents?: (BreachWatch.IBreachEvent[]|null); + breachEvents?: BreachWatch.IBreachEvent[] | null; /** UseOneTimeTokenResponse email */ - email?: (string|null); + email?: string | null; } /** Represents a UseOneTimeTokenResponse. */ class UseOneTimeTokenResponse implements IUseOneTimeTokenResponse { - /** * Constructs a new UseOneTimeTokenResponse. * @param [properties] Properties to set @@ -50702,7 +53706,10 @@ export namespace BreachWatch { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: BreachWatch.IUseOneTimeTokenResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: BreachWatch.IUseOneTimeTokenResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified UseOneTimeTokenResponse message, length delimited. Does not implicitly {@link BreachWatch.UseOneTimeTokenResponse.verify|verify} messages. @@ -50710,7 +53717,10 @@ export namespace BreachWatch { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: BreachWatch.IUseOneTimeTokenResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: BreachWatch.IUseOneTimeTokenResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a UseOneTimeTokenResponse message from the specified reader or buffer. @@ -50720,7 +53730,10 @@ export namespace BreachWatch { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BreachWatch.UseOneTimeTokenResponse; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): BreachWatch.UseOneTimeTokenResponse; /** * Decodes a UseOneTimeTokenResponse message from the specified reader or buffer, length delimited. @@ -50729,14 +53742,14 @@ export namespace BreachWatch { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BreachWatch.UseOneTimeTokenResponse; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): BreachWatch.UseOneTimeTokenResponse; /** * Verifies a UseOneTimeTokenResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a UseOneTimeTokenResponse message from a plain object. Also converts values to their respective internal types. @@ -50751,7 +53764,10 @@ export namespace BreachWatch { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BreachWatch.UseOneTimeTokenResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: BreachWatch.UseOneTimeTokenResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this UseOneTimeTokenResponse to JSON. @@ -50769,17 +53785,15 @@ export namespace BreachWatch { /** Properties of an OneTimeUseToken. */ interface IOneTimeUseToken { - /** OneTimeUseToken email */ - email?: (string|null); + email?: string | null; /** OneTimeUseToken pad */ - pad?: (string|null); + pad?: string | null; } /** Represents an OneTimeUseToken. */ class OneTimeUseToken implements IOneTimeUseToken { - /** * Constructs a new OneTimeUseToken. * @param [properties] Properties to set @@ -50813,7 +53827,10 @@ export namespace BreachWatch { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: BreachWatch.IOneTimeUseToken, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: BreachWatch.IOneTimeUseToken, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes an OneTimeUseToken message from the specified reader or buffer. @@ -50823,7 +53840,7 @@ export namespace BreachWatch { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BreachWatch.OneTimeUseToken; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): BreachWatch.OneTimeUseToken; /** * Decodes an OneTimeUseToken message from the specified reader or buffer, length delimited. @@ -50832,14 +53849,14 @@ export namespace BreachWatch { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BreachWatch.OneTimeUseToken; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): BreachWatch.OneTimeUseToken; /** * Verifies an OneTimeUseToken message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an OneTimeUseToken message from a plain object. Also converts values to their respective internal types. @@ -50854,7 +53871,10 @@ export namespace BreachWatch { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BreachWatch.OneTimeUseToken, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: BreachWatch.OneTimeUseToken, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this OneTimeUseToken to JSON. @@ -50872,14 +53892,12 @@ export namespace BreachWatch { /** Properties of a FreePasswordScanRequest. */ interface IFreePasswordScanRequest { - /** FreePasswordScanRequest hashedPassword */ - hashedPassword?: (Uint8Array|null); + hashedPassword?: Uint8Array | null; } /** Represents a FreePasswordScanRequest. */ class FreePasswordScanRequest implements IFreePasswordScanRequest { - /** * Constructs a new FreePasswordScanRequest. * @param [properties] Properties to set @@ -50902,7 +53920,10 @@ export namespace BreachWatch { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: BreachWatch.IFreePasswordScanRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: BreachWatch.IFreePasswordScanRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified FreePasswordScanRequest message, length delimited. Does not implicitly {@link BreachWatch.FreePasswordScanRequest.verify|verify} messages. @@ -50910,7 +53931,10 @@ export namespace BreachWatch { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: BreachWatch.IFreePasswordScanRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: BreachWatch.IFreePasswordScanRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a FreePasswordScanRequest message from the specified reader or buffer. @@ -50920,7 +53944,10 @@ export namespace BreachWatch { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BreachWatch.FreePasswordScanRequest; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): BreachWatch.FreePasswordScanRequest; /** * Decodes a FreePasswordScanRequest message from the specified reader or buffer, length delimited. @@ -50929,14 +53956,14 @@ export namespace BreachWatch { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BreachWatch.FreePasswordScanRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): BreachWatch.FreePasswordScanRequest; /** * Verifies a FreePasswordScanRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a FreePasswordScanRequest message from a plain object. Also converts values to their respective internal types. @@ -50951,7 +53978,10 @@ export namespace BreachWatch { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BreachWatch.FreePasswordScanRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: BreachWatch.FreePasswordScanRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this FreePasswordScanRequest to JSON. @@ -50969,14 +53999,12 @@ export namespace BreachWatch { /** Properties of a FreePasswordScanResponse. */ interface IFreePasswordScanResponse { - /** FreePasswordScanResponse passwordBreaches */ - passwordBreaches?: (number|Long|null); + passwordBreaches?: number | Long | null; } /** Represents a FreePasswordScanResponse. */ class FreePasswordScanResponse implements IFreePasswordScanResponse { - /** * Constructs a new FreePasswordScanResponse. * @param [properties] Properties to set @@ -50984,7 +54012,7 @@ export namespace BreachWatch { constructor(properties?: BreachWatch.IFreePasswordScanResponse); /** FreePasswordScanResponse passwordBreaches. */ - public passwordBreaches: (number|Long); + public passwordBreaches: number | Long; /** * Creates a new FreePasswordScanResponse instance using the specified properties. @@ -50999,7 +54027,10 @@ export namespace BreachWatch { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: BreachWatch.IFreePasswordScanResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: BreachWatch.IFreePasswordScanResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified FreePasswordScanResponse message, length delimited. Does not implicitly {@link BreachWatch.FreePasswordScanResponse.verify|verify} messages. @@ -51007,7 +54038,10 @@ export namespace BreachWatch { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: BreachWatch.IFreePasswordScanResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: BreachWatch.IFreePasswordScanResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a FreePasswordScanResponse message from the specified reader or buffer. @@ -51017,7 +54051,10 @@ export namespace BreachWatch { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): BreachWatch.FreePasswordScanResponse; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): BreachWatch.FreePasswordScanResponse; /** * Decodes a FreePasswordScanResponse message from the specified reader or buffer, length delimited. @@ -51026,14 +54063,14 @@ export namespace BreachWatch { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BreachWatch.FreePasswordScanResponse; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): BreachWatch.FreePasswordScanResponse; /** * Verifies a FreePasswordScanResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a FreePasswordScanResponse message from a plain object. Also converts values to their respective internal types. @@ -51048,7 +54085,10 @@ export namespace BreachWatch { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BreachWatch.FreePasswordScanResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: BreachWatch.FreePasswordScanResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this FreePasswordScanResponse to JSON. @@ -51067,20 +54107,17 @@ export namespace BreachWatch { /** Namespace Tokens. */ export namespace Tokens { - /** Properties of a BreachWatchUpdateRequest. */ interface IBreachWatchUpdateRequest { - /** BreachWatchUpdateRequest breachWatchRecordRequest */ - breachWatchRecordRequest?: (Tokens.IBreachWatchRecordRequest[]|null); + breachWatchRecordRequest?: Tokens.IBreachWatchRecordRequest[] | null; /** BreachWatchUpdateRequest encryptedData */ - encryptedData?: (Uint8Array|null); + encryptedData?: Uint8Array | null; } /** Represents a BreachWatchUpdateRequest. */ class BreachWatchUpdateRequest implements IBreachWatchUpdateRequest { - /** * Constructs a new BreachWatchUpdateRequest. * @param [properties] Properties to set @@ -51114,7 +54151,10 @@ export namespace Tokens { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Tokens.IBreachWatchUpdateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Tokens.IBreachWatchUpdateRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a BreachWatchUpdateRequest message from the specified reader or buffer. @@ -51124,7 +54164,7 @@ export namespace Tokens { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Tokens.BreachWatchUpdateRequest; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Tokens.BreachWatchUpdateRequest; /** * Decodes a BreachWatchUpdateRequest message from the specified reader or buffer, length delimited. @@ -51133,14 +54173,14 @@ export namespace Tokens { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Tokens.BreachWatchUpdateRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Tokens.BreachWatchUpdateRequest; /** * Verifies a BreachWatchUpdateRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a BreachWatchUpdateRequest message from a plain object. Also converts values to their respective internal types. @@ -51155,7 +54195,10 @@ export namespace Tokens { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Tokens.BreachWatchUpdateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Tokens.BreachWatchUpdateRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this BreachWatchUpdateRequest to JSON. @@ -51173,23 +54216,21 @@ export namespace Tokens { /** Properties of a BreachWatchRecordRequest. */ interface IBreachWatchRecordRequest { - /** BreachWatchRecordRequest recordUid */ - recordUid?: (Uint8Array|null); + recordUid?: Uint8Array | null; /** BreachWatchRecordRequest encryptedData */ - encryptedData?: (Uint8Array|null); + encryptedData?: Uint8Array | null; /** BreachWatchRecordRequest breachWatchInfoType */ - breachWatchInfoType?: (Tokens.BreachWatchInfoType|null); + breachWatchInfoType?: Tokens.BreachWatchInfoType | null; /** BreachWatchRecordRequest updateUserWhoScanned */ - updateUserWhoScanned?: (boolean|null); + updateUserWhoScanned?: boolean | null; } /** Represents a BreachWatchRecordRequest. */ class BreachWatchRecordRequest implements IBreachWatchRecordRequest { - /** * Constructs a new BreachWatchRecordRequest. * @param [properties] Properties to set @@ -51229,7 +54270,10 @@ export namespace Tokens { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Tokens.IBreachWatchRecordRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Tokens.IBreachWatchRecordRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a BreachWatchRecordRequest message from the specified reader or buffer. @@ -51239,7 +54283,7 @@ export namespace Tokens { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Tokens.BreachWatchRecordRequest; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Tokens.BreachWatchRecordRequest; /** * Decodes a BreachWatchRecordRequest message from the specified reader or buffer, length delimited. @@ -51248,14 +54292,14 @@ export namespace Tokens { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Tokens.BreachWatchRecordRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Tokens.BreachWatchRecordRequest; /** * Verifies a BreachWatchRecordRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a BreachWatchRecordRequest message from a plain object. Also converts values to their respective internal types. @@ -51270,7 +54314,10 @@ export namespace Tokens { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Tokens.BreachWatchRecordRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Tokens.BreachWatchRecordRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this BreachWatchRecordRequest to JSON. @@ -51289,25 +54336,23 @@ export namespace Tokens { /** BreachWatchInfoType enum. */ enum BreachWatchInfoType { RECORD = 0, - ALTERNATE_PASSWORD = 1 + ALTERNATE_PASSWORD = 1, } /** Properties of a BreachWatchData. */ interface IBreachWatchData { - /** BreachWatchData passwords */ - passwords?: (Tokens.IBWPassword[]|null); + passwords?: Tokens.IBWPassword[] | null; /** BreachWatchData emails */ - emails?: (Tokens.IBWPassword[]|null); + emails?: Tokens.IBWPassword[] | null; /** BreachWatchData domains */ - domains?: (Tokens.IBWPassword[]|null); + domains?: Tokens.IBWPassword[] | null; } /** Represents a BreachWatchData. */ class BreachWatchData implements IBreachWatchData { - /** * Constructs a new BreachWatchData. * @param [properties] Properties to set @@ -51354,7 +54399,7 @@ export namespace Tokens { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Tokens.BreachWatchData; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Tokens.BreachWatchData; /** * Decodes a BreachWatchData message from the specified reader or buffer, length delimited. @@ -51363,14 +54408,14 @@ export namespace Tokens { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Tokens.BreachWatchData; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Tokens.BreachWatchData; /** * Verifies a BreachWatchData message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a BreachWatchData message from a plain object. Also converts values to their respective internal types. @@ -51385,7 +54430,10 @@ export namespace Tokens { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Tokens.BreachWatchData, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Tokens.BreachWatchData, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this BreachWatchData to JSON. @@ -51403,23 +54451,21 @@ export namespace Tokens { /** Properties of a BWPassword. */ interface IBWPassword { - /** BWPassword value */ - value?: (string|null); + value?: string | null; /** BWPassword resolved */ - resolved?: (number|Long|null); + resolved?: number | Long | null; /** BWPassword status */ - status?: (Tokens.BWStatus|null); + status?: Tokens.BWStatus | null; /** BWPassword euid */ - euid?: (Uint8Array|null); + euid?: Uint8Array | null; } /** Represents a BWPassword. */ class BWPassword implements IBWPassword { - /** * Constructs a new BWPassword. * @param [properties] Properties to set @@ -51430,7 +54476,7 @@ export namespace Tokens { public value: string; /** BWPassword resolved. */ - public resolved: (number|Long); + public resolved: number | Long; /** BWPassword status. */ public status: Tokens.BWStatus; @@ -51469,7 +54515,7 @@ export namespace Tokens { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Tokens.BWPassword; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Tokens.BWPassword; /** * Decodes a BWPassword message from the specified reader or buffer, length delimited. @@ -51478,14 +54524,14 @@ export namespace Tokens { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Tokens.BWPassword; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Tokens.BWPassword; /** * Verifies a BWPassword message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a BWPassword message from a plain object. Also converts values to their respective internal types. @@ -51500,7 +54546,10 @@ export namespace Tokens { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Tokens.BWPassword, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Tokens.BWPassword, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this BWPassword to JSON. @@ -51522,22 +54571,20 @@ export namespace Tokens { CHANGED = 1, WEAK = 2, BREACHED = 3, - IGNORE = 4 + IGNORE = 4, } /** Properties of a DeviceToken. */ interface IDeviceToken { - /** DeviceToken deviceId */ - deviceId?: (number|Long|null); + deviceId?: number | Long | null; /** DeviceToken region */ - region?: (number|null); + region?: number | null; } /** Represents a DeviceToken. */ class DeviceToken implements IDeviceToken { - /** * Constructs a new DeviceToken. * @param [properties] Properties to set @@ -51545,7 +54592,7 @@ export namespace Tokens { constructor(properties?: Tokens.IDeviceToken); /** DeviceToken deviceId. */ - public deviceId: (number|Long); + public deviceId: number | Long; /** DeviceToken region. */ public region: number; @@ -51581,7 +54628,7 @@ export namespace Tokens { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Tokens.DeviceToken; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Tokens.DeviceToken; /** * Decodes a DeviceToken message from the specified reader or buffer, length delimited. @@ -51590,14 +54637,14 @@ export namespace Tokens { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Tokens.DeviceToken; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Tokens.DeviceToken; /** * Verifies a DeviceToken message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a DeviceToken message from a plain object. Also converts values to their respective internal types. @@ -51612,7 +54659,10 @@ export namespace Tokens { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Tokens.DeviceToken, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Tokens.DeviceToken, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this DeviceToken to JSON. @@ -51630,23 +54680,21 @@ export namespace Tokens { /** Properties of a SSOLoginToken. */ interface ISSOLoginToken { - /** SSOLoginToken ssoServiceProviderId */ - ssoServiceProviderId?: (number|Long|null); + ssoServiceProviderId?: number | Long | null; /** SSOLoginToken username */ - username?: (string|null); + username?: string | null; /** SSOLoginToken alias */ - alias?: (string|null); + alias?: string | null; /** SSOLoginToken displayname */ - displayname?: (string|null); + displayname?: string | null; } /** Represents a SSOLoginToken. */ class SSOLoginToken implements ISSOLoginToken { - /** * Constructs a new SSOLoginToken. * @param [properties] Properties to set @@ -51654,7 +54702,7 @@ export namespace Tokens { constructor(properties?: Tokens.ISSOLoginToken); /** SSOLoginToken ssoServiceProviderId. */ - public ssoServiceProviderId: (number|Long); + public ssoServiceProviderId: number | Long; /** SSOLoginToken username. */ public username: string; @@ -51696,7 +54744,7 @@ export namespace Tokens { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Tokens.SSOLoginToken; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Tokens.SSOLoginToken; /** * Decodes a SSOLoginToken message from the specified reader or buffer, length delimited. @@ -51705,14 +54753,14 @@ export namespace Tokens { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Tokens.SSOLoginToken; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Tokens.SSOLoginToken; /** * Verifies a SSOLoginToken message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a SSOLoginToken message from a plain object. Also converts values to their respective internal types. @@ -51727,7 +54775,10 @@ export namespace Tokens { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Tokens.SSOLoginToken, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Tokens.SSOLoginToken, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this SSOLoginToken to JSON. @@ -51745,17 +54796,15 @@ export namespace Tokens { /** Properties of a PasskeyLoginToken. */ interface IPasskeyLoginToken { - /** PasskeyLoginToken passkeyVerificationMS */ - passkeyVerificationMS?: (number|Long|null); + passkeyVerificationMS?: number | Long | null; /** PasskeyLoginToken challenge */ - challenge?: (Uint8Array|null); + challenge?: Uint8Array | null; } /** Represents a PasskeyLoginToken. */ class PasskeyLoginToken implements IPasskeyLoginToken { - /** * Constructs a new PasskeyLoginToken. * @param [properties] Properties to set @@ -51763,7 +54812,7 @@ export namespace Tokens { constructor(properties?: Tokens.IPasskeyLoginToken); /** PasskeyLoginToken passkeyVerificationMS. */ - public passkeyVerificationMS: (number|Long); + public passkeyVerificationMS: number | Long; /** PasskeyLoginToken challenge. */ public challenge: Uint8Array; @@ -51799,7 +54848,7 @@ export namespace Tokens { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Tokens.PasskeyLoginToken; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Tokens.PasskeyLoginToken; /** * Decodes a PasskeyLoginToken message from the specified reader or buffer, length delimited. @@ -51808,14 +54857,14 @@ export namespace Tokens { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Tokens.PasskeyLoginToken; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Tokens.PasskeyLoginToken; /** * Verifies a PasskeyLoginToken message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a PasskeyLoginToken message from a plain object. Also converts values to their respective internal types. @@ -51830,7 +54879,10 @@ export namespace Tokens { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Tokens.PasskeyLoginToken, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Tokens.PasskeyLoginToken, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this PasskeyLoginToken to JSON. @@ -51848,62 +54900,60 @@ export namespace Tokens { /** Properties of a LoginToken. */ interface ILoginToken { - /** LoginToken loginSessionId */ - loginSessionId?: (number|Long|null); + loginSessionId?: number | Long | null; /** LoginToken deviceId */ - deviceId?: (number|Long|null); + deviceId?: number | Long | null; /** LoginToken accountUid */ - accountUid?: (Uint8Array|null); + accountUid?: Uint8Array | null; /** LoginToken messageSessionUid */ - messageSessionUid?: (Uint8Array|null); + messageSessionUid?: Uint8Array | null; /** LoginToken loginState */ - loginState?: (Authentication.LoginState|null); + loginState?: Authentication.LoginState | null; /** LoginToken loginMethod */ - loginMethod?: (Authentication.LoginMethod|null); + loginMethod?: Authentication.LoginMethod | null; /** LoginToken creation */ - creation?: (number|Long|null); + creation?: number | Long | null; /** LoginToken userId */ - userId?: (number|null); + userId?: number | null; /** LoginToken enterpriseUserId */ - enterpriseUserId?: (number|Long|null); + enterpriseUserId?: number | Long | null; /** LoginToken clientVersionId */ - clientVersionId?: (number|null); + clientVersionId?: number | null; /** LoginToken supportedLanguage */ - supportedLanguage?: (Authentication.SupportedLanguage|null); + supportedLanguage?: Authentication.SupportedLanguage | null; /** LoginToken ssoLoginToken */ - ssoLoginToken?: (Tokens.ISSOLoginToken|null); + ssoLoginToken?: Tokens.ISSOLoginToken | null; /** LoginToken username */ - username?: (string|null); + username?: string | null; /** LoginToken relogin */ - relogin?: (boolean|null); + relogin?: boolean | null; /** LoginToken loginType */ - loginType?: (Authentication.LoginType|null); + loginType?: Authentication.LoginType | null; /** LoginToken fromUserId */ - fromUserId?: (number|null); + fromUserId?: number | null; /** LoginToken passkeyLoginToken */ - passkeyLoginToken?: (Tokens.IPasskeyLoginToken|null); + passkeyLoginToken?: Tokens.IPasskeyLoginToken | null; } /** Represents a LoginToken. */ class LoginToken implements ILoginToken { - /** * Constructs a new LoginToken. * @param [properties] Properties to set @@ -51911,10 +54961,10 @@ export namespace Tokens { constructor(properties?: Tokens.ILoginToken); /** LoginToken loginSessionId. */ - public loginSessionId: (number|Long); + public loginSessionId: number | Long; /** LoginToken deviceId. */ - public deviceId: (number|Long); + public deviceId: number | Long; /** LoginToken accountUid. */ public accountUid: Uint8Array; @@ -51929,13 +54979,13 @@ export namespace Tokens { public loginMethod: Authentication.LoginMethod; /** LoginToken creation. */ - public creation: (number|Long); + public creation: number | Long; /** LoginToken userId. */ public userId: number; /** LoginToken enterpriseUserId. */ - public enterpriseUserId: (number|Long); + public enterpriseUserId: number | Long; /** LoginToken clientVersionId. */ public clientVersionId: number; @@ -51944,7 +54994,7 @@ export namespace Tokens { public supportedLanguage: Authentication.SupportedLanguage; /** LoginToken ssoLoginToken. */ - public ssoLoginToken?: (Tokens.ISSOLoginToken|null); + public ssoLoginToken?: Tokens.ISSOLoginToken | null; /** LoginToken username. */ public username: string; @@ -51959,7 +55009,7 @@ export namespace Tokens { public fromUserId: number; /** LoginToken passkeyLoginToken. */ - public passkeyLoginToken?: (Tokens.IPasskeyLoginToken|null); + public passkeyLoginToken?: Tokens.IPasskeyLoginToken | null; /** * Creates a new LoginToken instance using the specified properties. @@ -51992,7 +55042,7 @@ export namespace Tokens { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Tokens.LoginToken; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Tokens.LoginToken; /** * Decodes a LoginToken message from the specified reader or buffer, length delimited. @@ -52001,14 +55051,14 @@ export namespace Tokens { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Tokens.LoginToken; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Tokens.LoginToken; /** * Verifies a LoginToken message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a LoginToken message from a plain object. Also converts values to their respective internal types. @@ -52023,7 +55073,10 @@ export namespace Tokens { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Tokens.LoginToken, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Tokens.LoginToken, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this LoginToken to JSON. @@ -52041,23 +55094,21 @@ export namespace Tokens { /** Properties of a DeviceApprovalToken. */ interface IDeviceApprovalToken { - /** DeviceApprovalToken creation */ - creation?: (number|Long|null); + creation?: number | Long | null; /** DeviceApprovalToken expiration */ - expiration?: (number|Long|null); + expiration?: number | Long | null; /** DeviceApprovalToken deviceToken */ - deviceToken?: (Tokens.IDeviceToken|null); + deviceToken?: Tokens.IDeviceToken | null; /** DeviceApprovalToken supportedLanguage */ - supportedLanguage?: (Authentication.SupportedLanguage|null); + supportedLanguage?: Authentication.SupportedLanguage | null; } /** Represents a DeviceApprovalToken. */ class DeviceApprovalToken implements IDeviceApprovalToken { - /** * Constructs a new DeviceApprovalToken. * @param [properties] Properties to set @@ -52065,13 +55116,13 @@ export namespace Tokens { constructor(properties?: Tokens.IDeviceApprovalToken); /** DeviceApprovalToken creation. */ - public creation: (number|Long); + public creation: number | Long; /** DeviceApprovalToken expiration. */ - public expiration: (number|Long); + public expiration: number | Long; /** DeviceApprovalToken deviceToken. */ - public deviceToken?: (Tokens.IDeviceToken|null); + public deviceToken?: Tokens.IDeviceToken | null; /** DeviceApprovalToken supportedLanguage. */ public supportedLanguage: Authentication.SupportedLanguage; @@ -52097,7 +55148,10 @@ export namespace Tokens { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Tokens.IDeviceApprovalToken, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Tokens.IDeviceApprovalToken, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a DeviceApprovalToken message from the specified reader or buffer. @@ -52107,7 +55161,7 @@ export namespace Tokens { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Tokens.DeviceApprovalToken; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Tokens.DeviceApprovalToken; /** * Decodes a DeviceApprovalToken message from the specified reader or buffer, length delimited. @@ -52116,14 +55170,14 @@ export namespace Tokens { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Tokens.DeviceApprovalToken; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Tokens.DeviceApprovalToken; /** * Verifies a DeviceApprovalToken message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a DeviceApprovalToken message from a plain object. Also converts values to their respective internal types. @@ -52138,7 +55192,10 @@ export namespace Tokens { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Tokens.DeviceApprovalToken, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Tokens.DeviceApprovalToken, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this DeviceApprovalToken to JSON. @@ -52156,23 +55213,21 @@ export namespace Tokens { /** Properties of a TwoFactorToken. */ interface ITwoFactorToken { - /** TwoFactorToken creation */ - creation?: (number|Long|null); + creation?: number | Long | null; /** TwoFactorToken expiration */ - expiration?: (number|Long|null); + expiration?: number | Long | null; /** TwoFactorToken deviceToken */ - deviceToken?: (Tokens.IDeviceToken|null); + deviceToken?: Tokens.IDeviceToken | null; /** TwoFactorToken deviceIp */ - deviceIp?: (string|null); + deviceIp?: string | null; } /** Represents a TwoFactorToken. */ class TwoFactorToken implements ITwoFactorToken { - /** * Constructs a new TwoFactorToken. * @param [properties] Properties to set @@ -52180,13 +55235,13 @@ export namespace Tokens { constructor(properties?: Tokens.ITwoFactorToken); /** TwoFactorToken creation. */ - public creation: (number|Long); + public creation: number | Long; /** TwoFactorToken expiration. */ - public expiration: (number|Long); + public expiration: number | Long; /** TwoFactorToken deviceToken. */ - public deviceToken?: (Tokens.IDeviceToken|null); + public deviceToken?: Tokens.IDeviceToken | null; /** TwoFactorToken deviceIp. */ public deviceIp: string; @@ -52222,7 +55277,7 @@ export namespace Tokens { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Tokens.TwoFactorToken; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Tokens.TwoFactorToken; /** * Decodes a TwoFactorToken message from the specified reader or buffer, length delimited. @@ -52231,14 +55286,14 @@ export namespace Tokens { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Tokens.TwoFactorToken; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Tokens.TwoFactorToken; /** * Verifies a TwoFactorToken message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a TwoFactorToken message from a plain object. Also converts values to their respective internal types. @@ -52253,7 +55308,10 @@ export namespace Tokens { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Tokens.TwoFactorToken, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Tokens.TwoFactorToken, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this TwoFactorToken to JSON. @@ -52271,23 +55329,21 @@ export namespace Tokens { /** Properties of a BreachWatchToken. */ interface IBreachWatchToken { - /** BreachWatchToken userId */ - userId?: (number|null); + userId?: number | null; /** BreachWatchToken domainUid */ - domainUid?: (Uint8Array|null); + domainUid?: Uint8Array | null; /** BreachWatchToken emailUid */ - emailUid?: (Uint8Array|null); + emailUid?: Uint8Array | null; /** BreachWatchToken passwordUid */ - passwordUid?: (Uint8Array|null); + passwordUid?: Uint8Array | null; } /** Represents a BreachWatchToken. */ class BreachWatchToken implements IBreachWatchToken { - /** * Constructs a new BreachWatchToken. * @param [properties] Properties to set @@ -52337,7 +55393,7 @@ export namespace Tokens { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Tokens.BreachWatchToken; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Tokens.BreachWatchToken; /** * Decodes a BreachWatchToken message from the specified reader or buffer, length delimited. @@ -52346,14 +55402,14 @@ export namespace Tokens { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Tokens.BreachWatchToken; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Tokens.BreachWatchToken; /** * Verifies a BreachWatchToken message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a BreachWatchToken message from a plain object. Also converts values to their respective internal types. @@ -52368,7 +55424,10 @@ export namespace Tokens { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Tokens.BreachWatchToken, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Tokens.BreachWatchToken, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this BreachWatchToken to JSON. @@ -52388,28 +55447,26 @@ export namespace Tokens { enum AnonymizedTokenType { DAT = 0, EAT = 1, - PAT = 2 + PAT = 2, } /** Properties of an AnonymizedToken. */ interface IAnonymizedToken { - /** AnonymizedToken created */ - created?: (number|Long|null); + created?: number | Long | null; /** AnonymizedToken expiration */ - expiration?: (number|Long|null); + expiration?: number | Long | null; /** AnonymizedToken uid */ - uid?: (Uint8Array|null); + uid?: Uint8Array | null; /** AnonymizedToken anonymizedTokenType */ - anonymizedTokenType?: (Tokens.AnonymizedTokenType|null); + anonymizedTokenType?: Tokens.AnonymizedTokenType | null; } /** Represents an AnonymizedToken. */ class AnonymizedToken implements IAnonymizedToken { - /** * Constructs a new AnonymizedToken. * @param [properties] Properties to set @@ -52417,10 +55474,10 @@ export namespace Tokens { constructor(properties?: Tokens.IAnonymizedToken); /** AnonymizedToken created. */ - public created: (number|Long); + public created: number | Long; /** AnonymizedToken expiration. */ - public expiration: (number|Long); + public expiration: number | Long; /** AnonymizedToken uid. */ public uid: Uint8Array; @@ -52459,7 +55516,7 @@ export namespace Tokens { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Tokens.AnonymizedToken; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Tokens.AnonymizedToken; /** * Decodes an AnonymizedToken message from the specified reader or buffer, length delimited. @@ -52468,14 +55525,14 @@ export namespace Tokens { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Tokens.AnonymizedToken; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Tokens.AnonymizedToken; /** * Verifies an AnonymizedToken message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an AnonymizedToken message from a plain object. Also converts values to their respective internal types. @@ -52490,7 +55547,10 @@ export namespace Tokens { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Tokens.AnonymizedToken, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Tokens.AnonymizedToken, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this AnonymizedToken to JSON. @@ -52508,17 +55568,15 @@ export namespace Tokens { /** Properties of a LicenseToken. */ interface ILicenseToken { - /** LicenseToken expiration */ - expiration?: (number|Long|null); + expiration?: number | Long | null; /** LicenseToken licenseStatus */ - licenseStatus?: (Authentication.LicenseStatus|null); + licenseStatus?: Authentication.LicenseStatus | null; } /** Represents a LicenseToken. */ class LicenseToken implements ILicenseToken { - /** * Constructs a new LicenseToken. * @param [properties] Properties to set @@ -52526,7 +55584,7 @@ export namespace Tokens { constructor(properties?: Tokens.ILicenseToken); /** LicenseToken expiration. */ - public expiration: (number|Long); + public expiration: number | Long; /** LicenseToken licenseStatus. */ public licenseStatus: Authentication.LicenseStatus; @@ -52562,7 +55620,7 @@ export namespace Tokens { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Tokens.LicenseToken; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Tokens.LicenseToken; /** * Decodes a LicenseToken message from the specified reader or buffer, length delimited. @@ -52571,14 +55629,14 @@ export namespace Tokens { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Tokens.LicenseToken; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Tokens.LicenseToken; /** * Verifies a LicenseToken message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a LicenseToken message from a plain object. Also converts values to their respective internal types. @@ -52593,7 +55651,10 @@ export namespace Tokens { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Tokens.LicenseToken, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Tokens.LicenseToken, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this LicenseToken to JSON. @@ -52613,76 +55674,74 @@ export namespace Tokens { enum AccessType { VAULT_RW = 0, VAULT_RO = 1, - ADMIN = 2 + ADMIN = 2, } /** Properties of a SessionToken. */ interface ISessionToken { - /** SessionToken created */ - created?: (number|Long|null); + created?: number | Long | null; /** SessionToken expiration */ - expiration?: (number|Long|null); + expiration?: number | Long | null; /** SessionToken du1 */ - du1?: (string|null); + du1?: string | null; /** SessionToken messageSessionUid */ - messageSessionUid?: (Uint8Array|null); + messageSessionUid?: Uint8Array | null; /** SessionToken du8 */ - du8?: (Tokens.IDeviceToken|null); + du8?: Tokens.IDeviceToken | null; /** SessionToken fromUserId */ - fromUserId?: (number|null); + fromUserId?: number | null; /** SessionToken forUserId */ - forUserId?: (number|null); + forUserId?: number | null; /** SessionToken enterpriseUserId */ - enterpriseUserId?: (number|Long|null); + enterpriseUserId?: number | Long | null; /** SessionToken du2 */ - du2?: (Tokens.ILicenseToken|null); + du2?: Tokens.ILicenseToken | null; /** SessionToken du3 */ - du3?: (Tokens.ILicenseToken|null); + du3?: Tokens.ILicenseToken | null; /** SessionToken du4 */ - du4?: (Tokens.ILicenseToken|null); + du4?: Tokens.ILicenseToken | null; /** SessionToken du5 */ - du5?: (Tokens.ILicenseToken|null); + du5?: Tokens.ILicenseToken | null; /** SessionToken du6 */ - du6?: (Authentication.AccountType|null); + du6?: Authentication.AccountType | null; /** SessionToken clientVersionId */ - clientVersionId?: (number|null); + clientVersionId?: number | null; /** SessionToken sessionTokenType */ - sessionTokenType?: (Authentication.SessionTokenType|null); + sessionTokenType?: Authentication.SessionTokenType | null; /** SessionToken mcEnterpriseId */ - mcEnterpriseId?: (number|null); + mcEnterpriseId?: number | null; /** SessionToken du7 */ - du7?: (boolean|null); + du7?: boolean | null; /** SessionToken deviceId */ - deviceId?: (number|Long|null); + deviceId?: number | Long | null; /** SessionToken loginSessionId */ - loginSessionId?: (number|Long|null); + loginSessionId?: number | Long | null; /** SessionToken clientTypeId */ - clientTypeId?: (number|null); + clientTypeId?: number | null; } /** Represents a SessionToken. */ class SessionToken implements ISessionToken { - /** * Constructs a new SessionToken. * @param [properties] Properties to set @@ -52690,10 +55749,10 @@ export namespace Tokens { constructor(properties?: Tokens.ISessionToken); /** SessionToken created. */ - public created: (number|Long); + public created: number | Long; /** SessionToken expiration. */ - public expiration: (number|Long); + public expiration: number | Long; /** SessionToken du1. */ public du1: string; @@ -52702,7 +55761,7 @@ export namespace Tokens { public messageSessionUid: Uint8Array; /** SessionToken du8. */ - public du8?: (Tokens.IDeviceToken|null); + public du8?: Tokens.IDeviceToken | null; /** SessionToken fromUserId. */ public fromUserId: number; @@ -52711,19 +55770,19 @@ export namespace Tokens { public forUserId: number; /** SessionToken enterpriseUserId. */ - public enterpriseUserId: (number|Long); + public enterpriseUserId: number | Long; /** SessionToken du2. */ - public du2?: (Tokens.ILicenseToken|null); + public du2?: Tokens.ILicenseToken | null; /** SessionToken du3. */ - public du3?: (Tokens.ILicenseToken|null); + public du3?: Tokens.ILicenseToken | null; /** SessionToken du4. */ - public du4?: (Tokens.ILicenseToken|null); + public du4?: Tokens.ILicenseToken | null; /** SessionToken du5. */ - public du5?: (Tokens.ILicenseToken|null); + public du5?: Tokens.ILicenseToken | null; /** SessionToken du6. */ public du6: Authentication.AccountType; @@ -52741,10 +55800,10 @@ export namespace Tokens { public du7: boolean; /** SessionToken deviceId. */ - public deviceId: (number|Long); + public deviceId: number | Long; /** SessionToken loginSessionId. */ - public loginSessionId: (number|Long); + public loginSessionId: number | Long; /** SessionToken clientTypeId. */ public clientTypeId: number; @@ -52780,7 +55839,7 @@ export namespace Tokens { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Tokens.SessionToken; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Tokens.SessionToken; /** * Decodes a SessionToken message from the specified reader or buffer, length delimited. @@ -52789,14 +55848,14 @@ export namespace Tokens { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Tokens.SessionToken; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Tokens.SessionToken; /** * Verifies a SessionToken message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a SessionToken message from a plain object. Also converts values to their respective internal types. @@ -52811,7 +55870,10 @@ export namespace Tokens { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Tokens.SessionToken, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Tokens.SessionToken, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this SessionToken to JSON. @@ -52829,17 +55891,15 @@ export namespace Tokens { /** Properties of a UserLicenseStatus. */ interface IUserLicenseStatus { - /** UserLicenseStatus licenseType */ - licenseType?: (Authentication.LicenseType|null); + licenseType?: Authentication.LicenseType | null; /** UserLicenseStatus expiration */ - expiration?: (number|Long|null); + expiration?: number | Long | null; } /** Represents a UserLicenseStatus. */ class UserLicenseStatus implements IUserLicenseStatus { - /** * Constructs a new UserLicenseStatus. * @param [properties] Properties to set @@ -52850,7 +55910,7 @@ export namespace Tokens { public licenseType: Authentication.LicenseType; /** UserLicenseStatus expiration. */ - public expiration: (number|Long); + public expiration: number | Long; /** * Creates a new UserLicenseStatus instance using the specified properties. @@ -52883,7 +55943,7 @@ export namespace Tokens { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Tokens.UserLicenseStatus; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Tokens.UserLicenseStatus; /** * Decodes a UserLicenseStatus message from the specified reader or buffer, length delimited. @@ -52892,14 +55952,14 @@ export namespace Tokens { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Tokens.UserLicenseStatus; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Tokens.UserLicenseStatus; /** * Verifies a UserLicenseStatus message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a UserLicenseStatus message from a plain object. Also converts values to their respective internal types. @@ -52914,7 +55974,10 @@ export namespace Tokens { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Tokens.UserLicenseStatus, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Tokens.UserLicenseStatus, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this UserLicenseStatus to JSON. @@ -52932,14 +55995,12 @@ export namespace Tokens { /** Properties of a CheckOutTokenResponse. */ interface ICheckOutTokenResponse { - /** CheckOutTokenResponse checkOutToken */ - checkOutToken?: (string|null); + checkOutToken?: string | null; } /** Represents a CheckOutTokenResponse. */ class CheckOutTokenResponse implements ICheckOutTokenResponse { - /** * Constructs a new CheckOutTokenResponse. * @param [properties] Properties to set @@ -52970,7 +56031,10 @@ export namespace Tokens { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Tokens.ICheckOutTokenResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Tokens.ICheckOutTokenResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a CheckOutTokenResponse message from the specified reader or buffer. @@ -52980,7 +56044,7 @@ export namespace Tokens { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Tokens.CheckOutTokenResponse; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Tokens.CheckOutTokenResponse; /** * Decodes a CheckOutTokenResponse message from the specified reader or buffer, length delimited. @@ -52989,14 +56053,14 @@ export namespace Tokens { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Tokens.CheckOutTokenResponse; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Tokens.CheckOutTokenResponse; /** * Verifies a CheckOutTokenResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a CheckOutTokenResponse message from a plain object. Also converts values to their respective internal types. @@ -53011,7 +56075,10 @@ export namespace Tokens { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Tokens.CheckOutTokenResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Tokens.CheckOutTokenResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this CheckOutTokenResponse to JSON. @@ -53029,20 +56096,18 @@ export namespace Tokens { /** Properties of an ImporterToken. */ interface IImporterToken { - /** ImporterToken importId */ - importId?: (number|null); + importId?: number | null; /** ImporterToken userId */ - userId?: (number|null); + userId?: number | null; /** ImporterToken region */ - region?: (string|null); + region?: string | null; } /** Represents an ImporterToken. */ class ImporterToken implements IImporterToken { - /** * Constructs a new ImporterToken. * @param [properties] Properties to set @@ -53089,7 +56154,7 @@ export namespace Tokens { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Tokens.ImporterToken; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Tokens.ImporterToken; /** * Decodes an ImporterToken message from the specified reader or buffer, length delimited. @@ -53098,14 +56163,14 @@ export namespace Tokens { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Tokens.ImporterToken; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Tokens.ImporterToken; /** * Verifies an ImporterToken message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an ImporterToken message from a plain object. Also converts values to their respective internal types. @@ -53120,7 +56185,10 @@ export namespace Tokens { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Tokens.ImporterToken, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Tokens.ImporterToken, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this ImporterToken to JSON. @@ -53138,29 +56206,27 @@ export namespace Tokens { /** Properties of an ApiDecryptedRequest. */ interface IApiDecryptedRequest { - /** ApiDecryptedRequest decryptedTransmissionKey */ - decryptedTransmissionKey?: (Uint8Array|null); + decryptedTransmissionKey?: Uint8Array | null; /** ApiDecryptedRequest apiRequestPayload */ - apiRequestPayload?: (Authentication.IApiRequestPayload|null); + apiRequestPayload?: Authentication.IApiRequestPayload | null; /** ApiDecryptedRequest supportedLanguage */ - supportedLanguage?: (Authentication.SupportedLanguage|null); + supportedLanguage?: Authentication.SupportedLanguage | null; /** ApiDecryptedRequest recaptcha */ - recaptcha?: (string|null); + recaptcha?: string | null; /** ApiDecryptedRequest userAgent */ - userAgent?: (string|null); + userAgent?: string | null; /** ApiDecryptedRequest subEnvironment */ - subEnvironment?: (string|null); + subEnvironment?: string | null; } /** Represents an ApiDecryptedRequest. */ class ApiDecryptedRequest implements IApiDecryptedRequest { - /** * Constructs a new ApiDecryptedRequest. * @param [properties] Properties to set @@ -53171,7 +56237,7 @@ export namespace Tokens { public decryptedTransmissionKey: Uint8Array; /** ApiDecryptedRequest apiRequestPayload. */ - public apiRequestPayload?: (Authentication.IApiRequestPayload|null); + public apiRequestPayload?: Authentication.IApiRequestPayload | null; /** ApiDecryptedRequest supportedLanguage. */ public supportedLanguage: Authentication.SupportedLanguage; @@ -53206,7 +56272,10 @@ export namespace Tokens { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Tokens.IApiDecryptedRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Tokens.IApiDecryptedRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes an ApiDecryptedRequest message from the specified reader or buffer. @@ -53216,7 +56285,7 @@ export namespace Tokens { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Tokens.ApiDecryptedRequest; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Tokens.ApiDecryptedRequest; /** * Decodes an ApiDecryptedRequest message from the specified reader or buffer, length delimited. @@ -53225,14 +56294,14 @@ export namespace Tokens { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Tokens.ApiDecryptedRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Tokens.ApiDecryptedRequest; /** * Verifies an ApiDecryptedRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an ApiDecryptedRequest message from a plain object. Also converts values to their respective internal types. @@ -53247,7 +56316,10 @@ export namespace Tokens { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Tokens.ApiDecryptedRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Tokens.ApiDecryptedRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this ApiDecryptedRequest to JSON. @@ -53265,29 +56337,27 @@ export namespace Tokens { /** Properties of a ChangeEmailToken. */ interface IChangeEmailToken { - /** ChangeEmailToken userId */ - userId?: (number|null); + userId?: number | null; /** ChangeEmailToken newEmail */ - newEmail?: (string|null); + newEmail?: string | null; /** ChangeEmailToken supportedLanguage */ - supportedLanguage?: (Authentication.SupportedLanguage|null); + supportedLanguage?: Authentication.SupportedLanguage | null; /** ChangeEmailToken enterpriseUserId */ - enterpriseUserId?: (number|Long|null); + enterpriseUserId?: number | Long | null; /** ChangeEmailToken creation */ - creation?: (number|Long|null); + creation?: number | Long | null; /** ChangeEmailToken clientVersionId */ - clientVersionId?: (number|null); + clientVersionId?: number | null; } /** Represents a ChangeEmailToken. */ class ChangeEmailToken implements IChangeEmailToken { - /** * Constructs a new ChangeEmailToken. * @param [properties] Properties to set @@ -53304,10 +56374,10 @@ export namespace Tokens { public supportedLanguage: Authentication.SupportedLanguage; /** ChangeEmailToken enterpriseUserId. */ - public enterpriseUserId: (number|Long); + public enterpriseUserId: number | Long; /** ChangeEmailToken creation. */ - public creation: (number|Long); + public creation: number | Long; /** ChangeEmailToken clientVersionId. */ public clientVersionId: number; @@ -53343,7 +56413,7 @@ export namespace Tokens { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Tokens.ChangeEmailToken; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Tokens.ChangeEmailToken; /** * Decodes a ChangeEmailToken message from the specified reader or buffer, length delimited. @@ -53352,14 +56422,14 @@ export namespace Tokens { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Tokens.ChangeEmailToken; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Tokens.ChangeEmailToken; /** * Verifies a ChangeEmailToken message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a ChangeEmailToken message from a plain object. Also converts values to their respective internal types. @@ -53374,7 +56444,10 @@ export namespace Tokens { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Tokens.ChangeEmailToken, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Tokens.ChangeEmailToken, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this ChangeEmailToken to JSON. @@ -53392,26 +56465,24 @@ export namespace Tokens { /** Properties of an EmailVerificationToken. */ interface IEmailVerificationToken { - /** EmailVerificationToken userId */ - userId?: (number|null); + userId?: number | null; /** EmailVerificationToken email */ - email?: (string|null); + email?: string | null; /** EmailVerificationToken du1 */ - du1?: (string|null); + du1?: string | null; /** EmailVerificationToken enterpriseUserId */ - enterpriseUserId?: (number|Long|null); + enterpriseUserId?: number | Long | null; /** EmailVerificationToken du2 */ - du2?: (number|Long|null); + du2?: number | Long | null; } /** Represents an EmailVerificationToken. */ class EmailVerificationToken implements IEmailVerificationToken { - /** * Constructs a new EmailVerificationToken. * @param [properties] Properties to set @@ -53428,10 +56499,10 @@ export namespace Tokens { public du1: string; /** EmailVerificationToken enterpriseUserId. */ - public enterpriseUserId: (number|Long); + public enterpriseUserId: number | Long; /** EmailVerificationToken du2. */ - public du2: (number|Long); + public du2: number | Long; /** * Creates a new EmailVerificationToken instance using the specified properties. @@ -53454,7 +56525,10 @@ export namespace Tokens { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Tokens.IEmailVerificationToken, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Tokens.IEmailVerificationToken, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes an EmailVerificationToken message from the specified reader or buffer. @@ -53464,7 +56538,7 @@ export namespace Tokens { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Tokens.EmailVerificationToken; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Tokens.EmailVerificationToken; /** * Decodes an EmailVerificationToken message from the specified reader or buffer, length delimited. @@ -53473,14 +56547,14 @@ export namespace Tokens { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Tokens.EmailVerificationToken; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Tokens.EmailVerificationToken; /** * Verifies an EmailVerificationToken message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an EmailVerificationToken message from a plain object. Also converts values to their respective internal types. @@ -53495,7 +56569,10 @@ export namespace Tokens { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Tokens.EmailVerificationToken, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Tokens.EmailVerificationToken, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this EmailVerificationToken to JSON. @@ -53513,35 +56590,33 @@ export namespace Tokens { /** Properties of an IpAddressVerificationToken. */ interface IIpAddressVerificationToken { - /** IpAddressVerificationToken userId */ - userId?: (number|null); + userId?: number | null; /** IpAddressVerificationToken email */ - email?: (string|null); + email?: string | null; /** IpAddressVerificationToken ssoServiceProviderId */ - ssoServiceProviderId?: (number|Long|null); + ssoServiceProviderId?: number | Long | null; /** IpAddressVerificationToken ipAddress */ - ipAddress?: (string|null); + ipAddress?: string | null; /** IpAddressVerificationToken du1 */ - du1?: (string|null); + du1?: string | null; /** IpAddressVerificationToken du2 */ - du2?: (number|Long|null); + du2?: number | Long | null; /** IpAddressVerificationToken enterpriseId */ - enterpriseId?: (number|null); + enterpriseId?: number | null; /** IpAddressVerificationToken deviceId */ - deviceId?: (number|Long|null); + deviceId?: number | Long | null; } /** Represents an IpAddressVerificationToken. */ class IpAddressVerificationToken implements IIpAddressVerificationToken { - /** * Constructs a new IpAddressVerificationToken. * @param [properties] Properties to set @@ -53555,7 +56630,7 @@ export namespace Tokens { public email: string; /** IpAddressVerificationToken ssoServiceProviderId. */ - public ssoServiceProviderId: (number|Long); + public ssoServiceProviderId: number | Long; /** IpAddressVerificationToken ipAddress. */ public ipAddress: string; @@ -53564,13 +56639,13 @@ export namespace Tokens { public du1: string; /** IpAddressVerificationToken du2. */ - public du2: (number|Long); + public du2: number | Long; /** IpAddressVerificationToken enterpriseId. */ public enterpriseId: number; /** IpAddressVerificationToken deviceId. */ - public deviceId: (number|Long); + public deviceId: number | Long; /** * Creates a new IpAddressVerificationToken instance using the specified properties. @@ -53593,7 +56668,10 @@ export namespace Tokens { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Tokens.IIpAddressVerificationToken, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Tokens.IIpAddressVerificationToken, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes an IpAddressVerificationToken message from the specified reader or buffer. @@ -53603,7 +56681,7 @@ export namespace Tokens { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Tokens.IpAddressVerificationToken; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Tokens.IpAddressVerificationToken; /** * Decodes an IpAddressVerificationToken message from the specified reader or buffer, length delimited. @@ -53612,14 +56690,14 @@ export namespace Tokens { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Tokens.IpAddressVerificationToken; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Tokens.IpAddressVerificationToken; /** * Verifies an IpAddressVerificationToken message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an IpAddressVerificationToken message from a plain object. Also converts values to their respective internal types. @@ -53634,7 +56712,10 @@ export namespace Tokens { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Tokens.IpAddressVerificationToken, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Tokens.IpAddressVerificationToken, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this IpAddressVerificationToken to JSON. @@ -53652,29 +56733,27 @@ export namespace Tokens { /** Properties of an EnterprisePersonalAccountToken. */ interface IEnterprisePersonalAccountToken { - /** EnterprisePersonalAccountToken enterpriseUserId */ - enterpriseUserId?: (number|Long|null); + enterpriseUserId?: number | Long | null; /** EnterprisePersonalAccountToken email */ - email?: (string|null); + email?: string | null; /** EnterprisePersonalAccountToken supportedLanguage */ - supportedLanguage?: (Authentication.SupportedLanguage|null); + supportedLanguage?: Authentication.SupportedLanguage | null; /** EnterprisePersonalAccountToken duration */ - duration?: (number|Long|null); + duration?: number | Long | null; /** EnterprisePersonalAccountToken referralName */ - referralName?: (string|null); + referralName?: string | null; /** EnterprisePersonalAccountToken creation */ - creation?: (number|Long|null); + creation?: number | Long | null; } /** Represents an EnterprisePersonalAccountToken. */ class EnterprisePersonalAccountToken implements IEnterprisePersonalAccountToken { - /** * Constructs a new EnterprisePersonalAccountToken. * @param [properties] Properties to set @@ -53682,7 +56761,7 @@ export namespace Tokens { constructor(properties?: Tokens.IEnterprisePersonalAccountToken); /** EnterprisePersonalAccountToken enterpriseUserId. */ - public enterpriseUserId: (number|Long); + public enterpriseUserId: number | Long; /** EnterprisePersonalAccountToken email. */ public email: string; @@ -53691,20 +56770,22 @@ export namespace Tokens { public supportedLanguage: Authentication.SupportedLanguage; /** EnterprisePersonalAccountToken duration. */ - public duration: (number|Long); + public duration: number | Long; /** EnterprisePersonalAccountToken referralName. */ public referralName: string; /** EnterprisePersonalAccountToken creation. */ - public creation: (number|Long); + public creation: number | Long; /** * Creates a new EnterprisePersonalAccountToken instance using the specified properties. * @param [properties] Properties to set * @returns EnterprisePersonalAccountToken instance */ - public static create(properties?: Tokens.IEnterprisePersonalAccountToken): Tokens.EnterprisePersonalAccountToken; + public static create( + properties?: Tokens.IEnterprisePersonalAccountToken + ): Tokens.EnterprisePersonalAccountToken; /** * Encodes the specified EnterprisePersonalAccountToken message. Does not implicitly {@link Tokens.EnterprisePersonalAccountToken.verify|verify} messages. @@ -53712,7 +56793,10 @@ export namespace Tokens { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Tokens.IEnterprisePersonalAccountToken, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Tokens.IEnterprisePersonalAccountToken, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified EnterprisePersonalAccountToken message, length delimited. Does not implicitly {@link Tokens.EnterprisePersonalAccountToken.verify|verify} messages. @@ -53720,7 +56804,10 @@ export namespace Tokens { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Tokens.IEnterprisePersonalAccountToken, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Tokens.IEnterprisePersonalAccountToken, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes an EnterprisePersonalAccountToken message from the specified reader or buffer. @@ -53730,7 +56817,10 @@ export namespace Tokens { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Tokens.EnterprisePersonalAccountToken; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Tokens.EnterprisePersonalAccountToken; /** * Decodes an EnterprisePersonalAccountToken message from the specified reader or buffer, length delimited. @@ -53739,14 +56829,14 @@ export namespace Tokens { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Tokens.EnterprisePersonalAccountToken; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Tokens.EnterprisePersonalAccountToken; /** * Verifies an EnterprisePersonalAccountToken message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an EnterprisePersonalAccountToken message from a plain object. Also converts values to their respective internal types. @@ -53761,7 +56851,10 @@ export namespace Tokens { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Tokens.EnterprisePersonalAccountToken, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Tokens.EnterprisePersonalAccountToken, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this EnterprisePersonalAccountToken to JSON. @@ -53779,32 +56872,30 @@ export namespace Tokens { /** Properties of a UsernameVerificationToken. */ interface IUsernameVerificationToken { - /** UsernameVerificationToken username */ - username?: (string|null); + username?: string | null; /** UsernameVerificationToken accountUid */ - accountUid?: (Uint8Array|null); + accountUid?: Uint8Array | null; /** UsernameVerificationToken supportedLanguage */ - supportedLanguage?: (Authentication.SupportedLanguage|null); + supportedLanguage?: Authentication.SupportedLanguage | null; /** UsernameVerificationToken creation */ - creation?: (number|Long|null); + creation?: number | Long | null; /** UsernameVerificationToken clientVersionId */ - clientVersionId?: (number|null); + clientVersionId?: number | null; /** UsernameVerificationToken alternateUsername */ - alternateUsername?: (string|null); + alternateUsername?: string | null; /** UsernameVerificationToken toUsername */ - toUsername?: (string|null); + toUsername?: string | null; } /** Represents a UsernameVerificationToken. */ class UsernameVerificationToken implements IUsernameVerificationToken { - /** * Constructs a new UsernameVerificationToken. * @param [properties] Properties to set @@ -53821,7 +56912,7 @@ export namespace Tokens { public supportedLanguage: Authentication.SupportedLanguage; /** UsernameVerificationToken creation. */ - public creation: (number|Long); + public creation: number | Long; /** UsernameVerificationToken clientVersionId. */ public clientVersionId: number; @@ -53853,7 +56944,10 @@ export namespace Tokens { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Tokens.IUsernameVerificationToken, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Tokens.IUsernameVerificationToken, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a UsernameVerificationToken message from the specified reader or buffer. @@ -53863,7 +56957,7 @@ export namespace Tokens { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Tokens.UsernameVerificationToken; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Tokens.UsernameVerificationToken; /** * Decodes a UsernameVerificationToken message from the specified reader or buffer, length delimited. @@ -53872,14 +56966,14 @@ export namespace Tokens { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Tokens.UsernameVerificationToken; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Tokens.UsernameVerificationToken; /** * Verifies a UsernameVerificationToken message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a UsernameVerificationToken message from a plain object. Also converts values to their respective internal types. @@ -53894,7 +56988,10 @@ export namespace Tokens { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Tokens.UsernameVerificationToken, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Tokens.UsernameVerificationToken, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this UsernameVerificationToken to JSON. @@ -53912,35 +57009,33 @@ export namespace Tokens { /** Properties of a DeviceVerificationToken. */ interface IDeviceVerificationToken { - /** DeviceVerificationToken deviceId */ - deviceId?: (number|Long|null); + deviceId?: number | Long | null; /** DeviceVerificationToken username */ - username?: (string|null); + username?: string | null; /** DeviceVerificationToken accountUid */ - accountUid?: (Uint8Array|null); + accountUid?: Uint8Array | null; /** DeviceVerificationToken clientVersion */ - clientVersion?: (string|null); + clientVersion?: string | null; /** DeviceVerificationToken supportedLanguage */ - supportedLanguage?: (Authentication.SupportedLanguage|null); + supportedLanguage?: Authentication.SupportedLanguage | null; /** DeviceVerificationToken creation */ - creation?: (number|Long|null); + creation?: number | Long | null; /** DeviceVerificationToken messageSessionUid */ - messageSessionUid?: (Uint8Array|null); + messageSessionUid?: Uint8Array | null; /** DeviceVerificationToken ipAddress */ - ipAddress?: (string|null); + ipAddress?: string | null; } /** Represents a DeviceVerificationToken. */ class DeviceVerificationToken implements IDeviceVerificationToken { - /** * Constructs a new DeviceVerificationToken. * @param [properties] Properties to set @@ -53948,7 +57043,7 @@ export namespace Tokens { constructor(properties?: Tokens.IDeviceVerificationToken); /** DeviceVerificationToken deviceId. */ - public deviceId: (number|Long); + public deviceId: number | Long; /** DeviceVerificationToken username. */ public username: string; @@ -53963,7 +57058,7 @@ export namespace Tokens { public supportedLanguage: Authentication.SupportedLanguage; /** DeviceVerificationToken creation. */ - public creation: (number|Long); + public creation: number | Long; /** DeviceVerificationToken messageSessionUid. */ public messageSessionUid: Uint8Array; @@ -53992,7 +57087,10 @@ export namespace Tokens { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Tokens.IDeviceVerificationToken, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Tokens.IDeviceVerificationToken, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a DeviceVerificationToken message from the specified reader or buffer. @@ -54002,7 +57100,7 @@ export namespace Tokens { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Tokens.DeviceVerificationToken; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Tokens.DeviceVerificationToken; /** * Decodes a DeviceVerificationToken message from the specified reader or buffer, length delimited. @@ -54011,14 +57109,14 @@ export namespace Tokens { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Tokens.DeviceVerificationToken; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Tokens.DeviceVerificationToken; /** * Verifies a DeviceVerificationToken message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a DeviceVerificationToken message from a plain object. Also converts values to their respective internal types. @@ -54033,7 +57131,10 @@ export namespace Tokens { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Tokens.DeviceVerificationToken, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Tokens.DeviceVerificationToken, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this DeviceVerificationToken to JSON. @@ -54051,29 +57152,27 @@ export namespace Tokens { /** Properties of a ReActivateDeviceApprovalRequestToken. */ interface IReActivateDeviceApprovalRequestToken { - /** ReActivateDeviceApprovalRequestToken deviceId */ - deviceId?: (number|Long|null); + deviceId?: number | Long | null; /** ReActivateDeviceApprovalRequestToken fromUsername */ - fromUsername?: (string|null); + fromUsername?: string | null; /** ReActivateDeviceApprovalRequestToken forUsername */ - forUsername?: (string|null); + forUsername?: string | null; /** ReActivateDeviceApprovalRequestToken accountUid */ - accountUid?: (Uint8Array|null); + accountUid?: Uint8Array | null; /** ReActivateDeviceApprovalRequestToken requestTimeStamp */ - requestTimeStamp?: (number|Long|null); + requestTimeStamp?: number | Long | null; /** ReActivateDeviceApprovalRequestToken supportedLanguage */ - supportedLanguage?: (Authentication.SupportedLanguage|null); + supportedLanguage?: Authentication.SupportedLanguage | null; } /** Represents a ReActivateDeviceApprovalRequestToken. */ class ReActivateDeviceApprovalRequestToken implements IReActivateDeviceApprovalRequestToken { - /** * Constructs a new ReActivateDeviceApprovalRequestToken. * @param [properties] Properties to set @@ -54081,7 +57180,7 @@ export namespace Tokens { constructor(properties?: Tokens.IReActivateDeviceApprovalRequestToken); /** ReActivateDeviceApprovalRequestToken deviceId. */ - public deviceId: (number|Long); + public deviceId: number | Long; /** ReActivateDeviceApprovalRequestToken fromUsername. */ public fromUsername: string; @@ -54093,7 +57192,7 @@ export namespace Tokens { public accountUid: Uint8Array; /** ReActivateDeviceApprovalRequestToken requestTimeStamp. */ - public requestTimeStamp: (number|Long); + public requestTimeStamp: number | Long; /** ReActivateDeviceApprovalRequestToken supportedLanguage. */ public supportedLanguage: Authentication.SupportedLanguage; @@ -54103,7 +57202,9 @@ export namespace Tokens { * @param [properties] Properties to set * @returns ReActivateDeviceApprovalRequestToken instance */ - public static create(properties?: Tokens.IReActivateDeviceApprovalRequestToken): Tokens.ReActivateDeviceApprovalRequestToken; + public static create( + properties?: Tokens.IReActivateDeviceApprovalRequestToken + ): Tokens.ReActivateDeviceApprovalRequestToken; /** * Encodes the specified ReActivateDeviceApprovalRequestToken message. Does not implicitly {@link Tokens.ReActivateDeviceApprovalRequestToken.verify|verify} messages. @@ -54111,7 +57212,10 @@ export namespace Tokens { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Tokens.IReActivateDeviceApprovalRequestToken, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Tokens.IReActivateDeviceApprovalRequestToken, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified ReActivateDeviceApprovalRequestToken message, length delimited. Does not implicitly {@link Tokens.ReActivateDeviceApprovalRequestToken.verify|verify} messages. @@ -54119,7 +57223,10 @@ export namespace Tokens { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Tokens.IReActivateDeviceApprovalRequestToken, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Tokens.IReActivateDeviceApprovalRequestToken, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a ReActivateDeviceApprovalRequestToken message from the specified reader or buffer. @@ -54129,7 +57236,10 @@ export namespace Tokens { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Tokens.ReActivateDeviceApprovalRequestToken; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Tokens.ReActivateDeviceApprovalRequestToken; /** * Decodes a ReActivateDeviceApprovalRequestToken message from the specified reader or buffer, length delimited. @@ -54138,14 +57248,16 @@ export namespace Tokens { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Tokens.ReActivateDeviceApprovalRequestToken; + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array + ): Tokens.ReActivateDeviceApprovalRequestToken; /** * Verifies a ReActivateDeviceApprovalRequestToken message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a ReActivateDeviceApprovalRequestToken message from a plain object. Also converts values to their respective internal types. @@ -54160,7 +57272,10 @@ export namespace Tokens { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Tokens.ReActivateDeviceApprovalRequestToken, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Tokens.ReActivateDeviceApprovalRequestToken, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this ReActivateDeviceApprovalRequestToken to JSON. @@ -54178,32 +57293,30 @@ export namespace Tokens { /** Properties of a CreateUserToken. */ interface ICreateUserToken { - /** CreateUserToken createUserRequestId */ - createUserRequestId?: (number|null); + createUserRequestId?: number | null; /** CreateUserToken verificationCode */ - verificationCode?: (string|null); + verificationCode?: string | null; /** CreateUserToken requestTimeStamp */ - requestTimeStamp?: (number|Long|null); + requestTimeStamp?: number | Long | null; /** CreateUserToken supportedLanguage */ - supportedLanguage?: (Authentication.SupportedLanguage|null); + supportedLanguage?: Authentication.SupportedLanguage | null; /** CreateUserToken remoteAddress */ - remoteAddress?: (string|null); + remoteAddress?: string | null; /** CreateUserToken messageSessionUid */ - messageSessionUid?: (Uint8Array|null); + messageSessionUid?: Uint8Array | null; /** CreateUserToken deviceId */ - deviceId?: (number|Long|null); + deviceId?: number | Long | null; } /** Represents a CreateUserToken. */ class CreateUserToken implements ICreateUserToken { - /** * Constructs a new CreateUserToken. * @param [properties] Properties to set @@ -54217,7 +57330,7 @@ export namespace Tokens { public verificationCode: string; /** CreateUserToken requestTimeStamp. */ - public requestTimeStamp: (number|Long); + public requestTimeStamp: number | Long; /** CreateUserToken supportedLanguage. */ public supportedLanguage: Authentication.SupportedLanguage; @@ -54229,7 +57342,7 @@ export namespace Tokens { public messageSessionUid: Uint8Array; /** CreateUserToken deviceId. */ - public deviceId: (number|Long); + public deviceId: number | Long; /** * Creates a new CreateUserToken instance using the specified properties. @@ -54262,7 +57375,7 @@ export namespace Tokens { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Tokens.CreateUserToken; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Tokens.CreateUserToken; /** * Decodes a CreateUserToken message from the specified reader or buffer, length delimited. @@ -54271,14 +57384,14 @@ export namespace Tokens { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Tokens.CreateUserToken; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Tokens.CreateUserToken; /** * Verifies a CreateUserToken message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a CreateUserToken message from a plain object. Also converts values to their respective internal types. @@ -54293,7 +57406,10 @@ export namespace Tokens { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Tokens.CreateUserToken, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Tokens.CreateUserToken, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this CreateUserToken to JSON. @@ -54311,26 +57427,24 @@ export namespace Tokens { /** Properties of a DeleteUserToken. */ interface IDeleteUserToken { - /** DeleteUserToken userIdForDelete */ - userIdForDelete?: (number|null); + userIdForDelete?: number | null; /** DeleteUserToken username */ - username?: (string|null); + username?: string | null; /** DeleteUserToken reason */ - reason?: (string|null); + reason?: string | null; /** DeleteUserToken requestTimeStamp */ - requestTimeStamp?: (number|Long|null); + requestTimeStamp?: number | Long | null; /** DeleteUserToken supportedLanguage */ - supportedLanguage?: (Authentication.SupportedLanguage|null); + supportedLanguage?: Authentication.SupportedLanguage | null; } /** Represents a DeleteUserToken. */ class DeleteUserToken implements IDeleteUserToken { - /** * Constructs a new DeleteUserToken. * @param [properties] Properties to set @@ -54347,7 +57461,7 @@ export namespace Tokens { public reason: string; /** DeleteUserToken requestTimeStamp. */ - public requestTimeStamp: (number|Long); + public requestTimeStamp: number | Long; /** DeleteUserToken supportedLanguage. */ public supportedLanguage: Authentication.SupportedLanguage; @@ -54383,7 +57497,7 @@ export namespace Tokens { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Tokens.DeleteUserToken; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Tokens.DeleteUserToken; /** * Decodes a DeleteUserToken message from the specified reader or buffer, length delimited. @@ -54392,14 +57506,14 @@ export namespace Tokens { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Tokens.DeleteUserToken; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Tokens.DeleteUserToken; /** * Verifies a DeleteUserToken message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a DeleteUserToken message from a plain object. Also converts values to their respective internal types. @@ -54414,7 +57528,10 @@ export namespace Tokens { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Tokens.DeleteUserToken, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Tokens.DeleteUserToken, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this DeleteUserToken to JSON. @@ -54440,31 +57557,29 @@ export namespace Tokens { CREATE_ACCOUNT_VERIFICATION = 5, REDEEM_PERSONAL_LICENSE = 6, DELETE_ACCOUNT_VERIFICATION = 7, - REACTIVATE_DEVICE_APPROVAL_REQUEST = 8 + REACTIVATE_DEVICE_APPROVAL_REQUEST = 8, } /** Properties of a ProcessToken. */ interface IProcessToken { - /** ProcessToken processTokenType */ - processTokenType?: (Tokens.ProcessTokenType|null); + processTokenType?: Tokens.ProcessTokenType | null; /** ProcessToken payload */ - payload?: (Uint8Array|null); + payload?: Uint8Array | null; /** ProcessToken creation */ - creation?: (number|Long|null); + creation?: number | Long | null; /** ProcessToken supportedLanguage */ - supportedLanguage?: (Authentication.SupportedLanguage|null); + supportedLanguage?: Authentication.SupportedLanguage | null; /** ProcessToken subEnvironment */ - subEnvironment?: (string|null); + subEnvironment?: string | null; } /** Represents a ProcessToken. */ class ProcessToken implements IProcessToken { - /** * Constructs a new ProcessToken. * @param [properties] Properties to set @@ -54478,7 +57593,7 @@ export namespace Tokens { public payload: Uint8Array; /** ProcessToken creation. */ - public creation: (number|Long); + public creation: number | Long; /** ProcessToken supportedLanguage. */ public supportedLanguage: Authentication.SupportedLanguage; @@ -54517,7 +57632,7 @@ export namespace Tokens { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Tokens.ProcessToken; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Tokens.ProcessToken; /** * Decodes a ProcessToken message from the specified reader or buffer, length delimited. @@ -54526,14 +57641,14 @@ export namespace Tokens { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Tokens.ProcessToken; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Tokens.ProcessToken; /** * Verifies a ProcessToken message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a ProcessToken message from a plain object. Also converts values to their respective internal types. @@ -54548,7 +57663,10 @@ export namespace Tokens { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Tokens.ProcessToken, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Tokens.ProcessToken, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this ProcessToken to JSON. @@ -54567,28 +57685,26 @@ export namespace Tokens { /** PageTokenType enum. */ enum PageTokenType { FULL = 0, - PARTIAL = 1 + PARTIAL = 1, } /** Properties of an EnterpriseDataContinuationToken. */ interface IEnterpriseDataContinuationToken { - /** EnterpriseDataContinuationToken startType */ - startType?: (Tokens.PageTokenType|null); + startType?: Tokens.PageTokenType | null; /** EnterpriseDataContinuationToken processedUpToTransactionId */ - processedUpToTransactionId?: (number|Long|null); + processedUpToTransactionId?: number | Long | null; /** EnterpriseDataContinuationToken position */ - position?: (Tokens.IPosition|null); + position?: Tokens.IPosition | null; /** EnterpriseDataContinuationToken lastProcessedTime */ - lastProcessedTime?: (string|null); + lastProcessedTime?: string | null; } /** Represents an EnterpriseDataContinuationToken. */ class EnterpriseDataContinuationToken implements IEnterpriseDataContinuationToken { - /** * Constructs a new EnterpriseDataContinuationToken. * @param [properties] Properties to set @@ -54599,10 +57715,10 @@ export namespace Tokens { public startType: Tokens.PageTokenType; /** EnterpriseDataContinuationToken processedUpToTransactionId. */ - public processedUpToTransactionId: (number|Long); + public processedUpToTransactionId: number | Long; /** EnterpriseDataContinuationToken position. */ - public position?: (Tokens.IPosition|null); + public position?: Tokens.IPosition | null; /** EnterpriseDataContinuationToken lastProcessedTime. */ public lastProcessedTime: string; @@ -54612,7 +57728,9 @@ export namespace Tokens { * @param [properties] Properties to set * @returns EnterpriseDataContinuationToken instance */ - public static create(properties?: Tokens.IEnterpriseDataContinuationToken): Tokens.EnterpriseDataContinuationToken; + public static create( + properties?: Tokens.IEnterpriseDataContinuationToken + ): Tokens.EnterpriseDataContinuationToken; /** * Encodes the specified EnterpriseDataContinuationToken message. Does not implicitly {@link Tokens.EnterpriseDataContinuationToken.verify|verify} messages. @@ -54620,7 +57738,10 @@ export namespace Tokens { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Tokens.IEnterpriseDataContinuationToken, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Tokens.IEnterpriseDataContinuationToken, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified EnterpriseDataContinuationToken message, length delimited. Does not implicitly {@link Tokens.EnterpriseDataContinuationToken.verify|verify} messages. @@ -54628,7 +57749,10 @@ export namespace Tokens { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Tokens.IEnterpriseDataContinuationToken, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Tokens.IEnterpriseDataContinuationToken, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes an EnterpriseDataContinuationToken message from the specified reader or buffer. @@ -54638,7 +57762,10 @@ export namespace Tokens { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Tokens.EnterpriseDataContinuationToken; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Tokens.EnterpriseDataContinuationToken; /** * Decodes an EnterpriseDataContinuationToken message from the specified reader or buffer, length delimited. @@ -54647,14 +57774,14 @@ export namespace Tokens { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Tokens.EnterpriseDataContinuationToken; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Tokens.EnterpriseDataContinuationToken; /** * Verifies an EnterpriseDataContinuationToken message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an EnterpriseDataContinuationToken message from a plain object. Also converts values to their respective internal types. @@ -54669,7 +57796,10 @@ export namespace Tokens { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Tokens.EnterpriseDataContinuationToken, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Tokens.EnterpriseDataContinuationToken, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this EnterpriseDataContinuationToken to JSON. @@ -54742,25 +57872,23 @@ export namespace Tokens { USER4 = 52, USER5 = 53, USER_REMOVED = 54, - NOTIFICATION_SYNC_DATA = 55 + NOTIFICATION_SYNC_DATA = 55, } /** Properties of a Position. */ interface IPosition { - /** Position entity */ - entity?: (Enterprise.EnterpriseDataEntity|null); + entity?: Enterprise.EnterpriseDataEntity | null; /** Position nodeId */ - nodeId?: (number|Long|null); + nodeId?: number | Long | null; /** Position location */ - location?: (Uint8Array|null); + location?: Uint8Array | null; } /** Represents a Position. */ class Position implements IPosition { - /** * Constructs a new Position. * @param [properties] Properties to set @@ -54771,7 +57899,7 @@ export namespace Tokens { public entity: Enterprise.EnterpriseDataEntity; /** Position nodeId. */ - public nodeId: (number|Long); + public nodeId: number | Long; /** Position location. */ public location: Uint8Array; @@ -54807,7 +57935,7 @@ export namespace Tokens { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Tokens.Position; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Tokens.Position; /** * Decodes a Position message from the specified reader or buffer, length delimited. @@ -54816,14 +57944,14 @@ export namespace Tokens { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Tokens.Position; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Tokens.Position; /** * Verifies a Position message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a Position message from a plain object. Also converts values to their respective internal types. @@ -54856,14 +57984,12 @@ export namespace Tokens { /** Properties of a LocationL. */ interface ILocationL { - /** LocationL id */ - id?: (number|Long|null); + id?: number | Long | null; } /** Represents a LocationL. */ class LocationL implements ILocationL { - /** * Constructs a new LocationL. * @param [properties] Properties to set @@ -54871,7 +57997,7 @@ export namespace Tokens { constructor(properties?: Tokens.ILocationL); /** LocationL id. */ - public id: (number|Long); + public id: number | Long; /** * Creates a new LocationL instance using the specified properties. @@ -54904,7 +58030,7 @@ export namespace Tokens { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Tokens.LocationL; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Tokens.LocationL; /** * Decodes a LocationL message from the specified reader or buffer, length delimited. @@ -54913,14 +58039,14 @@ export namespace Tokens { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Tokens.LocationL; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Tokens.LocationL; /** * Verifies a LocationL message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a LocationL message from a plain object. Also converts values to their respective internal types. @@ -54953,17 +58079,15 @@ export namespace Tokens { /** Properties of a LocationLL. */ interface ILocationLL { - /** LocationLL id1 */ - id1?: (number|Long|null); + id1?: number | Long | null; /** LocationLL id2 */ - id2?: (number|Long|null); + id2?: number | Long | null; } /** Represents a LocationLL. */ class LocationLL implements ILocationLL { - /** * Constructs a new LocationLL. * @param [properties] Properties to set @@ -54971,10 +58095,10 @@ export namespace Tokens { constructor(properties?: Tokens.ILocationLL); /** LocationLL id1. */ - public id1: (number|Long); + public id1: number | Long; /** LocationLL id2. */ - public id2: (number|Long); + public id2: number | Long; /** * Creates a new LocationLL instance using the specified properties. @@ -55007,7 +58131,7 @@ export namespace Tokens { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Tokens.LocationLL; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Tokens.LocationLL; /** * Decodes a LocationLL message from the specified reader or buffer, length delimited. @@ -55016,14 +58140,14 @@ export namespace Tokens { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Tokens.LocationLL; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Tokens.LocationLL; /** * Verifies a LocationLL message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a LocationLL message from a plain object. Also converts values to their respective internal types. @@ -55038,7 +58162,10 @@ export namespace Tokens { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Tokens.LocationLL, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Tokens.LocationLL, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this LocationLL to JSON. @@ -55056,17 +58183,15 @@ export namespace Tokens { /** Properties of a LocationLI. */ interface ILocationLI { - /** LocationLI id1 */ - id1?: (number|Long|null); + id1?: number | Long | null; /** LocationLI id2 */ - id2?: (number|null); + id2?: number | null; } /** Represents a LocationLI. */ class LocationLI implements ILocationLI { - /** * Constructs a new LocationLI. * @param [properties] Properties to set @@ -55074,7 +58199,7 @@ export namespace Tokens { constructor(properties?: Tokens.ILocationLI); /** LocationLI id1. */ - public id1: (number|Long); + public id1: number | Long; /** LocationLI id2. */ public id2: number; @@ -55110,7 +58235,7 @@ export namespace Tokens { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Tokens.LocationLI; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Tokens.LocationLI; /** * Decodes a LocationLI message from the specified reader or buffer, length delimited. @@ -55119,14 +58244,14 @@ export namespace Tokens { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Tokens.LocationLI; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Tokens.LocationLI; /** * Verifies a LocationLI message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a LocationLI message from a plain object. Also converts values to their respective internal types. @@ -55141,7 +58266,10 @@ export namespace Tokens { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Tokens.LocationLI, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Tokens.LocationLI, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this LocationLI to JSON. @@ -55159,17 +58287,15 @@ export namespace Tokens { /** Properties of a LocationII. */ interface ILocationII { - /** LocationII id1 */ - id1?: (number|null); + id1?: number | null; /** LocationII id2 */ - id2?: (number|null); + id2?: number | null; } /** Represents a LocationII. */ class LocationII implements ILocationII { - /** * Constructs a new LocationII. * @param [properties] Properties to set @@ -55213,7 +58339,7 @@ export namespace Tokens { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Tokens.LocationII; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Tokens.LocationII; /** * Decodes a LocationII message from the specified reader or buffer, length delimited. @@ -55222,14 +58348,14 @@ export namespace Tokens { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Tokens.LocationII; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Tokens.LocationII; /** * Verifies a LocationII message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a LocationII message from a plain object. Also converts values to their respective internal types. @@ -55244,7 +58370,10 @@ export namespace Tokens { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Tokens.LocationII, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Tokens.LocationII, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this LocationII to JSON. @@ -55262,14 +58391,12 @@ export namespace Tokens { /** Properties of a LocationB. */ interface ILocationB { - /** LocationB uid */ - uid?: (Uint8Array|null); + uid?: Uint8Array | null; } /** Represents a LocationB. */ class LocationB implements ILocationB { - /** * Constructs a new LocationB. * @param [properties] Properties to set @@ -55310,7 +58437,7 @@ export namespace Tokens { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Tokens.LocationB; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Tokens.LocationB; /** * Decodes a LocationB message from the specified reader or buffer, length delimited. @@ -55319,14 +58446,14 @@ export namespace Tokens { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Tokens.LocationB; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Tokens.LocationB; /** * Verifies a LocationB message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a LocationB message from a plain object. Also converts values to their respective internal types. @@ -55359,17 +58486,15 @@ export namespace Tokens { /** Properties of a LocationLB. */ interface ILocationLB { - /** LocationLB id */ - id?: (number|Long|null); + id?: number | Long | null; /** LocationLB uid */ - uid?: (Uint8Array|null); + uid?: Uint8Array | null; } /** Represents a LocationLB. */ class LocationLB implements ILocationLB { - /** * Constructs a new LocationLB. * @param [properties] Properties to set @@ -55377,7 +58502,7 @@ export namespace Tokens { constructor(properties?: Tokens.ILocationLB); /** LocationLB id. */ - public id: (number|Long); + public id: number | Long; /** LocationLB uid. */ public uid: Uint8Array; @@ -55413,7 +58538,7 @@ export namespace Tokens { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Tokens.LocationLB; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Tokens.LocationLB; /** * Decodes a LocationLB message from the specified reader or buffer, length delimited. @@ -55422,14 +58547,14 @@ export namespace Tokens { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Tokens.LocationLB; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Tokens.LocationLB; /** * Verifies a LocationLB message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a LocationLB message from a plain object. Also converts values to their respective internal types. @@ -55444,7 +58569,10 @@ export namespace Tokens { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Tokens.LocationLB, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Tokens.LocationLB, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this LocationLB to JSON. @@ -55462,17 +58590,15 @@ export namespace Tokens { /** Properties of a LocationBI. */ interface ILocationBI { - /** LocationBI uid */ - uid?: (Uint8Array|null); + uid?: Uint8Array | null; /** LocationBI id */ - id?: (number|null); + id?: number | null; } /** Represents a LocationBI. */ class LocationBI implements ILocationBI { - /** * Constructs a new LocationBI. * @param [properties] Properties to set @@ -55516,7 +58642,7 @@ export namespace Tokens { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Tokens.LocationBI; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Tokens.LocationBI; /** * Decodes a LocationBI message from the specified reader or buffer, length delimited. @@ -55525,14 +58651,14 @@ export namespace Tokens { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Tokens.LocationBI; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Tokens.LocationBI; /** * Verifies a LocationBI message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a LocationBI message from a plain object. Also converts values to their respective internal types. @@ -55547,7 +58673,10 @@ export namespace Tokens { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Tokens.LocationBI, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Tokens.LocationBI, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this LocationBI to JSON. @@ -55565,17 +58694,15 @@ export namespace Tokens { /** Properties of a LocationLS. */ interface ILocationLS { - /** LocationLS id1 */ - id1?: (number|Long|null); + id1?: number | Long | null; /** LocationLS str */ - str?: (string|null); + str?: string | null; } /** Represents a LocationLS. */ class LocationLS implements ILocationLS { - /** * Constructs a new LocationLS. * @param [properties] Properties to set @@ -55583,7 +58710,7 @@ export namespace Tokens { constructor(properties?: Tokens.ILocationLS); /** LocationLS id1. */ - public id1: (number|Long); + public id1: number | Long; /** LocationLS str. */ public str: string; @@ -55619,7 +58746,7 @@ export namespace Tokens { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Tokens.LocationLS; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Tokens.LocationLS; /** * Decodes a LocationLS message from the specified reader or buffer, length delimited. @@ -55628,14 +58755,14 @@ export namespace Tokens { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Tokens.LocationLS; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Tokens.LocationLS; /** * Verifies a LocationLS message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a LocationLS message from a plain object. Also converts values to their respective internal types. @@ -55650,7 +58777,10 @@ export namespace Tokens { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Tokens.LocationLS, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Tokens.LocationLS, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this LocationLS to JSON. @@ -55668,20 +58798,18 @@ export namespace Tokens { /** Properties of an EnterpriseDataRoleTeamsPageToken. */ interface IEnterpriseDataRoleTeamsPageToken { - /** EnterpriseDataRoleTeamsPageToken lastNodeId */ - lastNodeId?: (number|Long|null); + lastNodeId?: number | Long | null; /** EnterpriseDataRoleTeamsPageToken lastRoleId */ - lastRoleId?: (number|Long|null); + lastRoleId?: number | Long | null; /** EnterpriseDataRoleTeamsPageToken lastTeamUid */ - lastTeamUid?: (Uint8Array|null); + lastTeamUid?: Uint8Array | null; } /** Represents an EnterpriseDataRoleTeamsPageToken. */ class EnterpriseDataRoleTeamsPageToken implements IEnterpriseDataRoleTeamsPageToken { - /** * Constructs a new EnterpriseDataRoleTeamsPageToken. * @param [properties] Properties to set @@ -55689,10 +58817,10 @@ export namespace Tokens { constructor(properties?: Tokens.IEnterpriseDataRoleTeamsPageToken); /** EnterpriseDataRoleTeamsPageToken lastNodeId. */ - public lastNodeId: (number|Long); + public lastNodeId: number | Long; /** EnterpriseDataRoleTeamsPageToken lastRoleId. */ - public lastRoleId: (number|Long); + public lastRoleId: number | Long; /** EnterpriseDataRoleTeamsPageToken lastTeamUid. */ public lastTeamUid: Uint8Array; @@ -55702,7 +58830,9 @@ export namespace Tokens { * @param [properties] Properties to set * @returns EnterpriseDataRoleTeamsPageToken instance */ - public static create(properties?: Tokens.IEnterpriseDataRoleTeamsPageToken): Tokens.EnterpriseDataRoleTeamsPageToken; + public static create( + properties?: Tokens.IEnterpriseDataRoleTeamsPageToken + ): Tokens.EnterpriseDataRoleTeamsPageToken; /** * Encodes the specified EnterpriseDataRoleTeamsPageToken message. Does not implicitly {@link Tokens.EnterpriseDataRoleTeamsPageToken.verify|verify} messages. @@ -55710,7 +58840,10 @@ export namespace Tokens { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Tokens.IEnterpriseDataRoleTeamsPageToken, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Tokens.IEnterpriseDataRoleTeamsPageToken, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified EnterpriseDataRoleTeamsPageToken message, length delimited. Does not implicitly {@link Tokens.EnterpriseDataRoleTeamsPageToken.verify|verify} messages. @@ -55718,7 +58851,10 @@ export namespace Tokens { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Tokens.IEnterpriseDataRoleTeamsPageToken, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Tokens.IEnterpriseDataRoleTeamsPageToken, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes an EnterpriseDataRoleTeamsPageToken message from the specified reader or buffer. @@ -55728,7 +58864,10 @@ export namespace Tokens { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Tokens.EnterpriseDataRoleTeamsPageToken; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Tokens.EnterpriseDataRoleTeamsPageToken; /** * Decodes an EnterpriseDataRoleTeamsPageToken message from the specified reader or buffer, length delimited. @@ -55737,14 +58876,14 @@ export namespace Tokens { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Tokens.EnterpriseDataRoleTeamsPageToken; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Tokens.EnterpriseDataRoleTeamsPageToken; /** * Verifies an EnterpriseDataRoleTeamsPageToken message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an EnterpriseDataRoleTeamsPageToken message from a plain object. Also converts values to their respective internal types. @@ -55759,7 +58898,10 @@ export namespace Tokens { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Tokens.EnterpriseDataRoleTeamsPageToken, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Tokens.EnterpriseDataRoleTeamsPageToken, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this EnterpriseDataRoleTeamsPageToken to JSON. @@ -55777,17 +58919,15 @@ export namespace Tokens { /** Properties of an EnterpriseDataTeamsPageToken. */ interface IEnterpriseDataTeamsPageToken { - /** EnterpriseDataTeamsPageToken lastNodeId */ - lastNodeId?: (number|Long|null); + lastNodeId?: number | Long | null; /** EnterpriseDataTeamsPageToken lastTeamUid */ - lastTeamUid?: (Uint8Array|null); + lastTeamUid?: Uint8Array | null; } /** Represents an EnterpriseDataTeamsPageToken. */ class EnterpriseDataTeamsPageToken implements IEnterpriseDataTeamsPageToken { - /** * Constructs a new EnterpriseDataTeamsPageToken. * @param [properties] Properties to set @@ -55795,7 +58935,7 @@ export namespace Tokens { constructor(properties?: Tokens.IEnterpriseDataTeamsPageToken); /** EnterpriseDataTeamsPageToken lastNodeId. */ - public lastNodeId: (number|Long); + public lastNodeId: number | Long; /** EnterpriseDataTeamsPageToken lastTeamUid. */ public lastTeamUid: Uint8Array; @@ -55813,7 +58953,10 @@ export namespace Tokens { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Tokens.IEnterpriseDataTeamsPageToken, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Tokens.IEnterpriseDataTeamsPageToken, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified EnterpriseDataTeamsPageToken message, length delimited. Does not implicitly {@link Tokens.EnterpriseDataTeamsPageToken.verify|verify} messages. @@ -55821,7 +58964,10 @@ export namespace Tokens { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Tokens.IEnterpriseDataTeamsPageToken, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Tokens.IEnterpriseDataTeamsPageToken, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes an EnterpriseDataTeamsPageToken message from the specified reader or buffer. @@ -55831,7 +58977,10 @@ export namespace Tokens { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Tokens.EnterpriseDataTeamsPageToken; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Tokens.EnterpriseDataTeamsPageToken; /** * Decodes an EnterpriseDataTeamsPageToken message from the specified reader or buffer, length delimited. @@ -55840,14 +58989,14 @@ export namespace Tokens { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Tokens.EnterpriseDataTeamsPageToken; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Tokens.EnterpriseDataTeamsPageToken; /** * Verifies an EnterpriseDataTeamsPageToken message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an EnterpriseDataTeamsPageToken message from a plain object. Also converts values to their respective internal types. @@ -55862,7 +59011,10 @@ export namespace Tokens { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Tokens.EnterpriseDataTeamsPageToken, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Tokens.EnterpriseDataTeamsPageToken, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this EnterpriseDataTeamsPageToken to JSON. @@ -55880,20 +59032,18 @@ export namespace Tokens { /** Properties of an EnterpriseDataTeamUsersPageToken. */ interface IEnterpriseDataTeamUsersPageToken { - /** EnterpriseDataTeamUsersPageToken lastNodeId */ - lastNodeId?: (number|Long|null); + lastNodeId?: number | Long | null; /** EnterpriseDataTeamUsersPageToken lastTeamUid */ - lastTeamUid?: (Uint8Array|null); + lastTeamUid?: Uint8Array | null; /** EnterpriseDataTeamUsersPageToken userId */ - userId?: (number|null); + userId?: number | null; } /** Represents an EnterpriseDataTeamUsersPageToken. */ class EnterpriseDataTeamUsersPageToken implements IEnterpriseDataTeamUsersPageToken { - /** * Constructs a new EnterpriseDataTeamUsersPageToken. * @param [properties] Properties to set @@ -55901,7 +59051,7 @@ export namespace Tokens { constructor(properties?: Tokens.IEnterpriseDataTeamUsersPageToken); /** EnterpriseDataTeamUsersPageToken lastNodeId. */ - public lastNodeId: (number|Long); + public lastNodeId: number | Long; /** EnterpriseDataTeamUsersPageToken lastTeamUid. */ public lastTeamUid: Uint8Array; @@ -55914,7 +59064,9 @@ export namespace Tokens { * @param [properties] Properties to set * @returns EnterpriseDataTeamUsersPageToken instance */ - public static create(properties?: Tokens.IEnterpriseDataTeamUsersPageToken): Tokens.EnterpriseDataTeamUsersPageToken; + public static create( + properties?: Tokens.IEnterpriseDataTeamUsersPageToken + ): Tokens.EnterpriseDataTeamUsersPageToken; /** * Encodes the specified EnterpriseDataTeamUsersPageToken message. Does not implicitly {@link Tokens.EnterpriseDataTeamUsersPageToken.verify|verify} messages. @@ -55922,7 +59074,10 @@ export namespace Tokens { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Tokens.IEnterpriseDataTeamUsersPageToken, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Tokens.IEnterpriseDataTeamUsersPageToken, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified EnterpriseDataTeamUsersPageToken message, length delimited. Does not implicitly {@link Tokens.EnterpriseDataTeamUsersPageToken.verify|verify} messages. @@ -55930,7 +59085,10 @@ export namespace Tokens { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Tokens.IEnterpriseDataTeamUsersPageToken, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Tokens.IEnterpriseDataTeamUsersPageToken, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes an EnterpriseDataTeamUsersPageToken message from the specified reader or buffer. @@ -55940,7 +59098,10 @@ export namespace Tokens { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Tokens.EnterpriseDataTeamUsersPageToken; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Tokens.EnterpriseDataTeamUsersPageToken; /** * Decodes an EnterpriseDataTeamUsersPageToken message from the specified reader or buffer, length delimited. @@ -55949,14 +59110,14 @@ export namespace Tokens { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Tokens.EnterpriseDataTeamUsersPageToken; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Tokens.EnterpriseDataTeamUsersPageToken; /** * Verifies an EnterpriseDataTeamUsersPageToken message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an EnterpriseDataTeamUsersPageToken message from a plain object. Also converts values to their respective internal types. @@ -55971,7 +59132,10 @@ export namespace Tokens { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Tokens.EnterpriseDataTeamUsersPageToken, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Tokens.EnterpriseDataTeamUsersPageToken, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this EnterpriseDataTeamUsersPageToken to JSON. @@ -55992,28 +59156,26 @@ export namespace Tokens { EBS_USERS = 0, EBS_RECORDS_1 = 1, EBS_RECORDS_2 = 2, - EBS_COMPLETE = 3 + EBS_COMPLETE = 3, } /** Properties of an EnterpriseBackupUnlockPair. */ interface IEnterpriseBackupUnlockPair { - /** EnterpriseBackupUnlockPair user1Id */ - user1Id?: (number|null); + user1Id?: number | null; /** EnterpriseBackupUnlockPair user2Id */ - user2Id?: (number|null); + user2Id?: number | null; /** EnterpriseBackupUnlockPair user1Key */ - user1Key?: (Uint8Array|null); + user1Key?: Uint8Array | null; /** EnterpriseBackupUnlockPair user2Key */ - user2Key?: (Uint8Array|null); + user2Key?: Uint8Array | null; } /** Represents an EnterpriseBackupUnlockPair. */ class EnterpriseBackupUnlockPair implements IEnterpriseBackupUnlockPair { - /** * Constructs a new EnterpriseBackupUnlockPair. * @param [properties] Properties to set @@ -56053,7 +59215,10 @@ export namespace Tokens { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Tokens.IEnterpriseBackupUnlockPair, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Tokens.IEnterpriseBackupUnlockPair, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes an EnterpriseBackupUnlockPair message from the specified reader or buffer. @@ -56063,7 +59228,7 @@ export namespace Tokens { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Tokens.EnterpriseBackupUnlockPair; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Tokens.EnterpriseBackupUnlockPair; /** * Decodes an EnterpriseBackupUnlockPair message from the specified reader or buffer, length delimited. @@ -56072,14 +59237,14 @@ export namespace Tokens { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Tokens.EnterpriseBackupUnlockPair; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Tokens.EnterpriseBackupUnlockPair; /** * Verifies an EnterpriseBackupUnlockPair message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an EnterpriseBackupUnlockPair message from a plain object. Also converts values to their respective internal types. @@ -56094,7 +59259,10 @@ export namespace Tokens { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Tokens.EnterpriseBackupUnlockPair, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Tokens.EnterpriseBackupUnlockPair, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this EnterpriseBackupUnlockPair to JSON. @@ -56112,26 +59280,24 @@ export namespace Tokens { /** Properties of an EnterpriseBackupContinuationToken. */ interface IEnterpriseBackupContinuationToken { - /** EnterpriseBackupContinuationToken backupKey */ - backupKey?: (Uint8Array|null); + backupKey?: Uint8Array | null; /** EnterpriseBackupContinuationToken unlockPairs */ - unlockPairs?: (Tokens.IEnterpriseBackupUnlockPair[]|null); + unlockPairs?: Tokens.IEnterpriseBackupUnlockPair[] | null; /** EnterpriseBackupContinuationToken backupStage */ - backupStage?: (Tokens.EnterpriseBackupStage|null); + backupStage?: Tokens.EnterpriseBackupStage | null; /** EnterpriseBackupContinuationToken startUser */ - startUser?: (number|Long|null); + startUser?: number | Long | null; /** EnterpriseBackupContinuationToken startRecord */ - startRecord?: (Uint8Array|null); + startRecord?: Uint8Array | null; } /** Represents an EnterpriseBackupContinuationToken. */ class EnterpriseBackupContinuationToken implements IEnterpriseBackupContinuationToken { - /** * Constructs a new EnterpriseBackupContinuationToken. * @param [properties] Properties to set @@ -56148,7 +59314,7 @@ export namespace Tokens { public backupStage: Tokens.EnterpriseBackupStage; /** EnterpriseBackupContinuationToken startUser. */ - public startUser: (number|Long); + public startUser: number | Long; /** EnterpriseBackupContinuationToken startRecord. */ public startRecord: Uint8Array; @@ -56158,7 +59324,9 @@ export namespace Tokens { * @param [properties] Properties to set * @returns EnterpriseBackupContinuationToken instance */ - public static create(properties?: Tokens.IEnterpriseBackupContinuationToken): Tokens.EnterpriseBackupContinuationToken; + public static create( + properties?: Tokens.IEnterpriseBackupContinuationToken + ): Tokens.EnterpriseBackupContinuationToken; /** * Encodes the specified EnterpriseBackupContinuationToken message. Does not implicitly {@link Tokens.EnterpriseBackupContinuationToken.verify|verify} messages. @@ -56166,7 +59334,10 @@ export namespace Tokens { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Tokens.IEnterpriseBackupContinuationToken, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Tokens.IEnterpriseBackupContinuationToken, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified EnterpriseBackupContinuationToken message, length delimited. Does not implicitly {@link Tokens.EnterpriseBackupContinuationToken.verify|verify} messages. @@ -56174,7 +59345,10 @@ export namespace Tokens { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Tokens.IEnterpriseBackupContinuationToken, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Tokens.IEnterpriseBackupContinuationToken, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes an EnterpriseBackupContinuationToken message from the specified reader or buffer. @@ -56184,7 +59358,10 @@ export namespace Tokens { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Tokens.EnterpriseBackupContinuationToken; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Tokens.EnterpriseBackupContinuationToken; /** * Decodes an EnterpriseBackupContinuationToken message from the specified reader or buffer, length delimited. @@ -56193,14 +59370,14 @@ export namespace Tokens { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Tokens.EnterpriseBackupContinuationToken; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Tokens.EnterpriseBackupContinuationToken; /** * Verifies an EnterpriseBackupContinuationToken message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an EnterpriseBackupContinuationToken message from a plain object. Also converts values to their respective internal types. @@ -56215,7 +59392,10 @@ export namespace Tokens { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Tokens.EnterpriseBackupContinuationToken, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Tokens.EnterpriseBackupContinuationToken, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this EnterpriseBackupContinuationToken to JSON. @@ -56233,23 +59413,21 @@ export namespace Tokens { /** Properties of a VerificationToken. */ interface IVerificationToken { - /** VerificationToken accountUid */ - accountUid?: (Uint8Array|null); + accountUid?: Uint8Array | null; /** VerificationToken username */ - username?: (string|null); + username?: string | null; /** VerificationToken regionId */ - regionId?: (number|null); + regionId?: number | null; /** VerificationToken creation */ - creation?: (number|Long|null); + creation?: number | Long | null; } /** Represents a VerificationToken. */ class VerificationToken implements IVerificationToken { - /** * Constructs a new VerificationToken. * @param [properties] Properties to set @@ -56266,7 +59444,7 @@ export namespace Tokens { public regionId: number; /** VerificationToken creation. */ - public creation: (number|Long); + public creation: number | Long; /** * Creates a new VerificationToken instance using the specified properties. @@ -56299,7 +59477,7 @@ export namespace Tokens { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Tokens.VerificationToken; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Tokens.VerificationToken; /** * Decodes a VerificationToken message from the specified reader or buffer, length delimited. @@ -56308,14 +59486,14 @@ export namespace Tokens { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Tokens.VerificationToken; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Tokens.VerificationToken; /** * Verifies a VerificationToken message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a VerificationToken message from a plain object. Also converts values to their respective internal types. @@ -56330,7 +59508,10 @@ export namespace Tokens { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Tokens.VerificationToken, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Tokens.VerificationToken, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this VerificationToken to JSON. @@ -56348,17 +59529,15 @@ export namespace Tokens { /** Properties of a ComplianceDataContinuationToken. */ interface IComplianceDataContinuationToken { - /** ComplianceDataContinuationToken enterpriseUserId */ - enterpriseUserId?: (number|Long|null); + enterpriseUserId?: number | Long | null; /** ComplianceDataContinuationToken recordUid */ - recordUid?: (Uint8Array|null); + recordUid?: Uint8Array | null; } /** Represents a ComplianceDataContinuationToken. */ class ComplianceDataContinuationToken implements IComplianceDataContinuationToken { - /** * Constructs a new ComplianceDataContinuationToken. * @param [properties] Properties to set @@ -56366,7 +59545,7 @@ export namespace Tokens { constructor(properties?: Tokens.IComplianceDataContinuationToken); /** ComplianceDataContinuationToken enterpriseUserId. */ - public enterpriseUserId: (number|Long); + public enterpriseUserId: number | Long; /** ComplianceDataContinuationToken recordUid. */ public recordUid: Uint8Array; @@ -56376,7 +59555,9 @@ export namespace Tokens { * @param [properties] Properties to set * @returns ComplianceDataContinuationToken instance */ - public static create(properties?: Tokens.IComplianceDataContinuationToken): Tokens.ComplianceDataContinuationToken; + public static create( + properties?: Tokens.IComplianceDataContinuationToken + ): Tokens.ComplianceDataContinuationToken; /** * Encodes the specified ComplianceDataContinuationToken message. Does not implicitly {@link Tokens.ComplianceDataContinuationToken.verify|verify} messages. @@ -56384,7 +59565,10 @@ export namespace Tokens { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Tokens.IComplianceDataContinuationToken, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Tokens.IComplianceDataContinuationToken, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified ComplianceDataContinuationToken message, length delimited. Does not implicitly {@link Tokens.ComplianceDataContinuationToken.verify|verify} messages. @@ -56392,7 +59576,10 @@ export namespace Tokens { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Tokens.IComplianceDataContinuationToken, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Tokens.IComplianceDataContinuationToken, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a ComplianceDataContinuationToken message from the specified reader or buffer. @@ -56402,7 +59589,10 @@ export namespace Tokens { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Tokens.ComplianceDataContinuationToken; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Tokens.ComplianceDataContinuationToken; /** * Decodes a ComplianceDataContinuationToken message from the specified reader or buffer, length delimited. @@ -56411,14 +59601,14 @@ export namespace Tokens { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Tokens.ComplianceDataContinuationToken; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Tokens.ComplianceDataContinuationToken; /** * Verifies a ComplianceDataContinuationToken message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a ComplianceDataContinuationToken message from a plain object. Also converts values to their respective internal types. @@ -56433,7 +59623,10 @@ export namespace Tokens { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Tokens.ComplianceDataContinuationToken, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Tokens.ComplianceDataContinuationToken, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this ComplianceDataContinuationToken to JSON. @@ -56451,50 +59644,48 @@ export namespace Tokens { /** Properties of a VaultSyncDownContinuationToken. */ interface IVaultSyncDownContinuationToken { - /** VaultSyncDownContinuationToken tokenVersion */ - tokenVersion?: (number|null); + tokenVersion?: number | null; /** VaultSyncDownContinuationToken syncedToSyncOrder */ - syncedToSyncOrder?: (number|Long|null); + syncedToSyncOrder?: number | Long | null; /** VaultSyncDownContinuationToken syncingToSyncOrder */ - syncingToSyncOrder?: (number|Long|null); + syncingToSyncOrder?: number | Long | null; /** VaultSyncDownContinuationToken tokenGenerated */ - tokenGenerated?: (number|null); + tokenGenerated?: number | null; /** VaultSyncDownContinuationToken lastFullSyncCompleted */ - lastFullSyncCompleted?: (number|null); + lastFullSyncCompleted?: number | null; /** VaultSyncDownContinuationToken locations */ - locations?: (Tokens.IVaultSyncDownLocations|null); + locations?: Tokens.IVaultSyncDownLocations | null; /** VaultSyncDownContinuationToken checkForAuditData */ - checkForAuditData?: (boolean|null); + checkForAuditData?: boolean | null; /** VaultSyncDownContinuationToken clientVersion */ - clientVersion?: (number|null); + clientVersion?: number | null; /** VaultSyncDownContinuationToken clientDataVersion */ - clientDataVersion?: (number|null); + clientDataVersion?: number | null; /** VaultSyncDownContinuationToken noRemovedSharedFoldersWithTeamAccess */ - noRemovedSharedFoldersWithTeamAccess?: (boolean|null); + noRemovedSharedFoldersWithTeamAccess?: boolean | null; /** VaultSyncDownContinuationToken notificationSyncPoint */ - notificationSyncPoint?: (number|Long|null); + notificationSyncPoint?: number | Long | null; /** VaultSyncDownContinuationToken skipUserRevision */ - skipUserRevision?: (boolean|null); + skipUserRevision?: boolean | null; /** VaultSyncDownContinuationToken multiPageIncrementalClientVersion */ - multiPageIncrementalClientVersion?: (number|null); + multiPageIncrementalClientVersion?: number | null; } /** Represents a VaultSyncDownContinuationToken. */ class VaultSyncDownContinuationToken implements IVaultSyncDownContinuationToken { - /** * Constructs a new VaultSyncDownContinuationToken. * @param [properties] Properties to set @@ -56505,10 +59696,10 @@ export namespace Tokens { public tokenVersion: number; /** VaultSyncDownContinuationToken syncedToSyncOrder. */ - public syncedToSyncOrder: (number|Long); + public syncedToSyncOrder: number | Long; /** VaultSyncDownContinuationToken syncingToSyncOrder. */ - public syncingToSyncOrder: (number|Long); + public syncingToSyncOrder: number | Long; /** VaultSyncDownContinuationToken tokenGenerated. */ public tokenGenerated: number; @@ -56517,7 +59708,7 @@ export namespace Tokens { public lastFullSyncCompleted: number; /** VaultSyncDownContinuationToken locations. */ - public locations?: (Tokens.IVaultSyncDownLocations|null); + public locations?: Tokens.IVaultSyncDownLocations | null; /** VaultSyncDownContinuationToken checkForAuditData. */ public checkForAuditData: boolean; @@ -56532,7 +59723,7 @@ export namespace Tokens { public noRemovedSharedFoldersWithTeamAccess: boolean; /** VaultSyncDownContinuationToken notificationSyncPoint. */ - public notificationSyncPoint: (number|Long); + public notificationSyncPoint: number | Long; /** VaultSyncDownContinuationToken skipUserRevision. */ public skipUserRevision: boolean; @@ -56545,7 +59736,9 @@ export namespace Tokens { * @param [properties] Properties to set * @returns VaultSyncDownContinuationToken instance */ - public static create(properties?: Tokens.IVaultSyncDownContinuationToken): Tokens.VaultSyncDownContinuationToken; + public static create( + properties?: Tokens.IVaultSyncDownContinuationToken + ): Tokens.VaultSyncDownContinuationToken; /** * Encodes the specified VaultSyncDownContinuationToken message. Does not implicitly {@link Tokens.VaultSyncDownContinuationToken.verify|verify} messages. @@ -56553,7 +59746,10 @@ export namespace Tokens { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Tokens.IVaultSyncDownContinuationToken, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Tokens.IVaultSyncDownContinuationToken, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified VaultSyncDownContinuationToken message, length delimited. Does not implicitly {@link Tokens.VaultSyncDownContinuationToken.verify|verify} messages. @@ -56561,7 +59757,10 @@ export namespace Tokens { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Tokens.IVaultSyncDownContinuationToken, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Tokens.IVaultSyncDownContinuationToken, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a VaultSyncDownContinuationToken message from the specified reader or buffer. @@ -56571,7 +59770,10 @@ export namespace Tokens { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Tokens.VaultSyncDownContinuationToken; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Tokens.VaultSyncDownContinuationToken; /** * Decodes a VaultSyncDownContinuationToken message from the specified reader or buffer, length delimited. @@ -56580,14 +59782,14 @@ export namespace Tokens { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Tokens.VaultSyncDownContinuationToken; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Tokens.VaultSyncDownContinuationToken; /** * Verifies a VaultSyncDownContinuationToken message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a VaultSyncDownContinuationToken message from a plain object. Also converts values to their respective internal types. @@ -56602,7 +59804,10 @@ export namespace Tokens { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Tokens.VaultSyncDownContinuationToken, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Tokens.VaultSyncDownContinuationToken, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this VaultSyncDownContinuationToken to JSON. @@ -56620,59 +59825,57 @@ export namespace Tokens { /** Properties of a VaultSyncDownLocations. */ interface IVaultSyncDownLocations { - /** VaultSyncDownLocations vaultDataEntity */ - vaultDataEntity?: (number|null); + vaultDataEntity?: number | null; /** VaultSyncDownLocations recordLocation */ - recordLocation?: (Tokens.IRecordLocation|null); + recordLocation?: Tokens.IRecordLocation | null; /** VaultSyncDownLocations recordLinkLocation */ - recordLinkLocation?: (Tokens.IRecordLinkLocation|null); + recordLinkLocation?: Tokens.IRecordLinkLocation | null; /** VaultSyncDownLocations folderLocation */ - folderLocation?: (Tokens.IFolderLocation|null); + folderLocation?: Tokens.IFolderLocation | null; /** VaultSyncDownLocations folderRecordLocation */ - folderRecordLocation?: (Tokens.IFolderRecordLocation|null); + folderRecordLocation?: Tokens.IFolderRecordLocation | null; /** VaultSyncDownLocations folderSharedFolderLocation */ - folderSharedFolderLocation?: (Tokens.IFolderSharedFolderLocation|null); + folderSharedFolderLocation?: Tokens.IFolderSharedFolderLocation | null; /** VaultSyncDownLocations sharedFolderLocation */ - sharedFolderLocation?: (Tokens.ISharedFolderLocation|null); + sharedFolderLocation?: Tokens.ISharedFolderLocation | null; /** VaultSyncDownLocations sharedFolderRecordLocation */ - sharedFolderRecordLocation?: (Tokens.ISharedFolderRecordLocation|null); + sharedFolderRecordLocation?: Tokens.ISharedFolderRecordLocation | null; /** VaultSyncDownLocations sharedFolderTeamLocation */ - sharedFolderTeamLocation?: (Tokens.ISharedFolderTeamLocation|null); + sharedFolderTeamLocation?: Tokens.ISharedFolderTeamLocation | null; /** VaultSyncDownLocations sharedFolderUserLocation */ - sharedFolderUserLocation?: (Tokens.ISharedFolderUserLocation|null); + sharedFolderUserLocation?: Tokens.ISharedFolderUserLocation | null; /** VaultSyncDownLocations shareInvitationLocation */ - shareInvitationLocation?: (Tokens.IShareInvitationLocation|null); + shareInvitationLocation?: Tokens.IShareInvitationLocation | null; /** VaultSyncDownLocations teamLocation */ - teamLocation?: (Tokens.ITeamLocation|null); + teamLocation?: Tokens.ITeamLocation | null; /** VaultSyncDownLocations userAuthHashLocation */ - userAuthHashLocation?: (Tokens.IUserAuthHashLocation|null); + userAuthHashLocation?: Tokens.IUserAuthHashLocation | null; /** VaultSyncDownLocations ksmLocation */ - ksmLocation?: (Tokens.IKsmLocation|null); + ksmLocation?: Tokens.IKsmLocation | null; /** VaultSyncDownLocations sharedFolderFolderRecordLocation */ - sharedFolderFolderRecordLocation?: (Tokens.ISharedFolderFolderRecordLocation|null); + sharedFolderFolderRecordLocation?: Tokens.ISharedFolderFolderRecordLocation | null; /** VaultSyncDownLocations userLocation */ - userLocation?: (Tokens.IUserLocation|null); + userLocation?: Tokens.IUserLocation | null; } /** Represents a VaultSyncDownLocations. */ class VaultSyncDownLocations implements IVaultSyncDownLocations { - /** * Constructs a new VaultSyncDownLocations. * @param [properties] Properties to set @@ -56683,49 +59886,49 @@ export namespace Tokens { public vaultDataEntity: number; /** VaultSyncDownLocations recordLocation. */ - public recordLocation?: (Tokens.IRecordLocation|null); + public recordLocation?: Tokens.IRecordLocation | null; /** VaultSyncDownLocations recordLinkLocation. */ - public recordLinkLocation?: (Tokens.IRecordLinkLocation|null); + public recordLinkLocation?: Tokens.IRecordLinkLocation | null; /** VaultSyncDownLocations folderLocation. */ - public folderLocation?: (Tokens.IFolderLocation|null); + public folderLocation?: Tokens.IFolderLocation | null; /** VaultSyncDownLocations folderRecordLocation. */ - public folderRecordLocation?: (Tokens.IFolderRecordLocation|null); + public folderRecordLocation?: Tokens.IFolderRecordLocation | null; /** VaultSyncDownLocations folderSharedFolderLocation. */ - public folderSharedFolderLocation?: (Tokens.IFolderSharedFolderLocation|null); + public folderSharedFolderLocation?: Tokens.IFolderSharedFolderLocation | null; /** VaultSyncDownLocations sharedFolderLocation. */ - public sharedFolderLocation?: (Tokens.ISharedFolderLocation|null); + public sharedFolderLocation?: Tokens.ISharedFolderLocation | null; /** VaultSyncDownLocations sharedFolderRecordLocation. */ - public sharedFolderRecordLocation?: (Tokens.ISharedFolderRecordLocation|null); + public sharedFolderRecordLocation?: Tokens.ISharedFolderRecordLocation | null; /** VaultSyncDownLocations sharedFolderTeamLocation. */ - public sharedFolderTeamLocation?: (Tokens.ISharedFolderTeamLocation|null); + public sharedFolderTeamLocation?: Tokens.ISharedFolderTeamLocation | null; /** VaultSyncDownLocations sharedFolderUserLocation. */ - public sharedFolderUserLocation?: (Tokens.ISharedFolderUserLocation|null); + public sharedFolderUserLocation?: Tokens.ISharedFolderUserLocation | null; /** VaultSyncDownLocations shareInvitationLocation. */ - public shareInvitationLocation?: (Tokens.IShareInvitationLocation|null); + public shareInvitationLocation?: Tokens.IShareInvitationLocation | null; /** VaultSyncDownLocations teamLocation. */ - public teamLocation?: (Tokens.ITeamLocation|null); + public teamLocation?: Tokens.ITeamLocation | null; /** VaultSyncDownLocations userAuthHashLocation. */ - public userAuthHashLocation?: (Tokens.IUserAuthHashLocation|null); + public userAuthHashLocation?: Tokens.IUserAuthHashLocation | null; /** VaultSyncDownLocations ksmLocation. */ - public ksmLocation?: (Tokens.IKsmLocation|null); + public ksmLocation?: Tokens.IKsmLocation | null; /** VaultSyncDownLocations sharedFolderFolderRecordLocation. */ - public sharedFolderFolderRecordLocation?: (Tokens.ISharedFolderFolderRecordLocation|null); + public sharedFolderFolderRecordLocation?: Tokens.ISharedFolderFolderRecordLocation | null; /** VaultSyncDownLocations userLocation. */ - public userLocation?: (Tokens.IUserLocation|null); + public userLocation?: Tokens.IUserLocation | null; /** * Creates a new VaultSyncDownLocations instance using the specified properties. @@ -56748,7 +59951,10 @@ export namespace Tokens { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Tokens.IVaultSyncDownLocations, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Tokens.IVaultSyncDownLocations, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a VaultSyncDownLocations message from the specified reader or buffer. @@ -56758,7 +59964,7 @@ export namespace Tokens { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Tokens.VaultSyncDownLocations; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Tokens.VaultSyncDownLocations; /** * Decodes a VaultSyncDownLocations message from the specified reader or buffer, length delimited. @@ -56767,14 +59973,14 @@ export namespace Tokens { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Tokens.VaultSyncDownLocations; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Tokens.VaultSyncDownLocations; /** * Verifies a VaultSyncDownLocations message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a VaultSyncDownLocations message from a plain object. Also converts values to their respective internal types. @@ -56789,7 +59995,10 @@ export namespace Tokens { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Tokens.VaultSyncDownLocations, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Tokens.VaultSyncDownLocations, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this VaultSyncDownLocations to JSON. @@ -56807,17 +60016,15 @@ export namespace Tokens { /** Properties of a RecordLocation. */ interface IRecordLocation { - /** RecordLocation recordUid */ - recordUid?: (Uint8Array|null); + recordUid?: Uint8Array | null; /** RecordLocation lastSyncRevision */ - lastSyncRevision?: (number|Long|null); + lastSyncRevision?: number | Long | null; } /** Represents a RecordLocation. */ class RecordLocation implements IRecordLocation { - /** * Constructs a new RecordLocation. * @param [properties] Properties to set @@ -56828,7 +60035,7 @@ export namespace Tokens { public recordUid: Uint8Array; /** RecordLocation lastSyncRevision. */ - public lastSyncRevision: (number|Long); + public lastSyncRevision: number | Long; /** * Creates a new RecordLocation instance using the specified properties. @@ -56861,7 +60068,7 @@ export namespace Tokens { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Tokens.RecordLocation; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Tokens.RecordLocation; /** * Decodes a RecordLocation message from the specified reader or buffer, length delimited. @@ -56870,14 +60077,14 @@ export namespace Tokens { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Tokens.RecordLocation; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Tokens.RecordLocation; /** * Verifies a RecordLocation message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a RecordLocation message from a plain object. Also converts values to their respective internal types. @@ -56892,7 +60099,10 @@ export namespace Tokens { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Tokens.RecordLocation, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Tokens.RecordLocation, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this RecordLocation to JSON. @@ -56910,17 +60120,15 @@ export namespace Tokens { /** Properties of a FolderLocation. */ interface IFolderLocation { - /** FolderLocation folderUid */ - folderUid?: (Uint8Array|null); + folderUid?: Uint8Array | null; /** FolderLocation lastSyncRevision */ - lastSyncRevision?: (number|Long|null); + lastSyncRevision?: number | Long | null; } /** Represents a FolderLocation. */ class FolderLocation implements IFolderLocation { - /** * Constructs a new FolderLocation. * @param [properties] Properties to set @@ -56931,7 +60139,7 @@ export namespace Tokens { public folderUid: Uint8Array; /** FolderLocation lastSyncRevision. */ - public lastSyncRevision: (number|Long); + public lastSyncRevision: number | Long; /** * Creates a new FolderLocation instance using the specified properties. @@ -56964,7 +60172,7 @@ export namespace Tokens { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Tokens.FolderLocation; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Tokens.FolderLocation; /** * Decodes a FolderLocation message from the specified reader or buffer, length delimited. @@ -56973,14 +60181,14 @@ export namespace Tokens { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Tokens.FolderLocation; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Tokens.FolderLocation; /** * Verifies a FolderLocation message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a FolderLocation message from a plain object. Also converts values to their respective internal types. @@ -56995,7 +60203,10 @@ export namespace Tokens { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Tokens.FolderLocation, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Tokens.FolderLocation, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this FolderLocation to JSON. @@ -57013,17 +60224,15 @@ export namespace Tokens { /** Properties of a SharedFolderLocation. */ interface ISharedFolderLocation { - /** SharedFolderLocation sharedFolderUid */ - sharedFolderUid?: (Uint8Array|null); + sharedFolderUid?: Uint8Array | null; /** SharedFolderLocation lastSyncRevision */ - lastSyncRevision?: (number|Long|null); + lastSyncRevision?: number | Long | null; } /** Represents a SharedFolderLocation. */ class SharedFolderLocation implements ISharedFolderLocation { - /** * Constructs a new SharedFolderLocation. * @param [properties] Properties to set @@ -57034,7 +60243,7 @@ export namespace Tokens { public sharedFolderUid: Uint8Array; /** SharedFolderLocation lastSyncRevision. */ - public lastSyncRevision: (number|Long); + public lastSyncRevision: number | Long; /** * Creates a new SharedFolderLocation instance using the specified properties. @@ -57057,7 +60266,10 @@ export namespace Tokens { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Tokens.ISharedFolderLocation, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Tokens.ISharedFolderLocation, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a SharedFolderLocation message from the specified reader or buffer. @@ -57067,7 +60279,7 @@ export namespace Tokens { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Tokens.SharedFolderLocation; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Tokens.SharedFolderLocation; /** * Decodes a SharedFolderLocation message from the specified reader or buffer, length delimited. @@ -57076,14 +60288,14 @@ export namespace Tokens { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Tokens.SharedFolderLocation; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Tokens.SharedFolderLocation; /** * Verifies a SharedFolderLocation message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a SharedFolderLocation message from a plain object. Also converts values to their respective internal types. @@ -57098,7 +60310,10 @@ export namespace Tokens { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Tokens.SharedFolderLocation, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Tokens.SharedFolderLocation, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this SharedFolderLocation to JSON. @@ -57116,23 +60331,21 @@ export namespace Tokens { /** Properties of a SharedFolderUserLocation. */ interface ISharedFolderUserLocation { - /** SharedFolderUserLocation sharedFolderUid */ - sharedFolderUid?: (Uint8Array|null); + sharedFolderUid?: Uint8Array | null; /** SharedFolderUserLocation username */ - username?: (string|null); + username?: string | null; /** SharedFolderUserLocation lastSyncRevision */ - lastSyncRevision?: (number|Long|null); + lastSyncRevision?: number | Long | null; /** SharedFolderUserLocation accountUid */ - accountUid?: (Uint8Array|null); + accountUid?: Uint8Array | null; } /** Represents a SharedFolderUserLocation. */ class SharedFolderUserLocation implements ISharedFolderUserLocation { - /** * Constructs a new SharedFolderUserLocation. * @param [properties] Properties to set @@ -57146,7 +60359,7 @@ export namespace Tokens { public username: string; /** SharedFolderUserLocation lastSyncRevision. */ - public lastSyncRevision: (number|Long); + public lastSyncRevision: number | Long; /** SharedFolderUserLocation accountUid. */ public accountUid: Uint8Array; @@ -57172,7 +60385,10 @@ export namespace Tokens { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Tokens.ISharedFolderUserLocation, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Tokens.ISharedFolderUserLocation, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a SharedFolderUserLocation message from the specified reader or buffer. @@ -57182,7 +60398,7 @@ export namespace Tokens { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Tokens.SharedFolderUserLocation; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Tokens.SharedFolderUserLocation; /** * Decodes a SharedFolderUserLocation message from the specified reader or buffer, length delimited. @@ -57191,14 +60407,14 @@ export namespace Tokens { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Tokens.SharedFolderUserLocation; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Tokens.SharedFolderUserLocation; /** * Verifies a SharedFolderUserLocation message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a SharedFolderUserLocation message from a plain object. Also converts values to their respective internal types. @@ -57213,7 +60429,10 @@ export namespace Tokens { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Tokens.SharedFolderUserLocation, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Tokens.SharedFolderUserLocation, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this SharedFolderUserLocation to JSON. @@ -57231,20 +60450,18 @@ export namespace Tokens { /** Properties of a SharedFolderTeamLocation. */ interface ISharedFolderTeamLocation { - /** SharedFolderTeamLocation sharedFolderUid */ - sharedFolderUid?: (Uint8Array|null); + sharedFolderUid?: Uint8Array | null; /** SharedFolderTeamLocation teamUid */ - teamUid?: (Uint8Array|null); + teamUid?: Uint8Array | null; /** SharedFolderTeamLocation lastSyncRevision */ - lastSyncRevision?: (number|Long|null); + lastSyncRevision?: number | Long | null; } /** Represents a SharedFolderTeamLocation. */ class SharedFolderTeamLocation implements ISharedFolderTeamLocation { - /** * Constructs a new SharedFolderTeamLocation. * @param [properties] Properties to set @@ -57258,7 +60475,7 @@ export namespace Tokens { public teamUid: Uint8Array; /** SharedFolderTeamLocation lastSyncRevision. */ - public lastSyncRevision: (number|Long); + public lastSyncRevision: number | Long; /** * Creates a new SharedFolderTeamLocation instance using the specified properties. @@ -57281,7 +60498,10 @@ export namespace Tokens { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Tokens.ISharedFolderTeamLocation, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Tokens.ISharedFolderTeamLocation, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a SharedFolderTeamLocation message from the specified reader or buffer. @@ -57291,7 +60511,7 @@ export namespace Tokens { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Tokens.SharedFolderTeamLocation; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Tokens.SharedFolderTeamLocation; /** * Decodes a SharedFolderTeamLocation message from the specified reader or buffer, length delimited. @@ -57300,14 +60520,14 @@ export namespace Tokens { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Tokens.SharedFolderTeamLocation; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Tokens.SharedFolderTeamLocation; /** * Verifies a SharedFolderTeamLocation message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a SharedFolderTeamLocation message from a plain object. Also converts values to their respective internal types. @@ -57322,7 +60542,10 @@ export namespace Tokens { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Tokens.SharedFolderTeamLocation, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Tokens.SharedFolderTeamLocation, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this SharedFolderTeamLocation to JSON. @@ -57340,20 +60563,18 @@ export namespace Tokens { /** Properties of a SharedFolderRecordLocation. */ interface ISharedFolderRecordLocation { - /** SharedFolderRecordLocation sharedFolderUid */ - sharedFolderUid?: (Uint8Array|null); + sharedFolderUid?: Uint8Array | null; /** SharedFolderRecordLocation recordUid */ - recordUid?: (Uint8Array|null); + recordUid?: Uint8Array | null; /** SharedFolderRecordLocation lastSyncRevision */ - lastSyncRevision?: (number|Long|null); + lastSyncRevision?: number | Long | null; } /** Represents a SharedFolderRecordLocation. */ class SharedFolderRecordLocation implements ISharedFolderRecordLocation { - /** * Constructs a new SharedFolderRecordLocation. * @param [properties] Properties to set @@ -57367,7 +60588,7 @@ export namespace Tokens { public recordUid: Uint8Array; /** SharedFolderRecordLocation lastSyncRevision. */ - public lastSyncRevision: (number|Long); + public lastSyncRevision: number | Long; /** * Creates a new SharedFolderRecordLocation instance using the specified properties. @@ -57390,7 +60611,10 @@ export namespace Tokens { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Tokens.ISharedFolderRecordLocation, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Tokens.ISharedFolderRecordLocation, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a SharedFolderRecordLocation message from the specified reader or buffer. @@ -57400,7 +60624,7 @@ export namespace Tokens { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Tokens.SharedFolderRecordLocation; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Tokens.SharedFolderRecordLocation; /** * Decodes a SharedFolderRecordLocation message from the specified reader or buffer, length delimited. @@ -57409,14 +60633,14 @@ export namespace Tokens { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Tokens.SharedFolderRecordLocation; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Tokens.SharedFolderRecordLocation; /** * Verifies a SharedFolderRecordLocation message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a SharedFolderRecordLocation message from a plain object. Also converts values to their respective internal types. @@ -57431,7 +60655,10 @@ export namespace Tokens { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Tokens.SharedFolderRecordLocation, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Tokens.SharedFolderRecordLocation, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this SharedFolderRecordLocation to JSON. @@ -57449,20 +60676,18 @@ export namespace Tokens { /** Properties of a SharedFolderFolderRecordLocation. */ interface ISharedFolderFolderRecordLocation { - /** SharedFolderFolderRecordLocation sharedFolderUid */ - sharedFolderUid?: (Uint8Array|null); + sharedFolderUid?: Uint8Array | null; /** SharedFolderFolderRecordLocation folderUid */ - folderUid?: (Uint8Array|null); + folderUid?: Uint8Array | null; /** SharedFolderFolderRecordLocation recordUid */ - recordUid?: (Uint8Array|null); + recordUid?: Uint8Array | null; } /** Represents a SharedFolderFolderRecordLocation. */ class SharedFolderFolderRecordLocation implements ISharedFolderFolderRecordLocation { - /** * Constructs a new SharedFolderFolderRecordLocation. * @param [properties] Properties to set @@ -57483,7 +60708,9 @@ export namespace Tokens { * @param [properties] Properties to set * @returns SharedFolderFolderRecordLocation instance */ - public static create(properties?: Tokens.ISharedFolderFolderRecordLocation): Tokens.SharedFolderFolderRecordLocation; + public static create( + properties?: Tokens.ISharedFolderFolderRecordLocation + ): Tokens.SharedFolderFolderRecordLocation; /** * Encodes the specified SharedFolderFolderRecordLocation message. Does not implicitly {@link Tokens.SharedFolderFolderRecordLocation.verify|verify} messages. @@ -57491,7 +60718,10 @@ export namespace Tokens { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Tokens.ISharedFolderFolderRecordLocation, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Tokens.ISharedFolderFolderRecordLocation, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified SharedFolderFolderRecordLocation message, length delimited. Does not implicitly {@link Tokens.SharedFolderFolderRecordLocation.verify|verify} messages. @@ -57499,7 +60729,10 @@ export namespace Tokens { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Tokens.ISharedFolderFolderRecordLocation, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Tokens.ISharedFolderFolderRecordLocation, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a SharedFolderFolderRecordLocation message from the specified reader or buffer. @@ -57509,7 +60742,10 @@ export namespace Tokens { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Tokens.SharedFolderFolderRecordLocation; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Tokens.SharedFolderFolderRecordLocation; /** * Decodes a SharedFolderFolderRecordLocation message from the specified reader or buffer, length delimited. @@ -57518,14 +60754,14 @@ export namespace Tokens { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Tokens.SharedFolderFolderRecordLocation; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Tokens.SharedFolderFolderRecordLocation; /** * Verifies a SharedFolderFolderRecordLocation message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a SharedFolderFolderRecordLocation message from a plain object. Also converts values to their respective internal types. @@ -57540,7 +60776,10 @@ export namespace Tokens { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Tokens.SharedFolderFolderRecordLocation, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Tokens.SharedFolderFolderRecordLocation, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this SharedFolderFolderRecordLocation to JSON. @@ -57558,17 +60797,15 @@ export namespace Tokens { /** Properties of a TeamLocation. */ interface ITeamLocation { - /** TeamLocation teamUid */ - teamUid?: (Uint8Array|null); + teamUid?: Uint8Array | null; /** TeamLocation lastSyncRevision */ - lastSyncRevision?: (number|Long|null); + lastSyncRevision?: number | Long | null; } /** Represents a TeamLocation. */ class TeamLocation implements ITeamLocation { - /** * Constructs a new TeamLocation. * @param [properties] Properties to set @@ -57579,7 +60816,7 @@ export namespace Tokens { public teamUid: Uint8Array; /** TeamLocation lastSyncRevision. */ - public lastSyncRevision: (number|Long); + public lastSyncRevision: number | Long; /** * Creates a new TeamLocation instance using the specified properties. @@ -57612,7 +60849,7 @@ export namespace Tokens { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Tokens.TeamLocation; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Tokens.TeamLocation; /** * Decodes a TeamLocation message from the specified reader or buffer, length delimited. @@ -57621,14 +60858,14 @@ export namespace Tokens { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Tokens.TeamLocation; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Tokens.TeamLocation; /** * Verifies a TeamLocation message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a TeamLocation message from a plain object. Also converts values to their respective internal types. @@ -57643,7 +60880,10 @@ export namespace Tokens { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Tokens.TeamLocation, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Tokens.TeamLocation, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this TeamLocation to JSON. @@ -57661,17 +60901,15 @@ export namespace Tokens { /** Properties of a UserAuthHashLocation. */ interface IUserAuthHashLocation { - /** UserAuthHashLocation userAuthHashUid */ - userAuthHashUid?: (Uint8Array|null); + userAuthHashUid?: Uint8Array | null; /** UserAuthHashLocation lastSyncRevision */ - lastSyncRevision?: (number|Long|null); + lastSyncRevision?: number | Long | null; } /** Represents a UserAuthHashLocation. */ class UserAuthHashLocation implements IUserAuthHashLocation { - /** * Constructs a new UserAuthHashLocation. * @param [properties] Properties to set @@ -57682,7 +60920,7 @@ export namespace Tokens { public userAuthHashUid: Uint8Array; /** UserAuthHashLocation lastSyncRevision. */ - public lastSyncRevision: (number|Long); + public lastSyncRevision: number | Long; /** * Creates a new UserAuthHashLocation instance using the specified properties. @@ -57705,7 +60943,10 @@ export namespace Tokens { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Tokens.IUserAuthHashLocation, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Tokens.IUserAuthHashLocation, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a UserAuthHashLocation message from the specified reader or buffer. @@ -57715,7 +60956,7 @@ export namespace Tokens { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Tokens.UserAuthHashLocation; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Tokens.UserAuthHashLocation; /** * Decodes a UserAuthHashLocation message from the specified reader or buffer, length delimited. @@ -57724,14 +60965,14 @@ export namespace Tokens { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Tokens.UserAuthHashLocation; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Tokens.UserAuthHashLocation; /** * Verifies a UserAuthHashLocation message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a UserAuthHashLocation message from a plain object. Also converts values to their respective internal types. @@ -57746,7 +60987,10 @@ export namespace Tokens { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Tokens.UserAuthHashLocation, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Tokens.UserAuthHashLocation, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this UserAuthHashLocation to JSON. @@ -57764,20 +61008,18 @@ export namespace Tokens { /** Properties of a FolderRecordLocation. */ interface IFolderRecordLocation { - /** FolderRecordLocation folderUid */ - folderUid?: (Uint8Array|null); + folderUid?: Uint8Array | null; /** FolderRecordLocation recordUid */ - recordUid?: (Uint8Array|null); + recordUid?: Uint8Array | null; /** FolderRecordLocation lastSyncRevision */ - lastSyncRevision?: (number|Long|null); + lastSyncRevision?: number | Long | null; } /** Represents a FolderRecordLocation. */ class FolderRecordLocation implements IFolderRecordLocation { - /** * Constructs a new FolderRecordLocation. * @param [properties] Properties to set @@ -57791,7 +61033,7 @@ export namespace Tokens { public recordUid: Uint8Array; /** FolderRecordLocation lastSyncRevision. */ - public lastSyncRevision: (number|Long); + public lastSyncRevision: number | Long; /** * Creates a new FolderRecordLocation instance using the specified properties. @@ -57814,7 +61056,10 @@ export namespace Tokens { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Tokens.IFolderRecordLocation, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Tokens.IFolderRecordLocation, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a FolderRecordLocation message from the specified reader or buffer. @@ -57824,7 +61069,7 @@ export namespace Tokens { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Tokens.FolderRecordLocation; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Tokens.FolderRecordLocation; /** * Decodes a FolderRecordLocation message from the specified reader or buffer, length delimited. @@ -57833,14 +61078,14 @@ export namespace Tokens { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Tokens.FolderRecordLocation; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Tokens.FolderRecordLocation; /** * Verifies a FolderRecordLocation message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a FolderRecordLocation message from a plain object. Also converts values to their respective internal types. @@ -57855,7 +61100,10 @@ export namespace Tokens { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Tokens.FolderRecordLocation, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Tokens.FolderRecordLocation, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this FolderRecordLocation to JSON. @@ -57873,20 +61121,18 @@ export namespace Tokens { /** Properties of a RecordLinkLocation. */ interface IRecordLinkLocation { - /** RecordLinkLocation parentRecordUid */ - parentRecordUid?: (Uint8Array|null); + parentRecordUid?: Uint8Array | null; /** RecordLinkLocation childRecordUid */ - childRecordUid?: (Uint8Array|null); + childRecordUid?: Uint8Array | null; /** RecordLinkLocation lastSyncRevision */ - lastSyncRevision?: (number|Long|null); + lastSyncRevision?: number | Long | null; } /** Represents a RecordLinkLocation. */ class RecordLinkLocation implements IRecordLinkLocation { - /** * Constructs a new RecordLinkLocation. * @param [properties] Properties to set @@ -57900,7 +61146,7 @@ export namespace Tokens { public childRecordUid: Uint8Array; /** RecordLinkLocation lastSyncRevision. */ - public lastSyncRevision: (number|Long); + public lastSyncRevision: number | Long; /** * Creates a new RecordLinkLocation instance using the specified properties. @@ -57933,7 +61179,7 @@ export namespace Tokens { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Tokens.RecordLinkLocation; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Tokens.RecordLinkLocation; /** * Decodes a RecordLinkLocation message from the specified reader or buffer, length delimited. @@ -57942,14 +61188,14 @@ export namespace Tokens { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Tokens.RecordLinkLocation; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Tokens.RecordLinkLocation; /** * Verifies a RecordLinkLocation message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a RecordLinkLocation message from a plain object. Also converts values to their respective internal types. @@ -57964,7 +61210,10 @@ export namespace Tokens { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Tokens.RecordLinkLocation, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Tokens.RecordLinkLocation, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this RecordLinkLocation to JSON. @@ -57982,20 +61231,18 @@ export namespace Tokens { /** Properties of a KsmLocation. */ interface IKsmLocation { - /** KsmLocation appRecordUid */ - appRecordUid?: (Uint8Array|null); + appRecordUid?: Uint8Array | null; /** KsmLocation detailUid */ - detailUid?: (Uint8Array|null); + detailUid?: Uint8Array | null; /** KsmLocation lastSyncRevision */ - lastSyncRevision?: (number|Long|null); + lastSyncRevision?: number | Long | null; } /** Represents a KsmLocation. */ class KsmLocation implements IKsmLocation { - /** * Constructs a new KsmLocation. * @param [properties] Properties to set @@ -58009,7 +61256,7 @@ export namespace Tokens { public detailUid: Uint8Array; /** KsmLocation lastSyncRevision. */ - public lastSyncRevision: (number|Long); + public lastSyncRevision: number | Long; /** * Creates a new KsmLocation instance using the specified properties. @@ -58042,7 +61289,7 @@ export namespace Tokens { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Tokens.KsmLocation; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Tokens.KsmLocation; /** * Decodes a KsmLocation message from the specified reader or buffer, length delimited. @@ -58051,14 +61298,14 @@ export namespace Tokens { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Tokens.KsmLocation; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Tokens.KsmLocation; /** * Verifies a KsmLocation message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a KsmLocation message from a plain object. Also converts values to their respective internal types. @@ -58073,7 +61320,10 @@ export namespace Tokens { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Tokens.KsmLocation, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Tokens.KsmLocation, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this KsmLocation to JSON. @@ -58091,20 +61341,18 @@ export namespace Tokens { /** Properties of a FolderSharedFolderLocation. */ interface IFolderSharedFolderLocation { - /** FolderSharedFolderLocation folderUid */ - folderUid?: (Uint8Array|null); + folderUid?: Uint8Array | null; /** FolderSharedFolderLocation sharedFolderUid */ - sharedFolderUid?: (Uint8Array|null); + sharedFolderUid?: Uint8Array | null; /** FolderSharedFolderLocation lastSyncRevision */ - lastSyncRevision?: (number|Long|null); + lastSyncRevision?: number | Long | null; } /** Represents a FolderSharedFolderLocation. */ class FolderSharedFolderLocation implements IFolderSharedFolderLocation { - /** * Constructs a new FolderSharedFolderLocation. * @param [properties] Properties to set @@ -58118,7 +61366,7 @@ export namespace Tokens { public sharedFolderUid: Uint8Array; /** FolderSharedFolderLocation lastSyncRevision. */ - public lastSyncRevision: (number|Long); + public lastSyncRevision: number | Long; /** * Creates a new FolderSharedFolderLocation instance using the specified properties. @@ -58141,7 +61389,10 @@ export namespace Tokens { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Tokens.IFolderSharedFolderLocation, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Tokens.IFolderSharedFolderLocation, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a FolderSharedFolderLocation message from the specified reader or buffer. @@ -58151,7 +61402,7 @@ export namespace Tokens { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Tokens.FolderSharedFolderLocation; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Tokens.FolderSharedFolderLocation; /** * Decodes a FolderSharedFolderLocation message from the specified reader or buffer, length delimited. @@ -58160,14 +61411,14 @@ export namespace Tokens { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Tokens.FolderSharedFolderLocation; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Tokens.FolderSharedFolderLocation; /** * Verifies a FolderSharedFolderLocation message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a FolderSharedFolderLocation message from a plain object. Also converts values to their respective internal types. @@ -58182,7 +61433,10 @@ export namespace Tokens { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Tokens.FolderSharedFolderLocation, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Tokens.FolderSharedFolderLocation, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this FolderSharedFolderLocation to JSON. @@ -58200,14 +61454,12 @@ export namespace Tokens { /** Properties of a ShareInvitationLocation. */ interface IShareInvitationLocation { - /** ShareInvitationLocation username */ - username?: (string|null); + username?: string | null; } /** Represents a ShareInvitationLocation. */ class ShareInvitationLocation implements IShareInvitationLocation { - /** * Constructs a new ShareInvitationLocation. * @param [properties] Properties to set @@ -58238,7 +61490,10 @@ export namespace Tokens { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Tokens.IShareInvitationLocation, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Tokens.IShareInvitationLocation, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a ShareInvitationLocation message from the specified reader or buffer. @@ -58248,7 +61503,7 @@ export namespace Tokens { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Tokens.ShareInvitationLocation; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Tokens.ShareInvitationLocation; /** * Decodes a ShareInvitationLocation message from the specified reader or buffer, length delimited. @@ -58257,14 +61512,14 @@ export namespace Tokens { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Tokens.ShareInvitationLocation; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Tokens.ShareInvitationLocation; /** * Verifies a ShareInvitationLocation message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a ShareInvitationLocation message from a plain object. Also converts values to their respective internal types. @@ -58279,7 +61534,10 @@ export namespace Tokens { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Tokens.ShareInvitationLocation, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Tokens.ShareInvitationLocation, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this ShareInvitationLocation to JSON. @@ -58297,14 +61555,12 @@ export namespace Tokens { /** Properties of a UserLocation. */ interface IUserLocation { - /** UserLocation userId */ - userId?: (number|null); + userId?: number | null; } /** Represents a UserLocation. */ class UserLocation implements IUserLocation { - /** * Constructs a new UserLocation. * @param [properties] Properties to set @@ -58345,7 +61601,7 @@ export namespace Tokens { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Tokens.UserLocation; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Tokens.UserLocation; /** * Decodes a UserLocation message from the specified reader or buffer, length delimited. @@ -58354,14 +61610,14 @@ export namespace Tokens { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Tokens.UserLocation; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Tokens.UserLocation; /** * Verifies a UserLocation message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a UserLocation message from a plain object. Also converts values to their respective internal types. @@ -58376,7 +61632,10 @@ export namespace Tokens { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Tokens.UserLocation, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Tokens.UserLocation, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this UserLocation to JSON. @@ -58394,17 +61653,15 @@ export namespace Tokens { /** Properties of a KeyCloakToken. */ interface IKeyCloakToken { - /** KeyCloakToken email */ - email?: (string|null); + email?: string | null; /** KeyCloakToken groups */ - groups?: (string[]|null); + groups?: string[] | null; } /** Represents a KeyCloakToken. */ class KeyCloakToken implements IKeyCloakToken { - /** * Constructs a new KeyCloakToken. * @param [properties] Properties to set @@ -58448,7 +61705,7 @@ export namespace Tokens { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Tokens.KeyCloakToken; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Tokens.KeyCloakToken; /** * Decodes a KeyCloakToken message from the specified reader or buffer, length delimited. @@ -58457,14 +61714,14 @@ export namespace Tokens { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Tokens.KeyCloakToken; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Tokens.KeyCloakToken; /** * Verifies a KeyCloakToken message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a KeyCloakToken message from a plain object. Also converts values to their respective internal types. @@ -58479,7 +61736,10 @@ export namespace Tokens { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Tokens.KeyCloakToken, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Tokens.KeyCloakToken, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this KeyCloakToken to JSON. @@ -58497,14 +61757,12 @@ export namespace Tokens { /** Properties of a IPWhiteList. */ interface IIPWhiteList { - /** IPWhiteList ipranges */ - ipranges?: (string|null); + ipranges?: string | null; } /** Represents a IPWhiteList. */ class IPWhiteList implements IIPWhiteList { - /** * Constructs a new IPWhiteList. * @param [properties] Properties to set @@ -58545,7 +61803,7 @@ export namespace Tokens { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Tokens.IPWhiteList; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Tokens.IPWhiteList; /** * Decodes a IPWhiteList message from the specified reader or buffer, length delimited. @@ -58554,14 +61812,14 @@ export namespace Tokens { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Tokens.IPWhiteList; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Tokens.IPWhiteList; /** * Verifies a IPWhiteList message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a IPWhiteList message from a plain object. Also converts values to their respective internal types. @@ -58576,7 +61834,10 @@ export namespace Tokens { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Tokens.IPWhiteList, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Tokens.IPWhiteList, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this IPWhiteList to JSON. @@ -58594,20 +61855,18 @@ export namespace Tokens { /** Properties of an IncrementalSecurityDataContToken. */ interface IIncrementalSecurityDataContToken { - /** IncrementalSecurityDataContToken enterpriseUserIdUpToSave */ - enterpriseUserIdUpToSave?: (number|Long|null); + enterpriseUserIdUpToSave?: number | Long | null; /** IncrementalSecurityDataContToken revisionUpToSave */ - revisionUpToSave?: (number|Long|null); + revisionUpToSave?: number | Long | null; /** IncrementalSecurityDataContToken recordUidUpToSave */ - recordUidUpToSave?: (Uint8Array|null); + recordUidUpToSave?: Uint8Array | null; } /** Represents an IncrementalSecurityDataContToken. */ class IncrementalSecurityDataContToken implements IIncrementalSecurityDataContToken { - /** * Constructs a new IncrementalSecurityDataContToken. * @param [properties] Properties to set @@ -58615,10 +61874,10 @@ export namespace Tokens { constructor(properties?: Tokens.IIncrementalSecurityDataContToken); /** IncrementalSecurityDataContToken enterpriseUserIdUpToSave. */ - public enterpriseUserIdUpToSave: (number|Long); + public enterpriseUserIdUpToSave: number | Long; /** IncrementalSecurityDataContToken revisionUpToSave. */ - public revisionUpToSave: (number|Long); + public revisionUpToSave: number | Long; /** IncrementalSecurityDataContToken recordUidUpToSave. */ public recordUidUpToSave: Uint8Array; @@ -58628,7 +61887,9 @@ export namespace Tokens { * @param [properties] Properties to set * @returns IncrementalSecurityDataContToken instance */ - public static create(properties?: Tokens.IIncrementalSecurityDataContToken): Tokens.IncrementalSecurityDataContToken; + public static create( + properties?: Tokens.IIncrementalSecurityDataContToken + ): Tokens.IncrementalSecurityDataContToken; /** * Encodes the specified IncrementalSecurityDataContToken message. Does not implicitly {@link Tokens.IncrementalSecurityDataContToken.verify|verify} messages. @@ -58636,7 +61897,10 @@ export namespace Tokens { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Tokens.IIncrementalSecurityDataContToken, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Tokens.IIncrementalSecurityDataContToken, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified IncrementalSecurityDataContToken message, length delimited. Does not implicitly {@link Tokens.IncrementalSecurityDataContToken.verify|verify} messages. @@ -58644,7 +61908,10 @@ export namespace Tokens { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Tokens.IIncrementalSecurityDataContToken, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Tokens.IIncrementalSecurityDataContToken, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes an IncrementalSecurityDataContToken message from the specified reader or buffer. @@ -58654,7 +61921,10 @@ export namespace Tokens { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Tokens.IncrementalSecurityDataContToken; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Tokens.IncrementalSecurityDataContToken; /** * Decodes an IncrementalSecurityDataContToken message from the specified reader or buffer, length delimited. @@ -58663,14 +61933,14 @@ export namespace Tokens { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Tokens.IncrementalSecurityDataContToken; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Tokens.IncrementalSecurityDataContToken; /** * Verifies an IncrementalSecurityDataContToken message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an IncrementalSecurityDataContToken message from a plain object. Also converts values to their respective internal types. @@ -58685,7 +61955,10 @@ export namespace Tokens { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Tokens.IncrementalSecurityDataContToken, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Tokens.IncrementalSecurityDataContToken, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this IncrementalSecurityDataContToken to JSON. @@ -58704,26 +61977,23 @@ export namespace Tokens { /** Namespace ExternalService. */ export namespace ExternalService { - /** Properties of a SaveSettingsRequest. */ interface ISaveSettingsRequest { - /** SaveSettingsRequest enterpriseId */ - enterpriseId?: (number|null); + enterpriseId?: number | null; /** SaveSettingsRequest certificate */ - certificate?: (Uint8Array|null); + certificate?: Uint8Array | null; /** SaveSettingsRequest password */ - password?: (string|null); + password?: string | null; /** SaveSettingsRequest directoryUrl */ - directoryUrl?: (string|null); + directoryUrl?: string | null; } /** Represents a SaveSettingsRequest. */ class SaveSettingsRequest implements ISaveSettingsRequest { - /** * Constructs a new SaveSettingsRequest. * @param [properties] Properties to set @@ -58755,7 +62025,10 @@ export namespace ExternalService { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ExternalService.ISaveSettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: ExternalService.ISaveSettingsRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified SaveSettingsRequest message, length delimited. Does not implicitly {@link ExternalService.SaveSettingsRequest.verify|verify} messages. @@ -58763,7 +62036,10 @@ export namespace ExternalService { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ExternalService.ISaveSettingsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: ExternalService.ISaveSettingsRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a SaveSettingsRequest message from the specified reader or buffer. @@ -58773,7 +62049,10 @@ export namespace ExternalService { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ExternalService.SaveSettingsRequest; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): ExternalService.SaveSettingsRequest; /** * Decodes a SaveSettingsRequest message from the specified reader or buffer, length delimited. @@ -58782,14 +62061,14 @@ export namespace ExternalService { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ExternalService.SaveSettingsRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): ExternalService.SaveSettingsRequest; /** * Verifies a SaveSettingsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a SaveSettingsRequest message from a plain object. Also converts values to their respective internal types. @@ -58804,7 +62083,10 @@ export namespace ExternalService { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ExternalService.SaveSettingsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: ExternalService.SaveSettingsRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this SaveSettingsRequest to JSON. @@ -58822,17 +62104,15 @@ export namespace ExternalService { /** Properties of a GetUsersRequest. */ interface IGetUsersRequest { - /** GetUsersRequest field */ - field?: (string|null); + field?: string | null; /** GetUsersRequest value */ - value?: (string|null); + value?: string | null; } /** Represents a GetUsersRequest. */ class GetUsersRequest implements IGetUsersRequest { - /** * Constructs a new GetUsersRequest. * @param [properties] Properties to set @@ -58866,7 +62146,10 @@ export namespace ExternalService { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ExternalService.IGetUsersRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: ExternalService.IGetUsersRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a GetUsersRequest message from the specified reader or buffer. @@ -58876,7 +62159,7 @@ export namespace ExternalService { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ExternalService.GetUsersRequest; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): ExternalService.GetUsersRequest; /** * Decodes a GetUsersRequest message from the specified reader or buffer, length delimited. @@ -58885,14 +62168,14 @@ export namespace ExternalService { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ExternalService.GetUsersRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): ExternalService.GetUsersRequest; /** * Verifies a GetUsersRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a GetUsersRequest message from a plain object. Also converts values to their respective internal types. @@ -58907,7 +62190,10 @@ export namespace ExternalService { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ExternalService.GetUsersRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: ExternalService.GetUsersRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this GetUsersRequest to JSON. @@ -58928,35 +62214,33 @@ export namespace ExternalService { NEW = 0, INVITED = 1, ACTIVE = 2, - TAKEN = 3 + TAKEN = 3, } /** LockStatus enum. */ enum LockStatus { UNLOCKED = 0, LOCKED = 1, - DISABLED = 2 + DISABLED = 2, } /** Properties of a User. */ interface IUser { - /** User email */ - email?: (string|null); + email?: string | null; /** User name */ - name?: (string|null); + name?: string | null; /** User status */ - status?: (ExternalService.UserStatus|null); + status?: ExternalService.UserStatus | null; /** User lockStatus */ - lockStatus?: (ExternalService.LockStatus|null); + lockStatus?: ExternalService.LockStatus | null; } /** Represents a User. */ class User implements IUser { - /** * Constructs a new User. * @param [properties] Properties to set @@ -59006,7 +62290,7 @@ export namespace ExternalService { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ExternalService.User; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): ExternalService.User; /** * Decodes a User message from the specified reader or buffer, length delimited. @@ -59015,14 +62299,14 @@ export namespace ExternalService { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ExternalService.User; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): ExternalService.User; /** * Verifies a User message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a User message from a plain object. Also converts values to their respective internal types. @@ -59037,7 +62321,10 @@ export namespace ExternalService { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ExternalService.User, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: ExternalService.User, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this User to JSON. @@ -59055,14 +62342,12 @@ export namespace ExternalService { /** Properties of a GetUsersResponse. */ interface IGetUsersResponse { - /** GetUsersResponse users */ - users?: (ExternalService.IUser[]|null); + users?: ExternalService.IUser[] | null; } /** Represents a GetUsersResponse. */ class GetUsersResponse implements IGetUsersResponse { - /** * Constructs a new GetUsersResponse. * @param [properties] Properties to set @@ -59093,7 +62378,10 @@ export namespace ExternalService { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ExternalService.IGetUsersResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: ExternalService.IGetUsersResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a GetUsersResponse message from the specified reader or buffer. @@ -59103,7 +62391,7 @@ export namespace ExternalService { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ExternalService.GetUsersResponse; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): ExternalService.GetUsersResponse; /** * Decodes a GetUsersResponse message from the specified reader or buffer, length delimited. @@ -59112,14 +62400,14 @@ export namespace ExternalService { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ExternalService.GetUsersResponse; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): ExternalService.GetUsersResponse; /** * Verifies a GetUsersResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a GetUsersResponse message from a plain object. Also converts values to their respective internal types. @@ -59134,7 +62422,10 @@ export namespace ExternalService { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ExternalService.GetUsersResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: ExternalService.GetUsersResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this GetUsersResponse to JSON. @@ -59153,10 +62444,9 @@ export namespace ExternalService { /** Namespace Folder. */ export namespace Folder { - /** RecordType enum. */ enum RecordType { - password = 0 + password = 0, } /** FolderType enum. */ @@ -59164,7 +62454,7 @@ export namespace Folder { default_folder = 0, user_folder = 1, shared_folder = 2, - shared_folder_folder = 3 + shared_folder_folder = 3, } /** EncryptedKeyType enum. */ @@ -59173,22 +62463,20 @@ export namespace Folder { encrypted_by_data_key = 1, encrypted_by_public_key = 2, encrypted_by_data_key_gcm = 3, - encrypted_by_public_key_ecc = 4 + encrypted_by_public_key_ecc = 4, } /** Properties of an EncryptedDataKey. */ interface IEncryptedDataKey { - /** EncryptedDataKey encryptedKey */ - encryptedKey?: (Uint8Array|null); + encryptedKey?: Uint8Array | null; /** EncryptedDataKey encryptedKeyType */ - encryptedKeyType?: (Folder.EncryptedKeyType|null); + encryptedKeyType?: Folder.EncryptedKeyType | null; } /** Represents an EncryptedDataKey. */ class EncryptedDataKey implements IEncryptedDataKey { - /** * Constructs a new EncryptedDataKey. * @param [properties] Properties to set @@ -59232,7 +62520,7 @@ export namespace Folder { * @throws {Error} If the payload is 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.EncryptedDataKey; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Folder.EncryptedDataKey; /** * Decodes an EncryptedDataKey message from the specified reader or buffer, length delimited. @@ -59241,14 +62529,14 @@ export namespace Folder { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Folder.EncryptedDataKey; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Folder.EncryptedDataKey; /** * Verifies an EncryptedDataKey message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an EncryptedDataKey message from a plain object. Also converts values to their respective internal types. @@ -59263,7 +62551,10 @@ export namespace Folder { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Folder.EncryptedDataKey, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Folder.EncryptedDataKey, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this EncryptedDataKey to JSON. @@ -59281,23 +62572,21 @@ export namespace Folder { /** Properties of a SharedFolderRecordData. */ interface ISharedFolderRecordData { - /** SharedFolderRecordData folderUid */ - folderUid?: (Uint8Array|null); + folderUid?: Uint8Array | null; /** SharedFolderRecordData recordUid */ - recordUid?: (Uint8Array|null); + recordUid?: Uint8Array | null; /** SharedFolderRecordData userId */ - userId?: (number|null); + userId?: number | null; /** SharedFolderRecordData encryptedDataKey */ - encryptedDataKey?: (Folder.IEncryptedDataKey[]|null); + encryptedDataKey?: Folder.IEncryptedDataKey[] | null; } /** Represents a SharedFolderRecordData. */ class SharedFolderRecordData implements ISharedFolderRecordData { - /** * Constructs a new SharedFolderRecordData. * @param [properties] Properties to set @@ -59337,7 +62626,10 @@ export namespace Folder { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Folder.ISharedFolderRecordData, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Folder.ISharedFolderRecordData, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a SharedFolderRecordData message from the specified reader or buffer. @@ -59347,7 +62639,7 @@ export namespace Folder { * @throws {Error} If the payload is 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.SharedFolderRecordData; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Folder.SharedFolderRecordData; /** * Decodes a SharedFolderRecordData message from the specified reader or buffer, length delimited. @@ -59356,14 +62648,14 @@ export namespace Folder { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Folder.SharedFolderRecordData; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Folder.SharedFolderRecordData; /** * Verifies a SharedFolderRecordData message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a SharedFolderRecordData message from a plain object. Also converts values to their respective internal types. @@ -59378,7 +62670,10 @@ export namespace Folder { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Folder.SharedFolderRecordData, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Folder.SharedFolderRecordData, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this SharedFolderRecordData to JSON. @@ -59396,14 +62691,12 @@ export namespace Folder { /** Properties of a SharedFolderRecordDataList. */ interface ISharedFolderRecordDataList { - /** SharedFolderRecordDataList sharedFolderRecordData */ - sharedFolderRecordData?: (Folder.ISharedFolderRecordData[]|null); + sharedFolderRecordData?: Folder.ISharedFolderRecordData[] | null; } /** Represents a SharedFolderRecordDataList. */ class SharedFolderRecordDataList implements ISharedFolderRecordDataList { - /** * Constructs a new SharedFolderRecordDataList. * @param [properties] Properties to set @@ -59434,7 +62727,10 @@ export namespace Folder { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Folder.ISharedFolderRecordDataList, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Folder.ISharedFolderRecordDataList, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a SharedFolderRecordDataList message from the specified reader or buffer. @@ -59444,7 +62740,7 @@ export namespace Folder { * @throws {Error} If the payload is 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.SharedFolderRecordDataList; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Folder.SharedFolderRecordDataList; /** * Decodes a SharedFolderRecordDataList message from the specified reader or buffer, length delimited. @@ -59453,14 +62749,14 @@ export namespace Folder { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Folder.SharedFolderRecordDataList; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Folder.SharedFolderRecordDataList; /** * Verifies a SharedFolderRecordDataList message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a SharedFolderRecordDataList message from a plain object. Also converts values to their respective internal types. @@ -59475,7 +62771,10 @@ export namespace Folder { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Folder.SharedFolderRecordDataList, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Folder.SharedFolderRecordDataList, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this SharedFolderRecordDataList to JSON. @@ -59493,20 +62792,18 @@ export namespace Folder { /** Properties of a SharedFolderRecordFix. */ interface ISharedFolderRecordFix { - /** SharedFolderRecordFix folderUid */ - folderUid?: (Uint8Array|null); + folderUid?: Uint8Array | null; /** SharedFolderRecordFix recordUid */ - recordUid?: (Uint8Array|null); + recordUid?: Uint8Array | null; /** SharedFolderRecordFix encryptedRecordFolderKey */ - encryptedRecordFolderKey?: (Uint8Array|null); + encryptedRecordFolderKey?: Uint8Array | null; } /** Represents a SharedFolderRecordFix. */ class SharedFolderRecordFix implements ISharedFolderRecordFix { - /** * Constructs a new SharedFolderRecordFix. * @param [properties] Properties to set @@ -59543,7 +62840,10 @@ export namespace Folder { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Folder.ISharedFolderRecordFix, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Folder.ISharedFolderRecordFix, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a SharedFolderRecordFix message from the specified reader or buffer. @@ -59553,7 +62853,7 @@ export namespace Folder { * @throws {Error} If the payload is 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.SharedFolderRecordFix; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Folder.SharedFolderRecordFix; /** * Decodes a SharedFolderRecordFix message from the specified reader or buffer, length delimited. @@ -59562,14 +62862,14 @@ export namespace Folder { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Folder.SharedFolderRecordFix; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Folder.SharedFolderRecordFix; /** * Verifies a SharedFolderRecordFix message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a SharedFolderRecordFix message from a plain object. Also converts values to their respective internal types. @@ -59584,7 +62884,10 @@ export namespace Folder { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Folder.SharedFolderRecordFix, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Folder.SharedFolderRecordFix, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this SharedFolderRecordFix to JSON. @@ -59602,14 +62905,12 @@ export namespace Folder { /** Properties of a SharedFolderRecordFixList. */ interface ISharedFolderRecordFixList { - /** SharedFolderRecordFixList sharedFolderRecordFix */ - sharedFolderRecordFix?: (Folder.ISharedFolderRecordFix[]|null); + sharedFolderRecordFix?: Folder.ISharedFolderRecordFix[] | null; } /** Represents a SharedFolderRecordFixList. */ class SharedFolderRecordFixList implements ISharedFolderRecordFixList { - /** * Constructs a new SharedFolderRecordFixList. * @param [properties] Properties to set @@ -59640,7 +62941,10 @@ export namespace Folder { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Folder.ISharedFolderRecordFixList, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Folder.ISharedFolderRecordFixList, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a SharedFolderRecordFixList message from the specified reader or buffer. @@ -59650,7 +62954,7 @@ export namespace Folder { * @throws {Error} If the payload is 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.SharedFolderRecordFixList; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Folder.SharedFolderRecordFixList; /** * Decodes a SharedFolderRecordFixList message from the specified reader or buffer, length delimited. @@ -59659,14 +62963,14 @@ export namespace Folder { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Folder.SharedFolderRecordFixList; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Folder.SharedFolderRecordFixList; /** * Verifies a SharedFolderRecordFixList message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a SharedFolderRecordFixList message from a plain object. Also converts values to their respective internal types. @@ -59681,7 +62985,10 @@ export namespace Folder { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Folder.SharedFolderRecordFixList, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Folder.SharedFolderRecordFixList, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this SharedFolderRecordFixList to JSON. @@ -59699,44 +63006,42 @@ export namespace Folder { /** Properties of a RecordRequest. */ interface IRecordRequest { - /** RecordRequest recordUid */ - recordUid?: (Uint8Array|null); + recordUid?: Uint8Array | null; /** RecordRequest recordType */ - recordType?: (Folder.RecordType|null); + recordType?: Folder.RecordType | null; /** RecordRequest recordData */ - recordData?: (Uint8Array|null); + recordData?: Uint8Array | null; /** RecordRequest encryptedRecordKey */ - encryptedRecordKey?: (Uint8Array|null); + encryptedRecordKey?: Uint8Array | null; /** RecordRequest folderType */ - folderType?: (Folder.FolderType|null); + folderType?: Folder.FolderType | null; /** RecordRequest howLongAgo */ - howLongAgo?: (number|Long|null); + howLongAgo?: number | Long | null; /** RecordRequest folderUid */ - folderUid?: (Uint8Array|null); + folderUid?: Uint8Array | null; /** RecordRequest encryptedRecordFolderKey */ - encryptedRecordFolderKey?: (Uint8Array|null); + encryptedRecordFolderKey?: Uint8Array | null; /** RecordRequest extra */ - extra?: (Uint8Array|null); + extra?: Uint8Array | null; /** RecordRequest nonSharedData */ - nonSharedData?: (Uint8Array|null); + nonSharedData?: Uint8Array | null; /** RecordRequest fileIds */ - fileIds?: ((number|Long)[]|null); + fileIds?: (number | Long)[] | null; } /** Represents a RecordRequest. */ class RecordRequest implements IRecordRequest { - /** * Constructs a new RecordRequest. * @param [properties] Properties to set @@ -59759,7 +63064,7 @@ export namespace Folder { public folderType: Folder.FolderType; /** RecordRequest howLongAgo. */ - public howLongAgo: (number|Long); + public howLongAgo: number | Long; /** RecordRequest folderUid. */ public folderUid: Uint8Array; @@ -59774,7 +63079,7 @@ export namespace Folder { public nonSharedData: Uint8Array; /** RecordRequest fileIds. */ - public fileIds: (number|Long)[]; + public fileIds: (number | Long)[]; /** * Creates a new RecordRequest instance using the specified properties. @@ -59807,7 +63112,7 @@ export namespace Folder { * @throws {Error} If the payload is 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.RecordRequest; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Folder.RecordRequest; /** * Decodes a RecordRequest message from the specified reader or buffer, length delimited. @@ -59816,14 +63121,14 @@ export namespace Folder { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Folder.RecordRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Folder.RecordRequest; /** * Verifies a RecordRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a RecordRequest message from a plain object. Also converts values to their respective internal types. @@ -59838,7 +63143,10 @@ export namespace Folder { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Folder.RecordRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Folder.RecordRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this RecordRequest to JSON. @@ -59856,20 +63164,18 @@ export namespace Folder { /** Properties of a RecordResponse. */ interface IRecordResponse { - /** RecordResponse recordUid */ - recordUid?: (Uint8Array|null); + recordUid?: Uint8Array | null; /** RecordResponse revision */ - revision?: (number|Long|null); + revision?: number | Long | null; /** RecordResponse status */ - status?: (string|null); + status?: string | null; } /** Represents a RecordResponse. */ class RecordResponse implements IRecordResponse { - /** * Constructs a new RecordResponse. * @param [properties] Properties to set @@ -59880,7 +63186,7 @@ export namespace Folder { public recordUid: Uint8Array; /** RecordResponse revision. */ - public revision: (number|Long); + public revision: number | Long; /** RecordResponse status. */ public status: string; @@ -59916,7 +63222,7 @@ export namespace Folder { * @throws {Error} If the payload is 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.RecordResponse; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Folder.RecordResponse; /** * Decodes a RecordResponse message from the specified reader or buffer, length delimited. @@ -59925,14 +63231,14 @@ export namespace Folder { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Folder.RecordResponse; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Folder.RecordResponse; /** * Verifies a RecordResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a RecordResponse message from a plain object. Also converts values to their respective internal types. @@ -59947,7 +63253,10 @@ export namespace Folder { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Folder.RecordResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Folder.RecordResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this RecordResponse to JSON. @@ -59965,26 +63274,24 @@ export namespace Folder { /** Properties of a SharedFolderFields. */ interface ISharedFolderFields { - /** SharedFolderFields encryptedFolderName */ - encryptedFolderName?: (Uint8Array|null); + encryptedFolderName?: Uint8Array | null; /** SharedFolderFields manageUsers */ - manageUsers?: (boolean|null); + manageUsers?: boolean | null; /** SharedFolderFields manageRecords */ - manageRecords?: (boolean|null); + manageRecords?: boolean | null; /** SharedFolderFields canEdit */ - canEdit?: (boolean|null); + canEdit?: boolean | null; /** SharedFolderFields canShare */ - canShare?: (boolean|null); + canShare?: boolean | null; } /** Represents a SharedFolderFields. */ class SharedFolderFields implements ISharedFolderFields { - /** * Constructs a new SharedFolderFields. * @param [properties] Properties to set @@ -60037,7 +63344,7 @@ export namespace Folder { * @throws {Error} If the payload is 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.SharedFolderFields; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Folder.SharedFolderFields; /** * Decodes a SharedFolderFields message from the specified reader or buffer, length delimited. @@ -60046,14 +63353,14 @@ export namespace Folder { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Folder.SharedFolderFields; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Folder.SharedFolderFields; /** * Verifies a SharedFolderFields message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a SharedFolderFields message from a plain object. Also converts values to their respective internal types. @@ -60068,7 +63375,10 @@ export namespace Folder { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Folder.SharedFolderFields, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Folder.SharedFolderFields, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this SharedFolderFields to JSON. @@ -60086,14 +63396,12 @@ export namespace Folder { /** Properties of a SharedFolderFolderFields. */ interface ISharedFolderFolderFields { - /** SharedFolderFolderFields sharedFolderUid */ - sharedFolderUid?: (Uint8Array|null); + sharedFolderUid?: Uint8Array | null; } /** Represents a SharedFolderFolderFields. */ class SharedFolderFolderFields implements ISharedFolderFolderFields { - /** * Constructs a new SharedFolderFolderFields. * @param [properties] Properties to set @@ -60124,7 +63432,10 @@ export namespace Folder { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Folder.ISharedFolderFolderFields, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Folder.ISharedFolderFolderFields, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a SharedFolderFolderFields message from the specified reader or buffer. @@ -60134,7 +63445,7 @@ export namespace Folder { * @throws {Error} If the payload is 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.SharedFolderFolderFields; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Folder.SharedFolderFolderFields; /** * Decodes a SharedFolderFolderFields message from the specified reader or buffer, length delimited. @@ -60143,14 +63454,14 @@ export namespace Folder { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Folder.SharedFolderFolderFields; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Folder.SharedFolderFolderFields; /** * Verifies a SharedFolderFolderFields message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a SharedFolderFolderFields message from a plain object. Also converts values to their respective internal types. @@ -60165,7 +63476,10 @@ export namespace Folder { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Folder.SharedFolderFolderFields, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Folder.SharedFolderFolderFields, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this SharedFolderFolderFields to JSON. @@ -60183,32 +63497,30 @@ export namespace Folder { /** Properties of a FolderRequest. */ interface IFolderRequest { - /** FolderRequest folderUid */ - folderUid?: (Uint8Array|null); + folderUid?: Uint8Array | null; /** FolderRequest folderType */ - folderType?: (Folder.FolderType|null); + folderType?: Folder.FolderType | null; /** FolderRequest parentFolderUid */ - parentFolderUid?: (Uint8Array|null); + parentFolderUid?: Uint8Array | null; /** FolderRequest folderData */ - folderData?: (Uint8Array|null); + folderData?: Uint8Array | null; /** FolderRequest encryptedFolderKey */ - encryptedFolderKey?: (Uint8Array|null); + encryptedFolderKey?: Uint8Array | null; /** FolderRequest sharedFolderFields */ - sharedFolderFields?: (Folder.ISharedFolderFields|null); + sharedFolderFields?: Folder.ISharedFolderFields | null; /** FolderRequest sharedFolderFolderFields */ - sharedFolderFolderFields?: (Folder.ISharedFolderFolderFields|null); + sharedFolderFolderFields?: Folder.ISharedFolderFolderFields | null; } /** Represents a FolderRequest. */ class FolderRequest implements IFolderRequest { - /** * Constructs a new FolderRequest. * @param [properties] Properties to set @@ -60231,10 +63543,10 @@ export namespace Folder { public encryptedFolderKey: Uint8Array; /** FolderRequest sharedFolderFields. */ - public sharedFolderFields?: (Folder.ISharedFolderFields|null); + public sharedFolderFields?: Folder.ISharedFolderFields | null; /** FolderRequest sharedFolderFolderFields. */ - public sharedFolderFolderFields?: (Folder.ISharedFolderFolderFields|null); + public sharedFolderFolderFields?: Folder.ISharedFolderFolderFields | null; /** * Creates a new FolderRequest instance using the specified properties. @@ -60267,7 +63579,7 @@ export namespace Folder { * @throws {Error} If the payload is 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.FolderRequest; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Folder.FolderRequest; /** * Decodes a FolderRequest message from the specified reader or buffer, length delimited. @@ -60276,14 +63588,14 @@ export namespace Folder { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Folder.FolderRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Folder.FolderRequest; /** * Verifies a FolderRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a FolderRequest message from a plain object. Also converts values to their respective internal types. @@ -60298,7 +63610,10 @@ export namespace Folder { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Folder.FolderRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Folder.FolderRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this FolderRequest to JSON. @@ -60316,20 +63631,18 @@ export namespace Folder { /** Properties of a FolderResponse. */ interface IFolderResponse { - /** FolderResponse folderUid */ - folderUid?: (Uint8Array|null); + folderUid?: Uint8Array | null; /** FolderResponse revision */ - revision?: (number|Long|null); + revision?: number | Long | null; /** FolderResponse status */ - status?: (string|null); + status?: string | null; } /** Represents a FolderResponse. */ class FolderResponse implements IFolderResponse { - /** * Constructs a new FolderResponse. * @param [properties] Properties to set @@ -60340,7 +63653,7 @@ export namespace Folder { public folderUid: Uint8Array; /** FolderResponse revision. */ - public revision: (number|Long); + public revision: number | Long; /** FolderResponse status. */ public status: string; @@ -60376,7 +63689,7 @@ export namespace Folder { * @throws {Error} If the payload is 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.FolderResponse; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Folder.FolderResponse; /** * Decodes a FolderResponse message from the specified reader or buffer, length delimited. @@ -60385,14 +63698,14 @@ export namespace Folder { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Folder.FolderResponse; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Folder.FolderResponse; /** * Verifies a FolderResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a FolderResponse message from a plain object. Also converts values to their respective internal types. @@ -60407,7 +63720,10 @@ export namespace Folder { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Folder.FolderResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Folder.FolderResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this FolderResponse to JSON. @@ -60425,17 +63741,15 @@ export namespace Folder { /** Properties of an ImportFolderRecordRequest. */ interface IImportFolderRecordRequest { - /** ImportFolderRecordRequest folderRequest */ - folderRequest?: (Folder.IFolderRequest[]|null); + folderRequest?: Folder.IFolderRequest[] | null; /** ImportFolderRecordRequest recordRequest */ - recordRequest?: (Folder.IRecordRequest[]|null); + recordRequest?: Folder.IRecordRequest[] | null; } /** Represents an ImportFolderRecordRequest. */ class ImportFolderRecordRequest implements IImportFolderRecordRequest { - /** * Constructs a new ImportFolderRecordRequest. * @param [properties] Properties to set @@ -60469,7 +63783,10 @@ export namespace Folder { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Folder.IImportFolderRecordRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Folder.IImportFolderRecordRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes an ImportFolderRecordRequest message from the specified reader or buffer. @@ -60479,7 +63796,7 @@ export namespace Folder { * @throws {Error} If the payload is 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.ImportFolderRecordRequest; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Folder.ImportFolderRecordRequest; /** * Decodes an ImportFolderRecordRequest message from the specified reader or buffer, length delimited. @@ -60488,14 +63805,14 @@ export namespace Folder { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Folder.ImportFolderRecordRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Folder.ImportFolderRecordRequest; /** * Verifies an ImportFolderRecordRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an ImportFolderRecordRequest message from a plain object. Also converts values to their respective internal types. @@ -60510,7 +63827,10 @@ export namespace Folder { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Folder.ImportFolderRecordRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Folder.ImportFolderRecordRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this ImportFolderRecordRequest to JSON. @@ -60528,17 +63848,15 @@ export namespace Folder { /** Properties of an ImportFolderRecordResponse. */ interface IImportFolderRecordResponse { - /** ImportFolderRecordResponse folderResponse */ - folderResponse?: (Folder.IFolderResponse[]|null); + folderResponse?: Folder.IFolderResponse[] | null; /** ImportFolderRecordResponse recordResponse */ - recordResponse?: (Folder.IRecordResponse[]|null); + recordResponse?: Folder.IRecordResponse[] | null; } /** Represents an ImportFolderRecordResponse. */ class ImportFolderRecordResponse implements IImportFolderRecordResponse { - /** * Constructs a new ImportFolderRecordResponse. * @param [properties] Properties to set @@ -60572,7 +63890,10 @@ export namespace Folder { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Folder.IImportFolderRecordResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Folder.IImportFolderRecordResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes an ImportFolderRecordResponse message from the specified reader or buffer. @@ -60582,7 +63903,7 @@ export namespace Folder { * @throws {Error} If the payload is 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.ImportFolderRecordResponse; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Folder.ImportFolderRecordResponse; /** * Decodes an ImportFolderRecordResponse message from the specified reader or buffer, length delimited. @@ -60591,14 +63912,14 @@ export namespace Folder { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Folder.ImportFolderRecordResponse; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Folder.ImportFolderRecordResponse; /** * Verifies an ImportFolderRecordResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an ImportFolderRecordResponse message from a plain object. Also converts values to their respective internal types. @@ -60613,7 +63934,10 @@ export namespace Folder { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Folder.ImportFolderRecordResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Folder.ImportFolderRecordResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this ImportFolderRecordResponse to JSON. @@ -60633,46 +63957,44 @@ export namespace Folder { enum SetBooleanValue { BOOLEAN_NO_CHANGE = 0, BOOLEAN_TRUE = 1, - BOOLEAN_FALSE = 2 + BOOLEAN_FALSE = 2, } /** Properties of a SharedFolderUpdateRecord. */ interface ISharedFolderUpdateRecord { - /** SharedFolderUpdateRecord recordUid */ - recordUid?: (Uint8Array|null); + recordUid?: Uint8Array | null; /** SharedFolderUpdateRecord sharedFolderUid */ - sharedFolderUid?: (Uint8Array|null); + sharedFolderUid?: Uint8Array | null; /** SharedFolderUpdateRecord teamUid */ - teamUid?: (Uint8Array|null); + teamUid?: Uint8Array | null; /** SharedFolderUpdateRecord canEdit */ - canEdit?: (Folder.SetBooleanValue|null); + canEdit?: Folder.SetBooleanValue | null; /** SharedFolderUpdateRecord canShare */ - canShare?: (Folder.SetBooleanValue|null); + canShare?: Folder.SetBooleanValue | null; /** SharedFolderUpdateRecord encryptedRecordKey */ - encryptedRecordKey?: (Uint8Array|null); + encryptedRecordKey?: Uint8Array | null; /** SharedFolderUpdateRecord revision */ - revision?: (number|null); + revision?: number | null; /** SharedFolderUpdateRecord expiration */ - expiration?: (number|Long|null); + expiration?: number | Long | null; /** SharedFolderUpdateRecord timerNotificationType */ - timerNotificationType?: (Records.TimerNotificationType|null); + timerNotificationType?: Records.TimerNotificationType | null; /** SharedFolderUpdateRecord rotateOnExpiration */ - rotateOnExpiration?: (boolean|null); + rotateOnExpiration?: boolean | null; } /** Represents a SharedFolderUpdateRecord. */ class SharedFolderUpdateRecord implements ISharedFolderUpdateRecord { - /** * Constructs a new SharedFolderUpdateRecord. * @param [properties] Properties to set @@ -60701,7 +64023,7 @@ export namespace Folder { public revision: number; /** SharedFolderUpdateRecord expiration. */ - public expiration: (number|Long); + public expiration: number | Long; /** SharedFolderUpdateRecord timerNotificationType. */ public timerNotificationType: Records.TimerNotificationType; @@ -60730,7 +64052,10 @@ export namespace Folder { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Folder.ISharedFolderUpdateRecord, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Folder.ISharedFolderUpdateRecord, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a SharedFolderUpdateRecord message from the specified reader or buffer. @@ -60740,7 +64065,7 @@ export namespace Folder { * @throws {Error} If the payload is 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.SharedFolderUpdateRecord; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Folder.SharedFolderUpdateRecord; /** * Decodes a SharedFolderUpdateRecord message from the specified reader or buffer, length delimited. @@ -60749,14 +64074,14 @@ export namespace Folder { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Folder.SharedFolderUpdateRecord; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Folder.SharedFolderUpdateRecord; /** * Verifies a SharedFolderUpdateRecord message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a SharedFolderUpdateRecord message from a plain object. Also converts values to their respective internal types. @@ -60771,7 +64096,10 @@ export namespace Folder { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Folder.SharedFolderUpdateRecord, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Folder.SharedFolderUpdateRecord, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this SharedFolderUpdateRecord to JSON. @@ -60789,35 +64117,33 @@ export namespace Folder { /** Properties of a SharedFolderUpdateUser. */ interface ISharedFolderUpdateUser { - /** SharedFolderUpdateUser username */ - username?: (string|null); + username?: string | null; /** SharedFolderUpdateUser manageUsers */ - manageUsers?: (Folder.SetBooleanValue|null); + manageUsers?: Folder.SetBooleanValue | null; /** SharedFolderUpdateUser manageRecords */ - manageRecords?: (Folder.SetBooleanValue|null); + manageRecords?: Folder.SetBooleanValue | null; /** SharedFolderUpdateUser sharedFolderKey */ - sharedFolderKey?: (Uint8Array|null); + sharedFolderKey?: Uint8Array | null; /** SharedFolderUpdateUser expiration */ - expiration?: (number|Long|null); + expiration?: number | Long | null; /** SharedFolderUpdateUser timerNotificationType */ - timerNotificationType?: (Records.TimerNotificationType|null); + timerNotificationType?: Records.TimerNotificationType | null; /** SharedFolderUpdateUser typedSharedFolderKey */ - typedSharedFolderKey?: (Folder.IEncryptedDataKey|null); + typedSharedFolderKey?: Folder.IEncryptedDataKey | null; /** SharedFolderUpdateUser rotateOnExpiration */ - rotateOnExpiration?: (boolean|null); + rotateOnExpiration?: boolean | null; } /** Represents a SharedFolderUpdateUser. */ class SharedFolderUpdateUser implements ISharedFolderUpdateUser { - /** * Constructs a new SharedFolderUpdateUser. * @param [properties] Properties to set @@ -60837,13 +64163,13 @@ export namespace Folder { public sharedFolderKey: Uint8Array; /** SharedFolderUpdateUser expiration. */ - public expiration: (number|Long); + public expiration: number | Long; /** SharedFolderUpdateUser timerNotificationType. */ public timerNotificationType: Records.TimerNotificationType; /** SharedFolderUpdateUser typedSharedFolderKey. */ - public typedSharedFolderKey?: (Folder.IEncryptedDataKey|null); + public typedSharedFolderKey?: Folder.IEncryptedDataKey | null; /** SharedFolderUpdateUser rotateOnExpiration. */ public rotateOnExpiration: boolean; @@ -60869,7 +64195,10 @@ export namespace Folder { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Folder.ISharedFolderUpdateUser, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Folder.ISharedFolderUpdateUser, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a SharedFolderUpdateUser message from the specified reader or buffer. @@ -60879,7 +64208,7 @@ export namespace Folder { * @throws {Error} If the payload is 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.SharedFolderUpdateUser; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Folder.SharedFolderUpdateUser; /** * Decodes a SharedFolderUpdateUser message from the specified reader or buffer, length delimited. @@ -60888,14 +64217,14 @@ export namespace Folder { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Folder.SharedFolderUpdateUser; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Folder.SharedFolderUpdateUser; /** * Verifies a SharedFolderUpdateUser message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a SharedFolderUpdateUser message from a plain object. Also converts values to their respective internal types. @@ -60910,7 +64239,10 @@ export namespace Folder { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Folder.SharedFolderUpdateUser, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Folder.SharedFolderUpdateUser, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this SharedFolderUpdateUser to JSON. @@ -60928,35 +64260,33 @@ export namespace Folder { /** Properties of a SharedFolderUpdateTeam. */ interface ISharedFolderUpdateTeam { - /** SharedFolderUpdateTeam teamUid */ - teamUid?: (Uint8Array|null); + teamUid?: Uint8Array | null; /** SharedFolderUpdateTeam manageUsers */ - manageUsers?: (boolean|null); + manageUsers?: boolean | null; /** SharedFolderUpdateTeam manageRecords */ - manageRecords?: (boolean|null); + manageRecords?: boolean | null; /** SharedFolderUpdateTeam sharedFolderKey */ - sharedFolderKey?: (Uint8Array|null); + sharedFolderKey?: Uint8Array | null; /** SharedFolderUpdateTeam expiration */ - expiration?: (number|Long|null); + expiration?: number | Long | null; /** SharedFolderUpdateTeam timerNotificationType */ - timerNotificationType?: (Records.TimerNotificationType|null); + timerNotificationType?: Records.TimerNotificationType | null; /** SharedFolderUpdateTeam typedSharedFolderKey */ - typedSharedFolderKey?: (Folder.IEncryptedDataKey|null); + typedSharedFolderKey?: Folder.IEncryptedDataKey | null; /** SharedFolderUpdateTeam rotateOnExpiration */ - rotateOnExpiration?: (boolean|null); + rotateOnExpiration?: boolean | null; } /** Represents a SharedFolderUpdateTeam. */ class SharedFolderUpdateTeam implements ISharedFolderUpdateTeam { - /** * Constructs a new SharedFolderUpdateTeam. * @param [properties] Properties to set @@ -60976,13 +64306,13 @@ export namespace Folder { public sharedFolderKey: Uint8Array; /** SharedFolderUpdateTeam expiration. */ - public expiration: (number|Long); + public expiration: number | Long; /** SharedFolderUpdateTeam timerNotificationType. */ public timerNotificationType: Records.TimerNotificationType; /** SharedFolderUpdateTeam typedSharedFolderKey. */ - public typedSharedFolderKey?: (Folder.IEncryptedDataKey|null); + public typedSharedFolderKey?: Folder.IEncryptedDataKey | null; /** SharedFolderUpdateTeam rotateOnExpiration. */ public rotateOnExpiration: boolean; @@ -61008,7 +64338,10 @@ export namespace Folder { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Folder.ISharedFolderUpdateTeam, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Folder.ISharedFolderUpdateTeam, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a SharedFolderUpdateTeam message from the specified reader or buffer. @@ -61018,7 +64351,7 @@ export namespace Folder { * @throws {Error} If the payload is 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.SharedFolderUpdateTeam; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Folder.SharedFolderUpdateTeam; /** * Decodes a SharedFolderUpdateTeam message from the specified reader or buffer, length delimited. @@ -61027,14 +64360,14 @@ export namespace Folder { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Folder.SharedFolderUpdateTeam; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Folder.SharedFolderUpdateTeam; /** * Verifies a SharedFolderUpdateTeam message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a SharedFolderUpdateTeam message from a plain object. Also converts values to their respective internal types. @@ -61049,7 +64382,10 @@ export namespace Folder { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Folder.SharedFolderUpdateTeam, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Folder.SharedFolderUpdateTeam, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this SharedFolderUpdateTeam to JSON. @@ -61067,71 +64403,69 @@ export namespace Folder { /** Properties of a SharedFolderUpdateV3Request. */ interface ISharedFolderUpdateV3Request { - /** SharedFolderUpdateV3Request sharedFolderUpdateOperationDontUse */ - sharedFolderUpdateOperationDontUse?: (number|null); + sharedFolderUpdateOperationDontUse?: number | null; /** SharedFolderUpdateV3Request sharedFolderUid */ - sharedFolderUid?: (Uint8Array|null); + sharedFolderUid?: Uint8Array | null; /** SharedFolderUpdateV3Request encryptedSharedFolderName */ - encryptedSharedFolderName?: (Uint8Array|null); + encryptedSharedFolderName?: Uint8Array | null; /** SharedFolderUpdateV3Request revision */ - revision?: (number|Long|null); + revision?: number | Long | null; /** SharedFolderUpdateV3Request forceUpdate */ - forceUpdate?: (boolean|null); + forceUpdate?: boolean | null; /** SharedFolderUpdateV3Request fromTeamUid */ - fromTeamUid?: (Uint8Array|null); + fromTeamUid?: Uint8Array | null; /** SharedFolderUpdateV3Request defaultManageUsers */ - defaultManageUsers?: (Folder.SetBooleanValue|null); + defaultManageUsers?: Folder.SetBooleanValue | null; /** SharedFolderUpdateV3Request defaultManageRecords */ - defaultManageRecords?: (Folder.SetBooleanValue|null); + defaultManageRecords?: Folder.SetBooleanValue | null; /** SharedFolderUpdateV3Request defaultCanEdit */ - defaultCanEdit?: (Folder.SetBooleanValue|null); + defaultCanEdit?: Folder.SetBooleanValue | null; /** SharedFolderUpdateV3Request defaultCanShare */ - defaultCanShare?: (Folder.SetBooleanValue|null); + defaultCanShare?: Folder.SetBooleanValue | null; /** SharedFolderUpdateV3Request sharedFolderAddRecord */ - sharedFolderAddRecord?: (Folder.ISharedFolderUpdateRecord[]|null); + sharedFolderAddRecord?: Folder.ISharedFolderUpdateRecord[] | null; /** SharedFolderUpdateV3Request sharedFolderAddUser */ - sharedFolderAddUser?: (Folder.ISharedFolderUpdateUser[]|null); + sharedFolderAddUser?: Folder.ISharedFolderUpdateUser[] | null; /** SharedFolderUpdateV3Request sharedFolderAddTeam */ - sharedFolderAddTeam?: (Folder.ISharedFolderUpdateTeam[]|null); + sharedFolderAddTeam?: Folder.ISharedFolderUpdateTeam[] | null; /** SharedFolderUpdateV3Request sharedFolderUpdateRecord */ - sharedFolderUpdateRecord?: (Folder.ISharedFolderUpdateRecord[]|null); + sharedFolderUpdateRecord?: Folder.ISharedFolderUpdateRecord[] | null; /** SharedFolderUpdateV3Request sharedFolderUpdateUser */ - sharedFolderUpdateUser?: (Folder.ISharedFolderUpdateUser[]|null); + sharedFolderUpdateUser?: Folder.ISharedFolderUpdateUser[] | null; /** SharedFolderUpdateV3Request sharedFolderUpdateTeam */ - sharedFolderUpdateTeam?: (Folder.ISharedFolderUpdateTeam[]|null); + sharedFolderUpdateTeam?: Folder.ISharedFolderUpdateTeam[] | null; /** SharedFolderUpdateV3Request sharedFolderRemoveRecord */ - sharedFolderRemoveRecord?: (Uint8Array[]|null); + sharedFolderRemoveRecord?: Uint8Array[] | null; /** SharedFolderUpdateV3Request sharedFolderRemoveUser */ - sharedFolderRemoveUser?: (string[]|null); + sharedFolderRemoveUser?: string[] | null; /** SharedFolderUpdateV3Request sharedFolderRemoveTeam */ - sharedFolderRemoveTeam?: (Uint8Array[]|null); + sharedFolderRemoveTeam?: Uint8Array[] | null; /** SharedFolderUpdateV3Request sharedFolderOwner */ - sharedFolderOwner?: (string|null); + sharedFolderOwner?: string | null; } /** Represents a SharedFolderUpdateV3Request. */ class SharedFolderUpdateV3Request implements ISharedFolderUpdateV3Request { - /** * Constructs a new SharedFolderUpdateV3Request. * @param [properties] Properties to set @@ -61148,7 +64482,7 @@ export namespace Folder { public encryptedSharedFolderName: Uint8Array; /** SharedFolderUpdateV3Request revision. */ - public revision: (number|Long); + public revision: number | Long; /** SharedFolderUpdateV3Request forceUpdate. */ public forceUpdate: boolean; @@ -61219,7 +64553,10 @@ export namespace Folder { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Folder.ISharedFolderUpdateV3Request, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Folder.ISharedFolderUpdateV3Request, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a SharedFolderUpdateV3Request message from the specified reader or buffer. @@ -61229,7 +64566,10 @@ export namespace Folder { * @throws {Error} If the payload is 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.SharedFolderUpdateV3Request; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Folder.SharedFolderUpdateV3Request; /** * Decodes a SharedFolderUpdateV3Request message from the specified reader or buffer, length delimited. @@ -61238,14 +64578,14 @@ export namespace Folder { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Folder.SharedFolderUpdateV3Request; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Folder.SharedFolderUpdateV3Request; /** * Verifies a SharedFolderUpdateV3Request message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a SharedFolderUpdateV3Request message from a plain object. Also converts values to their respective internal types. @@ -61260,7 +64600,10 @@ export namespace Folder { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Folder.SharedFolderUpdateV3Request, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Folder.SharedFolderUpdateV3Request, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this SharedFolderUpdateV3Request to JSON. @@ -61278,14 +64621,12 @@ export namespace Folder { /** Properties of a SharedFolderUpdateV3RequestV2. */ interface ISharedFolderUpdateV3RequestV2 { - /** SharedFolderUpdateV3RequestV2 sharedFoldersUpdateV3 */ - sharedFoldersUpdateV3?: (Folder.ISharedFolderUpdateV3Request[]|null); + sharedFoldersUpdateV3?: Folder.ISharedFolderUpdateV3Request[] | null; } /** Represents a SharedFolderUpdateV3RequestV2. */ class SharedFolderUpdateV3RequestV2 implements ISharedFolderUpdateV3RequestV2 { - /** * Constructs a new SharedFolderUpdateV3RequestV2. * @param [properties] Properties to set @@ -61308,7 +64649,10 @@ export namespace Folder { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Folder.ISharedFolderUpdateV3RequestV2, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Folder.ISharedFolderUpdateV3RequestV2, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified SharedFolderUpdateV3RequestV2 message, length delimited. Does not implicitly {@link Folder.SharedFolderUpdateV3RequestV2.verify|verify} messages. @@ -61316,7 +64660,10 @@ export namespace Folder { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Folder.ISharedFolderUpdateV3RequestV2, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Folder.ISharedFolderUpdateV3RequestV2, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a SharedFolderUpdateV3RequestV2 message from the specified reader or buffer. @@ -61326,7 +64673,10 @@ export namespace Folder { * @throws {Error} If the payload is 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.SharedFolderUpdateV3RequestV2; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Folder.SharedFolderUpdateV3RequestV2; /** * Decodes a SharedFolderUpdateV3RequestV2 message from the specified reader or buffer, length delimited. @@ -61335,14 +64685,14 @@ export namespace Folder { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Folder.SharedFolderUpdateV3RequestV2; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Folder.SharedFolderUpdateV3RequestV2; /** * Verifies a SharedFolderUpdateV3RequestV2 message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a SharedFolderUpdateV3RequestV2 message from a plain object. Also converts values to their respective internal types. @@ -61357,7 +64707,10 @@ export namespace Folder { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Folder.SharedFolderUpdateV3RequestV2, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Folder.SharedFolderUpdateV3RequestV2, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this SharedFolderUpdateV3RequestV2 to JSON. @@ -61375,17 +64728,15 @@ export namespace Folder { /** Properties of a SharedFolderUpdateRecordStatus. */ interface ISharedFolderUpdateRecordStatus { - /** SharedFolderUpdateRecordStatus recordUid */ - recordUid?: (Uint8Array|null); + recordUid?: Uint8Array | null; /** SharedFolderUpdateRecordStatus status */ - status?: (string|null); + status?: string | null; } /** Represents a SharedFolderUpdateRecordStatus. */ class SharedFolderUpdateRecordStatus implements ISharedFolderUpdateRecordStatus { - /** * Constructs a new SharedFolderUpdateRecordStatus. * @param [properties] Properties to set @@ -61403,7 +64754,9 @@ export namespace Folder { * @param [properties] Properties to set * @returns SharedFolderUpdateRecordStatus instance */ - public static create(properties?: Folder.ISharedFolderUpdateRecordStatus): Folder.SharedFolderUpdateRecordStatus; + public static create( + properties?: Folder.ISharedFolderUpdateRecordStatus + ): Folder.SharedFolderUpdateRecordStatus; /** * Encodes the specified SharedFolderUpdateRecordStatus message. Does not implicitly {@link Folder.SharedFolderUpdateRecordStatus.verify|verify} messages. @@ -61411,7 +64764,10 @@ export namespace Folder { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Folder.ISharedFolderUpdateRecordStatus, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Folder.ISharedFolderUpdateRecordStatus, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified SharedFolderUpdateRecordStatus message, length delimited. Does not implicitly {@link Folder.SharedFolderUpdateRecordStatus.verify|verify} messages. @@ -61419,7 +64775,10 @@ export namespace Folder { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Folder.ISharedFolderUpdateRecordStatus, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Folder.ISharedFolderUpdateRecordStatus, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a SharedFolderUpdateRecordStatus message from the specified reader or buffer. @@ -61429,7 +64788,10 @@ export namespace Folder { * @throws {Error} If the payload is 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.SharedFolderUpdateRecordStatus; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Folder.SharedFolderUpdateRecordStatus; /** * Decodes a SharedFolderUpdateRecordStatus message from the specified reader or buffer, length delimited. @@ -61438,14 +64800,14 @@ export namespace Folder { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Folder.SharedFolderUpdateRecordStatus; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Folder.SharedFolderUpdateRecordStatus; /** * Verifies a SharedFolderUpdateRecordStatus message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a SharedFolderUpdateRecordStatus message from a plain object. Also converts values to their respective internal types. @@ -61460,7 +64822,10 @@ export namespace Folder { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Folder.SharedFolderUpdateRecordStatus, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Folder.SharedFolderUpdateRecordStatus, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this SharedFolderUpdateRecordStatus to JSON. @@ -61478,17 +64843,15 @@ export namespace Folder { /** Properties of a SharedFolderUpdateUserStatus. */ interface ISharedFolderUpdateUserStatus { - /** SharedFolderUpdateUserStatus username */ - username?: (string|null); + username?: string | null; /** SharedFolderUpdateUserStatus status */ - status?: (string|null); + status?: string | null; } /** Represents a SharedFolderUpdateUserStatus. */ class SharedFolderUpdateUserStatus implements ISharedFolderUpdateUserStatus { - /** * Constructs a new SharedFolderUpdateUserStatus. * @param [properties] Properties to set @@ -61514,7 +64877,10 @@ export namespace Folder { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Folder.ISharedFolderUpdateUserStatus, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Folder.ISharedFolderUpdateUserStatus, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified SharedFolderUpdateUserStatus message, length delimited. Does not implicitly {@link Folder.SharedFolderUpdateUserStatus.verify|verify} messages. @@ -61522,7 +64888,10 @@ export namespace Folder { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Folder.ISharedFolderUpdateUserStatus, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Folder.ISharedFolderUpdateUserStatus, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a SharedFolderUpdateUserStatus message from the specified reader or buffer. @@ -61532,7 +64901,10 @@ export namespace Folder { * @throws {Error} If the payload is 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.SharedFolderUpdateUserStatus; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Folder.SharedFolderUpdateUserStatus; /** * Decodes a SharedFolderUpdateUserStatus message from the specified reader or buffer, length delimited. @@ -61541,14 +64913,14 @@ export namespace Folder { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Folder.SharedFolderUpdateUserStatus; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Folder.SharedFolderUpdateUserStatus; /** * Verifies a SharedFolderUpdateUserStatus message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a SharedFolderUpdateUserStatus message from a plain object. Also converts values to their respective internal types. @@ -61563,7 +64935,10 @@ export namespace Folder { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Folder.SharedFolderUpdateUserStatus, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Folder.SharedFolderUpdateUserStatus, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this SharedFolderUpdateUserStatus to JSON. @@ -61581,17 +64956,15 @@ export namespace Folder { /** Properties of a SharedFolderUpdateTeamStatus. */ interface ISharedFolderUpdateTeamStatus { - /** SharedFolderUpdateTeamStatus teamUid */ - teamUid?: (Uint8Array|null); + teamUid?: Uint8Array | null; /** SharedFolderUpdateTeamStatus status */ - status?: (string|null); + status?: string | null; } /** Represents a SharedFolderUpdateTeamStatus. */ class SharedFolderUpdateTeamStatus implements ISharedFolderUpdateTeamStatus { - /** * Constructs a new SharedFolderUpdateTeamStatus. * @param [properties] Properties to set @@ -61617,7 +64990,10 @@ export namespace Folder { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Folder.ISharedFolderUpdateTeamStatus, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Folder.ISharedFolderUpdateTeamStatus, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified SharedFolderUpdateTeamStatus message, length delimited. Does not implicitly {@link Folder.SharedFolderUpdateTeamStatus.verify|verify} messages. @@ -61625,7 +65001,10 @@ export namespace Folder { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Folder.ISharedFolderUpdateTeamStatus, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Folder.ISharedFolderUpdateTeamStatus, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a SharedFolderUpdateTeamStatus message from the specified reader or buffer. @@ -61635,7 +65014,10 @@ export namespace Folder { * @throws {Error} If the payload is 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.SharedFolderUpdateTeamStatus; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Folder.SharedFolderUpdateTeamStatus; /** * Decodes a SharedFolderUpdateTeamStatus message from the specified reader or buffer, length delimited. @@ -61644,14 +65026,14 @@ export namespace Folder { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Folder.SharedFolderUpdateTeamStatus; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Folder.SharedFolderUpdateTeamStatus; /** * Verifies a SharedFolderUpdateTeamStatus message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a SharedFolderUpdateTeamStatus message from a plain object. Also converts values to their respective internal types. @@ -61666,7 +65048,10 @@ export namespace Folder { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Folder.SharedFolderUpdateTeamStatus, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Folder.SharedFolderUpdateTeamStatus, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this SharedFolderUpdateTeamStatus to JSON. @@ -61684,47 +65069,45 @@ export namespace Folder { /** Properties of a SharedFolderUpdateV3Response. */ interface ISharedFolderUpdateV3Response { - /** SharedFolderUpdateV3Response revision */ - revision?: (number|Long|null); + revision?: number | Long | null; /** SharedFolderUpdateV3Response sharedFolderAddRecordStatus */ - sharedFolderAddRecordStatus?: (Folder.ISharedFolderUpdateRecordStatus[]|null); + sharedFolderAddRecordStatus?: Folder.ISharedFolderUpdateRecordStatus[] | null; /** SharedFolderUpdateV3Response sharedFolderAddUserStatus */ - sharedFolderAddUserStatus?: (Folder.ISharedFolderUpdateUserStatus[]|null); + sharedFolderAddUserStatus?: Folder.ISharedFolderUpdateUserStatus[] | null; /** SharedFolderUpdateV3Response sharedFolderAddTeamStatus */ - sharedFolderAddTeamStatus?: (Folder.ISharedFolderUpdateTeamStatus[]|null); + sharedFolderAddTeamStatus?: Folder.ISharedFolderUpdateTeamStatus[] | null; /** SharedFolderUpdateV3Response sharedFolderUpdateRecordStatus */ - sharedFolderUpdateRecordStatus?: (Folder.ISharedFolderUpdateRecordStatus[]|null); + sharedFolderUpdateRecordStatus?: Folder.ISharedFolderUpdateRecordStatus[] | null; /** SharedFolderUpdateV3Response sharedFolderUpdateUserStatus */ - sharedFolderUpdateUserStatus?: (Folder.ISharedFolderUpdateUserStatus[]|null); + sharedFolderUpdateUserStatus?: Folder.ISharedFolderUpdateUserStatus[] | null; /** SharedFolderUpdateV3Response sharedFolderUpdateTeamStatus */ - sharedFolderUpdateTeamStatus?: (Folder.ISharedFolderUpdateTeamStatus[]|null); + sharedFolderUpdateTeamStatus?: Folder.ISharedFolderUpdateTeamStatus[] | null; /** SharedFolderUpdateV3Response sharedFolderRemoveRecordStatus */ - sharedFolderRemoveRecordStatus?: (Folder.ISharedFolderUpdateRecordStatus[]|null); + sharedFolderRemoveRecordStatus?: Folder.ISharedFolderUpdateRecordStatus[] | null; /** SharedFolderUpdateV3Response sharedFolderRemoveUserStatus */ - sharedFolderRemoveUserStatus?: (Folder.ISharedFolderUpdateUserStatus[]|null); + sharedFolderRemoveUserStatus?: Folder.ISharedFolderUpdateUserStatus[] | null; /** SharedFolderUpdateV3Response sharedFolderRemoveTeamStatus */ - sharedFolderRemoveTeamStatus?: (Folder.ISharedFolderUpdateTeamStatus[]|null); + sharedFolderRemoveTeamStatus?: Folder.ISharedFolderUpdateTeamStatus[] | null; /** SharedFolderUpdateV3Response sharedFolderUid */ - sharedFolderUid?: (Uint8Array|null); + sharedFolderUid?: Uint8Array | null; /** SharedFolderUpdateV3Response status */ - status?: (string|null); + status?: string | null; } /** Represents a SharedFolderUpdateV3Response. */ class SharedFolderUpdateV3Response implements ISharedFolderUpdateV3Response { - /** * Constructs a new SharedFolderUpdateV3Response. * @param [properties] Properties to set @@ -61732,7 +65115,7 @@ export namespace Folder { constructor(properties?: Folder.ISharedFolderUpdateV3Response); /** SharedFolderUpdateV3Response revision. */ - public revision: (number|Long); + public revision: number | Long; /** SharedFolderUpdateV3Response sharedFolderAddRecordStatus. */ public sharedFolderAddRecordStatus: Folder.ISharedFolderUpdateRecordStatus[]; @@ -61780,7 +65163,10 @@ export namespace Folder { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Folder.ISharedFolderUpdateV3Response, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Folder.ISharedFolderUpdateV3Response, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified SharedFolderUpdateV3Response message, length delimited. Does not implicitly {@link Folder.SharedFolderUpdateV3Response.verify|verify} messages. @@ -61788,7 +65174,10 @@ export namespace Folder { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Folder.ISharedFolderUpdateV3Response, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Folder.ISharedFolderUpdateV3Response, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a SharedFolderUpdateV3Response message from the specified reader or buffer. @@ -61798,7 +65187,10 @@ export namespace Folder { * @throws {Error} If the payload is 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.SharedFolderUpdateV3Response; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Folder.SharedFolderUpdateV3Response; /** * Decodes a SharedFolderUpdateV3Response message from the specified reader or buffer, length delimited. @@ -61807,14 +65199,14 @@ export namespace Folder { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Folder.SharedFolderUpdateV3Response; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Folder.SharedFolderUpdateV3Response; /** * Verifies a SharedFolderUpdateV3Response message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a SharedFolderUpdateV3Response message from a plain object. Also converts values to their respective internal types. @@ -61829,7 +65221,10 @@ export namespace Folder { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Folder.SharedFolderUpdateV3Response, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Folder.SharedFolderUpdateV3Response, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this SharedFolderUpdateV3Response to JSON. @@ -61847,14 +65242,12 @@ export namespace Folder { /** Properties of a SharedFolderUpdateV3ResponseV2. */ interface ISharedFolderUpdateV3ResponseV2 { - /** SharedFolderUpdateV3ResponseV2 sharedFoldersUpdateV3Response */ - sharedFoldersUpdateV3Response?: (Folder.ISharedFolderUpdateV3Response[]|null); + sharedFoldersUpdateV3Response?: Folder.ISharedFolderUpdateV3Response[] | null; } /** Represents a SharedFolderUpdateV3ResponseV2. */ class SharedFolderUpdateV3ResponseV2 implements ISharedFolderUpdateV3ResponseV2 { - /** * Constructs a new SharedFolderUpdateV3ResponseV2. * @param [properties] Properties to set @@ -61869,7 +65262,9 @@ export namespace Folder { * @param [properties] Properties to set * @returns SharedFolderUpdateV3ResponseV2 instance */ - public static create(properties?: Folder.ISharedFolderUpdateV3ResponseV2): Folder.SharedFolderUpdateV3ResponseV2; + public static create( + properties?: Folder.ISharedFolderUpdateV3ResponseV2 + ): Folder.SharedFolderUpdateV3ResponseV2; /** * Encodes the specified SharedFolderUpdateV3ResponseV2 message. Does not implicitly {@link Folder.SharedFolderUpdateV3ResponseV2.verify|verify} messages. @@ -61877,7 +65272,10 @@ export namespace Folder { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Folder.ISharedFolderUpdateV3ResponseV2, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Folder.ISharedFolderUpdateV3ResponseV2, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified SharedFolderUpdateV3ResponseV2 message, length delimited. Does not implicitly {@link Folder.SharedFolderUpdateV3ResponseV2.verify|verify} messages. @@ -61885,7 +65283,10 @@ export namespace Folder { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Folder.ISharedFolderUpdateV3ResponseV2, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Folder.ISharedFolderUpdateV3ResponseV2, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a SharedFolderUpdateV3ResponseV2 message from the specified reader or buffer. @@ -61895,7 +65296,10 @@ export namespace Folder { * @throws {Error} If the payload is 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.SharedFolderUpdateV3ResponseV2; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Folder.SharedFolderUpdateV3ResponseV2; /** * Decodes a SharedFolderUpdateV3ResponseV2 message from the specified reader or buffer, length delimited. @@ -61904,14 +65308,14 @@ export namespace Folder { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Folder.SharedFolderUpdateV3ResponseV2; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Folder.SharedFolderUpdateV3ResponseV2; /** * Verifies a SharedFolderUpdateV3ResponseV2 message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a SharedFolderUpdateV3ResponseV2 message from a plain object. Also converts values to their respective internal types. @@ -61926,7 +65330,10 @@ export namespace Folder { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Folder.SharedFolderUpdateV3ResponseV2, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Folder.SharedFolderUpdateV3ResponseV2, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this SharedFolderUpdateV3ResponseV2 to JSON. @@ -61944,23 +65351,21 @@ export namespace Folder { /** Properties of a GetDeletedSharedFoldersAndRecordsResponse. */ interface IGetDeletedSharedFoldersAndRecordsResponse { - /** GetDeletedSharedFoldersAndRecordsResponse sharedFolders */ - sharedFolders?: (Folder.IDeletedSharedFolder[]|null); + sharedFolders?: Folder.IDeletedSharedFolder[] | null; /** GetDeletedSharedFoldersAndRecordsResponse sharedFolderRecords */ - sharedFolderRecords?: (Folder.IDeletedSharedFolderRecord[]|null); + sharedFolderRecords?: Folder.IDeletedSharedFolderRecord[] | null; /** GetDeletedSharedFoldersAndRecordsResponse deletedRecordData */ - deletedRecordData?: (Folder.IDeletedRecordData[]|null); + deletedRecordData?: Folder.IDeletedRecordData[] | null; /** GetDeletedSharedFoldersAndRecordsResponse usernames */ - usernames?: (Folder.IUsername[]|null); + usernames?: Folder.IUsername[] | null; } /** Represents a GetDeletedSharedFoldersAndRecordsResponse. */ class GetDeletedSharedFoldersAndRecordsResponse implements IGetDeletedSharedFoldersAndRecordsResponse { - /** * Constructs a new GetDeletedSharedFoldersAndRecordsResponse. * @param [properties] Properties to set @@ -61984,7 +65389,9 @@ export namespace Folder { * @param [properties] Properties to set * @returns GetDeletedSharedFoldersAndRecordsResponse instance */ - public static create(properties?: Folder.IGetDeletedSharedFoldersAndRecordsResponse): Folder.GetDeletedSharedFoldersAndRecordsResponse; + public static create( + properties?: Folder.IGetDeletedSharedFoldersAndRecordsResponse + ): Folder.GetDeletedSharedFoldersAndRecordsResponse; /** * Encodes the specified GetDeletedSharedFoldersAndRecordsResponse message. Does not implicitly {@link Folder.GetDeletedSharedFoldersAndRecordsResponse.verify|verify} messages. @@ -61992,7 +65399,10 @@ export namespace Folder { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Folder.IGetDeletedSharedFoldersAndRecordsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Folder.IGetDeletedSharedFoldersAndRecordsResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified GetDeletedSharedFoldersAndRecordsResponse message, length delimited. Does not implicitly {@link Folder.GetDeletedSharedFoldersAndRecordsResponse.verify|verify} messages. @@ -62000,7 +65410,10 @@ export namespace Folder { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Folder.IGetDeletedSharedFoldersAndRecordsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Folder.IGetDeletedSharedFoldersAndRecordsResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a GetDeletedSharedFoldersAndRecordsResponse message from the specified reader or buffer. @@ -62010,7 +65423,10 @@ export namespace Folder { * @throws {Error} If the payload is 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.GetDeletedSharedFoldersAndRecordsResponse; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Folder.GetDeletedSharedFoldersAndRecordsResponse; /** * Decodes a GetDeletedSharedFoldersAndRecordsResponse message from the specified reader or buffer, length delimited. @@ -62019,14 +65435,16 @@ export namespace Folder { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Folder.GetDeletedSharedFoldersAndRecordsResponse; + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array + ): Folder.GetDeletedSharedFoldersAndRecordsResponse; /** * Verifies a GetDeletedSharedFoldersAndRecordsResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a GetDeletedSharedFoldersAndRecordsResponse message from a plain object. Also converts values to their respective internal types. @@ -62041,7 +65459,10 @@ export namespace Folder { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Folder.GetDeletedSharedFoldersAndRecordsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Folder.GetDeletedSharedFoldersAndRecordsResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this GetDeletedSharedFoldersAndRecordsResponse to JSON. @@ -62059,35 +65480,33 @@ export namespace Folder { /** Properties of a DeletedSharedFolder. */ interface IDeletedSharedFolder { - /** DeletedSharedFolder sharedFolderUid */ - sharedFolderUid?: (Uint8Array|null); + sharedFolderUid?: Uint8Array | null; /** DeletedSharedFolder folderUid */ - folderUid?: (Uint8Array|null); + folderUid?: Uint8Array | null; /** DeletedSharedFolder parentUid */ - parentUid?: (Uint8Array|null); + parentUid?: Uint8Array | null; /** DeletedSharedFolder sharedFolderKey */ - sharedFolderKey?: (Uint8Array|null); + sharedFolderKey?: Uint8Array | null; /** DeletedSharedFolder folderKeyType */ - folderKeyType?: (Records.RecordKeyType|null); + folderKeyType?: Records.RecordKeyType | null; /** DeletedSharedFolder data */ - data?: (Uint8Array|null); + data?: Uint8Array | null; /** DeletedSharedFolder dateDeleted */ - dateDeleted?: (number|Long|null); + dateDeleted?: number | Long | null; /** DeletedSharedFolder revision */ - revision?: (number|Long|null); + revision?: number | Long | null; } /** Represents a DeletedSharedFolder. */ class DeletedSharedFolder implements IDeletedSharedFolder { - /** * Constructs a new DeletedSharedFolder. * @param [properties] Properties to set @@ -62113,10 +65532,10 @@ export namespace Folder { public data: Uint8Array; /** DeletedSharedFolder dateDeleted. */ - public dateDeleted: (number|Long); + public dateDeleted: number | Long; /** DeletedSharedFolder revision. */ - public revision: (number|Long); + public revision: number | Long; /** * Creates a new DeletedSharedFolder instance using the specified properties. @@ -62139,7 +65558,10 @@ export namespace Folder { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Folder.IDeletedSharedFolder, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Folder.IDeletedSharedFolder, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a DeletedSharedFolder message from the specified reader or buffer. @@ -62149,7 +65571,7 @@ export namespace Folder { * @throws {Error} If the payload is 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.DeletedSharedFolder; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Folder.DeletedSharedFolder; /** * Decodes a DeletedSharedFolder message from the specified reader or buffer, length delimited. @@ -62158,14 +65580,14 @@ export namespace Folder { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Folder.DeletedSharedFolder; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Folder.DeletedSharedFolder; /** * Verifies a DeletedSharedFolder message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a DeletedSharedFolder message from a plain object. Also converts values to their respective internal types. @@ -62180,7 +65602,10 @@ export namespace Folder { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Folder.DeletedSharedFolder, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Folder.DeletedSharedFolder, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this DeletedSharedFolder to JSON. @@ -62198,26 +65623,24 @@ export namespace Folder { /** Properties of a DeletedSharedFolderRecord. */ interface IDeletedSharedFolderRecord { - /** DeletedSharedFolderRecord folderUid */ - folderUid?: (Uint8Array|null); + folderUid?: Uint8Array | null; /** DeletedSharedFolderRecord recordUid */ - recordUid?: (Uint8Array|null); + recordUid?: Uint8Array | null; /** DeletedSharedFolderRecord sharedRecordKey */ - sharedRecordKey?: (Uint8Array|null); + sharedRecordKey?: Uint8Array | null; /** DeletedSharedFolderRecord dateDeleted */ - dateDeleted?: (number|Long|null); + dateDeleted?: number | Long | null; /** DeletedSharedFolderRecord revision */ - revision?: (number|Long|null); + revision?: number | Long | null; } /** Represents a DeletedSharedFolderRecord. */ class DeletedSharedFolderRecord implements IDeletedSharedFolderRecord { - /** * Constructs a new DeletedSharedFolderRecord. * @param [properties] Properties to set @@ -62234,10 +65657,10 @@ export namespace Folder { public sharedRecordKey: Uint8Array; /** DeletedSharedFolderRecord dateDeleted. */ - public dateDeleted: (number|Long); + public dateDeleted: number | Long; /** DeletedSharedFolderRecord revision. */ - public revision: (number|Long); + public revision: number | Long; /** * Creates a new DeletedSharedFolderRecord instance using the specified properties. @@ -62260,7 +65683,10 @@ export namespace Folder { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Folder.IDeletedSharedFolderRecord, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Folder.IDeletedSharedFolderRecord, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a DeletedSharedFolderRecord message from the specified reader or buffer. @@ -62270,7 +65696,7 @@ export namespace Folder { * @throws {Error} If the payload is 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.DeletedSharedFolderRecord; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Folder.DeletedSharedFolderRecord; /** * Decodes a DeletedSharedFolderRecord message from the specified reader or buffer, length delimited. @@ -62279,14 +65705,14 @@ export namespace Folder { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Folder.DeletedSharedFolderRecord; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Folder.DeletedSharedFolderRecord; /** * Verifies a DeletedSharedFolderRecord message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a DeletedSharedFolderRecord message from a plain object. Also converts values to their respective internal types. @@ -62301,7 +65727,10 @@ export namespace Folder { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Folder.DeletedSharedFolderRecord, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Folder.DeletedSharedFolderRecord, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this DeletedSharedFolderRecord to JSON. @@ -62319,29 +65748,27 @@ export namespace Folder { /** Properties of a DeletedRecordData. */ interface IDeletedRecordData { - /** DeletedRecordData recordUid */ - recordUid?: (Uint8Array|null); + recordUid?: Uint8Array | null; /** DeletedRecordData ownerUid */ - ownerUid?: (Uint8Array|null); + ownerUid?: Uint8Array | null; /** DeletedRecordData revision */ - revision?: (number|Long|null); + revision?: number | Long | null; /** DeletedRecordData clientModifiedTime */ - clientModifiedTime?: (number|Long|null); + clientModifiedTime?: number | Long | null; /** DeletedRecordData data */ - data?: (Uint8Array|null); + data?: Uint8Array | null; /** DeletedRecordData version */ - version?: (number|null); + version?: number | null; } /** Represents a DeletedRecordData. */ class DeletedRecordData implements IDeletedRecordData { - /** * Constructs a new DeletedRecordData. * @param [properties] Properties to set @@ -62355,10 +65782,10 @@ export namespace Folder { public ownerUid: Uint8Array; /** DeletedRecordData revision. */ - public revision: (number|Long); + public revision: number | Long; /** DeletedRecordData clientModifiedTime. */ - public clientModifiedTime: (number|Long); + public clientModifiedTime: number | Long; /** DeletedRecordData data. */ public data: Uint8Array; @@ -62397,7 +65824,7 @@ export namespace Folder { * @throws {Error} If the payload is 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.DeletedRecordData; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Folder.DeletedRecordData; /** * Decodes a DeletedRecordData message from the specified reader or buffer, length delimited. @@ -62406,14 +65833,14 @@ export namespace Folder { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Folder.DeletedRecordData; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Folder.DeletedRecordData; /** * Verifies a DeletedRecordData message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a DeletedRecordData message from a plain object. Also converts values to their respective internal types. @@ -62428,7 +65855,10 @@ export namespace Folder { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Folder.DeletedRecordData, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Folder.DeletedRecordData, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this DeletedRecordData to JSON. @@ -62446,17 +65876,15 @@ export namespace Folder { /** Properties of a Username. */ interface IUsername { - /** Username accountUid */ - accountUid?: (Uint8Array|null); + accountUid?: Uint8Array | null; /** Username username */ - username?: (string|null); + username?: string | null; } /** Represents a Username. */ class Username implements IUsername { - /** * Constructs a new Username. * @param [properties] Properties to set @@ -62500,7 +65928,7 @@ export namespace Folder { * @throws {Error} If the payload is 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.Username; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Folder.Username; /** * Decodes a Username message from the specified reader or buffer, length delimited. @@ -62509,14 +65937,14 @@ export namespace Folder { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Folder.Username; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Folder.Username; /** * Verifies a Username message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a Username message from a plain object. Also converts values to their respective internal types. @@ -62549,17 +65977,15 @@ export namespace Folder { /** Properties of a RestoreDeletedSharedFoldersAndRecordsRequest. */ interface IRestoreDeletedSharedFoldersAndRecordsRequest { - /** RestoreDeletedSharedFoldersAndRecordsRequest folders */ - folders?: (Folder.IRestoreSharedObject[]|null); + folders?: Folder.IRestoreSharedObject[] | null; /** RestoreDeletedSharedFoldersAndRecordsRequest records */ - records?: (Folder.IRestoreSharedObject[]|null); + records?: Folder.IRestoreSharedObject[] | null; } /** Represents a RestoreDeletedSharedFoldersAndRecordsRequest. */ class RestoreDeletedSharedFoldersAndRecordsRequest implements IRestoreDeletedSharedFoldersAndRecordsRequest { - /** * Constructs a new RestoreDeletedSharedFoldersAndRecordsRequest. * @param [properties] Properties to set @@ -62577,7 +66003,9 @@ export namespace Folder { * @param [properties] Properties to set * @returns RestoreDeletedSharedFoldersAndRecordsRequest instance */ - public static create(properties?: Folder.IRestoreDeletedSharedFoldersAndRecordsRequest): Folder.RestoreDeletedSharedFoldersAndRecordsRequest; + public static create( + properties?: Folder.IRestoreDeletedSharedFoldersAndRecordsRequest + ): Folder.RestoreDeletedSharedFoldersAndRecordsRequest; /** * Encodes the specified RestoreDeletedSharedFoldersAndRecordsRequest message. Does not implicitly {@link Folder.RestoreDeletedSharedFoldersAndRecordsRequest.verify|verify} messages. @@ -62585,7 +66013,10 @@ export namespace Folder { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Folder.IRestoreDeletedSharedFoldersAndRecordsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Folder.IRestoreDeletedSharedFoldersAndRecordsRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified RestoreDeletedSharedFoldersAndRecordsRequest message, length delimited. Does not implicitly {@link Folder.RestoreDeletedSharedFoldersAndRecordsRequest.verify|verify} messages. @@ -62593,7 +66024,10 @@ export namespace Folder { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Folder.IRestoreDeletedSharedFoldersAndRecordsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Folder.IRestoreDeletedSharedFoldersAndRecordsRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a RestoreDeletedSharedFoldersAndRecordsRequest message from the specified reader or buffer. @@ -62603,7 +66037,10 @@ export namespace Folder { * @throws {Error} If the payload is 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.RestoreDeletedSharedFoldersAndRecordsRequest; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Folder.RestoreDeletedSharedFoldersAndRecordsRequest; /** * Decodes a RestoreDeletedSharedFoldersAndRecordsRequest message from the specified reader or buffer, length delimited. @@ -62612,14 +66049,16 @@ export namespace Folder { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Folder.RestoreDeletedSharedFoldersAndRecordsRequest; + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array + ): Folder.RestoreDeletedSharedFoldersAndRecordsRequest; /** * Verifies a RestoreDeletedSharedFoldersAndRecordsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a RestoreDeletedSharedFoldersAndRecordsRequest message from a plain object. Also converts values to their respective internal types. @@ -62634,7 +66073,10 @@ export namespace Folder { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Folder.RestoreDeletedSharedFoldersAndRecordsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Folder.RestoreDeletedSharedFoldersAndRecordsRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this RestoreDeletedSharedFoldersAndRecordsRequest to JSON. @@ -62652,17 +66094,15 @@ export namespace Folder { /** Properties of a RestoreSharedObject. */ interface IRestoreSharedObject { - /** RestoreSharedObject folderUid */ - folderUid?: (Uint8Array|null); + folderUid?: Uint8Array | null; /** RestoreSharedObject recordUids */ - recordUids?: (Uint8Array[]|null); + recordUids?: Uint8Array[] | null; } /** Represents a RestoreSharedObject. */ class RestoreSharedObject implements IRestoreSharedObject { - /** * Constructs a new RestoreSharedObject. * @param [properties] Properties to set @@ -62696,7 +66136,10 @@ export namespace Folder { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Folder.IRestoreSharedObject, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Folder.IRestoreSharedObject, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a RestoreSharedObject message from the specified reader or buffer. @@ -62706,7 +66149,7 @@ export namespace Folder { * @throws {Error} If the payload is 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.RestoreSharedObject; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Folder.RestoreSharedObject; /** * Decodes a RestoreSharedObject message from the specified reader or buffer, length delimited. @@ -62715,14 +66158,14 @@ export namespace Folder { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Folder.RestoreSharedObject; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Folder.RestoreSharedObject; /** * Verifies a RestoreSharedObject message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a RestoreSharedObject message from a plain object. Also converts values to their respective internal types. @@ -62737,7 +66180,10 @@ export namespace Folder { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Folder.RestoreSharedObject, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Folder.RestoreSharedObject, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this RestoreSharedObject to JSON. @@ -62756,32 +66202,29 @@ export namespace Folder { /** Namespace Records. */ export namespace Records { - /** RecordTypeScope enum. */ enum RecordTypeScope { RT_STANDARD = 0, RT_USER = 1, RT_ENTERPRISE = 2, RT_PAM = 3, - RT_PAM_CONFIGURATION = 4 + RT_PAM_CONFIGURATION = 4, } /** Properties of a RecordType. */ interface IRecordType { - /** RecordType recordTypeId */ - recordTypeId?: (number|null); + recordTypeId?: number | null; /** RecordType content */ - content?: (string|null); + content?: string | null; /** RecordType scope */ - scope?: (Records.RecordTypeScope|null); + scope?: Records.RecordTypeScope | null; } /** Represents a RecordType. */ class RecordType implements IRecordType { - /** * Constructs a new RecordType. * @param [properties] Properties to set @@ -62828,7 +66271,7 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordType; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Records.RecordType; /** * Decodes a RecordType message from the specified reader or buffer, length delimited. @@ -62837,14 +66280,14 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.RecordType; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Records.RecordType; /** * Verifies a RecordType message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a RecordType message from a plain object. Also converts values to their respective internal types. @@ -62859,7 +66302,10 @@ export namespace Records { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.RecordType, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Records.RecordType, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this RecordType to JSON. @@ -62877,23 +66323,21 @@ export namespace Records { /** Properties of a RecordTypesRequest. */ interface IRecordTypesRequest { - /** RecordTypesRequest standard */ - standard?: (boolean|null); + standard?: boolean | null; /** RecordTypesRequest user */ - user?: (boolean|null); + user?: boolean | null; /** RecordTypesRequest enterprise */ - enterprise?: (boolean|null); + enterprise?: boolean | null; /** RecordTypesRequest pam */ - pam?: (boolean|null); + pam?: boolean | null; } /** Represents a RecordTypesRequest. */ class RecordTypesRequest implements IRecordTypesRequest { - /** * Constructs a new RecordTypesRequest. * @param [properties] Properties to set @@ -62933,7 +66377,10 @@ export namespace Records { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Records.IRecordTypesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Records.IRecordTypesRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a RecordTypesRequest message from the specified reader or buffer. @@ -62943,7 +66390,7 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordTypesRequest; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Records.RecordTypesRequest; /** * Decodes a RecordTypesRequest message from the specified reader or buffer, length delimited. @@ -62952,14 +66399,14 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.RecordTypesRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Records.RecordTypesRequest; /** * Verifies a RecordTypesRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a RecordTypesRequest message from a plain object. Also converts values to their respective internal types. @@ -62974,7 +66421,10 @@ export namespace Records { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.RecordTypesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Records.RecordTypesRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this RecordTypesRequest to JSON. @@ -62992,26 +66442,24 @@ export namespace Records { /** Properties of a RecordTypesResponse. */ interface IRecordTypesResponse { - /** RecordTypesResponse recordTypes */ - recordTypes?: (Records.IRecordType[]|null); + recordTypes?: Records.IRecordType[] | null; /** RecordTypesResponse standardCounter */ - standardCounter?: (number|null); + standardCounter?: number | null; /** RecordTypesResponse userCounter */ - userCounter?: (number|null); + userCounter?: number | null; /** RecordTypesResponse enterpriseCounter */ - enterpriseCounter?: (number|null); + enterpriseCounter?: number | null; /** RecordTypesResponse pamCounter */ - pamCounter?: (number|null); + pamCounter?: number | null; } /** Represents a RecordTypesResponse. */ class RecordTypesResponse implements IRecordTypesResponse { - /** * Constructs a new RecordTypesResponse. * @param [properties] Properties to set @@ -63054,7 +66502,10 @@ export namespace Records { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Records.IRecordTypesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Records.IRecordTypesResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a RecordTypesResponse message from the specified reader or buffer. @@ -63064,7 +66515,7 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordTypesResponse; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Records.RecordTypesResponse; /** * Decodes a RecordTypesResponse message from the specified reader or buffer, length delimited. @@ -63073,14 +66524,14 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.RecordTypesResponse; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Records.RecordTypesResponse; /** * Verifies a RecordTypesResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a RecordTypesResponse message from a plain object. Also converts values to their respective internal types. @@ -63095,7 +66546,10 @@ export namespace Records { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.RecordTypesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Records.RecordTypesResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this RecordTypesResponse to JSON. @@ -63113,17 +66567,15 @@ export namespace Records { /** Properties of a RecordTypeModifyResponse. */ interface IRecordTypeModifyResponse { - /** RecordTypeModifyResponse recordTypeId */ - recordTypeId?: (number|null); + recordTypeId?: number | null; /** RecordTypeModifyResponse counter */ - counter?: (number|null); + counter?: number | null; } /** Represents a RecordTypeModifyResponse. */ class RecordTypeModifyResponse implements IRecordTypeModifyResponse { - /** * Constructs a new RecordTypeModifyResponse. * @param [properties] Properties to set @@ -63157,7 +66609,10 @@ export namespace Records { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Records.IRecordTypeModifyResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Records.IRecordTypeModifyResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a RecordTypeModifyResponse message from the specified reader or buffer. @@ -63167,7 +66622,7 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordTypeModifyResponse; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Records.RecordTypeModifyResponse; /** * Decodes a RecordTypeModifyResponse message from the specified reader or buffer, length delimited. @@ -63176,14 +66631,14 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.RecordTypeModifyResponse; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Records.RecordTypeModifyResponse; /** * Verifies a RecordTypeModifyResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a RecordTypeModifyResponse message from a plain object. Also converts values to their respective internal types. @@ -63198,7 +66653,10 @@ export namespace Records { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.RecordTypeModifyResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Records.RecordTypeModifyResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this RecordTypeModifyResponse to JSON. @@ -63216,17 +66674,15 @@ export namespace Records { /** Properties of a RecordsGetRequest. */ interface IRecordsGetRequest { - /** RecordsGetRequest recordUids */ - recordUids?: (Uint8Array[]|null); + recordUids?: Uint8Array[] | null; /** RecordsGetRequest clientTime */ - clientTime?: (number|Long|null); + clientTime?: number | Long | null; } /** Represents a RecordsGetRequest. */ class RecordsGetRequest implements IRecordsGetRequest { - /** * Constructs a new RecordsGetRequest. * @param [properties] Properties to set @@ -63237,7 +66693,7 @@ export namespace Records { public recordUids: Uint8Array[]; /** RecordsGetRequest clientTime. */ - public clientTime: (number|Long); + public clientTime: number | Long; /** * Creates a new RecordsGetRequest instance using the specified properties. @@ -63270,7 +66726,7 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordsGetRequest; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Records.RecordsGetRequest; /** * Decodes a RecordsGetRequest message from the specified reader or buffer, length delimited. @@ -63279,14 +66735,14 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.RecordsGetRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Records.RecordsGetRequest; /** * Verifies a RecordsGetRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a RecordsGetRequest message from a plain object. Also converts values to their respective internal types. @@ -63301,7 +66757,10 @@ export namespace Records { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.RecordsGetRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Records.RecordsGetRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this RecordsGetRequest to JSON. @@ -63319,38 +66778,36 @@ export namespace Records { /** Properties of a Record. */ interface IRecord { - /** Record recordUid */ - recordUid?: (Uint8Array|null); + recordUid?: Uint8Array | null; /** Record recordKey */ - recordKey?: (Uint8Array|null); + recordKey?: Uint8Array | null; /** Record recordKeyType */ - recordKeyType?: (Records.RecordKeyType|null); + recordKeyType?: Records.RecordKeyType | null; /** Record data */ - data?: (Uint8Array|null); + data?: Uint8Array | null; /** Record extra */ - extra?: (Uint8Array|null); + extra?: Uint8Array | null; /** Record version */ - version?: (number|null); + version?: number | null; /** Record clientModifiedTime */ - clientModifiedTime?: (number|Long|null); + clientModifiedTime?: number | Long | null; /** Record revision */ - revision?: (number|Long|null); + revision?: number | Long | null; /** Record fileIds */ - fileIds?: (Uint8Array[]|null); + fileIds?: Uint8Array[] | null; } /** Represents a Record. */ class Record implements IRecord { - /** * Constructs a new Record. * @param [properties] Properties to set @@ -63376,10 +66833,10 @@ export namespace Records { public version: number; /** Record clientModifiedTime. */ - public clientModifiedTime: (number|Long); + public clientModifiedTime: number | Long; /** Record revision. */ - public revision: (number|Long); + public revision: number | Long; /** Record fileIds. */ public fileIds: Uint8Array[]; @@ -63415,7 +66872,7 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.Record; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Records.Record; /** * Decodes a Record message from the specified reader or buffer, length delimited. @@ -63424,14 +66881,14 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.Record; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Records.Record; /** * Verifies a Record message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a Record message from a plain object. Also converts values to their respective internal types. @@ -63470,25 +66927,23 @@ export namespace Records { ENCRYPTED_BY_DATA_KEY_GCM = 3, ENCRYPTED_BY_PUBLIC_KEY_ECC = 4, ENCRYPTED_BY_ROOT_KEY_CBC = 5, - ENCRYPTED_BY_ROOT_KEY_GCM = 6 + ENCRYPTED_BY_ROOT_KEY_GCM = 6, } /** Properties of a FolderRecordKey. */ interface IFolderRecordKey { - /** FolderRecordKey folderUid */ - folderUid?: (Uint8Array|null); + folderUid?: Uint8Array | null; /** FolderRecordKey recordUid */ - recordUid?: (Uint8Array|null); + recordUid?: Uint8Array | null; /** FolderRecordKey recordKey */ - recordKey?: (Uint8Array|null); + recordKey?: Uint8Array | null; } /** Represents a FolderRecordKey. */ class FolderRecordKey implements IFolderRecordKey { - /** * Constructs a new FolderRecordKey. * @param [properties] Properties to set @@ -63535,7 +66990,7 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.FolderRecordKey; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Records.FolderRecordKey; /** * Decodes a FolderRecordKey message from the specified reader or buffer, length delimited. @@ -63544,14 +66999,14 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.FolderRecordKey; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Records.FolderRecordKey; /** * Verifies a FolderRecordKey message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a FolderRecordKey message from a plain object. Also converts values to their respective internal types. @@ -63566,7 +67021,10 @@ export namespace Records { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.FolderRecordKey, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Records.FolderRecordKey, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this FolderRecordKey to JSON. @@ -63584,20 +67042,18 @@ export namespace Records { /** Properties of a Folder. */ interface IFolder { - /** Folder folderUid */ - folderUid?: (Uint8Array|null); + folderUid?: Uint8Array | null; /** Folder folderKey */ - folderKey?: (Uint8Array|null); + folderKey?: Uint8Array | null; /** Folder folderKeyType */ - folderKeyType?: (Records.RecordKeyType|null); + folderKeyType?: Records.RecordKeyType | null; } /** Represents a Folder. */ class Folder implements IFolder { - /** * Constructs a new Folder. * @param [properties] Properties to set @@ -63644,7 +67100,7 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.Folder; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Records.Folder; /** * Decodes a Folder message from the specified reader or buffer, length delimited. @@ -63653,14 +67109,14 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.Folder; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Records.Folder; /** * Verifies a Folder message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a Folder message from a plain object. Also converts values to their respective internal types. @@ -63693,26 +67149,24 @@ export namespace Records { /** Properties of a Team. */ interface ITeam { - /** Team teamUid */ - teamUid?: (Uint8Array|null); + teamUid?: Uint8Array | null; /** Team teamKey */ - teamKey?: (Uint8Array|null); + teamKey?: Uint8Array | null; /** Team teamPrivateKey */ - teamPrivateKey?: (Uint8Array|null); + teamPrivateKey?: Uint8Array | null; /** Team teamKeyType */ - teamKeyType?: (Records.RecordKeyType|null); + teamKeyType?: Records.RecordKeyType | null; /** Team folders */ - folders?: (Records.IFolder[]|null); + folders?: Records.IFolder[] | null; } /** Represents a Team. */ class Team implements ITeam { - /** * Constructs a new Team. * @param [properties] Properties to set @@ -63765,7 +67219,7 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.Team; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Records.Team; /** * Decodes a Team message from the specified reader or buffer, length delimited. @@ -63774,14 +67228,14 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.Team; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Records.Team; /** * Verifies a Team message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a Team message from a plain object. Also converts values to their respective internal types. @@ -63814,23 +67268,21 @@ export namespace Records { /** Properties of a RecordsGetResponse. */ interface IRecordsGetResponse { - /** RecordsGetResponse records */ - records?: (Records.IRecord[]|null); + records?: Records.IRecord[] | null; /** RecordsGetResponse folderRecordKeys */ - folderRecordKeys?: (Records.IFolderRecordKey[]|null); + folderRecordKeys?: Records.IFolderRecordKey[] | null; /** RecordsGetResponse folders */ - folders?: (Records.IFolder[]|null); + folders?: Records.IFolder[] | null; /** RecordsGetResponse teams */ - teams?: (Records.ITeam[]|null); + teams?: Records.ITeam[] | null; } /** Represents a RecordsGetResponse. */ class RecordsGetResponse implements IRecordsGetResponse { - /** * Constructs a new RecordsGetResponse. * @param [properties] Properties to set @@ -63870,7 +67322,10 @@ export namespace Records { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Records.IRecordsGetResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Records.IRecordsGetResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a RecordsGetResponse message from the specified reader or buffer. @@ -63880,7 +67335,7 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordsGetResponse; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Records.RecordsGetResponse; /** * Decodes a RecordsGetResponse message from the specified reader or buffer, length delimited. @@ -63889,14 +67344,14 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.RecordsGetResponse; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Records.RecordsGetResponse; /** * Verifies a RecordsGetResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a RecordsGetResponse message from a plain object. Also converts values to their respective internal types. @@ -63911,7 +67366,10 @@ export namespace Records { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.RecordsGetResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Records.RecordsGetResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this RecordsGetResponse to JSON. @@ -63931,22 +67389,20 @@ export namespace Records { enum RecordFolderType { user_folder = 0, shared_folder = 1, - shared_folder_folder = 2 + shared_folder_folder = 2, } /** Properties of a RecordLink. */ interface IRecordLink { - /** RecordLink recordUid */ - recordUid?: (Uint8Array|null); + recordUid?: Uint8Array | null; /** RecordLink recordKey */ - recordKey?: (Uint8Array|null); + recordKey?: Uint8Array | null; } /** Represents a RecordLink. */ class RecordLink implements IRecordLink { - /** * Constructs a new RecordLink. * @param [properties] Properties to set @@ -63990,7 +67446,7 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordLink; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Records.RecordLink; /** * Decodes a RecordLink message from the specified reader or buffer, length delimited. @@ -63999,14 +67455,14 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.RecordLink; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Records.RecordLink; /** * Verifies a RecordLink message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a RecordLink message from a plain object. Also converts values to their respective internal types. @@ -64021,7 +67477,10 @@ export namespace Records { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.RecordLink, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Records.RecordLink, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this RecordLink to JSON. @@ -64039,17 +67498,15 @@ export namespace Records { /** Properties of a RecordAudit. */ interface IRecordAudit { - /** RecordAudit version */ - version?: (number|null); + version?: number | null; /** RecordAudit data */ - data?: (Uint8Array|null); + data?: Uint8Array | null; } /** Represents a RecordAudit. */ class RecordAudit implements IRecordAudit { - /** * Constructs a new RecordAudit. * @param [properties] Properties to set @@ -64093,7 +67550,7 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordAudit; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Records.RecordAudit; /** * Decodes a RecordAudit message from the specified reader or buffer, length delimited. @@ -64102,14 +67559,14 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.RecordAudit; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Records.RecordAudit; /** * Verifies a RecordAudit message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a RecordAudit message from a plain object. Also converts values to their respective internal types. @@ -64124,7 +67581,10 @@ export namespace Records { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.RecordAudit, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Records.RecordAudit, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this RecordAudit to JSON. @@ -64142,14 +67602,12 @@ export namespace Records { /** Properties of a SecurityData. */ interface ISecurityData { - /** SecurityData data */ - data?: (Uint8Array|null); + data?: Uint8Array | null; } /** Represents a SecurityData. */ class SecurityData implements ISecurityData { - /** * Constructs a new SecurityData. * @param [properties] Properties to set @@ -64190,7 +67648,7 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.SecurityData; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Records.SecurityData; /** * Decodes a SecurityData message from the specified reader or buffer, length delimited. @@ -64199,14 +67657,14 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.SecurityData; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Records.SecurityData; /** * Verifies a SecurityData message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a SecurityData message from a plain object. Also converts values to their respective internal types. @@ -64221,7 +67679,10 @@ export namespace Records { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.SecurityData, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Records.SecurityData, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this SecurityData to JSON. @@ -64239,14 +67700,12 @@ export namespace Records { /** Properties of a SecurityScoreData. */ interface ISecurityScoreData { - /** SecurityScoreData data */ - data?: (Uint8Array|null); + data?: Uint8Array | null; } /** Represents a SecurityScoreData. */ class SecurityScoreData implements ISecurityScoreData { - /** * Constructs a new SecurityScoreData. * @param [properties] Properties to set @@ -64287,7 +67746,7 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.SecurityScoreData; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Records.SecurityScoreData; /** * Decodes a SecurityScoreData message from the specified reader or buffer, length delimited. @@ -64296,14 +67755,14 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.SecurityScoreData; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Records.SecurityScoreData; /** * Verifies a SecurityScoreData message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a SecurityScoreData message from a plain object. Also converts values to their respective internal types. @@ -64318,7 +67777,10 @@ export namespace Records { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.SecurityScoreData, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Records.SecurityScoreData, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this SecurityScoreData to JSON. @@ -64336,47 +67798,45 @@ export namespace Records { /** Properties of a RecordAdd. */ interface IRecordAdd { - /** RecordAdd recordUid */ - recordUid?: (Uint8Array|null); + recordUid?: Uint8Array | null; /** RecordAdd recordKey */ - recordKey?: (Uint8Array|null); + recordKey?: Uint8Array | null; /** RecordAdd clientModifiedTime */ - clientModifiedTime?: (number|Long|null); + clientModifiedTime?: number | Long | null; /** RecordAdd data */ - data?: (Uint8Array|null); + data?: Uint8Array | null; /** RecordAdd nonSharedData */ - nonSharedData?: (Uint8Array|null); + nonSharedData?: Uint8Array | null; /** RecordAdd folderType */ - folderType?: (Records.RecordFolderType|null); + folderType?: Records.RecordFolderType | null; /** RecordAdd folderUid */ - folderUid?: (Uint8Array|null); + folderUid?: Uint8Array | null; /** RecordAdd folderKey */ - folderKey?: (Uint8Array|null); + folderKey?: Uint8Array | null; /** RecordAdd recordLinks */ - recordLinks?: (Records.IRecordLink[]|null); + recordLinks?: Records.IRecordLink[] | null; /** RecordAdd audit */ - audit?: (Records.IRecordAudit|null); + audit?: Records.IRecordAudit | null; /** RecordAdd securityData */ - securityData?: (Records.ISecurityData|null); + securityData?: Records.ISecurityData | null; /** RecordAdd securityScoreData */ - securityScoreData?: (Records.ISecurityScoreData|null); + securityScoreData?: Records.ISecurityScoreData | null; } /** Represents a RecordAdd. */ class RecordAdd implements IRecordAdd { - /** * Constructs a new RecordAdd. * @param [properties] Properties to set @@ -64390,7 +67850,7 @@ export namespace Records { public recordKey: Uint8Array; /** RecordAdd clientModifiedTime. */ - public clientModifiedTime: (number|Long); + public clientModifiedTime: number | Long; /** RecordAdd data. */ public data: Uint8Array; @@ -64411,13 +67871,13 @@ export namespace Records { public recordLinks: Records.IRecordLink[]; /** RecordAdd audit. */ - public audit?: (Records.IRecordAudit|null); + public audit?: Records.IRecordAudit | null; /** RecordAdd securityData. */ - public securityData?: (Records.ISecurityData|null); + public securityData?: Records.ISecurityData | null; /** RecordAdd securityScoreData. */ - public securityScoreData?: (Records.ISecurityScoreData|null); + public securityScoreData?: Records.ISecurityScoreData | null; /** * Creates a new RecordAdd instance using the specified properties. @@ -64450,7 +67910,7 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordAdd; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Records.RecordAdd; /** * Decodes a RecordAdd message from the specified reader or buffer, length delimited. @@ -64459,14 +67919,14 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.RecordAdd; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Records.RecordAdd; /** * Verifies a RecordAdd message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a RecordAdd message from a plain object. Also converts values to their respective internal types. @@ -64481,7 +67941,10 @@ export namespace Records { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.RecordAdd, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Records.RecordAdd, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this RecordAdd to JSON. @@ -64499,20 +67962,18 @@ export namespace Records { /** Properties of a RecordsAddRequest. */ interface IRecordsAddRequest { - /** RecordsAddRequest records */ - records?: (Records.IRecordAdd[]|null); + records?: Records.IRecordAdd[] | null; /** RecordsAddRequest clientTime */ - clientTime?: (number|Long|null); + clientTime?: number | Long | null; /** RecordsAddRequest securityDataKeyType */ - securityDataKeyType?: (Records.RecordKeyType|null); + securityDataKeyType?: Records.RecordKeyType | null; } /** Represents a RecordsAddRequest. */ class RecordsAddRequest implements IRecordsAddRequest { - /** * Constructs a new RecordsAddRequest. * @param [properties] Properties to set @@ -64523,7 +67984,7 @@ export namespace Records { public records: Records.IRecordAdd[]; /** RecordsAddRequest clientTime. */ - public clientTime: (number|Long); + public clientTime: number | Long; /** RecordsAddRequest securityDataKeyType. */ public securityDataKeyType: Records.RecordKeyType; @@ -64559,7 +68020,7 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordsAddRequest; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Records.RecordsAddRequest; /** * Decodes a RecordsAddRequest message from the specified reader or buffer, length delimited. @@ -64568,14 +68029,14 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.RecordsAddRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Records.RecordsAddRequest; /** * Verifies a RecordsAddRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a RecordsAddRequest message from a plain object. Also converts values to their respective internal types. @@ -64590,7 +68051,10 @@ export namespace Records { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.RecordsAddRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Records.RecordsAddRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this RecordsAddRequest to JSON. @@ -64608,41 +68072,39 @@ export namespace Records { /** Properties of a RecordUpdate. */ interface IRecordUpdate { - /** RecordUpdate recordUid */ - recordUid?: (Uint8Array|null); + recordUid?: Uint8Array | null; /** RecordUpdate clientModifiedTime */ - clientModifiedTime?: (number|Long|null); + clientModifiedTime?: number | Long | null; /** RecordUpdate revision */ - revision?: (number|Long|null); + revision?: number | Long | null; /** RecordUpdate data */ - data?: (Uint8Array|null); + data?: Uint8Array | null; /** RecordUpdate nonSharedData */ - nonSharedData?: (Uint8Array|null); + nonSharedData?: Uint8Array | null; /** RecordUpdate recordLinksAdd */ - recordLinksAdd?: (Records.IRecordLink[]|null); + recordLinksAdd?: Records.IRecordLink[] | null; /** RecordUpdate recordLinksRemove */ - recordLinksRemove?: (Uint8Array[]|null); + recordLinksRemove?: Uint8Array[] | null; /** RecordUpdate audit */ - audit?: (Records.IRecordAudit|null); + audit?: Records.IRecordAudit | null; /** RecordUpdate securityData */ - securityData?: (Records.ISecurityData|null); + securityData?: Records.ISecurityData | null; /** RecordUpdate securityScoreData */ - securityScoreData?: (Records.ISecurityScoreData|null); + securityScoreData?: Records.ISecurityScoreData | null; } /** Represents a RecordUpdate. */ class RecordUpdate implements IRecordUpdate { - /** * Constructs a new RecordUpdate. * @param [properties] Properties to set @@ -64653,10 +68115,10 @@ export namespace Records { public recordUid: Uint8Array; /** RecordUpdate clientModifiedTime. */ - public clientModifiedTime: (number|Long); + public clientModifiedTime: number | Long; /** RecordUpdate revision. */ - public revision: (number|Long); + public revision: number | Long; /** RecordUpdate data. */ public data: Uint8Array; @@ -64671,13 +68133,13 @@ export namespace Records { public recordLinksRemove: Uint8Array[]; /** RecordUpdate audit. */ - public audit?: (Records.IRecordAudit|null); + public audit?: Records.IRecordAudit | null; /** RecordUpdate securityData. */ - public securityData?: (Records.ISecurityData|null); + public securityData?: Records.ISecurityData | null; /** RecordUpdate securityScoreData. */ - public securityScoreData?: (Records.ISecurityScoreData|null); + public securityScoreData?: Records.ISecurityScoreData | null; /** * Creates a new RecordUpdate instance using the specified properties. @@ -64710,7 +68172,7 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordUpdate; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Records.RecordUpdate; /** * Decodes a RecordUpdate message from the specified reader or buffer, length delimited. @@ -64719,14 +68181,14 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.RecordUpdate; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Records.RecordUpdate; /** * Verifies a RecordUpdate message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a RecordUpdate message from a plain object. Also converts values to their respective internal types. @@ -64741,7 +68203,10 @@ export namespace Records { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.RecordUpdate, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Records.RecordUpdate, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this RecordUpdate to JSON. @@ -64759,20 +68224,18 @@ export namespace Records { /** Properties of a RecordsUpdateRequest. */ interface IRecordsUpdateRequest { - /** RecordsUpdateRequest records */ - records?: (Records.IRecordUpdate[]|null); + records?: Records.IRecordUpdate[] | null; /** RecordsUpdateRequest clientTime */ - clientTime?: (number|Long|null); + clientTime?: number | Long | null; /** RecordsUpdateRequest securityDataKeyType */ - securityDataKeyType?: (Records.RecordKeyType|null); + securityDataKeyType?: Records.RecordKeyType | null; } /** Represents a RecordsUpdateRequest. */ class RecordsUpdateRequest implements IRecordsUpdateRequest { - /** * Constructs a new RecordsUpdateRequest. * @param [properties] Properties to set @@ -64783,7 +68246,7 @@ export namespace Records { public records: Records.IRecordUpdate[]; /** RecordsUpdateRequest clientTime. */ - public clientTime: (number|Long); + public clientTime: number | Long; /** RecordsUpdateRequest securityDataKeyType. */ public securityDataKeyType: Records.RecordKeyType; @@ -64809,7 +68272,10 @@ export namespace Records { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Records.IRecordsUpdateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Records.IRecordsUpdateRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a RecordsUpdateRequest message from the specified reader or buffer. @@ -64819,7 +68285,7 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordsUpdateRequest; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Records.RecordsUpdateRequest; /** * Decodes a RecordsUpdateRequest message from the specified reader or buffer, length delimited. @@ -64828,14 +68294,14 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.RecordsUpdateRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Records.RecordsUpdateRequest; /** * Verifies a RecordsUpdateRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a RecordsUpdateRequest message from a plain object. Also converts values to their respective internal types. @@ -64850,7 +68316,10 @@ export namespace Records { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.RecordsUpdateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Records.RecordsUpdateRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this RecordsUpdateRequest to JSON. @@ -64868,29 +68337,27 @@ export namespace Records { /** Properties of a RecordFileForConversion. */ interface IRecordFileForConversion { - /** RecordFileForConversion recordUid */ - recordUid?: (Uint8Array|null); + recordUid?: Uint8Array | null; /** RecordFileForConversion fileFileId */ - fileFileId?: (string|null); + fileFileId?: string | null; /** RecordFileForConversion thumbFileId */ - thumbFileId?: (string|null); + thumbFileId?: string | null; /** RecordFileForConversion data */ - data?: (Uint8Array|null); + data?: Uint8Array | null; /** RecordFileForConversion recordKey */ - recordKey?: (Uint8Array|null); + recordKey?: Uint8Array | null; /** RecordFileForConversion linkKey */ - linkKey?: (Uint8Array|null); + linkKey?: Uint8Array | null; } /** Represents a RecordFileForConversion. */ class RecordFileForConversion implements IRecordFileForConversion { - /** * Constructs a new RecordFileForConversion. * @param [properties] Properties to set @@ -64936,7 +68403,10 @@ export namespace Records { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Records.IRecordFileForConversion, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Records.IRecordFileForConversion, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a RecordFileForConversion message from the specified reader or buffer. @@ -64946,7 +68416,7 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordFileForConversion; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Records.RecordFileForConversion; /** * Decodes a RecordFileForConversion message from the specified reader or buffer, length delimited. @@ -64955,14 +68425,14 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.RecordFileForConversion; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Records.RecordFileForConversion; /** * Verifies a RecordFileForConversion message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a RecordFileForConversion message from a plain object. Also converts values to their respective internal types. @@ -64977,7 +68447,10 @@ export namespace Records { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.RecordFileForConversion, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Records.RecordFileForConversion, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this RecordFileForConversion to JSON. @@ -64995,17 +68468,15 @@ export namespace Records { /** Properties of a RecordFolderForConversion. */ interface IRecordFolderForConversion { - /** RecordFolderForConversion folderUid */ - folderUid?: (Uint8Array|null); + folderUid?: Uint8Array | null; /** RecordFolderForConversion recordFolderKey */ - recordFolderKey?: (Uint8Array|null); + recordFolderKey?: Uint8Array | null; } /** Represents a RecordFolderForConversion. */ class RecordFolderForConversion implements IRecordFolderForConversion { - /** * Constructs a new RecordFolderForConversion. * @param [properties] Properties to set @@ -65039,7 +68510,10 @@ export namespace Records { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Records.IRecordFolderForConversion, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Records.IRecordFolderForConversion, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a RecordFolderForConversion message from the specified reader or buffer. @@ -65049,7 +68523,7 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordFolderForConversion; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Records.RecordFolderForConversion; /** * Decodes a RecordFolderForConversion message from the specified reader or buffer, length delimited. @@ -65058,14 +68532,14 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.RecordFolderForConversion; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Records.RecordFolderForConversion; /** * Verifies a RecordFolderForConversion message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a RecordFolderForConversion message from a plain object. Also converts values to their respective internal types. @@ -65080,7 +68554,10 @@ export namespace Records { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.RecordFolderForConversion, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Records.RecordFolderForConversion, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this RecordFolderForConversion to JSON. @@ -65098,35 +68575,33 @@ export namespace Records { /** Properties of a RecordConvertToV3. */ interface IRecordConvertToV3 { - /** RecordConvertToV3 recordUid */ - recordUid?: (Uint8Array|null); + recordUid?: Uint8Array | null; /** RecordConvertToV3 clientModifiedTime */ - clientModifiedTime?: (number|Long|null); + clientModifiedTime?: number | Long | null; /** RecordConvertToV3 revision */ - revision?: (number|Long|null); + revision?: number | Long | null; /** RecordConvertToV3 data */ - data?: (Uint8Array|null); + data?: Uint8Array | null; /** RecordConvertToV3 nonSharedData */ - nonSharedData?: (Uint8Array|null); + nonSharedData?: Uint8Array | null; /** RecordConvertToV3 audit */ - audit?: (Records.IRecordAudit|null); + audit?: Records.IRecordAudit | null; /** RecordConvertToV3 recordFile */ - recordFile?: (Records.IRecordFileForConversion[]|null); + recordFile?: Records.IRecordFileForConversion[] | null; /** RecordConvertToV3 folderKey */ - folderKey?: (Records.IRecordFolderForConversion[]|null); + folderKey?: Records.IRecordFolderForConversion[] | null; } /** Represents a RecordConvertToV3. */ class RecordConvertToV3 implements IRecordConvertToV3 { - /** * Constructs a new RecordConvertToV3. * @param [properties] Properties to set @@ -65137,10 +68612,10 @@ export namespace Records { public recordUid: Uint8Array; /** RecordConvertToV3 clientModifiedTime. */ - public clientModifiedTime: (number|Long); + public clientModifiedTime: number | Long; /** RecordConvertToV3 revision. */ - public revision: (number|Long); + public revision: number | Long; /** RecordConvertToV3 data. */ public data: Uint8Array; @@ -65149,7 +68624,7 @@ export namespace Records { public nonSharedData: Uint8Array; /** RecordConvertToV3 audit. */ - public audit?: (Records.IRecordAudit|null); + public audit?: Records.IRecordAudit | null; /** RecordConvertToV3 recordFile. */ public recordFile: Records.IRecordFileForConversion[]; @@ -65188,7 +68663,7 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordConvertToV3; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Records.RecordConvertToV3; /** * Decodes a RecordConvertToV3 message from the specified reader or buffer, length delimited. @@ -65197,14 +68672,14 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.RecordConvertToV3; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Records.RecordConvertToV3; /** * Verifies a RecordConvertToV3 message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a RecordConvertToV3 message from a plain object. Also converts values to their respective internal types. @@ -65219,7 +68694,10 @@ export namespace Records { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.RecordConvertToV3, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Records.RecordConvertToV3, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this RecordConvertToV3 to JSON. @@ -65237,17 +68715,15 @@ export namespace Records { /** Properties of a RecordsConvertToV3Request. */ interface IRecordsConvertToV3Request { - /** RecordsConvertToV3Request records */ - records?: (Records.IRecordConvertToV3[]|null); + records?: Records.IRecordConvertToV3[] | null; /** RecordsConvertToV3Request clientTime */ - clientTime?: (number|Long|null); + clientTime?: number | Long | null; } /** Represents a RecordsConvertToV3Request. */ class RecordsConvertToV3Request implements IRecordsConvertToV3Request { - /** * Constructs a new RecordsConvertToV3Request. * @param [properties] Properties to set @@ -65258,7 +68734,7 @@ export namespace Records { public records: Records.IRecordConvertToV3[]; /** RecordsConvertToV3Request clientTime. */ - public clientTime: (number|Long); + public clientTime: number | Long; /** * Creates a new RecordsConvertToV3Request instance using the specified properties. @@ -65281,7 +68757,10 @@ export namespace Records { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Records.IRecordsConvertToV3Request, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Records.IRecordsConvertToV3Request, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a RecordsConvertToV3Request message from the specified reader or buffer. @@ -65291,7 +68770,7 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordsConvertToV3Request; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Records.RecordsConvertToV3Request; /** * Decodes a RecordsConvertToV3Request message from the specified reader or buffer, length delimited. @@ -65300,14 +68779,14 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.RecordsConvertToV3Request; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Records.RecordsConvertToV3Request; /** * Verifies a RecordsConvertToV3Request message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a RecordsConvertToV3Request message from a plain object. Also converts values to their respective internal types. @@ -65322,7 +68801,10 @@ export namespace Records { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.RecordsConvertToV3Request, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Records.RecordsConvertToV3Request, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this RecordsConvertToV3Request to JSON. @@ -65340,14 +68822,12 @@ export namespace Records { /** Properties of a RecordsRemoveRequest. */ interface IRecordsRemoveRequest { - /** RecordsRemoveRequest records */ - records?: (Uint8Array[]|null); + records?: Uint8Array[] | null; } /** Represents a RecordsRemoveRequest. */ class RecordsRemoveRequest implements IRecordsRemoveRequest { - /** * Constructs a new RecordsRemoveRequest. * @param [properties] Properties to set @@ -65378,7 +68858,10 @@ export namespace Records { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Records.IRecordsRemoveRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Records.IRecordsRemoveRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a RecordsRemoveRequest message from the specified reader or buffer. @@ -65388,7 +68871,7 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordsRemoveRequest; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Records.RecordsRemoveRequest; /** * Decodes a RecordsRemoveRequest message from the specified reader or buffer, length delimited. @@ -65397,14 +68880,14 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.RecordsRemoveRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Records.RecordsRemoveRequest; /** * Verifies a RecordsRemoveRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a RecordsRemoveRequest message from a plain object. Also converts values to their respective internal types. @@ -65419,7 +68902,10 @@ export namespace Records { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.RecordsRemoveRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Records.RecordsRemoveRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this RecordsRemoveRequest to JSON. @@ -65437,17 +68923,15 @@ export namespace Records { /** Properties of a RecordRevert. */ interface IRecordRevert { - /** RecordRevert recordUid */ - recordUid?: (Uint8Array|null); + recordUid?: Uint8Array | null; /** RecordRevert revertToRevision */ - revertToRevision?: (number|Long|null); + revertToRevision?: number | Long | null; } /** Represents a RecordRevert. */ class RecordRevert implements IRecordRevert { - /** * Constructs a new RecordRevert. * @param [properties] Properties to set @@ -65458,7 +68942,7 @@ export namespace Records { public recordUid: Uint8Array; /** RecordRevert revertToRevision. */ - public revertToRevision: (number|Long); + public revertToRevision: number | Long; /** * Creates a new RecordRevert instance using the specified properties. @@ -65491,7 +68975,7 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordRevert; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Records.RecordRevert; /** * Decodes a RecordRevert message from the specified reader or buffer, length delimited. @@ -65500,14 +68984,14 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.RecordRevert; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Records.RecordRevert; /** * Verifies a RecordRevert message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a RecordRevert message from a plain object. Also converts values to their respective internal types. @@ -65522,7 +69006,10 @@ export namespace Records { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.RecordRevert, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Records.RecordRevert, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this RecordRevert to JSON. @@ -65540,14 +69027,12 @@ export namespace Records { /** Properties of a RecordsRevertRequest. */ interface IRecordsRevertRequest { - /** RecordsRevertRequest records */ - records?: (Records.IRecordRevert[]|null); + records?: Records.IRecordRevert[] | null; } /** Represents a RecordsRevertRequest. */ class RecordsRevertRequest implements IRecordsRevertRequest { - /** * Constructs a new RecordsRevertRequest. * @param [properties] Properties to set @@ -65578,7 +69063,10 @@ export namespace Records { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Records.IRecordsRevertRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Records.IRecordsRevertRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a RecordsRevertRequest message from the specified reader or buffer. @@ -65588,7 +69076,7 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordsRevertRequest; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Records.RecordsRevertRequest; /** * Decodes a RecordsRevertRequest message from the specified reader or buffer, length delimited. @@ -65597,14 +69085,14 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.RecordsRevertRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Records.RecordsRevertRequest; /** * Verifies a RecordsRevertRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a RecordsRevertRequest message from a plain object. Also converts values to their respective internal types. @@ -65619,7 +69107,10 @@ export namespace Records { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.RecordsRevertRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Records.RecordsRevertRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this RecordsRevertRequest to JSON. @@ -65649,25 +69140,23 @@ export namespace Records { RS_ATTACHMENT_NOT_SHAREABLE = 9, RS_FILE_LIMIT_REACHED = 10, RS_SIZE_EXCEEDED_LIMIT = 11, - RS_ONLY_OWNER_CAN_MODIFY_SCRIPTS = 12 + RS_ONLY_OWNER_CAN_MODIFY_SCRIPTS = 12, } /** Properties of a RecordLinkError. */ interface IRecordLinkError { - /** RecordLinkError recordUid */ - recordUid?: (Uint8Array|null); + recordUid?: Uint8Array | null; /** RecordLinkError status */ - status?: (Records.RecordModifyResult|null); + status?: Records.RecordModifyResult | null; /** RecordLinkError message */ - message?: (string|null); + message?: string | null; } /** Represents a RecordLinkError. */ class RecordLinkError implements IRecordLinkError { - /** * Constructs a new RecordLinkError. * @param [properties] Properties to set @@ -65714,7 +69203,7 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordLinkError; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Records.RecordLinkError; /** * Decodes a RecordLinkError message from the specified reader or buffer, length delimited. @@ -65723,14 +69212,14 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.RecordLinkError; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Records.RecordLinkError; /** * Verifies a RecordLinkError message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a RecordLinkError message from a plain object. Also converts values to their respective internal types. @@ -65745,7 +69234,10 @@ export namespace Records { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.RecordLinkError, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Records.RecordLinkError, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this RecordLinkError to JSON. @@ -65763,23 +69255,21 @@ export namespace Records { /** Properties of a RecordModifyStatus. */ interface IRecordModifyStatus { - /** RecordModifyStatus recordUid */ - recordUid?: (Uint8Array|null); + recordUid?: Uint8Array | null; /** RecordModifyStatus status */ - status?: (Records.RecordModifyResult|null); + status?: Records.RecordModifyResult | null; /** RecordModifyStatus message */ - message?: (string|null); + message?: string | null; /** RecordModifyStatus linkErrors */ - linkErrors?: (Records.IRecordLinkError[]|null); + linkErrors?: Records.IRecordLinkError[] | null; } /** Represents a RecordModifyStatus. */ class RecordModifyStatus implements IRecordModifyStatus { - /** * Constructs a new RecordModifyStatus. * @param [properties] Properties to set @@ -65819,7 +69309,10 @@ export namespace Records { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Records.IRecordModifyStatus, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Records.IRecordModifyStatus, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a RecordModifyStatus message from the specified reader or buffer. @@ -65829,7 +69322,7 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordModifyStatus; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Records.RecordModifyStatus; /** * Decodes a RecordModifyStatus message from the specified reader or buffer, length delimited. @@ -65838,14 +69331,14 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.RecordModifyStatus; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Records.RecordModifyStatus; /** * Verifies a RecordModifyStatus message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a RecordModifyStatus message from a plain object. Also converts values to their respective internal types. @@ -65860,7 +69353,10 @@ export namespace Records { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.RecordModifyStatus, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Records.RecordModifyStatus, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this RecordModifyStatus to JSON. @@ -65878,17 +69374,15 @@ export namespace Records { /** Properties of a RecordsModifyResponse. */ interface IRecordsModifyResponse { - /** RecordsModifyResponse records */ - records?: (Records.IRecordModifyStatus[]|null); + records?: Records.IRecordModifyStatus[] | null; /** RecordsModifyResponse revision */ - revision?: (number|Long|null); + revision?: number | Long | null; } /** Represents a RecordsModifyResponse. */ class RecordsModifyResponse implements IRecordsModifyResponse { - /** * Constructs a new RecordsModifyResponse. * @param [properties] Properties to set @@ -65899,7 +69393,7 @@ export namespace Records { public records: Records.IRecordModifyStatus[]; /** RecordsModifyResponse revision. */ - public revision: (number|Long); + public revision: number | Long; /** * Creates a new RecordsModifyResponse instance using the specified properties. @@ -65922,7 +69416,10 @@ export namespace Records { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Records.IRecordsModifyResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Records.IRecordsModifyResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a RecordsModifyResponse message from the specified reader or buffer. @@ -65932,7 +69429,7 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordsModifyResponse; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Records.RecordsModifyResponse; /** * Decodes a RecordsModifyResponse message from the specified reader or buffer, length delimited. @@ -65941,14 +69438,14 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.RecordsModifyResponse; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Records.RecordsModifyResponse; /** * Verifies a RecordsModifyResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a RecordsModifyResponse message from a plain object. Also converts values to their respective internal types. @@ -65963,7 +69460,10 @@ export namespace Records { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.RecordsModifyResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Records.RecordsModifyResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this RecordsModifyResponse to JSON. @@ -65981,23 +69481,21 @@ export namespace Records { /** Properties of a RecordAddAuditData. */ interface IRecordAddAuditData { - /** RecordAddAuditData recordUid */ - recordUid?: (Uint8Array|null); + recordUid?: Uint8Array | null; /** RecordAddAuditData revision */ - revision?: (number|Long|null); + revision?: number | Long | null; /** RecordAddAuditData data */ - data?: (Uint8Array|null); + data?: Uint8Array | null; /** RecordAddAuditData version */ - version?: (number|null); + version?: number | null; } /** Represents a RecordAddAuditData. */ class RecordAddAuditData implements IRecordAddAuditData { - /** * Constructs a new RecordAddAuditData. * @param [properties] Properties to set @@ -66008,7 +69506,7 @@ export namespace Records { public recordUid: Uint8Array; /** RecordAddAuditData revision. */ - public revision: (number|Long); + public revision: number | Long; /** RecordAddAuditData data. */ public data: Uint8Array; @@ -66037,7 +69535,10 @@ export namespace Records { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Records.IRecordAddAuditData, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Records.IRecordAddAuditData, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a RecordAddAuditData message from the specified reader or buffer. @@ -66047,7 +69548,7 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordAddAuditData; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Records.RecordAddAuditData; /** * Decodes a RecordAddAuditData message from the specified reader or buffer, length delimited. @@ -66056,14 +69557,14 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.RecordAddAuditData; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Records.RecordAddAuditData; /** * Verifies a RecordAddAuditData message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a RecordAddAuditData message from a plain object. Also converts values to their respective internal types. @@ -66078,7 +69579,10 @@ export namespace Records { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.RecordAddAuditData, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Records.RecordAddAuditData, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this RecordAddAuditData to JSON. @@ -66096,14 +69600,12 @@ export namespace Records { /** Properties of an AddAuditDataRequest. */ interface IAddAuditDataRequest { - /** AddAuditDataRequest records */ - records?: (Records.IRecordAddAuditData[]|null); + records?: Records.IRecordAddAuditData[] | null; } /** Represents an AddAuditDataRequest. */ class AddAuditDataRequest implements IAddAuditDataRequest { - /** * Constructs a new AddAuditDataRequest. * @param [properties] Properties to set @@ -66134,7 +69636,10 @@ export namespace Records { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Records.IAddAuditDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Records.IAddAuditDataRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes an AddAuditDataRequest message from the specified reader or buffer. @@ -66144,7 +69649,7 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.AddAuditDataRequest; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Records.AddAuditDataRequest; /** * Decodes an AddAuditDataRequest message from the specified reader or buffer, length delimited. @@ -66153,14 +69658,14 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.AddAuditDataRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Records.AddAuditDataRequest; /** * Verifies an AddAuditDataRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an AddAuditDataRequest message from a plain object. Also converts values to their respective internal types. @@ -66175,7 +69680,10 @@ export namespace Records { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.AddAuditDataRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Records.AddAuditDataRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this AddAuditDataRequest to JSON. @@ -66193,29 +69701,27 @@ export namespace Records { /** Properties of a File. */ interface IFile { - /** File recordUid */ - recordUid?: (Uint8Array|null); + recordUid?: Uint8Array | null; /** File recordKey */ - recordKey?: (Uint8Array|null); + recordKey?: Uint8Array | null; /** File data */ - data?: (Uint8Array|null); + data?: Uint8Array | null; /** File fileSize */ - fileSize?: (number|Long|null); + fileSize?: number | Long | null; /** File thumbSize */ - thumbSize?: (number|null); + thumbSize?: number | null; /** File isScript */ - isScript?: (boolean|null); + isScript?: boolean | null; } /** Represents a File. */ class File implements IFile { - /** * Constructs a new File. * @param [properties] Properties to set @@ -66232,7 +69738,7 @@ export namespace Records { public data: Uint8Array; /** File fileSize. */ - public fileSize: (number|Long); + public fileSize: number | Long; /** File thumbSize. */ public thumbSize: number; @@ -66271,7 +69777,7 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.File; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Records.File; /** * Decodes a File message from the specified reader or buffer, length delimited. @@ -66280,14 +69786,14 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.File; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Records.File; /** * Verifies a File message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a File message from a plain object. Also converts values to their respective internal types. @@ -66320,17 +69826,15 @@ export namespace Records { /** Properties of a FilesAddRequest. */ interface IFilesAddRequest { - /** FilesAddRequest files */ - files?: (Records.IFile[]|null); + files?: Records.IFile[] | null; /** FilesAddRequest clientTime */ - clientTime?: (number|Long|null); + clientTime?: number | Long | null; } /** Represents a FilesAddRequest. */ class FilesAddRequest implements IFilesAddRequest { - /** * Constructs a new FilesAddRequest. * @param [properties] Properties to set @@ -66341,7 +69845,7 @@ export namespace Records { public files: Records.IFile[]; /** FilesAddRequest clientTime. */ - public clientTime: (number|Long); + public clientTime: number | Long; /** * Creates a new FilesAddRequest instance using the specified properties. @@ -66374,7 +69878,7 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.FilesAddRequest; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Records.FilesAddRequest; /** * Decodes a FilesAddRequest message from the specified reader or buffer, length delimited. @@ -66383,14 +69887,14 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.FilesAddRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Records.FilesAddRequest; /** * Verifies a FilesAddRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a FilesAddRequest message from a plain object. Also converts values to their respective internal types. @@ -66405,7 +69909,10 @@ export namespace Records { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.FilesAddRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Records.FilesAddRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this FilesAddRequest to JSON. @@ -66424,34 +69931,32 @@ export namespace Records { /** FileAddResult enum. */ enum FileAddResult { FA_SUCCESS = 0, - FA_ERROR = 1 + FA_ERROR = 1, } /** Properties of a FileAddStatus. */ interface IFileAddStatus { - /** FileAddStatus recordUid */ - recordUid?: (Uint8Array|null); + recordUid?: Uint8Array | null; /** FileAddStatus status */ - status?: (Records.FileAddResult|null); + status?: Records.FileAddResult | null; /** FileAddStatus url */ - url?: (string|null); + url?: string | null; /** FileAddStatus parameters */ - parameters?: (string|null); + parameters?: string | null; /** FileAddStatus thumbnailParameters */ - thumbnailParameters?: (string|null); + thumbnailParameters?: string | null; /** FileAddStatus successStatusCode */ - successStatusCode?: (number|null); + successStatusCode?: number | null; } /** Represents a FileAddStatus. */ class FileAddStatus implements IFileAddStatus { - /** * Constructs a new FileAddStatus. * @param [properties] Properties to set @@ -66507,7 +70012,7 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.FileAddStatus; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Records.FileAddStatus; /** * Decodes a FileAddStatus message from the specified reader or buffer, length delimited. @@ -66516,14 +70021,14 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.FileAddStatus; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Records.FileAddStatus; /** * Verifies a FileAddStatus message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a FileAddStatus message from a plain object. Also converts values to their respective internal types. @@ -66538,7 +70043,10 @@ export namespace Records { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.FileAddStatus, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Records.FileAddStatus, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this FileAddStatus to JSON. @@ -66556,17 +70064,15 @@ export namespace Records { /** Properties of a FilesAddResponse. */ interface IFilesAddResponse { - /** FilesAddResponse files */ - files?: (Records.IFileAddStatus[]|null); + files?: Records.IFileAddStatus[] | null; /** FilesAddResponse revision */ - revision?: (number|Long|null); + revision?: number | Long | null; } /** Represents a FilesAddResponse. */ class FilesAddResponse implements IFilesAddResponse { - /** * Constructs a new FilesAddResponse. * @param [properties] Properties to set @@ -66577,7 +70083,7 @@ export namespace Records { public files: Records.IFileAddStatus[]; /** FilesAddResponse revision. */ - public revision: (number|Long); + public revision: number | Long; /** * Creates a new FilesAddResponse instance using the specified properties. @@ -66610,7 +70116,7 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.FilesAddResponse; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Records.FilesAddResponse; /** * Decodes a FilesAddResponse message from the specified reader or buffer, length delimited. @@ -66619,14 +70125,14 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.FilesAddResponse; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Records.FilesAddResponse; /** * Verifies a FilesAddResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a FilesAddResponse message from a plain object. Also converts values to their respective internal types. @@ -66641,7 +70147,10 @@ export namespace Records { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.FilesAddResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Records.FilesAddResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this FilesAddResponse to JSON. @@ -66659,20 +70168,18 @@ export namespace Records { /** Properties of a FilesGetRequest. */ interface IFilesGetRequest { - /** FilesGetRequest recordUids */ - recordUids?: (Uint8Array[]|null); + recordUids?: Uint8Array[] | null; /** FilesGetRequest forThumbnails */ - forThumbnails?: (boolean|null); + forThumbnails?: boolean | null; /** FilesGetRequest emergencyAccessAccountOwner */ - emergencyAccessAccountOwner?: (string|null); + emergencyAccessAccountOwner?: string | null; } /** Represents a FilesGetRequest. */ class FilesGetRequest implements IFilesGetRequest { - /** * Constructs a new FilesGetRequest. * @param [properties] Properties to set @@ -66719,7 +70226,7 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.FilesGetRequest; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Records.FilesGetRequest; /** * Decodes a FilesGetRequest message from the specified reader or buffer, length delimited. @@ -66728,14 +70235,14 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.FilesGetRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Records.FilesGetRequest; /** * Verifies a FilesGetRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a FilesGetRequest message from a plain object. Also converts values to their respective internal types. @@ -66750,7 +70257,10 @@ export namespace Records { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.FilesGetRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Records.FilesGetRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this FilesGetRequest to JSON. @@ -66770,31 +70280,29 @@ export namespace Records { enum FileGetResult { FG_SUCCESS = 0, FG_ERROR = 1, - FG_ACCESS_DENIED = 2 + FG_ACCESS_DENIED = 2, } /** Properties of a FileGetStatus. */ interface IFileGetStatus { - /** FileGetStatus recordUid */ - recordUid?: (Uint8Array|null); + recordUid?: Uint8Array | null; /** FileGetStatus status */ - status?: (Records.FileGetResult|null); + status?: Records.FileGetResult | null; /** FileGetStatus url */ - url?: (string|null); + url?: string | null; /** FileGetStatus successStatusCode */ - successStatusCode?: (number|null); + successStatusCode?: number | null; /** FileGetStatus fileKeyType */ - fileKeyType?: (Records.RecordKeyType|null); + fileKeyType?: Records.RecordKeyType | null; } /** Represents a FileGetStatus. */ class FileGetStatus implements IFileGetStatus { - /** * Constructs a new FileGetStatus. * @param [properties] Properties to set @@ -66847,7 +70355,7 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.FileGetStatus; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Records.FileGetStatus; /** * Decodes a FileGetStatus message from the specified reader or buffer, length delimited. @@ -66856,14 +70364,14 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.FileGetStatus; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Records.FileGetStatus; /** * Verifies a FileGetStatus message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a FileGetStatus message from a plain object. Also converts values to their respective internal types. @@ -66878,7 +70386,10 @@ export namespace Records { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.FileGetStatus, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Records.FileGetStatus, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this FileGetStatus to JSON. @@ -66896,14 +70407,12 @@ export namespace Records { /** Properties of a FilesGetResponse. */ interface IFilesGetResponse { - /** FilesGetResponse files */ - files?: (Records.IFileGetStatus[]|null); + files?: Records.IFileGetStatus[] | null; } /** Represents a FilesGetResponse. */ class FilesGetResponse implements IFilesGetResponse { - /** * Constructs a new FilesGetResponse. * @param [properties] Properties to set @@ -66944,7 +70453,7 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.FilesGetResponse; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Records.FilesGetResponse; /** * Decodes a FilesGetResponse message from the specified reader or buffer, length delimited. @@ -66953,14 +70462,14 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.FilesGetResponse; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Records.FilesGetResponse; /** * Verifies a FilesGetResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a FilesGetResponse message from a plain object. Also converts values to their respective internal types. @@ -66975,7 +70484,10 @@ export namespace Records { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.FilesGetResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Records.FilesGetResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this FilesGetResponse to JSON. @@ -66993,26 +70505,24 @@ export namespace Records { /** Properties of an ApplicationAddRequest. */ interface IApplicationAddRequest { - /** ApplicationAddRequest appUid */ - appUid?: (Uint8Array|null); + appUid?: Uint8Array | null; /** ApplicationAddRequest recordKey */ - recordKey?: (Uint8Array|null); + recordKey?: Uint8Array | null; /** ApplicationAddRequest clientModifiedTime */ - clientModifiedTime?: (number|Long|null); + clientModifiedTime?: number | Long | null; /** ApplicationAddRequest data */ - data?: (Uint8Array|null); + data?: Uint8Array | null; /** ApplicationAddRequest audit */ - audit?: (Records.IRecordAudit|null); + audit?: Records.IRecordAudit | null; } /** Represents an ApplicationAddRequest. */ class ApplicationAddRequest implements IApplicationAddRequest { - /** * Constructs a new ApplicationAddRequest. * @param [properties] Properties to set @@ -67026,13 +70536,13 @@ export namespace Records { public recordKey: Uint8Array; /** ApplicationAddRequest clientModifiedTime. */ - public clientModifiedTime: (number|Long); + public clientModifiedTime: number | Long; /** ApplicationAddRequest data. */ public data: Uint8Array; /** ApplicationAddRequest audit. */ - public audit?: (Records.IRecordAudit|null); + public audit?: Records.IRecordAudit | null; /** * Creates a new ApplicationAddRequest instance using the specified properties. @@ -67055,7 +70565,10 @@ export namespace Records { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Records.IApplicationAddRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Records.IApplicationAddRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes an ApplicationAddRequest message from the specified reader or buffer. @@ -67065,7 +70578,7 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.ApplicationAddRequest; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Records.ApplicationAddRequest; /** * Decodes an ApplicationAddRequest message from the specified reader or buffer, length delimited. @@ -67074,14 +70587,14 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.ApplicationAddRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Records.ApplicationAddRequest; /** * Verifies an ApplicationAddRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an ApplicationAddRequest message from a plain object. Also converts values to their respective internal types. @@ -67096,7 +70609,10 @@ export namespace Records { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.ApplicationAddRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Records.ApplicationAddRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this ApplicationAddRequest to JSON. @@ -67116,25 +70632,23 @@ export namespace Records { enum RecordDetailsInclude { DATA_PLUS_SHARE = 0, DATA_ONLY = 1, - SHARE_ONLY = 2 + SHARE_ONLY = 2, } /** Properties of a GetRecordDataWithAccessInfoRequest. */ interface IGetRecordDataWithAccessInfoRequest { - /** GetRecordDataWithAccessInfoRequest clientTime */ - clientTime?: (number|Long|null); + clientTime?: number | Long | null; /** GetRecordDataWithAccessInfoRequest recordUid */ - recordUid?: (Uint8Array[]|null); + recordUid?: Uint8Array[] | null; /** GetRecordDataWithAccessInfoRequest recordDetailsInclude */ - recordDetailsInclude?: (Records.RecordDetailsInclude|null); + recordDetailsInclude?: Records.RecordDetailsInclude | null; } /** Represents a GetRecordDataWithAccessInfoRequest. */ class GetRecordDataWithAccessInfoRequest implements IGetRecordDataWithAccessInfoRequest { - /** * Constructs a new GetRecordDataWithAccessInfoRequest. * @param [properties] Properties to set @@ -67142,7 +70656,7 @@ export namespace Records { constructor(properties?: Records.IGetRecordDataWithAccessInfoRequest); /** GetRecordDataWithAccessInfoRequest clientTime. */ - public clientTime: (number|Long); + public clientTime: number | Long; /** GetRecordDataWithAccessInfoRequest recordUid. */ public recordUid: Uint8Array[]; @@ -67155,7 +70669,9 @@ export namespace Records { * @param [properties] Properties to set * @returns GetRecordDataWithAccessInfoRequest instance */ - public static create(properties?: Records.IGetRecordDataWithAccessInfoRequest): Records.GetRecordDataWithAccessInfoRequest; + public static create( + properties?: Records.IGetRecordDataWithAccessInfoRequest + ): Records.GetRecordDataWithAccessInfoRequest; /** * Encodes the specified GetRecordDataWithAccessInfoRequest message. Does not implicitly {@link Records.GetRecordDataWithAccessInfoRequest.verify|verify} messages. @@ -67163,7 +70679,10 @@ export namespace Records { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Records.IGetRecordDataWithAccessInfoRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Records.IGetRecordDataWithAccessInfoRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified GetRecordDataWithAccessInfoRequest message, length delimited. Does not implicitly {@link Records.GetRecordDataWithAccessInfoRequest.verify|verify} messages. @@ -67171,7 +70690,10 @@ export namespace Records { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Records.IGetRecordDataWithAccessInfoRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Records.IGetRecordDataWithAccessInfoRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a GetRecordDataWithAccessInfoRequest message from the specified reader or buffer. @@ -67181,7 +70703,10 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.GetRecordDataWithAccessInfoRequest; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Records.GetRecordDataWithAccessInfoRequest; /** * Decodes a GetRecordDataWithAccessInfoRequest message from the specified reader or buffer, length delimited. @@ -67190,14 +70715,16 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.GetRecordDataWithAccessInfoRequest; + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array + ): Records.GetRecordDataWithAccessInfoRequest; /** * Verifies a GetRecordDataWithAccessInfoRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a GetRecordDataWithAccessInfoRequest message from a plain object. Also converts values to their respective internal types. @@ -67212,7 +70739,10 @@ export namespace Records { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.GetRecordDataWithAccessInfoRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Records.GetRecordDataWithAccessInfoRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this GetRecordDataWithAccessInfoRequest to JSON. @@ -67230,41 +70760,39 @@ export namespace Records { /** Properties of a UserPermission. */ interface IUserPermission { - /** UserPermission username */ - username?: (string|null); + username?: string | null; /** UserPermission owner */ - owner?: (boolean|null); + owner?: boolean | null; /** UserPermission shareAdmin */ - shareAdmin?: (boolean|null); + shareAdmin?: boolean | null; /** UserPermission sharable */ - sharable?: (boolean|null); + sharable?: boolean | null; /** UserPermission editable */ - editable?: (boolean|null); + editable?: boolean | null; /** UserPermission awaitingApproval */ - awaitingApproval?: (boolean|null); + awaitingApproval?: boolean | null; /** UserPermission expiration */ - expiration?: (number|Long|null); + expiration?: number | Long | null; /** UserPermission accountUid */ - accountUid?: (Uint8Array|null); + accountUid?: Uint8Array | null; /** UserPermission timerNotificationType */ - timerNotificationType?: (Records.TimerNotificationType|null); + timerNotificationType?: Records.TimerNotificationType | null; /** UserPermission rotateOnExpiration */ - rotateOnExpiration?: (boolean|null); + rotateOnExpiration?: boolean | null; } /** Represents a UserPermission. */ class UserPermission implements IUserPermission { - /** * Constructs a new UserPermission. * @param [properties] Properties to set @@ -67290,7 +70818,7 @@ export namespace Records { public awaitingApproval: boolean; /** UserPermission expiration. */ - public expiration: (number|Long); + public expiration: number | Long; /** UserPermission accountUid. */ public accountUid: Uint8Array; @@ -67332,7 +70860,7 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.UserPermission; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Records.UserPermission; /** * Decodes a UserPermission message from the specified reader or buffer, length delimited. @@ -67341,14 +70869,14 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.UserPermission; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Records.UserPermission; /** * Verifies a UserPermission message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a UserPermission message from a plain object. Also converts values to their respective internal types. @@ -67363,7 +70891,10 @@ export namespace Records { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.UserPermission, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Records.UserPermission, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this UserPermission to JSON. @@ -67381,32 +70912,30 @@ export namespace Records { /** Properties of a SharedFolderPermission. */ interface ISharedFolderPermission { - /** SharedFolderPermission sharedFolderUid */ - sharedFolderUid?: (Uint8Array|null); + sharedFolderUid?: Uint8Array | null; /** SharedFolderPermission resharable */ - resharable?: (boolean|null); + resharable?: boolean | null; /** SharedFolderPermission editable */ - editable?: (boolean|null); + editable?: boolean | null; /** SharedFolderPermission revision */ - revision?: (number|Long|null); + revision?: number | Long | null; /** SharedFolderPermission expiration */ - expiration?: (number|Long|null); + expiration?: number | Long | null; /** SharedFolderPermission timerNotificationType */ - timerNotificationType?: (Records.TimerNotificationType|null); + timerNotificationType?: Records.TimerNotificationType | null; /** SharedFolderPermission rotateOnExpiration */ - rotateOnExpiration?: (boolean|null); + rotateOnExpiration?: boolean | null; } /** Represents a SharedFolderPermission. */ class SharedFolderPermission implements ISharedFolderPermission { - /** * Constructs a new SharedFolderPermission. * @param [properties] Properties to set @@ -67423,10 +70952,10 @@ export namespace Records { public editable: boolean; /** SharedFolderPermission revision. */ - public revision: (number|Long); + public revision: number | Long; /** SharedFolderPermission expiration. */ - public expiration: (number|Long); + public expiration: number | Long; /** SharedFolderPermission timerNotificationType. */ public timerNotificationType: Records.TimerNotificationType; @@ -67455,7 +70984,10 @@ export namespace Records { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Records.ISharedFolderPermission, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Records.ISharedFolderPermission, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a SharedFolderPermission message from the specified reader or buffer. @@ -67465,7 +70997,7 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.SharedFolderPermission; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Records.SharedFolderPermission; /** * Decodes a SharedFolderPermission message from the specified reader or buffer, length delimited. @@ -67474,14 +71006,14 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.SharedFolderPermission; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Records.SharedFolderPermission; /** * Verifies a SharedFolderPermission message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a SharedFolderPermission message from a plain object. Also converts values to their respective internal types. @@ -67496,7 +71028,10 @@ export namespace Records { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.SharedFolderPermission, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Records.SharedFolderPermission, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this SharedFolderPermission to JSON. @@ -67514,53 +71049,51 @@ export namespace Records { /** Properties of a RecordData. */ interface IRecordData { - /** RecordData revision */ - revision?: (number|Long|null); + revision?: number | Long | null; /** RecordData version */ - version?: (number|null); + version?: number | null; /** RecordData shared */ - shared?: (boolean|null); + shared?: boolean | null; /** RecordData encryptedRecordData */ - encryptedRecordData?: (string|null); + encryptedRecordData?: string | null; /** RecordData encryptedExtraData */ - encryptedExtraData?: (string|null); + encryptedExtraData?: string | null; /** RecordData clientModifiedTime */ - clientModifiedTime?: (number|Long|null); + clientModifiedTime?: number | Long | null; /** RecordData nonSharedData */ - nonSharedData?: (string|null); + nonSharedData?: string | null; /** RecordData linkedRecordData */ - linkedRecordData?: (Records.IRecordData[]|null); + linkedRecordData?: Records.IRecordData[] | null; /** RecordData fileId */ - fileId?: (Uint8Array[]|null); + fileId?: Uint8Array[] | null; /** RecordData fileSize */ - fileSize?: (number|Long|null); + fileSize?: number | Long | null; /** RecordData thumbnailSize */ - thumbnailSize?: (number|Long|null); + thumbnailSize?: number | Long | null; /** RecordData recordKeyType */ - recordKeyType?: (Records.RecordKeyType|null); + recordKeyType?: Records.RecordKeyType | null; /** RecordData recordKey */ - recordKey?: (Uint8Array|null); + recordKey?: Uint8Array | null; /** RecordData recordUid */ - recordUid?: (Uint8Array|null); + recordUid?: Uint8Array | null; } /** Represents a RecordData. */ class RecordData implements IRecordData { - /** * Constructs a new RecordData. * @param [properties] Properties to set @@ -67568,7 +71101,7 @@ export namespace Records { constructor(properties?: Records.IRecordData); /** RecordData revision. */ - public revision: (number|Long); + public revision: number | Long; /** RecordData version. */ public version: number; @@ -67583,7 +71116,7 @@ export namespace Records { public encryptedExtraData: string; /** RecordData clientModifiedTime. */ - public clientModifiedTime: (number|Long); + public clientModifiedTime: number | Long; /** RecordData nonSharedData. */ public nonSharedData: string; @@ -67595,10 +71128,10 @@ export namespace Records { public fileId: Uint8Array[]; /** RecordData fileSize. */ - public fileSize: (number|Long); + public fileSize: number | Long; /** RecordData thumbnailSize. */ - public thumbnailSize: (number|Long); + public thumbnailSize: number | Long; /** RecordData recordKeyType. */ public recordKeyType: Records.RecordKeyType; @@ -67640,7 +71173,7 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordData; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Records.RecordData; /** * Decodes a RecordData message from the specified reader or buffer, length delimited. @@ -67649,14 +71182,14 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.RecordData; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Records.RecordData; /** * Verifies a RecordData message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a RecordData message from a plain object. Also converts values to their respective internal types. @@ -67671,7 +71204,10 @@ export namespace Records { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.RecordData, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Records.RecordData, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this RecordData to JSON. @@ -67689,23 +71225,21 @@ export namespace Records { /** Properties of a RecordDataWithAccessInfo. */ interface IRecordDataWithAccessInfo { - /** RecordDataWithAccessInfo recordUid */ - recordUid?: (Uint8Array|null); + recordUid?: Uint8Array | null; /** RecordDataWithAccessInfo recordData */ - recordData?: (Records.IRecordData|null); + recordData?: Records.IRecordData | null; /** RecordDataWithAccessInfo userPermission */ - userPermission?: (Records.IUserPermission[]|null); + userPermission?: Records.IUserPermission[] | null; /** RecordDataWithAccessInfo sharedFolderPermission */ - sharedFolderPermission?: (Records.ISharedFolderPermission[]|null); + sharedFolderPermission?: Records.ISharedFolderPermission[] | null; } /** Represents a RecordDataWithAccessInfo. */ class RecordDataWithAccessInfo implements IRecordDataWithAccessInfo { - /** * Constructs a new RecordDataWithAccessInfo. * @param [properties] Properties to set @@ -67716,7 +71250,7 @@ export namespace Records { public recordUid: Uint8Array; /** RecordDataWithAccessInfo recordData. */ - public recordData?: (Records.IRecordData|null); + public recordData?: Records.IRecordData | null; /** RecordDataWithAccessInfo userPermission. */ public userPermission: Records.IUserPermission[]; @@ -67745,7 +71279,10 @@ export namespace Records { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Records.IRecordDataWithAccessInfo, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Records.IRecordDataWithAccessInfo, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a RecordDataWithAccessInfo message from the specified reader or buffer. @@ -67755,7 +71292,7 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordDataWithAccessInfo; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Records.RecordDataWithAccessInfo; /** * Decodes a RecordDataWithAccessInfo message from the specified reader or buffer, length delimited. @@ -67764,14 +71301,14 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.RecordDataWithAccessInfo; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Records.RecordDataWithAccessInfo; /** * Verifies a RecordDataWithAccessInfo message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a RecordDataWithAccessInfo message from a plain object. Also converts values to their respective internal types. @@ -67786,7 +71323,10 @@ export namespace Records { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.RecordDataWithAccessInfo, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Records.RecordDataWithAccessInfo, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this RecordDataWithAccessInfo to JSON. @@ -67804,17 +71344,15 @@ export namespace Records { /** Properties of a GetRecordDataWithAccessInfoResponse. */ interface IGetRecordDataWithAccessInfoResponse { - /** GetRecordDataWithAccessInfoResponse recordDataWithAccessInfo */ - recordDataWithAccessInfo?: (Records.IRecordDataWithAccessInfo[]|null); + recordDataWithAccessInfo?: Records.IRecordDataWithAccessInfo[] | null; /** GetRecordDataWithAccessInfoResponse noPermissionRecordUid */ - noPermissionRecordUid?: (Uint8Array[]|null); + noPermissionRecordUid?: Uint8Array[] | null; } /** Represents a GetRecordDataWithAccessInfoResponse. */ class GetRecordDataWithAccessInfoResponse implements IGetRecordDataWithAccessInfoResponse { - /** * Constructs a new GetRecordDataWithAccessInfoResponse. * @param [properties] Properties to set @@ -67832,7 +71370,9 @@ export namespace Records { * @param [properties] Properties to set * @returns GetRecordDataWithAccessInfoResponse instance */ - public static create(properties?: Records.IGetRecordDataWithAccessInfoResponse): Records.GetRecordDataWithAccessInfoResponse; + public static create( + properties?: Records.IGetRecordDataWithAccessInfoResponse + ): Records.GetRecordDataWithAccessInfoResponse; /** * Encodes the specified GetRecordDataWithAccessInfoResponse message. Does not implicitly {@link Records.GetRecordDataWithAccessInfoResponse.verify|verify} messages. @@ -67840,7 +71380,10 @@ export namespace Records { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Records.IGetRecordDataWithAccessInfoResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Records.IGetRecordDataWithAccessInfoResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified GetRecordDataWithAccessInfoResponse message, length delimited. Does not implicitly {@link Records.GetRecordDataWithAccessInfoResponse.verify|verify} messages. @@ -67848,7 +71391,10 @@ export namespace Records { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Records.IGetRecordDataWithAccessInfoResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Records.IGetRecordDataWithAccessInfoResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a GetRecordDataWithAccessInfoResponse message from the specified reader or buffer. @@ -67858,7 +71404,10 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.GetRecordDataWithAccessInfoResponse; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Records.GetRecordDataWithAccessInfoResponse; /** * Decodes a GetRecordDataWithAccessInfoResponse message from the specified reader or buffer, length delimited. @@ -67867,14 +71416,16 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.GetRecordDataWithAccessInfoResponse; + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array + ): Records.GetRecordDataWithAccessInfoResponse; /** * Verifies a GetRecordDataWithAccessInfoResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a GetRecordDataWithAccessInfoResponse message from a plain object. Also converts values to their respective internal types. @@ -67889,7 +71440,10 @@ export namespace Records { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.GetRecordDataWithAccessInfoResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Records.GetRecordDataWithAccessInfoResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this GetRecordDataWithAccessInfoResponse to JSON. @@ -67909,25 +71463,23 @@ export namespace Records { enum CheckShareAdminObjectType { CHECK_SA_INVALID_TYPE = 0, CHECK_SA_ON_SF = 1, - CHECK_SA_ON_RECORD = 2 + CHECK_SA_ON_RECORD = 2, } /** Properties of an IsObjectShareAdmin. */ interface IIsObjectShareAdmin { - /** IsObjectShareAdmin uid */ - uid?: (Uint8Array|null); + uid?: Uint8Array | null; /** IsObjectShareAdmin isAdmin */ - isAdmin?: (boolean|null); + isAdmin?: boolean | null; /** IsObjectShareAdmin objectType */ - objectType?: (Records.CheckShareAdminObjectType|null); + objectType?: Records.CheckShareAdminObjectType | null; } /** Represents an IsObjectShareAdmin. */ class IsObjectShareAdmin implements IIsObjectShareAdmin { - /** * Constructs a new IsObjectShareAdmin. * @param [properties] Properties to set @@ -67964,7 +71516,10 @@ export namespace Records { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Records.IIsObjectShareAdmin, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Records.IIsObjectShareAdmin, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes an IsObjectShareAdmin message from the specified reader or buffer. @@ -67974,7 +71529,7 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.IsObjectShareAdmin; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Records.IsObjectShareAdmin; /** * Decodes an IsObjectShareAdmin message from the specified reader or buffer, length delimited. @@ -67983,14 +71538,14 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.IsObjectShareAdmin; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Records.IsObjectShareAdmin; /** * Verifies an IsObjectShareAdmin message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an IsObjectShareAdmin message from a plain object. Also converts values to their respective internal types. @@ -68005,7 +71560,10 @@ export namespace Records { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.IsObjectShareAdmin, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Records.IsObjectShareAdmin, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this IsObjectShareAdmin to JSON. @@ -68023,14 +71581,12 @@ export namespace Records { /** Properties of an AmIShareAdmin. */ interface IAmIShareAdmin { - /** AmIShareAdmin isObjectShareAdmin */ - isObjectShareAdmin?: (Records.IIsObjectShareAdmin[]|null); + isObjectShareAdmin?: Records.IIsObjectShareAdmin[] | null; } /** Represents an AmIShareAdmin. */ class AmIShareAdmin implements IAmIShareAdmin { - /** * Constructs a new AmIShareAdmin. * @param [properties] Properties to set @@ -68071,7 +71627,7 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.AmIShareAdmin; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Records.AmIShareAdmin; /** * Decodes an AmIShareAdmin message from the specified reader or buffer, length delimited. @@ -68080,14 +71636,14 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.AmIShareAdmin; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Records.AmIShareAdmin; /** * Verifies an AmIShareAdmin message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an AmIShareAdmin message from a plain object. Also converts values to their respective internal types. @@ -68102,7 +71658,10 @@ export namespace Records { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.AmIShareAdmin, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Records.AmIShareAdmin, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this AmIShareAdmin to JSON. @@ -68120,23 +71679,21 @@ export namespace Records { /** Properties of a RecordShareUpdateRequest. */ interface IRecordShareUpdateRequest { - /** RecordShareUpdateRequest addSharedRecord */ - addSharedRecord?: (Records.ISharedRecord[]|null); + addSharedRecord?: Records.ISharedRecord[] | null; /** RecordShareUpdateRequest updateSharedRecord */ - updateSharedRecord?: (Records.ISharedRecord[]|null); + updateSharedRecord?: Records.ISharedRecord[] | null; /** RecordShareUpdateRequest removeSharedRecord */ - removeSharedRecord?: (Records.ISharedRecord[]|null); + removeSharedRecord?: Records.ISharedRecord[] | null; /** RecordShareUpdateRequest pt */ - pt?: (string|null); + pt?: string | null; } /** Represents a RecordShareUpdateRequest. */ class RecordShareUpdateRequest implements IRecordShareUpdateRequest { - /** * Constructs a new RecordShareUpdateRequest. * @param [properties] Properties to set @@ -68176,7 +71733,10 @@ export namespace Records { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Records.IRecordShareUpdateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Records.IRecordShareUpdateRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a RecordShareUpdateRequest message from the specified reader or buffer. @@ -68186,7 +71746,7 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordShareUpdateRequest; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Records.RecordShareUpdateRequest; /** * Decodes a RecordShareUpdateRequest message from the specified reader or buffer, length delimited. @@ -68195,14 +71755,14 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.RecordShareUpdateRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Records.RecordShareUpdateRequest; /** * Verifies a RecordShareUpdateRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a RecordShareUpdateRequest message from a plain object. Also converts values to their respective internal types. @@ -68217,7 +71777,10 @@ export namespace Records { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.RecordShareUpdateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Records.RecordShareUpdateRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this RecordShareUpdateRequest to JSON. @@ -68235,50 +71798,48 @@ export namespace Records { /** Properties of a SharedRecord. */ interface ISharedRecord { - /** SharedRecord toUsername */ - toUsername?: (string|null); + toUsername?: string | null; /** SharedRecord recordUid */ - recordUid?: (Uint8Array|null); + recordUid?: Uint8Array | null; /** SharedRecord recordKey */ - recordKey?: (Uint8Array|null); + recordKey?: Uint8Array | null; /** SharedRecord sharedFolderUid */ - sharedFolderUid?: (Uint8Array|null); + sharedFolderUid?: Uint8Array | null; /** SharedRecord teamUid */ - teamUid?: (Uint8Array|null); + teamUid?: Uint8Array | null; /** SharedRecord editable */ - editable?: (boolean|null); + editable?: boolean | null; /** SharedRecord shareable */ - shareable?: (boolean|null); + shareable?: boolean | null; /** SharedRecord transfer */ - transfer?: (boolean|null); + transfer?: boolean | null; /** SharedRecord useEccKey */ - useEccKey?: (boolean|null); + useEccKey?: boolean | null; /** SharedRecord removeVaultData */ - removeVaultData?: (boolean|null); + removeVaultData?: boolean | null; /** SharedRecord expiration */ - expiration?: (number|Long|null); + expiration?: number | Long | null; /** SharedRecord timerNotificationType */ - timerNotificationType?: (Records.TimerNotificationType|null); + timerNotificationType?: Records.TimerNotificationType | null; /** SharedRecord rotateOnExpiration */ - rotateOnExpiration?: (boolean|null); + rotateOnExpiration?: boolean | null; } /** Represents a SharedRecord. */ class SharedRecord implements ISharedRecord { - /** * Constructs a new SharedRecord. * @param [properties] Properties to set @@ -68316,7 +71877,7 @@ export namespace Records { public removeVaultData: boolean; /** SharedRecord expiration. */ - public expiration: (number|Long); + public expiration: number | Long; /** SharedRecord timerNotificationType. */ public timerNotificationType: Records.TimerNotificationType; @@ -68355,7 +71916,7 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.SharedRecord; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Records.SharedRecord; /** * Decodes a SharedRecord message from the specified reader or buffer, length delimited. @@ -68364,14 +71925,14 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.SharedRecord; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Records.SharedRecord; /** * Verifies a SharedRecord message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a SharedRecord message from a plain object. Also converts values to their respective internal types. @@ -68386,7 +71947,10 @@ export namespace Records { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.SharedRecord, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Records.SharedRecord, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this SharedRecord to JSON. @@ -68404,20 +71968,18 @@ export namespace Records { /** Properties of a RecordShareUpdateResponse. */ interface IRecordShareUpdateResponse { - /** RecordShareUpdateResponse addSharedRecordStatus */ - addSharedRecordStatus?: (Records.ISharedRecordStatus[]|null); + addSharedRecordStatus?: Records.ISharedRecordStatus[] | null; /** RecordShareUpdateResponse updateSharedRecordStatus */ - updateSharedRecordStatus?: (Records.ISharedRecordStatus[]|null); + updateSharedRecordStatus?: Records.ISharedRecordStatus[] | null; /** RecordShareUpdateResponse removeSharedRecordStatus */ - removeSharedRecordStatus?: (Records.ISharedRecordStatus[]|null); + removeSharedRecordStatus?: Records.ISharedRecordStatus[] | null; } /** Represents a RecordShareUpdateResponse. */ class RecordShareUpdateResponse implements IRecordShareUpdateResponse { - /** * Constructs a new RecordShareUpdateResponse. * @param [properties] Properties to set @@ -68454,7 +72016,10 @@ export namespace Records { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Records.IRecordShareUpdateResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Records.IRecordShareUpdateResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a RecordShareUpdateResponse message from the specified reader or buffer. @@ -68464,7 +72029,7 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordShareUpdateResponse; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Records.RecordShareUpdateResponse; /** * Decodes a RecordShareUpdateResponse message from the specified reader or buffer, length delimited. @@ -68473,14 +72038,14 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.RecordShareUpdateResponse; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Records.RecordShareUpdateResponse; /** * Verifies a RecordShareUpdateResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a RecordShareUpdateResponse message from a plain object. Also converts values to their respective internal types. @@ -68495,7 +72060,10 @@ export namespace Records { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.RecordShareUpdateResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Records.RecordShareUpdateResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this RecordShareUpdateResponse to JSON. @@ -68513,23 +72081,21 @@ export namespace Records { /** Properties of a SharedRecordStatus. */ interface ISharedRecordStatus { - /** SharedRecordStatus recordUid */ - recordUid?: (Uint8Array|null); + recordUid?: Uint8Array | null; /** SharedRecordStatus status */ - status?: (string|null); + status?: string | null; /** SharedRecordStatus message */ - message?: (string|null); + message?: string | null; /** SharedRecordStatus username */ - username?: (string|null); + username?: string | null; } /** Represents a SharedRecordStatus. */ class SharedRecordStatus implements ISharedRecordStatus { - /** * Constructs a new SharedRecordStatus. * @param [properties] Properties to set @@ -68569,7 +72135,10 @@ export namespace Records { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Records.ISharedRecordStatus, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Records.ISharedRecordStatus, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a SharedRecordStatus message from the specified reader or buffer. @@ -68579,7 +72148,7 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.SharedRecordStatus; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Records.SharedRecordStatus; /** * Decodes a SharedRecordStatus message from the specified reader or buffer, length delimited. @@ -68588,14 +72157,14 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.SharedRecordStatus; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Records.SharedRecordStatus; /** * Verifies a SharedRecordStatus message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a SharedRecordStatus message from a plain object. Also converts values to their respective internal types. @@ -68610,7 +72179,10 @@ export namespace Records { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.SharedRecordStatus, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Records.SharedRecordStatus, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this SharedRecordStatus to JSON. @@ -68628,17 +72200,15 @@ export namespace Records { /** Properties of a GetRecordPermissionsRequest. */ interface IGetRecordPermissionsRequest { - /** GetRecordPermissionsRequest recordUids */ - recordUids?: (Uint8Array[]|null); + recordUids?: Uint8Array[] | null; /** GetRecordPermissionsRequest isShareAdmin */ - isShareAdmin?: (boolean|null); + isShareAdmin?: boolean | null; } /** Represents a GetRecordPermissionsRequest. */ class GetRecordPermissionsRequest implements IGetRecordPermissionsRequest { - /** * Constructs a new GetRecordPermissionsRequest. * @param [properties] Properties to set @@ -68664,7 +72234,10 @@ export namespace Records { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Records.IGetRecordPermissionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Records.IGetRecordPermissionsRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified GetRecordPermissionsRequest message, length delimited. Does not implicitly {@link Records.GetRecordPermissionsRequest.verify|verify} messages. @@ -68672,7 +72245,10 @@ export namespace Records { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Records.IGetRecordPermissionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Records.IGetRecordPermissionsRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a GetRecordPermissionsRequest message from the specified reader or buffer. @@ -68682,7 +72258,10 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.GetRecordPermissionsRequest; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Records.GetRecordPermissionsRequest; /** * Decodes a GetRecordPermissionsRequest message from the specified reader or buffer, length delimited. @@ -68691,14 +72270,14 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.GetRecordPermissionsRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Records.GetRecordPermissionsRequest; /** * Verifies a GetRecordPermissionsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a GetRecordPermissionsRequest message from a plain object. Also converts values to their respective internal types. @@ -68713,7 +72292,10 @@ export namespace Records { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.GetRecordPermissionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Records.GetRecordPermissionsRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this GetRecordPermissionsRequest to JSON. @@ -68731,14 +72313,12 @@ export namespace Records { /** Properties of a GetRecordPermissionsResponse. */ interface IGetRecordPermissionsResponse { - /** GetRecordPermissionsResponse recordPermissions */ - recordPermissions?: (Records.IRecordPermission[]|null); + recordPermissions?: Records.IRecordPermission[] | null; } /** Represents a GetRecordPermissionsResponse. */ class GetRecordPermissionsResponse implements IGetRecordPermissionsResponse { - /** * Constructs a new GetRecordPermissionsResponse. * @param [properties] Properties to set @@ -68761,7 +72341,10 @@ export namespace Records { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Records.IGetRecordPermissionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Records.IGetRecordPermissionsResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified GetRecordPermissionsResponse message, length delimited. Does not implicitly {@link Records.GetRecordPermissionsResponse.verify|verify} messages. @@ -68769,7 +72352,10 @@ export namespace Records { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Records.IGetRecordPermissionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Records.IGetRecordPermissionsResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a GetRecordPermissionsResponse message from the specified reader or buffer. @@ -68779,7 +72365,10 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.GetRecordPermissionsResponse; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Records.GetRecordPermissionsResponse; /** * Decodes a GetRecordPermissionsResponse message from the specified reader or buffer, length delimited. @@ -68788,14 +72377,14 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.GetRecordPermissionsResponse; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Records.GetRecordPermissionsResponse; /** * Verifies a GetRecordPermissionsResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a GetRecordPermissionsResponse message from a plain object. Also converts values to their respective internal types. @@ -68810,7 +72399,10 @@ export namespace Records { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.GetRecordPermissionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Records.GetRecordPermissionsResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this GetRecordPermissionsResponse to JSON. @@ -68828,26 +72420,24 @@ export namespace Records { /** Properties of a RecordPermission. */ interface IRecordPermission { - /** RecordPermission recordUid */ - recordUid?: (Uint8Array|null); + recordUid?: Uint8Array | null; /** RecordPermission owner */ - owner?: (boolean|null); + owner?: boolean | null; /** RecordPermission canEdit */ - canEdit?: (boolean|null); + canEdit?: boolean | null; /** RecordPermission canShare */ - canShare?: (boolean|null); + canShare?: boolean | null; /** RecordPermission canTransfer */ - canTransfer?: (boolean|null); + canTransfer?: boolean | null; } /** Represents a RecordPermission. */ class RecordPermission implements IRecordPermission { - /** * Constructs a new RecordPermission. * @param [properties] Properties to set @@ -68900,7 +72490,7 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordPermission; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Records.RecordPermission; /** * Decodes a RecordPermission message from the specified reader or buffer, length delimited. @@ -68909,14 +72499,14 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.RecordPermission; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Records.RecordPermission; /** * Verifies a RecordPermission message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a RecordPermission message from a plain object. Also converts values to their respective internal types. @@ -68931,7 +72521,10 @@ export namespace Records { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.RecordPermission, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Records.RecordPermission, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this RecordPermission to JSON. @@ -68949,23 +72542,21 @@ export namespace Records { /** Properties of a GetShareObjectsRequest. */ interface IGetShareObjectsRequest { - /** GetShareObjectsRequest startWith */ - startWith?: (string|null); + startWith?: string | null; /** GetShareObjectsRequest contains */ - contains?: (string|null); + contains?: string | null; /** GetShareObjectsRequest filtered */ - filtered?: (boolean|null); + filtered?: boolean | null; /** GetShareObjectsRequest sharedFolderUid */ - sharedFolderUid?: (Uint8Array|null); + sharedFolderUid?: Uint8Array | null; } /** Represents a GetShareObjectsRequest. */ class GetShareObjectsRequest implements IGetShareObjectsRequest { - /** * Constructs a new GetShareObjectsRequest. * @param [properties] Properties to set @@ -69005,7 +72596,10 @@ export namespace Records { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Records.IGetShareObjectsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Records.IGetShareObjectsRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a GetShareObjectsRequest message from the specified reader or buffer. @@ -69015,7 +72609,7 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.GetShareObjectsRequest; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Records.GetShareObjectsRequest; /** * Decodes a GetShareObjectsRequest message from the specified reader or buffer, length delimited. @@ -69024,14 +72618,14 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.GetShareObjectsRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Records.GetShareObjectsRequest; /** * Verifies a GetShareObjectsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a GetShareObjectsRequest message from a plain object. Also converts values to their respective internal types. @@ -69046,7 +72640,10 @@ export namespace Records { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.GetShareObjectsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Records.GetShareObjectsRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this GetShareObjectsRequest to JSON. @@ -69064,32 +72661,30 @@ export namespace Records { /** Properties of a GetShareObjectsResponse. */ interface IGetShareObjectsResponse { - /** GetShareObjectsResponse shareRelationships */ - shareRelationships?: (Records.IShareUser[]|null); + shareRelationships?: Records.IShareUser[] | null; /** GetShareObjectsResponse shareFamilyUsers */ - shareFamilyUsers?: (Records.IShareUser[]|null); + shareFamilyUsers?: Records.IShareUser[] | null; /** GetShareObjectsResponse shareEnterpriseUsers */ - shareEnterpriseUsers?: (Records.IShareUser[]|null); + shareEnterpriseUsers?: Records.IShareUser[] | null; /** GetShareObjectsResponse shareTeams */ - shareTeams?: (Records.IShareTeam[]|null); + shareTeams?: Records.IShareTeam[] | null; /** GetShareObjectsResponse shareMCTeams */ - shareMCTeams?: (Records.IShareTeam[]|null); + shareMCTeams?: Records.IShareTeam[] | null; /** GetShareObjectsResponse shareMCEnterpriseUsers */ - shareMCEnterpriseUsers?: (Records.IShareUser[]|null); + shareMCEnterpriseUsers?: Records.IShareUser[] | null; /** GetShareObjectsResponse shareEnterpriseNames */ - shareEnterpriseNames?: (Records.IShareEnterprise[]|null); + shareEnterpriseNames?: Records.IShareEnterprise[] | null; } /** Represents a GetShareObjectsResponse. */ class GetShareObjectsResponse implements IGetShareObjectsResponse { - /** * Constructs a new GetShareObjectsResponse. * @param [properties] Properties to set @@ -69138,7 +72733,10 @@ export namespace Records { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Records.IGetShareObjectsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Records.IGetShareObjectsResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a GetShareObjectsResponse message from the specified reader or buffer. @@ -69148,7 +72746,7 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.GetShareObjectsResponse; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Records.GetShareObjectsResponse; /** * Decodes a GetShareObjectsResponse message from the specified reader or buffer, length delimited. @@ -69157,14 +72755,14 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.GetShareObjectsResponse; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Records.GetShareObjectsResponse; /** * Verifies a GetShareObjectsResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a GetShareObjectsResponse message from a plain object. Also converts values to their respective internal types. @@ -69179,7 +72777,10 @@ export namespace Records { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.GetShareObjectsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Records.GetShareObjectsResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this GetShareObjectsResponse to JSON. @@ -69197,29 +72798,27 @@ export namespace Records { /** Properties of a ShareUser. */ interface IShareUser { - /** ShareUser username */ - username?: (string|null); + username?: string | null; /** ShareUser fullname */ - fullname?: (string|null); + fullname?: string | null; /** ShareUser enterpriseId */ - enterpriseId?: (number|null); + enterpriseId?: number | null; /** ShareUser status */ - status?: (Records.ShareStatus|null); + status?: Records.ShareStatus | null; /** ShareUser isShareAdmin */ - isShareAdmin?: (boolean|null); + isShareAdmin?: boolean | null; /** ShareUser isAdminOfSharedFolderOwner */ - isAdminOfSharedFolderOwner?: (boolean|null); + isAdminOfSharedFolderOwner?: boolean | null; } /** Represents a ShareUser. */ class ShareUser implements IShareUser { - /** * Constructs a new ShareUser. * @param [properties] Properties to set @@ -69275,7 +72874,7 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.ShareUser; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Records.ShareUser; /** * Decodes a ShareUser message from the specified reader or buffer, length delimited. @@ -69284,14 +72883,14 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.ShareUser; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Records.ShareUser; /** * Verifies a ShareUser message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a ShareUser message from a plain object. Also converts values to their respective internal types. @@ -69306,7 +72905,10 @@ export namespace Records { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.ShareUser, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Records.ShareUser, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this ShareUser to JSON. @@ -69324,20 +72926,18 @@ export namespace Records { /** Properties of a ShareTeam. */ interface IShareTeam { - /** ShareTeam teamname */ - teamname?: (string|null); + teamname?: string | null; /** ShareTeam enterpriseId */ - enterpriseId?: (number|null); + enterpriseId?: number | null; /** ShareTeam teamUid */ - teamUid?: (Uint8Array|null); + teamUid?: Uint8Array | null; } /** Represents a ShareTeam. */ class ShareTeam implements IShareTeam { - /** * Constructs a new ShareTeam. * @param [properties] Properties to set @@ -69384,7 +72984,7 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.ShareTeam; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Records.ShareTeam; /** * Decodes a ShareTeam message from the specified reader or buffer, length delimited. @@ -69393,14 +72993,14 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.ShareTeam; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Records.ShareTeam; /** * Verifies a ShareTeam message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a ShareTeam message from a plain object. Also converts values to their respective internal types. @@ -69415,7 +73015,10 @@ export namespace Records { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.ShareTeam, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Records.ShareTeam, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this ShareTeam to JSON. @@ -69433,17 +73036,15 @@ export namespace Records { /** Properties of a ShareEnterprise. */ interface IShareEnterprise { - /** ShareEnterprise enterprisename */ - enterprisename?: (string|null); + enterprisename?: string | null; /** ShareEnterprise enterpriseId */ - enterpriseId?: (number|null); + enterpriseId?: number | null; } /** Represents a ShareEnterprise. */ class ShareEnterprise implements IShareEnterprise { - /** * Constructs a new ShareEnterprise. * @param [properties] Properties to set @@ -69487,7 +73088,7 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.ShareEnterprise; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Records.ShareEnterprise; /** * Decodes a ShareEnterprise message from the specified reader or buffer, length delimited. @@ -69496,14 +73097,14 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.ShareEnterprise; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Records.ShareEnterprise; /** * Verifies a ShareEnterprise message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a ShareEnterprise message from a plain object. Also converts values to their respective internal types. @@ -69518,7 +73119,10 @@ export namespace Records { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.ShareEnterprise, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Records.ShareEnterprise, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this ShareEnterprise to JSON. @@ -69538,19 +73142,17 @@ export namespace Records { enum ShareStatus { ACTIVE = 0, BLOCK = 1, - INVITED = 2 + INVITED = 2, } /** Properties of a RecordsOnwershipTransferRequest. */ interface IRecordsOnwershipTransferRequest { - /** RecordsOnwershipTransferRequest transferRecords */ - transferRecords?: (Records.ITransferRecord[]|null); + transferRecords?: Records.ITransferRecord[] | null; } /** Represents a RecordsOnwershipTransferRequest. */ class RecordsOnwershipTransferRequest implements IRecordsOnwershipTransferRequest { - /** * Constructs a new RecordsOnwershipTransferRequest. * @param [properties] Properties to set @@ -69565,7 +73167,9 @@ export namespace Records { * @param [properties] Properties to set * @returns RecordsOnwershipTransferRequest instance */ - public static create(properties?: Records.IRecordsOnwershipTransferRequest): Records.RecordsOnwershipTransferRequest; + public static create( + properties?: Records.IRecordsOnwershipTransferRequest + ): Records.RecordsOnwershipTransferRequest; /** * Encodes the specified RecordsOnwershipTransferRequest message. Does not implicitly {@link Records.RecordsOnwershipTransferRequest.verify|verify} messages. @@ -69573,7 +73177,10 @@ export namespace Records { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Records.IRecordsOnwershipTransferRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Records.IRecordsOnwershipTransferRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified RecordsOnwershipTransferRequest message, length delimited. Does not implicitly {@link Records.RecordsOnwershipTransferRequest.verify|verify} messages. @@ -69581,7 +73188,10 @@ export namespace Records { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Records.IRecordsOnwershipTransferRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Records.IRecordsOnwershipTransferRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a RecordsOnwershipTransferRequest message from the specified reader or buffer. @@ -69591,7 +73201,10 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordsOnwershipTransferRequest; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Records.RecordsOnwershipTransferRequest; /** * Decodes a RecordsOnwershipTransferRequest message from the specified reader or buffer, length delimited. @@ -69600,14 +73213,14 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.RecordsOnwershipTransferRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Records.RecordsOnwershipTransferRequest; /** * Verifies a RecordsOnwershipTransferRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a RecordsOnwershipTransferRequest message from a plain object. Also converts values to their respective internal types. @@ -69622,7 +73235,10 @@ export namespace Records { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.RecordsOnwershipTransferRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Records.RecordsOnwershipTransferRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this RecordsOnwershipTransferRequest to JSON. @@ -69640,23 +73256,21 @@ export namespace Records { /** Properties of a TransferRecord. */ interface ITransferRecord { - /** TransferRecord username */ - username?: (string|null); + username?: string | null; /** TransferRecord recordUid */ - recordUid?: (Uint8Array|null); + recordUid?: Uint8Array | null; /** TransferRecord recordKey */ - recordKey?: (Uint8Array|null); + recordKey?: Uint8Array | null; /** TransferRecord useEccKey */ - useEccKey?: (boolean|null); + useEccKey?: boolean | null; } /** Represents a TransferRecord. */ class TransferRecord implements ITransferRecord { - /** * Constructs a new TransferRecord. * @param [properties] Properties to set @@ -69706,7 +73320,7 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.TransferRecord; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Records.TransferRecord; /** * Decodes a TransferRecord message from the specified reader or buffer, length delimited. @@ -69715,14 +73329,14 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.TransferRecord; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Records.TransferRecord; /** * Verifies a TransferRecord message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a TransferRecord message from a plain object. Also converts values to their respective internal types. @@ -69737,7 +73351,10 @@ export namespace Records { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.TransferRecord, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Records.TransferRecord, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this TransferRecord to JSON. @@ -69755,14 +73372,12 @@ export namespace Records { /** Properties of a RecordsOnwershipTransferResponse. */ interface IRecordsOnwershipTransferResponse { - /** RecordsOnwershipTransferResponse transferRecordStatus */ - transferRecordStatus?: (Records.ITransferRecordStatus[]|null); + transferRecordStatus?: Records.ITransferRecordStatus[] | null; } /** Represents a RecordsOnwershipTransferResponse. */ class RecordsOnwershipTransferResponse implements IRecordsOnwershipTransferResponse { - /** * Constructs a new RecordsOnwershipTransferResponse. * @param [properties] Properties to set @@ -69777,7 +73392,9 @@ export namespace Records { * @param [properties] Properties to set * @returns RecordsOnwershipTransferResponse instance */ - public static create(properties?: Records.IRecordsOnwershipTransferResponse): Records.RecordsOnwershipTransferResponse; + public static create( + properties?: Records.IRecordsOnwershipTransferResponse + ): Records.RecordsOnwershipTransferResponse; /** * Encodes the specified RecordsOnwershipTransferResponse message. Does not implicitly {@link Records.RecordsOnwershipTransferResponse.verify|verify} messages. @@ -69785,7 +73402,10 @@ export namespace Records { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Records.IRecordsOnwershipTransferResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Records.IRecordsOnwershipTransferResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified RecordsOnwershipTransferResponse message, length delimited. Does not implicitly {@link Records.RecordsOnwershipTransferResponse.verify|verify} messages. @@ -69793,7 +73413,10 @@ export namespace Records { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Records.IRecordsOnwershipTransferResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Records.IRecordsOnwershipTransferResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a RecordsOnwershipTransferResponse message from the specified reader or buffer. @@ -69803,7 +73426,10 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordsOnwershipTransferResponse; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Records.RecordsOnwershipTransferResponse; /** * Decodes a RecordsOnwershipTransferResponse message from the specified reader or buffer, length delimited. @@ -69812,14 +73438,14 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.RecordsOnwershipTransferResponse; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Records.RecordsOnwershipTransferResponse; /** * Verifies a RecordsOnwershipTransferResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a RecordsOnwershipTransferResponse message from a plain object. Also converts values to their respective internal types. @@ -69834,7 +73460,10 @@ export namespace Records { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.RecordsOnwershipTransferResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Records.RecordsOnwershipTransferResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this RecordsOnwershipTransferResponse to JSON. @@ -69852,23 +73481,21 @@ export namespace Records { /** Properties of a TransferRecordStatus. */ interface ITransferRecordStatus { - /** TransferRecordStatus username */ - username?: (string|null); + username?: string | null; /** TransferRecordStatus recordUid */ - recordUid?: (Uint8Array|null); + recordUid?: Uint8Array | null; /** TransferRecordStatus status */ - status?: (string|null); + status?: string | null; /** TransferRecordStatus message */ - message?: (string|null); + message?: string | null; } /** Represents a TransferRecordStatus. */ class TransferRecordStatus implements ITransferRecordStatus { - /** * Constructs a new TransferRecordStatus. * @param [properties] Properties to set @@ -69908,7 +73535,10 @@ export namespace Records { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Records.ITransferRecordStatus, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Records.ITransferRecordStatus, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a TransferRecordStatus message from the specified reader or buffer. @@ -69918,7 +73548,7 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.TransferRecordStatus; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Records.TransferRecordStatus; /** * Decodes a TransferRecordStatus message from the specified reader or buffer, length delimited. @@ -69927,14 +73557,14 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.TransferRecordStatus; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Records.TransferRecordStatus; /** * Verifies a TransferRecordStatus message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a TransferRecordStatus message from a plain object. Also converts values to their respective internal types. @@ -69949,7 +73579,10 @@ export namespace Records { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.TransferRecordStatus, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Records.TransferRecordStatus, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this TransferRecordStatus to JSON. @@ -69967,17 +73600,15 @@ export namespace Records { /** Properties of a RecordsUnshareRequest. */ interface IRecordsUnshareRequest { - /** RecordsUnshareRequest sharedFolders */ - sharedFolders?: (Records.IRecordsUnshareFolder[]|null); + sharedFolders?: Records.IRecordsUnshareFolder[] | null; /** RecordsUnshareRequest users */ - users?: (Records.IRecordsUnshareUser[]|null); + users?: Records.IRecordsUnshareUser[] | null; } /** Represents a RecordsUnshareRequest. */ class RecordsUnshareRequest implements IRecordsUnshareRequest { - /** * Constructs a new RecordsUnshareRequest. * @param [properties] Properties to set @@ -70011,7 +73642,10 @@ export namespace Records { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Records.IRecordsUnshareRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Records.IRecordsUnshareRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a RecordsUnshareRequest message from the specified reader or buffer. @@ -70021,7 +73655,7 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordsUnshareRequest; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Records.RecordsUnshareRequest; /** * Decodes a RecordsUnshareRequest message from the specified reader or buffer, length delimited. @@ -70030,14 +73664,14 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.RecordsUnshareRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Records.RecordsUnshareRequest; /** * Verifies a RecordsUnshareRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a RecordsUnshareRequest message from a plain object. Also converts values to their respective internal types. @@ -70052,7 +73686,10 @@ export namespace Records { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.RecordsUnshareRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Records.RecordsUnshareRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this RecordsUnshareRequest to JSON. @@ -70070,17 +73707,15 @@ export namespace Records { /** Properties of a RecordsUnshareResponse. */ interface IRecordsUnshareResponse { - /** RecordsUnshareResponse sharedFolders */ - sharedFolders?: (Records.IRecordsUnshareFolderStatus[]|null); + sharedFolders?: Records.IRecordsUnshareFolderStatus[] | null; /** RecordsUnshareResponse users */ - users?: (Records.IRecordsUnshareUserStatus[]|null); + users?: Records.IRecordsUnshareUserStatus[] | null; } /** Represents a RecordsUnshareResponse. */ class RecordsUnshareResponse implements IRecordsUnshareResponse { - /** * Constructs a new RecordsUnshareResponse. * @param [properties] Properties to set @@ -70114,7 +73749,10 @@ export namespace Records { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Records.IRecordsUnshareResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Records.IRecordsUnshareResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a RecordsUnshareResponse message from the specified reader or buffer. @@ -70124,7 +73762,7 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordsUnshareResponse; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Records.RecordsUnshareResponse; /** * Decodes a RecordsUnshareResponse message from the specified reader or buffer, length delimited. @@ -70133,14 +73771,14 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.RecordsUnshareResponse; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Records.RecordsUnshareResponse; /** * Verifies a RecordsUnshareResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a RecordsUnshareResponse message from a plain object. Also converts values to their respective internal types. @@ -70155,7 +73793,10 @@ export namespace Records { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.RecordsUnshareResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Records.RecordsUnshareResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this RecordsUnshareResponse to JSON. @@ -70173,17 +73814,15 @@ export namespace Records { /** Properties of a RecordsUnshareFolder. */ interface IRecordsUnshareFolder { - /** RecordsUnshareFolder recordUid */ - recordUid?: (Uint8Array|null); + recordUid?: Uint8Array | null; /** RecordsUnshareFolder sharedFolderUid */ - sharedFolderUid?: (Uint8Array|null); + sharedFolderUid?: Uint8Array | null; } /** Represents a RecordsUnshareFolder. */ class RecordsUnshareFolder implements IRecordsUnshareFolder { - /** * Constructs a new RecordsUnshareFolder. * @param [properties] Properties to set @@ -70217,7 +73856,10 @@ export namespace Records { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Records.IRecordsUnshareFolder, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Records.IRecordsUnshareFolder, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a RecordsUnshareFolder message from the specified reader or buffer. @@ -70227,7 +73869,7 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordsUnshareFolder; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Records.RecordsUnshareFolder; /** * Decodes a RecordsUnshareFolder message from the specified reader or buffer, length delimited. @@ -70236,14 +73878,14 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.RecordsUnshareFolder; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Records.RecordsUnshareFolder; /** * Verifies a RecordsUnshareFolder message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a RecordsUnshareFolder message from a plain object. Also converts values to their respective internal types. @@ -70258,7 +73900,10 @@ export namespace Records { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.RecordsUnshareFolder, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Records.RecordsUnshareFolder, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this RecordsUnshareFolder to JSON. @@ -70276,17 +73921,15 @@ export namespace Records { /** Properties of a RecordsUnshareUser. */ interface IRecordsUnshareUser { - /** RecordsUnshareUser recordUid */ - recordUid?: (Uint8Array|null); + recordUid?: Uint8Array | null; /** RecordsUnshareUser accountUid */ - accountUid?: (Uint8Array|null); + accountUid?: Uint8Array | null; } /** Represents a RecordsUnshareUser. */ class RecordsUnshareUser implements IRecordsUnshareUser { - /** * Constructs a new RecordsUnshareUser. * @param [properties] Properties to set @@ -70320,7 +73963,10 @@ export namespace Records { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Records.IRecordsUnshareUser, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Records.IRecordsUnshareUser, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a RecordsUnshareUser message from the specified reader or buffer. @@ -70330,7 +73976,7 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordsUnshareUser; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Records.RecordsUnshareUser; /** * Decodes a RecordsUnshareUser message from the specified reader or buffer, length delimited. @@ -70339,14 +73985,14 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.RecordsUnshareUser; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Records.RecordsUnshareUser; /** * Verifies a RecordsUnshareUser message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a RecordsUnshareUser message from a plain object. Also converts values to their respective internal types. @@ -70361,7 +74007,10 @@ export namespace Records { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.RecordsUnshareUser, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Records.RecordsUnshareUser, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this RecordsUnshareUser to JSON. @@ -70379,17 +74028,15 @@ export namespace Records { /** Properties of a RecordsUnshareFolderStatus. */ interface IRecordsUnshareFolderStatus { - /** RecordsUnshareFolderStatus recordUid */ - recordUid?: (Uint8Array|null); + recordUid?: Uint8Array | null; /** RecordsUnshareFolderStatus sharedFolderUid */ - sharedFolderUid?: (Uint8Array|null); + sharedFolderUid?: Uint8Array | null; } /** Represents a RecordsUnshareFolderStatus. */ class RecordsUnshareFolderStatus implements IRecordsUnshareFolderStatus { - /** * Constructs a new RecordsUnshareFolderStatus. * @param [properties] Properties to set @@ -70423,7 +74070,10 @@ export namespace Records { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Records.IRecordsUnshareFolderStatus, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Records.IRecordsUnshareFolderStatus, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a RecordsUnshareFolderStatus message from the specified reader or buffer. @@ -70433,7 +74083,10 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordsUnshareFolderStatus; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Records.RecordsUnshareFolderStatus; /** * Decodes a RecordsUnshareFolderStatus message from the specified reader or buffer, length delimited. @@ -70442,14 +74095,14 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.RecordsUnshareFolderStatus; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Records.RecordsUnshareFolderStatus; /** * Verifies a RecordsUnshareFolderStatus message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a RecordsUnshareFolderStatus message from a plain object. Also converts values to their respective internal types. @@ -70464,7 +74117,10 @@ export namespace Records { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.RecordsUnshareFolderStatus, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Records.RecordsUnshareFolderStatus, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this RecordsUnshareFolderStatus to JSON. @@ -70482,17 +74138,15 @@ export namespace Records { /** Properties of a RecordsUnshareUserStatus. */ interface IRecordsUnshareUserStatus { - /** RecordsUnshareUserStatus recordUid */ - recordUid?: (Uint8Array|null); + recordUid?: Uint8Array | null; /** RecordsUnshareUserStatus accountUid */ - accountUid?: (Uint8Array|null); + accountUid?: Uint8Array | null; } /** Represents a RecordsUnshareUserStatus. */ class RecordsUnshareUserStatus implements IRecordsUnshareUserStatus { - /** * Constructs a new RecordsUnshareUserStatus. * @param [properties] Properties to set @@ -70526,7 +74180,10 @@ export namespace Records { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Records.IRecordsUnshareUserStatus, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Records.IRecordsUnshareUserStatus, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a RecordsUnshareUserStatus message from the specified reader or buffer. @@ -70536,7 +74193,7 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.RecordsUnshareUserStatus; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Records.RecordsUnshareUserStatus; /** * Decodes a RecordsUnshareUserStatus message from the specified reader or buffer, length delimited. @@ -70545,14 +74202,14 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.RecordsUnshareUserStatus; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Records.RecordsUnshareUserStatus; /** * Verifies a RecordsUnshareUserStatus message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a RecordsUnshareUserStatus message from a plain object. Also converts values to their respective internal types. @@ -70567,7 +74224,10 @@ export namespace Records { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.RecordsUnshareUserStatus, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Records.RecordsUnshareUserStatus, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this RecordsUnshareUserStatus to JSON. @@ -70586,7 +74246,7 @@ export namespace Records { /** RecordTransactionType enum. */ enum RecordTransactionType { RTT_GENERAL = 0, - RTT_ROTATION = 1 + RTT_ROTATION = 1, } /** TimeLimitedAccessType enum. */ @@ -70596,26 +74256,24 @@ export namespace Records { USER_OR_TEAM_ACCESS_TO_SHAREDFOLDER = 2, RECORD_ACCESS_TO_SHAREDFOLDER = 3, USER_ACCESS_TO_SHAREDFOLDER = 4, - TEAM_ACCESS_TO_SHAREDFOLDER = 5 + TEAM_ACCESS_TO_SHAREDFOLDER = 5, } /** TimerNotificationType enum. */ enum TimerNotificationType { NOTIFICATION_OFF = 0, NOTIFY_OWNER = 1, - NOTIFY_PRIVILEGED_USERS = 2 + NOTIFY_PRIVILEGED_USERS = 2, } /** Properties of a TimedAccessCallbackPayload. */ interface ITimedAccessCallbackPayload { - /** TimedAccessCallbackPayload timeLimitedAccessType */ - timeLimitedAccessType?: (Records.TimeLimitedAccessType|null); + timeLimitedAccessType?: Records.TimeLimitedAccessType | null; } /** Represents a TimedAccessCallbackPayload. */ class TimedAccessCallbackPayload implements ITimedAccessCallbackPayload { - /** * Constructs a new TimedAccessCallbackPayload. * @param [properties] Properties to set @@ -70646,7 +74304,10 @@ export namespace Records { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Records.ITimedAccessCallbackPayload, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Records.ITimedAccessCallbackPayload, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a TimedAccessCallbackPayload message from the specified reader or buffer. @@ -70656,7 +74317,10 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.TimedAccessCallbackPayload; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Records.TimedAccessCallbackPayload; /** * Decodes a TimedAccessCallbackPayload message from the specified reader or buffer, length delimited. @@ -70665,14 +74329,14 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.TimedAccessCallbackPayload; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Records.TimedAccessCallbackPayload; /** * Verifies a TimedAccessCallbackPayload message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a TimedAccessCallbackPayload message from a plain object. Also converts values to their respective internal types. @@ -70687,7 +74351,10 @@ export namespace Records { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.TimedAccessCallbackPayload, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Records.TimedAccessCallbackPayload, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this TimedAccessCallbackPayload to JSON. @@ -70705,32 +74372,30 @@ export namespace Records { /** Properties of a TimeLimitedAccessRequest. */ interface ITimeLimitedAccessRequest { - /** TimeLimitedAccessRequest accountUid */ - accountUid?: (Uint8Array[]|null); + accountUid?: Uint8Array[] | null; /** TimeLimitedAccessRequest teamUid */ - teamUid?: (Uint8Array[]|null); + teamUid?: Uint8Array[] | null; /** TimeLimitedAccessRequest recordUid */ - recordUid?: (Uint8Array[]|null); + recordUid?: Uint8Array[] | null; /** TimeLimitedAccessRequest sharedObjectUid */ - sharedObjectUid?: (Uint8Array|null); + sharedObjectUid?: Uint8Array | null; /** TimeLimitedAccessRequest timeLimitedAccessType */ - timeLimitedAccessType?: (Records.TimeLimitedAccessType|null); + timeLimitedAccessType?: Records.TimeLimitedAccessType | null; /** TimeLimitedAccessRequest expiration */ - expiration?: (number|Long|null); + expiration?: number | Long | null; /** TimeLimitedAccessRequest timerNotificationType */ - timerNotificationType?: (Records.TimerNotificationType|null); + timerNotificationType?: Records.TimerNotificationType | null; } /** Represents a TimeLimitedAccessRequest. */ class TimeLimitedAccessRequest implements ITimeLimitedAccessRequest { - /** * Constructs a new TimeLimitedAccessRequest. * @param [properties] Properties to set @@ -70753,7 +74418,7 @@ export namespace Records { public timeLimitedAccessType: Records.TimeLimitedAccessType; /** TimeLimitedAccessRequest expiration. */ - public expiration: (number|Long); + public expiration: number | Long; /** TimeLimitedAccessRequest timerNotificationType. */ public timerNotificationType: Records.TimerNotificationType; @@ -70779,7 +74444,10 @@ export namespace Records { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Records.ITimeLimitedAccessRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Records.ITimeLimitedAccessRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a TimeLimitedAccessRequest message from the specified reader or buffer. @@ -70789,7 +74457,7 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.TimeLimitedAccessRequest; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Records.TimeLimitedAccessRequest; /** * Decodes a TimeLimitedAccessRequest message from the specified reader or buffer, length delimited. @@ -70798,14 +74466,14 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.TimeLimitedAccessRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Records.TimeLimitedAccessRequest; /** * Verifies a TimeLimitedAccessRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a TimeLimitedAccessRequest message from a plain object. Also converts values to their respective internal types. @@ -70820,7 +74488,10 @@ export namespace Records { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.TimeLimitedAccessRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Records.TimeLimitedAccessRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this TimeLimitedAccessRequest to JSON. @@ -70838,17 +74509,15 @@ export namespace Records { /** Properties of a TimeLimitedAccessStatus. */ interface ITimeLimitedAccessStatus { - /** TimeLimitedAccessStatus uid */ - uid?: (Uint8Array|null); + uid?: Uint8Array | null; /** TimeLimitedAccessStatus message */ - message?: (string|null); + message?: string | null; } /** Represents a TimeLimitedAccessStatus. */ class TimeLimitedAccessStatus implements ITimeLimitedAccessStatus { - /** * Constructs a new TimeLimitedAccessStatus. * @param [properties] Properties to set @@ -70882,7 +74551,10 @@ export namespace Records { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Records.ITimeLimitedAccessStatus, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Records.ITimeLimitedAccessStatus, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a TimeLimitedAccessStatus message from the specified reader or buffer. @@ -70892,7 +74564,7 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.TimeLimitedAccessStatus; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Records.TimeLimitedAccessStatus; /** * Decodes a TimeLimitedAccessStatus message from the specified reader or buffer, length delimited. @@ -70901,14 +74573,14 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.TimeLimitedAccessStatus; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Records.TimeLimitedAccessStatus; /** * Verifies a TimeLimitedAccessStatus message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a TimeLimitedAccessStatus message from a plain object. Also converts values to their respective internal types. @@ -70923,7 +74595,10 @@ export namespace Records { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.TimeLimitedAccessStatus, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Records.TimeLimitedAccessStatus, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this TimeLimitedAccessStatus to JSON. @@ -70941,23 +74616,21 @@ export namespace Records { /** Properties of a TimeLimitedAccessResponse. */ interface ITimeLimitedAccessResponse { - /** TimeLimitedAccessResponse revision */ - revision?: (number|Long|null); + revision?: number | Long | null; /** TimeLimitedAccessResponse userAccessStatus */ - userAccessStatus?: (Records.ITimeLimitedAccessStatus[]|null); + userAccessStatus?: Records.ITimeLimitedAccessStatus[] | null; /** TimeLimitedAccessResponse teamAccessStatus */ - teamAccessStatus?: (Records.ITimeLimitedAccessStatus[]|null); + teamAccessStatus?: Records.ITimeLimitedAccessStatus[] | null; /** TimeLimitedAccessResponse recordAccessStatus */ - recordAccessStatus?: (Records.ITimeLimitedAccessStatus[]|null); + recordAccessStatus?: Records.ITimeLimitedAccessStatus[] | null; } /** Represents a TimeLimitedAccessResponse. */ class TimeLimitedAccessResponse implements ITimeLimitedAccessResponse { - /** * Constructs a new TimeLimitedAccessResponse. * @param [properties] Properties to set @@ -70965,7 +74638,7 @@ export namespace Records { constructor(properties?: Records.ITimeLimitedAccessResponse); /** TimeLimitedAccessResponse revision. */ - public revision: (number|Long); + public revision: number | Long; /** TimeLimitedAccessResponse userAccessStatus. */ public userAccessStatus: Records.ITimeLimitedAccessStatus[]; @@ -70997,7 +74670,10 @@ export namespace Records { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Records.ITimeLimitedAccessResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Records.ITimeLimitedAccessResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a TimeLimitedAccessResponse message from the specified reader or buffer. @@ -71007,7 +74683,7 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Records.TimeLimitedAccessResponse; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Records.TimeLimitedAccessResponse; /** * Decodes a TimeLimitedAccessResponse message from the specified reader or buffer, length delimited. @@ -71016,14 +74692,14 @@ export namespace Records { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Records.TimeLimitedAccessResponse; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Records.TimeLimitedAccessResponse; /** * Verifies a TimeLimitedAccessResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a TimeLimitedAccessResponse message from a plain object. Also converts values to their respective internal types. @@ -71038,7 +74714,10 @@ export namespace Records { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Records.TimeLimitedAccessResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Records.TimeLimitedAccessResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this TimeLimitedAccessResponse to JSON. @@ -71057,23 +74736,20 @@ export namespace Records { /** Namespace Push. */ export namespace Push { - /** Properties of a UserRegistrationRequest. */ interface IUserRegistrationRequest { - /** UserRegistrationRequest messageSessionUid */ - messageSessionUid?: (Uint8Array|null); + messageSessionUid?: Uint8Array | null; /** UserRegistrationRequest userId */ - userId?: (number|null); + userId?: number | null; /** UserRegistrationRequest enterpriseId */ - enterpriseId?: (number|null); + enterpriseId?: number | null; } /** Represents a UserRegistrationRequest. */ class UserRegistrationRequest implements IUserRegistrationRequest { - /** * Constructs a new UserRegistrationRequest. * @param [properties] Properties to set @@ -71110,7 +74786,10 @@ export namespace Push { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Push.IUserRegistrationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Push.IUserRegistrationRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a UserRegistrationRequest message from the specified reader or buffer. @@ -71120,7 +74799,7 @@ export namespace Push { * @throws {Error} If the payload is 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; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Push.UserRegistrationRequest; /** * Decodes a UserRegistrationRequest message from the specified reader or buffer, length delimited. @@ -71129,14 +74808,14 @@ export namespace Push { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Push.UserRegistrationRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Push.UserRegistrationRequest; /** * Verifies a UserRegistrationRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a UserRegistrationRequest message from a plain object. Also converts values to their respective internal types. @@ -71151,7 +74830,10 @@ export namespace Push { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Push.UserRegistrationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Push.UserRegistrationRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this UserRegistrationRequest to JSON. @@ -71178,34 +74860,32 @@ export namespace Push { KEEPER = 6, SESSION = 7, DEVICE = 8, - TOTP = 9 + TOTP = 9, } /** Properties of a KAToPushServerRequest. */ interface IKAToPushServerRequest { - /** KAToPushServerRequest messageType */ - messageType?: (Push.MessageType|null); + messageType?: Push.MessageType | null; /** KAToPushServerRequest message */ - message?: (string|null); + message?: string | null; /** KAToPushServerRequest messageSessionUid */ - messageSessionUid?: (Uint8Array|null); + messageSessionUid?: Uint8Array | null; /** KAToPushServerRequest encryptedDeviceToken */ - encryptedDeviceToken?: (Uint8Array[]|null); + encryptedDeviceToken?: Uint8Array[] | null; /** KAToPushServerRequest userId */ - userId?: (number[]|null); + userId?: number[] | null; /** KAToPushServerRequest enterpriseId */ - enterpriseId?: (number[]|null); + enterpriseId?: number[] | null; } /** Represents a KAToPushServerRequest. */ class KAToPushServerRequest implements IKAToPushServerRequest { - /** * Constructs a new KAToPushServerRequest. * @param [properties] Properties to set @@ -71251,7 +74931,10 @@ export namespace Push { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Push.IKAToPushServerRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Push.IKAToPushServerRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a KAToPushServerRequest message from the specified reader or buffer. @@ -71261,7 +74944,7 @@ export namespace Push { * @throws {Error} If the payload is 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; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Push.KAToPushServerRequest; /** * Decodes a KAToPushServerRequest message from the specified reader or buffer, length delimited. @@ -71270,14 +74953,14 @@ export namespace Push { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Push.KAToPushServerRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Push.KAToPushServerRequest; /** * Verifies a KAToPushServerRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a KAToPushServerRequest message from a plain object. Also converts values to their respective internal types. @@ -71292,7 +74975,10 @@ export namespace Push { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Push.KAToPushServerRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Push.KAToPushServerRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this KAToPushServerRequest to JSON. @@ -71310,20 +74996,18 @@ export namespace Push { /** Properties of a WssConnectionRequest. */ interface IWssConnectionRequest { - /** WssConnectionRequest messageSessionUid */ - messageSessionUid?: (Uint8Array|null); + messageSessionUid?: Uint8Array | null; /** WssConnectionRequest encryptedDeviceToken */ - encryptedDeviceToken?: (Uint8Array|null); + encryptedDeviceToken?: Uint8Array | null; /** WssConnectionRequest deviceTimeStamp */ - deviceTimeStamp?: (number|Long|null); + deviceTimeStamp?: number | Long | null; } /** Represents a WssConnectionRequest. */ class WssConnectionRequest implements IWssConnectionRequest { - /** * Constructs a new WssConnectionRequest. * @param [properties] Properties to set @@ -71337,7 +75021,7 @@ export namespace Push { public encryptedDeviceToken: Uint8Array; /** WssConnectionRequest deviceTimeStamp. */ - public deviceTimeStamp: (number|Long); + public deviceTimeStamp: number | Long; /** * Creates a new WssConnectionRequest instance using the specified properties. @@ -71370,7 +75054,7 @@ export namespace Push { * @throws {Error} If the payload is 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; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Push.WssConnectionRequest; /** * Decodes a WssConnectionRequest message from the specified reader or buffer, length delimited. @@ -71379,14 +75063,14 @@ export namespace Push { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Push.WssConnectionRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Push.WssConnectionRequest; /** * Verifies a WssConnectionRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a WssConnectionRequest message from a plain object. Also converts values to their respective internal types. @@ -71401,7 +75085,10 @@ export namespace Push { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Push.WssConnectionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Push.WssConnectionRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this WssConnectionRequest to JSON. @@ -71419,17 +75106,15 @@ export namespace Push { /** Properties of a WssClientResponse. */ interface IWssClientResponse { - /** WssClientResponse messageType */ - messageType?: (Push.MessageType|null); + messageType?: Push.MessageType | null; /** WssClientResponse message */ - message?: (string|null); + message?: string | null; } /** Represents a WssClientResponse. */ class WssClientResponse implements IWssClientResponse { - /** * Constructs a new WssClientResponse. * @param [properties] Properties to set @@ -71473,7 +75158,7 @@ export namespace Push { * @throws {Error} If the payload is 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; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Push.WssClientResponse; /** * Decodes a WssClientResponse message from the specified reader or buffer, length delimited. @@ -71482,14 +75167,14 @@ export namespace Push { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Push.WssClientResponse; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Push.WssClientResponse; /** * Verifies a WssClientResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a WssClientResponse message from a plain object. Also converts values to their respective internal types. @@ -71504,7 +75189,10 @@ export namespace Push { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Push.WssClientResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Push.WssClientResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this WssClientResponse to JSON. @@ -71522,23 +75210,21 @@ export namespace Push { /** Properties of a PushServerDeviceRegistrationRequest. */ interface IPushServerDeviceRegistrationRequest { - /** PushServerDeviceRegistrationRequest encryptedDeviceToken */ - encryptedDeviceToken?: (Uint8Array|null); + encryptedDeviceToken?: Uint8Array | null; /** PushServerDeviceRegistrationRequest pushToken */ - pushToken?: (string|null); + pushToken?: string | null; /** PushServerDeviceRegistrationRequest mobilePushPlatform */ - mobilePushPlatform?: (string|null); + mobilePushPlatform?: string | null; /** PushServerDeviceRegistrationRequest transmissionKey */ - transmissionKey?: (Uint8Array|null); + transmissionKey?: Uint8Array | null; } /** Represents a PushServerDeviceRegistrationRequest. */ class PushServerDeviceRegistrationRequest implements IPushServerDeviceRegistrationRequest { - /** * Constructs a new PushServerDeviceRegistrationRequest. * @param [properties] Properties to set @@ -71562,7 +75248,9 @@ export namespace Push { * @param [properties] Properties to set * @returns PushServerDeviceRegistrationRequest instance */ - public static create(properties?: Push.IPushServerDeviceRegistrationRequest): Push.PushServerDeviceRegistrationRequest; + public static create( + properties?: Push.IPushServerDeviceRegistrationRequest + ): Push.PushServerDeviceRegistrationRequest; /** * Encodes the specified PushServerDeviceRegistrationRequest message. Does not implicitly {@link Push.PushServerDeviceRegistrationRequest.verify|verify} messages. @@ -71570,7 +75258,10 @@ export namespace Push { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Push.IPushServerDeviceRegistrationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Push.IPushServerDeviceRegistrationRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified PushServerDeviceRegistrationRequest message, length delimited. Does not implicitly {@link Push.PushServerDeviceRegistrationRequest.verify|verify} messages. @@ -71578,7 +75269,10 @@ export namespace Push { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Push.IPushServerDeviceRegistrationRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Push.IPushServerDeviceRegistrationRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a PushServerDeviceRegistrationRequest message from the specified reader or buffer. @@ -71588,7 +75282,10 @@ export namespace Push { * @throws {Error} If the payload is 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; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Push.PushServerDeviceRegistrationRequest; /** * Decodes a PushServerDeviceRegistrationRequest message from the specified reader or buffer, length delimited. @@ -71597,14 +75294,14 @@ export namespace Push { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Push.PushServerDeviceRegistrationRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Push.PushServerDeviceRegistrationRequest; /** * Verifies a PushServerDeviceRegistrationRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a PushServerDeviceRegistrationRequest message from a plain object. Also converts values to their respective internal types. @@ -71619,7 +75316,10 @@ export namespace Push { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Push.PushServerDeviceRegistrationRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Push.PushServerDeviceRegistrationRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this PushServerDeviceRegistrationRequest to JSON. @@ -71637,17 +75337,15 @@ export namespace Push { /** Properties of a SnsMessage. */ interface ISnsMessage { - /** SnsMessage messageType */ - messageType?: (Push.MessageType|null); + messageType?: Push.MessageType | null; /** SnsMessage message */ - message?: (Uint8Array|null); + message?: Uint8Array | null; } /** Represents a SnsMessage. */ class SnsMessage implements ISnsMessage { - /** * Constructs a new SnsMessage. * @param [properties] Properties to set @@ -71691,7 +75389,7 @@ export namespace Push { * @throws {Error} If the payload is 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; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Push.SnsMessage; /** * Decodes a SnsMessage message from the specified reader or buffer, length delimited. @@ -71700,14 +75398,14 @@ export namespace Push { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Push.SnsMessage; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Push.SnsMessage; /** * Verifies a SnsMessage message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a SnsMessage message from a plain object. Also converts values to their respective internal types. @@ -71741,20 +75439,17 @@ export namespace Push { /** Namespace ServiceLogger. */ export namespace ServiceLogger { - /** Properties of an IdRange. */ interface IIdRange { - /** IdRange startingId */ - startingId?: (number|Long|null); + startingId?: number | Long | null; /** IdRange endingId */ - endingId?: (number|Long|null); + endingId?: number | Long | null; } /** 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 IdRange. * @param [properties] Properties to set @@ -71762,10 +75457,10 @@ export namespace ServiceLogger { constructor(properties?: ServiceLogger.IIdRange); /** IdRange startingId. */ - public startingId: (number|Long); + public startingId: number | Long; /** IdRange endingId. */ - public endingId: (number|Long); + public endingId: number | Long; /** * Creates a new IdRange instance using the specified properties. @@ -71798,7 +75493,7 @@ export namespace ServiceLogger { * @throws {Error} If the payload is 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; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): ServiceLogger.IdRange; /** * Decodes an IdRange message from the specified reader or buffer, length delimited. @@ -71807,14 +75502,14 @@ export namespace ServiceLogger { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ServiceLogger.IdRange; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): ServiceLogger.IdRange; /** * Verifies an IdRange message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an IdRange message from a plain object. Also converts values to their respective internal types. @@ -71829,7 +75524,10 @@ export namespace ServiceLogger { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ServiceLogger.IdRange, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: ServiceLogger.IdRange, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this IdRange to JSON. @@ -71847,20 +75545,18 @@ export namespace ServiceLogger { /** Properties of a ServiceInfoSpecifier. */ interface IServiceInfoSpecifier { - /** ServiceInfoSpecifier all */ - all?: (boolean|null); + all?: boolean | null; /** ServiceInfoSpecifier serviceInfoId */ - serviceInfoId?: (number|Long|null); + serviceInfoId?: number | Long | null; /** ServiceInfoSpecifier name */ - name?: (string|null); + name?: string | null; } /** Used in ServiceInfoRequest */ class ServiceInfoSpecifier implements IServiceInfoSpecifier { - /** * Constructs a new ServiceInfoSpecifier. * @param [properties] Properties to set @@ -71871,7 +75567,7 @@ export namespace ServiceLogger { public all: boolean; /** ServiceInfoSpecifier serviceInfoId. */ - public serviceInfoId: (number|Long); + public serviceInfoId: number | Long; /** ServiceInfoSpecifier name. */ public name: string; @@ -71897,7 +75593,10 @@ export namespace ServiceLogger { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ServiceLogger.IServiceInfoSpecifier, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: ServiceLogger.IServiceInfoSpecifier, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a ServiceInfoSpecifier message from the specified reader or buffer. @@ -71907,7 +75606,10 @@ export namespace ServiceLogger { * @throws {Error} If the payload is 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; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): ServiceLogger.ServiceInfoSpecifier; /** * Decodes a ServiceInfoSpecifier message from the specified reader or buffer, length delimited. @@ -71916,14 +75618,14 @@ export namespace ServiceLogger { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ServiceLogger.ServiceInfoSpecifier; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): ServiceLogger.ServiceInfoSpecifier; /** * Verifies a ServiceInfoSpecifier message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a ServiceInfoSpecifier message from a plain object. Also converts values to their respective internal types. @@ -71938,7 +75640,10 @@ export namespace ServiceLogger { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ServiceLogger.ServiceInfoSpecifier, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: ServiceLogger.ServiceInfoSpecifier, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this ServiceInfoSpecifier to JSON. @@ -71956,14 +75661,12 @@ export namespace ServiceLogger { /** Properties of a ServiceInfoRequest. */ interface IServiceInfoRequest { - /** ServiceInfoRequest serviceInfoSpecifier */ - serviceInfoSpecifier?: (ServiceLogger.IServiceInfoSpecifier[]|null); + serviceInfoSpecifier?: ServiceLogger.IServiceInfoSpecifier[] | null; } /** Request information about one or more services by ID or name, or retrieve all. */ class ServiceInfoRequest implements IServiceInfoRequest { - /** * Constructs a new ServiceInfoRequest. * @param [properties] Properties to set @@ -71994,7 +75697,10 @@ export namespace ServiceLogger { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ServiceLogger.IServiceInfoRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: ServiceLogger.IServiceInfoRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a ServiceInfoRequest message from the specified reader or buffer. @@ -72004,7 +75710,7 @@ export namespace ServiceLogger { * @throws {Error} If the payload is 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; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): ServiceLogger.ServiceInfoRequest; /** * Decodes a ServiceInfoRequest message from the specified reader or buffer, length delimited. @@ -72013,14 +75719,14 @@ export namespace ServiceLogger { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ServiceLogger.ServiceInfoRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): ServiceLogger.ServiceInfoRequest; /** * Verifies a ServiceInfoRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a ServiceInfoRequest message from a plain object. Also converts values to their respective internal types. @@ -72035,7 +75741,10 @@ export namespace ServiceLogger { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ServiceLogger.ServiceInfoRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: ServiceLogger.ServiceInfoRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this ServiceInfoRequest to JSON. @@ -72053,26 +75762,24 @@ export namespace ServiceLogger { /** Properties of a ServiceInfoRecord. */ interface IServiceInfoRecord { - /** ServiceInfoRecord serviceInfoId */ - serviceInfoId?: (number|Long|null); + serviceInfoId?: number | Long | null; /** ServiceInfoRecord name */ - name?: (string|null); + name?: string | null; /** ServiceInfoRecord deleteAfter */ - deleteAfter?: (number|null); + deleteAfter?: number | null; /** ServiceInfoRecord deleteAfterTimeUnits */ - deleteAfterTimeUnits?: (string|null); + deleteAfterTimeUnits?: string | null; /** ServiceInfoRecord isShortTermLogging */ - isShortTermLogging?: (boolean|null); + isShortTermLogging?: boolean | null; } /** Used in ServiceInfoResponse */ class ServiceInfoRecord implements IServiceInfoRecord { - /** * Constructs a new ServiceInfoRecord. * @param [properties] Properties to set @@ -72080,7 +75787,7 @@ export namespace ServiceLogger { constructor(properties?: ServiceLogger.IServiceInfoRecord); /** ServiceInfoRecord serviceInfoId. */ - public serviceInfoId: (number|Long); + public serviceInfoId: number | Long; /** ServiceInfoRecord name. */ public name: string; @@ -72115,7 +75822,10 @@ export namespace ServiceLogger { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ServiceLogger.IServiceInfoRecord, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: ServiceLogger.IServiceInfoRecord, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a ServiceInfoRecord message from the specified reader or buffer. @@ -72125,7 +75835,7 @@ export namespace ServiceLogger { * @throws {Error} If the payload is 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; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): ServiceLogger.ServiceInfoRecord; /** * Decodes a ServiceInfoRecord message from the specified reader or buffer, length delimited. @@ -72134,14 +75844,14 @@ export namespace ServiceLogger { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ServiceLogger.ServiceInfoRecord; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): ServiceLogger.ServiceInfoRecord; /** * Verifies a ServiceInfoRecord message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a ServiceInfoRecord message from a plain object. Also converts values to their respective internal types. @@ -72156,7 +75866,10 @@ export namespace ServiceLogger { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ServiceLogger.ServiceInfoRecord, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: ServiceLogger.ServiceInfoRecord, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this ServiceInfoRecord to JSON. @@ -72174,14 +75887,12 @@ export namespace ServiceLogger { /** Properties of a ServiceInfoResponse. */ interface IServiceInfoResponse { - /** ServiceInfoResponse serviceInfoRecord */ - serviceInfoRecord?: (ServiceLogger.IServiceInfoRecord[]|null); + serviceInfoRecord?: ServiceLogger.IServiceInfoRecord[] | null; } /** Returns information about Services */ class ServiceInfoResponse implements IServiceInfoResponse { - /** * Constructs a new ServiceInfoResponse. * @param [properties] Properties to set @@ -72212,7 +75923,10 @@ export namespace ServiceLogger { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ServiceLogger.IServiceInfoResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: ServiceLogger.IServiceInfoResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a ServiceInfoResponse message from the specified reader or buffer. @@ -72222,7 +75936,7 @@ export namespace ServiceLogger { * @throws {Error} If the payload is 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; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): ServiceLogger.ServiceInfoResponse; /** * Decodes a ServiceInfoResponse message from the specified reader or buffer, length delimited. @@ -72231,14 +75945,14 @@ export namespace ServiceLogger { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ServiceLogger.ServiceInfoResponse; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): ServiceLogger.ServiceInfoResponse; /** * Verifies a ServiceInfoResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a ServiceInfoResponse message from a plain object. Also converts values to their respective internal types. @@ -72253,7 +75967,10 @@ export namespace ServiceLogger { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ServiceLogger.ServiceInfoResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: ServiceLogger.ServiceInfoResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this ServiceInfoResponse to JSON. @@ -72271,14 +75988,12 @@ export namespace ServiceLogger { /** Properties of a ServiceInfoUpdateRequest. */ interface IServiceInfoUpdateRequest { - /** ServiceInfoUpdateRequest serviceInfoRecord */ - serviceInfoRecord?: (ServiceLogger.IServiceInfoRecord[]|null); + serviceInfoRecord?: ServiceLogger.IServiceInfoRecord[] | null; } /** Update one or more ServiceInfo records by their IDs */ class ServiceInfoUpdateRequest implements IServiceInfoUpdateRequest { - /** * Constructs a new ServiceInfoUpdateRequest. * @param [properties] Properties to set @@ -72293,7 +76008,9 @@ export namespace ServiceLogger { * @param [properties] Properties to set * @returns ServiceInfoUpdateRequest instance */ - public static create(properties?: ServiceLogger.IServiceInfoUpdateRequest): ServiceLogger.ServiceInfoUpdateRequest; + public static create( + properties?: ServiceLogger.IServiceInfoUpdateRequest + ): ServiceLogger.ServiceInfoUpdateRequest; /** * Encodes the specified ServiceInfoUpdateRequest message. Does not implicitly {@link ServiceLogger.ServiceInfoUpdateRequest.verify|verify} messages. @@ -72301,7 +76018,10 @@ export namespace ServiceLogger { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ServiceLogger.IServiceInfoUpdateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: ServiceLogger.IServiceInfoUpdateRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified ServiceInfoUpdateRequest message, length delimited. Does not implicitly {@link ServiceLogger.ServiceInfoUpdateRequest.verify|verify} messages. @@ -72309,7 +76029,10 @@ export namespace ServiceLogger { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ServiceLogger.IServiceInfoUpdateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: ServiceLogger.IServiceInfoUpdateRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a ServiceInfoUpdateRequest message from the specified reader or buffer. @@ -72319,7 +76042,10 @@ export namespace ServiceLogger { * @throws {Error} If the payload is 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; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): ServiceLogger.ServiceInfoUpdateRequest; /** * Decodes a ServiceInfoUpdateRequest message from the specified reader or buffer, length delimited. @@ -72328,14 +76054,14 @@ export namespace ServiceLogger { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ServiceLogger.ServiceInfoUpdateRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): ServiceLogger.ServiceInfoUpdateRequest; /** * Verifies a ServiceInfoUpdateRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a ServiceInfoUpdateRequest message from a plain object. Also converts values to their respective internal types. @@ -72350,7 +76076,10 @@ export namespace ServiceLogger { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ServiceLogger.ServiceInfoUpdateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: ServiceLogger.ServiceInfoUpdateRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this ServiceInfoUpdateRequest to JSON. @@ -72368,23 +76097,21 @@ export namespace ServiceLogger { /** Properties of a ServiceRuleSpecifier. */ interface IServiceRuleSpecifier { - /** ServiceRuleSpecifier all */ - all?: (boolean|null); + all?: boolean | null; /** ServiceRuleSpecifier serviceRuleId */ - serviceRuleId?: (number|Long|null); + serviceRuleId?: number | Long | null; /** ServiceRuleSpecifier serviceInfoId */ - serviceInfoId?: (number|Long|null); + serviceInfoId?: number | Long | null; /** ServiceRuleSpecifier resourceIdRange */ - resourceIdRange?: (ServiceLogger.IIdRange[]|null); + resourceIdRange?: ServiceLogger.IIdRange[] | null; } /** Represents a ServiceRuleSpecifier. */ class ServiceRuleSpecifier implements IServiceRuleSpecifier { - /** * Constructs a new ServiceRuleSpecifier. * @param [properties] Properties to set @@ -72395,10 +76122,10 @@ export namespace ServiceLogger { public all: boolean; /** ServiceRuleSpecifier serviceRuleId. */ - public serviceRuleId: (number|Long); + public serviceRuleId: number | Long; /** ServiceRuleSpecifier serviceInfoId. */ - public serviceInfoId: (number|Long); + public serviceInfoId: number | Long; /** ServiceRuleSpecifier resourceIdRange. */ public resourceIdRange: ServiceLogger.IIdRange[]; @@ -72424,7 +76151,10 @@ export namespace ServiceLogger { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ServiceLogger.IServiceRuleSpecifier, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: ServiceLogger.IServiceRuleSpecifier, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a ServiceRuleSpecifier message from the specified reader or buffer. @@ -72434,7 +76164,10 @@ export namespace ServiceLogger { * @throws {Error} If the payload is 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; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): ServiceLogger.ServiceRuleSpecifier; /** * Decodes a ServiceRuleSpecifier message from the specified reader or buffer, length delimited. @@ -72443,14 +76176,14 @@ export namespace ServiceLogger { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ServiceLogger.ServiceRuleSpecifier; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): ServiceLogger.ServiceRuleSpecifier; /** * Verifies a ServiceRuleSpecifier message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a ServiceRuleSpecifier message from a plain object. Also converts values to their respective internal types. @@ -72465,7 +76198,10 @@ export namespace ServiceLogger { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ServiceLogger.ServiceRuleSpecifier, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: ServiceLogger.ServiceRuleSpecifier, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this ServiceRuleSpecifier to JSON. @@ -72483,14 +76219,12 @@ export namespace ServiceLogger { /** Properties of a ServiceRuleRequest. */ interface IServiceRuleRequest { - /** ServiceRuleRequest serviceRuleSpecifier */ - serviceRuleSpecifier?: (ServiceLogger.IServiceRuleSpecifier[]|null); + serviceRuleSpecifier?: ServiceLogger.IServiceRuleSpecifier[] | null; } /** Represents a ServiceRuleRequest. */ class ServiceRuleRequest implements IServiceRuleRequest { - /** * Constructs a new ServiceRuleRequest. * @param [properties] Properties to set @@ -72521,7 +76255,10 @@ export namespace ServiceLogger { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ServiceLogger.IServiceRuleRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: ServiceLogger.IServiceRuleRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a ServiceRuleRequest message from the specified reader or buffer. @@ -72531,7 +76268,7 @@ export namespace ServiceLogger { * @throws {Error} If the payload is 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; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): ServiceLogger.ServiceRuleRequest; /** * Decodes a ServiceRuleRequest message from the specified reader or buffer, length delimited. @@ -72540,14 +76277,14 @@ export namespace ServiceLogger { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ServiceLogger.ServiceRuleRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): ServiceLogger.ServiceRuleRequest; /** * Verifies a ServiceRuleRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a ServiceRuleRequest message from a plain object. Also converts values to their respective internal types. @@ -72562,7 +76299,10 @@ export namespace ServiceLogger { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ServiceLogger.ServiceRuleRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: ServiceLogger.ServiceRuleRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this ServiceRuleRequest to JSON. @@ -72580,35 +76320,33 @@ export namespace ServiceLogger { /** Properties of a ServiceRuleRecord. */ interface IServiceRuleRecord { - /** ServiceRuleRecord serviceRuleId */ - serviceRuleId?: (number|Long|null); + serviceRuleId?: number | Long | null; /** ServiceRuleRecord serviceInfoId */ - serviceInfoId?: (number|Long|null); + serviceInfoId?: number | Long | null; /** ServiceRuleRecord resourceId */ - resourceId?: (number|Long|null); + resourceId?: number | Long | null; /** ServiceRuleRecord isLoggingEnabled */ - isLoggingEnabled?: (boolean|null); + isLoggingEnabled?: boolean | null; /** ServiceRuleRecord logLevel */ - logLevel?: (string|null); + logLevel?: string | null; /** ServiceRuleRecord ruleStart */ - ruleStart?: (string|null); + ruleStart?: string | null; /** ServiceRuleRecord ruleEnd */ - ruleEnd?: (string|null); + ruleEnd?: string | null; /** ServiceRuleRecord dateModified */ - dateModified?: (string|null); + dateModified?: string | null; } /** Represents a ServiceRuleRecord. */ class ServiceRuleRecord implements IServiceRuleRecord { - /** * Constructs a new ServiceRuleRecord. * @param [properties] Properties to set @@ -72616,13 +76354,13 @@ export namespace ServiceLogger { constructor(properties?: ServiceLogger.IServiceRuleRecord); /** ServiceRuleRecord serviceRuleId. */ - public serviceRuleId: (number|Long); + public serviceRuleId: number | Long; /** ServiceRuleRecord serviceInfoId. */ - public serviceInfoId: (number|Long); + public serviceInfoId: number | Long; /** ServiceRuleRecord resourceId. */ - public resourceId: (number|Long); + public resourceId: number | Long; /** ServiceRuleRecord isLoggingEnabled. */ public isLoggingEnabled: boolean; @@ -72660,7 +76398,10 @@ export namespace ServiceLogger { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ServiceLogger.IServiceRuleRecord, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: ServiceLogger.IServiceRuleRecord, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a ServiceRuleRecord message from the specified reader or buffer. @@ -72670,7 +76411,7 @@ export namespace ServiceLogger { * @throws {Error} If the payload is 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; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): ServiceLogger.ServiceRuleRecord; /** * Decodes a ServiceRuleRecord message from the specified reader or buffer, length delimited. @@ -72679,14 +76420,14 @@ export namespace ServiceLogger { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ServiceLogger.ServiceRuleRecord; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): ServiceLogger.ServiceRuleRecord; /** * Verifies a ServiceRuleRecord message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a ServiceRuleRecord message from a plain object. Also converts values to their respective internal types. @@ -72701,7 +76442,10 @@ export namespace ServiceLogger { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ServiceLogger.ServiceRuleRecord, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: ServiceLogger.ServiceRuleRecord, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this ServiceRuleRecord to JSON. @@ -72719,14 +76463,12 @@ export namespace ServiceLogger { /** Properties of a ServiceRuleResponse. */ interface IServiceRuleResponse { - /** ServiceRuleResponse serviceRule */ - serviceRule?: (ServiceLogger.IServiceRuleRecord[]|null); + serviceRule?: ServiceLogger.IServiceRuleRecord[] | null; } /** Represents a ServiceRuleResponse. */ class ServiceRuleResponse implements IServiceRuleResponse { - /** * Constructs a new ServiceRuleResponse. * @param [properties] Properties to set @@ -72757,7 +76499,10 @@ export namespace ServiceLogger { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ServiceLogger.IServiceRuleResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: ServiceLogger.IServiceRuleResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a ServiceRuleResponse message from the specified reader or buffer. @@ -72767,7 +76512,7 @@ export namespace ServiceLogger { * @throws {Error} If the payload is 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; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): ServiceLogger.ServiceRuleResponse; /** * Decodes a ServiceRuleResponse message from the specified reader or buffer, length delimited. @@ -72776,14 +76521,14 @@ export namespace ServiceLogger { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ServiceLogger.ServiceRuleResponse; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): ServiceLogger.ServiceRuleResponse; /** * Verifies a ServiceRuleResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a ServiceRuleResponse message from a plain object. Also converts values to their respective internal types. @@ -72798,7 +76543,10 @@ export namespace ServiceLogger { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ServiceLogger.ServiceRuleResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: ServiceLogger.ServiceRuleResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this ServiceRuleResponse to JSON. @@ -72816,14 +76564,12 @@ export namespace ServiceLogger { /** Properties of a ServiceRuleUpdateRequest. */ interface IServiceRuleUpdateRequest { - /** ServiceRuleUpdateRequest serviceRuleRecord */ - serviceRuleRecord?: (ServiceLogger.IServiceRuleRecord[]|null); + serviceRuleRecord?: ServiceLogger.IServiceRuleRecord[] | null; } /** Update one or more ServiceRule records by their IDs */ class ServiceRuleUpdateRequest implements IServiceRuleUpdateRequest { - /** * Constructs a new ServiceRuleUpdateRequest. * @param [properties] Properties to set @@ -72838,7 +76584,9 @@ export namespace ServiceLogger { * @param [properties] Properties to set * @returns ServiceRuleUpdateRequest instance */ - public static create(properties?: ServiceLogger.IServiceRuleUpdateRequest): ServiceLogger.ServiceRuleUpdateRequest; + public static create( + properties?: ServiceLogger.IServiceRuleUpdateRequest + ): ServiceLogger.ServiceRuleUpdateRequest; /** * Encodes the specified ServiceRuleUpdateRequest message. Does not implicitly {@link ServiceLogger.ServiceRuleUpdateRequest.verify|verify} messages. @@ -72846,7 +76594,10 @@ export namespace ServiceLogger { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ServiceLogger.IServiceRuleUpdateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: ServiceLogger.IServiceRuleUpdateRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified ServiceRuleUpdateRequest message, length delimited. Does not implicitly {@link ServiceLogger.ServiceRuleUpdateRequest.verify|verify} messages. @@ -72854,7 +76605,10 @@ export namespace ServiceLogger { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ServiceLogger.IServiceRuleUpdateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: ServiceLogger.IServiceRuleUpdateRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a ServiceRuleUpdateRequest message from the specified reader or buffer. @@ -72864,7 +76618,10 @@ export namespace ServiceLogger { * @throws {Error} If the payload is 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; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): ServiceLogger.ServiceRuleUpdateRequest; /** * Decodes a ServiceRuleUpdateRequest message from the specified reader or buffer, length delimited. @@ -72873,14 +76630,14 @@ export namespace ServiceLogger { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ServiceLogger.ServiceRuleUpdateRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): ServiceLogger.ServiceRuleUpdateRequest; /** * Verifies a ServiceRuleUpdateRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a ServiceRuleUpdateRequest message from a plain object. Also converts values to their respective internal types. @@ -72895,7 +76652,10 @@ export namespace ServiceLogger { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ServiceLogger.ServiceRuleUpdateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: ServiceLogger.ServiceRuleUpdateRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this ServiceRuleUpdateRequest to JSON. @@ -72913,29 +76673,27 @@ export namespace ServiceLogger { /** Properties of a ServiceLogSpecifier. */ interface IServiceLogSpecifier { - /** ServiceLogSpecifier all */ - all?: (boolean|null); + all?: boolean | null; /** ServiceLogSpecifier serviceLogId */ - serviceLogId?: (number|Long|null); + serviceLogId?: number | Long | null; /** ServiceLogSpecifier serviceIdRange */ - serviceIdRange?: (ServiceLogger.IIdRange[]|null); + serviceIdRange?: ServiceLogger.IIdRange[] | null; /** ServiceLogSpecifier resourceIdRange */ - resourceIdRange?: (ServiceLogger.IIdRange[]|null); + resourceIdRange?: ServiceLogger.IIdRange[] | null; /** ServiceLogSpecifier startDateTime */ - startDateTime?: (string|null); + startDateTime?: string | null; /** ServiceLogSpecifier endDateTime */ - endDateTime?: (string|null); + endDateTime?: string | null; } /** Represents a ServiceLogSpecifier. */ class ServiceLogSpecifier implements IServiceLogSpecifier { - /** * Constructs a new ServiceLogSpecifier. * @param [properties] Properties to set @@ -72946,7 +76704,7 @@ export namespace ServiceLogger { public all: boolean; /** ServiceLogSpecifier serviceLogId. */ - public serviceLogId: (number|Long); + public serviceLogId: number | Long; /** ServiceLogSpecifier serviceIdRange. */ public serviceIdRange: ServiceLogger.IIdRange[]; @@ -72981,7 +76739,10 @@ export namespace ServiceLogger { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ServiceLogger.IServiceLogSpecifier, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: ServiceLogger.IServiceLogSpecifier, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a ServiceLogSpecifier message from the specified reader or buffer. @@ -72991,7 +76752,7 @@ export namespace ServiceLogger { * @throws {Error} If the payload is 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): ServiceLogger.ServiceLogSpecifier; /** * Decodes a ServiceLogSpecifier message from the specified reader or buffer, length delimited. @@ -73000,14 +76761,14 @@ export namespace ServiceLogger { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ServiceLogger.ServiceLogSpecifier; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): ServiceLogger.ServiceLogSpecifier; /** * Verifies a ServiceLogSpecifier message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a ServiceLogSpecifier message from a plain object. Also converts values to their respective internal types. @@ -73022,7 +76783,10 @@ export namespace ServiceLogger { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ServiceLogger.ServiceLogSpecifier, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: ServiceLogger.ServiceLogSpecifier, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this ServiceLogSpecifier to JSON. @@ -73040,14 +76804,12 @@ export namespace ServiceLogger { /** Properties of a ServiceLogGetRequest. */ interface IServiceLogGetRequest { - /** ServiceLogGetRequest serviceLogSpecifier */ - serviceLogSpecifier?: (ServiceLogger.IServiceLogSpecifier[]|null); + serviceLogSpecifier?: ServiceLogger.IServiceLogSpecifier[] | null; } /** Represents a ServiceLogGetRequest. */ class ServiceLogGetRequest implements IServiceLogGetRequest { - /** * Constructs a new ServiceLogGetRequest. * @param [properties] Properties to set @@ -73078,7 +76840,10 @@ export namespace ServiceLogger { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ServiceLogger.IServiceLogGetRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: ServiceLogger.IServiceLogGetRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a ServiceLogGetRequest message from the specified reader or buffer. @@ -73088,7 +76853,10 @@ export namespace ServiceLogger { * @throws {Error} If the payload is 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 + ): ServiceLogger.ServiceLogGetRequest; /** * Decodes a ServiceLogGetRequest message from the specified reader or buffer, length delimited. @@ -73097,14 +76865,14 @@ export namespace ServiceLogger { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ServiceLogger.ServiceLogGetRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): ServiceLogger.ServiceLogGetRequest; /** * Verifies a ServiceLogGetRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a ServiceLogGetRequest message from a plain object. Also converts values to their respective internal types. @@ -73119,7 +76887,10 @@ export namespace ServiceLogger { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ServiceLogger.ServiceLogGetRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: ServiceLogger.ServiceLogGetRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this ServiceLogGetRequest to JSON. @@ -73137,35 +76908,33 @@ export namespace ServiceLogger { /** Properties of a ServiceLogRecord. */ interface IServiceLogRecord { - /** ServiceLogRecord serviceLogId */ - serviceLogId?: (number|Long|null); + serviceLogId?: number | Long | null; /** ServiceLogRecord serviceInfoId */ - serviceInfoId?: (number|Long|null); + serviceInfoId?: number | Long | null; /** ServiceLogRecord resourceId */ - resourceId?: (number|Long|null); + resourceId?: number | Long | null; /** ServiceLogRecord logger */ - logger?: (string|null); + logger?: string | null; /** ServiceLogRecord logLevel */ - logLevel?: (string|null); + logLevel?: string | null; /** ServiceLogRecord message */ - message?: (string|null); + message?: string | null; /** ServiceLogRecord exception */ - exception?: (string|null); + exception?: string | null; /** ServiceLogRecord dateCreated */ - dateCreated?: (string|null); + dateCreated?: string | null; } /** Represents a ServiceLogRecord. */ class ServiceLogRecord implements IServiceLogRecord { - /** * Constructs a new ServiceLogRecord. * @param [properties] Properties to set @@ -73173,13 +76942,13 @@ export namespace ServiceLogger { constructor(properties?: ServiceLogger.IServiceLogRecord); /** ServiceLogRecord serviceLogId. */ - public serviceLogId: (number|Long); + public serviceLogId: number | Long; /** ServiceLogRecord serviceInfoId. */ - public serviceInfoId: (number|Long); + public serviceInfoId: number | Long; /** ServiceLogRecord resourceId. */ - public resourceId: (number|Long); + public resourceId: number | Long; /** ServiceLogRecord logger. */ public logger: string; @@ -73217,7 +76986,10 @@ export namespace ServiceLogger { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ServiceLogger.IServiceLogRecord, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: ServiceLogger.IServiceLogRecord, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a ServiceLogRecord message from the specified reader or buffer. @@ -73227,7 +76999,7 @@ export namespace ServiceLogger { * @throws {Error} If the payload is 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): ServiceLogger.ServiceLogRecord; /** * Decodes a ServiceLogRecord message from the specified reader or buffer, length delimited. @@ -73236,14 +77008,14 @@ export namespace ServiceLogger { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ServiceLogger.ServiceLogRecord; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): ServiceLogger.ServiceLogRecord; /** * Verifies a ServiceLogRecord message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a ServiceLogRecord message from a plain object. Also converts values to their respective internal types. @@ -73258,7 +77030,10 @@ export namespace ServiceLogger { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ServiceLogger.ServiceLogRecord, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: ServiceLogger.ServiceLogRecord, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this ServiceLogRecord to JSON. @@ -73276,14 +77051,12 @@ export namespace ServiceLogger { /** Properties of a ServiceLogAddRequest. */ interface IServiceLogAddRequest { - /** ServiceLogAddRequest entry */ - entry?: (ServiceLogger.IServiceLogRecord[]|null); + entry?: ServiceLogger.IServiceLogRecord[] | null; } /** Represents a ServiceLogAddRequest. */ class ServiceLogAddRequest implements IServiceLogAddRequest { - /** * Constructs a new ServiceLogAddRequest. * @param [properties] Properties to set @@ -73314,7 +77087,10 @@ export namespace ServiceLogger { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ServiceLogger.IServiceLogAddRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: ServiceLogger.IServiceLogAddRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a ServiceLogAddRequest message from the specified reader or buffer. @@ -73324,7 +77100,10 @@ export namespace ServiceLogger { * @throws {Error} If the payload is 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 + ): ServiceLogger.ServiceLogAddRequest; /** * Decodes a ServiceLogAddRequest message from the specified reader or buffer, length delimited. @@ -73333,14 +77112,14 @@ export namespace ServiceLogger { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ServiceLogger.ServiceLogAddRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): ServiceLogger.ServiceLogAddRequest; /** * Verifies a ServiceLogAddRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a ServiceLogAddRequest message from a plain object. Also converts values to their respective internal types. @@ -73355,7 +77134,10 @@ export namespace ServiceLogger { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ServiceLogger.ServiceLogAddRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: ServiceLogger.ServiceLogAddRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this ServiceLogAddRequest to JSON. @@ -73373,14 +77155,12 @@ export namespace ServiceLogger { /** Properties of a ServiceLogResponse. */ interface IServiceLogResponse { - /** ServiceLogResponse entry */ - entry?: (ServiceLogger.IServiceLogRecord[]|null); + entry?: ServiceLogger.IServiceLogRecord[] | null; } /** Represents a ServiceLogResponse. */ class ServiceLogResponse implements IServiceLogResponse { - /** * Constructs a new ServiceLogResponse. * @param [properties] Properties to set @@ -73411,7 +77191,10 @@ export namespace ServiceLogger { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ServiceLogger.IServiceLogResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: ServiceLogger.IServiceLogResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a ServiceLogResponse message from the specified reader or buffer. @@ -73421,7 +77204,7 @@ export namespace ServiceLogger { * @throws {Error} If the payload is 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): ServiceLogger.ServiceLogResponse; /** * Decodes a ServiceLogResponse message from the specified reader or buffer, length delimited. @@ -73430,14 +77213,14 @@ export namespace ServiceLogger { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ServiceLogger.ServiceLogResponse; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): ServiceLogger.ServiceLogResponse; /** * Verifies a ServiceLogResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a ServiceLogResponse message from a plain object. Also converts values to their respective internal types. @@ -73452,7 +77235,10 @@ export namespace ServiceLogger { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ServiceLogger.ServiceLogResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: ServiceLogger.ServiceLogResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this ServiceLogResponse to JSON. @@ -73470,26 +77256,24 @@ export namespace ServiceLogger { /** Properties of a ServiceLogClearRequest. */ interface IServiceLogClearRequest { - /** ServiceLogClearRequest useDefaults */ - useDefaults?: (boolean|null); + useDefaults?: boolean | null; /** ServiceLogClearRequest serviceTypeId */ - serviceTypeId?: (number|Long|null); + serviceTypeId?: number | Long | null; /** ServiceLogClearRequest daysOld */ - daysOld?: (number|null); + daysOld?: number | null; /** ServiceLogClearRequest hoursOld */ - hoursOld?: (number|null); + hoursOld?: number | null; /** ServiceLogClearRequest resourceIdRange */ - resourceIdRange?: (ServiceLogger.IIdRange[]|null); + resourceIdRange?: ServiceLogger.IIdRange[] | null; } /** This is a request to clear the SSO Service Provider log */ class ServiceLogClearRequest implements IServiceLogClearRequest { - /** * Constructs a new ServiceLogClearRequest. * @param [properties] Properties to set @@ -73500,7 +77284,7 @@ export namespace ServiceLogger { public useDefaults: boolean; /** ServiceLogClearRequest serviceTypeId. */ - public serviceTypeId: (number|Long); + public serviceTypeId: number | Long; /** ServiceLogClearRequest daysOld. */ public daysOld: number; @@ -73524,7 +77308,10 @@ export namespace ServiceLogger { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ServiceLogger.IServiceLogClearRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: ServiceLogger.IServiceLogClearRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified ServiceLogClearRequest message, length delimited. Does not implicitly {@link ServiceLogger.ServiceLogClearRequest.verify|verify} messages. @@ -73532,7 +77319,10 @@ export namespace ServiceLogger { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ServiceLogger.IServiceLogClearRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: ServiceLogger.IServiceLogClearRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a ServiceLogClearRequest message from the specified reader or buffer. @@ -73542,7 +77332,10 @@ export namespace ServiceLogger { * @throws {Error} If the payload is 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 + ): ServiceLogger.ServiceLogClearRequest; /** * Decodes a ServiceLogClearRequest message from the specified reader or buffer, length delimited. @@ -73551,14 +77344,14 @@ export namespace ServiceLogger { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ServiceLogger.ServiceLogClearRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): ServiceLogger.ServiceLogClearRequest; /** * Verifies a ServiceLogClearRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a ServiceLogClearRequest message from a plain object. Also converts values to their respective internal types. @@ -73573,7 +77366,10 @@ export namespace ServiceLogger { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ServiceLogger.ServiceLogClearRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: ServiceLogger.ServiceLogClearRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this ServiceLogClearRequest to JSON. @@ -73591,26 +77387,24 @@ export namespace ServiceLogger { /** Properties of a ServiceLogClearResponse. */ interface IServiceLogClearResponse { - /** ServiceLogClearResponse serviceTypeId */ - serviceTypeId?: (number|Long|null); + serviceTypeId?: number | Long | null; /** ServiceLogClearResponse serviceName */ - serviceName?: (string|null); + serviceName?: string | null; /** ServiceLogClearResponse resourceIdRange */ - resourceIdRange?: (ServiceLogger.IIdRange[]|null); + resourceIdRange?: ServiceLogger.IIdRange[] | null; /** ServiceLogClearResponse numDeleted */ - numDeleted?: (number|null); + numDeleted?: number | null; /** ServiceLogClearResponse numRemaining */ - numRemaining?: (number|null); + numRemaining?: number | null; } /** This is the response from the sso_log_clear command */ class ServiceLogClearResponse implements IServiceLogClearResponse { - /** * Constructs a new ServiceLogClearResponse. * @param [properties] Properties to set @@ -73618,7 +77412,7 @@ export namespace ServiceLogger { constructor(properties?: ServiceLogger.IServiceLogClearResponse); /** ServiceLogClearResponse serviceTypeId. */ - public serviceTypeId: (number|Long); + public serviceTypeId: number | Long; /** ServiceLogClearResponse serviceName. */ public serviceName: string; @@ -73637,7 +77431,9 @@ export namespace ServiceLogger { * @param [properties] Properties to set * @returns ServiceLogClearResponse instance */ - public static create(properties?: ServiceLogger.IServiceLogClearResponse): ServiceLogger.ServiceLogClearResponse; + public static create( + properties?: ServiceLogger.IServiceLogClearResponse + ): ServiceLogger.ServiceLogClearResponse; /** * Encodes the specified ServiceLogClearResponse message. Does not implicitly {@link ServiceLogger.ServiceLogClearResponse.verify|verify} messages. @@ -73645,7 +77441,10 @@ export namespace ServiceLogger { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: ServiceLogger.IServiceLogClearResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: ServiceLogger.IServiceLogClearResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified ServiceLogClearResponse message, length delimited. Does not implicitly {@link ServiceLogger.ServiceLogClearResponse.verify|verify} messages. @@ -73653,7 +77452,10 @@ export namespace ServiceLogger { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: ServiceLogger.IServiceLogClearResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: ServiceLogger.IServiceLogClearResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a ServiceLogClearResponse message from the specified reader or buffer. @@ -73663,7 +77465,10 @@ export namespace ServiceLogger { * @throws {Error} If the payload is 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; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): ServiceLogger.ServiceLogClearResponse; /** * Decodes a ServiceLogClearResponse message from the specified reader or buffer, length delimited. @@ -73672,14 +77477,14 @@ export namespace ServiceLogger { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ServiceLogger.ServiceLogClearResponse; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): ServiceLogger.ServiceLogClearResponse; /** * Verifies a ServiceLogClearResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a ServiceLogClearResponse message from a plain object. Also converts values to their respective internal types. @@ -73694,7 +77499,10 @@ export namespace ServiceLogger { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: ServiceLogger.ServiceLogClearResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: ServiceLogger.ServiceLogClearResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this ServiceLogClearResponse to JSON. @@ -73713,26 +77521,23 @@ export namespace ServiceLogger { /** Namespace Vault. */ export namespace Vault { - /** CacheStatus enum. */ enum CacheStatus { KEEP = 0, - CLEAR = 1 + CLEAR = 1, } /** Properties of a SyncDownRequest. */ interface ISyncDownRequest { - /** SyncDownRequest continuationToken */ - continuationToken?: (Uint8Array|null); + continuationToken?: Uint8Array | null; /** SyncDownRequest dataVersion */ - dataVersion?: (number|null); + dataVersion?: number | null; } /** Represents a SyncDownRequest. */ class SyncDownRequest implements ISyncDownRequest { - /** * Constructs a new SyncDownRequest. * @param [properties] Properties to set @@ -73776,7 +77581,7 @@ export namespace Vault { * @throws {Error} If the payload is 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; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Vault.SyncDownRequest; /** * Decodes a SyncDownRequest message from the specified reader or buffer, length delimited. @@ -73785,14 +77590,14 @@ export namespace Vault { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Vault.SyncDownRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Vault.SyncDownRequest; /** * Verifies a SyncDownRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a SyncDownRequest message from a plain object. Also converts values to their respective internal types. @@ -73807,7 +77612,10 @@ export namespace Vault { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Vault.SyncDownRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Vault.SyncDownRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this SyncDownRequest to JSON. @@ -73825,152 +77633,150 @@ export namespace Vault { /** Properties of a SyncDownResponse. */ interface ISyncDownResponse { - /** SyncDownResponse continuationToken */ - continuationToken?: (Uint8Array|null); + continuationToken?: Uint8Array | null; /** SyncDownResponse hasMore */ - hasMore?: (boolean|null); + hasMore?: boolean | null; /** SyncDownResponse cacheStatus */ - cacheStatus?: (Vault.CacheStatus|null); + cacheStatus?: Vault.CacheStatus | null; /** SyncDownResponse userFolders */ - userFolders?: (Vault.IUserFolder[]|null); + userFolders?: Vault.IUserFolder[] | null; /** SyncDownResponse sharedFolders */ - sharedFolders?: (Vault.ISharedFolder[]|null); + sharedFolders?: Vault.ISharedFolder[] | null; /** SyncDownResponse userFolderSharedFolders */ - userFolderSharedFolders?: (Vault.IUserFolderSharedFolder[]|null); + userFolderSharedFolders?: Vault.IUserFolderSharedFolder[] | null; /** SyncDownResponse sharedFolderFolders */ - sharedFolderFolders?: (Vault.ISharedFolderFolder[]|null); + sharedFolderFolders?: Vault.ISharedFolderFolder[] | null; /** SyncDownResponse records */ - records?: (Vault.IRecord[]|null); + records?: Vault.IRecord[] | null; /** SyncDownResponse recordMetaData */ - recordMetaData?: (Vault.IRecordMetaData[]|null); + recordMetaData?: Vault.IRecordMetaData[] | null; /** SyncDownResponse nonSharedData */ - nonSharedData?: (Vault.INonSharedData[]|null); + nonSharedData?: Vault.INonSharedData[] | null; /** SyncDownResponse recordLinks */ - recordLinks?: (Vault.IRecordLink[]|null); + recordLinks?: Vault.IRecordLink[] | null; /** SyncDownResponse userFolderRecords */ - userFolderRecords?: (Vault.IUserFolderRecord[]|null); + userFolderRecords?: Vault.IUserFolderRecord[] | null; /** SyncDownResponse sharedFolderRecords */ - sharedFolderRecords?: (Vault.ISharedFolderRecord[]|null); + sharedFolderRecords?: Vault.ISharedFolderRecord[] | null; /** SyncDownResponse sharedFolderFolderRecords */ - sharedFolderFolderRecords?: (Vault.ISharedFolderFolderRecord[]|null); + sharedFolderFolderRecords?: Vault.ISharedFolderFolderRecord[] | null; /** SyncDownResponse sharedFolderUsers */ - sharedFolderUsers?: (Vault.ISharedFolderUser[]|null); + sharedFolderUsers?: Vault.ISharedFolderUser[] | null; /** SyncDownResponse sharedFolderTeams */ - sharedFolderTeams?: (Vault.ISharedFolderTeam[]|null); + sharedFolderTeams?: Vault.ISharedFolderTeam[] | null; /** SyncDownResponse recordAddAuditData */ - recordAddAuditData?: (Uint8Array[]|null); + recordAddAuditData?: Uint8Array[] | null; /** SyncDownResponse teams */ - teams?: (Vault.ITeam[]|null); + teams?: Vault.ITeam[] | null; /** SyncDownResponse sharingChanges */ - sharingChanges?: (Vault.ISharingChange[]|null); + sharingChanges?: Vault.ISharingChange[] | null; /** SyncDownResponse profile */ - profile?: (Vault.IProfile|null); + profile?: Vault.IProfile | null; /** SyncDownResponse profilePic */ - profilePic?: (Vault.IProfilePic|null); + profilePic?: Vault.IProfilePic | null; /** SyncDownResponse pendingTeamMembers */ - pendingTeamMembers?: (Vault.IPendingTeamMember[]|null); + pendingTeamMembers?: Vault.IPendingTeamMember[] | null; /** SyncDownResponse breachWatchRecords */ - breachWatchRecords?: (Vault.IBreachWatchRecord[]|null); + breachWatchRecords?: Vault.IBreachWatchRecord[] | null; /** SyncDownResponse userAuths */ - userAuths?: (Vault.IUserAuth[]|null); + userAuths?: Vault.IUserAuth[] | null; /** SyncDownResponse breachWatchSecurityData */ - breachWatchSecurityData?: (Vault.IBreachWatchSecurityData[]|null); + breachWatchSecurityData?: Vault.IBreachWatchSecurityData[] | null; /** SyncDownResponse reusedPasswords */ - reusedPasswords?: (Vault.IReusedPasswords|null); + reusedPasswords?: Vault.IReusedPasswords | null; /** SyncDownResponse removedUserFolders */ - removedUserFolders?: (Uint8Array[]|null); + removedUserFolders?: Uint8Array[] | null; /** SyncDownResponse removedSharedFolders */ - removedSharedFolders?: (Uint8Array[]|null); + removedSharedFolders?: Uint8Array[] | null; /** SyncDownResponse removedUserFolderSharedFolders */ - removedUserFolderSharedFolders?: (Vault.IUserFolderSharedFolder[]|null); + removedUserFolderSharedFolders?: Vault.IUserFolderSharedFolder[] | null; /** SyncDownResponse removedSharedFolderFolders */ - removedSharedFolderFolders?: (Vault.ISharedFolderFolder[]|null); + removedSharedFolderFolders?: Vault.ISharedFolderFolder[] | null; /** SyncDownResponse removedRecords */ - removedRecords?: (Uint8Array[]|null); + removedRecords?: Uint8Array[] | null; /** SyncDownResponse removedRecordLinks */ - removedRecordLinks?: (Vault.IRecordLink[]|null); + removedRecordLinks?: Vault.IRecordLink[] | null; /** SyncDownResponse removedUserFolderRecords */ - removedUserFolderRecords?: (Vault.IUserFolderRecord[]|null); + removedUserFolderRecords?: Vault.IUserFolderRecord[] | null; /** SyncDownResponse removedSharedFolderRecords */ - removedSharedFolderRecords?: (Vault.ISharedFolderRecord[]|null); + removedSharedFolderRecords?: Vault.ISharedFolderRecord[] | null; /** SyncDownResponse removedSharedFolderFolderRecords */ - removedSharedFolderFolderRecords?: (Vault.ISharedFolderFolderRecord[]|null); + removedSharedFolderFolderRecords?: Vault.ISharedFolderFolderRecord[] | null; /** SyncDownResponse removedSharedFolderUsers */ - removedSharedFolderUsers?: (Vault.ISharedFolderUser[]|null); + removedSharedFolderUsers?: Vault.ISharedFolderUser[] | null; /** SyncDownResponse removedSharedFolderTeams */ - removedSharedFolderTeams?: (Vault.ISharedFolderTeam[]|null); + removedSharedFolderTeams?: Vault.ISharedFolderTeam[] | null; /** SyncDownResponse removedTeams */ - removedTeams?: (Uint8Array[]|null); + removedTeams?: Uint8Array[] | null; /** SyncDownResponse ksmAppShares */ - ksmAppShares?: (Vault.IKsmChange[]|null); + ksmAppShares?: Vault.IKsmChange[] | null; /** SyncDownResponse ksmAppClients */ - ksmAppClients?: (Vault.IKsmChange[]|null); + ksmAppClients?: Vault.IKsmChange[] | null; /** SyncDownResponse shareInvitations */ - shareInvitations?: (Vault.IShareInvitation[]|null); + shareInvitations?: Vault.IShareInvitation[] | null; /** SyncDownResponse diagnostics */ - diagnostics?: (Vault.ISyncDiagnostics|null); + diagnostics?: Vault.ISyncDiagnostics | null; /** SyncDownResponse recordRotations */ - recordRotations?: (Vault.IRecordRotation[]|null); + recordRotations?: Vault.IRecordRotation[] | null; /** SyncDownResponse users */ - users?: (Vault.IUser[]|null); + users?: Vault.IUser[] | null; /** SyncDownResponse removedUsers */ - removedUsers?: (Uint8Array[]|null); + removedUsers?: Uint8Array[] | null; /** SyncDownResponse securityScoreData */ - securityScoreData?: (Vault.ISecurityScoreData[]|null); + securityScoreData?: Vault.ISecurityScoreData[] | null; /** SyncDownResponse notificationSync */ - notificationSync?: (NotificationCenter.INotificationWrapper[]|null); + notificationSync?: NotificationCenter.INotificationWrapper[] | null; } /** Represents a SyncDownResponse. */ class SyncDownResponse implements ISyncDownResponse { - /** * Constructs a new SyncDownResponse. * @param [properties] Properties to set @@ -74035,10 +77841,10 @@ export namespace Vault { public sharingChanges: Vault.ISharingChange[]; /** SyncDownResponse profile. */ - public profile?: (Vault.IProfile|null); + public profile?: Vault.IProfile | null; /** SyncDownResponse profilePic. */ - public profilePic?: (Vault.IProfilePic|null); + public profilePic?: Vault.IProfilePic | null; /** SyncDownResponse pendingTeamMembers. */ public pendingTeamMembers: Vault.IPendingTeamMember[]; @@ -74053,7 +77859,7 @@ export namespace Vault { public breachWatchSecurityData: Vault.IBreachWatchSecurityData[]; /** SyncDownResponse reusedPasswords. */ - public reusedPasswords?: (Vault.IReusedPasswords|null); + public reusedPasswords?: Vault.IReusedPasswords | null; /** SyncDownResponse removedUserFolders. */ public removedUserFolders: Uint8Array[]; @@ -74101,7 +77907,7 @@ export namespace Vault { public shareInvitations: Vault.IShareInvitation[]; /** SyncDownResponse diagnostics. */ - public diagnostics?: (Vault.ISyncDiagnostics|null); + public diagnostics?: Vault.ISyncDiagnostics | null; /** SyncDownResponse recordRotations. */ public recordRotations: Vault.IRecordRotation[]; @@ -74149,7 +77955,7 @@ export namespace Vault { * @throws {Error} If the payload is 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; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Vault.SyncDownResponse; /** * Decodes a SyncDownResponse message from the specified reader or buffer, length delimited. @@ -74158,14 +77964,14 @@ export namespace Vault { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Vault.SyncDownResponse; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Vault.SyncDownResponse; /** * Verifies a SyncDownResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a SyncDownResponse message from a plain object. Also converts values to their respective internal types. @@ -74180,7 +77986,10 @@ export namespace Vault { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Vault.SyncDownResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Vault.SyncDownResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this SyncDownResponse to JSON. @@ -74198,29 +78007,27 @@ export namespace Vault { /** Properties of a UserFolder. */ interface IUserFolder { - /** UserFolder folderUid */ - folderUid?: (Uint8Array|null); + folderUid?: Uint8Array | null; /** UserFolder parentUid */ - parentUid?: (Uint8Array|null); + parentUid?: Uint8Array | null; /** UserFolder userFolderKey */ - userFolderKey?: (Uint8Array|null); + userFolderKey?: Uint8Array | null; /** UserFolder keyType */ - keyType?: (Records.RecordKeyType|null); + keyType?: Records.RecordKeyType | null; /** UserFolder revision */ - revision?: (number|Long|null); + revision?: number | Long | null; /** UserFolder data */ - data?: (Uint8Array|null); + data?: Uint8Array | null; } /** Represents a UserFolder. */ class UserFolder implements IUserFolder { - /** * Constructs a new UserFolder. * @param [properties] Properties to set @@ -74240,7 +78047,7 @@ export namespace Vault { public keyType: Records.RecordKeyType; /** UserFolder revision. */ - public revision: (number|Long); + public revision: number | Long; /** UserFolder data. */ public data: Uint8Array; @@ -74276,7 +78083,7 @@ export namespace Vault { * @throws {Error} If the payload is 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; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Vault.UserFolder; /** * Decodes a UserFolder message from the specified reader or buffer, length delimited. @@ -74285,14 +78092,14 @@ export namespace Vault { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Vault.UserFolder; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Vault.UserFolder; /** * Verifies a UserFolder message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a UserFolder message from a plain object. Also converts values to their respective internal types. @@ -74325,50 +78132,48 @@ export namespace Vault { /** Properties of a SharedFolder. */ interface ISharedFolder { - /** SharedFolder sharedFolderUid */ - sharedFolderUid?: (Uint8Array|null); + sharedFolderUid?: Uint8Array | null; /** SharedFolder revision */ - revision?: (number|Long|null); + revision?: number | Long | null; /** SharedFolder sharedFolderKey */ - sharedFolderKey?: (Uint8Array|null); + sharedFolderKey?: Uint8Array | null; /** SharedFolder keyType */ - keyType?: (Records.RecordKeyType|null); + keyType?: Records.RecordKeyType | null; /** SharedFolder data */ - data?: (Uint8Array|null); + data?: Uint8Array | null; /** SharedFolder defaultManageRecords */ - defaultManageRecords?: (boolean|null); + defaultManageRecords?: boolean | null; /** SharedFolder defaultManageUsers */ - defaultManageUsers?: (boolean|null); + defaultManageUsers?: boolean | null; /** SharedFolder defaultCanEdit */ - defaultCanEdit?: (boolean|null); + defaultCanEdit?: boolean | null; /** SharedFolder defaultCanReshare */ - defaultCanReshare?: (boolean|null); + defaultCanReshare?: boolean | null; /** SharedFolder cacheStatus */ - cacheStatus?: (Vault.CacheStatus|null); + cacheStatus?: Vault.CacheStatus | null; /** SharedFolder owner */ - owner?: (string|null); + owner?: string | null; /** SharedFolder ownerAccountUid */ - ownerAccountUid?: (Uint8Array|null); + ownerAccountUid?: Uint8Array | null; /** SharedFolder name */ - name?: (Uint8Array|null); + name?: Uint8Array | null; } /** Represents a SharedFolder. */ class SharedFolder implements ISharedFolder { - /** * Constructs a new SharedFolder. * @param [properties] Properties to set @@ -74379,7 +78184,7 @@ export namespace Vault { public sharedFolderUid: Uint8Array; /** SharedFolder revision. */ - public revision: (number|Long); + public revision: number | Long; /** SharedFolder sharedFolderKey. */ public sharedFolderKey: Uint8Array; @@ -74445,7 +78250,7 @@ export namespace Vault { * @throws {Error} If the payload is 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; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Vault.SharedFolder; /** * Decodes a SharedFolder message from the specified reader or buffer, length delimited. @@ -74454,14 +78259,14 @@ export namespace Vault { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Vault.SharedFolder; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Vault.SharedFolder; /** * Verifies a SharedFolder message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a SharedFolder message from a plain object. Also converts values to their respective internal types. @@ -74476,7 +78281,10 @@ export namespace Vault { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Vault.SharedFolder, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Vault.SharedFolder, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this SharedFolder to JSON. @@ -74494,20 +78302,18 @@ export namespace Vault { /** Properties of a UserFolderSharedFolder. */ interface IUserFolderSharedFolder { - /** UserFolderSharedFolder folderUid */ - folderUid?: (Uint8Array|null); + folderUid?: Uint8Array | null; /** UserFolderSharedFolder sharedFolderUid */ - sharedFolderUid?: (Uint8Array|null); + sharedFolderUid?: Uint8Array | null; /** UserFolderSharedFolder revision */ - revision?: (number|Long|null); + revision?: number | Long | null; } /** Represents a UserFolderSharedFolder. */ class UserFolderSharedFolder implements IUserFolderSharedFolder { - /** * Constructs a new UserFolderSharedFolder. * @param [properties] Properties to set @@ -74521,7 +78327,7 @@ export namespace Vault { public sharedFolderUid: Uint8Array; /** UserFolderSharedFolder revision. */ - public revision: (number|Long); + public revision: number | Long; /** * Creates a new UserFolderSharedFolder instance using the specified properties. @@ -74544,7 +78350,10 @@ export namespace Vault { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Vault.IUserFolderSharedFolder, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Vault.IUserFolderSharedFolder, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a UserFolderSharedFolder message from the specified reader or buffer. @@ -74554,7 +78363,7 @@ export namespace Vault { * @throws {Error} If the payload is 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): Vault.UserFolderSharedFolder; /** * Decodes a UserFolderSharedFolder message from the specified reader or buffer, length delimited. @@ -74563,14 +78372,14 @@ export namespace Vault { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Vault.UserFolderSharedFolder; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Vault.UserFolderSharedFolder; /** * Verifies a UserFolderSharedFolder message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a UserFolderSharedFolder message from a plain object. Also converts values to their respective internal types. @@ -74585,7 +78394,10 @@ export namespace Vault { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Vault.UserFolderSharedFolder, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Vault.UserFolderSharedFolder, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this UserFolderSharedFolder to JSON. @@ -74603,32 +78415,30 @@ export namespace Vault { /** Properties of a SharedFolderFolder. */ interface ISharedFolderFolder { - /** SharedFolderFolder sharedFolderUid */ - sharedFolderUid?: (Uint8Array|null); + sharedFolderUid?: Uint8Array | null; /** SharedFolderFolder folderUid */ - folderUid?: (Uint8Array|null); + folderUid?: Uint8Array | null; /** SharedFolderFolder parentUid */ - parentUid?: (Uint8Array|null); + parentUid?: Uint8Array | null; /** SharedFolderFolder sharedFolderFolderKey */ - sharedFolderFolderKey?: (Uint8Array|null); + sharedFolderFolderKey?: Uint8Array | null; /** SharedFolderFolder keyType */ - keyType?: (Records.RecordKeyType|null); + keyType?: Records.RecordKeyType | null; /** SharedFolderFolder revision */ - revision?: (number|Long|null); + revision?: number | Long | null; /** SharedFolderFolder data */ - data?: (Uint8Array|null); + data?: Uint8Array | null; } /** Represents a SharedFolderFolder. */ class SharedFolderFolder implements ISharedFolderFolder { - /** * Constructs a new SharedFolderFolder. * @param [properties] Properties to set @@ -74651,7 +78461,7 @@ export namespace Vault { public keyType: Records.RecordKeyType; /** SharedFolderFolder revision. */ - public revision: (number|Long); + public revision: number | Long; /** SharedFolderFolder data. */ public data: Uint8Array; @@ -74687,7 +78497,7 @@ export namespace Vault { * @throws {Error} If the payload is 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): Vault.SharedFolderFolder; /** * Decodes a SharedFolderFolder message from the specified reader or buffer, length delimited. @@ -74696,14 +78506,14 @@ export namespace Vault { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Vault.SharedFolderFolder; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Vault.SharedFolderFolder; /** * Verifies a SharedFolderFolder message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a SharedFolderFolder message from a plain object. Also converts values to their respective internal types. @@ -74718,7 +78528,10 @@ export namespace Vault { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Vault.SharedFolderFolder, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Vault.SharedFolderFolder, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this SharedFolderFolder to JSON. @@ -74736,20 +78549,18 @@ export namespace Vault { /** Properties of a SharedFolderKey. */ interface ISharedFolderKey { - /** SharedFolderKey sharedFolderUid */ - sharedFolderUid?: (Uint8Array|null); + sharedFolderUid?: Uint8Array | null; /** SharedFolderKey sharedFolderKey */ - sharedFolderKey?: (Uint8Array|null); + sharedFolderKey?: Uint8Array | null; /** SharedFolderKey keyType */ - keyType?: (Records.RecordKeyType|null); + keyType?: Records.RecordKeyType | null; } /** Represents a SharedFolderKey. */ class SharedFolderKey implements ISharedFolderKey { - /** * Constructs a new SharedFolderKey. * @param [properties] Properties to set @@ -74796,7 +78607,7 @@ export namespace Vault { * @throws {Error} If the payload is 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): Vault.SharedFolderKey; /** * Decodes a SharedFolderKey message from the specified reader or buffer, length delimited. @@ -74805,14 +78616,14 @@ export namespace Vault { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Vault.SharedFolderKey; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Vault.SharedFolderKey; /** * Verifies a SharedFolderKey message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a SharedFolderKey message from a plain object. Also converts values to their respective internal types. @@ -74827,7 +78638,10 @@ export namespace Vault { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Vault.SharedFolderKey, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Vault.SharedFolderKey, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this SharedFolderKey to JSON. @@ -74845,47 +78659,45 @@ export namespace Vault { /** Properties of a Team. */ interface ITeam { - /** Team teamUid */ - teamUid?: (Uint8Array|null); + teamUid?: Uint8Array | null; /** Team name */ - name?: (string|null); + name?: string | null; /** Team teamKey */ - teamKey?: (Uint8Array|null); + teamKey?: Uint8Array | null; /** Team teamKeyType */ - teamKeyType?: (Records.RecordKeyType|null); + teamKeyType?: Records.RecordKeyType | null; /** Team teamPrivateKey */ - teamPrivateKey?: (Uint8Array|null); + teamPrivateKey?: Uint8Array | null; /** Team restrictEdit */ - restrictEdit?: (boolean|null); + restrictEdit?: boolean | null; /** Team restrictShare */ - restrictShare?: (boolean|null); + restrictShare?: boolean | null; /** Team restrictView */ - restrictView?: (boolean|null); + restrictView?: boolean | null; /** Team removedSharedFolders */ - removedSharedFolders?: (Uint8Array[]|null); + removedSharedFolders?: Uint8Array[] | null; /** Team sharedFolderKeys */ - sharedFolderKeys?: (Vault.ISharedFolderKey[]|null); + sharedFolderKeys?: Vault.ISharedFolderKey[] | null; /** Team teamEccPrivateKey */ - teamEccPrivateKey?: (Uint8Array|null); + teamEccPrivateKey?: Uint8Array | null; /** Team teamEccPublicKey */ - teamEccPublicKey?: (Uint8Array|null); + teamEccPublicKey?: Uint8Array | null; } /** Represents a Team. */ class Team implements ITeam { - /** * Constructs a new Team. * @param [properties] Properties to set @@ -74959,7 +78771,7 @@ export namespace Vault { * @throws {Error} If the payload is 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): Vault.Team; /** * Decodes a Team message from the specified reader or buffer, length delimited. @@ -74968,14 +78780,14 @@ export namespace Vault { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Vault.Team; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Vault.Team; /** * Verifies a Team message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a Team message from a plain object. Also converts values to their respective internal types. @@ -75008,41 +78820,39 @@ export namespace Vault { /** Properties of a Record. */ interface IRecord { - /** Record recordUid */ - recordUid?: (Uint8Array|null); + recordUid?: Uint8Array | null; /** Record revision */ - revision?: (number|Long|null); + revision?: number | Long | null; /** Record version */ - version?: (number|null); + version?: number | null; /** Record shared */ - shared?: (boolean|null); + shared?: boolean | null; /** Record clientModifiedTime */ - clientModifiedTime?: (number|Long|null); + clientModifiedTime?: number | Long | null; /** Record data */ - data?: (Uint8Array|null); + data?: Uint8Array | null; /** Record extra */ - extra?: (Uint8Array|null); + extra?: Uint8Array | null; /** Record udata */ - udata?: (string|null); + udata?: string | null; /** Record fileSize */ - fileSize?: (number|Long|null); + fileSize?: number | Long | null; /** Record thumbnailSize */ - thumbnailSize?: (number|Long|null); + thumbnailSize?: number | Long | null; } /** Represents a Record. */ class Record implements IRecord { - /** * Constructs a new Record. * @param [properties] Properties to set @@ -75053,7 +78863,7 @@ export namespace Vault { public recordUid: Uint8Array; /** Record revision. */ - public revision: (number|Long); + public revision: number | Long; /** Record version. */ public version: number; @@ -75062,7 +78872,7 @@ export namespace Vault { public shared: boolean; /** Record clientModifiedTime. */ - public clientModifiedTime: (number|Long); + public clientModifiedTime: number | Long; /** Record data. */ public data: Uint8Array; @@ -75074,10 +78884,10 @@ export namespace Vault { public udata: string; /** Record fileSize. */ - public fileSize: (number|Long); + public fileSize: number | Long; /** Record thumbnailSize. */ - public thumbnailSize: (number|Long); + public thumbnailSize: number | Long; /** * Creates a new Record instance using the specified properties. @@ -75110,7 +78920,7 @@ export namespace Vault { * @throws {Error} If the payload is 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): Vault.Record; /** * Decodes a Record message from the specified reader or buffer, length delimited. @@ -75119,14 +78929,14 @@ export namespace Vault { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Vault.Record; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Vault.Record; /** * Verifies a Record message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a Record message from a plain object. Also converts values to their respective internal types. @@ -75159,23 +78969,21 @@ export namespace Vault { /** Properties of a RecordLink. */ interface IRecordLink { - /** RecordLink parentRecordUid */ - parentRecordUid?: (Uint8Array|null); + parentRecordUid?: Uint8Array | null; /** RecordLink childRecordUid */ - childRecordUid?: (Uint8Array|null); + childRecordUid?: Uint8Array | null; /** RecordLink recordKey */ - recordKey?: (Uint8Array|null); + recordKey?: Uint8Array | null; /** RecordLink revision */ - revision?: (number|Long|null); + revision?: number | Long | null; } /** Represents a RecordLink. */ class RecordLink implements IRecordLink { - /** * Constructs a new RecordLink. * @param [properties] Properties to set @@ -75192,7 +79000,7 @@ export namespace Vault { public recordKey: Uint8Array; /** RecordLink revision. */ - public revision: (number|Long); + public revision: number | Long; /** * Creates a new RecordLink instance using the specified properties. @@ -75225,7 +79033,7 @@ export namespace Vault { * @throws {Error} If the payload is 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): Vault.RecordLink; /** * Decodes a RecordLink message from the specified reader or buffer, length delimited. @@ -75234,14 +79042,14 @@ export namespace Vault { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Vault.RecordLink; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Vault.RecordLink; /** * Verifies a RecordLink message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a RecordLink message from a plain object. Also converts values to their respective internal types. @@ -75274,20 +79082,18 @@ export namespace Vault { /** Properties of a UserFolderRecord. */ interface IUserFolderRecord { - /** UserFolderRecord folderUid */ - folderUid?: (Uint8Array|null); + folderUid?: Uint8Array | null; /** UserFolderRecord recordUid */ - recordUid?: (Uint8Array|null); + recordUid?: Uint8Array | null; /** UserFolderRecord revision */ - revision?: (number|Long|null); + revision?: number | Long | null; } /** Represents a UserFolderRecord. */ class UserFolderRecord implements IUserFolderRecord { - /** * Constructs a new UserFolderRecord. * @param [properties] Properties to set @@ -75301,7 +79107,7 @@ export namespace Vault { public recordUid: Uint8Array; /** UserFolderRecord revision. */ - public revision: (number|Long); + public revision: number | Long; /** * Creates a new UserFolderRecord instance using the specified properties. @@ -75334,7 +79140,7 @@ export namespace Vault { * @throws {Error} If the payload is 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): Vault.UserFolderRecord; /** * Decodes a UserFolderRecord message from the specified reader or buffer, length delimited. @@ -75343,14 +79149,14 @@ export namespace Vault { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Vault.UserFolderRecord; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Vault.UserFolderRecord; /** * Verifies a UserFolderRecord message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a UserFolderRecord message from a plain object. Also converts values to their respective internal types. @@ -75365,7 +79171,10 @@ export namespace Vault { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Vault.UserFolderRecord, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Vault.UserFolderRecord, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this UserFolderRecord to JSON. @@ -75383,23 +79192,21 @@ export namespace Vault { /** Properties of a SharedFolderFolderRecord. */ interface ISharedFolderFolderRecord { - /** SharedFolderFolderRecord sharedFolderUid */ - sharedFolderUid?: (Uint8Array|null); + sharedFolderUid?: Uint8Array | null; /** SharedFolderFolderRecord folderUid */ - folderUid?: (Uint8Array|null); + folderUid?: Uint8Array | null; /** SharedFolderFolderRecord recordUid */ - recordUid?: (Uint8Array|null); + recordUid?: Uint8Array | null; /** SharedFolderFolderRecord revision */ - revision?: (number|Long|null); + revision?: number | Long | null; } /** Represents a SharedFolderFolderRecord. */ class SharedFolderFolderRecord implements ISharedFolderFolderRecord { - /** * Constructs a new SharedFolderFolderRecord. * @param [properties] Properties to set @@ -75416,7 +79223,7 @@ export namespace Vault { public recordUid: Uint8Array; /** SharedFolderFolderRecord revision. */ - public revision: (number|Long); + public revision: number | Long; /** * Creates a new SharedFolderFolderRecord instance using the specified properties. @@ -75439,7 +79246,10 @@ export namespace Vault { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Vault.ISharedFolderFolderRecord, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Vault.ISharedFolderFolderRecord, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a SharedFolderFolderRecord message from the specified reader or buffer. @@ -75449,7 +79259,7 @@ export namespace Vault { * @throws {Error} If the payload is 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): Vault.SharedFolderFolderRecord; /** * Decodes a SharedFolderFolderRecord message from the specified reader or buffer, length delimited. @@ -75458,14 +79268,14 @@ export namespace Vault { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Vault.SharedFolderFolderRecord; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Vault.SharedFolderFolderRecord; /** * Verifies a SharedFolderFolderRecord message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a SharedFolderFolderRecord message from a plain object. Also converts values to their respective internal types. @@ -75480,7 +79290,10 @@ export namespace Vault { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Vault.SharedFolderFolderRecord, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Vault.SharedFolderFolderRecord, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this SharedFolderFolderRecord to JSON. @@ -75498,17 +79311,15 @@ export namespace Vault { /** Properties of a NonSharedData. */ interface INonSharedData { - /** NonSharedData recordUid */ - recordUid?: (Uint8Array|null); + recordUid?: Uint8Array | null; /** NonSharedData data */ - data?: (Uint8Array|null); + data?: Uint8Array | null; } /** Represents a NonSharedData. */ class NonSharedData implements INonSharedData { - /** * Constructs a new NonSharedData. * @param [properties] Properties to set @@ -75552,7 +79363,7 @@ export namespace Vault { * @throws {Error} If the payload is 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): Vault.NonSharedData; /** * Decodes a NonSharedData message from the specified reader or buffer, length delimited. @@ -75561,14 +79372,14 @@ export namespace Vault { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Vault.NonSharedData; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Vault.NonSharedData; /** * Verifies a NonSharedData message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a NonSharedData message from a plain object. Also converts values to their respective internal types. @@ -75583,7 +79394,10 @@ export namespace Vault { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Vault.NonSharedData, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Vault.NonSharedData, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this NonSharedData to JSON. @@ -75601,41 +79415,39 @@ export namespace Vault { /** Properties of a RecordMetaData. */ interface IRecordMetaData { - /** RecordMetaData recordUid */ - recordUid?: (Uint8Array|null); + recordUid?: Uint8Array | null; /** RecordMetaData owner */ - owner?: (boolean|null); + owner?: boolean | null; /** RecordMetaData recordKey */ - recordKey?: (Uint8Array|null); + recordKey?: Uint8Array | null; /** RecordMetaData recordKeyType */ - recordKeyType?: (Records.RecordKeyType|null); + recordKeyType?: Records.RecordKeyType | null; /** RecordMetaData canShare */ - canShare?: (boolean|null); + canShare?: boolean | null; /** RecordMetaData canEdit */ - canEdit?: (boolean|null); + canEdit?: boolean | null; /** RecordMetaData ownerAccountUid */ - ownerAccountUid?: (Uint8Array|null); + ownerAccountUid?: Uint8Array | null; /** RecordMetaData expiration */ - expiration?: (number|Long|null); + expiration?: number | Long | null; /** RecordMetaData expirationNotificationType */ - expirationNotificationType?: (Records.TimerNotificationType|null); + expirationNotificationType?: Records.TimerNotificationType | null; /** RecordMetaData ownerUsername */ - ownerUsername?: (string|null); + ownerUsername?: string | null; } /** Represents a RecordMetaData. */ class RecordMetaData implements IRecordMetaData { - /** * Constructs a new RecordMetaData. * @param [properties] Properties to set @@ -75664,7 +79476,7 @@ export namespace Vault { public ownerAccountUid: Uint8Array; /** RecordMetaData expiration. */ - public expiration: (number|Long); + public expiration: number | Long; /** RecordMetaData expirationNotificationType. */ public expirationNotificationType: Records.TimerNotificationType; @@ -75703,7 +79515,7 @@ export namespace Vault { * @throws {Error} If the payload is 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): Vault.RecordMetaData; /** * Decodes a RecordMetaData message from the specified reader or buffer, length delimited. @@ -75712,14 +79524,14 @@ export namespace Vault { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Vault.RecordMetaData; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Vault.RecordMetaData; /** * Verifies a RecordMetaData message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a RecordMetaData message from a plain object. Also converts values to their respective internal types. @@ -75734,7 +79546,10 @@ export namespace Vault { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Vault.RecordMetaData, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Vault.RecordMetaData, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this RecordMetaData to JSON. @@ -75752,17 +79567,15 @@ export namespace Vault { /** Properties of a SharingChange. */ interface ISharingChange { - /** SharingChange recordUid */ - recordUid?: (Uint8Array|null); + recordUid?: Uint8Array | null; /** SharingChange shared */ - shared?: (boolean|null); + shared?: boolean | null; } /** Represents a SharingChange. */ class SharingChange implements ISharingChange { - /** * Constructs a new SharingChange. * @param [properties] Properties to set @@ -75806,7 +79619,7 @@ export namespace Vault { * @throws {Error} If the payload is 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): Vault.SharingChange; /** * Decodes a SharingChange message from the specified reader or buffer, length delimited. @@ -75815,14 +79628,14 @@ export namespace Vault { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Vault.SharingChange; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Vault.SharingChange; /** * Verifies a SharingChange message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a SharingChange message from a plain object. Also converts values to their respective internal types. @@ -75837,7 +79650,10 @@ export namespace Vault { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Vault.SharingChange, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Vault.SharingChange, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this SharingChange to JSON. @@ -75855,20 +79671,18 @@ export namespace Vault { /** Properties of a Profile. */ interface IProfile { - /** Profile data */ - data?: (Uint8Array|null); + data?: Uint8Array | null; /** Profile profileName */ - profileName?: (string|null); + profileName?: string | null; /** Profile revision */ - revision?: (number|Long|null); + revision?: number | Long | null; } /** Represents a Profile. */ class Profile implements IProfile { - /** * Constructs a new Profile. * @param [properties] Properties to set @@ -75882,7 +79696,7 @@ export namespace Vault { public profileName: string; /** Profile revision. */ - public revision: (number|Long); + public revision: number | Long; /** * Creates a new Profile instance using the specified properties. @@ -75915,7 +79729,7 @@ export namespace Vault { * @throws {Error} If the payload is 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): Vault.Profile; /** * Decodes a Profile message from the specified reader or buffer, length delimited. @@ -75924,14 +79738,14 @@ export namespace Vault { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Vault.Profile; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Vault.Profile; /** * Verifies a Profile message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a Profile message from a plain object. Also converts values to their respective internal types. @@ -75964,17 +79778,15 @@ export namespace Vault { /** Properties of a ProfilePic. */ interface IProfilePic { - /** ProfilePic url */ - url?: (string|null); + url?: string | null; /** ProfilePic revision */ - revision?: (number|Long|null); + revision?: number | Long | null; } /** Represents a ProfilePic. */ class ProfilePic implements IProfilePic { - /** * Constructs a new ProfilePic. * @param [properties] Properties to set @@ -75985,7 +79797,7 @@ export namespace Vault { public url: string; /** ProfilePic revision. */ - public revision: (number|Long); + public revision: number | Long; /** * Creates a new ProfilePic instance using the specified properties. @@ -76018,7 +79830,7 @@ export namespace Vault { * @throws {Error} If the payload is 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): Vault.ProfilePic; /** * Decodes a ProfilePic message from the specified reader or buffer, length delimited. @@ -76027,14 +79839,14 @@ export namespace Vault { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Vault.ProfilePic; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Vault.ProfilePic; /** * Verifies a ProfilePic message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a ProfilePic message from a plain object. Also converts values to their respective internal types. @@ -76067,23 +79879,21 @@ export namespace Vault { /** Properties of a PendingTeamMember. */ interface IPendingTeamMember { - /** PendingTeamMember enterpriseUserId */ - enterpriseUserId?: (number|Long|null); + enterpriseUserId?: number | Long | null; /** PendingTeamMember userPublicKey */ - userPublicKey?: (Uint8Array|null); + userPublicKey?: Uint8Array | null; /** PendingTeamMember teamUids */ - teamUids?: (Uint8Array[]|null); + teamUids?: Uint8Array[] | null; /** PendingTeamMember userEccPublicKey */ - userEccPublicKey?: (Uint8Array|null); + userEccPublicKey?: Uint8Array | null; } /** Represents a PendingTeamMember. */ class PendingTeamMember implements IPendingTeamMember { - /** * Constructs a new PendingTeamMember. * @param [properties] Properties to set @@ -76091,7 +79901,7 @@ export namespace Vault { constructor(properties?: Vault.IPendingTeamMember); /** PendingTeamMember enterpriseUserId. */ - public enterpriseUserId: (number|Long); + public enterpriseUserId: number | Long; /** PendingTeamMember userPublicKey. */ public userPublicKey: Uint8Array; @@ -76133,7 +79943,7 @@ export namespace Vault { * @throws {Error} If the payload is 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): Vault.PendingTeamMember; /** * Decodes a PendingTeamMember message from the specified reader or buffer, length delimited. @@ -76142,14 +79952,14 @@ export namespace Vault { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Vault.PendingTeamMember; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Vault.PendingTeamMember; /** * Verifies a PendingTeamMember message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a PendingTeamMember message from a plain object. Also converts values to their respective internal types. @@ -76164,7 +79974,10 @@ export namespace Vault { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Vault.PendingTeamMember, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Vault.PendingTeamMember, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this PendingTeamMember to JSON. @@ -76182,29 +79995,27 @@ export namespace Vault { /** Properties of a BreachWatchRecord. */ interface IBreachWatchRecord { - /** BreachWatchRecord recordUid */ - recordUid?: (Uint8Array|null); + recordUid?: Uint8Array | null; /** BreachWatchRecord data */ - data?: (Uint8Array|null); + data?: Uint8Array | null; /** BreachWatchRecord type */ - type?: (BreachWatch.BreachWatchInfoType|null); + type?: BreachWatch.BreachWatchInfoType | null; /** BreachWatchRecord scannedBy */ - scannedBy?: (string|null); + scannedBy?: string | null; /** BreachWatchRecord revision */ - revision?: (number|Long|null); + revision?: number | Long | null; /** BreachWatchRecord scannedByAccountUid */ - scannedByAccountUid?: (Uint8Array|null); + scannedByAccountUid?: Uint8Array | null; } /** Represents a BreachWatchRecord. */ class BreachWatchRecord implements IBreachWatchRecord { - /** * Constructs a new BreachWatchRecord. * @param [properties] Properties to set @@ -76224,7 +80035,7 @@ export namespace Vault { public scannedBy: string; /** BreachWatchRecord revision. */ - public revision: (number|Long); + public revision: number | Long; /** BreachWatchRecord scannedByAccountUid. */ public scannedByAccountUid: Uint8Array; @@ -76260,7 +80071,7 @@ export namespace Vault { * @throws {Error} If the payload is 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): Vault.BreachWatchRecord; /** * Decodes a BreachWatchRecord message from the specified reader or buffer, length delimited. @@ -76269,14 +80080,14 @@ export namespace Vault { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Vault.BreachWatchRecord; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Vault.BreachWatchRecord; /** * Verifies a BreachWatchRecord message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a BreachWatchRecord message from a plain object. Also converts values to their respective internal types. @@ -76291,7 +80102,10 @@ export namespace Vault { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Vault.BreachWatchRecord, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Vault.BreachWatchRecord, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this BreachWatchRecord to JSON. @@ -76309,35 +80123,33 @@ export namespace Vault { /** Properties of a UserAuth. */ interface IUserAuth { - /** UserAuth uid */ - uid?: (Uint8Array|null); + uid?: Uint8Array | null; /** UserAuth loginType */ - loginType?: (Authentication.LoginType|null); + loginType?: Authentication.LoginType | null; /** UserAuth deleted */ - deleted?: (boolean|null); + deleted?: boolean | null; /** UserAuth iterations */ - iterations?: (number|null); + iterations?: number | null; /** UserAuth salt */ - salt?: (Uint8Array|null); + salt?: Uint8Array | null; /** UserAuth encryptedClientKey */ - encryptedClientKey?: (Uint8Array|null); + encryptedClientKey?: Uint8Array | null; /** UserAuth revision */ - revision?: (number|Long|null); + revision?: number | Long | null; /** UserAuth name */ - name?: (string|null); + name?: string | null; } /** Represents a UserAuth. */ class UserAuth implements IUserAuth { - /** * Constructs a new UserAuth. * @param [properties] Properties to set @@ -76363,7 +80175,7 @@ export namespace Vault { public encryptedClientKey: Uint8Array; /** UserAuth revision. */ - public revision: (number|Long); + public revision: number | Long; /** UserAuth name. */ public name: string; @@ -76399,7 +80211,7 @@ export namespace Vault { * @throws {Error} If the payload is 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): Vault.UserAuth; /** * Decodes a UserAuth message from the specified reader or buffer, length delimited. @@ -76408,14 +80220,14 @@ export namespace Vault { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Vault.UserAuth; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Vault.UserAuth; /** * Verifies a UserAuth message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a UserAuth message from a plain object. Also converts values to their respective internal types. @@ -76448,20 +80260,18 @@ export namespace Vault { /** Properties of a BreachWatchSecurityData. */ interface IBreachWatchSecurityData { - /** BreachWatchSecurityData recordUid */ - recordUid?: (Uint8Array|null); + recordUid?: Uint8Array | null; /** BreachWatchSecurityData revision */ - revision?: (number|Long|null); + revision?: number | Long | null; /** BreachWatchSecurityData removed */ - removed?: (boolean|null); + removed?: boolean | null; } /** Represents a BreachWatchSecurityData. */ class BreachWatchSecurityData implements IBreachWatchSecurityData { - /** * Constructs a new BreachWatchSecurityData. * @param [properties] Properties to set @@ -76472,7 +80282,7 @@ export namespace Vault { public recordUid: Uint8Array; /** BreachWatchSecurityData revision. */ - public revision: (number|Long); + public revision: number | Long; /** BreachWatchSecurityData removed. */ public removed: boolean; @@ -76498,7 +80308,10 @@ export namespace Vault { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Vault.IBreachWatchSecurityData, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Vault.IBreachWatchSecurityData, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a BreachWatchSecurityData message from the specified reader or buffer. @@ -76508,7 +80321,7 @@ export namespace Vault { * @throws {Error} If the payload is 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): Vault.BreachWatchSecurityData; /** * Decodes a BreachWatchSecurityData message from the specified reader or buffer, length delimited. @@ -76517,14 +80330,14 @@ export namespace Vault { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Vault.BreachWatchSecurityData; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Vault.BreachWatchSecurityData; /** * Verifies a BreachWatchSecurityData message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a BreachWatchSecurityData message from a plain object. Also converts values to their respective internal types. @@ -76539,7 +80352,10 @@ export namespace Vault { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Vault.BreachWatchSecurityData, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Vault.BreachWatchSecurityData, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this BreachWatchSecurityData to JSON. @@ -76557,17 +80373,15 @@ export namespace Vault { /** Properties of a ReusedPasswords. */ interface IReusedPasswords { - /** ReusedPasswords count */ - count?: (number|null); + count?: number | null; /** ReusedPasswords revision */ - revision?: (number|Long|null); + revision?: number | Long | null; } /** Represents a ReusedPasswords. */ class ReusedPasswords implements IReusedPasswords { - /** * Constructs a new ReusedPasswords. * @param [properties] Properties to set @@ -76578,7 +80392,7 @@ export namespace Vault { public count: number; /** ReusedPasswords revision. */ - public revision: (number|Long); + public revision: number | Long; /** * Creates a new ReusedPasswords instance using the specified properties. @@ -76611,7 +80425,7 @@ export namespace Vault { * @throws {Error} If the payload is 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): Vault.ReusedPasswords; /** * Decodes a ReusedPasswords message from the specified reader or buffer, length delimited. @@ -76620,14 +80434,14 @@ export namespace Vault { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Vault.ReusedPasswords; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Vault.ReusedPasswords; /** * Verifies a ReusedPasswords message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a ReusedPasswords message from a plain object. Also converts values to their respective internal types. @@ -76642,7 +80456,10 @@ export namespace Vault { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Vault.ReusedPasswords, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Vault.ReusedPasswords, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this ReusedPasswords to JSON. @@ -76660,44 +80477,42 @@ export namespace Vault { /** Properties of a SharedFolderRecord. */ interface ISharedFolderRecord { - /** SharedFolderRecord sharedFolderUid */ - sharedFolderUid?: (Uint8Array|null); + sharedFolderUid?: Uint8Array | null; /** SharedFolderRecord recordUid */ - recordUid?: (Uint8Array|null); + recordUid?: Uint8Array | null; /** SharedFolderRecord recordKey */ - recordKey?: (Uint8Array|null); + recordKey?: Uint8Array | null; /** SharedFolderRecord canShare */ - canShare?: (boolean|null); + canShare?: boolean | null; /** SharedFolderRecord canEdit */ - canEdit?: (boolean|null); + canEdit?: boolean | null; /** SharedFolderRecord ownerAccountUid */ - ownerAccountUid?: (Uint8Array|null); + ownerAccountUid?: Uint8Array | null; /** SharedFolderRecord expiration */ - expiration?: (number|Long|null); + expiration?: number | Long | null; /** SharedFolderRecord owner */ - owner?: (boolean|null); + owner?: boolean | null; /** SharedFolderRecord expirationNotificationType */ - expirationNotificationType?: (Records.TimerNotificationType|null); + expirationNotificationType?: Records.TimerNotificationType | null; /** SharedFolderRecord ownerUsername */ - ownerUsername?: (string|null); + ownerUsername?: string | null; /** SharedFolderRecord rotateOnExpiration */ - rotateOnExpiration?: (boolean|null); + rotateOnExpiration?: boolean | null; } /** Represents a SharedFolderRecord. */ class SharedFolderRecord implements ISharedFolderRecord { - /** * Constructs a new SharedFolderRecord. * @param [properties] Properties to set @@ -76723,7 +80538,7 @@ export namespace Vault { public ownerAccountUid: Uint8Array; /** SharedFolderRecord expiration. */ - public expiration: (number|Long); + public expiration: number | Long; /** SharedFolderRecord owner. */ public owner: boolean; @@ -76768,7 +80583,7 @@ export namespace Vault { * @throws {Error} If the payload is 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.SharedFolderRecord; /** * Decodes a SharedFolderRecord message from the specified reader or buffer, length delimited. @@ -76777,14 +80592,14 @@ export namespace Vault { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Vault.SharedFolderRecord; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Vault.SharedFolderRecord; /** * Verifies a SharedFolderRecord message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a SharedFolderRecord message from a plain object. Also converts values to their respective internal types. @@ -76799,7 +80614,10 @@ export namespace Vault { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Vault.SharedFolderRecord, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Vault.SharedFolderRecord, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this SharedFolderRecord to JSON. @@ -76817,35 +80635,33 @@ export namespace Vault { /** Properties of a SharedFolderUser. */ interface ISharedFolderUser { - /** SharedFolderUser sharedFolderUid */ - sharedFolderUid?: (Uint8Array|null); + sharedFolderUid?: Uint8Array | null; /** SharedFolderUser username */ - username?: (string|null); + username?: string | null; /** SharedFolderUser manageRecords */ - manageRecords?: (boolean|null); + manageRecords?: boolean | null; /** SharedFolderUser manageUsers */ - manageUsers?: (boolean|null); + manageUsers?: boolean | null; /** SharedFolderUser accountUid */ - accountUid?: (Uint8Array|null); + accountUid?: Uint8Array | null; /** SharedFolderUser expiration */ - expiration?: (number|Long|null); + expiration?: number | Long | null; /** SharedFolderUser expirationNotificationType */ - expirationNotificationType?: (Records.TimerNotificationType|null); + expirationNotificationType?: Records.TimerNotificationType | null; /** SharedFolderUser rotateOnExpiration */ - rotateOnExpiration?: (boolean|null); + rotateOnExpiration?: boolean | null; } /** Represents a SharedFolderUser. */ class SharedFolderUser implements ISharedFolderUser { - /** * Constructs a new SharedFolderUser. * @param [properties] Properties to set @@ -76868,7 +80684,7 @@ export namespace Vault { public accountUid: Uint8Array; /** SharedFolderUser expiration. */ - public expiration: (number|Long); + public expiration: number | Long; /** SharedFolderUser expirationNotificationType. */ public expirationNotificationType: Records.TimerNotificationType; @@ -76907,7 +80723,7 @@ export namespace Vault { * @throws {Error} If the payload is 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; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Vault.SharedFolderUser; /** * Decodes a SharedFolderUser message from the specified reader or buffer, length delimited. @@ -76916,14 +80732,14 @@ export namespace Vault { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Vault.SharedFolderUser; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Vault.SharedFolderUser; /** * Verifies a SharedFolderUser message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a SharedFolderUser message from a plain object. Also converts values to their respective internal types. @@ -76938,7 +80754,10 @@ export namespace Vault { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Vault.SharedFolderUser, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Vault.SharedFolderUser, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this SharedFolderUser to JSON. @@ -76956,35 +80775,33 @@ export namespace Vault { /** Properties of a SharedFolderTeam. */ interface ISharedFolderTeam { - /** SharedFolderTeam sharedFolderUid */ - sharedFolderUid?: (Uint8Array|null); + sharedFolderUid?: Uint8Array | null; /** SharedFolderTeam teamUid */ - teamUid?: (Uint8Array|null); + teamUid?: Uint8Array | null; /** SharedFolderTeam name */ - name?: (string|null); + name?: string | null; /** SharedFolderTeam manageRecords */ - manageRecords?: (boolean|null); + manageRecords?: boolean | null; /** SharedFolderTeam manageUsers */ - manageUsers?: (boolean|null); + manageUsers?: boolean | null; /** SharedFolderTeam expiration */ - expiration?: (number|Long|null); + expiration?: number | Long | null; /** SharedFolderTeam expirationNotificationType */ - expirationNotificationType?: (Records.TimerNotificationType|null); + expirationNotificationType?: Records.TimerNotificationType | null; /** SharedFolderTeam rotateOnExpiration */ - rotateOnExpiration?: (boolean|null); + rotateOnExpiration?: boolean | null; } /** Represents a SharedFolderTeam. */ class SharedFolderTeam implements ISharedFolderTeam { - /** * Constructs a new SharedFolderTeam. * @param [properties] Properties to set @@ -77007,7 +80824,7 @@ export namespace Vault { public manageUsers: boolean; /** SharedFolderTeam expiration. */ - public expiration: (number|Long); + public expiration: number | Long; /** SharedFolderTeam expirationNotificationType. */ public expirationNotificationType: Records.TimerNotificationType; @@ -77046,7 +80863,7 @@ export namespace Vault { * @throws {Error} If the payload is 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; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Vault.SharedFolderTeam; /** * Decodes a SharedFolderTeam message from the specified reader or buffer, length delimited. @@ -77055,14 +80872,14 @@ export namespace Vault { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Vault.SharedFolderTeam; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Vault.SharedFolderTeam; /** * Verifies a SharedFolderTeam message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a SharedFolderTeam message from a plain object. Also converts values to their respective internal types. @@ -77077,7 +80894,10 @@ export namespace Vault { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Vault.SharedFolderTeam, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Vault.SharedFolderTeam, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this SharedFolderTeam to JSON. @@ -77095,26 +80915,24 @@ export namespace Vault { /** Properties of a KsmChange. */ interface IKsmChange { - /** KsmChange appRecordUid */ - appRecordUid?: (Uint8Array|null); + appRecordUid?: Uint8Array | null; /** KsmChange detailId */ - detailId?: (Uint8Array|null); + detailId?: Uint8Array | null; /** KsmChange removed */ - removed?: (boolean|null); + removed?: boolean | null; /** KsmChange appClientType */ - appClientType?: (Enterprise.AppClientType|null); + appClientType?: Enterprise.AppClientType | null; /** KsmChange expiration */ - expiration?: (number|Long|null); + expiration?: number | Long | null; } /** Represents a KsmChange. */ class KsmChange implements IKsmChange { - /** * Constructs a new KsmChange. * @param [properties] Properties to set @@ -77134,7 +80952,7 @@ export namespace Vault { public appClientType: Enterprise.AppClientType; /** KsmChange expiration. */ - public expiration: (number|Long); + public expiration: number | Long; /** * Creates a new KsmChange instance using the specified properties. @@ -77167,7 +80985,7 @@ export namespace Vault { * @throws {Error} If the payload is 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; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Vault.KsmChange; /** * Decodes a KsmChange message from the specified reader or buffer, length delimited. @@ -77176,14 +80994,14 @@ export namespace Vault { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Vault.KsmChange; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Vault.KsmChange; /** * Verifies a KsmChange message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a KsmChange message from a plain object. Also converts values to their respective internal types. @@ -77216,14 +81034,12 @@ export namespace Vault { /** Properties of a ShareInvitation. */ interface IShareInvitation { - /** ShareInvitation username */ - username?: (string|null); + username?: string | null; } /** Represents a ShareInvitation. */ class ShareInvitation implements IShareInvitation { - /** * Constructs a new ShareInvitation. * @param [properties] Properties to set @@ -77264,7 +81080,7 @@ export namespace Vault { * @throws {Error} If the payload is 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.ShareInvitation; /** * Decodes a ShareInvitation message from the specified reader or buffer, length delimited. @@ -77273,14 +81089,14 @@ export namespace Vault { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Vault.ShareInvitation; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Vault.ShareInvitation; /** * Verifies a ShareInvitation message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a ShareInvitation message from a plain object. Also converts values to their respective internal types. @@ -77295,7 +81111,10 @@ export namespace Vault { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Vault.ShareInvitation, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Vault.ShareInvitation, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this ShareInvitation to JSON. @@ -77313,17 +81132,15 @@ export namespace Vault { /** Properties of a User. */ interface IUser { - /** User accountUid */ - accountUid?: (Uint8Array|null); + accountUid?: Uint8Array | null; /** User username */ - username?: (string|null); + username?: string | null; } /** Represents a User. */ class User implements IUser { - /** * Constructs a new User. * @param [properties] Properties to set @@ -77367,7 +81184,7 @@ export namespace Vault { * @throws {Error} If the payload is 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.User; /** * Decodes a User message from the specified reader or buffer, length delimited. @@ -77376,14 +81193,14 @@ export namespace Vault { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Vault.User; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Vault.User; /** * Verifies a User message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a User message from a plain object. Also converts values to their respective internal types. @@ -77416,26 +81233,24 @@ export namespace Vault { /** Properties of a SyncDiagnostics. */ interface ISyncDiagnostics { - /** SyncDiagnostics continuationToken */ - continuationToken?: (Uint8Array|null); + continuationToken?: Uint8Array | null; /** SyncDiagnostics userId */ - userId?: (number|null); + userId?: number | null; /** SyncDiagnostics enterpriseUserId */ - enterpriseUserId?: (number|Long|null); + enterpriseUserId?: number | Long | null; /** SyncDiagnostics syncedTo */ - syncedTo?: (number|Long|null); + syncedTo?: number | Long | null; /** SyncDiagnostics syncingTo */ - syncingTo?: (number|Long|null); + syncingTo?: number | Long | null; } /** Represents a SyncDiagnostics. */ class SyncDiagnostics implements ISyncDiagnostics { - /** * Constructs a new SyncDiagnostics. * @param [properties] Properties to set @@ -77449,13 +81264,13 @@ export namespace Vault { public userId: number; /** SyncDiagnostics enterpriseUserId. */ - public enterpriseUserId: (number|Long); + public enterpriseUserId: number | Long; /** SyncDiagnostics syncedTo. */ - public syncedTo: (number|Long); + public syncedTo: number | Long; /** SyncDiagnostics syncingTo. */ - public syncingTo: (number|Long); + public syncingTo: number | Long; /** * Creates a new SyncDiagnostics instance using the specified properties. @@ -77488,7 +81303,7 @@ export namespace Vault { * @throws {Error} If the payload is 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.SyncDiagnostics; /** * Decodes a SyncDiagnostics message from the specified reader or buffer, length delimited. @@ -77497,14 +81312,14 @@ export namespace Vault { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Vault.SyncDiagnostics; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Vault.SyncDiagnostics; /** * Verifies a SyncDiagnostics message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a SyncDiagnostics message from a plain object. Also converts values to their respective internal types. @@ -77519,7 +81334,10 @@ export namespace Vault { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Vault.SyncDiagnostics, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Vault.SyncDiagnostics, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this SyncDiagnostics to JSON. @@ -77540,43 +81358,41 @@ export namespace Vault { RRST_NOT_ROTATED = 0, RRST_IN_PROGRESS = 1, RRST_SUCCESS = 2, - RRST_FAILURE = 3 + RRST_FAILURE = 3, } /** Properties of a RecordRotation. */ interface IRecordRotation { - /** RecordRotation recordUid */ - recordUid?: (Uint8Array|null); + recordUid?: Uint8Array | null; /** RecordRotation revision */ - revision?: (number|Long|null); + revision?: number | Long | null; /** RecordRotation configurationUid */ - configurationUid?: (Uint8Array|null); + configurationUid?: Uint8Array | null; /** RecordRotation schedule */ - schedule?: (string|null); + schedule?: string | null; /** RecordRotation pwdComplexity */ - pwdComplexity?: (Uint8Array|null); + pwdComplexity?: Uint8Array | null; /** RecordRotation disabled */ - disabled?: (boolean|null); + disabled?: boolean | null; /** RecordRotation resourceUid */ - resourceUid?: (Uint8Array|null); + resourceUid?: Uint8Array | null; /** RecordRotation lastRotation */ - lastRotation?: (number|Long|null); + lastRotation?: number | Long | null; /** RecordRotation lastRotationStatus */ - lastRotationStatus?: (Vault.RecordRotationStatus|null); + lastRotationStatus?: Vault.RecordRotationStatus | null; } /** Represents a RecordRotation. */ class RecordRotation implements IRecordRotation { - /** * Constructs a new RecordRotation. * @param [properties] Properties to set @@ -77587,7 +81403,7 @@ export namespace Vault { public recordUid: Uint8Array; /** RecordRotation revision. */ - public revision: (number|Long); + public revision: number | Long; /** RecordRotation configurationUid. */ public configurationUid: Uint8Array; @@ -77605,7 +81421,7 @@ export namespace Vault { public resourceUid: Uint8Array; /** RecordRotation lastRotation. */ - public lastRotation: (number|Long); + public lastRotation: number | Long; /** RecordRotation lastRotationStatus. */ public lastRotationStatus: Vault.RecordRotationStatus; @@ -77641,7 +81457,7 @@ export namespace Vault { * @throws {Error} If the payload is 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; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): Vault.RecordRotation; /** * Decodes a RecordRotation message from the specified reader or buffer, length delimited. @@ -77650,14 +81466,14 @@ export namespace Vault { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Vault.RecordRotation; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Vault.RecordRotation; /** * Verifies a RecordRotation message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a RecordRotation message from a plain object. Also converts values to their respective internal types. @@ -77672,7 +81488,10 @@ export namespace Vault { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Vault.RecordRotation, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Vault.RecordRotation, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this RecordRotation to JSON. @@ -77690,20 +81509,18 @@ export namespace Vault { /** Properties of a SecurityScoreData. */ interface ISecurityScoreData { - /** SecurityScoreData recordUid */ - recordUid?: (Uint8Array|null); + recordUid?: Uint8Array | null; /** SecurityScoreData data */ - data?: (Uint8Array|null); + data?: Uint8Array | null; /** SecurityScoreData revision */ - revision?: (number|Long|null); + revision?: number | Long | null; } /** Represents a SecurityScoreData. */ class SecurityScoreData implements ISecurityScoreData { - /** * Constructs a new SecurityScoreData. * @param [properties] Properties to set @@ -77717,7 +81534,7 @@ export namespace Vault { public data: Uint8Array; /** SecurityScoreData revision. */ - public revision: (number|Long); + public revision: number | Long; /** * Creates a new SecurityScoreData instance using the specified properties. @@ -77750,7 +81567,7 @@ export namespace Vault { * @throws {Error} If the payload is 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.SecurityScoreData; /** * Decodes a SecurityScoreData message from the specified reader or buffer, length delimited. @@ -77759,14 +81576,14 @@ export namespace Vault { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Vault.SecurityScoreData; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Vault.SecurityScoreData; /** * Verifies a SecurityScoreData message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a SecurityScoreData message from a plain object. Also converts values to their respective internal types. @@ -77781,7 +81598,10 @@ export namespace Vault { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Vault.SecurityScoreData, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Vault.SecurityScoreData, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this SecurityScoreData to JSON. @@ -77799,14 +81619,12 @@ export namespace Vault { /** Properties of a BreachWatchGetSyncDataRequest. */ interface IBreachWatchGetSyncDataRequest { - /** BreachWatchGetSyncDataRequest recordUids */ - recordUids?: (Uint8Array[]|null); + recordUids?: Uint8Array[] | null; } /** Represents a BreachWatchGetSyncDataRequest. */ class BreachWatchGetSyncDataRequest implements IBreachWatchGetSyncDataRequest { - /** * Constructs a new BreachWatchGetSyncDataRequest. * @param [properties] Properties to set @@ -77829,7 +81647,10 @@ export namespace Vault { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Vault.IBreachWatchGetSyncDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Vault.IBreachWatchGetSyncDataRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified BreachWatchGetSyncDataRequest message, length delimited. Does not implicitly {@link Vault.BreachWatchGetSyncDataRequest.verify|verify} messages. @@ -77837,7 +81658,10 @@ export namespace Vault { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Vault.IBreachWatchGetSyncDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Vault.IBreachWatchGetSyncDataRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a BreachWatchGetSyncDataRequest message from the specified reader or buffer. @@ -77847,7 +81671,10 @@ export namespace Vault { * @throws {Error} If the payload is 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.BreachWatchGetSyncDataRequest; /** * Decodes a BreachWatchGetSyncDataRequest message from the specified reader or buffer, length delimited. @@ -77856,14 +81683,14 @@ export namespace Vault { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Vault.BreachWatchGetSyncDataRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Vault.BreachWatchGetSyncDataRequest; /** * Verifies a BreachWatchGetSyncDataRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a BreachWatchGetSyncDataRequest message from a plain object. Also converts values to their respective internal types. @@ -77878,7 +81705,10 @@ export namespace Vault { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Vault.BreachWatchGetSyncDataRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Vault.BreachWatchGetSyncDataRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this BreachWatchGetSyncDataRequest to JSON. @@ -77896,20 +81726,18 @@ export namespace Vault { /** Properties of a BreachWatchGetSyncDataResponse. */ interface IBreachWatchGetSyncDataResponse { - /** BreachWatchGetSyncDataResponse breachWatchRecords */ - breachWatchRecords?: (Vault.IBreachWatchRecord[]|null); + breachWatchRecords?: Vault.IBreachWatchRecord[] | null; /** BreachWatchGetSyncDataResponse breachWatchSecurityData */ - breachWatchSecurityData?: (Vault.IBreachWatchSecurityData[]|null); + breachWatchSecurityData?: Vault.IBreachWatchSecurityData[] | null; /** BreachWatchGetSyncDataResponse users */ - users?: (Vault.IUser[]|null); + users?: Vault.IUser[] | null; } /** Represents a BreachWatchGetSyncDataResponse. */ class BreachWatchGetSyncDataResponse implements IBreachWatchGetSyncDataResponse { - /** * Constructs a new BreachWatchGetSyncDataResponse. * @param [properties] Properties to set @@ -77938,7 +81766,10 @@ export namespace Vault { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: Vault.IBreachWatchGetSyncDataResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: Vault.IBreachWatchGetSyncDataResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified BreachWatchGetSyncDataResponse message, length delimited. Does not implicitly {@link Vault.BreachWatchGetSyncDataResponse.verify|verify} messages. @@ -77946,7 +81777,10 @@ export namespace Vault { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Vault.IBreachWatchGetSyncDataResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Vault.IBreachWatchGetSyncDataResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a BreachWatchGetSyncDataResponse message from the specified reader or buffer. @@ -77956,7 +81790,10 @@ export namespace Vault { * @throws {Error} If the payload is 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; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): Vault.BreachWatchGetSyncDataResponse; /** * Decodes a BreachWatchGetSyncDataResponse message from the specified reader or buffer, length delimited. @@ -77965,14 +81802,14 @@ export namespace Vault { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Vault.BreachWatchGetSyncDataResponse; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Vault.BreachWatchGetSyncDataResponse; /** * Verifies a BreachWatchGetSyncDataResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a BreachWatchGetSyncDataResponse message from a plain object. Also converts values to their respective internal types. @@ -77987,7 +81824,10 @@ export namespace Vault { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Vault.BreachWatchGetSyncDataResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Vault.BreachWatchGetSyncDataResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this BreachWatchGetSyncDataResponse to JSON. @@ -78005,14 +81845,12 @@ export namespace Vault { /** Properties of a GetAccountUidMapResponse. */ interface IGetAccountUidMapResponse { - /** GetAccountUidMapResponse users */ - users?: (Vault.IUser[]|null); + users?: Vault.IUser[] | null; } /** Represents a GetAccountUidMapResponse. */ class GetAccountUidMapResponse implements IGetAccountUidMapResponse { - /** * Constructs a new GetAccountUidMapResponse. * @param [properties] Properties to set @@ -78043,7 +81881,10 @@ export namespace Vault { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: Vault.IGetAccountUidMapResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: Vault.IGetAccountUidMapResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a GetAccountUidMapResponse message from the specified reader or buffer. @@ -78053,7 +81894,7 @@ export namespace Vault { * @throws {Error} If the payload is 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.GetAccountUidMapResponse; /** * Decodes a GetAccountUidMapResponse message from the specified reader or buffer, length delimited. @@ -78062,14 +81903,14 @@ export namespace Vault { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Vault.GetAccountUidMapResponse; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Vault.GetAccountUidMapResponse; /** * Verifies a GetAccountUidMapResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a GetAccountUidMapResponse message from a plain object. Also converts values to their respective internal types. @@ -78084,7 +81925,10 @@ export namespace Vault { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Vault.GetAccountUidMapResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Vault.GetAccountUidMapResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this GetAccountUidMapResponse to JSON. @@ -78103,7 +81947,6 @@ export namespace Vault { /** Namespace NotificationCenter. */ export namespace NotificationCenter { - /** NotificationCategory enum. */ enum NotificationCategory { NC_UNSPECIFIED = 0, @@ -78113,7 +81956,7 @@ export namespace NotificationCenter { NC_SECURITY = 4, NC_REQUEST = 5, NC_SYSTEM = 6, - NC_PROMOTION = 7 + NC_PROMOTION = 7, } /** NotificationType enum. */ @@ -78138,7 +81981,7 @@ export namespace NotificationCenter { NT_2FA_ENABLED = 17, NT_2FA_DISABLED = 18, NT_SECURITY_KEYS_ENABLED = 19, - NT_SECURITY_KEYS_DISABLED = 20 + NT_SECURITY_KEYS_DISABLED = 20, } /** NotificationReadStatus enum. */ @@ -78146,7 +81989,7 @@ export namespace NotificationCenter { NRS_UNSPECIFIED = 0, NRS_LAST = 1, NRS_READ = 2, - NRS_UNREAD = 3 + NRS_UNREAD = 3, } /** NotificationApprovalStatus enum. */ @@ -78155,22 +81998,20 @@ export namespace NotificationCenter { NAS_APPROVED = 1, NAS_DENIED = 2, NAS_LOST_APPROVAL_RIGHTS = 3, - NAS_LOST_ACCESS = 4 + NAS_LOST_ACCESS = 4, } /** Properties of an EncryptedData. */ interface IEncryptedData { - /** EncryptedData version */ - version?: (number|null); + version?: number | null; /** EncryptedData data */ - data?: (Uint8Array|null); + data?: Uint8Array | null; } /** Represents an EncryptedData. */ class EncryptedData implements IEncryptedData { - /** * Constructs a new EncryptedData. * @param [properties] Properties to set @@ -78204,7 +82045,10 @@ export namespace NotificationCenter { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: NotificationCenter.IEncryptedData, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: NotificationCenter.IEncryptedData, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes an EncryptedData message from the specified reader or buffer. @@ -78214,7 +82058,7 @@ export namespace NotificationCenter { * @throws {Error} If the payload is 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): NotificationCenter.EncryptedData; /** * Decodes an EncryptedData message from the specified reader or buffer, length delimited. @@ -78223,14 +82067,14 @@ export namespace NotificationCenter { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): NotificationCenter.EncryptedData; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): NotificationCenter.EncryptedData; /** * Verifies an EncryptedData message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an EncryptedData message from a plain object. Also converts values to their respective internal types. @@ -78245,7 +82089,10 @@ export namespace NotificationCenter { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: NotificationCenter.EncryptedData, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: NotificationCenter.EncryptedData, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this EncryptedData to JSON. @@ -78263,32 +82110,30 @@ export namespace NotificationCenter { /** Properties of a Notification. */ interface INotification { - /** Notification type */ - type?: (NotificationCenter.NotificationType|null); + type?: NotificationCenter.NotificationType | null; /** Notification category */ - category?: (NotificationCenter.NotificationCategory|null); + category?: NotificationCenter.NotificationCategory | null; /** Notification sender */ - sender?: (GraphSync.IGraphSyncRef|null); + sender?: GraphSync.IGraphSyncRef | null; /** Notification senderFullName */ - senderFullName?: (string|null); + senderFullName?: string | null; /** Notification encryptedData */ - encryptedData?: (NotificationCenter.IEncryptedData|null); + encryptedData?: NotificationCenter.IEncryptedData | null; /** Notification refs */ - refs?: (GraphSync.IGraphSyncRef[]|null); + refs?: GraphSync.IGraphSyncRef[] | null; /** Notification categories */ - categories?: (NotificationCenter.NotificationCategory[]|null); + categories?: NotificationCenter.NotificationCategory[] | null; } /** Represents a Notification. */ class Notification implements INotification { - /** * Constructs a new Notification. * @param [properties] Properties to set @@ -78302,13 +82147,13 @@ export namespace NotificationCenter { public category: NotificationCenter.NotificationCategory; /** Notification sender. */ - public sender?: (GraphSync.IGraphSyncRef|null); + public sender?: GraphSync.IGraphSyncRef | null; /** Notification senderFullName. */ public senderFullName: string; /** Notification encryptedData. */ - public encryptedData?: (NotificationCenter.IEncryptedData|null); + public encryptedData?: NotificationCenter.IEncryptedData | null; /** Notification refs. */ public refs: GraphSync.IGraphSyncRef[]; @@ -78337,7 +82182,10 @@ export namespace NotificationCenter { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: NotificationCenter.INotification, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: NotificationCenter.INotification, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a Notification message from the specified reader or buffer. @@ -78347,7 +82195,7 @@ export namespace NotificationCenter { * @throws {Error} If the payload is 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): NotificationCenter.Notification; /** * Decodes a Notification message from the specified reader or buffer, length delimited. @@ -78356,14 +82204,14 @@ export namespace NotificationCenter { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): NotificationCenter.Notification; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): NotificationCenter.Notification; /** * Verifies a Notification message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a Notification message from a plain object. Also converts values to their respective internal types. @@ -78378,7 +82226,10 @@ export namespace NotificationCenter { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: NotificationCenter.Notification, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: NotificationCenter.Notification, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this Notification to JSON. @@ -78396,23 +82247,21 @@ export namespace NotificationCenter { /** Properties of a NotificationReadMark. */ interface INotificationReadMark { - /** NotificationReadMark uid */ - uid?: (Uint8Array|null); + uid?: Uint8Array | null; /** NotificationReadMark notificationEdgeId */ - notificationEdgeId?: (number|Long|null); + notificationEdgeId?: number | Long | null; /** NotificationReadMark markEdgeId */ - markEdgeId?: (number|Long|null); + markEdgeId?: number | Long | null; /** NotificationReadMark readStatus */ - readStatus?: (NotificationCenter.NotificationReadStatus|null); + readStatus?: NotificationCenter.NotificationReadStatus | null; } /** Represents a NotificationReadMark. */ class NotificationReadMark implements INotificationReadMark { - /** * Constructs a new NotificationReadMark. * @param [properties] Properties to set @@ -78423,10 +82272,10 @@ export namespace NotificationCenter { public uid: Uint8Array; /** NotificationReadMark notificationEdgeId. */ - public notificationEdgeId: (number|Long); + public notificationEdgeId: number | Long; /** NotificationReadMark markEdgeId. */ - public markEdgeId: (number|Long); + public markEdgeId: number | Long; /** NotificationReadMark readStatus. */ public readStatus: NotificationCenter.NotificationReadStatus; @@ -78436,7 +82285,9 @@ export namespace NotificationCenter { * @param [properties] Properties to set * @returns NotificationReadMark instance */ - public static create(properties?: NotificationCenter.INotificationReadMark): NotificationCenter.NotificationReadMark; + public static create( + properties?: NotificationCenter.INotificationReadMark + ): NotificationCenter.NotificationReadMark; /** * Encodes the specified NotificationReadMark message. Does not implicitly {@link NotificationCenter.NotificationReadMark.verify|verify} messages. @@ -78444,7 +82295,10 @@ export namespace NotificationCenter { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: NotificationCenter.INotificationReadMark, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: NotificationCenter.INotificationReadMark, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified NotificationReadMark message, length delimited. Does not implicitly {@link NotificationCenter.NotificationReadMark.verify|verify} messages. @@ -78452,7 +82306,10 @@ export namespace NotificationCenter { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: NotificationCenter.INotificationReadMark, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: NotificationCenter.INotificationReadMark, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a NotificationReadMark message from the specified reader or buffer. @@ -78462,7 +82319,10 @@ export namespace NotificationCenter { * @throws {Error} If the payload is 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 + ): NotificationCenter.NotificationReadMark; /** * Decodes a NotificationReadMark message from the specified reader or buffer, length delimited. @@ -78471,14 +82331,14 @@ export namespace NotificationCenter { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): NotificationCenter.NotificationReadMark; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): NotificationCenter.NotificationReadMark; /** * Verifies a NotificationReadMark message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a NotificationReadMark message from a plain object. Also converts values to their respective internal types. @@ -78493,7 +82353,10 @@ export namespace NotificationCenter { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: NotificationCenter.NotificationReadMark, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: NotificationCenter.NotificationReadMark, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this NotificationReadMark to JSON. @@ -78511,29 +82374,27 @@ export namespace NotificationCenter { /** Properties of a NotificationContent. */ interface INotificationContent { - /** NotificationContent notification */ - notification?: (NotificationCenter.INotification|null); + notification?: NotificationCenter.INotification | null; /** NotificationContent readStatus */ - readStatus?: (NotificationCenter.NotificationReadStatus|null); + readStatus?: NotificationCenter.NotificationReadStatus | null; /** NotificationContent approvalStatus */ - approvalStatus?: (NotificationCenter.NotificationApprovalStatus|null); + approvalStatus?: NotificationCenter.NotificationApprovalStatus | null; /** NotificationContent trimmingPoint */ - trimmingPoint?: (boolean|null); + trimmingPoint?: boolean | null; /** NotificationContent clientTypeIDs */ - clientTypeIDs?: (number[]|null); + clientTypeIDs?: number[] | null; /** NotificationContent deviceIDs */ - deviceIDs?: ((number|Long)[]|null); + deviceIDs?: (number | Long)[] | null; } /** Represents a NotificationContent. */ class NotificationContent implements INotificationContent { - /** * Constructs a new NotificationContent. * @param [properties] Properties to set @@ -78541,32 +82402,34 @@ export namespace NotificationCenter { constructor(properties?: NotificationCenter.INotificationContent); /** NotificationContent notification. */ - public notification?: (NotificationCenter.INotification|null); + public notification?: NotificationCenter.INotification | null; /** NotificationContent readStatus. */ - public readStatus?: (NotificationCenter.NotificationReadStatus|null); + public readStatus?: NotificationCenter.NotificationReadStatus | null; /** NotificationContent approvalStatus. */ - public approvalStatus?: (NotificationCenter.NotificationApprovalStatus|null); + public approvalStatus?: NotificationCenter.NotificationApprovalStatus | null; /** NotificationContent trimmingPoint. */ - public trimmingPoint?: (boolean|null); + public trimmingPoint?: boolean | null; /** NotificationContent clientTypeIDs. */ public clientTypeIDs: number[]; /** NotificationContent deviceIDs. */ - public deviceIDs: (number|Long)[]; + public deviceIDs: (number | Long)[]; /** NotificationContent type. */ - public type?: ("notification"|"readStatus"|"approvalStatus"|"trimmingPoint"); + public type?: 'notification' | 'readStatus' | 'approvalStatus' | 'trimmingPoint'; /** * 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; + public static create( + properties?: NotificationCenter.INotificationContent + ): NotificationCenter.NotificationContent; /** * Encodes the specified NotificationContent message. Does not implicitly {@link NotificationCenter.NotificationContent.verify|verify} messages. @@ -78574,7 +82437,10 @@ export namespace NotificationCenter { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: NotificationCenter.INotificationContent, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: NotificationCenter.INotificationContent, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified NotificationContent message, length delimited. Does not implicitly {@link NotificationCenter.NotificationContent.verify|verify} messages. @@ -78582,7 +82448,10 @@ export namespace NotificationCenter { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: NotificationCenter.INotificationContent, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: NotificationCenter.INotificationContent, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a NotificationContent message from the specified reader or buffer. @@ -78592,7 +82461,10 @@ export namespace NotificationCenter { * @throws {Error} If the payload is 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 + ): NotificationCenter.NotificationContent; /** * Decodes a NotificationContent message from the specified reader or buffer, length delimited. @@ -78601,14 +82473,14 @@ export namespace NotificationCenter { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): NotificationCenter.NotificationContent; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): NotificationCenter.NotificationContent; /** * Verifies a NotificationContent message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a NotificationContent message from a plain object. Also converts values to their respective internal types. @@ -78623,7 +82495,10 @@ export namespace NotificationCenter { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: NotificationCenter.NotificationContent, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: NotificationCenter.NotificationContent, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this NotificationContent to JSON. @@ -78641,20 +82516,18 @@ export namespace NotificationCenter { /** Properties of a NotificationWrapper. */ interface INotificationWrapper { - /** NotificationWrapper uid */ - uid?: (Uint8Array|null); + uid?: Uint8Array | null; /** NotificationWrapper content */ - content?: (NotificationCenter.INotificationContent|null); + content?: NotificationCenter.INotificationContent | null; /** NotificationWrapper timestamp */ - timestamp?: (number|Long|null); + timestamp?: number | Long | null; } /** Represents a NotificationWrapper. */ class NotificationWrapper implements INotificationWrapper { - /** * Constructs a new NotificationWrapper. * @param [properties] Properties to set @@ -78665,17 +82538,19 @@ export namespace NotificationCenter { public uid: Uint8Array; /** NotificationWrapper content. */ - public content?: (NotificationCenter.INotificationContent|null); + public content?: NotificationCenter.INotificationContent | null; /** NotificationWrapper timestamp. */ - public timestamp: (number|Long); + public timestamp: number | Long; /** * 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; + public static create( + properties?: NotificationCenter.INotificationWrapper + ): NotificationCenter.NotificationWrapper; /** * Encodes the specified NotificationWrapper message. Does not implicitly {@link NotificationCenter.NotificationWrapper.verify|verify} messages. @@ -78683,7 +82558,10 @@ export namespace NotificationCenter { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: NotificationCenter.INotificationWrapper, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: NotificationCenter.INotificationWrapper, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified NotificationWrapper message, length delimited. Does not implicitly {@link NotificationCenter.NotificationWrapper.verify|verify} messages. @@ -78691,7 +82569,10 @@ export namespace NotificationCenter { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: NotificationCenter.INotificationWrapper, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: NotificationCenter.INotificationWrapper, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a NotificationWrapper message from the specified reader or buffer. @@ -78701,7 +82582,10 @@ export namespace NotificationCenter { * @throws {Error} If the payload is 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 + ): NotificationCenter.NotificationWrapper; /** * Decodes a NotificationWrapper message from the specified reader or buffer, length delimited. @@ -78710,14 +82594,14 @@ export namespace NotificationCenter { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): NotificationCenter.NotificationWrapper; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): NotificationCenter.NotificationWrapper; /** * Verifies a NotificationWrapper message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a NotificationWrapper message from a plain object. Also converts values to their respective internal types. @@ -78732,7 +82616,10 @@ export namespace NotificationCenter { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: NotificationCenter.NotificationWrapper, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: NotificationCenter.NotificationWrapper, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this NotificationWrapper to JSON. @@ -78750,20 +82637,18 @@ export namespace NotificationCenter { /** Properties of a NotificationSync. */ interface INotificationSync { - /** NotificationSync data */ - data?: (NotificationCenter.INotificationWrapper[]|null); + data?: NotificationCenter.INotificationWrapper[] | null; /** NotificationSync syncPoint */ - syncPoint?: (number|Long|null); + syncPoint?: number | Long | null; /** NotificationSync hasMore */ - hasMore?: (boolean|null); + hasMore?: boolean | null; } /** Represents a NotificationSync. */ class NotificationSync implements INotificationSync { - /** * Constructs a new NotificationSync. * @param [properties] Properties to set @@ -78774,7 +82659,7 @@ export namespace NotificationCenter { public data: NotificationCenter.INotificationWrapper[]; /** NotificationSync syncPoint. */ - public syncPoint: (number|Long); + public syncPoint: number | Long; /** NotificationSync hasMore. */ public hasMore: boolean; @@ -78792,7 +82677,10 @@ export namespace NotificationCenter { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: NotificationCenter.INotificationSync, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: NotificationCenter.INotificationSync, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified NotificationSync message, length delimited. Does not implicitly {@link NotificationCenter.NotificationSync.verify|verify} messages. @@ -78800,7 +82688,10 @@ export namespace NotificationCenter { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: NotificationCenter.INotificationSync, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: NotificationCenter.INotificationSync, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a NotificationSync message from the specified reader or buffer. @@ -78810,7 +82701,10 @@ export namespace NotificationCenter { * @throws {Error} If the payload is 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 + ): NotificationCenter.NotificationSync; /** * Decodes a NotificationSync message from the specified reader or buffer, length delimited. @@ -78819,14 +82713,14 @@ export namespace NotificationCenter { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): NotificationCenter.NotificationSync; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): NotificationCenter.NotificationSync; /** * Verifies a NotificationSync message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a NotificationSync message from a plain object. Also converts values to their respective internal types. @@ -78841,7 +82735,10 @@ export namespace NotificationCenter { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: NotificationCenter.NotificationSync, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: NotificationCenter.NotificationSync, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this NotificationSync to JSON. @@ -78859,17 +82756,15 @@ export namespace NotificationCenter { /** Properties of a ReadStatusUpdate. */ interface IReadStatusUpdate { - /** ReadStatusUpdate notificationUid */ - notificationUid?: (Uint8Array|null); + notificationUid?: Uint8Array | null; /** ReadStatusUpdate status */ - status?: (NotificationCenter.NotificationReadStatus|null); + status?: NotificationCenter.NotificationReadStatus | null; } /** Represents a ReadStatusUpdate. */ class ReadStatusUpdate implements IReadStatusUpdate { - /** * Constructs a new ReadStatusUpdate. * @param [properties] Properties to set @@ -78895,7 +82790,10 @@ export namespace NotificationCenter { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: NotificationCenter.IReadStatusUpdate, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: NotificationCenter.IReadStatusUpdate, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified ReadStatusUpdate message, length delimited. Does not implicitly {@link NotificationCenter.ReadStatusUpdate.verify|verify} messages. @@ -78903,7 +82801,10 @@ export namespace NotificationCenter { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: NotificationCenter.IReadStatusUpdate, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: NotificationCenter.IReadStatusUpdate, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a ReadStatusUpdate message from the specified reader or buffer. @@ -78913,7 +82814,10 @@ export namespace NotificationCenter { * @throws {Error} If the payload is 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 + ): NotificationCenter.ReadStatusUpdate; /** * Decodes a ReadStatusUpdate message from the specified reader or buffer, length delimited. @@ -78922,14 +82826,14 @@ export namespace NotificationCenter { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): NotificationCenter.ReadStatusUpdate; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): NotificationCenter.ReadStatusUpdate; /** * Verifies a ReadStatusUpdate message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a ReadStatusUpdate message from a plain object. Also converts values to their respective internal types. @@ -78944,7 +82848,10 @@ export namespace NotificationCenter { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: NotificationCenter.ReadStatusUpdate, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: NotificationCenter.ReadStatusUpdate, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this ReadStatusUpdate to JSON. @@ -78962,17 +82869,15 @@ export namespace NotificationCenter { /** Properties of an ApprovalStatusUpdate. */ interface IApprovalStatusUpdate { - /** ApprovalStatusUpdate notificationUid */ - notificationUid?: (Uint8Array|null); + notificationUid?: Uint8Array | null; /** ApprovalStatusUpdate status */ - status?: (NotificationCenter.NotificationApprovalStatus|null); + status?: NotificationCenter.NotificationApprovalStatus | null; } /** Represents an ApprovalStatusUpdate. */ class ApprovalStatusUpdate implements IApprovalStatusUpdate { - /** * Constructs a new ApprovalStatusUpdate. * @param [properties] Properties to set @@ -78990,7 +82895,9 @@ export namespace NotificationCenter { * @param [properties] Properties to set * @returns ApprovalStatusUpdate instance */ - public static create(properties?: NotificationCenter.IApprovalStatusUpdate): NotificationCenter.ApprovalStatusUpdate; + public static create( + properties?: NotificationCenter.IApprovalStatusUpdate + ): NotificationCenter.ApprovalStatusUpdate; /** * Encodes the specified ApprovalStatusUpdate message. Does not implicitly {@link NotificationCenter.ApprovalStatusUpdate.verify|verify} messages. @@ -78998,7 +82905,10 @@ export namespace NotificationCenter { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: NotificationCenter.IApprovalStatusUpdate, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: NotificationCenter.IApprovalStatusUpdate, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified ApprovalStatusUpdate message, length delimited. Does not implicitly {@link NotificationCenter.ApprovalStatusUpdate.verify|verify} messages. @@ -79006,7 +82916,10 @@ export namespace NotificationCenter { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: NotificationCenter.IApprovalStatusUpdate, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: NotificationCenter.IApprovalStatusUpdate, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes an ApprovalStatusUpdate message from the specified reader or buffer. @@ -79016,7 +82929,10 @@ export namespace NotificationCenter { * @throws {Error} If the payload is 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 + ): NotificationCenter.ApprovalStatusUpdate; /** * Decodes an ApprovalStatusUpdate message from the specified reader or buffer, length delimited. @@ -79025,14 +82941,14 @@ export namespace NotificationCenter { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): NotificationCenter.ApprovalStatusUpdate; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): NotificationCenter.ApprovalStatusUpdate; /** * Verifies an ApprovalStatusUpdate message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an ApprovalStatusUpdate message from a plain object. Also converts values to their respective internal types. @@ -79047,7 +82963,10 @@ export namespace NotificationCenter { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: NotificationCenter.ApprovalStatusUpdate, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: NotificationCenter.ApprovalStatusUpdate, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this ApprovalStatusUpdate to JSON. @@ -79065,14 +82984,12 @@ export namespace NotificationCenter { /** Properties of a ProcessMarkReadEventsRequest. */ interface IProcessMarkReadEventsRequest { - /** ProcessMarkReadEventsRequest readStatusUpdate */ - readStatusUpdate?: (NotificationCenter.IReadStatusUpdate[]|null); + readStatusUpdate?: NotificationCenter.IReadStatusUpdate[] | null; } /** Represents a ProcessMarkReadEventsRequest. */ class ProcessMarkReadEventsRequest implements IProcessMarkReadEventsRequest { - /** * Constructs a new ProcessMarkReadEventsRequest. * @param [properties] Properties to set @@ -79087,7 +83004,9 @@ export namespace NotificationCenter { * @param [properties] Properties to set * @returns ProcessMarkReadEventsRequest instance */ - public static create(properties?: NotificationCenter.IProcessMarkReadEventsRequest): NotificationCenter.ProcessMarkReadEventsRequest; + public static create( + properties?: NotificationCenter.IProcessMarkReadEventsRequest + ): NotificationCenter.ProcessMarkReadEventsRequest; /** * Encodes the specified ProcessMarkReadEventsRequest message. Does not implicitly {@link NotificationCenter.ProcessMarkReadEventsRequest.verify|verify} messages. @@ -79095,7 +83014,10 @@ export namespace NotificationCenter { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: NotificationCenter.IProcessMarkReadEventsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: NotificationCenter.IProcessMarkReadEventsRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified ProcessMarkReadEventsRequest message, length delimited. Does not implicitly {@link NotificationCenter.ProcessMarkReadEventsRequest.verify|verify} messages. @@ -79103,7 +83025,10 @@ export namespace NotificationCenter { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: NotificationCenter.IProcessMarkReadEventsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: NotificationCenter.IProcessMarkReadEventsRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a ProcessMarkReadEventsRequest message from the specified reader or buffer. @@ -79113,7 +83038,10 @@ export namespace NotificationCenter { * @throws {Error} If the payload is 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 + ): NotificationCenter.ProcessMarkReadEventsRequest; /** * Decodes a ProcessMarkReadEventsRequest message from the specified reader or buffer, length delimited. @@ -79122,14 +83050,16 @@ export namespace NotificationCenter { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): NotificationCenter.ProcessMarkReadEventsRequest; + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array + ): NotificationCenter.ProcessMarkReadEventsRequest; /** * Verifies a ProcessMarkReadEventsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a ProcessMarkReadEventsRequest message from a plain object. Also converts values to their respective internal types. @@ -79144,7 +83074,10 @@ export namespace NotificationCenter { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: NotificationCenter.ProcessMarkReadEventsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: NotificationCenter.ProcessMarkReadEventsRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this ProcessMarkReadEventsRequest to JSON. @@ -79162,23 +83095,21 @@ export namespace NotificationCenter { /** Properties of a NotificationSendRequest. */ interface INotificationSendRequest { - /** NotificationSendRequest recipients */ - recipients?: (GraphSync.IGraphSyncRef[]|null); + recipients?: GraphSync.IGraphSyncRef[] | null; /** NotificationSendRequest notification */ - notification?: (NotificationCenter.INotification|null); + notification?: NotificationCenter.INotification | null; /** NotificationSendRequest clientTypeIDs */ - clientTypeIDs?: (number[]|null); + clientTypeIDs?: number[] | null; /** NotificationSendRequest deviceIDs */ - deviceIDs?: ((number|Long)[]|null); + deviceIDs?: (number | Long)[] | null; } /** Represents a NotificationSendRequest. */ class NotificationSendRequest implements INotificationSendRequest { - /** * Constructs a new NotificationSendRequest. * @param [properties] Properties to set @@ -79189,20 +83120,22 @@ export namespace NotificationCenter { public recipients: GraphSync.IGraphSyncRef[]; /** NotificationSendRequest notification. */ - public notification?: (NotificationCenter.INotification|null); + public notification?: NotificationCenter.INotification | null; /** NotificationSendRequest clientTypeIDs. */ public clientTypeIDs: number[]; /** NotificationSendRequest deviceIDs. */ - public deviceIDs: (number|Long)[]; + public deviceIDs: (number | Long)[]; /** * Creates a new NotificationSendRequest instance using the specified properties. * @param [properties] Properties to set * @returns NotificationSendRequest instance */ - public static create(properties?: NotificationCenter.INotificationSendRequest): NotificationCenter.NotificationSendRequest; + public static create( + properties?: NotificationCenter.INotificationSendRequest + ): NotificationCenter.NotificationSendRequest; /** * Encodes the specified NotificationSendRequest message. Does not implicitly {@link NotificationCenter.NotificationSendRequest.verify|verify} messages. @@ -79210,7 +83143,10 @@ export namespace NotificationCenter { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: NotificationCenter.INotificationSendRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: NotificationCenter.INotificationSendRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified NotificationSendRequest message, length delimited. Does not implicitly {@link NotificationCenter.NotificationSendRequest.verify|verify} messages. @@ -79218,7 +83154,10 @@ export namespace NotificationCenter { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: NotificationCenter.INotificationSendRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: NotificationCenter.INotificationSendRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a NotificationSendRequest message from the specified reader or buffer. @@ -79228,7 +83167,10 @@ export namespace NotificationCenter { * @throws {Error} If the payload is 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 + ): NotificationCenter.NotificationSendRequest; /** * Decodes a NotificationSendRequest message from the specified reader or buffer, length delimited. @@ -79237,14 +83179,16 @@ export namespace NotificationCenter { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): NotificationCenter.NotificationSendRequest; + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array + ): NotificationCenter.NotificationSendRequest; /** * Verifies a NotificationSendRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a NotificationSendRequest message from a plain object. Also converts values to their respective internal types. @@ -79259,7 +83203,10 @@ export namespace NotificationCenter { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: NotificationCenter.NotificationSendRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: NotificationCenter.NotificationSendRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this NotificationSendRequest to JSON. @@ -79277,14 +83224,12 @@ export namespace NotificationCenter { /** Properties of a NotificationsSendRequest. */ interface INotificationsSendRequest { - /** NotificationsSendRequest notifications */ - notifications?: (NotificationCenter.INotificationSendRequest[]|null); + notifications?: NotificationCenter.INotificationSendRequest[] | null; } /** Represents a NotificationsSendRequest. */ class NotificationsSendRequest implements INotificationsSendRequest { - /** * Constructs a new NotificationsSendRequest. * @param [properties] Properties to set @@ -79299,7 +83244,9 @@ export namespace NotificationCenter { * @param [properties] Properties to set * @returns NotificationsSendRequest instance */ - public static create(properties?: NotificationCenter.INotificationsSendRequest): NotificationCenter.NotificationsSendRequest; + public static create( + properties?: NotificationCenter.INotificationsSendRequest + ): NotificationCenter.NotificationsSendRequest; /** * Encodes the specified NotificationsSendRequest message. Does not implicitly {@link NotificationCenter.NotificationsSendRequest.verify|verify} messages. @@ -79307,7 +83254,10 @@ export namespace NotificationCenter { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: NotificationCenter.INotificationsSendRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: NotificationCenter.INotificationsSendRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified NotificationsSendRequest message, length delimited. Does not implicitly {@link NotificationCenter.NotificationsSendRequest.verify|verify} messages. @@ -79315,7 +83265,10 @@ export namespace NotificationCenter { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: NotificationCenter.INotificationsSendRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: NotificationCenter.INotificationsSendRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a NotificationsSendRequest message from the specified reader or buffer. @@ -79325,7 +83278,10 @@ export namespace NotificationCenter { * @throws {Error} If the payload is 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 + ): NotificationCenter.NotificationsSendRequest; /** * Decodes a NotificationsSendRequest message from the specified reader or buffer, length delimited. @@ -79334,14 +83290,16 @@ export namespace NotificationCenter { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): NotificationCenter.NotificationsSendRequest; + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array + ): NotificationCenter.NotificationsSendRequest; /** * Verifies a NotificationsSendRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a NotificationsSendRequest message from a plain object. Also converts values to their respective internal types. @@ -79356,7 +83314,10 @@ export namespace NotificationCenter { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: NotificationCenter.NotificationsSendRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: NotificationCenter.NotificationsSendRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this NotificationsSendRequest to JSON. @@ -79374,14 +83335,12 @@ export namespace NotificationCenter { /** Properties of a NotificationSyncRequest. */ interface INotificationSyncRequest { - /** NotificationSyncRequest syncPoint */ - syncPoint?: (number|Long|null); + syncPoint?: number | Long | null; } /** Represents a NotificationSyncRequest. */ class NotificationSyncRequest implements INotificationSyncRequest { - /** * Constructs a new NotificationSyncRequest. * @param [properties] Properties to set @@ -79389,14 +83348,16 @@ export namespace NotificationCenter { constructor(properties?: NotificationCenter.INotificationSyncRequest); /** NotificationSyncRequest syncPoint. */ - public syncPoint: (number|Long); + public syncPoint: number | Long; /** * Creates a new NotificationSyncRequest instance using the specified properties. * @param [properties] Properties to set * @returns NotificationSyncRequest instance */ - public static create(properties?: NotificationCenter.INotificationSyncRequest): NotificationCenter.NotificationSyncRequest; + public static create( + properties?: NotificationCenter.INotificationSyncRequest + ): NotificationCenter.NotificationSyncRequest; /** * Encodes the specified NotificationSyncRequest message. Does not implicitly {@link NotificationCenter.NotificationSyncRequest.verify|verify} messages. @@ -79404,7 +83365,10 @@ export namespace NotificationCenter { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: NotificationCenter.INotificationSyncRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: NotificationCenter.INotificationSyncRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified NotificationSyncRequest message, length delimited. Does not implicitly {@link NotificationCenter.NotificationSyncRequest.verify|verify} messages. @@ -79412,7 +83376,10 @@ export namespace NotificationCenter { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: NotificationCenter.INotificationSyncRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: NotificationCenter.INotificationSyncRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a NotificationSyncRequest message from the specified reader or buffer. @@ -79422,7 +83389,10 @@ export namespace NotificationCenter { * @throws {Error} If the payload is 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 + ): NotificationCenter.NotificationSyncRequest; /** * Decodes a NotificationSyncRequest message from the specified reader or buffer, length delimited. @@ -79431,14 +83401,16 @@ export namespace NotificationCenter { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): NotificationCenter.NotificationSyncRequest; + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array + ): NotificationCenter.NotificationSyncRequest; /** * Verifies a NotificationSyncRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a NotificationSyncRequest message from a plain object. Also converts values to their respective internal types. @@ -79453,7 +83425,10 @@ export namespace NotificationCenter { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: NotificationCenter.NotificationSyncRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: NotificationCenter.NotificationSyncRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this NotificationSyncRequest to JSON. @@ -79471,14 +83446,12 @@ export namespace NotificationCenter { /** Properties of a NotificationsApprovalStatusUpdateRequest. */ interface INotificationsApprovalStatusUpdateRequest { - /** NotificationsApprovalStatusUpdateRequest updates */ - updates?: (NotificationCenter.IApprovalStatusUpdate[]|null); + updates?: NotificationCenter.IApprovalStatusUpdate[] | null; } /** Represents a NotificationsApprovalStatusUpdateRequest. */ class NotificationsApprovalStatusUpdateRequest implements INotificationsApprovalStatusUpdateRequest { - /** * Constructs a new NotificationsApprovalStatusUpdateRequest. * @param [properties] Properties to set @@ -79493,7 +83466,9 @@ export namespace NotificationCenter { * @param [properties] Properties to set * @returns NotificationsApprovalStatusUpdateRequest instance */ - public static create(properties?: NotificationCenter.INotificationsApprovalStatusUpdateRequest): NotificationCenter.NotificationsApprovalStatusUpdateRequest; + public static create( + properties?: NotificationCenter.INotificationsApprovalStatusUpdateRequest + ): NotificationCenter.NotificationsApprovalStatusUpdateRequest; /** * Encodes the specified NotificationsApprovalStatusUpdateRequest message. Does not implicitly {@link NotificationCenter.NotificationsApprovalStatusUpdateRequest.verify|verify} messages. @@ -79501,7 +83476,10 @@ export namespace NotificationCenter { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: NotificationCenter.INotificationsApprovalStatusUpdateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: NotificationCenter.INotificationsApprovalStatusUpdateRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified NotificationsApprovalStatusUpdateRequest message, length delimited. Does not implicitly {@link NotificationCenter.NotificationsApprovalStatusUpdateRequest.verify|verify} messages. @@ -79509,7 +83487,10 @@ export namespace NotificationCenter { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: NotificationCenter.INotificationsApprovalStatusUpdateRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: NotificationCenter.INotificationsApprovalStatusUpdateRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a NotificationsApprovalStatusUpdateRequest message from the specified reader or buffer. @@ -79519,7 +83500,10 @@ export namespace NotificationCenter { * @throws {Error} If the payload is 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 + ): NotificationCenter.NotificationsApprovalStatusUpdateRequest; /** * Decodes a NotificationsApprovalStatusUpdateRequest message from the specified reader or buffer, length delimited. @@ -79528,21 +83512,25 @@ export namespace NotificationCenter { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): NotificationCenter.NotificationsApprovalStatusUpdateRequest; + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array + ): NotificationCenter.NotificationsApprovalStatusUpdateRequest; /** * Verifies a NotificationsApprovalStatusUpdateRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a NotificationsApprovalStatusUpdateRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns NotificationsApprovalStatusUpdateRequest */ - public static fromObject(object: { [k: string]: any }): NotificationCenter.NotificationsApprovalStatusUpdateRequest; + public static fromObject(object: { + [k: string]: any; + }): NotificationCenter.NotificationsApprovalStatusUpdateRequest; /** * Creates a plain object from a NotificationsApprovalStatusUpdateRequest message. Also converts values to other types if specified. @@ -79550,7 +83538,10 @@ export namespace NotificationCenter { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: NotificationCenter.NotificationsApprovalStatusUpdateRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: NotificationCenter.NotificationsApprovalStatusUpdateRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this NotificationsApprovalStatusUpdateRequest to JSON. @@ -79569,7 +83560,6 @@ export namespace NotificationCenter { /** Namespace GraphSync. */ export namespace GraphSync { - /** RefType enum. */ enum RefType { RFT_GENERAL = 0, @@ -79590,25 +83580,23 @@ export namespace GraphSync { RFT_NOTIFICATION = 15, RFT_USER_INFO = 16, RFT_TEAM_INFO = 17, - RFT_ROLE = 18 + RFT_ROLE = 18, } /** Properties of a GraphSyncRef. */ interface IGraphSyncRef { - /** GraphSyncRef type */ - type?: (GraphSync.RefType|null); + type?: GraphSync.RefType | null; /** GraphSyncRef value */ - value?: (Uint8Array|null); + value?: Uint8Array | null; /** GraphSyncRef name */ - name?: (string|null); + name?: string | null; } /** Represents a GraphSyncRef. */ class GraphSyncRef implements IGraphSyncRef { - /** * Constructs a new GraphSyncRef. * @param [properties] Properties to set @@ -79655,7 +83643,7 @@ export namespace GraphSync { * @throws {Error} If the payload is 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): GraphSync.GraphSyncRef; /** * Decodes a GraphSyncRef message from the specified reader or buffer, length delimited. @@ -79664,14 +83652,14 @@ export namespace GraphSync { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): GraphSync.GraphSyncRef; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): GraphSync.GraphSyncRef; /** * Verifies a GraphSyncRef message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a GraphSyncRef message from a plain object. Also converts values to their respective internal types. @@ -79686,7 +83674,10 @@ export namespace GraphSync { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: GraphSync.GraphSyncRef, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: GraphSync.GraphSyncRef, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this GraphSyncRef to JSON. @@ -79708,35 +83699,33 @@ export namespace GraphSync { GSE_KEY = 1, GSE_LINK = 2, GSE_ACL = 3, - GSE_DELETION = 4 + GSE_DELETION = 4, } /** GraphSyncActorType enum. */ enum GraphSyncActorType { GSA_USER = 0, GSA_SERVICE = 1, - GSA_PAM_GATEWAY = 2 + GSA_PAM_GATEWAY = 2, } /** Properties of a GraphSyncActor. */ interface IGraphSyncActor { - /** GraphSyncActor type */ - type?: (GraphSync.GraphSyncActorType|null); + type?: GraphSync.GraphSyncActorType | null; /** GraphSyncActor id */ - id?: (Uint8Array|null); + id?: Uint8Array | null; /** GraphSyncActor name */ - name?: (string|null); + name?: string | null; /** GraphSyncActor effectiveUserId */ - effectiveUserId?: (Uint8Array|null); + effectiveUserId?: Uint8Array | null; } /** Represents a GraphSyncActor. */ class GraphSyncActor implements IGraphSyncActor { - /** * Constructs a new GraphSyncActor. * @param [properties] Properties to set @@ -79786,7 +83775,7 @@ export namespace GraphSync { * @throws {Error} If the payload is 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): GraphSync.GraphSyncActor; /** * Decodes a GraphSyncActor message from the specified reader or buffer, length delimited. @@ -79795,14 +83784,14 @@ export namespace GraphSync { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): GraphSync.GraphSyncActor; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): GraphSync.GraphSyncActor; /** * Verifies a GraphSyncActor message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a GraphSyncActor message from a plain object. Also converts values to their respective internal types. @@ -79817,7 +83806,10 @@ export namespace GraphSync { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: GraphSync.GraphSyncActor, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: GraphSync.GraphSyncActor, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this GraphSyncActor to JSON. @@ -79835,26 +83827,24 @@ export namespace GraphSync { /** Properties of a GraphSyncData. */ interface IGraphSyncData { - /** GraphSyncData type */ - type?: (GraphSync.GraphSyncDataType|null); + type?: GraphSync.GraphSyncDataType | null; /** GraphSyncData ref */ - ref?: (GraphSync.IGraphSyncRef|null); + ref?: GraphSync.IGraphSyncRef | null; /** GraphSyncData parentRef */ - parentRef?: (GraphSync.IGraphSyncRef|null); + parentRef?: GraphSync.IGraphSyncRef | null; /** GraphSyncData content */ - content?: (Uint8Array|null); + content?: Uint8Array | null; /** GraphSyncData path */ - path?: (string|null); + path?: string | null; } /** Represents a GraphSyncData. */ class GraphSyncData implements IGraphSyncData { - /** * Constructs a new GraphSyncData. * @param [properties] Properties to set @@ -79865,10 +83855,10 @@ export namespace GraphSync { public type: GraphSync.GraphSyncDataType; /** GraphSyncData ref. */ - public ref?: (GraphSync.IGraphSyncRef|null); + public ref?: GraphSync.IGraphSyncRef | null; /** GraphSyncData parentRef. */ - public parentRef?: (GraphSync.IGraphSyncRef|null); + public parentRef?: GraphSync.IGraphSyncRef | null; /** GraphSyncData content. */ public content: Uint8Array; @@ -79907,7 +83897,7 @@ export namespace GraphSync { * @throws {Error} If the payload is 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): GraphSync.GraphSyncData; /** * Decodes a GraphSyncData message from the specified reader or buffer, length delimited. @@ -79916,14 +83906,14 @@ export namespace GraphSync { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): GraphSync.GraphSyncData; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): GraphSync.GraphSyncData; /** * Verifies a GraphSyncData message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a GraphSyncData message from a plain object. Also converts values to their respective internal types. @@ -79938,7 +83928,10 @@ export namespace GraphSync { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: GraphSync.GraphSyncData, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: GraphSync.GraphSyncData, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this GraphSyncData to JSON. @@ -79956,20 +83949,18 @@ export namespace GraphSync { /** Properties of a GraphSyncDataPlus. */ interface IGraphSyncDataPlus { - /** GraphSyncDataPlus data */ - data?: (GraphSync.IGraphSyncData|null); + data?: GraphSync.IGraphSyncData | null; /** GraphSyncDataPlus timestamp */ - timestamp?: (number|Long|null); + timestamp?: number | Long | null; /** GraphSyncDataPlus actor */ - actor?: (GraphSync.IGraphSyncActor|null); + actor?: GraphSync.IGraphSyncActor | null; } /** Represents a GraphSyncDataPlus. */ class GraphSyncDataPlus implements IGraphSyncDataPlus { - /** * Constructs a new GraphSyncDataPlus. * @param [properties] Properties to set @@ -79977,13 +83968,13 @@ export namespace GraphSync { constructor(properties?: GraphSync.IGraphSyncDataPlus); /** GraphSyncDataPlus data. */ - public data?: (GraphSync.IGraphSyncData|null); + public data?: GraphSync.IGraphSyncData | null; /** GraphSyncDataPlus timestamp. */ - public timestamp: (number|Long); + public timestamp: number | Long; /** GraphSyncDataPlus actor. */ - public actor?: (GraphSync.IGraphSyncActor|null); + public actor?: GraphSync.IGraphSyncActor | null; /** * Creates a new GraphSyncDataPlus instance using the specified properties. @@ -80006,7 +83997,10 @@ export namespace GraphSync { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: GraphSync.IGraphSyncDataPlus, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: GraphSync.IGraphSyncDataPlus, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a GraphSyncDataPlus message from the specified reader or buffer. @@ -80016,7 +84010,7 @@ export namespace GraphSync { * @throws {Error} If the payload is 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): GraphSync.GraphSyncDataPlus; /** * Decodes a GraphSyncDataPlus message from the specified reader or buffer, length delimited. @@ -80025,14 +84019,14 @@ export namespace GraphSync { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): GraphSync.GraphSyncDataPlus; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): GraphSync.GraphSyncDataPlus; /** * Verifies a GraphSyncDataPlus message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a GraphSyncDataPlus message from a plain object. Also converts values to their respective internal types. @@ -80047,7 +84041,10 @@ export namespace GraphSync { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: GraphSync.GraphSyncDataPlus, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: GraphSync.GraphSyncDataPlus, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this GraphSyncDataPlus to JSON. @@ -80065,23 +84062,21 @@ export namespace GraphSync { /** Properties of a GraphSyncQuery. */ interface IGraphSyncQuery { - /** GraphSyncQuery streamId */ - streamId?: (Uint8Array|null); + streamId?: Uint8Array | null; /** GraphSyncQuery origin */ - origin?: (Uint8Array|null); + origin?: Uint8Array | null; /** GraphSyncQuery syncPoint */ - syncPoint?: (number|Long|null); + syncPoint?: number | Long | null; /** GraphSyncQuery maxCount */ - maxCount?: (number|null); + maxCount?: number | null; } /** Represents a GraphSyncQuery. */ class GraphSyncQuery implements IGraphSyncQuery { - /** * Constructs a new GraphSyncQuery. * @param [properties] Properties to set @@ -80095,7 +84090,7 @@ export namespace GraphSync { public origin: Uint8Array; /** GraphSyncQuery syncPoint. */ - public syncPoint: (number|Long); + public syncPoint: number | Long; /** GraphSyncQuery maxCount. */ public maxCount: number; @@ -80131,7 +84126,7 @@ export namespace GraphSync { * @throws {Error} If the payload is 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): GraphSync.GraphSyncQuery; /** * Decodes a GraphSyncQuery message from the specified reader or buffer, length delimited. @@ -80140,14 +84135,14 @@ export namespace GraphSync { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): GraphSync.GraphSyncQuery; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): GraphSync.GraphSyncQuery; /** * Verifies a GraphSyncQuery message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a GraphSyncQuery message from a plain object. Also converts values to their respective internal types. @@ -80162,7 +84157,10 @@ export namespace GraphSync { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: GraphSync.GraphSyncQuery, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: GraphSync.GraphSyncQuery, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this GraphSyncQuery to JSON. @@ -80180,23 +84178,21 @@ export namespace GraphSync { /** Properties of a GraphSyncResult. */ interface IGraphSyncResult { - /** GraphSyncResult streamId */ - streamId?: (Uint8Array|null); + streamId?: Uint8Array | null; /** GraphSyncResult syncPoint */ - syncPoint?: (number|Long|null); + syncPoint?: number | Long | null; /** GraphSyncResult data */ - data?: (GraphSync.IGraphSyncDataPlus[]|null); + data?: GraphSync.IGraphSyncDataPlus[] | null; /** GraphSyncResult hasMore */ - hasMore?: (boolean|null); + hasMore?: boolean | null; } /** Represents a GraphSyncResult. */ class GraphSyncResult implements IGraphSyncResult { - /** * Constructs a new GraphSyncResult. * @param [properties] Properties to set @@ -80207,7 +84203,7 @@ export namespace GraphSync { public streamId: Uint8Array; /** GraphSyncResult syncPoint. */ - public syncPoint: (number|Long); + public syncPoint: number | Long; /** GraphSyncResult data. */ public data: GraphSync.IGraphSyncDataPlus[]; @@ -80246,7 +84242,7 @@ export namespace GraphSync { * @throws {Error} If the payload is 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): GraphSync.GraphSyncResult; /** * Decodes a GraphSyncResult message from the specified reader or buffer, length delimited. @@ -80255,14 +84251,14 @@ export namespace GraphSync { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): GraphSync.GraphSyncResult; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): GraphSync.GraphSyncResult; /** * Verifies a GraphSyncResult message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a GraphSyncResult message from a plain object. Also converts values to their respective internal types. @@ -80277,7 +84273,10 @@ export namespace GraphSync { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: GraphSync.GraphSyncResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: GraphSync.GraphSyncResult, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this GraphSyncResult to JSON. @@ -80295,14 +84294,12 @@ export namespace GraphSync { /** Properties of a GraphSyncMultiQuery. */ interface IGraphSyncMultiQuery { - /** GraphSyncMultiQuery queries */ - queries?: (GraphSync.IGraphSyncQuery[]|null); + queries?: GraphSync.IGraphSyncQuery[] | null; } /** Represents a GraphSyncMultiQuery. */ class GraphSyncMultiQuery implements IGraphSyncMultiQuery { - /** * Constructs a new GraphSyncMultiQuery. * @param [properties] Properties to set @@ -80333,7 +84330,10 @@ export namespace GraphSync { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: GraphSync.IGraphSyncMultiQuery, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: GraphSync.IGraphSyncMultiQuery, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a GraphSyncMultiQuery message from the specified reader or buffer. @@ -80343,7 +84343,7 @@ export namespace GraphSync { * @throws {Error} If the payload is 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): GraphSync.GraphSyncMultiQuery; /** * Decodes a GraphSyncMultiQuery message from the specified reader or buffer, length delimited. @@ -80352,14 +84352,14 @@ export namespace GraphSync { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): GraphSync.GraphSyncMultiQuery; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): GraphSync.GraphSyncMultiQuery; /** * Verifies a GraphSyncMultiQuery message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a GraphSyncMultiQuery message from a plain object. Also converts values to their respective internal types. @@ -80374,7 +84374,10 @@ export namespace GraphSync { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: GraphSync.GraphSyncMultiQuery, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: GraphSync.GraphSyncMultiQuery, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this GraphSyncMultiQuery to JSON. @@ -80392,14 +84395,12 @@ export namespace GraphSync { /** Properties of a GraphSyncMultiResult. */ interface IGraphSyncMultiResult { - /** GraphSyncMultiResult results */ - results?: (GraphSync.IGraphSyncResult[]|null); + results?: GraphSync.IGraphSyncResult[] | null; } /** Represents a GraphSyncMultiResult. */ class GraphSyncMultiResult implements IGraphSyncMultiResult { - /** * Constructs a new GraphSyncMultiResult. * @param [properties] Properties to set @@ -80430,7 +84431,10 @@ export namespace GraphSync { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: GraphSync.IGraphSyncMultiResult, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: GraphSync.IGraphSyncMultiResult, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a GraphSyncMultiResult message from the specified reader or buffer. @@ -80440,7 +84444,7 @@ export namespace GraphSync { * @throws {Error} If the payload is 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): GraphSync.GraphSyncMultiResult; /** * Decodes a GraphSyncMultiResult message from the specified reader or buffer, length delimited. @@ -80449,14 +84453,14 @@ export namespace GraphSync { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): GraphSync.GraphSyncMultiResult; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): GraphSync.GraphSyncMultiResult; /** * Verifies a GraphSyncMultiResult message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a GraphSyncMultiResult message from a plain object. Also converts values to their respective internal types. @@ -80471,7 +84475,10 @@ export namespace GraphSync { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: GraphSync.GraphSyncMultiResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: GraphSync.GraphSyncMultiResult, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this GraphSyncMultiResult to JSON. @@ -80489,17 +84496,15 @@ export namespace GraphSync { /** Properties of a GraphSyncAddDataRequest. */ interface IGraphSyncAddDataRequest { - /** GraphSyncAddDataRequest origin */ - origin?: (GraphSync.IGraphSyncRef|null); + origin?: GraphSync.IGraphSyncRef | null; /** GraphSyncAddDataRequest data */ - data?: (GraphSync.IGraphSyncData[]|null); + data?: GraphSync.IGraphSyncData[] | null; } /** Represents a GraphSyncAddDataRequest. */ class GraphSyncAddDataRequest implements IGraphSyncAddDataRequest { - /** * Constructs a new GraphSyncAddDataRequest. * @param [properties] Properties to set @@ -80507,7 +84512,7 @@ export namespace GraphSync { constructor(properties?: GraphSync.IGraphSyncAddDataRequest); /** GraphSyncAddDataRequest origin. */ - public origin?: (GraphSync.IGraphSyncRef|null); + public origin?: GraphSync.IGraphSyncRef | null; /** GraphSyncAddDataRequest data. */ public data: GraphSync.IGraphSyncData[]; @@ -80533,7 +84538,10 @@ export namespace GraphSync { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: GraphSync.IGraphSyncAddDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: GraphSync.IGraphSyncAddDataRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a GraphSyncAddDataRequest message from the specified reader or buffer. @@ -80543,7 +84551,7 @@ export namespace GraphSync { * @throws {Error} If the payload is 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): GraphSync.GraphSyncAddDataRequest; /** * Decodes a GraphSyncAddDataRequest message from the specified reader or buffer, length delimited. @@ -80552,14 +84560,14 @@ export namespace GraphSync { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): GraphSync.GraphSyncAddDataRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): GraphSync.GraphSyncAddDataRequest; /** * Verifies a GraphSyncAddDataRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a GraphSyncAddDataRequest message from a plain object. Also converts values to their respective internal types. @@ -80574,7 +84582,10 @@ export namespace GraphSync { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: GraphSync.GraphSyncAddDataRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: GraphSync.GraphSyncAddDataRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this GraphSyncAddDataRequest to JSON. @@ -80592,14 +84603,12 @@ export namespace GraphSync { /** Properties of a GraphSyncLeafsQuery. */ interface IGraphSyncLeafsQuery { - /** GraphSyncLeafsQuery vertices */ - vertices?: (Uint8Array[]|null); + vertices?: Uint8Array[] | null; } /** Represents a GraphSyncLeafsQuery. */ class GraphSyncLeafsQuery implements IGraphSyncLeafsQuery { - /** * Constructs a new GraphSyncLeafsQuery. * @param [properties] Properties to set @@ -80630,7 +84639,10 @@ export namespace GraphSync { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: GraphSync.IGraphSyncLeafsQuery, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: GraphSync.IGraphSyncLeafsQuery, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a GraphSyncLeafsQuery message from the specified reader or buffer. @@ -80640,7 +84652,7 @@ export namespace GraphSync { * @throws {Error} If the payload is 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): GraphSync.GraphSyncLeafsQuery; /** * Decodes a GraphSyncLeafsQuery message from the specified reader or buffer, length delimited. @@ -80649,14 +84661,14 @@ export namespace GraphSync { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): GraphSync.GraphSyncLeafsQuery; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): GraphSync.GraphSyncLeafsQuery; /** * Verifies a GraphSyncLeafsQuery message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a GraphSyncLeafsQuery message from a plain object. Also converts values to their respective internal types. @@ -80671,7 +84683,10 @@ export namespace GraphSync { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: GraphSync.GraphSyncLeafsQuery, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: GraphSync.GraphSyncLeafsQuery, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this GraphSyncLeafsQuery to JSON. @@ -80689,14 +84704,12 @@ export namespace GraphSync { /** Properties of a GraphSyncRefsResult. */ interface IGraphSyncRefsResult { - /** GraphSyncRefsResult refs */ - refs?: (GraphSync.IGraphSyncRef[]|null); + refs?: GraphSync.IGraphSyncRef[] | null; } /** Represents a GraphSyncRefsResult. */ class GraphSyncRefsResult implements IGraphSyncRefsResult { - /** * Constructs a new GraphSyncRefsResult. * @param [properties] Properties to set @@ -80727,7 +84740,10 @@ export namespace GraphSync { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: GraphSync.IGraphSyncRefsResult, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: GraphSync.IGraphSyncRefsResult, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a GraphSyncRefsResult message from the specified reader or buffer. @@ -80737,7 +84753,7 @@ export namespace GraphSync { * @throws {Error} If the payload is 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): GraphSync.GraphSyncRefsResult; /** * Decodes a GraphSyncRefsResult message from the specified reader or buffer, length delimited. @@ -80746,14 +84762,14 @@ export namespace GraphSync { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): GraphSync.GraphSyncRefsResult; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): GraphSync.GraphSyncRefsResult; /** * Verifies a GraphSyncRefsResult message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a GraphSyncRefsResult message from a plain object. Also converts values to their respective internal types. @@ -80768,7 +84784,10 @@ export namespace GraphSync { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: GraphSync.GraphSyncRefsResult, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: GraphSync.GraphSyncRefsResult, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this GraphSyncRefsResult to JSON. @@ -80787,26 +84806,23 @@ export namespace GraphSync { /** Namespace Upsell. */ export namespace Upsell { - /** Properties of an UpsellRequest. */ interface IUpsellRequest { - /** UpsellRequest email */ - email?: (string|null); + email?: string | null; /** UpsellRequest locale */ - locale?: (string|null); + locale?: string | null; /** UpsellRequest clientVersion */ - clientVersion?: (string|null); + clientVersion?: string | null; /** UpsellRequest sessionToken */ - sessionToken?: (string|null); + sessionToken?: string | null; } /** Represents an UpsellRequest. */ class UpsellRequest implements IUpsellRequest { - /** * Constructs a new UpsellRequest. * @param [properties] Properties to set @@ -80856,7 +84872,7 @@ export namespace Upsell { * @throws {Error} If the payload is 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): Upsell.UpsellRequest; /** * Decodes an UpsellRequest message from the specified reader or buffer, length delimited. @@ -80865,14 +84881,14 @@ export namespace Upsell { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Upsell.UpsellRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Upsell.UpsellRequest; /** * Verifies an UpsellRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an UpsellRequest message from a plain object. Also converts values to their respective internal types. @@ -80887,7 +84903,10 @@ export namespace Upsell { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Upsell.UpsellRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Upsell.UpsellRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this UpsellRequest to JSON. @@ -80905,14 +84924,12 @@ export namespace Upsell { /** Properties of an UpsellResponse. */ interface IUpsellResponse { - /** UpsellResponse UpsellBanner */ - UpsellBanner?: (Upsell.IUpsellBanner[]|null); + UpsellBanner?: Upsell.IUpsellBanner[] | null; } /** Represents an UpsellResponse. */ class UpsellResponse implements IUpsellResponse { - /** * Constructs a new UpsellResponse. * @param [properties] Properties to set @@ -80953,7 +84970,7 @@ export namespace Upsell { * @throws {Error} If the payload is 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): Upsell.UpsellResponse; /** * Decodes an UpsellResponse message from the specified reader or buffer, length delimited. @@ -80962,14 +84979,14 @@ export namespace Upsell { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Upsell.UpsellResponse; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Upsell.UpsellResponse; /** * Verifies an UpsellResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an UpsellResponse message from a plain object. Also converts values to their respective internal types. @@ -80984,7 +85001,10 @@ export namespace Upsell { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Upsell.UpsellResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Upsell.UpsellResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this UpsellResponse to JSON. @@ -81002,32 +85022,30 @@ export namespace Upsell { /** Properties of an UpsellBanner. */ interface IUpsellBanner { - /** UpsellBanner bannerId */ - bannerId?: (number|null); + bannerId?: number | null; /** UpsellBanner bannerOkAction */ - bannerOkAction?: (string|null); + bannerOkAction?: string | null; /** UpsellBanner bannerOkButton */ - bannerOkButton?: (string|null); + bannerOkButton?: string | null; /** UpsellBanner bannerCancelAction */ - bannerCancelAction?: (string|null); + bannerCancelAction?: string | null; /** UpsellBanner bannerCancelButton */ - bannerCancelButton?: (string|null); + bannerCancelButton?: string | null; /** UpsellBanner bannerMessage */ - bannerMessage?: (string|null); + bannerMessage?: string | null; /** UpsellBanner locale */ - locale?: (string|null); + locale?: string | null; } /** Represents an UpsellBanner. */ class UpsellBanner implements IUpsellBanner { - /** * Constructs a new UpsellBanner. * @param [properties] Properties to set @@ -81086,7 +85104,7 @@ export namespace Upsell { * @throws {Error} If the payload is 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): Upsell.UpsellBanner; /** * Decodes an UpsellBanner message from the specified reader or buffer, length delimited. @@ -81095,14 +85113,14 @@ export namespace Upsell { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Upsell.UpsellBanner; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): Upsell.UpsellBanner; /** * Verifies an UpsellBanner message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an UpsellBanner message from a plain object. Also converts values to their respective internal types. @@ -81117,7 +85135,10 @@ export namespace Upsell { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: Upsell.UpsellBanner, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: Upsell.UpsellBanner, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this UpsellBanner to JSON. @@ -81140,7 +85161,7 @@ export namespace Upsell { ANDROID = 2, IOS = 3, MICROSOFT = 4, - WEBAPP = 5 + WEBAPP = 5, } /** ClientVersion enum. */ @@ -81148,13 +85169,12 @@ export namespace Upsell { DEFAULT_VERSION = 0, SUPPORTS_ALL = 1, BASEVERSION = 14, - ABOVERANGE = 15 + ABOVERANGE = 15, } } /** Namespace BI. */ export namespace BI { - /** Currency enum. */ enum Currency { UNKNOWN = 0, @@ -81163,25 +85183,23 @@ export namespace BI { JPY = 3, EUR = 4, AUD = 5, - CAD = 6 + CAD = 6, } /** Properties of a ValidateSessionTokenRequest. */ interface IValidateSessionTokenRequest { - /** ValidateSessionTokenRequest encryptedSessionToken */ - encryptedSessionToken?: (Uint8Array|null); + encryptedSessionToken?: Uint8Array | null; /** ValidateSessionTokenRequest returnMcEnterpiseIds */ - returnMcEnterpiseIds?: (boolean|null); + returnMcEnterpiseIds?: boolean | null; /** ValidateSessionTokenRequest ip */ - ip?: (string|null); + ip?: string | null; } /** Represents a ValidateSessionTokenRequest. */ class ValidateSessionTokenRequest implements IValidateSessionTokenRequest { - /** * Constructs a new ValidateSessionTokenRequest. * @param [properties] Properties to set @@ -81218,7 +85236,10 @@ export namespace BI { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: BI.IValidateSessionTokenRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: BI.IValidateSessionTokenRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a ValidateSessionTokenRequest message from the specified reader or buffer. @@ -81228,7 +85249,7 @@ export namespace BI { * @throws {Error} If the payload is 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): BI.ValidateSessionTokenRequest; /** * Decodes a ValidateSessionTokenRequest message from the specified reader or buffer, length delimited. @@ -81237,14 +85258,14 @@ export namespace BI { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BI.ValidateSessionTokenRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): BI.ValidateSessionTokenRequest; /** * Verifies a ValidateSessionTokenRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a ValidateSessionTokenRequest message from a plain object. Also converts values to their respective internal types. @@ -81259,7 +85280,10 @@ export namespace BI { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.ValidateSessionTokenRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: BI.ValidateSessionTokenRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this ValidateSessionTokenRequest to JSON. @@ -81277,35 +85301,33 @@ export namespace BI { /** Properties of a ValidateSessionTokenResponse. */ interface IValidateSessionTokenResponse { - /** ValidateSessionTokenResponse username */ - username?: (string|null); + username?: string | null; /** ValidateSessionTokenResponse userId */ - userId?: (number|null); + userId?: number | null; /** ValidateSessionTokenResponse enterpriseUserId */ - enterpriseUserId?: (number|Long|null); + enterpriseUserId?: number | Long | null; /** ValidateSessionTokenResponse status */ - status?: (BI.ValidateSessionTokenResponse.Status|null); + status?: BI.ValidateSessionTokenResponse.Status | null; /** ValidateSessionTokenResponse statusMessage */ - statusMessage?: (string|null); + statusMessage?: string | null; /** ValidateSessionTokenResponse mcEnterpriseIds */ - mcEnterpriseIds?: (number[]|null); + mcEnterpriseIds?: number[] | null; /** ValidateSessionTokenResponse hasMSPPermission */ - hasMSPPermission?: (boolean|null); + hasMSPPermission?: boolean | null; /** ValidateSessionTokenResponse deletedMcEnterpriseIds */ - deletedMcEnterpriseIds?: (number[]|null); + deletedMcEnterpriseIds?: number[] | null; } /** Represents a ValidateSessionTokenResponse. */ class ValidateSessionTokenResponse implements IValidateSessionTokenResponse { - /** * Constructs a new ValidateSessionTokenResponse. * @param [properties] Properties to set @@ -81319,7 +85341,7 @@ export namespace BI { public userId: number; /** ValidateSessionTokenResponse enterpriseUserId. */ - public enterpriseUserId: (number|Long); + public enterpriseUserId: number | Long; /** ValidateSessionTokenResponse status. */ public status: BI.ValidateSessionTokenResponse.Status; @@ -81357,7 +85379,10 @@ export namespace BI { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: BI.IValidateSessionTokenResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: BI.IValidateSessionTokenResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a ValidateSessionTokenResponse message from the specified reader or buffer. @@ -81367,7 +85392,7 @@ export namespace BI { * @throws {Error} If the payload is 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): BI.ValidateSessionTokenResponse; /** * Decodes a ValidateSessionTokenResponse message from the specified reader or buffer, length delimited. @@ -81376,14 +85401,14 @@ export namespace BI { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BI.ValidateSessionTokenResponse; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): BI.ValidateSessionTokenResponse; /** * Verifies a ValidateSessionTokenResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a ValidateSessionTokenResponse message from a plain object. Also converts values to their respective internal types. @@ -81398,7 +85423,10 @@ export namespace BI { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.ValidateSessionTokenResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: BI.ValidateSessionTokenResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this ValidateSessionTokenResponse to JSON. @@ -81415,24 +85443,21 @@ export namespace BI { } namespace ValidateSessionTokenResponse { - /** Status enum. */ enum Status { VALID = 0, NOT_VALID = 1, EXPIRED = 2, IP_BLOCKED = 3, - INVALID_CLIENT_VERSION = 4 + INVALID_CLIENT_VERSION = 4, } } /** Properties of a SubscriptionStatusRequest. */ - interface ISubscriptionStatusRequest { - } + interface ISubscriptionStatusRequest {} /** Represents a SubscriptionStatusRequest. */ class SubscriptionStatusRequest implements ISubscriptionStatusRequest { - /** * Constructs a new SubscriptionStatusRequest. * @param [properties] Properties to set @@ -81460,7 +85485,10 @@ export namespace BI { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: BI.ISubscriptionStatusRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: BI.ISubscriptionStatusRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a SubscriptionStatusRequest message from the specified reader or buffer. @@ -81470,7 +85498,7 @@ export namespace BI { * @throws {Error} If the payload is 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): BI.SubscriptionStatusRequest; /** * Decodes a SubscriptionStatusRequest message from the specified reader or buffer, length delimited. @@ -81479,14 +85507,14 @@ export namespace BI { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BI.SubscriptionStatusRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): BI.SubscriptionStatusRequest; /** * Verifies a SubscriptionStatusRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a SubscriptionStatusRequest message from a plain object. Also converts values to their respective internal types. @@ -81501,7 +85529,10 @@ export namespace BI { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.SubscriptionStatusRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: BI.SubscriptionStatusRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this SubscriptionStatusRequest to JSON. @@ -81519,47 +85550,45 @@ export namespace BI { /** Properties of a SubscriptionStatusResponse. */ interface ISubscriptionStatusResponse { - /** SubscriptionStatusResponse autoRenewal */ - autoRenewal?: (BI.IAutoRenewal|null); + autoRenewal?: BI.IAutoRenewal | null; /** SubscriptionStatusResponse currentPaymentMethod */ - currentPaymentMethod?: (BI.IPaymentMethod|null); + currentPaymentMethod?: BI.IPaymentMethod | null; /** SubscriptionStatusResponse checkoutLink */ - checkoutLink?: (string|null); + checkoutLink?: string | null; /** SubscriptionStatusResponse licenseCreateDate */ - licenseCreateDate?: (number|Long|null); + licenseCreateDate?: number | Long | null; /** SubscriptionStatusResponse isDistributor */ - isDistributor?: (boolean|null); + isDistributor?: boolean | null; /** SubscriptionStatusResponse isLegacyMsp */ - isLegacyMsp?: (boolean|null); + isLegacyMsp?: boolean | null; /** SubscriptionStatusResponse licenseStats */ - licenseStats?: (BI.ILicenseStats[]|null); + licenseStats?: BI.ILicenseStats[] | null; /** SubscriptionStatusResponse gradientStatus */ - gradientStatus?: (BI.GradientIntegrationStatus|null); + gradientStatus?: BI.GradientIntegrationStatus | null; /** SubscriptionStatusResponse hideTrialBanner */ - hideTrialBanner?: (boolean|null); + hideTrialBanner?: boolean | null; /** SubscriptionStatusResponse gradientLastSyncDate */ - gradientLastSyncDate?: (string|null); + gradientLastSyncDate?: string | null; /** SubscriptionStatusResponse gradientNextSyncDate */ - gradientNextSyncDate?: (string|null); + gradientNextSyncDate?: string | null; /** SubscriptionStatusResponse isGradientMappingPending */ - isGradientMappingPending?: (boolean|null); + isGradientMappingPending?: boolean | null; } /** Represents a SubscriptionStatusResponse. */ class SubscriptionStatusResponse implements ISubscriptionStatusResponse { - /** * Constructs a new SubscriptionStatusResponse. * @param [properties] Properties to set @@ -81567,16 +85596,16 @@ export namespace BI { constructor(properties?: BI.ISubscriptionStatusResponse); /** SubscriptionStatusResponse autoRenewal. */ - public autoRenewal?: (BI.IAutoRenewal|null); + public autoRenewal?: BI.IAutoRenewal | null; /** SubscriptionStatusResponse currentPaymentMethod. */ - public currentPaymentMethod?: (BI.IPaymentMethod|null); + public currentPaymentMethod?: BI.IPaymentMethod | null; /** SubscriptionStatusResponse checkoutLink. */ public checkoutLink: string; /** SubscriptionStatusResponse licenseCreateDate. */ - public licenseCreateDate: (number|Long); + public licenseCreateDate: number | Long; /** SubscriptionStatusResponse isDistributor. */ public isDistributor: boolean; @@ -81623,7 +85652,10 @@ export namespace BI { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: BI.ISubscriptionStatusResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: BI.ISubscriptionStatusResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a SubscriptionStatusResponse message from the specified reader or buffer. @@ -81633,7 +85665,7 @@ export namespace BI { * @throws {Error} If the payload is 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): BI.SubscriptionStatusResponse; /** * Decodes a SubscriptionStatusResponse message from the specified reader or buffer, length delimited. @@ -81642,14 +85674,14 @@ export namespace BI { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BI.SubscriptionStatusResponse; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): BI.SubscriptionStatusResponse; /** * Verifies a SubscriptionStatusResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a SubscriptionStatusResponse message from a plain object. Also converts values to their respective internal types. @@ -81664,7 +85696,10 @@ export namespace BI { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.SubscriptionStatusResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: BI.SubscriptionStatusResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this SubscriptionStatusResponse to JSON. @@ -81682,20 +85717,18 @@ export namespace BI { /** Properties of a LicenseStats. */ interface ILicenseStats { - /** LicenseStats type */ - type?: (BI.LicenseStats.Type|null); + type?: BI.LicenseStats.Type | null; /** LicenseStats available */ - available?: (number|null); + available?: number | null; /** LicenseStats used */ - used?: (number|null); + used?: number | null; } /** Represents a LicenseStats. */ class LicenseStats implements ILicenseStats { - /** * Constructs a new LicenseStats. * @param [properties] Properties to set @@ -81742,7 +85775,7 @@ export namespace BI { * @throws {Error} If the payload is 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): BI.LicenseStats; /** * Decodes a LicenseStats message from the specified reader or buffer, length delimited. @@ -81751,14 +85784,14 @@ export namespace BI { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BI.LicenseStats; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): BI.LicenseStats; /** * Verifies a LicenseStats message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a LicenseStats message from a plain object. Also converts values to their respective internal types. @@ -81790,7 +85823,6 @@ export namespace BI { } namespace LicenseStats { - /** Type enum. */ enum Type { LICENSE_STAT_UNKNOWN = 0, @@ -81801,26 +85833,24 @@ export namespace BI { MC_ENTERPRISE_PLUS = 5, B2B_BUSINESS_STARTER = 6, B2B_BUSINESS = 7, - B2B_ENTERPRISE = 8 + B2B_ENTERPRISE = 8, } } /** Properties of an AutoRenewal. */ interface IAutoRenewal { - /** AutoRenewal nextOn */ - nextOn?: (number|Long|null); + nextOn?: number | Long | null; /** AutoRenewal daysLeft */ - daysLeft?: (number|null); + daysLeft?: number | null; /** AutoRenewal isTrial */ - isTrial?: (boolean|null); + isTrial?: boolean | null; } /** Represents an AutoRenewal. */ class AutoRenewal implements IAutoRenewal { - /** * Constructs a new AutoRenewal. * @param [properties] Properties to set @@ -81828,7 +85858,7 @@ export namespace BI { constructor(properties?: BI.IAutoRenewal); /** AutoRenewal nextOn. */ - public nextOn: (number|Long); + public nextOn: number | Long; /** AutoRenewal daysLeft. */ public daysLeft: number; @@ -81867,7 +85897,7 @@ export namespace BI { * @throws {Error} If the payload is 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): BI.AutoRenewal; /** * Decodes an AutoRenewal message from the specified reader or buffer, length delimited. @@ -81876,14 +85906,14 @@ export namespace BI { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BI.AutoRenewal; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): BI.AutoRenewal; /** * Verifies an AutoRenewal message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an AutoRenewal message from a plain object. Also converts values to their respective internal types. @@ -81916,32 +85946,30 @@ export namespace BI { /** Properties of a PaymentMethod. */ interface IPaymentMethod { - /** PaymentMethod type */ - type?: (BI.PaymentMethod.Type|null); + type?: BI.PaymentMethod.Type | null; /** PaymentMethod card */ - card?: (BI.PaymentMethod.ICard|null); + card?: BI.PaymentMethod.ICard | null; /** PaymentMethod sepa */ - sepa?: (BI.PaymentMethod.ISepa|null); + sepa?: BI.PaymentMethod.ISepa | null; /** PaymentMethod paypal */ - paypal?: (BI.PaymentMethod.IPaypal|null); + paypal?: BI.PaymentMethod.IPaypal | null; /** PaymentMethod failedBilling */ - failedBilling?: (boolean|null); + failedBilling?: boolean | null; /** PaymentMethod vendor */ - vendor?: (BI.PaymentMethod.IVendor|null); + vendor?: BI.PaymentMethod.IVendor | null; /** PaymentMethod purchaseOrder */ - purchaseOrder?: (BI.PaymentMethod.IPurchaseOrder|null); + purchaseOrder?: BI.PaymentMethod.IPurchaseOrder | null; } /** Represents a PaymentMethod. */ class PaymentMethod implements IPaymentMethod { - /** * Constructs a new PaymentMethod. * @param [properties] Properties to set @@ -81952,22 +85980,22 @@ export namespace BI { public type: BI.PaymentMethod.Type; /** PaymentMethod card. */ - public card?: (BI.PaymentMethod.ICard|null); + public card?: BI.PaymentMethod.ICard | null; /** PaymentMethod sepa. */ - public sepa?: (BI.PaymentMethod.ISepa|null); + public sepa?: BI.PaymentMethod.ISepa | null; /** PaymentMethod paypal. */ - public paypal?: (BI.PaymentMethod.IPaypal|null); + public paypal?: BI.PaymentMethod.IPaypal | null; /** PaymentMethod failedBilling. */ public failedBilling: boolean; /** PaymentMethod vendor. */ - public vendor?: (BI.PaymentMethod.IVendor|null); + public vendor?: BI.PaymentMethod.IVendor | null; /** PaymentMethod purchaseOrder. */ - public purchaseOrder?: (BI.PaymentMethod.IPurchaseOrder|null); + public purchaseOrder?: BI.PaymentMethod.IPurchaseOrder | null; /** * Creates a new PaymentMethod instance using the specified properties. @@ -82000,7 +86028,7 @@ export namespace BI { * @throws {Error} If the payload is 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): BI.PaymentMethod; /** * Decodes a PaymentMethod message from the specified reader or buffer, length delimited. @@ -82009,14 +86037,14 @@ export namespace BI { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BI.PaymentMethod; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): BI.PaymentMethod; /** * Verifies a PaymentMethod message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a PaymentMethod message from a plain object. Also converts values to their respective internal types. @@ -82048,7 +86076,6 @@ export namespace BI { } namespace PaymentMethod { - /** Type enum. */ enum Type { CARD = 0, @@ -82056,22 +86083,20 @@ export namespace BI { PAYPAL = 2, NONE = 3, VENDOR = 4, - PURCHASEORDER = 5 + PURCHASEORDER = 5, } /** Properties of a Card. */ interface ICard { - /** Card last4 */ - last4?: (string|null); + last4?: string | null; /** Card brand */ - brand?: (string|null); + brand?: string | null; } /** Represents a Card. */ class Card implements ICard { - /** * Constructs a new Card. * @param [properties] Properties to set @@ -82115,7 +86140,7 @@ export namespace BI { * @throws {Error} If the payload is 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; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): BI.PaymentMethod.Card; /** * Decodes a Card message from the specified reader or buffer, length delimited. @@ -82124,14 +86149,14 @@ export namespace BI { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BI.PaymentMethod.Card; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): BI.PaymentMethod.Card; /** * Verifies a Card message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a Card message from a plain object. Also converts values to their respective internal types. @@ -82146,7 +86171,10 @@ export namespace BI { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.PaymentMethod.Card, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: BI.PaymentMethod.Card, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this Card to JSON. @@ -82164,17 +86192,15 @@ export namespace BI { /** Properties of a Sepa. */ interface ISepa { - /** Sepa last4 */ - last4?: (string|null); + last4?: string | null; /** Sepa country */ - country?: (string|null); + country?: string | null; } /** Represents a Sepa. */ class Sepa implements ISepa { - /** * Constructs a new Sepa. * @param [properties] Properties to set @@ -82218,7 +86244,7 @@ export namespace BI { * @throws {Error} If the payload is 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; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): BI.PaymentMethod.Sepa; /** * Decodes a Sepa message from the specified reader or buffer, length delimited. @@ -82227,14 +86253,14 @@ export namespace BI { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BI.PaymentMethod.Sepa; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): BI.PaymentMethod.Sepa; /** * Verifies a Sepa message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a Sepa message from a plain object. Also converts values to their respective internal types. @@ -82249,7 +86275,10 @@ export namespace BI { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.PaymentMethod.Sepa, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: BI.PaymentMethod.Sepa, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this Sepa to JSON. @@ -82266,12 +86295,10 @@ export namespace BI { } /** Properties of a Paypal. */ - interface IPaypal { - } + interface IPaypal {} /** Represents a Paypal. */ class Paypal implements IPaypal { - /** * Constructs a new Paypal. * @param [properties] Properties to set @@ -82299,7 +86326,10 @@ export namespace BI { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: BI.PaymentMethod.IPaypal, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: BI.PaymentMethod.IPaypal, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a Paypal message from the specified reader or buffer. @@ -82309,7 +86339,7 @@ export namespace BI { * @throws {Error} If the payload is 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; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): BI.PaymentMethod.Paypal; /** * Decodes a Paypal message from the specified reader or buffer, length delimited. @@ -82318,14 +86348,14 @@ export namespace BI { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BI.PaymentMethod.Paypal; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): BI.PaymentMethod.Paypal; /** * Verifies a Paypal message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a Paypal message from a plain object. Also converts values to their respective internal types. @@ -82340,7 +86370,10 @@ export namespace BI { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.PaymentMethod.Paypal, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: BI.PaymentMethod.Paypal, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this Paypal to JSON. @@ -82358,14 +86391,12 @@ export namespace BI { /** Properties of a Vendor. */ interface IVendor { - /** Vendor name */ - name?: (string|null); + name?: string | null; } /** Represents a Vendor. */ class Vendor implements IVendor { - /** * Constructs a new Vendor. * @param [properties] Properties to set @@ -82396,7 +86427,10 @@ export namespace BI { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: BI.PaymentMethod.IVendor, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: BI.PaymentMethod.IVendor, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a Vendor message from the specified reader or buffer. @@ -82406,7 +86440,7 @@ export namespace BI { * @throws {Error} If the payload is 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; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): BI.PaymentMethod.Vendor; /** * Decodes a Vendor message from the specified reader or buffer, length delimited. @@ -82415,14 +86449,14 @@ export namespace BI { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BI.PaymentMethod.Vendor; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): BI.PaymentMethod.Vendor; /** * Verifies a Vendor message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a Vendor message from a plain object. Also converts values to their respective internal types. @@ -82437,7 +86471,10 @@ export namespace BI { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.PaymentMethod.Vendor, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: BI.PaymentMethod.Vendor, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this Vendor to JSON. @@ -82455,14 +86492,12 @@ export namespace BI { /** Properties of a PurchaseOrder. */ interface IPurchaseOrder { - /** PurchaseOrder name */ - name?: (string|null); + name?: string | null; } /** Represents a PurchaseOrder. */ class PurchaseOrder implements IPurchaseOrder { - /** * Constructs a new PurchaseOrder. * @param [properties] Properties to set @@ -82493,7 +86528,10 @@ export namespace BI { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: BI.PaymentMethod.IPurchaseOrder, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: BI.PaymentMethod.IPurchaseOrder, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a PurchaseOrder message from the specified reader or buffer. @@ -82503,7 +86541,10 @@ export namespace BI { * @throws {Error} If the payload is 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; + public static decode( + reader: $protobuf.Reader | Uint8Array, + length?: number + ): BI.PaymentMethod.PurchaseOrder; /** * Decodes a PurchaseOrder message from the specified reader or buffer, length delimited. @@ -82512,14 +86553,14 @@ export namespace BI { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BI.PaymentMethod.PurchaseOrder; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): BI.PaymentMethod.PurchaseOrder; /** * Verifies a PurchaseOrder message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a PurchaseOrder message from a plain object. Also converts values to their respective internal types. @@ -82534,7 +86575,10 @@ export namespace BI { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.PaymentMethod.PurchaseOrder, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: BI.PaymentMethod.PurchaseOrder, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this PurchaseOrder to JSON. @@ -82552,12 +86596,10 @@ export namespace BI { } /** Properties of a SubscriptionMspPricingRequest. */ - interface ISubscriptionMspPricingRequest { - } + interface ISubscriptionMspPricingRequest {} /** Represents a SubscriptionMspPricingRequest. */ class SubscriptionMspPricingRequest implements ISubscriptionMspPricingRequest { - /** * Constructs a new SubscriptionMspPricingRequest. * @param [properties] Properties to set @@ -82585,7 +86627,10 @@ export namespace BI { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: BI.ISubscriptionMspPricingRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: BI.ISubscriptionMspPricingRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a SubscriptionMspPricingRequest message from the specified reader or buffer. @@ -82595,7 +86640,7 @@ export namespace BI { * @throws {Error} If the payload is 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): BI.SubscriptionMspPricingRequest; /** * Decodes a SubscriptionMspPricingRequest message from the specified reader or buffer, length delimited. @@ -82604,14 +86649,14 @@ export namespace BI { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BI.SubscriptionMspPricingRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): BI.SubscriptionMspPricingRequest; /** * Verifies a SubscriptionMspPricingRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a SubscriptionMspPricingRequest message from a plain object. Also converts values to their respective internal types. @@ -82626,7 +86671,10 @@ export namespace BI { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.SubscriptionMspPricingRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: BI.SubscriptionMspPricingRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this SubscriptionMspPricingRequest to JSON. @@ -82644,17 +86692,15 @@ export namespace BI { /** Properties of a SubscriptionMspPricingResponse. */ interface ISubscriptionMspPricingResponse { - /** SubscriptionMspPricingResponse addons */ - addons?: (BI.IAddon[]|null); + addons?: BI.IAddon[] | null; /** SubscriptionMspPricingResponse filePlans */ - filePlans?: (BI.IFilePlan[]|null); + filePlans?: BI.IFilePlan[] | null; } /** Represents a SubscriptionMspPricingResponse. */ class SubscriptionMspPricingResponse implements ISubscriptionMspPricingResponse { - /** * Constructs a new SubscriptionMspPricingResponse. * @param [properties] Properties to set @@ -82688,7 +86734,10 @@ export namespace BI { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: BI.ISubscriptionMspPricingResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: BI.ISubscriptionMspPricingResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a SubscriptionMspPricingResponse message from the specified reader or buffer. @@ -82698,7 +86747,7 @@ export namespace BI { * @throws {Error} If the payload is 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): BI.SubscriptionMspPricingResponse; /** * Decodes a SubscriptionMspPricingResponse message from the specified reader or buffer, length delimited. @@ -82707,14 +86756,14 @@ export namespace BI { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BI.SubscriptionMspPricingResponse; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): BI.SubscriptionMspPricingResponse; /** * Verifies a SubscriptionMspPricingResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a SubscriptionMspPricingResponse message from a plain object. Also converts values to their respective internal types. @@ -82729,7 +86778,10 @@ export namespace BI { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.SubscriptionMspPricingResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: BI.SubscriptionMspPricingResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this SubscriptionMspPricingResponse to JSON. @@ -82746,12 +86798,10 @@ export namespace BI { } /** Properties of a SubscriptionMcPricingRequest. */ - interface ISubscriptionMcPricingRequest { - } + interface ISubscriptionMcPricingRequest {} /** Represents a SubscriptionMcPricingRequest. */ class SubscriptionMcPricingRequest implements ISubscriptionMcPricingRequest { - /** * Constructs a new SubscriptionMcPricingRequest. * @param [properties] Properties to set @@ -82779,7 +86829,10 @@ export namespace BI { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: BI.ISubscriptionMcPricingRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: BI.ISubscriptionMcPricingRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a SubscriptionMcPricingRequest message from the specified reader or buffer. @@ -82789,7 +86842,7 @@ export namespace BI { * @throws {Error} If the payload is 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): BI.SubscriptionMcPricingRequest; /** * Decodes a SubscriptionMcPricingRequest message from the specified reader or buffer, length delimited. @@ -82798,14 +86851,14 @@ export namespace BI { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BI.SubscriptionMcPricingRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): BI.SubscriptionMcPricingRequest; /** * Verifies a SubscriptionMcPricingRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a SubscriptionMcPricingRequest message from a plain object. Also converts values to their respective internal types. @@ -82820,7 +86873,10 @@ export namespace BI { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.SubscriptionMcPricingRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: BI.SubscriptionMcPricingRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this SubscriptionMcPricingRequest to JSON. @@ -82838,20 +86894,18 @@ export namespace BI { /** Properties of a SubscriptionMcPricingResponse. */ interface ISubscriptionMcPricingResponse { - /** SubscriptionMcPricingResponse basePlans */ - basePlans?: (BI.IBasePlan[]|null); + basePlans?: BI.IBasePlan[] | null; /** SubscriptionMcPricingResponse addons */ - addons?: (BI.IAddon[]|null); + addons?: BI.IAddon[] | null; /** SubscriptionMcPricingResponse filePlans */ - filePlans?: (BI.IFilePlan[]|null); + filePlans?: BI.IFilePlan[] | null; } /** Represents a SubscriptionMcPricingResponse. */ class SubscriptionMcPricingResponse implements ISubscriptionMcPricingResponse { - /** * Constructs a new SubscriptionMcPricingResponse. * @param [properties] Properties to set @@ -82888,7 +86942,10 @@ export namespace BI { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: BI.ISubscriptionMcPricingResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: BI.ISubscriptionMcPricingResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a SubscriptionMcPricingResponse message from the specified reader or buffer. @@ -82898,7 +86955,7 @@ export namespace BI { * @throws {Error} If the payload is 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): BI.SubscriptionMcPricingResponse; /** * Decodes a SubscriptionMcPricingResponse message from the specified reader or buffer, length delimited. @@ -82907,14 +86964,14 @@ export namespace BI { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BI.SubscriptionMcPricingResponse; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): BI.SubscriptionMcPricingResponse; /** * Verifies a SubscriptionMcPricingResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a SubscriptionMcPricingResponse message from a plain object. Also converts values to their respective internal types. @@ -82929,7 +86986,10 @@ export namespace BI { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.SubscriptionMcPricingResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: BI.SubscriptionMcPricingResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this SubscriptionMcPricingResponse to JSON. @@ -82947,17 +87007,15 @@ export namespace BI { /** Properties of a BasePlan. */ interface IBasePlan { - /** BasePlan id */ - id?: (number|null); + id?: number | null; /** BasePlan cost */ - cost?: (BI.ICost|null); + cost?: BI.ICost | null; } /** Represents a BasePlan. */ class BasePlan implements IBasePlan { - /** * Constructs a new BasePlan. * @param [properties] Properties to set @@ -82968,7 +87026,7 @@ export namespace BI { public id: number; /** BasePlan cost. */ - public cost?: (BI.ICost|null); + public cost?: BI.ICost | null; /** * Creates a new BasePlan instance using the specified properties. @@ -83001,7 +87059,7 @@ export namespace BI { * @throws {Error} If the payload is 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): BI.BasePlan; /** * Decodes a BasePlan message from the specified reader or buffer, length delimited. @@ -83010,14 +87068,14 @@ export namespace BI { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BI.BasePlan; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): BI.BasePlan; /** * Verifies a BasePlan message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a BasePlan message from a plain object. Also converts values to their respective internal types. @@ -83050,20 +87108,18 @@ export namespace BI { /** Properties of an Addon. */ interface IAddon { - /** Addon id */ - id?: (number|null); + id?: number | null; /** Addon cost */ - cost?: (BI.ICost|null); + cost?: BI.ICost | null; /** Addon amountConsumed */ - amountConsumed?: (number|Long|null); + amountConsumed?: number | Long | null; } /** Represents an Addon. */ class Addon implements IAddon { - /** * Constructs a new Addon. * @param [properties] Properties to set @@ -83074,10 +87130,10 @@ export namespace BI { public id: number; /** Addon cost. */ - public cost?: (BI.ICost|null); + public cost?: BI.ICost | null; /** Addon amountConsumed. */ - public amountConsumed: (number|Long); + public amountConsumed: number | Long; /** * Creates a new Addon instance using the specified properties. @@ -83110,7 +87166,7 @@ export namespace BI { * @throws {Error} If the payload is 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): BI.Addon; /** * Decodes an Addon message from the specified reader or buffer, length delimited. @@ -83119,14 +87175,14 @@ export namespace BI { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BI.Addon; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): BI.Addon; /** * Verifies an Addon message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an Addon message from a plain object. Also converts values to their respective internal types. @@ -83159,17 +87215,15 @@ export namespace BI { /** Properties of a FilePlan. */ interface IFilePlan { - /** FilePlan id */ - id?: (number|null); + id?: number | null; /** FilePlan cost */ - cost?: (BI.ICost|null); + cost?: BI.ICost | null; } /** Represents a FilePlan. */ class FilePlan implements IFilePlan { - /** * Constructs a new FilePlan. * @param [properties] Properties to set @@ -83180,7 +87234,7 @@ export namespace BI { public id: number; /** FilePlan cost. */ - public cost?: (BI.ICost|null); + public cost?: BI.ICost | null; /** * Creates a new FilePlan instance using the specified properties. @@ -83213,7 +87267,7 @@ export namespace BI { * @throws {Error} If the payload is 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): BI.FilePlan; /** * Decodes a FilePlan message from the specified reader or buffer, length delimited. @@ -83222,14 +87276,14 @@ export namespace BI { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BI.FilePlan; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): BI.FilePlan; /** * Verifies a FilePlan message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a FilePlan message from a plain object. Also converts values to their respective internal types. @@ -83262,20 +87316,18 @@ export namespace BI { /** Properties of a Cost. */ interface ICost { - /** Cost amount */ - amount?: (number|null); + amount?: number | null; /** Cost amountPer */ - amountPer?: (BI.Cost.AmountPer|null); + amountPer?: BI.Cost.AmountPer | null; /** Cost currency */ - currency?: (BI.Currency|null); + currency?: BI.Currency | null; } /** Represents a Cost. */ class Cost implements ICost { - /** * Constructs a new Cost. * @param [properties] Properties to set @@ -83322,7 +87374,7 @@ export namespace BI { * @throws {Error} If the payload is 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): BI.Cost; /** * Decodes a Cost message from the specified reader or buffer, length delimited. @@ -83331,14 +87383,14 @@ export namespace BI { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BI.Cost; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): BI.Cost; /** * Verifies a Cost message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a Cost message from a plain object. Also converts values to their respective internal types. @@ -83370,7 +87422,6 @@ export namespace BI { } namespace Cost { - /** AmountPer enum. */ enum AmountPer { UNKNOWN = 0, @@ -83381,26 +87432,24 @@ export namespace BI { USER_YEAR = 5, USER_CONSUMED_YEAR = 6, YEAR = 7, - ENDPOINT_YEAR = 8 + ENDPOINT_YEAR = 8, } } /** Properties of an InvoiceSearchRequest. */ interface IInvoiceSearchRequest { - /** InvoiceSearchRequest size */ - size?: (number|null); + size?: number | null; /** InvoiceSearchRequest startingAfterId */ - startingAfterId?: (number|null); + startingAfterId?: number | null; /** InvoiceSearchRequest allInvoicesUnfiltered */ - allInvoicesUnfiltered?: (boolean|null); + allInvoicesUnfiltered?: boolean | null; } /** Represents an InvoiceSearchRequest. */ class InvoiceSearchRequest implements IInvoiceSearchRequest { - /** * Constructs a new InvoiceSearchRequest. * @param [properties] Properties to set @@ -83447,7 +87496,7 @@ export namespace BI { * @throws {Error} If the payload is 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): BI.InvoiceSearchRequest; /** * Decodes an InvoiceSearchRequest message from the specified reader or buffer, length delimited. @@ -83456,14 +87505,14 @@ export namespace BI { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BI.InvoiceSearchRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): BI.InvoiceSearchRequest; /** * Verifies an InvoiceSearchRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an InvoiceSearchRequest message from a plain object. Also converts values to their respective internal types. @@ -83478,7 +87527,10 @@ export namespace BI { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.InvoiceSearchRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: BI.InvoiceSearchRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this InvoiceSearchRequest to JSON. @@ -83496,14 +87548,12 @@ export namespace BI { /** Properties of an InvoiceSearchResponse. */ interface IInvoiceSearchResponse { - /** InvoiceSearchResponse invoices */ - invoices?: (BI.IInvoice[]|null); + invoices?: BI.IInvoice[] | null; } /** Represents an InvoiceSearchResponse. */ class InvoiceSearchResponse implements IInvoiceSearchResponse { - /** * Constructs a new InvoiceSearchResponse. * @param [properties] Properties to set @@ -83544,7 +87594,7 @@ export namespace BI { * @throws {Error} If the payload is 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.InvoiceSearchResponse; /** * Decodes an InvoiceSearchResponse message from the specified reader or buffer, length delimited. @@ -83553,14 +87603,14 @@ export namespace BI { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BI.InvoiceSearchResponse; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): BI.InvoiceSearchResponse; /** * Verifies an InvoiceSearchResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an InvoiceSearchResponse message from a plain object. Also converts values to their respective internal types. @@ -83575,7 +87625,10 @@ export namespace BI { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.InvoiceSearchResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: BI.InvoiceSearchResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this InvoiceSearchResponse to JSON. @@ -83593,29 +87646,27 @@ export namespace BI { /** Properties of an Invoice. */ interface IInvoice { - /** Invoice id */ - id?: (number|null); + id?: number | null; /** Invoice invoiceNumber */ - invoiceNumber?: (string|null); + invoiceNumber?: string | null; /** Invoice invoiceDate */ - invoiceDate?: (number|Long|null); + invoiceDate?: number | Long | null; /** Invoice licenseCount */ - licenseCount?: (number|null); + licenseCount?: number | null; /** Invoice totalCost */ - totalCost?: (BI.Invoice.ICost|null); + totalCost?: BI.Invoice.ICost | null; /** Invoice invoiceType */ - invoiceType?: (BI.Invoice.Type|null); + invoiceType?: BI.Invoice.Type | null; } /** Represents an Invoice. */ class Invoice implements IInvoice { - /** * Constructs a new Invoice. * @param [properties] Properties to set @@ -83629,13 +87680,13 @@ export namespace BI { public invoiceNumber: string; /** Invoice invoiceDate. */ - public invoiceDate: (number|Long); + public invoiceDate: number | Long; /** Invoice licenseCount. */ public licenseCount: number; /** Invoice totalCost. */ - public totalCost?: (BI.Invoice.ICost|null); + public totalCost?: BI.Invoice.ICost | null; /** Invoice invoiceType. */ public invoiceType: BI.Invoice.Type; @@ -83671,7 +87722,7 @@ export namespace BI { * @throws {Error} If the payload is 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.Invoice; /** * Decodes an Invoice message from the specified reader or buffer, length delimited. @@ -83680,14 +87731,14 @@ export namespace BI { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BI.Invoice; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): BI.Invoice; /** * Verifies an Invoice message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an Invoice message from a plain object. Also converts values to their respective internal types. @@ -83719,20 +87770,17 @@ export namespace BI { } namespace Invoice { - /** Properties of a Cost. */ interface ICost { - /** Cost amount */ - amount?: (number|null); + amount?: number | null; /** Cost currency */ - currency?: (BI.Currency|null); + currency?: BI.Currency | null; } /** Represents a Cost. */ class Cost implements ICost { - /** * Constructs a new Cost. * @param [properties] Properties to set @@ -83776,7 +87824,7 @@ export namespace BI { * @throws {Error} If the payload is 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; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): BI.Invoice.Cost; /** * Decodes a Cost message from the specified reader or buffer, length delimited. @@ -83785,14 +87833,14 @@ export namespace BI { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BI.Invoice.Cost; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): BI.Invoice.Cost; /** * Verifies a Cost message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a Cost message from a plain object. Also converts values to their respective internal types. @@ -83807,7 +87855,10 @@ export namespace BI { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.Invoice.Cost, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: BI.Invoice.Cost, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this Cost to JSON. @@ -83831,17 +87882,15 @@ export namespace BI { UPGRADE = 3, RESTORE = 4, ASSOCIATION = 5, - OVERAGE = 6 + OVERAGE = 6, } } /** Properties of a VaultInvoicesListRequest. */ - interface IVaultInvoicesListRequest { - } + interface IVaultInvoicesListRequest {} /** Represents a VaultInvoicesListRequest. */ class VaultInvoicesListRequest implements IVaultInvoicesListRequest { - /** * Constructs a new VaultInvoicesListRequest. * @param [properties] Properties to set @@ -83869,7 +87918,10 @@ export namespace BI { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: BI.IVaultInvoicesListRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: BI.IVaultInvoicesListRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a VaultInvoicesListRequest message from the specified reader or buffer. @@ -83879,7 +87931,7 @@ export namespace BI { * @throws {Error} If the payload is 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.VaultInvoicesListRequest; /** * Decodes a VaultInvoicesListRequest message from the specified reader or buffer, length delimited. @@ -83888,14 +87940,14 @@ export namespace BI { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BI.VaultInvoicesListRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): BI.VaultInvoicesListRequest; /** * Verifies a VaultInvoicesListRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a VaultInvoicesListRequest message from a plain object. Also converts values to their respective internal types. @@ -83910,7 +87962,10 @@ export namespace BI { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.VaultInvoicesListRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: BI.VaultInvoicesListRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this VaultInvoicesListRequest to JSON. @@ -83928,14 +87983,12 @@ export namespace BI { /** Properties of a VaultInvoicesListResponse. */ interface IVaultInvoicesListResponse { - /** VaultInvoicesListResponse invoices */ - invoices?: (BI.IVaultInvoice[]|null); + invoices?: BI.IVaultInvoice[] | null; } /** Represents a VaultInvoicesListResponse. */ class VaultInvoicesListResponse implements IVaultInvoicesListResponse { - /** * Constructs a new VaultInvoicesListResponse. * @param [properties] Properties to set @@ -83966,7 +88019,10 @@ export namespace BI { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: BI.IVaultInvoicesListResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: BI.IVaultInvoicesListResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a VaultInvoicesListResponse message from the specified reader or buffer. @@ -83976,7 +88032,7 @@ export namespace BI { * @throws {Error} If the payload is 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.VaultInvoicesListResponse; /** * Decodes a VaultInvoicesListResponse message from the specified reader or buffer, length delimited. @@ -83985,14 +88041,14 @@ export namespace BI { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BI.VaultInvoicesListResponse; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): BI.VaultInvoicesListResponse; /** * Verifies a VaultInvoicesListResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a VaultInvoicesListResponse message from a plain object. Also converts values to their respective internal types. @@ -84007,7 +88063,10 @@ export namespace BI { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.VaultInvoicesListResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: BI.VaultInvoicesListResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this VaultInvoicesListResponse to JSON. @@ -84025,26 +88084,24 @@ export namespace BI { /** Properties of a VaultInvoice. */ interface IVaultInvoice { - /** VaultInvoice id */ - id?: (number|null); + id?: number | null; /** VaultInvoice invoiceNumber */ - invoiceNumber?: (string|null); + invoiceNumber?: string | null; /** VaultInvoice dateCreated */ - dateCreated?: (number|Long|null); + dateCreated?: number | Long | null; /** VaultInvoice total */ - total?: (BI.Invoice.ICost|null); + total?: BI.Invoice.ICost | null; /** VaultInvoice purchaseType */ - purchaseType?: (BI.Invoice.Type|null); + purchaseType?: BI.Invoice.Type | null; } /** Represents a VaultInvoice. */ class VaultInvoice implements IVaultInvoice { - /** * Constructs a new VaultInvoice. * @param [properties] Properties to set @@ -84058,10 +88115,10 @@ export namespace BI { public invoiceNumber: string; /** VaultInvoice dateCreated. */ - public dateCreated: (number|Long); + public dateCreated: number | Long; /** VaultInvoice total. */ - public total?: (BI.Invoice.ICost|null); + public total?: BI.Invoice.ICost | null; /** VaultInvoice purchaseType. */ public purchaseType: BI.Invoice.Type; @@ -84097,7 +88154,7 @@ export namespace BI { * @throws {Error} If the payload is 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.VaultInvoice; /** * Decodes a VaultInvoice message from the specified reader or buffer, length delimited. @@ -84106,14 +88163,14 @@ export namespace BI { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BI.VaultInvoice; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): BI.VaultInvoice; /** * Verifies a VaultInvoice message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a VaultInvoice message from a plain object. Also converts values to their respective internal types. @@ -84146,14 +88203,12 @@ export namespace BI { /** Properties of an InvoiceDownloadRequest. */ interface IInvoiceDownloadRequest { - /** InvoiceDownloadRequest invoiceNumber */ - invoiceNumber?: (string|null); + invoiceNumber?: string | null; } /** Represents an InvoiceDownloadRequest. */ class InvoiceDownloadRequest implements IInvoiceDownloadRequest { - /** * Constructs a new InvoiceDownloadRequest. * @param [properties] Properties to set @@ -84194,7 +88249,7 @@ export namespace BI { * @throws {Error} If the payload is 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.InvoiceDownloadRequest; /** * Decodes an InvoiceDownloadRequest message from the specified reader or buffer, length delimited. @@ -84203,14 +88258,14 @@ export namespace BI { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BI.InvoiceDownloadRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): BI.InvoiceDownloadRequest; /** * Verifies an InvoiceDownloadRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an InvoiceDownloadRequest message from a plain object. Also converts values to their respective internal types. @@ -84225,7 +88280,10 @@ export namespace BI { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.InvoiceDownloadRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: BI.InvoiceDownloadRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this InvoiceDownloadRequest to JSON. @@ -84243,17 +88301,15 @@ export namespace BI { /** Properties of an InvoiceDownloadResponse. */ interface IInvoiceDownloadResponse { - /** InvoiceDownloadResponse link */ - link?: (string|null); + link?: string | null; /** InvoiceDownloadResponse fileName */ - fileName?: (string|null); + fileName?: string | null; } /** Represents an InvoiceDownloadResponse. */ class InvoiceDownloadResponse implements IInvoiceDownloadResponse { - /** * Constructs a new InvoiceDownloadResponse. * @param [properties] Properties to set @@ -84287,7 +88343,10 @@ export namespace BI { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: BI.IInvoiceDownloadResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: BI.IInvoiceDownloadResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes an InvoiceDownloadResponse message from the specified reader or buffer. @@ -84297,7 +88356,7 @@ export namespace BI { * @throws {Error} If the payload is 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.InvoiceDownloadResponse; /** * Decodes an InvoiceDownloadResponse message from the specified reader or buffer, length delimited. @@ -84306,14 +88365,14 @@ export namespace BI { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BI.InvoiceDownloadResponse; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): BI.InvoiceDownloadResponse; /** * Verifies an InvoiceDownloadResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an InvoiceDownloadResponse message from a plain object. Also converts values to their respective internal types. @@ -84328,7 +88387,10 @@ export namespace BI { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.InvoiceDownloadResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: BI.InvoiceDownloadResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this InvoiceDownloadResponse to JSON. @@ -84346,14 +88408,12 @@ export namespace BI { /** Properties of a VaultInvoiceDownloadLinkRequest. */ interface IVaultInvoiceDownloadLinkRequest { - /** VaultInvoiceDownloadLinkRequest invoiceNumber */ - invoiceNumber?: (string|null); + invoiceNumber?: string | null; } /** Represents a VaultInvoiceDownloadLinkRequest. */ class VaultInvoiceDownloadLinkRequest implements IVaultInvoiceDownloadLinkRequest { - /** * Constructs a new VaultInvoiceDownloadLinkRequest. * @param [properties] Properties to set @@ -84384,7 +88444,10 @@ export namespace BI { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: BI.IVaultInvoiceDownloadLinkRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: BI.IVaultInvoiceDownloadLinkRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a VaultInvoiceDownloadLinkRequest message from the specified reader or buffer. @@ -84394,7 +88457,10 @@ export namespace BI { * @throws {Error} If the payload is 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.VaultInvoiceDownloadLinkRequest; /** * Decodes a VaultInvoiceDownloadLinkRequest message from the specified reader or buffer, length delimited. @@ -84403,14 +88469,14 @@ export namespace BI { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BI.VaultInvoiceDownloadLinkRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): BI.VaultInvoiceDownloadLinkRequest; /** * Verifies a VaultInvoiceDownloadLinkRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a VaultInvoiceDownloadLinkRequest message from a plain object. Also converts values to their respective internal types. @@ -84425,7 +88491,10 @@ export namespace BI { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.VaultInvoiceDownloadLinkRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: BI.VaultInvoiceDownloadLinkRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this VaultInvoiceDownloadLinkRequest to JSON. @@ -84443,17 +88512,15 @@ export namespace BI { /** Properties of a VaultInvoiceDownloadLinkResponse. */ interface IVaultInvoiceDownloadLinkResponse { - /** VaultInvoiceDownloadLinkResponse link */ - link?: (string|null); + link?: string | null; /** VaultInvoiceDownloadLinkResponse fileName */ - fileName?: (string|null); + fileName?: string | null; } /** Represents a VaultInvoiceDownloadLinkResponse. */ class VaultInvoiceDownloadLinkResponse implements IVaultInvoiceDownloadLinkResponse { - /** * Constructs a new VaultInvoiceDownloadLinkResponse. * @param [properties] Properties to set @@ -84479,7 +88546,10 @@ export namespace BI { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: BI.IVaultInvoiceDownloadLinkResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: BI.IVaultInvoiceDownloadLinkResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified VaultInvoiceDownloadLinkResponse message, length delimited. Does not implicitly {@link BI.VaultInvoiceDownloadLinkResponse.verify|verify} messages. @@ -84487,7 +88557,10 @@ export namespace BI { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: BI.IVaultInvoiceDownloadLinkResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: BI.IVaultInvoiceDownloadLinkResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a VaultInvoiceDownloadLinkResponse message from the specified reader or buffer. @@ -84497,7 +88570,10 @@ export namespace BI { * @throws {Error} If the payload is 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.VaultInvoiceDownloadLinkResponse; /** * Decodes a VaultInvoiceDownloadLinkResponse message from the specified reader or buffer, length delimited. @@ -84506,14 +88582,14 @@ export namespace BI { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BI.VaultInvoiceDownloadLinkResponse; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): BI.VaultInvoiceDownloadLinkResponse; /** * Verifies a VaultInvoiceDownloadLinkResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a VaultInvoiceDownloadLinkResponse message from a plain object. Also converts values to their respective internal types. @@ -84528,7 +88604,10 @@ export namespace BI { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.VaultInvoiceDownloadLinkResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: BI.VaultInvoiceDownloadLinkResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this VaultInvoiceDownloadLinkResponse to JSON. @@ -84546,17 +88625,15 @@ export namespace BI { /** Properties of a ReportingDailySnapshotRequest. */ interface IReportingDailySnapshotRequest { - /** ReportingDailySnapshotRequest month */ - month?: (number|null); + month?: number | null; /** ReportingDailySnapshotRequest year */ - year?: (number|null); + year?: number | null; } /** Represents a ReportingDailySnapshotRequest. */ class ReportingDailySnapshotRequest implements IReportingDailySnapshotRequest { - /** * Constructs a new ReportingDailySnapshotRequest. * @param [properties] Properties to set @@ -84590,7 +88667,10 @@ export namespace BI { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: BI.IReportingDailySnapshotRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: BI.IReportingDailySnapshotRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a ReportingDailySnapshotRequest message from the specified reader or buffer. @@ -84600,7 +88680,7 @@ export namespace BI { * @throws {Error} If the payload is 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.ReportingDailySnapshotRequest; /** * Decodes a ReportingDailySnapshotRequest message from the specified reader or buffer, length delimited. @@ -84609,14 +88689,14 @@ export namespace BI { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BI.ReportingDailySnapshotRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): BI.ReportingDailySnapshotRequest; /** * Verifies a ReportingDailySnapshotRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a ReportingDailySnapshotRequest message from a plain object. Also converts values to their respective internal types. @@ -84631,7 +88711,10 @@ export namespace BI { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.ReportingDailySnapshotRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: BI.ReportingDailySnapshotRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this ReportingDailySnapshotRequest to JSON. @@ -84649,17 +88732,15 @@ export namespace BI { /** Properties of a ReportingDailySnapshotResponse. */ interface IReportingDailySnapshotResponse { - /** ReportingDailySnapshotResponse records */ - records?: (BI.ISnapshotRecord[]|null); + records?: BI.ISnapshotRecord[] | null; /** ReportingDailySnapshotResponse mcEnterprises */ - mcEnterprises?: (BI.ISnapshotMcEnterprise[]|null); + mcEnterprises?: BI.ISnapshotMcEnterprise[] | null; } /** Represents a ReportingDailySnapshotResponse. */ class ReportingDailySnapshotResponse implements IReportingDailySnapshotResponse { - /** * Constructs a new ReportingDailySnapshotResponse. * @param [properties] Properties to set @@ -84693,7 +88774,10 @@ export namespace BI { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: BI.IReportingDailySnapshotResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: BI.IReportingDailySnapshotResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a ReportingDailySnapshotResponse message from the specified reader or buffer. @@ -84703,7 +88787,7 @@ export namespace BI { * @throws {Error} If the payload is 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; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): BI.ReportingDailySnapshotResponse; /** * Decodes a ReportingDailySnapshotResponse message from the specified reader or buffer, length delimited. @@ -84712,14 +88796,14 @@ export namespace BI { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BI.ReportingDailySnapshotResponse; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): BI.ReportingDailySnapshotResponse; /** * Verifies a ReportingDailySnapshotResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a ReportingDailySnapshotResponse message from a plain object. Also converts values to their respective internal types. @@ -84734,7 +88818,10 @@ export namespace BI { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.ReportingDailySnapshotResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: BI.ReportingDailySnapshotResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this ReportingDailySnapshotResponse to JSON. @@ -84752,29 +88839,27 @@ export namespace BI { /** Properties of a SnapshotRecord. */ interface ISnapshotRecord { - /** SnapshotRecord date */ - date?: (number|Long|null); + date?: number | Long | null; /** SnapshotRecord mcEnterpriseId */ - mcEnterpriseId?: (number|null); + mcEnterpriseId?: number | null; /** SnapshotRecord maxLicenseCount */ - maxLicenseCount?: (number|null); + maxLicenseCount?: number | null; /** SnapshotRecord maxFilePlanTypeId */ - maxFilePlanTypeId?: (number|null); + maxFilePlanTypeId?: number | null; /** SnapshotRecord maxBasePlanId */ - maxBasePlanId?: (number|null); + maxBasePlanId?: number | null; /** SnapshotRecord addons */ - addons?: (BI.SnapshotRecord.IAddon[]|null); + addons?: BI.SnapshotRecord.IAddon[] | null; } /** Represents a SnapshotRecord. */ class SnapshotRecord implements ISnapshotRecord { - /** * Constructs a new SnapshotRecord. * @param [properties] Properties to set @@ -84782,7 +88867,7 @@ export namespace BI { constructor(properties?: BI.ISnapshotRecord); /** SnapshotRecord date. */ - public date: (number|Long); + public date: number | Long; /** SnapshotRecord mcEnterpriseId. */ public mcEnterpriseId: number; @@ -84830,7 +88915,7 @@ export namespace BI { * @throws {Error} If the payload is 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; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): BI.SnapshotRecord; /** * Decodes a SnapshotRecord message from the specified reader or buffer, length delimited. @@ -84839,14 +88924,14 @@ export namespace BI { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BI.SnapshotRecord; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): BI.SnapshotRecord; /** * Verifies a SnapshotRecord message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a SnapshotRecord message from a plain object. Also converts values to their respective internal types. @@ -84861,7 +88946,10 @@ export namespace BI { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.SnapshotRecord, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: BI.SnapshotRecord, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this SnapshotRecord to JSON. @@ -84878,20 +88966,17 @@ export namespace BI { } namespace SnapshotRecord { - /** Properties of an Addon. */ interface IAddon { - /** Addon maxAddonId */ - maxAddonId?: (number|null); + maxAddonId?: number | null; /** Addon units */ - units?: (number|Long|null); + units?: number | Long | null; } /** Represents an Addon. */ class Addon implements IAddon { - /** * Constructs a new Addon. * @param [properties] Properties to set @@ -84902,7 +88987,7 @@ export namespace BI { public maxAddonId: number; /** Addon units. */ - public units: (number|Long); + public units: number | Long; /** * Creates a new Addon instance using the specified properties. @@ -84925,7 +89010,10 @@ export namespace BI { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: BI.SnapshotRecord.IAddon, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: BI.SnapshotRecord.IAddon, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes an Addon message from the specified reader or buffer. @@ -84935,7 +89023,7 @@ export namespace BI { * @throws {Error} If the payload is 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.SnapshotRecord.Addon; /** * Decodes an Addon message from the specified reader or buffer, length delimited. @@ -84944,14 +89032,14 @@ export namespace BI { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BI.SnapshotRecord.Addon; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): BI.SnapshotRecord.Addon; /** * Verifies an Addon message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an Addon message from a plain object. Also converts values to their respective internal types. @@ -84966,7 +89054,10 @@ export namespace BI { * @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.SnapshotRecord.Addon, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this Addon to JSON. @@ -84985,17 +89076,15 @@ export namespace BI { /** Properties of a SnapshotMcEnterprise. */ interface ISnapshotMcEnterprise { - /** SnapshotMcEnterprise id */ - id?: (number|null); + id?: number | null; /** SnapshotMcEnterprise name */ - name?: (string|null); + name?: string | null; } /** Represents a SnapshotMcEnterprise. */ class SnapshotMcEnterprise implements ISnapshotMcEnterprise { - /** * Constructs a new SnapshotMcEnterprise. * @param [properties] Properties to set @@ -85039,7 +89128,7 @@ export namespace BI { * @throws {Error} If the payload is 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.SnapshotMcEnterprise; /** * Decodes a SnapshotMcEnterprise message from the specified reader or buffer, length delimited. @@ -85048,14 +89137,14 @@ export namespace BI { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BI.SnapshotMcEnterprise; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): BI.SnapshotMcEnterprise; /** * Verifies a SnapshotMcEnterprise message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a SnapshotMcEnterprise message from a plain object. Also converts values to their respective internal types. @@ -85070,7 +89159,10 @@ export namespace BI { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.SnapshotMcEnterprise, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: BI.SnapshotMcEnterprise, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this SnapshotMcEnterprise to JSON. @@ -85087,12 +89179,10 @@ export namespace BI { } /** Properties of a MappingAddonsRequest. */ - interface IMappingAddonsRequest { - } + interface IMappingAddonsRequest {} /** Represents a MappingAddonsRequest. */ class MappingAddonsRequest implements IMappingAddonsRequest { - /** * Constructs a new MappingAddonsRequest. * @param [properties] Properties to set @@ -85130,7 +89220,7 @@ export namespace BI { * @throws {Error} If the payload is 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.MappingAddonsRequest; /** * Decodes a MappingAddonsRequest message from the specified reader or buffer, length delimited. @@ -85139,14 +89229,14 @@ export namespace BI { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BI.MappingAddonsRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): BI.MappingAddonsRequest; /** * Verifies a MappingAddonsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a MappingAddonsRequest message from a plain object. Also converts values to their respective internal types. @@ -85161,7 +89251,10 @@ export namespace BI { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.MappingAddonsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: BI.MappingAddonsRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this MappingAddonsRequest to JSON. @@ -85179,17 +89272,15 @@ export namespace BI { /** Properties of a MappingAddonsResponse. */ interface IMappingAddonsResponse { - /** MappingAddonsResponse addons */ - addons?: (BI.IMappingItem[]|null); + addons?: BI.IMappingItem[] | null; /** MappingAddonsResponse filePlans */ - filePlans?: (BI.IMappingItem[]|null); + filePlans?: BI.IMappingItem[] | null; } /** Represents a MappingAddonsResponse. */ class MappingAddonsResponse implements IMappingAddonsResponse { - /** * Constructs a new MappingAddonsResponse. * @param [properties] Properties to set @@ -85233,7 +89324,7 @@ export namespace BI { * @throws {Error} If the payload is 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.MappingAddonsResponse; /** * Decodes a MappingAddonsResponse message from the specified reader or buffer, length delimited. @@ -85242,14 +89333,14 @@ export namespace BI { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BI.MappingAddonsResponse; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): BI.MappingAddonsResponse; /** * Verifies a MappingAddonsResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a MappingAddonsResponse message from a plain object. Also converts values to their respective internal types. @@ -85264,7 +89355,10 @@ export namespace BI { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.MappingAddonsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: BI.MappingAddonsResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this MappingAddonsResponse to JSON. @@ -85282,17 +89376,15 @@ export namespace BI { /** Properties of a MappingItem. */ interface IMappingItem { - /** MappingItem id */ - id?: (number|null); + id?: number | null; /** MappingItem name */ - name?: (string|null); + name?: string | null; } /** Represents a MappingItem. */ class MappingItem implements IMappingItem { - /** * Constructs a new MappingItem. * @param [properties] Properties to set @@ -85336,7 +89428,7 @@ export namespace BI { * @throws {Error} If the payload is 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.MappingItem; /** * Decodes a MappingItem message from the specified reader or buffer, length delimited. @@ -85345,14 +89437,14 @@ export namespace BI { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BI.MappingItem; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): BI.MappingItem; /** * Verifies a MappingItem message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a MappingItem message from a plain object. Also converts values to their respective internal types. @@ -85385,14 +89477,12 @@ export namespace BI { /** Properties of a GradientValidateKeyRequest. */ interface IGradientValidateKeyRequest { - /** GradientValidateKeyRequest gradientKey */ - gradientKey?: (string|null); + gradientKey?: string | null; } /** Represents a GradientValidateKeyRequest. */ class GradientValidateKeyRequest implements IGradientValidateKeyRequest { - /** * Constructs a new GradientValidateKeyRequest. * @param [properties] Properties to set @@ -85423,7 +89513,10 @@ export namespace BI { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: BI.IGradientValidateKeyRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: BI.IGradientValidateKeyRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a GradientValidateKeyRequest message from the specified reader or buffer. @@ -85433,7 +89526,7 @@ export namespace BI { * @throws {Error} If the payload is 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.GradientValidateKeyRequest; /** * Decodes a GradientValidateKeyRequest message from the specified reader or buffer, length delimited. @@ -85442,14 +89535,14 @@ export namespace BI { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BI.GradientValidateKeyRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): BI.GradientValidateKeyRequest; /** * Verifies a GradientValidateKeyRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a GradientValidateKeyRequest message from a plain object. Also converts values to their respective internal types. @@ -85464,7 +89557,10 @@ export namespace BI { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.GradientValidateKeyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: BI.GradientValidateKeyRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this GradientValidateKeyRequest to JSON. @@ -85482,17 +89578,15 @@ export namespace BI { /** Properties of a GradientValidateKeyResponse. */ interface IGradientValidateKeyResponse { - /** GradientValidateKeyResponse success */ - success?: (boolean|null); + success?: boolean | null; /** GradientValidateKeyResponse message */ - message?: (string|null); + message?: string | null; } /** Represents a GradientValidateKeyResponse. */ class GradientValidateKeyResponse implements IGradientValidateKeyResponse { - /** * Constructs a new GradientValidateKeyResponse. * @param [properties] Properties to set @@ -85526,7 +89620,10 @@ export namespace BI { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: BI.IGradientValidateKeyResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: BI.IGradientValidateKeyResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a GradientValidateKeyResponse message from the specified reader or buffer. @@ -85536,7 +89633,7 @@ export namespace BI { * @throws {Error} If the payload is 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.GradientValidateKeyResponse; /** * Decodes a GradientValidateKeyResponse message from the specified reader or buffer, length delimited. @@ -85545,14 +89642,14 @@ export namespace BI { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BI.GradientValidateKeyResponse; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): BI.GradientValidateKeyResponse; /** * Verifies a GradientValidateKeyResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a GradientValidateKeyResponse message from a plain object. Also converts values to their respective internal types. @@ -85567,7 +89664,10 @@ export namespace BI { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.GradientValidateKeyResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: BI.GradientValidateKeyResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this GradientValidateKeyResponse to JSON. @@ -85585,17 +89685,15 @@ export namespace BI { /** Properties of a GradientSaveRequest. */ interface IGradientSaveRequest { - /** GradientSaveRequest gradientKey */ - gradientKey?: (string|null); + gradientKey?: string | null; /** GradientSaveRequest enterpriseUserId */ - enterpriseUserId?: (number|Long|null); + enterpriseUserId?: number | Long | null; } /** Represents a GradientSaveRequest. */ class GradientSaveRequest implements IGradientSaveRequest { - /** * Constructs a new GradientSaveRequest. * @param [properties] Properties to set @@ -85606,7 +89704,7 @@ export namespace BI { public gradientKey: string; /** GradientSaveRequest enterpriseUserId. */ - public enterpriseUserId: (number|Long); + public enterpriseUserId: number | Long; /** * Creates a new GradientSaveRequest instance using the specified properties. @@ -85639,7 +89737,7 @@ export namespace BI { * @throws {Error} If the payload is 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.GradientSaveRequest; /** * Decodes a GradientSaveRequest message from the specified reader or buffer, length delimited. @@ -85648,14 +89746,14 @@ export namespace BI { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BI.GradientSaveRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): BI.GradientSaveRequest; /** * Verifies a GradientSaveRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a GradientSaveRequest message from a plain object. Also converts values to their respective internal types. @@ -85670,7 +89768,10 @@ export namespace BI { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.GradientSaveRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: BI.GradientSaveRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this GradientSaveRequest to JSON. @@ -85688,20 +89789,18 @@ export namespace BI { /** Properties of a GradientSaveResponse. */ interface IGradientSaveResponse { - /** GradientSaveResponse success */ - success?: (boolean|null); + success?: boolean | null; /** GradientSaveResponse status */ - status?: (BI.GradientIntegrationStatus|null); + status?: BI.GradientIntegrationStatus | null; /** GradientSaveResponse message */ - message?: (string|null); + message?: string | null; } /** Represents a GradientSaveResponse. */ class GradientSaveResponse implements IGradientSaveResponse { - /** * Constructs a new GradientSaveResponse. * @param [properties] Properties to set @@ -85748,7 +89847,7 @@ export namespace BI { * @throws {Error} If the payload is 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.GradientSaveResponse; /** * Decodes a GradientSaveResponse message from the specified reader or buffer, length delimited. @@ -85757,14 +89856,14 @@ export namespace BI { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BI.GradientSaveResponse; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): BI.GradientSaveResponse; /** * Verifies a GradientSaveResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a GradientSaveResponse message from a plain object. Also converts values to their respective internal types. @@ -85779,7 +89878,10 @@ export namespace BI { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.GradientSaveResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: BI.GradientSaveResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this GradientSaveResponse to JSON. @@ -85797,14 +89899,12 @@ export namespace BI { /** Properties of a GradientRemoveRequest. */ interface IGradientRemoveRequest { - /** GradientRemoveRequest enterpriseUserId */ - enterpriseUserId?: (number|Long|null); + enterpriseUserId?: number | Long | null; } /** Represents a GradientRemoveRequest. */ class GradientRemoveRequest implements IGradientRemoveRequest { - /** * Constructs a new GradientRemoveRequest. * @param [properties] Properties to set @@ -85812,7 +89912,7 @@ export namespace BI { constructor(properties?: BI.IGradientRemoveRequest); /** GradientRemoveRequest enterpriseUserId. */ - public enterpriseUserId: (number|Long); + public enterpriseUserId: number | Long; /** * Creates a new GradientRemoveRequest instance using the specified properties. @@ -85845,7 +89945,7 @@ export namespace BI { * @throws {Error} If the payload is 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.GradientRemoveRequest; /** * Decodes a GradientRemoveRequest message from the specified reader or buffer, length delimited. @@ -85854,14 +89954,14 @@ export namespace BI { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BI.GradientRemoveRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): BI.GradientRemoveRequest; /** * Verifies a GradientRemoveRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a GradientRemoveRequest message from a plain object. Also converts values to their respective internal types. @@ -85876,7 +89976,10 @@ export namespace BI { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.GradientRemoveRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: BI.GradientRemoveRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this GradientRemoveRequest to JSON. @@ -85894,17 +89997,15 @@ export namespace BI { /** Properties of a GradientRemoveResponse. */ interface IGradientRemoveResponse { - /** GradientRemoveResponse success */ - success?: (boolean|null); + success?: boolean | null; /** GradientRemoveResponse message */ - message?: (string|null); + message?: string | null; } /** Represents a GradientRemoveResponse. */ class GradientRemoveResponse implements IGradientRemoveResponse { - /** * Constructs a new GradientRemoveResponse. * @param [properties] Properties to set @@ -85948,7 +90049,7 @@ export namespace BI { * @throws {Error} If the payload is 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.GradientRemoveResponse; /** * Decodes a GradientRemoveResponse message from the specified reader or buffer, length delimited. @@ -85957,14 +90058,14 @@ export namespace BI { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BI.GradientRemoveResponse; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): BI.GradientRemoveResponse; /** * Verifies a GradientRemoveResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a GradientRemoveResponse message from a plain object. Also converts values to their respective internal types. @@ -85979,7 +90080,10 @@ export namespace BI { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.GradientRemoveResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: BI.GradientRemoveResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this GradientRemoveResponse to JSON. @@ -85997,14 +90101,12 @@ export namespace BI { /** Properties of a GradientSyncRequest. */ interface IGradientSyncRequest { - /** GradientSyncRequest enterpriseUserId */ - enterpriseUserId?: (number|Long|null); + enterpriseUserId?: number | Long | null; } /** Represents a GradientSyncRequest. */ class GradientSyncRequest implements IGradientSyncRequest { - /** * Constructs a new GradientSyncRequest. * @param [properties] Properties to set @@ -86012,7 +90114,7 @@ export namespace BI { constructor(properties?: BI.IGradientSyncRequest); /** GradientSyncRequest enterpriseUserId. */ - public enterpriseUserId: (number|Long); + public enterpriseUserId: number | Long; /** * Creates a new GradientSyncRequest instance using the specified properties. @@ -86045,7 +90147,7 @@ export namespace BI { * @throws {Error} If the payload is 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.GradientSyncRequest; /** * Decodes a GradientSyncRequest message from the specified reader or buffer, length delimited. @@ -86054,14 +90156,14 @@ export namespace BI { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BI.GradientSyncRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): BI.GradientSyncRequest; /** * Verifies a GradientSyncRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a GradientSyncRequest message from a plain object. Also converts values to their respective internal types. @@ -86076,7 +90178,10 @@ export namespace BI { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.GradientSyncRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: BI.GradientSyncRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this GradientSyncRequest to JSON. @@ -86094,20 +90199,18 @@ export namespace BI { /** Properties of a GradientSyncResponse. */ interface IGradientSyncResponse { - /** GradientSyncResponse success */ - success?: (boolean|null); + success?: boolean | null; /** GradientSyncResponse status */ - status?: (BI.GradientIntegrationStatus|null); + status?: BI.GradientIntegrationStatus | null; /** GradientSyncResponse message */ - message?: (string|null); + message?: string | null; } /** Represents a GradientSyncResponse. */ class GradientSyncResponse implements IGradientSyncResponse { - /** * Constructs a new GradientSyncResponse. * @param [properties] Properties to set @@ -86154,7 +90257,7 @@ export namespace BI { * @throws {Error} If the payload is 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.GradientSyncResponse; /** * Decodes a GradientSyncResponse message from the specified reader or buffer, length delimited. @@ -86163,14 +90266,14 @@ export namespace BI { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BI.GradientSyncResponse; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): BI.GradientSyncResponse; /** * Verifies a GradientSyncResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a GradientSyncResponse message from a plain object. Also converts values to their respective internal types. @@ -86185,7 +90288,10 @@ export namespace BI { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.GradientSyncResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: BI.GradientSyncResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this GradientSyncResponse to JSON. @@ -86206,22 +90312,20 @@ export namespace BI { NOTCONNECTED = 0, PENDING = 1, CONNECTED = 2, - NONE = 3 + NONE = 3, } /** Properties of a NetPromoterScoreSurveySubmissionRequest. */ interface INetPromoterScoreSurveySubmissionRequest { - /** NetPromoterScoreSurveySubmissionRequest surveyScore */ - surveyScore?: (number|null); + surveyScore?: number | null; /** NetPromoterScoreSurveySubmissionRequest notes */ - notes?: (string|null); + notes?: string | null; } /** Represents a NetPromoterScoreSurveySubmissionRequest. */ class NetPromoterScoreSurveySubmissionRequest implements INetPromoterScoreSurveySubmissionRequest { - /** * Constructs a new NetPromoterScoreSurveySubmissionRequest. * @param [properties] Properties to set @@ -86239,7 +90343,9 @@ export namespace BI { * @param [properties] Properties to set * @returns NetPromoterScoreSurveySubmissionRequest instance */ - public static create(properties?: BI.INetPromoterScoreSurveySubmissionRequest): BI.NetPromoterScoreSurveySubmissionRequest; + public static create( + properties?: BI.INetPromoterScoreSurveySubmissionRequest + ): BI.NetPromoterScoreSurveySubmissionRequest; /** * Encodes the specified NetPromoterScoreSurveySubmissionRequest message. Does not implicitly {@link BI.NetPromoterScoreSurveySubmissionRequest.verify|verify} messages. @@ -86247,7 +90353,10 @@ export namespace BI { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: BI.INetPromoterScoreSurveySubmissionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: BI.INetPromoterScoreSurveySubmissionRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified NetPromoterScoreSurveySubmissionRequest message, length delimited. Does not implicitly {@link BI.NetPromoterScoreSurveySubmissionRequest.verify|verify} messages. @@ -86255,7 +90364,10 @@ export namespace BI { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: BI.INetPromoterScoreSurveySubmissionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: BI.INetPromoterScoreSurveySubmissionRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a NetPromoterScoreSurveySubmissionRequest message from the specified reader or buffer. @@ -86265,7 +90377,10 @@ export namespace BI { * @throws {Error} If the payload is 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.NetPromoterScoreSurveySubmissionRequest; /** * Decodes a NetPromoterScoreSurveySubmissionRequest message from the specified reader or buffer, length delimited. @@ -86274,14 +90389,16 @@ export namespace BI { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BI.NetPromoterScoreSurveySubmissionRequest; + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array + ): BI.NetPromoterScoreSurveySubmissionRequest; /** * Verifies a NetPromoterScoreSurveySubmissionRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a NetPromoterScoreSurveySubmissionRequest message from a plain object. Also converts values to their respective internal types. @@ -86296,7 +90413,10 @@ export namespace BI { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.NetPromoterScoreSurveySubmissionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: BI.NetPromoterScoreSurveySubmissionRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this NetPromoterScoreSurveySubmissionRequest to JSON. @@ -86313,12 +90433,10 @@ export namespace BI { } /** Properties of a NetPromoterScoreSurveySubmissionResponse. */ - interface INetPromoterScoreSurveySubmissionResponse { - } + interface INetPromoterScoreSurveySubmissionResponse {} /** Represents a NetPromoterScoreSurveySubmissionResponse. */ class NetPromoterScoreSurveySubmissionResponse implements INetPromoterScoreSurveySubmissionResponse { - /** * Constructs a new NetPromoterScoreSurveySubmissionResponse. * @param [properties] Properties to set @@ -86330,7 +90448,9 @@ export namespace BI { * @param [properties] Properties to set * @returns NetPromoterScoreSurveySubmissionResponse instance */ - public static create(properties?: BI.INetPromoterScoreSurveySubmissionResponse): BI.NetPromoterScoreSurveySubmissionResponse; + public static create( + properties?: BI.INetPromoterScoreSurveySubmissionResponse + ): BI.NetPromoterScoreSurveySubmissionResponse; /** * Encodes the specified NetPromoterScoreSurveySubmissionResponse message. Does not implicitly {@link BI.NetPromoterScoreSurveySubmissionResponse.verify|verify} messages. @@ -86338,7 +90458,10 @@ export namespace BI { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: BI.INetPromoterScoreSurveySubmissionResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: BI.INetPromoterScoreSurveySubmissionResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified NetPromoterScoreSurveySubmissionResponse message, length delimited. Does not implicitly {@link BI.NetPromoterScoreSurveySubmissionResponse.verify|verify} messages. @@ -86346,7 +90469,10 @@ export namespace BI { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: BI.INetPromoterScoreSurveySubmissionResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: BI.INetPromoterScoreSurveySubmissionResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a NetPromoterScoreSurveySubmissionResponse message from the specified reader or buffer. @@ -86356,7 +90482,10 @@ export namespace BI { * @throws {Error} If the payload is 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.NetPromoterScoreSurveySubmissionResponse; /** * Decodes a NetPromoterScoreSurveySubmissionResponse message from the specified reader or buffer, length delimited. @@ -86365,14 +90494,16 @@ export namespace BI { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BI.NetPromoterScoreSurveySubmissionResponse; + public static decodeDelimited( + reader: $protobuf.Reader | Uint8Array + ): BI.NetPromoterScoreSurveySubmissionResponse; /** * Verifies a NetPromoterScoreSurveySubmissionResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a NetPromoterScoreSurveySubmissionResponse message from a plain object. Also converts values to their respective internal types. @@ -86387,7 +90518,10 @@ export namespace BI { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.NetPromoterScoreSurveySubmissionResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: BI.NetPromoterScoreSurveySubmissionResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this NetPromoterScoreSurveySubmissionResponse to JSON. @@ -86404,12 +90538,10 @@ export namespace BI { } /** Properties of a NetPromoterScorePopupScheduleRequest. */ - interface INetPromoterScorePopupScheduleRequest { - } + interface INetPromoterScorePopupScheduleRequest {} /** Represents a NetPromoterScorePopupScheduleRequest. */ class NetPromoterScorePopupScheduleRequest implements INetPromoterScorePopupScheduleRequest { - /** * Constructs a new NetPromoterScorePopupScheduleRequest. * @param [properties] Properties to set @@ -86421,7 +90553,9 @@ export namespace BI { * @param [properties] Properties to set * @returns NetPromoterScorePopupScheduleRequest instance */ - public static create(properties?: BI.INetPromoterScorePopupScheduleRequest): BI.NetPromoterScorePopupScheduleRequest; + public static create( + properties?: BI.INetPromoterScorePopupScheduleRequest + ): BI.NetPromoterScorePopupScheduleRequest; /** * Encodes the specified NetPromoterScorePopupScheduleRequest message. Does not implicitly {@link BI.NetPromoterScorePopupScheduleRequest.verify|verify} messages. @@ -86429,7 +90563,10 @@ export namespace BI { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: BI.INetPromoterScorePopupScheduleRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: BI.INetPromoterScorePopupScheduleRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified NetPromoterScorePopupScheduleRequest message, length delimited. Does not implicitly {@link BI.NetPromoterScorePopupScheduleRequest.verify|verify} messages. @@ -86437,7 +90574,10 @@ export namespace BI { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: BI.INetPromoterScorePopupScheduleRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: BI.INetPromoterScorePopupScheduleRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a NetPromoterScorePopupScheduleRequest message from the specified reader or buffer. @@ -86447,7 +90587,10 @@ export namespace BI { * @throws {Error} If the payload is 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.NetPromoterScorePopupScheduleRequest; /** * Decodes a NetPromoterScorePopupScheduleRequest message from the specified reader or buffer, length delimited. @@ -86456,14 +90599,14 @@ export namespace BI { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BI.NetPromoterScorePopupScheduleRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): BI.NetPromoterScorePopupScheduleRequest; /** * Verifies a NetPromoterScorePopupScheduleRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a NetPromoterScorePopupScheduleRequest message from a plain object. Also converts values to their respective internal types. @@ -86478,7 +90621,10 @@ export namespace BI { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.NetPromoterScorePopupScheduleRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: BI.NetPromoterScorePopupScheduleRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this NetPromoterScorePopupScheduleRequest to JSON. @@ -86496,14 +90642,12 @@ export namespace BI { /** Properties of a NetPromoterScorePopupScheduleResponse. */ interface INetPromoterScorePopupScheduleResponse { - /** NetPromoterScorePopupScheduleResponse showPopup */ - showPopup?: (boolean|null); + showPopup?: boolean | null; } /** Represents a NetPromoterScorePopupScheduleResponse. */ class NetPromoterScorePopupScheduleResponse implements INetPromoterScorePopupScheduleResponse { - /** * Constructs a new NetPromoterScorePopupScheduleResponse. * @param [properties] Properties to set @@ -86518,7 +90662,9 @@ export namespace BI { * @param [properties] Properties to set * @returns NetPromoterScorePopupScheduleResponse instance */ - public static create(properties?: BI.INetPromoterScorePopupScheduleResponse): BI.NetPromoterScorePopupScheduleResponse; + public static create( + properties?: BI.INetPromoterScorePopupScheduleResponse + ): BI.NetPromoterScorePopupScheduleResponse; /** * Encodes the specified NetPromoterScorePopupScheduleResponse message. Does not implicitly {@link BI.NetPromoterScorePopupScheduleResponse.verify|verify} messages. @@ -86526,7 +90672,10 @@ export namespace BI { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: BI.INetPromoterScorePopupScheduleResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: BI.INetPromoterScorePopupScheduleResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified NetPromoterScorePopupScheduleResponse message, length delimited. Does not implicitly {@link BI.NetPromoterScorePopupScheduleResponse.verify|verify} messages. @@ -86534,7 +90683,10 @@ export namespace BI { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: BI.INetPromoterScorePopupScheduleResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: BI.INetPromoterScorePopupScheduleResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a NetPromoterScorePopupScheduleResponse message from the specified reader or buffer. @@ -86544,7 +90696,10 @@ export namespace BI { * @throws {Error} If the payload is 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.NetPromoterScorePopupScheduleResponse; /** * Decodes a NetPromoterScorePopupScheduleResponse message from the specified reader or buffer, length delimited. @@ -86553,14 +90708,14 @@ export namespace BI { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BI.NetPromoterScorePopupScheduleResponse; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): BI.NetPromoterScorePopupScheduleResponse; /** * Verifies a NetPromoterScorePopupScheduleResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a NetPromoterScorePopupScheduleResponse message from a plain object. Also converts values to their respective internal types. @@ -86575,7 +90730,10 @@ export namespace BI { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.NetPromoterScorePopupScheduleResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: BI.NetPromoterScorePopupScheduleResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this NetPromoterScorePopupScheduleResponse to JSON. @@ -86592,12 +90750,10 @@ export namespace BI { } /** Properties of a NetPromoterScorePopupDismissalRequest. */ - interface INetPromoterScorePopupDismissalRequest { - } + interface INetPromoterScorePopupDismissalRequest {} /** Represents a NetPromoterScorePopupDismissalRequest. */ class NetPromoterScorePopupDismissalRequest implements INetPromoterScorePopupDismissalRequest { - /** * Constructs a new NetPromoterScorePopupDismissalRequest. * @param [properties] Properties to set @@ -86609,7 +90765,9 @@ export namespace BI { * @param [properties] Properties to set * @returns NetPromoterScorePopupDismissalRequest instance */ - public static create(properties?: BI.INetPromoterScorePopupDismissalRequest): BI.NetPromoterScorePopupDismissalRequest; + public static create( + properties?: BI.INetPromoterScorePopupDismissalRequest + ): BI.NetPromoterScorePopupDismissalRequest; /** * Encodes the specified NetPromoterScorePopupDismissalRequest message. Does not implicitly {@link BI.NetPromoterScorePopupDismissalRequest.verify|verify} messages. @@ -86617,7 +90775,10 @@ export namespace BI { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: BI.INetPromoterScorePopupDismissalRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: BI.INetPromoterScorePopupDismissalRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified NetPromoterScorePopupDismissalRequest message, length delimited. Does not implicitly {@link BI.NetPromoterScorePopupDismissalRequest.verify|verify} messages. @@ -86625,7 +90786,10 @@ export namespace BI { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: BI.INetPromoterScorePopupDismissalRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: BI.INetPromoterScorePopupDismissalRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a NetPromoterScorePopupDismissalRequest message from the specified reader or buffer. @@ -86635,7 +90799,10 @@ export namespace BI { * @throws {Error} If the payload is 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.NetPromoterScorePopupDismissalRequest; /** * Decodes a NetPromoterScorePopupDismissalRequest message from the specified reader or buffer, length delimited. @@ -86644,14 +90811,14 @@ export namespace BI { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BI.NetPromoterScorePopupDismissalRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): BI.NetPromoterScorePopupDismissalRequest; /** * Verifies a NetPromoterScorePopupDismissalRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a NetPromoterScorePopupDismissalRequest message from a plain object. Also converts values to their respective internal types. @@ -86666,7 +90833,10 @@ export namespace BI { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.NetPromoterScorePopupDismissalRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: BI.NetPromoterScorePopupDismissalRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this NetPromoterScorePopupDismissalRequest to JSON. @@ -86683,12 +90853,10 @@ export namespace BI { } /** Properties of a NetPromoterScorePopupDismissalResponse. */ - interface INetPromoterScorePopupDismissalResponse { - } + interface INetPromoterScorePopupDismissalResponse {} /** Represents a NetPromoterScorePopupDismissalResponse. */ class NetPromoterScorePopupDismissalResponse implements INetPromoterScorePopupDismissalResponse { - /** * Constructs a new NetPromoterScorePopupDismissalResponse. * @param [properties] Properties to set @@ -86700,7 +90868,9 @@ export namespace BI { * @param [properties] Properties to set * @returns NetPromoterScorePopupDismissalResponse instance */ - public static create(properties?: BI.INetPromoterScorePopupDismissalResponse): BI.NetPromoterScorePopupDismissalResponse; + public static create( + properties?: BI.INetPromoterScorePopupDismissalResponse + ): BI.NetPromoterScorePopupDismissalResponse; /** * Encodes the specified NetPromoterScorePopupDismissalResponse message. Does not implicitly {@link BI.NetPromoterScorePopupDismissalResponse.verify|verify} messages. @@ -86708,7 +90878,10 @@ export namespace BI { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: BI.INetPromoterScorePopupDismissalResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: BI.INetPromoterScorePopupDismissalResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified NetPromoterScorePopupDismissalResponse message, length delimited. Does not implicitly {@link BI.NetPromoterScorePopupDismissalResponse.verify|verify} messages. @@ -86716,7 +90889,10 @@ export namespace BI { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: BI.INetPromoterScorePopupDismissalResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: BI.INetPromoterScorePopupDismissalResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a NetPromoterScorePopupDismissalResponse message from the specified reader or buffer. @@ -86726,7 +90902,10 @@ export namespace BI { * @throws {Error} If the payload is 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.NetPromoterScorePopupDismissalResponse; /** * Decodes a NetPromoterScorePopupDismissalResponse message from the specified reader or buffer, length delimited. @@ -86735,14 +90914,14 @@ export namespace BI { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BI.NetPromoterScorePopupDismissalResponse; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): BI.NetPromoterScorePopupDismissalResponse; /** * Verifies a NetPromoterScorePopupDismissalResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a NetPromoterScorePopupDismissalResponse message from a plain object. Also converts values to their respective internal types. @@ -86757,7 +90936,10 @@ export namespace BI { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.NetPromoterScorePopupDismissalResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: BI.NetPromoterScorePopupDismissalResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this NetPromoterScorePopupDismissalResponse to JSON. @@ -86775,14 +90957,12 @@ export namespace BI { /** Properties of a KCMLicenseRequest. */ interface IKCMLicenseRequest { - /** KCMLicenseRequest enterpriseUserId */ - enterpriseUserId?: (number|Long|null); + enterpriseUserId?: number | Long | null; } /** Represents a KCMLicenseRequest. */ class KCMLicenseRequest implements IKCMLicenseRequest { - /** * Constructs a new KCMLicenseRequest. * @param [properties] Properties to set @@ -86790,7 +90970,7 @@ export namespace BI { constructor(properties?: BI.IKCMLicenseRequest); /** KCMLicenseRequest enterpriseUserId. */ - public enterpriseUserId: (number|Long); + public enterpriseUserId: number | Long; /** * Creates a new KCMLicenseRequest instance using the specified properties. @@ -86823,7 +91003,7 @@ export namespace BI { * @throws {Error} If the payload is 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.KCMLicenseRequest; /** * Decodes a KCMLicenseRequest message from the specified reader or buffer, length delimited. @@ -86832,14 +91012,14 @@ export namespace BI { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BI.KCMLicenseRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): BI.KCMLicenseRequest; /** * Verifies a KCMLicenseRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a KCMLicenseRequest message from a plain object. Also converts values to their respective internal types. @@ -86854,7 +91034,10 @@ export namespace BI { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.KCMLicenseRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: BI.KCMLicenseRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this KCMLicenseRequest to JSON. @@ -86872,14 +91055,12 @@ export namespace BI { /** Properties of a KCMLicenseResponse. */ interface IKCMLicenseResponse { - /** KCMLicenseResponse message */ - message?: (string|null); + message?: string | null; } /** Represents a KCMLicenseResponse. */ class KCMLicenseResponse implements IKCMLicenseResponse { - /** * Constructs a new KCMLicenseResponse. * @param [properties] Properties to set @@ -86920,7 +91101,7 @@ export namespace BI { * @throws {Error} If the payload is 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.KCMLicenseResponse; /** * Decodes a KCMLicenseResponse message from the specified reader or buffer, length delimited. @@ -86929,14 +91110,14 @@ export namespace BI { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BI.KCMLicenseResponse; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): BI.KCMLicenseResponse; /** * Verifies a KCMLicenseResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a KCMLicenseResponse message from a plain object. Also converts values to their respective internal types. @@ -86951,7 +91132,10 @@ export namespace BI { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.KCMLicenseResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: BI.KCMLicenseResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this KCMLicenseResponse to JSON. @@ -86976,28 +91160,26 @@ export namespace BI { TRACKING_POPUP_PAID = 4, TRACKING_PUSH_CLICKED = 5, CONSOLE_ACTION = 6, - VAULT_ACTION = 7 + VAULT_ACTION = 7, } /** Properties of an EventRequest. */ interface IEventRequest { - /** EventRequest eventType */ - eventType?: (BI.EventType|null); + eventType?: BI.EventType | null; /** EventRequest eventValue */ - eventValue?: (string|null); + eventValue?: string | null; /** EventRequest eventTime */ - eventTime?: (number|Long|null); + eventTime?: number | Long | null; /** EventRequest attributes */ - attributes?: (google.protobuf.IStruct|null); + attributes?: google.protobuf.IStruct | null; } /** Represents an EventRequest. */ class EventRequest implements IEventRequest { - /** * Constructs a new EventRequest. * @param [properties] Properties to set @@ -87011,10 +91193,10 @@ export namespace BI { public eventValue: string; /** EventRequest eventTime. */ - public eventTime: (number|Long); + public eventTime: number | Long; /** EventRequest attributes. */ - public attributes?: (google.protobuf.IStruct|null); + public attributes?: google.protobuf.IStruct | null; /** * Creates a new EventRequest instance using the specified properties. @@ -87047,7 +91229,7 @@ export namespace BI { * @throws {Error} If the payload is 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.EventRequest; /** * Decodes an EventRequest message from the specified reader or buffer, length delimited. @@ -87056,14 +91238,14 @@ export namespace BI { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BI.EventRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): BI.EventRequest; /** * Verifies an EventRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an EventRequest message from a plain object. Also converts values to their respective internal types. @@ -87096,14 +91278,12 @@ export namespace BI { /** Properties of an EventsRequest. */ interface IEventsRequest { - /** EventsRequest event */ - event?: (BI.IEventRequest[]|null); + event?: BI.IEventRequest[] | null; } /** Represents an EventsRequest. */ class EventsRequest implements IEventsRequest { - /** * Constructs a new EventsRequest. * @param [properties] Properties to set @@ -87144,7 +91324,7 @@ export namespace BI { * @throws {Error} If the payload is 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.EventsRequest; /** * Decodes an EventsRequest message from the specified reader or buffer, length delimited. @@ -87153,14 +91333,14 @@ export namespace BI { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BI.EventsRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): BI.EventsRequest; /** * Verifies an EventsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an EventsRequest message from a plain object. Also converts values to their respective internal types. @@ -87193,17 +91373,15 @@ export namespace BI { /** Properties of an EventResponse. */ interface IEventResponse { - /** EventResponse index */ - index?: (number|null); + index?: number | null; /** EventResponse status */ - status?: (boolean|null); + status?: boolean | null; } /** Represents an EventResponse. */ class EventResponse implements IEventResponse { - /** * Constructs a new EventResponse. * @param [properties] Properties to set @@ -87247,7 +91425,7 @@ export namespace BI { * @throws {Error} If the payload is 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.EventResponse; /** * Decodes an EventResponse message from the specified reader or buffer, length delimited. @@ -87256,14 +91434,14 @@ export namespace BI { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BI.EventResponse; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): BI.EventResponse; /** * Verifies an EventResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an EventResponse message from a plain object. Also converts values to their respective internal types. @@ -87296,14 +91474,12 @@ export namespace BI { /** Properties of an EventsResponse. */ interface IEventsResponse { - /** EventsResponse response */ - response?: (BI.IEventResponse[]|null); + response?: BI.IEventResponse[] | null; } /** Represents an EventsResponse. */ class EventsResponse implements IEventsResponse { - /** * Constructs a new EventsResponse. * @param [properties] Properties to set @@ -87344,7 +91520,7 @@ export namespace BI { * @throws {Error} If the payload is 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.EventsResponse; /** * Decodes an EventsResponse message from the specified reader or buffer, length delimited. @@ -87353,14 +91529,14 @@ export namespace BI { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BI.EventsResponse; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): BI.EventsResponse; /** * Verifies an EventsResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an EventsResponse message from a plain object. Also converts values to their respective internal types. @@ -87375,7 +91551,10 @@ export namespace BI { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.EventsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: BI.EventsResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this EventsResponse to JSON. @@ -87393,38 +91572,36 @@ export namespace BI { /** Properties of a CustomerCaptureRequest. */ interface ICustomerCaptureRequest { - /** CustomerCaptureRequest pageUrl */ - pageUrl?: (string|null); + pageUrl?: string | null; /** CustomerCaptureRequest tree */ - tree?: (string|null); + tree?: string | null; /** CustomerCaptureRequest hash */ - hash?: (string|null); + hash?: string | null; /** CustomerCaptureRequest image */ - image?: (string|null); + image?: string | null; /** CustomerCaptureRequest pageLoadTime */ - pageLoadTime?: (string|null); + pageLoadTime?: string | null; /** CustomerCaptureRequest keyId */ - keyId?: (string|null); + keyId?: string | null; /** CustomerCaptureRequest test */ - test?: (boolean|null); + test?: boolean | null; /** CustomerCaptureRequest issueType */ - issueType?: (string|null); + issueType?: string | null; /** CustomerCaptureRequest notes */ - notes?: (string|null); + notes?: string | null; } /** Represents a CustomerCaptureRequest. */ class CustomerCaptureRequest implements ICustomerCaptureRequest { - /** * Constructs a new CustomerCaptureRequest. * @param [properties] Properties to set @@ -87489,7 +91666,7 @@ export namespace BI { * @throws {Error} If the payload is 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.CustomerCaptureRequest; /** * Decodes a CustomerCaptureRequest message from the specified reader or buffer, length delimited. @@ -87498,14 +91675,14 @@ export namespace BI { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BI.CustomerCaptureRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): BI.CustomerCaptureRequest; /** * Verifies a CustomerCaptureRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a CustomerCaptureRequest message from a plain object. Also converts values to their respective internal types. @@ -87520,7 +91697,10 @@ export namespace BI { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.CustomerCaptureRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: BI.CustomerCaptureRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this CustomerCaptureRequest to JSON. @@ -87537,12 +91717,10 @@ export namespace BI { } /** Properties of a CustomerCaptureResponse. */ - interface ICustomerCaptureResponse { - } + interface ICustomerCaptureResponse {} /** Represents a CustomerCaptureResponse. */ class CustomerCaptureResponse implements ICustomerCaptureResponse { - /** * Constructs a new CustomerCaptureResponse. * @param [properties] Properties to set @@ -87570,7 +91748,10 @@ export namespace BI { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: BI.ICustomerCaptureResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: BI.ICustomerCaptureResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a CustomerCaptureResponse message from the specified reader or buffer. @@ -87580,7 +91761,7 @@ export namespace BI { * @throws {Error} If the payload is 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.CustomerCaptureResponse; /** * Decodes a CustomerCaptureResponse message from the specified reader or buffer, length delimited. @@ -87589,14 +91770,14 @@ export namespace BI { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BI.CustomerCaptureResponse; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): BI.CustomerCaptureResponse; /** * Verifies a CustomerCaptureResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a CustomerCaptureResponse message from a plain object. Also converts values to their respective internal types. @@ -87611,7 +91792,10 @@ export namespace BI { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.CustomerCaptureResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: BI.CustomerCaptureResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this CustomerCaptureResponse to JSON. @@ -87639,25 +91823,23 @@ export namespace BI { addPAM = 7, addSilverSupport = 8, addPlatinumSupport = 9, - addKEPM = 10 + addKEPM = 10, } /** Properties of an Error. */ interface IError { - /** Error code */ - code?: (string|null); + code?: string | null; /** Error message */ - message?: (string|null); + message?: string | null; /** Error extras */ - extras?: ({ [k: string]: string }|null); + extras?: { [k: string]: string } | null; } /** Represents an Error. */ class Error implements IError { - /** * Constructs a new Error. * @param [properties] Properties to set @@ -87704,7 +91886,7 @@ export namespace BI { * @throws {Error} If the payload is 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.Error; /** * Decodes an Error message from the specified reader or buffer, length delimited. @@ -87713,14 +91895,14 @@ export namespace BI { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BI.Error; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): BI.Error; /** * Verifies an Error message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an Error message from a plain object. Also converts values to their respective internal types. @@ -87753,29 +91935,27 @@ export namespace BI { /** Properties of a QuotePurchase. */ interface IQuotePurchase { - /** QuotePurchase quoteTotal */ - quoteTotal?: (number|null); + quoteTotal?: number | null; /** QuotePurchase includedTax */ - includedTax?: (boolean|null); + includedTax?: boolean | null; /** QuotePurchase includedOtherAddons */ - includedOtherAddons?: (boolean|null); + includedOtherAddons?: boolean | null; /** QuotePurchase taxAmount */ - taxAmount?: (number|null); + taxAmount?: number | null; /** QuotePurchase taxLabel */ - taxLabel?: (string|null); + taxLabel?: string | null; /** QuotePurchase purchaseIdentifier */ - purchaseIdentifier?: (string|null); + purchaseIdentifier?: string | null; } /** Represents a QuotePurchase. */ class QuotePurchase implements IQuotePurchase { - /** * Constructs a new QuotePurchase. * @param [properties] Properties to set @@ -87831,7 +92011,7 @@ export namespace BI { * @throws {Error} If the payload is 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.QuotePurchase; /** * Decodes a QuotePurchase message from the specified reader or buffer, length delimited. @@ -87840,14 +92020,14 @@ export namespace BI { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BI.QuotePurchase; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): BI.QuotePurchase; /** * Verifies a QuotePurchase message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a QuotePurchase message from a plain object. Also converts values to their respective internal types. @@ -87880,17 +92060,15 @@ export namespace BI { /** Properties of a PurchaseOptions. */ interface IPurchaseOptions { - /** PurchaseOptions inConsole */ - inConsole?: (boolean|null); + inConsole?: boolean | null; /** PurchaseOptions externalCheckout */ - externalCheckout?: (boolean|null); + externalCheckout?: boolean | null; } /** Represents a PurchaseOptions. */ class PurchaseOptions implements IPurchaseOptions { - /** * Constructs a new PurchaseOptions. * @param [properties] Properties to set @@ -87898,16 +92076,16 @@ export namespace BI { constructor(properties?: BI.IPurchaseOptions); /** PurchaseOptions inConsole. */ - public inConsole?: (boolean|null); + public inConsole?: boolean | null; /** PurchaseOptions externalCheckout. */ - public externalCheckout?: (boolean|null); + public externalCheckout?: boolean | null; /** PurchaseOptions _inConsole. */ - public _inConsole?: "inConsole"; + public _inConsole?: 'inConsole'; /** PurchaseOptions _externalCheckout. */ - public _externalCheckout?: "externalCheckout"; + public _externalCheckout?: 'externalCheckout'; /** * Creates a new PurchaseOptions instance using the specified properties. @@ -87940,7 +92118,7 @@ export namespace BI { * @throws {Error} If the payload is 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.PurchaseOptions; /** * Decodes a PurchaseOptions message from the specified reader or buffer, length delimited. @@ -87949,14 +92127,14 @@ export namespace BI { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BI.PurchaseOptions; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): BI.PurchaseOptions; /** * Verifies a PurchaseOptions message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a PurchaseOptions message from a plain object. Also converts values to their respective internal types. @@ -87971,7 +92149,10 @@ export namespace BI { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.PurchaseOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: BI.PurchaseOptions, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this PurchaseOptions to JSON. @@ -87989,47 +92170,45 @@ export namespace BI { /** Properties of an AddonPurchaseOptions. */ interface IAddonPurchaseOptions { - /** AddonPurchaseOptions storage */ - storage?: (BI.IPurchaseOptions|null); + storage?: BI.IPurchaseOptions | null; /** AddonPurchaseOptions audit */ - audit?: (BI.IPurchaseOptions|null); + audit?: BI.IPurchaseOptions | null; /** AddonPurchaseOptions breachwatch */ - breachwatch?: (BI.IPurchaseOptions|null); + breachwatch?: BI.IPurchaseOptions | null; /** AddonPurchaseOptions chat */ - chat?: (BI.IPurchaseOptions|null); + chat?: BI.IPurchaseOptions | null; /** AddonPurchaseOptions compliance */ - compliance?: (BI.IPurchaseOptions|null); + compliance?: BI.IPurchaseOptions | null; /** AddonPurchaseOptions professionalServicesSilver */ - professionalServicesSilver?: (BI.IPurchaseOptions|null); + professionalServicesSilver?: BI.IPurchaseOptions | null; /** AddonPurchaseOptions professionalServicesPlatinum */ - professionalServicesPlatinum?: (BI.IPurchaseOptions|null); + professionalServicesPlatinum?: BI.IPurchaseOptions | null; /** AddonPurchaseOptions pam */ - pam?: (BI.IPurchaseOptions|null); + pam?: BI.IPurchaseOptions | null; /** AddonPurchaseOptions epm */ - epm?: (BI.IPurchaseOptions|null); + epm?: BI.IPurchaseOptions | null; /** AddonPurchaseOptions secretsManager */ - secretsManager?: (BI.IPurchaseOptions|null); + secretsManager?: BI.IPurchaseOptions | null; /** AddonPurchaseOptions connectionManager */ - connectionManager?: (BI.IPurchaseOptions|null); + connectionManager?: BI.IPurchaseOptions | null; /** AddonPurchaseOptions remoteBrowserIsolation */ - remoteBrowserIsolation?: (BI.IPurchaseOptions|null); + remoteBrowserIsolation?: BI.IPurchaseOptions | null; } /** Represents an AddonPurchaseOptions. */ class AddonPurchaseOptions implements IAddonPurchaseOptions { - /** * Constructs a new AddonPurchaseOptions. * @param [properties] Properties to set @@ -88037,76 +92216,76 @@ export namespace BI { constructor(properties?: BI.IAddonPurchaseOptions); /** AddonPurchaseOptions storage. */ - public storage?: (BI.IPurchaseOptions|null); + public storage?: BI.IPurchaseOptions | null; /** AddonPurchaseOptions audit. */ - public audit?: (BI.IPurchaseOptions|null); + public audit?: BI.IPurchaseOptions | null; /** AddonPurchaseOptions breachwatch. */ - public breachwatch?: (BI.IPurchaseOptions|null); + public breachwatch?: BI.IPurchaseOptions | null; /** AddonPurchaseOptions chat. */ - public chat?: (BI.IPurchaseOptions|null); + public chat?: BI.IPurchaseOptions | null; /** AddonPurchaseOptions compliance. */ - public compliance?: (BI.IPurchaseOptions|null); + public compliance?: BI.IPurchaseOptions | null; /** AddonPurchaseOptions professionalServicesSilver. */ - public professionalServicesSilver?: (BI.IPurchaseOptions|null); + public professionalServicesSilver?: BI.IPurchaseOptions | null; /** AddonPurchaseOptions professionalServicesPlatinum. */ - public professionalServicesPlatinum?: (BI.IPurchaseOptions|null); + public professionalServicesPlatinum?: BI.IPurchaseOptions | null; /** AddonPurchaseOptions pam. */ - public pam?: (BI.IPurchaseOptions|null); + public pam?: BI.IPurchaseOptions | null; /** AddonPurchaseOptions epm. */ - public epm?: (BI.IPurchaseOptions|null); + public epm?: BI.IPurchaseOptions | null; /** AddonPurchaseOptions secretsManager. */ - public secretsManager?: (BI.IPurchaseOptions|null); + public secretsManager?: BI.IPurchaseOptions | null; /** AddonPurchaseOptions connectionManager. */ - public connectionManager?: (BI.IPurchaseOptions|null); + public connectionManager?: BI.IPurchaseOptions | null; /** AddonPurchaseOptions remoteBrowserIsolation. */ - public remoteBrowserIsolation?: (BI.IPurchaseOptions|null); + public remoteBrowserIsolation?: BI.IPurchaseOptions | null; /** AddonPurchaseOptions _storage. */ - public _storage?: "storage"; + public _storage?: 'storage'; /** AddonPurchaseOptions _audit. */ - public _audit?: "audit"; + public _audit?: 'audit'; /** AddonPurchaseOptions _breachwatch. */ - public _breachwatch?: "breachwatch"; + public _breachwatch?: 'breachwatch'; /** AddonPurchaseOptions _chat. */ - public _chat?: "chat"; + public _chat?: 'chat'; /** AddonPurchaseOptions _compliance. */ - public _compliance?: "compliance"; + public _compliance?: 'compliance'; /** AddonPurchaseOptions _professionalServicesSilver. */ - public _professionalServicesSilver?: "professionalServicesSilver"; + public _professionalServicesSilver?: 'professionalServicesSilver'; /** AddonPurchaseOptions _professionalServicesPlatinum. */ - public _professionalServicesPlatinum?: "professionalServicesPlatinum"; + public _professionalServicesPlatinum?: 'professionalServicesPlatinum'; /** AddonPurchaseOptions _pam. */ - public _pam?: "pam"; + public _pam?: 'pam'; /** AddonPurchaseOptions _epm. */ - public _epm?: "epm"; + public _epm?: 'epm'; /** AddonPurchaseOptions _secretsManager. */ - public _secretsManager?: "secretsManager"; + public _secretsManager?: 'secretsManager'; /** AddonPurchaseOptions _connectionManager. */ - public _connectionManager?: "connectionManager"; + public _connectionManager?: 'connectionManager'; /** AddonPurchaseOptions _remoteBrowserIsolation. */ - public _remoteBrowserIsolation?: "remoteBrowserIsolation"; + public _remoteBrowserIsolation?: 'remoteBrowserIsolation'; /** * Creates a new AddonPurchaseOptions instance using the specified properties. @@ -88139,7 +92318,7 @@ export namespace BI { * @throws {Error} If the payload is 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.AddonPurchaseOptions; /** * Decodes an AddonPurchaseOptions message from the specified reader or buffer, length delimited. @@ -88148,14 +92327,14 @@ export namespace BI { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BI.AddonPurchaseOptions; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): BI.AddonPurchaseOptions; /** * Verifies an AddonPurchaseOptions message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an AddonPurchaseOptions message from a plain object. Also converts values to their respective internal types. @@ -88170,7 +92349,10 @@ export namespace BI { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.AddonPurchaseOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: BI.AddonPurchaseOptions, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this AddonPurchaseOptions to JSON. @@ -88188,20 +92370,18 @@ export namespace BI { /** Properties of an AvailablePurchaseOptions. */ interface IAvailablePurchaseOptions { - /** AvailablePurchaseOptions basePlan */ - basePlan?: (BI.IPurchaseOptions|null); + basePlan?: BI.IPurchaseOptions | null; /** AvailablePurchaseOptions users */ - users?: (BI.IPurchaseOptions|null); + users?: BI.IPurchaseOptions | null; /** AvailablePurchaseOptions addons */ - addons?: (BI.IAddonPurchaseOptions|null); + addons?: BI.IAddonPurchaseOptions | null; } /** Represents an AvailablePurchaseOptions. */ class AvailablePurchaseOptions implements IAvailablePurchaseOptions { - /** * Constructs a new AvailablePurchaseOptions. * @param [properties] Properties to set @@ -88209,13 +92389,13 @@ export namespace BI { constructor(properties?: BI.IAvailablePurchaseOptions); /** AvailablePurchaseOptions basePlan. */ - public basePlan?: (BI.IPurchaseOptions|null); + public basePlan?: BI.IPurchaseOptions | null; /** AvailablePurchaseOptions users. */ - public users?: (BI.IPurchaseOptions|null); + public users?: BI.IPurchaseOptions | null; /** AvailablePurchaseOptions addons. */ - public addons?: (BI.IAddonPurchaseOptions|null); + public addons?: BI.IAddonPurchaseOptions | null; /** * Creates a new AvailablePurchaseOptions instance using the specified properties. @@ -88238,7 +92418,10 @@ export namespace BI { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: BI.IAvailablePurchaseOptions, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: BI.IAvailablePurchaseOptions, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes an AvailablePurchaseOptions message from the specified reader or buffer. @@ -88248,7 +92431,7 @@ export namespace BI { * @throws {Error} If the payload is 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.AvailablePurchaseOptions; /** * Decodes an AvailablePurchaseOptions message from the specified reader or buffer, length delimited. @@ -88257,14 +92440,14 @@ export namespace BI { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BI.AvailablePurchaseOptions; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): BI.AvailablePurchaseOptions; /** * Verifies an AvailablePurchaseOptions message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an AvailablePurchaseOptions message from a plain object. Also converts values to their respective internal types. @@ -88279,7 +92462,10 @@ export namespace BI { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.AvailablePurchaseOptions, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: BI.AvailablePurchaseOptions, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this AvailablePurchaseOptions to JSON. @@ -88296,12 +92482,10 @@ export namespace BI { } /** Properties of an UpgradeLicenseStatusRequest. */ - interface IUpgradeLicenseStatusRequest { - } + interface IUpgradeLicenseStatusRequest {} /** Represents an UpgradeLicenseStatusRequest. */ class UpgradeLicenseStatusRequest implements IUpgradeLicenseStatusRequest { - /** * Constructs a new UpgradeLicenseStatusRequest. * @param [properties] Properties to set @@ -88329,7 +92513,10 @@ export namespace BI { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: BI.IUpgradeLicenseStatusRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: BI.IUpgradeLicenseStatusRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes an UpgradeLicenseStatusRequest message from the specified reader or buffer. @@ -88339,7 +92526,7 @@ export namespace BI { * @throws {Error} If the payload is 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.UpgradeLicenseStatusRequest; /** * Decodes an UpgradeLicenseStatusRequest message from the specified reader or buffer, length delimited. @@ -88348,14 +92535,14 @@ export namespace BI { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BI.UpgradeLicenseStatusRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): BI.UpgradeLicenseStatusRequest; /** * Verifies an UpgradeLicenseStatusRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an UpgradeLicenseStatusRequest message from a plain object. Also converts values to their respective internal types. @@ -88370,7 +92557,10 @@ export namespace BI { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.UpgradeLicenseStatusRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: BI.UpgradeLicenseStatusRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this UpgradeLicenseStatusRequest to JSON. @@ -88388,20 +92578,18 @@ export namespace BI { /** Properties of an UpgradeLicenseStatusResponse. */ interface IUpgradeLicenseStatusResponse { - /** UpgradeLicenseStatusResponse allowPurchaseFromConsole */ - allowPurchaseFromConsole?: (boolean|null); + allowPurchaseFromConsole?: boolean | null; /** UpgradeLicenseStatusResponse purchaseOptions */ - purchaseOptions?: (BI.IAvailablePurchaseOptions|null); + purchaseOptions?: BI.IAvailablePurchaseOptions | null; /** UpgradeLicenseStatusResponse error */ - error?: (BI.IError|null); + error?: BI.IError | null; } /** Represents an UpgradeLicenseStatusResponse. */ class UpgradeLicenseStatusResponse implements IUpgradeLicenseStatusResponse { - /** * Constructs a new UpgradeLicenseStatusResponse. * @param [properties] Properties to set @@ -88412,10 +92600,10 @@ export namespace BI { public allowPurchaseFromConsole: boolean; /** UpgradeLicenseStatusResponse purchaseOptions. */ - public purchaseOptions?: (BI.IAvailablePurchaseOptions|null); + public purchaseOptions?: BI.IAvailablePurchaseOptions | null; /** UpgradeLicenseStatusResponse error. */ - public error?: (BI.IError|null); + public error?: BI.IError | null; /** * Creates a new UpgradeLicenseStatusResponse instance using the specified properties. @@ -88438,7 +92626,10 @@ export namespace BI { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: BI.IUpgradeLicenseStatusResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: BI.IUpgradeLicenseStatusResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes an UpgradeLicenseStatusResponse message from the specified reader or buffer. @@ -88448,7 +92639,7 @@ export namespace BI { * @throws {Error} If the payload is 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.UpgradeLicenseStatusResponse; /** * Decodes an UpgradeLicenseStatusResponse message from the specified reader or buffer, length delimited. @@ -88457,14 +92648,14 @@ export namespace BI { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BI.UpgradeLicenseStatusResponse; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): BI.UpgradeLicenseStatusResponse; /** * Verifies an UpgradeLicenseStatusResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an UpgradeLicenseStatusResponse message from a plain object. Also converts values to their respective internal types. @@ -88479,7 +92670,10 @@ export namespace BI { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.UpgradeLicenseStatusResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: BI.UpgradeLicenseStatusResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this UpgradeLicenseStatusResponse to JSON. @@ -88497,20 +92691,18 @@ export namespace BI { /** Properties of an UpgradeLicenseQuotePurchaseRequest. */ interface IUpgradeLicenseQuotePurchaseRequest { - /** UpgradeLicenseQuotePurchaseRequest productType */ - productType?: (BI.PurchaseProductType|null); + productType?: BI.PurchaseProductType | null; /** UpgradeLicenseQuotePurchaseRequest quantity */ - quantity?: (number|null); + quantity?: number | null; /** UpgradeLicenseQuotePurchaseRequest tier */ - tier?: (number|null); + tier?: number | null; } /** Represents an UpgradeLicenseQuotePurchaseRequest. */ class UpgradeLicenseQuotePurchaseRequest implements IUpgradeLicenseQuotePurchaseRequest { - /** * Constructs a new UpgradeLicenseQuotePurchaseRequest. * @param [properties] Properties to set @@ -88531,7 +92723,9 @@ export namespace BI { * @param [properties] Properties to set * @returns UpgradeLicenseQuotePurchaseRequest instance */ - public static create(properties?: BI.IUpgradeLicenseQuotePurchaseRequest): BI.UpgradeLicenseQuotePurchaseRequest; + public static create( + properties?: BI.IUpgradeLicenseQuotePurchaseRequest + ): BI.UpgradeLicenseQuotePurchaseRequest; /** * Encodes the specified UpgradeLicenseQuotePurchaseRequest message. Does not implicitly {@link BI.UpgradeLicenseQuotePurchaseRequest.verify|verify} messages. @@ -88539,7 +92733,10 @@ export namespace BI { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: BI.IUpgradeLicenseQuotePurchaseRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: BI.IUpgradeLicenseQuotePurchaseRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified UpgradeLicenseQuotePurchaseRequest message, length delimited. Does not implicitly {@link BI.UpgradeLicenseQuotePurchaseRequest.verify|verify} messages. @@ -88547,7 +92744,10 @@ export namespace BI { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: BI.IUpgradeLicenseQuotePurchaseRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: BI.IUpgradeLicenseQuotePurchaseRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes an UpgradeLicenseQuotePurchaseRequest message from the specified reader or buffer. @@ -88557,7 +92757,10 @@ export namespace BI { * @throws {Error} If the payload is 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.UpgradeLicenseQuotePurchaseRequest; /** * Decodes an UpgradeLicenseQuotePurchaseRequest message from the specified reader or buffer, length delimited. @@ -88566,14 +92769,14 @@ export namespace BI { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BI.UpgradeLicenseQuotePurchaseRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): BI.UpgradeLicenseQuotePurchaseRequest; /** * Verifies an UpgradeLicenseQuotePurchaseRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an UpgradeLicenseQuotePurchaseRequest message from a plain object. Also converts values to their respective internal types. @@ -88588,7 +92791,10 @@ export namespace BI { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.UpgradeLicenseQuotePurchaseRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: BI.UpgradeLicenseQuotePurchaseRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this UpgradeLicenseQuotePurchaseRequest to JSON. @@ -88606,23 +92812,21 @@ export namespace BI { /** Properties of an UpgradeLicenseQuotePurchaseResponse. */ interface IUpgradeLicenseQuotePurchaseResponse { - /** UpgradeLicenseQuotePurchaseResponse success */ - success?: (boolean|null); + success?: boolean | null; /** UpgradeLicenseQuotePurchaseResponse quotePurchase */ - quotePurchase?: (BI.IQuotePurchase|null); + quotePurchase?: BI.IQuotePurchase | null; /** UpgradeLicenseQuotePurchaseResponse viewSummaryLink */ - viewSummaryLink?: (string|null); + viewSummaryLink?: string | null; /** UpgradeLicenseQuotePurchaseResponse error */ - error?: (BI.IError|null); + error?: BI.IError | null; } /** Represents an UpgradeLicenseQuotePurchaseResponse. */ class UpgradeLicenseQuotePurchaseResponse implements IUpgradeLicenseQuotePurchaseResponse { - /** * Constructs a new UpgradeLicenseQuotePurchaseResponse. * @param [properties] Properties to set @@ -88633,20 +92837,22 @@ export namespace BI { public success: boolean; /** UpgradeLicenseQuotePurchaseResponse quotePurchase. */ - public quotePurchase?: (BI.IQuotePurchase|null); + public quotePurchase?: BI.IQuotePurchase | null; /** UpgradeLicenseQuotePurchaseResponse viewSummaryLink. */ public viewSummaryLink: string; /** UpgradeLicenseQuotePurchaseResponse error. */ - public error?: (BI.IError|null); + public error?: BI.IError | null; /** * 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; + public static create( + properties?: BI.IUpgradeLicenseQuotePurchaseResponse + ): BI.UpgradeLicenseQuotePurchaseResponse; /** * Encodes the specified UpgradeLicenseQuotePurchaseResponse message. Does not implicitly {@link BI.UpgradeLicenseQuotePurchaseResponse.verify|verify} messages. @@ -88654,7 +92860,10 @@ export namespace BI { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: BI.IUpgradeLicenseQuotePurchaseResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: BI.IUpgradeLicenseQuotePurchaseResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified UpgradeLicenseQuotePurchaseResponse message, length delimited. Does not implicitly {@link BI.UpgradeLicenseQuotePurchaseResponse.verify|verify} messages. @@ -88662,7 +92871,10 @@ export namespace BI { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: BI.IUpgradeLicenseQuotePurchaseResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: BI.IUpgradeLicenseQuotePurchaseResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes an UpgradeLicenseQuotePurchaseResponse message from the specified reader or buffer. @@ -88672,7 +92884,10 @@ export namespace BI { * @throws {Error} If the payload is 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.UpgradeLicenseQuotePurchaseResponse; /** * Decodes an UpgradeLicenseQuotePurchaseResponse message from the specified reader or buffer, length delimited. @@ -88681,14 +92896,14 @@ export namespace BI { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BI.UpgradeLicenseQuotePurchaseResponse; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): BI.UpgradeLicenseQuotePurchaseResponse; /** * Verifies an UpgradeLicenseQuotePurchaseResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an UpgradeLicenseQuotePurchaseResponse message from a plain object. Also converts values to their respective internal types. @@ -88703,7 +92918,10 @@ export namespace BI { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.UpgradeLicenseQuotePurchaseResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: BI.UpgradeLicenseQuotePurchaseResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this UpgradeLicenseQuotePurchaseResponse to JSON. @@ -88721,23 +92939,21 @@ export namespace BI { /** Properties of an UpgradeLicenseCompletePurchaseRequest. */ interface IUpgradeLicenseCompletePurchaseRequest { - /** UpgradeLicenseCompletePurchaseRequest productType */ - productType?: (BI.PurchaseProductType|null); + productType?: BI.PurchaseProductType | null; /** UpgradeLicenseCompletePurchaseRequest quantity */ - quantity?: (number|null); + quantity?: number | null; /** UpgradeLicenseCompletePurchaseRequest quotePurchase */ - quotePurchase?: (BI.IQuotePurchase|null); + quotePurchase?: BI.IQuotePurchase | null; /** UpgradeLicenseCompletePurchaseRequest tier */ - tier?: (number|null); + tier?: number | null; } /** Represents an UpgradeLicenseCompletePurchaseRequest. */ class UpgradeLicenseCompletePurchaseRequest implements IUpgradeLicenseCompletePurchaseRequest { - /** * Constructs a new UpgradeLicenseCompletePurchaseRequest. * @param [properties] Properties to set @@ -88751,7 +92967,7 @@ export namespace BI { public quantity: number; /** UpgradeLicenseCompletePurchaseRequest quotePurchase. */ - public quotePurchase?: (BI.IQuotePurchase|null); + public quotePurchase?: BI.IQuotePurchase | null; /** UpgradeLicenseCompletePurchaseRequest tier. */ public tier: number; @@ -88761,7 +92977,9 @@ export namespace BI { * @param [properties] Properties to set * @returns UpgradeLicenseCompletePurchaseRequest instance */ - public static create(properties?: BI.IUpgradeLicenseCompletePurchaseRequest): BI.UpgradeLicenseCompletePurchaseRequest; + public static create( + properties?: BI.IUpgradeLicenseCompletePurchaseRequest + ): BI.UpgradeLicenseCompletePurchaseRequest; /** * Encodes the specified UpgradeLicenseCompletePurchaseRequest message. Does not implicitly {@link BI.UpgradeLicenseCompletePurchaseRequest.verify|verify} messages. @@ -88769,7 +92987,10 @@ export namespace BI { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: BI.IUpgradeLicenseCompletePurchaseRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: BI.IUpgradeLicenseCompletePurchaseRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified UpgradeLicenseCompletePurchaseRequest message, length delimited. Does not implicitly {@link BI.UpgradeLicenseCompletePurchaseRequest.verify|verify} messages. @@ -88777,7 +92998,10 @@ export namespace BI { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: BI.IUpgradeLicenseCompletePurchaseRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: BI.IUpgradeLicenseCompletePurchaseRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes an UpgradeLicenseCompletePurchaseRequest message from the specified reader or buffer. @@ -88787,7 +93011,10 @@ export namespace BI { * @throws {Error} If the payload is 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.UpgradeLicenseCompletePurchaseRequest; /** * Decodes an UpgradeLicenseCompletePurchaseRequest message from the specified reader or buffer, length delimited. @@ -88796,14 +93023,14 @@ export namespace BI { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BI.UpgradeLicenseCompletePurchaseRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): BI.UpgradeLicenseCompletePurchaseRequest; /** * Verifies an UpgradeLicenseCompletePurchaseRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an UpgradeLicenseCompletePurchaseRequest message from a plain object. Also converts values to their respective internal types. @@ -88818,7 +93045,10 @@ export namespace BI { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.UpgradeLicenseCompletePurchaseRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: BI.UpgradeLicenseCompletePurchaseRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this UpgradeLicenseCompletePurchaseRequest to JSON. @@ -88836,23 +93066,21 @@ export namespace BI { /** Properties of an UpgradeLicenseCompletePurchaseResponse. */ interface IUpgradeLicenseCompletePurchaseResponse { - /** UpgradeLicenseCompletePurchaseResponse success */ - success?: (boolean|null); + success?: boolean | null; /** UpgradeLicenseCompletePurchaseResponse invoiceNumber */ - invoiceNumber?: (string|null); + invoiceNumber?: string | null; /** UpgradeLicenseCompletePurchaseResponse error */ - error?: (BI.IError|null); + error?: BI.IError | null; /** UpgradeLicenseCompletePurchaseResponse quotePurchase */ - quotePurchase?: (BI.IQuotePurchase|null); + quotePurchase?: BI.IQuotePurchase | null; } /** Represents an UpgradeLicenseCompletePurchaseResponse. */ class UpgradeLicenseCompletePurchaseResponse implements IUpgradeLicenseCompletePurchaseResponse { - /** * Constructs a new UpgradeLicenseCompletePurchaseResponse. * @param [properties] Properties to set @@ -88866,17 +93094,19 @@ export namespace BI { public invoiceNumber: string; /** UpgradeLicenseCompletePurchaseResponse error. */ - public error?: (BI.IError|null); + public error?: BI.IError | null; /** UpgradeLicenseCompletePurchaseResponse quotePurchase. */ - public quotePurchase?: (BI.IQuotePurchase|null); + public quotePurchase?: BI.IQuotePurchase | null; /** * 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; + public static create( + properties?: BI.IUpgradeLicenseCompletePurchaseResponse + ): BI.UpgradeLicenseCompletePurchaseResponse; /** * Encodes the specified UpgradeLicenseCompletePurchaseResponse message. Does not implicitly {@link BI.UpgradeLicenseCompletePurchaseResponse.verify|verify} messages. @@ -88884,7 +93114,10 @@ export namespace BI { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: BI.IUpgradeLicenseCompletePurchaseResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: BI.IUpgradeLicenseCompletePurchaseResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified UpgradeLicenseCompletePurchaseResponse message, length delimited. Does not implicitly {@link BI.UpgradeLicenseCompletePurchaseResponse.verify|verify} messages. @@ -88892,7 +93125,10 @@ export namespace BI { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: BI.IUpgradeLicenseCompletePurchaseResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: BI.IUpgradeLicenseCompletePurchaseResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes an UpgradeLicenseCompletePurchaseResponse message from the specified reader or buffer. @@ -88902,7 +93138,10 @@ export namespace BI { * @throws {Error} If the payload is 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.UpgradeLicenseCompletePurchaseResponse; /** * Decodes an UpgradeLicenseCompletePurchaseResponse message from the specified reader or buffer, length delimited. @@ -88911,14 +93150,14 @@ export namespace BI { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BI.UpgradeLicenseCompletePurchaseResponse; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): BI.UpgradeLicenseCompletePurchaseResponse; /** * Verifies an UpgradeLicenseCompletePurchaseResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an UpgradeLicenseCompletePurchaseResponse message from a plain object. Also converts values to their respective internal types. @@ -88933,7 +93172,10 @@ export namespace BI { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.UpgradeLicenseCompletePurchaseResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: BI.UpgradeLicenseCompletePurchaseResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this UpgradeLicenseCompletePurchaseResponse to JSON. @@ -88951,17 +93193,15 @@ export namespace BI { /** Properties of an EnterpriseBasePlan. */ interface IEnterpriseBasePlan { - /** EnterpriseBasePlan baseplanVersion */ - baseplanVersion?: (BI.EnterpriseBasePlan.EnterpriseBasePlanVersion|null); + baseplanVersion?: BI.EnterpriseBasePlan.EnterpriseBasePlanVersion | null; /** EnterpriseBasePlan cost */ - cost?: (BI.ICost|null); + cost?: BI.ICost | null; } /** Represents an EnterpriseBasePlan. */ class EnterpriseBasePlan implements IEnterpriseBasePlan { - /** * Constructs a new EnterpriseBasePlan. * @param [properties] Properties to set @@ -88972,7 +93212,7 @@ export namespace BI { public baseplanVersion: BI.EnterpriseBasePlan.EnterpriseBasePlanVersion; /** EnterpriseBasePlan cost. */ - public cost?: (BI.ICost|null); + public cost?: BI.ICost | null; /** * Creates a new EnterpriseBasePlan instance using the specified properties. @@ -89005,7 +93245,7 @@ export namespace BI { * @throws {Error} If the payload is 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.EnterpriseBasePlan; /** * Decodes an EnterpriseBasePlan message from the specified reader or buffer, length delimited. @@ -89014,14 +93254,14 @@ export namespace BI { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BI.EnterpriseBasePlan; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): BI.EnterpriseBasePlan; /** * Verifies an EnterpriseBasePlan message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an EnterpriseBasePlan message from a plain object. Also converts values to their respective internal types. @@ -89036,7 +93276,10 @@ export namespace BI { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.EnterpriseBasePlan, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: BI.EnterpriseBasePlan, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this EnterpriseBasePlan to JSON. @@ -89053,23 +93296,20 @@ export namespace BI { } namespace EnterpriseBasePlan { - /** EnterpriseBasePlanVersion enum. */ enum EnterpriseBasePlanVersion { UNKNOWN = 0, BUSINESS_STARTER = 1, BUSINESS = 2, - ENTERPRISE = 3 + ENTERPRISE = 3, } } /** Properties of a SubscriptionEnterprisePricingRequest. */ - interface ISubscriptionEnterprisePricingRequest { - } + interface ISubscriptionEnterprisePricingRequest {} /** Represents a SubscriptionEnterprisePricingRequest. */ class SubscriptionEnterprisePricingRequest implements ISubscriptionEnterprisePricingRequest { - /** * Constructs a new SubscriptionEnterprisePricingRequest. * @param [properties] Properties to set @@ -89081,7 +93321,9 @@ export namespace BI { * @param [properties] Properties to set * @returns SubscriptionEnterprisePricingRequest instance */ - public static create(properties?: BI.ISubscriptionEnterprisePricingRequest): BI.SubscriptionEnterprisePricingRequest; + public static create( + properties?: BI.ISubscriptionEnterprisePricingRequest + ): BI.SubscriptionEnterprisePricingRequest; /** * Encodes the specified SubscriptionEnterprisePricingRequest message. Does not implicitly {@link BI.SubscriptionEnterprisePricingRequest.verify|verify} messages. @@ -89089,7 +93331,10 @@ export namespace BI { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: BI.ISubscriptionEnterprisePricingRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: BI.ISubscriptionEnterprisePricingRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified SubscriptionEnterprisePricingRequest message, length delimited. Does not implicitly {@link BI.SubscriptionEnterprisePricingRequest.verify|verify} messages. @@ -89097,7 +93342,10 @@ export namespace BI { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: BI.ISubscriptionEnterprisePricingRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: BI.ISubscriptionEnterprisePricingRequest, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a SubscriptionEnterprisePricingRequest message from the specified reader or buffer. @@ -89107,7 +93355,10 @@ export namespace BI { * @throws {Error} If the payload is 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.SubscriptionEnterprisePricingRequest; /** * Decodes a SubscriptionEnterprisePricingRequest message from the specified reader or buffer, length delimited. @@ -89116,14 +93367,14 @@ export namespace BI { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BI.SubscriptionEnterprisePricingRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): BI.SubscriptionEnterprisePricingRequest; /** * Verifies a SubscriptionEnterprisePricingRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a SubscriptionEnterprisePricingRequest message from a plain object. Also converts values to their respective internal types. @@ -89138,7 +93389,10 @@ export namespace BI { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.SubscriptionEnterprisePricingRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: BI.SubscriptionEnterprisePricingRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this SubscriptionEnterprisePricingRequest to JSON. @@ -89156,20 +93410,18 @@ export namespace BI { /** Properties of a SubscriptionEnterprisePricingResponse. */ interface ISubscriptionEnterprisePricingResponse { - /** SubscriptionEnterprisePricingResponse basePlans */ - basePlans?: (BI.IEnterpriseBasePlan[]|null); + basePlans?: BI.IEnterpriseBasePlan[] | null; /** SubscriptionEnterprisePricingResponse addons */ - addons?: (BI.IAddon[]|null); + addons?: BI.IAddon[] | null; /** SubscriptionEnterprisePricingResponse filePlans */ - filePlans?: (BI.IFilePlan[]|null); + filePlans?: BI.IFilePlan[] | null; } /** Represents a SubscriptionEnterprisePricingResponse. */ class SubscriptionEnterprisePricingResponse implements ISubscriptionEnterprisePricingResponse { - /** * Constructs a new SubscriptionEnterprisePricingResponse. * @param [properties] Properties to set @@ -89190,7 +93442,9 @@ export namespace BI { * @param [properties] Properties to set * @returns SubscriptionEnterprisePricingResponse instance */ - public static create(properties?: BI.ISubscriptionEnterprisePricingResponse): BI.SubscriptionEnterprisePricingResponse; + public static create( + properties?: BI.ISubscriptionEnterprisePricingResponse + ): BI.SubscriptionEnterprisePricingResponse; /** * Encodes the specified SubscriptionEnterprisePricingResponse message. Does not implicitly {@link BI.SubscriptionEnterprisePricingResponse.verify|verify} messages. @@ -89198,7 +93452,10 @@ export namespace BI { * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: BI.ISubscriptionEnterprisePricingResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode( + message: BI.ISubscriptionEnterprisePricingResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Encodes the specified SubscriptionEnterprisePricingResponse message, length delimited. Does not implicitly {@link BI.SubscriptionEnterprisePricingResponse.verify|verify} messages. @@ -89206,7 +93463,10 @@ export namespace BI { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: BI.ISubscriptionEnterprisePricingResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: BI.ISubscriptionEnterprisePricingResponse, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a SubscriptionEnterprisePricingResponse message from the specified reader or buffer. @@ -89216,7 +93476,10 @@ export namespace BI { * @throws {Error} If the payload is 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.SubscriptionEnterprisePricingResponse; /** * Decodes a SubscriptionEnterprisePricingResponse message from the specified reader or buffer, length delimited. @@ -89225,14 +93488,14 @@ export namespace BI { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BI.SubscriptionEnterprisePricingResponse; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): BI.SubscriptionEnterprisePricingResponse; /** * Verifies a SubscriptionEnterprisePricingResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a SubscriptionEnterprisePricingResponse message from a plain object. Also converts values to their respective internal types. @@ -89247,7 +93510,10 @@ export namespace BI { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.SubscriptionEnterprisePricingResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: BI.SubscriptionEnterprisePricingResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this SubscriptionEnterprisePricingResponse to JSON. @@ -89273,22 +93539,20 @@ export namespace BI { AMAZON_ADVERTISING_ID = 5, OPEN_ADVERTISING_ID = 6, SINGULAR_DEVICE_ID = 7, - CLIENT_DEFINED_ID = 8 + CLIENT_DEFINED_ID = 8, } /** Properties of a SingularDeviceIdentifier. */ interface ISingularDeviceIdentifier { - /** SingularDeviceIdentifier id */ - id?: (string|null); + id?: string | null; /** SingularDeviceIdentifier idType */ - idType?: (BI.IdentifierType|null); + idType?: BI.IdentifierType | null; } /** Represents a SingularDeviceIdentifier. */ class SingularDeviceIdentifier implements ISingularDeviceIdentifier { - /** * Constructs a new SingularDeviceIdentifier. * @param [properties] Properties to set @@ -89322,7 +93586,10 @@ export namespace BI { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: BI.ISingularDeviceIdentifier, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: BI.ISingularDeviceIdentifier, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a SingularDeviceIdentifier message from the specified reader or buffer. @@ -89332,7 +93599,7 @@ export namespace BI { * @throws {Error} If the payload is 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.SingularDeviceIdentifier; /** * Decodes a SingularDeviceIdentifier message from the specified reader or buffer, length delimited. @@ -89341,14 +93608,14 @@ export namespace BI { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BI.SingularDeviceIdentifier; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): BI.SingularDeviceIdentifier; /** * Verifies a SingularDeviceIdentifier message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a SingularDeviceIdentifier message from a plain object. Also converts values to their respective internal types. @@ -89363,7 +93630,10 @@ export namespace BI { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.SingularDeviceIdentifier, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: BI.SingularDeviceIdentifier, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this SingularDeviceIdentifier to JSON. @@ -89381,35 +93651,33 @@ export namespace BI { /** Properties of a SingularSharedData. */ interface ISingularSharedData { - /** SingularSharedData platform */ - platform?: (string|null); + platform?: string | null; /** SingularSharedData osVersion */ - osVersion?: (string|null); + osVersion?: string | null; /** SingularSharedData make */ - make?: (string|null); + make?: string | null; /** SingularSharedData model */ - model?: (string|null); + model?: string | null; /** SingularSharedData locale */ - locale?: (string|null); + locale?: string | null; /** SingularSharedData build */ - build?: (string|null); + build?: string | null; /** SingularSharedData appIdentifier */ - appIdentifier?: (string|null); + appIdentifier?: string | null; /** SingularSharedData attAuthorizationStatus */ - attAuthorizationStatus?: (number|null); + attAuthorizationStatus?: number | null; } /** Represents a SingularSharedData. */ class SingularSharedData implements ISingularSharedData { - /** * Constructs a new SingularSharedData. * @param [properties] Properties to set @@ -89471,7 +93739,7 @@ export namespace BI { * @throws {Error} If the payload is 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.SingularSharedData; /** * Decodes a SingularSharedData message from the specified reader or buffer, length delimited. @@ -89480,14 +93748,14 @@ export namespace BI { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BI.SingularSharedData; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): BI.SingularSharedData; /** * Verifies a SingularSharedData message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a SingularSharedData message from a plain object. Also converts values to their respective internal types. @@ -89502,7 +93770,10 @@ export namespace BI { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.SingularSharedData, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: BI.SingularSharedData, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this SingularSharedData to JSON. @@ -89520,53 +93791,51 @@ export namespace BI { /** Properties of a SingularSessionRequest. */ interface ISingularSessionRequest { - /** SingularSessionRequest deviceIdentifiers */ - deviceIdentifiers?: (BI.ISingularDeviceIdentifier[]|null); + deviceIdentifiers?: BI.ISingularDeviceIdentifier[] | null; /** SingularSessionRequest sharedData */ - sharedData?: (BI.ISingularSharedData|null); + sharedData?: BI.ISingularSharedData | null; /** SingularSessionRequest applicationVersion */ - applicationVersion?: (string|null); + applicationVersion?: string | null; /** SingularSessionRequest install */ - install?: (boolean|null); + install?: boolean | null; /** SingularSessionRequest installTime */ - installTime?: (number|Long|null); + installTime?: number | Long | null; /** SingularSessionRequest updateTime */ - updateTime?: (number|Long|null); + updateTime?: number | Long | null; /** SingularSessionRequest installSource */ - installSource?: (string|null); + installSource?: string | null; /** SingularSessionRequest installReceipt */ - installReceipt?: (string|null); + installReceipt?: string | null; /** SingularSessionRequest openuri */ - openuri?: (string|null); + openuri?: string | null; /** SingularSessionRequest ddlEnabled */ - ddlEnabled?: (boolean|null); + ddlEnabled?: boolean | null; /** SingularSessionRequest singularLinkResolveRequired */ - singularLinkResolveRequired?: (boolean|null); + singularLinkResolveRequired?: boolean | null; /** SingularSessionRequest installRef */ - installRef?: (string|null); + installRef?: string | null; /** SingularSessionRequest metaRef */ - metaRef?: (string|null); + metaRef?: string | null; /** SingularSessionRequest attributionToken */ - attributionToken?: (string|null); + attributionToken?: string | null; } /** Represents a SingularSessionRequest. */ class SingularSessionRequest implements ISingularSessionRequest { - /** * Constructs a new SingularSessionRequest. * @param [properties] Properties to set @@ -89577,7 +93846,7 @@ export namespace BI { public deviceIdentifiers: BI.ISingularDeviceIdentifier[]; /** SingularSessionRequest sharedData. */ - public sharedData?: (BI.ISingularSharedData|null); + public sharedData?: BI.ISingularSharedData | null; /** SingularSessionRequest applicationVersion. */ public applicationVersion: string; @@ -89586,10 +93855,10 @@ export namespace BI { public install: boolean; /** SingularSessionRequest installTime. */ - public installTime: (number|Long); + public installTime: number | Long; /** SingularSessionRequest updateTime. */ - public updateTime: (number|Long); + public updateTime: number | Long; /** SingularSessionRequest installSource. */ public installSource: string; @@ -89646,7 +93915,7 @@ export namespace BI { * @throws {Error} If the payload is 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.SingularSessionRequest; /** * Decodes a SingularSessionRequest message from the specified reader or buffer, length delimited. @@ -89655,14 +93924,14 @@ export namespace BI { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BI.SingularSessionRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): BI.SingularSessionRequest; /** * Verifies a SingularSessionRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a SingularSessionRequest message from a plain object. Also converts values to their respective internal types. @@ -89677,7 +93946,10 @@ export namespace BI { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.SingularSessionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: BI.SingularSessionRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this SingularSessionRequest to JSON. @@ -89695,20 +93967,18 @@ export namespace BI { /** Properties of a SingularEventRequest. */ interface ISingularEventRequest { - /** SingularEventRequest deviceIdentifiers */ - deviceIdentifiers?: (BI.ISingularDeviceIdentifier[]|null); + deviceIdentifiers?: BI.ISingularDeviceIdentifier[] | null; /** SingularEventRequest sharedData */ - sharedData?: (BI.ISingularSharedData|null); + sharedData?: BI.ISingularSharedData | null; /** SingularEventRequest eventName */ - eventName?: (string|null); + eventName?: string | null; } /** Represents a SingularEventRequest. */ class SingularEventRequest implements ISingularEventRequest { - /** * Constructs a new SingularEventRequest. * @param [properties] Properties to set @@ -89719,7 +93989,7 @@ export namespace BI { public deviceIdentifiers: BI.ISingularDeviceIdentifier[]; /** SingularEventRequest sharedData. */ - public sharedData?: (BI.ISingularSharedData|null); + public sharedData?: BI.ISingularSharedData | null; /** SingularEventRequest eventName. */ public eventName: string; @@ -89755,7 +94025,7 @@ export namespace BI { * @throws {Error} If the payload is 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.SingularEventRequest; /** * Decodes a SingularEventRequest message from the specified reader or buffer, length delimited. @@ -89764,14 +94034,14 @@ export namespace BI { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BI.SingularEventRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): BI.SingularEventRequest; /** * Verifies a SingularEventRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a SingularEventRequest message from a plain object. Also converts values to their respective internal types. @@ -89786,7 +94056,10 @@ export namespace BI { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.SingularEventRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: BI.SingularEventRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this SingularEventRequest to JSON. @@ -89804,20 +94077,18 @@ export namespace BI { /** Properties of a GetDailyCountRequest. */ interface IGetDailyCountRequest { - /** GetDailyCountRequest enterpriseId */ - enterpriseId?: (number[]|null); + enterpriseId?: number[] | null; /** GetDailyCountRequest monthYear */ - monthYear?: (BI.IMonthYear|null); + monthYear?: BI.IMonthYear | null; /** GetDailyCountRequest dateRange */ - dateRange?: (BI.IDateRange|null); + dateRange?: BI.IDateRange | null; } /** Represents a GetDailyCountRequest. */ class GetDailyCountRequest implements IGetDailyCountRequest { - /** * Constructs a new GetDailyCountRequest. * @param [properties] Properties to set @@ -89828,13 +94099,13 @@ export namespace BI { public enterpriseId: number[]; /** GetDailyCountRequest monthYear. */ - public monthYear?: (BI.IMonthYear|null); + public monthYear?: BI.IMonthYear | null; /** GetDailyCountRequest dateRange. */ - public dateRange?: (BI.IDateRange|null); + public dateRange?: BI.IDateRange | null; /** GetDailyCountRequest period. */ - public period?: ("monthYear"|"dateRange"); + public period?: 'monthYear' | 'dateRange'; /** * Creates a new GetDailyCountRequest instance using the specified properties. @@ -89867,7 +94138,7 @@ export namespace BI { * @throws {Error} If the payload is 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.GetDailyCountRequest; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): BI.GetDailyCountRequest; /** * Decodes a GetDailyCountRequest message from the specified reader or buffer, length delimited. @@ -89876,14 +94147,14 @@ export namespace BI { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BI.GetDailyCountRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): BI.GetDailyCountRequest; /** * Verifies a GetDailyCountRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a GetDailyCountRequest message from a plain object. Also converts values to their respective internal types. @@ -89898,7 +94169,10 @@ export namespace BI { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.GetDailyCountRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: BI.GetDailyCountRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this GetDailyCountRequest to JSON. @@ -89916,17 +94190,15 @@ export namespace BI { /** Properties of a MonthYear. */ interface IMonthYear { - /** MonthYear month */ - month?: (number|null); + month?: number | null; /** MonthYear year */ - year?: (number|null); + year?: number | null; } /** Represents a MonthYear. */ class MonthYear implements IMonthYear { - /** * Constructs a new MonthYear. * @param [properties] Properties to set @@ -89970,7 +94242,7 @@ export namespace BI { * @throws {Error} If the payload is 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.MonthYear; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): BI.MonthYear; /** * Decodes a MonthYear message from the specified reader or buffer, length delimited. @@ -89979,14 +94251,14 @@ export namespace BI { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BI.MonthYear; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): BI.MonthYear; /** * Verifies a MonthYear message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a MonthYear message from a plain object. Also converts values to their respective internal types. @@ -90019,17 +94291,15 @@ export namespace BI { /** Properties of a DateRange. */ interface IDateRange { - /** DateRange start */ - start?: (number|Long|null); + start?: number | Long | null; /** DateRange end */ - end?: (number|Long|null); + end?: number | Long | null; } /** Represents a DateRange. */ class DateRange implements IDateRange { - /** * Constructs a new DateRange. * @param [properties] Properties to set @@ -90037,10 +94307,10 @@ export namespace BI { constructor(properties?: BI.IDateRange); /** DateRange start. */ - public start: (number|Long); + public start: number | Long; /** DateRange end. */ - public end: (number|Long); + public end: number | Long; /** * Creates a new DateRange instance using the specified properties. @@ -90073,7 +94343,7 @@ export namespace BI { * @throws {Error} If the payload is 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.DateRange; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): BI.DateRange; /** * Decodes a DateRange message from the specified reader or buffer, length delimited. @@ -90082,14 +94352,14 @@ export namespace BI { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BI.DateRange; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): BI.DateRange; /** * Verifies a DateRange message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a DateRange message from a plain object. Also converts values to their respective internal types. @@ -90122,17 +94392,15 @@ export namespace BI { /** Properties of a DailyCount. */ interface IDailyCount { - /** DailyCount date */ - date?: (number|Long|null); + date?: number | Long | null; /** DailyCount pamCount */ - pamCount?: (number|null); + pamCount?: number | null; } /** Represents a DailyCount. */ class DailyCount implements IDailyCount { - /** * Constructs a new DailyCount. * @param [properties] Properties to set @@ -90140,7 +94408,7 @@ export namespace BI { constructor(properties?: BI.IDailyCount); /** DailyCount date. */ - public date: (number|Long); + public date: number | Long; /** DailyCount pamCount. */ public pamCount: number; @@ -90176,7 +94444,7 @@ export namespace BI { * @throws {Error} If the payload is 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.DailyCount; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): BI.DailyCount; /** * Decodes a DailyCount message from the specified reader or buffer, length delimited. @@ -90185,14 +94453,14 @@ export namespace BI { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BI.DailyCount; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): BI.DailyCount; /** * Verifies a DailyCount message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a DailyCount message from a plain object. Also converts values to their respective internal types. @@ -90225,17 +94493,15 @@ export namespace BI { /** Properties of a CountForEnterprise. */ interface ICountForEnterprise { - /** CountForEnterprise enterpriseId */ - enterpriseId?: (number|null); + enterpriseId?: number | null; /** CountForEnterprise counts */ - counts?: (BI.IDailyCount[]|null); + counts?: BI.IDailyCount[] | null; } /** Represents a CountForEnterprise. */ class CountForEnterprise implements ICountForEnterprise { - /** * Constructs a new CountForEnterprise. * @param [properties] Properties to set @@ -90279,7 +94545,7 @@ export namespace BI { * @throws {Error} If the payload is 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.CountForEnterprise; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): BI.CountForEnterprise; /** * Decodes a CountForEnterprise message from the specified reader or buffer, length delimited. @@ -90288,14 +94554,14 @@ export namespace BI { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BI.CountForEnterprise; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): BI.CountForEnterprise; /** * Verifies a CountForEnterprise message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a CountForEnterprise message from a plain object. Also converts values to their respective internal types. @@ -90310,7 +94576,10 @@ export namespace BI { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.CountForEnterprise, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: BI.CountForEnterprise, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this CountForEnterprise to JSON. @@ -90328,14 +94597,12 @@ export namespace BI { /** Properties of a GetDailyCountResponse. */ interface IGetDailyCountResponse { - /** GetDailyCountResponse enterpriseCounts */ - enterpriseCounts?: (BI.ICountForEnterprise[]|null); + enterpriseCounts?: BI.ICountForEnterprise[] | null; } /** Represents a GetDailyCountResponse. */ class GetDailyCountResponse implements IGetDailyCountResponse { - /** * Constructs a new GetDailyCountResponse. * @param [properties] Properties to set @@ -90376,7 +94643,7 @@ export namespace BI { * @throws {Error} If the payload is 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.GetDailyCountResponse; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): BI.GetDailyCountResponse; /** * Decodes a GetDailyCountResponse message from the specified reader or buffer, length delimited. @@ -90385,14 +94652,14 @@ export namespace BI { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BI.GetDailyCountResponse; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): BI.GetDailyCountResponse; /** * Verifies a GetDailyCountResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a GetDailyCountResponse message from a plain object. Also converts values to their respective internal types. @@ -90407,7 +94674,10 @@ export namespace BI { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.GetDailyCountResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: BI.GetDailyCountResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this GetDailyCountResponse to JSON. @@ -90425,14 +94695,12 @@ export namespace BI { /** Properties of an ActivePamCountRequest. */ interface IActivePamCountRequest { - /** ActivePamCountRequest enterpriseId */ - enterpriseId?: (number|null); + enterpriseId?: number | null; } /** Represents an ActivePamCountRequest. */ class ActivePamCountRequest implements IActivePamCountRequest { - /** * Constructs a new ActivePamCountRequest. * @param [properties] Properties to set @@ -90473,7 +94741,7 @@ export namespace BI { * @throws {Error} If the payload is 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.ActivePamCountRequest; /** * Decodes an ActivePamCountRequest message from the specified reader or buffer, length delimited. @@ -90482,14 +94750,14 @@ export namespace BI { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BI.ActivePamCountRequest; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): BI.ActivePamCountRequest; /** * Verifies an ActivePamCountRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an ActivePamCountRequest message from a plain object. Also converts values to their respective internal types. @@ -90504,7 +94772,10 @@ export namespace BI { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.ActivePamCountRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: BI.ActivePamCountRequest, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this ActivePamCountRequest to JSON. @@ -90522,14 +94793,12 @@ export namespace BI { /** Properties of an ActivePamCountResponse. */ interface IActivePamCountResponse { - /** ActivePamCountResponse pamCount */ - pamCount?: (number|null); + pamCount?: number | null; } /** Represents an ActivePamCountResponse. */ class ActivePamCountResponse implements IActivePamCountResponse { - /** * Constructs a new ActivePamCountResponse. * @param [properties] Properties to set @@ -90570,7 +94839,7 @@ export namespace BI { * @throws {Error} If the payload is 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.ActivePamCountResponse; /** * Decodes an ActivePamCountResponse message from the specified reader or buffer, length delimited. @@ -90579,14 +94848,14 @@ export namespace BI { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): BI.ActivePamCountResponse; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): BI.ActivePamCountResponse; /** * Verifies an ActivePamCountResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates an ActivePamCountResponse message from a plain object. Also converts values to their respective internal types. @@ -90601,7 +94870,10 @@ export namespace BI { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: BI.ActivePamCountResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: BI.ActivePamCountResponse, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this ActivePamCountResponse to JSON. @@ -90620,20 +94892,16 @@ export namespace BI { /** Namespace google. */ export namespace google { - /** Namespace protobuf. */ namespace protobuf { - /** Properties of a Struct. */ interface IStruct { - /** Struct fields */ - fields?: ({ [k: string]: google.protobuf.IValue }|null); + fields?: { [k: string]: google.protobuf.IValue } | null; } /** Represents a Struct. */ class Struct implements IStruct { - /** * Constructs a new Struct. * @param [properties] Properties to set @@ -90664,7 +94932,10 @@ export namespace google { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.protobuf.IStruct, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: google.protobuf.IStruct, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a Struct message from the specified reader or buffer. @@ -90674,7 +94945,7 @@ export namespace google { * @throws {Error} If the payload is 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; + public static decode(reader: $protobuf.Reader | Uint8Array, length?: number): google.protobuf.Struct; /** * Decodes a Struct message from the specified reader or buffer, length delimited. @@ -90683,14 +94954,14 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Struct; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): google.protobuf.Struct; /** * Verifies a Struct message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a Struct message from a plain object. Also converts values to their respective internal types. @@ -90705,7 +94976,10 @@ export namespace google { * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.protobuf.Struct, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject( + message: google.protobuf.Struct, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this Struct to JSON. @@ -90723,29 +94997,27 @@ export namespace google { /** Properties of a Value. */ interface IValue { - /** Value nullValue */ - nullValue?: (google.protobuf.NullValue|null); + nullValue?: google.protobuf.NullValue | null; /** Value numberValue */ - numberValue?: (number|null); + numberValue?: number | null; /** Value stringValue */ - stringValue?: (string|null); + stringValue?: string | null; /** Value boolValue */ - boolValue?: (boolean|null); + boolValue?: boolean | null; /** Value structValue */ - structValue?: (google.protobuf.IStruct|null); + structValue?: google.protobuf.IStruct | null; /** Value listValue */ - listValue?: (google.protobuf.IListValue|null); + listValue?: google.protobuf.IListValue | null; } /** Represents a Value. */ class Value implements IValue { - /** * Constructs a new Value. * @param [properties] Properties to set @@ -90753,25 +95025,25 @@ export namespace google { constructor(properties?: google.protobuf.IValue); /** Value nullValue. */ - public nullValue?: (google.protobuf.NullValue|null); + public nullValue?: google.protobuf.NullValue | null; /** Value numberValue. */ - public numberValue?: (number|null); + public numberValue?: number | null; /** Value stringValue. */ - public stringValue?: (string|null); + public stringValue?: string | null; /** Value boolValue. */ - public boolValue?: (boolean|null); + public boolValue?: boolean | null; /** Value structValue. */ - public structValue?: (google.protobuf.IStruct|null); + public structValue?: google.protobuf.IStruct | null; /** Value listValue. */ - public listValue?: (google.protobuf.IListValue|null); + public listValue?: google.protobuf.IListValue | null; /** Value kind. */ - public kind?: ("nullValue"|"numberValue"|"stringValue"|"boolValue"|"structValue"|"listValue"); + public kind?: 'nullValue' | 'numberValue' | 'stringValue' | 'boolValue' | 'structValue' | 'listValue'; /** * Creates a new Value instance using the specified properties. @@ -90804,7 +95076,7 @@ export namespace google { * @throws {Error} If the payload is 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.Value; /** * Decodes a Value message from the specified reader or buffer, length delimited. @@ -90813,14 +95085,14 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.Value; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): google.protobuf.Value; /** * Verifies a Value message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a Value message from a plain object. Also converts values to their respective internal types. @@ -90835,7 +95107,10 @@ export namespace google { * @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.Value, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this Value to JSON. @@ -90853,19 +95128,17 @@ export namespace google { /** NullValue enum. */ enum NullValue { - NULL_VALUE = 0 + NULL_VALUE = 0, } /** Properties of a ListValue. */ interface IListValue { - /** ListValue values */ - values?: (google.protobuf.IValue[]|null); + values?: google.protobuf.IValue[] | null; } /** Represents a ListValue. */ class ListValue implements IListValue { - /** * Constructs a new ListValue. * @param [properties] Properties to set @@ -90896,7 +95169,10 @@ export namespace google { * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.protobuf.IListValue, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited( + message: google.protobuf.IListValue, + writer?: $protobuf.Writer + ): $protobuf.Writer; /** * Decodes a ListValue message from the specified reader or buffer. @@ -90906,7 +95182,7 @@ export namespace google { * @throws {Error} If the payload is 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.ListValue; /** * Decodes a ListValue message from the specified reader or buffer, length delimited. @@ -90915,14 +95191,14 @@ export namespace google { * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.ListValue; + public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): google.protobuf.ListValue; /** * Verifies a ListValue message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ - public static verify(message: { [k: string]: any }): (string|null); + public static verify(message: { [k: string]: any }): string | null; /** * Creates a ListValue message from a plain object. Also converts values to their respective internal types. @@ -90937,7 +95213,10 @@ export namespace google { * @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.ListValue, + options?: $protobuf.IConversionOptions + ): { [k: string]: any }; /** * Converts this ListValue to JSON. diff --git a/keeperapi/src/proto.js b/keeperapi/src/proto.js index ef2c70a..2020702 100644 --- a/keeperapi/src/proto.js +++ b/keeperapi/src/proto.js @@ -1,14 +1,15 @@ /*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 * as $protobuf from "protobufjs/minimal"; +import * as $protobuf from 'protobufjs/minimal'; // Common aliases -const $Reader = $protobuf.Reader, $Writer = $protobuf.Writer, $util = $protobuf.util; +const $Reader = $protobuf.Reader, + $Writer = $protobuf.Writer, + $util = $protobuf.util; // Exported root namespace -const $root = $protobuf.roots["default"] || ($protobuf.roots["default"] = {}); - -export const Authentication = $root.Authentication = (() => { +const $root = $protobuf.roots['default'] || ($protobuf.roots['default'] = {}); +export const Authentication = ($root.Authentication = (() => { /** * Namespace Authentication. * @exports Authentication @@ -44,31 +45,32 @@ export const Authentication = $root.Authentication = (() => { * @property {number} FINNISH=21 FINNISH value * @property {number} SWEDISH=22 SWEDISH value */ - Authentication.SupportedLanguage = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "ENGLISH"] = 0; - values[valuesById[1] = "ARABIC"] = 1; - values[valuesById[2] = "BRITISH"] = 2; - values[valuesById[3] = "CHINESE"] = 3; - values[valuesById[4] = "CHINESE_HONG_KONG"] = 4; - values[valuesById[5] = "CHINESE_TAIWAN"] = 5; - values[valuesById[6] = "DUTCH"] = 6; - values[valuesById[7] = "FRENCH"] = 7; - values[valuesById[8] = "GERMAN"] = 8; - values[valuesById[9] = "GREEK"] = 9; - values[valuesById[10] = "HEBREW"] = 10; - values[valuesById[11] = "ITALIAN"] = 11; - values[valuesById[12] = "JAPANESE"] = 12; - values[valuesById[13] = "KOREAN"] = 13; - values[valuesById[14] = "POLISH"] = 14; - values[valuesById[15] = "PORTUGUESE"] = 15; - values[valuesById[16] = "PORTUGUESE_BRAZIL"] = 16; - values[valuesById[17] = "ROMANIAN"] = 17; - values[valuesById[18] = "RUSSIAN"] = 18; - values[valuesById[19] = "SLOVAK"] = 19; - values[valuesById[20] = "SPANISH"] = 20; - values[valuesById[21] = "FINNISH"] = 21; - values[valuesById[22] = "SWEDISH"] = 22; + Authentication.SupportedLanguage = (function () { + const valuesById = {}, + values = Object.create(valuesById); + values[(valuesById[0] = 'ENGLISH')] = 0; + values[(valuesById[1] = 'ARABIC')] = 1; + values[(valuesById[2] = 'BRITISH')] = 2; + values[(valuesById[3] = 'CHINESE')] = 3; + values[(valuesById[4] = 'CHINESE_HONG_KONG')] = 4; + values[(valuesById[5] = 'CHINESE_TAIWAN')] = 5; + values[(valuesById[6] = 'DUTCH')] = 6; + values[(valuesById[7] = 'FRENCH')] = 7; + values[(valuesById[8] = 'GERMAN')] = 8; + values[(valuesById[9] = 'GREEK')] = 9; + values[(valuesById[10] = 'HEBREW')] = 10; + values[(valuesById[11] = 'ITALIAN')] = 11; + values[(valuesById[12] = 'JAPANESE')] = 12; + values[(valuesById[13] = 'KOREAN')] = 13; + values[(valuesById[14] = 'POLISH')] = 14; + values[(valuesById[15] = 'PORTUGUESE')] = 15; + values[(valuesById[16] = 'PORTUGUESE_BRAZIL')] = 16; + values[(valuesById[17] = 'ROMANIAN')] = 17; + values[(valuesById[18] = 'RUSSIAN')] = 18; + values[(valuesById[19] = 'SLOVAK')] = 19; + values[(valuesById[20] = 'SPANISH')] = 20; + values[(valuesById[21] = 'FINNISH')] = 21; + values[(valuesById[22] = 'SWEDISH')] = 22; return values; })(); @@ -84,15 +86,16 @@ export const Authentication = $root.Authentication = (() => { * @property {number} FORGOT_PASSWORD=5 FORGOT_PASSWORD value * @property {number} PASSKEY_BIO=6 PASSKEY_BIO value */ - Authentication.LoginType = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "NORMAL"] = 0; - values[valuesById[1] = "SSO"] = 1; - values[valuesById[2] = "BIO"] = 2; - values[valuesById[3] = "ALTERNATE"] = 3; - values[valuesById[4] = "OFFLINE"] = 4; - values[valuesById[5] = "FORGOT_PASSWORD"] = 5; - values[valuesById[6] = "PASSKEY_BIO"] = 6; + Authentication.LoginType = (function () { + const valuesById = {}, + values = Object.create(valuesById); + values[(valuesById[0] = 'NORMAL')] = 0; + values[(valuesById[1] = 'SSO')] = 1; + values[(valuesById[2] = 'BIO')] = 2; + values[(valuesById[3] = 'ALTERNATE')] = 3; + values[(valuesById[4] = 'OFFLINE')] = 4; + values[(valuesById[5] = 'FORGOT_PASSWORD')] = 5; + values[(valuesById[6] = 'PASSKEY_BIO')] = 6; return values; })(); @@ -105,12 +108,13 @@ export const Authentication = $root.Authentication = (() => { * @property {number} DEVICE_DISABLED_BY_USER=2 DEVICE_DISABLED_BY_USER value * @property {number} DEVICE_LOCKED_BY_ADMIN=3 DEVICE_LOCKED_BY_ADMIN value */ - Authentication.DeviceStatus = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "DEVICE_NEEDS_APPROVAL"] = 0; - values[valuesById[1] = "DEVICE_OK"] = 1; - values[valuesById[2] = "DEVICE_DISABLED_BY_USER"] = 2; - values[valuesById[3] = "DEVICE_LOCKED_BY_ADMIN"] = 3; + Authentication.DeviceStatus = (function () { + const valuesById = {}, + values = Object.create(valuesById); + values[(valuesById[0] = 'DEVICE_NEEDS_APPROVAL')] = 0; + values[(valuesById[1] = 'DEVICE_OK')] = 1; + values[(valuesById[2] = 'DEVICE_DISABLED_BY_USER')] = 2; + values[(valuesById[3] = 'DEVICE_LOCKED_BY_ADMIN')] = 3; return values; })(); @@ -123,12 +127,13 @@ export const Authentication = $root.Authentication = (() => { * @property {number} EXPIRED=2 EXPIRED value * @property {number} DISABLED=3 DISABLED value */ - Authentication.LicenseStatus = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "OTHER"] = 0; - values[valuesById[1] = "ACTIVE"] = 1; - values[valuesById[2] = "EXPIRED"] = 2; - values[valuesById[3] = "DISABLED"] = 3; + Authentication.LicenseStatus = (function () { + const valuesById = {}, + values = Object.create(valuesById); + values[(valuesById[0] = 'OTHER')] = 0; + values[(valuesById[1] = 'ACTIVE')] = 1; + values[(valuesById[2] = 'EXPIRED')] = 2; + values[(valuesById[3] = 'DISABLED')] = 3; return values; })(); @@ -140,11 +145,12 @@ export const Authentication = $root.Authentication = (() => { * @property {number} FAMILY=1 FAMILY value * @property {number} ENTERPRISE=2 ENTERPRISE value */ - Authentication.AccountType = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "CONSUMER"] = 0; - values[valuesById[1] = "FAMILY"] = 1; - values[valuesById[2] = "ENTERPRISE"] = 2; + Authentication.AccountType = (function () { + const valuesById = {}, + values = Object.create(valuesById); + values[(valuesById[0] = 'CONSUMER')] = 0; + values[(valuesById[1] = 'FAMILY')] = 1; + values[(valuesById[2] = 'ENTERPRISE')] = 2; return values; })(); @@ -165,20 +171,21 @@ export const Authentication = $root.Authentication = (() => { * @property {number} ENTERPRISE_CREATION_PURCHASED=10 ENTERPRISE_CREATION_PURCHASED value * @property {number} EMERGENCY_ACCESS=11 EMERGENCY_ACCESS value */ - Authentication.SessionTokenType = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "NO_RESTRICTION"] = 0; - values[valuesById[1] = "ACCOUNT_RECOVERY"] = 1; - values[valuesById[2] = "SHARE_ACCOUNT"] = 2; - values[valuesById[3] = "PURCHASE"] = 3; - values[valuesById[4] = "RESTRICT"] = 4; - values[valuesById[5] = "ACCEPT_INVITE"] = 5; - values[valuesById[6] = "SUPPORT_SERVER"] = 6; - values[valuesById[7] = "ENTERPRISE_CREATION"] = 7; - values[valuesById[8] = "EXPIRED_BUT_ALLOWED_TO_SYNC"] = 8; - values[valuesById[9] = "ACCEPT_FAMILY_INVITE"] = 9; - values[valuesById[10] = "ENTERPRISE_CREATION_PURCHASED"] = 10; - values[valuesById[11] = "EMERGENCY_ACCESS"] = 11; + Authentication.SessionTokenType = (function () { + const valuesById = {}, + values = Object.create(valuesById); + values[(valuesById[0] = 'NO_RESTRICTION')] = 0; + values[(valuesById[1] = 'ACCOUNT_RECOVERY')] = 1; + values[(valuesById[2] = 'SHARE_ACCOUNT')] = 2; + values[(valuesById[3] = 'PURCHASE')] = 3; + values[(valuesById[4] = 'RESTRICT')] = 4; + values[(valuesById[5] = 'ACCEPT_INVITE')] = 5; + values[(valuesById[6] = 'SUPPORT_SERVER')] = 6; + values[(valuesById[7] = 'ENTERPRISE_CREATION')] = 7; + values[(valuesById[8] = 'EXPIRED_BUT_ALLOWED_TO_SYNC')] = 8; + values[(valuesById[9] = 'ACCEPT_FAMILY_INVITE')] = 9; + values[(valuesById[10] = 'ENTERPRISE_CREATION_PURCHASED')] = 10; + values[(valuesById[11] = 'EMERGENCY_ACCESS')] = 11; return values; })(); @@ -190,11 +197,12 @@ export const Authentication = $root.Authentication = (() => { * @property {number} default_version=1 default_version value * @property {number} second_version=2 second_version value */ - Authentication.Version = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "invalid_version"] = 0; - values[valuesById[1] = "default_version"] = 1; - values[valuesById[2] = "second_version"] = 2; + Authentication.Version = (function () { + const valuesById = {}, + values = Object.create(valuesById); + values[(valuesById[0] = 'invalid_version')] = 0; + values[(valuesById[1] = 'default_version')] = 1; + values[(valuesById[2] = 'second_version')] = 2; return values; })(); @@ -205,15 +213,15 @@ export const Authentication = $root.Authentication = (() => { * @property {number} UNMASK=0 UNMASK value * @property {number} COPY=1 COPY value */ - Authentication.MasterPasswordReentryActionType = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "UNMASK"] = 0; - values[valuesById[1] = "COPY"] = 1; + Authentication.MasterPasswordReentryActionType = (function () { + const valuesById = {}, + values = Object.create(valuesById); + values[(valuesById[0] = 'UNMASK')] = 0; + values[(valuesById[1] = 'COPY')] = 1; return values; })(); - Authentication.QrcMessageKey = (function() { - + Authentication.QrcMessageKey = (function () { /** * Properties of a QrcMessageKey. * @memberof Authentication @@ -236,8 +244,7 @@ export const Authentication = $root.Authentication = (() => { function QrcMessageKey(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -302,18 +309,17 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ QrcMessageKey.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.clientEcPublicKey != null && Object.hasOwnProperty.call(message, "clientEcPublicKey")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.clientEcPublicKey); - if (message.mlKemEncapsulatedKey != null && Object.hasOwnProperty.call(message, "mlKemEncapsulatedKey")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.mlKemEncapsulatedKey); - if (message.data != null && Object.hasOwnProperty.call(message, "data")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.data); - if (message.msgVersion != null && Object.hasOwnProperty.call(message, "msgVersion")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.msgVersion); - if (message.ecKeyId != null && Object.hasOwnProperty.call(message, "ecKeyId")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.ecKeyId); + if (!writer) writer = $Writer.create(); + if (message.clientEcPublicKey != null && Object.hasOwnProperty.call(message, 'clientEcPublicKey')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.clientEcPublicKey); + if (message.mlKemEncapsulatedKey != null && Object.hasOwnProperty.call(message, 'mlKemEncapsulatedKey')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.mlKemEncapsulatedKey); + if (message.data != null && Object.hasOwnProperty.call(message, 'data')) + writer.uint32(/* id 3, wireType 2 =*/ 26).bytes(message.data); + if (message.msgVersion != null && Object.hasOwnProperty.call(message, 'msgVersion')) + writer.uint32(/* id 4, wireType 0 =*/ 32).int32(message.msgVersion); + if (message.ecKeyId != null && Object.hasOwnProperty.call(message, 'ecKeyId')) + writer.uint32(/* id 5, wireType 0 =*/ 40).int32(message.ecKeyId); return writer; }; @@ -342,35 +348,35 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ QrcMessageKey.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.QrcMessageKey(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.QrcMessageKey(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.clientEcPublicKey = reader.bytes(); break; } - case 2: { + case 2: { message.mlKemEncapsulatedKey = reader.bytes(); break; } - case 3: { + case 3: { message.data = reader.bytes(); break; } - case 4: { + case 4: { message.msgVersion = reader.int32(); break; } - case 5: { + case 5: { message.ecKeyId = reader.int32(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -387,8 +393,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ QrcMessageKey.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -401,23 +406,30 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ QrcMessageKey.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.clientEcPublicKey != null && message.hasOwnProperty("clientEcPublicKey")) - if (!(message.clientEcPublicKey && typeof message.clientEcPublicKey.length === "number" || $util.isString(message.clientEcPublicKey))) - return "clientEcPublicKey: buffer expected"; - if (message.mlKemEncapsulatedKey != null && message.hasOwnProperty("mlKemEncapsulatedKey")) - if (!(message.mlKemEncapsulatedKey && typeof message.mlKemEncapsulatedKey.length === "number" || $util.isString(message.mlKemEncapsulatedKey))) - return "mlKemEncapsulatedKey: buffer expected"; - if (message.data != null && message.hasOwnProperty("data")) - if (!(message.data && typeof message.data.length === "number" || $util.isString(message.data))) - return "data: buffer expected"; - if (message.msgVersion != null && message.hasOwnProperty("msgVersion")) - if (!$util.isInteger(message.msgVersion)) - return "msgVersion: integer expected"; - if (message.ecKeyId != null && message.hasOwnProperty("ecKeyId")) - if (!$util.isInteger(message.ecKeyId)) - return "ecKeyId: integer expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.clientEcPublicKey != null && message.hasOwnProperty('clientEcPublicKey')) + if ( + !( + (message.clientEcPublicKey && typeof message.clientEcPublicKey.length === 'number') || + $util.isString(message.clientEcPublicKey) + ) + ) + return 'clientEcPublicKey: buffer expected'; + if (message.mlKemEncapsulatedKey != null && message.hasOwnProperty('mlKemEncapsulatedKey')) + if ( + !( + (message.mlKemEncapsulatedKey && typeof message.mlKemEncapsulatedKey.length === 'number') || + $util.isString(message.mlKemEncapsulatedKey) + ) + ) + return 'mlKemEncapsulatedKey: buffer expected'; + if (message.data != null && message.hasOwnProperty('data')) + if (!((message.data && typeof message.data.length === 'number') || $util.isString(message.data))) + return 'data: buffer expected'; + if (message.msgVersion != null && message.hasOwnProperty('msgVersion')) + if (!$util.isInteger(message.msgVersion)) return 'msgVersion: integer expected'; + if (message.ecKeyId != null && message.hasOwnProperty('ecKeyId')) + if (!$util.isInteger(message.ecKeyId)) return 'ecKeyId: integer expected'; return null; }; @@ -430,28 +442,37 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.QrcMessageKey} QrcMessageKey */ QrcMessageKey.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.QrcMessageKey) - return object; + if (object instanceof $root.Authentication.QrcMessageKey) return object; let message = new $root.Authentication.QrcMessageKey(); if (object.clientEcPublicKey != null) - if (typeof object.clientEcPublicKey === "string") - $util.base64.decode(object.clientEcPublicKey, message.clientEcPublicKey = $util.newBuffer($util.base64.length(object.clientEcPublicKey)), 0); - else if (object.clientEcPublicKey.length >= 0) - message.clientEcPublicKey = object.clientEcPublicKey; + if (typeof object.clientEcPublicKey === 'string') + $util.base64.decode( + object.clientEcPublicKey, + (message.clientEcPublicKey = $util.newBuffer($util.base64.length(object.clientEcPublicKey))), + 0 + ); + else if (object.clientEcPublicKey.length >= 0) message.clientEcPublicKey = object.clientEcPublicKey; if (object.mlKemEncapsulatedKey != null) - if (typeof object.mlKemEncapsulatedKey === "string") - $util.base64.decode(object.mlKemEncapsulatedKey, message.mlKemEncapsulatedKey = $util.newBuffer($util.base64.length(object.mlKemEncapsulatedKey)), 0); + if (typeof object.mlKemEncapsulatedKey === 'string') + $util.base64.decode( + object.mlKemEncapsulatedKey, + (message.mlKemEncapsulatedKey = $util.newBuffer( + $util.base64.length(object.mlKemEncapsulatedKey) + )), + 0 + ); else if (object.mlKemEncapsulatedKey.length >= 0) message.mlKemEncapsulatedKey = object.mlKemEncapsulatedKey; if (object.data != null) - if (typeof object.data === "string") - $util.base64.decode(object.data, message.data = $util.newBuffer($util.base64.length(object.data)), 0); - else if (object.data.length >= 0) - message.data = object.data; - if (object.msgVersion != null) - message.msgVersion = object.msgVersion | 0; - if (object.ecKeyId != null) - message.ecKeyId = object.ecKeyId | 0; + if (typeof object.data === 'string') + $util.base64.decode( + object.data, + (message.data = $util.newBuffer($util.base64.length(object.data))), + 0 + ); + else if (object.data.length >= 0) message.data = object.data; + if (object.msgVersion != null) message.msgVersion = object.msgVersion | 0; + if (object.ecKeyId != null) message.ecKeyId = object.ecKeyId | 0; return message; }; @@ -465,44 +486,52 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ QrcMessageKey.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.clientEcPublicKey = ""; + if (options.bytes === String) object.clientEcPublicKey = ''; else { object.clientEcPublicKey = []; - if (options.bytes !== Array) - object.clientEcPublicKey = $util.newBuffer(object.clientEcPublicKey); + if (options.bytes !== Array) object.clientEcPublicKey = $util.newBuffer(object.clientEcPublicKey); } - if (options.bytes === String) - object.mlKemEncapsulatedKey = ""; + if (options.bytes === String) object.mlKemEncapsulatedKey = ''; else { object.mlKemEncapsulatedKey = []; if (options.bytes !== Array) object.mlKemEncapsulatedKey = $util.newBuffer(object.mlKemEncapsulatedKey); } - if (options.bytes === String) - object.data = ""; + if (options.bytes === String) object.data = ''; else { object.data = []; - if (options.bytes !== Array) - object.data = $util.newBuffer(object.data); + if (options.bytes !== Array) object.data = $util.newBuffer(object.data); } object.msgVersion = 0; object.ecKeyId = 0; } - if (message.clientEcPublicKey != null && message.hasOwnProperty("clientEcPublicKey")) - object.clientEcPublicKey = options.bytes === String ? $util.base64.encode(message.clientEcPublicKey, 0, message.clientEcPublicKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.clientEcPublicKey) : message.clientEcPublicKey; - if (message.mlKemEncapsulatedKey != null && message.hasOwnProperty("mlKemEncapsulatedKey")) - object.mlKemEncapsulatedKey = options.bytes === String ? $util.base64.encode(message.mlKemEncapsulatedKey, 0, message.mlKemEncapsulatedKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.mlKemEncapsulatedKey) : message.mlKemEncapsulatedKey; - if (message.data != null && message.hasOwnProperty("data")) - object.data = options.bytes === String ? $util.base64.encode(message.data, 0, message.data.length) : options.bytes === Array ? Array.prototype.slice.call(message.data) : message.data; - if (message.msgVersion != null && message.hasOwnProperty("msgVersion")) + if (message.clientEcPublicKey != null && message.hasOwnProperty('clientEcPublicKey')) + object.clientEcPublicKey = + options.bytes === String + ? $util.base64.encode(message.clientEcPublicKey, 0, message.clientEcPublicKey.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.clientEcPublicKey) + : message.clientEcPublicKey; + if (message.mlKemEncapsulatedKey != null && message.hasOwnProperty('mlKemEncapsulatedKey')) + object.mlKemEncapsulatedKey = + options.bytes === String + ? $util.base64.encode(message.mlKemEncapsulatedKey, 0, message.mlKemEncapsulatedKey.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.mlKemEncapsulatedKey) + : message.mlKemEncapsulatedKey; + if (message.data != null && message.hasOwnProperty('data')) + object.data = + options.bytes === String + ? $util.base64.encode(message.data, 0, message.data.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.data) + : message.data; + if (message.msgVersion != null && message.hasOwnProperty('msgVersion')) object.msgVersion = message.msgVersion; - if (message.ecKeyId != null && message.hasOwnProperty("ecKeyId")) - object.ecKeyId = message.ecKeyId; + if (message.ecKeyId != null && message.hasOwnProperty('ecKeyId')) object.ecKeyId = message.ecKeyId; return object; }; @@ -527,16 +556,15 @@ export const Authentication = $root.Authentication = (() => { */ QrcMessageKey.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.QrcMessageKey"; + return typeUrlPrefix + '/Authentication.QrcMessageKey'; }; return QrcMessageKey; })(); - Authentication.ApiRequest = (function() { - + Authentication.ApiRequest = (function () { /** * Properties of an ApiRequest. * @memberof Authentication @@ -562,8 +590,7 @@ export const Authentication = $root.Authentication = (() => { function ApiRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -588,7 +615,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.ApiRequest * @instance */ - ApiRequest.prototype.locale = ""; + ApiRequest.prototype.locale = ''; /** * ApiRequest encryptedPayload. @@ -612,7 +639,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.ApiRequest * @instance */ - ApiRequest.prototype.recaptcha = ""; + ApiRequest.prototype.recaptcha = ''; /** * ApiRequest subEnvironment. @@ -620,7 +647,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.ApiRequest * @instance */ - ApiRequest.prototype.subEnvironment = ""; + ApiRequest.prototype.subEnvironment = ''; /** * ApiRequest qrcMessageKey. @@ -652,24 +679,29 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ ApiRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.encryptedTransmissionKey != null && Object.hasOwnProperty.call(message, "encryptedTransmissionKey")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.encryptedTransmissionKey); - if (message.publicKeyId != null && Object.hasOwnProperty.call(message, "publicKeyId")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.publicKeyId); - if (message.locale != null && Object.hasOwnProperty.call(message, "locale")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.locale); - if (message.encryptedPayload != null && Object.hasOwnProperty.call(message, "encryptedPayload")) - writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.encryptedPayload); - if (message.encryptionType != null && Object.hasOwnProperty.call(message, "encryptionType")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.encryptionType); - if (message.recaptcha != null && Object.hasOwnProperty.call(message, "recaptcha")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.recaptcha); - if (message.subEnvironment != null && Object.hasOwnProperty.call(message, "subEnvironment")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.subEnvironment); - if (message.qrcMessageKey != null && Object.hasOwnProperty.call(message, "qrcMessageKey")) - $root.Authentication.QrcMessageKey.encode(message.qrcMessageKey, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (!writer) writer = $Writer.create(); + if ( + message.encryptedTransmissionKey != null && + Object.hasOwnProperty.call(message, 'encryptedTransmissionKey') + ) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.encryptedTransmissionKey); + if (message.publicKeyId != null && Object.hasOwnProperty.call(message, 'publicKeyId')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int32(message.publicKeyId); + if (message.locale != null && Object.hasOwnProperty.call(message, 'locale')) + writer.uint32(/* id 3, wireType 2 =*/ 26).string(message.locale); + if (message.encryptedPayload != null && Object.hasOwnProperty.call(message, 'encryptedPayload')) + writer.uint32(/* id 4, wireType 2 =*/ 34).bytes(message.encryptedPayload); + if (message.encryptionType != null && Object.hasOwnProperty.call(message, 'encryptionType')) + writer.uint32(/* id 5, wireType 0 =*/ 40).int32(message.encryptionType); + if (message.recaptcha != null && Object.hasOwnProperty.call(message, 'recaptcha')) + writer.uint32(/* id 6, wireType 2 =*/ 50).string(message.recaptcha); + if (message.subEnvironment != null && Object.hasOwnProperty.call(message, 'subEnvironment')) + writer.uint32(/* id 7, wireType 2 =*/ 58).string(message.subEnvironment); + if (message.qrcMessageKey != null && Object.hasOwnProperty.call(message, 'qrcMessageKey')) + $root.Authentication.QrcMessageKey.encode( + message.qrcMessageKey, + writer.uint32(/* id 8, wireType 2 =*/ 66).fork() + ).ldelim(); return writer; }; @@ -698,47 +730,47 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ApiRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.ApiRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.ApiRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.encryptedTransmissionKey = reader.bytes(); break; } - case 2: { + case 2: { message.publicKeyId = reader.int32(); break; } - case 3: { + case 3: { message.locale = reader.string(); break; } - case 4: { + case 4: { message.encryptedPayload = reader.bytes(); break; } - case 5: { + case 5: { message.encryptionType = reader.int32(); break; } - case 6: { + case 6: { message.recaptcha = reader.string(); break; } - case 7: { + case 7: { message.subEnvironment = reader.string(); break; } - case 8: { + case 8: { message.qrcMessageKey = $root.Authentication.QrcMessageKey.decode(reader, reader.uint32()); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -755,8 +787,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ApiRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -769,33 +800,37 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ ApiRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.encryptedTransmissionKey != null && message.hasOwnProperty("encryptedTransmissionKey")) - if (!(message.encryptedTransmissionKey && typeof message.encryptedTransmissionKey.length === "number" || $util.isString(message.encryptedTransmissionKey))) - return "encryptedTransmissionKey: buffer expected"; - if (message.publicKeyId != null && message.hasOwnProperty("publicKeyId")) - if (!$util.isInteger(message.publicKeyId)) - return "publicKeyId: integer expected"; - if (message.locale != null && message.hasOwnProperty("locale")) - if (!$util.isString(message.locale)) - return "locale: string expected"; - if (message.encryptedPayload != null && message.hasOwnProperty("encryptedPayload")) - if (!(message.encryptedPayload && typeof message.encryptedPayload.length === "number" || $util.isString(message.encryptedPayload))) - return "encryptedPayload: buffer expected"; - if (message.encryptionType != null && message.hasOwnProperty("encryptionType")) - if (!$util.isInteger(message.encryptionType)) - return "encryptionType: integer expected"; - if (message.recaptcha != null && message.hasOwnProperty("recaptcha")) - if (!$util.isString(message.recaptcha)) - return "recaptcha: string expected"; - if (message.subEnvironment != null && message.hasOwnProperty("subEnvironment")) - if (!$util.isString(message.subEnvironment)) - return "subEnvironment: string expected"; - if (message.qrcMessageKey != null && message.hasOwnProperty("qrcMessageKey")) { + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.encryptedTransmissionKey != null && message.hasOwnProperty('encryptedTransmissionKey')) + if ( + !( + (message.encryptedTransmissionKey && + typeof message.encryptedTransmissionKey.length === 'number') || + $util.isString(message.encryptedTransmissionKey) + ) + ) + return 'encryptedTransmissionKey: buffer expected'; + if (message.publicKeyId != null && message.hasOwnProperty('publicKeyId')) + if (!$util.isInteger(message.publicKeyId)) return 'publicKeyId: integer expected'; + if (message.locale != null && message.hasOwnProperty('locale')) + if (!$util.isString(message.locale)) return 'locale: string expected'; + if (message.encryptedPayload != null && message.hasOwnProperty('encryptedPayload')) + if ( + !( + (message.encryptedPayload && typeof message.encryptedPayload.length === 'number') || + $util.isString(message.encryptedPayload) + ) + ) + return 'encryptedPayload: buffer expected'; + if (message.encryptionType != null && message.hasOwnProperty('encryptionType')) + if (!$util.isInteger(message.encryptionType)) return 'encryptionType: integer expected'; + if (message.recaptcha != null && message.hasOwnProperty('recaptcha')) + if (!$util.isString(message.recaptcha)) return 'recaptcha: string expected'; + if (message.subEnvironment != null && message.hasOwnProperty('subEnvironment')) + if (!$util.isString(message.subEnvironment)) return 'subEnvironment: string expected'; + if (message.qrcMessageKey != null && message.hasOwnProperty('qrcMessageKey')) { let error = $root.Authentication.QrcMessageKey.verify(message.qrcMessageKey); - if (error) - return "qrcMessageKey." + error; + if (error) return 'qrcMessageKey.' + error; } return null; }; @@ -809,32 +844,35 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.ApiRequest} ApiRequest */ ApiRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.ApiRequest) - return object; + if (object instanceof $root.Authentication.ApiRequest) return object; let message = new $root.Authentication.ApiRequest(); if (object.encryptedTransmissionKey != null) - if (typeof object.encryptedTransmissionKey === "string") - $util.base64.decode(object.encryptedTransmissionKey, message.encryptedTransmissionKey = $util.newBuffer($util.base64.length(object.encryptedTransmissionKey)), 0); + if (typeof object.encryptedTransmissionKey === 'string') + $util.base64.decode( + object.encryptedTransmissionKey, + (message.encryptedTransmissionKey = $util.newBuffer( + $util.base64.length(object.encryptedTransmissionKey) + )), + 0 + ); else if (object.encryptedTransmissionKey.length >= 0) message.encryptedTransmissionKey = object.encryptedTransmissionKey; - if (object.publicKeyId != null) - message.publicKeyId = object.publicKeyId | 0; - if (object.locale != null) - message.locale = String(object.locale); + if (object.publicKeyId != null) message.publicKeyId = object.publicKeyId | 0; + if (object.locale != null) message.locale = String(object.locale); if (object.encryptedPayload != null) - if (typeof object.encryptedPayload === "string") - $util.base64.decode(object.encryptedPayload, message.encryptedPayload = $util.newBuffer($util.base64.length(object.encryptedPayload)), 0); - else if (object.encryptedPayload.length >= 0) - message.encryptedPayload = object.encryptedPayload; - if (object.encryptionType != null) - message.encryptionType = object.encryptionType | 0; - if (object.recaptcha != null) - message.recaptcha = String(object.recaptcha); - if (object.subEnvironment != null) - message.subEnvironment = String(object.subEnvironment); + if (typeof object.encryptedPayload === 'string') + $util.base64.decode( + object.encryptedPayload, + (message.encryptedPayload = $util.newBuffer($util.base64.length(object.encryptedPayload))), + 0 + ); + else if (object.encryptedPayload.length >= 0) message.encryptedPayload = object.encryptedPayload; + if (object.encryptionType != null) message.encryptionType = object.encryptionType | 0; + if (object.recaptcha != null) message.recaptcha = String(object.recaptcha); + if (object.subEnvironment != null) message.subEnvironment = String(object.subEnvironment); if (object.qrcMessageKey != null) { - if (typeof object.qrcMessageKey !== "object") - throw TypeError(".Authentication.ApiRequest.qrcMessageKey: object expected"); + if (typeof object.qrcMessageKey !== 'object') + throw TypeError('.Authentication.ApiRequest.qrcMessageKey: object expected'); message.qrcMessageKey = $root.Authentication.QrcMessageKey.fromObject(object.qrcMessageKey); } return message; @@ -850,46 +888,54 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ ApiRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.encryptedTransmissionKey = ""; + if (options.bytes === String) object.encryptedTransmissionKey = ''; else { object.encryptedTransmissionKey = []; if (options.bytes !== Array) object.encryptedTransmissionKey = $util.newBuffer(object.encryptedTransmissionKey); } object.publicKeyId = 0; - object.locale = ""; - if (options.bytes === String) - object.encryptedPayload = ""; + object.locale = ''; + if (options.bytes === String) object.encryptedPayload = ''; else { object.encryptedPayload = []; - if (options.bytes !== Array) - object.encryptedPayload = $util.newBuffer(object.encryptedPayload); + if (options.bytes !== Array) object.encryptedPayload = $util.newBuffer(object.encryptedPayload); } object.encryptionType = 0; - object.recaptcha = ""; - object.subEnvironment = ""; + object.recaptcha = ''; + object.subEnvironment = ''; object.qrcMessageKey = null; } - if (message.encryptedTransmissionKey != null && message.hasOwnProperty("encryptedTransmissionKey")) - object.encryptedTransmissionKey = options.bytes === String ? $util.base64.encode(message.encryptedTransmissionKey, 0, message.encryptedTransmissionKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedTransmissionKey) : message.encryptedTransmissionKey; - if (message.publicKeyId != null && message.hasOwnProperty("publicKeyId")) + if (message.encryptedTransmissionKey != null && message.hasOwnProperty('encryptedTransmissionKey')) + object.encryptedTransmissionKey = + options.bytes === String + ? $util.base64.encode( + message.encryptedTransmissionKey, + 0, + message.encryptedTransmissionKey.length + ) + : options.bytes === Array + ? Array.prototype.slice.call(message.encryptedTransmissionKey) + : message.encryptedTransmissionKey; + if (message.publicKeyId != null && message.hasOwnProperty('publicKeyId')) object.publicKeyId = message.publicKeyId; - if (message.locale != null && message.hasOwnProperty("locale")) - object.locale = message.locale; - if (message.encryptedPayload != null && message.hasOwnProperty("encryptedPayload")) - object.encryptedPayload = options.bytes === String ? $util.base64.encode(message.encryptedPayload, 0, message.encryptedPayload.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedPayload) : message.encryptedPayload; - if (message.encryptionType != null && message.hasOwnProperty("encryptionType")) + if (message.locale != null && message.hasOwnProperty('locale')) object.locale = message.locale; + if (message.encryptedPayload != null && message.hasOwnProperty('encryptedPayload')) + object.encryptedPayload = + options.bytes === String + ? $util.base64.encode(message.encryptedPayload, 0, message.encryptedPayload.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.encryptedPayload) + : message.encryptedPayload; + if (message.encryptionType != null && message.hasOwnProperty('encryptionType')) object.encryptionType = message.encryptionType; - if (message.recaptcha != null && message.hasOwnProperty("recaptcha")) - object.recaptcha = message.recaptcha; - if (message.subEnvironment != null && message.hasOwnProperty("subEnvironment")) + if (message.recaptcha != null && message.hasOwnProperty('recaptcha')) object.recaptcha = message.recaptcha; + if (message.subEnvironment != null && message.hasOwnProperty('subEnvironment')) object.subEnvironment = message.subEnvironment; - if (message.qrcMessageKey != null && message.hasOwnProperty("qrcMessageKey")) + if (message.qrcMessageKey != null && message.hasOwnProperty('qrcMessageKey')) object.qrcMessageKey = $root.Authentication.QrcMessageKey.toObject(message.qrcMessageKey, options); return object; }; @@ -915,16 +961,15 @@ export const Authentication = $root.Authentication = (() => { */ ApiRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.ApiRequest"; + return typeUrlPrefix + '/Authentication.ApiRequest'; }; return ApiRequest; })(); - Authentication.ApiRequestPayload = (function() { - + Authentication.ApiRequestPayload = (function () { /** * Properties of an ApiRequestPayload. * @memberof Authentication @@ -946,8 +991,7 @@ export const Authentication = $root.Authentication = (() => { function ApiRequestPayload(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -1004,16 +1048,15 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ ApiRequestPayload.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.payload != null && Object.hasOwnProperty.call(message, "payload")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.payload); - if (message.encryptedSessionToken != null && Object.hasOwnProperty.call(message, "encryptedSessionToken")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.encryptedSessionToken); - if (message.timeToken != null && Object.hasOwnProperty.call(message, "timeToken")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.timeToken); - if (message.apiVersion != null && Object.hasOwnProperty.call(message, "apiVersion")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.apiVersion); + if (!writer) writer = $Writer.create(); + if (message.payload != null && Object.hasOwnProperty.call(message, 'payload')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.payload); + if (message.encryptedSessionToken != null && Object.hasOwnProperty.call(message, 'encryptedSessionToken')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.encryptedSessionToken); + if (message.timeToken != null && Object.hasOwnProperty.call(message, 'timeToken')) + writer.uint32(/* id 3, wireType 2 =*/ 26).bytes(message.timeToken); + if (message.apiVersion != null && Object.hasOwnProperty.call(message, 'apiVersion')) + writer.uint32(/* id 4, wireType 0 =*/ 32).int32(message.apiVersion); return writer; }; @@ -1042,31 +1085,31 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ApiRequestPayload.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.ApiRequestPayload(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.ApiRequestPayload(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.payload = reader.bytes(); break; } - case 2: { + case 2: { message.encryptedSessionToken = reader.bytes(); break; } - case 3: { + case 3: { message.timeToken = reader.bytes(); break; } - case 4: { + case 4: { message.apiVersion = reader.int32(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -1083,8 +1126,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ApiRequestPayload.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -1097,20 +1139,33 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ ApiRequestPayload.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.payload != null && message.hasOwnProperty("payload")) - if (!(message.payload && typeof message.payload.length === "number" || $util.isString(message.payload))) - return "payload: buffer expected"; - if (message.encryptedSessionToken != null && message.hasOwnProperty("encryptedSessionToken")) - if (!(message.encryptedSessionToken && typeof message.encryptedSessionToken.length === "number" || $util.isString(message.encryptedSessionToken))) - return "encryptedSessionToken: buffer expected"; - if (message.timeToken != null && message.hasOwnProperty("timeToken")) - if (!(message.timeToken && typeof message.timeToken.length === "number" || $util.isString(message.timeToken))) - return "timeToken: buffer expected"; - if (message.apiVersion != null && message.hasOwnProperty("apiVersion")) - if (!$util.isInteger(message.apiVersion)) - return "apiVersion: integer expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.payload != null && message.hasOwnProperty('payload')) + if ( + !( + (message.payload && typeof message.payload.length === 'number') || + $util.isString(message.payload) + ) + ) + return 'payload: buffer expected'; + if (message.encryptedSessionToken != null && message.hasOwnProperty('encryptedSessionToken')) + if ( + !( + (message.encryptedSessionToken && typeof message.encryptedSessionToken.length === 'number') || + $util.isString(message.encryptedSessionToken) + ) + ) + return 'encryptedSessionToken: buffer expected'; + if (message.timeToken != null && message.hasOwnProperty('timeToken')) + if ( + !( + (message.timeToken && typeof message.timeToken.length === 'number') || + $util.isString(message.timeToken) + ) + ) + return 'timeToken: buffer expected'; + if (message.apiVersion != null && message.hasOwnProperty('apiVersion')) + if (!$util.isInteger(message.apiVersion)) return 'apiVersion: integer expected'; return null; }; @@ -1123,26 +1178,36 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.ApiRequestPayload} ApiRequestPayload */ ApiRequestPayload.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.ApiRequestPayload) - return object; + if (object instanceof $root.Authentication.ApiRequestPayload) return object; let message = new $root.Authentication.ApiRequestPayload(); if (object.payload != null) - if (typeof object.payload === "string") - $util.base64.decode(object.payload, message.payload = $util.newBuffer($util.base64.length(object.payload)), 0); - else if (object.payload.length >= 0) - message.payload = object.payload; + if (typeof object.payload === 'string') + $util.base64.decode( + object.payload, + (message.payload = $util.newBuffer($util.base64.length(object.payload))), + 0 + ); + else if (object.payload.length >= 0) message.payload = object.payload; if (object.encryptedSessionToken != null) - if (typeof object.encryptedSessionToken === "string") - $util.base64.decode(object.encryptedSessionToken, message.encryptedSessionToken = $util.newBuffer($util.base64.length(object.encryptedSessionToken)), 0); + if (typeof object.encryptedSessionToken === 'string') + $util.base64.decode( + object.encryptedSessionToken, + (message.encryptedSessionToken = $util.newBuffer( + $util.base64.length(object.encryptedSessionToken) + )), + 0 + ); else if (object.encryptedSessionToken.length >= 0) message.encryptedSessionToken = object.encryptedSessionToken; if (object.timeToken != null) - if (typeof object.timeToken === "string") - $util.base64.decode(object.timeToken, message.timeToken = $util.newBuffer($util.base64.length(object.timeToken)), 0); - else if (object.timeToken.length >= 0) - message.timeToken = object.timeToken; - if (object.apiVersion != null) - message.apiVersion = object.apiVersion | 0; + if (typeof object.timeToken === 'string') + $util.base64.decode( + object.timeToken, + (message.timeToken = $util.newBuffer($util.base64.length(object.timeToken))), + 0 + ); + else if (object.timeToken.length >= 0) message.timeToken = object.timeToken; + if (object.apiVersion != null) message.apiVersion = object.apiVersion | 0; return message; }; @@ -1156,40 +1221,49 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ ApiRequestPayload.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.payload = ""; + if (options.bytes === String) object.payload = ''; else { object.payload = []; - if (options.bytes !== Array) - object.payload = $util.newBuffer(object.payload); + if (options.bytes !== Array) object.payload = $util.newBuffer(object.payload); } - if (options.bytes === String) - object.encryptedSessionToken = ""; + if (options.bytes === String) object.encryptedSessionToken = ''; else { object.encryptedSessionToken = []; if (options.bytes !== Array) object.encryptedSessionToken = $util.newBuffer(object.encryptedSessionToken); } - if (options.bytes === String) - object.timeToken = ""; + if (options.bytes === String) object.timeToken = ''; else { object.timeToken = []; - if (options.bytes !== Array) - object.timeToken = $util.newBuffer(object.timeToken); + if (options.bytes !== Array) object.timeToken = $util.newBuffer(object.timeToken); } object.apiVersion = 0; } - if (message.payload != null && message.hasOwnProperty("payload")) - object.payload = options.bytes === String ? $util.base64.encode(message.payload, 0, message.payload.length) : options.bytes === Array ? Array.prototype.slice.call(message.payload) : message.payload; - if (message.encryptedSessionToken != null && message.hasOwnProperty("encryptedSessionToken")) - object.encryptedSessionToken = options.bytes === String ? $util.base64.encode(message.encryptedSessionToken, 0, message.encryptedSessionToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedSessionToken) : message.encryptedSessionToken; - if (message.timeToken != null && message.hasOwnProperty("timeToken")) - object.timeToken = options.bytes === String ? $util.base64.encode(message.timeToken, 0, message.timeToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.timeToken) : message.timeToken; - if (message.apiVersion != null && message.hasOwnProperty("apiVersion")) + if (message.payload != null && message.hasOwnProperty('payload')) + object.payload = + options.bytes === String + ? $util.base64.encode(message.payload, 0, message.payload.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.payload) + : message.payload; + if (message.encryptedSessionToken != null && message.hasOwnProperty('encryptedSessionToken')) + object.encryptedSessionToken = + options.bytes === String + ? $util.base64.encode(message.encryptedSessionToken, 0, message.encryptedSessionToken.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.encryptedSessionToken) + : message.encryptedSessionToken; + if (message.timeToken != null && message.hasOwnProperty('timeToken')) + object.timeToken = + options.bytes === String + ? $util.base64.encode(message.timeToken, 0, message.timeToken.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.timeToken) + : message.timeToken; + if (message.apiVersion != null && message.hasOwnProperty('apiVersion')) object.apiVersion = message.apiVersion; return object; }; @@ -1215,16 +1289,15 @@ export const Authentication = $root.Authentication = (() => { */ ApiRequestPayload.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.ApiRequestPayload"; + return typeUrlPrefix + '/Authentication.ApiRequestPayload'; }; return ApiRequestPayload; })(); - Authentication.Transform = (function() { - + Authentication.Transform = (function () { /** * Properties of a Transform. * @memberof Authentication @@ -1244,8 +1317,7 @@ export const Authentication = $root.Authentication = (() => { function Transform(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -1286,12 +1358,11 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ Transform.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.key != null && Object.hasOwnProperty.call(message, "key")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.key); - if (message.encryptedDeviceToken != null && Object.hasOwnProperty.call(message, "encryptedDeviceToken")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.encryptedDeviceToken); + if (!writer) writer = $Writer.create(); + if (message.key != null && Object.hasOwnProperty.call(message, 'key')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.key); + if (message.encryptedDeviceToken != null && Object.hasOwnProperty.call(message, 'encryptedDeviceToken')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.encryptedDeviceToken); return writer; }; @@ -1320,23 +1391,23 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ Transform.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.Transform(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.Transform(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.key = reader.bytes(); break; } - case 2: { + case 2: { message.encryptedDeviceToken = reader.bytes(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -1353,8 +1424,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ Transform.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -1367,14 +1437,18 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ Transform.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.key != null && message.hasOwnProperty("key")) - if (!(message.key && typeof message.key.length === "number" || $util.isString(message.key))) - return "key: buffer expected"; - if (message.encryptedDeviceToken != null && message.hasOwnProperty("encryptedDeviceToken")) - if (!(message.encryptedDeviceToken && typeof message.encryptedDeviceToken.length === "number" || $util.isString(message.encryptedDeviceToken))) - return "encryptedDeviceToken: buffer expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.key != null && message.hasOwnProperty('key')) + if (!((message.key && typeof message.key.length === 'number') || $util.isString(message.key))) + return 'key: buffer expected'; + if (message.encryptedDeviceToken != null && message.hasOwnProperty('encryptedDeviceToken')) + if ( + !( + (message.encryptedDeviceToken && typeof message.encryptedDeviceToken.length === 'number') || + $util.isString(message.encryptedDeviceToken) + ) + ) + return 'encryptedDeviceToken: buffer expected'; return null; }; @@ -1387,17 +1461,25 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.Transform} Transform */ Transform.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.Transform) - return object; + if (object instanceof $root.Authentication.Transform) return object; let message = new $root.Authentication.Transform(); if (object.key != null) - if (typeof object.key === "string") - $util.base64.decode(object.key, message.key = $util.newBuffer($util.base64.length(object.key)), 0); - else if (object.key.length >= 0) - message.key = object.key; + if (typeof object.key === 'string') + $util.base64.decode( + object.key, + (message.key = $util.newBuffer($util.base64.length(object.key))), + 0 + ); + else if (object.key.length >= 0) message.key = object.key; if (object.encryptedDeviceToken != null) - if (typeof object.encryptedDeviceToken === "string") - $util.base64.decode(object.encryptedDeviceToken, message.encryptedDeviceToken = $util.newBuffer($util.base64.length(object.encryptedDeviceToken)), 0); + if (typeof object.encryptedDeviceToken === 'string') + $util.base64.decode( + object.encryptedDeviceToken, + (message.encryptedDeviceToken = $util.newBuffer( + $util.base64.length(object.encryptedDeviceToken) + )), + 0 + ); else if (object.encryptedDeviceToken.length >= 0) message.encryptedDeviceToken = object.encryptedDeviceToken; return message; @@ -1413,29 +1495,35 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ Transform.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.key = ""; + if (options.bytes === String) object.key = ''; else { object.key = []; - if (options.bytes !== Array) - object.key = $util.newBuffer(object.key); + if (options.bytes !== Array) object.key = $util.newBuffer(object.key); } - if (options.bytes === String) - object.encryptedDeviceToken = ""; + if (options.bytes === String) object.encryptedDeviceToken = ''; else { object.encryptedDeviceToken = []; if (options.bytes !== Array) object.encryptedDeviceToken = $util.newBuffer(object.encryptedDeviceToken); } } - if (message.key != null && message.hasOwnProperty("key")) - object.key = options.bytes === String ? $util.base64.encode(message.key, 0, message.key.length) : options.bytes === Array ? Array.prototype.slice.call(message.key) : message.key; - if (message.encryptedDeviceToken != null && message.hasOwnProperty("encryptedDeviceToken")) - object.encryptedDeviceToken = options.bytes === String ? $util.base64.encode(message.encryptedDeviceToken, 0, message.encryptedDeviceToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedDeviceToken) : message.encryptedDeviceToken; + if (message.key != null && message.hasOwnProperty('key')) + object.key = + options.bytes === String + ? $util.base64.encode(message.key, 0, message.key.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.key) + : message.key; + if (message.encryptedDeviceToken != null && message.hasOwnProperty('encryptedDeviceToken')) + object.encryptedDeviceToken = + options.bytes === String + ? $util.base64.encode(message.encryptedDeviceToken, 0, message.encryptedDeviceToken.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.encryptedDeviceToken) + : message.encryptedDeviceToken; return object; }; @@ -1460,16 +1548,15 @@ export const Authentication = $root.Authentication = (() => { */ Transform.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.Transform"; + return typeUrlPrefix + '/Authentication.Transform'; }; return Transform; })(); - Authentication.DeviceRequest = (function() { - + Authentication.DeviceRequest = (function () { /** * Properties of a DeviceRequest. * @memberof Authentication @@ -1492,8 +1579,7 @@ export const Authentication = $root.Authentication = (() => { function DeviceRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -1502,7 +1588,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.DeviceRequest * @instance */ - DeviceRequest.prototype.clientVersion = ""; + DeviceRequest.prototype.clientVersion = ''; /** * DeviceRequest deviceName. @@ -1510,7 +1596,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.DeviceRequest * @instance */ - DeviceRequest.prototype.deviceName = ""; + DeviceRequest.prototype.deviceName = ''; /** * DeviceRequest devicePlatform. @@ -1518,7 +1604,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.DeviceRequest * @instance */ - DeviceRequest.prototype.devicePlatform = ""; + DeviceRequest.prototype.devicePlatform = ''; /** * DeviceRequest clientFormFactor. @@ -1534,7 +1620,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.DeviceRequest * @instance */ - DeviceRequest.prototype.username = ""; + DeviceRequest.prototype.username = ''; /** * Creates a new DeviceRequest instance using the specified properties. @@ -1558,18 +1644,17 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ DeviceRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.clientVersion != null && Object.hasOwnProperty.call(message, "clientVersion")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.clientVersion); - if (message.deviceName != null && Object.hasOwnProperty.call(message, "deviceName")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.deviceName); - if (message.devicePlatform != null && Object.hasOwnProperty.call(message, "devicePlatform")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.devicePlatform); - if (message.clientFormFactor != null && Object.hasOwnProperty.call(message, "clientFormFactor")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.clientFormFactor); - if (message.username != null && Object.hasOwnProperty.call(message, "username")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.username); + if (!writer) writer = $Writer.create(); + if (message.clientVersion != null && Object.hasOwnProperty.call(message, 'clientVersion')) + writer.uint32(/* id 1, wireType 2 =*/ 10).string(message.clientVersion); + if (message.deviceName != null && Object.hasOwnProperty.call(message, 'deviceName')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.deviceName); + if (message.devicePlatform != null && Object.hasOwnProperty.call(message, 'devicePlatform')) + writer.uint32(/* id 3, wireType 2 =*/ 26).string(message.devicePlatform); + if (message.clientFormFactor != null && Object.hasOwnProperty.call(message, 'clientFormFactor')) + writer.uint32(/* id 4, wireType 0 =*/ 32).int32(message.clientFormFactor); + if (message.username != null && Object.hasOwnProperty.call(message, 'username')) + writer.uint32(/* id 5, wireType 2 =*/ 42).string(message.username); return writer; }; @@ -1598,35 +1683,35 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ DeviceRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.DeviceRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.DeviceRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.clientVersion = reader.string(); break; } - case 2: { + case 2: { message.deviceName = reader.string(); break; } - case 3: { + case 3: { message.devicePlatform = reader.string(); break; } - case 4: { + case 4: { message.clientFormFactor = reader.int32(); break; } - case 5: { + case 5: { message.username = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -1643,8 +1728,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ DeviceRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -1657,30 +1741,25 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ DeviceRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.clientVersion != null && message.hasOwnProperty("clientVersion")) - if (!$util.isString(message.clientVersion)) - return "clientVersion: string expected"; - if (message.deviceName != null && message.hasOwnProperty("deviceName")) - if (!$util.isString(message.deviceName)) - return "deviceName: string expected"; - if (message.devicePlatform != null && message.hasOwnProperty("devicePlatform")) - if (!$util.isString(message.devicePlatform)) - return "devicePlatform: string expected"; - if (message.clientFormFactor != null && message.hasOwnProperty("clientFormFactor")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.clientVersion != null && message.hasOwnProperty('clientVersion')) + if (!$util.isString(message.clientVersion)) return 'clientVersion: string expected'; + if (message.deviceName != null && message.hasOwnProperty('deviceName')) + if (!$util.isString(message.deviceName)) return 'deviceName: string expected'; + if (message.devicePlatform != null && message.hasOwnProperty('devicePlatform')) + if (!$util.isString(message.devicePlatform)) return 'devicePlatform: string expected'; + if (message.clientFormFactor != null && message.hasOwnProperty('clientFormFactor')) switch (message.clientFormFactor) { - default: - return "clientFormFactor: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; + default: + return 'clientFormFactor: enum value expected'; + case 0: + case 1: + case 2: + case 3: + break; } - if (message.username != null && message.hasOwnProperty("username")) - if (!$util.isString(message.username)) - return "username: string expected"; + if (message.username != null && message.hasOwnProperty('username')) + if (!$util.isString(message.username)) return 'username: string expected'; return null; }; @@ -1693,41 +1772,36 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.DeviceRequest} DeviceRequest */ DeviceRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.DeviceRequest) - return object; + if (object instanceof $root.Authentication.DeviceRequest) return object; let message = new $root.Authentication.DeviceRequest(); - if (object.clientVersion != null) - message.clientVersion = String(object.clientVersion); - if (object.deviceName != null) - message.deviceName = String(object.deviceName); - if (object.devicePlatform != null) - message.devicePlatform = String(object.devicePlatform); + if (object.clientVersion != null) message.clientVersion = String(object.clientVersion); + if (object.deviceName != null) message.deviceName = String(object.deviceName); + if (object.devicePlatform != null) message.devicePlatform = String(object.devicePlatform); switch (object.clientFormFactor) { - default: - if (typeof object.clientFormFactor === "number") { - message.clientFormFactor = object.clientFormFactor; + default: + if (typeof object.clientFormFactor === 'number') { + message.clientFormFactor = object.clientFormFactor; + break; + } + break; + case 'FF_EMPTY': + case 0: + message.clientFormFactor = 0; + break; + case 'FF_PHONE': + case 1: + message.clientFormFactor = 1; + break; + case 'FF_TABLET': + case 2: + message.clientFormFactor = 2; + break; + case 'FF_WATCH': + case 3: + message.clientFormFactor = 3; break; - } - break; - case "FF_EMPTY": - case 0: - message.clientFormFactor = 0; - break; - case "FF_PHONE": - case 1: - message.clientFormFactor = 1; - break; - case "FF_TABLET": - case 2: - message.clientFormFactor = 2; - break; - case "FF_WATCH": - case 3: - message.clientFormFactor = 3; - break; } - if (object.username != null) - message.username = String(object.username); + if (object.username != null) message.username = String(object.username); return message; }; @@ -1741,26 +1815,29 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ DeviceRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - object.clientVersion = ""; - object.deviceName = ""; - object.devicePlatform = ""; - object.clientFormFactor = options.enums === String ? "FF_EMPTY" : 0; - object.username = ""; + object.clientVersion = ''; + object.deviceName = ''; + object.devicePlatform = ''; + object.clientFormFactor = options.enums === String ? 'FF_EMPTY' : 0; + object.username = ''; } - if (message.clientVersion != null && message.hasOwnProperty("clientVersion")) + if (message.clientVersion != null && message.hasOwnProperty('clientVersion')) object.clientVersion = message.clientVersion; - if (message.deviceName != null && message.hasOwnProperty("deviceName")) + if (message.deviceName != null && message.hasOwnProperty('deviceName')) object.deviceName = message.deviceName; - if (message.devicePlatform != null && message.hasOwnProperty("devicePlatform")) + if (message.devicePlatform != null && message.hasOwnProperty('devicePlatform')) object.devicePlatform = message.devicePlatform; - if (message.clientFormFactor != null && message.hasOwnProperty("clientFormFactor")) - object.clientFormFactor = options.enums === String ? $root.Authentication.ClientFormFactor[message.clientFormFactor] === undefined ? message.clientFormFactor : $root.Authentication.ClientFormFactor[message.clientFormFactor] : message.clientFormFactor; - if (message.username != null && message.hasOwnProperty("username")) - object.username = message.username; + if (message.clientFormFactor != null && message.hasOwnProperty('clientFormFactor')) + object.clientFormFactor = + options.enums === String + ? $root.Authentication.ClientFormFactor[message.clientFormFactor] === undefined + ? message.clientFormFactor + : $root.Authentication.ClientFormFactor[message.clientFormFactor] + : message.clientFormFactor; + if (message.username != null && message.hasOwnProperty('username')) object.username = message.username; return object; }; @@ -1785,16 +1862,15 @@ export const Authentication = $root.Authentication = (() => { */ DeviceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.DeviceRequest"; + return typeUrlPrefix + '/Authentication.DeviceRequest'; }; return DeviceRequest; })(); - Authentication.AuthRequest = (function() { - + Authentication.AuthRequest = (function () { /** * Properties of an AuthRequest. * @memberof Authentication @@ -1815,8 +1891,7 @@ export const Authentication = $root.Authentication = (() => { function AuthRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -1825,7 +1900,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.AuthRequest * @instance */ - AuthRequest.prototype.clientVersion = ""; + AuthRequest.prototype.clientVersion = ''; /** * AuthRequest username. @@ -1833,7 +1908,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.AuthRequest * @instance */ - AuthRequest.prototype.username = ""; + AuthRequest.prototype.username = ''; /** * AuthRequest encryptedDeviceToken. @@ -1865,14 +1940,13 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ AuthRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.clientVersion != null && Object.hasOwnProperty.call(message, "clientVersion")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.clientVersion); - if (message.username != null && Object.hasOwnProperty.call(message, "username")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.username); - if (message.encryptedDeviceToken != null && Object.hasOwnProperty.call(message, "encryptedDeviceToken")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.encryptedDeviceToken); + if (!writer) writer = $Writer.create(); + if (message.clientVersion != null && Object.hasOwnProperty.call(message, 'clientVersion')) + writer.uint32(/* id 1, wireType 2 =*/ 10).string(message.clientVersion); + if (message.username != null && Object.hasOwnProperty.call(message, 'username')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.username); + if (message.encryptedDeviceToken != null && Object.hasOwnProperty.call(message, 'encryptedDeviceToken')) + writer.uint32(/* id 3, wireType 2 =*/ 26).bytes(message.encryptedDeviceToken); return writer; }; @@ -1901,27 +1975,27 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ AuthRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.AuthRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.AuthRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.clientVersion = reader.string(); break; } - case 2: { + case 2: { message.username = reader.string(); break; } - case 3: { + case 3: { message.encryptedDeviceToken = reader.bytes(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -1938,8 +2012,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ AuthRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -1952,17 +2025,19 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ AuthRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.clientVersion != null && message.hasOwnProperty("clientVersion")) - if (!$util.isString(message.clientVersion)) - return "clientVersion: string expected"; - if (message.username != null && message.hasOwnProperty("username")) - if (!$util.isString(message.username)) - return "username: string expected"; - if (message.encryptedDeviceToken != null && message.hasOwnProperty("encryptedDeviceToken")) - if (!(message.encryptedDeviceToken && typeof message.encryptedDeviceToken.length === "number" || $util.isString(message.encryptedDeviceToken))) - return "encryptedDeviceToken: buffer expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.clientVersion != null && message.hasOwnProperty('clientVersion')) + if (!$util.isString(message.clientVersion)) return 'clientVersion: string expected'; + if (message.username != null && message.hasOwnProperty('username')) + if (!$util.isString(message.username)) return 'username: string expected'; + if (message.encryptedDeviceToken != null && message.hasOwnProperty('encryptedDeviceToken')) + if ( + !( + (message.encryptedDeviceToken && typeof message.encryptedDeviceToken.length === 'number') || + $util.isString(message.encryptedDeviceToken) + ) + ) + return 'encryptedDeviceToken: buffer expected'; return null; }; @@ -1975,16 +2050,19 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.AuthRequest} AuthRequest */ AuthRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.AuthRequest) - return object; + if (object instanceof $root.Authentication.AuthRequest) return object; let message = new $root.Authentication.AuthRequest(); - if (object.clientVersion != null) - message.clientVersion = String(object.clientVersion); - if (object.username != null) - message.username = String(object.username); + if (object.clientVersion != null) message.clientVersion = String(object.clientVersion); + if (object.username != null) message.username = String(object.username); if (object.encryptedDeviceToken != null) - if (typeof object.encryptedDeviceToken === "string") - $util.base64.decode(object.encryptedDeviceToken, message.encryptedDeviceToken = $util.newBuffer($util.base64.length(object.encryptedDeviceToken)), 0); + if (typeof object.encryptedDeviceToken === 'string') + $util.base64.decode( + object.encryptedDeviceToken, + (message.encryptedDeviceToken = $util.newBuffer( + $util.base64.length(object.encryptedDeviceToken) + )), + 0 + ); else if (object.encryptedDeviceToken.length >= 0) message.encryptedDeviceToken = object.encryptedDeviceToken; return message; @@ -2000,26 +2078,28 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ AuthRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - object.clientVersion = ""; - object.username = ""; - if (options.bytes === String) - object.encryptedDeviceToken = ""; + object.clientVersion = ''; + object.username = ''; + if (options.bytes === String) object.encryptedDeviceToken = ''; else { object.encryptedDeviceToken = []; if (options.bytes !== Array) object.encryptedDeviceToken = $util.newBuffer(object.encryptedDeviceToken); } } - if (message.clientVersion != null && message.hasOwnProperty("clientVersion")) + if (message.clientVersion != null && message.hasOwnProperty('clientVersion')) object.clientVersion = message.clientVersion; - if (message.username != null && message.hasOwnProperty("username")) - object.username = message.username; - if (message.encryptedDeviceToken != null && message.hasOwnProperty("encryptedDeviceToken")) - object.encryptedDeviceToken = options.bytes === String ? $util.base64.encode(message.encryptedDeviceToken, 0, message.encryptedDeviceToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedDeviceToken) : message.encryptedDeviceToken; + if (message.username != null && message.hasOwnProperty('username')) object.username = message.username; + if (message.encryptedDeviceToken != null && message.hasOwnProperty('encryptedDeviceToken')) + object.encryptedDeviceToken = + options.bytes === String + ? $util.base64.encode(message.encryptedDeviceToken, 0, message.encryptedDeviceToken.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.encryptedDeviceToken) + : message.encryptedDeviceToken; return object; }; @@ -2044,16 +2124,15 @@ export const Authentication = $root.Authentication = (() => { */ AuthRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.AuthRequest"; + return typeUrlPrefix + '/Authentication.AuthRequest'; }; return AuthRequest; })(); - Authentication.NewUserMinimumParams = (function() { - + Authentication.NewUserMinimumParams = (function () { /** * Properties of a NewUserMinimumParams. * @memberof Authentication @@ -2079,8 +2158,7 @@ export const Authentication = $root.Authentication = (() => { this.passwordMatchDescription = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -2153,22 +2231,21 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ NewUserMinimumParams.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.minimumIterations != null && Object.hasOwnProperty.call(message, "minimumIterations")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.minimumIterations); + if (!writer) writer = $Writer.create(); + if (message.minimumIterations != null && Object.hasOwnProperty.call(message, 'minimumIterations')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int32(message.minimumIterations); if (message.passwordMatchRegex != null && message.passwordMatchRegex.length) for (let i = 0; i < message.passwordMatchRegex.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.passwordMatchRegex[i]); + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.passwordMatchRegex[i]); if (message.passwordMatchDescription != null && message.passwordMatchDescription.length) for (let i = 0; i < message.passwordMatchDescription.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.passwordMatchDescription[i]); - if (message.isEnterpriseDomain != null && Object.hasOwnProperty.call(message, "isEnterpriseDomain")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.isEnterpriseDomain); - if (message.enterpriseEccPublicKey != null && Object.hasOwnProperty.call(message, "enterpriseEccPublicKey")) - writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.enterpriseEccPublicKey); - if (message.forbidKeyType2 != null && Object.hasOwnProperty.call(message, "forbidKeyType2")) - writer.uint32(/* id 6, wireType 0 =*/48).bool(message.forbidKeyType2); + writer.uint32(/* id 3, wireType 2 =*/ 26).string(message.passwordMatchDescription[i]); + if (message.isEnterpriseDomain != null && Object.hasOwnProperty.call(message, 'isEnterpriseDomain')) + writer.uint32(/* id 4, wireType 0 =*/ 32).bool(message.isEnterpriseDomain); + if (message.enterpriseEccPublicKey != null && Object.hasOwnProperty.call(message, 'enterpriseEccPublicKey')) + writer.uint32(/* id 5, wireType 2 =*/ 42).bytes(message.enterpriseEccPublicKey); + if (message.forbidKeyType2 != null && Object.hasOwnProperty.call(message, 'forbidKeyType2')) + writer.uint32(/* id 6, wireType 0 =*/ 48).bool(message.forbidKeyType2); return writer; }; @@ -2197,43 +2274,43 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ NewUserMinimumParams.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.NewUserMinimumParams(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.NewUserMinimumParams(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.minimumIterations = reader.int32(); break; } - case 2: { + case 2: { if (!(message.passwordMatchRegex && message.passwordMatchRegex.length)) message.passwordMatchRegex = []; message.passwordMatchRegex.push(reader.string()); break; } - case 3: { + case 3: { if (!(message.passwordMatchDescription && message.passwordMatchDescription.length)) message.passwordMatchDescription = []; message.passwordMatchDescription.push(reader.string()); break; } - case 4: { + case 4: { message.isEnterpriseDomain = reader.bool(); break; } - case 5: { + case 5: { message.enterpriseEccPublicKey = reader.bytes(); break; } - case 6: { + case 6: { message.forbidKeyType2 = reader.bool(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -2250,8 +2327,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ NewUserMinimumParams.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -2264,34 +2340,32 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ NewUserMinimumParams.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.minimumIterations != null && message.hasOwnProperty("minimumIterations")) - if (!$util.isInteger(message.minimumIterations)) - return "minimumIterations: integer expected"; - if (message.passwordMatchRegex != null && message.hasOwnProperty("passwordMatchRegex")) { - if (!Array.isArray(message.passwordMatchRegex)) - return "passwordMatchRegex: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.minimumIterations != null && message.hasOwnProperty('minimumIterations')) + if (!$util.isInteger(message.minimumIterations)) return 'minimumIterations: integer expected'; + if (message.passwordMatchRegex != null && message.hasOwnProperty('passwordMatchRegex')) { + if (!Array.isArray(message.passwordMatchRegex)) return 'passwordMatchRegex: array expected'; for (let i = 0; i < message.passwordMatchRegex.length; ++i) - if (!$util.isString(message.passwordMatchRegex[i])) - return "passwordMatchRegex: string[] expected"; + if (!$util.isString(message.passwordMatchRegex[i])) return 'passwordMatchRegex: string[] expected'; } - if (message.passwordMatchDescription != null && message.hasOwnProperty("passwordMatchDescription")) { - if (!Array.isArray(message.passwordMatchDescription)) - return "passwordMatchDescription: array expected"; + if (message.passwordMatchDescription != null && message.hasOwnProperty('passwordMatchDescription')) { + if (!Array.isArray(message.passwordMatchDescription)) return 'passwordMatchDescription: array expected'; for (let i = 0; i < message.passwordMatchDescription.length; ++i) if (!$util.isString(message.passwordMatchDescription[i])) - return "passwordMatchDescription: string[] expected"; + return 'passwordMatchDescription: string[] expected'; } - if (message.isEnterpriseDomain != null && message.hasOwnProperty("isEnterpriseDomain")) - if (typeof message.isEnterpriseDomain !== "boolean") - return "isEnterpriseDomain: boolean expected"; - if (message.enterpriseEccPublicKey != null && message.hasOwnProperty("enterpriseEccPublicKey")) - if (!(message.enterpriseEccPublicKey && typeof message.enterpriseEccPublicKey.length === "number" || $util.isString(message.enterpriseEccPublicKey))) - return "enterpriseEccPublicKey: buffer expected"; - if (message.forbidKeyType2 != null && message.hasOwnProperty("forbidKeyType2")) - if (typeof message.forbidKeyType2 !== "boolean") - return "forbidKeyType2: boolean expected"; + if (message.isEnterpriseDomain != null && message.hasOwnProperty('isEnterpriseDomain')) + if (typeof message.isEnterpriseDomain !== 'boolean') return 'isEnterpriseDomain: boolean expected'; + if (message.enterpriseEccPublicKey != null && message.hasOwnProperty('enterpriseEccPublicKey')) + if ( + !( + (message.enterpriseEccPublicKey && typeof message.enterpriseEccPublicKey.length === 'number') || + $util.isString(message.enterpriseEccPublicKey) + ) + ) + return 'enterpriseEccPublicKey: buffer expected'; + if (message.forbidKeyType2 != null && message.hasOwnProperty('forbidKeyType2')) + if (typeof message.forbidKeyType2 !== 'boolean') return 'forbidKeyType2: boolean expected'; return null; }; @@ -2304,34 +2378,36 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.NewUserMinimumParams} NewUserMinimumParams */ NewUserMinimumParams.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.NewUserMinimumParams) - return object; + if (object instanceof $root.Authentication.NewUserMinimumParams) return object; let message = new $root.Authentication.NewUserMinimumParams(); - if (object.minimumIterations != null) - message.minimumIterations = object.minimumIterations | 0; + if (object.minimumIterations != null) message.minimumIterations = object.minimumIterations | 0; if (object.passwordMatchRegex) { if (!Array.isArray(object.passwordMatchRegex)) - throw TypeError(".Authentication.NewUserMinimumParams.passwordMatchRegex: array expected"); + throw TypeError('.Authentication.NewUserMinimumParams.passwordMatchRegex: array expected'); message.passwordMatchRegex = []; for (let i = 0; i < object.passwordMatchRegex.length; ++i) message.passwordMatchRegex[i] = String(object.passwordMatchRegex[i]); } if (object.passwordMatchDescription) { if (!Array.isArray(object.passwordMatchDescription)) - throw TypeError(".Authentication.NewUserMinimumParams.passwordMatchDescription: array expected"); + throw TypeError('.Authentication.NewUserMinimumParams.passwordMatchDescription: array expected'); message.passwordMatchDescription = []; for (let i = 0; i < object.passwordMatchDescription.length; ++i) message.passwordMatchDescription[i] = String(object.passwordMatchDescription[i]); } - if (object.isEnterpriseDomain != null) - message.isEnterpriseDomain = Boolean(object.isEnterpriseDomain); + if (object.isEnterpriseDomain != null) message.isEnterpriseDomain = Boolean(object.isEnterpriseDomain); if (object.enterpriseEccPublicKey != null) - if (typeof object.enterpriseEccPublicKey === "string") - $util.base64.decode(object.enterpriseEccPublicKey, message.enterpriseEccPublicKey = $util.newBuffer($util.base64.length(object.enterpriseEccPublicKey)), 0); + if (typeof object.enterpriseEccPublicKey === 'string') + $util.base64.decode( + object.enterpriseEccPublicKey, + (message.enterpriseEccPublicKey = $util.newBuffer( + $util.base64.length(object.enterpriseEccPublicKey) + )), + 0 + ); else if (object.enterpriseEccPublicKey.length >= 0) message.enterpriseEccPublicKey = object.enterpriseEccPublicKey; - if (object.forbidKeyType2 != null) - message.forbidKeyType2 = Boolean(object.forbidKeyType2); + if (object.forbidKeyType2 != null) message.forbidKeyType2 = Boolean(object.forbidKeyType2); return message; }; @@ -2345,8 +2421,7 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ NewUserMinimumParams.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.arrays || options.defaults) { object.passwordMatchRegex = []; @@ -2355,8 +2430,7 @@ export const Authentication = $root.Authentication = (() => { if (options.defaults) { object.minimumIterations = 0; object.isEnterpriseDomain = false; - if (options.bytes === String) - object.enterpriseEccPublicKey = ""; + if (options.bytes === String) object.enterpriseEccPublicKey = ''; else { object.enterpriseEccPublicKey = []; if (options.bytes !== Array) @@ -2364,7 +2438,7 @@ export const Authentication = $root.Authentication = (() => { } object.forbidKeyType2 = false; } - if (message.minimumIterations != null && message.hasOwnProperty("minimumIterations")) + if (message.minimumIterations != null && message.hasOwnProperty('minimumIterations')) object.minimumIterations = message.minimumIterations; if (message.passwordMatchRegex && message.passwordMatchRegex.length) { object.passwordMatchRegex = []; @@ -2376,11 +2450,16 @@ export const Authentication = $root.Authentication = (() => { for (let j = 0; j < message.passwordMatchDescription.length; ++j) object.passwordMatchDescription[j] = message.passwordMatchDescription[j]; } - if (message.isEnterpriseDomain != null && message.hasOwnProperty("isEnterpriseDomain")) + if (message.isEnterpriseDomain != null && message.hasOwnProperty('isEnterpriseDomain')) object.isEnterpriseDomain = message.isEnterpriseDomain; - if (message.enterpriseEccPublicKey != null && message.hasOwnProperty("enterpriseEccPublicKey")) - object.enterpriseEccPublicKey = options.bytes === String ? $util.base64.encode(message.enterpriseEccPublicKey, 0, message.enterpriseEccPublicKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.enterpriseEccPublicKey) : message.enterpriseEccPublicKey; - if (message.forbidKeyType2 != null && message.hasOwnProperty("forbidKeyType2")) + if (message.enterpriseEccPublicKey != null && message.hasOwnProperty('enterpriseEccPublicKey')) + object.enterpriseEccPublicKey = + options.bytes === String + ? $util.base64.encode(message.enterpriseEccPublicKey, 0, message.enterpriseEccPublicKey.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.enterpriseEccPublicKey) + : message.enterpriseEccPublicKey; + if (message.forbidKeyType2 != null && message.hasOwnProperty('forbidKeyType2')) object.forbidKeyType2 = message.forbidKeyType2; return object; }; @@ -2406,16 +2485,15 @@ export const Authentication = $root.Authentication = (() => { */ NewUserMinimumParams.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.NewUserMinimumParams"; + return typeUrlPrefix + '/Authentication.NewUserMinimumParams'; }; return NewUserMinimumParams; })(); - Authentication.PreLoginRequest = (function() { - + Authentication.PreLoginRequest = (function () { /** * Properties of a PreLoginRequest. * @memberof Authentication @@ -2436,8 +2514,7 @@ export const Authentication = $root.Authentication = (() => { function PreLoginRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -2486,14 +2563,16 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ PreLoginRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.authRequest != null && Object.hasOwnProperty.call(message, "authRequest")) - $root.Authentication.AuthRequest.encode(message.authRequest, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.loginType != null && Object.hasOwnProperty.call(message, "loginType")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.loginType); - if (message.twoFactorToken != null && Object.hasOwnProperty.call(message, "twoFactorToken")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.twoFactorToken); + if (!writer) writer = $Writer.create(); + if (message.authRequest != null && Object.hasOwnProperty.call(message, 'authRequest')) + $root.Authentication.AuthRequest.encode( + message.authRequest, + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); + if (message.loginType != null && Object.hasOwnProperty.call(message, 'loginType')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int32(message.loginType); + if (message.twoFactorToken != null && Object.hasOwnProperty.call(message, 'twoFactorToken')) + writer.uint32(/* id 3, wireType 2 =*/ 26).bytes(message.twoFactorToken); return writer; }; @@ -2522,27 +2601,27 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ PreLoginRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.PreLoginRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.PreLoginRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.authRequest = $root.Authentication.AuthRequest.decode(reader, reader.uint32()); break; } - case 2: { + case 2: { message.loginType = reader.int32(); break; } - case 3: { + case 3: { message.twoFactorToken = reader.bytes(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -2559,8 +2638,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ PreLoginRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -2573,29 +2651,32 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ PreLoginRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.authRequest != null && message.hasOwnProperty("authRequest")) { + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.authRequest != null && message.hasOwnProperty('authRequest')) { let error = $root.Authentication.AuthRequest.verify(message.authRequest); - if (error) - return "authRequest." + error; + if (error) return 'authRequest.' + error; } - if (message.loginType != null && message.hasOwnProperty("loginType")) + if (message.loginType != null && message.hasOwnProperty('loginType')) switch (message.loginType) { - default: - return "loginType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - break; + default: + return 'loginType: enum value expected'; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + break; } - if (message.twoFactorToken != null && message.hasOwnProperty("twoFactorToken")) - if (!(message.twoFactorToken && typeof message.twoFactorToken.length === "number" || $util.isString(message.twoFactorToken))) - return "twoFactorToken: buffer expected"; + if (message.twoFactorToken != null && message.hasOwnProperty('twoFactorToken')) + if ( + !( + (message.twoFactorToken && typeof message.twoFactorToken.length === 'number') || + $util.isString(message.twoFactorToken) + ) + ) + return 'twoFactorToken: buffer expected'; return null; }; @@ -2608,55 +2689,57 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.PreLoginRequest} PreLoginRequest */ PreLoginRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.PreLoginRequest) - return object; + if (object instanceof $root.Authentication.PreLoginRequest) return object; let message = new $root.Authentication.PreLoginRequest(); if (object.authRequest != null) { - if (typeof object.authRequest !== "object") - throw TypeError(".Authentication.PreLoginRequest.authRequest: object expected"); + if (typeof object.authRequest !== 'object') + throw TypeError('.Authentication.PreLoginRequest.authRequest: object expected'); message.authRequest = $root.Authentication.AuthRequest.fromObject(object.authRequest); } switch (object.loginType) { - default: - if (typeof object.loginType === "number") { - message.loginType = object.loginType; - break; - } - break; - case "NORMAL": - case 0: - message.loginType = 0; - break; - case "SSO": - case 1: - message.loginType = 1; - break; - case "BIO": - case 2: - message.loginType = 2; - break; - case "ALTERNATE": - case 3: - message.loginType = 3; - break; - case "OFFLINE": - case 4: - message.loginType = 4; - break; - case "FORGOT_PASSWORD": - case 5: - message.loginType = 5; - break; - case "PASSKEY_BIO": - case 6: - message.loginType = 6; - break; + default: + if (typeof object.loginType === 'number') { + message.loginType = object.loginType; + break; + } + break; + case 'NORMAL': + case 0: + message.loginType = 0; + break; + case 'SSO': + case 1: + message.loginType = 1; + break; + case 'BIO': + case 2: + message.loginType = 2; + break; + case 'ALTERNATE': + case 3: + message.loginType = 3; + break; + case 'OFFLINE': + case 4: + message.loginType = 4; + break; + case 'FORGOT_PASSWORD': + case 5: + message.loginType = 5; + break; + case 'PASSKEY_BIO': + case 6: + message.loginType = 6; + break; } if (object.twoFactorToken != null) - if (typeof object.twoFactorToken === "string") - $util.base64.decode(object.twoFactorToken, message.twoFactorToken = $util.newBuffer($util.base64.length(object.twoFactorToken)), 0); - else if (object.twoFactorToken.length >= 0) - message.twoFactorToken = object.twoFactorToken; + if (typeof object.twoFactorToken === 'string') + $util.base64.decode( + object.twoFactorToken, + (message.twoFactorToken = $util.newBuffer($util.base64.length(object.twoFactorToken))), + 0 + ); + else if (object.twoFactorToken.length >= 0) message.twoFactorToken = object.twoFactorToken; return message; }; @@ -2670,26 +2753,33 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ PreLoginRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { object.authRequest = null; - object.loginType = options.enums === String ? "NORMAL" : 0; - if (options.bytes === String) - object.twoFactorToken = ""; + object.loginType = options.enums === String ? 'NORMAL' : 0; + if (options.bytes === String) object.twoFactorToken = ''; else { object.twoFactorToken = []; - if (options.bytes !== Array) - object.twoFactorToken = $util.newBuffer(object.twoFactorToken); + if (options.bytes !== Array) object.twoFactorToken = $util.newBuffer(object.twoFactorToken); } } - if (message.authRequest != null && message.hasOwnProperty("authRequest")) + if (message.authRequest != null && message.hasOwnProperty('authRequest')) object.authRequest = $root.Authentication.AuthRequest.toObject(message.authRequest, options); - if (message.loginType != null && message.hasOwnProperty("loginType")) - object.loginType = options.enums === String ? $root.Authentication.LoginType[message.loginType] === undefined ? message.loginType : $root.Authentication.LoginType[message.loginType] : message.loginType; - if (message.twoFactorToken != null && message.hasOwnProperty("twoFactorToken")) - object.twoFactorToken = options.bytes === String ? $util.base64.encode(message.twoFactorToken, 0, message.twoFactorToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.twoFactorToken) : message.twoFactorToken; + if (message.loginType != null && message.hasOwnProperty('loginType')) + object.loginType = + options.enums === String + ? $root.Authentication.LoginType[message.loginType] === undefined + ? message.loginType + : $root.Authentication.LoginType[message.loginType] + : message.loginType; + if (message.twoFactorToken != null && message.hasOwnProperty('twoFactorToken')) + object.twoFactorToken = + options.bytes === String + ? $util.base64.encode(message.twoFactorToken, 0, message.twoFactorToken.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.twoFactorToken) + : message.twoFactorToken; return object; }; @@ -2714,16 +2804,15 @@ export const Authentication = $root.Authentication = (() => { */ PreLoginRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.PreLoginRequest"; + return typeUrlPrefix + '/Authentication.PreLoginRequest'; }; return PreLoginRequest; })(); - Authentication.LoginRequest = (function() { - + Authentication.LoginRequest = (function () { /** * Properties of a LoginRequest. * @memberof Authentication @@ -2749,8 +2838,7 @@ export const Authentication = $root.Authentication = (() => { function LoginRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -2807,7 +2895,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.LoginRequest * @instance */ - LoginRequest.prototype.pushToken = ""; + LoginRequest.prototype.pushToken = ''; /** * LoginRequest platform. @@ -2815,7 +2903,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.LoginRequest * @instance */ - LoginRequest.prototype.platform = ""; + LoginRequest.prototype.platform = ''; /** * Creates a new LoginRequest instance using the specified properties. @@ -2839,24 +2927,29 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ LoginRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.authRequest != null && Object.hasOwnProperty.call(message, "authRequest")) - $root.Authentication.AuthRequest.encode(message.authRequest, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.loginType != null && Object.hasOwnProperty.call(message, "loginType")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.loginType); - if (message.authenticationHashPrime != null && Object.hasOwnProperty.call(message, "authenticationHashPrime")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.authenticationHashPrime); - if (message.encryptedLoginToken != null && Object.hasOwnProperty.call(message, "encryptedLoginToken")) - writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.encryptedLoginToken); - if (message.authResponse != null && Object.hasOwnProperty.call(message, "authResponse")) - writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.authResponse); - if (message.mcEnterpriseId != null && Object.hasOwnProperty.call(message, "mcEnterpriseId")) - writer.uint32(/* id 6, wireType 0 =*/48).int32(message.mcEnterpriseId); - if (message.pushToken != null && Object.hasOwnProperty.call(message, "pushToken")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.pushToken); - if (message.platform != null && Object.hasOwnProperty.call(message, "platform")) - writer.uint32(/* id 8, wireType 2 =*/66).string(message.platform); + if (!writer) writer = $Writer.create(); + if (message.authRequest != null && Object.hasOwnProperty.call(message, 'authRequest')) + $root.Authentication.AuthRequest.encode( + message.authRequest, + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); + if (message.loginType != null && Object.hasOwnProperty.call(message, 'loginType')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int32(message.loginType); + if ( + message.authenticationHashPrime != null && + Object.hasOwnProperty.call(message, 'authenticationHashPrime') + ) + writer.uint32(/* id 3, wireType 2 =*/ 26).bytes(message.authenticationHashPrime); + if (message.encryptedLoginToken != null && Object.hasOwnProperty.call(message, 'encryptedLoginToken')) + writer.uint32(/* id 4, wireType 2 =*/ 34).bytes(message.encryptedLoginToken); + if (message.authResponse != null && Object.hasOwnProperty.call(message, 'authResponse')) + writer.uint32(/* id 5, wireType 2 =*/ 42).bytes(message.authResponse); + if (message.mcEnterpriseId != null && Object.hasOwnProperty.call(message, 'mcEnterpriseId')) + writer.uint32(/* id 6, wireType 0 =*/ 48).int32(message.mcEnterpriseId); + if (message.pushToken != null && Object.hasOwnProperty.call(message, 'pushToken')) + writer.uint32(/* id 7, wireType 2 =*/ 58).string(message.pushToken); + if (message.platform != null && Object.hasOwnProperty.call(message, 'platform')) + writer.uint32(/* id 8, wireType 2 =*/ 66).string(message.platform); return writer; }; @@ -2885,47 +2978,47 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ LoginRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.LoginRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.LoginRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.authRequest = $root.Authentication.AuthRequest.decode(reader, reader.uint32()); break; } - case 2: { + case 2: { message.loginType = reader.int32(); break; } - case 3: { + case 3: { message.authenticationHashPrime = reader.bytes(); break; } - case 4: { + case 4: { message.encryptedLoginToken = reader.bytes(); break; } - case 5: { + case 5: { message.authResponse = reader.bytes(); break; } - case 6: { + case 6: { message.mcEnterpriseId = reader.int32(); break; } - case 7: { + case 7: { message.pushToken = reader.string(); break; } - case 8: { + case 8: { message.platform = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -2942,8 +3035,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ LoginRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -2956,44 +3048,55 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ LoginRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.authRequest != null && message.hasOwnProperty("authRequest")) { + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.authRequest != null && message.hasOwnProperty('authRequest')) { let error = $root.Authentication.AuthRequest.verify(message.authRequest); - if (error) - return "authRequest." + error; + if (error) return 'authRequest.' + error; } - if (message.loginType != null && message.hasOwnProperty("loginType")) + if (message.loginType != null && message.hasOwnProperty('loginType')) switch (message.loginType) { - default: - return "loginType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - break; + default: + return 'loginType: enum value expected'; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + break; } - if (message.authenticationHashPrime != null && message.hasOwnProperty("authenticationHashPrime")) - if (!(message.authenticationHashPrime && typeof message.authenticationHashPrime.length === "number" || $util.isString(message.authenticationHashPrime))) - return "authenticationHashPrime: buffer expected"; - if (message.encryptedLoginToken != null && message.hasOwnProperty("encryptedLoginToken")) - if (!(message.encryptedLoginToken && typeof message.encryptedLoginToken.length === "number" || $util.isString(message.encryptedLoginToken))) - return "encryptedLoginToken: buffer expected"; - if (message.authResponse != null && message.hasOwnProperty("authResponse")) - if (!(message.authResponse && typeof message.authResponse.length === "number" || $util.isString(message.authResponse))) - return "authResponse: buffer expected"; - if (message.mcEnterpriseId != null && message.hasOwnProperty("mcEnterpriseId")) - if (!$util.isInteger(message.mcEnterpriseId)) - return "mcEnterpriseId: integer expected"; - if (message.pushToken != null && message.hasOwnProperty("pushToken")) - if (!$util.isString(message.pushToken)) - return "pushToken: string expected"; - if (message.platform != null && message.hasOwnProperty("platform")) - if (!$util.isString(message.platform)) - return "platform: string expected"; + if (message.authenticationHashPrime != null && message.hasOwnProperty('authenticationHashPrime')) + if ( + !( + (message.authenticationHashPrime && + typeof message.authenticationHashPrime.length === 'number') || + $util.isString(message.authenticationHashPrime) + ) + ) + return 'authenticationHashPrime: buffer expected'; + if (message.encryptedLoginToken != null && message.hasOwnProperty('encryptedLoginToken')) + if ( + !( + (message.encryptedLoginToken && typeof message.encryptedLoginToken.length === 'number') || + $util.isString(message.encryptedLoginToken) + ) + ) + return 'encryptedLoginToken: buffer expected'; + if (message.authResponse != null && message.hasOwnProperty('authResponse')) + if ( + !( + (message.authResponse && typeof message.authResponse.length === 'number') || + $util.isString(message.authResponse) + ) + ) + return 'authResponse: buffer expected'; + if (message.mcEnterpriseId != null && message.hasOwnProperty('mcEnterpriseId')) + if (!$util.isInteger(message.mcEnterpriseId)) return 'mcEnterpriseId: integer expected'; + if (message.pushToken != null && message.hasOwnProperty('pushToken')) + if (!$util.isString(message.pushToken)) return 'pushToken: string expected'; + if (message.platform != null && message.hasOwnProperty('platform')) + if (!$util.isString(message.platform)) return 'platform: string expected'; return null; }; @@ -3006,71 +3109,82 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.LoginRequest} LoginRequest */ LoginRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.LoginRequest) - return object; + if (object instanceof $root.Authentication.LoginRequest) return object; let message = new $root.Authentication.LoginRequest(); if (object.authRequest != null) { - if (typeof object.authRequest !== "object") - throw TypeError(".Authentication.LoginRequest.authRequest: object expected"); + if (typeof object.authRequest !== 'object') + throw TypeError('.Authentication.LoginRequest.authRequest: object expected'); message.authRequest = $root.Authentication.AuthRequest.fromObject(object.authRequest); } switch (object.loginType) { - default: - if (typeof object.loginType === "number") { - message.loginType = object.loginType; - break; - } - break; - case "NORMAL": - case 0: - message.loginType = 0; - break; - case "SSO": - case 1: - message.loginType = 1; - break; - case "BIO": - case 2: - message.loginType = 2; - break; - case "ALTERNATE": - case 3: - message.loginType = 3; - break; - case "OFFLINE": - case 4: - message.loginType = 4; - break; - case "FORGOT_PASSWORD": - case 5: - message.loginType = 5; - break; - case "PASSKEY_BIO": - case 6: - message.loginType = 6; - break; + default: + if (typeof object.loginType === 'number') { + message.loginType = object.loginType; + break; + } + break; + case 'NORMAL': + case 0: + message.loginType = 0; + break; + case 'SSO': + case 1: + message.loginType = 1; + break; + case 'BIO': + case 2: + message.loginType = 2; + break; + case 'ALTERNATE': + case 3: + message.loginType = 3; + break; + case 'OFFLINE': + case 4: + message.loginType = 4; + break; + case 'FORGOT_PASSWORD': + case 5: + message.loginType = 5; + break; + case 'PASSKEY_BIO': + case 6: + message.loginType = 6; + break; } if (object.authenticationHashPrime != null) - if (typeof object.authenticationHashPrime === "string") - $util.base64.decode(object.authenticationHashPrime, message.authenticationHashPrime = $util.newBuffer($util.base64.length(object.authenticationHashPrime)), 0); + if (typeof object.authenticationHashPrime === 'string') + $util.base64.decode( + object.authenticationHashPrime, + (message.authenticationHashPrime = $util.newBuffer( + $util.base64.length(object.authenticationHashPrime) + )), + 0 + ); else if (object.authenticationHashPrime.length >= 0) message.authenticationHashPrime = object.authenticationHashPrime; if (object.encryptedLoginToken != null) - if (typeof object.encryptedLoginToken === "string") - $util.base64.decode(object.encryptedLoginToken, message.encryptedLoginToken = $util.newBuffer($util.base64.length(object.encryptedLoginToken)), 0); + if (typeof object.encryptedLoginToken === 'string') + $util.base64.decode( + object.encryptedLoginToken, + (message.encryptedLoginToken = $util.newBuffer( + $util.base64.length(object.encryptedLoginToken) + )), + 0 + ); else if (object.encryptedLoginToken.length >= 0) message.encryptedLoginToken = object.encryptedLoginToken; if (object.authResponse != null) - if (typeof object.authResponse === "string") - $util.base64.decode(object.authResponse, message.authResponse = $util.newBuffer($util.base64.length(object.authResponse)), 0); - else if (object.authResponse.length >= 0) - message.authResponse = object.authResponse; - if (object.mcEnterpriseId != null) - message.mcEnterpriseId = object.mcEnterpriseId | 0; - if (object.pushToken != null) - message.pushToken = String(object.pushToken); - if (object.platform != null) - message.platform = String(object.platform); + if (typeof object.authResponse === 'string') + $util.base64.decode( + object.authResponse, + (message.authResponse = $util.newBuffer($util.base64.length(object.authResponse))), + 0 + ); + else if (object.authResponse.length >= 0) message.authResponse = object.authResponse; + if (object.mcEnterpriseId != null) message.mcEnterpriseId = object.mcEnterpriseId | 0; + if (object.pushToken != null) message.pushToken = String(object.pushToken); + if (object.platform != null) message.platform = String(object.platform); return message; }; @@ -3084,53 +3198,70 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ LoginRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { object.authRequest = null; - object.loginType = options.enums === String ? "NORMAL" : 0; - if (options.bytes === String) - object.authenticationHashPrime = ""; + object.loginType = options.enums === String ? 'NORMAL' : 0; + if (options.bytes === String) object.authenticationHashPrime = ''; else { object.authenticationHashPrime = []; if (options.bytes !== Array) object.authenticationHashPrime = $util.newBuffer(object.authenticationHashPrime); } - if (options.bytes === String) - object.encryptedLoginToken = ""; + if (options.bytes === String) object.encryptedLoginToken = ''; else { object.encryptedLoginToken = []; if (options.bytes !== Array) object.encryptedLoginToken = $util.newBuffer(object.encryptedLoginToken); } - if (options.bytes === String) - object.authResponse = ""; + if (options.bytes === String) object.authResponse = ''; else { object.authResponse = []; - if (options.bytes !== Array) - object.authResponse = $util.newBuffer(object.authResponse); + if (options.bytes !== Array) object.authResponse = $util.newBuffer(object.authResponse); } object.mcEnterpriseId = 0; - object.pushToken = ""; - object.platform = ""; + object.pushToken = ''; + object.platform = ''; } - if (message.authRequest != null && message.hasOwnProperty("authRequest")) + if (message.authRequest != null && message.hasOwnProperty('authRequest')) object.authRequest = $root.Authentication.AuthRequest.toObject(message.authRequest, options); - if (message.loginType != null && message.hasOwnProperty("loginType")) - object.loginType = options.enums === String ? $root.Authentication.LoginType[message.loginType] === undefined ? message.loginType : $root.Authentication.LoginType[message.loginType] : message.loginType; - if (message.authenticationHashPrime != null && message.hasOwnProperty("authenticationHashPrime")) - object.authenticationHashPrime = options.bytes === String ? $util.base64.encode(message.authenticationHashPrime, 0, message.authenticationHashPrime.length) : options.bytes === Array ? Array.prototype.slice.call(message.authenticationHashPrime) : message.authenticationHashPrime; - if (message.encryptedLoginToken != null && message.hasOwnProperty("encryptedLoginToken")) - object.encryptedLoginToken = options.bytes === String ? $util.base64.encode(message.encryptedLoginToken, 0, message.encryptedLoginToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedLoginToken) : message.encryptedLoginToken; - if (message.authResponse != null && message.hasOwnProperty("authResponse")) - object.authResponse = options.bytes === String ? $util.base64.encode(message.authResponse, 0, message.authResponse.length) : options.bytes === Array ? Array.prototype.slice.call(message.authResponse) : message.authResponse; - if (message.mcEnterpriseId != null && message.hasOwnProperty("mcEnterpriseId")) + if (message.loginType != null && message.hasOwnProperty('loginType')) + object.loginType = + options.enums === String + ? $root.Authentication.LoginType[message.loginType] === undefined + ? message.loginType + : $root.Authentication.LoginType[message.loginType] + : message.loginType; + if (message.authenticationHashPrime != null && message.hasOwnProperty('authenticationHashPrime')) + object.authenticationHashPrime = + options.bytes === String + ? $util.base64.encode( + message.authenticationHashPrime, + 0, + message.authenticationHashPrime.length + ) + : options.bytes === Array + ? Array.prototype.slice.call(message.authenticationHashPrime) + : message.authenticationHashPrime; + if (message.encryptedLoginToken != null && message.hasOwnProperty('encryptedLoginToken')) + object.encryptedLoginToken = + options.bytes === String + ? $util.base64.encode(message.encryptedLoginToken, 0, message.encryptedLoginToken.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.encryptedLoginToken) + : message.encryptedLoginToken; + if (message.authResponse != null && message.hasOwnProperty('authResponse')) + object.authResponse = + options.bytes === String + ? $util.base64.encode(message.authResponse, 0, message.authResponse.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.authResponse) + : message.authResponse; + if (message.mcEnterpriseId != null && message.hasOwnProperty('mcEnterpriseId')) object.mcEnterpriseId = message.mcEnterpriseId; - if (message.pushToken != null && message.hasOwnProperty("pushToken")) - object.pushToken = message.pushToken; - if (message.platform != null && message.hasOwnProperty("platform")) - object.platform = message.platform; + if (message.pushToken != null && message.hasOwnProperty('pushToken')) object.pushToken = message.pushToken; + if (message.platform != null && message.hasOwnProperty('platform')) object.platform = message.platform; return object; }; @@ -3155,16 +3286,15 @@ export const Authentication = $root.Authentication = (() => { */ LoginRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.LoginRequest"; + return typeUrlPrefix + '/Authentication.LoginRequest'; }; return LoginRequest; })(); - Authentication.DeviceResponse = (function() { - + Authentication.DeviceResponse = (function () { /** * Properties of a DeviceResponse. * @memberof Authentication @@ -3184,8 +3314,7 @@ export const Authentication = $root.Authentication = (() => { function DeviceResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -3226,12 +3355,11 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ DeviceResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.encryptedDeviceToken != null && Object.hasOwnProperty.call(message, "encryptedDeviceToken")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.encryptedDeviceToken); - if (message.status != null && Object.hasOwnProperty.call(message, "status")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.status); + if (!writer) writer = $Writer.create(); + if (message.encryptedDeviceToken != null && Object.hasOwnProperty.call(message, 'encryptedDeviceToken')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.encryptedDeviceToken); + if (message.status != null && Object.hasOwnProperty.call(message, 'status')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int32(message.status); return writer; }; @@ -3260,23 +3388,23 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ DeviceResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.DeviceResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.DeviceResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.encryptedDeviceToken = reader.bytes(); break; } - case 2: { + case 2: { message.status = reader.int32(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -3293,8 +3421,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ DeviceResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -3307,20 +3434,24 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ DeviceResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.encryptedDeviceToken != null && message.hasOwnProperty("encryptedDeviceToken")) - if (!(message.encryptedDeviceToken && typeof message.encryptedDeviceToken.length === "number" || $util.isString(message.encryptedDeviceToken))) - return "encryptedDeviceToken: buffer expected"; - if (message.status != null && message.hasOwnProperty("status")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.encryptedDeviceToken != null && message.hasOwnProperty('encryptedDeviceToken')) + if ( + !( + (message.encryptedDeviceToken && typeof message.encryptedDeviceToken.length === 'number') || + $util.isString(message.encryptedDeviceToken) + ) + ) + return 'encryptedDeviceToken: buffer expected'; + if (message.status != null && message.hasOwnProperty('status')) switch (message.status) { - default: - return "status: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; + default: + return 'status: enum value expected'; + case 0: + case 1: + case 2: + case 3: + break; } return null; }; @@ -3334,37 +3465,42 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.DeviceResponse} DeviceResponse */ DeviceResponse.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.DeviceResponse) - return object; + if (object instanceof $root.Authentication.DeviceResponse) return object; let message = new $root.Authentication.DeviceResponse(); if (object.encryptedDeviceToken != null) - if (typeof object.encryptedDeviceToken === "string") - $util.base64.decode(object.encryptedDeviceToken, message.encryptedDeviceToken = $util.newBuffer($util.base64.length(object.encryptedDeviceToken)), 0); + if (typeof object.encryptedDeviceToken === 'string') + $util.base64.decode( + object.encryptedDeviceToken, + (message.encryptedDeviceToken = $util.newBuffer( + $util.base64.length(object.encryptedDeviceToken) + )), + 0 + ); else if (object.encryptedDeviceToken.length >= 0) message.encryptedDeviceToken = object.encryptedDeviceToken; switch (object.status) { - default: - if (typeof object.status === "number") { - message.status = object.status; + default: + if (typeof object.status === 'number') { + message.status = object.status; + break; + } + break; + case 'DEVICE_NEEDS_APPROVAL': + case 0: + message.status = 0; + break; + case 'DEVICE_OK': + case 1: + message.status = 1; + break; + case 'DEVICE_DISABLED_BY_USER': + case 2: + message.status = 2; + break; + case 'DEVICE_LOCKED_BY_ADMIN': + case 3: + message.status = 3; break; - } - break; - case "DEVICE_NEEDS_APPROVAL": - case 0: - message.status = 0; - break; - case "DEVICE_OK": - case 1: - message.status = 1; - break; - case "DEVICE_DISABLED_BY_USER": - case 2: - message.status = 2; - break; - case "DEVICE_LOCKED_BY_ADMIN": - case 3: - message.status = 3; - break; } return message; }; @@ -3379,23 +3515,31 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ DeviceResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.encryptedDeviceToken = ""; + if (options.bytes === String) object.encryptedDeviceToken = ''; else { object.encryptedDeviceToken = []; if (options.bytes !== Array) object.encryptedDeviceToken = $util.newBuffer(object.encryptedDeviceToken); } - object.status = options.enums === String ? "DEVICE_NEEDS_APPROVAL" : 0; + object.status = options.enums === String ? 'DEVICE_NEEDS_APPROVAL' : 0; } - if (message.encryptedDeviceToken != null && message.hasOwnProperty("encryptedDeviceToken")) - object.encryptedDeviceToken = options.bytes === String ? $util.base64.encode(message.encryptedDeviceToken, 0, message.encryptedDeviceToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedDeviceToken) : message.encryptedDeviceToken; - if (message.status != null && message.hasOwnProperty("status")) - object.status = options.enums === String ? $root.Authentication.DeviceStatus[message.status] === undefined ? message.status : $root.Authentication.DeviceStatus[message.status] : message.status; + if (message.encryptedDeviceToken != null && message.hasOwnProperty('encryptedDeviceToken')) + object.encryptedDeviceToken = + options.bytes === String + ? $util.base64.encode(message.encryptedDeviceToken, 0, message.encryptedDeviceToken.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.encryptedDeviceToken) + : message.encryptedDeviceToken; + if (message.status != null && message.hasOwnProperty('status')) + object.status = + options.enums === String + ? $root.Authentication.DeviceStatus[message.status] === undefined + ? message.status + : $root.Authentication.DeviceStatus[message.status] + : message.status; return object; }; @@ -3420,16 +3564,15 @@ export const Authentication = $root.Authentication = (() => { */ DeviceResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.DeviceResponse"; + return typeUrlPrefix + '/Authentication.DeviceResponse'; }; return DeviceResponse; })(); - Authentication.Salt = (function() { - + Authentication.Salt = (function () { /** * Properties of a Salt. * @memberof Authentication @@ -3452,8 +3595,7 @@ export const Authentication = $root.Authentication = (() => { function Salt(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -3494,7 +3636,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.Salt * @instance */ - Salt.prototype.name = ""; + Salt.prototype.name = ''; /** * Creates a new Salt instance using the specified properties. @@ -3518,18 +3660,17 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ Salt.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.iterations != null && Object.hasOwnProperty.call(message, "iterations")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.iterations); - if (message.salt != null && Object.hasOwnProperty.call(message, "salt")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.salt); - if (message.algorithm != null && Object.hasOwnProperty.call(message, "algorithm")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.algorithm); - if (message.uid != null && Object.hasOwnProperty.call(message, "uid")) - writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.uid); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.name); + if (!writer) writer = $Writer.create(); + if (message.iterations != null && Object.hasOwnProperty.call(message, 'iterations')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int32(message.iterations); + if (message.salt != null && Object.hasOwnProperty.call(message, 'salt')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.salt); + if (message.algorithm != null && Object.hasOwnProperty.call(message, 'algorithm')) + writer.uint32(/* id 3, wireType 0 =*/ 24).int32(message.algorithm); + if (message.uid != null && Object.hasOwnProperty.call(message, 'uid')) + writer.uint32(/* id 4, wireType 2 =*/ 34).bytes(message.uid); + if (message.name != null && Object.hasOwnProperty.call(message, 'name')) + writer.uint32(/* id 5, wireType 2 =*/ 42).string(message.name); return writer; }; @@ -3558,35 +3699,35 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ Salt.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.Salt(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.Salt(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.iterations = reader.int32(); break; } - case 2: { + case 2: { message.salt = reader.bytes(); break; } - case 3: { + case 3: { message.algorithm = reader.int32(); break; } - case 4: { + case 4: { message.uid = reader.bytes(); break; } - case 5: { + case 5: { message.name = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -3603,8 +3744,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ Salt.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -3617,23 +3757,19 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ Salt.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.iterations != null && message.hasOwnProperty("iterations")) - if (!$util.isInteger(message.iterations)) - return "iterations: integer expected"; - if (message.salt != null && message.hasOwnProperty("salt")) - if (!(message.salt && typeof message.salt.length === "number" || $util.isString(message.salt))) - return "salt: buffer expected"; - if (message.algorithm != null && message.hasOwnProperty("algorithm")) - if (!$util.isInteger(message.algorithm)) - return "algorithm: integer expected"; - if (message.uid != null && message.hasOwnProperty("uid")) - if (!(message.uid && typeof message.uid.length === "number" || $util.isString(message.uid))) - return "uid: buffer expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.iterations != null && message.hasOwnProperty('iterations')) + if (!$util.isInteger(message.iterations)) return 'iterations: integer expected'; + if (message.salt != null && message.hasOwnProperty('salt')) + if (!((message.salt && typeof message.salt.length === 'number') || $util.isString(message.salt))) + return 'salt: buffer expected'; + if (message.algorithm != null && message.hasOwnProperty('algorithm')) + if (!$util.isInteger(message.algorithm)) return 'algorithm: integer expected'; + if (message.uid != null && message.hasOwnProperty('uid')) + if (!((message.uid && typeof message.uid.length === 'number') || $util.isString(message.uid))) + return 'uid: buffer expected'; + if (message.name != null && message.hasOwnProperty('name')) + if (!$util.isString(message.name)) return 'name: string expected'; return null; }; @@ -3646,25 +3782,27 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.Salt} Salt */ Salt.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.Salt) - return object; + if (object instanceof $root.Authentication.Salt) return object; let message = new $root.Authentication.Salt(); - if (object.iterations != null) - message.iterations = object.iterations | 0; + if (object.iterations != null) message.iterations = object.iterations | 0; if (object.salt != null) - if (typeof object.salt === "string") - $util.base64.decode(object.salt, message.salt = $util.newBuffer($util.base64.length(object.salt)), 0); - else if (object.salt.length >= 0) - message.salt = object.salt; - if (object.algorithm != null) - message.algorithm = object.algorithm | 0; + if (typeof object.salt === 'string') + $util.base64.decode( + object.salt, + (message.salt = $util.newBuffer($util.base64.length(object.salt))), + 0 + ); + else if (object.salt.length >= 0) message.salt = object.salt; + if (object.algorithm != null) message.algorithm = object.algorithm | 0; if (object.uid != null) - if (typeof object.uid === "string") - $util.base64.decode(object.uid, message.uid = $util.newBuffer($util.base64.length(object.uid)), 0); - else if (object.uid.length >= 0) - message.uid = object.uid; - if (object.name != null) - message.name = String(object.name); + if (typeof object.uid === 'string') + $util.base64.decode( + object.uid, + (message.uid = $util.newBuffer($util.base64.length(object.uid))), + 0 + ); + else if (object.uid.length >= 0) message.uid = object.uid; + if (object.name != null) message.name = String(object.name); return message; }; @@ -3678,38 +3816,41 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ Salt.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { object.iterations = 0; - if (options.bytes === String) - object.salt = ""; + if (options.bytes === String) object.salt = ''; else { object.salt = []; - if (options.bytes !== Array) - object.salt = $util.newBuffer(object.salt); + if (options.bytes !== Array) object.salt = $util.newBuffer(object.salt); } object.algorithm = 0; - if (options.bytes === String) - object.uid = ""; + if (options.bytes === String) object.uid = ''; else { object.uid = []; - if (options.bytes !== Array) - object.uid = $util.newBuffer(object.uid); + if (options.bytes !== Array) object.uid = $util.newBuffer(object.uid); } - object.name = ""; + object.name = ''; } - if (message.iterations != null && message.hasOwnProperty("iterations")) + if (message.iterations != null && message.hasOwnProperty('iterations')) object.iterations = message.iterations; - if (message.salt != null && message.hasOwnProperty("salt")) - object.salt = options.bytes === String ? $util.base64.encode(message.salt, 0, message.salt.length) : options.bytes === Array ? Array.prototype.slice.call(message.salt) : message.salt; - if (message.algorithm != null && message.hasOwnProperty("algorithm")) - object.algorithm = message.algorithm; - if (message.uid != null && message.hasOwnProperty("uid")) - object.uid = options.bytes === String ? $util.base64.encode(message.uid, 0, message.uid.length) : options.bytes === Array ? Array.prototype.slice.call(message.uid) : message.uid; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + if (message.salt != null && message.hasOwnProperty('salt')) + object.salt = + options.bytes === String + ? $util.base64.encode(message.salt, 0, message.salt.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.salt) + : message.salt; + if (message.algorithm != null && message.hasOwnProperty('algorithm')) object.algorithm = message.algorithm; + if (message.uid != null && message.hasOwnProperty('uid')) + object.uid = + options.bytes === String + ? $util.base64.encode(message.uid, 0, message.uid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.uid) + : message.uid; + if (message.name != null && message.hasOwnProperty('name')) object.name = message.name; return object; }; @@ -3734,16 +3875,15 @@ export const Authentication = $root.Authentication = (() => { */ Salt.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.Salt"; + return typeUrlPrefix + '/Authentication.Salt'; }; return Salt; })(); - Authentication.TwoFactorChannel = (function() { - + Authentication.TwoFactorChannel = (function () { /** * Properties of a TwoFactorChannel. * @memberof Authentication @@ -3762,8 +3902,7 @@ export const Authentication = $root.Authentication = (() => { function TwoFactorChannel(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -3796,10 +3935,9 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ TwoFactorChannel.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.type != null && Object.hasOwnProperty.call(message, "type")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.type); + if (!writer) writer = $Writer.create(); + if (message.type != null && Object.hasOwnProperty.call(message, 'type')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int32(message.type); return writer; }; @@ -3828,19 +3966,19 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ TwoFactorChannel.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.TwoFactorChannel(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.TwoFactorChannel(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.type = reader.int32(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -3857,8 +3995,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ TwoFactorChannel.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -3871,11 +4008,9 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ TwoFactorChannel.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.type != null && message.hasOwnProperty("type")) - if (!$util.isInteger(message.type)) - return "type: integer expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.type != null && message.hasOwnProperty('type')) + if (!$util.isInteger(message.type)) return 'type: integer expected'; return null; }; @@ -3888,11 +4023,9 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.TwoFactorChannel} TwoFactorChannel */ TwoFactorChannel.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.TwoFactorChannel) - return object; + if (object instanceof $root.Authentication.TwoFactorChannel) return object; let message = new $root.Authentication.TwoFactorChannel(); - if (object.type != null) - message.type = object.type | 0; + if (object.type != null) message.type = object.type | 0; return message; }; @@ -3906,13 +4039,10 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ TwoFactorChannel.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.defaults) - object.type = 0; - if (message.type != null && message.hasOwnProperty("type")) - object.type = message.type; + if (options.defaults) object.type = 0; + if (message.type != null && message.hasOwnProperty('type')) object.type = message.type; return object; }; @@ -3937,9 +4067,9 @@ export const Authentication = $root.Authentication = (() => { */ TwoFactorChannel.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.TwoFactorChannel"; + return typeUrlPrefix + '/Authentication.TwoFactorChannel'; }; return TwoFactorChannel; @@ -3955,13 +4085,14 @@ export const Authentication = $root.Authentication = (() => { * @property {number} AFTER_SSO=3 AFTER_SSO value * @property {number} NEW_ACCOUNT=4 NEW_ACCOUNT value */ - Authentication.LoginMethod = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "INVALID_LOGINMETHOD"] = 0; - values[valuesById[1] = "EXISTING_ACCOUNT"] = 1; - values[valuesById[2] = "SSO_DOMAIN"] = 2; - values[valuesById[3] = "AFTER_SSO"] = 3; - values[valuesById[4] = "NEW_ACCOUNT"] = 4; + Authentication.LoginMethod = (function () { + const valuesById = {}, + values = Object.create(valuesById); + values[(valuesById[0] = 'INVALID_LOGINMETHOD')] = 0; + values[(valuesById[1] = 'EXISTING_ACCOUNT')] = 1; + values[(valuesById[2] = 'SSO_DOMAIN')] = 2; + values[(valuesById[3] = 'AFTER_SSO')] = 3; + values[(valuesById[4] = 'NEW_ACCOUNT')] = 4; return values; })(); @@ -3993,31 +4124,32 @@ export const Authentication = $root.Authentication = (() => { * @property {number} AFTER_PASSKEY_LOGIN=22 AFTER_PASSKEY_LOGIN value * @property {number} LOGGED_IN=99 LOGGED_IN value */ - Authentication.LoginState = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "INVALID_LOGINSTATE"] = 0; - values[valuesById[1] = "LOGGED_OUT"] = 1; - values[valuesById[2] = "DEVICE_APPROVAL_REQUIRED"] = 2; - values[valuesById[3] = "DEVICE_LOCKED"] = 3; - values[valuesById[4] = "ACCOUNT_LOCKED"] = 4; - values[valuesById[5] = "DEVICE_ACCOUNT_LOCKED"] = 5; - values[valuesById[6] = "UPGRADE"] = 6; - values[valuesById[7] = "LICENSE_EXPIRED"] = 7; - values[valuesById[8] = "REGION_REDIRECT"] = 8; - values[valuesById[9] = "REDIRECT_CLOUD_SSO"] = 9; - values[valuesById[10] = "REDIRECT_ONSITE_SSO"] = 10; - values[valuesById[12] = "REQUIRES_2FA"] = 12; - values[valuesById[13] = "REQUIRES_AUTH_HASH"] = 13; - values[valuesById[14] = "REQUIRES_USERNAME"] = 14; - values[valuesById[15] = "AFTER_CLOUD_SSO_LOGIN"] = 15; - values[valuesById[16] = "REQUIRES_ACCOUNT_CREATION"] = 16; - values[valuesById[17] = "REQUIRES_DEVICE_ENCRYPTED_DATA_KEY"] = 17; - values[valuesById[18] = "LOGIN_TOKEN_EXPIRED"] = 18; - values[valuesById[19] = "PASSKEY_INITIATE_CHALLENGE"] = 19; - values[valuesById[20] = "PASSKEY_AUTH_REQUIRED"] = 20; - values[valuesById[21] = "PASSKEY_VERIFY_AUTHENTICATION"] = 21; - values[valuesById[22] = "AFTER_PASSKEY_LOGIN"] = 22; - values[valuesById[99] = "LOGGED_IN"] = 99; + Authentication.LoginState = (function () { + const valuesById = {}, + values = Object.create(valuesById); + values[(valuesById[0] = 'INVALID_LOGINSTATE')] = 0; + values[(valuesById[1] = 'LOGGED_OUT')] = 1; + values[(valuesById[2] = 'DEVICE_APPROVAL_REQUIRED')] = 2; + values[(valuesById[3] = 'DEVICE_LOCKED')] = 3; + values[(valuesById[4] = 'ACCOUNT_LOCKED')] = 4; + values[(valuesById[5] = 'DEVICE_ACCOUNT_LOCKED')] = 5; + values[(valuesById[6] = 'UPGRADE')] = 6; + values[(valuesById[7] = 'LICENSE_EXPIRED')] = 7; + values[(valuesById[8] = 'REGION_REDIRECT')] = 8; + values[(valuesById[9] = 'REDIRECT_CLOUD_SSO')] = 9; + values[(valuesById[10] = 'REDIRECT_ONSITE_SSO')] = 10; + values[(valuesById[12] = 'REQUIRES_2FA')] = 12; + values[(valuesById[13] = 'REQUIRES_AUTH_HASH')] = 13; + values[(valuesById[14] = 'REQUIRES_USERNAME')] = 14; + values[(valuesById[15] = 'AFTER_CLOUD_SSO_LOGIN')] = 15; + values[(valuesById[16] = 'REQUIRES_ACCOUNT_CREATION')] = 16; + values[(valuesById[17] = 'REQUIRES_DEVICE_ENCRYPTED_DATA_KEY')] = 17; + values[(valuesById[18] = 'LOGIN_TOKEN_EXPIRED')] = 18; + values[(valuesById[19] = 'PASSKEY_INITIATE_CHALLENGE')] = 19; + values[(valuesById[20] = 'PASSKEY_AUTH_REQUIRED')] = 20; + values[(valuesById[21] = 'PASSKEY_VERIFY_AUTHENTICATION')] = 21; + values[(valuesById[22] = 'AFTER_PASSKEY_LOGIN')] = 22; + values[(valuesById[99] = 'LOGGED_IN')] = 99; return values; })(); @@ -4031,18 +4163,18 @@ export const Authentication = $root.Authentication = (() => { * @property {number} BY_ALTERNATE=3 BY_ALTERNATE value * @property {number} BY_BIO=4 BY_BIO value */ - Authentication.EncryptedDataKeyType = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "NO_KEY"] = 0; - values[valuesById[1] = "BY_DEVICE_PUBLIC_KEY"] = 1; - values[valuesById[2] = "BY_PASSWORD"] = 2; - values[valuesById[3] = "BY_ALTERNATE"] = 3; - values[valuesById[4] = "BY_BIO"] = 4; + Authentication.EncryptedDataKeyType = (function () { + const valuesById = {}, + values = Object.create(valuesById); + values[(valuesById[0] = 'NO_KEY')] = 0; + values[(valuesById[1] = 'BY_DEVICE_PUBLIC_KEY')] = 1; + values[(valuesById[2] = 'BY_PASSWORD')] = 2; + values[(valuesById[3] = 'BY_ALTERNATE')] = 3; + values[(valuesById[4] = 'BY_BIO')] = 4; return values; })(); - Authentication.StartLoginRequest = (function() { - + Authentication.StartLoginRequest = (function () { /** * Properties of a StartLoginRequest. * @memberof Authentication @@ -4073,8 +4205,7 @@ export const Authentication = $root.Authentication = (() => { function StartLoginRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -4091,7 +4222,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.StartLoginRequest * @instance */ - StartLoginRequest.prototype.username = ""; + StartLoginRequest.prototype.username = ''; /** * StartLoginRequest clientVersion. @@ -4099,7 +4230,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.StartLoginRequest * @instance */ - StartLoginRequest.prototype.clientVersion = ""; + StartLoginRequest.prototype.clientVersion = ''; /** * StartLoginRequest messageSessionUid. @@ -4163,7 +4294,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.StartLoginRequest * @instance */ - StartLoginRequest.prototype.v2TwoFactorToken = ""; + StartLoginRequest.prototype.v2TwoFactorToken = ''; /** * StartLoginRequest accountUid. @@ -4203,34 +4334,33 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ StartLoginRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.encryptedDeviceToken != null && Object.hasOwnProperty.call(message, "encryptedDeviceToken")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.encryptedDeviceToken); - if (message.username != null && Object.hasOwnProperty.call(message, "username")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.username); - if (message.clientVersion != null && Object.hasOwnProperty.call(message, "clientVersion")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.clientVersion); - if (message.messageSessionUid != null && Object.hasOwnProperty.call(message, "messageSessionUid")) - writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.messageSessionUid); - if (message.encryptedLoginToken != null && Object.hasOwnProperty.call(message, "encryptedLoginToken")) - writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.encryptedLoginToken); - if (message.loginType != null && Object.hasOwnProperty.call(message, "loginType")) - writer.uint32(/* id 6, wireType 0 =*/48).int32(message.loginType); - if (message.mcEnterpriseId != null && Object.hasOwnProperty.call(message, "mcEnterpriseId")) - writer.uint32(/* id 7, wireType 0 =*/56).int32(message.mcEnterpriseId); - if (message.loginMethod != null && Object.hasOwnProperty.call(message, "loginMethod")) - writer.uint32(/* id 8, wireType 0 =*/64).int32(message.loginMethod); - if (message.forceNewLogin != null && Object.hasOwnProperty.call(message, "forceNewLogin")) - writer.uint32(/* id 9, wireType 0 =*/72).bool(message.forceNewLogin); - if (message.cloneCode != null && Object.hasOwnProperty.call(message, "cloneCode")) - writer.uint32(/* id 10, wireType 2 =*/82).bytes(message.cloneCode); - if (message.v2TwoFactorToken != null && Object.hasOwnProperty.call(message, "v2TwoFactorToken")) - writer.uint32(/* id 11, wireType 2 =*/90).string(message.v2TwoFactorToken); - if (message.accountUid != null && Object.hasOwnProperty.call(message, "accountUid")) - writer.uint32(/* id 12, wireType 2 =*/98).bytes(message.accountUid); - if (message.fromSessionToken != null && Object.hasOwnProperty.call(message, "fromSessionToken")) - writer.uint32(/* id 13, wireType 2 =*/106).bytes(message.fromSessionToken); + if (!writer) writer = $Writer.create(); + if (message.encryptedDeviceToken != null && Object.hasOwnProperty.call(message, 'encryptedDeviceToken')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.encryptedDeviceToken); + if (message.username != null && Object.hasOwnProperty.call(message, 'username')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.username); + if (message.clientVersion != null && Object.hasOwnProperty.call(message, 'clientVersion')) + writer.uint32(/* id 3, wireType 2 =*/ 26).string(message.clientVersion); + if (message.messageSessionUid != null && Object.hasOwnProperty.call(message, 'messageSessionUid')) + writer.uint32(/* id 4, wireType 2 =*/ 34).bytes(message.messageSessionUid); + if (message.encryptedLoginToken != null && Object.hasOwnProperty.call(message, 'encryptedLoginToken')) + writer.uint32(/* id 5, wireType 2 =*/ 42).bytes(message.encryptedLoginToken); + if (message.loginType != null && Object.hasOwnProperty.call(message, 'loginType')) + writer.uint32(/* id 6, wireType 0 =*/ 48).int32(message.loginType); + if (message.mcEnterpriseId != null && Object.hasOwnProperty.call(message, 'mcEnterpriseId')) + writer.uint32(/* id 7, wireType 0 =*/ 56).int32(message.mcEnterpriseId); + if (message.loginMethod != null && Object.hasOwnProperty.call(message, 'loginMethod')) + writer.uint32(/* id 8, wireType 0 =*/ 64).int32(message.loginMethod); + if (message.forceNewLogin != null && Object.hasOwnProperty.call(message, 'forceNewLogin')) + writer.uint32(/* id 9, wireType 0 =*/ 72).bool(message.forceNewLogin); + if (message.cloneCode != null && Object.hasOwnProperty.call(message, 'cloneCode')) + writer.uint32(/* id 10, wireType 2 =*/ 82).bytes(message.cloneCode); + if (message.v2TwoFactorToken != null && Object.hasOwnProperty.call(message, 'v2TwoFactorToken')) + writer.uint32(/* id 11, wireType 2 =*/ 90).string(message.v2TwoFactorToken); + if (message.accountUid != null && Object.hasOwnProperty.call(message, 'accountUid')) + writer.uint32(/* id 12, wireType 2 =*/ 98).bytes(message.accountUid); + if (message.fromSessionToken != null && Object.hasOwnProperty.call(message, 'fromSessionToken')) + writer.uint32(/* id 13, wireType 2 =*/ 106).bytes(message.fromSessionToken); return writer; }; @@ -4259,67 +4389,67 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ StartLoginRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.StartLoginRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.StartLoginRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.encryptedDeviceToken = reader.bytes(); break; } - case 2: { + case 2: { message.username = reader.string(); break; } - case 3: { + case 3: { message.clientVersion = reader.string(); break; } - case 4: { + case 4: { message.messageSessionUid = reader.bytes(); break; } - case 5: { + case 5: { message.encryptedLoginToken = reader.bytes(); break; } - case 6: { + case 6: { message.loginType = reader.int32(); break; } - case 7: { + case 7: { message.mcEnterpriseId = reader.int32(); break; } - case 8: { + case 8: { message.loginMethod = reader.int32(); break; } - case 9: { + case 9: { message.forceNewLogin = reader.bool(); break; } - case 10: { + case 10: { message.cloneCode = reader.bytes(); break; } - case 11: { + case 11: { message.v2TwoFactorToken = reader.string(); break; } - case 12: { + case 12: { message.accountUid = reader.bytes(); break; } - case 13: { + case 13: { message.fromSessionToken = reader.bytes(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -4336,8 +4466,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ StartLoginRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -4350,65 +4479,89 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ StartLoginRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.encryptedDeviceToken != null && message.hasOwnProperty("encryptedDeviceToken")) - if (!(message.encryptedDeviceToken && typeof message.encryptedDeviceToken.length === "number" || $util.isString(message.encryptedDeviceToken))) - return "encryptedDeviceToken: buffer expected"; - if (message.username != null && message.hasOwnProperty("username")) - if (!$util.isString(message.username)) - return "username: string expected"; - if (message.clientVersion != null && message.hasOwnProperty("clientVersion")) - if (!$util.isString(message.clientVersion)) - return "clientVersion: string expected"; - if (message.messageSessionUid != null && message.hasOwnProperty("messageSessionUid")) - if (!(message.messageSessionUid && typeof message.messageSessionUid.length === "number" || $util.isString(message.messageSessionUid))) - return "messageSessionUid: buffer expected"; - if (message.encryptedLoginToken != null && message.hasOwnProperty("encryptedLoginToken")) - if (!(message.encryptedLoginToken && typeof message.encryptedLoginToken.length === "number" || $util.isString(message.encryptedLoginToken))) - return "encryptedLoginToken: buffer expected"; - if (message.loginType != null && message.hasOwnProperty("loginType")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.encryptedDeviceToken != null && message.hasOwnProperty('encryptedDeviceToken')) + if ( + !( + (message.encryptedDeviceToken && typeof message.encryptedDeviceToken.length === 'number') || + $util.isString(message.encryptedDeviceToken) + ) + ) + return 'encryptedDeviceToken: buffer expected'; + if (message.username != null && message.hasOwnProperty('username')) + if (!$util.isString(message.username)) return 'username: string expected'; + if (message.clientVersion != null && message.hasOwnProperty('clientVersion')) + if (!$util.isString(message.clientVersion)) return 'clientVersion: string expected'; + if (message.messageSessionUid != null && message.hasOwnProperty('messageSessionUid')) + if ( + !( + (message.messageSessionUid && typeof message.messageSessionUid.length === 'number') || + $util.isString(message.messageSessionUid) + ) + ) + return 'messageSessionUid: buffer expected'; + if (message.encryptedLoginToken != null && message.hasOwnProperty('encryptedLoginToken')) + if ( + !( + (message.encryptedLoginToken && typeof message.encryptedLoginToken.length === 'number') || + $util.isString(message.encryptedLoginToken) + ) + ) + return 'encryptedLoginToken: buffer expected'; + if (message.loginType != null && message.hasOwnProperty('loginType')) switch (message.loginType) { - default: - return "loginType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - break; + default: + return 'loginType: enum value expected'; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + break; } - if (message.mcEnterpriseId != null && message.hasOwnProperty("mcEnterpriseId")) - if (!$util.isInteger(message.mcEnterpriseId)) - return "mcEnterpriseId: integer expected"; - if (message.loginMethod != null && message.hasOwnProperty("loginMethod")) + if (message.mcEnterpriseId != null && message.hasOwnProperty('mcEnterpriseId')) + if (!$util.isInteger(message.mcEnterpriseId)) return 'mcEnterpriseId: integer expected'; + if (message.loginMethod != null && message.hasOwnProperty('loginMethod')) switch (message.loginMethod) { - default: - return "loginMethod: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; + default: + return 'loginMethod: enum value expected'; + case 0: + case 1: + case 2: + case 3: + case 4: + break; } - if (message.forceNewLogin != null && message.hasOwnProperty("forceNewLogin")) - if (typeof message.forceNewLogin !== "boolean") - return "forceNewLogin: boolean expected"; - if (message.cloneCode != null && message.hasOwnProperty("cloneCode")) - if (!(message.cloneCode && typeof message.cloneCode.length === "number" || $util.isString(message.cloneCode))) - return "cloneCode: buffer expected"; - if (message.v2TwoFactorToken != null && message.hasOwnProperty("v2TwoFactorToken")) - if (!$util.isString(message.v2TwoFactorToken)) - return "v2TwoFactorToken: string expected"; - if (message.accountUid != null && message.hasOwnProperty("accountUid")) - if (!(message.accountUid && typeof message.accountUid.length === "number" || $util.isString(message.accountUid))) - return "accountUid: buffer expected"; - if (message.fromSessionToken != null && message.hasOwnProperty("fromSessionToken")) - if (!(message.fromSessionToken && typeof message.fromSessionToken.length === "number" || $util.isString(message.fromSessionToken))) - return "fromSessionToken: buffer expected"; + if (message.forceNewLogin != null && message.hasOwnProperty('forceNewLogin')) + if (typeof message.forceNewLogin !== 'boolean') return 'forceNewLogin: boolean expected'; + if (message.cloneCode != null && message.hasOwnProperty('cloneCode')) + if ( + !( + (message.cloneCode && typeof message.cloneCode.length === 'number') || + $util.isString(message.cloneCode) + ) + ) + return 'cloneCode: buffer expected'; + if (message.v2TwoFactorToken != null && message.hasOwnProperty('v2TwoFactorToken')) + if (!$util.isString(message.v2TwoFactorToken)) return 'v2TwoFactorToken: string expected'; + if (message.accountUid != null && message.hasOwnProperty('accountUid')) + if ( + !( + (message.accountUid && typeof message.accountUid.length === 'number') || + $util.isString(message.accountUid) + ) + ) + return 'accountUid: buffer expected'; + if (message.fromSessionToken != null && message.hasOwnProperty('fromSessionToken')) + if ( + !( + (message.fromSessionToken && typeof message.fromSessionToken.length === 'number') || + $util.isString(message.fromSessionToken) + ) + ) + return 'fromSessionToken: buffer expected'; return null; }; @@ -4421,113 +4574,131 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.StartLoginRequest} StartLoginRequest */ StartLoginRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.StartLoginRequest) - return object; + if (object instanceof $root.Authentication.StartLoginRequest) return object; let message = new $root.Authentication.StartLoginRequest(); if (object.encryptedDeviceToken != null) - if (typeof object.encryptedDeviceToken === "string") - $util.base64.decode(object.encryptedDeviceToken, message.encryptedDeviceToken = $util.newBuffer($util.base64.length(object.encryptedDeviceToken)), 0); + if (typeof object.encryptedDeviceToken === 'string') + $util.base64.decode( + object.encryptedDeviceToken, + (message.encryptedDeviceToken = $util.newBuffer( + $util.base64.length(object.encryptedDeviceToken) + )), + 0 + ); else if (object.encryptedDeviceToken.length >= 0) message.encryptedDeviceToken = object.encryptedDeviceToken; - if (object.username != null) - message.username = String(object.username); - if (object.clientVersion != null) - message.clientVersion = String(object.clientVersion); + if (object.username != null) message.username = String(object.username); + if (object.clientVersion != null) message.clientVersion = String(object.clientVersion); if (object.messageSessionUid != null) - if (typeof object.messageSessionUid === "string") - $util.base64.decode(object.messageSessionUid, message.messageSessionUid = $util.newBuffer($util.base64.length(object.messageSessionUid)), 0); - else if (object.messageSessionUid.length >= 0) - message.messageSessionUid = object.messageSessionUid; + if (typeof object.messageSessionUid === 'string') + $util.base64.decode( + object.messageSessionUid, + (message.messageSessionUid = $util.newBuffer($util.base64.length(object.messageSessionUid))), + 0 + ); + else if (object.messageSessionUid.length >= 0) message.messageSessionUid = object.messageSessionUid; if (object.encryptedLoginToken != null) - if (typeof object.encryptedLoginToken === "string") - $util.base64.decode(object.encryptedLoginToken, message.encryptedLoginToken = $util.newBuffer($util.base64.length(object.encryptedLoginToken)), 0); + if (typeof object.encryptedLoginToken === 'string') + $util.base64.decode( + object.encryptedLoginToken, + (message.encryptedLoginToken = $util.newBuffer( + $util.base64.length(object.encryptedLoginToken) + )), + 0 + ); else if (object.encryptedLoginToken.length >= 0) message.encryptedLoginToken = object.encryptedLoginToken; switch (object.loginType) { - default: - if (typeof object.loginType === "number") { - message.loginType = object.loginType; - break; - } - break; - case "NORMAL": - case 0: - message.loginType = 0; - break; - case "SSO": - case 1: - message.loginType = 1; - break; - case "BIO": - case 2: - message.loginType = 2; - break; - case "ALTERNATE": - case 3: - message.loginType = 3; - break; - case "OFFLINE": - case 4: - message.loginType = 4; - break; - case "FORGOT_PASSWORD": - case 5: - message.loginType = 5; - break; - case "PASSKEY_BIO": - case 6: - message.loginType = 6; - break; - } - if (object.mcEnterpriseId != null) - message.mcEnterpriseId = object.mcEnterpriseId | 0; + default: + if (typeof object.loginType === 'number') { + message.loginType = object.loginType; + break; + } + break; + case 'NORMAL': + case 0: + message.loginType = 0; + break; + case 'SSO': + case 1: + message.loginType = 1; + break; + case 'BIO': + case 2: + message.loginType = 2; + break; + case 'ALTERNATE': + case 3: + message.loginType = 3; + break; + case 'OFFLINE': + case 4: + message.loginType = 4; + break; + case 'FORGOT_PASSWORD': + case 5: + message.loginType = 5; + break; + case 'PASSKEY_BIO': + case 6: + message.loginType = 6; + break; + } + if (object.mcEnterpriseId != null) message.mcEnterpriseId = object.mcEnterpriseId | 0; switch (object.loginMethod) { - default: - if (typeof object.loginMethod === "number") { - message.loginMethod = object.loginMethod; - break; - } - break; - case "INVALID_LOGINMETHOD": - case 0: - message.loginMethod = 0; - break; - case "EXISTING_ACCOUNT": - case 1: - message.loginMethod = 1; - break; - case "SSO_DOMAIN": - case 2: - message.loginMethod = 2; - break; - case "AFTER_SSO": - case 3: - message.loginMethod = 3; - break; - case "NEW_ACCOUNT": - case 4: - message.loginMethod = 4; - break; - } - if (object.forceNewLogin != null) - message.forceNewLogin = Boolean(object.forceNewLogin); + default: + if (typeof object.loginMethod === 'number') { + message.loginMethod = object.loginMethod; + break; + } + break; + case 'INVALID_LOGINMETHOD': + case 0: + message.loginMethod = 0; + break; + case 'EXISTING_ACCOUNT': + case 1: + message.loginMethod = 1; + break; + case 'SSO_DOMAIN': + case 2: + message.loginMethod = 2; + break; + case 'AFTER_SSO': + case 3: + message.loginMethod = 3; + break; + case 'NEW_ACCOUNT': + case 4: + message.loginMethod = 4; + break; + } + if (object.forceNewLogin != null) message.forceNewLogin = Boolean(object.forceNewLogin); if (object.cloneCode != null) - if (typeof object.cloneCode === "string") - $util.base64.decode(object.cloneCode, message.cloneCode = $util.newBuffer($util.base64.length(object.cloneCode)), 0); - else if (object.cloneCode.length >= 0) - message.cloneCode = object.cloneCode; - if (object.v2TwoFactorToken != null) - message.v2TwoFactorToken = String(object.v2TwoFactorToken); + if (typeof object.cloneCode === 'string') + $util.base64.decode( + object.cloneCode, + (message.cloneCode = $util.newBuffer($util.base64.length(object.cloneCode))), + 0 + ); + else if (object.cloneCode.length >= 0) message.cloneCode = object.cloneCode; + if (object.v2TwoFactorToken != null) message.v2TwoFactorToken = String(object.v2TwoFactorToken); if (object.accountUid != null) - if (typeof object.accountUid === "string") - $util.base64.decode(object.accountUid, message.accountUid = $util.newBuffer($util.base64.length(object.accountUid)), 0); - else if (object.accountUid.length >= 0) - message.accountUid = object.accountUid; + if (typeof object.accountUid === 'string') + $util.base64.decode( + object.accountUid, + (message.accountUid = $util.newBuffer($util.base64.length(object.accountUid))), + 0 + ); + else if (object.accountUid.length >= 0) message.accountUid = object.accountUid; if (object.fromSessionToken != null) - if (typeof object.fromSessionToken === "string") - $util.base64.decode(object.fromSessionToken, message.fromSessionToken = $util.newBuffer($util.base64.length(object.fromSessionToken)), 0); - else if (object.fromSessionToken.length >= 0) - message.fromSessionToken = object.fromSessionToken; + if (typeof object.fromSessionToken === 'string') + $util.base64.decode( + object.fromSessionToken, + (message.fromSessionToken = $util.newBuffer($util.base64.length(object.fromSessionToken))), + 0 + ); + else if (object.fromSessionToken.length >= 0) message.fromSessionToken = object.fromSessionToken; return message; }; @@ -4541,86 +4712,114 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ StartLoginRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.encryptedDeviceToken = ""; + if (options.bytes === String) object.encryptedDeviceToken = ''; else { object.encryptedDeviceToken = []; if (options.bytes !== Array) object.encryptedDeviceToken = $util.newBuffer(object.encryptedDeviceToken); } - object.username = ""; - object.clientVersion = ""; - if (options.bytes === String) - object.messageSessionUid = ""; + object.username = ''; + object.clientVersion = ''; + if (options.bytes === String) object.messageSessionUid = ''; else { object.messageSessionUid = []; - if (options.bytes !== Array) - object.messageSessionUid = $util.newBuffer(object.messageSessionUid); + if (options.bytes !== Array) object.messageSessionUid = $util.newBuffer(object.messageSessionUid); } - if (options.bytes === String) - object.encryptedLoginToken = ""; + if (options.bytes === String) object.encryptedLoginToken = ''; else { object.encryptedLoginToken = []; if (options.bytes !== Array) object.encryptedLoginToken = $util.newBuffer(object.encryptedLoginToken); } - object.loginType = options.enums === String ? "NORMAL" : 0; + object.loginType = options.enums === String ? 'NORMAL' : 0; object.mcEnterpriseId = 0; - object.loginMethod = options.enums === String ? "INVALID_LOGINMETHOD" : 0; + object.loginMethod = options.enums === String ? 'INVALID_LOGINMETHOD' : 0; object.forceNewLogin = false; - if (options.bytes === String) - object.cloneCode = ""; + if (options.bytes === String) object.cloneCode = ''; else { object.cloneCode = []; - if (options.bytes !== Array) - object.cloneCode = $util.newBuffer(object.cloneCode); + if (options.bytes !== Array) object.cloneCode = $util.newBuffer(object.cloneCode); } - object.v2TwoFactorToken = ""; - if (options.bytes === String) - object.accountUid = ""; + object.v2TwoFactorToken = ''; + if (options.bytes === String) object.accountUid = ''; else { object.accountUid = []; - if (options.bytes !== Array) - object.accountUid = $util.newBuffer(object.accountUid); + if (options.bytes !== Array) object.accountUid = $util.newBuffer(object.accountUid); } - if (options.bytes === String) - object.fromSessionToken = ""; + if (options.bytes === String) object.fromSessionToken = ''; else { object.fromSessionToken = []; - if (options.bytes !== Array) - object.fromSessionToken = $util.newBuffer(object.fromSessionToken); - } - } - if (message.encryptedDeviceToken != null && message.hasOwnProperty("encryptedDeviceToken")) - object.encryptedDeviceToken = options.bytes === String ? $util.base64.encode(message.encryptedDeviceToken, 0, message.encryptedDeviceToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedDeviceToken) : message.encryptedDeviceToken; - if (message.username != null && message.hasOwnProperty("username")) - object.username = message.username; - if (message.clientVersion != null && message.hasOwnProperty("clientVersion")) + if (options.bytes !== Array) object.fromSessionToken = $util.newBuffer(object.fromSessionToken); + } + } + if (message.encryptedDeviceToken != null && message.hasOwnProperty('encryptedDeviceToken')) + object.encryptedDeviceToken = + options.bytes === String + ? $util.base64.encode(message.encryptedDeviceToken, 0, message.encryptedDeviceToken.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.encryptedDeviceToken) + : message.encryptedDeviceToken; + if (message.username != null && message.hasOwnProperty('username')) object.username = message.username; + if (message.clientVersion != null && message.hasOwnProperty('clientVersion')) object.clientVersion = message.clientVersion; - if (message.messageSessionUid != null && message.hasOwnProperty("messageSessionUid")) - object.messageSessionUid = options.bytes === String ? $util.base64.encode(message.messageSessionUid, 0, message.messageSessionUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.messageSessionUid) : message.messageSessionUid; - if (message.encryptedLoginToken != null && message.hasOwnProperty("encryptedLoginToken")) - object.encryptedLoginToken = options.bytes === String ? $util.base64.encode(message.encryptedLoginToken, 0, message.encryptedLoginToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedLoginToken) : message.encryptedLoginToken; - if (message.loginType != null && message.hasOwnProperty("loginType")) - object.loginType = options.enums === String ? $root.Authentication.LoginType[message.loginType] === undefined ? message.loginType : $root.Authentication.LoginType[message.loginType] : message.loginType; - if (message.mcEnterpriseId != null && message.hasOwnProperty("mcEnterpriseId")) + if (message.messageSessionUid != null && message.hasOwnProperty('messageSessionUid')) + object.messageSessionUid = + options.bytes === String + ? $util.base64.encode(message.messageSessionUid, 0, message.messageSessionUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.messageSessionUid) + : message.messageSessionUid; + if (message.encryptedLoginToken != null && message.hasOwnProperty('encryptedLoginToken')) + object.encryptedLoginToken = + options.bytes === String + ? $util.base64.encode(message.encryptedLoginToken, 0, message.encryptedLoginToken.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.encryptedLoginToken) + : message.encryptedLoginToken; + if (message.loginType != null && message.hasOwnProperty('loginType')) + object.loginType = + options.enums === String + ? $root.Authentication.LoginType[message.loginType] === undefined + ? message.loginType + : $root.Authentication.LoginType[message.loginType] + : message.loginType; + if (message.mcEnterpriseId != null && message.hasOwnProperty('mcEnterpriseId')) object.mcEnterpriseId = message.mcEnterpriseId; - if (message.loginMethod != null && message.hasOwnProperty("loginMethod")) - object.loginMethod = options.enums === String ? $root.Authentication.LoginMethod[message.loginMethod] === undefined ? message.loginMethod : $root.Authentication.LoginMethod[message.loginMethod] : message.loginMethod; - if (message.forceNewLogin != null && message.hasOwnProperty("forceNewLogin")) + if (message.loginMethod != null && message.hasOwnProperty('loginMethod')) + object.loginMethod = + options.enums === String + ? $root.Authentication.LoginMethod[message.loginMethod] === undefined + ? message.loginMethod + : $root.Authentication.LoginMethod[message.loginMethod] + : message.loginMethod; + if (message.forceNewLogin != null && message.hasOwnProperty('forceNewLogin')) object.forceNewLogin = message.forceNewLogin; - if (message.cloneCode != null && message.hasOwnProperty("cloneCode")) - object.cloneCode = options.bytes === String ? $util.base64.encode(message.cloneCode, 0, message.cloneCode.length) : options.bytes === Array ? Array.prototype.slice.call(message.cloneCode) : message.cloneCode; - if (message.v2TwoFactorToken != null && message.hasOwnProperty("v2TwoFactorToken")) + if (message.cloneCode != null && message.hasOwnProperty('cloneCode')) + object.cloneCode = + options.bytes === String + ? $util.base64.encode(message.cloneCode, 0, message.cloneCode.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.cloneCode) + : message.cloneCode; + if (message.v2TwoFactorToken != null && message.hasOwnProperty('v2TwoFactorToken')) object.v2TwoFactorToken = message.v2TwoFactorToken; - if (message.accountUid != null && message.hasOwnProperty("accountUid")) - object.accountUid = options.bytes === String ? $util.base64.encode(message.accountUid, 0, message.accountUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.accountUid) : message.accountUid; - if (message.fromSessionToken != null && message.hasOwnProperty("fromSessionToken")) - object.fromSessionToken = options.bytes === String ? $util.base64.encode(message.fromSessionToken, 0, message.fromSessionToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.fromSessionToken) : message.fromSessionToken; + if (message.accountUid != null && message.hasOwnProperty('accountUid')) + object.accountUid = + options.bytes === String + ? $util.base64.encode(message.accountUid, 0, message.accountUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.accountUid) + : message.accountUid; + if (message.fromSessionToken != null && message.hasOwnProperty('fromSessionToken')) + object.fromSessionToken = + options.bytes === String + ? $util.base64.encode(message.fromSessionToken, 0, message.fromSessionToken.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.fromSessionToken) + : message.fromSessionToken; return object; }; @@ -4645,16 +4844,15 @@ export const Authentication = $root.Authentication = (() => { */ StartLoginRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.StartLoginRequest"; + return typeUrlPrefix + '/Authentication.StartLoginRequest'; }; return StartLoginRequest; })(); - Authentication.LoginResponse = (function() { - + Authentication.LoginResponse = (function () { /** * Properties of a LoginResponse. * @memberof Authentication @@ -4690,8 +4888,7 @@ export const Authentication = $root.Authentication = (() => { this.salt = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -4716,7 +4913,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.LoginResponse * @instance */ - LoginResponse.prototype.primaryUsername = ""; + LoginResponse.prototype.primaryUsername = ''; /** * LoginResponse encryptedDataKey. @@ -4764,7 +4961,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.LoginResponse * @instance */ - LoginResponse.prototype.message = ""; + LoginResponse.prototype.message = ''; /** * LoginResponse url. @@ -4772,7 +4969,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.LoginResponse * @instance */ - LoginResponse.prototype.url = ""; + LoginResponse.prototype.url = ''; /** * LoginResponse channels. @@ -4804,7 +5001,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.LoginResponse * @instance */ - LoginResponse.prototype.stateSpecificValue = ""; + LoginResponse.prototype.stateSpecificValue = ''; /** * LoginResponse ssoClientVersion. @@ -4812,7 +5009,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.LoginResponse * @instance */ - LoginResponse.prototype.ssoClientVersion = ""; + LoginResponse.prototype.ssoClientVersion = ''; /** * LoginResponse sessionTokenTypeModifier. @@ -4820,7 +5017,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.LoginResponse * @instance */ - LoginResponse.prototype.sessionTokenTypeModifier = ""; + LoginResponse.prototype.sessionTokenTypeModifier = ''; /** * Creates a new LoginResponse instance using the specified properties. @@ -4844,42 +5041,50 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ LoginResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.loginState != null && Object.hasOwnProperty.call(message, "loginState")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.loginState); - if (message.accountUid != null && Object.hasOwnProperty.call(message, "accountUid")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.accountUid); - if (message.primaryUsername != null && Object.hasOwnProperty.call(message, "primaryUsername")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.primaryUsername); - if (message.encryptedDataKey != null && Object.hasOwnProperty.call(message, "encryptedDataKey")) - writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.encryptedDataKey); - if (message.encryptedDataKeyType != null && Object.hasOwnProperty.call(message, "encryptedDataKeyType")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.encryptedDataKeyType); - if (message.encryptedLoginToken != null && Object.hasOwnProperty.call(message, "encryptedLoginToken")) - writer.uint32(/* id 6, wireType 2 =*/50).bytes(message.encryptedLoginToken); - if (message.encryptedSessionToken != null && Object.hasOwnProperty.call(message, "encryptedSessionToken")) - writer.uint32(/* id 7, wireType 2 =*/58).bytes(message.encryptedSessionToken); - if (message.sessionTokenType != null && Object.hasOwnProperty.call(message, "sessionTokenType")) - writer.uint32(/* id 8, wireType 0 =*/64).int32(message.sessionTokenType); - if (message.message != null && Object.hasOwnProperty.call(message, "message")) - writer.uint32(/* id 9, wireType 2 =*/74).string(message.message); - if (message.url != null && Object.hasOwnProperty.call(message, "url")) - writer.uint32(/* id 10, wireType 2 =*/82).string(message.url); + if (!writer) writer = $Writer.create(); + if (message.loginState != null && Object.hasOwnProperty.call(message, 'loginState')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int32(message.loginState); + if (message.accountUid != null && Object.hasOwnProperty.call(message, 'accountUid')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.accountUid); + if (message.primaryUsername != null && Object.hasOwnProperty.call(message, 'primaryUsername')) + writer.uint32(/* id 3, wireType 2 =*/ 26).string(message.primaryUsername); + if (message.encryptedDataKey != null && Object.hasOwnProperty.call(message, 'encryptedDataKey')) + writer.uint32(/* id 4, wireType 2 =*/ 34).bytes(message.encryptedDataKey); + if (message.encryptedDataKeyType != null && Object.hasOwnProperty.call(message, 'encryptedDataKeyType')) + writer.uint32(/* id 5, wireType 0 =*/ 40).int32(message.encryptedDataKeyType); + if (message.encryptedLoginToken != null && Object.hasOwnProperty.call(message, 'encryptedLoginToken')) + writer.uint32(/* id 6, wireType 2 =*/ 50).bytes(message.encryptedLoginToken); + if (message.encryptedSessionToken != null && Object.hasOwnProperty.call(message, 'encryptedSessionToken')) + writer.uint32(/* id 7, wireType 2 =*/ 58).bytes(message.encryptedSessionToken); + if (message.sessionTokenType != null && Object.hasOwnProperty.call(message, 'sessionTokenType')) + writer.uint32(/* id 8, wireType 0 =*/ 64).int32(message.sessionTokenType); + if (message.message != null && Object.hasOwnProperty.call(message, 'message')) + writer.uint32(/* id 9, wireType 2 =*/ 74).string(message.message); + if (message.url != null && Object.hasOwnProperty.call(message, 'url')) + writer.uint32(/* id 10, wireType 2 =*/ 82).string(message.url); if (message.channels != null && message.channels.length) for (let i = 0; i < message.channels.length; ++i) - $root.Authentication.TwoFactorChannelInfo.encode(message.channels[i], writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); + $root.Authentication.TwoFactorChannelInfo.encode( + message.channels[i], + writer.uint32(/* id 11, wireType 2 =*/ 90).fork() + ).ldelim(); if (message.salt != null && message.salt.length) for (let i = 0; i < message.salt.length; ++i) - $root.Authentication.Salt.encode(message.salt[i], writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); - if (message.cloneCode != null && Object.hasOwnProperty.call(message, "cloneCode")) - writer.uint32(/* id 13, wireType 2 =*/106).bytes(message.cloneCode); - if (message.stateSpecificValue != null && Object.hasOwnProperty.call(message, "stateSpecificValue")) - writer.uint32(/* id 14, wireType 2 =*/114).string(message.stateSpecificValue); - if (message.ssoClientVersion != null && Object.hasOwnProperty.call(message, "ssoClientVersion")) - writer.uint32(/* id 15, wireType 2 =*/122).string(message.ssoClientVersion); - if (message.sessionTokenTypeModifier != null && Object.hasOwnProperty.call(message, "sessionTokenTypeModifier")) - writer.uint32(/* id 16, wireType 2 =*/130).string(message.sessionTokenTypeModifier); + $root.Authentication.Salt.encode( + message.salt[i], + writer.uint32(/* id 12, wireType 2 =*/ 98).fork() + ).ldelim(); + if (message.cloneCode != null && Object.hasOwnProperty.call(message, 'cloneCode')) + writer.uint32(/* id 13, wireType 2 =*/ 106).bytes(message.cloneCode); + if (message.stateSpecificValue != null && Object.hasOwnProperty.call(message, 'stateSpecificValue')) + writer.uint32(/* id 14, wireType 2 =*/ 114).string(message.stateSpecificValue); + if (message.ssoClientVersion != null && Object.hasOwnProperty.call(message, 'ssoClientVersion')) + writer.uint32(/* id 15, wireType 2 =*/ 122).string(message.ssoClientVersion); + if ( + message.sessionTokenTypeModifier != null && + Object.hasOwnProperty.call(message, 'sessionTokenTypeModifier') + ) + writer.uint32(/* id 16, wireType 2 =*/ 130).string(message.sessionTokenTypeModifier); return writer; }; @@ -4908,83 +5113,83 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ LoginResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.LoginResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.LoginResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.loginState = reader.int32(); break; } - case 2: { + case 2: { message.accountUid = reader.bytes(); break; } - case 3: { + case 3: { message.primaryUsername = reader.string(); break; } - case 4: { + case 4: { message.encryptedDataKey = reader.bytes(); break; } - case 5: { + case 5: { message.encryptedDataKeyType = reader.int32(); break; } - case 6: { + case 6: { message.encryptedLoginToken = reader.bytes(); break; } - case 7: { + case 7: { message.encryptedSessionToken = reader.bytes(); break; } - case 8: { + case 8: { message.sessionTokenType = reader.int32(); break; } - case 9: { + case 9: { message.message = reader.string(); break; } - case 10: { + case 10: { message.url = reader.string(); break; } - case 11: { - if (!(message.channels && message.channels.length)) - message.channels = []; - message.channels.push($root.Authentication.TwoFactorChannelInfo.decode(reader, reader.uint32())); + case 11: { + if (!(message.channels && message.channels.length)) message.channels = []; + message.channels.push( + $root.Authentication.TwoFactorChannelInfo.decode(reader, reader.uint32()) + ); break; } - case 12: { - if (!(message.salt && message.salt.length)) - message.salt = []; + case 12: { + if (!(message.salt && message.salt.length)) message.salt = []; message.salt.push($root.Authentication.Salt.decode(reader, reader.uint32())); break; } - case 13: { + case 13: { message.cloneCode = reader.bytes(); break; } - case 14: { + case 14: { message.stateSpecificValue = reader.string(); break; } - case 15: { + case 15: { message.ssoClientVersion = reader.string(); break; } - case 16: { + case 16: { message.sessionTokenTypeModifier = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -5001,8 +5206,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ LoginResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -5015,371 +5219,400 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ LoginResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.loginState != null && message.hasOwnProperty("loginState")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.loginState != null && message.hasOwnProperty('loginState')) switch (message.loginState) { + default: + return 'loginState: enum value expected'; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + case 10: + case 12: + case 13: + case 14: + case 15: + case 16: + case 17: + case 18: + case 19: + case 20: + case 21: + case 22: + case 99: + break; + } + if (message.accountUid != null && message.hasOwnProperty('accountUid')) + if ( + !( + (message.accountUid && typeof message.accountUid.length === 'number') || + $util.isString(message.accountUid) + ) + ) + return 'accountUid: buffer expected'; + if (message.primaryUsername != null && message.hasOwnProperty('primaryUsername')) + if (!$util.isString(message.primaryUsername)) return 'primaryUsername: string expected'; + if (message.encryptedDataKey != null && message.hasOwnProperty('encryptedDataKey')) + if ( + !( + (message.encryptedDataKey && typeof message.encryptedDataKey.length === 'number') || + $util.isString(message.encryptedDataKey) + ) + ) + return 'encryptedDataKey: buffer expected'; + if (message.encryptedDataKeyType != null && message.hasOwnProperty('encryptedDataKeyType')) + switch (message.encryptedDataKeyType) { + default: + return 'encryptedDataKeyType: enum value expected'; + case 0: + case 1: + case 2: + case 3: + case 4: + break; + } + if (message.encryptedLoginToken != null && message.hasOwnProperty('encryptedLoginToken')) + if ( + !( + (message.encryptedLoginToken && typeof message.encryptedLoginToken.length === 'number') || + $util.isString(message.encryptedLoginToken) + ) + ) + return 'encryptedLoginToken: buffer expected'; + if (message.encryptedSessionToken != null && message.hasOwnProperty('encryptedSessionToken')) + if ( + !( + (message.encryptedSessionToken && typeof message.encryptedSessionToken.length === 'number') || + $util.isString(message.encryptedSessionToken) + ) + ) + return 'encryptedSessionToken: buffer expected'; + if (message.sessionTokenType != null && message.hasOwnProperty('sessionTokenType')) + switch (message.sessionTokenType) { + default: + return 'sessionTokenType: enum value expected'; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + case 10: + case 11: + break; + } + if (message.message != null && message.hasOwnProperty('message')) + if (!$util.isString(message.message)) return 'message: string expected'; + if (message.url != null && message.hasOwnProperty('url')) + if (!$util.isString(message.url)) return 'url: string expected'; + if (message.channels != null && message.hasOwnProperty('channels')) { + if (!Array.isArray(message.channels)) return 'channels: array expected'; + for (let i = 0; i < message.channels.length; ++i) { + let error = $root.Authentication.TwoFactorChannelInfo.verify(message.channels[i]); + if (error) return 'channels.' + error; + } + } + if (message.salt != null && message.hasOwnProperty('salt')) { + if (!Array.isArray(message.salt)) return 'salt: array expected'; + for (let i = 0; i < message.salt.length; ++i) { + let error = $root.Authentication.Salt.verify(message.salt[i]); + if (error) return 'salt.' + error; + } + } + if (message.cloneCode != null && message.hasOwnProperty('cloneCode')) + if ( + !( + (message.cloneCode && typeof message.cloneCode.length === 'number') || + $util.isString(message.cloneCode) + ) + ) + return 'cloneCode: buffer expected'; + if (message.stateSpecificValue != null && message.hasOwnProperty('stateSpecificValue')) + if (!$util.isString(message.stateSpecificValue)) return 'stateSpecificValue: string expected'; + if (message.ssoClientVersion != null && message.hasOwnProperty('ssoClientVersion')) + if (!$util.isString(message.ssoClientVersion)) return 'ssoClientVersion: string expected'; + if (message.sessionTokenTypeModifier != null && message.hasOwnProperty('sessionTokenTypeModifier')) + if (!$util.isString(message.sessionTokenTypeModifier)) + return 'sessionTokenTypeModifier: string expected'; + return null; + }; + + /** + * Creates a LoginResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof Authentication.LoginResponse + * @static + * @param {Object.} object Plain object + * @returns {Authentication.LoginResponse} LoginResponse + */ + LoginResponse.fromObject = function fromObject(object) { + if (object instanceof $root.Authentication.LoginResponse) return object; + let message = new $root.Authentication.LoginResponse(); + switch (object.loginState) { default: - return "loginState: enum value expected"; + if (typeof object.loginState === 'number') { + message.loginState = object.loginState; + break; + } + break; + case 'INVALID_LOGINSTATE': case 0: + message.loginState = 0; + break; + case 'LOGGED_OUT': case 1: + message.loginState = 1; + break; + case 'DEVICE_APPROVAL_REQUIRED': case 2: + message.loginState = 2; + break; + case 'DEVICE_LOCKED': case 3: + message.loginState = 3; + break; + case 'ACCOUNT_LOCKED': case 4: + message.loginState = 4; + break; + case 'DEVICE_ACCOUNT_LOCKED': case 5: + message.loginState = 5; + break; + case 'UPGRADE': case 6: + message.loginState = 6; + break; + case 'LICENSE_EXPIRED': case 7: + message.loginState = 7; + break; + case 'REGION_REDIRECT': case 8: + message.loginState = 8; + break; + case 'REDIRECT_CLOUD_SSO': case 9: + message.loginState = 9; + break; + case 'REDIRECT_ONSITE_SSO': case 10: + message.loginState = 10; + break; + case 'REQUIRES_2FA': case 12: + message.loginState = 12; + break; + case 'REQUIRES_AUTH_HASH': case 13: + message.loginState = 13; + break; + case 'REQUIRES_USERNAME': case 14: + message.loginState = 14; + break; + case 'AFTER_CLOUD_SSO_LOGIN': case 15: + message.loginState = 15; + break; + case 'REQUIRES_ACCOUNT_CREATION': case 16: + message.loginState = 16; + break; + case 'REQUIRES_DEVICE_ENCRYPTED_DATA_KEY': case 17: + message.loginState = 17; + break; + case 'LOGIN_TOKEN_EXPIRED': case 18: + message.loginState = 18; + break; + case 'PASSKEY_INITIATE_CHALLENGE': case 19: + message.loginState = 19; + break; + case 'PASSKEY_AUTH_REQUIRED': case 20: + message.loginState = 20; + break; + case 'PASSKEY_VERIFY_AUTHENTICATION': case 21: + message.loginState = 21; + break; + case 'AFTER_PASSKEY_LOGIN': case 22: + message.loginState = 22; + break; + case 'LOGGED_IN': case 99: + message.loginState = 99; break; - } - if (message.accountUid != null && message.hasOwnProperty("accountUid")) - if (!(message.accountUid && typeof message.accountUid.length === "number" || $util.isString(message.accountUid))) - return "accountUid: buffer expected"; - if (message.primaryUsername != null && message.hasOwnProperty("primaryUsername")) - if (!$util.isString(message.primaryUsername)) - return "primaryUsername: string expected"; - if (message.encryptedDataKey != null && message.hasOwnProperty("encryptedDataKey")) - if (!(message.encryptedDataKey && typeof message.encryptedDataKey.length === "number" || $util.isString(message.encryptedDataKey))) - return "encryptedDataKey: buffer expected"; - if (message.encryptedDataKeyType != null && message.hasOwnProperty("encryptedDataKeyType")) - switch (message.encryptedDataKeyType) { + } + if (object.accountUid != null) + if (typeof object.accountUid === 'string') + $util.base64.decode( + object.accountUid, + (message.accountUid = $util.newBuffer($util.base64.length(object.accountUid))), + 0 + ); + else if (object.accountUid.length >= 0) message.accountUid = object.accountUid; + if (object.primaryUsername != null) message.primaryUsername = String(object.primaryUsername); + if (object.encryptedDataKey != null) + if (typeof object.encryptedDataKey === 'string') + $util.base64.decode( + object.encryptedDataKey, + (message.encryptedDataKey = $util.newBuffer($util.base64.length(object.encryptedDataKey))), + 0 + ); + else if (object.encryptedDataKey.length >= 0) message.encryptedDataKey = object.encryptedDataKey; + switch (object.encryptedDataKeyType) { default: - return "encryptedDataKeyType: enum value expected"; + if (typeof object.encryptedDataKeyType === 'number') { + message.encryptedDataKeyType = object.encryptedDataKeyType; + break; + } + break; + case 'NO_KEY': case 0: + message.encryptedDataKeyType = 0; + break; + case 'BY_DEVICE_PUBLIC_KEY': case 1: + message.encryptedDataKeyType = 1; + break; + case 'BY_PASSWORD': case 2: + message.encryptedDataKeyType = 2; + break; + case 'BY_ALTERNATE': case 3: + message.encryptedDataKeyType = 3; + break; + case 'BY_BIO': case 4: + message.encryptedDataKeyType = 4; break; - } - if (message.encryptedLoginToken != null && message.hasOwnProperty("encryptedLoginToken")) - if (!(message.encryptedLoginToken && typeof message.encryptedLoginToken.length === "number" || $util.isString(message.encryptedLoginToken))) - return "encryptedLoginToken: buffer expected"; - if (message.encryptedSessionToken != null && message.hasOwnProperty("encryptedSessionToken")) - if (!(message.encryptedSessionToken && typeof message.encryptedSessionToken.length === "number" || $util.isString(message.encryptedSessionToken))) - return "encryptedSessionToken: buffer expected"; - if (message.sessionTokenType != null && message.hasOwnProperty("sessionTokenType")) - switch (message.sessionTokenType) { + } + if (object.encryptedLoginToken != null) + if (typeof object.encryptedLoginToken === 'string') + $util.base64.decode( + object.encryptedLoginToken, + (message.encryptedLoginToken = $util.newBuffer( + $util.base64.length(object.encryptedLoginToken) + )), + 0 + ); + else if (object.encryptedLoginToken.length >= 0) + message.encryptedLoginToken = object.encryptedLoginToken; + if (object.encryptedSessionToken != null) + if (typeof object.encryptedSessionToken === 'string') + $util.base64.decode( + object.encryptedSessionToken, + (message.encryptedSessionToken = $util.newBuffer( + $util.base64.length(object.encryptedSessionToken) + )), + 0 + ); + else if (object.encryptedSessionToken.length >= 0) + message.encryptedSessionToken = object.encryptedSessionToken; + switch (object.sessionTokenType) { default: - return "sessionTokenType: enum value expected"; + if (typeof object.sessionTokenType === 'number') { + message.sessionTokenType = object.sessionTokenType; + break; + } + break; + case 'NO_RESTRICTION': case 0: + message.sessionTokenType = 0; + break; + case 'ACCOUNT_RECOVERY': case 1: + message.sessionTokenType = 1; + break; + case 'SHARE_ACCOUNT': case 2: + message.sessionTokenType = 2; + break; + case 'PURCHASE': case 3: + message.sessionTokenType = 3; + break; + case 'RESTRICT': case 4: + message.sessionTokenType = 4; + break; + case 'ACCEPT_INVITE': case 5: + message.sessionTokenType = 5; + break; + case 'SUPPORT_SERVER': case 6: + message.sessionTokenType = 6; + break; + case 'ENTERPRISE_CREATION': case 7: + message.sessionTokenType = 7; + break; + case 'EXPIRED_BUT_ALLOWED_TO_SYNC': case 8: + message.sessionTokenType = 8; + break; + case 'ACCEPT_FAMILY_INVITE': case 9: + message.sessionTokenType = 9; + break; + case 'ENTERPRISE_CREATION_PURCHASED': case 10: + message.sessionTokenType = 10; + break; + case 'EMERGENCY_ACCESS': case 11: + message.sessionTokenType = 11; break; - } - if (message.message != null && message.hasOwnProperty("message")) - if (!$util.isString(message.message)) - return "message: string expected"; - if (message.url != null && message.hasOwnProperty("url")) - if (!$util.isString(message.url)) - return "url: string expected"; - if (message.channels != null && message.hasOwnProperty("channels")) { - if (!Array.isArray(message.channels)) - return "channels: array expected"; - for (let i = 0; i < message.channels.length; ++i) { - let error = $root.Authentication.TwoFactorChannelInfo.verify(message.channels[i]); - if (error) - return "channels." + error; - } } - if (message.salt != null && message.hasOwnProperty("salt")) { - if (!Array.isArray(message.salt)) - return "salt: array expected"; - for (let i = 0; i < message.salt.length; ++i) { - let error = $root.Authentication.Salt.verify(message.salt[i]); - if (error) - return "salt." + error; - } - } - if (message.cloneCode != null && message.hasOwnProperty("cloneCode")) - if (!(message.cloneCode && typeof message.cloneCode.length === "number" || $util.isString(message.cloneCode))) - return "cloneCode: buffer expected"; - if (message.stateSpecificValue != null && message.hasOwnProperty("stateSpecificValue")) - if (!$util.isString(message.stateSpecificValue)) - return "stateSpecificValue: string expected"; - if (message.ssoClientVersion != null && message.hasOwnProperty("ssoClientVersion")) - if (!$util.isString(message.ssoClientVersion)) - return "ssoClientVersion: string expected"; - if (message.sessionTokenTypeModifier != null && message.hasOwnProperty("sessionTokenTypeModifier")) - if (!$util.isString(message.sessionTokenTypeModifier)) - return "sessionTokenTypeModifier: string expected"; - return null; - }; - - /** - * Creates a LoginResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof Authentication.LoginResponse - * @static - * @param {Object.} object Plain object - * @returns {Authentication.LoginResponse} LoginResponse - */ - LoginResponse.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.LoginResponse) - return object; - let message = new $root.Authentication.LoginResponse(); - switch (object.loginState) { - default: - if (typeof object.loginState === "number") { - message.loginState = object.loginState; - break; - } - break; - case "INVALID_LOGINSTATE": - case 0: - message.loginState = 0; - break; - case "LOGGED_OUT": - case 1: - message.loginState = 1; - break; - case "DEVICE_APPROVAL_REQUIRED": - case 2: - message.loginState = 2; - break; - case "DEVICE_LOCKED": - case 3: - message.loginState = 3; - break; - case "ACCOUNT_LOCKED": - case 4: - message.loginState = 4; - break; - case "DEVICE_ACCOUNT_LOCKED": - case 5: - message.loginState = 5; - break; - case "UPGRADE": - case 6: - message.loginState = 6; - break; - case "LICENSE_EXPIRED": - case 7: - message.loginState = 7; - break; - case "REGION_REDIRECT": - case 8: - message.loginState = 8; - break; - case "REDIRECT_CLOUD_SSO": - case 9: - message.loginState = 9; - break; - case "REDIRECT_ONSITE_SSO": - case 10: - message.loginState = 10; - break; - case "REQUIRES_2FA": - case 12: - message.loginState = 12; - break; - case "REQUIRES_AUTH_HASH": - case 13: - message.loginState = 13; - break; - case "REQUIRES_USERNAME": - case 14: - message.loginState = 14; - break; - case "AFTER_CLOUD_SSO_LOGIN": - case 15: - message.loginState = 15; - break; - case "REQUIRES_ACCOUNT_CREATION": - case 16: - message.loginState = 16; - break; - case "REQUIRES_DEVICE_ENCRYPTED_DATA_KEY": - case 17: - message.loginState = 17; - break; - case "LOGIN_TOKEN_EXPIRED": - case 18: - message.loginState = 18; - break; - case "PASSKEY_INITIATE_CHALLENGE": - case 19: - message.loginState = 19; - break; - case "PASSKEY_AUTH_REQUIRED": - case 20: - message.loginState = 20; - break; - case "PASSKEY_VERIFY_AUTHENTICATION": - case 21: - message.loginState = 21; - break; - case "AFTER_PASSKEY_LOGIN": - case 22: - message.loginState = 22; - break; - case "LOGGED_IN": - case 99: - message.loginState = 99; - break; - } - if (object.accountUid != null) - if (typeof object.accountUid === "string") - $util.base64.decode(object.accountUid, message.accountUid = $util.newBuffer($util.base64.length(object.accountUid)), 0); - else if (object.accountUid.length >= 0) - message.accountUid = object.accountUid; - if (object.primaryUsername != null) - message.primaryUsername = String(object.primaryUsername); - if (object.encryptedDataKey != null) - if (typeof object.encryptedDataKey === "string") - $util.base64.decode(object.encryptedDataKey, message.encryptedDataKey = $util.newBuffer($util.base64.length(object.encryptedDataKey)), 0); - else if (object.encryptedDataKey.length >= 0) - message.encryptedDataKey = object.encryptedDataKey; - switch (object.encryptedDataKeyType) { - default: - if (typeof object.encryptedDataKeyType === "number") { - message.encryptedDataKeyType = object.encryptedDataKeyType; - break; - } - break; - case "NO_KEY": - case 0: - message.encryptedDataKeyType = 0; - break; - case "BY_DEVICE_PUBLIC_KEY": - case 1: - message.encryptedDataKeyType = 1; - break; - case "BY_PASSWORD": - case 2: - message.encryptedDataKeyType = 2; - break; - case "BY_ALTERNATE": - case 3: - message.encryptedDataKeyType = 3; - break; - case "BY_BIO": - case 4: - message.encryptedDataKeyType = 4; - break; - } - if (object.encryptedLoginToken != null) - if (typeof object.encryptedLoginToken === "string") - $util.base64.decode(object.encryptedLoginToken, message.encryptedLoginToken = $util.newBuffer($util.base64.length(object.encryptedLoginToken)), 0); - else if (object.encryptedLoginToken.length >= 0) - message.encryptedLoginToken = object.encryptedLoginToken; - if (object.encryptedSessionToken != null) - if (typeof object.encryptedSessionToken === "string") - $util.base64.decode(object.encryptedSessionToken, message.encryptedSessionToken = $util.newBuffer($util.base64.length(object.encryptedSessionToken)), 0); - else if (object.encryptedSessionToken.length >= 0) - message.encryptedSessionToken = object.encryptedSessionToken; - switch (object.sessionTokenType) { - default: - if (typeof object.sessionTokenType === "number") { - message.sessionTokenType = object.sessionTokenType; - break; - } - break; - case "NO_RESTRICTION": - case 0: - message.sessionTokenType = 0; - break; - case "ACCOUNT_RECOVERY": - case 1: - message.sessionTokenType = 1; - break; - case "SHARE_ACCOUNT": - case 2: - message.sessionTokenType = 2; - break; - case "PURCHASE": - case 3: - message.sessionTokenType = 3; - break; - case "RESTRICT": - case 4: - message.sessionTokenType = 4; - break; - case "ACCEPT_INVITE": - case 5: - message.sessionTokenType = 5; - break; - case "SUPPORT_SERVER": - case 6: - message.sessionTokenType = 6; - break; - case "ENTERPRISE_CREATION": - case 7: - message.sessionTokenType = 7; - break; - case "EXPIRED_BUT_ALLOWED_TO_SYNC": - case 8: - message.sessionTokenType = 8; - break; - case "ACCEPT_FAMILY_INVITE": - case 9: - message.sessionTokenType = 9; - break; - case "ENTERPRISE_CREATION_PURCHASED": - case 10: - message.sessionTokenType = 10; - break; - case "EMERGENCY_ACCESS": - case 11: - message.sessionTokenType = 11; - break; - } - if (object.message != null) - message.message = String(object.message); - if (object.url != null) - message.url = String(object.url); + if (object.message != null) message.message = String(object.message); + if (object.url != null) message.url = String(object.url); if (object.channels) { if (!Array.isArray(object.channels)) - throw TypeError(".Authentication.LoginResponse.channels: array expected"); + throw TypeError('.Authentication.LoginResponse.channels: array expected'); message.channels = []; for (let i = 0; i < object.channels.length; ++i) { - if (typeof object.channels[i] !== "object") - throw TypeError(".Authentication.LoginResponse.channels: object expected"); + if (typeof object.channels[i] !== 'object') + throw TypeError('.Authentication.LoginResponse.channels: object expected'); message.channels[i] = $root.Authentication.TwoFactorChannelInfo.fromObject(object.channels[i]); } } if (object.salt) { - if (!Array.isArray(object.salt)) - throw TypeError(".Authentication.LoginResponse.salt: array expected"); + if (!Array.isArray(object.salt)) throw TypeError('.Authentication.LoginResponse.salt: array expected'); message.salt = []; for (let i = 0; i < object.salt.length; ++i) { - if (typeof object.salt[i] !== "object") - throw TypeError(".Authentication.LoginResponse.salt: object expected"); + if (typeof object.salt[i] !== 'object') + throw TypeError('.Authentication.LoginResponse.salt: object expected'); message.salt[i] = $root.Authentication.Salt.fromObject(object.salt[i]); } } if (object.cloneCode != null) - if (typeof object.cloneCode === "string") - $util.base64.decode(object.cloneCode, message.cloneCode = $util.newBuffer($util.base64.length(object.cloneCode)), 0); - else if (object.cloneCode.length >= 0) - message.cloneCode = object.cloneCode; - if (object.stateSpecificValue != null) - message.stateSpecificValue = String(object.stateSpecificValue); - if (object.ssoClientVersion != null) - message.ssoClientVersion = String(object.ssoClientVersion); + if (typeof object.cloneCode === 'string') + $util.base64.decode( + object.cloneCode, + (message.cloneCode = $util.newBuffer($util.base64.length(object.cloneCode))), + 0 + ); + else if (object.cloneCode.length >= 0) message.cloneCode = object.cloneCode; + if (object.stateSpecificValue != null) message.stateSpecificValue = String(object.stateSpecificValue); + if (object.ssoClientVersion != null) message.ssoClientVersion = String(object.ssoClientVersion); if (object.sessionTokenTypeModifier != null) message.sessionTokenTypeModifier = String(object.sessionTokenTypeModifier); return message; @@ -5395,96 +5628,128 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ LoginResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.arrays || options.defaults) { object.channels = []; object.salt = []; } if (options.defaults) { - object.loginState = options.enums === String ? "INVALID_LOGINSTATE" : 0; - if (options.bytes === String) - object.accountUid = ""; + object.loginState = options.enums === String ? 'INVALID_LOGINSTATE' : 0; + if (options.bytes === String) object.accountUid = ''; else { object.accountUid = []; - if (options.bytes !== Array) - object.accountUid = $util.newBuffer(object.accountUid); + if (options.bytes !== Array) object.accountUid = $util.newBuffer(object.accountUid); } - object.primaryUsername = ""; - if (options.bytes === String) - object.encryptedDataKey = ""; + object.primaryUsername = ''; + if (options.bytes === String) object.encryptedDataKey = ''; else { object.encryptedDataKey = []; - if (options.bytes !== Array) - object.encryptedDataKey = $util.newBuffer(object.encryptedDataKey); + if (options.bytes !== Array) object.encryptedDataKey = $util.newBuffer(object.encryptedDataKey); } - object.encryptedDataKeyType = options.enums === String ? "NO_KEY" : 0; - if (options.bytes === String) - object.encryptedLoginToken = ""; + object.encryptedDataKeyType = options.enums === String ? 'NO_KEY' : 0; + if (options.bytes === String) object.encryptedLoginToken = ''; else { object.encryptedLoginToken = []; if (options.bytes !== Array) object.encryptedLoginToken = $util.newBuffer(object.encryptedLoginToken); } - if (options.bytes === String) - object.encryptedSessionToken = ""; + if (options.bytes === String) object.encryptedSessionToken = ''; else { object.encryptedSessionToken = []; if (options.bytes !== Array) object.encryptedSessionToken = $util.newBuffer(object.encryptedSessionToken); } - object.sessionTokenType = options.enums === String ? "NO_RESTRICTION" : 0; - object.message = ""; - object.url = ""; - if (options.bytes === String) - object.cloneCode = ""; + object.sessionTokenType = options.enums === String ? 'NO_RESTRICTION' : 0; + object.message = ''; + object.url = ''; + if (options.bytes === String) object.cloneCode = ''; else { object.cloneCode = []; - if (options.bytes !== Array) - object.cloneCode = $util.newBuffer(object.cloneCode); - } - object.stateSpecificValue = ""; - object.ssoClientVersion = ""; - object.sessionTokenTypeModifier = ""; - } - if (message.loginState != null && message.hasOwnProperty("loginState")) - object.loginState = options.enums === String ? $root.Authentication.LoginState[message.loginState] === undefined ? message.loginState : $root.Authentication.LoginState[message.loginState] : message.loginState; - if (message.accountUid != null && message.hasOwnProperty("accountUid")) - object.accountUid = options.bytes === String ? $util.base64.encode(message.accountUid, 0, message.accountUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.accountUid) : message.accountUid; - if (message.primaryUsername != null && message.hasOwnProperty("primaryUsername")) + if (options.bytes !== Array) object.cloneCode = $util.newBuffer(object.cloneCode); + } + object.stateSpecificValue = ''; + object.ssoClientVersion = ''; + object.sessionTokenTypeModifier = ''; + } + if (message.loginState != null && message.hasOwnProperty('loginState')) + object.loginState = + options.enums === String + ? $root.Authentication.LoginState[message.loginState] === undefined + ? message.loginState + : $root.Authentication.LoginState[message.loginState] + : message.loginState; + if (message.accountUid != null && message.hasOwnProperty('accountUid')) + object.accountUid = + options.bytes === String + ? $util.base64.encode(message.accountUid, 0, message.accountUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.accountUid) + : message.accountUid; + if (message.primaryUsername != null && message.hasOwnProperty('primaryUsername')) object.primaryUsername = message.primaryUsername; - if (message.encryptedDataKey != null && message.hasOwnProperty("encryptedDataKey")) - object.encryptedDataKey = options.bytes === String ? $util.base64.encode(message.encryptedDataKey, 0, message.encryptedDataKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedDataKey) : message.encryptedDataKey; - if (message.encryptedDataKeyType != null && message.hasOwnProperty("encryptedDataKeyType")) - object.encryptedDataKeyType = options.enums === String ? $root.Authentication.EncryptedDataKeyType[message.encryptedDataKeyType] === undefined ? message.encryptedDataKeyType : $root.Authentication.EncryptedDataKeyType[message.encryptedDataKeyType] : message.encryptedDataKeyType; - if (message.encryptedLoginToken != null && message.hasOwnProperty("encryptedLoginToken")) - object.encryptedLoginToken = options.bytes === String ? $util.base64.encode(message.encryptedLoginToken, 0, message.encryptedLoginToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedLoginToken) : message.encryptedLoginToken; - if (message.encryptedSessionToken != null && message.hasOwnProperty("encryptedSessionToken")) - object.encryptedSessionToken = options.bytes === String ? $util.base64.encode(message.encryptedSessionToken, 0, message.encryptedSessionToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedSessionToken) : message.encryptedSessionToken; - if (message.sessionTokenType != null && message.hasOwnProperty("sessionTokenType")) - object.sessionTokenType = options.enums === String ? $root.Authentication.SessionTokenType[message.sessionTokenType] === undefined ? message.sessionTokenType : $root.Authentication.SessionTokenType[message.sessionTokenType] : message.sessionTokenType; - if (message.message != null && message.hasOwnProperty("message")) - object.message = message.message; - if (message.url != null && message.hasOwnProperty("url")) - object.url = message.url; + if (message.encryptedDataKey != null && message.hasOwnProperty('encryptedDataKey')) + object.encryptedDataKey = + options.bytes === String + ? $util.base64.encode(message.encryptedDataKey, 0, message.encryptedDataKey.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.encryptedDataKey) + : message.encryptedDataKey; + if (message.encryptedDataKeyType != null && message.hasOwnProperty('encryptedDataKeyType')) + object.encryptedDataKeyType = + options.enums === String + ? $root.Authentication.EncryptedDataKeyType[message.encryptedDataKeyType] === undefined + ? message.encryptedDataKeyType + : $root.Authentication.EncryptedDataKeyType[message.encryptedDataKeyType] + : message.encryptedDataKeyType; + if (message.encryptedLoginToken != null && message.hasOwnProperty('encryptedLoginToken')) + object.encryptedLoginToken = + options.bytes === String + ? $util.base64.encode(message.encryptedLoginToken, 0, message.encryptedLoginToken.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.encryptedLoginToken) + : message.encryptedLoginToken; + if (message.encryptedSessionToken != null && message.hasOwnProperty('encryptedSessionToken')) + object.encryptedSessionToken = + options.bytes === String + ? $util.base64.encode(message.encryptedSessionToken, 0, message.encryptedSessionToken.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.encryptedSessionToken) + : message.encryptedSessionToken; + if (message.sessionTokenType != null && message.hasOwnProperty('sessionTokenType')) + object.sessionTokenType = + options.enums === String + ? $root.Authentication.SessionTokenType[message.sessionTokenType] === undefined + ? message.sessionTokenType + : $root.Authentication.SessionTokenType[message.sessionTokenType] + : message.sessionTokenType; + if (message.message != null && message.hasOwnProperty('message')) object.message = message.message; + if (message.url != null && message.hasOwnProperty('url')) object.url = message.url; if (message.channels && message.channels.length) { object.channels = []; for (let j = 0; j < message.channels.length; ++j) - object.channels[j] = $root.Authentication.TwoFactorChannelInfo.toObject(message.channels[j], options); + object.channels[j] = $root.Authentication.TwoFactorChannelInfo.toObject( + message.channels[j], + options + ); } if (message.salt && message.salt.length) { object.salt = []; for (let j = 0; j < message.salt.length; ++j) object.salt[j] = $root.Authentication.Salt.toObject(message.salt[j], options); } - if (message.cloneCode != null && message.hasOwnProperty("cloneCode")) - object.cloneCode = options.bytes === String ? $util.base64.encode(message.cloneCode, 0, message.cloneCode.length) : options.bytes === Array ? Array.prototype.slice.call(message.cloneCode) : message.cloneCode; - if (message.stateSpecificValue != null && message.hasOwnProperty("stateSpecificValue")) + if (message.cloneCode != null && message.hasOwnProperty('cloneCode')) + object.cloneCode = + options.bytes === String + ? $util.base64.encode(message.cloneCode, 0, message.cloneCode.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.cloneCode) + : message.cloneCode; + if (message.stateSpecificValue != null && message.hasOwnProperty('stateSpecificValue')) object.stateSpecificValue = message.stateSpecificValue; - if (message.ssoClientVersion != null && message.hasOwnProperty("ssoClientVersion")) + if (message.ssoClientVersion != null && message.hasOwnProperty('ssoClientVersion')) object.ssoClientVersion = message.ssoClientVersion; - if (message.sessionTokenTypeModifier != null && message.hasOwnProperty("sessionTokenTypeModifier")) + if (message.sessionTokenTypeModifier != null && message.hasOwnProperty('sessionTokenTypeModifier')) object.sessionTokenTypeModifier = message.sessionTokenTypeModifier; return object; }; @@ -5510,16 +5775,15 @@ export const Authentication = $root.Authentication = (() => { */ LoginResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.LoginResponse"; + return typeUrlPrefix + '/Authentication.LoginResponse'; }; return LoginResponse; })(); - Authentication.SwitchListElement = (function() { - + Authentication.SwitchListElement = (function () { /** * Properties of a SwitchListElement. * @memberof Authentication @@ -5542,8 +5806,7 @@ export const Authentication = $root.Authentication = (() => { function SwitchListElement(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -5552,7 +5815,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.SwitchListElement * @instance */ - SwitchListElement.prototype.username = ""; + SwitchListElement.prototype.username = ''; /** * SwitchListElement fullName. @@ -5560,7 +5823,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.SwitchListElement * @instance */ - SwitchListElement.prototype.fullName = ""; + SwitchListElement.prototype.fullName = ''; /** * SwitchListElement authRequired. @@ -5584,7 +5847,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.SwitchListElement * @instance */ - SwitchListElement.prototype.profilePicUrl = ""; + SwitchListElement.prototype.profilePicUrl = ''; /** * Creates a new SwitchListElement instance using the specified properties. @@ -5608,18 +5871,17 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ SwitchListElement.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.username != null && Object.hasOwnProperty.call(message, "username")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.username); - if (message.fullName != null && Object.hasOwnProperty.call(message, "fullName")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.fullName); - if (message.authRequired != null && Object.hasOwnProperty.call(message, "authRequired")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.authRequired); - if (message.isLinked != null && Object.hasOwnProperty.call(message, "isLinked")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.isLinked); - if (message.profilePicUrl != null && Object.hasOwnProperty.call(message, "profilePicUrl")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.profilePicUrl); + if (!writer) writer = $Writer.create(); + if (message.username != null && Object.hasOwnProperty.call(message, 'username')) + writer.uint32(/* id 1, wireType 2 =*/ 10).string(message.username); + if (message.fullName != null && Object.hasOwnProperty.call(message, 'fullName')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.fullName); + if (message.authRequired != null && Object.hasOwnProperty.call(message, 'authRequired')) + writer.uint32(/* id 3, wireType 0 =*/ 24).bool(message.authRequired); + if (message.isLinked != null && Object.hasOwnProperty.call(message, 'isLinked')) + writer.uint32(/* id 4, wireType 0 =*/ 32).bool(message.isLinked); + if (message.profilePicUrl != null && Object.hasOwnProperty.call(message, 'profilePicUrl')) + writer.uint32(/* id 5, wireType 2 =*/ 42).string(message.profilePicUrl); return writer; }; @@ -5648,35 +5910,35 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SwitchListElement.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.SwitchListElement(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.SwitchListElement(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.username = reader.string(); break; } - case 2: { + case 2: { message.fullName = reader.string(); break; } - case 3: { + case 3: { message.authRequired = reader.bool(); break; } - case 4: { + case 4: { message.isLinked = reader.bool(); break; } - case 5: { + case 5: { message.profilePicUrl = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -5693,8 +5955,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SwitchListElement.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -5707,23 +5968,17 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ SwitchListElement.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.username != null && message.hasOwnProperty("username")) - if (!$util.isString(message.username)) - return "username: string expected"; - if (message.fullName != null && message.hasOwnProperty("fullName")) - if (!$util.isString(message.fullName)) - return "fullName: string expected"; - if (message.authRequired != null && message.hasOwnProperty("authRequired")) - if (typeof message.authRequired !== "boolean") - return "authRequired: boolean expected"; - if (message.isLinked != null && message.hasOwnProperty("isLinked")) - if (typeof message.isLinked !== "boolean") - return "isLinked: boolean expected"; - if (message.profilePicUrl != null && message.hasOwnProperty("profilePicUrl")) - if (!$util.isString(message.profilePicUrl)) - return "profilePicUrl: string expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.username != null && message.hasOwnProperty('username')) + if (!$util.isString(message.username)) return 'username: string expected'; + if (message.fullName != null && message.hasOwnProperty('fullName')) + if (!$util.isString(message.fullName)) return 'fullName: string expected'; + if (message.authRequired != null && message.hasOwnProperty('authRequired')) + if (typeof message.authRequired !== 'boolean') return 'authRequired: boolean expected'; + if (message.isLinked != null && message.hasOwnProperty('isLinked')) + if (typeof message.isLinked !== 'boolean') return 'isLinked: boolean expected'; + if (message.profilePicUrl != null && message.hasOwnProperty('profilePicUrl')) + if (!$util.isString(message.profilePicUrl)) return 'profilePicUrl: string expected'; return null; }; @@ -5736,19 +5991,13 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.SwitchListElement} SwitchListElement */ SwitchListElement.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.SwitchListElement) - return object; + if (object instanceof $root.Authentication.SwitchListElement) return object; let message = new $root.Authentication.SwitchListElement(); - if (object.username != null) - message.username = String(object.username); - if (object.fullName != null) - message.fullName = String(object.fullName); - if (object.authRequired != null) - message.authRequired = Boolean(object.authRequired); - if (object.isLinked != null) - message.isLinked = Boolean(object.isLinked); - if (object.profilePicUrl != null) - message.profilePicUrl = String(object.profilePicUrl); + if (object.username != null) message.username = String(object.username); + if (object.fullName != null) message.fullName = String(object.fullName); + if (object.authRequired != null) message.authRequired = Boolean(object.authRequired); + if (object.isLinked != null) message.isLinked = Boolean(object.isLinked); + if (object.profilePicUrl != null) message.profilePicUrl = String(object.profilePicUrl); return message; }; @@ -5762,25 +6011,21 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ SwitchListElement.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - object.username = ""; - object.fullName = ""; + object.username = ''; + object.fullName = ''; object.authRequired = false; object.isLinked = false; - object.profilePicUrl = ""; + object.profilePicUrl = ''; } - if (message.username != null && message.hasOwnProperty("username")) - object.username = message.username; - if (message.fullName != null && message.hasOwnProperty("fullName")) - object.fullName = message.fullName; - if (message.authRequired != null && message.hasOwnProperty("authRequired")) + if (message.username != null && message.hasOwnProperty('username')) object.username = message.username; + if (message.fullName != null && message.hasOwnProperty('fullName')) object.fullName = message.fullName; + if (message.authRequired != null && message.hasOwnProperty('authRequired')) object.authRequired = message.authRequired; - if (message.isLinked != null && message.hasOwnProperty("isLinked")) - object.isLinked = message.isLinked; - if (message.profilePicUrl != null && message.hasOwnProperty("profilePicUrl")) + if (message.isLinked != null && message.hasOwnProperty('isLinked')) object.isLinked = message.isLinked; + if (message.profilePicUrl != null && message.hasOwnProperty('profilePicUrl')) object.profilePicUrl = message.profilePicUrl; return object; }; @@ -5806,16 +6051,15 @@ export const Authentication = $root.Authentication = (() => { */ SwitchListElement.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.SwitchListElement"; + return typeUrlPrefix + '/Authentication.SwitchListElement'; }; return SwitchListElement; })(); - Authentication.SwitchListResponse = (function() { - + Authentication.SwitchListResponse = (function () { /** * Properties of a SwitchListResponse. * @memberof Authentication @@ -5835,8 +6079,7 @@ export const Authentication = $root.Authentication = (() => { this.elements = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -5869,11 +6112,13 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ SwitchListResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.elements != null && message.elements.length) for (let i = 0; i < message.elements.length; ++i) - $root.Authentication.SwitchListElement.encode(message.elements[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.Authentication.SwitchListElement.encode( + message.elements[i], + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); return writer; }; @@ -5902,21 +6147,20 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SwitchListResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.SwitchListResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.SwitchListResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (!(message.elements && message.elements.length)) - message.elements = []; + case 1: { + if (!(message.elements && message.elements.length)) message.elements = []; message.elements.push($root.Authentication.SwitchListElement.decode(reader, reader.uint32())); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -5933,8 +6177,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SwitchListResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -5947,15 +6190,12 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ SwitchListResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.elements != null && message.hasOwnProperty("elements")) { - if (!Array.isArray(message.elements)) - return "elements: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.elements != null && message.hasOwnProperty('elements')) { + if (!Array.isArray(message.elements)) return 'elements: array expected'; for (let i = 0; i < message.elements.length; ++i) { let error = $root.Authentication.SwitchListElement.verify(message.elements[i]); - if (error) - return "elements." + error; + if (error) return 'elements.' + error; } } return null; @@ -5970,16 +6210,15 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.SwitchListResponse} SwitchListResponse */ SwitchListResponse.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.SwitchListResponse) - return object; + if (object instanceof $root.Authentication.SwitchListResponse) return object; let message = new $root.Authentication.SwitchListResponse(); if (object.elements) { if (!Array.isArray(object.elements)) - throw TypeError(".Authentication.SwitchListResponse.elements: array expected"); + throw TypeError('.Authentication.SwitchListResponse.elements: array expected'); message.elements = []; for (let i = 0; i < object.elements.length; ++i) { - if (typeof object.elements[i] !== "object") - throw TypeError(".Authentication.SwitchListResponse.elements: object expected"); + if (typeof object.elements[i] !== 'object') + throw TypeError('.Authentication.SwitchListResponse.elements: object expected'); message.elements[i] = $root.Authentication.SwitchListElement.fromObject(object.elements[i]); } } @@ -5996,11 +6235,9 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ SwitchListResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.elements = []; + if (options.arrays || options.defaults) object.elements = []; if (message.elements && message.elements.length) { object.elements = []; for (let j = 0; j < message.elements.length; ++j) @@ -6030,16 +6267,15 @@ export const Authentication = $root.Authentication = (() => { */ SwitchListResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.SwitchListResponse"; + return typeUrlPrefix + '/Authentication.SwitchListResponse'; }; return SwitchListResponse; })(); - Authentication.SsoUserInfo = (function() { - + Authentication.SsoUserInfo = (function () { /** * Properties of a SsoUserInfo. * @memberof Authentication @@ -6063,8 +6299,7 @@ export const Authentication = $root.Authentication = (() => { function SsoUserInfo(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -6073,7 +6308,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.SsoUserInfo * @instance */ - SsoUserInfo.prototype.companyName = ""; + SsoUserInfo.prototype.companyName = ''; /** * SsoUserInfo samlRequest. @@ -6081,7 +6316,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.SsoUserInfo * @instance */ - SsoUserInfo.prototype.samlRequest = ""; + SsoUserInfo.prototype.samlRequest = ''; /** * SsoUserInfo samlRequestType. @@ -6089,7 +6324,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.SsoUserInfo * @instance */ - SsoUserInfo.prototype.samlRequestType = ""; + SsoUserInfo.prototype.samlRequestType = ''; /** * SsoUserInfo ssoDomainName. @@ -6097,7 +6332,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.SsoUserInfo * @instance */ - SsoUserInfo.prototype.ssoDomainName = ""; + SsoUserInfo.prototype.ssoDomainName = ''; /** * SsoUserInfo loginUrl. @@ -6105,7 +6340,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.SsoUserInfo * @instance */ - SsoUserInfo.prototype.loginUrl = ""; + SsoUserInfo.prototype.loginUrl = ''; /** * SsoUserInfo logoutUrl. @@ -6113,7 +6348,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.SsoUserInfo * @instance */ - SsoUserInfo.prototype.logoutUrl = ""; + SsoUserInfo.prototype.logoutUrl = ''; /** * Creates a new SsoUserInfo instance using the specified properties. @@ -6137,20 +6372,19 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ SsoUserInfo.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.companyName != null && Object.hasOwnProperty.call(message, "companyName")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.companyName); - if (message.samlRequest != null && Object.hasOwnProperty.call(message, "samlRequest")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.samlRequest); - if (message.samlRequestType != null && Object.hasOwnProperty.call(message, "samlRequestType")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.samlRequestType); - if (message.ssoDomainName != null && Object.hasOwnProperty.call(message, "ssoDomainName")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.ssoDomainName); - if (message.loginUrl != null && Object.hasOwnProperty.call(message, "loginUrl")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.loginUrl); - if (message.logoutUrl != null && Object.hasOwnProperty.call(message, "logoutUrl")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.logoutUrl); + if (!writer) writer = $Writer.create(); + if (message.companyName != null && Object.hasOwnProperty.call(message, 'companyName')) + writer.uint32(/* id 1, wireType 2 =*/ 10).string(message.companyName); + if (message.samlRequest != null && Object.hasOwnProperty.call(message, 'samlRequest')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.samlRequest); + if (message.samlRequestType != null && Object.hasOwnProperty.call(message, 'samlRequestType')) + writer.uint32(/* id 3, wireType 2 =*/ 26).string(message.samlRequestType); + if (message.ssoDomainName != null && Object.hasOwnProperty.call(message, 'ssoDomainName')) + writer.uint32(/* id 4, wireType 2 =*/ 34).string(message.ssoDomainName); + if (message.loginUrl != null && Object.hasOwnProperty.call(message, 'loginUrl')) + writer.uint32(/* id 5, wireType 2 =*/ 42).string(message.loginUrl); + if (message.logoutUrl != null && Object.hasOwnProperty.call(message, 'logoutUrl')) + writer.uint32(/* id 6, wireType 2 =*/ 50).string(message.logoutUrl); return writer; }; @@ -6179,39 +6413,39 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SsoUserInfo.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.SsoUserInfo(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.SsoUserInfo(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.companyName = reader.string(); break; } - case 2: { + case 2: { message.samlRequest = reader.string(); break; } - case 3: { + case 3: { message.samlRequestType = reader.string(); break; } - case 4: { + case 4: { message.ssoDomainName = reader.string(); break; } - case 5: { + case 5: { message.loginUrl = reader.string(); break; } - case 6: { + case 6: { message.logoutUrl = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -6228,8 +6462,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SsoUserInfo.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -6242,26 +6475,19 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ SsoUserInfo.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.companyName != null && message.hasOwnProperty("companyName")) - if (!$util.isString(message.companyName)) - return "companyName: string expected"; - if (message.samlRequest != null && message.hasOwnProperty("samlRequest")) - if (!$util.isString(message.samlRequest)) - return "samlRequest: string expected"; - if (message.samlRequestType != null && message.hasOwnProperty("samlRequestType")) - if (!$util.isString(message.samlRequestType)) - return "samlRequestType: string expected"; - if (message.ssoDomainName != null && message.hasOwnProperty("ssoDomainName")) - if (!$util.isString(message.ssoDomainName)) - return "ssoDomainName: string expected"; - if (message.loginUrl != null && message.hasOwnProperty("loginUrl")) - if (!$util.isString(message.loginUrl)) - return "loginUrl: string expected"; - if (message.logoutUrl != null && message.hasOwnProperty("logoutUrl")) - if (!$util.isString(message.logoutUrl)) - return "logoutUrl: string expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.companyName != null && message.hasOwnProperty('companyName')) + if (!$util.isString(message.companyName)) return 'companyName: string expected'; + if (message.samlRequest != null && message.hasOwnProperty('samlRequest')) + if (!$util.isString(message.samlRequest)) return 'samlRequest: string expected'; + if (message.samlRequestType != null && message.hasOwnProperty('samlRequestType')) + if (!$util.isString(message.samlRequestType)) return 'samlRequestType: string expected'; + if (message.ssoDomainName != null && message.hasOwnProperty('ssoDomainName')) + if (!$util.isString(message.ssoDomainName)) return 'ssoDomainName: string expected'; + if (message.loginUrl != null && message.hasOwnProperty('loginUrl')) + if (!$util.isString(message.loginUrl)) return 'loginUrl: string expected'; + if (message.logoutUrl != null && message.hasOwnProperty('logoutUrl')) + if (!$util.isString(message.logoutUrl)) return 'logoutUrl: string expected'; return null; }; @@ -6274,21 +6500,14 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.SsoUserInfo} SsoUserInfo */ SsoUserInfo.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.SsoUserInfo) - return object; + if (object instanceof $root.Authentication.SsoUserInfo) return object; let message = new $root.Authentication.SsoUserInfo(); - if (object.companyName != null) - message.companyName = String(object.companyName); - if (object.samlRequest != null) - message.samlRequest = String(object.samlRequest); - if (object.samlRequestType != null) - message.samlRequestType = String(object.samlRequestType); - if (object.ssoDomainName != null) - message.ssoDomainName = String(object.ssoDomainName); - if (object.loginUrl != null) - message.loginUrl = String(object.loginUrl); - if (object.logoutUrl != null) - message.logoutUrl = String(object.logoutUrl); + if (object.companyName != null) message.companyName = String(object.companyName); + if (object.samlRequest != null) message.samlRequest = String(object.samlRequest); + if (object.samlRequestType != null) message.samlRequestType = String(object.samlRequestType); + if (object.ssoDomainName != null) message.ssoDomainName = String(object.ssoDomainName); + if (object.loginUrl != null) message.loginUrl = String(object.loginUrl); + if (object.logoutUrl != null) message.logoutUrl = String(object.logoutUrl); return message; }; @@ -6302,29 +6521,26 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ SsoUserInfo.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - object.companyName = ""; - object.samlRequest = ""; - object.samlRequestType = ""; - object.ssoDomainName = ""; - object.loginUrl = ""; - object.logoutUrl = ""; + object.companyName = ''; + object.samlRequest = ''; + object.samlRequestType = ''; + object.ssoDomainName = ''; + object.loginUrl = ''; + object.logoutUrl = ''; } - if (message.companyName != null && message.hasOwnProperty("companyName")) + if (message.companyName != null && message.hasOwnProperty('companyName')) object.companyName = message.companyName; - if (message.samlRequest != null && message.hasOwnProperty("samlRequest")) + if (message.samlRequest != null && message.hasOwnProperty('samlRequest')) object.samlRequest = message.samlRequest; - if (message.samlRequestType != null && message.hasOwnProperty("samlRequestType")) + if (message.samlRequestType != null && message.hasOwnProperty('samlRequestType')) object.samlRequestType = message.samlRequestType; - if (message.ssoDomainName != null && message.hasOwnProperty("ssoDomainName")) + if (message.ssoDomainName != null && message.hasOwnProperty('ssoDomainName')) object.ssoDomainName = message.ssoDomainName; - if (message.loginUrl != null && message.hasOwnProperty("loginUrl")) - object.loginUrl = message.loginUrl; - if (message.logoutUrl != null && message.hasOwnProperty("logoutUrl")) - object.logoutUrl = message.logoutUrl; + if (message.loginUrl != null && message.hasOwnProperty('loginUrl')) object.loginUrl = message.loginUrl; + if (message.logoutUrl != null && message.hasOwnProperty('logoutUrl')) object.logoutUrl = message.logoutUrl; return object; }; @@ -6349,16 +6565,15 @@ export const Authentication = $root.Authentication = (() => { */ SsoUserInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.SsoUserInfo"; + return typeUrlPrefix + '/Authentication.SsoUserInfo'; }; return SsoUserInfo; })(); - Authentication.PreLoginResponse = (function() { - + Authentication.PreLoginResponse = (function () { /** * Properties of a PreLoginResponse. * @memberof Authentication @@ -6382,8 +6597,7 @@ export const Authentication = $root.Authentication = (() => { this.OBSOLETE_FIELD = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -6440,18 +6654,26 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ PreLoginResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.deviceStatus != null && Object.hasOwnProperty.call(message, "deviceStatus")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.deviceStatus); + if (!writer) writer = $Writer.create(); + if (message.deviceStatus != null && Object.hasOwnProperty.call(message, 'deviceStatus')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int32(message.deviceStatus); if (message.salt != null && message.salt.length) for (let i = 0; i < message.salt.length; ++i) - $root.Authentication.Salt.encode(message.salt[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + $root.Authentication.Salt.encode( + message.salt[i], + writer.uint32(/* id 2, wireType 2 =*/ 18).fork() + ).ldelim(); if (message.OBSOLETE_FIELD != null && message.OBSOLETE_FIELD.length) for (let i = 0; i < message.OBSOLETE_FIELD.length; ++i) - $root.Authentication.TwoFactorChannel.encode(message.OBSOLETE_FIELD[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.ssoUserInfo != null && Object.hasOwnProperty.call(message, "ssoUserInfo")) - $root.Authentication.SsoUserInfo.encode(message.ssoUserInfo, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + $root.Authentication.TwoFactorChannel.encode( + message.OBSOLETE_FIELD[i], + writer.uint32(/* id 3, wireType 2 =*/ 26).fork() + ).ldelim(); + if (message.ssoUserInfo != null && Object.hasOwnProperty.call(message, 'ssoUserInfo')) + $root.Authentication.SsoUserInfo.encode( + message.ssoUserInfo, + writer.uint32(/* id 4, wireType 2 =*/ 34).fork() + ).ldelim(); return writer; }; @@ -6480,35 +6702,35 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ PreLoginResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.PreLoginResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.PreLoginResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.deviceStatus = reader.int32(); break; } - case 2: { - if (!(message.salt && message.salt.length)) - message.salt = []; + case 2: { + if (!(message.salt && message.salt.length)) message.salt = []; message.salt.push($root.Authentication.Salt.decode(reader, reader.uint32())); break; } - case 3: { - if (!(message.OBSOLETE_FIELD && message.OBSOLETE_FIELD.length)) - message.OBSOLETE_FIELD = []; - message.OBSOLETE_FIELD.push($root.Authentication.TwoFactorChannel.decode(reader, reader.uint32())); + case 3: { + if (!(message.OBSOLETE_FIELD && message.OBSOLETE_FIELD.length)) message.OBSOLETE_FIELD = []; + message.OBSOLETE_FIELD.push( + $root.Authentication.TwoFactorChannel.decode(reader, reader.uint32()) + ); break; } - case 4: { + case 4: { message.ssoUserInfo = $root.Authentication.SsoUserInfo.decode(reader, reader.uint32()); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -6525,8 +6747,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ PreLoginResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -6539,40 +6760,34 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ PreLoginResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.deviceStatus != null && message.hasOwnProperty("deviceStatus")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.deviceStatus != null && message.hasOwnProperty('deviceStatus')) switch (message.deviceStatus) { - default: - return "deviceStatus: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; + default: + return 'deviceStatus: enum value expected'; + case 0: + case 1: + case 2: + case 3: + break; } - if (message.salt != null && message.hasOwnProperty("salt")) { - if (!Array.isArray(message.salt)) - return "salt: array expected"; + if (message.salt != null && message.hasOwnProperty('salt')) { + if (!Array.isArray(message.salt)) return 'salt: array expected'; for (let i = 0; i < message.salt.length; ++i) { let error = $root.Authentication.Salt.verify(message.salt[i]); - if (error) - return "salt." + error; + if (error) return 'salt.' + error; } } - if (message.OBSOLETE_FIELD != null && message.hasOwnProperty("OBSOLETE_FIELD")) { - if (!Array.isArray(message.OBSOLETE_FIELD)) - return "OBSOLETE_FIELD: array expected"; + if (message.OBSOLETE_FIELD != null && message.hasOwnProperty('OBSOLETE_FIELD')) { + if (!Array.isArray(message.OBSOLETE_FIELD)) return 'OBSOLETE_FIELD: array expected'; for (let i = 0; i < message.OBSOLETE_FIELD.length; ++i) { let error = $root.Authentication.TwoFactorChannel.verify(message.OBSOLETE_FIELD[i]); - if (error) - return "OBSOLETE_FIELD." + error; + if (error) return 'OBSOLETE_FIELD.' + error; } } - if (message.ssoUserInfo != null && message.hasOwnProperty("ssoUserInfo")) { + if (message.ssoUserInfo != null && message.hasOwnProperty('ssoUserInfo')) { let error = $root.Authentication.SsoUserInfo.verify(message.ssoUserInfo); - if (error) - return "ssoUserInfo." + error; + if (error) return 'ssoUserInfo.' + error; } return null; }; @@ -6586,56 +6801,57 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.PreLoginResponse} PreLoginResponse */ PreLoginResponse.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.PreLoginResponse) - return object; + if (object instanceof $root.Authentication.PreLoginResponse) return object; let message = new $root.Authentication.PreLoginResponse(); switch (object.deviceStatus) { - default: - if (typeof object.deviceStatus === "number") { - message.deviceStatus = object.deviceStatus; - break; - } - break; - case "DEVICE_NEEDS_APPROVAL": - case 0: - message.deviceStatus = 0; - break; - case "DEVICE_OK": - case 1: - message.deviceStatus = 1; - break; - case "DEVICE_DISABLED_BY_USER": - case 2: - message.deviceStatus = 2; - break; - case "DEVICE_LOCKED_BY_ADMIN": - case 3: - message.deviceStatus = 3; - break; + default: + if (typeof object.deviceStatus === 'number') { + message.deviceStatus = object.deviceStatus; + break; + } + break; + case 'DEVICE_NEEDS_APPROVAL': + case 0: + message.deviceStatus = 0; + break; + case 'DEVICE_OK': + case 1: + message.deviceStatus = 1; + break; + case 'DEVICE_DISABLED_BY_USER': + case 2: + message.deviceStatus = 2; + break; + case 'DEVICE_LOCKED_BY_ADMIN': + case 3: + message.deviceStatus = 3; + break; } if (object.salt) { if (!Array.isArray(object.salt)) - throw TypeError(".Authentication.PreLoginResponse.salt: array expected"); + throw TypeError('.Authentication.PreLoginResponse.salt: array expected'); message.salt = []; for (let i = 0; i < object.salt.length; ++i) { - if (typeof object.salt[i] !== "object") - throw TypeError(".Authentication.PreLoginResponse.salt: object expected"); + if (typeof object.salt[i] !== 'object') + throw TypeError('.Authentication.PreLoginResponse.salt: object expected'); message.salt[i] = $root.Authentication.Salt.fromObject(object.salt[i]); } } if (object.OBSOLETE_FIELD) { if (!Array.isArray(object.OBSOLETE_FIELD)) - throw TypeError(".Authentication.PreLoginResponse.OBSOLETE_FIELD: array expected"); + throw TypeError('.Authentication.PreLoginResponse.OBSOLETE_FIELD: array expected'); message.OBSOLETE_FIELD = []; for (let i = 0; i < object.OBSOLETE_FIELD.length; ++i) { - if (typeof object.OBSOLETE_FIELD[i] !== "object") - throw TypeError(".Authentication.PreLoginResponse.OBSOLETE_FIELD: object expected"); - message.OBSOLETE_FIELD[i] = $root.Authentication.TwoFactorChannel.fromObject(object.OBSOLETE_FIELD[i]); + if (typeof object.OBSOLETE_FIELD[i] !== 'object') + throw TypeError('.Authentication.PreLoginResponse.OBSOLETE_FIELD: object expected'); + message.OBSOLETE_FIELD[i] = $root.Authentication.TwoFactorChannel.fromObject( + object.OBSOLETE_FIELD[i] + ); } } if (object.ssoUserInfo != null) { - if (typeof object.ssoUserInfo !== "object") - throw TypeError(".Authentication.PreLoginResponse.ssoUserInfo: object expected"); + if (typeof object.ssoUserInfo !== 'object') + throw TypeError('.Authentication.PreLoginResponse.ssoUserInfo: object expected'); message.ssoUserInfo = $root.Authentication.SsoUserInfo.fromObject(object.ssoUserInfo); } return message; @@ -6651,19 +6867,23 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ PreLoginResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.arrays || options.defaults) { object.salt = []; object.OBSOLETE_FIELD = []; } if (options.defaults) { - object.deviceStatus = options.enums === String ? "DEVICE_NEEDS_APPROVAL" : 0; + object.deviceStatus = options.enums === String ? 'DEVICE_NEEDS_APPROVAL' : 0; object.ssoUserInfo = null; } - if (message.deviceStatus != null && message.hasOwnProperty("deviceStatus")) - object.deviceStatus = options.enums === String ? $root.Authentication.DeviceStatus[message.deviceStatus] === undefined ? message.deviceStatus : $root.Authentication.DeviceStatus[message.deviceStatus] : message.deviceStatus; + if (message.deviceStatus != null && message.hasOwnProperty('deviceStatus')) + object.deviceStatus = + options.enums === String + ? $root.Authentication.DeviceStatus[message.deviceStatus] === undefined + ? message.deviceStatus + : $root.Authentication.DeviceStatus[message.deviceStatus] + : message.deviceStatus; if (message.salt && message.salt.length) { object.salt = []; for (let j = 0; j < message.salt.length; ++j) @@ -6672,9 +6892,12 @@ export const Authentication = $root.Authentication = (() => { if (message.OBSOLETE_FIELD && message.OBSOLETE_FIELD.length) { object.OBSOLETE_FIELD = []; for (let j = 0; j < message.OBSOLETE_FIELD.length; ++j) - object.OBSOLETE_FIELD[j] = $root.Authentication.TwoFactorChannel.toObject(message.OBSOLETE_FIELD[j], options); + object.OBSOLETE_FIELD[j] = $root.Authentication.TwoFactorChannel.toObject( + message.OBSOLETE_FIELD[j], + options + ); } - if (message.ssoUserInfo != null && message.hasOwnProperty("ssoUserInfo")) + if (message.ssoUserInfo != null && message.hasOwnProperty('ssoUserInfo')) object.ssoUserInfo = $root.Authentication.SsoUserInfo.toObject(message.ssoUserInfo, options); return object; }; @@ -6700,16 +6923,15 @@ export const Authentication = $root.Authentication = (() => { */ PreLoginResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.PreLoginResponse"; + return typeUrlPrefix + '/Authentication.PreLoginResponse'; }; return PreLoginResponse; })(); - Authentication.LoginAsUserRequest = (function() { - + Authentication.LoginAsUserRequest = (function () { /** * Properties of a LoginAsUserRequest. * @memberof Authentication @@ -6728,8 +6950,7 @@ export const Authentication = $root.Authentication = (() => { function LoginAsUserRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -6738,7 +6959,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.LoginAsUserRequest * @instance */ - LoginAsUserRequest.prototype.username = ""; + LoginAsUserRequest.prototype.username = ''; /** * Creates a new LoginAsUserRequest instance using the specified properties. @@ -6762,10 +6983,9 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ LoginAsUserRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.username != null && Object.hasOwnProperty.call(message, "username")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.username); + if (!writer) writer = $Writer.create(); + if (message.username != null && Object.hasOwnProperty.call(message, 'username')) + writer.uint32(/* id 1, wireType 2 =*/ 10).string(message.username); return writer; }; @@ -6794,19 +7014,19 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ LoginAsUserRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.LoginAsUserRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.LoginAsUserRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.username = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -6823,8 +7043,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ LoginAsUserRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -6837,11 +7056,9 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ LoginAsUserRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.username != null && message.hasOwnProperty("username")) - if (!$util.isString(message.username)) - return "username: string expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.username != null && message.hasOwnProperty('username')) + if (!$util.isString(message.username)) return 'username: string expected'; return null; }; @@ -6854,11 +7071,9 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.LoginAsUserRequest} LoginAsUserRequest */ LoginAsUserRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.LoginAsUserRequest) - return object; + if (object instanceof $root.Authentication.LoginAsUserRequest) return object; let message = new $root.Authentication.LoginAsUserRequest(); - if (object.username != null) - message.username = String(object.username); + if (object.username != null) message.username = String(object.username); return message; }; @@ -6872,13 +7087,10 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ LoginAsUserRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.defaults) - object.username = ""; - if (message.username != null && message.hasOwnProperty("username")) - object.username = message.username; + if (options.defaults) object.username = ''; + if (message.username != null && message.hasOwnProperty('username')) object.username = message.username; return object; }; @@ -6903,16 +7115,15 @@ export const Authentication = $root.Authentication = (() => { */ LoginAsUserRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.LoginAsUserRequest"; + return typeUrlPrefix + '/Authentication.LoginAsUserRequest'; }; return LoginAsUserRequest; })(); - Authentication.LoginAsUserResponse = (function() { - + Authentication.LoginAsUserResponse = (function () { /** * Properties of a LoginAsUserResponse. * @memberof Authentication @@ -6932,8 +7143,7 @@ export const Authentication = $root.Authentication = (() => { function LoginAsUserResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -6974,12 +7184,14 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ LoginAsUserResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.encryptedSessionToken != null && Object.hasOwnProperty.call(message, "encryptedSessionToken")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.encryptedSessionToken); - if (message.encryptedSharedAccountKey != null && Object.hasOwnProperty.call(message, "encryptedSharedAccountKey")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.encryptedSharedAccountKey); + if (!writer) writer = $Writer.create(); + if (message.encryptedSessionToken != null && Object.hasOwnProperty.call(message, 'encryptedSessionToken')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.encryptedSessionToken); + if ( + message.encryptedSharedAccountKey != null && + Object.hasOwnProperty.call(message, 'encryptedSharedAccountKey') + ) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.encryptedSharedAccountKey); return writer; }; @@ -7008,23 +7220,23 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ LoginAsUserResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.LoginAsUserResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.LoginAsUserResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.encryptedSessionToken = reader.bytes(); break; } - case 2: { + case 2: { message.encryptedSharedAccountKey = reader.bytes(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -7041,8 +7253,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ LoginAsUserResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -7055,14 +7266,24 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ LoginAsUserResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.encryptedSessionToken != null && message.hasOwnProperty("encryptedSessionToken")) - if (!(message.encryptedSessionToken && typeof message.encryptedSessionToken.length === "number" || $util.isString(message.encryptedSessionToken))) - return "encryptedSessionToken: buffer expected"; - if (message.encryptedSharedAccountKey != null && message.hasOwnProperty("encryptedSharedAccountKey")) - if (!(message.encryptedSharedAccountKey && typeof message.encryptedSharedAccountKey.length === "number" || $util.isString(message.encryptedSharedAccountKey))) - return "encryptedSharedAccountKey: buffer expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.encryptedSessionToken != null && message.hasOwnProperty('encryptedSessionToken')) + if ( + !( + (message.encryptedSessionToken && typeof message.encryptedSessionToken.length === 'number') || + $util.isString(message.encryptedSessionToken) + ) + ) + return 'encryptedSessionToken: buffer expected'; + if (message.encryptedSharedAccountKey != null && message.hasOwnProperty('encryptedSharedAccountKey')) + if ( + !( + (message.encryptedSharedAccountKey && + typeof message.encryptedSharedAccountKey.length === 'number') || + $util.isString(message.encryptedSharedAccountKey) + ) + ) + return 'encryptedSharedAccountKey: buffer expected'; return null; }; @@ -7075,17 +7296,28 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.LoginAsUserResponse} LoginAsUserResponse */ LoginAsUserResponse.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.LoginAsUserResponse) - return object; + if (object instanceof $root.Authentication.LoginAsUserResponse) return object; let message = new $root.Authentication.LoginAsUserResponse(); if (object.encryptedSessionToken != null) - if (typeof object.encryptedSessionToken === "string") - $util.base64.decode(object.encryptedSessionToken, message.encryptedSessionToken = $util.newBuffer($util.base64.length(object.encryptedSessionToken)), 0); + if (typeof object.encryptedSessionToken === 'string') + $util.base64.decode( + object.encryptedSessionToken, + (message.encryptedSessionToken = $util.newBuffer( + $util.base64.length(object.encryptedSessionToken) + )), + 0 + ); else if (object.encryptedSessionToken.length >= 0) message.encryptedSessionToken = object.encryptedSessionToken; if (object.encryptedSharedAccountKey != null) - if (typeof object.encryptedSharedAccountKey === "string") - $util.base64.decode(object.encryptedSharedAccountKey, message.encryptedSharedAccountKey = $util.newBuffer($util.base64.length(object.encryptedSharedAccountKey)), 0); + if (typeof object.encryptedSharedAccountKey === 'string') + $util.base64.decode( + object.encryptedSharedAccountKey, + (message.encryptedSharedAccountKey = $util.newBuffer( + $util.base64.length(object.encryptedSharedAccountKey) + )), + 0 + ); else if (object.encryptedSharedAccountKey.length >= 0) message.encryptedSharedAccountKey = object.encryptedSharedAccountKey; return message; @@ -7101,29 +7333,40 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ LoginAsUserResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.encryptedSessionToken = ""; + if (options.bytes === String) object.encryptedSessionToken = ''; else { object.encryptedSessionToken = []; if (options.bytes !== Array) object.encryptedSessionToken = $util.newBuffer(object.encryptedSessionToken); } - if (options.bytes === String) - object.encryptedSharedAccountKey = ""; + if (options.bytes === String) object.encryptedSharedAccountKey = ''; else { object.encryptedSharedAccountKey = []; if (options.bytes !== Array) object.encryptedSharedAccountKey = $util.newBuffer(object.encryptedSharedAccountKey); } } - if (message.encryptedSessionToken != null && message.hasOwnProperty("encryptedSessionToken")) - object.encryptedSessionToken = options.bytes === String ? $util.base64.encode(message.encryptedSessionToken, 0, message.encryptedSessionToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedSessionToken) : message.encryptedSessionToken; - if (message.encryptedSharedAccountKey != null && message.hasOwnProperty("encryptedSharedAccountKey")) - object.encryptedSharedAccountKey = options.bytes === String ? $util.base64.encode(message.encryptedSharedAccountKey, 0, message.encryptedSharedAccountKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedSharedAccountKey) : message.encryptedSharedAccountKey; + if (message.encryptedSessionToken != null && message.hasOwnProperty('encryptedSessionToken')) + object.encryptedSessionToken = + options.bytes === String + ? $util.base64.encode(message.encryptedSessionToken, 0, message.encryptedSessionToken.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.encryptedSessionToken) + : message.encryptedSessionToken; + if (message.encryptedSharedAccountKey != null && message.hasOwnProperty('encryptedSharedAccountKey')) + object.encryptedSharedAccountKey = + options.bytes === String + ? $util.base64.encode( + message.encryptedSharedAccountKey, + 0, + message.encryptedSharedAccountKey.length + ) + : options.bytes === Array + ? Array.prototype.slice.call(message.encryptedSharedAccountKey) + : message.encryptedSharedAccountKey; return object; }; @@ -7148,9 +7391,9 @@ export const Authentication = $root.Authentication = (() => { */ LoginAsUserResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.LoginAsUserResponse"; + return typeUrlPrefix + '/Authentication.LoginAsUserResponse'; }; return LoginAsUserResponse; @@ -7163,15 +7406,15 @@ export const Authentication = $root.Authentication = (() => { * @property {number} ENTERED=0 ENTERED value * @property {number} BIOMETRICS=1 BIOMETRICS value */ - Authentication.PasswordMethod = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "ENTERED"] = 0; - values[valuesById[1] = "BIOMETRICS"] = 1; + Authentication.PasswordMethod = (function () { + const valuesById = {}, + values = Object.create(valuesById); + values[(valuesById[0] = 'ENTERED')] = 0; + values[(valuesById[1] = 'BIOMETRICS')] = 1; return values; })(); - Authentication.ValidateAuthHashRequest = (function() { - + Authentication.ValidateAuthHashRequest = (function () { /** * Properties of a ValidateAuthHashRequest. * @memberof Authentication @@ -7192,8 +7435,7 @@ export const Authentication = $root.Authentication = (() => { function ValidateAuthHashRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -7242,14 +7484,13 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ ValidateAuthHashRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.passwordMethod != null && Object.hasOwnProperty.call(message, "passwordMethod")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.passwordMethod); - if (message.authResponse != null && Object.hasOwnProperty.call(message, "authResponse")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.authResponse); - if (message.encryptedLoginToken != null && Object.hasOwnProperty.call(message, "encryptedLoginToken")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.encryptedLoginToken); + if (!writer) writer = $Writer.create(); + if (message.passwordMethod != null && Object.hasOwnProperty.call(message, 'passwordMethod')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int32(message.passwordMethod); + if (message.authResponse != null && Object.hasOwnProperty.call(message, 'authResponse')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.authResponse); + if (message.encryptedLoginToken != null && Object.hasOwnProperty.call(message, 'encryptedLoginToken')) + writer.uint32(/* id 3, wireType 2 =*/ 26).bytes(message.encryptedLoginToken); return writer; }; @@ -7278,27 +7519,27 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ValidateAuthHashRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.ValidateAuthHashRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.ValidateAuthHashRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.passwordMethod = reader.int32(); break; } - case 2: { + case 2: { message.authResponse = reader.bytes(); break; } - case 3: { + case 3: { message.encryptedLoginToken = reader.bytes(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -7315,8 +7556,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ValidateAuthHashRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -7329,22 +7569,31 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ ValidateAuthHashRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.passwordMethod != null && message.hasOwnProperty("passwordMethod")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.passwordMethod != null && message.hasOwnProperty('passwordMethod')) switch (message.passwordMethod) { - default: - return "passwordMethod: enum value expected"; - case 0: - case 1: - break; + default: + return 'passwordMethod: enum value expected'; + case 0: + case 1: + break; } - if (message.authResponse != null && message.hasOwnProperty("authResponse")) - if (!(message.authResponse && typeof message.authResponse.length === "number" || $util.isString(message.authResponse))) - return "authResponse: buffer expected"; - if (message.encryptedLoginToken != null && message.hasOwnProperty("encryptedLoginToken")) - if (!(message.encryptedLoginToken && typeof message.encryptedLoginToken.length === "number" || $util.isString(message.encryptedLoginToken))) - return "encryptedLoginToken: buffer expected"; + if (message.authResponse != null && message.hasOwnProperty('authResponse')) + if ( + !( + (message.authResponse && typeof message.authResponse.length === 'number') || + $util.isString(message.authResponse) + ) + ) + return 'authResponse: buffer expected'; + if (message.encryptedLoginToken != null && message.hasOwnProperty('encryptedLoginToken')) + if ( + !( + (message.encryptedLoginToken && typeof message.encryptedLoginToken.length === 'number') || + $util.isString(message.encryptedLoginToken) + ) + ) + return 'encryptedLoginToken: buffer expected'; return null; }; @@ -7357,33 +7606,41 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.ValidateAuthHashRequest} ValidateAuthHashRequest */ ValidateAuthHashRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.ValidateAuthHashRequest) - return object; + if (object instanceof $root.Authentication.ValidateAuthHashRequest) return object; let message = new $root.Authentication.ValidateAuthHashRequest(); switch (object.passwordMethod) { - default: - if (typeof object.passwordMethod === "number") { - message.passwordMethod = object.passwordMethod; + default: + if (typeof object.passwordMethod === 'number') { + message.passwordMethod = object.passwordMethod; + break; + } + break; + case 'ENTERED': + case 0: + message.passwordMethod = 0; + break; + case 'BIOMETRICS': + case 1: + message.passwordMethod = 1; break; - } - break; - case "ENTERED": - case 0: - message.passwordMethod = 0; - break; - case "BIOMETRICS": - case 1: - message.passwordMethod = 1; - break; } if (object.authResponse != null) - if (typeof object.authResponse === "string") - $util.base64.decode(object.authResponse, message.authResponse = $util.newBuffer($util.base64.length(object.authResponse)), 0); - else if (object.authResponse.length >= 0) - message.authResponse = object.authResponse; + if (typeof object.authResponse === 'string') + $util.base64.decode( + object.authResponse, + (message.authResponse = $util.newBuffer($util.base64.length(object.authResponse))), + 0 + ); + else if (object.authResponse.length >= 0) message.authResponse = object.authResponse; if (object.encryptedLoginToken != null) - if (typeof object.encryptedLoginToken === "string") - $util.base64.decode(object.encryptedLoginToken, message.encryptedLoginToken = $util.newBuffer($util.base64.length(object.encryptedLoginToken)), 0); + if (typeof object.encryptedLoginToken === 'string') + $util.base64.decode( + object.encryptedLoginToken, + (message.encryptedLoginToken = $util.newBuffer( + $util.base64.length(object.encryptedLoginToken) + )), + 0 + ); else if (object.encryptedLoginToken.length >= 0) message.encryptedLoginToken = object.encryptedLoginToken; return message; @@ -7399,32 +7656,43 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ ValidateAuthHashRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - object.passwordMethod = options.enums === String ? "ENTERED" : 0; - if (options.bytes === String) - object.authResponse = ""; + object.passwordMethod = options.enums === String ? 'ENTERED' : 0; + if (options.bytes === String) object.authResponse = ''; else { object.authResponse = []; - if (options.bytes !== Array) - object.authResponse = $util.newBuffer(object.authResponse); + if (options.bytes !== Array) object.authResponse = $util.newBuffer(object.authResponse); } - if (options.bytes === String) - object.encryptedLoginToken = ""; + if (options.bytes === String) object.encryptedLoginToken = ''; else { object.encryptedLoginToken = []; if (options.bytes !== Array) object.encryptedLoginToken = $util.newBuffer(object.encryptedLoginToken); } } - if (message.passwordMethod != null && message.hasOwnProperty("passwordMethod")) - object.passwordMethod = options.enums === String ? $root.Authentication.PasswordMethod[message.passwordMethod] === undefined ? message.passwordMethod : $root.Authentication.PasswordMethod[message.passwordMethod] : message.passwordMethod; - if (message.authResponse != null && message.hasOwnProperty("authResponse")) - object.authResponse = options.bytes === String ? $util.base64.encode(message.authResponse, 0, message.authResponse.length) : options.bytes === Array ? Array.prototype.slice.call(message.authResponse) : message.authResponse; - if (message.encryptedLoginToken != null && message.hasOwnProperty("encryptedLoginToken")) - object.encryptedLoginToken = options.bytes === String ? $util.base64.encode(message.encryptedLoginToken, 0, message.encryptedLoginToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedLoginToken) : message.encryptedLoginToken; + if (message.passwordMethod != null && message.hasOwnProperty('passwordMethod')) + object.passwordMethod = + options.enums === String + ? $root.Authentication.PasswordMethod[message.passwordMethod] === undefined + ? message.passwordMethod + : $root.Authentication.PasswordMethod[message.passwordMethod] + : message.passwordMethod; + if (message.authResponse != null && message.hasOwnProperty('authResponse')) + object.authResponse = + options.bytes === String + ? $util.base64.encode(message.authResponse, 0, message.authResponse.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.authResponse) + : message.authResponse; + if (message.encryptedLoginToken != null && message.hasOwnProperty('encryptedLoginToken')) + object.encryptedLoginToken = + options.bytes === String + ? $util.base64.encode(message.encryptedLoginToken, 0, message.encryptedLoginToken.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.encryptedLoginToken) + : message.encryptedLoginToken; return object; }; @@ -7449,9 +7717,9 @@ export const Authentication = $root.Authentication = (() => { */ ValidateAuthHashRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.ValidateAuthHashRequest"; + return typeUrlPrefix + '/Authentication.ValidateAuthHashRequest'; }; return ValidateAuthHashRequest; @@ -7469,15 +7737,16 @@ export const Authentication = $root.Authentication = (() => { * @property {number} TWO_FA_PUSH_DUO_CALL=5 TWO_FA_PUSH_DUO_CALL value * @property {number} TWO_FA_PUSH_DNA=6 TWO_FA_PUSH_DNA value */ - Authentication.TwoFactorPushType = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "TWO_FA_PUSH_NONE"] = 0; - values[valuesById[1] = "TWO_FA_PUSH_SMS"] = 1; - values[valuesById[2] = "TWO_FA_PUSH_KEEPER"] = 2; - values[valuesById[3] = "TWO_FA_PUSH_DUO_PUSH"] = 3; - values[valuesById[4] = "TWO_FA_PUSH_DUO_TEXT"] = 4; - values[valuesById[5] = "TWO_FA_PUSH_DUO_CALL"] = 5; - values[valuesById[6] = "TWO_FA_PUSH_DNA"] = 6; + Authentication.TwoFactorPushType = (function () { + const valuesById = {}, + values = Object.create(valuesById); + values[(valuesById[0] = 'TWO_FA_PUSH_NONE')] = 0; + values[(valuesById[1] = 'TWO_FA_PUSH_SMS')] = 1; + values[(valuesById[2] = 'TWO_FA_PUSH_KEEPER')] = 2; + values[(valuesById[3] = 'TWO_FA_PUSH_DUO_PUSH')] = 3; + values[(valuesById[4] = 'TWO_FA_PUSH_DUO_TEXT')] = 4; + values[(valuesById[5] = 'TWO_FA_PUSH_DUO_CALL')] = 5; + values[(valuesById[6] = 'TWO_FA_PUSH_DNA')] = 6; return values; })(); @@ -7494,16 +7763,17 @@ export const Authentication = $root.Authentication = (() => { * @property {number} TWO_FA_RESP_WEBAUTHN=6 TWO_FA_RESP_WEBAUTHN value * @property {number} TWO_FA_CODE_DNA=7 TWO_FA_CODE_DNA value */ - Authentication.TwoFactorValueType = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "TWO_FA_CODE_NONE"] = 0; - values[valuesById[1] = "TWO_FA_CODE_TOTP"] = 1; - values[valuesById[2] = "TWO_FA_CODE_SMS"] = 2; - values[valuesById[3] = "TWO_FA_CODE_DUO"] = 3; - values[valuesById[4] = "TWO_FA_CODE_RSA"] = 4; - values[valuesById[5] = "TWO_FA_RESP_U2F"] = 5; - values[valuesById[6] = "TWO_FA_RESP_WEBAUTHN"] = 6; - values[valuesById[7] = "TWO_FA_CODE_DNA"] = 7; + Authentication.TwoFactorValueType = (function () { + const valuesById = {}, + values = Object.create(valuesById); + values[(valuesById[0] = 'TWO_FA_CODE_NONE')] = 0; + values[(valuesById[1] = 'TWO_FA_CODE_TOTP')] = 1; + values[(valuesById[2] = 'TWO_FA_CODE_SMS')] = 2; + values[(valuesById[3] = 'TWO_FA_CODE_DUO')] = 3; + values[(valuesById[4] = 'TWO_FA_CODE_RSA')] = 4; + values[(valuesById[5] = 'TWO_FA_RESP_U2F')] = 5; + values[(valuesById[6] = 'TWO_FA_RESP_WEBAUTHN')] = 6; + values[(valuesById[7] = 'TWO_FA_CODE_DNA')] = 7; return values; })(); @@ -7522,23 +7792,23 @@ export const Authentication = $root.Authentication = (() => { * @property {number} TWO_FA_CT_KEEPER=8 TWO_FA_CT_KEEPER value * @property {number} TWO_FA_CT_DNA=9 TWO_FA_CT_DNA value */ - Authentication.TwoFactorChannelType = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "TWO_FA_CT_NONE"] = 0; - values[valuesById[1] = "TWO_FA_CT_TOTP"] = 1; - values[valuesById[2] = "TWO_FA_CT_SMS"] = 2; - values[valuesById[3] = "TWO_FA_CT_DUO"] = 3; - values[valuesById[4] = "TWO_FA_CT_RSA"] = 4; - values[valuesById[5] = "TWO_FA_CT_BACKUP"] = 5; - values[valuesById[6] = "TWO_FA_CT_U2F"] = 6; - values[valuesById[7] = "TWO_FA_CT_WEBAUTHN"] = 7; - values[valuesById[8] = "TWO_FA_CT_KEEPER"] = 8; - values[valuesById[9] = "TWO_FA_CT_DNA"] = 9; + Authentication.TwoFactorChannelType = (function () { + const valuesById = {}, + values = Object.create(valuesById); + values[(valuesById[0] = 'TWO_FA_CT_NONE')] = 0; + values[(valuesById[1] = 'TWO_FA_CT_TOTP')] = 1; + values[(valuesById[2] = 'TWO_FA_CT_SMS')] = 2; + values[(valuesById[3] = 'TWO_FA_CT_DUO')] = 3; + values[(valuesById[4] = 'TWO_FA_CT_RSA')] = 4; + values[(valuesById[5] = 'TWO_FA_CT_BACKUP')] = 5; + values[(valuesById[6] = 'TWO_FA_CT_U2F')] = 6; + values[(valuesById[7] = 'TWO_FA_CT_WEBAUTHN')] = 7; + values[(valuesById[8] = 'TWO_FA_CT_KEEPER')] = 8; + values[(valuesById[9] = 'TWO_FA_CT_DNA')] = 9; return values; })(); - Authentication.TwoFactorChannelInfo = (function() { - + Authentication.TwoFactorChannelInfo = (function () { /** * Properties of a TwoFactorChannelInfo. * @memberof Authentication @@ -7566,8 +7836,7 @@ export const Authentication = $root.Authentication = (() => { this.capabilities = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -7592,7 +7861,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.TwoFactorChannelInfo * @instance */ - TwoFactorChannelInfo.prototype.channelName = ""; + TwoFactorChannelInfo.prototype.channelName = ''; /** * TwoFactorChannelInfo challenge. @@ -7600,7 +7869,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.TwoFactorChannelInfo * @instance */ - TwoFactorChannelInfo.prototype.challenge = ""; + TwoFactorChannelInfo.prototype.challenge = ''; /** * TwoFactorChannelInfo capabilities. @@ -7616,7 +7885,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.TwoFactorChannelInfo * @instance */ - TwoFactorChannelInfo.prototype.phoneNumber = ""; + TwoFactorChannelInfo.prototype.phoneNumber = ''; /** * TwoFactorChannelInfo maxExpiration. @@ -7632,7 +7901,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.TwoFactorChannelInfo * @instance */ - TwoFactorChannelInfo.prototype.createdOn = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + TwoFactorChannelInfo.prototype.createdOn = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * TwoFactorChannelInfo lastFrequency. @@ -7664,27 +7933,26 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ TwoFactorChannelInfo.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.channelType != null && Object.hasOwnProperty.call(message, "channelType")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.channelType); - if (message.channelUid != null && Object.hasOwnProperty.call(message, "channelUid")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.channelUid); - if (message.channelName != null && Object.hasOwnProperty.call(message, "channelName")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.channelName); - if (message.challenge != null && Object.hasOwnProperty.call(message, "challenge")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.challenge); + if (!writer) writer = $Writer.create(); + if (message.channelType != null && Object.hasOwnProperty.call(message, 'channelType')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int32(message.channelType); + if (message.channelUid != null && Object.hasOwnProperty.call(message, 'channelUid')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.channelUid); + if (message.channelName != null && Object.hasOwnProperty.call(message, 'channelName')) + writer.uint32(/* id 3, wireType 2 =*/ 26).string(message.channelName); + if (message.challenge != null && Object.hasOwnProperty.call(message, 'challenge')) + writer.uint32(/* id 4, wireType 2 =*/ 34).string(message.challenge); if (message.capabilities != null && message.capabilities.length) for (let i = 0; i < message.capabilities.length; ++i) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.capabilities[i]); - if (message.phoneNumber != null && Object.hasOwnProperty.call(message, "phoneNumber")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.phoneNumber); - if (message.maxExpiration != null && Object.hasOwnProperty.call(message, "maxExpiration")) - writer.uint32(/* id 7, wireType 0 =*/56).int32(message.maxExpiration); - if (message.createdOn != null && Object.hasOwnProperty.call(message, "createdOn")) - writer.uint32(/* id 8, wireType 0 =*/64).int64(message.createdOn); - if (message.lastFrequency != null && Object.hasOwnProperty.call(message, "lastFrequency")) - writer.uint32(/* id 9, wireType 0 =*/72).int32(message.lastFrequency); + writer.uint32(/* id 5, wireType 2 =*/ 42).string(message.capabilities[i]); + if (message.phoneNumber != null && Object.hasOwnProperty.call(message, 'phoneNumber')) + writer.uint32(/* id 6, wireType 2 =*/ 50).string(message.phoneNumber); + if (message.maxExpiration != null && Object.hasOwnProperty.call(message, 'maxExpiration')) + writer.uint32(/* id 7, wireType 0 =*/ 56).int32(message.maxExpiration); + if (message.createdOn != null && Object.hasOwnProperty.call(message, 'createdOn')) + writer.uint32(/* id 8, wireType 0 =*/ 64).int64(message.createdOn); + if (message.lastFrequency != null && Object.hasOwnProperty.call(message, 'lastFrequency')) + writer.uint32(/* id 9, wireType 0 =*/ 72).int32(message.lastFrequency); return writer; }; @@ -7713,53 +7981,52 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ TwoFactorChannelInfo.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.TwoFactorChannelInfo(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.TwoFactorChannelInfo(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.channelType = reader.int32(); break; } - case 2: { + case 2: { message.channelUid = reader.bytes(); break; } - case 3: { + case 3: { message.channelName = reader.string(); break; } - case 4: { + case 4: { message.challenge = reader.string(); break; } - case 5: { - if (!(message.capabilities && message.capabilities.length)) - message.capabilities = []; + case 5: { + if (!(message.capabilities && message.capabilities.length)) message.capabilities = []; message.capabilities.push(reader.string()); break; } - case 6: { + case 6: { message.phoneNumber = reader.string(); break; } - case 7: { + case 7: { message.maxExpiration = reader.int32(); break; } - case 8: { + case 8: { message.createdOn = reader.int64(); break; } - case 9: { + case 9: { message.lastFrequency = reader.int32(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -7776,8 +8043,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ TwoFactorChannelInfo.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -7790,69 +8056,75 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ TwoFactorChannelInfo.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.channelType != null && message.hasOwnProperty("channelType")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.channelType != null && message.hasOwnProperty('channelType')) switch (message.channelType) { - default: - return "channelType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - break; + default: + return 'channelType: enum value expected'; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + break; } - if (message.channelUid != null && message.hasOwnProperty("channelUid")) - if (!(message.channelUid && typeof message.channelUid.length === "number" || $util.isString(message.channelUid))) - return "channelUid: buffer expected"; - if (message.channelName != null && message.hasOwnProperty("channelName")) - if (!$util.isString(message.channelName)) - return "channelName: string expected"; - if (message.challenge != null && message.hasOwnProperty("challenge")) - if (!$util.isString(message.challenge)) - return "challenge: string expected"; - if (message.capabilities != null && message.hasOwnProperty("capabilities")) { - if (!Array.isArray(message.capabilities)) - return "capabilities: array expected"; + if (message.channelUid != null && message.hasOwnProperty('channelUid')) + if ( + !( + (message.channelUid && typeof message.channelUid.length === 'number') || + $util.isString(message.channelUid) + ) + ) + return 'channelUid: buffer expected'; + if (message.channelName != null && message.hasOwnProperty('channelName')) + if (!$util.isString(message.channelName)) return 'channelName: string expected'; + if (message.challenge != null && message.hasOwnProperty('challenge')) + if (!$util.isString(message.challenge)) return 'challenge: string expected'; + if (message.capabilities != null && message.hasOwnProperty('capabilities')) { + if (!Array.isArray(message.capabilities)) return 'capabilities: array expected'; for (let i = 0; i < message.capabilities.length; ++i) - if (!$util.isString(message.capabilities[i])) - return "capabilities: string[] expected"; + if (!$util.isString(message.capabilities[i])) return 'capabilities: string[] expected'; } - if (message.phoneNumber != null && message.hasOwnProperty("phoneNumber")) - if (!$util.isString(message.phoneNumber)) - return "phoneNumber: string expected"; - if (message.maxExpiration != null && message.hasOwnProperty("maxExpiration")) + if (message.phoneNumber != null && message.hasOwnProperty('phoneNumber')) + if (!$util.isString(message.phoneNumber)) return 'phoneNumber: string expected'; + if (message.maxExpiration != null && message.hasOwnProperty('maxExpiration')) switch (message.maxExpiration) { - default: - return "maxExpiration: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - break; + default: + return 'maxExpiration: enum value expected'; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + break; } - if (message.createdOn != null && message.hasOwnProperty("createdOn")) - if (!$util.isInteger(message.createdOn) && !(message.createdOn && $util.isInteger(message.createdOn.low) && $util.isInteger(message.createdOn.high))) - return "createdOn: integer|Long expected"; - if (message.lastFrequency != null && message.hasOwnProperty("lastFrequency")) + if (message.createdOn != null && message.hasOwnProperty('createdOn')) + if ( + !$util.isInteger(message.createdOn) && + !( + message.createdOn && + $util.isInteger(message.createdOn.low) && + $util.isInteger(message.createdOn.high) + ) + ) + return 'createdOn: integer|Long expected'; + if (message.lastFrequency != null && message.hasOwnProperty('lastFrequency')) switch (message.lastFrequency) { - default: - return "lastFrequency: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - break; + default: + return 'lastFrequency: enum value expected'; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + break; } return null; }; @@ -7866,147 +8138,146 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.TwoFactorChannelInfo} TwoFactorChannelInfo */ TwoFactorChannelInfo.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.TwoFactorChannelInfo) - return object; + if (object instanceof $root.Authentication.TwoFactorChannelInfo) return object; let message = new $root.Authentication.TwoFactorChannelInfo(); switch (object.channelType) { - default: - if (typeof object.channelType === "number") { - message.channelType = object.channelType; - break; - } - break; - case "TWO_FA_CT_NONE": - case 0: - message.channelType = 0; - break; - case "TWO_FA_CT_TOTP": - case 1: - message.channelType = 1; - break; - case "TWO_FA_CT_SMS": - case 2: - message.channelType = 2; - break; - case "TWO_FA_CT_DUO": - case 3: - message.channelType = 3; - break; - case "TWO_FA_CT_RSA": - case 4: - message.channelType = 4; - break; - case "TWO_FA_CT_BACKUP": - case 5: - message.channelType = 5; - break; - case "TWO_FA_CT_U2F": - case 6: - message.channelType = 6; - break; - case "TWO_FA_CT_WEBAUTHN": - case 7: - message.channelType = 7; - break; - case "TWO_FA_CT_KEEPER": - case 8: - message.channelType = 8; - break; - case "TWO_FA_CT_DNA": - case 9: - message.channelType = 9; - break; + default: + if (typeof object.channelType === 'number') { + message.channelType = object.channelType; + break; + } + break; + case 'TWO_FA_CT_NONE': + case 0: + message.channelType = 0; + break; + case 'TWO_FA_CT_TOTP': + case 1: + message.channelType = 1; + break; + case 'TWO_FA_CT_SMS': + case 2: + message.channelType = 2; + break; + case 'TWO_FA_CT_DUO': + case 3: + message.channelType = 3; + break; + case 'TWO_FA_CT_RSA': + case 4: + message.channelType = 4; + break; + case 'TWO_FA_CT_BACKUP': + case 5: + message.channelType = 5; + break; + case 'TWO_FA_CT_U2F': + case 6: + message.channelType = 6; + break; + case 'TWO_FA_CT_WEBAUTHN': + case 7: + message.channelType = 7; + break; + case 'TWO_FA_CT_KEEPER': + case 8: + message.channelType = 8; + break; + case 'TWO_FA_CT_DNA': + case 9: + message.channelType = 9; + break; } if (object.channelUid != null) - if (typeof object.channelUid === "string") - $util.base64.decode(object.channelUid, message.channelUid = $util.newBuffer($util.base64.length(object.channelUid)), 0); - else if (object.channelUid.length >= 0) - message.channelUid = object.channelUid; - if (object.channelName != null) - message.channelName = String(object.channelName); - if (object.challenge != null) - message.challenge = String(object.challenge); + if (typeof object.channelUid === 'string') + $util.base64.decode( + object.channelUid, + (message.channelUid = $util.newBuffer($util.base64.length(object.channelUid))), + 0 + ); + else if (object.channelUid.length >= 0) message.channelUid = object.channelUid; + if (object.channelName != null) message.channelName = String(object.channelName); + if (object.challenge != null) message.challenge = String(object.challenge); if (object.capabilities) { if (!Array.isArray(object.capabilities)) - throw TypeError(".Authentication.TwoFactorChannelInfo.capabilities: array expected"); + throw TypeError('.Authentication.TwoFactorChannelInfo.capabilities: array expected'); message.capabilities = []; for (let i = 0; i < object.capabilities.length; ++i) message.capabilities[i] = String(object.capabilities[i]); } - if (object.phoneNumber != null) - message.phoneNumber = String(object.phoneNumber); + if (object.phoneNumber != null) message.phoneNumber = String(object.phoneNumber); switch (object.maxExpiration) { - default: - if (typeof object.maxExpiration === "number") { - message.maxExpiration = object.maxExpiration; - break; - } - break; - case "TWO_FA_EXP_IMMEDIATELY": - case 0: - message.maxExpiration = 0; - break; - case "TWO_FA_EXP_5_MINUTES": - case 1: - message.maxExpiration = 1; - break; - case "TWO_FA_EXP_12_HOURS": - case 2: - message.maxExpiration = 2; - break; - case "TWO_FA_EXP_24_HOURS": - case 3: - message.maxExpiration = 3; - break; - case "TWO_FA_EXP_30_DAYS": - case 4: - message.maxExpiration = 4; - break; - case "TWO_FA_EXP_NEVER": - case 5: - message.maxExpiration = 5; - break; + default: + if (typeof object.maxExpiration === 'number') { + message.maxExpiration = object.maxExpiration; + break; + } + break; + case 'TWO_FA_EXP_IMMEDIATELY': + case 0: + message.maxExpiration = 0; + break; + case 'TWO_FA_EXP_5_MINUTES': + case 1: + message.maxExpiration = 1; + break; + case 'TWO_FA_EXP_12_HOURS': + case 2: + message.maxExpiration = 2; + break; + case 'TWO_FA_EXP_24_HOURS': + case 3: + message.maxExpiration = 3; + break; + case 'TWO_FA_EXP_30_DAYS': + case 4: + message.maxExpiration = 4; + break; + case 'TWO_FA_EXP_NEVER': + case 5: + message.maxExpiration = 5; + break; } if (object.createdOn != null) - if ($util.Long) - (message.createdOn = $util.Long.fromValue(object.createdOn)).unsigned = false; - else if (typeof object.createdOn === "string") - message.createdOn = parseInt(object.createdOn, 10); - else if (typeof object.createdOn === "number") - message.createdOn = object.createdOn; - else if (typeof object.createdOn === "object") - message.createdOn = new $util.LongBits(object.createdOn.low >>> 0, object.createdOn.high >>> 0).toNumber(); + if ($util.Long) (message.createdOn = $util.Long.fromValue(object.createdOn)).unsigned = false; + else if (typeof object.createdOn === 'string') message.createdOn = parseInt(object.createdOn, 10); + else if (typeof object.createdOn === 'number') message.createdOn = object.createdOn; + else if (typeof object.createdOn === 'object') + message.createdOn = new $util.LongBits( + object.createdOn.low >>> 0, + object.createdOn.high >>> 0 + ).toNumber(); switch (object.lastFrequency) { - default: - if (typeof object.lastFrequency === "number") { - message.lastFrequency = object.lastFrequency; - break; - } - break; - case "TWO_FA_EXP_IMMEDIATELY": - case 0: - message.lastFrequency = 0; - break; - case "TWO_FA_EXP_5_MINUTES": - case 1: - message.lastFrequency = 1; - break; - case "TWO_FA_EXP_12_HOURS": - case 2: - message.lastFrequency = 2; - break; - case "TWO_FA_EXP_24_HOURS": - case 3: - message.lastFrequency = 3; - break; - case "TWO_FA_EXP_30_DAYS": - case 4: - message.lastFrequency = 4; - break; - case "TWO_FA_EXP_NEVER": - case 5: - message.lastFrequency = 5; - break; + default: + if (typeof object.lastFrequency === 'number') { + message.lastFrequency = object.lastFrequency; + break; + } + break; + case 'TWO_FA_EXP_IMMEDIATELY': + case 0: + message.lastFrequency = 0; + break; + case 'TWO_FA_EXP_5_MINUTES': + case 1: + message.lastFrequency = 1; + break; + case 'TWO_FA_EXP_12_HOURS': + case 2: + message.lastFrequency = 2; + break; + case 'TWO_FA_EXP_24_HOURS': + case 3: + message.lastFrequency = 3; + break; + case 'TWO_FA_EXP_30_DAYS': + case 4: + message.lastFrequency = 4; + break; + case 'TWO_FA_EXP_NEVER': + case 5: + message.lastFrequency = 5; + break; } return message; }; @@ -8021,55 +8292,74 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ TwoFactorChannelInfo.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.capabilities = []; + if (options.arrays || options.defaults) object.capabilities = []; if (options.defaults) { - object.channelType = options.enums === String ? "TWO_FA_CT_NONE" : 0; - if (options.bytes === String) - object.channelUid = ""; + object.channelType = options.enums === String ? 'TWO_FA_CT_NONE' : 0; + if (options.bytes === String) object.channelUid = ''; else { object.channelUid = []; - if (options.bytes !== Array) - object.channelUid = $util.newBuffer(object.channelUid); + if (options.bytes !== Array) object.channelUid = $util.newBuffer(object.channelUid); } - object.channelName = ""; - object.challenge = ""; - object.phoneNumber = ""; - object.maxExpiration = options.enums === String ? "TWO_FA_EXP_IMMEDIATELY" : 0; + object.channelName = ''; + object.challenge = ''; + object.phoneNumber = ''; + object.maxExpiration = options.enums === String ? 'TWO_FA_EXP_IMMEDIATELY' : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.createdOn = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.createdOn = options.longs === String ? "0" : 0; - object.lastFrequency = options.enums === String ? "TWO_FA_EXP_IMMEDIATELY" : 0; - } - if (message.channelType != null && message.hasOwnProperty("channelType")) - object.channelType = options.enums === String ? $root.Authentication.TwoFactorChannelType[message.channelType] === undefined ? message.channelType : $root.Authentication.TwoFactorChannelType[message.channelType] : message.channelType; - if (message.channelUid != null && message.hasOwnProperty("channelUid")) - object.channelUid = options.bytes === String ? $util.base64.encode(message.channelUid, 0, message.channelUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.channelUid) : message.channelUid; - if (message.channelName != null && message.hasOwnProperty("channelName")) + object.createdOn = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.createdOn = options.longs === String ? '0' : 0; + object.lastFrequency = options.enums === String ? 'TWO_FA_EXP_IMMEDIATELY' : 0; + } + if (message.channelType != null && message.hasOwnProperty('channelType')) + object.channelType = + options.enums === String + ? $root.Authentication.TwoFactorChannelType[message.channelType] === undefined + ? message.channelType + : $root.Authentication.TwoFactorChannelType[message.channelType] + : message.channelType; + if (message.channelUid != null && message.hasOwnProperty('channelUid')) + object.channelUid = + options.bytes === String + ? $util.base64.encode(message.channelUid, 0, message.channelUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.channelUid) + : message.channelUid; + if (message.channelName != null && message.hasOwnProperty('channelName')) object.channelName = message.channelName; - if (message.challenge != null && message.hasOwnProperty("challenge")) - object.challenge = message.challenge; + if (message.challenge != null && message.hasOwnProperty('challenge')) object.challenge = message.challenge; if (message.capabilities && message.capabilities.length) { object.capabilities = []; - for (let j = 0; j < message.capabilities.length; ++j) - object.capabilities[j] = message.capabilities[j]; + for (let j = 0; j < message.capabilities.length; ++j) object.capabilities[j] = message.capabilities[j]; } - if (message.phoneNumber != null && message.hasOwnProperty("phoneNumber")) + if (message.phoneNumber != null && message.hasOwnProperty('phoneNumber')) object.phoneNumber = message.phoneNumber; - if (message.maxExpiration != null && message.hasOwnProperty("maxExpiration")) - object.maxExpiration = options.enums === String ? $root.Authentication.TwoFactorExpiration[message.maxExpiration] === undefined ? message.maxExpiration : $root.Authentication.TwoFactorExpiration[message.maxExpiration] : message.maxExpiration; - if (message.createdOn != null && message.hasOwnProperty("createdOn")) - if (typeof message.createdOn === "number") + if (message.maxExpiration != null && message.hasOwnProperty('maxExpiration')) + object.maxExpiration = + options.enums === String + ? $root.Authentication.TwoFactorExpiration[message.maxExpiration] === undefined + ? message.maxExpiration + : $root.Authentication.TwoFactorExpiration[message.maxExpiration] + : message.maxExpiration; + if (message.createdOn != null && message.hasOwnProperty('createdOn')) + if (typeof message.createdOn === 'number') object.createdOn = options.longs === String ? String(message.createdOn) : message.createdOn; else - object.createdOn = options.longs === String ? $util.Long.prototype.toString.call(message.createdOn) : options.longs === Number ? new $util.LongBits(message.createdOn.low >>> 0, message.createdOn.high >>> 0).toNumber() : message.createdOn; - if (message.lastFrequency != null && message.hasOwnProperty("lastFrequency")) - object.lastFrequency = options.enums === String ? $root.Authentication.TwoFactorExpiration[message.lastFrequency] === undefined ? message.lastFrequency : $root.Authentication.TwoFactorExpiration[message.lastFrequency] : message.lastFrequency; + object.createdOn = + options.longs === String + ? $util.Long.prototype.toString.call(message.createdOn) + : options.longs === Number + ? new $util.LongBits(message.createdOn.low >>> 0, message.createdOn.high >>> 0).toNumber() + : message.createdOn; + if (message.lastFrequency != null && message.hasOwnProperty('lastFrequency')) + object.lastFrequency = + options.enums === String + ? $root.Authentication.TwoFactorExpiration[message.lastFrequency] === undefined + ? message.lastFrequency + : $root.Authentication.TwoFactorExpiration[message.lastFrequency] + : message.lastFrequency; return object; }; @@ -8094,9 +8384,9 @@ export const Authentication = $root.Authentication = (() => { */ TwoFactorChannelInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.TwoFactorChannelInfo"; + return typeUrlPrefix + '/Authentication.TwoFactorChannelInfo'; }; return TwoFactorChannelInfo; @@ -8113,19 +8403,19 @@ export const Authentication = $root.Authentication = (() => { * @property {number} TWO_FA_EXP_30_DAYS=4 TWO_FA_EXP_30_DAYS value * @property {number} TWO_FA_EXP_NEVER=5 TWO_FA_EXP_NEVER value */ - Authentication.TwoFactorExpiration = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "TWO_FA_EXP_IMMEDIATELY"] = 0; - values[valuesById[1] = "TWO_FA_EXP_5_MINUTES"] = 1; - values[valuesById[2] = "TWO_FA_EXP_12_HOURS"] = 2; - values[valuesById[3] = "TWO_FA_EXP_24_HOURS"] = 3; - values[valuesById[4] = "TWO_FA_EXP_30_DAYS"] = 4; - values[valuesById[5] = "TWO_FA_EXP_NEVER"] = 5; + Authentication.TwoFactorExpiration = (function () { + const valuesById = {}, + values = Object.create(valuesById); + values[(valuesById[0] = 'TWO_FA_EXP_IMMEDIATELY')] = 0; + values[(valuesById[1] = 'TWO_FA_EXP_5_MINUTES')] = 1; + values[(valuesById[2] = 'TWO_FA_EXP_12_HOURS')] = 2; + values[(valuesById[3] = 'TWO_FA_EXP_24_HOURS')] = 3; + values[(valuesById[4] = 'TWO_FA_EXP_30_DAYS')] = 4; + values[(valuesById[5] = 'TWO_FA_EXP_NEVER')] = 5; return values; })(); - Authentication.TwoFactorDuoStatus = (function() { - + Authentication.TwoFactorDuoStatus = (function () { /** * Properties of a TwoFactorDuoStatus. * @memberof Authentication @@ -8148,8 +8438,7 @@ export const Authentication = $root.Authentication = (() => { this.capabilities = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -8166,7 +8455,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.TwoFactorDuoStatus * @instance */ - TwoFactorDuoStatus.prototype.phoneNumber = ""; + TwoFactorDuoStatus.prototype.phoneNumber = ''; /** * TwoFactorDuoStatus enrollUrl. @@ -8174,7 +8463,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.TwoFactorDuoStatus * @instance */ - TwoFactorDuoStatus.prototype.enrollUrl = ""; + TwoFactorDuoStatus.prototype.enrollUrl = ''; /** * TwoFactorDuoStatus message. @@ -8182,7 +8471,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.TwoFactorDuoStatus * @instance */ - TwoFactorDuoStatus.prototype.message = ""; + TwoFactorDuoStatus.prototype.message = ''; /** * Creates a new TwoFactorDuoStatus instance using the specified properties. @@ -8206,17 +8495,16 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ TwoFactorDuoStatus.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.capabilities != null && message.capabilities.length) for (let i = 0; i < message.capabilities.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.capabilities[i]); - if (message.phoneNumber != null && Object.hasOwnProperty.call(message, "phoneNumber")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.phoneNumber); - if (message.enrollUrl != null && Object.hasOwnProperty.call(message, "enrollUrl")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.enrollUrl); - if (message.message != null && Object.hasOwnProperty.call(message, "message")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.message); + writer.uint32(/* id 1, wireType 2 =*/ 10).string(message.capabilities[i]); + if (message.phoneNumber != null && Object.hasOwnProperty.call(message, 'phoneNumber')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.phoneNumber); + if (message.enrollUrl != null && Object.hasOwnProperty.call(message, 'enrollUrl')) + writer.uint32(/* id 3, wireType 2 =*/ 26).string(message.enrollUrl); + if (message.message != null && Object.hasOwnProperty.call(message, 'message')) + writer.uint32(/* id 4, wireType 2 =*/ 34).string(message.message); return writer; }; @@ -8245,33 +8533,32 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ TwoFactorDuoStatus.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.TwoFactorDuoStatus(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.TwoFactorDuoStatus(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (!(message.capabilities && message.capabilities.length)) - message.capabilities = []; + case 1: { + if (!(message.capabilities && message.capabilities.length)) message.capabilities = []; message.capabilities.push(reader.string()); break; } - case 2: { + case 2: { message.phoneNumber = reader.string(); break; } - case 3: { + case 3: { message.enrollUrl = reader.string(); break; } - case 4: { + case 4: { message.message = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -8288,8 +8575,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ TwoFactorDuoStatus.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -8302,24 +8588,18 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ TwoFactorDuoStatus.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.capabilities != null && message.hasOwnProperty("capabilities")) { - if (!Array.isArray(message.capabilities)) - return "capabilities: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.capabilities != null && message.hasOwnProperty('capabilities')) { + if (!Array.isArray(message.capabilities)) return 'capabilities: array expected'; for (let i = 0; i < message.capabilities.length; ++i) - if (!$util.isString(message.capabilities[i])) - return "capabilities: string[] expected"; + if (!$util.isString(message.capabilities[i])) return 'capabilities: string[] expected'; } - if (message.phoneNumber != null && message.hasOwnProperty("phoneNumber")) - if (!$util.isString(message.phoneNumber)) - return "phoneNumber: string expected"; - if (message.enrollUrl != null && message.hasOwnProperty("enrollUrl")) - if (!$util.isString(message.enrollUrl)) - return "enrollUrl: string expected"; - if (message.message != null && message.hasOwnProperty("message")) - if (!$util.isString(message.message)) - return "message: string expected"; + if (message.phoneNumber != null && message.hasOwnProperty('phoneNumber')) + if (!$util.isString(message.phoneNumber)) return 'phoneNumber: string expected'; + if (message.enrollUrl != null && message.hasOwnProperty('enrollUrl')) + if (!$util.isString(message.enrollUrl)) return 'enrollUrl: string expected'; + if (message.message != null && message.hasOwnProperty('message')) + if (!$util.isString(message.message)) return 'message: string expected'; return null; }; @@ -8332,22 +8612,18 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.TwoFactorDuoStatus} TwoFactorDuoStatus */ TwoFactorDuoStatus.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.TwoFactorDuoStatus) - return object; + if (object instanceof $root.Authentication.TwoFactorDuoStatus) return object; let message = new $root.Authentication.TwoFactorDuoStatus(); if (object.capabilities) { if (!Array.isArray(object.capabilities)) - throw TypeError(".Authentication.TwoFactorDuoStatus.capabilities: array expected"); + throw TypeError('.Authentication.TwoFactorDuoStatus.capabilities: array expected'); message.capabilities = []; for (let i = 0; i < object.capabilities.length; ++i) message.capabilities[i] = String(object.capabilities[i]); } - if (object.phoneNumber != null) - message.phoneNumber = String(object.phoneNumber); - if (object.enrollUrl != null) - message.enrollUrl = String(object.enrollUrl); - if (object.message != null) - message.message = String(object.message); + if (object.phoneNumber != null) message.phoneNumber = String(object.phoneNumber); + if (object.enrollUrl != null) message.enrollUrl = String(object.enrollUrl); + if (object.message != null) message.message = String(object.message); return message; }; @@ -8361,27 +8637,22 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ TwoFactorDuoStatus.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.capabilities = []; + if (options.arrays || options.defaults) object.capabilities = []; if (options.defaults) { - object.phoneNumber = ""; - object.enrollUrl = ""; - object.message = ""; + object.phoneNumber = ''; + object.enrollUrl = ''; + object.message = ''; } if (message.capabilities && message.capabilities.length) { object.capabilities = []; - for (let j = 0; j < message.capabilities.length; ++j) - object.capabilities[j] = message.capabilities[j]; + for (let j = 0; j < message.capabilities.length; ++j) object.capabilities[j] = message.capabilities[j]; } - if (message.phoneNumber != null && message.hasOwnProperty("phoneNumber")) + if (message.phoneNumber != null && message.hasOwnProperty('phoneNumber')) object.phoneNumber = message.phoneNumber; - if (message.enrollUrl != null && message.hasOwnProperty("enrollUrl")) - object.enrollUrl = message.enrollUrl; - if (message.message != null && message.hasOwnProperty("message")) - object.message = message.message; + if (message.enrollUrl != null && message.hasOwnProperty('enrollUrl')) object.enrollUrl = message.enrollUrl; + if (message.message != null && message.hasOwnProperty('message')) object.message = message.message; return object; }; @@ -8406,16 +8677,15 @@ export const Authentication = $root.Authentication = (() => { */ TwoFactorDuoStatus.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.TwoFactorDuoStatus"; + return typeUrlPrefix + '/Authentication.TwoFactorDuoStatus'; }; return TwoFactorDuoStatus; })(); - Authentication.TwoFactorAddRequest = (function() { - + Authentication.TwoFactorAddRequest = (function () { /** * Properties of a TwoFactorAddRequest. * @memberof Authentication @@ -8438,8 +8708,7 @@ export const Authentication = $root.Authentication = (() => { function TwoFactorAddRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -8464,7 +8733,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.TwoFactorAddRequest * @instance */ - TwoFactorAddRequest.prototype.channelName = ""; + TwoFactorAddRequest.prototype.channelName = ''; /** * TwoFactorAddRequest phoneNumber. @@ -8472,7 +8741,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.TwoFactorAddRequest * @instance */ - TwoFactorAddRequest.prototype.phoneNumber = ""; + TwoFactorAddRequest.prototype.phoneNumber = ''; /** * TwoFactorAddRequest duoPushType. @@ -8504,18 +8773,17 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ TwoFactorAddRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.channelType != null && Object.hasOwnProperty.call(message, "channelType")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.channelType); - if (message.channelUid != null && Object.hasOwnProperty.call(message, "channelUid")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.channelUid); - if (message.channelName != null && Object.hasOwnProperty.call(message, "channelName")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.channelName); - if (message.phoneNumber != null && Object.hasOwnProperty.call(message, "phoneNumber")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.phoneNumber); - if (message.duoPushType != null && Object.hasOwnProperty.call(message, "duoPushType")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.duoPushType); + if (!writer) writer = $Writer.create(); + if (message.channelType != null && Object.hasOwnProperty.call(message, 'channelType')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int32(message.channelType); + if (message.channelUid != null && Object.hasOwnProperty.call(message, 'channelUid')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.channelUid); + if (message.channelName != null && Object.hasOwnProperty.call(message, 'channelName')) + writer.uint32(/* id 3, wireType 2 =*/ 26).string(message.channelName); + if (message.phoneNumber != null && Object.hasOwnProperty.call(message, 'phoneNumber')) + writer.uint32(/* id 4, wireType 2 =*/ 34).string(message.phoneNumber); + if (message.duoPushType != null && Object.hasOwnProperty.call(message, 'duoPushType')) + writer.uint32(/* id 5, wireType 0 =*/ 40).int32(message.duoPushType); return writer; }; @@ -8544,35 +8812,35 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ TwoFactorAddRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.TwoFactorAddRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.TwoFactorAddRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.channelType = reader.int32(); break; } - case 2: { + case 2: { message.channelUid = reader.bytes(); break; } - case 3: { + case 3: { message.channelName = reader.string(); break; } - case 4: { + case 4: { message.phoneNumber = reader.string(); break; } - case 5: { + case 5: { message.duoPushType = reader.int32(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -8589,8 +8857,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ TwoFactorAddRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -8603,153 +8870,155 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ TwoFactorAddRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.channelType != null && message.hasOwnProperty("channelType")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.channelType != null && message.hasOwnProperty('channelType')) switch (message.channelType) { + default: + return 'channelType: enum value expected'; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + break; + } + if (message.channelUid != null && message.hasOwnProperty('channelUid')) + if ( + !( + (message.channelUid && typeof message.channelUid.length === 'number') || + $util.isString(message.channelUid) + ) + ) + return 'channelUid: buffer expected'; + if (message.channelName != null && message.hasOwnProperty('channelName')) + if (!$util.isString(message.channelName)) return 'channelName: string expected'; + if (message.phoneNumber != null && message.hasOwnProperty('phoneNumber')) + if (!$util.isString(message.phoneNumber)) return 'phoneNumber: string expected'; + if (message.duoPushType != null && message.hasOwnProperty('duoPushType')) + switch (message.duoPushType) { + default: + return 'duoPushType: enum value expected'; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + break; + } + return null; + }; + + /** + * Creates a TwoFactorAddRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof Authentication.TwoFactorAddRequest + * @static + * @param {Object.} object Plain object + * @returns {Authentication.TwoFactorAddRequest} TwoFactorAddRequest + */ + TwoFactorAddRequest.fromObject = function fromObject(object) { + if (object instanceof $root.Authentication.TwoFactorAddRequest) return object; + let message = new $root.Authentication.TwoFactorAddRequest(); + switch (object.channelType) { default: - return "channelType: enum value expected"; + if (typeof object.channelType === 'number') { + message.channelType = object.channelType; + break; + } + break; + case 'TWO_FA_CT_NONE': case 0: + message.channelType = 0; + break; + case 'TWO_FA_CT_TOTP': case 1: + message.channelType = 1; + break; + case 'TWO_FA_CT_SMS': case 2: + message.channelType = 2; + break; + case 'TWO_FA_CT_DUO': case 3: + message.channelType = 3; + break; + case 'TWO_FA_CT_RSA': case 4: + message.channelType = 4; + break; + case 'TWO_FA_CT_BACKUP': case 5: + message.channelType = 5; + break; + case 'TWO_FA_CT_U2F': case 6: + message.channelType = 6; + break; + case 'TWO_FA_CT_WEBAUTHN': case 7: + message.channelType = 7; + break; + case 'TWO_FA_CT_KEEPER': case 8: + message.channelType = 8; + break; + case 'TWO_FA_CT_DNA': case 9: + message.channelType = 9; break; - } - if (message.channelUid != null && message.hasOwnProperty("channelUid")) - if (!(message.channelUid && typeof message.channelUid.length === "number" || $util.isString(message.channelUid))) - return "channelUid: buffer expected"; - if (message.channelName != null && message.hasOwnProperty("channelName")) - if (!$util.isString(message.channelName)) - return "channelName: string expected"; - if (message.phoneNumber != null && message.hasOwnProperty("phoneNumber")) - if (!$util.isString(message.phoneNumber)) - return "phoneNumber: string expected"; - if (message.duoPushType != null && message.hasOwnProperty("duoPushType")) - switch (message.duoPushType) { + } + if (object.channelUid != null) + if (typeof object.channelUid === 'string') + $util.base64.decode( + object.channelUid, + (message.channelUid = $util.newBuffer($util.base64.length(object.channelUid))), + 0 + ); + else if (object.channelUid.length >= 0) message.channelUid = object.channelUid; + if (object.channelName != null) message.channelName = String(object.channelName); + if (object.phoneNumber != null) message.phoneNumber = String(object.phoneNumber); + switch (object.duoPushType) { default: - return "duoPushType: enum value expected"; + if (typeof object.duoPushType === 'number') { + message.duoPushType = object.duoPushType; + break; + } + break; + case 'TWO_FA_PUSH_NONE': case 0: + message.duoPushType = 0; + break; + case 'TWO_FA_PUSH_SMS': case 1: + message.duoPushType = 1; + break; + case 'TWO_FA_PUSH_KEEPER': case 2: + message.duoPushType = 2; + break; + case 'TWO_FA_PUSH_DUO_PUSH': case 3: + message.duoPushType = 3; + break; + case 'TWO_FA_PUSH_DUO_TEXT': case 4: + message.duoPushType = 4; + break; + case 'TWO_FA_PUSH_DUO_CALL': case 5: + message.duoPushType = 5; + break; + case 'TWO_FA_PUSH_DNA': case 6: + message.duoPushType = 6; break; - } - return null; - }; - - /** - * Creates a TwoFactorAddRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof Authentication.TwoFactorAddRequest - * @static - * @param {Object.} object Plain object - * @returns {Authentication.TwoFactorAddRequest} TwoFactorAddRequest - */ - TwoFactorAddRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.TwoFactorAddRequest) - return object; - let message = new $root.Authentication.TwoFactorAddRequest(); - switch (object.channelType) { - default: - if (typeof object.channelType === "number") { - message.channelType = object.channelType; - break; - } - break; - case "TWO_FA_CT_NONE": - case 0: - message.channelType = 0; - break; - case "TWO_FA_CT_TOTP": - case 1: - message.channelType = 1; - break; - case "TWO_FA_CT_SMS": - case 2: - message.channelType = 2; - break; - case "TWO_FA_CT_DUO": - case 3: - message.channelType = 3; - break; - case "TWO_FA_CT_RSA": - case 4: - message.channelType = 4; - break; - case "TWO_FA_CT_BACKUP": - case 5: - message.channelType = 5; - break; - case "TWO_FA_CT_U2F": - case 6: - message.channelType = 6; - break; - case "TWO_FA_CT_WEBAUTHN": - case 7: - message.channelType = 7; - break; - case "TWO_FA_CT_KEEPER": - case 8: - message.channelType = 8; - break; - case "TWO_FA_CT_DNA": - case 9: - message.channelType = 9; - break; - } - if (object.channelUid != null) - if (typeof object.channelUid === "string") - $util.base64.decode(object.channelUid, message.channelUid = $util.newBuffer($util.base64.length(object.channelUid)), 0); - else if (object.channelUid.length >= 0) - message.channelUid = object.channelUid; - if (object.channelName != null) - message.channelName = String(object.channelName); - if (object.phoneNumber != null) - message.phoneNumber = String(object.phoneNumber); - switch (object.duoPushType) { - default: - if (typeof object.duoPushType === "number") { - message.duoPushType = object.duoPushType; - break; - } - break; - case "TWO_FA_PUSH_NONE": - case 0: - message.duoPushType = 0; - break; - case "TWO_FA_PUSH_SMS": - case 1: - message.duoPushType = 1; - break; - case "TWO_FA_PUSH_KEEPER": - case 2: - message.duoPushType = 2; - break; - case "TWO_FA_PUSH_DUO_PUSH": - case 3: - message.duoPushType = 3; - break; - case "TWO_FA_PUSH_DUO_TEXT": - case 4: - message.duoPushType = 4; - break; - case "TWO_FA_PUSH_DUO_CALL": - case 5: - message.duoPushType = 5; - break; - case "TWO_FA_PUSH_DNA": - case 6: - message.duoPushType = 6; - break; } return message; }; @@ -8764,32 +9033,44 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ TwoFactorAddRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - object.channelType = options.enums === String ? "TWO_FA_CT_NONE" : 0; - if (options.bytes === String) - object.channelUid = ""; + object.channelType = options.enums === String ? 'TWO_FA_CT_NONE' : 0; + if (options.bytes === String) object.channelUid = ''; else { object.channelUid = []; - if (options.bytes !== Array) - object.channelUid = $util.newBuffer(object.channelUid); - } - object.channelName = ""; - object.phoneNumber = ""; - object.duoPushType = options.enums === String ? "TWO_FA_PUSH_NONE" : 0; - } - if (message.channelType != null && message.hasOwnProperty("channelType")) - object.channelType = options.enums === String ? $root.Authentication.TwoFactorChannelType[message.channelType] === undefined ? message.channelType : $root.Authentication.TwoFactorChannelType[message.channelType] : message.channelType; - if (message.channelUid != null && message.hasOwnProperty("channelUid")) - object.channelUid = options.bytes === String ? $util.base64.encode(message.channelUid, 0, message.channelUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.channelUid) : message.channelUid; - if (message.channelName != null && message.hasOwnProperty("channelName")) + if (options.bytes !== Array) object.channelUid = $util.newBuffer(object.channelUid); + } + object.channelName = ''; + object.phoneNumber = ''; + object.duoPushType = options.enums === String ? 'TWO_FA_PUSH_NONE' : 0; + } + if (message.channelType != null && message.hasOwnProperty('channelType')) + object.channelType = + options.enums === String + ? $root.Authentication.TwoFactorChannelType[message.channelType] === undefined + ? message.channelType + : $root.Authentication.TwoFactorChannelType[message.channelType] + : message.channelType; + if (message.channelUid != null && message.hasOwnProperty('channelUid')) + object.channelUid = + options.bytes === String + ? $util.base64.encode(message.channelUid, 0, message.channelUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.channelUid) + : message.channelUid; + if (message.channelName != null && message.hasOwnProperty('channelName')) object.channelName = message.channelName; - if (message.phoneNumber != null && message.hasOwnProperty("phoneNumber")) + if (message.phoneNumber != null && message.hasOwnProperty('phoneNumber')) object.phoneNumber = message.phoneNumber; - if (message.duoPushType != null && message.hasOwnProperty("duoPushType")) - object.duoPushType = options.enums === String ? $root.Authentication.TwoFactorPushType[message.duoPushType] === undefined ? message.duoPushType : $root.Authentication.TwoFactorPushType[message.duoPushType] : message.duoPushType; + if (message.duoPushType != null && message.hasOwnProperty('duoPushType')) + object.duoPushType = + options.enums === String + ? $root.Authentication.TwoFactorPushType[message.duoPushType] === undefined + ? message.duoPushType + : $root.Authentication.TwoFactorPushType[message.duoPushType] + : message.duoPushType; return object; }; @@ -8814,16 +9095,15 @@ export const Authentication = $root.Authentication = (() => { */ TwoFactorAddRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.TwoFactorAddRequest"; + return typeUrlPrefix + '/Authentication.TwoFactorAddRequest'; }; return TwoFactorAddRequest; })(); - Authentication.TwoFactorRenameRequest = (function() { - + Authentication.TwoFactorRenameRequest = (function () { /** * Properties of a TwoFactorRenameRequest. * @memberof Authentication @@ -8843,8 +9123,7 @@ export const Authentication = $root.Authentication = (() => { function TwoFactorRenameRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -8861,7 +9140,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.TwoFactorRenameRequest * @instance */ - TwoFactorRenameRequest.prototype.channelName = ""; + TwoFactorRenameRequest.prototype.channelName = ''; /** * Creates a new TwoFactorRenameRequest instance using the specified properties. @@ -8885,12 +9164,11 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ TwoFactorRenameRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.channelUid != null && Object.hasOwnProperty.call(message, "channelUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.channelUid); - if (message.channelName != null && Object.hasOwnProperty.call(message, "channelName")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.channelName); + if (!writer) writer = $Writer.create(); + if (message.channelUid != null && Object.hasOwnProperty.call(message, 'channelUid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.channelUid); + if (message.channelName != null && Object.hasOwnProperty.call(message, 'channelName')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.channelName); return writer; }; @@ -8919,23 +9197,23 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ TwoFactorRenameRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.TwoFactorRenameRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.TwoFactorRenameRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.channelUid = reader.bytes(); break; } - case 2: { + case 2: { message.channelName = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -8952,8 +9230,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ TwoFactorRenameRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -8966,14 +9243,17 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ TwoFactorRenameRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.channelUid != null && message.hasOwnProperty("channelUid")) - if (!(message.channelUid && typeof message.channelUid.length === "number" || $util.isString(message.channelUid))) - return "channelUid: buffer expected"; - if (message.channelName != null && message.hasOwnProperty("channelName")) - if (!$util.isString(message.channelName)) - return "channelName: string expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.channelUid != null && message.hasOwnProperty('channelUid')) + if ( + !( + (message.channelUid && typeof message.channelUid.length === 'number') || + $util.isString(message.channelUid) + ) + ) + return 'channelUid: buffer expected'; + if (message.channelName != null && message.hasOwnProperty('channelName')) + if (!$util.isString(message.channelName)) return 'channelName: string expected'; return null; }; @@ -8986,16 +9266,17 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.TwoFactorRenameRequest} TwoFactorRenameRequest */ TwoFactorRenameRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.TwoFactorRenameRequest) - return object; + if (object instanceof $root.Authentication.TwoFactorRenameRequest) return object; let message = new $root.Authentication.TwoFactorRenameRequest(); if (object.channelUid != null) - if (typeof object.channelUid === "string") - $util.base64.decode(object.channelUid, message.channelUid = $util.newBuffer($util.base64.length(object.channelUid)), 0); - else if (object.channelUid.length >= 0) - message.channelUid = object.channelUid; - if (object.channelName != null) - message.channelName = String(object.channelName); + if (typeof object.channelUid === 'string') + $util.base64.decode( + object.channelUid, + (message.channelUid = $util.newBuffer($util.base64.length(object.channelUid))), + 0 + ); + else if (object.channelUid.length >= 0) message.channelUid = object.channelUid; + if (object.channelName != null) message.channelName = String(object.channelName); return message; }; @@ -9009,22 +9290,24 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ TwoFactorRenameRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.channelUid = ""; + if (options.bytes === String) object.channelUid = ''; else { object.channelUid = []; - if (options.bytes !== Array) - object.channelUid = $util.newBuffer(object.channelUid); - } - object.channelName = ""; - } - if (message.channelUid != null && message.hasOwnProperty("channelUid")) - object.channelUid = options.bytes === String ? $util.base64.encode(message.channelUid, 0, message.channelUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.channelUid) : message.channelUid; - if (message.channelName != null && message.hasOwnProperty("channelName")) + if (options.bytes !== Array) object.channelUid = $util.newBuffer(object.channelUid); + } + object.channelName = ''; + } + if (message.channelUid != null && message.hasOwnProperty('channelUid')) + object.channelUid = + options.bytes === String + ? $util.base64.encode(message.channelUid, 0, message.channelUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.channelUid) + : message.channelUid; + if (message.channelName != null && message.hasOwnProperty('channelName')) object.channelName = message.channelName; return object; }; @@ -9050,16 +9333,15 @@ export const Authentication = $root.Authentication = (() => { */ TwoFactorRenameRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.TwoFactorRenameRequest"; + return typeUrlPrefix + '/Authentication.TwoFactorRenameRequest'; }; return TwoFactorRenameRequest; })(); - Authentication.TwoFactorAddResponse = (function() { - + Authentication.TwoFactorAddResponse = (function () { /** * Properties of a TwoFactorAddResponse. * @memberof Authentication @@ -9080,8 +9362,7 @@ export const Authentication = $root.Authentication = (() => { this.backupKeys = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -9090,7 +9371,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.TwoFactorAddResponse * @instance */ - TwoFactorAddResponse.prototype.challenge = ""; + TwoFactorAddResponse.prototype.challenge = ''; /** * TwoFactorAddResponse backupKeys. @@ -9122,13 +9403,12 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ TwoFactorAddResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.challenge != null && Object.hasOwnProperty.call(message, "challenge")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.challenge); + if (!writer) writer = $Writer.create(); + if (message.challenge != null && Object.hasOwnProperty.call(message, 'challenge')) + writer.uint32(/* id 1, wireType 2 =*/ 10).string(message.challenge); if (message.backupKeys != null && message.backupKeys.length) for (let i = 0; i < message.backupKeys.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.backupKeys[i]); + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.backupKeys[i]); return writer; }; @@ -9157,25 +9437,24 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ TwoFactorAddResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.TwoFactorAddResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.TwoFactorAddResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.challenge = reader.string(); break; } - case 2: { - if (!(message.backupKeys && message.backupKeys.length)) - message.backupKeys = []; + case 2: { + if (!(message.backupKeys && message.backupKeys.length)) message.backupKeys = []; message.backupKeys.push(reader.string()); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -9192,8 +9471,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ TwoFactorAddResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -9206,17 +9484,13 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ TwoFactorAddResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.challenge != null && message.hasOwnProperty("challenge")) - if (!$util.isString(message.challenge)) - return "challenge: string expected"; - if (message.backupKeys != null && message.hasOwnProperty("backupKeys")) { - if (!Array.isArray(message.backupKeys)) - return "backupKeys: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.challenge != null && message.hasOwnProperty('challenge')) + if (!$util.isString(message.challenge)) return 'challenge: string expected'; + if (message.backupKeys != null && message.hasOwnProperty('backupKeys')) { + if (!Array.isArray(message.backupKeys)) return 'backupKeys: array expected'; for (let i = 0; i < message.backupKeys.length; ++i) - if (!$util.isString(message.backupKeys[i])) - return "backupKeys: string[] expected"; + if (!$util.isString(message.backupKeys[i])) return 'backupKeys: string[] expected'; } return null; }; @@ -9230,17 +9504,14 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.TwoFactorAddResponse} TwoFactorAddResponse */ TwoFactorAddResponse.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.TwoFactorAddResponse) - return object; + if (object instanceof $root.Authentication.TwoFactorAddResponse) return object; let message = new $root.Authentication.TwoFactorAddResponse(); - if (object.challenge != null) - message.challenge = String(object.challenge); + if (object.challenge != null) message.challenge = String(object.challenge); if (object.backupKeys) { if (!Array.isArray(object.backupKeys)) - throw TypeError(".Authentication.TwoFactorAddResponse.backupKeys: array expected"); + throw TypeError('.Authentication.TwoFactorAddResponse.backupKeys: array expected'); message.backupKeys = []; - for (let i = 0; i < object.backupKeys.length; ++i) - message.backupKeys[i] = String(object.backupKeys[i]); + for (let i = 0; i < object.backupKeys.length; ++i) message.backupKeys[i] = String(object.backupKeys[i]); } return message; }; @@ -9255,19 +9526,14 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ TwoFactorAddResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.backupKeys = []; - if (options.defaults) - object.challenge = ""; - if (message.challenge != null && message.hasOwnProperty("challenge")) - object.challenge = message.challenge; + if (options.arrays || options.defaults) object.backupKeys = []; + if (options.defaults) object.challenge = ''; + if (message.challenge != null && message.hasOwnProperty('challenge')) object.challenge = message.challenge; if (message.backupKeys && message.backupKeys.length) { object.backupKeys = []; - for (let j = 0; j < message.backupKeys.length; ++j) - object.backupKeys[j] = message.backupKeys[j]; + for (let j = 0; j < message.backupKeys.length; ++j) object.backupKeys[j] = message.backupKeys[j]; } return object; }; @@ -9293,16 +9559,15 @@ export const Authentication = $root.Authentication = (() => { */ TwoFactorAddResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.TwoFactorAddResponse"; + return typeUrlPrefix + '/Authentication.TwoFactorAddResponse'; }; return TwoFactorAddResponse; })(); - Authentication.TwoFactorDeleteRequest = (function() { - + Authentication.TwoFactorDeleteRequest = (function () { /** * Properties of a TwoFactorDeleteRequest. * @memberof Authentication @@ -9321,8 +9586,7 @@ export const Authentication = $root.Authentication = (() => { function TwoFactorDeleteRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -9355,10 +9619,9 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ TwoFactorDeleteRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.channelUid != null && Object.hasOwnProperty.call(message, "channelUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.channelUid); + if (!writer) writer = $Writer.create(); + if (message.channelUid != null && Object.hasOwnProperty.call(message, 'channelUid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.channelUid); return writer; }; @@ -9387,19 +9650,19 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ TwoFactorDeleteRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.TwoFactorDeleteRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.TwoFactorDeleteRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.channelUid = reader.bytes(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -9416,8 +9679,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ TwoFactorDeleteRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -9430,11 +9692,15 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ TwoFactorDeleteRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.channelUid != null && message.hasOwnProperty("channelUid")) - if (!(message.channelUid && typeof message.channelUid.length === "number" || $util.isString(message.channelUid))) - return "channelUid: buffer expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.channelUid != null && message.hasOwnProperty('channelUid')) + if ( + !( + (message.channelUid && typeof message.channelUid.length === 'number') || + $util.isString(message.channelUid) + ) + ) + return 'channelUid: buffer expected'; return null; }; @@ -9447,14 +9713,16 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.TwoFactorDeleteRequest} TwoFactorDeleteRequest */ TwoFactorDeleteRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.TwoFactorDeleteRequest) - return object; + if (object instanceof $root.Authentication.TwoFactorDeleteRequest) return object; let message = new $root.Authentication.TwoFactorDeleteRequest(); if (object.channelUid != null) - if (typeof object.channelUid === "string") - $util.base64.decode(object.channelUid, message.channelUid = $util.newBuffer($util.base64.length(object.channelUid)), 0); - else if (object.channelUid.length >= 0) - message.channelUid = object.channelUid; + if (typeof object.channelUid === 'string') + $util.base64.decode( + object.channelUid, + (message.channelUid = $util.newBuffer($util.base64.length(object.channelUid))), + 0 + ); + else if (object.channelUid.length >= 0) message.channelUid = object.channelUid; return message; }; @@ -9468,19 +9736,21 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ TwoFactorDeleteRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) - if (options.bytes === String) - object.channelUid = ""; + if (options.bytes === String) object.channelUid = ''; else { object.channelUid = []; - if (options.bytes !== Array) - object.channelUid = $util.newBuffer(object.channelUid); + if (options.bytes !== Array) object.channelUid = $util.newBuffer(object.channelUid); } - if (message.channelUid != null && message.hasOwnProperty("channelUid")) - object.channelUid = options.bytes === String ? $util.base64.encode(message.channelUid, 0, message.channelUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.channelUid) : message.channelUid; + if (message.channelUid != null && message.hasOwnProperty('channelUid')) + object.channelUid = + options.bytes === String + ? $util.base64.encode(message.channelUid, 0, message.channelUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.channelUid) + : message.channelUid; return object; }; @@ -9505,16 +9775,15 @@ export const Authentication = $root.Authentication = (() => { */ TwoFactorDeleteRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.TwoFactorDeleteRequest"; + return typeUrlPrefix + '/Authentication.TwoFactorDeleteRequest'; }; return TwoFactorDeleteRequest; })(); - Authentication.TwoFactorListResponse = (function() { - + Authentication.TwoFactorListResponse = (function () { /** * Properties of a TwoFactorListResponse. * @memberof Authentication @@ -9535,8 +9804,7 @@ export const Authentication = $root.Authentication = (() => { this.channels = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -9553,7 +9821,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.TwoFactorListResponse * @instance */ - TwoFactorListResponse.prototype.expireOn = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + TwoFactorListResponse.prototype.expireOn = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * Creates a new TwoFactorListResponse instance using the specified properties. @@ -9577,13 +9845,15 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ TwoFactorListResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.channels != null && message.channels.length) for (let i = 0; i < message.channels.length; ++i) - $root.Authentication.TwoFactorChannelInfo.encode(message.channels[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.expireOn != null && Object.hasOwnProperty.call(message, "expireOn")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.expireOn); + $root.Authentication.TwoFactorChannelInfo.encode( + message.channels[i], + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); + if (message.expireOn != null && Object.hasOwnProperty.call(message, 'expireOn')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int64(message.expireOn); return writer; }; @@ -9612,25 +9882,26 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ TwoFactorListResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.TwoFactorListResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.TwoFactorListResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (!(message.channels && message.channels.length)) - message.channels = []; - message.channels.push($root.Authentication.TwoFactorChannelInfo.decode(reader, reader.uint32())); + case 1: { + if (!(message.channels && message.channels.length)) message.channels = []; + message.channels.push( + $root.Authentication.TwoFactorChannelInfo.decode(reader, reader.uint32()) + ); break; } - case 2: { + case 2: { message.expireOn = reader.int64(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -9647,8 +9918,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ TwoFactorListResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -9661,20 +9931,24 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ TwoFactorListResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.channels != null && message.hasOwnProperty("channels")) { - if (!Array.isArray(message.channels)) - return "channels: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.channels != null && message.hasOwnProperty('channels')) { + if (!Array.isArray(message.channels)) return 'channels: array expected'; for (let i = 0; i < message.channels.length; ++i) { let error = $root.Authentication.TwoFactorChannelInfo.verify(message.channels[i]); - if (error) - return "channels." + error; + if (error) return 'channels.' + error; } } - if (message.expireOn != null && message.hasOwnProperty("expireOn")) - if (!$util.isInteger(message.expireOn) && !(message.expireOn && $util.isInteger(message.expireOn.low) && $util.isInteger(message.expireOn.high))) - return "expireOn: integer|Long expected"; + if (message.expireOn != null && message.hasOwnProperty('expireOn')) + if ( + !$util.isInteger(message.expireOn) && + !( + message.expireOn && + $util.isInteger(message.expireOn.low) && + $util.isInteger(message.expireOn.high) + ) + ) + return 'expireOn: integer|Long expected'; return null; }; @@ -9687,28 +9961,27 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.TwoFactorListResponse} TwoFactorListResponse */ TwoFactorListResponse.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.TwoFactorListResponse) - return object; + if (object instanceof $root.Authentication.TwoFactorListResponse) return object; let message = new $root.Authentication.TwoFactorListResponse(); if (object.channels) { if (!Array.isArray(object.channels)) - throw TypeError(".Authentication.TwoFactorListResponse.channels: array expected"); + throw TypeError('.Authentication.TwoFactorListResponse.channels: array expected'); message.channels = []; for (let i = 0; i < object.channels.length; ++i) { - if (typeof object.channels[i] !== "object") - throw TypeError(".Authentication.TwoFactorListResponse.channels: object expected"); + if (typeof object.channels[i] !== 'object') + throw TypeError('.Authentication.TwoFactorListResponse.channels: object expected'); message.channels[i] = $root.Authentication.TwoFactorChannelInfo.fromObject(object.channels[i]); } } if (object.expireOn != null) - if ($util.Long) - (message.expireOn = $util.Long.fromValue(object.expireOn)).unsigned = false; - else if (typeof object.expireOn === "string") - message.expireOn = parseInt(object.expireOn, 10); - else if (typeof object.expireOn === "number") - message.expireOn = object.expireOn; - else if (typeof object.expireOn === "object") - message.expireOn = new $util.LongBits(object.expireOn.low >>> 0, object.expireOn.high >>> 0).toNumber(); + if ($util.Long) (message.expireOn = $util.Long.fromValue(object.expireOn)).unsigned = false; + else if (typeof object.expireOn === 'string') message.expireOn = parseInt(object.expireOn, 10); + else if (typeof object.expireOn === 'number') message.expireOn = object.expireOn; + else if (typeof object.expireOn === 'object') + message.expireOn = new $util.LongBits( + object.expireOn.low >>> 0, + object.expireOn.high >>> 0 + ).toNumber(); return message; }; @@ -9722,27 +9995,33 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ TwoFactorListResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.channels = []; + if (options.arrays || options.defaults) object.channels = []; if (options.defaults) if ($util.Long) { let long = new $util.Long(0, 0, false); - object.expireOn = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.expireOn = options.longs === String ? "0" : 0; + object.expireOn = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.expireOn = options.longs === String ? '0' : 0; if (message.channels && message.channels.length) { object.channels = []; for (let j = 0; j < message.channels.length; ++j) - object.channels[j] = $root.Authentication.TwoFactorChannelInfo.toObject(message.channels[j], options); + object.channels[j] = $root.Authentication.TwoFactorChannelInfo.toObject( + message.channels[j], + options + ); } - if (message.expireOn != null && message.hasOwnProperty("expireOn")) - if (typeof message.expireOn === "number") + if (message.expireOn != null && message.hasOwnProperty('expireOn')) + if (typeof message.expireOn === 'number') object.expireOn = options.longs === String ? String(message.expireOn) : message.expireOn; else - object.expireOn = options.longs === String ? $util.Long.prototype.toString.call(message.expireOn) : options.longs === Number ? new $util.LongBits(message.expireOn.low >>> 0, message.expireOn.high >>> 0).toNumber() : message.expireOn; + object.expireOn = + options.longs === String + ? $util.Long.prototype.toString.call(message.expireOn) + : options.longs === Number + ? new $util.LongBits(message.expireOn.low >>> 0, message.expireOn.high >>> 0).toNumber() + : message.expireOn; return object; }; @@ -9767,16 +10046,15 @@ export const Authentication = $root.Authentication = (() => { */ TwoFactorListResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.TwoFactorListResponse"; + return typeUrlPrefix + '/Authentication.TwoFactorListResponse'; }; return TwoFactorListResponse; })(); - Authentication.TwoFactorUpdateExpirationRequest = (function() { - + Authentication.TwoFactorUpdateExpirationRequest = (function () { /** * Properties of a TwoFactorUpdateExpirationRequest. * @memberof Authentication @@ -9795,8 +10073,7 @@ export const Authentication = $root.Authentication = (() => { function TwoFactorUpdateExpirationRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -9829,10 +10106,9 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ TwoFactorUpdateExpirationRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.expireIn != null && Object.hasOwnProperty.call(message, "expireIn")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.expireIn); + if (!writer) writer = $Writer.create(); + if (message.expireIn != null && Object.hasOwnProperty.call(message, 'expireIn')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int32(message.expireIn); return writer; }; @@ -9861,19 +10137,19 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ TwoFactorUpdateExpirationRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.TwoFactorUpdateExpirationRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.TwoFactorUpdateExpirationRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.expireIn = reader.int32(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -9890,8 +10166,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ TwoFactorUpdateExpirationRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -9904,19 +10179,18 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ TwoFactorUpdateExpirationRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.expireIn != null && message.hasOwnProperty("expireIn")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.expireIn != null && message.hasOwnProperty('expireIn')) switch (message.expireIn) { - default: - return "expireIn: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - break; + default: + return 'expireIn: enum value expected'; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + break; } return null; }; @@ -9930,40 +10204,39 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.TwoFactorUpdateExpirationRequest} TwoFactorUpdateExpirationRequest */ TwoFactorUpdateExpirationRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.TwoFactorUpdateExpirationRequest) - return object; + if (object instanceof $root.Authentication.TwoFactorUpdateExpirationRequest) return object; let message = new $root.Authentication.TwoFactorUpdateExpirationRequest(); switch (object.expireIn) { - default: - if (typeof object.expireIn === "number") { - message.expireIn = object.expireIn; - break; - } - break; - case "TWO_FA_EXP_IMMEDIATELY": - case 0: - message.expireIn = 0; - break; - case "TWO_FA_EXP_5_MINUTES": - case 1: - message.expireIn = 1; - break; - case "TWO_FA_EXP_12_HOURS": - case 2: - message.expireIn = 2; - break; - case "TWO_FA_EXP_24_HOURS": - case 3: - message.expireIn = 3; - break; - case "TWO_FA_EXP_30_DAYS": - case 4: - message.expireIn = 4; - break; - case "TWO_FA_EXP_NEVER": - case 5: - message.expireIn = 5; - break; + default: + if (typeof object.expireIn === 'number') { + message.expireIn = object.expireIn; + break; + } + break; + case 'TWO_FA_EXP_IMMEDIATELY': + case 0: + message.expireIn = 0; + break; + case 'TWO_FA_EXP_5_MINUTES': + case 1: + message.expireIn = 1; + break; + case 'TWO_FA_EXP_12_HOURS': + case 2: + message.expireIn = 2; + break; + case 'TWO_FA_EXP_24_HOURS': + case 3: + message.expireIn = 3; + break; + case 'TWO_FA_EXP_30_DAYS': + case 4: + message.expireIn = 4; + break; + case 'TWO_FA_EXP_NEVER': + case 5: + message.expireIn = 5; + break; } return message; }; @@ -9978,13 +10251,16 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ TwoFactorUpdateExpirationRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.defaults) - object.expireIn = options.enums === String ? "TWO_FA_EXP_IMMEDIATELY" : 0; - if (message.expireIn != null && message.hasOwnProperty("expireIn")) - object.expireIn = options.enums === String ? $root.Authentication.TwoFactorExpiration[message.expireIn] === undefined ? message.expireIn : $root.Authentication.TwoFactorExpiration[message.expireIn] : message.expireIn; + if (options.defaults) object.expireIn = options.enums === String ? 'TWO_FA_EXP_IMMEDIATELY' : 0; + if (message.expireIn != null && message.hasOwnProperty('expireIn')) + object.expireIn = + options.enums === String + ? $root.Authentication.TwoFactorExpiration[message.expireIn] === undefined + ? message.expireIn + : $root.Authentication.TwoFactorExpiration[message.expireIn] + : message.expireIn; return object; }; @@ -10009,16 +10285,15 @@ export const Authentication = $root.Authentication = (() => { */ TwoFactorUpdateExpirationRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.TwoFactorUpdateExpirationRequest"; + return typeUrlPrefix + '/Authentication.TwoFactorUpdateExpirationRequest'; }; return TwoFactorUpdateExpirationRequest; })(); - Authentication.TwoFactorValidateRequest = (function() { - + Authentication.TwoFactorValidateRequest = (function () { /** * Properties of a TwoFactorValidateRequest. * @memberof Authentication @@ -10041,8 +10316,7 @@ export const Authentication = $root.Authentication = (() => { function TwoFactorValidateRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -10067,7 +10341,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.TwoFactorValidateRequest * @instance */ - TwoFactorValidateRequest.prototype.value = ""; + TwoFactorValidateRequest.prototype.value = ''; /** * TwoFactorValidateRequest channelUid. @@ -10107,18 +10381,17 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ TwoFactorValidateRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.encryptedLoginToken != null && Object.hasOwnProperty.call(message, "encryptedLoginToken")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.encryptedLoginToken); - if (message.valueType != null && Object.hasOwnProperty.call(message, "valueType")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.valueType); - if (message.value != null && Object.hasOwnProperty.call(message, "value")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.value); - if (message.channelUid != null && Object.hasOwnProperty.call(message, "channelUid")) - writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.channelUid); - if (message.expireIn != null && Object.hasOwnProperty.call(message, "expireIn")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.expireIn); + if (!writer) writer = $Writer.create(); + if (message.encryptedLoginToken != null && Object.hasOwnProperty.call(message, 'encryptedLoginToken')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.encryptedLoginToken); + if (message.valueType != null && Object.hasOwnProperty.call(message, 'valueType')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int32(message.valueType); + if (message.value != null && Object.hasOwnProperty.call(message, 'value')) + writer.uint32(/* id 3, wireType 2 =*/ 26).string(message.value); + if (message.channelUid != null && Object.hasOwnProperty.call(message, 'channelUid')) + writer.uint32(/* id 4, wireType 2 =*/ 34).bytes(message.channelUid); + if (message.expireIn != null && Object.hasOwnProperty.call(message, 'expireIn')) + writer.uint32(/* id 5, wireType 0 =*/ 40).int32(message.expireIn); return writer; }; @@ -10147,35 +10420,35 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ TwoFactorValidateRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.TwoFactorValidateRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.TwoFactorValidateRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.encryptedLoginToken = reader.bytes(); break; } - case 2: { + case 2: { message.valueType = reader.int32(); break; } - case 3: { + case 3: { message.value = reader.string(); break; } - case 4: { + case 4: { message.channelUid = reader.bytes(); break; } - case 5: { + case 5: { message.expireIn = reader.int32(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -10192,8 +10465,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ TwoFactorValidateRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -10206,42 +10478,50 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ TwoFactorValidateRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.encryptedLoginToken != null && message.hasOwnProperty("encryptedLoginToken")) - if (!(message.encryptedLoginToken && typeof message.encryptedLoginToken.length === "number" || $util.isString(message.encryptedLoginToken))) - return "encryptedLoginToken: buffer expected"; - if (message.valueType != null && message.hasOwnProperty("valueType")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.encryptedLoginToken != null && message.hasOwnProperty('encryptedLoginToken')) + if ( + !( + (message.encryptedLoginToken && typeof message.encryptedLoginToken.length === 'number') || + $util.isString(message.encryptedLoginToken) + ) + ) + return 'encryptedLoginToken: buffer expected'; + if (message.valueType != null && message.hasOwnProperty('valueType')) switch (message.valueType) { - default: - return "valueType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - break; + default: + return 'valueType: enum value expected'; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + break; } - if (message.value != null && message.hasOwnProperty("value")) - if (!$util.isString(message.value)) - return "value: string expected"; - if (message.channelUid != null && message.hasOwnProperty("channelUid")) - if (!(message.channelUid && typeof message.channelUid.length === "number" || $util.isString(message.channelUid))) - return "channelUid: buffer expected"; - if (message.expireIn != null && message.hasOwnProperty("expireIn")) + if (message.value != null && message.hasOwnProperty('value')) + if (!$util.isString(message.value)) return 'value: string expected'; + if (message.channelUid != null && message.hasOwnProperty('channelUid')) + if ( + !( + (message.channelUid && typeof message.channelUid.length === 'number') || + $util.isString(message.channelUid) + ) + ) + return 'channelUid: buffer expected'; + if (message.expireIn != null && message.hasOwnProperty('expireIn')) switch (message.expireIn) { - default: - return "expireIn: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - break; + default: + return 'expireIn: enum value expected'; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + break; } return null; }; @@ -10255,92 +10535,99 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.TwoFactorValidateRequest} TwoFactorValidateRequest */ TwoFactorValidateRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.TwoFactorValidateRequest) - return object; + if (object instanceof $root.Authentication.TwoFactorValidateRequest) return object; let message = new $root.Authentication.TwoFactorValidateRequest(); if (object.encryptedLoginToken != null) - if (typeof object.encryptedLoginToken === "string") - $util.base64.decode(object.encryptedLoginToken, message.encryptedLoginToken = $util.newBuffer($util.base64.length(object.encryptedLoginToken)), 0); + if (typeof object.encryptedLoginToken === 'string') + $util.base64.decode( + object.encryptedLoginToken, + (message.encryptedLoginToken = $util.newBuffer( + $util.base64.length(object.encryptedLoginToken) + )), + 0 + ); else if (object.encryptedLoginToken.length >= 0) message.encryptedLoginToken = object.encryptedLoginToken; switch (object.valueType) { - default: - if (typeof object.valueType === "number") { - message.valueType = object.valueType; - break; - } - break; - case "TWO_FA_CODE_NONE": - case 0: - message.valueType = 0; - break; - case "TWO_FA_CODE_TOTP": - case 1: - message.valueType = 1; - break; - case "TWO_FA_CODE_SMS": - case 2: - message.valueType = 2; - break; - case "TWO_FA_CODE_DUO": - case 3: - message.valueType = 3; - break; - case "TWO_FA_CODE_RSA": - case 4: - message.valueType = 4; - break; - case "TWO_FA_RESP_U2F": - case 5: - message.valueType = 5; - break; - case "TWO_FA_RESP_WEBAUTHN": - case 6: - message.valueType = 6; - break; - case "TWO_FA_CODE_DNA": - case 7: - message.valueType = 7; - break; + default: + if (typeof object.valueType === 'number') { + message.valueType = object.valueType; + break; + } + break; + case 'TWO_FA_CODE_NONE': + case 0: + message.valueType = 0; + break; + case 'TWO_FA_CODE_TOTP': + case 1: + message.valueType = 1; + break; + case 'TWO_FA_CODE_SMS': + case 2: + message.valueType = 2; + break; + case 'TWO_FA_CODE_DUO': + case 3: + message.valueType = 3; + break; + case 'TWO_FA_CODE_RSA': + case 4: + message.valueType = 4; + break; + case 'TWO_FA_RESP_U2F': + case 5: + message.valueType = 5; + break; + case 'TWO_FA_RESP_WEBAUTHN': + case 6: + message.valueType = 6; + break; + case 'TWO_FA_CODE_DNA': + case 7: + message.valueType = 7; + break; } - if (object.value != null) - message.value = String(object.value); + if (object.value != null) message.value = String(object.value); if (object.channelUid != null) - if (typeof object.channelUid === "string") - $util.base64.decode(object.channelUid, message.channelUid = $util.newBuffer($util.base64.length(object.channelUid)), 0); - else if (object.channelUid.length >= 0) - message.channelUid = object.channelUid; + if (typeof object.channelUid === 'string') + $util.base64.decode( + object.channelUid, + (message.channelUid = $util.newBuffer($util.base64.length(object.channelUid))), + 0 + ); + else if (object.channelUid.length >= 0) message.channelUid = object.channelUid; switch (object.expireIn) { - default: - if (typeof object.expireIn === "number") { - message.expireIn = object.expireIn; - break; - } - break; - case "TWO_FA_EXP_IMMEDIATELY": - case 0: - message.expireIn = 0; - break; - case "TWO_FA_EXP_5_MINUTES": - case 1: - message.expireIn = 1; - break; - case "TWO_FA_EXP_12_HOURS": - case 2: - message.expireIn = 2; - break; - case "TWO_FA_EXP_24_HOURS": - case 3: - message.expireIn = 3; - break; - case "TWO_FA_EXP_30_DAYS": - case 4: - message.expireIn = 4; - break; - case "TWO_FA_EXP_NEVER": - case 5: - message.expireIn = 5; - break; + default: + if (typeof object.expireIn === 'number') { + message.expireIn = object.expireIn; + break; + } + break; + case 'TWO_FA_EXP_IMMEDIATELY': + case 0: + message.expireIn = 0; + break; + case 'TWO_FA_EXP_5_MINUTES': + case 1: + message.expireIn = 1; + break; + case 'TWO_FA_EXP_12_HOURS': + case 2: + message.expireIn = 2; + break; + case 'TWO_FA_EXP_24_HOURS': + case 3: + message.expireIn = 3; + break; + case 'TWO_FA_EXP_30_DAYS': + case 4: + message.expireIn = 4; + break; + case 'TWO_FA_EXP_NEVER': + case 5: + message.expireIn = 5; + break; } return message; }; @@ -10355,38 +10642,53 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ TwoFactorValidateRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.encryptedLoginToken = ""; + if (options.bytes === String) object.encryptedLoginToken = ''; else { object.encryptedLoginToken = []; if (options.bytes !== Array) object.encryptedLoginToken = $util.newBuffer(object.encryptedLoginToken); } - object.valueType = options.enums === String ? "TWO_FA_CODE_NONE" : 0; - object.value = ""; - if (options.bytes === String) - object.channelUid = ""; + object.valueType = options.enums === String ? 'TWO_FA_CODE_NONE' : 0; + object.value = ''; + if (options.bytes === String) object.channelUid = ''; else { object.channelUid = []; - if (options.bytes !== Array) - object.channelUid = $util.newBuffer(object.channelUid); - } - object.expireIn = options.enums === String ? "TWO_FA_EXP_IMMEDIATELY" : 0; - } - if (message.encryptedLoginToken != null && message.hasOwnProperty("encryptedLoginToken")) - object.encryptedLoginToken = options.bytes === String ? $util.base64.encode(message.encryptedLoginToken, 0, message.encryptedLoginToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedLoginToken) : message.encryptedLoginToken; - if (message.valueType != null && message.hasOwnProperty("valueType")) - object.valueType = options.enums === String ? $root.Authentication.TwoFactorValueType[message.valueType] === undefined ? message.valueType : $root.Authentication.TwoFactorValueType[message.valueType] : message.valueType; - if (message.value != null && message.hasOwnProperty("value")) - object.value = message.value; - if (message.channelUid != null && message.hasOwnProperty("channelUid")) - object.channelUid = options.bytes === String ? $util.base64.encode(message.channelUid, 0, message.channelUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.channelUid) : message.channelUid; - if (message.expireIn != null && message.hasOwnProperty("expireIn")) - object.expireIn = options.enums === String ? $root.Authentication.TwoFactorExpiration[message.expireIn] === undefined ? message.expireIn : $root.Authentication.TwoFactorExpiration[message.expireIn] : message.expireIn; + if (options.bytes !== Array) object.channelUid = $util.newBuffer(object.channelUid); + } + object.expireIn = options.enums === String ? 'TWO_FA_EXP_IMMEDIATELY' : 0; + } + if (message.encryptedLoginToken != null && message.hasOwnProperty('encryptedLoginToken')) + object.encryptedLoginToken = + options.bytes === String + ? $util.base64.encode(message.encryptedLoginToken, 0, message.encryptedLoginToken.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.encryptedLoginToken) + : message.encryptedLoginToken; + if (message.valueType != null && message.hasOwnProperty('valueType')) + object.valueType = + options.enums === String + ? $root.Authentication.TwoFactorValueType[message.valueType] === undefined + ? message.valueType + : $root.Authentication.TwoFactorValueType[message.valueType] + : message.valueType; + if (message.value != null && message.hasOwnProperty('value')) object.value = message.value; + if (message.channelUid != null && message.hasOwnProperty('channelUid')) + object.channelUid = + options.bytes === String + ? $util.base64.encode(message.channelUid, 0, message.channelUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.channelUid) + : message.channelUid; + if (message.expireIn != null && message.hasOwnProperty('expireIn')) + object.expireIn = + options.enums === String + ? $root.Authentication.TwoFactorExpiration[message.expireIn] === undefined + ? message.expireIn + : $root.Authentication.TwoFactorExpiration[message.expireIn] + : message.expireIn; return object; }; @@ -10411,16 +10713,15 @@ export const Authentication = $root.Authentication = (() => { */ TwoFactorValidateRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.TwoFactorValidateRequest"; + return typeUrlPrefix + '/Authentication.TwoFactorValidateRequest'; }; return TwoFactorValidateRequest; })(); - Authentication.TwoFactorValidateResponse = (function() { - + Authentication.TwoFactorValidateResponse = (function () { /** * Properties of a TwoFactorValidateResponse. * @memberof Authentication @@ -10439,8 +10740,7 @@ export const Authentication = $root.Authentication = (() => { function TwoFactorValidateResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -10473,10 +10773,9 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ TwoFactorValidateResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.encryptedLoginToken != null && Object.hasOwnProperty.call(message, "encryptedLoginToken")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.encryptedLoginToken); + if (!writer) writer = $Writer.create(); + if (message.encryptedLoginToken != null && Object.hasOwnProperty.call(message, 'encryptedLoginToken')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.encryptedLoginToken); return writer; }; @@ -10505,19 +10804,19 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ TwoFactorValidateResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.TwoFactorValidateResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.TwoFactorValidateResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.encryptedLoginToken = reader.bytes(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -10534,8 +10833,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ TwoFactorValidateResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -10548,11 +10846,15 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ TwoFactorValidateResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.encryptedLoginToken != null && message.hasOwnProperty("encryptedLoginToken")) - if (!(message.encryptedLoginToken && typeof message.encryptedLoginToken.length === "number" || $util.isString(message.encryptedLoginToken))) - return "encryptedLoginToken: buffer expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.encryptedLoginToken != null && message.hasOwnProperty('encryptedLoginToken')) + if ( + !( + (message.encryptedLoginToken && typeof message.encryptedLoginToken.length === 'number') || + $util.isString(message.encryptedLoginToken) + ) + ) + return 'encryptedLoginToken: buffer expected'; return null; }; @@ -10565,12 +10867,17 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.TwoFactorValidateResponse} TwoFactorValidateResponse */ TwoFactorValidateResponse.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.TwoFactorValidateResponse) - return object; + if (object instanceof $root.Authentication.TwoFactorValidateResponse) return object; let message = new $root.Authentication.TwoFactorValidateResponse(); if (object.encryptedLoginToken != null) - if (typeof object.encryptedLoginToken === "string") - $util.base64.decode(object.encryptedLoginToken, message.encryptedLoginToken = $util.newBuffer($util.base64.length(object.encryptedLoginToken)), 0); + if (typeof object.encryptedLoginToken === 'string') + $util.base64.decode( + object.encryptedLoginToken, + (message.encryptedLoginToken = $util.newBuffer( + $util.base64.length(object.encryptedLoginToken) + )), + 0 + ); else if (object.encryptedLoginToken.length >= 0) message.encryptedLoginToken = object.encryptedLoginToken; return message; @@ -10586,19 +10893,22 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ TwoFactorValidateResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) - if (options.bytes === String) - object.encryptedLoginToken = ""; + if (options.bytes === String) object.encryptedLoginToken = ''; else { object.encryptedLoginToken = []; if (options.bytes !== Array) object.encryptedLoginToken = $util.newBuffer(object.encryptedLoginToken); } - if (message.encryptedLoginToken != null && message.hasOwnProperty("encryptedLoginToken")) - object.encryptedLoginToken = options.bytes === String ? $util.base64.encode(message.encryptedLoginToken, 0, message.encryptedLoginToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedLoginToken) : message.encryptedLoginToken; + if (message.encryptedLoginToken != null && message.hasOwnProperty('encryptedLoginToken')) + object.encryptedLoginToken = + options.bytes === String + ? $util.base64.encode(message.encryptedLoginToken, 0, message.encryptedLoginToken.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.encryptedLoginToken) + : message.encryptedLoginToken; return object; }; @@ -10623,16 +10933,15 @@ export const Authentication = $root.Authentication = (() => { */ TwoFactorValidateResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.TwoFactorValidateResponse"; + return typeUrlPrefix + '/Authentication.TwoFactorValidateResponse'; }; return TwoFactorValidateResponse; })(); - Authentication.TwoFactorSendPushRequest = (function() { - + Authentication.TwoFactorSendPushRequest = (function () { /** * Properties of a TwoFactorSendPushRequest. * @memberof Authentication @@ -10654,8 +10963,7 @@ export const Authentication = $root.Authentication = (() => { function TwoFactorSendPushRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -10712,16 +11020,15 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ TwoFactorSendPushRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.encryptedLoginToken != null && Object.hasOwnProperty.call(message, "encryptedLoginToken")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.encryptedLoginToken); - if (message.pushType != null && Object.hasOwnProperty.call(message, "pushType")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pushType); - if (message.channelUid != null && Object.hasOwnProperty.call(message, "channelUid")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.channelUid); - if (message.expireIn != null && Object.hasOwnProperty.call(message, "expireIn")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.expireIn); + if (!writer) writer = $Writer.create(); + if (message.encryptedLoginToken != null && Object.hasOwnProperty.call(message, 'encryptedLoginToken')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.encryptedLoginToken); + if (message.pushType != null && Object.hasOwnProperty.call(message, 'pushType')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int32(message.pushType); + if (message.channelUid != null && Object.hasOwnProperty.call(message, 'channelUid')) + writer.uint32(/* id 3, wireType 2 =*/ 26).bytes(message.channelUid); + if (message.expireIn != null && Object.hasOwnProperty.call(message, 'expireIn')) + writer.uint32(/* id 4, wireType 0 =*/ 32).int32(message.expireIn); return writer; }; @@ -10750,31 +11057,31 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ TwoFactorSendPushRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.TwoFactorSendPushRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.TwoFactorSendPushRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.encryptedLoginToken = reader.bytes(); break; } - case 2: { + case 2: { message.pushType = reader.int32(); break; } - case 3: { + case 3: { message.channelUid = reader.bytes(); break; } - case 4: { + case 4: { message.expireIn = reader.int32(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -10791,8 +11098,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ TwoFactorSendPushRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -10805,38 +11111,47 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ TwoFactorSendPushRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.encryptedLoginToken != null && message.hasOwnProperty("encryptedLoginToken")) - if (!(message.encryptedLoginToken && typeof message.encryptedLoginToken.length === "number" || $util.isString(message.encryptedLoginToken))) - return "encryptedLoginToken: buffer expected"; - if (message.pushType != null && message.hasOwnProperty("pushType")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.encryptedLoginToken != null && message.hasOwnProperty('encryptedLoginToken')) + if ( + !( + (message.encryptedLoginToken && typeof message.encryptedLoginToken.length === 'number') || + $util.isString(message.encryptedLoginToken) + ) + ) + return 'encryptedLoginToken: buffer expected'; + if (message.pushType != null && message.hasOwnProperty('pushType')) switch (message.pushType) { - default: - return "pushType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - break; + default: + return 'pushType: enum value expected'; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + break; } - if (message.channelUid != null && message.hasOwnProperty("channelUid")) - if (!(message.channelUid && typeof message.channelUid.length === "number" || $util.isString(message.channelUid))) - return "channelUid: buffer expected"; - if (message.expireIn != null && message.hasOwnProperty("expireIn")) + if (message.channelUid != null && message.hasOwnProperty('channelUid')) + if ( + !( + (message.channelUid && typeof message.channelUid.length === 'number') || + $util.isString(message.channelUid) + ) + ) + return 'channelUid: buffer expected'; + if (message.expireIn != null && message.hasOwnProperty('expireIn')) switch (message.expireIn) { - default: - return "expireIn: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - break; + default: + return 'expireIn: enum value expected'; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + break; } return null; }; @@ -10850,86 +11165,94 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.TwoFactorSendPushRequest} TwoFactorSendPushRequest */ TwoFactorSendPushRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.TwoFactorSendPushRequest) - return object; + if (object instanceof $root.Authentication.TwoFactorSendPushRequest) return object; let message = new $root.Authentication.TwoFactorSendPushRequest(); if (object.encryptedLoginToken != null) - if (typeof object.encryptedLoginToken === "string") - $util.base64.decode(object.encryptedLoginToken, message.encryptedLoginToken = $util.newBuffer($util.base64.length(object.encryptedLoginToken)), 0); + if (typeof object.encryptedLoginToken === 'string') + $util.base64.decode( + object.encryptedLoginToken, + (message.encryptedLoginToken = $util.newBuffer( + $util.base64.length(object.encryptedLoginToken) + )), + 0 + ); else if (object.encryptedLoginToken.length >= 0) message.encryptedLoginToken = object.encryptedLoginToken; switch (object.pushType) { - default: - if (typeof object.pushType === "number") { - message.pushType = object.pushType; - break; - } - break; - case "TWO_FA_PUSH_NONE": - case 0: - message.pushType = 0; - break; - case "TWO_FA_PUSH_SMS": - case 1: - message.pushType = 1; - break; - case "TWO_FA_PUSH_KEEPER": - case 2: - message.pushType = 2; - break; - case "TWO_FA_PUSH_DUO_PUSH": - case 3: - message.pushType = 3; - break; - case "TWO_FA_PUSH_DUO_TEXT": - case 4: - message.pushType = 4; - break; - case "TWO_FA_PUSH_DUO_CALL": - case 5: - message.pushType = 5; - break; - case "TWO_FA_PUSH_DNA": - case 6: - message.pushType = 6; - break; + default: + if (typeof object.pushType === 'number') { + message.pushType = object.pushType; + break; + } + break; + case 'TWO_FA_PUSH_NONE': + case 0: + message.pushType = 0; + break; + case 'TWO_FA_PUSH_SMS': + case 1: + message.pushType = 1; + break; + case 'TWO_FA_PUSH_KEEPER': + case 2: + message.pushType = 2; + break; + case 'TWO_FA_PUSH_DUO_PUSH': + case 3: + message.pushType = 3; + break; + case 'TWO_FA_PUSH_DUO_TEXT': + case 4: + message.pushType = 4; + break; + case 'TWO_FA_PUSH_DUO_CALL': + case 5: + message.pushType = 5; + break; + case 'TWO_FA_PUSH_DNA': + case 6: + message.pushType = 6; + break; } if (object.channelUid != null) - if (typeof object.channelUid === "string") - $util.base64.decode(object.channelUid, message.channelUid = $util.newBuffer($util.base64.length(object.channelUid)), 0); - else if (object.channelUid.length >= 0) - message.channelUid = object.channelUid; + if (typeof object.channelUid === 'string') + $util.base64.decode( + object.channelUid, + (message.channelUid = $util.newBuffer($util.base64.length(object.channelUid))), + 0 + ); + else if (object.channelUid.length >= 0) message.channelUid = object.channelUid; switch (object.expireIn) { - default: - if (typeof object.expireIn === "number") { - message.expireIn = object.expireIn; - break; - } - break; - case "TWO_FA_EXP_IMMEDIATELY": - case 0: - message.expireIn = 0; - break; - case "TWO_FA_EXP_5_MINUTES": - case 1: - message.expireIn = 1; - break; - case "TWO_FA_EXP_12_HOURS": - case 2: - message.expireIn = 2; - break; - case "TWO_FA_EXP_24_HOURS": - case 3: - message.expireIn = 3; - break; - case "TWO_FA_EXP_30_DAYS": - case 4: - message.expireIn = 4; - break; - case "TWO_FA_EXP_NEVER": - case 5: - message.expireIn = 5; - break; + default: + if (typeof object.expireIn === 'number') { + message.expireIn = object.expireIn; + break; + } + break; + case 'TWO_FA_EXP_IMMEDIATELY': + case 0: + message.expireIn = 0; + break; + case 'TWO_FA_EXP_5_MINUTES': + case 1: + message.expireIn = 1; + break; + case 'TWO_FA_EXP_12_HOURS': + case 2: + message.expireIn = 2; + break; + case 'TWO_FA_EXP_24_HOURS': + case 3: + message.expireIn = 3; + break; + case 'TWO_FA_EXP_30_DAYS': + case 4: + message.expireIn = 4; + break; + case 'TWO_FA_EXP_NEVER': + case 5: + message.expireIn = 5; + break; } return message; }; @@ -10944,35 +11267,51 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ TwoFactorSendPushRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.encryptedLoginToken = ""; + if (options.bytes === String) object.encryptedLoginToken = ''; else { object.encryptedLoginToken = []; if (options.bytes !== Array) object.encryptedLoginToken = $util.newBuffer(object.encryptedLoginToken); } - object.pushType = options.enums === String ? "TWO_FA_PUSH_NONE" : 0; - if (options.bytes === String) - object.channelUid = ""; + object.pushType = options.enums === String ? 'TWO_FA_PUSH_NONE' : 0; + if (options.bytes === String) object.channelUid = ''; else { object.channelUid = []; - if (options.bytes !== Array) - object.channelUid = $util.newBuffer(object.channelUid); - } - object.expireIn = options.enums === String ? "TWO_FA_EXP_IMMEDIATELY" : 0; - } - if (message.encryptedLoginToken != null && message.hasOwnProperty("encryptedLoginToken")) - object.encryptedLoginToken = options.bytes === String ? $util.base64.encode(message.encryptedLoginToken, 0, message.encryptedLoginToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedLoginToken) : message.encryptedLoginToken; - if (message.pushType != null && message.hasOwnProperty("pushType")) - object.pushType = options.enums === String ? $root.Authentication.TwoFactorPushType[message.pushType] === undefined ? message.pushType : $root.Authentication.TwoFactorPushType[message.pushType] : message.pushType; - if (message.channelUid != null && message.hasOwnProperty("channelUid")) - object.channelUid = options.bytes === String ? $util.base64.encode(message.channelUid, 0, message.channelUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.channelUid) : message.channelUid; - if (message.expireIn != null && message.hasOwnProperty("expireIn")) - object.expireIn = options.enums === String ? $root.Authentication.TwoFactorExpiration[message.expireIn] === undefined ? message.expireIn : $root.Authentication.TwoFactorExpiration[message.expireIn] : message.expireIn; + if (options.bytes !== Array) object.channelUid = $util.newBuffer(object.channelUid); + } + object.expireIn = options.enums === String ? 'TWO_FA_EXP_IMMEDIATELY' : 0; + } + if (message.encryptedLoginToken != null && message.hasOwnProperty('encryptedLoginToken')) + object.encryptedLoginToken = + options.bytes === String + ? $util.base64.encode(message.encryptedLoginToken, 0, message.encryptedLoginToken.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.encryptedLoginToken) + : message.encryptedLoginToken; + if (message.pushType != null && message.hasOwnProperty('pushType')) + object.pushType = + options.enums === String + ? $root.Authentication.TwoFactorPushType[message.pushType] === undefined + ? message.pushType + : $root.Authentication.TwoFactorPushType[message.pushType] + : message.pushType; + if (message.channelUid != null && message.hasOwnProperty('channelUid')) + object.channelUid = + options.bytes === String + ? $util.base64.encode(message.channelUid, 0, message.channelUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.channelUid) + : message.channelUid; + if (message.expireIn != null && message.hasOwnProperty('expireIn')) + object.expireIn = + options.enums === String + ? $root.Authentication.TwoFactorExpiration[message.expireIn] === undefined + ? message.expireIn + : $root.Authentication.TwoFactorExpiration[message.expireIn] + : message.expireIn; return object; }; @@ -10997,16 +11336,15 @@ export const Authentication = $root.Authentication = (() => { */ TwoFactorSendPushRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.TwoFactorSendPushRequest"; + return typeUrlPrefix + '/Authentication.TwoFactorSendPushRequest'; }; return TwoFactorSendPushRequest; })(); - Authentication.License = (function() { - + Authentication.License = (function () { /** * Properties of a License. * @memberof Authentication @@ -11029,8 +11367,7 @@ export const Authentication = $root.Authentication = (() => { function License(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -11039,7 +11376,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.License * @instance */ - License.prototype.created = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + License.prototype.created = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * License expiration. @@ -11047,7 +11384,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.License * @instance */ - License.prototype.expiration = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + License.prototype.expiration = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * License licenseStatus. @@ -11071,7 +11408,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.License * @instance */ - License.prototype.message = ""; + License.prototype.message = ''; /** * Creates a new License instance using the specified properties. @@ -11095,18 +11432,17 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ License.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.created != null && Object.hasOwnProperty.call(message, "created")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.created); - if (message.expiration != null && Object.hasOwnProperty.call(message, "expiration")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.expiration); - if (message.licenseStatus != null && Object.hasOwnProperty.call(message, "licenseStatus")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.licenseStatus); - if (message.paid != null && Object.hasOwnProperty.call(message, "paid")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.paid); - if (message.message != null && Object.hasOwnProperty.call(message, "message")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.message); + if (!writer) writer = $Writer.create(); + if (message.created != null && Object.hasOwnProperty.call(message, 'created')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int64(message.created); + if (message.expiration != null && Object.hasOwnProperty.call(message, 'expiration')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int64(message.expiration); + if (message.licenseStatus != null && Object.hasOwnProperty.call(message, 'licenseStatus')) + writer.uint32(/* id 3, wireType 0 =*/ 24).int32(message.licenseStatus); + if (message.paid != null && Object.hasOwnProperty.call(message, 'paid')) + writer.uint32(/* id 4, wireType 0 =*/ 32).bool(message.paid); + if (message.message != null && Object.hasOwnProperty.call(message, 'message')) + writer.uint32(/* id 5, wireType 2 =*/ 42).string(message.message); return writer; }; @@ -11135,35 +11471,35 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ License.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.License(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.License(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.created = reader.int64(); break; } - case 2: { + case 2: { message.expiration = reader.int64(); break; } - case 3: { + case 3: { message.licenseStatus = reader.int32(); break; } - case 4: { + case 4: { message.paid = reader.bool(); break; } - case 5: { + case 5: { message.message = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -11180,8 +11516,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ License.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -11194,30 +11529,37 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ License.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.created != null && message.hasOwnProperty("created")) - if (!$util.isInteger(message.created) && !(message.created && $util.isInteger(message.created.low) && $util.isInteger(message.created.high))) - return "created: integer|Long expected"; - if (message.expiration != null && message.hasOwnProperty("expiration")) - if (!$util.isInteger(message.expiration) && !(message.expiration && $util.isInteger(message.expiration.low) && $util.isInteger(message.expiration.high))) - return "expiration: integer|Long expected"; - if (message.licenseStatus != null && message.hasOwnProperty("licenseStatus")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.created != null && message.hasOwnProperty('created')) + if ( + !$util.isInteger(message.created) && + !(message.created && $util.isInteger(message.created.low) && $util.isInteger(message.created.high)) + ) + return 'created: integer|Long expected'; + if (message.expiration != null && message.hasOwnProperty('expiration')) + if ( + !$util.isInteger(message.expiration) && + !( + message.expiration && + $util.isInteger(message.expiration.low) && + $util.isInteger(message.expiration.high) + ) + ) + return 'expiration: integer|Long expected'; + if (message.licenseStatus != null && message.hasOwnProperty('licenseStatus')) switch (message.licenseStatus) { - default: - return "licenseStatus: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; + default: + return 'licenseStatus: enum value expected'; + case 0: + case 1: + case 2: + case 3: + break; } - if (message.paid != null && message.hasOwnProperty("paid")) - if (typeof message.paid !== "boolean") - return "paid: boolean expected"; - if (message.message != null && message.hasOwnProperty("message")) - if (!$util.isString(message.message)) - return "message: string expected"; + if (message.paid != null && message.hasOwnProperty('paid')) + if (typeof message.paid !== 'boolean') return 'paid: boolean expected'; + if (message.message != null && message.hasOwnProperty('message')) + if (!$util.isString(message.message)) return 'message: string expected'; return null; }; @@ -11230,55 +11572,52 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.License} License */ License.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.License) - return object; + if (object instanceof $root.Authentication.License) return object; let message = new $root.Authentication.License(); if (object.created != null) - if ($util.Long) - (message.created = $util.Long.fromValue(object.created)).unsigned = false; - else if (typeof object.created === "string") - message.created = parseInt(object.created, 10); - else if (typeof object.created === "number") - message.created = object.created; - else if (typeof object.created === "object") - message.created = new $util.LongBits(object.created.low >>> 0, object.created.high >>> 0).toNumber(); + if ($util.Long) (message.created = $util.Long.fromValue(object.created)).unsigned = false; + else if (typeof object.created === 'string') message.created = parseInt(object.created, 10); + else if (typeof object.created === 'number') message.created = object.created; + else if (typeof object.created === 'object') + message.created = new $util.LongBits( + object.created.low >>> 0, + object.created.high >>> 0 + ).toNumber(); if (object.expiration != null) - if ($util.Long) - (message.expiration = $util.Long.fromValue(object.expiration)).unsigned = false; - else if (typeof object.expiration === "string") - message.expiration = parseInt(object.expiration, 10); - else if (typeof object.expiration === "number") - message.expiration = object.expiration; - else if (typeof object.expiration === "object") - message.expiration = new $util.LongBits(object.expiration.low >>> 0, object.expiration.high >>> 0).toNumber(); + if ($util.Long) (message.expiration = $util.Long.fromValue(object.expiration)).unsigned = false; + else if (typeof object.expiration === 'string') message.expiration = parseInt(object.expiration, 10); + else if (typeof object.expiration === 'number') message.expiration = object.expiration; + else if (typeof object.expiration === 'object') + message.expiration = new $util.LongBits( + object.expiration.low >>> 0, + object.expiration.high >>> 0 + ).toNumber(); switch (object.licenseStatus) { - default: - if (typeof object.licenseStatus === "number") { - message.licenseStatus = object.licenseStatus; - break; - } - break; - case "OTHER": - case 0: - message.licenseStatus = 0; - break; - case "ACTIVE": - case 1: - message.licenseStatus = 1; - break; - case "EXPIRED": - case 2: - message.licenseStatus = 2; - break; - case "DISABLED": - case 3: - message.licenseStatus = 3; - break; - } - if (object.paid != null) - message.paid = Boolean(object.paid); - if (object.message != null) - message.message = String(object.message); + default: + if (typeof object.licenseStatus === 'number') { + message.licenseStatus = object.licenseStatus; + break; + } + break; + case 'OTHER': + case 0: + message.licenseStatus = 0; + break; + case 'ACTIVE': + case 1: + message.licenseStatus = 1; + break; + case 'EXPIRED': + case 2: + message.licenseStatus = 2; + break; + case 'DISABLED': + case 3: + message.licenseStatus = 3; + break; + } + if (object.paid != null) message.paid = Boolean(object.paid); + if (object.message != null) message.message = String(object.message); return message; }; @@ -11292,40 +11631,55 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ License.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.created = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.created = options.longs === String ? "0" : 0; + object.created = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.created = options.longs === String ? '0' : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.expiration = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.expiration = options.longs === String ? "0" : 0; - object.licenseStatus = options.enums === String ? "OTHER" : 0; + object.expiration = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.expiration = options.longs === String ? '0' : 0; + object.licenseStatus = options.enums === String ? 'OTHER' : 0; object.paid = false; - object.message = ""; + object.message = ''; } - if (message.created != null && message.hasOwnProperty("created")) - if (typeof message.created === "number") + if (message.created != null && message.hasOwnProperty('created')) + if (typeof message.created === 'number') object.created = options.longs === String ? String(message.created) : message.created; else - object.created = options.longs === String ? $util.Long.prototype.toString.call(message.created) : options.longs === Number ? new $util.LongBits(message.created.low >>> 0, message.created.high >>> 0).toNumber() : message.created; - if (message.expiration != null && message.hasOwnProperty("expiration")) - if (typeof message.expiration === "number") + object.created = + options.longs === String + ? $util.Long.prototype.toString.call(message.created) + : options.longs === Number + ? new $util.LongBits(message.created.low >>> 0, message.created.high >>> 0).toNumber() + : message.created; + if (message.expiration != null && message.hasOwnProperty('expiration')) + if (typeof message.expiration === 'number') object.expiration = options.longs === String ? String(message.expiration) : message.expiration; else - object.expiration = options.longs === String ? $util.Long.prototype.toString.call(message.expiration) : options.longs === Number ? new $util.LongBits(message.expiration.low >>> 0, message.expiration.high >>> 0).toNumber() : message.expiration; - if (message.licenseStatus != null && message.hasOwnProperty("licenseStatus")) - object.licenseStatus = options.enums === String ? $root.Authentication.LicenseStatus[message.licenseStatus] === undefined ? message.licenseStatus : $root.Authentication.LicenseStatus[message.licenseStatus] : message.licenseStatus; - if (message.paid != null && message.hasOwnProperty("paid")) - object.paid = message.paid; - if (message.message != null && message.hasOwnProperty("message")) - object.message = message.message; + object.expiration = + options.longs === String + ? $util.Long.prototype.toString.call(message.expiration) + : options.longs === Number + ? new $util.LongBits( + message.expiration.low >>> 0, + message.expiration.high >>> 0 + ).toNumber() + : message.expiration; + if (message.licenseStatus != null && message.hasOwnProperty('licenseStatus')) + object.licenseStatus = + options.enums === String + ? $root.Authentication.LicenseStatus[message.licenseStatus] === undefined + ? message.licenseStatus + : $root.Authentication.LicenseStatus[message.licenseStatus] + : message.licenseStatus; + if (message.paid != null && message.hasOwnProperty('paid')) object.paid = message.paid; + if (message.message != null && message.hasOwnProperty('message')) object.message = message.message; return object; }; @@ -11350,9 +11704,9 @@ export const Authentication = $root.Authentication = (() => { */ License.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.License"; + return typeUrlPrefix + '/Authentication.License'; }; return License; @@ -11367,17 +11721,17 @@ export const Authentication = $root.Authentication = (() => { * @property {number} STORAGE=2 STORAGE value * @property {number} BREACHWATCH=3 BREACHWATCH value */ - Authentication.LicenseType = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "VAULT"] = 0; - values[valuesById[1] = "CHAT"] = 1; - values[valuesById[2] = "STORAGE"] = 2; - values[valuesById[3] = "BREACHWATCH"] = 3; + Authentication.LicenseType = (function () { + const valuesById = {}, + values = Object.create(valuesById); + values[(valuesById[0] = 'VAULT')] = 0; + values[(valuesById[1] = 'CHAT')] = 1; + values[(valuesById[2] = 'STORAGE')] = 2; + values[(valuesById[3] = 'BREACHWATCH')] = 3; return values; })(); - Authentication.OwnerlessRecord = (function() { - + Authentication.OwnerlessRecord = (function () { /** * Properties of an OwnerlessRecord. * @memberof Authentication @@ -11398,8 +11752,7 @@ export const Authentication = $root.Authentication = (() => { function OwnerlessRecord(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -11448,14 +11801,13 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ OwnerlessRecord.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); - if (message.recordKey != null && Object.hasOwnProperty.call(message, "recordKey")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.recordKey); - if (message.status != null && Object.hasOwnProperty.call(message, "status")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.status); + if (!writer) writer = $Writer.create(); + if (message.recordUid != null && Object.hasOwnProperty.call(message, 'recordUid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.recordUid); + if (message.recordKey != null && Object.hasOwnProperty.call(message, 'recordKey')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.recordKey); + if (message.status != null && Object.hasOwnProperty.call(message, 'status')) + writer.uint32(/* id 3, wireType 0 =*/ 24).int32(message.status); return writer; }; @@ -11484,27 +11836,27 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ OwnerlessRecord.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.OwnerlessRecord(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.OwnerlessRecord(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.recordUid = reader.bytes(); break; } - case 2: { + case 2: { message.recordKey = reader.bytes(); break; } - case 3: { + case 3: { message.status = reader.int32(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -11521,8 +11873,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ OwnerlessRecord.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -11535,17 +11886,25 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ OwnerlessRecord.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) - return "recordUid: buffer expected"; - if (message.recordKey != null && message.hasOwnProperty("recordKey")) - if (!(message.recordKey && typeof message.recordKey.length === "number" || $util.isString(message.recordKey))) - return "recordKey: buffer expected"; - if (message.status != null && message.hasOwnProperty("status")) - if (!$util.isInteger(message.status)) - return "status: integer expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.recordUid != null && message.hasOwnProperty('recordUid')) + if ( + !( + (message.recordUid && typeof message.recordUid.length === 'number') || + $util.isString(message.recordUid) + ) + ) + return 'recordUid: buffer expected'; + if (message.recordKey != null && message.hasOwnProperty('recordKey')) + if ( + !( + (message.recordKey && typeof message.recordKey.length === 'number') || + $util.isString(message.recordKey) + ) + ) + return 'recordKey: buffer expected'; + if (message.status != null && message.hasOwnProperty('status')) + if (!$util.isInteger(message.status)) return 'status: integer expected'; return null; }; @@ -11558,21 +11917,25 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.OwnerlessRecord} OwnerlessRecord */ OwnerlessRecord.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.OwnerlessRecord) - return object; + if (object instanceof $root.Authentication.OwnerlessRecord) return object; let message = new $root.Authentication.OwnerlessRecord(); 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 (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.recordKey != null) - if (typeof object.recordKey === "string") - $util.base64.decode(object.recordKey, message.recordKey = $util.newBuffer($util.base64.length(object.recordKey)), 0); - else if (object.recordKey.length >= 0) - message.recordKey = object.recordKey; - if (object.status != null) - message.status = object.status | 0; + if (typeof object.recordKey === 'string') + $util.base64.decode( + object.recordKey, + (message.recordKey = $util.newBuffer($util.base64.length(object.recordKey))), + 0 + ); + else if (object.recordKey.length >= 0) message.recordKey = object.recordKey; + if (object.status != null) message.status = object.status | 0; return message; }; @@ -11586,32 +11949,36 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ OwnerlessRecord.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.recordUid = ""; + if (options.bytes === String) object.recordUid = ''; else { object.recordUid = []; - if (options.bytes !== Array) - object.recordUid = $util.newBuffer(object.recordUid); + if (options.bytes !== Array) object.recordUid = $util.newBuffer(object.recordUid); } - if (options.bytes === String) - object.recordKey = ""; + if (options.bytes === String) object.recordKey = ''; else { object.recordKey = []; - if (options.bytes !== Array) - object.recordKey = $util.newBuffer(object.recordKey); + if (options.bytes !== Array) object.recordKey = $util.newBuffer(object.recordKey); } object.status = 0; } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; - if (message.recordKey != null && message.hasOwnProperty("recordKey")) - object.recordKey = options.bytes === String ? $util.base64.encode(message.recordKey, 0, message.recordKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordKey) : message.recordKey; - if (message.status != null && message.hasOwnProperty("status")) - object.status = message.status; + if (message.recordUid != null && message.hasOwnProperty('recordUid')) + object.recordUid = + options.bytes === String + ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.recordUid) + : message.recordUid; + if (message.recordKey != null && message.hasOwnProperty('recordKey')) + object.recordKey = + options.bytes === String + ? $util.base64.encode(message.recordKey, 0, message.recordKey.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.recordKey) + : message.recordKey; + if (message.status != null && message.hasOwnProperty('status')) object.status = message.status; return object; }; @@ -11636,16 +12003,15 @@ export const Authentication = $root.Authentication = (() => { */ OwnerlessRecord.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.OwnerlessRecord"; + return typeUrlPrefix + '/Authentication.OwnerlessRecord'; }; return OwnerlessRecord; })(); - Authentication.OwnerlessRecords = (function() { - + Authentication.OwnerlessRecords = (function () { /** * Properties of an OwnerlessRecords. * @memberof Authentication @@ -11665,8 +12031,7 @@ export const Authentication = $root.Authentication = (() => { this.ownerlessRecord = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -11699,11 +12064,13 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ OwnerlessRecords.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.ownerlessRecord != null && message.ownerlessRecord.length) for (let i = 0; i < message.ownerlessRecord.length; ++i) - $root.Authentication.OwnerlessRecord.encode(message.ownerlessRecord[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.Authentication.OwnerlessRecord.encode( + message.ownerlessRecord[i], + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); return writer; }; @@ -11732,21 +12099,22 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ OwnerlessRecords.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.OwnerlessRecords(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.OwnerlessRecords(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (!(message.ownerlessRecord && message.ownerlessRecord.length)) - message.ownerlessRecord = []; - message.ownerlessRecord.push($root.Authentication.OwnerlessRecord.decode(reader, reader.uint32())); + case 1: { + if (!(message.ownerlessRecord && message.ownerlessRecord.length)) message.ownerlessRecord = []; + message.ownerlessRecord.push( + $root.Authentication.OwnerlessRecord.decode(reader, reader.uint32()) + ); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -11763,8 +12131,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ OwnerlessRecords.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -11777,15 +12144,12 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ OwnerlessRecords.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.ownerlessRecord != null && message.hasOwnProperty("ownerlessRecord")) { - if (!Array.isArray(message.ownerlessRecord)) - return "ownerlessRecord: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.ownerlessRecord != null && message.hasOwnProperty('ownerlessRecord')) { + if (!Array.isArray(message.ownerlessRecord)) return 'ownerlessRecord: array expected'; for (let i = 0; i < message.ownerlessRecord.length; ++i) { let error = $root.Authentication.OwnerlessRecord.verify(message.ownerlessRecord[i]); - if (error) - return "ownerlessRecord." + error; + if (error) return 'ownerlessRecord.' + error; } } return null; @@ -11800,17 +12164,18 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.OwnerlessRecords} OwnerlessRecords */ OwnerlessRecords.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.OwnerlessRecords) - return object; + if (object instanceof $root.Authentication.OwnerlessRecords) return object; let message = new $root.Authentication.OwnerlessRecords(); if (object.ownerlessRecord) { if (!Array.isArray(object.ownerlessRecord)) - throw TypeError(".Authentication.OwnerlessRecords.ownerlessRecord: array expected"); + throw TypeError('.Authentication.OwnerlessRecords.ownerlessRecord: array expected'); message.ownerlessRecord = []; for (let i = 0; i < object.ownerlessRecord.length; ++i) { - if (typeof object.ownerlessRecord[i] !== "object") - throw TypeError(".Authentication.OwnerlessRecords.ownerlessRecord: object expected"); - message.ownerlessRecord[i] = $root.Authentication.OwnerlessRecord.fromObject(object.ownerlessRecord[i]); + if (typeof object.ownerlessRecord[i] !== 'object') + throw TypeError('.Authentication.OwnerlessRecords.ownerlessRecord: object expected'); + message.ownerlessRecord[i] = $root.Authentication.OwnerlessRecord.fromObject( + object.ownerlessRecord[i] + ); } } return message; @@ -11826,15 +12191,16 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ OwnerlessRecords.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.ownerlessRecord = []; + if (options.arrays || options.defaults) object.ownerlessRecord = []; if (message.ownerlessRecord && message.ownerlessRecord.length) { object.ownerlessRecord = []; for (let j = 0; j < message.ownerlessRecord.length; ++j) - object.ownerlessRecord[j] = $root.Authentication.OwnerlessRecord.toObject(message.ownerlessRecord[j], options); + object.ownerlessRecord[j] = $root.Authentication.OwnerlessRecord.toObject( + message.ownerlessRecord[j], + options + ); } return object; }; @@ -11860,16 +12226,15 @@ export const Authentication = $root.Authentication = (() => { */ OwnerlessRecords.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.OwnerlessRecords"; + return typeUrlPrefix + '/Authentication.OwnerlessRecords'; }; return OwnerlessRecords; })(); - Authentication.UserAuthRequest = (function() { - + Authentication.UserAuthRequest = (function () { /** * Properties of a UserAuthRequest. * @memberof Authentication @@ -11896,8 +12261,7 @@ export const Authentication = $root.Authentication = (() => { function UserAuthRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -11962,7 +12326,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.UserAuthRequest * @instance */ - UserAuthRequest.prototype.name = ""; + UserAuthRequest.prototype.name = ''; /** * UserAuthRequest algorithm. @@ -11994,26 +12358,25 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ UserAuthRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.uid != null && Object.hasOwnProperty.call(message, "uid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.uid); - if (message.salt != null && Object.hasOwnProperty.call(message, "salt")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.salt); - if (message.iterations != null && Object.hasOwnProperty.call(message, "iterations")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.iterations); - if (message.encryptedClientKey != null && Object.hasOwnProperty.call(message, "encryptedClientKey")) - writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.encryptedClientKey); - if (message.authHash != null && Object.hasOwnProperty.call(message, "authHash")) - writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.authHash); - if (message.encryptedDataKey != null && Object.hasOwnProperty.call(message, "encryptedDataKey")) - writer.uint32(/* id 6, wireType 2 =*/50).bytes(message.encryptedDataKey); - if (message.loginType != null && Object.hasOwnProperty.call(message, "loginType")) - writer.uint32(/* id 7, wireType 0 =*/56).int32(message.loginType); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 8, wireType 2 =*/66).string(message.name); - if (message.algorithm != null && Object.hasOwnProperty.call(message, "algorithm")) - writer.uint32(/* id 9, wireType 0 =*/72).int32(message.algorithm); + if (!writer) writer = $Writer.create(); + if (message.uid != null && Object.hasOwnProperty.call(message, 'uid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.uid); + if (message.salt != null && Object.hasOwnProperty.call(message, 'salt')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.salt); + if (message.iterations != null && Object.hasOwnProperty.call(message, 'iterations')) + writer.uint32(/* id 3, wireType 0 =*/ 24).int32(message.iterations); + if (message.encryptedClientKey != null && Object.hasOwnProperty.call(message, 'encryptedClientKey')) + writer.uint32(/* id 4, wireType 2 =*/ 34).bytes(message.encryptedClientKey); + if (message.authHash != null && Object.hasOwnProperty.call(message, 'authHash')) + writer.uint32(/* id 5, wireType 2 =*/ 42).bytes(message.authHash); + if (message.encryptedDataKey != null && Object.hasOwnProperty.call(message, 'encryptedDataKey')) + writer.uint32(/* id 6, wireType 2 =*/ 50).bytes(message.encryptedDataKey); + if (message.loginType != null && Object.hasOwnProperty.call(message, 'loginType')) + writer.uint32(/* id 7, wireType 0 =*/ 56).int32(message.loginType); + if (message.name != null && Object.hasOwnProperty.call(message, 'name')) + writer.uint32(/* id 8, wireType 2 =*/ 66).string(message.name); + if (message.algorithm != null && Object.hasOwnProperty.call(message, 'algorithm')) + writer.uint32(/* id 9, wireType 0 =*/ 72).int32(message.algorithm); return writer; }; @@ -12042,51 +12405,51 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ UserAuthRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.UserAuthRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.UserAuthRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.uid = reader.bytes(); break; } - case 2: { + case 2: { message.salt = reader.bytes(); break; } - case 3: { + case 3: { message.iterations = reader.int32(); break; } - case 4: { + case 4: { message.encryptedClientKey = reader.bytes(); break; } - case 5: { + case 5: { message.authHash = reader.bytes(); break; } - case 6: { + case 6: { message.encryptedDataKey = reader.bytes(); break; } - case 7: { + case 7: { message.loginType = reader.int32(); break; } - case 8: { + case 8: { message.name = reader.string(); break; } - case 9: { + case 9: { message.algorithm = reader.int32(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -12103,8 +12466,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ UserAuthRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -12117,45 +12479,56 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ UserAuthRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.uid != null && message.hasOwnProperty("uid")) - if (!(message.uid && typeof message.uid.length === "number" || $util.isString(message.uid))) - return "uid: buffer expected"; - if (message.salt != null && message.hasOwnProperty("salt")) - if (!(message.salt && typeof message.salt.length === "number" || $util.isString(message.salt))) - return "salt: buffer expected"; - if (message.iterations != null && message.hasOwnProperty("iterations")) - if (!$util.isInteger(message.iterations)) - return "iterations: integer expected"; - if (message.encryptedClientKey != null && message.hasOwnProperty("encryptedClientKey")) - if (!(message.encryptedClientKey && typeof message.encryptedClientKey.length === "number" || $util.isString(message.encryptedClientKey))) - return "encryptedClientKey: buffer expected"; - if (message.authHash != null && message.hasOwnProperty("authHash")) - if (!(message.authHash && typeof message.authHash.length === "number" || $util.isString(message.authHash))) - return "authHash: buffer expected"; - if (message.encryptedDataKey != null && message.hasOwnProperty("encryptedDataKey")) - if (!(message.encryptedDataKey && typeof message.encryptedDataKey.length === "number" || $util.isString(message.encryptedDataKey))) - return "encryptedDataKey: buffer expected"; - if (message.loginType != null && message.hasOwnProperty("loginType")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.uid != null && message.hasOwnProperty('uid')) + if (!((message.uid && typeof message.uid.length === 'number') || $util.isString(message.uid))) + return 'uid: buffer expected'; + if (message.salt != null && message.hasOwnProperty('salt')) + if (!((message.salt && typeof message.salt.length === 'number') || $util.isString(message.salt))) + return 'salt: buffer expected'; + if (message.iterations != null && message.hasOwnProperty('iterations')) + if (!$util.isInteger(message.iterations)) return 'iterations: integer expected'; + if (message.encryptedClientKey != null && message.hasOwnProperty('encryptedClientKey')) + if ( + !( + (message.encryptedClientKey && typeof message.encryptedClientKey.length === 'number') || + $util.isString(message.encryptedClientKey) + ) + ) + return 'encryptedClientKey: buffer expected'; + if (message.authHash != null && message.hasOwnProperty('authHash')) + if ( + !( + (message.authHash && typeof message.authHash.length === 'number') || + $util.isString(message.authHash) + ) + ) + return 'authHash: buffer expected'; + if (message.encryptedDataKey != null && message.hasOwnProperty('encryptedDataKey')) + if ( + !( + (message.encryptedDataKey && typeof message.encryptedDataKey.length === 'number') || + $util.isString(message.encryptedDataKey) + ) + ) + return 'encryptedDataKey: buffer expected'; + if (message.loginType != null && message.hasOwnProperty('loginType')) switch (message.loginType) { - default: - return "loginType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - break; + default: + return 'loginType: enum value expected'; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + break; } - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.algorithm != null && message.hasOwnProperty("algorithm")) - if (!$util.isInteger(message.algorithm)) - return "algorithm: integer expected"; + if (message.name != null && message.hasOwnProperty('name')) + if (!$util.isString(message.name)) return 'name: string expected'; + if (message.algorithm != null && message.hasOwnProperty('algorithm')) + if (!$util.isInteger(message.algorithm)) return 'algorithm: integer expected'; return null; }; @@ -12168,76 +12541,87 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.UserAuthRequest} UserAuthRequest */ UserAuthRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.UserAuthRequest) - return object; + if (object instanceof $root.Authentication.UserAuthRequest) return object; let message = new $root.Authentication.UserAuthRequest(); if (object.uid != null) - if (typeof object.uid === "string") - $util.base64.decode(object.uid, message.uid = $util.newBuffer($util.base64.length(object.uid)), 0); - else if (object.uid.length >= 0) - message.uid = object.uid; + if (typeof object.uid === 'string') + $util.base64.decode( + object.uid, + (message.uid = $util.newBuffer($util.base64.length(object.uid))), + 0 + ); + else if (object.uid.length >= 0) message.uid = object.uid; if (object.salt != null) - if (typeof object.salt === "string") - $util.base64.decode(object.salt, message.salt = $util.newBuffer($util.base64.length(object.salt)), 0); - else if (object.salt.length >= 0) - message.salt = object.salt; - if (object.iterations != null) - message.iterations = object.iterations | 0; + if (typeof object.salt === 'string') + $util.base64.decode( + object.salt, + (message.salt = $util.newBuffer($util.base64.length(object.salt))), + 0 + ); + else if (object.salt.length >= 0) message.salt = object.salt; + if (object.iterations != null) message.iterations = object.iterations | 0; if (object.encryptedClientKey != null) - if (typeof object.encryptedClientKey === "string") - $util.base64.decode(object.encryptedClientKey, message.encryptedClientKey = $util.newBuffer($util.base64.length(object.encryptedClientKey)), 0); - else if (object.encryptedClientKey.length >= 0) - message.encryptedClientKey = object.encryptedClientKey; + if (typeof object.encryptedClientKey === 'string') + $util.base64.decode( + object.encryptedClientKey, + (message.encryptedClientKey = $util.newBuffer($util.base64.length(object.encryptedClientKey))), + 0 + ); + else if (object.encryptedClientKey.length >= 0) message.encryptedClientKey = object.encryptedClientKey; if (object.authHash != null) - if (typeof object.authHash === "string") - $util.base64.decode(object.authHash, message.authHash = $util.newBuffer($util.base64.length(object.authHash)), 0); - else if (object.authHash.length >= 0) - message.authHash = object.authHash; + if (typeof object.authHash === 'string') + $util.base64.decode( + object.authHash, + (message.authHash = $util.newBuffer($util.base64.length(object.authHash))), + 0 + ); + else if (object.authHash.length >= 0) message.authHash = object.authHash; if (object.encryptedDataKey != null) - if (typeof object.encryptedDataKey === "string") - $util.base64.decode(object.encryptedDataKey, message.encryptedDataKey = $util.newBuffer($util.base64.length(object.encryptedDataKey)), 0); - else if (object.encryptedDataKey.length >= 0) - message.encryptedDataKey = object.encryptedDataKey; + if (typeof object.encryptedDataKey === 'string') + $util.base64.decode( + object.encryptedDataKey, + (message.encryptedDataKey = $util.newBuffer($util.base64.length(object.encryptedDataKey))), + 0 + ); + else if (object.encryptedDataKey.length >= 0) message.encryptedDataKey = object.encryptedDataKey; switch (object.loginType) { - default: - if (typeof object.loginType === "number") { - message.loginType = object.loginType; - break; - } - break; - case "NORMAL": - case 0: - message.loginType = 0; - break; - case "SSO": - case 1: - message.loginType = 1; - break; - case "BIO": - case 2: - message.loginType = 2; - break; - case "ALTERNATE": - case 3: - message.loginType = 3; - break; - case "OFFLINE": - case 4: - message.loginType = 4; - break; - case "FORGOT_PASSWORD": - case 5: - message.loginType = 5; - break; - case "PASSKEY_BIO": - case 6: - message.loginType = 6; - break; + default: + if (typeof object.loginType === 'number') { + message.loginType = object.loginType; + break; + } + break; + case 'NORMAL': + case 0: + message.loginType = 0; + break; + case 'SSO': + case 1: + message.loginType = 1; + break; + case 'BIO': + case 2: + message.loginType = 2; + break; + case 'ALTERNATE': + case 3: + message.loginType = 3; + break; + case 'OFFLINE': + case 4: + message.loginType = 4; + break; + case 'FORGOT_PASSWORD': + case 5: + message.loginType = 5; + break; + case 'PASSKEY_BIO': + case 6: + message.loginType = 6; + break; } - if (object.name != null) - message.name = String(object.name); - if (object.algorithm != null) - message.algorithm = object.algorithm | 0; + if (object.name != null) message.name = String(object.name); + if (object.algorithm != null) message.algorithm = object.algorithm | 0; return message; }; @@ -12251,68 +12635,85 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ UserAuthRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.uid = ""; + if (options.bytes === String) object.uid = ''; else { object.uid = []; - if (options.bytes !== Array) - object.uid = $util.newBuffer(object.uid); + if (options.bytes !== Array) object.uid = $util.newBuffer(object.uid); } - if (options.bytes === String) - object.salt = ""; + if (options.bytes === String) object.salt = ''; else { object.salt = []; - if (options.bytes !== Array) - object.salt = $util.newBuffer(object.salt); + if (options.bytes !== Array) object.salt = $util.newBuffer(object.salt); } object.iterations = 0; - if (options.bytes === String) - object.encryptedClientKey = ""; + if (options.bytes === String) object.encryptedClientKey = ''; else { object.encryptedClientKey = []; - if (options.bytes !== Array) - object.encryptedClientKey = $util.newBuffer(object.encryptedClientKey); + if (options.bytes !== Array) object.encryptedClientKey = $util.newBuffer(object.encryptedClientKey); } - if (options.bytes === String) - object.authHash = ""; + if (options.bytes === String) object.authHash = ''; else { object.authHash = []; - if (options.bytes !== Array) - object.authHash = $util.newBuffer(object.authHash); + if (options.bytes !== Array) object.authHash = $util.newBuffer(object.authHash); } - if (options.bytes === String) - object.encryptedDataKey = ""; + if (options.bytes === String) object.encryptedDataKey = ''; else { object.encryptedDataKey = []; - if (options.bytes !== Array) - object.encryptedDataKey = $util.newBuffer(object.encryptedDataKey); + if (options.bytes !== Array) object.encryptedDataKey = $util.newBuffer(object.encryptedDataKey); } - object.loginType = options.enums === String ? "NORMAL" : 0; - object.name = ""; + object.loginType = options.enums === String ? 'NORMAL' : 0; + object.name = ''; object.algorithm = 0; } - if (message.uid != null && message.hasOwnProperty("uid")) - object.uid = options.bytes === String ? $util.base64.encode(message.uid, 0, message.uid.length) : options.bytes === Array ? Array.prototype.slice.call(message.uid) : message.uid; - if (message.salt != null && message.hasOwnProperty("salt")) - object.salt = options.bytes === String ? $util.base64.encode(message.salt, 0, message.salt.length) : options.bytes === Array ? Array.prototype.slice.call(message.salt) : message.salt; - if (message.iterations != null && message.hasOwnProperty("iterations")) + if (message.uid != null && message.hasOwnProperty('uid')) + object.uid = + options.bytes === String + ? $util.base64.encode(message.uid, 0, message.uid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.uid) + : message.uid; + if (message.salt != null && message.hasOwnProperty('salt')) + object.salt = + options.bytes === String + ? $util.base64.encode(message.salt, 0, message.salt.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.salt) + : message.salt; + if (message.iterations != null && message.hasOwnProperty('iterations')) object.iterations = message.iterations; - if (message.encryptedClientKey != null && message.hasOwnProperty("encryptedClientKey")) - object.encryptedClientKey = options.bytes === String ? $util.base64.encode(message.encryptedClientKey, 0, message.encryptedClientKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedClientKey) : message.encryptedClientKey; - if (message.authHash != null && message.hasOwnProperty("authHash")) - object.authHash = options.bytes === String ? $util.base64.encode(message.authHash, 0, message.authHash.length) : options.bytes === Array ? Array.prototype.slice.call(message.authHash) : message.authHash; - if (message.encryptedDataKey != null && message.hasOwnProperty("encryptedDataKey")) - object.encryptedDataKey = options.bytes === String ? $util.base64.encode(message.encryptedDataKey, 0, message.encryptedDataKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedDataKey) : message.encryptedDataKey; - if (message.loginType != null && message.hasOwnProperty("loginType")) - object.loginType = options.enums === String ? $root.Authentication.LoginType[message.loginType] === undefined ? message.loginType : $root.Authentication.LoginType[message.loginType] : message.loginType; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.algorithm != null && message.hasOwnProperty("algorithm")) - object.algorithm = message.algorithm; + if (message.encryptedClientKey != null && message.hasOwnProperty('encryptedClientKey')) + object.encryptedClientKey = + options.bytes === String + ? $util.base64.encode(message.encryptedClientKey, 0, message.encryptedClientKey.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.encryptedClientKey) + : message.encryptedClientKey; + if (message.authHash != null && message.hasOwnProperty('authHash')) + object.authHash = + options.bytes === String + ? $util.base64.encode(message.authHash, 0, message.authHash.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.authHash) + : message.authHash; + if (message.encryptedDataKey != null && message.hasOwnProperty('encryptedDataKey')) + object.encryptedDataKey = + options.bytes === String + ? $util.base64.encode(message.encryptedDataKey, 0, message.encryptedDataKey.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.encryptedDataKey) + : message.encryptedDataKey; + if (message.loginType != null && message.hasOwnProperty('loginType')) + object.loginType = + options.enums === String + ? $root.Authentication.LoginType[message.loginType] === undefined + ? message.loginType + : $root.Authentication.LoginType[message.loginType] + : message.loginType; + if (message.name != null && message.hasOwnProperty('name')) object.name = message.name; + if (message.algorithm != null && message.hasOwnProperty('algorithm')) object.algorithm = message.algorithm; return object; }; @@ -12337,16 +12738,15 @@ export const Authentication = $root.Authentication = (() => { */ UserAuthRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.UserAuthRequest"; + return typeUrlPrefix + '/Authentication.UserAuthRequest'; }; return UserAuthRequest; })(); - Authentication.UidRequest = (function() { - + Authentication.UidRequest = (function () { /** * Properties of an UidRequest. * @memberof Authentication @@ -12366,8 +12766,7 @@ export const Authentication = $root.Authentication = (() => { this.uid = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -12400,11 +12799,10 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ UidRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.uid != null && message.uid.length) for (let i = 0; i < message.uid.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.uid[i]); + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.uid[i]); return writer; }; @@ -12433,21 +12831,20 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ UidRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.UidRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.UidRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (!(message.uid && message.uid.length)) - message.uid = []; + case 1: { + if (!(message.uid && message.uid.length)) message.uid = []; message.uid.push(reader.bytes()); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -12464,8 +12861,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ UidRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -12478,14 +12874,17 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ UidRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.uid != null && message.hasOwnProperty("uid")) { - if (!Array.isArray(message.uid)) - return "uid: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.uid != null && message.hasOwnProperty('uid')) { + if (!Array.isArray(message.uid)) return 'uid: array expected'; for (let i = 0; i < message.uid.length; ++i) - if (!(message.uid[i] && typeof message.uid[i].length === "number" || $util.isString(message.uid[i]))) - return "uid: buffer[] expected"; + if ( + !( + (message.uid[i] && typeof message.uid[i].length === 'number') || + $util.isString(message.uid[i]) + ) + ) + return 'uid: buffer[] expected'; } return null; }; @@ -12499,18 +12898,19 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.UidRequest} UidRequest */ UidRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.UidRequest) - return object; + if (object instanceof $root.Authentication.UidRequest) return object; let message = new $root.Authentication.UidRequest(); if (object.uid) { - if (!Array.isArray(object.uid)) - throw TypeError(".Authentication.UidRequest.uid: array expected"); + if (!Array.isArray(object.uid)) throw TypeError('.Authentication.UidRequest.uid: array expected'); message.uid = []; for (let i = 0; i < object.uid.length; ++i) - if (typeof object.uid[i] === "string") - $util.base64.decode(object.uid[i], message.uid[i] = $util.newBuffer($util.base64.length(object.uid[i])), 0); - else if (object.uid[i].length >= 0) - message.uid[i] = object.uid[i]; + if (typeof object.uid[i] === 'string') + $util.base64.decode( + object.uid[i], + (message.uid[i] = $util.newBuffer($util.base64.length(object.uid[i]))), + 0 + ); + else if (object.uid[i].length >= 0) message.uid[i] = object.uid[i]; } return message; }; @@ -12525,15 +12925,18 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ UidRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.uid = []; + if (options.arrays || options.defaults) object.uid = []; if (message.uid && message.uid.length) { object.uid = []; for (let j = 0; j < message.uid.length; ++j) - object.uid[j] = options.bytes === String ? $util.base64.encode(message.uid[j], 0, message.uid[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.uid[j]) : message.uid[j]; + object.uid[j] = + options.bytes === String + ? $util.base64.encode(message.uid[j], 0, message.uid[j].length) + : options.bytes === Array + ? Array.prototype.slice.call(message.uid[j]) + : message.uid[j]; } return object; }; @@ -12559,16 +12962,15 @@ export const Authentication = $root.Authentication = (() => { */ UidRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.UidRequest"; + return typeUrlPrefix + '/Authentication.UidRequest'; }; return UidRequest; })(); - Authentication.DeviceUpdateRequest = (function() { - + Authentication.DeviceUpdateRequest = (function () { /** * Properties of a DeviceUpdateRequest. * @memberof Authentication @@ -12593,8 +12995,7 @@ export const Authentication = $root.Authentication = (() => { function DeviceUpdateRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -12611,7 +13012,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.DeviceUpdateRequest * @instance */ - DeviceUpdateRequest.prototype.clientVersion = ""; + DeviceUpdateRequest.prototype.clientVersion = ''; /** * DeviceUpdateRequest deviceName. @@ -12619,7 +13020,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.DeviceUpdateRequest * @instance */ - DeviceUpdateRequest.prototype.deviceName = ""; + DeviceUpdateRequest.prototype.deviceName = ''; /** * DeviceUpdateRequest devicePublicKey. @@ -12643,7 +13044,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.DeviceUpdateRequest * @instance */ - DeviceUpdateRequest.prototype.devicePlatform = ""; + DeviceUpdateRequest.prototype.devicePlatform = ''; /** * DeviceUpdateRequest clientFormFactor. @@ -12675,22 +13076,21 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ DeviceUpdateRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.encryptedDeviceToken != null && Object.hasOwnProperty.call(message, "encryptedDeviceToken")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.encryptedDeviceToken); - if (message.clientVersion != null && Object.hasOwnProperty.call(message, "clientVersion")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.clientVersion); - if (message.deviceName != null && Object.hasOwnProperty.call(message, "deviceName")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.deviceName); - if (message.devicePublicKey != null && Object.hasOwnProperty.call(message, "devicePublicKey")) - writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.devicePublicKey); - if (message.deviceStatus != null && Object.hasOwnProperty.call(message, "deviceStatus")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.deviceStatus); - if (message.devicePlatform != null && Object.hasOwnProperty.call(message, "devicePlatform")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.devicePlatform); - if (message.clientFormFactor != null && Object.hasOwnProperty.call(message, "clientFormFactor")) - writer.uint32(/* id 7, wireType 0 =*/56).int32(message.clientFormFactor); + if (!writer) writer = $Writer.create(); + if (message.encryptedDeviceToken != null && Object.hasOwnProperty.call(message, 'encryptedDeviceToken')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.encryptedDeviceToken); + if (message.clientVersion != null && Object.hasOwnProperty.call(message, 'clientVersion')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.clientVersion); + if (message.deviceName != null && Object.hasOwnProperty.call(message, 'deviceName')) + writer.uint32(/* id 3, wireType 2 =*/ 26).string(message.deviceName); + if (message.devicePublicKey != null && Object.hasOwnProperty.call(message, 'devicePublicKey')) + writer.uint32(/* id 4, wireType 2 =*/ 34).bytes(message.devicePublicKey); + if (message.deviceStatus != null && Object.hasOwnProperty.call(message, 'deviceStatus')) + writer.uint32(/* id 5, wireType 0 =*/ 40).int32(message.deviceStatus); + if (message.devicePlatform != null && Object.hasOwnProperty.call(message, 'devicePlatform')) + writer.uint32(/* id 6, wireType 2 =*/ 50).string(message.devicePlatform); + if (message.clientFormFactor != null && Object.hasOwnProperty.call(message, 'clientFormFactor')) + writer.uint32(/* id 7, wireType 0 =*/ 56).int32(message.clientFormFactor); return writer; }; @@ -12719,43 +13119,43 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ DeviceUpdateRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.DeviceUpdateRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.DeviceUpdateRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.encryptedDeviceToken = reader.bytes(); break; } - case 2: { + case 2: { message.clientVersion = reader.string(); break; } - case 3: { + case 3: { message.deviceName = reader.string(); break; } - case 4: { + case 4: { message.devicePublicKey = reader.bytes(); break; } - case 5: { + case 5: { message.deviceStatus = reader.int32(); break; } - case 6: { + case 6: { message.devicePlatform = reader.string(); break; } - case 7: { + case 7: { message.clientFormFactor = reader.int32(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -12772,8 +13172,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ DeviceUpdateRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -12786,42 +13185,48 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ DeviceUpdateRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.encryptedDeviceToken != null && message.hasOwnProperty("encryptedDeviceToken")) - if (!(message.encryptedDeviceToken && typeof message.encryptedDeviceToken.length === "number" || $util.isString(message.encryptedDeviceToken))) - return "encryptedDeviceToken: buffer expected"; - if (message.clientVersion != null && message.hasOwnProperty("clientVersion")) - if (!$util.isString(message.clientVersion)) - return "clientVersion: string expected"; - if (message.deviceName != null && message.hasOwnProperty("deviceName")) - if (!$util.isString(message.deviceName)) - return "deviceName: string expected"; - if (message.devicePublicKey != null && message.hasOwnProperty("devicePublicKey")) - if (!(message.devicePublicKey && typeof message.devicePublicKey.length === "number" || $util.isString(message.devicePublicKey))) - return "devicePublicKey: buffer expected"; - if (message.deviceStatus != null && message.hasOwnProperty("deviceStatus")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.encryptedDeviceToken != null && message.hasOwnProperty('encryptedDeviceToken')) + if ( + !( + (message.encryptedDeviceToken && typeof message.encryptedDeviceToken.length === 'number') || + $util.isString(message.encryptedDeviceToken) + ) + ) + return 'encryptedDeviceToken: buffer expected'; + if (message.clientVersion != null && message.hasOwnProperty('clientVersion')) + if (!$util.isString(message.clientVersion)) return 'clientVersion: string expected'; + if (message.deviceName != null && message.hasOwnProperty('deviceName')) + if (!$util.isString(message.deviceName)) return 'deviceName: string expected'; + if (message.devicePublicKey != null && message.hasOwnProperty('devicePublicKey')) + if ( + !( + (message.devicePublicKey && typeof message.devicePublicKey.length === 'number') || + $util.isString(message.devicePublicKey) + ) + ) + return 'devicePublicKey: buffer expected'; + if (message.deviceStatus != null && message.hasOwnProperty('deviceStatus')) switch (message.deviceStatus) { - default: - return "deviceStatus: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; + default: + return 'deviceStatus: enum value expected'; + case 0: + case 1: + case 2: + case 3: + break; } - if (message.devicePlatform != null && message.hasOwnProperty("devicePlatform")) - if (!$util.isString(message.devicePlatform)) - return "devicePlatform: string expected"; - if (message.clientFormFactor != null && message.hasOwnProperty("clientFormFactor")) + if (message.devicePlatform != null && message.hasOwnProperty('devicePlatform')) + if (!$util.isString(message.devicePlatform)) return 'devicePlatform: string expected'; + if (message.clientFormFactor != null && message.hasOwnProperty('clientFormFactor')) switch (message.clientFormFactor) { - default: - return "clientFormFactor: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; + default: + return 'clientFormFactor: enum value expected'; + case 0: + case 1: + case 2: + case 3: + break; } return null; }; @@ -12835,72 +13240,77 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.DeviceUpdateRequest} DeviceUpdateRequest */ DeviceUpdateRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.DeviceUpdateRequest) - return object; + if (object instanceof $root.Authentication.DeviceUpdateRequest) return object; let message = new $root.Authentication.DeviceUpdateRequest(); if (object.encryptedDeviceToken != null) - if (typeof object.encryptedDeviceToken === "string") - $util.base64.decode(object.encryptedDeviceToken, message.encryptedDeviceToken = $util.newBuffer($util.base64.length(object.encryptedDeviceToken)), 0); + if (typeof object.encryptedDeviceToken === 'string') + $util.base64.decode( + object.encryptedDeviceToken, + (message.encryptedDeviceToken = $util.newBuffer( + $util.base64.length(object.encryptedDeviceToken) + )), + 0 + ); else if (object.encryptedDeviceToken.length >= 0) message.encryptedDeviceToken = object.encryptedDeviceToken; - if (object.clientVersion != null) - message.clientVersion = String(object.clientVersion); - if (object.deviceName != null) - message.deviceName = String(object.deviceName); + if (object.clientVersion != null) message.clientVersion = String(object.clientVersion); + if (object.deviceName != null) message.deviceName = String(object.deviceName); if (object.devicePublicKey != null) - if (typeof object.devicePublicKey === "string") - $util.base64.decode(object.devicePublicKey, message.devicePublicKey = $util.newBuffer($util.base64.length(object.devicePublicKey)), 0); - else if (object.devicePublicKey.length >= 0) - message.devicePublicKey = object.devicePublicKey; + if (typeof object.devicePublicKey === 'string') + $util.base64.decode( + object.devicePublicKey, + (message.devicePublicKey = $util.newBuffer($util.base64.length(object.devicePublicKey))), + 0 + ); + else if (object.devicePublicKey.length >= 0) message.devicePublicKey = object.devicePublicKey; switch (object.deviceStatus) { - default: - if (typeof object.deviceStatus === "number") { - message.deviceStatus = object.deviceStatus; - break; - } - break; - case "DEVICE_NEEDS_APPROVAL": - case 0: - message.deviceStatus = 0; - break; - case "DEVICE_OK": - case 1: - message.deviceStatus = 1; - break; - case "DEVICE_DISABLED_BY_USER": - case 2: - message.deviceStatus = 2; - break; - case "DEVICE_LOCKED_BY_ADMIN": - case 3: - message.deviceStatus = 3; - break; - } - if (object.devicePlatform != null) - message.devicePlatform = String(object.devicePlatform); + default: + if (typeof object.deviceStatus === 'number') { + message.deviceStatus = object.deviceStatus; + break; + } + break; + case 'DEVICE_NEEDS_APPROVAL': + case 0: + message.deviceStatus = 0; + break; + case 'DEVICE_OK': + case 1: + message.deviceStatus = 1; + break; + case 'DEVICE_DISABLED_BY_USER': + case 2: + message.deviceStatus = 2; + break; + case 'DEVICE_LOCKED_BY_ADMIN': + case 3: + message.deviceStatus = 3; + break; + } + if (object.devicePlatform != null) message.devicePlatform = String(object.devicePlatform); switch (object.clientFormFactor) { - default: - if (typeof object.clientFormFactor === "number") { - message.clientFormFactor = object.clientFormFactor; + default: + if (typeof object.clientFormFactor === 'number') { + message.clientFormFactor = object.clientFormFactor; + break; + } + break; + case 'FF_EMPTY': + case 0: + message.clientFormFactor = 0; + break; + case 'FF_PHONE': + case 1: + message.clientFormFactor = 1; + break; + case 'FF_TABLET': + case 2: + message.clientFormFactor = 2; + break; + case 'FF_WATCH': + case 3: + message.clientFormFactor = 3; break; - } - break; - case "FF_EMPTY": - case 0: - message.clientFormFactor = 0; - break; - case "FF_PHONE": - case 1: - message.clientFormFactor = 1; - break; - case "FF_TABLET": - case 2: - message.clientFormFactor = 2; - break; - case "FF_WATCH": - case 3: - message.clientFormFactor = 3; - break; } return message; }; @@ -12915,44 +13325,60 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ DeviceUpdateRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.encryptedDeviceToken = ""; + if (options.bytes === String) object.encryptedDeviceToken = ''; else { object.encryptedDeviceToken = []; if (options.bytes !== Array) object.encryptedDeviceToken = $util.newBuffer(object.encryptedDeviceToken); } - object.clientVersion = ""; - object.deviceName = ""; - if (options.bytes === String) - object.devicePublicKey = ""; + object.clientVersion = ''; + object.deviceName = ''; + if (options.bytes === String) object.devicePublicKey = ''; else { object.devicePublicKey = []; - if (options.bytes !== Array) - object.devicePublicKey = $util.newBuffer(object.devicePublicKey); - } - object.deviceStatus = options.enums === String ? "DEVICE_NEEDS_APPROVAL" : 0; - object.devicePlatform = ""; - object.clientFormFactor = options.enums === String ? "FF_EMPTY" : 0; - } - if (message.encryptedDeviceToken != null && message.hasOwnProperty("encryptedDeviceToken")) - object.encryptedDeviceToken = options.bytes === String ? $util.base64.encode(message.encryptedDeviceToken, 0, message.encryptedDeviceToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedDeviceToken) : message.encryptedDeviceToken; - if (message.clientVersion != null && message.hasOwnProperty("clientVersion")) + if (options.bytes !== Array) object.devicePublicKey = $util.newBuffer(object.devicePublicKey); + } + object.deviceStatus = options.enums === String ? 'DEVICE_NEEDS_APPROVAL' : 0; + object.devicePlatform = ''; + object.clientFormFactor = options.enums === String ? 'FF_EMPTY' : 0; + } + if (message.encryptedDeviceToken != null && message.hasOwnProperty('encryptedDeviceToken')) + object.encryptedDeviceToken = + options.bytes === String + ? $util.base64.encode(message.encryptedDeviceToken, 0, message.encryptedDeviceToken.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.encryptedDeviceToken) + : message.encryptedDeviceToken; + if (message.clientVersion != null && message.hasOwnProperty('clientVersion')) object.clientVersion = message.clientVersion; - if (message.deviceName != null && message.hasOwnProperty("deviceName")) + if (message.deviceName != null && message.hasOwnProperty('deviceName')) object.deviceName = message.deviceName; - if (message.devicePublicKey != null && message.hasOwnProperty("devicePublicKey")) - object.devicePublicKey = options.bytes === String ? $util.base64.encode(message.devicePublicKey, 0, message.devicePublicKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.devicePublicKey) : message.devicePublicKey; - if (message.deviceStatus != null && message.hasOwnProperty("deviceStatus")) - object.deviceStatus = options.enums === String ? $root.Authentication.DeviceStatus[message.deviceStatus] === undefined ? message.deviceStatus : $root.Authentication.DeviceStatus[message.deviceStatus] : message.deviceStatus; - if (message.devicePlatform != null && message.hasOwnProperty("devicePlatform")) + if (message.devicePublicKey != null && message.hasOwnProperty('devicePublicKey')) + object.devicePublicKey = + options.bytes === String + ? $util.base64.encode(message.devicePublicKey, 0, message.devicePublicKey.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.devicePublicKey) + : message.devicePublicKey; + if (message.deviceStatus != null && message.hasOwnProperty('deviceStatus')) + object.deviceStatus = + options.enums === String + ? $root.Authentication.DeviceStatus[message.deviceStatus] === undefined + ? message.deviceStatus + : $root.Authentication.DeviceStatus[message.deviceStatus] + : message.deviceStatus; + if (message.devicePlatform != null && message.hasOwnProperty('devicePlatform')) object.devicePlatform = message.devicePlatform; - if (message.clientFormFactor != null && message.hasOwnProperty("clientFormFactor")) - object.clientFormFactor = options.enums === String ? $root.Authentication.ClientFormFactor[message.clientFormFactor] === undefined ? message.clientFormFactor : $root.Authentication.ClientFormFactor[message.clientFormFactor] : message.clientFormFactor; + if (message.clientFormFactor != null && message.hasOwnProperty('clientFormFactor')) + object.clientFormFactor = + options.enums === String + ? $root.Authentication.ClientFormFactor[message.clientFormFactor] === undefined + ? message.clientFormFactor + : $root.Authentication.ClientFormFactor[message.clientFormFactor] + : message.clientFormFactor; return object; }; @@ -12977,16 +13403,15 @@ export const Authentication = $root.Authentication = (() => { */ DeviceUpdateRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.DeviceUpdateRequest"; + return typeUrlPrefix + '/Authentication.DeviceUpdateRequest'; }; return DeviceUpdateRequest; })(); - Authentication.DeviceUpdateResponse = (function() { - + Authentication.DeviceUpdateResponse = (function () { /** * Properties of a DeviceUpdateResponse. * @memberof Authentication @@ -13011,8 +13436,7 @@ export const Authentication = $root.Authentication = (() => { function DeviceUpdateResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -13029,7 +13453,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.DeviceUpdateResponse * @instance */ - DeviceUpdateResponse.prototype.clientVersion = ""; + DeviceUpdateResponse.prototype.clientVersion = ''; /** * DeviceUpdateResponse deviceName. @@ -13037,7 +13461,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.DeviceUpdateResponse * @instance */ - DeviceUpdateResponse.prototype.deviceName = ""; + DeviceUpdateResponse.prototype.deviceName = ''; /** * DeviceUpdateResponse devicePublicKey. @@ -13061,7 +13485,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.DeviceUpdateResponse * @instance */ - DeviceUpdateResponse.prototype.devicePlatform = ""; + DeviceUpdateResponse.prototype.devicePlatform = ''; /** * DeviceUpdateResponse clientFormFactor. @@ -13093,22 +13517,21 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ DeviceUpdateResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.encryptedDeviceToken != null && Object.hasOwnProperty.call(message, "encryptedDeviceToken")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.encryptedDeviceToken); - if (message.clientVersion != null && Object.hasOwnProperty.call(message, "clientVersion")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.clientVersion); - if (message.deviceName != null && Object.hasOwnProperty.call(message, "deviceName")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.deviceName); - if (message.devicePublicKey != null && Object.hasOwnProperty.call(message, "devicePublicKey")) - writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.devicePublicKey); - if (message.deviceStatus != null && Object.hasOwnProperty.call(message, "deviceStatus")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.deviceStatus); - if (message.devicePlatform != null && Object.hasOwnProperty.call(message, "devicePlatform")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.devicePlatform); - if (message.clientFormFactor != null && Object.hasOwnProperty.call(message, "clientFormFactor")) - writer.uint32(/* id 7, wireType 0 =*/56).int32(message.clientFormFactor); + if (!writer) writer = $Writer.create(); + if (message.encryptedDeviceToken != null && Object.hasOwnProperty.call(message, 'encryptedDeviceToken')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.encryptedDeviceToken); + if (message.clientVersion != null && Object.hasOwnProperty.call(message, 'clientVersion')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.clientVersion); + if (message.deviceName != null && Object.hasOwnProperty.call(message, 'deviceName')) + writer.uint32(/* id 3, wireType 2 =*/ 26).string(message.deviceName); + if (message.devicePublicKey != null && Object.hasOwnProperty.call(message, 'devicePublicKey')) + writer.uint32(/* id 4, wireType 2 =*/ 34).bytes(message.devicePublicKey); + if (message.deviceStatus != null && Object.hasOwnProperty.call(message, 'deviceStatus')) + writer.uint32(/* id 5, wireType 0 =*/ 40).int32(message.deviceStatus); + if (message.devicePlatform != null && Object.hasOwnProperty.call(message, 'devicePlatform')) + writer.uint32(/* id 6, wireType 2 =*/ 50).string(message.devicePlatform); + if (message.clientFormFactor != null && Object.hasOwnProperty.call(message, 'clientFormFactor')) + writer.uint32(/* id 7, wireType 0 =*/ 56).int32(message.clientFormFactor); return writer; }; @@ -13137,43 +13560,43 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ DeviceUpdateResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.DeviceUpdateResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.DeviceUpdateResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.encryptedDeviceToken = reader.bytes(); break; } - case 2: { + case 2: { message.clientVersion = reader.string(); break; } - case 3: { + case 3: { message.deviceName = reader.string(); break; } - case 4: { + case 4: { message.devicePublicKey = reader.bytes(); break; } - case 5: { + case 5: { message.deviceStatus = reader.int32(); break; } - case 6: { + case 6: { message.devicePlatform = reader.string(); break; } - case 7: { + case 7: { message.clientFormFactor = reader.int32(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -13190,8 +13613,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ DeviceUpdateResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -13204,42 +13626,48 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ DeviceUpdateResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.encryptedDeviceToken != null && message.hasOwnProperty("encryptedDeviceToken")) - if (!(message.encryptedDeviceToken && typeof message.encryptedDeviceToken.length === "number" || $util.isString(message.encryptedDeviceToken))) - return "encryptedDeviceToken: buffer expected"; - if (message.clientVersion != null && message.hasOwnProperty("clientVersion")) - if (!$util.isString(message.clientVersion)) - return "clientVersion: string expected"; - if (message.deviceName != null && message.hasOwnProperty("deviceName")) - if (!$util.isString(message.deviceName)) - return "deviceName: string expected"; - if (message.devicePublicKey != null && message.hasOwnProperty("devicePublicKey")) - if (!(message.devicePublicKey && typeof message.devicePublicKey.length === "number" || $util.isString(message.devicePublicKey))) - return "devicePublicKey: buffer expected"; - if (message.deviceStatus != null && message.hasOwnProperty("deviceStatus")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.encryptedDeviceToken != null && message.hasOwnProperty('encryptedDeviceToken')) + if ( + !( + (message.encryptedDeviceToken && typeof message.encryptedDeviceToken.length === 'number') || + $util.isString(message.encryptedDeviceToken) + ) + ) + return 'encryptedDeviceToken: buffer expected'; + if (message.clientVersion != null && message.hasOwnProperty('clientVersion')) + if (!$util.isString(message.clientVersion)) return 'clientVersion: string expected'; + if (message.deviceName != null && message.hasOwnProperty('deviceName')) + if (!$util.isString(message.deviceName)) return 'deviceName: string expected'; + if (message.devicePublicKey != null && message.hasOwnProperty('devicePublicKey')) + if ( + !( + (message.devicePublicKey && typeof message.devicePublicKey.length === 'number') || + $util.isString(message.devicePublicKey) + ) + ) + return 'devicePublicKey: buffer expected'; + if (message.deviceStatus != null && message.hasOwnProperty('deviceStatus')) switch (message.deviceStatus) { - default: - return "deviceStatus: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; + default: + return 'deviceStatus: enum value expected'; + case 0: + case 1: + case 2: + case 3: + break; } - if (message.devicePlatform != null && message.hasOwnProperty("devicePlatform")) - if (!$util.isString(message.devicePlatform)) - return "devicePlatform: string expected"; - if (message.clientFormFactor != null && message.hasOwnProperty("clientFormFactor")) + if (message.devicePlatform != null && message.hasOwnProperty('devicePlatform')) + if (!$util.isString(message.devicePlatform)) return 'devicePlatform: string expected'; + if (message.clientFormFactor != null && message.hasOwnProperty('clientFormFactor')) switch (message.clientFormFactor) { - default: - return "clientFormFactor: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; + default: + return 'clientFormFactor: enum value expected'; + case 0: + case 1: + case 2: + case 3: + break; } return null; }; @@ -13253,72 +13681,77 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.DeviceUpdateResponse} DeviceUpdateResponse */ DeviceUpdateResponse.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.DeviceUpdateResponse) - return object; + if (object instanceof $root.Authentication.DeviceUpdateResponse) return object; let message = new $root.Authentication.DeviceUpdateResponse(); if (object.encryptedDeviceToken != null) - if (typeof object.encryptedDeviceToken === "string") - $util.base64.decode(object.encryptedDeviceToken, message.encryptedDeviceToken = $util.newBuffer($util.base64.length(object.encryptedDeviceToken)), 0); + if (typeof object.encryptedDeviceToken === 'string') + $util.base64.decode( + object.encryptedDeviceToken, + (message.encryptedDeviceToken = $util.newBuffer( + $util.base64.length(object.encryptedDeviceToken) + )), + 0 + ); else if (object.encryptedDeviceToken.length >= 0) message.encryptedDeviceToken = object.encryptedDeviceToken; - if (object.clientVersion != null) - message.clientVersion = String(object.clientVersion); - if (object.deviceName != null) - message.deviceName = String(object.deviceName); + if (object.clientVersion != null) message.clientVersion = String(object.clientVersion); + if (object.deviceName != null) message.deviceName = String(object.deviceName); if (object.devicePublicKey != null) - if (typeof object.devicePublicKey === "string") - $util.base64.decode(object.devicePublicKey, message.devicePublicKey = $util.newBuffer($util.base64.length(object.devicePublicKey)), 0); - else if (object.devicePublicKey.length >= 0) - message.devicePublicKey = object.devicePublicKey; + if (typeof object.devicePublicKey === 'string') + $util.base64.decode( + object.devicePublicKey, + (message.devicePublicKey = $util.newBuffer($util.base64.length(object.devicePublicKey))), + 0 + ); + else if (object.devicePublicKey.length >= 0) message.devicePublicKey = object.devicePublicKey; switch (object.deviceStatus) { - default: - if (typeof object.deviceStatus === "number") { - message.deviceStatus = object.deviceStatus; - break; - } - break; - case "DEVICE_NEEDS_APPROVAL": - case 0: - message.deviceStatus = 0; - break; - case "DEVICE_OK": - case 1: - message.deviceStatus = 1; - break; - case "DEVICE_DISABLED_BY_USER": - case 2: - message.deviceStatus = 2; - break; - case "DEVICE_LOCKED_BY_ADMIN": - case 3: - message.deviceStatus = 3; - break; - } - if (object.devicePlatform != null) - message.devicePlatform = String(object.devicePlatform); + default: + if (typeof object.deviceStatus === 'number') { + message.deviceStatus = object.deviceStatus; + break; + } + break; + case 'DEVICE_NEEDS_APPROVAL': + case 0: + message.deviceStatus = 0; + break; + case 'DEVICE_OK': + case 1: + message.deviceStatus = 1; + break; + case 'DEVICE_DISABLED_BY_USER': + case 2: + message.deviceStatus = 2; + break; + case 'DEVICE_LOCKED_BY_ADMIN': + case 3: + message.deviceStatus = 3; + break; + } + if (object.devicePlatform != null) message.devicePlatform = String(object.devicePlatform); switch (object.clientFormFactor) { - default: - if (typeof object.clientFormFactor === "number") { - message.clientFormFactor = object.clientFormFactor; + default: + if (typeof object.clientFormFactor === 'number') { + message.clientFormFactor = object.clientFormFactor; + break; + } + break; + case 'FF_EMPTY': + case 0: + message.clientFormFactor = 0; + break; + case 'FF_PHONE': + case 1: + message.clientFormFactor = 1; + break; + case 'FF_TABLET': + case 2: + message.clientFormFactor = 2; + break; + case 'FF_WATCH': + case 3: + message.clientFormFactor = 3; break; - } - break; - case "FF_EMPTY": - case 0: - message.clientFormFactor = 0; - break; - case "FF_PHONE": - case 1: - message.clientFormFactor = 1; - break; - case "FF_TABLET": - case 2: - message.clientFormFactor = 2; - break; - case "FF_WATCH": - case 3: - message.clientFormFactor = 3; - break; } return message; }; @@ -13333,44 +13766,60 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ DeviceUpdateResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.encryptedDeviceToken = ""; + if (options.bytes === String) object.encryptedDeviceToken = ''; else { object.encryptedDeviceToken = []; if (options.bytes !== Array) object.encryptedDeviceToken = $util.newBuffer(object.encryptedDeviceToken); } - object.clientVersion = ""; - object.deviceName = ""; - if (options.bytes === String) - object.devicePublicKey = ""; + object.clientVersion = ''; + object.deviceName = ''; + if (options.bytes === String) object.devicePublicKey = ''; else { object.devicePublicKey = []; - if (options.bytes !== Array) - object.devicePublicKey = $util.newBuffer(object.devicePublicKey); - } - object.deviceStatus = options.enums === String ? "DEVICE_NEEDS_APPROVAL" : 0; - object.devicePlatform = ""; - object.clientFormFactor = options.enums === String ? "FF_EMPTY" : 0; - } - if (message.encryptedDeviceToken != null && message.hasOwnProperty("encryptedDeviceToken")) - object.encryptedDeviceToken = options.bytes === String ? $util.base64.encode(message.encryptedDeviceToken, 0, message.encryptedDeviceToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedDeviceToken) : message.encryptedDeviceToken; - if (message.clientVersion != null && message.hasOwnProperty("clientVersion")) + if (options.bytes !== Array) object.devicePublicKey = $util.newBuffer(object.devicePublicKey); + } + object.deviceStatus = options.enums === String ? 'DEVICE_NEEDS_APPROVAL' : 0; + object.devicePlatform = ''; + object.clientFormFactor = options.enums === String ? 'FF_EMPTY' : 0; + } + if (message.encryptedDeviceToken != null && message.hasOwnProperty('encryptedDeviceToken')) + object.encryptedDeviceToken = + options.bytes === String + ? $util.base64.encode(message.encryptedDeviceToken, 0, message.encryptedDeviceToken.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.encryptedDeviceToken) + : message.encryptedDeviceToken; + if (message.clientVersion != null && message.hasOwnProperty('clientVersion')) object.clientVersion = message.clientVersion; - if (message.deviceName != null && message.hasOwnProperty("deviceName")) + if (message.deviceName != null && message.hasOwnProperty('deviceName')) object.deviceName = message.deviceName; - if (message.devicePublicKey != null && message.hasOwnProperty("devicePublicKey")) - object.devicePublicKey = options.bytes === String ? $util.base64.encode(message.devicePublicKey, 0, message.devicePublicKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.devicePublicKey) : message.devicePublicKey; - if (message.deviceStatus != null && message.hasOwnProperty("deviceStatus")) - object.deviceStatus = options.enums === String ? $root.Authentication.DeviceStatus[message.deviceStatus] === undefined ? message.deviceStatus : $root.Authentication.DeviceStatus[message.deviceStatus] : message.deviceStatus; - if (message.devicePlatform != null && message.hasOwnProperty("devicePlatform")) + if (message.devicePublicKey != null && message.hasOwnProperty('devicePublicKey')) + object.devicePublicKey = + options.bytes === String + ? $util.base64.encode(message.devicePublicKey, 0, message.devicePublicKey.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.devicePublicKey) + : message.devicePublicKey; + if (message.deviceStatus != null && message.hasOwnProperty('deviceStatus')) + object.deviceStatus = + options.enums === String + ? $root.Authentication.DeviceStatus[message.deviceStatus] === undefined + ? message.deviceStatus + : $root.Authentication.DeviceStatus[message.deviceStatus] + : message.deviceStatus; + if (message.devicePlatform != null && message.hasOwnProperty('devicePlatform')) object.devicePlatform = message.devicePlatform; - if (message.clientFormFactor != null && message.hasOwnProperty("clientFormFactor")) - object.clientFormFactor = options.enums === String ? $root.Authentication.ClientFormFactor[message.clientFormFactor] === undefined ? message.clientFormFactor : $root.Authentication.ClientFormFactor[message.clientFormFactor] : message.clientFormFactor; + if (message.clientFormFactor != null && message.hasOwnProperty('clientFormFactor')) + object.clientFormFactor = + options.enums === String + ? $root.Authentication.ClientFormFactor[message.clientFormFactor] === undefined + ? message.clientFormFactor + : $root.Authentication.ClientFormFactor[message.clientFormFactor] + : message.clientFormFactor; return object; }; @@ -13395,16 +13844,15 @@ export const Authentication = $root.Authentication = (() => { */ DeviceUpdateResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.DeviceUpdateResponse"; + return typeUrlPrefix + '/Authentication.DeviceUpdateResponse'; }; return DeviceUpdateResponse; })(); - Authentication.RegisterDeviceInRegionRequest = (function() { - + Authentication.RegisterDeviceInRegionRequest = (function () { /** * Properties of a RegisterDeviceInRegionRequest. * @memberof Authentication @@ -13428,8 +13876,7 @@ export const Authentication = $root.Authentication = (() => { function RegisterDeviceInRegionRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -13446,7 +13893,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.RegisterDeviceInRegionRequest * @instance */ - RegisterDeviceInRegionRequest.prototype.clientVersion = ""; + RegisterDeviceInRegionRequest.prototype.clientVersion = ''; /** * RegisterDeviceInRegionRequest deviceName. @@ -13454,7 +13901,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.RegisterDeviceInRegionRequest * @instance */ - RegisterDeviceInRegionRequest.prototype.deviceName = ""; + RegisterDeviceInRegionRequest.prototype.deviceName = ''; /** * RegisterDeviceInRegionRequest devicePublicKey. @@ -13470,7 +13917,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.RegisterDeviceInRegionRequest * @instance */ - RegisterDeviceInRegionRequest.prototype.devicePlatform = ""; + RegisterDeviceInRegionRequest.prototype.devicePlatform = ''; /** * RegisterDeviceInRegionRequest clientFormFactor. @@ -13502,20 +13949,19 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ RegisterDeviceInRegionRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.encryptedDeviceToken != null && Object.hasOwnProperty.call(message, "encryptedDeviceToken")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.encryptedDeviceToken); - if (message.clientVersion != null && Object.hasOwnProperty.call(message, "clientVersion")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.clientVersion); - if (message.deviceName != null && Object.hasOwnProperty.call(message, "deviceName")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.deviceName); - if (message.devicePublicKey != null && Object.hasOwnProperty.call(message, "devicePublicKey")) - writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.devicePublicKey); - if (message.devicePlatform != null && Object.hasOwnProperty.call(message, "devicePlatform")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.devicePlatform); - if (message.clientFormFactor != null && Object.hasOwnProperty.call(message, "clientFormFactor")) - writer.uint32(/* id 6, wireType 0 =*/48).int32(message.clientFormFactor); + if (!writer) writer = $Writer.create(); + if (message.encryptedDeviceToken != null && Object.hasOwnProperty.call(message, 'encryptedDeviceToken')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.encryptedDeviceToken); + if (message.clientVersion != null && Object.hasOwnProperty.call(message, 'clientVersion')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.clientVersion); + if (message.deviceName != null && Object.hasOwnProperty.call(message, 'deviceName')) + writer.uint32(/* id 3, wireType 2 =*/ 26).string(message.deviceName); + if (message.devicePublicKey != null && Object.hasOwnProperty.call(message, 'devicePublicKey')) + writer.uint32(/* id 4, wireType 2 =*/ 34).bytes(message.devicePublicKey); + if (message.devicePlatform != null && Object.hasOwnProperty.call(message, 'devicePlatform')) + writer.uint32(/* id 5, wireType 2 =*/ 42).string(message.devicePlatform); + if (message.clientFormFactor != null && Object.hasOwnProperty.call(message, 'clientFormFactor')) + writer.uint32(/* id 6, wireType 0 =*/ 48).int32(message.clientFormFactor); return writer; }; @@ -13544,39 +13990,39 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RegisterDeviceInRegionRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.RegisterDeviceInRegionRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.RegisterDeviceInRegionRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.encryptedDeviceToken = reader.bytes(); break; } - case 2: { + case 2: { message.clientVersion = reader.string(); break; } - case 3: { + case 3: { message.deviceName = reader.string(); break; } - case 4: { + case 4: { message.devicePublicKey = reader.bytes(); break; } - case 5: { + case 5: { message.devicePlatform = reader.string(); break; } - case 6: { + case 6: { message.clientFormFactor = reader.int32(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -13593,8 +14039,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RegisterDeviceInRegionRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -13607,32 +14052,38 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ RegisterDeviceInRegionRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.encryptedDeviceToken != null && message.hasOwnProperty("encryptedDeviceToken")) - if (!(message.encryptedDeviceToken && typeof message.encryptedDeviceToken.length === "number" || $util.isString(message.encryptedDeviceToken))) - return "encryptedDeviceToken: buffer expected"; - if (message.clientVersion != null && message.hasOwnProperty("clientVersion")) - if (!$util.isString(message.clientVersion)) - return "clientVersion: string expected"; - if (message.deviceName != null && message.hasOwnProperty("deviceName")) - if (!$util.isString(message.deviceName)) - return "deviceName: string expected"; - if (message.devicePublicKey != null && message.hasOwnProperty("devicePublicKey")) - if (!(message.devicePublicKey && typeof message.devicePublicKey.length === "number" || $util.isString(message.devicePublicKey))) - return "devicePublicKey: buffer expected"; - if (message.devicePlatform != null && message.hasOwnProperty("devicePlatform")) - if (!$util.isString(message.devicePlatform)) - return "devicePlatform: string expected"; - if (message.clientFormFactor != null && message.hasOwnProperty("clientFormFactor")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.encryptedDeviceToken != null && message.hasOwnProperty('encryptedDeviceToken')) + if ( + !( + (message.encryptedDeviceToken && typeof message.encryptedDeviceToken.length === 'number') || + $util.isString(message.encryptedDeviceToken) + ) + ) + return 'encryptedDeviceToken: buffer expected'; + if (message.clientVersion != null && message.hasOwnProperty('clientVersion')) + if (!$util.isString(message.clientVersion)) return 'clientVersion: string expected'; + if (message.deviceName != null && message.hasOwnProperty('deviceName')) + if (!$util.isString(message.deviceName)) return 'deviceName: string expected'; + if (message.devicePublicKey != null && message.hasOwnProperty('devicePublicKey')) + if ( + !( + (message.devicePublicKey && typeof message.devicePublicKey.length === 'number') || + $util.isString(message.devicePublicKey) + ) + ) + return 'devicePublicKey: buffer expected'; + if (message.devicePlatform != null && message.hasOwnProperty('devicePlatform')) + if (!$util.isString(message.devicePlatform)) return 'devicePlatform: string expected'; + if (message.clientFormFactor != null && message.hasOwnProperty('clientFormFactor')) switch (message.clientFormFactor) { - default: - return "clientFormFactor: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; + default: + return 'clientFormFactor: enum value expected'; + case 0: + case 1: + case 2: + case 3: + break; } return null; }; @@ -13646,48 +14097,53 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.RegisterDeviceInRegionRequest} RegisterDeviceInRegionRequest */ RegisterDeviceInRegionRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.RegisterDeviceInRegionRequest) - return object; + if (object instanceof $root.Authentication.RegisterDeviceInRegionRequest) return object; let message = new $root.Authentication.RegisterDeviceInRegionRequest(); if (object.encryptedDeviceToken != null) - if (typeof object.encryptedDeviceToken === "string") - $util.base64.decode(object.encryptedDeviceToken, message.encryptedDeviceToken = $util.newBuffer($util.base64.length(object.encryptedDeviceToken)), 0); + if (typeof object.encryptedDeviceToken === 'string') + $util.base64.decode( + object.encryptedDeviceToken, + (message.encryptedDeviceToken = $util.newBuffer( + $util.base64.length(object.encryptedDeviceToken) + )), + 0 + ); else if (object.encryptedDeviceToken.length >= 0) message.encryptedDeviceToken = object.encryptedDeviceToken; - if (object.clientVersion != null) - message.clientVersion = String(object.clientVersion); - if (object.deviceName != null) - message.deviceName = String(object.deviceName); + if (object.clientVersion != null) message.clientVersion = String(object.clientVersion); + if (object.deviceName != null) message.deviceName = String(object.deviceName); if (object.devicePublicKey != null) - if (typeof object.devicePublicKey === "string") - $util.base64.decode(object.devicePublicKey, message.devicePublicKey = $util.newBuffer($util.base64.length(object.devicePublicKey)), 0); - else if (object.devicePublicKey.length >= 0) - message.devicePublicKey = object.devicePublicKey; - if (object.devicePlatform != null) - message.devicePlatform = String(object.devicePlatform); + if (typeof object.devicePublicKey === 'string') + $util.base64.decode( + object.devicePublicKey, + (message.devicePublicKey = $util.newBuffer($util.base64.length(object.devicePublicKey))), + 0 + ); + else if (object.devicePublicKey.length >= 0) message.devicePublicKey = object.devicePublicKey; + if (object.devicePlatform != null) message.devicePlatform = String(object.devicePlatform); switch (object.clientFormFactor) { - default: - if (typeof object.clientFormFactor === "number") { - message.clientFormFactor = object.clientFormFactor; + default: + if (typeof object.clientFormFactor === 'number') { + message.clientFormFactor = object.clientFormFactor; + break; + } + break; + case 'FF_EMPTY': + case 0: + message.clientFormFactor = 0; + break; + case 'FF_PHONE': + case 1: + message.clientFormFactor = 1; + break; + case 'FF_TABLET': + case 2: + message.clientFormFactor = 2; + break; + case 'FF_WATCH': + case 3: + message.clientFormFactor = 3; break; - } - break; - case "FF_EMPTY": - case 0: - message.clientFormFactor = 0; - break; - case "FF_PHONE": - case 1: - message.clientFormFactor = 1; - break; - case "FF_TABLET": - case 2: - message.clientFormFactor = 2; - break; - case "FF_WATCH": - case 3: - message.clientFormFactor = 3; - break; } return message; }; @@ -13702,41 +14158,52 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ RegisterDeviceInRegionRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.encryptedDeviceToken = ""; + if (options.bytes === String) object.encryptedDeviceToken = ''; else { object.encryptedDeviceToken = []; if (options.bytes !== Array) object.encryptedDeviceToken = $util.newBuffer(object.encryptedDeviceToken); } - object.clientVersion = ""; - object.deviceName = ""; - if (options.bytes === String) - object.devicePublicKey = ""; + object.clientVersion = ''; + object.deviceName = ''; + if (options.bytes === String) object.devicePublicKey = ''; else { object.devicePublicKey = []; - if (options.bytes !== Array) - object.devicePublicKey = $util.newBuffer(object.devicePublicKey); - } - object.devicePlatform = ""; - object.clientFormFactor = options.enums === String ? "FF_EMPTY" : 0; - } - if (message.encryptedDeviceToken != null && message.hasOwnProperty("encryptedDeviceToken")) - object.encryptedDeviceToken = options.bytes === String ? $util.base64.encode(message.encryptedDeviceToken, 0, message.encryptedDeviceToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedDeviceToken) : message.encryptedDeviceToken; - if (message.clientVersion != null && message.hasOwnProperty("clientVersion")) + if (options.bytes !== Array) object.devicePublicKey = $util.newBuffer(object.devicePublicKey); + } + object.devicePlatform = ''; + object.clientFormFactor = options.enums === String ? 'FF_EMPTY' : 0; + } + if (message.encryptedDeviceToken != null && message.hasOwnProperty('encryptedDeviceToken')) + object.encryptedDeviceToken = + options.bytes === String + ? $util.base64.encode(message.encryptedDeviceToken, 0, message.encryptedDeviceToken.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.encryptedDeviceToken) + : message.encryptedDeviceToken; + if (message.clientVersion != null && message.hasOwnProperty('clientVersion')) object.clientVersion = message.clientVersion; - if (message.deviceName != null && message.hasOwnProperty("deviceName")) + if (message.deviceName != null && message.hasOwnProperty('deviceName')) object.deviceName = message.deviceName; - if (message.devicePublicKey != null && message.hasOwnProperty("devicePublicKey")) - object.devicePublicKey = options.bytes === String ? $util.base64.encode(message.devicePublicKey, 0, message.devicePublicKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.devicePublicKey) : message.devicePublicKey; - if (message.devicePlatform != null && message.hasOwnProperty("devicePlatform")) + if (message.devicePublicKey != null && message.hasOwnProperty('devicePublicKey')) + object.devicePublicKey = + options.bytes === String + ? $util.base64.encode(message.devicePublicKey, 0, message.devicePublicKey.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.devicePublicKey) + : message.devicePublicKey; + if (message.devicePlatform != null && message.hasOwnProperty('devicePlatform')) object.devicePlatform = message.devicePlatform; - if (message.clientFormFactor != null && message.hasOwnProperty("clientFormFactor")) - object.clientFormFactor = options.enums === String ? $root.Authentication.ClientFormFactor[message.clientFormFactor] === undefined ? message.clientFormFactor : $root.Authentication.ClientFormFactor[message.clientFormFactor] : message.clientFormFactor; + if (message.clientFormFactor != null && message.hasOwnProperty('clientFormFactor')) + object.clientFormFactor = + options.enums === String + ? $root.Authentication.ClientFormFactor[message.clientFormFactor] === undefined + ? message.clientFormFactor + : $root.Authentication.ClientFormFactor[message.clientFormFactor] + : message.clientFormFactor; return object; }; @@ -13761,16 +14228,15 @@ export const Authentication = $root.Authentication = (() => { */ RegisterDeviceInRegionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.RegisterDeviceInRegionRequest"; + return typeUrlPrefix + '/Authentication.RegisterDeviceInRegionRequest'; }; return RegisterDeviceInRegionRequest; })(); - Authentication.RegistrationRequest = (function() { - + Authentication.RegistrationRequest = (function () { /** * Properties of a RegistrationRequest. * @memberof Authentication @@ -13798,8 +14264,7 @@ export const Authentication = $root.Authentication = (() => { function RegistrationRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -13848,7 +14313,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.RegistrationRequest * @instance */ - RegistrationRequest.prototype.verificationCode = ""; + RegistrationRequest.prototype.verificationCode = ''; /** * RegistrationRequest deprecatedAuthHashHash. @@ -13904,28 +14369,42 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ RegistrationRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.authRequest != null && Object.hasOwnProperty.call(message, "authRequest")) - $root.Authentication.AuthRequest.encode(message.authRequest, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.userAuthRequest != null && Object.hasOwnProperty.call(message, "userAuthRequest")) - $root.Authentication.UserAuthRequest.encode(message.userAuthRequest, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.encryptedClientKey != null && Object.hasOwnProperty.call(message, "encryptedClientKey")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.encryptedClientKey); - if (message.encryptedPrivateKey != null && Object.hasOwnProperty.call(message, "encryptedPrivateKey")) - writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.encryptedPrivateKey); - if (message.publicKey != null && Object.hasOwnProperty.call(message, "publicKey")) - writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.publicKey); - if (message.verificationCode != null && Object.hasOwnProperty.call(message, "verificationCode")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.verificationCode); - if (message.deprecatedAuthHashHash != null && Object.hasOwnProperty.call(message, "deprecatedAuthHashHash")) - writer.uint32(/* id 7, wireType 2 =*/58).bytes(message.deprecatedAuthHashHash); - if (message.deprecatedEncryptedClientKey != null && Object.hasOwnProperty.call(message, "deprecatedEncryptedClientKey")) - writer.uint32(/* id 8, wireType 2 =*/66).bytes(message.deprecatedEncryptedClientKey); - if (message.deprecatedEncryptedPrivateKey != null && Object.hasOwnProperty.call(message, "deprecatedEncryptedPrivateKey")) - writer.uint32(/* id 9, wireType 2 =*/74).bytes(message.deprecatedEncryptedPrivateKey); - if (message.deprecatedEncryptionParams != null && Object.hasOwnProperty.call(message, "deprecatedEncryptionParams")) - writer.uint32(/* id 10, wireType 2 =*/82).bytes(message.deprecatedEncryptionParams); + if (!writer) writer = $Writer.create(); + if (message.authRequest != null && Object.hasOwnProperty.call(message, 'authRequest')) + $root.Authentication.AuthRequest.encode( + message.authRequest, + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); + if (message.userAuthRequest != null && Object.hasOwnProperty.call(message, 'userAuthRequest')) + $root.Authentication.UserAuthRequest.encode( + message.userAuthRequest, + writer.uint32(/* id 2, wireType 2 =*/ 18).fork() + ).ldelim(); + if (message.encryptedClientKey != null && Object.hasOwnProperty.call(message, 'encryptedClientKey')) + writer.uint32(/* id 3, wireType 2 =*/ 26).bytes(message.encryptedClientKey); + if (message.encryptedPrivateKey != null && Object.hasOwnProperty.call(message, 'encryptedPrivateKey')) + writer.uint32(/* id 4, wireType 2 =*/ 34).bytes(message.encryptedPrivateKey); + if (message.publicKey != null && Object.hasOwnProperty.call(message, 'publicKey')) + writer.uint32(/* id 5, wireType 2 =*/ 42).bytes(message.publicKey); + if (message.verificationCode != null && Object.hasOwnProperty.call(message, 'verificationCode')) + writer.uint32(/* id 6, wireType 2 =*/ 50).string(message.verificationCode); + if (message.deprecatedAuthHashHash != null && Object.hasOwnProperty.call(message, 'deprecatedAuthHashHash')) + writer.uint32(/* id 7, wireType 2 =*/ 58).bytes(message.deprecatedAuthHashHash); + if ( + message.deprecatedEncryptedClientKey != null && + Object.hasOwnProperty.call(message, 'deprecatedEncryptedClientKey') + ) + writer.uint32(/* id 8, wireType 2 =*/ 66).bytes(message.deprecatedEncryptedClientKey); + if ( + message.deprecatedEncryptedPrivateKey != null && + Object.hasOwnProperty.call(message, 'deprecatedEncryptedPrivateKey') + ) + writer.uint32(/* id 9, wireType 2 =*/ 74).bytes(message.deprecatedEncryptedPrivateKey); + if ( + message.deprecatedEncryptionParams != null && + Object.hasOwnProperty.call(message, 'deprecatedEncryptionParams') + ) + writer.uint32(/* id 10, wireType 2 =*/ 82).bytes(message.deprecatedEncryptionParams); return writer; }; @@ -13954,55 +14433,55 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RegistrationRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.RegistrationRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.RegistrationRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.authRequest = $root.Authentication.AuthRequest.decode(reader, reader.uint32()); break; } - case 2: { + case 2: { message.userAuthRequest = $root.Authentication.UserAuthRequest.decode(reader, reader.uint32()); break; } - case 3: { + case 3: { message.encryptedClientKey = reader.bytes(); break; } - case 4: { + case 4: { message.encryptedPrivateKey = reader.bytes(); break; } - case 5: { + case 5: { message.publicKey = reader.bytes(); break; } - case 6: { + case 6: { message.verificationCode = reader.string(); break; } - case 7: { + case 7: { message.deprecatedAuthHashHash = reader.bytes(); break; } - case 8: { + case 8: { message.deprecatedEncryptedClientKey = reader.bytes(); break; } - case 9: { + case 9: { message.deprecatedEncryptedPrivateKey = reader.bytes(); break; } - case 10: { + case 10: { message.deprecatedEncryptionParams = reader.bytes(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -14019,8 +14498,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RegistrationRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -14033,42 +14511,79 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ RegistrationRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.authRequest != null && message.hasOwnProperty("authRequest")) { + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.authRequest != null && message.hasOwnProperty('authRequest')) { let error = $root.Authentication.AuthRequest.verify(message.authRequest); - if (error) - return "authRequest." + error; + if (error) return 'authRequest.' + error; } - if (message.userAuthRequest != null && message.hasOwnProperty("userAuthRequest")) { + if (message.userAuthRequest != null && message.hasOwnProperty('userAuthRequest')) { let error = $root.Authentication.UserAuthRequest.verify(message.userAuthRequest); - if (error) - return "userAuthRequest." + error; - } - if (message.encryptedClientKey != null && message.hasOwnProperty("encryptedClientKey")) - if (!(message.encryptedClientKey && typeof message.encryptedClientKey.length === "number" || $util.isString(message.encryptedClientKey))) - return "encryptedClientKey: buffer expected"; - if (message.encryptedPrivateKey != null && message.hasOwnProperty("encryptedPrivateKey")) - if (!(message.encryptedPrivateKey && typeof message.encryptedPrivateKey.length === "number" || $util.isString(message.encryptedPrivateKey))) - return "encryptedPrivateKey: buffer expected"; - if (message.publicKey != null && message.hasOwnProperty("publicKey")) - if (!(message.publicKey && typeof message.publicKey.length === "number" || $util.isString(message.publicKey))) - return "publicKey: buffer expected"; - if (message.verificationCode != null && message.hasOwnProperty("verificationCode")) - if (!$util.isString(message.verificationCode)) - return "verificationCode: string expected"; - if (message.deprecatedAuthHashHash != null && message.hasOwnProperty("deprecatedAuthHashHash")) - if (!(message.deprecatedAuthHashHash && typeof message.deprecatedAuthHashHash.length === "number" || $util.isString(message.deprecatedAuthHashHash))) - return "deprecatedAuthHashHash: buffer expected"; - if (message.deprecatedEncryptedClientKey != null && message.hasOwnProperty("deprecatedEncryptedClientKey")) - if (!(message.deprecatedEncryptedClientKey && typeof message.deprecatedEncryptedClientKey.length === "number" || $util.isString(message.deprecatedEncryptedClientKey))) - return "deprecatedEncryptedClientKey: buffer expected"; - if (message.deprecatedEncryptedPrivateKey != null && message.hasOwnProperty("deprecatedEncryptedPrivateKey")) - if (!(message.deprecatedEncryptedPrivateKey && typeof message.deprecatedEncryptedPrivateKey.length === "number" || $util.isString(message.deprecatedEncryptedPrivateKey))) - return "deprecatedEncryptedPrivateKey: buffer expected"; - if (message.deprecatedEncryptionParams != null && message.hasOwnProperty("deprecatedEncryptionParams")) - if (!(message.deprecatedEncryptionParams && typeof message.deprecatedEncryptionParams.length === "number" || $util.isString(message.deprecatedEncryptionParams))) - return "deprecatedEncryptionParams: buffer expected"; + if (error) return 'userAuthRequest.' + error; + } + if (message.encryptedClientKey != null && message.hasOwnProperty('encryptedClientKey')) + if ( + !( + (message.encryptedClientKey && typeof message.encryptedClientKey.length === 'number') || + $util.isString(message.encryptedClientKey) + ) + ) + return 'encryptedClientKey: buffer expected'; + if (message.encryptedPrivateKey != null && message.hasOwnProperty('encryptedPrivateKey')) + if ( + !( + (message.encryptedPrivateKey && typeof message.encryptedPrivateKey.length === 'number') || + $util.isString(message.encryptedPrivateKey) + ) + ) + return 'encryptedPrivateKey: buffer expected'; + if (message.publicKey != null && message.hasOwnProperty('publicKey')) + if ( + !( + (message.publicKey && typeof message.publicKey.length === 'number') || + $util.isString(message.publicKey) + ) + ) + return 'publicKey: buffer expected'; + if (message.verificationCode != null && message.hasOwnProperty('verificationCode')) + if (!$util.isString(message.verificationCode)) return 'verificationCode: string expected'; + if (message.deprecatedAuthHashHash != null && message.hasOwnProperty('deprecatedAuthHashHash')) + if ( + !( + (message.deprecatedAuthHashHash && typeof message.deprecatedAuthHashHash.length === 'number') || + $util.isString(message.deprecatedAuthHashHash) + ) + ) + return 'deprecatedAuthHashHash: buffer expected'; + if (message.deprecatedEncryptedClientKey != null && message.hasOwnProperty('deprecatedEncryptedClientKey')) + if ( + !( + (message.deprecatedEncryptedClientKey && + typeof message.deprecatedEncryptedClientKey.length === 'number') || + $util.isString(message.deprecatedEncryptedClientKey) + ) + ) + return 'deprecatedEncryptedClientKey: buffer expected'; + if ( + message.deprecatedEncryptedPrivateKey != null && + message.hasOwnProperty('deprecatedEncryptedPrivateKey') + ) + if ( + !( + (message.deprecatedEncryptedPrivateKey && + typeof message.deprecatedEncryptedPrivateKey.length === 'number') || + $util.isString(message.deprecatedEncryptedPrivateKey) + ) + ) + return 'deprecatedEncryptedPrivateKey: buffer expected'; + if (message.deprecatedEncryptionParams != null && message.hasOwnProperty('deprecatedEncryptionParams')) + if ( + !( + (message.deprecatedEncryptionParams && + typeof message.deprecatedEncryptionParams.length === 'number') || + $util.isString(message.deprecatedEncryptionParams) + ) + ) + return 'deprecatedEncryptionParams: buffer expected'; return null; }; @@ -14081,54 +14596,88 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.RegistrationRequest} RegistrationRequest */ RegistrationRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.RegistrationRequest) - return object; + if (object instanceof $root.Authentication.RegistrationRequest) return object; let message = new $root.Authentication.RegistrationRequest(); if (object.authRequest != null) { - if (typeof object.authRequest !== "object") - throw TypeError(".Authentication.RegistrationRequest.authRequest: object expected"); + if (typeof object.authRequest !== 'object') + throw TypeError('.Authentication.RegistrationRequest.authRequest: object expected'); message.authRequest = $root.Authentication.AuthRequest.fromObject(object.authRequest); } if (object.userAuthRequest != null) { - if (typeof object.userAuthRequest !== "object") - throw TypeError(".Authentication.RegistrationRequest.userAuthRequest: object expected"); + if (typeof object.userAuthRequest !== 'object') + throw TypeError('.Authentication.RegistrationRequest.userAuthRequest: object expected'); message.userAuthRequest = $root.Authentication.UserAuthRequest.fromObject(object.userAuthRequest); } if (object.encryptedClientKey != null) - if (typeof object.encryptedClientKey === "string") - $util.base64.decode(object.encryptedClientKey, message.encryptedClientKey = $util.newBuffer($util.base64.length(object.encryptedClientKey)), 0); - else if (object.encryptedClientKey.length >= 0) - message.encryptedClientKey = object.encryptedClientKey; + if (typeof object.encryptedClientKey === 'string') + $util.base64.decode( + object.encryptedClientKey, + (message.encryptedClientKey = $util.newBuffer($util.base64.length(object.encryptedClientKey))), + 0 + ); + else if (object.encryptedClientKey.length >= 0) message.encryptedClientKey = object.encryptedClientKey; if (object.encryptedPrivateKey != null) - if (typeof object.encryptedPrivateKey === "string") - $util.base64.decode(object.encryptedPrivateKey, message.encryptedPrivateKey = $util.newBuffer($util.base64.length(object.encryptedPrivateKey)), 0); + if (typeof object.encryptedPrivateKey === 'string') + $util.base64.decode( + object.encryptedPrivateKey, + (message.encryptedPrivateKey = $util.newBuffer( + $util.base64.length(object.encryptedPrivateKey) + )), + 0 + ); else if (object.encryptedPrivateKey.length >= 0) message.encryptedPrivateKey = object.encryptedPrivateKey; if (object.publicKey != null) - if (typeof object.publicKey === "string") - $util.base64.decode(object.publicKey, message.publicKey = $util.newBuffer($util.base64.length(object.publicKey)), 0); - else if (object.publicKey.length >= 0) - message.publicKey = object.publicKey; - if (object.verificationCode != null) - message.verificationCode = String(object.verificationCode); + if (typeof object.publicKey === 'string') + $util.base64.decode( + object.publicKey, + (message.publicKey = $util.newBuffer($util.base64.length(object.publicKey))), + 0 + ); + else if (object.publicKey.length >= 0) message.publicKey = object.publicKey; + if (object.verificationCode != null) message.verificationCode = String(object.verificationCode); if (object.deprecatedAuthHashHash != null) - if (typeof object.deprecatedAuthHashHash === "string") - $util.base64.decode(object.deprecatedAuthHashHash, message.deprecatedAuthHashHash = $util.newBuffer($util.base64.length(object.deprecatedAuthHashHash)), 0); + if (typeof object.deprecatedAuthHashHash === 'string') + $util.base64.decode( + object.deprecatedAuthHashHash, + (message.deprecatedAuthHashHash = $util.newBuffer( + $util.base64.length(object.deprecatedAuthHashHash) + )), + 0 + ); else if (object.deprecatedAuthHashHash.length >= 0) message.deprecatedAuthHashHash = object.deprecatedAuthHashHash; if (object.deprecatedEncryptedClientKey != null) - if (typeof object.deprecatedEncryptedClientKey === "string") - $util.base64.decode(object.deprecatedEncryptedClientKey, message.deprecatedEncryptedClientKey = $util.newBuffer($util.base64.length(object.deprecatedEncryptedClientKey)), 0); + if (typeof object.deprecatedEncryptedClientKey === 'string') + $util.base64.decode( + object.deprecatedEncryptedClientKey, + (message.deprecatedEncryptedClientKey = $util.newBuffer( + $util.base64.length(object.deprecatedEncryptedClientKey) + )), + 0 + ); else if (object.deprecatedEncryptedClientKey.length >= 0) message.deprecatedEncryptedClientKey = object.deprecatedEncryptedClientKey; if (object.deprecatedEncryptedPrivateKey != null) - if (typeof object.deprecatedEncryptedPrivateKey === "string") - $util.base64.decode(object.deprecatedEncryptedPrivateKey, message.deprecatedEncryptedPrivateKey = $util.newBuffer($util.base64.length(object.deprecatedEncryptedPrivateKey)), 0); + if (typeof object.deprecatedEncryptedPrivateKey === 'string') + $util.base64.decode( + object.deprecatedEncryptedPrivateKey, + (message.deprecatedEncryptedPrivateKey = $util.newBuffer( + $util.base64.length(object.deprecatedEncryptedPrivateKey) + )), + 0 + ); else if (object.deprecatedEncryptedPrivateKey.length >= 0) message.deprecatedEncryptedPrivateKey = object.deprecatedEncryptedPrivateKey; if (object.deprecatedEncryptionParams != null) - if (typeof object.deprecatedEncryptionParams === "string") - $util.base64.decode(object.deprecatedEncryptionParams, message.deprecatedEncryptionParams = $util.newBuffer($util.base64.length(object.deprecatedEncryptionParams)), 0); + if (typeof object.deprecatedEncryptionParams === 'string') + $util.base64.decode( + object.deprecatedEncryptionParams, + (message.deprecatedEncryptionParams = $util.newBuffer( + $util.base64.length(object.deprecatedEncryptionParams) + )), + 0 + ); else if (object.deprecatedEncryptionParams.length >= 0) message.deprecatedEncryptionParams = object.deprecatedEncryptionParams; return message; @@ -14144,83 +14693,126 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ RegistrationRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { object.authRequest = null; object.userAuthRequest = null; - if (options.bytes === String) - object.encryptedClientKey = ""; + if (options.bytes === String) object.encryptedClientKey = ''; else { object.encryptedClientKey = []; - if (options.bytes !== Array) - object.encryptedClientKey = $util.newBuffer(object.encryptedClientKey); + if (options.bytes !== Array) object.encryptedClientKey = $util.newBuffer(object.encryptedClientKey); } - if (options.bytes === String) - object.encryptedPrivateKey = ""; + if (options.bytes === String) object.encryptedPrivateKey = ''; else { object.encryptedPrivateKey = []; if (options.bytes !== Array) object.encryptedPrivateKey = $util.newBuffer(object.encryptedPrivateKey); } - if (options.bytes === String) - object.publicKey = ""; + if (options.bytes === String) object.publicKey = ''; else { object.publicKey = []; - if (options.bytes !== Array) - object.publicKey = $util.newBuffer(object.publicKey); + if (options.bytes !== Array) object.publicKey = $util.newBuffer(object.publicKey); } - object.verificationCode = ""; - if (options.bytes === String) - object.deprecatedAuthHashHash = ""; + object.verificationCode = ''; + if (options.bytes === String) object.deprecatedAuthHashHash = ''; else { object.deprecatedAuthHashHash = []; if (options.bytes !== Array) object.deprecatedAuthHashHash = $util.newBuffer(object.deprecatedAuthHashHash); } - if (options.bytes === String) - object.deprecatedEncryptedClientKey = ""; + if (options.bytes === String) object.deprecatedEncryptedClientKey = ''; else { object.deprecatedEncryptedClientKey = []; if (options.bytes !== Array) object.deprecatedEncryptedClientKey = $util.newBuffer(object.deprecatedEncryptedClientKey); } - if (options.bytes === String) - object.deprecatedEncryptedPrivateKey = ""; + if (options.bytes === String) object.deprecatedEncryptedPrivateKey = ''; else { object.deprecatedEncryptedPrivateKey = []; if (options.bytes !== Array) object.deprecatedEncryptedPrivateKey = $util.newBuffer(object.deprecatedEncryptedPrivateKey); } - if (options.bytes === String) - object.deprecatedEncryptionParams = ""; + if (options.bytes === String) object.deprecatedEncryptionParams = ''; else { object.deprecatedEncryptionParams = []; if (options.bytes !== Array) object.deprecatedEncryptionParams = $util.newBuffer(object.deprecatedEncryptionParams); } } - if (message.authRequest != null && message.hasOwnProperty("authRequest")) + if (message.authRequest != null && message.hasOwnProperty('authRequest')) object.authRequest = $root.Authentication.AuthRequest.toObject(message.authRequest, options); - if (message.userAuthRequest != null && message.hasOwnProperty("userAuthRequest")) - object.userAuthRequest = $root.Authentication.UserAuthRequest.toObject(message.userAuthRequest, options); - if (message.encryptedClientKey != null && message.hasOwnProperty("encryptedClientKey")) - object.encryptedClientKey = options.bytes === String ? $util.base64.encode(message.encryptedClientKey, 0, message.encryptedClientKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedClientKey) : message.encryptedClientKey; - if (message.encryptedPrivateKey != null && message.hasOwnProperty("encryptedPrivateKey")) - object.encryptedPrivateKey = options.bytes === String ? $util.base64.encode(message.encryptedPrivateKey, 0, message.encryptedPrivateKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedPrivateKey) : message.encryptedPrivateKey; - if (message.publicKey != null && message.hasOwnProperty("publicKey")) - object.publicKey = options.bytes === String ? $util.base64.encode(message.publicKey, 0, message.publicKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.publicKey) : message.publicKey; - if (message.verificationCode != null && message.hasOwnProperty("verificationCode")) + if (message.userAuthRequest != null && message.hasOwnProperty('userAuthRequest')) + object.userAuthRequest = $root.Authentication.UserAuthRequest.toObject( + message.userAuthRequest, + options + ); + if (message.encryptedClientKey != null && message.hasOwnProperty('encryptedClientKey')) + object.encryptedClientKey = + options.bytes === String + ? $util.base64.encode(message.encryptedClientKey, 0, message.encryptedClientKey.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.encryptedClientKey) + : message.encryptedClientKey; + if (message.encryptedPrivateKey != null && message.hasOwnProperty('encryptedPrivateKey')) + object.encryptedPrivateKey = + options.bytes === String + ? $util.base64.encode(message.encryptedPrivateKey, 0, message.encryptedPrivateKey.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.encryptedPrivateKey) + : message.encryptedPrivateKey; + if (message.publicKey != null && message.hasOwnProperty('publicKey')) + object.publicKey = + options.bytes === String + ? $util.base64.encode(message.publicKey, 0, message.publicKey.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.publicKey) + : message.publicKey; + if (message.verificationCode != null && message.hasOwnProperty('verificationCode')) object.verificationCode = message.verificationCode; - if (message.deprecatedAuthHashHash != null && message.hasOwnProperty("deprecatedAuthHashHash")) - object.deprecatedAuthHashHash = options.bytes === String ? $util.base64.encode(message.deprecatedAuthHashHash, 0, message.deprecatedAuthHashHash.length) : options.bytes === Array ? Array.prototype.slice.call(message.deprecatedAuthHashHash) : message.deprecatedAuthHashHash; - if (message.deprecatedEncryptedClientKey != null && message.hasOwnProperty("deprecatedEncryptedClientKey")) - object.deprecatedEncryptedClientKey = options.bytes === String ? $util.base64.encode(message.deprecatedEncryptedClientKey, 0, message.deprecatedEncryptedClientKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.deprecatedEncryptedClientKey) : message.deprecatedEncryptedClientKey; - if (message.deprecatedEncryptedPrivateKey != null && message.hasOwnProperty("deprecatedEncryptedPrivateKey")) - object.deprecatedEncryptedPrivateKey = options.bytes === String ? $util.base64.encode(message.deprecatedEncryptedPrivateKey, 0, message.deprecatedEncryptedPrivateKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.deprecatedEncryptedPrivateKey) : message.deprecatedEncryptedPrivateKey; - if (message.deprecatedEncryptionParams != null && message.hasOwnProperty("deprecatedEncryptionParams")) - object.deprecatedEncryptionParams = options.bytes === String ? $util.base64.encode(message.deprecatedEncryptionParams, 0, message.deprecatedEncryptionParams.length) : options.bytes === Array ? Array.prototype.slice.call(message.deprecatedEncryptionParams) : message.deprecatedEncryptionParams; + if (message.deprecatedAuthHashHash != null && message.hasOwnProperty('deprecatedAuthHashHash')) + object.deprecatedAuthHashHash = + options.bytes === String + ? $util.base64.encode(message.deprecatedAuthHashHash, 0, message.deprecatedAuthHashHash.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.deprecatedAuthHashHash) + : message.deprecatedAuthHashHash; + if (message.deprecatedEncryptedClientKey != null && message.hasOwnProperty('deprecatedEncryptedClientKey')) + object.deprecatedEncryptedClientKey = + options.bytes === String + ? $util.base64.encode( + message.deprecatedEncryptedClientKey, + 0, + message.deprecatedEncryptedClientKey.length + ) + : options.bytes === Array + ? Array.prototype.slice.call(message.deprecatedEncryptedClientKey) + : message.deprecatedEncryptedClientKey; + if ( + message.deprecatedEncryptedPrivateKey != null && + message.hasOwnProperty('deprecatedEncryptedPrivateKey') + ) + object.deprecatedEncryptedPrivateKey = + options.bytes === String + ? $util.base64.encode( + message.deprecatedEncryptedPrivateKey, + 0, + message.deprecatedEncryptedPrivateKey.length + ) + : options.bytes === Array + ? Array.prototype.slice.call(message.deprecatedEncryptedPrivateKey) + : message.deprecatedEncryptedPrivateKey; + if (message.deprecatedEncryptionParams != null && message.hasOwnProperty('deprecatedEncryptionParams')) + object.deprecatedEncryptionParams = + options.bytes === String + ? $util.base64.encode( + message.deprecatedEncryptionParams, + 0, + message.deprecatedEncryptionParams.length + ) + : options.bytes === Array + ? Array.prototype.slice.call(message.deprecatedEncryptionParams) + : message.deprecatedEncryptionParams; return object; }; @@ -14245,16 +14837,15 @@ export const Authentication = $root.Authentication = (() => { */ RegistrationRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.RegistrationRequest"; + return typeUrlPrefix + '/Authentication.RegistrationRequest'; }; return RegistrationRequest; })(); - Authentication.ConvertUserToV3Request = (function() { - + Authentication.ConvertUserToV3Request = (function () { /** * Properties of a ConvertUserToV3Request. * @memberof Authentication @@ -14277,8 +14868,7 @@ export const Authentication = $root.Authentication = (() => { function ConvertUserToV3Request(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -14343,18 +14933,23 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ ConvertUserToV3Request.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.authRequest != null && Object.hasOwnProperty.call(message, "authRequest")) - $root.Authentication.AuthRequest.encode(message.authRequest, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.userAuthRequest != null && Object.hasOwnProperty.call(message, "userAuthRequest")) - $root.Authentication.UserAuthRequest.encode(message.userAuthRequest, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.encryptedClientKey != null && Object.hasOwnProperty.call(message, "encryptedClientKey")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.encryptedClientKey); - if (message.encryptedPrivateKey != null && Object.hasOwnProperty.call(message, "encryptedPrivateKey")) - writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.encryptedPrivateKey); - if (message.publicKey != null && Object.hasOwnProperty.call(message, "publicKey")) - writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.publicKey); + if (!writer) writer = $Writer.create(); + if (message.authRequest != null && Object.hasOwnProperty.call(message, 'authRequest')) + $root.Authentication.AuthRequest.encode( + message.authRequest, + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); + if (message.userAuthRequest != null && Object.hasOwnProperty.call(message, 'userAuthRequest')) + $root.Authentication.UserAuthRequest.encode( + message.userAuthRequest, + writer.uint32(/* id 2, wireType 2 =*/ 18).fork() + ).ldelim(); + if (message.encryptedClientKey != null && Object.hasOwnProperty.call(message, 'encryptedClientKey')) + writer.uint32(/* id 3, wireType 2 =*/ 26).bytes(message.encryptedClientKey); + if (message.encryptedPrivateKey != null && Object.hasOwnProperty.call(message, 'encryptedPrivateKey')) + writer.uint32(/* id 4, wireType 2 =*/ 34).bytes(message.encryptedPrivateKey); + if (message.publicKey != null && Object.hasOwnProperty.call(message, 'publicKey')) + writer.uint32(/* id 5, wireType 2 =*/ 42).bytes(message.publicKey); return writer; }; @@ -14383,35 +14978,35 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ConvertUserToV3Request.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.ConvertUserToV3Request(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.ConvertUserToV3Request(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.authRequest = $root.Authentication.AuthRequest.decode(reader, reader.uint32()); break; } - case 2: { + case 2: { message.userAuthRequest = $root.Authentication.UserAuthRequest.decode(reader, reader.uint32()); break; } - case 3: { + case 3: { message.encryptedClientKey = reader.bytes(); break; } - case 4: { + case 4: { message.encryptedPrivateKey = reader.bytes(); break; } - case 5: { + case 5: { message.publicKey = reader.bytes(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -14428,8 +15023,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ConvertUserToV3Request.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -14442,27 +15036,39 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ ConvertUserToV3Request.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.authRequest != null && message.hasOwnProperty("authRequest")) { + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.authRequest != null && message.hasOwnProperty('authRequest')) { let error = $root.Authentication.AuthRequest.verify(message.authRequest); - if (error) - return "authRequest." + error; + if (error) return 'authRequest.' + error; } - if (message.userAuthRequest != null && message.hasOwnProperty("userAuthRequest")) { + if (message.userAuthRequest != null && message.hasOwnProperty('userAuthRequest')) { let error = $root.Authentication.UserAuthRequest.verify(message.userAuthRequest); - if (error) - return "userAuthRequest." + error; - } - if (message.encryptedClientKey != null && message.hasOwnProperty("encryptedClientKey")) - if (!(message.encryptedClientKey && typeof message.encryptedClientKey.length === "number" || $util.isString(message.encryptedClientKey))) - return "encryptedClientKey: buffer expected"; - if (message.encryptedPrivateKey != null && message.hasOwnProperty("encryptedPrivateKey")) - if (!(message.encryptedPrivateKey && typeof message.encryptedPrivateKey.length === "number" || $util.isString(message.encryptedPrivateKey))) - return "encryptedPrivateKey: buffer expected"; - if (message.publicKey != null && message.hasOwnProperty("publicKey")) - if (!(message.publicKey && typeof message.publicKey.length === "number" || $util.isString(message.publicKey))) - return "publicKey: buffer expected"; + if (error) return 'userAuthRequest.' + error; + } + if (message.encryptedClientKey != null && message.hasOwnProperty('encryptedClientKey')) + if ( + !( + (message.encryptedClientKey && typeof message.encryptedClientKey.length === 'number') || + $util.isString(message.encryptedClientKey) + ) + ) + return 'encryptedClientKey: buffer expected'; + if (message.encryptedPrivateKey != null && message.hasOwnProperty('encryptedPrivateKey')) + if ( + !( + (message.encryptedPrivateKey && typeof message.encryptedPrivateKey.length === 'number') || + $util.isString(message.encryptedPrivateKey) + ) + ) + return 'encryptedPrivateKey: buffer expected'; + if (message.publicKey != null && message.hasOwnProperty('publicKey')) + if ( + !( + (message.publicKey && typeof message.publicKey.length === 'number') || + $util.isString(message.publicKey) + ) + ) + return 'publicKey: buffer expected'; return null; }; @@ -14475,34 +15081,45 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.ConvertUserToV3Request} ConvertUserToV3Request */ ConvertUserToV3Request.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.ConvertUserToV3Request) - return object; + if (object instanceof $root.Authentication.ConvertUserToV3Request) return object; let message = new $root.Authentication.ConvertUserToV3Request(); if (object.authRequest != null) { - if (typeof object.authRequest !== "object") - throw TypeError(".Authentication.ConvertUserToV3Request.authRequest: object expected"); + if (typeof object.authRequest !== 'object') + throw TypeError('.Authentication.ConvertUserToV3Request.authRequest: object expected'); message.authRequest = $root.Authentication.AuthRequest.fromObject(object.authRequest); } if (object.userAuthRequest != null) { - if (typeof object.userAuthRequest !== "object") - throw TypeError(".Authentication.ConvertUserToV3Request.userAuthRequest: object expected"); + if (typeof object.userAuthRequest !== 'object') + throw TypeError('.Authentication.ConvertUserToV3Request.userAuthRequest: object expected'); message.userAuthRequest = $root.Authentication.UserAuthRequest.fromObject(object.userAuthRequest); } if (object.encryptedClientKey != null) - if (typeof object.encryptedClientKey === "string") - $util.base64.decode(object.encryptedClientKey, message.encryptedClientKey = $util.newBuffer($util.base64.length(object.encryptedClientKey)), 0); - else if (object.encryptedClientKey.length >= 0) - message.encryptedClientKey = object.encryptedClientKey; + if (typeof object.encryptedClientKey === 'string') + $util.base64.decode( + object.encryptedClientKey, + (message.encryptedClientKey = $util.newBuffer($util.base64.length(object.encryptedClientKey))), + 0 + ); + else if (object.encryptedClientKey.length >= 0) message.encryptedClientKey = object.encryptedClientKey; if (object.encryptedPrivateKey != null) - if (typeof object.encryptedPrivateKey === "string") - $util.base64.decode(object.encryptedPrivateKey, message.encryptedPrivateKey = $util.newBuffer($util.base64.length(object.encryptedPrivateKey)), 0); + if (typeof object.encryptedPrivateKey === 'string') + $util.base64.decode( + object.encryptedPrivateKey, + (message.encryptedPrivateKey = $util.newBuffer( + $util.base64.length(object.encryptedPrivateKey) + )), + 0 + ); else if (object.encryptedPrivateKey.length >= 0) message.encryptedPrivateKey = object.encryptedPrivateKey; if (object.publicKey != null) - if (typeof object.publicKey === "string") - $util.base64.decode(object.publicKey, message.publicKey = $util.newBuffer($util.base64.length(object.publicKey)), 0); - else if (object.publicKey.length >= 0) - message.publicKey = object.publicKey; + if (typeof object.publicKey === 'string') + $util.base64.decode( + object.publicKey, + (message.publicKey = $util.newBuffer($util.base64.length(object.publicKey))), + 0 + ); + else if (object.publicKey.length >= 0) message.publicKey = object.publicKey; return message; }; @@ -14516,44 +15133,56 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ ConvertUserToV3Request.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { object.authRequest = null; object.userAuthRequest = null; - if (options.bytes === String) - object.encryptedClientKey = ""; + if (options.bytes === String) object.encryptedClientKey = ''; else { object.encryptedClientKey = []; - if (options.bytes !== Array) - object.encryptedClientKey = $util.newBuffer(object.encryptedClientKey); + if (options.bytes !== Array) object.encryptedClientKey = $util.newBuffer(object.encryptedClientKey); } - if (options.bytes === String) - object.encryptedPrivateKey = ""; + if (options.bytes === String) object.encryptedPrivateKey = ''; else { object.encryptedPrivateKey = []; if (options.bytes !== Array) object.encryptedPrivateKey = $util.newBuffer(object.encryptedPrivateKey); } - if (options.bytes === String) - object.publicKey = ""; + if (options.bytes === String) object.publicKey = ''; else { object.publicKey = []; - if (options.bytes !== Array) - object.publicKey = $util.newBuffer(object.publicKey); + if (options.bytes !== Array) object.publicKey = $util.newBuffer(object.publicKey); } } - if (message.authRequest != null && message.hasOwnProperty("authRequest")) + if (message.authRequest != null && message.hasOwnProperty('authRequest')) object.authRequest = $root.Authentication.AuthRequest.toObject(message.authRequest, options); - if (message.userAuthRequest != null && message.hasOwnProperty("userAuthRequest")) - object.userAuthRequest = $root.Authentication.UserAuthRequest.toObject(message.userAuthRequest, options); - if (message.encryptedClientKey != null && message.hasOwnProperty("encryptedClientKey")) - object.encryptedClientKey = options.bytes === String ? $util.base64.encode(message.encryptedClientKey, 0, message.encryptedClientKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedClientKey) : message.encryptedClientKey; - if (message.encryptedPrivateKey != null && message.hasOwnProperty("encryptedPrivateKey")) - object.encryptedPrivateKey = options.bytes === String ? $util.base64.encode(message.encryptedPrivateKey, 0, message.encryptedPrivateKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedPrivateKey) : message.encryptedPrivateKey; - if (message.publicKey != null && message.hasOwnProperty("publicKey")) - object.publicKey = options.bytes === String ? $util.base64.encode(message.publicKey, 0, message.publicKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.publicKey) : message.publicKey; + if (message.userAuthRequest != null && message.hasOwnProperty('userAuthRequest')) + object.userAuthRequest = $root.Authentication.UserAuthRequest.toObject( + message.userAuthRequest, + options + ); + if (message.encryptedClientKey != null && message.hasOwnProperty('encryptedClientKey')) + object.encryptedClientKey = + options.bytes === String + ? $util.base64.encode(message.encryptedClientKey, 0, message.encryptedClientKey.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.encryptedClientKey) + : message.encryptedClientKey; + if (message.encryptedPrivateKey != null && message.hasOwnProperty('encryptedPrivateKey')) + object.encryptedPrivateKey = + options.bytes === String + ? $util.base64.encode(message.encryptedPrivateKey, 0, message.encryptedPrivateKey.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.encryptedPrivateKey) + : message.encryptedPrivateKey; + if (message.publicKey != null && message.hasOwnProperty('publicKey')) + object.publicKey = + options.bytes === String + ? $util.base64.encode(message.publicKey, 0, message.publicKey.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.publicKey) + : message.publicKey; return object; }; @@ -14578,16 +15207,15 @@ export const Authentication = $root.Authentication = (() => { */ ConvertUserToV3Request.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.ConvertUserToV3Request"; + return typeUrlPrefix + '/Authentication.ConvertUserToV3Request'; }; return ConvertUserToV3Request; })(); - Authentication.RevisionResponse = (function() { - + Authentication.RevisionResponse = (function () { /** * Properties of a RevisionResponse. * @memberof Authentication @@ -14606,8 +15234,7 @@ export const Authentication = $root.Authentication = (() => { function RevisionResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -14616,7 +15243,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.RevisionResponse * @instance */ - RevisionResponse.prototype.revision = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + RevisionResponse.prototype.revision = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * Creates a new RevisionResponse instance using the specified properties. @@ -14640,10 +15267,9 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ RevisionResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.revision != null && Object.hasOwnProperty.call(message, "revision")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.revision); + if (!writer) writer = $Writer.create(); + if (message.revision != null && Object.hasOwnProperty.call(message, 'revision')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int64(message.revision); return writer; }; @@ -14672,19 +15298,19 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RevisionResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.RevisionResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.RevisionResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.revision = reader.int64(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -14701,8 +15327,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RevisionResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -14715,11 +15340,17 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ RevisionResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.revision != null && message.hasOwnProperty("revision")) - if (!$util.isInteger(message.revision) && !(message.revision && $util.isInteger(message.revision.low) && $util.isInteger(message.revision.high))) - return "revision: integer|Long expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.revision != null && message.hasOwnProperty('revision')) + if ( + !$util.isInteger(message.revision) && + !( + message.revision && + $util.isInteger(message.revision.low) && + $util.isInteger(message.revision.high) + ) + ) + return 'revision: integer|Long expected'; return null; }; @@ -14732,18 +15363,17 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.RevisionResponse} RevisionResponse */ RevisionResponse.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.RevisionResponse) - return object; + if (object instanceof $root.Authentication.RevisionResponse) return object; let message = new $root.Authentication.RevisionResponse(); if (object.revision != null) - if ($util.Long) - (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; - else if (typeof object.revision === "string") - message.revision = parseInt(object.revision, 10); - else if (typeof object.revision === "number") - message.revision = object.revision; - else if (typeof object.revision === "object") - message.revision = new $util.LongBits(object.revision.low >>> 0, object.revision.high >>> 0).toNumber(); + if ($util.Long) (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; + else if (typeof object.revision === 'string') message.revision = parseInt(object.revision, 10); + else if (typeof object.revision === 'number') message.revision = object.revision; + else if (typeof object.revision === 'object') + message.revision = new $util.LongBits( + object.revision.low >>> 0, + object.revision.high >>> 0 + ).toNumber(); return message; }; @@ -14757,20 +15387,24 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ RevisionResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) if ($util.Long) { let long = new $util.Long(0, 0, false); - object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.revision = options.longs === String ? "0" : 0; - if (message.revision != null && message.hasOwnProperty("revision")) - if (typeof message.revision === "number") + object.revision = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.revision = options.longs === String ? '0' : 0; + if (message.revision != null && message.hasOwnProperty('revision')) + if (typeof message.revision === 'number') object.revision = options.longs === String ? String(message.revision) : message.revision; else - object.revision = options.longs === String ? $util.Long.prototype.toString.call(message.revision) : options.longs === Number ? new $util.LongBits(message.revision.low >>> 0, message.revision.high >>> 0).toNumber() : message.revision; + object.revision = + options.longs === String + ? $util.Long.prototype.toString.call(message.revision) + : options.longs === Number + ? new $util.LongBits(message.revision.low >>> 0, message.revision.high >>> 0).toNumber() + : message.revision; return object; }; @@ -14795,16 +15429,15 @@ export const Authentication = $root.Authentication = (() => { */ RevisionResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.RevisionResponse"; + return typeUrlPrefix + '/Authentication.RevisionResponse'; }; return RevisionResponse; })(); - Authentication.ChangeEmailRequest = (function() { - + Authentication.ChangeEmailRequest = (function () { /** * Properties of a ChangeEmailRequest. * @memberof Authentication @@ -14823,8 +15456,7 @@ export const Authentication = $root.Authentication = (() => { function ChangeEmailRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -14833,7 +15465,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.ChangeEmailRequest * @instance */ - ChangeEmailRequest.prototype.newEmail = ""; + ChangeEmailRequest.prototype.newEmail = ''; /** * Creates a new ChangeEmailRequest instance using the specified properties. @@ -14857,10 +15489,9 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ ChangeEmailRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.newEmail != null && Object.hasOwnProperty.call(message, "newEmail")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.newEmail); + if (!writer) writer = $Writer.create(); + if (message.newEmail != null && Object.hasOwnProperty.call(message, 'newEmail')) + writer.uint32(/* id 1, wireType 2 =*/ 10).string(message.newEmail); return writer; }; @@ -14889,19 +15520,19 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ChangeEmailRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.ChangeEmailRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.ChangeEmailRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.newEmail = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -14918,8 +15549,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ChangeEmailRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -14932,11 +15562,9 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ ChangeEmailRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.newEmail != null && message.hasOwnProperty("newEmail")) - if (!$util.isString(message.newEmail)) - return "newEmail: string expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.newEmail != null && message.hasOwnProperty('newEmail')) + if (!$util.isString(message.newEmail)) return 'newEmail: string expected'; return null; }; @@ -14949,11 +15577,9 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.ChangeEmailRequest} ChangeEmailRequest */ ChangeEmailRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.ChangeEmailRequest) - return object; + if (object instanceof $root.Authentication.ChangeEmailRequest) return object; let message = new $root.Authentication.ChangeEmailRequest(); - if (object.newEmail != null) - message.newEmail = String(object.newEmail); + if (object.newEmail != null) message.newEmail = String(object.newEmail); return message; }; @@ -14967,13 +15593,10 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ ChangeEmailRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.defaults) - object.newEmail = ""; - if (message.newEmail != null && message.hasOwnProperty("newEmail")) - object.newEmail = message.newEmail; + if (options.defaults) object.newEmail = ''; + if (message.newEmail != null && message.hasOwnProperty('newEmail')) object.newEmail = message.newEmail; return object; }; @@ -14998,16 +15621,15 @@ export const Authentication = $root.Authentication = (() => { */ ChangeEmailRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.ChangeEmailRequest"; + return typeUrlPrefix + '/Authentication.ChangeEmailRequest'; }; return ChangeEmailRequest; })(); - Authentication.ChangeEmailResponse = (function() { - + Authentication.ChangeEmailResponse = (function () { /** * Properties of a ChangeEmailResponse. * @memberof Authentication @@ -15026,8 +15648,7 @@ export const Authentication = $root.Authentication = (() => { function ChangeEmailResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -15060,10 +15681,12 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ ChangeEmailResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.encryptedChangeEmailToken != null && Object.hasOwnProperty.call(message, "encryptedChangeEmailToken")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.encryptedChangeEmailToken); + if (!writer) writer = $Writer.create(); + if ( + message.encryptedChangeEmailToken != null && + Object.hasOwnProperty.call(message, 'encryptedChangeEmailToken') + ) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.encryptedChangeEmailToken); return writer; }; @@ -15092,19 +15715,19 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ChangeEmailResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.ChangeEmailResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.ChangeEmailResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.encryptedChangeEmailToken = reader.bytes(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -15121,8 +15744,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ChangeEmailResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -15135,11 +15757,16 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ ChangeEmailResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.encryptedChangeEmailToken != null && message.hasOwnProperty("encryptedChangeEmailToken")) - if (!(message.encryptedChangeEmailToken && typeof message.encryptedChangeEmailToken.length === "number" || $util.isString(message.encryptedChangeEmailToken))) - return "encryptedChangeEmailToken: buffer expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.encryptedChangeEmailToken != null && message.hasOwnProperty('encryptedChangeEmailToken')) + if ( + !( + (message.encryptedChangeEmailToken && + typeof message.encryptedChangeEmailToken.length === 'number') || + $util.isString(message.encryptedChangeEmailToken) + ) + ) + return 'encryptedChangeEmailToken: buffer expected'; return null; }; @@ -15152,12 +15779,17 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.ChangeEmailResponse} ChangeEmailResponse */ ChangeEmailResponse.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.ChangeEmailResponse) - return object; + if (object instanceof $root.Authentication.ChangeEmailResponse) return object; let message = new $root.Authentication.ChangeEmailResponse(); if (object.encryptedChangeEmailToken != null) - if (typeof object.encryptedChangeEmailToken === "string") - $util.base64.decode(object.encryptedChangeEmailToken, message.encryptedChangeEmailToken = $util.newBuffer($util.base64.length(object.encryptedChangeEmailToken)), 0); + if (typeof object.encryptedChangeEmailToken === 'string') + $util.base64.decode( + object.encryptedChangeEmailToken, + (message.encryptedChangeEmailToken = $util.newBuffer( + $util.base64.length(object.encryptedChangeEmailToken) + )), + 0 + ); else if (object.encryptedChangeEmailToken.length >= 0) message.encryptedChangeEmailToken = object.encryptedChangeEmailToken; return message; @@ -15173,19 +15805,26 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ ChangeEmailResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) - if (options.bytes === String) - object.encryptedChangeEmailToken = ""; + if (options.bytes === String) object.encryptedChangeEmailToken = ''; else { object.encryptedChangeEmailToken = []; if (options.bytes !== Array) object.encryptedChangeEmailToken = $util.newBuffer(object.encryptedChangeEmailToken); } - if (message.encryptedChangeEmailToken != null && message.hasOwnProperty("encryptedChangeEmailToken")) - object.encryptedChangeEmailToken = options.bytes === String ? $util.base64.encode(message.encryptedChangeEmailToken, 0, message.encryptedChangeEmailToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedChangeEmailToken) : message.encryptedChangeEmailToken; + if (message.encryptedChangeEmailToken != null && message.hasOwnProperty('encryptedChangeEmailToken')) + object.encryptedChangeEmailToken = + options.bytes === String + ? $util.base64.encode( + message.encryptedChangeEmailToken, + 0, + message.encryptedChangeEmailToken.length + ) + : options.bytes === Array + ? Array.prototype.slice.call(message.encryptedChangeEmailToken) + : message.encryptedChangeEmailToken; return object; }; @@ -15210,16 +15849,15 @@ export const Authentication = $root.Authentication = (() => { */ ChangeEmailResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.ChangeEmailResponse"; + return typeUrlPrefix + '/Authentication.ChangeEmailResponse'; }; return ChangeEmailResponse; })(); - Authentication.EmailVerificationLinkResponse = (function() { - + Authentication.EmailVerificationLinkResponse = (function () { /** * Properties of an EmailVerificationLinkResponse. * @memberof Authentication @@ -15238,8 +15876,7 @@ export const Authentication = $root.Authentication = (() => { function EmailVerificationLinkResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -15272,10 +15909,9 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ EmailVerificationLinkResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.emailVerified != null && Object.hasOwnProperty.call(message, "emailVerified")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.emailVerified); + if (!writer) writer = $Writer.create(); + if (message.emailVerified != null && Object.hasOwnProperty.call(message, 'emailVerified')) + writer.uint32(/* id 1, wireType 0 =*/ 8).bool(message.emailVerified); return writer; }; @@ -15304,19 +15940,19 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ EmailVerificationLinkResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.EmailVerificationLinkResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.EmailVerificationLinkResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.emailVerified = reader.bool(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -15333,8 +15969,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ EmailVerificationLinkResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -15347,11 +15982,9 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ EmailVerificationLinkResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.emailVerified != null && message.hasOwnProperty("emailVerified")) - if (typeof message.emailVerified !== "boolean") - return "emailVerified: boolean expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.emailVerified != null && message.hasOwnProperty('emailVerified')) + if (typeof message.emailVerified !== 'boolean') return 'emailVerified: boolean expected'; return null; }; @@ -15364,11 +15997,9 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.EmailVerificationLinkResponse} EmailVerificationLinkResponse */ EmailVerificationLinkResponse.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.EmailVerificationLinkResponse) - return object; + if (object instanceof $root.Authentication.EmailVerificationLinkResponse) return object; let message = new $root.Authentication.EmailVerificationLinkResponse(); - if (object.emailVerified != null) - message.emailVerified = Boolean(object.emailVerified); + if (object.emailVerified != null) message.emailVerified = Boolean(object.emailVerified); return message; }; @@ -15382,12 +16013,10 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ EmailVerificationLinkResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.defaults) - object.emailVerified = false; - if (message.emailVerified != null && message.hasOwnProperty("emailVerified")) + if (options.defaults) object.emailVerified = false; + if (message.emailVerified != null && message.hasOwnProperty('emailVerified')) object.emailVerified = message.emailVerified; return object; }; @@ -15413,16 +16042,15 @@ export const Authentication = $root.Authentication = (() => { */ EmailVerificationLinkResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.EmailVerificationLinkResponse"; + return typeUrlPrefix + '/Authentication.EmailVerificationLinkResponse'; }; return EmailVerificationLinkResponse; })(); - Authentication.SecurityData = (function() { - + Authentication.SecurityData = (function () { /** * Properties of a SecurityData. * @memberof Authentication @@ -15442,8 +16070,7 @@ export const Authentication = $root.Authentication = (() => { function SecurityData(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -15484,12 +16111,11 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ SecurityData.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.uid != null && Object.hasOwnProperty.call(message, "uid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.uid); - if (message.data != null && Object.hasOwnProperty.call(message, "data")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.data); + if (!writer) writer = $Writer.create(); + if (message.uid != null && Object.hasOwnProperty.call(message, 'uid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.uid); + if (message.data != null && Object.hasOwnProperty.call(message, 'data')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.data); return writer; }; @@ -15518,23 +16144,23 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SecurityData.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.SecurityData(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.SecurityData(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.uid = reader.bytes(); break; } - case 2: { + case 2: { message.data = reader.bytes(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -15551,8 +16177,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SecurityData.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -15565,14 +16190,13 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ SecurityData.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.uid != null && message.hasOwnProperty("uid")) - if (!(message.uid && typeof message.uid.length === "number" || $util.isString(message.uid))) - return "uid: buffer expected"; - if (message.data != null && message.hasOwnProperty("data")) - if (!(message.data && typeof message.data.length === "number" || $util.isString(message.data))) - return "data: buffer expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.uid != null && message.hasOwnProperty('uid')) + if (!((message.uid && typeof message.uid.length === 'number') || $util.isString(message.uid))) + return 'uid: buffer expected'; + if (message.data != null && message.hasOwnProperty('data')) + if (!((message.data && typeof message.data.length === 'number') || $util.isString(message.data))) + return 'data: buffer expected'; return null; }; @@ -15585,19 +16209,24 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.SecurityData} SecurityData */ SecurityData.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.SecurityData) - return object; + if (object instanceof $root.Authentication.SecurityData) return object; let message = new $root.Authentication.SecurityData(); if (object.uid != null) - if (typeof object.uid === "string") - $util.base64.decode(object.uid, message.uid = $util.newBuffer($util.base64.length(object.uid)), 0); - else if (object.uid.length >= 0) - message.uid = object.uid; + if (typeof object.uid === 'string') + $util.base64.decode( + object.uid, + (message.uid = $util.newBuffer($util.base64.length(object.uid))), + 0 + ); + else if (object.uid.length >= 0) message.uid = object.uid; if (object.data != null) - if (typeof object.data === "string") - $util.base64.decode(object.data, message.data = $util.newBuffer($util.base64.length(object.data)), 0); - else if (object.data.length >= 0) - message.data = object.data; + if (typeof object.data === 'string') + $util.base64.decode( + object.data, + (message.data = $util.newBuffer($util.base64.length(object.data))), + 0 + ); + else if (object.data.length >= 0) message.data = object.data; return message; }; @@ -15611,29 +16240,34 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ SecurityData.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.uid = ""; + if (options.bytes === String) object.uid = ''; else { object.uid = []; - if (options.bytes !== Array) - object.uid = $util.newBuffer(object.uid); + if (options.bytes !== Array) object.uid = $util.newBuffer(object.uid); } - if (options.bytes === String) - object.data = ""; + if (options.bytes === String) object.data = ''; else { object.data = []; - if (options.bytes !== Array) - object.data = $util.newBuffer(object.data); + if (options.bytes !== Array) object.data = $util.newBuffer(object.data); } } - if (message.uid != null && message.hasOwnProperty("uid")) - object.uid = options.bytes === String ? $util.base64.encode(message.uid, 0, message.uid.length) : options.bytes === Array ? Array.prototype.slice.call(message.uid) : message.uid; - if (message.data != null && message.hasOwnProperty("data")) - object.data = options.bytes === String ? $util.base64.encode(message.data, 0, message.data.length) : options.bytes === Array ? Array.prototype.slice.call(message.data) : message.data; + if (message.uid != null && message.hasOwnProperty('uid')) + object.uid = + options.bytes === String + ? $util.base64.encode(message.uid, 0, message.uid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.uid) + : message.uid; + if (message.data != null && message.hasOwnProperty('data')) + object.data = + options.bytes === String + ? $util.base64.encode(message.data, 0, message.data.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.data) + : message.data; return object; }; @@ -15658,16 +16292,15 @@ export const Authentication = $root.Authentication = (() => { */ SecurityData.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.SecurityData"; + return typeUrlPrefix + '/Authentication.SecurityData'; }; return SecurityData; })(); - Authentication.SecurityScoreData = (function() { - + Authentication.SecurityScoreData = (function () { /** * Properties of a SecurityScoreData. * @memberof Authentication @@ -15688,8 +16321,7 @@ export const Authentication = $root.Authentication = (() => { function SecurityScoreData(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -15714,7 +16346,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.SecurityScoreData * @instance */ - SecurityScoreData.prototype.revision = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + SecurityScoreData.prototype.revision = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * Creates a new SecurityScoreData instance using the specified properties. @@ -15738,14 +16370,13 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ SecurityScoreData.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.uid != null && Object.hasOwnProperty.call(message, "uid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.uid); - if (message.data != null && Object.hasOwnProperty.call(message, "data")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.data); - if (message.revision != null && Object.hasOwnProperty.call(message, "revision")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.revision); + if (!writer) writer = $Writer.create(); + if (message.uid != null && Object.hasOwnProperty.call(message, 'uid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.uid); + if (message.data != null && Object.hasOwnProperty.call(message, 'data')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.data); + if (message.revision != null && Object.hasOwnProperty.call(message, 'revision')) + writer.uint32(/* id 3, wireType 0 =*/ 24).int64(message.revision); return writer; }; @@ -15774,27 +16405,27 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SecurityScoreData.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.SecurityScoreData(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.SecurityScoreData(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.uid = reader.bytes(); break; } - case 2: { + case 2: { message.data = reader.bytes(); break; } - case 3: { + case 3: { message.revision = reader.int64(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -15811,8 +16442,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SecurityScoreData.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -15825,17 +16455,23 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ SecurityScoreData.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.uid != null && message.hasOwnProperty("uid")) - if (!(message.uid && typeof message.uid.length === "number" || $util.isString(message.uid))) - return "uid: buffer expected"; - if (message.data != null && message.hasOwnProperty("data")) - if (!(message.data && typeof message.data.length === "number" || $util.isString(message.data))) - return "data: buffer expected"; - if (message.revision != null && message.hasOwnProperty("revision")) - if (!$util.isInteger(message.revision) && !(message.revision && $util.isInteger(message.revision.low) && $util.isInteger(message.revision.high))) - return "revision: integer|Long expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.uid != null && message.hasOwnProperty('uid')) + if (!((message.uid && typeof message.uid.length === 'number') || $util.isString(message.uid))) + return 'uid: buffer expected'; + if (message.data != null && message.hasOwnProperty('data')) + if (!((message.data && typeof message.data.length === 'number') || $util.isString(message.data))) + return 'data: buffer expected'; + if (message.revision != null && message.hasOwnProperty('revision')) + if ( + !$util.isInteger(message.revision) && + !( + message.revision && + $util.isInteger(message.revision.low) && + $util.isInteger(message.revision.high) + ) + ) + return 'revision: integer|Long expected'; return null; }; @@ -15848,28 +16484,33 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.SecurityScoreData} SecurityScoreData */ SecurityScoreData.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.SecurityScoreData) - return object; + if (object instanceof $root.Authentication.SecurityScoreData) return object; let message = new $root.Authentication.SecurityScoreData(); if (object.uid != null) - if (typeof object.uid === "string") - $util.base64.decode(object.uid, message.uid = $util.newBuffer($util.base64.length(object.uid)), 0); - else if (object.uid.length >= 0) - message.uid = object.uid; + if (typeof object.uid === 'string') + $util.base64.decode( + object.uid, + (message.uid = $util.newBuffer($util.base64.length(object.uid))), + 0 + ); + else if (object.uid.length >= 0) message.uid = object.uid; if (object.data != null) - if (typeof object.data === "string") - $util.base64.decode(object.data, message.data = $util.newBuffer($util.base64.length(object.data)), 0); - else if (object.data.length >= 0) - message.data = object.data; + if (typeof object.data === 'string') + $util.base64.decode( + object.data, + (message.data = $util.newBuffer($util.base64.length(object.data))), + 0 + ); + else if (object.data.length >= 0) message.data = object.data; if (object.revision != null) - if ($util.Long) - (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; - else if (typeof object.revision === "string") - message.revision = parseInt(object.revision, 10); - else if (typeof object.revision === "number") - message.revision = object.revision; - else if (typeof object.revision === "object") - message.revision = new $util.LongBits(object.revision.low >>> 0, object.revision.high >>> 0).toNumber(); + if ($util.Long) (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; + else if (typeof object.revision === 'string') message.revision = parseInt(object.revision, 10); + else if (typeof object.revision === 'number') message.revision = object.revision; + else if (typeof object.revision === 'object') + message.revision = new $util.LongBits( + object.revision.low >>> 0, + object.revision.high >>> 0 + ).toNumber(); return message; }; @@ -15883,39 +16524,49 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ SecurityScoreData.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.uid = ""; + if (options.bytes === String) object.uid = ''; else { object.uid = []; - if (options.bytes !== Array) - object.uid = $util.newBuffer(object.uid); + if (options.bytes !== Array) object.uid = $util.newBuffer(object.uid); } - if (options.bytes === String) - object.data = ""; + if (options.bytes === String) object.data = ''; else { object.data = []; - if (options.bytes !== Array) - object.data = $util.newBuffer(object.data); + if (options.bytes !== Array) object.data = $util.newBuffer(object.data); } if ($util.Long) { let long = new $util.Long(0, 0, false); - object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.revision = options.longs === String ? "0" : 0; - } - if (message.uid != null && message.hasOwnProperty("uid")) - object.uid = options.bytes === String ? $util.base64.encode(message.uid, 0, message.uid.length) : options.bytes === Array ? Array.prototype.slice.call(message.uid) : message.uid; - if (message.data != null && message.hasOwnProperty("data")) - object.data = options.bytes === String ? $util.base64.encode(message.data, 0, message.data.length) : options.bytes === Array ? Array.prototype.slice.call(message.data) : message.data; - if (message.revision != null && message.hasOwnProperty("revision")) - if (typeof message.revision === "number") + object.revision = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.revision = options.longs === String ? '0' : 0; + } + if (message.uid != null && message.hasOwnProperty('uid')) + object.uid = + options.bytes === String + ? $util.base64.encode(message.uid, 0, message.uid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.uid) + : message.uid; + if (message.data != null && message.hasOwnProperty('data')) + object.data = + options.bytes === String + ? $util.base64.encode(message.data, 0, message.data.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.data) + : message.data; + if (message.revision != null && message.hasOwnProperty('revision')) + if (typeof message.revision === 'number') object.revision = options.longs === String ? String(message.revision) : message.revision; else - object.revision = options.longs === String ? $util.Long.prototype.toString.call(message.revision) : options.longs === Number ? new $util.LongBits(message.revision.low >>> 0, message.revision.high >>> 0).toNumber() : message.revision; + object.revision = + options.longs === String + ? $util.Long.prototype.toString.call(message.revision) + : options.longs === Number + ? new $util.LongBits(message.revision.low >>> 0, message.revision.high >>> 0).toNumber() + : message.revision; return object; }; @@ -15940,16 +16591,15 @@ export const Authentication = $root.Authentication = (() => { */ SecurityScoreData.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.SecurityScoreData"; + return typeUrlPrefix + '/Authentication.SecurityScoreData'; }; return SecurityScoreData; })(); - Authentication.SecurityDataRequest = (function() { - + Authentication.SecurityDataRequest = (function () { /** * Properties of a SecurityDataRequest. * @memberof Authentication @@ -15974,8 +16624,7 @@ export const Authentication = $root.Authentication = (() => { this.recordSecurityScoreData = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -16032,19 +16681,27 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ SecurityDataRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.recordSecurityData != null && message.recordSecurityData.length) for (let i = 0; i < message.recordSecurityData.length; ++i) - $root.Authentication.SecurityData.encode(message.recordSecurityData[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.Authentication.SecurityData.encode( + message.recordSecurityData[i], + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); if (message.masterPasswordSecurityData != null && message.masterPasswordSecurityData.length) for (let i = 0; i < message.masterPasswordSecurityData.length; ++i) - $root.Authentication.SecurityData.encode(message.masterPasswordSecurityData[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.encryptionType != null && Object.hasOwnProperty.call(message, "encryptionType")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.encryptionType); + $root.Authentication.SecurityData.encode( + message.masterPasswordSecurityData[i], + writer.uint32(/* id 2, wireType 2 =*/ 18).fork() + ).ldelim(); + if (message.encryptionType != null && Object.hasOwnProperty.call(message, 'encryptionType')) + writer.uint32(/* id 3, wireType 0 =*/ 24).int32(message.encryptionType); if (message.recordSecurityScoreData != null && message.recordSecurityScoreData.length) for (let i = 0; i < message.recordSecurityScoreData.length; ++i) - $root.Authentication.SecurityScoreData.encode(message.recordSecurityScoreData[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + $root.Authentication.SecurityScoreData.encode( + message.recordSecurityScoreData[i], + writer.uint32(/* id 4, wireType 2 =*/ 34).fork() + ).ldelim(); return writer; }; @@ -16073,37 +16730,43 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SecurityDataRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.SecurityDataRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.SecurityDataRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { if (!(message.recordSecurityData && message.recordSecurityData.length)) message.recordSecurityData = []; - message.recordSecurityData.push($root.Authentication.SecurityData.decode(reader, reader.uint32())); + message.recordSecurityData.push( + $root.Authentication.SecurityData.decode(reader, reader.uint32()) + ); break; } - case 2: { + case 2: { if (!(message.masterPasswordSecurityData && message.masterPasswordSecurityData.length)) message.masterPasswordSecurityData = []; - message.masterPasswordSecurityData.push($root.Authentication.SecurityData.decode(reader, reader.uint32())); + message.masterPasswordSecurityData.push( + $root.Authentication.SecurityData.decode(reader, reader.uint32()) + ); break; } - case 3: { + case 3: { message.encryptionType = reader.int32(); break; } - case 4: { + case 4: { if (!(message.recordSecurityScoreData && message.recordSecurityScoreData.length)) message.recordSecurityScoreData = []; - message.recordSecurityScoreData.push($root.Authentication.SecurityScoreData.decode(reader, reader.uint32())); + message.recordSecurityScoreData.push( + $root.Authentication.SecurityScoreData.decode(reader, reader.uint32()) + ); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -16120,8 +16783,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SecurityDataRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -16134,44 +16796,38 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ SecurityDataRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.recordSecurityData != null && message.hasOwnProperty("recordSecurityData")) { - if (!Array.isArray(message.recordSecurityData)) - return "recordSecurityData: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.recordSecurityData != null && message.hasOwnProperty('recordSecurityData')) { + if (!Array.isArray(message.recordSecurityData)) return 'recordSecurityData: array expected'; for (let i = 0; i < message.recordSecurityData.length; ++i) { let error = $root.Authentication.SecurityData.verify(message.recordSecurityData[i]); - if (error) - return "recordSecurityData." + error; + if (error) return 'recordSecurityData.' + error; } } - if (message.masterPasswordSecurityData != null && message.hasOwnProperty("masterPasswordSecurityData")) { + if (message.masterPasswordSecurityData != null && message.hasOwnProperty('masterPasswordSecurityData')) { if (!Array.isArray(message.masterPasswordSecurityData)) - return "masterPasswordSecurityData: array expected"; + return 'masterPasswordSecurityData: array expected'; for (let i = 0; i < message.masterPasswordSecurityData.length; ++i) { let error = $root.Authentication.SecurityData.verify(message.masterPasswordSecurityData[i]); - if (error) - return "masterPasswordSecurityData." + error; + if (error) return 'masterPasswordSecurityData.' + error; } } - if (message.encryptionType != null && message.hasOwnProperty("encryptionType")) + if (message.encryptionType != null && message.hasOwnProperty('encryptionType')) switch (message.encryptionType) { - default: - return "encryptionType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; + default: + return 'encryptionType: enum value expected'; + case 0: + case 1: + case 2: + case 3: + case 4: + break; } - if (message.recordSecurityScoreData != null && message.hasOwnProperty("recordSecurityScoreData")) { - if (!Array.isArray(message.recordSecurityScoreData)) - return "recordSecurityScoreData: array expected"; + if (message.recordSecurityScoreData != null && message.hasOwnProperty('recordSecurityScoreData')) { + if (!Array.isArray(message.recordSecurityScoreData)) return 'recordSecurityScoreData: array expected'; for (let i = 0; i < message.recordSecurityScoreData.length; ++i) { let error = $root.Authentication.SecurityScoreData.verify(message.recordSecurityScoreData[i]); - if (error) - return "recordSecurityScoreData." + error; + if (error) return 'recordSecurityScoreData.' + error; } } return null; @@ -16186,65 +16842,72 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.SecurityDataRequest} SecurityDataRequest */ SecurityDataRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.SecurityDataRequest) - return object; + if (object instanceof $root.Authentication.SecurityDataRequest) return object; let message = new $root.Authentication.SecurityDataRequest(); if (object.recordSecurityData) { if (!Array.isArray(object.recordSecurityData)) - throw TypeError(".Authentication.SecurityDataRequest.recordSecurityData: array expected"); + throw TypeError('.Authentication.SecurityDataRequest.recordSecurityData: array expected'); message.recordSecurityData = []; for (let i = 0; i < object.recordSecurityData.length; ++i) { - if (typeof object.recordSecurityData[i] !== "object") - throw TypeError(".Authentication.SecurityDataRequest.recordSecurityData: object expected"); - message.recordSecurityData[i] = $root.Authentication.SecurityData.fromObject(object.recordSecurityData[i]); + if (typeof object.recordSecurityData[i] !== 'object') + throw TypeError('.Authentication.SecurityDataRequest.recordSecurityData: object expected'); + message.recordSecurityData[i] = $root.Authentication.SecurityData.fromObject( + object.recordSecurityData[i] + ); } } if (object.masterPasswordSecurityData) { if (!Array.isArray(object.masterPasswordSecurityData)) - throw TypeError(".Authentication.SecurityDataRequest.masterPasswordSecurityData: array expected"); + throw TypeError('.Authentication.SecurityDataRequest.masterPasswordSecurityData: array expected'); message.masterPasswordSecurityData = []; for (let i = 0; i < object.masterPasswordSecurityData.length; ++i) { - if (typeof object.masterPasswordSecurityData[i] !== "object") - throw TypeError(".Authentication.SecurityDataRequest.masterPasswordSecurityData: object expected"); - message.masterPasswordSecurityData[i] = $root.Authentication.SecurityData.fromObject(object.masterPasswordSecurityData[i]); + if (typeof object.masterPasswordSecurityData[i] !== 'object') + throw TypeError( + '.Authentication.SecurityDataRequest.masterPasswordSecurityData: object expected' + ); + message.masterPasswordSecurityData[i] = $root.Authentication.SecurityData.fromObject( + object.masterPasswordSecurityData[i] + ); } } switch (object.encryptionType) { - default: - if (typeof object.encryptionType === "number") { - message.encryptionType = object.encryptionType; - break; - } - break; - case "KT_NO_KEY": - case 0: - message.encryptionType = 0; - break; - case "KT_ENCRYPTED_BY_DATA_KEY": - case 1: - message.encryptionType = 1; - break; - case "KT_ENCRYPTED_BY_PUBLIC_KEY": - case 2: - message.encryptionType = 2; - break; - case "KT_ENCRYPTED_BY_DATA_KEY_GCM": - case 3: - message.encryptionType = 3; - break; - case "KT_ENCRYPTED_BY_PUBLIC_KEY_ECC": - case 4: - message.encryptionType = 4; - break; + default: + if (typeof object.encryptionType === 'number') { + message.encryptionType = object.encryptionType; + break; + } + break; + case 'KT_NO_KEY': + case 0: + message.encryptionType = 0; + break; + case 'KT_ENCRYPTED_BY_DATA_KEY': + case 1: + message.encryptionType = 1; + break; + case 'KT_ENCRYPTED_BY_PUBLIC_KEY': + case 2: + message.encryptionType = 2; + break; + case 'KT_ENCRYPTED_BY_DATA_KEY_GCM': + case 3: + message.encryptionType = 3; + break; + case 'KT_ENCRYPTED_BY_PUBLIC_KEY_ECC': + case 4: + message.encryptionType = 4; + break; } if (object.recordSecurityScoreData) { if (!Array.isArray(object.recordSecurityScoreData)) - throw TypeError(".Authentication.SecurityDataRequest.recordSecurityScoreData: array expected"); + throw TypeError('.Authentication.SecurityDataRequest.recordSecurityScoreData: array expected'); message.recordSecurityScoreData = []; for (let i = 0; i < object.recordSecurityScoreData.length; ++i) { - if (typeof object.recordSecurityScoreData[i] !== "object") - throw TypeError(".Authentication.SecurityDataRequest.recordSecurityScoreData: object expected"); - message.recordSecurityScoreData[i] = $root.Authentication.SecurityScoreData.fromObject(object.recordSecurityScoreData[i]); + if (typeof object.recordSecurityScoreData[i] !== 'object') + throw TypeError('.Authentication.SecurityDataRequest.recordSecurityScoreData: object expected'); + message.recordSecurityScoreData[i] = $root.Authentication.SecurityScoreData.fromObject( + object.recordSecurityScoreData[i] + ); } } return message; @@ -16260,32 +16923,44 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ SecurityDataRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.arrays || options.defaults) { object.recordSecurityData = []; object.masterPasswordSecurityData = []; object.recordSecurityScoreData = []; } - if (options.defaults) - object.encryptionType = options.enums === String ? "KT_NO_KEY" : 0; + if (options.defaults) object.encryptionType = options.enums === String ? 'KT_NO_KEY' : 0; if (message.recordSecurityData && message.recordSecurityData.length) { object.recordSecurityData = []; for (let j = 0; j < message.recordSecurityData.length; ++j) - object.recordSecurityData[j] = $root.Authentication.SecurityData.toObject(message.recordSecurityData[j], options); + object.recordSecurityData[j] = $root.Authentication.SecurityData.toObject( + message.recordSecurityData[j], + options + ); } if (message.masterPasswordSecurityData && message.masterPasswordSecurityData.length) { object.masterPasswordSecurityData = []; for (let j = 0; j < message.masterPasswordSecurityData.length; ++j) - object.masterPasswordSecurityData[j] = $root.Authentication.SecurityData.toObject(message.masterPasswordSecurityData[j], options); - } - if (message.encryptionType != null && message.hasOwnProperty("encryptionType")) - object.encryptionType = options.enums === String ? $root.Enterprise.EncryptedKeyType[message.encryptionType] === undefined ? message.encryptionType : $root.Enterprise.EncryptedKeyType[message.encryptionType] : message.encryptionType; + object.masterPasswordSecurityData[j] = $root.Authentication.SecurityData.toObject( + message.masterPasswordSecurityData[j], + options + ); + } + if (message.encryptionType != null && message.hasOwnProperty('encryptionType')) + object.encryptionType = + options.enums === String + ? $root.Enterprise.EncryptedKeyType[message.encryptionType] === undefined + ? message.encryptionType + : $root.Enterprise.EncryptedKeyType[message.encryptionType] + : message.encryptionType; if (message.recordSecurityScoreData && message.recordSecurityScoreData.length) { object.recordSecurityScoreData = []; for (let j = 0; j < message.recordSecurityScoreData.length; ++j) - object.recordSecurityScoreData[j] = $root.Authentication.SecurityScoreData.toObject(message.recordSecurityScoreData[j], options); + object.recordSecurityScoreData[j] = $root.Authentication.SecurityScoreData.toObject( + message.recordSecurityScoreData[j], + options + ); } return object; }; @@ -16311,16 +16986,15 @@ export const Authentication = $root.Authentication = (() => { */ SecurityDataRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.SecurityDataRequest"; + return typeUrlPrefix + '/Authentication.SecurityDataRequest'; }; return SecurityDataRequest; })(); - Authentication.SecurityReportIncrementalData = (function() { - + Authentication.SecurityReportIncrementalData = (function () { /** * Properties of a SecurityReportIncrementalData. * @memberof Authentication @@ -16346,8 +17020,7 @@ export const Authentication = $root.Authentication = (() => { function SecurityReportIncrementalData(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -16356,7 +17029,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.SecurityReportIncrementalData * @instance */ - SecurityReportIncrementalData.prototype.enterpriseUserId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + SecurityReportIncrementalData.prototype.enterpriseUserId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * SecurityReportIncrementalData currentSecurityData. @@ -16372,7 +17045,9 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.SecurityReportIncrementalData * @instance */ - SecurityReportIncrementalData.prototype.currentSecurityDataRevision = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + SecurityReportIncrementalData.prototype.currentSecurityDataRevision = $util.Long + ? $util.Long.fromBits(0, 0, false) + : 0; /** * SecurityReportIncrementalData oldSecurityData. @@ -16388,7 +17063,9 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.SecurityReportIncrementalData * @instance */ - SecurityReportIncrementalData.prototype.oldSecurityDataRevision = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + SecurityReportIncrementalData.prototype.oldSecurityDataRevision = $util.Long + ? $util.Long.fromBits(0, 0, false) + : 0; /** * SecurityReportIncrementalData currentDataEncryptionType. @@ -16436,24 +17113,32 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ SecurityReportIncrementalData.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "enterpriseUserId")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.enterpriseUserId); - if (message.currentSecurityData != null && Object.hasOwnProperty.call(message, "currentSecurityData")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.currentSecurityData); - if (message.currentSecurityDataRevision != null && Object.hasOwnProperty.call(message, "currentSecurityDataRevision")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.currentSecurityDataRevision); - if (message.oldSecurityData != null && Object.hasOwnProperty.call(message, "oldSecurityData")) - writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.oldSecurityData); - if (message.oldSecurityDataRevision != null && Object.hasOwnProperty.call(message, "oldSecurityDataRevision")) - writer.uint32(/* id 5, wireType 0 =*/40).int64(message.oldSecurityDataRevision); - if (message.currentDataEncryptionType != null && Object.hasOwnProperty.call(message, "currentDataEncryptionType")) - writer.uint32(/* id 6, wireType 0 =*/48).int32(message.currentDataEncryptionType); - if (message.oldDataEncryptionType != null && Object.hasOwnProperty.call(message, "oldDataEncryptionType")) - writer.uint32(/* id 7, wireType 0 =*/56).int32(message.oldDataEncryptionType); - if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) - writer.uint32(/* id 8, wireType 2 =*/66).bytes(message.recordUid); + if (!writer) writer = $Writer.create(); + if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, 'enterpriseUserId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int64(message.enterpriseUserId); + if (message.currentSecurityData != null && Object.hasOwnProperty.call(message, 'currentSecurityData')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.currentSecurityData); + if ( + message.currentSecurityDataRevision != null && + Object.hasOwnProperty.call(message, 'currentSecurityDataRevision') + ) + writer.uint32(/* id 3, wireType 0 =*/ 24).int64(message.currentSecurityDataRevision); + if (message.oldSecurityData != null && Object.hasOwnProperty.call(message, 'oldSecurityData')) + writer.uint32(/* id 4, wireType 2 =*/ 34).bytes(message.oldSecurityData); + if ( + message.oldSecurityDataRevision != null && + Object.hasOwnProperty.call(message, 'oldSecurityDataRevision') + ) + writer.uint32(/* id 5, wireType 0 =*/ 40).int64(message.oldSecurityDataRevision); + if ( + message.currentDataEncryptionType != null && + Object.hasOwnProperty.call(message, 'currentDataEncryptionType') + ) + writer.uint32(/* id 6, wireType 0 =*/ 48).int32(message.currentDataEncryptionType); + if (message.oldDataEncryptionType != null && Object.hasOwnProperty.call(message, 'oldDataEncryptionType')) + writer.uint32(/* id 7, wireType 0 =*/ 56).int32(message.oldDataEncryptionType); + if (message.recordUid != null && Object.hasOwnProperty.call(message, 'recordUid')) + writer.uint32(/* id 8, wireType 2 =*/ 66).bytes(message.recordUid); return writer; }; @@ -16482,47 +17167,47 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SecurityReportIncrementalData.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.SecurityReportIncrementalData(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.SecurityReportIncrementalData(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.enterpriseUserId = reader.int64(); break; } - case 2: { + case 2: { message.currentSecurityData = reader.bytes(); break; } - case 3: { + case 3: { message.currentSecurityDataRevision = reader.int64(); break; } - case 4: { + case 4: { message.oldSecurityData = reader.bytes(); break; } - case 5: { + case 5: { message.oldSecurityDataRevision = reader.int64(); break; } - case 6: { + case 6: { message.currentDataEncryptionType = reader.int32(); break; } - case 7: { + case 7: { message.oldDataEncryptionType = reader.int32(); break; } - case 8: { + case 8: { message.recordUid = reader.bytes(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -16539,8 +17224,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SecurityReportIncrementalData.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -16553,48 +17237,83 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ SecurityReportIncrementalData.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (!$util.isInteger(message.enterpriseUserId) && !(message.enterpriseUserId && $util.isInteger(message.enterpriseUserId.low) && $util.isInteger(message.enterpriseUserId.high))) - return "enterpriseUserId: integer|Long expected"; - if (message.currentSecurityData != null && message.hasOwnProperty("currentSecurityData")) - if (!(message.currentSecurityData && typeof message.currentSecurityData.length === "number" || $util.isString(message.currentSecurityData))) - return "currentSecurityData: buffer expected"; - if (message.currentSecurityDataRevision != null && message.hasOwnProperty("currentSecurityDataRevision")) - if (!$util.isInteger(message.currentSecurityDataRevision) && !(message.currentSecurityDataRevision && $util.isInteger(message.currentSecurityDataRevision.low) && $util.isInteger(message.currentSecurityDataRevision.high))) - return "currentSecurityDataRevision: integer|Long expected"; - if (message.oldSecurityData != null && message.hasOwnProperty("oldSecurityData")) - if (!(message.oldSecurityData && typeof message.oldSecurityData.length === "number" || $util.isString(message.oldSecurityData))) - return "oldSecurityData: buffer expected"; - if (message.oldSecurityDataRevision != null && message.hasOwnProperty("oldSecurityDataRevision")) - if (!$util.isInteger(message.oldSecurityDataRevision) && !(message.oldSecurityDataRevision && $util.isInteger(message.oldSecurityDataRevision.low) && $util.isInteger(message.oldSecurityDataRevision.high))) - return "oldSecurityDataRevision: integer|Long expected"; - if (message.currentDataEncryptionType != null && message.hasOwnProperty("currentDataEncryptionType")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.enterpriseUserId != null && message.hasOwnProperty('enterpriseUserId')) + if ( + !$util.isInteger(message.enterpriseUserId) && + !( + message.enterpriseUserId && + $util.isInteger(message.enterpriseUserId.low) && + $util.isInteger(message.enterpriseUserId.high) + ) + ) + return 'enterpriseUserId: integer|Long expected'; + if (message.currentSecurityData != null && message.hasOwnProperty('currentSecurityData')) + if ( + !( + (message.currentSecurityData && typeof message.currentSecurityData.length === 'number') || + $util.isString(message.currentSecurityData) + ) + ) + return 'currentSecurityData: buffer expected'; + if (message.currentSecurityDataRevision != null && message.hasOwnProperty('currentSecurityDataRevision')) + if ( + !$util.isInteger(message.currentSecurityDataRevision) && + !( + message.currentSecurityDataRevision && + $util.isInteger(message.currentSecurityDataRevision.low) && + $util.isInteger(message.currentSecurityDataRevision.high) + ) + ) + return 'currentSecurityDataRevision: integer|Long expected'; + if (message.oldSecurityData != null && message.hasOwnProperty('oldSecurityData')) + if ( + !( + (message.oldSecurityData && typeof message.oldSecurityData.length === 'number') || + $util.isString(message.oldSecurityData) + ) + ) + return 'oldSecurityData: buffer expected'; + if (message.oldSecurityDataRevision != null && message.hasOwnProperty('oldSecurityDataRevision')) + if ( + !$util.isInteger(message.oldSecurityDataRevision) && + !( + message.oldSecurityDataRevision && + $util.isInteger(message.oldSecurityDataRevision.low) && + $util.isInteger(message.oldSecurityDataRevision.high) + ) + ) + return 'oldSecurityDataRevision: integer|Long expected'; + if (message.currentDataEncryptionType != null && message.hasOwnProperty('currentDataEncryptionType')) switch (message.currentDataEncryptionType) { - default: - return "currentDataEncryptionType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; + default: + return 'currentDataEncryptionType: enum value expected'; + case 0: + case 1: + case 2: + case 3: + case 4: + break; } - if (message.oldDataEncryptionType != null && message.hasOwnProperty("oldDataEncryptionType")) + if (message.oldDataEncryptionType != null && message.hasOwnProperty('oldDataEncryptionType')) switch (message.oldDataEncryptionType) { - default: - return "oldDataEncryptionType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; + default: + return 'oldDataEncryptionType: enum value expected'; + case 0: + case 1: + case 2: + case 3: + case 4: + break; } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) - return "recordUid: buffer expected"; + if (message.recordUid != null && message.hasOwnProperty('recordUid')) + if ( + !( + (message.recordUid && typeof message.recordUid.length === 'number') || + $util.isString(message.recordUid) + ) + ) + return 'recordUid: buffer expected'; return null; }; @@ -16607,107 +17326,130 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.SecurityReportIncrementalData} SecurityReportIncrementalData */ SecurityReportIncrementalData.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.SecurityReportIncrementalData) - return object; + if (object instanceof $root.Authentication.SecurityReportIncrementalData) return object; let message = new $root.Authentication.SecurityReportIncrementalData(); if (object.enterpriseUserId != null) if ($util.Long) (message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId)).unsigned = false; - else if (typeof object.enterpriseUserId === "string") + else if (typeof object.enterpriseUserId === 'string') message.enterpriseUserId = parseInt(object.enterpriseUserId, 10); - else if (typeof object.enterpriseUserId === "number") + else if (typeof object.enterpriseUserId === 'number') message.enterpriseUserId = object.enterpriseUserId; - else if (typeof object.enterpriseUserId === "object") - message.enterpriseUserId = new $util.LongBits(object.enterpriseUserId.low >>> 0, object.enterpriseUserId.high >>> 0).toNumber(); + else if (typeof object.enterpriseUserId === 'object') + message.enterpriseUserId = new $util.LongBits( + object.enterpriseUserId.low >>> 0, + object.enterpriseUserId.high >>> 0 + ).toNumber(); if (object.currentSecurityData != null) - if (typeof object.currentSecurityData === "string") - $util.base64.decode(object.currentSecurityData, message.currentSecurityData = $util.newBuffer($util.base64.length(object.currentSecurityData)), 0); + if (typeof object.currentSecurityData === 'string') + $util.base64.decode( + object.currentSecurityData, + (message.currentSecurityData = $util.newBuffer( + $util.base64.length(object.currentSecurityData) + )), + 0 + ); else if (object.currentSecurityData.length >= 0) message.currentSecurityData = object.currentSecurityData; if (object.currentSecurityDataRevision != null) if ($util.Long) - (message.currentSecurityDataRevision = $util.Long.fromValue(object.currentSecurityDataRevision)).unsigned = false; - else if (typeof object.currentSecurityDataRevision === "string") + (message.currentSecurityDataRevision = $util.Long.fromValue( + object.currentSecurityDataRevision + )).unsigned = false; + else if (typeof object.currentSecurityDataRevision === 'string') message.currentSecurityDataRevision = parseInt(object.currentSecurityDataRevision, 10); - else if (typeof object.currentSecurityDataRevision === "number") + else if (typeof object.currentSecurityDataRevision === 'number') message.currentSecurityDataRevision = object.currentSecurityDataRevision; - else if (typeof object.currentSecurityDataRevision === "object") - message.currentSecurityDataRevision = new $util.LongBits(object.currentSecurityDataRevision.low >>> 0, object.currentSecurityDataRevision.high >>> 0).toNumber(); + else if (typeof object.currentSecurityDataRevision === 'object') + message.currentSecurityDataRevision = new $util.LongBits( + object.currentSecurityDataRevision.low >>> 0, + object.currentSecurityDataRevision.high >>> 0 + ).toNumber(); if (object.oldSecurityData != null) - if (typeof object.oldSecurityData === "string") - $util.base64.decode(object.oldSecurityData, message.oldSecurityData = $util.newBuffer($util.base64.length(object.oldSecurityData)), 0); - else if (object.oldSecurityData.length >= 0) - message.oldSecurityData = object.oldSecurityData; + if (typeof object.oldSecurityData === 'string') + $util.base64.decode( + object.oldSecurityData, + (message.oldSecurityData = $util.newBuffer($util.base64.length(object.oldSecurityData))), + 0 + ); + else if (object.oldSecurityData.length >= 0) message.oldSecurityData = object.oldSecurityData; if (object.oldSecurityDataRevision != null) if ($util.Long) - (message.oldSecurityDataRevision = $util.Long.fromValue(object.oldSecurityDataRevision)).unsigned = false; - else if (typeof object.oldSecurityDataRevision === "string") + (message.oldSecurityDataRevision = $util.Long.fromValue(object.oldSecurityDataRevision)).unsigned = + false; + else if (typeof object.oldSecurityDataRevision === 'string') message.oldSecurityDataRevision = parseInt(object.oldSecurityDataRevision, 10); - else if (typeof object.oldSecurityDataRevision === "number") + else if (typeof object.oldSecurityDataRevision === 'number') message.oldSecurityDataRevision = object.oldSecurityDataRevision; - else if (typeof object.oldSecurityDataRevision === "object") - message.oldSecurityDataRevision = new $util.LongBits(object.oldSecurityDataRevision.low >>> 0, object.oldSecurityDataRevision.high >>> 0).toNumber(); + else if (typeof object.oldSecurityDataRevision === 'object') + message.oldSecurityDataRevision = new $util.LongBits( + object.oldSecurityDataRevision.low >>> 0, + object.oldSecurityDataRevision.high >>> 0 + ).toNumber(); switch (object.currentDataEncryptionType) { - default: - if (typeof object.currentDataEncryptionType === "number") { - message.currentDataEncryptionType = object.currentDataEncryptionType; - break; - } - break; - case "KT_NO_KEY": - case 0: - message.currentDataEncryptionType = 0; - break; - case "KT_ENCRYPTED_BY_DATA_KEY": - case 1: - message.currentDataEncryptionType = 1; - break; - case "KT_ENCRYPTED_BY_PUBLIC_KEY": - case 2: - message.currentDataEncryptionType = 2; - break; - case "KT_ENCRYPTED_BY_DATA_KEY_GCM": - case 3: - message.currentDataEncryptionType = 3; - break; - case "KT_ENCRYPTED_BY_PUBLIC_KEY_ECC": - case 4: - message.currentDataEncryptionType = 4; - break; + default: + if (typeof object.currentDataEncryptionType === 'number') { + message.currentDataEncryptionType = object.currentDataEncryptionType; + break; + } + break; + case 'KT_NO_KEY': + case 0: + message.currentDataEncryptionType = 0; + break; + case 'KT_ENCRYPTED_BY_DATA_KEY': + case 1: + message.currentDataEncryptionType = 1; + break; + case 'KT_ENCRYPTED_BY_PUBLIC_KEY': + case 2: + message.currentDataEncryptionType = 2; + break; + case 'KT_ENCRYPTED_BY_DATA_KEY_GCM': + case 3: + message.currentDataEncryptionType = 3; + break; + case 'KT_ENCRYPTED_BY_PUBLIC_KEY_ECC': + case 4: + message.currentDataEncryptionType = 4; + break; } switch (object.oldDataEncryptionType) { - default: - if (typeof object.oldDataEncryptionType === "number") { - message.oldDataEncryptionType = object.oldDataEncryptionType; - break; - } - break; - case "KT_NO_KEY": - case 0: - message.oldDataEncryptionType = 0; - break; - case "KT_ENCRYPTED_BY_DATA_KEY": - case 1: - message.oldDataEncryptionType = 1; - break; - case "KT_ENCRYPTED_BY_PUBLIC_KEY": - case 2: - message.oldDataEncryptionType = 2; - break; - case "KT_ENCRYPTED_BY_DATA_KEY_GCM": - case 3: - message.oldDataEncryptionType = 3; - break; - case "KT_ENCRYPTED_BY_PUBLIC_KEY_ECC": - case 4: - message.oldDataEncryptionType = 4; - break; + default: + if (typeof object.oldDataEncryptionType === 'number') { + message.oldDataEncryptionType = object.oldDataEncryptionType; + break; + } + break; + case 'KT_NO_KEY': + case 0: + message.oldDataEncryptionType = 0; + break; + case 'KT_ENCRYPTED_BY_DATA_KEY': + case 1: + message.oldDataEncryptionType = 1; + break; + case 'KT_ENCRYPTED_BY_PUBLIC_KEY': + case 2: + message.oldDataEncryptionType = 2; + break; + case 'KT_ENCRYPTED_BY_DATA_KEY_GCM': + case 3: + message.oldDataEncryptionType = 3; + break; + case 'KT_ENCRYPTED_BY_PUBLIC_KEY_ECC': + case 4: + message.oldDataEncryptionType = 4; + break; } if (object.recordUid != null) - if (typeof object.recordUid === "string") - $util.base64.decode(object.recordUid, message.recordUid = $util.newBuffer($util.base64.length(object.recordUid)), 0); - else if (object.recordUid.length >= 0) - message.recordUid = object.recordUid; + if (typeof object.recordUid === 'string') + $util.base64.decode( + object.recordUid, + (message.recordUid = $util.newBuffer($util.base64.length(object.recordUid))), + 0 + ); + else if (object.recordUid.length >= 0) message.recordUid = object.recordUid; return message; }; @@ -16721,17 +17463,15 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ SecurityReportIncrementalData.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.enterpriseUserId = options.longs === String ? "0" : 0; - if (options.bytes === String) - object.currentSecurityData = ""; + object.enterpriseUserId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.enterpriseUserId = options.longs === String ? '0' : 0; + if (options.bytes === String) object.currentSecurityData = ''; else { object.currentSecurityData = []; if (options.bytes !== Array) @@ -16739,56 +17479,108 @@ export const Authentication = $root.Authentication = (() => { } if ($util.Long) { let long = new $util.Long(0, 0, false); - object.currentSecurityDataRevision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.currentSecurityDataRevision = options.longs === String ? "0" : 0; - if (options.bytes === String) - object.oldSecurityData = ""; + object.currentSecurityDataRevision = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.currentSecurityDataRevision = options.longs === String ? '0' : 0; + if (options.bytes === String) object.oldSecurityData = ''; else { object.oldSecurityData = []; - if (options.bytes !== Array) - object.oldSecurityData = $util.newBuffer(object.oldSecurityData); + if (options.bytes !== Array) object.oldSecurityData = $util.newBuffer(object.oldSecurityData); } if ($util.Long) { let long = new $util.Long(0, 0, false); - object.oldSecurityDataRevision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.oldSecurityDataRevision = options.longs === String ? "0" : 0; - object.currentDataEncryptionType = options.enums === String ? "KT_NO_KEY" : 0; - object.oldDataEncryptionType = options.enums === String ? "KT_NO_KEY" : 0; - if (options.bytes === String) - object.recordUid = ""; + object.oldSecurityDataRevision = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.oldSecurityDataRevision = options.longs === String ? '0' : 0; + object.currentDataEncryptionType = options.enums === String ? 'KT_NO_KEY' : 0; + object.oldDataEncryptionType = options.enums === String ? 'KT_NO_KEY' : 0; + if (options.bytes === String) object.recordUid = ''; else { object.recordUid = []; - if (options.bytes !== Array) - object.recordUid = $util.newBuffer(object.recordUid); + if (options.bytes !== Array) object.recordUid = $util.newBuffer(object.recordUid); } } - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (typeof message.enterpriseUserId === "number") - object.enterpriseUserId = options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; + if (message.enterpriseUserId != null && message.hasOwnProperty('enterpriseUserId')) + if (typeof message.enterpriseUserId === 'number') + object.enterpriseUserId = + options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; else - object.enterpriseUserId = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseUserId) : options.longs === Number ? new $util.LongBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0).toNumber() : message.enterpriseUserId; - if (message.currentSecurityData != null && message.hasOwnProperty("currentSecurityData")) - object.currentSecurityData = options.bytes === String ? $util.base64.encode(message.currentSecurityData, 0, message.currentSecurityData.length) : options.bytes === Array ? Array.prototype.slice.call(message.currentSecurityData) : message.currentSecurityData; - if (message.currentSecurityDataRevision != null && message.hasOwnProperty("currentSecurityDataRevision")) - if (typeof message.currentSecurityDataRevision === "number") - object.currentSecurityDataRevision = options.longs === String ? String(message.currentSecurityDataRevision) : message.currentSecurityDataRevision; + object.enterpriseUserId = + options.longs === String + ? $util.Long.prototype.toString.call(message.enterpriseUserId) + : options.longs === Number + ? new $util.LongBits( + message.enterpriseUserId.low >>> 0, + message.enterpriseUserId.high >>> 0 + ).toNumber() + : message.enterpriseUserId; + if (message.currentSecurityData != null && message.hasOwnProperty('currentSecurityData')) + object.currentSecurityData = + options.bytes === String + ? $util.base64.encode(message.currentSecurityData, 0, message.currentSecurityData.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.currentSecurityData) + : message.currentSecurityData; + if (message.currentSecurityDataRevision != null && message.hasOwnProperty('currentSecurityDataRevision')) + if (typeof message.currentSecurityDataRevision === 'number') + object.currentSecurityDataRevision = + options.longs === String + ? String(message.currentSecurityDataRevision) + : message.currentSecurityDataRevision; else - object.currentSecurityDataRevision = options.longs === String ? $util.Long.prototype.toString.call(message.currentSecurityDataRevision) : options.longs === Number ? new $util.LongBits(message.currentSecurityDataRevision.low >>> 0, message.currentSecurityDataRevision.high >>> 0).toNumber() : message.currentSecurityDataRevision; - if (message.oldSecurityData != null && message.hasOwnProperty("oldSecurityData")) - object.oldSecurityData = options.bytes === String ? $util.base64.encode(message.oldSecurityData, 0, message.oldSecurityData.length) : options.bytes === Array ? Array.prototype.slice.call(message.oldSecurityData) : message.oldSecurityData; - if (message.oldSecurityDataRevision != null && message.hasOwnProperty("oldSecurityDataRevision")) - if (typeof message.oldSecurityDataRevision === "number") - object.oldSecurityDataRevision = options.longs === String ? String(message.oldSecurityDataRevision) : message.oldSecurityDataRevision; + object.currentSecurityDataRevision = + options.longs === String + ? $util.Long.prototype.toString.call(message.currentSecurityDataRevision) + : options.longs === Number + ? new $util.LongBits( + message.currentSecurityDataRevision.low >>> 0, + message.currentSecurityDataRevision.high >>> 0 + ).toNumber() + : message.currentSecurityDataRevision; + if (message.oldSecurityData != null && message.hasOwnProperty('oldSecurityData')) + object.oldSecurityData = + options.bytes === String + ? $util.base64.encode(message.oldSecurityData, 0, message.oldSecurityData.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.oldSecurityData) + : message.oldSecurityData; + if (message.oldSecurityDataRevision != null && message.hasOwnProperty('oldSecurityDataRevision')) + if (typeof message.oldSecurityDataRevision === 'number') + object.oldSecurityDataRevision = + options.longs === String + ? String(message.oldSecurityDataRevision) + : message.oldSecurityDataRevision; else - object.oldSecurityDataRevision = options.longs === String ? $util.Long.prototype.toString.call(message.oldSecurityDataRevision) : options.longs === Number ? new $util.LongBits(message.oldSecurityDataRevision.low >>> 0, message.oldSecurityDataRevision.high >>> 0).toNumber() : message.oldSecurityDataRevision; - if (message.currentDataEncryptionType != null && message.hasOwnProperty("currentDataEncryptionType")) - object.currentDataEncryptionType = options.enums === String ? $root.Enterprise.EncryptedKeyType[message.currentDataEncryptionType] === undefined ? message.currentDataEncryptionType : $root.Enterprise.EncryptedKeyType[message.currentDataEncryptionType] : message.currentDataEncryptionType; - if (message.oldDataEncryptionType != null && message.hasOwnProperty("oldDataEncryptionType")) - object.oldDataEncryptionType = options.enums === String ? $root.Enterprise.EncryptedKeyType[message.oldDataEncryptionType] === undefined ? message.oldDataEncryptionType : $root.Enterprise.EncryptedKeyType[message.oldDataEncryptionType] : message.oldDataEncryptionType; - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; + object.oldSecurityDataRevision = + options.longs === String + ? $util.Long.prototype.toString.call(message.oldSecurityDataRevision) + : options.longs === Number + ? new $util.LongBits( + message.oldSecurityDataRevision.low >>> 0, + message.oldSecurityDataRevision.high >>> 0 + ).toNumber() + : message.oldSecurityDataRevision; + if (message.currentDataEncryptionType != null && message.hasOwnProperty('currentDataEncryptionType')) + object.currentDataEncryptionType = + options.enums === String + ? $root.Enterprise.EncryptedKeyType[message.currentDataEncryptionType] === undefined + ? message.currentDataEncryptionType + : $root.Enterprise.EncryptedKeyType[message.currentDataEncryptionType] + : message.currentDataEncryptionType; + if (message.oldDataEncryptionType != null && message.hasOwnProperty('oldDataEncryptionType')) + object.oldDataEncryptionType = + options.enums === String + ? $root.Enterprise.EncryptedKeyType[message.oldDataEncryptionType] === undefined + ? message.oldDataEncryptionType + : $root.Enterprise.EncryptedKeyType[message.oldDataEncryptionType] + : message.oldDataEncryptionType; + if (message.recordUid != null && message.hasOwnProperty('recordUid')) + object.recordUid = + options.bytes === String + ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.recordUid) + : message.recordUid; return object; }; @@ -16813,16 +17605,15 @@ export const Authentication = $root.Authentication = (() => { */ SecurityReportIncrementalData.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.SecurityReportIncrementalData"; + return typeUrlPrefix + '/Authentication.SecurityReportIncrementalData'; }; return SecurityReportIncrementalData; })(); - Authentication.SecurityReport = (function() { - + Authentication.SecurityReport = (function () { /** * Properties of a SecurityReport. * @memberof Authentication @@ -16850,8 +17641,7 @@ export const Authentication = $root.Authentication = (() => { this.securityReportIncrementalData = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -16860,7 +17650,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.SecurityReport * @instance */ - SecurityReport.prototype.enterpriseUserId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + SecurityReport.prototype.enterpriseUserId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * SecurityReport encryptedReportData. @@ -16876,7 +17666,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.SecurityReport * @instance */ - SecurityReport.prototype.revision = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + SecurityReport.prototype.revision = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * SecurityReport twoFactor. @@ -16884,7 +17674,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.SecurityReport * @instance */ - SecurityReport.prototype.twoFactor = ""; + SecurityReport.prototype.twoFactor = ''; /** * SecurityReport lastLogin. @@ -16892,7 +17682,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.SecurityReport * @instance */ - SecurityReport.prototype.lastLogin = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + SecurityReport.prototype.lastLogin = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * SecurityReport numberOfReusedPassword. @@ -16948,27 +17738,29 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ SecurityReport.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "enterpriseUserId")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.enterpriseUserId); - if (message.encryptedReportData != null && Object.hasOwnProperty.call(message, "encryptedReportData")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.encryptedReportData); - if (message.revision != null && Object.hasOwnProperty.call(message, "revision")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.revision); - if (message.twoFactor != null && Object.hasOwnProperty.call(message, "twoFactor")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.twoFactor); - if (message.lastLogin != null && Object.hasOwnProperty.call(message, "lastLogin")) - writer.uint32(/* id 5, wireType 0 =*/40).int64(message.lastLogin); - if (message.numberOfReusedPassword != null && Object.hasOwnProperty.call(message, "numberOfReusedPassword")) - writer.uint32(/* id 6, wireType 0 =*/48).int32(message.numberOfReusedPassword); + if (!writer) writer = $Writer.create(); + if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, 'enterpriseUserId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int64(message.enterpriseUserId); + if (message.encryptedReportData != null && Object.hasOwnProperty.call(message, 'encryptedReportData')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.encryptedReportData); + if (message.revision != null && Object.hasOwnProperty.call(message, 'revision')) + writer.uint32(/* id 3, wireType 0 =*/ 24).int64(message.revision); + if (message.twoFactor != null && Object.hasOwnProperty.call(message, 'twoFactor')) + writer.uint32(/* id 4, wireType 2 =*/ 34).string(message.twoFactor); + if (message.lastLogin != null && Object.hasOwnProperty.call(message, 'lastLogin')) + writer.uint32(/* id 5, wireType 0 =*/ 40).int64(message.lastLogin); + if (message.numberOfReusedPassword != null && Object.hasOwnProperty.call(message, 'numberOfReusedPassword')) + writer.uint32(/* id 6, wireType 0 =*/ 48).int32(message.numberOfReusedPassword); if (message.securityReportIncrementalData != null && message.securityReportIncrementalData.length) for (let i = 0; i < message.securityReportIncrementalData.length; ++i) - $root.Authentication.SecurityReportIncrementalData.encode(message.securityReportIncrementalData[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.userId != null && Object.hasOwnProperty.call(message, "userId")) - writer.uint32(/* id 8, wireType 0 =*/64).int32(message.userId); - if (message.hasOldEncryption != null && Object.hasOwnProperty.call(message, "hasOldEncryption")) - writer.uint32(/* id 9, wireType 0 =*/72).bool(message.hasOldEncryption); + $root.Authentication.SecurityReportIncrementalData.encode( + message.securityReportIncrementalData[i], + writer.uint32(/* id 7, wireType 2 =*/ 58).fork() + ).ldelim(); + if (message.userId != null && Object.hasOwnProperty.call(message, 'userId')) + writer.uint32(/* id 8, wireType 0 =*/ 64).int32(message.userId); + if (message.hasOldEncryption != null && Object.hasOwnProperty.call(message, 'hasOldEncryption')) + writer.uint32(/* id 9, wireType 0 =*/ 72).bool(message.hasOldEncryption); return writer; }; @@ -16997,53 +17789,55 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SecurityReport.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.SecurityReport(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.SecurityReport(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.enterpriseUserId = reader.int64(); break; } - case 2: { + case 2: { message.encryptedReportData = reader.bytes(); break; } - case 3: { + case 3: { message.revision = reader.int64(); break; } - case 4: { + case 4: { message.twoFactor = reader.string(); break; } - case 5: { + case 5: { message.lastLogin = reader.int64(); break; } - case 6: { + case 6: { message.numberOfReusedPassword = reader.int32(); break; } - case 7: { + case 7: { if (!(message.securityReportIncrementalData && message.securityReportIncrementalData.length)) message.securityReportIncrementalData = []; - message.securityReportIncrementalData.push($root.Authentication.SecurityReportIncrementalData.decode(reader, reader.uint32())); + message.securityReportIncrementalData.push( + $root.Authentication.SecurityReportIncrementalData.decode(reader, reader.uint32()) + ); break; } - case 8: { + case 8: { message.userId = reader.int32(); break; } - case 9: { + case 9: { message.hasOldEncryption = reader.bool(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -17060,8 +17854,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SecurityReport.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -17074,41 +17867,66 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ SecurityReport.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (!$util.isInteger(message.enterpriseUserId) && !(message.enterpriseUserId && $util.isInteger(message.enterpriseUserId.low) && $util.isInteger(message.enterpriseUserId.high))) - return "enterpriseUserId: integer|Long expected"; - if (message.encryptedReportData != null && message.hasOwnProperty("encryptedReportData")) - if (!(message.encryptedReportData && typeof message.encryptedReportData.length === "number" || $util.isString(message.encryptedReportData))) - return "encryptedReportData: buffer expected"; - if (message.revision != null && message.hasOwnProperty("revision")) - if (!$util.isInteger(message.revision) && !(message.revision && $util.isInteger(message.revision.low) && $util.isInteger(message.revision.high))) - return "revision: integer|Long expected"; - if (message.twoFactor != null && message.hasOwnProperty("twoFactor")) - if (!$util.isString(message.twoFactor)) - return "twoFactor: string expected"; - if (message.lastLogin != null && message.hasOwnProperty("lastLogin")) - if (!$util.isInteger(message.lastLogin) && !(message.lastLogin && $util.isInteger(message.lastLogin.low) && $util.isInteger(message.lastLogin.high))) - return "lastLogin: integer|Long expected"; - if (message.numberOfReusedPassword != null && message.hasOwnProperty("numberOfReusedPassword")) - if (!$util.isInteger(message.numberOfReusedPassword)) - return "numberOfReusedPassword: integer expected"; - if (message.securityReportIncrementalData != null && message.hasOwnProperty("securityReportIncrementalData")) { + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.enterpriseUserId != null && message.hasOwnProperty('enterpriseUserId')) + if ( + !$util.isInteger(message.enterpriseUserId) && + !( + message.enterpriseUserId && + $util.isInteger(message.enterpriseUserId.low) && + $util.isInteger(message.enterpriseUserId.high) + ) + ) + return 'enterpriseUserId: integer|Long expected'; + if (message.encryptedReportData != null && message.hasOwnProperty('encryptedReportData')) + if ( + !( + (message.encryptedReportData && typeof message.encryptedReportData.length === 'number') || + $util.isString(message.encryptedReportData) + ) + ) + return 'encryptedReportData: buffer expected'; + if (message.revision != null && message.hasOwnProperty('revision')) + if ( + !$util.isInteger(message.revision) && + !( + message.revision && + $util.isInteger(message.revision.low) && + $util.isInteger(message.revision.high) + ) + ) + return 'revision: integer|Long expected'; + if (message.twoFactor != null && message.hasOwnProperty('twoFactor')) + if (!$util.isString(message.twoFactor)) return 'twoFactor: string expected'; + if (message.lastLogin != null && message.hasOwnProperty('lastLogin')) + if ( + !$util.isInteger(message.lastLogin) && + !( + message.lastLogin && + $util.isInteger(message.lastLogin.low) && + $util.isInteger(message.lastLogin.high) + ) + ) + return 'lastLogin: integer|Long expected'; + if (message.numberOfReusedPassword != null && message.hasOwnProperty('numberOfReusedPassword')) + if (!$util.isInteger(message.numberOfReusedPassword)) return 'numberOfReusedPassword: integer expected'; + if ( + message.securityReportIncrementalData != null && + message.hasOwnProperty('securityReportIncrementalData') + ) { if (!Array.isArray(message.securityReportIncrementalData)) - return "securityReportIncrementalData: array expected"; + return 'securityReportIncrementalData: array expected'; for (let i = 0; i < message.securityReportIncrementalData.length; ++i) { - let error = $root.Authentication.SecurityReportIncrementalData.verify(message.securityReportIncrementalData[i]); - if (error) - return "securityReportIncrementalData." + error; + let error = $root.Authentication.SecurityReportIncrementalData.verify( + message.securityReportIncrementalData[i] + ); + if (error) return 'securityReportIncrementalData.' + error; } } - if (message.userId != null && message.hasOwnProperty("userId")) - if (!$util.isInteger(message.userId)) - return "userId: integer expected"; - if (message.hasOldEncryption != null && message.hasOwnProperty("hasOldEncryption")) - if (typeof message.hasOldEncryption !== "boolean") - return "hasOldEncryption: boolean expected"; + if (message.userId != null && message.hasOwnProperty('userId')) + if (!$util.isInteger(message.userId)) return 'userId: integer expected'; + if (message.hasOldEncryption != null && message.hasOwnProperty('hasOldEncryption')) + if (typeof message.hasOldEncryption !== 'boolean') return 'hasOldEncryption: boolean expected'; return null; }; @@ -17121,59 +17939,69 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.SecurityReport} SecurityReport */ SecurityReport.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.SecurityReport) - return object; + if (object instanceof $root.Authentication.SecurityReport) return object; let message = new $root.Authentication.SecurityReport(); if (object.enterpriseUserId != null) if ($util.Long) (message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId)).unsigned = false; - else if (typeof object.enterpriseUserId === "string") + else if (typeof object.enterpriseUserId === 'string') message.enterpriseUserId = parseInt(object.enterpriseUserId, 10); - else if (typeof object.enterpriseUserId === "number") + else if (typeof object.enterpriseUserId === 'number') message.enterpriseUserId = object.enterpriseUserId; - else if (typeof object.enterpriseUserId === "object") - message.enterpriseUserId = new $util.LongBits(object.enterpriseUserId.low >>> 0, object.enterpriseUserId.high >>> 0).toNumber(); + else if (typeof object.enterpriseUserId === 'object') + message.enterpriseUserId = new $util.LongBits( + object.enterpriseUserId.low >>> 0, + object.enterpriseUserId.high >>> 0 + ).toNumber(); if (object.encryptedReportData != null) - if (typeof object.encryptedReportData === "string") - $util.base64.decode(object.encryptedReportData, message.encryptedReportData = $util.newBuffer($util.base64.length(object.encryptedReportData)), 0); + if (typeof object.encryptedReportData === 'string') + $util.base64.decode( + object.encryptedReportData, + (message.encryptedReportData = $util.newBuffer( + $util.base64.length(object.encryptedReportData) + )), + 0 + ); else if (object.encryptedReportData.length >= 0) message.encryptedReportData = object.encryptedReportData; if (object.revision != null) - if ($util.Long) - (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; - else if (typeof object.revision === "string") - message.revision = parseInt(object.revision, 10); - else if (typeof object.revision === "number") - message.revision = object.revision; - else if (typeof object.revision === "object") - message.revision = new $util.LongBits(object.revision.low >>> 0, object.revision.high >>> 0).toNumber(); - if (object.twoFactor != null) - message.twoFactor = String(object.twoFactor); + if ($util.Long) (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; + else if (typeof object.revision === 'string') message.revision = parseInt(object.revision, 10); + else if (typeof object.revision === 'number') message.revision = object.revision; + else if (typeof object.revision === 'object') + message.revision = new $util.LongBits( + object.revision.low >>> 0, + object.revision.high >>> 0 + ).toNumber(); + if (object.twoFactor != null) message.twoFactor = String(object.twoFactor); if (object.lastLogin != null) - if ($util.Long) - (message.lastLogin = $util.Long.fromValue(object.lastLogin)).unsigned = false; - else if (typeof object.lastLogin === "string") - message.lastLogin = parseInt(object.lastLogin, 10); - else if (typeof object.lastLogin === "number") - message.lastLogin = object.lastLogin; - else if (typeof object.lastLogin === "object") - message.lastLogin = new $util.LongBits(object.lastLogin.low >>> 0, object.lastLogin.high >>> 0).toNumber(); + if ($util.Long) (message.lastLogin = $util.Long.fromValue(object.lastLogin)).unsigned = false; + else if (typeof object.lastLogin === 'string') message.lastLogin = parseInt(object.lastLogin, 10); + else if (typeof object.lastLogin === 'number') message.lastLogin = object.lastLogin; + else if (typeof object.lastLogin === 'object') + message.lastLogin = new $util.LongBits( + object.lastLogin.low >>> 0, + object.lastLogin.high >>> 0 + ).toNumber(); if (object.numberOfReusedPassword != null) message.numberOfReusedPassword = object.numberOfReusedPassword | 0; if (object.securityReportIncrementalData) { if (!Array.isArray(object.securityReportIncrementalData)) - throw TypeError(".Authentication.SecurityReport.securityReportIncrementalData: array expected"); + throw TypeError('.Authentication.SecurityReport.securityReportIncrementalData: array expected'); message.securityReportIncrementalData = []; for (let i = 0; i < object.securityReportIncrementalData.length; ++i) { - if (typeof object.securityReportIncrementalData[i] !== "object") - throw TypeError(".Authentication.SecurityReport.securityReportIncrementalData: object expected"); - message.securityReportIncrementalData[i] = $root.Authentication.SecurityReportIncrementalData.fromObject(object.securityReportIncrementalData[i]); + if (typeof object.securityReportIncrementalData[i] !== 'object') + throw TypeError( + '.Authentication.SecurityReport.securityReportIncrementalData: object expected' + ); + message.securityReportIncrementalData[i] = + $root.Authentication.SecurityReportIncrementalData.fromObject( + object.securityReportIncrementalData[i] + ); } } - if (object.userId != null) - message.userId = object.userId | 0; - if (object.hasOldEncryption != null) - message.hasOldEncryption = Boolean(object.hasOldEncryption); + if (object.userId != null) message.userId = object.userId | 0; + if (object.hasOldEncryption != null) message.hasOldEncryption = Boolean(object.hasOldEncryption); return message; }; @@ -17187,19 +18015,16 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ SecurityReport.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.securityReportIncrementalData = []; + if (options.arrays || options.defaults) object.securityReportIncrementalData = []; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.enterpriseUserId = options.longs === String ? "0" : 0; - if (options.bytes === String) - object.encryptedReportData = ""; + object.enterpriseUserId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.enterpriseUserId = options.longs === String ? '0' : 0; + if (options.bytes === String) object.encryptedReportData = ''; else { object.encryptedReportData = []; if (options.bytes !== Array) @@ -17207,48 +18032,74 @@ export const Authentication = $root.Authentication = (() => { } if ($util.Long) { let long = new $util.Long(0, 0, false); - object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.revision = options.longs === String ? "0" : 0; - object.twoFactor = ""; + object.revision = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.revision = options.longs === String ? '0' : 0; + object.twoFactor = ''; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.lastLogin = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.lastLogin = options.longs === String ? "0" : 0; + object.lastLogin = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.lastLogin = options.longs === String ? '0' : 0; object.numberOfReusedPassword = 0; object.userId = 0; object.hasOldEncryption = false; } - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (typeof message.enterpriseUserId === "number") - object.enterpriseUserId = options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; + if (message.enterpriseUserId != null && message.hasOwnProperty('enterpriseUserId')) + if (typeof message.enterpriseUserId === 'number') + object.enterpriseUserId = + options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; else - object.enterpriseUserId = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseUserId) : options.longs === Number ? new $util.LongBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0).toNumber() : message.enterpriseUserId; - if (message.encryptedReportData != null && message.hasOwnProperty("encryptedReportData")) - object.encryptedReportData = options.bytes === String ? $util.base64.encode(message.encryptedReportData, 0, message.encryptedReportData.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedReportData) : message.encryptedReportData; - if (message.revision != null && message.hasOwnProperty("revision")) - if (typeof message.revision === "number") + object.enterpriseUserId = + options.longs === String + ? $util.Long.prototype.toString.call(message.enterpriseUserId) + : options.longs === Number + ? new $util.LongBits( + message.enterpriseUserId.low >>> 0, + message.enterpriseUserId.high >>> 0 + ).toNumber() + : message.enterpriseUserId; + if (message.encryptedReportData != null && message.hasOwnProperty('encryptedReportData')) + object.encryptedReportData = + options.bytes === String + ? $util.base64.encode(message.encryptedReportData, 0, message.encryptedReportData.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.encryptedReportData) + : message.encryptedReportData; + if (message.revision != null && message.hasOwnProperty('revision')) + if (typeof message.revision === 'number') object.revision = options.longs === String ? String(message.revision) : message.revision; else - object.revision = options.longs === String ? $util.Long.prototype.toString.call(message.revision) : options.longs === Number ? new $util.LongBits(message.revision.low >>> 0, message.revision.high >>> 0).toNumber() : message.revision; - if (message.twoFactor != null && message.hasOwnProperty("twoFactor")) - object.twoFactor = message.twoFactor; - if (message.lastLogin != null && message.hasOwnProperty("lastLogin")) - if (typeof message.lastLogin === "number") + object.revision = + options.longs === String + ? $util.Long.prototype.toString.call(message.revision) + : options.longs === Number + ? new $util.LongBits(message.revision.low >>> 0, message.revision.high >>> 0).toNumber() + : message.revision; + if (message.twoFactor != null && message.hasOwnProperty('twoFactor')) object.twoFactor = message.twoFactor; + if (message.lastLogin != null && message.hasOwnProperty('lastLogin')) + if (typeof message.lastLogin === 'number') object.lastLogin = options.longs === String ? String(message.lastLogin) : message.lastLogin; else - object.lastLogin = options.longs === String ? $util.Long.prototype.toString.call(message.lastLogin) : options.longs === Number ? new $util.LongBits(message.lastLogin.low >>> 0, message.lastLogin.high >>> 0).toNumber() : message.lastLogin; - if (message.numberOfReusedPassword != null && message.hasOwnProperty("numberOfReusedPassword")) + object.lastLogin = + options.longs === String + ? $util.Long.prototype.toString.call(message.lastLogin) + : options.longs === Number + ? new $util.LongBits(message.lastLogin.low >>> 0, message.lastLogin.high >>> 0).toNumber() + : message.lastLogin; + if (message.numberOfReusedPassword != null && message.hasOwnProperty('numberOfReusedPassword')) object.numberOfReusedPassword = message.numberOfReusedPassword; if (message.securityReportIncrementalData && message.securityReportIncrementalData.length) { object.securityReportIncrementalData = []; for (let j = 0; j < message.securityReportIncrementalData.length; ++j) - object.securityReportIncrementalData[j] = $root.Authentication.SecurityReportIncrementalData.toObject(message.securityReportIncrementalData[j], options); - } - if (message.userId != null && message.hasOwnProperty("userId")) - object.userId = message.userId; - if (message.hasOldEncryption != null && message.hasOwnProperty("hasOldEncryption")) + object.securityReportIncrementalData[j] = + $root.Authentication.SecurityReportIncrementalData.toObject( + message.securityReportIncrementalData[j], + options + ); + } + if (message.userId != null && message.hasOwnProperty('userId')) object.userId = message.userId; + if (message.hasOldEncryption != null && message.hasOwnProperty('hasOldEncryption')) object.hasOldEncryption = message.hasOldEncryption; return object; }; @@ -17274,16 +18125,15 @@ export const Authentication = $root.Authentication = (() => { */ SecurityReport.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.SecurityReport"; + return typeUrlPrefix + '/Authentication.SecurityReport'; }; return SecurityReport; })(); - Authentication.SecurityReportSaveRequest = (function() { - + Authentication.SecurityReportSaveRequest = (function () { /** * Properties of a SecurityReportSaveRequest. * @memberof Authentication @@ -17304,8 +18154,7 @@ export const Authentication = $root.Authentication = (() => { this.securityReport = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -17346,13 +18195,15 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ SecurityReportSaveRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.securityReport != null && message.securityReport.length) for (let i = 0; i < message.securityReport.length; ++i) - $root.Authentication.SecurityReport.encode(message.securityReport[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.continuationToken != null && Object.hasOwnProperty.call(message, "continuationToken")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.continuationToken); + $root.Authentication.SecurityReport.encode( + message.securityReport[i], + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); + if (message.continuationToken != null && Object.hasOwnProperty.call(message, 'continuationToken')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.continuationToken); return writer; }; @@ -17381,25 +18232,26 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SecurityReportSaveRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.SecurityReportSaveRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.SecurityReportSaveRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (!(message.securityReport && message.securityReport.length)) - message.securityReport = []; - message.securityReport.push($root.Authentication.SecurityReport.decode(reader, reader.uint32())); + case 1: { + if (!(message.securityReport && message.securityReport.length)) message.securityReport = []; + message.securityReport.push( + $root.Authentication.SecurityReport.decode(reader, reader.uint32()) + ); break; } - case 2: { + case 2: { message.continuationToken = reader.bytes(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -17416,8 +18268,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SecurityReportSaveRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -17430,20 +18281,22 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ SecurityReportSaveRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.securityReport != null && message.hasOwnProperty("securityReport")) { - if (!Array.isArray(message.securityReport)) - return "securityReport: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.securityReport != null && message.hasOwnProperty('securityReport')) { + if (!Array.isArray(message.securityReport)) return 'securityReport: array expected'; for (let i = 0; i < message.securityReport.length; ++i) { let error = $root.Authentication.SecurityReport.verify(message.securityReport[i]); - if (error) - return "securityReport." + error; + if (error) return 'securityReport.' + error; } } - if (message.continuationToken != null && message.hasOwnProperty("continuationToken")) - if (!(message.continuationToken && typeof message.continuationToken.length === "number" || $util.isString(message.continuationToken))) - return "continuationToken: buffer expected"; + if (message.continuationToken != null && message.hasOwnProperty('continuationToken')) + if ( + !( + (message.continuationToken && typeof message.continuationToken.length === 'number') || + $util.isString(message.continuationToken) + ) + ) + return 'continuationToken: buffer expected'; return null; }; @@ -17456,24 +18309,28 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.SecurityReportSaveRequest} SecurityReportSaveRequest */ SecurityReportSaveRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.SecurityReportSaveRequest) - return object; + if (object instanceof $root.Authentication.SecurityReportSaveRequest) return object; let message = new $root.Authentication.SecurityReportSaveRequest(); if (object.securityReport) { if (!Array.isArray(object.securityReport)) - throw TypeError(".Authentication.SecurityReportSaveRequest.securityReport: array expected"); + throw TypeError('.Authentication.SecurityReportSaveRequest.securityReport: array expected'); message.securityReport = []; for (let i = 0; i < object.securityReport.length; ++i) { - if (typeof object.securityReport[i] !== "object") - throw TypeError(".Authentication.SecurityReportSaveRequest.securityReport: object expected"); - message.securityReport[i] = $root.Authentication.SecurityReport.fromObject(object.securityReport[i]); + if (typeof object.securityReport[i] !== 'object') + throw TypeError('.Authentication.SecurityReportSaveRequest.securityReport: object expected'); + message.securityReport[i] = $root.Authentication.SecurityReport.fromObject( + object.securityReport[i] + ); } } if (object.continuationToken != null) - if (typeof object.continuationToken === "string") - $util.base64.decode(object.continuationToken, message.continuationToken = $util.newBuffer($util.base64.length(object.continuationToken)), 0); - else if (object.continuationToken.length >= 0) - message.continuationToken = object.continuationToken; + if (typeof object.continuationToken === 'string') + $util.base64.decode( + object.continuationToken, + (message.continuationToken = $util.newBuffer($util.base64.length(object.continuationToken))), + 0 + ); + else if (object.continuationToken.length >= 0) message.continuationToken = object.continuationToken; return message; }; @@ -17487,26 +18344,30 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ SecurityReportSaveRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.securityReport = []; + if (options.arrays || options.defaults) object.securityReport = []; if (options.defaults) - if (options.bytes === String) - object.continuationToken = ""; + if (options.bytes === String) object.continuationToken = ''; else { object.continuationToken = []; - if (options.bytes !== Array) - object.continuationToken = $util.newBuffer(object.continuationToken); + if (options.bytes !== Array) object.continuationToken = $util.newBuffer(object.continuationToken); } if (message.securityReport && message.securityReport.length) { object.securityReport = []; for (let j = 0; j < message.securityReport.length; ++j) - object.securityReport[j] = $root.Authentication.SecurityReport.toObject(message.securityReport[j], options); + object.securityReport[j] = $root.Authentication.SecurityReport.toObject( + message.securityReport[j], + options + ); } - if (message.continuationToken != null && message.hasOwnProperty("continuationToken")) - object.continuationToken = options.bytes === String ? $util.base64.encode(message.continuationToken, 0, message.continuationToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.continuationToken) : message.continuationToken; + if (message.continuationToken != null && message.hasOwnProperty('continuationToken')) + object.continuationToken = + options.bytes === String + ? $util.base64.encode(message.continuationToken, 0, message.continuationToken.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.continuationToken) + : message.continuationToken; return object; }; @@ -17531,16 +18392,15 @@ export const Authentication = $root.Authentication = (() => { */ SecurityReportSaveRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.SecurityReportSaveRequest"; + return typeUrlPrefix + '/Authentication.SecurityReportSaveRequest'; }; return SecurityReportSaveRequest; })(); - Authentication.SecurityReportRequest = (function() { - + Authentication.SecurityReportRequest = (function () { /** * Properties of a SecurityReportRequest. * @memberof Authentication @@ -17559,8 +18419,7 @@ export const Authentication = $root.Authentication = (() => { function SecurityReportRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -17569,7 +18428,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.SecurityReportRequest * @instance */ - SecurityReportRequest.prototype.fromPage = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + SecurityReportRequest.prototype.fromPage = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * Creates a new SecurityReportRequest instance using the specified properties. @@ -17593,10 +18452,9 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ SecurityReportRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.fromPage != null && Object.hasOwnProperty.call(message, "fromPage")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.fromPage); + if (!writer) writer = $Writer.create(); + if (message.fromPage != null && Object.hasOwnProperty.call(message, 'fromPage')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int64(message.fromPage); return writer; }; @@ -17625,19 +18483,19 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SecurityReportRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.SecurityReportRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.SecurityReportRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.fromPage = reader.int64(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -17654,8 +18512,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SecurityReportRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -17668,11 +18525,17 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ SecurityReportRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.fromPage != null && message.hasOwnProperty("fromPage")) - if (!$util.isInteger(message.fromPage) && !(message.fromPage && $util.isInteger(message.fromPage.low) && $util.isInteger(message.fromPage.high))) - return "fromPage: integer|Long expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.fromPage != null && message.hasOwnProperty('fromPage')) + if ( + !$util.isInteger(message.fromPage) && + !( + message.fromPage && + $util.isInteger(message.fromPage.low) && + $util.isInteger(message.fromPage.high) + ) + ) + return 'fromPage: integer|Long expected'; return null; }; @@ -17685,18 +18548,17 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.SecurityReportRequest} SecurityReportRequest */ SecurityReportRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.SecurityReportRequest) - return object; + if (object instanceof $root.Authentication.SecurityReportRequest) return object; let message = new $root.Authentication.SecurityReportRequest(); if (object.fromPage != null) - if ($util.Long) - (message.fromPage = $util.Long.fromValue(object.fromPage)).unsigned = false; - else if (typeof object.fromPage === "string") - message.fromPage = parseInt(object.fromPage, 10); - else if (typeof object.fromPage === "number") - message.fromPage = object.fromPage; - else if (typeof object.fromPage === "object") - message.fromPage = new $util.LongBits(object.fromPage.low >>> 0, object.fromPage.high >>> 0).toNumber(); + if ($util.Long) (message.fromPage = $util.Long.fromValue(object.fromPage)).unsigned = false; + else if (typeof object.fromPage === 'string') message.fromPage = parseInt(object.fromPage, 10); + else if (typeof object.fromPage === 'number') message.fromPage = object.fromPage; + else if (typeof object.fromPage === 'object') + message.fromPage = new $util.LongBits( + object.fromPage.low >>> 0, + object.fromPage.high >>> 0 + ).toNumber(); return message; }; @@ -17710,20 +18572,24 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ SecurityReportRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) if ($util.Long) { let long = new $util.Long(0, 0, false); - object.fromPage = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.fromPage = options.longs === String ? "0" : 0; - if (message.fromPage != null && message.hasOwnProperty("fromPage")) - if (typeof message.fromPage === "number") + object.fromPage = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.fromPage = options.longs === String ? '0' : 0; + if (message.fromPage != null && message.hasOwnProperty('fromPage')) + if (typeof message.fromPage === 'number') object.fromPage = options.longs === String ? String(message.fromPage) : message.fromPage; else - object.fromPage = options.longs === String ? $util.Long.prototype.toString.call(message.fromPage) : options.longs === Number ? new $util.LongBits(message.fromPage.low >>> 0, message.fromPage.high >>> 0).toNumber() : message.fromPage; + object.fromPage = + options.longs === String + ? $util.Long.prototype.toString.call(message.fromPage) + : options.longs === Number + ? new $util.LongBits(message.fromPage.low >>> 0, message.fromPage.high >>> 0).toNumber() + : message.fromPage; return object; }; @@ -17748,16 +18614,15 @@ export const Authentication = $root.Authentication = (() => { */ SecurityReportRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.SecurityReportRequest"; + return typeUrlPrefix + '/Authentication.SecurityReportRequest'; }; return SecurityReportRequest; })(); - Authentication.SecurityReportResponse = (function() { - + Authentication.SecurityReportResponse = (function () { /** * Properties of a SecurityReportResponse. * @memberof Authentication @@ -17784,8 +18649,7 @@ export const Authentication = $root.Authentication = (() => { this.securityReport = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -17810,7 +18674,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.SecurityReportResponse * @instance */ - SecurityReportResponse.prototype.asOfRevision = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + SecurityReportResponse.prototype.asOfRevision = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * SecurityReportResponse fromPage. @@ -17818,7 +18682,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.SecurityReportResponse * @instance */ - SecurityReportResponse.prototype.fromPage = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + SecurityReportResponse.prototype.fromPage = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * SecurityReportResponse toPage. @@ -17826,7 +18690,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.SecurityReportResponse * @instance */ - SecurityReportResponse.prototype.toPage = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + SecurityReportResponse.prototype.toPage = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * SecurityReportResponse complete. @@ -17874,25 +18738,30 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ SecurityReportResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.enterprisePrivateKey != null && Object.hasOwnProperty.call(message, "enterprisePrivateKey")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.enterprisePrivateKey); + if (!writer) writer = $Writer.create(); + if (message.enterprisePrivateKey != null && Object.hasOwnProperty.call(message, 'enterprisePrivateKey')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.enterprisePrivateKey); if (message.securityReport != null && message.securityReport.length) for (let i = 0; i < message.securityReport.length; ++i) - $root.Authentication.SecurityReport.encode(message.securityReport[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.asOfRevision != null && Object.hasOwnProperty.call(message, "asOfRevision")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.asOfRevision); - if (message.fromPage != null && Object.hasOwnProperty.call(message, "fromPage")) - writer.uint32(/* id 4, wireType 0 =*/32).int64(message.fromPage); - if (message.toPage != null && Object.hasOwnProperty.call(message, "toPage")) - writer.uint32(/* id 5, wireType 0 =*/40).int64(message.toPage); - if (message.complete != null && Object.hasOwnProperty.call(message, "complete")) - writer.uint32(/* id 6, wireType 0 =*/48).bool(message.complete); - if (message.enterpriseEccPrivateKey != null && Object.hasOwnProperty.call(message, "enterpriseEccPrivateKey")) - writer.uint32(/* id 7, wireType 2 =*/58).bytes(message.enterpriseEccPrivateKey); - if (message.hasIncrementalData != null && Object.hasOwnProperty.call(message, "hasIncrementalData")) - writer.uint32(/* id 8, wireType 0 =*/64).bool(message.hasIncrementalData); + $root.Authentication.SecurityReport.encode( + message.securityReport[i], + writer.uint32(/* id 2, wireType 2 =*/ 18).fork() + ).ldelim(); + if (message.asOfRevision != null && Object.hasOwnProperty.call(message, 'asOfRevision')) + writer.uint32(/* id 3, wireType 0 =*/ 24).int64(message.asOfRevision); + if (message.fromPage != null && Object.hasOwnProperty.call(message, 'fromPage')) + writer.uint32(/* id 4, wireType 0 =*/ 32).int64(message.fromPage); + if (message.toPage != null && Object.hasOwnProperty.call(message, 'toPage')) + writer.uint32(/* id 5, wireType 0 =*/ 40).int64(message.toPage); + if (message.complete != null && Object.hasOwnProperty.call(message, 'complete')) + writer.uint32(/* id 6, wireType 0 =*/ 48).bool(message.complete); + if ( + message.enterpriseEccPrivateKey != null && + Object.hasOwnProperty.call(message, 'enterpriseEccPrivateKey') + ) + writer.uint32(/* id 7, wireType 2 =*/ 58).bytes(message.enterpriseEccPrivateKey); + if (message.hasIncrementalData != null && Object.hasOwnProperty.call(message, 'hasIncrementalData')) + writer.uint32(/* id 8, wireType 0 =*/ 64).bool(message.hasIncrementalData); return writer; }; @@ -17921,49 +18790,50 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SecurityReportResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.SecurityReportResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.SecurityReportResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.enterprisePrivateKey = reader.bytes(); break; } - case 2: { - if (!(message.securityReport && message.securityReport.length)) - message.securityReport = []; - message.securityReport.push($root.Authentication.SecurityReport.decode(reader, reader.uint32())); + case 2: { + if (!(message.securityReport && message.securityReport.length)) message.securityReport = []; + message.securityReport.push( + $root.Authentication.SecurityReport.decode(reader, reader.uint32()) + ); break; } - case 3: { + case 3: { message.asOfRevision = reader.int64(); break; } - case 4: { + case 4: { message.fromPage = reader.int64(); break; } - case 5: { + case 5: { message.toPage = reader.int64(); break; } - case 6: { + case 6: { message.complete = reader.bool(); break; } - case 7: { + case 7: { message.enterpriseEccPrivateKey = reader.bytes(); break; } - case 8: { + case 8: { message.hasIncrementalData = reader.bool(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -17980,8 +18850,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SecurityReportResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -17994,38 +18863,61 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ SecurityReportResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.enterprisePrivateKey != null && message.hasOwnProperty("enterprisePrivateKey")) - if (!(message.enterprisePrivateKey && typeof message.enterprisePrivateKey.length === "number" || $util.isString(message.enterprisePrivateKey))) - return "enterprisePrivateKey: buffer expected"; - if (message.securityReport != null && message.hasOwnProperty("securityReport")) { - if (!Array.isArray(message.securityReport)) - return "securityReport: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.enterprisePrivateKey != null && message.hasOwnProperty('enterprisePrivateKey')) + if ( + !( + (message.enterprisePrivateKey && typeof message.enterprisePrivateKey.length === 'number') || + $util.isString(message.enterprisePrivateKey) + ) + ) + return 'enterprisePrivateKey: buffer expected'; + if (message.securityReport != null && message.hasOwnProperty('securityReport')) { + if (!Array.isArray(message.securityReport)) return 'securityReport: array expected'; for (let i = 0; i < message.securityReport.length; ++i) { let error = $root.Authentication.SecurityReport.verify(message.securityReport[i]); - if (error) - return "securityReport." + error; - } - } - if (message.asOfRevision != null && message.hasOwnProperty("asOfRevision")) - if (!$util.isInteger(message.asOfRevision) && !(message.asOfRevision && $util.isInteger(message.asOfRevision.low) && $util.isInteger(message.asOfRevision.high))) - return "asOfRevision: integer|Long expected"; - if (message.fromPage != null && message.hasOwnProperty("fromPage")) - if (!$util.isInteger(message.fromPage) && !(message.fromPage && $util.isInteger(message.fromPage.low) && $util.isInteger(message.fromPage.high))) - return "fromPage: integer|Long expected"; - if (message.toPage != null && message.hasOwnProperty("toPage")) - if (!$util.isInteger(message.toPage) && !(message.toPage && $util.isInteger(message.toPage.low) && $util.isInteger(message.toPage.high))) - return "toPage: integer|Long expected"; - if (message.complete != null && message.hasOwnProperty("complete")) - if (typeof message.complete !== "boolean") - return "complete: boolean expected"; - if (message.enterpriseEccPrivateKey != null && message.hasOwnProperty("enterpriseEccPrivateKey")) - if (!(message.enterpriseEccPrivateKey && typeof message.enterpriseEccPrivateKey.length === "number" || $util.isString(message.enterpriseEccPrivateKey))) - return "enterpriseEccPrivateKey: buffer expected"; - if (message.hasIncrementalData != null && message.hasOwnProperty("hasIncrementalData")) - if (typeof message.hasIncrementalData !== "boolean") - return "hasIncrementalData: boolean expected"; + if (error) return 'securityReport.' + error; + } + } + if (message.asOfRevision != null && message.hasOwnProperty('asOfRevision')) + if ( + !$util.isInteger(message.asOfRevision) && + !( + message.asOfRevision && + $util.isInteger(message.asOfRevision.low) && + $util.isInteger(message.asOfRevision.high) + ) + ) + return 'asOfRevision: integer|Long expected'; + if (message.fromPage != null && message.hasOwnProperty('fromPage')) + if ( + !$util.isInteger(message.fromPage) && + !( + message.fromPage && + $util.isInteger(message.fromPage.low) && + $util.isInteger(message.fromPage.high) + ) + ) + return 'fromPage: integer|Long expected'; + if (message.toPage != null && message.hasOwnProperty('toPage')) + if ( + !$util.isInteger(message.toPage) && + !(message.toPage && $util.isInteger(message.toPage.low) && $util.isInteger(message.toPage.high)) + ) + return 'toPage: integer|Long expected'; + if (message.complete != null && message.hasOwnProperty('complete')) + if (typeof message.complete !== 'boolean') return 'complete: boolean expected'; + if (message.enterpriseEccPrivateKey != null && message.hasOwnProperty('enterpriseEccPrivateKey')) + if ( + !( + (message.enterpriseEccPrivateKey && + typeof message.enterpriseEccPrivateKey.length === 'number') || + $util.isString(message.enterpriseEccPrivateKey) + ) + ) + return 'enterpriseEccPrivateKey: buffer expected'; + if (message.hasIncrementalData != null && message.hasOwnProperty('hasIncrementalData')) + if (typeof message.hasIncrementalData !== 'boolean') return 'hasIncrementalData: boolean expected'; return null; }; @@ -18038,60 +18930,69 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.SecurityReportResponse} SecurityReportResponse */ SecurityReportResponse.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.SecurityReportResponse) - return object; + if (object instanceof $root.Authentication.SecurityReportResponse) return object; let message = new $root.Authentication.SecurityReportResponse(); if (object.enterprisePrivateKey != null) - if (typeof object.enterprisePrivateKey === "string") - $util.base64.decode(object.enterprisePrivateKey, message.enterprisePrivateKey = $util.newBuffer($util.base64.length(object.enterprisePrivateKey)), 0); + if (typeof object.enterprisePrivateKey === 'string') + $util.base64.decode( + object.enterprisePrivateKey, + (message.enterprisePrivateKey = $util.newBuffer( + $util.base64.length(object.enterprisePrivateKey) + )), + 0 + ); else if (object.enterprisePrivateKey.length >= 0) message.enterprisePrivateKey = object.enterprisePrivateKey; if (object.securityReport) { if (!Array.isArray(object.securityReport)) - throw TypeError(".Authentication.SecurityReportResponse.securityReport: array expected"); + throw TypeError('.Authentication.SecurityReportResponse.securityReport: array expected'); message.securityReport = []; for (let i = 0; i < object.securityReport.length; ++i) { - if (typeof object.securityReport[i] !== "object") - throw TypeError(".Authentication.SecurityReportResponse.securityReport: object expected"); - message.securityReport[i] = $root.Authentication.SecurityReport.fromObject(object.securityReport[i]); + if (typeof object.securityReport[i] !== 'object') + throw TypeError('.Authentication.SecurityReportResponse.securityReport: object expected'); + message.securityReport[i] = $root.Authentication.SecurityReport.fromObject( + object.securityReport[i] + ); } } if (object.asOfRevision != null) - if ($util.Long) - (message.asOfRevision = $util.Long.fromValue(object.asOfRevision)).unsigned = false; - else if (typeof object.asOfRevision === "string") + if ($util.Long) (message.asOfRevision = $util.Long.fromValue(object.asOfRevision)).unsigned = false; + else if (typeof object.asOfRevision === 'string') message.asOfRevision = parseInt(object.asOfRevision, 10); - else if (typeof object.asOfRevision === "number") - message.asOfRevision = object.asOfRevision; - else if (typeof object.asOfRevision === "object") - message.asOfRevision = new $util.LongBits(object.asOfRevision.low >>> 0, object.asOfRevision.high >>> 0).toNumber(); + else if (typeof object.asOfRevision === 'number') message.asOfRevision = object.asOfRevision; + else if (typeof object.asOfRevision === 'object') + message.asOfRevision = new $util.LongBits( + object.asOfRevision.low >>> 0, + object.asOfRevision.high >>> 0 + ).toNumber(); if (object.fromPage != null) - if ($util.Long) - (message.fromPage = $util.Long.fromValue(object.fromPage)).unsigned = false; - else if (typeof object.fromPage === "string") - message.fromPage = parseInt(object.fromPage, 10); - else if (typeof object.fromPage === "number") - message.fromPage = object.fromPage; - else if (typeof object.fromPage === "object") - message.fromPage = new $util.LongBits(object.fromPage.low >>> 0, object.fromPage.high >>> 0).toNumber(); + if ($util.Long) (message.fromPage = $util.Long.fromValue(object.fromPage)).unsigned = false; + else if (typeof object.fromPage === 'string') message.fromPage = parseInt(object.fromPage, 10); + else if (typeof object.fromPage === 'number') message.fromPage = object.fromPage; + else if (typeof object.fromPage === 'object') + message.fromPage = new $util.LongBits( + object.fromPage.low >>> 0, + object.fromPage.high >>> 0 + ).toNumber(); if (object.toPage != null) - if ($util.Long) - (message.toPage = $util.Long.fromValue(object.toPage)).unsigned = false; - else if (typeof object.toPage === "string") - message.toPage = parseInt(object.toPage, 10); - else if (typeof object.toPage === "number") - message.toPage = object.toPage; - else if (typeof object.toPage === "object") + if ($util.Long) (message.toPage = $util.Long.fromValue(object.toPage)).unsigned = false; + else if (typeof object.toPage === 'string') message.toPage = parseInt(object.toPage, 10); + else if (typeof object.toPage === 'number') message.toPage = object.toPage; + else if (typeof object.toPage === 'object') message.toPage = new $util.LongBits(object.toPage.low >>> 0, object.toPage.high >>> 0).toNumber(); - if (object.complete != null) - message.complete = Boolean(object.complete); + if (object.complete != null) message.complete = Boolean(object.complete); if (object.enterpriseEccPrivateKey != null) - if (typeof object.enterpriseEccPrivateKey === "string") - $util.base64.decode(object.enterpriseEccPrivateKey, message.enterpriseEccPrivateKey = $util.newBuffer($util.base64.length(object.enterpriseEccPrivateKey)), 0); + if (typeof object.enterpriseEccPrivateKey === 'string') + $util.base64.decode( + object.enterpriseEccPrivateKey, + (message.enterpriseEccPrivateKey = $util.newBuffer( + $util.base64.length(object.enterpriseEccPrivateKey) + )), + 0 + ); else if (object.enterpriseEccPrivateKey.length >= 0) message.enterpriseEccPrivateKey = object.enterpriseEccPrivateKey; - if (object.hasIncrementalData != null) - message.hasIncrementalData = Boolean(object.hasIncrementalData); + if (object.hasIncrementalData != null) message.hasIncrementalData = Boolean(object.hasIncrementalData); return message; }; @@ -18105,14 +19006,11 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ SecurityReportResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.securityReport = []; + if (options.arrays || options.defaults) object.securityReport = []; if (options.defaults) { - if (options.bytes === String) - object.enterprisePrivateKey = ""; + if (options.bytes === String) object.enterprisePrivateKey = ''; else { object.enterprisePrivateKey = []; if (options.bytes !== Array) @@ -18120,22 +19018,21 @@ export const Authentication = $root.Authentication = (() => { } if ($util.Long) { let long = new $util.Long(0, 0, false); - object.asOfRevision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.asOfRevision = options.longs === String ? "0" : 0; + object.asOfRevision = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.asOfRevision = options.longs === String ? '0' : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.fromPage = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.fromPage = options.longs === String ? "0" : 0; + object.fromPage = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.fromPage = options.longs === String ? '0' : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.toPage = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.toPage = options.longs === String ? "0" : 0; + object.toPage = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.toPage = options.longs === String ? '0' : 0; object.complete = false; - if (options.bytes === String) - object.enterpriseEccPrivateKey = ""; + if (options.bytes === String) object.enterpriseEccPrivateKey = ''; else { object.enterpriseEccPrivateKey = []; if (options.bytes !== Array) @@ -18143,33 +19040,68 @@ export const Authentication = $root.Authentication = (() => { } object.hasIncrementalData = false; } - if (message.enterprisePrivateKey != null && message.hasOwnProperty("enterprisePrivateKey")) - object.enterprisePrivateKey = options.bytes === String ? $util.base64.encode(message.enterprisePrivateKey, 0, message.enterprisePrivateKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.enterprisePrivateKey) : message.enterprisePrivateKey; + if (message.enterprisePrivateKey != null && message.hasOwnProperty('enterprisePrivateKey')) + object.enterprisePrivateKey = + options.bytes === String + ? $util.base64.encode(message.enterprisePrivateKey, 0, message.enterprisePrivateKey.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.enterprisePrivateKey) + : message.enterprisePrivateKey; if (message.securityReport && message.securityReport.length) { object.securityReport = []; for (let j = 0; j < message.securityReport.length; ++j) - object.securityReport[j] = $root.Authentication.SecurityReport.toObject(message.securityReport[j], options); - } - if (message.asOfRevision != null && message.hasOwnProperty("asOfRevision")) - if (typeof message.asOfRevision === "number") - object.asOfRevision = options.longs === String ? String(message.asOfRevision) : message.asOfRevision; + object.securityReport[j] = $root.Authentication.SecurityReport.toObject( + message.securityReport[j], + options + ); + } + if (message.asOfRevision != null && message.hasOwnProperty('asOfRevision')) + if (typeof message.asOfRevision === 'number') + object.asOfRevision = + options.longs === String ? String(message.asOfRevision) : message.asOfRevision; else - object.asOfRevision = options.longs === String ? $util.Long.prototype.toString.call(message.asOfRevision) : options.longs === Number ? new $util.LongBits(message.asOfRevision.low >>> 0, message.asOfRevision.high >>> 0).toNumber() : message.asOfRevision; - if (message.fromPage != null && message.hasOwnProperty("fromPage")) - if (typeof message.fromPage === "number") + object.asOfRevision = + options.longs === String + ? $util.Long.prototype.toString.call(message.asOfRevision) + : options.longs === Number + ? new $util.LongBits( + message.asOfRevision.low >>> 0, + message.asOfRevision.high >>> 0 + ).toNumber() + : message.asOfRevision; + if (message.fromPage != null && message.hasOwnProperty('fromPage')) + if (typeof message.fromPage === 'number') object.fromPage = options.longs === String ? String(message.fromPage) : message.fromPage; else - object.fromPage = options.longs === String ? $util.Long.prototype.toString.call(message.fromPage) : options.longs === Number ? new $util.LongBits(message.fromPage.low >>> 0, message.fromPage.high >>> 0).toNumber() : message.fromPage; - if (message.toPage != null && message.hasOwnProperty("toPage")) - if (typeof message.toPage === "number") + object.fromPage = + options.longs === String + ? $util.Long.prototype.toString.call(message.fromPage) + : options.longs === Number + ? new $util.LongBits(message.fromPage.low >>> 0, message.fromPage.high >>> 0).toNumber() + : message.fromPage; + if (message.toPage != null && message.hasOwnProperty('toPage')) + if (typeof message.toPage === 'number') object.toPage = options.longs === String ? String(message.toPage) : message.toPage; else - object.toPage = options.longs === String ? $util.Long.prototype.toString.call(message.toPage) : options.longs === Number ? new $util.LongBits(message.toPage.low >>> 0, message.toPage.high >>> 0).toNumber() : message.toPage; - if (message.complete != null && message.hasOwnProperty("complete")) - object.complete = message.complete; - if (message.enterpriseEccPrivateKey != null && message.hasOwnProperty("enterpriseEccPrivateKey")) - object.enterpriseEccPrivateKey = options.bytes === String ? $util.base64.encode(message.enterpriseEccPrivateKey, 0, message.enterpriseEccPrivateKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.enterpriseEccPrivateKey) : message.enterpriseEccPrivateKey; - if (message.hasIncrementalData != null && message.hasOwnProperty("hasIncrementalData")) + object.toPage = + options.longs === String + ? $util.Long.prototype.toString.call(message.toPage) + : options.longs === Number + ? new $util.LongBits(message.toPage.low >>> 0, message.toPage.high >>> 0).toNumber() + : message.toPage; + if (message.complete != null && message.hasOwnProperty('complete')) object.complete = message.complete; + if (message.enterpriseEccPrivateKey != null && message.hasOwnProperty('enterpriseEccPrivateKey')) + object.enterpriseEccPrivateKey = + options.bytes === String + ? $util.base64.encode( + message.enterpriseEccPrivateKey, + 0, + message.enterpriseEccPrivateKey.length + ) + : options.bytes === Array + ? Array.prototype.slice.call(message.enterpriseEccPrivateKey) + : message.enterpriseEccPrivateKey; + if (message.hasIncrementalData != null && message.hasOwnProperty('hasIncrementalData')) object.hasIncrementalData = message.hasIncrementalData; return object; }; @@ -18195,16 +19127,15 @@ export const Authentication = $root.Authentication = (() => { */ SecurityReportResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.SecurityReportResponse"; + return typeUrlPrefix + '/Authentication.SecurityReportResponse'; }; return SecurityReportResponse; })(); - Authentication.IncrementalSecurityDataRequest = (function() { - + Authentication.IncrementalSecurityDataRequest = (function () { /** * Properties of an IncrementalSecurityDataRequest. * @memberof Authentication @@ -18223,8 +19154,7 @@ export const Authentication = $root.Authentication = (() => { function IncrementalSecurityDataRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -18257,10 +19187,9 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ IncrementalSecurityDataRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.continuationToken != null && Object.hasOwnProperty.call(message, "continuationToken")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.continuationToken); + if (!writer) writer = $Writer.create(); + if (message.continuationToken != null && Object.hasOwnProperty.call(message, 'continuationToken')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.continuationToken); return writer; }; @@ -18289,19 +19218,19 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ IncrementalSecurityDataRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.IncrementalSecurityDataRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.IncrementalSecurityDataRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.continuationToken = reader.bytes(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -18318,8 +19247,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ IncrementalSecurityDataRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -18332,11 +19260,15 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ IncrementalSecurityDataRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.continuationToken != null && message.hasOwnProperty("continuationToken")) - if (!(message.continuationToken && typeof message.continuationToken.length === "number" || $util.isString(message.continuationToken))) - return "continuationToken: buffer expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.continuationToken != null && message.hasOwnProperty('continuationToken')) + if ( + !( + (message.continuationToken && typeof message.continuationToken.length === 'number') || + $util.isString(message.continuationToken) + ) + ) + return 'continuationToken: buffer expected'; return null; }; @@ -18349,14 +19281,16 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.IncrementalSecurityDataRequest} IncrementalSecurityDataRequest */ IncrementalSecurityDataRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.IncrementalSecurityDataRequest) - return object; + if (object instanceof $root.Authentication.IncrementalSecurityDataRequest) return object; let message = new $root.Authentication.IncrementalSecurityDataRequest(); if (object.continuationToken != null) - if (typeof object.continuationToken === "string") - $util.base64.decode(object.continuationToken, message.continuationToken = $util.newBuffer($util.base64.length(object.continuationToken)), 0); - else if (object.continuationToken.length >= 0) - message.continuationToken = object.continuationToken; + if (typeof object.continuationToken === 'string') + $util.base64.decode( + object.continuationToken, + (message.continuationToken = $util.newBuffer($util.base64.length(object.continuationToken))), + 0 + ); + else if (object.continuationToken.length >= 0) message.continuationToken = object.continuationToken; return message; }; @@ -18370,19 +19304,21 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ IncrementalSecurityDataRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) - if (options.bytes === String) - object.continuationToken = ""; + if (options.bytes === String) object.continuationToken = ''; else { object.continuationToken = []; - if (options.bytes !== Array) - object.continuationToken = $util.newBuffer(object.continuationToken); + if (options.bytes !== Array) object.continuationToken = $util.newBuffer(object.continuationToken); } - if (message.continuationToken != null && message.hasOwnProperty("continuationToken")) - object.continuationToken = options.bytes === String ? $util.base64.encode(message.continuationToken, 0, message.continuationToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.continuationToken) : message.continuationToken; + if (message.continuationToken != null && message.hasOwnProperty('continuationToken')) + object.continuationToken = + options.bytes === String + ? $util.base64.encode(message.continuationToken, 0, message.continuationToken.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.continuationToken) + : message.continuationToken; return object; }; @@ -18407,16 +19343,15 @@ export const Authentication = $root.Authentication = (() => { */ IncrementalSecurityDataRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.IncrementalSecurityDataRequest"; + return typeUrlPrefix + '/Authentication.IncrementalSecurityDataRequest'; }; return IncrementalSecurityDataRequest; })(); - Authentication.IncrementalSecurityDataResponse = (function() { - + Authentication.IncrementalSecurityDataResponse = (function () { /** * Properties of an IncrementalSecurityDataResponse. * @memberof Authentication @@ -18437,8 +19372,7 @@ export const Authentication = $root.Authentication = (() => { this.securityReportIncrementalData = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -18479,13 +19413,15 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ IncrementalSecurityDataResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.securityReportIncrementalData != null && message.securityReportIncrementalData.length) for (let i = 0; i < message.securityReportIncrementalData.length; ++i) - $root.Authentication.SecurityReportIncrementalData.encode(message.securityReportIncrementalData[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.continuationToken != null && Object.hasOwnProperty.call(message, "continuationToken")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.continuationToken); + $root.Authentication.SecurityReportIncrementalData.encode( + message.securityReportIncrementalData[i], + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); + if (message.continuationToken != null && Object.hasOwnProperty.call(message, 'continuationToken')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.continuationToken); return writer; }; @@ -18514,25 +19450,27 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ IncrementalSecurityDataResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.IncrementalSecurityDataResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.IncrementalSecurityDataResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { if (!(message.securityReportIncrementalData && message.securityReportIncrementalData.length)) message.securityReportIncrementalData = []; - message.securityReportIncrementalData.push($root.Authentication.SecurityReportIncrementalData.decode(reader, reader.uint32())); + message.securityReportIncrementalData.push( + $root.Authentication.SecurityReportIncrementalData.decode(reader, reader.uint32()) + ); break; } - case 2: { + case 2: { message.continuationToken = reader.bytes(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -18549,8 +19487,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ IncrementalSecurityDataResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -18563,20 +19500,28 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ IncrementalSecurityDataResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.securityReportIncrementalData != null && message.hasOwnProperty("securityReportIncrementalData")) { + if (typeof message !== 'object' || message === null) return 'object expected'; + if ( + message.securityReportIncrementalData != null && + message.hasOwnProperty('securityReportIncrementalData') + ) { if (!Array.isArray(message.securityReportIncrementalData)) - return "securityReportIncrementalData: array expected"; + return 'securityReportIncrementalData: array expected'; for (let i = 0; i < message.securityReportIncrementalData.length; ++i) { - let error = $root.Authentication.SecurityReportIncrementalData.verify(message.securityReportIncrementalData[i]); - if (error) - return "securityReportIncrementalData." + error; + let error = $root.Authentication.SecurityReportIncrementalData.verify( + message.securityReportIncrementalData[i] + ); + if (error) return 'securityReportIncrementalData.' + error; } } - if (message.continuationToken != null && message.hasOwnProperty("continuationToken")) - if (!(message.continuationToken && typeof message.continuationToken.length === "number" || $util.isString(message.continuationToken))) - return "continuationToken: buffer expected"; + if (message.continuationToken != null && message.hasOwnProperty('continuationToken')) + if ( + !( + (message.continuationToken && typeof message.continuationToken.length === 'number') || + $util.isString(message.continuationToken) + ) + ) + return 'continuationToken: buffer expected'; return null; }; @@ -18589,24 +19534,33 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.IncrementalSecurityDataResponse} IncrementalSecurityDataResponse */ IncrementalSecurityDataResponse.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.IncrementalSecurityDataResponse) - return object; + if (object instanceof $root.Authentication.IncrementalSecurityDataResponse) return object; let message = new $root.Authentication.IncrementalSecurityDataResponse(); if (object.securityReportIncrementalData) { if (!Array.isArray(object.securityReportIncrementalData)) - throw TypeError(".Authentication.IncrementalSecurityDataResponse.securityReportIncrementalData: array expected"); + throw TypeError( + '.Authentication.IncrementalSecurityDataResponse.securityReportIncrementalData: array expected' + ); message.securityReportIncrementalData = []; for (let i = 0; i < object.securityReportIncrementalData.length; ++i) { - if (typeof object.securityReportIncrementalData[i] !== "object") - throw TypeError(".Authentication.IncrementalSecurityDataResponse.securityReportIncrementalData: object expected"); - message.securityReportIncrementalData[i] = $root.Authentication.SecurityReportIncrementalData.fromObject(object.securityReportIncrementalData[i]); + if (typeof object.securityReportIncrementalData[i] !== 'object') + throw TypeError( + '.Authentication.IncrementalSecurityDataResponse.securityReportIncrementalData: object expected' + ); + message.securityReportIncrementalData[i] = + $root.Authentication.SecurityReportIncrementalData.fromObject( + object.securityReportIncrementalData[i] + ); } } if (object.continuationToken != null) - if (typeof object.continuationToken === "string") - $util.base64.decode(object.continuationToken, message.continuationToken = $util.newBuffer($util.base64.length(object.continuationToken)), 0); - else if (object.continuationToken.length >= 0) - message.continuationToken = object.continuationToken; + if (typeof object.continuationToken === 'string') + $util.base64.decode( + object.continuationToken, + (message.continuationToken = $util.newBuffer($util.base64.length(object.continuationToken))), + 0 + ); + else if (object.continuationToken.length >= 0) message.continuationToken = object.continuationToken; return message; }; @@ -18620,26 +19574,31 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ IncrementalSecurityDataResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.securityReportIncrementalData = []; + if (options.arrays || options.defaults) object.securityReportIncrementalData = []; if (options.defaults) - if (options.bytes === String) - object.continuationToken = ""; + if (options.bytes === String) object.continuationToken = ''; else { object.continuationToken = []; - if (options.bytes !== Array) - object.continuationToken = $util.newBuffer(object.continuationToken); + if (options.bytes !== Array) object.continuationToken = $util.newBuffer(object.continuationToken); } if (message.securityReportIncrementalData && message.securityReportIncrementalData.length) { object.securityReportIncrementalData = []; for (let j = 0; j < message.securityReportIncrementalData.length; ++j) - object.securityReportIncrementalData[j] = $root.Authentication.SecurityReportIncrementalData.toObject(message.securityReportIncrementalData[j], options); + object.securityReportIncrementalData[j] = + $root.Authentication.SecurityReportIncrementalData.toObject( + message.securityReportIncrementalData[j], + options + ); } - if (message.continuationToken != null && message.hasOwnProperty("continuationToken")) - object.continuationToken = options.bytes === String ? $util.base64.encode(message.continuationToken, 0, message.continuationToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.continuationToken) : message.continuationToken; + if (message.continuationToken != null && message.hasOwnProperty('continuationToken')) + object.continuationToken = + options.bytes === String + ? $util.base64.encode(message.continuationToken, 0, message.continuationToken.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.continuationToken) + : message.continuationToken; return object; }; @@ -18664,16 +19623,15 @@ export const Authentication = $root.Authentication = (() => { */ IncrementalSecurityDataResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.IncrementalSecurityDataResponse"; + return typeUrlPrefix + '/Authentication.IncrementalSecurityDataResponse'; }; return IncrementalSecurityDataResponse; })(); - Authentication.ReusedPasswordsRequest = (function() { - + Authentication.ReusedPasswordsRequest = (function () { /** * Properties of a ReusedPasswordsRequest. * @memberof Authentication @@ -18692,8 +19650,7 @@ export const Authentication = $root.Authentication = (() => { function ReusedPasswordsRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -18726,10 +19683,9 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ ReusedPasswordsRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.count != null && Object.hasOwnProperty.call(message, "count")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.count); + if (!writer) writer = $Writer.create(); + if (message.count != null && Object.hasOwnProperty.call(message, 'count')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int32(message.count); return writer; }; @@ -18758,19 +19714,19 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ReusedPasswordsRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.ReusedPasswordsRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.ReusedPasswordsRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.count = reader.int32(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -18787,8 +19743,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ReusedPasswordsRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -18801,11 +19756,9 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ ReusedPasswordsRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.count != null && message.hasOwnProperty("count")) - if (!$util.isInteger(message.count)) - return "count: integer expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.count != null && message.hasOwnProperty('count')) + if (!$util.isInteger(message.count)) return 'count: integer expected'; return null; }; @@ -18818,11 +19771,9 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.ReusedPasswordsRequest} ReusedPasswordsRequest */ ReusedPasswordsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.ReusedPasswordsRequest) - return object; + if (object instanceof $root.Authentication.ReusedPasswordsRequest) return object; let message = new $root.Authentication.ReusedPasswordsRequest(); - if (object.count != null) - message.count = object.count | 0; + if (object.count != null) message.count = object.count | 0; return message; }; @@ -18836,13 +19787,10 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ ReusedPasswordsRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.defaults) - object.count = 0; - if (message.count != null && message.hasOwnProperty("count")) - object.count = message.count; + if (options.defaults) object.count = 0; + if (message.count != null && message.hasOwnProperty('count')) object.count = message.count; return object; }; @@ -18867,16 +19815,15 @@ export const Authentication = $root.Authentication = (() => { */ ReusedPasswordsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.ReusedPasswordsRequest"; + return typeUrlPrefix + '/Authentication.ReusedPasswordsRequest'; }; return ReusedPasswordsRequest; })(); - Authentication.SummaryConsoleReport = (function() { - + Authentication.SummaryConsoleReport = (function () { /** * Properties of a SummaryConsoleReport. * @memberof Authentication @@ -18896,8 +19843,7 @@ export const Authentication = $root.Authentication = (() => { function SummaryConsoleReport(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -18938,12 +19884,11 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ SummaryConsoleReport.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.reportType != null && Object.hasOwnProperty.call(message, "reportType")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.reportType); - if (message.reportData != null && Object.hasOwnProperty.call(message, "reportData")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.reportData); + if (!writer) writer = $Writer.create(); + if (message.reportType != null && Object.hasOwnProperty.call(message, 'reportType')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int32(message.reportType); + if (message.reportData != null && Object.hasOwnProperty.call(message, 'reportData')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.reportData); return writer; }; @@ -18972,23 +19917,23 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SummaryConsoleReport.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.SummaryConsoleReport(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.SummaryConsoleReport(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.reportType = reader.int32(); break; } - case 2: { + case 2: { message.reportData = reader.bytes(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -19005,8 +19950,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SummaryConsoleReport.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -19019,14 +19963,17 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ SummaryConsoleReport.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.reportType != null && message.hasOwnProperty("reportType")) - if (!$util.isInteger(message.reportType)) - return "reportType: integer expected"; - if (message.reportData != null && message.hasOwnProperty("reportData")) - if (!(message.reportData && typeof message.reportData.length === "number" || $util.isString(message.reportData))) - return "reportData: buffer expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.reportType != null && message.hasOwnProperty('reportType')) + if (!$util.isInteger(message.reportType)) return 'reportType: integer expected'; + if (message.reportData != null && message.hasOwnProperty('reportData')) + if ( + !( + (message.reportData && typeof message.reportData.length === 'number') || + $util.isString(message.reportData) + ) + ) + return 'reportData: buffer expected'; return null; }; @@ -19039,16 +19986,17 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.SummaryConsoleReport} SummaryConsoleReport */ SummaryConsoleReport.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.SummaryConsoleReport) - return object; + if (object instanceof $root.Authentication.SummaryConsoleReport) return object; let message = new $root.Authentication.SummaryConsoleReport(); - if (object.reportType != null) - message.reportType = object.reportType | 0; + if (object.reportType != null) message.reportType = object.reportType | 0; if (object.reportData != null) - if (typeof object.reportData === "string") - $util.base64.decode(object.reportData, message.reportData = $util.newBuffer($util.base64.length(object.reportData)), 0); - else if (object.reportData.length >= 0) - message.reportData = object.reportData; + if (typeof object.reportData === 'string') + $util.base64.decode( + object.reportData, + (message.reportData = $util.newBuffer($util.base64.length(object.reportData))), + 0 + ); + else if (object.reportData.length >= 0) message.reportData = object.reportData; return message; }; @@ -19062,23 +20010,25 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ SummaryConsoleReport.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { object.reportType = 0; - if (options.bytes === String) - object.reportData = ""; + if (options.bytes === String) object.reportData = ''; else { object.reportData = []; - if (options.bytes !== Array) - object.reportData = $util.newBuffer(object.reportData); + if (options.bytes !== Array) object.reportData = $util.newBuffer(object.reportData); } } - if (message.reportType != null && message.hasOwnProperty("reportType")) + if (message.reportType != null && message.hasOwnProperty('reportType')) object.reportType = message.reportType; - if (message.reportData != null && message.hasOwnProperty("reportData")) - object.reportData = options.bytes === String ? $util.base64.encode(message.reportData, 0, message.reportData.length) : options.bytes === Array ? Array.prototype.slice.call(message.reportData) : message.reportData; + if (message.reportData != null && message.hasOwnProperty('reportData')) + object.reportData = + options.bytes === String + ? $util.base64.encode(message.reportData, 0, message.reportData.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.reportData) + : message.reportData; return object; }; @@ -19103,9 +20053,9 @@ export const Authentication = $root.Authentication = (() => { */ SummaryConsoleReport.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.SummaryConsoleReport"; + return typeUrlPrefix + '/Authentication.SummaryConsoleReport'; }; return SummaryConsoleReport; @@ -19121,18 +20071,18 @@ export const Authentication = $root.Authentication = (() => { * @property {number} USER_FOLDER=3 USER_FOLDER value * @property {number} TEAM_USER=4 TEAM_USER value */ - Authentication.ObjectTypes = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "RECORD"] = 0; - values[valuesById[1] = "SHARED_FOLDER_USER"] = 1; - values[valuesById[2] = "SHARED_FOLDER_TEAM"] = 2; - values[valuesById[3] = "USER_FOLDER"] = 3; - values[valuesById[4] = "TEAM_USER"] = 4; + Authentication.ObjectTypes = (function () { + const valuesById = {}, + values = Object.create(valuesById); + values[(valuesById[0] = 'RECORD')] = 0; + values[(valuesById[1] = 'SHARED_FOLDER_USER')] = 1; + values[(valuesById[2] = 'SHARED_FOLDER_TEAM')] = 2; + values[(valuesById[3] = 'USER_FOLDER')] = 3; + values[(valuesById[4] = 'TEAM_USER')] = 4; return values; })(); - Authentication.ChangeToKeyTypeOne = (function() { - + Authentication.ChangeToKeyTypeOne = (function () { /** * Properties of a ChangeToKeyTypeOne. * @memberof Authentication @@ -19154,8 +20104,7 @@ export const Authentication = $root.Authentication = (() => { function ChangeToKeyTypeOne(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -19212,16 +20161,15 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ ChangeToKeyTypeOne.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.objectType != null && Object.hasOwnProperty.call(message, "objectType")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.objectType); - if (message.primaryUid != null && Object.hasOwnProperty.call(message, "primaryUid")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.primaryUid); - if (message.secondaryUid != null && Object.hasOwnProperty.call(message, "secondaryUid")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.secondaryUid); - if (message.key != null && Object.hasOwnProperty.call(message, "key")) - writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.key); + if (!writer) writer = $Writer.create(); + if (message.objectType != null && Object.hasOwnProperty.call(message, 'objectType')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int32(message.objectType); + if (message.primaryUid != null && Object.hasOwnProperty.call(message, 'primaryUid')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.primaryUid); + if (message.secondaryUid != null && Object.hasOwnProperty.call(message, 'secondaryUid')) + writer.uint32(/* id 3, wireType 2 =*/ 26).bytes(message.secondaryUid); + if (message.key != null && Object.hasOwnProperty.call(message, 'key')) + writer.uint32(/* id 4, wireType 2 =*/ 34).bytes(message.key); return writer; }; @@ -19250,31 +20198,31 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ChangeToKeyTypeOne.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.ChangeToKeyTypeOne(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.ChangeToKeyTypeOne(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.objectType = reader.int32(); break; } - case 2: { + case 2: { message.primaryUid = reader.bytes(); break; } - case 3: { + case 3: { message.secondaryUid = reader.bytes(); break; } - case 4: { + case 4: { message.key = reader.bytes(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -19291,8 +20239,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ChangeToKeyTypeOne.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -19305,28 +20252,37 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ ChangeToKeyTypeOne.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.objectType != null && message.hasOwnProperty("objectType")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.objectType != null && message.hasOwnProperty('objectType')) switch (message.objectType) { - default: - return "objectType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; + default: + return 'objectType: enum value expected'; + case 0: + case 1: + case 2: + case 3: + case 4: + break; } - if (message.primaryUid != null && message.hasOwnProperty("primaryUid")) - if (!(message.primaryUid && typeof message.primaryUid.length === "number" || $util.isString(message.primaryUid))) - return "primaryUid: buffer expected"; - if (message.secondaryUid != null && message.hasOwnProperty("secondaryUid")) - if (!(message.secondaryUid && typeof message.secondaryUid.length === "number" || $util.isString(message.secondaryUid))) - return "secondaryUid: buffer expected"; - if (message.key != null && message.hasOwnProperty("key")) - if (!(message.key && typeof message.key.length === "number" || $util.isString(message.key))) - return "key: buffer expected"; + if (message.primaryUid != null && message.hasOwnProperty('primaryUid')) + if ( + !( + (message.primaryUid && typeof message.primaryUid.length === 'number') || + $util.isString(message.primaryUid) + ) + ) + return 'primaryUid: buffer expected'; + if (message.secondaryUid != null && message.hasOwnProperty('secondaryUid')) + if ( + !( + (message.secondaryUid && typeof message.secondaryUid.length === 'number') || + $util.isString(message.secondaryUid) + ) + ) + return 'secondaryUid: buffer expected'; + if (message.key != null && message.hasOwnProperty('key')) + if (!((message.key && typeof message.key.length === 'number') || $util.isString(message.key))) + return 'key: buffer expected'; return null; }; @@ -19339,52 +20295,60 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.ChangeToKeyTypeOne} ChangeToKeyTypeOne */ ChangeToKeyTypeOne.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.ChangeToKeyTypeOne) - return object; + if (object instanceof $root.Authentication.ChangeToKeyTypeOne) return object; let message = new $root.Authentication.ChangeToKeyTypeOne(); switch (object.objectType) { - default: - if (typeof object.objectType === "number") { - message.objectType = object.objectType; - break; - } - break; - case "RECORD": - case 0: - message.objectType = 0; - break; - case "SHARED_FOLDER_USER": - case 1: - message.objectType = 1; - break; - case "SHARED_FOLDER_TEAM": - case 2: - message.objectType = 2; - break; - case "USER_FOLDER": - case 3: - message.objectType = 3; - break; - case "TEAM_USER": - case 4: - message.objectType = 4; - break; + default: + if (typeof object.objectType === 'number') { + message.objectType = object.objectType; + break; + } + break; + case 'RECORD': + case 0: + message.objectType = 0; + break; + case 'SHARED_FOLDER_USER': + case 1: + message.objectType = 1; + break; + case 'SHARED_FOLDER_TEAM': + case 2: + message.objectType = 2; + break; + case 'USER_FOLDER': + case 3: + message.objectType = 3; + break; + case 'TEAM_USER': + case 4: + message.objectType = 4; + break; } if (object.primaryUid != null) - if (typeof object.primaryUid === "string") - $util.base64.decode(object.primaryUid, message.primaryUid = $util.newBuffer($util.base64.length(object.primaryUid)), 0); - else if (object.primaryUid.length >= 0) - message.primaryUid = object.primaryUid; + if (typeof object.primaryUid === 'string') + $util.base64.decode( + object.primaryUid, + (message.primaryUid = $util.newBuffer($util.base64.length(object.primaryUid))), + 0 + ); + else if (object.primaryUid.length >= 0) message.primaryUid = object.primaryUid; if (object.secondaryUid != null) - if (typeof object.secondaryUid === "string") - $util.base64.decode(object.secondaryUid, message.secondaryUid = $util.newBuffer($util.base64.length(object.secondaryUid)), 0); - else if (object.secondaryUid.length >= 0) - message.secondaryUid = object.secondaryUid; + if (typeof object.secondaryUid === 'string') + $util.base64.decode( + object.secondaryUid, + (message.secondaryUid = $util.newBuffer($util.base64.length(object.secondaryUid))), + 0 + ); + else if (object.secondaryUid.length >= 0) message.secondaryUid = object.secondaryUid; if (object.key != null) - if (typeof object.key === "string") - $util.base64.decode(object.key, message.key = $util.newBuffer($util.base64.length(object.key)), 0); - else if (object.key.length >= 0) - message.key = object.key; + if (typeof object.key === 'string') + $util.base64.decode( + object.key, + (message.key = $util.newBuffer($util.base64.length(object.key))), + 0 + ); + else if (object.key.length >= 0) message.key = object.key; return message; }; @@ -19398,41 +20362,54 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ ChangeToKeyTypeOne.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - object.objectType = options.enums === String ? "RECORD" : 0; - if (options.bytes === String) - object.primaryUid = ""; + object.objectType = options.enums === String ? 'RECORD' : 0; + if (options.bytes === String) object.primaryUid = ''; else { object.primaryUid = []; - if (options.bytes !== Array) - object.primaryUid = $util.newBuffer(object.primaryUid); + if (options.bytes !== Array) object.primaryUid = $util.newBuffer(object.primaryUid); } - if (options.bytes === String) - object.secondaryUid = ""; + if (options.bytes === String) object.secondaryUid = ''; else { object.secondaryUid = []; - if (options.bytes !== Array) - object.secondaryUid = $util.newBuffer(object.secondaryUid); + if (options.bytes !== Array) object.secondaryUid = $util.newBuffer(object.secondaryUid); } - if (options.bytes === String) - object.key = ""; + if (options.bytes === String) object.key = ''; else { object.key = []; - if (options.bytes !== Array) - object.key = $util.newBuffer(object.key); - } - } - if (message.objectType != null && message.hasOwnProperty("objectType")) - object.objectType = options.enums === String ? $root.Authentication.ObjectTypes[message.objectType] === undefined ? message.objectType : $root.Authentication.ObjectTypes[message.objectType] : message.objectType; - if (message.primaryUid != null && message.hasOwnProperty("primaryUid")) - object.primaryUid = options.bytes === String ? $util.base64.encode(message.primaryUid, 0, message.primaryUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.primaryUid) : message.primaryUid; - if (message.secondaryUid != null && message.hasOwnProperty("secondaryUid")) - object.secondaryUid = options.bytes === String ? $util.base64.encode(message.secondaryUid, 0, message.secondaryUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.secondaryUid) : message.secondaryUid; - if (message.key != null && message.hasOwnProperty("key")) - object.key = options.bytes === String ? $util.base64.encode(message.key, 0, message.key.length) : options.bytes === Array ? Array.prototype.slice.call(message.key) : message.key; + if (options.bytes !== Array) object.key = $util.newBuffer(object.key); + } + } + if (message.objectType != null && message.hasOwnProperty('objectType')) + object.objectType = + options.enums === String + ? $root.Authentication.ObjectTypes[message.objectType] === undefined + ? message.objectType + : $root.Authentication.ObjectTypes[message.objectType] + : message.objectType; + if (message.primaryUid != null && message.hasOwnProperty('primaryUid')) + object.primaryUid = + options.bytes === String + ? $util.base64.encode(message.primaryUid, 0, message.primaryUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.primaryUid) + : message.primaryUid; + if (message.secondaryUid != null && message.hasOwnProperty('secondaryUid')) + object.secondaryUid = + options.bytes === String + ? $util.base64.encode(message.secondaryUid, 0, message.secondaryUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.secondaryUid) + : message.secondaryUid; + if (message.key != null && message.hasOwnProperty('key')) + object.key = + options.bytes === String + ? $util.base64.encode(message.key, 0, message.key.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.key) + : message.key; return object; }; @@ -19457,16 +20434,15 @@ export const Authentication = $root.Authentication = (() => { */ ChangeToKeyTypeOne.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.ChangeToKeyTypeOne"; + return typeUrlPrefix + '/Authentication.ChangeToKeyTypeOne'; }; return ChangeToKeyTypeOne; })(); - Authentication.ChangeToKeyTypeOneRequest = (function() { - + Authentication.ChangeToKeyTypeOneRequest = (function () { /** * Properties of a ChangeToKeyTypeOneRequest. * @memberof Authentication @@ -19486,8 +20462,7 @@ export const Authentication = $root.Authentication = (() => { this.changeToKeyTypeOne = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -19520,11 +20495,13 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ ChangeToKeyTypeOneRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.changeToKeyTypeOne != null && message.changeToKeyTypeOne.length) for (let i = 0; i < message.changeToKeyTypeOne.length; ++i) - $root.Authentication.ChangeToKeyTypeOne.encode(message.changeToKeyTypeOne[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.Authentication.ChangeToKeyTypeOne.encode( + message.changeToKeyTypeOne[i], + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); return writer; }; @@ -19553,21 +20530,23 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ChangeToKeyTypeOneRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.ChangeToKeyTypeOneRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.ChangeToKeyTypeOneRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { if (!(message.changeToKeyTypeOne && message.changeToKeyTypeOne.length)) message.changeToKeyTypeOne = []; - message.changeToKeyTypeOne.push($root.Authentication.ChangeToKeyTypeOne.decode(reader, reader.uint32())); + message.changeToKeyTypeOne.push( + $root.Authentication.ChangeToKeyTypeOne.decode(reader, reader.uint32()) + ); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -19584,8 +20563,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ChangeToKeyTypeOneRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -19598,15 +20576,12 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ ChangeToKeyTypeOneRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.changeToKeyTypeOne != null && message.hasOwnProperty("changeToKeyTypeOne")) { - if (!Array.isArray(message.changeToKeyTypeOne)) - return "changeToKeyTypeOne: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.changeToKeyTypeOne != null && message.hasOwnProperty('changeToKeyTypeOne')) { + if (!Array.isArray(message.changeToKeyTypeOne)) return 'changeToKeyTypeOne: array expected'; for (let i = 0; i < message.changeToKeyTypeOne.length; ++i) { let error = $root.Authentication.ChangeToKeyTypeOne.verify(message.changeToKeyTypeOne[i]); - if (error) - return "changeToKeyTypeOne." + error; + if (error) return 'changeToKeyTypeOne.' + error; } } return null; @@ -19621,17 +20596,20 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.ChangeToKeyTypeOneRequest} ChangeToKeyTypeOneRequest */ ChangeToKeyTypeOneRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.ChangeToKeyTypeOneRequest) - return object; + if (object instanceof $root.Authentication.ChangeToKeyTypeOneRequest) return object; let message = new $root.Authentication.ChangeToKeyTypeOneRequest(); if (object.changeToKeyTypeOne) { if (!Array.isArray(object.changeToKeyTypeOne)) - throw TypeError(".Authentication.ChangeToKeyTypeOneRequest.changeToKeyTypeOne: array expected"); + throw TypeError('.Authentication.ChangeToKeyTypeOneRequest.changeToKeyTypeOne: array expected'); message.changeToKeyTypeOne = []; for (let i = 0; i < object.changeToKeyTypeOne.length; ++i) { - if (typeof object.changeToKeyTypeOne[i] !== "object") - throw TypeError(".Authentication.ChangeToKeyTypeOneRequest.changeToKeyTypeOne: object expected"); - message.changeToKeyTypeOne[i] = $root.Authentication.ChangeToKeyTypeOne.fromObject(object.changeToKeyTypeOne[i]); + if (typeof object.changeToKeyTypeOne[i] !== 'object') + throw TypeError( + '.Authentication.ChangeToKeyTypeOneRequest.changeToKeyTypeOne: object expected' + ); + message.changeToKeyTypeOne[i] = $root.Authentication.ChangeToKeyTypeOne.fromObject( + object.changeToKeyTypeOne[i] + ); } } return message; @@ -19647,15 +20625,16 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ ChangeToKeyTypeOneRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.changeToKeyTypeOne = []; + if (options.arrays || options.defaults) object.changeToKeyTypeOne = []; if (message.changeToKeyTypeOne && message.changeToKeyTypeOne.length) { object.changeToKeyTypeOne = []; for (let j = 0; j < message.changeToKeyTypeOne.length; ++j) - object.changeToKeyTypeOne[j] = $root.Authentication.ChangeToKeyTypeOne.toObject(message.changeToKeyTypeOne[j], options); + object.changeToKeyTypeOne[j] = $root.Authentication.ChangeToKeyTypeOne.toObject( + message.changeToKeyTypeOne[j], + options + ); } return object; }; @@ -19681,16 +20660,15 @@ export const Authentication = $root.Authentication = (() => { */ ChangeToKeyTypeOneRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.ChangeToKeyTypeOneRequest"; + return typeUrlPrefix + '/Authentication.ChangeToKeyTypeOneRequest'; }; return ChangeToKeyTypeOneRequest; })(); - Authentication.ChangeToKeyTypeOneStatus = (function() { - + Authentication.ChangeToKeyTypeOneStatus = (function () { /** * Properties of a ChangeToKeyTypeOneStatus. * @memberof Authentication @@ -19712,8 +20690,7 @@ export const Authentication = $root.Authentication = (() => { function ChangeToKeyTypeOneStatus(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -19730,7 +20707,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.ChangeToKeyTypeOneStatus * @instance */ - ChangeToKeyTypeOneStatus.prototype.type = ""; + ChangeToKeyTypeOneStatus.prototype.type = ''; /** * ChangeToKeyTypeOneStatus status. @@ -19738,7 +20715,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.ChangeToKeyTypeOneStatus * @instance */ - ChangeToKeyTypeOneStatus.prototype.status = ""; + ChangeToKeyTypeOneStatus.prototype.status = ''; /** * ChangeToKeyTypeOneStatus reason. @@ -19746,7 +20723,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.ChangeToKeyTypeOneStatus * @instance */ - ChangeToKeyTypeOneStatus.prototype.reason = ""; + ChangeToKeyTypeOneStatus.prototype.reason = ''; /** * Creates a new ChangeToKeyTypeOneStatus instance using the specified properties. @@ -19770,16 +20747,15 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ ChangeToKeyTypeOneStatus.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.uid != null && Object.hasOwnProperty.call(message, "uid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.uid); - if (message.type != null && Object.hasOwnProperty.call(message, "type")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.type); - if (message.status != null && Object.hasOwnProperty.call(message, "status")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.status); - if (message.reason != null && Object.hasOwnProperty.call(message, "reason")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.reason); + if (!writer) writer = $Writer.create(); + if (message.uid != null && Object.hasOwnProperty.call(message, 'uid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.uid); + if (message.type != null && Object.hasOwnProperty.call(message, 'type')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.type); + if (message.status != null && Object.hasOwnProperty.call(message, 'status')) + writer.uint32(/* id 3, wireType 2 =*/ 26).string(message.status); + if (message.reason != null && Object.hasOwnProperty.call(message, 'reason')) + writer.uint32(/* id 4, wireType 2 =*/ 34).string(message.reason); return writer; }; @@ -19808,31 +20784,31 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ChangeToKeyTypeOneStatus.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.ChangeToKeyTypeOneStatus(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.ChangeToKeyTypeOneStatus(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.uid = reader.bytes(); break; } - case 2: { + case 2: { message.type = reader.string(); break; } - case 3: { + case 3: { message.status = reader.string(); break; } - case 4: { + case 4: { message.reason = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -19849,8 +20825,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ChangeToKeyTypeOneStatus.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -19863,20 +20838,16 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ ChangeToKeyTypeOneStatus.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.uid != null && message.hasOwnProperty("uid")) - if (!(message.uid && typeof message.uid.length === "number" || $util.isString(message.uid))) - return "uid: buffer expected"; - if (message.type != null && message.hasOwnProperty("type")) - if (!$util.isString(message.type)) - return "type: string expected"; - if (message.status != null && message.hasOwnProperty("status")) - if (!$util.isString(message.status)) - return "status: string expected"; - if (message.reason != null && message.hasOwnProperty("reason")) - if (!$util.isString(message.reason)) - return "reason: string expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.uid != null && message.hasOwnProperty('uid')) + if (!((message.uid && typeof message.uid.length === 'number') || $util.isString(message.uid))) + return 'uid: buffer expected'; + if (message.type != null && message.hasOwnProperty('type')) + if (!$util.isString(message.type)) return 'type: string expected'; + if (message.status != null && message.hasOwnProperty('status')) + if (!$util.isString(message.status)) return 'status: string expected'; + if (message.reason != null && message.hasOwnProperty('reason')) + if (!$util.isString(message.reason)) return 'reason: string expected'; return null; }; @@ -19889,20 +20860,19 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.ChangeToKeyTypeOneStatus} ChangeToKeyTypeOneStatus */ ChangeToKeyTypeOneStatus.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.ChangeToKeyTypeOneStatus) - return object; + if (object instanceof $root.Authentication.ChangeToKeyTypeOneStatus) return object; let message = new $root.Authentication.ChangeToKeyTypeOneStatus(); if (object.uid != null) - if (typeof object.uid === "string") - $util.base64.decode(object.uid, message.uid = $util.newBuffer($util.base64.length(object.uid)), 0); - else if (object.uid.length >= 0) - message.uid = object.uid; - if (object.type != null) - message.type = String(object.type); - if (object.status != null) - message.status = String(object.status); - if (object.reason != null) - message.reason = String(object.reason); + if (typeof object.uid === 'string') + $util.base64.decode( + object.uid, + (message.uid = $util.newBuffer($util.base64.length(object.uid))), + 0 + ); + else if (object.uid.length >= 0) message.uid = object.uid; + if (object.type != null) message.type = String(object.type); + if (object.status != null) message.status = String(object.status); + if (object.reason != null) message.reason = String(object.reason); return message; }; @@ -19916,29 +20886,28 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ ChangeToKeyTypeOneStatus.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.uid = ""; + if (options.bytes === String) object.uid = ''; else { object.uid = []; - if (options.bytes !== Array) - object.uid = $util.newBuffer(object.uid); + if (options.bytes !== Array) object.uid = $util.newBuffer(object.uid); } - object.type = ""; - object.status = ""; - object.reason = ""; + object.type = ''; + object.status = ''; + object.reason = ''; } - if (message.uid != null && message.hasOwnProperty("uid")) - object.uid = options.bytes === String ? $util.base64.encode(message.uid, 0, message.uid.length) : options.bytes === Array ? Array.prototype.slice.call(message.uid) : message.uid; - if (message.type != null && message.hasOwnProperty("type")) - object.type = message.type; - if (message.status != null && message.hasOwnProperty("status")) - object.status = message.status; - if (message.reason != null && message.hasOwnProperty("reason")) - object.reason = message.reason; + if (message.uid != null && message.hasOwnProperty('uid')) + object.uid = + options.bytes === String + ? $util.base64.encode(message.uid, 0, message.uid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.uid) + : message.uid; + if (message.type != null && message.hasOwnProperty('type')) object.type = message.type; + if (message.status != null && message.hasOwnProperty('status')) object.status = message.status; + if (message.reason != null && message.hasOwnProperty('reason')) object.reason = message.reason; return object; }; @@ -19963,16 +20932,15 @@ export const Authentication = $root.Authentication = (() => { */ ChangeToKeyTypeOneStatus.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.ChangeToKeyTypeOneStatus"; + return typeUrlPrefix + '/Authentication.ChangeToKeyTypeOneStatus'; }; return ChangeToKeyTypeOneStatus; })(); - Authentication.ChangeToKeyTypeOneResponse = (function() { - + Authentication.ChangeToKeyTypeOneResponse = (function () { /** * Properties of a ChangeToKeyTypeOneResponse. * @memberof Authentication @@ -19992,8 +20960,7 @@ export const Authentication = $root.Authentication = (() => { this.changeToKeyTypeOneStatus = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -20026,11 +20993,13 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ ChangeToKeyTypeOneResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.changeToKeyTypeOneStatus != null && message.changeToKeyTypeOneStatus.length) for (let i = 0; i < message.changeToKeyTypeOneStatus.length; ++i) - $root.Authentication.ChangeToKeyTypeOneStatus.encode(message.changeToKeyTypeOneStatus[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.Authentication.ChangeToKeyTypeOneStatus.encode( + message.changeToKeyTypeOneStatus[i], + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); return writer; }; @@ -20059,21 +21028,23 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ChangeToKeyTypeOneResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.ChangeToKeyTypeOneResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.ChangeToKeyTypeOneResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { if (!(message.changeToKeyTypeOneStatus && message.changeToKeyTypeOneStatus.length)) message.changeToKeyTypeOneStatus = []; - message.changeToKeyTypeOneStatus.push($root.Authentication.ChangeToKeyTypeOneStatus.decode(reader, reader.uint32())); + message.changeToKeyTypeOneStatus.push( + $root.Authentication.ChangeToKeyTypeOneStatus.decode(reader, reader.uint32()) + ); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -20090,8 +21061,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ChangeToKeyTypeOneResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -20104,15 +21074,14 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ ChangeToKeyTypeOneResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.changeToKeyTypeOneStatus != null && message.hasOwnProperty("changeToKeyTypeOneStatus")) { - if (!Array.isArray(message.changeToKeyTypeOneStatus)) - return "changeToKeyTypeOneStatus: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.changeToKeyTypeOneStatus != null && message.hasOwnProperty('changeToKeyTypeOneStatus')) { + if (!Array.isArray(message.changeToKeyTypeOneStatus)) return 'changeToKeyTypeOneStatus: array expected'; for (let i = 0; i < message.changeToKeyTypeOneStatus.length; ++i) { - let error = $root.Authentication.ChangeToKeyTypeOneStatus.verify(message.changeToKeyTypeOneStatus[i]); - if (error) - return "changeToKeyTypeOneStatus." + error; + let error = $root.Authentication.ChangeToKeyTypeOneStatus.verify( + message.changeToKeyTypeOneStatus[i] + ); + if (error) return 'changeToKeyTypeOneStatus.' + error; } } return null; @@ -20127,17 +21096,22 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.ChangeToKeyTypeOneResponse} ChangeToKeyTypeOneResponse */ ChangeToKeyTypeOneResponse.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.ChangeToKeyTypeOneResponse) - return object; + if (object instanceof $root.Authentication.ChangeToKeyTypeOneResponse) return object; let message = new $root.Authentication.ChangeToKeyTypeOneResponse(); if (object.changeToKeyTypeOneStatus) { if (!Array.isArray(object.changeToKeyTypeOneStatus)) - throw TypeError(".Authentication.ChangeToKeyTypeOneResponse.changeToKeyTypeOneStatus: array expected"); + throw TypeError( + '.Authentication.ChangeToKeyTypeOneResponse.changeToKeyTypeOneStatus: array expected' + ); message.changeToKeyTypeOneStatus = []; for (let i = 0; i < object.changeToKeyTypeOneStatus.length; ++i) { - if (typeof object.changeToKeyTypeOneStatus[i] !== "object") - throw TypeError(".Authentication.ChangeToKeyTypeOneResponse.changeToKeyTypeOneStatus: object expected"); - message.changeToKeyTypeOneStatus[i] = $root.Authentication.ChangeToKeyTypeOneStatus.fromObject(object.changeToKeyTypeOneStatus[i]); + if (typeof object.changeToKeyTypeOneStatus[i] !== 'object') + throw TypeError( + '.Authentication.ChangeToKeyTypeOneResponse.changeToKeyTypeOneStatus: object expected' + ); + message.changeToKeyTypeOneStatus[i] = $root.Authentication.ChangeToKeyTypeOneStatus.fromObject( + object.changeToKeyTypeOneStatus[i] + ); } } return message; @@ -20153,15 +21127,16 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ ChangeToKeyTypeOneResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.changeToKeyTypeOneStatus = []; + if (options.arrays || options.defaults) object.changeToKeyTypeOneStatus = []; if (message.changeToKeyTypeOneStatus && message.changeToKeyTypeOneStatus.length) { object.changeToKeyTypeOneStatus = []; for (let j = 0; j < message.changeToKeyTypeOneStatus.length; ++j) - object.changeToKeyTypeOneStatus[j] = $root.Authentication.ChangeToKeyTypeOneStatus.toObject(message.changeToKeyTypeOneStatus[j], options); + object.changeToKeyTypeOneStatus[j] = $root.Authentication.ChangeToKeyTypeOneStatus.toObject( + message.changeToKeyTypeOneStatus[j], + options + ); } return object; }; @@ -20187,9 +21162,9 @@ export const Authentication = $root.Authentication = (() => { */ ChangeToKeyTypeOneResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.ChangeToKeyTypeOneResponse"; + return typeUrlPrefix + '/Authentication.ChangeToKeyTypeOneResponse'; }; return ChangeToKeyTypeOneResponse; @@ -20210,23 +21185,23 @@ export const Authentication = $root.Authentication = (() => { * @property {number} EOT_EMERGENCY_ACCESS_KEY=8 EOT_EMERGENCY_ACCESS_KEY value * @property {number} EOT_V2_RECORD_KEY=9 EOT_V2_RECORD_KEY value */ - Authentication.EncryptedObjectType = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "EOT_UNSPECIFIED"] = 0; - values[valuesById[1] = "EOT_RECORD_KEY"] = 1; - values[valuesById[2] = "EOT_SHARED_FOLDER_USER_KEY"] = 2; - values[valuesById[3] = "EOT_SHARED_FOLDER_TEAM_KEY"] = 3; - values[valuesById[4] = "EOT_TEAM_USER_KEY"] = 4; - values[valuesById[5] = "EOT_USER_FOLDER_KEY"] = 5; - values[valuesById[6] = "EOT_SECURITY_DATA"] = 6; - values[valuesById[7] = "EOT_SECURITY_DATA_MASTER_PASSWORD"] = 7; - values[valuesById[8] = "EOT_EMERGENCY_ACCESS_KEY"] = 8; - values[valuesById[9] = "EOT_V2_RECORD_KEY"] = 9; + Authentication.EncryptedObjectType = (function () { + const valuesById = {}, + values = Object.create(valuesById); + values[(valuesById[0] = 'EOT_UNSPECIFIED')] = 0; + values[(valuesById[1] = 'EOT_RECORD_KEY')] = 1; + values[(valuesById[2] = 'EOT_SHARED_FOLDER_USER_KEY')] = 2; + values[(valuesById[3] = 'EOT_SHARED_FOLDER_TEAM_KEY')] = 3; + values[(valuesById[4] = 'EOT_TEAM_USER_KEY')] = 4; + values[(valuesById[5] = 'EOT_USER_FOLDER_KEY')] = 5; + values[(valuesById[6] = 'EOT_SECURITY_DATA')] = 6; + values[(valuesById[7] = 'EOT_SECURITY_DATA_MASTER_PASSWORD')] = 7; + values[(valuesById[8] = 'EOT_EMERGENCY_ACCESS_KEY')] = 8; + values[(valuesById[9] = 'EOT_V2_RECORD_KEY')] = 9; return values; })(); - Authentication.GetChangeKeyTypesRequest = (function() { - + Authentication.GetChangeKeyTypesRequest = (function () { /** * Properties of a GetChangeKeyTypesRequest. * @memberof Authentication @@ -20250,8 +21225,7 @@ export const Authentication = $root.Authentication = (() => { this.onlyTheseObjects = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -20316,22 +21290,20 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ GetChangeKeyTypesRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.onlyTheseObjects != null && message.onlyTheseObjects.length) { - writer.uint32(/* id 1, wireType 2 =*/10).fork(); - for (let i = 0; i < message.onlyTheseObjects.length; ++i) - writer.int32(message.onlyTheseObjects[i]); + writer.uint32(/* id 1, wireType 2 =*/ 10).fork(); + for (let i = 0; i < message.onlyTheseObjects.length; ++i) writer.int32(message.onlyTheseObjects[i]); writer.ldelim(); } - if (message.limit != null && Object.hasOwnProperty.call(message, "limit")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.limit); - if (message.includeRecommended != null && Object.hasOwnProperty.call(message, "includeRecommended")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.includeRecommended); - if (message.includeKeys != null && Object.hasOwnProperty.call(message, "includeKeys")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.includeKeys); - if (message.includeAllowedKeyTypes != null && Object.hasOwnProperty.call(message, "includeAllowedKeyTypes")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.includeAllowedKeyTypes); + if (message.limit != null && Object.hasOwnProperty.call(message, 'limit')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int32(message.limit); + if (message.includeRecommended != null && Object.hasOwnProperty.call(message, 'includeRecommended')) + writer.uint32(/* id 3, wireType 0 =*/ 24).bool(message.includeRecommended); + if (message.includeKeys != null && Object.hasOwnProperty.call(message, 'includeKeys')) + writer.uint32(/* id 4, wireType 0 =*/ 32).bool(message.includeKeys); + if (message.includeAllowedKeyTypes != null && Object.hasOwnProperty.call(message, 'includeAllowedKeyTypes')) + writer.uint32(/* id 5, wireType 0 =*/ 40).bool(message.includeAllowedKeyTypes); return writer; }; @@ -20360,42 +21332,40 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ GetChangeKeyTypesRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.GetChangeKeyTypesRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.GetChangeKeyTypesRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { if (!(message.onlyTheseObjects && message.onlyTheseObjects.length)) message.onlyTheseObjects = []; if ((tag & 7) === 2) { let end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.onlyTheseObjects.push(reader.int32()); - } else - message.onlyTheseObjects.push(reader.int32()); + while (reader.pos < end2) message.onlyTheseObjects.push(reader.int32()); + } else message.onlyTheseObjects.push(reader.int32()); break; } - case 2: { + case 2: { message.limit = reader.int32(); break; } - case 3: { + case 3: { message.includeRecommended = reader.bool(); break; } - case 4: { + case 4: { message.includeKeys = reader.bool(); break; } - case 5: { + case 5: { message.includeAllowedKeyTypes = reader.bool(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -20412,8 +21382,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ GetChangeKeyTypesRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -20426,40 +21395,35 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ GetChangeKeyTypesRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.onlyTheseObjects != null && message.hasOwnProperty("onlyTheseObjects")) { - if (!Array.isArray(message.onlyTheseObjects)) - return "onlyTheseObjects: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.onlyTheseObjects != null && message.hasOwnProperty('onlyTheseObjects')) { + if (!Array.isArray(message.onlyTheseObjects)) return 'onlyTheseObjects: array expected'; for (let i = 0; i < message.onlyTheseObjects.length; ++i) switch (message.onlyTheseObjects[i]) { - default: - return "onlyTheseObjects: enum value[] expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - break; + default: + return 'onlyTheseObjects: enum value[] expected'; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + break; } } - if (message.limit != null && message.hasOwnProperty("limit")) - if (!$util.isInteger(message.limit)) - return "limit: integer expected"; - if (message.includeRecommended != null && message.hasOwnProperty("includeRecommended")) - if (typeof message.includeRecommended !== "boolean") - return "includeRecommended: boolean expected"; - if (message.includeKeys != null && message.hasOwnProperty("includeKeys")) - if (typeof message.includeKeys !== "boolean") - return "includeKeys: boolean expected"; - if (message.includeAllowedKeyTypes != null && message.hasOwnProperty("includeAllowedKeyTypes")) - if (typeof message.includeAllowedKeyTypes !== "boolean") - return "includeAllowedKeyTypes: boolean expected"; + if (message.limit != null && message.hasOwnProperty('limit')) + if (!$util.isInteger(message.limit)) return 'limit: integer expected'; + if (message.includeRecommended != null && message.hasOwnProperty('includeRecommended')) + if (typeof message.includeRecommended !== 'boolean') return 'includeRecommended: boolean expected'; + if (message.includeKeys != null && message.hasOwnProperty('includeKeys')) + if (typeof message.includeKeys !== 'boolean') return 'includeKeys: boolean expected'; + if (message.includeAllowedKeyTypes != null && message.hasOwnProperty('includeAllowedKeyTypes')) + if (typeof message.includeAllowedKeyTypes !== 'boolean') + return 'includeAllowedKeyTypes: boolean expected'; return null; }; @@ -20472,68 +21436,64 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.GetChangeKeyTypesRequest} GetChangeKeyTypesRequest */ GetChangeKeyTypesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.GetChangeKeyTypesRequest) - return object; + if (object instanceof $root.Authentication.GetChangeKeyTypesRequest) return object; let message = new $root.Authentication.GetChangeKeyTypesRequest(); if (object.onlyTheseObjects) { if (!Array.isArray(object.onlyTheseObjects)) - throw TypeError(".Authentication.GetChangeKeyTypesRequest.onlyTheseObjects: array expected"); + throw TypeError('.Authentication.GetChangeKeyTypesRequest.onlyTheseObjects: array expected'); message.onlyTheseObjects = []; for (let i = 0; i < object.onlyTheseObjects.length; ++i) switch (object.onlyTheseObjects[i]) { - default: - if (typeof object.onlyTheseObjects[i] === "number") { - message.onlyTheseObjects[i] = object.onlyTheseObjects[i]; + default: + if (typeof object.onlyTheseObjects[i] === 'number') { + message.onlyTheseObjects[i] = object.onlyTheseObjects[i]; + break; + } + case 'EOT_UNSPECIFIED': + case 0: + message.onlyTheseObjects[i] = 0; + break; + case 'EOT_RECORD_KEY': + case 1: + message.onlyTheseObjects[i] = 1; + break; + case 'EOT_SHARED_FOLDER_USER_KEY': + case 2: + message.onlyTheseObjects[i] = 2; + break; + case 'EOT_SHARED_FOLDER_TEAM_KEY': + case 3: + message.onlyTheseObjects[i] = 3; + break; + case 'EOT_TEAM_USER_KEY': + case 4: + message.onlyTheseObjects[i] = 4; + break; + case 'EOT_USER_FOLDER_KEY': + case 5: + message.onlyTheseObjects[i] = 5; + break; + case 'EOT_SECURITY_DATA': + case 6: + message.onlyTheseObjects[i] = 6; + break; + case 'EOT_SECURITY_DATA_MASTER_PASSWORD': + case 7: + message.onlyTheseObjects[i] = 7; + break; + case 'EOT_EMERGENCY_ACCESS_KEY': + case 8: + message.onlyTheseObjects[i] = 8; + break; + case 'EOT_V2_RECORD_KEY': + case 9: + message.onlyTheseObjects[i] = 9; break; - } - case "EOT_UNSPECIFIED": - case 0: - message.onlyTheseObjects[i] = 0; - break; - case "EOT_RECORD_KEY": - case 1: - message.onlyTheseObjects[i] = 1; - break; - case "EOT_SHARED_FOLDER_USER_KEY": - case 2: - message.onlyTheseObjects[i] = 2; - break; - case "EOT_SHARED_FOLDER_TEAM_KEY": - case 3: - message.onlyTheseObjects[i] = 3; - break; - case "EOT_TEAM_USER_KEY": - case 4: - message.onlyTheseObjects[i] = 4; - break; - case "EOT_USER_FOLDER_KEY": - case 5: - message.onlyTheseObjects[i] = 5; - break; - case "EOT_SECURITY_DATA": - case 6: - message.onlyTheseObjects[i] = 6; - break; - case "EOT_SECURITY_DATA_MASTER_PASSWORD": - case 7: - message.onlyTheseObjects[i] = 7; - break; - case "EOT_EMERGENCY_ACCESS_KEY": - case 8: - message.onlyTheseObjects[i] = 8; - break; - case "EOT_V2_RECORD_KEY": - case 9: - message.onlyTheseObjects[i] = 9; - break; } } - if (object.limit != null) - message.limit = object.limit | 0; - if (object.includeRecommended != null) - message.includeRecommended = Boolean(object.includeRecommended); - if (object.includeKeys != null) - message.includeKeys = Boolean(object.includeKeys); + if (object.limit != null) message.limit = object.limit | 0; + if (object.includeRecommended != null) message.includeRecommended = Boolean(object.includeRecommended); + if (object.includeKeys != null) message.includeKeys = Boolean(object.includeKeys); if (object.includeAllowedKeyTypes != null) message.includeAllowedKeyTypes = Boolean(object.includeAllowedKeyTypes); return message; @@ -20549,11 +21509,9 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ GetChangeKeyTypesRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.onlyTheseObjects = []; + if (options.arrays || options.defaults) object.onlyTheseObjects = []; if (options.defaults) { object.limit = 0; object.includeRecommended = false; @@ -20563,15 +21521,19 @@ export const Authentication = $root.Authentication = (() => { if (message.onlyTheseObjects && message.onlyTheseObjects.length) { object.onlyTheseObjects = []; for (let j = 0; j < message.onlyTheseObjects.length; ++j) - object.onlyTheseObjects[j] = options.enums === String ? $root.Authentication.EncryptedObjectType[message.onlyTheseObjects[j]] === undefined ? message.onlyTheseObjects[j] : $root.Authentication.EncryptedObjectType[message.onlyTheseObjects[j]] : message.onlyTheseObjects[j]; - } - if (message.limit != null && message.hasOwnProperty("limit")) - object.limit = message.limit; - if (message.includeRecommended != null && message.hasOwnProperty("includeRecommended")) + object.onlyTheseObjects[j] = + options.enums === String + ? $root.Authentication.EncryptedObjectType[message.onlyTheseObjects[j]] === undefined + ? message.onlyTheseObjects[j] + : $root.Authentication.EncryptedObjectType[message.onlyTheseObjects[j]] + : message.onlyTheseObjects[j]; + } + if (message.limit != null && message.hasOwnProperty('limit')) object.limit = message.limit; + if (message.includeRecommended != null && message.hasOwnProperty('includeRecommended')) object.includeRecommended = message.includeRecommended; - if (message.includeKeys != null && message.hasOwnProperty("includeKeys")) + if (message.includeKeys != null && message.hasOwnProperty('includeKeys')) object.includeKeys = message.includeKeys; - if (message.includeAllowedKeyTypes != null && message.hasOwnProperty("includeAllowedKeyTypes")) + if (message.includeAllowedKeyTypes != null && message.hasOwnProperty('includeAllowedKeyTypes')) object.includeAllowedKeyTypes = message.includeAllowedKeyTypes; return object; }; @@ -20597,16 +21559,15 @@ export const Authentication = $root.Authentication = (() => { */ GetChangeKeyTypesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.GetChangeKeyTypesRequest"; + return typeUrlPrefix + '/Authentication.GetChangeKeyTypesRequest'; }; return GetChangeKeyTypesRequest; })(); - Authentication.GetChangeKeyTypesResponse = (function() { - + Authentication.GetChangeKeyTypesResponse = (function () { /** * Properties of a GetChangeKeyTypesResponse. * @memberof Authentication @@ -20628,8 +21589,7 @@ export const Authentication = $root.Authentication = (() => { this.allowedKeyTypes = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -20670,14 +21630,19 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ GetChangeKeyTypesResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.keys != null && message.keys.length) for (let i = 0; i < message.keys.length; ++i) - $root.Authentication.ChangeKeyType.encode(message.keys[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.Authentication.ChangeKeyType.encode( + message.keys[i], + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); if (message.allowedKeyTypes != null && message.allowedKeyTypes.length) for (let i = 0; i < message.allowedKeyTypes.length; ++i) - $root.Authentication.AllowedKeyTypes.encode(message.allowedKeyTypes[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + $root.Authentication.AllowedKeyTypes.encode( + message.allowedKeyTypes[i], + writer.uint32(/* id 2, wireType 2 =*/ 18).fork() + ).ldelim(); return writer; }; @@ -20706,27 +21671,27 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ GetChangeKeyTypesResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.GetChangeKeyTypesResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.GetChangeKeyTypesResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (!(message.keys && message.keys.length)) - message.keys = []; + case 1: { + if (!(message.keys && message.keys.length)) message.keys = []; message.keys.push($root.Authentication.ChangeKeyType.decode(reader, reader.uint32())); break; } - case 2: { - if (!(message.allowedKeyTypes && message.allowedKeyTypes.length)) - message.allowedKeyTypes = []; - message.allowedKeyTypes.push($root.Authentication.AllowedKeyTypes.decode(reader, reader.uint32())); + case 2: { + if (!(message.allowedKeyTypes && message.allowedKeyTypes.length)) message.allowedKeyTypes = []; + message.allowedKeyTypes.push( + $root.Authentication.AllowedKeyTypes.decode(reader, reader.uint32()) + ); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -20743,8 +21708,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ GetChangeKeyTypesResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -20757,24 +21721,19 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ GetChangeKeyTypesResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.keys != null && message.hasOwnProperty("keys")) { - if (!Array.isArray(message.keys)) - return "keys: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.keys != null && message.hasOwnProperty('keys')) { + if (!Array.isArray(message.keys)) return 'keys: array expected'; for (let i = 0; i < message.keys.length; ++i) { let error = $root.Authentication.ChangeKeyType.verify(message.keys[i]); - if (error) - return "keys." + error; + if (error) return 'keys.' + error; } } - if (message.allowedKeyTypes != null && message.hasOwnProperty("allowedKeyTypes")) { - if (!Array.isArray(message.allowedKeyTypes)) - return "allowedKeyTypes: array expected"; + if (message.allowedKeyTypes != null && message.hasOwnProperty('allowedKeyTypes')) { + if (!Array.isArray(message.allowedKeyTypes)) return 'allowedKeyTypes: array expected'; for (let i = 0; i < message.allowedKeyTypes.length; ++i) { let error = $root.Authentication.AllowedKeyTypes.verify(message.allowedKeyTypes[i]); - if (error) - return "allowedKeyTypes." + error; + if (error) return 'allowedKeyTypes.' + error; } } return null; @@ -20789,27 +21748,28 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.GetChangeKeyTypesResponse} GetChangeKeyTypesResponse */ GetChangeKeyTypesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.GetChangeKeyTypesResponse) - return object; + if (object instanceof $root.Authentication.GetChangeKeyTypesResponse) return object; let message = new $root.Authentication.GetChangeKeyTypesResponse(); if (object.keys) { if (!Array.isArray(object.keys)) - throw TypeError(".Authentication.GetChangeKeyTypesResponse.keys: array expected"); + throw TypeError('.Authentication.GetChangeKeyTypesResponse.keys: array expected'); message.keys = []; for (let i = 0; i < object.keys.length; ++i) { - if (typeof object.keys[i] !== "object") - throw TypeError(".Authentication.GetChangeKeyTypesResponse.keys: object expected"); + if (typeof object.keys[i] !== 'object') + throw TypeError('.Authentication.GetChangeKeyTypesResponse.keys: object expected'); message.keys[i] = $root.Authentication.ChangeKeyType.fromObject(object.keys[i]); } } if (object.allowedKeyTypes) { if (!Array.isArray(object.allowedKeyTypes)) - throw TypeError(".Authentication.GetChangeKeyTypesResponse.allowedKeyTypes: array expected"); + throw TypeError('.Authentication.GetChangeKeyTypesResponse.allowedKeyTypes: array expected'); message.allowedKeyTypes = []; for (let i = 0; i < object.allowedKeyTypes.length; ++i) { - if (typeof object.allowedKeyTypes[i] !== "object") - throw TypeError(".Authentication.GetChangeKeyTypesResponse.allowedKeyTypes: object expected"); - message.allowedKeyTypes[i] = $root.Authentication.AllowedKeyTypes.fromObject(object.allowedKeyTypes[i]); + if (typeof object.allowedKeyTypes[i] !== 'object') + throw TypeError('.Authentication.GetChangeKeyTypesResponse.allowedKeyTypes: object expected'); + message.allowedKeyTypes[i] = $root.Authentication.AllowedKeyTypes.fromObject( + object.allowedKeyTypes[i] + ); } } return message; @@ -20825,8 +21785,7 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ GetChangeKeyTypesResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.arrays || options.defaults) { object.keys = []; @@ -20840,7 +21799,10 @@ export const Authentication = $root.Authentication = (() => { if (message.allowedKeyTypes && message.allowedKeyTypes.length) { object.allowedKeyTypes = []; for (let j = 0; j < message.allowedKeyTypes.length; ++j) - object.allowedKeyTypes[j] = $root.Authentication.AllowedKeyTypes.toObject(message.allowedKeyTypes[j], options); + object.allowedKeyTypes[j] = $root.Authentication.AllowedKeyTypes.toObject( + message.allowedKeyTypes[j], + options + ); } return object; }; @@ -20866,16 +21828,15 @@ export const Authentication = $root.Authentication = (() => { */ GetChangeKeyTypesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.GetChangeKeyTypesResponse"; + return typeUrlPrefix + '/Authentication.GetChangeKeyTypesResponse'; }; return GetChangeKeyTypesResponse; })(); - Authentication.AllowedKeyTypes = (function() { - + Authentication.AllowedKeyTypes = (function () { /** * Properties of an AllowedKeyTypes. * @memberof Authentication @@ -20896,8 +21857,7 @@ export const Authentication = $root.Authentication = (() => { this.allowedKeyTypes = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -20938,14 +21898,12 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ AllowedKeyTypes.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.objectType != null && Object.hasOwnProperty.call(message, "objectType")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.objectType); + if (!writer) writer = $Writer.create(); + if (message.objectType != null && Object.hasOwnProperty.call(message, 'objectType')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int32(message.objectType); if (message.allowedKeyTypes != null && message.allowedKeyTypes.length) { - writer.uint32(/* id 2, wireType 2 =*/18).fork(); - for (let i = 0; i < message.allowedKeyTypes.length; ++i) - writer.int32(message.allowedKeyTypes[i]); + writer.uint32(/* id 2, wireType 2 =*/ 18).fork(); + for (let i = 0; i < message.allowedKeyTypes.length; ++i) writer.int32(message.allowedKeyTypes[i]); writer.ldelim(); } return writer; @@ -20976,30 +21934,27 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ AllowedKeyTypes.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.AllowedKeyTypes(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.AllowedKeyTypes(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.objectType = reader.int32(); break; } - case 2: { - if (!(message.allowedKeyTypes && message.allowedKeyTypes.length)) - message.allowedKeyTypes = []; + case 2: { + if (!(message.allowedKeyTypes && message.allowedKeyTypes.length)) message.allowedKeyTypes = []; if ((tag & 7) === 2) { let end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.allowedKeyTypes.push(reader.int32()); - } else - message.allowedKeyTypes.push(reader.int32()); + while (reader.pos < end2) message.allowedKeyTypes.push(reader.int32()); + } else message.allowedKeyTypes.push(reader.int32()); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -21016,8 +21971,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ AllowedKeyTypes.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -21030,37 +21984,35 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ AllowedKeyTypes.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.objectType != null && message.hasOwnProperty("objectType")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.objectType != null && message.hasOwnProperty('objectType')) switch (message.objectType) { - default: - return "objectType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - break; - } - if (message.allowedKeyTypes != null && message.hasOwnProperty("allowedKeyTypes")) { - if (!Array.isArray(message.allowedKeyTypes)) - return "allowedKeyTypes: array expected"; - for (let i = 0; i < message.allowedKeyTypes.length; ++i) - switch (message.allowedKeyTypes[i]) { default: - return "allowedKeyTypes: enum value[] expected"; + return 'objectType: enum value expected'; case 0: case 1: case 2: case 3: case 4: + case 5: + case 6: + case 7: + case 8: + case 9: break; + } + if (message.allowedKeyTypes != null && message.hasOwnProperty('allowedKeyTypes')) { + if (!Array.isArray(message.allowedKeyTypes)) return 'allowedKeyTypes: array expected'; + for (let i = 0; i < message.allowedKeyTypes.length; ++i) + switch (message.allowedKeyTypes[i]) { + default: + return 'allowedKeyTypes: enum value[] expected'; + case 0: + case 1: + case 2: + case 3: + case 4: + break; } } return null; @@ -21075,88 +22027,87 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.AllowedKeyTypes} AllowedKeyTypes */ AllowedKeyTypes.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.AllowedKeyTypes) - return object; + if (object instanceof $root.Authentication.AllowedKeyTypes) return object; let message = new $root.Authentication.AllowedKeyTypes(); switch (object.objectType) { - default: - if (typeof object.objectType === "number") { - message.objectType = object.objectType; - break; - } - break; - case "EOT_UNSPECIFIED": - case 0: - message.objectType = 0; - break; - case "EOT_RECORD_KEY": - case 1: - message.objectType = 1; - break; - case "EOT_SHARED_FOLDER_USER_KEY": - case 2: - message.objectType = 2; - break; - case "EOT_SHARED_FOLDER_TEAM_KEY": - case 3: - message.objectType = 3; - break; - case "EOT_TEAM_USER_KEY": - case 4: - message.objectType = 4; - break; - case "EOT_USER_FOLDER_KEY": - case 5: - message.objectType = 5; - break; - case "EOT_SECURITY_DATA": - case 6: - message.objectType = 6; - break; - case "EOT_SECURITY_DATA_MASTER_PASSWORD": - case 7: - message.objectType = 7; - break; - case "EOT_EMERGENCY_ACCESS_KEY": - case 8: - message.objectType = 8; - break; - case "EOT_V2_RECORD_KEY": - case 9: - message.objectType = 9; - break; + default: + if (typeof object.objectType === 'number') { + message.objectType = object.objectType; + break; + } + break; + case 'EOT_UNSPECIFIED': + case 0: + message.objectType = 0; + break; + case 'EOT_RECORD_KEY': + case 1: + message.objectType = 1; + break; + case 'EOT_SHARED_FOLDER_USER_KEY': + case 2: + message.objectType = 2; + break; + case 'EOT_SHARED_FOLDER_TEAM_KEY': + case 3: + message.objectType = 3; + break; + case 'EOT_TEAM_USER_KEY': + case 4: + message.objectType = 4; + break; + case 'EOT_USER_FOLDER_KEY': + case 5: + message.objectType = 5; + break; + case 'EOT_SECURITY_DATA': + case 6: + message.objectType = 6; + break; + case 'EOT_SECURITY_DATA_MASTER_PASSWORD': + case 7: + message.objectType = 7; + break; + case 'EOT_EMERGENCY_ACCESS_KEY': + case 8: + message.objectType = 8; + break; + case 'EOT_V2_RECORD_KEY': + case 9: + message.objectType = 9; + break; } if (object.allowedKeyTypes) { if (!Array.isArray(object.allowedKeyTypes)) - throw TypeError(".Authentication.AllowedKeyTypes.allowedKeyTypes: array expected"); + throw TypeError('.Authentication.AllowedKeyTypes.allowedKeyTypes: array expected'); message.allowedKeyTypes = []; for (let i = 0; i < object.allowedKeyTypes.length; ++i) switch (object.allowedKeyTypes[i]) { - default: - if (typeof object.allowedKeyTypes[i] === "number") { - message.allowedKeyTypes[i] = object.allowedKeyTypes[i]; + default: + if (typeof object.allowedKeyTypes[i] === 'number') { + message.allowedKeyTypes[i] = object.allowedKeyTypes[i]; + break; + } + case 'KT_NO_KEY': + case 0: + message.allowedKeyTypes[i] = 0; + break; + case 'KT_ENCRYPTED_BY_DATA_KEY': + case 1: + message.allowedKeyTypes[i] = 1; + break; + case 'KT_ENCRYPTED_BY_PUBLIC_KEY': + case 2: + message.allowedKeyTypes[i] = 2; + break; + case 'KT_ENCRYPTED_BY_DATA_KEY_GCM': + case 3: + message.allowedKeyTypes[i] = 3; + break; + case 'KT_ENCRYPTED_BY_PUBLIC_KEY_ECC': + case 4: + message.allowedKeyTypes[i] = 4; break; - } - case "KT_NO_KEY": - case 0: - message.allowedKeyTypes[i] = 0; - break; - case "KT_ENCRYPTED_BY_DATA_KEY": - case 1: - message.allowedKeyTypes[i] = 1; - break; - case "KT_ENCRYPTED_BY_PUBLIC_KEY": - case 2: - message.allowedKeyTypes[i] = 2; - break; - case "KT_ENCRYPTED_BY_DATA_KEY_GCM": - case 3: - message.allowedKeyTypes[i] = 3; - break; - case "KT_ENCRYPTED_BY_PUBLIC_KEY_ECC": - case 4: - message.allowedKeyTypes[i] = 4; - break; } } return message; @@ -21172,19 +22123,26 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ AllowedKeyTypes.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.arrays || options.defaults) - object.allowedKeyTypes = []; - if (options.defaults) - object.objectType = options.enums === String ? "EOT_UNSPECIFIED" : 0; - if (message.objectType != null && message.hasOwnProperty("objectType")) - object.objectType = options.enums === String ? $root.Authentication.EncryptedObjectType[message.objectType] === undefined ? message.objectType : $root.Authentication.EncryptedObjectType[message.objectType] : message.objectType; + if (!options) options = {}; + let object = {}; + if (options.arrays || options.defaults) object.allowedKeyTypes = []; + if (options.defaults) object.objectType = options.enums === String ? 'EOT_UNSPECIFIED' : 0; + if (message.objectType != null && message.hasOwnProperty('objectType')) + object.objectType = + options.enums === String + ? $root.Authentication.EncryptedObjectType[message.objectType] === undefined + ? message.objectType + : $root.Authentication.EncryptedObjectType[message.objectType] + : message.objectType; if (message.allowedKeyTypes && message.allowedKeyTypes.length) { object.allowedKeyTypes = []; for (let j = 0; j < message.allowedKeyTypes.length; ++j) - object.allowedKeyTypes[j] = options.enums === String ? $root.Enterprise.EncryptedKeyType[message.allowedKeyTypes[j]] === undefined ? message.allowedKeyTypes[j] : $root.Enterprise.EncryptedKeyType[message.allowedKeyTypes[j]] : message.allowedKeyTypes[j]; + object.allowedKeyTypes[j] = + options.enums === String + ? $root.Enterprise.EncryptedKeyType[message.allowedKeyTypes[j]] === undefined + ? message.allowedKeyTypes[j] + : $root.Enterprise.EncryptedKeyType[message.allowedKeyTypes[j]] + : message.allowedKeyTypes[j]; } return object; }; @@ -21210,16 +22168,15 @@ export const Authentication = $root.Authentication = (() => { */ AllowedKeyTypes.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.AllowedKeyTypes"; + return typeUrlPrefix + '/Authentication.AllowedKeyTypes'; }; return AllowedKeyTypes; })(); - Authentication.ChangeKeyTypes = (function() { - + Authentication.ChangeKeyTypes = (function () { /** * Properties of a ChangeKeyTypes. * @memberof Authentication @@ -21239,8 +22196,7 @@ export const Authentication = $root.Authentication = (() => { this.keys = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -21273,11 +22229,13 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ ChangeKeyTypes.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.keys != null && message.keys.length) for (let i = 0; i < message.keys.length; ++i) - $root.Authentication.ChangeKeyType.encode(message.keys[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.Authentication.ChangeKeyType.encode( + message.keys[i], + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); return writer; }; @@ -21306,21 +22264,20 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ChangeKeyTypes.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.ChangeKeyTypes(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.ChangeKeyTypes(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (!(message.keys && message.keys.length)) - message.keys = []; + case 1: { + if (!(message.keys && message.keys.length)) message.keys = []; message.keys.push($root.Authentication.ChangeKeyType.decode(reader, reader.uint32())); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -21337,8 +22294,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ChangeKeyTypes.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -21351,15 +22307,12 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ ChangeKeyTypes.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.keys != null && message.hasOwnProperty("keys")) { - if (!Array.isArray(message.keys)) - return "keys: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.keys != null && message.hasOwnProperty('keys')) { + if (!Array.isArray(message.keys)) return 'keys: array expected'; for (let i = 0; i < message.keys.length; ++i) { let error = $root.Authentication.ChangeKeyType.verify(message.keys[i]); - if (error) - return "keys." + error; + if (error) return 'keys.' + error; } } return null; @@ -21374,16 +22327,14 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.ChangeKeyTypes} ChangeKeyTypes */ ChangeKeyTypes.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.ChangeKeyTypes) - return object; + if (object instanceof $root.Authentication.ChangeKeyTypes) return object; let message = new $root.Authentication.ChangeKeyTypes(); if (object.keys) { - if (!Array.isArray(object.keys)) - throw TypeError(".Authentication.ChangeKeyTypes.keys: array expected"); + if (!Array.isArray(object.keys)) throw TypeError('.Authentication.ChangeKeyTypes.keys: array expected'); message.keys = []; for (let i = 0; i < object.keys.length; ++i) { - if (typeof object.keys[i] !== "object") - throw TypeError(".Authentication.ChangeKeyTypes.keys: object expected"); + if (typeof object.keys[i] !== 'object') + throw TypeError('.Authentication.ChangeKeyTypes.keys: object expected'); message.keys[i] = $root.Authentication.ChangeKeyType.fromObject(object.keys[i]); } } @@ -21400,11 +22351,9 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ ChangeKeyTypes.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.keys = []; + if (options.arrays || options.defaults) object.keys = []; if (message.keys && message.keys.length) { object.keys = []; for (let j = 0; j < message.keys.length; ++j) @@ -21434,16 +22383,15 @@ export const Authentication = $root.Authentication = (() => { */ ChangeKeyTypes.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.ChangeKeyTypes"; + return typeUrlPrefix + '/Authentication.ChangeKeyTypes'; }; return ChangeKeyTypes; })(); - Authentication.ChangeKeyType = (function() { - + Authentication.ChangeKeyType = (function () { /** * Properties of a ChangeKeyType. * @memberof Authentication @@ -21467,8 +22415,7 @@ export const Authentication = $root.Authentication = (() => { function ChangeKeyType(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -21541,20 +22488,19 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ ChangeKeyType.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.objectType != null && Object.hasOwnProperty.call(message, "objectType")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.objectType); - if (message.uid != null && Object.hasOwnProperty.call(message, "uid")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.uid); - if (message.secondaryUid != null && Object.hasOwnProperty.call(message, "secondaryUid")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.secondaryUid); - if (message.key != null && Object.hasOwnProperty.call(message, "key")) - writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.key); - if (message.keyType != null && Object.hasOwnProperty.call(message, "keyType")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.keyType); - if (message.status != null && Object.hasOwnProperty.call(message, "status")) - writer.uint32(/* id 6, wireType 0 =*/48).int32(message.status); + if (!writer) writer = $Writer.create(); + if (message.objectType != null && Object.hasOwnProperty.call(message, 'objectType')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int32(message.objectType); + if (message.uid != null && Object.hasOwnProperty.call(message, 'uid')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.uid); + if (message.secondaryUid != null && Object.hasOwnProperty.call(message, 'secondaryUid')) + writer.uint32(/* id 3, wireType 2 =*/ 26).bytes(message.secondaryUid); + if (message.key != null && Object.hasOwnProperty.call(message, 'key')) + writer.uint32(/* id 4, wireType 2 =*/ 34).bytes(message.key); + if (message.keyType != null && Object.hasOwnProperty.call(message, 'keyType')) + writer.uint32(/* id 5, wireType 0 =*/ 40).int32(message.keyType); + if (message.status != null && Object.hasOwnProperty.call(message, 'status')) + writer.uint32(/* id 6, wireType 0 =*/ 48).int32(message.status); return writer; }; @@ -21583,39 +22529,39 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ChangeKeyType.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.ChangeKeyType(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.ChangeKeyType(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.objectType = reader.int32(); break; } - case 2: { + case 2: { message.uid = reader.bytes(); break; } - case 3: { + case 3: { message.secondaryUid = reader.bytes(); break; } - case 4: { + case 4: { message.key = reader.bytes(); break; } - case 5: { + case 5: { message.keyType = reader.int32(); break; } - case 6: { + case 6: { message.status = reader.int32(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -21632,8 +22578,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ChangeKeyType.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -21646,53 +22591,57 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ ChangeKeyType.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.objectType != null && message.hasOwnProperty("objectType")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.objectType != null && message.hasOwnProperty('objectType')) switch (message.objectType) { - default: - return "objectType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - break; + default: + return 'objectType: enum value expected'; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + break; } - if (message.uid != null && message.hasOwnProperty("uid")) - if (!(message.uid && typeof message.uid.length === "number" || $util.isString(message.uid))) - return "uid: buffer expected"; - if (message.secondaryUid != null && message.hasOwnProperty("secondaryUid")) - if (!(message.secondaryUid && typeof message.secondaryUid.length === "number" || $util.isString(message.secondaryUid))) - return "secondaryUid: buffer expected"; - if (message.key != null && message.hasOwnProperty("key")) - if (!(message.key && typeof message.key.length === "number" || $util.isString(message.key))) - return "key: buffer expected"; - if (message.keyType != null && message.hasOwnProperty("keyType")) + if (message.uid != null && message.hasOwnProperty('uid')) + if (!((message.uid && typeof message.uid.length === 'number') || $util.isString(message.uid))) + return 'uid: buffer expected'; + if (message.secondaryUid != null && message.hasOwnProperty('secondaryUid')) + if ( + !( + (message.secondaryUid && typeof message.secondaryUid.length === 'number') || + $util.isString(message.secondaryUid) + ) + ) + return 'secondaryUid: buffer expected'; + if (message.key != null && message.hasOwnProperty('key')) + if (!((message.key && typeof message.key.length === 'number') || $util.isString(message.key))) + return 'key: buffer expected'; + if (message.keyType != null && message.hasOwnProperty('keyType')) switch (message.keyType) { - default: - return "keyType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; + default: + return 'keyType: enum value expected'; + case 0: + case 1: + case 2: + case 3: + case 4: + break; } - if (message.status != null && message.hasOwnProperty("status")) + if (message.status != null && message.hasOwnProperty('status')) switch (message.status) { - default: - return "status: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; + default: + return 'status: enum value expected'; + case 0: + case 1: + case 2: + case 3: + break; } return null; }; @@ -21706,123 +22655,131 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.ChangeKeyType} ChangeKeyType */ ChangeKeyType.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.ChangeKeyType) - return object; + if (object instanceof $root.Authentication.ChangeKeyType) return object; let message = new $root.Authentication.ChangeKeyType(); switch (object.objectType) { - default: - if (typeof object.objectType === "number") { - message.objectType = object.objectType; - break; - } - break; - case "EOT_UNSPECIFIED": - case 0: - message.objectType = 0; - break; - case "EOT_RECORD_KEY": - case 1: - message.objectType = 1; - break; - case "EOT_SHARED_FOLDER_USER_KEY": - case 2: - message.objectType = 2; - break; - case "EOT_SHARED_FOLDER_TEAM_KEY": - case 3: - message.objectType = 3; - break; - case "EOT_TEAM_USER_KEY": - case 4: - message.objectType = 4; - break; - case "EOT_USER_FOLDER_KEY": - case 5: - message.objectType = 5; - break; - case "EOT_SECURITY_DATA": - case 6: - message.objectType = 6; - break; - case "EOT_SECURITY_DATA_MASTER_PASSWORD": - case 7: - message.objectType = 7; - break; - case "EOT_EMERGENCY_ACCESS_KEY": - case 8: - message.objectType = 8; - break; - case "EOT_V2_RECORD_KEY": - case 9: - message.objectType = 9; - break; + default: + if (typeof object.objectType === 'number') { + message.objectType = object.objectType; + break; + } + break; + case 'EOT_UNSPECIFIED': + case 0: + message.objectType = 0; + break; + case 'EOT_RECORD_KEY': + case 1: + message.objectType = 1; + break; + case 'EOT_SHARED_FOLDER_USER_KEY': + case 2: + message.objectType = 2; + break; + case 'EOT_SHARED_FOLDER_TEAM_KEY': + case 3: + message.objectType = 3; + break; + case 'EOT_TEAM_USER_KEY': + case 4: + message.objectType = 4; + break; + case 'EOT_USER_FOLDER_KEY': + case 5: + message.objectType = 5; + break; + case 'EOT_SECURITY_DATA': + case 6: + message.objectType = 6; + break; + case 'EOT_SECURITY_DATA_MASTER_PASSWORD': + case 7: + message.objectType = 7; + break; + case 'EOT_EMERGENCY_ACCESS_KEY': + case 8: + message.objectType = 8; + break; + case 'EOT_V2_RECORD_KEY': + case 9: + message.objectType = 9; + break; } if (object.uid != null) - if (typeof object.uid === "string") - $util.base64.decode(object.uid, message.uid = $util.newBuffer($util.base64.length(object.uid)), 0); - else if (object.uid.length >= 0) - message.uid = object.uid; + if (typeof object.uid === 'string') + $util.base64.decode( + object.uid, + (message.uid = $util.newBuffer($util.base64.length(object.uid))), + 0 + ); + else if (object.uid.length >= 0) message.uid = object.uid; if (object.secondaryUid != null) - if (typeof object.secondaryUid === "string") - $util.base64.decode(object.secondaryUid, message.secondaryUid = $util.newBuffer($util.base64.length(object.secondaryUid)), 0); - else if (object.secondaryUid.length >= 0) - message.secondaryUid = object.secondaryUid; + if (typeof object.secondaryUid === 'string') + $util.base64.decode( + object.secondaryUid, + (message.secondaryUid = $util.newBuffer($util.base64.length(object.secondaryUid))), + 0 + ); + else if (object.secondaryUid.length >= 0) message.secondaryUid = object.secondaryUid; if (object.key != null) - if (typeof object.key === "string") - $util.base64.decode(object.key, message.key = $util.newBuffer($util.base64.length(object.key)), 0); - else if (object.key.length >= 0) - message.key = object.key; + if (typeof object.key === 'string') + $util.base64.decode( + object.key, + (message.key = $util.newBuffer($util.base64.length(object.key))), + 0 + ); + else if (object.key.length >= 0) message.key = object.key; switch (object.keyType) { - default: - if (typeof object.keyType === "number") { - message.keyType = object.keyType; - break; - } - break; - case "KT_NO_KEY": - case 0: - message.keyType = 0; - break; - case "KT_ENCRYPTED_BY_DATA_KEY": - case 1: - message.keyType = 1; - break; - case "KT_ENCRYPTED_BY_PUBLIC_KEY": - case 2: - message.keyType = 2; - break; - case "KT_ENCRYPTED_BY_DATA_KEY_GCM": - case 3: - message.keyType = 3; - break; - case "KT_ENCRYPTED_BY_PUBLIC_KEY_ECC": - case 4: - message.keyType = 4; - break; + default: + if (typeof object.keyType === 'number') { + message.keyType = object.keyType; + break; + } + break; + case 'KT_NO_KEY': + case 0: + message.keyType = 0; + break; + case 'KT_ENCRYPTED_BY_DATA_KEY': + case 1: + message.keyType = 1; + break; + case 'KT_ENCRYPTED_BY_PUBLIC_KEY': + case 2: + message.keyType = 2; + break; + case 'KT_ENCRYPTED_BY_DATA_KEY_GCM': + case 3: + message.keyType = 3; + break; + case 'KT_ENCRYPTED_BY_PUBLIC_KEY_ECC': + case 4: + message.keyType = 4; + break; } switch (object.status) { - default: - if (typeof object.status === "number") { - message.status = object.status; + default: + if (typeof object.status === 'number') { + message.status = object.status; + break; + } + break; + case 'SUCCESS': + case 0: + message.status = 0; + break; + case 'INVALID_OBJECT': + case 1: + message.status = 1; + break; + case 'ALREADY_EXISTS': + case 2: + message.status = 2; + break; + case 'ACCESS_DENIED': + case 3: + message.status = 3; break; - } - break; - case "SUCCESS": - case 0: - message.status = 0; - break; - case "INVALID_OBJECT": - case 1: - message.status = 1; - break; - case "ALREADY_EXISTS": - case 2: - message.status = 2; - break; - case "ACCESS_DENIED": - case 3: - message.status = 3; - break; } return message; }; @@ -21837,47 +22794,70 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ ChangeKeyType.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - object.objectType = options.enums === String ? "EOT_UNSPECIFIED" : 0; - if (options.bytes === String) - object.uid = ""; + object.objectType = options.enums === String ? 'EOT_UNSPECIFIED' : 0; + if (options.bytes === String) object.uid = ''; else { object.uid = []; - if (options.bytes !== Array) - object.uid = $util.newBuffer(object.uid); + if (options.bytes !== Array) object.uid = $util.newBuffer(object.uid); } - if (options.bytes === String) - object.secondaryUid = ""; + if (options.bytes === String) object.secondaryUid = ''; else { object.secondaryUid = []; - if (options.bytes !== Array) - object.secondaryUid = $util.newBuffer(object.secondaryUid); + if (options.bytes !== Array) object.secondaryUid = $util.newBuffer(object.secondaryUid); } - if (options.bytes === String) - object.key = ""; + if (options.bytes === String) object.key = ''; else { object.key = []; - if (options.bytes !== Array) - object.key = $util.newBuffer(object.key); - } - object.keyType = options.enums === String ? "KT_NO_KEY" : 0; - object.status = options.enums === String ? "SUCCESS" : 0; - } - if (message.objectType != null && message.hasOwnProperty("objectType")) - object.objectType = options.enums === String ? $root.Authentication.EncryptedObjectType[message.objectType] === undefined ? message.objectType : $root.Authentication.EncryptedObjectType[message.objectType] : message.objectType; - if (message.uid != null && message.hasOwnProperty("uid")) - object.uid = options.bytes === String ? $util.base64.encode(message.uid, 0, message.uid.length) : options.bytes === Array ? Array.prototype.slice.call(message.uid) : message.uid; - if (message.secondaryUid != null && message.hasOwnProperty("secondaryUid")) - object.secondaryUid = options.bytes === String ? $util.base64.encode(message.secondaryUid, 0, message.secondaryUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.secondaryUid) : message.secondaryUid; - if (message.key != null && message.hasOwnProperty("key")) - object.key = options.bytes === String ? $util.base64.encode(message.key, 0, message.key.length) : options.bytes === Array ? Array.prototype.slice.call(message.key) : message.key; - if (message.keyType != null && message.hasOwnProperty("keyType")) - object.keyType = options.enums === String ? $root.Enterprise.EncryptedKeyType[message.keyType] === undefined ? message.keyType : $root.Enterprise.EncryptedKeyType[message.keyType] : message.keyType; - if (message.status != null && message.hasOwnProperty("status")) - object.status = options.enums === String ? $root.Authentication.GenericStatus[message.status] === undefined ? message.status : $root.Authentication.GenericStatus[message.status] : message.status; + if (options.bytes !== Array) object.key = $util.newBuffer(object.key); + } + object.keyType = options.enums === String ? 'KT_NO_KEY' : 0; + object.status = options.enums === String ? 'SUCCESS' : 0; + } + if (message.objectType != null && message.hasOwnProperty('objectType')) + object.objectType = + options.enums === String + ? $root.Authentication.EncryptedObjectType[message.objectType] === undefined + ? message.objectType + : $root.Authentication.EncryptedObjectType[message.objectType] + : message.objectType; + if (message.uid != null && message.hasOwnProperty('uid')) + object.uid = + options.bytes === String + ? $util.base64.encode(message.uid, 0, message.uid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.uid) + : message.uid; + if (message.secondaryUid != null && message.hasOwnProperty('secondaryUid')) + object.secondaryUid = + options.bytes === String + ? $util.base64.encode(message.secondaryUid, 0, message.secondaryUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.secondaryUid) + : message.secondaryUid; + if (message.key != null && message.hasOwnProperty('key')) + object.key = + options.bytes === String + ? $util.base64.encode(message.key, 0, message.key.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.key) + : message.key; + if (message.keyType != null && message.hasOwnProperty('keyType')) + object.keyType = + options.enums === String + ? $root.Enterprise.EncryptedKeyType[message.keyType] === undefined + ? message.keyType + : $root.Enterprise.EncryptedKeyType[message.keyType] + : message.keyType; + if (message.status != null && message.hasOwnProperty('status')) + object.status = + options.enums === String + ? $root.Authentication.GenericStatus[message.status] === undefined + ? message.status + : $root.Authentication.GenericStatus[message.status] + : message.status; return object; }; @@ -21902,16 +22882,15 @@ export const Authentication = $root.Authentication = (() => { */ ChangeKeyType.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.ChangeKeyType"; + return typeUrlPrefix + '/Authentication.ChangeKeyType'; }; return ChangeKeyType; })(); - Authentication.SetKey = (function() { - + Authentication.SetKey = (function () { /** * Properties of a SetKey. * @memberof Authentication @@ -21931,8 +22910,7 @@ export const Authentication = $root.Authentication = (() => { function SetKey(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -21941,7 +22919,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.SetKey * @instance */ - SetKey.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + SetKey.prototype.id = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * SetKey key. @@ -21973,12 +22951,11 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ SetKey.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.id != null && Object.hasOwnProperty.call(message, "id")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.id); - if (message.key != null && Object.hasOwnProperty.call(message, "key")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.key); + if (!writer) writer = $Writer.create(); + if (message.id != null && Object.hasOwnProperty.call(message, 'id')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int64(message.id); + if (message.key != null && Object.hasOwnProperty.call(message, 'key')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.key); return writer; }; @@ -22007,23 +22984,23 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SetKey.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.SetKey(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.SetKey(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.id = reader.int64(); break; } - case 2: { + case 2: { message.key = reader.bytes(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -22040,8 +23017,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SetKey.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -22054,14 +23030,16 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ SetKey.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) - if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high))) - return "id: integer|Long expected"; - if (message.key != null && message.hasOwnProperty("key")) - if (!(message.key && typeof message.key.length === "number" || $util.isString(message.key))) - return "key: buffer expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.id != null && message.hasOwnProperty('id')) + if ( + !$util.isInteger(message.id) && + !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high)) + ) + return 'id: integer|Long expected'; + if (message.key != null && message.hasOwnProperty('key')) + if (!((message.key && typeof message.key.length === 'number') || $util.isString(message.key))) + return 'key: buffer expected'; return null; }; @@ -22074,23 +23052,22 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.SetKey} SetKey */ SetKey.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.SetKey) - return object; + if (object instanceof $root.Authentication.SetKey) return object; let message = new $root.Authentication.SetKey(); if (object.id != null) - if ($util.Long) - (message.id = $util.Long.fromValue(object.id)).unsigned = false; - else if (typeof object.id === "string") - message.id = parseInt(object.id, 10); - else if (typeof object.id === "number") - message.id = object.id; - else if (typeof object.id === "object") + if ($util.Long) (message.id = $util.Long.fromValue(object.id)).unsigned = false; + else if (typeof object.id === 'string') message.id = parseInt(object.id, 10); + else if (typeof object.id === 'number') message.id = object.id; + else if (typeof object.id === 'object') message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber(); if (object.key != null) - if (typeof object.key === "string") - $util.base64.decode(object.key, message.key = $util.newBuffer($util.base64.length(object.key)), 0); - else if (object.key.length >= 0) - message.key = object.key; + if (typeof object.key === 'string') + $util.base64.decode( + object.key, + (message.key = $util.newBuffer($util.base64.length(object.key))), + 0 + ); + else if (object.key.length >= 0) message.key = object.key; return message; }; @@ -22104,30 +23081,37 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ SetKey.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.id = options.longs === String ? "0" : 0; - if (options.bytes === String) - object.key = ""; + object.id = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.id = options.longs === String ? '0' : 0; + if (options.bytes === String) object.key = ''; else { object.key = []; - if (options.bytes !== Array) - object.key = $util.newBuffer(object.key); + if (options.bytes !== Array) object.key = $util.newBuffer(object.key); } } - if (message.id != null && message.hasOwnProperty("id")) - if (typeof message.id === "number") + if (message.id != null && message.hasOwnProperty('id')) + if (typeof message.id === 'number') object.id = options.longs === String ? String(message.id) : message.id; else - object.id = options.longs === String ? $util.Long.prototype.toString.call(message.id) : options.longs === Number ? new $util.LongBits(message.id.low >>> 0, message.id.high >>> 0).toNumber() : message.id; - if (message.key != null && message.hasOwnProperty("key")) - object.key = options.bytes === String ? $util.base64.encode(message.key, 0, message.key.length) : options.bytes === Array ? Array.prototype.slice.call(message.key) : message.key; + object.id = + options.longs === String + ? $util.Long.prototype.toString.call(message.id) + : options.longs === Number + ? new $util.LongBits(message.id.low >>> 0, message.id.high >>> 0).toNumber() + : message.id; + if (message.key != null && message.hasOwnProperty('key')) + object.key = + options.bytes === String + ? $util.base64.encode(message.key, 0, message.key.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.key) + : message.key; return object; }; @@ -22152,16 +23136,15 @@ export const Authentication = $root.Authentication = (() => { */ SetKey.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.SetKey"; + return typeUrlPrefix + '/Authentication.SetKey'; }; return SetKey; })(); - Authentication.SetKeyRequest = (function() { - + Authentication.SetKeyRequest = (function () { /** * Properties of a SetKeyRequest. * @memberof Authentication @@ -22181,8 +23164,7 @@ export const Authentication = $root.Authentication = (() => { this.keys = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -22215,11 +23197,13 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ SetKeyRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.keys != null && message.keys.length) for (let i = 0; i < message.keys.length; ++i) - $root.Authentication.SetKey.encode(message.keys[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.Authentication.SetKey.encode( + message.keys[i], + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); return writer; }; @@ -22248,21 +23232,20 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SetKeyRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.SetKeyRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.SetKeyRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (!(message.keys && message.keys.length)) - message.keys = []; + case 1: { + if (!(message.keys && message.keys.length)) message.keys = []; message.keys.push($root.Authentication.SetKey.decode(reader, reader.uint32())); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -22279,8 +23262,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SetKeyRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -22293,15 +23275,12 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ SetKeyRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.keys != null && message.hasOwnProperty("keys")) { - if (!Array.isArray(message.keys)) - return "keys: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.keys != null && message.hasOwnProperty('keys')) { + if (!Array.isArray(message.keys)) return 'keys: array expected'; for (let i = 0; i < message.keys.length; ++i) { let error = $root.Authentication.SetKey.verify(message.keys[i]); - if (error) - return "keys." + error; + if (error) return 'keys.' + error; } } return null; @@ -22316,16 +23295,14 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.SetKeyRequest} SetKeyRequest */ SetKeyRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.SetKeyRequest) - return object; + if (object instanceof $root.Authentication.SetKeyRequest) return object; let message = new $root.Authentication.SetKeyRequest(); if (object.keys) { - if (!Array.isArray(object.keys)) - throw TypeError(".Authentication.SetKeyRequest.keys: array expected"); + if (!Array.isArray(object.keys)) throw TypeError('.Authentication.SetKeyRequest.keys: array expected'); message.keys = []; for (let i = 0; i < object.keys.length; ++i) { - if (typeof object.keys[i] !== "object") - throw TypeError(".Authentication.SetKeyRequest.keys: object expected"); + if (typeof object.keys[i] !== 'object') + throw TypeError('.Authentication.SetKeyRequest.keys: object expected'); message.keys[i] = $root.Authentication.SetKey.fromObject(object.keys[i]); } } @@ -22342,11 +23319,9 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ SetKeyRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.keys = []; + if (options.arrays || options.defaults) object.keys = []; if (message.keys && message.keys.length) { object.keys = []; for (let j = 0; j < message.keys.length; ++j) @@ -22376,16 +23351,15 @@ export const Authentication = $root.Authentication = (() => { */ SetKeyRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.SetKeyRequest"; + return typeUrlPrefix + '/Authentication.SetKeyRequest'; }; return SetKeyRequest; })(); - Authentication.CreateUserRequest = (function() { - + Authentication.CreateUserRequest = (function () { /** * Properties of a CreateUserRequest. * @memberof Authentication @@ -22428,8 +23402,7 @@ export const Authentication = $root.Authentication = (() => { function CreateUserRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -22438,7 +23411,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.CreateUserRequest * @instance */ - CreateUserRequest.prototype.username = ""; + CreateUserRequest.prototype.username = ''; /** * CreateUserRequest authVerifier. @@ -22510,7 +23483,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.CreateUserRequest * @instance */ - CreateUserRequest.prototype.clientVersion = ""; + CreateUserRequest.prototype.clientVersion = ''; /** * CreateUserRequest encryptedDeviceDataKey. @@ -22542,7 +23515,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.CreateUserRequest * @instance */ - CreateUserRequest.prototype.installReferrer = ""; + CreateUserRequest.prototype.installReferrer = ''; /** * CreateUserRequest mccMNC. @@ -22558,7 +23531,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.CreateUserRequest * @instance */ - CreateUserRequest.prototype.mfg = ""; + CreateUserRequest.prototype.mfg = ''; /** * CreateUserRequest model. @@ -22566,7 +23539,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.CreateUserRequest * @instance */ - CreateUserRequest.prototype.model = ""; + CreateUserRequest.prototype.model = ''; /** * CreateUserRequest brand. @@ -22574,7 +23547,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.CreateUserRequest * @instance */ - CreateUserRequest.prototype.brand = ""; + CreateUserRequest.prototype.brand = ''; /** * CreateUserRequest product. @@ -22582,7 +23555,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.CreateUserRequest * @instance */ - CreateUserRequest.prototype.product = ""; + CreateUserRequest.prototype.product = ''; /** * CreateUserRequest device. @@ -22590,7 +23563,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.CreateUserRequest * @instance */ - CreateUserRequest.prototype.device = ""; + CreateUserRequest.prototype.device = ''; /** * CreateUserRequest carrier. @@ -22598,7 +23571,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.CreateUserRequest * @instance */ - CreateUserRequest.prototype.carrier = ""; + CreateUserRequest.prototype.carrier = ''; /** * CreateUserRequest verificationCode. @@ -22606,7 +23579,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.CreateUserRequest * @instance */ - CreateUserRequest.prototype.verificationCode = ""; + CreateUserRequest.prototype.verificationCode = ''; /** * CreateUserRequest enterpriseRegistration. @@ -22654,58 +23627,63 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ CreateUserRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.username != null && Object.hasOwnProperty.call(message, "username")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.username); - if (message.authVerifier != null && Object.hasOwnProperty.call(message, "authVerifier")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.authVerifier); - if (message.encryptionParams != null && Object.hasOwnProperty.call(message, "encryptionParams")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.encryptionParams); - if (message.rsaPublicKey != null && Object.hasOwnProperty.call(message, "rsaPublicKey")) - writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.rsaPublicKey); - if (message.rsaEncryptedPrivateKey != null && Object.hasOwnProperty.call(message, "rsaEncryptedPrivateKey")) - writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.rsaEncryptedPrivateKey); - if (message.eccPublicKey != null && Object.hasOwnProperty.call(message, "eccPublicKey")) - writer.uint32(/* id 6, wireType 2 =*/50).bytes(message.eccPublicKey); - if (message.eccEncryptedPrivateKey != null && Object.hasOwnProperty.call(message, "eccEncryptedPrivateKey")) - writer.uint32(/* id 7, wireType 2 =*/58).bytes(message.eccEncryptedPrivateKey); - if (message.encryptedDeviceToken != null && Object.hasOwnProperty.call(message, "encryptedDeviceToken")) - writer.uint32(/* id 8, wireType 2 =*/66).bytes(message.encryptedDeviceToken); - if (message.encryptedClientKey != null && Object.hasOwnProperty.call(message, "encryptedClientKey")) - writer.uint32(/* id 9, wireType 2 =*/74).bytes(message.encryptedClientKey); - if (message.clientVersion != null && Object.hasOwnProperty.call(message, "clientVersion")) - writer.uint32(/* id 10, wireType 2 =*/82).string(message.clientVersion); - if (message.encryptedDeviceDataKey != null && Object.hasOwnProperty.call(message, "encryptedDeviceDataKey")) - writer.uint32(/* id 11, wireType 2 =*/90).bytes(message.encryptedDeviceDataKey); - if (message.encryptedLoginToken != null && Object.hasOwnProperty.call(message, "encryptedLoginToken")) - writer.uint32(/* id 12, wireType 2 =*/98).bytes(message.encryptedLoginToken); - if (message.messageSessionUid != null && Object.hasOwnProperty.call(message, "messageSessionUid")) - writer.uint32(/* id 13, wireType 2 =*/106).bytes(message.messageSessionUid); - if (message.installReferrer != null && Object.hasOwnProperty.call(message, "installReferrer")) - writer.uint32(/* id 14, wireType 2 =*/114).string(message.installReferrer); - if (message.mccMNC != null && Object.hasOwnProperty.call(message, "mccMNC")) - writer.uint32(/* id 15, wireType 0 =*/120).int32(message.mccMNC); - if (message.mfg != null && Object.hasOwnProperty.call(message, "mfg")) - writer.uint32(/* id 16, wireType 2 =*/130).string(message.mfg); - if (message.model != null && Object.hasOwnProperty.call(message, "model")) - writer.uint32(/* id 17, wireType 2 =*/138).string(message.model); - if (message.brand != null && Object.hasOwnProperty.call(message, "brand")) - writer.uint32(/* id 18, wireType 2 =*/146).string(message.brand); - if (message.product != null && Object.hasOwnProperty.call(message, "product")) - writer.uint32(/* id 19, wireType 2 =*/154).string(message.product); - if (message.device != null && Object.hasOwnProperty.call(message, "device")) - writer.uint32(/* id 20, wireType 2 =*/162).string(message.device); - if (message.carrier != null && Object.hasOwnProperty.call(message, "carrier")) - writer.uint32(/* id 21, wireType 2 =*/170).string(message.carrier); - if (message.verificationCode != null && Object.hasOwnProperty.call(message, "verificationCode")) - writer.uint32(/* id 22, wireType 2 =*/178).string(message.verificationCode); - if (message.enterpriseRegistration != null && Object.hasOwnProperty.call(message, "enterpriseRegistration")) - $root.Enterprise.EnterpriseRegistration.encode(message.enterpriseRegistration, writer.uint32(/* id 23, wireType 2 =*/186).fork()).ldelim(); - if (message.encryptedVerificationToken != null && Object.hasOwnProperty.call(message, "encryptedVerificationToken")) - writer.uint32(/* id 24, wireType 2 =*/194).bytes(message.encryptedVerificationToken); - if (message.enterpriseUsersDataKey != null && Object.hasOwnProperty.call(message, "enterpriseUsersDataKey")) - writer.uint32(/* id 25, wireType 2 =*/202).bytes(message.enterpriseUsersDataKey); + if (!writer) writer = $Writer.create(); + if (message.username != null && Object.hasOwnProperty.call(message, 'username')) + writer.uint32(/* id 1, wireType 2 =*/ 10).string(message.username); + if (message.authVerifier != null && Object.hasOwnProperty.call(message, 'authVerifier')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.authVerifier); + if (message.encryptionParams != null && Object.hasOwnProperty.call(message, 'encryptionParams')) + writer.uint32(/* id 3, wireType 2 =*/ 26).bytes(message.encryptionParams); + if (message.rsaPublicKey != null && Object.hasOwnProperty.call(message, 'rsaPublicKey')) + writer.uint32(/* id 4, wireType 2 =*/ 34).bytes(message.rsaPublicKey); + if (message.rsaEncryptedPrivateKey != null && Object.hasOwnProperty.call(message, 'rsaEncryptedPrivateKey')) + writer.uint32(/* id 5, wireType 2 =*/ 42).bytes(message.rsaEncryptedPrivateKey); + if (message.eccPublicKey != null && Object.hasOwnProperty.call(message, 'eccPublicKey')) + writer.uint32(/* id 6, wireType 2 =*/ 50).bytes(message.eccPublicKey); + if (message.eccEncryptedPrivateKey != null && Object.hasOwnProperty.call(message, 'eccEncryptedPrivateKey')) + writer.uint32(/* id 7, wireType 2 =*/ 58).bytes(message.eccEncryptedPrivateKey); + if (message.encryptedDeviceToken != null && Object.hasOwnProperty.call(message, 'encryptedDeviceToken')) + writer.uint32(/* id 8, wireType 2 =*/ 66).bytes(message.encryptedDeviceToken); + if (message.encryptedClientKey != null && Object.hasOwnProperty.call(message, 'encryptedClientKey')) + writer.uint32(/* id 9, wireType 2 =*/ 74).bytes(message.encryptedClientKey); + if (message.clientVersion != null && Object.hasOwnProperty.call(message, 'clientVersion')) + writer.uint32(/* id 10, wireType 2 =*/ 82).string(message.clientVersion); + if (message.encryptedDeviceDataKey != null && Object.hasOwnProperty.call(message, 'encryptedDeviceDataKey')) + writer.uint32(/* id 11, wireType 2 =*/ 90).bytes(message.encryptedDeviceDataKey); + if (message.encryptedLoginToken != null && Object.hasOwnProperty.call(message, 'encryptedLoginToken')) + writer.uint32(/* id 12, wireType 2 =*/ 98).bytes(message.encryptedLoginToken); + if (message.messageSessionUid != null && Object.hasOwnProperty.call(message, 'messageSessionUid')) + writer.uint32(/* id 13, wireType 2 =*/ 106).bytes(message.messageSessionUid); + if (message.installReferrer != null && Object.hasOwnProperty.call(message, 'installReferrer')) + writer.uint32(/* id 14, wireType 2 =*/ 114).string(message.installReferrer); + if (message.mccMNC != null && Object.hasOwnProperty.call(message, 'mccMNC')) + writer.uint32(/* id 15, wireType 0 =*/ 120).int32(message.mccMNC); + if (message.mfg != null && Object.hasOwnProperty.call(message, 'mfg')) + writer.uint32(/* id 16, wireType 2 =*/ 130).string(message.mfg); + if (message.model != null && Object.hasOwnProperty.call(message, 'model')) + writer.uint32(/* id 17, wireType 2 =*/ 138).string(message.model); + if (message.brand != null && Object.hasOwnProperty.call(message, 'brand')) + writer.uint32(/* id 18, wireType 2 =*/ 146).string(message.brand); + if (message.product != null && Object.hasOwnProperty.call(message, 'product')) + writer.uint32(/* id 19, wireType 2 =*/ 154).string(message.product); + if (message.device != null && Object.hasOwnProperty.call(message, 'device')) + writer.uint32(/* id 20, wireType 2 =*/ 162).string(message.device); + if (message.carrier != null && Object.hasOwnProperty.call(message, 'carrier')) + writer.uint32(/* id 21, wireType 2 =*/ 170).string(message.carrier); + if (message.verificationCode != null && Object.hasOwnProperty.call(message, 'verificationCode')) + writer.uint32(/* id 22, wireType 2 =*/ 178).string(message.verificationCode); + if (message.enterpriseRegistration != null && Object.hasOwnProperty.call(message, 'enterpriseRegistration')) + $root.Enterprise.EnterpriseRegistration.encode( + message.enterpriseRegistration, + writer.uint32(/* id 23, wireType 2 =*/ 186).fork() + ).ldelim(); + if ( + message.encryptedVerificationToken != null && + Object.hasOwnProperty.call(message, 'encryptedVerificationToken') + ) + writer.uint32(/* id 24, wireType 2 =*/ 194).bytes(message.encryptedVerificationToken); + if (message.enterpriseUsersDataKey != null && Object.hasOwnProperty.call(message, 'enterpriseUsersDataKey')) + writer.uint32(/* id 25, wireType 2 =*/ 202).bytes(message.enterpriseUsersDataKey); return writer; }; @@ -22734,115 +23712,118 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ CreateUserRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.CreateUserRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.CreateUserRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.username = reader.string(); break; } - case 2: { + case 2: { message.authVerifier = reader.bytes(); break; } - case 3: { + case 3: { message.encryptionParams = reader.bytes(); break; } - case 4: { + case 4: { message.rsaPublicKey = reader.bytes(); break; } - case 5: { + case 5: { message.rsaEncryptedPrivateKey = reader.bytes(); break; } - case 6: { + case 6: { message.eccPublicKey = reader.bytes(); break; } - case 7: { + case 7: { message.eccEncryptedPrivateKey = reader.bytes(); break; } - case 8: { + case 8: { message.encryptedDeviceToken = reader.bytes(); break; } - case 9: { + case 9: { message.encryptedClientKey = reader.bytes(); break; } - case 10: { + case 10: { message.clientVersion = reader.string(); break; } - case 11: { + case 11: { message.encryptedDeviceDataKey = reader.bytes(); break; } - case 12: { + case 12: { message.encryptedLoginToken = reader.bytes(); break; } - case 13: { + case 13: { message.messageSessionUid = reader.bytes(); break; } - case 14: { + case 14: { message.installReferrer = reader.string(); break; } - case 15: { + case 15: { message.mccMNC = reader.int32(); break; } - case 16: { + case 16: { message.mfg = reader.string(); break; } - case 17: { + case 17: { message.model = reader.string(); break; } - case 18: { + case 18: { message.brand = reader.string(); break; } - case 19: { + case 19: { message.product = reader.string(); break; } - case 20: { + case 20: { message.device = reader.string(); break; } - case 21: { + case 21: { message.carrier = reader.string(); break; } - case 22: { + case 22: { message.verificationCode = reader.string(); break; } - case 23: { - message.enterpriseRegistration = $root.Enterprise.EnterpriseRegistration.decode(reader, reader.uint32()); + case 23: { + message.enterpriseRegistration = $root.Enterprise.EnterpriseRegistration.decode( + reader, + reader.uint32() + ); break; } - case 24: { + case 24: { message.encryptedVerificationToken = reader.bytes(); break; } - case 25: { + case 25: { message.enterpriseUsersDataKey = reader.bytes(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -22859,8 +23840,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ CreateUserRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -22873,85 +23853,138 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ CreateUserRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.username != null && message.hasOwnProperty("username")) - if (!$util.isString(message.username)) - return "username: string expected"; - if (message.authVerifier != null && message.hasOwnProperty("authVerifier")) - if (!(message.authVerifier && typeof message.authVerifier.length === "number" || $util.isString(message.authVerifier))) - return "authVerifier: buffer expected"; - if (message.encryptionParams != null && message.hasOwnProperty("encryptionParams")) - if (!(message.encryptionParams && typeof message.encryptionParams.length === "number" || $util.isString(message.encryptionParams))) - return "encryptionParams: buffer expected"; - if (message.rsaPublicKey != null && message.hasOwnProperty("rsaPublicKey")) - if (!(message.rsaPublicKey && typeof message.rsaPublicKey.length === "number" || $util.isString(message.rsaPublicKey))) - return "rsaPublicKey: buffer expected"; - if (message.rsaEncryptedPrivateKey != null && message.hasOwnProperty("rsaEncryptedPrivateKey")) - if (!(message.rsaEncryptedPrivateKey && typeof message.rsaEncryptedPrivateKey.length === "number" || $util.isString(message.rsaEncryptedPrivateKey))) - return "rsaEncryptedPrivateKey: buffer expected"; - if (message.eccPublicKey != null && message.hasOwnProperty("eccPublicKey")) - if (!(message.eccPublicKey && typeof message.eccPublicKey.length === "number" || $util.isString(message.eccPublicKey))) - return "eccPublicKey: buffer expected"; - if (message.eccEncryptedPrivateKey != null && message.hasOwnProperty("eccEncryptedPrivateKey")) - if (!(message.eccEncryptedPrivateKey && typeof message.eccEncryptedPrivateKey.length === "number" || $util.isString(message.eccEncryptedPrivateKey))) - return "eccEncryptedPrivateKey: buffer expected"; - if (message.encryptedDeviceToken != null && message.hasOwnProperty("encryptedDeviceToken")) - if (!(message.encryptedDeviceToken && typeof message.encryptedDeviceToken.length === "number" || $util.isString(message.encryptedDeviceToken))) - return "encryptedDeviceToken: buffer expected"; - if (message.encryptedClientKey != null && message.hasOwnProperty("encryptedClientKey")) - if (!(message.encryptedClientKey && typeof message.encryptedClientKey.length === "number" || $util.isString(message.encryptedClientKey))) - return "encryptedClientKey: buffer expected"; - if (message.clientVersion != null && message.hasOwnProperty("clientVersion")) - if (!$util.isString(message.clientVersion)) - return "clientVersion: string expected"; - if (message.encryptedDeviceDataKey != null && message.hasOwnProperty("encryptedDeviceDataKey")) - if (!(message.encryptedDeviceDataKey && typeof message.encryptedDeviceDataKey.length === "number" || $util.isString(message.encryptedDeviceDataKey))) - return "encryptedDeviceDataKey: buffer expected"; - if (message.encryptedLoginToken != null && message.hasOwnProperty("encryptedLoginToken")) - if (!(message.encryptedLoginToken && typeof message.encryptedLoginToken.length === "number" || $util.isString(message.encryptedLoginToken))) - return "encryptedLoginToken: buffer expected"; - if (message.messageSessionUid != null && message.hasOwnProperty("messageSessionUid")) - if (!(message.messageSessionUid && typeof message.messageSessionUid.length === "number" || $util.isString(message.messageSessionUid))) - return "messageSessionUid: buffer expected"; - if (message.installReferrer != null && message.hasOwnProperty("installReferrer")) - if (!$util.isString(message.installReferrer)) - return "installReferrer: string expected"; - if (message.mccMNC != null && message.hasOwnProperty("mccMNC")) - if (!$util.isInteger(message.mccMNC)) - return "mccMNC: integer expected"; - if (message.mfg != null && message.hasOwnProperty("mfg")) - if (!$util.isString(message.mfg)) - return "mfg: string expected"; - if (message.model != null && message.hasOwnProperty("model")) - if (!$util.isString(message.model)) - return "model: string expected"; - if (message.brand != null && message.hasOwnProperty("brand")) - if (!$util.isString(message.brand)) - return "brand: string expected"; - if (message.product != null && message.hasOwnProperty("product")) - if (!$util.isString(message.product)) - return "product: string expected"; - if (message.device != null && message.hasOwnProperty("device")) - if (!$util.isString(message.device)) - return "device: string expected"; - if (message.carrier != null && message.hasOwnProperty("carrier")) - if (!$util.isString(message.carrier)) - return "carrier: string expected"; - if (message.verificationCode != null && message.hasOwnProperty("verificationCode")) - if (!$util.isString(message.verificationCode)) - return "verificationCode: string expected"; - if (message.enterpriseRegistration != null && message.hasOwnProperty("enterpriseRegistration")) { + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.username != null && message.hasOwnProperty('username')) + if (!$util.isString(message.username)) return 'username: string expected'; + if (message.authVerifier != null && message.hasOwnProperty('authVerifier')) + if ( + !( + (message.authVerifier && typeof message.authVerifier.length === 'number') || + $util.isString(message.authVerifier) + ) + ) + return 'authVerifier: buffer expected'; + if (message.encryptionParams != null && message.hasOwnProperty('encryptionParams')) + if ( + !( + (message.encryptionParams && typeof message.encryptionParams.length === 'number') || + $util.isString(message.encryptionParams) + ) + ) + return 'encryptionParams: buffer expected'; + if (message.rsaPublicKey != null && message.hasOwnProperty('rsaPublicKey')) + if ( + !( + (message.rsaPublicKey && typeof message.rsaPublicKey.length === 'number') || + $util.isString(message.rsaPublicKey) + ) + ) + return 'rsaPublicKey: buffer expected'; + if (message.rsaEncryptedPrivateKey != null && message.hasOwnProperty('rsaEncryptedPrivateKey')) + if ( + !( + (message.rsaEncryptedPrivateKey && typeof message.rsaEncryptedPrivateKey.length === 'number') || + $util.isString(message.rsaEncryptedPrivateKey) + ) + ) + return 'rsaEncryptedPrivateKey: buffer expected'; + if (message.eccPublicKey != null && message.hasOwnProperty('eccPublicKey')) + if ( + !( + (message.eccPublicKey && typeof message.eccPublicKey.length === 'number') || + $util.isString(message.eccPublicKey) + ) + ) + return 'eccPublicKey: buffer expected'; + if (message.eccEncryptedPrivateKey != null && message.hasOwnProperty('eccEncryptedPrivateKey')) + if ( + !( + (message.eccEncryptedPrivateKey && typeof message.eccEncryptedPrivateKey.length === 'number') || + $util.isString(message.eccEncryptedPrivateKey) + ) + ) + return 'eccEncryptedPrivateKey: buffer expected'; + if (message.encryptedDeviceToken != null && message.hasOwnProperty('encryptedDeviceToken')) + if ( + !( + (message.encryptedDeviceToken && typeof message.encryptedDeviceToken.length === 'number') || + $util.isString(message.encryptedDeviceToken) + ) + ) + return 'encryptedDeviceToken: buffer expected'; + if (message.encryptedClientKey != null && message.hasOwnProperty('encryptedClientKey')) + if ( + !( + (message.encryptedClientKey && typeof message.encryptedClientKey.length === 'number') || + $util.isString(message.encryptedClientKey) + ) + ) + return 'encryptedClientKey: buffer expected'; + if (message.clientVersion != null && message.hasOwnProperty('clientVersion')) + if (!$util.isString(message.clientVersion)) return 'clientVersion: string expected'; + if (message.encryptedDeviceDataKey != null && message.hasOwnProperty('encryptedDeviceDataKey')) + if ( + !( + (message.encryptedDeviceDataKey && typeof message.encryptedDeviceDataKey.length === 'number') || + $util.isString(message.encryptedDeviceDataKey) + ) + ) + return 'encryptedDeviceDataKey: buffer expected'; + if (message.encryptedLoginToken != null && message.hasOwnProperty('encryptedLoginToken')) + if ( + !( + (message.encryptedLoginToken && typeof message.encryptedLoginToken.length === 'number') || + $util.isString(message.encryptedLoginToken) + ) + ) + return 'encryptedLoginToken: buffer expected'; + if (message.messageSessionUid != null && message.hasOwnProperty('messageSessionUid')) + if ( + !( + (message.messageSessionUid && typeof message.messageSessionUid.length === 'number') || + $util.isString(message.messageSessionUid) + ) + ) + return 'messageSessionUid: buffer expected'; + if (message.installReferrer != null && message.hasOwnProperty('installReferrer')) + if (!$util.isString(message.installReferrer)) return 'installReferrer: string expected'; + if (message.mccMNC != null && message.hasOwnProperty('mccMNC')) + if (!$util.isInteger(message.mccMNC)) return 'mccMNC: integer expected'; + if (message.mfg != null && message.hasOwnProperty('mfg')) + if (!$util.isString(message.mfg)) return 'mfg: string expected'; + if (message.model != null && message.hasOwnProperty('model')) + if (!$util.isString(message.model)) return 'model: string expected'; + if (message.brand != null && message.hasOwnProperty('brand')) + if (!$util.isString(message.brand)) return 'brand: string expected'; + if (message.product != null && message.hasOwnProperty('product')) + if (!$util.isString(message.product)) return 'product: string expected'; + if (message.device != null && message.hasOwnProperty('device')) + if (!$util.isString(message.device)) return 'device: string expected'; + if (message.carrier != null && message.hasOwnProperty('carrier')) + if (!$util.isString(message.carrier)) return 'carrier: string expected'; + if (message.verificationCode != null && message.hasOwnProperty('verificationCode')) + if (!$util.isString(message.verificationCode)) return 'verificationCode: string expected'; + if (message.enterpriseRegistration != null && message.hasOwnProperty('enterpriseRegistration')) { let error = $root.Enterprise.EnterpriseRegistration.verify(message.enterpriseRegistration); - if (error) - return "enterpriseRegistration." + error; + if (error) return 'enterpriseRegistration.' + error; } - if (message.encryptedVerificationToken != null && message.hasOwnProperty("encryptedVerificationToken")) - if (!(message.encryptedVerificationToken && typeof message.encryptedVerificationToken.length === "number" || $util.isString(message.encryptedVerificationToken))) - return "encryptedVerificationToken: buffer expected"; - if (message.enterpriseUsersDataKey != null && message.hasOwnProperty("enterpriseUsersDataKey")) - if (!(message.enterpriseUsersDataKey && typeof message.enterpriseUsersDataKey.length === "number" || $util.isString(message.enterpriseUsersDataKey))) - return "enterpriseUsersDataKey: buffer expected"; + if (message.encryptedVerificationToken != null && message.hasOwnProperty('encryptedVerificationToken')) + if ( + !( + (message.encryptedVerificationToken && + typeof message.encryptedVerificationToken.length === 'number') || + $util.isString(message.encryptedVerificationToken) + ) + ) + return 'encryptedVerificationToken: buffer expected'; + if (message.enterpriseUsersDataKey != null && message.hasOwnProperty('enterpriseUsersDataKey')) + if ( + !( + (message.enterpriseUsersDataKey && typeof message.enterpriseUsersDataKey.length === 'number') || + $util.isString(message.enterpriseUsersDataKey) + ) + ) + return 'enterpriseUsersDataKey: buffer expected'; return null; }; @@ -22964,99 +23997,149 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.CreateUserRequest} CreateUserRequest */ CreateUserRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.CreateUserRequest) - return object; + if (object instanceof $root.Authentication.CreateUserRequest) return object; let message = new $root.Authentication.CreateUserRequest(); - if (object.username != null) - message.username = String(object.username); + if (object.username != null) message.username = String(object.username); if (object.authVerifier != null) - if (typeof object.authVerifier === "string") - $util.base64.decode(object.authVerifier, message.authVerifier = $util.newBuffer($util.base64.length(object.authVerifier)), 0); - else if (object.authVerifier.length >= 0) - message.authVerifier = object.authVerifier; + if (typeof object.authVerifier === 'string') + $util.base64.decode( + object.authVerifier, + (message.authVerifier = $util.newBuffer($util.base64.length(object.authVerifier))), + 0 + ); + else if (object.authVerifier.length >= 0) message.authVerifier = object.authVerifier; if (object.encryptionParams != null) - if (typeof object.encryptionParams === "string") - $util.base64.decode(object.encryptionParams, message.encryptionParams = $util.newBuffer($util.base64.length(object.encryptionParams)), 0); - else if (object.encryptionParams.length >= 0) - message.encryptionParams = object.encryptionParams; + if (typeof object.encryptionParams === 'string') + $util.base64.decode( + object.encryptionParams, + (message.encryptionParams = $util.newBuffer($util.base64.length(object.encryptionParams))), + 0 + ); + else if (object.encryptionParams.length >= 0) message.encryptionParams = object.encryptionParams; if (object.rsaPublicKey != null) - if (typeof object.rsaPublicKey === "string") - $util.base64.decode(object.rsaPublicKey, message.rsaPublicKey = $util.newBuffer($util.base64.length(object.rsaPublicKey)), 0); - else if (object.rsaPublicKey.length >= 0) - message.rsaPublicKey = object.rsaPublicKey; + if (typeof object.rsaPublicKey === 'string') + $util.base64.decode( + object.rsaPublicKey, + (message.rsaPublicKey = $util.newBuffer($util.base64.length(object.rsaPublicKey))), + 0 + ); + else if (object.rsaPublicKey.length >= 0) message.rsaPublicKey = object.rsaPublicKey; if (object.rsaEncryptedPrivateKey != null) - if (typeof object.rsaEncryptedPrivateKey === "string") - $util.base64.decode(object.rsaEncryptedPrivateKey, message.rsaEncryptedPrivateKey = $util.newBuffer($util.base64.length(object.rsaEncryptedPrivateKey)), 0); + if (typeof object.rsaEncryptedPrivateKey === 'string') + $util.base64.decode( + object.rsaEncryptedPrivateKey, + (message.rsaEncryptedPrivateKey = $util.newBuffer( + $util.base64.length(object.rsaEncryptedPrivateKey) + )), + 0 + ); else if (object.rsaEncryptedPrivateKey.length >= 0) message.rsaEncryptedPrivateKey = object.rsaEncryptedPrivateKey; if (object.eccPublicKey != null) - if (typeof object.eccPublicKey === "string") - $util.base64.decode(object.eccPublicKey, message.eccPublicKey = $util.newBuffer($util.base64.length(object.eccPublicKey)), 0); - else if (object.eccPublicKey.length >= 0) - message.eccPublicKey = object.eccPublicKey; + if (typeof object.eccPublicKey === 'string') + $util.base64.decode( + object.eccPublicKey, + (message.eccPublicKey = $util.newBuffer($util.base64.length(object.eccPublicKey))), + 0 + ); + else if (object.eccPublicKey.length >= 0) message.eccPublicKey = object.eccPublicKey; if (object.eccEncryptedPrivateKey != null) - if (typeof object.eccEncryptedPrivateKey === "string") - $util.base64.decode(object.eccEncryptedPrivateKey, message.eccEncryptedPrivateKey = $util.newBuffer($util.base64.length(object.eccEncryptedPrivateKey)), 0); + if (typeof object.eccEncryptedPrivateKey === 'string') + $util.base64.decode( + object.eccEncryptedPrivateKey, + (message.eccEncryptedPrivateKey = $util.newBuffer( + $util.base64.length(object.eccEncryptedPrivateKey) + )), + 0 + ); else if (object.eccEncryptedPrivateKey.length >= 0) message.eccEncryptedPrivateKey = object.eccEncryptedPrivateKey; if (object.encryptedDeviceToken != null) - if (typeof object.encryptedDeviceToken === "string") - $util.base64.decode(object.encryptedDeviceToken, message.encryptedDeviceToken = $util.newBuffer($util.base64.length(object.encryptedDeviceToken)), 0); + if (typeof object.encryptedDeviceToken === 'string') + $util.base64.decode( + object.encryptedDeviceToken, + (message.encryptedDeviceToken = $util.newBuffer( + $util.base64.length(object.encryptedDeviceToken) + )), + 0 + ); else if (object.encryptedDeviceToken.length >= 0) message.encryptedDeviceToken = object.encryptedDeviceToken; if (object.encryptedClientKey != null) - if (typeof object.encryptedClientKey === "string") - $util.base64.decode(object.encryptedClientKey, message.encryptedClientKey = $util.newBuffer($util.base64.length(object.encryptedClientKey)), 0); - else if (object.encryptedClientKey.length >= 0) - message.encryptedClientKey = object.encryptedClientKey; - if (object.clientVersion != null) - message.clientVersion = String(object.clientVersion); + if (typeof object.encryptedClientKey === 'string') + $util.base64.decode( + object.encryptedClientKey, + (message.encryptedClientKey = $util.newBuffer($util.base64.length(object.encryptedClientKey))), + 0 + ); + else if (object.encryptedClientKey.length >= 0) message.encryptedClientKey = object.encryptedClientKey; + if (object.clientVersion != null) message.clientVersion = String(object.clientVersion); if (object.encryptedDeviceDataKey != null) - if (typeof object.encryptedDeviceDataKey === "string") - $util.base64.decode(object.encryptedDeviceDataKey, message.encryptedDeviceDataKey = $util.newBuffer($util.base64.length(object.encryptedDeviceDataKey)), 0); + if (typeof object.encryptedDeviceDataKey === 'string') + $util.base64.decode( + object.encryptedDeviceDataKey, + (message.encryptedDeviceDataKey = $util.newBuffer( + $util.base64.length(object.encryptedDeviceDataKey) + )), + 0 + ); else if (object.encryptedDeviceDataKey.length >= 0) message.encryptedDeviceDataKey = object.encryptedDeviceDataKey; if (object.encryptedLoginToken != null) - if (typeof object.encryptedLoginToken === "string") - $util.base64.decode(object.encryptedLoginToken, message.encryptedLoginToken = $util.newBuffer($util.base64.length(object.encryptedLoginToken)), 0); + if (typeof object.encryptedLoginToken === 'string') + $util.base64.decode( + object.encryptedLoginToken, + (message.encryptedLoginToken = $util.newBuffer( + $util.base64.length(object.encryptedLoginToken) + )), + 0 + ); else if (object.encryptedLoginToken.length >= 0) message.encryptedLoginToken = object.encryptedLoginToken; if (object.messageSessionUid != null) - if (typeof object.messageSessionUid === "string") - $util.base64.decode(object.messageSessionUid, message.messageSessionUid = $util.newBuffer($util.base64.length(object.messageSessionUid)), 0); - else if (object.messageSessionUid.length >= 0) - message.messageSessionUid = object.messageSessionUid; - if (object.installReferrer != null) - message.installReferrer = String(object.installReferrer); - if (object.mccMNC != null) - message.mccMNC = object.mccMNC | 0; - if (object.mfg != null) - message.mfg = String(object.mfg); - if (object.model != null) - message.model = String(object.model); - if (object.brand != null) - message.brand = String(object.brand); - if (object.product != null) - message.product = String(object.product); - if (object.device != null) - message.device = String(object.device); - if (object.carrier != null) - message.carrier = String(object.carrier); - if (object.verificationCode != null) - message.verificationCode = String(object.verificationCode); + if (typeof object.messageSessionUid === 'string') + $util.base64.decode( + object.messageSessionUid, + (message.messageSessionUid = $util.newBuffer($util.base64.length(object.messageSessionUid))), + 0 + ); + else if (object.messageSessionUid.length >= 0) message.messageSessionUid = object.messageSessionUid; + if (object.installReferrer != null) message.installReferrer = String(object.installReferrer); + if (object.mccMNC != null) message.mccMNC = object.mccMNC | 0; + if (object.mfg != null) message.mfg = String(object.mfg); + if (object.model != null) message.model = String(object.model); + if (object.brand != null) message.brand = String(object.brand); + if (object.product != null) message.product = String(object.product); + if (object.device != null) message.device = String(object.device); + if (object.carrier != null) message.carrier = String(object.carrier); + if (object.verificationCode != null) message.verificationCode = String(object.verificationCode); if (object.enterpriseRegistration != null) { - if (typeof object.enterpriseRegistration !== "object") - throw TypeError(".Authentication.CreateUserRequest.enterpriseRegistration: object expected"); - message.enterpriseRegistration = $root.Enterprise.EnterpriseRegistration.fromObject(object.enterpriseRegistration); + if (typeof object.enterpriseRegistration !== 'object') + throw TypeError('.Authentication.CreateUserRequest.enterpriseRegistration: object expected'); + message.enterpriseRegistration = $root.Enterprise.EnterpriseRegistration.fromObject( + object.enterpriseRegistration + ); } if (object.encryptedVerificationToken != null) - if (typeof object.encryptedVerificationToken === "string") - $util.base64.decode(object.encryptedVerificationToken, message.encryptedVerificationToken = $util.newBuffer($util.base64.length(object.encryptedVerificationToken)), 0); + if (typeof object.encryptedVerificationToken === 'string') + $util.base64.decode( + object.encryptedVerificationToken, + (message.encryptedVerificationToken = $util.newBuffer( + $util.base64.length(object.encryptedVerificationToken) + )), + 0 + ); else if (object.encryptedVerificationToken.length >= 0) message.encryptedVerificationToken = object.encryptedVerificationToken; if (object.enterpriseUsersDataKey != null) - if (typeof object.enterpriseUsersDataKey === "string") - $util.base64.decode(object.enterpriseUsersDataKey, message.enterpriseUsersDataKey = $util.newBuffer($util.base64.length(object.enterpriseUsersDataKey)), 0); + if (typeof object.enterpriseUsersDataKey === 'string') + $util.base64.decode( + object.enterpriseUsersDataKey, + (message.enterpriseUsersDataKey = $util.newBuffer( + $util.base64.length(object.enterpriseUsersDataKey) + )), + 0 + ); else if (object.enterpriseUsersDataKey.length >= 0) message.enterpriseUsersDataKey = object.enterpriseUsersDataKey; return message; @@ -23072,164 +24155,208 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ CreateUserRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - object.username = ""; - if (options.bytes === String) - object.authVerifier = ""; + object.username = ''; + if (options.bytes === String) object.authVerifier = ''; else { object.authVerifier = []; - if (options.bytes !== Array) - object.authVerifier = $util.newBuffer(object.authVerifier); + if (options.bytes !== Array) object.authVerifier = $util.newBuffer(object.authVerifier); } - if (options.bytes === String) - object.encryptionParams = ""; + if (options.bytes === String) object.encryptionParams = ''; else { object.encryptionParams = []; - if (options.bytes !== Array) - object.encryptionParams = $util.newBuffer(object.encryptionParams); + if (options.bytes !== Array) object.encryptionParams = $util.newBuffer(object.encryptionParams); } - if (options.bytes === String) - object.rsaPublicKey = ""; + if (options.bytes === String) object.rsaPublicKey = ''; else { object.rsaPublicKey = []; - if (options.bytes !== Array) - object.rsaPublicKey = $util.newBuffer(object.rsaPublicKey); + if (options.bytes !== Array) object.rsaPublicKey = $util.newBuffer(object.rsaPublicKey); } - if (options.bytes === String) - object.rsaEncryptedPrivateKey = ""; + if (options.bytes === String) object.rsaEncryptedPrivateKey = ''; else { object.rsaEncryptedPrivateKey = []; if (options.bytes !== Array) object.rsaEncryptedPrivateKey = $util.newBuffer(object.rsaEncryptedPrivateKey); } - if (options.bytes === String) - object.eccPublicKey = ""; + if (options.bytes === String) object.eccPublicKey = ''; else { object.eccPublicKey = []; - if (options.bytes !== Array) - object.eccPublicKey = $util.newBuffer(object.eccPublicKey); + if (options.bytes !== Array) object.eccPublicKey = $util.newBuffer(object.eccPublicKey); } - if (options.bytes === String) - object.eccEncryptedPrivateKey = ""; + if (options.bytes === String) object.eccEncryptedPrivateKey = ''; else { object.eccEncryptedPrivateKey = []; if (options.bytes !== Array) object.eccEncryptedPrivateKey = $util.newBuffer(object.eccEncryptedPrivateKey); } - if (options.bytes === String) - object.encryptedDeviceToken = ""; + if (options.bytes === String) object.encryptedDeviceToken = ''; else { object.encryptedDeviceToken = []; if (options.bytes !== Array) object.encryptedDeviceToken = $util.newBuffer(object.encryptedDeviceToken); } - if (options.bytes === String) - object.encryptedClientKey = ""; + if (options.bytes === String) object.encryptedClientKey = ''; else { object.encryptedClientKey = []; - if (options.bytes !== Array) - object.encryptedClientKey = $util.newBuffer(object.encryptedClientKey); + if (options.bytes !== Array) object.encryptedClientKey = $util.newBuffer(object.encryptedClientKey); } - object.clientVersion = ""; - if (options.bytes === String) - object.encryptedDeviceDataKey = ""; + object.clientVersion = ''; + if (options.bytes === String) object.encryptedDeviceDataKey = ''; else { object.encryptedDeviceDataKey = []; if (options.bytes !== Array) object.encryptedDeviceDataKey = $util.newBuffer(object.encryptedDeviceDataKey); } - if (options.bytes === String) - object.encryptedLoginToken = ""; + if (options.bytes === String) object.encryptedLoginToken = ''; else { object.encryptedLoginToken = []; if (options.bytes !== Array) object.encryptedLoginToken = $util.newBuffer(object.encryptedLoginToken); } - if (options.bytes === String) - object.messageSessionUid = ""; + if (options.bytes === String) object.messageSessionUid = ''; else { object.messageSessionUid = []; - if (options.bytes !== Array) - object.messageSessionUid = $util.newBuffer(object.messageSessionUid); + if (options.bytes !== Array) object.messageSessionUid = $util.newBuffer(object.messageSessionUid); } - object.installReferrer = ""; + object.installReferrer = ''; object.mccMNC = 0; - object.mfg = ""; - object.model = ""; - object.brand = ""; - object.product = ""; - object.device = ""; - object.carrier = ""; - object.verificationCode = ""; + object.mfg = ''; + object.model = ''; + object.brand = ''; + object.product = ''; + object.device = ''; + object.carrier = ''; + object.verificationCode = ''; object.enterpriseRegistration = null; - if (options.bytes === String) - object.encryptedVerificationToken = ""; + if (options.bytes === String) object.encryptedVerificationToken = ''; else { object.encryptedVerificationToken = []; if (options.bytes !== Array) object.encryptedVerificationToken = $util.newBuffer(object.encryptedVerificationToken); } - if (options.bytes === String) - object.enterpriseUsersDataKey = ""; + if (options.bytes === String) object.enterpriseUsersDataKey = ''; else { object.enterpriseUsersDataKey = []; if (options.bytes !== Array) object.enterpriseUsersDataKey = $util.newBuffer(object.enterpriseUsersDataKey); } } - if (message.username != null && message.hasOwnProperty("username")) - object.username = message.username; - if (message.authVerifier != null && message.hasOwnProperty("authVerifier")) - object.authVerifier = options.bytes === String ? $util.base64.encode(message.authVerifier, 0, message.authVerifier.length) : options.bytes === Array ? Array.prototype.slice.call(message.authVerifier) : message.authVerifier; - if (message.encryptionParams != null && message.hasOwnProperty("encryptionParams")) - object.encryptionParams = options.bytes === String ? $util.base64.encode(message.encryptionParams, 0, message.encryptionParams.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptionParams) : message.encryptionParams; - if (message.rsaPublicKey != null && message.hasOwnProperty("rsaPublicKey")) - object.rsaPublicKey = options.bytes === String ? $util.base64.encode(message.rsaPublicKey, 0, message.rsaPublicKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.rsaPublicKey) : message.rsaPublicKey; - if (message.rsaEncryptedPrivateKey != null && message.hasOwnProperty("rsaEncryptedPrivateKey")) - object.rsaEncryptedPrivateKey = options.bytes === String ? $util.base64.encode(message.rsaEncryptedPrivateKey, 0, message.rsaEncryptedPrivateKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.rsaEncryptedPrivateKey) : message.rsaEncryptedPrivateKey; - if (message.eccPublicKey != null && message.hasOwnProperty("eccPublicKey")) - object.eccPublicKey = options.bytes === String ? $util.base64.encode(message.eccPublicKey, 0, message.eccPublicKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.eccPublicKey) : message.eccPublicKey; - if (message.eccEncryptedPrivateKey != null && message.hasOwnProperty("eccEncryptedPrivateKey")) - object.eccEncryptedPrivateKey = options.bytes === String ? $util.base64.encode(message.eccEncryptedPrivateKey, 0, message.eccEncryptedPrivateKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.eccEncryptedPrivateKey) : message.eccEncryptedPrivateKey; - if (message.encryptedDeviceToken != null && message.hasOwnProperty("encryptedDeviceToken")) - object.encryptedDeviceToken = options.bytes === String ? $util.base64.encode(message.encryptedDeviceToken, 0, message.encryptedDeviceToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedDeviceToken) : message.encryptedDeviceToken; - if (message.encryptedClientKey != null && message.hasOwnProperty("encryptedClientKey")) - object.encryptedClientKey = options.bytes === String ? $util.base64.encode(message.encryptedClientKey, 0, message.encryptedClientKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedClientKey) : message.encryptedClientKey; - if (message.clientVersion != null && message.hasOwnProperty("clientVersion")) + if (message.username != null && message.hasOwnProperty('username')) object.username = message.username; + if (message.authVerifier != null && message.hasOwnProperty('authVerifier')) + object.authVerifier = + options.bytes === String + ? $util.base64.encode(message.authVerifier, 0, message.authVerifier.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.authVerifier) + : message.authVerifier; + if (message.encryptionParams != null && message.hasOwnProperty('encryptionParams')) + object.encryptionParams = + options.bytes === String + ? $util.base64.encode(message.encryptionParams, 0, message.encryptionParams.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.encryptionParams) + : message.encryptionParams; + if (message.rsaPublicKey != null && message.hasOwnProperty('rsaPublicKey')) + object.rsaPublicKey = + options.bytes === String + ? $util.base64.encode(message.rsaPublicKey, 0, message.rsaPublicKey.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.rsaPublicKey) + : message.rsaPublicKey; + if (message.rsaEncryptedPrivateKey != null && message.hasOwnProperty('rsaEncryptedPrivateKey')) + object.rsaEncryptedPrivateKey = + options.bytes === String + ? $util.base64.encode(message.rsaEncryptedPrivateKey, 0, message.rsaEncryptedPrivateKey.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.rsaEncryptedPrivateKey) + : message.rsaEncryptedPrivateKey; + if (message.eccPublicKey != null && message.hasOwnProperty('eccPublicKey')) + object.eccPublicKey = + options.bytes === String + ? $util.base64.encode(message.eccPublicKey, 0, message.eccPublicKey.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.eccPublicKey) + : message.eccPublicKey; + if (message.eccEncryptedPrivateKey != null && message.hasOwnProperty('eccEncryptedPrivateKey')) + object.eccEncryptedPrivateKey = + options.bytes === String + ? $util.base64.encode(message.eccEncryptedPrivateKey, 0, message.eccEncryptedPrivateKey.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.eccEncryptedPrivateKey) + : message.eccEncryptedPrivateKey; + if (message.encryptedDeviceToken != null && message.hasOwnProperty('encryptedDeviceToken')) + object.encryptedDeviceToken = + options.bytes === String + ? $util.base64.encode(message.encryptedDeviceToken, 0, message.encryptedDeviceToken.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.encryptedDeviceToken) + : message.encryptedDeviceToken; + if (message.encryptedClientKey != null && message.hasOwnProperty('encryptedClientKey')) + object.encryptedClientKey = + options.bytes === String + ? $util.base64.encode(message.encryptedClientKey, 0, message.encryptedClientKey.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.encryptedClientKey) + : message.encryptedClientKey; + if (message.clientVersion != null && message.hasOwnProperty('clientVersion')) object.clientVersion = message.clientVersion; - if (message.encryptedDeviceDataKey != null && message.hasOwnProperty("encryptedDeviceDataKey")) - object.encryptedDeviceDataKey = options.bytes === String ? $util.base64.encode(message.encryptedDeviceDataKey, 0, message.encryptedDeviceDataKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedDeviceDataKey) : message.encryptedDeviceDataKey; - if (message.encryptedLoginToken != null && message.hasOwnProperty("encryptedLoginToken")) - object.encryptedLoginToken = options.bytes === String ? $util.base64.encode(message.encryptedLoginToken, 0, message.encryptedLoginToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedLoginToken) : message.encryptedLoginToken; - if (message.messageSessionUid != null && message.hasOwnProperty("messageSessionUid")) - object.messageSessionUid = options.bytes === String ? $util.base64.encode(message.messageSessionUid, 0, message.messageSessionUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.messageSessionUid) : message.messageSessionUid; - if (message.installReferrer != null && message.hasOwnProperty("installReferrer")) + if (message.encryptedDeviceDataKey != null && message.hasOwnProperty('encryptedDeviceDataKey')) + object.encryptedDeviceDataKey = + options.bytes === String + ? $util.base64.encode(message.encryptedDeviceDataKey, 0, message.encryptedDeviceDataKey.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.encryptedDeviceDataKey) + : message.encryptedDeviceDataKey; + if (message.encryptedLoginToken != null && message.hasOwnProperty('encryptedLoginToken')) + object.encryptedLoginToken = + options.bytes === String + ? $util.base64.encode(message.encryptedLoginToken, 0, message.encryptedLoginToken.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.encryptedLoginToken) + : message.encryptedLoginToken; + if (message.messageSessionUid != null && message.hasOwnProperty('messageSessionUid')) + object.messageSessionUid = + options.bytes === String + ? $util.base64.encode(message.messageSessionUid, 0, message.messageSessionUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.messageSessionUid) + : message.messageSessionUid; + if (message.installReferrer != null && message.hasOwnProperty('installReferrer')) object.installReferrer = message.installReferrer; - if (message.mccMNC != null && message.hasOwnProperty("mccMNC")) - object.mccMNC = message.mccMNC; - if (message.mfg != null && message.hasOwnProperty("mfg")) - object.mfg = message.mfg; - if (message.model != null && message.hasOwnProperty("model")) - object.model = message.model; - if (message.brand != null && message.hasOwnProperty("brand")) - object.brand = message.brand; - if (message.product != null && message.hasOwnProperty("product")) - object.product = message.product; - if (message.device != null && message.hasOwnProperty("device")) - object.device = message.device; - if (message.carrier != null && message.hasOwnProperty("carrier")) - object.carrier = message.carrier; - if (message.verificationCode != null && message.hasOwnProperty("verificationCode")) + if (message.mccMNC != null && message.hasOwnProperty('mccMNC')) object.mccMNC = message.mccMNC; + if (message.mfg != null && message.hasOwnProperty('mfg')) object.mfg = message.mfg; + if (message.model != null && message.hasOwnProperty('model')) object.model = message.model; + if (message.brand != null && message.hasOwnProperty('brand')) object.brand = message.brand; + if (message.product != null && message.hasOwnProperty('product')) object.product = message.product; + if (message.device != null && message.hasOwnProperty('device')) object.device = message.device; + if (message.carrier != null && message.hasOwnProperty('carrier')) object.carrier = message.carrier; + if (message.verificationCode != null && message.hasOwnProperty('verificationCode')) object.verificationCode = message.verificationCode; - if (message.enterpriseRegistration != null && message.hasOwnProperty("enterpriseRegistration")) - object.enterpriseRegistration = $root.Enterprise.EnterpriseRegistration.toObject(message.enterpriseRegistration, options); - if (message.encryptedVerificationToken != null && message.hasOwnProperty("encryptedVerificationToken")) - object.encryptedVerificationToken = options.bytes === String ? $util.base64.encode(message.encryptedVerificationToken, 0, message.encryptedVerificationToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedVerificationToken) : message.encryptedVerificationToken; - if (message.enterpriseUsersDataKey != null && message.hasOwnProperty("enterpriseUsersDataKey")) - object.enterpriseUsersDataKey = options.bytes === String ? $util.base64.encode(message.enterpriseUsersDataKey, 0, message.enterpriseUsersDataKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.enterpriseUsersDataKey) : message.enterpriseUsersDataKey; + if (message.enterpriseRegistration != null && message.hasOwnProperty('enterpriseRegistration')) + object.enterpriseRegistration = $root.Enterprise.EnterpriseRegistration.toObject( + message.enterpriseRegistration, + options + ); + if (message.encryptedVerificationToken != null && message.hasOwnProperty('encryptedVerificationToken')) + object.encryptedVerificationToken = + options.bytes === String + ? $util.base64.encode( + message.encryptedVerificationToken, + 0, + message.encryptedVerificationToken.length + ) + : options.bytes === Array + ? Array.prototype.slice.call(message.encryptedVerificationToken) + : message.encryptedVerificationToken; + if (message.enterpriseUsersDataKey != null && message.hasOwnProperty('enterpriseUsersDataKey')) + object.enterpriseUsersDataKey = + options.bytes === String + ? $util.base64.encode(message.enterpriseUsersDataKey, 0, message.enterpriseUsersDataKey.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.enterpriseUsersDataKey) + : message.enterpriseUsersDataKey; return object; }; @@ -23254,16 +24381,15 @@ export const Authentication = $root.Authentication = (() => { */ CreateUserRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.CreateUserRequest"; + return typeUrlPrefix + '/Authentication.CreateUserRequest'; }; return CreateUserRequest; })(); - Authentication.NodeEnforcementAddOrUpdateRequest = (function() { - + Authentication.NodeEnforcementAddOrUpdateRequest = (function () { /** * Properties of a NodeEnforcementAddOrUpdateRequest. * @memberof Authentication @@ -23284,8 +24410,7 @@ export const Authentication = $root.Authentication = (() => { function NodeEnforcementAddOrUpdateRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -23294,7 +24419,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.NodeEnforcementAddOrUpdateRequest * @instance */ - NodeEnforcementAddOrUpdateRequest.prototype.nodeId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + NodeEnforcementAddOrUpdateRequest.prototype.nodeId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * NodeEnforcementAddOrUpdateRequest enforcement. @@ -23302,7 +24427,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.NodeEnforcementAddOrUpdateRequest * @instance */ - NodeEnforcementAddOrUpdateRequest.prototype.enforcement = ""; + NodeEnforcementAddOrUpdateRequest.prototype.enforcement = ''; /** * NodeEnforcementAddOrUpdateRequest value. @@ -23310,7 +24435,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.NodeEnforcementAddOrUpdateRequest * @instance */ - NodeEnforcementAddOrUpdateRequest.prototype.value = ""; + NodeEnforcementAddOrUpdateRequest.prototype.value = ''; /** * Creates a new NodeEnforcementAddOrUpdateRequest instance using the specified properties. @@ -23334,14 +24459,13 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ NodeEnforcementAddOrUpdateRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.nodeId != null && Object.hasOwnProperty.call(message, "nodeId")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.nodeId); - if (message.enforcement != null && Object.hasOwnProperty.call(message, "enforcement")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.enforcement); - if (message.value != null && Object.hasOwnProperty.call(message, "value")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.value); + if (!writer) writer = $Writer.create(); + if (message.nodeId != null && Object.hasOwnProperty.call(message, 'nodeId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int64(message.nodeId); + if (message.enforcement != null && Object.hasOwnProperty.call(message, 'enforcement')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.enforcement); + if (message.value != null && Object.hasOwnProperty.call(message, 'value')) + writer.uint32(/* id 3, wireType 2 =*/ 26).string(message.value); return writer; }; @@ -23370,27 +24494,27 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ NodeEnforcementAddOrUpdateRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.NodeEnforcementAddOrUpdateRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.NodeEnforcementAddOrUpdateRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.nodeId = reader.int64(); break; } - case 2: { + case 2: { message.enforcement = reader.string(); break; } - case 3: { + case 3: { message.value = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -23407,8 +24531,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ NodeEnforcementAddOrUpdateRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -23421,17 +24544,17 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ NodeEnforcementAddOrUpdateRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.nodeId != null && message.hasOwnProperty("nodeId")) - if (!$util.isInteger(message.nodeId) && !(message.nodeId && $util.isInteger(message.nodeId.low) && $util.isInteger(message.nodeId.high))) - return "nodeId: integer|Long expected"; - if (message.enforcement != null && message.hasOwnProperty("enforcement")) - if (!$util.isString(message.enforcement)) - return "enforcement: string expected"; - if (message.value != null && message.hasOwnProperty("value")) - if (!$util.isString(message.value)) - return "value: string expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.nodeId != null && message.hasOwnProperty('nodeId')) + if ( + !$util.isInteger(message.nodeId) && + !(message.nodeId && $util.isInteger(message.nodeId.low) && $util.isInteger(message.nodeId.high)) + ) + return 'nodeId: integer|Long expected'; + if (message.enforcement != null && message.hasOwnProperty('enforcement')) + if (!$util.isString(message.enforcement)) return 'enforcement: string expected'; + if (message.value != null && message.hasOwnProperty('value')) + if (!$util.isString(message.value)) return 'value: string expected'; return null; }; @@ -23444,22 +24567,16 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.NodeEnforcementAddOrUpdateRequest} NodeEnforcementAddOrUpdateRequest */ NodeEnforcementAddOrUpdateRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.NodeEnforcementAddOrUpdateRequest) - return object; + if (object instanceof $root.Authentication.NodeEnforcementAddOrUpdateRequest) return object; let message = new $root.Authentication.NodeEnforcementAddOrUpdateRequest(); if (object.nodeId != null) - if ($util.Long) - (message.nodeId = $util.Long.fromValue(object.nodeId)).unsigned = false; - else if (typeof object.nodeId === "string") - message.nodeId = parseInt(object.nodeId, 10); - else if (typeof object.nodeId === "number") - message.nodeId = object.nodeId; - else if (typeof object.nodeId === "object") + if ($util.Long) (message.nodeId = $util.Long.fromValue(object.nodeId)).unsigned = false; + else if (typeof object.nodeId === 'string') message.nodeId = parseInt(object.nodeId, 10); + else if (typeof object.nodeId === 'number') message.nodeId = object.nodeId; + else if (typeof object.nodeId === 'object') message.nodeId = new $util.LongBits(object.nodeId.low >>> 0, object.nodeId.high >>> 0).toNumber(); - if (object.enforcement != null) - message.enforcement = String(object.enforcement); - if (object.value != null) - message.value = String(object.value); + if (object.enforcement != null) message.enforcement = String(object.enforcement); + if (object.value != null) message.value = String(object.value); return message; }; @@ -23473,27 +24590,30 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ NodeEnforcementAddOrUpdateRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.nodeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.nodeId = options.longs === String ? "0" : 0; - object.enforcement = ""; - object.value = ""; - } - if (message.nodeId != null && message.hasOwnProperty("nodeId")) - if (typeof message.nodeId === "number") + object.nodeId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.nodeId = options.longs === String ? '0' : 0; + object.enforcement = ''; + object.value = ''; + } + if (message.nodeId != null && message.hasOwnProperty('nodeId')) + if (typeof message.nodeId === 'number') object.nodeId = options.longs === String ? String(message.nodeId) : message.nodeId; else - object.nodeId = options.longs === String ? $util.Long.prototype.toString.call(message.nodeId) : options.longs === Number ? new $util.LongBits(message.nodeId.low >>> 0, message.nodeId.high >>> 0).toNumber() : message.nodeId; - if (message.enforcement != null && message.hasOwnProperty("enforcement")) + object.nodeId = + options.longs === String + ? $util.Long.prototype.toString.call(message.nodeId) + : options.longs === Number + ? new $util.LongBits(message.nodeId.low >>> 0, message.nodeId.high >>> 0).toNumber() + : message.nodeId; + if (message.enforcement != null && message.hasOwnProperty('enforcement')) object.enforcement = message.enforcement; - if (message.value != null && message.hasOwnProperty("value")) - object.value = message.value; + if (message.value != null && message.hasOwnProperty('value')) object.value = message.value; return object; }; @@ -23518,16 +24638,15 @@ export const Authentication = $root.Authentication = (() => { */ NodeEnforcementAddOrUpdateRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.NodeEnforcementAddOrUpdateRequest"; + return typeUrlPrefix + '/Authentication.NodeEnforcementAddOrUpdateRequest'; }; return NodeEnforcementAddOrUpdateRequest; })(); - Authentication.NodeEnforcementRemoveRequest = (function() { - + Authentication.NodeEnforcementRemoveRequest = (function () { /** * Properties of a NodeEnforcementRemoveRequest. * @memberof Authentication @@ -23547,8 +24666,7 @@ export const Authentication = $root.Authentication = (() => { function NodeEnforcementRemoveRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -23557,7 +24675,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.NodeEnforcementRemoveRequest * @instance */ - NodeEnforcementRemoveRequest.prototype.nodeId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + NodeEnforcementRemoveRequest.prototype.nodeId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * NodeEnforcementRemoveRequest enforcement. @@ -23565,7 +24683,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.NodeEnforcementRemoveRequest * @instance */ - NodeEnforcementRemoveRequest.prototype.enforcement = ""; + NodeEnforcementRemoveRequest.prototype.enforcement = ''; /** * Creates a new NodeEnforcementRemoveRequest instance using the specified properties. @@ -23589,12 +24707,11 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ NodeEnforcementRemoveRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.nodeId != null && Object.hasOwnProperty.call(message, "nodeId")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.nodeId); - if (message.enforcement != null && Object.hasOwnProperty.call(message, "enforcement")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.enforcement); + if (!writer) writer = $Writer.create(); + if (message.nodeId != null && Object.hasOwnProperty.call(message, 'nodeId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int64(message.nodeId); + if (message.enforcement != null && Object.hasOwnProperty.call(message, 'enforcement')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.enforcement); return writer; }; @@ -23623,23 +24740,23 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ NodeEnforcementRemoveRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.NodeEnforcementRemoveRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.NodeEnforcementRemoveRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.nodeId = reader.int64(); break; } - case 2: { + case 2: { message.enforcement = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -23656,8 +24773,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ NodeEnforcementRemoveRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -23670,14 +24786,15 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ NodeEnforcementRemoveRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.nodeId != null && message.hasOwnProperty("nodeId")) - if (!$util.isInteger(message.nodeId) && !(message.nodeId && $util.isInteger(message.nodeId.low) && $util.isInteger(message.nodeId.high))) - return "nodeId: integer|Long expected"; - if (message.enforcement != null && message.hasOwnProperty("enforcement")) - if (!$util.isString(message.enforcement)) - return "enforcement: string expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.nodeId != null && message.hasOwnProperty('nodeId')) + if ( + !$util.isInteger(message.nodeId) && + !(message.nodeId && $util.isInteger(message.nodeId.low) && $util.isInteger(message.nodeId.high)) + ) + return 'nodeId: integer|Long expected'; + if (message.enforcement != null && message.hasOwnProperty('enforcement')) + if (!$util.isString(message.enforcement)) return 'enforcement: string expected'; return null; }; @@ -23690,20 +24807,15 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.NodeEnforcementRemoveRequest} NodeEnforcementRemoveRequest */ NodeEnforcementRemoveRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.NodeEnforcementRemoveRequest) - return object; + if (object instanceof $root.Authentication.NodeEnforcementRemoveRequest) return object; let message = new $root.Authentication.NodeEnforcementRemoveRequest(); if (object.nodeId != null) - if ($util.Long) - (message.nodeId = $util.Long.fromValue(object.nodeId)).unsigned = false; - else if (typeof object.nodeId === "string") - message.nodeId = parseInt(object.nodeId, 10); - else if (typeof object.nodeId === "number") - message.nodeId = object.nodeId; - else if (typeof object.nodeId === "object") + if ($util.Long) (message.nodeId = $util.Long.fromValue(object.nodeId)).unsigned = false; + else if (typeof object.nodeId === 'string') message.nodeId = parseInt(object.nodeId, 10); + else if (typeof object.nodeId === 'number') message.nodeId = object.nodeId; + else if (typeof object.nodeId === 'object') message.nodeId = new $util.LongBits(object.nodeId.low >>> 0, object.nodeId.high >>> 0).toNumber(); - if (object.enforcement != null) - message.enforcement = String(object.enforcement); + if (object.enforcement != null) message.enforcement = String(object.enforcement); return message; }; @@ -23717,23 +24829,27 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ NodeEnforcementRemoveRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.nodeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.nodeId = options.longs === String ? "0" : 0; - object.enforcement = ""; + object.nodeId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.nodeId = options.longs === String ? '0' : 0; + object.enforcement = ''; } - if (message.nodeId != null && message.hasOwnProperty("nodeId")) - if (typeof message.nodeId === "number") + if (message.nodeId != null && message.hasOwnProperty('nodeId')) + if (typeof message.nodeId === 'number') object.nodeId = options.longs === String ? String(message.nodeId) : message.nodeId; else - object.nodeId = options.longs === String ? $util.Long.prototype.toString.call(message.nodeId) : options.longs === Number ? new $util.LongBits(message.nodeId.low >>> 0, message.nodeId.high >>> 0).toNumber() : message.nodeId; - if (message.enforcement != null && message.hasOwnProperty("enforcement")) + object.nodeId = + options.longs === String + ? $util.Long.prototype.toString.call(message.nodeId) + : options.longs === Number + ? new $util.LongBits(message.nodeId.low >>> 0, message.nodeId.high >>> 0).toNumber() + : message.nodeId; + if (message.enforcement != null && message.hasOwnProperty('enforcement')) object.enforcement = message.enforcement; return object; }; @@ -23759,16 +24875,15 @@ export const Authentication = $root.Authentication = (() => { */ NodeEnforcementRemoveRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.NodeEnforcementRemoveRequest"; + return typeUrlPrefix + '/Authentication.NodeEnforcementRemoveRequest'; }; return NodeEnforcementRemoveRequest; })(); - Authentication.ApiRequestByKey = (function() { - + Authentication.ApiRequestByKey = (function () { /** * Properties of an ApiRequestByKey. * @memberof Authentication @@ -23792,8 +24907,7 @@ export const Authentication = $root.Authentication = (() => { function ApiRequestByKey(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -23818,7 +24932,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.ApiRequestByKey * @instance */ - ApiRequestByKey.prototype.username = ""; + ApiRequestByKey.prototype.username = ''; /** * ApiRequestByKey locale. @@ -23826,7 +24940,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.ApiRequestByKey * @instance */ - ApiRequestByKey.prototype.locale = ""; + ApiRequestByKey.prototype.locale = ''; /** * ApiRequestByKey supportedLanguage. @@ -23866,20 +24980,19 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ ApiRequestByKey.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.keyId != null && Object.hasOwnProperty.call(message, "keyId")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.keyId); - if (message.payload != null && Object.hasOwnProperty.call(message, "payload")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.payload); - if (message.username != null && Object.hasOwnProperty.call(message, "username")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.username); - if (message.locale != null && Object.hasOwnProperty.call(message, "locale")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.locale); - if (message.supportedLanguage != null && Object.hasOwnProperty.call(message, "supportedLanguage")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.supportedLanguage); - if (message.type != null && Object.hasOwnProperty.call(message, "type")) - writer.uint32(/* id 6, wireType 0 =*/48).int32(message.type); + if (!writer) writer = $Writer.create(); + if (message.keyId != null && Object.hasOwnProperty.call(message, 'keyId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int32(message.keyId); + if (message.payload != null && Object.hasOwnProperty.call(message, 'payload')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.payload); + if (message.username != null && Object.hasOwnProperty.call(message, 'username')) + writer.uint32(/* id 3, wireType 2 =*/ 26).string(message.username); + if (message.locale != null && Object.hasOwnProperty.call(message, 'locale')) + writer.uint32(/* id 4, wireType 2 =*/ 34).string(message.locale); + if (message.supportedLanguage != null && Object.hasOwnProperty.call(message, 'supportedLanguage')) + writer.uint32(/* id 5, wireType 0 =*/ 40).int32(message.supportedLanguage); + if (message.type != null && Object.hasOwnProperty.call(message, 'type')) + writer.uint32(/* id 6, wireType 0 =*/ 48).int32(message.type); return writer; }; @@ -23908,39 +25021,39 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ApiRequestByKey.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.ApiRequestByKey(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.ApiRequestByKey(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.keyId = reader.int32(); break; } - case 2: { + case 2: { message.payload = reader.bytes(); break; } - case 3: { + case 3: { message.username = reader.string(); break; } - case 4: { + case 4: { message.locale = reader.string(); break; } - case 5: { + case 5: { message.supportedLanguage = reader.int32(); break; } - case 6: { + case 6: { message.type = reader.int32(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -23957,8 +25070,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ApiRequestByKey.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -23971,180 +25083,178 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ ApiRequestByKey.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.keyId != null && message.hasOwnProperty("keyId")) - if (!$util.isInteger(message.keyId)) - return "keyId: integer expected"; - if (message.payload != null && message.hasOwnProperty("payload")) - if (!(message.payload && typeof message.payload.length === "number" || $util.isString(message.payload))) - return "payload: buffer expected"; - if (message.username != null && message.hasOwnProperty("username")) - if (!$util.isString(message.username)) - return "username: string expected"; - if (message.locale != null && message.hasOwnProperty("locale")) - if (!$util.isString(message.locale)) - return "locale: string expected"; - if (message.supportedLanguage != null && message.hasOwnProperty("supportedLanguage")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.keyId != null && message.hasOwnProperty('keyId')) + if (!$util.isInteger(message.keyId)) return 'keyId: integer expected'; + if (message.payload != null && message.hasOwnProperty('payload')) + if ( + !( + (message.payload && typeof message.payload.length === 'number') || + $util.isString(message.payload) + ) + ) + return 'payload: buffer expected'; + if (message.username != null && message.hasOwnProperty('username')) + if (!$util.isString(message.username)) return 'username: string expected'; + if (message.locale != null && message.hasOwnProperty('locale')) + if (!$util.isString(message.locale)) return 'locale: string expected'; + if (message.supportedLanguage != null && message.hasOwnProperty('supportedLanguage')) switch (message.supportedLanguage) { + default: + return 'supportedLanguage: enum value expected'; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + case 10: + case 11: + case 12: + case 13: + case 14: + case 15: + case 16: + case 17: + case 18: + case 19: + case 20: + case 21: + case 22: + break; + } + if (message.type != null && message.hasOwnProperty('type')) + if (!$util.isInteger(message.type)) return 'type: integer expected'; + return null; + }; + + /** + * Creates an ApiRequestByKey message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof Authentication.ApiRequestByKey + * @static + * @param {Object.} object Plain object + * @returns {Authentication.ApiRequestByKey} ApiRequestByKey + */ + ApiRequestByKey.fromObject = function fromObject(object) { + if (object instanceof $root.Authentication.ApiRequestByKey) return object; + let message = new $root.Authentication.ApiRequestByKey(); + if (object.keyId != null) message.keyId = object.keyId | 0; + if (object.payload != null) + if (typeof object.payload === 'string') + $util.base64.decode( + object.payload, + (message.payload = $util.newBuffer($util.base64.length(object.payload))), + 0 + ); + else if (object.payload.length >= 0) message.payload = object.payload; + if (object.username != null) message.username = String(object.username); + if (object.locale != null) message.locale = String(object.locale); + switch (object.supportedLanguage) { default: - return "supportedLanguage: enum value expected"; + if (typeof object.supportedLanguage === 'number') { + message.supportedLanguage = object.supportedLanguage; + break; + } + break; + case 'ENGLISH': case 0: + message.supportedLanguage = 0; + break; + case 'ARABIC': case 1: + message.supportedLanguage = 1; + break; + case 'BRITISH': case 2: + message.supportedLanguage = 2; + break; + case 'CHINESE': case 3: + message.supportedLanguage = 3; + break; + case 'CHINESE_HONG_KONG': case 4: + message.supportedLanguage = 4; + break; + case 'CHINESE_TAIWAN': case 5: + message.supportedLanguage = 5; + break; + case 'DUTCH': case 6: + message.supportedLanguage = 6; + break; + case 'FRENCH': case 7: + message.supportedLanguage = 7; + break; + case 'GERMAN': case 8: + message.supportedLanguage = 8; + break; + case 'GREEK': case 9: + message.supportedLanguage = 9; + break; + case 'HEBREW': case 10: + message.supportedLanguage = 10; + break; + case 'ITALIAN': case 11: + message.supportedLanguage = 11; + break; + case 'JAPANESE': case 12: + message.supportedLanguage = 12; + break; + case 'KOREAN': case 13: + message.supportedLanguage = 13; + break; + case 'POLISH': case 14: + message.supportedLanguage = 14; + break; + case 'PORTUGUESE': case 15: + message.supportedLanguage = 15; + break; + case 'PORTUGUESE_BRAZIL': case 16: + message.supportedLanguage = 16; + break; + case 'ROMANIAN': case 17: + message.supportedLanguage = 17; + break; + case 'RUSSIAN': case 18: + message.supportedLanguage = 18; + break; + case 'SLOVAK': case 19: + message.supportedLanguage = 19; + break; + case 'SPANISH': case 20: + message.supportedLanguage = 20; + break; + case 'FINNISH': case 21: + message.supportedLanguage = 21; + break; + case 'SWEDISH': case 22: + message.supportedLanguage = 22; break; - } - if (message.type != null && message.hasOwnProperty("type")) - if (!$util.isInteger(message.type)) - return "type: integer expected"; - return null; - }; - - /** - * Creates an ApiRequestByKey message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof Authentication.ApiRequestByKey - * @static - * @param {Object.} object Plain object - * @returns {Authentication.ApiRequestByKey} ApiRequestByKey - */ - ApiRequestByKey.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.ApiRequestByKey) - return object; - let message = new $root.Authentication.ApiRequestByKey(); - if (object.keyId != null) - message.keyId = object.keyId | 0; - if (object.payload != null) - if (typeof object.payload === "string") - $util.base64.decode(object.payload, message.payload = $util.newBuffer($util.base64.length(object.payload)), 0); - else if (object.payload.length >= 0) - message.payload = object.payload; - if (object.username != null) - message.username = String(object.username); - if (object.locale != null) - message.locale = String(object.locale); - switch (object.supportedLanguage) { - default: - if (typeof object.supportedLanguage === "number") { - message.supportedLanguage = object.supportedLanguage; - break; - } - break; - case "ENGLISH": - case 0: - message.supportedLanguage = 0; - break; - case "ARABIC": - case 1: - message.supportedLanguage = 1; - break; - case "BRITISH": - case 2: - message.supportedLanguage = 2; - break; - case "CHINESE": - case 3: - message.supportedLanguage = 3; - break; - case "CHINESE_HONG_KONG": - case 4: - message.supportedLanguage = 4; - break; - case "CHINESE_TAIWAN": - case 5: - message.supportedLanguage = 5; - break; - case "DUTCH": - case 6: - message.supportedLanguage = 6; - break; - case "FRENCH": - case 7: - message.supportedLanguage = 7; - break; - case "GERMAN": - case 8: - message.supportedLanguage = 8; - break; - case "GREEK": - case 9: - message.supportedLanguage = 9; - break; - case "HEBREW": - case 10: - message.supportedLanguage = 10; - break; - case "ITALIAN": - case 11: - message.supportedLanguage = 11; - break; - case "JAPANESE": - case 12: - message.supportedLanguage = 12; - break; - case "KOREAN": - case 13: - message.supportedLanguage = 13; - break; - case "POLISH": - case 14: - message.supportedLanguage = 14; - break; - case "PORTUGUESE": - case 15: - message.supportedLanguage = 15; - break; - case "PORTUGUESE_BRAZIL": - case 16: - message.supportedLanguage = 16; - break; - case "ROMANIAN": - case 17: - message.supportedLanguage = 17; - break; - case "RUSSIAN": - case 18: - message.supportedLanguage = 18; - break; - case "SLOVAK": - case 19: - message.supportedLanguage = 19; - break; - case "SPANISH": - case 20: - message.supportedLanguage = 20; - break; - case "FINNISH": - case 21: - message.supportedLanguage = 21; - break; - case "SWEDISH": - case 22: - message.supportedLanguage = 22; - break; - } - if (object.type != null) - message.type = object.type | 0; + } + if (object.type != null) message.type = object.type | 0; return message; }; @@ -24158,35 +25268,38 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ ApiRequestByKey.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { object.keyId = 0; - if (options.bytes === String) - object.payload = ""; + if (options.bytes === String) object.payload = ''; else { object.payload = []; - if (options.bytes !== Array) - object.payload = $util.newBuffer(object.payload); + if (options.bytes !== Array) object.payload = $util.newBuffer(object.payload); } - object.username = ""; - object.locale = ""; - object.supportedLanguage = options.enums === String ? "ENGLISH" : 0; + object.username = ''; + object.locale = ''; + object.supportedLanguage = options.enums === String ? 'ENGLISH' : 0; object.type = 0; } - if (message.keyId != null && message.hasOwnProperty("keyId")) - object.keyId = message.keyId; - if (message.payload != null && message.hasOwnProperty("payload")) - object.payload = options.bytes === String ? $util.base64.encode(message.payload, 0, message.payload.length) : options.bytes === Array ? Array.prototype.slice.call(message.payload) : message.payload; - if (message.username != null && message.hasOwnProperty("username")) - object.username = message.username; - if (message.locale != null && message.hasOwnProperty("locale")) - object.locale = message.locale; - if (message.supportedLanguage != null && message.hasOwnProperty("supportedLanguage")) - object.supportedLanguage = options.enums === String ? $root.Authentication.SupportedLanguage[message.supportedLanguage] === undefined ? message.supportedLanguage : $root.Authentication.SupportedLanguage[message.supportedLanguage] : message.supportedLanguage; - if (message.type != null && message.hasOwnProperty("type")) - object.type = message.type; + if (message.keyId != null && message.hasOwnProperty('keyId')) object.keyId = message.keyId; + if (message.payload != null && message.hasOwnProperty('payload')) + object.payload = + options.bytes === String + ? $util.base64.encode(message.payload, 0, message.payload.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.payload) + : message.payload; + if (message.username != null && message.hasOwnProperty('username')) object.username = message.username; + if (message.locale != null && message.hasOwnProperty('locale')) object.locale = message.locale; + if (message.supportedLanguage != null && message.hasOwnProperty('supportedLanguage')) + object.supportedLanguage = + options.enums === String + ? $root.Authentication.SupportedLanguage[message.supportedLanguage] === undefined + ? message.supportedLanguage + : $root.Authentication.SupportedLanguage[message.supportedLanguage] + : message.supportedLanguage; + if (message.type != null && message.hasOwnProperty('type')) object.type = message.type; return object; }; @@ -24211,16 +25324,15 @@ export const Authentication = $root.Authentication = (() => { */ ApiRequestByKey.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.ApiRequestByKey"; + return typeUrlPrefix + '/Authentication.ApiRequestByKey'; }; return ApiRequestByKey; })(); - Authentication.ApiRequestByKAtoKAKey = (function() { - + Authentication.ApiRequestByKAtoKAKey = (function () { /** * Properties of an ApiRequestByKAtoKAKey. * @memberof Authentication @@ -24242,8 +25354,7 @@ export const Authentication = $root.Authentication = (() => { function ApiRequestByKAtoKAKey(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -24300,16 +25411,15 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ ApiRequestByKAtoKAKey.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.sourceRegion != null && Object.hasOwnProperty.call(message, "sourceRegion")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.sourceRegion); - if (message.payload != null && Object.hasOwnProperty.call(message, "payload")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.payload); - if (message.supportedLanguage != null && Object.hasOwnProperty.call(message, "supportedLanguage")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.supportedLanguage); - if (message.destinationRegion != null && Object.hasOwnProperty.call(message, "destinationRegion")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.destinationRegion); + if (!writer) writer = $Writer.create(); + if (message.sourceRegion != null && Object.hasOwnProperty.call(message, 'sourceRegion')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int32(message.sourceRegion); + if (message.payload != null && Object.hasOwnProperty.call(message, 'payload')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.payload); + if (message.supportedLanguage != null && Object.hasOwnProperty.call(message, 'supportedLanguage')) + writer.uint32(/* id 3, wireType 0 =*/ 24).int32(message.supportedLanguage); + if (message.destinationRegion != null && Object.hasOwnProperty.call(message, 'destinationRegion')) + writer.uint32(/* id 4, wireType 0 =*/ 32).int32(message.destinationRegion); return writer; }; @@ -24338,31 +25448,31 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ApiRequestByKAtoKAKey.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.ApiRequestByKAtoKAKey(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.ApiRequestByKAtoKAKey(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.sourceRegion = reader.int32(); break; } - case 2: { + case 2: { message.payload = reader.bytes(); break; } - case 3: { + case 3: { message.supportedLanguage = reader.int32(); break; } - case 4: { + case 4: { message.destinationRegion = reader.int32(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -24379,8 +25489,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ApiRequestByKAtoKAKey.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -24393,257 +25502,263 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ ApiRequestByKAtoKAKey.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.sourceRegion != null && message.hasOwnProperty("sourceRegion")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.sourceRegion != null && message.hasOwnProperty('sourceRegion')) switch (message.sourceRegion) { + default: + return 'sourceRegion: enum value expected'; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + break; + } + if (message.payload != null && message.hasOwnProperty('payload')) + if ( + !( + (message.payload && typeof message.payload.length === 'number') || + $util.isString(message.payload) + ) + ) + return 'payload: buffer expected'; + if (message.supportedLanguage != null && message.hasOwnProperty('supportedLanguage')) + switch (message.supportedLanguage) { + default: + return 'supportedLanguage: enum value expected'; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + case 10: + case 11: + case 12: + case 13: + case 14: + case 15: + case 16: + case 17: + case 18: + case 19: + case 20: + case 21: + case 22: + break; + } + if (message.destinationRegion != null && message.hasOwnProperty('destinationRegion')) + switch (message.destinationRegion) { + default: + return 'destinationRegion: enum value expected'; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + break; + } + return null; + }; + + /** + * Creates an ApiRequestByKAtoKAKey message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof Authentication.ApiRequestByKAtoKAKey + * @static + * @param {Object.} object Plain object + * @returns {Authentication.ApiRequestByKAtoKAKey} ApiRequestByKAtoKAKey + */ + ApiRequestByKAtoKAKey.fromObject = function fromObject(object) { + if (object instanceof $root.Authentication.ApiRequestByKAtoKAKey) return object; + let message = new $root.Authentication.ApiRequestByKAtoKAKey(); + switch (object.sourceRegion) { default: - return "sourceRegion: enum value expected"; + if (typeof object.sourceRegion === 'number') { + message.sourceRegion = object.sourceRegion; + break; + } + break; + case 'UNKNOWN': case 0: + message.sourceRegion = 0; + break; + case 'eu': case 1: + message.sourceRegion = 1; + break; + case 'us': case 2: + message.sourceRegion = 2; + break; + case 'usgov': case 3: + message.sourceRegion = 3; + break; + case 'au': case 4: + message.sourceRegion = 4; + break; + case 'jp': case 5: + message.sourceRegion = 5; + break; + case 'ca': case 6: + message.sourceRegion = 6; break; - } - if (message.payload != null && message.hasOwnProperty("payload")) - if (!(message.payload && typeof message.payload.length === "number" || $util.isString(message.payload))) - return "payload: buffer expected"; - if (message.supportedLanguage != null && message.hasOwnProperty("supportedLanguage")) - switch (message.supportedLanguage) { + } + if (object.payload != null) + if (typeof object.payload === 'string') + $util.base64.decode( + object.payload, + (message.payload = $util.newBuffer($util.base64.length(object.payload))), + 0 + ); + else if (object.payload.length >= 0) message.payload = object.payload; + switch (object.supportedLanguage) { default: - return "supportedLanguage: enum value expected"; + if (typeof object.supportedLanguage === 'number') { + message.supportedLanguage = object.supportedLanguage; + break; + } + break; + case 'ENGLISH': case 0: + message.supportedLanguage = 0; + break; + case 'ARABIC': case 1: + message.supportedLanguage = 1; + break; + case 'BRITISH': case 2: + message.supportedLanguage = 2; + break; + case 'CHINESE': case 3: + message.supportedLanguage = 3; + break; + case 'CHINESE_HONG_KONG': case 4: + message.supportedLanguage = 4; + break; + case 'CHINESE_TAIWAN': case 5: + message.supportedLanguage = 5; + break; + case 'DUTCH': case 6: + message.supportedLanguage = 6; + break; + case 'FRENCH': case 7: + message.supportedLanguage = 7; + break; + case 'GERMAN': case 8: + message.supportedLanguage = 8; + break; + case 'GREEK': case 9: + message.supportedLanguage = 9; + break; + case 'HEBREW': case 10: + message.supportedLanguage = 10; + break; + case 'ITALIAN': case 11: + message.supportedLanguage = 11; + break; + case 'JAPANESE': case 12: + message.supportedLanguage = 12; + break; + case 'KOREAN': case 13: + message.supportedLanguage = 13; + break; + case 'POLISH': case 14: + message.supportedLanguage = 14; + break; + case 'PORTUGUESE': case 15: + message.supportedLanguage = 15; + break; + case 'PORTUGUESE_BRAZIL': case 16: + message.supportedLanguage = 16; + break; + case 'ROMANIAN': case 17: + message.supportedLanguage = 17; + break; + case 'RUSSIAN': case 18: + message.supportedLanguage = 18; + break; + case 'SLOVAK': case 19: + message.supportedLanguage = 19; + break; + case 'SPANISH': case 20: + message.supportedLanguage = 20; + break; + case 'FINNISH': case 21: + message.supportedLanguage = 21; + break; + case 'SWEDISH': case 22: + message.supportedLanguage = 22; break; - } - if (message.destinationRegion != null && message.hasOwnProperty("destinationRegion")) - switch (message.destinationRegion) { + } + switch (object.destinationRegion) { default: - return "destinationRegion: enum value expected"; + if (typeof object.destinationRegion === 'number') { + message.destinationRegion = object.destinationRegion; + break; + } + break; + case 'UNKNOWN': case 0: + message.destinationRegion = 0; + break; + case 'eu': case 1: + message.destinationRegion = 1; + break; + case 'us': case 2: + message.destinationRegion = 2; + break; + case 'usgov': case 3: + message.destinationRegion = 3; + break; + case 'au': case 4: + message.destinationRegion = 4; + break; + case 'jp': case 5: + message.destinationRegion = 5; + break; + case 'ca': case 6: + message.destinationRegion = 6; break; - } - return null; - }; - - /** - * Creates an ApiRequestByKAtoKAKey message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof Authentication.ApiRequestByKAtoKAKey - * @static - * @param {Object.} object Plain object - * @returns {Authentication.ApiRequestByKAtoKAKey} ApiRequestByKAtoKAKey - */ - ApiRequestByKAtoKAKey.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.ApiRequestByKAtoKAKey) - return object; - let message = new $root.Authentication.ApiRequestByKAtoKAKey(); - switch (object.sourceRegion) { - default: - if (typeof object.sourceRegion === "number") { - message.sourceRegion = object.sourceRegion; - break; - } - break; - case "UNKNOWN": - case 0: - message.sourceRegion = 0; - break; - case "eu": - case 1: - message.sourceRegion = 1; - break; - case "us": - case 2: - message.sourceRegion = 2; - break; - case "usgov": - case 3: - message.sourceRegion = 3; - break; - case "au": - case 4: - message.sourceRegion = 4; - break; - case "jp": - case 5: - message.sourceRegion = 5; - break; - case "ca": - case 6: - message.sourceRegion = 6; - break; - } - if (object.payload != null) - if (typeof object.payload === "string") - $util.base64.decode(object.payload, message.payload = $util.newBuffer($util.base64.length(object.payload)), 0); - else if (object.payload.length >= 0) - message.payload = object.payload; - switch (object.supportedLanguage) { - default: - if (typeof object.supportedLanguage === "number") { - message.supportedLanguage = object.supportedLanguage; - break; - } - break; - case "ENGLISH": - case 0: - message.supportedLanguage = 0; - break; - case "ARABIC": - case 1: - message.supportedLanguage = 1; - break; - case "BRITISH": - case 2: - message.supportedLanguage = 2; - break; - case "CHINESE": - case 3: - message.supportedLanguage = 3; - break; - case "CHINESE_HONG_KONG": - case 4: - message.supportedLanguage = 4; - break; - case "CHINESE_TAIWAN": - case 5: - message.supportedLanguage = 5; - break; - case "DUTCH": - case 6: - message.supportedLanguage = 6; - break; - case "FRENCH": - case 7: - message.supportedLanguage = 7; - break; - case "GERMAN": - case 8: - message.supportedLanguage = 8; - break; - case "GREEK": - case 9: - message.supportedLanguage = 9; - break; - case "HEBREW": - case 10: - message.supportedLanguage = 10; - break; - case "ITALIAN": - case 11: - message.supportedLanguage = 11; - break; - case "JAPANESE": - case 12: - message.supportedLanguage = 12; - break; - case "KOREAN": - case 13: - message.supportedLanguage = 13; - break; - case "POLISH": - case 14: - message.supportedLanguage = 14; - break; - case "PORTUGUESE": - case 15: - message.supportedLanguage = 15; - break; - case "PORTUGUESE_BRAZIL": - case 16: - message.supportedLanguage = 16; - break; - case "ROMANIAN": - case 17: - message.supportedLanguage = 17; - break; - case "RUSSIAN": - case 18: - message.supportedLanguage = 18; - break; - case "SLOVAK": - case 19: - message.supportedLanguage = 19; - break; - case "SPANISH": - case 20: - message.supportedLanguage = 20; - break; - case "FINNISH": - case 21: - message.supportedLanguage = 21; - break; - case "SWEDISH": - case 22: - message.supportedLanguage = 22; - break; - } - switch (object.destinationRegion) { - default: - if (typeof object.destinationRegion === "number") { - message.destinationRegion = object.destinationRegion; - break; - } - break; - case "UNKNOWN": - case 0: - message.destinationRegion = 0; - break; - case "eu": - case 1: - message.destinationRegion = 1; - break; - case "us": - case 2: - message.destinationRegion = 2; - break; - case "usgov": - case 3: - message.destinationRegion = 3; - break; - case "au": - case 4: - message.destinationRegion = 4; - break; - case "jp": - case 5: - message.destinationRegion = 5; - break; - case "ca": - case 6: - message.destinationRegion = 6; - break; } return message; }; @@ -24658,29 +25773,46 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ ApiRequestByKAtoKAKey.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - object.sourceRegion = options.enums === String ? "UNKNOWN" : 0; - if (options.bytes === String) - object.payload = ""; + object.sourceRegion = options.enums === String ? 'UNKNOWN' : 0; + if (options.bytes === String) object.payload = ''; else { object.payload = []; - if (options.bytes !== Array) - object.payload = $util.newBuffer(object.payload); - } - object.supportedLanguage = options.enums === String ? "ENGLISH" : 0; - object.destinationRegion = options.enums === String ? "UNKNOWN" : 0; - } - if (message.sourceRegion != null && message.hasOwnProperty("sourceRegion")) - object.sourceRegion = options.enums === String ? $root.Authentication.Region[message.sourceRegion] === undefined ? message.sourceRegion : $root.Authentication.Region[message.sourceRegion] : message.sourceRegion; - if (message.payload != null && message.hasOwnProperty("payload")) - object.payload = options.bytes === String ? $util.base64.encode(message.payload, 0, message.payload.length) : options.bytes === Array ? Array.prototype.slice.call(message.payload) : message.payload; - if (message.supportedLanguage != null && message.hasOwnProperty("supportedLanguage")) - object.supportedLanguage = options.enums === String ? $root.Authentication.SupportedLanguage[message.supportedLanguage] === undefined ? message.supportedLanguage : $root.Authentication.SupportedLanguage[message.supportedLanguage] : message.supportedLanguage; - if (message.destinationRegion != null && message.hasOwnProperty("destinationRegion")) - object.destinationRegion = options.enums === String ? $root.Authentication.Region[message.destinationRegion] === undefined ? message.destinationRegion : $root.Authentication.Region[message.destinationRegion] : message.destinationRegion; + if (options.bytes !== Array) object.payload = $util.newBuffer(object.payload); + } + object.supportedLanguage = options.enums === String ? 'ENGLISH' : 0; + object.destinationRegion = options.enums === String ? 'UNKNOWN' : 0; + } + if (message.sourceRegion != null && message.hasOwnProperty('sourceRegion')) + object.sourceRegion = + options.enums === String + ? $root.Authentication.Region[message.sourceRegion] === undefined + ? message.sourceRegion + : $root.Authentication.Region[message.sourceRegion] + : message.sourceRegion; + if (message.payload != null && message.hasOwnProperty('payload')) + object.payload = + options.bytes === String + ? $util.base64.encode(message.payload, 0, message.payload.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.payload) + : message.payload; + if (message.supportedLanguage != null && message.hasOwnProperty('supportedLanguage')) + object.supportedLanguage = + options.enums === String + ? $root.Authentication.SupportedLanguage[message.supportedLanguage] === undefined + ? message.supportedLanguage + : $root.Authentication.SupportedLanguage[message.supportedLanguage] + : message.supportedLanguage; + if (message.destinationRegion != null && message.hasOwnProperty('destinationRegion')) + object.destinationRegion = + options.enums === String + ? $root.Authentication.Region[message.destinationRegion] === undefined + ? message.destinationRegion + : $root.Authentication.Region[message.destinationRegion] + : message.destinationRegion; return object; }; @@ -24705,16 +25837,15 @@ export const Authentication = $root.Authentication = (() => { */ ApiRequestByKAtoKAKey.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.ApiRequestByKAtoKAKey"; + return typeUrlPrefix + '/Authentication.ApiRequestByKAtoKAKey'; }; return ApiRequestByKAtoKAKey; })(); - Authentication.MemcacheRequest = (function() { - + Authentication.MemcacheRequest = (function () { /** * Properties of a MemcacheRequest. * @memberof Authentication @@ -24734,8 +25865,7 @@ export const Authentication = $root.Authentication = (() => { function MemcacheRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -24744,7 +25874,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.MemcacheRequest * @instance */ - MemcacheRequest.prototype.key = ""; + MemcacheRequest.prototype.key = ''; /** * MemcacheRequest userId. @@ -24776,12 +25906,11 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ MemcacheRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.key != null && Object.hasOwnProperty.call(message, "key")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.key); - if (message.userId != null && Object.hasOwnProperty.call(message, "userId")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.userId); + if (!writer) writer = $Writer.create(); + if (message.key != null && Object.hasOwnProperty.call(message, 'key')) + writer.uint32(/* id 1, wireType 2 =*/ 10).string(message.key); + if (message.userId != null && Object.hasOwnProperty.call(message, 'userId')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int32(message.userId); return writer; }; @@ -24810,23 +25939,23 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ MemcacheRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.MemcacheRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.MemcacheRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.key = reader.string(); break; } - case 2: { + case 2: { message.userId = reader.int32(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -24843,8 +25972,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ MemcacheRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -24857,14 +25985,11 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ MemcacheRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.key != null && message.hasOwnProperty("key")) - if (!$util.isString(message.key)) - return "key: string expected"; - if (message.userId != null && message.hasOwnProperty("userId")) - if (!$util.isInteger(message.userId)) - return "userId: integer expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.key != null && message.hasOwnProperty('key')) + if (!$util.isString(message.key)) return 'key: string expected'; + if (message.userId != null && message.hasOwnProperty('userId')) + if (!$util.isInteger(message.userId)) return 'userId: integer expected'; return null; }; @@ -24877,13 +26002,10 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.MemcacheRequest} MemcacheRequest */ MemcacheRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.MemcacheRequest) - return object; + if (object instanceof $root.Authentication.MemcacheRequest) return object; let message = new $root.Authentication.MemcacheRequest(); - if (object.key != null) - message.key = String(object.key); - if (object.userId != null) - message.userId = object.userId | 0; + if (object.key != null) message.key = String(object.key); + if (object.userId != null) message.userId = object.userId | 0; return message; }; @@ -24897,17 +26019,14 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ MemcacheRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - object.key = ""; + object.key = ''; object.userId = 0; } - if (message.key != null && message.hasOwnProperty("key")) - object.key = message.key; - if (message.userId != null && message.hasOwnProperty("userId")) - object.userId = message.userId; + if (message.key != null && message.hasOwnProperty('key')) object.key = message.key; + if (message.userId != null && message.hasOwnProperty('userId')) object.userId = message.userId; return object; }; @@ -24932,16 +26051,15 @@ export const Authentication = $root.Authentication = (() => { */ MemcacheRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.MemcacheRequest"; + return typeUrlPrefix + '/Authentication.MemcacheRequest'; }; return MemcacheRequest; })(); - Authentication.MemcacheResponse = (function() { - + Authentication.MemcacheResponse = (function () { /** * Properties of a MemcacheResponse. * @memberof Authentication @@ -24961,8 +26079,7 @@ export const Authentication = $root.Authentication = (() => { function MemcacheResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -24971,7 +26088,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.MemcacheResponse * @instance */ - MemcacheResponse.prototype.key = ""; + MemcacheResponse.prototype.key = ''; /** * MemcacheResponse value. @@ -24979,7 +26096,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.MemcacheResponse * @instance */ - MemcacheResponse.prototype.value = ""; + MemcacheResponse.prototype.value = ''; /** * Creates a new MemcacheResponse instance using the specified properties. @@ -25003,12 +26120,11 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ MemcacheResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.key != null && Object.hasOwnProperty.call(message, "key")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.key); - if (message.value != null && Object.hasOwnProperty.call(message, "value")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.value); + if (!writer) writer = $Writer.create(); + if (message.key != null && Object.hasOwnProperty.call(message, 'key')) + writer.uint32(/* id 1, wireType 2 =*/ 10).string(message.key); + if (message.value != null && Object.hasOwnProperty.call(message, 'value')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.value); return writer; }; @@ -25037,23 +26153,23 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ MemcacheResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.MemcacheResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.MemcacheResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.key = reader.string(); break; } - case 2: { + case 2: { message.value = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -25070,8 +26186,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ MemcacheResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -25084,14 +26199,11 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ MemcacheResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.key != null && message.hasOwnProperty("key")) - if (!$util.isString(message.key)) - return "key: string expected"; - if (message.value != null && message.hasOwnProperty("value")) - if (!$util.isString(message.value)) - return "value: string expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.key != null && message.hasOwnProperty('key')) + if (!$util.isString(message.key)) return 'key: string expected'; + if (message.value != null && message.hasOwnProperty('value')) + if (!$util.isString(message.value)) return 'value: string expected'; return null; }; @@ -25104,13 +26216,10 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.MemcacheResponse} MemcacheResponse */ MemcacheResponse.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.MemcacheResponse) - return object; + if (object instanceof $root.Authentication.MemcacheResponse) return object; let message = new $root.Authentication.MemcacheResponse(); - if (object.key != null) - message.key = String(object.key); - if (object.value != null) - message.value = String(object.value); + if (object.key != null) message.key = String(object.key); + if (object.value != null) message.value = String(object.value); return message; }; @@ -25124,17 +26233,14 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ MemcacheResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - object.key = ""; - object.value = ""; + object.key = ''; + object.value = ''; } - if (message.key != null && message.hasOwnProperty("key")) - object.key = message.key; - if (message.value != null && message.hasOwnProperty("value")) - object.value = message.value; + if (message.key != null && message.hasOwnProperty('key')) object.key = message.key; + if (message.value != null && message.hasOwnProperty('value')) object.value = message.value; return object; }; @@ -25159,16 +26265,15 @@ export const Authentication = $root.Authentication = (() => { */ MemcacheResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.MemcacheResponse"; + return typeUrlPrefix + '/Authentication.MemcacheResponse'; }; return MemcacheResponse; })(); - Authentication.MasterPasswordReentryRequest = (function() { - + Authentication.MasterPasswordReentryRequest = (function () { /** * Properties of a MasterPasswordReentryRequest. * @memberof Authentication @@ -25188,8 +26293,7 @@ export const Authentication = $root.Authentication = (() => { function MasterPasswordReentryRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -25198,7 +26302,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.MasterPasswordReentryRequest * @instance */ - MasterPasswordReentryRequest.prototype.pbkdf2Password = ""; + MasterPasswordReentryRequest.prototype.pbkdf2Password = ''; /** * MasterPasswordReentryRequest action. @@ -25230,12 +26334,11 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ MasterPasswordReentryRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.pbkdf2Password != null && Object.hasOwnProperty.call(message, "pbkdf2Password")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.pbkdf2Password); - if (message.action != null && Object.hasOwnProperty.call(message, "action")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.action); + if (!writer) writer = $Writer.create(); + if (message.pbkdf2Password != null && Object.hasOwnProperty.call(message, 'pbkdf2Password')) + writer.uint32(/* id 1, wireType 2 =*/ 10).string(message.pbkdf2Password); + if (message.action != null && Object.hasOwnProperty.call(message, 'action')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int32(message.action); return writer; }; @@ -25264,23 +26367,23 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ MasterPasswordReentryRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.MasterPasswordReentryRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.MasterPasswordReentryRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.pbkdf2Password = reader.string(); break; } - case 2: { + case 2: { message.action = reader.int32(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -25297,8 +26400,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ MasterPasswordReentryRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -25311,18 +26413,16 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ MasterPasswordReentryRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.pbkdf2Password != null && message.hasOwnProperty("pbkdf2Password")) - if (!$util.isString(message.pbkdf2Password)) - return "pbkdf2Password: string expected"; - if (message.action != null && message.hasOwnProperty("action")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.pbkdf2Password != null && message.hasOwnProperty('pbkdf2Password')) + if (!$util.isString(message.pbkdf2Password)) return 'pbkdf2Password: string expected'; + if (message.action != null && message.hasOwnProperty('action')) switch (message.action) { - default: - return "action: enum value expected"; - case 0: - case 1: - break; + default: + return 'action: enum value expected'; + case 0: + case 1: + break; } return null; }; @@ -25336,26 +26436,24 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.MasterPasswordReentryRequest} MasterPasswordReentryRequest */ MasterPasswordReentryRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.MasterPasswordReentryRequest) - return object; + if (object instanceof $root.Authentication.MasterPasswordReentryRequest) return object; let message = new $root.Authentication.MasterPasswordReentryRequest(); - if (object.pbkdf2Password != null) - message.pbkdf2Password = String(object.pbkdf2Password); + if (object.pbkdf2Password != null) message.pbkdf2Password = String(object.pbkdf2Password); switch (object.action) { - default: - if (typeof object.action === "number") { - message.action = object.action; + default: + if (typeof object.action === 'number') { + message.action = object.action; + break; + } + break; + case 'UNMASK': + case 0: + message.action = 0; + break; + case 'COPY': + case 1: + message.action = 1; break; - } - break; - case "UNMASK": - case 0: - message.action = 0; - break; - case "COPY": - case 1: - message.action = 1; - break; } return message; }; @@ -25370,17 +26468,21 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ MasterPasswordReentryRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - object.pbkdf2Password = ""; - object.action = options.enums === String ? "UNMASK" : 0; + object.pbkdf2Password = ''; + object.action = options.enums === String ? 'UNMASK' : 0; } - if (message.pbkdf2Password != null && message.hasOwnProperty("pbkdf2Password")) + if (message.pbkdf2Password != null && message.hasOwnProperty('pbkdf2Password')) object.pbkdf2Password = message.pbkdf2Password; - if (message.action != null && message.hasOwnProperty("action")) - object.action = options.enums === String ? $root.Authentication.MasterPasswordReentryActionType[message.action] === undefined ? message.action : $root.Authentication.MasterPasswordReentryActionType[message.action] : message.action; + if (message.action != null && message.hasOwnProperty('action')) + object.action = + options.enums === String + ? $root.Authentication.MasterPasswordReentryActionType[message.action] === undefined + ? message.action + : $root.Authentication.MasterPasswordReentryActionType[message.action] + : message.action; return object; }; @@ -25405,9 +26507,9 @@ export const Authentication = $root.Authentication = (() => { */ MasterPasswordReentryRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.MasterPasswordReentryRequest"; + return typeUrlPrefix + '/Authentication.MasterPasswordReentryRequest'; }; return MasterPasswordReentryRequest; @@ -25421,16 +26523,16 @@ export const Authentication = $root.Authentication = (() => { * @property {number} MP_SUCCESS=1 MP_SUCCESS value * @property {number} MP_FAILURE=2 MP_FAILURE value */ - Authentication.MasterPasswordReentryStatus = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "MP_UNKNOWN"] = 0; - values[valuesById[1] = "MP_SUCCESS"] = 1; - values[valuesById[2] = "MP_FAILURE"] = 2; + Authentication.MasterPasswordReentryStatus = (function () { + const valuesById = {}, + values = Object.create(valuesById); + values[(valuesById[0] = 'MP_UNKNOWN')] = 0; + values[(valuesById[1] = 'MP_SUCCESS')] = 1; + values[(valuesById[2] = 'MP_FAILURE')] = 2; return values; })(); - Authentication.MasterPasswordReentryResponse = (function() { - + Authentication.MasterPasswordReentryResponse = (function () { /** * Properties of a MasterPasswordReentryResponse. * @memberof Authentication @@ -25449,8 +26551,7 @@ export const Authentication = $root.Authentication = (() => { function MasterPasswordReentryResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -25483,10 +26584,9 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ MasterPasswordReentryResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.status != null && Object.hasOwnProperty.call(message, "status")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.status); + if (!writer) writer = $Writer.create(); + if (message.status != null && Object.hasOwnProperty.call(message, 'status')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int32(message.status); return writer; }; @@ -25515,19 +26615,19 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ MasterPasswordReentryResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.MasterPasswordReentryResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.MasterPasswordReentryResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.status = reader.int32(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -25544,8 +26644,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ MasterPasswordReentryResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -25558,16 +26657,15 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ MasterPasswordReentryResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.status != null && message.hasOwnProperty("status")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.status != null && message.hasOwnProperty('status')) switch (message.status) { - default: - return "status: enum value expected"; - case 0: - case 1: - case 2: - break; + default: + return 'status: enum value expected'; + case 0: + case 1: + case 2: + break; } return null; }; @@ -25581,28 +26679,27 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.MasterPasswordReentryResponse} MasterPasswordReentryResponse */ MasterPasswordReentryResponse.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.MasterPasswordReentryResponse) - return object; + if (object instanceof $root.Authentication.MasterPasswordReentryResponse) return object; let message = new $root.Authentication.MasterPasswordReentryResponse(); switch (object.status) { - default: - if (typeof object.status === "number") { - message.status = object.status; + default: + if (typeof object.status === 'number') { + message.status = object.status; + break; + } + break; + case 'MP_UNKNOWN': + case 0: + message.status = 0; + break; + case 'MP_SUCCESS': + case 1: + message.status = 1; + break; + case 'MP_FAILURE': + case 2: + message.status = 2; break; - } - break; - case "MP_UNKNOWN": - case 0: - message.status = 0; - break; - case "MP_SUCCESS": - case 1: - message.status = 1; - break; - case "MP_FAILURE": - case 2: - message.status = 2; - break; } return message; }; @@ -25617,13 +26714,16 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ MasterPasswordReentryResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.defaults) - object.status = options.enums === String ? "MP_UNKNOWN" : 0; - if (message.status != null && message.hasOwnProperty("status")) - object.status = options.enums === String ? $root.Authentication.MasterPasswordReentryStatus[message.status] === undefined ? message.status : $root.Authentication.MasterPasswordReentryStatus[message.status] : message.status; + if (options.defaults) object.status = options.enums === String ? 'MP_UNKNOWN' : 0; + if (message.status != null && message.hasOwnProperty('status')) + object.status = + options.enums === String + ? $root.Authentication.MasterPasswordReentryStatus[message.status] === undefined + ? message.status + : $root.Authentication.MasterPasswordReentryStatus[message.status] + : message.status; return object; }; @@ -25648,16 +26748,15 @@ export const Authentication = $root.Authentication = (() => { */ MasterPasswordReentryResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.MasterPasswordReentryResponse"; + return typeUrlPrefix + '/Authentication.MasterPasswordReentryResponse'; }; return MasterPasswordReentryResponse; })(); - Authentication.DeviceRegistrationRequest = (function() { - + Authentication.DeviceRegistrationRequest = (function () { /** * Properties of a DeviceRegistrationRequest. * @memberof Authentication @@ -25681,8 +26780,7 @@ export const Authentication = $root.Authentication = (() => { function DeviceRegistrationRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -25691,7 +26789,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.DeviceRegistrationRequest * @instance */ - DeviceRegistrationRequest.prototype.clientVersion = ""; + DeviceRegistrationRequest.prototype.clientVersion = ''; /** * DeviceRegistrationRequest deviceName. @@ -25699,7 +26797,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.DeviceRegistrationRequest * @instance */ - DeviceRegistrationRequest.prototype.deviceName = ""; + DeviceRegistrationRequest.prototype.deviceName = ''; /** * DeviceRegistrationRequest devicePublicKey. @@ -25715,7 +26813,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.DeviceRegistrationRequest * @instance */ - DeviceRegistrationRequest.prototype.devicePlatform = ""; + DeviceRegistrationRequest.prototype.devicePlatform = ''; /** * DeviceRegistrationRequest clientFormFactor. @@ -25731,7 +26829,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.DeviceRegistrationRequest * @instance */ - DeviceRegistrationRequest.prototype.username = ""; + DeviceRegistrationRequest.prototype.username = ''; /** * Creates a new DeviceRegistrationRequest instance using the specified properties. @@ -25755,20 +26853,19 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ DeviceRegistrationRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.clientVersion != null && Object.hasOwnProperty.call(message, "clientVersion")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.clientVersion); - if (message.deviceName != null && Object.hasOwnProperty.call(message, "deviceName")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.deviceName); - if (message.devicePublicKey != null && Object.hasOwnProperty.call(message, "devicePublicKey")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.devicePublicKey); - if (message.devicePlatform != null && Object.hasOwnProperty.call(message, "devicePlatform")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.devicePlatform); - if (message.clientFormFactor != null && Object.hasOwnProperty.call(message, "clientFormFactor")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.clientFormFactor); - if (message.username != null && Object.hasOwnProperty.call(message, "username")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.username); + if (!writer) writer = $Writer.create(); + if (message.clientVersion != null && Object.hasOwnProperty.call(message, 'clientVersion')) + writer.uint32(/* id 1, wireType 2 =*/ 10).string(message.clientVersion); + if (message.deviceName != null && Object.hasOwnProperty.call(message, 'deviceName')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.deviceName); + if (message.devicePublicKey != null && Object.hasOwnProperty.call(message, 'devicePublicKey')) + writer.uint32(/* id 3, wireType 2 =*/ 26).bytes(message.devicePublicKey); + if (message.devicePlatform != null && Object.hasOwnProperty.call(message, 'devicePlatform')) + writer.uint32(/* id 4, wireType 2 =*/ 34).string(message.devicePlatform); + if (message.clientFormFactor != null && Object.hasOwnProperty.call(message, 'clientFormFactor')) + writer.uint32(/* id 5, wireType 0 =*/ 40).int32(message.clientFormFactor); + if (message.username != null && Object.hasOwnProperty.call(message, 'username')) + writer.uint32(/* id 6, wireType 2 =*/ 50).string(message.username); return writer; }; @@ -25797,39 +26894,39 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ DeviceRegistrationRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.DeviceRegistrationRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.DeviceRegistrationRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.clientVersion = reader.string(); break; } - case 2: { + case 2: { message.deviceName = reader.string(); break; } - case 3: { + case 3: { message.devicePublicKey = reader.bytes(); break; } - case 4: { + case 4: { message.devicePlatform = reader.string(); break; } - case 5: { + case 5: { message.clientFormFactor = reader.int32(); break; } - case 6: { + case 6: { message.username = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -25846,8 +26943,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ DeviceRegistrationRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -25860,33 +26956,33 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ DeviceRegistrationRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.clientVersion != null && message.hasOwnProperty("clientVersion")) - if (!$util.isString(message.clientVersion)) - return "clientVersion: string expected"; - if (message.deviceName != null && message.hasOwnProperty("deviceName")) - if (!$util.isString(message.deviceName)) - return "deviceName: string expected"; - if (message.devicePublicKey != null && message.hasOwnProperty("devicePublicKey")) - if (!(message.devicePublicKey && typeof message.devicePublicKey.length === "number" || $util.isString(message.devicePublicKey))) - return "devicePublicKey: buffer expected"; - if (message.devicePlatform != null && message.hasOwnProperty("devicePlatform")) - if (!$util.isString(message.devicePlatform)) - return "devicePlatform: string expected"; - if (message.clientFormFactor != null && message.hasOwnProperty("clientFormFactor")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.clientVersion != null && message.hasOwnProperty('clientVersion')) + if (!$util.isString(message.clientVersion)) return 'clientVersion: string expected'; + if (message.deviceName != null && message.hasOwnProperty('deviceName')) + if (!$util.isString(message.deviceName)) return 'deviceName: string expected'; + if (message.devicePublicKey != null && message.hasOwnProperty('devicePublicKey')) + if ( + !( + (message.devicePublicKey && typeof message.devicePublicKey.length === 'number') || + $util.isString(message.devicePublicKey) + ) + ) + return 'devicePublicKey: buffer expected'; + if (message.devicePlatform != null && message.hasOwnProperty('devicePlatform')) + if (!$util.isString(message.devicePlatform)) return 'devicePlatform: string expected'; + if (message.clientFormFactor != null && message.hasOwnProperty('clientFormFactor')) switch (message.clientFormFactor) { - default: - return "clientFormFactor: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; + default: + return 'clientFormFactor: enum value expected'; + case 0: + case 1: + case 2: + case 3: + break; } - if (message.username != null && message.hasOwnProperty("username")) - if (!$util.isString(message.username)) - return "username: string expected"; + if (message.username != null && message.hasOwnProperty('username')) + if (!$util.isString(message.username)) return 'username: string expected'; return null; }; @@ -25899,46 +26995,44 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.DeviceRegistrationRequest} DeviceRegistrationRequest */ DeviceRegistrationRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.DeviceRegistrationRequest) - return object; + if (object instanceof $root.Authentication.DeviceRegistrationRequest) return object; let message = new $root.Authentication.DeviceRegistrationRequest(); - if (object.clientVersion != null) - message.clientVersion = String(object.clientVersion); - if (object.deviceName != null) - message.deviceName = String(object.deviceName); + if (object.clientVersion != null) message.clientVersion = String(object.clientVersion); + if (object.deviceName != null) message.deviceName = String(object.deviceName); if (object.devicePublicKey != null) - if (typeof object.devicePublicKey === "string") - $util.base64.decode(object.devicePublicKey, message.devicePublicKey = $util.newBuffer($util.base64.length(object.devicePublicKey)), 0); - else if (object.devicePublicKey.length >= 0) - message.devicePublicKey = object.devicePublicKey; - if (object.devicePlatform != null) - message.devicePlatform = String(object.devicePlatform); + if (typeof object.devicePublicKey === 'string') + $util.base64.decode( + object.devicePublicKey, + (message.devicePublicKey = $util.newBuffer($util.base64.length(object.devicePublicKey))), + 0 + ); + else if (object.devicePublicKey.length >= 0) message.devicePublicKey = object.devicePublicKey; + if (object.devicePlatform != null) message.devicePlatform = String(object.devicePlatform); switch (object.clientFormFactor) { - default: - if (typeof object.clientFormFactor === "number") { - message.clientFormFactor = object.clientFormFactor; + default: + if (typeof object.clientFormFactor === 'number') { + message.clientFormFactor = object.clientFormFactor; + break; + } + break; + case 'FF_EMPTY': + case 0: + message.clientFormFactor = 0; + break; + case 'FF_PHONE': + case 1: + message.clientFormFactor = 1; + break; + case 'FF_TABLET': + case 2: + message.clientFormFactor = 2; + break; + case 'FF_WATCH': + case 3: + message.clientFormFactor = 3; break; - } - break; - case "FF_EMPTY": - case 0: - message.clientFormFactor = 0; - break; - case "FF_PHONE": - case 1: - message.clientFormFactor = 1; - break; - case "FF_TABLET": - case 2: - message.clientFormFactor = 2; - break; - case "FF_WATCH": - case 3: - message.clientFormFactor = 3; - break; } - if (object.username != null) - message.username = String(object.username); + if (object.username != null) message.username = String(object.username); return message; }; @@ -25952,35 +27046,41 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ DeviceRegistrationRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - object.clientVersion = ""; - object.deviceName = ""; - if (options.bytes === String) - object.devicePublicKey = ""; + object.clientVersion = ''; + object.deviceName = ''; + if (options.bytes === String) object.devicePublicKey = ''; else { object.devicePublicKey = []; - if (options.bytes !== Array) - object.devicePublicKey = $util.newBuffer(object.devicePublicKey); + if (options.bytes !== Array) object.devicePublicKey = $util.newBuffer(object.devicePublicKey); } - object.devicePlatform = ""; - object.clientFormFactor = options.enums === String ? "FF_EMPTY" : 0; - object.username = ""; + object.devicePlatform = ''; + object.clientFormFactor = options.enums === String ? 'FF_EMPTY' : 0; + object.username = ''; } - if (message.clientVersion != null && message.hasOwnProperty("clientVersion")) + if (message.clientVersion != null && message.hasOwnProperty('clientVersion')) object.clientVersion = message.clientVersion; - if (message.deviceName != null && message.hasOwnProperty("deviceName")) + if (message.deviceName != null && message.hasOwnProperty('deviceName')) object.deviceName = message.deviceName; - if (message.devicePublicKey != null && message.hasOwnProperty("devicePublicKey")) - object.devicePublicKey = options.bytes === String ? $util.base64.encode(message.devicePublicKey, 0, message.devicePublicKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.devicePublicKey) : message.devicePublicKey; - if (message.devicePlatform != null && message.hasOwnProperty("devicePlatform")) + if (message.devicePublicKey != null && message.hasOwnProperty('devicePublicKey')) + object.devicePublicKey = + options.bytes === String + ? $util.base64.encode(message.devicePublicKey, 0, message.devicePublicKey.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.devicePublicKey) + : message.devicePublicKey; + if (message.devicePlatform != null && message.hasOwnProperty('devicePlatform')) object.devicePlatform = message.devicePlatform; - if (message.clientFormFactor != null && message.hasOwnProperty("clientFormFactor")) - object.clientFormFactor = options.enums === String ? $root.Authentication.ClientFormFactor[message.clientFormFactor] === undefined ? message.clientFormFactor : $root.Authentication.ClientFormFactor[message.clientFormFactor] : message.clientFormFactor; - if (message.username != null && message.hasOwnProperty("username")) - object.username = message.username; + if (message.clientFormFactor != null && message.hasOwnProperty('clientFormFactor')) + object.clientFormFactor = + options.enums === String + ? $root.Authentication.ClientFormFactor[message.clientFormFactor] === undefined + ? message.clientFormFactor + : $root.Authentication.ClientFormFactor[message.clientFormFactor] + : message.clientFormFactor; + if (message.username != null && message.hasOwnProperty('username')) object.username = message.username; return object; }; @@ -26005,16 +27105,15 @@ export const Authentication = $root.Authentication = (() => { */ DeviceRegistrationRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.DeviceRegistrationRequest"; + return typeUrlPrefix + '/Authentication.DeviceRegistrationRequest'; }; return DeviceRegistrationRequest; })(); - Authentication.DeviceVerificationRequest = (function() { - + Authentication.DeviceVerificationRequest = (function () { /** * Properties of a DeviceVerificationRequest. * @memberof Authentication @@ -26037,8 +27136,7 @@ export const Authentication = $root.Authentication = (() => { function DeviceVerificationRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -26055,7 +27153,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.DeviceVerificationRequest * @instance */ - DeviceVerificationRequest.prototype.username = ""; + DeviceVerificationRequest.prototype.username = ''; /** * DeviceVerificationRequest verificationChannel. @@ -26063,7 +27161,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.DeviceVerificationRequest * @instance */ - DeviceVerificationRequest.prototype.verificationChannel = ""; + DeviceVerificationRequest.prototype.verificationChannel = ''; /** * DeviceVerificationRequest messageSessionUid. @@ -26079,7 +27177,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.DeviceVerificationRequest * @instance */ - DeviceVerificationRequest.prototype.clientVersion = ""; + DeviceVerificationRequest.prototype.clientVersion = ''; /** * Creates a new DeviceVerificationRequest instance using the specified properties. @@ -26103,18 +27201,17 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ DeviceVerificationRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.encryptedDeviceToken != null && Object.hasOwnProperty.call(message, "encryptedDeviceToken")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.encryptedDeviceToken); - if (message.username != null && Object.hasOwnProperty.call(message, "username")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.username); - if (message.verificationChannel != null && Object.hasOwnProperty.call(message, "verificationChannel")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.verificationChannel); - if (message.messageSessionUid != null && Object.hasOwnProperty.call(message, "messageSessionUid")) - writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.messageSessionUid); - if (message.clientVersion != null && Object.hasOwnProperty.call(message, "clientVersion")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.clientVersion); + if (!writer) writer = $Writer.create(); + if (message.encryptedDeviceToken != null && Object.hasOwnProperty.call(message, 'encryptedDeviceToken')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.encryptedDeviceToken); + if (message.username != null && Object.hasOwnProperty.call(message, 'username')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.username); + if (message.verificationChannel != null && Object.hasOwnProperty.call(message, 'verificationChannel')) + writer.uint32(/* id 3, wireType 2 =*/ 26).string(message.verificationChannel); + if (message.messageSessionUid != null && Object.hasOwnProperty.call(message, 'messageSessionUid')) + writer.uint32(/* id 4, wireType 2 =*/ 34).bytes(message.messageSessionUid); + if (message.clientVersion != null && Object.hasOwnProperty.call(message, 'clientVersion')) + writer.uint32(/* id 5, wireType 2 =*/ 42).string(message.clientVersion); return writer; }; @@ -26143,35 +27240,35 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ DeviceVerificationRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.DeviceVerificationRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.DeviceVerificationRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.encryptedDeviceToken = reader.bytes(); break; } - case 2: { + case 2: { message.username = reader.string(); break; } - case 3: { + case 3: { message.verificationChannel = reader.string(); break; } - case 4: { + case 4: { message.messageSessionUid = reader.bytes(); break; } - case 5: { + case 5: { message.clientVersion = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -26188,8 +27285,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ DeviceVerificationRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -26202,23 +27298,29 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ DeviceVerificationRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.encryptedDeviceToken != null && message.hasOwnProperty("encryptedDeviceToken")) - if (!(message.encryptedDeviceToken && typeof message.encryptedDeviceToken.length === "number" || $util.isString(message.encryptedDeviceToken))) - return "encryptedDeviceToken: buffer expected"; - if (message.username != null && message.hasOwnProperty("username")) - if (!$util.isString(message.username)) - return "username: string expected"; - if (message.verificationChannel != null && message.hasOwnProperty("verificationChannel")) - if (!$util.isString(message.verificationChannel)) - return "verificationChannel: string expected"; - if (message.messageSessionUid != null && message.hasOwnProperty("messageSessionUid")) - if (!(message.messageSessionUid && typeof message.messageSessionUid.length === "number" || $util.isString(message.messageSessionUid))) - return "messageSessionUid: buffer expected"; - if (message.clientVersion != null && message.hasOwnProperty("clientVersion")) - if (!$util.isString(message.clientVersion)) - return "clientVersion: string expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.encryptedDeviceToken != null && message.hasOwnProperty('encryptedDeviceToken')) + if ( + !( + (message.encryptedDeviceToken && typeof message.encryptedDeviceToken.length === 'number') || + $util.isString(message.encryptedDeviceToken) + ) + ) + return 'encryptedDeviceToken: buffer expected'; + if (message.username != null && message.hasOwnProperty('username')) + if (!$util.isString(message.username)) return 'username: string expected'; + if (message.verificationChannel != null && message.hasOwnProperty('verificationChannel')) + if (!$util.isString(message.verificationChannel)) return 'verificationChannel: string expected'; + if (message.messageSessionUid != null && message.hasOwnProperty('messageSessionUid')) + if ( + !( + (message.messageSessionUid && typeof message.messageSessionUid.length === 'number') || + $util.isString(message.messageSessionUid) + ) + ) + return 'messageSessionUid: buffer expected'; + if (message.clientVersion != null && message.hasOwnProperty('clientVersion')) + if (!$util.isString(message.clientVersion)) return 'clientVersion: string expected'; return null; }; @@ -26231,25 +27333,30 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.DeviceVerificationRequest} DeviceVerificationRequest */ DeviceVerificationRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.DeviceVerificationRequest) - return object; + if (object instanceof $root.Authentication.DeviceVerificationRequest) return object; let message = new $root.Authentication.DeviceVerificationRequest(); if (object.encryptedDeviceToken != null) - if (typeof object.encryptedDeviceToken === "string") - $util.base64.decode(object.encryptedDeviceToken, message.encryptedDeviceToken = $util.newBuffer($util.base64.length(object.encryptedDeviceToken)), 0); + if (typeof object.encryptedDeviceToken === 'string') + $util.base64.decode( + object.encryptedDeviceToken, + (message.encryptedDeviceToken = $util.newBuffer( + $util.base64.length(object.encryptedDeviceToken) + )), + 0 + ); else if (object.encryptedDeviceToken.length >= 0) message.encryptedDeviceToken = object.encryptedDeviceToken; - if (object.username != null) - message.username = String(object.username); - if (object.verificationChannel != null) - message.verificationChannel = String(object.verificationChannel); + if (object.username != null) message.username = String(object.username); + if (object.verificationChannel != null) message.verificationChannel = String(object.verificationChannel); if (object.messageSessionUid != null) - if (typeof object.messageSessionUid === "string") - $util.base64.decode(object.messageSessionUid, message.messageSessionUid = $util.newBuffer($util.base64.length(object.messageSessionUid)), 0); - else if (object.messageSessionUid.length >= 0) - message.messageSessionUid = object.messageSessionUid; - if (object.clientVersion != null) - message.clientVersion = String(object.clientVersion); + if (typeof object.messageSessionUid === 'string') + $util.base64.decode( + object.messageSessionUid, + (message.messageSessionUid = $util.newBuffer($util.base64.length(object.messageSessionUid))), + 0 + ); + else if (object.messageSessionUid.length >= 0) message.messageSessionUid = object.messageSessionUid; + if (object.clientVersion != null) message.clientVersion = String(object.clientVersion); return message; }; @@ -26263,37 +27370,42 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ DeviceVerificationRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.encryptedDeviceToken = ""; + if (options.bytes === String) object.encryptedDeviceToken = ''; else { object.encryptedDeviceToken = []; if (options.bytes !== Array) object.encryptedDeviceToken = $util.newBuffer(object.encryptedDeviceToken); } - object.username = ""; - object.verificationChannel = ""; - if (options.bytes === String) - object.messageSessionUid = ""; + object.username = ''; + object.verificationChannel = ''; + if (options.bytes === String) object.messageSessionUid = ''; else { object.messageSessionUid = []; - if (options.bytes !== Array) - object.messageSessionUid = $util.newBuffer(object.messageSessionUid); - } - object.clientVersion = ""; - } - if (message.encryptedDeviceToken != null && message.hasOwnProperty("encryptedDeviceToken")) - object.encryptedDeviceToken = options.bytes === String ? $util.base64.encode(message.encryptedDeviceToken, 0, message.encryptedDeviceToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedDeviceToken) : message.encryptedDeviceToken; - if (message.username != null && message.hasOwnProperty("username")) - object.username = message.username; - if (message.verificationChannel != null && message.hasOwnProperty("verificationChannel")) + if (options.bytes !== Array) object.messageSessionUid = $util.newBuffer(object.messageSessionUid); + } + object.clientVersion = ''; + } + if (message.encryptedDeviceToken != null && message.hasOwnProperty('encryptedDeviceToken')) + object.encryptedDeviceToken = + options.bytes === String + ? $util.base64.encode(message.encryptedDeviceToken, 0, message.encryptedDeviceToken.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.encryptedDeviceToken) + : message.encryptedDeviceToken; + if (message.username != null && message.hasOwnProperty('username')) object.username = message.username; + if (message.verificationChannel != null && message.hasOwnProperty('verificationChannel')) object.verificationChannel = message.verificationChannel; - if (message.messageSessionUid != null && message.hasOwnProperty("messageSessionUid")) - object.messageSessionUid = options.bytes === String ? $util.base64.encode(message.messageSessionUid, 0, message.messageSessionUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.messageSessionUid) : message.messageSessionUid; - if (message.clientVersion != null && message.hasOwnProperty("clientVersion")) + if (message.messageSessionUid != null && message.hasOwnProperty('messageSessionUid')) + object.messageSessionUid = + options.bytes === String + ? $util.base64.encode(message.messageSessionUid, 0, message.messageSessionUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.messageSessionUid) + : message.messageSessionUid; + if (message.clientVersion != null && message.hasOwnProperty('clientVersion')) object.clientVersion = message.clientVersion; return object; }; @@ -26319,16 +27431,15 @@ export const Authentication = $root.Authentication = (() => { */ DeviceVerificationRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.DeviceVerificationRequest"; + return typeUrlPrefix + '/Authentication.DeviceVerificationRequest'; }; return DeviceVerificationRequest; })(); - Authentication.DeviceVerificationResponse = (function() { - + Authentication.DeviceVerificationResponse = (function () { /** * Properties of a DeviceVerificationResponse. * @memberof Authentication @@ -26351,8 +27462,7 @@ export const Authentication = $root.Authentication = (() => { function DeviceVerificationResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -26369,7 +27479,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.DeviceVerificationResponse * @instance */ - DeviceVerificationResponse.prototype.username = ""; + DeviceVerificationResponse.prototype.username = ''; /** * DeviceVerificationResponse messageSessionUid. @@ -26385,7 +27495,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.DeviceVerificationResponse * @instance */ - DeviceVerificationResponse.prototype.clientVersion = ""; + DeviceVerificationResponse.prototype.clientVersion = ''; /** * DeviceVerificationResponse deviceStatus. @@ -26417,18 +27527,17 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ DeviceVerificationResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.encryptedDeviceToken != null && Object.hasOwnProperty.call(message, "encryptedDeviceToken")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.encryptedDeviceToken); - if (message.username != null && Object.hasOwnProperty.call(message, "username")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.username); - if (message.messageSessionUid != null && Object.hasOwnProperty.call(message, "messageSessionUid")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.messageSessionUid); - if (message.clientVersion != null && Object.hasOwnProperty.call(message, "clientVersion")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.clientVersion); - if (message.deviceStatus != null && Object.hasOwnProperty.call(message, "deviceStatus")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.deviceStatus); + if (!writer) writer = $Writer.create(); + if (message.encryptedDeviceToken != null && Object.hasOwnProperty.call(message, 'encryptedDeviceToken')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.encryptedDeviceToken); + if (message.username != null && Object.hasOwnProperty.call(message, 'username')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.username); + if (message.messageSessionUid != null && Object.hasOwnProperty.call(message, 'messageSessionUid')) + writer.uint32(/* id 3, wireType 2 =*/ 26).bytes(message.messageSessionUid); + if (message.clientVersion != null && Object.hasOwnProperty.call(message, 'clientVersion')) + writer.uint32(/* id 4, wireType 2 =*/ 34).string(message.clientVersion); + if (message.deviceStatus != null && Object.hasOwnProperty.call(message, 'deviceStatus')) + writer.uint32(/* id 5, wireType 0 =*/ 40).int32(message.deviceStatus); return writer; }; @@ -26457,35 +27566,35 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ DeviceVerificationResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.DeviceVerificationResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.DeviceVerificationResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.encryptedDeviceToken = reader.bytes(); break; } - case 2: { + case 2: { message.username = reader.string(); break; } - case 3: { + case 3: { message.messageSessionUid = reader.bytes(); break; } - case 4: { + case 4: { message.clientVersion = reader.string(); break; } - case 5: { + case 5: { message.deviceStatus = reader.int32(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -26502,8 +27611,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ DeviceVerificationResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -26516,29 +27624,36 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ DeviceVerificationResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.encryptedDeviceToken != null && message.hasOwnProperty("encryptedDeviceToken")) - if (!(message.encryptedDeviceToken && typeof message.encryptedDeviceToken.length === "number" || $util.isString(message.encryptedDeviceToken))) - return "encryptedDeviceToken: buffer expected"; - if (message.username != null && message.hasOwnProperty("username")) - if (!$util.isString(message.username)) - return "username: string expected"; - if (message.messageSessionUid != null && message.hasOwnProperty("messageSessionUid")) - if (!(message.messageSessionUid && typeof message.messageSessionUid.length === "number" || $util.isString(message.messageSessionUid))) - return "messageSessionUid: buffer expected"; - if (message.clientVersion != null && message.hasOwnProperty("clientVersion")) - if (!$util.isString(message.clientVersion)) - return "clientVersion: string expected"; - if (message.deviceStatus != null && message.hasOwnProperty("deviceStatus")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.encryptedDeviceToken != null && message.hasOwnProperty('encryptedDeviceToken')) + if ( + !( + (message.encryptedDeviceToken && typeof message.encryptedDeviceToken.length === 'number') || + $util.isString(message.encryptedDeviceToken) + ) + ) + return 'encryptedDeviceToken: buffer expected'; + if (message.username != null && message.hasOwnProperty('username')) + if (!$util.isString(message.username)) return 'username: string expected'; + if (message.messageSessionUid != null && message.hasOwnProperty('messageSessionUid')) + if ( + !( + (message.messageSessionUid && typeof message.messageSessionUid.length === 'number') || + $util.isString(message.messageSessionUid) + ) + ) + return 'messageSessionUid: buffer expected'; + if (message.clientVersion != null && message.hasOwnProperty('clientVersion')) + if (!$util.isString(message.clientVersion)) return 'clientVersion: string expected'; + if (message.deviceStatus != null && message.hasOwnProperty('deviceStatus')) switch (message.deviceStatus) { - default: - return "deviceStatus: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; + default: + return 'deviceStatus: enum value expected'; + case 0: + case 1: + case 2: + case 3: + break; } return null; }; @@ -26552,46 +27667,52 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.DeviceVerificationResponse} DeviceVerificationResponse */ DeviceVerificationResponse.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.DeviceVerificationResponse) - return object; + if (object instanceof $root.Authentication.DeviceVerificationResponse) return object; let message = new $root.Authentication.DeviceVerificationResponse(); if (object.encryptedDeviceToken != null) - if (typeof object.encryptedDeviceToken === "string") - $util.base64.decode(object.encryptedDeviceToken, message.encryptedDeviceToken = $util.newBuffer($util.base64.length(object.encryptedDeviceToken)), 0); + if (typeof object.encryptedDeviceToken === 'string') + $util.base64.decode( + object.encryptedDeviceToken, + (message.encryptedDeviceToken = $util.newBuffer( + $util.base64.length(object.encryptedDeviceToken) + )), + 0 + ); else if (object.encryptedDeviceToken.length >= 0) message.encryptedDeviceToken = object.encryptedDeviceToken; - if (object.username != null) - message.username = String(object.username); + if (object.username != null) message.username = String(object.username); if (object.messageSessionUid != null) - if (typeof object.messageSessionUid === "string") - $util.base64.decode(object.messageSessionUid, message.messageSessionUid = $util.newBuffer($util.base64.length(object.messageSessionUid)), 0); - else if (object.messageSessionUid.length >= 0) - message.messageSessionUid = object.messageSessionUid; - if (object.clientVersion != null) - message.clientVersion = String(object.clientVersion); + if (typeof object.messageSessionUid === 'string') + $util.base64.decode( + object.messageSessionUid, + (message.messageSessionUid = $util.newBuffer($util.base64.length(object.messageSessionUid))), + 0 + ); + else if (object.messageSessionUid.length >= 0) message.messageSessionUid = object.messageSessionUid; + if (object.clientVersion != null) message.clientVersion = String(object.clientVersion); switch (object.deviceStatus) { - default: - if (typeof object.deviceStatus === "number") { - message.deviceStatus = object.deviceStatus; + default: + if (typeof object.deviceStatus === 'number') { + message.deviceStatus = object.deviceStatus; + break; + } + break; + case 'DEVICE_NEEDS_APPROVAL': + case 0: + message.deviceStatus = 0; + break; + case 'DEVICE_OK': + case 1: + message.deviceStatus = 1; + break; + case 'DEVICE_DISABLED_BY_USER': + case 2: + message.deviceStatus = 2; + break; + case 'DEVICE_LOCKED_BY_ADMIN': + case 3: + message.deviceStatus = 3; break; - } - break; - case "DEVICE_NEEDS_APPROVAL": - case 0: - message.deviceStatus = 0; - break; - case "DEVICE_OK": - case 1: - message.deviceStatus = 1; - break; - case "DEVICE_DISABLED_BY_USER": - case 2: - message.deviceStatus = 2; - break; - case "DEVICE_LOCKED_BY_ADMIN": - case 3: - message.deviceStatus = 3; - break; } return message; }; @@ -26606,38 +27727,48 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ DeviceVerificationResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.encryptedDeviceToken = ""; + if (options.bytes === String) object.encryptedDeviceToken = ''; else { object.encryptedDeviceToken = []; if (options.bytes !== Array) object.encryptedDeviceToken = $util.newBuffer(object.encryptedDeviceToken); } - object.username = ""; - if (options.bytes === String) - object.messageSessionUid = ""; + object.username = ''; + if (options.bytes === String) object.messageSessionUid = ''; else { object.messageSessionUid = []; - if (options.bytes !== Array) - object.messageSessionUid = $util.newBuffer(object.messageSessionUid); - } - object.clientVersion = ""; - object.deviceStatus = options.enums === String ? "DEVICE_NEEDS_APPROVAL" : 0; - } - if (message.encryptedDeviceToken != null && message.hasOwnProperty("encryptedDeviceToken")) - object.encryptedDeviceToken = options.bytes === String ? $util.base64.encode(message.encryptedDeviceToken, 0, message.encryptedDeviceToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedDeviceToken) : message.encryptedDeviceToken; - if (message.username != null && message.hasOwnProperty("username")) - object.username = message.username; - if (message.messageSessionUid != null && message.hasOwnProperty("messageSessionUid")) - object.messageSessionUid = options.bytes === String ? $util.base64.encode(message.messageSessionUid, 0, message.messageSessionUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.messageSessionUid) : message.messageSessionUid; - if (message.clientVersion != null && message.hasOwnProperty("clientVersion")) + if (options.bytes !== Array) object.messageSessionUid = $util.newBuffer(object.messageSessionUid); + } + object.clientVersion = ''; + object.deviceStatus = options.enums === String ? 'DEVICE_NEEDS_APPROVAL' : 0; + } + if (message.encryptedDeviceToken != null && message.hasOwnProperty('encryptedDeviceToken')) + object.encryptedDeviceToken = + options.bytes === String + ? $util.base64.encode(message.encryptedDeviceToken, 0, message.encryptedDeviceToken.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.encryptedDeviceToken) + : message.encryptedDeviceToken; + if (message.username != null && message.hasOwnProperty('username')) object.username = message.username; + if (message.messageSessionUid != null && message.hasOwnProperty('messageSessionUid')) + object.messageSessionUid = + options.bytes === String + ? $util.base64.encode(message.messageSessionUid, 0, message.messageSessionUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.messageSessionUid) + : message.messageSessionUid; + if (message.clientVersion != null && message.hasOwnProperty('clientVersion')) object.clientVersion = message.clientVersion; - if (message.deviceStatus != null && message.hasOwnProperty("deviceStatus")) - object.deviceStatus = options.enums === String ? $root.Authentication.DeviceStatus[message.deviceStatus] === undefined ? message.deviceStatus : $root.Authentication.DeviceStatus[message.deviceStatus] : message.deviceStatus; + if (message.deviceStatus != null && message.hasOwnProperty('deviceStatus')) + object.deviceStatus = + options.enums === String + ? $root.Authentication.DeviceStatus[message.deviceStatus] === undefined + ? message.deviceStatus + : $root.Authentication.DeviceStatus[message.deviceStatus] + : message.deviceStatus; return object; }; @@ -26662,16 +27793,15 @@ export const Authentication = $root.Authentication = (() => { */ DeviceVerificationResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.DeviceVerificationResponse"; + return typeUrlPrefix + '/Authentication.DeviceVerificationResponse'; }; return DeviceVerificationResponse; })(); - Authentication.DeviceApprovalRequest = (function() { - + Authentication.DeviceApprovalRequest = (function () { /** * Properties of a DeviceApprovalRequest. * @memberof Authentication @@ -26697,8 +27827,7 @@ export const Authentication = $root.Authentication = (() => { function DeviceApprovalRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -26707,7 +27836,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.DeviceApprovalRequest * @instance */ - DeviceApprovalRequest.prototype.email = ""; + DeviceApprovalRequest.prototype.email = ''; /** * DeviceApprovalRequest twoFactorChannel. @@ -26715,7 +27844,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.DeviceApprovalRequest * @instance */ - DeviceApprovalRequest.prototype.twoFactorChannel = ""; + DeviceApprovalRequest.prototype.twoFactorChannel = ''; /** * DeviceApprovalRequest clientVersion. @@ -26723,7 +27852,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.DeviceApprovalRequest * @instance */ - DeviceApprovalRequest.prototype.clientVersion = ""; + DeviceApprovalRequest.prototype.clientVersion = ''; /** * DeviceApprovalRequest locale. @@ -26731,7 +27860,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.DeviceApprovalRequest * @instance */ - DeviceApprovalRequest.prototype.locale = ""; + DeviceApprovalRequest.prototype.locale = ''; /** * DeviceApprovalRequest encryptedDeviceToken. @@ -26747,7 +27876,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.DeviceApprovalRequest * @instance */ - DeviceApprovalRequest.prototype.totpCode = ""; + DeviceApprovalRequest.prototype.totpCode = ''; /** * DeviceApprovalRequest deviceIp. @@ -26755,7 +27884,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.DeviceApprovalRequest * @instance */ - DeviceApprovalRequest.prototype.deviceIp = ""; + DeviceApprovalRequest.prototype.deviceIp = ''; /** * DeviceApprovalRequest deviceTokenExpireDays. @@ -26763,7 +27892,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.DeviceApprovalRequest * @instance */ - DeviceApprovalRequest.prototype.deviceTokenExpireDays = ""; + DeviceApprovalRequest.prototype.deviceTokenExpireDays = ''; /** * Creates a new DeviceApprovalRequest instance using the specified properties. @@ -26787,24 +27916,23 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ DeviceApprovalRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.email != null && Object.hasOwnProperty.call(message, "email")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.email); - if (message.twoFactorChannel != null && Object.hasOwnProperty.call(message, "twoFactorChannel")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.twoFactorChannel); - if (message.clientVersion != null && Object.hasOwnProperty.call(message, "clientVersion")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.clientVersion); - if (message.locale != null && Object.hasOwnProperty.call(message, "locale")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.locale); - if (message.encryptedDeviceToken != null && Object.hasOwnProperty.call(message, "encryptedDeviceToken")) - writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.encryptedDeviceToken); - if (message.totpCode != null && Object.hasOwnProperty.call(message, "totpCode")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.totpCode); - if (message.deviceIp != null && Object.hasOwnProperty.call(message, "deviceIp")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.deviceIp); - if (message.deviceTokenExpireDays != null && Object.hasOwnProperty.call(message, "deviceTokenExpireDays")) - writer.uint32(/* id 8, wireType 2 =*/66).string(message.deviceTokenExpireDays); + if (!writer) writer = $Writer.create(); + if (message.email != null && Object.hasOwnProperty.call(message, 'email')) + writer.uint32(/* id 1, wireType 2 =*/ 10).string(message.email); + if (message.twoFactorChannel != null && Object.hasOwnProperty.call(message, 'twoFactorChannel')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.twoFactorChannel); + if (message.clientVersion != null && Object.hasOwnProperty.call(message, 'clientVersion')) + writer.uint32(/* id 3, wireType 2 =*/ 26).string(message.clientVersion); + if (message.locale != null && Object.hasOwnProperty.call(message, 'locale')) + writer.uint32(/* id 4, wireType 2 =*/ 34).string(message.locale); + if (message.encryptedDeviceToken != null && Object.hasOwnProperty.call(message, 'encryptedDeviceToken')) + writer.uint32(/* id 5, wireType 2 =*/ 42).bytes(message.encryptedDeviceToken); + if (message.totpCode != null && Object.hasOwnProperty.call(message, 'totpCode')) + writer.uint32(/* id 6, wireType 2 =*/ 50).string(message.totpCode); + if (message.deviceIp != null && Object.hasOwnProperty.call(message, 'deviceIp')) + writer.uint32(/* id 7, wireType 2 =*/ 58).string(message.deviceIp); + if (message.deviceTokenExpireDays != null && Object.hasOwnProperty.call(message, 'deviceTokenExpireDays')) + writer.uint32(/* id 8, wireType 2 =*/ 66).string(message.deviceTokenExpireDays); return writer; }; @@ -26833,47 +27961,47 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ DeviceApprovalRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.DeviceApprovalRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.DeviceApprovalRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.email = reader.string(); break; } - case 2: { + case 2: { message.twoFactorChannel = reader.string(); break; } - case 3: { + case 3: { message.clientVersion = reader.string(); break; } - case 4: { + case 4: { message.locale = reader.string(); break; } - case 5: { + case 5: { message.encryptedDeviceToken = reader.bytes(); break; } - case 6: { + case 6: { message.totpCode = reader.string(); break; } - case 7: { + case 7: { message.deviceIp = reader.string(); break; } - case 8: { + case 8: { message.deviceTokenExpireDays = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -26890,8 +28018,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ DeviceApprovalRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -26904,32 +28031,29 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ DeviceApprovalRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.email != null && message.hasOwnProperty("email")) - if (!$util.isString(message.email)) - return "email: string expected"; - if (message.twoFactorChannel != null && message.hasOwnProperty("twoFactorChannel")) - if (!$util.isString(message.twoFactorChannel)) - return "twoFactorChannel: string expected"; - if (message.clientVersion != null && message.hasOwnProperty("clientVersion")) - if (!$util.isString(message.clientVersion)) - return "clientVersion: string expected"; - if (message.locale != null && message.hasOwnProperty("locale")) - if (!$util.isString(message.locale)) - return "locale: string expected"; - if (message.encryptedDeviceToken != null && message.hasOwnProperty("encryptedDeviceToken")) - if (!(message.encryptedDeviceToken && typeof message.encryptedDeviceToken.length === "number" || $util.isString(message.encryptedDeviceToken))) - return "encryptedDeviceToken: buffer expected"; - if (message.totpCode != null && message.hasOwnProperty("totpCode")) - if (!$util.isString(message.totpCode)) - return "totpCode: string expected"; - if (message.deviceIp != null && message.hasOwnProperty("deviceIp")) - if (!$util.isString(message.deviceIp)) - return "deviceIp: string expected"; - if (message.deviceTokenExpireDays != null && message.hasOwnProperty("deviceTokenExpireDays")) - if (!$util.isString(message.deviceTokenExpireDays)) - return "deviceTokenExpireDays: string expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.email != null && message.hasOwnProperty('email')) + if (!$util.isString(message.email)) return 'email: string expected'; + if (message.twoFactorChannel != null && message.hasOwnProperty('twoFactorChannel')) + if (!$util.isString(message.twoFactorChannel)) return 'twoFactorChannel: string expected'; + if (message.clientVersion != null && message.hasOwnProperty('clientVersion')) + if (!$util.isString(message.clientVersion)) return 'clientVersion: string expected'; + if (message.locale != null && message.hasOwnProperty('locale')) + if (!$util.isString(message.locale)) return 'locale: string expected'; + if (message.encryptedDeviceToken != null && message.hasOwnProperty('encryptedDeviceToken')) + if ( + !( + (message.encryptedDeviceToken && typeof message.encryptedDeviceToken.length === 'number') || + $util.isString(message.encryptedDeviceToken) + ) + ) + return 'encryptedDeviceToken: buffer expected'; + if (message.totpCode != null && message.hasOwnProperty('totpCode')) + if (!$util.isString(message.totpCode)) return 'totpCode: string expected'; + if (message.deviceIp != null && message.hasOwnProperty('deviceIp')) + if (!$util.isString(message.deviceIp)) return 'deviceIp: string expected'; + if (message.deviceTokenExpireDays != null && message.hasOwnProperty('deviceTokenExpireDays')) + if (!$util.isString(message.deviceTokenExpireDays)) return 'deviceTokenExpireDays: string expected'; return null; }; @@ -26942,26 +28066,25 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.DeviceApprovalRequest} DeviceApprovalRequest */ DeviceApprovalRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.DeviceApprovalRequest) - return object; + if (object instanceof $root.Authentication.DeviceApprovalRequest) return object; let message = new $root.Authentication.DeviceApprovalRequest(); - if (object.email != null) - message.email = String(object.email); - if (object.twoFactorChannel != null) - message.twoFactorChannel = String(object.twoFactorChannel); - if (object.clientVersion != null) - message.clientVersion = String(object.clientVersion); - if (object.locale != null) - message.locale = String(object.locale); + if (object.email != null) message.email = String(object.email); + if (object.twoFactorChannel != null) message.twoFactorChannel = String(object.twoFactorChannel); + if (object.clientVersion != null) message.clientVersion = String(object.clientVersion); + if (object.locale != null) message.locale = String(object.locale); if (object.encryptedDeviceToken != null) - if (typeof object.encryptedDeviceToken === "string") - $util.base64.decode(object.encryptedDeviceToken, message.encryptedDeviceToken = $util.newBuffer($util.base64.length(object.encryptedDeviceToken)), 0); + if (typeof object.encryptedDeviceToken === 'string') + $util.base64.decode( + object.encryptedDeviceToken, + (message.encryptedDeviceToken = $util.newBuffer( + $util.base64.length(object.encryptedDeviceToken) + )), + 0 + ); else if (object.encryptedDeviceToken.length >= 0) message.encryptedDeviceToken = object.encryptedDeviceToken; - if (object.totpCode != null) - message.totpCode = String(object.totpCode); - if (object.deviceIp != null) - message.deviceIp = String(object.deviceIp); + if (object.totpCode != null) message.totpCode = String(object.totpCode); + if (object.deviceIp != null) message.deviceIp = String(object.deviceIp); if (object.deviceTokenExpireDays != null) message.deviceTokenExpireDays = String(object.deviceTokenExpireDays); return message; @@ -26977,40 +28100,39 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ DeviceApprovalRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - object.email = ""; - object.twoFactorChannel = ""; - object.clientVersion = ""; - object.locale = ""; - if (options.bytes === String) - object.encryptedDeviceToken = ""; + object.email = ''; + object.twoFactorChannel = ''; + object.clientVersion = ''; + object.locale = ''; + if (options.bytes === String) object.encryptedDeviceToken = ''; else { object.encryptedDeviceToken = []; if (options.bytes !== Array) object.encryptedDeviceToken = $util.newBuffer(object.encryptedDeviceToken); } - object.totpCode = ""; - object.deviceIp = ""; - object.deviceTokenExpireDays = ""; + object.totpCode = ''; + object.deviceIp = ''; + object.deviceTokenExpireDays = ''; } - if (message.email != null && message.hasOwnProperty("email")) - object.email = message.email; - if (message.twoFactorChannel != null && message.hasOwnProperty("twoFactorChannel")) + if (message.email != null && message.hasOwnProperty('email')) object.email = message.email; + if (message.twoFactorChannel != null && message.hasOwnProperty('twoFactorChannel')) object.twoFactorChannel = message.twoFactorChannel; - if (message.clientVersion != null && message.hasOwnProperty("clientVersion")) + if (message.clientVersion != null && message.hasOwnProperty('clientVersion')) object.clientVersion = message.clientVersion; - if (message.locale != null && message.hasOwnProperty("locale")) - object.locale = message.locale; - if (message.encryptedDeviceToken != null && message.hasOwnProperty("encryptedDeviceToken")) - object.encryptedDeviceToken = options.bytes === String ? $util.base64.encode(message.encryptedDeviceToken, 0, message.encryptedDeviceToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedDeviceToken) : message.encryptedDeviceToken; - if (message.totpCode != null && message.hasOwnProperty("totpCode")) - object.totpCode = message.totpCode; - if (message.deviceIp != null && message.hasOwnProperty("deviceIp")) - object.deviceIp = message.deviceIp; - if (message.deviceTokenExpireDays != null && message.hasOwnProperty("deviceTokenExpireDays")) + if (message.locale != null && message.hasOwnProperty('locale')) object.locale = message.locale; + if (message.encryptedDeviceToken != null && message.hasOwnProperty('encryptedDeviceToken')) + object.encryptedDeviceToken = + options.bytes === String + ? $util.base64.encode(message.encryptedDeviceToken, 0, message.encryptedDeviceToken.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.encryptedDeviceToken) + : message.encryptedDeviceToken; + if (message.totpCode != null && message.hasOwnProperty('totpCode')) object.totpCode = message.totpCode; + if (message.deviceIp != null && message.hasOwnProperty('deviceIp')) object.deviceIp = message.deviceIp; + if (message.deviceTokenExpireDays != null && message.hasOwnProperty('deviceTokenExpireDays')) object.deviceTokenExpireDays = message.deviceTokenExpireDays; return object; }; @@ -27036,16 +28158,15 @@ export const Authentication = $root.Authentication = (() => { */ DeviceApprovalRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.DeviceApprovalRequest"; + return typeUrlPrefix + '/Authentication.DeviceApprovalRequest'; }; return DeviceApprovalRequest; })(); - Authentication.DeviceApprovalResponse = (function() { - + Authentication.DeviceApprovalResponse = (function () { /** * Properties of a DeviceApprovalResponse. * @memberof Authentication @@ -27064,8 +28185,7 @@ export const Authentication = $root.Authentication = (() => { function DeviceApprovalResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -27098,10 +28218,12 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ DeviceApprovalResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.encryptedTwoFactorToken != null && Object.hasOwnProperty.call(message, "encryptedTwoFactorToken")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.encryptedTwoFactorToken); + if (!writer) writer = $Writer.create(); + if ( + message.encryptedTwoFactorToken != null && + Object.hasOwnProperty.call(message, 'encryptedTwoFactorToken') + ) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.encryptedTwoFactorToken); return writer; }; @@ -27130,19 +28252,19 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ DeviceApprovalResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.DeviceApprovalResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.DeviceApprovalResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.encryptedTwoFactorToken = reader.bytes(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -27159,8 +28281,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ DeviceApprovalResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -27173,11 +28294,16 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ DeviceApprovalResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.encryptedTwoFactorToken != null && message.hasOwnProperty("encryptedTwoFactorToken")) - if (!(message.encryptedTwoFactorToken && typeof message.encryptedTwoFactorToken.length === "number" || $util.isString(message.encryptedTwoFactorToken))) - return "encryptedTwoFactorToken: buffer expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.encryptedTwoFactorToken != null && message.hasOwnProperty('encryptedTwoFactorToken')) + if ( + !( + (message.encryptedTwoFactorToken && + typeof message.encryptedTwoFactorToken.length === 'number') || + $util.isString(message.encryptedTwoFactorToken) + ) + ) + return 'encryptedTwoFactorToken: buffer expected'; return null; }; @@ -27190,12 +28316,17 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.DeviceApprovalResponse} DeviceApprovalResponse */ DeviceApprovalResponse.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.DeviceApprovalResponse) - return object; + if (object instanceof $root.Authentication.DeviceApprovalResponse) return object; let message = new $root.Authentication.DeviceApprovalResponse(); if (object.encryptedTwoFactorToken != null) - if (typeof object.encryptedTwoFactorToken === "string") - $util.base64.decode(object.encryptedTwoFactorToken, message.encryptedTwoFactorToken = $util.newBuffer($util.base64.length(object.encryptedTwoFactorToken)), 0); + if (typeof object.encryptedTwoFactorToken === 'string') + $util.base64.decode( + object.encryptedTwoFactorToken, + (message.encryptedTwoFactorToken = $util.newBuffer( + $util.base64.length(object.encryptedTwoFactorToken) + )), + 0 + ); else if (object.encryptedTwoFactorToken.length >= 0) message.encryptedTwoFactorToken = object.encryptedTwoFactorToken; return message; @@ -27211,19 +28342,26 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ DeviceApprovalResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) - if (options.bytes === String) - object.encryptedTwoFactorToken = ""; + if (options.bytes === String) object.encryptedTwoFactorToken = ''; else { object.encryptedTwoFactorToken = []; if (options.bytes !== Array) object.encryptedTwoFactorToken = $util.newBuffer(object.encryptedTwoFactorToken); } - if (message.encryptedTwoFactorToken != null && message.hasOwnProperty("encryptedTwoFactorToken")) - object.encryptedTwoFactorToken = options.bytes === String ? $util.base64.encode(message.encryptedTwoFactorToken, 0, message.encryptedTwoFactorToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedTwoFactorToken) : message.encryptedTwoFactorToken; + if (message.encryptedTwoFactorToken != null && message.hasOwnProperty('encryptedTwoFactorToken')) + object.encryptedTwoFactorToken = + options.bytes === String + ? $util.base64.encode( + message.encryptedTwoFactorToken, + 0, + message.encryptedTwoFactorToken.length + ) + : options.bytes === Array + ? Array.prototype.slice.call(message.encryptedTwoFactorToken) + : message.encryptedTwoFactorToken; return object; }; @@ -27248,16 +28386,15 @@ export const Authentication = $root.Authentication = (() => { */ DeviceApprovalResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.DeviceApprovalResponse"; + return typeUrlPrefix + '/Authentication.DeviceApprovalResponse'; }; return DeviceApprovalResponse; })(); - Authentication.ApproveDeviceRequest = (function() { - + Authentication.ApproveDeviceRequest = (function () { /** * Properties of an ApproveDeviceRequest. * @memberof Authentication @@ -27279,8 +28416,7 @@ export const Authentication = $root.Authentication = (() => { function ApproveDeviceRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -27337,16 +28473,15 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ ApproveDeviceRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.encryptedDeviceToken != null && Object.hasOwnProperty.call(message, "encryptedDeviceToken")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.encryptedDeviceToken); - if (message.encryptedDeviceDataKey != null && Object.hasOwnProperty.call(message, "encryptedDeviceDataKey")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.encryptedDeviceDataKey); - if (message.denyApproval != null && Object.hasOwnProperty.call(message, "denyApproval")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.denyApproval); - if (message.linkDevice != null && Object.hasOwnProperty.call(message, "linkDevice")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.linkDevice); + if (!writer) writer = $Writer.create(); + if (message.encryptedDeviceToken != null && Object.hasOwnProperty.call(message, 'encryptedDeviceToken')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.encryptedDeviceToken); + if (message.encryptedDeviceDataKey != null && Object.hasOwnProperty.call(message, 'encryptedDeviceDataKey')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.encryptedDeviceDataKey); + if (message.denyApproval != null && Object.hasOwnProperty.call(message, 'denyApproval')) + writer.uint32(/* id 3, wireType 0 =*/ 24).bool(message.denyApproval); + if (message.linkDevice != null && Object.hasOwnProperty.call(message, 'linkDevice')) + writer.uint32(/* id 4, wireType 0 =*/ 32).bool(message.linkDevice); return writer; }; @@ -27375,31 +28510,31 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ApproveDeviceRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.ApproveDeviceRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.ApproveDeviceRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.encryptedDeviceToken = reader.bytes(); break; } - case 2: { + case 2: { message.encryptedDeviceDataKey = reader.bytes(); break; } - case 3: { + case 3: { message.denyApproval = reader.bool(); break; } - case 4: { + case 4: { message.linkDevice = reader.bool(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -27416,8 +28551,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ApproveDeviceRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -27430,20 +28564,27 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ ApproveDeviceRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.encryptedDeviceToken != null && message.hasOwnProperty("encryptedDeviceToken")) - if (!(message.encryptedDeviceToken && typeof message.encryptedDeviceToken.length === "number" || $util.isString(message.encryptedDeviceToken))) - return "encryptedDeviceToken: buffer expected"; - if (message.encryptedDeviceDataKey != null && message.hasOwnProperty("encryptedDeviceDataKey")) - if (!(message.encryptedDeviceDataKey && typeof message.encryptedDeviceDataKey.length === "number" || $util.isString(message.encryptedDeviceDataKey))) - return "encryptedDeviceDataKey: buffer expected"; - if (message.denyApproval != null && message.hasOwnProperty("denyApproval")) - if (typeof message.denyApproval !== "boolean") - return "denyApproval: boolean expected"; - if (message.linkDevice != null && message.hasOwnProperty("linkDevice")) - if (typeof message.linkDevice !== "boolean") - return "linkDevice: boolean expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.encryptedDeviceToken != null && message.hasOwnProperty('encryptedDeviceToken')) + if ( + !( + (message.encryptedDeviceToken && typeof message.encryptedDeviceToken.length === 'number') || + $util.isString(message.encryptedDeviceToken) + ) + ) + return 'encryptedDeviceToken: buffer expected'; + if (message.encryptedDeviceDataKey != null && message.hasOwnProperty('encryptedDeviceDataKey')) + if ( + !( + (message.encryptedDeviceDataKey && typeof message.encryptedDeviceDataKey.length === 'number') || + $util.isString(message.encryptedDeviceDataKey) + ) + ) + return 'encryptedDeviceDataKey: buffer expected'; + if (message.denyApproval != null && message.hasOwnProperty('denyApproval')) + if (typeof message.denyApproval !== 'boolean') return 'denyApproval: boolean expected'; + if (message.linkDevice != null && message.hasOwnProperty('linkDevice')) + if (typeof message.linkDevice !== 'boolean') return 'linkDevice: boolean expected'; return null; }; @@ -27456,23 +28597,32 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.ApproveDeviceRequest} ApproveDeviceRequest */ ApproveDeviceRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.ApproveDeviceRequest) - return object; + if (object instanceof $root.Authentication.ApproveDeviceRequest) return object; let message = new $root.Authentication.ApproveDeviceRequest(); if (object.encryptedDeviceToken != null) - if (typeof object.encryptedDeviceToken === "string") - $util.base64.decode(object.encryptedDeviceToken, message.encryptedDeviceToken = $util.newBuffer($util.base64.length(object.encryptedDeviceToken)), 0); + if (typeof object.encryptedDeviceToken === 'string') + $util.base64.decode( + object.encryptedDeviceToken, + (message.encryptedDeviceToken = $util.newBuffer( + $util.base64.length(object.encryptedDeviceToken) + )), + 0 + ); else if (object.encryptedDeviceToken.length >= 0) message.encryptedDeviceToken = object.encryptedDeviceToken; if (object.encryptedDeviceDataKey != null) - if (typeof object.encryptedDeviceDataKey === "string") - $util.base64.decode(object.encryptedDeviceDataKey, message.encryptedDeviceDataKey = $util.newBuffer($util.base64.length(object.encryptedDeviceDataKey)), 0); + if (typeof object.encryptedDeviceDataKey === 'string') + $util.base64.decode( + object.encryptedDeviceDataKey, + (message.encryptedDeviceDataKey = $util.newBuffer( + $util.base64.length(object.encryptedDeviceDataKey) + )), + 0 + ); else if (object.encryptedDeviceDataKey.length >= 0) message.encryptedDeviceDataKey = object.encryptedDeviceDataKey; - if (object.denyApproval != null) - message.denyApproval = Boolean(object.denyApproval); - if (object.linkDevice != null) - message.linkDevice = Boolean(object.linkDevice); + if (object.denyApproval != null) message.denyApproval = Boolean(object.denyApproval); + if (object.linkDevice != null) message.linkDevice = Boolean(object.linkDevice); return message; }; @@ -27486,19 +28636,16 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ ApproveDeviceRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.encryptedDeviceToken = ""; + if (options.bytes === String) object.encryptedDeviceToken = ''; else { object.encryptedDeviceToken = []; if (options.bytes !== Array) object.encryptedDeviceToken = $util.newBuffer(object.encryptedDeviceToken); } - if (options.bytes === String) - object.encryptedDeviceDataKey = ""; + if (options.bytes === String) object.encryptedDeviceDataKey = ''; else { object.encryptedDeviceDataKey = []; if (options.bytes !== Array) @@ -27507,13 +28654,23 @@ export const Authentication = $root.Authentication = (() => { object.denyApproval = false; object.linkDevice = false; } - if (message.encryptedDeviceToken != null && message.hasOwnProperty("encryptedDeviceToken")) - object.encryptedDeviceToken = options.bytes === String ? $util.base64.encode(message.encryptedDeviceToken, 0, message.encryptedDeviceToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedDeviceToken) : message.encryptedDeviceToken; - if (message.encryptedDeviceDataKey != null && message.hasOwnProperty("encryptedDeviceDataKey")) - object.encryptedDeviceDataKey = options.bytes === String ? $util.base64.encode(message.encryptedDeviceDataKey, 0, message.encryptedDeviceDataKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedDeviceDataKey) : message.encryptedDeviceDataKey; - if (message.denyApproval != null && message.hasOwnProperty("denyApproval")) + if (message.encryptedDeviceToken != null && message.hasOwnProperty('encryptedDeviceToken')) + object.encryptedDeviceToken = + options.bytes === String + ? $util.base64.encode(message.encryptedDeviceToken, 0, message.encryptedDeviceToken.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.encryptedDeviceToken) + : message.encryptedDeviceToken; + if (message.encryptedDeviceDataKey != null && message.hasOwnProperty('encryptedDeviceDataKey')) + object.encryptedDeviceDataKey = + options.bytes === String + ? $util.base64.encode(message.encryptedDeviceDataKey, 0, message.encryptedDeviceDataKey.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.encryptedDeviceDataKey) + : message.encryptedDeviceDataKey; + if (message.denyApproval != null && message.hasOwnProperty('denyApproval')) object.denyApproval = message.denyApproval; - if (message.linkDevice != null && message.hasOwnProperty("linkDevice")) + if (message.linkDevice != null && message.hasOwnProperty('linkDevice')) object.linkDevice = message.linkDevice; return object; }; @@ -27539,16 +28696,15 @@ export const Authentication = $root.Authentication = (() => { */ ApproveDeviceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.ApproveDeviceRequest"; + return typeUrlPrefix + '/Authentication.ApproveDeviceRequest'; }; return ApproveDeviceRequest; })(); - Authentication.EnterpriseUserAliasRequest = (function() { - + Authentication.EnterpriseUserAliasRequest = (function () { /** * Properties of an EnterpriseUserAliasRequest. * @memberof Authentication @@ -27568,8 +28724,7 @@ export const Authentication = $root.Authentication = (() => { function EnterpriseUserAliasRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -27578,7 +28733,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.EnterpriseUserAliasRequest * @instance */ - EnterpriseUserAliasRequest.prototype.enterpriseUserId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + EnterpriseUserAliasRequest.prototype.enterpriseUserId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * EnterpriseUserAliasRequest alias. @@ -27586,7 +28741,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.EnterpriseUserAliasRequest * @instance */ - EnterpriseUserAliasRequest.prototype.alias = ""; + EnterpriseUserAliasRequest.prototype.alias = ''; /** * Creates a new EnterpriseUserAliasRequest instance using the specified properties. @@ -27610,12 +28765,11 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ EnterpriseUserAliasRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "enterpriseUserId")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.enterpriseUserId); - if (message.alias != null && Object.hasOwnProperty.call(message, "alias")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.alias); + if (!writer) writer = $Writer.create(); + if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, 'enterpriseUserId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int64(message.enterpriseUserId); + if (message.alias != null && Object.hasOwnProperty.call(message, 'alias')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.alias); return writer; }; @@ -27644,23 +28798,23 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ EnterpriseUserAliasRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.EnterpriseUserAliasRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.EnterpriseUserAliasRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.enterpriseUserId = reader.int64(); break; } - case 2: { + case 2: { message.alias = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -27677,8 +28831,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ EnterpriseUserAliasRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -27691,14 +28844,19 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ EnterpriseUserAliasRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (!$util.isInteger(message.enterpriseUserId) && !(message.enterpriseUserId && $util.isInteger(message.enterpriseUserId.low) && $util.isInteger(message.enterpriseUserId.high))) - return "enterpriseUserId: integer|Long expected"; - if (message.alias != null && message.hasOwnProperty("alias")) - if (!$util.isString(message.alias)) - return "alias: string expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.enterpriseUserId != null && message.hasOwnProperty('enterpriseUserId')) + if ( + !$util.isInteger(message.enterpriseUserId) && + !( + message.enterpriseUserId && + $util.isInteger(message.enterpriseUserId.low) && + $util.isInteger(message.enterpriseUserId.high) + ) + ) + return 'enterpriseUserId: integer|Long expected'; + if (message.alias != null && message.hasOwnProperty('alias')) + if (!$util.isString(message.alias)) return 'alias: string expected'; return null; }; @@ -27711,20 +28869,21 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.EnterpriseUserAliasRequest} EnterpriseUserAliasRequest */ EnterpriseUserAliasRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.EnterpriseUserAliasRequest) - return object; + if (object instanceof $root.Authentication.EnterpriseUserAliasRequest) return object; let message = new $root.Authentication.EnterpriseUserAliasRequest(); if (object.enterpriseUserId != null) if ($util.Long) (message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId)).unsigned = false; - else if (typeof object.enterpriseUserId === "string") + else if (typeof object.enterpriseUserId === 'string') message.enterpriseUserId = parseInt(object.enterpriseUserId, 10); - else if (typeof object.enterpriseUserId === "number") + else if (typeof object.enterpriseUserId === 'number') message.enterpriseUserId = object.enterpriseUserId; - else if (typeof object.enterpriseUserId === "object") - message.enterpriseUserId = new $util.LongBits(object.enterpriseUserId.low >>> 0, object.enterpriseUserId.high >>> 0).toNumber(); - if (object.alias != null) - message.alias = String(object.alias); + else if (typeof object.enterpriseUserId === 'object') + message.enterpriseUserId = new $util.LongBits( + object.enterpriseUserId.low >>> 0, + object.enterpriseUserId.high >>> 0 + ).toNumber(); + if (object.alias != null) message.alias = String(object.alias); return message; }; @@ -27738,24 +28897,31 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ EnterpriseUserAliasRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.enterpriseUserId = options.longs === String ? "0" : 0; - object.alias = ""; - } - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (typeof message.enterpriseUserId === "number") - object.enterpriseUserId = options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; + object.enterpriseUserId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.enterpriseUserId = options.longs === String ? '0' : 0; + object.alias = ''; + } + if (message.enterpriseUserId != null && message.hasOwnProperty('enterpriseUserId')) + if (typeof message.enterpriseUserId === 'number') + object.enterpriseUserId = + options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; else - object.enterpriseUserId = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseUserId) : options.longs === Number ? new $util.LongBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0).toNumber() : message.enterpriseUserId; - if (message.alias != null && message.hasOwnProperty("alias")) - object.alias = message.alias; + object.enterpriseUserId = + options.longs === String + ? $util.Long.prototype.toString.call(message.enterpriseUserId) + : options.longs === Number + ? new $util.LongBits( + message.enterpriseUserId.low >>> 0, + message.enterpriseUserId.high >>> 0 + ).toNumber() + : message.enterpriseUserId; + if (message.alias != null && message.hasOwnProperty('alias')) object.alias = message.alias; return object; }; @@ -27780,16 +28946,15 @@ export const Authentication = $root.Authentication = (() => { */ EnterpriseUserAliasRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.EnterpriseUserAliasRequest"; + return typeUrlPrefix + '/Authentication.EnterpriseUserAliasRequest'; }; return EnterpriseUserAliasRequest; })(); - Authentication.EnterpriseUserAddAliasRequest = (function() { - + Authentication.EnterpriseUserAddAliasRequest = (function () { /** * Properties of an EnterpriseUserAddAliasRequest. * @memberof Authentication @@ -27810,8 +28975,7 @@ export const Authentication = $root.Authentication = (() => { function EnterpriseUserAddAliasRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -27820,7 +28984,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.EnterpriseUserAddAliasRequest * @instance */ - EnterpriseUserAddAliasRequest.prototype.enterpriseUserId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + EnterpriseUserAddAliasRequest.prototype.enterpriseUserId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * EnterpriseUserAddAliasRequest alias. @@ -27828,7 +28992,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.EnterpriseUserAddAliasRequest * @instance */ - EnterpriseUserAddAliasRequest.prototype.alias = ""; + EnterpriseUserAddAliasRequest.prototype.alias = ''; /** * EnterpriseUserAddAliasRequest primary. @@ -27860,14 +29024,13 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ EnterpriseUserAddAliasRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "enterpriseUserId")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.enterpriseUserId); - if (message.alias != null && Object.hasOwnProperty.call(message, "alias")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.alias); - if (message.primary != null && Object.hasOwnProperty.call(message, "primary")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.primary); + if (!writer) writer = $Writer.create(); + if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, 'enterpriseUserId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int64(message.enterpriseUserId); + if (message.alias != null && Object.hasOwnProperty.call(message, 'alias')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.alias); + if (message.primary != null && Object.hasOwnProperty.call(message, 'primary')) + writer.uint32(/* id 3, wireType 0 =*/ 24).bool(message.primary); return writer; }; @@ -27896,27 +29059,27 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ EnterpriseUserAddAliasRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.EnterpriseUserAddAliasRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.EnterpriseUserAddAliasRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.enterpriseUserId = reader.int64(); break; } - case 2: { + case 2: { message.alias = reader.string(); break; } - case 3: { + case 3: { message.primary = reader.bool(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -27933,8 +29096,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ EnterpriseUserAddAliasRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -27947,17 +29109,21 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ EnterpriseUserAddAliasRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (!$util.isInteger(message.enterpriseUserId) && !(message.enterpriseUserId && $util.isInteger(message.enterpriseUserId.low) && $util.isInteger(message.enterpriseUserId.high))) - return "enterpriseUserId: integer|Long expected"; - if (message.alias != null && message.hasOwnProperty("alias")) - if (!$util.isString(message.alias)) - return "alias: string expected"; - if (message.primary != null && message.hasOwnProperty("primary")) - if (typeof message.primary !== "boolean") - return "primary: boolean expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.enterpriseUserId != null && message.hasOwnProperty('enterpriseUserId')) + if ( + !$util.isInteger(message.enterpriseUserId) && + !( + message.enterpriseUserId && + $util.isInteger(message.enterpriseUserId.low) && + $util.isInteger(message.enterpriseUserId.high) + ) + ) + return 'enterpriseUserId: integer|Long expected'; + if (message.alias != null && message.hasOwnProperty('alias')) + if (!$util.isString(message.alias)) return 'alias: string expected'; + if (message.primary != null && message.hasOwnProperty('primary')) + if (typeof message.primary !== 'boolean') return 'primary: boolean expected'; return null; }; @@ -27970,22 +29136,22 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.EnterpriseUserAddAliasRequest} EnterpriseUserAddAliasRequest */ EnterpriseUserAddAliasRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.EnterpriseUserAddAliasRequest) - return object; + if (object instanceof $root.Authentication.EnterpriseUserAddAliasRequest) return object; let message = new $root.Authentication.EnterpriseUserAddAliasRequest(); if (object.enterpriseUserId != null) if ($util.Long) (message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId)).unsigned = false; - else if (typeof object.enterpriseUserId === "string") + else if (typeof object.enterpriseUserId === 'string') message.enterpriseUserId = parseInt(object.enterpriseUserId, 10); - else if (typeof object.enterpriseUserId === "number") + else if (typeof object.enterpriseUserId === 'number') message.enterpriseUserId = object.enterpriseUserId; - else if (typeof object.enterpriseUserId === "object") - message.enterpriseUserId = new $util.LongBits(object.enterpriseUserId.low >>> 0, object.enterpriseUserId.high >>> 0).toNumber(); - if (object.alias != null) - message.alias = String(object.alias); - if (object.primary != null) - message.primary = Boolean(object.primary); + else if (typeof object.enterpriseUserId === 'object') + message.enterpriseUserId = new $util.LongBits( + object.enterpriseUserId.low >>> 0, + object.enterpriseUserId.high >>> 0 + ).toNumber(); + if (object.alias != null) message.alias = String(object.alias); + if (object.primary != null) message.primary = Boolean(object.primary); return message; }; @@ -27999,27 +29165,33 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ EnterpriseUserAddAliasRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.enterpriseUserId = options.longs === String ? "0" : 0; - object.alias = ""; + object.enterpriseUserId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.enterpriseUserId = options.longs === String ? '0' : 0; + object.alias = ''; object.primary = false; } - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (typeof message.enterpriseUserId === "number") - object.enterpriseUserId = options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; + if (message.enterpriseUserId != null && message.hasOwnProperty('enterpriseUserId')) + if (typeof message.enterpriseUserId === 'number') + object.enterpriseUserId = + options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; else - object.enterpriseUserId = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseUserId) : options.longs === Number ? new $util.LongBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0).toNumber() : message.enterpriseUserId; - if (message.alias != null && message.hasOwnProperty("alias")) - object.alias = message.alias; - if (message.primary != null && message.hasOwnProperty("primary")) - object.primary = message.primary; + object.enterpriseUserId = + options.longs === String + ? $util.Long.prototype.toString.call(message.enterpriseUserId) + : options.longs === Number + ? new $util.LongBits( + message.enterpriseUserId.low >>> 0, + message.enterpriseUserId.high >>> 0 + ).toNumber() + : message.enterpriseUserId; + if (message.alias != null && message.hasOwnProperty('alias')) object.alias = message.alias; + if (message.primary != null && message.hasOwnProperty('primary')) object.primary = message.primary; return object; }; @@ -28044,16 +29216,15 @@ export const Authentication = $root.Authentication = (() => { */ EnterpriseUserAddAliasRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.EnterpriseUserAddAliasRequest"; + return typeUrlPrefix + '/Authentication.EnterpriseUserAddAliasRequest'; }; return EnterpriseUserAddAliasRequest; })(); - Authentication.EnterpriseUserAddAliasRequestV2 = (function() { - + Authentication.EnterpriseUserAddAliasRequestV2 = (function () { /** * Properties of an EnterpriseUserAddAliasRequestV2. * @memberof Authentication @@ -28073,8 +29244,7 @@ export const Authentication = $root.Authentication = (() => { this.enterpriseUserAddAliasRequest = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -28107,11 +29277,13 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ EnterpriseUserAddAliasRequestV2.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.enterpriseUserAddAliasRequest != null && message.enterpriseUserAddAliasRequest.length) for (let i = 0; i < message.enterpriseUserAddAliasRequest.length; ++i) - $root.Authentication.EnterpriseUserAddAliasRequest.encode(message.enterpriseUserAddAliasRequest[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.Authentication.EnterpriseUserAddAliasRequest.encode( + message.enterpriseUserAddAliasRequest[i], + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); return writer; }; @@ -28140,21 +29312,23 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ EnterpriseUserAddAliasRequestV2.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.EnterpriseUserAddAliasRequestV2(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.EnterpriseUserAddAliasRequestV2(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { if (!(message.enterpriseUserAddAliasRequest && message.enterpriseUserAddAliasRequest.length)) message.enterpriseUserAddAliasRequest = []; - message.enterpriseUserAddAliasRequest.push($root.Authentication.EnterpriseUserAddAliasRequest.decode(reader, reader.uint32())); + message.enterpriseUserAddAliasRequest.push( + $root.Authentication.EnterpriseUserAddAliasRequest.decode(reader, reader.uint32()) + ); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -28171,8 +29345,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ EnterpriseUserAddAliasRequestV2.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -28185,15 +29358,18 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ EnterpriseUserAddAliasRequestV2.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.enterpriseUserAddAliasRequest != null && message.hasOwnProperty("enterpriseUserAddAliasRequest")) { + if (typeof message !== 'object' || message === null) return 'object expected'; + if ( + message.enterpriseUserAddAliasRequest != null && + message.hasOwnProperty('enterpriseUserAddAliasRequest') + ) { if (!Array.isArray(message.enterpriseUserAddAliasRequest)) - return "enterpriseUserAddAliasRequest: array expected"; + return 'enterpriseUserAddAliasRequest: array expected'; for (let i = 0; i < message.enterpriseUserAddAliasRequest.length; ++i) { - let error = $root.Authentication.EnterpriseUserAddAliasRequest.verify(message.enterpriseUserAddAliasRequest[i]); - if (error) - return "enterpriseUserAddAliasRequest." + error; + let error = $root.Authentication.EnterpriseUserAddAliasRequest.verify( + message.enterpriseUserAddAliasRequest[i] + ); + if (error) return 'enterpriseUserAddAliasRequest.' + error; } } return null; @@ -28208,17 +29384,23 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.EnterpriseUserAddAliasRequestV2} EnterpriseUserAddAliasRequestV2 */ EnterpriseUserAddAliasRequestV2.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.EnterpriseUserAddAliasRequestV2) - return object; + if (object instanceof $root.Authentication.EnterpriseUserAddAliasRequestV2) return object; let message = new $root.Authentication.EnterpriseUserAddAliasRequestV2(); if (object.enterpriseUserAddAliasRequest) { if (!Array.isArray(object.enterpriseUserAddAliasRequest)) - throw TypeError(".Authentication.EnterpriseUserAddAliasRequestV2.enterpriseUserAddAliasRequest: array expected"); + throw TypeError( + '.Authentication.EnterpriseUserAddAliasRequestV2.enterpriseUserAddAliasRequest: array expected' + ); message.enterpriseUserAddAliasRequest = []; for (let i = 0; i < object.enterpriseUserAddAliasRequest.length; ++i) { - if (typeof object.enterpriseUserAddAliasRequest[i] !== "object") - throw TypeError(".Authentication.EnterpriseUserAddAliasRequestV2.enterpriseUserAddAliasRequest: object expected"); - message.enterpriseUserAddAliasRequest[i] = $root.Authentication.EnterpriseUserAddAliasRequest.fromObject(object.enterpriseUserAddAliasRequest[i]); + if (typeof object.enterpriseUserAddAliasRequest[i] !== 'object') + throw TypeError( + '.Authentication.EnterpriseUserAddAliasRequestV2.enterpriseUserAddAliasRequest: object expected' + ); + message.enterpriseUserAddAliasRequest[i] = + $root.Authentication.EnterpriseUserAddAliasRequest.fromObject( + object.enterpriseUserAddAliasRequest[i] + ); } } return message; @@ -28234,15 +29416,17 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ EnterpriseUserAddAliasRequestV2.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.enterpriseUserAddAliasRequest = []; + if (options.arrays || options.defaults) object.enterpriseUserAddAliasRequest = []; if (message.enterpriseUserAddAliasRequest && message.enterpriseUserAddAliasRequest.length) { object.enterpriseUserAddAliasRequest = []; for (let j = 0; j < message.enterpriseUserAddAliasRequest.length; ++j) - object.enterpriseUserAddAliasRequest[j] = $root.Authentication.EnterpriseUserAddAliasRequest.toObject(message.enterpriseUserAddAliasRequest[j], options); + object.enterpriseUserAddAliasRequest[j] = + $root.Authentication.EnterpriseUserAddAliasRequest.toObject( + message.enterpriseUserAddAliasRequest[j], + options + ); } return object; }; @@ -28268,16 +29452,15 @@ export const Authentication = $root.Authentication = (() => { */ EnterpriseUserAddAliasRequestV2.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.EnterpriseUserAddAliasRequestV2"; + return typeUrlPrefix + '/Authentication.EnterpriseUserAddAliasRequestV2'; }; return EnterpriseUserAddAliasRequestV2; })(); - Authentication.EnterpriseUserAddAliasStatus = (function() { - + Authentication.EnterpriseUserAddAliasStatus = (function () { /** * Properties of an EnterpriseUserAddAliasStatus. * @memberof Authentication @@ -28297,8 +29480,7 @@ export const Authentication = $root.Authentication = (() => { function EnterpriseUserAddAliasStatus(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -28307,7 +29489,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.EnterpriseUserAddAliasStatus * @instance */ - EnterpriseUserAddAliasStatus.prototype.enterpriseUserId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + EnterpriseUserAddAliasStatus.prototype.enterpriseUserId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * EnterpriseUserAddAliasStatus status. @@ -28315,7 +29497,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.EnterpriseUserAddAliasStatus * @instance */ - EnterpriseUserAddAliasStatus.prototype.status = ""; + EnterpriseUserAddAliasStatus.prototype.status = ''; /** * Creates a new EnterpriseUserAddAliasStatus instance using the specified properties. @@ -28339,12 +29521,11 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ EnterpriseUserAddAliasStatus.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "enterpriseUserId")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.enterpriseUserId); - if (message.status != null && Object.hasOwnProperty.call(message, "status")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.status); + if (!writer) writer = $Writer.create(); + if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, 'enterpriseUserId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int64(message.enterpriseUserId); + if (message.status != null && Object.hasOwnProperty.call(message, 'status')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.status); return writer; }; @@ -28373,23 +29554,23 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ EnterpriseUserAddAliasStatus.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.EnterpriseUserAddAliasStatus(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.EnterpriseUserAddAliasStatus(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.enterpriseUserId = reader.int64(); break; } - case 2: { + case 2: { message.status = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -28406,8 +29587,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ EnterpriseUserAddAliasStatus.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -28420,14 +29600,19 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ EnterpriseUserAddAliasStatus.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (!$util.isInteger(message.enterpriseUserId) && !(message.enterpriseUserId && $util.isInteger(message.enterpriseUserId.low) && $util.isInteger(message.enterpriseUserId.high))) - return "enterpriseUserId: integer|Long expected"; - if (message.status != null && message.hasOwnProperty("status")) - if (!$util.isString(message.status)) - return "status: string expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.enterpriseUserId != null && message.hasOwnProperty('enterpriseUserId')) + if ( + !$util.isInteger(message.enterpriseUserId) && + !( + message.enterpriseUserId && + $util.isInteger(message.enterpriseUserId.low) && + $util.isInteger(message.enterpriseUserId.high) + ) + ) + return 'enterpriseUserId: integer|Long expected'; + if (message.status != null && message.hasOwnProperty('status')) + if (!$util.isString(message.status)) return 'status: string expected'; return null; }; @@ -28440,20 +29625,21 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.EnterpriseUserAddAliasStatus} EnterpriseUserAddAliasStatus */ EnterpriseUserAddAliasStatus.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.EnterpriseUserAddAliasStatus) - return object; + if (object instanceof $root.Authentication.EnterpriseUserAddAliasStatus) return object; let message = new $root.Authentication.EnterpriseUserAddAliasStatus(); if (object.enterpriseUserId != null) if ($util.Long) (message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId)).unsigned = false; - else if (typeof object.enterpriseUserId === "string") + else if (typeof object.enterpriseUserId === 'string') message.enterpriseUserId = parseInt(object.enterpriseUserId, 10); - else if (typeof object.enterpriseUserId === "number") + else if (typeof object.enterpriseUserId === 'number') message.enterpriseUserId = object.enterpriseUserId; - else if (typeof object.enterpriseUserId === "object") - message.enterpriseUserId = new $util.LongBits(object.enterpriseUserId.low >>> 0, object.enterpriseUserId.high >>> 0).toNumber(); - if (object.status != null) - message.status = String(object.status); + else if (typeof object.enterpriseUserId === 'object') + message.enterpriseUserId = new $util.LongBits( + object.enterpriseUserId.low >>> 0, + object.enterpriseUserId.high >>> 0 + ).toNumber(); + if (object.status != null) message.status = String(object.status); return message; }; @@ -28467,24 +29653,31 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ EnterpriseUserAddAliasStatus.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.enterpriseUserId = options.longs === String ? "0" : 0; - object.status = ""; - } - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (typeof message.enterpriseUserId === "number") - object.enterpriseUserId = options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; + object.enterpriseUserId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.enterpriseUserId = options.longs === String ? '0' : 0; + object.status = ''; + } + if (message.enterpriseUserId != null && message.hasOwnProperty('enterpriseUserId')) + if (typeof message.enterpriseUserId === 'number') + object.enterpriseUserId = + options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; else - object.enterpriseUserId = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseUserId) : options.longs === Number ? new $util.LongBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0).toNumber() : message.enterpriseUserId; - if (message.status != null && message.hasOwnProperty("status")) - object.status = message.status; + object.enterpriseUserId = + options.longs === String + ? $util.Long.prototype.toString.call(message.enterpriseUserId) + : options.longs === Number + ? new $util.LongBits( + message.enterpriseUserId.low >>> 0, + message.enterpriseUserId.high >>> 0 + ).toNumber() + : message.enterpriseUserId; + if (message.status != null && message.hasOwnProperty('status')) object.status = message.status; return object; }; @@ -28509,16 +29702,15 @@ export const Authentication = $root.Authentication = (() => { */ EnterpriseUserAddAliasStatus.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.EnterpriseUserAddAliasStatus"; + return typeUrlPrefix + '/Authentication.EnterpriseUserAddAliasStatus'; }; return EnterpriseUserAddAliasStatus; })(); - Authentication.EnterpriseUserAddAliasResponse = (function() { - + Authentication.EnterpriseUserAddAliasResponse = (function () { /** * Properties of an EnterpriseUserAddAliasResponse. * @memberof Authentication @@ -28538,8 +29730,7 @@ export const Authentication = $root.Authentication = (() => { this.status = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -28572,11 +29763,13 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ EnterpriseUserAddAliasResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.status != null && message.status.length) for (let i = 0; i < message.status.length; ++i) - $root.Authentication.EnterpriseUserAddAliasStatus.encode(message.status[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.Authentication.EnterpriseUserAddAliasStatus.encode( + message.status[i], + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); return writer; }; @@ -28605,21 +29798,22 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ EnterpriseUserAddAliasResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.EnterpriseUserAddAliasResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.EnterpriseUserAddAliasResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (!(message.status && message.status.length)) - message.status = []; - message.status.push($root.Authentication.EnterpriseUserAddAliasStatus.decode(reader, reader.uint32())); + case 1: { + if (!(message.status && message.status.length)) message.status = []; + message.status.push( + $root.Authentication.EnterpriseUserAddAliasStatus.decode(reader, reader.uint32()) + ); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -28636,8 +29830,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ EnterpriseUserAddAliasResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -28650,15 +29843,12 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ EnterpriseUserAddAliasResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.status != null && message.hasOwnProperty("status")) { - if (!Array.isArray(message.status)) - return "status: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.status != null && message.hasOwnProperty('status')) { + if (!Array.isArray(message.status)) return 'status: array expected'; for (let i = 0; i < message.status.length; ++i) { let error = $root.Authentication.EnterpriseUserAddAliasStatus.verify(message.status[i]); - if (error) - return "status." + error; + if (error) return 'status.' + error; } } return null; @@ -28673,16 +29863,15 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.EnterpriseUserAddAliasResponse} EnterpriseUserAddAliasResponse */ EnterpriseUserAddAliasResponse.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.EnterpriseUserAddAliasResponse) - return object; + if (object instanceof $root.Authentication.EnterpriseUserAddAliasResponse) return object; let message = new $root.Authentication.EnterpriseUserAddAliasResponse(); if (object.status) { if (!Array.isArray(object.status)) - throw TypeError(".Authentication.EnterpriseUserAddAliasResponse.status: array expected"); + throw TypeError('.Authentication.EnterpriseUserAddAliasResponse.status: array expected'); message.status = []; for (let i = 0; i < object.status.length; ++i) { - if (typeof object.status[i] !== "object") - throw TypeError(".Authentication.EnterpriseUserAddAliasResponse.status: object expected"); + if (typeof object.status[i] !== 'object') + throw TypeError('.Authentication.EnterpriseUserAddAliasResponse.status: object expected'); message.status[i] = $root.Authentication.EnterpriseUserAddAliasStatus.fromObject(object.status[i]); } } @@ -28699,15 +29888,16 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ EnterpriseUserAddAliasResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.status = []; + if (options.arrays || options.defaults) object.status = []; if (message.status && message.status.length) { object.status = []; for (let j = 0; j < message.status.length; ++j) - object.status[j] = $root.Authentication.EnterpriseUserAddAliasStatus.toObject(message.status[j], options); + object.status[j] = $root.Authentication.EnterpriseUserAddAliasStatus.toObject( + message.status[j], + options + ); } return object; }; @@ -28733,16 +29923,15 @@ export const Authentication = $root.Authentication = (() => { */ EnterpriseUserAddAliasResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.EnterpriseUserAddAliasResponse"; + return typeUrlPrefix + '/Authentication.EnterpriseUserAddAliasResponse'; }; return EnterpriseUserAddAliasResponse; })(); - Authentication.Device = (function() { - + Authentication.Device = (function () { /** * Properties of a Device. * @memberof Authentication @@ -28761,8 +29950,7 @@ export const Authentication = $root.Authentication = (() => { function Device(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -28795,10 +29983,9 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ Device.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.encryptedDeviceToken != null && Object.hasOwnProperty.call(message, "encryptedDeviceToken")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.encryptedDeviceToken); + if (!writer) writer = $Writer.create(); + if (message.encryptedDeviceToken != null && Object.hasOwnProperty.call(message, 'encryptedDeviceToken')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.encryptedDeviceToken); return writer; }; @@ -28827,19 +30014,19 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ Device.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.Device(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.Device(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.encryptedDeviceToken = reader.bytes(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -28856,8 +30043,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ Device.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -28870,11 +30056,15 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ Device.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.encryptedDeviceToken != null && message.hasOwnProperty("encryptedDeviceToken")) - if (!(message.encryptedDeviceToken && typeof message.encryptedDeviceToken.length === "number" || $util.isString(message.encryptedDeviceToken))) - return "encryptedDeviceToken: buffer expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.encryptedDeviceToken != null && message.hasOwnProperty('encryptedDeviceToken')) + if ( + !( + (message.encryptedDeviceToken && typeof message.encryptedDeviceToken.length === 'number') || + $util.isString(message.encryptedDeviceToken) + ) + ) + return 'encryptedDeviceToken: buffer expected'; return null; }; @@ -28887,12 +30077,17 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.Device} Device */ Device.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.Device) - return object; + if (object instanceof $root.Authentication.Device) return object; let message = new $root.Authentication.Device(); if (object.encryptedDeviceToken != null) - if (typeof object.encryptedDeviceToken === "string") - $util.base64.decode(object.encryptedDeviceToken, message.encryptedDeviceToken = $util.newBuffer($util.base64.length(object.encryptedDeviceToken)), 0); + if (typeof object.encryptedDeviceToken === 'string') + $util.base64.decode( + object.encryptedDeviceToken, + (message.encryptedDeviceToken = $util.newBuffer( + $util.base64.length(object.encryptedDeviceToken) + )), + 0 + ); else if (object.encryptedDeviceToken.length >= 0) message.encryptedDeviceToken = object.encryptedDeviceToken; return message; @@ -28908,19 +30103,22 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ Device.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) - if (options.bytes === String) - object.encryptedDeviceToken = ""; + if (options.bytes === String) object.encryptedDeviceToken = ''; else { object.encryptedDeviceToken = []; if (options.bytes !== Array) object.encryptedDeviceToken = $util.newBuffer(object.encryptedDeviceToken); } - if (message.encryptedDeviceToken != null && message.hasOwnProperty("encryptedDeviceToken")) - object.encryptedDeviceToken = options.bytes === String ? $util.base64.encode(message.encryptedDeviceToken, 0, message.encryptedDeviceToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedDeviceToken) : message.encryptedDeviceToken; + if (message.encryptedDeviceToken != null && message.hasOwnProperty('encryptedDeviceToken')) + object.encryptedDeviceToken = + options.bytes === String + ? $util.base64.encode(message.encryptedDeviceToken, 0, message.encryptedDeviceToken.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.encryptedDeviceToken) + : message.encryptedDeviceToken; return object; }; @@ -28945,16 +30143,15 @@ export const Authentication = $root.Authentication = (() => { */ Device.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.Device"; + return typeUrlPrefix + '/Authentication.Device'; }; return Device; })(); - Authentication.RegisterDeviceDataKeyRequest = (function() { - + Authentication.RegisterDeviceDataKeyRequest = (function () { /** * Properties of a RegisterDeviceDataKeyRequest. * @memberof Authentication @@ -28974,8 +30171,7 @@ export const Authentication = $root.Authentication = (() => { function RegisterDeviceDataKeyRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -29016,12 +30212,11 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ RegisterDeviceDataKeyRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.encryptedDeviceToken != null && Object.hasOwnProperty.call(message, "encryptedDeviceToken")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.encryptedDeviceToken); - if (message.encryptedDeviceDataKey != null && Object.hasOwnProperty.call(message, "encryptedDeviceDataKey")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.encryptedDeviceDataKey); + if (!writer) writer = $Writer.create(); + if (message.encryptedDeviceToken != null && Object.hasOwnProperty.call(message, 'encryptedDeviceToken')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.encryptedDeviceToken); + if (message.encryptedDeviceDataKey != null && Object.hasOwnProperty.call(message, 'encryptedDeviceDataKey')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.encryptedDeviceDataKey); return writer; }; @@ -29050,23 +30245,23 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RegisterDeviceDataKeyRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.RegisterDeviceDataKeyRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.RegisterDeviceDataKeyRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.encryptedDeviceToken = reader.bytes(); break; } - case 2: { + case 2: { message.encryptedDeviceDataKey = reader.bytes(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -29083,8 +30278,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RegisterDeviceDataKeyRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -29097,14 +30291,23 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ RegisterDeviceDataKeyRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.encryptedDeviceToken != null && message.hasOwnProperty("encryptedDeviceToken")) - if (!(message.encryptedDeviceToken && typeof message.encryptedDeviceToken.length === "number" || $util.isString(message.encryptedDeviceToken))) - return "encryptedDeviceToken: buffer expected"; - if (message.encryptedDeviceDataKey != null && message.hasOwnProperty("encryptedDeviceDataKey")) - if (!(message.encryptedDeviceDataKey && typeof message.encryptedDeviceDataKey.length === "number" || $util.isString(message.encryptedDeviceDataKey))) - return "encryptedDeviceDataKey: buffer expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.encryptedDeviceToken != null && message.hasOwnProperty('encryptedDeviceToken')) + if ( + !( + (message.encryptedDeviceToken && typeof message.encryptedDeviceToken.length === 'number') || + $util.isString(message.encryptedDeviceToken) + ) + ) + return 'encryptedDeviceToken: buffer expected'; + if (message.encryptedDeviceDataKey != null && message.hasOwnProperty('encryptedDeviceDataKey')) + if ( + !( + (message.encryptedDeviceDataKey && typeof message.encryptedDeviceDataKey.length === 'number') || + $util.isString(message.encryptedDeviceDataKey) + ) + ) + return 'encryptedDeviceDataKey: buffer expected'; return null; }; @@ -29117,17 +30320,28 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.RegisterDeviceDataKeyRequest} RegisterDeviceDataKeyRequest */ RegisterDeviceDataKeyRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.RegisterDeviceDataKeyRequest) - return object; + if (object instanceof $root.Authentication.RegisterDeviceDataKeyRequest) return object; let message = new $root.Authentication.RegisterDeviceDataKeyRequest(); if (object.encryptedDeviceToken != null) - if (typeof object.encryptedDeviceToken === "string") - $util.base64.decode(object.encryptedDeviceToken, message.encryptedDeviceToken = $util.newBuffer($util.base64.length(object.encryptedDeviceToken)), 0); + if (typeof object.encryptedDeviceToken === 'string') + $util.base64.decode( + object.encryptedDeviceToken, + (message.encryptedDeviceToken = $util.newBuffer( + $util.base64.length(object.encryptedDeviceToken) + )), + 0 + ); else if (object.encryptedDeviceToken.length >= 0) message.encryptedDeviceToken = object.encryptedDeviceToken; if (object.encryptedDeviceDataKey != null) - if (typeof object.encryptedDeviceDataKey === "string") - $util.base64.decode(object.encryptedDeviceDataKey, message.encryptedDeviceDataKey = $util.newBuffer($util.base64.length(object.encryptedDeviceDataKey)), 0); + if (typeof object.encryptedDeviceDataKey === 'string') + $util.base64.decode( + object.encryptedDeviceDataKey, + (message.encryptedDeviceDataKey = $util.newBuffer( + $util.base64.length(object.encryptedDeviceDataKey) + )), + 0 + ); else if (object.encryptedDeviceDataKey.length >= 0) message.encryptedDeviceDataKey = object.encryptedDeviceDataKey; return message; @@ -29143,29 +30357,36 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ RegisterDeviceDataKeyRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.encryptedDeviceToken = ""; + if (options.bytes === String) object.encryptedDeviceToken = ''; else { object.encryptedDeviceToken = []; if (options.bytes !== Array) object.encryptedDeviceToken = $util.newBuffer(object.encryptedDeviceToken); } - if (options.bytes === String) - object.encryptedDeviceDataKey = ""; + if (options.bytes === String) object.encryptedDeviceDataKey = ''; else { object.encryptedDeviceDataKey = []; if (options.bytes !== Array) object.encryptedDeviceDataKey = $util.newBuffer(object.encryptedDeviceDataKey); } } - if (message.encryptedDeviceToken != null && message.hasOwnProperty("encryptedDeviceToken")) - object.encryptedDeviceToken = options.bytes === String ? $util.base64.encode(message.encryptedDeviceToken, 0, message.encryptedDeviceToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedDeviceToken) : message.encryptedDeviceToken; - if (message.encryptedDeviceDataKey != null && message.hasOwnProperty("encryptedDeviceDataKey")) - object.encryptedDeviceDataKey = options.bytes === String ? $util.base64.encode(message.encryptedDeviceDataKey, 0, message.encryptedDeviceDataKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedDeviceDataKey) : message.encryptedDeviceDataKey; + if (message.encryptedDeviceToken != null && message.hasOwnProperty('encryptedDeviceToken')) + object.encryptedDeviceToken = + options.bytes === String + ? $util.base64.encode(message.encryptedDeviceToken, 0, message.encryptedDeviceToken.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.encryptedDeviceToken) + : message.encryptedDeviceToken; + if (message.encryptedDeviceDataKey != null && message.hasOwnProperty('encryptedDeviceDataKey')) + object.encryptedDeviceDataKey = + options.bytes === String + ? $util.base64.encode(message.encryptedDeviceDataKey, 0, message.encryptedDeviceDataKey.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.encryptedDeviceDataKey) + : message.encryptedDeviceDataKey; return object; }; @@ -29190,16 +30411,15 @@ export const Authentication = $root.Authentication = (() => { */ RegisterDeviceDataKeyRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.RegisterDeviceDataKeyRequest"; + return typeUrlPrefix + '/Authentication.RegisterDeviceDataKeyRequest'; }; return RegisterDeviceDataKeyRequest; })(); - Authentication.ValidateCreateUserVerificationCodeRequest = (function() { - + Authentication.ValidateCreateUserVerificationCodeRequest = (function () { /** * Properties of a ValidateCreateUserVerificationCodeRequest. * @memberof Authentication @@ -29220,8 +30440,7 @@ export const Authentication = $root.Authentication = (() => { function ValidateCreateUserVerificationCodeRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -29230,7 +30449,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.ValidateCreateUserVerificationCodeRequest * @instance */ - ValidateCreateUserVerificationCodeRequest.prototype.username = ""; + ValidateCreateUserVerificationCodeRequest.prototype.username = ''; /** * ValidateCreateUserVerificationCodeRequest clientVersion. @@ -29238,7 +30457,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.ValidateCreateUserVerificationCodeRequest * @instance */ - ValidateCreateUserVerificationCodeRequest.prototype.clientVersion = ""; + ValidateCreateUserVerificationCodeRequest.prototype.clientVersion = ''; /** * ValidateCreateUserVerificationCodeRequest verificationCode. @@ -29246,7 +30465,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.ValidateCreateUserVerificationCodeRequest * @instance */ - ValidateCreateUserVerificationCodeRequest.prototype.verificationCode = ""; + ValidateCreateUserVerificationCodeRequest.prototype.verificationCode = ''; /** * Creates a new ValidateCreateUserVerificationCodeRequest instance using the specified properties. @@ -29270,14 +30489,13 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ ValidateCreateUserVerificationCodeRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.username != null && Object.hasOwnProperty.call(message, "username")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.username); - if (message.clientVersion != null && Object.hasOwnProperty.call(message, "clientVersion")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.clientVersion); - if (message.verificationCode != null && Object.hasOwnProperty.call(message, "verificationCode")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.verificationCode); + if (!writer) writer = $Writer.create(); + if (message.username != null && Object.hasOwnProperty.call(message, 'username')) + writer.uint32(/* id 1, wireType 2 =*/ 10).string(message.username); + if (message.clientVersion != null && Object.hasOwnProperty.call(message, 'clientVersion')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.clientVersion); + if (message.verificationCode != null && Object.hasOwnProperty.call(message, 'verificationCode')) + writer.uint32(/* id 3, wireType 2 =*/ 26).string(message.verificationCode); return writer; }; @@ -29306,27 +30524,27 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ValidateCreateUserVerificationCodeRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.ValidateCreateUserVerificationCodeRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.ValidateCreateUserVerificationCodeRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.username = reader.string(); break; } - case 2: { + case 2: { message.clientVersion = reader.string(); break; } - case 3: { + case 3: { message.verificationCode = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -29343,8 +30561,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ValidateCreateUserVerificationCodeRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -29357,17 +30574,13 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ ValidateCreateUserVerificationCodeRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.username != null && message.hasOwnProperty("username")) - if (!$util.isString(message.username)) - return "username: string expected"; - if (message.clientVersion != null && message.hasOwnProperty("clientVersion")) - if (!$util.isString(message.clientVersion)) - return "clientVersion: string expected"; - if (message.verificationCode != null && message.hasOwnProperty("verificationCode")) - if (!$util.isString(message.verificationCode)) - return "verificationCode: string expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.username != null && message.hasOwnProperty('username')) + if (!$util.isString(message.username)) return 'username: string expected'; + if (message.clientVersion != null && message.hasOwnProperty('clientVersion')) + if (!$util.isString(message.clientVersion)) return 'clientVersion: string expected'; + if (message.verificationCode != null && message.hasOwnProperty('verificationCode')) + if (!$util.isString(message.verificationCode)) return 'verificationCode: string expected'; return null; }; @@ -29380,15 +30593,11 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.ValidateCreateUserVerificationCodeRequest} ValidateCreateUserVerificationCodeRequest */ ValidateCreateUserVerificationCodeRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.ValidateCreateUserVerificationCodeRequest) - return object; + if (object instanceof $root.Authentication.ValidateCreateUserVerificationCodeRequest) return object; let message = new $root.Authentication.ValidateCreateUserVerificationCodeRequest(); - if (object.username != null) - message.username = String(object.username); - if (object.clientVersion != null) - message.clientVersion = String(object.clientVersion); - if (object.verificationCode != null) - message.verificationCode = String(object.verificationCode); + if (object.username != null) message.username = String(object.username); + if (object.clientVersion != null) message.clientVersion = String(object.clientVersion); + if (object.verificationCode != null) message.verificationCode = String(object.verificationCode); return message; }; @@ -29402,19 +30611,17 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ ValidateCreateUserVerificationCodeRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - object.username = ""; - object.clientVersion = ""; - object.verificationCode = ""; + object.username = ''; + object.clientVersion = ''; + object.verificationCode = ''; } - if (message.username != null && message.hasOwnProperty("username")) - object.username = message.username; - if (message.clientVersion != null && message.hasOwnProperty("clientVersion")) + if (message.username != null && message.hasOwnProperty('username')) object.username = message.username; + if (message.clientVersion != null && message.hasOwnProperty('clientVersion')) object.clientVersion = message.clientVersion; - if (message.verificationCode != null && message.hasOwnProperty("verificationCode")) + if (message.verificationCode != null && message.hasOwnProperty('verificationCode')) object.verificationCode = message.verificationCode; return object; }; @@ -29440,16 +30647,15 @@ export const Authentication = $root.Authentication = (() => { */ ValidateCreateUserVerificationCodeRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.ValidateCreateUserVerificationCodeRequest"; + return typeUrlPrefix + '/Authentication.ValidateCreateUserVerificationCodeRequest'; }; return ValidateCreateUserVerificationCodeRequest; })(); - Authentication.ValidateDeviceVerificationCodeRequest = (function() { - + Authentication.ValidateDeviceVerificationCodeRequest = (function () { /** * Properties of a ValidateDeviceVerificationCodeRequest. * @memberof Authentication @@ -29472,8 +30678,7 @@ export const Authentication = $root.Authentication = (() => { function ValidateDeviceVerificationCodeRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -29482,7 +30687,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.ValidateDeviceVerificationCodeRequest * @instance */ - ValidateDeviceVerificationCodeRequest.prototype.username = ""; + ValidateDeviceVerificationCodeRequest.prototype.username = ''; /** * ValidateDeviceVerificationCodeRequest clientVersion. @@ -29490,7 +30695,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.ValidateDeviceVerificationCodeRequest * @instance */ - ValidateDeviceVerificationCodeRequest.prototype.clientVersion = ""; + ValidateDeviceVerificationCodeRequest.prototype.clientVersion = ''; /** * ValidateDeviceVerificationCodeRequest verificationCode. @@ -29498,7 +30703,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.ValidateDeviceVerificationCodeRequest * @instance */ - ValidateDeviceVerificationCodeRequest.prototype.verificationCode = ""; + ValidateDeviceVerificationCodeRequest.prototype.verificationCode = ''; /** * ValidateDeviceVerificationCodeRequest messageSessionUid. @@ -29538,18 +30743,17 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ ValidateDeviceVerificationCodeRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.username != null && Object.hasOwnProperty.call(message, "username")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.username); - if (message.clientVersion != null && Object.hasOwnProperty.call(message, "clientVersion")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.clientVersion); - if (message.verificationCode != null && Object.hasOwnProperty.call(message, "verificationCode")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.verificationCode); - if (message.messageSessionUid != null && Object.hasOwnProperty.call(message, "messageSessionUid")) - writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.messageSessionUid); - if (message.encryptedDeviceToken != null && Object.hasOwnProperty.call(message, "encryptedDeviceToken")) - writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.encryptedDeviceToken); + if (!writer) writer = $Writer.create(); + if (message.username != null && Object.hasOwnProperty.call(message, 'username')) + writer.uint32(/* id 1, wireType 2 =*/ 10).string(message.username); + if (message.clientVersion != null && Object.hasOwnProperty.call(message, 'clientVersion')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.clientVersion); + if (message.verificationCode != null && Object.hasOwnProperty.call(message, 'verificationCode')) + writer.uint32(/* id 3, wireType 2 =*/ 26).string(message.verificationCode); + if (message.messageSessionUid != null && Object.hasOwnProperty.call(message, 'messageSessionUid')) + writer.uint32(/* id 4, wireType 2 =*/ 34).bytes(message.messageSessionUid); + if (message.encryptedDeviceToken != null && Object.hasOwnProperty.call(message, 'encryptedDeviceToken')) + writer.uint32(/* id 5, wireType 2 =*/ 42).bytes(message.encryptedDeviceToken); return writer; }; @@ -29578,35 +30782,35 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ValidateDeviceVerificationCodeRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.ValidateDeviceVerificationCodeRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.ValidateDeviceVerificationCodeRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.username = reader.string(); break; } - case 2: { + case 2: { message.clientVersion = reader.string(); break; } - case 3: { + case 3: { message.verificationCode = reader.string(); break; } - case 4: { + case 4: { message.messageSessionUid = reader.bytes(); break; } - case 5: { + case 5: { message.encryptedDeviceToken = reader.bytes(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -29623,8 +30827,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ValidateDeviceVerificationCodeRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -29637,23 +30840,29 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ ValidateDeviceVerificationCodeRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.username != null && message.hasOwnProperty("username")) - if (!$util.isString(message.username)) - return "username: string expected"; - if (message.clientVersion != null && message.hasOwnProperty("clientVersion")) - if (!$util.isString(message.clientVersion)) - return "clientVersion: string expected"; - if (message.verificationCode != null && message.hasOwnProperty("verificationCode")) - if (!$util.isString(message.verificationCode)) - return "verificationCode: string expected"; - if (message.messageSessionUid != null && message.hasOwnProperty("messageSessionUid")) - if (!(message.messageSessionUid && typeof message.messageSessionUid.length === "number" || $util.isString(message.messageSessionUid))) - return "messageSessionUid: buffer expected"; - if (message.encryptedDeviceToken != null && message.hasOwnProperty("encryptedDeviceToken")) - if (!(message.encryptedDeviceToken && typeof message.encryptedDeviceToken.length === "number" || $util.isString(message.encryptedDeviceToken))) - return "encryptedDeviceToken: buffer expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.username != null && message.hasOwnProperty('username')) + if (!$util.isString(message.username)) return 'username: string expected'; + if (message.clientVersion != null && message.hasOwnProperty('clientVersion')) + if (!$util.isString(message.clientVersion)) return 'clientVersion: string expected'; + if (message.verificationCode != null && message.hasOwnProperty('verificationCode')) + if (!$util.isString(message.verificationCode)) return 'verificationCode: string expected'; + if (message.messageSessionUid != null && message.hasOwnProperty('messageSessionUid')) + if ( + !( + (message.messageSessionUid && typeof message.messageSessionUid.length === 'number') || + $util.isString(message.messageSessionUid) + ) + ) + return 'messageSessionUid: buffer expected'; + if (message.encryptedDeviceToken != null && message.hasOwnProperty('encryptedDeviceToken')) + if ( + !( + (message.encryptedDeviceToken && typeof message.encryptedDeviceToken.length === 'number') || + $util.isString(message.encryptedDeviceToken) + ) + ) + return 'encryptedDeviceToken: buffer expected'; return null; }; @@ -29666,23 +30875,28 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.ValidateDeviceVerificationCodeRequest} ValidateDeviceVerificationCodeRequest */ ValidateDeviceVerificationCodeRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.ValidateDeviceVerificationCodeRequest) - return object; + if (object instanceof $root.Authentication.ValidateDeviceVerificationCodeRequest) return object; let message = new $root.Authentication.ValidateDeviceVerificationCodeRequest(); - if (object.username != null) - message.username = String(object.username); - if (object.clientVersion != null) - message.clientVersion = String(object.clientVersion); - if (object.verificationCode != null) - message.verificationCode = String(object.verificationCode); + if (object.username != null) message.username = String(object.username); + if (object.clientVersion != null) message.clientVersion = String(object.clientVersion); + if (object.verificationCode != null) message.verificationCode = String(object.verificationCode); if (object.messageSessionUid != null) - if (typeof object.messageSessionUid === "string") - $util.base64.decode(object.messageSessionUid, message.messageSessionUid = $util.newBuffer($util.base64.length(object.messageSessionUid)), 0); - else if (object.messageSessionUid.length >= 0) - message.messageSessionUid = object.messageSessionUid; + if (typeof object.messageSessionUid === 'string') + $util.base64.decode( + object.messageSessionUid, + (message.messageSessionUid = $util.newBuffer($util.base64.length(object.messageSessionUid))), + 0 + ); + else if (object.messageSessionUid.length >= 0) message.messageSessionUid = object.messageSessionUid; if (object.encryptedDeviceToken != null) - if (typeof object.encryptedDeviceToken === "string") - $util.base64.decode(object.encryptedDeviceToken, message.encryptedDeviceToken = $util.newBuffer($util.base64.length(object.encryptedDeviceToken)), 0); + if (typeof object.encryptedDeviceToken === 'string') + $util.base64.decode( + object.encryptedDeviceToken, + (message.encryptedDeviceToken = $util.newBuffer( + $util.base64.length(object.encryptedDeviceToken) + )), + 0 + ); else if (object.encryptedDeviceToken.length >= 0) message.encryptedDeviceToken = object.encryptedDeviceToken; return message; @@ -29698,38 +30912,43 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ ValidateDeviceVerificationCodeRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - object.username = ""; - object.clientVersion = ""; - object.verificationCode = ""; - if (options.bytes === String) - object.messageSessionUid = ""; + object.username = ''; + object.clientVersion = ''; + object.verificationCode = ''; + if (options.bytes === String) object.messageSessionUid = ''; else { object.messageSessionUid = []; - if (options.bytes !== Array) - object.messageSessionUid = $util.newBuffer(object.messageSessionUid); + if (options.bytes !== Array) object.messageSessionUid = $util.newBuffer(object.messageSessionUid); } - if (options.bytes === String) - object.encryptedDeviceToken = ""; + if (options.bytes === String) object.encryptedDeviceToken = ''; else { object.encryptedDeviceToken = []; if (options.bytes !== Array) object.encryptedDeviceToken = $util.newBuffer(object.encryptedDeviceToken); } } - if (message.username != null && message.hasOwnProperty("username")) - object.username = message.username; - if (message.clientVersion != null && message.hasOwnProperty("clientVersion")) + if (message.username != null && message.hasOwnProperty('username')) object.username = message.username; + if (message.clientVersion != null && message.hasOwnProperty('clientVersion')) object.clientVersion = message.clientVersion; - if (message.verificationCode != null && message.hasOwnProperty("verificationCode")) + if (message.verificationCode != null && message.hasOwnProperty('verificationCode')) object.verificationCode = message.verificationCode; - if (message.messageSessionUid != null && message.hasOwnProperty("messageSessionUid")) - object.messageSessionUid = options.bytes === String ? $util.base64.encode(message.messageSessionUid, 0, message.messageSessionUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.messageSessionUid) : message.messageSessionUid; - if (message.encryptedDeviceToken != null && message.hasOwnProperty("encryptedDeviceToken")) - object.encryptedDeviceToken = options.bytes === String ? $util.base64.encode(message.encryptedDeviceToken, 0, message.encryptedDeviceToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedDeviceToken) : message.encryptedDeviceToken; + if (message.messageSessionUid != null && message.hasOwnProperty('messageSessionUid')) + object.messageSessionUid = + options.bytes === String + ? $util.base64.encode(message.messageSessionUid, 0, message.messageSessionUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.messageSessionUid) + : message.messageSessionUid; + if (message.encryptedDeviceToken != null && message.hasOwnProperty('encryptedDeviceToken')) + object.encryptedDeviceToken = + options.bytes === String + ? $util.base64.encode(message.encryptedDeviceToken, 0, message.encryptedDeviceToken.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.encryptedDeviceToken) + : message.encryptedDeviceToken; return object; }; @@ -29754,16 +30973,15 @@ export const Authentication = $root.Authentication = (() => { */ ValidateDeviceVerificationCodeRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.ValidateDeviceVerificationCodeRequest"; + return typeUrlPrefix + '/Authentication.ValidateDeviceVerificationCodeRequest'; }; return ValidateDeviceVerificationCodeRequest; })(); - Authentication.SendSessionMessageRequest = (function() { - + Authentication.SendSessionMessageRequest = (function () { /** * Properties of a SendSessionMessageRequest. * @memberof Authentication @@ -29784,8 +31002,7 @@ export const Authentication = $root.Authentication = (() => { function SendSessionMessageRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -29802,7 +31019,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.SendSessionMessageRequest * @instance */ - SendSessionMessageRequest.prototype.command = ""; + SendSessionMessageRequest.prototype.command = ''; /** * SendSessionMessageRequest username. @@ -29810,7 +31027,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.SendSessionMessageRequest * @instance */ - SendSessionMessageRequest.prototype.username = ""; + SendSessionMessageRequest.prototype.username = ''; /** * Creates a new SendSessionMessageRequest instance using the specified properties. @@ -29834,14 +31051,13 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ SendSessionMessageRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.messageSessionUid != null && Object.hasOwnProperty.call(message, "messageSessionUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.messageSessionUid); - if (message.command != null && Object.hasOwnProperty.call(message, "command")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.command); - if (message.username != null && Object.hasOwnProperty.call(message, "username")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.username); + if (!writer) writer = $Writer.create(); + if (message.messageSessionUid != null && Object.hasOwnProperty.call(message, 'messageSessionUid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.messageSessionUid); + if (message.command != null && Object.hasOwnProperty.call(message, 'command')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.command); + if (message.username != null && Object.hasOwnProperty.call(message, 'username')) + writer.uint32(/* id 3, wireType 2 =*/ 26).string(message.username); return writer; }; @@ -29870,27 +31086,27 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SendSessionMessageRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.SendSessionMessageRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.SendSessionMessageRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.messageSessionUid = reader.bytes(); break; } - case 2: { + case 2: { message.command = reader.string(); break; } - case 3: { + case 3: { message.username = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -29907,8 +31123,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SendSessionMessageRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -29921,17 +31136,19 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ SendSessionMessageRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.messageSessionUid != null && message.hasOwnProperty("messageSessionUid")) - if (!(message.messageSessionUid && typeof message.messageSessionUid.length === "number" || $util.isString(message.messageSessionUid))) - return "messageSessionUid: buffer expected"; - if (message.command != null && message.hasOwnProperty("command")) - if (!$util.isString(message.command)) - return "command: string expected"; - if (message.username != null && message.hasOwnProperty("username")) - if (!$util.isString(message.username)) - return "username: string expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.messageSessionUid != null && message.hasOwnProperty('messageSessionUid')) + if ( + !( + (message.messageSessionUid && typeof message.messageSessionUid.length === 'number') || + $util.isString(message.messageSessionUid) + ) + ) + return 'messageSessionUid: buffer expected'; + if (message.command != null && message.hasOwnProperty('command')) + if (!$util.isString(message.command)) return 'command: string expected'; + if (message.username != null && message.hasOwnProperty('username')) + if (!$util.isString(message.username)) return 'username: string expected'; return null; }; @@ -29944,18 +31161,18 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.SendSessionMessageRequest} SendSessionMessageRequest */ SendSessionMessageRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.SendSessionMessageRequest) - return object; + if (object instanceof $root.Authentication.SendSessionMessageRequest) return object; let message = new $root.Authentication.SendSessionMessageRequest(); if (object.messageSessionUid != null) - if (typeof object.messageSessionUid === "string") - $util.base64.decode(object.messageSessionUid, message.messageSessionUid = $util.newBuffer($util.base64.length(object.messageSessionUid)), 0); - else if (object.messageSessionUid.length >= 0) - message.messageSessionUid = object.messageSessionUid; - if (object.command != null) - message.command = String(object.command); - if (object.username != null) - message.username = String(object.username); + if (typeof object.messageSessionUid === 'string') + $util.base64.decode( + object.messageSessionUid, + (message.messageSessionUid = $util.newBuffer($util.base64.length(object.messageSessionUid))), + 0 + ); + else if (object.messageSessionUid.length >= 0) message.messageSessionUid = object.messageSessionUid; + if (object.command != null) message.command = String(object.command); + if (object.username != null) message.username = String(object.username); return message; }; @@ -29969,26 +31186,26 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ SendSessionMessageRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.messageSessionUid = ""; + if (options.bytes === String) object.messageSessionUid = ''; else { object.messageSessionUid = []; - if (options.bytes !== Array) - object.messageSessionUid = $util.newBuffer(object.messageSessionUid); + if (options.bytes !== Array) object.messageSessionUid = $util.newBuffer(object.messageSessionUid); } - object.command = ""; - object.username = ""; + object.command = ''; + object.username = ''; } - if (message.messageSessionUid != null && message.hasOwnProperty("messageSessionUid")) - object.messageSessionUid = options.bytes === String ? $util.base64.encode(message.messageSessionUid, 0, message.messageSessionUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.messageSessionUid) : message.messageSessionUid; - if (message.command != null && message.hasOwnProperty("command")) - object.command = message.command; - if (message.username != null && message.hasOwnProperty("username")) - object.username = message.username; + if (message.messageSessionUid != null && message.hasOwnProperty('messageSessionUid')) + object.messageSessionUid = + options.bytes === String + ? $util.base64.encode(message.messageSessionUid, 0, message.messageSessionUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.messageSessionUid) + : message.messageSessionUid; + if (message.command != null && message.hasOwnProperty('command')) object.command = message.command; + if (message.username != null && message.hasOwnProperty('username')) object.username = message.username; return object; }; @@ -30013,16 +31230,15 @@ export const Authentication = $root.Authentication = (() => { */ SendSessionMessageRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.SendSessionMessageRequest"; + return typeUrlPrefix + '/Authentication.SendSessionMessageRequest'; }; return SendSessionMessageRequest; })(); - Authentication.GlobalUserAccount = (function() { - + Authentication.GlobalUserAccount = (function () { /** * Properties of a GlobalUserAccount. * @memberof Authentication @@ -30043,8 +31259,7 @@ export const Authentication = $root.Authentication = (() => { function GlobalUserAccount(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -30053,7 +31268,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.GlobalUserAccount * @instance */ - GlobalUserAccount.prototype.username = ""; + GlobalUserAccount.prototype.username = ''; /** * GlobalUserAccount accountUid. @@ -30069,7 +31284,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.GlobalUserAccount * @instance */ - GlobalUserAccount.prototype.regionName = ""; + GlobalUserAccount.prototype.regionName = ''; /** * Creates a new GlobalUserAccount instance using the specified properties. @@ -30093,14 +31308,13 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ GlobalUserAccount.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.username != null && Object.hasOwnProperty.call(message, "username")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.username); - if (message.accountUid != null && Object.hasOwnProperty.call(message, "accountUid")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.accountUid); - if (message.regionName != null && Object.hasOwnProperty.call(message, "regionName")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.regionName); + if (!writer) writer = $Writer.create(); + if (message.username != null && Object.hasOwnProperty.call(message, 'username')) + writer.uint32(/* id 1, wireType 2 =*/ 10).string(message.username); + if (message.accountUid != null && Object.hasOwnProperty.call(message, 'accountUid')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.accountUid); + if (message.regionName != null && Object.hasOwnProperty.call(message, 'regionName')) + writer.uint32(/* id 3, wireType 2 =*/ 26).string(message.regionName); return writer; }; @@ -30129,27 +31343,27 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ GlobalUserAccount.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.GlobalUserAccount(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.GlobalUserAccount(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.username = reader.string(); break; } - case 2: { + case 2: { message.accountUid = reader.bytes(); break; } - case 3: { + case 3: { message.regionName = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -30166,8 +31380,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ GlobalUserAccount.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -30180,17 +31393,19 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ GlobalUserAccount.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.username != null && message.hasOwnProperty("username")) - if (!$util.isString(message.username)) - return "username: string expected"; - if (message.accountUid != null && message.hasOwnProperty("accountUid")) - if (!(message.accountUid && typeof message.accountUid.length === "number" || $util.isString(message.accountUid))) - return "accountUid: buffer expected"; - if (message.regionName != null && message.hasOwnProperty("regionName")) - if (!$util.isString(message.regionName)) - return "regionName: string expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.username != null && message.hasOwnProperty('username')) + if (!$util.isString(message.username)) return 'username: string expected'; + if (message.accountUid != null && message.hasOwnProperty('accountUid')) + if ( + !( + (message.accountUid && typeof message.accountUid.length === 'number') || + $util.isString(message.accountUid) + ) + ) + return 'accountUid: buffer expected'; + if (message.regionName != null && message.hasOwnProperty('regionName')) + if (!$util.isString(message.regionName)) return 'regionName: string expected'; return null; }; @@ -30203,18 +31418,18 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.GlobalUserAccount} GlobalUserAccount */ GlobalUserAccount.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.GlobalUserAccount) - return object; + if (object instanceof $root.Authentication.GlobalUserAccount) return object; let message = new $root.Authentication.GlobalUserAccount(); - if (object.username != null) - message.username = String(object.username); + if (object.username != null) message.username = String(object.username); if (object.accountUid != null) - if (typeof object.accountUid === "string") - $util.base64.decode(object.accountUid, message.accountUid = $util.newBuffer($util.base64.length(object.accountUid)), 0); - else if (object.accountUid.length >= 0) - message.accountUid = object.accountUid; - if (object.regionName != null) - message.regionName = String(object.regionName); + if (typeof object.accountUid === 'string') + $util.base64.decode( + object.accountUid, + (message.accountUid = $util.newBuffer($util.base64.length(object.accountUid))), + 0 + ); + else if (object.accountUid.length >= 0) message.accountUid = object.accountUid; + if (object.regionName != null) message.regionName = String(object.regionName); return message; }; @@ -30228,25 +31443,26 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ GlobalUserAccount.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - object.username = ""; - if (options.bytes === String) - object.accountUid = ""; + object.username = ''; + if (options.bytes === String) object.accountUid = ''; else { object.accountUid = []; - if (options.bytes !== Array) - object.accountUid = $util.newBuffer(object.accountUid); - } - object.regionName = ""; - } - if (message.username != null && message.hasOwnProperty("username")) - object.username = message.username; - if (message.accountUid != null && message.hasOwnProperty("accountUid")) - object.accountUid = options.bytes === String ? $util.base64.encode(message.accountUid, 0, message.accountUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.accountUid) : message.accountUid; - if (message.regionName != null && message.hasOwnProperty("regionName")) + if (options.bytes !== Array) object.accountUid = $util.newBuffer(object.accountUid); + } + object.regionName = ''; + } + if (message.username != null && message.hasOwnProperty('username')) object.username = message.username; + if (message.accountUid != null && message.hasOwnProperty('accountUid')) + object.accountUid = + options.bytes === String + ? $util.base64.encode(message.accountUid, 0, message.accountUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.accountUid) + : message.accountUid; + if (message.regionName != null && message.hasOwnProperty('regionName')) object.regionName = message.regionName; return object; }; @@ -30272,16 +31488,15 @@ export const Authentication = $root.Authentication = (() => { */ GlobalUserAccount.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.GlobalUserAccount"; + return typeUrlPrefix + '/Authentication.GlobalUserAccount'; }; return GlobalUserAccount; })(); - Authentication.AccountUsername = (function() { - + Authentication.AccountUsername = (function () { /** * Properties of an AccountUsername. * @memberof Authentication @@ -30301,8 +31516,7 @@ export const Authentication = $root.Authentication = (() => { function AccountUsername(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -30311,7 +31525,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.AccountUsername * @instance */ - AccountUsername.prototype.username = ""; + AccountUsername.prototype.username = ''; /** * AccountUsername dateActive. @@ -30319,7 +31533,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.AccountUsername * @instance */ - AccountUsername.prototype.dateActive = ""; + AccountUsername.prototype.dateActive = ''; /** * Creates a new AccountUsername instance using the specified properties. @@ -30343,12 +31557,11 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ AccountUsername.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.username != null && Object.hasOwnProperty.call(message, "username")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.username); - if (message.dateActive != null && Object.hasOwnProperty.call(message, "dateActive")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.dateActive); + if (!writer) writer = $Writer.create(); + if (message.username != null && Object.hasOwnProperty.call(message, 'username')) + writer.uint32(/* id 1, wireType 2 =*/ 10).string(message.username); + if (message.dateActive != null && Object.hasOwnProperty.call(message, 'dateActive')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.dateActive); return writer; }; @@ -30377,23 +31590,23 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ AccountUsername.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.AccountUsername(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.AccountUsername(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.username = reader.string(); break; } - case 2: { + case 2: { message.dateActive = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -30410,8 +31623,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ AccountUsername.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -30424,14 +31636,11 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ AccountUsername.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.username != null && message.hasOwnProperty("username")) - if (!$util.isString(message.username)) - return "username: string expected"; - if (message.dateActive != null && message.hasOwnProperty("dateActive")) - if (!$util.isString(message.dateActive)) - return "dateActive: string expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.username != null && message.hasOwnProperty('username')) + if (!$util.isString(message.username)) return 'username: string expected'; + if (message.dateActive != null && message.hasOwnProperty('dateActive')) + if (!$util.isString(message.dateActive)) return 'dateActive: string expected'; return null; }; @@ -30444,13 +31653,10 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.AccountUsername} AccountUsername */ AccountUsername.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.AccountUsername) - return object; + if (object instanceof $root.Authentication.AccountUsername) return object; let message = new $root.Authentication.AccountUsername(); - if (object.username != null) - message.username = String(object.username); - if (object.dateActive != null) - message.dateActive = String(object.dateActive); + if (object.username != null) message.username = String(object.username); + if (object.dateActive != null) message.dateActive = String(object.dateActive); return message; }; @@ -30464,16 +31670,14 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ AccountUsername.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - object.username = ""; - object.dateActive = ""; + object.username = ''; + object.dateActive = ''; } - if (message.username != null && message.hasOwnProperty("username")) - object.username = message.username; - if (message.dateActive != null && message.hasOwnProperty("dateActive")) + if (message.username != null && message.hasOwnProperty('username')) object.username = message.username; + if (message.dateActive != null && message.hasOwnProperty('dateActive')) object.dateActive = message.dateActive; return object; }; @@ -30499,16 +31703,15 @@ export const Authentication = $root.Authentication = (() => { */ AccountUsername.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.AccountUsername"; + return typeUrlPrefix + '/Authentication.AccountUsername'; }; return AccountUsername; })(); - Authentication.SsoServiceProviderRequest = (function() { - + Authentication.SsoServiceProviderRequest = (function () { /** * Properties of a SsoServiceProviderRequest. * @memberof Authentication @@ -30529,8 +31732,7 @@ export const Authentication = $root.Authentication = (() => { function SsoServiceProviderRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -30539,7 +31741,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.SsoServiceProviderRequest * @instance */ - SsoServiceProviderRequest.prototype.name = ""; + SsoServiceProviderRequest.prototype.name = ''; /** * SsoServiceProviderRequest clientVersion. @@ -30547,7 +31749,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.SsoServiceProviderRequest * @instance */ - SsoServiceProviderRequest.prototype.clientVersion = ""; + SsoServiceProviderRequest.prototype.clientVersion = ''; /** * SsoServiceProviderRequest locale. @@ -30555,7 +31757,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.SsoServiceProviderRequest * @instance */ - SsoServiceProviderRequest.prototype.locale = ""; + SsoServiceProviderRequest.prototype.locale = ''; /** * Creates a new SsoServiceProviderRequest instance using the specified properties. @@ -30579,14 +31781,13 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ SsoServiceProviderRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.clientVersion != null && Object.hasOwnProperty.call(message, "clientVersion")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.clientVersion); - if (message.locale != null && Object.hasOwnProperty.call(message, "locale")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.locale); + if (!writer) writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, 'name')) + writer.uint32(/* id 1, wireType 2 =*/ 10).string(message.name); + if (message.clientVersion != null && Object.hasOwnProperty.call(message, 'clientVersion')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.clientVersion); + if (message.locale != null && Object.hasOwnProperty.call(message, 'locale')) + writer.uint32(/* id 3, wireType 2 =*/ 26).string(message.locale); return writer; }; @@ -30615,27 +31816,27 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SsoServiceProviderRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.SsoServiceProviderRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.SsoServiceProviderRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.name = reader.string(); break; } - case 2: { + case 2: { message.clientVersion = reader.string(); break; } - case 3: { + case 3: { message.locale = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -30652,8 +31853,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SsoServiceProviderRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -30666,17 +31866,13 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ SsoServiceProviderRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.clientVersion != null && message.hasOwnProperty("clientVersion")) - if (!$util.isString(message.clientVersion)) - return "clientVersion: string expected"; - if (message.locale != null && message.hasOwnProperty("locale")) - if (!$util.isString(message.locale)) - return "locale: string expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.name != null && message.hasOwnProperty('name')) + if (!$util.isString(message.name)) return 'name: string expected'; + if (message.clientVersion != null && message.hasOwnProperty('clientVersion')) + if (!$util.isString(message.clientVersion)) return 'clientVersion: string expected'; + if (message.locale != null && message.hasOwnProperty('locale')) + if (!$util.isString(message.locale)) return 'locale: string expected'; return null; }; @@ -30689,15 +31885,11 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.SsoServiceProviderRequest} SsoServiceProviderRequest */ SsoServiceProviderRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.SsoServiceProviderRequest) - return object; + if (object instanceof $root.Authentication.SsoServiceProviderRequest) return object; let message = new $root.Authentication.SsoServiceProviderRequest(); - if (object.name != null) - message.name = String(object.name); - if (object.clientVersion != null) - message.clientVersion = String(object.clientVersion); - if (object.locale != null) - message.locale = String(object.locale); + if (object.name != null) message.name = String(object.name); + if (object.clientVersion != null) message.clientVersion = String(object.clientVersion); + if (object.locale != null) message.locale = String(object.locale); return message; }; @@ -30711,20 +31903,17 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ SsoServiceProviderRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - object.name = ""; - object.clientVersion = ""; - object.locale = ""; + object.name = ''; + object.clientVersion = ''; + object.locale = ''; } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.clientVersion != null && message.hasOwnProperty("clientVersion")) + if (message.name != null && message.hasOwnProperty('name')) object.name = message.name; + if (message.clientVersion != null && message.hasOwnProperty('clientVersion')) object.clientVersion = message.clientVersion; - if (message.locale != null && message.hasOwnProperty("locale")) - object.locale = message.locale; + if (message.locale != null && message.hasOwnProperty('locale')) object.locale = message.locale; return object; }; @@ -30749,16 +31938,15 @@ export const Authentication = $root.Authentication = (() => { */ SsoServiceProviderRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.SsoServiceProviderRequest"; + return typeUrlPrefix + '/Authentication.SsoServiceProviderRequest'; }; return SsoServiceProviderRequest; })(); - Authentication.SsoServiceProviderResponse = (function() { - + Authentication.SsoServiceProviderResponse = (function () { /** * Properties of a SsoServiceProviderResponse. * @memberof Authentication @@ -30780,8 +31968,7 @@ export const Authentication = $root.Authentication = (() => { function SsoServiceProviderResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -30790,7 +31977,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.SsoServiceProviderResponse * @instance */ - SsoServiceProviderResponse.prototype.name = ""; + SsoServiceProviderResponse.prototype.name = ''; /** * SsoServiceProviderResponse spUrl. @@ -30798,7 +31985,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.SsoServiceProviderResponse * @instance */ - SsoServiceProviderResponse.prototype.spUrl = ""; + SsoServiceProviderResponse.prototype.spUrl = ''; /** * SsoServiceProviderResponse isCloud. @@ -30814,7 +32001,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.SsoServiceProviderResponse * @instance */ - SsoServiceProviderResponse.prototype.clientVersion = ""; + SsoServiceProviderResponse.prototype.clientVersion = ''; /** * Creates a new SsoServiceProviderResponse instance using the specified properties. @@ -30838,16 +32025,15 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ SsoServiceProviderResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.spUrl != null && Object.hasOwnProperty.call(message, "spUrl")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.spUrl); - if (message.isCloud != null && Object.hasOwnProperty.call(message, "isCloud")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.isCloud); - if (message.clientVersion != null && Object.hasOwnProperty.call(message, "clientVersion")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.clientVersion); + if (!writer) writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, 'name')) + writer.uint32(/* id 1, wireType 2 =*/ 10).string(message.name); + if (message.spUrl != null && Object.hasOwnProperty.call(message, 'spUrl')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.spUrl); + if (message.isCloud != null && Object.hasOwnProperty.call(message, 'isCloud')) + writer.uint32(/* id 3, wireType 0 =*/ 24).bool(message.isCloud); + if (message.clientVersion != null && Object.hasOwnProperty.call(message, 'clientVersion')) + writer.uint32(/* id 4, wireType 2 =*/ 34).string(message.clientVersion); return writer; }; @@ -30876,31 +32062,31 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SsoServiceProviderResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.SsoServiceProviderResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.SsoServiceProviderResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.name = reader.string(); break; } - case 2: { + case 2: { message.spUrl = reader.string(); break; } - case 3: { + case 3: { message.isCloud = reader.bool(); break; } - case 4: { + case 4: { message.clientVersion = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -30917,8 +32103,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SsoServiceProviderResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -30931,20 +32116,15 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ SsoServiceProviderResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.spUrl != null && message.hasOwnProperty("spUrl")) - if (!$util.isString(message.spUrl)) - return "spUrl: string expected"; - if (message.isCloud != null && message.hasOwnProperty("isCloud")) - if (typeof message.isCloud !== "boolean") - return "isCloud: boolean expected"; - if (message.clientVersion != null && message.hasOwnProperty("clientVersion")) - if (!$util.isString(message.clientVersion)) - return "clientVersion: string expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.name != null && message.hasOwnProperty('name')) + if (!$util.isString(message.name)) return 'name: string expected'; + if (message.spUrl != null && message.hasOwnProperty('spUrl')) + if (!$util.isString(message.spUrl)) return 'spUrl: string expected'; + if (message.isCloud != null && message.hasOwnProperty('isCloud')) + if (typeof message.isCloud !== 'boolean') return 'isCloud: boolean expected'; + if (message.clientVersion != null && message.hasOwnProperty('clientVersion')) + if (!$util.isString(message.clientVersion)) return 'clientVersion: string expected'; return null; }; @@ -30957,17 +32137,12 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.SsoServiceProviderResponse} SsoServiceProviderResponse */ SsoServiceProviderResponse.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.SsoServiceProviderResponse) - return object; + if (object instanceof $root.Authentication.SsoServiceProviderResponse) return object; let message = new $root.Authentication.SsoServiceProviderResponse(); - if (object.name != null) - message.name = String(object.name); - if (object.spUrl != null) - message.spUrl = String(object.spUrl); - if (object.isCloud != null) - message.isCloud = Boolean(object.isCloud); - if (object.clientVersion != null) - message.clientVersion = String(object.clientVersion); + if (object.name != null) message.name = String(object.name); + if (object.spUrl != null) message.spUrl = String(object.spUrl); + if (object.isCloud != null) message.isCloud = Boolean(object.isCloud); + if (object.clientVersion != null) message.clientVersion = String(object.clientVersion); return message; }; @@ -30981,22 +32156,18 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ SsoServiceProviderResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - object.name = ""; - object.spUrl = ""; + object.name = ''; + object.spUrl = ''; object.isCloud = false; - object.clientVersion = ""; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.spUrl != null && message.hasOwnProperty("spUrl")) - object.spUrl = message.spUrl; - if (message.isCloud != null && message.hasOwnProperty("isCloud")) - object.isCloud = message.isCloud; - if (message.clientVersion != null && message.hasOwnProperty("clientVersion")) + object.clientVersion = ''; + } + if (message.name != null && message.hasOwnProperty('name')) object.name = message.name; + if (message.spUrl != null && message.hasOwnProperty('spUrl')) object.spUrl = message.spUrl; + if (message.isCloud != null && message.hasOwnProperty('isCloud')) object.isCloud = message.isCloud; + if (message.clientVersion != null && message.hasOwnProperty('clientVersion')) object.clientVersion = message.clientVersion; return object; }; @@ -31022,16 +32193,15 @@ export const Authentication = $root.Authentication = (() => { */ SsoServiceProviderResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.SsoServiceProviderResponse"; + return typeUrlPrefix + '/Authentication.SsoServiceProviderResponse'; }; return SsoServiceProviderResponse; })(); - Authentication.UserSettingRequest = (function() { - + Authentication.UserSettingRequest = (function () { /** * Properties of a UserSettingRequest. * @memberof Authentication @@ -31051,8 +32221,7 @@ export const Authentication = $root.Authentication = (() => { function UserSettingRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -31061,7 +32230,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.UserSettingRequest * @instance */ - UserSettingRequest.prototype.setting = ""; + UserSettingRequest.prototype.setting = ''; /** * UserSettingRequest value. @@ -31069,7 +32238,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.UserSettingRequest * @instance */ - UserSettingRequest.prototype.value = ""; + UserSettingRequest.prototype.value = ''; /** * Creates a new UserSettingRequest instance using the specified properties. @@ -31093,12 +32262,11 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ UserSettingRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.setting != null && Object.hasOwnProperty.call(message, "setting")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.setting); - if (message.value != null && Object.hasOwnProperty.call(message, "value")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.value); + if (!writer) writer = $Writer.create(); + if (message.setting != null && Object.hasOwnProperty.call(message, 'setting')) + writer.uint32(/* id 1, wireType 2 =*/ 10).string(message.setting); + if (message.value != null && Object.hasOwnProperty.call(message, 'value')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.value); return writer; }; @@ -31127,23 +32295,23 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ UserSettingRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.UserSettingRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.UserSettingRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.setting = reader.string(); break; } - case 2: { + case 2: { message.value = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -31160,8 +32328,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ UserSettingRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -31174,14 +32341,11 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ UserSettingRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.setting != null && message.hasOwnProperty("setting")) - if (!$util.isString(message.setting)) - return "setting: string expected"; - if (message.value != null && message.hasOwnProperty("value")) - if (!$util.isString(message.value)) - return "value: string expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.setting != null && message.hasOwnProperty('setting')) + if (!$util.isString(message.setting)) return 'setting: string expected'; + if (message.value != null && message.hasOwnProperty('value')) + if (!$util.isString(message.value)) return 'value: string expected'; return null; }; @@ -31194,13 +32358,10 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.UserSettingRequest} UserSettingRequest */ UserSettingRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.UserSettingRequest) - return object; + if (object instanceof $root.Authentication.UserSettingRequest) return object; let message = new $root.Authentication.UserSettingRequest(); - if (object.setting != null) - message.setting = String(object.setting); - if (object.value != null) - message.value = String(object.value); + if (object.setting != null) message.setting = String(object.setting); + if (object.value != null) message.value = String(object.value); return message; }; @@ -31214,17 +32375,14 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ UserSettingRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - object.setting = ""; - object.value = ""; + object.setting = ''; + object.value = ''; } - if (message.setting != null && message.hasOwnProperty("setting")) - object.setting = message.setting; - if (message.value != null && message.hasOwnProperty("value")) - object.value = message.value; + if (message.setting != null && message.hasOwnProperty('setting')) object.setting = message.setting; + if (message.value != null && message.hasOwnProperty('value')) object.value = message.value; return object; }; @@ -31249,9 +32407,9 @@ export const Authentication = $root.Authentication = (() => { */ UserSettingRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.UserSettingRequest"; + return typeUrlPrefix + '/Authentication.UserSettingRequest'; }; return UserSettingRequest; @@ -31265,11 +32423,12 @@ export const Authentication = $root.Authentication = (() => { * @property {number} BIOMETRIC=1 BIOMETRIC value * @property {number} ACCOUNT_RECOVER=2 ACCOUNT_RECOVER value */ - Authentication.AlternateAuthenticationType = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "ALTERNATE_MASTER_PASSWORD"] = 0; - values[valuesById[1] = "BIOMETRIC"] = 1; - values[valuesById[2] = "ACCOUNT_RECOVER"] = 2; + Authentication.AlternateAuthenticationType = (function () { + const valuesById = {}, + values = Object.create(valuesById); + values[(valuesById[0] = 'ALTERNATE_MASTER_PASSWORD')] = 0; + values[(valuesById[1] = 'BIOMETRIC')] = 1; + values[(valuesById[2] = 'ACCOUNT_RECOVER')] = 2; return values; })(); @@ -31286,21 +32445,21 @@ export const Authentication = $root.Authentication = (() => { * @property {number} VALIDATE_DEVICE_VERIFICATION_CODE_THROTTLE=6 VALIDATE_DEVICE_VERIFICATION_CODE_THROTTLE value * @property {number} VALIDATE_CREATE_USER_VERIFICATION_CODE_THROTTLE=7 VALIDATE_CREATE_USER_VERIFICATION_CODE_THROTTLE value */ - Authentication.ThrottleType = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "PASSWORD_RETRY_THROTTLE"] = 0; - values[valuesById[1] = "PASSWORD_RETRY_LEGACY_THROTTLE"] = 1; - values[valuesById[2] = "TWO_FA_THROTTLE"] = 2; - values[valuesById[3] = "TWO_FA_LEGACY_THROTTLE"] = 3; - values[valuesById[4] = "QA_RETRY_THROTTLE"] = 4; - values[valuesById[5] = "ACCOUNT_RECOVER_THROTTLE"] = 5; - values[valuesById[6] = "VALIDATE_DEVICE_VERIFICATION_CODE_THROTTLE"] = 6; - values[valuesById[7] = "VALIDATE_CREATE_USER_VERIFICATION_CODE_THROTTLE"] = 7; + Authentication.ThrottleType = (function () { + const valuesById = {}, + values = Object.create(valuesById); + values[(valuesById[0] = 'PASSWORD_RETRY_THROTTLE')] = 0; + values[(valuesById[1] = 'PASSWORD_RETRY_LEGACY_THROTTLE')] = 1; + values[(valuesById[2] = 'TWO_FA_THROTTLE')] = 2; + values[(valuesById[3] = 'TWO_FA_LEGACY_THROTTLE')] = 3; + values[(valuesById[4] = 'QA_RETRY_THROTTLE')] = 4; + values[(valuesById[5] = 'ACCOUNT_RECOVER_THROTTLE')] = 5; + values[(valuesById[6] = 'VALIDATE_DEVICE_VERIFICATION_CODE_THROTTLE')] = 6; + values[(valuesById[7] = 'VALIDATE_CREATE_USER_VERIFICATION_CODE_THROTTLE')] = 7; return values; })(); - Authentication.ThrottleState = (function() { - + Authentication.ThrottleState = (function () { /** * Properties of a ThrottleState. * @memberof Authentication @@ -31322,8 +32481,7 @@ export const Authentication = $root.Authentication = (() => { function ThrottleState(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -31340,7 +32498,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.ThrottleState * @instance */ - ThrottleState.prototype.key = ""; + ThrottleState.prototype.key = ''; /** * ThrottleState value. @@ -31348,7 +32506,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.ThrottleState * @instance */ - ThrottleState.prototype.value = ""; + ThrottleState.prototype.value = ''; /** * ThrottleState state. @@ -31380,16 +32538,15 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ ThrottleState.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.type != null && Object.hasOwnProperty.call(message, "type")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.type); - if (message.key != null && Object.hasOwnProperty.call(message, "key")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.key); - if (message.value != null && Object.hasOwnProperty.call(message, "value")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.value); - if (message.state != null && Object.hasOwnProperty.call(message, "state")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.state); + if (!writer) writer = $Writer.create(); + if (message.type != null && Object.hasOwnProperty.call(message, 'type')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int32(message.type); + if (message.key != null && Object.hasOwnProperty.call(message, 'key')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.key); + if (message.value != null && Object.hasOwnProperty.call(message, 'value')) + writer.uint32(/* id 3, wireType 2 =*/ 26).string(message.value); + if (message.state != null && Object.hasOwnProperty.call(message, 'state')) + writer.uint32(/* id 4, wireType 0 =*/ 32).bool(message.state); return writer; }; @@ -31418,31 +32575,31 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ThrottleState.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.ThrottleState(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.ThrottleState(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.type = reader.int32(); break; } - case 2: { + case 2: { message.key = reader.string(); break; } - case 3: { + case 3: { message.value = reader.string(); break; } - case 4: { + case 4: { message.state = reader.bool(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -31459,8 +32616,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ThrottleState.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -31473,31 +32629,27 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ ThrottleState.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.type != null && message.hasOwnProperty("type")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.type != null && message.hasOwnProperty('type')) switch (message.type) { - default: - return "type: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - break; + default: + return 'type: enum value expected'; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + break; } - if (message.key != null && message.hasOwnProperty("key")) - if (!$util.isString(message.key)) - return "key: string expected"; - if (message.value != null && message.hasOwnProperty("value")) - if (!$util.isString(message.value)) - return "value: string expected"; - if (message.state != null && message.hasOwnProperty("state")) - if (typeof message.state !== "boolean") - return "state: boolean expected"; + if (message.key != null && message.hasOwnProperty('key')) + if (!$util.isString(message.key)) return 'key: string expected'; + if (message.value != null && message.hasOwnProperty('value')) + if (!$util.isString(message.value)) return 'value: string expected'; + if (message.state != null && message.hasOwnProperty('state')) + if (typeof message.state !== 'boolean') return 'state: boolean expected'; return null; }; @@ -31510,55 +32662,51 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.ThrottleState} ThrottleState */ ThrottleState.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.ThrottleState) - return object; + if (object instanceof $root.Authentication.ThrottleState) return object; let message = new $root.Authentication.ThrottleState(); switch (object.type) { - default: - if (typeof object.type === "number") { - message.type = object.type; - break; - } - break; - case "PASSWORD_RETRY_THROTTLE": - case 0: - message.type = 0; - break; - case "PASSWORD_RETRY_LEGACY_THROTTLE": - case 1: - message.type = 1; - break; - case "TWO_FA_THROTTLE": - case 2: - message.type = 2; - break; - case "TWO_FA_LEGACY_THROTTLE": - case 3: - message.type = 3; - break; - case "QA_RETRY_THROTTLE": - case 4: - message.type = 4; - break; - case "ACCOUNT_RECOVER_THROTTLE": - case 5: - message.type = 5; - break; - case "VALIDATE_DEVICE_VERIFICATION_CODE_THROTTLE": - case 6: - message.type = 6; - break; - case "VALIDATE_CREATE_USER_VERIFICATION_CODE_THROTTLE": - case 7: - message.type = 7; - break; + default: + if (typeof object.type === 'number') { + message.type = object.type; + break; + } + break; + case 'PASSWORD_RETRY_THROTTLE': + case 0: + message.type = 0; + break; + case 'PASSWORD_RETRY_LEGACY_THROTTLE': + case 1: + message.type = 1; + break; + case 'TWO_FA_THROTTLE': + case 2: + message.type = 2; + break; + case 'TWO_FA_LEGACY_THROTTLE': + case 3: + message.type = 3; + break; + case 'QA_RETRY_THROTTLE': + case 4: + message.type = 4; + break; + case 'ACCOUNT_RECOVER_THROTTLE': + case 5: + message.type = 5; + break; + case 'VALIDATE_DEVICE_VERIFICATION_CODE_THROTTLE': + case 6: + message.type = 6; + break; + case 'VALIDATE_CREATE_USER_VERIFICATION_CODE_THROTTLE': + case 7: + message.type = 7; + break; } - if (object.key != null) - message.key = String(object.key); - if (object.value != null) - message.value = String(object.value); - if (object.state != null) - message.state = Boolean(object.state); + if (object.key != null) message.key = String(object.key); + if (object.value != null) message.value = String(object.value); + if (object.state != null) message.state = Boolean(object.state); return message; }; @@ -31572,23 +32720,24 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ ThrottleState.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - object.type = options.enums === String ? "PASSWORD_RETRY_THROTTLE" : 0; - object.key = ""; - object.value = ""; + object.type = options.enums === String ? 'PASSWORD_RETRY_THROTTLE' : 0; + object.key = ''; + object.value = ''; object.state = false; } - if (message.type != null && message.hasOwnProperty("type")) - object.type = options.enums === String ? $root.Authentication.ThrottleType[message.type] === undefined ? message.type : $root.Authentication.ThrottleType[message.type] : message.type; - if (message.key != null && message.hasOwnProperty("key")) - object.key = message.key; - if (message.value != null && message.hasOwnProperty("value")) - object.value = message.value; - if (message.state != null && message.hasOwnProperty("state")) - object.state = message.state; + if (message.type != null && message.hasOwnProperty('type')) + object.type = + options.enums === String + ? $root.Authentication.ThrottleType[message.type] === undefined + ? message.type + : $root.Authentication.ThrottleType[message.type] + : message.type; + if (message.key != null && message.hasOwnProperty('key')) object.key = message.key; + if (message.value != null && message.hasOwnProperty('value')) object.value = message.value; + if (message.state != null && message.hasOwnProperty('state')) object.state = message.state; return object; }; @@ -31613,16 +32762,15 @@ export const Authentication = $root.Authentication = (() => { */ ThrottleState.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.ThrottleState"; + return typeUrlPrefix + '/Authentication.ThrottleState'; }; return ThrottleState; })(); - Authentication.ThrottleState2 = (function() { - + Authentication.ThrottleState2 = (function () { /** * Properties of a ThrottleState2. * @memberof Authentication @@ -31648,8 +32796,7 @@ export const Authentication = $root.Authentication = (() => { function ThrottleState2(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -31658,7 +32805,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.ThrottleState2 * @instance */ - ThrottleState2.prototype.key = ""; + ThrottleState2.prototype.key = ''; /** * ThrottleState2 keyDescription. @@ -31666,7 +32813,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.ThrottleState2 * @instance */ - ThrottleState2.prototype.keyDescription = ""; + ThrottleState2.prototype.keyDescription = ''; /** * ThrottleState2 value. @@ -31674,7 +32821,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.ThrottleState2 * @instance */ - ThrottleState2.prototype.value = ""; + ThrottleState2.prototype.value = ''; /** * ThrottleState2 valueDescription. @@ -31682,7 +32829,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.ThrottleState2 * @instance */ - ThrottleState2.prototype.valueDescription = ""; + ThrottleState2.prototype.valueDescription = ''; /** * ThrottleState2 identifier. @@ -31690,7 +32837,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.ThrottleState2 * @instance */ - ThrottleState2.prototype.identifier = ""; + ThrottleState2.prototype.identifier = ''; /** * ThrottleState2 locked. @@ -31738,24 +32885,23 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ ThrottleState2.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.key != null && Object.hasOwnProperty.call(message, "key")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.key); - if (message.keyDescription != null && Object.hasOwnProperty.call(message, "keyDescription")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.keyDescription); - if (message.value != null && Object.hasOwnProperty.call(message, "value")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.value); - if (message.valueDescription != null && Object.hasOwnProperty.call(message, "valueDescription")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.valueDescription); - if (message.identifier != null && Object.hasOwnProperty.call(message, "identifier")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.identifier); - if (message.locked != null && Object.hasOwnProperty.call(message, "locked")) - writer.uint32(/* id 6, wireType 0 =*/48).bool(message.locked); - if (message.includedInAllClear != null && Object.hasOwnProperty.call(message, "includedInAllClear")) - writer.uint32(/* id 7, wireType 0 =*/56).bool(message.includedInAllClear); - if (message.expireSeconds != null && Object.hasOwnProperty.call(message, "expireSeconds")) - writer.uint32(/* id 8, wireType 0 =*/64).int32(message.expireSeconds); + if (!writer) writer = $Writer.create(); + if (message.key != null && Object.hasOwnProperty.call(message, 'key')) + writer.uint32(/* id 1, wireType 2 =*/ 10).string(message.key); + if (message.keyDescription != null && Object.hasOwnProperty.call(message, 'keyDescription')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.keyDescription); + if (message.value != null && Object.hasOwnProperty.call(message, 'value')) + writer.uint32(/* id 3, wireType 2 =*/ 26).string(message.value); + if (message.valueDescription != null && Object.hasOwnProperty.call(message, 'valueDescription')) + writer.uint32(/* id 4, wireType 2 =*/ 34).string(message.valueDescription); + if (message.identifier != null && Object.hasOwnProperty.call(message, 'identifier')) + writer.uint32(/* id 5, wireType 2 =*/ 42).string(message.identifier); + if (message.locked != null && Object.hasOwnProperty.call(message, 'locked')) + writer.uint32(/* id 6, wireType 0 =*/ 48).bool(message.locked); + if (message.includedInAllClear != null && Object.hasOwnProperty.call(message, 'includedInAllClear')) + writer.uint32(/* id 7, wireType 0 =*/ 56).bool(message.includedInAllClear); + if (message.expireSeconds != null && Object.hasOwnProperty.call(message, 'expireSeconds')) + writer.uint32(/* id 8, wireType 0 =*/ 64).int32(message.expireSeconds); return writer; }; @@ -31784,47 +32930,47 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ThrottleState2.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.ThrottleState2(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.ThrottleState2(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.key = reader.string(); break; } - case 2: { + case 2: { message.keyDescription = reader.string(); break; } - case 3: { + case 3: { message.value = reader.string(); break; } - case 4: { + case 4: { message.valueDescription = reader.string(); break; } - case 5: { + case 5: { message.identifier = reader.string(); break; } - case 6: { + case 6: { message.locked = reader.bool(); break; } - case 7: { + case 7: { message.includedInAllClear = reader.bool(); break; } - case 8: { + case 8: { message.expireSeconds = reader.int32(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -31841,8 +32987,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ThrottleState2.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -31855,32 +33000,23 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ ThrottleState2.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.key != null && message.hasOwnProperty("key")) - if (!$util.isString(message.key)) - return "key: string expected"; - if (message.keyDescription != null && message.hasOwnProperty("keyDescription")) - if (!$util.isString(message.keyDescription)) - return "keyDescription: string expected"; - if (message.value != null && message.hasOwnProperty("value")) - if (!$util.isString(message.value)) - return "value: string expected"; - if (message.valueDescription != null && message.hasOwnProperty("valueDescription")) - if (!$util.isString(message.valueDescription)) - return "valueDescription: string expected"; - if (message.identifier != null && message.hasOwnProperty("identifier")) - if (!$util.isString(message.identifier)) - return "identifier: string expected"; - if (message.locked != null && message.hasOwnProperty("locked")) - if (typeof message.locked !== "boolean") - return "locked: boolean expected"; - if (message.includedInAllClear != null && message.hasOwnProperty("includedInAllClear")) - if (typeof message.includedInAllClear !== "boolean") - return "includedInAllClear: boolean expected"; - if (message.expireSeconds != null && message.hasOwnProperty("expireSeconds")) - if (!$util.isInteger(message.expireSeconds)) - return "expireSeconds: integer expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.key != null && message.hasOwnProperty('key')) + if (!$util.isString(message.key)) return 'key: string expected'; + if (message.keyDescription != null && message.hasOwnProperty('keyDescription')) + if (!$util.isString(message.keyDescription)) return 'keyDescription: string expected'; + if (message.value != null && message.hasOwnProperty('value')) + if (!$util.isString(message.value)) return 'value: string expected'; + if (message.valueDescription != null && message.hasOwnProperty('valueDescription')) + if (!$util.isString(message.valueDescription)) return 'valueDescription: string expected'; + if (message.identifier != null && message.hasOwnProperty('identifier')) + if (!$util.isString(message.identifier)) return 'identifier: string expected'; + if (message.locked != null && message.hasOwnProperty('locked')) + if (typeof message.locked !== 'boolean') return 'locked: boolean expected'; + if (message.includedInAllClear != null && message.hasOwnProperty('includedInAllClear')) + if (typeof message.includedInAllClear !== 'boolean') return 'includedInAllClear: boolean expected'; + if (message.expireSeconds != null && message.hasOwnProperty('expireSeconds')) + if (!$util.isInteger(message.expireSeconds)) return 'expireSeconds: integer expected'; return null; }; @@ -31893,25 +33029,16 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.ThrottleState2} ThrottleState2 */ ThrottleState2.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.ThrottleState2) - return object; + if (object instanceof $root.Authentication.ThrottleState2) return object; let message = new $root.Authentication.ThrottleState2(); - if (object.key != null) - message.key = String(object.key); - if (object.keyDescription != null) - message.keyDescription = String(object.keyDescription); - if (object.value != null) - message.value = String(object.value); - if (object.valueDescription != null) - message.valueDescription = String(object.valueDescription); - if (object.identifier != null) - message.identifier = String(object.identifier); - if (object.locked != null) - message.locked = Boolean(object.locked); - if (object.includedInAllClear != null) - message.includedInAllClear = Boolean(object.includedInAllClear); - if (object.expireSeconds != null) - message.expireSeconds = object.expireSeconds | 0; + if (object.key != null) message.key = String(object.key); + if (object.keyDescription != null) message.keyDescription = String(object.keyDescription); + if (object.value != null) message.value = String(object.value); + if (object.valueDescription != null) message.valueDescription = String(object.valueDescription); + if (object.identifier != null) message.identifier = String(object.identifier); + if (object.locked != null) message.locked = Boolean(object.locked); + if (object.includedInAllClear != null) message.includedInAllClear = Boolean(object.includedInAllClear); + if (object.expireSeconds != null) message.expireSeconds = object.expireSeconds | 0; return message; }; @@ -31925,34 +33052,30 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ ThrottleState2.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - object.key = ""; - object.keyDescription = ""; - object.value = ""; - object.valueDescription = ""; - object.identifier = ""; + object.key = ''; + object.keyDescription = ''; + object.value = ''; + object.valueDescription = ''; + object.identifier = ''; object.locked = false; object.includedInAllClear = false; object.expireSeconds = 0; } - if (message.key != null && message.hasOwnProperty("key")) - object.key = message.key; - if (message.keyDescription != null && message.hasOwnProperty("keyDescription")) + if (message.key != null && message.hasOwnProperty('key')) object.key = message.key; + if (message.keyDescription != null && message.hasOwnProperty('keyDescription')) object.keyDescription = message.keyDescription; - if (message.value != null && message.hasOwnProperty("value")) - object.value = message.value; - if (message.valueDescription != null && message.hasOwnProperty("valueDescription")) + if (message.value != null && message.hasOwnProperty('value')) object.value = message.value; + if (message.valueDescription != null && message.hasOwnProperty('valueDescription')) object.valueDescription = message.valueDescription; - if (message.identifier != null && message.hasOwnProperty("identifier")) + if (message.identifier != null && message.hasOwnProperty('identifier')) object.identifier = message.identifier; - if (message.locked != null && message.hasOwnProperty("locked")) - object.locked = message.locked; - if (message.includedInAllClear != null && message.hasOwnProperty("includedInAllClear")) + if (message.locked != null && message.hasOwnProperty('locked')) object.locked = message.locked; + if (message.includedInAllClear != null && message.hasOwnProperty('includedInAllClear')) object.includedInAllClear = message.includedInAllClear; - if (message.expireSeconds != null && message.hasOwnProperty("expireSeconds")) + if (message.expireSeconds != null && message.hasOwnProperty('expireSeconds')) object.expireSeconds = message.expireSeconds; return object; }; @@ -31978,16 +33101,15 @@ export const Authentication = $root.Authentication = (() => { */ ThrottleState2.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.ThrottleState2"; + return typeUrlPrefix + '/Authentication.ThrottleState2'; }; return ThrottleState2; })(); - Authentication.DeviceInformation = (function() { - + Authentication.DeviceInformation = (function () { /** * Properties of a DeviceInformation. * @memberof Authentication @@ -32010,8 +33132,7 @@ export const Authentication = $root.Authentication = (() => { function DeviceInformation(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -32020,7 +33141,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.DeviceInformation * @instance */ - DeviceInformation.prototype.deviceId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + DeviceInformation.prototype.deviceId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * DeviceInformation deviceName. @@ -32028,7 +33149,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.DeviceInformation * @instance */ - DeviceInformation.prototype.deviceName = ""; + DeviceInformation.prototype.deviceName = ''; /** * DeviceInformation clientVersion. @@ -32036,7 +33157,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.DeviceInformation * @instance */ - DeviceInformation.prototype.clientVersion = ""; + DeviceInformation.prototype.clientVersion = ''; /** * DeviceInformation lastLogin. @@ -32044,7 +33165,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.DeviceInformation * @instance */ - DeviceInformation.prototype.lastLogin = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + DeviceInformation.prototype.lastLogin = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * DeviceInformation deviceStatus. @@ -32076,18 +33197,17 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ DeviceInformation.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.deviceId != null && Object.hasOwnProperty.call(message, "deviceId")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.deviceId); - if (message.deviceName != null && Object.hasOwnProperty.call(message, "deviceName")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.deviceName); - if (message.clientVersion != null && Object.hasOwnProperty.call(message, "clientVersion")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.clientVersion); - if (message.lastLogin != null && Object.hasOwnProperty.call(message, "lastLogin")) - writer.uint32(/* id 4, wireType 0 =*/32).int64(message.lastLogin); - if (message.deviceStatus != null && Object.hasOwnProperty.call(message, "deviceStatus")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.deviceStatus); + if (!writer) writer = $Writer.create(); + if (message.deviceId != null && Object.hasOwnProperty.call(message, 'deviceId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int64(message.deviceId); + if (message.deviceName != null && Object.hasOwnProperty.call(message, 'deviceName')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.deviceName); + if (message.clientVersion != null && Object.hasOwnProperty.call(message, 'clientVersion')) + writer.uint32(/* id 3, wireType 2 =*/ 26).string(message.clientVersion); + if (message.lastLogin != null && Object.hasOwnProperty.call(message, 'lastLogin')) + writer.uint32(/* id 4, wireType 0 =*/ 32).int64(message.lastLogin); + if (message.deviceStatus != null && Object.hasOwnProperty.call(message, 'deviceStatus')) + writer.uint32(/* id 5, wireType 0 =*/ 40).int32(message.deviceStatus); return writer; }; @@ -32116,35 +33236,35 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ DeviceInformation.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.DeviceInformation(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.DeviceInformation(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.deviceId = reader.int64(); break; } - case 2: { + case 2: { message.deviceName = reader.string(); break; } - case 3: { + case 3: { message.clientVersion = reader.string(); break; } - case 4: { + case 4: { message.lastLogin = reader.int64(); break; } - case 5: { + case 5: { message.deviceStatus = reader.int32(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -32161,8 +33281,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ DeviceInformation.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -32175,29 +33294,40 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ DeviceInformation.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.deviceId != null && message.hasOwnProperty("deviceId")) - if (!$util.isInteger(message.deviceId) && !(message.deviceId && $util.isInteger(message.deviceId.low) && $util.isInteger(message.deviceId.high))) - return "deviceId: integer|Long expected"; - if (message.deviceName != null && message.hasOwnProperty("deviceName")) - if (!$util.isString(message.deviceName)) - return "deviceName: string expected"; - if (message.clientVersion != null && message.hasOwnProperty("clientVersion")) - if (!$util.isString(message.clientVersion)) - return "clientVersion: string expected"; - if (message.lastLogin != null && message.hasOwnProperty("lastLogin")) - if (!$util.isInteger(message.lastLogin) && !(message.lastLogin && $util.isInteger(message.lastLogin.low) && $util.isInteger(message.lastLogin.high))) - return "lastLogin: integer|Long expected"; - if (message.deviceStatus != null && message.hasOwnProperty("deviceStatus")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.deviceId != null && message.hasOwnProperty('deviceId')) + if ( + !$util.isInteger(message.deviceId) && + !( + message.deviceId && + $util.isInteger(message.deviceId.low) && + $util.isInteger(message.deviceId.high) + ) + ) + return 'deviceId: integer|Long expected'; + if (message.deviceName != null && message.hasOwnProperty('deviceName')) + if (!$util.isString(message.deviceName)) return 'deviceName: string expected'; + if (message.clientVersion != null && message.hasOwnProperty('clientVersion')) + if (!$util.isString(message.clientVersion)) return 'clientVersion: string expected'; + if (message.lastLogin != null && message.hasOwnProperty('lastLogin')) + if ( + !$util.isInteger(message.lastLogin) && + !( + message.lastLogin && + $util.isInteger(message.lastLogin.low) && + $util.isInteger(message.lastLogin.high) + ) + ) + return 'lastLogin: integer|Long expected'; + if (message.deviceStatus != null && message.hasOwnProperty('deviceStatus')) switch (message.deviceStatus) { - default: - return "deviceStatus: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; + default: + return 'deviceStatus: enum value expected'; + case 0: + case 1: + case 2: + case 3: + break; } return null; }; @@ -32211,54 +33341,51 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.DeviceInformation} DeviceInformation */ DeviceInformation.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.DeviceInformation) - return object; + if (object instanceof $root.Authentication.DeviceInformation) return object; let message = new $root.Authentication.DeviceInformation(); if (object.deviceId != null) - if ($util.Long) - (message.deviceId = $util.Long.fromValue(object.deviceId)).unsigned = false; - else if (typeof object.deviceId === "string") - message.deviceId = parseInt(object.deviceId, 10); - else if (typeof object.deviceId === "number") - message.deviceId = object.deviceId; - else if (typeof object.deviceId === "object") - message.deviceId = new $util.LongBits(object.deviceId.low >>> 0, object.deviceId.high >>> 0).toNumber(); - if (object.deviceName != null) - message.deviceName = String(object.deviceName); - if (object.clientVersion != null) - message.clientVersion = String(object.clientVersion); + if ($util.Long) (message.deviceId = $util.Long.fromValue(object.deviceId)).unsigned = false; + else if (typeof object.deviceId === 'string') message.deviceId = parseInt(object.deviceId, 10); + else if (typeof object.deviceId === 'number') message.deviceId = object.deviceId; + else if (typeof object.deviceId === 'object') + message.deviceId = new $util.LongBits( + object.deviceId.low >>> 0, + object.deviceId.high >>> 0 + ).toNumber(); + if (object.deviceName != null) message.deviceName = String(object.deviceName); + if (object.clientVersion != null) message.clientVersion = String(object.clientVersion); if (object.lastLogin != null) - if ($util.Long) - (message.lastLogin = $util.Long.fromValue(object.lastLogin)).unsigned = false; - else if (typeof object.lastLogin === "string") - message.lastLogin = parseInt(object.lastLogin, 10); - else if (typeof object.lastLogin === "number") - message.lastLogin = object.lastLogin; - else if (typeof object.lastLogin === "object") - message.lastLogin = new $util.LongBits(object.lastLogin.low >>> 0, object.lastLogin.high >>> 0).toNumber(); + if ($util.Long) (message.lastLogin = $util.Long.fromValue(object.lastLogin)).unsigned = false; + else if (typeof object.lastLogin === 'string') message.lastLogin = parseInt(object.lastLogin, 10); + else if (typeof object.lastLogin === 'number') message.lastLogin = object.lastLogin; + else if (typeof object.lastLogin === 'object') + message.lastLogin = new $util.LongBits( + object.lastLogin.low >>> 0, + object.lastLogin.high >>> 0 + ).toNumber(); switch (object.deviceStatus) { - default: - if (typeof object.deviceStatus === "number") { - message.deviceStatus = object.deviceStatus; + default: + if (typeof object.deviceStatus === 'number') { + message.deviceStatus = object.deviceStatus; + break; + } + break; + case 'DEVICE_NEEDS_APPROVAL': + case 0: + message.deviceStatus = 0; + break; + case 'DEVICE_OK': + case 1: + message.deviceStatus = 1; + break; + case 'DEVICE_DISABLED_BY_USER': + case 2: + message.deviceStatus = 2; + break; + case 'DEVICE_LOCKED_BY_ADMIN': + case 3: + message.deviceStatus = 3; break; - } - break; - case "DEVICE_NEEDS_APPROVAL": - case 0: - message.deviceStatus = 0; - break; - case "DEVICE_OK": - case 1: - message.deviceStatus = 1; - break; - case "DEVICE_DISABLED_BY_USER": - case 2: - message.deviceStatus = 2; - break; - case "DEVICE_LOCKED_BY_ADMIN": - case 3: - message.deviceStatus = 3; - break; } return message; }; @@ -32273,40 +33400,54 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ DeviceInformation.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.deviceId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.deviceId = options.longs === String ? "0" : 0; - object.deviceName = ""; - object.clientVersion = ""; + object.deviceId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.deviceId = options.longs === String ? '0' : 0; + object.deviceName = ''; + object.clientVersion = ''; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.lastLogin = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.lastLogin = options.longs === String ? "0" : 0; - object.deviceStatus = options.enums === String ? "DEVICE_NEEDS_APPROVAL" : 0; + object.lastLogin = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.lastLogin = options.longs === String ? '0' : 0; + object.deviceStatus = options.enums === String ? 'DEVICE_NEEDS_APPROVAL' : 0; } - if (message.deviceId != null && message.hasOwnProperty("deviceId")) - if (typeof message.deviceId === "number") + if (message.deviceId != null && message.hasOwnProperty('deviceId')) + if (typeof message.deviceId === 'number') object.deviceId = options.longs === String ? String(message.deviceId) : message.deviceId; else - object.deviceId = options.longs === String ? $util.Long.prototype.toString.call(message.deviceId) : options.longs === Number ? new $util.LongBits(message.deviceId.low >>> 0, message.deviceId.high >>> 0).toNumber() : message.deviceId; - if (message.deviceName != null && message.hasOwnProperty("deviceName")) + object.deviceId = + options.longs === String + ? $util.Long.prototype.toString.call(message.deviceId) + : options.longs === Number + ? new $util.LongBits(message.deviceId.low >>> 0, message.deviceId.high >>> 0).toNumber() + : message.deviceId; + if (message.deviceName != null && message.hasOwnProperty('deviceName')) object.deviceName = message.deviceName; - if (message.clientVersion != null && message.hasOwnProperty("clientVersion")) + if (message.clientVersion != null && message.hasOwnProperty('clientVersion')) object.clientVersion = message.clientVersion; - if (message.lastLogin != null && message.hasOwnProperty("lastLogin")) - if (typeof message.lastLogin === "number") + if (message.lastLogin != null && message.hasOwnProperty('lastLogin')) + if (typeof message.lastLogin === 'number') object.lastLogin = options.longs === String ? String(message.lastLogin) : message.lastLogin; else - object.lastLogin = options.longs === String ? $util.Long.prototype.toString.call(message.lastLogin) : options.longs === Number ? new $util.LongBits(message.lastLogin.low >>> 0, message.lastLogin.high >>> 0).toNumber() : message.lastLogin; - if (message.deviceStatus != null && message.hasOwnProperty("deviceStatus")) - object.deviceStatus = options.enums === String ? $root.Authentication.DeviceStatus[message.deviceStatus] === undefined ? message.deviceStatus : $root.Authentication.DeviceStatus[message.deviceStatus] : message.deviceStatus; + object.lastLogin = + options.longs === String + ? $util.Long.prototype.toString.call(message.lastLogin) + : options.longs === Number + ? new $util.LongBits(message.lastLogin.low >>> 0, message.lastLogin.high >>> 0).toNumber() + : message.lastLogin; + if (message.deviceStatus != null && message.hasOwnProperty('deviceStatus')) + object.deviceStatus = + options.enums === String + ? $root.Authentication.DeviceStatus[message.deviceStatus] === undefined + ? message.deviceStatus + : $root.Authentication.DeviceStatus[message.deviceStatus] + : message.deviceStatus; return object; }; @@ -32331,16 +33472,15 @@ export const Authentication = $root.Authentication = (() => { */ DeviceInformation.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.DeviceInformation"; + return typeUrlPrefix + '/Authentication.DeviceInformation'; }; return DeviceInformation; })(); - Authentication.UserSetting = (function() { - + Authentication.UserSetting = (function () { /** * Properties of a UserSetting. * @memberof Authentication @@ -32360,8 +33500,7 @@ export const Authentication = $root.Authentication = (() => { function UserSetting(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -32370,7 +33509,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.UserSetting * @instance */ - UserSetting.prototype.name = ""; + UserSetting.prototype.name = ''; /** * UserSetting value. @@ -32402,12 +33541,11 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ UserSetting.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.value != null && Object.hasOwnProperty.call(message, "value")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.value); + if (!writer) writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, 'name')) + writer.uint32(/* id 1, wireType 2 =*/ 10).string(message.name); + if (message.value != null && Object.hasOwnProperty.call(message, 'value')) + writer.uint32(/* id 2, wireType 0 =*/ 16).bool(message.value); return writer; }; @@ -32436,23 +33574,23 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ UserSetting.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.UserSetting(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.UserSetting(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.name = reader.string(); break; } - case 2: { + case 2: { message.value = reader.bool(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -32469,8 +33607,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ UserSetting.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -32483,14 +33620,11 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ UserSetting.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.value != null && message.hasOwnProperty("value")) - if (typeof message.value !== "boolean") - return "value: boolean expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.name != null && message.hasOwnProperty('name')) + if (!$util.isString(message.name)) return 'name: string expected'; + if (message.value != null && message.hasOwnProperty('value')) + if (typeof message.value !== 'boolean') return 'value: boolean expected'; return null; }; @@ -32503,13 +33637,10 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.UserSetting} UserSetting */ UserSetting.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.UserSetting) - return object; + if (object instanceof $root.Authentication.UserSetting) return object; let message = new $root.Authentication.UserSetting(); - if (object.name != null) - message.name = String(object.name); - if (object.value != null) - message.value = Boolean(object.value); + if (object.name != null) message.name = String(object.name); + if (object.value != null) message.value = Boolean(object.value); return message; }; @@ -32523,17 +33654,14 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ UserSetting.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - object.name = ""; + object.name = ''; object.value = false; } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.value != null && message.hasOwnProperty("value")) - object.value = message.value; + if (message.name != null && message.hasOwnProperty('name')) object.name = message.name; + if (message.value != null && message.hasOwnProperty('value')) object.value = message.value; return object; }; @@ -32558,16 +33686,15 @@ export const Authentication = $root.Authentication = (() => { */ UserSetting.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.UserSetting"; + return typeUrlPrefix + '/Authentication.UserSetting'; }; return UserSetting; })(); - Authentication.UserDataKeyRequest = (function() { - + Authentication.UserDataKeyRequest = (function () { /** * Properties of a UserDataKeyRequest. * @memberof Authentication @@ -32587,8 +33714,7 @@ export const Authentication = $root.Authentication = (() => { this.enterpriseUserId = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -32621,12 +33747,10 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ UserDataKeyRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.enterpriseUserId != null && message.enterpriseUserId.length) { - writer.uint32(/* id 1, wireType 2 =*/10).fork(); - for (let i = 0; i < message.enterpriseUserId.length; ++i) - writer.int64(message.enterpriseUserId[i]); + writer.uint32(/* id 1, wireType 2 =*/ 10).fork(); + for (let i = 0; i < message.enterpriseUserId.length; ++i) writer.int64(message.enterpriseUserId[i]); writer.ldelim(); } return writer; @@ -32657,26 +33781,24 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ UserDataKeyRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.UserDataKeyRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.UserDataKeyRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { if (!(message.enterpriseUserId && message.enterpriseUserId.length)) message.enterpriseUserId = []; if ((tag & 7) === 2) { let end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.enterpriseUserId.push(reader.int64()); - } else - message.enterpriseUserId.push(reader.int64()); + while (reader.pos < end2) message.enterpriseUserId.push(reader.int64()); + } else message.enterpriseUserId.push(reader.int64()); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -32693,8 +33815,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ UserDataKeyRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -32707,14 +33828,19 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ UserDataKeyRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) { - if (!Array.isArray(message.enterpriseUserId)) - return "enterpriseUserId: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.enterpriseUserId != null && message.hasOwnProperty('enterpriseUserId')) { + if (!Array.isArray(message.enterpriseUserId)) return 'enterpriseUserId: array expected'; for (let i = 0; i < message.enterpriseUserId.length; ++i) - if (!$util.isInteger(message.enterpriseUserId[i]) && !(message.enterpriseUserId[i] && $util.isInteger(message.enterpriseUserId[i].low) && $util.isInteger(message.enterpriseUserId[i].high))) - return "enterpriseUserId: integer|Long[] expected"; + if ( + !$util.isInteger(message.enterpriseUserId[i]) && + !( + message.enterpriseUserId[i] && + $util.isInteger(message.enterpriseUserId[i].low) && + $util.isInteger(message.enterpriseUserId[i].high) + ) + ) + return 'enterpriseUserId: integer|Long[] expected'; } return null; }; @@ -32728,22 +33854,25 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.UserDataKeyRequest} UserDataKeyRequest */ UserDataKeyRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.UserDataKeyRequest) - return object; + if (object instanceof $root.Authentication.UserDataKeyRequest) return object; let message = new $root.Authentication.UserDataKeyRequest(); if (object.enterpriseUserId) { if (!Array.isArray(object.enterpriseUserId)) - throw TypeError(".Authentication.UserDataKeyRequest.enterpriseUserId: array expected"); + throw TypeError('.Authentication.UserDataKeyRequest.enterpriseUserId: array expected'); message.enterpriseUserId = []; for (let i = 0; i < object.enterpriseUserId.length; ++i) if ($util.Long) - (message.enterpriseUserId[i] = $util.Long.fromValue(object.enterpriseUserId[i])).unsigned = false; - else if (typeof object.enterpriseUserId[i] === "string") + (message.enterpriseUserId[i] = $util.Long.fromValue(object.enterpriseUserId[i])).unsigned = + false; + else if (typeof object.enterpriseUserId[i] === 'string') message.enterpriseUserId[i] = parseInt(object.enterpriseUserId[i], 10); - else if (typeof object.enterpriseUserId[i] === "number") + else if (typeof object.enterpriseUserId[i] === 'number') message.enterpriseUserId[i] = object.enterpriseUserId[i]; - else if (typeof object.enterpriseUserId[i] === "object") - message.enterpriseUserId[i] = new $util.LongBits(object.enterpriseUserId[i].low >>> 0, object.enterpriseUserId[i].high >>> 0).toNumber(); + else if (typeof object.enterpriseUserId[i] === 'object') + message.enterpriseUserId[i] = new $util.LongBits( + object.enterpriseUserId[i].low >>> 0, + object.enterpriseUserId[i].high >>> 0 + ).toNumber(); } return message; }; @@ -32758,18 +33887,27 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ UserDataKeyRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.enterpriseUserId = []; + if (options.arrays || options.defaults) object.enterpriseUserId = []; if (message.enterpriseUserId && message.enterpriseUserId.length) { object.enterpriseUserId = []; for (let j = 0; j < message.enterpriseUserId.length; ++j) - if (typeof message.enterpriseUserId[j] === "number") - object.enterpriseUserId[j] = options.longs === String ? String(message.enterpriseUserId[j]) : message.enterpriseUserId[j]; + if (typeof message.enterpriseUserId[j] === 'number') + object.enterpriseUserId[j] = + options.longs === String + ? String(message.enterpriseUserId[j]) + : message.enterpriseUserId[j]; else - object.enterpriseUserId[j] = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseUserId[j]) : options.longs === Number ? new $util.LongBits(message.enterpriseUserId[j].low >>> 0, message.enterpriseUserId[j].high >>> 0).toNumber() : message.enterpriseUserId[j]; + object.enterpriseUserId[j] = + options.longs === String + ? $util.Long.prototype.toString.call(message.enterpriseUserId[j]) + : options.longs === Number + ? new $util.LongBits( + message.enterpriseUserId[j].low >>> 0, + message.enterpriseUserId[j].high >>> 0 + ).toNumber() + : message.enterpriseUserId[j]; } return object; }; @@ -32795,16 +33933,15 @@ export const Authentication = $root.Authentication = (() => { */ UserDataKeyRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.UserDataKeyRequest"; + return typeUrlPrefix + '/Authentication.UserDataKeyRequest'; }; return UserDataKeyRequest; })(); - Authentication.UserDataKeyByNodeRequest = (function() { - + Authentication.UserDataKeyByNodeRequest = (function () { /** * Properties of a UserDataKeyByNodeRequest. * @memberof Authentication @@ -32824,8 +33961,7 @@ export const Authentication = $root.Authentication = (() => { this.nodeIds = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -32858,12 +33994,10 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ UserDataKeyByNodeRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.nodeIds != null && message.nodeIds.length) { - writer.uint32(/* id 1, wireType 2 =*/10).fork(); - for (let i = 0; i < message.nodeIds.length; ++i) - writer.int64(message.nodeIds[i]); + writer.uint32(/* id 1, wireType 2 =*/ 10).fork(); + for (let i = 0; i < message.nodeIds.length; ++i) writer.int64(message.nodeIds[i]); writer.ldelim(); } return writer; @@ -32894,26 +34028,23 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ UserDataKeyByNodeRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.UserDataKeyByNodeRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.UserDataKeyByNodeRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (!(message.nodeIds && message.nodeIds.length)) - message.nodeIds = []; + case 1: { + if (!(message.nodeIds && message.nodeIds.length)) message.nodeIds = []; if ((tag & 7) === 2) { let end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.nodeIds.push(reader.int64()); - } else - message.nodeIds.push(reader.int64()); + while (reader.pos < end2) message.nodeIds.push(reader.int64()); + } else message.nodeIds.push(reader.int64()); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -32930,8 +34061,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ UserDataKeyByNodeRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -32944,14 +34074,19 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ UserDataKeyByNodeRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.nodeIds != null && message.hasOwnProperty("nodeIds")) { - if (!Array.isArray(message.nodeIds)) - return "nodeIds: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.nodeIds != null && message.hasOwnProperty('nodeIds')) { + if (!Array.isArray(message.nodeIds)) return 'nodeIds: array expected'; for (let i = 0; i < message.nodeIds.length; ++i) - if (!$util.isInteger(message.nodeIds[i]) && !(message.nodeIds[i] && $util.isInteger(message.nodeIds[i].low) && $util.isInteger(message.nodeIds[i].high))) - return "nodeIds: integer|Long[] expected"; + if ( + !$util.isInteger(message.nodeIds[i]) && + !( + message.nodeIds[i] && + $util.isInteger(message.nodeIds[i].low) && + $util.isInteger(message.nodeIds[i].high) + ) + ) + return 'nodeIds: integer|Long[] expected'; } return null; }; @@ -32965,22 +34100,22 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.UserDataKeyByNodeRequest} UserDataKeyByNodeRequest */ UserDataKeyByNodeRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.UserDataKeyByNodeRequest) - return object; + if (object instanceof $root.Authentication.UserDataKeyByNodeRequest) return object; let message = new $root.Authentication.UserDataKeyByNodeRequest(); if (object.nodeIds) { if (!Array.isArray(object.nodeIds)) - throw TypeError(".Authentication.UserDataKeyByNodeRequest.nodeIds: array expected"); + throw TypeError('.Authentication.UserDataKeyByNodeRequest.nodeIds: array expected'); message.nodeIds = []; for (let i = 0; i < object.nodeIds.length; ++i) - if ($util.Long) - (message.nodeIds[i] = $util.Long.fromValue(object.nodeIds[i])).unsigned = false; - else if (typeof object.nodeIds[i] === "string") + if ($util.Long) (message.nodeIds[i] = $util.Long.fromValue(object.nodeIds[i])).unsigned = false; + else if (typeof object.nodeIds[i] === 'string') message.nodeIds[i] = parseInt(object.nodeIds[i], 10); - else if (typeof object.nodeIds[i] === "number") - message.nodeIds[i] = object.nodeIds[i]; - else if (typeof object.nodeIds[i] === "object") - message.nodeIds[i] = new $util.LongBits(object.nodeIds[i].low >>> 0, object.nodeIds[i].high >>> 0).toNumber(); + else if (typeof object.nodeIds[i] === 'number') message.nodeIds[i] = object.nodeIds[i]; + else if (typeof object.nodeIds[i] === 'object') + message.nodeIds[i] = new $util.LongBits( + object.nodeIds[i].low >>> 0, + object.nodeIds[i].high >>> 0 + ).toNumber(); } return message; }; @@ -32995,18 +34130,24 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ UserDataKeyByNodeRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.nodeIds = []; + if (options.arrays || options.defaults) object.nodeIds = []; if (message.nodeIds && message.nodeIds.length) { object.nodeIds = []; for (let j = 0; j < message.nodeIds.length; ++j) - if (typeof message.nodeIds[j] === "number") + if (typeof message.nodeIds[j] === 'number') object.nodeIds[j] = options.longs === String ? String(message.nodeIds[j]) : message.nodeIds[j]; else - object.nodeIds[j] = options.longs === String ? $util.Long.prototype.toString.call(message.nodeIds[j]) : options.longs === Number ? new $util.LongBits(message.nodeIds[j].low >>> 0, message.nodeIds[j].high >>> 0).toNumber() : message.nodeIds[j]; + object.nodeIds[j] = + options.longs === String + ? $util.Long.prototype.toString.call(message.nodeIds[j]) + : options.longs === Number + ? new $util.LongBits( + message.nodeIds[j].low >>> 0, + message.nodeIds[j].high >>> 0 + ).toNumber() + : message.nodeIds[j]; } return object; }; @@ -33032,16 +34173,15 @@ export const Authentication = $root.Authentication = (() => { */ UserDataKeyByNodeRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.UserDataKeyByNodeRequest"; + return typeUrlPrefix + '/Authentication.UserDataKeyByNodeRequest'; }; return UserDataKeyByNodeRequest; })(); - Authentication.EnterpriseUserIdDataKeyPair = (function() { - + Authentication.EnterpriseUserIdDataKeyPair = (function () { /** * Properties of an EnterpriseUserIdDataKeyPair. * @memberof Authentication @@ -33062,8 +34202,7 @@ export const Authentication = $root.Authentication = (() => { function EnterpriseUserIdDataKeyPair(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -33072,7 +34211,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.EnterpriseUserIdDataKeyPair * @instance */ - EnterpriseUserIdDataKeyPair.prototype.enterpriseUserId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + EnterpriseUserIdDataKeyPair.prototype.enterpriseUserId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * EnterpriseUserIdDataKeyPair encryptedDataKey. @@ -33112,14 +34251,13 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ EnterpriseUserIdDataKeyPair.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "enterpriseUserId")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.enterpriseUserId); - if (message.encryptedDataKey != null && Object.hasOwnProperty.call(message, "encryptedDataKey")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.encryptedDataKey); - if (message.keyType != null && Object.hasOwnProperty.call(message, "keyType")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.keyType); + if (!writer) writer = $Writer.create(); + if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, 'enterpriseUserId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int64(message.enterpriseUserId); + if (message.encryptedDataKey != null && Object.hasOwnProperty.call(message, 'encryptedDataKey')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.encryptedDataKey); + if (message.keyType != null && Object.hasOwnProperty.call(message, 'keyType')) + writer.uint32(/* id 3, wireType 0 =*/ 24).int32(message.keyType); return writer; }; @@ -33148,27 +34286,27 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ EnterpriseUserIdDataKeyPair.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.EnterpriseUserIdDataKeyPair(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.EnterpriseUserIdDataKeyPair(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.enterpriseUserId = reader.int64(); break; } - case 2: { + case 2: { message.encryptedDataKey = reader.bytes(); break; } - case 3: { + case 3: { message.keyType = reader.int32(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -33185,8 +34323,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ EnterpriseUserIdDataKeyPair.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -33199,24 +34336,35 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ EnterpriseUserIdDataKeyPair.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (!$util.isInteger(message.enterpriseUserId) && !(message.enterpriseUserId && $util.isInteger(message.enterpriseUserId.low) && $util.isInteger(message.enterpriseUserId.high))) - return "enterpriseUserId: integer|Long expected"; - if (message.encryptedDataKey != null && message.hasOwnProperty("encryptedDataKey")) - if (!(message.encryptedDataKey && typeof message.encryptedDataKey.length === "number" || $util.isString(message.encryptedDataKey))) - return "encryptedDataKey: buffer expected"; - if (message.keyType != null && message.hasOwnProperty("keyType")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.enterpriseUserId != null && message.hasOwnProperty('enterpriseUserId')) + if ( + !$util.isInteger(message.enterpriseUserId) && + !( + message.enterpriseUserId && + $util.isInteger(message.enterpriseUserId.low) && + $util.isInteger(message.enterpriseUserId.high) + ) + ) + return 'enterpriseUserId: integer|Long expected'; + if (message.encryptedDataKey != null && message.hasOwnProperty('encryptedDataKey')) + if ( + !( + (message.encryptedDataKey && typeof message.encryptedDataKey.length === 'number') || + $util.isString(message.encryptedDataKey) + ) + ) + return 'encryptedDataKey: buffer expected'; + if (message.keyType != null && message.hasOwnProperty('keyType')) switch (message.keyType) { - default: - return "keyType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; + default: + return 'keyType: enum value expected'; + case 0: + case 1: + case 2: + case 3: + case 4: + break; } return null; }; @@ -33230,50 +34378,55 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.EnterpriseUserIdDataKeyPair} EnterpriseUserIdDataKeyPair */ EnterpriseUserIdDataKeyPair.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.EnterpriseUserIdDataKeyPair) - return object; + if (object instanceof $root.Authentication.EnterpriseUserIdDataKeyPair) return object; let message = new $root.Authentication.EnterpriseUserIdDataKeyPair(); if (object.enterpriseUserId != null) if ($util.Long) (message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId)).unsigned = false; - else if (typeof object.enterpriseUserId === "string") + else if (typeof object.enterpriseUserId === 'string') message.enterpriseUserId = parseInt(object.enterpriseUserId, 10); - else if (typeof object.enterpriseUserId === "number") + else if (typeof object.enterpriseUserId === 'number') message.enterpriseUserId = object.enterpriseUserId; - else if (typeof object.enterpriseUserId === "object") - message.enterpriseUserId = new $util.LongBits(object.enterpriseUserId.low >>> 0, object.enterpriseUserId.high >>> 0).toNumber(); + else if (typeof object.enterpriseUserId === 'object') + message.enterpriseUserId = new $util.LongBits( + object.enterpriseUserId.low >>> 0, + object.enterpriseUserId.high >>> 0 + ).toNumber(); if (object.encryptedDataKey != null) - if (typeof object.encryptedDataKey === "string") - $util.base64.decode(object.encryptedDataKey, message.encryptedDataKey = $util.newBuffer($util.base64.length(object.encryptedDataKey)), 0); - else if (object.encryptedDataKey.length >= 0) - message.encryptedDataKey = object.encryptedDataKey; + if (typeof object.encryptedDataKey === 'string') + $util.base64.decode( + object.encryptedDataKey, + (message.encryptedDataKey = $util.newBuffer($util.base64.length(object.encryptedDataKey))), + 0 + ); + else if (object.encryptedDataKey.length >= 0) message.encryptedDataKey = object.encryptedDataKey; switch (object.keyType) { - default: - if (typeof object.keyType === "number") { - message.keyType = object.keyType; + default: + if (typeof object.keyType === 'number') { + message.keyType = object.keyType; + break; + } + break; + case 'KT_NO_KEY': + case 0: + message.keyType = 0; + break; + case 'KT_ENCRYPTED_BY_DATA_KEY': + case 1: + message.keyType = 1; + break; + case 'KT_ENCRYPTED_BY_PUBLIC_KEY': + case 2: + message.keyType = 2; + break; + case 'KT_ENCRYPTED_BY_DATA_KEY_GCM': + case 3: + message.keyType = 3; + break; + case 'KT_ENCRYPTED_BY_PUBLIC_KEY_ECC': + case 4: + message.keyType = 4; break; - } - break; - case "KT_NO_KEY": - case 0: - message.keyType = 0; - break; - case "KT_ENCRYPTED_BY_DATA_KEY": - case 1: - message.keyType = 1; - break; - case "KT_ENCRYPTED_BY_PUBLIC_KEY": - case 2: - message.keyType = 2; - break; - case "KT_ENCRYPTED_BY_DATA_KEY_GCM": - case 3: - message.keyType = 3; - break; - case "KT_ENCRYPTED_BY_PUBLIC_KEY_ECC": - case 4: - message.keyType = 4; - break; } return message; }; @@ -33288,33 +34441,49 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ EnterpriseUserIdDataKeyPair.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.enterpriseUserId = options.longs === String ? "0" : 0; - if (options.bytes === String) - object.encryptedDataKey = ""; + object.enterpriseUserId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.enterpriseUserId = options.longs === String ? '0' : 0; + if (options.bytes === String) object.encryptedDataKey = ''; else { object.encryptedDataKey = []; - if (options.bytes !== Array) - object.encryptedDataKey = $util.newBuffer(object.encryptedDataKey); + if (options.bytes !== Array) object.encryptedDataKey = $util.newBuffer(object.encryptedDataKey); } - object.keyType = options.enums === String ? "KT_NO_KEY" : 0; + object.keyType = options.enums === String ? 'KT_NO_KEY' : 0; } - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (typeof message.enterpriseUserId === "number") - object.enterpriseUserId = options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; + if (message.enterpriseUserId != null && message.hasOwnProperty('enterpriseUserId')) + if (typeof message.enterpriseUserId === 'number') + object.enterpriseUserId = + options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; else - object.enterpriseUserId = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseUserId) : options.longs === Number ? new $util.LongBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0).toNumber() : message.enterpriseUserId; - if (message.encryptedDataKey != null && message.hasOwnProperty("encryptedDataKey")) - object.encryptedDataKey = options.bytes === String ? $util.base64.encode(message.encryptedDataKey, 0, message.encryptedDataKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedDataKey) : message.encryptedDataKey; - if (message.keyType != null && message.hasOwnProperty("keyType")) - object.keyType = options.enums === String ? $root.Enterprise.EncryptedKeyType[message.keyType] === undefined ? message.keyType : $root.Enterprise.EncryptedKeyType[message.keyType] : message.keyType; + object.enterpriseUserId = + options.longs === String + ? $util.Long.prototype.toString.call(message.enterpriseUserId) + : options.longs === Number + ? new $util.LongBits( + message.enterpriseUserId.low >>> 0, + message.enterpriseUserId.high >>> 0 + ).toNumber() + : message.enterpriseUserId; + if (message.encryptedDataKey != null && message.hasOwnProperty('encryptedDataKey')) + object.encryptedDataKey = + options.bytes === String + ? $util.base64.encode(message.encryptedDataKey, 0, message.encryptedDataKey.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.encryptedDataKey) + : message.encryptedDataKey; + if (message.keyType != null && message.hasOwnProperty('keyType')) + object.keyType = + options.enums === String + ? $root.Enterprise.EncryptedKeyType[message.keyType] === undefined + ? message.keyType + : $root.Enterprise.EncryptedKeyType[message.keyType] + : message.keyType; return object; }; @@ -33339,16 +34508,15 @@ export const Authentication = $root.Authentication = (() => { */ EnterpriseUserIdDataKeyPair.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.EnterpriseUserIdDataKeyPair"; + return typeUrlPrefix + '/Authentication.EnterpriseUserIdDataKeyPair'; }; return EnterpriseUserIdDataKeyPair; })(); - Authentication.UserDataKey = (function() { - + Authentication.UserDataKey = (function () { /** * Properties of a UserDataKey. * @memberof Authentication @@ -33371,8 +34539,7 @@ export const Authentication = $root.Authentication = (() => { this.enterpriseUserIdDataKeyPairs = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -33381,7 +34548,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.UserDataKey * @instance */ - UserDataKey.prototype.roleId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + UserDataKey.prototype.roleId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * UserDataKey roleKey. @@ -33397,7 +34564,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.UserDataKey * @instance */ - UserDataKey.prototype.privateKey = ""; + UserDataKey.prototype.privateKey = ''; /** * UserDataKey enterpriseUserIdDataKeyPairs. @@ -33429,17 +34596,19 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ UserDataKey.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.roleId != null && Object.hasOwnProperty.call(message, "roleId")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.roleId); - if (message.roleKey != null && Object.hasOwnProperty.call(message, "roleKey")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.roleKey); - if (message.privateKey != null && Object.hasOwnProperty.call(message, "privateKey")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.privateKey); + if (!writer) writer = $Writer.create(); + if (message.roleId != null && Object.hasOwnProperty.call(message, 'roleId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int64(message.roleId); + if (message.roleKey != null && Object.hasOwnProperty.call(message, 'roleKey')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.roleKey); + if (message.privateKey != null && Object.hasOwnProperty.call(message, 'privateKey')) + writer.uint32(/* id 3, wireType 2 =*/ 26).string(message.privateKey); if (message.enterpriseUserIdDataKeyPairs != null && message.enterpriseUserIdDataKeyPairs.length) for (let i = 0; i < message.enterpriseUserIdDataKeyPairs.length; ++i) - $root.Authentication.EnterpriseUserIdDataKeyPair.encode(message.enterpriseUserIdDataKeyPairs[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + $root.Authentication.EnterpriseUserIdDataKeyPair.encode( + message.enterpriseUserIdDataKeyPairs[i], + writer.uint32(/* id 4, wireType 2 =*/ 34).fork() + ).ldelim(); return writer; }; @@ -33468,33 +34637,35 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ UserDataKey.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.UserDataKey(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.UserDataKey(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.roleId = reader.int64(); break; } - case 2: { + case 2: { message.roleKey = reader.bytes(); break; } - case 3: { + case 3: { message.privateKey = reader.string(); break; } - case 4: { + case 4: { if (!(message.enterpriseUserIdDataKeyPairs && message.enterpriseUserIdDataKeyPairs.length)) message.enterpriseUserIdDataKeyPairs = []; - message.enterpriseUserIdDataKeyPairs.push($root.Authentication.EnterpriseUserIdDataKeyPair.decode(reader, reader.uint32())); + message.enterpriseUserIdDataKeyPairs.push( + $root.Authentication.EnterpriseUserIdDataKeyPair.decode(reader, reader.uint32()) + ); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -33511,8 +34682,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ UserDataKey.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -33525,24 +34695,34 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ UserDataKey.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.roleId != null && message.hasOwnProperty("roleId")) - if (!$util.isInteger(message.roleId) && !(message.roleId && $util.isInteger(message.roleId.low) && $util.isInteger(message.roleId.high))) - return "roleId: integer|Long expected"; - if (message.roleKey != null && message.hasOwnProperty("roleKey")) - if (!(message.roleKey && typeof message.roleKey.length === "number" || $util.isString(message.roleKey))) - return "roleKey: buffer expected"; - if (message.privateKey != null && message.hasOwnProperty("privateKey")) - if (!$util.isString(message.privateKey)) - return "privateKey: string expected"; - if (message.enterpriseUserIdDataKeyPairs != null && message.hasOwnProperty("enterpriseUserIdDataKeyPairs")) { + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.roleId != null && message.hasOwnProperty('roleId')) + if ( + !$util.isInteger(message.roleId) && + !(message.roleId && $util.isInteger(message.roleId.low) && $util.isInteger(message.roleId.high)) + ) + return 'roleId: integer|Long expected'; + if (message.roleKey != null && message.hasOwnProperty('roleKey')) + if ( + !( + (message.roleKey && typeof message.roleKey.length === 'number') || + $util.isString(message.roleKey) + ) + ) + return 'roleKey: buffer expected'; + if (message.privateKey != null && message.hasOwnProperty('privateKey')) + if (!$util.isString(message.privateKey)) return 'privateKey: string expected'; + if ( + message.enterpriseUserIdDataKeyPairs != null && + message.hasOwnProperty('enterpriseUserIdDataKeyPairs') + ) { if (!Array.isArray(message.enterpriseUserIdDataKeyPairs)) - return "enterpriseUserIdDataKeyPairs: array expected"; + return 'enterpriseUserIdDataKeyPairs: array expected'; for (let i = 0; i < message.enterpriseUserIdDataKeyPairs.length; ++i) { - let error = $root.Authentication.EnterpriseUserIdDataKeyPair.verify(message.enterpriseUserIdDataKeyPairs[i]); - if (error) - return "enterpriseUserIdDataKeyPairs." + error; + let error = $root.Authentication.EnterpriseUserIdDataKeyPair.verify( + message.enterpriseUserIdDataKeyPairs[i] + ); + if (error) return 'enterpriseUserIdDataKeyPairs.' + error; } } return null; @@ -33557,33 +34737,34 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.UserDataKey} UserDataKey */ UserDataKey.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.UserDataKey) - return object; + if (object instanceof $root.Authentication.UserDataKey) return object; let message = new $root.Authentication.UserDataKey(); if (object.roleId != null) - if ($util.Long) - (message.roleId = $util.Long.fromValue(object.roleId)).unsigned = false; - else if (typeof object.roleId === "string") - message.roleId = parseInt(object.roleId, 10); - else if (typeof object.roleId === "number") - message.roleId = object.roleId; - else if (typeof object.roleId === "object") + if ($util.Long) (message.roleId = $util.Long.fromValue(object.roleId)).unsigned = false; + else if (typeof object.roleId === 'string') message.roleId = parseInt(object.roleId, 10); + else if (typeof object.roleId === 'number') message.roleId = object.roleId; + else if (typeof object.roleId === 'object') message.roleId = new $util.LongBits(object.roleId.low >>> 0, object.roleId.high >>> 0).toNumber(); if (object.roleKey != null) - if (typeof object.roleKey === "string") - $util.base64.decode(object.roleKey, message.roleKey = $util.newBuffer($util.base64.length(object.roleKey)), 0); - else if (object.roleKey.length >= 0) - message.roleKey = object.roleKey; - if (object.privateKey != null) - message.privateKey = String(object.privateKey); + if (typeof object.roleKey === 'string') + $util.base64.decode( + object.roleKey, + (message.roleKey = $util.newBuffer($util.base64.length(object.roleKey))), + 0 + ); + else if (object.roleKey.length >= 0) message.roleKey = object.roleKey; + if (object.privateKey != null) message.privateKey = String(object.privateKey); if (object.enterpriseUserIdDataKeyPairs) { if (!Array.isArray(object.enterpriseUserIdDataKeyPairs)) - throw TypeError(".Authentication.UserDataKey.enterpriseUserIdDataKeyPairs: array expected"); + throw TypeError('.Authentication.UserDataKey.enterpriseUserIdDataKeyPairs: array expected'); message.enterpriseUserIdDataKeyPairs = []; for (let i = 0; i < object.enterpriseUserIdDataKeyPairs.length; ++i) { - if (typeof object.enterpriseUserIdDataKeyPairs[i] !== "object") - throw TypeError(".Authentication.UserDataKey.enterpriseUserIdDataKeyPairs: object expected"); - message.enterpriseUserIdDataKeyPairs[i] = $root.Authentication.EnterpriseUserIdDataKeyPair.fromObject(object.enterpriseUserIdDataKeyPairs[i]); + if (typeof object.enterpriseUserIdDataKeyPairs[i] !== 'object') + throw TypeError('.Authentication.UserDataKey.enterpriseUserIdDataKeyPairs: object expected'); + message.enterpriseUserIdDataKeyPairs[i] = + $root.Authentication.EnterpriseUserIdDataKeyPair.fromObject( + object.enterpriseUserIdDataKeyPairs[i] + ); } } return message; @@ -33599,39 +34780,48 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ UserDataKey.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.enterpriseUserIdDataKeyPairs = []; + if (options.arrays || options.defaults) object.enterpriseUserIdDataKeyPairs = []; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.roleId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.roleId = options.longs === String ? "0" : 0; - if (options.bytes === String) - object.roleKey = ""; + object.roleId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.roleId = options.longs === String ? '0' : 0; + if (options.bytes === String) object.roleKey = ''; else { object.roleKey = []; - if (options.bytes !== Array) - object.roleKey = $util.newBuffer(object.roleKey); + if (options.bytes !== Array) object.roleKey = $util.newBuffer(object.roleKey); } - object.privateKey = ""; + object.privateKey = ''; } - if (message.roleId != null && message.hasOwnProperty("roleId")) - if (typeof message.roleId === "number") + if (message.roleId != null && message.hasOwnProperty('roleId')) + if (typeof message.roleId === 'number') object.roleId = options.longs === String ? String(message.roleId) : message.roleId; else - object.roleId = options.longs === String ? $util.Long.prototype.toString.call(message.roleId) : options.longs === Number ? new $util.LongBits(message.roleId.low >>> 0, message.roleId.high >>> 0).toNumber() : message.roleId; - if (message.roleKey != null && message.hasOwnProperty("roleKey")) - object.roleKey = options.bytes === String ? $util.base64.encode(message.roleKey, 0, message.roleKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.roleKey) : message.roleKey; - if (message.privateKey != null && message.hasOwnProperty("privateKey")) + object.roleId = + options.longs === String + ? $util.Long.prototype.toString.call(message.roleId) + : options.longs === Number + ? new $util.LongBits(message.roleId.low >>> 0, message.roleId.high >>> 0).toNumber() + : message.roleId; + if (message.roleKey != null && message.hasOwnProperty('roleKey')) + object.roleKey = + options.bytes === String + ? $util.base64.encode(message.roleKey, 0, message.roleKey.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.roleKey) + : message.roleKey; + if (message.privateKey != null && message.hasOwnProperty('privateKey')) object.privateKey = message.privateKey; if (message.enterpriseUserIdDataKeyPairs && message.enterpriseUserIdDataKeyPairs.length) { object.enterpriseUserIdDataKeyPairs = []; for (let j = 0; j < message.enterpriseUserIdDataKeyPairs.length; ++j) - object.enterpriseUserIdDataKeyPairs[j] = $root.Authentication.EnterpriseUserIdDataKeyPair.toObject(message.enterpriseUserIdDataKeyPairs[j], options); + object.enterpriseUserIdDataKeyPairs[j] = $root.Authentication.EnterpriseUserIdDataKeyPair.toObject( + message.enterpriseUserIdDataKeyPairs[j], + options + ); } return object; }; @@ -33657,16 +34847,15 @@ export const Authentication = $root.Authentication = (() => { */ UserDataKey.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.UserDataKey"; + return typeUrlPrefix + '/Authentication.UserDataKey'; }; return UserDataKey; })(); - Authentication.UserDataKeyResponse = (function() { - + Authentication.UserDataKeyResponse = (function () { /** * Properties of a UserDataKeyResponse. * @memberof Authentication @@ -33690,8 +34879,7 @@ export const Authentication = $root.Authentication = (() => { this.noEncryptedDataKey = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -33740,21 +34928,21 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ UserDataKeyResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.userDataKeys != null && message.userDataKeys.length) for (let i = 0; i < message.userDataKeys.length; ++i) - $root.Authentication.UserDataKey.encode(message.userDataKeys[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.Authentication.UserDataKey.encode( + message.userDataKeys[i], + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); if (message.accessDenied != null && message.accessDenied.length) { - writer.uint32(/* id 2, wireType 2 =*/18).fork(); - for (let i = 0; i < message.accessDenied.length; ++i) - writer.int64(message.accessDenied[i]); + writer.uint32(/* id 2, wireType 2 =*/ 18).fork(); + for (let i = 0; i < message.accessDenied.length; ++i) writer.int64(message.accessDenied[i]); writer.ldelim(); } if (message.noEncryptedDataKey != null && message.noEncryptedDataKey.length) { - writer.uint32(/* id 3, wireType 2 =*/26).fork(); - for (let i = 0; i < message.noEncryptedDataKey.length; ++i) - writer.int64(message.noEncryptedDataKey[i]); + writer.uint32(/* id 3, wireType 2 =*/ 26).fork(); + for (let i = 0; i < message.noEncryptedDataKey.length; ++i) writer.int64(message.noEncryptedDataKey[i]); writer.ldelim(); } return writer; @@ -33785,43 +34973,37 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ UserDataKeyResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.UserDataKeyResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.UserDataKeyResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (!(message.userDataKeys && message.userDataKeys.length)) - message.userDataKeys = []; + case 1: { + if (!(message.userDataKeys && message.userDataKeys.length)) message.userDataKeys = []; message.userDataKeys.push($root.Authentication.UserDataKey.decode(reader, reader.uint32())); break; } - case 2: { - if (!(message.accessDenied && message.accessDenied.length)) - message.accessDenied = []; + case 2: { + if (!(message.accessDenied && message.accessDenied.length)) message.accessDenied = []; if ((tag & 7) === 2) { let end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.accessDenied.push(reader.int64()); - } else - message.accessDenied.push(reader.int64()); + while (reader.pos < end2) message.accessDenied.push(reader.int64()); + } else message.accessDenied.push(reader.int64()); break; } - case 3: { + case 3: { if (!(message.noEncryptedDataKey && message.noEncryptedDataKey.length)) message.noEncryptedDataKey = []; if ((tag & 7) === 2) { let end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.noEncryptedDataKey.push(reader.int64()); - } else - message.noEncryptedDataKey.push(reader.int64()); + while (reader.pos < end2) message.noEncryptedDataKey.push(reader.int64()); + } else message.noEncryptedDataKey.push(reader.int64()); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -33838,8 +35020,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ UserDataKeyResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -33852,30 +35033,39 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ UserDataKeyResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.userDataKeys != null && message.hasOwnProperty("userDataKeys")) { - if (!Array.isArray(message.userDataKeys)) - return "userDataKeys: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.userDataKeys != null && message.hasOwnProperty('userDataKeys')) { + if (!Array.isArray(message.userDataKeys)) return 'userDataKeys: array expected'; for (let i = 0; i < message.userDataKeys.length; ++i) { let error = $root.Authentication.UserDataKey.verify(message.userDataKeys[i]); - if (error) - return "userDataKeys." + error; + if (error) return 'userDataKeys.' + error; } } - if (message.accessDenied != null && message.hasOwnProperty("accessDenied")) { - if (!Array.isArray(message.accessDenied)) - return "accessDenied: array expected"; + if (message.accessDenied != null && message.hasOwnProperty('accessDenied')) { + if (!Array.isArray(message.accessDenied)) return 'accessDenied: array expected'; for (let i = 0; i < message.accessDenied.length; ++i) - if (!$util.isInteger(message.accessDenied[i]) && !(message.accessDenied[i] && $util.isInteger(message.accessDenied[i].low) && $util.isInteger(message.accessDenied[i].high))) - return "accessDenied: integer|Long[] expected"; - } - if (message.noEncryptedDataKey != null && message.hasOwnProperty("noEncryptedDataKey")) { - if (!Array.isArray(message.noEncryptedDataKey)) - return "noEncryptedDataKey: array expected"; + if ( + !$util.isInteger(message.accessDenied[i]) && + !( + message.accessDenied[i] && + $util.isInteger(message.accessDenied[i].low) && + $util.isInteger(message.accessDenied[i].high) + ) + ) + return 'accessDenied: integer|Long[] expected'; + } + if (message.noEncryptedDataKey != null && message.hasOwnProperty('noEncryptedDataKey')) { + if (!Array.isArray(message.noEncryptedDataKey)) return 'noEncryptedDataKey: array expected'; for (let i = 0; i < message.noEncryptedDataKey.length; ++i) - if (!$util.isInteger(message.noEncryptedDataKey[i]) && !(message.noEncryptedDataKey[i] && $util.isInteger(message.noEncryptedDataKey[i].low) && $util.isInteger(message.noEncryptedDataKey[i].high))) - return "noEncryptedDataKey: integer|Long[] expected"; + if ( + !$util.isInteger(message.noEncryptedDataKey[i]) && + !( + message.noEncryptedDataKey[i] && + $util.isInteger(message.noEncryptedDataKey[i].low) && + $util.isInteger(message.noEncryptedDataKey[i].high) + ) + ) + return 'noEncryptedDataKey: integer|Long[] expected'; } return null; }; @@ -33889,46 +35079,52 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.UserDataKeyResponse} UserDataKeyResponse */ UserDataKeyResponse.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.UserDataKeyResponse) - return object; + if (object instanceof $root.Authentication.UserDataKeyResponse) return object; let message = new $root.Authentication.UserDataKeyResponse(); if (object.userDataKeys) { if (!Array.isArray(object.userDataKeys)) - throw TypeError(".Authentication.UserDataKeyResponse.userDataKeys: array expected"); + throw TypeError('.Authentication.UserDataKeyResponse.userDataKeys: array expected'); message.userDataKeys = []; for (let i = 0; i < object.userDataKeys.length; ++i) { - if (typeof object.userDataKeys[i] !== "object") - throw TypeError(".Authentication.UserDataKeyResponse.userDataKeys: object expected"); + if (typeof object.userDataKeys[i] !== 'object') + throw TypeError('.Authentication.UserDataKeyResponse.userDataKeys: object expected'); message.userDataKeys[i] = $root.Authentication.UserDataKey.fromObject(object.userDataKeys[i]); } } if (object.accessDenied) { if (!Array.isArray(object.accessDenied)) - throw TypeError(".Authentication.UserDataKeyResponse.accessDenied: array expected"); + throw TypeError('.Authentication.UserDataKeyResponse.accessDenied: array expected'); message.accessDenied = []; for (let i = 0; i < object.accessDenied.length; ++i) if ($util.Long) (message.accessDenied[i] = $util.Long.fromValue(object.accessDenied[i])).unsigned = false; - else if (typeof object.accessDenied[i] === "string") + else if (typeof object.accessDenied[i] === 'string') message.accessDenied[i] = parseInt(object.accessDenied[i], 10); - else if (typeof object.accessDenied[i] === "number") + else if (typeof object.accessDenied[i] === 'number') message.accessDenied[i] = object.accessDenied[i]; - else if (typeof object.accessDenied[i] === "object") - message.accessDenied[i] = new $util.LongBits(object.accessDenied[i].low >>> 0, object.accessDenied[i].high >>> 0).toNumber(); + else if (typeof object.accessDenied[i] === 'object') + message.accessDenied[i] = new $util.LongBits( + object.accessDenied[i].low >>> 0, + object.accessDenied[i].high >>> 0 + ).toNumber(); } if (object.noEncryptedDataKey) { if (!Array.isArray(object.noEncryptedDataKey)) - throw TypeError(".Authentication.UserDataKeyResponse.noEncryptedDataKey: array expected"); + throw TypeError('.Authentication.UserDataKeyResponse.noEncryptedDataKey: array expected'); message.noEncryptedDataKey = []; for (let i = 0; i < object.noEncryptedDataKey.length; ++i) if ($util.Long) - (message.noEncryptedDataKey[i] = $util.Long.fromValue(object.noEncryptedDataKey[i])).unsigned = false; - else if (typeof object.noEncryptedDataKey[i] === "string") + (message.noEncryptedDataKey[i] = $util.Long.fromValue(object.noEncryptedDataKey[i])).unsigned = + false; + else if (typeof object.noEncryptedDataKey[i] === 'string') message.noEncryptedDataKey[i] = parseInt(object.noEncryptedDataKey[i], 10); - else if (typeof object.noEncryptedDataKey[i] === "number") + else if (typeof object.noEncryptedDataKey[i] === 'number') message.noEncryptedDataKey[i] = object.noEncryptedDataKey[i]; - else if (typeof object.noEncryptedDataKey[i] === "object") - message.noEncryptedDataKey[i] = new $util.LongBits(object.noEncryptedDataKey[i].low >>> 0, object.noEncryptedDataKey[i].high >>> 0).toNumber(); + else if (typeof object.noEncryptedDataKey[i] === 'object') + message.noEncryptedDataKey[i] = new $util.LongBits( + object.noEncryptedDataKey[i].low >>> 0, + object.noEncryptedDataKey[i].high >>> 0 + ).toNumber(); } return message; }; @@ -33943,8 +35139,7 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ UserDataKeyResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.arrays || options.defaults) { object.userDataKeys = []; @@ -33954,23 +35149,46 @@ export const Authentication = $root.Authentication = (() => { if (message.userDataKeys && message.userDataKeys.length) { object.userDataKeys = []; for (let j = 0; j < message.userDataKeys.length; ++j) - object.userDataKeys[j] = $root.Authentication.UserDataKey.toObject(message.userDataKeys[j], options); + object.userDataKeys[j] = $root.Authentication.UserDataKey.toObject( + message.userDataKeys[j], + options + ); } if (message.accessDenied && message.accessDenied.length) { object.accessDenied = []; for (let j = 0; j < message.accessDenied.length; ++j) - if (typeof message.accessDenied[j] === "number") - object.accessDenied[j] = options.longs === String ? String(message.accessDenied[j]) : message.accessDenied[j]; + if (typeof message.accessDenied[j] === 'number') + object.accessDenied[j] = + options.longs === String ? String(message.accessDenied[j]) : message.accessDenied[j]; else - object.accessDenied[j] = options.longs === String ? $util.Long.prototype.toString.call(message.accessDenied[j]) : options.longs === Number ? new $util.LongBits(message.accessDenied[j].low >>> 0, message.accessDenied[j].high >>> 0).toNumber() : message.accessDenied[j]; + object.accessDenied[j] = + options.longs === String + ? $util.Long.prototype.toString.call(message.accessDenied[j]) + : options.longs === Number + ? new $util.LongBits( + message.accessDenied[j].low >>> 0, + message.accessDenied[j].high >>> 0 + ).toNumber() + : message.accessDenied[j]; } if (message.noEncryptedDataKey && message.noEncryptedDataKey.length) { object.noEncryptedDataKey = []; for (let j = 0; j < message.noEncryptedDataKey.length; ++j) - if (typeof message.noEncryptedDataKey[j] === "number") - object.noEncryptedDataKey[j] = options.longs === String ? String(message.noEncryptedDataKey[j]) : message.noEncryptedDataKey[j]; + if (typeof message.noEncryptedDataKey[j] === 'number') + object.noEncryptedDataKey[j] = + options.longs === String + ? String(message.noEncryptedDataKey[j]) + : message.noEncryptedDataKey[j]; else - object.noEncryptedDataKey[j] = options.longs === String ? $util.Long.prototype.toString.call(message.noEncryptedDataKey[j]) : options.longs === Number ? new $util.LongBits(message.noEncryptedDataKey[j].low >>> 0, message.noEncryptedDataKey[j].high >>> 0).toNumber() : message.noEncryptedDataKey[j]; + object.noEncryptedDataKey[j] = + options.longs === String + ? $util.Long.prototype.toString.call(message.noEncryptedDataKey[j]) + : options.longs === Number + ? new $util.LongBits( + message.noEncryptedDataKey[j].low >>> 0, + message.noEncryptedDataKey[j].high >>> 0 + ).toNumber() + : message.noEncryptedDataKey[j]; } return object; }; @@ -33996,16 +35214,15 @@ export const Authentication = $root.Authentication = (() => { */ UserDataKeyResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.UserDataKeyResponse"; + return typeUrlPrefix + '/Authentication.UserDataKeyResponse'; }; return UserDataKeyResponse; })(); - Authentication.MasterPasswordRecoveryVerificationRequest = (function() { - + Authentication.MasterPasswordRecoveryVerificationRequest = (function () { /** * Properties of a MasterPasswordRecoveryVerificationRequest. * @memberof Authentication @@ -34024,8 +35241,7 @@ export const Authentication = $root.Authentication = (() => { function MasterPasswordRecoveryVerificationRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -34058,10 +35274,9 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ MasterPasswordRecoveryVerificationRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.encryptedLoginToken != null && Object.hasOwnProperty.call(message, "encryptedLoginToken")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.encryptedLoginToken); + if (!writer) writer = $Writer.create(); + if (message.encryptedLoginToken != null && Object.hasOwnProperty.call(message, 'encryptedLoginToken')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.encryptedLoginToken); return writer; }; @@ -34090,19 +35305,19 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ MasterPasswordRecoveryVerificationRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.MasterPasswordRecoveryVerificationRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.MasterPasswordRecoveryVerificationRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.encryptedLoginToken = reader.bytes(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -34119,8 +35334,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ MasterPasswordRecoveryVerificationRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -34133,11 +35347,15 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ MasterPasswordRecoveryVerificationRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.encryptedLoginToken != null && message.hasOwnProperty("encryptedLoginToken")) - if (!(message.encryptedLoginToken && typeof message.encryptedLoginToken.length === "number" || $util.isString(message.encryptedLoginToken))) - return "encryptedLoginToken: buffer expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.encryptedLoginToken != null && message.hasOwnProperty('encryptedLoginToken')) + if ( + !( + (message.encryptedLoginToken && typeof message.encryptedLoginToken.length === 'number') || + $util.isString(message.encryptedLoginToken) + ) + ) + return 'encryptedLoginToken: buffer expected'; return null; }; @@ -34150,12 +35368,17 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.MasterPasswordRecoveryVerificationRequest} MasterPasswordRecoveryVerificationRequest */ MasterPasswordRecoveryVerificationRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.MasterPasswordRecoveryVerificationRequest) - return object; + if (object instanceof $root.Authentication.MasterPasswordRecoveryVerificationRequest) return object; let message = new $root.Authentication.MasterPasswordRecoveryVerificationRequest(); if (object.encryptedLoginToken != null) - if (typeof object.encryptedLoginToken === "string") - $util.base64.decode(object.encryptedLoginToken, message.encryptedLoginToken = $util.newBuffer($util.base64.length(object.encryptedLoginToken)), 0); + if (typeof object.encryptedLoginToken === 'string') + $util.base64.decode( + object.encryptedLoginToken, + (message.encryptedLoginToken = $util.newBuffer( + $util.base64.length(object.encryptedLoginToken) + )), + 0 + ); else if (object.encryptedLoginToken.length >= 0) message.encryptedLoginToken = object.encryptedLoginToken; return message; @@ -34171,19 +35394,22 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ MasterPasswordRecoveryVerificationRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) - if (options.bytes === String) - object.encryptedLoginToken = ""; + if (options.bytes === String) object.encryptedLoginToken = ''; else { object.encryptedLoginToken = []; if (options.bytes !== Array) object.encryptedLoginToken = $util.newBuffer(object.encryptedLoginToken); } - if (message.encryptedLoginToken != null && message.hasOwnProperty("encryptedLoginToken")) - object.encryptedLoginToken = options.bytes === String ? $util.base64.encode(message.encryptedLoginToken, 0, message.encryptedLoginToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedLoginToken) : message.encryptedLoginToken; + if (message.encryptedLoginToken != null && message.hasOwnProperty('encryptedLoginToken')) + object.encryptedLoginToken = + options.bytes === String + ? $util.base64.encode(message.encryptedLoginToken, 0, message.encryptedLoginToken.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.encryptedLoginToken) + : message.encryptedLoginToken; return object; }; @@ -34208,16 +35434,15 @@ export const Authentication = $root.Authentication = (() => { */ MasterPasswordRecoveryVerificationRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.MasterPasswordRecoveryVerificationRequest"; + return typeUrlPrefix + '/Authentication.MasterPasswordRecoveryVerificationRequest'; }; return MasterPasswordRecoveryVerificationRequest; })(); - Authentication.GetSecurityQuestionV3Request = (function() { - + Authentication.GetSecurityQuestionV3Request = (function () { /** * Properties of a GetSecurityQuestionV3Request. * @memberof Authentication @@ -34237,8 +35462,7 @@ export const Authentication = $root.Authentication = (() => { function GetSecurityQuestionV3Request(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -34255,7 +35479,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.GetSecurityQuestionV3Request * @instance */ - GetSecurityQuestionV3Request.prototype.verificationCode = ""; + GetSecurityQuestionV3Request.prototype.verificationCode = ''; /** * Creates a new GetSecurityQuestionV3Request instance using the specified properties. @@ -34279,12 +35503,11 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ GetSecurityQuestionV3Request.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.encryptedLoginToken != null && Object.hasOwnProperty.call(message, "encryptedLoginToken")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.encryptedLoginToken); - if (message.verificationCode != null && Object.hasOwnProperty.call(message, "verificationCode")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.verificationCode); + if (!writer) writer = $Writer.create(); + if (message.encryptedLoginToken != null && Object.hasOwnProperty.call(message, 'encryptedLoginToken')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.encryptedLoginToken); + if (message.verificationCode != null && Object.hasOwnProperty.call(message, 'verificationCode')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.verificationCode); return writer; }; @@ -34313,23 +35536,23 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ GetSecurityQuestionV3Request.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.GetSecurityQuestionV3Request(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.GetSecurityQuestionV3Request(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.encryptedLoginToken = reader.bytes(); break; } - case 2: { + case 2: { message.verificationCode = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -34346,8 +35569,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ GetSecurityQuestionV3Request.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -34360,14 +35582,17 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ GetSecurityQuestionV3Request.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.encryptedLoginToken != null && message.hasOwnProperty("encryptedLoginToken")) - if (!(message.encryptedLoginToken && typeof message.encryptedLoginToken.length === "number" || $util.isString(message.encryptedLoginToken))) - return "encryptedLoginToken: buffer expected"; - if (message.verificationCode != null && message.hasOwnProperty("verificationCode")) - if (!$util.isString(message.verificationCode)) - return "verificationCode: string expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.encryptedLoginToken != null && message.hasOwnProperty('encryptedLoginToken')) + if ( + !( + (message.encryptedLoginToken && typeof message.encryptedLoginToken.length === 'number') || + $util.isString(message.encryptedLoginToken) + ) + ) + return 'encryptedLoginToken: buffer expected'; + if (message.verificationCode != null && message.hasOwnProperty('verificationCode')) + if (!$util.isString(message.verificationCode)) return 'verificationCode: string expected'; return null; }; @@ -34380,16 +35605,20 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.GetSecurityQuestionV3Request} GetSecurityQuestionV3Request */ GetSecurityQuestionV3Request.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.GetSecurityQuestionV3Request) - return object; + if (object instanceof $root.Authentication.GetSecurityQuestionV3Request) return object; let message = new $root.Authentication.GetSecurityQuestionV3Request(); if (object.encryptedLoginToken != null) - if (typeof object.encryptedLoginToken === "string") - $util.base64.decode(object.encryptedLoginToken, message.encryptedLoginToken = $util.newBuffer($util.base64.length(object.encryptedLoginToken)), 0); + if (typeof object.encryptedLoginToken === 'string') + $util.base64.decode( + object.encryptedLoginToken, + (message.encryptedLoginToken = $util.newBuffer( + $util.base64.length(object.encryptedLoginToken) + )), + 0 + ); else if (object.encryptedLoginToken.length >= 0) message.encryptedLoginToken = object.encryptedLoginToken; - if (object.verificationCode != null) - message.verificationCode = String(object.verificationCode); + if (object.verificationCode != null) message.verificationCode = String(object.verificationCode); return message; }; @@ -34403,22 +35632,25 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ GetSecurityQuestionV3Request.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.encryptedLoginToken = ""; + if (options.bytes === String) object.encryptedLoginToken = ''; else { object.encryptedLoginToken = []; if (options.bytes !== Array) object.encryptedLoginToken = $util.newBuffer(object.encryptedLoginToken); } - object.verificationCode = ""; + object.verificationCode = ''; } - if (message.encryptedLoginToken != null && message.hasOwnProperty("encryptedLoginToken")) - object.encryptedLoginToken = options.bytes === String ? $util.base64.encode(message.encryptedLoginToken, 0, message.encryptedLoginToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedLoginToken) : message.encryptedLoginToken; - if (message.verificationCode != null && message.hasOwnProperty("verificationCode")) + if (message.encryptedLoginToken != null && message.hasOwnProperty('encryptedLoginToken')) + object.encryptedLoginToken = + options.bytes === String + ? $util.base64.encode(message.encryptedLoginToken, 0, message.encryptedLoginToken.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.encryptedLoginToken) + : message.encryptedLoginToken; + if (message.verificationCode != null && message.hasOwnProperty('verificationCode')) object.verificationCode = message.verificationCode; return object; }; @@ -34444,16 +35676,15 @@ export const Authentication = $root.Authentication = (() => { */ GetSecurityQuestionV3Request.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.GetSecurityQuestionV3Request"; + return typeUrlPrefix + '/Authentication.GetSecurityQuestionV3Request'; }; return GetSecurityQuestionV3Request; })(); - Authentication.GetSecurityQuestionV3Response = (function() { - + Authentication.GetSecurityQuestionV3Response = (function () { /** * Properties of a GetSecurityQuestionV3Response. * @memberof Authentication @@ -34475,8 +35706,7 @@ export const Authentication = $root.Authentication = (() => { function GetSecurityQuestionV3Response(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -34485,7 +35715,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.GetSecurityQuestionV3Response * @instance */ - GetSecurityQuestionV3Response.prototype.securityQuestion = ""; + GetSecurityQuestionV3Response.prototype.securityQuestion = ''; /** * GetSecurityQuestionV3Response backupKeyDate. @@ -34493,7 +35723,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.GetSecurityQuestionV3Response * @instance */ - GetSecurityQuestionV3Response.prototype.backupKeyDate = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + GetSecurityQuestionV3Response.prototype.backupKeyDate = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * GetSecurityQuestionV3Response salt. @@ -34533,16 +35763,15 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ GetSecurityQuestionV3Response.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.securityQuestion != null && Object.hasOwnProperty.call(message, "securityQuestion")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.securityQuestion); - if (message.backupKeyDate != null && Object.hasOwnProperty.call(message, "backupKeyDate")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.backupKeyDate); - if (message.salt != null && Object.hasOwnProperty.call(message, "salt")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.salt); - if (message.iterations != null && Object.hasOwnProperty.call(message, "iterations")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.iterations); + if (!writer) writer = $Writer.create(); + if (message.securityQuestion != null && Object.hasOwnProperty.call(message, 'securityQuestion')) + writer.uint32(/* id 1, wireType 2 =*/ 10).string(message.securityQuestion); + if (message.backupKeyDate != null && Object.hasOwnProperty.call(message, 'backupKeyDate')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int64(message.backupKeyDate); + if (message.salt != null && Object.hasOwnProperty.call(message, 'salt')) + writer.uint32(/* id 3, wireType 2 =*/ 26).bytes(message.salt); + if (message.iterations != null && Object.hasOwnProperty.call(message, 'iterations')) + writer.uint32(/* id 4, wireType 0 =*/ 32).int32(message.iterations); return writer; }; @@ -34571,31 +35800,31 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ GetSecurityQuestionV3Response.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.GetSecurityQuestionV3Response(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.GetSecurityQuestionV3Response(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.securityQuestion = reader.string(); break; } - case 2: { + case 2: { message.backupKeyDate = reader.int64(); break; } - case 3: { + case 3: { message.salt = reader.bytes(); break; } - case 4: { + case 4: { message.iterations = reader.int32(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -34612,8 +35841,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ GetSecurityQuestionV3Response.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -34626,20 +35854,24 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ GetSecurityQuestionV3Response.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.securityQuestion != null && message.hasOwnProperty("securityQuestion")) - if (!$util.isString(message.securityQuestion)) - return "securityQuestion: string expected"; - if (message.backupKeyDate != null && message.hasOwnProperty("backupKeyDate")) - if (!$util.isInteger(message.backupKeyDate) && !(message.backupKeyDate && $util.isInteger(message.backupKeyDate.low) && $util.isInteger(message.backupKeyDate.high))) - return "backupKeyDate: integer|Long expected"; - if (message.salt != null && message.hasOwnProperty("salt")) - if (!(message.salt && typeof message.salt.length === "number" || $util.isString(message.salt))) - return "salt: buffer expected"; - if (message.iterations != null && message.hasOwnProperty("iterations")) - if (!$util.isInteger(message.iterations)) - return "iterations: integer expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.securityQuestion != null && message.hasOwnProperty('securityQuestion')) + if (!$util.isString(message.securityQuestion)) return 'securityQuestion: string expected'; + if (message.backupKeyDate != null && message.hasOwnProperty('backupKeyDate')) + if ( + !$util.isInteger(message.backupKeyDate) && + !( + message.backupKeyDate && + $util.isInteger(message.backupKeyDate.low) && + $util.isInteger(message.backupKeyDate.high) + ) + ) + return 'backupKeyDate: integer|Long expected'; + if (message.salt != null && message.hasOwnProperty('salt')) + if (!((message.salt && typeof message.salt.length === 'number') || $util.isString(message.salt))) + return 'salt: buffer expected'; + if (message.iterations != null && message.hasOwnProperty('iterations')) + if (!$util.isInteger(message.iterations)) return 'iterations: integer expected'; return null; }; @@ -34652,27 +35884,28 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.GetSecurityQuestionV3Response} GetSecurityQuestionV3Response */ GetSecurityQuestionV3Response.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.GetSecurityQuestionV3Response) - return object; + if (object instanceof $root.Authentication.GetSecurityQuestionV3Response) return object; let message = new $root.Authentication.GetSecurityQuestionV3Response(); - if (object.securityQuestion != null) - message.securityQuestion = String(object.securityQuestion); + if (object.securityQuestion != null) message.securityQuestion = String(object.securityQuestion); if (object.backupKeyDate != null) - if ($util.Long) - (message.backupKeyDate = $util.Long.fromValue(object.backupKeyDate)).unsigned = false; - else if (typeof object.backupKeyDate === "string") + if ($util.Long) (message.backupKeyDate = $util.Long.fromValue(object.backupKeyDate)).unsigned = false; + else if (typeof object.backupKeyDate === 'string') message.backupKeyDate = parseInt(object.backupKeyDate, 10); - else if (typeof object.backupKeyDate === "number") - message.backupKeyDate = object.backupKeyDate; - else if (typeof object.backupKeyDate === "object") - message.backupKeyDate = new $util.LongBits(object.backupKeyDate.low >>> 0, object.backupKeyDate.high >>> 0).toNumber(); + else if (typeof object.backupKeyDate === 'number') message.backupKeyDate = object.backupKeyDate; + else if (typeof object.backupKeyDate === 'object') + message.backupKeyDate = new $util.LongBits( + object.backupKeyDate.low >>> 0, + object.backupKeyDate.high >>> 0 + ).toNumber(); if (object.salt != null) - if (typeof object.salt === "string") - $util.base64.decode(object.salt, message.salt = $util.newBuffer($util.base64.length(object.salt)), 0); - else if (object.salt.length >= 0) - message.salt = object.salt; - if (object.iterations != null) - message.iterations = object.iterations | 0; + if (typeof object.salt === 'string') + $util.base64.decode( + object.salt, + (message.salt = $util.newBuffer($util.base64.length(object.salt))), + 0 + ); + else if (object.salt.length >= 0) message.salt = object.salt; + if (object.iterations != null) message.iterations = object.iterations | 0; return message; }; @@ -34686,35 +35919,46 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ GetSecurityQuestionV3Response.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - object.securityQuestion = ""; + object.securityQuestion = ''; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.backupKeyDate = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.backupKeyDate = options.longs === String ? "0" : 0; - if (options.bytes === String) - object.salt = ""; + object.backupKeyDate = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.backupKeyDate = options.longs === String ? '0' : 0; + if (options.bytes === String) object.salt = ''; else { object.salt = []; - if (options.bytes !== Array) - object.salt = $util.newBuffer(object.salt); + if (options.bytes !== Array) object.salt = $util.newBuffer(object.salt); } object.iterations = 0; } - if (message.securityQuestion != null && message.hasOwnProperty("securityQuestion")) + if (message.securityQuestion != null && message.hasOwnProperty('securityQuestion')) object.securityQuestion = message.securityQuestion; - if (message.backupKeyDate != null && message.hasOwnProperty("backupKeyDate")) - if (typeof message.backupKeyDate === "number") - object.backupKeyDate = options.longs === String ? String(message.backupKeyDate) : message.backupKeyDate; + if (message.backupKeyDate != null && message.hasOwnProperty('backupKeyDate')) + if (typeof message.backupKeyDate === 'number') + object.backupKeyDate = + options.longs === String ? String(message.backupKeyDate) : message.backupKeyDate; else - object.backupKeyDate = options.longs === String ? $util.Long.prototype.toString.call(message.backupKeyDate) : options.longs === Number ? new $util.LongBits(message.backupKeyDate.low >>> 0, message.backupKeyDate.high >>> 0).toNumber() : message.backupKeyDate; - if (message.salt != null && message.hasOwnProperty("salt")) - object.salt = options.bytes === String ? $util.base64.encode(message.salt, 0, message.salt.length) : options.bytes === Array ? Array.prototype.slice.call(message.salt) : message.salt; - if (message.iterations != null && message.hasOwnProperty("iterations")) + object.backupKeyDate = + options.longs === String + ? $util.Long.prototype.toString.call(message.backupKeyDate) + : options.longs === Number + ? new $util.LongBits( + message.backupKeyDate.low >>> 0, + message.backupKeyDate.high >>> 0 + ).toNumber() + : message.backupKeyDate; + if (message.salt != null && message.hasOwnProperty('salt')) + object.salt = + options.bytes === String + ? $util.base64.encode(message.salt, 0, message.salt.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.salt) + : message.salt; + if (message.iterations != null && message.hasOwnProperty('iterations')) object.iterations = message.iterations; return object; }; @@ -34740,16 +35984,15 @@ export const Authentication = $root.Authentication = (() => { */ GetSecurityQuestionV3Response.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.GetSecurityQuestionV3Response"; + return typeUrlPrefix + '/Authentication.GetSecurityQuestionV3Response'; }; return GetSecurityQuestionV3Response; })(); - Authentication.GetDataKeyBackupV3Request = (function() { - + Authentication.GetDataKeyBackupV3Request = (function () { /** * Properties of a GetDataKeyBackupV3Request. * @memberof Authentication @@ -34770,8 +36013,7 @@ export const Authentication = $root.Authentication = (() => { function GetDataKeyBackupV3Request(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -34788,7 +36030,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.GetDataKeyBackupV3Request * @instance */ - GetDataKeyBackupV3Request.prototype.verificationCode = ""; + GetDataKeyBackupV3Request.prototype.verificationCode = ''; /** * GetDataKeyBackupV3Request securityAnswerHash. @@ -34820,14 +36062,13 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ GetDataKeyBackupV3Request.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.encryptedLoginToken != null && Object.hasOwnProperty.call(message, "encryptedLoginToken")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.encryptedLoginToken); - if (message.verificationCode != null && Object.hasOwnProperty.call(message, "verificationCode")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.verificationCode); - if (message.securityAnswerHash != null && Object.hasOwnProperty.call(message, "securityAnswerHash")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.securityAnswerHash); + if (!writer) writer = $Writer.create(); + if (message.encryptedLoginToken != null && Object.hasOwnProperty.call(message, 'encryptedLoginToken')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.encryptedLoginToken); + if (message.verificationCode != null && Object.hasOwnProperty.call(message, 'verificationCode')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.verificationCode); + if (message.securityAnswerHash != null && Object.hasOwnProperty.call(message, 'securityAnswerHash')) + writer.uint32(/* id 3, wireType 2 =*/ 26).bytes(message.securityAnswerHash); return writer; }; @@ -34856,27 +36097,27 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ GetDataKeyBackupV3Request.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.GetDataKeyBackupV3Request(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.GetDataKeyBackupV3Request(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.encryptedLoginToken = reader.bytes(); break; } - case 2: { + case 2: { message.verificationCode = reader.string(); break; } - case 3: { + case 3: { message.securityAnswerHash = reader.bytes(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -34893,8 +36134,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ GetDataKeyBackupV3Request.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -34907,17 +36147,25 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ GetDataKeyBackupV3Request.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.encryptedLoginToken != null && message.hasOwnProperty("encryptedLoginToken")) - if (!(message.encryptedLoginToken && typeof message.encryptedLoginToken.length === "number" || $util.isString(message.encryptedLoginToken))) - return "encryptedLoginToken: buffer expected"; - if (message.verificationCode != null && message.hasOwnProperty("verificationCode")) - if (!$util.isString(message.verificationCode)) - return "verificationCode: string expected"; - if (message.securityAnswerHash != null && message.hasOwnProperty("securityAnswerHash")) - if (!(message.securityAnswerHash && typeof message.securityAnswerHash.length === "number" || $util.isString(message.securityAnswerHash))) - return "securityAnswerHash: buffer expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.encryptedLoginToken != null && message.hasOwnProperty('encryptedLoginToken')) + if ( + !( + (message.encryptedLoginToken && typeof message.encryptedLoginToken.length === 'number') || + $util.isString(message.encryptedLoginToken) + ) + ) + return 'encryptedLoginToken: buffer expected'; + if (message.verificationCode != null && message.hasOwnProperty('verificationCode')) + if (!$util.isString(message.verificationCode)) return 'verificationCode: string expected'; + if (message.securityAnswerHash != null && message.hasOwnProperty('securityAnswerHash')) + if ( + !( + (message.securityAnswerHash && typeof message.securityAnswerHash.length === 'number') || + $util.isString(message.securityAnswerHash) + ) + ) + return 'securityAnswerHash: buffer expected'; return null; }; @@ -34930,21 +36178,28 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.GetDataKeyBackupV3Request} GetDataKeyBackupV3Request */ GetDataKeyBackupV3Request.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.GetDataKeyBackupV3Request) - return object; + if (object instanceof $root.Authentication.GetDataKeyBackupV3Request) return object; let message = new $root.Authentication.GetDataKeyBackupV3Request(); if (object.encryptedLoginToken != null) - if (typeof object.encryptedLoginToken === "string") - $util.base64.decode(object.encryptedLoginToken, message.encryptedLoginToken = $util.newBuffer($util.base64.length(object.encryptedLoginToken)), 0); + if (typeof object.encryptedLoginToken === 'string') + $util.base64.decode( + object.encryptedLoginToken, + (message.encryptedLoginToken = $util.newBuffer( + $util.base64.length(object.encryptedLoginToken) + )), + 0 + ); else if (object.encryptedLoginToken.length >= 0) message.encryptedLoginToken = object.encryptedLoginToken; - if (object.verificationCode != null) - message.verificationCode = String(object.verificationCode); + if (object.verificationCode != null) message.verificationCode = String(object.verificationCode); if (object.securityAnswerHash != null) - if (typeof object.securityAnswerHash === "string") - $util.base64.decode(object.securityAnswerHash, message.securityAnswerHash = $util.newBuffer($util.base64.length(object.securityAnswerHash)), 0); - else if (object.securityAnswerHash.length >= 0) - message.securityAnswerHash = object.securityAnswerHash; + if (typeof object.securityAnswerHash === 'string') + $util.base64.decode( + object.securityAnswerHash, + (message.securityAnswerHash = $util.newBuffer($util.base64.length(object.securityAnswerHash))), + 0 + ); + else if (object.securityAnswerHash.length >= 0) message.securityAnswerHash = object.securityAnswerHash; return message; }; @@ -34958,32 +36213,38 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ GetDataKeyBackupV3Request.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.encryptedLoginToken = ""; + if (options.bytes === String) object.encryptedLoginToken = ''; else { object.encryptedLoginToken = []; if (options.bytes !== Array) object.encryptedLoginToken = $util.newBuffer(object.encryptedLoginToken); } - object.verificationCode = ""; - if (options.bytes === String) - object.securityAnswerHash = ""; + object.verificationCode = ''; + if (options.bytes === String) object.securityAnswerHash = ''; else { object.securityAnswerHash = []; - if (options.bytes !== Array) - object.securityAnswerHash = $util.newBuffer(object.securityAnswerHash); + if (options.bytes !== Array) object.securityAnswerHash = $util.newBuffer(object.securityAnswerHash); } } - if (message.encryptedLoginToken != null && message.hasOwnProperty("encryptedLoginToken")) - object.encryptedLoginToken = options.bytes === String ? $util.base64.encode(message.encryptedLoginToken, 0, message.encryptedLoginToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedLoginToken) : message.encryptedLoginToken; - if (message.verificationCode != null && message.hasOwnProperty("verificationCode")) + if (message.encryptedLoginToken != null && message.hasOwnProperty('encryptedLoginToken')) + object.encryptedLoginToken = + options.bytes === String + ? $util.base64.encode(message.encryptedLoginToken, 0, message.encryptedLoginToken.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.encryptedLoginToken) + : message.encryptedLoginToken; + if (message.verificationCode != null && message.hasOwnProperty('verificationCode')) object.verificationCode = message.verificationCode; - if (message.securityAnswerHash != null && message.hasOwnProperty("securityAnswerHash")) - object.securityAnswerHash = options.bytes === String ? $util.base64.encode(message.securityAnswerHash, 0, message.securityAnswerHash.length) : options.bytes === Array ? Array.prototype.slice.call(message.securityAnswerHash) : message.securityAnswerHash; + if (message.securityAnswerHash != null && message.hasOwnProperty('securityAnswerHash')) + object.securityAnswerHash = + options.bytes === String + ? $util.base64.encode(message.securityAnswerHash, 0, message.securityAnswerHash.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.securityAnswerHash) + : message.securityAnswerHash; return object; }; @@ -35008,16 +36269,15 @@ export const Authentication = $root.Authentication = (() => { */ GetDataKeyBackupV3Request.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.GetDataKeyBackupV3Request"; + return typeUrlPrefix + '/Authentication.GetDataKeyBackupV3Request'; }; return GetDataKeyBackupV3Request; })(); - Authentication.PasswordRules = (function() { - + Authentication.PasswordRules = (function () { /** * Properties of a PasswordRules. * @memberof Authentication @@ -35041,8 +36301,7 @@ export const Authentication = $root.Authentication = (() => { function PasswordRules(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -35051,7 +36310,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.PasswordRules * @instance */ - PasswordRules.prototype.ruleType = ""; + PasswordRules.prototype.ruleType = ''; /** * PasswordRules match. @@ -35067,7 +36326,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.PasswordRules * @instance */ - PasswordRules.prototype.pattern = ""; + PasswordRules.prototype.pattern = ''; /** * PasswordRules description. @@ -35075,7 +36334,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.PasswordRules * @instance */ - PasswordRules.prototype.description = ""; + PasswordRules.prototype.description = ''; /** * PasswordRules minimum. @@ -35091,7 +36350,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.PasswordRules * @instance */ - PasswordRules.prototype.value = ""; + PasswordRules.prototype.value = ''; /** * Creates a new PasswordRules instance using the specified properties. @@ -35115,20 +36374,19 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ PasswordRules.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.ruleType != null && Object.hasOwnProperty.call(message, "ruleType")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.ruleType); - if (message.match != null && Object.hasOwnProperty.call(message, "match")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.match); - if (message.pattern != null && Object.hasOwnProperty.call(message, "pattern")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.pattern); - if (message.description != null && Object.hasOwnProperty.call(message, "description")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.description); - if (message.minimum != null && Object.hasOwnProperty.call(message, "minimum")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.minimum); - if (message.value != null && Object.hasOwnProperty.call(message, "value")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.value); + if (!writer) writer = $Writer.create(); + if (message.ruleType != null && Object.hasOwnProperty.call(message, 'ruleType')) + writer.uint32(/* id 1, wireType 2 =*/ 10).string(message.ruleType); + if (message.match != null && Object.hasOwnProperty.call(message, 'match')) + writer.uint32(/* id 2, wireType 0 =*/ 16).bool(message.match); + if (message.pattern != null && Object.hasOwnProperty.call(message, 'pattern')) + writer.uint32(/* id 3, wireType 2 =*/ 26).string(message.pattern); + if (message.description != null && Object.hasOwnProperty.call(message, 'description')) + writer.uint32(/* id 4, wireType 2 =*/ 34).string(message.description); + if (message.minimum != null && Object.hasOwnProperty.call(message, 'minimum')) + writer.uint32(/* id 5, wireType 0 =*/ 40).int32(message.minimum); + if (message.value != null && Object.hasOwnProperty.call(message, 'value')) + writer.uint32(/* id 6, wireType 2 =*/ 50).string(message.value); return writer; }; @@ -35157,39 +36415,39 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ PasswordRules.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.PasswordRules(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.PasswordRules(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.ruleType = reader.string(); break; } - case 2: { + case 2: { message.match = reader.bool(); break; } - case 3: { + case 3: { message.pattern = reader.string(); break; } - case 4: { + case 4: { message.description = reader.string(); break; } - case 5: { + case 5: { message.minimum = reader.int32(); break; } - case 6: { + case 6: { message.value = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -35206,8 +36464,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ PasswordRules.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -35220,26 +36477,19 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ PasswordRules.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.ruleType != null && message.hasOwnProperty("ruleType")) - if (!$util.isString(message.ruleType)) - return "ruleType: string expected"; - if (message.match != null && message.hasOwnProperty("match")) - if (typeof message.match !== "boolean") - return "match: boolean expected"; - if (message.pattern != null && message.hasOwnProperty("pattern")) - if (!$util.isString(message.pattern)) - return "pattern: string expected"; - if (message.description != null && message.hasOwnProperty("description")) - if (!$util.isString(message.description)) - return "description: string expected"; - if (message.minimum != null && message.hasOwnProperty("minimum")) - if (!$util.isInteger(message.minimum)) - return "minimum: integer expected"; - if (message.value != null && message.hasOwnProperty("value")) - if (!$util.isString(message.value)) - return "value: string expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.ruleType != null && message.hasOwnProperty('ruleType')) + if (!$util.isString(message.ruleType)) return 'ruleType: string expected'; + if (message.match != null && message.hasOwnProperty('match')) + if (typeof message.match !== 'boolean') return 'match: boolean expected'; + if (message.pattern != null && message.hasOwnProperty('pattern')) + if (!$util.isString(message.pattern)) return 'pattern: string expected'; + if (message.description != null && message.hasOwnProperty('description')) + if (!$util.isString(message.description)) return 'description: string expected'; + if (message.minimum != null && message.hasOwnProperty('minimum')) + if (!$util.isInteger(message.minimum)) return 'minimum: integer expected'; + if (message.value != null && message.hasOwnProperty('value')) + if (!$util.isString(message.value)) return 'value: string expected'; return null; }; @@ -35252,21 +36502,14 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.PasswordRules} PasswordRules */ PasswordRules.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.PasswordRules) - return object; + if (object instanceof $root.Authentication.PasswordRules) return object; let message = new $root.Authentication.PasswordRules(); - if (object.ruleType != null) - message.ruleType = String(object.ruleType); - if (object.match != null) - message.match = Boolean(object.match); - if (object.pattern != null) - message.pattern = String(object.pattern); - if (object.description != null) - message.description = String(object.description); - if (object.minimum != null) - message.minimum = object.minimum | 0; - if (object.value != null) - message.value = String(object.value); + if (object.ruleType != null) message.ruleType = String(object.ruleType); + if (object.match != null) message.match = Boolean(object.match); + if (object.pattern != null) message.pattern = String(object.pattern); + if (object.description != null) message.description = String(object.description); + if (object.minimum != null) message.minimum = object.minimum | 0; + if (object.value != null) message.value = String(object.value); return message; }; @@ -35280,29 +36523,23 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ PasswordRules.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - object.ruleType = ""; + object.ruleType = ''; object.match = false; - object.pattern = ""; - object.description = ""; + object.pattern = ''; + object.description = ''; object.minimum = 0; - object.value = ""; - } - if (message.ruleType != null && message.hasOwnProperty("ruleType")) - object.ruleType = message.ruleType; - if (message.match != null && message.hasOwnProperty("match")) - object.match = message.match; - if (message.pattern != null && message.hasOwnProperty("pattern")) - object.pattern = message.pattern; - if (message.description != null && message.hasOwnProperty("description")) + object.value = ''; + } + if (message.ruleType != null && message.hasOwnProperty('ruleType')) object.ruleType = message.ruleType; + if (message.match != null && message.hasOwnProperty('match')) object.match = message.match; + if (message.pattern != null && message.hasOwnProperty('pattern')) object.pattern = message.pattern; + if (message.description != null && message.hasOwnProperty('description')) object.description = message.description; - if (message.minimum != null && message.hasOwnProperty("minimum")) - object.minimum = message.minimum; - if (message.value != null && message.hasOwnProperty("value")) - object.value = message.value; + if (message.minimum != null && message.hasOwnProperty('minimum')) object.minimum = message.minimum; + if (message.value != null && message.hasOwnProperty('value')) object.value = message.value; return object; }; @@ -35327,16 +36564,15 @@ export const Authentication = $root.Authentication = (() => { */ PasswordRules.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.PasswordRules"; + return typeUrlPrefix + '/Authentication.PasswordRules'; }; return PasswordRules; })(); - Authentication.GetDataKeyBackupV3Response = (function() { - + Authentication.GetDataKeyBackupV3Response = (function () { /** * Properties of a GetDataKeyBackupV3Response. * @memberof Authentication @@ -35365,8 +36601,7 @@ export const Authentication = $root.Authentication = (() => { this.passwordRules = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -35383,7 +36618,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.GetDataKeyBackupV3Response * @instance */ - GetDataKeyBackupV3Response.prototype.dataKeyBackupDate = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + GetDataKeyBackupV3Response.prototype.dataKeyBackupDate = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * GetDataKeyBackupV3Response publicKey. @@ -35431,7 +36666,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.GetDataKeyBackupV3Response * @instance */ - GetDataKeyBackupV3Response.prototype.passwordRulesIntro = ""; + GetDataKeyBackupV3Response.prototype.passwordRulesIntro = ''; /** * GetDataKeyBackupV3Response minimumPbkdf2Iterations. @@ -35471,29 +36706,34 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ GetDataKeyBackupV3Response.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.dataKeyBackup != null && Object.hasOwnProperty.call(message, "dataKeyBackup")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.dataKeyBackup); - if (message.dataKeyBackupDate != null && Object.hasOwnProperty.call(message, "dataKeyBackupDate")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.dataKeyBackupDate); - if (message.publicKey != null && Object.hasOwnProperty.call(message, "publicKey")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.publicKey); - if (message.encryptedPrivateKey != null && Object.hasOwnProperty.call(message, "encryptedPrivateKey")) - writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.encryptedPrivateKey); - if (message.clientKey != null && Object.hasOwnProperty.call(message, "clientKey")) - writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.clientKey); - if (message.encryptedSessionToken != null && Object.hasOwnProperty.call(message, "encryptedSessionToken")) - writer.uint32(/* id 6, wireType 2 =*/50).bytes(message.encryptedSessionToken); + if (!writer) writer = $Writer.create(); + if (message.dataKeyBackup != null && Object.hasOwnProperty.call(message, 'dataKeyBackup')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.dataKeyBackup); + if (message.dataKeyBackupDate != null && Object.hasOwnProperty.call(message, 'dataKeyBackupDate')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int64(message.dataKeyBackupDate); + if (message.publicKey != null && Object.hasOwnProperty.call(message, 'publicKey')) + writer.uint32(/* id 3, wireType 2 =*/ 26).bytes(message.publicKey); + if (message.encryptedPrivateKey != null && Object.hasOwnProperty.call(message, 'encryptedPrivateKey')) + writer.uint32(/* id 4, wireType 2 =*/ 34).bytes(message.encryptedPrivateKey); + if (message.clientKey != null && Object.hasOwnProperty.call(message, 'clientKey')) + writer.uint32(/* id 5, wireType 2 =*/ 42).bytes(message.clientKey); + if (message.encryptedSessionToken != null && Object.hasOwnProperty.call(message, 'encryptedSessionToken')) + writer.uint32(/* id 6, wireType 2 =*/ 50).bytes(message.encryptedSessionToken); if (message.passwordRules != null && message.passwordRules.length) for (let i = 0; i < message.passwordRules.length; ++i) - $root.Authentication.PasswordRules.encode(message.passwordRules[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.passwordRulesIntro != null && Object.hasOwnProperty.call(message, "passwordRulesIntro")) - writer.uint32(/* id 8, wireType 2 =*/66).string(message.passwordRulesIntro); - if (message.minimumPbkdf2Iterations != null && Object.hasOwnProperty.call(message, "minimumPbkdf2Iterations")) - writer.uint32(/* id 9, wireType 0 =*/72).int32(message.minimumPbkdf2Iterations); - if (message.keyType != null && Object.hasOwnProperty.call(message, "keyType")) - writer.uint32(/* id 10, wireType 0 =*/80).int32(message.keyType); + $root.Authentication.PasswordRules.encode( + message.passwordRules[i], + writer.uint32(/* id 7, wireType 2 =*/ 58).fork() + ).ldelim(); + if (message.passwordRulesIntro != null && Object.hasOwnProperty.call(message, 'passwordRulesIntro')) + writer.uint32(/* id 8, wireType 2 =*/ 66).string(message.passwordRulesIntro); + if ( + message.minimumPbkdf2Iterations != null && + Object.hasOwnProperty.call(message, 'minimumPbkdf2Iterations') + ) + writer.uint32(/* id 9, wireType 0 =*/ 72).int32(message.minimumPbkdf2Iterations); + if (message.keyType != null && Object.hasOwnProperty.call(message, 'keyType')) + writer.uint32(/* id 10, wireType 0 =*/ 80).int32(message.keyType); return writer; }; @@ -35522,57 +36762,56 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ GetDataKeyBackupV3Response.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.GetDataKeyBackupV3Response(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.GetDataKeyBackupV3Response(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.dataKeyBackup = reader.bytes(); break; } - case 2: { + case 2: { message.dataKeyBackupDate = reader.int64(); break; } - case 3: { + case 3: { message.publicKey = reader.bytes(); break; } - case 4: { + case 4: { message.encryptedPrivateKey = reader.bytes(); break; } - case 5: { + case 5: { message.clientKey = reader.bytes(); break; } - case 6: { + case 6: { message.encryptedSessionToken = reader.bytes(); break; } - case 7: { - if (!(message.passwordRules && message.passwordRules.length)) - message.passwordRules = []; + case 7: { + if (!(message.passwordRules && message.passwordRules.length)) message.passwordRules = []; message.passwordRules.push($root.Authentication.PasswordRules.decode(reader, reader.uint32())); break; } - case 8: { + case 8: { message.passwordRulesIntro = reader.string(); break; } - case 9: { + case 9: { message.minimumPbkdf2Iterations = reader.int32(); break; } - case 10: { + case 10: { message.keyType = reader.int32(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -35589,8 +36828,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ GetDataKeyBackupV3Response.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -35603,48 +36841,76 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ GetDataKeyBackupV3Response.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.dataKeyBackup != null && message.hasOwnProperty("dataKeyBackup")) - if (!(message.dataKeyBackup && typeof message.dataKeyBackup.length === "number" || $util.isString(message.dataKeyBackup))) - return "dataKeyBackup: buffer expected"; - if (message.dataKeyBackupDate != null && message.hasOwnProperty("dataKeyBackupDate")) - if (!$util.isInteger(message.dataKeyBackupDate) && !(message.dataKeyBackupDate && $util.isInteger(message.dataKeyBackupDate.low) && $util.isInteger(message.dataKeyBackupDate.high))) - return "dataKeyBackupDate: integer|Long expected"; - if (message.publicKey != null && message.hasOwnProperty("publicKey")) - if (!(message.publicKey && typeof message.publicKey.length === "number" || $util.isString(message.publicKey))) - return "publicKey: buffer expected"; - if (message.encryptedPrivateKey != null && message.hasOwnProperty("encryptedPrivateKey")) - if (!(message.encryptedPrivateKey && typeof message.encryptedPrivateKey.length === "number" || $util.isString(message.encryptedPrivateKey))) - return "encryptedPrivateKey: buffer expected"; - if (message.clientKey != null && message.hasOwnProperty("clientKey")) - if (!(message.clientKey && typeof message.clientKey.length === "number" || $util.isString(message.clientKey))) - return "clientKey: buffer expected"; - if (message.encryptedSessionToken != null && message.hasOwnProperty("encryptedSessionToken")) - if (!(message.encryptedSessionToken && typeof message.encryptedSessionToken.length === "number" || $util.isString(message.encryptedSessionToken))) - return "encryptedSessionToken: buffer expected"; - if (message.passwordRules != null && message.hasOwnProperty("passwordRules")) { - if (!Array.isArray(message.passwordRules)) - return "passwordRules: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.dataKeyBackup != null && message.hasOwnProperty('dataKeyBackup')) + if ( + !( + (message.dataKeyBackup && typeof message.dataKeyBackup.length === 'number') || + $util.isString(message.dataKeyBackup) + ) + ) + return 'dataKeyBackup: buffer expected'; + if (message.dataKeyBackupDate != null && message.hasOwnProperty('dataKeyBackupDate')) + if ( + !$util.isInteger(message.dataKeyBackupDate) && + !( + message.dataKeyBackupDate && + $util.isInteger(message.dataKeyBackupDate.low) && + $util.isInteger(message.dataKeyBackupDate.high) + ) + ) + return 'dataKeyBackupDate: integer|Long expected'; + if (message.publicKey != null && message.hasOwnProperty('publicKey')) + if ( + !( + (message.publicKey && typeof message.publicKey.length === 'number') || + $util.isString(message.publicKey) + ) + ) + return 'publicKey: buffer expected'; + if (message.encryptedPrivateKey != null && message.hasOwnProperty('encryptedPrivateKey')) + if ( + !( + (message.encryptedPrivateKey && typeof message.encryptedPrivateKey.length === 'number') || + $util.isString(message.encryptedPrivateKey) + ) + ) + return 'encryptedPrivateKey: buffer expected'; + if (message.clientKey != null && message.hasOwnProperty('clientKey')) + if ( + !( + (message.clientKey && typeof message.clientKey.length === 'number') || + $util.isString(message.clientKey) + ) + ) + return 'clientKey: buffer expected'; + if (message.encryptedSessionToken != null && message.hasOwnProperty('encryptedSessionToken')) + if ( + !( + (message.encryptedSessionToken && typeof message.encryptedSessionToken.length === 'number') || + $util.isString(message.encryptedSessionToken) + ) + ) + return 'encryptedSessionToken: buffer expected'; + if (message.passwordRules != null && message.hasOwnProperty('passwordRules')) { + if (!Array.isArray(message.passwordRules)) return 'passwordRules: array expected'; for (let i = 0; i < message.passwordRules.length; ++i) { let error = $root.Authentication.PasswordRules.verify(message.passwordRules[i]); - if (error) - return "passwordRules." + error; + if (error) return 'passwordRules.' + error; } } - if (message.passwordRulesIntro != null && message.hasOwnProperty("passwordRulesIntro")) - if (!$util.isString(message.passwordRulesIntro)) - return "passwordRulesIntro: string expected"; - if (message.minimumPbkdf2Iterations != null && message.hasOwnProperty("minimumPbkdf2Iterations")) + if (message.passwordRulesIntro != null && message.hasOwnProperty('passwordRulesIntro')) + if (!$util.isString(message.passwordRulesIntro)) return 'passwordRulesIntro: string expected'; + if (message.minimumPbkdf2Iterations != null && message.hasOwnProperty('minimumPbkdf2Iterations')) if (!$util.isInteger(message.minimumPbkdf2Iterations)) - return "minimumPbkdf2Iterations: integer expected"; - if (message.keyType != null && message.hasOwnProperty("keyType")) + return 'minimumPbkdf2Iterations: integer expected'; + if (message.keyType != null && message.hasOwnProperty('keyType')) switch (message.keyType) { - default: - return "keyType: enum value expected"; - case 0: - case 1: - break; + default: + return 'keyType: enum value expected'; + case 0: + case 1: + break; } return null; }; @@ -35658,72 +36924,94 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.GetDataKeyBackupV3Response} GetDataKeyBackupV3Response */ GetDataKeyBackupV3Response.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.GetDataKeyBackupV3Response) - return object; + if (object instanceof $root.Authentication.GetDataKeyBackupV3Response) return object; let message = new $root.Authentication.GetDataKeyBackupV3Response(); if (object.dataKeyBackup != null) - if (typeof object.dataKeyBackup === "string") - $util.base64.decode(object.dataKeyBackup, message.dataKeyBackup = $util.newBuffer($util.base64.length(object.dataKeyBackup)), 0); - else if (object.dataKeyBackup.length >= 0) - message.dataKeyBackup = object.dataKeyBackup; + if (typeof object.dataKeyBackup === 'string') + $util.base64.decode( + object.dataKeyBackup, + (message.dataKeyBackup = $util.newBuffer($util.base64.length(object.dataKeyBackup))), + 0 + ); + else if (object.dataKeyBackup.length >= 0) message.dataKeyBackup = object.dataKeyBackup; if (object.dataKeyBackupDate != null) if ($util.Long) (message.dataKeyBackupDate = $util.Long.fromValue(object.dataKeyBackupDate)).unsigned = false; - else if (typeof object.dataKeyBackupDate === "string") + else if (typeof object.dataKeyBackupDate === 'string') message.dataKeyBackupDate = parseInt(object.dataKeyBackupDate, 10); - else if (typeof object.dataKeyBackupDate === "number") + else if (typeof object.dataKeyBackupDate === 'number') message.dataKeyBackupDate = object.dataKeyBackupDate; - else if (typeof object.dataKeyBackupDate === "object") - message.dataKeyBackupDate = new $util.LongBits(object.dataKeyBackupDate.low >>> 0, object.dataKeyBackupDate.high >>> 0).toNumber(); + else if (typeof object.dataKeyBackupDate === 'object') + message.dataKeyBackupDate = new $util.LongBits( + object.dataKeyBackupDate.low >>> 0, + object.dataKeyBackupDate.high >>> 0 + ).toNumber(); if (object.publicKey != null) - if (typeof object.publicKey === "string") - $util.base64.decode(object.publicKey, message.publicKey = $util.newBuffer($util.base64.length(object.publicKey)), 0); - else if (object.publicKey.length >= 0) - message.publicKey = object.publicKey; + if (typeof object.publicKey === 'string') + $util.base64.decode( + object.publicKey, + (message.publicKey = $util.newBuffer($util.base64.length(object.publicKey))), + 0 + ); + else if (object.publicKey.length >= 0) message.publicKey = object.publicKey; if (object.encryptedPrivateKey != null) - if (typeof object.encryptedPrivateKey === "string") - $util.base64.decode(object.encryptedPrivateKey, message.encryptedPrivateKey = $util.newBuffer($util.base64.length(object.encryptedPrivateKey)), 0); + if (typeof object.encryptedPrivateKey === 'string') + $util.base64.decode( + object.encryptedPrivateKey, + (message.encryptedPrivateKey = $util.newBuffer( + $util.base64.length(object.encryptedPrivateKey) + )), + 0 + ); else if (object.encryptedPrivateKey.length >= 0) message.encryptedPrivateKey = object.encryptedPrivateKey; if (object.clientKey != null) - if (typeof object.clientKey === "string") - $util.base64.decode(object.clientKey, message.clientKey = $util.newBuffer($util.base64.length(object.clientKey)), 0); - else if (object.clientKey.length >= 0) - message.clientKey = object.clientKey; + if (typeof object.clientKey === 'string') + $util.base64.decode( + object.clientKey, + (message.clientKey = $util.newBuffer($util.base64.length(object.clientKey))), + 0 + ); + else if (object.clientKey.length >= 0) message.clientKey = object.clientKey; if (object.encryptedSessionToken != null) - if (typeof object.encryptedSessionToken === "string") - $util.base64.decode(object.encryptedSessionToken, message.encryptedSessionToken = $util.newBuffer($util.base64.length(object.encryptedSessionToken)), 0); + if (typeof object.encryptedSessionToken === 'string') + $util.base64.decode( + object.encryptedSessionToken, + (message.encryptedSessionToken = $util.newBuffer( + $util.base64.length(object.encryptedSessionToken) + )), + 0 + ); else if (object.encryptedSessionToken.length >= 0) message.encryptedSessionToken = object.encryptedSessionToken; if (object.passwordRules) { if (!Array.isArray(object.passwordRules)) - throw TypeError(".Authentication.GetDataKeyBackupV3Response.passwordRules: array expected"); + throw TypeError('.Authentication.GetDataKeyBackupV3Response.passwordRules: array expected'); message.passwordRules = []; for (let i = 0; i < object.passwordRules.length; ++i) { - if (typeof object.passwordRules[i] !== "object") - throw TypeError(".Authentication.GetDataKeyBackupV3Response.passwordRules: object expected"); + if (typeof object.passwordRules[i] !== 'object') + throw TypeError('.Authentication.GetDataKeyBackupV3Response.passwordRules: object expected'); message.passwordRules[i] = $root.Authentication.PasswordRules.fromObject(object.passwordRules[i]); } } - if (object.passwordRulesIntro != null) - message.passwordRulesIntro = String(object.passwordRulesIntro); + if (object.passwordRulesIntro != null) message.passwordRulesIntro = String(object.passwordRulesIntro); if (object.minimumPbkdf2Iterations != null) message.minimumPbkdf2Iterations = object.minimumPbkdf2Iterations | 0; switch (object.keyType) { - default: - if (typeof object.keyType === "number") { - message.keyType = object.keyType; + default: + if (typeof object.keyType === 'number') { + message.keyType = object.keyType; + break; + } + break; + case 'RSA': + case 0: + message.keyType = 0; + break; + case 'ECC': + case 1: + message.keyType = 1; break; - } - break; - case "RSA": - case 0: - message.keyType = 0; - break; - case "ECC": - case 1: - message.keyType = 1; - break; } return message; }; @@ -35738,82 +37026,114 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ GetDataKeyBackupV3Response.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.passwordRules = []; + if (options.arrays || options.defaults) object.passwordRules = []; if (options.defaults) { - if (options.bytes === String) - object.dataKeyBackup = ""; + if (options.bytes === String) object.dataKeyBackup = ''; else { object.dataKeyBackup = []; - if (options.bytes !== Array) - object.dataKeyBackup = $util.newBuffer(object.dataKeyBackup); + if (options.bytes !== Array) object.dataKeyBackup = $util.newBuffer(object.dataKeyBackup); } if ($util.Long) { let long = new $util.Long(0, 0, false); - object.dataKeyBackupDate = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.dataKeyBackupDate = options.longs === String ? "0" : 0; - if (options.bytes === String) - object.publicKey = ""; + object.dataKeyBackupDate = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.dataKeyBackupDate = options.longs === String ? '0' : 0; + if (options.bytes === String) object.publicKey = ''; else { object.publicKey = []; - if (options.bytes !== Array) - object.publicKey = $util.newBuffer(object.publicKey); + if (options.bytes !== Array) object.publicKey = $util.newBuffer(object.publicKey); } - if (options.bytes === String) - object.encryptedPrivateKey = ""; + if (options.bytes === String) object.encryptedPrivateKey = ''; else { object.encryptedPrivateKey = []; if (options.bytes !== Array) object.encryptedPrivateKey = $util.newBuffer(object.encryptedPrivateKey); } - if (options.bytes === String) - object.clientKey = ""; + if (options.bytes === String) object.clientKey = ''; else { object.clientKey = []; - if (options.bytes !== Array) - object.clientKey = $util.newBuffer(object.clientKey); + if (options.bytes !== Array) object.clientKey = $util.newBuffer(object.clientKey); } - if (options.bytes === String) - object.encryptedSessionToken = ""; + if (options.bytes === String) object.encryptedSessionToken = ''; else { object.encryptedSessionToken = []; if (options.bytes !== Array) object.encryptedSessionToken = $util.newBuffer(object.encryptedSessionToken); } - object.passwordRulesIntro = ""; + object.passwordRulesIntro = ''; object.minimumPbkdf2Iterations = 0; - object.keyType = options.enums === String ? "RSA" : 0; - } - if (message.dataKeyBackup != null && message.hasOwnProperty("dataKeyBackup")) - object.dataKeyBackup = options.bytes === String ? $util.base64.encode(message.dataKeyBackup, 0, message.dataKeyBackup.length) : options.bytes === Array ? Array.prototype.slice.call(message.dataKeyBackup) : message.dataKeyBackup; - if (message.dataKeyBackupDate != null && message.hasOwnProperty("dataKeyBackupDate")) - if (typeof message.dataKeyBackupDate === "number") - object.dataKeyBackupDate = options.longs === String ? String(message.dataKeyBackupDate) : message.dataKeyBackupDate; + object.keyType = options.enums === String ? 'RSA' : 0; + } + if (message.dataKeyBackup != null && message.hasOwnProperty('dataKeyBackup')) + object.dataKeyBackup = + options.bytes === String + ? $util.base64.encode(message.dataKeyBackup, 0, message.dataKeyBackup.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.dataKeyBackup) + : message.dataKeyBackup; + if (message.dataKeyBackupDate != null && message.hasOwnProperty('dataKeyBackupDate')) + if (typeof message.dataKeyBackupDate === 'number') + object.dataKeyBackupDate = + options.longs === String ? String(message.dataKeyBackupDate) : message.dataKeyBackupDate; else - object.dataKeyBackupDate = options.longs === String ? $util.Long.prototype.toString.call(message.dataKeyBackupDate) : options.longs === Number ? new $util.LongBits(message.dataKeyBackupDate.low >>> 0, message.dataKeyBackupDate.high >>> 0).toNumber() : message.dataKeyBackupDate; - if (message.publicKey != null && message.hasOwnProperty("publicKey")) - object.publicKey = options.bytes === String ? $util.base64.encode(message.publicKey, 0, message.publicKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.publicKey) : message.publicKey; - if (message.encryptedPrivateKey != null && message.hasOwnProperty("encryptedPrivateKey")) - object.encryptedPrivateKey = options.bytes === String ? $util.base64.encode(message.encryptedPrivateKey, 0, message.encryptedPrivateKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedPrivateKey) : message.encryptedPrivateKey; - if (message.clientKey != null && message.hasOwnProperty("clientKey")) - object.clientKey = options.bytes === String ? $util.base64.encode(message.clientKey, 0, message.clientKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.clientKey) : message.clientKey; - if (message.encryptedSessionToken != null && message.hasOwnProperty("encryptedSessionToken")) - object.encryptedSessionToken = options.bytes === String ? $util.base64.encode(message.encryptedSessionToken, 0, message.encryptedSessionToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedSessionToken) : message.encryptedSessionToken; + object.dataKeyBackupDate = + options.longs === String + ? $util.Long.prototype.toString.call(message.dataKeyBackupDate) + : options.longs === Number + ? new $util.LongBits( + message.dataKeyBackupDate.low >>> 0, + message.dataKeyBackupDate.high >>> 0 + ).toNumber() + : message.dataKeyBackupDate; + if (message.publicKey != null && message.hasOwnProperty('publicKey')) + object.publicKey = + options.bytes === String + ? $util.base64.encode(message.publicKey, 0, message.publicKey.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.publicKey) + : message.publicKey; + if (message.encryptedPrivateKey != null && message.hasOwnProperty('encryptedPrivateKey')) + object.encryptedPrivateKey = + options.bytes === String + ? $util.base64.encode(message.encryptedPrivateKey, 0, message.encryptedPrivateKey.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.encryptedPrivateKey) + : message.encryptedPrivateKey; + if (message.clientKey != null && message.hasOwnProperty('clientKey')) + object.clientKey = + options.bytes === String + ? $util.base64.encode(message.clientKey, 0, message.clientKey.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.clientKey) + : message.clientKey; + if (message.encryptedSessionToken != null && message.hasOwnProperty('encryptedSessionToken')) + object.encryptedSessionToken = + options.bytes === String + ? $util.base64.encode(message.encryptedSessionToken, 0, message.encryptedSessionToken.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.encryptedSessionToken) + : message.encryptedSessionToken; if (message.passwordRules && message.passwordRules.length) { object.passwordRules = []; for (let j = 0; j < message.passwordRules.length; ++j) - object.passwordRules[j] = $root.Authentication.PasswordRules.toObject(message.passwordRules[j], options); + object.passwordRules[j] = $root.Authentication.PasswordRules.toObject( + message.passwordRules[j], + options + ); } - if (message.passwordRulesIntro != null && message.hasOwnProperty("passwordRulesIntro")) + if (message.passwordRulesIntro != null && message.hasOwnProperty('passwordRulesIntro')) object.passwordRulesIntro = message.passwordRulesIntro; - if (message.minimumPbkdf2Iterations != null && message.hasOwnProperty("minimumPbkdf2Iterations")) + if (message.minimumPbkdf2Iterations != null && message.hasOwnProperty('minimumPbkdf2Iterations')) object.minimumPbkdf2Iterations = message.minimumPbkdf2Iterations; - if (message.keyType != null && message.hasOwnProperty("keyType")) - object.keyType = options.enums === String ? $root.Enterprise.KeyType[message.keyType] === undefined ? message.keyType : $root.Enterprise.KeyType[message.keyType] : message.keyType; + if (message.keyType != null && message.hasOwnProperty('keyType')) + object.keyType = + options.enums === String + ? $root.Enterprise.KeyType[message.keyType] === undefined + ? message.keyType + : $root.Enterprise.KeyType[message.keyType] + : message.keyType; return object; }; @@ -35838,16 +37158,15 @@ export const Authentication = $root.Authentication = (() => { */ GetDataKeyBackupV3Response.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.GetDataKeyBackupV3Response"; + return typeUrlPrefix + '/Authentication.GetDataKeyBackupV3Response'; }; return GetDataKeyBackupV3Response; })(); - Authentication.GetPublicKeysRequest = (function() { - + Authentication.GetPublicKeysRequest = (function () { /** * Properties of a GetPublicKeysRequest. * @memberof Authentication @@ -35867,8 +37186,7 @@ export const Authentication = $root.Authentication = (() => { this.usernames = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -35901,11 +37219,10 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ GetPublicKeysRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.usernames != null && message.usernames.length) for (let i = 0; i < message.usernames.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.usernames[i]); + writer.uint32(/* id 1, wireType 2 =*/ 10).string(message.usernames[i]); return writer; }; @@ -35934,21 +37251,20 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ GetPublicKeysRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.GetPublicKeysRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.GetPublicKeysRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (!(message.usernames && message.usernames.length)) - message.usernames = []; + case 1: { + if (!(message.usernames && message.usernames.length)) message.usernames = []; message.usernames.push(reader.string()); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -35965,8 +37281,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ GetPublicKeysRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -35979,14 +37294,11 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ GetPublicKeysRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.usernames != null && message.hasOwnProperty("usernames")) { - if (!Array.isArray(message.usernames)) - return "usernames: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.usernames != null && message.hasOwnProperty('usernames')) { + if (!Array.isArray(message.usernames)) return 'usernames: array expected'; for (let i = 0; i < message.usernames.length; ++i) - if (!$util.isString(message.usernames[i])) - return "usernames: string[] expected"; + if (!$util.isString(message.usernames[i])) return 'usernames: string[] expected'; } return null; }; @@ -36000,15 +37312,13 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.GetPublicKeysRequest} GetPublicKeysRequest */ GetPublicKeysRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.GetPublicKeysRequest) - return object; + if (object instanceof $root.Authentication.GetPublicKeysRequest) return object; let message = new $root.Authentication.GetPublicKeysRequest(); if (object.usernames) { if (!Array.isArray(object.usernames)) - throw TypeError(".Authentication.GetPublicKeysRequest.usernames: array expected"); + throw TypeError('.Authentication.GetPublicKeysRequest.usernames: array expected'); message.usernames = []; - for (let i = 0; i < object.usernames.length; ++i) - message.usernames[i] = String(object.usernames[i]); + for (let i = 0; i < object.usernames.length; ++i) message.usernames[i] = String(object.usernames[i]); } return message; }; @@ -36023,15 +37333,12 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ GetPublicKeysRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.usernames = []; + if (options.arrays || options.defaults) object.usernames = []; if (message.usernames && message.usernames.length) { object.usernames = []; - for (let j = 0; j < message.usernames.length; ++j) - object.usernames[j] = message.usernames[j]; + for (let j = 0; j < message.usernames.length; ++j) object.usernames[j] = message.usernames[j]; } return object; }; @@ -36057,16 +37364,15 @@ export const Authentication = $root.Authentication = (() => { */ GetPublicKeysRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.GetPublicKeysRequest"; + return typeUrlPrefix + '/Authentication.GetPublicKeysRequest'; }; return GetPublicKeysRequest; })(); - Authentication.PublicKeyResponse = (function() { - + Authentication.PublicKeyResponse = (function () { /** * Properties of a PublicKeyResponse. * @memberof Authentication @@ -36089,8 +37395,7 @@ export const Authentication = $root.Authentication = (() => { function PublicKeyResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -36099,7 +37404,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.PublicKeyResponse * @instance */ - PublicKeyResponse.prototype.username = ""; + PublicKeyResponse.prototype.username = ''; /** * PublicKeyResponse publicKey. @@ -36123,7 +37428,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.PublicKeyResponse * @instance */ - PublicKeyResponse.prototype.message = ""; + PublicKeyResponse.prototype.message = ''; /** * PublicKeyResponse errorCode. @@ -36131,7 +37436,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.PublicKeyResponse * @instance */ - PublicKeyResponse.prototype.errorCode = ""; + PublicKeyResponse.prototype.errorCode = ''; /** * Creates a new PublicKeyResponse instance using the specified properties. @@ -36155,18 +37460,17 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ PublicKeyResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.username != null && Object.hasOwnProperty.call(message, "username")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.username); - if (message.publicKey != null && Object.hasOwnProperty.call(message, "publicKey")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.publicKey); - if (message.publicEccKey != null && Object.hasOwnProperty.call(message, "publicEccKey")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.publicEccKey); - if (message.message != null && Object.hasOwnProperty.call(message, "message")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.message); - if (message.errorCode != null && Object.hasOwnProperty.call(message, "errorCode")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.errorCode); + if (!writer) writer = $Writer.create(); + if (message.username != null && Object.hasOwnProperty.call(message, 'username')) + writer.uint32(/* id 1, wireType 2 =*/ 10).string(message.username); + if (message.publicKey != null && Object.hasOwnProperty.call(message, 'publicKey')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.publicKey); + if (message.publicEccKey != null && Object.hasOwnProperty.call(message, 'publicEccKey')) + writer.uint32(/* id 3, wireType 2 =*/ 26).bytes(message.publicEccKey); + if (message.message != null && Object.hasOwnProperty.call(message, 'message')) + writer.uint32(/* id 4, wireType 2 =*/ 34).string(message.message); + if (message.errorCode != null && Object.hasOwnProperty.call(message, 'errorCode')) + writer.uint32(/* id 5, wireType 2 =*/ 42).string(message.errorCode); return writer; }; @@ -36195,35 +37499,35 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ PublicKeyResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.PublicKeyResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.PublicKeyResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.username = reader.string(); break; } - case 2: { + case 2: { message.publicKey = reader.bytes(); break; } - case 3: { + case 3: { message.publicEccKey = reader.bytes(); break; } - case 4: { + case 4: { message.message = reader.string(); break; } - case 5: { + case 5: { message.errorCode = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -36240,8 +37544,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ PublicKeyResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -36254,23 +37557,29 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ PublicKeyResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.username != null && message.hasOwnProperty("username")) - if (!$util.isString(message.username)) - return "username: string expected"; - if (message.publicKey != null && message.hasOwnProperty("publicKey")) - if (!(message.publicKey && typeof message.publicKey.length === "number" || $util.isString(message.publicKey))) - return "publicKey: buffer expected"; - if (message.publicEccKey != null && message.hasOwnProperty("publicEccKey")) - if (!(message.publicEccKey && typeof message.publicEccKey.length === "number" || $util.isString(message.publicEccKey))) - return "publicEccKey: buffer expected"; - if (message.message != null && message.hasOwnProperty("message")) - if (!$util.isString(message.message)) - return "message: string expected"; - if (message.errorCode != null && message.hasOwnProperty("errorCode")) - if (!$util.isString(message.errorCode)) - return "errorCode: string expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.username != null && message.hasOwnProperty('username')) + if (!$util.isString(message.username)) return 'username: string expected'; + if (message.publicKey != null && message.hasOwnProperty('publicKey')) + if ( + !( + (message.publicKey && typeof message.publicKey.length === 'number') || + $util.isString(message.publicKey) + ) + ) + return 'publicKey: buffer expected'; + if (message.publicEccKey != null && message.hasOwnProperty('publicEccKey')) + if ( + !( + (message.publicEccKey && typeof message.publicEccKey.length === 'number') || + $util.isString(message.publicEccKey) + ) + ) + return 'publicEccKey: buffer expected'; + if (message.message != null && message.hasOwnProperty('message')) + if (!$util.isString(message.message)) return 'message: string expected'; + if (message.errorCode != null && message.hasOwnProperty('errorCode')) + if (!$util.isString(message.errorCode)) return 'errorCode: string expected'; return null; }; @@ -36283,25 +37592,27 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.PublicKeyResponse} PublicKeyResponse */ PublicKeyResponse.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.PublicKeyResponse) - return object; + if (object instanceof $root.Authentication.PublicKeyResponse) return object; let message = new $root.Authentication.PublicKeyResponse(); - if (object.username != null) - message.username = String(object.username); + if (object.username != null) message.username = String(object.username); if (object.publicKey != null) - if (typeof object.publicKey === "string") - $util.base64.decode(object.publicKey, message.publicKey = $util.newBuffer($util.base64.length(object.publicKey)), 0); - else if (object.publicKey.length >= 0) - message.publicKey = object.publicKey; + if (typeof object.publicKey === 'string') + $util.base64.decode( + object.publicKey, + (message.publicKey = $util.newBuffer($util.base64.length(object.publicKey))), + 0 + ); + else if (object.publicKey.length >= 0) message.publicKey = object.publicKey; if (object.publicEccKey != null) - if (typeof object.publicEccKey === "string") - $util.base64.decode(object.publicEccKey, message.publicEccKey = $util.newBuffer($util.base64.length(object.publicEccKey)), 0); - else if (object.publicEccKey.length >= 0) - message.publicEccKey = object.publicEccKey; - if (object.message != null) - message.message = String(object.message); - if (object.errorCode != null) - message.errorCode = String(object.errorCode); + if (typeof object.publicEccKey === 'string') + $util.base64.decode( + object.publicEccKey, + (message.publicEccKey = $util.newBuffer($util.base64.length(object.publicEccKey))), + 0 + ); + else if (object.publicEccKey.length >= 0) message.publicEccKey = object.publicEccKey; + if (object.message != null) message.message = String(object.message); + if (object.errorCode != null) message.errorCode = String(object.errorCode); return message; }; @@ -36315,38 +37626,40 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ PublicKeyResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - object.username = ""; - if (options.bytes === String) - object.publicKey = ""; + object.username = ''; + if (options.bytes === String) object.publicKey = ''; else { object.publicKey = []; - if (options.bytes !== Array) - object.publicKey = $util.newBuffer(object.publicKey); + if (options.bytes !== Array) object.publicKey = $util.newBuffer(object.publicKey); } - if (options.bytes === String) - object.publicEccKey = ""; + if (options.bytes === String) object.publicEccKey = ''; else { object.publicEccKey = []; - if (options.bytes !== Array) - object.publicEccKey = $util.newBuffer(object.publicEccKey); + if (options.bytes !== Array) object.publicEccKey = $util.newBuffer(object.publicEccKey); } - object.message = ""; - object.errorCode = ""; + object.message = ''; + object.errorCode = ''; } - if (message.username != null && message.hasOwnProperty("username")) - object.username = message.username; - if (message.publicKey != null && message.hasOwnProperty("publicKey")) - object.publicKey = options.bytes === String ? $util.base64.encode(message.publicKey, 0, message.publicKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.publicKey) : message.publicKey; - if (message.publicEccKey != null && message.hasOwnProperty("publicEccKey")) - object.publicEccKey = options.bytes === String ? $util.base64.encode(message.publicEccKey, 0, message.publicEccKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.publicEccKey) : message.publicEccKey; - if (message.message != null && message.hasOwnProperty("message")) - object.message = message.message; - if (message.errorCode != null && message.hasOwnProperty("errorCode")) - object.errorCode = message.errorCode; + if (message.username != null && message.hasOwnProperty('username')) object.username = message.username; + if (message.publicKey != null && message.hasOwnProperty('publicKey')) + object.publicKey = + options.bytes === String + ? $util.base64.encode(message.publicKey, 0, message.publicKey.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.publicKey) + : message.publicKey; + if (message.publicEccKey != null && message.hasOwnProperty('publicEccKey')) + object.publicEccKey = + options.bytes === String + ? $util.base64.encode(message.publicEccKey, 0, message.publicEccKey.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.publicEccKey) + : message.publicEccKey; + if (message.message != null && message.hasOwnProperty('message')) object.message = message.message; + if (message.errorCode != null && message.hasOwnProperty('errorCode')) object.errorCode = message.errorCode; return object; }; @@ -36371,16 +37684,15 @@ export const Authentication = $root.Authentication = (() => { */ PublicKeyResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.PublicKeyResponse"; + return typeUrlPrefix + '/Authentication.PublicKeyResponse'; }; return PublicKeyResponse; })(); - Authentication.GetPublicKeysResponse = (function() { - + Authentication.GetPublicKeysResponse = (function () { /** * Properties of a GetPublicKeysResponse. * @memberof Authentication @@ -36400,8 +37712,7 @@ export const Authentication = $root.Authentication = (() => { this.keyResponses = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -36434,11 +37745,13 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ GetPublicKeysResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.keyResponses != null && message.keyResponses.length) for (let i = 0; i < message.keyResponses.length; ++i) - $root.Authentication.PublicKeyResponse.encode(message.keyResponses[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.Authentication.PublicKeyResponse.encode( + message.keyResponses[i], + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); return writer; }; @@ -36467,21 +37780,22 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ GetPublicKeysResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.GetPublicKeysResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.GetPublicKeysResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (!(message.keyResponses && message.keyResponses.length)) - message.keyResponses = []; - message.keyResponses.push($root.Authentication.PublicKeyResponse.decode(reader, reader.uint32())); + case 1: { + if (!(message.keyResponses && message.keyResponses.length)) message.keyResponses = []; + message.keyResponses.push( + $root.Authentication.PublicKeyResponse.decode(reader, reader.uint32()) + ); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -36498,8 +37812,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ GetPublicKeysResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -36512,15 +37825,12 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ GetPublicKeysResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.keyResponses != null && message.hasOwnProperty("keyResponses")) { - if (!Array.isArray(message.keyResponses)) - return "keyResponses: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.keyResponses != null && message.hasOwnProperty('keyResponses')) { + if (!Array.isArray(message.keyResponses)) return 'keyResponses: array expected'; for (let i = 0; i < message.keyResponses.length; ++i) { let error = $root.Authentication.PublicKeyResponse.verify(message.keyResponses[i]); - if (error) - return "keyResponses." + error; + if (error) return 'keyResponses.' + error; } } return null; @@ -36535,16 +37845,15 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.GetPublicKeysResponse} GetPublicKeysResponse */ GetPublicKeysResponse.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.GetPublicKeysResponse) - return object; + if (object instanceof $root.Authentication.GetPublicKeysResponse) return object; let message = new $root.Authentication.GetPublicKeysResponse(); if (object.keyResponses) { if (!Array.isArray(object.keyResponses)) - throw TypeError(".Authentication.GetPublicKeysResponse.keyResponses: array expected"); + throw TypeError('.Authentication.GetPublicKeysResponse.keyResponses: array expected'); message.keyResponses = []; for (let i = 0; i < object.keyResponses.length; ++i) { - if (typeof object.keyResponses[i] !== "object") - throw TypeError(".Authentication.GetPublicKeysResponse.keyResponses: object expected"); + if (typeof object.keyResponses[i] !== 'object') + throw TypeError('.Authentication.GetPublicKeysResponse.keyResponses: object expected'); message.keyResponses[i] = $root.Authentication.PublicKeyResponse.fromObject(object.keyResponses[i]); } } @@ -36561,15 +37870,16 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ GetPublicKeysResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.keyResponses = []; + if (options.arrays || options.defaults) object.keyResponses = []; if (message.keyResponses && message.keyResponses.length) { object.keyResponses = []; for (let j = 0; j < message.keyResponses.length; ++j) - object.keyResponses[j] = $root.Authentication.PublicKeyResponse.toObject(message.keyResponses[j], options); + object.keyResponses[j] = $root.Authentication.PublicKeyResponse.toObject( + message.keyResponses[j], + options + ); } return object; }; @@ -36595,16 +37905,15 @@ export const Authentication = $root.Authentication = (() => { */ GetPublicKeysResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.GetPublicKeysResponse"; + return typeUrlPrefix + '/Authentication.GetPublicKeysResponse'; }; return GetPublicKeysResponse; })(); - Authentication.SetEccKeyPairRequest = (function() { - + Authentication.SetEccKeyPairRequest = (function () { /** * Properties of a SetEccKeyPairRequest. * @memberof Authentication @@ -36624,8 +37933,7 @@ export const Authentication = $root.Authentication = (() => { function SetEccKeyPairRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -36666,12 +37974,11 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ SetEccKeyPairRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.publicKey != null && Object.hasOwnProperty.call(message, "publicKey")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.publicKey); - if (message.encryptedPrivateKey != null && Object.hasOwnProperty.call(message, "encryptedPrivateKey")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.encryptedPrivateKey); + if (!writer) writer = $Writer.create(); + if (message.publicKey != null && Object.hasOwnProperty.call(message, 'publicKey')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.publicKey); + if (message.encryptedPrivateKey != null && Object.hasOwnProperty.call(message, 'encryptedPrivateKey')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.encryptedPrivateKey); return writer; }; @@ -36700,23 +38007,23 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SetEccKeyPairRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.SetEccKeyPairRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.SetEccKeyPairRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.publicKey = reader.bytes(); break; } - case 2: { + case 2: { message.encryptedPrivateKey = reader.bytes(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -36733,8 +38040,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SetEccKeyPairRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -36747,14 +38053,23 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ SetEccKeyPairRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.publicKey != null && message.hasOwnProperty("publicKey")) - if (!(message.publicKey && typeof message.publicKey.length === "number" || $util.isString(message.publicKey))) - return "publicKey: buffer expected"; - if (message.encryptedPrivateKey != null && message.hasOwnProperty("encryptedPrivateKey")) - if (!(message.encryptedPrivateKey && typeof message.encryptedPrivateKey.length === "number" || $util.isString(message.encryptedPrivateKey))) - return "encryptedPrivateKey: buffer expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.publicKey != null && message.hasOwnProperty('publicKey')) + if ( + !( + (message.publicKey && typeof message.publicKey.length === 'number') || + $util.isString(message.publicKey) + ) + ) + return 'publicKey: buffer expected'; + if (message.encryptedPrivateKey != null && message.hasOwnProperty('encryptedPrivateKey')) + if ( + !( + (message.encryptedPrivateKey && typeof message.encryptedPrivateKey.length === 'number') || + $util.isString(message.encryptedPrivateKey) + ) + ) + return 'encryptedPrivateKey: buffer expected'; return null; }; @@ -36767,17 +38082,25 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.SetEccKeyPairRequest} SetEccKeyPairRequest */ SetEccKeyPairRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.SetEccKeyPairRequest) - return object; + if (object instanceof $root.Authentication.SetEccKeyPairRequest) return object; let message = new $root.Authentication.SetEccKeyPairRequest(); if (object.publicKey != null) - if (typeof object.publicKey === "string") - $util.base64.decode(object.publicKey, message.publicKey = $util.newBuffer($util.base64.length(object.publicKey)), 0); - else if (object.publicKey.length >= 0) - message.publicKey = object.publicKey; + if (typeof object.publicKey === 'string') + $util.base64.decode( + object.publicKey, + (message.publicKey = $util.newBuffer($util.base64.length(object.publicKey))), + 0 + ); + else if (object.publicKey.length >= 0) message.publicKey = object.publicKey; if (object.encryptedPrivateKey != null) - if (typeof object.encryptedPrivateKey === "string") - $util.base64.decode(object.encryptedPrivateKey, message.encryptedPrivateKey = $util.newBuffer($util.base64.length(object.encryptedPrivateKey)), 0); + if (typeof object.encryptedPrivateKey === 'string') + $util.base64.decode( + object.encryptedPrivateKey, + (message.encryptedPrivateKey = $util.newBuffer( + $util.base64.length(object.encryptedPrivateKey) + )), + 0 + ); else if (object.encryptedPrivateKey.length >= 0) message.encryptedPrivateKey = object.encryptedPrivateKey; return message; @@ -36793,29 +38116,35 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ SetEccKeyPairRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.publicKey = ""; + if (options.bytes === String) object.publicKey = ''; else { object.publicKey = []; - if (options.bytes !== Array) - object.publicKey = $util.newBuffer(object.publicKey); + if (options.bytes !== Array) object.publicKey = $util.newBuffer(object.publicKey); } - if (options.bytes === String) - object.encryptedPrivateKey = ""; + if (options.bytes === String) object.encryptedPrivateKey = ''; else { object.encryptedPrivateKey = []; if (options.bytes !== Array) object.encryptedPrivateKey = $util.newBuffer(object.encryptedPrivateKey); } } - if (message.publicKey != null && message.hasOwnProperty("publicKey")) - object.publicKey = options.bytes === String ? $util.base64.encode(message.publicKey, 0, message.publicKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.publicKey) : message.publicKey; - if (message.encryptedPrivateKey != null && message.hasOwnProperty("encryptedPrivateKey")) - object.encryptedPrivateKey = options.bytes === String ? $util.base64.encode(message.encryptedPrivateKey, 0, message.encryptedPrivateKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedPrivateKey) : message.encryptedPrivateKey; + if (message.publicKey != null && message.hasOwnProperty('publicKey')) + object.publicKey = + options.bytes === String + ? $util.base64.encode(message.publicKey, 0, message.publicKey.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.publicKey) + : message.publicKey; + if (message.encryptedPrivateKey != null && message.hasOwnProperty('encryptedPrivateKey')) + object.encryptedPrivateKey = + options.bytes === String + ? $util.base64.encode(message.encryptedPrivateKey, 0, message.encryptedPrivateKey.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.encryptedPrivateKey) + : message.encryptedPrivateKey; return object; }; @@ -36840,16 +38169,15 @@ export const Authentication = $root.Authentication = (() => { */ SetEccKeyPairRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.SetEccKeyPairRequest"; + return typeUrlPrefix + '/Authentication.SetEccKeyPairRequest'; }; return SetEccKeyPairRequest; })(); - Authentication.SetEccKeyPairsRequest = (function() { - + Authentication.SetEccKeyPairsRequest = (function () { /** * Properties of a SetEccKeyPairsRequest. * @memberof Authentication @@ -36869,8 +38197,7 @@ export const Authentication = $root.Authentication = (() => { this.teamKeys = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -36903,11 +38230,13 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ SetEccKeyPairsRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.teamKeys != null && message.teamKeys.length) for (let i = 0; i < message.teamKeys.length; ++i) - $root.Authentication.TeamEccKeyPair.encode(message.teamKeys[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.Authentication.TeamEccKeyPair.encode( + message.teamKeys[i], + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); return writer; }; @@ -36936,21 +38265,20 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SetEccKeyPairsRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.SetEccKeyPairsRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.SetEccKeyPairsRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (!(message.teamKeys && message.teamKeys.length)) - message.teamKeys = []; + case 1: { + if (!(message.teamKeys && message.teamKeys.length)) message.teamKeys = []; message.teamKeys.push($root.Authentication.TeamEccKeyPair.decode(reader, reader.uint32())); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -36967,8 +38295,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SetEccKeyPairsRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -36981,15 +38308,12 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ SetEccKeyPairsRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.teamKeys != null && message.hasOwnProperty("teamKeys")) { - if (!Array.isArray(message.teamKeys)) - return "teamKeys: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.teamKeys != null && message.hasOwnProperty('teamKeys')) { + if (!Array.isArray(message.teamKeys)) return 'teamKeys: array expected'; for (let i = 0; i < message.teamKeys.length; ++i) { let error = $root.Authentication.TeamEccKeyPair.verify(message.teamKeys[i]); - if (error) - return "teamKeys." + error; + if (error) return 'teamKeys.' + error; } } return null; @@ -37004,16 +38328,15 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.SetEccKeyPairsRequest} SetEccKeyPairsRequest */ SetEccKeyPairsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.SetEccKeyPairsRequest) - return object; + if (object instanceof $root.Authentication.SetEccKeyPairsRequest) return object; let message = new $root.Authentication.SetEccKeyPairsRequest(); if (object.teamKeys) { if (!Array.isArray(object.teamKeys)) - throw TypeError(".Authentication.SetEccKeyPairsRequest.teamKeys: array expected"); + throw TypeError('.Authentication.SetEccKeyPairsRequest.teamKeys: array expected'); message.teamKeys = []; for (let i = 0; i < object.teamKeys.length; ++i) { - if (typeof object.teamKeys[i] !== "object") - throw TypeError(".Authentication.SetEccKeyPairsRequest.teamKeys: object expected"); + if (typeof object.teamKeys[i] !== 'object') + throw TypeError('.Authentication.SetEccKeyPairsRequest.teamKeys: object expected'); message.teamKeys[i] = $root.Authentication.TeamEccKeyPair.fromObject(object.teamKeys[i]); } } @@ -37030,11 +38353,9 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ SetEccKeyPairsRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.teamKeys = []; + if (options.arrays || options.defaults) object.teamKeys = []; if (message.teamKeys && message.teamKeys.length) { object.teamKeys = []; for (let j = 0; j < message.teamKeys.length; ++j) @@ -37064,16 +38385,15 @@ export const Authentication = $root.Authentication = (() => { */ SetEccKeyPairsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.SetEccKeyPairsRequest"; + return typeUrlPrefix + '/Authentication.SetEccKeyPairsRequest'; }; return SetEccKeyPairsRequest; })(); - Authentication.SetEccKeyPairsResponse = (function() { - + Authentication.SetEccKeyPairsResponse = (function () { /** * Properties of a SetEccKeyPairsResponse. * @memberof Authentication @@ -37093,8 +38413,7 @@ export const Authentication = $root.Authentication = (() => { this.teamKeys = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -37127,11 +38446,13 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ SetEccKeyPairsResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.teamKeys != null && message.teamKeys.length) for (let i = 0; i < message.teamKeys.length; ++i) - $root.Authentication.TeamEccKeyPairResponse.encode(message.teamKeys[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.Authentication.TeamEccKeyPairResponse.encode( + message.teamKeys[i], + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); return writer; }; @@ -37160,21 +38481,22 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SetEccKeyPairsResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.SetEccKeyPairsResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.SetEccKeyPairsResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (!(message.teamKeys && message.teamKeys.length)) - message.teamKeys = []; - message.teamKeys.push($root.Authentication.TeamEccKeyPairResponse.decode(reader, reader.uint32())); + case 1: { + if (!(message.teamKeys && message.teamKeys.length)) message.teamKeys = []; + message.teamKeys.push( + $root.Authentication.TeamEccKeyPairResponse.decode(reader, reader.uint32()) + ); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -37191,8 +38513,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SetEccKeyPairsResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -37205,15 +38526,12 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ SetEccKeyPairsResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.teamKeys != null && message.hasOwnProperty("teamKeys")) { - if (!Array.isArray(message.teamKeys)) - return "teamKeys: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.teamKeys != null && message.hasOwnProperty('teamKeys')) { + if (!Array.isArray(message.teamKeys)) return 'teamKeys: array expected'; for (let i = 0; i < message.teamKeys.length; ++i) { let error = $root.Authentication.TeamEccKeyPairResponse.verify(message.teamKeys[i]); - if (error) - return "teamKeys." + error; + if (error) return 'teamKeys.' + error; } } return null; @@ -37228,16 +38546,15 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.SetEccKeyPairsResponse} SetEccKeyPairsResponse */ SetEccKeyPairsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.SetEccKeyPairsResponse) - return object; + if (object instanceof $root.Authentication.SetEccKeyPairsResponse) return object; let message = new $root.Authentication.SetEccKeyPairsResponse(); if (object.teamKeys) { if (!Array.isArray(object.teamKeys)) - throw TypeError(".Authentication.SetEccKeyPairsResponse.teamKeys: array expected"); + throw TypeError('.Authentication.SetEccKeyPairsResponse.teamKeys: array expected'); message.teamKeys = []; for (let i = 0; i < object.teamKeys.length; ++i) { - if (typeof object.teamKeys[i] !== "object") - throw TypeError(".Authentication.SetEccKeyPairsResponse.teamKeys: object expected"); + if (typeof object.teamKeys[i] !== 'object') + throw TypeError('.Authentication.SetEccKeyPairsResponse.teamKeys: object expected'); message.teamKeys[i] = $root.Authentication.TeamEccKeyPairResponse.fromObject(object.teamKeys[i]); } } @@ -37254,15 +38571,16 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ SetEccKeyPairsResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.teamKeys = []; + if (options.arrays || options.defaults) object.teamKeys = []; if (message.teamKeys && message.teamKeys.length) { object.teamKeys = []; for (let j = 0; j < message.teamKeys.length; ++j) - object.teamKeys[j] = $root.Authentication.TeamEccKeyPairResponse.toObject(message.teamKeys[j], options); + object.teamKeys[j] = $root.Authentication.TeamEccKeyPairResponse.toObject( + message.teamKeys[j], + options + ); } return object; }; @@ -37288,16 +38606,15 @@ export const Authentication = $root.Authentication = (() => { */ SetEccKeyPairsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.SetEccKeyPairsResponse"; + return typeUrlPrefix + '/Authentication.SetEccKeyPairsResponse'; }; return SetEccKeyPairsResponse; })(); - Authentication.TeamEccKeyPair = (function() { - + Authentication.TeamEccKeyPair = (function () { /** * Properties of a TeamEccKeyPair. * @memberof Authentication @@ -37318,8 +38635,7 @@ export const Authentication = $root.Authentication = (() => { function TeamEccKeyPair(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -37368,14 +38684,13 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ TeamEccKeyPair.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.teamUid != null && Object.hasOwnProperty.call(message, "teamUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.teamUid); - if (message.publicKey != null && Object.hasOwnProperty.call(message, "publicKey")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.publicKey); - if (message.encryptedPrivateKey != null && Object.hasOwnProperty.call(message, "encryptedPrivateKey")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.encryptedPrivateKey); + if (!writer) writer = $Writer.create(); + if (message.teamUid != null && Object.hasOwnProperty.call(message, 'teamUid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.teamUid); + if (message.publicKey != null && Object.hasOwnProperty.call(message, 'publicKey')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.publicKey); + if (message.encryptedPrivateKey != null && Object.hasOwnProperty.call(message, 'encryptedPrivateKey')) + writer.uint32(/* id 3, wireType 2 =*/ 26).bytes(message.encryptedPrivateKey); return writer; }; @@ -37404,27 +38719,27 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ TeamEccKeyPair.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.TeamEccKeyPair(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.TeamEccKeyPair(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.teamUid = reader.bytes(); break; } - case 2: { + case 2: { message.publicKey = reader.bytes(); break; } - case 3: { + case 3: { message.encryptedPrivateKey = reader.bytes(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -37441,8 +38756,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ TeamEccKeyPair.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -37455,17 +38769,31 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ TeamEccKeyPair.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.teamUid != null && message.hasOwnProperty("teamUid")) - if (!(message.teamUid && typeof message.teamUid.length === "number" || $util.isString(message.teamUid))) - return "teamUid: buffer expected"; - if (message.publicKey != null && message.hasOwnProperty("publicKey")) - if (!(message.publicKey && typeof message.publicKey.length === "number" || $util.isString(message.publicKey))) - return "publicKey: buffer expected"; - if (message.encryptedPrivateKey != null && message.hasOwnProperty("encryptedPrivateKey")) - if (!(message.encryptedPrivateKey && typeof message.encryptedPrivateKey.length === "number" || $util.isString(message.encryptedPrivateKey))) - return "encryptedPrivateKey: buffer expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.teamUid != null && message.hasOwnProperty('teamUid')) + if ( + !( + (message.teamUid && typeof message.teamUid.length === 'number') || + $util.isString(message.teamUid) + ) + ) + return 'teamUid: buffer expected'; + if (message.publicKey != null && message.hasOwnProperty('publicKey')) + if ( + !( + (message.publicKey && typeof message.publicKey.length === 'number') || + $util.isString(message.publicKey) + ) + ) + return 'publicKey: buffer expected'; + if (message.encryptedPrivateKey != null && message.hasOwnProperty('encryptedPrivateKey')) + if ( + !( + (message.encryptedPrivateKey && typeof message.encryptedPrivateKey.length === 'number') || + $util.isString(message.encryptedPrivateKey) + ) + ) + return 'encryptedPrivateKey: buffer expected'; return null; }; @@ -37478,22 +38806,33 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.TeamEccKeyPair} TeamEccKeyPair */ TeamEccKeyPair.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.TeamEccKeyPair) - return object; + if (object instanceof $root.Authentication.TeamEccKeyPair) return object; let message = new $root.Authentication.TeamEccKeyPair(); if (object.teamUid != null) - if (typeof object.teamUid === "string") - $util.base64.decode(object.teamUid, message.teamUid = $util.newBuffer($util.base64.length(object.teamUid)), 0); - else if (object.teamUid.length >= 0) - message.teamUid = object.teamUid; + if (typeof object.teamUid === 'string') + $util.base64.decode( + object.teamUid, + (message.teamUid = $util.newBuffer($util.base64.length(object.teamUid))), + 0 + ); + else if (object.teamUid.length >= 0) message.teamUid = object.teamUid; if (object.publicKey != null) - if (typeof object.publicKey === "string") - $util.base64.decode(object.publicKey, message.publicKey = $util.newBuffer($util.base64.length(object.publicKey)), 0); - else if (object.publicKey.length >= 0) - message.publicKey = object.publicKey; + if (typeof object.publicKey === 'string') + $util.base64.decode( + object.publicKey, + (message.publicKey = $util.newBuffer($util.base64.length(object.publicKey))), + 0 + ); + else if (object.publicKey.length >= 0) message.publicKey = object.publicKey; if (object.encryptedPrivateKey != null) - if (typeof object.encryptedPrivateKey === "string") - $util.base64.decode(object.encryptedPrivateKey, message.encryptedPrivateKey = $util.newBuffer($util.base64.length(object.encryptedPrivateKey)), 0); + if (typeof object.encryptedPrivateKey === 'string') + $util.base64.decode( + object.encryptedPrivateKey, + (message.encryptedPrivateKey = $util.newBuffer( + $util.base64.length(object.encryptedPrivateKey) + )), + 0 + ); else if (object.encryptedPrivateKey.length >= 0) message.encryptedPrivateKey = object.encryptedPrivateKey; return message; @@ -37509,38 +38848,47 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ TeamEccKeyPair.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.teamUid = ""; + if (options.bytes === String) object.teamUid = ''; else { object.teamUid = []; - if (options.bytes !== Array) - object.teamUid = $util.newBuffer(object.teamUid); + if (options.bytes !== Array) object.teamUid = $util.newBuffer(object.teamUid); } - if (options.bytes === String) - object.publicKey = ""; + if (options.bytes === String) object.publicKey = ''; else { object.publicKey = []; - if (options.bytes !== Array) - object.publicKey = $util.newBuffer(object.publicKey); + if (options.bytes !== Array) object.publicKey = $util.newBuffer(object.publicKey); } - if (options.bytes === String) - object.encryptedPrivateKey = ""; + if (options.bytes === String) object.encryptedPrivateKey = ''; else { object.encryptedPrivateKey = []; if (options.bytes !== Array) object.encryptedPrivateKey = $util.newBuffer(object.encryptedPrivateKey); } } - if (message.teamUid != null && message.hasOwnProperty("teamUid")) - object.teamUid = options.bytes === String ? $util.base64.encode(message.teamUid, 0, message.teamUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.teamUid) : message.teamUid; - if (message.publicKey != null && message.hasOwnProperty("publicKey")) - object.publicKey = options.bytes === String ? $util.base64.encode(message.publicKey, 0, message.publicKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.publicKey) : message.publicKey; - if (message.encryptedPrivateKey != null && message.hasOwnProperty("encryptedPrivateKey")) - object.encryptedPrivateKey = options.bytes === String ? $util.base64.encode(message.encryptedPrivateKey, 0, message.encryptedPrivateKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedPrivateKey) : message.encryptedPrivateKey; + if (message.teamUid != null && message.hasOwnProperty('teamUid')) + object.teamUid = + options.bytes === String + ? $util.base64.encode(message.teamUid, 0, message.teamUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.teamUid) + : message.teamUid; + if (message.publicKey != null && message.hasOwnProperty('publicKey')) + object.publicKey = + options.bytes === String + ? $util.base64.encode(message.publicKey, 0, message.publicKey.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.publicKey) + : message.publicKey; + if (message.encryptedPrivateKey != null && message.hasOwnProperty('encryptedPrivateKey')) + object.encryptedPrivateKey = + options.bytes === String + ? $util.base64.encode(message.encryptedPrivateKey, 0, message.encryptedPrivateKey.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.encryptedPrivateKey) + : message.encryptedPrivateKey; return object; }; @@ -37565,16 +38913,15 @@ export const Authentication = $root.Authentication = (() => { */ TeamEccKeyPair.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.TeamEccKeyPair"; + return typeUrlPrefix + '/Authentication.TeamEccKeyPair'; }; return TeamEccKeyPair; })(); - Authentication.TeamEccKeyPairResponse = (function() { - + Authentication.TeamEccKeyPairResponse = (function () { /** * Properties of a TeamEccKeyPairResponse. * @memberof Authentication @@ -37594,8 +38941,7 @@ export const Authentication = $root.Authentication = (() => { function TeamEccKeyPairResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -37636,12 +38982,11 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ TeamEccKeyPairResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.teamUid != null && Object.hasOwnProperty.call(message, "teamUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.teamUid); - if (message.status != null && Object.hasOwnProperty.call(message, "status")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.status); + if (!writer) writer = $Writer.create(); + if (message.teamUid != null && Object.hasOwnProperty.call(message, 'teamUid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.teamUid); + if (message.status != null && Object.hasOwnProperty.call(message, 'status')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int32(message.status); return writer; }; @@ -37670,23 +39015,23 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ TeamEccKeyPairResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.TeamEccKeyPairResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.TeamEccKeyPairResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.teamUid = reader.bytes(); break; } - case 2: { + case 2: { message.status = reader.int32(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -37703,8 +39048,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ TeamEccKeyPairResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -37717,20 +39061,24 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ TeamEccKeyPairResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.teamUid != null && message.hasOwnProperty("teamUid")) - if (!(message.teamUid && typeof message.teamUid.length === "number" || $util.isString(message.teamUid))) - return "teamUid: buffer expected"; - if (message.status != null && message.hasOwnProperty("status")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.teamUid != null && message.hasOwnProperty('teamUid')) + if ( + !( + (message.teamUid && typeof message.teamUid.length === 'number') || + $util.isString(message.teamUid) + ) + ) + return 'teamUid: buffer expected'; + if (message.status != null && message.hasOwnProperty('status')) switch (message.status) { - default: - return "status: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; + default: + return 'status: enum value expected'; + case 0: + case 1: + case 2: + case 3: + break; } return null; }; @@ -37744,37 +39092,39 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.TeamEccKeyPairResponse} TeamEccKeyPairResponse */ TeamEccKeyPairResponse.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.TeamEccKeyPairResponse) - return object; + if (object instanceof $root.Authentication.TeamEccKeyPairResponse) return object; let message = new $root.Authentication.TeamEccKeyPairResponse(); if (object.teamUid != null) - if (typeof object.teamUid === "string") - $util.base64.decode(object.teamUid, message.teamUid = $util.newBuffer($util.base64.length(object.teamUid)), 0); - else if (object.teamUid.length >= 0) - message.teamUid = object.teamUid; + if (typeof object.teamUid === 'string') + $util.base64.decode( + object.teamUid, + (message.teamUid = $util.newBuffer($util.base64.length(object.teamUid))), + 0 + ); + else if (object.teamUid.length >= 0) message.teamUid = object.teamUid; switch (object.status) { - default: - if (typeof object.status === "number") { - message.status = object.status; + default: + if (typeof object.status === 'number') { + message.status = object.status; + break; + } + break; + case 'SUCCESS': + case 0: + message.status = 0; + break; + case 'INVALID_OBJECT': + case 1: + message.status = 1; + break; + case 'ALREADY_EXISTS': + case 2: + message.status = 2; + break; + case 'ACCESS_DENIED': + case 3: + message.status = 3; break; - } - break; - case "SUCCESS": - case 0: - message.status = 0; - break; - case "INVALID_OBJECT": - case 1: - message.status = 1; - break; - case "ALREADY_EXISTS": - case 2: - message.status = 2; - break; - case "ACCESS_DENIED": - case 3: - message.status = 3; - break; } return message; }; @@ -37789,23 +39139,30 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ TeamEccKeyPairResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.teamUid = ""; + if (options.bytes === String) object.teamUid = ''; else { object.teamUid = []; - if (options.bytes !== Array) - object.teamUid = $util.newBuffer(object.teamUid); + if (options.bytes !== Array) object.teamUid = $util.newBuffer(object.teamUid); } - object.status = options.enums === String ? "SUCCESS" : 0; + object.status = options.enums === String ? 'SUCCESS' : 0; } - if (message.teamUid != null && message.hasOwnProperty("teamUid")) - object.teamUid = options.bytes === String ? $util.base64.encode(message.teamUid, 0, message.teamUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.teamUid) : message.teamUid; - if (message.status != null && message.hasOwnProperty("status")) - object.status = options.enums === String ? $root.Authentication.GenericStatus[message.status] === undefined ? message.status : $root.Authentication.GenericStatus[message.status] : message.status; + if (message.teamUid != null && message.hasOwnProperty('teamUid')) + object.teamUid = + options.bytes === String + ? $util.base64.encode(message.teamUid, 0, message.teamUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.teamUid) + : message.teamUid; + if (message.status != null && message.hasOwnProperty('status')) + object.status = + options.enums === String + ? $root.Authentication.GenericStatus[message.status] === undefined + ? message.status + : $root.Authentication.GenericStatus[message.status] + : message.status; return object; }; @@ -37830,16 +39187,15 @@ export const Authentication = $root.Authentication = (() => { */ TeamEccKeyPairResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.TeamEccKeyPairResponse"; + return typeUrlPrefix + '/Authentication.TeamEccKeyPairResponse'; }; return TeamEccKeyPairResponse; })(); - Authentication.GetKsmPublicKeysRequest = (function() { - + Authentication.GetKsmPublicKeysRequest = (function () { /** * Properties of a GetKsmPublicKeysRequest. * @memberof Authentication @@ -37861,8 +39217,7 @@ export const Authentication = $root.Authentication = (() => { this.controllerUids = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -37903,14 +39258,13 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ GetKsmPublicKeysRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.clientIds != null && message.clientIds.length) for (let i = 0; i < message.clientIds.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.clientIds[i]); + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.clientIds[i]); if (message.controllerUids != null && message.controllerUids.length) for (let i = 0; i < message.controllerUids.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.controllerUids[i]); + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.controllerUids[i]); return writer; }; @@ -37939,27 +39293,25 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ GetKsmPublicKeysRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.GetKsmPublicKeysRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.GetKsmPublicKeysRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (!(message.clientIds && message.clientIds.length)) - message.clientIds = []; + case 1: { + if (!(message.clientIds && message.clientIds.length)) message.clientIds = []; message.clientIds.push(reader.bytes()); break; } - case 2: { - if (!(message.controllerUids && message.controllerUids.length)) - message.controllerUids = []; + case 2: { + if (!(message.controllerUids && message.controllerUids.length)) message.controllerUids = []; message.controllerUids.push(reader.bytes()); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -37976,8 +39328,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ GetKsmPublicKeysRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -37990,21 +39341,28 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ GetKsmPublicKeysRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.clientIds != null && message.hasOwnProperty("clientIds")) { - if (!Array.isArray(message.clientIds)) - return "clientIds: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.clientIds != null && message.hasOwnProperty('clientIds')) { + if (!Array.isArray(message.clientIds)) return 'clientIds: array expected'; for (let i = 0; i < message.clientIds.length; ++i) - if (!(message.clientIds[i] && typeof message.clientIds[i].length === "number" || $util.isString(message.clientIds[i]))) - return "clientIds: buffer[] expected"; - } - if (message.controllerUids != null && message.hasOwnProperty("controllerUids")) { - if (!Array.isArray(message.controllerUids)) - return "controllerUids: array expected"; + if ( + !( + (message.clientIds[i] && typeof message.clientIds[i].length === 'number') || + $util.isString(message.clientIds[i]) + ) + ) + return 'clientIds: buffer[] expected'; + } + if (message.controllerUids != null && message.hasOwnProperty('controllerUids')) { + if (!Array.isArray(message.controllerUids)) return 'controllerUids: array expected'; for (let i = 0; i < message.controllerUids.length; ++i) - if (!(message.controllerUids[i] && typeof message.controllerUids[i].length === "number" || $util.isString(message.controllerUids[i]))) - return "controllerUids: buffer[] expected"; + if ( + !( + (message.controllerUids[i] && typeof message.controllerUids[i].length === 'number') || + $util.isString(message.controllerUids[i]) + ) + ) + return 'controllerUids: buffer[] expected'; } return null; }; @@ -38018,28 +39376,35 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.GetKsmPublicKeysRequest} GetKsmPublicKeysRequest */ GetKsmPublicKeysRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.GetKsmPublicKeysRequest) - return object; + if (object instanceof $root.Authentication.GetKsmPublicKeysRequest) return object; let message = new $root.Authentication.GetKsmPublicKeysRequest(); if (object.clientIds) { if (!Array.isArray(object.clientIds)) - throw TypeError(".Authentication.GetKsmPublicKeysRequest.clientIds: array expected"); + throw TypeError('.Authentication.GetKsmPublicKeysRequest.clientIds: array expected'); message.clientIds = []; for (let i = 0; i < object.clientIds.length; ++i) - if (typeof object.clientIds[i] === "string") - $util.base64.decode(object.clientIds[i], message.clientIds[i] = $util.newBuffer($util.base64.length(object.clientIds[i])), 0); - else if (object.clientIds[i].length >= 0) - message.clientIds[i] = object.clientIds[i]; + if (typeof object.clientIds[i] === 'string') + $util.base64.decode( + object.clientIds[i], + (message.clientIds[i] = $util.newBuffer($util.base64.length(object.clientIds[i]))), + 0 + ); + else if (object.clientIds[i].length >= 0) message.clientIds[i] = object.clientIds[i]; } if (object.controllerUids) { if (!Array.isArray(object.controllerUids)) - throw TypeError(".Authentication.GetKsmPublicKeysRequest.controllerUids: array expected"); + throw TypeError('.Authentication.GetKsmPublicKeysRequest.controllerUids: array expected'); message.controllerUids = []; for (let i = 0; i < object.controllerUids.length; ++i) - if (typeof object.controllerUids[i] === "string") - $util.base64.decode(object.controllerUids[i], message.controllerUids[i] = $util.newBuffer($util.base64.length(object.controllerUids[i])), 0); - else if (object.controllerUids[i].length >= 0) - message.controllerUids[i] = object.controllerUids[i]; + if (typeof object.controllerUids[i] === 'string') + $util.base64.decode( + object.controllerUids[i], + (message.controllerUids[i] = $util.newBuffer( + $util.base64.length(object.controllerUids[i]) + )), + 0 + ); + else if (object.controllerUids[i].length >= 0) message.controllerUids[i] = object.controllerUids[i]; } return message; }; @@ -38054,8 +39419,7 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ GetKsmPublicKeysRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.arrays || options.defaults) { object.clientIds = []; @@ -38064,12 +39428,22 @@ export const Authentication = $root.Authentication = (() => { if (message.clientIds && message.clientIds.length) { object.clientIds = []; for (let j = 0; j < message.clientIds.length; ++j) - object.clientIds[j] = options.bytes === String ? $util.base64.encode(message.clientIds[j], 0, message.clientIds[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.clientIds[j]) : message.clientIds[j]; + object.clientIds[j] = + options.bytes === String + ? $util.base64.encode(message.clientIds[j], 0, message.clientIds[j].length) + : options.bytes === Array + ? Array.prototype.slice.call(message.clientIds[j]) + : message.clientIds[j]; } if (message.controllerUids && message.controllerUids.length) { object.controllerUids = []; for (let j = 0; j < message.controllerUids.length; ++j) - object.controllerUids[j] = options.bytes === String ? $util.base64.encode(message.controllerUids[j], 0, message.controllerUids[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.controllerUids[j]) : message.controllerUids[j]; + object.controllerUids[j] = + options.bytes === String + ? $util.base64.encode(message.controllerUids[j], 0, message.controllerUids[j].length) + : options.bytes === Array + ? Array.prototype.slice.call(message.controllerUids[j]) + : message.controllerUids[j]; } return object; }; @@ -38095,16 +39469,15 @@ export const Authentication = $root.Authentication = (() => { */ GetKsmPublicKeysRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.GetKsmPublicKeysRequest"; + return typeUrlPrefix + '/Authentication.GetKsmPublicKeysRequest'; }; return GetKsmPublicKeysRequest; })(); - Authentication.DevicePublicKeyResponse = (function() { - + Authentication.DevicePublicKeyResponse = (function () { /** * Properties of a DevicePublicKeyResponse. * @memberof Authentication @@ -38125,8 +39498,7 @@ export const Authentication = $root.Authentication = (() => { function DevicePublicKeyResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -38175,14 +39547,13 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ DevicePublicKeyResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.clientId != null && Object.hasOwnProperty.call(message, "clientId")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.clientId); - if (message.publicKey != null && Object.hasOwnProperty.call(message, "publicKey")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.publicKey); - if (message.controllerUid != null && Object.hasOwnProperty.call(message, "controllerUid")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.controllerUid); + if (!writer) writer = $Writer.create(); + if (message.clientId != null && Object.hasOwnProperty.call(message, 'clientId')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.clientId); + if (message.publicKey != null && Object.hasOwnProperty.call(message, 'publicKey')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.publicKey); + if (message.controllerUid != null && Object.hasOwnProperty.call(message, 'controllerUid')) + writer.uint32(/* id 3, wireType 2 =*/ 26).bytes(message.controllerUid); return writer; }; @@ -38211,27 +39582,27 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ DevicePublicKeyResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.DevicePublicKeyResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.DevicePublicKeyResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.clientId = reader.bytes(); break; } - case 2: { + case 2: { message.publicKey = reader.bytes(); break; } - case 3: { + case 3: { message.controllerUid = reader.bytes(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -38248,8 +39619,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ DevicePublicKeyResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -38262,17 +39632,31 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ DevicePublicKeyResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.clientId != null && message.hasOwnProperty("clientId")) - if (!(message.clientId && typeof message.clientId.length === "number" || $util.isString(message.clientId))) - return "clientId: buffer expected"; - if (message.publicKey != null && message.hasOwnProperty("publicKey")) - if (!(message.publicKey && typeof message.publicKey.length === "number" || $util.isString(message.publicKey))) - return "publicKey: buffer expected"; - if (message.controllerUid != null && message.hasOwnProperty("controllerUid")) - if (!(message.controllerUid && typeof message.controllerUid.length === "number" || $util.isString(message.controllerUid))) - return "controllerUid: buffer expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.clientId != null && message.hasOwnProperty('clientId')) + if ( + !( + (message.clientId && typeof message.clientId.length === 'number') || + $util.isString(message.clientId) + ) + ) + return 'clientId: buffer expected'; + if (message.publicKey != null && message.hasOwnProperty('publicKey')) + if ( + !( + (message.publicKey && typeof message.publicKey.length === 'number') || + $util.isString(message.publicKey) + ) + ) + return 'publicKey: buffer expected'; + if (message.controllerUid != null && message.hasOwnProperty('controllerUid')) + if ( + !( + (message.controllerUid && typeof message.controllerUid.length === 'number') || + $util.isString(message.controllerUid) + ) + ) + return 'controllerUid: buffer expected'; return null; }; @@ -38285,24 +39669,32 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.DevicePublicKeyResponse} DevicePublicKeyResponse */ DevicePublicKeyResponse.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.DevicePublicKeyResponse) - return object; + if (object instanceof $root.Authentication.DevicePublicKeyResponse) return object; let message = new $root.Authentication.DevicePublicKeyResponse(); if (object.clientId != null) - if (typeof object.clientId === "string") - $util.base64.decode(object.clientId, message.clientId = $util.newBuffer($util.base64.length(object.clientId)), 0); - else if (object.clientId.length >= 0) - message.clientId = object.clientId; + if (typeof object.clientId === 'string') + $util.base64.decode( + object.clientId, + (message.clientId = $util.newBuffer($util.base64.length(object.clientId))), + 0 + ); + else if (object.clientId.length >= 0) message.clientId = object.clientId; if (object.publicKey != null) - if (typeof object.publicKey === "string") - $util.base64.decode(object.publicKey, message.publicKey = $util.newBuffer($util.base64.length(object.publicKey)), 0); - else if (object.publicKey.length >= 0) - message.publicKey = object.publicKey; + if (typeof object.publicKey === 'string') + $util.base64.decode( + object.publicKey, + (message.publicKey = $util.newBuffer($util.base64.length(object.publicKey))), + 0 + ); + else if (object.publicKey.length >= 0) message.publicKey = object.publicKey; if (object.controllerUid != null) - if (typeof object.controllerUid === "string") - $util.base64.decode(object.controllerUid, message.controllerUid = $util.newBuffer($util.base64.length(object.controllerUid)), 0); - else if (object.controllerUid.length >= 0) - message.controllerUid = object.controllerUid; + if (typeof object.controllerUid === 'string') + $util.base64.decode( + object.controllerUid, + (message.controllerUid = $util.newBuffer($util.base64.length(object.controllerUid))), + 0 + ); + else if (object.controllerUid.length >= 0) message.controllerUid = object.controllerUid; return message; }; @@ -38316,38 +39708,46 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ DevicePublicKeyResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.clientId = ""; + if (options.bytes === String) object.clientId = ''; else { object.clientId = []; - if (options.bytes !== Array) - object.clientId = $util.newBuffer(object.clientId); + if (options.bytes !== Array) object.clientId = $util.newBuffer(object.clientId); } - if (options.bytes === String) - object.publicKey = ""; + if (options.bytes === String) object.publicKey = ''; else { object.publicKey = []; - if (options.bytes !== Array) - object.publicKey = $util.newBuffer(object.publicKey); + if (options.bytes !== Array) object.publicKey = $util.newBuffer(object.publicKey); } - if (options.bytes === String) - object.controllerUid = ""; + if (options.bytes === String) object.controllerUid = ''; else { object.controllerUid = []; - if (options.bytes !== Array) - object.controllerUid = $util.newBuffer(object.controllerUid); - } - } - if (message.clientId != null && message.hasOwnProperty("clientId")) - object.clientId = options.bytes === String ? $util.base64.encode(message.clientId, 0, message.clientId.length) : options.bytes === Array ? Array.prototype.slice.call(message.clientId) : message.clientId; - if (message.publicKey != null && message.hasOwnProperty("publicKey")) - object.publicKey = options.bytes === String ? $util.base64.encode(message.publicKey, 0, message.publicKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.publicKey) : message.publicKey; - if (message.controllerUid != null && message.hasOwnProperty("controllerUid")) - object.controllerUid = options.bytes === String ? $util.base64.encode(message.controllerUid, 0, message.controllerUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.controllerUid) : message.controllerUid; + if (options.bytes !== Array) object.controllerUid = $util.newBuffer(object.controllerUid); + } + } + if (message.clientId != null && message.hasOwnProperty('clientId')) + object.clientId = + options.bytes === String + ? $util.base64.encode(message.clientId, 0, message.clientId.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.clientId) + : message.clientId; + if (message.publicKey != null && message.hasOwnProperty('publicKey')) + object.publicKey = + options.bytes === String + ? $util.base64.encode(message.publicKey, 0, message.publicKey.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.publicKey) + : message.publicKey; + if (message.controllerUid != null && message.hasOwnProperty('controllerUid')) + object.controllerUid = + options.bytes === String + ? $util.base64.encode(message.controllerUid, 0, message.controllerUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.controllerUid) + : message.controllerUid; return object; }; @@ -38372,16 +39772,15 @@ export const Authentication = $root.Authentication = (() => { */ DevicePublicKeyResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.DevicePublicKeyResponse"; + return typeUrlPrefix + '/Authentication.DevicePublicKeyResponse'; }; return DevicePublicKeyResponse; })(); - Authentication.GetKsmPublicKeysResponse = (function() { - + Authentication.GetKsmPublicKeysResponse = (function () { /** * Properties of a GetKsmPublicKeysResponse. * @memberof Authentication @@ -38401,8 +39800,7 @@ export const Authentication = $root.Authentication = (() => { this.keyResponses = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -38435,11 +39833,13 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ GetKsmPublicKeysResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.keyResponses != null && message.keyResponses.length) for (let i = 0; i < message.keyResponses.length; ++i) - $root.Authentication.DevicePublicKeyResponse.encode(message.keyResponses[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.Authentication.DevicePublicKeyResponse.encode( + message.keyResponses[i], + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); return writer; }; @@ -38468,21 +39868,22 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ GetKsmPublicKeysResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.GetKsmPublicKeysResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.GetKsmPublicKeysResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (!(message.keyResponses && message.keyResponses.length)) - message.keyResponses = []; - message.keyResponses.push($root.Authentication.DevicePublicKeyResponse.decode(reader, reader.uint32())); + case 1: { + if (!(message.keyResponses && message.keyResponses.length)) message.keyResponses = []; + message.keyResponses.push( + $root.Authentication.DevicePublicKeyResponse.decode(reader, reader.uint32()) + ); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -38499,8 +39900,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ GetKsmPublicKeysResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -38513,15 +39913,12 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ GetKsmPublicKeysResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.keyResponses != null && message.hasOwnProperty("keyResponses")) { - if (!Array.isArray(message.keyResponses)) - return "keyResponses: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.keyResponses != null && message.hasOwnProperty('keyResponses')) { + if (!Array.isArray(message.keyResponses)) return 'keyResponses: array expected'; for (let i = 0; i < message.keyResponses.length; ++i) { let error = $root.Authentication.DevicePublicKeyResponse.verify(message.keyResponses[i]); - if (error) - return "keyResponses." + error; + if (error) return 'keyResponses.' + error; } } return null; @@ -38536,17 +39933,18 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.GetKsmPublicKeysResponse} GetKsmPublicKeysResponse */ GetKsmPublicKeysResponse.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.GetKsmPublicKeysResponse) - return object; + if (object instanceof $root.Authentication.GetKsmPublicKeysResponse) return object; let message = new $root.Authentication.GetKsmPublicKeysResponse(); if (object.keyResponses) { if (!Array.isArray(object.keyResponses)) - throw TypeError(".Authentication.GetKsmPublicKeysResponse.keyResponses: array expected"); + throw TypeError('.Authentication.GetKsmPublicKeysResponse.keyResponses: array expected'); message.keyResponses = []; for (let i = 0; i < object.keyResponses.length; ++i) { - if (typeof object.keyResponses[i] !== "object") - throw TypeError(".Authentication.GetKsmPublicKeysResponse.keyResponses: object expected"); - message.keyResponses[i] = $root.Authentication.DevicePublicKeyResponse.fromObject(object.keyResponses[i]); + if (typeof object.keyResponses[i] !== 'object') + throw TypeError('.Authentication.GetKsmPublicKeysResponse.keyResponses: object expected'); + message.keyResponses[i] = $root.Authentication.DevicePublicKeyResponse.fromObject( + object.keyResponses[i] + ); } } return message; @@ -38562,15 +39960,16 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ GetKsmPublicKeysResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.keyResponses = []; + if (options.arrays || options.defaults) object.keyResponses = []; if (message.keyResponses && message.keyResponses.length) { object.keyResponses = []; for (let j = 0; j < message.keyResponses.length; ++j) - object.keyResponses[j] = $root.Authentication.DevicePublicKeyResponse.toObject(message.keyResponses[j], options); + object.keyResponses[j] = $root.Authentication.DevicePublicKeyResponse.toObject( + message.keyResponses[j], + options + ); } return object; }; @@ -38596,9 +39995,9 @@ export const Authentication = $root.Authentication = (() => { */ GetKsmPublicKeysResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.GetKsmPublicKeysResponse"; + return typeUrlPrefix + '/Authentication.GetKsmPublicKeysResponse'; }; return GetKsmPublicKeysResponse; @@ -38616,15 +40015,16 @@ export const Authentication = $root.Authentication = (() => { * @property {number} jp=5 jp value * @property {number} ca=6 ca value */ - Authentication.Region = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "UNKNOWN"] = 0; - values[valuesById[1] = "eu"] = 1; - values[valuesById[2] = "us"] = 2; - values[valuesById[3] = "usgov"] = 3; - values[valuesById[4] = "au"] = 4; - values[valuesById[5] = "jp"] = 5; - values[valuesById[6] = "ca"] = 6; + Authentication.Region = (function () { + const valuesById = {}, + values = Object.create(valuesById); + values[(valuesById[0] = 'UNKNOWN')] = 0; + values[(valuesById[1] = 'eu')] = 1; + values[(valuesById[2] = 'us')] = 2; + values[(valuesById[3] = 'usgov')] = 3; + values[(valuesById[4] = 'au')] = 4; + values[(valuesById[5] = 'jp')] = 5; + values[(valuesById[6] = 'ca')] = 6; return values; })(); @@ -38635,15 +40035,15 @@ export const Authentication = $root.Authentication = (() => { * @property {number} SHARE_TYPE_RECORD=0 SHARE_TYPE_RECORD value * @property {number} SHARE_TYPE_FOLDER=1 SHARE_TYPE_FOLDER value */ - Authentication.ApplicationShareType = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "SHARE_TYPE_RECORD"] = 0; - values[valuesById[1] = "SHARE_TYPE_FOLDER"] = 1; + Authentication.ApplicationShareType = (function () { + const valuesById = {}, + values = Object.create(valuesById); + values[(valuesById[0] = 'SHARE_TYPE_RECORD')] = 0; + values[(valuesById[1] = 'SHARE_TYPE_FOLDER')] = 1; return values; })(); - Authentication.AddAppSharesRequest = (function() { - + Authentication.AddAppSharesRequest = (function () { /** * Properties of an AddAppSharesRequest. * @memberof Authentication @@ -38664,8 +40064,7 @@ export const Authentication = $root.Authentication = (() => { this.shares = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -38706,13 +40105,15 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ AddAppSharesRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.appRecordUid != null && Object.hasOwnProperty.call(message, "appRecordUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.appRecordUid); + if (!writer) writer = $Writer.create(); + if (message.appRecordUid != null && Object.hasOwnProperty.call(message, 'appRecordUid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.appRecordUid); if (message.shares != null && message.shares.length) for (let i = 0; i < message.shares.length; ++i) - $root.Authentication.AppShareAdd.encode(message.shares[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + $root.Authentication.AppShareAdd.encode( + message.shares[i], + writer.uint32(/* id 2, wireType 2 =*/ 18).fork() + ).ldelim(); return writer; }; @@ -38741,25 +40142,24 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ AddAppSharesRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.AddAppSharesRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.AddAppSharesRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.appRecordUid = reader.bytes(); break; } - case 2: { - if (!(message.shares && message.shares.length)) - message.shares = []; + case 2: { + if (!(message.shares && message.shares.length)) message.shares = []; message.shares.push($root.Authentication.AppShareAdd.decode(reader, reader.uint32())); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -38776,8 +40176,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ AddAppSharesRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -38790,18 +40189,20 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ AddAppSharesRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.appRecordUid != null && message.hasOwnProperty("appRecordUid")) - if (!(message.appRecordUid && typeof message.appRecordUid.length === "number" || $util.isString(message.appRecordUid))) - return "appRecordUid: buffer expected"; - if (message.shares != null && message.hasOwnProperty("shares")) { - if (!Array.isArray(message.shares)) - return "shares: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.appRecordUid != null && message.hasOwnProperty('appRecordUid')) + if ( + !( + (message.appRecordUid && typeof message.appRecordUid.length === 'number') || + $util.isString(message.appRecordUid) + ) + ) + return 'appRecordUid: buffer expected'; + if (message.shares != null && message.hasOwnProperty('shares')) { + if (!Array.isArray(message.shares)) return 'shares: array expected'; for (let i = 0; i < message.shares.length; ++i) { let error = $root.Authentication.AppShareAdd.verify(message.shares[i]); - if (error) - return "shares." + error; + if (error) return 'shares.' + error; } } return null; @@ -38816,21 +40217,23 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.AddAppSharesRequest} AddAppSharesRequest */ AddAppSharesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.AddAppSharesRequest) - return object; + if (object instanceof $root.Authentication.AddAppSharesRequest) return object; let message = new $root.Authentication.AddAppSharesRequest(); if (object.appRecordUid != null) - if (typeof object.appRecordUid === "string") - $util.base64.decode(object.appRecordUid, message.appRecordUid = $util.newBuffer($util.base64.length(object.appRecordUid)), 0); - else if (object.appRecordUid.length >= 0) - message.appRecordUid = object.appRecordUid; + if (typeof object.appRecordUid === 'string') + $util.base64.decode( + object.appRecordUid, + (message.appRecordUid = $util.newBuffer($util.base64.length(object.appRecordUid))), + 0 + ); + else if (object.appRecordUid.length >= 0) message.appRecordUid = object.appRecordUid; if (object.shares) { if (!Array.isArray(object.shares)) - throw TypeError(".Authentication.AddAppSharesRequest.shares: array expected"); + throw TypeError('.Authentication.AddAppSharesRequest.shares: array expected'); message.shares = []; for (let i = 0; i < object.shares.length; ++i) { - if (typeof object.shares[i] !== "object") - throw TypeError(".Authentication.AddAppSharesRequest.shares: object expected"); + if (typeof object.shares[i] !== 'object') + throw TypeError('.Authentication.AddAppSharesRequest.shares: object expected'); message.shares[i] = $root.Authentication.AppShareAdd.fromObject(object.shares[i]); } } @@ -38847,21 +40250,22 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ AddAppSharesRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.shares = []; + if (options.arrays || options.defaults) object.shares = []; if (options.defaults) - if (options.bytes === String) - object.appRecordUid = ""; + if (options.bytes === String) object.appRecordUid = ''; else { object.appRecordUid = []; - if (options.bytes !== Array) - object.appRecordUid = $util.newBuffer(object.appRecordUid); - } - if (message.appRecordUid != null && message.hasOwnProperty("appRecordUid")) - object.appRecordUid = options.bytes === String ? $util.base64.encode(message.appRecordUid, 0, message.appRecordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.appRecordUid) : message.appRecordUid; + if (options.bytes !== Array) object.appRecordUid = $util.newBuffer(object.appRecordUid); + } + if (message.appRecordUid != null && message.hasOwnProperty('appRecordUid')) + object.appRecordUid = + options.bytes === String + ? $util.base64.encode(message.appRecordUid, 0, message.appRecordUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.appRecordUid) + : message.appRecordUid; if (message.shares && message.shares.length) { object.shares = []; for (let j = 0; j < message.shares.length; ++j) @@ -38891,16 +40295,15 @@ export const Authentication = $root.Authentication = (() => { */ AddAppSharesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.AddAppSharesRequest"; + return typeUrlPrefix + '/Authentication.AddAppSharesRequest'; }; return AddAppSharesRequest; })(); - Authentication.RemoveAppSharesRequest = (function() { - + Authentication.RemoveAppSharesRequest = (function () { /** * Properties of a RemoveAppSharesRequest. * @memberof Authentication @@ -38921,8 +40324,7 @@ export const Authentication = $root.Authentication = (() => { this.shares = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -38963,13 +40365,12 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ RemoveAppSharesRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.appRecordUid != null && Object.hasOwnProperty.call(message, "appRecordUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.appRecordUid); + if (!writer) writer = $Writer.create(); + if (message.appRecordUid != null && Object.hasOwnProperty.call(message, 'appRecordUid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.appRecordUid); if (message.shares != null && message.shares.length) for (let i = 0; i < message.shares.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.shares[i]); + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.shares[i]); return writer; }; @@ -38998,25 +40399,24 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RemoveAppSharesRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.RemoveAppSharesRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.RemoveAppSharesRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.appRecordUid = reader.bytes(); break; } - case 2: { - if (!(message.shares && message.shares.length)) - message.shares = []; + case 2: { + if (!(message.shares && message.shares.length)) message.shares = []; message.shares.push(reader.bytes()); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -39033,8 +40433,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RemoveAppSharesRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -39047,17 +40446,25 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ RemoveAppSharesRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.appRecordUid != null && message.hasOwnProperty("appRecordUid")) - if (!(message.appRecordUid && typeof message.appRecordUid.length === "number" || $util.isString(message.appRecordUid))) - return "appRecordUid: buffer expected"; - if (message.shares != null && message.hasOwnProperty("shares")) { - if (!Array.isArray(message.shares)) - return "shares: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.appRecordUid != null && message.hasOwnProperty('appRecordUid')) + if ( + !( + (message.appRecordUid && typeof message.appRecordUid.length === 'number') || + $util.isString(message.appRecordUid) + ) + ) + return 'appRecordUid: buffer expected'; + if (message.shares != null && message.hasOwnProperty('shares')) { + if (!Array.isArray(message.shares)) return 'shares: array expected'; for (let i = 0; i < message.shares.length; ++i) - if (!(message.shares[i] && typeof message.shares[i].length === "number" || $util.isString(message.shares[i]))) - return "shares: buffer[] expected"; + if ( + !( + (message.shares[i] && typeof message.shares[i].length === 'number') || + $util.isString(message.shares[i]) + ) + ) + return 'shares: buffer[] expected'; } return null; }; @@ -39071,23 +40478,28 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.RemoveAppSharesRequest} RemoveAppSharesRequest */ RemoveAppSharesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.RemoveAppSharesRequest) - return object; + if (object instanceof $root.Authentication.RemoveAppSharesRequest) return object; let message = new $root.Authentication.RemoveAppSharesRequest(); if (object.appRecordUid != null) - if (typeof object.appRecordUid === "string") - $util.base64.decode(object.appRecordUid, message.appRecordUid = $util.newBuffer($util.base64.length(object.appRecordUid)), 0); - else if (object.appRecordUid.length >= 0) - message.appRecordUid = object.appRecordUid; + if (typeof object.appRecordUid === 'string') + $util.base64.decode( + object.appRecordUid, + (message.appRecordUid = $util.newBuffer($util.base64.length(object.appRecordUid))), + 0 + ); + else if (object.appRecordUid.length >= 0) message.appRecordUid = object.appRecordUid; if (object.shares) { if (!Array.isArray(object.shares)) - throw TypeError(".Authentication.RemoveAppSharesRequest.shares: array expected"); + throw TypeError('.Authentication.RemoveAppSharesRequest.shares: array expected'); message.shares = []; for (let i = 0; i < object.shares.length; ++i) - if (typeof object.shares[i] === "string") - $util.base64.decode(object.shares[i], message.shares[i] = $util.newBuffer($util.base64.length(object.shares[i])), 0); - else if (object.shares[i].length >= 0) - message.shares[i] = object.shares[i]; + if (typeof object.shares[i] === 'string') + $util.base64.decode( + object.shares[i], + (message.shares[i] = $util.newBuffer($util.base64.length(object.shares[i]))), + 0 + ); + else if (object.shares[i].length >= 0) message.shares[i] = object.shares[i]; } return message; }; @@ -39102,25 +40514,31 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ RemoveAppSharesRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.shares = []; + if (options.arrays || options.defaults) object.shares = []; if (options.defaults) - if (options.bytes === String) - object.appRecordUid = ""; + if (options.bytes === String) object.appRecordUid = ''; else { object.appRecordUid = []; - if (options.bytes !== Array) - object.appRecordUid = $util.newBuffer(object.appRecordUid); - } - if (message.appRecordUid != null && message.hasOwnProperty("appRecordUid")) - object.appRecordUid = options.bytes === String ? $util.base64.encode(message.appRecordUid, 0, message.appRecordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.appRecordUid) : message.appRecordUid; + if (options.bytes !== Array) object.appRecordUid = $util.newBuffer(object.appRecordUid); + } + if (message.appRecordUid != null && message.hasOwnProperty('appRecordUid')) + object.appRecordUid = + options.bytes === String + ? $util.base64.encode(message.appRecordUid, 0, message.appRecordUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.appRecordUid) + : message.appRecordUid; if (message.shares && message.shares.length) { object.shares = []; for (let j = 0; j < message.shares.length; ++j) - object.shares[j] = options.bytes === String ? $util.base64.encode(message.shares[j], 0, message.shares[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.shares[j]) : message.shares[j]; + object.shares[j] = + options.bytes === String + ? $util.base64.encode(message.shares[j], 0, message.shares[j].length) + : options.bytes === Array + ? Array.prototype.slice.call(message.shares[j]) + : message.shares[j]; } return object; }; @@ -39146,16 +40564,15 @@ export const Authentication = $root.Authentication = (() => { */ RemoveAppSharesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.RemoveAppSharesRequest"; + return typeUrlPrefix + '/Authentication.RemoveAppSharesRequest'; }; return RemoveAppSharesRequest; })(); - Authentication.AppShareAdd = (function() { - + Authentication.AppShareAdd = (function () { /** * Properties of an AppShareAdd. * @memberof Authentication @@ -39177,8 +40594,7 @@ export const Authentication = $root.Authentication = (() => { function AppShareAdd(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -39235,16 +40651,15 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ AppShareAdd.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.secretUid != null && Object.hasOwnProperty.call(message, "secretUid")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.secretUid); - if (message.shareType != null && Object.hasOwnProperty.call(message, "shareType")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.shareType); - if (message.encryptedSecretKey != null && Object.hasOwnProperty.call(message, "encryptedSecretKey")) - writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.encryptedSecretKey); - if (message.editable != null && Object.hasOwnProperty.call(message, "editable")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.editable); + if (!writer) writer = $Writer.create(); + if (message.secretUid != null && Object.hasOwnProperty.call(message, 'secretUid')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.secretUid); + if (message.shareType != null && Object.hasOwnProperty.call(message, 'shareType')) + writer.uint32(/* id 3, wireType 0 =*/ 24).int32(message.shareType); + if (message.encryptedSecretKey != null && Object.hasOwnProperty.call(message, 'encryptedSecretKey')) + writer.uint32(/* id 4, wireType 2 =*/ 34).bytes(message.encryptedSecretKey); + if (message.editable != null && Object.hasOwnProperty.call(message, 'editable')) + writer.uint32(/* id 5, wireType 0 =*/ 40).bool(message.editable); return writer; }; @@ -39273,31 +40688,31 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ AppShareAdd.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.AppShareAdd(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.AppShareAdd(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 2: { + case 2: { message.secretUid = reader.bytes(); break; } - case 3: { + case 3: { message.shareType = reader.int32(); break; } - case 4: { + case 4: { message.encryptedSecretKey = reader.bytes(); break; } - case 5: { + case 5: { message.editable = reader.bool(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -39314,8 +40729,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ AppShareAdd.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -39328,25 +40742,33 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ AppShareAdd.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.secretUid != null && message.hasOwnProperty("secretUid")) - if (!(message.secretUid && typeof message.secretUid.length === "number" || $util.isString(message.secretUid))) - return "secretUid: buffer expected"; - if (message.shareType != null && message.hasOwnProperty("shareType")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.secretUid != null && message.hasOwnProperty('secretUid')) + if ( + !( + (message.secretUid && typeof message.secretUid.length === 'number') || + $util.isString(message.secretUid) + ) + ) + return 'secretUid: buffer expected'; + if (message.shareType != null && message.hasOwnProperty('shareType')) switch (message.shareType) { - default: - return "shareType: enum value expected"; - case 0: - case 1: - break; + default: + return 'shareType: enum value expected'; + case 0: + case 1: + break; } - if (message.encryptedSecretKey != null && message.hasOwnProperty("encryptedSecretKey")) - if (!(message.encryptedSecretKey && typeof message.encryptedSecretKey.length === "number" || $util.isString(message.encryptedSecretKey))) - return "encryptedSecretKey: buffer expected"; - if (message.editable != null && message.hasOwnProperty("editable")) - if (typeof message.editable !== "boolean") - return "editable: boolean expected"; + if (message.encryptedSecretKey != null && message.hasOwnProperty('encryptedSecretKey')) + if ( + !( + (message.encryptedSecretKey && typeof message.encryptedSecretKey.length === 'number') || + $util.isString(message.encryptedSecretKey) + ) + ) + return 'encryptedSecretKey: buffer expected'; + if (message.editable != null && message.hasOwnProperty('editable')) + if (typeof message.editable !== 'boolean') return 'editable: boolean expected'; return null; }; @@ -39359,37 +40781,41 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.AppShareAdd} AppShareAdd */ AppShareAdd.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.AppShareAdd) - return object; + if (object instanceof $root.Authentication.AppShareAdd) return object; let message = new $root.Authentication.AppShareAdd(); if (object.secretUid != null) - if (typeof object.secretUid === "string") - $util.base64.decode(object.secretUid, message.secretUid = $util.newBuffer($util.base64.length(object.secretUid)), 0); - else if (object.secretUid.length >= 0) - message.secretUid = object.secretUid; + if (typeof object.secretUid === 'string') + $util.base64.decode( + object.secretUid, + (message.secretUid = $util.newBuffer($util.base64.length(object.secretUid))), + 0 + ); + else if (object.secretUid.length >= 0) message.secretUid = object.secretUid; switch (object.shareType) { - default: - if (typeof object.shareType === "number") { - message.shareType = object.shareType; + default: + if (typeof object.shareType === 'number') { + message.shareType = object.shareType; + break; + } + break; + case 'SHARE_TYPE_RECORD': + case 0: + message.shareType = 0; + break; + case 'SHARE_TYPE_FOLDER': + case 1: + message.shareType = 1; break; - } - break; - case "SHARE_TYPE_RECORD": - case 0: - message.shareType = 0; - break; - case "SHARE_TYPE_FOLDER": - case 1: - message.shareType = 1; - break; } if (object.encryptedSecretKey != null) - if (typeof object.encryptedSecretKey === "string") - $util.base64.decode(object.encryptedSecretKey, message.encryptedSecretKey = $util.newBuffer($util.base64.length(object.encryptedSecretKey)), 0); - else if (object.encryptedSecretKey.length >= 0) - message.encryptedSecretKey = object.encryptedSecretKey; - if (object.editable != null) - message.editable = Boolean(object.editable); + if (typeof object.encryptedSecretKey === 'string') + $util.base64.decode( + object.encryptedSecretKey, + (message.encryptedSecretKey = $util.newBuffer($util.base64.length(object.encryptedSecretKey))), + 0 + ); + else if (object.encryptedSecretKey.length >= 0) message.encryptedSecretKey = object.encryptedSecretKey; + if (object.editable != null) message.editable = Boolean(object.editable); return message; }; @@ -39403,35 +40829,44 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ AppShareAdd.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.secretUid = ""; + if (options.bytes === String) object.secretUid = ''; else { object.secretUid = []; - if (options.bytes !== Array) - object.secretUid = $util.newBuffer(object.secretUid); + if (options.bytes !== Array) object.secretUid = $util.newBuffer(object.secretUid); } - object.shareType = options.enums === String ? "SHARE_TYPE_RECORD" : 0; - if (options.bytes === String) - object.encryptedSecretKey = ""; + object.shareType = options.enums === String ? 'SHARE_TYPE_RECORD' : 0; + if (options.bytes === String) object.encryptedSecretKey = ''; else { object.encryptedSecretKey = []; - if (options.bytes !== Array) - object.encryptedSecretKey = $util.newBuffer(object.encryptedSecretKey); + if (options.bytes !== Array) object.encryptedSecretKey = $util.newBuffer(object.encryptedSecretKey); } object.editable = false; } - if (message.secretUid != null && message.hasOwnProperty("secretUid")) - object.secretUid = options.bytes === String ? $util.base64.encode(message.secretUid, 0, message.secretUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.secretUid) : message.secretUid; - if (message.shareType != null && message.hasOwnProperty("shareType")) - object.shareType = options.enums === String ? $root.Authentication.ApplicationShareType[message.shareType] === undefined ? message.shareType : $root.Authentication.ApplicationShareType[message.shareType] : message.shareType; - if (message.encryptedSecretKey != null && message.hasOwnProperty("encryptedSecretKey")) - object.encryptedSecretKey = options.bytes === String ? $util.base64.encode(message.encryptedSecretKey, 0, message.encryptedSecretKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedSecretKey) : message.encryptedSecretKey; - if (message.editable != null && message.hasOwnProperty("editable")) - object.editable = message.editable; + if (message.secretUid != null && message.hasOwnProperty('secretUid')) + object.secretUid = + options.bytes === String + ? $util.base64.encode(message.secretUid, 0, message.secretUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.secretUid) + : message.secretUid; + if (message.shareType != null && message.hasOwnProperty('shareType')) + object.shareType = + options.enums === String + ? $root.Authentication.ApplicationShareType[message.shareType] === undefined + ? message.shareType + : $root.Authentication.ApplicationShareType[message.shareType] + : message.shareType; + if (message.encryptedSecretKey != null && message.hasOwnProperty('encryptedSecretKey')) + object.encryptedSecretKey = + options.bytes === String + ? $util.base64.encode(message.encryptedSecretKey, 0, message.encryptedSecretKey.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.encryptedSecretKey) + : message.encryptedSecretKey; + if (message.editable != null && message.hasOwnProperty('editable')) object.editable = message.editable; return object; }; @@ -39456,16 +40891,15 @@ export const Authentication = $root.Authentication = (() => { */ AppShareAdd.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.AppShareAdd"; + return typeUrlPrefix + '/Authentication.AppShareAdd'; }; return AppShareAdd; })(); - Authentication.AppShare = (function() { - + Authentication.AppShare = (function () { /** * Properties of an AppShare. * @memberof Authentication @@ -39488,8 +40922,7 @@ export const Authentication = $root.Authentication = (() => { function AppShare(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -39522,7 +40955,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.AppShare * @instance */ - AppShare.prototype.createdOn = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + AppShare.prototype.createdOn = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * AppShare data. @@ -39554,18 +40987,17 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ AppShare.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.secretUid != null && Object.hasOwnProperty.call(message, "secretUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.secretUid); - if (message.shareType != null && Object.hasOwnProperty.call(message, "shareType")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.shareType); - if (message.editable != null && Object.hasOwnProperty.call(message, "editable")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.editable); - if (message.createdOn != null && Object.hasOwnProperty.call(message, "createdOn")) - writer.uint32(/* id 4, wireType 0 =*/32).int64(message.createdOn); - if (message.data != null && Object.hasOwnProperty.call(message, "data")) - writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.data); + if (!writer) writer = $Writer.create(); + if (message.secretUid != null && Object.hasOwnProperty.call(message, 'secretUid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.secretUid); + if (message.shareType != null && Object.hasOwnProperty.call(message, 'shareType')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int32(message.shareType); + if (message.editable != null && Object.hasOwnProperty.call(message, 'editable')) + writer.uint32(/* id 3, wireType 0 =*/ 24).bool(message.editable); + if (message.createdOn != null && Object.hasOwnProperty.call(message, 'createdOn')) + writer.uint32(/* id 4, wireType 0 =*/ 32).int64(message.createdOn); + if (message.data != null && Object.hasOwnProperty.call(message, 'data')) + writer.uint32(/* id 5, wireType 2 =*/ 42).bytes(message.data); return writer; }; @@ -39594,35 +41026,35 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ AppShare.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.AppShare(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.AppShare(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.secretUid = reader.bytes(); break; } - case 2: { + case 2: { message.shareType = reader.int32(); break; } - case 3: { + case 3: { message.editable = reader.bool(); break; } - case 4: { + case 4: { message.createdOn = reader.int64(); break; } - case 5: { + case 5: { message.data = reader.bytes(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -39639,8 +41071,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ AppShare.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -39653,28 +41084,38 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ AppShare.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.secretUid != null && message.hasOwnProperty("secretUid")) - if (!(message.secretUid && typeof message.secretUid.length === "number" || $util.isString(message.secretUid))) - return "secretUid: buffer expected"; - if (message.shareType != null && message.hasOwnProperty("shareType")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.secretUid != null && message.hasOwnProperty('secretUid')) + if ( + !( + (message.secretUid && typeof message.secretUid.length === 'number') || + $util.isString(message.secretUid) + ) + ) + return 'secretUid: buffer expected'; + if (message.shareType != null && message.hasOwnProperty('shareType')) switch (message.shareType) { - default: - return "shareType: enum value expected"; - case 0: - case 1: - break; + default: + return 'shareType: enum value expected'; + case 0: + case 1: + break; } - if (message.editable != null && message.hasOwnProperty("editable")) - if (typeof message.editable !== "boolean") - return "editable: boolean expected"; - if (message.createdOn != null && message.hasOwnProperty("createdOn")) - if (!$util.isInteger(message.createdOn) && !(message.createdOn && $util.isInteger(message.createdOn.low) && $util.isInteger(message.createdOn.high))) - return "createdOn: integer|Long expected"; - if (message.data != null && message.hasOwnProperty("data")) - if (!(message.data && typeof message.data.length === "number" || $util.isString(message.data))) - return "data: buffer expected"; + if (message.editable != null && message.hasOwnProperty('editable')) + if (typeof message.editable !== 'boolean') return 'editable: boolean expected'; + if (message.createdOn != null && message.hasOwnProperty('createdOn')) + if ( + !$util.isInteger(message.createdOn) && + !( + message.createdOn && + $util.isInteger(message.createdOn.low) && + $util.isInteger(message.createdOn.high) + ) + ) + return 'createdOn: integer|Long expected'; + if (message.data != null && message.hasOwnProperty('data')) + if (!((message.data && typeof message.data.length === 'number') || $util.isString(message.data))) + return 'data: buffer expected'; return null; }; @@ -39687,46 +41128,50 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.AppShare} AppShare */ AppShare.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.AppShare) - return object; + if (object instanceof $root.Authentication.AppShare) return object; let message = new $root.Authentication.AppShare(); if (object.secretUid != null) - if (typeof object.secretUid === "string") - $util.base64.decode(object.secretUid, message.secretUid = $util.newBuffer($util.base64.length(object.secretUid)), 0); - else if (object.secretUid.length >= 0) - message.secretUid = object.secretUid; + if (typeof object.secretUid === 'string') + $util.base64.decode( + object.secretUid, + (message.secretUid = $util.newBuffer($util.base64.length(object.secretUid))), + 0 + ); + else if (object.secretUid.length >= 0) message.secretUid = object.secretUid; switch (object.shareType) { - default: - if (typeof object.shareType === "number") { - message.shareType = object.shareType; - break; - } - break; - case "SHARE_TYPE_RECORD": - case 0: - message.shareType = 0; - break; - case "SHARE_TYPE_FOLDER": - case 1: - message.shareType = 1; - break; - } - if (object.editable != null) - message.editable = Boolean(object.editable); + default: + if (typeof object.shareType === 'number') { + message.shareType = object.shareType; + break; + } + break; + case 'SHARE_TYPE_RECORD': + case 0: + message.shareType = 0; + break; + case 'SHARE_TYPE_FOLDER': + case 1: + message.shareType = 1; + break; + } + if (object.editable != null) message.editable = Boolean(object.editable); if (object.createdOn != null) - if ($util.Long) - (message.createdOn = $util.Long.fromValue(object.createdOn)).unsigned = false; - else if (typeof object.createdOn === "string") - message.createdOn = parseInt(object.createdOn, 10); - else if (typeof object.createdOn === "number") - message.createdOn = object.createdOn; - else if (typeof object.createdOn === "object") - message.createdOn = new $util.LongBits(object.createdOn.low >>> 0, object.createdOn.high >>> 0).toNumber(); + if ($util.Long) (message.createdOn = $util.Long.fromValue(object.createdOn)).unsigned = false; + else if (typeof object.createdOn === 'string') message.createdOn = parseInt(object.createdOn, 10); + else if (typeof object.createdOn === 'number') message.createdOn = object.createdOn; + else if (typeof object.createdOn === 'object') + message.createdOn = new $util.LongBits( + object.createdOn.low >>> 0, + object.createdOn.high >>> 0 + ).toNumber(); if (object.data != null) - if (typeof object.data === "string") - $util.base64.decode(object.data, message.data = $util.newBuffer($util.base64.length(object.data)), 0); - else if (object.data.length >= 0) - message.data = object.data; + if (typeof object.data === 'string') + $util.base64.decode( + object.data, + (message.data = $util.newBuffer($util.base64.length(object.data))), + 0 + ); + else if (object.data.length >= 0) message.data = object.data; return message; }; @@ -39740,45 +41185,59 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ AppShare.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.secretUid = ""; + if (options.bytes === String) object.secretUid = ''; else { object.secretUid = []; - if (options.bytes !== Array) - object.secretUid = $util.newBuffer(object.secretUid); + if (options.bytes !== Array) object.secretUid = $util.newBuffer(object.secretUid); } - object.shareType = options.enums === String ? "SHARE_TYPE_RECORD" : 0; + object.shareType = options.enums === String ? 'SHARE_TYPE_RECORD' : 0; object.editable = false; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.createdOn = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.createdOn = options.longs === String ? "0" : 0; - if (options.bytes === String) - object.data = ""; + object.createdOn = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.createdOn = options.longs === String ? '0' : 0; + if (options.bytes === String) object.data = ''; else { object.data = []; - if (options.bytes !== Array) - object.data = $util.newBuffer(object.data); - } - } - if (message.secretUid != null && message.hasOwnProperty("secretUid")) - object.secretUid = options.bytes === String ? $util.base64.encode(message.secretUid, 0, message.secretUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.secretUid) : message.secretUid; - if (message.shareType != null && message.hasOwnProperty("shareType")) - object.shareType = options.enums === String ? $root.Authentication.ApplicationShareType[message.shareType] === undefined ? message.shareType : $root.Authentication.ApplicationShareType[message.shareType] : message.shareType; - if (message.editable != null && message.hasOwnProperty("editable")) - object.editable = message.editable; - if (message.createdOn != null && message.hasOwnProperty("createdOn")) - if (typeof message.createdOn === "number") + if (options.bytes !== Array) object.data = $util.newBuffer(object.data); + } + } + if (message.secretUid != null && message.hasOwnProperty('secretUid')) + object.secretUid = + options.bytes === String + ? $util.base64.encode(message.secretUid, 0, message.secretUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.secretUid) + : message.secretUid; + if (message.shareType != null && message.hasOwnProperty('shareType')) + object.shareType = + options.enums === String + ? $root.Authentication.ApplicationShareType[message.shareType] === undefined + ? message.shareType + : $root.Authentication.ApplicationShareType[message.shareType] + : message.shareType; + if (message.editable != null && message.hasOwnProperty('editable')) object.editable = message.editable; + if (message.createdOn != null && message.hasOwnProperty('createdOn')) + if (typeof message.createdOn === 'number') object.createdOn = options.longs === String ? String(message.createdOn) : message.createdOn; else - object.createdOn = options.longs === String ? $util.Long.prototype.toString.call(message.createdOn) : options.longs === Number ? new $util.LongBits(message.createdOn.low >>> 0, message.createdOn.high >>> 0).toNumber() : message.createdOn; - if (message.data != null && message.hasOwnProperty("data")) - object.data = options.bytes === String ? $util.base64.encode(message.data, 0, message.data.length) : options.bytes === Array ? Array.prototype.slice.call(message.data) : message.data; + object.createdOn = + options.longs === String + ? $util.Long.prototype.toString.call(message.createdOn) + : options.longs === Number + ? new $util.LongBits(message.createdOn.low >>> 0, message.createdOn.high >>> 0).toNumber() + : message.createdOn; + if (message.data != null && message.hasOwnProperty('data')) + object.data = + options.bytes === String + ? $util.base64.encode(message.data, 0, message.data.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.data) + : message.data; return object; }; @@ -39803,16 +41262,15 @@ export const Authentication = $root.Authentication = (() => { */ AppShare.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.AppShare"; + return typeUrlPrefix + '/Authentication.AppShare'; }; return AppShare; })(); - Authentication.AddAppClientRequest = (function() { - + Authentication.AddAppClientRequest = (function () { /** * Properties of an AddAppClientRequest. * @memberof Authentication @@ -39838,8 +41296,7 @@ export const Authentication = $root.Authentication = (() => { function AddAppClientRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -39880,7 +41337,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.AddAppClientRequest * @instance */ - AddAppClientRequest.prototype.firstAccessExpireOn = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + AddAppClientRequest.prototype.firstAccessExpireOn = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * AddAppClientRequest accessExpireOn. @@ -39888,7 +41345,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.AddAppClientRequest * @instance */ - AddAppClientRequest.prototype.accessExpireOn = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + AddAppClientRequest.prototype.accessExpireOn = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * AddAppClientRequest id. @@ -39896,7 +41353,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.AddAppClientRequest * @instance */ - AddAppClientRequest.prototype.id = ""; + AddAppClientRequest.prototype.id = ''; /** * AddAppClientRequest appClientType. @@ -39928,24 +41385,23 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ AddAppClientRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.appRecordUid != null && Object.hasOwnProperty.call(message, "appRecordUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.appRecordUid); - if (message.encryptedAppKey != null && Object.hasOwnProperty.call(message, "encryptedAppKey")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.encryptedAppKey); - if (message.clientId != null && Object.hasOwnProperty.call(message, "clientId")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.clientId); - if (message.lockIp != null && Object.hasOwnProperty.call(message, "lockIp")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.lockIp); - if (message.firstAccessExpireOn != null && Object.hasOwnProperty.call(message, "firstAccessExpireOn")) - writer.uint32(/* id 5, wireType 0 =*/40).int64(message.firstAccessExpireOn); - if (message.accessExpireOn != null && Object.hasOwnProperty.call(message, "accessExpireOn")) - writer.uint32(/* id 6, wireType 0 =*/48).int64(message.accessExpireOn); - if (message.id != null && Object.hasOwnProperty.call(message, "id")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.id); - if (message.appClientType != null && Object.hasOwnProperty.call(message, "appClientType")) - writer.uint32(/* id 8, wireType 0 =*/64).int32(message.appClientType); + if (!writer) writer = $Writer.create(); + if (message.appRecordUid != null && Object.hasOwnProperty.call(message, 'appRecordUid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.appRecordUid); + if (message.encryptedAppKey != null && Object.hasOwnProperty.call(message, 'encryptedAppKey')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.encryptedAppKey); + if (message.clientId != null && Object.hasOwnProperty.call(message, 'clientId')) + writer.uint32(/* id 3, wireType 2 =*/ 26).bytes(message.clientId); + if (message.lockIp != null && Object.hasOwnProperty.call(message, 'lockIp')) + writer.uint32(/* id 4, wireType 0 =*/ 32).bool(message.lockIp); + if (message.firstAccessExpireOn != null && Object.hasOwnProperty.call(message, 'firstAccessExpireOn')) + writer.uint32(/* id 5, wireType 0 =*/ 40).int64(message.firstAccessExpireOn); + if (message.accessExpireOn != null && Object.hasOwnProperty.call(message, 'accessExpireOn')) + writer.uint32(/* id 6, wireType 0 =*/ 48).int64(message.accessExpireOn); + if (message.id != null && Object.hasOwnProperty.call(message, 'id')) + writer.uint32(/* id 7, wireType 2 =*/ 58).string(message.id); + if (message.appClientType != null && Object.hasOwnProperty.call(message, 'appClientType')) + writer.uint32(/* id 8, wireType 0 =*/ 64).int32(message.appClientType); return writer; }; @@ -39974,47 +41430,47 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ AddAppClientRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.AddAppClientRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.AddAppClientRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.appRecordUid = reader.bytes(); break; } - case 2: { + case 2: { message.encryptedAppKey = reader.bytes(); break; } - case 3: { + case 3: { message.clientId = reader.bytes(); break; } - case 4: { + case 4: { message.lockIp = reader.bool(); break; } - case 5: { + case 5: { message.firstAccessExpireOn = reader.int64(); break; } - case 6: { + case 6: { message.accessExpireOn = reader.int64(); break; } - case 7: { + case 7: { message.id = reader.string(); break; } - case 8: { + case 8: { message.appClientType = reader.int32(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -40031,8 +41487,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ AddAppClientRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -40045,39 +41500,65 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ AddAppClientRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.appRecordUid != null && message.hasOwnProperty("appRecordUid")) - if (!(message.appRecordUid && typeof message.appRecordUid.length === "number" || $util.isString(message.appRecordUid))) - return "appRecordUid: buffer expected"; - if (message.encryptedAppKey != null && message.hasOwnProperty("encryptedAppKey")) - if (!(message.encryptedAppKey && typeof message.encryptedAppKey.length === "number" || $util.isString(message.encryptedAppKey))) - return "encryptedAppKey: buffer expected"; - if (message.clientId != null && message.hasOwnProperty("clientId")) - if (!(message.clientId && typeof message.clientId.length === "number" || $util.isString(message.clientId))) - return "clientId: buffer expected"; - if (message.lockIp != null && message.hasOwnProperty("lockIp")) - if (typeof message.lockIp !== "boolean") - return "lockIp: boolean expected"; - if (message.firstAccessExpireOn != null && message.hasOwnProperty("firstAccessExpireOn")) - if (!$util.isInteger(message.firstAccessExpireOn) && !(message.firstAccessExpireOn && $util.isInteger(message.firstAccessExpireOn.low) && $util.isInteger(message.firstAccessExpireOn.high))) - return "firstAccessExpireOn: integer|Long expected"; - if (message.accessExpireOn != null && message.hasOwnProperty("accessExpireOn")) - if (!$util.isInteger(message.accessExpireOn) && !(message.accessExpireOn && $util.isInteger(message.accessExpireOn.low) && $util.isInteger(message.accessExpireOn.high))) - return "accessExpireOn: integer|Long expected"; - if (message.id != null && message.hasOwnProperty("id")) - if (!$util.isString(message.id)) - return "id: string expected"; - if (message.appClientType != null && message.hasOwnProperty("appClientType")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.appRecordUid != null && message.hasOwnProperty('appRecordUid')) + if ( + !( + (message.appRecordUid && typeof message.appRecordUid.length === 'number') || + $util.isString(message.appRecordUid) + ) + ) + return 'appRecordUid: buffer expected'; + if (message.encryptedAppKey != null && message.hasOwnProperty('encryptedAppKey')) + if ( + !( + (message.encryptedAppKey && typeof message.encryptedAppKey.length === 'number') || + $util.isString(message.encryptedAppKey) + ) + ) + return 'encryptedAppKey: buffer expected'; + if (message.clientId != null && message.hasOwnProperty('clientId')) + if ( + !( + (message.clientId && typeof message.clientId.length === 'number') || + $util.isString(message.clientId) + ) + ) + return 'clientId: buffer expected'; + if (message.lockIp != null && message.hasOwnProperty('lockIp')) + if (typeof message.lockIp !== 'boolean') return 'lockIp: boolean expected'; + if (message.firstAccessExpireOn != null && message.hasOwnProperty('firstAccessExpireOn')) + if ( + !$util.isInteger(message.firstAccessExpireOn) && + !( + message.firstAccessExpireOn && + $util.isInteger(message.firstAccessExpireOn.low) && + $util.isInteger(message.firstAccessExpireOn.high) + ) + ) + return 'firstAccessExpireOn: integer|Long expected'; + if (message.accessExpireOn != null && message.hasOwnProperty('accessExpireOn')) + if ( + !$util.isInteger(message.accessExpireOn) && + !( + message.accessExpireOn && + $util.isInteger(message.accessExpireOn.low) && + $util.isInteger(message.accessExpireOn.high) + ) + ) + return 'accessExpireOn: integer|Long expected'; + if (message.id != null && message.hasOwnProperty('id')) + if (!$util.isString(message.id)) return 'id: string expected'; + if (message.appClientType != null && message.hasOwnProperty('appClientType')) switch (message.appClientType) { - default: - return "appClientType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; + default: + return 'appClientType: enum value expected'; + case 0: + case 1: + case 2: + case 3: + case 4: + break; } return null; }; @@ -40091,73 +41572,83 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.AddAppClientRequest} AddAppClientRequest */ AddAppClientRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.AddAppClientRequest) - return object; + if (object instanceof $root.Authentication.AddAppClientRequest) return object; let message = new $root.Authentication.AddAppClientRequest(); if (object.appRecordUid != null) - if (typeof object.appRecordUid === "string") - $util.base64.decode(object.appRecordUid, message.appRecordUid = $util.newBuffer($util.base64.length(object.appRecordUid)), 0); - else if (object.appRecordUid.length >= 0) - message.appRecordUid = object.appRecordUid; + if (typeof object.appRecordUid === 'string') + $util.base64.decode( + object.appRecordUid, + (message.appRecordUid = $util.newBuffer($util.base64.length(object.appRecordUid))), + 0 + ); + else if (object.appRecordUid.length >= 0) message.appRecordUid = object.appRecordUid; if (object.encryptedAppKey != null) - if (typeof object.encryptedAppKey === "string") - $util.base64.decode(object.encryptedAppKey, message.encryptedAppKey = $util.newBuffer($util.base64.length(object.encryptedAppKey)), 0); - else if (object.encryptedAppKey.length >= 0) - message.encryptedAppKey = object.encryptedAppKey; + if (typeof object.encryptedAppKey === 'string') + $util.base64.decode( + object.encryptedAppKey, + (message.encryptedAppKey = $util.newBuffer($util.base64.length(object.encryptedAppKey))), + 0 + ); + else if (object.encryptedAppKey.length >= 0) message.encryptedAppKey = object.encryptedAppKey; if (object.clientId != null) - if (typeof object.clientId === "string") - $util.base64.decode(object.clientId, message.clientId = $util.newBuffer($util.base64.length(object.clientId)), 0); - else if (object.clientId.length >= 0) - message.clientId = object.clientId; - if (object.lockIp != null) - message.lockIp = Boolean(object.lockIp); + if (typeof object.clientId === 'string') + $util.base64.decode( + object.clientId, + (message.clientId = $util.newBuffer($util.base64.length(object.clientId))), + 0 + ); + else if (object.clientId.length >= 0) message.clientId = object.clientId; + if (object.lockIp != null) message.lockIp = Boolean(object.lockIp); if (object.firstAccessExpireOn != null) if ($util.Long) (message.firstAccessExpireOn = $util.Long.fromValue(object.firstAccessExpireOn)).unsigned = false; - else if (typeof object.firstAccessExpireOn === "string") + else if (typeof object.firstAccessExpireOn === 'string') message.firstAccessExpireOn = parseInt(object.firstAccessExpireOn, 10); - else if (typeof object.firstAccessExpireOn === "number") + else if (typeof object.firstAccessExpireOn === 'number') message.firstAccessExpireOn = object.firstAccessExpireOn; - else if (typeof object.firstAccessExpireOn === "object") - message.firstAccessExpireOn = new $util.LongBits(object.firstAccessExpireOn.low >>> 0, object.firstAccessExpireOn.high >>> 0).toNumber(); + else if (typeof object.firstAccessExpireOn === 'object') + message.firstAccessExpireOn = new $util.LongBits( + object.firstAccessExpireOn.low >>> 0, + object.firstAccessExpireOn.high >>> 0 + ).toNumber(); if (object.accessExpireOn != null) - if ($util.Long) - (message.accessExpireOn = $util.Long.fromValue(object.accessExpireOn)).unsigned = false; - else if (typeof object.accessExpireOn === "string") + if ($util.Long) (message.accessExpireOn = $util.Long.fromValue(object.accessExpireOn)).unsigned = false; + else if (typeof object.accessExpireOn === 'string') message.accessExpireOn = parseInt(object.accessExpireOn, 10); - else if (typeof object.accessExpireOn === "number") - message.accessExpireOn = object.accessExpireOn; - else if (typeof object.accessExpireOn === "object") - message.accessExpireOn = new $util.LongBits(object.accessExpireOn.low >>> 0, object.accessExpireOn.high >>> 0).toNumber(); - if (object.id != null) - message.id = String(object.id); + else if (typeof object.accessExpireOn === 'number') message.accessExpireOn = object.accessExpireOn; + else if (typeof object.accessExpireOn === 'object') + message.accessExpireOn = new $util.LongBits( + object.accessExpireOn.low >>> 0, + object.accessExpireOn.high >>> 0 + ).toNumber(); + if (object.id != null) message.id = String(object.id); switch (object.appClientType) { - default: - if (typeof object.appClientType === "number") { - message.appClientType = object.appClientType; + default: + if (typeof object.appClientType === 'number') { + message.appClientType = object.appClientType; + break; + } + break; + case 'NOT_USED': + case 0: + message.appClientType = 0; + break; + case 'GENERAL': + case 1: + message.appClientType = 1; + break; + case 'DISCOVERY_AND_ROTATION_CONTROLLER': + case 2: + message.appClientType = 2; + break; + case 'KCM_CONTROLLER': + case 3: + message.appClientType = 3; + break; + case 'SELF_DESTRUCT': + case 4: + message.appClientType = 4; break; - } - break; - case "NOT_USED": - case 0: - message.appClientType = 0; - break; - case "GENERAL": - case 1: - message.appClientType = 1; - break; - case "DISCOVERY_AND_ROTATION_CONTROLLER": - case 2: - message.appClientType = 2; - break; - case "KCM_CONTROLLER": - case 3: - message.appClientType = 3; - break; - case "SELF_DESTRUCT": - case 4: - message.appClientType = 4; - break; } return message; }; @@ -40172,67 +41663,96 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ AddAppClientRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.appRecordUid = ""; + if (options.bytes === String) object.appRecordUid = ''; else { object.appRecordUid = []; - if (options.bytes !== Array) - object.appRecordUid = $util.newBuffer(object.appRecordUid); + if (options.bytes !== Array) object.appRecordUid = $util.newBuffer(object.appRecordUid); } - if (options.bytes === String) - object.encryptedAppKey = ""; + if (options.bytes === String) object.encryptedAppKey = ''; else { object.encryptedAppKey = []; - if (options.bytes !== Array) - object.encryptedAppKey = $util.newBuffer(object.encryptedAppKey); + if (options.bytes !== Array) object.encryptedAppKey = $util.newBuffer(object.encryptedAppKey); } - if (options.bytes === String) - object.clientId = ""; + if (options.bytes === String) object.clientId = ''; else { object.clientId = []; - if (options.bytes !== Array) - object.clientId = $util.newBuffer(object.clientId); + if (options.bytes !== Array) object.clientId = $util.newBuffer(object.clientId); } object.lockIp = false; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.firstAccessExpireOn = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.firstAccessExpireOn = options.longs === String ? "0" : 0; + object.firstAccessExpireOn = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.firstAccessExpireOn = options.longs === String ? '0' : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.accessExpireOn = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.accessExpireOn = options.longs === String ? "0" : 0; - object.id = ""; - object.appClientType = options.enums === String ? "NOT_USED" : 0; - } - if (message.appRecordUid != null && message.hasOwnProperty("appRecordUid")) - object.appRecordUid = options.bytes === String ? $util.base64.encode(message.appRecordUid, 0, message.appRecordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.appRecordUid) : message.appRecordUid; - if (message.encryptedAppKey != null && message.hasOwnProperty("encryptedAppKey")) - object.encryptedAppKey = options.bytes === String ? $util.base64.encode(message.encryptedAppKey, 0, message.encryptedAppKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedAppKey) : message.encryptedAppKey; - if (message.clientId != null && message.hasOwnProperty("clientId")) - object.clientId = options.bytes === String ? $util.base64.encode(message.clientId, 0, message.clientId.length) : options.bytes === Array ? Array.prototype.slice.call(message.clientId) : message.clientId; - if (message.lockIp != null && message.hasOwnProperty("lockIp")) - object.lockIp = message.lockIp; - if (message.firstAccessExpireOn != null && message.hasOwnProperty("firstAccessExpireOn")) - if (typeof message.firstAccessExpireOn === "number") - object.firstAccessExpireOn = options.longs === String ? String(message.firstAccessExpireOn) : message.firstAccessExpireOn; + object.accessExpireOn = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.accessExpireOn = options.longs === String ? '0' : 0; + object.id = ''; + object.appClientType = options.enums === String ? 'NOT_USED' : 0; + } + if (message.appRecordUid != null && message.hasOwnProperty('appRecordUid')) + object.appRecordUid = + options.bytes === String + ? $util.base64.encode(message.appRecordUid, 0, message.appRecordUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.appRecordUid) + : message.appRecordUid; + if (message.encryptedAppKey != null && message.hasOwnProperty('encryptedAppKey')) + object.encryptedAppKey = + options.bytes === String + ? $util.base64.encode(message.encryptedAppKey, 0, message.encryptedAppKey.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.encryptedAppKey) + : message.encryptedAppKey; + if (message.clientId != null && message.hasOwnProperty('clientId')) + object.clientId = + options.bytes === String + ? $util.base64.encode(message.clientId, 0, message.clientId.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.clientId) + : message.clientId; + if (message.lockIp != null && message.hasOwnProperty('lockIp')) object.lockIp = message.lockIp; + if (message.firstAccessExpireOn != null && message.hasOwnProperty('firstAccessExpireOn')) + if (typeof message.firstAccessExpireOn === 'number') + object.firstAccessExpireOn = + options.longs === String ? String(message.firstAccessExpireOn) : message.firstAccessExpireOn; else - object.firstAccessExpireOn = options.longs === String ? $util.Long.prototype.toString.call(message.firstAccessExpireOn) : options.longs === Number ? new $util.LongBits(message.firstAccessExpireOn.low >>> 0, message.firstAccessExpireOn.high >>> 0).toNumber() : message.firstAccessExpireOn; - if (message.accessExpireOn != null && message.hasOwnProperty("accessExpireOn")) - if (typeof message.accessExpireOn === "number") - object.accessExpireOn = options.longs === String ? String(message.accessExpireOn) : message.accessExpireOn; + object.firstAccessExpireOn = + options.longs === String + ? $util.Long.prototype.toString.call(message.firstAccessExpireOn) + : options.longs === Number + ? new $util.LongBits( + message.firstAccessExpireOn.low >>> 0, + message.firstAccessExpireOn.high >>> 0 + ).toNumber() + : message.firstAccessExpireOn; + if (message.accessExpireOn != null && message.hasOwnProperty('accessExpireOn')) + if (typeof message.accessExpireOn === 'number') + object.accessExpireOn = + options.longs === String ? String(message.accessExpireOn) : message.accessExpireOn; else - object.accessExpireOn = options.longs === String ? $util.Long.prototype.toString.call(message.accessExpireOn) : options.longs === Number ? new $util.LongBits(message.accessExpireOn.low >>> 0, message.accessExpireOn.high >>> 0).toNumber() : message.accessExpireOn; - if (message.id != null && message.hasOwnProperty("id")) - object.id = message.id; - if (message.appClientType != null && message.hasOwnProperty("appClientType")) - object.appClientType = options.enums === String ? $root.Enterprise.AppClientType[message.appClientType] === undefined ? message.appClientType : $root.Enterprise.AppClientType[message.appClientType] : message.appClientType; + object.accessExpireOn = + options.longs === String + ? $util.Long.prototype.toString.call(message.accessExpireOn) + : options.longs === Number + ? new $util.LongBits( + message.accessExpireOn.low >>> 0, + message.accessExpireOn.high >>> 0 + ).toNumber() + : message.accessExpireOn; + if (message.id != null && message.hasOwnProperty('id')) object.id = message.id; + if (message.appClientType != null && message.hasOwnProperty('appClientType')) + object.appClientType = + options.enums === String + ? $root.Enterprise.AppClientType[message.appClientType] === undefined + ? message.appClientType + : $root.Enterprise.AppClientType[message.appClientType] + : message.appClientType; return object; }; @@ -40257,16 +41777,15 @@ export const Authentication = $root.Authentication = (() => { */ AddAppClientRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.AddAppClientRequest"; + return typeUrlPrefix + '/Authentication.AddAppClientRequest'; }; return AddAppClientRequest; })(); - Authentication.RemoveAppClientsRequest = (function() { - + Authentication.RemoveAppClientsRequest = (function () { /** * Properties of a RemoveAppClientsRequest. * @memberof Authentication @@ -40287,8 +41806,7 @@ export const Authentication = $root.Authentication = (() => { this.clients = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -40329,13 +41847,12 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ RemoveAppClientsRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.appRecordUid != null && Object.hasOwnProperty.call(message, "appRecordUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.appRecordUid); + if (!writer) writer = $Writer.create(); + if (message.appRecordUid != null && Object.hasOwnProperty.call(message, 'appRecordUid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.appRecordUid); if (message.clients != null && message.clients.length) for (let i = 0; i < message.clients.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.clients[i]); + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.clients[i]); return writer; }; @@ -40364,25 +41881,24 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RemoveAppClientsRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.RemoveAppClientsRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.RemoveAppClientsRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.appRecordUid = reader.bytes(); break; } - case 2: { - if (!(message.clients && message.clients.length)) - message.clients = []; + case 2: { + if (!(message.clients && message.clients.length)) message.clients = []; message.clients.push(reader.bytes()); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -40399,8 +41915,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RemoveAppClientsRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -40413,17 +41928,25 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ RemoveAppClientsRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.appRecordUid != null && message.hasOwnProperty("appRecordUid")) - if (!(message.appRecordUid && typeof message.appRecordUid.length === "number" || $util.isString(message.appRecordUid))) - return "appRecordUid: buffer expected"; - if (message.clients != null && message.hasOwnProperty("clients")) { - if (!Array.isArray(message.clients)) - return "clients: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.appRecordUid != null && message.hasOwnProperty('appRecordUid')) + if ( + !( + (message.appRecordUid && typeof message.appRecordUid.length === 'number') || + $util.isString(message.appRecordUid) + ) + ) + return 'appRecordUid: buffer expected'; + if (message.clients != null && message.hasOwnProperty('clients')) { + if (!Array.isArray(message.clients)) return 'clients: array expected'; for (let i = 0; i < message.clients.length; ++i) - if (!(message.clients[i] && typeof message.clients[i].length === "number" || $util.isString(message.clients[i]))) - return "clients: buffer[] expected"; + if ( + !( + (message.clients[i] && typeof message.clients[i].length === 'number') || + $util.isString(message.clients[i]) + ) + ) + return 'clients: buffer[] expected'; } return null; }; @@ -40437,23 +41960,28 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.RemoveAppClientsRequest} RemoveAppClientsRequest */ RemoveAppClientsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.RemoveAppClientsRequest) - return object; + if (object instanceof $root.Authentication.RemoveAppClientsRequest) return object; let message = new $root.Authentication.RemoveAppClientsRequest(); if (object.appRecordUid != null) - if (typeof object.appRecordUid === "string") - $util.base64.decode(object.appRecordUid, message.appRecordUid = $util.newBuffer($util.base64.length(object.appRecordUid)), 0); - else if (object.appRecordUid.length >= 0) - message.appRecordUid = object.appRecordUid; + if (typeof object.appRecordUid === 'string') + $util.base64.decode( + object.appRecordUid, + (message.appRecordUid = $util.newBuffer($util.base64.length(object.appRecordUid))), + 0 + ); + else if (object.appRecordUid.length >= 0) message.appRecordUid = object.appRecordUid; if (object.clients) { if (!Array.isArray(object.clients)) - throw TypeError(".Authentication.RemoveAppClientsRequest.clients: array expected"); + throw TypeError('.Authentication.RemoveAppClientsRequest.clients: array expected'); message.clients = []; for (let i = 0; i < object.clients.length; ++i) - if (typeof object.clients[i] === "string") - $util.base64.decode(object.clients[i], message.clients[i] = $util.newBuffer($util.base64.length(object.clients[i])), 0); - else if (object.clients[i].length >= 0) - message.clients[i] = object.clients[i]; + if (typeof object.clients[i] === 'string') + $util.base64.decode( + object.clients[i], + (message.clients[i] = $util.newBuffer($util.base64.length(object.clients[i]))), + 0 + ); + else if (object.clients[i].length >= 0) message.clients[i] = object.clients[i]; } return message; }; @@ -40468,25 +41996,31 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ RemoveAppClientsRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.clients = []; + if (options.arrays || options.defaults) object.clients = []; if (options.defaults) - if (options.bytes === String) - object.appRecordUid = ""; + if (options.bytes === String) object.appRecordUid = ''; else { object.appRecordUid = []; - if (options.bytes !== Array) - object.appRecordUid = $util.newBuffer(object.appRecordUid); - } - if (message.appRecordUid != null && message.hasOwnProperty("appRecordUid")) - object.appRecordUid = options.bytes === String ? $util.base64.encode(message.appRecordUid, 0, message.appRecordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.appRecordUid) : message.appRecordUid; + if (options.bytes !== Array) object.appRecordUid = $util.newBuffer(object.appRecordUid); + } + if (message.appRecordUid != null && message.hasOwnProperty('appRecordUid')) + object.appRecordUid = + options.bytes === String + ? $util.base64.encode(message.appRecordUid, 0, message.appRecordUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.appRecordUid) + : message.appRecordUid; if (message.clients && message.clients.length) { object.clients = []; for (let j = 0; j < message.clients.length; ++j) - object.clients[j] = options.bytes === String ? $util.base64.encode(message.clients[j], 0, message.clients[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.clients[j]) : message.clients[j]; + object.clients[j] = + options.bytes === String + ? $util.base64.encode(message.clients[j], 0, message.clients[j].length) + : options.bytes === Array + ? Array.prototype.slice.call(message.clients[j]) + : message.clients[j]; } return object; }; @@ -40512,16 +42046,15 @@ export const Authentication = $root.Authentication = (() => { */ RemoveAppClientsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.RemoveAppClientsRequest"; + return typeUrlPrefix + '/Authentication.RemoveAppClientsRequest'; }; return RemoveAppClientsRequest; })(); - Authentication.AddExternalShareRequest = (function() { - + Authentication.AddExternalShareRequest = (function () { /** * Properties of an AddExternalShareRequest. * @memberof Authentication @@ -40546,8 +42079,7 @@ export const Authentication = $root.Authentication = (() => { function AddExternalShareRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -40580,7 +42112,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.AddExternalShareRequest * @instance */ - AddExternalShareRequest.prototype.accessExpireOn = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + AddExternalShareRequest.prototype.accessExpireOn = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * AddExternalShareRequest id. @@ -40588,7 +42120,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.AddExternalShareRequest * @instance */ - AddExternalShareRequest.prototype.id = ""; + AddExternalShareRequest.prototype.id = ''; /** * AddExternalShareRequest isSelfDestruct. @@ -40628,22 +42160,21 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ AddExternalShareRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); - if (message.encryptedRecordKey != null && Object.hasOwnProperty.call(message, "encryptedRecordKey")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.encryptedRecordKey); - if (message.clientId != null && Object.hasOwnProperty.call(message, "clientId")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.clientId); - if (message.accessExpireOn != null && Object.hasOwnProperty.call(message, "accessExpireOn")) - writer.uint32(/* id 4, wireType 0 =*/32).int64(message.accessExpireOn); - if (message.id != null && Object.hasOwnProperty.call(message, "id")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.id); - if (message.isSelfDestruct != null && Object.hasOwnProperty.call(message, "isSelfDestruct")) - writer.uint32(/* id 6, wireType 0 =*/48).bool(message.isSelfDestruct); - if (message.isEditable != null && Object.hasOwnProperty.call(message, "isEditable")) - writer.uint32(/* id 7, wireType 0 =*/56).bool(message.isEditable); + if (!writer) writer = $Writer.create(); + if (message.recordUid != null && Object.hasOwnProperty.call(message, 'recordUid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.recordUid); + if (message.encryptedRecordKey != null && Object.hasOwnProperty.call(message, 'encryptedRecordKey')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.encryptedRecordKey); + if (message.clientId != null && Object.hasOwnProperty.call(message, 'clientId')) + writer.uint32(/* id 3, wireType 2 =*/ 26).bytes(message.clientId); + if (message.accessExpireOn != null && Object.hasOwnProperty.call(message, 'accessExpireOn')) + writer.uint32(/* id 4, wireType 0 =*/ 32).int64(message.accessExpireOn); + if (message.id != null && Object.hasOwnProperty.call(message, 'id')) + writer.uint32(/* id 5, wireType 2 =*/ 42).string(message.id); + if (message.isSelfDestruct != null && Object.hasOwnProperty.call(message, 'isSelfDestruct')) + writer.uint32(/* id 6, wireType 0 =*/ 48).bool(message.isSelfDestruct); + if (message.isEditable != null && Object.hasOwnProperty.call(message, 'isEditable')) + writer.uint32(/* id 7, wireType 0 =*/ 56).bool(message.isEditable); return writer; }; @@ -40672,43 +42203,43 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ AddExternalShareRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.AddExternalShareRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.AddExternalShareRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.recordUid = reader.bytes(); break; } - case 2: { + case 2: { message.encryptedRecordKey = reader.bytes(); break; } - case 3: { + case 3: { message.clientId = reader.bytes(); break; } - case 4: { + case 4: { message.accessExpireOn = reader.int64(); break; } - case 5: { + case 5: { message.id = reader.string(); break; } - case 6: { + case 6: { message.isSelfDestruct = reader.bool(); break; } - case 7: { + case 7: { message.isEditable = reader.bool(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -40725,8 +42256,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ AddExternalShareRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -40739,29 +42269,47 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ AddExternalShareRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) - return "recordUid: buffer expected"; - if (message.encryptedRecordKey != null && message.hasOwnProperty("encryptedRecordKey")) - if (!(message.encryptedRecordKey && typeof message.encryptedRecordKey.length === "number" || $util.isString(message.encryptedRecordKey))) - return "encryptedRecordKey: buffer expected"; - if (message.clientId != null && message.hasOwnProperty("clientId")) - if (!(message.clientId && typeof message.clientId.length === "number" || $util.isString(message.clientId))) - return "clientId: buffer expected"; - if (message.accessExpireOn != null && message.hasOwnProperty("accessExpireOn")) - if (!$util.isInteger(message.accessExpireOn) && !(message.accessExpireOn && $util.isInteger(message.accessExpireOn.low) && $util.isInteger(message.accessExpireOn.high))) - return "accessExpireOn: integer|Long expected"; - if (message.id != null && message.hasOwnProperty("id")) - if (!$util.isString(message.id)) - return "id: string expected"; - if (message.isSelfDestruct != null && message.hasOwnProperty("isSelfDestruct")) - if (typeof message.isSelfDestruct !== "boolean") - return "isSelfDestruct: boolean expected"; - if (message.isEditable != null && message.hasOwnProperty("isEditable")) - if (typeof message.isEditable !== "boolean") - return "isEditable: boolean expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.recordUid != null && message.hasOwnProperty('recordUid')) + if ( + !( + (message.recordUid && typeof message.recordUid.length === 'number') || + $util.isString(message.recordUid) + ) + ) + return 'recordUid: buffer expected'; + if (message.encryptedRecordKey != null && message.hasOwnProperty('encryptedRecordKey')) + if ( + !( + (message.encryptedRecordKey && typeof message.encryptedRecordKey.length === 'number') || + $util.isString(message.encryptedRecordKey) + ) + ) + return 'encryptedRecordKey: buffer expected'; + if (message.clientId != null && message.hasOwnProperty('clientId')) + if ( + !( + (message.clientId && typeof message.clientId.length === 'number') || + $util.isString(message.clientId) + ) + ) + return 'clientId: buffer expected'; + if (message.accessExpireOn != null && message.hasOwnProperty('accessExpireOn')) + if ( + !$util.isInteger(message.accessExpireOn) && + !( + message.accessExpireOn && + $util.isInteger(message.accessExpireOn.low) && + $util.isInteger(message.accessExpireOn.high) + ) + ) + return 'accessExpireOn: integer|Long expected'; + if (message.id != null && message.hasOwnProperty('id')) + if (!$util.isString(message.id)) return 'id: string expected'; + if (message.isSelfDestruct != null && message.hasOwnProperty('isSelfDestruct')) + if (typeof message.isSelfDestruct !== 'boolean') return 'isSelfDestruct: boolean expected'; + if (message.isEditable != null && message.hasOwnProperty('isEditable')) + if (typeof message.isEditable !== 'boolean') return 'isEditable: boolean expected'; return null; }; @@ -40774,39 +42322,45 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.AddExternalShareRequest} AddExternalShareRequest */ AddExternalShareRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.AddExternalShareRequest) - return object; + if (object instanceof $root.Authentication.AddExternalShareRequest) return object; let message = new $root.Authentication.AddExternalShareRequest(); 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 (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.encryptedRecordKey != null) - if (typeof object.encryptedRecordKey === "string") - $util.base64.decode(object.encryptedRecordKey, message.encryptedRecordKey = $util.newBuffer($util.base64.length(object.encryptedRecordKey)), 0); - else if (object.encryptedRecordKey.length >= 0) - message.encryptedRecordKey = object.encryptedRecordKey; + if (typeof object.encryptedRecordKey === 'string') + $util.base64.decode( + object.encryptedRecordKey, + (message.encryptedRecordKey = $util.newBuffer($util.base64.length(object.encryptedRecordKey))), + 0 + ); + else if (object.encryptedRecordKey.length >= 0) message.encryptedRecordKey = object.encryptedRecordKey; if (object.clientId != null) - if (typeof object.clientId === "string") - $util.base64.decode(object.clientId, message.clientId = $util.newBuffer($util.base64.length(object.clientId)), 0); - else if (object.clientId.length >= 0) - message.clientId = object.clientId; + if (typeof object.clientId === 'string') + $util.base64.decode( + object.clientId, + (message.clientId = $util.newBuffer($util.base64.length(object.clientId))), + 0 + ); + else if (object.clientId.length >= 0) message.clientId = object.clientId; if (object.accessExpireOn != null) - if ($util.Long) - (message.accessExpireOn = $util.Long.fromValue(object.accessExpireOn)).unsigned = false; - else if (typeof object.accessExpireOn === "string") + if ($util.Long) (message.accessExpireOn = $util.Long.fromValue(object.accessExpireOn)).unsigned = false; + else if (typeof object.accessExpireOn === 'string') message.accessExpireOn = parseInt(object.accessExpireOn, 10); - else if (typeof object.accessExpireOn === "number") - message.accessExpireOn = object.accessExpireOn; - else if (typeof object.accessExpireOn === "object") - message.accessExpireOn = new $util.LongBits(object.accessExpireOn.low >>> 0, object.accessExpireOn.high >>> 0).toNumber(); - if (object.id != null) - message.id = String(object.id); - if (object.isSelfDestruct != null) - message.isSelfDestruct = Boolean(object.isSelfDestruct); - if (object.isEditable != null) - message.isEditable = Boolean(object.isEditable); + else if (typeof object.accessExpireOn === 'number') message.accessExpireOn = object.accessExpireOn; + else if (typeof object.accessExpireOn === 'object') + message.accessExpireOn = new $util.LongBits( + object.accessExpireOn.low >>> 0, + object.accessExpireOn.high >>> 0 + ).toNumber(); + if (object.id != null) message.id = String(object.id); + if (object.isSelfDestruct != null) message.isSelfDestruct = Boolean(object.isSelfDestruct); + if (object.isEditable != null) message.isEditable = Boolean(object.isEditable); return message; }; @@ -40820,56 +42374,72 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ AddExternalShareRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.recordUid = ""; + if (options.bytes === String) object.recordUid = ''; else { object.recordUid = []; - if (options.bytes !== Array) - object.recordUid = $util.newBuffer(object.recordUid); + if (options.bytes !== Array) object.recordUid = $util.newBuffer(object.recordUid); } - if (options.bytes === String) - object.encryptedRecordKey = ""; + if (options.bytes === String) object.encryptedRecordKey = ''; else { object.encryptedRecordKey = []; - if (options.bytes !== Array) - object.encryptedRecordKey = $util.newBuffer(object.encryptedRecordKey); + if (options.bytes !== Array) object.encryptedRecordKey = $util.newBuffer(object.encryptedRecordKey); } - if (options.bytes === String) - object.clientId = ""; + if (options.bytes === String) object.clientId = ''; else { object.clientId = []; - if (options.bytes !== Array) - object.clientId = $util.newBuffer(object.clientId); + if (options.bytes !== Array) object.clientId = $util.newBuffer(object.clientId); } if ($util.Long) { let long = new $util.Long(0, 0, false); - object.accessExpireOn = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.accessExpireOn = options.longs === String ? "0" : 0; - object.id = ""; + object.accessExpireOn = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.accessExpireOn = options.longs === String ? '0' : 0; + object.id = ''; object.isSelfDestruct = false; object.isEditable = false; } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; - if (message.encryptedRecordKey != null && message.hasOwnProperty("encryptedRecordKey")) - object.encryptedRecordKey = options.bytes === String ? $util.base64.encode(message.encryptedRecordKey, 0, message.encryptedRecordKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedRecordKey) : message.encryptedRecordKey; - if (message.clientId != null && message.hasOwnProperty("clientId")) - object.clientId = options.bytes === String ? $util.base64.encode(message.clientId, 0, message.clientId.length) : options.bytes === Array ? Array.prototype.slice.call(message.clientId) : message.clientId; - if (message.accessExpireOn != null && message.hasOwnProperty("accessExpireOn")) - if (typeof message.accessExpireOn === "number") - object.accessExpireOn = options.longs === String ? String(message.accessExpireOn) : message.accessExpireOn; + if (message.recordUid != null && message.hasOwnProperty('recordUid')) + object.recordUid = + options.bytes === String + ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.recordUid) + : message.recordUid; + if (message.encryptedRecordKey != null && message.hasOwnProperty('encryptedRecordKey')) + object.encryptedRecordKey = + options.bytes === String + ? $util.base64.encode(message.encryptedRecordKey, 0, message.encryptedRecordKey.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.encryptedRecordKey) + : message.encryptedRecordKey; + if (message.clientId != null && message.hasOwnProperty('clientId')) + object.clientId = + options.bytes === String + ? $util.base64.encode(message.clientId, 0, message.clientId.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.clientId) + : message.clientId; + if (message.accessExpireOn != null && message.hasOwnProperty('accessExpireOn')) + if (typeof message.accessExpireOn === 'number') + object.accessExpireOn = + options.longs === String ? String(message.accessExpireOn) : message.accessExpireOn; else - object.accessExpireOn = options.longs === String ? $util.Long.prototype.toString.call(message.accessExpireOn) : options.longs === Number ? new $util.LongBits(message.accessExpireOn.low >>> 0, message.accessExpireOn.high >>> 0).toNumber() : message.accessExpireOn; - if (message.id != null && message.hasOwnProperty("id")) - object.id = message.id; - if (message.isSelfDestruct != null && message.hasOwnProperty("isSelfDestruct")) + object.accessExpireOn = + options.longs === String + ? $util.Long.prototype.toString.call(message.accessExpireOn) + : options.longs === Number + ? new $util.LongBits( + message.accessExpireOn.low >>> 0, + message.accessExpireOn.high >>> 0 + ).toNumber() + : message.accessExpireOn; + if (message.id != null && message.hasOwnProperty('id')) object.id = message.id; + if (message.isSelfDestruct != null && message.hasOwnProperty('isSelfDestruct')) object.isSelfDestruct = message.isSelfDestruct; - if (message.isEditable != null && message.hasOwnProperty("isEditable")) + if (message.isEditable != null && message.hasOwnProperty('isEditable')) object.isEditable = message.isEditable; return object; }; @@ -40895,16 +42465,15 @@ export const Authentication = $root.Authentication = (() => { */ AddExternalShareRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.AddExternalShareRequest"; + return typeUrlPrefix + '/Authentication.AddExternalShareRequest'; }; return AddExternalShareRequest; })(); - Authentication.AppClient = (function() { - + Authentication.AppClient = (function () { /** * Properties of an AppClient. * @memberof Authentication @@ -40934,8 +42503,7 @@ export const Authentication = $root.Authentication = (() => { function AppClient(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -40944,7 +42512,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.AppClient * @instance */ - AppClient.prototype.id = ""; + AppClient.prototype.id = ''; /** * AppClient clientId. @@ -40960,7 +42528,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.AppClient * @instance */ - AppClient.prototype.createdOn = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + AppClient.prototype.createdOn = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * AppClient firstAccess. @@ -40968,7 +42536,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.AppClient * @instance */ - AppClient.prototype.firstAccess = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + AppClient.prototype.firstAccess = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * AppClient lastAccess. @@ -40976,7 +42544,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.AppClient * @instance */ - AppClient.prototype.lastAccess = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + AppClient.prototype.lastAccess = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * AppClient publicKey. @@ -41000,7 +42568,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.AppClient * @instance */ - AppClient.prototype.ipAddress = ""; + AppClient.prototype.ipAddress = ''; /** * AppClient firstAccessExpireOn. @@ -41008,7 +42576,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.AppClient * @instance */ - AppClient.prototype.firstAccessExpireOn = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + AppClient.prototype.firstAccessExpireOn = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * AppClient accessExpireOn. @@ -41016,7 +42584,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.AppClient * @instance */ - AppClient.prototype.accessExpireOn = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + AppClient.prototype.accessExpireOn = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * AppClient appClientType. @@ -41056,32 +42624,31 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ AppClient.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.id != null && Object.hasOwnProperty.call(message, "id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.id); - if (message.clientId != null && Object.hasOwnProperty.call(message, "clientId")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.clientId); - if (message.createdOn != null && Object.hasOwnProperty.call(message, "createdOn")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.createdOn); - if (message.firstAccess != null && Object.hasOwnProperty.call(message, "firstAccess")) - writer.uint32(/* id 4, wireType 0 =*/32).int64(message.firstAccess); - if (message.lastAccess != null && Object.hasOwnProperty.call(message, "lastAccess")) - writer.uint32(/* id 5, wireType 0 =*/40).int64(message.lastAccess); - if (message.publicKey != null && Object.hasOwnProperty.call(message, "publicKey")) - writer.uint32(/* id 6, wireType 2 =*/50).bytes(message.publicKey); - if (message.lockIp != null && Object.hasOwnProperty.call(message, "lockIp")) - writer.uint32(/* id 7, wireType 0 =*/56).bool(message.lockIp); - if (message.ipAddress != null && Object.hasOwnProperty.call(message, "ipAddress")) - writer.uint32(/* id 8, wireType 2 =*/66).string(message.ipAddress); - if (message.firstAccessExpireOn != null && Object.hasOwnProperty.call(message, "firstAccessExpireOn")) - writer.uint32(/* id 9, wireType 0 =*/72).int64(message.firstAccessExpireOn); - if (message.accessExpireOn != null && Object.hasOwnProperty.call(message, "accessExpireOn")) - writer.uint32(/* id 10, wireType 0 =*/80).int64(message.accessExpireOn); - if (message.appClientType != null && Object.hasOwnProperty.call(message, "appClientType")) - writer.uint32(/* id 11, wireType 0 =*/88).int32(message.appClientType); - if (message.canEdit != null && Object.hasOwnProperty.call(message, "canEdit")) - writer.uint32(/* id 12, wireType 0 =*/96).bool(message.canEdit); + if (!writer) writer = $Writer.create(); + if (message.id != null && Object.hasOwnProperty.call(message, 'id')) + writer.uint32(/* id 1, wireType 2 =*/ 10).string(message.id); + if (message.clientId != null && Object.hasOwnProperty.call(message, 'clientId')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.clientId); + if (message.createdOn != null && Object.hasOwnProperty.call(message, 'createdOn')) + writer.uint32(/* id 3, wireType 0 =*/ 24).int64(message.createdOn); + if (message.firstAccess != null && Object.hasOwnProperty.call(message, 'firstAccess')) + writer.uint32(/* id 4, wireType 0 =*/ 32).int64(message.firstAccess); + if (message.lastAccess != null && Object.hasOwnProperty.call(message, 'lastAccess')) + writer.uint32(/* id 5, wireType 0 =*/ 40).int64(message.lastAccess); + if (message.publicKey != null && Object.hasOwnProperty.call(message, 'publicKey')) + writer.uint32(/* id 6, wireType 2 =*/ 50).bytes(message.publicKey); + if (message.lockIp != null && Object.hasOwnProperty.call(message, 'lockIp')) + writer.uint32(/* id 7, wireType 0 =*/ 56).bool(message.lockIp); + if (message.ipAddress != null && Object.hasOwnProperty.call(message, 'ipAddress')) + writer.uint32(/* id 8, wireType 2 =*/ 66).string(message.ipAddress); + if (message.firstAccessExpireOn != null && Object.hasOwnProperty.call(message, 'firstAccessExpireOn')) + writer.uint32(/* id 9, wireType 0 =*/ 72).int64(message.firstAccessExpireOn); + if (message.accessExpireOn != null && Object.hasOwnProperty.call(message, 'accessExpireOn')) + writer.uint32(/* id 10, wireType 0 =*/ 80).int64(message.accessExpireOn); + if (message.appClientType != null && Object.hasOwnProperty.call(message, 'appClientType')) + writer.uint32(/* id 11, wireType 0 =*/ 88).int32(message.appClientType); + if (message.canEdit != null && Object.hasOwnProperty.call(message, 'canEdit')) + writer.uint32(/* id 12, wireType 0 =*/ 96).bool(message.canEdit); return writer; }; @@ -41110,63 +42677,63 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ AppClient.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.AppClient(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.AppClient(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.id = reader.string(); break; } - case 2: { + case 2: { message.clientId = reader.bytes(); break; } - case 3: { + case 3: { message.createdOn = reader.int64(); break; } - case 4: { + case 4: { message.firstAccess = reader.int64(); break; } - case 5: { + case 5: { message.lastAccess = reader.int64(); break; } - case 6: { + case 6: { message.publicKey = reader.bytes(); break; } - case 7: { + case 7: { message.lockIp = reader.bool(); break; } - case 8: { + case 8: { message.ipAddress = reader.string(); break; } - case 9: { + case 9: { message.firstAccessExpireOn = reader.int64(); break; } - case 10: { + case 10: { message.accessExpireOn = reader.int64(); break; } - case 11: { + case 11: { message.appClientType = reader.int32(); break; } - case 12: { + case 12: { message.canEdit = reader.bool(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -41183,8 +42750,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ AppClient.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -41197,52 +42763,92 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ AppClient.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) - if (!$util.isString(message.id)) - return "id: string expected"; - if (message.clientId != null && message.hasOwnProperty("clientId")) - if (!(message.clientId && typeof message.clientId.length === "number" || $util.isString(message.clientId))) - return "clientId: buffer expected"; - if (message.createdOn != null && message.hasOwnProperty("createdOn")) - if (!$util.isInteger(message.createdOn) && !(message.createdOn && $util.isInteger(message.createdOn.low) && $util.isInteger(message.createdOn.high))) - return "createdOn: integer|Long expected"; - if (message.firstAccess != null && message.hasOwnProperty("firstAccess")) - if (!$util.isInteger(message.firstAccess) && !(message.firstAccess && $util.isInteger(message.firstAccess.low) && $util.isInteger(message.firstAccess.high))) - return "firstAccess: integer|Long expected"; - if (message.lastAccess != null && message.hasOwnProperty("lastAccess")) - if (!$util.isInteger(message.lastAccess) && !(message.lastAccess && $util.isInteger(message.lastAccess.low) && $util.isInteger(message.lastAccess.high))) - return "lastAccess: integer|Long expected"; - if (message.publicKey != null && message.hasOwnProperty("publicKey")) - if (!(message.publicKey && typeof message.publicKey.length === "number" || $util.isString(message.publicKey))) - return "publicKey: buffer expected"; - if (message.lockIp != null && message.hasOwnProperty("lockIp")) - if (typeof message.lockIp !== "boolean") - return "lockIp: boolean expected"; - if (message.ipAddress != null && message.hasOwnProperty("ipAddress")) - if (!$util.isString(message.ipAddress)) - return "ipAddress: string expected"; - if (message.firstAccessExpireOn != null && message.hasOwnProperty("firstAccessExpireOn")) - if (!$util.isInteger(message.firstAccessExpireOn) && !(message.firstAccessExpireOn && $util.isInteger(message.firstAccessExpireOn.low) && $util.isInteger(message.firstAccessExpireOn.high))) - return "firstAccessExpireOn: integer|Long expected"; - if (message.accessExpireOn != null && message.hasOwnProperty("accessExpireOn")) - if (!$util.isInteger(message.accessExpireOn) && !(message.accessExpireOn && $util.isInteger(message.accessExpireOn.low) && $util.isInteger(message.accessExpireOn.high))) - return "accessExpireOn: integer|Long expected"; - if (message.appClientType != null && message.hasOwnProperty("appClientType")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.id != null && message.hasOwnProperty('id')) + if (!$util.isString(message.id)) return 'id: string expected'; + if (message.clientId != null && message.hasOwnProperty('clientId')) + if ( + !( + (message.clientId && typeof message.clientId.length === 'number') || + $util.isString(message.clientId) + ) + ) + return 'clientId: buffer expected'; + if (message.createdOn != null && message.hasOwnProperty('createdOn')) + if ( + !$util.isInteger(message.createdOn) && + !( + message.createdOn && + $util.isInteger(message.createdOn.low) && + $util.isInteger(message.createdOn.high) + ) + ) + return 'createdOn: integer|Long expected'; + if (message.firstAccess != null && message.hasOwnProperty('firstAccess')) + if ( + !$util.isInteger(message.firstAccess) && + !( + message.firstAccess && + $util.isInteger(message.firstAccess.low) && + $util.isInteger(message.firstAccess.high) + ) + ) + return 'firstAccess: integer|Long expected'; + if (message.lastAccess != null && message.hasOwnProperty('lastAccess')) + if ( + !$util.isInteger(message.lastAccess) && + !( + message.lastAccess && + $util.isInteger(message.lastAccess.low) && + $util.isInteger(message.lastAccess.high) + ) + ) + return 'lastAccess: integer|Long expected'; + if (message.publicKey != null && message.hasOwnProperty('publicKey')) + if ( + !( + (message.publicKey && typeof message.publicKey.length === 'number') || + $util.isString(message.publicKey) + ) + ) + return 'publicKey: buffer expected'; + if (message.lockIp != null && message.hasOwnProperty('lockIp')) + if (typeof message.lockIp !== 'boolean') return 'lockIp: boolean expected'; + if (message.ipAddress != null && message.hasOwnProperty('ipAddress')) + if (!$util.isString(message.ipAddress)) return 'ipAddress: string expected'; + if (message.firstAccessExpireOn != null && message.hasOwnProperty('firstAccessExpireOn')) + if ( + !$util.isInteger(message.firstAccessExpireOn) && + !( + message.firstAccessExpireOn && + $util.isInteger(message.firstAccessExpireOn.low) && + $util.isInteger(message.firstAccessExpireOn.high) + ) + ) + return 'firstAccessExpireOn: integer|Long expected'; + if (message.accessExpireOn != null && message.hasOwnProperty('accessExpireOn')) + if ( + !$util.isInteger(message.accessExpireOn) && + !( + message.accessExpireOn && + $util.isInteger(message.accessExpireOn.low) && + $util.isInteger(message.accessExpireOn.high) + ) + ) + return 'accessExpireOn: integer|Long expected'; + if (message.appClientType != null && message.hasOwnProperty('appClientType')) switch (message.appClientType) { - default: - return "appClientType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; + default: + return 'appClientType: enum value expected'; + case 0: + case 1: + case 2: + case 3: + case 4: + break; } - if (message.canEdit != null && message.hasOwnProperty("canEdit")) - if (typeof message.canEdit !== "boolean") - return "canEdit: boolean expected"; + if (message.canEdit != null && message.hasOwnProperty('canEdit')) + if (typeof message.canEdit !== 'boolean') return 'canEdit: boolean expected'; return null; }; @@ -41255,100 +42861,105 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.AppClient} AppClient */ AppClient.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.AppClient) - return object; + if (object instanceof $root.Authentication.AppClient) return object; let message = new $root.Authentication.AppClient(); - if (object.id != null) - message.id = String(object.id); + if (object.id != null) message.id = String(object.id); if (object.clientId != null) - if (typeof object.clientId === "string") - $util.base64.decode(object.clientId, message.clientId = $util.newBuffer($util.base64.length(object.clientId)), 0); - else if (object.clientId.length >= 0) - message.clientId = object.clientId; + if (typeof object.clientId === 'string') + $util.base64.decode( + object.clientId, + (message.clientId = $util.newBuffer($util.base64.length(object.clientId))), + 0 + ); + else if (object.clientId.length >= 0) message.clientId = object.clientId; if (object.createdOn != null) - if ($util.Long) - (message.createdOn = $util.Long.fromValue(object.createdOn)).unsigned = false; - else if (typeof object.createdOn === "string") - message.createdOn = parseInt(object.createdOn, 10); - else if (typeof object.createdOn === "number") - message.createdOn = object.createdOn; - else if (typeof object.createdOn === "object") - message.createdOn = new $util.LongBits(object.createdOn.low >>> 0, object.createdOn.high >>> 0).toNumber(); + if ($util.Long) (message.createdOn = $util.Long.fromValue(object.createdOn)).unsigned = false; + else if (typeof object.createdOn === 'string') message.createdOn = parseInt(object.createdOn, 10); + else if (typeof object.createdOn === 'number') message.createdOn = object.createdOn; + else if (typeof object.createdOn === 'object') + message.createdOn = new $util.LongBits( + object.createdOn.low >>> 0, + object.createdOn.high >>> 0 + ).toNumber(); if (object.firstAccess != null) - if ($util.Long) - (message.firstAccess = $util.Long.fromValue(object.firstAccess)).unsigned = false; - else if (typeof object.firstAccess === "string") - message.firstAccess = parseInt(object.firstAccess, 10); - else if (typeof object.firstAccess === "number") - message.firstAccess = object.firstAccess; - else if (typeof object.firstAccess === "object") - message.firstAccess = new $util.LongBits(object.firstAccess.low >>> 0, object.firstAccess.high >>> 0).toNumber(); + if ($util.Long) (message.firstAccess = $util.Long.fromValue(object.firstAccess)).unsigned = false; + else if (typeof object.firstAccess === 'string') message.firstAccess = parseInt(object.firstAccess, 10); + else if (typeof object.firstAccess === 'number') message.firstAccess = object.firstAccess; + else if (typeof object.firstAccess === 'object') + message.firstAccess = new $util.LongBits( + object.firstAccess.low >>> 0, + object.firstAccess.high >>> 0 + ).toNumber(); if (object.lastAccess != null) - if ($util.Long) - (message.lastAccess = $util.Long.fromValue(object.lastAccess)).unsigned = false; - else if (typeof object.lastAccess === "string") - message.lastAccess = parseInt(object.lastAccess, 10); - else if (typeof object.lastAccess === "number") - message.lastAccess = object.lastAccess; - else if (typeof object.lastAccess === "object") - message.lastAccess = new $util.LongBits(object.lastAccess.low >>> 0, object.lastAccess.high >>> 0).toNumber(); + if ($util.Long) (message.lastAccess = $util.Long.fromValue(object.lastAccess)).unsigned = false; + else if (typeof object.lastAccess === 'string') message.lastAccess = parseInt(object.lastAccess, 10); + else if (typeof object.lastAccess === 'number') message.lastAccess = object.lastAccess; + else if (typeof object.lastAccess === 'object') + message.lastAccess = new $util.LongBits( + object.lastAccess.low >>> 0, + object.lastAccess.high >>> 0 + ).toNumber(); if (object.publicKey != null) - if (typeof object.publicKey === "string") - $util.base64.decode(object.publicKey, message.publicKey = $util.newBuffer($util.base64.length(object.publicKey)), 0); - else if (object.publicKey.length >= 0) - message.publicKey = object.publicKey; - if (object.lockIp != null) - message.lockIp = Boolean(object.lockIp); - if (object.ipAddress != null) - message.ipAddress = String(object.ipAddress); + if (typeof object.publicKey === 'string') + $util.base64.decode( + object.publicKey, + (message.publicKey = $util.newBuffer($util.base64.length(object.publicKey))), + 0 + ); + else if (object.publicKey.length >= 0) message.publicKey = object.publicKey; + if (object.lockIp != null) message.lockIp = Boolean(object.lockIp); + if (object.ipAddress != null) message.ipAddress = String(object.ipAddress); if (object.firstAccessExpireOn != null) if ($util.Long) (message.firstAccessExpireOn = $util.Long.fromValue(object.firstAccessExpireOn)).unsigned = false; - else if (typeof object.firstAccessExpireOn === "string") + else if (typeof object.firstAccessExpireOn === 'string') message.firstAccessExpireOn = parseInt(object.firstAccessExpireOn, 10); - else if (typeof object.firstAccessExpireOn === "number") + else if (typeof object.firstAccessExpireOn === 'number') message.firstAccessExpireOn = object.firstAccessExpireOn; - else if (typeof object.firstAccessExpireOn === "object") - message.firstAccessExpireOn = new $util.LongBits(object.firstAccessExpireOn.low >>> 0, object.firstAccessExpireOn.high >>> 0).toNumber(); + else if (typeof object.firstAccessExpireOn === 'object') + message.firstAccessExpireOn = new $util.LongBits( + object.firstAccessExpireOn.low >>> 0, + object.firstAccessExpireOn.high >>> 0 + ).toNumber(); if (object.accessExpireOn != null) - if ($util.Long) - (message.accessExpireOn = $util.Long.fromValue(object.accessExpireOn)).unsigned = false; - else if (typeof object.accessExpireOn === "string") + if ($util.Long) (message.accessExpireOn = $util.Long.fromValue(object.accessExpireOn)).unsigned = false; + else if (typeof object.accessExpireOn === 'string') message.accessExpireOn = parseInt(object.accessExpireOn, 10); - else if (typeof object.accessExpireOn === "number") - message.accessExpireOn = object.accessExpireOn; - else if (typeof object.accessExpireOn === "object") - message.accessExpireOn = new $util.LongBits(object.accessExpireOn.low >>> 0, object.accessExpireOn.high >>> 0).toNumber(); + else if (typeof object.accessExpireOn === 'number') message.accessExpireOn = object.accessExpireOn; + else if (typeof object.accessExpireOn === 'object') + message.accessExpireOn = new $util.LongBits( + object.accessExpireOn.low >>> 0, + object.accessExpireOn.high >>> 0 + ).toNumber(); switch (object.appClientType) { - default: - if (typeof object.appClientType === "number") { - message.appClientType = object.appClientType; - break; - } - break; - case "NOT_USED": - case 0: - message.appClientType = 0; - break; - case "GENERAL": - case 1: - message.appClientType = 1; - break; - case "DISCOVERY_AND_ROTATION_CONTROLLER": - case 2: - message.appClientType = 2; - break; - case "KCM_CONTROLLER": - case 3: - message.appClientType = 3; - break; - case "SELF_DESTRUCT": - case 4: - message.appClientType = 4; - break; - } - if (object.canEdit != null) - message.canEdit = Boolean(object.canEdit); + default: + if (typeof object.appClientType === 'number') { + message.appClientType = object.appClientType; + break; + } + break; + case 'NOT_USED': + case 0: + message.appClientType = 0; + break; + case 'GENERAL': + case 1: + message.appClientType = 1; + break; + case 'DISCOVERY_AND_ROTATION_CONTROLLER': + case 2: + message.appClientType = 2; + break; + case 'KCM_CONTROLLER': + case 3: + message.appClientType = 3; + break; + case 'SELF_DESTRUCT': + case 4: + message.appClientType = 4; + break; + } + if (object.canEdit != null) message.canEdit = Boolean(object.canEdit); return message; }; @@ -41362,94 +42973,139 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ AppClient.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - object.id = ""; - if (options.bytes === String) - object.clientId = ""; + object.id = ''; + if (options.bytes === String) object.clientId = ''; else { object.clientId = []; - if (options.bytes !== Array) - object.clientId = $util.newBuffer(object.clientId); + if (options.bytes !== Array) object.clientId = $util.newBuffer(object.clientId); } if ($util.Long) { let long = new $util.Long(0, 0, false); - object.createdOn = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.createdOn = options.longs === String ? "0" : 0; + object.createdOn = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.createdOn = options.longs === String ? '0' : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.firstAccess = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.firstAccess = options.longs === String ? "0" : 0; + object.firstAccess = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.firstAccess = options.longs === String ? '0' : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.lastAccess = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.lastAccess = options.longs === String ? "0" : 0; - if (options.bytes === String) - object.publicKey = ""; + object.lastAccess = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.lastAccess = options.longs === String ? '0' : 0; + if (options.bytes === String) object.publicKey = ''; else { object.publicKey = []; - if (options.bytes !== Array) - object.publicKey = $util.newBuffer(object.publicKey); + if (options.bytes !== Array) object.publicKey = $util.newBuffer(object.publicKey); } object.lockIp = false; - object.ipAddress = ""; + object.ipAddress = ''; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.firstAccessExpireOn = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.firstAccessExpireOn = options.longs === String ? "0" : 0; + object.firstAccessExpireOn = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.firstAccessExpireOn = options.longs === String ? '0' : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.accessExpireOn = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.accessExpireOn = options.longs === String ? "0" : 0; - object.appClientType = options.enums === String ? "NOT_USED" : 0; + object.accessExpireOn = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.accessExpireOn = options.longs === String ? '0' : 0; + object.appClientType = options.enums === String ? 'NOT_USED' : 0; object.canEdit = false; } - if (message.id != null && message.hasOwnProperty("id")) - object.id = message.id; - if (message.clientId != null && message.hasOwnProperty("clientId")) - object.clientId = options.bytes === String ? $util.base64.encode(message.clientId, 0, message.clientId.length) : options.bytes === Array ? Array.prototype.slice.call(message.clientId) : message.clientId; - if (message.createdOn != null && message.hasOwnProperty("createdOn")) - if (typeof message.createdOn === "number") + if (message.id != null && message.hasOwnProperty('id')) object.id = message.id; + if (message.clientId != null && message.hasOwnProperty('clientId')) + object.clientId = + options.bytes === String + ? $util.base64.encode(message.clientId, 0, message.clientId.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.clientId) + : message.clientId; + if (message.createdOn != null && message.hasOwnProperty('createdOn')) + if (typeof message.createdOn === 'number') object.createdOn = options.longs === String ? String(message.createdOn) : message.createdOn; else - object.createdOn = options.longs === String ? $util.Long.prototype.toString.call(message.createdOn) : options.longs === Number ? new $util.LongBits(message.createdOn.low >>> 0, message.createdOn.high >>> 0).toNumber() : message.createdOn; - if (message.firstAccess != null && message.hasOwnProperty("firstAccess")) - if (typeof message.firstAccess === "number") + object.createdOn = + options.longs === String + ? $util.Long.prototype.toString.call(message.createdOn) + : options.longs === Number + ? new $util.LongBits(message.createdOn.low >>> 0, message.createdOn.high >>> 0).toNumber() + : message.createdOn; + if (message.firstAccess != null && message.hasOwnProperty('firstAccess')) + if (typeof message.firstAccess === 'number') object.firstAccess = options.longs === String ? String(message.firstAccess) : message.firstAccess; else - object.firstAccess = options.longs === String ? $util.Long.prototype.toString.call(message.firstAccess) : options.longs === Number ? new $util.LongBits(message.firstAccess.low >>> 0, message.firstAccess.high >>> 0).toNumber() : message.firstAccess; - if (message.lastAccess != null && message.hasOwnProperty("lastAccess")) - if (typeof message.lastAccess === "number") + object.firstAccess = + options.longs === String + ? $util.Long.prototype.toString.call(message.firstAccess) + : options.longs === Number + ? new $util.LongBits( + message.firstAccess.low >>> 0, + message.firstAccess.high >>> 0 + ).toNumber() + : message.firstAccess; + if (message.lastAccess != null && message.hasOwnProperty('lastAccess')) + if (typeof message.lastAccess === 'number') object.lastAccess = options.longs === String ? String(message.lastAccess) : message.lastAccess; else - object.lastAccess = options.longs === String ? $util.Long.prototype.toString.call(message.lastAccess) : options.longs === Number ? new $util.LongBits(message.lastAccess.low >>> 0, message.lastAccess.high >>> 0).toNumber() : message.lastAccess; - if (message.publicKey != null && message.hasOwnProperty("publicKey")) - object.publicKey = options.bytes === String ? $util.base64.encode(message.publicKey, 0, message.publicKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.publicKey) : message.publicKey; - if (message.lockIp != null && message.hasOwnProperty("lockIp")) - object.lockIp = message.lockIp; - if (message.ipAddress != null && message.hasOwnProperty("ipAddress")) - object.ipAddress = message.ipAddress; - if (message.firstAccessExpireOn != null && message.hasOwnProperty("firstAccessExpireOn")) - if (typeof message.firstAccessExpireOn === "number") - object.firstAccessExpireOn = options.longs === String ? String(message.firstAccessExpireOn) : message.firstAccessExpireOn; + object.lastAccess = + options.longs === String + ? $util.Long.prototype.toString.call(message.lastAccess) + : options.longs === Number + ? new $util.LongBits( + message.lastAccess.low >>> 0, + message.lastAccess.high >>> 0 + ).toNumber() + : message.lastAccess; + if (message.publicKey != null && message.hasOwnProperty('publicKey')) + object.publicKey = + options.bytes === String + ? $util.base64.encode(message.publicKey, 0, message.publicKey.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.publicKey) + : message.publicKey; + if (message.lockIp != null && message.hasOwnProperty('lockIp')) object.lockIp = message.lockIp; + if (message.ipAddress != null && message.hasOwnProperty('ipAddress')) object.ipAddress = message.ipAddress; + if (message.firstAccessExpireOn != null && message.hasOwnProperty('firstAccessExpireOn')) + if (typeof message.firstAccessExpireOn === 'number') + object.firstAccessExpireOn = + options.longs === String ? String(message.firstAccessExpireOn) : message.firstAccessExpireOn; else - object.firstAccessExpireOn = options.longs === String ? $util.Long.prototype.toString.call(message.firstAccessExpireOn) : options.longs === Number ? new $util.LongBits(message.firstAccessExpireOn.low >>> 0, message.firstAccessExpireOn.high >>> 0).toNumber() : message.firstAccessExpireOn; - if (message.accessExpireOn != null && message.hasOwnProperty("accessExpireOn")) - if (typeof message.accessExpireOn === "number") - object.accessExpireOn = options.longs === String ? String(message.accessExpireOn) : message.accessExpireOn; + object.firstAccessExpireOn = + options.longs === String + ? $util.Long.prototype.toString.call(message.firstAccessExpireOn) + : options.longs === Number + ? new $util.LongBits( + message.firstAccessExpireOn.low >>> 0, + message.firstAccessExpireOn.high >>> 0 + ).toNumber() + : message.firstAccessExpireOn; + if (message.accessExpireOn != null && message.hasOwnProperty('accessExpireOn')) + if (typeof message.accessExpireOn === 'number') + object.accessExpireOn = + options.longs === String ? String(message.accessExpireOn) : message.accessExpireOn; else - object.accessExpireOn = options.longs === String ? $util.Long.prototype.toString.call(message.accessExpireOn) : options.longs === Number ? new $util.LongBits(message.accessExpireOn.low >>> 0, message.accessExpireOn.high >>> 0).toNumber() : message.accessExpireOn; - if (message.appClientType != null && message.hasOwnProperty("appClientType")) - object.appClientType = options.enums === String ? $root.Enterprise.AppClientType[message.appClientType] === undefined ? message.appClientType : $root.Enterprise.AppClientType[message.appClientType] : message.appClientType; - if (message.canEdit != null && message.hasOwnProperty("canEdit")) - object.canEdit = message.canEdit; + object.accessExpireOn = + options.longs === String + ? $util.Long.prototype.toString.call(message.accessExpireOn) + : options.longs === Number + ? new $util.LongBits( + message.accessExpireOn.low >>> 0, + message.accessExpireOn.high >>> 0 + ).toNumber() + : message.accessExpireOn; + if (message.appClientType != null && message.hasOwnProperty('appClientType')) + object.appClientType = + options.enums === String + ? $root.Enterprise.AppClientType[message.appClientType] === undefined + ? message.appClientType + : $root.Enterprise.AppClientType[message.appClientType] + : message.appClientType; + if (message.canEdit != null && message.hasOwnProperty('canEdit')) object.canEdit = message.canEdit; return object; }; @@ -41474,16 +43130,15 @@ export const Authentication = $root.Authentication = (() => { */ AppClient.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.AppClient"; + return typeUrlPrefix + '/Authentication.AppClient'; }; return AppClient; })(); - Authentication.GetAppInfoRequest = (function() { - + Authentication.GetAppInfoRequest = (function () { /** * Properties of a GetAppInfoRequest. * @memberof Authentication @@ -41503,8 +43158,7 @@ export const Authentication = $root.Authentication = (() => { this.appRecordUid = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -41537,11 +43191,10 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ GetAppInfoRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.appRecordUid != null && message.appRecordUid.length) for (let i = 0; i < message.appRecordUid.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.appRecordUid[i]); + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.appRecordUid[i]); return writer; }; @@ -41570,21 +43223,20 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ GetAppInfoRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.GetAppInfoRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.GetAppInfoRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (!(message.appRecordUid && message.appRecordUid.length)) - message.appRecordUid = []; + case 1: { + if (!(message.appRecordUid && message.appRecordUid.length)) message.appRecordUid = []; message.appRecordUid.push(reader.bytes()); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -41601,8 +43253,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ GetAppInfoRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -41615,14 +43266,17 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ GetAppInfoRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.appRecordUid != null && message.hasOwnProperty("appRecordUid")) { - if (!Array.isArray(message.appRecordUid)) - return "appRecordUid: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.appRecordUid != null && message.hasOwnProperty('appRecordUid')) { + if (!Array.isArray(message.appRecordUid)) return 'appRecordUid: array expected'; for (let i = 0; i < message.appRecordUid.length; ++i) - if (!(message.appRecordUid[i] && typeof message.appRecordUid[i].length === "number" || $util.isString(message.appRecordUid[i]))) - return "appRecordUid: buffer[] expected"; + if ( + !( + (message.appRecordUid[i] && typeof message.appRecordUid[i].length === 'number') || + $util.isString(message.appRecordUid[i]) + ) + ) + return 'appRecordUid: buffer[] expected'; } return null; }; @@ -41636,18 +43290,20 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.GetAppInfoRequest} GetAppInfoRequest */ GetAppInfoRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.GetAppInfoRequest) - return object; + if (object instanceof $root.Authentication.GetAppInfoRequest) return object; let message = new $root.Authentication.GetAppInfoRequest(); if (object.appRecordUid) { if (!Array.isArray(object.appRecordUid)) - throw TypeError(".Authentication.GetAppInfoRequest.appRecordUid: array expected"); + throw TypeError('.Authentication.GetAppInfoRequest.appRecordUid: array expected'); message.appRecordUid = []; for (let i = 0; i < object.appRecordUid.length; ++i) - if (typeof object.appRecordUid[i] === "string") - $util.base64.decode(object.appRecordUid[i], message.appRecordUid[i] = $util.newBuffer($util.base64.length(object.appRecordUid[i])), 0); - else if (object.appRecordUid[i].length >= 0) - message.appRecordUid[i] = object.appRecordUid[i]; + if (typeof object.appRecordUid[i] === 'string') + $util.base64.decode( + object.appRecordUid[i], + (message.appRecordUid[i] = $util.newBuffer($util.base64.length(object.appRecordUid[i]))), + 0 + ); + else if (object.appRecordUid[i].length >= 0) message.appRecordUid[i] = object.appRecordUid[i]; } return message; }; @@ -41662,15 +43318,18 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ GetAppInfoRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.appRecordUid = []; + if (options.arrays || options.defaults) object.appRecordUid = []; if (message.appRecordUid && message.appRecordUid.length) { object.appRecordUid = []; for (let j = 0; j < message.appRecordUid.length; ++j) - object.appRecordUid[j] = options.bytes === String ? $util.base64.encode(message.appRecordUid[j], 0, message.appRecordUid[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.appRecordUid[j]) : message.appRecordUid[j]; + object.appRecordUid[j] = + options.bytes === String + ? $util.base64.encode(message.appRecordUid[j], 0, message.appRecordUid[j].length) + : options.bytes === Array + ? Array.prototype.slice.call(message.appRecordUid[j]) + : message.appRecordUid[j]; } return object; }; @@ -41696,16 +43355,15 @@ export const Authentication = $root.Authentication = (() => { */ GetAppInfoRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.GetAppInfoRequest"; + return typeUrlPrefix + '/Authentication.GetAppInfoRequest'; }; return GetAppInfoRequest; })(); - Authentication.AppInfo = (function() { - + Authentication.AppInfo = (function () { /** * Properties of an AppInfo. * @memberof Authentication @@ -41729,8 +43387,7 @@ export const Authentication = $root.Authentication = (() => { this.clients = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -41787,18 +43444,23 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ AppInfo.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.appRecordUid != null && Object.hasOwnProperty.call(message, "appRecordUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.appRecordUid); + if (!writer) writer = $Writer.create(); + if (message.appRecordUid != null && Object.hasOwnProperty.call(message, 'appRecordUid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.appRecordUid); if (message.shares != null && message.shares.length) for (let i = 0; i < message.shares.length; ++i) - $root.Authentication.AppShare.encode(message.shares[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + $root.Authentication.AppShare.encode( + message.shares[i], + writer.uint32(/* id 2, wireType 2 =*/ 18).fork() + ).ldelim(); if (message.clients != null && message.clients.length) for (let i = 0; i < message.clients.length; ++i) - $root.Authentication.AppClient.encode(message.clients[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.isExternalShare != null && Object.hasOwnProperty.call(message, "isExternalShare")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.isExternalShare); + $root.Authentication.AppClient.encode( + message.clients[i], + writer.uint32(/* id 3, wireType 2 =*/ 26).fork() + ).ldelim(); + if (message.isExternalShare != null && Object.hasOwnProperty.call(message, 'isExternalShare')) + writer.uint32(/* id 4, wireType 0 =*/ 32).bool(message.isExternalShare); return writer; }; @@ -41827,35 +43489,33 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ AppInfo.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.AppInfo(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.AppInfo(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.appRecordUid = reader.bytes(); break; } - case 2: { - if (!(message.shares && message.shares.length)) - message.shares = []; + case 2: { + if (!(message.shares && message.shares.length)) message.shares = []; message.shares.push($root.Authentication.AppShare.decode(reader, reader.uint32())); break; } - case 3: { - if (!(message.clients && message.clients.length)) - message.clients = []; + case 3: { + if (!(message.clients && message.clients.length)) message.clients = []; message.clients.push($root.Authentication.AppClient.decode(reader, reader.uint32())); break; } - case 4: { + case 4: { message.isExternalShare = reader.bool(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -41872,8 +43532,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ AppInfo.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -41886,32 +43545,31 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ AppInfo.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.appRecordUid != null && message.hasOwnProperty("appRecordUid")) - if (!(message.appRecordUid && typeof message.appRecordUid.length === "number" || $util.isString(message.appRecordUid))) - return "appRecordUid: buffer expected"; - if (message.shares != null && message.hasOwnProperty("shares")) { - if (!Array.isArray(message.shares)) - return "shares: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.appRecordUid != null && message.hasOwnProperty('appRecordUid')) + if ( + !( + (message.appRecordUid && typeof message.appRecordUid.length === 'number') || + $util.isString(message.appRecordUid) + ) + ) + return 'appRecordUid: buffer expected'; + if (message.shares != null && message.hasOwnProperty('shares')) { + if (!Array.isArray(message.shares)) return 'shares: array expected'; for (let i = 0; i < message.shares.length; ++i) { let error = $root.Authentication.AppShare.verify(message.shares[i]); - if (error) - return "shares." + error; + if (error) return 'shares.' + error; } } - if (message.clients != null && message.hasOwnProperty("clients")) { - if (!Array.isArray(message.clients)) - return "clients: array expected"; + if (message.clients != null && message.hasOwnProperty('clients')) { + if (!Array.isArray(message.clients)) return 'clients: array expected'; for (let i = 0; i < message.clients.length; ++i) { let error = $root.Authentication.AppClient.verify(message.clients[i]); - if (error) - return "clients." + error; + if (error) return 'clients.' + error; } } - if (message.isExternalShare != null && message.hasOwnProperty("isExternalShare")) - if (typeof message.isExternalShare !== "boolean") - return "isExternalShare: boolean expected"; + if (message.isExternalShare != null && message.hasOwnProperty('isExternalShare')) + if (typeof message.isExternalShare !== 'boolean') return 'isExternalShare: boolean expected'; return null; }; @@ -41924,36 +43582,35 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.AppInfo} AppInfo */ AppInfo.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.AppInfo) - return object; + if (object instanceof $root.Authentication.AppInfo) return object; let message = new $root.Authentication.AppInfo(); if (object.appRecordUid != null) - if (typeof object.appRecordUid === "string") - $util.base64.decode(object.appRecordUid, message.appRecordUid = $util.newBuffer($util.base64.length(object.appRecordUid)), 0); - else if (object.appRecordUid.length >= 0) - message.appRecordUid = object.appRecordUid; + if (typeof object.appRecordUid === 'string') + $util.base64.decode( + object.appRecordUid, + (message.appRecordUid = $util.newBuffer($util.base64.length(object.appRecordUid))), + 0 + ); + else if (object.appRecordUid.length >= 0) message.appRecordUid = object.appRecordUid; if (object.shares) { - if (!Array.isArray(object.shares)) - throw TypeError(".Authentication.AppInfo.shares: array expected"); + if (!Array.isArray(object.shares)) throw TypeError('.Authentication.AppInfo.shares: array expected'); message.shares = []; for (let i = 0; i < object.shares.length; ++i) { - if (typeof object.shares[i] !== "object") - throw TypeError(".Authentication.AppInfo.shares: object expected"); + if (typeof object.shares[i] !== 'object') + throw TypeError('.Authentication.AppInfo.shares: object expected'); message.shares[i] = $root.Authentication.AppShare.fromObject(object.shares[i]); } } if (object.clients) { - if (!Array.isArray(object.clients)) - throw TypeError(".Authentication.AppInfo.clients: array expected"); + if (!Array.isArray(object.clients)) throw TypeError('.Authentication.AppInfo.clients: array expected'); message.clients = []; for (let i = 0; i < object.clients.length; ++i) { - if (typeof object.clients[i] !== "object") - throw TypeError(".Authentication.AppInfo.clients: object expected"); + if (typeof object.clients[i] !== 'object') + throw TypeError('.Authentication.AppInfo.clients: object expected'); message.clients[i] = $root.Authentication.AppClient.fromObject(object.clients[i]); } } - if (object.isExternalShare != null) - message.isExternalShare = Boolean(object.isExternalShare); + if (object.isExternalShare != null) message.isExternalShare = Boolean(object.isExternalShare); return message; }; @@ -41967,25 +43624,27 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ AppInfo.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.arrays || options.defaults) { object.shares = []; object.clients = []; } if (options.defaults) { - if (options.bytes === String) - object.appRecordUid = ""; + if (options.bytes === String) object.appRecordUid = ''; else { object.appRecordUid = []; - if (options.bytes !== Array) - object.appRecordUid = $util.newBuffer(object.appRecordUid); + if (options.bytes !== Array) object.appRecordUid = $util.newBuffer(object.appRecordUid); } object.isExternalShare = false; } - if (message.appRecordUid != null && message.hasOwnProperty("appRecordUid")) - object.appRecordUid = options.bytes === String ? $util.base64.encode(message.appRecordUid, 0, message.appRecordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.appRecordUid) : message.appRecordUid; + if (message.appRecordUid != null && message.hasOwnProperty('appRecordUid')) + object.appRecordUid = + options.bytes === String + ? $util.base64.encode(message.appRecordUid, 0, message.appRecordUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.appRecordUid) + : message.appRecordUid; if (message.shares && message.shares.length) { object.shares = []; for (let j = 0; j < message.shares.length; ++j) @@ -41996,7 +43655,7 @@ export const Authentication = $root.Authentication = (() => { for (let j = 0; j < message.clients.length; ++j) object.clients[j] = $root.Authentication.AppClient.toObject(message.clients[j], options); } - if (message.isExternalShare != null && message.hasOwnProperty("isExternalShare")) + if (message.isExternalShare != null && message.hasOwnProperty('isExternalShare')) object.isExternalShare = message.isExternalShare; return object; }; @@ -42022,16 +43681,15 @@ export const Authentication = $root.Authentication = (() => { */ AppInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.AppInfo"; + return typeUrlPrefix + '/Authentication.AppInfo'; }; return AppInfo; })(); - Authentication.GetAppInfoResponse = (function() { - + Authentication.GetAppInfoResponse = (function () { /** * Properties of a GetAppInfoResponse. * @memberof Authentication @@ -42051,8 +43709,7 @@ export const Authentication = $root.Authentication = (() => { this.appInfo = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -42085,11 +43742,13 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ GetAppInfoResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.appInfo != null && message.appInfo.length) for (let i = 0; i < message.appInfo.length; ++i) - $root.Authentication.AppInfo.encode(message.appInfo[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.Authentication.AppInfo.encode( + message.appInfo[i], + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); return writer; }; @@ -42118,21 +43777,20 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ GetAppInfoResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.GetAppInfoResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.GetAppInfoResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (!(message.appInfo && message.appInfo.length)) - message.appInfo = []; + case 1: { + if (!(message.appInfo && message.appInfo.length)) message.appInfo = []; message.appInfo.push($root.Authentication.AppInfo.decode(reader, reader.uint32())); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -42149,8 +43807,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ GetAppInfoResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -42163,15 +43820,12 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ GetAppInfoResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.appInfo != null && message.hasOwnProperty("appInfo")) { - if (!Array.isArray(message.appInfo)) - return "appInfo: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.appInfo != null && message.hasOwnProperty('appInfo')) { + if (!Array.isArray(message.appInfo)) return 'appInfo: array expected'; for (let i = 0; i < message.appInfo.length; ++i) { let error = $root.Authentication.AppInfo.verify(message.appInfo[i]); - if (error) - return "appInfo." + error; + if (error) return 'appInfo.' + error; } } return null; @@ -42186,16 +43840,15 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.GetAppInfoResponse} GetAppInfoResponse */ GetAppInfoResponse.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.GetAppInfoResponse) - return object; + if (object instanceof $root.Authentication.GetAppInfoResponse) return object; let message = new $root.Authentication.GetAppInfoResponse(); if (object.appInfo) { if (!Array.isArray(object.appInfo)) - throw TypeError(".Authentication.GetAppInfoResponse.appInfo: array expected"); + throw TypeError('.Authentication.GetAppInfoResponse.appInfo: array expected'); message.appInfo = []; for (let i = 0; i < object.appInfo.length; ++i) { - if (typeof object.appInfo[i] !== "object") - throw TypeError(".Authentication.GetAppInfoResponse.appInfo: object expected"); + if (typeof object.appInfo[i] !== 'object') + throw TypeError('.Authentication.GetAppInfoResponse.appInfo: object expected'); message.appInfo[i] = $root.Authentication.AppInfo.fromObject(object.appInfo[i]); } } @@ -42212,11 +43865,9 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ GetAppInfoResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.appInfo = []; + if (options.arrays || options.defaults) object.appInfo = []; if (message.appInfo && message.appInfo.length) { object.appInfo = []; for (let j = 0; j < message.appInfo.length; ++j) @@ -42246,16 +43897,15 @@ export const Authentication = $root.Authentication = (() => { */ GetAppInfoResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.GetAppInfoResponse"; + return typeUrlPrefix + '/Authentication.GetAppInfoResponse'; }; return GetAppInfoResponse; })(); - Authentication.ApplicationSummary = (function() { - + Authentication.ApplicationSummary = (function () { /** * Properties of an ApplicationSummary. * @memberof Authentication @@ -42282,8 +43932,7 @@ export const Authentication = $root.Authentication = (() => { function ApplicationSummary(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -42300,7 +43949,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.ApplicationSummary * @instance */ - ApplicationSummary.prototype.lastAccess = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + ApplicationSummary.prototype.lastAccess = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * ApplicationSummary recordShares. @@ -42348,7 +43997,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.ApplicationSummary * @instance */ - ApplicationSummary.prototype.username = ""; + ApplicationSummary.prototype.username = ''; /** * ApplicationSummary appData. @@ -42380,26 +44029,25 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ ApplicationSummary.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.appRecordUid != null && Object.hasOwnProperty.call(message, "appRecordUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.appRecordUid); - if (message.lastAccess != null && Object.hasOwnProperty.call(message, "lastAccess")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.lastAccess); - if (message.recordShares != null && Object.hasOwnProperty.call(message, "recordShares")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.recordShares); - if (message.folderShares != null && Object.hasOwnProperty.call(message, "folderShares")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.folderShares); - if (message.folderRecords != null && Object.hasOwnProperty.call(message, "folderRecords")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.folderRecords); - if (message.clientCount != null && Object.hasOwnProperty.call(message, "clientCount")) - writer.uint32(/* id 6, wireType 0 =*/48).int32(message.clientCount); - if (message.expiredClientCount != null && Object.hasOwnProperty.call(message, "expiredClientCount")) - writer.uint32(/* id 7, wireType 0 =*/56).int32(message.expiredClientCount); - if (message.username != null && Object.hasOwnProperty.call(message, "username")) - writer.uint32(/* id 8, wireType 2 =*/66).string(message.username); - if (message.appData != null && Object.hasOwnProperty.call(message, "appData")) - writer.uint32(/* id 9, wireType 2 =*/74).bytes(message.appData); + if (!writer) writer = $Writer.create(); + if (message.appRecordUid != null && Object.hasOwnProperty.call(message, 'appRecordUid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.appRecordUid); + if (message.lastAccess != null && Object.hasOwnProperty.call(message, 'lastAccess')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int64(message.lastAccess); + if (message.recordShares != null && Object.hasOwnProperty.call(message, 'recordShares')) + writer.uint32(/* id 3, wireType 0 =*/ 24).int32(message.recordShares); + if (message.folderShares != null && Object.hasOwnProperty.call(message, 'folderShares')) + writer.uint32(/* id 4, wireType 0 =*/ 32).int32(message.folderShares); + if (message.folderRecords != null && Object.hasOwnProperty.call(message, 'folderRecords')) + writer.uint32(/* id 5, wireType 0 =*/ 40).int32(message.folderRecords); + if (message.clientCount != null && Object.hasOwnProperty.call(message, 'clientCount')) + writer.uint32(/* id 6, wireType 0 =*/ 48).int32(message.clientCount); + if (message.expiredClientCount != null && Object.hasOwnProperty.call(message, 'expiredClientCount')) + writer.uint32(/* id 7, wireType 0 =*/ 56).int32(message.expiredClientCount); + if (message.username != null && Object.hasOwnProperty.call(message, 'username')) + writer.uint32(/* id 8, wireType 2 =*/ 66).string(message.username); + if (message.appData != null && Object.hasOwnProperty.call(message, 'appData')) + writer.uint32(/* id 9, wireType 2 =*/ 74).bytes(message.appData); return writer; }; @@ -42428,51 +44076,51 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ApplicationSummary.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.ApplicationSummary(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.ApplicationSummary(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.appRecordUid = reader.bytes(); break; } - case 2: { + case 2: { message.lastAccess = reader.int64(); break; } - case 3: { + case 3: { message.recordShares = reader.int32(); break; } - case 4: { + case 4: { message.folderShares = reader.int32(); break; } - case 5: { + case 5: { message.folderRecords = reader.int32(); break; } - case 6: { + case 6: { message.clientCount = reader.int32(); break; } - case 7: { + case 7: { message.expiredClientCount = reader.int32(); break; } - case 8: { + case 8: { message.username = reader.string(); break; } - case 9: { + case 9: { message.appData = reader.bytes(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -42489,8 +44137,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ApplicationSummary.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -42503,35 +44150,45 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ ApplicationSummary.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.appRecordUid != null && message.hasOwnProperty("appRecordUid")) - if (!(message.appRecordUid && typeof message.appRecordUid.length === "number" || $util.isString(message.appRecordUid))) - return "appRecordUid: buffer expected"; - if (message.lastAccess != null && message.hasOwnProperty("lastAccess")) - if (!$util.isInteger(message.lastAccess) && !(message.lastAccess && $util.isInteger(message.lastAccess.low) && $util.isInteger(message.lastAccess.high))) - return "lastAccess: integer|Long expected"; - if (message.recordShares != null && message.hasOwnProperty("recordShares")) - if (!$util.isInteger(message.recordShares)) - return "recordShares: integer expected"; - if (message.folderShares != null && message.hasOwnProperty("folderShares")) - if (!$util.isInteger(message.folderShares)) - return "folderShares: integer expected"; - if (message.folderRecords != null && message.hasOwnProperty("folderRecords")) - if (!$util.isInteger(message.folderRecords)) - return "folderRecords: integer expected"; - if (message.clientCount != null && message.hasOwnProperty("clientCount")) - if (!$util.isInteger(message.clientCount)) - return "clientCount: integer expected"; - if (message.expiredClientCount != null && message.hasOwnProperty("expiredClientCount")) - if (!$util.isInteger(message.expiredClientCount)) - return "expiredClientCount: integer expected"; - if (message.username != null && message.hasOwnProperty("username")) - if (!$util.isString(message.username)) - return "username: string expected"; - if (message.appData != null && message.hasOwnProperty("appData")) - if (!(message.appData && typeof message.appData.length === "number" || $util.isString(message.appData))) - return "appData: buffer expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.appRecordUid != null && message.hasOwnProperty('appRecordUid')) + if ( + !( + (message.appRecordUid && typeof message.appRecordUid.length === 'number') || + $util.isString(message.appRecordUid) + ) + ) + return 'appRecordUid: buffer expected'; + if (message.lastAccess != null && message.hasOwnProperty('lastAccess')) + if ( + !$util.isInteger(message.lastAccess) && + !( + message.lastAccess && + $util.isInteger(message.lastAccess.low) && + $util.isInteger(message.lastAccess.high) + ) + ) + return 'lastAccess: integer|Long expected'; + if (message.recordShares != null && message.hasOwnProperty('recordShares')) + if (!$util.isInteger(message.recordShares)) return 'recordShares: integer expected'; + if (message.folderShares != null && message.hasOwnProperty('folderShares')) + if (!$util.isInteger(message.folderShares)) return 'folderShares: integer expected'; + if (message.folderRecords != null && message.hasOwnProperty('folderRecords')) + if (!$util.isInteger(message.folderRecords)) return 'folderRecords: integer expected'; + if (message.clientCount != null && message.hasOwnProperty('clientCount')) + if (!$util.isInteger(message.clientCount)) return 'clientCount: integer expected'; + if (message.expiredClientCount != null && message.hasOwnProperty('expiredClientCount')) + if (!$util.isInteger(message.expiredClientCount)) return 'expiredClientCount: integer expected'; + if (message.username != null && message.hasOwnProperty('username')) + if (!$util.isString(message.username)) return 'username: string expected'; + if (message.appData != null && message.hasOwnProperty('appData')) + if ( + !( + (message.appData && typeof message.appData.length === 'number') || + $util.isString(message.appData) + ) + ) + return 'appData: buffer expected'; return null; }; @@ -42544,40 +44201,39 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.ApplicationSummary} ApplicationSummary */ ApplicationSummary.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.ApplicationSummary) - return object; + if (object instanceof $root.Authentication.ApplicationSummary) return object; let message = new $root.Authentication.ApplicationSummary(); if (object.appRecordUid != null) - if (typeof object.appRecordUid === "string") - $util.base64.decode(object.appRecordUid, message.appRecordUid = $util.newBuffer($util.base64.length(object.appRecordUid)), 0); - else if (object.appRecordUid.length >= 0) - message.appRecordUid = object.appRecordUid; + if (typeof object.appRecordUid === 'string') + $util.base64.decode( + object.appRecordUid, + (message.appRecordUid = $util.newBuffer($util.base64.length(object.appRecordUid))), + 0 + ); + else if (object.appRecordUid.length >= 0) message.appRecordUid = object.appRecordUid; if (object.lastAccess != null) - if ($util.Long) - (message.lastAccess = $util.Long.fromValue(object.lastAccess)).unsigned = false; - else if (typeof object.lastAccess === "string") - message.lastAccess = parseInt(object.lastAccess, 10); - else if (typeof object.lastAccess === "number") - message.lastAccess = object.lastAccess; - else if (typeof object.lastAccess === "object") - message.lastAccess = new $util.LongBits(object.lastAccess.low >>> 0, object.lastAccess.high >>> 0).toNumber(); - if (object.recordShares != null) - message.recordShares = object.recordShares | 0; - if (object.folderShares != null) - message.folderShares = object.folderShares | 0; - if (object.folderRecords != null) - message.folderRecords = object.folderRecords | 0; - if (object.clientCount != null) - message.clientCount = object.clientCount | 0; - if (object.expiredClientCount != null) - message.expiredClientCount = object.expiredClientCount | 0; - if (object.username != null) - message.username = String(object.username); + if ($util.Long) (message.lastAccess = $util.Long.fromValue(object.lastAccess)).unsigned = false; + else if (typeof object.lastAccess === 'string') message.lastAccess = parseInt(object.lastAccess, 10); + else if (typeof object.lastAccess === 'number') message.lastAccess = object.lastAccess; + else if (typeof object.lastAccess === 'object') + message.lastAccess = new $util.LongBits( + object.lastAccess.low >>> 0, + object.lastAccess.high >>> 0 + ).toNumber(); + if (object.recordShares != null) message.recordShares = object.recordShares | 0; + if (object.folderShares != null) message.folderShares = object.folderShares | 0; + if (object.folderRecords != null) message.folderRecords = object.folderRecords | 0; + if (object.clientCount != null) message.clientCount = object.clientCount | 0; + if (object.expiredClientCount != null) message.expiredClientCount = object.expiredClientCount | 0; + if (object.username != null) message.username = String(object.username); if (object.appData != null) - if (typeof object.appData === "string") - $util.base64.decode(object.appData, message.appData = $util.newBuffer($util.base64.length(object.appData)), 0); - else if (object.appData.length >= 0) - message.appData = object.appData; + if (typeof object.appData === 'string') + $util.base64.decode( + object.appData, + (message.appData = $util.newBuffer($util.base64.length(object.appData))), + 0 + ); + else if (object.appData.length >= 0) message.appData = object.appData; return message; }; @@ -42591,57 +44247,69 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ ApplicationSummary.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.appRecordUid = ""; + if (options.bytes === String) object.appRecordUid = ''; else { object.appRecordUid = []; - if (options.bytes !== Array) - object.appRecordUid = $util.newBuffer(object.appRecordUid); + if (options.bytes !== Array) object.appRecordUid = $util.newBuffer(object.appRecordUid); } if ($util.Long) { let long = new $util.Long(0, 0, false); - object.lastAccess = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.lastAccess = options.longs === String ? "0" : 0; + object.lastAccess = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.lastAccess = options.longs === String ? '0' : 0; object.recordShares = 0; object.folderShares = 0; object.folderRecords = 0; object.clientCount = 0; object.expiredClientCount = 0; - object.username = ""; - if (options.bytes === String) - object.appData = ""; + object.username = ''; + if (options.bytes === String) object.appData = ''; else { object.appData = []; - if (options.bytes !== Array) - object.appData = $util.newBuffer(object.appData); - } - } - if (message.appRecordUid != null && message.hasOwnProperty("appRecordUid")) - object.appRecordUid = options.bytes === String ? $util.base64.encode(message.appRecordUid, 0, message.appRecordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.appRecordUid) : message.appRecordUid; - if (message.lastAccess != null && message.hasOwnProperty("lastAccess")) - if (typeof message.lastAccess === "number") + if (options.bytes !== Array) object.appData = $util.newBuffer(object.appData); + } + } + if (message.appRecordUid != null && message.hasOwnProperty('appRecordUid')) + object.appRecordUid = + options.bytes === String + ? $util.base64.encode(message.appRecordUid, 0, message.appRecordUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.appRecordUid) + : message.appRecordUid; + if (message.lastAccess != null && message.hasOwnProperty('lastAccess')) + if (typeof message.lastAccess === 'number') object.lastAccess = options.longs === String ? String(message.lastAccess) : message.lastAccess; else - object.lastAccess = options.longs === String ? $util.Long.prototype.toString.call(message.lastAccess) : options.longs === Number ? new $util.LongBits(message.lastAccess.low >>> 0, message.lastAccess.high >>> 0).toNumber() : message.lastAccess; - if (message.recordShares != null && message.hasOwnProperty("recordShares")) + object.lastAccess = + options.longs === String + ? $util.Long.prototype.toString.call(message.lastAccess) + : options.longs === Number + ? new $util.LongBits( + message.lastAccess.low >>> 0, + message.lastAccess.high >>> 0 + ).toNumber() + : message.lastAccess; + if (message.recordShares != null && message.hasOwnProperty('recordShares')) object.recordShares = message.recordShares; - if (message.folderShares != null && message.hasOwnProperty("folderShares")) + if (message.folderShares != null && message.hasOwnProperty('folderShares')) object.folderShares = message.folderShares; - if (message.folderRecords != null && message.hasOwnProperty("folderRecords")) + if (message.folderRecords != null && message.hasOwnProperty('folderRecords')) object.folderRecords = message.folderRecords; - if (message.clientCount != null && message.hasOwnProperty("clientCount")) + if (message.clientCount != null && message.hasOwnProperty('clientCount')) object.clientCount = message.clientCount; - if (message.expiredClientCount != null && message.hasOwnProperty("expiredClientCount")) + if (message.expiredClientCount != null && message.hasOwnProperty('expiredClientCount')) object.expiredClientCount = message.expiredClientCount; - if (message.username != null && message.hasOwnProperty("username")) - object.username = message.username; - if (message.appData != null && message.hasOwnProperty("appData")) - object.appData = options.bytes === String ? $util.base64.encode(message.appData, 0, message.appData.length) : options.bytes === Array ? Array.prototype.slice.call(message.appData) : message.appData; + if (message.username != null && message.hasOwnProperty('username')) object.username = message.username; + if (message.appData != null && message.hasOwnProperty('appData')) + object.appData = + options.bytes === String + ? $util.base64.encode(message.appData, 0, message.appData.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.appData) + : message.appData; return object; }; @@ -42666,16 +44334,15 @@ export const Authentication = $root.Authentication = (() => { */ ApplicationSummary.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.ApplicationSummary"; + return typeUrlPrefix + '/Authentication.ApplicationSummary'; }; return ApplicationSummary; })(); - Authentication.GetApplicationsSummaryResponse = (function() { - + Authentication.GetApplicationsSummaryResponse = (function () { /** * Properties of a GetApplicationsSummaryResponse. * @memberof Authentication @@ -42695,8 +44362,7 @@ export const Authentication = $root.Authentication = (() => { this.applicationSummary = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -42729,11 +44395,13 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ GetApplicationsSummaryResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.applicationSummary != null && message.applicationSummary.length) for (let i = 0; i < message.applicationSummary.length; ++i) - $root.Authentication.ApplicationSummary.encode(message.applicationSummary[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.Authentication.ApplicationSummary.encode( + message.applicationSummary[i], + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); return writer; }; @@ -42762,21 +44430,23 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ GetApplicationsSummaryResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.GetApplicationsSummaryResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.GetApplicationsSummaryResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { if (!(message.applicationSummary && message.applicationSummary.length)) message.applicationSummary = []; - message.applicationSummary.push($root.Authentication.ApplicationSummary.decode(reader, reader.uint32())); + message.applicationSummary.push( + $root.Authentication.ApplicationSummary.decode(reader, reader.uint32()) + ); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -42793,8 +44463,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ GetApplicationsSummaryResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -42807,15 +44476,12 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ GetApplicationsSummaryResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.applicationSummary != null && message.hasOwnProperty("applicationSummary")) { - if (!Array.isArray(message.applicationSummary)) - return "applicationSummary: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.applicationSummary != null && message.hasOwnProperty('applicationSummary')) { + if (!Array.isArray(message.applicationSummary)) return 'applicationSummary: array expected'; for (let i = 0; i < message.applicationSummary.length; ++i) { let error = $root.Authentication.ApplicationSummary.verify(message.applicationSummary[i]); - if (error) - return "applicationSummary." + error; + if (error) return 'applicationSummary.' + error; } } return null; @@ -42830,17 +44496,22 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.GetApplicationsSummaryResponse} GetApplicationsSummaryResponse */ GetApplicationsSummaryResponse.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.GetApplicationsSummaryResponse) - return object; + if (object instanceof $root.Authentication.GetApplicationsSummaryResponse) return object; let message = new $root.Authentication.GetApplicationsSummaryResponse(); if (object.applicationSummary) { if (!Array.isArray(object.applicationSummary)) - throw TypeError(".Authentication.GetApplicationsSummaryResponse.applicationSummary: array expected"); + throw TypeError( + '.Authentication.GetApplicationsSummaryResponse.applicationSummary: array expected' + ); message.applicationSummary = []; for (let i = 0; i < object.applicationSummary.length; ++i) { - if (typeof object.applicationSummary[i] !== "object") - throw TypeError(".Authentication.GetApplicationsSummaryResponse.applicationSummary: object expected"); - message.applicationSummary[i] = $root.Authentication.ApplicationSummary.fromObject(object.applicationSummary[i]); + if (typeof object.applicationSummary[i] !== 'object') + throw TypeError( + '.Authentication.GetApplicationsSummaryResponse.applicationSummary: object expected' + ); + message.applicationSummary[i] = $root.Authentication.ApplicationSummary.fromObject( + object.applicationSummary[i] + ); } } return message; @@ -42856,15 +44527,16 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ GetApplicationsSummaryResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.applicationSummary = []; + if (options.arrays || options.defaults) object.applicationSummary = []; if (message.applicationSummary && message.applicationSummary.length) { object.applicationSummary = []; for (let j = 0; j < message.applicationSummary.length; ++j) - object.applicationSummary[j] = $root.Authentication.ApplicationSummary.toObject(message.applicationSummary[j], options); + object.applicationSummary[j] = $root.Authentication.ApplicationSummary.toObject( + message.applicationSummary[j], + options + ); } return object; }; @@ -42890,16 +44562,15 @@ export const Authentication = $root.Authentication = (() => { */ GetApplicationsSummaryResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.GetApplicationsSummaryResponse"; + return typeUrlPrefix + '/Authentication.GetApplicationsSummaryResponse'; }; return GetApplicationsSummaryResponse; })(); - Authentication.GetVerificationTokenRequest = (function() { - + Authentication.GetVerificationTokenRequest = (function () { /** * Properties of a GetVerificationTokenRequest. * @memberof Authentication @@ -42918,8 +44589,7 @@ export const Authentication = $root.Authentication = (() => { function GetVerificationTokenRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -42928,7 +44598,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.GetVerificationTokenRequest * @instance */ - GetVerificationTokenRequest.prototype.username = ""; + GetVerificationTokenRequest.prototype.username = ''; /** * Creates a new GetVerificationTokenRequest instance using the specified properties. @@ -42952,10 +44622,9 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ GetVerificationTokenRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.username != null && Object.hasOwnProperty.call(message, "username")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.username); + if (!writer) writer = $Writer.create(); + if (message.username != null && Object.hasOwnProperty.call(message, 'username')) + writer.uint32(/* id 1, wireType 2 =*/ 10).string(message.username); return writer; }; @@ -42984,19 +44653,19 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ GetVerificationTokenRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.GetVerificationTokenRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.GetVerificationTokenRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.username = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -43013,8 +44682,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ GetVerificationTokenRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -43027,11 +44695,9 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ GetVerificationTokenRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.username != null && message.hasOwnProperty("username")) - if (!$util.isString(message.username)) - return "username: string expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.username != null && message.hasOwnProperty('username')) + if (!$util.isString(message.username)) return 'username: string expected'; return null; }; @@ -43044,11 +44710,9 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.GetVerificationTokenRequest} GetVerificationTokenRequest */ GetVerificationTokenRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.GetVerificationTokenRequest) - return object; + if (object instanceof $root.Authentication.GetVerificationTokenRequest) return object; let message = new $root.Authentication.GetVerificationTokenRequest(); - if (object.username != null) - message.username = String(object.username); + if (object.username != null) message.username = String(object.username); return message; }; @@ -43062,13 +44726,10 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ GetVerificationTokenRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.defaults) - object.username = ""; - if (message.username != null && message.hasOwnProperty("username")) - object.username = message.username; + if (options.defaults) object.username = ''; + if (message.username != null && message.hasOwnProperty('username')) object.username = message.username; return object; }; @@ -43093,16 +44754,15 @@ export const Authentication = $root.Authentication = (() => { */ GetVerificationTokenRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.GetVerificationTokenRequest"; + return typeUrlPrefix + '/Authentication.GetVerificationTokenRequest'; }; return GetVerificationTokenRequest; })(); - Authentication.GetVerificationTokenResponse = (function() { - + Authentication.GetVerificationTokenResponse = (function () { /** * Properties of a GetVerificationTokenResponse. * @memberof Authentication @@ -43121,8 +44781,7 @@ export const Authentication = $root.Authentication = (() => { function GetVerificationTokenResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -43155,10 +44814,12 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ GetVerificationTokenResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.encryptedVerificationToken != null && Object.hasOwnProperty.call(message, "encryptedVerificationToken")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.encryptedVerificationToken); + if (!writer) writer = $Writer.create(); + if ( + message.encryptedVerificationToken != null && + Object.hasOwnProperty.call(message, 'encryptedVerificationToken') + ) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.encryptedVerificationToken); return writer; }; @@ -43187,19 +44848,19 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ GetVerificationTokenResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.GetVerificationTokenResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.GetVerificationTokenResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.encryptedVerificationToken = reader.bytes(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -43216,8 +44877,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ GetVerificationTokenResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -43230,11 +44890,16 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ GetVerificationTokenResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.encryptedVerificationToken != null && message.hasOwnProperty("encryptedVerificationToken")) - if (!(message.encryptedVerificationToken && typeof message.encryptedVerificationToken.length === "number" || $util.isString(message.encryptedVerificationToken))) - return "encryptedVerificationToken: buffer expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.encryptedVerificationToken != null && message.hasOwnProperty('encryptedVerificationToken')) + if ( + !( + (message.encryptedVerificationToken && + typeof message.encryptedVerificationToken.length === 'number') || + $util.isString(message.encryptedVerificationToken) + ) + ) + return 'encryptedVerificationToken: buffer expected'; return null; }; @@ -43247,12 +44912,17 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.GetVerificationTokenResponse} GetVerificationTokenResponse */ GetVerificationTokenResponse.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.GetVerificationTokenResponse) - return object; + if (object instanceof $root.Authentication.GetVerificationTokenResponse) return object; let message = new $root.Authentication.GetVerificationTokenResponse(); if (object.encryptedVerificationToken != null) - if (typeof object.encryptedVerificationToken === "string") - $util.base64.decode(object.encryptedVerificationToken, message.encryptedVerificationToken = $util.newBuffer($util.base64.length(object.encryptedVerificationToken)), 0); + if (typeof object.encryptedVerificationToken === 'string') + $util.base64.decode( + object.encryptedVerificationToken, + (message.encryptedVerificationToken = $util.newBuffer( + $util.base64.length(object.encryptedVerificationToken) + )), + 0 + ); else if (object.encryptedVerificationToken.length >= 0) message.encryptedVerificationToken = object.encryptedVerificationToken; return message; @@ -43268,19 +44938,26 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ GetVerificationTokenResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) - if (options.bytes === String) - object.encryptedVerificationToken = ""; + if (options.bytes === String) object.encryptedVerificationToken = ''; else { object.encryptedVerificationToken = []; if (options.bytes !== Array) object.encryptedVerificationToken = $util.newBuffer(object.encryptedVerificationToken); } - if (message.encryptedVerificationToken != null && message.hasOwnProperty("encryptedVerificationToken")) - object.encryptedVerificationToken = options.bytes === String ? $util.base64.encode(message.encryptedVerificationToken, 0, message.encryptedVerificationToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedVerificationToken) : message.encryptedVerificationToken; + if (message.encryptedVerificationToken != null && message.hasOwnProperty('encryptedVerificationToken')) + object.encryptedVerificationToken = + options.bytes === String + ? $util.base64.encode( + message.encryptedVerificationToken, + 0, + message.encryptedVerificationToken.length + ) + : options.bytes === Array + ? Array.prototype.slice.call(message.encryptedVerificationToken) + : message.encryptedVerificationToken; return object; }; @@ -43305,16 +44982,15 @@ export const Authentication = $root.Authentication = (() => { */ GetVerificationTokenResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.GetVerificationTokenResponse"; + return typeUrlPrefix + '/Authentication.GetVerificationTokenResponse'; }; return GetVerificationTokenResponse; })(); - Authentication.SendShareInviteRequest = (function() { - + Authentication.SendShareInviteRequest = (function () { /** * Properties of a SendShareInviteRequest. * @memberof Authentication @@ -43333,8 +45009,7 @@ export const Authentication = $root.Authentication = (() => { function SendShareInviteRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -43343,7 +45018,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.SendShareInviteRequest * @instance */ - SendShareInviteRequest.prototype.email = ""; + SendShareInviteRequest.prototype.email = ''; /** * Creates a new SendShareInviteRequest instance using the specified properties. @@ -43367,10 +45042,9 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ SendShareInviteRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.email != null && Object.hasOwnProperty.call(message, "email")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.email); + if (!writer) writer = $Writer.create(); + if (message.email != null && Object.hasOwnProperty.call(message, 'email')) + writer.uint32(/* id 1, wireType 2 =*/ 10).string(message.email); return writer; }; @@ -43399,19 +45073,19 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SendShareInviteRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.SendShareInviteRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.SendShareInviteRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.email = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -43428,8 +45102,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SendShareInviteRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -43442,11 +45115,9 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ SendShareInviteRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.email != null && message.hasOwnProperty("email")) - if (!$util.isString(message.email)) - return "email: string expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.email != null && message.hasOwnProperty('email')) + if (!$util.isString(message.email)) return 'email: string expected'; return null; }; @@ -43459,11 +45130,9 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.SendShareInviteRequest} SendShareInviteRequest */ SendShareInviteRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.SendShareInviteRequest) - return object; + if (object instanceof $root.Authentication.SendShareInviteRequest) return object; let message = new $root.Authentication.SendShareInviteRequest(); - if (object.email != null) - message.email = String(object.email); + if (object.email != null) message.email = String(object.email); return message; }; @@ -43477,13 +45146,10 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ SendShareInviteRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.defaults) - object.email = ""; - if (message.email != null && message.hasOwnProperty("email")) - object.email = message.email; + if (options.defaults) object.email = ''; + if (message.email != null && message.hasOwnProperty('email')) object.email = message.email; return object; }; @@ -43508,9 +45174,9 @@ export const Authentication = $root.Authentication = (() => { */ SendShareInviteRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.SendShareInviteRequest"; + return typeUrlPrefix + '/Authentication.SendShareInviteRequest'; }; return SendShareInviteRequest; @@ -43525,17 +45191,17 @@ export const Authentication = $root.Authentication = (() => { * @property {number} USER_OR_TEAM_ACCESS_TO_SHAREDFOLDER=2 USER_OR_TEAM_ACCESS_TO_SHAREDFOLDER value * @property {number} RECORD_ACCESS_TO_SHAREDFOLDER=3 RECORD_ACCESS_TO_SHAREDFOLDER value */ - Authentication.TimeLimitedAccessType = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "INVALID_TIME_LIMITED_ACCESS_TYPE"] = 0; - values[valuesById[1] = "USER_ACCESS_TO_RECORD"] = 1; - values[valuesById[2] = "USER_OR_TEAM_ACCESS_TO_SHAREDFOLDER"] = 2; - values[valuesById[3] = "RECORD_ACCESS_TO_SHAREDFOLDER"] = 3; + Authentication.TimeLimitedAccessType = (function () { + const valuesById = {}, + values = Object.create(valuesById); + values[(valuesById[0] = 'INVALID_TIME_LIMITED_ACCESS_TYPE')] = 0; + values[(valuesById[1] = 'USER_ACCESS_TO_RECORD')] = 1; + values[(valuesById[2] = 'USER_OR_TEAM_ACCESS_TO_SHAREDFOLDER')] = 2; + values[(valuesById[3] = 'RECORD_ACCESS_TO_SHAREDFOLDER')] = 3; return values; })(); - Authentication.TimeLimitedAccessRequest = (function() { - + Authentication.TimeLimitedAccessRequest = (function () { /** * Properties of a TimeLimitedAccessRequest. * @memberof Authentication @@ -43562,8 +45228,7 @@ export const Authentication = $root.Authentication = (() => { this.recordUid = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -43612,7 +45277,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.TimeLimitedAccessRequest * @instance */ - TimeLimitedAccessRequest.prototype.expiration = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + TimeLimitedAccessRequest.prototype.expiration = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * Creates a new TimeLimitedAccessRequest instance using the specified properties. @@ -43636,23 +45301,22 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ TimeLimitedAccessRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.accountUid != null && message.accountUid.length) for (let i = 0; i < message.accountUid.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.accountUid[i]); + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.accountUid[i]); if (message.teamUid != null && message.teamUid.length) for (let i = 0; i < message.teamUid.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.teamUid[i]); + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.teamUid[i]); if (message.recordUid != null && message.recordUid.length) for (let i = 0; i < message.recordUid.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.recordUid[i]); - if (message.sharedObjectUid != null && Object.hasOwnProperty.call(message, "sharedObjectUid")) - writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.sharedObjectUid); - if (message.timeLimitedAccessType != null && Object.hasOwnProperty.call(message, "timeLimitedAccessType")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.timeLimitedAccessType); - if (message.expiration != null && Object.hasOwnProperty.call(message, "expiration")) - writer.uint32(/* id 6, wireType 0 =*/48).int64(message.expiration); + writer.uint32(/* id 3, wireType 2 =*/ 26).bytes(message.recordUid[i]); + if (message.sharedObjectUid != null && Object.hasOwnProperty.call(message, 'sharedObjectUid')) + writer.uint32(/* id 4, wireType 2 =*/ 34).bytes(message.sharedObjectUid); + if (message.timeLimitedAccessType != null && Object.hasOwnProperty.call(message, 'timeLimitedAccessType')) + writer.uint32(/* id 5, wireType 0 =*/ 40).int32(message.timeLimitedAccessType); + if (message.expiration != null && Object.hasOwnProperty.call(message, 'expiration')) + writer.uint32(/* id 6, wireType 0 =*/ 48).int64(message.expiration); return writer; }; @@ -43681,45 +45345,42 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ TimeLimitedAccessRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.TimeLimitedAccessRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.TimeLimitedAccessRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (!(message.accountUid && message.accountUid.length)) - message.accountUid = []; + case 1: { + if (!(message.accountUid && message.accountUid.length)) message.accountUid = []; message.accountUid.push(reader.bytes()); break; } - case 2: { - if (!(message.teamUid && message.teamUid.length)) - message.teamUid = []; + case 2: { + if (!(message.teamUid && message.teamUid.length)) message.teamUid = []; message.teamUid.push(reader.bytes()); break; } - case 3: { - if (!(message.recordUid && message.recordUid.length)) - message.recordUid = []; + case 3: { + if (!(message.recordUid && message.recordUid.length)) message.recordUid = []; message.recordUid.push(reader.bytes()); break; } - case 4: { + case 4: { message.sharedObjectUid = reader.bytes(); break; } - case 5: { + case 5: { message.timeLimitedAccessType = reader.int32(); break; } - case 6: { + case 6: { message.expiration = reader.int64(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -43736,8 +45397,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ TimeLimitedAccessRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -43750,45 +45410,68 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ TimeLimitedAccessRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.accountUid != null && message.hasOwnProperty("accountUid")) { - if (!Array.isArray(message.accountUid)) - return "accountUid: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.accountUid != null && message.hasOwnProperty('accountUid')) { + if (!Array.isArray(message.accountUid)) return 'accountUid: array expected'; for (let i = 0; i < message.accountUid.length; ++i) - if (!(message.accountUid[i] && typeof message.accountUid[i].length === "number" || $util.isString(message.accountUid[i]))) - return "accountUid: buffer[] expected"; - } - if (message.teamUid != null && message.hasOwnProperty("teamUid")) { - if (!Array.isArray(message.teamUid)) - return "teamUid: array expected"; + if ( + !( + (message.accountUid[i] && typeof message.accountUid[i].length === 'number') || + $util.isString(message.accountUid[i]) + ) + ) + return 'accountUid: buffer[] expected'; + } + if (message.teamUid != null && message.hasOwnProperty('teamUid')) { + if (!Array.isArray(message.teamUid)) return 'teamUid: array expected'; for (let i = 0; i < message.teamUid.length; ++i) - if (!(message.teamUid[i] && typeof message.teamUid[i].length === "number" || $util.isString(message.teamUid[i]))) - return "teamUid: buffer[] expected"; - } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) { - if (!Array.isArray(message.recordUid)) - return "recordUid: array expected"; + if ( + !( + (message.teamUid[i] && typeof message.teamUid[i].length === 'number') || + $util.isString(message.teamUid[i]) + ) + ) + return 'teamUid: buffer[] expected'; + } + if (message.recordUid != null && message.hasOwnProperty('recordUid')) { + if (!Array.isArray(message.recordUid)) return 'recordUid: array expected'; for (let i = 0; i < message.recordUid.length; ++i) - if (!(message.recordUid[i] && typeof message.recordUid[i].length === "number" || $util.isString(message.recordUid[i]))) - return "recordUid: buffer[] expected"; - } - if (message.sharedObjectUid != null && message.hasOwnProperty("sharedObjectUid")) - if (!(message.sharedObjectUid && typeof message.sharedObjectUid.length === "number" || $util.isString(message.sharedObjectUid))) - return "sharedObjectUid: buffer expected"; - if (message.timeLimitedAccessType != null && message.hasOwnProperty("timeLimitedAccessType")) + if ( + !( + (message.recordUid[i] && typeof message.recordUid[i].length === 'number') || + $util.isString(message.recordUid[i]) + ) + ) + return 'recordUid: buffer[] expected'; + } + if (message.sharedObjectUid != null && message.hasOwnProperty('sharedObjectUid')) + if ( + !( + (message.sharedObjectUid && typeof message.sharedObjectUid.length === 'number') || + $util.isString(message.sharedObjectUid) + ) + ) + return 'sharedObjectUid: buffer expected'; + if (message.timeLimitedAccessType != null && message.hasOwnProperty('timeLimitedAccessType')) switch (message.timeLimitedAccessType) { - default: - return "timeLimitedAccessType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; + default: + return 'timeLimitedAccessType: enum value expected'; + case 0: + case 1: + case 2: + case 3: + break; } - if (message.expiration != null && message.hasOwnProperty("expiration")) - if (!$util.isInteger(message.expiration) && !(message.expiration && $util.isInteger(message.expiration.low) && $util.isInteger(message.expiration.high))) - return "expiration: integer|Long expected"; + if (message.expiration != null && message.hasOwnProperty('expiration')) + if ( + !$util.isInteger(message.expiration) && + !( + message.expiration && + $util.isInteger(message.expiration.low) && + $util.isInteger(message.expiration.high) + ) + ) + return 'expiration: integer|Long expected'; return null; }; @@ -43801,77 +45484,88 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.TimeLimitedAccessRequest} TimeLimitedAccessRequest */ TimeLimitedAccessRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.TimeLimitedAccessRequest) - return object; + if (object instanceof $root.Authentication.TimeLimitedAccessRequest) return object; let message = new $root.Authentication.TimeLimitedAccessRequest(); if (object.accountUid) { if (!Array.isArray(object.accountUid)) - throw TypeError(".Authentication.TimeLimitedAccessRequest.accountUid: array expected"); + throw TypeError('.Authentication.TimeLimitedAccessRequest.accountUid: array expected'); message.accountUid = []; for (let i = 0; i < object.accountUid.length; ++i) - if (typeof object.accountUid[i] === "string") - $util.base64.decode(object.accountUid[i], message.accountUid[i] = $util.newBuffer($util.base64.length(object.accountUid[i])), 0); - else if (object.accountUid[i].length >= 0) - message.accountUid[i] = object.accountUid[i]; + if (typeof object.accountUid[i] === 'string') + $util.base64.decode( + object.accountUid[i], + (message.accountUid[i] = $util.newBuffer($util.base64.length(object.accountUid[i]))), + 0 + ); + else if (object.accountUid[i].length >= 0) message.accountUid[i] = object.accountUid[i]; } if (object.teamUid) { if (!Array.isArray(object.teamUid)) - throw TypeError(".Authentication.TimeLimitedAccessRequest.teamUid: array expected"); + throw TypeError('.Authentication.TimeLimitedAccessRequest.teamUid: array expected'); message.teamUid = []; for (let i = 0; i < object.teamUid.length; ++i) - if (typeof object.teamUid[i] === "string") - $util.base64.decode(object.teamUid[i], message.teamUid[i] = $util.newBuffer($util.base64.length(object.teamUid[i])), 0); - else if (object.teamUid[i].length >= 0) - message.teamUid[i] = object.teamUid[i]; + if (typeof object.teamUid[i] === 'string') + $util.base64.decode( + object.teamUid[i], + (message.teamUid[i] = $util.newBuffer($util.base64.length(object.teamUid[i]))), + 0 + ); + else if (object.teamUid[i].length >= 0) message.teamUid[i] = object.teamUid[i]; } if (object.recordUid) { if (!Array.isArray(object.recordUid)) - throw TypeError(".Authentication.TimeLimitedAccessRequest.recordUid: array expected"); + throw TypeError('.Authentication.TimeLimitedAccessRequest.recordUid: array expected'); message.recordUid = []; for (let i = 0; i < object.recordUid.length; ++i) - if (typeof object.recordUid[i] === "string") - $util.base64.decode(object.recordUid[i], message.recordUid[i] = $util.newBuffer($util.base64.length(object.recordUid[i])), 0); - else if (object.recordUid[i].length >= 0) - message.recordUid[i] = object.recordUid[i]; + if (typeof object.recordUid[i] === 'string') + $util.base64.decode( + object.recordUid[i], + (message.recordUid[i] = $util.newBuffer($util.base64.length(object.recordUid[i]))), + 0 + ); + else if (object.recordUid[i].length >= 0) message.recordUid[i] = object.recordUid[i]; } if (object.sharedObjectUid != null) - if (typeof object.sharedObjectUid === "string") - $util.base64.decode(object.sharedObjectUid, message.sharedObjectUid = $util.newBuffer($util.base64.length(object.sharedObjectUid)), 0); - else if (object.sharedObjectUid.length >= 0) - message.sharedObjectUid = object.sharedObjectUid; + if (typeof object.sharedObjectUid === 'string') + $util.base64.decode( + object.sharedObjectUid, + (message.sharedObjectUid = $util.newBuffer($util.base64.length(object.sharedObjectUid))), + 0 + ); + else if (object.sharedObjectUid.length >= 0) message.sharedObjectUid = object.sharedObjectUid; switch (object.timeLimitedAccessType) { - default: - if (typeof object.timeLimitedAccessType === "number") { - message.timeLimitedAccessType = object.timeLimitedAccessType; - break; - } - break; - case "INVALID_TIME_LIMITED_ACCESS_TYPE": - case 0: - message.timeLimitedAccessType = 0; - break; - case "USER_ACCESS_TO_RECORD": - case 1: - message.timeLimitedAccessType = 1; - break; - case "USER_OR_TEAM_ACCESS_TO_SHAREDFOLDER": - case 2: - message.timeLimitedAccessType = 2; - break; - case "RECORD_ACCESS_TO_SHAREDFOLDER": - case 3: - message.timeLimitedAccessType = 3; - break; + default: + if (typeof object.timeLimitedAccessType === 'number') { + message.timeLimitedAccessType = object.timeLimitedAccessType; + break; + } + break; + case 'INVALID_TIME_LIMITED_ACCESS_TYPE': + case 0: + message.timeLimitedAccessType = 0; + break; + case 'USER_ACCESS_TO_RECORD': + case 1: + message.timeLimitedAccessType = 1; + break; + case 'USER_OR_TEAM_ACCESS_TO_SHAREDFOLDER': + case 2: + message.timeLimitedAccessType = 2; + break; + case 'RECORD_ACCESS_TO_SHAREDFOLDER': + case 3: + message.timeLimitedAccessType = 3; + break; } if (object.expiration != null) - if ($util.Long) - (message.expiration = $util.Long.fromValue(object.expiration)).unsigned = false; - else if (typeof object.expiration === "string") - message.expiration = parseInt(object.expiration, 10); - else if (typeof object.expiration === "number") - message.expiration = object.expiration; - else if (typeof object.expiration === "object") - message.expiration = new $util.LongBits(object.expiration.low >>> 0, object.expiration.high >>> 0).toNumber(); + if ($util.Long) (message.expiration = $util.Long.fromValue(object.expiration)).unsigned = false; + else if (typeof object.expiration === 'string') message.expiration = parseInt(object.expiration, 10); + else if (typeof object.expiration === 'number') message.expiration = object.expiration; + else if (typeof object.expiration === 'object') + message.expiration = new $util.LongBits( + object.expiration.low >>> 0, + object.expiration.high >>> 0 + ).toNumber(); return message; }; @@ -43885,8 +45579,7 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ TimeLimitedAccessRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.arrays || options.defaults) { object.accountUid = []; @@ -43894,44 +45587,75 @@ export const Authentication = $root.Authentication = (() => { object.recordUid = []; } if (options.defaults) { - if (options.bytes === String) - object.sharedObjectUid = ""; + if (options.bytes === String) object.sharedObjectUid = ''; else { object.sharedObjectUid = []; - if (options.bytes !== Array) - object.sharedObjectUid = $util.newBuffer(object.sharedObjectUid); + if (options.bytes !== Array) object.sharedObjectUid = $util.newBuffer(object.sharedObjectUid); } - object.timeLimitedAccessType = options.enums === String ? "INVALID_TIME_LIMITED_ACCESS_TYPE" : 0; + object.timeLimitedAccessType = options.enums === String ? 'INVALID_TIME_LIMITED_ACCESS_TYPE' : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.expiration = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.expiration = options.longs === String ? "0" : 0; + object.expiration = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.expiration = options.longs === String ? '0' : 0; } if (message.accountUid && message.accountUid.length) { object.accountUid = []; for (let j = 0; j < message.accountUid.length; ++j) - object.accountUid[j] = options.bytes === String ? $util.base64.encode(message.accountUid[j], 0, message.accountUid[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.accountUid[j]) : message.accountUid[j]; + object.accountUid[j] = + options.bytes === String + ? $util.base64.encode(message.accountUid[j], 0, message.accountUid[j].length) + : options.bytes === Array + ? Array.prototype.slice.call(message.accountUid[j]) + : message.accountUid[j]; } if (message.teamUid && message.teamUid.length) { object.teamUid = []; for (let j = 0; j < message.teamUid.length; ++j) - object.teamUid[j] = options.bytes === String ? $util.base64.encode(message.teamUid[j], 0, message.teamUid[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.teamUid[j]) : message.teamUid[j]; + object.teamUid[j] = + options.bytes === String + ? $util.base64.encode(message.teamUid[j], 0, message.teamUid[j].length) + : options.bytes === Array + ? Array.prototype.slice.call(message.teamUid[j]) + : message.teamUid[j]; } if (message.recordUid && message.recordUid.length) { object.recordUid = []; for (let j = 0; j < message.recordUid.length; ++j) - object.recordUid[j] = options.bytes === String ? $util.base64.encode(message.recordUid[j], 0, message.recordUid[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid[j]) : message.recordUid[j]; - } - if (message.sharedObjectUid != null && message.hasOwnProperty("sharedObjectUid")) - object.sharedObjectUid = options.bytes === String ? $util.base64.encode(message.sharedObjectUid, 0, message.sharedObjectUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.sharedObjectUid) : message.sharedObjectUid; - if (message.timeLimitedAccessType != null && message.hasOwnProperty("timeLimitedAccessType")) - object.timeLimitedAccessType = options.enums === String ? $root.Authentication.TimeLimitedAccessType[message.timeLimitedAccessType] === undefined ? message.timeLimitedAccessType : $root.Authentication.TimeLimitedAccessType[message.timeLimitedAccessType] : message.timeLimitedAccessType; - if (message.expiration != null && message.hasOwnProperty("expiration")) - if (typeof message.expiration === "number") + object.recordUid[j] = + options.bytes === String + ? $util.base64.encode(message.recordUid[j], 0, message.recordUid[j].length) + : options.bytes === Array + ? Array.prototype.slice.call(message.recordUid[j]) + : message.recordUid[j]; + } + if (message.sharedObjectUid != null && message.hasOwnProperty('sharedObjectUid')) + object.sharedObjectUid = + options.bytes === String + ? $util.base64.encode(message.sharedObjectUid, 0, message.sharedObjectUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.sharedObjectUid) + : message.sharedObjectUid; + if (message.timeLimitedAccessType != null && message.hasOwnProperty('timeLimitedAccessType')) + object.timeLimitedAccessType = + options.enums === String + ? $root.Authentication.TimeLimitedAccessType[message.timeLimitedAccessType] === undefined + ? message.timeLimitedAccessType + : $root.Authentication.TimeLimitedAccessType[message.timeLimitedAccessType] + : message.timeLimitedAccessType; + if (message.expiration != null && message.hasOwnProperty('expiration')) + if (typeof message.expiration === 'number') object.expiration = options.longs === String ? String(message.expiration) : message.expiration; else - object.expiration = options.longs === String ? $util.Long.prototype.toString.call(message.expiration) : options.longs === Number ? new $util.LongBits(message.expiration.low >>> 0, message.expiration.high >>> 0).toNumber() : message.expiration; + object.expiration = + options.longs === String + ? $util.Long.prototype.toString.call(message.expiration) + : options.longs === Number + ? new $util.LongBits( + message.expiration.low >>> 0, + message.expiration.high >>> 0 + ).toNumber() + : message.expiration; return object; }; @@ -43956,16 +45680,15 @@ export const Authentication = $root.Authentication = (() => { */ TimeLimitedAccessRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.TimeLimitedAccessRequest"; + return typeUrlPrefix + '/Authentication.TimeLimitedAccessRequest'; }; return TimeLimitedAccessRequest; })(); - Authentication.TimeLimitedAccessStatus = (function() { - + Authentication.TimeLimitedAccessStatus = (function () { /** * Properties of a TimeLimitedAccessStatus. * @memberof Authentication @@ -43985,8 +45708,7 @@ export const Authentication = $root.Authentication = (() => { function TimeLimitedAccessStatus(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -44003,7 +45725,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.TimeLimitedAccessStatus * @instance */ - TimeLimitedAccessStatus.prototype.message = ""; + TimeLimitedAccessStatus.prototype.message = ''; /** * Creates a new TimeLimitedAccessStatus instance using the specified properties. @@ -44027,12 +45749,11 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ TimeLimitedAccessStatus.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.uid != null && Object.hasOwnProperty.call(message, "uid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.uid); - if (message.message != null && Object.hasOwnProperty.call(message, "message")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.message); + if (!writer) writer = $Writer.create(); + if (message.uid != null && Object.hasOwnProperty.call(message, 'uid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.uid); + if (message.message != null && Object.hasOwnProperty.call(message, 'message')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.message); return writer; }; @@ -44061,23 +45782,23 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ TimeLimitedAccessStatus.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.TimeLimitedAccessStatus(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.TimeLimitedAccessStatus(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.uid = reader.bytes(); break; } - case 2: { + case 2: { message.message = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -44094,8 +45815,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ TimeLimitedAccessStatus.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -44108,14 +45828,12 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ TimeLimitedAccessStatus.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.uid != null && message.hasOwnProperty("uid")) - if (!(message.uid && typeof message.uid.length === "number" || $util.isString(message.uid))) - return "uid: buffer expected"; - if (message.message != null && message.hasOwnProperty("message")) - if (!$util.isString(message.message)) - return "message: string expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.uid != null && message.hasOwnProperty('uid')) + if (!((message.uid && typeof message.uid.length === 'number') || $util.isString(message.uid))) + return 'uid: buffer expected'; + if (message.message != null && message.hasOwnProperty('message')) + if (!$util.isString(message.message)) return 'message: string expected'; return null; }; @@ -44128,16 +45846,17 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.TimeLimitedAccessStatus} TimeLimitedAccessStatus */ TimeLimitedAccessStatus.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.TimeLimitedAccessStatus) - return object; + if (object instanceof $root.Authentication.TimeLimitedAccessStatus) return object; let message = new $root.Authentication.TimeLimitedAccessStatus(); if (object.uid != null) - if (typeof object.uid === "string") - $util.base64.decode(object.uid, message.uid = $util.newBuffer($util.base64.length(object.uid)), 0); - else if (object.uid.length >= 0) - message.uid = object.uid; - if (object.message != null) - message.message = String(object.message); + if (typeof object.uid === 'string') + $util.base64.decode( + object.uid, + (message.uid = $util.newBuffer($util.base64.length(object.uid))), + 0 + ); + else if (object.uid.length >= 0) message.uid = object.uid; + if (object.message != null) message.message = String(object.message); return message; }; @@ -44151,23 +45870,24 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ TimeLimitedAccessStatus.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.uid = ""; + if (options.bytes === String) object.uid = ''; else { object.uid = []; - if (options.bytes !== Array) - object.uid = $util.newBuffer(object.uid); + if (options.bytes !== Array) object.uid = $util.newBuffer(object.uid); } - object.message = ""; + object.message = ''; } - if (message.uid != null && message.hasOwnProperty("uid")) - object.uid = options.bytes === String ? $util.base64.encode(message.uid, 0, message.uid.length) : options.bytes === Array ? Array.prototype.slice.call(message.uid) : message.uid; - if (message.message != null && message.hasOwnProperty("message")) - object.message = message.message; + if (message.uid != null && message.hasOwnProperty('uid')) + object.uid = + options.bytes === String + ? $util.base64.encode(message.uid, 0, message.uid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.uid) + : message.uid; + if (message.message != null && message.hasOwnProperty('message')) object.message = message.message; return object; }; @@ -44192,16 +45912,15 @@ export const Authentication = $root.Authentication = (() => { */ TimeLimitedAccessStatus.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.TimeLimitedAccessStatus"; + return typeUrlPrefix + '/Authentication.TimeLimitedAccessStatus'; }; return TimeLimitedAccessStatus; })(); - Authentication.TimeLimitedAccessResponse = (function() { - + Authentication.TimeLimitedAccessResponse = (function () { /** * Properties of a TimeLimitedAccessResponse. * @memberof Authentication @@ -44226,8 +45945,7 @@ export const Authentication = $root.Authentication = (() => { this.recordAccessStatus = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -44236,7 +45954,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.TimeLimitedAccessResponse * @instance */ - TimeLimitedAccessResponse.prototype.revision = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + TimeLimitedAccessResponse.prototype.revision = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * TimeLimitedAccessResponse userAccessStatus. @@ -44284,19 +46002,27 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ TimeLimitedAccessResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.revision != null && Object.hasOwnProperty.call(message, "revision")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.revision); + if (!writer) writer = $Writer.create(); + if (message.revision != null && Object.hasOwnProperty.call(message, 'revision')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int64(message.revision); if (message.userAccessStatus != null && message.userAccessStatus.length) for (let i = 0; i < message.userAccessStatus.length; ++i) - $root.Authentication.TimeLimitedAccessStatus.encode(message.userAccessStatus[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + $root.Authentication.TimeLimitedAccessStatus.encode( + message.userAccessStatus[i], + writer.uint32(/* id 2, wireType 2 =*/ 18).fork() + ).ldelim(); if (message.teamAccessStatus != null && message.teamAccessStatus.length) for (let i = 0; i < message.teamAccessStatus.length; ++i) - $root.Authentication.TimeLimitedAccessStatus.encode(message.teamAccessStatus[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + $root.Authentication.TimeLimitedAccessStatus.encode( + message.teamAccessStatus[i], + writer.uint32(/* id 3, wireType 2 =*/ 26).fork() + ).ldelim(); if (message.recordAccessStatus != null && message.recordAccessStatus.length) for (let i = 0; i < message.recordAccessStatus.length; ++i) - $root.Authentication.TimeLimitedAccessStatus.encode(message.recordAccessStatus[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + $root.Authentication.TimeLimitedAccessStatus.encode( + message.recordAccessStatus[i], + writer.uint32(/* id 4, wireType 2 =*/ 34).fork() + ).ldelim(); return writer; }; @@ -44325,37 +46051,43 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ TimeLimitedAccessResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.TimeLimitedAccessResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.TimeLimitedAccessResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.revision = reader.int64(); break; } - case 2: { + case 2: { if (!(message.userAccessStatus && message.userAccessStatus.length)) message.userAccessStatus = []; - message.userAccessStatus.push($root.Authentication.TimeLimitedAccessStatus.decode(reader, reader.uint32())); + message.userAccessStatus.push( + $root.Authentication.TimeLimitedAccessStatus.decode(reader, reader.uint32()) + ); break; } - case 3: { + case 3: { if (!(message.teamAccessStatus && message.teamAccessStatus.length)) message.teamAccessStatus = []; - message.teamAccessStatus.push($root.Authentication.TimeLimitedAccessStatus.decode(reader, reader.uint32())); + message.teamAccessStatus.push( + $root.Authentication.TimeLimitedAccessStatus.decode(reader, reader.uint32()) + ); break; } - case 4: { + case 4: { if (!(message.recordAccessStatus && message.recordAccessStatus.length)) message.recordAccessStatus = []; - message.recordAccessStatus.push($root.Authentication.TimeLimitedAccessStatus.decode(reader, reader.uint32())); + message.recordAccessStatus.push( + $root.Authentication.TimeLimitedAccessStatus.decode(reader, reader.uint32()) + ); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -44372,8 +46104,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ TimeLimitedAccessResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -44386,36 +46117,36 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ TimeLimitedAccessResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.revision != null && message.hasOwnProperty("revision")) - if (!$util.isInteger(message.revision) && !(message.revision && $util.isInteger(message.revision.low) && $util.isInteger(message.revision.high))) - return "revision: integer|Long expected"; - if (message.userAccessStatus != null && message.hasOwnProperty("userAccessStatus")) { - if (!Array.isArray(message.userAccessStatus)) - return "userAccessStatus: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.revision != null && message.hasOwnProperty('revision')) + if ( + !$util.isInteger(message.revision) && + !( + message.revision && + $util.isInteger(message.revision.low) && + $util.isInteger(message.revision.high) + ) + ) + return 'revision: integer|Long expected'; + if (message.userAccessStatus != null && message.hasOwnProperty('userAccessStatus')) { + if (!Array.isArray(message.userAccessStatus)) return 'userAccessStatus: array expected'; for (let i = 0; i < message.userAccessStatus.length; ++i) { let error = $root.Authentication.TimeLimitedAccessStatus.verify(message.userAccessStatus[i]); - if (error) - return "userAccessStatus." + error; + if (error) return 'userAccessStatus.' + error; } } - if (message.teamAccessStatus != null && message.hasOwnProperty("teamAccessStatus")) { - if (!Array.isArray(message.teamAccessStatus)) - return "teamAccessStatus: array expected"; + if (message.teamAccessStatus != null && message.hasOwnProperty('teamAccessStatus')) { + if (!Array.isArray(message.teamAccessStatus)) return 'teamAccessStatus: array expected'; for (let i = 0; i < message.teamAccessStatus.length; ++i) { let error = $root.Authentication.TimeLimitedAccessStatus.verify(message.teamAccessStatus[i]); - if (error) - return "teamAccessStatus." + error; + if (error) return 'teamAccessStatus.' + error; } } - if (message.recordAccessStatus != null && message.hasOwnProperty("recordAccessStatus")) { - if (!Array.isArray(message.recordAccessStatus)) - return "recordAccessStatus: array expected"; + if (message.recordAccessStatus != null && message.hasOwnProperty('recordAccessStatus')) { + if (!Array.isArray(message.recordAccessStatus)) return 'recordAccessStatus: array expected'; for (let i = 0; i < message.recordAccessStatus.length; ++i) { let error = $root.Authentication.TimeLimitedAccessStatus.verify(message.recordAccessStatus[i]); - if (error) - return "recordAccessStatus." + error; + if (error) return 'recordAccessStatus.' + error; } } return null; @@ -44430,46 +46161,53 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.TimeLimitedAccessResponse} TimeLimitedAccessResponse */ TimeLimitedAccessResponse.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.TimeLimitedAccessResponse) - return object; + if (object instanceof $root.Authentication.TimeLimitedAccessResponse) return object; let message = new $root.Authentication.TimeLimitedAccessResponse(); if (object.revision != null) - if ($util.Long) - (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; - else if (typeof object.revision === "string") - message.revision = parseInt(object.revision, 10); - else if (typeof object.revision === "number") - message.revision = object.revision; - else if (typeof object.revision === "object") - message.revision = new $util.LongBits(object.revision.low >>> 0, object.revision.high >>> 0).toNumber(); + if ($util.Long) (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; + else if (typeof object.revision === 'string') message.revision = parseInt(object.revision, 10); + else if (typeof object.revision === 'number') message.revision = object.revision; + else if (typeof object.revision === 'object') + message.revision = new $util.LongBits( + object.revision.low >>> 0, + object.revision.high >>> 0 + ).toNumber(); if (object.userAccessStatus) { if (!Array.isArray(object.userAccessStatus)) - throw TypeError(".Authentication.TimeLimitedAccessResponse.userAccessStatus: array expected"); + throw TypeError('.Authentication.TimeLimitedAccessResponse.userAccessStatus: array expected'); message.userAccessStatus = []; for (let i = 0; i < object.userAccessStatus.length; ++i) { - if (typeof object.userAccessStatus[i] !== "object") - throw TypeError(".Authentication.TimeLimitedAccessResponse.userAccessStatus: object expected"); - message.userAccessStatus[i] = $root.Authentication.TimeLimitedAccessStatus.fromObject(object.userAccessStatus[i]); + if (typeof object.userAccessStatus[i] !== 'object') + throw TypeError('.Authentication.TimeLimitedAccessResponse.userAccessStatus: object expected'); + message.userAccessStatus[i] = $root.Authentication.TimeLimitedAccessStatus.fromObject( + object.userAccessStatus[i] + ); } } if (object.teamAccessStatus) { if (!Array.isArray(object.teamAccessStatus)) - throw TypeError(".Authentication.TimeLimitedAccessResponse.teamAccessStatus: array expected"); + throw TypeError('.Authentication.TimeLimitedAccessResponse.teamAccessStatus: array expected'); message.teamAccessStatus = []; for (let i = 0; i < object.teamAccessStatus.length; ++i) { - if (typeof object.teamAccessStatus[i] !== "object") - throw TypeError(".Authentication.TimeLimitedAccessResponse.teamAccessStatus: object expected"); - message.teamAccessStatus[i] = $root.Authentication.TimeLimitedAccessStatus.fromObject(object.teamAccessStatus[i]); + if (typeof object.teamAccessStatus[i] !== 'object') + throw TypeError('.Authentication.TimeLimitedAccessResponse.teamAccessStatus: object expected'); + message.teamAccessStatus[i] = $root.Authentication.TimeLimitedAccessStatus.fromObject( + object.teamAccessStatus[i] + ); } } if (object.recordAccessStatus) { if (!Array.isArray(object.recordAccessStatus)) - throw TypeError(".Authentication.TimeLimitedAccessResponse.recordAccessStatus: array expected"); + throw TypeError('.Authentication.TimeLimitedAccessResponse.recordAccessStatus: array expected'); message.recordAccessStatus = []; for (let i = 0; i < object.recordAccessStatus.length; ++i) { - if (typeof object.recordAccessStatus[i] !== "object") - throw TypeError(".Authentication.TimeLimitedAccessResponse.recordAccessStatus: object expected"); - message.recordAccessStatus[i] = $root.Authentication.TimeLimitedAccessStatus.fromObject(object.recordAccessStatus[i]); + if (typeof object.recordAccessStatus[i] !== 'object') + throw TypeError( + '.Authentication.TimeLimitedAccessResponse.recordAccessStatus: object expected' + ); + message.recordAccessStatus[i] = $root.Authentication.TimeLimitedAccessStatus.fromObject( + object.recordAccessStatus[i] + ); } } return message; @@ -44485,8 +46223,7 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ TimeLimitedAccessResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.arrays || options.defaults) { object.userAccessStatus = []; @@ -44496,28 +46233,42 @@ export const Authentication = $root.Authentication = (() => { if (options.defaults) if ($util.Long) { let long = new $util.Long(0, 0, false); - object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.revision = options.longs === String ? "0" : 0; - if (message.revision != null && message.hasOwnProperty("revision")) - if (typeof message.revision === "number") + object.revision = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.revision = options.longs === String ? '0' : 0; + if (message.revision != null && message.hasOwnProperty('revision')) + if (typeof message.revision === 'number') object.revision = options.longs === String ? String(message.revision) : message.revision; else - object.revision = options.longs === String ? $util.Long.prototype.toString.call(message.revision) : options.longs === Number ? new $util.LongBits(message.revision.low >>> 0, message.revision.high >>> 0).toNumber() : message.revision; + object.revision = + options.longs === String + ? $util.Long.prototype.toString.call(message.revision) + : options.longs === Number + ? new $util.LongBits(message.revision.low >>> 0, message.revision.high >>> 0).toNumber() + : message.revision; if (message.userAccessStatus && message.userAccessStatus.length) { object.userAccessStatus = []; for (let j = 0; j < message.userAccessStatus.length; ++j) - object.userAccessStatus[j] = $root.Authentication.TimeLimitedAccessStatus.toObject(message.userAccessStatus[j], options); + object.userAccessStatus[j] = $root.Authentication.TimeLimitedAccessStatus.toObject( + message.userAccessStatus[j], + options + ); } if (message.teamAccessStatus && message.teamAccessStatus.length) { object.teamAccessStatus = []; for (let j = 0; j < message.teamAccessStatus.length; ++j) - object.teamAccessStatus[j] = $root.Authentication.TimeLimitedAccessStatus.toObject(message.teamAccessStatus[j], options); + object.teamAccessStatus[j] = $root.Authentication.TimeLimitedAccessStatus.toObject( + message.teamAccessStatus[j], + options + ); } if (message.recordAccessStatus && message.recordAccessStatus.length) { object.recordAccessStatus = []; for (let j = 0; j < message.recordAccessStatus.length; ++j) - object.recordAccessStatus[j] = $root.Authentication.TimeLimitedAccessStatus.toObject(message.recordAccessStatus[j], options); + object.recordAccessStatus[j] = $root.Authentication.TimeLimitedAccessStatus.toObject( + message.recordAccessStatus[j], + options + ); } return object; }; @@ -44543,16 +46294,15 @@ export const Authentication = $root.Authentication = (() => { */ TimeLimitedAccessResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.TimeLimitedAccessResponse"; + return typeUrlPrefix + '/Authentication.TimeLimitedAccessResponse'; }; return TimeLimitedAccessResponse; })(); - Authentication.RequestDownloadRequest = (function() { - + Authentication.RequestDownloadRequest = (function () { /** * Properties of a RequestDownloadRequest. * @memberof Authentication @@ -44572,8 +46322,7 @@ export const Authentication = $root.Authentication = (() => { this.fileNames = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -44606,11 +46355,10 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ RequestDownloadRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.fileNames != null && message.fileNames.length) for (let i = 0; i < message.fileNames.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.fileNames[i]); + writer.uint32(/* id 1, wireType 2 =*/ 10).string(message.fileNames[i]); return writer; }; @@ -44639,21 +46387,20 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RequestDownloadRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.RequestDownloadRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.RequestDownloadRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (!(message.fileNames && message.fileNames.length)) - message.fileNames = []; + case 1: { + if (!(message.fileNames && message.fileNames.length)) message.fileNames = []; message.fileNames.push(reader.string()); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -44670,8 +46417,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RequestDownloadRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -44684,14 +46430,11 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ RequestDownloadRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.fileNames != null && message.hasOwnProperty("fileNames")) { - if (!Array.isArray(message.fileNames)) - return "fileNames: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.fileNames != null && message.hasOwnProperty('fileNames')) { + if (!Array.isArray(message.fileNames)) return 'fileNames: array expected'; for (let i = 0; i < message.fileNames.length; ++i) - if (!$util.isString(message.fileNames[i])) - return "fileNames: string[] expected"; + if (!$util.isString(message.fileNames[i])) return 'fileNames: string[] expected'; } return null; }; @@ -44705,15 +46448,13 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.RequestDownloadRequest} RequestDownloadRequest */ RequestDownloadRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.RequestDownloadRequest) - return object; + if (object instanceof $root.Authentication.RequestDownloadRequest) return object; let message = new $root.Authentication.RequestDownloadRequest(); if (object.fileNames) { if (!Array.isArray(object.fileNames)) - throw TypeError(".Authentication.RequestDownloadRequest.fileNames: array expected"); + throw TypeError('.Authentication.RequestDownloadRequest.fileNames: array expected'); message.fileNames = []; - for (let i = 0; i < object.fileNames.length; ++i) - message.fileNames[i] = String(object.fileNames[i]); + for (let i = 0; i < object.fileNames.length; ++i) message.fileNames[i] = String(object.fileNames[i]); } return message; }; @@ -44728,15 +46469,12 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ RequestDownloadRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.fileNames = []; + if (options.arrays || options.defaults) object.fileNames = []; if (message.fileNames && message.fileNames.length) { object.fileNames = []; - for (let j = 0; j < message.fileNames.length; ++j) - object.fileNames[j] = message.fileNames[j]; + for (let j = 0; j < message.fileNames.length; ++j) object.fileNames[j] = message.fileNames[j]; } return object; }; @@ -44762,16 +46500,15 @@ export const Authentication = $root.Authentication = (() => { */ RequestDownloadRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.RequestDownloadRequest"; + return typeUrlPrefix + '/Authentication.RequestDownloadRequest'; }; return RequestDownloadRequest; })(); - Authentication.RequestDownloadResponse = (function() { - + Authentication.RequestDownloadResponse = (function () { /** * Properties of a RequestDownloadResponse. * @memberof Authentication @@ -44793,8 +46530,7 @@ export const Authentication = $root.Authentication = (() => { this.downloads = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -44803,7 +46539,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.RequestDownloadResponse * @instance */ - RequestDownloadResponse.prototype.result = ""; + RequestDownloadResponse.prototype.result = ''; /** * RequestDownloadResponse message. @@ -44811,7 +46547,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.RequestDownloadResponse * @instance */ - RequestDownloadResponse.prototype.message = ""; + RequestDownloadResponse.prototype.message = ''; /** * RequestDownloadResponse downloads. @@ -44843,15 +46579,17 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ RequestDownloadResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.result != null && Object.hasOwnProperty.call(message, "result")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.result); - if (message.message != null && Object.hasOwnProperty.call(message, "message")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.message); + if (!writer) writer = $Writer.create(); + if (message.result != null && Object.hasOwnProperty.call(message, 'result')) + writer.uint32(/* id 1, wireType 2 =*/ 10).string(message.result); + if (message.message != null && Object.hasOwnProperty.call(message, 'message')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.message); if (message.downloads != null && message.downloads.length) for (let i = 0; i < message.downloads.length; ++i) - $root.Authentication.Download.encode(message.downloads[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + $root.Authentication.Download.encode( + message.downloads[i], + writer.uint32(/* id 3, wireType 2 =*/ 26).fork() + ).ldelim(); return writer; }; @@ -44880,29 +46618,28 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RequestDownloadResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.RequestDownloadResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.RequestDownloadResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.result = reader.string(); break; } - case 2: { + case 2: { message.message = reader.string(); break; } - case 3: { - if (!(message.downloads && message.downloads.length)) - message.downloads = []; + case 3: { + if (!(message.downloads && message.downloads.length)) message.downloads = []; message.downloads.push($root.Authentication.Download.decode(reader, reader.uint32())); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -44919,8 +46656,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RequestDownloadResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -44933,21 +46669,16 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ RequestDownloadResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.result != null && message.hasOwnProperty("result")) - if (!$util.isString(message.result)) - return "result: string expected"; - if (message.message != null && message.hasOwnProperty("message")) - if (!$util.isString(message.message)) - return "message: string expected"; - if (message.downloads != null && message.hasOwnProperty("downloads")) { - if (!Array.isArray(message.downloads)) - return "downloads: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.result != null && message.hasOwnProperty('result')) + if (!$util.isString(message.result)) return 'result: string expected'; + if (message.message != null && message.hasOwnProperty('message')) + if (!$util.isString(message.message)) return 'message: string expected'; + if (message.downloads != null && message.hasOwnProperty('downloads')) { + if (!Array.isArray(message.downloads)) return 'downloads: array expected'; for (let i = 0; i < message.downloads.length; ++i) { let error = $root.Authentication.Download.verify(message.downloads[i]); - if (error) - return "downloads." + error; + if (error) return 'downloads.' + error; } } return null; @@ -44962,20 +46693,17 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.RequestDownloadResponse} RequestDownloadResponse */ RequestDownloadResponse.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.RequestDownloadResponse) - return object; + if (object instanceof $root.Authentication.RequestDownloadResponse) return object; let message = new $root.Authentication.RequestDownloadResponse(); - if (object.result != null) - message.result = String(object.result); - if (object.message != null) - message.message = String(object.message); + if (object.result != null) message.result = String(object.result); + if (object.message != null) message.message = String(object.message); if (object.downloads) { if (!Array.isArray(object.downloads)) - throw TypeError(".Authentication.RequestDownloadResponse.downloads: array expected"); + throw TypeError('.Authentication.RequestDownloadResponse.downloads: array expected'); message.downloads = []; for (let i = 0; i < object.downloads.length; ++i) { - if (typeof object.downloads[i] !== "object") - throw TypeError(".Authentication.RequestDownloadResponse.downloads: object expected"); + if (typeof object.downloads[i] !== 'object') + throw TypeError('.Authentication.RequestDownloadResponse.downloads: object expected'); message.downloads[i] = $root.Authentication.Download.fromObject(object.downloads[i]); } } @@ -44992,19 +46720,15 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ RequestDownloadResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.downloads = []; + if (options.arrays || options.defaults) object.downloads = []; if (options.defaults) { - object.result = ""; - object.message = ""; + object.result = ''; + object.message = ''; } - if (message.result != null && message.hasOwnProperty("result")) - object.result = message.result; - if (message.message != null && message.hasOwnProperty("message")) - object.message = message.message; + if (message.result != null && message.hasOwnProperty('result')) object.result = message.result; + if (message.message != null && message.hasOwnProperty('message')) object.message = message.message; if (message.downloads && message.downloads.length) { object.downloads = []; for (let j = 0; j < message.downloads.length; ++j) @@ -45034,16 +46758,15 @@ export const Authentication = $root.Authentication = (() => { */ RequestDownloadResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.RequestDownloadResponse"; + return typeUrlPrefix + '/Authentication.RequestDownloadResponse'; }; return RequestDownloadResponse; })(); - Authentication.Download = (function() { - + Authentication.Download = (function () { /** * Properties of a Download. * @memberof Authentication @@ -45064,8 +46787,7 @@ export const Authentication = $root.Authentication = (() => { function Download(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -45074,7 +46796,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.Download * @instance */ - Download.prototype.fileName = ""; + Download.prototype.fileName = ''; /** * Download url. @@ -45082,7 +46804,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.Download * @instance */ - Download.prototype.url = ""; + Download.prototype.url = ''; /** * Download successStatusCode. @@ -45114,14 +46836,13 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ Download.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.fileName != null && Object.hasOwnProperty.call(message, "fileName")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.fileName); - if (message.url != null && Object.hasOwnProperty.call(message, "url")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.url); - if (message.successStatusCode != null && Object.hasOwnProperty.call(message, "successStatusCode")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.successStatusCode); + if (!writer) writer = $Writer.create(); + if (message.fileName != null && Object.hasOwnProperty.call(message, 'fileName')) + writer.uint32(/* id 1, wireType 2 =*/ 10).string(message.fileName); + if (message.url != null && Object.hasOwnProperty.call(message, 'url')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.url); + if (message.successStatusCode != null && Object.hasOwnProperty.call(message, 'successStatusCode')) + writer.uint32(/* id 3, wireType 0 =*/ 24).int32(message.successStatusCode); return writer; }; @@ -45150,27 +46871,27 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ Download.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.Download(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.Download(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.fileName = reader.string(); break; } - case 2: { + case 2: { message.url = reader.string(); break; } - case 3: { + case 3: { message.successStatusCode = reader.int32(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -45187,8 +46908,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ Download.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -45201,17 +46921,13 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ Download.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.fileName != null && message.hasOwnProperty("fileName")) - if (!$util.isString(message.fileName)) - return "fileName: string expected"; - if (message.url != null && message.hasOwnProperty("url")) - if (!$util.isString(message.url)) - return "url: string expected"; - if (message.successStatusCode != null && message.hasOwnProperty("successStatusCode")) - if (!$util.isInteger(message.successStatusCode)) - return "successStatusCode: integer expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.fileName != null && message.hasOwnProperty('fileName')) + if (!$util.isString(message.fileName)) return 'fileName: string expected'; + if (message.url != null && message.hasOwnProperty('url')) + if (!$util.isString(message.url)) return 'url: string expected'; + if (message.successStatusCode != null && message.hasOwnProperty('successStatusCode')) + if (!$util.isInteger(message.successStatusCode)) return 'successStatusCode: integer expected'; return null; }; @@ -45224,15 +46940,11 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.Download} Download */ Download.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.Download) - return object; + if (object instanceof $root.Authentication.Download) return object; let message = new $root.Authentication.Download(); - if (object.fileName != null) - message.fileName = String(object.fileName); - if (object.url != null) - message.url = String(object.url); - if (object.successStatusCode != null) - message.successStatusCode = object.successStatusCode | 0; + if (object.fileName != null) message.fileName = String(object.fileName); + if (object.url != null) message.url = String(object.url); + if (object.successStatusCode != null) message.successStatusCode = object.successStatusCode | 0; return message; }; @@ -45246,19 +46958,16 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ Download.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - object.fileName = ""; - object.url = ""; + object.fileName = ''; + object.url = ''; object.successStatusCode = 0; } - if (message.fileName != null && message.hasOwnProperty("fileName")) - object.fileName = message.fileName; - if (message.url != null && message.hasOwnProperty("url")) - object.url = message.url; - if (message.successStatusCode != null && message.hasOwnProperty("successStatusCode")) + if (message.fileName != null && message.hasOwnProperty('fileName')) object.fileName = message.fileName; + if (message.url != null && message.hasOwnProperty('url')) object.url = message.url; + if (message.successStatusCode != null && message.hasOwnProperty('successStatusCode')) object.successStatusCode = message.successStatusCode; return object; }; @@ -45284,16 +46993,15 @@ export const Authentication = $root.Authentication = (() => { */ Download.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.Download"; + return typeUrlPrefix + '/Authentication.Download'; }; return Download; })(); - Authentication.DeleteUserRequest = (function() { - + Authentication.DeleteUserRequest = (function () { /** * Properties of a DeleteUserRequest. * @memberof Authentication @@ -45312,8 +47020,7 @@ export const Authentication = $root.Authentication = (() => { function DeleteUserRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -45322,7 +47029,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.DeleteUserRequest * @instance */ - DeleteUserRequest.prototype.reason = ""; + DeleteUserRequest.prototype.reason = ''; /** * Creates a new DeleteUserRequest instance using the specified properties. @@ -45346,10 +47053,9 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ DeleteUserRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.reason != null && Object.hasOwnProperty.call(message, "reason")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.reason); + if (!writer) writer = $Writer.create(); + if (message.reason != null && Object.hasOwnProperty.call(message, 'reason')) + writer.uint32(/* id 1, wireType 2 =*/ 10).string(message.reason); return writer; }; @@ -45378,19 +47084,19 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ DeleteUserRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.DeleteUserRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.DeleteUserRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.reason = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -45407,8 +47113,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ DeleteUserRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -45421,11 +47126,9 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ DeleteUserRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.reason != null && message.hasOwnProperty("reason")) - if (!$util.isString(message.reason)) - return "reason: string expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.reason != null && message.hasOwnProperty('reason')) + if (!$util.isString(message.reason)) return 'reason: string expected'; return null; }; @@ -45438,11 +47141,9 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.DeleteUserRequest} DeleteUserRequest */ DeleteUserRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.DeleteUserRequest) - return object; + if (object instanceof $root.Authentication.DeleteUserRequest) return object; let message = new $root.Authentication.DeleteUserRequest(); - if (object.reason != null) - message.reason = String(object.reason); + if (object.reason != null) message.reason = String(object.reason); return message; }; @@ -45456,13 +47157,10 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ DeleteUserRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.defaults) - object.reason = ""; - if (message.reason != null && message.hasOwnProperty("reason")) - object.reason = message.reason; + if (options.defaults) object.reason = ''; + if (message.reason != null && message.hasOwnProperty('reason')) object.reason = message.reason; return object; }; @@ -45487,16 +47185,15 @@ export const Authentication = $root.Authentication = (() => { */ DeleteUserRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.DeleteUserRequest"; + return typeUrlPrefix + '/Authentication.DeleteUserRequest'; }; return DeleteUserRequest; })(); - Authentication.ChangeMasterPasswordRequest = (function() { - + Authentication.ChangeMasterPasswordRequest = (function () { /** * Properties of a ChangeMasterPasswordRequest. * @memberof Authentication @@ -45518,8 +47215,7 @@ export const Authentication = $root.Authentication = (() => { function ChangeMasterPasswordRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -45576,16 +47272,15 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ ChangeMasterPasswordRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.authVerifier != null && Object.hasOwnProperty.call(message, "authVerifier")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.authVerifier); - if (message.encryptionParams != null && Object.hasOwnProperty.call(message, "encryptionParams")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.encryptionParams); - if (message.fromServiceProvider != null && Object.hasOwnProperty.call(message, "fromServiceProvider")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.fromServiceProvider); - if (message.iterationsChange != null && Object.hasOwnProperty.call(message, "iterationsChange")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.iterationsChange); + if (!writer) writer = $Writer.create(); + if (message.authVerifier != null && Object.hasOwnProperty.call(message, 'authVerifier')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.authVerifier); + if (message.encryptionParams != null && Object.hasOwnProperty.call(message, 'encryptionParams')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.encryptionParams); + if (message.fromServiceProvider != null && Object.hasOwnProperty.call(message, 'fromServiceProvider')) + writer.uint32(/* id 3, wireType 0 =*/ 24).bool(message.fromServiceProvider); + if (message.iterationsChange != null && Object.hasOwnProperty.call(message, 'iterationsChange')) + writer.uint32(/* id 4, wireType 0 =*/ 32).bool(message.iterationsChange); return writer; }; @@ -45614,31 +47309,31 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ChangeMasterPasswordRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.ChangeMasterPasswordRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.ChangeMasterPasswordRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.authVerifier = reader.bytes(); break; } - case 2: { + case 2: { message.encryptionParams = reader.bytes(); break; } - case 3: { + case 3: { message.fromServiceProvider = reader.bool(); break; } - case 4: { + case 4: { message.iterationsChange = reader.bool(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -45655,8 +47350,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ChangeMasterPasswordRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -45669,20 +47363,27 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ ChangeMasterPasswordRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.authVerifier != null && message.hasOwnProperty("authVerifier")) - if (!(message.authVerifier && typeof message.authVerifier.length === "number" || $util.isString(message.authVerifier))) - return "authVerifier: buffer expected"; - if (message.encryptionParams != null && message.hasOwnProperty("encryptionParams")) - if (!(message.encryptionParams && typeof message.encryptionParams.length === "number" || $util.isString(message.encryptionParams))) - return "encryptionParams: buffer expected"; - if (message.fromServiceProvider != null && message.hasOwnProperty("fromServiceProvider")) - if (typeof message.fromServiceProvider !== "boolean") - return "fromServiceProvider: boolean expected"; - if (message.iterationsChange != null && message.hasOwnProperty("iterationsChange")) - if (typeof message.iterationsChange !== "boolean") - return "iterationsChange: boolean expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.authVerifier != null && message.hasOwnProperty('authVerifier')) + if ( + !( + (message.authVerifier && typeof message.authVerifier.length === 'number') || + $util.isString(message.authVerifier) + ) + ) + return 'authVerifier: buffer expected'; + if (message.encryptionParams != null && message.hasOwnProperty('encryptionParams')) + if ( + !( + (message.encryptionParams && typeof message.encryptionParams.length === 'number') || + $util.isString(message.encryptionParams) + ) + ) + return 'encryptionParams: buffer expected'; + if (message.fromServiceProvider != null && message.hasOwnProperty('fromServiceProvider')) + if (typeof message.fromServiceProvider !== 'boolean') return 'fromServiceProvider: boolean expected'; + if (message.iterationsChange != null && message.hasOwnProperty('iterationsChange')) + if (typeof message.iterationsChange !== 'boolean') return 'iterationsChange: boolean expected'; return null; }; @@ -45695,23 +47396,26 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.ChangeMasterPasswordRequest} ChangeMasterPasswordRequest */ ChangeMasterPasswordRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.ChangeMasterPasswordRequest) - return object; + if (object instanceof $root.Authentication.ChangeMasterPasswordRequest) return object; let message = new $root.Authentication.ChangeMasterPasswordRequest(); if (object.authVerifier != null) - if (typeof object.authVerifier === "string") - $util.base64.decode(object.authVerifier, message.authVerifier = $util.newBuffer($util.base64.length(object.authVerifier)), 0); - else if (object.authVerifier.length >= 0) - message.authVerifier = object.authVerifier; + if (typeof object.authVerifier === 'string') + $util.base64.decode( + object.authVerifier, + (message.authVerifier = $util.newBuffer($util.base64.length(object.authVerifier))), + 0 + ); + else if (object.authVerifier.length >= 0) message.authVerifier = object.authVerifier; if (object.encryptionParams != null) - if (typeof object.encryptionParams === "string") - $util.base64.decode(object.encryptionParams, message.encryptionParams = $util.newBuffer($util.base64.length(object.encryptionParams)), 0); - else if (object.encryptionParams.length >= 0) - message.encryptionParams = object.encryptionParams; - if (object.fromServiceProvider != null) - message.fromServiceProvider = Boolean(object.fromServiceProvider); - if (object.iterationsChange != null) - message.iterationsChange = Boolean(object.iterationsChange); + if (typeof object.encryptionParams === 'string') + $util.base64.decode( + object.encryptionParams, + (message.encryptionParams = $util.newBuffer($util.base64.length(object.encryptionParams))), + 0 + ); + else if (object.encryptionParams.length >= 0) message.encryptionParams = object.encryptionParams; + if (object.fromServiceProvider != null) message.fromServiceProvider = Boolean(object.fromServiceProvider); + if (object.iterationsChange != null) message.iterationsChange = Boolean(object.iterationsChange); return message; }; @@ -45725,34 +47429,39 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ ChangeMasterPasswordRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.authVerifier = ""; + if (options.bytes === String) object.authVerifier = ''; else { object.authVerifier = []; - if (options.bytes !== Array) - object.authVerifier = $util.newBuffer(object.authVerifier); + if (options.bytes !== Array) object.authVerifier = $util.newBuffer(object.authVerifier); } - if (options.bytes === String) - object.encryptionParams = ""; + if (options.bytes === String) object.encryptionParams = ''; else { object.encryptionParams = []; - if (options.bytes !== Array) - object.encryptionParams = $util.newBuffer(object.encryptionParams); + if (options.bytes !== Array) object.encryptionParams = $util.newBuffer(object.encryptionParams); } object.fromServiceProvider = false; object.iterationsChange = false; } - if (message.authVerifier != null && message.hasOwnProperty("authVerifier")) - object.authVerifier = options.bytes === String ? $util.base64.encode(message.authVerifier, 0, message.authVerifier.length) : options.bytes === Array ? Array.prototype.slice.call(message.authVerifier) : message.authVerifier; - if (message.encryptionParams != null && message.hasOwnProperty("encryptionParams")) - object.encryptionParams = options.bytes === String ? $util.base64.encode(message.encryptionParams, 0, message.encryptionParams.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptionParams) : message.encryptionParams; - if (message.fromServiceProvider != null && message.hasOwnProperty("fromServiceProvider")) + if (message.authVerifier != null && message.hasOwnProperty('authVerifier')) + object.authVerifier = + options.bytes === String + ? $util.base64.encode(message.authVerifier, 0, message.authVerifier.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.authVerifier) + : message.authVerifier; + if (message.encryptionParams != null && message.hasOwnProperty('encryptionParams')) + object.encryptionParams = + options.bytes === String + ? $util.base64.encode(message.encryptionParams, 0, message.encryptionParams.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.encryptionParams) + : message.encryptionParams; + if (message.fromServiceProvider != null && message.hasOwnProperty('fromServiceProvider')) object.fromServiceProvider = message.fromServiceProvider; - if (message.iterationsChange != null && message.hasOwnProperty("iterationsChange")) + if (message.iterationsChange != null && message.hasOwnProperty('iterationsChange')) object.iterationsChange = message.iterationsChange; return object; }; @@ -45778,16 +47487,15 @@ export const Authentication = $root.Authentication = (() => { */ ChangeMasterPasswordRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.ChangeMasterPasswordRequest"; + return typeUrlPrefix + '/Authentication.ChangeMasterPasswordRequest'; }; return ChangeMasterPasswordRequest; })(); - Authentication.ChangeMasterPasswordResponse = (function() { - + Authentication.ChangeMasterPasswordResponse = (function () { /** * Properties of a ChangeMasterPasswordResponse. * @memberof Authentication @@ -45806,8 +47514,7 @@ export const Authentication = $root.Authentication = (() => { function ChangeMasterPasswordResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -45840,10 +47547,9 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ ChangeMasterPasswordResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.encryptedSessionToken != null && Object.hasOwnProperty.call(message, "encryptedSessionToken")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.encryptedSessionToken); + if (!writer) writer = $Writer.create(); + if (message.encryptedSessionToken != null && Object.hasOwnProperty.call(message, 'encryptedSessionToken')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.encryptedSessionToken); return writer; }; @@ -45872,19 +47578,19 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ChangeMasterPasswordResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.ChangeMasterPasswordResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.ChangeMasterPasswordResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.encryptedSessionToken = reader.bytes(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -45901,8 +47607,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ChangeMasterPasswordResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -45915,11 +47620,15 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ ChangeMasterPasswordResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.encryptedSessionToken != null && message.hasOwnProperty("encryptedSessionToken")) - if (!(message.encryptedSessionToken && typeof message.encryptedSessionToken.length === "number" || $util.isString(message.encryptedSessionToken))) - return "encryptedSessionToken: buffer expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.encryptedSessionToken != null && message.hasOwnProperty('encryptedSessionToken')) + if ( + !( + (message.encryptedSessionToken && typeof message.encryptedSessionToken.length === 'number') || + $util.isString(message.encryptedSessionToken) + ) + ) + return 'encryptedSessionToken: buffer expected'; return null; }; @@ -45932,12 +47641,17 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.ChangeMasterPasswordResponse} ChangeMasterPasswordResponse */ ChangeMasterPasswordResponse.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.ChangeMasterPasswordResponse) - return object; + if (object instanceof $root.Authentication.ChangeMasterPasswordResponse) return object; let message = new $root.Authentication.ChangeMasterPasswordResponse(); if (object.encryptedSessionToken != null) - if (typeof object.encryptedSessionToken === "string") - $util.base64.decode(object.encryptedSessionToken, message.encryptedSessionToken = $util.newBuffer($util.base64.length(object.encryptedSessionToken)), 0); + if (typeof object.encryptedSessionToken === 'string') + $util.base64.decode( + object.encryptedSessionToken, + (message.encryptedSessionToken = $util.newBuffer( + $util.base64.length(object.encryptedSessionToken) + )), + 0 + ); else if (object.encryptedSessionToken.length >= 0) message.encryptedSessionToken = object.encryptedSessionToken; return message; @@ -45953,19 +47667,22 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ ChangeMasterPasswordResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) - if (options.bytes === String) - object.encryptedSessionToken = ""; + if (options.bytes === String) object.encryptedSessionToken = ''; else { object.encryptedSessionToken = []; if (options.bytes !== Array) object.encryptedSessionToken = $util.newBuffer(object.encryptedSessionToken); } - if (message.encryptedSessionToken != null && message.hasOwnProperty("encryptedSessionToken")) - object.encryptedSessionToken = options.bytes === String ? $util.base64.encode(message.encryptedSessionToken, 0, message.encryptedSessionToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedSessionToken) : message.encryptedSessionToken; + if (message.encryptedSessionToken != null && message.hasOwnProperty('encryptedSessionToken')) + object.encryptedSessionToken = + options.bytes === String + ? $util.base64.encode(message.encryptedSessionToken, 0, message.encryptedSessionToken.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.encryptedSessionToken) + : message.encryptedSessionToken; return object; }; @@ -45990,16 +47707,15 @@ export const Authentication = $root.Authentication = (() => { */ ChangeMasterPasswordResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.ChangeMasterPasswordResponse"; + return typeUrlPrefix + '/Authentication.ChangeMasterPasswordResponse'; }; return ChangeMasterPasswordResponse; })(); - Authentication.AccountRecoverySetupRequest = (function() { - + Authentication.AccountRecoverySetupRequest = (function () { /** * Properties of an AccountRecoverySetupRequest. * @memberof Authentication @@ -46019,8 +47735,7 @@ export const Authentication = $root.Authentication = (() => { function AccountRecoverySetupRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -46061,12 +47776,14 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ AccountRecoverySetupRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.recoveryEncryptedDataKey != null && Object.hasOwnProperty.call(message, "recoveryEncryptedDataKey")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recoveryEncryptedDataKey); - if (message.recoveryAuthHash != null && Object.hasOwnProperty.call(message, "recoveryAuthHash")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.recoveryAuthHash); + if (!writer) writer = $Writer.create(); + if ( + message.recoveryEncryptedDataKey != null && + Object.hasOwnProperty.call(message, 'recoveryEncryptedDataKey') + ) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.recoveryEncryptedDataKey); + if (message.recoveryAuthHash != null && Object.hasOwnProperty.call(message, 'recoveryAuthHash')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.recoveryAuthHash); return writer; }; @@ -46095,23 +47812,23 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ AccountRecoverySetupRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.AccountRecoverySetupRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.AccountRecoverySetupRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.recoveryEncryptedDataKey = reader.bytes(); break; } - case 2: { + case 2: { message.recoveryAuthHash = reader.bytes(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -46128,8 +47845,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ AccountRecoverySetupRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -46142,14 +47858,24 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ AccountRecoverySetupRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.recoveryEncryptedDataKey != null && message.hasOwnProperty("recoveryEncryptedDataKey")) - if (!(message.recoveryEncryptedDataKey && typeof message.recoveryEncryptedDataKey.length === "number" || $util.isString(message.recoveryEncryptedDataKey))) - return "recoveryEncryptedDataKey: buffer expected"; - if (message.recoveryAuthHash != null && message.hasOwnProperty("recoveryAuthHash")) - if (!(message.recoveryAuthHash && typeof message.recoveryAuthHash.length === "number" || $util.isString(message.recoveryAuthHash))) - return "recoveryAuthHash: buffer expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.recoveryEncryptedDataKey != null && message.hasOwnProperty('recoveryEncryptedDataKey')) + if ( + !( + (message.recoveryEncryptedDataKey && + typeof message.recoveryEncryptedDataKey.length === 'number') || + $util.isString(message.recoveryEncryptedDataKey) + ) + ) + return 'recoveryEncryptedDataKey: buffer expected'; + if (message.recoveryAuthHash != null && message.hasOwnProperty('recoveryAuthHash')) + if ( + !( + (message.recoveryAuthHash && typeof message.recoveryAuthHash.length === 'number') || + $util.isString(message.recoveryAuthHash) + ) + ) + return 'recoveryAuthHash: buffer expected'; return null; }; @@ -46162,19 +47888,27 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.AccountRecoverySetupRequest} AccountRecoverySetupRequest */ AccountRecoverySetupRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.AccountRecoverySetupRequest) - return object; + if (object instanceof $root.Authentication.AccountRecoverySetupRequest) return object; let message = new $root.Authentication.AccountRecoverySetupRequest(); if (object.recoveryEncryptedDataKey != null) - if (typeof object.recoveryEncryptedDataKey === "string") - $util.base64.decode(object.recoveryEncryptedDataKey, message.recoveryEncryptedDataKey = $util.newBuffer($util.base64.length(object.recoveryEncryptedDataKey)), 0); + if (typeof object.recoveryEncryptedDataKey === 'string') + $util.base64.decode( + object.recoveryEncryptedDataKey, + (message.recoveryEncryptedDataKey = $util.newBuffer( + $util.base64.length(object.recoveryEncryptedDataKey) + )), + 0 + ); else if (object.recoveryEncryptedDataKey.length >= 0) message.recoveryEncryptedDataKey = object.recoveryEncryptedDataKey; if (object.recoveryAuthHash != null) - if (typeof object.recoveryAuthHash === "string") - $util.base64.decode(object.recoveryAuthHash, message.recoveryAuthHash = $util.newBuffer($util.base64.length(object.recoveryAuthHash)), 0); - else if (object.recoveryAuthHash.length >= 0) - message.recoveryAuthHash = object.recoveryAuthHash; + if (typeof object.recoveryAuthHash === 'string') + $util.base64.decode( + object.recoveryAuthHash, + (message.recoveryAuthHash = $util.newBuffer($util.base64.length(object.recoveryAuthHash))), + 0 + ); + else if (object.recoveryAuthHash.length >= 0) message.recoveryAuthHash = object.recoveryAuthHash; return message; }; @@ -46188,29 +47922,39 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ AccountRecoverySetupRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.recoveryEncryptedDataKey = ""; + if (options.bytes === String) object.recoveryEncryptedDataKey = ''; else { object.recoveryEncryptedDataKey = []; if (options.bytes !== Array) object.recoveryEncryptedDataKey = $util.newBuffer(object.recoveryEncryptedDataKey); } - if (options.bytes === String) - object.recoveryAuthHash = ""; + if (options.bytes === String) object.recoveryAuthHash = ''; else { object.recoveryAuthHash = []; - if (options.bytes !== Array) - object.recoveryAuthHash = $util.newBuffer(object.recoveryAuthHash); + if (options.bytes !== Array) object.recoveryAuthHash = $util.newBuffer(object.recoveryAuthHash); } } - if (message.recoveryEncryptedDataKey != null && message.hasOwnProperty("recoveryEncryptedDataKey")) - object.recoveryEncryptedDataKey = options.bytes === String ? $util.base64.encode(message.recoveryEncryptedDataKey, 0, message.recoveryEncryptedDataKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.recoveryEncryptedDataKey) : message.recoveryEncryptedDataKey; - if (message.recoveryAuthHash != null && message.hasOwnProperty("recoveryAuthHash")) - object.recoveryAuthHash = options.bytes === String ? $util.base64.encode(message.recoveryAuthHash, 0, message.recoveryAuthHash.length) : options.bytes === Array ? Array.prototype.slice.call(message.recoveryAuthHash) : message.recoveryAuthHash; + if (message.recoveryEncryptedDataKey != null && message.hasOwnProperty('recoveryEncryptedDataKey')) + object.recoveryEncryptedDataKey = + options.bytes === String + ? $util.base64.encode( + message.recoveryEncryptedDataKey, + 0, + message.recoveryEncryptedDataKey.length + ) + : options.bytes === Array + ? Array.prototype.slice.call(message.recoveryEncryptedDataKey) + : message.recoveryEncryptedDataKey; + if (message.recoveryAuthHash != null && message.hasOwnProperty('recoveryAuthHash')) + object.recoveryAuthHash = + options.bytes === String + ? $util.base64.encode(message.recoveryAuthHash, 0, message.recoveryAuthHash.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.recoveryAuthHash) + : message.recoveryAuthHash; return object; }; @@ -46235,9 +47979,9 @@ export const Authentication = $root.Authentication = (() => { */ AccountRecoverySetupRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.AccountRecoverySetupRequest"; + return typeUrlPrefix + '/Authentication.AccountRecoverySetupRequest'; }; return AccountRecoverySetupRequest; @@ -46250,15 +47994,15 @@ export const Authentication = $root.Authentication = (() => { * @property {number} BKT_SEC_ANSWER=0 BKT_SEC_ANSWER value * @property {number} BKT_PASSPHRASE_HASH=1 BKT_PASSPHRASE_HASH value */ - Authentication.BackupKeyType = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "BKT_SEC_ANSWER"] = 0; - values[valuesById[1] = "BKT_PASSPHRASE_HASH"] = 1; + Authentication.BackupKeyType = (function () { + const valuesById = {}, + values = Object.create(valuesById); + values[(valuesById[0] = 'BKT_SEC_ANSWER')] = 0; + values[(valuesById[1] = 'BKT_PASSPHRASE_HASH')] = 1; return values; })(); - Authentication.AccountRecoveryVerifyCodeResponse = (function() { - + Authentication.AccountRecoveryVerifyCodeResponse = (function () { /** * Properties of an AccountRecoveryVerifyCodeResponse. * @memberof Authentication @@ -46281,8 +48025,7 @@ export const Authentication = $root.Authentication = (() => { function AccountRecoveryVerifyCodeResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -46299,7 +48042,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.AccountRecoveryVerifyCodeResponse * @instance */ - AccountRecoveryVerifyCodeResponse.prototype.backupKeyDate = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + AccountRecoveryVerifyCodeResponse.prototype.backupKeyDate = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * AccountRecoveryVerifyCodeResponse securityQuestion. @@ -46307,7 +48050,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.AccountRecoveryVerifyCodeResponse * @instance */ - AccountRecoveryVerifyCodeResponse.prototype.securityQuestion = ""; + AccountRecoveryVerifyCodeResponse.prototype.securityQuestion = ''; /** * AccountRecoveryVerifyCodeResponse salt. @@ -46347,18 +48090,17 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ AccountRecoveryVerifyCodeResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.backupKeyType != null && Object.hasOwnProperty.call(message, "backupKeyType")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.backupKeyType); - if (message.backupKeyDate != null && Object.hasOwnProperty.call(message, "backupKeyDate")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.backupKeyDate); - if (message.securityQuestion != null && Object.hasOwnProperty.call(message, "securityQuestion")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.securityQuestion); - if (message.salt != null && Object.hasOwnProperty.call(message, "salt")) - writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.salt); - if (message.iterations != null && Object.hasOwnProperty.call(message, "iterations")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.iterations); + if (!writer) writer = $Writer.create(); + if (message.backupKeyType != null && Object.hasOwnProperty.call(message, 'backupKeyType')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int32(message.backupKeyType); + if (message.backupKeyDate != null && Object.hasOwnProperty.call(message, 'backupKeyDate')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int64(message.backupKeyDate); + if (message.securityQuestion != null && Object.hasOwnProperty.call(message, 'securityQuestion')) + writer.uint32(/* id 3, wireType 2 =*/ 26).string(message.securityQuestion); + if (message.salt != null && Object.hasOwnProperty.call(message, 'salt')) + writer.uint32(/* id 4, wireType 2 =*/ 34).bytes(message.salt); + if (message.iterations != null && Object.hasOwnProperty.call(message, 'iterations')) + writer.uint32(/* id 5, wireType 0 =*/ 40).int32(message.iterations); return writer; }; @@ -46387,35 +48129,35 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ AccountRecoveryVerifyCodeResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.AccountRecoveryVerifyCodeResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.AccountRecoveryVerifyCodeResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.backupKeyType = reader.int32(); break; } - case 2: { + case 2: { message.backupKeyDate = reader.int64(); break; } - case 3: { + case 3: { message.securityQuestion = reader.string(); break; } - case 4: { + case 4: { message.salt = reader.bytes(); break; } - case 5: { + case 5: { message.iterations = reader.int32(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -46432,8 +48174,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ AccountRecoveryVerifyCodeResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -46446,28 +48187,32 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ AccountRecoveryVerifyCodeResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.backupKeyType != null && message.hasOwnProperty("backupKeyType")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.backupKeyType != null && message.hasOwnProperty('backupKeyType')) switch (message.backupKeyType) { - default: - return "backupKeyType: enum value expected"; - case 0: - case 1: - break; + default: + return 'backupKeyType: enum value expected'; + case 0: + case 1: + break; } - if (message.backupKeyDate != null && message.hasOwnProperty("backupKeyDate")) - if (!$util.isInteger(message.backupKeyDate) && !(message.backupKeyDate && $util.isInteger(message.backupKeyDate.low) && $util.isInteger(message.backupKeyDate.high))) - return "backupKeyDate: integer|Long expected"; - if (message.securityQuestion != null && message.hasOwnProperty("securityQuestion")) - if (!$util.isString(message.securityQuestion)) - return "securityQuestion: string expected"; - if (message.salt != null && message.hasOwnProperty("salt")) - if (!(message.salt && typeof message.salt.length === "number" || $util.isString(message.salt))) - return "salt: buffer expected"; - if (message.iterations != null && message.hasOwnProperty("iterations")) - if (!$util.isInteger(message.iterations)) - return "iterations: integer expected"; + if (message.backupKeyDate != null && message.hasOwnProperty('backupKeyDate')) + if ( + !$util.isInteger(message.backupKeyDate) && + !( + message.backupKeyDate && + $util.isInteger(message.backupKeyDate.low) && + $util.isInteger(message.backupKeyDate.high) + ) + ) + return 'backupKeyDate: integer|Long expected'; + if (message.securityQuestion != null && message.hasOwnProperty('securityQuestion')) + if (!$util.isString(message.securityQuestion)) return 'securityQuestion: string expected'; + if (message.salt != null && message.hasOwnProperty('salt')) + if (!((message.salt && typeof message.salt.length === 'number') || $util.isString(message.salt))) + return 'salt: buffer expected'; + if (message.iterations != null && message.hasOwnProperty('iterations')) + if (!$util.isInteger(message.iterations)) return 'iterations: integer expected'; return null; }; @@ -46480,43 +48225,44 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.AccountRecoveryVerifyCodeResponse} AccountRecoveryVerifyCodeResponse */ AccountRecoveryVerifyCodeResponse.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.AccountRecoveryVerifyCodeResponse) - return object; + if (object instanceof $root.Authentication.AccountRecoveryVerifyCodeResponse) return object; let message = new $root.Authentication.AccountRecoveryVerifyCodeResponse(); switch (object.backupKeyType) { - default: - if (typeof object.backupKeyType === "number") { - message.backupKeyType = object.backupKeyType; + default: + if (typeof object.backupKeyType === 'number') { + message.backupKeyType = object.backupKeyType; + break; + } + break; + case 'BKT_SEC_ANSWER': + case 0: + message.backupKeyType = 0; + break; + case 'BKT_PASSPHRASE_HASH': + case 1: + message.backupKeyType = 1; break; - } - break; - case "BKT_SEC_ANSWER": - case 0: - message.backupKeyType = 0; - break; - case "BKT_PASSPHRASE_HASH": - case 1: - message.backupKeyType = 1; - break; } if (object.backupKeyDate != null) - if ($util.Long) - (message.backupKeyDate = $util.Long.fromValue(object.backupKeyDate)).unsigned = false; - else if (typeof object.backupKeyDate === "string") + if ($util.Long) (message.backupKeyDate = $util.Long.fromValue(object.backupKeyDate)).unsigned = false; + else if (typeof object.backupKeyDate === 'string') message.backupKeyDate = parseInt(object.backupKeyDate, 10); - else if (typeof object.backupKeyDate === "number") - message.backupKeyDate = object.backupKeyDate; - else if (typeof object.backupKeyDate === "object") - message.backupKeyDate = new $util.LongBits(object.backupKeyDate.low >>> 0, object.backupKeyDate.high >>> 0).toNumber(); - if (object.securityQuestion != null) - message.securityQuestion = String(object.securityQuestion); + else if (typeof object.backupKeyDate === 'number') message.backupKeyDate = object.backupKeyDate; + else if (typeof object.backupKeyDate === 'object') + message.backupKeyDate = new $util.LongBits( + object.backupKeyDate.low >>> 0, + object.backupKeyDate.high >>> 0 + ).toNumber(); + if (object.securityQuestion != null) message.securityQuestion = String(object.securityQuestion); if (object.salt != null) - if (typeof object.salt === "string") - $util.base64.decode(object.salt, message.salt = $util.newBuffer($util.base64.length(object.salt)), 0); - else if (object.salt.length >= 0) - message.salt = object.salt; - if (object.iterations != null) - message.iterations = object.iterations | 0; + if (typeof object.salt === 'string') + $util.base64.decode( + object.salt, + (message.salt = $util.newBuffer($util.base64.length(object.salt))), + 0 + ); + else if (object.salt.length >= 0) message.salt = object.salt; + if (object.iterations != null) message.iterations = object.iterations | 0; return message; }; @@ -46530,38 +48276,54 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ AccountRecoveryVerifyCodeResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - object.backupKeyType = options.enums === String ? "BKT_SEC_ANSWER" : 0; + object.backupKeyType = options.enums === String ? 'BKT_SEC_ANSWER' : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.backupKeyDate = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.backupKeyDate = options.longs === String ? "0" : 0; - object.securityQuestion = ""; - if (options.bytes === String) - object.salt = ""; + object.backupKeyDate = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.backupKeyDate = options.longs === String ? '0' : 0; + object.securityQuestion = ''; + if (options.bytes === String) object.salt = ''; else { object.salt = []; - if (options.bytes !== Array) - object.salt = $util.newBuffer(object.salt); + if (options.bytes !== Array) object.salt = $util.newBuffer(object.salt); } object.iterations = 0; } - if (message.backupKeyType != null && message.hasOwnProperty("backupKeyType")) - object.backupKeyType = options.enums === String ? $root.Authentication.BackupKeyType[message.backupKeyType] === undefined ? message.backupKeyType : $root.Authentication.BackupKeyType[message.backupKeyType] : message.backupKeyType; - if (message.backupKeyDate != null && message.hasOwnProperty("backupKeyDate")) - if (typeof message.backupKeyDate === "number") - object.backupKeyDate = options.longs === String ? String(message.backupKeyDate) : message.backupKeyDate; + if (message.backupKeyType != null && message.hasOwnProperty('backupKeyType')) + object.backupKeyType = + options.enums === String + ? $root.Authentication.BackupKeyType[message.backupKeyType] === undefined + ? message.backupKeyType + : $root.Authentication.BackupKeyType[message.backupKeyType] + : message.backupKeyType; + if (message.backupKeyDate != null && message.hasOwnProperty('backupKeyDate')) + if (typeof message.backupKeyDate === 'number') + object.backupKeyDate = + options.longs === String ? String(message.backupKeyDate) : message.backupKeyDate; else - object.backupKeyDate = options.longs === String ? $util.Long.prototype.toString.call(message.backupKeyDate) : options.longs === Number ? new $util.LongBits(message.backupKeyDate.low >>> 0, message.backupKeyDate.high >>> 0).toNumber() : message.backupKeyDate; - if (message.securityQuestion != null && message.hasOwnProperty("securityQuestion")) + object.backupKeyDate = + options.longs === String + ? $util.Long.prototype.toString.call(message.backupKeyDate) + : options.longs === Number + ? new $util.LongBits( + message.backupKeyDate.low >>> 0, + message.backupKeyDate.high >>> 0 + ).toNumber() + : message.backupKeyDate; + if (message.securityQuestion != null && message.hasOwnProperty('securityQuestion')) object.securityQuestion = message.securityQuestion; - if (message.salt != null && message.hasOwnProperty("salt")) - object.salt = options.bytes === String ? $util.base64.encode(message.salt, 0, message.salt.length) : options.bytes === Array ? Array.prototype.slice.call(message.salt) : message.salt; - if (message.iterations != null && message.hasOwnProperty("iterations")) + if (message.salt != null && message.hasOwnProperty('salt')) + object.salt = + options.bytes === String + ? $util.base64.encode(message.salt, 0, message.salt.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.salt) + : message.salt; + if (message.iterations != null && message.hasOwnProperty('iterations')) object.iterations = message.iterations; return object; }; @@ -46587,16 +48349,15 @@ export const Authentication = $root.Authentication = (() => { */ AccountRecoveryVerifyCodeResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.AccountRecoveryVerifyCodeResponse"; + return typeUrlPrefix + '/Authentication.AccountRecoveryVerifyCodeResponse'; }; return AccountRecoveryVerifyCodeResponse; })(); - Authentication.EmergencyAccessLoginRequest = (function() { - + Authentication.EmergencyAccessLoginRequest = (function () { /** * Properties of an EmergencyAccessLoginRequest. * @memberof Authentication @@ -46615,8 +48376,7 @@ export const Authentication = $root.Authentication = (() => { function EmergencyAccessLoginRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -46625,7 +48385,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.EmergencyAccessLoginRequest * @instance */ - EmergencyAccessLoginRequest.prototype.owner = ""; + EmergencyAccessLoginRequest.prototype.owner = ''; /** * Creates a new EmergencyAccessLoginRequest instance using the specified properties. @@ -46649,10 +48409,9 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ EmergencyAccessLoginRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.owner != null && Object.hasOwnProperty.call(message, "owner")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.owner); + if (!writer) writer = $Writer.create(); + if (message.owner != null && Object.hasOwnProperty.call(message, 'owner')) + writer.uint32(/* id 1, wireType 2 =*/ 10).string(message.owner); return writer; }; @@ -46681,19 +48440,19 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ EmergencyAccessLoginRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.EmergencyAccessLoginRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.EmergencyAccessLoginRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.owner = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -46710,8 +48469,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ EmergencyAccessLoginRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -46724,11 +48482,9 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ EmergencyAccessLoginRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.owner != null && message.hasOwnProperty("owner")) - if (!$util.isString(message.owner)) - return "owner: string expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.owner != null && message.hasOwnProperty('owner')) + if (!$util.isString(message.owner)) return 'owner: string expected'; return null; }; @@ -46741,11 +48497,9 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.EmergencyAccessLoginRequest} EmergencyAccessLoginRequest */ EmergencyAccessLoginRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.EmergencyAccessLoginRequest) - return object; + if (object instanceof $root.Authentication.EmergencyAccessLoginRequest) return object; let message = new $root.Authentication.EmergencyAccessLoginRequest(); - if (object.owner != null) - message.owner = String(object.owner); + if (object.owner != null) message.owner = String(object.owner); return message; }; @@ -46759,13 +48513,10 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ EmergencyAccessLoginRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.defaults) - object.owner = ""; - if (message.owner != null && message.hasOwnProperty("owner")) - object.owner = message.owner; + if (options.defaults) object.owner = ''; + if (message.owner != null && message.hasOwnProperty('owner')) object.owner = message.owner; return object; }; @@ -46790,16 +48541,15 @@ export const Authentication = $root.Authentication = (() => { */ EmergencyAccessLoginRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.EmergencyAccessLoginRequest"; + return typeUrlPrefix + '/Authentication.EmergencyAccessLoginRequest'; }; return EmergencyAccessLoginRequest; })(); - Authentication.EmergencyAccessLoginResponse = (function() { - + Authentication.EmergencyAccessLoginResponse = (function () { /** * Properties of an EmergencyAccessLoginResponse. * @memberof Authentication @@ -46821,8 +48571,7 @@ export const Authentication = $root.Authentication = (() => { function EmergencyAccessLoginResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -46879,16 +48628,24 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ EmergencyAccessLoginResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.sessionToken != null && Object.hasOwnProperty.call(message, "sessionToken")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.sessionToken); - if (message.dataKey != null && Object.hasOwnProperty.call(message, "dataKey")) - $root.Enterprise.TypedKey.encode(message.dataKey, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.rsaPrivateKey != null && Object.hasOwnProperty.call(message, "rsaPrivateKey")) - $root.Enterprise.TypedKey.encode(message.rsaPrivateKey, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.eccPrivateKey != null && Object.hasOwnProperty.call(message, "eccPrivateKey")) - $root.Enterprise.TypedKey.encode(message.eccPrivateKey, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (!writer) writer = $Writer.create(); + if (message.sessionToken != null && Object.hasOwnProperty.call(message, 'sessionToken')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.sessionToken); + if (message.dataKey != null && Object.hasOwnProperty.call(message, 'dataKey')) + $root.Enterprise.TypedKey.encode( + message.dataKey, + writer.uint32(/* id 2, wireType 2 =*/ 18).fork() + ).ldelim(); + if (message.rsaPrivateKey != null && Object.hasOwnProperty.call(message, 'rsaPrivateKey')) + $root.Enterprise.TypedKey.encode( + message.rsaPrivateKey, + writer.uint32(/* id 3, wireType 2 =*/ 26).fork() + ).ldelim(); + if (message.eccPrivateKey != null && Object.hasOwnProperty.call(message, 'eccPrivateKey')) + $root.Enterprise.TypedKey.encode( + message.eccPrivateKey, + writer.uint32(/* id 4, wireType 2 =*/ 34).fork() + ).ldelim(); return writer; }; @@ -46917,31 +48674,31 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ EmergencyAccessLoginResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.EmergencyAccessLoginResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.EmergencyAccessLoginResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.sessionToken = reader.bytes(); break; } - case 2: { + case 2: { message.dataKey = $root.Enterprise.TypedKey.decode(reader, reader.uint32()); break; } - case 3: { + case 3: { message.rsaPrivateKey = $root.Enterprise.TypedKey.decode(reader, reader.uint32()); break; } - case 4: { + case 4: { message.eccPrivateKey = $root.Enterprise.TypedKey.decode(reader, reader.uint32()); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -46958,8 +48715,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ EmergencyAccessLoginResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -46972,25 +48728,26 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ EmergencyAccessLoginResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.sessionToken != null && message.hasOwnProperty("sessionToken")) - if (!(message.sessionToken && typeof message.sessionToken.length === "number" || $util.isString(message.sessionToken))) - return "sessionToken: buffer expected"; - if (message.dataKey != null && message.hasOwnProperty("dataKey")) { + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.sessionToken != null && message.hasOwnProperty('sessionToken')) + if ( + !( + (message.sessionToken && typeof message.sessionToken.length === 'number') || + $util.isString(message.sessionToken) + ) + ) + return 'sessionToken: buffer expected'; + if (message.dataKey != null && message.hasOwnProperty('dataKey')) { let error = $root.Enterprise.TypedKey.verify(message.dataKey); - if (error) - return "dataKey." + error; + if (error) return 'dataKey.' + error; } - if (message.rsaPrivateKey != null && message.hasOwnProperty("rsaPrivateKey")) { + if (message.rsaPrivateKey != null && message.hasOwnProperty('rsaPrivateKey')) { let error = $root.Enterprise.TypedKey.verify(message.rsaPrivateKey); - if (error) - return "rsaPrivateKey." + error; + if (error) return 'rsaPrivateKey.' + error; } - if (message.eccPrivateKey != null && message.hasOwnProperty("eccPrivateKey")) { + if (message.eccPrivateKey != null && message.hasOwnProperty('eccPrivateKey')) { let error = $root.Enterprise.TypedKey.verify(message.eccPrivateKey); - if (error) - return "eccPrivateKey." + error; + if (error) return 'eccPrivateKey.' + error; } return null; }; @@ -47004,27 +48761,29 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.EmergencyAccessLoginResponse} EmergencyAccessLoginResponse */ EmergencyAccessLoginResponse.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.EmergencyAccessLoginResponse) - return object; + if (object instanceof $root.Authentication.EmergencyAccessLoginResponse) return object; let message = new $root.Authentication.EmergencyAccessLoginResponse(); if (object.sessionToken != null) - if (typeof object.sessionToken === "string") - $util.base64.decode(object.sessionToken, message.sessionToken = $util.newBuffer($util.base64.length(object.sessionToken)), 0); - else if (object.sessionToken.length >= 0) - message.sessionToken = object.sessionToken; + if (typeof object.sessionToken === 'string') + $util.base64.decode( + object.sessionToken, + (message.sessionToken = $util.newBuffer($util.base64.length(object.sessionToken))), + 0 + ); + else if (object.sessionToken.length >= 0) message.sessionToken = object.sessionToken; if (object.dataKey != null) { - if (typeof object.dataKey !== "object") - throw TypeError(".Authentication.EmergencyAccessLoginResponse.dataKey: object expected"); + if (typeof object.dataKey !== 'object') + throw TypeError('.Authentication.EmergencyAccessLoginResponse.dataKey: object expected'); message.dataKey = $root.Enterprise.TypedKey.fromObject(object.dataKey); } if (object.rsaPrivateKey != null) { - if (typeof object.rsaPrivateKey !== "object") - throw TypeError(".Authentication.EmergencyAccessLoginResponse.rsaPrivateKey: object expected"); + if (typeof object.rsaPrivateKey !== 'object') + throw TypeError('.Authentication.EmergencyAccessLoginResponse.rsaPrivateKey: object expected'); message.rsaPrivateKey = $root.Enterprise.TypedKey.fromObject(object.rsaPrivateKey); } if (object.eccPrivateKey != null) { - if (typeof object.eccPrivateKey !== "object") - throw TypeError(".Authentication.EmergencyAccessLoginResponse.eccPrivateKey: object expected"); + if (typeof object.eccPrivateKey !== 'object') + throw TypeError('.Authentication.EmergencyAccessLoginResponse.eccPrivateKey: object expected'); message.eccPrivateKey = $root.Enterprise.TypedKey.fromObject(object.eccPrivateKey); } return message; @@ -47040,28 +48799,30 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ EmergencyAccessLoginResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.sessionToken = ""; + if (options.bytes === String) object.sessionToken = ''; else { object.sessionToken = []; - if (options.bytes !== Array) - object.sessionToken = $util.newBuffer(object.sessionToken); + if (options.bytes !== Array) object.sessionToken = $util.newBuffer(object.sessionToken); } object.dataKey = null; object.rsaPrivateKey = null; object.eccPrivateKey = null; } - if (message.sessionToken != null && message.hasOwnProperty("sessionToken")) - object.sessionToken = options.bytes === String ? $util.base64.encode(message.sessionToken, 0, message.sessionToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.sessionToken) : message.sessionToken; - if (message.dataKey != null && message.hasOwnProperty("dataKey")) + if (message.sessionToken != null && message.hasOwnProperty('sessionToken')) + object.sessionToken = + options.bytes === String + ? $util.base64.encode(message.sessionToken, 0, message.sessionToken.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.sessionToken) + : message.sessionToken; + if (message.dataKey != null && message.hasOwnProperty('dataKey')) object.dataKey = $root.Enterprise.TypedKey.toObject(message.dataKey, options); - if (message.rsaPrivateKey != null && message.hasOwnProperty("rsaPrivateKey")) + if (message.rsaPrivateKey != null && message.hasOwnProperty('rsaPrivateKey')) object.rsaPrivateKey = $root.Enterprise.TypedKey.toObject(message.rsaPrivateKey, options); - if (message.eccPrivateKey != null && message.hasOwnProperty("eccPrivateKey")) + if (message.eccPrivateKey != null && message.hasOwnProperty('eccPrivateKey')) object.eccPrivateKey = $root.Enterprise.TypedKey.toObject(message.eccPrivateKey, options); return object; }; @@ -47087,9 +48848,9 @@ export const Authentication = $root.Authentication = (() => { */ EmergencyAccessLoginResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.EmergencyAccessLoginResponse"; + return typeUrlPrefix + '/Authentication.EmergencyAccessLoginResponse'; }; return EmergencyAccessLoginResponse; @@ -47104,17 +48865,17 @@ export const Authentication = $root.Authentication = (() => { * @property {number} ALREADY_EXISTS=2 ALREADY_EXISTS value * @property {number} ACCESS_DENIED=3 ACCESS_DENIED value */ - Authentication.GenericStatus = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "SUCCESS"] = 0; - values[valuesById[1] = "INVALID_OBJECT"] = 1; - values[valuesById[2] = "ALREADY_EXISTS"] = 2; - values[valuesById[3] = "ACCESS_DENIED"] = 3; + Authentication.GenericStatus = (function () { + const valuesById = {}, + values = Object.create(valuesById); + values[(valuesById[0] = 'SUCCESS')] = 0; + values[(valuesById[1] = 'INVALID_OBJECT')] = 1; + values[(valuesById[2] = 'ALREADY_EXISTS')] = 2; + values[(valuesById[3] = 'ACCESS_DENIED')] = 3; return values; })(); - Authentication.UserTeamKey = (function() { - + Authentication.UserTeamKey = (function () { /** * Properties of a UserTeamKey. * @memberof Authentication @@ -47138,8 +48899,7 @@ export const Authentication = $root.Authentication = (() => { function UserTeamKey(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -47156,7 +48916,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.UserTeamKey * @instance */ - UserTeamKey.prototype.username = ""; + UserTeamKey.prototype.username = ''; /** * UserTeamKey enterpriseUserId. @@ -47164,7 +48924,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.UserTeamKey * @instance */ - UserTeamKey.prototype.enterpriseUserId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + UserTeamKey.prototype.enterpriseUserId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * UserTeamKey encryptedTeamKeyRSA. @@ -47212,20 +48972,19 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ UserTeamKey.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.teamUid != null && Object.hasOwnProperty.call(message, "teamUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.teamUid); - if (message.username != null && Object.hasOwnProperty.call(message, "username")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.username); - if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "enterpriseUserId")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.enterpriseUserId); - if (message.encryptedTeamKeyRSA != null && Object.hasOwnProperty.call(message, "encryptedTeamKeyRSA")) - writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.encryptedTeamKeyRSA); - if (message.encryptedTeamKeyEC != null && Object.hasOwnProperty.call(message, "encryptedTeamKeyEC")) - writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.encryptedTeamKeyEC); - if (message.status != null && Object.hasOwnProperty.call(message, "status")) - writer.uint32(/* id 6, wireType 0 =*/48).int32(message.status); + if (!writer) writer = $Writer.create(); + if (message.teamUid != null && Object.hasOwnProperty.call(message, 'teamUid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.teamUid); + if (message.username != null && Object.hasOwnProperty.call(message, 'username')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.username); + if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, 'enterpriseUserId')) + writer.uint32(/* id 3, wireType 0 =*/ 24).int64(message.enterpriseUserId); + if (message.encryptedTeamKeyRSA != null && Object.hasOwnProperty.call(message, 'encryptedTeamKeyRSA')) + writer.uint32(/* id 4, wireType 2 =*/ 34).bytes(message.encryptedTeamKeyRSA); + if (message.encryptedTeamKeyEC != null && Object.hasOwnProperty.call(message, 'encryptedTeamKeyEC')) + writer.uint32(/* id 5, wireType 2 =*/ 42).bytes(message.encryptedTeamKeyEC); + if (message.status != null && Object.hasOwnProperty.call(message, 'status')) + writer.uint32(/* id 6, wireType 0 =*/ 48).int32(message.status); return writer; }; @@ -47254,39 +49013,39 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ UserTeamKey.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.UserTeamKey(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.UserTeamKey(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.teamUid = reader.bytes(); break; } - case 2: { + case 2: { message.username = reader.string(); break; } - case 3: { + case 3: { message.enterpriseUserId = reader.int64(); break; } - case 4: { + case 4: { message.encryptedTeamKeyRSA = reader.bytes(); break; } - case 5: { + case 5: { message.encryptedTeamKeyEC = reader.bytes(); break; } - case 6: { + case 6: { message.status = reader.int32(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -47303,8 +49062,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ UserTeamKey.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -47317,32 +49075,52 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ UserTeamKey.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.teamUid != null && message.hasOwnProperty("teamUid")) - if (!(message.teamUid && typeof message.teamUid.length === "number" || $util.isString(message.teamUid))) - return "teamUid: buffer expected"; - if (message.username != null && message.hasOwnProperty("username")) - if (!$util.isString(message.username)) - return "username: string expected"; - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (!$util.isInteger(message.enterpriseUserId) && !(message.enterpriseUserId && $util.isInteger(message.enterpriseUserId.low) && $util.isInteger(message.enterpriseUserId.high))) - return "enterpriseUserId: integer|Long expected"; - if (message.encryptedTeamKeyRSA != null && message.hasOwnProperty("encryptedTeamKeyRSA")) - if (!(message.encryptedTeamKeyRSA && typeof message.encryptedTeamKeyRSA.length === "number" || $util.isString(message.encryptedTeamKeyRSA))) - return "encryptedTeamKeyRSA: buffer expected"; - if (message.encryptedTeamKeyEC != null && message.hasOwnProperty("encryptedTeamKeyEC")) - if (!(message.encryptedTeamKeyEC && typeof message.encryptedTeamKeyEC.length === "number" || $util.isString(message.encryptedTeamKeyEC))) - return "encryptedTeamKeyEC: buffer expected"; - if (message.status != null && message.hasOwnProperty("status")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.teamUid != null && message.hasOwnProperty('teamUid')) + if ( + !( + (message.teamUid && typeof message.teamUid.length === 'number') || + $util.isString(message.teamUid) + ) + ) + return 'teamUid: buffer expected'; + if (message.username != null && message.hasOwnProperty('username')) + if (!$util.isString(message.username)) return 'username: string expected'; + if (message.enterpriseUserId != null && message.hasOwnProperty('enterpriseUserId')) + if ( + !$util.isInteger(message.enterpriseUserId) && + !( + message.enterpriseUserId && + $util.isInteger(message.enterpriseUserId.low) && + $util.isInteger(message.enterpriseUserId.high) + ) + ) + return 'enterpriseUserId: integer|Long expected'; + if (message.encryptedTeamKeyRSA != null && message.hasOwnProperty('encryptedTeamKeyRSA')) + if ( + !( + (message.encryptedTeamKeyRSA && typeof message.encryptedTeamKeyRSA.length === 'number') || + $util.isString(message.encryptedTeamKeyRSA) + ) + ) + return 'encryptedTeamKeyRSA: buffer expected'; + if (message.encryptedTeamKeyEC != null && message.hasOwnProperty('encryptedTeamKeyEC')) + if ( + !( + (message.encryptedTeamKeyEC && typeof message.encryptedTeamKeyEC.length === 'number') || + $util.isString(message.encryptedTeamKeyEC) + ) + ) + return 'encryptedTeamKeyEC: buffer expected'; + if (message.status != null && message.hasOwnProperty('status')) switch (message.status) { - default: - return "status: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; + default: + return 'status: enum value expected'; + case 0: + case 1: + case 2: + case 3: + break; } return null; }; @@ -47356,58 +49134,71 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.UserTeamKey} UserTeamKey */ UserTeamKey.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.UserTeamKey) - return object; + if (object instanceof $root.Authentication.UserTeamKey) return object; let message = new $root.Authentication.UserTeamKey(); if (object.teamUid != null) - if (typeof object.teamUid === "string") - $util.base64.decode(object.teamUid, message.teamUid = $util.newBuffer($util.base64.length(object.teamUid)), 0); - else if (object.teamUid.length >= 0) - message.teamUid = object.teamUid; - if (object.username != null) - message.username = String(object.username); + if (typeof object.teamUid === 'string') + $util.base64.decode( + object.teamUid, + (message.teamUid = $util.newBuffer($util.base64.length(object.teamUid))), + 0 + ); + else if (object.teamUid.length >= 0) message.teamUid = object.teamUid; + if (object.username != null) message.username = String(object.username); if (object.enterpriseUserId != null) if ($util.Long) (message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId)).unsigned = false; - else if (typeof object.enterpriseUserId === "string") + else if (typeof object.enterpriseUserId === 'string') message.enterpriseUserId = parseInt(object.enterpriseUserId, 10); - else if (typeof object.enterpriseUserId === "number") + else if (typeof object.enterpriseUserId === 'number') message.enterpriseUserId = object.enterpriseUserId; - else if (typeof object.enterpriseUserId === "object") - message.enterpriseUserId = new $util.LongBits(object.enterpriseUserId.low >>> 0, object.enterpriseUserId.high >>> 0).toNumber(); + else if (typeof object.enterpriseUserId === 'object') + message.enterpriseUserId = new $util.LongBits( + object.enterpriseUserId.low >>> 0, + object.enterpriseUserId.high >>> 0 + ).toNumber(); if (object.encryptedTeamKeyRSA != null) - if (typeof object.encryptedTeamKeyRSA === "string") - $util.base64.decode(object.encryptedTeamKeyRSA, message.encryptedTeamKeyRSA = $util.newBuffer($util.base64.length(object.encryptedTeamKeyRSA)), 0); + if (typeof object.encryptedTeamKeyRSA === 'string') + $util.base64.decode( + object.encryptedTeamKeyRSA, + (message.encryptedTeamKeyRSA = $util.newBuffer( + $util.base64.length(object.encryptedTeamKeyRSA) + )), + 0 + ); else if (object.encryptedTeamKeyRSA.length >= 0) message.encryptedTeamKeyRSA = object.encryptedTeamKeyRSA; if (object.encryptedTeamKeyEC != null) - if (typeof object.encryptedTeamKeyEC === "string") - $util.base64.decode(object.encryptedTeamKeyEC, message.encryptedTeamKeyEC = $util.newBuffer($util.base64.length(object.encryptedTeamKeyEC)), 0); - else if (object.encryptedTeamKeyEC.length >= 0) - message.encryptedTeamKeyEC = object.encryptedTeamKeyEC; + if (typeof object.encryptedTeamKeyEC === 'string') + $util.base64.decode( + object.encryptedTeamKeyEC, + (message.encryptedTeamKeyEC = $util.newBuffer($util.base64.length(object.encryptedTeamKeyEC))), + 0 + ); + else if (object.encryptedTeamKeyEC.length >= 0) message.encryptedTeamKeyEC = object.encryptedTeamKeyEC; switch (object.status) { - default: - if (typeof object.status === "number") { - message.status = object.status; + default: + if (typeof object.status === 'number') { + message.status = object.status; + break; + } + break; + case 'SUCCESS': + case 0: + message.status = 0; + break; + case 'INVALID_OBJECT': + case 1: + message.status = 1; + break; + case 'ALREADY_EXISTS': + case 2: + message.status = 2; + break; + case 'ACCESS_DENIED': + case 3: + message.status = 3; break; - } - break; - case "SUCCESS": - case 0: - message.status = 0; - break; - case "INVALID_OBJECT": - case 1: - message.status = 1; - break; - case "ALREADY_EXISTS": - case 2: - message.status = 2; - break; - case "ACCESS_DENIED": - case 3: - message.status = 3; - break; } return message; }; @@ -47422,54 +49213,76 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ UserTeamKey.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.teamUid = ""; + if (options.bytes === String) object.teamUid = ''; else { object.teamUid = []; - if (options.bytes !== Array) - object.teamUid = $util.newBuffer(object.teamUid); + if (options.bytes !== Array) object.teamUid = $util.newBuffer(object.teamUid); } - object.username = ""; + object.username = ''; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.enterpriseUserId = options.longs === String ? "0" : 0; - if (options.bytes === String) - object.encryptedTeamKeyRSA = ""; + object.enterpriseUserId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.enterpriseUserId = options.longs === String ? '0' : 0; + if (options.bytes === String) object.encryptedTeamKeyRSA = ''; else { object.encryptedTeamKeyRSA = []; if (options.bytes !== Array) object.encryptedTeamKeyRSA = $util.newBuffer(object.encryptedTeamKeyRSA); } - if (options.bytes === String) - object.encryptedTeamKeyEC = ""; + if (options.bytes === String) object.encryptedTeamKeyEC = ''; else { object.encryptedTeamKeyEC = []; - if (options.bytes !== Array) - object.encryptedTeamKeyEC = $util.newBuffer(object.encryptedTeamKeyEC); - } - object.status = options.enums === String ? "SUCCESS" : 0; - } - if (message.teamUid != null && message.hasOwnProperty("teamUid")) - object.teamUid = options.bytes === String ? $util.base64.encode(message.teamUid, 0, message.teamUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.teamUid) : message.teamUid; - if (message.username != null && message.hasOwnProperty("username")) - object.username = message.username; - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (typeof message.enterpriseUserId === "number") - object.enterpriseUserId = options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; + if (options.bytes !== Array) object.encryptedTeamKeyEC = $util.newBuffer(object.encryptedTeamKeyEC); + } + object.status = options.enums === String ? 'SUCCESS' : 0; + } + if (message.teamUid != null && message.hasOwnProperty('teamUid')) + object.teamUid = + options.bytes === String + ? $util.base64.encode(message.teamUid, 0, message.teamUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.teamUid) + : message.teamUid; + if (message.username != null && message.hasOwnProperty('username')) object.username = message.username; + if (message.enterpriseUserId != null && message.hasOwnProperty('enterpriseUserId')) + if (typeof message.enterpriseUserId === 'number') + object.enterpriseUserId = + options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; else - object.enterpriseUserId = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseUserId) : options.longs === Number ? new $util.LongBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0).toNumber() : message.enterpriseUserId; - if (message.encryptedTeamKeyRSA != null && message.hasOwnProperty("encryptedTeamKeyRSA")) - object.encryptedTeamKeyRSA = options.bytes === String ? $util.base64.encode(message.encryptedTeamKeyRSA, 0, message.encryptedTeamKeyRSA.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedTeamKeyRSA) : message.encryptedTeamKeyRSA; - if (message.encryptedTeamKeyEC != null && message.hasOwnProperty("encryptedTeamKeyEC")) - object.encryptedTeamKeyEC = options.bytes === String ? $util.base64.encode(message.encryptedTeamKeyEC, 0, message.encryptedTeamKeyEC.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedTeamKeyEC) : message.encryptedTeamKeyEC; - if (message.status != null && message.hasOwnProperty("status")) - object.status = options.enums === String ? $root.Authentication.GenericStatus[message.status] === undefined ? message.status : $root.Authentication.GenericStatus[message.status] : message.status; + object.enterpriseUserId = + options.longs === String + ? $util.Long.prototype.toString.call(message.enterpriseUserId) + : options.longs === Number + ? new $util.LongBits( + message.enterpriseUserId.low >>> 0, + message.enterpriseUserId.high >>> 0 + ).toNumber() + : message.enterpriseUserId; + if (message.encryptedTeamKeyRSA != null && message.hasOwnProperty('encryptedTeamKeyRSA')) + object.encryptedTeamKeyRSA = + options.bytes === String + ? $util.base64.encode(message.encryptedTeamKeyRSA, 0, message.encryptedTeamKeyRSA.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.encryptedTeamKeyRSA) + : message.encryptedTeamKeyRSA; + if (message.encryptedTeamKeyEC != null && message.hasOwnProperty('encryptedTeamKeyEC')) + object.encryptedTeamKeyEC = + options.bytes === String + ? $util.base64.encode(message.encryptedTeamKeyEC, 0, message.encryptedTeamKeyEC.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.encryptedTeamKeyEC) + : message.encryptedTeamKeyEC; + if (message.status != null && message.hasOwnProperty('status')) + object.status = + options.enums === String + ? $root.Authentication.GenericStatus[message.status] === undefined + ? message.status + : $root.Authentication.GenericStatus[message.status] + : message.status; return object; }; @@ -47494,16 +49307,15 @@ export const Authentication = $root.Authentication = (() => { */ UserTeamKey.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.UserTeamKey"; + return typeUrlPrefix + '/Authentication.UserTeamKey'; }; return UserTeamKey; })(); - Authentication.GenericRequestResponse = (function() { - + Authentication.GenericRequestResponse = (function () { /** * Properties of a GenericRequestResponse. * @memberof Authentication @@ -47523,8 +49335,7 @@ export const Authentication = $root.Authentication = (() => { this.request = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -47557,11 +49368,10 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ GenericRequestResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.request != null && message.request.length) for (let i = 0; i < message.request.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.request[i]); + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.request[i]); return writer; }; @@ -47590,21 +49400,20 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ GenericRequestResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.GenericRequestResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.GenericRequestResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (!(message.request && message.request.length)) - message.request = []; + case 1: { + if (!(message.request && message.request.length)) message.request = []; message.request.push(reader.bytes()); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -47621,8 +49430,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ GenericRequestResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -47635,14 +49443,17 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ GenericRequestResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.request != null && message.hasOwnProperty("request")) { - if (!Array.isArray(message.request)) - return "request: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.request != null && message.hasOwnProperty('request')) { + if (!Array.isArray(message.request)) return 'request: array expected'; for (let i = 0; i < message.request.length; ++i) - if (!(message.request[i] && typeof message.request[i].length === "number" || $util.isString(message.request[i]))) - return "request: buffer[] expected"; + if ( + !( + (message.request[i] && typeof message.request[i].length === 'number') || + $util.isString(message.request[i]) + ) + ) + return 'request: buffer[] expected'; } return null; }; @@ -47656,18 +49467,20 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.GenericRequestResponse} GenericRequestResponse */ GenericRequestResponse.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.GenericRequestResponse) - return object; + if (object instanceof $root.Authentication.GenericRequestResponse) return object; let message = new $root.Authentication.GenericRequestResponse(); if (object.request) { if (!Array.isArray(object.request)) - throw TypeError(".Authentication.GenericRequestResponse.request: array expected"); + throw TypeError('.Authentication.GenericRequestResponse.request: array expected'); message.request = []; for (let i = 0; i < object.request.length; ++i) - if (typeof object.request[i] === "string") - $util.base64.decode(object.request[i], message.request[i] = $util.newBuffer($util.base64.length(object.request[i])), 0); - else if (object.request[i].length >= 0) - message.request[i] = object.request[i]; + if (typeof object.request[i] === 'string') + $util.base64.decode( + object.request[i], + (message.request[i] = $util.newBuffer($util.base64.length(object.request[i]))), + 0 + ); + else if (object.request[i].length >= 0) message.request[i] = object.request[i]; } return message; }; @@ -47682,15 +49495,18 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ GenericRequestResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.request = []; + if (options.arrays || options.defaults) object.request = []; if (message.request && message.request.length) { object.request = []; for (let j = 0; j < message.request.length; ++j) - object.request[j] = options.bytes === String ? $util.base64.encode(message.request[j], 0, message.request[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.request[j]) : message.request[j]; + object.request[j] = + options.bytes === String + ? $util.base64.encode(message.request[j], 0, message.request[j].length) + : options.bytes === Array + ? Array.prototype.slice.call(message.request[j]) + : message.request[j]; } return object; }; @@ -47716,9 +49532,9 @@ export const Authentication = $root.Authentication = (() => { */ GenericRequestResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.GenericRequestResponse"; + return typeUrlPrefix + '/Authentication.GenericRequestResponse'; }; return GenericRequestResponse; @@ -47732,16 +49548,16 @@ export const Authentication = $root.Authentication = (() => { * @property {number} PLATFORM=1 PLATFORM value * @property {number} ALL_SUPPORTED=2 ALL_SUPPORTED value */ - Authentication.AuthenticatorAttachment = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "CROSS_PLATFORM"] = 0; - values[valuesById[1] = "PLATFORM"] = 1; - values[valuesById[2] = "ALL_SUPPORTED"] = 2; + Authentication.AuthenticatorAttachment = (function () { + const valuesById = {}, + values = Object.create(valuesById); + values[(valuesById[0] = 'CROSS_PLATFORM')] = 0; + values[(valuesById[1] = 'PLATFORM')] = 1; + values[(valuesById[2] = 'ALL_SUPPORTED')] = 2; return values; })(); - Authentication.PasskeyRegistrationRequest = (function() { - + Authentication.PasskeyRegistrationRequest = (function () { /** * Properties of a PasskeyRegistrationRequest. * @memberof Authentication @@ -47760,8 +49576,7 @@ export const Authentication = $root.Authentication = (() => { function PasskeyRegistrationRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -47794,10 +49609,12 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ PasskeyRegistrationRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.authenticatorAttachment != null && Object.hasOwnProperty.call(message, "authenticatorAttachment")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.authenticatorAttachment); + if (!writer) writer = $Writer.create(); + if ( + message.authenticatorAttachment != null && + Object.hasOwnProperty.call(message, 'authenticatorAttachment') + ) + writer.uint32(/* id 1, wireType 0 =*/ 8).int32(message.authenticatorAttachment); return writer; }; @@ -47826,19 +49643,19 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ PasskeyRegistrationRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.PasskeyRegistrationRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.PasskeyRegistrationRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.authenticatorAttachment = reader.int32(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -47855,8 +49672,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ PasskeyRegistrationRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -47869,16 +49685,15 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ PasskeyRegistrationRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.authenticatorAttachment != null && message.hasOwnProperty("authenticatorAttachment")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.authenticatorAttachment != null && message.hasOwnProperty('authenticatorAttachment')) switch (message.authenticatorAttachment) { - default: - return "authenticatorAttachment: enum value expected"; - case 0: - case 1: - case 2: - break; + default: + return 'authenticatorAttachment: enum value expected'; + case 0: + case 1: + case 2: + break; } return null; }; @@ -47892,28 +49707,27 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.PasskeyRegistrationRequest} PasskeyRegistrationRequest */ PasskeyRegistrationRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.PasskeyRegistrationRequest) - return object; + if (object instanceof $root.Authentication.PasskeyRegistrationRequest) return object; let message = new $root.Authentication.PasskeyRegistrationRequest(); switch (object.authenticatorAttachment) { - default: - if (typeof object.authenticatorAttachment === "number") { - message.authenticatorAttachment = object.authenticatorAttachment; + default: + if (typeof object.authenticatorAttachment === 'number') { + message.authenticatorAttachment = object.authenticatorAttachment; + break; + } + break; + case 'CROSS_PLATFORM': + case 0: + message.authenticatorAttachment = 0; + break; + case 'PLATFORM': + case 1: + message.authenticatorAttachment = 1; + break; + case 'ALL_SUPPORTED': + case 2: + message.authenticatorAttachment = 2; break; - } - break; - case "CROSS_PLATFORM": - case 0: - message.authenticatorAttachment = 0; - break; - case "PLATFORM": - case 1: - message.authenticatorAttachment = 1; - break; - case "ALL_SUPPORTED": - case 2: - message.authenticatorAttachment = 2; - break; } return message; }; @@ -47928,13 +49742,16 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ PasskeyRegistrationRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.defaults) - object.authenticatorAttachment = options.enums === String ? "CROSS_PLATFORM" : 0; - if (message.authenticatorAttachment != null && message.hasOwnProperty("authenticatorAttachment")) - object.authenticatorAttachment = options.enums === String ? $root.Authentication.AuthenticatorAttachment[message.authenticatorAttachment] === undefined ? message.authenticatorAttachment : $root.Authentication.AuthenticatorAttachment[message.authenticatorAttachment] : message.authenticatorAttachment; + if (options.defaults) object.authenticatorAttachment = options.enums === String ? 'CROSS_PLATFORM' : 0; + if (message.authenticatorAttachment != null && message.hasOwnProperty('authenticatorAttachment')) + object.authenticatorAttachment = + options.enums === String + ? $root.Authentication.AuthenticatorAttachment[message.authenticatorAttachment] === undefined + ? message.authenticatorAttachment + : $root.Authentication.AuthenticatorAttachment[message.authenticatorAttachment] + : message.authenticatorAttachment; return object; }; @@ -47959,16 +49776,15 @@ export const Authentication = $root.Authentication = (() => { */ PasskeyRegistrationRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.PasskeyRegistrationRequest"; + return typeUrlPrefix + '/Authentication.PasskeyRegistrationRequest'; }; return PasskeyRegistrationRequest; })(); - Authentication.PasskeyRegistrationResponse = (function() { - + Authentication.PasskeyRegistrationResponse = (function () { /** * Properties of a PasskeyRegistrationResponse. * @memberof Authentication @@ -47988,8 +49804,7 @@ export const Authentication = $root.Authentication = (() => { function PasskeyRegistrationResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -48006,7 +49821,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.PasskeyRegistrationResponse * @instance */ - PasskeyRegistrationResponse.prototype.pkCreationOptions = ""; + PasskeyRegistrationResponse.prototype.pkCreationOptions = ''; /** * Creates a new PasskeyRegistrationResponse instance using the specified properties. @@ -48030,12 +49845,11 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ PasskeyRegistrationResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.challengeToken != null && Object.hasOwnProperty.call(message, "challengeToken")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.challengeToken); - if (message.pkCreationOptions != null && Object.hasOwnProperty.call(message, "pkCreationOptions")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.pkCreationOptions); + if (!writer) writer = $Writer.create(); + if (message.challengeToken != null && Object.hasOwnProperty.call(message, 'challengeToken')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.challengeToken); + if (message.pkCreationOptions != null && Object.hasOwnProperty.call(message, 'pkCreationOptions')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.pkCreationOptions); return writer; }; @@ -48064,23 +49878,23 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ PasskeyRegistrationResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.PasskeyRegistrationResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.PasskeyRegistrationResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.challengeToken = reader.bytes(); break; } - case 2: { + case 2: { message.pkCreationOptions = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -48097,8 +49911,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ PasskeyRegistrationResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -48111,14 +49924,17 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ PasskeyRegistrationResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.challengeToken != null && message.hasOwnProperty("challengeToken")) - if (!(message.challengeToken && typeof message.challengeToken.length === "number" || $util.isString(message.challengeToken))) - return "challengeToken: buffer expected"; - if (message.pkCreationOptions != null && message.hasOwnProperty("pkCreationOptions")) - if (!$util.isString(message.pkCreationOptions)) - return "pkCreationOptions: string expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.challengeToken != null && message.hasOwnProperty('challengeToken')) + if ( + !( + (message.challengeToken && typeof message.challengeToken.length === 'number') || + $util.isString(message.challengeToken) + ) + ) + return 'challengeToken: buffer expected'; + if (message.pkCreationOptions != null && message.hasOwnProperty('pkCreationOptions')) + if (!$util.isString(message.pkCreationOptions)) return 'pkCreationOptions: string expected'; return null; }; @@ -48131,16 +49947,17 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.PasskeyRegistrationResponse} PasskeyRegistrationResponse */ PasskeyRegistrationResponse.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.PasskeyRegistrationResponse) - return object; + if (object instanceof $root.Authentication.PasskeyRegistrationResponse) return object; let message = new $root.Authentication.PasskeyRegistrationResponse(); if (object.challengeToken != null) - if (typeof object.challengeToken === "string") - $util.base64.decode(object.challengeToken, message.challengeToken = $util.newBuffer($util.base64.length(object.challengeToken)), 0); - else if (object.challengeToken.length >= 0) - message.challengeToken = object.challengeToken; - if (object.pkCreationOptions != null) - message.pkCreationOptions = String(object.pkCreationOptions); + if (typeof object.challengeToken === 'string') + $util.base64.decode( + object.challengeToken, + (message.challengeToken = $util.newBuffer($util.base64.length(object.challengeToken))), + 0 + ); + else if (object.challengeToken.length >= 0) message.challengeToken = object.challengeToken; + if (object.pkCreationOptions != null) message.pkCreationOptions = String(object.pkCreationOptions); return message; }; @@ -48154,22 +49971,24 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ PasskeyRegistrationResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.challengeToken = ""; + if (options.bytes === String) object.challengeToken = ''; else { object.challengeToken = []; - if (options.bytes !== Array) - object.challengeToken = $util.newBuffer(object.challengeToken); - } - object.pkCreationOptions = ""; - } - if (message.challengeToken != null && message.hasOwnProperty("challengeToken")) - object.challengeToken = options.bytes === String ? $util.base64.encode(message.challengeToken, 0, message.challengeToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.challengeToken) : message.challengeToken; - if (message.pkCreationOptions != null && message.hasOwnProperty("pkCreationOptions")) + if (options.bytes !== Array) object.challengeToken = $util.newBuffer(object.challengeToken); + } + object.pkCreationOptions = ''; + } + if (message.challengeToken != null && message.hasOwnProperty('challengeToken')) + object.challengeToken = + options.bytes === String + ? $util.base64.encode(message.challengeToken, 0, message.challengeToken.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.challengeToken) + : message.challengeToken; + if (message.pkCreationOptions != null && message.hasOwnProperty('pkCreationOptions')) object.pkCreationOptions = message.pkCreationOptions; return object; }; @@ -48195,16 +50014,15 @@ export const Authentication = $root.Authentication = (() => { */ PasskeyRegistrationResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.PasskeyRegistrationResponse"; + return typeUrlPrefix + '/Authentication.PasskeyRegistrationResponse'; }; return PasskeyRegistrationResponse; })(); - Authentication.PasskeyRegistrationFinalization = (function() { - + Authentication.PasskeyRegistrationFinalization = (function () { /** * Properties of a PasskeyRegistrationFinalization. * @memberof Authentication @@ -48225,8 +50043,7 @@ export const Authentication = $root.Authentication = (() => { function PasskeyRegistrationFinalization(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -48243,7 +50060,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.PasskeyRegistrationFinalization * @instance */ - PasskeyRegistrationFinalization.prototype.authenticatorResponse = ""; + PasskeyRegistrationFinalization.prototype.authenticatorResponse = ''; /** * PasskeyRegistrationFinalization friendlyName. @@ -48262,9 +50079,9 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.PasskeyRegistrationFinalization * @instance */ - Object.defineProperty(PasskeyRegistrationFinalization.prototype, "_friendlyName", { - get: $util.oneOfGetter($oneOfFields = ["friendlyName"]), - set: $util.oneOfSetter($oneOfFields) + Object.defineProperty(PasskeyRegistrationFinalization.prototype, '_friendlyName', { + get: $util.oneOfGetter(($oneOfFields = ['friendlyName'])), + set: $util.oneOfSetter($oneOfFields), }); /** @@ -48289,14 +50106,13 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ PasskeyRegistrationFinalization.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.challengeToken != null && Object.hasOwnProperty.call(message, "challengeToken")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.challengeToken); - if (message.authenticatorResponse != null && Object.hasOwnProperty.call(message, "authenticatorResponse")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.authenticatorResponse); - if (message.friendlyName != null && Object.hasOwnProperty.call(message, "friendlyName")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.friendlyName); + if (!writer) writer = $Writer.create(); + if (message.challengeToken != null && Object.hasOwnProperty.call(message, 'challengeToken')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.challengeToken); + if (message.authenticatorResponse != null && Object.hasOwnProperty.call(message, 'authenticatorResponse')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.authenticatorResponse); + if (message.friendlyName != null && Object.hasOwnProperty.call(message, 'friendlyName')) + writer.uint32(/* id 3, wireType 2 =*/ 26).string(message.friendlyName); return writer; }; @@ -48325,27 +50141,27 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ PasskeyRegistrationFinalization.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.PasskeyRegistrationFinalization(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.PasskeyRegistrationFinalization(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.challengeToken = reader.bytes(); break; } - case 2: { + case 2: { message.authenticatorResponse = reader.string(); break; } - case 3: { + case 3: { message.friendlyName = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -48362,8 +50178,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ PasskeyRegistrationFinalization.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -48376,19 +50191,21 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ PasskeyRegistrationFinalization.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; let properties = {}; - if (message.challengeToken != null && message.hasOwnProperty("challengeToken")) - if (!(message.challengeToken && typeof message.challengeToken.length === "number" || $util.isString(message.challengeToken))) - return "challengeToken: buffer expected"; - if (message.authenticatorResponse != null && message.hasOwnProperty("authenticatorResponse")) - if (!$util.isString(message.authenticatorResponse)) - return "authenticatorResponse: string expected"; - if (message.friendlyName != null && message.hasOwnProperty("friendlyName")) { + if (message.challengeToken != null && message.hasOwnProperty('challengeToken')) + if ( + !( + (message.challengeToken && typeof message.challengeToken.length === 'number') || + $util.isString(message.challengeToken) + ) + ) + return 'challengeToken: buffer expected'; + if (message.authenticatorResponse != null && message.hasOwnProperty('authenticatorResponse')) + if (!$util.isString(message.authenticatorResponse)) return 'authenticatorResponse: string expected'; + if (message.friendlyName != null && message.hasOwnProperty('friendlyName')) { properties._friendlyName = 1; - if (!$util.isString(message.friendlyName)) - return "friendlyName: string expected"; + if (!$util.isString(message.friendlyName)) return 'friendlyName: string expected'; } return null; }; @@ -48402,18 +50219,19 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.PasskeyRegistrationFinalization} PasskeyRegistrationFinalization */ PasskeyRegistrationFinalization.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.PasskeyRegistrationFinalization) - return object; + if (object instanceof $root.Authentication.PasskeyRegistrationFinalization) return object; let message = new $root.Authentication.PasskeyRegistrationFinalization(); if (object.challengeToken != null) - if (typeof object.challengeToken === "string") - $util.base64.decode(object.challengeToken, message.challengeToken = $util.newBuffer($util.base64.length(object.challengeToken)), 0); - else if (object.challengeToken.length >= 0) - message.challengeToken = object.challengeToken; + if (typeof object.challengeToken === 'string') + $util.base64.decode( + object.challengeToken, + (message.challengeToken = $util.newBuffer($util.base64.length(object.challengeToken))), + 0 + ); + else if (object.challengeToken.length >= 0) message.challengeToken = object.challengeToken; if (object.authenticatorResponse != null) message.authenticatorResponse = String(object.authenticatorResponse); - if (object.friendlyName != null) - message.friendlyName = String(object.friendlyName); + if (object.friendlyName != null) message.friendlyName = String(object.friendlyName); return message; }; @@ -48427,27 +50245,28 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ PasskeyRegistrationFinalization.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.challengeToken = ""; + if (options.bytes === String) object.challengeToken = ''; else { object.challengeToken = []; - if (options.bytes !== Array) - object.challengeToken = $util.newBuffer(object.challengeToken); - } - object.authenticatorResponse = ""; - } - if (message.challengeToken != null && message.hasOwnProperty("challengeToken")) - object.challengeToken = options.bytes === String ? $util.base64.encode(message.challengeToken, 0, message.challengeToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.challengeToken) : message.challengeToken; - if (message.authenticatorResponse != null && message.hasOwnProperty("authenticatorResponse")) + if (options.bytes !== Array) object.challengeToken = $util.newBuffer(object.challengeToken); + } + object.authenticatorResponse = ''; + } + if (message.challengeToken != null && message.hasOwnProperty('challengeToken')) + object.challengeToken = + options.bytes === String + ? $util.base64.encode(message.challengeToken, 0, message.challengeToken.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.challengeToken) + : message.challengeToken; + if (message.authenticatorResponse != null && message.hasOwnProperty('authenticatorResponse')) object.authenticatorResponse = message.authenticatorResponse; - if (message.friendlyName != null && message.hasOwnProperty("friendlyName")) { + if (message.friendlyName != null && message.hasOwnProperty('friendlyName')) { object.friendlyName = message.friendlyName; - if (options.oneofs) - object._friendlyName = "friendlyName"; + if (options.oneofs) object._friendlyName = 'friendlyName'; } return object; }; @@ -48473,9 +50292,9 @@ export const Authentication = $root.Authentication = (() => { */ PasskeyRegistrationFinalization.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.PasskeyRegistrationFinalization"; + return typeUrlPrefix + '/Authentication.PasskeyRegistrationFinalization'; }; return PasskeyRegistrationFinalization; @@ -48488,15 +50307,15 @@ export const Authentication = $root.Authentication = (() => { * @property {number} PK_LOGIN=0 PK_LOGIN value * @property {number} PK_REAUTH=1 PK_REAUTH value */ - Authentication.PasskeyPurpose = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "PK_LOGIN"] = 0; - values[valuesById[1] = "PK_REAUTH"] = 1; + Authentication.PasskeyPurpose = (function () { + const valuesById = {}, + values = Object.create(valuesById); + values[(valuesById[0] = 'PK_LOGIN')] = 0; + values[(valuesById[1] = 'PK_REAUTH')] = 1; return values; })(); - Authentication.PasskeyAuthenticationRequest = (function() { - + Authentication.PasskeyAuthenticationRequest = (function () { /** * Properties of a PasskeyAuthenticationRequest. * @memberof Authentication @@ -48520,8 +50339,7 @@ export const Authentication = $root.Authentication = (() => { function PasskeyAuthenticationRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -48546,7 +50364,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.PasskeyAuthenticationRequest * @instance */ - PasskeyAuthenticationRequest.prototype.clientVersion = ""; + PasskeyAuthenticationRequest.prototype.clientVersion = ''; /** * PasskeyAuthenticationRequest encryptedDeviceToken. @@ -48581,9 +50399,9 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.PasskeyAuthenticationRequest * @instance */ - Object.defineProperty(PasskeyAuthenticationRequest.prototype, "_username", { - get: $util.oneOfGetter($oneOfFields = ["username"]), - set: $util.oneOfSetter($oneOfFields) + Object.defineProperty(PasskeyAuthenticationRequest.prototype, '_username', { + get: $util.oneOfGetter(($oneOfFields = ['username'])), + set: $util.oneOfSetter($oneOfFields), }); /** @@ -48592,9 +50410,9 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.PasskeyAuthenticationRequest * @instance */ - Object.defineProperty(PasskeyAuthenticationRequest.prototype, "_encryptedLoginToken", { - get: $util.oneOfGetter($oneOfFields = ["encryptedLoginToken"]), - set: $util.oneOfSetter($oneOfFields) + Object.defineProperty(PasskeyAuthenticationRequest.prototype, '_encryptedLoginToken', { + get: $util.oneOfGetter(($oneOfFields = ['encryptedLoginToken'])), + set: $util.oneOfSetter($oneOfFields), }); /** @@ -48619,20 +50437,22 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ PasskeyAuthenticationRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.authenticatorAttachment != null && Object.hasOwnProperty.call(message, "authenticatorAttachment")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.authenticatorAttachment); - if (message.passkeyPurpose != null && Object.hasOwnProperty.call(message, "passkeyPurpose")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.passkeyPurpose); - if (message.clientVersion != null && Object.hasOwnProperty.call(message, "clientVersion")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.clientVersion); - if (message.encryptedDeviceToken != null && Object.hasOwnProperty.call(message, "encryptedDeviceToken")) - writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.encryptedDeviceToken); - if (message.username != null && Object.hasOwnProperty.call(message, "username")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.username); - if (message.encryptedLoginToken != null && Object.hasOwnProperty.call(message, "encryptedLoginToken")) - writer.uint32(/* id 6, wireType 2 =*/50).bytes(message.encryptedLoginToken); + if (!writer) writer = $Writer.create(); + if ( + message.authenticatorAttachment != null && + Object.hasOwnProperty.call(message, 'authenticatorAttachment') + ) + writer.uint32(/* id 1, wireType 0 =*/ 8).int32(message.authenticatorAttachment); + if (message.passkeyPurpose != null && Object.hasOwnProperty.call(message, 'passkeyPurpose')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int32(message.passkeyPurpose); + if (message.clientVersion != null && Object.hasOwnProperty.call(message, 'clientVersion')) + writer.uint32(/* id 3, wireType 2 =*/ 26).string(message.clientVersion); + if (message.encryptedDeviceToken != null && Object.hasOwnProperty.call(message, 'encryptedDeviceToken')) + writer.uint32(/* id 4, wireType 2 =*/ 34).bytes(message.encryptedDeviceToken); + if (message.username != null && Object.hasOwnProperty.call(message, 'username')) + writer.uint32(/* id 5, wireType 2 =*/ 42).string(message.username); + if (message.encryptedLoginToken != null && Object.hasOwnProperty.call(message, 'encryptedLoginToken')) + writer.uint32(/* id 6, wireType 2 =*/ 50).bytes(message.encryptedLoginToken); return writer; }; @@ -48661,39 +50481,39 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ PasskeyAuthenticationRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.PasskeyAuthenticationRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.PasskeyAuthenticationRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.authenticatorAttachment = reader.int32(); break; } - case 2: { + case 2: { message.passkeyPurpose = reader.int32(); break; } - case 3: { + case 3: { message.clientVersion = reader.string(); break; } - case 4: { + case 4: { message.encryptedDeviceToken = reader.bytes(); break; } - case 5: { + case 5: { message.username = reader.string(); break; } - case 6: { + case 6: { message.encryptedLoginToken = reader.bytes(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -48710,8 +50530,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ PasskeyAuthenticationRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -48724,41 +50543,48 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ PasskeyAuthenticationRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; let properties = {}; - if (message.authenticatorAttachment != null && message.hasOwnProperty("authenticatorAttachment")) + if (message.authenticatorAttachment != null && message.hasOwnProperty('authenticatorAttachment')) switch (message.authenticatorAttachment) { - default: - return "authenticatorAttachment: enum value expected"; - case 0: - case 1: - case 2: - break; + default: + return 'authenticatorAttachment: enum value expected'; + case 0: + case 1: + case 2: + break; } - if (message.passkeyPurpose != null && message.hasOwnProperty("passkeyPurpose")) + if (message.passkeyPurpose != null && message.hasOwnProperty('passkeyPurpose')) switch (message.passkeyPurpose) { - default: - return "passkeyPurpose: enum value expected"; - case 0: - case 1: - break; + default: + return 'passkeyPurpose: enum value expected'; + case 0: + case 1: + break; } - if (message.clientVersion != null && message.hasOwnProperty("clientVersion")) - if (!$util.isString(message.clientVersion)) - return "clientVersion: string expected"; - if (message.encryptedDeviceToken != null && message.hasOwnProperty("encryptedDeviceToken")) - if (!(message.encryptedDeviceToken && typeof message.encryptedDeviceToken.length === "number" || $util.isString(message.encryptedDeviceToken))) - return "encryptedDeviceToken: buffer expected"; - if (message.username != null && message.hasOwnProperty("username")) { + if (message.clientVersion != null && message.hasOwnProperty('clientVersion')) + if (!$util.isString(message.clientVersion)) return 'clientVersion: string expected'; + if (message.encryptedDeviceToken != null && message.hasOwnProperty('encryptedDeviceToken')) + if ( + !( + (message.encryptedDeviceToken && typeof message.encryptedDeviceToken.length === 'number') || + $util.isString(message.encryptedDeviceToken) + ) + ) + return 'encryptedDeviceToken: buffer expected'; + if (message.username != null && message.hasOwnProperty('username')) { properties._username = 1; - if (!$util.isString(message.username)) - return "username: string expected"; + if (!$util.isString(message.username)) return 'username: string expected'; } - if (message.encryptedLoginToken != null && message.hasOwnProperty("encryptedLoginToken")) { + if (message.encryptedLoginToken != null && message.hasOwnProperty('encryptedLoginToken')) { properties._encryptedLoginToken = 1; - if (!(message.encryptedLoginToken && typeof message.encryptedLoginToken.length === "number" || $util.isString(message.encryptedLoginToken))) - return "encryptedLoginToken: buffer expected"; + if ( + !( + (message.encryptedLoginToken && typeof message.encryptedLoginToken.length === 'number') || + $util.isString(message.encryptedLoginToken) + ) + ) + return 'encryptedLoginToken: buffer expected'; } return null; }; @@ -48772,57 +50598,66 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.PasskeyAuthenticationRequest} PasskeyAuthenticationRequest */ PasskeyAuthenticationRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.PasskeyAuthenticationRequest) - return object; + if (object instanceof $root.Authentication.PasskeyAuthenticationRequest) return object; let message = new $root.Authentication.PasskeyAuthenticationRequest(); switch (object.authenticatorAttachment) { - default: - if (typeof object.authenticatorAttachment === "number") { - message.authenticatorAttachment = object.authenticatorAttachment; - break; - } - break; - case "CROSS_PLATFORM": - case 0: - message.authenticatorAttachment = 0; - break; - case "PLATFORM": - case 1: - message.authenticatorAttachment = 1; - break; - case "ALL_SUPPORTED": - case 2: - message.authenticatorAttachment = 2; - break; + default: + if (typeof object.authenticatorAttachment === 'number') { + message.authenticatorAttachment = object.authenticatorAttachment; + break; + } + break; + case 'CROSS_PLATFORM': + case 0: + message.authenticatorAttachment = 0; + break; + case 'PLATFORM': + case 1: + message.authenticatorAttachment = 1; + break; + case 'ALL_SUPPORTED': + case 2: + message.authenticatorAttachment = 2; + break; } switch (object.passkeyPurpose) { - default: - if (typeof object.passkeyPurpose === "number") { - message.passkeyPurpose = object.passkeyPurpose; - break; - } - break; - case "PK_LOGIN": - case 0: - message.passkeyPurpose = 0; - break; - case "PK_REAUTH": - case 1: - message.passkeyPurpose = 1; - break; - } - if (object.clientVersion != null) - message.clientVersion = String(object.clientVersion); + default: + if (typeof object.passkeyPurpose === 'number') { + message.passkeyPurpose = object.passkeyPurpose; + break; + } + break; + case 'PK_LOGIN': + case 0: + message.passkeyPurpose = 0; + break; + case 'PK_REAUTH': + case 1: + message.passkeyPurpose = 1; + break; + } + if (object.clientVersion != null) message.clientVersion = String(object.clientVersion); if (object.encryptedDeviceToken != null) - if (typeof object.encryptedDeviceToken === "string") - $util.base64.decode(object.encryptedDeviceToken, message.encryptedDeviceToken = $util.newBuffer($util.base64.length(object.encryptedDeviceToken)), 0); + if (typeof object.encryptedDeviceToken === 'string') + $util.base64.decode( + object.encryptedDeviceToken, + (message.encryptedDeviceToken = $util.newBuffer( + $util.base64.length(object.encryptedDeviceToken) + )), + 0 + ); else if (object.encryptedDeviceToken.length >= 0) message.encryptedDeviceToken = object.encryptedDeviceToken; - if (object.username != null) - message.username = String(object.username); + if (object.username != null) message.username = String(object.username); if (object.encryptedLoginToken != null) - if (typeof object.encryptedLoginToken === "string") - $util.base64.decode(object.encryptedLoginToken, message.encryptedLoginToken = $util.newBuffer($util.base64.length(object.encryptedLoginToken)), 0); + if (typeof object.encryptedLoginToken === 'string') + $util.base64.decode( + object.encryptedLoginToken, + (message.encryptedLoginToken = $util.newBuffer( + $util.base64.length(object.encryptedLoginToken) + )), + 0 + ); else if (object.encryptedLoginToken.length >= 0) message.encryptedLoginToken = object.encryptedLoginToken; return message; @@ -48838,38 +50673,54 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ PasskeyAuthenticationRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - object.authenticatorAttachment = options.enums === String ? "CROSS_PLATFORM" : 0; - object.passkeyPurpose = options.enums === String ? "PK_LOGIN" : 0; - object.clientVersion = ""; - if (options.bytes === String) - object.encryptedDeviceToken = ""; + object.authenticatorAttachment = options.enums === String ? 'CROSS_PLATFORM' : 0; + object.passkeyPurpose = options.enums === String ? 'PK_LOGIN' : 0; + object.clientVersion = ''; + if (options.bytes === String) object.encryptedDeviceToken = ''; else { object.encryptedDeviceToken = []; if (options.bytes !== Array) object.encryptedDeviceToken = $util.newBuffer(object.encryptedDeviceToken); } } - if (message.authenticatorAttachment != null && message.hasOwnProperty("authenticatorAttachment")) - object.authenticatorAttachment = options.enums === String ? $root.Authentication.AuthenticatorAttachment[message.authenticatorAttachment] === undefined ? message.authenticatorAttachment : $root.Authentication.AuthenticatorAttachment[message.authenticatorAttachment] : message.authenticatorAttachment; - if (message.passkeyPurpose != null && message.hasOwnProperty("passkeyPurpose")) - object.passkeyPurpose = options.enums === String ? $root.Authentication.PasskeyPurpose[message.passkeyPurpose] === undefined ? message.passkeyPurpose : $root.Authentication.PasskeyPurpose[message.passkeyPurpose] : message.passkeyPurpose; - if (message.clientVersion != null && message.hasOwnProperty("clientVersion")) + if (message.authenticatorAttachment != null && message.hasOwnProperty('authenticatorAttachment')) + object.authenticatorAttachment = + options.enums === String + ? $root.Authentication.AuthenticatorAttachment[message.authenticatorAttachment] === undefined + ? message.authenticatorAttachment + : $root.Authentication.AuthenticatorAttachment[message.authenticatorAttachment] + : message.authenticatorAttachment; + if (message.passkeyPurpose != null && message.hasOwnProperty('passkeyPurpose')) + object.passkeyPurpose = + options.enums === String + ? $root.Authentication.PasskeyPurpose[message.passkeyPurpose] === undefined + ? message.passkeyPurpose + : $root.Authentication.PasskeyPurpose[message.passkeyPurpose] + : message.passkeyPurpose; + if (message.clientVersion != null && message.hasOwnProperty('clientVersion')) object.clientVersion = message.clientVersion; - if (message.encryptedDeviceToken != null && message.hasOwnProperty("encryptedDeviceToken")) - object.encryptedDeviceToken = options.bytes === String ? $util.base64.encode(message.encryptedDeviceToken, 0, message.encryptedDeviceToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedDeviceToken) : message.encryptedDeviceToken; - if (message.username != null && message.hasOwnProperty("username")) { + if (message.encryptedDeviceToken != null && message.hasOwnProperty('encryptedDeviceToken')) + object.encryptedDeviceToken = + options.bytes === String + ? $util.base64.encode(message.encryptedDeviceToken, 0, message.encryptedDeviceToken.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.encryptedDeviceToken) + : message.encryptedDeviceToken; + if (message.username != null && message.hasOwnProperty('username')) { object.username = message.username; - if (options.oneofs) - object._username = "username"; + if (options.oneofs) object._username = 'username'; } - if (message.encryptedLoginToken != null && message.hasOwnProperty("encryptedLoginToken")) { - object.encryptedLoginToken = options.bytes === String ? $util.base64.encode(message.encryptedLoginToken, 0, message.encryptedLoginToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedLoginToken) : message.encryptedLoginToken; - if (options.oneofs) - object._encryptedLoginToken = "encryptedLoginToken"; + if (message.encryptedLoginToken != null && message.hasOwnProperty('encryptedLoginToken')) { + object.encryptedLoginToken = + options.bytes === String + ? $util.base64.encode(message.encryptedLoginToken, 0, message.encryptedLoginToken.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.encryptedLoginToken) + : message.encryptedLoginToken; + if (options.oneofs) object._encryptedLoginToken = 'encryptedLoginToken'; } return object; }; @@ -48895,16 +50746,15 @@ export const Authentication = $root.Authentication = (() => { */ PasskeyAuthenticationRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.PasskeyAuthenticationRequest"; + return typeUrlPrefix + '/Authentication.PasskeyAuthenticationRequest'; }; return PasskeyAuthenticationRequest; })(); - Authentication.PasskeyAuthenticationResponse = (function() { - + Authentication.PasskeyAuthenticationResponse = (function () { /** * Properties of a PasskeyAuthenticationResponse. * @memberof Authentication @@ -48925,8 +50775,7 @@ export const Authentication = $root.Authentication = (() => { function PasskeyAuthenticationResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -48935,7 +50784,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.PasskeyAuthenticationResponse * @instance */ - PasskeyAuthenticationResponse.prototype.pkRequestOptions = ""; + PasskeyAuthenticationResponse.prototype.pkRequestOptions = ''; /** * PasskeyAuthenticationResponse challengeToken. @@ -48962,9 +50811,9 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.PasskeyAuthenticationResponse * @instance */ - Object.defineProperty(PasskeyAuthenticationResponse.prototype, "_encryptedLoginToken", { - get: $util.oneOfGetter($oneOfFields = ["encryptedLoginToken"]), - set: $util.oneOfSetter($oneOfFields) + Object.defineProperty(PasskeyAuthenticationResponse.prototype, '_encryptedLoginToken', { + get: $util.oneOfGetter(($oneOfFields = ['encryptedLoginToken'])), + set: $util.oneOfSetter($oneOfFields), }); /** @@ -48989,14 +50838,13 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ PasskeyAuthenticationResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.pkRequestOptions != null && Object.hasOwnProperty.call(message, "pkRequestOptions")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.pkRequestOptions); - if (message.challengeToken != null && Object.hasOwnProperty.call(message, "challengeToken")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.challengeToken); - if (message.encryptedLoginToken != null && Object.hasOwnProperty.call(message, "encryptedLoginToken")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.encryptedLoginToken); + if (!writer) writer = $Writer.create(); + if (message.pkRequestOptions != null && Object.hasOwnProperty.call(message, 'pkRequestOptions')) + writer.uint32(/* id 1, wireType 2 =*/ 10).string(message.pkRequestOptions); + if (message.challengeToken != null && Object.hasOwnProperty.call(message, 'challengeToken')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.challengeToken); + if (message.encryptedLoginToken != null && Object.hasOwnProperty.call(message, 'encryptedLoginToken')) + writer.uint32(/* id 3, wireType 2 =*/ 26).bytes(message.encryptedLoginToken); return writer; }; @@ -49025,27 +50873,27 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ PasskeyAuthenticationResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.PasskeyAuthenticationResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.PasskeyAuthenticationResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.pkRequestOptions = reader.string(); break; } - case 2: { + case 2: { message.challengeToken = reader.bytes(); break; } - case 3: { + case 3: { message.encryptedLoginToken = reader.bytes(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -49062,8 +50910,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ PasskeyAuthenticationResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -49076,19 +50923,27 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ PasskeyAuthenticationResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; let properties = {}; - if (message.pkRequestOptions != null && message.hasOwnProperty("pkRequestOptions")) - if (!$util.isString(message.pkRequestOptions)) - return "pkRequestOptions: string expected"; - if (message.challengeToken != null && message.hasOwnProperty("challengeToken")) - if (!(message.challengeToken && typeof message.challengeToken.length === "number" || $util.isString(message.challengeToken))) - return "challengeToken: buffer expected"; - if (message.encryptedLoginToken != null && message.hasOwnProperty("encryptedLoginToken")) { + if (message.pkRequestOptions != null && message.hasOwnProperty('pkRequestOptions')) + if (!$util.isString(message.pkRequestOptions)) return 'pkRequestOptions: string expected'; + if (message.challengeToken != null && message.hasOwnProperty('challengeToken')) + if ( + !( + (message.challengeToken && typeof message.challengeToken.length === 'number') || + $util.isString(message.challengeToken) + ) + ) + return 'challengeToken: buffer expected'; + if (message.encryptedLoginToken != null && message.hasOwnProperty('encryptedLoginToken')) { properties._encryptedLoginToken = 1; - if (!(message.encryptedLoginToken && typeof message.encryptedLoginToken.length === "number" || $util.isString(message.encryptedLoginToken))) - return "encryptedLoginToken: buffer expected"; + if ( + !( + (message.encryptedLoginToken && typeof message.encryptedLoginToken.length === 'number') || + $util.isString(message.encryptedLoginToken) + ) + ) + return 'encryptedLoginToken: buffer expected'; } return null; }; @@ -49102,19 +50957,26 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.PasskeyAuthenticationResponse} PasskeyAuthenticationResponse */ PasskeyAuthenticationResponse.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.PasskeyAuthenticationResponse) - return object; + if (object instanceof $root.Authentication.PasskeyAuthenticationResponse) return object; let message = new $root.Authentication.PasskeyAuthenticationResponse(); - if (object.pkRequestOptions != null) - message.pkRequestOptions = String(object.pkRequestOptions); + if (object.pkRequestOptions != null) message.pkRequestOptions = String(object.pkRequestOptions); if (object.challengeToken != null) - if (typeof object.challengeToken === "string") - $util.base64.decode(object.challengeToken, message.challengeToken = $util.newBuffer($util.base64.length(object.challengeToken)), 0); - else if (object.challengeToken.length >= 0) - message.challengeToken = object.challengeToken; + if (typeof object.challengeToken === 'string') + $util.base64.decode( + object.challengeToken, + (message.challengeToken = $util.newBuffer($util.base64.length(object.challengeToken))), + 0 + ); + else if (object.challengeToken.length >= 0) message.challengeToken = object.challengeToken; if (object.encryptedLoginToken != null) - if (typeof object.encryptedLoginToken === "string") - $util.base64.decode(object.encryptedLoginToken, message.encryptedLoginToken = $util.newBuffer($util.base64.length(object.encryptedLoginToken)), 0); + if (typeof object.encryptedLoginToken === 'string') + $util.base64.decode( + object.encryptedLoginToken, + (message.encryptedLoginToken = $util.newBuffer( + $util.base64.length(object.encryptedLoginToken) + )), + 0 + ); else if (object.encryptedLoginToken.length >= 0) message.encryptedLoginToken = object.encryptedLoginToken; return message; @@ -49130,27 +50992,33 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ PasskeyAuthenticationResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - object.pkRequestOptions = ""; - if (options.bytes === String) - object.challengeToken = ""; + object.pkRequestOptions = ''; + if (options.bytes === String) object.challengeToken = ''; else { object.challengeToken = []; - if (options.bytes !== Array) - object.challengeToken = $util.newBuffer(object.challengeToken); + if (options.bytes !== Array) object.challengeToken = $util.newBuffer(object.challengeToken); } } - if (message.pkRequestOptions != null && message.hasOwnProperty("pkRequestOptions")) + if (message.pkRequestOptions != null && message.hasOwnProperty('pkRequestOptions')) object.pkRequestOptions = message.pkRequestOptions; - if (message.challengeToken != null && message.hasOwnProperty("challengeToken")) - object.challengeToken = options.bytes === String ? $util.base64.encode(message.challengeToken, 0, message.challengeToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.challengeToken) : message.challengeToken; - if (message.encryptedLoginToken != null && message.hasOwnProperty("encryptedLoginToken")) { - object.encryptedLoginToken = options.bytes === String ? $util.base64.encode(message.encryptedLoginToken, 0, message.encryptedLoginToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedLoginToken) : message.encryptedLoginToken; - if (options.oneofs) - object._encryptedLoginToken = "encryptedLoginToken"; + if (message.challengeToken != null && message.hasOwnProperty('challengeToken')) + object.challengeToken = + options.bytes === String + ? $util.base64.encode(message.challengeToken, 0, message.challengeToken.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.challengeToken) + : message.challengeToken; + if (message.encryptedLoginToken != null && message.hasOwnProperty('encryptedLoginToken')) { + object.encryptedLoginToken = + options.bytes === String + ? $util.base64.encode(message.encryptedLoginToken, 0, message.encryptedLoginToken.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.encryptedLoginToken) + : message.encryptedLoginToken; + if (options.oneofs) object._encryptedLoginToken = 'encryptedLoginToken'; } return object; }; @@ -49176,16 +51044,15 @@ export const Authentication = $root.Authentication = (() => { */ PasskeyAuthenticationResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.PasskeyAuthenticationResponse"; + return typeUrlPrefix + '/Authentication.PasskeyAuthenticationResponse'; }; return PasskeyAuthenticationResponse; })(); - Authentication.PasskeyValidationRequest = (function() { - + Authentication.PasskeyValidationRequest = (function () { /** * Properties of a PasskeyValidationRequest. * @memberof Authentication @@ -49207,8 +51074,7 @@ export const Authentication = $root.Authentication = (() => { function PasskeyValidationRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -49252,9 +51118,9 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.PasskeyValidationRequest * @instance */ - Object.defineProperty(PasskeyValidationRequest.prototype, "_encryptedLoginToken", { - get: $util.oneOfGetter($oneOfFields = ["encryptedLoginToken"]), - set: $util.oneOfSetter($oneOfFields) + Object.defineProperty(PasskeyValidationRequest.prototype, '_encryptedLoginToken', { + get: $util.oneOfGetter(($oneOfFields = ['encryptedLoginToken'])), + set: $util.oneOfSetter($oneOfFields), }); /** @@ -49279,16 +51145,15 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ PasskeyValidationRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.challengeToken != null && Object.hasOwnProperty.call(message, "challengeToken")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.challengeToken); - if (message.assertionResponse != null && Object.hasOwnProperty.call(message, "assertionResponse")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.assertionResponse); - if (message.passkeyPurpose != null && Object.hasOwnProperty.call(message, "passkeyPurpose")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.passkeyPurpose); - if (message.encryptedLoginToken != null && Object.hasOwnProperty.call(message, "encryptedLoginToken")) - writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.encryptedLoginToken); + if (!writer) writer = $Writer.create(); + if (message.challengeToken != null && Object.hasOwnProperty.call(message, 'challengeToken')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.challengeToken); + if (message.assertionResponse != null && Object.hasOwnProperty.call(message, 'assertionResponse')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.assertionResponse); + if (message.passkeyPurpose != null && Object.hasOwnProperty.call(message, 'passkeyPurpose')) + writer.uint32(/* id 3, wireType 0 =*/ 24).int32(message.passkeyPurpose); + if (message.encryptedLoginToken != null && Object.hasOwnProperty.call(message, 'encryptedLoginToken')) + writer.uint32(/* id 4, wireType 2 =*/ 34).bytes(message.encryptedLoginToken); return writer; }; @@ -49317,31 +51182,31 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ PasskeyValidationRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.PasskeyValidationRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.PasskeyValidationRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.challengeToken = reader.bytes(); break; } - case 2: { + case 2: { message.assertionResponse = reader.bytes(); break; } - case 3: { + case 3: { message.passkeyPurpose = reader.int32(); break; } - case 4: { + case 4: { message.encryptedLoginToken = reader.bytes(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -49358,8 +51223,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ PasskeyValidationRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -49372,27 +51236,41 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ PasskeyValidationRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; let properties = {}; - if (message.challengeToken != null && message.hasOwnProperty("challengeToken")) - if (!(message.challengeToken && typeof message.challengeToken.length === "number" || $util.isString(message.challengeToken))) - return "challengeToken: buffer expected"; - if (message.assertionResponse != null && message.hasOwnProperty("assertionResponse")) - if (!(message.assertionResponse && typeof message.assertionResponse.length === "number" || $util.isString(message.assertionResponse))) - return "assertionResponse: buffer expected"; - if (message.passkeyPurpose != null && message.hasOwnProperty("passkeyPurpose")) + if (message.challengeToken != null && message.hasOwnProperty('challengeToken')) + if ( + !( + (message.challengeToken && typeof message.challengeToken.length === 'number') || + $util.isString(message.challengeToken) + ) + ) + return 'challengeToken: buffer expected'; + if (message.assertionResponse != null && message.hasOwnProperty('assertionResponse')) + if ( + !( + (message.assertionResponse && typeof message.assertionResponse.length === 'number') || + $util.isString(message.assertionResponse) + ) + ) + return 'assertionResponse: buffer expected'; + if (message.passkeyPurpose != null && message.hasOwnProperty('passkeyPurpose')) switch (message.passkeyPurpose) { - default: - return "passkeyPurpose: enum value expected"; - case 0: - case 1: - break; + default: + return 'passkeyPurpose: enum value expected'; + case 0: + case 1: + break; } - if (message.encryptedLoginToken != null && message.hasOwnProperty("encryptedLoginToken")) { + if (message.encryptedLoginToken != null && message.hasOwnProperty('encryptedLoginToken')) { properties._encryptedLoginToken = 1; - if (!(message.encryptedLoginToken && typeof message.encryptedLoginToken.length === "number" || $util.isString(message.encryptedLoginToken))) - return "encryptedLoginToken: buffer expected"; + if ( + !( + (message.encryptedLoginToken && typeof message.encryptedLoginToken.length === 'number') || + $util.isString(message.encryptedLoginToken) + ) + ) + return 'encryptedLoginToken: buffer expected'; } return null; }; @@ -49406,38 +51284,49 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.PasskeyValidationRequest} PasskeyValidationRequest */ PasskeyValidationRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.PasskeyValidationRequest) - return object; + if (object instanceof $root.Authentication.PasskeyValidationRequest) return object; let message = new $root.Authentication.PasskeyValidationRequest(); if (object.challengeToken != null) - if (typeof object.challengeToken === "string") - $util.base64.decode(object.challengeToken, message.challengeToken = $util.newBuffer($util.base64.length(object.challengeToken)), 0); - else if (object.challengeToken.length >= 0) - message.challengeToken = object.challengeToken; + if (typeof object.challengeToken === 'string') + $util.base64.decode( + object.challengeToken, + (message.challengeToken = $util.newBuffer($util.base64.length(object.challengeToken))), + 0 + ); + else if (object.challengeToken.length >= 0) message.challengeToken = object.challengeToken; if (object.assertionResponse != null) - if (typeof object.assertionResponse === "string") - $util.base64.decode(object.assertionResponse, message.assertionResponse = $util.newBuffer($util.base64.length(object.assertionResponse)), 0); - else if (object.assertionResponse.length >= 0) - message.assertionResponse = object.assertionResponse; + if (typeof object.assertionResponse === 'string') + $util.base64.decode( + object.assertionResponse, + (message.assertionResponse = $util.newBuffer($util.base64.length(object.assertionResponse))), + 0 + ); + else if (object.assertionResponse.length >= 0) message.assertionResponse = object.assertionResponse; switch (object.passkeyPurpose) { - default: - if (typeof object.passkeyPurpose === "number") { - message.passkeyPurpose = object.passkeyPurpose; + default: + if (typeof object.passkeyPurpose === 'number') { + message.passkeyPurpose = object.passkeyPurpose; + break; + } + break; + case 'PK_LOGIN': + case 0: + message.passkeyPurpose = 0; + break; + case 'PK_REAUTH': + case 1: + message.passkeyPurpose = 1; break; - } - break; - case "PK_LOGIN": - case 0: - message.passkeyPurpose = 0; - break; - case "PK_REAUTH": - case 1: - message.passkeyPurpose = 1; - break; } if (object.encryptedLoginToken != null) - if (typeof object.encryptedLoginToken === "string") - $util.base64.decode(object.encryptedLoginToken, message.encryptedLoginToken = $util.newBuffer($util.base64.length(object.encryptedLoginToken)), 0); + if (typeof object.encryptedLoginToken === 'string') + $util.base64.decode( + object.encryptedLoginToken, + (message.encryptedLoginToken = $util.newBuffer( + $util.base64.length(object.encryptedLoginToken) + )), + 0 + ); else if (object.encryptedLoginToken.length >= 0) message.encryptedLoginToken = object.encryptedLoginToken; return message; @@ -49453,36 +51342,50 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ PasskeyValidationRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.challengeToken = ""; + if (options.bytes === String) object.challengeToken = ''; else { object.challengeToken = []; - if (options.bytes !== Array) - object.challengeToken = $util.newBuffer(object.challengeToken); + if (options.bytes !== Array) object.challengeToken = $util.newBuffer(object.challengeToken); } - if (options.bytes === String) - object.assertionResponse = ""; + if (options.bytes === String) object.assertionResponse = ''; else { object.assertionResponse = []; - if (options.bytes !== Array) - object.assertionResponse = $util.newBuffer(object.assertionResponse); - } - object.passkeyPurpose = options.enums === String ? "PK_LOGIN" : 0; - } - if (message.challengeToken != null && message.hasOwnProperty("challengeToken")) - object.challengeToken = options.bytes === String ? $util.base64.encode(message.challengeToken, 0, message.challengeToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.challengeToken) : message.challengeToken; - if (message.assertionResponse != null && message.hasOwnProperty("assertionResponse")) - object.assertionResponse = options.bytes === String ? $util.base64.encode(message.assertionResponse, 0, message.assertionResponse.length) : options.bytes === Array ? Array.prototype.slice.call(message.assertionResponse) : message.assertionResponse; - if (message.passkeyPurpose != null && message.hasOwnProperty("passkeyPurpose")) - object.passkeyPurpose = options.enums === String ? $root.Authentication.PasskeyPurpose[message.passkeyPurpose] === undefined ? message.passkeyPurpose : $root.Authentication.PasskeyPurpose[message.passkeyPurpose] : message.passkeyPurpose; - if (message.encryptedLoginToken != null && message.hasOwnProperty("encryptedLoginToken")) { - object.encryptedLoginToken = options.bytes === String ? $util.base64.encode(message.encryptedLoginToken, 0, message.encryptedLoginToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedLoginToken) : message.encryptedLoginToken; - if (options.oneofs) - object._encryptedLoginToken = "encryptedLoginToken"; + if (options.bytes !== Array) object.assertionResponse = $util.newBuffer(object.assertionResponse); + } + object.passkeyPurpose = options.enums === String ? 'PK_LOGIN' : 0; + } + if (message.challengeToken != null && message.hasOwnProperty('challengeToken')) + object.challengeToken = + options.bytes === String + ? $util.base64.encode(message.challengeToken, 0, message.challengeToken.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.challengeToken) + : message.challengeToken; + if (message.assertionResponse != null && message.hasOwnProperty('assertionResponse')) + object.assertionResponse = + options.bytes === String + ? $util.base64.encode(message.assertionResponse, 0, message.assertionResponse.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.assertionResponse) + : message.assertionResponse; + if (message.passkeyPurpose != null && message.hasOwnProperty('passkeyPurpose')) + object.passkeyPurpose = + options.enums === String + ? $root.Authentication.PasskeyPurpose[message.passkeyPurpose] === undefined + ? message.passkeyPurpose + : $root.Authentication.PasskeyPurpose[message.passkeyPurpose] + : message.passkeyPurpose; + if (message.encryptedLoginToken != null && message.hasOwnProperty('encryptedLoginToken')) { + object.encryptedLoginToken = + options.bytes === String + ? $util.base64.encode(message.encryptedLoginToken, 0, message.encryptedLoginToken.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.encryptedLoginToken) + : message.encryptedLoginToken; + if (options.oneofs) object._encryptedLoginToken = 'encryptedLoginToken'; } return object; }; @@ -49508,16 +51411,15 @@ export const Authentication = $root.Authentication = (() => { */ PasskeyValidationRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.PasskeyValidationRequest"; + return typeUrlPrefix + '/Authentication.PasskeyValidationRequest'; }; return PasskeyValidationRequest; })(); - Authentication.PasskeyValidationResponse = (function() { - + Authentication.PasskeyValidationResponse = (function () { /** * Properties of a PasskeyValidationResponse. * @memberof Authentication @@ -49537,8 +51439,7 @@ export const Authentication = $root.Authentication = (() => { function PasskeyValidationResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -49579,12 +51480,11 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ PasskeyValidationResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.isValid != null && Object.hasOwnProperty.call(message, "isValid")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.isValid); - if (message.encryptedLoginToken != null && Object.hasOwnProperty.call(message, "encryptedLoginToken")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.encryptedLoginToken); + if (!writer) writer = $Writer.create(); + if (message.isValid != null && Object.hasOwnProperty.call(message, 'isValid')) + writer.uint32(/* id 1, wireType 0 =*/ 8).bool(message.isValid); + if (message.encryptedLoginToken != null && Object.hasOwnProperty.call(message, 'encryptedLoginToken')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.encryptedLoginToken); return writer; }; @@ -49613,23 +51513,23 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ PasskeyValidationResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.PasskeyValidationResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.PasskeyValidationResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.isValid = reader.bool(); break; } - case 2: { + case 2: { message.encryptedLoginToken = reader.bytes(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -49646,8 +51546,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ PasskeyValidationResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -49660,14 +51559,17 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ PasskeyValidationResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.isValid != null && message.hasOwnProperty("isValid")) - if (typeof message.isValid !== "boolean") - return "isValid: boolean expected"; - if (message.encryptedLoginToken != null && message.hasOwnProperty("encryptedLoginToken")) - if (!(message.encryptedLoginToken && typeof message.encryptedLoginToken.length === "number" || $util.isString(message.encryptedLoginToken))) - return "encryptedLoginToken: buffer expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.isValid != null && message.hasOwnProperty('isValid')) + if (typeof message.isValid !== 'boolean') return 'isValid: boolean expected'; + if (message.encryptedLoginToken != null && message.hasOwnProperty('encryptedLoginToken')) + if ( + !( + (message.encryptedLoginToken && typeof message.encryptedLoginToken.length === 'number') || + $util.isString(message.encryptedLoginToken) + ) + ) + return 'encryptedLoginToken: buffer expected'; return null; }; @@ -49680,14 +51582,18 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.PasskeyValidationResponse} PasskeyValidationResponse */ PasskeyValidationResponse.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.PasskeyValidationResponse) - return object; + if (object instanceof $root.Authentication.PasskeyValidationResponse) return object; let message = new $root.Authentication.PasskeyValidationResponse(); - if (object.isValid != null) - message.isValid = Boolean(object.isValid); + if (object.isValid != null) message.isValid = Boolean(object.isValid); if (object.encryptedLoginToken != null) - if (typeof object.encryptedLoginToken === "string") - $util.base64.decode(object.encryptedLoginToken, message.encryptedLoginToken = $util.newBuffer($util.base64.length(object.encryptedLoginToken)), 0); + if (typeof object.encryptedLoginToken === 'string') + $util.base64.decode( + object.encryptedLoginToken, + (message.encryptedLoginToken = $util.newBuffer( + $util.base64.length(object.encryptedLoginToken) + )), + 0 + ); else if (object.encryptedLoginToken.length >= 0) message.encryptedLoginToken = object.encryptedLoginToken; return message; @@ -49703,23 +51609,25 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ PasskeyValidationResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { object.isValid = false; - if (options.bytes === String) - object.encryptedLoginToken = ""; + if (options.bytes === String) object.encryptedLoginToken = ''; else { object.encryptedLoginToken = []; if (options.bytes !== Array) object.encryptedLoginToken = $util.newBuffer(object.encryptedLoginToken); } } - if (message.isValid != null && message.hasOwnProperty("isValid")) - object.isValid = message.isValid; - if (message.encryptedLoginToken != null && message.hasOwnProperty("encryptedLoginToken")) - object.encryptedLoginToken = options.bytes === String ? $util.base64.encode(message.encryptedLoginToken, 0, message.encryptedLoginToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedLoginToken) : message.encryptedLoginToken; + if (message.isValid != null && message.hasOwnProperty('isValid')) object.isValid = message.isValid; + if (message.encryptedLoginToken != null && message.hasOwnProperty('encryptedLoginToken')) + object.encryptedLoginToken = + options.bytes === String + ? $util.base64.encode(message.encryptedLoginToken, 0, message.encryptedLoginToken.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.encryptedLoginToken) + : message.encryptedLoginToken; return object; }; @@ -49744,16 +51652,15 @@ export const Authentication = $root.Authentication = (() => { */ PasskeyValidationResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.PasskeyValidationResponse"; + return typeUrlPrefix + '/Authentication.PasskeyValidationResponse'; }; return PasskeyValidationResponse; })(); - Authentication.UpdatePasskeyRequest = (function() { - + Authentication.UpdatePasskeyRequest = (function () { /** * Properties of an UpdatePasskeyRequest. * @memberof Authentication @@ -49774,8 +51681,7 @@ export const Authentication = $root.Authentication = (() => { function UpdatePasskeyRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -49811,9 +51717,9 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.UpdatePasskeyRequest * @instance */ - Object.defineProperty(UpdatePasskeyRequest.prototype, "_friendlyName", { - get: $util.oneOfGetter($oneOfFields = ["friendlyName"]), - set: $util.oneOfSetter($oneOfFields) + Object.defineProperty(UpdatePasskeyRequest.prototype, '_friendlyName', { + get: $util.oneOfGetter(($oneOfFields = ['friendlyName'])), + set: $util.oneOfSetter($oneOfFields), }); /** @@ -49838,14 +51744,13 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ UpdatePasskeyRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.userId != null && Object.hasOwnProperty.call(message, "userId")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.userId); - if (message.credentialId != null && Object.hasOwnProperty.call(message, "credentialId")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.credentialId); - if (message.friendlyName != null && Object.hasOwnProperty.call(message, "friendlyName")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.friendlyName); + if (!writer) writer = $Writer.create(); + if (message.userId != null && Object.hasOwnProperty.call(message, 'userId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int32(message.userId); + if (message.credentialId != null && Object.hasOwnProperty.call(message, 'credentialId')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.credentialId); + if (message.friendlyName != null && Object.hasOwnProperty.call(message, 'friendlyName')) + writer.uint32(/* id 3, wireType 2 =*/ 26).string(message.friendlyName); return writer; }; @@ -49874,27 +51779,27 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ UpdatePasskeyRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.UpdatePasskeyRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.UpdatePasskeyRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.userId = reader.int32(); break; } - case 2: { + case 2: { message.credentialId = reader.bytes(); break; } - case 3: { + case 3: { message.friendlyName = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -49911,8 +51816,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ UpdatePasskeyRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -49925,19 +51829,21 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ UpdatePasskeyRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; let properties = {}; - if (message.userId != null && message.hasOwnProperty("userId")) - if (!$util.isInteger(message.userId)) - return "userId: integer expected"; - if (message.credentialId != null && message.hasOwnProperty("credentialId")) - if (!(message.credentialId && typeof message.credentialId.length === "number" || $util.isString(message.credentialId))) - return "credentialId: buffer expected"; - if (message.friendlyName != null && message.hasOwnProperty("friendlyName")) { + if (message.userId != null && message.hasOwnProperty('userId')) + if (!$util.isInteger(message.userId)) return 'userId: integer expected'; + if (message.credentialId != null && message.hasOwnProperty('credentialId')) + if ( + !( + (message.credentialId && typeof message.credentialId.length === 'number') || + $util.isString(message.credentialId) + ) + ) + return 'credentialId: buffer expected'; + if (message.friendlyName != null && message.hasOwnProperty('friendlyName')) { properties._friendlyName = 1; - if (!$util.isString(message.friendlyName)) - return "friendlyName: string expected"; + if (!$util.isString(message.friendlyName)) return 'friendlyName: string expected'; } return null; }; @@ -49951,18 +51857,18 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.UpdatePasskeyRequest} UpdatePasskeyRequest */ UpdatePasskeyRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.UpdatePasskeyRequest) - return object; + if (object instanceof $root.Authentication.UpdatePasskeyRequest) return object; let message = new $root.Authentication.UpdatePasskeyRequest(); - if (object.userId != null) - message.userId = object.userId | 0; + if (object.userId != null) message.userId = object.userId | 0; if (object.credentialId != null) - if (typeof object.credentialId === "string") - $util.base64.decode(object.credentialId, message.credentialId = $util.newBuffer($util.base64.length(object.credentialId)), 0); - else if (object.credentialId.length >= 0) - message.credentialId = object.credentialId; - if (object.friendlyName != null) - message.friendlyName = String(object.friendlyName); + if (typeof object.credentialId === 'string') + $util.base64.decode( + object.credentialId, + (message.credentialId = $util.newBuffer($util.base64.length(object.credentialId))), + 0 + ); + else if (object.credentialId.length >= 0) message.credentialId = object.credentialId; + if (object.friendlyName != null) message.friendlyName = String(object.friendlyName); return message; }; @@ -49976,27 +51882,27 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ UpdatePasskeyRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { object.userId = 0; - if (options.bytes === String) - object.credentialId = ""; + if (options.bytes === String) object.credentialId = ''; else { object.credentialId = []; - if (options.bytes !== Array) - object.credentialId = $util.newBuffer(object.credentialId); - } - } - if (message.userId != null && message.hasOwnProperty("userId")) - object.userId = message.userId; - if (message.credentialId != null && message.hasOwnProperty("credentialId")) - object.credentialId = options.bytes === String ? $util.base64.encode(message.credentialId, 0, message.credentialId.length) : options.bytes === Array ? Array.prototype.slice.call(message.credentialId) : message.credentialId; - if (message.friendlyName != null && message.hasOwnProperty("friendlyName")) { + if (options.bytes !== Array) object.credentialId = $util.newBuffer(object.credentialId); + } + } + if (message.userId != null && message.hasOwnProperty('userId')) object.userId = message.userId; + if (message.credentialId != null && message.hasOwnProperty('credentialId')) + object.credentialId = + options.bytes === String + ? $util.base64.encode(message.credentialId, 0, message.credentialId.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.credentialId) + : message.credentialId; + if (message.friendlyName != null && message.hasOwnProperty('friendlyName')) { object.friendlyName = message.friendlyName; - if (options.oneofs) - object._friendlyName = "friendlyName"; + if (options.oneofs) object._friendlyName = 'friendlyName'; } return object; }; @@ -50022,16 +51928,15 @@ export const Authentication = $root.Authentication = (() => { */ UpdatePasskeyRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.UpdatePasskeyRequest"; + return typeUrlPrefix + '/Authentication.UpdatePasskeyRequest'; }; return UpdatePasskeyRequest; })(); - Authentication.PasskeyListRequest = (function() { - + Authentication.PasskeyListRequest = (function () { /** * Properties of a PasskeyListRequest. * @memberof Authentication @@ -50050,8 +51955,7 @@ export const Authentication = $root.Authentication = (() => { function PasskeyListRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -50084,10 +51988,9 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ PasskeyListRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.includeDisabled != null && Object.hasOwnProperty.call(message, "includeDisabled")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.includeDisabled); + if (!writer) writer = $Writer.create(); + if (message.includeDisabled != null && Object.hasOwnProperty.call(message, 'includeDisabled')) + writer.uint32(/* id 1, wireType 0 =*/ 8).bool(message.includeDisabled); return writer; }; @@ -50116,19 +52019,19 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ PasskeyListRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.PasskeyListRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.PasskeyListRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.includeDisabled = reader.bool(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -50145,8 +52048,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ PasskeyListRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -50159,11 +52061,9 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ PasskeyListRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.includeDisabled != null && message.hasOwnProperty("includeDisabled")) - if (typeof message.includeDisabled !== "boolean") - return "includeDisabled: boolean expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.includeDisabled != null && message.hasOwnProperty('includeDisabled')) + if (typeof message.includeDisabled !== 'boolean') return 'includeDisabled: boolean expected'; return null; }; @@ -50176,11 +52076,9 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.PasskeyListRequest} PasskeyListRequest */ PasskeyListRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.PasskeyListRequest) - return object; + if (object instanceof $root.Authentication.PasskeyListRequest) return object; let message = new $root.Authentication.PasskeyListRequest(); - if (object.includeDisabled != null) - message.includeDisabled = Boolean(object.includeDisabled); + if (object.includeDisabled != null) message.includeDisabled = Boolean(object.includeDisabled); return message; }; @@ -50194,12 +52092,10 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ PasskeyListRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.defaults) - object.includeDisabled = false; - if (message.includeDisabled != null && message.hasOwnProperty("includeDisabled")) + if (options.defaults) object.includeDisabled = false; + if (message.includeDisabled != null && message.hasOwnProperty('includeDisabled')) object.includeDisabled = message.includeDisabled; return object; }; @@ -50225,16 +52121,15 @@ export const Authentication = $root.Authentication = (() => { */ PasskeyListRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.PasskeyListRequest"; + return typeUrlPrefix + '/Authentication.PasskeyListRequest'; }; return PasskeyListRequest; })(); - Authentication.PasskeyInfo = (function() { - + Authentication.PasskeyInfo = (function () { /** * Properties of a PasskeyInfo. * @memberof Authentication @@ -50259,8 +52154,7 @@ export const Authentication = $root.Authentication = (() => { function PasskeyInfo(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -50285,7 +52179,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.PasskeyInfo * @instance */ - PasskeyInfo.prototype.friendlyName = ""; + PasskeyInfo.prototype.friendlyName = ''; /** * PasskeyInfo AAGUID. @@ -50293,7 +52187,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.PasskeyInfo * @instance */ - PasskeyInfo.prototype.AAGUID = ""; + PasskeyInfo.prototype.AAGUID = ''; /** * PasskeyInfo createdAtMillis. @@ -50301,7 +52195,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.PasskeyInfo * @instance */ - PasskeyInfo.prototype.createdAtMillis = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + PasskeyInfo.prototype.createdAtMillis = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * PasskeyInfo lastUsedMillis. @@ -50309,7 +52203,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.PasskeyInfo * @instance */ - PasskeyInfo.prototype.lastUsedMillis = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + PasskeyInfo.prototype.lastUsedMillis = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * PasskeyInfo disabledAtMillis. @@ -50317,7 +52211,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.PasskeyInfo * @instance */ - PasskeyInfo.prototype.disabledAtMillis = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + PasskeyInfo.prototype.disabledAtMillis = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * Creates a new PasskeyInfo instance using the specified properties. @@ -50341,22 +52235,21 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ PasskeyInfo.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.userId != null && Object.hasOwnProperty.call(message, "userId")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.userId); - if (message.credentialId != null && Object.hasOwnProperty.call(message, "credentialId")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.credentialId); - if (message.friendlyName != null && Object.hasOwnProperty.call(message, "friendlyName")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.friendlyName); - if (message.AAGUID != null && Object.hasOwnProperty.call(message, "AAGUID")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.AAGUID); - if (message.createdAtMillis != null && Object.hasOwnProperty.call(message, "createdAtMillis")) - writer.uint32(/* id 5, wireType 0 =*/40).int64(message.createdAtMillis); - if (message.lastUsedMillis != null && Object.hasOwnProperty.call(message, "lastUsedMillis")) - writer.uint32(/* id 6, wireType 0 =*/48).int64(message.lastUsedMillis); - if (message.disabledAtMillis != null && Object.hasOwnProperty.call(message, "disabledAtMillis")) - writer.uint32(/* id 7, wireType 0 =*/56).int64(message.disabledAtMillis); + if (!writer) writer = $Writer.create(); + if (message.userId != null && Object.hasOwnProperty.call(message, 'userId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int32(message.userId); + if (message.credentialId != null && Object.hasOwnProperty.call(message, 'credentialId')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.credentialId); + if (message.friendlyName != null && Object.hasOwnProperty.call(message, 'friendlyName')) + writer.uint32(/* id 3, wireType 2 =*/ 26).string(message.friendlyName); + if (message.AAGUID != null && Object.hasOwnProperty.call(message, 'AAGUID')) + writer.uint32(/* id 4, wireType 2 =*/ 34).string(message.AAGUID); + if (message.createdAtMillis != null && Object.hasOwnProperty.call(message, 'createdAtMillis')) + writer.uint32(/* id 5, wireType 0 =*/ 40).int64(message.createdAtMillis); + if (message.lastUsedMillis != null && Object.hasOwnProperty.call(message, 'lastUsedMillis')) + writer.uint32(/* id 6, wireType 0 =*/ 48).int64(message.lastUsedMillis); + if (message.disabledAtMillis != null && Object.hasOwnProperty.call(message, 'disabledAtMillis')) + writer.uint32(/* id 7, wireType 0 =*/ 56).int64(message.disabledAtMillis); return writer; }; @@ -50385,43 +52278,43 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ PasskeyInfo.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.PasskeyInfo(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.PasskeyInfo(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.userId = reader.int32(); break; } - case 2: { + case 2: { message.credentialId = reader.bytes(); break; } - case 3: { + case 3: { message.friendlyName = reader.string(); break; } - case 4: { + case 4: { message.AAGUID = reader.string(); break; } - case 5: { + case 5: { message.createdAtMillis = reader.int64(); break; } - case 6: { + case 6: { message.lastUsedMillis = reader.int64(); break; } - case 7: { + case 7: { message.disabledAtMillis = reader.int64(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -50438,8 +52331,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ PasskeyInfo.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -50452,29 +52344,51 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ PasskeyInfo.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.userId != null && message.hasOwnProperty("userId")) - if (!$util.isInteger(message.userId)) - return "userId: integer expected"; - if (message.credentialId != null && message.hasOwnProperty("credentialId")) - if (!(message.credentialId && typeof message.credentialId.length === "number" || $util.isString(message.credentialId))) - return "credentialId: buffer expected"; - if (message.friendlyName != null && message.hasOwnProperty("friendlyName")) - if (!$util.isString(message.friendlyName)) - return "friendlyName: string expected"; - if (message.AAGUID != null && message.hasOwnProperty("AAGUID")) - if (!$util.isString(message.AAGUID)) - return "AAGUID: string expected"; - if (message.createdAtMillis != null && message.hasOwnProperty("createdAtMillis")) - if (!$util.isInteger(message.createdAtMillis) && !(message.createdAtMillis && $util.isInteger(message.createdAtMillis.low) && $util.isInteger(message.createdAtMillis.high))) - return "createdAtMillis: integer|Long expected"; - if (message.lastUsedMillis != null && message.hasOwnProperty("lastUsedMillis")) - if (!$util.isInteger(message.lastUsedMillis) && !(message.lastUsedMillis && $util.isInteger(message.lastUsedMillis.low) && $util.isInteger(message.lastUsedMillis.high))) - return "lastUsedMillis: integer|Long expected"; - if (message.disabledAtMillis != null && message.hasOwnProperty("disabledAtMillis")) - if (!$util.isInteger(message.disabledAtMillis) && !(message.disabledAtMillis && $util.isInteger(message.disabledAtMillis.low) && $util.isInteger(message.disabledAtMillis.high))) - return "disabledAtMillis: integer|Long expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.userId != null && message.hasOwnProperty('userId')) + if (!$util.isInteger(message.userId)) return 'userId: integer expected'; + if (message.credentialId != null && message.hasOwnProperty('credentialId')) + if ( + !( + (message.credentialId && typeof message.credentialId.length === 'number') || + $util.isString(message.credentialId) + ) + ) + return 'credentialId: buffer expected'; + if (message.friendlyName != null && message.hasOwnProperty('friendlyName')) + if (!$util.isString(message.friendlyName)) return 'friendlyName: string expected'; + if (message.AAGUID != null && message.hasOwnProperty('AAGUID')) + if (!$util.isString(message.AAGUID)) return 'AAGUID: string expected'; + if (message.createdAtMillis != null && message.hasOwnProperty('createdAtMillis')) + if ( + !$util.isInteger(message.createdAtMillis) && + !( + message.createdAtMillis && + $util.isInteger(message.createdAtMillis.low) && + $util.isInteger(message.createdAtMillis.high) + ) + ) + return 'createdAtMillis: integer|Long expected'; + if (message.lastUsedMillis != null && message.hasOwnProperty('lastUsedMillis')) + if ( + !$util.isInteger(message.lastUsedMillis) && + !( + message.lastUsedMillis && + $util.isInteger(message.lastUsedMillis.low) && + $util.isInteger(message.lastUsedMillis.high) + ) + ) + return 'lastUsedMillis: integer|Long expected'; + if (message.disabledAtMillis != null && message.hasOwnProperty('disabledAtMillis')) + if ( + !$util.isInteger(message.disabledAtMillis) && + !( + message.disabledAtMillis && + $util.isInteger(message.disabledAtMillis.low) && + $util.isInteger(message.disabledAtMillis.high) + ) + ) + return 'disabledAtMillis: integer|Long expected'; return null; }; @@ -50487,47 +52401,52 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.PasskeyInfo} PasskeyInfo */ PasskeyInfo.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.PasskeyInfo) - return object; + if (object instanceof $root.Authentication.PasskeyInfo) return object; let message = new $root.Authentication.PasskeyInfo(); - if (object.userId != null) - message.userId = object.userId | 0; + if (object.userId != null) message.userId = object.userId | 0; if (object.credentialId != null) - if (typeof object.credentialId === "string") - $util.base64.decode(object.credentialId, message.credentialId = $util.newBuffer($util.base64.length(object.credentialId)), 0); - else if (object.credentialId.length >= 0) - message.credentialId = object.credentialId; - if (object.friendlyName != null) - message.friendlyName = String(object.friendlyName); - if (object.AAGUID != null) - message.AAGUID = String(object.AAGUID); + if (typeof object.credentialId === 'string') + $util.base64.decode( + object.credentialId, + (message.credentialId = $util.newBuffer($util.base64.length(object.credentialId))), + 0 + ); + else if (object.credentialId.length >= 0) message.credentialId = object.credentialId; + if (object.friendlyName != null) message.friendlyName = String(object.friendlyName); + if (object.AAGUID != null) message.AAGUID = String(object.AAGUID); if (object.createdAtMillis != null) if ($util.Long) (message.createdAtMillis = $util.Long.fromValue(object.createdAtMillis)).unsigned = false; - else if (typeof object.createdAtMillis === "string") + else if (typeof object.createdAtMillis === 'string') message.createdAtMillis = parseInt(object.createdAtMillis, 10); - else if (typeof object.createdAtMillis === "number") - message.createdAtMillis = object.createdAtMillis; - else if (typeof object.createdAtMillis === "object") - message.createdAtMillis = new $util.LongBits(object.createdAtMillis.low >>> 0, object.createdAtMillis.high >>> 0).toNumber(); + else if (typeof object.createdAtMillis === 'number') message.createdAtMillis = object.createdAtMillis; + else if (typeof object.createdAtMillis === 'object') + message.createdAtMillis = new $util.LongBits( + object.createdAtMillis.low >>> 0, + object.createdAtMillis.high >>> 0 + ).toNumber(); if (object.lastUsedMillis != null) - if ($util.Long) - (message.lastUsedMillis = $util.Long.fromValue(object.lastUsedMillis)).unsigned = false; - else if (typeof object.lastUsedMillis === "string") + if ($util.Long) (message.lastUsedMillis = $util.Long.fromValue(object.lastUsedMillis)).unsigned = false; + else if (typeof object.lastUsedMillis === 'string') message.lastUsedMillis = parseInt(object.lastUsedMillis, 10); - else if (typeof object.lastUsedMillis === "number") - message.lastUsedMillis = object.lastUsedMillis; - else if (typeof object.lastUsedMillis === "object") - message.lastUsedMillis = new $util.LongBits(object.lastUsedMillis.low >>> 0, object.lastUsedMillis.high >>> 0).toNumber(); + else if (typeof object.lastUsedMillis === 'number') message.lastUsedMillis = object.lastUsedMillis; + else if (typeof object.lastUsedMillis === 'object') + message.lastUsedMillis = new $util.LongBits( + object.lastUsedMillis.low >>> 0, + object.lastUsedMillis.high >>> 0 + ).toNumber(); if (object.disabledAtMillis != null) if ($util.Long) (message.disabledAtMillis = $util.Long.fromValue(object.disabledAtMillis)).unsigned = false; - else if (typeof object.disabledAtMillis === "string") + else if (typeof object.disabledAtMillis === 'string') message.disabledAtMillis = parseInt(object.disabledAtMillis, 10); - else if (typeof object.disabledAtMillis === "number") + else if (typeof object.disabledAtMillis === 'number') message.disabledAtMillis = object.disabledAtMillis; - else if (typeof object.disabledAtMillis === "object") - message.disabledAtMillis = new $util.LongBits(object.disabledAtMillis.low >>> 0, object.disabledAtMillis.high >>> 0).toNumber(); + else if (typeof object.disabledAtMillis === 'object') + message.disabledAtMillis = new $util.LongBits( + object.disabledAtMillis.low >>> 0, + object.disabledAtMillis.high >>> 0 + ).toNumber(); return message; }; @@ -50541,59 +52460,86 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ PasskeyInfo.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { object.userId = 0; - if (options.bytes === String) - object.credentialId = ""; + if (options.bytes === String) object.credentialId = ''; else { object.credentialId = []; - if (options.bytes !== Array) - object.credentialId = $util.newBuffer(object.credentialId); + if (options.bytes !== Array) object.credentialId = $util.newBuffer(object.credentialId); } - object.friendlyName = ""; - object.AAGUID = ""; + object.friendlyName = ''; + object.AAGUID = ''; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.createdAtMillis = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.createdAtMillis = options.longs === String ? "0" : 0; + object.createdAtMillis = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.createdAtMillis = options.longs === String ? '0' : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.lastUsedMillis = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.lastUsedMillis = options.longs === String ? "0" : 0; + object.lastUsedMillis = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.lastUsedMillis = options.longs === String ? '0' : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.disabledAtMillis = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.disabledAtMillis = options.longs === String ? "0" : 0; - } - if (message.userId != null && message.hasOwnProperty("userId")) - object.userId = message.userId; - if (message.credentialId != null && message.hasOwnProperty("credentialId")) - object.credentialId = options.bytes === String ? $util.base64.encode(message.credentialId, 0, message.credentialId.length) : options.bytes === Array ? Array.prototype.slice.call(message.credentialId) : message.credentialId; - if (message.friendlyName != null && message.hasOwnProperty("friendlyName")) + object.disabledAtMillis = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.disabledAtMillis = options.longs === String ? '0' : 0; + } + if (message.userId != null && message.hasOwnProperty('userId')) object.userId = message.userId; + if (message.credentialId != null && message.hasOwnProperty('credentialId')) + object.credentialId = + options.bytes === String + ? $util.base64.encode(message.credentialId, 0, message.credentialId.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.credentialId) + : message.credentialId; + if (message.friendlyName != null && message.hasOwnProperty('friendlyName')) object.friendlyName = message.friendlyName; - if (message.AAGUID != null && message.hasOwnProperty("AAGUID")) - object.AAGUID = message.AAGUID; - if (message.createdAtMillis != null && message.hasOwnProperty("createdAtMillis")) - if (typeof message.createdAtMillis === "number") - object.createdAtMillis = options.longs === String ? String(message.createdAtMillis) : message.createdAtMillis; + if (message.AAGUID != null && message.hasOwnProperty('AAGUID')) object.AAGUID = message.AAGUID; + if (message.createdAtMillis != null && message.hasOwnProperty('createdAtMillis')) + if (typeof message.createdAtMillis === 'number') + object.createdAtMillis = + options.longs === String ? String(message.createdAtMillis) : message.createdAtMillis; else - object.createdAtMillis = options.longs === String ? $util.Long.prototype.toString.call(message.createdAtMillis) : options.longs === Number ? new $util.LongBits(message.createdAtMillis.low >>> 0, message.createdAtMillis.high >>> 0).toNumber() : message.createdAtMillis; - if (message.lastUsedMillis != null && message.hasOwnProperty("lastUsedMillis")) - if (typeof message.lastUsedMillis === "number") - object.lastUsedMillis = options.longs === String ? String(message.lastUsedMillis) : message.lastUsedMillis; + object.createdAtMillis = + options.longs === String + ? $util.Long.prototype.toString.call(message.createdAtMillis) + : options.longs === Number + ? new $util.LongBits( + message.createdAtMillis.low >>> 0, + message.createdAtMillis.high >>> 0 + ).toNumber() + : message.createdAtMillis; + if (message.lastUsedMillis != null && message.hasOwnProperty('lastUsedMillis')) + if (typeof message.lastUsedMillis === 'number') + object.lastUsedMillis = + options.longs === String ? String(message.lastUsedMillis) : message.lastUsedMillis; else - object.lastUsedMillis = options.longs === String ? $util.Long.prototype.toString.call(message.lastUsedMillis) : options.longs === Number ? new $util.LongBits(message.lastUsedMillis.low >>> 0, message.lastUsedMillis.high >>> 0).toNumber() : message.lastUsedMillis; - if (message.disabledAtMillis != null && message.hasOwnProperty("disabledAtMillis")) - if (typeof message.disabledAtMillis === "number") - object.disabledAtMillis = options.longs === String ? String(message.disabledAtMillis) : message.disabledAtMillis; + object.lastUsedMillis = + options.longs === String + ? $util.Long.prototype.toString.call(message.lastUsedMillis) + : options.longs === Number + ? new $util.LongBits( + message.lastUsedMillis.low >>> 0, + message.lastUsedMillis.high >>> 0 + ).toNumber() + : message.lastUsedMillis; + if (message.disabledAtMillis != null && message.hasOwnProperty('disabledAtMillis')) + if (typeof message.disabledAtMillis === 'number') + object.disabledAtMillis = + options.longs === String ? String(message.disabledAtMillis) : message.disabledAtMillis; else - object.disabledAtMillis = options.longs === String ? $util.Long.prototype.toString.call(message.disabledAtMillis) : options.longs === Number ? new $util.LongBits(message.disabledAtMillis.low >>> 0, message.disabledAtMillis.high >>> 0).toNumber() : message.disabledAtMillis; + object.disabledAtMillis = + options.longs === String + ? $util.Long.prototype.toString.call(message.disabledAtMillis) + : options.longs === Number + ? new $util.LongBits( + message.disabledAtMillis.low >>> 0, + message.disabledAtMillis.high >>> 0 + ).toNumber() + : message.disabledAtMillis; return object; }; @@ -50618,16 +52564,15 @@ export const Authentication = $root.Authentication = (() => { */ PasskeyInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.PasskeyInfo"; + return typeUrlPrefix + '/Authentication.PasskeyInfo'; }; return PasskeyInfo; })(); - Authentication.PasskeyListResponse = (function() { - + Authentication.PasskeyListResponse = (function () { /** * Properties of a PasskeyListResponse. * @memberof Authentication @@ -50647,8 +52592,7 @@ export const Authentication = $root.Authentication = (() => { this.passkeyInfo = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -50681,11 +52625,13 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ PasskeyListResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.passkeyInfo != null && message.passkeyInfo.length) for (let i = 0; i < message.passkeyInfo.length; ++i) - $root.Authentication.PasskeyInfo.encode(message.passkeyInfo[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.Authentication.PasskeyInfo.encode( + message.passkeyInfo[i], + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); return writer; }; @@ -50714,21 +52660,20 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ PasskeyListResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.PasskeyListResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.PasskeyListResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (!(message.passkeyInfo && message.passkeyInfo.length)) - message.passkeyInfo = []; + case 1: { + if (!(message.passkeyInfo && message.passkeyInfo.length)) message.passkeyInfo = []; message.passkeyInfo.push($root.Authentication.PasskeyInfo.decode(reader, reader.uint32())); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -50745,8 +52690,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ PasskeyListResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -50759,15 +52703,12 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ PasskeyListResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.passkeyInfo != null && message.hasOwnProperty("passkeyInfo")) { - if (!Array.isArray(message.passkeyInfo)) - return "passkeyInfo: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.passkeyInfo != null && message.hasOwnProperty('passkeyInfo')) { + if (!Array.isArray(message.passkeyInfo)) return 'passkeyInfo: array expected'; for (let i = 0; i < message.passkeyInfo.length; ++i) { let error = $root.Authentication.PasskeyInfo.verify(message.passkeyInfo[i]); - if (error) - return "passkeyInfo." + error; + if (error) return 'passkeyInfo.' + error; } } return null; @@ -50782,16 +52723,15 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.PasskeyListResponse} PasskeyListResponse */ PasskeyListResponse.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.PasskeyListResponse) - return object; + if (object instanceof $root.Authentication.PasskeyListResponse) return object; let message = new $root.Authentication.PasskeyListResponse(); if (object.passkeyInfo) { if (!Array.isArray(object.passkeyInfo)) - throw TypeError(".Authentication.PasskeyListResponse.passkeyInfo: array expected"); + throw TypeError('.Authentication.PasskeyListResponse.passkeyInfo: array expected'); message.passkeyInfo = []; for (let i = 0; i < object.passkeyInfo.length; ++i) { - if (typeof object.passkeyInfo[i] !== "object") - throw TypeError(".Authentication.PasskeyListResponse.passkeyInfo: object expected"); + if (typeof object.passkeyInfo[i] !== 'object') + throw TypeError('.Authentication.PasskeyListResponse.passkeyInfo: object expected'); message.passkeyInfo[i] = $root.Authentication.PasskeyInfo.fromObject(object.passkeyInfo[i]); } } @@ -50808,11 +52748,9 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ PasskeyListResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.passkeyInfo = []; + if (options.arrays || options.defaults) object.passkeyInfo = []; if (message.passkeyInfo && message.passkeyInfo.length) { object.passkeyInfo = []; for (let j = 0; j < message.passkeyInfo.length; ++j) @@ -50842,9 +52780,9 @@ export const Authentication = $root.Authentication = (() => { */ PasskeyListResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.PasskeyListResponse"; + return typeUrlPrefix + '/Authentication.PasskeyListResponse'; }; return PasskeyListResponse; @@ -50859,17 +52797,17 @@ export const Authentication = $root.Authentication = (() => { * @property {number} FF_TABLET=2 FF_TABLET value * @property {number} FF_WATCH=3 FF_WATCH value */ - Authentication.ClientFormFactor = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "FF_EMPTY"] = 0; - values[valuesById[1] = "FF_PHONE"] = 1; - values[valuesById[2] = "FF_TABLET"] = 2; - values[valuesById[3] = "FF_WATCH"] = 3; + Authentication.ClientFormFactor = (function () { + const valuesById = {}, + values = Object.create(valuesById); + values[(valuesById[0] = 'FF_EMPTY')] = 0; + values[(valuesById[1] = 'FF_PHONE')] = 1; + values[(valuesById[2] = 'FF_TABLET')] = 2; + values[(valuesById[3] = 'FF_WATCH')] = 3; return values; })(); - Authentication.TranslationInfo = (function() { - + Authentication.TranslationInfo = (function () { /** * Properties of a TranslationInfo. * @memberof Authentication @@ -50889,8 +52827,7 @@ export const Authentication = $root.Authentication = (() => { function TranslationInfo(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -50899,7 +52836,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.TranslationInfo * @instance */ - TranslationInfo.prototype.translationKey = ""; + TranslationInfo.prototype.translationKey = ''; /** * TranslationInfo translationValue. @@ -50907,7 +52844,7 @@ export const Authentication = $root.Authentication = (() => { * @memberof Authentication.TranslationInfo * @instance */ - TranslationInfo.prototype.translationValue = ""; + TranslationInfo.prototype.translationValue = ''; /** * Creates a new TranslationInfo instance using the specified properties. @@ -50931,12 +52868,11 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ TranslationInfo.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.translationKey != null && Object.hasOwnProperty.call(message, "translationKey")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.translationKey); - if (message.translationValue != null && Object.hasOwnProperty.call(message, "translationValue")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.translationValue); + if (!writer) writer = $Writer.create(); + if (message.translationKey != null && Object.hasOwnProperty.call(message, 'translationKey')) + writer.uint32(/* id 1, wireType 2 =*/ 10).string(message.translationKey); + if (message.translationValue != null && Object.hasOwnProperty.call(message, 'translationValue')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.translationValue); return writer; }; @@ -50965,23 +52901,23 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ TranslationInfo.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.TranslationInfo(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.TranslationInfo(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.translationKey = reader.string(); break; } - case 2: { + case 2: { message.translationValue = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -50998,8 +52934,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ TranslationInfo.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -51012,14 +52947,11 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ TranslationInfo.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.translationKey != null && message.hasOwnProperty("translationKey")) - if (!$util.isString(message.translationKey)) - return "translationKey: string expected"; - if (message.translationValue != null && message.hasOwnProperty("translationValue")) - if (!$util.isString(message.translationValue)) - return "translationValue: string expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.translationKey != null && message.hasOwnProperty('translationKey')) + if (!$util.isString(message.translationKey)) return 'translationKey: string expected'; + if (message.translationValue != null && message.hasOwnProperty('translationValue')) + if (!$util.isString(message.translationValue)) return 'translationValue: string expected'; return null; }; @@ -51032,13 +52964,10 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.TranslationInfo} TranslationInfo */ TranslationInfo.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.TranslationInfo) - return object; + if (object instanceof $root.Authentication.TranslationInfo) return object; let message = new $root.Authentication.TranslationInfo(); - if (object.translationKey != null) - message.translationKey = String(object.translationKey); - if (object.translationValue != null) - message.translationValue = String(object.translationValue); + if (object.translationKey != null) message.translationKey = String(object.translationKey); + if (object.translationValue != null) message.translationValue = String(object.translationValue); return message; }; @@ -51052,16 +52981,15 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ TranslationInfo.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - object.translationKey = ""; - object.translationValue = ""; + object.translationKey = ''; + object.translationValue = ''; } - if (message.translationKey != null && message.hasOwnProperty("translationKey")) + if (message.translationKey != null && message.hasOwnProperty('translationKey')) object.translationKey = message.translationKey; - if (message.translationValue != null && message.hasOwnProperty("translationValue")) + if (message.translationValue != null && message.hasOwnProperty('translationValue')) object.translationValue = message.translationValue; return object; }; @@ -51087,16 +53015,15 @@ export const Authentication = $root.Authentication = (() => { */ TranslationInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.TranslationInfo"; + return typeUrlPrefix + '/Authentication.TranslationInfo'; }; return TranslationInfo; })(); - Authentication.TranslationRequest = (function() { - + Authentication.TranslationRequest = (function () { /** * Properties of a TranslationRequest. * @memberof Authentication @@ -51116,8 +53043,7 @@ export const Authentication = $root.Authentication = (() => { this.translationKey = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -51150,11 +53076,10 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ TranslationRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.translationKey != null && message.translationKey.length) for (let i = 0; i < message.translationKey.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.translationKey[i]); + writer.uint32(/* id 1, wireType 2 =*/ 10).string(message.translationKey[i]); return writer; }; @@ -51183,21 +53108,20 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ TranslationRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.TranslationRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.TranslationRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (!(message.translationKey && message.translationKey.length)) - message.translationKey = []; + case 1: { + if (!(message.translationKey && message.translationKey.length)) message.translationKey = []; message.translationKey.push(reader.string()); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -51214,8 +53138,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ TranslationRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -51228,14 +53151,11 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ TranslationRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.translationKey != null && message.hasOwnProperty("translationKey")) { - if (!Array.isArray(message.translationKey)) - return "translationKey: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.translationKey != null && message.hasOwnProperty('translationKey')) { + if (!Array.isArray(message.translationKey)) return 'translationKey: array expected'; for (let i = 0; i < message.translationKey.length; ++i) - if (!$util.isString(message.translationKey[i])) - return "translationKey: string[] expected"; + if (!$util.isString(message.translationKey[i])) return 'translationKey: string[] expected'; } return null; }; @@ -51249,12 +53169,11 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.TranslationRequest} TranslationRequest */ TranslationRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.TranslationRequest) - return object; + if (object instanceof $root.Authentication.TranslationRequest) return object; let message = new $root.Authentication.TranslationRequest(); if (object.translationKey) { if (!Array.isArray(object.translationKey)) - throw TypeError(".Authentication.TranslationRequest.translationKey: array expected"); + throw TypeError('.Authentication.TranslationRequest.translationKey: array expected'); message.translationKey = []; for (let i = 0; i < object.translationKey.length; ++i) message.translationKey[i] = String(object.translationKey[i]); @@ -51272,11 +53191,9 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ TranslationRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.translationKey = []; + if (options.arrays || options.defaults) object.translationKey = []; if (message.translationKey && message.translationKey.length) { object.translationKey = []; for (let j = 0; j < message.translationKey.length; ++j) @@ -51306,16 +53223,15 @@ export const Authentication = $root.Authentication = (() => { */ TranslationRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.TranslationRequest"; + return typeUrlPrefix + '/Authentication.TranslationRequest'; }; return TranslationRequest; })(); - Authentication.TranslationResponse = (function() { - + Authentication.TranslationResponse = (function () { /** * Properties of a TranslationResponse. * @memberof Authentication @@ -51335,8 +53251,7 @@ export const Authentication = $root.Authentication = (() => { this.translationInfo = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -51369,11 +53284,13 @@ export const Authentication = $root.Authentication = (() => { * @returns {$protobuf.Writer} Writer */ TranslationResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.translationInfo != null && message.translationInfo.length) for (let i = 0; i < message.translationInfo.length; ++i) - $root.Authentication.TranslationInfo.encode(message.translationInfo[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.Authentication.TranslationInfo.encode( + message.translationInfo[i], + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); return writer; }; @@ -51402,21 +53319,22 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ TranslationResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Authentication.TranslationResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Authentication.TranslationResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (!(message.translationInfo && message.translationInfo.length)) - message.translationInfo = []; - message.translationInfo.push($root.Authentication.TranslationInfo.decode(reader, reader.uint32())); + case 1: { + if (!(message.translationInfo && message.translationInfo.length)) message.translationInfo = []; + message.translationInfo.push( + $root.Authentication.TranslationInfo.decode(reader, reader.uint32()) + ); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -51433,8 +53351,7 @@ export const Authentication = $root.Authentication = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ TranslationResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -51447,15 +53364,12 @@ export const Authentication = $root.Authentication = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ TranslationResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.translationInfo != null && message.hasOwnProperty("translationInfo")) { - if (!Array.isArray(message.translationInfo)) - return "translationInfo: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.translationInfo != null && message.hasOwnProperty('translationInfo')) { + if (!Array.isArray(message.translationInfo)) return 'translationInfo: array expected'; for (let i = 0; i < message.translationInfo.length; ++i) { let error = $root.Authentication.TranslationInfo.verify(message.translationInfo[i]); - if (error) - return "translationInfo." + error; + if (error) return 'translationInfo.' + error; } } return null; @@ -51470,17 +53384,18 @@ export const Authentication = $root.Authentication = (() => { * @returns {Authentication.TranslationResponse} TranslationResponse */ TranslationResponse.fromObject = function fromObject(object) { - if (object instanceof $root.Authentication.TranslationResponse) - return object; + if (object instanceof $root.Authentication.TranslationResponse) return object; let message = new $root.Authentication.TranslationResponse(); if (object.translationInfo) { if (!Array.isArray(object.translationInfo)) - throw TypeError(".Authentication.TranslationResponse.translationInfo: array expected"); + throw TypeError('.Authentication.TranslationResponse.translationInfo: array expected'); message.translationInfo = []; for (let i = 0; i < object.translationInfo.length; ++i) { - if (typeof object.translationInfo[i] !== "object") - throw TypeError(".Authentication.TranslationResponse.translationInfo: object expected"); - message.translationInfo[i] = $root.Authentication.TranslationInfo.fromObject(object.translationInfo[i]); + if (typeof object.translationInfo[i] !== 'object') + throw TypeError('.Authentication.TranslationResponse.translationInfo: object expected'); + message.translationInfo[i] = $root.Authentication.TranslationInfo.fromObject( + object.translationInfo[i] + ); } } return message; @@ -51496,15 +53411,16 @@ export const Authentication = $root.Authentication = (() => { * @returns {Object.} Plain object */ TranslationResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.translationInfo = []; + if (options.arrays || options.defaults) object.translationInfo = []; if (message.translationInfo && message.translationInfo.length) { object.translationInfo = []; for (let j = 0; j < message.translationInfo.length; ++j) - object.translationInfo[j] = $root.Authentication.TranslationInfo.toObject(message.translationInfo[j], options); + object.translationInfo[j] = $root.Authentication.TranslationInfo.toObject( + message.translationInfo[j], + options + ); } return object; }; @@ -51530,19 +53446,18 @@ export const Authentication = $root.Authentication = (() => { */ TranslationResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Authentication.TranslationResponse"; + return typeUrlPrefix + '/Authentication.TranslationResponse'; }; return TranslationResponse; })(); return Authentication; -})(); - -export const Enterprise = $root.Enterprise = (() => { +})()); +export const Enterprise = ($root.Enterprise = (() => { /** * Namespace Enterprise. * @exports Enterprise @@ -51557,15 +53472,15 @@ export const Enterprise = $root.Enterprise = (() => { * @property {number} RSA=0 RSA value * @property {number} ECC=1 ECC value */ - Enterprise.KeyType = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "RSA"] = 0; - values[valuesById[1] = "ECC"] = 1; + Enterprise.KeyType = (function () { + const valuesById = {}, + values = Object.create(valuesById); + values[(valuesById[0] = 'RSA')] = 0; + values[(valuesById[1] = 'ECC')] = 1; return values; })(); - Enterprise.EnterpriseKeyPairRequest = (function() { - + Enterprise.EnterpriseKeyPairRequest = (function () { /** * Properties of an EnterpriseKeyPairRequest. * @memberof Enterprise @@ -51586,8 +53501,7 @@ export const Enterprise = $root.Enterprise = (() => { function EnterpriseKeyPairRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -51636,14 +53550,16 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ EnterpriseKeyPairRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.enterprisePublicKey != null && Object.hasOwnProperty.call(message, "enterprisePublicKey")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.enterprisePublicKey); - if (message.encryptedEnterprisePrivateKey != null && Object.hasOwnProperty.call(message, "encryptedEnterprisePrivateKey")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.encryptedEnterprisePrivateKey); - if (message.keyType != null && Object.hasOwnProperty.call(message, "keyType")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.keyType); + if (!writer) writer = $Writer.create(); + if (message.enterprisePublicKey != null && Object.hasOwnProperty.call(message, 'enterprisePublicKey')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.enterprisePublicKey); + if ( + message.encryptedEnterprisePrivateKey != null && + Object.hasOwnProperty.call(message, 'encryptedEnterprisePrivateKey') + ) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.encryptedEnterprisePrivateKey); + if (message.keyType != null && Object.hasOwnProperty.call(message, 'keyType')) + writer.uint32(/* id 3, wireType 0 =*/ 24).int32(message.keyType); return writer; }; @@ -51672,27 +53588,27 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ EnterpriseKeyPairRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.EnterpriseKeyPairRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.EnterpriseKeyPairRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.enterprisePublicKey = reader.bytes(); break; } - case 2: { + case 2: { message.encryptedEnterprisePrivateKey = reader.bytes(); break; } - case 3: { + case 3: { message.keyType = reader.int32(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -51709,8 +53625,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ EnterpriseKeyPairRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -51723,21 +53638,34 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ EnterpriseKeyPairRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.enterprisePublicKey != null && message.hasOwnProperty("enterprisePublicKey")) - if (!(message.enterprisePublicKey && typeof message.enterprisePublicKey.length === "number" || $util.isString(message.enterprisePublicKey))) - return "enterprisePublicKey: buffer expected"; - if (message.encryptedEnterprisePrivateKey != null && message.hasOwnProperty("encryptedEnterprisePrivateKey")) - if (!(message.encryptedEnterprisePrivateKey && typeof message.encryptedEnterprisePrivateKey.length === "number" || $util.isString(message.encryptedEnterprisePrivateKey))) - return "encryptedEnterprisePrivateKey: buffer expected"; - if (message.keyType != null && message.hasOwnProperty("keyType")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.enterprisePublicKey != null && message.hasOwnProperty('enterprisePublicKey')) + if ( + !( + (message.enterprisePublicKey && typeof message.enterprisePublicKey.length === 'number') || + $util.isString(message.enterprisePublicKey) + ) + ) + return 'enterprisePublicKey: buffer expected'; + if ( + message.encryptedEnterprisePrivateKey != null && + message.hasOwnProperty('encryptedEnterprisePrivateKey') + ) + if ( + !( + (message.encryptedEnterprisePrivateKey && + typeof message.encryptedEnterprisePrivateKey.length === 'number') || + $util.isString(message.encryptedEnterprisePrivateKey) + ) + ) + return 'encryptedEnterprisePrivateKey: buffer expected'; + if (message.keyType != null && message.hasOwnProperty('keyType')) switch (message.keyType) { - default: - return "keyType: enum value expected"; - case 0: - case 1: - break; + default: + return 'keyType: enum value expected'; + case 0: + case 1: + break; } return null; }; @@ -51751,34 +53679,45 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.EnterpriseKeyPairRequest} EnterpriseKeyPairRequest */ EnterpriseKeyPairRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.EnterpriseKeyPairRequest) - return object; + if (object instanceof $root.Enterprise.EnterpriseKeyPairRequest) return object; let message = new $root.Enterprise.EnterpriseKeyPairRequest(); if (object.enterprisePublicKey != null) - if (typeof object.enterprisePublicKey === "string") - $util.base64.decode(object.enterprisePublicKey, message.enterprisePublicKey = $util.newBuffer($util.base64.length(object.enterprisePublicKey)), 0); + if (typeof object.enterprisePublicKey === 'string') + $util.base64.decode( + object.enterprisePublicKey, + (message.enterprisePublicKey = $util.newBuffer( + $util.base64.length(object.enterprisePublicKey) + )), + 0 + ); else if (object.enterprisePublicKey.length >= 0) message.enterprisePublicKey = object.enterprisePublicKey; if (object.encryptedEnterprisePrivateKey != null) - if (typeof object.encryptedEnterprisePrivateKey === "string") - $util.base64.decode(object.encryptedEnterprisePrivateKey, message.encryptedEnterprisePrivateKey = $util.newBuffer($util.base64.length(object.encryptedEnterprisePrivateKey)), 0); + if (typeof object.encryptedEnterprisePrivateKey === 'string') + $util.base64.decode( + object.encryptedEnterprisePrivateKey, + (message.encryptedEnterprisePrivateKey = $util.newBuffer( + $util.base64.length(object.encryptedEnterprisePrivateKey) + )), + 0 + ); else if (object.encryptedEnterprisePrivateKey.length >= 0) message.encryptedEnterprisePrivateKey = object.encryptedEnterprisePrivateKey; switch (object.keyType) { - default: - if (typeof object.keyType === "number") { - message.keyType = object.keyType; + default: + if (typeof object.keyType === 'number') { + message.keyType = object.keyType; + break; + } + break; + case 'RSA': + case 0: + message.keyType = 0; + break; + case 'ECC': + case 1: + message.keyType = 1; break; - } - break; - case "RSA": - case 0: - message.keyType = 0; - break; - case "ECC": - case 1: - message.keyType = 1; - break; } return message; }; @@ -51793,32 +53732,51 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ EnterpriseKeyPairRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.enterprisePublicKey = ""; + if (options.bytes === String) object.enterprisePublicKey = ''; else { object.enterprisePublicKey = []; if (options.bytes !== Array) object.enterprisePublicKey = $util.newBuffer(object.enterprisePublicKey); } - if (options.bytes === String) - object.encryptedEnterprisePrivateKey = ""; + if (options.bytes === String) object.encryptedEnterprisePrivateKey = ''; else { object.encryptedEnterprisePrivateKey = []; if (options.bytes !== Array) object.encryptedEnterprisePrivateKey = $util.newBuffer(object.encryptedEnterprisePrivateKey); } - object.keyType = options.enums === String ? "RSA" : 0; - } - if (message.enterprisePublicKey != null && message.hasOwnProperty("enterprisePublicKey")) - object.enterprisePublicKey = options.bytes === String ? $util.base64.encode(message.enterprisePublicKey, 0, message.enterprisePublicKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.enterprisePublicKey) : message.enterprisePublicKey; - if (message.encryptedEnterprisePrivateKey != null && message.hasOwnProperty("encryptedEnterprisePrivateKey")) - object.encryptedEnterprisePrivateKey = options.bytes === String ? $util.base64.encode(message.encryptedEnterprisePrivateKey, 0, message.encryptedEnterprisePrivateKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedEnterprisePrivateKey) : message.encryptedEnterprisePrivateKey; - if (message.keyType != null && message.hasOwnProperty("keyType")) - object.keyType = options.enums === String ? $root.Enterprise.KeyType[message.keyType] === undefined ? message.keyType : $root.Enterprise.KeyType[message.keyType] : message.keyType; + object.keyType = options.enums === String ? 'RSA' : 0; + } + if (message.enterprisePublicKey != null && message.hasOwnProperty('enterprisePublicKey')) + object.enterprisePublicKey = + options.bytes === String + ? $util.base64.encode(message.enterprisePublicKey, 0, message.enterprisePublicKey.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.enterprisePublicKey) + : message.enterprisePublicKey; + if ( + message.encryptedEnterprisePrivateKey != null && + message.hasOwnProperty('encryptedEnterprisePrivateKey') + ) + object.encryptedEnterprisePrivateKey = + options.bytes === String + ? $util.base64.encode( + message.encryptedEnterprisePrivateKey, + 0, + message.encryptedEnterprisePrivateKey.length + ) + : options.bytes === Array + ? Array.prototype.slice.call(message.encryptedEnterprisePrivateKey) + : message.encryptedEnterprisePrivateKey; + if (message.keyType != null && message.hasOwnProperty('keyType')) + object.keyType = + options.enums === String + ? $root.Enterprise.KeyType[message.keyType] === undefined + ? message.keyType + : $root.Enterprise.KeyType[message.keyType] + : message.keyType; return object; }; @@ -51843,16 +53801,15 @@ export const Enterprise = $root.Enterprise = (() => { */ EnterpriseKeyPairRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.EnterpriseKeyPairRequest"; + return typeUrlPrefix + '/Enterprise.EnterpriseKeyPairRequest'; }; return EnterpriseKeyPairRequest; })(); - Enterprise.GetTeamMemberRequest = (function() { - + Enterprise.GetTeamMemberRequest = (function () { /** * Properties of a GetTeamMemberRequest. * @memberof Enterprise @@ -51871,8 +53828,7 @@ export const Enterprise = $root.Enterprise = (() => { function GetTeamMemberRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -51905,10 +53861,9 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ GetTeamMemberRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.teamUid != null && Object.hasOwnProperty.call(message, "teamUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.teamUid); + if (!writer) writer = $Writer.create(); + if (message.teamUid != null && Object.hasOwnProperty.call(message, 'teamUid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.teamUid); return writer; }; @@ -51937,19 +53892,19 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ GetTeamMemberRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.GetTeamMemberRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.GetTeamMemberRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.teamUid = reader.bytes(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -51966,8 +53921,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ GetTeamMemberRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -51980,11 +53934,15 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ GetTeamMemberRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.teamUid != null && message.hasOwnProperty("teamUid")) - if (!(message.teamUid && typeof message.teamUid.length === "number" || $util.isString(message.teamUid))) - return "teamUid: buffer expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.teamUid != null && message.hasOwnProperty('teamUid')) + if ( + !( + (message.teamUid && typeof message.teamUid.length === 'number') || + $util.isString(message.teamUid) + ) + ) + return 'teamUid: buffer expected'; return null; }; @@ -51997,14 +53955,16 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.GetTeamMemberRequest} GetTeamMemberRequest */ GetTeamMemberRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.GetTeamMemberRequest) - return object; + if (object instanceof $root.Enterprise.GetTeamMemberRequest) return object; let message = new $root.Enterprise.GetTeamMemberRequest(); if (object.teamUid != null) - if (typeof object.teamUid === "string") - $util.base64.decode(object.teamUid, message.teamUid = $util.newBuffer($util.base64.length(object.teamUid)), 0); - else if (object.teamUid.length >= 0) - message.teamUid = object.teamUid; + if (typeof object.teamUid === 'string') + $util.base64.decode( + object.teamUid, + (message.teamUid = $util.newBuffer($util.base64.length(object.teamUid))), + 0 + ); + else if (object.teamUid.length >= 0) message.teamUid = object.teamUid; return message; }; @@ -52018,19 +53978,21 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ GetTeamMemberRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) - if (options.bytes === String) - object.teamUid = ""; + if (options.bytes === String) object.teamUid = ''; else { object.teamUid = []; - if (options.bytes !== Array) - object.teamUid = $util.newBuffer(object.teamUid); + if (options.bytes !== Array) object.teamUid = $util.newBuffer(object.teamUid); } - if (message.teamUid != null && message.hasOwnProperty("teamUid")) - object.teamUid = options.bytes === String ? $util.base64.encode(message.teamUid, 0, message.teamUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.teamUid) : message.teamUid; + if (message.teamUid != null && message.hasOwnProperty('teamUid')) + object.teamUid = + options.bytes === String + ? $util.base64.encode(message.teamUid, 0, message.teamUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.teamUid) + : message.teamUid; return object; }; @@ -52055,16 +54017,15 @@ export const Enterprise = $root.Enterprise = (() => { */ GetTeamMemberRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.GetTeamMemberRequest"; + return typeUrlPrefix + '/Enterprise.GetTeamMemberRequest'; }; return GetTeamMemberRequest; })(); - Enterprise.EnterpriseUser = (function() { - + Enterprise.EnterpriseUser = (function () { /** * Properties of an EnterpriseUser. * @memberof Enterprise @@ -52087,8 +54048,7 @@ export const Enterprise = $root.Enterprise = (() => { function EnterpriseUser(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -52097,7 +54057,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.EnterpriseUser * @instance */ - EnterpriseUser.prototype.enterpriseUserId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + EnterpriseUser.prototype.enterpriseUserId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * EnterpriseUser email. @@ -52105,7 +54065,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.EnterpriseUser * @instance */ - EnterpriseUser.prototype.email = ""; + EnterpriseUser.prototype.email = ''; /** * EnterpriseUser enterpriseUsername. @@ -52113,7 +54073,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.EnterpriseUser * @instance */ - EnterpriseUser.prototype.enterpriseUsername = ""; + EnterpriseUser.prototype.enterpriseUsername = ''; /** * EnterpriseUser isShareAdmin. @@ -52129,7 +54089,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.EnterpriseUser * @instance */ - EnterpriseUser.prototype.username = ""; + EnterpriseUser.prototype.username = ''; /** * Creates a new EnterpriseUser instance using the specified properties. @@ -52153,18 +54113,17 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ EnterpriseUser.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "enterpriseUserId")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.enterpriseUserId); - if (message.email != null && Object.hasOwnProperty.call(message, "email")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.email); - if (message.enterpriseUsername != null && Object.hasOwnProperty.call(message, "enterpriseUsername")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.enterpriseUsername); - if (message.isShareAdmin != null && Object.hasOwnProperty.call(message, "isShareAdmin")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.isShareAdmin); - if (message.username != null && Object.hasOwnProperty.call(message, "username")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.username); + if (!writer) writer = $Writer.create(); + if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, 'enterpriseUserId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int64(message.enterpriseUserId); + if (message.email != null && Object.hasOwnProperty.call(message, 'email')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.email); + if (message.enterpriseUsername != null && Object.hasOwnProperty.call(message, 'enterpriseUsername')) + writer.uint32(/* id 3, wireType 2 =*/ 26).string(message.enterpriseUsername); + if (message.isShareAdmin != null && Object.hasOwnProperty.call(message, 'isShareAdmin')) + writer.uint32(/* id 4, wireType 0 =*/ 32).bool(message.isShareAdmin); + if (message.username != null && Object.hasOwnProperty.call(message, 'username')) + writer.uint32(/* id 5, wireType 2 =*/ 42).string(message.username); return writer; }; @@ -52193,35 +54152,35 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ EnterpriseUser.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.EnterpriseUser(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.EnterpriseUser(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.enterpriseUserId = reader.int64(); break; } - case 2: { + case 2: { message.email = reader.string(); break; } - case 3: { + case 3: { message.enterpriseUsername = reader.string(); break; } - case 4: { + case 4: { message.isShareAdmin = reader.bool(); break; } - case 5: { + case 5: { message.username = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -52238,8 +54197,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ EnterpriseUser.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -52252,23 +54210,25 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ EnterpriseUser.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (!$util.isInteger(message.enterpriseUserId) && !(message.enterpriseUserId && $util.isInteger(message.enterpriseUserId.low) && $util.isInteger(message.enterpriseUserId.high))) - return "enterpriseUserId: integer|Long expected"; - if (message.email != null && message.hasOwnProperty("email")) - if (!$util.isString(message.email)) - return "email: string expected"; - if (message.enterpriseUsername != null && message.hasOwnProperty("enterpriseUsername")) - if (!$util.isString(message.enterpriseUsername)) - return "enterpriseUsername: string expected"; - if (message.isShareAdmin != null && message.hasOwnProperty("isShareAdmin")) - if (typeof message.isShareAdmin !== "boolean") - return "isShareAdmin: boolean expected"; - if (message.username != null && message.hasOwnProperty("username")) - if (!$util.isString(message.username)) - return "username: string expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.enterpriseUserId != null && message.hasOwnProperty('enterpriseUserId')) + if ( + !$util.isInteger(message.enterpriseUserId) && + !( + message.enterpriseUserId && + $util.isInteger(message.enterpriseUserId.low) && + $util.isInteger(message.enterpriseUserId.high) + ) + ) + return 'enterpriseUserId: integer|Long expected'; + if (message.email != null && message.hasOwnProperty('email')) + if (!$util.isString(message.email)) return 'email: string expected'; + if (message.enterpriseUsername != null && message.hasOwnProperty('enterpriseUsername')) + if (!$util.isString(message.enterpriseUsername)) return 'enterpriseUsername: string expected'; + if (message.isShareAdmin != null && message.hasOwnProperty('isShareAdmin')) + if (typeof message.isShareAdmin !== 'boolean') return 'isShareAdmin: boolean expected'; + if (message.username != null && message.hasOwnProperty('username')) + if (!$util.isString(message.username)) return 'username: string expected'; return null; }; @@ -52281,26 +54241,24 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.EnterpriseUser} EnterpriseUser */ EnterpriseUser.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.EnterpriseUser) - return object; + if (object instanceof $root.Enterprise.EnterpriseUser) return object; let message = new $root.Enterprise.EnterpriseUser(); if (object.enterpriseUserId != null) if ($util.Long) (message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId)).unsigned = false; - else if (typeof object.enterpriseUserId === "string") + else if (typeof object.enterpriseUserId === 'string') message.enterpriseUserId = parseInt(object.enterpriseUserId, 10); - else if (typeof object.enterpriseUserId === "number") + else if (typeof object.enterpriseUserId === 'number') message.enterpriseUserId = object.enterpriseUserId; - else if (typeof object.enterpriseUserId === "object") - message.enterpriseUserId = new $util.LongBits(object.enterpriseUserId.low >>> 0, object.enterpriseUserId.high >>> 0).toNumber(); - if (object.email != null) - message.email = String(object.email); - if (object.enterpriseUsername != null) - message.enterpriseUsername = String(object.enterpriseUsername); - if (object.isShareAdmin != null) - message.isShareAdmin = Boolean(object.isShareAdmin); - if (object.username != null) - message.username = String(object.username); + else if (typeof object.enterpriseUserId === 'object') + message.enterpriseUserId = new $util.LongBits( + object.enterpriseUserId.low >>> 0, + object.enterpriseUserId.high >>> 0 + ).toNumber(); + if (object.email != null) message.email = String(object.email); + if (object.enterpriseUsername != null) message.enterpriseUsername = String(object.enterpriseUsername); + if (object.isShareAdmin != null) message.isShareAdmin = Boolean(object.isShareAdmin); + if (object.username != null) message.username = String(object.username); return message; }; @@ -52314,33 +54272,39 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ EnterpriseUser.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.enterpriseUserId = options.longs === String ? "0" : 0; - object.email = ""; - object.enterpriseUsername = ""; + object.enterpriseUserId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.enterpriseUserId = options.longs === String ? '0' : 0; + object.email = ''; + object.enterpriseUsername = ''; object.isShareAdmin = false; - object.username = ""; + object.username = ''; } - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (typeof message.enterpriseUserId === "number") - object.enterpriseUserId = options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; + if (message.enterpriseUserId != null && message.hasOwnProperty('enterpriseUserId')) + if (typeof message.enterpriseUserId === 'number') + object.enterpriseUserId = + options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; else - object.enterpriseUserId = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseUserId) : options.longs === Number ? new $util.LongBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0).toNumber() : message.enterpriseUserId; - if (message.email != null && message.hasOwnProperty("email")) - object.email = message.email; - if (message.enterpriseUsername != null && message.hasOwnProperty("enterpriseUsername")) + object.enterpriseUserId = + options.longs === String + ? $util.Long.prototype.toString.call(message.enterpriseUserId) + : options.longs === Number + ? new $util.LongBits( + message.enterpriseUserId.low >>> 0, + message.enterpriseUserId.high >>> 0 + ).toNumber() + : message.enterpriseUserId; + if (message.email != null && message.hasOwnProperty('email')) object.email = message.email; + if (message.enterpriseUsername != null && message.hasOwnProperty('enterpriseUsername')) object.enterpriseUsername = message.enterpriseUsername; - if (message.isShareAdmin != null && message.hasOwnProperty("isShareAdmin")) + if (message.isShareAdmin != null && message.hasOwnProperty('isShareAdmin')) object.isShareAdmin = message.isShareAdmin; - if (message.username != null && message.hasOwnProperty("username")) - object.username = message.username; + if (message.username != null && message.hasOwnProperty('username')) object.username = message.username; return object; }; @@ -52365,16 +54329,15 @@ export const Enterprise = $root.Enterprise = (() => { */ EnterpriseUser.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.EnterpriseUser"; + return typeUrlPrefix + '/Enterprise.EnterpriseUser'; }; return EnterpriseUser; })(); - Enterprise.GetTeamMemberResponse = (function() { - + Enterprise.GetTeamMemberResponse = (function () { /** * Properties of a GetTeamMemberResponse. * @memberof Enterprise @@ -52394,8 +54357,7 @@ export const Enterprise = $root.Enterprise = (() => { this.enterpriseUser = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -52428,11 +54390,13 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ GetTeamMemberResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.enterpriseUser != null && message.enterpriseUser.length) for (let i = 0; i < message.enterpriseUser.length; ++i) - $root.Enterprise.EnterpriseUser.encode(message.enterpriseUser[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.Enterprise.EnterpriseUser.encode( + message.enterpriseUser[i], + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); return writer; }; @@ -52461,21 +54425,20 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ GetTeamMemberResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.GetTeamMemberResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.GetTeamMemberResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (!(message.enterpriseUser && message.enterpriseUser.length)) - message.enterpriseUser = []; + case 1: { + if (!(message.enterpriseUser && message.enterpriseUser.length)) message.enterpriseUser = []; message.enterpriseUser.push($root.Enterprise.EnterpriseUser.decode(reader, reader.uint32())); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -52492,8 +54455,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ GetTeamMemberResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -52506,15 +54468,12 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ GetTeamMemberResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.enterpriseUser != null && message.hasOwnProperty("enterpriseUser")) { - if (!Array.isArray(message.enterpriseUser)) - return "enterpriseUser: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.enterpriseUser != null && message.hasOwnProperty('enterpriseUser')) { + if (!Array.isArray(message.enterpriseUser)) return 'enterpriseUser: array expected'; for (let i = 0; i < message.enterpriseUser.length; ++i) { let error = $root.Enterprise.EnterpriseUser.verify(message.enterpriseUser[i]); - if (error) - return "enterpriseUser." + error; + if (error) return 'enterpriseUser.' + error; } } return null; @@ -52529,16 +54488,15 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.GetTeamMemberResponse} GetTeamMemberResponse */ GetTeamMemberResponse.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.GetTeamMemberResponse) - return object; + if (object instanceof $root.Enterprise.GetTeamMemberResponse) return object; let message = new $root.Enterprise.GetTeamMemberResponse(); if (object.enterpriseUser) { if (!Array.isArray(object.enterpriseUser)) - throw TypeError(".Enterprise.GetTeamMemberResponse.enterpriseUser: array expected"); + throw TypeError('.Enterprise.GetTeamMemberResponse.enterpriseUser: array expected'); message.enterpriseUser = []; for (let i = 0; i < object.enterpriseUser.length; ++i) { - if (typeof object.enterpriseUser[i] !== "object") - throw TypeError(".Enterprise.GetTeamMemberResponse.enterpriseUser: object expected"); + if (typeof object.enterpriseUser[i] !== 'object') + throw TypeError('.Enterprise.GetTeamMemberResponse.enterpriseUser: object expected'); message.enterpriseUser[i] = $root.Enterprise.EnterpriseUser.fromObject(object.enterpriseUser[i]); } } @@ -52555,15 +54513,16 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ GetTeamMemberResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.enterpriseUser = []; + if (options.arrays || options.defaults) object.enterpriseUser = []; if (message.enterpriseUser && message.enterpriseUser.length) { object.enterpriseUser = []; for (let j = 0; j < message.enterpriseUser.length; ++j) - object.enterpriseUser[j] = $root.Enterprise.EnterpriseUser.toObject(message.enterpriseUser[j], options); + object.enterpriseUser[j] = $root.Enterprise.EnterpriseUser.toObject( + message.enterpriseUser[j], + options + ); } return object; }; @@ -52589,16 +54548,15 @@ export const Enterprise = $root.Enterprise = (() => { */ GetTeamMemberResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.GetTeamMemberResponse"; + return typeUrlPrefix + '/Enterprise.GetTeamMemberResponse'; }; return GetTeamMemberResponse; })(); - Enterprise.EnterpriseUserIds = (function() { - + Enterprise.EnterpriseUserIds = (function () { /** * Properties of an EnterpriseUserIds. * @memberof Enterprise @@ -52618,8 +54576,7 @@ export const Enterprise = $root.Enterprise = (() => { this.enterpriseUserId = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -52652,12 +54609,10 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ EnterpriseUserIds.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.enterpriseUserId != null && message.enterpriseUserId.length) { - writer.uint32(/* id 1, wireType 2 =*/10).fork(); - for (let i = 0; i < message.enterpriseUserId.length; ++i) - writer.int64(message.enterpriseUserId[i]); + writer.uint32(/* id 1, wireType 2 =*/ 10).fork(); + for (let i = 0; i < message.enterpriseUserId.length; ++i) writer.int64(message.enterpriseUserId[i]); writer.ldelim(); } return writer; @@ -52688,26 +54643,24 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ EnterpriseUserIds.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.EnterpriseUserIds(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.EnterpriseUserIds(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { if (!(message.enterpriseUserId && message.enterpriseUserId.length)) message.enterpriseUserId = []; if ((tag & 7) === 2) { let end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.enterpriseUserId.push(reader.int64()); - } else - message.enterpriseUserId.push(reader.int64()); + while (reader.pos < end2) message.enterpriseUserId.push(reader.int64()); + } else message.enterpriseUserId.push(reader.int64()); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -52724,8 +54677,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ EnterpriseUserIds.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -52738,14 +54690,19 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ EnterpriseUserIds.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) { - if (!Array.isArray(message.enterpriseUserId)) - return "enterpriseUserId: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.enterpriseUserId != null && message.hasOwnProperty('enterpriseUserId')) { + if (!Array.isArray(message.enterpriseUserId)) return 'enterpriseUserId: array expected'; for (let i = 0; i < message.enterpriseUserId.length; ++i) - if (!$util.isInteger(message.enterpriseUserId[i]) && !(message.enterpriseUserId[i] && $util.isInteger(message.enterpriseUserId[i].low) && $util.isInteger(message.enterpriseUserId[i].high))) - return "enterpriseUserId: integer|Long[] expected"; + if ( + !$util.isInteger(message.enterpriseUserId[i]) && + !( + message.enterpriseUserId[i] && + $util.isInteger(message.enterpriseUserId[i].low) && + $util.isInteger(message.enterpriseUserId[i].high) + ) + ) + return 'enterpriseUserId: integer|Long[] expected'; } return null; }; @@ -52759,22 +54716,25 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.EnterpriseUserIds} EnterpriseUserIds */ EnterpriseUserIds.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.EnterpriseUserIds) - return object; + if (object instanceof $root.Enterprise.EnterpriseUserIds) return object; let message = new $root.Enterprise.EnterpriseUserIds(); if (object.enterpriseUserId) { if (!Array.isArray(object.enterpriseUserId)) - throw TypeError(".Enterprise.EnterpriseUserIds.enterpriseUserId: array expected"); + throw TypeError('.Enterprise.EnterpriseUserIds.enterpriseUserId: array expected'); message.enterpriseUserId = []; for (let i = 0; i < object.enterpriseUserId.length; ++i) if ($util.Long) - (message.enterpriseUserId[i] = $util.Long.fromValue(object.enterpriseUserId[i])).unsigned = false; - else if (typeof object.enterpriseUserId[i] === "string") + (message.enterpriseUserId[i] = $util.Long.fromValue(object.enterpriseUserId[i])).unsigned = + false; + else if (typeof object.enterpriseUserId[i] === 'string') message.enterpriseUserId[i] = parseInt(object.enterpriseUserId[i], 10); - else if (typeof object.enterpriseUserId[i] === "number") + else if (typeof object.enterpriseUserId[i] === 'number') message.enterpriseUserId[i] = object.enterpriseUserId[i]; - else if (typeof object.enterpriseUserId[i] === "object") - message.enterpriseUserId[i] = new $util.LongBits(object.enterpriseUserId[i].low >>> 0, object.enterpriseUserId[i].high >>> 0).toNumber(); + else if (typeof object.enterpriseUserId[i] === 'object') + message.enterpriseUserId[i] = new $util.LongBits( + object.enterpriseUserId[i].low >>> 0, + object.enterpriseUserId[i].high >>> 0 + ).toNumber(); } return message; }; @@ -52789,18 +54749,27 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ EnterpriseUserIds.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.enterpriseUserId = []; + if (options.arrays || options.defaults) object.enterpriseUserId = []; if (message.enterpriseUserId && message.enterpriseUserId.length) { object.enterpriseUserId = []; for (let j = 0; j < message.enterpriseUserId.length; ++j) - if (typeof message.enterpriseUserId[j] === "number") - object.enterpriseUserId[j] = options.longs === String ? String(message.enterpriseUserId[j]) : message.enterpriseUserId[j]; + if (typeof message.enterpriseUserId[j] === 'number') + object.enterpriseUserId[j] = + options.longs === String + ? String(message.enterpriseUserId[j]) + : message.enterpriseUserId[j]; else - object.enterpriseUserId[j] = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseUserId[j]) : options.longs === Number ? new $util.LongBits(message.enterpriseUserId[j].low >>> 0, message.enterpriseUserId[j].high >>> 0).toNumber() : message.enterpriseUserId[j]; + object.enterpriseUserId[j] = + options.longs === String + ? $util.Long.prototype.toString.call(message.enterpriseUserId[j]) + : options.longs === Number + ? new $util.LongBits( + message.enterpriseUserId[j].low >>> 0, + message.enterpriseUserId[j].high >>> 0 + ).toNumber() + : message.enterpriseUserId[j]; } return object; }; @@ -52826,16 +54795,15 @@ export const Enterprise = $root.Enterprise = (() => { */ EnterpriseUserIds.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.EnterpriseUserIds"; + return typeUrlPrefix + '/Enterprise.EnterpriseUserIds'; }; return EnterpriseUserIds; })(); - Enterprise.EnterprisePersonalAccount = (function() { - + Enterprise.EnterprisePersonalAccount = (function () { /** * Properties of an EnterprisePersonalAccount. * @memberof Enterprise @@ -52855,8 +54823,7 @@ export const Enterprise = $root.Enterprise = (() => { function EnterprisePersonalAccount(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -52865,7 +54832,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.EnterprisePersonalAccount * @instance */ - EnterprisePersonalAccount.prototype.email = ""; + EnterprisePersonalAccount.prototype.email = ''; /** * EnterprisePersonalAccount OBSOLETE_FIELD. @@ -52897,12 +54864,11 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ EnterprisePersonalAccount.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.email != null && Object.hasOwnProperty.call(message, "email")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.email); - if (message.OBSOLETE_FIELD != null && Object.hasOwnProperty.call(message, "OBSOLETE_FIELD")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.OBSOLETE_FIELD); + if (!writer) writer = $Writer.create(); + if (message.email != null && Object.hasOwnProperty.call(message, 'email')) + writer.uint32(/* id 1, wireType 2 =*/ 10).string(message.email); + if (message.OBSOLETE_FIELD != null && Object.hasOwnProperty.call(message, 'OBSOLETE_FIELD')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.OBSOLETE_FIELD); return writer; }; @@ -52931,23 +54897,23 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ EnterprisePersonalAccount.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.EnterprisePersonalAccount(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.EnterprisePersonalAccount(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.email = reader.string(); break; } - case 2: { + case 2: { message.OBSOLETE_FIELD = reader.bytes(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -52964,8 +54930,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ EnterprisePersonalAccount.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -52978,14 +54943,17 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ EnterprisePersonalAccount.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.email != null && message.hasOwnProperty("email")) - if (!$util.isString(message.email)) - return "email: string expected"; - if (message.OBSOLETE_FIELD != null && message.hasOwnProperty("OBSOLETE_FIELD")) - if (!(message.OBSOLETE_FIELD && typeof message.OBSOLETE_FIELD.length === "number" || $util.isString(message.OBSOLETE_FIELD))) - return "OBSOLETE_FIELD: buffer expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.email != null && message.hasOwnProperty('email')) + if (!$util.isString(message.email)) return 'email: string expected'; + if (message.OBSOLETE_FIELD != null && message.hasOwnProperty('OBSOLETE_FIELD')) + if ( + !( + (message.OBSOLETE_FIELD && typeof message.OBSOLETE_FIELD.length === 'number') || + $util.isString(message.OBSOLETE_FIELD) + ) + ) + return 'OBSOLETE_FIELD: buffer expected'; return null; }; @@ -52998,16 +54966,17 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.EnterprisePersonalAccount} EnterprisePersonalAccount */ EnterprisePersonalAccount.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.EnterprisePersonalAccount) - return object; + if (object instanceof $root.Enterprise.EnterprisePersonalAccount) return object; let message = new $root.Enterprise.EnterprisePersonalAccount(); - if (object.email != null) - message.email = String(object.email); + if (object.email != null) message.email = String(object.email); if (object.OBSOLETE_FIELD != null) - if (typeof object.OBSOLETE_FIELD === "string") - $util.base64.decode(object.OBSOLETE_FIELD, message.OBSOLETE_FIELD = $util.newBuffer($util.base64.length(object.OBSOLETE_FIELD)), 0); - else if (object.OBSOLETE_FIELD.length >= 0) - message.OBSOLETE_FIELD = object.OBSOLETE_FIELD; + if (typeof object.OBSOLETE_FIELD === 'string') + $util.base64.decode( + object.OBSOLETE_FIELD, + (message.OBSOLETE_FIELD = $util.newBuffer($util.base64.length(object.OBSOLETE_FIELD))), + 0 + ); + else if (object.OBSOLETE_FIELD.length >= 0) message.OBSOLETE_FIELD = object.OBSOLETE_FIELD; return message; }; @@ -53021,23 +54990,24 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ EnterprisePersonalAccount.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - object.email = ""; - if (options.bytes === String) - object.OBSOLETE_FIELD = ""; + object.email = ''; + if (options.bytes === String) object.OBSOLETE_FIELD = ''; else { object.OBSOLETE_FIELD = []; - if (options.bytes !== Array) - object.OBSOLETE_FIELD = $util.newBuffer(object.OBSOLETE_FIELD); + if (options.bytes !== Array) object.OBSOLETE_FIELD = $util.newBuffer(object.OBSOLETE_FIELD); } } - if (message.email != null && message.hasOwnProperty("email")) - object.email = message.email; - if (message.OBSOLETE_FIELD != null && message.hasOwnProperty("OBSOLETE_FIELD")) - object.OBSOLETE_FIELD = options.bytes === String ? $util.base64.encode(message.OBSOLETE_FIELD, 0, message.OBSOLETE_FIELD.length) : options.bytes === Array ? Array.prototype.slice.call(message.OBSOLETE_FIELD) : message.OBSOLETE_FIELD; + if (message.email != null && message.hasOwnProperty('email')) object.email = message.email; + if (message.OBSOLETE_FIELD != null && message.hasOwnProperty('OBSOLETE_FIELD')) + object.OBSOLETE_FIELD = + options.bytes === String + ? $util.base64.encode(message.OBSOLETE_FIELD, 0, message.OBSOLETE_FIELD.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.OBSOLETE_FIELD) + : message.OBSOLETE_FIELD; return object; }; @@ -53062,16 +55032,15 @@ export const Enterprise = $root.Enterprise = (() => { */ EnterprisePersonalAccount.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.EnterprisePersonalAccount"; + return typeUrlPrefix + '/Enterprise.EnterprisePersonalAccount'; }; return EnterprisePersonalAccount; })(); - Enterprise.EncryptedTeamKeyRequest = (function() { - + Enterprise.EncryptedTeamKeyRequest = (function () { /** * Properties of an EncryptedTeamKeyRequest. * @memberof Enterprise @@ -53092,8 +55061,7 @@ export const Enterprise = $root.Enterprise = (() => { function EncryptedTeamKeyRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -53142,14 +55110,13 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ EncryptedTeamKeyRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.teamUid != null && Object.hasOwnProperty.call(message, "teamUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.teamUid); - if (message.encryptedTeamKey != null && Object.hasOwnProperty.call(message, "encryptedTeamKey")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.encryptedTeamKey); - if (message.force != null && Object.hasOwnProperty.call(message, "force")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.force); + if (!writer) writer = $Writer.create(); + if (message.teamUid != null && Object.hasOwnProperty.call(message, 'teamUid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.teamUid); + if (message.encryptedTeamKey != null && Object.hasOwnProperty.call(message, 'encryptedTeamKey')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.encryptedTeamKey); + if (message.force != null && Object.hasOwnProperty.call(message, 'force')) + writer.uint32(/* id 3, wireType 0 =*/ 24).bool(message.force); return writer; }; @@ -53178,27 +55145,27 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ EncryptedTeamKeyRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.EncryptedTeamKeyRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.EncryptedTeamKeyRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.teamUid = reader.bytes(); break; } - case 2: { + case 2: { message.encryptedTeamKey = reader.bytes(); break; } - case 3: { + case 3: { message.force = reader.bool(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -53215,8 +55182,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ EncryptedTeamKeyRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -53229,17 +55195,25 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ EncryptedTeamKeyRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.teamUid != null && message.hasOwnProperty("teamUid")) - if (!(message.teamUid && typeof message.teamUid.length === "number" || $util.isString(message.teamUid))) - return "teamUid: buffer expected"; - if (message.encryptedTeamKey != null && message.hasOwnProperty("encryptedTeamKey")) - if (!(message.encryptedTeamKey && typeof message.encryptedTeamKey.length === "number" || $util.isString(message.encryptedTeamKey))) - return "encryptedTeamKey: buffer expected"; - if (message.force != null && message.hasOwnProperty("force")) - if (typeof message.force !== "boolean") - return "force: boolean expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.teamUid != null && message.hasOwnProperty('teamUid')) + if ( + !( + (message.teamUid && typeof message.teamUid.length === 'number') || + $util.isString(message.teamUid) + ) + ) + return 'teamUid: buffer expected'; + if (message.encryptedTeamKey != null && message.hasOwnProperty('encryptedTeamKey')) + if ( + !( + (message.encryptedTeamKey && typeof message.encryptedTeamKey.length === 'number') || + $util.isString(message.encryptedTeamKey) + ) + ) + return 'encryptedTeamKey: buffer expected'; + if (message.force != null && message.hasOwnProperty('force')) + if (typeof message.force !== 'boolean') return 'force: boolean expected'; return null; }; @@ -53252,21 +55226,25 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.EncryptedTeamKeyRequest} EncryptedTeamKeyRequest */ EncryptedTeamKeyRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.EncryptedTeamKeyRequest) - return object; + if (object instanceof $root.Enterprise.EncryptedTeamKeyRequest) return object; let message = new $root.Enterprise.EncryptedTeamKeyRequest(); if (object.teamUid != null) - if (typeof object.teamUid === "string") - $util.base64.decode(object.teamUid, message.teamUid = $util.newBuffer($util.base64.length(object.teamUid)), 0); - else if (object.teamUid.length >= 0) - message.teamUid = object.teamUid; + if (typeof object.teamUid === 'string') + $util.base64.decode( + object.teamUid, + (message.teamUid = $util.newBuffer($util.base64.length(object.teamUid))), + 0 + ); + else if (object.teamUid.length >= 0) message.teamUid = object.teamUid; if (object.encryptedTeamKey != null) - if (typeof object.encryptedTeamKey === "string") - $util.base64.decode(object.encryptedTeamKey, message.encryptedTeamKey = $util.newBuffer($util.base64.length(object.encryptedTeamKey)), 0); - else if (object.encryptedTeamKey.length >= 0) - message.encryptedTeamKey = object.encryptedTeamKey; - if (object.force != null) - message.force = Boolean(object.force); + if (typeof object.encryptedTeamKey === 'string') + $util.base64.decode( + object.encryptedTeamKey, + (message.encryptedTeamKey = $util.newBuffer($util.base64.length(object.encryptedTeamKey))), + 0 + ); + else if (object.encryptedTeamKey.length >= 0) message.encryptedTeamKey = object.encryptedTeamKey; + if (object.force != null) message.force = Boolean(object.force); return message; }; @@ -53280,32 +55258,36 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ EncryptedTeamKeyRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.teamUid = ""; + if (options.bytes === String) object.teamUid = ''; else { object.teamUid = []; - if (options.bytes !== Array) - object.teamUid = $util.newBuffer(object.teamUid); + if (options.bytes !== Array) object.teamUid = $util.newBuffer(object.teamUid); } - if (options.bytes === String) - object.encryptedTeamKey = ""; + if (options.bytes === String) object.encryptedTeamKey = ''; else { object.encryptedTeamKey = []; - if (options.bytes !== Array) - object.encryptedTeamKey = $util.newBuffer(object.encryptedTeamKey); + if (options.bytes !== Array) object.encryptedTeamKey = $util.newBuffer(object.encryptedTeamKey); } object.force = false; } - if (message.teamUid != null && message.hasOwnProperty("teamUid")) - object.teamUid = options.bytes === String ? $util.base64.encode(message.teamUid, 0, message.teamUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.teamUid) : message.teamUid; - if (message.encryptedTeamKey != null && message.hasOwnProperty("encryptedTeamKey")) - object.encryptedTeamKey = options.bytes === String ? $util.base64.encode(message.encryptedTeamKey, 0, message.encryptedTeamKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedTeamKey) : message.encryptedTeamKey; - if (message.force != null && message.hasOwnProperty("force")) - object.force = message.force; + if (message.teamUid != null && message.hasOwnProperty('teamUid')) + object.teamUid = + options.bytes === String + ? $util.base64.encode(message.teamUid, 0, message.teamUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.teamUid) + : message.teamUid; + if (message.encryptedTeamKey != null && message.hasOwnProperty('encryptedTeamKey')) + object.encryptedTeamKey = + options.bytes === String + ? $util.base64.encode(message.encryptedTeamKey, 0, message.encryptedTeamKey.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.encryptedTeamKey) + : message.encryptedTeamKey; + if (message.force != null && message.hasOwnProperty('force')) object.force = message.force; return object; }; @@ -53330,16 +55312,15 @@ export const Enterprise = $root.Enterprise = (() => { */ EncryptedTeamKeyRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.EncryptedTeamKeyRequest"; + return typeUrlPrefix + '/Enterprise.EncryptedTeamKeyRequest'; }; return EncryptedTeamKeyRequest; })(); - Enterprise.ReEncryptedData = (function() { - + Enterprise.ReEncryptedData = (function () { /** * Properties of a ReEncryptedData. * @memberof Enterprise @@ -53359,8 +55340,7 @@ export const Enterprise = $root.Enterprise = (() => { function ReEncryptedData(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -53369,7 +55349,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.ReEncryptedData * @instance */ - ReEncryptedData.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + ReEncryptedData.prototype.id = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * ReEncryptedData data. @@ -53377,7 +55357,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.ReEncryptedData * @instance */ - ReEncryptedData.prototype.data = ""; + ReEncryptedData.prototype.data = ''; /** * Creates a new ReEncryptedData instance using the specified properties. @@ -53401,12 +55381,11 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ ReEncryptedData.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.id != null && Object.hasOwnProperty.call(message, "id")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.id); - if (message.data != null && Object.hasOwnProperty.call(message, "data")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.data); + if (!writer) writer = $Writer.create(); + if (message.id != null && Object.hasOwnProperty.call(message, 'id')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int64(message.id); + if (message.data != null && Object.hasOwnProperty.call(message, 'data')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.data); return writer; }; @@ -53435,23 +55414,23 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ReEncryptedData.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.ReEncryptedData(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.ReEncryptedData(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.id = reader.int64(); break; } - case 2: { + case 2: { message.data = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -53468,8 +55447,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ReEncryptedData.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -53482,14 +55460,15 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ ReEncryptedData.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) - if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high))) - return "id: integer|Long expected"; - if (message.data != null && message.hasOwnProperty("data")) - if (!$util.isString(message.data)) - return "data: string expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.id != null && message.hasOwnProperty('id')) + if ( + !$util.isInteger(message.id) && + !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high)) + ) + return 'id: integer|Long expected'; + if (message.data != null && message.hasOwnProperty('data')) + if (!$util.isString(message.data)) return 'data: string expected'; return null; }; @@ -53502,20 +55481,15 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.ReEncryptedData} ReEncryptedData */ ReEncryptedData.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.ReEncryptedData) - return object; + if (object instanceof $root.Enterprise.ReEncryptedData) return object; let message = new $root.Enterprise.ReEncryptedData(); if (object.id != null) - if ($util.Long) - (message.id = $util.Long.fromValue(object.id)).unsigned = false; - else if (typeof object.id === "string") - message.id = parseInt(object.id, 10); - else if (typeof object.id === "number") - message.id = object.id; - else if (typeof object.id === "object") + if ($util.Long) (message.id = $util.Long.fromValue(object.id)).unsigned = false; + else if (typeof object.id === 'string') message.id = parseInt(object.id, 10); + else if (typeof object.id === 'number') message.id = object.id; + else if (typeof object.id === 'object') message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber(); - if (object.data != null) - message.data = String(object.data); + if (object.data != null) message.data = String(object.data); return message; }; @@ -53529,24 +55503,27 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ ReEncryptedData.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.id = options.longs === String ? "0" : 0; - object.data = ""; + object.id = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.id = options.longs === String ? '0' : 0; + object.data = ''; } - if (message.id != null && message.hasOwnProperty("id")) - if (typeof message.id === "number") + if (message.id != null && message.hasOwnProperty('id')) + if (typeof message.id === 'number') object.id = options.longs === String ? String(message.id) : message.id; else - object.id = options.longs === String ? $util.Long.prototype.toString.call(message.id) : options.longs === Number ? new $util.LongBits(message.id.low >>> 0, message.id.high >>> 0).toNumber() : message.id; - if (message.data != null && message.hasOwnProperty("data")) - object.data = message.data; + object.id = + options.longs === String + ? $util.Long.prototype.toString.call(message.id) + : options.longs === Number + ? new $util.LongBits(message.id.low >>> 0, message.id.high >>> 0).toNumber() + : message.id; + if (message.data != null && message.hasOwnProperty('data')) object.data = message.data; return object; }; @@ -53571,16 +55548,15 @@ export const Enterprise = $root.Enterprise = (() => { */ ReEncryptedData.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.ReEncryptedData"; + return typeUrlPrefix + '/Enterprise.ReEncryptedData'; }; return ReEncryptedData; })(); - Enterprise.ReEncryptedRoleKey = (function() { - + Enterprise.ReEncryptedRoleKey = (function () { /** * Properties of a ReEncryptedRoleKey. * @memberof Enterprise @@ -53600,8 +55576,7 @@ export const Enterprise = $root.Enterprise = (() => { function ReEncryptedRoleKey(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -53610,7 +55585,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.ReEncryptedRoleKey * @instance */ - ReEncryptedRoleKey.prototype.roleId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + ReEncryptedRoleKey.prototype.roleId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * ReEncryptedRoleKey encryptedRoleKey. @@ -53642,12 +55617,11 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ ReEncryptedRoleKey.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.roleId != null && Object.hasOwnProperty.call(message, "roleId")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.roleId); - if (message.encryptedRoleKey != null && Object.hasOwnProperty.call(message, "encryptedRoleKey")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.encryptedRoleKey); + if (!writer) writer = $Writer.create(); + if (message.roleId != null && Object.hasOwnProperty.call(message, 'roleId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int64(message.roleId); + if (message.encryptedRoleKey != null && Object.hasOwnProperty.call(message, 'encryptedRoleKey')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.encryptedRoleKey); return writer; }; @@ -53676,23 +55650,23 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ReEncryptedRoleKey.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.ReEncryptedRoleKey(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.ReEncryptedRoleKey(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.roleId = reader.int64(); break; } - case 2: { + case 2: { message.encryptedRoleKey = reader.bytes(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -53709,8 +55683,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ReEncryptedRoleKey.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -53723,14 +55696,21 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ ReEncryptedRoleKey.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.roleId != null && message.hasOwnProperty("roleId")) - if (!$util.isInteger(message.roleId) && !(message.roleId && $util.isInteger(message.roleId.low) && $util.isInteger(message.roleId.high))) - return "roleId: integer|Long expected"; - if (message.encryptedRoleKey != null && message.hasOwnProperty("encryptedRoleKey")) - if (!(message.encryptedRoleKey && typeof message.encryptedRoleKey.length === "number" || $util.isString(message.encryptedRoleKey))) - return "encryptedRoleKey: buffer expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.roleId != null && message.hasOwnProperty('roleId')) + if ( + !$util.isInteger(message.roleId) && + !(message.roleId && $util.isInteger(message.roleId.low) && $util.isInteger(message.roleId.high)) + ) + return 'roleId: integer|Long expected'; + if (message.encryptedRoleKey != null && message.hasOwnProperty('encryptedRoleKey')) + if ( + !( + (message.encryptedRoleKey && typeof message.encryptedRoleKey.length === 'number') || + $util.isString(message.encryptedRoleKey) + ) + ) + return 'encryptedRoleKey: buffer expected'; return null; }; @@ -53743,23 +55723,22 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.ReEncryptedRoleKey} ReEncryptedRoleKey */ ReEncryptedRoleKey.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.ReEncryptedRoleKey) - return object; + if (object instanceof $root.Enterprise.ReEncryptedRoleKey) return object; let message = new $root.Enterprise.ReEncryptedRoleKey(); if (object.roleId != null) - if ($util.Long) - (message.roleId = $util.Long.fromValue(object.roleId)).unsigned = false; - else if (typeof object.roleId === "string") - message.roleId = parseInt(object.roleId, 10); - else if (typeof object.roleId === "number") - message.roleId = object.roleId; - else if (typeof object.roleId === "object") + if ($util.Long) (message.roleId = $util.Long.fromValue(object.roleId)).unsigned = false; + else if (typeof object.roleId === 'string') message.roleId = parseInt(object.roleId, 10); + else if (typeof object.roleId === 'number') message.roleId = object.roleId; + else if (typeof object.roleId === 'object') message.roleId = new $util.LongBits(object.roleId.low >>> 0, object.roleId.high >>> 0).toNumber(); if (object.encryptedRoleKey != null) - if (typeof object.encryptedRoleKey === "string") - $util.base64.decode(object.encryptedRoleKey, message.encryptedRoleKey = $util.newBuffer($util.base64.length(object.encryptedRoleKey)), 0); - else if (object.encryptedRoleKey.length >= 0) - message.encryptedRoleKey = object.encryptedRoleKey; + if (typeof object.encryptedRoleKey === 'string') + $util.base64.decode( + object.encryptedRoleKey, + (message.encryptedRoleKey = $util.newBuffer($util.base64.length(object.encryptedRoleKey))), + 0 + ); + else if (object.encryptedRoleKey.length >= 0) message.encryptedRoleKey = object.encryptedRoleKey; return message; }; @@ -53773,30 +55752,37 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ ReEncryptedRoleKey.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.roleId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.roleId = options.longs === String ? "0" : 0; - if (options.bytes === String) - object.encryptedRoleKey = ""; + object.roleId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.roleId = options.longs === String ? '0' : 0; + if (options.bytes === String) object.encryptedRoleKey = ''; else { object.encryptedRoleKey = []; - if (options.bytes !== Array) - object.encryptedRoleKey = $util.newBuffer(object.encryptedRoleKey); + if (options.bytes !== Array) object.encryptedRoleKey = $util.newBuffer(object.encryptedRoleKey); } } - if (message.roleId != null && message.hasOwnProperty("roleId")) - if (typeof message.roleId === "number") + if (message.roleId != null && message.hasOwnProperty('roleId')) + if (typeof message.roleId === 'number') object.roleId = options.longs === String ? String(message.roleId) : message.roleId; else - object.roleId = options.longs === String ? $util.Long.prototype.toString.call(message.roleId) : options.longs === Number ? new $util.LongBits(message.roleId.low >>> 0, message.roleId.high >>> 0).toNumber() : message.roleId; - if (message.encryptedRoleKey != null && message.hasOwnProperty("encryptedRoleKey")) - object.encryptedRoleKey = options.bytes === String ? $util.base64.encode(message.encryptedRoleKey, 0, message.encryptedRoleKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedRoleKey) : message.encryptedRoleKey; + object.roleId = + options.longs === String + ? $util.Long.prototype.toString.call(message.roleId) + : options.longs === Number + ? new $util.LongBits(message.roleId.low >>> 0, message.roleId.high >>> 0).toNumber() + : message.roleId; + if (message.encryptedRoleKey != null && message.hasOwnProperty('encryptedRoleKey')) + object.encryptedRoleKey = + options.bytes === String + ? $util.base64.encode(message.encryptedRoleKey, 0, message.encryptedRoleKey.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.encryptedRoleKey) + : message.encryptedRoleKey; return object; }; @@ -53821,16 +55807,15 @@ export const Enterprise = $root.Enterprise = (() => { */ ReEncryptedRoleKey.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.ReEncryptedRoleKey"; + return typeUrlPrefix + '/Enterprise.ReEncryptedRoleKey'; }; return ReEncryptedRoleKey; })(); - Enterprise.ReEncryptedUserDataKey = (function() { - + Enterprise.ReEncryptedUserDataKey = (function () { /** * Properties of a ReEncryptedUserDataKey. * @memberof Enterprise @@ -53850,8 +55835,7 @@ export const Enterprise = $root.Enterprise = (() => { function ReEncryptedUserDataKey(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -53860,7 +55844,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.ReEncryptedUserDataKey * @instance */ - ReEncryptedUserDataKey.prototype.enterpriseUserId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + ReEncryptedUserDataKey.prototype.enterpriseUserId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * ReEncryptedUserDataKey userEncryptedDataKey. @@ -53892,12 +55876,11 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ ReEncryptedUserDataKey.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "enterpriseUserId")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.enterpriseUserId); - if (message.userEncryptedDataKey != null && Object.hasOwnProperty.call(message, "userEncryptedDataKey")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.userEncryptedDataKey); + if (!writer) writer = $Writer.create(); + if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, 'enterpriseUserId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int64(message.enterpriseUserId); + if (message.userEncryptedDataKey != null && Object.hasOwnProperty.call(message, 'userEncryptedDataKey')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.userEncryptedDataKey); return writer; }; @@ -53926,23 +55909,23 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ReEncryptedUserDataKey.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.ReEncryptedUserDataKey(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.ReEncryptedUserDataKey(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.enterpriseUserId = reader.int64(); break; } - case 2: { + case 2: { message.userEncryptedDataKey = reader.bytes(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -53959,8 +55942,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ReEncryptedUserDataKey.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -53973,14 +55955,25 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ ReEncryptedUserDataKey.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (!$util.isInteger(message.enterpriseUserId) && !(message.enterpriseUserId && $util.isInteger(message.enterpriseUserId.low) && $util.isInteger(message.enterpriseUserId.high))) - return "enterpriseUserId: integer|Long expected"; - if (message.userEncryptedDataKey != null && message.hasOwnProperty("userEncryptedDataKey")) - if (!(message.userEncryptedDataKey && typeof message.userEncryptedDataKey.length === "number" || $util.isString(message.userEncryptedDataKey))) - return "userEncryptedDataKey: buffer expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.enterpriseUserId != null && message.hasOwnProperty('enterpriseUserId')) + if ( + !$util.isInteger(message.enterpriseUserId) && + !( + message.enterpriseUserId && + $util.isInteger(message.enterpriseUserId.low) && + $util.isInteger(message.enterpriseUserId.high) + ) + ) + return 'enterpriseUserId: integer|Long expected'; + if (message.userEncryptedDataKey != null && message.hasOwnProperty('userEncryptedDataKey')) + if ( + !( + (message.userEncryptedDataKey && typeof message.userEncryptedDataKey.length === 'number') || + $util.isString(message.userEncryptedDataKey) + ) + ) + return 'userEncryptedDataKey: buffer expected'; return null; }; @@ -53993,21 +55986,29 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.ReEncryptedUserDataKey} ReEncryptedUserDataKey */ ReEncryptedUserDataKey.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.ReEncryptedUserDataKey) - return object; + if (object instanceof $root.Enterprise.ReEncryptedUserDataKey) return object; let message = new $root.Enterprise.ReEncryptedUserDataKey(); if (object.enterpriseUserId != null) if ($util.Long) (message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId)).unsigned = false; - else if (typeof object.enterpriseUserId === "string") + else if (typeof object.enterpriseUserId === 'string') message.enterpriseUserId = parseInt(object.enterpriseUserId, 10); - else if (typeof object.enterpriseUserId === "number") + else if (typeof object.enterpriseUserId === 'number') message.enterpriseUserId = object.enterpriseUserId; - else if (typeof object.enterpriseUserId === "object") - message.enterpriseUserId = new $util.LongBits(object.enterpriseUserId.low >>> 0, object.enterpriseUserId.high >>> 0).toNumber(); + else if (typeof object.enterpriseUserId === 'object') + message.enterpriseUserId = new $util.LongBits( + object.enterpriseUserId.low >>> 0, + object.enterpriseUserId.high >>> 0 + ).toNumber(); if (object.userEncryptedDataKey != null) - if (typeof object.userEncryptedDataKey === "string") - $util.base64.decode(object.userEncryptedDataKey, message.userEncryptedDataKey = $util.newBuffer($util.base64.length(object.userEncryptedDataKey)), 0); + if (typeof object.userEncryptedDataKey === 'string') + $util.base64.decode( + object.userEncryptedDataKey, + (message.userEncryptedDataKey = $util.newBuffer( + $util.base64.length(object.userEncryptedDataKey) + )), + 0 + ); else if (object.userEncryptedDataKey.length >= 0) message.userEncryptedDataKey = object.userEncryptedDataKey; return message; @@ -54023,30 +56024,42 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ ReEncryptedUserDataKey.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.enterpriseUserId = options.longs === String ? "0" : 0; - if (options.bytes === String) - object.userEncryptedDataKey = ""; + object.enterpriseUserId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.enterpriseUserId = options.longs === String ? '0' : 0; + if (options.bytes === String) object.userEncryptedDataKey = ''; else { object.userEncryptedDataKey = []; if (options.bytes !== Array) object.userEncryptedDataKey = $util.newBuffer(object.userEncryptedDataKey); } } - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (typeof message.enterpriseUserId === "number") - object.enterpriseUserId = options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; + if (message.enterpriseUserId != null && message.hasOwnProperty('enterpriseUserId')) + if (typeof message.enterpriseUserId === 'number') + object.enterpriseUserId = + options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; else - object.enterpriseUserId = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseUserId) : options.longs === Number ? new $util.LongBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0).toNumber() : message.enterpriseUserId; - if (message.userEncryptedDataKey != null && message.hasOwnProperty("userEncryptedDataKey")) - object.userEncryptedDataKey = options.bytes === String ? $util.base64.encode(message.userEncryptedDataKey, 0, message.userEncryptedDataKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.userEncryptedDataKey) : message.userEncryptedDataKey; + object.enterpriseUserId = + options.longs === String + ? $util.Long.prototype.toString.call(message.enterpriseUserId) + : options.longs === Number + ? new $util.LongBits( + message.enterpriseUserId.low >>> 0, + message.enterpriseUserId.high >>> 0 + ).toNumber() + : message.enterpriseUserId; + if (message.userEncryptedDataKey != null && message.hasOwnProperty('userEncryptedDataKey')) + object.userEncryptedDataKey = + options.bytes === String + ? $util.base64.encode(message.userEncryptedDataKey, 0, message.userEncryptedDataKey.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.userEncryptedDataKey) + : message.userEncryptedDataKey; return object; }; @@ -54071,16 +56084,15 @@ export const Enterprise = $root.Enterprise = (() => { */ ReEncryptedUserDataKey.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.ReEncryptedUserDataKey"; + return typeUrlPrefix + '/Enterprise.ReEncryptedUserDataKey'; }; return ReEncryptedUserDataKey; })(); - Enterprise.NodeToManagedCompanyRequest = (function() { - + Enterprise.NodeToManagedCompanyRequest = (function () { /** * Properties of a NodeToManagedCompanyRequest. * @memberof Enterprise @@ -54111,8 +56123,7 @@ export const Enterprise = $root.Enterprise = (() => { this.usersDataKeys = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -54193,28 +56204,45 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ NodeToManagedCompanyRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.companyId != null && Object.hasOwnProperty.call(message, "companyId")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.companyId); + if (!writer) writer = $Writer.create(); + if (message.companyId != null && Object.hasOwnProperty.call(message, 'companyId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int32(message.companyId); if (message.nodes != null && message.nodes.length) for (let i = 0; i < message.nodes.length; ++i) - $root.Enterprise.ReEncryptedData.encode(message.nodes[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + $root.Enterprise.ReEncryptedData.encode( + message.nodes[i], + writer.uint32(/* id 2, wireType 2 =*/ 18).fork() + ).ldelim(); if (message.roles != null && message.roles.length) for (let i = 0; i < message.roles.length; ++i) - $root.Enterprise.ReEncryptedData.encode(message.roles[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + $root.Enterprise.ReEncryptedData.encode( + message.roles[i], + writer.uint32(/* id 3, wireType 2 =*/ 26).fork() + ).ldelim(); if (message.users != null && message.users.length) for (let i = 0; i < message.users.length; ++i) - $root.Enterprise.ReEncryptedData.encode(message.users[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + $root.Enterprise.ReEncryptedData.encode( + message.users[i], + writer.uint32(/* id 4, wireType 2 =*/ 34).fork() + ).ldelim(); if (message.roleKeys != null && message.roleKeys.length) for (let i = 0; i < message.roleKeys.length; ++i) - $root.Enterprise.ReEncryptedRoleKey.encode(message.roleKeys[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + $root.Enterprise.ReEncryptedRoleKey.encode( + message.roleKeys[i], + writer.uint32(/* id 5, wireType 2 =*/ 42).fork() + ).ldelim(); if (message.teamKeys != null && message.teamKeys.length) for (let i = 0; i < message.teamKeys.length; ++i) - $root.Enterprise.EncryptedTeamKeyRequest.encode(message.teamKeys[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + $root.Enterprise.EncryptedTeamKeyRequest.encode( + message.teamKeys[i], + writer.uint32(/* id 6, wireType 2 =*/ 50).fork() + ).ldelim(); if (message.usersDataKeys != null && message.usersDataKeys.length) for (let i = 0; i < message.usersDataKeys.length; ++i) - $root.Enterprise.ReEncryptedUserDataKey.encode(message.usersDataKeys[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + $root.Enterprise.ReEncryptedUserDataKey.encode( + message.usersDataKeys[i], + writer.uint32(/* id 7, wireType 2 =*/ 58).fork() + ).ldelim(); return writer; }; @@ -54243,55 +56271,51 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ NodeToManagedCompanyRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.NodeToManagedCompanyRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.NodeToManagedCompanyRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.companyId = reader.int32(); break; } - case 2: { - if (!(message.nodes && message.nodes.length)) - message.nodes = []; + case 2: { + if (!(message.nodes && message.nodes.length)) message.nodes = []; message.nodes.push($root.Enterprise.ReEncryptedData.decode(reader, reader.uint32())); break; } - case 3: { - if (!(message.roles && message.roles.length)) - message.roles = []; + case 3: { + if (!(message.roles && message.roles.length)) message.roles = []; message.roles.push($root.Enterprise.ReEncryptedData.decode(reader, reader.uint32())); break; } - case 4: { - if (!(message.users && message.users.length)) - message.users = []; + case 4: { + if (!(message.users && message.users.length)) message.users = []; message.users.push($root.Enterprise.ReEncryptedData.decode(reader, reader.uint32())); break; } - case 5: { - if (!(message.roleKeys && message.roleKeys.length)) - message.roleKeys = []; + case 5: { + if (!(message.roleKeys && message.roleKeys.length)) message.roleKeys = []; message.roleKeys.push($root.Enterprise.ReEncryptedRoleKey.decode(reader, reader.uint32())); break; } - case 6: { - if (!(message.teamKeys && message.teamKeys.length)) - message.teamKeys = []; + case 6: { + if (!(message.teamKeys && message.teamKeys.length)) message.teamKeys = []; message.teamKeys.push($root.Enterprise.EncryptedTeamKeyRequest.decode(reader, reader.uint32())); break; } - case 7: { - if (!(message.usersDataKeys && message.usersDataKeys.length)) - message.usersDataKeys = []; - message.usersDataKeys.push($root.Enterprise.ReEncryptedUserDataKey.decode(reader, reader.uint32())); + case 7: { + if (!(message.usersDataKeys && message.usersDataKeys.length)) message.usersDataKeys = []; + message.usersDataKeys.push( + $root.Enterprise.ReEncryptedUserDataKey.decode(reader, reader.uint32()) + ); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -54308,8 +56332,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ NodeToManagedCompanyRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -54322,63 +56345,49 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ NodeToManagedCompanyRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.companyId != null && message.hasOwnProperty("companyId")) - if (!$util.isInteger(message.companyId)) - return "companyId: integer expected"; - if (message.nodes != null && message.hasOwnProperty("nodes")) { - if (!Array.isArray(message.nodes)) - return "nodes: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.companyId != null && message.hasOwnProperty('companyId')) + if (!$util.isInteger(message.companyId)) return 'companyId: integer expected'; + if (message.nodes != null && message.hasOwnProperty('nodes')) { + if (!Array.isArray(message.nodes)) return 'nodes: array expected'; for (let i = 0; i < message.nodes.length; ++i) { let error = $root.Enterprise.ReEncryptedData.verify(message.nodes[i]); - if (error) - return "nodes." + error; + if (error) return 'nodes.' + error; } } - if (message.roles != null && message.hasOwnProperty("roles")) { - if (!Array.isArray(message.roles)) - return "roles: array expected"; + if (message.roles != null && message.hasOwnProperty('roles')) { + if (!Array.isArray(message.roles)) return 'roles: array expected'; for (let i = 0; i < message.roles.length; ++i) { let error = $root.Enterprise.ReEncryptedData.verify(message.roles[i]); - if (error) - return "roles." + error; + if (error) return 'roles.' + error; } } - if (message.users != null && message.hasOwnProperty("users")) { - if (!Array.isArray(message.users)) - return "users: array expected"; + if (message.users != null && message.hasOwnProperty('users')) { + if (!Array.isArray(message.users)) return 'users: array expected'; for (let i = 0; i < message.users.length; ++i) { let error = $root.Enterprise.ReEncryptedData.verify(message.users[i]); - if (error) - return "users." + error; + if (error) return 'users.' + error; } } - if (message.roleKeys != null && message.hasOwnProperty("roleKeys")) { - if (!Array.isArray(message.roleKeys)) - return "roleKeys: array expected"; + if (message.roleKeys != null && message.hasOwnProperty('roleKeys')) { + if (!Array.isArray(message.roleKeys)) return 'roleKeys: array expected'; for (let i = 0; i < message.roleKeys.length; ++i) { let error = $root.Enterprise.ReEncryptedRoleKey.verify(message.roleKeys[i]); - if (error) - return "roleKeys." + error; + if (error) return 'roleKeys.' + error; } } - if (message.teamKeys != null && message.hasOwnProperty("teamKeys")) { - if (!Array.isArray(message.teamKeys)) - return "teamKeys: array expected"; + if (message.teamKeys != null && message.hasOwnProperty('teamKeys')) { + if (!Array.isArray(message.teamKeys)) return 'teamKeys: array expected'; for (let i = 0; i < message.teamKeys.length; ++i) { let error = $root.Enterprise.EncryptedTeamKeyRequest.verify(message.teamKeys[i]); - if (error) - return "teamKeys." + error; + if (error) return 'teamKeys.' + error; } } - if (message.usersDataKeys != null && message.hasOwnProperty("usersDataKeys")) { - if (!Array.isArray(message.usersDataKeys)) - return "usersDataKeys: array expected"; + if (message.usersDataKeys != null && message.hasOwnProperty('usersDataKeys')) { + if (!Array.isArray(message.usersDataKeys)) return 'usersDataKeys: array expected'; for (let i = 0; i < message.usersDataKeys.length; ++i) { let error = $root.Enterprise.ReEncryptedUserDataKey.verify(message.usersDataKeys[i]); - if (error) - return "usersDataKeys." + error; + if (error) return 'usersDataKeys.' + error; } } return null; @@ -54393,69 +56402,69 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.NodeToManagedCompanyRequest} NodeToManagedCompanyRequest */ NodeToManagedCompanyRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.NodeToManagedCompanyRequest) - return object; + if (object instanceof $root.Enterprise.NodeToManagedCompanyRequest) return object; let message = new $root.Enterprise.NodeToManagedCompanyRequest(); - if (object.companyId != null) - message.companyId = object.companyId | 0; + if (object.companyId != null) message.companyId = object.companyId | 0; if (object.nodes) { if (!Array.isArray(object.nodes)) - throw TypeError(".Enterprise.NodeToManagedCompanyRequest.nodes: array expected"); + throw TypeError('.Enterprise.NodeToManagedCompanyRequest.nodes: array expected'); message.nodes = []; for (let i = 0; i < object.nodes.length; ++i) { - if (typeof object.nodes[i] !== "object") - throw TypeError(".Enterprise.NodeToManagedCompanyRequest.nodes: object expected"); + if (typeof object.nodes[i] !== 'object') + throw TypeError('.Enterprise.NodeToManagedCompanyRequest.nodes: object expected'); message.nodes[i] = $root.Enterprise.ReEncryptedData.fromObject(object.nodes[i]); } } if (object.roles) { if (!Array.isArray(object.roles)) - throw TypeError(".Enterprise.NodeToManagedCompanyRequest.roles: array expected"); + throw TypeError('.Enterprise.NodeToManagedCompanyRequest.roles: array expected'); message.roles = []; for (let i = 0; i < object.roles.length; ++i) { - if (typeof object.roles[i] !== "object") - throw TypeError(".Enterprise.NodeToManagedCompanyRequest.roles: object expected"); + if (typeof object.roles[i] !== 'object') + throw TypeError('.Enterprise.NodeToManagedCompanyRequest.roles: object expected'); message.roles[i] = $root.Enterprise.ReEncryptedData.fromObject(object.roles[i]); } } if (object.users) { if (!Array.isArray(object.users)) - throw TypeError(".Enterprise.NodeToManagedCompanyRequest.users: array expected"); + throw TypeError('.Enterprise.NodeToManagedCompanyRequest.users: array expected'); message.users = []; for (let i = 0; i < object.users.length; ++i) { - if (typeof object.users[i] !== "object") - throw TypeError(".Enterprise.NodeToManagedCompanyRequest.users: object expected"); + if (typeof object.users[i] !== 'object') + throw TypeError('.Enterprise.NodeToManagedCompanyRequest.users: object expected'); message.users[i] = $root.Enterprise.ReEncryptedData.fromObject(object.users[i]); } } if (object.roleKeys) { if (!Array.isArray(object.roleKeys)) - throw TypeError(".Enterprise.NodeToManagedCompanyRequest.roleKeys: array expected"); + throw TypeError('.Enterprise.NodeToManagedCompanyRequest.roleKeys: array expected'); message.roleKeys = []; for (let i = 0; i < object.roleKeys.length; ++i) { - if (typeof object.roleKeys[i] !== "object") - throw TypeError(".Enterprise.NodeToManagedCompanyRequest.roleKeys: object expected"); + if (typeof object.roleKeys[i] !== 'object') + throw TypeError('.Enterprise.NodeToManagedCompanyRequest.roleKeys: object expected'); message.roleKeys[i] = $root.Enterprise.ReEncryptedRoleKey.fromObject(object.roleKeys[i]); } } if (object.teamKeys) { if (!Array.isArray(object.teamKeys)) - throw TypeError(".Enterprise.NodeToManagedCompanyRequest.teamKeys: array expected"); + throw TypeError('.Enterprise.NodeToManagedCompanyRequest.teamKeys: array expected'); message.teamKeys = []; for (let i = 0; i < object.teamKeys.length; ++i) { - if (typeof object.teamKeys[i] !== "object") - throw TypeError(".Enterprise.NodeToManagedCompanyRequest.teamKeys: object expected"); + if (typeof object.teamKeys[i] !== 'object') + throw TypeError('.Enterprise.NodeToManagedCompanyRequest.teamKeys: object expected'); message.teamKeys[i] = $root.Enterprise.EncryptedTeamKeyRequest.fromObject(object.teamKeys[i]); } } if (object.usersDataKeys) { if (!Array.isArray(object.usersDataKeys)) - throw TypeError(".Enterprise.NodeToManagedCompanyRequest.usersDataKeys: array expected"); + throw TypeError('.Enterprise.NodeToManagedCompanyRequest.usersDataKeys: array expected'); message.usersDataKeys = []; for (let i = 0; i < object.usersDataKeys.length; ++i) { - if (typeof object.usersDataKeys[i] !== "object") - throw TypeError(".Enterprise.NodeToManagedCompanyRequest.usersDataKeys: object expected"); - message.usersDataKeys[i] = $root.Enterprise.ReEncryptedUserDataKey.fromObject(object.usersDataKeys[i]); + if (typeof object.usersDataKeys[i] !== 'object') + throw TypeError('.Enterprise.NodeToManagedCompanyRequest.usersDataKeys: object expected'); + message.usersDataKeys[i] = $root.Enterprise.ReEncryptedUserDataKey.fromObject( + object.usersDataKeys[i] + ); } } return message; @@ -54471,8 +56480,7 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ NodeToManagedCompanyRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.arrays || options.defaults) { object.nodes = []; @@ -54482,10 +56490,8 @@ export const Enterprise = $root.Enterprise = (() => { object.teamKeys = []; object.usersDataKeys = []; } - if (options.defaults) - object.companyId = 0; - if (message.companyId != null && message.hasOwnProperty("companyId")) - object.companyId = message.companyId; + if (options.defaults) object.companyId = 0; + if (message.companyId != null && message.hasOwnProperty('companyId')) object.companyId = message.companyId; if (message.nodes && message.nodes.length) { object.nodes = []; for (let j = 0; j < message.nodes.length; ++j) @@ -54509,12 +56515,18 @@ export const Enterprise = $root.Enterprise = (() => { if (message.teamKeys && message.teamKeys.length) { object.teamKeys = []; for (let j = 0; j < message.teamKeys.length; ++j) - object.teamKeys[j] = $root.Enterprise.EncryptedTeamKeyRequest.toObject(message.teamKeys[j], options); + object.teamKeys[j] = $root.Enterprise.EncryptedTeamKeyRequest.toObject( + message.teamKeys[j], + options + ); } if (message.usersDataKeys && message.usersDataKeys.length) { object.usersDataKeys = []; for (let j = 0; j < message.usersDataKeys.length; ++j) - object.usersDataKeys[j] = $root.Enterprise.ReEncryptedUserDataKey.toObject(message.usersDataKeys[j], options); + object.usersDataKeys[j] = $root.Enterprise.ReEncryptedUserDataKey.toObject( + message.usersDataKeys[j], + options + ); } return object; }; @@ -54540,16 +56552,15 @@ export const Enterprise = $root.Enterprise = (() => { */ NodeToManagedCompanyRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.NodeToManagedCompanyRequest"; + return typeUrlPrefix + '/Enterprise.NodeToManagedCompanyRequest'; }; return NodeToManagedCompanyRequest; })(); - Enterprise.RoleTeam = (function() { - + Enterprise.RoleTeam = (function () { /** * Properties of a RoleTeam. * @memberof Enterprise @@ -54569,8 +56580,7 @@ export const Enterprise = $root.Enterprise = (() => { function RoleTeam(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -54579,7 +56589,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.RoleTeam * @instance */ - RoleTeam.prototype.roleId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + RoleTeam.prototype.roleId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * RoleTeam teamUid. @@ -54611,12 +56621,11 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ RoleTeam.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.roleId != null && Object.hasOwnProperty.call(message, "roleId")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.roleId); - if (message.teamUid != null && Object.hasOwnProperty.call(message, "teamUid")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.teamUid); + if (!writer) writer = $Writer.create(); + if (message.roleId != null && Object.hasOwnProperty.call(message, 'roleId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int64(message.roleId); + if (message.teamUid != null && Object.hasOwnProperty.call(message, 'teamUid')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.teamUid); return writer; }; @@ -54645,23 +56654,23 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RoleTeam.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.RoleTeam(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.RoleTeam(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.roleId = reader.int64(); break; } - case 2: { + case 2: { message.teamUid = reader.bytes(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -54678,8 +56687,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RoleTeam.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -54692,14 +56700,21 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ RoleTeam.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.roleId != null && message.hasOwnProperty("roleId")) - if (!$util.isInteger(message.roleId) && !(message.roleId && $util.isInteger(message.roleId.low) && $util.isInteger(message.roleId.high))) - return "roleId: integer|Long expected"; - if (message.teamUid != null && message.hasOwnProperty("teamUid")) - if (!(message.teamUid && typeof message.teamUid.length === "number" || $util.isString(message.teamUid))) - return "teamUid: buffer expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.roleId != null && message.hasOwnProperty('roleId')) + if ( + !$util.isInteger(message.roleId) && + !(message.roleId && $util.isInteger(message.roleId.low) && $util.isInteger(message.roleId.high)) + ) + return 'roleId: integer|Long expected'; + if (message.teamUid != null && message.hasOwnProperty('teamUid')) + if ( + !( + (message.teamUid && typeof message.teamUid.length === 'number') || + $util.isString(message.teamUid) + ) + ) + return 'teamUid: buffer expected'; return null; }; @@ -54712,23 +56727,22 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.RoleTeam} RoleTeam */ RoleTeam.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.RoleTeam) - return object; + if (object instanceof $root.Enterprise.RoleTeam) return object; let message = new $root.Enterprise.RoleTeam(); if (object.roleId != null) - if ($util.Long) - (message.roleId = $util.Long.fromValue(object.roleId)).unsigned = false; - else if (typeof object.roleId === "string") - message.roleId = parseInt(object.roleId, 10); - else if (typeof object.roleId === "number") - message.roleId = object.roleId; - else if (typeof object.roleId === "object") + if ($util.Long) (message.roleId = $util.Long.fromValue(object.roleId)).unsigned = false; + else if (typeof object.roleId === 'string') message.roleId = parseInt(object.roleId, 10); + else if (typeof object.roleId === 'number') message.roleId = object.roleId; + else if (typeof object.roleId === 'object') message.roleId = new $util.LongBits(object.roleId.low >>> 0, object.roleId.high >>> 0).toNumber(); if (object.teamUid != null) - if (typeof object.teamUid === "string") - $util.base64.decode(object.teamUid, message.teamUid = $util.newBuffer($util.base64.length(object.teamUid)), 0); - else if (object.teamUid.length >= 0) - message.teamUid = object.teamUid; + if (typeof object.teamUid === 'string') + $util.base64.decode( + object.teamUid, + (message.teamUid = $util.newBuffer($util.base64.length(object.teamUid))), + 0 + ); + else if (object.teamUid.length >= 0) message.teamUid = object.teamUid; return message; }; @@ -54742,30 +56756,37 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ RoleTeam.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.roleId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.roleId = options.longs === String ? "0" : 0; - if (options.bytes === String) - object.teamUid = ""; + object.roleId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.roleId = options.longs === String ? '0' : 0; + if (options.bytes === String) object.teamUid = ''; else { object.teamUid = []; - if (options.bytes !== Array) - object.teamUid = $util.newBuffer(object.teamUid); + if (options.bytes !== Array) object.teamUid = $util.newBuffer(object.teamUid); } } - if (message.roleId != null && message.hasOwnProperty("roleId")) - if (typeof message.roleId === "number") + if (message.roleId != null && message.hasOwnProperty('roleId')) + if (typeof message.roleId === 'number') object.roleId = options.longs === String ? String(message.roleId) : message.roleId; else - object.roleId = options.longs === String ? $util.Long.prototype.toString.call(message.roleId) : options.longs === Number ? new $util.LongBits(message.roleId.low >>> 0, message.roleId.high >>> 0).toNumber() : message.roleId; - if (message.teamUid != null && message.hasOwnProperty("teamUid")) - object.teamUid = options.bytes === String ? $util.base64.encode(message.teamUid, 0, message.teamUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.teamUid) : message.teamUid; + object.roleId = + options.longs === String + ? $util.Long.prototype.toString.call(message.roleId) + : options.longs === Number + ? new $util.LongBits(message.roleId.low >>> 0, message.roleId.high >>> 0).toNumber() + : message.roleId; + if (message.teamUid != null && message.hasOwnProperty('teamUid')) + object.teamUid = + options.bytes === String + ? $util.base64.encode(message.teamUid, 0, message.teamUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.teamUid) + : message.teamUid; return object; }; @@ -54790,16 +56811,15 @@ export const Enterprise = $root.Enterprise = (() => { */ RoleTeam.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.RoleTeam"; + return typeUrlPrefix + '/Enterprise.RoleTeam'; }; return RoleTeam; })(); - Enterprise.RoleTeams = (function() { - + Enterprise.RoleTeams = (function () { /** * Properties of a RoleTeams. * @memberof Enterprise @@ -54819,8 +56839,7 @@ export const Enterprise = $root.Enterprise = (() => { this.roleTeam = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -54853,11 +56872,13 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ RoleTeams.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.roleTeam != null && message.roleTeam.length) for (let i = 0; i < message.roleTeam.length; ++i) - $root.Enterprise.RoleTeam.encode(message.roleTeam[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.Enterprise.RoleTeam.encode( + message.roleTeam[i], + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); return writer; }; @@ -54886,21 +56907,20 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RoleTeams.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.RoleTeams(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.RoleTeams(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (!(message.roleTeam && message.roleTeam.length)) - message.roleTeam = []; + case 1: { + if (!(message.roleTeam && message.roleTeam.length)) message.roleTeam = []; message.roleTeam.push($root.Enterprise.RoleTeam.decode(reader, reader.uint32())); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -54917,8 +56937,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RoleTeams.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -54931,15 +56950,12 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ RoleTeams.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.roleTeam != null && message.hasOwnProperty("roleTeam")) { - if (!Array.isArray(message.roleTeam)) - return "roleTeam: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.roleTeam != null && message.hasOwnProperty('roleTeam')) { + if (!Array.isArray(message.roleTeam)) return 'roleTeam: array expected'; for (let i = 0; i < message.roleTeam.length; ++i) { let error = $root.Enterprise.RoleTeam.verify(message.roleTeam[i]); - if (error) - return "roleTeam." + error; + if (error) return 'roleTeam.' + error; } } return null; @@ -54954,16 +56970,14 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.RoleTeams} RoleTeams */ RoleTeams.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.RoleTeams) - return object; + if (object instanceof $root.Enterprise.RoleTeams) return object; let message = new $root.Enterprise.RoleTeams(); if (object.roleTeam) { - if (!Array.isArray(object.roleTeam)) - throw TypeError(".Enterprise.RoleTeams.roleTeam: array expected"); + if (!Array.isArray(object.roleTeam)) throw TypeError('.Enterprise.RoleTeams.roleTeam: array expected'); message.roleTeam = []; for (let i = 0; i < object.roleTeam.length; ++i) { - if (typeof object.roleTeam[i] !== "object") - throw TypeError(".Enterprise.RoleTeams.roleTeam: object expected"); + if (typeof object.roleTeam[i] !== 'object') + throw TypeError('.Enterprise.RoleTeams.roleTeam: object expected'); message.roleTeam[i] = $root.Enterprise.RoleTeam.fromObject(object.roleTeam[i]); } } @@ -54980,11 +56994,9 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ RoleTeams.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.roleTeam = []; + if (options.arrays || options.defaults) object.roleTeam = []; if (message.roleTeam && message.roleTeam.length) { object.roleTeam = []; for (let j = 0; j < message.roleTeam.length; ++j) @@ -55014,16 +57026,15 @@ export const Enterprise = $root.Enterprise = (() => { */ RoleTeams.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.RoleTeams"; + return typeUrlPrefix + '/Enterprise.RoleTeams'; }; return RoleTeams; })(); - Enterprise.TeamsByRole = (function() { - + Enterprise.TeamsByRole = (function () { /** * Properties of a TeamsByRole. * @memberof Enterprise @@ -55044,8 +57055,7 @@ export const Enterprise = $root.Enterprise = (() => { this.teamUid = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -55054,7 +57064,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.TeamsByRole * @instance */ - TeamsByRole.prototype.roleId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + TeamsByRole.prototype.roleId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * TeamsByRole teamUid. @@ -55086,13 +57096,12 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ TeamsByRole.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.roleId != null && Object.hasOwnProperty.call(message, "roleId")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.roleId); + if (!writer) writer = $Writer.create(); + if (message.roleId != null && Object.hasOwnProperty.call(message, 'roleId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int64(message.roleId); if (message.teamUid != null && message.teamUid.length) for (let i = 0; i < message.teamUid.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.teamUid[i]); + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.teamUid[i]); return writer; }; @@ -55121,25 +57130,24 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ TeamsByRole.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.TeamsByRole(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.TeamsByRole(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.roleId = reader.int64(); break; } - case 2: { - if (!(message.teamUid && message.teamUid.length)) - message.teamUid = []; + case 2: { + if (!(message.teamUid && message.teamUid.length)) message.teamUid = []; message.teamUid.push(reader.bytes()); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -55156,8 +57164,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ TeamsByRole.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -55170,17 +57177,23 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ TeamsByRole.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.roleId != null && message.hasOwnProperty("roleId")) - if (!$util.isInteger(message.roleId) && !(message.roleId && $util.isInteger(message.roleId.low) && $util.isInteger(message.roleId.high))) - return "roleId: integer|Long expected"; - if (message.teamUid != null && message.hasOwnProperty("teamUid")) { - if (!Array.isArray(message.teamUid)) - return "teamUid: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.roleId != null && message.hasOwnProperty('roleId')) + if ( + !$util.isInteger(message.roleId) && + !(message.roleId && $util.isInteger(message.roleId.low) && $util.isInteger(message.roleId.high)) + ) + return 'roleId: integer|Long expected'; + if (message.teamUid != null && message.hasOwnProperty('teamUid')) { + if (!Array.isArray(message.teamUid)) return 'teamUid: array expected'; for (let i = 0; i < message.teamUid.length; ++i) - if (!(message.teamUid[i] && typeof message.teamUid[i].length === "number" || $util.isString(message.teamUid[i]))) - return "teamUid: buffer[] expected"; + if ( + !( + (message.teamUid[i] && typeof message.teamUid[i].length === 'number') || + $util.isString(message.teamUid[i]) + ) + ) + return 'teamUid: buffer[] expected'; } return null; }; @@ -55194,27 +57207,25 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.TeamsByRole} TeamsByRole */ TeamsByRole.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.TeamsByRole) - return object; + if (object instanceof $root.Enterprise.TeamsByRole) return object; let message = new $root.Enterprise.TeamsByRole(); if (object.roleId != null) - if ($util.Long) - (message.roleId = $util.Long.fromValue(object.roleId)).unsigned = false; - else if (typeof object.roleId === "string") - message.roleId = parseInt(object.roleId, 10); - else if (typeof object.roleId === "number") - message.roleId = object.roleId; - else if (typeof object.roleId === "object") + if ($util.Long) (message.roleId = $util.Long.fromValue(object.roleId)).unsigned = false; + else if (typeof object.roleId === 'string') message.roleId = parseInt(object.roleId, 10); + else if (typeof object.roleId === 'number') message.roleId = object.roleId; + else if (typeof object.roleId === 'object') message.roleId = new $util.LongBits(object.roleId.low >>> 0, object.roleId.high >>> 0).toNumber(); if (object.teamUid) { - if (!Array.isArray(object.teamUid)) - throw TypeError(".Enterprise.TeamsByRole.teamUid: array expected"); + if (!Array.isArray(object.teamUid)) throw TypeError('.Enterprise.TeamsByRole.teamUid: array expected'); message.teamUid = []; for (let i = 0; i < object.teamUid.length; ++i) - if (typeof object.teamUid[i] === "string") - $util.base64.decode(object.teamUid[i], message.teamUid[i] = $util.newBuffer($util.base64.length(object.teamUid[i])), 0); - else if (object.teamUid[i].length >= 0) - message.teamUid[i] = object.teamUid[i]; + if (typeof object.teamUid[i] === 'string') + $util.base64.decode( + object.teamUid[i], + (message.teamUid[i] = $util.newBuffer($util.base64.length(object.teamUid[i]))), + 0 + ); + else if (object.teamUid[i].length >= 0) message.teamUid[i] = object.teamUid[i]; } return message; }; @@ -55229,26 +57240,34 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ TeamsByRole.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.teamUid = []; + if (options.arrays || options.defaults) object.teamUid = []; if (options.defaults) if ($util.Long) { let long = new $util.Long(0, 0, false); - object.roleId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.roleId = options.longs === String ? "0" : 0; - if (message.roleId != null && message.hasOwnProperty("roleId")) - if (typeof message.roleId === "number") + object.roleId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.roleId = options.longs === String ? '0' : 0; + if (message.roleId != null && message.hasOwnProperty('roleId')) + if (typeof message.roleId === 'number') object.roleId = options.longs === String ? String(message.roleId) : message.roleId; else - object.roleId = options.longs === String ? $util.Long.prototype.toString.call(message.roleId) : options.longs === Number ? new $util.LongBits(message.roleId.low >>> 0, message.roleId.high >>> 0).toNumber() : message.roleId; + object.roleId = + options.longs === String + ? $util.Long.prototype.toString.call(message.roleId) + : options.longs === Number + ? new $util.LongBits(message.roleId.low >>> 0, message.roleId.high >>> 0).toNumber() + : message.roleId; if (message.teamUid && message.teamUid.length) { object.teamUid = []; for (let j = 0; j < message.teamUid.length; ++j) - object.teamUid[j] = options.bytes === String ? $util.base64.encode(message.teamUid[j], 0, message.teamUid[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.teamUid[j]) : message.teamUid[j]; + object.teamUid[j] = + options.bytes === String + ? $util.base64.encode(message.teamUid[j], 0, message.teamUid[j].length) + : options.bytes === Array + ? Array.prototype.slice.call(message.teamUid[j]) + : message.teamUid[j]; } return object; }; @@ -55274,16 +57293,15 @@ export const Enterprise = $root.Enterprise = (() => { */ TeamsByRole.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.TeamsByRole"; + return typeUrlPrefix + '/Enterprise.TeamsByRole'; }; return TeamsByRole; })(); - Enterprise.ManagedNodesByRole = (function() { - + Enterprise.ManagedNodesByRole = (function () { /** * Properties of a ManagedNodesByRole. * @memberof Enterprise @@ -55304,8 +57322,7 @@ export const Enterprise = $root.Enterprise = (() => { this.managedNodeId = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -55314,7 +57331,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.ManagedNodesByRole * @instance */ - ManagedNodesByRole.prototype.roleId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + ManagedNodesByRole.prototype.roleId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * ManagedNodesByRole managedNodeId. @@ -55346,14 +57363,12 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ ManagedNodesByRole.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.roleId != null && Object.hasOwnProperty.call(message, "roleId")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.roleId); + if (!writer) writer = $Writer.create(); + if (message.roleId != null && Object.hasOwnProperty.call(message, 'roleId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int64(message.roleId); if (message.managedNodeId != null && message.managedNodeId.length) { - writer.uint32(/* id 2, wireType 2 =*/18).fork(); - for (let i = 0; i < message.managedNodeId.length; ++i) - writer.int64(message.managedNodeId[i]); + writer.uint32(/* id 2, wireType 2 =*/ 18).fork(); + for (let i = 0; i < message.managedNodeId.length; ++i) writer.int64(message.managedNodeId[i]); writer.ldelim(); } return writer; @@ -55384,30 +57399,27 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ManagedNodesByRole.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.ManagedNodesByRole(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.ManagedNodesByRole(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.roleId = reader.int64(); break; } - case 2: { - if (!(message.managedNodeId && message.managedNodeId.length)) - message.managedNodeId = []; + case 2: { + if (!(message.managedNodeId && message.managedNodeId.length)) message.managedNodeId = []; if ((tag & 7) === 2) { let end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.managedNodeId.push(reader.int64()); - } else - message.managedNodeId.push(reader.int64()); + while (reader.pos < end2) message.managedNodeId.push(reader.int64()); + } else message.managedNodeId.push(reader.int64()); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -55424,8 +57436,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ManagedNodesByRole.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -55438,17 +57449,25 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ ManagedNodesByRole.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.roleId != null && message.hasOwnProperty("roleId")) - if (!$util.isInteger(message.roleId) && !(message.roleId && $util.isInteger(message.roleId.low) && $util.isInteger(message.roleId.high))) - return "roleId: integer|Long expected"; - if (message.managedNodeId != null && message.hasOwnProperty("managedNodeId")) { - if (!Array.isArray(message.managedNodeId)) - return "managedNodeId: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.roleId != null && message.hasOwnProperty('roleId')) + if ( + !$util.isInteger(message.roleId) && + !(message.roleId && $util.isInteger(message.roleId.low) && $util.isInteger(message.roleId.high)) + ) + return 'roleId: integer|Long expected'; + if (message.managedNodeId != null && message.hasOwnProperty('managedNodeId')) { + if (!Array.isArray(message.managedNodeId)) return 'managedNodeId: array expected'; for (let i = 0; i < message.managedNodeId.length; ++i) - if (!$util.isInteger(message.managedNodeId[i]) && !(message.managedNodeId[i] && $util.isInteger(message.managedNodeId[i].low) && $util.isInteger(message.managedNodeId[i].high))) - return "managedNodeId: integer|Long[] expected"; + if ( + !$util.isInteger(message.managedNodeId[i]) && + !( + message.managedNodeId[i] && + $util.isInteger(message.managedNodeId[i].low) && + $util.isInteger(message.managedNodeId[i].high) + ) + ) + return 'managedNodeId: integer|Long[] expected'; } return null; }; @@ -55462,31 +57481,30 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.ManagedNodesByRole} ManagedNodesByRole */ ManagedNodesByRole.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.ManagedNodesByRole) - return object; + if (object instanceof $root.Enterprise.ManagedNodesByRole) return object; let message = new $root.Enterprise.ManagedNodesByRole(); if (object.roleId != null) - if ($util.Long) - (message.roleId = $util.Long.fromValue(object.roleId)).unsigned = false; - else if (typeof object.roleId === "string") - message.roleId = parseInt(object.roleId, 10); - else if (typeof object.roleId === "number") - message.roleId = object.roleId; - else if (typeof object.roleId === "object") + if ($util.Long) (message.roleId = $util.Long.fromValue(object.roleId)).unsigned = false; + else if (typeof object.roleId === 'string') message.roleId = parseInt(object.roleId, 10); + else if (typeof object.roleId === 'number') message.roleId = object.roleId; + else if (typeof object.roleId === 'object') message.roleId = new $util.LongBits(object.roleId.low >>> 0, object.roleId.high >>> 0).toNumber(); if (object.managedNodeId) { if (!Array.isArray(object.managedNodeId)) - throw TypeError(".Enterprise.ManagedNodesByRole.managedNodeId: array expected"); + throw TypeError('.Enterprise.ManagedNodesByRole.managedNodeId: array expected'); message.managedNodeId = []; for (let i = 0; i < object.managedNodeId.length; ++i) if ($util.Long) (message.managedNodeId[i] = $util.Long.fromValue(object.managedNodeId[i])).unsigned = false; - else if (typeof object.managedNodeId[i] === "string") + else if (typeof object.managedNodeId[i] === 'string') message.managedNodeId[i] = parseInt(object.managedNodeId[i], 10); - else if (typeof object.managedNodeId[i] === "number") + else if (typeof object.managedNodeId[i] === 'number') message.managedNodeId[i] = object.managedNodeId[i]; - else if (typeof object.managedNodeId[i] === "object") - message.managedNodeId[i] = new $util.LongBits(object.managedNodeId[i].low >>> 0, object.managedNodeId[i].high >>> 0).toNumber(); + else if (typeof object.managedNodeId[i] === 'object') + message.managedNodeId[i] = new $util.LongBits( + object.managedNodeId[i].low >>> 0, + object.managedNodeId[i].high >>> 0 + ).toNumber(); } return message; }; @@ -55501,29 +57519,41 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ ManagedNodesByRole.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.managedNodeId = []; + if (options.arrays || options.defaults) object.managedNodeId = []; if (options.defaults) if ($util.Long) { let long = new $util.Long(0, 0, false); - object.roleId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.roleId = options.longs === String ? "0" : 0; - if (message.roleId != null && message.hasOwnProperty("roleId")) - if (typeof message.roleId === "number") + object.roleId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.roleId = options.longs === String ? '0' : 0; + if (message.roleId != null && message.hasOwnProperty('roleId')) + if (typeof message.roleId === 'number') object.roleId = options.longs === String ? String(message.roleId) : message.roleId; else - object.roleId = options.longs === String ? $util.Long.prototype.toString.call(message.roleId) : options.longs === Number ? new $util.LongBits(message.roleId.low >>> 0, message.roleId.high >>> 0).toNumber() : message.roleId; + object.roleId = + options.longs === String + ? $util.Long.prototype.toString.call(message.roleId) + : options.longs === Number + ? new $util.LongBits(message.roleId.low >>> 0, message.roleId.high >>> 0).toNumber() + : message.roleId; if (message.managedNodeId && message.managedNodeId.length) { object.managedNodeId = []; for (let j = 0; j < message.managedNodeId.length; ++j) - if (typeof message.managedNodeId[j] === "number") - object.managedNodeId[j] = options.longs === String ? String(message.managedNodeId[j]) : message.managedNodeId[j]; + if (typeof message.managedNodeId[j] === 'number') + object.managedNodeId[j] = + options.longs === String ? String(message.managedNodeId[j]) : message.managedNodeId[j]; else - object.managedNodeId[j] = options.longs === String ? $util.Long.prototype.toString.call(message.managedNodeId[j]) : options.longs === Number ? new $util.LongBits(message.managedNodeId[j].low >>> 0, message.managedNodeId[j].high >>> 0).toNumber() : message.managedNodeId[j]; + object.managedNodeId[j] = + options.longs === String + ? $util.Long.prototype.toString.call(message.managedNodeId[j]) + : options.longs === Number + ? new $util.LongBits( + message.managedNodeId[j].low >>> 0, + message.managedNodeId[j].high >>> 0 + ).toNumber() + : message.managedNodeId[j]; } return object; }; @@ -55549,16 +57579,15 @@ export const Enterprise = $root.Enterprise = (() => { */ ManagedNodesByRole.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.ManagedNodesByRole"; + return typeUrlPrefix + '/Enterprise.ManagedNodesByRole'; }; return ManagedNodesByRole; })(); - Enterprise.RoleUserAddKeys = (function() { - + Enterprise.RoleUserAddKeys = (function () { /** * Properties of a RoleUserAddKeys. * @memberof Enterprise @@ -55579,8 +57608,7 @@ export const Enterprise = $root.Enterprise = (() => { function RoleUserAddKeys(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -55589,7 +57617,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.RoleUserAddKeys * @instance */ - RoleUserAddKeys.prototype.enterpriseUserId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + RoleUserAddKeys.prototype.enterpriseUserId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * RoleUserAddKeys treeKey. @@ -55597,7 +57625,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.RoleUserAddKeys * @instance */ - RoleUserAddKeys.prototype.treeKey = ""; + RoleUserAddKeys.prototype.treeKey = ''; /** * RoleUserAddKeys roleAdminKey. @@ -55605,7 +57633,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.RoleUserAddKeys * @instance */ - RoleUserAddKeys.prototype.roleAdminKey = ""; + RoleUserAddKeys.prototype.roleAdminKey = ''; /** * Creates a new RoleUserAddKeys instance using the specified properties. @@ -55629,14 +57657,13 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ RoleUserAddKeys.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "enterpriseUserId")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.enterpriseUserId); - if (message.treeKey != null && Object.hasOwnProperty.call(message, "treeKey")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.treeKey); - if (message.roleAdminKey != null && Object.hasOwnProperty.call(message, "roleAdminKey")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.roleAdminKey); + if (!writer) writer = $Writer.create(); + if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, 'enterpriseUserId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int64(message.enterpriseUserId); + if (message.treeKey != null && Object.hasOwnProperty.call(message, 'treeKey')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.treeKey); + if (message.roleAdminKey != null && Object.hasOwnProperty.call(message, 'roleAdminKey')) + writer.uint32(/* id 3, wireType 2 =*/ 26).string(message.roleAdminKey); return writer; }; @@ -55665,27 +57692,27 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RoleUserAddKeys.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.RoleUserAddKeys(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.RoleUserAddKeys(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.enterpriseUserId = reader.int64(); break; } - case 2: { + case 2: { message.treeKey = reader.string(); break; } - case 3: { + case 3: { message.roleAdminKey = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -55702,8 +57729,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RoleUserAddKeys.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -55716,17 +57742,21 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ RoleUserAddKeys.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (!$util.isInteger(message.enterpriseUserId) && !(message.enterpriseUserId && $util.isInteger(message.enterpriseUserId.low) && $util.isInteger(message.enterpriseUserId.high))) - return "enterpriseUserId: integer|Long expected"; - if (message.treeKey != null && message.hasOwnProperty("treeKey")) - if (!$util.isString(message.treeKey)) - return "treeKey: string expected"; - if (message.roleAdminKey != null && message.hasOwnProperty("roleAdminKey")) - if (!$util.isString(message.roleAdminKey)) - return "roleAdminKey: string expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.enterpriseUserId != null && message.hasOwnProperty('enterpriseUserId')) + if ( + !$util.isInteger(message.enterpriseUserId) && + !( + message.enterpriseUserId && + $util.isInteger(message.enterpriseUserId.low) && + $util.isInteger(message.enterpriseUserId.high) + ) + ) + return 'enterpriseUserId: integer|Long expected'; + if (message.treeKey != null && message.hasOwnProperty('treeKey')) + if (!$util.isString(message.treeKey)) return 'treeKey: string expected'; + if (message.roleAdminKey != null && message.hasOwnProperty('roleAdminKey')) + if (!$util.isString(message.roleAdminKey)) return 'roleAdminKey: string expected'; return null; }; @@ -55739,22 +57769,22 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.RoleUserAddKeys} RoleUserAddKeys */ RoleUserAddKeys.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.RoleUserAddKeys) - return object; + if (object instanceof $root.Enterprise.RoleUserAddKeys) return object; let message = new $root.Enterprise.RoleUserAddKeys(); if (object.enterpriseUserId != null) if ($util.Long) (message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId)).unsigned = false; - else if (typeof object.enterpriseUserId === "string") + else if (typeof object.enterpriseUserId === 'string') message.enterpriseUserId = parseInt(object.enterpriseUserId, 10); - else if (typeof object.enterpriseUserId === "number") + else if (typeof object.enterpriseUserId === 'number') message.enterpriseUserId = object.enterpriseUserId; - else if (typeof object.enterpriseUserId === "object") - message.enterpriseUserId = new $util.LongBits(object.enterpriseUserId.low >>> 0, object.enterpriseUserId.high >>> 0).toNumber(); - if (object.treeKey != null) - message.treeKey = String(object.treeKey); - if (object.roleAdminKey != null) - message.roleAdminKey = String(object.roleAdminKey); + else if (typeof object.enterpriseUserId === 'object') + message.enterpriseUserId = new $util.LongBits( + object.enterpriseUserId.low >>> 0, + object.enterpriseUserId.high >>> 0 + ).toNumber(); + if (object.treeKey != null) message.treeKey = String(object.treeKey); + if (object.roleAdminKey != null) message.roleAdminKey = String(object.roleAdminKey); return message; }; @@ -55768,26 +57798,33 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ RoleUserAddKeys.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.enterpriseUserId = options.longs === String ? "0" : 0; - object.treeKey = ""; - object.roleAdminKey = ""; - } - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (typeof message.enterpriseUserId === "number") - object.enterpriseUserId = options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; + object.enterpriseUserId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.enterpriseUserId = options.longs === String ? '0' : 0; + object.treeKey = ''; + object.roleAdminKey = ''; + } + if (message.enterpriseUserId != null && message.hasOwnProperty('enterpriseUserId')) + if (typeof message.enterpriseUserId === 'number') + object.enterpriseUserId = + options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; else - object.enterpriseUserId = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseUserId) : options.longs === Number ? new $util.LongBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0).toNumber() : message.enterpriseUserId; - if (message.treeKey != null && message.hasOwnProperty("treeKey")) - object.treeKey = message.treeKey; - if (message.roleAdminKey != null && message.hasOwnProperty("roleAdminKey")) + object.enterpriseUserId = + options.longs === String + ? $util.Long.prototype.toString.call(message.enterpriseUserId) + : options.longs === Number + ? new $util.LongBits( + message.enterpriseUserId.low >>> 0, + message.enterpriseUserId.high >>> 0 + ).toNumber() + : message.enterpriseUserId; + if (message.treeKey != null && message.hasOwnProperty('treeKey')) object.treeKey = message.treeKey; + if (message.roleAdminKey != null && message.hasOwnProperty('roleAdminKey')) object.roleAdminKey = message.roleAdminKey; return object; }; @@ -55813,16 +57850,15 @@ export const Enterprise = $root.Enterprise = (() => { */ RoleUserAddKeys.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.RoleUserAddKeys"; + return typeUrlPrefix + '/Enterprise.RoleUserAddKeys'; }; return RoleUserAddKeys; })(); - Enterprise.RoleUserAdd = (function() { - + Enterprise.RoleUserAdd = (function () { /** * Properties of a RoleUserAdd. * @memberof Enterprise @@ -55843,8 +57879,7 @@ export const Enterprise = $root.Enterprise = (() => { this.roleUserAddKeys = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -55853,7 +57888,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.RoleUserAdd * @instance */ - RoleUserAdd.prototype.roleId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + RoleUserAdd.prototype.roleId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * RoleUserAdd roleUserAddKeys. @@ -55885,13 +57920,15 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ RoleUserAdd.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.roleId != null && Object.hasOwnProperty.call(message, "roleId")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.roleId); + if (!writer) writer = $Writer.create(); + if (message.roleId != null && Object.hasOwnProperty.call(message, 'roleId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int64(message.roleId); if (message.roleUserAddKeys != null && message.roleUserAddKeys.length) for (let i = 0; i < message.roleUserAddKeys.length; ++i) - $root.Enterprise.RoleUserAddKeys.encode(message.roleUserAddKeys[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + $root.Enterprise.RoleUserAddKeys.encode( + message.roleUserAddKeys[i], + writer.uint32(/* id 2, wireType 2 =*/ 18).fork() + ).ldelim(); return writer; }; @@ -55920,25 +57957,24 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RoleUserAdd.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.RoleUserAdd(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.RoleUserAdd(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.roleId = reader.int64(); break; } - case 2: { - if (!(message.roleUserAddKeys && message.roleUserAddKeys.length)) - message.roleUserAddKeys = []; + case 2: { + if (!(message.roleUserAddKeys && message.roleUserAddKeys.length)) message.roleUserAddKeys = []; message.roleUserAddKeys.push($root.Enterprise.RoleUserAddKeys.decode(reader, reader.uint32())); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -55955,8 +57991,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RoleUserAdd.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -55969,18 +58004,18 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ RoleUserAdd.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.roleId != null && message.hasOwnProperty("roleId")) - if (!$util.isInteger(message.roleId) && !(message.roleId && $util.isInteger(message.roleId.low) && $util.isInteger(message.roleId.high))) - return "roleId: integer|Long expected"; - if (message.roleUserAddKeys != null && message.hasOwnProperty("roleUserAddKeys")) { - if (!Array.isArray(message.roleUserAddKeys)) - return "roleUserAddKeys: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.roleId != null && message.hasOwnProperty('roleId')) + if ( + !$util.isInteger(message.roleId) && + !(message.roleId && $util.isInteger(message.roleId.low) && $util.isInteger(message.roleId.high)) + ) + return 'roleId: integer|Long expected'; + if (message.roleUserAddKeys != null && message.hasOwnProperty('roleUserAddKeys')) { + if (!Array.isArray(message.roleUserAddKeys)) return 'roleUserAddKeys: array expected'; for (let i = 0; i < message.roleUserAddKeys.length; ++i) { let error = $root.Enterprise.RoleUserAddKeys.verify(message.roleUserAddKeys[i]); - if (error) - return "roleUserAddKeys." + error; + if (error) return 'roleUserAddKeys.' + error; } } return null; @@ -55995,25 +58030,21 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.RoleUserAdd} RoleUserAdd */ RoleUserAdd.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.RoleUserAdd) - return object; + if (object instanceof $root.Enterprise.RoleUserAdd) return object; let message = new $root.Enterprise.RoleUserAdd(); if (object.roleId != null) - if ($util.Long) - (message.roleId = $util.Long.fromValue(object.roleId)).unsigned = false; - else if (typeof object.roleId === "string") - message.roleId = parseInt(object.roleId, 10); - else if (typeof object.roleId === "number") - message.roleId = object.roleId; - else if (typeof object.roleId === "object") + if ($util.Long) (message.roleId = $util.Long.fromValue(object.roleId)).unsigned = false; + else if (typeof object.roleId === 'string') message.roleId = parseInt(object.roleId, 10); + else if (typeof object.roleId === 'number') message.roleId = object.roleId; + else if (typeof object.roleId === 'object') message.roleId = new $util.LongBits(object.roleId.low >>> 0, object.roleId.high >>> 0).toNumber(); if (object.roleUserAddKeys) { if (!Array.isArray(object.roleUserAddKeys)) - throw TypeError(".Enterprise.RoleUserAdd.roleUserAddKeys: array expected"); + throw TypeError('.Enterprise.RoleUserAdd.roleUserAddKeys: array expected'); message.roleUserAddKeys = []; for (let i = 0; i < object.roleUserAddKeys.length; ++i) { - if (typeof object.roleUserAddKeys[i] !== "object") - throw TypeError(".Enterprise.RoleUserAdd.roleUserAddKeys: object expected"); + if (typeof object.roleUserAddKeys[i] !== 'object') + throw TypeError('.Enterprise.RoleUserAdd.roleUserAddKeys: object expected'); message.roleUserAddKeys[i] = $root.Enterprise.RoleUserAddKeys.fromObject(object.roleUserAddKeys[i]); } } @@ -56030,26 +58061,32 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ RoleUserAdd.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.roleUserAddKeys = []; + if (options.arrays || options.defaults) object.roleUserAddKeys = []; if (options.defaults) if ($util.Long) { let long = new $util.Long(0, 0, false); - object.roleId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.roleId = options.longs === String ? "0" : 0; - if (message.roleId != null && message.hasOwnProperty("roleId")) - if (typeof message.roleId === "number") + object.roleId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.roleId = options.longs === String ? '0' : 0; + if (message.roleId != null && message.hasOwnProperty('roleId')) + if (typeof message.roleId === 'number') object.roleId = options.longs === String ? String(message.roleId) : message.roleId; else - object.roleId = options.longs === String ? $util.Long.prototype.toString.call(message.roleId) : options.longs === Number ? new $util.LongBits(message.roleId.low >>> 0, message.roleId.high >>> 0).toNumber() : message.roleId; + object.roleId = + options.longs === String + ? $util.Long.prototype.toString.call(message.roleId) + : options.longs === Number + ? new $util.LongBits(message.roleId.low >>> 0, message.roleId.high >>> 0).toNumber() + : message.roleId; if (message.roleUserAddKeys && message.roleUserAddKeys.length) { object.roleUserAddKeys = []; for (let j = 0; j < message.roleUserAddKeys.length; ++j) - object.roleUserAddKeys[j] = $root.Enterprise.RoleUserAddKeys.toObject(message.roleUserAddKeys[j], options); + object.roleUserAddKeys[j] = $root.Enterprise.RoleUserAddKeys.toObject( + message.roleUserAddKeys[j], + options + ); } return object; }; @@ -56075,16 +58112,15 @@ export const Enterprise = $root.Enterprise = (() => { */ RoleUserAdd.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.RoleUserAdd"; + return typeUrlPrefix + '/Enterprise.RoleUserAdd'; }; return RoleUserAdd; })(); - Enterprise.RoleUsersAddRequest = (function() { - + Enterprise.RoleUsersAddRequest = (function () { /** * Properties of a RoleUsersAddRequest. * @memberof Enterprise @@ -56104,8 +58140,7 @@ export const Enterprise = $root.Enterprise = (() => { this.roleUserAdds = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -56138,11 +58173,13 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ RoleUsersAddRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.roleUserAdds != null && message.roleUserAdds.length) for (let i = 0; i < message.roleUserAdds.length; ++i) - $root.Enterprise.RoleUserAdd.encode(message.roleUserAdds[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.Enterprise.RoleUserAdd.encode( + message.roleUserAdds[i], + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); return writer; }; @@ -56171,21 +58208,20 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RoleUsersAddRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.RoleUsersAddRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.RoleUsersAddRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (!(message.roleUserAdds && message.roleUserAdds.length)) - message.roleUserAdds = []; + case 1: { + if (!(message.roleUserAdds && message.roleUserAdds.length)) message.roleUserAdds = []; message.roleUserAdds.push($root.Enterprise.RoleUserAdd.decode(reader, reader.uint32())); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -56202,8 +58238,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RoleUsersAddRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -56216,15 +58251,12 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ RoleUsersAddRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.roleUserAdds != null && message.hasOwnProperty("roleUserAdds")) { - if (!Array.isArray(message.roleUserAdds)) - return "roleUserAdds: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.roleUserAdds != null && message.hasOwnProperty('roleUserAdds')) { + if (!Array.isArray(message.roleUserAdds)) return 'roleUserAdds: array expected'; for (let i = 0; i < message.roleUserAdds.length; ++i) { let error = $root.Enterprise.RoleUserAdd.verify(message.roleUserAdds[i]); - if (error) - return "roleUserAdds." + error; + if (error) return 'roleUserAdds.' + error; } } return null; @@ -56239,16 +58271,15 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.RoleUsersAddRequest} RoleUsersAddRequest */ RoleUsersAddRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.RoleUsersAddRequest) - return object; + if (object instanceof $root.Enterprise.RoleUsersAddRequest) return object; let message = new $root.Enterprise.RoleUsersAddRequest(); if (object.roleUserAdds) { if (!Array.isArray(object.roleUserAdds)) - throw TypeError(".Enterprise.RoleUsersAddRequest.roleUserAdds: array expected"); + throw TypeError('.Enterprise.RoleUsersAddRequest.roleUserAdds: array expected'); message.roleUserAdds = []; for (let i = 0; i < object.roleUserAdds.length; ++i) { - if (typeof object.roleUserAdds[i] !== "object") - throw TypeError(".Enterprise.RoleUsersAddRequest.roleUserAdds: object expected"); + if (typeof object.roleUserAdds[i] !== 'object') + throw TypeError('.Enterprise.RoleUsersAddRequest.roleUserAdds: object expected'); message.roleUserAdds[i] = $root.Enterprise.RoleUserAdd.fromObject(object.roleUserAdds[i]); } } @@ -56265,11 +58296,9 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ RoleUsersAddRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.roleUserAdds = []; + if (options.arrays || options.defaults) object.roleUserAdds = []; if (message.roleUserAdds && message.roleUserAdds.length) { object.roleUserAdds = []; for (let j = 0; j < message.roleUserAdds.length; ++j) @@ -56299,9 +58328,9 @@ export const Enterprise = $root.Enterprise = (() => { */ RoleUsersAddRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.RoleUsersAddRequest"; + return typeUrlPrefix + '/Enterprise.RoleUsersAddRequest'; }; return RoleUsersAddRequest; @@ -56322,23 +58351,23 @@ export const Enterprise = $root.Enterprise = (() => { * @property {number} INVALID_ROLE_ID=8 INVALID_ROLE_ID value * @property {number} PAM_LICENSE_SEAT_EXCEEDED=9 PAM_LICENSE_SEAT_EXCEEDED value */ - Enterprise.RoleUserModifyStatus = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "ROLE_EXISTS"] = 0; - values[valuesById[1] = "MISSING_TREE_KEY"] = 1; - values[valuesById[2] = "MISSING_ROLE_KEY"] = 2; - values[valuesById[3] = "INVALID_ENTERPRISE_USER_ID"] = 3; - values[valuesById[4] = "PENDING_ENTERPRISE_USER"] = 4; - values[valuesById[5] = "INVALID_NODE_ID"] = 5; - values[valuesById[6] = "MAY_NOT_REMOVE_SELF_FROM_ROLE"] = 6; - values[valuesById[7] = "MUST_HAVE_ONE_USER_ADMIN"] = 7; - values[valuesById[8] = "INVALID_ROLE_ID"] = 8; - values[valuesById[9] = "PAM_LICENSE_SEAT_EXCEEDED"] = 9; + Enterprise.RoleUserModifyStatus = (function () { + const valuesById = {}, + values = Object.create(valuesById); + values[(valuesById[0] = 'ROLE_EXISTS')] = 0; + values[(valuesById[1] = 'MISSING_TREE_KEY')] = 1; + values[(valuesById[2] = 'MISSING_ROLE_KEY')] = 2; + values[(valuesById[3] = 'INVALID_ENTERPRISE_USER_ID')] = 3; + values[(valuesById[4] = 'PENDING_ENTERPRISE_USER')] = 4; + values[(valuesById[5] = 'INVALID_NODE_ID')] = 5; + values[(valuesById[6] = 'MAY_NOT_REMOVE_SELF_FROM_ROLE')] = 6; + values[(valuesById[7] = 'MUST_HAVE_ONE_USER_ADMIN')] = 7; + values[(valuesById[8] = 'INVALID_ROLE_ID')] = 8; + values[(valuesById[9] = 'PAM_LICENSE_SEAT_EXCEEDED')] = 9; return values; })(); - Enterprise.RoleUserAddResult = (function() { - + Enterprise.RoleUserAddResult = (function () { /** * Properties of a RoleUserAddResult. * @memberof Enterprise @@ -56360,8 +58389,7 @@ export const Enterprise = $root.Enterprise = (() => { function RoleUserAddResult(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -56370,7 +58398,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.RoleUserAddResult * @instance */ - RoleUserAddResult.prototype.roleId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + RoleUserAddResult.prototype.roleId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * RoleUserAddResult enterpriseUserId. @@ -56378,7 +58406,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.RoleUserAddResult * @instance */ - RoleUserAddResult.prototype.enterpriseUserId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + RoleUserAddResult.prototype.enterpriseUserId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * RoleUserAddResult status. @@ -56394,7 +58422,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.RoleUserAddResult * @instance */ - RoleUserAddResult.prototype.message = ""; + RoleUserAddResult.prototype.message = ''; /** * Creates a new RoleUserAddResult instance using the specified properties. @@ -56418,16 +58446,15 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ RoleUserAddResult.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.roleId != null && Object.hasOwnProperty.call(message, "roleId")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.roleId); - if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "enterpriseUserId")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.enterpriseUserId); - if (message.status != null && Object.hasOwnProperty.call(message, "status")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.status); - if (message.message != null && Object.hasOwnProperty.call(message, "message")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.message); + if (!writer) writer = $Writer.create(); + if (message.roleId != null && Object.hasOwnProperty.call(message, 'roleId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int64(message.roleId); + if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, 'enterpriseUserId')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int64(message.enterpriseUserId); + if (message.status != null && Object.hasOwnProperty.call(message, 'status')) + writer.uint32(/* id 3, wireType 0 =*/ 24).int32(message.status); + if (message.message != null && Object.hasOwnProperty.call(message, 'message')) + writer.uint32(/* id 4, wireType 2 =*/ 34).string(message.message); return writer; }; @@ -56456,31 +58483,31 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RoleUserAddResult.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.RoleUserAddResult(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.RoleUserAddResult(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.roleId = reader.int64(); break; } - case 2: { + case 2: { message.enterpriseUserId = reader.int64(); break; } - case 3: { + case 3: { message.status = reader.int32(); break; } - case 4: { + case 4: { message.message = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -56497,8 +58524,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RoleUserAddResult.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -56511,33 +58537,41 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ RoleUserAddResult.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.roleId != null && message.hasOwnProperty("roleId")) - if (!$util.isInteger(message.roleId) && !(message.roleId && $util.isInteger(message.roleId.low) && $util.isInteger(message.roleId.high))) - return "roleId: integer|Long expected"; - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (!$util.isInteger(message.enterpriseUserId) && !(message.enterpriseUserId && $util.isInteger(message.enterpriseUserId.low) && $util.isInteger(message.enterpriseUserId.high))) - return "enterpriseUserId: integer|Long expected"; - if (message.status != null && message.hasOwnProperty("status")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.roleId != null && message.hasOwnProperty('roleId')) + if ( + !$util.isInteger(message.roleId) && + !(message.roleId && $util.isInteger(message.roleId.low) && $util.isInteger(message.roleId.high)) + ) + return 'roleId: integer|Long expected'; + if (message.enterpriseUserId != null && message.hasOwnProperty('enterpriseUserId')) + if ( + !$util.isInteger(message.enterpriseUserId) && + !( + message.enterpriseUserId && + $util.isInteger(message.enterpriseUserId.low) && + $util.isInteger(message.enterpriseUserId.high) + ) + ) + return 'enterpriseUserId: integer|Long expected'; + if (message.status != null && message.hasOwnProperty('status')) switch (message.status) { - default: - return "status: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - break; + default: + return 'status: enum value expected'; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + break; } - if (message.message != null && message.hasOwnProperty("message")) - if (!$util.isString(message.message)) - return "message: string expected"; + if (message.message != null && message.hasOwnProperty('message')) + if (!$util.isString(message.message)) return 'message: string expected'; return null; }; @@ -56550,77 +58584,75 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.RoleUserAddResult} RoleUserAddResult */ RoleUserAddResult.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.RoleUserAddResult) - return object; + if (object instanceof $root.Enterprise.RoleUserAddResult) return object; let message = new $root.Enterprise.RoleUserAddResult(); if (object.roleId != null) - if ($util.Long) - (message.roleId = $util.Long.fromValue(object.roleId)).unsigned = false; - else if (typeof object.roleId === "string") - message.roleId = parseInt(object.roleId, 10); - else if (typeof object.roleId === "number") - message.roleId = object.roleId; - else if (typeof object.roleId === "object") + if ($util.Long) (message.roleId = $util.Long.fromValue(object.roleId)).unsigned = false; + else if (typeof object.roleId === 'string') message.roleId = parseInt(object.roleId, 10); + else if (typeof object.roleId === 'number') message.roleId = object.roleId; + else if (typeof object.roleId === 'object') message.roleId = new $util.LongBits(object.roleId.low >>> 0, object.roleId.high >>> 0).toNumber(); if (object.enterpriseUserId != null) if ($util.Long) (message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId)).unsigned = false; - else if (typeof object.enterpriseUserId === "string") + else if (typeof object.enterpriseUserId === 'string') message.enterpriseUserId = parseInt(object.enterpriseUserId, 10); - else if (typeof object.enterpriseUserId === "number") + else if (typeof object.enterpriseUserId === 'number') message.enterpriseUserId = object.enterpriseUserId; - else if (typeof object.enterpriseUserId === "object") - message.enterpriseUserId = new $util.LongBits(object.enterpriseUserId.low >>> 0, object.enterpriseUserId.high >>> 0).toNumber(); + else if (typeof object.enterpriseUserId === 'object') + message.enterpriseUserId = new $util.LongBits( + object.enterpriseUserId.low >>> 0, + object.enterpriseUserId.high >>> 0 + ).toNumber(); switch (object.status) { - default: - if (typeof object.status === "number") { - message.status = object.status; - break; - } - break; - case "ROLE_EXISTS": - case 0: - message.status = 0; - break; - case "MISSING_TREE_KEY": - case 1: - message.status = 1; - break; - case "MISSING_ROLE_KEY": - case 2: - message.status = 2; - break; - case "INVALID_ENTERPRISE_USER_ID": - case 3: - message.status = 3; - break; - case "PENDING_ENTERPRISE_USER": - case 4: - message.status = 4; - break; - case "INVALID_NODE_ID": - case 5: - message.status = 5; - break; - case "MAY_NOT_REMOVE_SELF_FROM_ROLE": - case 6: - message.status = 6; - break; - case "MUST_HAVE_ONE_USER_ADMIN": - case 7: - message.status = 7; - break; - case "INVALID_ROLE_ID": - case 8: - message.status = 8; - break; - case "PAM_LICENSE_SEAT_EXCEEDED": - case 9: - message.status = 9; - break; + default: + if (typeof object.status === 'number') { + message.status = object.status; + break; + } + break; + case 'ROLE_EXISTS': + case 0: + message.status = 0; + break; + case 'MISSING_TREE_KEY': + case 1: + message.status = 1; + break; + case 'MISSING_ROLE_KEY': + case 2: + message.status = 2; + break; + case 'INVALID_ENTERPRISE_USER_ID': + case 3: + message.status = 3; + break; + case 'PENDING_ENTERPRISE_USER': + case 4: + message.status = 4; + break; + case 'INVALID_NODE_ID': + case 5: + message.status = 5; + break; + case 'MAY_NOT_REMOVE_SELF_FROM_ROLE': + case 6: + message.status = 6; + break; + case 'MUST_HAVE_ONE_USER_ADMIN': + case 7: + message.status = 7; + break; + case 'INVALID_ROLE_ID': + case 8: + message.status = 8; + break; + case 'PAM_LICENSE_SEAT_EXCEEDED': + case 9: + message.status = 9; + break; } - if (object.message != null) - message.message = String(object.message); + if (object.message != null) message.message = String(object.message); return message; }; @@ -56634,37 +58666,54 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ RoleUserAddResult.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.roleId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.roleId = options.longs === String ? "0" : 0; + object.roleId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.roleId = options.longs === String ? '0' : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.enterpriseUserId = options.longs === String ? "0" : 0; - object.status = options.enums === String ? "ROLE_EXISTS" : 0; - object.message = ""; - } - if (message.roleId != null && message.hasOwnProperty("roleId")) - if (typeof message.roleId === "number") + object.enterpriseUserId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.enterpriseUserId = options.longs === String ? '0' : 0; + object.status = options.enums === String ? 'ROLE_EXISTS' : 0; + object.message = ''; + } + if (message.roleId != null && message.hasOwnProperty('roleId')) + if (typeof message.roleId === 'number') object.roleId = options.longs === String ? String(message.roleId) : message.roleId; else - object.roleId = options.longs === String ? $util.Long.prototype.toString.call(message.roleId) : options.longs === Number ? new $util.LongBits(message.roleId.low >>> 0, message.roleId.high >>> 0).toNumber() : message.roleId; - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (typeof message.enterpriseUserId === "number") - object.enterpriseUserId = options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; + object.roleId = + options.longs === String + ? $util.Long.prototype.toString.call(message.roleId) + : options.longs === Number + ? new $util.LongBits(message.roleId.low >>> 0, message.roleId.high >>> 0).toNumber() + : message.roleId; + if (message.enterpriseUserId != null && message.hasOwnProperty('enterpriseUserId')) + if (typeof message.enterpriseUserId === 'number') + object.enterpriseUserId = + options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; else - object.enterpriseUserId = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseUserId) : options.longs === Number ? new $util.LongBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0).toNumber() : message.enterpriseUserId; - if (message.status != null && message.hasOwnProperty("status")) - object.status = options.enums === String ? $root.Enterprise.RoleUserModifyStatus[message.status] === undefined ? message.status : $root.Enterprise.RoleUserModifyStatus[message.status] : message.status; - if (message.message != null && message.hasOwnProperty("message")) - object.message = message.message; + object.enterpriseUserId = + options.longs === String + ? $util.Long.prototype.toString.call(message.enterpriseUserId) + : options.longs === Number + ? new $util.LongBits( + message.enterpriseUserId.low >>> 0, + message.enterpriseUserId.high >>> 0 + ).toNumber() + : message.enterpriseUserId; + if (message.status != null && message.hasOwnProperty('status')) + object.status = + options.enums === String + ? $root.Enterprise.RoleUserModifyStatus[message.status] === undefined + ? message.status + : $root.Enterprise.RoleUserModifyStatus[message.status] + : message.status; + if (message.message != null && message.hasOwnProperty('message')) object.message = message.message; return object; }; @@ -56689,16 +58738,15 @@ export const Enterprise = $root.Enterprise = (() => { */ RoleUserAddResult.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.RoleUserAddResult"; + return typeUrlPrefix + '/Enterprise.RoleUserAddResult'; }; return RoleUserAddResult; })(); - Enterprise.RoleUsersAddResponse = (function() { - + Enterprise.RoleUsersAddResponse = (function () { /** * Properties of a RoleUsersAddResponse. * @memberof Enterprise @@ -56718,8 +58766,7 @@ export const Enterprise = $root.Enterprise = (() => { this.results = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -56752,11 +58799,13 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ RoleUsersAddResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.results != null && message.results.length) for (let i = 0; i < message.results.length; ++i) - $root.Enterprise.RoleUserAddResult.encode(message.results[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.Enterprise.RoleUserAddResult.encode( + message.results[i], + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); return writer; }; @@ -56785,21 +58834,20 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RoleUsersAddResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.RoleUsersAddResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.RoleUsersAddResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (!(message.results && message.results.length)) - message.results = []; + case 1: { + if (!(message.results && message.results.length)) message.results = []; message.results.push($root.Enterprise.RoleUserAddResult.decode(reader, reader.uint32())); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -56816,8 +58864,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RoleUsersAddResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -56830,15 +58877,12 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ RoleUsersAddResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.results != null && message.hasOwnProperty("results")) { - if (!Array.isArray(message.results)) - return "results: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.results != null && message.hasOwnProperty('results')) { + if (!Array.isArray(message.results)) return 'results: array expected'; for (let i = 0; i < message.results.length; ++i) { let error = $root.Enterprise.RoleUserAddResult.verify(message.results[i]); - if (error) - return "results." + error; + if (error) return 'results.' + error; } } return null; @@ -56853,16 +58897,15 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.RoleUsersAddResponse} RoleUsersAddResponse */ RoleUsersAddResponse.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.RoleUsersAddResponse) - return object; + if (object instanceof $root.Enterprise.RoleUsersAddResponse) return object; let message = new $root.Enterprise.RoleUsersAddResponse(); if (object.results) { if (!Array.isArray(object.results)) - throw TypeError(".Enterprise.RoleUsersAddResponse.results: array expected"); + throw TypeError('.Enterprise.RoleUsersAddResponse.results: array expected'); message.results = []; for (let i = 0; i < object.results.length; ++i) { - if (typeof object.results[i] !== "object") - throw TypeError(".Enterprise.RoleUsersAddResponse.results: object expected"); + if (typeof object.results[i] !== 'object') + throw TypeError('.Enterprise.RoleUsersAddResponse.results: object expected'); message.results[i] = $root.Enterprise.RoleUserAddResult.fromObject(object.results[i]); } } @@ -56879,11 +58922,9 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ RoleUsersAddResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.results = []; + if (options.arrays || options.defaults) object.results = []; if (message.results && message.results.length) { object.results = []; for (let j = 0; j < message.results.length; ++j) @@ -56913,16 +58954,15 @@ export const Enterprise = $root.Enterprise = (() => { */ RoleUsersAddResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.RoleUsersAddResponse"; + return typeUrlPrefix + '/Enterprise.RoleUsersAddResponse'; }; return RoleUsersAddResponse; })(); - Enterprise.RoleUserRemove = (function() { - + Enterprise.RoleUserRemove = (function () { /** * Properties of a RoleUserRemove. * @memberof Enterprise @@ -56943,8 +58983,7 @@ export const Enterprise = $root.Enterprise = (() => { this.enterpriseUserIds = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -56953,7 +58992,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.RoleUserRemove * @instance */ - RoleUserRemove.prototype.roleId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + RoleUserRemove.prototype.roleId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * RoleUserRemove enterpriseUserIds. @@ -56985,14 +59024,12 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ RoleUserRemove.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.roleId != null && Object.hasOwnProperty.call(message, "roleId")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.roleId); + if (!writer) writer = $Writer.create(); + if (message.roleId != null && Object.hasOwnProperty.call(message, 'roleId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int64(message.roleId); if (message.enterpriseUserIds != null && message.enterpriseUserIds.length) { - writer.uint32(/* id 2, wireType 2 =*/18).fork(); - for (let i = 0; i < message.enterpriseUserIds.length; ++i) - writer.int64(message.enterpriseUserIds[i]); + writer.uint32(/* id 2, wireType 2 =*/ 18).fork(); + for (let i = 0; i < message.enterpriseUserIds.length; ++i) writer.int64(message.enterpriseUserIds[i]); writer.ldelim(); } return writer; @@ -57023,30 +59060,28 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RoleUserRemove.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.RoleUserRemove(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.RoleUserRemove(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.roleId = reader.int64(); break; } - case 2: { + case 2: { if (!(message.enterpriseUserIds && message.enterpriseUserIds.length)) message.enterpriseUserIds = []; if ((tag & 7) === 2) { let end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.enterpriseUserIds.push(reader.int64()); - } else - message.enterpriseUserIds.push(reader.int64()); + while (reader.pos < end2) message.enterpriseUserIds.push(reader.int64()); + } else message.enterpriseUserIds.push(reader.int64()); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -57063,8 +59098,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RoleUserRemove.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -57077,17 +59111,25 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ RoleUserRemove.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.roleId != null && message.hasOwnProperty("roleId")) - if (!$util.isInteger(message.roleId) && !(message.roleId && $util.isInteger(message.roleId.low) && $util.isInteger(message.roleId.high))) - return "roleId: integer|Long expected"; - if (message.enterpriseUserIds != null && message.hasOwnProperty("enterpriseUserIds")) { - if (!Array.isArray(message.enterpriseUserIds)) - return "enterpriseUserIds: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.roleId != null && message.hasOwnProperty('roleId')) + if ( + !$util.isInteger(message.roleId) && + !(message.roleId && $util.isInteger(message.roleId.low) && $util.isInteger(message.roleId.high)) + ) + return 'roleId: integer|Long expected'; + if (message.enterpriseUserIds != null && message.hasOwnProperty('enterpriseUserIds')) { + if (!Array.isArray(message.enterpriseUserIds)) return 'enterpriseUserIds: array expected'; for (let i = 0; i < message.enterpriseUserIds.length; ++i) - if (!$util.isInteger(message.enterpriseUserIds[i]) && !(message.enterpriseUserIds[i] && $util.isInteger(message.enterpriseUserIds[i].low) && $util.isInteger(message.enterpriseUserIds[i].high))) - return "enterpriseUserIds: integer|Long[] expected"; + if ( + !$util.isInteger(message.enterpriseUserIds[i]) && + !( + message.enterpriseUserIds[i] && + $util.isInteger(message.enterpriseUserIds[i].low) && + $util.isInteger(message.enterpriseUserIds[i].high) + ) + ) + return 'enterpriseUserIds: integer|Long[] expected'; } return null; }; @@ -57101,31 +59143,31 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.RoleUserRemove} RoleUserRemove */ RoleUserRemove.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.RoleUserRemove) - return object; + if (object instanceof $root.Enterprise.RoleUserRemove) return object; let message = new $root.Enterprise.RoleUserRemove(); if (object.roleId != null) - if ($util.Long) - (message.roleId = $util.Long.fromValue(object.roleId)).unsigned = false; - else if (typeof object.roleId === "string") - message.roleId = parseInt(object.roleId, 10); - else if (typeof object.roleId === "number") - message.roleId = object.roleId; - else if (typeof object.roleId === "object") + if ($util.Long) (message.roleId = $util.Long.fromValue(object.roleId)).unsigned = false; + else if (typeof object.roleId === 'string') message.roleId = parseInt(object.roleId, 10); + else if (typeof object.roleId === 'number') message.roleId = object.roleId; + else if (typeof object.roleId === 'object') message.roleId = new $util.LongBits(object.roleId.low >>> 0, object.roleId.high >>> 0).toNumber(); if (object.enterpriseUserIds) { if (!Array.isArray(object.enterpriseUserIds)) - throw TypeError(".Enterprise.RoleUserRemove.enterpriseUserIds: array expected"); + throw TypeError('.Enterprise.RoleUserRemove.enterpriseUserIds: array expected'); message.enterpriseUserIds = []; for (let i = 0; i < object.enterpriseUserIds.length; ++i) if ($util.Long) - (message.enterpriseUserIds[i] = $util.Long.fromValue(object.enterpriseUserIds[i])).unsigned = false; - else if (typeof object.enterpriseUserIds[i] === "string") + (message.enterpriseUserIds[i] = $util.Long.fromValue(object.enterpriseUserIds[i])).unsigned = + false; + else if (typeof object.enterpriseUserIds[i] === 'string') message.enterpriseUserIds[i] = parseInt(object.enterpriseUserIds[i], 10); - else if (typeof object.enterpriseUserIds[i] === "number") + else if (typeof object.enterpriseUserIds[i] === 'number') message.enterpriseUserIds[i] = object.enterpriseUserIds[i]; - else if (typeof object.enterpriseUserIds[i] === "object") - message.enterpriseUserIds[i] = new $util.LongBits(object.enterpriseUserIds[i].low >>> 0, object.enterpriseUserIds[i].high >>> 0).toNumber(); + else if (typeof object.enterpriseUserIds[i] === 'object') + message.enterpriseUserIds[i] = new $util.LongBits( + object.enterpriseUserIds[i].low >>> 0, + object.enterpriseUserIds[i].high >>> 0 + ).toNumber(); } return message; }; @@ -57140,29 +59182,43 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ RoleUserRemove.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.enterpriseUserIds = []; + if (options.arrays || options.defaults) object.enterpriseUserIds = []; if (options.defaults) if ($util.Long) { let long = new $util.Long(0, 0, false); - object.roleId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.roleId = options.longs === String ? "0" : 0; - if (message.roleId != null && message.hasOwnProperty("roleId")) - if (typeof message.roleId === "number") + object.roleId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.roleId = options.longs === String ? '0' : 0; + if (message.roleId != null && message.hasOwnProperty('roleId')) + if (typeof message.roleId === 'number') object.roleId = options.longs === String ? String(message.roleId) : message.roleId; else - object.roleId = options.longs === String ? $util.Long.prototype.toString.call(message.roleId) : options.longs === Number ? new $util.LongBits(message.roleId.low >>> 0, message.roleId.high >>> 0).toNumber() : message.roleId; + object.roleId = + options.longs === String + ? $util.Long.prototype.toString.call(message.roleId) + : options.longs === Number + ? new $util.LongBits(message.roleId.low >>> 0, message.roleId.high >>> 0).toNumber() + : message.roleId; if (message.enterpriseUserIds && message.enterpriseUserIds.length) { object.enterpriseUserIds = []; for (let j = 0; j < message.enterpriseUserIds.length; ++j) - if (typeof message.enterpriseUserIds[j] === "number") - object.enterpriseUserIds[j] = options.longs === String ? String(message.enterpriseUserIds[j]) : message.enterpriseUserIds[j]; + if (typeof message.enterpriseUserIds[j] === 'number') + object.enterpriseUserIds[j] = + options.longs === String + ? String(message.enterpriseUserIds[j]) + : message.enterpriseUserIds[j]; else - object.enterpriseUserIds[j] = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseUserIds[j]) : options.longs === Number ? new $util.LongBits(message.enterpriseUserIds[j].low >>> 0, message.enterpriseUserIds[j].high >>> 0).toNumber() : message.enterpriseUserIds[j]; + object.enterpriseUserIds[j] = + options.longs === String + ? $util.Long.prototype.toString.call(message.enterpriseUserIds[j]) + : options.longs === Number + ? new $util.LongBits( + message.enterpriseUserIds[j].low >>> 0, + message.enterpriseUserIds[j].high >>> 0 + ).toNumber() + : message.enterpriseUserIds[j]; } return object; }; @@ -57188,16 +59244,15 @@ export const Enterprise = $root.Enterprise = (() => { */ RoleUserRemove.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.RoleUserRemove"; + return typeUrlPrefix + '/Enterprise.RoleUserRemove'; }; return RoleUserRemove; })(); - Enterprise.RoleUsersRemoveRequest = (function() { - + Enterprise.RoleUsersRemoveRequest = (function () { /** * Properties of a RoleUsersRemoveRequest. * @memberof Enterprise @@ -57217,8 +59272,7 @@ export const Enterprise = $root.Enterprise = (() => { this.roleUserRemoves = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -57251,11 +59305,13 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ RoleUsersRemoveRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.roleUserRemoves != null && message.roleUserRemoves.length) for (let i = 0; i < message.roleUserRemoves.length; ++i) - $root.Enterprise.RoleUserRemove.encode(message.roleUserRemoves[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.Enterprise.RoleUserRemove.encode( + message.roleUserRemoves[i], + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); return writer; }; @@ -57284,21 +59340,20 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RoleUsersRemoveRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.RoleUsersRemoveRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.RoleUsersRemoveRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (!(message.roleUserRemoves && message.roleUserRemoves.length)) - message.roleUserRemoves = []; + case 1: { + if (!(message.roleUserRemoves && message.roleUserRemoves.length)) message.roleUserRemoves = []; message.roleUserRemoves.push($root.Enterprise.RoleUserRemove.decode(reader, reader.uint32())); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -57315,8 +59370,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RoleUsersRemoveRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -57329,15 +59383,12 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ RoleUsersRemoveRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.roleUserRemoves != null && message.hasOwnProperty("roleUserRemoves")) { - if (!Array.isArray(message.roleUserRemoves)) - return "roleUserRemoves: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.roleUserRemoves != null && message.hasOwnProperty('roleUserRemoves')) { + if (!Array.isArray(message.roleUserRemoves)) return 'roleUserRemoves: array expected'; for (let i = 0; i < message.roleUserRemoves.length; ++i) { let error = $root.Enterprise.RoleUserRemove.verify(message.roleUserRemoves[i]); - if (error) - return "roleUserRemoves." + error; + if (error) return 'roleUserRemoves.' + error; } } return null; @@ -57352,16 +59403,15 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.RoleUsersRemoveRequest} RoleUsersRemoveRequest */ RoleUsersRemoveRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.RoleUsersRemoveRequest) - return object; + if (object instanceof $root.Enterprise.RoleUsersRemoveRequest) return object; let message = new $root.Enterprise.RoleUsersRemoveRequest(); if (object.roleUserRemoves) { if (!Array.isArray(object.roleUserRemoves)) - throw TypeError(".Enterprise.RoleUsersRemoveRequest.roleUserRemoves: array expected"); + throw TypeError('.Enterprise.RoleUsersRemoveRequest.roleUserRemoves: array expected'); message.roleUserRemoves = []; for (let i = 0; i < object.roleUserRemoves.length; ++i) { - if (typeof object.roleUserRemoves[i] !== "object") - throw TypeError(".Enterprise.RoleUsersRemoveRequest.roleUserRemoves: object expected"); + if (typeof object.roleUserRemoves[i] !== 'object') + throw TypeError('.Enterprise.RoleUsersRemoveRequest.roleUserRemoves: object expected'); message.roleUserRemoves[i] = $root.Enterprise.RoleUserRemove.fromObject(object.roleUserRemoves[i]); } } @@ -57378,15 +59428,16 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ RoleUsersRemoveRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.roleUserRemoves = []; + if (options.arrays || options.defaults) object.roleUserRemoves = []; if (message.roleUserRemoves && message.roleUserRemoves.length) { object.roleUserRemoves = []; for (let j = 0; j < message.roleUserRemoves.length; ++j) - object.roleUserRemoves[j] = $root.Enterprise.RoleUserRemove.toObject(message.roleUserRemoves[j], options); + object.roleUserRemoves[j] = $root.Enterprise.RoleUserRemove.toObject( + message.roleUserRemoves[j], + options + ); } return object; }; @@ -57412,16 +59463,15 @@ export const Enterprise = $root.Enterprise = (() => { */ RoleUsersRemoveRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.RoleUsersRemoveRequest"; + return typeUrlPrefix + '/Enterprise.RoleUsersRemoveRequest'; }; return RoleUsersRemoveRequest; })(); - Enterprise.RoleUserRemoveResult = (function() { - + Enterprise.RoleUserRemoveResult = (function () { /** * Properties of a RoleUserRemoveResult. * @memberof Enterprise @@ -57443,8 +59493,7 @@ export const Enterprise = $root.Enterprise = (() => { function RoleUserRemoveResult(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -57453,7 +59502,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.RoleUserRemoveResult * @instance */ - RoleUserRemoveResult.prototype.roleId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + RoleUserRemoveResult.prototype.roleId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * RoleUserRemoveResult enterpriseUserId. @@ -57461,7 +59510,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.RoleUserRemoveResult * @instance */ - RoleUserRemoveResult.prototype.enterpriseUserId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + RoleUserRemoveResult.prototype.enterpriseUserId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * RoleUserRemoveResult status. @@ -57477,7 +59526,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.RoleUserRemoveResult * @instance */ - RoleUserRemoveResult.prototype.message = ""; + RoleUserRemoveResult.prototype.message = ''; /** * Creates a new RoleUserRemoveResult instance using the specified properties. @@ -57501,16 +59550,15 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ RoleUserRemoveResult.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.roleId != null && Object.hasOwnProperty.call(message, "roleId")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.roleId); - if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "enterpriseUserId")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.enterpriseUserId); - if (message.status != null && Object.hasOwnProperty.call(message, "status")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.status); - if (message.message != null && Object.hasOwnProperty.call(message, "message")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.message); + if (!writer) writer = $Writer.create(); + if (message.roleId != null && Object.hasOwnProperty.call(message, 'roleId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int64(message.roleId); + if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, 'enterpriseUserId')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int64(message.enterpriseUserId); + if (message.status != null && Object.hasOwnProperty.call(message, 'status')) + writer.uint32(/* id 3, wireType 0 =*/ 24).int32(message.status); + if (message.message != null && Object.hasOwnProperty.call(message, 'message')) + writer.uint32(/* id 4, wireType 2 =*/ 34).string(message.message); return writer; }; @@ -57539,31 +59587,31 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RoleUserRemoveResult.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.RoleUserRemoveResult(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.RoleUserRemoveResult(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.roleId = reader.int64(); break; } - case 2: { + case 2: { message.enterpriseUserId = reader.int64(); break; } - case 3: { + case 3: { message.status = reader.int32(); break; } - case 4: { + case 4: { message.message = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -57580,8 +59628,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RoleUserRemoveResult.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -57594,33 +59641,41 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ RoleUserRemoveResult.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.roleId != null && message.hasOwnProperty("roleId")) - if (!$util.isInteger(message.roleId) && !(message.roleId && $util.isInteger(message.roleId.low) && $util.isInteger(message.roleId.high))) - return "roleId: integer|Long expected"; - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (!$util.isInteger(message.enterpriseUserId) && !(message.enterpriseUserId && $util.isInteger(message.enterpriseUserId.low) && $util.isInteger(message.enterpriseUserId.high))) - return "enterpriseUserId: integer|Long expected"; - if (message.status != null && message.hasOwnProperty("status")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.roleId != null && message.hasOwnProperty('roleId')) + if ( + !$util.isInteger(message.roleId) && + !(message.roleId && $util.isInteger(message.roleId.low) && $util.isInteger(message.roleId.high)) + ) + return 'roleId: integer|Long expected'; + if (message.enterpriseUserId != null && message.hasOwnProperty('enterpriseUserId')) + if ( + !$util.isInteger(message.enterpriseUserId) && + !( + message.enterpriseUserId && + $util.isInteger(message.enterpriseUserId.low) && + $util.isInteger(message.enterpriseUserId.high) + ) + ) + return 'enterpriseUserId: integer|Long expected'; + if (message.status != null && message.hasOwnProperty('status')) switch (message.status) { - default: - return "status: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - break; + default: + return 'status: enum value expected'; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + break; } - if (message.message != null && message.hasOwnProperty("message")) - if (!$util.isString(message.message)) - return "message: string expected"; + if (message.message != null && message.hasOwnProperty('message')) + if (!$util.isString(message.message)) return 'message: string expected'; return null; }; @@ -57633,77 +59688,75 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.RoleUserRemoveResult} RoleUserRemoveResult */ RoleUserRemoveResult.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.RoleUserRemoveResult) - return object; + if (object instanceof $root.Enterprise.RoleUserRemoveResult) return object; let message = new $root.Enterprise.RoleUserRemoveResult(); if (object.roleId != null) - if ($util.Long) - (message.roleId = $util.Long.fromValue(object.roleId)).unsigned = false; - else if (typeof object.roleId === "string") - message.roleId = parseInt(object.roleId, 10); - else if (typeof object.roleId === "number") - message.roleId = object.roleId; - else if (typeof object.roleId === "object") + if ($util.Long) (message.roleId = $util.Long.fromValue(object.roleId)).unsigned = false; + else if (typeof object.roleId === 'string') message.roleId = parseInt(object.roleId, 10); + else if (typeof object.roleId === 'number') message.roleId = object.roleId; + else if (typeof object.roleId === 'object') message.roleId = new $util.LongBits(object.roleId.low >>> 0, object.roleId.high >>> 0).toNumber(); if (object.enterpriseUserId != null) if ($util.Long) (message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId)).unsigned = false; - else if (typeof object.enterpriseUserId === "string") + else if (typeof object.enterpriseUserId === 'string') message.enterpriseUserId = parseInt(object.enterpriseUserId, 10); - else if (typeof object.enterpriseUserId === "number") + else if (typeof object.enterpriseUserId === 'number') message.enterpriseUserId = object.enterpriseUserId; - else if (typeof object.enterpriseUserId === "object") - message.enterpriseUserId = new $util.LongBits(object.enterpriseUserId.low >>> 0, object.enterpriseUserId.high >>> 0).toNumber(); + else if (typeof object.enterpriseUserId === 'object') + message.enterpriseUserId = new $util.LongBits( + object.enterpriseUserId.low >>> 0, + object.enterpriseUserId.high >>> 0 + ).toNumber(); switch (object.status) { - default: - if (typeof object.status === "number") { - message.status = object.status; - break; - } - break; - case "ROLE_EXISTS": - case 0: - message.status = 0; - break; - case "MISSING_TREE_KEY": - case 1: - message.status = 1; - break; - case "MISSING_ROLE_KEY": - case 2: - message.status = 2; - break; - case "INVALID_ENTERPRISE_USER_ID": - case 3: - message.status = 3; - break; - case "PENDING_ENTERPRISE_USER": - case 4: - message.status = 4; - break; - case "INVALID_NODE_ID": - case 5: - message.status = 5; - break; - case "MAY_NOT_REMOVE_SELF_FROM_ROLE": - case 6: - message.status = 6; - break; - case "MUST_HAVE_ONE_USER_ADMIN": - case 7: - message.status = 7; - break; - case "INVALID_ROLE_ID": - case 8: - message.status = 8; - break; - case "PAM_LICENSE_SEAT_EXCEEDED": - case 9: - message.status = 9; - break; + default: + if (typeof object.status === 'number') { + message.status = object.status; + break; + } + break; + case 'ROLE_EXISTS': + case 0: + message.status = 0; + break; + case 'MISSING_TREE_KEY': + case 1: + message.status = 1; + break; + case 'MISSING_ROLE_KEY': + case 2: + message.status = 2; + break; + case 'INVALID_ENTERPRISE_USER_ID': + case 3: + message.status = 3; + break; + case 'PENDING_ENTERPRISE_USER': + case 4: + message.status = 4; + break; + case 'INVALID_NODE_ID': + case 5: + message.status = 5; + break; + case 'MAY_NOT_REMOVE_SELF_FROM_ROLE': + case 6: + message.status = 6; + break; + case 'MUST_HAVE_ONE_USER_ADMIN': + case 7: + message.status = 7; + break; + case 'INVALID_ROLE_ID': + case 8: + message.status = 8; + break; + case 'PAM_LICENSE_SEAT_EXCEEDED': + case 9: + message.status = 9; + break; } - if (object.message != null) - message.message = String(object.message); + if (object.message != null) message.message = String(object.message); return message; }; @@ -57717,37 +59770,54 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ RoleUserRemoveResult.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.roleId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.roleId = options.longs === String ? "0" : 0; + object.roleId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.roleId = options.longs === String ? '0' : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.enterpriseUserId = options.longs === String ? "0" : 0; - object.status = options.enums === String ? "ROLE_EXISTS" : 0; - object.message = ""; - } - if (message.roleId != null && message.hasOwnProperty("roleId")) - if (typeof message.roleId === "number") + object.enterpriseUserId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.enterpriseUserId = options.longs === String ? '0' : 0; + object.status = options.enums === String ? 'ROLE_EXISTS' : 0; + object.message = ''; + } + if (message.roleId != null && message.hasOwnProperty('roleId')) + if (typeof message.roleId === 'number') object.roleId = options.longs === String ? String(message.roleId) : message.roleId; else - object.roleId = options.longs === String ? $util.Long.prototype.toString.call(message.roleId) : options.longs === Number ? new $util.LongBits(message.roleId.low >>> 0, message.roleId.high >>> 0).toNumber() : message.roleId; - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (typeof message.enterpriseUserId === "number") - object.enterpriseUserId = options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; + object.roleId = + options.longs === String + ? $util.Long.prototype.toString.call(message.roleId) + : options.longs === Number + ? new $util.LongBits(message.roleId.low >>> 0, message.roleId.high >>> 0).toNumber() + : message.roleId; + if (message.enterpriseUserId != null && message.hasOwnProperty('enterpriseUserId')) + if (typeof message.enterpriseUserId === 'number') + object.enterpriseUserId = + options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; else - object.enterpriseUserId = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseUserId) : options.longs === Number ? new $util.LongBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0).toNumber() : message.enterpriseUserId; - if (message.status != null && message.hasOwnProperty("status")) - object.status = options.enums === String ? $root.Enterprise.RoleUserModifyStatus[message.status] === undefined ? message.status : $root.Enterprise.RoleUserModifyStatus[message.status] : message.status; - if (message.message != null && message.hasOwnProperty("message")) - object.message = message.message; + object.enterpriseUserId = + options.longs === String + ? $util.Long.prototype.toString.call(message.enterpriseUserId) + : options.longs === Number + ? new $util.LongBits( + message.enterpriseUserId.low >>> 0, + message.enterpriseUserId.high >>> 0 + ).toNumber() + : message.enterpriseUserId; + if (message.status != null && message.hasOwnProperty('status')) + object.status = + options.enums === String + ? $root.Enterprise.RoleUserModifyStatus[message.status] === undefined + ? message.status + : $root.Enterprise.RoleUserModifyStatus[message.status] + : message.status; + if (message.message != null && message.hasOwnProperty('message')) object.message = message.message; return object; }; @@ -57772,16 +59842,15 @@ export const Enterprise = $root.Enterprise = (() => { */ RoleUserRemoveResult.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.RoleUserRemoveResult"; + return typeUrlPrefix + '/Enterprise.RoleUserRemoveResult'; }; return RoleUserRemoveResult; })(); - Enterprise.RoleUsersRemoveResponse = (function() { - + Enterprise.RoleUsersRemoveResponse = (function () { /** * Properties of a RoleUsersRemoveResponse. * @memberof Enterprise @@ -57801,8 +59870,7 @@ export const Enterprise = $root.Enterprise = (() => { this.results = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -57835,11 +59903,13 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ RoleUsersRemoveResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.results != null && message.results.length) for (let i = 0; i < message.results.length; ++i) - $root.Enterprise.RoleUserRemoveResult.encode(message.results[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.Enterprise.RoleUserRemoveResult.encode( + message.results[i], + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); return writer; }; @@ -57868,21 +59938,20 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RoleUsersRemoveResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.RoleUsersRemoveResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.RoleUsersRemoveResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (!(message.results && message.results.length)) - message.results = []; + case 1: { + if (!(message.results && message.results.length)) message.results = []; message.results.push($root.Enterprise.RoleUserRemoveResult.decode(reader, reader.uint32())); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -57899,8 +59968,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RoleUsersRemoveResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -57913,15 +59981,12 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ RoleUsersRemoveResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.results != null && message.hasOwnProperty("results")) { - if (!Array.isArray(message.results)) - return "results: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.results != null && message.hasOwnProperty('results')) { + if (!Array.isArray(message.results)) return 'results: array expected'; for (let i = 0; i < message.results.length; ++i) { let error = $root.Enterprise.RoleUserRemoveResult.verify(message.results[i]); - if (error) - return "results." + error; + if (error) return 'results.' + error; } } return null; @@ -57936,16 +60001,15 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.RoleUsersRemoveResponse} RoleUsersRemoveResponse */ RoleUsersRemoveResponse.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.RoleUsersRemoveResponse) - return object; + if (object instanceof $root.Enterprise.RoleUsersRemoveResponse) return object; let message = new $root.Enterprise.RoleUsersRemoveResponse(); if (object.results) { if (!Array.isArray(object.results)) - throw TypeError(".Enterprise.RoleUsersRemoveResponse.results: array expected"); + throw TypeError('.Enterprise.RoleUsersRemoveResponse.results: array expected'); message.results = []; for (let i = 0; i < object.results.length; ++i) { - if (typeof object.results[i] !== "object") - throw TypeError(".Enterprise.RoleUsersRemoveResponse.results: object expected"); + if (typeof object.results[i] !== 'object') + throw TypeError('.Enterprise.RoleUsersRemoveResponse.results: object expected'); message.results[i] = $root.Enterprise.RoleUserRemoveResult.fromObject(object.results[i]); } } @@ -57962,11 +60026,9 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ RoleUsersRemoveResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.results = []; + if (options.arrays || options.defaults) object.results = []; if (message.results && message.results.length) { object.results = []; for (let j = 0; j < message.results.length; ++j) @@ -57996,9 +60058,9 @@ export const Enterprise = $root.Enterprise = (() => { */ RoleUsersRemoveResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.RoleUsersRemoveResponse"; + return typeUrlPrefix + '/Enterprise.RoleUsersRemoveResponse'; }; return RoleUsersRemoveResponse; @@ -58011,15 +60073,15 @@ export const Enterprise = $root.Enterprise = (() => { * @property {number} ENTERPRISE_STANDARD=0 ENTERPRISE_STANDARD value * @property {number} ENTERPRISE_MSP=1 ENTERPRISE_MSP value */ - Enterprise.EnterpriseType = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "ENTERPRISE_STANDARD"] = 0; - values[valuesById[1] = "ENTERPRISE_MSP"] = 1; + Enterprise.EnterpriseType = (function () { + const valuesById = {}, + values = Object.create(valuesById); + values[(valuesById[0] = 'ENTERPRISE_STANDARD')] = 0; + values[(valuesById[1] = 'ENTERPRISE_MSP')] = 1; return values; })(); - Enterprise.EnterpriseRegistration = (function() { - + Enterprise.EnterpriseRegistration = (function () { /** * Properties of an EnterpriseRegistration. * @memberof Enterprise @@ -58053,8 +60115,7 @@ export const Enterprise = $root.Enterprise = (() => { function EnterpriseRegistration(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -58071,7 +60132,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.EnterpriseRegistration * @instance */ - EnterpriseRegistration.prototype.enterpriseName = ""; + EnterpriseRegistration.prototype.enterpriseName = ''; /** * EnterpriseRegistration rootNodeData. @@ -58095,7 +60156,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.EnterpriseRegistration * @instance */ - EnterpriseRegistration.prototype.adminName = ""; + EnterpriseRegistration.prototype.adminName = ''; /** * EnterpriseRegistration roleData. @@ -58207,40 +60268,54 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ EnterpriseRegistration.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.encryptedTreeKey != null && Object.hasOwnProperty.call(message, "encryptedTreeKey")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.encryptedTreeKey); - if (message.enterpriseName != null && Object.hasOwnProperty.call(message, "enterpriseName")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.enterpriseName); - if (message.rootNodeData != null && Object.hasOwnProperty.call(message, "rootNodeData")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.rootNodeData); - if (message.adminUserData != null && Object.hasOwnProperty.call(message, "adminUserData")) - writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.adminUserData); - if (message.adminName != null && Object.hasOwnProperty.call(message, "adminName")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.adminName); - if (message.roleData != null && Object.hasOwnProperty.call(message, "roleData")) - writer.uint32(/* id 6, wireType 2 =*/50).bytes(message.roleData); - if (message.rsaKeyPair != null && Object.hasOwnProperty.call(message, "rsaKeyPair")) - $root.Enterprise.EnterpriseKeyPairRequest.encode(message.rsaKeyPair, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.numberSeats != null && Object.hasOwnProperty.call(message, "numberSeats")) - writer.uint32(/* id 8, wireType 0 =*/64).int32(message.numberSeats); - if (message.enterpriseType != null && Object.hasOwnProperty.call(message, "enterpriseType")) - writer.uint32(/* id 9, wireType 0 =*/72).int32(message.enterpriseType); - if (message.rolePublicKey != null && Object.hasOwnProperty.call(message, "rolePublicKey")) - writer.uint32(/* id 10, wireType 2 =*/82).bytes(message.rolePublicKey); - if (message.rolePrivateKeyEncryptedWithRoleKey != null && Object.hasOwnProperty.call(message, "rolePrivateKeyEncryptedWithRoleKey")) - writer.uint32(/* id 11, wireType 2 =*/90).bytes(message.rolePrivateKeyEncryptedWithRoleKey); - if (message.roleKeyEncryptedWithTreeKey != null && Object.hasOwnProperty.call(message, "roleKeyEncryptedWithTreeKey")) - writer.uint32(/* id 12, wireType 2 =*/98).bytes(message.roleKeyEncryptedWithTreeKey); - if (message.eccKeyPair != null && Object.hasOwnProperty.call(message, "eccKeyPair")) - $root.Enterprise.EnterpriseKeyPairRequest.encode(message.eccKeyPair, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); - if (message.allUsersRoleData != null && Object.hasOwnProperty.call(message, "allUsersRoleData")) - writer.uint32(/* id 14, wireType 2 =*/114).bytes(message.allUsersRoleData); - if (message.roleKeyEncryptedWithUserPublicKey != null && Object.hasOwnProperty.call(message, "roleKeyEncryptedWithUserPublicKey")) - writer.uint32(/* id 15, wireType 2 =*/122).bytes(message.roleKeyEncryptedWithUserPublicKey); - if (message.approverRoleData != null && Object.hasOwnProperty.call(message, "approverRoleData")) - writer.uint32(/* id 16, wireType 2 =*/130).bytes(message.approverRoleData); + if (!writer) writer = $Writer.create(); + if (message.encryptedTreeKey != null && Object.hasOwnProperty.call(message, 'encryptedTreeKey')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.encryptedTreeKey); + if (message.enterpriseName != null && Object.hasOwnProperty.call(message, 'enterpriseName')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.enterpriseName); + if (message.rootNodeData != null && Object.hasOwnProperty.call(message, 'rootNodeData')) + writer.uint32(/* id 3, wireType 2 =*/ 26).bytes(message.rootNodeData); + if (message.adminUserData != null && Object.hasOwnProperty.call(message, 'adminUserData')) + writer.uint32(/* id 4, wireType 2 =*/ 34).bytes(message.adminUserData); + if (message.adminName != null && Object.hasOwnProperty.call(message, 'adminName')) + writer.uint32(/* id 5, wireType 2 =*/ 42).string(message.adminName); + if (message.roleData != null && Object.hasOwnProperty.call(message, 'roleData')) + writer.uint32(/* id 6, wireType 2 =*/ 50).bytes(message.roleData); + if (message.rsaKeyPair != null && Object.hasOwnProperty.call(message, 'rsaKeyPair')) + $root.Enterprise.EnterpriseKeyPairRequest.encode( + message.rsaKeyPair, + writer.uint32(/* id 7, wireType 2 =*/ 58).fork() + ).ldelim(); + if (message.numberSeats != null && Object.hasOwnProperty.call(message, 'numberSeats')) + writer.uint32(/* id 8, wireType 0 =*/ 64).int32(message.numberSeats); + if (message.enterpriseType != null && Object.hasOwnProperty.call(message, 'enterpriseType')) + writer.uint32(/* id 9, wireType 0 =*/ 72).int32(message.enterpriseType); + if (message.rolePublicKey != null && Object.hasOwnProperty.call(message, 'rolePublicKey')) + writer.uint32(/* id 10, wireType 2 =*/ 82).bytes(message.rolePublicKey); + if ( + message.rolePrivateKeyEncryptedWithRoleKey != null && + Object.hasOwnProperty.call(message, 'rolePrivateKeyEncryptedWithRoleKey') + ) + writer.uint32(/* id 11, wireType 2 =*/ 90).bytes(message.rolePrivateKeyEncryptedWithRoleKey); + if ( + message.roleKeyEncryptedWithTreeKey != null && + Object.hasOwnProperty.call(message, 'roleKeyEncryptedWithTreeKey') + ) + writer.uint32(/* id 12, wireType 2 =*/ 98).bytes(message.roleKeyEncryptedWithTreeKey); + if (message.eccKeyPair != null && Object.hasOwnProperty.call(message, 'eccKeyPair')) + $root.Enterprise.EnterpriseKeyPairRequest.encode( + message.eccKeyPair, + writer.uint32(/* id 13, wireType 2 =*/ 106).fork() + ).ldelim(); + if (message.allUsersRoleData != null && Object.hasOwnProperty.call(message, 'allUsersRoleData')) + writer.uint32(/* id 14, wireType 2 =*/ 114).bytes(message.allUsersRoleData); + if ( + message.roleKeyEncryptedWithUserPublicKey != null && + Object.hasOwnProperty.call(message, 'roleKeyEncryptedWithUserPublicKey') + ) + writer.uint32(/* id 15, wireType 2 =*/ 122).bytes(message.roleKeyEncryptedWithUserPublicKey); + if (message.approverRoleData != null && Object.hasOwnProperty.call(message, 'approverRoleData')) + writer.uint32(/* id 16, wireType 2 =*/ 130).bytes(message.approverRoleData); return writer; }; @@ -58269,79 +60344,79 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ EnterpriseRegistration.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.EnterpriseRegistration(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.EnterpriseRegistration(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.encryptedTreeKey = reader.bytes(); break; } - case 2: { + case 2: { message.enterpriseName = reader.string(); break; } - case 3: { + case 3: { message.rootNodeData = reader.bytes(); break; } - case 4: { + case 4: { message.adminUserData = reader.bytes(); break; } - case 5: { + case 5: { message.adminName = reader.string(); break; } - case 6: { + case 6: { message.roleData = reader.bytes(); break; } - case 7: { + case 7: { message.rsaKeyPair = $root.Enterprise.EnterpriseKeyPairRequest.decode(reader, reader.uint32()); break; } - case 8: { + case 8: { message.numberSeats = reader.int32(); break; } - case 9: { + case 9: { message.enterpriseType = reader.int32(); break; } - case 10: { + case 10: { message.rolePublicKey = reader.bytes(); break; } - case 11: { + case 11: { message.rolePrivateKeyEncryptedWithRoleKey = reader.bytes(); break; } - case 12: { + case 12: { message.roleKeyEncryptedWithTreeKey = reader.bytes(); break; } - case 13: { + case 13: { message.eccKeyPair = $root.Enterprise.EnterpriseKeyPairRequest.decode(reader, reader.uint32()); break; } - case 14: { + case 14: { message.allUsersRoleData = reader.bytes(); break; } - case 15: { + case 15: { message.roleKeyEncryptedWithUserPublicKey = reader.bytes(); break; } - case 16: { + case 16: { message.approverRoleData = reader.bytes(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -58358,8 +60433,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ EnterpriseRegistration.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -58372,65 +60446,118 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ EnterpriseRegistration.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.encryptedTreeKey != null && message.hasOwnProperty("encryptedTreeKey")) - if (!(message.encryptedTreeKey && typeof message.encryptedTreeKey.length === "number" || $util.isString(message.encryptedTreeKey))) - return "encryptedTreeKey: buffer expected"; - if (message.enterpriseName != null && message.hasOwnProperty("enterpriseName")) - if (!$util.isString(message.enterpriseName)) - return "enterpriseName: string expected"; - if (message.rootNodeData != null && message.hasOwnProperty("rootNodeData")) - if (!(message.rootNodeData && typeof message.rootNodeData.length === "number" || $util.isString(message.rootNodeData))) - return "rootNodeData: buffer expected"; - if (message.adminUserData != null && message.hasOwnProperty("adminUserData")) - if (!(message.adminUserData && typeof message.adminUserData.length === "number" || $util.isString(message.adminUserData))) - return "adminUserData: buffer expected"; - if (message.adminName != null && message.hasOwnProperty("adminName")) - if (!$util.isString(message.adminName)) - return "adminName: string expected"; - if (message.roleData != null && message.hasOwnProperty("roleData")) - if (!(message.roleData && typeof message.roleData.length === "number" || $util.isString(message.roleData))) - return "roleData: buffer expected"; - if (message.rsaKeyPair != null && message.hasOwnProperty("rsaKeyPair")) { + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.encryptedTreeKey != null && message.hasOwnProperty('encryptedTreeKey')) + if ( + !( + (message.encryptedTreeKey && typeof message.encryptedTreeKey.length === 'number') || + $util.isString(message.encryptedTreeKey) + ) + ) + return 'encryptedTreeKey: buffer expected'; + if (message.enterpriseName != null && message.hasOwnProperty('enterpriseName')) + if (!$util.isString(message.enterpriseName)) return 'enterpriseName: string expected'; + if (message.rootNodeData != null && message.hasOwnProperty('rootNodeData')) + if ( + !( + (message.rootNodeData && typeof message.rootNodeData.length === 'number') || + $util.isString(message.rootNodeData) + ) + ) + return 'rootNodeData: buffer expected'; + if (message.adminUserData != null && message.hasOwnProperty('adminUserData')) + if ( + !( + (message.adminUserData && typeof message.adminUserData.length === 'number') || + $util.isString(message.adminUserData) + ) + ) + return 'adminUserData: buffer expected'; + if (message.adminName != null && message.hasOwnProperty('adminName')) + if (!$util.isString(message.adminName)) return 'adminName: string expected'; + if (message.roleData != null && message.hasOwnProperty('roleData')) + if ( + !( + (message.roleData && typeof message.roleData.length === 'number') || + $util.isString(message.roleData) + ) + ) + return 'roleData: buffer expected'; + if (message.rsaKeyPair != null && message.hasOwnProperty('rsaKeyPair')) { let error = $root.Enterprise.EnterpriseKeyPairRequest.verify(message.rsaKeyPair); - if (error) - return "rsaKeyPair." + error; + if (error) return 'rsaKeyPair.' + error; } - if (message.numberSeats != null && message.hasOwnProperty("numberSeats")) - if (!$util.isInteger(message.numberSeats)) - return "numberSeats: integer expected"; - if (message.enterpriseType != null && message.hasOwnProperty("enterpriseType")) + if (message.numberSeats != null && message.hasOwnProperty('numberSeats')) + if (!$util.isInteger(message.numberSeats)) return 'numberSeats: integer expected'; + if (message.enterpriseType != null && message.hasOwnProperty('enterpriseType')) switch (message.enterpriseType) { - default: - return "enterpriseType: enum value expected"; - case 0: - case 1: - break; + default: + return 'enterpriseType: enum value expected'; + case 0: + case 1: + break; } - if (message.rolePublicKey != null && message.hasOwnProperty("rolePublicKey")) - if (!(message.rolePublicKey && typeof message.rolePublicKey.length === "number" || $util.isString(message.rolePublicKey))) - return "rolePublicKey: buffer expected"; - if (message.rolePrivateKeyEncryptedWithRoleKey != null && message.hasOwnProperty("rolePrivateKeyEncryptedWithRoleKey")) - if (!(message.rolePrivateKeyEncryptedWithRoleKey && typeof message.rolePrivateKeyEncryptedWithRoleKey.length === "number" || $util.isString(message.rolePrivateKeyEncryptedWithRoleKey))) - return "rolePrivateKeyEncryptedWithRoleKey: buffer expected"; - if (message.roleKeyEncryptedWithTreeKey != null && message.hasOwnProperty("roleKeyEncryptedWithTreeKey")) - if (!(message.roleKeyEncryptedWithTreeKey && typeof message.roleKeyEncryptedWithTreeKey.length === "number" || $util.isString(message.roleKeyEncryptedWithTreeKey))) - return "roleKeyEncryptedWithTreeKey: buffer expected"; - if (message.eccKeyPair != null && message.hasOwnProperty("eccKeyPair")) { + if (message.rolePublicKey != null && message.hasOwnProperty('rolePublicKey')) + if ( + !( + (message.rolePublicKey && typeof message.rolePublicKey.length === 'number') || + $util.isString(message.rolePublicKey) + ) + ) + return 'rolePublicKey: buffer expected'; + if ( + message.rolePrivateKeyEncryptedWithRoleKey != null && + message.hasOwnProperty('rolePrivateKeyEncryptedWithRoleKey') + ) + if ( + !( + (message.rolePrivateKeyEncryptedWithRoleKey && + typeof message.rolePrivateKeyEncryptedWithRoleKey.length === 'number') || + $util.isString(message.rolePrivateKeyEncryptedWithRoleKey) + ) + ) + return 'rolePrivateKeyEncryptedWithRoleKey: buffer expected'; + if (message.roleKeyEncryptedWithTreeKey != null && message.hasOwnProperty('roleKeyEncryptedWithTreeKey')) + if ( + !( + (message.roleKeyEncryptedWithTreeKey && + typeof message.roleKeyEncryptedWithTreeKey.length === 'number') || + $util.isString(message.roleKeyEncryptedWithTreeKey) + ) + ) + return 'roleKeyEncryptedWithTreeKey: buffer expected'; + if (message.eccKeyPair != null && message.hasOwnProperty('eccKeyPair')) { let error = $root.Enterprise.EnterpriseKeyPairRequest.verify(message.eccKeyPair); - if (error) - return "eccKeyPair." + error; - } - if (message.allUsersRoleData != null && message.hasOwnProperty("allUsersRoleData")) - if (!(message.allUsersRoleData && typeof message.allUsersRoleData.length === "number" || $util.isString(message.allUsersRoleData))) - return "allUsersRoleData: buffer expected"; - if (message.roleKeyEncryptedWithUserPublicKey != null && message.hasOwnProperty("roleKeyEncryptedWithUserPublicKey")) - if (!(message.roleKeyEncryptedWithUserPublicKey && typeof message.roleKeyEncryptedWithUserPublicKey.length === "number" || $util.isString(message.roleKeyEncryptedWithUserPublicKey))) - return "roleKeyEncryptedWithUserPublicKey: buffer expected"; - if (message.approverRoleData != null && message.hasOwnProperty("approverRoleData")) - if (!(message.approverRoleData && typeof message.approverRoleData.length === "number" || $util.isString(message.approverRoleData))) - return "approverRoleData: buffer expected"; + if (error) return 'eccKeyPair.' + error; + } + if (message.allUsersRoleData != null && message.hasOwnProperty('allUsersRoleData')) + if ( + !( + (message.allUsersRoleData && typeof message.allUsersRoleData.length === 'number') || + $util.isString(message.allUsersRoleData) + ) + ) + return 'allUsersRoleData: buffer expected'; + if ( + message.roleKeyEncryptedWithUserPublicKey != null && + message.hasOwnProperty('roleKeyEncryptedWithUserPublicKey') + ) + if ( + !( + (message.roleKeyEncryptedWithUserPublicKey && + typeof message.roleKeyEncryptedWithUserPublicKey.length === 'number') || + $util.isString(message.roleKeyEncryptedWithUserPublicKey) + ) + ) + return 'roleKeyEncryptedWithUserPublicKey: buffer expected'; + if (message.approverRoleData != null && message.hasOwnProperty('approverRoleData')) + if ( + !( + (message.approverRoleData && typeof message.approverRoleData.length === 'number') || + $util.isString(message.approverRoleData) + ) + ) + return 'approverRoleData: buffer expected'; return null; }; @@ -58443,91 +60570,126 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.EnterpriseRegistration} EnterpriseRegistration */ EnterpriseRegistration.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.EnterpriseRegistration) - return object; + if (object instanceof $root.Enterprise.EnterpriseRegistration) return object; let message = new $root.Enterprise.EnterpriseRegistration(); if (object.encryptedTreeKey != null) - if (typeof object.encryptedTreeKey === "string") - $util.base64.decode(object.encryptedTreeKey, message.encryptedTreeKey = $util.newBuffer($util.base64.length(object.encryptedTreeKey)), 0); - else if (object.encryptedTreeKey.length >= 0) - message.encryptedTreeKey = object.encryptedTreeKey; - if (object.enterpriseName != null) - message.enterpriseName = String(object.enterpriseName); + if (typeof object.encryptedTreeKey === 'string') + $util.base64.decode( + object.encryptedTreeKey, + (message.encryptedTreeKey = $util.newBuffer($util.base64.length(object.encryptedTreeKey))), + 0 + ); + else if (object.encryptedTreeKey.length >= 0) message.encryptedTreeKey = object.encryptedTreeKey; + if (object.enterpriseName != null) message.enterpriseName = String(object.enterpriseName); if (object.rootNodeData != null) - if (typeof object.rootNodeData === "string") - $util.base64.decode(object.rootNodeData, message.rootNodeData = $util.newBuffer($util.base64.length(object.rootNodeData)), 0); - else if (object.rootNodeData.length >= 0) - message.rootNodeData = object.rootNodeData; + if (typeof object.rootNodeData === 'string') + $util.base64.decode( + object.rootNodeData, + (message.rootNodeData = $util.newBuffer($util.base64.length(object.rootNodeData))), + 0 + ); + else if (object.rootNodeData.length >= 0) message.rootNodeData = object.rootNodeData; if (object.adminUserData != null) - if (typeof object.adminUserData === "string") - $util.base64.decode(object.adminUserData, message.adminUserData = $util.newBuffer($util.base64.length(object.adminUserData)), 0); - else if (object.adminUserData.length >= 0) - message.adminUserData = object.adminUserData; - if (object.adminName != null) - message.adminName = String(object.adminName); + if (typeof object.adminUserData === 'string') + $util.base64.decode( + object.adminUserData, + (message.adminUserData = $util.newBuffer($util.base64.length(object.adminUserData))), + 0 + ); + else if (object.adminUserData.length >= 0) message.adminUserData = object.adminUserData; + if (object.adminName != null) message.adminName = String(object.adminName); if (object.roleData != null) - if (typeof object.roleData === "string") - $util.base64.decode(object.roleData, message.roleData = $util.newBuffer($util.base64.length(object.roleData)), 0); - else if (object.roleData.length >= 0) - message.roleData = object.roleData; + if (typeof object.roleData === 'string') + $util.base64.decode( + object.roleData, + (message.roleData = $util.newBuffer($util.base64.length(object.roleData))), + 0 + ); + else if (object.roleData.length >= 0) message.roleData = object.roleData; if (object.rsaKeyPair != null) { - if (typeof object.rsaKeyPair !== "object") - throw TypeError(".Enterprise.EnterpriseRegistration.rsaKeyPair: object expected"); + if (typeof object.rsaKeyPair !== 'object') + throw TypeError('.Enterprise.EnterpriseRegistration.rsaKeyPair: object expected'); message.rsaKeyPair = $root.Enterprise.EnterpriseKeyPairRequest.fromObject(object.rsaKeyPair); } - if (object.numberSeats != null) - message.numberSeats = object.numberSeats | 0; + if (object.numberSeats != null) message.numberSeats = object.numberSeats | 0; switch (object.enterpriseType) { - default: - if (typeof object.enterpriseType === "number") { - message.enterpriseType = object.enterpriseType; + default: + if (typeof object.enterpriseType === 'number') { + message.enterpriseType = object.enterpriseType; + break; + } + break; + case 'ENTERPRISE_STANDARD': + case 0: + message.enterpriseType = 0; + break; + case 'ENTERPRISE_MSP': + case 1: + message.enterpriseType = 1; break; - } - break; - case "ENTERPRISE_STANDARD": - case 0: - message.enterpriseType = 0; - break; - case "ENTERPRISE_MSP": - case 1: - message.enterpriseType = 1; - break; } if (object.rolePublicKey != null) - if (typeof object.rolePublicKey === "string") - $util.base64.decode(object.rolePublicKey, message.rolePublicKey = $util.newBuffer($util.base64.length(object.rolePublicKey)), 0); - else if (object.rolePublicKey.length >= 0) - message.rolePublicKey = object.rolePublicKey; + if (typeof object.rolePublicKey === 'string') + $util.base64.decode( + object.rolePublicKey, + (message.rolePublicKey = $util.newBuffer($util.base64.length(object.rolePublicKey))), + 0 + ); + else if (object.rolePublicKey.length >= 0) message.rolePublicKey = object.rolePublicKey; if (object.rolePrivateKeyEncryptedWithRoleKey != null) - if (typeof object.rolePrivateKeyEncryptedWithRoleKey === "string") - $util.base64.decode(object.rolePrivateKeyEncryptedWithRoleKey, message.rolePrivateKeyEncryptedWithRoleKey = $util.newBuffer($util.base64.length(object.rolePrivateKeyEncryptedWithRoleKey)), 0); + if (typeof object.rolePrivateKeyEncryptedWithRoleKey === 'string') + $util.base64.decode( + object.rolePrivateKeyEncryptedWithRoleKey, + (message.rolePrivateKeyEncryptedWithRoleKey = $util.newBuffer( + $util.base64.length(object.rolePrivateKeyEncryptedWithRoleKey) + )), + 0 + ); else if (object.rolePrivateKeyEncryptedWithRoleKey.length >= 0) message.rolePrivateKeyEncryptedWithRoleKey = object.rolePrivateKeyEncryptedWithRoleKey; if (object.roleKeyEncryptedWithTreeKey != null) - if (typeof object.roleKeyEncryptedWithTreeKey === "string") - $util.base64.decode(object.roleKeyEncryptedWithTreeKey, message.roleKeyEncryptedWithTreeKey = $util.newBuffer($util.base64.length(object.roleKeyEncryptedWithTreeKey)), 0); + if (typeof object.roleKeyEncryptedWithTreeKey === 'string') + $util.base64.decode( + object.roleKeyEncryptedWithTreeKey, + (message.roleKeyEncryptedWithTreeKey = $util.newBuffer( + $util.base64.length(object.roleKeyEncryptedWithTreeKey) + )), + 0 + ); else if (object.roleKeyEncryptedWithTreeKey.length >= 0) message.roleKeyEncryptedWithTreeKey = object.roleKeyEncryptedWithTreeKey; if (object.eccKeyPair != null) { - if (typeof object.eccKeyPair !== "object") - throw TypeError(".Enterprise.EnterpriseRegistration.eccKeyPair: object expected"); + if (typeof object.eccKeyPair !== 'object') + throw TypeError('.Enterprise.EnterpriseRegistration.eccKeyPair: object expected'); message.eccKeyPair = $root.Enterprise.EnterpriseKeyPairRequest.fromObject(object.eccKeyPair); } if (object.allUsersRoleData != null) - if (typeof object.allUsersRoleData === "string") - $util.base64.decode(object.allUsersRoleData, message.allUsersRoleData = $util.newBuffer($util.base64.length(object.allUsersRoleData)), 0); - else if (object.allUsersRoleData.length >= 0) - message.allUsersRoleData = object.allUsersRoleData; + if (typeof object.allUsersRoleData === 'string') + $util.base64.decode( + object.allUsersRoleData, + (message.allUsersRoleData = $util.newBuffer($util.base64.length(object.allUsersRoleData))), + 0 + ); + else if (object.allUsersRoleData.length >= 0) message.allUsersRoleData = object.allUsersRoleData; if (object.roleKeyEncryptedWithUserPublicKey != null) - if (typeof object.roleKeyEncryptedWithUserPublicKey === "string") - $util.base64.decode(object.roleKeyEncryptedWithUserPublicKey, message.roleKeyEncryptedWithUserPublicKey = $util.newBuffer($util.base64.length(object.roleKeyEncryptedWithUserPublicKey)), 0); + if (typeof object.roleKeyEncryptedWithUserPublicKey === 'string') + $util.base64.decode( + object.roleKeyEncryptedWithUserPublicKey, + (message.roleKeyEncryptedWithUserPublicKey = $util.newBuffer( + $util.base64.length(object.roleKeyEncryptedWithUserPublicKey) + )), + 0 + ); else if (object.roleKeyEncryptedWithUserPublicKey.length >= 0) message.roleKeyEncryptedWithUserPublicKey = object.roleKeyEncryptedWithUserPublicKey; if (object.approverRoleData != null) - if (typeof object.approverRoleData === "string") - $util.base64.decode(object.approverRoleData, message.approverRoleData = $util.newBuffer($util.base64.length(object.approverRoleData)), 0); - else if (object.approverRoleData.length >= 0) - message.approverRoleData = object.approverRoleData; + if (typeof object.approverRoleData === 'string') + $util.base64.decode( + object.approverRoleData, + (message.approverRoleData = $util.newBuffer($util.base64.length(object.approverRoleData))), + 0 + ); + else if (object.approverRoleData.length >= 0) message.approverRoleData = object.approverRoleData; return message; }; @@ -58541,119 +60703,177 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ EnterpriseRegistration.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.encryptedTreeKey = ""; + if (options.bytes === String) object.encryptedTreeKey = ''; else { object.encryptedTreeKey = []; - if (options.bytes !== Array) - object.encryptedTreeKey = $util.newBuffer(object.encryptedTreeKey); + if (options.bytes !== Array) object.encryptedTreeKey = $util.newBuffer(object.encryptedTreeKey); } - object.enterpriseName = ""; - if (options.bytes === String) - object.rootNodeData = ""; + object.enterpriseName = ''; + if (options.bytes === String) object.rootNodeData = ''; else { object.rootNodeData = []; - if (options.bytes !== Array) - object.rootNodeData = $util.newBuffer(object.rootNodeData); + if (options.bytes !== Array) object.rootNodeData = $util.newBuffer(object.rootNodeData); } - if (options.bytes === String) - object.adminUserData = ""; + if (options.bytes === String) object.adminUserData = ''; else { object.adminUserData = []; - if (options.bytes !== Array) - object.adminUserData = $util.newBuffer(object.adminUserData); + if (options.bytes !== Array) object.adminUserData = $util.newBuffer(object.adminUserData); } - object.adminName = ""; - if (options.bytes === String) - object.roleData = ""; + object.adminName = ''; + if (options.bytes === String) object.roleData = ''; else { object.roleData = []; - if (options.bytes !== Array) - object.roleData = $util.newBuffer(object.roleData); + if (options.bytes !== Array) object.roleData = $util.newBuffer(object.roleData); } object.rsaKeyPair = null; object.numberSeats = 0; - object.enterpriseType = options.enums === String ? "ENTERPRISE_STANDARD" : 0; - if (options.bytes === String) - object.rolePublicKey = ""; + object.enterpriseType = options.enums === String ? 'ENTERPRISE_STANDARD' : 0; + if (options.bytes === String) object.rolePublicKey = ''; else { object.rolePublicKey = []; - if (options.bytes !== Array) - object.rolePublicKey = $util.newBuffer(object.rolePublicKey); + if (options.bytes !== Array) object.rolePublicKey = $util.newBuffer(object.rolePublicKey); } - if (options.bytes === String) - object.rolePrivateKeyEncryptedWithRoleKey = ""; + if (options.bytes === String) object.rolePrivateKeyEncryptedWithRoleKey = ''; else { object.rolePrivateKeyEncryptedWithRoleKey = []; if (options.bytes !== Array) - object.rolePrivateKeyEncryptedWithRoleKey = $util.newBuffer(object.rolePrivateKeyEncryptedWithRoleKey); + object.rolePrivateKeyEncryptedWithRoleKey = $util.newBuffer( + object.rolePrivateKeyEncryptedWithRoleKey + ); } - if (options.bytes === String) - object.roleKeyEncryptedWithTreeKey = ""; + if (options.bytes === String) object.roleKeyEncryptedWithTreeKey = ''; else { object.roleKeyEncryptedWithTreeKey = []; if (options.bytes !== Array) object.roleKeyEncryptedWithTreeKey = $util.newBuffer(object.roleKeyEncryptedWithTreeKey); } object.eccKeyPair = null; - if (options.bytes === String) - object.allUsersRoleData = ""; + if (options.bytes === String) object.allUsersRoleData = ''; else { object.allUsersRoleData = []; - if (options.bytes !== Array) - object.allUsersRoleData = $util.newBuffer(object.allUsersRoleData); + if (options.bytes !== Array) object.allUsersRoleData = $util.newBuffer(object.allUsersRoleData); } - if (options.bytes === String) - object.roleKeyEncryptedWithUserPublicKey = ""; + if (options.bytes === String) object.roleKeyEncryptedWithUserPublicKey = ''; else { object.roleKeyEncryptedWithUserPublicKey = []; if (options.bytes !== Array) - object.roleKeyEncryptedWithUserPublicKey = $util.newBuffer(object.roleKeyEncryptedWithUserPublicKey); + object.roleKeyEncryptedWithUserPublicKey = $util.newBuffer( + object.roleKeyEncryptedWithUserPublicKey + ); } - if (options.bytes === String) - object.approverRoleData = ""; + if (options.bytes === String) object.approverRoleData = ''; else { object.approverRoleData = []; - if (options.bytes !== Array) - object.approverRoleData = $util.newBuffer(object.approverRoleData); + if (options.bytes !== Array) object.approverRoleData = $util.newBuffer(object.approverRoleData); } } - if (message.encryptedTreeKey != null && message.hasOwnProperty("encryptedTreeKey")) - object.encryptedTreeKey = options.bytes === String ? $util.base64.encode(message.encryptedTreeKey, 0, message.encryptedTreeKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedTreeKey) : message.encryptedTreeKey; - if (message.enterpriseName != null && message.hasOwnProperty("enterpriseName")) + if (message.encryptedTreeKey != null && message.hasOwnProperty('encryptedTreeKey')) + object.encryptedTreeKey = + options.bytes === String + ? $util.base64.encode(message.encryptedTreeKey, 0, message.encryptedTreeKey.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.encryptedTreeKey) + : message.encryptedTreeKey; + if (message.enterpriseName != null && message.hasOwnProperty('enterpriseName')) object.enterpriseName = message.enterpriseName; - if (message.rootNodeData != null && message.hasOwnProperty("rootNodeData")) - object.rootNodeData = options.bytes === String ? $util.base64.encode(message.rootNodeData, 0, message.rootNodeData.length) : options.bytes === Array ? Array.prototype.slice.call(message.rootNodeData) : message.rootNodeData; - if (message.adminUserData != null && message.hasOwnProperty("adminUserData")) - object.adminUserData = options.bytes === String ? $util.base64.encode(message.adminUserData, 0, message.adminUserData.length) : options.bytes === Array ? Array.prototype.slice.call(message.adminUserData) : message.adminUserData; - if (message.adminName != null && message.hasOwnProperty("adminName")) - object.adminName = message.adminName; - if (message.roleData != null && message.hasOwnProperty("roleData")) - object.roleData = options.bytes === String ? $util.base64.encode(message.roleData, 0, message.roleData.length) : options.bytes === Array ? Array.prototype.slice.call(message.roleData) : message.roleData; - if (message.rsaKeyPair != null && message.hasOwnProperty("rsaKeyPair")) + if (message.rootNodeData != null && message.hasOwnProperty('rootNodeData')) + object.rootNodeData = + options.bytes === String + ? $util.base64.encode(message.rootNodeData, 0, message.rootNodeData.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.rootNodeData) + : message.rootNodeData; + if (message.adminUserData != null && message.hasOwnProperty('adminUserData')) + object.adminUserData = + options.bytes === String + ? $util.base64.encode(message.adminUserData, 0, message.adminUserData.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.adminUserData) + : message.adminUserData; + if (message.adminName != null && message.hasOwnProperty('adminName')) object.adminName = message.adminName; + if (message.roleData != null && message.hasOwnProperty('roleData')) + object.roleData = + options.bytes === String + ? $util.base64.encode(message.roleData, 0, message.roleData.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.roleData) + : message.roleData; + if (message.rsaKeyPair != null && message.hasOwnProperty('rsaKeyPair')) object.rsaKeyPair = $root.Enterprise.EnterpriseKeyPairRequest.toObject(message.rsaKeyPair, options); - if (message.numberSeats != null && message.hasOwnProperty("numberSeats")) + if (message.numberSeats != null && message.hasOwnProperty('numberSeats')) object.numberSeats = message.numberSeats; - if (message.enterpriseType != null && message.hasOwnProperty("enterpriseType")) - object.enterpriseType = options.enums === String ? $root.Enterprise.EnterpriseType[message.enterpriseType] === undefined ? message.enterpriseType : $root.Enterprise.EnterpriseType[message.enterpriseType] : message.enterpriseType; - if (message.rolePublicKey != null && message.hasOwnProperty("rolePublicKey")) - object.rolePublicKey = options.bytes === String ? $util.base64.encode(message.rolePublicKey, 0, message.rolePublicKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.rolePublicKey) : message.rolePublicKey; - if (message.rolePrivateKeyEncryptedWithRoleKey != null && message.hasOwnProperty("rolePrivateKeyEncryptedWithRoleKey")) - object.rolePrivateKeyEncryptedWithRoleKey = options.bytes === String ? $util.base64.encode(message.rolePrivateKeyEncryptedWithRoleKey, 0, message.rolePrivateKeyEncryptedWithRoleKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.rolePrivateKeyEncryptedWithRoleKey) : message.rolePrivateKeyEncryptedWithRoleKey; - if (message.roleKeyEncryptedWithTreeKey != null && message.hasOwnProperty("roleKeyEncryptedWithTreeKey")) - object.roleKeyEncryptedWithTreeKey = options.bytes === String ? $util.base64.encode(message.roleKeyEncryptedWithTreeKey, 0, message.roleKeyEncryptedWithTreeKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.roleKeyEncryptedWithTreeKey) : message.roleKeyEncryptedWithTreeKey; - if (message.eccKeyPair != null && message.hasOwnProperty("eccKeyPair")) + if (message.enterpriseType != null && message.hasOwnProperty('enterpriseType')) + object.enterpriseType = + options.enums === String + ? $root.Enterprise.EnterpriseType[message.enterpriseType] === undefined + ? message.enterpriseType + : $root.Enterprise.EnterpriseType[message.enterpriseType] + : message.enterpriseType; + if (message.rolePublicKey != null && message.hasOwnProperty('rolePublicKey')) + object.rolePublicKey = + options.bytes === String + ? $util.base64.encode(message.rolePublicKey, 0, message.rolePublicKey.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.rolePublicKey) + : message.rolePublicKey; + if ( + message.rolePrivateKeyEncryptedWithRoleKey != null && + message.hasOwnProperty('rolePrivateKeyEncryptedWithRoleKey') + ) + object.rolePrivateKeyEncryptedWithRoleKey = + options.bytes === String + ? $util.base64.encode( + message.rolePrivateKeyEncryptedWithRoleKey, + 0, + message.rolePrivateKeyEncryptedWithRoleKey.length + ) + : options.bytes === Array + ? Array.prototype.slice.call(message.rolePrivateKeyEncryptedWithRoleKey) + : message.rolePrivateKeyEncryptedWithRoleKey; + if (message.roleKeyEncryptedWithTreeKey != null && message.hasOwnProperty('roleKeyEncryptedWithTreeKey')) + object.roleKeyEncryptedWithTreeKey = + options.bytes === String + ? $util.base64.encode( + message.roleKeyEncryptedWithTreeKey, + 0, + message.roleKeyEncryptedWithTreeKey.length + ) + : options.bytes === Array + ? Array.prototype.slice.call(message.roleKeyEncryptedWithTreeKey) + : message.roleKeyEncryptedWithTreeKey; + if (message.eccKeyPair != null && message.hasOwnProperty('eccKeyPair')) object.eccKeyPair = $root.Enterprise.EnterpriseKeyPairRequest.toObject(message.eccKeyPair, options); - if (message.allUsersRoleData != null && message.hasOwnProperty("allUsersRoleData")) - object.allUsersRoleData = options.bytes === String ? $util.base64.encode(message.allUsersRoleData, 0, message.allUsersRoleData.length) : options.bytes === Array ? Array.prototype.slice.call(message.allUsersRoleData) : message.allUsersRoleData; - if (message.roleKeyEncryptedWithUserPublicKey != null && message.hasOwnProperty("roleKeyEncryptedWithUserPublicKey")) - object.roleKeyEncryptedWithUserPublicKey = options.bytes === String ? $util.base64.encode(message.roleKeyEncryptedWithUserPublicKey, 0, message.roleKeyEncryptedWithUserPublicKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.roleKeyEncryptedWithUserPublicKey) : message.roleKeyEncryptedWithUserPublicKey; - if (message.approverRoleData != null && message.hasOwnProperty("approverRoleData")) - object.approverRoleData = options.bytes === String ? $util.base64.encode(message.approverRoleData, 0, message.approverRoleData.length) : options.bytes === Array ? Array.prototype.slice.call(message.approverRoleData) : message.approverRoleData; + if (message.allUsersRoleData != null && message.hasOwnProperty('allUsersRoleData')) + object.allUsersRoleData = + options.bytes === String + ? $util.base64.encode(message.allUsersRoleData, 0, message.allUsersRoleData.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.allUsersRoleData) + : message.allUsersRoleData; + if ( + message.roleKeyEncryptedWithUserPublicKey != null && + message.hasOwnProperty('roleKeyEncryptedWithUserPublicKey') + ) + object.roleKeyEncryptedWithUserPublicKey = + options.bytes === String + ? $util.base64.encode( + message.roleKeyEncryptedWithUserPublicKey, + 0, + message.roleKeyEncryptedWithUserPublicKey.length + ) + : options.bytes === Array + ? Array.prototype.slice.call(message.roleKeyEncryptedWithUserPublicKey) + : message.roleKeyEncryptedWithUserPublicKey; + if (message.approverRoleData != null && message.hasOwnProperty('approverRoleData')) + object.approverRoleData = + options.bytes === String + ? $util.base64.encode(message.approverRoleData, 0, message.approverRoleData.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.approverRoleData) + : message.approverRoleData; return object; }; @@ -58678,16 +60898,15 @@ export const Enterprise = $root.Enterprise = (() => { */ EnterpriseRegistration.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.EnterpriseRegistration"; + return typeUrlPrefix + '/Enterprise.EnterpriseRegistration'; }; return EnterpriseRegistration; })(); - Enterprise.DomainPasswordRulesRequest = (function() { - + Enterprise.DomainPasswordRulesRequest = (function () { /** * Properties of a DomainPasswordRulesRequest. * @memberof Enterprise @@ -58707,8 +60926,7 @@ export const Enterprise = $root.Enterprise = (() => { function DomainPasswordRulesRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -58717,7 +60935,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.DomainPasswordRulesRequest * @instance */ - DomainPasswordRulesRequest.prototype.username = ""; + DomainPasswordRulesRequest.prototype.username = ''; /** * DomainPasswordRulesRequest verificationCode. @@ -58725,7 +60943,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.DomainPasswordRulesRequest * @instance */ - DomainPasswordRulesRequest.prototype.verificationCode = ""; + DomainPasswordRulesRequest.prototype.verificationCode = ''; /** * Creates a new DomainPasswordRulesRequest instance using the specified properties. @@ -58749,12 +60967,11 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ DomainPasswordRulesRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.username != null && Object.hasOwnProperty.call(message, "username")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.username); - if (message.verificationCode != null && Object.hasOwnProperty.call(message, "verificationCode")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.verificationCode); + if (!writer) writer = $Writer.create(); + if (message.username != null && Object.hasOwnProperty.call(message, 'username')) + writer.uint32(/* id 1, wireType 2 =*/ 10).string(message.username); + if (message.verificationCode != null && Object.hasOwnProperty.call(message, 'verificationCode')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.verificationCode); return writer; }; @@ -58783,23 +61000,23 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ DomainPasswordRulesRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.DomainPasswordRulesRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.DomainPasswordRulesRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.username = reader.string(); break; } - case 2: { + case 2: { message.verificationCode = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -58816,8 +61033,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ DomainPasswordRulesRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -58830,14 +61046,11 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ DomainPasswordRulesRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.username != null && message.hasOwnProperty("username")) - if (!$util.isString(message.username)) - return "username: string expected"; - if (message.verificationCode != null && message.hasOwnProperty("verificationCode")) - if (!$util.isString(message.verificationCode)) - return "verificationCode: string expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.username != null && message.hasOwnProperty('username')) + if (!$util.isString(message.username)) return 'username: string expected'; + if (message.verificationCode != null && message.hasOwnProperty('verificationCode')) + if (!$util.isString(message.verificationCode)) return 'verificationCode: string expected'; return null; }; @@ -58850,13 +61063,10 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.DomainPasswordRulesRequest} DomainPasswordRulesRequest */ DomainPasswordRulesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.DomainPasswordRulesRequest) - return object; + if (object instanceof $root.Enterprise.DomainPasswordRulesRequest) return object; let message = new $root.Enterprise.DomainPasswordRulesRequest(); - if (object.username != null) - message.username = String(object.username); - if (object.verificationCode != null) - message.verificationCode = String(object.verificationCode); + if (object.username != null) message.username = String(object.username); + if (object.verificationCode != null) message.verificationCode = String(object.verificationCode); return message; }; @@ -58870,16 +61080,14 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ DomainPasswordRulesRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - object.username = ""; - object.verificationCode = ""; + object.username = ''; + object.verificationCode = ''; } - if (message.username != null && message.hasOwnProperty("username")) - object.username = message.username; - if (message.verificationCode != null && message.hasOwnProperty("verificationCode")) + if (message.username != null && message.hasOwnProperty('username')) object.username = message.username; + if (message.verificationCode != null && message.hasOwnProperty('verificationCode')) object.verificationCode = message.verificationCode; return object; }; @@ -58905,16 +61113,15 @@ export const Enterprise = $root.Enterprise = (() => { */ DomainPasswordRulesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.DomainPasswordRulesRequest"; + return typeUrlPrefix + '/Enterprise.DomainPasswordRulesRequest'; }; return DomainPasswordRulesRequest; })(); - Enterprise.DomainPasswordRulesFields = (function() { - + Enterprise.DomainPasswordRulesFields = (function () { /** * Properties of a DomainPasswordRulesFields. * @memberof Enterprise @@ -58936,8 +61143,7 @@ export const Enterprise = $root.Enterprise = (() => { function DomainPasswordRulesFields(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -58946,7 +61152,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.DomainPasswordRulesFields * @instance */ - DomainPasswordRulesFields.prototype.type = ""; + DomainPasswordRulesFields.prototype.type = ''; /** * DomainPasswordRulesFields minimum. @@ -58994,16 +61200,15 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ DomainPasswordRulesFields.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.type != null && Object.hasOwnProperty.call(message, "type")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.type); - if (message.minimum != null && Object.hasOwnProperty.call(message, "minimum")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.minimum); - if (message.maximum != null && Object.hasOwnProperty.call(message, "maximum")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.maximum); - if (message.allowed != null && Object.hasOwnProperty.call(message, "allowed")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.allowed); + if (!writer) writer = $Writer.create(); + if (message.type != null && Object.hasOwnProperty.call(message, 'type')) + writer.uint32(/* id 1, wireType 2 =*/ 10).string(message.type); + if (message.minimum != null && Object.hasOwnProperty.call(message, 'minimum')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int32(message.minimum); + if (message.maximum != null && Object.hasOwnProperty.call(message, 'maximum')) + writer.uint32(/* id 3, wireType 0 =*/ 24).int32(message.maximum); + if (message.allowed != null && Object.hasOwnProperty.call(message, 'allowed')) + writer.uint32(/* id 4, wireType 0 =*/ 32).bool(message.allowed); return writer; }; @@ -59032,31 +61237,31 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ DomainPasswordRulesFields.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.DomainPasswordRulesFields(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.DomainPasswordRulesFields(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.type = reader.string(); break; } - case 2: { + case 2: { message.minimum = reader.int32(); break; } - case 3: { + case 3: { message.maximum = reader.int32(); break; } - case 4: { + case 4: { message.allowed = reader.bool(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -59073,8 +61278,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ DomainPasswordRulesFields.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -59087,20 +61291,15 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ DomainPasswordRulesFields.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.type != null && message.hasOwnProperty("type")) - if (!$util.isString(message.type)) - return "type: string expected"; - if (message.minimum != null && message.hasOwnProperty("minimum")) - if (!$util.isInteger(message.minimum)) - return "minimum: integer expected"; - if (message.maximum != null && message.hasOwnProperty("maximum")) - if (!$util.isInteger(message.maximum)) - return "maximum: integer expected"; - if (message.allowed != null && message.hasOwnProperty("allowed")) - if (typeof message.allowed !== "boolean") - return "allowed: boolean expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.type != null && message.hasOwnProperty('type')) + if (!$util.isString(message.type)) return 'type: string expected'; + if (message.minimum != null && message.hasOwnProperty('minimum')) + if (!$util.isInteger(message.minimum)) return 'minimum: integer expected'; + if (message.maximum != null && message.hasOwnProperty('maximum')) + if (!$util.isInteger(message.maximum)) return 'maximum: integer expected'; + if (message.allowed != null && message.hasOwnProperty('allowed')) + if (typeof message.allowed !== 'boolean') return 'allowed: boolean expected'; return null; }; @@ -59113,17 +61312,12 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.DomainPasswordRulesFields} DomainPasswordRulesFields */ DomainPasswordRulesFields.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.DomainPasswordRulesFields) - return object; + if (object instanceof $root.Enterprise.DomainPasswordRulesFields) return object; let message = new $root.Enterprise.DomainPasswordRulesFields(); - if (object.type != null) - message.type = String(object.type); - if (object.minimum != null) - message.minimum = object.minimum | 0; - if (object.maximum != null) - message.maximum = object.maximum | 0; - if (object.allowed != null) - message.allowed = Boolean(object.allowed); + if (object.type != null) message.type = String(object.type); + if (object.minimum != null) message.minimum = object.minimum | 0; + if (object.maximum != null) message.maximum = object.maximum | 0; + if (object.allowed != null) message.allowed = Boolean(object.allowed); return message; }; @@ -59137,23 +61331,18 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ DomainPasswordRulesFields.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - object.type = ""; + object.type = ''; object.minimum = 0; object.maximum = 0; object.allowed = false; } - if (message.type != null && message.hasOwnProperty("type")) - object.type = message.type; - if (message.minimum != null && message.hasOwnProperty("minimum")) - object.minimum = message.minimum; - if (message.maximum != null && message.hasOwnProperty("maximum")) - object.maximum = message.maximum; - if (message.allowed != null && message.hasOwnProperty("allowed")) - object.allowed = message.allowed; + if (message.type != null && message.hasOwnProperty('type')) object.type = message.type; + if (message.minimum != null && message.hasOwnProperty('minimum')) object.minimum = message.minimum; + if (message.maximum != null && message.hasOwnProperty('maximum')) object.maximum = message.maximum; + if (message.allowed != null && message.hasOwnProperty('allowed')) object.allowed = message.allowed; return object; }; @@ -59178,16 +61367,15 @@ export const Enterprise = $root.Enterprise = (() => { */ DomainPasswordRulesFields.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.DomainPasswordRulesFields"; + return typeUrlPrefix + '/Enterprise.DomainPasswordRulesFields'; }; return DomainPasswordRulesFields; })(); - Enterprise.LoginToMcRequest = (function() { - + Enterprise.LoginToMcRequest = (function () { /** * Properties of a LoginToMcRequest. * @memberof Enterprise @@ -59207,8 +61395,7 @@ export const Enterprise = $root.Enterprise = (() => { function LoginToMcRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -59249,12 +61436,11 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ LoginToMcRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.mcEnterpriseId != null && Object.hasOwnProperty.call(message, "mcEnterpriseId")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.mcEnterpriseId); - if (message.messageSessionUid != null && Object.hasOwnProperty.call(message, "messageSessionUid")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.messageSessionUid); + if (!writer) writer = $Writer.create(); + if (message.mcEnterpriseId != null && Object.hasOwnProperty.call(message, 'mcEnterpriseId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int32(message.mcEnterpriseId); + if (message.messageSessionUid != null && Object.hasOwnProperty.call(message, 'messageSessionUid')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.messageSessionUid); return writer; }; @@ -59283,23 +61469,23 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ LoginToMcRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.LoginToMcRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.LoginToMcRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.mcEnterpriseId = reader.int32(); break; } - case 2: { + case 2: { message.messageSessionUid = reader.bytes(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -59316,8 +61502,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ LoginToMcRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -59330,14 +61515,17 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ LoginToMcRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.mcEnterpriseId != null && message.hasOwnProperty("mcEnterpriseId")) - if (!$util.isInteger(message.mcEnterpriseId)) - return "mcEnterpriseId: integer expected"; - if (message.messageSessionUid != null && message.hasOwnProperty("messageSessionUid")) - if (!(message.messageSessionUid && typeof message.messageSessionUid.length === "number" || $util.isString(message.messageSessionUid))) - return "messageSessionUid: buffer expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.mcEnterpriseId != null && message.hasOwnProperty('mcEnterpriseId')) + if (!$util.isInteger(message.mcEnterpriseId)) return 'mcEnterpriseId: integer expected'; + if (message.messageSessionUid != null && message.hasOwnProperty('messageSessionUid')) + if ( + !( + (message.messageSessionUid && typeof message.messageSessionUid.length === 'number') || + $util.isString(message.messageSessionUid) + ) + ) + return 'messageSessionUid: buffer expected'; return null; }; @@ -59350,16 +61538,17 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.LoginToMcRequest} LoginToMcRequest */ LoginToMcRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.LoginToMcRequest) - return object; + if (object instanceof $root.Enterprise.LoginToMcRequest) return object; let message = new $root.Enterprise.LoginToMcRequest(); - if (object.mcEnterpriseId != null) - message.mcEnterpriseId = object.mcEnterpriseId | 0; + if (object.mcEnterpriseId != null) message.mcEnterpriseId = object.mcEnterpriseId | 0; if (object.messageSessionUid != null) - if (typeof object.messageSessionUid === "string") - $util.base64.decode(object.messageSessionUid, message.messageSessionUid = $util.newBuffer($util.base64.length(object.messageSessionUid)), 0); - else if (object.messageSessionUid.length >= 0) - message.messageSessionUid = object.messageSessionUid; + if (typeof object.messageSessionUid === 'string') + $util.base64.decode( + object.messageSessionUid, + (message.messageSessionUid = $util.newBuffer($util.base64.length(object.messageSessionUid))), + 0 + ); + else if (object.messageSessionUid.length >= 0) message.messageSessionUid = object.messageSessionUid; return message; }; @@ -59373,23 +61562,25 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ LoginToMcRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { object.mcEnterpriseId = 0; - if (options.bytes === String) - object.messageSessionUid = ""; + if (options.bytes === String) object.messageSessionUid = ''; else { object.messageSessionUid = []; - if (options.bytes !== Array) - object.messageSessionUid = $util.newBuffer(object.messageSessionUid); + if (options.bytes !== Array) object.messageSessionUid = $util.newBuffer(object.messageSessionUid); } } - if (message.mcEnterpriseId != null && message.hasOwnProperty("mcEnterpriseId")) + if (message.mcEnterpriseId != null && message.hasOwnProperty('mcEnterpriseId')) object.mcEnterpriseId = message.mcEnterpriseId; - if (message.messageSessionUid != null && message.hasOwnProperty("messageSessionUid")) - object.messageSessionUid = options.bytes === String ? $util.base64.encode(message.messageSessionUid, 0, message.messageSessionUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.messageSessionUid) : message.messageSessionUid; + if (message.messageSessionUid != null && message.hasOwnProperty('messageSessionUid')) + object.messageSessionUid = + options.bytes === String + ? $util.base64.encode(message.messageSessionUid, 0, message.messageSessionUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.messageSessionUid) + : message.messageSessionUid; return object; }; @@ -59414,16 +61605,15 @@ export const Enterprise = $root.Enterprise = (() => { */ LoginToMcRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.LoginToMcRequest"; + return typeUrlPrefix + '/Enterprise.LoginToMcRequest'; }; return LoginToMcRequest; })(); - Enterprise.LoginToMcResponse = (function() { - + Enterprise.LoginToMcResponse = (function () { /** * Properties of a LoginToMcResponse. * @memberof Enterprise @@ -59443,8 +61633,7 @@ export const Enterprise = $root.Enterprise = (() => { function LoginToMcResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -59461,7 +61650,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.LoginToMcResponse * @instance */ - LoginToMcResponse.prototype.encryptedTreeKey = ""; + LoginToMcResponse.prototype.encryptedTreeKey = ''; /** * Creates a new LoginToMcResponse instance using the specified properties. @@ -59485,12 +61674,11 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ LoginToMcResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.encryptedSessionToken != null && Object.hasOwnProperty.call(message, "encryptedSessionToken")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.encryptedSessionToken); - if (message.encryptedTreeKey != null && Object.hasOwnProperty.call(message, "encryptedTreeKey")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.encryptedTreeKey); + if (!writer) writer = $Writer.create(); + if (message.encryptedSessionToken != null && Object.hasOwnProperty.call(message, 'encryptedSessionToken')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.encryptedSessionToken); + if (message.encryptedTreeKey != null && Object.hasOwnProperty.call(message, 'encryptedTreeKey')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.encryptedTreeKey); return writer; }; @@ -59519,23 +61707,23 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ LoginToMcResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.LoginToMcResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.LoginToMcResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.encryptedSessionToken = reader.bytes(); break; } - case 2: { + case 2: { message.encryptedTreeKey = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -59552,8 +61740,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ LoginToMcResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -59566,14 +61753,17 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ LoginToMcResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.encryptedSessionToken != null && message.hasOwnProperty("encryptedSessionToken")) - if (!(message.encryptedSessionToken && typeof message.encryptedSessionToken.length === "number" || $util.isString(message.encryptedSessionToken))) - return "encryptedSessionToken: buffer expected"; - if (message.encryptedTreeKey != null && message.hasOwnProperty("encryptedTreeKey")) - if (!$util.isString(message.encryptedTreeKey)) - return "encryptedTreeKey: string expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.encryptedSessionToken != null && message.hasOwnProperty('encryptedSessionToken')) + if ( + !( + (message.encryptedSessionToken && typeof message.encryptedSessionToken.length === 'number') || + $util.isString(message.encryptedSessionToken) + ) + ) + return 'encryptedSessionToken: buffer expected'; + if (message.encryptedTreeKey != null && message.hasOwnProperty('encryptedTreeKey')) + if (!$util.isString(message.encryptedTreeKey)) return 'encryptedTreeKey: string expected'; return null; }; @@ -59586,16 +61776,20 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.LoginToMcResponse} LoginToMcResponse */ LoginToMcResponse.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.LoginToMcResponse) - return object; + if (object instanceof $root.Enterprise.LoginToMcResponse) return object; let message = new $root.Enterprise.LoginToMcResponse(); if (object.encryptedSessionToken != null) - if (typeof object.encryptedSessionToken === "string") - $util.base64.decode(object.encryptedSessionToken, message.encryptedSessionToken = $util.newBuffer($util.base64.length(object.encryptedSessionToken)), 0); + if (typeof object.encryptedSessionToken === 'string') + $util.base64.decode( + object.encryptedSessionToken, + (message.encryptedSessionToken = $util.newBuffer( + $util.base64.length(object.encryptedSessionToken) + )), + 0 + ); else if (object.encryptedSessionToken.length >= 0) message.encryptedSessionToken = object.encryptedSessionToken; - if (object.encryptedTreeKey != null) - message.encryptedTreeKey = String(object.encryptedTreeKey); + if (object.encryptedTreeKey != null) message.encryptedTreeKey = String(object.encryptedTreeKey); return message; }; @@ -59609,22 +61803,25 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ LoginToMcResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.encryptedSessionToken = ""; + if (options.bytes === String) object.encryptedSessionToken = ''; else { object.encryptedSessionToken = []; if (options.bytes !== Array) object.encryptedSessionToken = $util.newBuffer(object.encryptedSessionToken); } - object.encryptedTreeKey = ""; + object.encryptedTreeKey = ''; } - if (message.encryptedSessionToken != null && message.hasOwnProperty("encryptedSessionToken")) - object.encryptedSessionToken = options.bytes === String ? $util.base64.encode(message.encryptedSessionToken, 0, message.encryptedSessionToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedSessionToken) : message.encryptedSessionToken; - if (message.encryptedTreeKey != null && message.hasOwnProperty("encryptedTreeKey")) + if (message.encryptedSessionToken != null && message.hasOwnProperty('encryptedSessionToken')) + object.encryptedSessionToken = + options.bytes === String + ? $util.base64.encode(message.encryptedSessionToken, 0, message.encryptedSessionToken.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.encryptedSessionToken) + : message.encryptedSessionToken; + if (message.encryptedTreeKey != null && message.hasOwnProperty('encryptedTreeKey')) object.encryptedTreeKey = message.encryptedTreeKey; return object; }; @@ -59650,16 +61847,15 @@ export const Enterprise = $root.Enterprise = (() => { */ LoginToMcResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.LoginToMcResponse"; + return typeUrlPrefix + '/Enterprise.LoginToMcResponse'; }; return LoginToMcResponse; })(); - Enterprise.DomainPasswordRulesResponse = (function() { - + Enterprise.DomainPasswordRulesResponse = (function () { /** * Properties of a DomainPasswordRulesResponse. * @memberof Enterprise @@ -59679,8 +61875,7 @@ export const Enterprise = $root.Enterprise = (() => { this.domainPasswordRulesFields = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -59713,11 +61908,13 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ DomainPasswordRulesResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.domainPasswordRulesFields != null && message.domainPasswordRulesFields.length) for (let i = 0; i < message.domainPasswordRulesFields.length; ++i) - $root.Enterprise.DomainPasswordRulesFields.encode(message.domainPasswordRulesFields[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.Enterprise.DomainPasswordRulesFields.encode( + message.domainPasswordRulesFields[i], + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); return writer; }; @@ -59746,21 +61943,23 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ DomainPasswordRulesResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.DomainPasswordRulesResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.DomainPasswordRulesResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { if (!(message.domainPasswordRulesFields && message.domainPasswordRulesFields.length)) message.domainPasswordRulesFields = []; - message.domainPasswordRulesFields.push($root.Enterprise.DomainPasswordRulesFields.decode(reader, reader.uint32())); + message.domainPasswordRulesFields.push( + $root.Enterprise.DomainPasswordRulesFields.decode(reader, reader.uint32()) + ); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -59777,8 +61976,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ DomainPasswordRulesResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -59791,15 +61989,13 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ DomainPasswordRulesResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.domainPasswordRulesFields != null && message.hasOwnProperty("domainPasswordRulesFields")) { + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.domainPasswordRulesFields != null && message.hasOwnProperty('domainPasswordRulesFields')) { if (!Array.isArray(message.domainPasswordRulesFields)) - return "domainPasswordRulesFields: array expected"; + return 'domainPasswordRulesFields: array expected'; for (let i = 0; i < message.domainPasswordRulesFields.length; ++i) { let error = $root.Enterprise.DomainPasswordRulesFields.verify(message.domainPasswordRulesFields[i]); - if (error) - return "domainPasswordRulesFields." + error; + if (error) return 'domainPasswordRulesFields.' + error; } } return null; @@ -59814,17 +62010,22 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.DomainPasswordRulesResponse} DomainPasswordRulesResponse */ DomainPasswordRulesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.DomainPasswordRulesResponse) - return object; + if (object instanceof $root.Enterprise.DomainPasswordRulesResponse) return object; let message = new $root.Enterprise.DomainPasswordRulesResponse(); if (object.domainPasswordRulesFields) { if (!Array.isArray(object.domainPasswordRulesFields)) - throw TypeError(".Enterprise.DomainPasswordRulesResponse.domainPasswordRulesFields: array expected"); + throw TypeError( + '.Enterprise.DomainPasswordRulesResponse.domainPasswordRulesFields: array expected' + ); message.domainPasswordRulesFields = []; for (let i = 0; i < object.domainPasswordRulesFields.length; ++i) { - if (typeof object.domainPasswordRulesFields[i] !== "object") - throw TypeError(".Enterprise.DomainPasswordRulesResponse.domainPasswordRulesFields: object expected"); - message.domainPasswordRulesFields[i] = $root.Enterprise.DomainPasswordRulesFields.fromObject(object.domainPasswordRulesFields[i]); + if (typeof object.domainPasswordRulesFields[i] !== 'object') + throw TypeError( + '.Enterprise.DomainPasswordRulesResponse.domainPasswordRulesFields: object expected' + ); + message.domainPasswordRulesFields[i] = $root.Enterprise.DomainPasswordRulesFields.fromObject( + object.domainPasswordRulesFields[i] + ); } } return message; @@ -59840,15 +62041,16 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ DomainPasswordRulesResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.domainPasswordRulesFields = []; + if (options.arrays || options.defaults) object.domainPasswordRulesFields = []; if (message.domainPasswordRulesFields && message.domainPasswordRulesFields.length) { object.domainPasswordRulesFields = []; for (let j = 0; j < message.domainPasswordRulesFields.length; ++j) - object.domainPasswordRulesFields[j] = $root.Enterprise.DomainPasswordRulesFields.toObject(message.domainPasswordRulesFields[j], options); + object.domainPasswordRulesFields[j] = $root.Enterprise.DomainPasswordRulesFields.toObject( + message.domainPasswordRulesFields[j], + options + ); } return object; }; @@ -59874,16 +62076,15 @@ export const Enterprise = $root.Enterprise = (() => { */ DomainPasswordRulesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.DomainPasswordRulesResponse"; + return typeUrlPrefix + '/Enterprise.DomainPasswordRulesResponse'; }; return DomainPasswordRulesResponse; })(); - Enterprise.ApproveUserDeviceRequest = (function() { - + Enterprise.ApproveUserDeviceRequest = (function () { /** * Properties of an ApproveUserDeviceRequest. * @memberof Enterprise @@ -59905,8 +62106,7 @@ export const Enterprise = $root.Enterprise = (() => { function ApproveUserDeviceRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -59915,7 +62115,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.ApproveUserDeviceRequest * @instance */ - ApproveUserDeviceRequest.prototype.enterpriseUserId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + ApproveUserDeviceRequest.prototype.enterpriseUserId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * ApproveUserDeviceRequest encryptedDeviceToken. @@ -59963,16 +62163,15 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ ApproveUserDeviceRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "enterpriseUserId")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.enterpriseUserId); - if (message.encryptedDeviceToken != null && Object.hasOwnProperty.call(message, "encryptedDeviceToken")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.encryptedDeviceToken); - if (message.encryptedDeviceDataKey != null && Object.hasOwnProperty.call(message, "encryptedDeviceDataKey")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.encryptedDeviceDataKey); - if (message.denyApproval != null && Object.hasOwnProperty.call(message, "denyApproval")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.denyApproval); + if (!writer) writer = $Writer.create(); + if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, 'enterpriseUserId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int64(message.enterpriseUserId); + if (message.encryptedDeviceToken != null && Object.hasOwnProperty.call(message, 'encryptedDeviceToken')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.encryptedDeviceToken); + if (message.encryptedDeviceDataKey != null && Object.hasOwnProperty.call(message, 'encryptedDeviceDataKey')) + writer.uint32(/* id 3, wireType 2 =*/ 26).bytes(message.encryptedDeviceDataKey); + if (message.denyApproval != null && Object.hasOwnProperty.call(message, 'denyApproval')) + writer.uint32(/* id 4, wireType 0 =*/ 32).bool(message.denyApproval); return writer; }; @@ -60001,31 +62200,31 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ApproveUserDeviceRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.ApproveUserDeviceRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.ApproveUserDeviceRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.enterpriseUserId = reader.int64(); break; } - case 2: { + case 2: { message.encryptedDeviceToken = reader.bytes(); break; } - case 3: { + case 3: { message.encryptedDeviceDataKey = reader.bytes(); break; } - case 4: { + case 4: { message.denyApproval = reader.bool(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -60042,8 +62241,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ApproveUserDeviceRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -60056,20 +62254,35 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ ApproveUserDeviceRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (!$util.isInteger(message.enterpriseUserId) && !(message.enterpriseUserId && $util.isInteger(message.enterpriseUserId.low) && $util.isInteger(message.enterpriseUserId.high))) - return "enterpriseUserId: integer|Long expected"; - if (message.encryptedDeviceToken != null && message.hasOwnProperty("encryptedDeviceToken")) - if (!(message.encryptedDeviceToken && typeof message.encryptedDeviceToken.length === "number" || $util.isString(message.encryptedDeviceToken))) - return "encryptedDeviceToken: buffer expected"; - if (message.encryptedDeviceDataKey != null && message.hasOwnProperty("encryptedDeviceDataKey")) - if (!(message.encryptedDeviceDataKey && typeof message.encryptedDeviceDataKey.length === "number" || $util.isString(message.encryptedDeviceDataKey))) - return "encryptedDeviceDataKey: buffer expected"; - if (message.denyApproval != null && message.hasOwnProperty("denyApproval")) - if (typeof message.denyApproval !== "boolean") - return "denyApproval: boolean expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.enterpriseUserId != null && message.hasOwnProperty('enterpriseUserId')) + if ( + !$util.isInteger(message.enterpriseUserId) && + !( + message.enterpriseUserId && + $util.isInteger(message.enterpriseUserId.low) && + $util.isInteger(message.enterpriseUserId.high) + ) + ) + return 'enterpriseUserId: integer|Long expected'; + if (message.encryptedDeviceToken != null && message.hasOwnProperty('encryptedDeviceToken')) + if ( + !( + (message.encryptedDeviceToken && typeof message.encryptedDeviceToken.length === 'number') || + $util.isString(message.encryptedDeviceToken) + ) + ) + return 'encryptedDeviceToken: buffer expected'; + if (message.encryptedDeviceDataKey != null && message.hasOwnProperty('encryptedDeviceDataKey')) + if ( + !( + (message.encryptedDeviceDataKey && typeof message.encryptedDeviceDataKey.length === 'number') || + $util.isString(message.encryptedDeviceDataKey) + ) + ) + return 'encryptedDeviceDataKey: buffer expected'; + if (message.denyApproval != null && message.hasOwnProperty('denyApproval')) + if (typeof message.denyApproval !== 'boolean') return 'denyApproval: boolean expected'; return null; }; @@ -60082,30 +62295,43 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.ApproveUserDeviceRequest} ApproveUserDeviceRequest */ ApproveUserDeviceRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.ApproveUserDeviceRequest) - return object; + if (object instanceof $root.Enterprise.ApproveUserDeviceRequest) return object; let message = new $root.Enterprise.ApproveUserDeviceRequest(); if (object.enterpriseUserId != null) if ($util.Long) (message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId)).unsigned = false; - else if (typeof object.enterpriseUserId === "string") + else if (typeof object.enterpriseUserId === 'string') message.enterpriseUserId = parseInt(object.enterpriseUserId, 10); - else if (typeof object.enterpriseUserId === "number") + else if (typeof object.enterpriseUserId === 'number') message.enterpriseUserId = object.enterpriseUserId; - else if (typeof object.enterpriseUserId === "object") - message.enterpriseUserId = new $util.LongBits(object.enterpriseUserId.low >>> 0, object.enterpriseUserId.high >>> 0).toNumber(); + else if (typeof object.enterpriseUserId === 'object') + message.enterpriseUserId = new $util.LongBits( + object.enterpriseUserId.low >>> 0, + object.enterpriseUserId.high >>> 0 + ).toNumber(); if (object.encryptedDeviceToken != null) - if (typeof object.encryptedDeviceToken === "string") - $util.base64.decode(object.encryptedDeviceToken, message.encryptedDeviceToken = $util.newBuffer($util.base64.length(object.encryptedDeviceToken)), 0); + if (typeof object.encryptedDeviceToken === 'string') + $util.base64.decode( + object.encryptedDeviceToken, + (message.encryptedDeviceToken = $util.newBuffer( + $util.base64.length(object.encryptedDeviceToken) + )), + 0 + ); else if (object.encryptedDeviceToken.length >= 0) message.encryptedDeviceToken = object.encryptedDeviceToken; if (object.encryptedDeviceDataKey != null) - if (typeof object.encryptedDeviceDataKey === "string") - $util.base64.decode(object.encryptedDeviceDataKey, message.encryptedDeviceDataKey = $util.newBuffer($util.base64.length(object.encryptedDeviceDataKey)), 0); + if (typeof object.encryptedDeviceDataKey === 'string') + $util.base64.decode( + object.encryptedDeviceDataKey, + (message.encryptedDeviceDataKey = $util.newBuffer( + $util.base64.length(object.encryptedDeviceDataKey) + )), + 0 + ); else if (object.encryptedDeviceDataKey.length >= 0) message.encryptedDeviceDataKey = object.encryptedDeviceDataKey; - if (object.denyApproval != null) - message.denyApproval = Boolean(object.denyApproval); + if (object.denyApproval != null) message.denyApproval = Boolean(object.denyApproval); return message; }; @@ -60119,24 +62345,21 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ ApproveUserDeviceRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.enterpriseUserId = options.longs === String ? "0" : 0; - if (options.bytes === String) - object.encryptedDeviceToken = ""; + object.enterpriseUserId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.enterpriseUserId = options.longs === String ? '0' : 0; + if (options.bytes === String) object.encryptedDeviceToken = ''; else { object.encryptedDeviceToken = []; if (options.bytes !== Array) object.encryptedDeviceToken = $util.newBuffer(object.encryptedDeviceToken); } - if (options.bytes === String) - object.encryptedDeviceDataKey = ""; + if (options.bytes === String) object.encryptedDeviceDataKey = ''; else { object.encryptedDeviceDataKey = []; if (options.bytes !== Array) @@ -60144,16 +62367,35 @@ export const Enterprise = $root.Enterprise = (() => { } object.denyApproval = false; } - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (typeof message.enterpriseUserId === "number") - object.enterpriseUserId = options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; + if (message.enterpriseUserId != null && message.hasOwnProperty('enterpriseUserId')) + if (typeof message.enterpriseUserId === 'number') + object.enterpriseUserId = + options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; else - object.enterpriseUserId = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseUserId) : options.longs === Number ? new $util.LongBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0).toNumber() : message.enterpriseUserId; - if (message.encryptedDeviceToken != null && message.hasOwnProperty("encryptedDeviceToken")) - object.encryptedDeviceToken = options.bytes === String ? $util.base64.encode(message.encryptedDeviceToken, 0, message.encryptedDeviceToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedDeviceToken) : message.encryptedDeviceToken; - if (message.encryptedDeviceDataKey != null && message.hasOwnProperty("encryptedDeviceDataKey")) - object.encryptedDeviceDataKey = options.bytes === String ? $util.base64.encode(message.encryptedDeviceDataKey, 0, message.encryptedDeviceDataKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedDeviceDataKey) : message.encryptedDeviceDataKey; - if (message.denyApproval != null && message.hasOwnProperty("denyApproval")) + object.enterpriseUserId = + options.longs === String + ? $util.Long.prototype.toString.call(message.enterpriseUserId) + : options.longs === Number + ? new $util.LongBits( + message.enterpriseUserId.low >>> 0, + message.enterpriseUserId.high >>> 0 + ).toNumber() + : message.enterpriseUserId; + if (message.encryptedDeviceToken != null && message.hasOwnProperty('encryptedDeviceToken')) + object.encryptedDeviceToken = + options.bytes === String + ? $util.base64.encode(message.encryptedDeviceToken, 0, message.encryptedDeviceToken.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.encryptedDeviceToken) + : message.encryptedDeviceToken; + if (message.encryptedDeviceDataKey != null && message.hasOwnProperty('encryptedDeviceDataKey')) + object.encryptedDeviceDataKey = + options.bytes === String + ? $util.base64.encode(message.encryptedDeviceDataKey, 0, message.encryptedDeviceDataKey.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.encryptedDeviceDataKey) + : message.encryptedDeviceDataKey; + if (message.denyApproval != null && message.hasOwnProperty('denyApproval')) object.denyApproval = message.denyApproval; return object; }; @@ -60179,16 +62421,15 @@ export const Enterprise = $root.Enterprise = (() => { */ ApproveUserDeviceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.ApproveUserDeviceRequest"; + return typeUrlPrefix + '/Enterprise.ApproveUserDeviceRequest'; }; return ApproveUserDeviceRequest; })(); - Enterprise.ApproveUserDeviceResponse = (function() { - + Enterprise.ApproveUserDeviceResponse = (function () { /** * Properties of an ApproveUserDeviceResponse. * @memberof Enterprise @@ -60210,8 +62451,7 @@ export const Enterprise = $root.Enterprise = (() => { function ApproveUserDeviceResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -60220,7 +62460,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.ApproveUserDeviceResponse * @instance */ - ApproveUserDeviceResponse.prototype.enterpriseUserId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + ApproveUserDeviceResponse.prototype.enterpriseUserId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * ApproveUserDeviceResponse encryptedDeviceToken. @@ -60244,7 +62484,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.ApproveUserDeviceResponse * @instance */ - ApproveUserDeviceResponse.prototype.message = ""; + ApproveUserDeviceResponse.prototype.message = ''; /** * Creates a new ApproveUserDeviceResponse instance using the specified properties. @@ -60268,16 +62508,15 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ ApproveUserDeviceResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "enterpriseUserId")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.enterpriseUserId); - if (message.encryptedDeviceToken != null && Object.hasOwnProperty.call(message, "encryptedDeviceToken")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.encryptedDeviceToken); - if (message.failed != null && Object.hasOwnProperty.call(message, "failed")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.failed); - if (message.message != null && Object.hasOwnProperty.call(message, "message")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.message); + if (!writer) writer = $Writer.create(); + if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, 'enterpriseUserId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int64(message.enterpriseUserId); + if (message.encryptedDeviceToken != null && Object.hasOwnProperty.call(message, 'encryptedDeviceToken')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.encryptedDeviceToken); + if (message.failed != null && Object.hasOwnProperty.call(message, 'failed')) + writer.uint32(/* id 3, wireType 0 =*/ 24).bool(message.failed); + if (message.message != null && Object.hasOwnProperty.call(message, 'message')) + writer.uint32(/* id 4, wireType 2 =*/ 34).string(message.message); return writer; }; @@ -60306,31 +62545,31 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ApproveUserDeviceResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.ApproveUserDeviceResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.ApproveUserDeviceResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.enterpriseUserId = reader.int64(); break; } - case 2: { + case 2: { message.encryptedDeviceToken = reader.bytes(); break; } - case 3: { + case 3: { message.failed = reader.bool(); break; } - case 4: { + case 4: { message.message = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -60347,8 +62586,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ApproveUserDeviceResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -60361,20 +62599,29 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ ApproveUserDeviceResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (!$util.isInteger(message.enterpriseUserId) && !(message.enterpriseUserId && $util.isInteger(message.enterpriseUserId.low) && $util.isInteger(message.enterpriseUserId.high))) - return "enterpriseUserId: integer|Long expected"; - if (message.encryptedDeviceToken != null && message.hasOwnProperty("encryptedDeviceToken")) - if (!(message.encryptedDeviceToken && typeof message.encryptedDeviceToken.length === "number" || $util.isString(message.encryptedDeviceToken))) - return "encryptedDeviceToken: buffer expected"; - if (message.failed != null && message.hasOwnProperty("failed")) - if (typeof message.failed !== "boolean") - return "failed: boolean expected"; - if (message.message != null && message.hasOwnProperty("message")) - if (!$util.isString(message.message)) - return "message: string expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.enterpriseUserId != null && message.hasOwnProperty('enterpriseUserId')) + if ( + !$util.isInteger(message.enterpriseUserId) && + !( + message.enterpriseUserId && + $util.isInteger(message.enterpriseUserId.low) && + $util.isInteger(message.enterpriseUserId.high) + ) + ) + return 'enterpriseUserId: integer|Long expected'; + if (message.encryptedDeviceToken != null && message.hasOwnProperty('encryptedDeviceToken')) + if ( + !( + (message.encryptedDeviceToken && typeof message.encryptedDeviceToken.length === 'number') || + $util.isString(message.encryptedDeviceToken) + ) + ) + return 'encryptedDeviceToken: buffer expected'; + if (message.failed != null && message.hasOwnProperty('failed')) + if (typeof message.failed !== 'boolean') return 'failed: boolean expected'; + if (message.message != null && message.hasOwnProperty('message')) + if (!$util.isString(message.message)) return 'message: string expected'; return null; }; @@ -60387,27 +62634,33 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.ApproveUserDeviceResponse} ApproveUserDeviceResponse */ ApproveUserDeviceResponse.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.ApproveUserDeviceResponse) - return object; + if (object instanceof $root.Enterprise.ApproveUserDeviceResponse) return object; let message = new $root.Enterprise.ApproveUserDeviceResponse(); if (object.enterpriseUserId != null) if ($util.Long) (message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId)).unsigned = false; - else if (typeof object.enterpriseUserId === "string") + else if (typeof object.enterpriseUserId === 'string') message.enterpriseUserId = parseInt(object.enterpriseUserId, 10); - else if (typeof object.enterpriseUserId === "number") + else if (typeof object.enterpriseUserId === 'number') message.enterpriseUserId = object.enterpriseUserId; - else if (typeof object.enterpriseUserId === "object") - message.enterpriseUserId = new $util.LongBits(object.enterpriseUserId.low >>> 0, object.enterpriseUserId.high >>> 0).toNumber(); + else if (typeof object.enterpriseUserId === 'object') + message.enterpriseUserId = new $util.LongBits( + object.enterpriseUserId.low >>> 0, + object.enterpriseUserId.high >>> 0 + ).toNumber(); if (object.encryptedDeviceToken != null) - if (typeof object.encryptedDeviceToken === "string") - $util.base64.decode(object.encryptedDeviceToken, message.encryptedDeviceToken = $util.newBuffer($util.base64.length(object.encryptedDeviceToken)), 0); + if (typeof object.encryptedDeviceToken === 'string') + $util.base64.decode( + object.encryptedDeviceToken, + (message.encryptedDeviceToken = $util.newBuffer( + $util.base64.length(object.encryptedDeviceToken) + )), + 0 + ); else if (object.encryptedDeviceToken.length >= 0) message.encryptedDeviceToken = object.encryptedDeviceToken; - if (object.failed != null) - message.failed = Boolean(object.failed); - if (object.message != null) - message.message = String(object.message); + if (object.failed != null) message.failed = Boolean(object.failed); + if (object.message != null) message.message = String(object.message); return message; }; @@ -60421,36 +62674,46 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ ApproveUserDeviceResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.enterpriseUserId = options.longs === String ? "0" : 0; - if (options.bytes === String) - object.encryptedDeviceToken = ""; + object.enterpriseUserId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.enterpriseUserId = options.longs === String ? '0' : 0; + if (options.bytes === String) object.encryptedDeviceToken = ''; else { object.encryptedDeviceToken = []; if (options.bytes !== Array) object.encryptedDeviceToken = $util.newBuffer(object.encryptedDeviceToken); } object.failed = false; - object.message = ""; + object.message = ''; } - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (typeof message.enterpriseUserId === "number") - object.enterpriseUserId = options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; + if (message.enterpriseUserId != null && message.hasOwnProperty('enterpriseUserId')) + if (typeof message.enterpriseUserId === 'number') + object.enterpriseUserId = + options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; else - object.enterpriseUserId = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseUserId) : options.longs === Number ? new $util.LongBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0).toNumber() : message.enterpriseUserId; - if (message.encryptedDeviceToken != null && message.hasOwnProperty("encryptedDeviceToken")) - object.encryptedDeviceToken = options.bytes === String ? $util.base64.encode(message.encryptedDeviceToken, 0, message.encryptedDeviceToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedDeviceToken) : message.encryptedDeviceToken; - if (message.failed != null && message.hasOwnProperty("failed")) - object.failed = message.failed; - if (message.message != null && message.hasOwnProperty("message")) - object.message = message.message; + object.enterpriseUserId = + options.longs === String + ? $util.Long.prototype.toString.call(message.enterpriseUserId) + : options.longs === Number + ? new $util.LongBits( + message.enterpriseUserId.low >>> 0, + message.enterpriseUserId.high >>> 0 + ).toNumber() + : message.enterpriseUserId; + if (message.encryptedDeviceToken != null && message.hasOwnProperty('encryptedDeviceToken')) + object.encryptedDeviceToken = + options.bytes === String + ? $util.base64.encode(message.encryptedDeviceToken, 0, message.encryptedDeviceToken.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.encryptedDeviceToken) + : message.encryptedDeviceToken; + if (message.failed != null && message.hasOwnProperty('failed')) object.failed = message.failed; + if (message.message != null && message.hasOwnProperty('message')) object.message = message.message; return object; }; @@ -60475,16 +62738,15 @@ export const Enterprise = $root.Enterprise = (() => { */ ApproveUserDeviceResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.ApproveUserDeviceResponse"; + return typeUrlPrefix + '/Enterprise.ApproveUserDeviceResponse'; }; return ApproveUserDeviceResponse; })(); - Enterprise.ApproveUserDevicesRequest = (function() { - + Enterprise.ApproveUserDevicesRequest = (function () { /** * Properties of an ApproveUserDevicesRequest. * @memberof Enterprise @@ -60504,8 +62766,7 @@ export const Enterprise = $root.Enterprise = (() => { this.deviceRequests = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -60538,11 +62799,13 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ ApproveUserDevicesRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.deviceRequests != null && message.deviceRequests.length) for (let i = 0; i < message.deviceRequests.length; ++i) - $root.Enterprise.ApproveUserDeviceRequest.encode(message.deviceRequests[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.Enterprise.ApproveUserDeviceRequest.encode( + message.deviceRequests[i], + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); return writer; }; @@ -60571,21 +62834,22 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ApproveUserDevicesRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.ApproveUserDevicesRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.ApproveUserDevicesRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (!(message.deviceRequests && message.deviceRequests.length)) - message.deviceRequests = []; - message.deviceRequests.push($root.Enterprise.ApproveUserDeviceRequest.decode(reader, reader.uint32())); + case 1: { + if (!(message.deviceRequests && message.deviceRequests.length)) message.deviceRequests = []; + message.deviceRequests.push( + $root.Enterprise.ApproveUserDeviceRequest.decode(reader, reader.uint32()) + ); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -60602,8 +62866,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ApproveUserDevicesRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -60616,15 +62879,12 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ ApproveUserDevicesRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.deviceRequests != null && message.hasOwnProperty("deviceRequests")) { - if (!Array.isArray(message.deviceRequests)) - return "deviceRequests: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.deviceRequests != null && message.hasOwnProperty('deviceRequests')) { + if (!Array.isArray(message.deviceRequests)) return 'deviceRequests: array expected'; for (let i = 0; i < message.deviceRequests.length; ++i) { let error = $root.Enterprise.ApproveUserDeviceRequest.verify(message.deviceRequests[i]); - if (error) - return "deviceRequests." + error; + if (error) return 'deviceRequests.' + error; } } return null; @@ -60639,17 +62899,18 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.ApproveUserDevicesRequest} ApproveUserDevicesRequest */ ApproveUserDevicesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.ApproveUserDevicesRequest) - return object; + if (object instanceof $root.Enterprise.ApproveUserDevicesRequest) return object; let message = new $root.Enterprise.ApproveUserDevicesRequest(); if (object.deviceRequests) { if (!Array.isArray(object.deviceRequests)) - throw TypeError(".Enterprise.ApproveUserDevicesRequest.deviceRequests: array expected"); + throw TypeError('.Enterprise.ApproveUserDevicesRequest.deviceRequests: array expected'); message.deviceRequests = []; for (let i = 0; i < object.deviceRequests.length; ++i) { - if (typeof object.deviceRequests[i] !== "object") - throw TypeError(".Enterprise.ApproveUserDevicesRequest.deviceRequests: object expected"); - message.deviceRequests[i] = $root.Enterprise.ApproveUserDeviceRequest.fromObject(object.deviceRequests[i]); + if (typeof object.deviceRequests[i] !== 'object') + throw TypeError('.Enterprise.ApproveUserDevicesRequest.deviceRequests: object expected'); + message.deviceRequests[i] = $root.Enterprise.ApproveUserDeviceRequest.fromObject( + object.deviceRequests[i] + ); } } return message; @@ -60665,15 +62926,16 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ ApproveUserDevicesRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.deviceRequests = []; + if (options.arrays || options.defaults) object.deviceRequests = []; if (message.deviceRequests && message.deviceRequests.length) { object.deviceRequests = []; for (let j = 0; j < message.deviceRequests.length; ++j) - object.deviceRequests[j] = $root.Enterprise.ApproveUserDeviceRequest.toObject(message.deviceRequests[j], options); + object.deviceRequests[j] = $root.Enterprise.ApproveUserDeviceRequest.toObject( + message.deviceRequests[j], + options + ); } return object; }; @@ -60699,16 +62961,15 @@ export const Enterprise = $root.Enterprise = (() => { */ ApproveUserDevicesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.ApproveUserDevicesRequest"; + return typeUrlPrefix + '/Enterprise.ApproveUserDevicesRequest'; }; return ApproveUserDevicesRequest; })(); - Enterprise.ApproveUserDevicesResponse = (function() { - + Enterprise.ApproveUserDevicesResponse = (function () { /** * Properties of an ApproveUserDevicesResponse. * @memberof Enterprise @@ -60728,8 +62989,7 @@ export const Enterprise = $root.Enterprise = (() => { this.deviceResponses = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -60762,11 +63022,13 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ ApproveUserDevicesResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.deviceResponses != null && message.deviceResponses.length) for (let i = 0; i < message.deviceResponses.length; ++i) - $root.Enterprise.ApproveUserDeviceResponse.encode(message.deviceResponses[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.Enterprise.ApproveUserDeviceResponse.encode( + message.deviceResponses[i], + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); return writer; }; @@ -60795,21 +63057,22 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ApproveUserDevicesResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.ApproveUserDevicesResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.ApproveUserDevicesResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (!(message.deviceResponses && message.deviceResponses.length)) - message.deviceResponses = []; - message.deviceResponses.push($root.Enterprise.ApproveUserDeviceResponse.decode(reader, reader.uint32())); + case 1: { + if (!(message.deviceResponses && message.deviceResponses.length)) message.deviceResponses = []; + message.deviceResponses.push( + $root.Enterprise.ApproveUserDeviceResponse.decode(reader, reader.uint32()) + ); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -60826,8 +63089,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ApproveUserDevicesResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -60840,15 +63102,12 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ ApproveUserDevicesResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.deviceResponses != null && message.hasOwnProperty("deviceResponses")) { - if (!Array.isArray(message.deviceResponses)) - return "deviceResponses: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.deviceResponses != null && message.hasOwnProperty('deviceResponses')) { + if (!Array.isArray(message.deviceResponses)) return 'deviceResponses: array expected'; for (let i = 0; i < message.deviceResponses.length; ++i) { let error = $root.Enterprise.ApproveUserDeviceResponse.verify(message.deviceResponses[i]); - if (error) - return "deviceResponses." + error; + if (error) return 'deviceResponses.' + error; } } return null; @@ -60863,17 +63122,18 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.ApproveUserDevicesResponse} ApproveUserDevicesResponse */ ApproveUserDevicesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.ApproveUserDevicesResponse) - return object; + if (object instanceof $root.Enterprise.ApproveUserDevicesResponse) return object; let message = new $root.Enterprise.ApproveUserDevicesResponse(); if (object.deviceResponses) { if (!Array.isArray(object.deviceResponses)) - throw TypeError(".Enterprise.ApproveUserDevicesResponse.deviceResponses: array expected"); + throw TypeError('.Enterprise.ApproveUserDevicesResponse.deviceResponses: array expected'); message.deviceResponses = []; for (let i = 0; i < object.deviceResponses.length; ++i) { - if (typeof object.deviceResponses[i] !== "object") - throw TypeError(".Enterprise.ApproveUserDevicesResponse.deviceResponses: object expected"); - message.deviceResponses[i] = $root.Enterprise.ApproveUserDeviceResponse.fromObject(object.deviceResponses[i]); + if (typeof object.deviceResponses[i] !== 'object') + throw TypeError('.Enterprise.ApproveUserDevicesResponse.deviceResponses: object expected'); + message.deviceResponses[i] = $root.Enterprise.ApproveUserDeviceResponse.fromObject( + object.deviceResponses[i] + ); } } return message; @@ -60889,15 +63149,16 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ ApproveUserDevicesResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.deviceResponses = []; + if (options.arrays || options.defaults) object.deviceResponses = []; if (message.deviceResponses && message.deviceResponses.length) { object.deviceResponses = []; for (let j = 0; j < message.deviceResponses.length; ++j) - object.deviceResponses[j] = $root.Enterprise.ApproveUserDeviceResponse.toObject(message.deviceResponses[j], options); + object.deviceResponses[j] = $root.Enterprise.ApproveUserDeviceResponse.toObject( + message.deviceResponses[j], + options + ); } return object; }; @@ -60923,16 +63184,15 @@ export const Enterprise = $root.Enterprise = (() => { */ ApproveUserDevicesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.ApproveUserDevicesResponse"; + return typeUrlPrefix + '/Enterprise.ApproveUserDevicesResponse'; }; return ApproveUserDevicesResponse; })(); - Enterprise.EnterpriseUserDataKey = (function() { - + Enterprise.EnterpriseUserDataKey = (function () { /** * Properties of an EnterpriseUserDataKey. * @memberof Enterprise @@ -60955,8 +63215,7 @@ export const Enterprise = $root.Enterprise = (() => { function EnterpriseUserDataKey(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -60965,7 +63224,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.EnterpriseUserDataKey * @instance */ - EnterpriseUserDataKey.prototype.enterpriseUserId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + EnterpriseUserDataKey.prototype.enterpriseUserId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * EnterpriseUserDataKey userEncryptedDataKey. @@ -61021,18 +63280,17 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ EnterpriseUserDataKey.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "enterpriseUserId")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.enterpriseUserId); - if (message.userEncryptedDataKey != null && Object.hasOwnProperty.call(message, "userEncryptedDataKey")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.userEncryptedDataKey); - if (message.keyTypeId != null && Object.hasOwnProperty.call(message, "keyTypeId")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.keyTypeId); - if (message.roleKey != null && Object.hasOwnProperty.call(message, "roleKey")) - writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.roleKey); - if (message.privateKey != null && Object.hasOwnProperty.call(message, "privateKey")) - writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.privateKey); + if (!writer) writer = $Writer.create(); + if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, 'enterpriseUserId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int64(message.enterpriseUserId); + if (message.userEncryptedDataKey != null && Object.hasOwnProperty.call(message, 'userEncryptedDataKey')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.userEncryptedDataKey); + if (message.keyTypeId != null && Object.hasOwnProperty.call(message, 'keyTypeId')) + writer.uint32(/* id 3, wireType 0 =*/ 24).int32(message.keyTypeId); + if (message.roleKey != null && Object.hasOwnProperty.call(message, 'roleKey')) + writer.uint32(/* id 4, wireType 2 =*/ 34).bytes(message.roleKey); + if (message.privateKey != null && Object.hasOwnProperty.call(message, 'privateKey')) + writer.uint32(/* id 5, wireType 2 =*/ 42).bytes(message.privateKey); return writer; }; @@ -61061,35 +63319,35 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ EnterpriseUserDataKey.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.EnterpriseUserDataKey(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.EnterpriseUserDataKey(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.enterpriseUserId = reader.int64(); break; } - case 2: { + case 2: { message.userEncryptedDataKey = reader.bytes(); break; } - case 3: { + case 3: { message.keyTypeId = reader.int32(); break; } - case 4: { + case 4: { message.roleKey = reader.bytes(); break; } - case 5: { + case 5: { message.privateKey = reader.bytes(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -61106,8 +63364,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ EnterpriseUserDataKey.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -61120,23 +63377,43 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ EnterpriseUserDataKey.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (!$util.isInteger(message.enterpriseUserId) && !(message.enterpriseUserId && $util.isInteger(message.enterpriseUserId.low) && $util.isInteger(message.enterpriseUserId.high))) - return "enterpriseUserId: integer|Long expected"; - if (message.userEncryptedDataKey != null && message.hasOwnProperty("userEncryptedDataKey")) - if (!(message.userEncryptedDataKey && typeof message.userEncryptedDataKey.length === "number" || $util.isString(message.userEncryptedDataKey))) - return "userEncryptedDataKey: buffer expected"; - if (message.keyTypeId != null && message.hasOwnProperty("keyTypeId")) - if (!$util.isInteger(message.keyTypeId)) - return "keyTypeId: integer expected"; - if (message.roleKey != null && message.hasOwnProperty("roleKey")) - if (!(message.roleKey && typeof message.roleKey.length === "number" || $util.isString(message.roleKey))) - return "roleKey: buffer expected"; - if (message.privateKey != null && message.hasOwnProperty("privateKey")) - if (!(message.privateKey && typeof message.privateKey.length === "number" || $util.isString(message.privateKey))) - return "privateKey: buffer expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.enterpriseUserId != null && message.hasOwnProperty('enterpriseUserId')) + if ( + !$util.isInteger(message.enterpriseUserId) && + !( + message.enterpriseUserId && + $util.isInteger(message.enterpriseUserId.low) && + $util.isInteger(message.enterpriseUserId.high) + ) + ) + return 'enterpriseUserId: integer|Long expected'; + if (message.userEncryptedDataKey != null && message.hasOwnProperty('userEncryptedDataKey')) + if ( + !( + (message.userEncryptedDataKey && typeof message.userEncryptedDataKey.length === 'number') || + $util.isString(message.userEncryptedDataKey) + ) + ) + return 'userEncryptedDataKey: buffer expected'; + if (message.keyTypeId != null && message.hasOwnProperty('keyTypeId')) + if (!$util.isInteger(message.keyTypeId)) return 'keyTypeId: integer expected'; + if (message.roleKey != null && message.hasOwnProperty('roleKey')) + if ( + !( + (message.roleKey && typeof message.roleKey.length === 'number') || + $util.isString(message.roleKey) + ) + ) + return 'roleKey: buffer expected'; + if (message.privateKey != null && message.hasOwnProperty('privateKey')) + if ( + !( + (message.privateKey && typeof message.privateKey.length === 'number') || + $util.isString(message.privateKey) + ) + ) + return 'privateKey: buffer expected'; return null; }; @@ -61149,35 +63426,48 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.EnterpriseUserDataKey} EnterpriseUserDataKey */ EnterpriseUserDataKey.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.EnterpriseUserDataKey) - return object; + if (object instanceof $root.Enterprise.EnterpriseUserDataKey) return object; let message = new $root.Enterprise.EnterpriseUserDataKey(); if (object.enterpriseUserId != null) if ($util.Long) (message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId)).unsigned = false; - else if (typeof object.enterpriseUserId === "string") + else if (typeof object.enterpriseUserId === 'string') message.enterpriseUserId = parseInt(object.enterpriseUserId, 10); - else if (typeof object.enterpriseUserId === "number") + else if (typeof object.enterpriseUserId === 'number') message.enterpriseUserId = object.enterpriseUserId; - else if (typeof object.enterpriseUserId === "object") - message.enterpriseUserId = new $util.LongBits(object.enterpriseUserId.low >>> 0, object.enterpriseUserId.high >>> 0).toNumber(); + else if (typeof object.enterpriseUserId === 'object') + message.enterpriseUserId = new $util.LongBits( + object.enterpriseUserId.low >>> 0, + object.enterpriseUserId.high >>> 0 + ).toNumber(); if (object.userEncryptedDataKey != null) - if (typeof object.userEncryptedDataKey === "string") - $util.base64.decode(object.userEncryptedDataKey, message.userEncryptedDataKey = $util.newBuffer($util.base64.length(object.userEncryptedDataKey)), 0); + if (typeof object.userEncryptedDataKey === 'string') + $util.base64.decode( + object.userEncryptedDataKey, + (message.userEncryptedDataKey = $util.newBuffer( + $util.base64.length(object.userEncryptedDataKey) + )), + 0 + ); else if (object.userEncryptedDataKey.length >= 0) message.userEncryptedDataKey = object.userEncryptedDataKey; - if (object.keyTypeId != null) - message.keyTypeId = object.keyTypeId | 0; + if (object.keyTypeId != null) message.keyTypeId = object.keyTypeId | 0; if (object.roleKey != null) - if (typeof object.roleKey === "string") - $util.base64.decode(object.roleKey, message.roleKey = $util.newBuffer($util.base64.length(object.roleKey)), 0); - else if (object.roleKey.length >= 0) - message.roleKey = object.roleKey; + if (typeof object.roleKey === 'string') + $util.base64.decode( + object.roleKey, + (message.roleKey = $util.newBuffer($util.base64.length(object.roleKey))), + 0 + ); + else if (object.roleKey.length >= 0) message.roleKey = object.roleKey; if (object.privateKey != null) - if (typeof object.privateKey === "string") - $util.base64.decode(object.privateKey, message.privateKey = $util.newBuffer($util.base64.length(object.privateKey)), 0); - else if (object.privateKey.length >= 0) - message.privateKey = object.privateKey; + if (typeof object.privateKey === 'string') + $util.base64.decode( + object.privateKey, + (message.privateKey = $util.newBuffer($util.base64.length(object.privateKey))), + 0 + ); + else if (object.privateKey.length >= 0) message.privateKey = object.privateKey; return message; }; @@ -61191,51 +63481,68 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ EnterpriseUserDataKey.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.enterpriseUserId = options.longs === String ? "0" : 0; - if (options.bytes === String) - object.userEncryptedDataKey = ""; + object.enterpriseUserId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.enterpriseUserId = options.longs === String ? '0' : 0; + if (options.bytes === String) object.userEncryptedDataKey = ''; else { object.userEncryptedDataKey = []; if (options.bytes !== Array) object.userEncryptedDataKey = $util.newBuffer(object.userEncryptedDataKey); } object.keyTypeId = 0; - if (options.bytes === String) - object.roleKey = ""; + if (options.bytes === String) object.roleKey = ''; else { object.roleKey = []; - if (options.bytes !== Array) - object.roleKey = $util.newBuffer(object.roleKey); + if (options.bytes !== Array) object.roleKey = $util.newBuffer(object.roleKey); } - if (options.bytes === String) - object.privateKey = ""; + if (options.bytes === String) object.privateKey = ''; else { object.privateKey = []; - if (options.bytes !== Array) - object.privateKey = $util.newBuffer(object.privateKey); + if (options.bytes !== Array) object.privateKey = $util.newBuffer(object.privateKey); } } - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (typeof message.enterpriseUserId === "number") - object.enterpriseUserId = options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; + if (message.enterpriseUserId != null && message.hasOwnProperty('enterpriseUserId')) + if (typeof message.enterpriseUserId === 'number') + object.enterpriseUserId = + options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; else - object.enterpriseUserId = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseUserId) : options.longs === Number ? new $util.LongBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0).toNumber() : message.enterpriseUserId; - if (message.userEncryptedDataKey != null && message.hasOwnProperty("userEncryptedDataKey")) - object.userEncryptedDataKey = options.bytes === String ? $util.base64.encode(message.userEncryptedDataKey, 0, message.userEncryptedDataKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.userEncryptedDataKey) : message.userEncryptedDataKey; - if (message.keyTypeId != null && message.hasOwnProperty("keyTypeId")) - object.keyTypeId = message.keyTypeId; - if (message.roleKey != null && message.hasOwnProperty("roleKey")) - object.roleKey = options.bytes === String ? $util.base64.encode(message.roleKey, 0, message.roleKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.roleKey) : message.roleKey; - if (message.privateKey != null && message.hasOwnProperty("privateKey")) - object.privateKey = options.bytes === String ? $util.base64.encode(message.privateKey, 0, message.privateKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.privateKey) : message.privateKey; + object.enterpriseUserId = + options.longs === String + ? $util.Long.prototype.toString.call(message.enterpriseUserId) + : options.longs === Number + ? new $util.LongBits( + message.enterpriseUserId.low >>> 0, + message.enterpriseUserId.high >>> 0 + ).toNumber() + : message.enterpriseUserId; + if (message.userEncryptedDataKey != null && message.hasOwnProperty('userEncryptedDataKey')) + object.userEncryptedDataKey = + options.bytes === String + ? $util.base64.encode(message.userEncryptedDataKey, 0, message.userEncryptedDataKey.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.userEncryptedDataKey) + : message.userEncryptedDataKey; + if (message.keyTypeId != null && message.hasOwnProperty('keyTypeId')) object.keyTypeId = message.keyTypeId; + if (message.roleKey != null && message.hasOwnProperty('roleKey')) + object.roleKey = + options.bytes === String + ? $util.base64.encode(message.roleKey, 0, message.roleKey.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.roleKey) + : message.roleKey; + if (message.privateKey != null && message.hasOwnProperty('privateKey')) + object.privateKey = + options.bytes === String + ? $util.base64.encode(message.privateKey, 0, message.privateKey.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.privateKey) + : message.privateKey; return object; }; @@ -61260,16 +63567,15 @@ export const Enterprise = $root.Enterprise = (() => { */ EnterpriseUserDataKey.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.EnterpriseUserDataKey"; + return typeUrlPrefix + '/Enterprise.EnterpriseUserDataKey'; }; return EnterpriseUserDataKey; })(); - Enterprise.EnterpriseUserDataKeys = (function() { - + Enterprise.EnterpriseUserDataKeys = (function () { /** * Properties of an EnterpriseUserDataKeys. * @memberof Enterprise @@ -61289,8 +63595,7 @@ export const Enterprise = $root.Enterprise = (() => { this.keys = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -61323,11 +63628,13 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ EnterpriseUserDataKeys.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.keys != null && message.keys.length) for (let i = 0; i < message.keys.length; ++i) - $root.Enterprise.EnterpriseUserDataKey.encode(message.keys[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.Enterprise.EnterpriseUserDataKey.encode( + message.keys[i], + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); return writer; }; @@ -61356,21 +63663,20 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ EnterpriseUserDataKeys.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.EnterpriseUserDataKeys(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.EnterpriseUserDataKeys(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (!(message.keys && message.keys.length)) - message.keys = []; + case 1: { + if (!(message.keys && message.keys.length)) message.keys = []; message.keys.push($root.Enterprise.EnterpriseUserDataKey.decode(reader, reader.uint32())); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -61387,8 +63693,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ EnterpriseUserDataKeys.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -61401,15 +63706,12 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ EnterpriseUserDataKeys.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.keys != null && message.hasOwnProperty("keys")) { - if (!Array.isArray(message.keys)) - return "keys: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.keys != null && message.hasOwnProperty('keys')) { + if (!Array.isArray(message.keys)) return 'keys: array expected'; for (let i = 0; i < message.keys.length; ++i) { let error = $root.Enterprise.EnterpriseUserDataKey.verify(message.keys[i]); - if (error) - return "keys." + error; + if (error) return 'keys.' + error; } } return null; @@ -61424,16 +63726,15 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.EnterpriseUserDataKeys} EnterpriseUserDataKeys */ EnterpriseUserDataKeys.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.EnterpriseUserDataKeys) - return object; + if (object instanceof $root.Enterprise.EnterpriseUserDataKeys) return object; let message = new $root.Enterprise.EnterpriseUserDataKeys(); if (object.keys) { if (!Array.isArray(object.keys)) - throw TypeError(".Enterprise.EnterpriseUserDataKeys.keys: array expected"); + throw TypeError('.Enterprise.EnterpriseUserDataKeys.keys: array expected'); message.keys = []; for (let i = 0; i < object.keys.length; ++i) { - if (typeof object.keys[i] !== "object") - throw TypeError(".Enterprise.EnterpriseUserDataKeys.keys: object expected"); + if (typeof object.keys[i] !== 'object') + throw TypeError('.Enterprise.EnterpriseUserDataKeys.keys: object expected'); message.keys[i] = $root.Enterprise.EnterpriseUserDataKey.fromObject(object.keys[i]); } } @@ -61450,11 +63751,9 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ EnterpriseUserDataKeys.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.keys = []; + if (options.arrays || options.defaults) object.keys = []; if (message.keys && message.keys.length) { object.keys = []; for (let j = 0; j < message.keys.length; ++j) @@ -61484,16 +63783,15 @@ export const Enterprise = $root.Enterprise = (() => { */ EnterpriseUserDataKeys.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.EnterpriseUserDataKeys"; + return typeUrlPrefix + '/Enterprise.EnterpriseUserDataKeys'; }; return EnterpriseUserDataKeys; })(); - Enterprise.EnterpriseUserDataKeyLight = (function() { - + Enterprise.EnterpriseUserDataKeyLight = (function () { /** * Properties of an EnterpriseUserDataKeyLight. * @memberof Enterprise @@ -61514,8 +63812,7 @@ export const Enterprise = $root.Enterprise = (() => { function EnterpriseUserDataKeyLight(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -61524,7 +63821,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.EnterpriseUserDataKeyLight * @instance */ - EnterpriseUserDataKeyLight.prototype.enterpriseUserId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + EnterpriseUserDataKeyLight.prototype.enterpriseUserId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * EnterpriseUserDataKeyLight userEncryptedDataKey. @@ -61564,14 +63861,13 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ EnterpriseUserDataKeyLight.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "enterpriseUserId")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.enterpriseUserId); - if (message.userEncryptedDataKey != null && Object.hasOwnProperty.call(message, "userEncryptedDataKey")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.userEncryptedDataKey); - if (message.keyTypeId != null && Object.hasOwnProperty.call(message, "keyTypeId")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.keyTypeId); + if (!writer) writer = $Writer.create(); + if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, 'enterpriseUserId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int64(message.enterpriseUserId); + if (message.userEncryptedDataKey != null && Object.hasOwnProperty.call(message, 'userEncryptedDataKey')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.userEncryptedDataKey); + if (message.keyTypeId != null && Object.hasOwnProperty.call(message, 'keyTypeId')) + writer.uint32(/* id 3, wireType 0 =*/ 24).int32(message.keyTypeId); return writer; }; @@ -61600,27 +63896,27 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ EnterpriseUserDataKeyLight.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.EnterpriseUserDataKeyLight(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.EnterpriseUserDataKeyLight(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.enterpriseUserId = reader.int64(); break; } - case 2: { + case 2: { message.userEncryptedDataKey = reader.bytes(); break; } - case 3: { + case 3: { message.keyTypeId = reader.int32(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -61637,8 +63933,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ EnterpriseUserDataKeyLight.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -61651,17 +63946,27 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ EnterpriseUserDataKeyLight.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (!$util.isInteger(message.enterpriseUserId) && !(message.enterpriseUserId && $util.isInteger(message.enterpriseUserId.low) && $util.isInteger(message.enterpriseUserId.high))) - return "enterpriseUserId: integer|Long expected"; - if (message.userEncryptedDataKey != null && message.hasOwnProperty("userEncryptedDataKey")) - if (!(message.userEncryptedDataKey && typeof message.userEncryptedDataKey.length === "number" || $util.isString(message.userEncryptedDataKey))) - return "userEncryptedDataKey: buffer expected"; - if (message.keyTypeId != null && message.hasOwnProperty("keyTypeId")) - if (!$util.isInteger(message.keyTypeId)) - return "keyTypeId: integer expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.enterpriseUserId != null && message.hasOwnProperty('enterpriseUserId')) + if ( + !$util.isInteger(message.enterpriseUserId) && + !( + message.enterpriseUserId && + $util.isInteger(message.enterpriseUserId.low) && + $util.isInteger(message.enterpriseUserId.high) + ) + ) + return 'enterpriseUserId: integer|Long expected'; + if (message.userEncryptedDataKey != null && message.hasOwnProperty('userEncryptedDataKey')) + if ( + !( + (message.userEncryptedDataKey && typeof message.userEncryptedDataKey.length === 'number') || + $util.isString(message.userEncryptedDataKey) + ) + ) + return 'userEncryptedDataKey: buffer expected'; + if (message.keyTypeId != null && message.hasOwnProperty('keyTypeId')) + if (!$util.isInteger(message.keyTypeId)) return 'keyTypeId: integer expected'; return null; }; @@ -61674,25 +63979,32 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.EnterpriseUserDataKeyLight} EnterpriseUserDataKeyLight */ EnterpriseUserDataKeyLight.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.EnterpriseUserDataKeyLight) - return object; + if (object instanceof $root.Enterprise.EnterpriseUserDataKeyLight) return object; let message = new $root.Enterprise.EnterpriseUserDataKeyLight(); if (object.enterpriseUserId != null) if ($util.Long) (message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId)).unsigned = false; - else if (typeof object.enterpriseUserId === "string") + else if (typeof object.enterpriseUserId === 'string') message.enterpriseUserId = parseInt(object.enterpriseUserId, 10); - else if (typeof object.enterpriseUserId === "number") + else if (typeof object.enterpriseUserId === 'number') message.enterpriseUserId = object.enterpriseUserId; - else if (typeof object.enterpriseUserId === "object") - message.enterpriseUserId = new $util.LongBits(object.enterpriseUserId.low >>> 0, object.enterpriseUserId.high >>> 0).toNumber(); + else if (typeof object.enterpriseUserId === 'object') + message.enterpriseUserId = new $util.LongBits( + object.enterpriseUserId.low >>> 0, + object.enterpriseUserId.high >>> 0 + ).toNumber(); if (object.userEncryptedDataKey != null) - if (typeof object.userEncryptedDataKey === "string") - $util.base64.decode(object.userEncryptedDataKey, message.userEncryptedDataKey = $util.newBuffer($util.base64.length(object.userEncryptedDataKey)), 0); + if (typeof object.userEncryptedDataKey === 'string') + $util.base64.decode( + object.userEncryptedDataKey, + (message.userEncryptedDataKey = $util.newBuffer( + $util.base64.length(object.userEncryptedDataKey) + )), + 0 + ); else if (object.userEncryptedDataKey.length >= 0) message.userEncryptedDataKey = object.userEncryptedDataKey; - if (object.keyTypeId != null) - message.keyTypeId = object.keyTypeId | 0; + if (object.keyTypeId != null) message.keyTypeId = object.keyTypeId | 0; return message; }; @@ -61706,17 +64018,15 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ EnterpriseUserDataKeyLight.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.enterpriseUserId = options.longs === String ? "0" : 0; - if (options.bytes === String) - object.userEncryptedDataKey = ""; + object.enterpriseUserId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.enterpriseUserId = options.longs === String ? '0' : 0; + if (options.bytes === String) object.userEncryptedDataKey = ''; else { object.userEncryptedDataKey = []; if (options.bytes !== Array) @@ -61724,15 +64034,28 @@ export const Enterprise = $root.Enterprise = (() => { } object.keyTypeId = 0; } - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (typeof message.enterpriseUserId === "number") - object.enterpriseUserId = options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; + if (message.enterpriseUserId != null && message.hasOwnProperty('enterpriseUserId')) + if (typeof message.enterpriseUserId === 'number') + object.enterpriseUserId = + options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; else - object.enterpriseUserId = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseUserId) : options.longs === Number ? new $util.LongBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0).toNumber() : message.enterpriseUserId; - if (message.userEncryptedDataKey != null && message.hasOwnProperty("userEncryptedDataKey")) - object.userEncryptedDataKey = options.bytes === String ? $util.base64.encode(message.userEncryptedDataKey, 0, message.userEncryptedDataKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.userEncryptedDataKey) : message.userEncryptedDataKey; - if (message.keyTypeId != null && message.hasOwnProperty("keyTypeId")) - object.keyTypeId = message.keyTypeId; + object.enterpriseUserId = + options.longs === String + ? $util.Long.prototype.toString.call(message.enterpriseUserId) + : options.longs === Number + ? new $util.LongBits( + message.enterpriseUserId.low >>> 0, + message.enterpriseUserId.high >>> 0 + ).toNumber() + : message.enterpriseUserId; + if (message.userEncryptedDataKey != null && message.hasOwnProperty('userEncryptedDataKey')) + object.userEncryptedDataKey = + options.bytes === String + ? $util.base64.encode(message.userEncryptedDataKey, 0, message.userEncryptedDataKey.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.userEncryptedDataKey) + : message.userEncryptedDataKey; + if (message.keyTypeId != null && message.hasOwnProperty('keyTypeId')) object.keyTypeId = message.keyTypeId; return object; }; @@ -61757,16 +64080,15 @@ export const Enterprise = $root.Enterprise = (() => { */ EnterpriseUserDataKeyLight.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.EnterpriseUserDataKeyLight"; + return typeUrlPrefix + '/Enterprise.EnterpriseUserDataKeyLight'; }; return EnterpriseUserDataKeyLight; })(); - Enterprise.EnterpriseUserDataKeysByNode = (function() { - + Enterprise.EnterpriseUserDataKeysByNode = (function () { /** * Properties of an EnterpriseUserDataKeysByNode. * @memberof Enterprise @@ -61787,8 +64109,7 @@ export const Enterprise = $root.Enterprise = (() => { this.keys = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -61797,7 +64118,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.EnterpriseUserDataKeysByNode * @instance */ - EnterpriseUserDataKeysByNode.prototype.nodeId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + EnterpriseUserDataKeysByNode.prototype.nodeId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * EnterpriseUserDataKeysByNode keys. @@ -61829,13 +64150,15 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ EnterpriseUserDataKeysByNode.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.nodeId != null && Object.hasOwnProperty.call(message, "nodeId")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.nodeId); + if (!writer) writer = $Writer.create(); + if (message.nodeId != null && Object.hasOwnProperty.call(message, 'nodeId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int64(message.nodeId); if (message.keys != null && message.keys.length) for (let i = 0; i < message.keys.length; ++i) - $root.Enterprise.EnterpriseUserDataKeyLight.encode(message.keys[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + $root.Enterprise.EnterpriseUserDataKeyLight.encode( + message.keys[i], + writer.uint32(/* id 2, wireType 2 =*/ 18).fork() + ).ldelim(); return writer; }; @@ -61864,25 +64187,24 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ EnterpriseUserDataKeysByNode.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.EnterpriseUserDataKeysByNode(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.EnterpriseUserDataKeysByNode(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.nodeId = reader.int64(); break; } - case 2: { - if (!(message.keys && message.keys.length)) - message.keys = []; + case 2: { + if (!(message.keys && message.keys.length)) message.keys = []; message.keys.push($root.Enterprise.EnterpriseUserDataKeyLight.decode(reader, reader.uint32())); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -61899,8 +64221,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ EnterpriseUserDataKeysByNode.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -61913,18 +64234,18 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ EnterpriseUserDataKeysByNode.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.nodeId != null && message.hasOwnProperty("nodeId")) - if (!$util.isInteger(message.nodeId) && !(message.nodeId && $util.isInteger(message.nodeId.low) && $util.isInteger(message.nodeId.high))) - return "nodeId: integer|Long expected"; - if (message.keys != null && message.hasOwnProperty("keys")) { - if (!Array.isArray(message.keys)) - return "keys: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.nodeId != null && message.hasOwnProperty('nodeId')) + if ( + !$util.isInteger(message.nodeId) && + !(message.nodeId && $util.isInteger(message.nodeId.low) && $util.isInteger(message.nodeId.high)) + ) + return 'nodeId: integer|Long expected'; + if (message.keys != null && message.hasOwnProperty('keys')) { + if (!Array.isArray(message.keys)) return 'keys: array expected'; for (let i = 0; i < message.keys.length; ++i) { let error = $root.Enterprise.EnterpriseUserDataKeyLight.verify(message.keys[i]); - if (error) - return "keys." + error; + if (error) return 'keys.' + error; } } return null; @@ -61939,25 +64260,21 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.EnterpriseUserDataKeysByNode} EnterpriseUserDataKeysByNode */ EnterpriseUserDataKeysByNode.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.EnterpriseUserDataKeysByNode) - return object; + if (object instanceof $root.Enterprise.EnterpriseUserDataKeysByNode) return object; let message = new $root.Enterprise.EnterpriseUserDataKeysByNode(); if (object.nodeId != null) - if ($util.Long) - (message.nodeId = $util.Long.fromValue(object.nodeId)).unsigned = false; - else if (typeof object.nodeId === "string") - message.nodeId = parseInt(object.nodeId, 10); - else if (typeof object.nodeId === "number") - message.nodeId = object.nodeId; - else if (typeof object.nodeId === "object") + if ($util.Long) (message.nodeId = $util.Long.fromValue(object.nodeId)).unsigned = false; + else if (typeof object.nodeId === 'string') message.nodeId = parseInt(object.nodeId, 10); + else if (typeof object.nodeId === 'number') message.nodeId = object.nodeId; + else if (typeof object.nodeId === 'object') message.nodeId = new $util.LongBits(object.nodeId.low >>> 0, object.nodeId.high >>> 0).toNumber(); if (object.keys) { if (!Array.isArray(object.keys)) - throw TypeError(".Enterprise.EnterpriseUserDataKeysByNode.keys: array expected"); + throw TypeError('.Enterprise.EnterpriseUserDataKeysByNode.keys: array expected'); message.keys = []; for (let i = 0; i < object.keys.length; ++i) { - if (typeof object.keys[i] !== "object") - throw TypeError(".Enterprise.EnterpriseUserDataKeysByNode.keys: object expected"); + if (typeof object.keys[i] !== 'object') + throw TypeError('.Enterprise.EnterpriseUserDataKeysByNode.keys: object expected'); message.keys[i] = $root.Enterprise.EnterpriseUserDataKeyLight.fromObject(object.keys[i]); } } @@ -61974,22 +64291,25 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ EnterpriseUserDataKeysByNode.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.keys = []; + if (options.arrays || options.defaults) object.keys = []; if (options.defaults) if ($util.Long) { let long = new $util.Long(0, 0, false); - object.nodeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.nodeId = options.longs === String ? "0" : 0; - if (message.nodeId != null && message.hasOwnProperty("nodeId")) - if (typeof message.nodeId === "number") + object.nodeId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.nodeId = options.longs === String ? '0' : 0; + if (message.nodeId != null && message.hasOwnProperty('nodeId')) + if (typeof message.nodeId === 'number') object.nodeId = options.longs === String ? String(message.nodeId) : message.nodeId; else - object.nodeId = options.longs === String ? $util.Long.prototype.toString.call(message.nodeId) : options.longs === Number ? new $util.LongBits(message.nodeId.low >>> 0, message.nodeId.high >>> 0).toNumber() : message.nodeId; + object.nodeId = + options.longs === String + ? $util.Long.prototype.toString.call(message.nodeId) + : options.longs === Number + ? new $util.LongBits(message.nodeId.low >>> 0, message.nodeId.high >>> 0).toNumber() + : message.nodeId; if (message.keys && message.keys.length) { object.keys = []; for (let j = 0; j < message.keys.length; ++j) @@ -62019,16 +64339,15 @@ export const Enterprise = $root.Enterprise = (() => { */ EnterpriseUserDataKeysByNode.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.EnterpriseUserDataKeysByNode"; + return typeUrlPrefix + '/Enterprise.EnterpriseUserDataKeysByNode'; }; return EnterpriseUserDataKeysByNode; })(); - Enterprise.EnterpriseUserDataKeysByNodeResponse = (function() { - + Enterprise.EnterpriseUserDataKeysByNodeResponse = (function () { /** * Properties of an EnterpriseUserDataKeysByNodeResponse. * @memberof Enterprise @@ -62048,8 +64367,7 @@ export const Enterprise = $root.Enterprise = (() => { this.keys = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -62082,11 +64400,13 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ EnterpriseUserDataKeysByNodeResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.keys != null && message.keys.length) for (let i = 0; i < message.keys.length; ++i) - $root.Enterprise.EnterpriseUserDataKeysByNode.encode(message.keys[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.Enterprise.EnterpriseUserDataKeysByNode.encode( + message.keys[i], + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); return writer; }; @@ -62115,21 +64435,22 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ EnterpriseUserDataKeysByNodeResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.EnterpriseUserDataKeysByNodeResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.EnterpriseUserDataKeysByNodeResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (!(message.keys && message.keys.length)) - message.keys = []; - message.keys.push($root.Enterprise.EnterpriseUserDataKeysByNode.decode(reader, reader.uint32())); + case 1: { + if (!(message.keys && message.keys.length)) message.keys = []; + message.keys.push( + $root.Enterprise.EnterpriseUserDataKeysByNode.decode(reader, reader.uint32()) + ); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -62146,8 +64467,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ EnterpriseUserDataKeysByNodeResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -62160,15 +64480,12 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ EnterpriseUserDataKeysByNodeResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.keys != null && message.hasOwnProperty("keys")) { - if (!Array.isArray(message.keys)) - return "keys: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.keys != null && message.hasOwnProperty('keys')) { + if (!Array.isArray(message.keys)) return 'keys: array expected'; for (let i = 0; i < message.keys.length; ++i) { let error = $root.Enterprise.EnterpriseUserDataKeysByNode.verify(message.keys[i]); - if (error) - return "keys." + error; + if (error) return 'keys.' + error; } } return null; @@ -62183,16 +64500,15 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.EnterpriseUserDataKeysByNodeResponse} EnterpriseUserDataKeysByNodeResponse */ EnterpriseUserDataKeysByNodeResponse.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.EnterpriseUserDataKeysByNodeResponse) - return object; + if (object instanceof $root.Enterprise.EnterpriseUserDataKeysByNodeResponse) return object; let message = new $root.Enterprise.EnterpriseUserDataKeysByNodeResponse(); if (object.keys) { if (!Array.isArray(object.keys)) - throw TypeError(".Enterprise.EnterpriseUserDataKeysByNodeResponse.keys: array expected"); + throw TypeError('.Enterprise.EnterpriseUserDataKeysByNodeResponse.keys: array expected'); message.keys = []; for (let i = 0; i < object.keys.length; ++i) { - if (typeof object.keys[i] !== "object") - throw TypeError(".Enterprise.EnterpriseUserDataKeysByNodeResponse.keys: object expected"); + if (typeof object.keys[i] !== 'object') + throw TypeError('.Enterprise.EnterpriseUserDataKeysByNodeResponse.keys: object expected'); message.keys[i] = $root.Enterprise.EnterpriseUserDataKeysByNode.fromObject(object.keys[i]); } } @@ -62209,11 +64525,9 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ EnterpriseUserDataKeysByNodeResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.keys = []; + if (options.arrays || options.defaults) object.keys = []; if (message.keys && message.keys.length) { object.keys = []; for (let j = 0; j < message.keys.length; ++j) @@ -62243,16 +64557,15 @@ export const Enterprise = $root.Enterprise = (() => { */ EnterpriseUserDataKeysByNodeResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.EnterpriseUserDataKeysByNodeResponse"; + return typeUrlPrefix + '/Enterprise.EnterpriseUserDataKeysByNodeResponse'; }; return EnterpriseUserDataKeysByNodeResponse; })(); - Enterprise.EnterpriseDataRequest = (function() { - + Enterprise.EnterpriseDataRequest = (function () { /** * Properties of an EnterpriseDataRequest. * @memberof Enterprise @@ -62271,8 +64584,7 @@ export const Enterprise = $root.Enterprise = (() => { function EnterpriseDataRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -62305,10 +64617,9 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ EnterpriseDataRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.continuationToken != null && Object.hasOwnProperty.call(message, "continuationToken")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.continuationToken); + if (!writer) writer = $Writer.create(); + if (message.continuationToken != null && Object.hasOwnProperty.call(message, 'continuationToken')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.continuationToken); return writer; }; @@ -62337,19 +64648,19 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ EnterpriseDataRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.EnterpriseDataRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.EnterpriseDataRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.continuationToken = reader.bytes(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -62366,8 +64677,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ EnterpriseDataRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -62380,11 +64690,15 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ EnterpriseDataRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.continuationToken != null && message.hasOwnProperty("continuationToken")) - if (!(message.continuationToken && typeof message.continuationToken.length === "number" || $util.isString(message.continuationToken))) - return "continuationToken: buffer expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.continuationToken != null && message.hasOwnProperty('continuationToken')) + if ( + !( + (message.continuationToken && typeof message.continuationToken.length === 'number') || + $util.isString(message.continuationToken) + ) + ) + return 'continuationToken: buffer expected'; return null; }; @@ -62397,14 +64711,16 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.EnterpriseDataRequest} EnterpriseDataRequest */ EnterpriseDataRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.EnterpriseDataRequest) - return object; + if (object instanceof $root.Enterprise.EnterpriseDataRequest) return object; let message = new $root.Enterprise.EnterpriseDataRequest(); if (object.continuationToken != null) - if (typeof object.continuationToken === "string") - $util.base64.decode(object.continuationToken, message.continuationToken = $util.newBuffer($util.base64.length(object.continuationToken)), 0); - else if (object.continuationToken.length >= 0) - message.continuationToken = object.continuationToken; + if (typeof object.continuationToken === 'string') + $util.base64.decode( + object.continuationToken, + (message.continuationToken = $util.newBuffer($util.base64.length(object.continuationToken))), + 0 + ); + else if (object.continuationToken.length >= 0) message.continuationToken = object.continuationToken; return message; }; @@ -62418,19 +64734,21 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ EnterpriseDataRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) - if (options.bytes === String) - object.continuationToken = ""; + if (options.bytes === String) object.continuationToken = ''; else { object.continuationToken = []; - if (options.bytes !== Array) - object.continuationToken = $util.newBuffer(object.continuationToken); + if (options.bytes !== Array) object.continuationToken = $util.newBuffer(object.continuationToken); } - if (message.continuationToken != null && message.hasOwnProperty("continuationToken")) - object.continuationToken = options.bytes === String ? $util.base64.encode(message.continuationToken, 0, message.continuationToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.continuationToken) : message.continuationToken; + if (message.continuationToken != null && message.hasOwnProperty('continuationToken')) + object.continuationToken = + options.bytes === String + ? $util.base64.encode(message.continuationToken, 0, message.continuationToken.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.continuationToken) + : message.continuationToken; return object; }; @@ -62455,16 +64773,15 @@ export const Enterprise = $root.Enterprise = (() => { */ EnterpriseDataRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.EnterpriseDataRequest"; + return typeUrlPrefix + '/Enterprise.EnterpriseDataRequest'; }; return EnterpriseDataRequest; })(); - Enterprise.SpecialProvisioning = (function() { - + Enterprise.SpecialProvisioning = (function () { /** * Properties of a SpecialProvisioning. * @memberof Enterprise @@ -62484,8 +64801,7 @@ export const Enterprise = $root.Enterprise = (() => { function SpecialProvisioning(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -62494,7 +64810,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.SpecialProvisioning * @instance */ - SpecialProvisioning.prototype.url = ""; + SpecialProvisioning.prototype.url = ''; /** * SpecialProvisioning name. @@ -62502,7 +64818,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.SpecialProvisioning * @instance */ - SpecialProvisioning.prototype.name = ""; + SpecialProvisioning.prototype.name = ''; /** * Creates a new SpecialProvisioning instance using the specified properties. @@ -62526,12 +64842,11 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ SpecialProvisioning.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.url != null && Object.hasOwnProperty.call(message, "url")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.url); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.name); + if (!writer) writer = $Writer.create(); + if (message.url != null && Object.hasOwnProperty.call(message, 'url')) + writer.uint32(/* id 1, wireType 2 =*/ 10).string(message.url); + if (message.name != null && Object.hasOwnProperty.call(message, 'name')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.name); return writer; }; @@ -62560,23 +64875,23 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SpecialProvisioning.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.SpecialProvisioning(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.SpecialProvisioning(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.url = reader.string(); break; } - case 2: { + case 2: { message.name = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -62593,8 +64908,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SpecialProvisioning.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -62607,14 +64921,11 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ SpecialProvisioning.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.url != null && message.hasOwnProperty("url")) - if (!$util.isString(message.url)) - return "url: string expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.url != null && message.hasOwnProperty('url')) + if (!$util.isString(message.url)) return 'url: string expected'; + if (message.name != null && message.hasOwnProperty('name')) + if (!$util.isString(message.name)) return 'name: string expected'; return null; }; @@ -62627,13 +64938,10 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.SpecialProvisioning} SpecialProvisioning */ SpecialProvisioning.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.SpecialProvisioning) - return object; + if (object instanceof $root.Enterprise.SpecialProvisioning) return object; let message = new $root.Enterprise.SpecialProvisioning(); - if (object.url != null) - message.url = String(object.url); - if (object.name != null) - message.name = String(object.name); + if (object.url != null) message.url = String(object.url); + if (object.name != null) message.name = String(object.name); return message; }; @@ -62647,17 +64955,14 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ SpecialProvisioning.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - object.url = ""; - object.name = ""; + object.url = ''; + object.name = ''; } - if (message.url != null && message.hasOwnProperty("url")) - object.url = message.url; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + if (message.url != null && message.hasOwnProperty('url')) object.url = message.url; + if (message.name != null && message.hasOwnProperty('name')) object.name = message.name; return object; }; @@ -62682,16 +64987,15 @@ export const Enterprise = $root.Enterprise = (() => { */ SpecialProvisioning.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.SpecialProvisioning"; + return typeUrlPrefix + '/Enterprise.SpecialProvisioning'; }; return SpecialProvisioning; })(); - Enterprise.GeneralDataEntity = (function() { - + Enterprise.GeneralDataEntity = (function () { /** * Properties of a GeneralDataEntity. * @memberof Enterprise @@ -62716,8 +65020,7 @@ export const Enterprise = $root.Enterprise = (() => { function GeneralDataEntity(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -62726,7 +65029,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.GeneralDataEntity * @instance */ - GeneralDataEntity.prototype.enterpriseName = ""; + GeneralDataEntity.prototype.enterpriseName = ''; /** * GeneralDataEntity restrictVisibility. @@ -62798,22 +65101,27 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ GeneralDataEntity.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.enterpriseName != null && Object.hasOwnProperty.call(message, "enterpriseName")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.enterpriseName); - if (message.restrictVisibility != null && Object.hasOwnProperty.call(message, "restrictVisibility")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.restrictVisibility); - if (message.specialProvisioning != null && Object.hasOwnProperty.call(message, "specialProvisioning")) - $root.Enterprise.SpecialProvisioning.encode(message.specialProvisioning, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.userPrivilege != null && Object.hasOwnProperty.call(message, "userPrivilege")) - $root.Enterprise.UserPrivilege.encode(message.userPrivilege, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.distributor != null && Object.hasOwnProperty.call(message, "distributor")) - writer.uint32(/* id 8, wireType 0 =*/64).bool(message.distributor); - if (message.forbidAccountTransfer != null && Object.hasOwnProperty.call(message, "forbidAccountTransfer")) - writer.uint32(/* id 9, wireType 0 =*/72).bool(message.forbidAccountTransfer); - if (message.showUserOnboard != null && Object.hasOwnProperty.call(message, "showUserOnboard")) - writer.uint32(/* id 10, wireType 0 =*/80).bool(message.showUserOnboard); + if (!writer) writer = $Writer.create(); + if (message.enterpriseName != null && Object.hasOwnProperty.call(message, 'enterpriseName')) + writer.uint32(/* id 1, wireType 2 =*/ 10).string(message.enterpriseName); + if (message.restrictVisibility != null && Object.hasOwnProperty.call(message, 'restrictVisibility')) + writer.uint32(/* id 2, wireType 0 =*/ 16).bool(message.restrictVisibility); + if (message.specialProvisioning != null && Object.hasOwnProperty.call(message, 'specialProvisioning')) + $root.Enterprise.SpecialProvisioning.encode( + message.specialProvisioning, + writer.uint32(/* id 4, wireType 2 =*/ 34).fork() + ).ldelim(); + if (message.userPrivilege != null && Object.hasOwnProperty.call(message, 'userPrivilege')) + $root.Enterprise.UserPrivilege.encode( + message.userPrivilege, + writer.uint32(/* id 7, wireType 2 =*/ 58).fork() + ).ldelim(); + if (message.distributor != null && Object.hasOwnProperty.call(message, 'distributor')) + writer.uint32(/* id 8, wireType 0 =*/ 64).bool(message.distributor); + if (message.forbidAccountTransfer != null && Object.hasOwnProperty.call(message, 'forbidAccountTransfer')) + writer.uint32(/* id 9, wireType 0 =*/ 72).bool(message.forbidAccountTransfer); + if (message.showUserOnboard != null && Object.hasOwnProperty.call(message, 'showUserOnboard')) + writer.uint32(/* id 10, wireType 0 =*/ 80).bool(message.showUserOnboard); return writer; }; @@ -62842,43 +65150,46 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ GeneralDataEntity.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.GeneralDataEntity(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.GeneralDataEntity(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.enterpriseName = reader.string(); break; } - case 2: { + case 2: { message.restrictVisibility = reader.bool(); break; } - case 4: { - message.specialProvisioning = $root.Enterprise.SpecialProvisioning.decode(reader, reader.uint32()); + case 4: { + message.specialProvisioning = $root.Enterprise.SpecialProvisioning.decode( + reader, + reader.uint32() + ); break; } - case 7: { + case 7: { message.userPrivilege = $root.Enterprise.UserPrivilege.decode(reader, reader.uint32()); break; } - case 8: { + case 8: { message.distributor = reader.bool(); break; } - case 9: { + case 9: { message.forbidAccountTransfer = reader.bool(); break; } - case 10: { + case 10: { message.showUserOnboard = reader.bool(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -62895,8 +65206,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ GeneralDataEntity.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -62909,33 +65219,26 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ GeneralDataEntity.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.enterpriseName != null && message.hasOwnProperty("enterpriseName")) - if (!$util.isString(message.enterpriseName)) - return "enterpriseName: string expected"; - if (message.restrictVisibility != null && message.hasOwnProperty("restrictVisibility")) - if (typeof message.restrictVisibility !== "boolean") - return "restrictVisibility: boolean expected"; - if (message.specialProvisioning != null && message.hasOwnProperty("specialProvisioning")) { + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.enterpriseName != null && message.hasOwnProperty('enterpriseName')) + if (!$util.isString(message.enterpriseName)) return 'enterpriseName: string expected'; + if (message.restrictVisibility != null && message.hasOwnProperty('restrictVisibility')) + if (typeof message.restrictVisibility !== 'boolean') return 'restrictVisibility: boolean expected'; + if (message.specialProvisioning != null && message.hasOwnProperty('specialProvisioning')) { let error = $root.Enterprise.SpecialProvisioning.verify(message.specialProvisioning); - if (error) - return "specialProvisioning." + error; + if (error) return 'specialProvisioning.' + error; } - if (message.userPrivilege != null && message.hasOwnProperty("userPrivilege")) { + if (message.userPrivilege != null && message.hasOwnProperty('userPrivilege')) { let error = $root.Enterprise.UserPrivilege.verify(message.userPrivilege); - if (error) - return "userPrivilege." + error; + if (error) return 'userPrivilege.' + error; } - if (message.distributor != null && message.hasOwnProperty("distributor")) - if (typeof message.distributor !== "boolean") - return "distributor: boolean expected"; - if (message.forbidAccountTransfer != null && message.hasOwnProperty("forbidAccountTransfer")) - if (typeof message.forbidAccountTransfer !== "boolean") - return "forbidAccountTransfer: boolean expected"; - if (message.showUserOnboard != null && message.hasOwnProperty("showUserOnboard")) - if (typeof message.showUserOnboard !== "boolean") - return "showUserOnboard: boolean expected"; + if (message.distributor != null && message.hasOwnProperty('distributor')) + if (typeof message.distributor !== 'boolean') return 'distributor: boolean expected'; + if (message.forbidAccountTransfer != null && message.hasOwnProperty('forbidAccountTransfer')) + if (typeof message.forbidAccountTransfer !== 'boolean') + return 'forbidAccountTransfer: boolean expected'; + if (message.showUserOnboard != null && message.hasOwnProperty('showUserOnboard')) + if (typeof message.showUserOnboard !== 'boolean') return 'showUserOnboard: boolean expected'; return null; }; @@ -62948,29 +65251,26 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.GeneralDataEntity} GeneralDataEntity */ GeneralDataEntity.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.GeneralDataEntity) - return object; + if (object instanceof $root.Enterprise.GeneralDataEntity) return object; let message = new $root.Enterprise.GeneralDataEntity(); - if (object.enterpriseName != null) - message.enterpriseName = String(object.enterpriseName); - if (object.restrictVisibility != null) - message.restrictVisibility = Boolean(object.restrictVisibility); + if (object.enterpriseName != null) message.enterpriseName = String(object.enterpriseName); + if (object.restrictVisibility != null) message.restrictVisibility = Boolean(object.restrictVisibility); if (object.specialProvisioning != null) { - if (typeof object.specialProvisioning !== "object") - throw TypeError(".Enterprise.GeneralDataEntity.specialProvisioning: object expected"); - message.specialProvisioning = $root.Enterprise.SpecialProvisioning.fromObject(object.specialProvisioning); + if (typeof object.specialProvisioning !== 'object') + throw TypeError('.Enterprise.GeneralDataEntity.specialProvisioning: object expected'); + message.specialProvisioning = $root.Enterprise.SpecialProvisioning.fromObject( + object.specialProvisioning + ); } if (object.userPrivilege != null) { - if (typeof object.userPrivilege !== "object") - throw TypeError(".Enterprise.GeneralDataEntity.userPrivilege: object expected"); + if (typeof object.userPrivilege !== 'object') + throw TypeError('.Enterprise.GeneralDataEntity.userPrivilege: object expected'); message.userPrivilege = $root.Enterprise.UserPrivilege.fromObject(object.userPrivilege); } - if (object.distributor != null) - message.distributor = Boolean(object.distributor); + if (object.distributor != null) message.distributor = Boolean(object.distributor); if (object.forbidAccountTransfer != null) message.forbidAccountTransfer = Boolean(object.forbidAccountTransfer); - if (object.showUserOnboard != null) - message.showUserOnboard = Boolean(object.showUserOnboard); + if (object.showUserOnboard != null) message.showUserOnboard = Boolean(object.showUserOnboard); return message; }; @@ -62984,11 +65284,10 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ GeneralDataEntity.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - object.enterpriseName = ""; + object.enterpriseName = ''; object.restrictVisibility = false; object.specialProvisioning = null; object.userPrivilege = null; @@ -62996,19 +65295,22 @@ export const Enterprise = $root.Enterprise = (() => { object.forbidAccountTransfer = false; object.showUserOnboard = false; } - if (message.enterpriseName != null && message.hasOwnProperty("enterpriseName")) + if (message.enterpriseName != null && message.hasOwnProperty('enterpriseName')) object.enterpriseName = message.enterpriseName; - if (message.restrictVisibility != null && message.hasOwnProperty("restrictVisibility")) + if (message.restrictVisibility != null && message.hasOwnProperty('restrictVisibility')) object.restrictVisibility = message.restrictVisibility; - if (message.specialProvisioning != null && message.hasOwnProperty("specialProvisioning")) - object.specialProvisioning = $root.Enterprise.SpecialProvisioning.toObject(message.specialProvisioning, options); - if (message.userPrivilege != null && message.hasOwnProperty("userPrivilege")) + if (message.specialProvisioning != null && message.hasOwnProperty('specialProvisioning')) + object.specialProvisioning = $root.Enterprise.SpecialProvisioning.toObject( + message.specialProvisioning, + options + ); + if (message.userPrivilege != null && message.hasOwnProperty('userPrivilege')) object.userPrivilege = $root.Enterprise.UserPrivilege.toObject(message.userPrivilege, options); - if (message.distributor != null && message.hasOwnProperty("distributor")) + if (message.distributor != null && message.hasOwnProperty('distributor')) object.distributor = message.distributor; - if (message.forbidAccountTransfer != null && message.hasOwnProperty("forbidAccountTransfer")) + if (message.forbidAccountTransfer != null && message.hasOwnProperty('forbidAccountTransfer')) object.forbidAccountTransfer = message.forbidAccountTransfer; - if (message.showUserOnboard != null && message.hasOwnProperty("showUserOnboard")) + if (message.showUserOnboard != null && message.hasOwnProperty('showUserOnboard')) object.showUserOnboard = message.showUserOnboard; return object; }; @@ -63034,16 +65336,15 @@ export const Enterprise = $root.Enterprise = (() => { */ GeneralDataEntity.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.GeneralDataEntity"; + return typeUrlPrefix + '/Enterprise.GeneralDataEntity'; }; return GeneralDataEntity; })(); - Enterprise.Node = (function() { - + Enterprise.Node = (function () { /** * Properties of a Node. * @memberof Enterprise @@ -63073,8 +65374,7 @@ export const Enterprise = $root.Enterprise = (() => { this.ssoServiceProviderIds = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -63083,7 +65383,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.Node * @instance */ - Node.prototype.nodeId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + Node.prototype.nodeId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * Node parentId. @@ -63091,7 +65391,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.Node * @instance */ - Node.prototype.parentId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + Node.prototype.parentId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * Node bridgeId. @@ -63099,7 +65399,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.Node * @instance */ - Node.prototype.bridgeId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + Node.prototype.bridgeId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * Node scimId. @@ -63107,7 +65407,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.Node * @instance */ - Node.prototype.scimId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + Node.prototype.scimId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * Node licenseId. @@ -63115,7 +65415,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.Node * @instance */ - Node.prototype.licenseId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + Node.prototype.licenseId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * Node encryptedData. @@ -63123,7 +65423,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.Node * @instance */ - Node.prototype.encryptedData = ""; + Node.prototype.encryptedData = ''; /** * Node duoEnabled. @@ -63147,7 +65447,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.Node * @instance */ - Node.prototype.ssoServiceProviderId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + Node.prototype.ssoServiceProviderId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * Node restrictVisibility. @@ -63187,30 +65487,29 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ Node.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.nodeId != null && Object.hasOwnProperty.call(message, "nodeId")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.nodeId); - if (message.parentId != null && Object.hasOwnProperty.call(message, "parentId")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.parentId); - if (message.bridgeId != null && Object.hasOwnProperty.call(message, "bridgeId")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.bridgeId); - if (message.scimId != null && Object.hasOwnProperty.call(message, "scimId")) - writer.uint32(/* id 4, wireType 0 =*/32).int64(message.scimId); - if (message.licenseId != null && Object.hasOwnProperty.call(message, "licenseId")) - writer.uint32(/* id 5, wireType 0 =*/40).int64(message.licenseId); - if (message.encryptedData != null && Object.hasOwnProperty.call(message, "encryptedData")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.encryptedData); - if (message.duoEnabled != null && Object.hasOwnProperty.call(message, "duoEnabled")) - writer.uint32(/* id 7, wireType 0 =*/56).bool(message.duoEnabled); - if (message.rsaEnabled != null && Object.hasOwnProperty.call(message, "rsaEnabled")) - writer.uint32(/* id 8, wireType 0 =*/64).bool(message.rsaEnabled); - if (message.ssoServiceProviderId != null && Object.hasOwnProperty.call(message, "ssoServiceProviderId")) - writer.uint32(/* id 9, wireType 0 =*/72).int64(message.ssoServiceProviderId); - if (message.restrictVisibility != null && Object.hasOwnProperty.call(message, "restrictVisibility")) - writer.uint32(/* id 10, wireType 0 =*/80).bool(message.restrictVisibility); + if (!writer) writer = $Writer.create(); + if (message.nodeId != null && Object.hasOwnProperty.call(message, 'nodeId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int64(message.nodeId); + if (message.parentId != null && Object.hasOwnProperty.call(message, 'parentId')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int64(message.parentId); + if (message.bridgeId != null && Object.hasOwnProperty.call(message, 'bridgeId')) + writer.uint32(/* id 3, wireType 0 =*/ 24).int64(message.bridgeId); + if (message.scimId != null && Object.hasOwnProperty.call(message, 'scimId')) + writer.uint32(/* id 4, wireType 0 =*/ 32).int64(message.scimId); + if (message.licenseId != null && Object.hasOwnProperty.call(message, 'licenseId')) + writer.uint32(/* id 5, wireType 0 =*/ 40).int64(message.licenseId); + if (message.encryptedData != null && Object.hasOwnProperty.call(message, 'encryptedData')) + writer.uint32(/* id 6, wireType 2 =*/ 50).string(message.encryptedData); + if (message.duoEnabled != null && Object.hasOwnProperty.call(message, 'duoEnabled')) + writer.uint32(/* id 7, wireType 0 =*/ 56).bool(message.duoEnabled); + if (message.rsaEnabled != null && Object.hasOwnProperty.call(message, 'rsaEnabled')) + writer.uint32(/* id 8, wireType 0 =*/ 64).bool(message.rsaEnabled); + if (message.ssoServiceProviderId != null && Object.hasOwnProperty.call(message, 'ssoServiceProviderId')) + writer.uint32(/* id 9, wireType 0 =*/ 72).int64(message.ssoServiceProviderId); + if (message.restrictVisibility != null && Object.hasOwnProperty.call(message, 'restrictVisibility')) + writer.uint32(/* id 10, wireType 0 =*/ 80).bool(message.restrictVisibility); if (message.ssoServiceProviderIds != null && message.ssoServiceProviderIds.length) { - writer.uint32(/* id 11, wireType 2 =*/90).fork(); + writer.uint32(/* id 11, wireType 2 =*/ 90).fork(); for (let i = 0; i < message.ssoServiceProviderIds.length; ++i) writer.int64(message.ssoServiceProviderIds[i]); writer.ldelim(); @@ -63243,66 +65542,64 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ Node.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.Node(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.Node(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.nodeId = reader.int64(); break; } - case 2: { + case 2: { message.parentId = reader.int64(); break; } - case 3: { + case 3: { message.bridgeId = reader.int64(); break; } - case 4: { + case 4: { message.scimId = reader.int64(); break; } - case 5: { + case 5: { message.licenseId = reader.int64(); break; } - case 6: { + case 6: { message.encryptedData = reader.string(); break; } - case 7: { + case 7: { message.duoEnabled = reader.bool(); break; } - case 8: { + case 8: { message.rsaEnabled = reader.bool(); break; } - case 9: { + case 9: { message.ssoServiceProviderId = reader.int64(); break; } - case 10: { + case 10: { message.restrictVisibility = reader.bool(); break; } - case 11: { + case 11: { if (!(message.ssoServiceProviderIds && message.ssoServiceProviderIds.length)) message.ssoServiceProviderIds = []; if ((tag & 7) === 2) { let end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.ssoServiceProviderIds.push(reader.int64()); - } else - message.ssoServiceProviderIds.push(reader.int64()); + while (reader.pos < end2) message.ssoServiceProviderIds.push(reader.int64()); + } else message.ssoServiceProviderIds.push(reader.int64()); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -63319,8 +65616,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ Node.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -63333,44 +65629,79 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ Node.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.nodeId != null && message.hasOwnProperty("nodeId")) - if (!$util.isInteger(message.nodeId) && !(message.nodeId && $util.isInteger(message.nodeId.low) && $util.isInteger(message.nodeId.high))) - return "nodeId: integer|Long expected"; - if (message.parentId != null && message.hasOwnProperty("parentId")) - if (!$util.isInteger(message.parentId) && !(message.parentId && $util.isInteger(message.parentId.low) && $util.isInteger(message.parentId.high))) - return "parentId: integer|Long expected"; - if (message.bridgeId != null && message.hasOwnProperty("bridgeId")) - if (!$util.isInteger(message.bridgeId) && !(message.bridgeId && $util.isInteger(message.bridgeId.low) && $util.isInteger(message.bridgeId.high))) - return "bridgeId: integer|Long expected"; - if (message.scimId != null && message.hasOwnProperty("scimId")) - if (!$util.isInteger(message.scimId) && !(message.scimId && $util.isInteger(message.scimId.low) && $util.isInteger(message.scimId.high))) - return "scimId: integer|Long expected"; - if (message.licenseId != null && message.hasOwnProperty("licenseId")) - if (!$util.isInteger(message.licenseId) && !(message.licenseId && $util.isInteger(message.licenseId.low) && $util.isInteger(message.licenseId.high))) - return "licenseId: integer|Long expected"; - if (message.encryptedData != null && message.hasOwnProperty("encryptedData")) - if (!$util.isString(message.encryptedData)) - return "encryptedData: string expected"; - if (message.duoEnabled != null && message.hasOwnProperty("duoEnabled")) - if (typeof message.duoEnabled !== "boolean") - return "duoEnabled: boolean expected"; - if (message.rsaEnabled != null && message.hasOwnProperty("rsaEnabled")) - if (typeof message.rsaEnabled !== "boolean") - return "rsaEnabled: boolean expected"; - if (message.ssoServiceProviderId != null && message.hasOwnProperty("ssoServiceProviderId")) - if (!$util.isInteger(message.ssoServiceProviderId) && !(message.ssoServiceProviderId && $util.isInteger(message.ssoServiceProviderId.low) && $util.isInteger(message.ssoServiceProviderId.high))) - return "ssoServiceProviderId: integer|Long expected"; - if (message.restrictVisibility != null && message.hasOwnProperty("restrictVisibility")) - if (typeof message.restrictVisibility !== "boolean") - return "restrictVisibility: boolean expected"; - if (message.ssoServiceProviderIds != null && message.hasOwnProperty("ssoServiceProviderIds")) { - if (!Array.isArray(message.ssoServiceProviderIds)) - return "ssoServiceProviderIds: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.nodeId != null && message.hasOwnProperty('nodeId')) + if ( + !$util.isInteger(message.nodeId) && + !(message.nodeId && $util.isInteger(message.nodeId.low) && $util.isInteger(message.nodeId.high)) + ) + return 'nodeId: integer|Long expected'; + if (message.parentId != null && message.hasOwnProperty('parentId')) + if ( + !$util.isInteger(message.parentId) && + !( + message.parentId && + $util.isInteger(message.parentId.low) && + $util.isInteger(message.parentId.high) + ) + ) + return 'parentId: integer|Long expected'; + if (message.bridgeId != null && message.hasOwnProperty('bridgeId')) + if ( + !$util.isInteger(message.bridgeId) && + !( + message.bridgeId && + $util.isInteger(message.bridgeId.low) && + $util.isInteger(message.bridgeId.high) + ) + ) + return 'bridgeId: integer|Long expected'; + if (message.scimId != null && message.hasOwnProperty('scimId')) + if ( + !$util.isInteger(message.scimId) && + !(message.scimId && $util.isInteger(message.scimId.low) && $util.isInteger(message.scimId.high)) + ) + return 'scimId: integer|Long expected'; + if (message.licenseId != null && message.hasOwnProperty('licenseId')) + if ( + !$util.isInteger(message.licenseId) && + !( + message.licenseId && + $util.isInteger(message.licenseId.low) && + $util.isInteger(message.licenseId.high) + ) + ) + return 'licenseId: integer|Long expected'; + if (message.encryptedData != null && message.hasOwnProperty('encryptedData')) + if (!$util.isString(message.encryptedData)) return 'encryptedData: string expected'; + if (message.duoEnabled != null && message.hasOwnProperty('duoEnabled')) + if (typeof message.duoEnabled !== 'boolean') return 'duoEnabled: boolean expected'; + if (message.rsaEnabled != null && message.hasOwnProperty('rsaEnabled')) + if (typeof message.rsaEnabled !== 'boolean') return 'rsaEnabled: boolean expected'; + if (message.ssoServiceProviderId != null && message.hasOwnProperty('ssoServiceProviderId')) + if ( + !$util.isInteger(message.ssoServiceProviderId) && + !( + message.ssoServiceProviderId && + $util.isInteger(message.ssoServiceProviderId.low) && + $util.isInteger(message.ssoServiceProviderId.high) + ) + ) + return 'ssoServiceProviderId: integer|Long expected'; + if (message.restrictVisibility != null && message.hasOwnProperty('restrictVisibility')) + if (typeof message.restrictVisibility !== 'boolean') return 'restrictVisibility: boolean expected'; + if (message.ssoServiceProviderIds != null && message.hasOwnProperty('ssoServiceProviderIds')) { + if (!Array.isArray(message.ssoServiceProviderIds)) return 'ssoServiceProviderIds: array expected'; for (let i = 0; i < message.ssoServiceProviderIds.length; ++i) - if (!$util.isInteger(message.ssoServiceProviderIds[i]) && !(message.ssoServiceProviderIds[i] && $util.isInteger(message.ssoServiceProviderIds[i].low) && $util.isInteger(message.ssoServiceProviderIds[i].high))) - return "ssoServiceProviderIds: integer|Long[] expected"; + if ( + !$util.isInteger(message.ssoServiceProviderIds[i]) && + !( + message.ssoServiceProviderIds[i] && + $util.isInteger(message.ssoServiceProviderIds[i].low) && + $util.isInteger(message.ssoServiceProviderIds[i].high) + ) + ) + return 'ssoServiceProviderIds: integer|Long[] expected'; } return null; }; @@ -63384,84 +65715,81 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.Node} Node */ Node.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.Node) - return object; + if (object instanceof $root.Enterprise.Node) return object; let message = new $root.Enterprise.Node(); if (object.nodeId != null) - if ($util.Long) - (message.nodeId = $util.Long.fromValue(object.nodeId)).unsigned = false; - else if (typeof object.nodeId === "string") - message.nodeId = parseInt(object.nodeId, 10); - else if (typeof object.nodeId === "number") - message.nodeId = object.nodeId; - else if (typeof object.nodeId === "object") + if ($util.Long) (message.nodeId = $util.Long.fromValue(object.nodeId)).unsigned = false; + else if (typeof object.nodeId === 'string') message.nodeId = parseInt(object.nodeId, 10); + else if (typeof object.nodeId === 'number') message.nodeId = object.nodeId; + else if (typeof object.nodeId === 'object') message.nodeId = new $util.LongBits(object.nodeId.low >>> 0, object.nodeId.high >>> 0).toNumber(); if (object.parentId != null) - if ($util.Long) - (message.parentId = $util.Long.fromValue(object.parentId)).unsigned = false; - else if (typeof object.parentId === "string") - message.parentId = parseInt(object.parentId, 10); - else if (typeof object.parentId === "number") - message.parentId = object.parentId; - else if (typeof object.parentId === "object") - message.parentId = new $util.LongBits(object.parentId.low >>> 0, object.parentId.high >>> 0).toNumber(); + if ($util.Long) (message.parentId = $util.Long.fromValue(object.parentId)).unsigned = false; + else if (typeof object.parentId === 'string') message.parentId = parseInt(object.parentId, 10); + else if (typeof object.parentId === 'number') message.parentId = object.parentId; + else if (typeof object.parentId === 'object') + message.parentId = new $util.LongBits( + object.parentId.low >>> 0, + object.parentId.high >>> 0 + ).toNumber(); if (object.bridgeId != null) - if ($util.Long) - (message.bridgeId = $util.Long.fromValue(object.bridgeId)).unsigned = false; - else if (typeof object.bridgeId === "string") - message.bridgeId = parseInt(object.bridgeId, 10); - else if (typeof object.bridgeId === "number") - message.bridgeId = object.bridgeId; - else if (typeof object.bridgeId === "object") - message.bridgeId = new $util.LongBits(object.bridgeId.low >>> 0, object.bridgeId.high >>> 0).toNumber(); + if ($util.Long) (message.bridgeId = $util.Long.fromValue(object.bridgeId)).unsigned = false; + else if (typeof object.bridgeId === 'string') message.bridgeId = parseInt(object.bridgeId, 10); + else if (typeof object.bridgeId === 'number') message.bridgeId = object.bridgeId; + else if (typeof object.bridgeId === 'object') + message.bridgeId = new $util.LongBits( + object.bridgeId.low >>> 0, + object.bridgeId.high >>> 0 + ).toNumber(); if (object.scimId != null) - if ($util.Long) - (message.scimId = $util.Long.fromValue(object.scimId)).unsigned = false; - else if (typeof object.scimId === "string") - message.scimId = parseInt(object.scimId, 10); - else if (typeof object.scimId === "number") - message.scimId = object.scimId; - else if (typeof object.scimId === "object") + if ($util.Long) (message.scimId = $util.Long.fromValue(object.scimId)).unsigned = false; + else if (typeof object.scimId === 'string') message.scimId = parseInt(object.scimId, 10); + else if (typeof object.scimId === 'number') message.scimId = object.scimId; + else if (typeof object.scimId === 'object') message.scimId = new $util.LongBits(object.scimId.low >>> 0, object.scimId.high >>> 0).toNumber(); if (object.licenseId != null) - if ($util.Long) - (message.licenseId = $util.Long.fromValue(object.licenseId)).unsigned = false; - else if (typeof object.licenseId === "string") - message.licenseId = parseInt(object.licenseId, 10); - else if (typeof object.licenseId === "number") - message.licenseId = object.licenseId; - else if (typeof object.licenseId === "object") - message.licenseId = new $util.LongBits(object.licenseId.low >>> 0, object.licenseId.high >>> 0).toNumber(); - if (object.encryptedData != null) - message.encryptedData = String(object.encryptedData); - if (object.duoEnabled != null) - message.duoEnabled = Boolean(object.duoEnabled); - if (object.rsaEnabled != null) - message.rsaEnabled = Boolean(object.rsaEnabled); + if ($util.Long) (message.licenseId = $util.Long.fromValue(object.licenseId)).unsigned = false; + else if (typeof object.licenseId === 'string') message.licenseId = parseInt(object.licenseId, 10); + else if (typeof object.licenseId === 'number') message.licenseId = object.licenseId; + else if (typeof object.licenseId === 'object') + message.licenseId = new $util.LongBits( + object.licenseId.low >>> 0, + object.licenseId.high >>> 0 + ).toNumber(); + if (object.encryptedData != null) message.encryptedData = String(object.encryptedData); + if (object.duoEnabled != null) message.duoEnabled = Boolean(object.duoEnabled); + if (object.rsaEnabled != null) message.rsaEnabled = Boolean(object.rsaEnabled); if (object.ssoServiceProviderId != null) if ($util.Long) (message.ssoServiceProviderId = $util.Long.fromValue(object.ssoServiceProviderId)).unsigned = false; - else if (typeof object.ssoServiceProviderId === "string") + else if (typeof object.ssoServiceProviderId === 'string') message.ssoServiceProviderId = parseInt(object.ssoServiceProviderId, 10); - else if (typeof object.ssoServiceProviderId === "number") + else if (typeof object.ssoServiceProviderId === 'number') message.ssoServiceProviderId = object.ssoServiceProviderId; - else if (typeof object.ssoServiceProviderId === "object") - message.ssoServiceProviderId = new $util.LongBits(object.ssoServiceProviderId.low >>> 0, object.ssoServiceProviderId.high >>> 0).toNumber(); - if (object.restrictVisibility != null) - message.restrictVisibility = Boolean(object.restrictVisibility); + else if (typeof object.ssoServiceProviderId === 'object') + message.ssoServiceProviderId = new $util.LongBits( + object.ssoServiceProviderId.low >>> 0, + object.ssoServiceProviderId.high >>> 0 + ).toNumber(); + if (object.restrictVisibility != null) message.restrictVisibility = Boolean(object.restrictVisibility); if (object.ssoServiceProviderIds) { if (!Array.isArray(object.ssoServiceProviderIds)) - throw TypeError(".Enterprise.Node.ssoServiceProviderIds: array expected"); + throw TypeError('.Enterprise.Node.ssoServiceProviderIds: array expected'); message.ssoServiceProviderIds = []; for (let i = 0; i < object.ssoServiceProviderIds.length; ++i) if ($util.Long) - (message.ssoServiceProviderIds[i] = $util.Long.fromValue(object.ssoServiceProviderIds[i])).unsigned = false; - else if (typeof object.ssoServiceProviderIds[i] === "string") + (message.ssoServiceProviderIds[i] = $util.Long.fromValue( + object.ssoServiceProviderIds[i] + )).unsigned = false; + else if (typeof object.ssoServiceProviderIds[i] === 'string') message.ssoServiceProviderIds[i] = parseInt(object.ssoServiceProviderIds[i], 10); - else if (typeof object.ssoServiceProviderIds[i] === "number") + else if (typeof object.ssoServiceProviderIds[i] === 'number') message.ssoServiceProviderIds[i] = object.ssoServiceProviderIds[i]; - else if (typeof object.ssoServiceProviderIds[i] === "object") - message.ssoServiceProviderIds[i] = new $util.LongBits(object.ssoServiceProviderIds[i].low >>> 0, object.ssoServiceProviderIds[i].high >>> 0).toNumber(); + else if (typeof object.ssoServiceProviderIds[i] === 'object') + message.ssoServiceProviderIds[i] = new $util.LongBits( + object.ssoServiceProviderIds[i].low >>> 0, + object.ssoServiceProviderIds[i].high >>> 0 + ).toNumber(); } return message; }; @@ -63476,92 +65804,135 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ Node.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.ssoServiceProviderIds = []; + if (options.arrays || options.defaults) object.ssoServiceProviderIds = []; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.nodeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.nodeId = options.longs === String ? "0" : 0; + object.nodeId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.nodeId = options.longs === String ? '0' : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.parentId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.parentId = options.longs === String ? "0" : 0; + object.parentId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.parentId = options.longs === String ? '0' : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.bridgeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.bridgeId = options.longs === String ? "0" : 0; + object.bridgeId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.bridgeId = options.longs === String ? '0' : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.scimId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.scimId = options.longs === String ? "0" : 0; + object.scimId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.scimId = options.longs === String ? '0' : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.licenseId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.licenseId = options.longs === String ? "0" : 0; - object.encryptedData = ""; + object.licenseId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.licenseId = options.longs === String ? '0' : 0; + object.encryptedData = ''; object.duoEnabled = false; object.rsaEnabled = false; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.ssoServiceProviderId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.ssoServiceProviderId = options.longs === String ? "0" : 0; + object.ssoServiceProviderId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.ssoServiceProviderId = options.longs === String ? '0' : 0; object.restrictVisibility = false; } - if (message.nodeId != null && message.hasOwnProperty("nodeId")) - if (typeof message.nodeId === "number") + if (message.nodeId != null && message.hasOwnProperty('nodeId')) + if (typeof message.nodeId === 'number') object.nodeId = options.longs === String ? String(message.nodeId) : message.nodeId; else - object.nodeId = options.longs === String ? $util.Long.prototype.toString.call(message.nodeId) : options.longs === Number ? new $util.LongBits(message.nodeId.low >>> 0, message.nodeId.high >>> 0).toNumber() : message.nodeId; - if (message.parentId != null && message.hasOwnProperty("parentId")) - if (typeof message.parentId === "number") + object.nodeId = + options.longs === String + ? $util.Long.prototype.toString.call(message.nodeId) + : options.longs === Number + ? new $util.LongBits(message.nodeId.low >>> 0, message.nodeId.high >>> 0).toNumber() + : message.nodeId; + if (message.parentId != null && message.hasOwnProperty('parentId')) + if (typeof message.parentId === 'number') object.parentId = options.longs === String ? String(message.parentId) : message.parentId; else - object.parentId = options.longs === String ? $util.Long.prototype.toString.call(message.parentId) : options.longs === Number ? new $util.LongBits(message.parentId.low >>> 0, message.parentId.high >>> 0).toNumber() : message.parentId; - if (message.bridgeId != null && message.hasOwnProperty("bridgeId")) - if (typeof message.bridgeId === "number") + object.parentId = + options.longs === String + ? $util.Long.prototype.toString.call(message.parentId) + : options.longs === Number + ? new $util.LongBits(message.parentId.low >>> 0, message.parentId.high >>> 0).toNumber() + : message.parentId; + if (message.bridgeId != null && message.hasOwnProperty('bridgeId')) + if (typeof message.bridgeId === 'number') object.bridgeId = options.longs === String ? String(message.bridgeId) : message.bridgeId; else - object.bridgeId = options.longs === String ? $util.Long.prototype.toString.call(message.bridgeId) : options.longs === Number ? new $util.LongBits(message.bridgeId.low >>> 0, message.bridgeId.high >>> 0).toNumber() : message.bridgeId; - if (message.scimId != null && message.hasOwnProperty("scimId")) - if (typeof message.scimId === "number") + object.bridgeId = + options.longs === String + ? $util.Long.prototype.toString.call(message.bridgeId) + : options.longs === Number + ? new $util.LongBits(message.bridgeId.low >>> 0, message.bridgeId.high >>> 0).toNumber() + : message.bridgeId; + if (message.scimId != null && message.hasOwnProperty('scimId')) + if (typeof message.scimId === 'number') object.scimId = options.longs === String ? String(message.scimId) : message.scimId; else - object.scimId = options.longs === String ? $util.Long.prototype.toString.call(message.scimId) : options.longs === Number ? new $util.LongBits(message.scimId.low >>> 0, message.scimId.high >>> 0).toNumber() : message.scimId; - if (message.licenseId != null && message.hasOwnProperty("licenseId")) - if (typeof message.licenseId === "number") + object.scimId = + options.longs === String + ? $util.Long.prototype.toString.call(message.scimId) + : options.longs === Number + ? new $util.LongBits(message.scimId.low >>> 0, message.scimId.high >>> 0).toNumber() + : message.scimId; + if (message.licenseId != null && message.hasOwnProperty('licenseId')) + if (typeof message.licenseId === 'number') object.licenseId = options.longs === String ? String(message.licenseId) : message.licenseId; else - object.licenseId = options.longs === String ? $util.Long.prototype.toString.call(message.licenseId) : options.longs === Number ? new $util.LongBits(message.licenseId.low >>> 0, message.licenseId.high >>> 0).toNumber() : message.licenseId; - if (message.encryptedData != null && message.hasOwnProperty("encryptedData")) + object.licenseId = + options.longs === String + ? $util.Long.prototype.toString.call(message.licenseId) + : options.longs === Number + ? new $util.LongBits(message.licenseId.low >>> 0, message.licenseId.high >>> 0).toNumber() + : message.licenseId; + if (message.encryptedData != null && message.hasOwnProperty('encryptedData')) object.encryptedData = message.encryptedData; - if (message.duoEnabled != null && message.hasOwnProperty("duoEnabled")) + if (message.duoEnabled != null && message.hasOwnProperty('duoEnabled')) object.duoEnabled = message.duoEnabled; - if (message.rsaEnabled != null && message.hasOwnProperty("rsaEnabled")) + if (message.rsaEnabled != null && message.hasOwnProperty('rsaEnabled')) object.rsaEnabled = message.rsaEnabled; - if (message.ssoServiceProviderId != null && message.hasOwnProperty("ssoServiceProviderId")) - if (typeof message.ssoServiceProviderId === "number") - object.ssoServiceProviderId = options.longs === String ? String(message.ssoServiceProviderId) : message.ssoServiceProviderId; + if (message.ssoServiceProviderId != null && message.hasOwnProperty('ssoServiceProviderId')) + if (typeof message.ssoServiceProviderId === 'number') + object.ssoServiceProviderId = + options.longs === String ? String(message.ssoServiceProviderId) : message.ssoServiceProviderId; else - object.ssoServiceProviderId = options.longs === String ? $util.Long.prototype.toString.call(message.ssoServiceProviderId) : options.longs === Number ? new $util.LongBits(message.ssoServiceProviderId.low >>> 0, message.ssoServiceProviderId.high >>> 0).toNumber() : message.ssoServiceProviderId; - if (message.restrictVisibility != null && message.hasOwnProperty("restrictVisibility")) + object.ssoServiceProviderId = + options.longs === String + ? $util.Long.prototype.toString.call(message.ssoServiceProviderId) + : options.longs === Number + ? new $util.LongBits( + message.ssoServiceProviderId.low >>> 0, + message.ssoServiceProviderId.high >>> 0 + ).toNumber() + : message.ssoServiceProviderId; + if (message.restrictVisibility != null && message.hasOwnProperty('restrictVisibility')) object.restrictVisibility = message.restrictVisibility; if (message.ssoServiceProviderIds && message.ssoServiceProviderIds.length) { object.ssoServiceProviderIds = []; for (let j = 0; j < message.ssoServiceProviderIds.length; ++j) - if (typeof message.ssoServiceProviderIds[j] === "number") - object.ssoServiceProviderIds[j] = options.longs === String ? String(message.ssoServiceProviderIds[j]) : message.ssoServiceProviderIds[j]; + if (typeof message.ssoServiceProviderIds[j] === 'number') + object.ssoServiceProviderIds[j] = + options.longs === String + ? String(message.ssoServiceProviderIds[j]) + : message.ssoServiceProviderIds[j]; else - object.ssoServiceProviderIds[j] = options.longs === String ? $util.Long.prototype.toString.call(message.ssoServiceProviderIds[j]) : options.longs === Number ? new $util.LongBits(message.ssoServiceProviderIds[j].low >>> 0, message.ssoServiceProviderIds[j].high >>> 0).toNumber() : message.ssoServiceProviderIds[j]; + object.ssoServiceProviderIds[j] = + options.longs === String + ? $util.Long.prototype.toString.call(message.ssoServiceProviderIds[j]) + : options.longs === Number + ? new $util.LongBits( + message.ssoServiceProviderIds[j].low >>> 0, + message.ssoServiceProviderIds[j].high >>> 0 + ).toNumber() + : message.ssoServiceProviderIds[j]; } return object; }; @@ -63587,16 +65958,15 @@ export const Enterprise = $root.Enterprise = (() => { */ Node.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.Node"; + return typeUrlPrefix + '/Enterprise.Node'; }; return Node; })(); - Enterprise.Role = (function() { - + Enterprise.Role = (function () { /** * Properties of a Role. * @memberof Enterprise @@ -63621,8 +65991,7 @@ export const Enterprise = $root.Enterprise = (() => { function Role(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -63631,7 +66000,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.Role * @instance */ - Role.prototype.roleId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + Role.prototype.roleId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * Role nodeId. @@ -63639,7 +66008,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.Role * @instance */ - Role.prototype.nodeId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + Role.prototype.nodeId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * Role encryptedData. @@ -63647,7 +66016,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.Role * @instance */ - Role.prototype.encryptedData = ""; + Role.prototype.encryptedData = ''; /** * Role keyType. @@ -63655,7 +66024,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.Role * @instance */ - Role.prototype.keyType = ""; + Role.prototype.keyType = ''; /** * Role visibleBelow. @@ -63679,7 +66048,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.Role * @instance */ - Role.prototype.roleType = ""; + Role.prototype.roleType = ''; /** * Creates a new Role instance using the specified properties. @@ -63703,22 +66072,21 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ Role.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.roleId != null && Object.hasOwnProperty.call(message, "roleId")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.roleId); - if (message.nodeId != null && Object.hasOwnProperty.call(message, "nodeId")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.nodeId); - if (message.encryptedData != null && Object.hasOwnProperty.call(message, "encryptedData")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.encryptedData); - if (message.keyType != null && Object.hasOwnProperty.call(message, "keyType")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.keyType); - if (message.visibleBelow != null && Object.hasOwnProperty.call(message, "visibleBelow")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.visibleBelow); - if (message.newUserInherit != null && Object.hasOwnProperty.call(message, "newUserInherit")) - writer.uint32(/* id 6, wireType 0 =*/48).bool(message.newUserInherit); - if (message.roleType != null && Object.hasOwnProperty.call(message, "roleType")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.roleType); + if (!writer) writer = $Writer.create(); + if (message.roleId != null && Object.hasOwnProperty.call(message, 'roleId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int64(message.roleId); + if (message.nodeId != null && Object.hasOwnProperty.call(message, 'nodeId')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int64(message.nodeId); + if (message.encryptedData != null && Object.hasOwnProperty.call(message, 'encryptedData')) + writer.uint32(/* id 3, wireType 2 =*/ 26).string(message.encryptedData); + if (message.keyType != null && Object.hasOwnProperty.call(message, 'keyType')) + writer.uint32(/* id 4, wireType 2 =*/ 34).string(message.keyType); + if (message.visibleBelow != null && Object.hasOwnProperty.call(message, 'visibleBelow')) + writer.uint32(/* id 5, wireType 0 =*/ 40).bool(message.visibleBelow); + if (message.newUserInherit != null && Object.hasOwnProperty.call(message, 'newUserInherit')) + writer.uint32(/* id 6, wireType 0 =*/ 48).bool(message.newUserInherit); + if (message.roleType != null && Object.hasOwnProperty.call(message, 'roleType')) + writer.uint32(/* id 7, wireType 2 =*/ 58).string(message.roleType); return writer; }; @@ -63747,43 +66115,43 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ Role.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.Role(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.Role(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.roleId = reader.int64(); break; } - case 2: { + case 2: { message.nodeId = reader.int64(); break; } - case 3: { + case 3: { message.encryptedData = reader.string(); break; } - case 4: { + case 4: { message.keyType = reader.string(); break; } - case 5: { + case 5: { message.visibleBelow = reader.bool(); break; } - case 6: { + case 6: { message.newUserInherit = reader.bool(); break; } - case 7: { + case 7: { message.roleType = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -63800,8 +66168,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ Role.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -63814,29 +66181,29 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ Role.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.roleId != null && message.hasOwnProperty("roleId")) - if (!$util.isInteger(message.roleId) && !(message.roleId && $util.isInteger(message.roleId.low) && $util.isInteger(message.roleId.high))) - return "roleId: integer|Long expected"; - if (message.nodeId != null && message.hasOwnProperty("nodeId")) - if (!$util.isInteger(message.nodeId) && !(message.nodeId && $util.isInteger(message.nodeId.low) && $util.isInteger(message.nodeId.high))) - return "nodeId: integer|Long expected"; - if (message.encryptedData != null && message.hasOwnProperty("encryptedData")) - if (!$util.isString(message.encryptedData)) - return "encryptedData: string expected"; - if (message.keyType != null && message.hasOwnProperty("keyType")) - if (!$util.isString(message.keyType)) - return "keyType: string expected"; - if (message.visibleBelow != null && message.hasOwnProperty("visibleBelow")) - if (typeof message.visibleBelow !== "boolean") - return "visibleBelow: boolean expected"; - if (message.newUserInherit != null && message.hasOwnProperty("newUserInherit")) - if (typeof message.newUserInherit !== "boolean") - return "newUserInherit: boolean expected"; - if (message.roleType != null && message.hasOwnProperty("roleType")) - if (!$util.isString(message.roleType)) - return "roleType: string expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.roleId != null && message.hasOwnProperty('roleId')) + if ( + !$util.isInteger(message.roleId) && + !(message.roleId && $util.isInteger(message.roleId.low) && $util.isInteger(message.roleId.high)) + ) + return 'roleId: integer|Long expected'; + if (message.nodeId != null && message.hasOwnProperty('nodeId')) + if ( + !$util.isInteger(message.nodeId) && + !(message.nodeId && $util.isInteger(message.nodeId.low) && $util.isInteger(message.nodeId.high)) + ) + return 'nodeId: integer|Long expected'; + if (message.encryptedData != null && message.hasOwnProperty('encryptedData')) + if (!$util.isString(message.encryptedData)) return 'encryptedData: string expected'; + if (message.keyType != null && message.hasOwnProperty('keyType')) + if (!$util.isString(message.keyType)) return 'keyType: string expected'; + if (message.visibleBelow != null && message.hasOwnProperty('visibleBelow')) + if (typeof message.visibleBelow !== 'boolean') return 'visibleBelow: boolean expected'; + if (message.newUserInherit != null && message.hasOwnProperty('newUserInherit')) + if (typeof message.newUserInherit !== 'boolean') return 'newUserInherit: boolean expected'; + if (message.roleType != null && message.hasOwnProperty('roleType')) + if (!$util.isString(message.roleType)) return 'roleType: string expected'; return null; }; @@ -63849,37 +66216,25 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.Role} Role */ Role.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.Role) - return object; + if (object instanceof $root.Enterprise.Role) return object; let message = new $root.Enterprise.Role(); if (object.roleId != null) - if ($util.Long) - (message.roleId = $util.Long.fromValue(object.roleId)).unsigned = false; - else if (typeof object.roleId === "string") - message.roleId = parseInt(object.roleId, 10); - else if (typeof object.roleId === "number") - message.roleId = object.roleId; - else if (typeof object.roleId === "object") + if ($util.Long) (message.roleId = $util.Long.fromValue(object.roleId)).unsigned = false; + else if (typeof object.roleId === 'string') message.roleId = parseInt(object.roleId, 10); + else if (typeof object.roleId === 'number') message.roleId = object.roleId; + else if (typeof object.roleId === 'object') message.roleId = new $util.LongBits(object.roleId.low >>> 0, object.roleId.high >>> 0).toNumber(); if (object.nodeId != null) - if ($util.Long) - (message.nodeId = $util.Long.fromValue(object.nodeId)).unsigned = false; - else if (typeof object.nodeId === "string") - message.nodeId = parseInt(object.nodeId, 10); - else if (typeof object.nodeId === "number") - message.nodeId = object.nodeId; - else if (typeof object.nodeId === "object") + if ($util.Long) (message.nodeId = $util.Long.fromValue(object.nodeId)).unsigned = false; + else if (typeof object.nodeId === 'string') message.nodeId = parseInt(object.nodeId, 10); + else if (typeof object.nodeId === 'number') message.nodeId = object.nodeId; + else if (typeof object.nodeId === 'object') message.nodeId = new $util.LongBits(object.nodeId.low >>> 0, object.nodeId.high >>> 0).toNumber(); - if (object.encryptedData != null) - message.encryptedData = String(object.encryptedData); - if (object.keyType != null) - message.keyType = String(object.keyType); - if (object.visibleBelow != null) - message.visibleBelow = Boolean(object.visibleBelow); - if (object.newUserInherit != null) - message.newUserInherit = Boolean(object.newUserInherit); - if (object.roleType != null) - message.roleType = String(object.roleType); + if (object.encryptedData != null) message.encryptedData = String(object.encryptedData); + if (object.keyType != null) message.keyType = String(object.keyType); + if (object.visibleBelow != null) message.visibleBelow = Boolean(object.visibleBelow); + if (object.newUserInherit != null) message.newUserInherit = Boolean(object.newUserInherit); + if (object.roleType != null) message.roleType = String(object.roleType); return message; }; @@ -63893,46 +66248,53 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ Role.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.roleId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.roleId = options.longs === String ? "0" : 0; + object.roleId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.roleId = options.longs === String ? '0' : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.nodeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.nodeId = options.longs === String ? "0" : 0; - object.encryptedData = ""; - object.keyType = ""; + object.nodeId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.nodeId = options.longs === String ? '0' : 0; + object.encryptedData = ''; + object.keyType = ''; object.visibleBelow = false; object.newUserInherit = false; - object.roleType = ""; + object.roleType = ''; } - if (message.roleId != null && message.hasOwnProperty("roleId")) - if (typeof message.roleId === "number") + if (message.roleId != null && message.hasOwnProperty('roleId')) + if (typeof message.roleId === 'number') object.roleId = options.longs === String ? String(message.roleId) : message.roleId; else - object.roleId = options.longs === String ? $util.Long.prototype.toString.call(message.roleId) : options.longs === Number ? new $util.LongBits(message.roleId.low >>> 0, message.roleId.high >>> 0).toNumber() : message.roleId; - if (message.nodeId != null && message.hasOwnProperty("nodeId")) - if (typeof message.nodeId === "number") + object.roleId = + options.longs === String + ? $util.Long.prototype.toString.call(message.roleId) + : options.longs === Number + ? new $util.LongBits(message.roleId.low >>> 0, message.roleId.high >>> 0).toNumber() + : message.roleId; + if (message.nodeId != null && message.hasOwnProperty('nodeId')) + if (typeof message.nodeId === 'number') object.nodeId = options.longs === String ? String(message.nodeId) : message.nodeId; else - object.nodeId = options.longs === String ? $util.Long.prototype.toString.call(message.nodeId) : options.longs === Number ? new $util.LongBits(message.nodeId.low >>> 0, message.nodeId.high >>> 0).toNumber() : message.nodeId; - if (message.encryptedData != null && message.hasOwnProperty("encryptedData")) + object.nodeId = + options.longs === String + ? $util.Long.prototype.toString.call(message.nodeId) + : options.longs === Number + ? new $util.LongBits(message.nodeId.low >>> 0, message.nodeId.high >>> 0).toNumber() + : message.nodeId; + if (message.encryptedData != null && message.hasOwnProperty('encryptedData')) object.encryptedData = message.encryptedData; - if (message.keyType != null && message.hasOwnProperty("keyType")) - object.keyType = message.keyType; - if (message.visibleBelow != null && message.hasOwnProperty("visibleBelow")) + if (message.keyType != null && message.hasOwnProperty('keyType')) object.keyType = message.keyType; + if (message.visibleBelow != null && message.hasOwnProperty('visibleBelow')) object.visibleBelow = message.visibleBelow; - if (message.newUserInherit != null && message.hasOwnProperty("newUserInherit")) + if (message.newUserInherit != null && message.hasOwnProperty('newUserInherit')) object.newUserInherit = message.newUserInherit; - if (message.roleType != null && message.hasOwnProperty("roleType")) - object.roleType = message.roleType; + if (message.roleType != null && message.hasOwnProperty('roleType')) object.roleType = message.roleType; return object; }; @@ -63957,9 +66319,9 @@ export const Enterprise = $root.Enterprise = (() => { */ Role.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.Role"; + return typeUrlPrefix + '/Enterprise.Role'; }; return Role; @@ -63975,18 +66337,18 @@ export const Enterprise = $root.Enterprise = (() => { * @property {number} PARTIALLY_ACCEPTED=3 PARTIALLY_ACCEPTED value * @property {number} ACCEPTED=4 ACCEPTED value */ - Enterprise.TransferAcceptanceStatus = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "UNDEFINED"] = 0; - values[valuesById[1] = "NOT_REQUIRED"] = 1; - values[valuesById[2] = "NOT_ACCEPTED"] = 2; - values[valuesById[3] = "PARTIALLY_ACCEPTED"] = 3; - values[valuesById[4] = "ACCEPTED"] = 4; + Enterprise.TransferAcceptanceStatus = (function () { + const valuesById = {}, + values = Object.create(valuesById); + values[(valuesById[0] = 'UNDEFINED')] = 0; + values[(valuesById[1] = 'NOT_REQUIRED')] = 1; + values[(valuesById[2] = 'NOT_ACCEPTED')] = 2; + values[(valuesById[3] = 'PARTIALLY_ACCEPTED')] = 3; + values[(valuesById[4] = 'ACCEPTED')] = 4; return values; })(); - Enterprise.User = (function() { - + Enterprise.User = (function () { /** * Properties of a User. * @memberof Enterprise @@ -64017,8 +66379,7 @@ export const Enterprise = $root.Enterprise = (() => { function User(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -64027,7 +66388,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.User * @instance */ - User.prototype.enterpriseUserId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + User.prototype.enterpriseUserId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * User nodeId. @@ -64035,7 +66396,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.User * @instance */ - User.prototype.nodeId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + User.prototype.nodeId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * User encryptedData. @@ -64043,7 +66404,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.User * @instance */ - User.prototype.encryptedData = ""; + User.prototype.encryptedData = ''; /** * User keyType. @@ -64051,7 +66412,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.User * @instance */ - User.prototype.keyType = ""; + User.prototype.keyType = ''; /** * User username. @@ -64059,7 +66420,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.User * @instance */ - User.prototype.username = ""; + User.prototype.username = ''; /** * User status. @@ -64067,7 +66428,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.User * @instance */ - User.prototype.status = ""; + User.prototype.status = ''; /** * User lock. @@ -64091,7 +66452,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.User * @instance */ - User.prototype.accountShareExpiration = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + User.prototype.accountShareExpiration = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * User fullName. @@ -64099,7 +66460,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.User * @instance */ - User.prototype.fullName = ""; + User.prototype.fullName = ''; /** * User jobTitle. @@ -64107,7 +66468,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.User * @instance */ - User.prototype.jobTitle = ""; + User.prototype.jobTitle = ''; /** * User tfaEnabled. @@ -64147,34 +66508,36 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ User.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "enterpriseUserId")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.enterpriseUserId); - if (message.nodeId != null && Object.hasOwnProperty.call(message, "nodeId")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.nodeId); - if (message.encryptedData != null && Object.hasOwnProperty.call(message, "encryptedData")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.encryptedData); - if (message.keyType != null && Object.hasOwnProperty.call(message, "keyType")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.keyType); - if (message.username != null && Object.hasOwnProperty.call(message, "username")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.username); - if (message.status != null && Object.hasOwnProperty.call(message, "status")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.status); - if (message.lock != null && Object.hasOwnProperty.call(message, "lock")) - writer.uint32(/* id 7, wireType 0 =*/56).int32(message.lock); - if (message.userId != null && Object.hasOwnProperty.call(message, "userId")) - writer.uint32(/* id 8, wireType 0 =*/64).int32(message.userId); - if (message.accountShareExpiration != null && Object.hasOwnProperty.call(message, "accountShareExpiration")) - writer.uint32(/* id 9, wireType 0 =*/72).int64(message.accountShareExpiration); - if (message.fullName != null && Object.hasOwnProperty.call(message, "fullName")) - writer.uint32(/* id 10, wireType 2 =*/82).string(message.fullName); - if (message.jobTitle != null && Object.hasOwnProperty.call(message, "jobTitle")) - writer.uint32(/* id 11, wireType 2 =*/90).string(message.jobTitle); - if (message.tfaEnabled != null && Object.hasOwnProperty.call(message, "tfaEnabled")) - writer.uint32(/* id 12, wireType 0 =*/96).bool(message.tfaEnabled); - if (message.transferAcceptanceStatus != null && Object.hasOwnProperty.call(message, "transferAcceptanceStatus")) - writer.uint32(/* id 13, wireType 0 =*/104).int32(message.transferAcceptanceStatus); + if (!writer) writer = $Writer.create(); + if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, 'enterpriseUserId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int64(message.enterpriseUserId); + if (message.nodeId != null && Object.hasOwnProperty.call(message, 'nodeId')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int64(message.nodeId); + if (message.encryptedData != null && Object.hasOwnProperty.call(message, 'encryptedData')) + writer.uint32(/* id 3, wireType 2 =*/ 26).string(message.encryptedData); + if (message.keyType != null && Object.hasOwnProperty.call(message, 'keyType')) + writer.uint32(/* id 4, wireType 2 =*/ 34).string(message.keyType); + if (message.username != null && Object.hasOwnProperty.call(message, 'username')) + writer.uint32(/* id 5, wireType 2 =*/ 42).string(message.username); + if (message.status != null && Object.hasOwnProperty.call(message, 'status')) + writer.uint32(/* id 6, wireType 2 =*/ 50).string(message.status); + if (message.lock != null && Object.hasOwnProperty.call(message, 'lock')) + writer.uint32(/* id 7, wireType 0 =*/ 56).int32(message.lock); + if (message.userId != null && Object.hasOwnProperty.call(message, 'userId')) + writer.uint32(/* id 8, wireType 0 =*/ 64).int32(message.userId); + if (message.accountShareExpiration != null && Object.hasOwnProperty.call(message, 'accountShareExpiration')) + writer.uint32(/* id 9, wireType 0 =*/ 72).int64(message.accountShareExpiration); + if (message.fullName != null && Object.hasOwnProperty.call(message, 'fullName')) + writer.uint32(/* id 10, wireType 2 =*/ 82).string(message.fullName); + if (message.jobTitle != null && Object.hasOwnProperty.call(message, 'jobTitle')) + writer.uint32(/* id 11, wireType 2 =*/ 90).string(message.jobTitle); + if (message.tfaEnabled != null && Object.hasOwnProperty.call(message, 'tfaEnabled')) + writer.uint32(/* id 12, wireType 0 =*/ 96).bool(message.tfaEnabled); + if ( + message.transferAcceptanceStatus != null && + Object.hasOwnProperty.call(message, 'transferAcceptanceStatus') + ) + writer.uint32(/* id 13, wireType 0 =*/ 104).int32(message.transferAcceptanceStatus); return writer; }; @@ -64203,67 +66566,67 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ User.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.User(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.User(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.enterpriseUserId = reader.int64(); break; } - case 2: { + case 2: { message.nodeId = reader.int64(); break; } - case 3: { + case 3: { message.encryptedData = reader.string(); break; } - case 4: { + case 4: { message.keyType = reader.string(); break; } - case 5: { + case 5: { message.username = reader.string(); break; } - case 6: { + case 6: { message.status = reader.string(); break; } - case 7: { + case 7: { message.lock = reader.int32(); break; } - case 8: { + case 8: { message.userId = reader.int32(); break; } - case 9: { + case 9: { message.accountShareExpiration = reader.int64(); break; } - case 10: { + case 10: { message.fullName = reader.string(); break; } - case 11: { + case 11: { message.jobTitle = reader.string(); break; } - case 12: { + case 12: { message.tfaEnabled = reader.bool(); break; } - case 13: { + case 13: { message.transferAcceptanceStatus = reader.int32(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -64280,8 +66643,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ User.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -64294,54 +66656,61 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ User.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (!$util.isInteger(message.enterpriseUserId) && !(message.enterpriseUserId && $util.isInteger(message.enterpriseUserId.low) && $util.isInteger(message.enterpriseUserId.high))) - return "enterpriseUserId: integer|Long expected"; - if (message.nodeId != null && message.hasOwnProperty("nodeId")) - if (!$util.isInteger(message.nodeId) && !(message.nodeId && $util.isInteger(message.nodeId.low) && $util.isInteger(message.nodeId.high))) - return "nodeId: integer|Long expected"; - if (message.encryptedData != null && message.hasOwnProperty("encryptedData")) - if (!$util.isString(message.encryptedData)) - return "encryptedData: string expected"; - if (message.keyType != null && message.hasOwnProperty("keyType")) - if (!$util.isString(message.keyType)) - return "keyType: string expected"; - if (message.username != null && message.hasOwnProperty("username")) - if (!$util.isString(message.username)) - return "username: string expected"; - if (message.status != null && message.hasOwnProperty("status")) - if (!$util.isString(message.status)) - return "status: string expected"; - if (message.lock != null && message.hasOwnProperty("lock")) - if (!$util.isInteger(message.lock)) - return "lock: integer expected"; - if (message.userId != null && message.hasOwnProperty("userId")) - if (!$util.isInteger(message.userId)) - return "userId: integer expected"; - if (message.accountShareExpiration != null && message.hasOwnProperty("accountShareExpiration")) - if (!$util.isInteger(message.accountShareExpiration) && !(message.accountShareExpiration && $util.isInteger(message.accountShareExpiration.low) && $util.isInteger(message.accountShareExpiration.high))) - return "accountShareExpiration: integer|Long expected"; - if (message.fullName != null && message.hasOwnProperty("fullName")) - if (!$util.isString(message.fullName)) - return "fullName: string expected"; - if (message.jobTitle != null && message.hasOwnProperty("jobTitle")) - if (!$util.isString(message.jobTitle)) - return "jobTitle: string expected"; - if (message.tfaEnabled != null && message.hasOwnProperty("tfaEnabled")) - if (typeof message.tfaEnabled !== "boolean") - return "tfaEnabled: boolean expected"; - if (message.transferAcceptanceStatus != null && message.hasOwnProperty("transferAcceptanceStatus")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.enterpriseUserId != null && message.hasOwnProperty('enterpriseUserId')) + if ( + !$util.isInteger(message.enterpriseUserId) && + !( + message.enterpriseUserId && + $util.isInteger(message.enterpriseUserId.low) && + $util.isInteger(message.enterpriseUserId.high) + ) + ) + return 'enterpriseUserId: integer|Long expected'; + if (message.nodeId != null && message.hasOwnProperty('nodeId')) + if ( + !$util.isInteger(message.nodeId) && + !(message.nodeId && $util.isInteger(message.nodeId.low) && $util.isInteger(message.nodeId.high)) + ) + return 'nodeId: integer|Long expected'; + if (message.encryptedData != null && message.hasOwnProperty('encryptedData')) + if (!$util.isString(message.encryptedData)) return 'encryptedData: string expected'; + if (message.keyType != null && message.hasOwnProperty('keyType')) + if (!$util.isString(message.keyType)) return 'keyType: string expected'; + if (message.username != null && message.hasOwnProperty('username')) + if (!$util.isString(message.username)) return 'username: string expected'; + if (message.status != null && message.hasOwnProperty('status')) + if (!$util.isString(message.status)) return 'status: string expected'; + if (message.lock != null && message.hasOwnProperty('lock')) + if (!$util.isInteger(message.lock)) return 'lock: integer expected'; + if (message.userId != null && message.hasOwnProperty('userId')) + if (!$util.isInteger(message.userId)) return 'userId: integer expected'; + if (message.accountShareExpiration != null && message.hasOwnProperty('accountShareExpiration')) + if ( + !$util.isInteger(message.accountShareExpiration) && + !( + message.accountShareExpiration && + $util.isInteger(message.accountShareExpiration.low) && + $util.isInteger(message.accountShareExpiration.high) + ) + ) + return 'accountShareExpiration: integer|Long expected'; + if (message.fullName != null && message.hasOwnProperty('fullName')) + if (!$util.isString(message.fullName)) return 'fullName: string expected'; + if (message.jobTitle != null && message.hasOwnProperty('jobTitle')) + if (!$util.isString(message.jobTitle)) return 'jobTitle: string expected'; + if (message.tfaEnabled != null && message.hasOwnProperty('tfaEnabled')) + if (typeof message.tfaEnabled !== 'boolean') return 'tfaEnabled: boolean expected'; + if (message.transferAcceptanceStatus != null && message.hasOwnProperty('transferAcceptanceStatus')) switch (message.transferAcceptanceStatus) { - default: - return "transferAcceptanceStatus: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; + default: + return 'transferAcceptanceStatus: enum value expected'; + case 0: + case 1: + case 2: + case 3: + case 4: + break; } return null; }; @@ -64355,81 +66724,75 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.User} User */ User.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.User) - return object; + if (object instanceof $root.Enterprise.User) return object; let message = new $root.Enterprise.User(); if (object.enterpriseUserId != null) if ($util.Long) (message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId)).unsigned = false; - else if (typeof object.enterpriseUserId === "string") + else if (typeof object.enterpriseUserId === 'string') message.enterpriseUserId = parseInt(object.enterpriseUserId, 10); - else if (typeof object.enterpriseUserId === "number") + else if (typeof object.enterpriseUserId === 'number') message.enterpriseUserId = object.enterpriseUserId; - else if (typeof object.enterpriseUserId === "object") - message.enterpriseUserId = new $util.LongBits(object.enterpriseUserId.low >>> 0, object.enterpriseUserId.high >>> 0).toNumber(); + else if (typeof object.enterpriseUserId === 'object') + message.enterpriseUserId = new $util.LongBits( + object.enterpriseUserId.low >>> 0, + object.enterpriseUserId.high >>> 0 + ).toNumber(); if (object.nodeId != null) - if ($util.Long) - (message.nodeId = $util.Long.fromValue(object.nodeId)).unsigned = false; - else if (typeof object.nodeId === "string") - message.nodeId = parseInt(object.nodeId, 10); - else if (typeof object.nodeId === "number") - message.nodeId = object.nodeId; - else if (typeof object.nodeId === "object") + if ($util.Long) (message.nodeId = $util.Long.fromValue(object.nodeId)).unsigned = false; + else if (typeof object.nodeId === 'string') message.nodeId = parseInt(object.nodeId, 10); + else if (typeof object.nodeId === 'number') message.nodeId = object.nodeId; + else if (typeof object.nodeId === 'object') message.nodeId = new $util.LongBits(object.nodeId.low >>> 0, object.nodeId.high >>> 0).toNumber(); - if (object.encryptedData != null) - message.encryptedData = String(object.encryptedData); - if (object.keyType != null) - message.keyType = String(object.keyType); - if (object.username != null) - message.username = String(object.username); - if (object.status != null) - message.status = String(object.status); - if (object.lock != null) - message.lock = object.lock | 0; - if (object.userId != null) - message.userId = object.userId | 0; + if (object.encryptedData != null) message.encryptedData = String(object.encryptedData); + if (object.keyType != null) message.keyType = String(object.keyType); + if (object.username != null) message.username = String(object.username); + if (object.status != null) message.status = String(object.status); + if (object.lock != null) message.lock = object.lock | 0; + if (object.userId != null) message.userId = object.userId | 0; if (object.accountShareExpiration != null) if ($util.Long) - (message.accountShareExpiration = $util.Long.fromValue(object.accountShareExpiration)).unsigned = false; - else if (typeof object.accountShareExpiration === "string") + (message.accountShareExpiration = $util.Long.fromValue(object.accountShareExpiration)).unsigned = + false; + else if (typeof object.accountShareExpiration === 'string') message.accountShareExpiration = parseInt(object.accountShareExpiration, 10); - else if (typeof object.accountShareExpiration === "number") + else if (typeof object.accountShareExpiration === 'number') message.accountShareExpiration = object.accountShareExpiration; - else if (typeof object.accountShareExpiration === "object") - message.accountShareExpiration = new $util.LongBits(object.accountShareExpiration.low >>> 0, object.accountShareExpiration.high >>> 0).toNumber(); - if (object.fullName != null) - message.fullName = String(object.fullName); - if (object.jobTitle != null) - message.jobTitle = String(object.jobTitle); - if (object.tfaEnabled != null) - message.tfaEnabled = Boolean(object.tfaEnabled); + else if (typeof object.accountShareExpiration === 'object') + message.accountShareExpiration = new $util.LongBits( + object.accountShareExpiration.low >>> 0, + object.accountShareExpiration.high >>> 0 + ).toNumber(); + if (object.fullName != null) message.fullName = String(object.fullName); + if (object.jobTitle != null) message.jobTitle = String(object.jobTitle); + if (object.tfaEnabled != null) message.tfaEnabled = Boolean(object.tfaEnabled); switch (object.transferAcceptanceStatus) { - default: - if (typeof object.transferAcceptanceStatus === "number") { - message.transferAcceptanceStatus = object.transferAcceptanceStatus; + default: + if (typeof object.transferAcceptanceStatus === 'number') { + message.transferAcceptanceStatus = object.transferAcceptanceStatus; + break; + } + break; + case 'UNDEFINED': + case 0: + message.transferAcceptanceStatus = 0; + break; + case 'NOT_REQUIRED': + case 1: + message.transferAcceptanceStatus = 1; + break; + case 'NOT_ACCEPTED': + case 2: + message.transferAcceptanceStatus = 2; + break; + case 'PARTIALLY_ACCEPTED': + case 3: + message.transferAcceptanceStatus = 3; + break; + case 'ACCEPTED': + case 4: + message.transferAcceptanceStatus = 4; break; - } - break; - case "UNDEFINED": - case 0: - message.transferAcceptanceStatus = 0; - break; - case "NOT_REQUIRED": - case 1: - message.transferAcceptanceStatus = 1; - break; - case "NOT_ACCEPTED": - case 2: - message.transferAcceptanceStatus = 2; - break; - case "PARTIALLY_ACCEPTED": - case 3: - message.transferAcceptanceStatus = 3; - break; - case "ACCEPTED": - case 4: - message.transferAcceptanceStatus = 4; - break; } return message; }; @@ -64444,71 +66807,93 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ User.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.enterpriseUserId = options.longs === String ? "0" : 0; + object.enterpriseUserId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.enterpriseUserId = options.longs === String ? '0' : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.nodeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.nodeId = options.longs === String ? "0" : 0; - object.encryptedData = ""; - object.keyType = ""; - object.username = ""; - object.status = ""; + object.nodeId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.nodeId = options.longs === String ? '0' : 0; + object.encryptedData = ''; + object.keyType = ''; + object.username = ''; + object.status = ''; object.lock = 0; object.userId = 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.accountShareExpiration = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.accountShareExpiration = options.longs === String ? "0" : 0; - object.fullName = ""; - object.jobTitle = ""; + object.accountShareExpiration = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.accountShareExpiration = options.longs === String ? '0' : 0; + object.fullName = ''; + object.jobTitle = ''; object.tfaEnabled = false; - object.transferAcceptanceStatus = options.enums === String ? "UNDEFINED" : 0; + object.transferAcceptanceStatus = options.enums === String ? 'UNDEFINED' : 0; } - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (typeof message.enterpriseUserId === "number") - object.enterpriseUserId = options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; + if (message.enterpriseUserId != null && message.hasOwnProperty('enterpriseUserId')) + if (typeof message.enterpriseUserId === 'number') + object.enterpriseUserId = + options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; else - object.enterpriseUserId = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseUserId) : options.longs === Number ? new $util.LongBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0).toNumber() : message.enterpriseUserId; - if (message.nodeId != null && message.hasOwnProperty("nodeId")) - if (typeof message.nodeId === "number") + object.enterpriseUserId = + options.longs === String + ? $util.Long.prototype.toString.call(message.enterpriseUserId) + : options.longs === Number + ? new $util.LongBits( + message.enterpriseUserId.low >>> 0, + message.enterpriseUserId.high >>> 0 + ).toNumber() + : message.enterpriseUserId; + if (message.nodeId != null && message.hasOwnProperty('nodeId')) + if (typeof message.nodeId === 'number') object.nodeId = options.longs === String ? String(message.nodeId) : message.nodeId; else - object.nodeId = options.longs === String ? $util.Long.prototype.toString.call(message.nodeId) : options.longs === Number ? new $util.LongBits(message.nodeId.low >>> 0, message.nodeId.high >>> 0).toNumber() : message.nodeId; - if (message.encryptedData != null && message.hasOwnProperty("encryptedData")) + object.nodeId = + options.longs === String + ? $util.Long.prototype.toString.call(message.nodeId) + : options.longs === Number + ? new $util.LongBits(message.nodeId.low >>> 0, message.nodeId.high >>> 0).toNumber() + : message.nodeId; + if (message.encryptedData != null && message.hasOwnProperty('encryptedData')) object.encryptedData = message.encryptedData; - if (message.keyType != null && message.hasOwnProperty("keyType")) - object.keyType = message.keyType; - if (message.username != null && message.hasOwnProperty("username")) - object.username = message.username; - if (message.status != null && message.hasOwnProperty("status")) - object.status = message.status; - if (message.lock != null && message.hasOwnProperty("lock")) - object.lock = message.lock; - if (message.userId != null && message.hasOwnProperty("userId")) - object.userId = message.userId; - if (message.accountShareExpiration != null && message.hasOwnProperty("accountShareExpiration")) - if (typeof message.accountShareExpiration === "number") - object.accountShareExpiration = options.longs === String ? String(message.accountShareExpiration) : message.accountShareExpiration; + if (message.keyType != null && message.hasOwnProperty('keyType')) object.keyType = message.keyType; + if (message.username != null && message.hasOwnProperty('username')) object.username = message.username; + if (message.status != null && message.hasOwnProperty('status')) object.status = message.status; + if (message.lock != null && message.hasOwnProperty('lock')) object.lock = message.lock; + if (message.userId != null && message.hasOwnProperty('userId')) object.userId = message.userId; + if (message.accountShareExpiration != null && message.hasOwnProperty('accountShareExpiration')) + if (typeof message.accountShareExpiration === 'number') + object.accountShareExpiration = + options.longs === String + ? String(message.accountShareExpiration) + : message.accountShareExpiration; else - object.accountShareExpiration = options.longs === String ? $util.Long.prototype.toString.call(message.accountShareExpiration) : options.longs === Number ? new $util.LongBits(message.accountShareExpiration.low >>> 0, message.accountShareExpiration.high >>> 0).toNumber() : message.accountShareExpiration; - if (message.fullName != null && message.hasOwnProperty("fullName")) - object.fullName = message.fullName; - if (message.jobTitle != null && message.hasOwnProperty("jobTitle")) - object.jobTitle = message.jobTitle; - if (message.tfaEnabled != null && message.hasOwnProperty("tfaEnabled")) + object.accountShareExpiration = + options.longs === String + ? $util.Long.prototype.toString.call(message.accountShareExpiration) + : options.longs === Number + ? new $util.LongBits( + message.accountShareExpiration.low >>> 0, + message.accountShareExpiration.high >>> 0 + ).toNumber() + : message.accountShareExpiration; + if (message.fullName != null && message.hasOwnProperty('fullName')) object.fullName = message.fullName; + if (message.jobTitle != null && message.hasOwnProperty('jobTitle')) object.jobTitle = message.jobTitle; + if (message.tfaEnabled != null && message.hasOwnProperty('tfaEnabled')) object.tfaEnabled = message.tfaEnabled; - if (message.transferAcceptanceStatus != null && message.hasOwnProperty("transferAcceptanceStatus")) - object.transferAcceptanceStatus = options.enums === String ? $root.Enterprise.TransferAcceptanceStatus[message.transferAcceptanceStatus] === undefined ? message.transferAcceptanceStatus : $root.Enterprise.TransferAcceptanceStatus[message.transferAcceptanceStatus] : message.transferAcceptanceStatus; + if (message.transferAcceptanceStatus != null && message.hasOwnProperty('transferAcceptanceStatus')) + object.transferAcceptanceStatus = + options.enums === String + ? $root.Enterprise.TransferAcceptanceStatus[message.transferAcceptanceStatus] === undefined + ? message.transferAcceptanceStatus + : $root.Enterprise.TransferAcceptanceStatus[message.transferAcceptanceStatus] + : message.transferAcceptanceStatus; return object; }; @@ -64533,16 +66918,15 @@ export const Enterprise = $root.Enterprise = (() => { */ User.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.User"; + return typeUrlPrefix + '/Enterprise.User'; }; return User; })(); - Enterprise.UserAlias = (function() { - + Enterprise.UserAlias = (function () { /** * Properties of a UserAlias. * @memberof Enterprise @@ -64562,8 +66946,7 @@ export const Enterprise = $root.Enterprise = (() => { function UserAlias(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -64572,7 +66955,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.UserAlias * @instance */ - UserAlias.prototype.enterpriseUserId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + UserAlias.prototype.enterpriseUserId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * UserAlias username. @@ -64580,7 +66963,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.UserAlias * @instance */ - UserAlias.prototype.username = ""; + UserAlias.prototype.username = ''; /** * Creates a new UserAlias instance using the specified properties. @@ -64604,12 +66987,11 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ UserAlias.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "enterpriseUserId")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.enterpriseUserId); - if (message.username != null && Object.hasOwnProperty.call(message, "username")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.username); + if (!writer) writer = $Writer.create(); + if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, 'enterpriseUserId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int64(message.enterpriseUserId); + if (message.username != null && Object.hasOwnProperty.call(message, 'username')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.username); return writer; }; @@ -64638,23 +67020,23 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ UserAlias.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.UserAlias(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.UserAlias(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.enterpriseUserId = reader.int64(); break; } - case 2: { + case 2: { message.username = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -64671,8 +67053,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ UserAlias.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -64685,14 +67066,19 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ UserAlias.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (!$util.isInteger(message.enterpriseUserId) && !(message.enterpriseUserId && $util.isInteger(message.enterpriseUserId.low) && $util.isInteger(message.enterpriseUserId.high))) - return "enterpriseUserId: integer|Long expected"; - if (message.username != null && message.hasOwnProperty("username")) - if (!$util.isString(message.username)) - return "username: string expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.enterpriseUserId != null && message.hasOwnProperty('enterpriseUserId')) + if ( + !$util.isInteger(message.enterpriseUserId) && + !( + message.enterpriseUserId && + $util.isInteger(message.enterpriseUserId.low) && + $util.isInteger(message.enterpriseUserId.high) + ) + ) + return 'enterpriseUserId: integer|Long expected'; + if (message.username != null && message.hasOwnProperty('username')) + if (!$util.isString(message.username)) return 'username: string expected'; return null; }; @@ -64705,20 +67091,21 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.UserAlias} UserAlias */ UserAlias.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.UserAlias) - return object; + if (object instanceof $root.Enterprise.UserAlias) return object; let message = new $root.Enterprise.UserAlias(); if (object.enterpriseUserId != null) if ($util.Long) (message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId)).unsigned = false; - else if (typeof object.enterpriseUserId === "string") + else if (typeof object.enterpriseUserId === 'string') message.enterpriseUserId = parseInt(object.enterpriseUserId, 10); - else if (typeof object.enterpriseUserId === "number") + else if (typeof object.enterpriseUserId === 'number') message.enterpriseUserId = object.enterpriseUserId; - else if (typeof object.enterpriseUserId === "object") - message.enterpriseUserId = new $util.LongBits(object.enterpriseUserId.low >>> 0, object.enterpriseUserId.high >>> 0).toNumber(); - if (object.username != null) - message.username = String(object.username); + else if (typeof object.enterpriseUserId === 'object') + message.enterpriseUserId = new $util.LongBits( + object.enterpriseUserId.low >>> 0, + object.enterpriseUserId.high >>> 0 + ).toNumber(); + if (object.username != null) message.username = String(object.username); return message; }; @@ -64732,24 +67119,31 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ UserAlias.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.enterpriseUserId = options.longs === String ? "0" : 0; - object.username = ""; - } - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (typeof message.enterpriseUserId === "number") - object.enterpriseUserId = options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; + object.enterpriseUserId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.enterpriseUserId = options.longs === String ? '0' : 0; + object.username = ''; + } + if (message.enterpriseUserId != null && message.hasOwnProperty('enterpriseUserId')) + if (typeof message.enterpriseUserId === 'number') + object.enterpriseUserId = + options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; else - object.enterpriseUserId = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseUserId) : options.longs === Number ? new $util.LongBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0).toNumber() : message.enterpriseUserId; - if (message.username != null && message.hasOwnProperty("username")) - object.username = message.username; + object.enterpriseUserId = + options.longs === String + ? $util.Long.prototype.toString.call(message.enterpriseUserId) + : options.longs === Number + ? new $util.LongBits( + message.enterpriseUserId.low >>> 0, + message.enterpriseUserId.high >>> 0 + ).toNumber() + : message.enterpriseUserId; + if (message.username != null && message.hasOwnProperty('username')) object.username = message.username; return object; }; @@ -64774,16 +67168,15 @@ export const Enterprise = $root.Enterprise = (() => { */ UserAlias.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.UserAlias"; + return typeUrlPrefix + '/Enterprise.UserAlias'; }; return UserAlias; })(); - Enterprise.ComplianceReportMetaData = (function() { - + Enterprise.ComplianceReportMetaData = (function () { /** * Properties of a ComplianceReportMetaData. * @memberof Enterprise @@ -64808,8 +67201,7 @@ export const Enterprise = $root.Enterprise = (() => { function ComplianceReportMetaData(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -64826,7 +67218,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.ComplianceReportMetaData * @instance */ - ComplianceReportMetaData.prototype.nodeId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + ComplianceReportMetaData.prototype.nodeId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * ComplianceReportMetaData reportName. @@ -64834,7 +67226,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.ComplianceReportMetaData * @instance */ - ComplianceReportMetaData.prototype.reportName = ""; + ComplianceReportMetaData.prototype.reportName = ''; /** * ComplianceReportMetaData dateGenerated. @@ -64842,7 +67234,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.ComplianceReportMetaData * @instance */ - ComplianceReportMetaData.prototype.dateGenerated = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + ComplianceReportMetaData.prototype.dateGenerated = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * ComplianceReportMetaData runByName. @@ -64850,7 +67242,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.ComplianceReportMetaData * @instance */ - ComplianceReportMetaData.prototype.runByName = ""; + ComplianceReportMetaData.prototype.runByName = ''; /** * ComplianceReportMetaData numberOfOwners. @@ -64890,22 +67282,21 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ ComplianceReportMetaData.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.reportUid != null && Object.hasOwnProperty.call(message, "reportUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.reportUid); - if (message.nodeId != null && Object.hasOwnProperty.call(message, "nodeId")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.nodeId); - if (message.reportName != null && Object.hasOwnProperty.call(message, "reportName")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.reportName); - if (message.dateGenerated != null && Object.hasOwnProperty.call(message, "dateGenerated")) - writer.uint32(/* id 4, wireType 0 =*/32).int64(message.dateGenerated); - if (message.runByName != null && Object.hasOwnProperty.call(message, "runByName")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.runByName); - if (message.numberOfOwners != null && Object.hasOwnProperty.call(message, "numberOfOwners")) - writer.uint32(/* id 7, wireType 0 =*/56).int32(message.numberOfOwners); - if (message.numberOfRecords != null && Object.hasOwnProperty.call(message, "numberOfRecords")) - writer.uint32(/* id 8, wireType 0 =*/64).int32(message.numberOfRecords); + if (!writer) writer = $Writer.create(); + if (message.reportUid != null && Object.hasOwnProperty.call(message, 'reportUid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.reportUid); + if (message.nodeId != null && Object.hasOwnProperty.call(message, 'nodeId')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int64(message.nodeId); + if (message.reportName != null && Object.hasOwnProperty.call(message, 'reportName')) + writer.uint32(/* id 3, wireType 2 =*/ 26).string(message.reportName); + if (message.dateGenerated != null && Object.hasOwnProperty.call(message, 'dateGenerated')) + writer.uint32(/* id 4, wireType 0 =*/ 32).int64(message.dateGenerated); + if (message.runByName != null && Object.hasOwnProperty.call(message, 'runByName')) + writer.uint32(/* id 5, wireType 2 =*/ 42).string(message.runByName); + if (message.numberOfOwners != null && Object.hasOwnProperty.call(message, 'numberOfOwners')) + writer.uint32(/* id 7, wireType 0 =*/ 56).int32(message.numberOfOwners); + if (message.numberOfRecords != null && Object.hasOwnProperty.call(message, 'numberOfRecords')) + writer.uint32(/* id 8, wireType 0 =*/ 64).int32(message.numberOfRecords); return writer; }; @@ -64934,43 +67325,43 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ComplianceReportMetaData.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.ComplianceReportMetaData(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.ComplianceReportMetaData(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.reportUid = reader.bytes(); break; } - case 2: { + case 2: { message.nodeId = reader.int64(); break; } - case 3: { + case 3: { message.reportName = reader.string(); break; } - case 4: { + case 4: { message.dateGenerated = reader.int64(); break; } - case 5: { + case 5: { message.runByName = reader.string(); break; } - case 7: { + case 7: { message.numberOfOwners = reader.int32(); break; } - case 8: { + case 8: { message.numberOfRecords = reader.int32(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -64987,8 +67378,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ComplianceReportMetaData.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -65001,29 +67391,39 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ ComplianceReportMetaData.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.reportUid != null && message.hasOwnProperty("reportUid")) - if (!(message.reportUid && typeof message.reportUid.length === "number" || $util.isString(message.reportUid))) - return "reportUid: buffer expected"; - if (message.nodeId != null && message.hasOwnProperty("nodeId")) - if (!$util.isInteger(message.nodeId) && !(message.nodeId && $util.isInteger(message.nodeId.low) && $util.isInteger(message.nodeId.high))) - return "nodeId: integer|Long expected"; - if (message.reportName != null && message.hasOwnProperty("reportName")) - if (!$util.isString(message.reportName)) - return "reportName: string expected"; - if (message.dateGenerated != null && message.hasOwnProperty("dateGenerated")) - if (!$util.isInteger(message.dateGenerated) && !(message.dateGenerated && $util.isInteger(message.dateGenerated.low) && $util.isInteger(message.dateGenerated.high))) - return "dateGenerated: integer|Long expected"; - if (message.runByName != null && message.hasOwnProperty("runByName")) - if (!$util.isString(message.runByName)) - return "runByName: string expected"; - if (message.numberOfOwners != null && message.hasOwnProperty("numberOfOwners")) - if (!$util.isInteger(message.numberOfOwners)) - return "numberOfOwners: integer expected"; - if (message.numberOfRecords != null && message.hasOwnProperty("numberOfRecords")) - if (!$util.isInteger(message.numberOfRecords)) - return "numberOfRecords: integer expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.reportUid != null && message.hasOwnProperty('reportUid')) + if ( + !( + (message.reportUid && typeof message.reportUid.length === 'number') || + $util.isString(message.reportUid) + ) + ) + return 'reportUid: buffer expected'; + if (message.nodeId != null && message.hasOwnProperty('nodeId')) + if ( + !$util.isInteger(message.nodeId) && + !(message.nodeId && $util.isInteger(message.nodeId.low) && $util.isInteger(message.nodeId.high)) + ) + return 'nodeId: integer|Long expected'; + if (message.reportName != null && message.hasOwnProperty('reportName')) + if (!$util.isString(message.reportName)) return 'reportName: string expected'; + if (message.dateGenerated != null && message.hasOwnProperty('dateGenerated')) + if ( + !$util.isInteger(message.dateGenerated) && + !( + message.dateGenerated && + $util.isInteger(message.dateGenerated.low) && + $util.isInteger(message.dateGenerated.high) + ) + ) + return 'dateGenerated: integer|Long expected'; + if (message.runByName != null && message.hasOwnProperty('runByName')) + if (!$util.isString(message.runByName)) return 'runByName: string expected'; + if (message.numberOfOwners != null && message.hasOwnProperty('numberOfOwners')) + if (!$util.isInteger(message.numberOfOwners)) return 'numberOfOwners: integer expected'; + if (message.numberOfRecords != null && message.hasOwnProperty('numberOfRecords')) + if (!$util.isInteger(message.numberOfRecords)) return 'numberOfRecords: integer expected'; return null; }; @@ -65036,40 +67436,36 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.ComplianceReportMetaData} ComplianceReportMetaData */ ComplianceReportMetaData.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.ComplianceReportMetaData) - return object; + if (object instanceof $root.Enterprise.ComplianceReportMetaData) return object; let message = new $root.Enterprise.ComplianceReportMetaData(); if (object.reportUid != null) - if (typeof object.reportUid === "string") - $util.base64.decode(object.reportUid, message.reportUid = $util.newBuffer($util.base64.length(object.reportUid)), 0); - else if (object.reportUid.length >= 0) - message.reportUid = object.reportUid; + if (typeof object.reportUid === 'string') + $util.base64.decode( + object.reportUid, + (message.reportUid = $util.newBuffer($util.base64.length(object.reportUid))), + 0 + ); + else if (object.reportUid.length >= 0) message.reportUid = object.reportUid; if (object.nodeId != null) - if ($util.Long) - (message.nodeId = $util.Long.fromValue(object.nodeId)).unsigned = false; - else if (typeof object.nodeId === "string") - message.nodeId = parseInt(object.nodeId, 10); - else if (typeof object.nodeId === "number") - message.nodeId = object.nodeId; - else if (typeof object.nodeId === "object") + if ($util.Long) (message.nodeId = $util.Long.fromValue(object.nodeId)).unsigned = false; + else if (typeof object.nodeId === 'string') message.nodeId = parseInt(object.nodeId, 10); + else if (typeof object.nodeId === 'number') message.nodeId = object.nodeId; + else if (typeof object.nodeId === 'object') message.nodeId = new $util.LongBits(object.nodeId.low >>> 0, object.nodeId.high >>> 0).toNumber(); - if (object.reportName != null) - message.reportName = String(object.reportName); + if (object.reportName != null) message.reportName = String(object.reportName); if (object.dateGenerated != null) - if ($util.Long) - (message.dateGenerated = $util.Long.fromValue(object.dateGenerated)).unsigned = false; - else if (typeof object.dateGenerated === "string") + if ($util.Long) (message.dateGenerated = $util.Long.fromValue(object.dateGenerated)).unsigned = false; + else if (typeof object.dateGenerated === 'string') message.dateGenerated = parseInt(object.dateGenerated, 10); - else if (typeof object.dateGenerated === "number") - message.dateGenerated = object.dateGenerated; - else if (typeof object.dateGenerated === "object") - message.dateGenerated = new $util.LongBits(object.dateGenerated.low >>> 0, object.dateGenerated.high >>> 0).toNumber(); - if (object.runByName != null) - message.runByName = String(object.runByName); - if (object.numberOfOwners != null) - message.numberOfOwners = object.numberOfOwners | 0; - if (object.numberOfRecords != null) - message.numberOfRecords = object.numberOfRecords | 0; + else if (typeof object.dateGenerated === 'number') message.dateGenerated = object.dateGenerated; + else if (typeof object.dateGenerated === 'object') + message.dateGenerated = new $util.LongBits( + object.dateGenerated.low >>> 0, + object.dateGenerated.high >>> 0 + ).toNumber(); + if (object.runByName != null) message.runByName = String(object.runByName); + if (object.numberOfOwners != null) message.numberOfOwners = object.numberOfOwners | 0; + if (object.numberOfRecords != null) message.numberOfRecords = object.numberOfRecords | 0; return message; }; @@ -65083,51 +67479,66 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ ComplianceReportMetaData.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.reportUid = ""; + if (options.bytes === String) object.reportUid = ''; else { object.reportUid = []; - if (options.bytes !== Array) - object.reportUid = $util.newBuffer(object.reportUid); + if (options.bytes !== Array) object.reportUid = $util.newBuffer(object.reportUid); } if ($util.Long) { let long = new $util.Long(0, 0, false); - object.nodeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.nodeId = options.longs === String ? "0" : 0; - object.reportName = ""; + object.nodeId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.nodeId = options.longs === String ? '0' : 0; + object.reportName = ''; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.dateGenerated = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.dateGenerated = options.longs === String ? "0" : 0; - object.runByName = ""; + object.dateGenerated = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.dateGenerated = options.longs === String ? '0' : 0; + object.runByName = ''; object.numberOfOwners = 0; object.numberOfRecords = 0; } - if (message.reportUid != null && message.hasOwnProperty("reportUid")) - object.reportUid = options.bytes === String ? $util.base64.encode(message.reportUid, 0, message.reportUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.reportUid) : message.reportUid; - if (message.nodeId != null && message.hasOwnProperty("nodeId")) - if (typeof message.nodeId === "number") + if (message.reportUid != null && message.hasOwnProperty('reportUid')) + object.reportUid = + options.bytes === String + ? $util.base64.encode(message.reportUid, 0, message.reportUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.reportUid) + : message.reportUid; + if (message.nodeId != null && message.hasOwnProperty('nodeId')) + if (typeof message.nodeId === 'number') object.nodeId = options.longs === String ? String(message.nodeId) : message.nodeId; else - object.nodeId = options.longs === String ? $util.Long.prototype.toString.call(message.nodeId) : options.longs === Number ? new $util.LongBits(message.nodeId.low >>> 0, message.nodeId.high >>> 0).toNumber() : message.nodeId; - if (message.reportName != null && message.hasOwnProperty("reportName")) + object.nodeId = + options.longs === String + ? $util.Long.prototype.toString.call(message.nodeId) + : options.longs === Number + ? new $util.LongBits(message.nodeId.low >>> 0, message.nodeId.high >>> 0).toNumber() + : message.nodeId; + if (message.reportName != null && message.hasOwnProperty('reportName')) object.reportName = message.reportName; - if (message.dateGenerated != null && message.hasOwnProperty("dateGenerated")) - if (typeof message.dateGenerated === "number") - object.dateGenerated = options.longs === String ? String(message.dateGenerated) : message.dateGenerated; + if (message.dateGenerated != null && message.hasOwnProperty('dateGenerated')) + if (typeof message.dateGenerated === 'number') + object.dateGenerated = + options.longs === String ? String(message.dateGenerated) : message.dateGenerated; else - object.dateGenerated = options.longs === String ? $util.Long.prototype.toString.call(message.dateGenerated) : options.longs === Number ? new $util.LongBits(message.dateGenerated.low >>> 0, message.dateGenerated.high >>> 0).toNumber() : message.dateGenerated; - if (message.runByName != null && message.hasOwnProperty("runByName")) - object.runByName = message.runByName; - if (message.numberOfOwners != null && message.hasOwnProperty("numberOfOwners")) + object.dateGenerated = + options.longs === String + ? $util.Long.prototype.toString.call(message.dateGenerated) + : options.longs === Number + ? new $util.LongBits( + message.dateGenerated.low >>> 0, + message.dateGenerated.high >>> 0 + ).toNumber() + : message.dateGenerated; + if (message.runByName != null && message.hasOwnProperty('runByName')) object.runByName = message.runByName; + if (message.numberOfOwners != null && message.hasOwnProperty('numberOfOwners')) object.numberOfOwners = message.numberOfOwners; - if (message.numberOfRecords != null && message.hasOwnProperty("numberOfRecords")) + if (message.numberOfRecords != null && message.hasOwnProperty('numberOfRecords')) object.numberOfRecords = message.numberOfRecords; return object; }; @@ -65153,16 +67564,15 @@ export const Enterprise = $root.Enterprise = (() => { */ ComplianceReportMetaData.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.ComplianceReportMetaData"; + return typeUrlPrefix + '/Enterprise.ComplianceReportMetaData'; }; return ComplianceReportMetaData; })(); - Enterprise.ManagedNode = (function() { - + Enterprise.ManagedNode = (function () { /** * Properties of a ManagedNode. * @memberof Enterprise @@ -65183,8 +67593,7 @@ export const Enterprise = $root.Enterprise = (() => { function ManagedNode(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -65193,7 +67602,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.ManagedNode * @instance */ - ManagedNode.prototype.roleId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + ManagedNode.prototype.roleId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * ManagedNode managedNodeId. @@ -65201,7 +67610,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.ManagedNode * @instance */ - ManagedNode.prototype.managedNodeId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + ManagedNode.prototype.managedNodeId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * ManagedNode cascadeNodeManagement. @@ -65233,14 +67642,13 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ ManagedNode.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.roleId != null && Object.hasOwnProperty.call(message, "roleId")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.roleId); - if (message.managedNodeId != null && Object.hasOwnProperty.call(message, "managedNodeId")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.managedNodeId); - if (message.cascadeNodeManagement != null && Object.hasOwnProperty.call(message, "cascadeNodeManagement")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.cascadeNodeManagement); + if (!writer) writer = $Writer.create(); + if (message.roleId != null && Object.hasOwnProperty.call(message, 'roleId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int64(message.roleId); + if (message.managedNodeId != null && Object.hasOwnProperty.call(message, 'managedNodeId')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int64(message.managedNodeId); + if (message.cascadeNodeManagement != null && Object.hasOwnProperty.call(message, 'cascadeNodeManagement')) + writer.uint32(/* id 3, wireType 0 =*/ 24).bool(message.cascadeNodeManagement); return writer; }; @@ -65269,27 +67677,27 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ManagedNode.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.ManagedNode(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.ManagedNode(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.roleId = reader.int64(); break; } - case 2: { + case 2: { message.managedNodeId = reader.int64(); break; } - case 3: { + case 3: { message.cascadeNodeManagement = reader.bool(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -65306,8 +67714,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ManagedNode.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -65320,17 +67727,26 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ ManagedNode.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.roleId != null && message.hasOwnProperty("roleId")) - if (!$util.isInteger(message.roleId) && !(message.roleId && $util.isInteger(message.roleId.low) && $util.isInteger(message.roleId.high))) - return "roleId: integer|Long expected"; - if (message.managedNodeId != null && message.hasOwnProperty("managedNodeId")) - if (!$util.isInteger(message.managedNodeId) && !(message.managedNodeId && $util.isInteger(message.managedNodeId.low) && $util.isInteger(message.managedNodeId.high))) - return "managedNodeId: integer|Long expected"; - if (message.cascadeNodeManagement != null && message.hasOwnProperty("cascadeNodeManagement")) - if (typeof message.cascadeNodeManagement !== "boolean") - return "cascadeNodeManagement: boolean expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.roleId != null && message.hasOwnProperty('roleId')) + if ( + !$util.isInteger(message.roleId) && + !(message.roleId && $util.isInteger(message.roleId.low) && $util.isInteger(message.roleId.high)) + ) + return 'roleId: integer|Long expected'; + if (message.managedNodeId != null && message.hasOwnProperty('managedNodeId')) + if ( + !$util.isInteger(message.managedNodeId) && + !( + message.managedNodeId && + $util.isInteger(message.managedNodeId.low) && + $util.isInteger(message.managedNodeId.high) + ) + ) + return 'managedNodeId: integer|Long expected'; + if (message.cascadeNodeManagement != null && message.hasOwnProperty('cascadeNodeManagement')) + if (typeof message.cascadeNodeManagement !== 'boolean') + return 'cascadeNodeManagement: boolean expected'; return null; }; @@ -65343,27 +67759,24 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.ManagedNode} ManagedNode */ ManagedNode.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.ManagedNode) - return object; + if (object instanceof $root.Enterprise.ManagedNode) return object; let message = new $root.Enterprise.ManagedNode(); if (object.roleId != null) - if ($util.Long) - (message.roleId = $util.Long.fromValue(object.roleId)).unsigned = false; - else if (typeof object.roleId === "string") - message.roleId = parseInt(object.roleId, 10); - else if (typeof object.roleId === "number") - message.roleId = object.roleId; - else if (typeof object.roleId === "object") + if ($util.Long) (message.roleId = $util.Long.fromValue(object.roleId)).unsigned = false; + else if (typeof object.roleId === 'string') message.roleId = parseInt(object.roleId, 10); + else if (typeof object.roleId === 'number') message.roleId = object.roleId; + else if (typeof object.roleId === 'object') message.roleId = new $util.LongBits(object.roleId.low >>> 0, object.roleId.high >>> 0).toNumber(); if (object.managedNodeId != null) - if ($util.Long) - (message.managedNodeId = $util.Long.fromValue(object.managedNodeId)).unsigned = false; - else if (typeof object.managedNodeId === "string") + if ($util.Long) (message.managedNodeId = $util.Long.fromValue(object.managedNodeId)).unsigned = false; + else if (typeof object.managedNodeId === 'string') message.managedNodeId = parseInt(object.managedNodeId, 10); - else if (typeof object.managedNodeId === "number") - message.managedNodeId = object.managedNodeId; - else if (typeof object.managedNodeId === "object") - message.managedNodeId = new $util.LongBits(object.managedNodeId.low >>> 0, object.managedNodeId.high >>> 0).toNumber(); + else if (typeof object.managedNodeId === 'number') message.managedNodeId = object.managedNodeId; + else if (typeof object.managedNodeId === 'object') + message.managedNodeId = new $util.LongBits( + object.managedNodeId.low >>> 0, + object.managedNodeId.high >>> 0 + ).toNumber(); if (object.cascadeNodeManagement != null) message.cascadeNodeManagement = Boolean(object.cascadeNodeManagement); return message; @@ -65379,33 +67792,46 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ ManagedNode.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.roleId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.roleId = options.longs === String ? "0" : 0; + object.roleId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.roleId = options.longs === String ? '0' : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.managedNodeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.managedNodeId = options.longs === String ? "0" : 0; + object.managedNodeId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.managedNodeId = options.longs === String ? '0' : 0; object.cascadeNodeManagement = false; } - if (message.roleId != null && message.hasOwnProperty("roleId")) - if (typeof message.roleId === "number") + if (message.roleId != null && message.hasOwnProperty('roleId')) + if (typeof message.roleId === 'number') object.roleId = options.longs === String ? String(message.roleId) : message.roleId; else - object.roleId = options.longs === String ? $util.Long.prototype.toString.call(message.roleId) : options.longs === Number ? new $util.LongBits(message.roleId.low >>> 0, message.roleId.high >>> 0).toNumber() : message.roleId; - if (message.managedNodeId != null && message.hasOwnProperty("managedNodeId")) - if (typeof message.managedNodeId === "number") - object.managedNodeId = options.longs === String ? String(message.managedNodeId) : message.managedNodeId; + object.roleId = + options.longs === String + ? $util.Long.prototype.toString.call(message.roleId) + : options.longs === Number + ? new $util.LongBits(message.roleId.low >>> 0, message.roleId.high >>> 0).toNumber() + : message.roleId; + if (message.managedNodeId != null && message.hasOwnProperty('managedNodeId')) + if (typeof message.managedNodeId === 'number') + object.managedNodeId = + options.longs === String ? String(message.managedNodeId) : message.managedNodeId; else - object.managedNodeId = options.longs === String ? $util.Long.prototype.toString.call(message.managedNodeId) : options.longs === Number ? new $util.LongBits(message.managedNodeId.low >>> 0, message.managedNodeId.high >>> 0).toNumber() : message.managedNodeId; - if (message.cascadeNodeManagement != null && message.hasOwnProperty("cascadeNodeManagement")) + object.managedNodeId = + options.longs === String + ? $util.Long.prototype.toString.call(message.managedNodeId) + : options.longs === Number + ? new $util.LongBits( + message.managedNodeId.low >>> 0, + message.managedNodeId.high >>> 0 + ).toNumber() + : message.managedNodeId; + if (message.cascadeNodeManagement != null && message.hasOwnProperty('cascadeNodeManagement')) object.cascadeNodeManagement = message.cascadeNodeManagement; return object; }; @@ -65431,16 +67857,15 @@ export const Enterprise = $root.Enterprise = (() => { */ ManagedNode.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.ManagedNode"; + return typeUrlPrefix + '/Enterprise.ManagedNode'; }; return ManagedNode; })(); - Enterprise.UserManagedNode = (function() { - + Enterprise.UserManagedNode = (function () { /** * Properties of a UserManagedNode. * @memberof Enterprise @@ -65462,8 +67887,7 @@ export const Enterprise = $root.Enterprise = (() => { this.privileges = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -65472,7 +67896,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.UserManagedNode * @instance */ - UserManagedNode.prototype.nodeId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + UserManagedNode.prototype.nodeId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * UserManagedNode cascadeNodeManagement. @@ -65512,15 +67936,14 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ UserManagedNode.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.nodeId != null && Object.hasOwnProperty.call(message, "nodeId")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.nodeId); - if (message.cascadeNodeManagement != null && Object.hasOwnProperty.call(message, "cascadeNodeManagement")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.cascadeNodeManagement); + if (!writer) writer = $Writer.create(); + if (message.nodeId != null && Object.hasOwnProperty.call(message, 'nodeId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int64(message.nodeId); + if (message.cascadeNodeManagement != null && Object.hasOwnProperty.call(message, 'cascadeNodeManagement')) + writer.uint32(/* id 2, wireType 0 =*/ 16).bool(message.cascadeNodeManagement); if (message.privileges != null && message.privileges.length) for (let i = 0; i < message.privileges.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.privileges[i]); + writer.uint32(/* id 3, wireType 2 =*/ 26).string(message.privileges[i]); return writer; }; @@ -65549,29 +67972,28 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ UserManagedNode.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.UserManagedNode(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.UserManagedNode(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.nodeId = reader.int64(); break; } - case 2: { + case 2: { message.cascadeNodeManagement = reader.bool(); break; } - case 3: { - if (!(message.privileges && message.privileges.length)) - message.privileges = []; + case 3: { + if (!(message.privileges && message.privileges.length)) message.privileges = []; message.privileges.push(reader.string()); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -65588,8 +68010,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ UserManagedNode.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -65602,20 +68023,20 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ UserManagedNode.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.nodeId != null && message.hasOwnProperty("nodeId")) - if (!$util.isInteger(message.nodeId) && !(message.nodeId && $util.isInteger(message.nodeId.low) && $util.isInteger(message.nodeId.high))) - return "nodeId: integer|Long expected"; - if (message.cascadeNodeManagement != null && message.hasOwnProperty("cascadeNodeManagement")) - if (typeof message.cascadeNodeManagement !== "boolean") - return "cascadeNodeManagement: boolean expected"; - if (message.privileges != null && message.hasOwnProperty("privileges")) { - if (!Array.isArray(message.privileges)) - return "privileges: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.nodeId != null && message.hasOwnProperty('nodeId')) + if ( + !$util.isInteger(message.nodeId) && + !(message.nodeId && $util.isInteger(message.nodeId.low) && $util.isInteger(message.nodeId.high)) + ) + return 'nodeId: integer|Long expected'; + if (message.cascadeNodeManagement != null && message.hasOwnProperty('cascadeNodeManagement')) + if (typeof message.cascadeNodeManagement !== 'boolean') + return 'cascadeNodeManagement: boolean expected'; + if (message.privileges != null && message.hasOwnProperty('privileges')) { + if (!Array.isArray(message.privileges)) return 'privileges: array expected'; for (let i = 0; i < message.privileges.length; ++i) - if (!$util.isString(message.privileges[i])) - return "privileges: string[] expected"; + if (!$util.isString(message.privileges[i])) return 'privileges: string[] expected'; } return null; }; @@ -65629,26 +68050,21 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.UserManagedNode} UserManagedNode */ UserManagedNode.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.UserManagedNode) - return object; + if (object instanceof $root.Enterprise.UserManagedNode) return object; let message = new $root.Enterprise.UserManagedNode(); if (object.nodeId != null) - if ($util.Long) - (message.nodeId = $util.Long.fromValue(object.nodeId)).unsigned = false; - else if (typeof object.nodeId === "string") - message.nodeId = parseInt(object.nodeId, 10); - else if (typeof object.nodeId === "number") - message.nodeId = object.nodeId; - else if (typeof object.nodeId === "object") + if ($util.Long) (message.nodeId = $util.Long.fromValue(object.nodeId)).unsigned = false; + else if (typeof object.nodeId === 'string') message.nodeId = parseInt(object.nodeId, 10); + else if (typeof object.nodeId === 'number') message.nodeId = object.nodeId; + else if (typeof object.nodeId === 'object') message.nodeId = new $util.LongBits(object.nodeId.low >>> 0, object.nodeId.high >>> 0).toNumber(); if (object.cascadeNodeManagement != null) message.cascadeNodeManagement = Boolean(object.cascadeNodeManagement); if (object.privileges) { if (!Array.isArray(object.privileges)) - throw TypeError(".Enterprise.UserManagedNode.privileges: array expected"); + throw TypeError('.Enterprise.UserManagedNode.privileges: array expected'); message.privileges = []; - for (let i = 0; i < object.privileges.length; ++i) - message.privileges[i] = String(object.privileges[i]); + for (let i = 0; i < object.privileges.length; ++i) message.privileges[i] = String(object.privileges[i]); } return message; }; @@ -65663,30 +68079,32 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ UserManagedNode.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.privileges = []; + if (options.arrays || options.defaults) object.privileges = []; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.nodeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.nodeId = options.longs === String ? "0" : 0; + object.nodeId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.nodeId = options.longs === String ? '0' : 0; object.cascadeNodeManagement = false; } - if (message.nodeId != null && message.hasOwnProperty("nodeId")) - if (typeof message.nodeId === "number") + if (message.nodeId != null && message.hasOwnProperty('nodeId')) + if (typeof message.nodeId === 'number') object.nodeId = options.longs === String ? String(message.nodeId) : message.nodeId; else - object.nodeId = options.longs === String ? $util.Long.prototype.toString.call(message.nodeId) : options.longs === Number ? new $util.LongBits(message.nodeId.low >>> 0, message.nodeId.high >>> 0).toNumber() : message.nodeId; - if (message.cascadeNodeManagement != null && message.hasOwnProperty("cascadeNodeManagement")) + object.nodeId = + options.longs === String + ? $util.Long.prototype.toString.call(message.nodeId) + : options.longs === Number + ? new $util.LongBits(message.nodeId.low >>> 0, message.nodeId.high >>> 0).toNumber() + : message.nodeId; + if (message.cascadeNodeManagement != null && message.hasOwnProperty('cascadeNodeManagement')) object.cascadeNodeManagement = message.cascadeNodeManagement; if (message.privileges && message.privileges.length) { object.privileges = []; - for (let j = 0; j < message.privileges.length; ++j) - object.privileges[j] = message.privileges[j]; + for (let j = 0; j < message.privileges.length; ++j) object.privileges[j] = message.privileges[j]; } return object; }; @@ -65712,16 +68130,15 @@ export const Enterprise = $root.Enterprise = (() => { */ UserManagedNode.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.UserManagedNode"; + return typeUrlPrefix + '/Enterprise.UserManagedNode'; }; return UserManagedNode; })(); - Enterprise.UserPrivilege = (function() { - + Enterprise.UserPrivilege = (function () { /** * Properties of a UserPrivilege. * @memberof Enterprise @@ -65743,8 +68160,7 @@ export const Enterprise = $root.Enterprise = (() => { this.userManagedNodes = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -65761,7 +68177,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.UserPrivilege * @instance */ - UserPrivilege.prototype.enterpriseUserId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + UserPrivilege.prototype.enterpriseUserId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * UserPrivilege encryptedData. @@ -65769,7 +68185,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.UserPrivilege * @instance */ - UserPrivilege.prototype.encryptedData = ""; + UserPrivilege.prototype.encryptedData = ''; /** * Creates a new UserPrivilege instance using the specified properties. @@ -65793,15 +68209,17 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ UserPrivilege.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.userManagedNodes != null && message.userManagedNodes.length) for (let i = 0; i < message.userManagedNodes.length; ++i) - $root.Enterprise.UserManagedNode.encode(message.userManagedNodes[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "enterpriseUserId")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.enterpriseUserId); - if (message.encryptedData != null && Object.hasOwnProperty.call(message, "encryptedData")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.encryptedData); + $root.Enterprise.UserManagedNode.encode( + message.userManagedNodes[i], + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); + if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, 'enterpriseUserId')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int64(message.enterpriseUserId); + if (message.encryptedData != null && Object.hasOwnProperty.call(message, 'encryptedData')) + writer.uint32(/* id 3, wireType 2 =*/ 26).string(message.encryptedData); return writer; }; @@ -65830,29 +68248,29 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ UserPrivilege.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.UserPrivilege(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.UserPrivilege(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { if (!(message.userManagedNodes && message.userManagedNodes.length)) message.userManagedNodes = []; message.userManagedNodes.push($root.Enterprise.UserManagedNode.decode(reader, reader.uint32())); break; } - case 2: { + case 2: { message.enterpriseUserId = reader.int64(); break; } - case 3: { + case 3: { message.encryptedData = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -65869,8 +68287,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ UserPrivilege.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -65883,23 +68300,26 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ UserPrivilege.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.userManagedNodes != null && message.hasOwnProperty("userManagedNodes")) { - if (!Array.isArray(message.userManagedNodes)) - return "userManagedNodes: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.userManagedNodes != null && message.hasOwnProperty('userManagedNodes')) { + if (!Array.isArray(message.userManagedNodes)) return 'userManagedNodes: array expected'; for (let i = 0; i < message.userManagedNodes.length; ++i) { let error = $root.Enterprise.UserManagedNode.verify(message.userManagedNodes[i]); - if (error) - return "userManagedNodes." + error; + if (error) return 'userManagedNodes.' + error; } } - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (!$util.isInteger(message.enterpriseUserId) && !(message.enterpriseUserId && $util.isInteger(message.enterpriseUserId.low) && $util.isInteger(message.enterpriseUserId.high))) - return "enterpriseUserId: integer|Long expected"; - if (message.encryptedData != null && message.hasOwnProperty("encryptedData")) - if (!$util.isString(message.encryptedData)) - return "encryptedData: string expected"; + if (message.enterpriseUserId != null && message.hasOwnProperty('enterpriseUserId')) + if ( + !$util.isInteger(message.enterpriseUserId) && + !( + message.enterpriseUserId && + $util.isInteger(message.enterpriseUserId.low) && + $util.isInteger(message.enterpriseUserId.high) + ) + ) + return 'enterpriseUserId: integer|Long expected'; + if (message.encryptedData != null && message.hasOwnProperty('encryptedData')) + if (!$util.isString(message.encryptedData)) return 'encryptedData: string expected'; return null; }; @@ -65912,30 +68332,33 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.UserPrivilege} UserPrivilege */ UserPrivilege.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.UserPrivilege) - return object; + if (object instanceof $root.Enterprise.UserPrivilege) return object; let message = new $root.Enterprise.UserPrivilege(); if (object.userManagedNodes) { if (!Array.isArray(object.userManagedNodes)) - throw TypeError(".Enterprise.UserPrivilege.userManagedNodes: array expected"); + throw TypeError('.Enterprise.UserPrivilege.userManagedNodes: array expected'); message.userManagedNodes = []; for (let i = 0; i < object.userManagedNodes.length; ++i) { - if (typeof object.userManagedNodes[i] !== "object") - throw TypeError(".Enterprise.UserPrivilege.userManagedNodes: object expected"); - message.userManagedNodes[i] = $root.Enterprise.UserManagedNode.fromObject(object.userManagedNodes[i]); + if (typeof object.userManagedNodes[i] !== 'object') + throw TypeError('.Enterprise.UserPrivilege.userManagedNodes: object expected'); + message.userManagedNodes[i] = $root.Enterprise.UserManagedNode.fromObject( + object.userManagedNodes[i] + ); } } if (object.enterpriseUserId != null) if ($util.Long) (message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId)).unsigned = false; - else if (typeof object.enterpriseUserId === "string") + else if (typeof object.enterpriseUserId === 'string') message.enterpriseUserId = parseInt(object.enterpriseUserId, 10); - else if (typeof object.enterpriseUserId === "number") + else if (typeof object.enterpriseUserId === 'number') message.enterpriseUserId = object.enterpriseUserId; - else if (typeof object.enterpriseUserId === "object") - message.enterpriseUserId = new $util.LongBits(object.enterpriseUserId.low >>> 0, object.enterpriseUserId.high >>> 0).toNumber(); - if (object.encryptedData != null) - message.encryptedData = String(object.encryptedData); + else if (typeof object.enterpriseUserId === 'object') + message.enterpriseUserId = new $util.LongBits( + object.enterpriseUserId.low >>> 0, + object.enterpriseUserId.high >>> 0 + ).toNumber(); + if (object.encryptedData != null) message.encryptedData = String(object.encryptedData); return message; }; @@ -65949,30 +68372,40 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ UserPrivilege.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.userManagedNodes = []; + if (options.arrays || options.defaults) object.userManagedNodes = []; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.enterpriseUserId = options.longs === String ? "0" : 0; - object.encryptedData = ""; + object.enterpriseUserId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.enterpriseUserId = options.longs === String ? '0' : 0; + object.encryptedData = ''; } if (message.userManagedNodes && message.userManagedNodes.length) { object.userManagedNodes = []; for (let j = 0; j < message.userManagedNodes.length; ++j) - object.userManagedNodes[j] = $root.Enterprise.UserManagedNode.toObject(message.userManagedNodes[j], options); - } - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (typeof message.enterpriseUserId === "number") - object.enterpriseUserId = options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; + object.userManagedNodes[j] = $root.Enterprise.UserManagedNode.toObject( + message.userManagedNodes[j], + options + ); + } + if (message.enterpriseUserId != null && message.hasOwnProperty('enterpriseUserId')) + if (typeof message.enterpriseUserId === 'number') + object.enterpriseUserId = + options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; else - object.enterpriseUserId = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseUserId) : options.longs === Number ? new $util.LongBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0).toNumber() : message.enterpriseUserId; - if (message.encryptedData != null && message.hasOwnProperty("encryptedData")) + object.enterpriseUserId = + options.longs === String + ? $util.Long.prototype.toString.call(message.enterpriseUserId) + : options.longs === Number + ? new $util.LongBits( + message.enterpriseUserId.low >>> 0, + message.enterpriseUserId.high >>> 0 + ).toNumber() + : message.enterpriseUserId; + if (message.encryptedData != null && message.hasOwnProperty('encryptedData')) object.encryptedData = message.encryptedData; return object; }; @@ -65998,16 +68431,15 @@ export const Enterprise = $root.Enterprise = (() => { */ UserPrivilege.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.UserPrivilege"; + return typeUrlPrefix + '/Enterprise.UserPrivilege'; }; return UserPrivilege; })(); - Enterprise.RoleUser = (function() { - + Enterprise.RoleUser = (function () { /** * Properties of a RoleUser. * @memberof Enterprise @@ -66027,8 +68459,7 @@ export const Enterprise = $root.Enterprise = (() => { function RoleUser(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -66037,7 +68468,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.RoleUser * @instance */ - RoleUser.prototype.roleId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + RoleUser.prototype.roleId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * RoleUser enterpriseUserId. @@ -66045,7 +68476,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.RoleUser * @instance */ - RoleUser.prototype.enterpriseUserId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + RoleUser.prototype.enterpriseUserId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * Creates a new RoleUser instance using the specified properties. @@ -66069,12 +68500,11 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ RoleUser.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.roleId != null && Object.hasOwnProperty.call(message, "roleId")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.roleId); - if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "enterpriseUserId")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.enterpriseUserId); + if (!writer) writer = $Writer.create(); + if (message.roleId != null && Object.hasOwnProperty.call(message, 'roleId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int64(message.roleId); + if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, 'enterpriseUserId')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int64(message.enterpriseUserId); return writer; }; @@ -66103,23 +68533,23 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RoleUser.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.RoleUser(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.RoleUser(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.roleId = reader.int64(); break; } - case 2: { + case 2: { message.enterpriseUserId = reader.int64(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -66136,8 +68566,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RoleUser.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -66150,14 +68579,23 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ RoleUser.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.roleId != null && message.hasOwnProperty("roleId")) - if (!$util.isInteger(message.roleId) && !(message.roleId && $util.isInteger(message.roleId.low) && $util.isInteger(message.roleId.high))) - return "roleId: integer|Long expected"; - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (!$util.isInteger(message.enterpriseUserId) && !(message.enterpriseUserId && $util.isInteger(message.enterpriseUserId.low) && $util.isInteger(message.enterpriseUserId.high))) - return "enterpriseUserId: integer|Long expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.roleId != null && message.hasOwnProperty('roleId')) + if ( + !$util.isInteger(message.roleId) && + !(message.roleId && $util.isInteger(message.roleId.low) && $util.isInteger(message.roleId.high)) + ) + return 'roleId: integer|Long expected'; + if (message.enterpriseUserId != null && message.hasOwnProperty('enterpriseUserId')) + if ( + !$util.isInteger(message.enterpriseUserId) && + !( + message.enterpriseUserId && + $util.isInteger(message.enterpriseUserId.low) && + $util.isInteger(message.enterpriseUserId.high) + ) + ) + return 'enterpriseUserId: integer|Long expected'; return null; }; @@ -66170,27 +68608,26 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.RoleUser} RoleUser */ RoleUser.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.RoleUser) - return object; + if (object instanceof $root.Enterprise.RoleUser) return object; let message = new $root.Enterprise.RoleUser(); if (object.roleId != null) - if ($util.Long) - (message.roleId = $util.Long.fromValue(object.roleId)).unsigned = false; - else if (typeof object.roleId === "string") - message.roleId = parseInt(object.roleId, 10); - else if (typeof object.roleId === "number") - message.roleId = object.roleId; - else if (typeof object.roleId === "object") + if ($util.Long) (message.roleId = $util.Long.fromValue(object.roleId)).unsigned = false; + else if (typeof object.roleId === 'string') message.roleId = parseInt(object.roleId, 10); + else if (typeof object.roleId === 'number') message.roleId = object.roleId; + else if (typeof object.roleId === 'object') message.roleId = new $util.LongBits(object.roleId.low >>> 0, object.roleId.high >>> 0).toNumber(); if (object.enterpriseUserId != null) if ($util.Long) (message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId)).unsigned = false; - else if (typeof object.enterpriseUserId === "string") + else if (typeof object.enterpriseUserId === 'string') message.enterpriseUserId = parseInt(object.enterpriseUserId, 10); - else if (typeof object.enterpriseUserId === "number") + else if (typeof object.enterpriseUserId === 'number') message.enterpriseUserId = object.enterpriseUserId; - else if (typeof object.enterpriseUserId === "object") - message.enterpriseUserId = new $util.LongBits(object.enterpriseUserId.low >>> 0, object.enterpriseUserId.high >>> 0).toNumber(); + else if (typeof object.enterpriseUserId === 'object') + message.enterpriseUserId = new $util.LongBits( + object.enterpriseUserId.low >>> 0, + object.enterpriseUserId.high >>> 0 + ).toNumber(); return message; }; @@ -66204,31 +68641,44 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ RoleUser.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.roleId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.roleId = options.longs === String ? "0" : 0; + object.roleId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.roleId = options.longs === String ? '0' : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.enterpriseUserId = options.longs === String ? "0" : 0; + object.enterpriseUserId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.enterpriseUserId = options.longs === String ? '0' : 0; } - if (message.roleId != null && message.hasOwnProperty("roleId")) - if (typeof message.roleId === "number") + if (message.roleId != null && message.hasOwnProperty('roleId')) + if (typeof message.roleId === 'number') object.roleId = options.longs === String ? String(message.roleId) : message.roleId; else - object.roleId = options.longs === String ? $util.Long.prototype.toString.call(message.roleId) : options.longs === Number ? new $util.LongBits(message.roleId.low >>> 0, message.roleId.high >>> 0).toNumber() : message.roleId; - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (typeof message.enterpriseUserId === "number") - object.enterpriseUserId = options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; + object.roleId = + options.longs === String + ? $util.Long.prototype.toString.call(message.roleId) + : options.longs === Number + ? new $util.LongBits(message.roleId.low >>> 0, message.roleId.high >>> 0).toNumber() + : message.roleId; + if (message.enterpriseUserId != null && message.hasOwnProperty('enterpriseUserId')) + if (typeof message.enterpriseUserId === 'number') + object.enterpriseUserId = + options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; else - object.enterpriseUserId = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseUserId) : options.longs === Number ? new $util.LongBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0).toNumber() : message.enterpriseUserId; + object.enterpriseUserId = + options.longs === String + ? $util.Long.prototype.toString.call(message.enterpriseUserId) + : options.longs === Number + ? new $util.LongBits( + message.enterpriseUserId.low >>> 0, + message.enterpriseUserId.high >>> 0 + ).toNumber() + : message.enterpriseUserId; return object; }; @@ -66253,16 +68703,15 @@ export const Enterprise = $root.Enterprise = (() => { */ RoleUser.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.RoleUser"; + return typeUrlPrefix + '/Enterprise.RoleUser'; }; return RoleUser; })(); - Enterprise.RolePrivilege = (function() { - + Enterprise.RolePrivilege = (function () { /** * Properties of a RolePrivilege. * @memberof Enterprise @@ -66283,8 +68732,7 @@ export const Enterprise = $root.Enterprise = (() => { function RolePrivilege(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -66293,7 +68741,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.RolePrivilege * @instance */ - RolePrivilege.prototype.managedNodeId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + RolePrivilege.prototype.managedNodeId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * RolePrivilege roleId. @@ -66301,7 +68749,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.RolePrivilege * @instance */ - RolePrivilege.prototype.roleId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + RolePrivilege.prototype.roleId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * RolePrivilege privilegeType. @@ -66309,7 +68757,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.RolePrivilege * @instance */ - RolePrivilege.prototype.privilegeType = ""; + RolePrivilege.prototype.privilegeType = ''; /** * Creates a new RolePrivilege instance using the specified properties. @@ -66333,14 +68781,13 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ RolePrivilege.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.managedNodeId != null && Object.hasOwnProperty.call(message, "managedNodeId")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.managedNodeId); - if (message.roleId != null && Object.hasOwnProperty.call(message, "roleId")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.roleId); - if (message.privilegeType != null && Object.hasOwnProperty.call(message, "privilegeType")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.privilegeType); + if (!writer) writer = $Writer.create(); + if (message.managedNodeId != null && Object.hasOwnProperty.call(message, 'managedNodeId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int64(message.managedNodeId); + if (message.roleId != null && Object.hasOwnProperty.call(message, 'roleId')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int64(message.roleId); + if (message.privilegeType != null && Object.hasOwnProperty.call(message, 'privilegeType')) + writer.uint32(/* id 3, wireType 2 =*/ 26).string(message.privilegeType); return writer; }; @@ -66369,27 +68816,27 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RolePrivilege.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.RolePrivilege(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.RolePrivilege(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.managedNodeId = reader.int64(); break; } - case 2: { + case 2: { message.roleId = reader.int64(); break; } - case 3: { + case 3: { message.privilegeType = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -66406,8 +68853,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RolePrivilege.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -66420,17 +68866,25 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ RolePrivilege.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.managedNodeId != null && message.hasOwnProperty("managedNodeId")) - if (!$util.isInteger(message.managedNodeId) && !(message.managedNodeId && $util.isInteger(message.managedNodeId.low) && $util.isInteger(message.managedNodeId.high))) - return "managedNodeId: integer|Long expected"; - if (message.roleId != null && message.hasOwnProperty("roleId")) - if (!$util.isInteger(message.roleId) && !(message.roleId && $util.isInteger(message.roleId.low) && $util.isInteger(message.roleId.high))) - return "roleId: integer|Long expected"; - if (message.privilegeType != null && message.hasOwnProperty("privilegeType")) - if (!$util.isString(message.privilegeType)) - return "privilegeType: string expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.managedNodeId != null && message.hasOwnProperty('managedNodeId')) + if ( + !$util.isInteger(message.managedNodeId) && + !( + message.managedNodeId && + $util.isInteger(message.managedNodeId.low) && + $util.isInteger(message.managedNodeId.high) + ) + ) + return 'managedNodeId: integer|Long expected'; + if (message.roleId != null && message.hasOwnProperty('roleId')) + if ( + !$util.isInteger(message.roleId) && + !(message.roleId && $util.isInteger(message.roleId.low) && $util.isInteger(message.roleId.high)) + ) + return 'roleId: integer|Long expected'; + if (message.privilegeType != null && message.hasOwnProperty('privilegeType')) + if (!$util.isString(message.privilegeType)) return 'privilegeType: string expected'; return null; }; @@ -66443,29 +68897,25 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.RolePrivilege} RolePrivilege */ RolePrivilege.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.RolePrivilege) - return object; + if (object instanceof $root.Enterprise.RolePrivilege) return object; let message = new $root.Enterprise.RolePrivilege(); if (object.managedNodeId != null) - if ($util.Long) - (message.managedNodeId = $util.Long.fromValue(object.managedNodeId)).unsigned = false; - else if (typeof object.managedNodeId === "string") + if ($util.Long) (message.managedNodeId = $util.Long.fromValue(object.managedNodeId)).unsigned = false; + else if (typeof object.managedNodeId === 'string') message.managedNodeId = parseInt(object.managedNodeId, 10); - else if (typeof object.managedNodeId === "number") - message.managedNodeId = object.managedNodeId; - else if (typeof object.managedNodeId === "object") - message.managedNodeId = new $util.LongBits(object.managedNodeId.low >>> 0, object.managedNodeId.high >>> 0).toNumber(); + else if (typeof object.managedNodeId === 'number') message.managedNodeId = object.managedNodeId; + else if (typeof object.managedNodeId === 'object') + message.managedNodeId = new $util.LongBits( + object.managedNodeId.low >>> 0, + object.managedNodeId.high >>> 0 + ).toNumber(); if (object.roleId != null) - if ($util.Long) - (message.roleId = $util.Long.fromValue(object.roleId)).unsigned = false; - else if (typeof object.roleId === "string") - message.roleId = parseInt(object.roleId, 10); - else if (typeof object.roleId === "number") - message.roleId = object.roleId; - else if (typeof object.roleId === "object") + if ($util.Long) (message.roleId = $util.Long.fromValue(object.roleId)).unsigned = false; + else if (typeof object.roleId === 'string') message.roleId = parseInt(object.roleId, 10); + else if (typeof object.roleId === 'number') message.roleId = object.roleId; + else if (typeof object.roleId === 'object') message.roleId = new $util.LongBits(object.roleId.low >>> 0, object.roleId.high >>> 0).toNumber(); - if (object.privilegeType != null) - message.privilegeType = String(object.privilegeType); + if (object.privilegeType != null) message.privilegeType = String(object.privilegeType); return message; }; @@ -66479,33 +68929,46 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ RolePrivilege.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.managedNodeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.managedNodeId = options.longs === String ? "0" : 0; + object.managedNodeId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.managedNodeId = options.longs === String ? '0' : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.roleId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.roleId = options.longs === String ? "0" : 0; - object.privilegeType = ""; - } - if (message.managedNodeId != null && message.hasOwnProperty("managedNodeId")) - if (typeof message.managedNodeId === "number") - object.managedNodeId = options.longs === String ? String(message.managedNodeId) : message.managedNodeId; + object.roleId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.roleId = options.longs === String ? '0' : 0; + object.privilegeType = ''; + } + if (message.managedNodeId != null && message.hasOwnProperty('managedNodeId')) + if (typeof message.managedNodeId === 'number') + object.managedNodeId = + options.longs === String ? String(message.managedNodeId) : message.managedNodeId; else - object.managedNodeId = options.longs === String ? $util.Long.prototype.toString.call(message.managedNodeId) : options.longs === Number ? new $util.LongBits(message.managedNodeId.low >>> 0, message.managedNodeId.high >>> 0).toNumber() : message.managedNodeId; - if (message.roleId != null && message.hasOwnProperty("roleId")) - if (typeof message.roleId === "number") + object.managedNodeId = + options.longs === String + ? $util.Long.prototype.toString.call(message.managedNodeId) + : options.longs === Number + ? new $util.LongBits( + message.managedNodeId.low >>> 0, + message.managedNodeId.high >>> 0 + ).toNumber() + : message.managedNodeId; + if (message.roleId != null && message.hasOwnProperty('roleId')) + if (typeof message.roleId === 'number') object.roleId = options.longs === String ? String(message.roleId) : message.roleId; else - object.roleId = options.longs === String ? $util.Long.prototype.toString.call(message.roleId) : options.longs === Number ? new $util.LongBits(message.roleId.low >>> 0, message.roleId.high >>> 0).toNumber() : message.roleId; - if (message.privilegeType != null && message.hasOwnProperty("privilegeType")) + object.roleId = + options.longs === String + ? $util.Long.prototype.toString.call(message.roleId) + : options.longs === Number + ? new $util.LongBits(message.roleId.low >>> 0, message.roleId.high >>> 0).toNumber() + : message.roleId; + if (message.privilegeType != null && message.hasOwnProperty('privilegeType')) object.privilegeType = message.privilegeType; return object; }; @@ -66531,16 +68994,15 @@ export const Enterprise = $root.Enterprise = (() => { */ RolePrivilege.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.RolePrivilege"; + return typeUrlPrefix + '/Enterprise.RolePrivilege'; }; return RolePrivilege; })(); - Enterprise.RoleEnforcement = (function() { - + Enterprise.RoleEnforcement = (function () { /** * Properties of a RoleEnforcement. * @memberof Enterprise @@ -66561,8 +69023,7 @@ export const Enterprise = $root.Enterprise = (() => { function RoleEnforcement(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -66571,7 +69032,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.RoleEnforcement * @instance */ - RoleEnforcement.prototype.roleId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + RoleEnforcement.prototype.roleId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * RoleEnforcement enforcementType. @@ -66579,7 +69040,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.RoleEnforcement * @instance */ - RoleEnforcement.prototype.enforcementType = ""; + RoleEnforcement.prototype.enforcementType = ''; /** * RoleEnforcement value. @@ -66587,7 +69048,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.RoleEnforcement * @instance */ - RoleEnforcement.prototype.value = ""; + RoleEnforcement.prototype.value = ''; /** * Creates a new RoleEnforcement instance using the specified properties. @@ -66611,14 +69072,13 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ RoleEnforcement.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.roleId != null && Object.hasOwnProperty.call(message, "roleId")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.roleId); - if (message.enforcementType != null && Object.hasOwnProperty.call(message, "enforcementType")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.enforcementType); - if (message.value != null && Object.hasOwnProperty.call(message, "value")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.value); + if (!writer) writer = $Writer.create(); + if (message.roleId != null && Object.hasOwnProperty.call(message, 'roleId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int64(message.roleId); + if (message.enforcementType != null && Object.hasOwnProperty.call(message, 'enforcementType')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.enforcementType); + if (message.value != null && Object.hasOwnProperty.call(message, 'value')) + writer.uint32(/* id 3, wireType 2 =*/ 26).string(message.value); return writer; }; @@ -66647,27 +69107,27 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RoleEnforcement.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.RoleEnforcement(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.RoleEnforcement(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.roleId = reader.int64(); break; } - case 2: { + case 2: { message.enforcementType = reader.string(); break; } - case 3: { + case 3: { message.value = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -66684,8 +69144,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RoleEnforcement.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -66698,17 +69157,17 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ RoleEnforcement.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.roleId != null && message.hasOwnProperty("roleId")) - if (!$util.isInteger(message.roleId) && !(message.roleId && $util.isInteger(message.roleId.low) && $util.isInteger(message.roleId.high))) - return "roleId: integer|Long expected"; - if (message.enforcementType != null && message.hasOwnProperty("enforcementType")) - if (!$util.isString(message.enforcementType)) - return "enforcementType: string expected"; - if (message.value != null && message.hasOwnProperty("value")) - if (!$util.isString(message.value)) - return "value: string expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.roleId != null && message.hasOwnProperty('roleId')) + if ( + !$util.isInteger(message.roleId) && + !(message.roleId && $util.isInteger(message.roleId.low) && $util.isInteger(message.roleId.high)) + ) + return 'roleId: integer|Long expected'; + if (message.enforcementType != null && message.hasOwnProperty('enforcementType')) + if (!$util.isString(message.enforcementType)) return 'enforcementType: string expected'; + if (message.value != null && message.hasOwnProperty('value')) + if (!$util.isString(message.value)) return 'value: string expected'; return null; }; @@ -66721,22 +69180,16 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.RoleEnforcement} RoleEnforcement */ RoleEnforcement.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.RoleEnforcement) - return object; + if (object instanceof $root.Enterprise.RoleEnforcement) return object; let message = new $root.Enterprise.RoleEnforcement(); if (object.roleId != null) - if ($util.Long) - (message.roleId = $util.Long.fromValue(object.roleId)).unsigned = false; - else if (typeof object.roleId === "string") - message.roleId = parseInt(object.roleId, 10); - else if (typeof object.roleId === "number") - message.roleId = object.roleId; - else if (typeof object.roleId === "object") + if ($util.Long) (message.roleId = $util.Long.fromValue(object.roleId)).unsigned = false; + else if (typeof object.roleId === 'string') message.roleId = parseInt(object.roleId, 10); + else if (typeof object.roleId === 'number') message.roleId = object.roleId; + else if (typeof object.roleId === 'object') message.roleId = new $util.LongBits(object.roleId.low >>> 0, object.roleId.high >>> 0).toNumber(); - if (object.enforcementType != null) - message.enforcementType = String(object.enforcementType); - if (object.value != null) - message.value = String(object.value); + if (object.enforcementType != null) message.enforcementType = String(object.enforcementType); + if (object.value != null) message.value = String(object.value); return message; }; @@ -66750,27 +69203,30 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ RoleEnforcement.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.roleId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.roleId = options.longs === String ? "0" : 0; - object.enforcementType = ""; - object.value = ""; - } - if (message.roleId != null && message.hasOwnProperty("roleId")) - if (typeof message.roleId === "number") + object.roleId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.roleId = options.longs === String ? '0' : 0; + object.enforcementType = ''; + object.value = ''; + } + if (message.roleId != null && message.hasOwnProperty('roleId')) + if (typeof message.roleId === 'number') object.roleId = options.longs === String ? String(message.roleId) : message.roleId; else - object.roleId = options.longs === String ? $util.Long.prototype.toString.call(message.roleId) : options.longs === Number ? new $util.LongBits(message.roleId.low >>> 0, message.roleId.high >>> 0).toNumber() : message.roleId; - if (message.enforcementType != null && message.hasOwnProperty("enforcementType")) + object.roleId = + options.longs === String + ? $util.Long.prototype.toString.call(message.roleId) + : options.longs === Number + ? new $util.LongBits(message.roleId.low >>> 0, message.roleId.high >>> 0).toNumber() + : message.roleId; + if (message.enforcementType != null && message.hasOwnProperty('enforcementType')) object.enforcementType = message.enforcementType; - if (message.value != null && message.hasOwnProperty("value")) - object.value = message.value; + if (message.value != null && message.hasOwnProperty('value')) object.value = message.value; return object; }; @@ -66795,16 +69251,15 @@ export const Enterprise = $root.Enterprise = (() => { */ RoleEnforcement.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.RoleEnforcement"; + return typeUrlPrefix + '/Enterprise.RoleEnforcement'; }; return RoleEnforcement; })(); - Enterprise.Team = (function() { - + Enterprise.Team = (function () { /** * Properties of a Team. * @memberof Enterprise @@ -66830,8 +69285,7 @@ export const Enterprise = $root.Enterprise = (() => { function Team(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -66848,7 +69302,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.Team * @instance */ - Team.prototype.name = ""; + Team.prototype.name = ''; /** * Team nodeId. @@ -66856,7 +69310,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.Team * @instance */ - Team.prototype.nodeId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + Team.prototype.nodeId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * Team restrictEdit. @@ -66888,7 +69342,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.Team * @instance */ - Team.prototype.encryptedData = ""; + Team.prototype.encryptedData = ''; /** * Team encryptedTeamKey. @@ -66896,7 +69350,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.Team * @instance */ - Team.prototype.encryptedTeamKey = ""; + Team.prototype.encryptedTeamKey = ''; /** * Creates a new Team instance using the specified properties. @@ -66920,24 +69374,23 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ Team.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.teamUid != null && Object.hasOwnProperty.call(message, "teamUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.teamUid); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.name); - if (message.nodeId != null && Object.hasOwnProperty.call(message, "nodeId")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.nodeId); - if (message.restrictEdit != null && Object.hasOwnProperty.call(message, "restrictEdit")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.restrictEdit); - if (message.restrictShare != null && Object.hasOwnProperty.call(message, "restrictShare")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.restrictShare); - if (message.restrictView != null && Object.hasOwnProperty.call(message, "restrictView")) - writer.uint32(/* id 6, wireType 0 =*/48).bool(message.restrictView); - if (message.encryptedData != null && Object.hasOwnProperty.call(message, "encryptedData")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.encryptedData); - if (message.encryptedTeamKey != null && Object.hasOwnProperty.call(message, "encryptedTeamKey")) - writer.uint32(/* id 8, wireType 2 =*/66).string(message.encryptedTeamKey); + if (!writer) writer = $Writer.create(); + if (message.teamUid != null && Object.hasOwnProperty.call(message, 'teamUid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.teamUid); + if (message.name != null && Object.hasOwnProperty.call(message, 'name')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.name); + if (message.nodeId != null && Object.hasOwnProperty.call(message, 'nodeId')) + writer.uint32(/* id 3, wireType 0 =*/ 24).int64(message.nodeId); + if (message.restrictEdit != null && Object.hasOwnProperty.call(message, 'restrictEdit')) + writer.uint32(/* id 4, wireType 0 =*/ 32).bool(message.restrictEdit); + if (message.restrictShare != null && Object.hasOwnProperty.call(message, 'restrictShare')) + writer.uint32(/* id 5, wireType 0 =*/ 40).bool(message.restrictShare); + if (message.restrictView != null && Object.hasOwnProperty.call(message, 'restrictView')) + writer.uint32(/* id 6, wireType 0 =*/ 48).bool(message.restrictView); + if (message.encryptedData != null && Object.hasOwnProperty.call(message, 'encryptedData')) + writer.uint32(/* id 7, wireType 2 =*/ 58).string(message.encryptedData); + if (message.encryptedTeamKey != null && Object.hasOwnProperty.call(message, 'encryptedTeamKey')) + writer.uint32(/* id 8, wireType 2 =*/ 66).string(message.encryptedTeamKey); return writer; }; @@ -66966,47 +69419,47 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ Team.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.Team(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.Team(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.teamUid = reader.bytes(); break; } - case 2: { + case 2: { message.name = reader.string(); break; } - case 3: { + case 3: { message.nodeId = reader.int64(); break; } - case 4: { + case 4: { message.restrictEdit = reader.bool(); break; } - case 5: { + case 5: { message.restrictShare = reader.bool(); break; } - case 6: { + case 6: { message.restrictView = reader.bool(); break; } - case 7: { + case 7: { message.encryptedData = reader.string(); break; } - case 8: { + case 8: { message.encryptedTeamKey = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -67023,8 +69476,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ Team.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -67037,32 +69489,33 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ Team.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.teamUid != null && message.hasOwnProperty("teamUid")) - if (!(message.teamUid && typeof message.teamUid.length === "number" || $util.isString(message.teamUid))) - return "teamUid: buffer expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.nodeId != null && message.hasOwnProperty("nodeId")) - if (!$util.isInteger(message.nodeId) && !(message.nodeId && $util.isInteger(message.nodeId.low) && $util.isInteger(message.nodeId.high))) - return "nodeId: integer|Long expected"; - if (message.restrictEdit != null && message.hasOwnProperty("restrictEdit")) - if (typeof message.restrictEdit !== "boolean") - return "restrictEdit: boolean expected"; - if (message.restrictShare != null && message.hasOwnProperty("restrictShare")) - if (typeof message.restrictShare !== "boolean") - return "restrictShare: boolean expected"; - if (message.restrictView != null && message.hasOwnProperty("restrictView")) - if (typeof message.restrictView !== "boolean") - return "restrictView: boolean expected"; - if (message.encryptedData != null && message.hasOwnProperty("encryptedData")) - if (!$util.isString(message.encryptedData)) - return "encryptedData: string expected"; - if (message.encryptedTeamKey != null && message.hasOwnProperty("encryptedTeamKey")) - if (!$util.isString(message.encryptedTeamKey)) - return "encryptedTeamKey: string expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.teamUid != null && message.hasOwnProperty('teamUid')) + if ( + !( + (message.teamUid && typeof message.teamUid.length === 'number') || + $util.isString(message.teamUid) + ) + ) + return 'teamUid: buffer expected'; + if (message.name != null && message.hasOwnProperty('name')) + if (!$util.isString(message.name)) return 'name: string expected'; + if (message.nodeId != null && message.hasOwnProperty('nodeId')) + if ( + !$util.isInteger(message.nodeId) && + !(message.nodeId && $util.isInteger(message.nodeId.low) && $util.isInteger(message.nodeId.high)) + ) + return 'nodeId: integer|Long expected'; + if (message.restrictEdit != null && message.hasOwnProperty('restrictEdit')) + if (typeof message.restrictEdit !== 'boolean') return 'restrictEdit: boolean expected'; + if (message.restrictShare != null && message.hasOwnProperty('restrictShare')) + if (typeof message.restrictShare !== 'boolean') return 'restrictShare: boolean expected'; + if (message.restrictView != null && message.hasOwnProperty('restrictView')) + if (typeof message.restrictView !== 'boolean') return 'restrictView: boolean expected'; + if (message.encryptedData != null && message.hasOwnProperty('encryptedData')) + if (!$util.isString(message.encryptedData)) return 'encryptedData: string expected'; + if (message.encryptedTeamKey != null && message.hasOwnProperty('encryptedTeamKey')) + if (!$util.isString(message.encryptedTeamKey)) return 'encryptedTeamKey: string expected'; return null; }; @@ -67075,35 +69528,28 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.Team} Team */ Team.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.Team) - return object; + if (object instanceof $root.Enterprise.Team) return object; let message = new $root.Enterprise.Team(); if (object.teamUid != null) - if (typeof object.teamUid === "string") - $util.base64.decode(object.teamUid, message.teamUid = $util.newBuffer($util.base64.length(object.teamUid)), 0); - else if (object.teamUid.length >= 0) - message.teamUid = object.teamUid; - if (object.name != null) - message.name = String(object.name); + if (typeof object.teamUid === 'string') + $util.base64.decode( + object.teamUid, + (message.teamUid = $util.newBuffer($util.base64.length(object.teamUid))), + 0 + ); + else if (object.teamUid.length >= 0) message.teamUid = object.teamUid; + if (object.name != null) message.name = String(object.name); if (object.nodeId != null) - if ($util.Long) - (message.nodeId = $util.Long.fromValue(object.nodeId)).unsigned = false; - else if (typeof object.nodeId === "string") - message.nodeId = parseInt(object.nodeId, 10); - else if (typeof object.nodeId === "number") - message.nodeId = object.nodeId; - else if (typeof object.nodeId === "object") + if ($util.Long) (message.nodeId = $util.Long.fromValue(object.nodeId)).unsigned = false; + else if (typeof object.nodeId === 'string') message.nodeId = parseInt(object.nodeId, 10); + else if (typeof object.nodeId === 'number') message.nodeId = object.nodeId; + else if (typeof object.nodeId === 'object') message.nodeId = new $util.LongBits(object.nodeId.low >>> 0, object.nodeId.high >>> 0).toNumber(); - if (object.restrictEdit != null) - message.restrictEdit = Boolean(object.restrictEdit); - if (object.restrictShare != null) - message.restrictShare = Boolean(object.restrictShare); - if (object.restrictView != null) - message.restrictView = Boolean(object.restrictView); - if (object.encryptedData != null) - message.encryptedData = String(object.encryptedData); - if (object.encryptedTeamKey != null) - message.encryptedTeamKey = String(object.encryptedTeamKey); + if (object.restrictEdit != null) message.restrictEdit = Boolean(object.restrictEdit); + if (object.restrictShare != null) message.restrictShare = Boolean(object.restrictShare); + if (object.restrictView != null) message.restrictView = Boolean(object.restrictView); + if (object.encryptedData != null) message.encryptedData = String(object.encryptedData); + if (object.encryptedTeamKey != null) message.encryptedTeamKey = String(object.encryptedTeamKey); return message; }; @@ -67117,47 +69563,53 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ Team.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.teamUid = ""; + if (options.bytes === String) object.teamUid = ''; else { object.teamUid = []; - if (options.bytes !== Array) - object.teamUid = $util.newBuffer(object.teamUid); + if (options.bytes !== Array) object.teamUid = $util.newBuffer(object.teamUid); } - object.name = ""; + object.name = ''; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.nodeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.nodeId = options.longs === String ? "0" : 0; + object.nodeId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.nodeId = options.longs === String ? '0' : 0; object.restrictEdit = false; object.restrictShare = false; object.restrictView = false; - object.encryptedData = ""; - object.encryptedTeamKey = ""; - } - if (message.teamUid != null && message.hasOwnProperty("teamUid")) - object.teamUid = options.bytes === String ? $util.base64.encode(message.teamUid, 0, message.teamUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.teamUid) : message.teamUid; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.nodeId != null && message.hasOwnProperty("nodeId")) - if (typeof message.nodeId === "number") + object.encryptedData = ''; + object.encryptedTeamKey = ''; + } + if (message.teamUid != null && message.hasOwnProperty('teamUid')) + object.teamUid = + options.bytes === String + ? $util.base64.encode(message.teamUid, 0, message.teamUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.teamUid) + : message.teamUid; + if (message.name != null && message.hasOwnProperty('name')) object.name = message.name; + if (message.nodeId != null && message.hasOwnProperty('nodeId')) + if (typeof message.nodeId === 'number') object.nodeId = options.longs === String ? String(message.nodeId) : message.nodeId; else - object.nodeId = options.longs === String ? $util.Long.prototype.toString.call(message.nodeId) : options.longs === Number ? new $util.LongBits(message.nodeId.low >>> 0, message.nodeId.high >>> 0).toNumber() : message.nodeId; - if (message.restrictEdit != null && message.hasOwnProperty("restrictEdit")) + object.nodeId = + options.longs === String + ? $util.Long.prototype.toString.call(message.nodeId) + : options.longs === Number + ? new $util.LongBits(message.nodeId.low >>> 0, message.nodeId.high >>> 0).toNumber() + : message.nodeId; + if (message.restrictEdit != null && message.hasOwnProperty('restrictEdit')) object.restrictEdit = message.restrictEdit; - if (message.restrictShare != null && message.hasOwnProperty("restrictShare")) + if (message.restrictShare != null && message.hasOwnProperty('restrictShare')) object.restrictShare = message.restrictShare; - if (message.restrictView != null && message.hasOwnProperty("restrictView")) + if (message.restrictView != null && message.hasOwnProperty('restrictView')) object.restrictView = message.restrictView; - if (message.encryptedData != null && message.hasOwnProperty("encryptedData")) + if (message.encryptedData != null && message.hasOwnProperty('encryptedData')) object.encryptedData = message.encryptedData; - if (message.encryptedTeamKey != null && message.hasOwnProperty("encryptedTeamKey")) + if (message.encryptedTeamKey != null && message.hasOwnProperty('encryptedTeamKey')) object.encryptedTeamKey = message.encryptedTeamKey; return object; }; @@ -67183,16 +69635,15 @@ export const Enterprise = $root.Enterprise = (() => { */ Team.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.Team"; + return typeUrlPrefix + '/Enterprise.Team'; }; return Team; })(); - Enterprise.TeamUser = (function() { - + Enterprise.TeamUser = (function () { /** * Properties of a TeamUser. * @memberof Enterprise @@ -67213,8 +69664,7 @@ export const Enterprise = $root.Enterprise = (() => { function TeamUser(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -67231,7 +69681,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.TeamUser * @instance */ - TeamUser.prototype.enterpriseUserId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + TeamUser.prototype.enterpriseUserId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * TeamUser userType. @@ -67239,7 +69689,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.TeamUser * @instance */ - TeamUser.prototype.userType = ""; + TeamUser.prototype.userType = ''; /** * Creates a new TeamUser instance using the specified properties. @@ -67263,14 +69713,13 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ TeamUser.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.teamUid != null && Object.hasOwnProperty.call(message, "teamUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.teamUid); - if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "enterpriseUserId")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.enterpriseUserId); - if (message.userType != null && Object.hasOwnProperty.call(message, "userType")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.userType); + if (!writer) writer = $Writer.create(); + if (message.teamUid != null && Object.hasOwnProperty.call(message, 'teamUid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.teamUid); + if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, 'enterpriseUserId')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int64(message.enterpriseUserId); + if (message.userType != null && Object.hasOwnProperty.call(message, 'userType')) + writer.uint32(/* id 3, wireType 2 =*/ 26).string(message.userType); return writer; }; @@ -67299,27 +69748,27 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ TeamUser.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.TeamUser(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.TeamUser(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.teamUid = reader.bytes(); break; } - case 2: { + case 2: { message.enterpriseUserId = reader.int64(); break; } - case 3: { + case 3: { message.userType = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -67336,8 +69785,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ TeamUser.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -67350,17 +69798,27 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ TeamUser.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.teamUid != null && message.hasOwnProperty("teamUid")) - if (!(message.teamUid && typeof message.teamUid.length === "number" || $util.isString(message.teamUid))) - return "teamUid: buffer expected"; - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (!$util.isInteger(message.enterpriseUserId) && !(message.enterpriseUserId && $util.isInteger(message.enterpriseUserId.low) && $util.isInteger(message.enterpriseUserId.high))) - return "enterpriseUserId: integer|Long expected"; - if (message.userType != null && message.hasOwnProperty("userType")) - if (!$util.isString(message.userType)) - return "userType: string expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.teamUid != null && message.hasOwnProperty('teamUid')) + if ( + !( + (message.teamUid && typeof message.teamUid.length === 'number') || + $util.isString(message.teamUid) + ) + ) + return 'teamUid: buffer expected'; + if (message.enterpriseUserId != null && message.hasOwnProperty('enterpriseUserId')) + if ( + !$util.isInteger(message.enterpriseUserId) && + !( + message.enterpriseUserId && + $util.isInteger(message.enterpriseUserId.low) && + $util.isInteger(message.enterpriseUserId.high) + ) + ) + return 'enterpriseUserId: integer|Long expected'; + if (message.userType != null && message.hasOwnProperty('userType')) + if (!$util.isString(message.userType)) return 'userType: string expected'; return null; }; @@ -67373,25 +69831,29 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.TeamUser} TeamUser */ TeamUser.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.TeamUser) - return object; + if (object instanceof $root.Enterprise.TeamUser) return object; let message = new $root.Enterprise.TeamUser(); if (object.teamUid != null) - if (typeof object.teamUid === "string") - $util.base64.decode(object.teamUid, message.teamUid = $util.newBuffer($util.base64.length(object.teamUid)), 0); - else if (object.teamUid.length >= 0) - message.teamUid = object.teamUid; + if (typeof object.teamUid === 'string') + $util.base64.decode( + object.teamUid, + (message.teamUid = $util.newBuffer($util.base64.length(object.teamUid))), + 0 + ); + else if (object.teamUid.length >= 0) message.teamUid = object.teamUid; if (object.enterpriseUserId != null) if ($util.Long) (message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId)).unsigned = false; - else if (typeof object.enterpriseUserId === "string") + else if (typeof object.enterpriseUserId === 'string') message.enterpriseUserId = parseInt(object.enterpriseUserId, 10); - else if (typeof object.enterpriseUserId === "number") + else if (typeof object.enterpriseUserId === 'number') message.enterpriseUserId = object.enterpriseUserId; - else if (typeof object.enterpriseUserId === "object") - message.enterpriseUserId = new $util.LongBits(object.enterpriseUserId.low >>> 0, object.enterpriseUserId.high >>> 0).toNumber(); - if (object.userType != null) - message.userType = String(object.userType); + else if (typeof object.enterpriseUserId === 'object') + message.enterpriseUserId = new $util.LongBits( + object.enterpriseUserId.low >>> 0, + object.enterpriseUserId.high >>> 0 + ).toNumber(); + if (object.userType != null) message.userType = String(object.userType); return message; }; @@ -67405,33 +69867,43 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ TeamUser.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.teamUid = ""; + if (options.bytes === String) object.teamUid = ''; else { object.teamUid = []; - if (options.bytes !== Array) - object.teamUid = $util.newBuffer(object.teamUid); + if (options.bytes !== Array) object.teamUid = $util.newBuffer(object.teamUid); } if ($util.Long) { let long = new $util.Long(0, 0, false); - object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.enterpriseUserId = options.longs === String ? "0" : 0; - object.userType = ""; - } - if (message.teamUid != null && message.hasOwnProperty("teamUid")) - object.teamUid = options.bytes === String ? $util.base64.encode(message.teamUid, 0, message.teamUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.teamUid) : message.teamUid; - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (typeof message.enterpriseUserId === "number") - object.enterpriseUserId = options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; + object.enterpriseUserId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.enterpriseUserId = options.longs === String ? '0' : 0; + object.userType = ''; + } + if (message.teamUid != null && message.hasOwnProperty('teamUid')) + object.teamUid = + options.bytes === String + ? $util.base64.encode(message.teamUid, 0, message.teamUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.teamUid) + : message.teamUid; + if (message.enterpriseUserId != null && message.hasOwnProperty('enterpriseUserId')) + if (typeof message.enterpriseUserId === 'number') + object.enterpriseUserId = + options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; else - object.enterpriseUserId = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseUserId) : options.longs === Number ? new $util.LongBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0).toNumber() : message.enterpriseUserId; - if (message.userType != null && message.hasOwnProperty("userType")) - object.userType = message.userType; + object.enterpriseUserId = + options.longs === String + ? $util.Long.prototype.toString.call(message.enterpriseUserId) + : options.longs === Number + ? new $util.LongBits( + message.enterpriseUserId.low >>> 0, + message.enterpriseUserId.high >>> 0 + ).toNumber() + : message.enterpriseUserId; + if (message.userType != null && message.hasOwnProperty('userType')) object.userType = message.userType; return object; }; @@ -67456,16 +69928,15 @@ export const Enterprise = $root.Enterprise = (() => { */ TeamUser.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.TeamUser"; + return typeUrlPrefix + '/Enterprise.TeamUser'; }; return TeamUser; })(); - Enterprise.GetDistributorInfoResponse = (function() { - + Enterprise.GetDistributorInfoResponse = (function () { /** * Properties of a GetDistributorInfoResponse. * @memberof Enterprise @@ -67485,8 +69956,7 @@ export const Enterprise = $root.Enterprise = (() => { this.distributors = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -67519,11 +69989,13 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ GetDistributorInfoResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.distributors != null && message.distributors.length) for (let i = 0; i < message.distributors.length; ++i) - $root.Enterprise.Distributor.encode(message.distributors[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.Enterprise.Distributor.encode( + message.distributors[i], + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); return writer; }; @@ -67552,21 +70024,20 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ GetDistributorInfoResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.GetDistributorInfoResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.GetDistributorInfoResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (!(message.distributors && message.distributors.length)) - message.distributors = []; + case 1: { + if (!(message.distributors && message.distributors.length)) message.distributors = []; message.distributors.push($root.Enterprise.Distributor.decode(reader, reader.uint32())); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -67583,8 +70054,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ GetDistributorInfoResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -67597,15 +70067,12 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ GetDistributorInfoResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.distributors != null && message.hasOwnProperty("distributors")) { - if (!Array.isArray(message.distributors)) - return "distributors: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.distributors != null && message.hasOwnProperty('distributors')) { + if (!Array.isArray(message.distributors)) return 'distributors: array expected'; for (let i = 0; i < message.distributors.length; ++i) { let error = $root.Enterprise.Distributor.verify(message.distributors[i]); - if (error) - return "distributors." + error; + if (error) return 'distributors.' + error; } } return null; @@ -67620,16 +70087,15 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.GetDistributorInfoResponse} GetDistributorInfoResponse */ GetDistributorInfoResponse.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.GetDistributorInfoResponse) - return object; + if (object instanceof $root.Enterprise.GetDistributorInfoResponse) return object; let message = new $root.Enterprise.GetDistributorInfoResponse(); if (object.distributors) { if (!Array.isArray(object.distributors)) - throw TypeError(".Enterprise.GetDistributorInfoResponse.distributors: array expected"); + throw TypeError('.Enterprise.GetDistributorInfoResponse.distributors: array expected'); message.distributors = []; for (let i = 0; i < object.distributors.length; ++i) { - if (typeof object.distributors[i] !== "object") - throw TypeError(".Enterprise.GetDistributorInfoResponse.distributors: object expected"); + if (typeof object.distributors[i] !== 'object') + throw TypeError('.Enterprise.GetDistributorInfoResponse.distributors: object expected'); message.distributors[i] = $root.Enterprise.Distributor.fromObject(object.distributors[i]); } } @@ -67646,11 +70112,9 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ GetDistributorInfoResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.distributors = []; + if (options.arrays || options.defaults) object.distributors = []; if (message.distributors && message.distributors.length) { object.distributors = []; for (let j = 0; j < message.distributors.length; ++j) @@ -67680,16 +70144,15 @@ export const Enterprise = $root.Enterprise = (() => { */ GetDistributorInfoResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.GetDistributorInfoResponse"; + return typeUrlPrefix + '/Enterprise.GetDistributorInfoResponse'; }; return GetDistributorInfoResponse; })(); - Enterprise.Distributor = (function() { - + Enterprise.Distributor = (function () { /** * Properties of a Distributor. * @memberof Enterprise @@ -67710,8 +70173,7 @@ export const Enterprise = $root.Enterprise = (() => { this.mspInfos = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -67720,7 +70182,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.Distributor * @instance */ - Distributor.prototype.name = ""; + Distributor.prototype.name = ''; /** * Distributor mspInfos. @@ -67752,13 +70214,15 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ Distributor.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (!writer) writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, 'name')) + writer.uint32(/* id 1, wireType 2 =*/ 10).string(message.name); if (message.mspInfos != null && message.mspInfos.length) for (let i = 0; i < message.mspInfos.length; ++i) - $root.Enterprise.MspInfo.encode(message.mspInfos[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + $root.Enterprise.MspInfo.encode( + message.mspInfos[i], + writer.uint32(/* id 2, wireType 2 =*/ 18).fork() + ).ldelim(); return writer; }; @@ -67787,25 +70251,24 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ Distributor.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.Distributor(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.Distributor(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.name = reader.string(); break; } - case 2: { - if (!(message.mspInfos && message.mspInfos.length)) - message.mspInfos = []; + case 2: { + if (!(message.mspInfos && message.mspInfos.length)) message.mspInfos = []; message.mspInfos.push($root.Enterprise.MspInfo.decode(reader, reader.uint32())); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -67822,8 +70285,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ Distributor.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -67836,18 +70298,14 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ Distributor.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.mspInfos != null && message.hasOwnProperty("mspInfos")) { - if (!Array.isArray(message.mspInfos)) - return "mspInfos: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.name != null && message.hasOwnProperty('name')) + if (!$util.isString(message.name)) return 'name: string expected'; + if (message.mspInfos != null && message.hasOwnProperty('mspInfos')) { + if (!Array.isArray(message.mspInfos)) return 'mspInfos: array expected'; for (let i = 0; i < message.mspInfos.length; ++i) { let error = $root.Enterprise.MspInfo.verify(message.mspInfos[i]); - if (error) - return "mspInfos." + error; + if (error) return 'mspInfos.' + error; } } return null; @@ -67862,18 +70320,16 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.Distributor} Distributor */ Distributor.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.Distributor) - return object; + if (object instanceof $root.Enterprise.Distributor) return object; let message = new $root.Enterprise.Distributor(); - if (object.name != null) - message.name = String(object.name); + if (object.name != null) message.name = String(object.name); if (object.mspInfos) { if (!Array.isArray(object.mspInfos)) - throw TypeError(".Enterprise.Distributor.mspInfos: array expected"); + throw TypeError('.Enterprise.Distributor.mspInfos: array expected'); message.mspInfos = []; for (let i = 0; i < object.mspInfos.length; ++i) { - if (typeof object.mspInfos[i] !== "object") - throw TypeError(".Enterprise.Distributor.mspInfos: object expected"); + if (typeof object.mspInfos[i] !== 'object') + throw TypeError('.Enterprise.Distributor.mspInfos: object expected'); message.mspInfos[i] = $root.Enterprise.MspInfo.fromObject(object.mspInfos[i]); } } @@ -67890,15 +70346,11 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ Distributor.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.mspInfos = []; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + if (options.arrays || options.defaults) object.mspInfos = []; + if (options.defaults) object.name = ''; + if (message.name != null && message.hasOwnProperty('name')) object.name = message.name; if (message.mspInfos && message.mspInfos.length) { object.mspInfos = []; for (let j = 0; j < message.mspInfos.length; ++j) @@ -67928,16 +70380,15 @@ export const Enterprise = $root.Enterprise = (() => { */ Distributor.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.Distributor"; + return typeUrlPrefix + '/Enterprise.Distributor'; }; return Distributor; })(); - Enterprise.MspInfo = (function() { - + Enterprise.MspInfo = (function () { /** * Properties of a MspInfo. * @memberof Enterprise @@ -67968,8 +70419,7 @@ export const Enterprise = $root.Enterprise = (() => { this.addOns = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -67986,7 +70436,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.MspInfo * @instance */ - MspInfo.prototype.enterpriseName = ""; + MspInfo.prototype.enterpriseName = ''; /** * MspInfo allocatedLicenses. @@ -68018,7 +70468,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.MspInfo * @instance */ - MspInfo.prototype.maxFilePlanType = ""; + MspInfo.prototype.maxFilePlanType = ''; /** * MspInfo managedCompanies. @@ -68066,30 +70516,35 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ MspInfo.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.enterpriseId != null && Object.hasOwnProperty.call(message, "enterpriseId")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.enterpriseId); - if (message.enterpriseName != null && Object.hasOwnProperty.call(message, "enterpriseName")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.enterpriseName); - if (message.allocatedLicenses != null && Object.hasOwnProperty.call(message, "allocatedLicenses")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.allocatedLicenses); + if (!writer) writer = $Writer.create(); + if (message.enterpriseId != null && Object.hasOwnProperty.call(message, 'enterpriseId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int32(message.enterpriseId); + if (message.enterpriseName != null && Object.hasOwnProperty.call(message, 'enterpriseName')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.enterpriseName); + if (message.allocatedLicenses != null && Object.hasOwnProperty.call(message, 'allocatedLicenses')) + writer.uint32(/* id 3, wireType 0 =*/ 24).int32(message.allocatedLicenses); if (message.allowedMcProducts != null && message.allowedMcProducts.length) for (let i = 0; i < message.allowedMcProducts.length; ++i) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.allowedMcProducts[i]); + writer.uint32(/* id 4, wireType 2 =*/ 34).string(message.allowedMcProducts[i]); if (message.allowedAddOns != null && message.allowedAddOns.length) for (let i = 0; i < message.allowedAddOns.length; ++i) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.allowedAddOns[i]); - if (message.maxFilePlanType != null && Object.hasOwnProperty.call(message, "maxFilePlanType")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.maxFilePlanType); + writer.uint32(/* id 5, wireType 2 =*/ 42).string(message.allowedAddOns[i]); + if (message.maxFilePlanType != null && Object.hasOwnProperty.call(message, 'maxFilePlanType')) + writer.uint32(/* id 6, wireType 2 =*/ 50).string(message.maxFilePlanType); if (message.managedCompanies != null && message.managedCompanies.length) for (let i = 0; i < message.managedCompanies.length; ++i) - $root.Enterprise.ManagedCompany.encode(message.managedCompanies[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.allowUnlimitedLicenses != null && Object.hasOwnProperty.call(message, "allowUnlimitedLicenses")) - writer.uint32(/* id 8, wireType 0 =*/64).bool(message.allowUnlimitedLicenses); + $root.Enterprise.ManagedCompany.encode( + message.managedCompanies[i], + writer.uint32(/* id 7, wireType 2 =*/ 58).fork() + ).ldelim(); + if (message.allowUnlimitedLicenses != null && Object.hasOwnProperty.call(message, 'allowUnlimitedLicenses')) + writer.uint32(/* id 8, wireType 0 =*/ 64).bool(message.allowUnlimitedLicenses); if (message.addOns != null && message.addOns.length) for (let i = 0; i < message.addOns.length; ++i) - $root.Enterprise.LicenseAddOn.encode(message.addOns[i], writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + $root.Enterprise.LicenseAddOn.encode( + message.addOns[i], + writer.uint32(/* id 9, wireType 2 =*/ 74).fork() + ).ldelim(); return writer; }; @@ -68118,59 +70573,57 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ MspInfo.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.MspInfo(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.MspInfo(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.enterpriseId = reader.int32(); break; } - case 2: { + case 2: { message.enterpriseName = reader.string(); break; } - case 3: { + case 3: { message.allocatedLicenses = reader.int32(); break; } - case 4: { + case 4: { if (!(message.allowedMcProducts && message.allowedMcProducts.length)) message.allowedMcProducts = []; message.allowedMcProducts.push(reader.string()); break; } - case 5: { - if (!(message.allowedAddOns && message.allowedAddOns.length)) - message.allowedAddOns = []; + case 5: { + if (!(message.allowedAddOns && message.allowedAddOns.length)) message.allowedAddOns = []; message.allowedAddOns.push(reader.string()); break; } - case 6: { + case 6: { message.maxFilePlanType = reader.string(); break; } - case 7: { + case 7: { if (!(message.managedCompanies && message.managedCompanies.length)) message.managedCompanies = []; message.managedCompanies.push($root.Enterprise.ManagedCompany.decode(reader, reader.uint32())); break; } - case 8: { + case 8: { message.allowUnlimitedLicenses = reader.bool(); break; } - case 9: { - if (!(message.addOns && message.addOns.length)) - message.addOns = []; + case 9: { + if (!(message.addOns && message.addOns.length)) message.addOns = []; message.addOns.push($root.Enterprise.LicenseAddOn.decode(reader, reader.uint32())); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -68187,8 +70640,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ MspInfo.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -68201,53 +70653,40 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ MspInfo.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.enterpriseId != null && message.hasOwnProperty("enterpriseId")) - if (!$util.isInteger(message.enterpriseId)) - return "enterpriseId: integer expected"; - if (message.enterpriseName != null && message.hasOwnProperty("enterpriseName")) - if (!$util.isString(message.enterpriseName)) - return "enterpriseName: string expected"; - if (message.allocatedLicenses != null && message.hasOwnProperty("allocatedLicenses")) - if (!$util.isInteger(message.allocatedLicenses)) - return "allocatedLicenses: integer expected"; - if (message.allowedMcProducts != null && message.hasOwnProperty("allowedMcProducts")) { - if (!Array.isArray(message.allowedMcProducts)) - return "allowedMcProducts: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.enterpriseId != null && message.hasOwnProperty('enterpriseId')) + if (!$util.isInteger(message.enterpriseId)) return 'enterpriseId: integer expected'; + if (message.enterpriseName != null && message.hasOwnProperty('enterpriseName')) + if (!$util.isString(message.enterpriseName)) return 'enterpriseName: string expected'; + if (message.allocatedLicenses != null && message.hasOwnProperty('allocatedLicenses')) + if (!$util.isInteger(message.allocatedLicenses)) return 'allocatedLicenses: integer expected'; + if (message.allowedMcProducts != null && message.hasOwnProperty('allowedMcProducts')) { + if (!Array.isArray(message.allowedMcProducts)) return 'allowedMcProducts: array expected'; for (let i = 0; i < message.allowedMcProducts.length; ++i) - if (!$util.isString(message.allowedMcProducts[i])) - return "allowedMcProducts: string[] expected"; + if (!$util.isString(message.allowedMcProducts[i])) return 'allowedMcProducts: string[] expected'; } - if (message.allowedAddOns != null && message.hasOwnProperty("allowedAddOns")) { - if (!Array.isArray(message.allowedAddOns)) - return "allowedAddOns: array expected"; + if (message.allowedAddOns != null && message.hasOwnProperty('allowedAddOns')) { + if (!Array.isArray(message.allowedAddOns)) return 'allowedAddOns: array expected'; for (let i = 0; i < message.allowedAddOns.length; ++i) - if (!$util.isString(message.allowedAddOns[i])) - return "allowedAddOns: string[] expected"; - } - if (message.maxFilePlanType != null && message.hasOwnProperty("maxFilePlanType")) - if (!$util.isString(message.maxFilePlanType)) - return "maxFilePlanType: string expected"; - if (message.managedCompanies != null && message.hasOwnProperty("managedCompanies")) { - if (!Array.isArray(message.managedCompanies)) - return "managedCompanies: array expected"; + if (!$util.isString(message.allowedAddOns[i])) return 'allowedAddOns: string[] expected'; + } + if (message.maxFilePlanType != null && message.hasOwnProperty('maxFilePlanType')) + if (!$util.isString(message.maxFilePlanType)) return 'maxFilePlanType: string expected'; + if (message.managedCompanies != null && message.hasOwnProperty('managedCompanies')) { + if (!Array.isArray(message.managedCompanies)) return 'managedCompanies: array expected'; for (let i = 0; i < message.managedCompanies.length; ++i) { let error = $root.Enterprise.ManagedCompany.verify(message.managedCompanies[i]); - if (error) - return "managedCompanies." + error; + if (error) return 'managedCompanies.' + error; } } - if (message.allowUnlimitedLicenses != null && message.hasOwnProperty("allowUnlimitedLicenses")) - if (typeof message.allowUnlimitedLicenses !== "boolean") - return "allowUnlimitedLicenses: boolean expected"; - if (message.addOns != null && message.hasOwnProperty("addOns")) { - if (!Array.isArray(message.addOns)) - return "addOns: array expected"; + if (message.allowUnlimitedLicenses != null && message.hasOwnProperty('allowUnlimitedLicenses')) + if (typeof message.allowUnlimitedLicenses !== 'boolean') + return 'allowUnlimitedLicenses: boolean expected'; + if (message.addOns != null && message.hasOwnProperty('addOns')) { + if (!Array.isArray(message.addOns)) return 'addOns: array expected'; for (let i = 0; i < message.addOns.length; ++i) { let error = $root.Enterprise.LicenseAddOn.verify(message.addOns[i]); - if (error) - return "addOns." + error; + if (error) return 'addOns.' + error; } } return null; @@ -68262,50 +70701,46 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.MspInfo} MspInfo */ MspInfo.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.MspInfo) - return object; + if (object instanceof $root.Enterprise.MspInfo) return object; let message = new $root.Enterprise.MspInfo(); - if (object.enterpriseId != null) - message.enterpriseId = object.enterpriseId | 0; - if (object.enterpriseName != null) - message.enterpriseName = String(object.enterpriseName); - if (object.allocatedLicenses != null) - message.allocatedLicenses = object.allocatedLicenses | 0; + if (object.enterpriseId != null) message.enterpriseId = object.enterpriseId | 0; + if (object.enterpriseName != null) message.enterpriseName = String(object.enterpriseName); + if (object.allocatedLicenses != null) message.allocatedLicenses = object.allocatedLicenses | 0; if (object.allowedMcProducts) { if (!Array.isArray(object.allowedMcProducts)) - throw TypeError(".Enterprise.MspInfo.allowedMcProducts: array expected"); + throw TypeError('.Enterprise.MspInfo.allowedMcProducts: array expected'); message.allowedMcProducts = []; for (let i = 0; i < object.allowedMcProducts.length; ++i) message.allowedMcProducts[i] = String(object.allowedMcProducts[i]); } if (object.allowedAddOns) { if (!Array.isArray(object.allowedAddOns)) - throw TypeError(".Enterprise.MspInfo.allowedAddOns: array expected"); + throw TypeError('.Enterprise.MspInfo.allowedAddOns: array expected'); message.allowedAddOns = []; for (let i = 0; i < object.allowedAddOns.length; ++i) message.allowedAddOns[i] = String(object.allowedAddOns[i]); } - if (object.maxFilePlanType != null) - message.maxFilePlanType = String(object.maxFilePlanType); + if (object.maxFilePlanType != null) message.maxFilePlanType = String(object.maxFilePlanType); if (object.managedCompanies) { if (!Array.isArray(object.managedCompanies)) - throw TypeError(".Enterprise.MspInfo.managedCompanies: array expected"); + throw TypeError('.Enterprise.MspInfo.managedCompanies: array expected'); message.managedCompanies = []; for (let i = 0; i < object.managedCompanies.length; ++i) { - if (typeof object.managedCompanies[i] !== "object") - throw TypeError(".Enterprise.MspInfo.managedCompanies: object expected"); - message.managedCompanies[i] = $root.Enterprise.ManagedCompany.fromObject(object.managedCompanies[i]); + if (typeof object.managedCompanies[i] !== 'object') + throw TypeError('.Enterprise.MspInfo.managedCompanies: object expected'); + message.managedCompanies[i] = $root.Enterprise.ManagedCompany.fromObject( + object.managedCompanies[i] + ); } } if (object.allowUnlimitedLicenses != null) message.allowUnlimitedLicenses = Boolean(object.allowUnlimitedLicenses); if (object.addOns) { - if (!Array.isArray(object.addOns)) - throw TypeError(".Enterprise.MspInfo.addOns: array expected"); + if (!Array.isArray(object.addOns)) throw TypeError('.Enterprise.MspInfo.addOns: array expected'); message.addOns = []; for (let i = 0; i < object.addOns.length; ++i) { - if (typeof object.addOns[i] !== "object") - throw TypeError(".Enterprise.MspInfo.addOns: object expected"); + if (typeof object.addOns[i] !== 'object') + throw TypeError('.Enterprise.MspInfo.addOns: object expected'); message.addOns[i] = $root.Enterprise.LicenseAddOn.fromObject(object.addOns[i]); } } @@ -68322,8 +70757,7 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ MspInfo.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.arrays || options.defaults) { object.allowedMcProducts = []; @@ -68333,16 +70767,16 @@ export const Enterprise = $root.Enterprise = (() => { } if (options.defaults) { object.enterpriseId = 0; - object.enterpriseName = ""; + object.enterpriseName = ''; object.allocatedLicenses = 0; - object.maxFilePlanType = ""; + object.maxFilePlanType = ''; object.allowUnlimitedLicenses = false; } - if (message.enterpriseId != null && message.hasOwnProperty("enterpriseId")) + if (message.enterpriseId != null && message.hasOwnProperty('enterpriseId')) object.enterpriseId = message.enterpriseId; - if (message.enterpriseName != null && message.hasOwnProperty("enterpriseName")) + if (message.enterpriseName != null && message.hasOwnProperty('enterpriseName')) object.enterpriseName = message.enterpriseName; - if (message.allocatedLicenses != null && message.hasOwnProperty("allocatedLicenses")) + if (message.allocatedLicenses != null && message.hasOwnProperty('allocatedLicenses')) object.allocatedLicenses = message.allocatedLicenses; if (message.allowedMcProducts && message.allowedMcProducts.length) { object.allowedMcProducts = []; @@ -68354,14 +70788,17 @@ export const Enterprise = $root.Enterprise = (() => { for (let j = 0; j < message.allowedAddOns.length; ++j) object.allowedAddOns[j] = message.allowedAddOns[j]; } - if (message.maxFilePlanType != null && message.hasOwnProperty("maxFilePlanType")) + if (message.maxFilePlanType != null && message.hasOwnProperty('maxFilePlanType')) object.maxFilePlanType = message.maxFilePlanType; if (message.managedCompanies && message.managedCompanies.length) { object.managedCompanies = []; for (let j = 0; j < message.managedCompanies.length; ++j) - object.managedCompanies[j] = $root.Enterprise.ManagedCompany.toObject(message.managedCompanies[j], options); + object.managedCompanies[j] = $root.Enterprise.ManagedCompany.toObject( + message.managedCompanies[j], + options + ); } - if (message.allowUnlimitedLicenses != null && message.hasOwnProperty("allowUnlimitedLicenses")) + if (message.allowUnlimitedLicenses != null && message.hasOwnProperty('allowUnlimitedLicenses')) object.allowUnlimitedLicenses = message.allowUnlimitedLicenses; if (message.addOns && message.addOns.length) { object.addOns = []; @@ -68392,16 +70829,15 @@ export const Enterprise = $root.Enterprise = (() => { */ MspInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.MspInfo"; + return typeUrlPrefix + '/Enterprise.MspInfo'; }; return MspInfo; })(); - Enterprise.ManagedCompany = (function() { - + Enterprise.ManagedCompany = (function () { /** * Properties of a ManagedCompany. * @memberof Enterprise @@ -68431,8 +70867,7 @@ export const Enterprise = $root.Enterprise = (() => { this.addOns = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -68449,7 +70884,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.ManagedCompany * @instance */ - ManagedCompany.prototype.mcEnterpriseName = ""; + ManagedCompany.prototype.mcEnterpriseName = ''; /** * ManagedCompany mspNodeId. @@ -68457,7 +70892,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.ManagedCompany * @instance */ - ManagedCompany.prototype.mspNodeId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + ManagedCompany.prototype.mspNodeId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * ManagedCompany numberOfSeats. @@ -68481,7 +70916,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.ManagedCompany * @instance */ - ManagedCompany.prototype.productId = ""; + ManagedCompany.prototype.productId = ''; /** * ManagedCompany isExpired. @@ -68497,7 +70932,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.ManagedCompany * @instance */ - ManagedCompany.prototype.treeKey = ""; + ManagedCompany.prototype.treeKey = ''; /** * ManagedCompany treeKeyRole. @@ -68505,7 +70940,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.ManagedCompany * @instance */ - ManagedCompany.prototype.treeKeyRole = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + ManagedCompany.prototype.treeKeyRole = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * ManagedCompany filePlanType. @@ -68513,7 +70948,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.ManagedCompany * @instance */ - ManagedCompany.prototype.filePlanType = ""; + ManagedCompany.prototype.filePlanType = ''; /** * ManagedCompany addOns. @@ -68545,31 +70980,33 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ ManagedCompany.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.mcEnterpriseId != null && Object.hasOwnProperty.call(message, "mcEnterpriseId")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.mcEnterpriseId); - if (message.mcEnterpriseName != null && Object.hasOwnProperty.call(message, "mcEnterpriseName")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.mcEnterpriseName); - if (message.mspNodeId != null && Object.hasOwnProperty.call(message, "mspNodeId")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.mspNodeId); - if (message.numberOfSeats != null && Object.hasOwnProperty.call(message, "numberOfSeats")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.numberOfSeats); - if (message.numberOfUsers != null && Object.hasOwnProperty.call(message, "numberOfUsers")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.numberOfUsers); - if (message.productId != null && Object.hasOwnProperty.call(message, "productId")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.productId); - if (message.isExpired != null && Object.hasOwnProperty.call(message, "isExpired")) - writer.uint32(/* id 7, wireType 0 =*/56).bool(message.isExpired); - if (message.treeKey != null && Object.hasOwnProperty.call(message, "treeKey")) - writer.uint32(/* id 8, wireType 2 =*/66).string(message.treeKey); - if (message.treeKeyRole != null && Object.hasOwnProperty.call(message, "treeKeyRole")) - writer.uint32(/* id 9, wireType 0 =*/72).int64(message.treeKeyRole); - if (message.filePlanType != null && Object.hasOwnProperty.call(message, "filePlanType")) - writer.uint32(/* id 10, wireType 2 =*/82).string(message.filePlanType); + if (!writer) writer = $Writer.create(); + if (message.mcEnterpriseId != null && Object.hasOwnProperty.call(message, 'mcEnterpriseId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int32(message.mcEnterpriseId); + if (message.mcEnterpriseName != null && Object.hasOwnProperty.call(message, 'mcEnterpriseName')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.mcEnterpriseName); + if (message.mspNodeId != null && Object.hasOwnProperty.call(message, 'mspNodeId')) + writer.uint32(/* id 3, wireType 0 =*/ 24).int64(message.mspNodeId); + if (message.numberOfSeats != null && Object.hasOwnProperty.call(message, 'numberOfSeats')) + writer.uint32(/* id 4, wireType 0 =*/ 32).int32(message.numberOfSeats); + if (message.numberOfUsers != null && Object.hasOwnProperty.call(message, 'numberOfUsers')) + writer.uint32(/* id 5, wireType 0 =*/ 40).int32(message.numberOfUsers); + if (message.productId != null && Object.hasOwnProperty.call(message, 'productId')) + writer.uint32(/* id 6, wireType 2 =*/ 50).string(message.productId); + if (message.isExpired != null && Object.hasOwnProperty.call(message, 'isExpired')) + writer.uint32(/* id 7, wireType 0 =*/ 56).bool(message.isExpired); + if (message.treeKey != null && Object.hasOwnProperty.call(message, 'treeKey')) + writer.uint32(/* id 8, wireType 2 =*/ 66).string(message.treeKey); + if (message.treeKeyRole != null && Object.hasOwnProperty.call(message, 'treeKeyRole')) + writer.uint32(/* id 9, wireType 0 =*/ 72).int64(message.treeKeyRole); + if (message.filePlanType != null && Object.hasOwnProperty.call(message, 'filePlanType')) + writer.uint32(/* id 10, wireType 2 =*/ 82).string(message.filePlanType); if (message.addOns != null && message.addOns.length) for (let i = 0; i < message.addOns.length; ++i) - $root.Enterprise.LicenseAddOn.encode(message.addOns[i], writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); + $root.Enterprise.LicenseAddOn.encode( + message.addOns[i], + writer.uint32(/* id 11, wireType 2 =*/ 90).fork() + ).ldelim(); return writer; }; @@ -68598,61 +71035,60 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ManagedCompany.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.ManagedCompany(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.ManagedCompany(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.mcEnterpriseId = reader.int32(); break; } - case 2: { + case 2: { message.mcEnterpriseName = reader.string(); break; } - case 3: { + case 3: { message.mspNodeId = reader.int64(); break; } - case 4: { + case 4: { message.numberOfSeats = reader.int32(); break; } - case 5: { + case 5: { message.numberOfUsers = reader.int32(); break; } - case 6: { + case 6: { message.productId = reader.string(); break; } - case 7: { + case 7: { message.isExpired = reader.bool(); break; } - case 8: { + case 8: { message.treeKey = reader.string(); break; } - case 9: { + case 9: { message.treeKeyRole = reader.int64(); break; } - case 10: { + case 10: { message.filePlanType = reader.string(); break; } - case 11: { - if (!(message.addOns && message.addOns.length)) - message.addOns = []; + case 11: { + if (!(message.addOns && message.addOns.length)) message.addOns = []; message.addOns.push($root.Enterprise.LicenseAddOn.decode(reader, reader.uint32())); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -68669,8 +71105,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ManagedCompany.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -68683,45 +71118,48 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ ManagedCompany.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.mcEnterpriseId != null && message.hasOwnProperty("mcEnterpriseId")) - if (!$util.isInteger(message.mcEnterpriseId)) - return "mcEnterpriseId: integer expected"; - if (message.mcEnterpriseName != null && message.hasOwnProperty("mcEnterpriseName")) - if (!$util.isString(message.mcEnterpriseName)) - return "mcEnterpriseName: string expected"; - if (message.mspNodeId != null && message.hasOwnProperty("mspNodeId")) - if (!$util.isInteger(message.mspNodeId) && !(message.mspNodeId && $util.isInteger(message.mspNodeId.low) && $util.isInteger(message.mspNodeId.high))) - return "mspNodeId: integer|Long expected"; - if (message.numberOfSeats != null && message.hasOwnProperty("numberOfSeats")) - if (!$util.isInteger(message.numberOfSeats)) - return "numberOfSeats: integer expected"; - if (message.numberOfUsers != null && message.hasOwnProperty("numberOfUsers")) - if (!$util.isInteger(message.numberOfUsers)) - return "numberOfUsers: integer expected"; - if (message.productId != null && message.hasOwnProperty("productId")) - if (!$util.isString(message.productId)) - return "productId: string expected"; - if (message.isExpired != null && message.hasOwnProperty("isExpired")) - if (typeof message.isExpired !== "boolean") - return "isExpired: boolean expected"; - if (message.treeKey != null && message.hasOwnProperty("treeKey")) - if (!$util.isString(message.treeKey)) - return "treeKey: string expected"; - if (message.treeKeyRole != null && message.hasOwnProperty("treeKeyRole")) - if (!$util.isInteger(message.treeKeyRole) && !(message.treeKeyRole && $util.isInteger(message.treeKeyRole.low) && $util.isInteger(message.treeKeyRole.high))) - return "treeKeyRole: integer|Long expected"; - if (message.filePlanType != null && message.hasOwnProperty("filePlanType")) - if (!$util.isString(message.filePlanType)) - return "filePlanType: string expected"; - if (message.addOns != null && message.hasOwnProperty("addOns")) { - if (!Array.isArray(message.addOns)) - return "addOns: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.mcEnterpriseId != null && message.hasOwnProperty('mcEnterpriseId')) + if (!$util.isInteger(message.mcEnterpriseId)) return 'mcEnterpriseId: integer expected'; + if (message.mcEnterpriseName != null && message.hasOwnProperty('mcEnterpriseName')) + if (!$util.isString(message.mcEnterpriseName)) return 'mcEnterpriseName: string expected'; + if (message.mspNodeId != null && message.hasOwnProperty('mspNodeId')) + if ( + !$util.isInteger(message.mspNodeId) && + !( + message.mspNodeId && + $util.isInteger(message.mspNodeId.low) && + $util.isInteger(message.mspNodeId.high) + ) + ) + return 'mspNodeId: integer|Long expected'; + if (message.numberOfSeats != null && message.hasOwnProperty('numberOfSeats')) + if (!$util.isInteger(message.numberOfSeats)) return 'numberOfSeats: integer expected'; + if (message.numberOfUsers != null && message.hasOwnProperty('numberOfUsers')) + if (!$util.isInteger(message.numberOfUsers)) return 'numberOfUsers: integer expected'; + if (message.productId != null && message.hasOwnProperty('productId')) + if (!$util.isString(message.productId)) return 'productId: string expected'; + if (message.isExpired != null && message.hasOwnProperty('isExpired')) + if (typeof message.isExpired !== 'boolean') return 'isExpired: boolean expected'; + if (message.treeKey != null && message.hasOwnProperty('treeKey')) + if (!$util.isString(message.treeKey)) return 'treeKey: string expected'; + if (message.treeKeyRole != null && message.hasOwnProperty('treeKeyRole')) + if ( + !$util.isInteger(message.treeKeyRole) && + !( + message.treeKeyRole && + $util.isInteger(message.treeKeyRole.low) && + $util.isInteger(message.treeKeyRole.high) + ) + ) + return 'treeKeyRole: integer|Long expected'; + if (message.filePlanType != null && message.hasOwnProperty('filePlanType')) + if (!$util.isString(message.filePlanType)) return 'filePlanType: string expected'; + if (message.addOns != null && message.hasOwnProperty('addOns')) { + if (!Array.isArray(message.addOns)) return 'addOns: array expected'; for (let i = 0; i < message.addOns.length; ++i) { let error = $root.Enterprise.LicenseAddOn.verify(message.addOns[i]); - if (error) - return "addOns." + error; + if (error) return 'addOns.' + error; } } return null; @@ -68736,50 +71174,40 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.ManagedCompany} ManagedCompany */ ManagedCompany.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.ManagedCompany) - return object; + if (object instanceof $root.Enterprise.ManagedCompany) return object; let message = new $root.Enterprise.ManagedCompany(); - if (object.mcEnterpriseId != null) - message.mcEnterpriseId = object.mcEnterpriseId | 0; - if (object.mcEnterpriseName != null) - message.mcEnterpriseName = String(object.mcEnterpriseName); + if (object.mcEnterpriseId != null) message.mcEnterpriseId = object.mcEnterpriseId | 0; + if (object.mcEnterpriseName != null) message.mcEnterpriseName = String(object.mcEnterpriseName); if (object.mspNodeId != null) - if ($util.Long) - (message.mspNodeId = $util.Long.fromValue(object.mspNodeId)).unsigned = false; - else if (typeof object.mspNodeId === "string") - message.mspNodeId = parseInt(object.mspNodeId, 10); - else if (typeof object.mspNodeId === "number") - message.mspNodeId = object.mspNodeId; - else if (typeof object.mspNodeId === "object") - message.mspNodeId = new $util.LongBits(object.mspNodeId.low >>> 0, object.mspNodeId.high >>> 0).toNumber(); - if (object.numberOfSeats != null) - message.numberOfSeats = object.numberOfSeats | 0; - if (object.numberOfUsers != null) - message.numberOfUsers = object.numberOfUsers | 0; - if (object.productId != null) - message.productId = String(object.productId); - if (object.isExpired != null) - message.isExpired = Boolean(object.isExpired); - if (object.treeKey != null) - message.treeKey = String(object.treeKey); + if ($util.Long) (message.mspNodeId = $util.Long.fromValue(object.mspNodeId)).unsigned = false; + else if (typeof object.mspNodeId === 'string') message.mspNodeId = parseInt(object.mspNodeId, 10); + else if (typeof object.mspNodeId === 'number') message.mspNodeId = object.mspNodeId; + else if (typeof object.mspNodeId === 'object') + message.mspNodeId = new $util.LongBits( + object.mspNodeId.low >>> 0, + object.mspNodeId.high >>> 0 + ).toNumber(); + if (object.numberOfSeats != null) message.numberOfSeats = object.numberOfSeats | 0; + if (object.numberOfUsers != null) message.numberOfUsers = object.numberOfUsers | 0; + if (object.productId != null) message.productId = String(object.productId); + if (object.isExpired != null) message.isExpired = Boolean(object.isExpired); + if (object.treeKey != null) message.treeKey = String(object.treeKey); if (object.treeKeyRole != null) - if ($util.Long) - (message.treeKeyRole = $util.Long.fromValue(object.treeKeyRole)).unsigned = false; - else if (typeof object.treeKeyRole === "string") - message.treeKeyRole = parseInt(object.treeKeyRole, 10); - else if (typeof object.treeKeyRole === "number") - message.treeKeyRole = object.treeKeyRole; - else if (typeof object.treeKeyRole === "object") - message.treeKeyRole = new $util.LongBits(object.treeKeyRole.low >>> 0, object.treeKeyRole.high >>> 0).toNumber(); - if (object.filePlanType != null) - message.filePlanType = String(object.filePlanType); + if ($util.Long) (message.treeKeyRole = $util.Long.fromValue(object.treeKeyRole)).unsigned = false; + else if (typeof object.treeKeyRole === 'string') message.treeKeyRole = parseInt(object.treeKeyRole, 10); + else if (typeof object.treeKeyRole === 'number') message.treeKeyRole = object.treeKeyRole; + else if (typeof object.treeKeyRole === 'object') + message.treeKeyRole = new $util.LongBits( + object.treeKeyRole.low >>> 0, + object.treeKeyRole.high >>> 0 + ).toNumber(); + if (object.filePlanType != null) message.filePlanType = String(object.filePlanType); if (object.addOns) { - if (!Array.isArray(object.addOns)) - throw TypeError(".Enterprise.ManagedCompany.addOns: array expected"); + if (!Array.isArray(object.addOns)) throw TypeError('.Enterprise.ManagedCompany.addOns: array expected'); message.addOns = []; for (let i = 0; i < object.addOns.length; ++i) { - if (typeof object.addOns[i] !== "object") - throw TypeError(".Enterprise.ManagedCompany.addOns: object expected"); + if (typeof object.addOns[i] !== 'object') + throw TypeError('.Enterprise.ManagedCompany.addOns: object expected'); message.addOns[i] = $root.Enterprise.LicenseAddOn.fromObject(object.addOns[i]); } } @@ -68796,56 +71224,64 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ ManagedCompany.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.addOns = []; + if (options.arrays || options.defaults) object.addOns = []; if (options.defaults) { object.mcEnterpriseId = 0; - object.mcEnterpriseName = ""; + object.mcEnterpriseName = ''; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.mspNodeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.mspNodeId = options.longs === String ? "0" : 0; + object.mspNodeId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.mspNodeId = options.longs === String ? '0' : 0; object.numberOfSeats = 0; object.numberOfUsers = 0; - object.productId = ""; + object.productId = ''; object.isExpired = false; - object.treeKey = ""; + object.treeKey = ''; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.treeKeyRole = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.treeKeyRole = options.longs === String ? "0" : 0; - object.filePlanType = ""; + object.treeKeyRole = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.treeKeyRole = options.longs === String ? '0' : 0; + object.filePlanType = ''; } - if (message.mcEnterpriseId != null && message.hasOwnProperty("mcEnterpriseId")) + if (message.mcEnterpriseId != null && message.hasOwnProperty('mcEnterpriseId')) object.mcEnterpriseId = message.mcEnterpriseId; - if (message.mcEnterpriseName != null && message.hasOwnProperty("mcEnterpriseName")) + if (message.mcEnterpriseName != null && message.hasOwnProperty('mcEnterpriseName')) object.mcEnterpriseName = message.mcEnterpriseName; - if (message.mspNodeId != null && message.hasOwnProperty("mspNodeId")) - if (typeof message.mspNodeId === "number") + if (message.mspNodeId != null && message.hasOwnProperty('mspNodeId')) + if (typeof message.mspNodeId === 'number') object.mspNodeId = options.longs === String ? String(message.mspNodeId) : message.mspNodeId; else - object.mspNodeId = options.longs === String ? $util.Long.prototype.toString.call(message.mspNodeId) : options.longs === Number ? new $util.LongBits(message.mspNodeId.low >>> 0, message.mspNodeId.high >>> 0).toNumber() : message.mspNodeId; - if (message.numberOfSeats != null && message.hasOwnProperty("numberOfSeats")) + object.mspNodeId = + options.longs === String + ? $util.Long.prototype.toString.call(message.mspNodeId) + : options.longs === Number + ? new $util.LongBits(message.mspNodeId.low >>> 0, message.mspNodeId.high >>> 0).toNumber() + : message.mspNodeId; + if (message.numberOfSeats != null && message.hasOwnProperty('numberOfSeats')) object.numberOfSeats = message.numberOfSeats; - if (message.numberOfUsers != null && message.hasOwnProperty("numberOfUsers")) + if (message.numberOfUsers != null && message.hasOwnProperty('numberOfUsers')) object.numberOfUsers = message.numberOfUsers; - if (message.productId != null && message.hasOwnProperty("productId")) - object.productId = message.productId; - if (message.isExpired != null && message.hasOwnProperty("isExpired")) - object.isExpired = message.isExpired; - if (message.treeKey != null && message.hasOwnProperty("treeKey")) - object.treeKey = message.treeKey; - if (message.treeKeyRole != null && message.hasOwnProperty("treeKeyRole")) - if (typeof message.treeKeyRole === "number") + if (message.productId != null && message.hasOwnProperty('productId')) object.productId = message.productId; + if (message.isExpired != null && message.hasOwnProperty('isExpired')) object.isExpired = message.isExpired; + if (message.treeKey != null && message.hasOwnProperty('treeKey')) object.treeKey = message.treeKey; + if (message.treeKeyRole != null && message.hasOwnProperty('treeKeyRole')) + if (typeof message.treeKeyRole === 'number') object.treeKeyRole = options.longs === String ? String(message.treeKeyRole) : message.treeKeyRole; else - object.treeKeyRole = options.longs === String ? $util.Long.prototype.toString.call(message.treeKeyRole) : options.longs === Number ? new $util.LongBits(message.treeKeyRole.low >>> 0, message.treeKeyRole.high >>> 0).toNumber() : message.treeKeyRole; - if (message.filePlanType != null && message.hasOwnProperty("filePlanType")) + object.treeKeyRole = + options.longs === String + ? $util.Long.prototype.toString.call(message.treeKeyRole) + : options.longs === Number + ? new $util.LongBits( + message.treeKeyRole.low >>> 0, + message.treeKeyRole.high >>> 0 + ).toNumber() + : message.treeKeyRole; + if (message.filePlanType != null && message.hasOwnProperty('filePlanType')) object.filePlanType = message.filePlanType; if (message.addOns && message.addOns.length) { object.addOns = []; @@ -68876,16 +71312,15 @@ export const Enterprise = $root.Enterprise = (() => { */ ManagedCompany.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.ManagedCompany"; + return typeUrlPrefix + '/Enterprise.ManagedCompany'; }; return ManagedCompany; })(); - Enterprise.MSPPool = (function() { - + Enterprise.MSPPool = (function () { /** * Properties of a MSPPool. * @memberof Enterprise @@ -68907,8 +71342,7 @@ export const Enterprise = $root.Enterprise = (() => { function MSPPool(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -68917,7 +71351,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.MSPPool * @instance */ - MSPPool.prototype.productId = ""; + MSPPool.prototype.productId = ''; /** * MSPPool seats. @@ -68965,16 +71399,15 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ MSPPool.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.productId != null && Object.hasOwnProperty.call(message, "productId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.productId); - if (message.seats != null && Object.hasOwnProperty.call(message, "seats")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.seats); - if (message.availableSeats != null && Object.hasOwnProperty.call(message, "availableSeats")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.availableSeats); - if (message.stash != null && Object.hasOwnProperty.call(message, "stash")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.stash); + if (!writer) writer = $Writer.create(); + if (message.productId != null && Object.hasOwnProperty.call(message, 'productId')) + writer.uint32(/* id 1, wireType 2 =*/ 10).string(message.productId); + if (message.seats != null && Object.hasOwnProperty.call(message, 'seats')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int32(message.seats); + if (message.availableSeats != null && Object.hasOwnProperty.call(message, 'availableSeats')) + writer.uint32(/* id 3, wireType 0 =*/ 24).int32(message.availableSeats); + if (message.stash != null && Object.hasOwnProperty.call(message, 'stash')) + writer.uint32(/* id 4, wireType 0 =*/ 32).int32(message.stash); return writer; }; @@ -69003,31 +71436,31 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ MSPPool.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.MSPPool(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.MSPPool(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.productId = reader.string(); break; } - case 2: { + case 2: { message.seats = reader.int32(); break; } - case 3: { + case 3: { message.availableSeats = reader.int32(); break; } - case 4: { + case 4: { message.stash = reader.int32(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -69044,8 +71477,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ MSPPool.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -69058,20 +71490,15 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ MSPPool.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.productId != null && message.hasOwnProperty("productId")) - if (!$util.isString(message.productId)) - return "productId: string expected"; - if (message.seats != null && message.hasOwnProperty("seats")) - if (!$util.isInteger(message.seats)) - return "seats: integer expected"; - if (message.availableSeats != null && message.hasOwnProperty("availableSeats")) - if (!$util.isInteger(message.availableSeats)) - return "availableSeats: integer expected"; - if (message.stash != null && message.hasOwnProperty("stash")) - if (!$util.isInteger(message.stash)) - return "stash: integer expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.productId != null && message.hasOwnProperty('productId')) + if (!$util.isString(message.productId)) return 'productId: string expected'; + if (message.seats != null && message.hasOwnProperty('seats')) + if (!$util.isInteger(message.seats)) return 'seats: integer expected'; + if (message.availableSeats != null && message.hasOwnProperty('availableSeats')) + if (!$util.isInteger(message.availableSeats)) return 'availableSeats: integer expected'; + if (message.stash != null && message.hasOwnProperty('stash')) + if (!$util.isInteger(message.stash)) return 'stash: integer expected'; return null; }; @@ -69084,17 +71511,12 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.MSPPool} MSPPool */ MSPPool.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.MSPPool) - return object; + if (object instanceof $root.Enterprise.MSPPool) return object; let message = new $root.Enterprise.MSPPool(); - if (object.productId != null) - message.productId = String(object.productId); - if (object.seats != null) - message.seats = object.seats | 0; - if (object.availableSeats != null) - message.availableSeats = object.availableSeats | 0; - if (object.stash != null) - message.stash = object.stash | 0; + if (object.productId != null) message.productId = String(object.productId); + if (object.seats != null) message.seats = object.seats | 0; + if (object.availableSeats != null) message.availableSeats = object.availableSeats | 0; + if (object.stash != null) message.stash = object.stash | 0; return message; }; @@ -69108,23 +71530,19 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ MSPPool.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - object.productId = ""; + object.productId = ''; object.seats = 0; object.availableSeats = 0; object.stash = 0; } - if (message.productId != null && message.hasOwnProperty("productId")) - object.productId = message.productId; - if (message.seats != null && message.hasOwnProperty("seats")) - object.seats = message.seats; - if (message.availableSeats != null && message.hasOwnProperty("availableSeats")) + if (message.productId != null && message.hasOwnProperty('productId')) object.productId = message.productId; + if (message.seats != null && message.hasOwnProperty('seats')) object.seats = message.seats; + if (message.availableSeats != null && message.hasOwnProperty('availableSeats')) object.availableSeats = message.availableSeats; - if (message.stash != null && message.hasOwnProperty("stash")) - object.stash = message.stash; + if (message.stash != null && message.hasOwnProperty('stash')) object.stash = message.stash; return object; }; @@ -69149,16 +71567,15 @@ export const Enterprise = $root.Enterprise = (() => { */ MSPPool.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.MSPPool"; + return typeUrlPrefix + '/Enterprise.MSPPool'; }; return MSPPool; })(); - Enterprise.MSPContact = (function() { - + Enterprise.MSPContact = (function () { /** * Properties of a MSPContact. * @memberof Enterprise @@ -69178,8 +71595,7 @@ export const Enterprise = $root.Enterprise = (() => { function MSPContact(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -69196,7 +71612,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.MSPContact * @instance */ - MSPContact.prototype.enterpriseName = ""; + MSPContact.prototype.enterpriseName = ''; /** * Creates a new MSPContact instance using the specified properties. @@ -69220,12 +71636,11 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ MSPContact.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.enterpriseId != null && Object.hasOwnProperty.call(message, "enterpriseId")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.enterpriseId); - if (message.enterpriseName != null && Object.hasOwnProperty.call(message, "enterpriseName")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.enterpriseName); + if (!writer) writer = $Writer.create(); + if (message.enterpriseId != null && Object.hasOwnProperty.call(message, 'enterpriseId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int32(message.enterpriseId); + if (message.enterpriseName != null && Object.hasOwnProperty.call(message, 'enterpriseName')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.enterpriseName); return writer; }; @@ -69254,23 +71669,23 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ MSPContact.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.MSPContact(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.MSPContact(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.enterpriseId = reader.int32(); break; } - case 2: { + case 2: { message.enterpriseName = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -69287,8 +71702,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ MSPContact.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -69301,14 +71715,11 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ MSPContact.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.enterpriseId != null && message.hasOwnProperty("enterpriseId")) - if (!$util.isInteger(message.enterpriseId)) - return "enterpriseId: integer expected"; - if (message.enterpriseName != null && message.hasOwnProperty("enterpriseName")) - if (!$util.isString(message.enterpriseName)) - return "enterpriseName: string expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.enterpriseId != null && message.hasOwnProperty('enterpriseId')) + if (!$util.isInteger(message.enterpriseId)) return 'enterpriseId: integer expected'; + if (message.enterpriseName != null && message.hasOwnProperty('enterpriseName')) + if (!$util.isString(message.enterpriseName)) return 'enterpriseName: string expected'; return null; }; @@ -69321,13 +71732,10 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.MSPContact} MSPContact */ MSPContact.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.MSPContact) - return object; + if (object instanceof $root.Enterprise.MSPContact) return object; let message = new $root.Enterprise.MSPContact(); - if (object.enterpriseId != null) - message.enterpriseId = object.enterpriseId | 0; - if (object.enterpriseName != null) - message.enterpriseName = String(object.enterpriseName); + if (object.enterpriseId != null) message.enterpriseId = object.enterpriseId | 0; + if (object.enterpriseName != null) message.enterpriseName = String(object.enterpriseName); return message; }; @@ -69341,16 +71749,15 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ MSPContact.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { object.enterpriseId = 0; - object.enterpriseName = ""; + object.enterpriseName = ''; } - if (message.enterpriseId != null && message.hasOwnProperty("enterpriseId")) + if (message.enterpriseId != null && message.hasOwnProperty('enterpriseId')) object.enterpriseId = message.enterpriseId; - if (message.enterpriseName != null && message.hasOwnProperty("enterpriseName")) + if (message.enterpriseName != null && message.hasOwnProperty('enterpriseName')) object.enterpriseName = message.enterpriseName; return object; }; @@ -69376,16 +71783,15 @@ export const Enterprise = $root.Enterprise = (() => { */ MSPContact.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.MSPContact"; + return typeUrlPrefix + '/Enterprise.MSPContact'; }; return MSPContact; })(); - Enterprise.LicenseAddOn = (function() { - + Enterprise.LicenseAddOn = (function () { /** * Properties of a LicenseAddOn. * @memberof Enterprise @@ -69414,8 +71820,7 @@ export const Enterprise = $root.Enterprise = (() => { function LicenseAddOn(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -69424,7 +71829,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.LicenseAddOn * @instance */ - LicenseAddOn.prototype.name = ""; + LicenseAddOn.prototype.name = ''; /** * LicenseAddOn enabled. @@ -69448,7 +71853,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.LicenseAddOn * @instance */ - LicenseAddOn.prototype.expiration = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + LicenseAddOn.prototype.expiration = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * LicenseAddOn created. @@ -69456,7 +71861,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.LicenseAddOn * @instance */ - LicenseAddOn.prototype.created = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + LicenseAddOn.prototype.created = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * LicenseAddOn seats. @@ -69472,7 +71877,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.LicenseAddOn * @instance */ - LicenseAddOn.prototype.activationTime = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + LicenseAddOn.prototype.activationTime = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * LicenseAddOn includedInProduct. @@ -69496,7 +71901,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.LicenseAddOn * @instance */ - LicenseAddOn.prototype.tierDescription = ""; + LicenseAddOn.prototype.tierDescription = ''; /** * LicenseAddOn seatsAllocated. @@ -69528,30 +71933,29 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ LicenseAddOn.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.enabled != null && Object.hasOwnProperty.call(message, "enabled")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.enabled); - if (message.isTrial != null && Object.hasOwnProperty.call(message, "isTrial")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.isTrial); - if (message.expiration != null && Object.hasOwnProperty.call(message, "expiration")) - writer.uint32(/* id 4, wireType 0 =*/32).int64(message.expiration); - if (message.created != null && Object.hasOwnProperty.call(message, "created")) - writer.uint32(/* id 5, wireType 0 =*/40).int64(message.created); - if (message.seats != null && Object.hasOwnProperty.call(message, "seats")) - writer.uint32(/* id 6, wireType 0 =*/48).int32(message.seats); - if (message.activationTime != null && Object.hasOwnProperty.call(message, "activationTime")) - writer.uint32(/* id 7, wireType 0 =*/56).int64(message.activationTime); - if (message.includedInProduct != null && Object.hasOwnProperty.call(message, "includedInProduct")) - writer.uint32(/* id 8, wireType 0 =*/64).bool(message.includedInProduct); - if (message.apiCallCount != null && Object.hasOwnProperty.call(message, "apiCallCount")) - writer.uint32(/* id 9, wireType 0 =*/72).int32(message.apiCallCount); - if (message.tierDescription != null && Object.hasOwnProperty.call(message, "tierDescription")) - writer.uint32(/* id 10, wireType 2 =*/82).string(message.tierDescription); - if (message.seatsAllocated != null && Object.hasOwnProperty.call(message, "seatsAllocated")) - writer.uint32(/* id 11, wireType 0 =*/88).int32(message.seatsAllocated); + if (!writer) writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, 'name')) + writer.uint32(/* id 1, wireType 2 =*/ 10).string(message.name); + if (message.enabled != null && Object.hasOwnProperty.call(message, 'enabled')) + writer.uint32(/* id 2, wireType 0 =*/ 16).bool(message.enabled); + if (message.isTrial != null && Object.hasOwnProperty.call(message, 'isTrial')) + writer.uint32(/* id 3, wireType 0 =*/ 24).bool(message.isTrial); + if (message.expiration != null && Object.hasOwnProperty.call(message, 'expiration')) + writer.uint32(/* id 4, wireType 0 =*/ 32).int64(message.expiration); + if (message.created != null && Object.hasOwnProperty.call(message, 'created')) + writer.uint32(/* id 5, wireType 0 =*/ 40).int64(message.created); + if (message.seats != null && Object.hasOwnProperty.call(message, 'seats')) + writer.uint32(/* id 6, wireType 0 =*/ 48).int32(message.seats); + if (message.activationTime != null && Object.hasOwnProperty.call(message, 'activationTime')) + writer.uint32(/* id 7, wireType 0 =*/ 56).int64(message.activationTime); + if (message.includedInProduct != null && Object.hasOwnProperty.call(message, 'includedInProduct')) + writer.uint32(/* id 8, wireType 0 =*/ 64).bool(message.includedInProduct); + if (message.apiCallCount != null && Object.hasOwnProperty.call(message, 'apiCallCount')) + writer.uint32(/* id 9, wireType 0 =*/ 72).int32(message.apiCallCount); + if (message.tierDescription != null && Object.hasOwnProperty.call(message, 'tierDescription')) + writer.uint32(/* id 10, wireType 2 =*/ 82).string(message.tierDescription); + if (message.seatsAllocated != null && Object.hasOwnProperty.call(message, 'seatsAllocated')) + writer.uint32(/* id 11, wireType 0 =*/ 88).int32(message.seatsAllocated); return writer; }; @@ -69580,59 +71984,59 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ LicenseAddOn.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.LicenseAddOn(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.LicenseAddOn(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.name = reader.string(); break; } - case 2: { + case 2: { message.enabled = reader.bool(); break; } - case 3: { + case 3: { message.isTrial = reader.bool(); break; } - case 4: { + case 4: { message.expiration = reader.int64(); break; } - case 5: { + case 5: { message.created = reader.int64(); break; } - case 6: { + case 6: { message.seats = reader.int32(); break; } - case 7: { + case 7: { message.activationTime = reader.int64(); break; } - case 8: { + case 8: { message.includedInProduct = reader.bool(); break; } - case 9: { + case 9: { message.apiCallCount = reader.int32(); break; } - case 10: { + case 10: { message.tierDescription = reader.string(); break; } - case 11: { + case 11: { message.seatsAllocated = reader.int32(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -69649,8 +72053,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ LicenseAddOn.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -69663,41 +72066,49 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ LicenseAddOn.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.enabled != null && message.hasOwnProperty("enabled")) - if (typeof message.enabled !== "boolean") - return "enabled: boolean expected"; - if (message.isTrial != null && message.hasOwnProperty("isTrial")) - if (typeof message.isTrial !== "boolean") - return "isTrial: boolean expected"; - if (message.expiration != null && message.hasOwnProperty("expiration")) - if (!$util.isInteger(message.expiration) && !(message.expiration && $util.isInteger(message.expiration.low) && $util.isInteger(message.expiration.high))) - return "expiration: integer|Long expected"; - if (message.created != null && message.hasOwnProperty("created")) - if (!$util.isInteger(message.created) && !(message.created && $util.isInteger(message.created.low) && $util.isInteger(message.created.high))) - return "created: integer|Long expected"; - if (message.seats != null && message.hasOwnProperty("seats")) - if (!$util.isInteger(message.seats)) - return "seats: integer expected"; - if (message.activationTime != null && message.hasOwnProperty("activationTime")) - if (!$util.isInteger(message.activationTime) && !(message.activationTime && $util.isInteger(message.activationTime.low) && $util.isInteger(message.activationTime.high))) - return "activationTime: integer|Long expected"; - if (message.includedInProduct != null && message.hasOwnProperty("includedInProduct")) - if (typeof message.includedInProduct !== "boolean") - return "includedInProduct: boolean expected"; - if (message.apiCallCount != null && message.hasOwnProperty("apiCallCount")) - if (!$util.isInteger(message.apiCallCount)) - return "apiCallCount: integer expected"; - if (message.tierDescription != null && message.hasOwnProperty("tierDescription")) - if (!$util.isString(message.tierDescription)) - return "tierDescription: string expected"; - if (message.seatsAllocated != null && message.hasOwnProperty("seatsAllocated")) - if (!$util.isInteger(message.seatsAllocated)) - return "seatsAllocated: integer expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.name != null && message.hasOwnProperty('name')) + if (!$util.isString(message.name)) return 'name: string expected'; + if (message.enabled != null && message.hasOwnProperty('enabled')) + if (typeof message.enabled !== 'boolean') return 'enabled: boolean expected'; + if (message.isTrial != null && message.hasOwnProperty('isTrial')) + if (typeof message.isTrial !== 'boolean') return 'isTrial: boolean expected'; + if (message.expiration != null && message.hasOwnProperty('expiration')) + if ( + !$util.isInteger(message.expiration) && + !( + message.expiration && + $util.isInteger(message.expiration.low) && + $util.isInteger(message.expiration.high) + ) + ) + return 'expiration: integer|Long expected'; + if (message.created != null && message.hasOwnProperty('created')) + if ( + !$util.isInteger(message.created) && + !(message.created && $util.isInteger(message.created.low) && $util.isInteger(message.created.high)) + ) + return 'created: integer|Long expected'; + if (message.seats != null && message.hasOwnProperty('seats')) + if (!$util.isInteger(message.seats)) return 'seats: integer expected'; + if (message.activationTime != null && message.hasOwnProperty('activationTime')) + if ( + !$util.isInteger(message.activationTime) && + !( + message.activationTime && + $util.isInteger(message.activationTime.low) && + $util.isInteger(message.activationTime.high) + ) + ) + return 'activationTime: integer|Long expected'; + if (message.includedInProduct != null && message.hasOwnProperty('includedInProduct')) + if (typeof message.includedInProduct !== 'boolean') return 'includedInProduct: boolean expected'; + if (message.apiCallCount != null && message.hasOwnProperty('apiCallCount')) + if (!$util.isInteger(message.apiCallCount)) return 'apiCallCount: integer expected'; + if (message.tierDescription != null && message.hasOwnProperty('tierDescription')) + if (!$util.isString(message.tierDescription)) return 'tierDescription: string expected'; + if (message.seatsAllocated != null && message.hasOwnProperty('seatsAllocated')) + if (!$util.isInteger(message.seatsAllocated)) return 'seatsAllocated: integer expected'; return null; }; @@ -69710,52 +72121,44 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.LicenseAddOn} LicenseAddOn */ LicenseAddOn.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.LicenseAddOn) - return object; + if (object instanceof $root.Enterprise.LicenseAddOn) return object; let message = new $root.Enterprise.LicenseAddOn(); - if (object.name != null) - message.name = String(object.name); - if (object.enabled != null) - message.enabled = Boolean(object.enabled); - if (object.isTrial != null) - message.isTrial = Boolean(object.isTrial); + if (object.name != null) message.name = String(object.name); + if (object.enabled != null) message.enabled = Boolean(object.enabled); + if (object.isTrial != null) message.isTrial = Boolean(object.isTrial); if (object.expiration != null) - if ($util.Long) - (message.expiration = $util.Long.fromValue(object.expiration)).unsigned = false; - else if (typeof object.expiration === "string") - message.expiration = parseInt(object.expiration, 10); - else if (typeof object.expiration === "number") - message.expiration = object.expiration; - else if (typeof object.expiration === "object") - message.expiration = new $util.LongBits(object.expiration.low >>> 0, object.expiration.high >>> 0).toNumber(); + if ($util.Long) (message.expiration = $util.Long.fromValue(object.expiration)).unsigned = false; + else if (typeof object.expiration === 'string') message.expiration = parseInt(object.expiration, 10); + else if (typeof object.expiration === 'number') message.expiration = object.expiration; + else if (typeof object.expiration === 'object') + message.expiration = new $util.LongBits( + object.expiration.low >>> 0, + object.expiration.high >>> 0 + ).toNumber(); if (object.created != null) - if ($util.Long) - (message.created = $util.Long.fromValue(object.created)).unsigned = false; - else if (typeof object.created === "string") - message.created = parseInt(object.created, 10); - else if (typeof object.created === "number") - message.created = object.created; - else if (typeof object.created === "object") - message.created = new $util.LongBits(object.created.low >>> 0, object.created.high >>> 0).toNumber(); - if (object.seats != null) - message.seats = object.seats | 0; + if ($util.Long) (message.created = $util.Long.fromValue(object.created)).unsigned = false; + else if (typeof object.created === 'string') message.created = parseInt(object.created, 10); + else if (typeof object.created === 'number') message.created = object.created; + else if (typeof object.created === 'object') + message.created = new $util.LongBits( + object.created.low >>> 0, + object.created.high >>> 0 + ).toNumber(); + if (object.seats != null) message.seats = object.seats | 0; if (object.activationTime != null) - if ($util.Long) - (message.activationTime = $util.Long.fromValue(object.activationTime)).unsigned = false; - else if (typeof object.activationTime === "string") + if ($util.Long) (message.activationTime = $util.Long.fromValue(object.activationTime)).unsigned = false; + else if (typeof object.activationTime === 'string') message.activationTime = parseInt(object.activationTime, 10); - else if (typeof object.activationTime === "number") - message.activationTime = object.activationTime; - else if (typeof object.activationTime === "object") - message.activationTime = new $util.LongBits(object.activationTime.low >>> 0, object.activationTime.high >>> 0).toNumber(); - if (object.includedInProduct != null) - message.includedInProduct = Boolean(object.includedInProduct); - if (object.apiCallCount != null) - message.apiCallCount = object.apiCallCount | 0; - if (object.tierDescription != null) - message.tierDescription = String(object.tierDescription); - if (object.seatsAllocated != null) - message.seatsAllocated = object.seatsAllocated | 0; + else if (typeof object.activationTime === 'number') message.activationTime = object.activationTime; + else if (typeof object.activationTime === 'object') + message.activationTime = new $util.LongBits( + object.activationTime.low >>> 0, + object.activationTime.high >>> 0 + ).toNumber(); + if (object.includedInProduct != null) message.includedInProduct = Boolean(object.includedInProduct); + if (object.apiCallCount != null) message.apiCallCount = object.apiCallCount | 0; + if (object.tierDescription != null) message.tierDescription = String(object.tierDescription); + if (object.seatsAllocated != null) message.seatsAllocated = object.seatsAllocated | 0; return message; }; @@ -69769,64 +72172,81 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ LicenseAddOn.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - object.name = ""; + object.name = ''; object.enabled = false; object.isTrial = false; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.expiration = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.expiration = options.longs === String ? "0" : 0; + object.expiration = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.expiration = options.longs === String ? '0' : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.created = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.created = options.longs === String ? "0" : 0; + object.created = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.created = options.longs === String ? '0' : 0; object.seats = 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.activationTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.activationTime = options.longs === String ? "0" : 0; + object.activationTime = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.activationTime = options.longs === String ? '0' : 0; object.includedInProduct = false; object.apiCallCount = 0; - object.tierDescription = ""; + object.tierDescription = ''; object.seatsAllocated = 0; } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.enabled != null && message.hasOwnProperty("enabled")) - object.enabled = message.enabled; - if (message.isTrial != null && message.hasOwnProperty("isTrial")) - object.isTrial = message.isTrial; - if (message.expiration != null && message.hasOwnProperty("expiration")) - if (typeof message.expiration === "number") + if (message.name != null && message.hasOwnProperty('name')) object.name = message.name; + if (message.enabled != null && message.hasOwnProperty('enabled')) object.enabled = message.enabled; + if (message.isTrial != null && message.hasOwnProperty('isTrial')) object.isTrial = message.isTrial; + if (message.expiration != null && message.hasOwnProperty('expiration')) + if (typeof message.expiration === 'number') object.expiration = options.longs === String ? String(message.expiration) : message.expiration; else - object.expiration = options.longs === String ? $util.Long.prototype.toString.call(message.expiration) : options.longs === Number ? new $util.LongBits(message.expiration.low >>> 0, message.expiration.high >>> 0).toNumber() : message.expiration; - if (message.created != null && message.hasOwnProperty("created")) - if (typeof message.created === "number") + object.expiration = + options.longs === String + ? $util.Long.prototype.toString.call(message.expiration) + : options.longs === Number + ? new $util.LongBits( + message.expiration.low >>> 0, + message.expiration.high >>> 0 + ).toNumber() + : message.expiration; + if (message.created != null && message.hasOwnProperty('created')) + if (typeof message.created === 'number') object.created = options.longs === String ? String(message.created) : message.created; else - object.created = options.longs === String ? $util.Long.prototype.toString.call(message.created) : options.longs === Number ? new $util.LongBits(message.created.low >>> 0, message.created.high >>> 0).toNumber() : message.created; - if (message.seats != null && message.hasOwnProperty("seats")) - object.seats = message.seats; - if (message.activationTime != null && message.hasOwnProperty("activationTime")) - if (typeof message.activationTime === "number") - object.activationTime = options.longs === String ? String(message.activationTime) : message.activationTime; + object.created = + options.longs === String + ? $util.Long.prototype.toString.call(message.created) + : options.longs === Number + ? new $util.LongBits(message.created.low >>> 0, message.created.high >>> 0).toNumber() + : message.created; + if (message.seats != null && message.hasOwnProperty('seats')) object.seats = message.seats; + if (message.activationTime != null && message.hasOwnProperty('activationTime')) + if (typeof message.activationTime === 'number') + object.activationTime = + options.longs === String ? String(message.activationTime) : message.activationTime; else - object.activationTime = options.longs === String ? $util.Long.prototype.toString.call(message.activationTime) : options.longs === Number ? new $util.LongBits(message.activationTime.low >>> 0, message.activationTime.high >>> 0).toNumber() : message.activationTime; - if (message.includedInProduct != null && message.hasOwnProperty("includedInProduct")) + object.activationTime = + options.longs === String + ? $util.Long.prototype.toString.call(message.activationTime) + : options.longs === Number + ? new $util.LongBits( + message.activationTime.low >>> 0, + message.activationTime.high >>> 0 + ).toNumber() + : message.activationTime; + if (message.includedInProduct != null && message.hasOwnProperty('includedInProduct')) object.includedInProduct = message.includedInProduct; - if (message.apiCallCount != null && message.hasOwnProperty("apiCallCount")) + if (message.apiCallCount != null && message.hasOwnProperty('apiCallCount')) object.apiCallCount = message.apiCallCount; - if (message.tierDescription != null && message.hasOwnProperty("tierDescription")) + if (message.tierDescription != null && message.hasOwnProperty('tierDescription')) object.tierDescription = message.tierDescription; - if (message.seatsAllocated != null && message.hasOwnProperty("seatsAllocated")) + if (message.seatsAllocated != null && message.hasOwnProperty('seatsAllocated')) object.seatsAllocated = message.seatsAllocated; return object; }; @@ -69852,16 +72272,15 @@ export const Enterprise = $root.Enterprise = (() => { */ LicenseAddOn.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.LicenseAddOn"; + return typeUrlPrefix + '/Enterprise.LicenseAddOn'; }; return LicenseAddOn; })(); - Enterprise.MCDefault = (function() { - + Enterprise.MCDefault = (function () { /** * Properties of a MCDefault. * @memberof Enterprise @@ -69885,8 +72304,7 @@ export const Enterprise = $root.Enterprise = (() => { this.addOns = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -69895,7 +72313,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.MCDefault * @instance */ - MCDefault.prototype.mcProduct = ""; + MCDefault.prototype.mcProduct = ''; /** * MCDefault addOns. @@ -69911,7 +72329,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.MCDefault * @instance */ - MCDefault.prototype.filePlanType = ""; + MCDefault.prototype.filePlanType = ''; /** * MCDefault maxLicenses. @@ -69951,19 +72369,18 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ MCDefault.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.mcProduct != null && Object.hasOwnProperty.call(message, "mcProduct")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.mcProduct); + if (!writer) writer = $Writer.create(); + if (message.mcProduct != null && Object.hasOwnProperty.call(message, 'mcProduct')) + writer.uint32(/* id 1, wireType 2 =*/ 10).string(message.mcProduct); if (message.addOns != null && message.addOns.length) for (let i = 0; i < message.addOns.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.addOns[i]); - if (message.filePlanType != null && Object.hasOwnProperty.call(message, "filePlanType")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.filePlanType); - if (message.maxLicenses != null && Object.hasOwnProperty.call(message, "maxLicenses")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.maxLicenses); - if (message.fixedMaxLicenses != null && Object.hasOwnProperty.call(message, "fixedMaxLicenses")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.fixedMaxLicenses); + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.addOns[i]); + if (message.filePlanType != null && Object.hasOwnProperty.call(message, 'filePlanType')) + writer.uint32(/* id 3, wireType 2 =*/ 26).string(message.filePlanType); + if (message.maxLicenses != null && Object.hasOwnProperty.call(message, 'maxLicenses')) + writer.uint32(/* id 4, wireType 0 =*/ 32).int32(message.maxLicenses); + if (message.fixedMaxLicenses != null && Object.hasOwnProperty.call(message, 'fixedMaxLicenses')) + writer.uint32(/* id 5, wireType 0 =*/ 40).bool(message.fixedMaxLicenses); return writer; }; @@ -69992,37 +72409,36 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ MCDefault.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.MCDefault(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.MCDefault(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.mcProduct = reader.string(); break; } - case 2: { - if (!(message.addOns && message.addOns.length)) - message.addOns = []; + case 2: { + if (!(message.addOns && message.addOns.length)) message.addOns = []; message.addOns.push(reader.string()); break; } - case 3: { + case 3: { message.filePlanType = reader.string(); break; } - case 4: { + case 4: { message.maxLicenses = reader.int32(); break; } - case 5: { + case 5: { message.fixedMaxLicenses = reader.bool(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -70039,8 +72455,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ MCDefault.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -70053,27 +72468,20 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ MCDefault.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.mcProduct != null && message.hasOwnProperty("mcProduct")) - if (!$util.isString(message.mcProduct)) - return "mcProduct: string expected"; - if (message.addOns != null && message.hasOwnProperty("addOns")) { - if (!Array.isArray(message.addOns)) - return "addOns: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.mcProduct != null && message.hasOwnProperty('mcProduct')) + if (!$util.isString(message.mcProduct)) return 'mcProduct: string expected'; + if (message.addOns != null && message.hasOwnProperty('addOns')) { + if (!Array.isArray(message.addOns)) return 'addOns: array expected'; for (let i = 0; i < message.addOns.length; ++i) - if (!$util.isString(message.addOns[i])) - return "addOns: string[] expected"; + if (!$util.isString(message.addOns[i])) return 'addOns: string[] expected'; } - if (message.filePlanType != null && message.hasOwnProperty("filePlanType")) - if (!$util.isString(message.filePlanType)) - return "filePlanType: string expected"; - if (message.maxLicenses != null && message.hasOwnProperty("maxLicenses")) - if (!$util.isInteger(message.maxLicenses)) - return "maxLicenses: integer expected"; - if (message.fixedMaxLicenses != null && message.hasOwnProperty("fixedMaxLicenses")) - if (typeof message.fixedMaxLicenses !== "boolean") - return "fixedMaxLicenses: boolean expected"; + if (message.filePlanType != null && message.hasOwnProperty('filePlanType')) + if (!$util.isString(message.filePlanType)) return 'filePlanType: string expected'; + if (message.maxLicenses != null && message.hasOwnProperty('maxLicenses')) + if (!$util.isInteger(message.maxLicenses)) return 'maxLicenses: integer expected'; + if (message.fixedMaxLicenses != null && message.hasOwnProperty('fixedMaxLicenses')) + if (typeof message.fixedMaxLicenses !== 'boolean') return 'fixedMaxLicenses: boolean expected'; return null; }; @@ -70086,24 +72494,17 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.MCDefault} MCDefault */ MCDefault.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.MCDefault) - return object; + if (object instanceof $root.Enterprise.MCDefault) return object; let message = new $root.Enterprise.MCDefault(); - if (object.mcProduct != null) - message.mcProduct = String(object.mcProduct); + if (object.mcProduct != null) message.mcProduct = String(object.mcProduct); if (object.addOns) { - if (!Array.isArray(object.addOns)) - throw TypeError(".Enterprise.MCDefault.addOns: array expected"); + if (!Array.isArray(object.addOns)) throw TypeError('.Enterprise.MCDefault.addOns: array expected'); message.addOns = []; - for (let i = 0; i < object.addOns.length; ++i) - message.addOns[i] = String(object.addOns[i]); + for (let i = 0; i < object.addOns.length; ++i) message.addOns[i] = String(object.addOns[i]); } - if (object.filePlanType != null) - message.filePlanType = String(object.filePlanType); - if (object.maxLicenses != null) - message.maxLicenses = object.maxLicenses | 0; - if (object.fixedMaxLicenses != null) - message.fixedMaxLicenses = Boolean(object.fixedMaxLicenses); + if (object.filePlanType != null) message.filePlanType = String(object.filePlanType); + if (object.maxLicenses != null) message.maxLicenses = object.maxLicenses | 0; + if (object.fixedMaxLicenses != null) message.fixedMaxLicenses = Boolean(object.fixedMaxLicenses); return message; }; @@ -70117,29 +72518,25 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ MCDefault.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.addOns = []; + if (options.arrays || options.defaults) object.addOns = []; if (options.defaults) { - object.mcProduct = ""; - object.filePlanType = ""; + object.mcProduct = ''; + object.filePlanType = ''; object.maxLicenses = 0; object.fixedMaxLicenses = false; } - if (message.mcProduct != null && message.hasOwnProperty("mcProduct")) - object.mcProduct = message.mcProduct; + if (message.mcProduct != null && message.hasOwnProperty('mcProduct')) object.mcProduct = message.mcProduct; if (message.addOns && message.addOns.length) { object.addOns = []; - for (let j = 0; j < message.addOns.length; ++j) - object.addOns[j] = message.addOns[j]; + for (let j = 0; j < message.addOns.length; ++j) object.addOns[j] = message.addOns[j]; } - if (message.filePlanType != null && message.hasOwnProperty("filePlanType")) + if (message.filePlanType != null && message.hasOwnProperty('filePlanType')) object.filePlanType = message.filePlanType; - if (message.maxLicenses != null && message.hasOwnProperty("maxLicenses")) + if (message.maxLicenses != null && message.hasOwnProperty('maxLicenses')) object.maxLicenses = message.maxLicenses; - if (message.fixedMaxLicenses != null && message.hasOwnProperty("fixedMaxLicenses")) + if (message.fixedMaxLicenses != null && message.hasOwnProperty('fixedMaxLicenses')) object.fixedMaxLicenses = message.fixedMaxLicenses; return object; }; @@ -70165,16 +72562,15 @@ export const Enterprise = $root.Enterprise = (() => { */ MCDefault.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.MCDefault"; + return typeUrlPrefix + '/Enterprise.MCDefault'; }; return MCDefault; })(); - Enterprise.MSPPermits = (function() { - + Enterprise.MSPPermits = (function () { /** * Properties of a MSPPermits. * @memberof Enterprise @@ -70202,8 +72598,7 @@ export const Enterprise = $root.Enterprise = (() => { this.mcDefaults = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -70244,7 +72639,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.MSPPermits * @instance */ - MSPPermits.prototype.maxFilePlanType = ""; + MSPPermits.prototype.maxFilePlanType = ''; /** * MSPPermits allowUnlimitedLicenses. @@ -70284,25 +72679,27 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ MSPPermits.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.restricted != null && Object.hasOwnProperty.call(message, "restricted")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.restricted); - if (message.maxAllowedLicenses != null && Object.hasOwnProperty.call(message, "maxAllowedLicenses")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.maxAllowedLicenses); + if (!writer) writer = $Writer.create(); + if (message.restricted != null && Object.hasOwnProperty.call(message, 'restricted')) + writer.uint32(/* id 1, wireType 0 =*/ 8).bool(message.restricted); + if (message.maxAllowedLicenses != null && Object.hasOwnProperty.call(message, 'maxAllowedLicenses')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int32(message.maxAllowedLicenses); if (message.allowedMcProducts != null && message.allowedMcProducts.length) for (let i = 0; i < message.allowedMcProducts.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.allowedMcProducts[i]); + writer.uint32(/* id 3, wireType 2 =*/ 26).string(message.allowedMcProducts[i]); if (message.allowedAddOns != null && message.allowedAddOns.length) for (let i = 0; i < message.allowedAddOns.length; ++i) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.allowedAddOns[i]); - if (message.maxFilePlanType != null && Object.hasOwnProperty.call(message, "maxFilePlanType")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.maxFilePlanType); - if (message.allowUnlimitedLicenses != null && Object.hasOwnProperty.call(message, "allowUnlimitedLicenses")) - writer.uint32(/* id 6, wireType 0 =*/48).bool(message.allowUnlimitedLicenses); + writer.uint32(/* id 4, wireType 2 =*/ 34).string(message.allowedAddOns[i]); + if (message.maxFilePlanType != null && Object.hasOwnProperty.call(message, 'maxFilePlanType')) + writer.uint32(/* id 5, wireType 2 =*/ 42).string(message.maxFilePlanType); + if (message.allowUnlimitedLicenses != null && Object.hasOwnProperty.call(message, 'allowUnlimitedLicenses')) + writer.uint32(/* id 6, wireType 0 =*/ 48).bool(message.allowUnlimitedLicenses); if (message.mcDefaults != null && message.mcDefaults.length) for (let i = 0; i < message.mcDefaults.length; ++i) - $root.Enterprise.MCDefault.encode(message.mcDefaults[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + $root.Enterprise.MCDefault.encode( + message.mcDefaults[i], + writer.uint32(/* id 7, wireType 2 =*/ 58).fork() + ).ldelim(); return writer; }; @@ -70331,49 +72728,47 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ MSPPermits.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.MSPPermits(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.MSPPermits(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.restricted = reader.bool(); break; } - case 2: { + case 2: { message.maxAllowedLicenses = reader.int32(); break; } - case 3: { + case 3: { if (!(message.allowedMcProducts && message.allowedMcProducts.length)) message.allowedMcProducts = []; message.allowedMcProducts.push(reader.string()); break; } - case 4: { - if (!(message.allowedAddOns && message.allowedAddOns.length)) - message.allowedAddOns = []; + case 4: { + if (!(message.allowedAddOns && message.allowedAddOns.length)) message.allowedAddOns = []; message.allowedAddOns.push(reader.string()); break; } - case 5: { + case 5: { message.maxFilePlanType = reader.string(); break; } - case 6: { + case 6: { message.allowUnlimitedLicenses = reader.bool(); break; } - case 7: { - if (!(message.mcDefaults && message.mcDefaults.length)) - message.mcDefaults = []; + case 7: { + if (!(message.mcDefaults && message.mcDefaults.length)) message.mcDefaults = []; message.mcDefaults.push($root.Enterprise.MCDefault.decode(reader, reader.uint32())); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -70390,8 +72785,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ MSPPermits.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -70404,41 +72798,31 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ MSPPermits.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.restricted != null && message.hasOwnProperty("restricted")) - if (typeof message.restricted !== "boolean") - return "restricted: boolean expected"; - if (message.maxAllowedLicenses != null && message.hasOwnProperty("maxAllowedLicenses")) - if (!$util.isInteger(message.maxAllowedLicenses)) - return "maxAllowedLicenses: integer expected"; - if (message.allowedMcProducts != null && message.hasOwnProperty("allowedMcProducts")) { - if (!Array.isArray(message.allowedMcProducts)) - return "allowedMcProducts: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.restricted != null && message.hasOwnProperty('restricted')) + if (typeof message.restricted !== 'boolean') return 'restricted: boolean expected'; + if (message.maxAllowedLicenses != null && message.hasOwnProperty('maxAllowedLicenses')) + if (!$util.isInteger(message.maxAllowedLicenses)) return 'maxAllowedLicenses: integer expected'; + if (message.allowedMcProducts != null && message.hasOwnProperty('allowedMcProducts')) { + if (!Array.isArray(message.allowedMcProducts)) return 'allowedMcProducts: array expected'; for (let i = 0; i < message.allowedMcProducts.length; ++i) - if (!$util.isString(message.allowedMcProducts[i])) - return "allowedMcProducts: string[] expected"; + if (!$util.isString(message.allowedMcProducts[i])) return 'allowedMcProducts: string[] expected'; } - if (message.allowedAddOns != null && message.hasOwnProperty("allowedAddOns")) { - if (!Array.isArray(message.allowedAddOns)) - return "allowedAddOns: array expected"; + if (message.allowedAddOns != null && message.hasOwnProperty('allowedAddOns')) { + if (!Array.isArray(message.allowedAddOns)) return 'allowedAddOns: array expected'; for (let i = 0; i < message.allowedAddOns.length; ++i) - if (!$util.isString(message.allowedAddOns[i])) - return "allowedAddOns: string[] expected"; - } - if (message.maxFilePlanType != null && message.hasOwnProperty("maxFilePlanType")) - if (!$util.isString(message.maxFilePlanType)) - return "maxFilePlanType: string expected"; - if (message.allowUnlimitedLicenses != null && message.hasOwnProperty("allowUnlimitedLicenses")) - if (typeof message.allowUnlimitedLicenses !== "boolean") - return "allowUnlimitedLicenses: boolean expected"; - if (message.mcDefaults != null && message.hasOwnProperty("mcDefaults")) { - if (!Array.isArray(message.mcDefaults)) - return "mcDefaults: array expected"; + if (!$util.isString(message.allowedAddOns[i])) return 'allowedAddOns: string[] expected'; + } + if (message.maxFilePlanType != null && message.hasOwnProperty('maxFilePlanType')) + if (!$util.isString(message.maxFilePlanType)) return 'maxFilePlanType: string expected'; + if (message.allowUnlimitedLicenses != null && message.hasOwnProperty('allowUnlimitedLicenses')) + if (typeof message.allowUnlimitedLicenses !== 'boolean') + return 'allowUnlimitedLicenses: boolean expected'; + if (message.mcDefaults != null && message.hasOwnProperty('mcDefaults')) { + if (!Array.isArray(message.mcDefaults)) return 'mcDefaults: array expected'; for (let i = 0; i < message.mcDefaults.length; ++i) { let error = $root.Enterprise.MCDefault.verify(message.mcDefaults[i]); - if (error) - return "mcDefaults." + error; + if (error) return 'mcDefaults.' + error; } } return null; @@ -70453,38 +72837,34 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.MSPPermits} MSPPermits */ MSPPermits.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.MSPPermits) - return object; + if (object instanceof $root.Enterprise.MSPPermits) return object; let message = new $root.Enterprise.MSPPermits(); - if (object.restricted != null) - message.restricted = Boolean(object.restricted); - if (object.maxAllowedLicenses != null) - message.maxAllowedLicenses = object.maxAllowedLicenses | 0; + if (object.restricted != null) message.restricted = Boolean(object.restricted); + if (object.maxAllowedLicenses != null) message.maxAllowedLicenses = object.maxAllowedLicenses | 0; if (object.allowedMcProducts) { if (!Array.isArray(object.allowedMcProducts)) - throw TypeError(".Enterprise.MSPPermits.allowedMcProducts: array expected"); + throw TypeError('.Enterprise.MSPPermits.allowedMcProducts: array expected'); message.allowedMcProducts = []; for (let i = 0; i < object.allowedMcProducts.length; ++i) message.allowedMcProducts[i] = String(object.allowedMcProducts[i]); } if (object.allowedAddOns) { if (!Array.isArray(object.allowedAddOns)) - throw TypeError(".Enterprise.MSPPermits.allowedAddOns: array expected"); + throw TypeError('.Enterprise.MSPPermits.allowedAddOns: array expected'); message.allowedAddOns = []; for (let i = 0; i < object.allowedAddOns.length; ++i) message.allowedAddOns[i] = String(object.allowedAddOns[i]); } - if (object.maxFilePlanType != null) - message.maxFilePlanType = String(object.maxFilePlanType); + if (object.maxFilePlanType != null) message.maxFilePlanType = String(object.maxFilePlanType); if (object.allowUnlimitedLicenses != null) message.allowUnlimitedLicenses = Boolean(object.allowUnlimitedLicenses); if (object.mcDefaults) { if (!Array.isArray(object.mcDefaults)) - throw TypeError(".Enterprise.MSPPermits.mcDefaults: array expected"); + throw TypeError('.Enterprise.MSPPermits.mcDefaults: array expected'); message.mcDefaults = []; for (let i = 0; i < object.mcDefaults.length; ++i) { - if (typeof object.mcDefaults[i] !== "object") - throw TypeError(".Enterprise.MSPPermits.mcDefaults: object expected"); + if (typeof object.mcDefaults[i] !== 'object') + throw TypeError('.Enterprise.MSPPermits.mcDefaults: object expected'); message.mcDefaults[i] = $root.Enterprise.MCDefault.fromObject(object.mcDefaults[i]); } } @@ -70501,8 +72881,7 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ MSPPermits.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.arrays || options.defaults) { object.allowedMcProducts = []; @@ -70512,12 +72891,12 @@ export const Enterprise = $root.Enterprise = (() => { if (options.defaults) { object.restricted = false; object.maxAllowedLicenses = 0; - object.maxFilePlanType = ""; + object.maxFilePlanType = ''; object.allowUnlimitedLicenses = false; } - if (message.restricted != null && message.hasOwnProperty("restricted")) + if (message.restricted != null && message.hasOwnProperty('restricted')) object.restricted = message.restricted; - if (message.maxAllowedLicenses != null && message.hasOwnProperty("maxAllowedLicenses")) + if (message.maxAllowedLicenses != null && message.hasOwnProperty('maxAllowedLicenses')) object.maxAllowedLicenses = message.maxAllowedLicenses; if (message.allowedMcProducts && message.allowedMcProducts.length) { object.allowedMcProducts = []; @@ -70529,9 +72908,9 @@ export const Enterprise = $root.Enterprise = (() => { for (let j = 0; j < message.allowedAddOns.length; ++j) object.allowedAddOns[j] = message.allowedAddOns[j]; } - if (message.maxFilePlanType != null && message.hasOwnProperty("maxFilePlanType")) + if (message.maxFilePlanType != null && message.hasOwnProperty('maxFilePlanType')) object.maxFilePlanType = message.maxFilePlanType; - if (message.allowUnlimitedLicenses != null && message.hasOwnProperty("allowUnlimitedLicenses")) + if (message.allowUnlimitedLicenses != null && message.hasOwnProperty('allowUnlimitedLicenses')) object.allowUnlimitedLicenses = message.allowUnlimitedLicenses; if (message.mcDefaults && message.mcDefaults.length) { object.mcDefaults = []; @@ -70562,16 +72941,15 @@ export const Enterprise = $root.Enterprise = (() => { */ MSPPermits.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.MSPPermits"; + return typeUrlPrefix + '/Enterprise.MSPPermits'; }; return MSPPermits; })(); - Enterprise.License = (function() { - + Enterprise.License = (function () { /** * Properties of a License. * @memberof Enterprise @@ -70612,8 +72990,7 @@ export const Enterprise = $root.Enterprise = (() => { this.addOns = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -70638,7 +73015,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.License * @instance */ - License.prototype.expiration = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + License.prototype.expiration = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * License licenseKeyId. @@ -70662,7 +73039,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.License * @instance */ - License.prototype.name = ""; + License.prototype.name = ''; /** * License enterpriseLicenseId. @@ -70670,7 +73047,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.License * @instance */ - License.prototype.enterpriseLicenseId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + License.prototype.enterpriseLicenseId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * License seatsAllocated. @@ -70710,7 +73087,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.License * @instance */ - License.prototype.maxBytes = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + License.prototype.maxBytes = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * License storageExpiration. @@ -70718,7 +73095,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.License * @instance */ - License.prototype.storageExpiration = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + License.prototype.storageExpiration = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * License licenseStatus. @@ -70726,7 +73103,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.License * @instance */ - License.prototype.licenseStatus = ""; + License.prototype.licenseStatus = ''; /** * License mspPool. @@ -70758,7 +73135,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.License * @instance */ - License.prototype.nextBillingDate = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + License.prototype.nextBillingDate = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * License hasMSPLegacyLog. @@ -70806,52 +73183,63 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ License.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.paid != null && Object.hasOwnProperty.call(message, "paid")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.paid); - if (message.numberOfSeats != null && Object.hasOwnProperty.call(message, "numberOfSeats")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.numberOfSeats); - if (message.expiration != null && Object.hasOwnProperty.call(message, "expiration")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.expiration); - if (message.licenseKeyId != null && Object.hasOwnProperty.call(message, "licenseKeyId")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.licenseKeyId); - if (message.productTypeId != null && Object.hasOwnProperty.call(message, "productTypeId")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.productTypeId); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.name); - if (message.enterpriseLicenseId != null && Object.hasOwnProperty.call(message, "enterpriseLicenseId")) - writer.uint32(/* id 7, wireType 0 =*/56).int64(message.enterpriseLicenseId); - if (message.seatsAllocated != null && Object.hasOwnProperty.call(message, "seatsAllocated")) - writer.uint32(/* id 8, wireType 0 =*/64).int32(message.seatsAllocated); - if (message.seatsPending != null && Object.hasOwnProperty.call(message, "seatsPending")) - writer.uint32(/* id 9, wireType 0 =*/72).int32(message.seatsPending); - if (message.tier != null && Object.hasOwnProperty.call(message, "tier")) - writer.uint32(/* id 10, wireType 0 =*/80).int32(message.tier); - if (message.filePlanTypeId != null && Object.hasOwnProperty.call(message, "filePlanTypeId")) - writer.uint32(/* id 11, wireType 0 =*/88).int32(message.filePlanTypeId); - if (message.maxBytes != null && Object.hasOwnProperty.call(message, "maxBytes")) - writer.uint32(/* id 12, wireType 0 =*/96).int64(message.maxBytes); - if (message.storageExpiration != null && Object.hasOwnProperty.call(message, "storageExpiration")) - writer.uint32(/* id 13, wireType 0 =*/104).int64(message.storageExpiration); - if (message.licenseStatus != null && Object.hasOwnProperty.call(message, "licenseStatus")) - writer.uint32(/* id 14, wireType 2 =*/114).string(message.licenseStatus); + if (!writer) writer = $Writer.create(); + if (message.paid != null && Object.hasOwnProperty.call(message, 'paid')) + writer.uint32(/* id 1, wireType 0 =*/ 8).bool(message.paid); + if (message.numberOfSeats != null && Object.hasOwnProperty.call(message, 'numberOfSeats')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int32(message.numberOfSeats); + if (message.expiration != null && Object.hasOwnProperty.call(message, 'expiration')) + writer.uint32(/* id 3, wireType 0 =*/ 24).int64(message.expiration); + if (message.licenseKeyId != null && Object.hasOwnProperty.call(message, 'licenseKeyId')) + writer.uint32(/* id 4, wireType 0 =*/ 32).int32(message.licenseKeyId); + if (message.productTypeId != null && Object.hasOwnProperty.call(message, 'productTypeId')) + writer.uint32(/* id 5, wireType 0 =*/ 40).int32(message.productTypeId); + if (message.name != null && Object.hasOwnProperty.call(message, 'name')) + writer.uint32(/* id 6, wireType 2 =*/ 50).string(message.name); + if (message.enterpriseLicenseId != null && Object.hasOwnProperty.call(message, 'enterpriseLicenseId')) + writer.uint32(/* id 7, wireType 0 =*/ 56).int64(message.enterpriseLicenseId); + if (message.seatsAllocated != null && Object.hasOwnProperty.call(message, 'seatsAllocated')) + writer.uint32(/* id 8, wireType 0 =*/ 64).int32(message.seatsAllocated); + if (message.seatsPending != null && Object.hasOwnProperty.call(message, 'seatsPending')) + writer.uint32(/* id 9, wireType 0 =*/ 72).int32(message.seatsPending); + if (message.tier != null && Object.hasOwnProperty.call(message, 'tier')) + writer.uint32(/* id 10, wireType 0 =*/ 80).int32(message.tier); + if (message.filePlanTypeId != null && Object.hasOwnProperty.call(message, 'filePlanTypeId')) + writer.uint32(/* id 11, wireType 0 =*/ 88).int32(message.filePlanTypeId); + if (message.maxBytes != null && Object.hasOwnProperty.call(message, 'maxBytes')) + writer.uint32(/* id 12, wireType 0 =*/ 96).int64(message.maxBytes); + if (message.storageExpiration != null && Object.hasOwnProperty.call(message, 'storageExpiration')) + writer.uint32(/* id 13, wireType 0 =*/ 104).int64(message.storageExpiration); + if (message.licenseStatus != null && Object.hasOwnProperty.call(message, 'licenseStatus')) + writer.uint32(/* id 14, wireType 2 =*/ 114).string(message.licenseStatus); if (message.mspPool != null && message.mspPool.length) for (let i = 0; i < message.mspPool.length; ++i) - $root.Enterprise.MSPPool.encode(message.mspPool[i], writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim(); - if (message.managedBy != null && Object.hasOwnProperty.call(message, "managedBy")) - $root.Enterprise.MSPContact.encode(message.managedBy, writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim(); + $root.Enterprise.MSPPool.encode( + message.mspPool[i], + writer.uint32(/* id 15, wireType 2 =*/ 122).fork() + ).ldelim(); + if (message.managedBy != null && Object.hasOwnProperty.call(message, 'managedBy')) + $root.Enterprise.MSPContact.encode( + message.managedBy, + writer.uint32(/* id 16, wireType 2 =*/ 130).fork() + ).ldelim(); if (message.addOns != null && message.addOns.length) for (let i = 0; i < message.addOns.length; ++i) - $root.Enterprise.LicenseAddOn.encode(message.addOns[i], writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim(); - if (message.nextBillingDate != null && Object.hasOwnProperty.call(message, "nextBillingDate")) - writer.uint32(/* id 18, wireType 0 =*/144).int64(message.nextBillingDate); - if (message.hasMSPLegacyLog != null && Object.hasOwnProperty.call(message, "hasMSPLegacyLog")) - writer.uint32(/* id 19, wireType 0 =*/152).bool(message.hasMSPLegacyLog); - if (message.mspPermits != null && Object.hasOwnProperty.call(message, "mspPermits")) - $root.Enterprise.MSPPermits.encode(message.mspPermits, writer.uint32(/* id 20, wireType 2 =*/162).fork()).ldelim(); - if (message.distributor != null && Object.hasOwnProperty.call(message, "distributor")) - writer.uint32(/* id 21, wireType 0 =*/168).bool(message.distributor); + $root.Enterprise.LicenseAddOn.encode( + message.addOns[i], + writer.uint32(/* id 17, wireType 2 =*/ 138).fork() + ).ldelim(); + if (message.nextBillingDate != null && Object.hasOwnProperty.call(message, 'nextBillingDate')) + writer.uint32(/* id 18, wireType 0 =*/ 144).int64(message.nextBillingDate); + if (message.hasMSPLegacyLog != null && Object.hasOwnProperty.call(message, 'hasMSPLegacyLog')) + writer.uint32(/* id 19, wireType 0 =*/ 152).bool(message.hasMSPLegacyLog); + if (message.mspPermits != null && Object.hasOwnProperty.call(message, 'mspPermits')) + $root.Enterprise.MSPPermits.encode( + message.mspPermits, + writer.uint32(/* id 20, wireType 2 =*/ 162).fork() + ).ldelim(); + if (message.distributor != null && Object.hasOwnProperty.call(message, 'distributor')) + writer.uint32(/* id 21, wireType 0 =*/ 168).bool(message.distributor); return writer; }; @@ -70880,103 +73268,101 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ License.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.License(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.License(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.paid = reader.bool(); break; } - case 2: { + case 2: { message.numberOfSeats = reader.int32(); break; } - case 3: { + case 3: { message.expiration = reader.int64(); break; } - case 4: { + case 4: { message.licenseKeyId = reader.int32(); break; } - case 5: { + case 5: { message.productTypeId = reader.int32(); break; } - case 6: { + case 6: { message.name = reader.string(); break; } - case 7: { + case 7: { message.enterpriseLicenseId = reader.int64(); break; } - case 8: { + case 8: { message.seatsAllocated = reader.int32(); break; } - case 9: { + case 9: { message.seatsPending = reader.int32(); break; } - case 10: { + case 10: { message.tier = reader.int32(); break; } - case 11: { + case 11: { message.filePlanTypeId = reader.int32(); break; } - case 12: { + case 12: { message.maxBytes = reader.int64(); break; } - case 13: { + case 13: { message.storageExpiration = reader.int64(); break; } - case 14: { + case 14: { message.licenseStatus = reader.string(); break; } - case 15: { - if (!(message.mspPool && message.mspPool.length)) - message.mspPool = []; + case 15: { + if (!(message.mspPool && message.mspPool.length)) message.mspPool = []; message.mspPool.push($root.Enterprise.MSPPool.decode(reader, reader.uint32())); break; } - case 16: { + case 16: { message.managedBy = $root.Enterprise.MSPContact.decode(reader, reader.uint32()); break; } - case 17: { - if (!(message.addOns && message.addOns.length)) - message.addOns = []; + case 17: { + if (!(message.addOns && message.addOns.length)) message.addOns = []; message.addOns.push($root.Enterprise.LicenseAddOn.decode(reader, reader.uint32())); break; } - case 18: { + case 18: { message.nextBillingDate = reader.int64(); break; } - case 19: { + case 19: { message.hasMSPLegacyLog = reader.bool(); break; } - case 20: { + case 20: { message.mspPermits = $root.Enterprise.MSPPermits.decode(reader, reader.uint32()); break; } - case 21: { + case 21: { message.distributor = reader.bool(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -70993,8 +73379,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ License.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -71007,87 +73392,103 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ License.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.paid != null && message.hasOwnProperty("paid")) - if (typeof message.paid !== "boolean") - return "paid: boolean expected"; - if (message.numberOfSeats != null && message.hasOwnProperty("numberOfSeats")) - if (!$util.isInteger(message.numberOfSeats)) - return "numberOfSeats: integer expected"; - if (message.expiration != null && message.hasOwnProperty("expiration")) - if (!$util.isInteger(message.expiration) && !(message.expiration && $util.isInteger(message.expiration.low) && $util.isInteger(message.expiration.high))) - return "expiration: integer|Long expected"; - if (message.licenseKeyId != null && message.hasOwnProperty("licenseKeyId")) - if (!$util.isInteger(message.licenseKeyId)) - return "licenseKeyId: integer expected"; - if (message.productTypeId != null && message.hasOwnProperty("productTypeId")) - if (!$util.isInteger(message.productTypeId)) - return "productTypeId: integer expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.enterpriseLicenseId != null && message.hasOwnProperty("enterpriseLicenseId")) - if (!$util.isInteger(message.enterpriseLicenseId) && !(message.enterpriseLicenseId && $util.isInteger(message.enterpriseLicenseId.low) && $util.isInteger(message.enterpriseLicenseId.high))) - return "enterpriseLicenseId: integer|Long expected"; - if (message.seatsAllocated != null && message.hasOwnProperty("seatsAllocated")) - if (!$util.isInteger(message.seatsAllocated)) - return "seatsAllocated: integer expected"; - if (message.seatsPending != null && message.hasOwnProperty("seatsPending")) - if (!$util.isInteger(message.seatsPending)) - return "seatsPending: integer expected"; - if (message.tier != null && message.hasOwnProperty("tier")) - if (!$util.isInteger(message.tier)) - return "tier: integer expected"; - if (message.filePlanTypeId != null && message.hasOwnProperty("filePlanTypeId")) - if (!$util.isInteger(message.filePlanTypeId)) - return "filePlanTypeId: integer expected"; - if (message.maxBytes != null && message.hasOwnProperty("maxBytes")) - if (!$util.isInteger(message.maxBytes) && !(message.maxBytes && $util.isInteger(message.maxBytes.low) && $util.isInteger(message.maxBytes.high))) - return "maxBytes: integer|Long expected"; - if (message.storageExpiration != null && message.hasOwnProperty("storageExpiration")) - if (!$util.isInteger(message.storageExpiration) && !(message.storageExpiration && $util.isInteger(message.storageExpiration.low) && $util.isInteger(message.storageExpiration.high))) - return "storageExpiration: integer|Long expected"; - if (message.licenseStatus != null && message.hasOwnProperty("licenseStatus")) - if (!$util.isString(message.licenseStatus)) - return "licenseStatus: string expected"; - if (message.mspPool != null && message.hasOwnProperty("mspPool")) { - if (!Array.isArray(message.mspPool)) - return "mspPool: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.paid != null && message.hasOwnProperty('paid')) + if (typeof message.paid !== 'boolean') return 'paid: boolean expected'; + if (message.numberOfSeats != null && message.hasOwnProperty('numberOfSeats')) + if (!$util.isInteger(message.numberOfSeats)) return 'numberOfSeats: integer expected'; + if (message.expiration != null && message.hasOwnProperty('expiration')) + if ( + !$util.isInteger(message.expiration) && + !( + message.expiration && + $util.isInteger(message.expiration.low) && + $util.isInteger(message.expiration.high) + ) + ) + return 'expiration: integer|Long expected'; + if (message.licenseKeyId != null && message.hasOwnProperty('licenseKeyId')) + if (!$util.isInteger(message.licenseKeyId)) return 'licenseKeyId: integer expected'; + if (message.productTypeId != null && message.hasOwnProperty('productTypeId')) + if (!$util.isInteger(message.productTypeId)) return 'productTypeId: integer expected'; + if (message.name != null && message.hasOwnProperty('name')) + if (!$util.isString(message.name)) return 'name: string expected'; + if (message.enterpriseLicenseId != null && message.hasOwnProperty('enterpriseLicenseId')) + if ( + !$util.isInteger(message.enterpriseLicenseId) && + !( + message.enterpriseLicenseId && + $util.isInteger(message.enterpriseLicenseId.low) && + $util.isInteger(message.enterpriseLicenseId.high) + ) + ) + return 'enterpriseLicenseId: integer|Long expected'; + if (message.seatsAllocated != null && message.hasOwnProperty('seatsAllocated')) + if (!$util.isInteger(message.seatsAllocated)) return 'seatsAllocated: integer expected'; + if (message.seatsPending != null && message.hasOwnProperty('seatsPending')) + if (!$util.isInteger(message.seatsPending)) return 'seatsPending: integer expected'; + if (message.tier != null && message.hasOwnProperty('tier')) + if (!$util.isInteger(message.tier)) return 'tier: integer expected'; + if (message.filePlanTypeId != null && message.hasOwnProperty('filePlanTypeId')) + if (!$util.isInteger(message.filePlanTypeId)) return 'filePlanTypeId: integer expected'; + if (message.maxBytes != null && message.hasOwnProperty('maxBytes')) + if ( + !$util.isInteger(message.maxBytes) && + !( + message.maxBytes && + $util.isInteger(message.maxBytes.low) && + $util.isInteger(message.maxBytes.high) + ) + ) + return 'maxBytes: integer|Long expected'; + if (message.storageExpiration != null && message.hasOwnProperty('storageExpiration')) + if ( + !$util.isInteger(message.storageExpiration) && + !( + message.storageExpiration && + $util.isInteger(message.storageExpiration.low) && + $util.isInteger(message.storageExpiration.high) + ) + ) + return 'storageExpiration: integer|Long expected'; + if (message.licenseStatus != null && message.hasOwnProperty('licenseStatus')) + if (!$util.isString(message.licenseStatus)) return 'licenseStatus: string expected'; + if (message.mspPool != null && message.hasOwnProperty('mspPool')) { + if (!Array.isArray(message.mspPool)) return 'mspPool: array expected'; for (let i = 0; i < message.mspPool.length; ++i) { let error = $root.Enterprise.MSPPool.verify(message.mspPool[i]); - if (error) - return "mspPool." + error; + if (error) return 'mspPool.' + error; } } - if (message.managedBy != null && message.hasOwnProperty("managedBy")) { + if (message.managedBy != null && message.hasOwnProperty('managedBy')) { let error = $root.Enterprise.MSPContact.verify(message.managedBy); - if (error) - return "managedBy." + error; + if (error) return 'managedBy.' + error; } - if (message.addOns != null && message.hasOwnProperty("addOns")) { - if (!Array.isArray(message.addOns)) - return "addOns: array expected"; + if (message.addOns != null && message.hasOwnProperty('addOns')) { + if (!Array.isArray(message.addOns)) return 'addOns: array expected'; for (let i = 0; i < message.addOns.length; ++i) { let error = $root.Enterprise.LicenseAddOn.verify(message.addOns[i]); - if (error) - return "addOns." + error; - } - } - if (message.nextBillingDate != null && message.hasOwnProperty("nextBillingDate")) - if (!$util.isInteger(message.nextBillingDate) && !(message.nextBillingDate && $util.isInteger(message.nextBillingDate.low) && $util.isInteger(message.nextBillingDate.high))) - return "nextBillingDate: integer|Long expected"; - if (message.hasMSPLegacyLog != null && message.hasOwnProperty("hasMSPLegacyLog")) - if (typeof message.hasMSPLegacyLog !== "boolean") - return "hasMSPLegacyLog: boolean expected"; - if (message.mspPermits != null && message.hasOwnProperty("mspPermits")) { + if (error) return 'addOns.' + error; + } + } + if (message.nextBillingDate != null && message.hasOwnProperty('nextBillingDate')) + if ( + !$util.isInteger(message.nextBillingDate) && + !( + message.nextBillingDate && + $util.isInteger(message.nextBillingDate.low) && + $util.isInteger(message.nextBillingDate.high) + ) + ) + return 'nextBillingDate: integer|Long expected'; + if (message.hasMSPLegacyLog != null && message.hasOwnProperty('hasMSPLegacyLog')) + if (typeof message.hasMSPLegacyLog !== 'boolean') return 'hasMSPLegacyLog: boolean expected'; + if (message.mspPermits != null && message.hasOwnProperty('mspPermits')) { let error = $root.Enterprise.MSPPermits.verify(message.mspPermits); - if (error) - return "mspPermits." + error; + if (error) return 'mspPermits.' + error; } - if (message.distributor != null && message.hasOwnProperty("distributor")) - if (typeof message.distributor !== "boolean") - return "distributor: boolean expected"; + if (message.distributor != null && message.hasOwnProperty('distributor')) + if (typeof message.distributor !== 'boolean') return 'distributor: boolean expected'; return null; }; @@ -71100,108 +73501,101 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.License} License */ License.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.License) - return object; + if (object instanceof $root.Enterprise.License) return object; let message = new $root.Enterprise.License(); - if (object.paid != null) - message.paid = Boolean(object.paid); - if (object.numberOfSeats != null) - message.numberOfSeats = object.numberOfSeats | 0; + if (object.paid != null) message.paid = Boolean(object.paid); + if (object.numberOfSeats != null) message.numberOfSeats = object.numberOfSeats | 0; if (object.expiration != null) - if ($util.Long) - (message.expiration = $util.Long.fromValue(object.expiration)).unsigned = false; - else if (typeof object.expiration === "string") - message.expiration = parseInt(object.expiration, 10); - else if (typeof object.expiration === "number") - message.expiration = object.expiration; - else if (typeof object.expiration === "object") - message.expiration = new $util.LongBits(object.expiration.low >>> 0, object.expiration.high >>> 0).toNumber(); - if (object.licenseKeyId != null) - message.licenseKeyId = object.licenseKeyId | 0; - if (object.productTypeId != null) - message.productTypeId = object.productTypeId | 0; - if (object.name != null) - message.name = String(object.name); + if ($util.Long) (message.expiration = $util.Long.fromValue(object.expiration)).unsigned = false; + else if (typeof object.expiration === 'string') message.expiration = parseInt(object.expiration, 10); + else if (typeof object.expiration === 'number') message.expiration = object.expiration; + else if (typeof object.expiration === 'object') + message.expiration = new $util.LongBits( + object.expiration.low >>> 0, + object.expiration.high >>> 0 + ).toNumber(); + if (object.licenseKeyId != null) message.licenseKeyId = object.licenseKeyId | 0; + if (object.productTypeId != null) message.productTypeId = object.productTypeId | 0; + if (object.name != null) message.name = String(object.name); if (object.enterpriseLicenseId != null) if ($util.Long) (message.enterpriseLicenseId = $util.Long.fromValue(object.enterpriseLicenseId)).unsigned = false; - else if (typeof object.enterpriseLicenseId === "string") + else if (typeof object.enterpriseLicenseId === 'string') message.enterpriseLicenseId = parseInt(object.enterpriseLicenseId, 10); - else if (typeof object.enterpriseLicenseId === "number") + else if (typeof object.enterpriseLicenseId === 'number') message.enterpriseLicenseId = object.enterpriseLicenseId; - else if (typeof object.enterpriseLicenseId === "object") - message.enterpriseLicenseId = new $util.LongBits(object.enterpriseLicenseId.low >>> 0, object.enterpriseLicenseId.high >>> 0).toNumber(); - if (object.seatsAllocated != null) - message.seatsAllocated = object.seatsAllocated | 0; - if (object.seatsPending != null) - message.seatsPending = object.seatsPending | 0; - if (object.tier != null) - message.tier = object.tier | 0; - if (object.filePlanTypeId != null) - message.filePlanTypeId = object.filePlanTypeId | 0; + else if (typeof object.enterpriseLicenseId === 'object') + message.enterpriseLicenseId = new $util.LongBits( + object.enterpriseLicenseId.low >>> 0, + object.enterpriseLicenseId.high >>> 0 + ).toNumber(); + if (object.seatsAllocated != null) message.seatsAllocated = object.seatsAllocated | 0; + if (object.seatsPending != null) message.seatsPending = object.seatsPending | 0; + if (object.tier != null) message.tier = object.tier | 0; + if (object.filePlanTypeId != null) message.filePlanTypeId = object.filePlanTypeId | 0; if (object.maxBytes != null) - if ($util.Long) - (message.maxBytes = $util.Long.fromValue(object.maxBytes)).unsigned = false; - else if (typeof object.maxBytes === "string") - message.maxBytes = parseInt(object.maxBytes, 10); - else if (typeof object.maxBytes === "number") - message.maxBytes = object.maxBytes; - else if (typeof object.maxBytes === "object") - message.maxBytes = new $util.LongBits(object.maxBytes.low >>> 0, object.maxBytes.high >>> 0).toNumber(); + if ($util.Long) (message.maxBytes = $util.Long.fromValue(object.maxBytes)).unsigned = false; + else if (typeof object.maxBytes === 'string') message.maxBytes = parseInt(object.maxBytes, 10); + else if (typeof object.maxBytes === 'number') message.maxBytes = object.maxBytes; + else if (typeof object.maxBytes === 'object') + message.maxBytes = new $util.LongBits( + object.maxBytes.low >>> 0, + object.maxBytes.high >>> 0 + ).toNumber(); if (object.storageExpiration != null) if ($util.Long) (message.storageExpiration = $util.Long.fromValue(object.storageExpiration)).unsigned = false; - else if (typeof object.storageExpiration === "string") + else if (typeof object.storageExpiration === 'string') message.storageExpiration = parseInt(object.storageExpiration, 10); - else if (typeof object.storageExpiration === "number") + else if (typeof object.storageExpiration === 'number') message.storageExpiration = object.storageExpiration; - else if (typeof object.storageExpiration === "object") - message.storageExpiration = new $util.LongBits(object.storageExpiration.low >>> 0, object.storageExpiration.high >>> 0).toNumber(); - if (object.licenseStatus != null) - message.licenseStatus = String(object.licenseStatus); + else if (typeof object.storageExpiration === 'object') + message.storageExpiration = new $util.LongBits( + object.storageExpiration.low >>> 0, + object.storageExpiration.high >>> 0 + ).toNumber(); + if (object.licenseStatus != null) message.licenseStatus = String(object.licenseStatus); if (object.mspPool) { - if (!Array.isArray(object.mspPool)) - throw TypeError(".Enterprise.License.mspPool: array expected"); + if (!Array.isArray(object.mspPool)) throw TypeError('.Enterprise.License.mspPool: array expected'); message.mspPool = []; for (let i = 0; i < object.mspPool.length; ++i) { - if (typeof object.mspPool[i] !== "object") - throw TypeError(".Enterprise.License.mspPool: object expected"); + if (typeof object.mspPool[i] !== 'object') + throw TypeError('.Enterprise.License.mspPool: object expected'); message.mspPool[i] = $root.Enterprise.MSPPool.fromObject(object.mspPool[i]); } } if (object.managedBy != null) { - if (typeof object.managedBy !== "object") - throw TypeError(".Enterprise.License.managedBy: object expected"); + if (typeof object.managedBy !== 'object') + throw TypeError('.Enterprise.License.managedBy: object expected'); message.managedBy = $root.Enterprise.MSPContact.fromObject(object.managedBy); } if (object.addOns) { - if (!Array.isArray(object.addOns)) - throw TypeError(".Enterprise.License.addOns: array expected"); + if (!Array.isArray(object.addOns)) throw TypeError('.Enterprise.License.addOns: array expected'); message.addOns = []; for (let i = 0; i < object.addOns.length; ++i) { - if (typeof object.addOns[i] !== "object") - throw TypeError(".Enterprise.License.addOns: object expected"); + if (typeof object.addOns[i] !== 'object') + throw TypeError('.Enterprise.License.addOns: object expected'); message.addOns[i] = $root.Enterprise.LicenseAddOn.fromObject(object.addOns[i]); } } if (object.nextBillingDate != null) if ($util.Long) (message.nextBillingDate = $util.Long.fromValue(object.nextBillingDate)).unsigned = false; - else if (typeof object.nextBillingDate === "string") + else if (typeof object.nextBillingDate === 'string') message.nextBillingDate = parseInt(object.nextBillingDate, 10); - else if (typeof object.nextBillingDate === "number") - message.nextBillingDate = object.nextBillingDate; - else if (typeof object.nextBillingDate === "object") - message.nextBillingDate = new $util.LongBits(object.nextBillingDate.low >>> 0, object.nextBillingDate.high >>> 0).toNumber(); - if (object.hasMSPLegacyLog != null) - message.hasMSPLegacyLog = Boolean(object.hasMSPLegacyLog); + else if (typeof object.nextBillingDate === 'number') message.nextBillingDate = object.nextBillingDate; + else if (typeof object.nextBillingDate === 'object') + message.nextBillingDate = new $util.LongBits( + object.nextBillingDate.low >>> 0, + object.nextBillingDate.high >>> 0 + ).toNumber(); + if (object.hasMSPLegacyLog != null) message.hasMSPLegacyLog = Boolean(object.hasMSPLegacyLog); if (object.mspPermits != null) { - if (typeof object.mspPermits !== "object") - throw TypeError(".Enterprise.License.mspPermits: object expected"); + if (typeof object.mspPermits !== 'object') + throw TypeError('.Enterprise.License.mspPermits: object expected'); message.mspPermits = $root.Enterprise.MSPPermits.fromObject(object.mspPermits); } - if (object.distributor != null) - message.distributor = Boolean(object.distributor); + if (object.distributor != null) message.distributor = Boolean(object.distributor); return message; }; @@ -71215,8 +73609,7 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ License.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.arrays || options.defaults) { object.mspPool = []; @@ -71227,104 +73620,141 @@ export const Enterprise = $root.Enterprise = (() => { object.numberOfSeats = 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.expiration = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.expiration = options.longs === String ? "0" : 0; + object.expiration = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.expiration = options.longs === String ? '0' : 0; object.licenseKeyId = 0; object.productTypeId = 0; - object.name = ""; + object.name = ''; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.enterpriseLicenseId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.enterpriseLicenseId = options.longs === String ? "0" : 0; + object.enterpriseLicenseId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.enterpriseLicenseId = options.longs === String ? '0' : 0; object.seatsAllocated = 0; object.seatsPending = 0; object.tier = 0; object.filePlanTypeId = 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.maxBytes = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.maxBytes = options.longs === String ? "0" : 0; + object.maxBytes = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.maxBytes = options.longs === String ? '0' : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.storageExpiration = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.storageExpiration = options.longs === String ? "0" : 0; - object.licenseStatus = ""; + object.storageExpiration = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.storageExpiration = options.longs === String ? '0' : 0; + object.licenseStatus = ''; object.managedBy = null; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.nextBillingDate = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.nextBillingDate = options.longs === String ? "0" : 0; + object.nextBillingDate = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.nextBillingDate = options.longs === String ? '0' : 0; object.hasMSPLegacyLog = false; object.mspPermits = null; object.distributor = false; } - if (message.paid != null && message.hasOwnProperty("paid")) - object.paid = message.paid; - if (message.numberOfSeats != null && message.hasOwnProperty("numberOfSeats")) + if (message.paid != null && message.hasOwnProperty('paid')) object.paid = message.paid; + if (message.numberOfSeats != null && message.hasOwnProperty('numberOfSeats')) object.numberOfSeats = message.numberOfSeats; - if (message.expiration != null && message.hasOwnProperty("expiration")) - if (typeof message.expiration === "number") + if (message.expiration != null && message.hasOwnProperty('expiration')) + if (typeof message.expiration === 'number') object.expiration = options.longs === String ? String(message.expiration) : message.expiration; else - object.expiration = options.longs === String ? $util.Long.prototype.toString.call(message.expiration) : options.longs === Number ? new $util.LongBits(message.expiration.low >>> 0, message.expiration.high >>> 0).toNumber() : message.expiration; - if (message.licenseKeyId != null && message.hasOwnProperty("licenseKeyId")) + object.expiration = + options.longs === String + ? $util.Long.prototype.toString.call(message.expiration) + : options.longs === Number + ? new $util.LongBits( + message.expiration.low >>> 0, + message.expiration.high >>> 0 + ).toNumber() + : message.expiration; + if (message.licenseKeyId != null && message.hasOwnProperty('licenseKeyId')) object.licenseKeyId = message.licenseKeyId; - if (message.productTypeId != null && message.hasOwnProperty("productTypeId")) + if (message.productTypeId != null && message.hasOwnProperty('productTypeId')) object.productTypeId = message.productTypeId; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.enterpriseLicenseId != null && message.hasOwnProperty("enterpriseLicenseId")) - if (typeof message.enterpriseLicenseId === "number") - object.enterpriseLicenseId = options.longs === String ? String(message.enterpriseLicenseId) : message.enterpriseLicenseId; + if (message.name != null && message.hasOwnProperty('name')) object.name = message.name; + if (message.enterpriseLicenseId != null && message.hasOwnProperty('enterpriseLicenseId')) + if (typeof message.enterpriseLicenseId === 'number') + object.enterpriseLicenseId = + options.longs === String ? String(message.enterpriseLicenseId) : message.enterpriseLicenseId; else - object.enterpriseLicenseId = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseLicenseId) : options.longs === Number ? new $util.LongBits(message.enterpriseLicenseId.low >>> 0, message.enterpriseLicenseId.high >>> 0).toNumber() : message.enterpriseLicenseId; - if (message.seatsAllocated != null && message.hasOwnProperty("seatsAllocated")) + object.enterpriseLicenseId = + options.longs === String + ? $util.Long.prototype.toString.call(message.enterpriseLicenseId) + : options.longs === Number + ? new $util.LongBits( + message.enterpriseLicenseId.low >>> 0, + message.enterpriseLicenseId.high >>> 0 + ).toNumber() + : message.enterpriseLicenseId; + if (message.seatsAllocated != null && message.hasOwnProperty('seatsAllocated')) object.seatsAllocated = message.seatsAllocated; - if (message.seatsPending != null && message.hasOwnProperty("seatsPending")) + if (message.seatsPending != null && message.hasOwnProperty('seatsPending')) object.seatsPending = message.seatsPending; - if (message.tier != null && message.hasOwnProperty("tier")) - object.tier = message.tier; - if (message.filePlanTypeId != null && message.hasOwnProperty("filePlanTypeId")) + if (message.tier != null && message.hasOwnProperty('tier')) object.tier = message.tier; + if (message.filePlanTypeId != null && message.hasOwnProperty('filePlanTypeId')) object.filePlanTypeId = message.filePlanTypeId; - if (message.maxBytes != null && message.hasOwnProperty("maxBytes")) - if (typeof message.maxBytes === "number") + if (message.maxBytes != null && message.hasOwnProperty('maxBytes')) + if (typeof message.maxBytes === 'number') object.maxBytes = options.longs === String ? String(message.maxBytes) : message.maxBytes; else - object.maxBytes = options.longs === String ? $util.Long.prototype.toString.call(message.maxBytes) : options.longs === Number ? new $util.LongBits(message.maxBytes.low >>> 0, message.maxBytes.high >>> 0).toNumber() : message.maxBytes; - if (message.storageExpiration != null && message.hasOwnProperty("storageExpiration")) - if (typeof message.storageExpiration === "number") - object.storageExpiration = options.longs === String ? String(message.storageExpiration) : message.storageExpiration; + object.maxBytes = + options.longs === String + ? $util.Long.prototype.toString.call(message.maxBytes) + : options.longs === Number + ? new $util.LongBits(message.maxBytes.low >>> 0, message.maxBytes.high >>> 0).toNumber() + : message.maxBytes; + if (message.storageExpiration != null && message.hasOwnProperty('storageExpiration')) + if (typeof message.storageExpiration === 'number') + object.storageExpiration = + options.longs === String ? String(message.storageExpiration) : message.storageExpiration; else - object.storageExpiration = options.longs === String ? $util.Long.prototype.toString.call(message.storageExpiration) : options.longs === Number ? new $util.LongBits(message.storageExpiration.low >>> 0, message.storageExpiration.high >>> 0).toNumber() : message.storageExpiration; - if (message.licenseStatus != null && message.hasOwnProperty("licenseStatus")) + object.storageExpiration = + options.longs === String + ? $util.Long.prototype.toString.call(message.storageExpiration) + : options.longs === Number + ? new $util.LongBits( + message.storageExpiration.low >>> 0, + message.storageExpiration.high >>> 0 + ).toNumber() + : message.storageExpiration; + if (message.licenseStatus != null && message.hasOwnProperty('licenseStatus')) object.licenseStatus = message.licenseStatus; if (message.mspPool && message.mspPool.length) { object.mspPool = []; for (let j = 0; j < message.mspPool.length; ++j) object.mspPool[j] = $root.Enterprise.MSPPool.toObject(message.mspPool[j], options); } - if (message.managedBy != null && message.hasOwnProperty("managedBy")) + if (message.managedBy != null && message.hasOwnProperty('managedBy')) object.managedBy = $root.Enterprise.MSPContact.toObject(message.managedBy, options); if (message.addOns && message.addOns.length) { object.addOns = []; for (let j = 0; j < message.addOns.length; ++j) object.addOns[j] = $root.Enterprise.LicenseAddOn.toObject(message.addOns[j], options); } - if (message.nextBillingDate != null && message.hasOwnProperty("nextBillingDate")) - if (typeof message.nextBillingDate === "number") - object.nextBillingDate = options.longs === String ? String(message.nextBillingDate) : message.nextBillingDate; + if (message.nextBillingDate != null && message.hasOwnProperty('nextBillingDate')) + if (typeof message.nextBillingDate === 'number') + object.nextBillingDate = + options.longs === String ? String(message.nextBillingDate) : message.nextBillingDate; else - object.nextBillingDate = options.longs === String ? $util.Long.prototype.toString.call(message.nextBillingDate) : options.longs === Number ? new $util.LongBits(message.nextBillingDate.low >>> 0, message.nextBillingDate.high >>> 0).toNumber() : message.nextBillingDate; - if (message.hasMSPLegacyLog != null && message.hasOwnProperty("hasMSPLegacyLog")) + object.nextBillingDate = + options.longs === String + ? $util.Long.prototype.toString.call(message.nextBillingDate) + : options.longs === Number + ? new $util.LongBits( + message.nextBillingDate.low >>> 0, + message.nextBillingDate.high >>> 0 + ).toNumber() + : message.nextBillingDate; + if (message.hasMSPLegacyLog != null && message.hasOwnProperty('hasMSPLegacyLog')) object.hasMSPLegacyLog = message.hasMSPLegacyLog; - if (message.mspPermits != null && message.hasOwnProperty("mspPermits")) + if (message.mspPermits != null && message.hasOwnProperty('mspPermits')) object.mspPermits = $root.Enterprise.MSPPermits.toObject(message.mspPermits, options); - if (message.distributor != null && message.hasOwnProperty("distributor")) + if (message.distributor != null && message.hasOwnProperty('distributor')) object.distributor = message.distributor; return object; }; @@ -71350,16 +73780,15 @@ export const Enterprise = $root.Enterprise = (() => { */ License.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.License"; + return typeUrlPrefix + '/Enterprise.License'; }; return License; })(); - Enterprise.Bridge = (function() { - + Enterprise.Bridge = (function () { /** * Properties of a Bridge. * @memberof Enterprise @@ -71382,8 +73811,7 @@ export const Enterprise = $root.Enterprise = (() => { function Bridge(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -71392,7 +73820,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.Bridge * @instance */ - Bridge.prototype.bridgeId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + Bridge.prototype.bridgeId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * Bridge nodeId. @@ -71400,7 +73828,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.Bridge * @instance */ - Bridge.prototype.nodeId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + Bridge.prototype.nodeId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * Bridge wanIpEnforcement. @@ -71408,7 +73836,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.Bridge * @instance */ - Bridge.prototype.wanIpEnforcement = ""; + Bridge.prototype.wanIpEnforcement = ''; /** * Bridge lanIpEnforcement. @@ -71416,7 +73844,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.Bridge * @instance */ - Bridge.prototype.lanIpEnforcement = ""; + Bridge.prototype.lanIpEnforcement = ''; /** * Bridge status. @@ -71424,7 +73852,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.Bridge * @instance */ - Bridge.prototype.status = ""; + Bridge.prototype.status = ''; /** * Creates a new Bridge instance using the specified properties. @@ -71448,18 +73876,17 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ Bridge.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.bridgeId != null && Object.hasOwnProperty.call(message, "bridgeId")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.bridgeId); - if (message.nodeId != null && Object.hasOwnProperty.call(message, "nodeId")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.nodeId); - if (message.wanIpEnforcement != null && Object.hasOwnProperty.call(message, "wanIpEnforcement")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.wanIpEnforcement); - if (message.lanIpEnforcement != null && Object.hasOwnProperty.call(message, "lanIpEnforcement")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.lanIpEnforcement); - if (message.status != null && Object.hasOwnProperty.call(message, "status")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.status); + if (!writer) writer = $Writer.create(); + if (message.bridgeId != null && Object.hasOwnProperty.call(message, 'bridgeId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int64(message.bridgeId); + if (message.nodeId != null && Object.hasOwnProperty.call(message, 'nodeId')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int64(message.nodeId); + if (message.wanIpEnforcement != null && Object.hasOwnProperty.call(message, 'wanIpEnforcement')) + writer.uint32(/* id 3, wireType 2 =*/ 26).string(message.wanIpEnforcement); + if (message.lanIpEnforcement != null && Object.hasOwnProperty.call(message, 'lanIpEnforcement')) + writer.uint32(/* id 4, wireType 2 =*/ 34).string(message.lanIpEnforcement); + if (message.status != null && Object.hasOwnProperty.call(message, 'status')) + writer.uint32(/* id 5, wireType 2 =*/ 42).string(message.status); return writer; }; @@ -71488,35 +73915,35 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ Bridge.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.Bridge(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.Bridge(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.bridgeId = reader.int64(); break; } - case 2: { + case 2: { message.nodeId = reader.int64(); break; } - case 3: { + case 3: { message.wanIpEnforcement = reader.string(); break; } - case 4: { + case 4: { message.lanIpEnforcement = reader.string(); break; } - case 5: { + case 5: { message.status = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -71533,8 +73960,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ Bridge.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -71547,23 +73973,29 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ Bridge.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.bridgeId != null && message.hasOwnProperty("bridgeId")) - if (!$util.isInteger(message.bridgeId) && !(message.bridgeId && $util.isInteger(message.bridgeId.low) && $util.isInteger(message.bridgeId.high))) - return "bridgeId: integer|Long expected"; - if (message.nodeId != null && message.hasOwnProperty("nodeId")) - if (!$util.isInteger(message.nodeId) && !(message.nodeId && $util.isInteger(message.nodeId.low) && $util.isInteger(message.nodeId.high))) - return "nodeId: integer|Long expected"; - if (message.wanIpEnforcement != null && message.hasOwnProperty("wanIpEnforcement")) - if (!$util.isString(message.wanIpEnforcement)) - return "wanIpEnforcement: string expected"; - if (message.lanIpEnforcement != null && message.hasOwnProperty("lanIpEnforcement")) - if (!$util.isString(message.lanIpEnforcement)) - return "lanIpEnforcement: string expected"; - if (message.status != null && message.hasOwnProperty("status")) - if (!$util.isString(message.status)) - return "status: string expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.bridgeId != null && message.hasOwnProperty('bridgeId')) + if ( + !$util.isInteger(message.bridgeId) && + !( + message.bridgeId && + $util.isInteger(message.bridgeId.low) && + $util.isInteger(message.bridgeId.high) + ) + ) + return 'bridgeId: integer|Long expected'; + if (message.nodeId != null && message.hasOwnProperty('nodeId')) + if ( + !$util.isInteger(message.nodeId) && + !(message.nodeId && $util.isInteger(message.nodeId.low) && $util.isInteger(message.nodeId.high)) + ) + return 'nodeId: integer|Long expected'; + if (message.wanIpEnforcement != null && message.hasOwnProperty('wanIpEnforcement')) + if (!$util.isString(message.wanIpEnforcement)) return 'wanIpEnforcement: string expected'; + if (message.lanIpEnforcement != null && message.hasOwnProperty('lanIpEnforcement')) + if (!$util.isString(message.lanIpEnforcement)) return 'lanIpEnforcement: string expected'; + if (message.status != null && message.hasOwnProperty('status')) + if (!$util.isString(message.status)) return 'status: string expected'; return null; }; @@ -71576,33 +74008,26 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.Bridge} Bridge */ Bridge.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.Bridge) - return object; + if (object instanceof $root.Enterprise.Bridge) return object; let message = new $root.Enterprise.Bridge(); if (object.bridgeId != null) - if ($util.Long) - (message.bridgeId = $util.Long.fromValue(object.bridgeId)).unsigned = false; - else if (typeof object.bridgeId === "string") - message.bridgeId = parseInt(object.bridgeId, 10); - else if (typeof object.bridgeId === "number") - message.bridgeId = object.bridgeId; - else if (typeof object.bridgeId === "object") - message.bridgeId = new $util.LongBits(object.bridgeId.low >>> 0, object.bridgeId.high >>> 0).toNumber(); + if ($util.Long) (message.bridgeId = $util.Long.fromValue(object.bridgeId)).unsigned = false; + else if (typeof object.bridgeId === 'string') message.bridgeId = parseInt(object.bridgeId, 10); + else if (typeof object.bridgeId === 'number') message.bridgeId = object.bridgeId; + else if (typeof object.bridgeId === 'object') + message.bridgeId = new $util.LongBits( + object.bridgeId.low >>> 0, + object.bridgeId.high >>> 0 + ).toNumber(); if (object.nodeId != null) - if ($util.Long) - (message.nodeId = $util.Long.fromValue(object.nodeId)).unsigned = false; - else if (typeof object.nodeId === "string") - message.nodeId = parseInt(object.nodeId, 10); - else if (typeof object.nodeId === "number") - message.nodeId = object.nodeId; - else if (typeof object.nodeId === "object") + if ($util.Long) (message.nodeId = $util.Long.fromValue(object.nodeId)).unsigned = false; + else if (typeof object.nodeId === 'string') message.nodeId = parseInt(object.nodeId, 10); + else if (typeof object.nodeId === 'number') message.nodeId = object.nodeId; + else if (typeof object.nodeId === 'object') message.nodeId = new $util.LongBits(object.nodeId.low >>> 0, object.nodeId.high >>> 0).toNumber(); - if (object.wanIpEnforcement != null) - message.wanIpEnforcement = String(object.wanIpEnforcement); - if (object.lanIpEnforcement != null) - message.lanIpEnforcement = String(object.lanIpEnforcement); - if (object.status != null) - message.status = String(object.status); + if (object.wanIpEnforcement != null) message.wanIpEnforcement = String(object.wanIpEnforcement); + if (object.lanIpEnforcement != null) message.lanIpEnforcement = String(object.lanIpEnforcement); + if (object.status != null) message.status = String(object.status); return message; }; @@ -71616,40 +74041,48 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ Bridge.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.bridgeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.bridgeId = options.longs === String ? "0" : 0; + object.bridgeId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.bridgeId = options.longs === String ? '0' : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.nodeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.nodeId = options.longs === String ? "0" : 0; - object.wanIpEnforcement = ""; - object.lanIpEnforcement = ""; - object.status = ""; - } - if (message.bridgeId != null && message.hasOwnProperty("bridgeId")) - if (typeof message.bridgeId === "number") + object.nodeId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.nodeId = options.longs === String ? '0' : 0; + object.wanIpEnforcement = ''; + object.lanIpEnforcement = ''; + object.status = ''; + } + if (message.bridgeId != null && message.hasOwnProperty('bridgeId')) + if (typeof message.bridgeId === 'number') object.bridgeId = options.longs === String ? String(message.bridgeId) : message.bridgeId; else - object.bridgeId = options.longs === String ? $util.Long.prototype.toString.call(message.bridgeId) : options.longs === Number ? new $util.LongBits(message.bridgeId.low >>> 0, message.bridgeId.high >>> 0).toNumber() : message.bridgeId; - if (message.nodeId != null && message.hasOwnProperty("nodeId")) - if (typeof message.nodeId === "number") + object.bridgeId = + options.longs === String + ? $util.Long.prototype.toString.call(message.bridgeId) + : options.longs === Number + ? new $util.LongBits(message.bridgeId.low >>> 0, message.bridgeId.high >>> 0).toNumber() + : message.bridgeId; + if (message.nodeId != null && message.hasOwnProperty('nodeId')) + if (typeof message.nodeId === 'number') object.nodeId = options.longs === String ? String(message.nodeId) : message.nodeId; else - object.nodeId = options.longs === String ? $util.Long.prototype.toString.call(message.nodeId) : options.longs === Number ? new $util.LongBits(message.nodeId.low >>> 0, message.nodeId.high >>> 0).toNumber() : message.nodeId; - if (message.wanIpEnforcement != null && message.hasOwnProperty("wanIpEnforcement")) + object.nodeId = + options.longs === String + ? $util.Long.prototype.toString.call(message.nodeId) + : options.longs === Number + ? new $util.LongBits(message.nodeId.low >>> 0, message.nodeId.high >>> 0).toNumber() + : message.nodeId; + if (message.wanIpEnforcement != null && message.hasOwnProperty('wanIpEnforcement')) object.wanIpEnforcement = message.wanIpEnforcement; - if (message.lanIpEnforcement != null && message.hasOwnProperty("lanIpEnforcement")) + if (message.lanIpEnforcement != null && message.hasOwnProperty('lanIpEnforcement')) object.lanIpEnforcement = message.lanIpEnforcement; - if (message.status != null && message.hasOwnProperty("status")) - object.status = message.status; + if (message.status != null && message.hasOwnProperty('status')) object.status = message.status; return object; }; @@ -71674,16 +74107,15 @@ export const Enterprise = $root.Enterprise = (() => { */ Bridge.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.Bridge"; + return typeUrlPrefix + '/Enterprise.Bridge'; }; return Bridge; })(); - Enterprise.Scim = (function() { - + Enterprise.Scim = (function () { /** * Properties of a Scim. * @memberof Enterprise @@ -71707,8 +74139,7 @@ export const Enterprise = $root.Enterprise = (() => { function Scim(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -71717,7 +74148,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.Scim * @instance */ - Scim.prototype.scimId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + Scim.prototype.scimId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * Scim nodeId. @@ -71725,7 +74156,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.Scim * @instance */ - Scim.prototype.nodeId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + Scim.prototype.nodeId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * Scim status. @@ -71733,7 +74164,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.Scim * @instance */ - Scim.prototype.status = ""; + Scim.prototype.status = ''; /** * Scim lastSynced. @@ -71741,7 +74172,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.Scim * @instance */ - Scim.prototype.lastSynced = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + Scim.prototype.lastSynced = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * Scim rolePrefix. @@ -71749,7 +74180,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.Scim * @instance */ - Scim.prototype.rolePrefix = ""; + Scim.prototype.rolePrefix = ''; /** * Scim uniqueGroups. @@ -71781,20 +74212,19 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ Scim.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.scimId != null && Object.hasOwnProperty.call(message, "scimId")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.scimId); - if (message.nodeId != null && Object.hasOwnProperty.call(message, "nodeId")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.nodeId); - if (message.status != null && Object.hasOwnProperty.call(message, "status")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.status); - if (message.lastSynced != null && Object.hasOwnProperty.call(message, "lastSynced")) - writer.uint32(/* id 4, wireType 0 =*/32).int64(message.lastSynced); - if (message.rolePrefix != null && Object.hasOwnProperty.call(message, "rolePrefix")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.rolePrefix); - if (message.uniqueGroups != null && Object.hasOwnProperty.call(message, "uniqueGroups")) - writer.uint32(/* id 6, wireType 0 =*/48).bool(message.uniqueGroups); + if (!writer) writer = $Writer.create(); + if (message.scimId != null && Object.hasOwnProperty.call(message, 'scimId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int64(message.scimId); + if (message.nodeId != null && Object.hasOwnProperty.call(message, 'nodeId')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int64(message.nodeId); + if (message.status != null && Object.hasOwnProperty.call(message, 'status')) + writer.uint32(/* id 3, wireType 2 =*/ 26).string(message.status); + if (message.lastSynced != null && Object.hasOwnProperty.call(message, 'lastSynced')) + writer.uint32(/* id 4, wireType 0 =*/ 32).int64(message.lastSynced); + if (message.rolePrefix != null && Object.hasOwnProperty.call(message, 'rolePrefix')) + writer.uint32(/* id 5, wireType 2 =*/ 42).string(message.rolePrefix); + if (message.uniqueGroups != null && Object.hasOwnProperty.call(message, 'uniqueGroups')) + writer.uint32(/* id 6, wireType 0 =*/ 48).bool(message.uniqueGroups); return writer; }; @@ -71823,39 +74253,39 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ Scim.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.Scim(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.Scim(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.scimId = reader.int64(); break; } - case 2: { + case 2: { message.nodeId = reader.int64(); break; } - case 3: { + case 3: { message.status = reader.string(); break; } - case 4: { + case 4: { message.lastSynced = reader.int64(); break; } - case 5: { + case 5: { message.rolePrefix = reader.string(); break; } - case 6: { + case 6: { message.uniqueGroups = reader.bool(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -71872,8 +74302,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ Scim.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -71886,26 +74315,35 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ Scim.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.scimId != null && message.hasOwnProperty("scimId")) - if (!$util.isInteger(message.scimId) && !(message.scimId && $util.isInteger(message.scimId.low) && $util.isInteger(message.scimId.high))) - return "scimId: integer|Long expected"; - if (message.nodeId != null && message.hasOwnProperty("nodeId")) - if (!$util.isInteger(message.nodeId) && !(message.nodeId && $util.isInteger(message.nodeId.low) && $util.isInteger(message.nodeId.high))) - return "nodeId: integer|Long expected"; - if (message.status != null && message.hasOwnProperty("status")) - if (!$util.isString(message.status)) - return "status: string expected"; - if (message.lastSynced != null && message.hasOwnProperty("lastSynced")) - if (!$util.isInteger(message.lastSynced) && !(message.lastSynced && $util.isInteger(message.lastSynced.low) && $util.isInteger(message.lastSynced.high))) - return "lastSynced: integer|Long expected"; - if (message.rolePrefix != null && message.hasOwnProperty("rolePrefix")) - if (!$util.isString(message.rolePrefix)) - return "rolePrefix: string expected"; - if (message.uniqueGroups != null && message.hasOwnProperty("uniqueGroups")) - if (typeof message.uniqueGroups !== "boolean") - return "uniqueGroups: boolean expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.scimId != null && message.hasOwnProperty('scimId')) + if ( + !$util.isInteger(message.scimId) && + !(message.scimId && $util.isInteger(message.scimId.low) && $util.isInteger(message.scimId.high)) + ) + return 'scimId: integer|Long expected'; + if (message.nodeId != null && message.hasOwnProperty('nodeId')) + if ( + !$util.isInteger(message.nodeId) && + !(message.nodeId && $util.isInteger(message.nodeId.low) && $util.isInteger(message.nodeId.high)) + ) + return 'nodeId: integer|Long expected'; + if (message.status != null && message.hasOwnProperty('status')) + if (!$util.isString(message.status)) return 'status: string expected'; + if (message.lastSynced != null && message.hasOwnProperty('lastSynced')) + if ( + !$util.isInteger(message.lastSynced) && + !( + message.lastSynced && + $util.isInteger(message.lastSynced.low) && + $util.isInteger(message.lastSynced.high) + ) + ) + return 'lastSynced: integer|Long expected'; + if (message.rolePrefix != null && message.hasOwnProperty('rolePrefix')) + if (!$util.isString(message.rolePrefix)) return 'rolePrefix: string expected'; + if (message.uniqueGroups != null && message.hasOwnProperty('uniqueGroups')) + if (typeof message.uniqueGroups !== 'boolean') return 'uniqueGroups: boolean expected'; return null; }; @@ -71918,42 +74356,32 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.Scim} Scim */ Scim.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.Scim) - return object; + if (object instanceof $root.Enterprise.Scim) return object; let message = new $root.Enterprise.Scim(); if (object.scimId != null) - if ($util.Long) - (message.scimId = $util.Long.fromValue(object.scimId)).unsigned = false; - else if (typeof object.scimId === "string") - message.scimId = parseInt(object.scimId, 10); - else if (typeof object.scimId === "number") - message.scimId = object.scimId; - else if (typeof object.scimId === "object") + if ($util.Long) (message.scimId = $util.Long.fromValue(object.scimId)).unsigned = false; + else if (typeof object.scimId === 'string') message.scimId = parseInt(object.scimId, 10); + else if (typeof object.scimId === 'number') message.scimId = object.scimId; + else if (typeof object.scimId === 'object') message.scimId = new $util.LongBits(object.scimId.low >>> 0, object.scimId.high >>> 0).toNumber(); if (object.nodeId != null) - if ($util.Long) - (message.nodeId = $util.Long.fromValue(object.nodeId)).unsigned = false; - else if (typeof object.nodeId === "string") - message.nodeId = parseInt(object.nodeId, 10); - else if (typeof object.nodeId === "number") - message.nodeId = object.nodeId; - else if (typeof object.nodeId === "object") + if ($util.Long) (message.nodeId = $util.Long.fromValue(object.nodeId)).unsigned = false; + else if (typeof object.nodeId === 'string') message.nodeId = parseInt(object.nodeId, 10); + else if (typeof object.nodeId === 'number') message.nodeId = object.nodeId; + else if (typeof object.nodeId === 'object') message.nodeId = new $util.LongBits(object.nodeId.low >>> 0, object.nodeId.high >>> 0).toNumber(); - if (object.status != null) - message.status = String(object.status); + if (object.status != null) message.status = String(object.status); if (object.lastSynced != null) - if ($util.Long) - (message.lastSynced = $util.Long.fromValue(object.lastSynced)).unsigned = false; - else if (typeof object.lastSynced === "string") - message.lastSynced = parseInt(object.lastSynced, 10); - else if (typeof object.lastSynced === "number") - message.lastSynced = object.lastSynced; - else if (typeof object.lastSynced === "object") - message.lastSynced = new $util.LongBits(object.lastSynced.low >>> 0, object.lastSynced.high >>> 0).toNumber(); - if (object.rolePrefix != null) - message.rolePrefix = String(object.rolePrefix); - if (object.uniqueGroups != null) - message.uniqueGroups = Boolean(object.uniqueGroups); + if ($util.Long) (message.lastSynced = $util.Long.fromValue(object.lastSynced)).unsigned = false; + else if (typeof object.lastSynced === 'string') message.lastSynced = parseInt(object.lastSynced, 10); + else if (typeof object.lastSynced === 'number') message.lastSynced = object.lastSynced; + else if (typeof object.lastSynced === 'object') + message.lastSynced = new $util.LongBits( + object.lastSynced.low >>> 0, + object.lastSynced.high >>> 0 + ).toNumber(); + if (object.rolePrefix != null) message.rolePrefix = String(object.rolePrefix); + if (object.uniqueGroups != null) message.uniqueGroups = Boolean(object.uniqueGroups); return message; }; @@ -71967,49 +74395,65 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ Scim.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.scimId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.scimId = options.longs === String ? "0" : 0; + object.scimId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.scimId = options.longs === String ? '0' : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.nodeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.nodeId = options.longs === String ? "0" : 0; - object.status = ""; + object.nodeId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.nodeId = options.longs === String ? '0' : 0; + object.status = ''; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.lastSynced = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.lastSynced = options.longs === String ? "0" : 0; - object.rolePrefix = ""; + object.lastSynced = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.lastSynced = options.longs === String ? '0' : 0; + object.rolePrefix = ''; object.uniqueGroups = false; } - if (message.scimId != null && message.hasOwnProperty("scimId")) - if (typeof message.scimId === "number") + if (message.scimId != null && message.hasOwnProperty('scimId')) + if (typeof message.scimId === 'number') object.scimId = options.longs === String ? String(message.scimId) : message.scimId; else - object.scimId = options.longs === String ? $util.Long.prototype.toString.call(message.scimId) : options.longs === Number ? new $util.LongBits(message.scimId.low >>> 0, message.scimId.high >>> 0).toNumber() : message.scimId; - if (message.nodeId != null && message.hasOwnProperty("nodeId")) - if (typeof message.nodeId === "number") + object.scimId = + options.longs === String + ? $util.Long.prototype.toString.call(message.scimId) + : options.longs === Number + ? new $util.LongBits(message.scimId.low >>> 0, message.scimId.high >>> 0).toNumber() + : message.scimId; + if (message.nodeId != null && message.hasOwnProperty('nodeId')) + if (typeof message.nodeId === 'number') object.nodeId = options.longs === String ? String(message.nodeId) : message.nodeId; else - object.nodeId = options.longs === String ? $util.Long.prototype.toString.call(message.nodeId) : options.longs === Number ? new $util.LongBits(message.nodeId.low >>> 0, message.nodeId.high >>> 0).toNumber() : message.nodeId; - if (message.status != null && message.hasOwnProperty("status")) - object.status = message.status; - if (message.lastSynced != null && message.hasOwnProperty("lastSynced")) - if (typeof message.lastSynced === "number") + object.nodeId = + options.longs === String + ? $util.Long.prototype.toString.call(message.nodeId) + : options.longs === Number + ? new $util.LongBits(message.nodeId.low >>> 0, message.nodeId.high >>> 0).toNumber() + : message.nodeId; + if (message.status != null && message.hasOwnProperty('status')) object.status = message.status; + if (message.lastSynced != null && message.hasOwnProperty('lastSynced')) + if (typeof message.lastSynced === 'number') object.lastSynced = options.longs === String ? String(message.lastSynced) : message.lastSynced; else - object.lastSynced = options.longs === String ? $util.Long.prototype.toString.call(message.lastSynced) : options.longs === Number ? new $util.LongBits(message.lastSynced.low >>> 0, message.lastSynced.high >>> 0).toNumber() : message.lastSynced; - if (message.rolePrefix != null && message.hasOwnProperty("rolePrefix")) + object.lastSynced = + options.longs === String + ? $util.Long.prototype.toString.call(message.lastSynced) + : options.longs === Number + ? new $util.LongBits( + message.lastSynced.low >>> 0, + message.lastSynced.high >>> 0 + ).toNumber() + : message.lastSynced; + if (message.rolePrefix != null && message.hasOwnProperty('rolePrefix')) object.rolePrefix = message.rolePrefix; - if (message.uniqueGroups != null && message.hasOwnProperty("uniqueGroups")) + if (message.uniqueGroups != null && message.hasOwnProperty('uniqueGroups')) object.uniqueGroups = message.uniqueGroups; return object; }; @@ -72035,16 +74479,15 @@ export const Enterprise = $root.Enterprise = (() => { */ Scim.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.Scim"; + return typeUrlPrefix + '/Enterprise.Scim'; }; return Scim; })(); - Enterprise.EmailProvision = (function() { - + Enterprise.EmailProvision = (function () { /** * Properties of an EmailProvision. * @memberof Enterprise @@ -72066,8 +74509,7 @@ export const Enterprise = $root.Enterprise = (() => { function EmailProvision(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -72084,7 +74526,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.EmailProvision * @instance */ - EmailProvision.prototype.nodeId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + EmailProvision.prototype.nodeId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * EmailProvision domain. @@ -72092,7 +74534,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.EmailProvision * @instance */ - EmailProvision.prototype.domain = ""; + EmailProvision.prototype.domain = ''; /** * EmailProvision method. @@ -72100,7 +74542,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.EmailProvision * @instance */ - EmailProvision.prototype.method = ""; + EmailProvision.prototype.method = ''; /** * Creates a new EmailProvision instance using the specified properties. @@ -72124,16 +74566,15 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ EmailProvision.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.id != null && Object.hasOwnProperty.call(message, "id")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.id); - if (message.nodeId != null && Object.hasOwnProperty.call(message, "nodeId")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.nodeId); - if (message.domain != null && Object.hasOwnProperty.call(message, "domain")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.domain); - if (message.method != null && Object.hasOwnProperty.call(message, "method")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.method); + if (!writer) writer = $Writer.create(); + if (message.id != null && Object.hasOwnProperty.call(message, 'id')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int32(message.id); + if (message.nodeId != null && Object.hasOwnProperty.call(message, 'nodeId')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int64(message.nodeId); + if (message.domain != null && Object.hasOwnProperty.call(message, 'domain')) + writer.uint32(/* id 3, wireType 2 =*/ 26).string(message.domain); + if (message.method != null && Object.hasOwnProperty.call(message, 'method')) + writer.uint32(/* id 4, wireType 2 =*/ 34).string(message.method); return writer; }; @@ -72162,31 +74603,31 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ EmailProvision.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.EmailProvision(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.EmailProvision(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.id = reader.int32(); break; } - case 2: { + case 2: { message.nodeId = reader.int64(); break; } - case 3: { + case 3: { message.domain = reader.string(); break; } - case 4: { + case 4: { message.method = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -72203,8 +74644,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ EmailProvision.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -72217,20 +74657,19 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ EmailProvision.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) - if (!$util.isInteger(message.id)) - return "id: integer expected"; - if (message.nodeId != null && message.hasOwnProperty("nodeId")) - if (!$util.isInteger(message.nodeId) && !(message.nodeId && $util.isInteger(message.nodeId.low) && $util.isInteger(message.nodeId.high))) - return "nodeId: integer|Long expected"; - if (message.domain != null && message.hasOwnProperty("domain")) - if (!$util.isString(message.domain)) - return "domain: string expected"; - if (message.method != null && message.hasOwnProperty("method")) - if (!$util.isString(message.method)) - return "method: string expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.id != null && message.hasOwnProperty('id')) + if (!$util.isInteger(message.id)) return 'id: integer expected'; + if (message.nodeId != null && message.hasOwnProperty('nodeId')) + if ( + !$util.isInteger(message.nodeId) && + !(message.nodeId && $util.isInteger(message.nodeId.low) && $util.isInteger(message.nodeId.high)) + ) + return 'nodeId: integer|Long expected'; + if (message.domain != null && message.hasOwnProperty('domain')) + if (!$util.isString(message.domain)) return 'domain: string expected'; + if (message.method != null && message.hasOwnProperty('method')) + if (!$util.isString(message.method)) return 'method: string expected'; return null; }; @@ -72243,24 +74682,17 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.EmailProvision} EmailProvision */ EmailProvision.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.EmailProvision) - return object; + if (object instanceof $root.Enterprise.EmailProvision) return object; let message = new $root.Enterprise.EmailProvision(); - if (object.id != null) - message.id = object.id | 0; + if (object.id != null) message.id = object.id | 0; if (object.nodeId != null) - if ($util.Long) - (message.nodeId = $util.Long.fromValue(object.nodeId)).unsigned = false; - else if (typeof object.nodeId === "string") - message.nodeId = parseInt(object.nodeId, 10); - else if (typeof object.nodeId === "number") - message.nodeId = object.nodeId; - else if (typeof object.nodeId === "object") + if ($util.Long) (message.nodeId = $util.Long.fromValue(object.nodeId)).unsigned = false; + else if (typeof object.nodeId === 'string') message.nodeId = parseInt(object.nodeId, 10); + else if (typeof object.nodeId === 'number') message.nodeId = object.nodeId; + else if (typeof object.nodeId === 'object') message.nodeId = new $util.LongBits(object.nodeId.low >>> 0, object.nodeId.high >>> 0).toNumber(); - if (object.domain != null) - message.domain = String(object.domain); - if (object.method != null) - message.method = String(object.method); + if (object.domain != null) message.domain = String(object.domain); + if (object.method != null) message.method = String(object.method); return message; }; @@ -72274,30 +74706,31 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ EmailProvision.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { object.id = 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.nodeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.nodeId = options.longs === String ? "0" : 0; - object.domain = ""; - object.method = ""; - } - if (message.id != null && message.hasOwnProperty("id")) - object.id = message.id; - if (message.nodeId != null && message.hasOwnProperty("nodeId")) - if (typeof message.nodeId === "number") + object.nodeId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.nodeId = options.longs === String ? '0' : 0; + object.domain = ''; + object.method = ''; + } + if (message.id != null && message.hasOwnProperty('id')) object.id = message.id; + if (message.nodeId != null && message.hasOwnProperty('nodeId')) + if (typeof message.nodeId === 'number') object.nodeId = options.longs === String ? String(message.nodeId) : message.nodeId; else - object.nodeId = options.longs === String ? $util.Long.prototype.toString.call(message.nodeId) : options.longs === Number ? new $util.LongBits(message.nodeId.low >>> 0, message.nodeId.high >>> 0).toNumber() : message.nodeId; - if (message.domain != null && message.hasOwnProperty("domain")) - object.domain = message.domain; - if (message.method != null && message.hasOwnProperty("method")) - object.method = message.method; + object.nodeId = + options.longs === String + ? $util.Long.prototype.toString.call(message.nodeId) + : options.longs === Number + ? new $util.LongBits(message.nodeId.low >>> 0, message.nodeId.high >>> 0).toNumber() + : message.nodeId; + if (message.domain != null && message.hasOwnProperty('domain')) object.domain = message.domain; + if (message.method != null && message.hasOwnProperty('method')) object.method = message.method; return object; }; @@ -72322,16 +74755,15 @@ export const Enterprise = $root.Enterprise = (() => { */ EmailProvision.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.EmailProvision"; + return typeUrlPrefix + '/Enterprise.EmailProvision'; }; return EmailProvision; })(); - Enterprise.QueuedTeam = (function() { - + Enterprise.QueuedTeam = (function () { /** * Properties of a QueuedTeam. * @memberof Enterprise @@ -72353,8 +74785,7 @@ export const Enterprise = $root.Enterprise = (() => { function QueuedTeam(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -72371,7 +74802,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.QueuedTeam * @instance */ - QueuedTeam.prototype.name = ""; + QueuedTeam.prototype.name = ''; /** * QueuedTeam nodeId. @@ -72379,7 +74810,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.QueuedTeam * @instance */ - QueuedTeam.prototype.nodeId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + QueuedTeam.prototype.nodeId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * QueuedTeam encryptedData. @@ -72387,7 +74818,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.QueuedTeam * @instance */ - QueuedTeam.prototype.encryptedData = ""; + QueuedTeam.prototype.encryptedData = ''; /** * Creates a new QueuedTeam instance using the specified properties. @@ -72411,16 +74842,15 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ QueuedTeam.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.teamUid != null && Object.hasOwnProperty.call(message, "teamUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.teamUid); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.name); - if (message.nodeId != null && Object.hasOwnProperty.call(message, "nodeId")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.nodeId); - if (message.encryptedData != null && Object.hasOwnProperty.call(message, "encryptedData")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.encryptedData); + if (!writer) writer = $Writer.create(); + if (message.teamUid != null && Object.hasOwnProperty.call(message, 'teamUid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.teamUid); + if (message.name != null && Object.hasOwnProperty.call(message, 'name')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.name); + if (message.nodeId != null && Object.hasOwnProperty.call(message, 'nodeId')) + writer.uint32(/* id 3, wireType 0 =*/ 24).int64(message.nodeId); + if (message.encryptedData != null && Object.hasOwnProperty.call(message, 'encryptedData')) + writer.uint32(/* id 4, wireType 2 =*/ 34).string(message.encryptedData); return writer; }; @@ -72449,31 +74879,31 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ QueuedTeam.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.QueuedTeam(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.QueuedTeam(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.teamUid = reader.bytes(); break; } - case 2: { + case 2: { message.name = reader.string(); break; } - case 3: { + case 3: { message.nodeId = reader.int64(); break; } - case 4: { + case 4: { message.encryptedData = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -72490,8 +74920,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ QueuedTeam.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -72504,20 +74933,25 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ QueuedTeam.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.teamUid != null && message.hasOwnProperty("teamUid")) - if (!(message.teamUid && typeof message.teamUid.length === "number" || $util.isString(message.teamUid))) - return "teamUid: buffer expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.nodeId != null && message.hasOwnProperty("nodeId")) - if (!$util.isInteger(message.nodeId) && !(message.nodeId && $util.isInteger(message.nodeId.low) && $util.isInteger(message.nodeId.high))) - return "nodeId: integer|Long expected"; - if (message.encryptedData != null && message.hasOwnProperty("encryptedData")) - if (!$util.isString(message.encryptedData)) - return "encryptedData: string expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.teamUid != null && message.hasOwnProperty('teamUid')) + if ( + !( + (message.teamUid && typeof message.teamUid.length === 'number') || + $util.isString(message.teamUid) + ) + ) + return 'teamUid: buffer expected'; + if (message.name != null && message.hasOwnProperty('name')) + if (!$util.isString(message.name)) return 'name: string expected'; + if (message.nodeId != null && message.hasOwnProperty('nodeId')) + if ( + !$util.isInteger(message.nodeId) && + !(message.nodeId && $util.isInteger(message.nodeId.low) && $util.isInteger(message.nodeId.high)) + ) + return 'nodeId: integer|Long expected'; + if (message.encryptedData != null && message.hasOwnProperty('encryptedData')) + if (!$util.isString(message.encryptedData)) return 'encryptedData: string expected'; return null; }; @@ -72530,27 +74964,24 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.QueuedTeam} QueuedTeam */ QueuedTeam.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.QueuedTeam) - return object; + if (object instanceof $root.Enterprise.QueuedTeam) return object; let message = new $root.Enterprise.QueuedTeam(); if (object.teamUid != null) - if (typeof object.teamUid === "string") - $util.base64.decode(object.teamUid, message.teamUid = $util.newBuffer($util.base64.length(object.teamUid)), 0); - else if (object.teamUid.length >= 0) - message.teamUid = object.teamUid; - if (object.name != null) - message.name = String(object.name); + if (typeof object.teamUid === 'string') + $util.base64.decode( + object.teamUid, + (message.teamUid = $util.newBuffer($util.base64.length(object.teamUid))), + 0 + ); + else if (object.teamUid.length >= 0) message.teamUid = object.teamUid; + if (object.name != null) message.name = String(object.name); if (object.nodeId != null) - if ($util.Long) - (message.nodeId = $util.Long.fromValue(object.nodeId)).unsigned = false; - else if (typeof object.nodeId === "string") - message.nodeId = parseInt(object.nodeId, 10); - else if (typeof object.nodeId === "number") - message.nodeId = object.nodeId; - else if (typeof object.nodeId === "object") + if ($util.Long) (message.nodeId = $util.Long.fromValue(object.nodeId)).unsigned = false; + else if (typeof object.nodeId === 'string') message.nodeId = parseInt(object.nodeId, 10); + else if (typeof object.nodeId === 'number') message.nodeId = object.nodeId; + else if (typeof object.nodeId === 'object') message.nodeId = new $util.LongBits(object.nodeId.low >>> 0, object.nodeId.high >>> 0).toNumber(); - if (object.encryptedData != null) - message.encryptedData = String(object.encryptedData); + if (object.encryptedData != null) message.encryptedData = String(object.encryptedData); return message; }; @@ -72564,35 +74995,41 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ QueuedTeam.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.teamUid = ""; + if (options.bytes === String) object.teamUid = ''; else { object.teamUid = []; - if (options.bytes !== Array) - object.teamUid = $util.newBuffer(object.teamUid); + if (options.bytes !== Array) object.teamUid = $util.newBuffer(object.teamUid); } - object.name = ""; + object.name = ''; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.nodeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.nodeId = options.longs === String ? "0" : 0; - object.encryptedData = ""; - } - if (message.teamUid != null && message.hasOwnProperty("teamUid")) - object.teamUid = options.bytes === String ? $util.base64.encode(message.teamUid, 0, message.teamUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.teamUid) : message.teamUid; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.nodeId != null && message.hasOwnProperty("nodeId")) - if (typeof message.nodeId === "number") + object.nodeId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.nodeId = options.longs === String ? '0' : 0; + object.encryptedData = ''; + } + if (message.teamUid != null && message.hasOwnProperty('teamUid')) + object.teamUid = + options.bytes === String + ? $util.base64.encode(message.teamUid, 0, message.teamUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.teamUid) + : message.teamUid; + if (message.name != null && message.hasOwnProperty('name')) object.name = message.name; + if (message.nodeId != null && message.hasOwnProperty('nodeId')) + if (typeof message.nodeId === 'number') object.nodeId = options.longs === String ? String(message.nodeId) : message.nodeId; else - object.nodeId = options.longs === String ? $util.Long.prototype.toString.call(message.nodeId) : options.longs === Number ? new $util.LongBits(message.nodeId.low >>> 0, message.nodeId.high >>> 0).toNumber() : message.nodeId; - if (message.encryptedData != null && message.hasOwnProperty("encryptedData")) + object.nodeId = + options.longs === String + ? $util.Long.prototype.toString.call(message.nodeId) + : options.longs === Number + ? new $util.LongBits(message.nodeId.low >>> 0, message.nodeId.high >>> 0).toNumber() + : message.nodeId; + if (message.encryptedData != null && message.hasOwnProperty('encryptedData')) object.encryptedData = message.encryptedData; return object; }; @@ -72618,16 +75055,15 @@ export const Enterprise = $root.Enterprise = (() => { */ QueuedTeam.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.QueuedTeam"; + return typeUrlPrefix + '/Enterprise.QueuedTeam'; }; return QueuedTeam; })(); - Enterprise.QueuedTeamUser = (function() { - + Enterprise.QueuedTeamUser = (function () { /** * Properties of a QueuedTeamUser. * @memberof Enterprise @@ -72648,8 +75084,7 @@ export const Enterprise = $root.Enterprise = (() => { this.users = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -72690,14 +75125,12 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ QueuedTeamUser.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.teamUid != null && Object.hasOwnProperty.call(message, "teamUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.teamUid); + if (!writer) writer = $Writer.create(); + if (message.teamUid != null && Object.hasOwnProperty.call(message, 'teamUid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.teamUid); if (message.users != null && message.users.length) { - writer.uint32(/* id 2, wireType 2 =*/18).fork(); - for (let i = 0; i < message.users.length; ++i) - writer.int64(message.users[i]); + writer.uint32(/* id 2, wireType 2 =*/ 18).fork(); + for (let i = 0; i < message.users.length; ++i) writer.int64(message.users[i]); writer.ldelim(); } return writer; @@ -72728,30 +75161,27 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ QueuedTeamUser.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.QueuedTeamUser(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.QueuedTeamUser(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.teamUid = reader.bytes(); break; } - case 2: { - if (!(message.users && message.users.length)) - message.users = []; + case 2: { + if (!(message.users && message.users.length)) message.users = []; if ((tag & 7) === 2) { let end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.users.push(reader.int64()); - } else - message.users.push(reader.int64()); + while (reader.pos < end2) message.users.push(reader.int64()); + } else message.users.push(reader.int64()); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -72768,8 +75198,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ QueuedTeamUser.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -72782,17 +75211,27 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ QueuedTeamUser.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.teamUid != null && message.hasOwnProperty("teamUid")) - if (!(message.teamUid && typeof message.teamUid.length === "number" || $util.isString(message.teamUid))) - return "teamUid: buffer expected"; - if (message.users != null && message.hasOwnProperty("users")) { - if (!Array.isArray(message.users)) - return "users: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.teamUid != null && message.hasOwnProperty('teamUid')) + if ( + !( + (message.teamUid && typeof message.teamUid.length === 'number') || + $util.isString(message.teamUid) + ) + ) + return 'teamUid: buffer expected'; + if (message.users != null && message.hasOwnProperty('users')) { + if (!Array.isArray(message.users)) return 'users: array expected'; for (let i = 0; i < message.users.length; ++i) - if (!$util.isInteger(message.users[i]) && !(message.users[i] && $util.isInteger(message.users[i].low) && $util.isInteger(message.users[i].high))) - return "users: integer|Long[] expected"; + if ( + !$util.isInteger(message.users[i]) && + !( + message.users[i] && + $util.isInteger(message.users[i].low) && + $util.isInteger(message.users[i].high) + ) + ) + return 'users: integer|Long[] expected'; } return null; }; @@ -72806,27 +75245,28 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.QueuedTeamUser} QueuedTeamUser */ QueuedTeamUser.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.QueuedTeamUser) - return object; + if (object instanceof $root.Enterprise.QueuedTeamUser) return object; let message = new $root.Enterprise.QueuedTeamUser(); if (object.teamUid != null) - if (typeof object.teamUid === "string") - $util.base64.decode(object.teamUid, message.teamUid = $util.newBuffer($util.base64.length(object.teamUid)), 0); - else if (object.teamUid.length >= 0) - message.teamUid = object.teamUid; + if (typeof object.teamUid === 'string') + $util.base64.decode( + object.teamUid, + (message.teamUid = $util.newBuffer($util.base64.length(object.teamUid))), + 0 + ); + else if (object.teamUid.length >= 0) message.teamUid = object.teamUid; if (object.users) { - if (!Array.isArray(object.users)) - throw TypeError(".Enterprise.QueuedTeamUser.users: array expected"); + if (!Array.isArray(object.users)) throw TypeError('.Enterprise.QueuedTeamUser.users: array expected'); message.users = []; for (let i = 0; i < object.users.length; ++i) - if ($util.Long) - (message.users[i] = $util.Long.fromValue(object.users[i])).unsigned = false; - else if (typeof object.users[i] === "string") - message.users[i] = parseInt(object.users[i], 10); - else if (typeof object.users[i] === "number") - message.users[i] = object.users[i]; - else if (typeof object.users[i] === "object") - message.users[i] = new $util.LongBits(object.users[i].low >>> 0, object.users[i].high >>> 0).toNumber(); + if ($util.Long) (message.users[i] = $util.Long.fromValue(object.users[i])).unsigned = false; + else if (typeof object.users[i] === 'string') message.users[i] = parseInt(object.users[i], 10); + else if (typeof object.users[i] === 'number') message.users[i] = object.users[i]; + else if (typeof object.users[i] === 'object') + message.users[i] = new $util.LongBits( + object.users[i].low >>> 0, + object.users[i].high >>> 0 + ).toNumber(); } return message; }; @@ -72841,28 +75281,37 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ QueuedTeamUser.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.users = []; + if (options.arrays || options.defaults) object.users = []; if (options.defaults) - if (options.bytes === String) - object.teamUid = ""; + if (options.bytes === String) object.teamUid = ''; else { object.teamUid = []; - if (options.bytes !== Array) - object.teamUid = $util.newBuffer(object.teamUid); - } - if (message.teamUid != null && message.hasOwnProperty("teamUid")) - object.teamUid = options.bytes === String ? $util.base64.encode(message.teamUid, 0, message.teamUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.teamUid) : message.teamUid; + if (options.bytes !== Array) object.teamUid = $util.newBuffer(object.teamUid); + } + if (message.teamUid != null && message.hasOwnProperty('teamUid')) + object.teamUid = + options.bytes === String + ? $util.base64.encode(message.teamUid, 0, message.teamUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.teamUid) + : message.teamUid; if (message.users && message.users.length) { object.users = []; for (let j = 0; j < message.users.length; ++j) - if (typeof message.users[j] === "number") + if (typeof message.users[j] === 'number') object.users[j] = options.longs === String ? String(message.users[j]) : message.users[j]; else - object.users[j] = options.longs === String ? $util.Long.prototype.toString.call(message.users[j]) : options.longs === Number ? new $util.LongBits(message.users[j].low >>> 0, message.users[j].high >>> 0).toNumber() : message.users[j]; + object.users[j] = + options.longs === String + ? $util.Long.prototype.toString.call(message.users[j]) + : options.longs === Number + ? new $util.LongBits( + message.users[j].low >>> 0, + message.users[j].high >>> 0 + ).toNumber() + : message.users[j]; } return object; }; @@ -72888,16 +75337,15 @@ export const Enterprise = $root.Enterprise = (() => { */ QueuedTeamUser.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.QueuedTeamUser"; + return typeUrlPrefix + '/Enterprise.QueuedTeamUser'; }; return QueuedTeamUser; })(); - Enterprise.TeamsAddResult = (function() { - + Enterprise.TeamsAddResult = (function () { /** * Properties of a TeamsAddResult. * @memberof Enterprise @@ -72914,7 +75362,7 @@ export const Enterprise = $root.Enterprise = (() => { * @classdesc This is not used in an API yet. * It can be used in a new teams_add API if we do one. * It is currently used internally when creating teams. - * + * * The command is successful if at least one of the teams was added successfully. * The top-level errorMessage field is used only when the top-level result is "error". * @implements ITeamsAddResult @@ -72926,8 +75374,7 @@ export const Enterprise = $root.Enterprise = (() => { this.unsuccessfulTeamAdd = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -72952,7 +75399,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.TeamsAddResult * @instance */ - TeamsAddResult.prototype.result = ""; + TeamsAddResult.prototype.result = ''; /** * TeamsAddResult errorMessage. @@ -72960,7 +75407,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.TeamsAddResult * @instance */ - TeamsAddResult.prototype.errorMessage = ""; + TeamsAddResult.prototype.errorMessage = ''; /** * Creates a new TeamsAddResult instance using the specified properties. @@ -72984,18 +75431,23 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ TeamsAddResult.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.successfulTeamAdd != null && message.successfulTeamAdd.length) for (let i = 0; i < message.successfulTeamAdd.length; ++i) - $root.Enterprise.TeamAddResult.encode(message.successfulTeamAdd[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.Enterprise.TeamAddResult.encode( + message.successfulTeamAdd[i], + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); if (message.unsuccessfulTeamAdd != null && message.unsuccessfulTeamAdd.length) for (let i = 0; i < message.unsuccessfulTeamAdd.length; ++i) - $root.Enterprise.TeamAddResult.encode(message.unsuccessfulTeamAdd[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.result != null && Object.hasOwnProperty.call(message, "result")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.result); - if (message.errorMessage != null && Object.hasOwnProperty.call(message, "errorMessage")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.errorMessage); + $root.Enterprise.TeamAddResult.encode( + message.unsuccessfulTeamAdd[i], + writer.uint32(/* id 2, wireType 2 =*/ 18).fork() + ).ldelim(); + if (message.result != null && Object.hasOwnProperty.call(message, 'result')) + writer.uint32(/* id 3, wireType 2 =*/ 26).string(message.result); + if (message.errorMessage != null && Object.hasOwnProperty.call(message, 'errorMessage')) + writer.uint32(/* id 4, wireType 2 =*/ 34).string(message.errorMessage); return writer; }; @@ -73024,35 +75476,37 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ TeamsAddResult.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.TeamsAddResult(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.TeamsAddResult(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { if (!(message.successfulTeamAdd && message.successfulTeamAdd.length)) message.successfulTeamAdd = []; message.successfulTeamAdd.push($root.Enterprise.TeamAddResult.decode(reader, reader.uint32())); break; } - case 2: { + case 2: { if (!(message.unsuccessfulTeamAdd && message.unsuccessfulTeamAdd.length)) message.unsuccessfulTeamAdd = []; - message.unsuccessfulTeamAdd.push($root.Enterprise.TeamAddResult.decode(reader, reader.uint32())); + message.unsuccessfulTeamAdd.push( + $root.Enterprise.TeamAddResult.decode(reader, reader.uint32()) + ); break; } - case 3: { + case 3: { message.result = reader.string(); break; } - case 4: { + case 4: { message.errorMessage = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -73069,8 +75523,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ TeamsAddResult.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -73083,32 +75536,25 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ TeamsAddResult.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.successfulTeamAdd != null && message.hasOwnProperty("successfulTeamAdd")) { - if (!Array.isArray(message.successfulTeamAdd)) - return "successfulTeamAdd: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.successfulTeamAdd != null && message.hasOwnProperty('successfulTeamAdd')) { + if (!Array.isArray(message.successfulTeamAdd)) return 'successfulTeamAdd: array expected'; for (let i = 0; i < message.successfulTeamAdd.length; ++i) { let error = $root.Enterprise.TeamAddResult.verify(message.successfulTeamAdd[i]); - if (error) - return "successfulTeamAdd." + error; + if (error) return 'successfulTeamAdd.' + error; } } - if (message.unsuccessfulTeamAdd != null && message.hasOwnProperty("unsuccessfulTeamAdd")) { - if (!Array.isArray(message.unsuccessfulTeamAdd)) - return "unsuccessfulTeamAdd: array expected"; + if (message.unsuccessfulTeamAdd != null && message.hasOwnProperty('unsuccessfulTeamAdd')) { + if (!Array.isArray(message.unsuccessfulTeamAdd)) return 'unsuccessfulTeamAdd: array expected'; for (let i = 0; i < message.unsuccessfulTeamAdd.length; ++i) { let error = $root.Enterprise.TeamAddResult.verify(message.unsuccessfulTeamAdd[i]); - if (error) - return "unsuccessfulTeamAdd." + error; + if (error) return 'unsuccessfulTeamAdd.' + error; } } - if (message.result != null && message.hasOwnProperty("result")) - if (!$util.isString(message.result)) - return "result: string expected"; - if (message.errorMessage != null && message.hasOwnProperty("errorMessage")) - if (!$util.isString(message.errorMessage)) - return "errorMessage: string expected"; + if (message.result != null && message.hasOwnProperty('result')) + if (!$util.isString(message.result)) return 'result: string expected'; + if (message.errorMessage != null && message.hasOwnProperty('errorMessage')) + if (!$util.isString(message.errorMessage)) return 'errorMessage: string expected'; return null; }; @@ -73121,33 +75567,34 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.TeamsAddResult} TeamsAddResult */ TeamsAddResult.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.TeamsAddResult) - return object; + if (object instanceof $root.Enterprise.TeamsAddResult) return object; let message = new $root.Enterprise.TeamsAddResult(); if (object.successfulTeamAdd) { if (!Array.isArray(object.successfulTeamAdd)) - throw TypeError(".Enterprise.TeamsAddResult.successfulTeamAdd: array expected"); + throw TypeError('.Enterprise.TeamsAddResult.successfulTeamAdd: array expected'); message.successfulTeamAdd = []; for (let i = 0; i < object.successfulTeamAdd.length; ++i) { - if (typeof object.successfulTeamAdd[i] !== "object") - throw TypeError(".Enterprise.TeamsAddResult.successfulTeamAdd: object expected"); - message.successfulTeamAdd[i] = $root.Enterprise.TeamAddResult.fromObject(object.successfulTeamAdd[i]); + if (typeof object.successfulTeamAdd[i] !== 'object') + throw TypeError('.Enterprise.TeamsAddResult.successfulTeamAdd: object expected'); + message.successfulTeamAdd[i] = $root.Enterprise.TeamAddResult.fromObject( + object.successfulTeamAdd[i] + ); } } if (object.unsuccessfulTeamAdd) { if (!Array.isArray(object.unsuccessfulTeamAdd)) - throw TypeError(".Enterprise.TeamsAddResult.unsuccessfulTeamAdd: array expected"); + throw TypeError('.Enterprise.TeamsAddResult.unsuccessfulTeamAdd: array expected'); message.unsuccessfulTeamAdd = []; for (let i = 0; i < object.unsuccessfulTeamAdd.length; ++i) { - if (typeof object.unsuccessfulTeamAdd[i] !== "object") - throw TypeError(".Enterprise.TeamsAddResult.unsuccessfulTeamAdd: object expected"); - message.unsuccessfulTeamAdd[i] = $root.Enterprise.TeamAddResult.fromObject(object.unsuccessfulTeamAdd[i]); + if (typeof object.unsuccessfulTeamAdd[i] !== 'object') + throw TypeError('.Enterprise.TeamsAddResult.unsuccessfulTeamAdd: object expected'); + message.unsuccessfulTeamAdd[i] = $root.Enterprise.TeamAddResult.fromObject( + object.unsuccessfulTeamAdd[i] + ); } } - if (object.result != null) - message.result = String(object.result); - if (object.errorMessage != null) - message.errorMessage = String(object.errorMessage); + if (object.result != null) message.result = String(object.result); + if (object.errorMessage != null) message.errorMessage = String(object.errorMessage); return message; }; @@ -73161,30 +75608,34 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ TeamsAddResult.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.arrays || options.defaults) { object.successfulTeamAdd = []; object.unsuccessfulTeamAdd = []; } if (options.defaults) { - object.result = ""; - object.errorMessage = ""; + object.result = ''; + object.errorMessage = ''; } if (message.successfulTeamAdd && message.successfulTeamAdd.length) { object.successfulTeamAdd = []; for (let j = 0; j < message.successfulTeamAdd.length; ++j) - object.successfulTeamAdd[j] = $root.Enterprise.TeamAddResult.toObject(message.successfulTeamAdd[j], options); + object.successfulTeamAdd[j] = $root.Enterprise.TeamAddResult.toObject( + message.successfulTeamAdd[j], + options + ); } if (message.unsuccessfulTeamAdd && message.unsuccessfulTeamAdd.length) { object.unsuccessfulTeamAdd = []; for (let j = 0; j < message.unsuccessfulTeamAdd.length; ++j) - object.unsuccessfulTeamAdd[j] = $root.Enterprise.TeamAddResult.toObject(message.unsuccessfulTeamAdd[j], options); + object.unsuccessfulTeamAdd[j] = $root.Enterprise.TeamAddResult.toObject( + message.unsuccessfulTeamAdd[j], + options + ); } - if (message.result != null && message.hasOwnProperty("result")) - object.result = message.result; - if (message.errorMessage != null && message.hasOwnProperty("errorMessage")) + if (message.result != null && message.hasOwnProperty('result')) object.result = message.result; + if (message.errorMessage != null && message.hasOwnProperty('errorMessage')) object.errorMessage = message.errorMessage; return object; }; @@ -73210,16 +75661,15 @@ export const Enterprise = $root.Enterprise = (() => { */ TeamsAddResult.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.TeamsAddResult"; + return typeUrlPrefix + '/Enterprise.TeamsAddResult'; }; return TeamsAddResult; })(); - Enterprise.TeamAddResult = (function() { - + Enterprise.TeamAddResult = (function () { /** * Properties of a TeamAddResult. * @memberof Enterprise @@ -73240,8 +75690,7 @@ export const Enterprise = $root.Enterprise = (() => { function TeamAddResult(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -73258,7 +75707,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.TeamAddResult * @instance */ - TeamAddResult.prototype.result = ""; + TeamAddResult.prototype.result = ''; /** * TeamAddResult errorMessage. @@ -73266,7 +75715,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.TeamAddResult * @instance */ - TeamAddResult.prototype.errorMessage = ""; + TeamAddResult.prototype.errorMessage = ''; /** * Creates a new TeamAddResult instance using the specified properties. @@ -73290,14 +75739,13 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ TeamAddResult.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.team != null && Object.hasOwnProperty.call(message, "team")) - $root.Enterprise.Team.encode(message.team, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.result != null && Object.hasOwnProperty.call(message, "result")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.result); - if (message.errorMessage != null && Object.hasOwnProperty.call(message, "errorMessage")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.errorMessage); + if (!writer) writer = $Writer.create(); + if (message.team != null && Object.hasOwnProperty.call(message, 'team')) + $root.Enterprise.Team.encode(message.team, writer.uint32(/* id 1, wireType 2 =*/ 10).fork()).ldelim(); + if (message.result != null && Object.hasOwnProperty.call(message, 'result')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.result); + if (message.errorMessage != null && Object.hasOwnProperty.call(message, 'errorMessage')) + writer.uint32(/* id 3, wireType 2 =*/ 26).string(message.errorMessage); return writer; }; @@ -73326,27 +75774,27 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ TeamAddResult.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.TeamAddResult(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.TeamAddResult(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.team = $root.Enterprise.Team.decode(reader, reader.uint32()); break; } - case 2: { + case 2: { message.result = reader.string(); break; } - case 3: { + case 3: { message.errorMessage = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -73363,8 +75811,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ TeamAddResult.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -73377,19 +75824,15 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ TeamAddResult.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.team != null && message.hasOwnProperty("team")) { + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.team != null && message.hasOwnProperty('team')) { let error = $root.Enterprise.Team.verify(message.team); - if (error) - return "team." + error; + if (error) return 'team.' + error; } - if (message.result != null && message.hasOwnProperty("result")) - if (!$util.isString(message.result)) - return "result: string expected"; - if (message.errorMessage != null && message.hasOwnProperty("errorMessage")) - if (!$util.isString(message.errorMessage)) - return "errorMessage: string expected"; + if (message.result != null && message.hasOwnProperty('result')) + if (!$util.isString(message.result)) return 'result: string expected'; + if (message.errorMessage != null && message.hasOwnProperty('errorMessage')) + if (!$util.isString(message.errorMessage)) return 'errorMessage: string expected'; return null; }; @@ -73402,18 +75845,14 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.TeamAddResult} TeamAddResult */ TeamAddResult.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.TeamAddResult) - return object; + if (object instanceof $root.Enterprise.TeamAddResult) return object; let message = new $root.Enterprise.TeamAddResult(); if (object.team != null) { - if (typeof object.team !== "object") - throw TypeError(".Enterprise.TeamAddResult.team: object expected"); + if (typeof object.team !== 'object') throw TypeError('.Enterprise.TeamAddResult.team: object expected'); message.team = $root.Enterprise.Team.fromObject(object.team); } - if (object.result != null) - message.result = String(object.result); - if (object.errorMessage != null) - message.errorMessage = String(object.errorMessage); + if (object.result != null) message.result = String(object.result); + if (object.errorMessage != null) message.errorMessage = String(object.errorMessage); return message; }; @@ -73427,19 +75866,17 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ TeamAddResult.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { object.team = null; - object.result = ""; - object.errorMessage = ""; + object.result = ''; + object.errorMessage = ''; } - if (message.team != null && message.hasOwnProperty("team")) + if (message.team != null && message.hasOwnProperty('team')) object.team = $root.Enterprise.Team.toObject(message.team, options); - if (message.result != null && message.hasOwnProperty("result")) - object.result = message.result; - if (message.errorMessage != null && message.hasOwnProperty("errorMessage")) + if (message.result != null && message.hasOwnProperty('result')) object.result = message.result; + if (message.errorMessage != null && message.hasOwnProperty('errorMessage')) object.errorMessage = message.errorMessage; return object; }; @@ -73465,16 +75902,15 @@ export const Enterprise = $root.Enterprise = (() => { */ TeamAddResult.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.TeamAddResult"; + return typeUrlPrefix + '/Enterprise.TeamAddResult'; }; return TeamAddResult; })(); - Enterprise.SsoService = (function() { - + Enterprise.SsoService = (function () { /** * Properties of a SsoService. * @memberof Enterprise @@ -73499,8 +75935,7 @@ export const Enterprise = $root.Enterprise = (() => { function SsoService(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -73509,7 +75944,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.SsoService * @instance */ - SsoService.prototype.ssoServiceProviderId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + SsoService.prototype.ssoServiceProviderId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * SsoService nodeId. @@ -73517,7 +75952,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.SsoService * @instance */ - SsoService.prototype.nodeId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + SsoService.prototype.nodeId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * SsoService name. @@ -73525,7 +75960,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.SsoService * @instance */ - SsoService.prototype.name = ""; + SsoService.prototype.name = ''; /** * SsoService spUrl. @@ -73533,7 +75968,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.SsoService * @instance */ - SsoService.prototype.spUrl = ""; + SsoService.prototype.spUrl = ''; /** * SsoService inviteNewUsers. @@ -73581,22 +76016,21 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ SsoService.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.ssoServiceProviderId != null && Object.hasOwnProperty.call(message, "ssoServiceProviderId")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.ssoServiceProviderId); - if (message.nodeId != null && Object.hasOwnProperty.call(message, "nodeId")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.nodeId); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.name); - if (message.spUrl != null && Object.hasOwnProperty.call(message, "spUrl")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.spUrl); - if (message.inviteNewUsers != null && Object.hasOwnProperty.call(message, "inviteNewUsers")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.inviteNewUsers); - if (message.active != null && Object.hasOwnProperty.call(message, "active")) - writer.uint32(/* id 6, wireType 0 =*/48).bool(message.active); - if (message.isCloud != null && Object.hasOwnProperty.call(message, "isCloud")) - writer.uint32(/* id 7, wireType 0 =*/56).bool(message.isCloud); + if (!writer) writer = $Writer.create(); + if (message.ssoServiceProviderId != null && Object.hasOwnProperty.call(message, 'ssoServiceProviderId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int64(message.ssoServiceProviderId); + if (message.nodeId != null && Object.hasOwnProperty.call(message, 'nodeId')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int64(message.nodeId); + if (message.name != null && Object.hasOwnProperty.call(message, 'name')) + writer.uint32(/* id 3, wireType 2 =*/ 26).string(message.name); + if (message.spUrl != null && Object.hasOwnProperty.call(message, 'spUrl')) + writer.uint32(/* id 4, wireType 2 =*/ 34).string(message.spUrl); + if (message.inviteNewUsers != null && Object.hasOwnProperty.call(message, 'inviteNewUsers')) + writer.uint32(/* id 5, wireType 0 =*/ 40).bool(message.inviteNewUsers); + if (message.active != null && Object.hasOwnProperty.call(message, 'active')) + writer.uint32(/* id 6, wireType 0 =*/ 48).bool(message.active); + if (message.isCloud != null && Object.hasOwnProperty.call(message, 'isCloud')) + writer.uint32(/* id 7, wireType 0 =*/ 56).bool(message.isCloud); return writer; }; @@ -73625,43 +76059,43 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SsoService.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.SsoService(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.SsoService(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.ssoServiceProviderId = reader.int64(); break; } - case 2: { + case 2: { message.nodeId = reader.int64(); break; } - case 3: { + case 3: { message.name = reader.string(); break; } - case 4: { + case 4: { message.spUrl = reader.string(); break; } - case 5: { + case 5: { message.inviteNewUsers = reader.bool(); break; } - case 6: { + case 6: { message.active = reader.bool(); break; } - case 7: { + case 7: { message.isCloud = reader.bool(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -73678,8 +76112,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SsoService.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -73692,29 +76125,33 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ SsoService.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.ssoServiceProviderId != null && message.hasOwnProperty("ssoServiceProviderId")) - if (!$util.isInteger(message.ssoServiceProviderId) && !(message.ssoServiceProviderId && $util.isInteger(message.ssoServiceProviderId.low) && $util.isInteger(message.ssoServiceProviderId.high))) - return "ssoServiceProviderId: integer|Long expected"; - if (message.nodeId != null && message.hasOwnProperty("nodeId")) - if (!$util.isInteger(message.nodeId) && !(message.nodeId && $util.isInteger(message.nodeId.low) && $util.isInteger(message.nodeId.high))) - return "nodeId: integer|Long expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.spUrl != null && message.hasOwnProperty("spUrl")) - if (!$util.isString(message.spUrl)) - return "spUrl: string expected"; - if (message.inviteNewUsers != null && message.hasOwnProperty("inviteNewUsers")) - if (typeof message.inviteNewUsers !== "boolean") - return "inviteNewUsers: boolean expected"; - if (message.active != null && message.hasOwnProperty("active")) - if (typeof message.active !== "boolean") - return "active: boolean expected"; - if (message.isCloud != null && message.hasOwnProperty("isCloud")) - if (typeof message.isCloud !== "boolean") - return "isCloud: boolean expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.ssoServiceProviderId != null && message.hasOwnProperty('ssoServiceProviderId')) + if ( + !$util.isInteger(message.ssoServiceProviderId) && + !( + message.ssoServiceProviderId && + $util.isInteger(message.ssoServiceProviderId.low) && + $util.isInteger(message.ssoServiceProviderId.high) + ) + ) + return 'ssoServiceProviderId: integer|Long expected'; + if (message.nodeId != null && message.hasOwnProperty('nodeId')) + if ( + !$util.isInteger(message.nodeId) && + !(message.nodeId && $util.isInteger(message.nodeId.low) && $util.isInteger(message.nodeId.high)) + ) + return 'nodeId: integer|Long expected'; + if (message.name != null && message.hasOwnProperty('name')) + if (!$util.isString(message.name)) return 'name: string expected'; + if (message.spUrl != null && message.hasOwnProperty('spUrl')) + if (!$util.isString(message.spUrl)) return 'spUrl: string expected'; + if (message.inviteNewUsers != null && message.hasOwnProperty('inviteNewUsers')) + if (typeof message.inviteNewUsers !== 'boolean') return 'inviteNewUsers: boolean expected'; + if (message.active != null && message.hasOwnProperty('active')) + if (typeof message.active !== 'boolean') return 'active: boolean expected'; + if (message.isCloud != null && message.hasOwnProperty('isCloud')) + if (typeof message.isCloud !== 'boolean') return 'isCloud: boolean expected'; return null; }; @@ -73727,37 +76164,31 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.SsoService} SsoService */ SsoService.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.SsoService) - return object; + if (object instanceof $root.Enterprise.SsoService) return object; let message = new $root.Enterprise.SsoService(); if (object.ssoServiceProviderId != null) if ($util.Long) (message.ssoServiceProviderId = $util.Long.fromValue(object.ssoServiceProviderId)).unsigned = false; - else if (typeof object.ssoServiceProviderId === "string") + else if (typeof object.ssoServiceProviderId === 'string') message.ssoServiceProviderId = parseInt(object.ssoServiceProviderId, 10); - else if (typeof object.ssoServiceProviderId === "number") + else if (typeof object.ssoServiceProviderId === 'number') message.ssoServiceProviderId = object.ssoServiceProviderId; - else if (typeof object.ssoServiceProviderId === "object") - message.ssoServiceProviderId = new $util.LongBits(object.ssoServiceProviderId.low >>> 0, object.ssoServiceProviderId.high >>> 0).toNumber(); + else if (typeof object.ssoServiceProviderId === 'object') + message.ssoServiceProviderId = new $util.LongBits( + object.ssoServiceProviderId.low >>> 0, + object.ssoServiceProviderId.high >>> 0 + ).toNumber(); if (object.nodeId != null) - if ($util.Long) - (message.nodeId = $util.Long.fromValue(object.nodeId)).unsigned = false; - else if (typeof object.nodeId === "string") - message.nodeId = parseInt(object.nodeId, 10); - else if (typeof object.nodeId === "number") - message.nodeId = object.nodeId; - else if (typeof object.nodeId === "object") + if ($util.Long) (message.nodeId = $util.Long.fromValue(object.nodeId)).unsigned = false; + else if (typeof object.nodeId === 'string') message.nodeId = parseInt(object.nodeId, 10); + else if (typeof object.nodeId === 'number') message.nodeId = object.nodeId; + else if (typeof object.nodeId === 'object') message.nodeId = new $util.LongBits(object.nodeId.low >>> 0, object.nodeId.high >>> 0).toNumber(); - if (object.name != null) - message.name = String(object.name); - if (object.spUrl != null) - message.spUrl = String(object.spUrl); - if (object.inviteNewUsers != null) - message.inviteNewUsers = Boolean(object.inviteNewUsers); - if (object.active != null) - message.active = Boolean(object.active); - if (object.isCloud != null) - message.isCloud = Boolean(object.isCloud); + if (object.name != null) message.name = String(object.name); + if (object.spUrl != null) message.spUrl = String(object.spUrl); + if (object.inviteNewUsers != null) message.inviteNewUsers = Boolean(object.inviteNewUsers); + if (object.active != null) message.active = Boolean(object.active); + if (object.isCloud != null) message.isCloud = Boolean(object.isCloud); return message; }; @@ -73771,46 +76202,55 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ SsoService.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.ssoServiceProviderId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.ssoServiceProviderId = options.longs === String ? "0" : 0; + object.ssoServiceProviderId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.ssoServiceProviderId = options.longs === String ? '0' : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.nodeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.nodeId = options.longs === String ? "0" : 0; - object.name = ""; - object.spUrl = ""; + object.nodeId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.nodeId = options.longs === String ? '0' : 0; + object.name = ''; + object.spUrl = ''; object.inviteNewUsers = false; object.active = false; object.isCloud = false; } - if (message.ssoServiceProviderId != null && message.hasOwnProperty("ssoServiceProviderId")) - if (typeof message.ssoServiceProviderId === "number") - object.ssoServiceProviderId = options.longs === String ? String(message.ssoServiceProviderId) : message.ssoServiceProviderId; + if (message.ssoServiceProviderId != null && message.hasOwnProperty('ssoServiceProviderId')) + if (typeof message.ssoServiceProviderId === 'number') + object.ssoServiceProviderId = + options.longs === String ? String(message.ssoServiceProviderId) : message.ssoServiceProviderId; else - object.ssoServiceProviderId = options.longs === String ? $util.Long.prototype.toString.call(message.ssoServiceProviderId) : options.longs === Number ? new $util.LongBits(message.ssoServiceProviderId.low >>> 0, message.ssoServiceProviderId.high >>> 0).toNumber() : message.ssoServiceProviderId; - if (message.nodeId != null && message.hasOwnProperty("nodeId")) - if (typeof message.nodeId === "number") + object.ssoServiceProviderId = + options.longs === String + ? $util.Long.prototype.toString.call(message.ssoServiceProviderId) + : options.longs === Number + ? new $util.LongBits( + message.ssoServiceProviderId.low >>> 0, + message.ssoServiceProviderId.high >>> 0 + ).toNumber() + : message.ssoServiceProviderId; + if (message.nodeId != null && message.hasOwnProperty('nodeId')) + if (typeof message.nodeId === 'number') object.nodeId = options.longs === String ? String(message.nodeId) : message.nodeId; else - object.nodeId = options.longs === String ? $util.Long.prototype.toString.call(message.nodeId) : options.longs === Number ? new $util.LongBits(message.nodeId.low >>> 0, message.nodeId.high >>> 0).toNumber() : message.nodeId; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.spUrl != null && message.hasOwnProperty("spUrl")) - object.spUrl = message.spUrl; - if (message.inviteNewUsers != null && message.hasOwnProperty("inviteNewUsers")) + object.nodeId = + options.longs === String + ? $util.Long.prototype.toString.call(message.nodeId) + : options.longs === Number + ? new $util.LongBits(message.nodeId.low >>> 0, message.nodeId.high >>> 0).toNumber() + : message.nodeId; + if (message.name != null && message.hasOwnProperty('name')) object.name = message.name; + if (message.spUrl != null && message.hasOwnProperty('spUrl')) object.spUrl = message.spUrl; + if (message.inviteNewUsers != null && message.hasOwnProperty('inviteNewUsers')) object.inviteNewUsers = message.inviteNewUsers; - if (message.active != null && message.hasOwnProperty("active")) - object.active = message.active; - if (message.isCloud != null && message.hasOwnProperty("isCloud")) - object.isCloud = message.isCloud; + if (message.active != null && message.hasOwnProperty('active')) object.active = message.active; + if (message.isCloud != null && message.hasOwnProperty('isCloud')) object.isCloud = message.isCloud; return object; }; @@ -73835,16 +76275,15 @@ export const Enterprise = $root.Enterprise = (() => { */ SsoService.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.SsoService"; + return typeUrlPrefix + '/Enterprise.SsoService'; }; return SsoService; })(); - Enterprise.ReportFilterUser = (function() { - + Enterprise.ReportFilterUser = (function () { /** * Properties of a ReportFilterUser. * @memberof Enterprise @@ -73864,8 +76303,7 @@ export const Enterprise = $root.Enterprise = (() => { function ReportFilterUser(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -73882,7 +76320,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.ReportFilterUser * @instance */ - ReportFilterUser.prototype.email = ""; + ReportFilterUser.prototype.email = ''; /** * Creates a new ReportFilterUser instance using the specified properties. @@ -73906,12 +76344,11 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ ReportFilterUser.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.userId != null && Object.hasOwnProperty.call(message, "userId")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.userId); - if (message.email != null && Object.hasOwnProperty.call(message, "email")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.email); + if (!writer) writer = $Writer.create(); + if (message.userId != null && Object.hasOwnProperty.call(message, 'userId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int32(message.userId); + if (message.email != null && Object.hasOwnProperty.call(message, 'email')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.email); return writer; }; @@ -73940,23 +76377,23 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ReportFilterUser.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.ReportFilterUser(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.ReportFilterUser(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.userId = reader.int32(); break; } - case 2: { + case 2: { message.email = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -73973,8 +76410,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ReportFilterUser.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -73987,14 +76423,11 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ ReportFilterUser.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.userId != null && message.hasOwnProperty("userId")) - if (!$util.isInteger(message.userId)) - return "userId: integer expected"; - if (message.email != null && message.hasOwnProperty("email")) - if (!$util.isString(message.email)) - return "email: string expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.userId != null && message.hasOwnProperty('userId')) + if (!$util.isInteger(message.userId)) return 'userId: integer expected'; + if (message.email != null && message.hasOwnProperty('email')) + if (!$util.isString(message.email)) return 'email: string expected'; return null; }; @@ -74007,13 +76440,10 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.ReportFilterUser} ReportFilterUser */ ReportFilterUser.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.ReportFilterUser) - return object; + if (object instanceof $root.Enterprise.ReportFilterUser) return object; let message = new $root.Enterprise.ReportFilterUser(); - if (object.userId != null) - message.userId = object.userId | 0; - if (object.email != null) - message.email = String(object.email); + if (object.userId != null) message.userId = object.userId | 0; + if (object.email != null) message.email = String(object.email); return message; }; @@ -74027,17 +76457,14 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ ReportFilterUser.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { object.userId = 0; - object.email = ""; + object.email = ''; } - if (message.userId != null && message.hasOwnProperty("userId")) - object.userId = message.userId; - if (message.email != null && message.hasOwnProperty("email")) - object.email = message.email; + if (message.userId != null && message.hasOwnProperty('userId')) object.userId = message.userId; + if (message.email != null && message.hasOwnProperty('email')) object.email = message.email; return object; }; @@ -74062,16 +76489,15 @@ export const Enterprise = $root.Enterprise = (() => { */ ReportFilterUser.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.ReportFilterUser"; + return typeUrlPrefix + '/Enterprise.ReportFilterUser'; }; return ReportFilterUser; })(); - Enterprise.DeviceRequestForAdminApproval = (function() { - + Enterprise.DeviceRequestForAdminApproval = (function () { /** * Properties of a DeviceRequestForAdminApproval. * @memberof Enterprise @@ -74101,8 +76527,7 @@ export const Enterprise = $root.Enterprise = (() => { function DeviceRequestForAdminApproval(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -74111,7 +76536,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.DeviceRequestForAdminApproval * @instance */ - DeviceRequestForAdminApproval.prototype.deviceId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + DeviceRequestForAdminApproval.prototype.deviceId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * DeviceRequestForAdminApproval enterpriseUserId. @@ -74119,7 +76544,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.DeviceRequestForAdminApproval * @instance */ - DeviceRequestForAdminApproval.prototype.enterpriseUserId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + DeviceRequestForAdminApproval.prototype.enterpriseUserId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * DeviceRequestForAdminApproval encryptedDeviceToken. @@ -74143,7 +76568,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.DeviceRequestForAdminApproval * @instance */ - DeviceRequestForAdminApproval.prototype.deviceName = ""; + DeviceRequestForAdminApproval.prototype.deviceName = ''; /** * DeviceRequestForAdminApproval clientVersion. @@ -74151,7 +76576,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.DeviceRequestForAdminApproval * @instance */ - DeviceRequestForAdminApproval.prototype.clientVersion = ""; + DeviceRequestForAdminApproval.prototype.clientVersion = ''; /** * DeviceRequestForAdminApproval deviceType. @@ -74159,7 +76584,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.DeviceRequestForAdminApproval * @instance */ - DeviceRequestForAdminApproval.prototype.deviceType = ""; + DeviceRequestForAdminApproval.prototype.deviceType = ''; /** * DeviceRequestForAdminApproval date. @@ -74167,7 +76592,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.DeviceRequestForAdminApproval * @instance */ - DeviceRequestForAdminApproval.prototype.date = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + DeviceRequestForAdminApproval.prototype.date = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * DeviceRequestForAdminApproval ipAddress. @@ -74175,7 +76600,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.DeviceRequestForAdminApproval * @instance */ - DeviceRequestForAdminApproval.prototype.ipAddress = ""; + DeviceRequestForAdminApproval.prototype.ipAddress = ''; /** * DeviceRequestForAdminApproval location. @@ -74183,7 +76608,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.DeviceRequestForAdminApproval * @instance */ - DeviceRequestForAdminApproval.prototype.location = ""; + DeviceRequestForAdminApproval.prototype.location = ''; /** * DeviceRequestForAdminApproval email. @@ -74191,7 +76616,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.DeviceRequestForAdminApproval * @instance */ - DeviceRequestForAdminApproval.prototype.email = ""; + DeviceRequestForAdminApproval.prototype.email = ''; /** * DeviceRequestForAdminApproval accountUid. @@ -74223,32 +76648,31 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ DeviceRequestForAdminApproval.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.deviceId != null && Object.hasOwnProperty.call(message, "deviceId")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.deviceId); - if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "enterpriseUserId")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.enterpriseUserId); - if (message.encryptedDeviceToken != null && Object.hasOwnProperty.call(message, "encryptedDeviceToken")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.encryptedDeviceToken); - if (message.devicePublicKey != null && Object.hasOwnProperty.call(message, "devicePublicKey")) - writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.devicePublicKey); - if (message.deviceName != null && Object.hasOwnProperty.call(message, "deviceName")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.deviceName); - if (message.clientVersion != null && Object.hasOwnProperty.call(message, "clientVersion")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.clientVersion); - if (message.deviceType != null && Object.hasOwnProperty.call(message, "deviceType")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.deviceType); - if (message.date != null && Object.hasOwnProperty.call(message, "date")) - writer.uint32(/* id 8, wireType 0 =*/64).int64(message.date); - if (message.ipAddress != null && Object.hasOwnProperty.call(message, "ipAddress")) - writer.uint32(/* id 9, wireType 2 =*/74).string(message.ipAddress); - if (message.location != null && Object.hasOwnProperty.call(message, "location")) - writer.uint32(/* id 10, wireType 2 =*/82).string(message.location); - if (message.email != null && Object.hasOwnProperty.call(message, "email")) - writer.uint32(/* id 11, wireType 2 =*/90).string(message.email); - if (message.accountUid != null && Object.hasOwnProperty.call(message, "accountUid")) - writer.uint32(/* id 12, wireType 2 =*/98).bytes(message.accountUid); + if (!writer) writer = $Writer.create(); + if (message.deviceId != null && Object.hasOwnProperty.call(message, 'deviceId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int64(message.deviceId); + if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, 'enterpriseUserId')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int64(message.enterpriseUserId); + if (message.encryptedDeviceToken != null && Object.hasOwnProperty.call(message, 'encryptedDeviceToken')) + writer.uint32(/* id 3, wireType 2 =*/ 26).bytes(message.encryptedDeviceToken); + if (message.devicePublicKey != null && Object.hasOwnProperty.call(message, 'devicePublicKey')) + writer.uint32(/* id 4, wireType 2 =*/ 34).bytes(message.devicePublicKey); + if (message.deviceName != null && Object.hasOwnProperty.call(message, 'deviceName')) + writer.uint32(/* id 5, wireType 2 =*/ 42).string(message.deviceName); + if (message.clientVersion != null && Object.hasOwnProperty.call(message, 'clientVersion')) + writer.uint32(/* id 6, wireType 2 =*/ 50).string(message.clientVersion); + if (message.deviceType != null && Object.hasOwnProperty.call(message, 'deviceType')) + writer.uint32(/* id 7, wireType 2 =*/ 58).string(message.deviceType); + if (message.date != null && Object.hasOwnProperty.call(message, 'date')) + writer.uint32(/* id 8, wireType 0 =*/ 64).int64(message.date); + if (message.ipAddress != null && Object.hasOwnProperty.call(message, 'ipAddress')) + writer.uint32(/* id 9, wireType 2 =*/ 74).string(message.ipAddress); + if (message.location != null && Object.hasOwnProperty.call(message, 'location')) + writer.uint32(/* id 10, wireType 2 =*/ 82).string(message.location); + if (message.email != null && Object.hasOwnProperty.call(message, 'email')) + writer.uint32(/* id 11, wireType 2 =*/ 90).string(message.email); + if (message.accountUid != null && Object.hasOwnProperty.call(message, 'accountUid')) + writer.uint32(/* id 12, wireType 2 =*/ 98).bytes(message.accountUid); return writer; }; @@ -74277,63 +76701,63 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ DeviceRequestForAdminApproval.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.DeviceRequestForAdminApproval(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.DeviceRequestForAdminApproval(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.deviceId = reader.int64(); break; } - case 2: { + case 2: { message.enterpriseUserId = reader.int64(); break; } - case 3: { + case 3: { message.encryptedDeviceToken = reader.bytes(); break; } - case 4: { + case 4: { message.devicePublicKey = reader.bytes(); break; } - case 5: { + case 5: { message.deviceName = reader.string(); break; } - case 6: { + case 6: { message.clientVersion = reader.string(); break; } - case 7: { + case 7: { message.deviceType = reader.string(); break; } - case 8: { + case 8: { message.date = reader.int64(); break; } - case 9: { + case 9: { message.ipAddress = reader.string(); break; } - case 10: { + case 10: { message.location = reader.string(); break; } - case 11: { + case 11: { message.email = reader.string(); break; } - case 12: { + case 12: { message.accountUid = reader.bytes(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -74350,8 +76774,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ DeviceRequestForAdminApproval.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -74364,44 +76787,69 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ DeviceRequestForAdminApproval.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.deviceId != null && message.hasOwnProperty("deviceId")) - if (!$util.isInteger(message.deviceId) && !(message.deviceId && $util.isInteger(message.deviceId.low) && $util.isInteger(message.deviceId.high))) - return "deviceId: integer|Long expected"; - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (!$util.isInteger(message.enterpriseUserId) && !(message.enterpriseUserId && $util.isInteger(message.enterpriseUserId.low) && $util.isInteger(message.enterpriseUserId.high))) - return "enterpriseUserId: integer|Long expected"; - if (message.encryptedDeviceToken != null && message.hasOwnProperty("encryptedDeviceToken")) - if (!(message.encryptedDeviceToken && typeof message.encryptedDeviceToken.length === "number" || $util.isString(message.encryptedDeviceToken))) - return "encryptedDeviceToken: buffer expected"; - if (message.devicePublicKey != null && message.hasOwnProperty("devicePublicKey")) - if (!(message.devicePublicKey && typeof message.devicePublicKey.length === "number" || $util.isString(message.devicePublicKey))) - return "devicePublicKey: buffer expected"; - if (message.deviceName != null && message.hasOwnProperty("deviceName")) - if (!$util.isString(message.deviceName)) - return "deviceName: string expected"; - if (message.clientVersion != null && message.hasOwnProperty("clientVersion")) - if (!$util.isString(message.clientVersion)) - return "clientVersion: string expected"; - if (message.deviceType != null && message.hasOwnProperty("deviceType")) - if (!$util.isString(message.deviceType)) - return "deviceType: string expected"; - if (message.date != null && message.hasOwnProperty("date")) - if (!$util.isInteger(message.date) && !(message.date && $util.isInteger(message.date.low) && $util.isInteger(message.date.high))) - return "date: integer|Long expected"; - if (message.ipAddress != null && message.hasOwnProperty("ipAddress")) - if (!$util.isString(message.ipAddress)) - return "ipAddress: string expected"; - if (message.location != null && message.hasOwnProperty("location")) - if (!$util.isString(message.location)) - return "location: string expected"; - if (message.email != null && message.hasOwnProperty("email")) - if (!$util.isString(message.email)) - return "email: string expected"; - if (message.accountUid != null && message.hasOwnProperty("accountUid")) - if (!(message.accountUid && typeof message.accountUid.length === "number" || $util.isString(message.accountUid))) - return "accountUid: buffer expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.deviceId != null && message.hasOwnProperty('deviceId')) + if ( + !$util.isInteger(message.deviceId) && + !( + message.deviceId && + $util.isInteger(message.deviceId.low) && + $util.isInteger(message.deviceId.high) + ) + ) + return 'deviceId: integer|Long expected'; + if (message.enterpriseUserId != null && message.hasOwnProperty('enterpriseUserId')) + if ( + !$util.isInteger(message.enterpriseUserId) && + !( + message.enterpriseUserId && + $util.isInteger(message.enterpriseUserId.low) && + $util.isInteger(message.enterpriseUserId.high) + ) + ) + return 'enterpriseUserId: integer|Long expected'; + if (message.encryptedDeviceToken != null && message.hasOwnProperty('encryptedDeviceToken')) + if ( + !( + (message.encryptedDeviceToken && typeof message.encryptedDeviceToken.length === 'number') || + $util.isString(message.encryptedDeviceToken) + ) + ) + return 'encryptedDeviceToken: buffer expected'; + if (message.devicePublicKey != null && message.hasOwnProperty('devicePublicKey')) + if ( + !( + (message.devicePublicKey && typeof message.devicePublicKey.length === 'number') || + $util.isString(message.devicePublicKey) + ) + ) + return 'devicePublicKey: buffer expected'; + if (message.deviceName != null && message.hasOwnProperty('deviceName')) + if (!$util.isString(message.deviceName)) return 'deviceName: string expected'; + if (message.clientVersion != null && message.hasOwnProperty('clientVersion')) + if (!$util.isString(message.clientVersion)) return 'clientVersion: string expected'; + if (message.deviceType != null && message.hasOwnProperty('deviceType')) + if (!$util.isString(message.deviceType)) return 'deviceType: string expected'; + if (message.date != null && message.hasOwnProperty('date')) + if ( + !$util.isInteger(message.date) && + !(message.date && $util.isInteger(message.date.low) && $util.isInteger(message.date.high)) + ) + return 'date: integer|Long expected'; + if (message.ipAddress != null && message.hasOwnProperty('ipAddress')) + if (!$util.isString(message.ipAddress)) return 'ipAddress: string expected'; + if (message.location != null && message.hasOwnProperty('location')) + if (!$util.isString(message.location)) return 'location: string expected'; + if (message.email != null && message.hasOwnProperty('email')) + if (!$util.isString(message.email)) return 'email: string expected'; + if (message.accountUid != null && message.hasOwnProperty('accountUid')) + if ( + !( + (message.accountUid && typeof message.accountUid.length === 'number') || + $util.isString(message.accountUid) + ) + ) + return 'accountUid: buffer expected'; return null; }; @@ -74414,63 +76862,68 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.DeviceRequestForAdminApproval} DeviceRequestForAdminApproval */ DeviceRequestForAdminApproval.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.DeviceRequestForAdminApproval) - return object; + if (object instanceof $root.Enterprise.DeviceRequestForAdminApproval) return object; let message = new $root.Enterprise.DeviceRequestForAdminApproval(); if (object.deviceId != null) - if ($util.Long) - (message.deviceId = $util.Long.fromValue(object.deviceId)).unsigned = false; - else if (typeof object.deviceId === "string") - message.deviceId = parseInt(object.deviceId, 10); - else if (typeof object.deviceId === "number") - message.deviceId = object.deviceId; - else if (typeof object.deviceId === "object") - message.deviceId = new $util.LongBits(object.deviceId.low >>> 0, object.deviceId.high >>> 0).toNumber(); + if ($util.Long) (message.deviceId = $util.Long.fromValue(object.deviceId)).unsigned = false; + else if (typeof object.deviceId === 'string') message.deviceId = parseInt(object.deviceId, 10); + else if (typeof object.deviceId === 'number') message.deviceId = object.deviceId; + else if (typeof object.deviceId === 'object') + message.deviceId = new $util.LongBits( + object.deviceId.low >>> 0, + object.deviceId.high >>> 0 + ).toNumber(); if (object.enterpriseUserId != null) if ($util.Long) (message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId)).unsigned = false; - else if (typeof object.enterpriseUserId === "string") + else if (typeof object.enterpriseUserId === 'string') message.enterpriseUserId = parseInt(object.enterpriseUserId, 10); - else if (typeof object.enterpriseUserId === "number") + else if (typeof object.enterpriseUserId === 'number') message.enterpriseUserId = object.enterpriseUserId; - else if (typeof object.enterpriseUserId === "object") - message.enterpriseUserId = new $util.LongBits(object.enterpriseUserId.low >>> 0, object.enterpriseUserId.high >>> 0).toNumber(); + else if (typeof object.enterpriseUserId === 'object') + message.enterpriseUserId = new $util.LongBits( + object.enterpriseUserId.low >>> 0, + object.enterpriseUserId.high >>> 0 + ).toNumber(); if (object.encryptedDeviceToken != null) - if (typeof object.encryptedDeviceToken === "string") - $util.base64.decode(object.encryptedDeviceToken, message.encryptedDeviceToken = $util.newBuffer($util.base64.length(object.encryptedDeviceToken)), 0); + if (typeof object.encryptedDeviceToken === 'string') + $util.base64.decode( + object.encryptedDeviceToken, + (message.encryptedDeviceToken = $util.newBuffer( + $util.base64.length(object.encryptedDeviceToken) + )), + 0 + ); else if (object.encryptedDeviceToken.length >= 0) message.encryptedDeviceToken = object.encryptedDeviceToken; if (object.devicePublicKey != null) - if (typeof object.devicePublicKey === "string") - $util.base64.decode(object.devicePublicKey, message.devicePublicKey = $util.newBuffer($util.base64.length(object.devicePublicKey)), 0); - else if (object.devicePublicKey.length >= 0) - message.devicePublicKey = object.devicePublicKey; - if (object.deviceName != null) - message.deviceName = String(object.deviceName); - if (object.clientVersion != null) - message.clientVersion = String(object.clientVersion); - if (object.deviceType != null) - message.deviceType = String(object.deviceType); + if (typeof object.devicePublicKey === 'string') + $util.base64.decode( + object.devicePublicKey, + (message.devicePublicKey = $util.newBuffer($util.base64.length(object.devicePublicKey))), + 0 + ); + else if (object.devicePublicKey.length >= 0) message.devicePublicKey = object.devicePublicKey; + if (object.deviceName != null) message.deviceName = String(object.deviceName); + if (object.clientVersion != null) message.clientVersion = String(object.clientVersion); + if (object.deviceType != null) message.deviceType = String(object.deviceType); if (object.date != null) - if ($util.Long) - (message.date = $util.Long.fromValue(object.date)).unsigned = false; - else if (typeof object.date === "string") - message.date = parseInt(object.date, 10); - else if (typeof object.date === "number") - message.date = object.date; - else if (typeof object.date === "object") + if ($util.Long) (message.date = $util.Long.fromValue(object.date)).unsigned = false; + else if (typeof object.date === 'string') message.date = parseInt(object.date, 10); + else if (typeof object.date === 'number') message.date = object.date; + else if (typeof object.date === 'object') message.date = new $util.LongBits(object.date.low >>> 0, object.date.high >>> 0).toNumber(); - if (object.ipAddress != null) - message.ipAddress = String(object.ipAddress); - if (object.location != null) - message.location = String(object.location); - if (object.email != null) - message.email = String(object.email); + if (object.ipAddress != null) message.ipAddress = String(object.ipAddress); + if (object.location != null) message.location = String(object.location); + if (object.email != null) message.email = String(object.email); if (object.accountUid != null) - if (typeof object.accountUid === "string") - $util.base64.decode(object.accountUid, message.accountUid = $util.newBuffer($util.base64.length(object.accountUid)), 0); - else if (object.accountUid.length >= 0) - message.accountUid = object.accountUid; + if (typeof object.accountUid === 'string') + $util.base64.decode( + object.accountUid, + (message.accountUid = $util.newBuffer($util.base64.length(object.accountUid))), + 0 + ); + else if (object.accountUid.length >= 0) message.accountUid = object.accountUid; return message; }; @@ -74484,86 +76937,111 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ DeviceRequestForAdminApproval.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.deviceId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.deviceId = options.longs === String ? "0" : 0; + object.deviceId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.deviceId = options.longs === String ? '0' : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.enterpriseUserId = options.longs === String ? "0" : 0; - if (options.bytes === String) - object.encryptedDeviceToken = ""; + object.enterpriseUserId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.enterpriseUserId = options.longs === String ? '0' : 0; + if (options.bytes === String) object.encryptedDeviceToken = ''; else { object.encryptedDeviceToken = []; if (options.bytes !== Array) object.encryptedDeviceToken = $util.newBuffer(object.encryptedDeviceToken); } - if (options.bytes === String) - object.devicePublicKey = ""; + if (options.bytes === String) object.devicePublicKey = ''; else { object.devicePublicKey = []; - if (options.bytes !== Array) - object.devicePublicKey = $util.newBuffer(object.devicePublicKey); + if (options.bytes !== Array) object.devicePublicKey = $util.newBuffer(object.devicePublicKey); } - object.deviceName = ""; - object.clientVersion = ""; - object.deviceType = ""; + object.deviceName = ''; + object.clientVersion = ''; + object.deviceType = ''; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.date = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.date = options.longs === String ? "0" : 0; - object.ipAddress = ""; - object.location = ""; - object.email = ""; - if (options.bytes === String) - object.accountUid = ""; + object.date = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.date = options.longs === String ? '0' : 0; + object.ipAddress = ''; + object.location = ''; + object.email = ''; + if (options.bytes === String) object.accountUid = ''; else { object.accountUid = []; - if (options.bytes !== Array) - object.accountUid = $util.newBuffer(object.accountUid); + if (options.bytes !== Array) object.accountUid = $util.newBuffer(object.accountUid); } } - if (message.deviceId != null && message.hasOwnProperty("deviceId")) - if (typeof message.deviceId === "number") + if (message.deviceId != null && message.hasOwnProperty('deviceId')) + if (typeof message.deviceId === 'number') object.deviceId = options.longs === String ? String(message.deviceId) : message.deviceId; else - object.deviceId = options.longs === String ? $util.Long.prototype.toString.call(message.deviceId) : options.longs === Number ? new $util.LongBits(message.deviceId.low >>> 0, message.deviceId.high >>> 0).toNumber() : message.deviceId; - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (typeof message.enterpriseUserId === "number") - object.enterpriseUserId = options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; + object.deviceId = + options.longs === String + ? $util.Long.prototype.toString.call(message.deviceId) + : options.longs === Number + ? new $util.LongBits(message.deviceId.low >>> 0, message.deviceId.high >>> 0).toNumber() + : message.deviceId; + if (message.enterpriseUserId != null && message.hasOwnProperty('enterpriseUserId')) + if (typeof message.enterpriseUserId === 'number') + object.enterpriseUserId = + options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; else - object.enterpriseUserId = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseUserId) : options.longs === Number ? new $util.LongBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0).toNumber() : message.enterpriseUserId; - if (message.encryptedDeviceToken != null && message.hasOwnProperty("encryptedDeviceToken")) - object.encryptedDeviceToken = options.bytes === String ? $util.base64.encode(message.encryptedDeviceToken, 0, message.encryptedDeviceToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedDeviceToken) : message.encryptedDeviceToken; - if (message.devicePublicKey != null && message.hasOwnProperty("devicePublicKey")) - object.devicePublicKey = options.bytes === String ? $util.base64.encode(message.devicePublicKey, 0, message.devicePublicKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.devicePublicKey) : message.devicePublicKey; - if (message.deviceName != null && message.hasOwnProperty("deviceName")) + object.enterpriseUserId = + options.longs === String + ? $util.Long.prototype.toString.call(message.enterpriseUserId) + : options.longs === Number + ? new $util.LongBits( + message.enterpriseUserId.low >>> 0, + message.enterpriseUserId.high >>> 0 + ).toNumber() + : message.enterpriseUserId; + if (message.encryptedDeviceToken != null && message.hasOwnProperty('encryptedDeviceToken')) + object.encryptedDeviceToken = + options.bytes === String + ? $util.base64.encode(message.encryptedDeviceToken, 0, message.encryptedDeviceToken.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.encryptedDeviceToken) + : message.encryptedDeviceToken; + if (message.devicePublicKey != null && message.hasOwnProperty('devicePublicKey')) + object.devicePublicKey = + options.bytes === String + ? $util.base64.encode(message.devicePublicKey, 0, message.devicePublicKey.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.devicePublicKey) + : message.devicePublicKey; + if (message.deviceName != null && message.hasOwnProperty('deviceName')) object.deviceName = message.deviceName; - if (message.clientVersion != null && message.hasOwnProperty("clientVersion")) + if (message.clientVersion != null && message.hasOwnProperty('clientVersion')) object.clientVersion = message.clientVersion; - if (message.deviceType != null && message.hasOwnProperty("deviceType")) + if (message.deviceType != null && message.hasOwnProperty('deviceType')) object.deviceType = message.deviceType; - if (message.date != null && message.hasOwnProperty("date")) - if (typeof message.date === "number") + if (message.date != null && message.hasOwnProperty('date')) + if (typeof message.date === 'number') object.date = options.longs === String ? String(message.date) : message.date; else - object.date = options.longs === String ? $util.Long.prototype.toString.call(message.date) : options.longs === Number ? new $util.LongBits(message.date.low >>> 0, message.date.high >>> 0).toNumber() : message.date; - if (message.ipAddress != null && message.hasOwnProperty("ipAddress")) - object.ipAddress = message.ipAddress; - if (message.location != null && message.hasOwnProperty("location")) - object.location = message.location; - if (message.email != null && message.hasOwnProperty("email")) - object.email = message.email; - if (message.accountUid != null && message.hasOwnProperty("accountUid")) - object.accountUid = options.bytes === String ? $util.base64.encode(message.accountUid, 0, message.accountUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.accountUid) : message.accountUid; + object.date = + options.longs === String + ? $util.Long.prototype.toString.call(message.date) + : options.longs === Number + ? new $util.LongBits(message.date.low >>> 0, message.date.high >>> 0).toNumber() + : message.date; + if (message.ipAddress != null && message.hasOwnProperty('ipAddress')) object.ipAddress = message.ipAddress; + if (message.location != null && message.hasOwnProperty('location')) object.location = message.location; + if (message.email != null && message.hasOwnProperty('email')) object.email = message.email; + if (message.accountUid != null && message.hasOwnProperty('accountUid')) + object.accountUid = + options.bytes === String + ? $util.base64.encode(message.accountUid, 0, message.accountUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.accountUid) + : message.accountUid; return object; }; @@ -74588,9 +77066,9 @@ export const Enterprise = $root.Enterprise = (() => { */ DeviceRequestForAdminApproval.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.DeviceRequestForAdminApproval"; + return typeUrlPrefix + '/Enterprise.DeviceRequestForAdminApproval'; }; return DeviceRequestForAdminApproval; @@ -74625,32 +77103,33 @@ export const Enterprise = $root.Enterprise = (() => { * @property {number} COMPLIANCE_REPORT_CRITERIA_AND_FILTER=22 COMPLIANCE_REPORT_CRITERIA_AND_FILTER value * @property {number} COMPLIANCE_REPORTS=23 COMPLIANCE_REPORTS value */ - Enterprise.EnterpriseDataEntity = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "UNKNOWN"] = 0; - values[valuesById[1] = "NODES"] = 1; - values[valuesById[2] = "ROLES"] = 2; - values[valuesById[3] = "USERS"] = 3; - values[valuesById[4] = "TEAMS"] = 4; - values[valuesById[5] = "TEAM_USERS"] = 5; - values[valuesById[6] = "ROLE_USERS"] = 6; - values[valuesById[7] = "ROLE_PRIVILEGES"] = 7; - values[valuesById[8] = "ROLE_ENFORCEMENTS"] = 8; - values[valuesById[9] = "ROLE_TEAMS"] = 9; - values[valuesById[10] = "LICENSES"] = 10; - values[valuesById[11] = "MANAGED_NODES"] = 11; - values[valuesById[12] = "MANAGED_COMPANIES"] = 12; - values[valuesById[13] = "BRIDGES"] = 13; - values[valuesById[14] = "SCIMS"] = 14; - values[valuesById[15] = "EMAIL_PROVISION"] = 15; - values[valuesById[16] = "QUEUED_TEAMS"] = 16; - values[valuesById[17] = "QUEUED_TEAM_USERS"] = 17; - values[valuesById[18] = "SSO_SERVICES"] = 18; - values[valuesById[19] = "REPORT_FILTER_USERS"] = 19; - values[valuesById[20] = "DEVICES_REQUEST_FOR_ADMIN_APPROVAL"] = 20; - values[valuesById[21] = "USER_ALIASES"] = 21; - values[valuesById[22] = "COMPLIANCE_REPORT_CRITERIA_AND_FILTER"] = 22; - values[valuesById[23] = "COMPLIANCE_REPORTS"] = 23; + Enterprise.EnterpriseDataEntity = (function () { + const valuesById = {}, + values = Object.create(valuesById); + values[(valuesById[0] = 'UNKNOWN')] = 0; + values[(valuesById[1] = 'NODES')] = 1; + values[(valuesById[2] = 'ROLES')] = 2; + values[(valuesById[3] = 'USERS')] = 3; + values[(valuesById[4] = 'TEAMS')] = 4; + values[(valuesById[5] = 'TEAM_USERS')] = 5; + values[(valuesById[6] = 'ROLE_USERS')] = 6; + values[(valuesById[7] = 'ROLE_PRIVILEGES')] = 7; + values[(valuesById[8] = 'ROLE_ENFORCEMENTS')] = 8; + values[(valuesById[9] = 'ROLE_TEAMS')] = 9; + values[(valuesById[10] = 'LICENSES')] = 10; + values[(valuesById[11] = 'MANAGED_NODES')] = 11; + values[(valuesById[12] = 'MANAGED_COMPANIES')] = 12; + values[(valuesById[13] = 'BRIDGES')] = 13; + values[(valuesById[14] = 'SCIMS')] = 14; + values[(valuesById[15] = 'EMAIL_PROVISION')] = 15; + values[(valuesById[16] = 'QUEUED_TEAMS')] = 16; + values[(valuesById[17] = 'QUEUED_TEAM_USERS')] = 17; + values[(valuesById[18] = 'SSO_SERVICES')] = 18; + values[(valuesById[19] = 'REPORT_FILTER_USERS')] = 19; + values[(valuesById[20] = 'DEVICES_REQUEST_FOR_ADMIN_APPROVAL')] = 20; + values[(valuesById[21] = 'USER_ALIASES')] = 21; + values[(valuesById[22] = 'COMPLIANCE_REPORT_CRITERIA_AND_FILTER')] = 22; + values[(valuesById[23] = 'COMPLIANCE_REPORTS')] = 23; return values; })(); @@ -74661,15 +77140,15 @@ export const Enterprise = $root.Enterprise = (() => { * @property {number} KEEP=0 KEEP value * @property {number} CLEAR=1 CLEAR value */ - Enterprise.CacheStatus = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "KEEP"] = 0; - values[valuesById[1] = "CLEAR"] = 1; + Enterprise.CacheStatus = (function () { + const valuesById = {}, + values = Object.create(valuesById); + values[(valuesById[0] = 'KEEP')] = 0; + values[(valuesById[1] = 'CLEAR')] = 1; return values; })(); - Enterprise.EnterpriseData = (function() { - + Enterprise.EnterpriseData = (function () { /** * Properties of an EnterpriseData. * @memberof Enterprise @@ -74691,8 +77170,7 @@ export const Enterprise = $root.Enterprise = (() => { this.data = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -74709,7 +77187,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.EnterpriseData * @instance */ - EnterpriseData.prototype["delete"] = false; + EnterpriseData.prototype['delete'] = false; /** * EnterpriseData data. @@ -74741,15 +77219,14 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ EnterpriseData.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.entity != null && Object.hasOwnProperty.call(message, "entity")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.entity); - if (message["delete"] != null && Object.hasOwnProperty.call(message, "delete")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message["delete"]); + if (!writer) writer = $Writer.create(); + if (message.entity != null && Object.hasOwnProperty.call(message, 'entity')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int32(message.entity); + if (message['delete'] != null && Object.hasOwnProperty.call(message, 'delete')) + writer.uint32(/* id 2, wireType 0 =*/ 16).bool(message['delete']); if (message.data != null && message.data.length) for (let i = 0; i < message.data.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.data[i]); + writer.uint32(/* id 3, wireType 2 =*/ 26).bytes(message.data[i]); return writer; }; @@ -74778,29 +77255,28 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ EnterpriseData.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.EnterpriseData(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.EnterpriseData(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.entity = reader.int32(); break; } - case 2: { - message["delete"] = reader.bool(); + case 2: { + message['delete'] = reader.bool(); break; } - case 3: { - if (!(message.data && message.data.length)) - message.data = []; + case 3: { + if (!(message.data && message.data.length)) message.data = []; message.data.push(reader.bytes()); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -74817,8 +77293,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ EnterpriseData.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -74831,178 +77306,180 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ EnterpriseData.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.entity != null && message.hasOwnProperty("entity")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.entity != null && message.hasOwnProperty('entity')) switch (message.entity) { + default: + return 'entity: enum value expected'; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + case 10: + case 11: + case 12: + case 13: + case 14: + case 15: + case 16: + case 17: + case 18: + case 19: + case 20: + case 21: + case 22: + case 23: + break; + } + if (message['delete'] != null && message.hasOwnProperty('delete')) + if (typeof message['delete'] !== 'boolean') return 'delete: boolean expected'; + if (message.data != null && message.hasOwnProperty('data')) { + if (!Array.isArray(message.data)) return 'data: array expected'; + for (let i = 0; i < message.data.length; ++i) + if ( + !( + (message.data[i] && typeof message.data[i].length === 'number') || + $util.isString(message.data[i]) + ) + ) + return 'data: buffer[] expected'; + } + return null; + }; + + /** + * Creates an EnterpriseData message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof Enterprise.EnterpriseData + * @static + * @param {Object.} object Plain object + * @returns {Enterprise.EnterpriseData} EnterpriseData + */ + EnterpriseData.fromObject = function fromObject(object) { + if (object instanceof $root.Enterprise.EnterpriseData) return object; + let message = new $root.Enterprise.EnterpriseData(); + switch (object.entity) { default: - return "entity: enum value expected"; + if (typeof object.entity === 'number') { + message.entity = object.entity; + break; + } + break; + case 'UNKNOWN': case 0: + message.entity = 0; + break; + case 'NODES': case 1: + message.entity = 1; + break; + case 'ROLES': case 2: + message.entity = 2; + break; + case 'USERS': case 3: + message.entity = 3; + break; + case 'TEAMS': case 4: + message.entity = 4; + break; + case 'TEAM_USERS': case 5: + message.entity = 5; + break; + case 'ROLE_USERS': case 6: + message.entity = 6; + break; + case 'ROLE_PRIVILEGES': case 7: + message.entity = 7; + break; + case 'ROLE_ENFORCEMENTS': case 8: + message.entity = 8; + break; + case 'ROLE_TEAMS': case 9: + message.entity = 9; + break; + case 'LICENSES': case 10: + message.entity = 10; + break; + case 'MANAGED_NODES': case 11: + message.entity = 11; + break; + case 'MANAGED_COMPANIES': case 12: + message.entity = 12; + break; + case 'BRIDGES': case 13: + message.entity = 13; + break; + case 'SCIMS': case 14: + message.entity = 14; + break; + case 'EMAIL_PROVISION': case 15: + message.entity = 15; + break; + case 'QUEUED_TEAMS': case 16: + message.entity = 16; + break; + case 'QUEUED_TEAM_USERS': case 17: + message.entity = 17; + break; + case 'SSO_SERVICES': case 18: + message.entity = 18; + break; + case 'REPORT_FILTER_USERS': case 19: + message.entity = 19; + break; + case 'DEVICES_REQUEST_FOR_ADMIN_APPROVAL': case 20: + message.entity = 20; + break; + case 'USER_ALIASES': case 21: + message.entity = 21; + break; + case 'COMPLIANCE_REPORT_CRITERIA_AND_FILTER': case 22: + message.entity = 22; + break; + case 'COMPLIANCE_REPORTS': case 23: + message.entity = 23; break; - } - if (message["delete"] != null && message.hasOwnProperty("delete")) - if (typeof message["delete"] !== "boolean") - return "delete: boolean expected"; - if (message.data != null && message.hasOwnProperty("data")) { - if (!Array.isArray(message.data)) - return "data: array expected"; - for (let i = 0; i < message.data.length; ++i) - if (!(message.data[i] && typeof message.data[i].length === "number" || $util.isString(message.data[i]))) - return "data: buffer[] expected"; } - return null; - }; - - /** - * Creates an EnterpriseData message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof Enterprise.EnterpriseData - * @static - * @param {Object.} object Plain object - * @returns {Enterprise.EnterpriseData} EnterpriseData - */ - EnterpriseData.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.EnterpriseData) - return object; - let message = new $root.Enterprise.EnterpriseData(); - switch (object.entity) { - default: - if (typeof object.entity === "number") { - message.entity = object.entity; - break; - } - break; - case "UNKNOWN": - case 0: - message.entity = 0; - break; - case "NODES": - case 1: - message.entity = 1; - break; - case "ROLES": - case 2: - message.entity = 2; - break; - case "USERS": - case 3: - message.entity = 3; - break; - case "TEAMS": - case 4: - message.entity = 4; - break; - case "TEAM_USERS": - case 5: - message.entity = 5; - break; - case "ROLE_USERS": - case 6: - message.entity = 6; - break; - case "ROLE_PRIVILEGES": - case 7: - message.entity = 7; - break; - case "ROLE_ENFORCEMENTS": - case 8: - message.entity = 8; - break; - case "ROLE_TEAMS": - case 9: - message.entity = 9; - break; - case "LICENSES": - case 10: - message.entity = 10; - break; - case "MANAGED_NODES": - case 11: - message.entity = 11; - break; - case "MANAGED_COMPANIES": - case 12: - message.entity = 12; - break; - case "BRIDGES": - case 13: - message.entity = 13; - break; - case "SCIMS": - case 14: - message.entity = 14; - break; - case "EMAIL_PROVISION": - case 15: - message.entity = 15; - break; - case "QUEUED_TEAMS": - case 16: - message.entity = 16; - break; - case "QUEUED_TEAM_USERS": - case 17: - message.entity = 17; - break; - case "SSO_SERVICES": - case 18: - message.entity = 18; - break; - case "REPORT_FILTER_USERS": - case 19: - message.entity = 19; - break; - case "DEVICES_REQUEST_FOR_ADMIN_APPROVAL": - case 20: - message.entity = 20; - break; - case "USER_ALIASES": - case 21: - message.entity = 21; - break; - case "COMPLIANCE_REPORT_CRITERIA_AND_FILTER": - case 22: - message.entity = 22; - break; - case "COMPLIANCE_REPORTS": - case 23: - message.entity = 23; - break; - } - if (object["delete"] != null) - message["delete"] = Boolean(object["delete"]); + if (object['delete'] != null) message['delete'] = Boolean(object['delete']); if (object.data) { - if (!Array.isArray(object.data)) - throw TypeError(".Enterprise.EnterpriseData.data: array expected"); + if (!Array.isArray(object.data)) throw TypeError('.Enterprise.EnterpriseData.data: array expected'); message.data = []; for (let i = 0; i < object.data.length; ++i) - if (typeof object.data[i] === "string") - $util.base64.decode(object.data[i], message.data[i] = $util.newBuffer($util.base64.length(object.data[i])), 0); - else if (object.data[i].length >= 0) - message.data[i] = object.data[i]; + if (typeof object.data[i] === 'string') + $util.base64.decode( + object.data[i], + (message.data[i] = $util.newBuffer($util.base64.length(object.data[i]))), + 0 + ); + else if (object.data[i].length >= 0) message.data[i] = object.data[i]; } return message; }; @@ -75017,23 +77494,30 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ EnterpriseData.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.data = []; + if (options.arrays || options.defaults) object.data = []; if (options.defaults) { - object.entity = options.enums === String ? "UNKNOWN" : 0; - object["delete"] = false; + object.entity = options.enums === String ? 'UNKNOWN' : 0; + object['delete'] = false; } - if (message.entity != null && message.hasOwnProperty("entity")) - object.entity = options.enums === String ? $root.Enterprise.EnterpriseDataEntity[message.entity] === undefined ? message.entity : $root.Enterprise.EnterpriseDataEntity[message.entity] : message.entity; - if (message["delete"] != null && message.hasOwnProperty("delete")) - object["delete"] = message["delete"]; + if (message.entity != null && message.hasOwnProperty('entity')) + object.entity = + options.enums === String + ? $root.Enterprise.EnterpriseDataEntity[message.entity] === undefined + ? message.entity + : $root.Enterprise.EnterpriseDataEntity[message.entity] + : message.entity; + if (message['delete'] != null && message.hasOwnProperty('delete')) object['delete'] = message['delete']; if (message.data && message.data.length) { object.data = []; for (let j = 0; j < message.data.length; ++j) - object.data[j] = options.bytes === String ? $util.base64.encode(message.data[j], 0, message.data[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.data[j]) : message.data[j]; + object.data[j] = + options.bytes === String + ? $util.base64.encode(message.data[j], 0, message.data[j].length) + : options.bytes === Array + ? Array.prototype.slice.call(message.data[j]) + : message.data[j]; } return object; }; @@ -75059,16 +77543,15 @@ export const Enterprise = $root.Enterprise = (() => { */ EnterpriseData.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.EnterpriseData"; + return typeUrlPrefix + '/Enterprise.EnterpriseData'; }; return EnterpriseData; })(); - Enterprise.EnterpriseDataResponse = (function() { - + Enterprise.EnterpriseDataResponse = (function () { /** * Properties of an EnterpriseDataResponse. * @memberof Enterprise @@ -75092,8 +77575,7 @@ export const Enterprise = $root.Enterprise = (() => { this.data = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -75158,19 +77640,24 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ EnterpriseDataResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.continuationToken != null && Object.hasOwnProperty.call(message, "continuationToken")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.continuationToken); - if (message.hasMore != null && Object.hasOwnProperty.call(message, "hasMore")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.hasMore); - if (message.cacheStatus != null && Object.hasOwnProperty.call(message, "cacheStatus")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.cacheStatus); + if (!writer) writer = $Writer.create(); + if (message.continuationToken != null && Object.hasOwnProperty.call(message, 'continuationToken')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.continuationToken); + if (message.hasMore != null && Object.hasOwnProperty.call(message, 'hasMore')) + writer.uint32(/* id 2, wireType 0 =*/ 16).bool(message.hasMore); + if (message.cacheStatus != null && Object.hasOwnProperty.call(message, 'cacheStatus')) + writer.uint32(/* id 3, wireType 0 =*/ 24).int32(message.cacheStatus); if (message.data != null && message.data.length) for (let i = 0; i < message.data.length; ++i) - $root.Enterprise.EnterpriseData.encode(message.data[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.generalData != null && Object.hasOwnProperty.call(message, "generalData")) - $root.Enterprise.GeneralDataEntity.encode(message.generalData, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + $root.Enterprise.EnterpriseData.encode( + message.data[i], + writer.uint32(/* id 4, wireType 2 =*/ 34).fork() + ).ldelim(); + if (message.generalData != null && Object.hasOwnProperty.call(message, 'generalData')) + $root.Enterprise.GeneralDataEntity.encode( + message.generalData, + writer.uint32(/* id 5, wireType 2 =*/ 42).fork() + ).ldelim(); return writer; }; @@ -75199,37 +77686,36 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ EnterpriseDataResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.EnterpriseDataResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.EnterpriseDataResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.continuationToken = reader.bytes(); break; } - case 2: { + case 2: { message.hasMore = reader.bool(); break; } - case 3: { + case 3: { message.cacheStatus = reader.int32(); break; } - case 4: { - if (!(message.data && message.data.length)) - message.data = []; + case 4: { + if (!(message.data && message.data.length)) message.data = []; message.data.push($root.Enterprise.EnterpriseData.decode(reader, reader.uint32())); break; } - case 5: { + case 5: { message.generalData = $root.Enterprise.GeneralDataEntity.decode(reader, reader.uint32()); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -75246,8 +77732,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ EnterpriseDataResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -75260,35 +77745,35 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ EnterpriseDataResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.continuationToken != null && message.hasOwnProperty("continuationToken")) - if (!(message.continuationToken && typeof message.continuationToken.length === "number" || $util.isString(message.continuationToken))) - return "continuationToken: buffer expected"; - if (message.hasMore != null && message.hasOwnProperty("hasMore")) - if (typeof message.hasMore !== "boolean") - return "hasMore: boolean expected"; - if (message.cacheStatus != null && message.hasOwnProperty("cacheStatus")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.continuationToken != null && message.hasOwnProperty('continuationToken')) + if ( + !( + (message.continuationToken && typeof message.continuationToken.length === 'number') || + $util.isString(message.continuationToken) + ) + ) + return 'continuationToken: buffer expected'; + if (message.hasMore != null && message.hasOwnProperty('hasMore')) + if (typeof message.hasMore !== 'boolean') return 'hasMore: boolean expected'; + if (message.cacheStatus != null && message.hasOwnProperty('cacheStatus')) switch (message.cacheStatus) { - default: - return "cacheStatus: enum value expected"; - case 0: - case 1: - break; + default: + return 'cacheStatus: enum value expected'; + case 0: + case 1: + break; } - if (message.data != null && message.hasOwnProperty("data")) { - if (!Array.isArray(message.data)) - return "data: array expected"; + if (message.data != null && message.hasOwnProperty('data')) { + if (!Array.isArray(message.data)) return 'data: array expected'; for (let i = 0; i < message.data.length; ++i) { let error = $root.Enterprise.EnterpriseData.verify(message.data[i]); - if (error) - return "data." + error; + if (error) return 'data.' + error; } } - if (message.generalData != null && message.hasOwnProperty("generalData")) { + if (message.generalData != null && message.hasOwnProperty('generalData')) { let error = $root.Enterprise.GeneralDataEntity.verify(message.generalData); - if (error) - return "generalData." + error; + if (error) return 'generalData.' + error; } return null; }; @@ -75302,45 +77787,46 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.EnterpriseDataResponse} EnterpriseDataResponse */ EnterpriseDataResponse.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.EnterpriseDataResponse) - return object; + if (object instanceof $root.Enterprise.EnterpriseDataResponse) return object; let message = new $root.Enterprise.EnterpriseDataResponse(); if (object.continuationToken != null) - if (typeof object.continuationToken === "string") - $util.base64.decode(object.continuationToken, message.continuationToken = $util.newBuffer($util.base64.length(object.continuationToken)), 0); - else if (object.continuationToken.length >= 0) - message.continuationToken = object.continuationToken; - if (object.hasMore != null) - message.hasMore = Boolean(object.hasMore); + if (typeof object.continuationToken === 'string') + $util.base64.decode( + object.continuationToken, + (message.continuationToken = $util.newBuffer($util.base64.length(object.continuationToken))), + 0 + ); + else if (object.continuationToken.length >= 0) message.continuationToken = object.continuationToken; + if (object.hasMore != null) message.hasMore = Boolean(object.hasMore); switch (object.cacheStatus) { - default: - if (typeof object.cacheStatus === "number") { - message.cacheStatus = object.cacheStatus; + default: + if (typeof object.cacheStatus === 'number') { + message.cacheStatus = object.cacheStatus; + break; + } + break; + case 'KEEP': + case 0: + message.cacheStatus = 0; + break; + case 'CLEAR': + case 1: + message.cacheStatus = 1; break; - } - break; - case "KEEP": - case 0: - message.cacheStatus = 0; - break; - case "CLEAR": - case 1: - message.cacheStatus = 1; - break; } if (object.data) { if (!Array.isArray(object.data)) - throw TypeError(".Enterprise.EnterpriseDataResponse.data: array expected"); + throw TypeError('.Enterprise.EnterpriseDataResponse.data: array expected'); message.data = []; for (let i = 0; i < object.data.length; ++i) { - if (typeof object.data[i] !== "object") - throw TypeError(".Enterprise.EnterpriseDataResponse.data: object expected"); + if (typeof object.data[i] !== 'object') + throw TypeError('.Enterprise.EnterpriseDataResponse.data: object expected'); message.data[i] = $root.Enterprise.EnterpriseData.fromObject(object.data[i]); } } if (object.generalData != null) { - if (typeof object.generalData !== "object") - throw TypeError(".Enterprise.EnterpriseDataResponse.generalData: object expected"); + if (typeof object.generalData !== 'object') + throw TypeError('.Enterprise.EnterpriseDataResponse.generalData: object expected'); message.generalData = $root.Enterprise.GeneralDataEntity.fromObject(object.generalData); } return message; @@ -75356,35 +77842,40 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ EnterpriseDataResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.data = []; + if (options.arrays || options.defaults) object.data = []; if (options.defaults) { - if (options.bytes === String) - object.continuationToken = ""; + if (options.bytes === String) object.continuationToken = ''; else { object.continuationToken = []; - if (options.bytes !== Array) - object.continuationToken = $util.newBuffer(object.continuationToken); + if (options.bytes !== Array) object.continuationToken = $util.newBuffer(object.continuationToken); } object.hasMore = false; - object.cacheStatus = options.enums === String ? "KEEP" : 0; + object.cacheStatus = options.enums === String ? 'KEEP' : 0; object.generalData = null; } - if (message.continuationToken != null && message.hasOwnProperty("continuationToken")) - object.continuationToken = options.bytes === String ? $util.base64.encode(message.continuationToken, 0, message.continuationToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.continuationToken) : message.continuationToken; - if (message.hasMore != null && message.hasOwnProperty("hasMore")) - object.hasMore = message.hasMore; - if (message.cacheStatus != null && message.hasOwnProperty("cacheStatus")) - object.cacheStatus = options.enums === String ? $root.Enterprise.CacheStatus[message.cacheStatus] === undefined ? message.cacheStatus : $root.Enterprise.CacheStatus[message.cacheStatus] : message.cacheStatus; + if (message.continuationToken != null && message.hasOwnProperty('continuationToken')) + object.continuationToken = + options.bytes === String + ? $util.base64.encode(message.continuationToken, 0, message.continuationToken.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.continuationToken) + : message.continuationToken; + if (message.hasMore != null && message.hasOwnProperty('hasMore')) object.hasMore = message.hasMore; + if (message.cacheStatus != null && message.hasOwnProperty('cacheStatus')) + object.cacheStatus = + options.enums === String + ? $root.Enterprise.CacheStatus[message.cacheStatus] === undefined + ? message.cacheStatus + : $root.Enterprise.CacheStatus[message.cacheStatus] + : message.cacheStatus; if (message.data && message.data.length) { object.data = []; for (let j = 0; j < message.data.length; ++j) object.data[j] = $root.Enterprise.EnterpriseData.toObject(message.data[j], options); } - if (message.generalData != null && message.hasOwnProperty("generalData")) + if (message.generalData != null && message.hasOwnProperty('generalData')) object.generalData = $root.Enterprise.GeneralDataEntity.toObject(message.generalData, options); return object; }; @@ -75410,16 +77901,15 @@ export const Enterprise = $root.Enterprise = (() => { */ EnterpriseDataResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.EnterpriseDataResponse"; + return typeUrlPrefix + '/Enterprise.EnterpriseDataResponse'; }; return EnterpriseDataResponse; })(); - Enterprise.BackupRequest = (function() { - + Enterprise.BackupRequest = (function () { /** * Properties of a BackupRequest. * @memberof Enterprise @@ -75438,8 +77928,7 @@ export const Enterprise = $root.Enterprise = (() => { function BackupRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -75472,10 +77961,9 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ BackupRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.continuationToken != null && Object.hasOwnProperty.call(message, "continuationToken")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.continuationToken); + if (!writer) writer = $Writer.create(); + if (message.continuationToken != null && Object.hasOwnProperty.call(message, 'continuationToken')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.continuationToken); return writer; }; @@ -75504,19 +77992,19 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ BackupRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.BackupRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.BackupRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.continuationToken = reader.bytes(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -75533,8 +78021,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ BackupRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -75547,11 +78034,15 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ BackupRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.continuationToken != null && message.hasOwnProperty("continuationToken")) - if (!(message.continuationToken && typeof message.continuationToken.length === "number" || $util.isString(message.continuationToken))) - return "continuationToken: buffer expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.continuationToken != null && message.hasOwnProperty('continuationToken')) + if ( + !( + (message.continuationToken && typeof message.continuationToken.length === 'number') || + $util.isString(message.continuationToken) + ) + ) + return 'continuationToken: buffer expected'; return null; }; @@ -75564,14 +78055,16 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.BackupRequest} BackupRequest */ BackupRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.BackupRequest) - return object; + if (object instanceof $root.Enterprise.BackupRequest) return object; let message = new $root.Enterprise.BackupRequest(); if (object.continuationToken != null) - if (typeof object.continuationToken === "string") - $util.base64.decode(object.continuationToken, message.continuationToken = $util.newBuffer($util.base64.length(object.continuationToken)), 0); - else if (object.continuationToken.length >= 0) - message.continuationToken = object.continuationToken; + if (typeof object.continuationToken === 'string') + $util.base64.decode( + object.continuationToken, + (message.continuationToken = $util.newBuffer($util.base64.length(object.continuationToken))), + 0 + ); + else if (object.continuationToken.length >= 0) message.continuationToken = object.continuationToken; return message; }; @@ -75585,19 +78078,21 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ BackupRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) - if (options.bytes === String) - object.continuationToken = ""; + if (options.bytes === String) object.continuationToken = ''; else { object.continuationToken = []; - if (options.bytes !== Array) - object.continuationToken = $util.newBuffer(object.continuationToken); + if (options.bytes !== Array) object.continuationToken = $util.newBuffer(object.continuationToken); } - if (message.continuationToken != null && message.hasOwnProperty("continuationToken")) - object.continuationToken = options.bytes === String ? $util.base64.encode(message.continuationToken, 0, message.continuationToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.continuationToken) : message.continuationToken; + if (message.continuationToken != null && message.hasOwnProperty('continuationToken')) + object.continuationToken = + options.bytes === String + ? $util.base64.encode(message.continuationToken, 0, message.continuationToken.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.continuationToken) + : message.continuationToken; return object; }; @@ -75622,9 +78117,9 @@ export const Enterprise = $root.Enterprise = (() => { */ BackupRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.BackupRequest"; + return typeUrlPrefix + '/Enterprise.BackupRequest'; }; return BackupRequest; @@ -75640,13 +78135,14 @@ export const Enterprise = $root.Enterprise = (() => { * @property {number} ENCRYPTED_BY_DATA_KEY_GCM=3 ENCRYPTED_BY_DATA_KEY_GCM value * @property {number} ENCRYPTED_BY_PUBLIC_KEY_ECC=4 ENCRYPTED_BY_PUBLIC_KEY_ECC value */ - Enterprise.BackupKeyType = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "NO_KEY"] = 0; - values[valuesById[1] = "ENCRYPTED_BY_DATA_KEY"] = 1; - values[valuesById[2] = "ENCRYPTED_BY_PUBLIC_KEY"] = 2; - values[valuesById[3] = "ENCRYPTED_BY_DATA_KEY_GCM"] = 3; - values[valuesById[4] = "ENCRYPTED_BY_PUBLIC_KEY_ECC"] = 4; + Enterprise.BackupKeyType = (function () { + const valuesById = {}, + values = Object.create(valuesById); + values[(valuesById[0] = 'NO_KEY')] = 0; + values[(valuesById[1] = 'ENCRYPTED_BY_DATA_KEY')] = 1; + values[(valuesById[2] = 'ENCRYPTED_BY_PUBLIC_KEY')] = 2; + values[(valuesById[3] = 'ENCRYPTED_BY_DATA_KEY_GCM')] = 3; + values[(valuesById[4] = 'ENCRYPTED_BY_PUBLIC_KEY_ECC')] = 4; return values; })(); @@ -75657,15 +78153,15 @@ export const Enterprise = $root.Enterprise = (() => { * @property {number} OWN=0 OWN value * @property {number} SHARED_TO_ENTERPRISE=1 SHARED_TO_ENTERPRISE value */ - Enterprise.BackupUserDataKeyType = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "OWN"] = 0; - values[valuesById[1] = "SHARED_TO_ENTERPRISE"] = 1; + Enterprise.BackupUserDataKeyType = (function () { + const valuesById = {}, + values = Object.create(valuesById); + values[(valuesById[0] = 'OWN')] = 0; + values[(valuesById[1] = 'SHARED_TO_ENTERPRISE')] = 1; return values; })(); - Enterprise.BackupRecord = (function() { - + Enterprise.BackupRecord = (function () { /** * Properties of a BackupRecord. * @memberof Enterprise @@ -75690,8 +78186,7 @@ export const Enterprise = $root.Enterprise = (() => { function BackupRecord(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -75772,22 +78267,21 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ BackupRecord.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.userId != null && Object.hasOwnProperty.call(message, "userId")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.userId); - if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.recordUid); - if (message.key != null && Object.hasOwnProperty.call(message, "key")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.key); - if (message.keyType != null && Object.hasOwnProperty.call(message, "keyType")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.keyType); - if (message.version != null && Object.hasOwnProperty.call(message, "version")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.version); - if (message.data != null && Object.hasOwnProperty.call(message, "data")) - writer.uint32(/* id 6, wireType 2 =*/50).bytes(message.data); - if (message.extra != null && Object.hasOwnProperty.call(message, "extra")) - writer.uint32(/* id 7, wireType 2 =*/58).bytes(message.extra); + if (!writer) writer = $Writer.create(); + if (message.userId != null && Object.hasOwnProperty.call(message, 'userId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int32(message.userId); + if (message.recordUid != null && Object.hasOwnProperty.call(message, 'recordUid')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.recordUid); + if (message.key != null && Object.hasOwnProperty.call(message, 'key')) + writer.uint32(/* id 3, wireType 2 =*/ 26).bytes(message.key); + if (message.keyType != null && Object.hasOwnProperty.call(message, 'keyType')) + writer.uint32(/* id 4, wireType 0 =*/ 32).int32(message.keyType); + if (message.version != null && Object.hasOwnProperty.call(message, 'version')) + writer.uint32(/* id 5, wireType 0 =*/ 40).int32(message.version); + if (message.data != null && Object.hasOwnProperty.call(message, 'data')) + writer.uint32(/* id 6, wireType 2 =*/ 50).bytes(message.data); + if (message.extra != null && Object.hasOwnProperty.call(message, 'extra')) + writer.uint32(/* id 7, wireType 2 =*/ 58).bytes(message.extra); return writer; }; @@ -75816,43 +78310,43 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ BackupRecord.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.BackupRecord(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.BackupRecord(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.userId = reader.int32(); break; } - case 2: { + case 2: { message.recordUid = reader.bytes(); break; } - case 3: { + case 3: { message.key = reader.bytes(); break; } - case 4: { + case 4: { message.keyType = reader.int32(); break; } - case 5: { + case 5: { message.version = reader.int32(); break; } - case 6: { + case 6: { message.data = reader.bytes(); break; } - case 7: { + case 7: { message.extra = reader.bytes(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -75869,8 +78363,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ BackupRecord.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -75883,37 +78376,39 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ BackupRecord.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.userId != null && message.hasOwnProperty("userId")) - if (!$util.isInteger(message.userId)) - return "userId: integer expected"; - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) - return "recordUid: buffer expected"; - if (message.key != null && message.hasOwnProperty("key")) - if (!(message.key && typeof message.key.length === "number" || $util.isString(message.key))) - return "key: buffer expected"; - if (message.keyType != null && message.hasOwnProperty("keyType")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.userId != null && message.hasOwnProperty('userId')) + if (!$util.isInteger(message.userId)) return 'userId: integer expected'; + if (message.recordUid != null && message.hasOwnProperty('recordUid')) + if ( + !( + (message.recordUid && typeof message.recordUid.length === 'number') || + $util.isString(message.recordUid) + ) + ) + return 'recordUid: buffer expected'; + if (message.key != null && message.hasOwnProperty('key')) + if (!((message.key && typeof message.key.length === 'number') || $util.isString(message.key))) + return 'key: buffer expected'; + if (message.keyType != null && message.hasOwnProperty('keyType')) switch (message.keyType) { - default: - return "keyType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; + default: + return 'keyType: enum value expected'; + case 0: + case 1: + case 2: + case 3: + case 4: + break; } - if (message.version != null && message.hasOwnProperty("version")) - if (!$util.isInteger(message.version)) - return "version: integer expected"; - if (message.data != null && message.hasOwnProperty("data")) - if (!(message.data && typeof message.data.length === "number" || $util.isString(message.data))) - return "data: buffer expected"; - if (message.extra != null && message.hasOwnProperty("extra")) - if (!(message.extra && typeof message.extra.length === "number" || $util.isString(message.extra))) - return "extra: buffer expected"; + if (message.version != null && message.hasOwnProperty('version')) + if (!$util.isInteger(message.version)) return 'version: integer expected'; + if (message.data != null && message.hasOwnProperty('data')) + if (!((message.data && typeof message.data.length === 'number') || $util.isString(message.data))) + return 'data: buffer expected'; + if (message.extra != null && message.hasOwnProperty('extra')) + if (!((message.extra && typeof message.extra.length === 'number') || $util.isString(message.extra))) + return 'extra: buffer expected'; return null; }; @@ -75926,61 +78421,70 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.BackupRecord} BackupRecord */ BackupRecord.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.BackupRecord) - return object; + if (object instanceof $root.Enterprise.BackupRecord) return object; let message = new $root.Enterprise.BackupRecord(); - if (object.userId != null) - message.userId = object.userId | 0; + if (object.userId != null) message.userId = object.userId | 0; 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 (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.key != null) - if (typeof object.key === "string") - $util.base64.decode(object.key, message.key = $util.newBuffer($util.base64.length(object.key)), 0); - else if (object.key.length >= 0) - message.key = object.key; + if (typeof object.key === 'string') + $util.base64.decode( + object.key, + (message.key = $util.newBuffer($util.base64.length(object.key))), + 0 + ); + else if (object.key.length >= 0) message.key = object.key; switch (object.keyType) { - default: - if (typeof object.keyType === "number") { - message.keyType = object.keyType; - break; - } - break; - case "NO_KEY": - case 0: - message.keyType = 0; - break; - case "ENCRYPTED_BY_DATA_KEY": - case 1: - message.keyType = 1; - break; - case "ENCRYPTED_BY_PUBLIC_KEY": - case 2: - message.keyType = 2; - break; - case "ENCRYPTED_BY_DATA_KEY_GCM": - case 3: - message.keyType = 3; - break; - case "ENCRYPTED_BY_PUBLIC_KEY_ECC": - case 4: - message.keyType = 4; - break; - } - if (object.version != null) - message.version = object.version | 0; + default: + if (typeof object.keyType === 'number') { + message.keyType = object.keyType; + break; + } + break; + case 'NO_KEY': + case 0: + message.keyType = 0; + break; + case 'ENCRYPTED_BY_DATA_KEY': + case 1: + message.keyType = 1; + break; + case 'ENCRYPTED_BY_PUBLIC_KEY': + case 2: + message.keyType = 2; + break; + case 'ENCRYPTED_BY_DATA_KEY_GCM': + case 3: + message.keyType = 3; + break; + case 'ENCRYPTED_BY_PUBLIC_KEY_ECC': + case 4: + message.keyType = 4; + break; + } + if (object.version != null) message.version = object.version | 0; if (object.data != null) - if (typeof object.data === "string") - $util.base64.decode(object.data, message.data = $util.newBuffer($util.base64.length(object.data)), 0); - else if (object.data.length >= 0) - message.data = object.data; + if (typeof object.data === 'string') + $util.base64.decode( + object.data, + (message.data = $util.newBuffer($util.base64.length(object.data))), + 0 + ); + else if (object.data.length >= 0) message.data = object.data; if (object.extra != null) - if (typeof object.extra === "string") - $util.base64.decode(object.extra, message.extra = $util.newBuffer($util.base64.length(object.extra)), 0); - else if (object.extra.length >= 0) - message.extra = object.extra; + if (typeof object.extra === 'string') + $util.base64.decode( + object.extra, + (message.extra = $util.newBuffer($util.base64.length(object.extra))), + 0 + ); + else if (object.extra.length >= 0) message.extra = object.extra; return message; }; @@ -75994,56 +78498,70 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ BackupRecord.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { object.userId = 0; - if (options.bytes === String) - object.recordUid = ""; + if (options.bytes === String) object.recordUid = ''; else { object.recordUid = []; - if (options.bytes !== Array) - object.recordUid = $util.newBuffer(object.recordUid); + if (options.bytes !== Array) object.recordUid = $util.newBuffer(object.recordUid); } - if (options.bytes === String) - object.key = ""; + if (options.bytes === String) object.key = ''; else { object.key = []; - if (options.bytes !== Array) - object.key = $util.newBuffer(object.key); + if (options.bytes !== Array) object.key = $util.newBuffer(object.key); } - object.keyType = options.enums === String ? "NO_KEY" : 0; + object.keyType = options.enums === String ? 'NO_KEY' : 0; object.version = 0; - if (options.bytes === String) - object.data = ""; + if (options.bytes === String) object.data = ''; else { object.data = []; - if (options.bytes !== Array) - object.data = $util.newBuffer(object.data); + if (options.bytes !== Array) object.data = $util.newBuffer(object.data); } - if (options.bytes === String) - object.extra = ""; + if (options.bytes === String) object.extra = ''; else { object.extra = []; - if (options.bytes !== Array) - object.extra = $util.newBuffer(object.extra); - } - } - if (message.userId != null && message.hasOwnProperty("userId")) - object.userId = message.userId; - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; - if (message.key != null && message.hasOwnProperty("key")) - object.key = options.bytes === String ? $util.base64.encode(message.key, 0, message.key.length) : options.bytes === Array ? Array.prototype.slice.call(message.key) : message.key; - if (message.keyType != null && message.hasOwnProperty("keyType")) - object.keyType = options.enums === String ? $root.Enterprise.BackupKeyType[message.keyType] === undefined ? message.keyType : $root.Enterprise.BackupKeyType[message.keyType] : message.keyType; - if (message.version != null && message.hasOwnProperty("version")) - object.version = message.version; - if (message.data != null && message.hasOwnProperty("data")) - object.data = options.bytes === String ? $util.base64.encode(message.data, 0, message.data.length) : options.bytes === Array ? Array.prototype.slice.call(message.data) : message.data; - if (message.extra != null && message.hasOwnProperty("extra")) - object.extra = options.bytes === String ? $util.base64.encode(message.extra, 0, message.extra.length) : options.bytes === Array ? Array.prototype.slice.call(message.extra) : message.extra; + if (options.bytes !== Array) object.extra = $util.newBuffer(object.extra); + } + } + if (message.userId != null && message.hasOwnProperty('userId')) object.userId = message.userId; + if (message.recordUid != null && message.hasOwnProperty('recordUid')) + object.recordUid = + options.bytes === String + ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.recordUid) + : message.recordUid; + if (message.key != null && message.hasOwnProperty('key')) + object.key = + options.bytes === String + ? $util.base64.encode(message.key, 0, message.key.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.key) + : message.key; + if (message.keyType != null && message.hasOwnProperty('keyType')) + object.keyType = + options.enums === String + ? $root.Enterprise.BackupKeyType[message.keyType] === undefined + ? message.keyType + : $root.Enterprise.BackupKeyType[message.keyType] + : message.keyType; + if (message.version != null && message.hasOwnProperty('version')) object.version = message.version; + if (message.data != null && message.hasOwnProperty('data')) + object.data = + options.bytes === String + ? $util.base64.encode(message.data, 0, message.data.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.data) + : message.data; + if (message.extra != null && message.hasOwnProperty('extra')) + object.extra = + options.bytes === String + ? $util.base64.encode(message.extra, 0, message.extra.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.extra) + : message.extra; return object; }; @@ -76068,16 +78586,15 @@ export const Enterprise = $root.Enterprise = (() => { */ BackupRecord.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.BackupRecord"; + return typeUrlPrefix + '/Enterprise.BackupRecord'; }; return BackupRecord; })(); - Enterprise.BackupKey = (function() { - + Enterprise.BackupKey = (function () { /** * Properties of a BackupKey. * @memberof Enterprise @@ -76097,8 +78614,7 @@ export const Enterprise = $root.Enterprise = (() => { function BackupKey(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -76139,12 +78655,11 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ BackupKey.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.userId != null && Object.hasOwnProperty.call(message, "userId")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.userId); - if (message.backupKey != null && Object.hasOwnProperty.call(message, "backupKey")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.backupKey); + if (!writer) writer = $Writer.create(); + if (message.userId != null && Object.hasOwnProperty.call(message, 'userId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int32(message.userId); + if (message.backupKey != null && Object.hasOwnProperty.call(message, 'backupKey')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.backupKey); return writer; }; @@ -76173,23 +78688,23 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ BackupKey.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.BackupKey(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.BackupKey(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.userId = reader.int32(); break; } - case 2: { + case 2: { message.backupKey = reader.bytes(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -76206,8 +78721,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ BackupKey.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -76220,14 +78734,17 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ BackupKey.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.userId != null && message.hasOwnProperty("userId")) - if (!$util.isInteger(message.userId)) - return "userId: integer expected"; - if (message.backupKey != null && message.hasOwnProperty("backupKey")) - if (!(message.backupKey && typeof message.backupKey.length === "number" || $util.isString(message.backupKey))) - return "backupKey: buffer expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.userId != null && message.hasOwnProperty('userId')) + if (!$util.isInteger(message.userId)) return 'userId: integer expected'; + if (message.backupKey != null && message.hasOwnProperty('backupKey')) + if ( + !( + (message.backupKey && typeof message.backupKey.length === 'number') || + $util.isString(message.backupKey) + ) + ) + return 'backupKey: buffer expected'; return null; }; @@ -76240,16 +78757,17 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.BackupKey} BackupKey */ BackupKey.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.BackupKey) - return object; + if (object instanceof $root.Enterprise.BackupKey) return object; let message = new $root.Enterprise.BackupKey(); - if (object.userId != null) - message.userId = object.userId | 0; + if (object.userId != null) message.userId = object.userId | 0; if (object.backupKey != null) - if (typeof object.backupKey === "string") - $util.base64.decode(object.backupKey, message.backupKey = $util.newBuffer($util.base64.length(object.backupKey)), 0); - else if (object.backupKey.length >= 0) - message.backupKey = object.backupKey; + if (typeof object.backupKey === 'string') + $util.base64.decode( + object.backupKey, + (message.backupKey = $util.newBuffer($util.base64.length(object.backupKey))), + 0 + ); + else if (object.backupKey.length >= 0) message.backupKey = object.backupKey; return message; }; @@ -76263,23 +78781,24 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ BackupKey.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { object.userId = 0; - if (options.bytes === String) - object.backupKey = ""; + if (options.bytes === String) object.backupKey = ''; else { object.backupKey = []; - if (options.bytes !== Array) - object.backupKey = $util.newBuffer(object.backupKey); + if (options.bytes !== Array) object.backupKey = $util.newBuffer(object.backupKey); } } - if (message.userId != null && message.hasOwnProperty("userId")) - object.userId = message.userId; - if (message.backupKey != null && message.hasOwnProperty("backupKey")) - object.backupKey = options.bytes === String ? $util.base64.encode(message.backupKey, 0, message.backupKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.backupKey) : message.backupKey; + if (message.userId != null && message.hasOwnProperty('userId')) object.userId = message.userId; + if (message.backupKey != null && message.hasOwnProperty('backupKey')) + object.backupKey = + options.bytes === String + ? $util.base64.encode(message.backupKey, 0, message.backupKey.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.backupKey) + : message.backupKey; return object; }; @@ -76304,16 +78823,15 @@ export const Enterprise = $root.Enterprise = (() => { */ BackupKey.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.BackupKey"; + return typeUrlPrefix + '/Enterprise.BackupKey'; }; return BackupKey; })(); - Enterprise.BackupUser = (function() { - + Enterprise.BackupUser = (function () { /** * Properties of a BackupUser. * @memberof Enterprise @@ -76341,8 +78859,7 @@ export const Enterprise = $root.Enterprise = (() => { this.backupKeys = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -76359,7 +78876,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.BackupUser * @instance */ - BackupUser.prototype.userName = ""; + BackupUser.prototype.userName = ''; /** * BackupUser dataKey. @@ -76439,27 +78956,29 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ BackupUser.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.userId != null && Object.hasOwnProperty.call(message, "userId")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.userId); - if (message.userName != null && Object.hasOwnProperty.call(message, "userName")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.userName); - if (message.dataKey != null && Object.hasOwnProperty.call(message, "dataKey")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.dataKey); - if (message.dataKeyType != null && Object.hasOwnProperty.call(message, "dataKeyType")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.dataKeyType); - if (message.privateKey != null && Object.hasOwnProperty.call(message, "privateKey")) - writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.privateKey); - if (message.treeKey != null && Object.hasOwnProperty.call(message, "treeKey")) - writer.uint32(/* id 6, wireType 2 =*/50).bytes(message.treeKey); - if (message.treeKeyType != null && Object.hasOwnProperty.call(message, "treeKeyType")) - writer.uint32(/* id 7, wireType 0 =*/56).int32(message.treeKeyType); + if (!writer) writer = $Writer.create(); + if (message.userId != null && Object.hasOwnProperty.call(message, 'userId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int32(message.userId); + if (message.userName != null && Object.hasOwnProperty.call(message, 'userName')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.userName); + if (message.dataKey != null && Object.hasOwnProperty.call(message, 'dataKey')) + writer.uint32(/* id 3, wireType 2 =*/ 26).bytes(message.dataKey); + if (message.dataKeyType != null && Object.hasOwnProperty.call(message, 'dataKeyType')) + writer.uint32(/* id 4, wireType 0 =*/ 32).int32(message.dataKeyType); + if (message.privateKey != null && Object.hasOwnProperty.call(message, 'privateKey')) + writer.uint32(/* id 5, wireType 2 =*/ 42).bytes(message.privateKey); + if (message.treeKey != null && Object.hasOwnProperty.call(message, 'treeKey')) + writer.uint32(/* id 6, wireType 2 =*/ 50).bytes(message.treeKey); + if (message.treeKeyType != null && Object.hasOwnProperty.call(message, 'treeKeyType')) + writer.uint32(/* id 7, wireType 0 =*/ 56).int32(message.treeKeyType); if (message.backupKeys != null && message.backupKeys.length) for (let i = 0; i < message.backupKeys.length; ++i) - $root.Enterprise.BackupKey.encode(message.backupKeys[i], writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.privateECKey != null && Object.hasOwnProperty.call(message, "privateECKey")) - writer.uint32(/* id 9, wireType 2 =*/74).bytes(message.privateECKey); + $root.Enterprise.BackupKey.encode( + message.backupKeys[i], + writer.uint32(/* id 8, wireType 2 =*/ 66).fork() + ).ldelim(); + if (message.privateECKey != null && Object.hasOwnProperty.call(message, 'privateECKey')) + writer.uint32(/* id 9, wireType 2 =*/ 74).bytes(message.privateECKey); return writer; }; @@ -76488,53 +79007,52 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ BackupUser.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.BackupUser(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.BackupUser(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.userId = reader.int32(); break; } - case 2: { + case 2: { message.userName = reader.string(); break; } - case 3: { + case 3: { message.dataKey = reader.bytes(); break; } - case 4: { + case 4: { message.dataKeyType = reader.int32(); break; } - case 5: { + case 5: { message.privateKey = reader.bytes(); break; } - case 6: { + case 6: { message.treeKey = reader.bytes(); break; } - case 7: { + case 7: { message.treeKeyType = reader.int32(); break; } - case 8: { - if (!(message.backupKeys && message.backupKeys.length)) - message.backupKeys = []; + case 8: { + if (!(message.backupKeys && message.backupKeys.length)) message.backupKeys = []; message.backupKeys.push($root.Enterprise.BackupKey.decode(reader, reader.uint32())); break; } - case 9: { + case 9: { message.privateECKey = reader.bytes(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -76551,8 +79069,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ BackupUser.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -76565,54 +79082,69 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ BackupUser.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.userId != null && message.hasOwnProperty("userId")) - if (!$util.isInteger(message.userId)) - return "userId: integer expected"; - if (message.userName != null && message.hasOwnProperty("userName")) - if (!$util.isString(message.userName)) - return "userName: string expected"; - if (message.dataKey != null && message.hasOwnProperty("dataKey")) - if (!(message.dataKey && typeof message.dataKey.length === "number" || $util.isString(message.dataKey))) - return "dataKey: buffer expected"; - if (message.dataKeyType != null && message.hasOwnProperty("dataKeyType")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.userId != null && message.hasOwnProperty('userId')) + if (!$util.isInteger(message.userId)) return 'userId: integer expected'; + if (message.userName != null && message.hasOwnProperty('userName')) + if (!$util.isString(message.userName)) return 'userName: string expected'; + if (message.dataKey != null && message.hasOwnProperty('dataKey')) + if ( + !( + (message.dataKey && typeof message.dataKey.length === 'number') || + $util.isString(message.dataKey) + ) + ) + return 'dataKey: buffer expected'; + if (message.dataKeyType != null && message.hasOwnProperty('dataKeyType')) switch (message.dataKeyType) { - default: - return "dataKeyType: enum value expected"; - case 0: - case 1: - break; + default: + return 'dataKeyType: enum value expected'; + case 0: + case 1: + break; } - if (message.privateKey != null && message.hasOwnProperty("privateKey")) - if (!(message.privateKey && typeof message.privateKey.length === "number" || $util.isString(message.privateKey))) - return "privateKey: buffer expected"; - if (message.treeKey != null && message.hasOwnProperty("treeKey")) - if (!(message.treeKey && typeof message.treeKey.length === "number" || $util.isString(message.treeKey))) - return "treeKey: buffer expected"; - if (message.treeKeyType != null && message.hasOwnProperty("treeKeyType")) + if (message.privateKey != null && message.hasOwnProperty('privateKey')) + if ( + !( + (message.privateKey && typeof message.privateKey.length === 'number') || + $util.isString(message.privateKey) + ) + ) + return 'privateKey: buffer expected'; + if (message.treeKey != null && message.hasOwnProperty('treeKey')) + if ( + !( + (message.treeKey && typeof message.treeKey.length === 'number') || + $util.isString(message.treeKey) + ) + ) + return 'treeKey: buffer expected'; + if (message.treeKeyType != null && message.hasOwnProperty('treeKeyType')) switch (message.treeKeyType) { - default: - return "treeKeyType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; + default: + return 'treeKeyType: enum value expected'; + case 0: + case 1: + case 2: + case 3: + case 4: + break; } - if (message.backupKeys != null && message.hasOwnProperty("backupKeys")) { - if (!Array.isArray(message.backupKeys)) - return "backupKeys: array expected"; + if (message.backupKeys != null && message.hasOwnProperty('backupKeys')) { + if (!Array.isArray(message.backupKeys)) return 'backupKeys: array expected'; for (let i = 0; i < message.backupKeys.length; ++i) { let error = $root.Enterprise.BackupKey.verify(message.backupKeys[i]); - if (error) - return "backupKeys." + error; + if (error) return 'backupKeys.' + error; } } - if (message.privateECKey != null && message.hasOwnProperty("privateECKey")) - if (!(message.privateECKey && typeof message.privateECKey.length === "number" || $util.isString(message.privateECKey))) - return "privateECKey: buffer expected"; + if (message.privateECKey != null && message.hasOwnProperty('privateECKey')) + if ( + !( + (message.privateECKey && typeof message.privateECKey.length === 'number') || + $util.isString(message.privateECKey) + ) + ) + return 'privateECKey: buffer expected'; return null; }; @@ -76625,87 +79157,96 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.BackupUser} BackupUser */ BackupUser.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.BackupUser) - return object; + if (object instanceof $root.Enterprise.BackupUser) return object; let message = new $root.Enterprise.BackupUser(); - if (object.userId != null) - message.userId = object.userId | 0; - if (object.userName != null) - message.userName = String(object.userName); + if (object.userId != null) message.userId = object.userId | 0; + if (object.userName != null) message.userName = String(object.userName); if (object.dataKey != null) - if (typeof object.dataKey === "string") - $util.base64.decode(object.dataKey, message.dataKey = $util.newBuffer($util.base64.length(object.dataKey)), 0); - else if (object.dataKey.length >= 0) - message.dataKey = object.dataKey; + if (typeof object.dataKey === 'string') + $util.base64.decode( + object.dataKey, + (message.dataKey = $util.newBuffer($util.base64.length(object.dataKey))), + 0 + ); + else if (object.dataKey.length >= 0) message.dataKey = object.dataKey; switch (object.dataKeyType) { - default: - if (typeof object.dataKeyType === "number") { - message.dataKeyType = object.dataKeyType; + default: + if (typeof object.dataKeyType === 'number') { + message.dataKeyType = object.dataKeyType; + break; + } + break; + case 'OWN': + case 0: + message.dataKeyType = 0; + break; + case 'SHARED_TO_ENTERPRISE': + case 1: + message.dataKeyType = 1; break; - } - break; - case "OWN": - case 0: - message.dataKeyType = 0; - break; - case "SHARED_TO_ENTERPRISE": - case 1: - message.dataKeyType = 1; - break; } if (object.privateKey != null) - if (typeof object.privateKey === "string") - $util.base64.decode(object.privateKey, message.privateKey = $util.newBuffer($util.base64.length(object.privateKey)), 0); - else if (object.privateKey.length >= 0) - message.privateKey = object.privateKey; + if (typeof object.privateKey === 'string') + $util.base64.decode( + object.privateKey, + (message.privateKey = $util.newBuffer($util.base64.length(object.privateKey))), + 0 + ); + else if (object.privateKey.length >= 0) message.privateKey = object.privateKey; if (object.treeKey != null) - if (typeof object.treeKey === "string") - $util.base64.decode(object.treeKey, message.treeKey = $util.newBuffer($util.base64.length(object.treeKey)), 0); - else if (object.treeKey.length >= 0) - message.treeKey = object.treeKey; + if (typeof object.treeKey === 'string') + $util.base64.decode( + object.treeKey, + (message.treeKey = $util.newBuffer($util.base64.length(object.treeKey))), + 0 + ); + else if (object.treeKey.length >= 0) message.treeKey = object.treeKey; switch (object.treeKeyType) { - default: - if (typeof object.treeKeyType === "number") { - message.treeKeyType = object.treeKeyType; - break; - } - break; - case "NO_KEY": - case 0: - message.treeKeyType = 0; - break; - case "ENCRYPTED_BY_DATA_KEY": - case 1: - message.treeKeyType = 1; - break; - case "ENCRYPTED_BY_PUBLIC_KEY": - case 2: - message.treeKeyType = 2; - break; - case "ENCRYPTED_BY_DATA_KEY_GCM": - case 3: - message.treeKeyType = 3; - break; - case "ENCRYPTED_BY_PUBLIC_KEY_ECC": - case 4: - message.treeKeyType = 4; - break; + default: + if (typeof object.treeKeyType === 'number') { + message.treeKeyType = object.treeKeyType; + break; + } + break; + case 'NO_KEY': + case 0: + message.treeKeyType = 0; + break; + case 'ENCRYPTED_BY_DATA_KEY': + case 1: + message.treeKeyType = 1; + break; + case 'ENCRYPTED_BY_PUBLIC_KEY': + case 2: + message.treeKeyType = 2; + break; + case 'ENCRYPTED_BY_DATA_KEY_GCM': + case 3: + message.treeKeyType = 3; + break; + case 'ENCRYPTED_BY_PUBLIC_KEY_ECC': + case 4: + message.treeKeyType = 4; + break; } if (object.backupKeys) { if (!Array.isArray(object.backupKeys)) - throw TypeError(".Enterprise.BackupUser.backupKeys: array expected"); + throw TypeError('.Enterprise.BackupUser.backupKeys: array expected'); message.backupKeys = []; for (let i = 0; i < object.backupKeys.length; ++i) { - if (typeof object.backupKeys[i] !== "object") - throw TypeError(".Enterprise.BackupUser.backupKeys: object expected"); + if (typeof object.backupKeys[i] !== 'object') + throw TypeError('.Enterprise.BackupUser.backupKeys: object expected'); message.backupKeys[i] = $root.Enterprise.BackupKey.fromObject(object.backupKeys[i]); } } if (object.privateECKey != null) - if (typeof object.privateECKey === "string") - $util.base64.decode(object.privateECKey, message.privateECKey = $util.newBuffer($util.base64.length(object.privateECKey)), 0); - else if (object.privateECKey.length >= 0) - message.privateECKey = object.privateECKey; + if (typeof object.privateECKey === 'string') + $util.base64.decode( + object.privateECKey, + (message.privateECKey = $util.newBuffer($util.base64.length(object.privateECKey))), + 0 + ); + else if (object.privateECKey.length >= 0) message.privateECKey = object.privateECKey; return message; }; @@ -76719,66 +79260,84 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ BackupUser.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.backupKeys = []; + if (options.arrays || options.defaults) object.backupKeys = []; if (options.defaults) { object.userId = 0; - object.userName = ""; - if (options.bytes === String) - object.dataKey = ""; + object.userName = ''; + if (options.bytes === String) object.dataKey = ''; else { object.dataKey = []; - if (options.bytes !== Array) - object.dataKey = $util.newBuffer(object.dataKey); + if (options.bytes !== Array) object.dataKey = $util.newBuffer(object.dataKey); } - object.dataKeyType = options.enums === String ? "OWN" : 0; - if (options.bytes === String) - object.privateKey = ""; + object.dataKeyType = options.enums === String ? 'OWN' : 0; + if (options.bytes === String) object.privateKey = ''; else { object.privateKey = []; - if (options.bytes !== Array) - object.privateKey = $util.newBuffer(object.privateKey); + if (options.bytes !== Array) object.privateKey = $util.newBuffer(object.privateKey); } - if (options.bytes === String) - object.treeKey = ""; + if (options.bytes === String) object.treeKey = ''; else { object.treeKey = []; - if (options.bytes !== Array) - object.treeKey = $util.newBuffer(object.treeKey); + if (options.bytes !== Array) object.treeKey = $util.newBuffer(object.treeKey); } - object.treeKeyType = options.enums === String ? "NO_KEY" : 0; - if (options.bytes === String) - object.privateECKey = ""; + object.treeKeyType = options.enums === String ? 'NO_KEY' : 0; + if (options.bytes === String) object.privateECKey = ''; else { object.privateECKey = []; - if (options.bytes !== Array) - object.privateECKey = $util.newBuffer(object.privateECKey); - } - } - if (message.userId != null && message.hasOwnProperty("userId")) - object.userId = message.userId; - if (message.userName != null && message.hasOwnProperty("userName")) - object.userName = message.userName; - if (message.dataKey != null && message.hasOwnProperty("dataKey")) - object.dataKey = options.bytes === String ? $util.base64.encode(message.dataKey, 0, message.dataKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.dataKey) : message.dataKey; - if (message.dataKeyType != null && message.hasOwnProperty("dataKeyType")) - object.dataKeyType = options.enums === String ? $root.Enterprise.BackupUserDataKeyType[message.dataKeyType] === undefined ? message.dataKeyType : $root.Enterprise.BackupUserDataKeyType[message.dataKeyType] : message.dataKeyType; - if (message.privateKey != null && message.hasOwnProperty("privateKey")) - object.privateKey = options.bytes === String ? $util.base64.encode(message.privateKey, 0, message.privateKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.privateKey) : message.privateKey; - if (message.treeKey != null && message.hasOwnProperty("treeKey")) - object.treeKey = options.bytes === String ? $util.base64.encode(message.treeKey, 0, message.treeKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.treeKey) : message.treeKey; - if (message.treeKeyType != null && message.hasOwnProperty("treeKeyType")) - object.treeKeyType = options.enums === String ? $root.Enterprise.BackupKeyType[message.treeKeyType] === undefined ? message.treeKeyType : $root.Enterprise.BackupKeyType[message.treeKeyType] : message.treeKeyType; + if (options.bytes !== Array) object.privateECKey = $util.newBuffer(object.privateECKey); + } + } + if (message.userId != null && message.hasOwnProperty('userId')) object.userId = message.userId; + if (message.userName != null && message.hasOwnProperty('userName')) object.userName = message.userName; + if (message.dataKey != null && message.hasOwnProperty('dataKey')) + object.dataKey = + options.bytes === String + ? $util.base64.encode(message.dataKey, 0, message.dataKey.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.dataKey) + : message.dataKey; + if (message.dataKeyType != null && message.hasOwnProperty('dataKeyType')) + object.dataKeyType = + options.enums === String + ? $root.Enterprise.BackupUserDataKeyType[message.dataKeyType] === undefined + ? message.dataKeyType + : $root.Enterprise.BackupUserDataKeyType[message.dataKeyType] + : message.dataKeyType; + if (message.privateKey != null && message.hasOwnProperty('privateKey')) + object.privateKey = + options.bytes === String + ? $util.base64.encode(message.privateKey, 0, message.privateKey.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.privateKey) + : message.privateKey; + if (message.treeKey != null && message.hasOwnProperty('treeKey')) + object.treeKey = + options.bytes === String + ? $util.base64.encode(message.treeKey, 0, message.treeKey.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.treeKey) + : message.treeKey; + if (message.treeKeyType != null && message.hasOwnProperty('treeKeyType')) + object.treeKeyType = + options.enums === String + ? $root.Enterprise.BackupKeyType[message.treeKeyType] === undefined + ? message.treeKeyType + : $root.Enterprise.BackupKeyType[message.treeKeyType] + : message.treeKeyType; if (message.backupKeys && message.backupKeys.length) { object.backupKeys = []; for (let j = 0; j < message.backupKeys.length; ++j) object.backupKeys[j] = $root.Enterprise.BackupKey.toObject(message.backupKeys[j], options); } - if (message.privateECKey != null && message.hasOwnProperty("privateECKey")) - object.privateECKey = options.bytes === String ? $util.base64.encode(message.privateECKey, 0, message.privateECKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.privateECKey) : message.privateECKey; + if (message.privateECKey != null && message.hasOwnProperty('privateECKey')) + object.privateECKey = + options.bytes === String + ? $util.base64.encode(message.privateECKey, 0, message.privateECKey.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.privateECKey) + : message.privateECKey; return object; }; @@ -76803,16 +79362,15 @@ export const Enterprise = $root.Enterprise = (() => { */ BackupUser.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.BackupUser"; + return typeUrlPrefix + '/Enterprise.BackupUser'; }; return BackupUser; })(); - Enterprise.BackupResponse = (function() { - + Enterprise.BackupResponse = (function () { /** * Properties of a BackupResponse. * @memberof Enterprise @@ -76836,8 +79394,7 @@ export const Enterprise = $root.Enterprise = (() => { this.records = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -76894,18 +79451,26 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ BackupResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.enterpriseEccPrivateKey != null && Object.hasOwnProperty.call(message, "enterpriseEccPrivateKey")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.enterpriseEccPrivateKey); + if (!writer) writer = $Writer.create(); + if ( + message.enterpriseEccPrivateKey != null && + Object.hasOwnProperty.call(message, 'enterpriseEccPrivateKey') + ) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.enterpriseEccPrivateKey); if (message.users != null && message.users.length) for (let i = 0; i < message.users.length; ++i) - $root.Enterprise.BackupUser.encode(message.users[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + $root.Enterprise.BackupUser.encode( + message.users[i], + writer.uint32(/* id 2, wireType 2 =*/ 18).fork() + ).ldelim(); if (message.records != null && message.records.length) for (let i = 0; i < message.records.length; ++i) - $root.Enterprise.BackupRecord.encode(message.records[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.continuationToken != null && Object.hasOwnProperty.call(message, "continuationToken")) - writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.continuationToken); + $root.Enterprise.BackupRecord.encode( + message.records[i], + writer.uint32(/* id 3, wireType 2 =*/ 26).fork() + ).ldelim(); + if (message.continuationToken != null && Object.hasOwnProperty.call(message, 'continuationToken')) + writer.uint32(/* id 4, wireType 2 =*/ 34).bytes(message.continuationToken); return writer; }; @@ -76934,35 +79499,33 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ BackupResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.BackupResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.BackupResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.enterpriseEccPrivateKey = reader.bytes(); break; } - case 2: { - if (!(message.users && message.users.length)) - message.users = []; + case 2: { + if (!(message.users && message.users.length)) message.users = []; message.users.push($root.Enterprise.BackupUser.decode(reader, reader.uint32())); break; } - case 3: { - if (!(message.records && message.records.length)) - message.records = []; + case 3: { + if (!(message.records && message.records.length)) message.records = []; message.records.push($root.Enterprise.BackupRecord.decode(reader, reader.uint32())); break; } - case 4: { + case 4: { message.continuationToken = reader.bytes(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -76979,8 +79542,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ BackupResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -76993,32 +79555,38 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ BackupResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.enterpriseEccPrivateKey != null && message.hasOwnProperty("enterpriseEccPrivateKey")) - if (!(message.enterpriseEccPrivateKey && typeof message.enterpriseEccPrivateKey.length === "number" || $util.isString(message.enterpriseEccPrivateKey))) - return "enterpriseEccPrivateKey: buffer expected"; - if (message.users != null && message.hasOwnProperty("users")) { - if (!Array.isArray(message.users)) - return "users: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.enterpriseEccPrivateKey != null && message.hasOwnProperty('enterpriseEccPrivateKey')) + if ( + !( + (message.enterpriseEccPrivateKey && + typeof message.enterpriseEccPrivateKey.length === 'number') || + $util.isString(message.enterpriseEccPrivateKey) + ) + ) + return 'enterpriseEccPrivateKey: buffer expected'; + if (message.users != null && message.hasOwnProperty('users')) { + if (!Array.isArray(message.users)) return 'users: array expected'; for (let i = 0; i < message.users.length; ++i) { let error = $root.Enterprise.BackupUser.verify(message.users[i]); - if (error) - return "users." + error; + if (error) return 'users.' + error; } } - if (message.records != null && message.hasOwnProperty("records")) { - if (!Array.isArray(message.records)) - return "records: array expected"; + if (message.records != null && message.hasOwnProperty('records')) { + if (!Array.isArray(message.records)) return 'records: array expected'; for (let i = 0; i < message.records.length; ++i) { let error = $root.Enterprise.BackupRecord.verify(message.records[i]); - if (error) - return "records." + error; + if (error) return 'records.' + error; } } - if (message.continuationToken != null && message.hasOwnProperty("continuationToken")) - if (!(message.continuationToken && typeof message.continuationToken.length === "number" || $util.isString(message.continuationToken))) - return "continuationToken: buffer expected"; + if (message.continuationToken != null && message.hasOwnProperty('continuationToken')) + if ( + !( + (message.continuationToken && typeof message.continuationToken.length === 'number') || + $util.isString(message.continuationToken) + ) + ) + return 'continuationToken: buffer expected'; return null; }; @@ -77031,39 +79599,46 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.BackupResponse} BackupResponse */ BackupResponse.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.BackupResponse) - return object; + if (object instanceof $root.Enterprise.BackupResponse) return object; let message = new $root.Enterprise.BackupResponse(); if (object.enterpriseEccPrivateKey != null) - if (typeof object.enterpriseEccPrivateKey === "string") - $util.base64.decode(object.enterpriseEccPrivateKey, message.enterpriseEccPrivateKey = $util.newBuffer($util.base64.length(object.enterpriseEccPrivateKey)), 0); + if (typeof object.enterpriseEccPrivateKey === 'string') + $util.base64.decode( + object.enterpriseEccPrivateKey, + (message.enterpriseEccPrivateKey = $util.newBuffer( + $util.base64.length(object.enterpriseEccPrivateKey) + )), + 0 + ); else if (object.enterpriseEccPrivateKey.length >= 0) message.enterpriseEccPrivateKey = object.enterpriseEccPrivateKey; if (object.users) { - if (!Array.isArray(object.users)) - throw TypeError(".Enterprise.BackupResponse.users: array expected"); + if (!Array.isArray(object.users)) throw TypeError('.Enterprise.BackupResponse.users: array expected'); message.users = []; for (let i = 0; i < object.users.length; ++i) { - if (typeof object.users[i] !== "object") - throw TypeError(".Enterprise.BackupResponse.users: object expected"); + if (typeof object.users[i] !== 'object') + throw TypeError('.Enterprise.BackupResponse.users: object expected'); message.users[i] = $root.Enterprise.BackupUser.fromObject(object.users[i]); } } if (object.records) { if (!Array.isArray(object.records)) - throw TypeError(".Enterprise.BackupResponse.records: array expected"); + throw TypeError('.Enterprise.BackupResponse.records: array expected'); message.records = []; for (let i = 0; i < object.records.length; ++i) { - if (typeof object.records[i] !== "object") - throw TypeError(".Enterprise.BackupResponse.records: object expected"); + if (typeof object.records[i] !== 'object') + throw TypeError('.Enterprise.BackupResponse.records: object expected'); message.records[i] = $root.Enterprise.BackupRecord.fromObject(object.records[i]); } } if (object.continuationToken != null) - if (typeof object.continuationToken === "string") - $util.base64.decode(object.continuationToken, message.continuationToken = $util.newBuffer($util.base64.length(object.continuationToken)), 0); - else if (object.continuationToken.length >= 0) - message.continuationToken = object.continuationToken; + if (typeof object.continuationToken === 'string') + $util.base64.decode( + object.continuationToken, + (message.continuationToken = $util.newBuffer($util.base64.length(object.continuationToken))), + 0 + ); + else if (object.continuationToken.length >= 0) message.continuationToken = object.continuationToken; return message; }; @@ -77077,31 +79652,36 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ BackupResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.arrays || options.defaults) { object.users = []; object.records = []; } if (options.defaults) { - if (options.bytes === String) - object.enterpriseEccPrivateKey = ""; + if (options.bytes === String) object.enterpriseEccPrivateKey = ''; else { object.enterpriseEccPrivateKey = []; if (options.bytes !== Array) object.enterpriseEccPrivateKey = $util.newBuffer(object.enterpriseEccPrivateKey); } - if (options.bytes === String) - object.continuationToken = ""; + if (options.bytes === String) object.continuationToken = ''; else { object.continuationToken = []; - if (options.bytes !== Array) - object.continuationToken = $util.newBuffer(object.continuationToken); - } - } - if (message.enterpriseEccPrivateKey != null && message.hasOwnProperty("enterpriseEccPrivateKey")) - object.enterpriseEccPrivateKey = options.bytes === String ? $util.base64.encode(message.enterpriseEccPrivateKey, 0, message.enterpriseEccPrivateKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.enterpriseEccPrivateKey) : message.enterpriseEccPrivateKey; + if (options.bytes !== Array) object.continuationToken = $util.newBuffer(object.continuationToken); + } + } + if (message.enterpriseEccPrivateKey != null && message.hasOwnProperty('enterpriseEccPrivateKey')) + object.enterpriseEccPrivateKey = + options.bytes === String + ? $util.base64.encode( + message.enterpriseEccPrivateKey, + 0, + message.enterpriseEccPrivateKey.length + ) + : options.bytes === Array + ? Array.prototype.slice.call(message.enterpriseEccPrivateKey) + : message.enterpriseEccPrivateKey; if (message.users && message.users.length) { object.users = []; for (let j = 0; j < message.users.length; ++j) @@ -77112,8 +79692,13 @@ export const Enterprise = $root.Enterprise = (() => { for (let j = 0; j < message.records.length; ++j) object.records[j] = $root.Enterprise.BackupRecord.toObject(message.records[j], options); } - if (message.continuationToken != null && message.hasOwnProperty("continuationToken")) - object.continuationToken = options.bytes === String ? $util.base64.encode(message.continuationToken, 0, message.continuationToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.continuationToken) : message.continuationToken; + if (message.continuationToken != null && message.hasOwnProperty('continuationToken')) + object.continuationToken = + options.bytes === String + ? $util.base64.encode(message.continuationToken, 0, message.continuationToken.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.continuationToken) + : message.continuationToken; return object; }; @@ -77138,16 +79723,15 @@ export const Enterprise = $root.Enterprise = (() => { */ BackupResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.BackupResponse"; + return typeUrlPrefix + '/Enterprise.BackupResponse'; }; return BackupResponse; })(); - Enterprise.BackupFile = (function() { - + Enterprise.BackupFile = (function () { /** * Properties of a BackupFile. * @memberof Enterprise @@ -77170,8 +79754,7 @@ export const Enterprise = $root.Enterprise = (() => { function BackupFile(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -77180,7 +79763,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.BackupFile * @instance */ - BackupFile.prototype.user = ""; + BackupFile.prototype.user = ''; /** * BackupFile backupUid. @@ -77196,7 +79779,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.BackupFile * @instance */ - BackupFile.prototype.fileName = ""; + BackupFile.prototype.fileName = ''; /** * BackupFile created. @@ -77204,7 +79787,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.BackupFile * @instance */ - BackupFile.prototype.created = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + BackupFile.prototype.created = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * BackupFile downloadUrl. @@ -77212,7 +79795,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.BackupFile * @instance */ - BackupFile.prototype.downloadUrl = ""; + BackupFile.prototype.downloadUrl = ''; /** * Creates a new BackupFile instance using the specified properties. @@ -77236,18 +79819,17 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ BackupFile.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.user != null && Object.hasOwnProperty.call(message, "user")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.user); - if (message.backupUid != null && Object.hasOwnProperty.call(message, "backupUid")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.backupUid); - if (message.fileName != null && Object.hasOwnProperty.call(message, "fileName")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.fileName); - if (message.created != null && Object.hasOwnProperty.call(message, "created")) - writer.uint32(/* id 4, wireType 0 =*/32).int64(message.created); - if (message.downloadUrl != null && Object.hasOwnProperty.call(message, "downloadUrl")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.downloadUrl); + if (!writer) writer = $Writer.create(); + if (message.user != null && Object.hasOwnProperty.call(message, 'user')) + writer.uint32(/* id 1, wireType 2 =*/ 10).string(message.user); + if (message.backupUid != null && Object.hasOwnProperty.call(message, 'backupUid')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.backupUid); + if (message.fileName != null && Object.hasOwnProperty.call(message, 'fileName')) + writer.uint32(/* id 3, wireType 2 =*/ 26).string(message.fileName); + if (message.created != null && Object.hasOwnProperty.call(message, 'created')) + writer.uint32(/* id 4, wireType 0 =*/ 32).int64(message.created); + if (message.downloadUrl != null && Object.hasOwnProperty.call(message, 'downloadUrl')) + writer.uint32(/* id 5, wireType 2 =*/ 42).string(message.downloadUrl); return writer; }; @@ -77276,35 +79858,35 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ BackupFile.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.BackupFile(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.BackupFile(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.user = reader.string(); break; } - case 2: { + case 2: { message.backupUid = reader.bytes(); break; } - case 3: { + case 3: { message.fileName = reader.string(); break; } - case 4: { + case 4: { message.created = reader.int64(); break; } - case 5: { + case 5: { message.downloadUrl = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -77321,8 +79903,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ BackupFile.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -77335,23 +79916,27 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ BackupFile.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.user != null && message.hasOwnProperty("user")) - if (!$util.isString(message.user)) - return "user: string expected"; - if (message.backupUid != null && message.hasOwnProperty("backupUid")) - if (!(message.backupUid && typeof message.backupUid.length === "number" || $util.isString(message.backupUid))) - return "backupUid: buffer expected"; - if (message.fileName != null && message.hasOwnProperty("fileName")) - if (!$util.isString(message.fileName)) - return "fileName: string expected"; - if (message.created != null && message.hasOwnProperty("created")) - if (!$util.isInteger(message.created) && !(message.created && $util.isInteger(message.created.low) && $util.isInteger(message.created.high))) - return "created: integer|Long expected"; - if (message.downloadUrl != null && message.hasOwnProperty("downloadUrl")) - if (!$util.isString(message.downloadUrl)) - return "downloadUrl: string expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.user != null && message.hasOwnProperty('user')) + if (!$util.isString(message.user)) return 'user: string expected'; + if (message.backupUid != null && message.hasOwnProperty('backupUid')) + if ( + !( + (message.backupUid && typeof message.backupUid.length === 'number') || + $util.isString(message.backupUid) + ) + ) + return 'backupUid: buffer expected'; + if (message.fileName != null && message.hasOwnProperty('fileName')) + if (!$util.isString(message.fileName)) return 'fileName: string expected'; + if (message.created != null && message.hasOwnProperty('created')) + if ( + !$util.isInteger(message.created) && + !(message.created && $util.isInteger(message.created.low) && $util.isInteger(message.created.high)) + ) + return 'created: integer|Long expected'; + if (message.downloadUrl != null && message.hasOwnProperty('downloadUrl')) + if (!$util.isString(message.downloadUrl)) return 'downloadUrl: string expected'; return null; }; @@ -77364,29 +79949,28 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.BackupFile} BackupFile */ BackupFile.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.BackupFile) - return object; + if (object instanceof $root.Enterprise.BackupFile) return object; let message = new $root.Enterprise.BackupFile(); - if (object.user != null) - message.user = String(object.user); + if (object.user != null) message.user = String(object.user); if (object.backupUid != null) - if (typeof object.backupUid === "string") - $util.base64.decode(object.backupUid, message.backupUid = $util.newBuffer($util.base64.length(object.backupUid)), 0); - else if (object.backupUid.length >= 0) - message.backupUid = object.backupUid; - if (object.fileName != null) - message.fileName = String(object.fileName); + if (typeof object.backupUid === 'string') + $util.base64.decode( + object.backupUid, + (message.backupUid = $util.newBuffer($util.base64.length(object.backupUid))), + 0 + ); + else if (object.backupUid.length >= 0) message.backupUid = object.backupUid; + if (object.fileName != null) message.fileName = String(object.fileName); if (object.created != null) - if ($util.Long) - (message.created = $util.Long.fromValue(object.created)).unsigned = false; - else if (typeof object.created === "string") - message.created = parseInt(object.created, 10); - else if (typeof object.created === "number") - message.created = object.created; - else if (typeof object.created === "object") - message.created = new $util.LongBits(object.created.low >>> 0, object.created.high >>> 0).toNumber(); - if (object.downloadUrl != null) - message.downloadUrl = String(object.downloadUrl); + if ($util.Long) (message.created = $util.Long.fromValue(object.created)).unsigned = false; + else if (typeof object.created === 'string') message.created = parseInt(object.created, 10); + else if (typeof object.created === 'number') message.created = object.created; + else if (typeof object.created === 'object') + message.created = new $util.LongBits( + object.created.low >>> 0, + object.created.high >>> 0 + ).toNumber(); + if (object.downloadUrl != null) message.downloadUrl = String(object.downloadUrl); return message; }; @@ -77400,38 +79984,43 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ BackupFile.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - object.user = ""; - if (options.bytes === String) - object.backupUid = ""; + object.user = ''; + if (options.bytes === String) object.backupUid = ''; else { object.backupUid = []; - if (options.bytes !== Array) - object.backupUid = $util.newBuffer(object.backupUid); + if (options.bytes !== Array) object.backupUid = $util.newBuffer(object.backupUid); } - object.fileName = ""; + object.fileName = ''; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.created = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.created = options.longs === String ? "0" : 0; - object.downloadUrl = ""; - } - if (message.user != null && message.hasOwnProperty("user")) - object.user = message.user; - if (message.backupUid != null && message.hasOwnProperty("backupUid")) - object.backupUid = options.bytes === String ? $util.base64.encode(message.backupUid, 0, message.backupUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.backupUid) : message.backupUid; - if (message.fileName != null && message.hasOwnProperty("fileName")) - object.fileName = message.fileName; - if (message.created != null && message.hasOwnProperty("created")) - if (typeof message.created === "number") + object.created = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.created = options.longs === String ? '0' : 0; + object.downloadUrl = ''; + } + if (message.user != null && message.hasOwnProperty('user')) object.user = message.user; + if (message.backupUid != null && message.hasOwnProperty('backupUid')) + object.backupUid = + options.bytes === String + ? $util.base64.encode(message.backupUid, 0, message.backupUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.backupUid) + : message.backupUid; + if (message.fileName != null && message.hasOwnProperty('fileName')) object.fileName = message.fileName; + if (message.created != null && message.hasOwnProperty('created')) + if (typeof message.created === 'number') object.created = options.longs === String ? String(message.created) : message.created; else - object.created = options.longs === String ? $util.Long.prototype.toString.call(message.created) : options.longs === Number ? new $util.LongBits(message.created.low >>> 0, message.created.high >>> 0).toNumber() : message.created; - if (message.downloadUrl != null && message.hasOwnProperty("downloadUrl")) + object.created = + options.longs === String + ? $util.Long.prototype.toString.call(message.created) + : options.longs === Number + ? new $util.LongBits(message.created.low >>> 0, message.created.high >>> 0).toNumber() + : message.created; + if (message.downloadUrl != null && message.hasOwnProperty('downloadUrl')) object.downloadUrl = message.downloadUrl; return object; }; @@ -77457,16 +80046,15 @@ export const Enterprise = $root.Enterprise = (() => { */ BackupFile.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.BackupFile"; + return typeUrlPrefix + '/Enterprise.BackupFile'; }; return BackupFile; })(); - Enterprise.BackupsResponse = (function() { - + Enterprise.BackupsResponse = (function () { /** * Properties of a BackupsResponse. * @memberof Enterprise @@ -77486,8 +80074,7 @@ export const Enterprise = $root.Enterprise = (() => { this.files = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -77520,11 +80107,13 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ BackupsResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.files != null && message.files.length) for (let i = 0; i < message.files.length; ++i) - $root.Enterprise.BackupFile.encode(message.files[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.Enterprise.BackupFile.encode( + message.files[i], + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); return writer; }; @@ -77553,21 +80142,20 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ BackupsResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.BackupsResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.BackupsResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (!(message.files && message.files.length)) - message.files = []; + case 1: { + if (!(message.files && message.files.length)) message.files = []; message.files.push($root.Enterprise.BackupFile.decode(reader, reader.uint32())); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -77584,8 +80172,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ BackupsResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -77598,15 +80185,12 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ BackupsResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.files != null && message.hasOwnProperty("files")) { - if (!Array.isArray(message.files)) - return "files: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.files != null && message.hasOwnProperty('files')) { + if (!Array.isArray(message.files)) return 'files: array expected'; for (let i = 0; i < message.files.length; ++i) { let error = $root.Enterprise.BackupFile.verify(message.files[i]); - if (error) - return "files." + error; + if (error) return 'files.' + error; } } return null; @@ -77621,16 +80205,14 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.BackupsResponse} BackupsResponse */ BackupsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.BackupsResponse) - return object; + if (object instanceof $root.Enterprise.BackupsResponse) return object; let message = new $root.Enterprise.BackupsResponse(); if (object.files) { - if (!Array.isArray(object.files)) - throw TypeError(".Enterprise.BackupsResponse.files: array expected"); + if (!Array.isArray(object.files)) throw TypeError('.Enterprise.BackupsResponse.files: array expected'); message.files = []; for (let i = 0; i < object.files.length; ++i) { - if (typeof object.files[i] !== "object") - throw TypeError(".Enterprise.BackupsResponse.files: object expected"); + if (typeof object.files[i] !== 'object') + throw TypeError('.Enterprise.BackupsResponse.files: object expected'); message.files[i] = $root.Enterprise.BackupFile.fromObject(object.files[i]); } } @@ -77647,11 +80229,9 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ BackupsResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.files = []; + if (options.arrays || options.defaults) object.files = []; if (message.files && message.files.length) { object.files = []; for (let j = 0; j < message.files.length; ++j) @@ -77681,16 +80261,15 @@ export const Enterprise = $root.Enterprise = (() => { */ BackupsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.BackupsResponse"; + return typeUrlPrefix + '/Enterprise.BackupsResponse'; }; return BackupsResponse; })(); - Enterprise.GetEnterpriseDataKeysRequest = (function() { - + Enterprise.GetEnterpriseDataKeysRequest = (function () { /** * Properties of a GetEnterpriseDataKeysRequest. * @memberof Enterprise @@ -77710,8 +80289,7 @@ export const Enterprise = $root.Enterprise = (() => { this.roleId = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -77744,12 +80322,10 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ GetEnterpriseDataKeysRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.roleId != null && message.roleId.length) { - writer.uint32(/* id 1, wireType 2 =*/10).fork(); - for (let i = 0; i < message.roleId.length; ++i) - writer.int64(message.roleId[i]); + writer.uint32(/* id 1, wireType 2 =*/ 10).fork(); + for (let i = 0; i < message.roleId.length; ++i) writer.int64(message.roleId[i]); writer.ldelim(); } return writer; @@ -77780,26 +80356,23 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ GetEnterpriseDataKeysRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.GetEnterpriseDataKeysRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.GetEnterpriseDataKeysRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (!(message.roleId && message.roleId.length)) - message.roleId = []; + case 1: { + if (!(message.roleId && message.roleId.length)) message.roleId = []; if ((tag & 7) === 2) { let end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.roleId.push(reader.int64()); - } else - message.roleId.push(reader.int64()); + while (reader.pos < end2) message.roleId.push(reader.int64()); + } else message.roleId.push(reader.int64()); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -77816,8 +80389,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ GetEnterpriseDataKeysRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -77830,14 +80402,19 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ GetEnterpriseDataKeysRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.roleId != null && message.hasOwnProperty("roleId")) { - if (!Array.isArray(message.roleId)) - return "roleId: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.roleId != null && message.hasOwnProperty('roleId')) { + if (!Array.isArray(message.roleId)) return 'roleId: array expected'; for (let i = 0; i < message.roleId.length; ++i) - if (!$util.isInteger(message.roleId[i]) && !(message.roleId[i] && $util.isInteger(message.roleId[i].low) && $util.isInteger(message.roleId[i].high))) - return "roleId: integer|Long[] expected"; + if ( + !$util.isInteger(message.roleId[i]) && + !( + message.roleId[i] && + $util.isInteger(message.roleId[i].low) && + $util.isInteger(message.roleId[i].high) + ) + ) + return 'roleId: integer|Long[] expected'; } return null; }; @@ -77851,22 +80428,21 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.GetEnterpriseDataKeysRequest} GetEnterpriseDataKeysRequest */ GetEnterpriseDataKeysRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.GetEnterpriseDataKeysRequest) - return object; + if (object instanceof $root.Enterprise.GetEnterpriseDataKeysRequest) return object; let message = new $root.Enterprise.GetEnterpriseDataKeysRequest(); if (object.roleId) { if (!Array.isArray(object.roleId)) - throw TypeError(".Enterprise.GetEnterpriseDataKeysRequest.roleId: array expected"); + throw TypeError('.Enterprise.GetEnterpriseDataKeysRequest.roleId: array expected'); message.roleId = []; for (let i = 0; i < object.roleId.length; ++i) - if ($util.Long) - (message.roleId[i] = $util.Long.fromValue(object.roleId[i])).unsigned = false; - else if (typeof object.roleId[i] === "string") - message.roleId[i] = parseInt(object.roleId[i], 10); - else if (typeof object.roleId[i] === "number") - message.roleId[i] = object.roleId[i]; - else if (typeof object.roleId[i] === "object") - message.roleId[i] = new $util.LongBits(object.roleId[i].low >>> 0, object.roleId[i].high >>> 0).toNumber(); + if ($util.Long) (message.roleId[i] = $util.Long.fromValue(object.roleId[i])).unsigned = false; + else if (typeof object.roleId[i] === 'string') message.roleId[i] = parseInt(object.roleId[i], 10); + else if (typeof object.roleId[i] === 'number') message.roleId[i] = object.roleId[i]; + else if (typeof object.roleId[i] === 'object') + message.roleId[i] = new $util.LongBits( + object.roleId[i].low >>> 0, + object.roleId[i].high >>> 0 + ).toNumber(); } return message; }; @@ -77881,18 +80457,24 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ GetEnterpriseDataKeysRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.roleId = []; + if (options.arrays || options.defaults) object.roleId = []; if (message.roleId && message.roleId.length) { object.roleId = []; for (let j = 0; j < message.roleId.length; ++j) - if (typeof message.roleId[j] === "number") + if (typeof message.roleId[j] === 'number') object.roleId[j] = options.longs === String ? String(message.roleId[j]) : message.roleId[j]; else - object.roleId[j] = options.longs === String ? $util.Long.prototype.toString.call(message.roleId[j]) : options.longs === Number ? new $util.LongBits(message.roleId[j].low >>> 0, message.roleId[j].high >>> 0).toNumber() : message.roleId[j]; + object.roleId[j] = + options.longs === String + ? $util.Long.prototype.toString.call(message.roleId[j]) + : options.longs === Number + ? new $util.LongBits( + message.roleId[j].low >>> 0, + message.roleId[j].high >>> 0 + ).toNumber() + : message.roleId[j]; } return object; }; @@ -77918,16 +80500,15 @@ export const Enterprise = $root.Enterprise = (() => { */ GetEnterpriseDataKeysRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.GetEnterpriseDataKeysRequest"; + return typeUrlPrefix + '/Enterprise.GetEnterpriseDataKeysRequest'; }; return GetEnterpriseDataKeysRequest; })(); - Enterprise.GetEnterpriseDataKeysResponse = (function() { - + Enterprise.GetEnterpriseDataKeysResponse = (function () { /** * Properties of a GetEnterpriseDataKeysResponse. * @memberof Enterprise @@ -77952,8 +80533,7 @@ export const Enterprise = $root.Enterprise = (() => { this.roleKey = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -78018,20 +80598,34 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ GetEnterpriseDataKeysResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.reEncryptedRoleKey != null && message.reEncryptedRoleKey.length) for (let i = 0; i < message.reEncryptedRoleKey.length; ++i) - $root.Enterprise.ReEncryptedRoleKey.encode(message.reEncryptedRoleKey[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.Enterprise.ReEncryptedRoleKey.encode( + message.reEncryptedRoleKey[i], + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); if (message.roleKey != null && message.roleKey.length) for (let i = 0; i < message.roleKey.length; ++i) - $root.Enterprise.RoleKey.encode(message.roleKey[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.mspKey != null && Object.hasOwnProperty.call(message, "mspKey")) - $root.Enterprise.MspKey.encode(message.mspKey, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.enterpriseKeys != null && Object.hasOwnProperty.call(message, "enterpriseKeys")) - $root.Enterprise.EnterpriseKeys.encode(message.enterpriseKeys, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.treeKey != null && Object.hasOwnProperty.call(message, "treeKey")) - $root.Enterprise.TreeKey.encode(message.treeKey, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + $root.Enterprise.RoleKey.encode( + message.roleKey[i], + writer.uint32(/* id 2, wireType 2 =*/ 18).fork() + ).ldelim(); + if (message.mspKey != null && Object.hasOwnProperty.call(message, 'mspKey')) + $root.Enterprise.MspKey.encode( + message.mspKey, + writer.uint32(/* id 3, wireType 2 =*/ 26).fork() + ).ldelim(); + if (message.enterpriseKeys != null && Object.hasOwnProperty.call(message, 'enterpriseKeys')) + $root.Enterprise.EnterpriseKeys.encode( + message.enterpriseKeys, + writer.uint32(/* id 4, wireType 2 =*/ 34).fork() + ).ldelim(); + if (message.treeKey != null && Object.hasOwnProperty.call(message, 'treeKey')) + $root.Enterprise.TreeKey.encode( + message.treeKey, + writer.uint32(/* id 5, wireType 2 =*/ 42).fork() + ).ldelim(); return writer; }; @@ -78060,39 +80654,40 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ GetEnterpriseDataKeysResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.GetEnterpriseDataKeysResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.GetEnterpriseDataKeysResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { if (!(message.reEncryptedRoleKey && message.reEncryptedRoleKey.length)) message.reEncryptedRoleKey = []; - message.reEncryptedRoleKey.push($root.Enterprise.ReEncryptedRoleKey.decode(reader, reader.uint32())); + message.reEncryptedRoleKey.push( + $root.Enterprise.ReEncryptedRoleKey.decode(reader, reader.uint32()) + ); break; } - case 2: { - if (!(message.roleKey && message.roleKey.length)) - message.roleKey = []; + case 2: { + if (!(message.roleKey && message.roleKey.length)) message.roleKey = []; message.roleKey.push($root.Enterprise.RoleKey.decode(reader, reader.uint32())); break; } - case 3: { + case 3: { message.mspKey = $root.Enterprise.MspKey.decode(reader, reader.uint32()); break; } - case 4: { + case 4: { message.enterpriseKeys = $root.Enterprise.EnterpriseKeys.decode(reader, reader.uint32()); break; } - case 5: { + case 5: { message.treeKey = $root.Enterprise.TreeKey.decode(reader, reader.uint32()); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -78109,8 +80704,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ GetEnterpriseDataKeysResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -78123,40 +80717,32 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ GetEnterpriseDataKeysResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.reEncryptedRoleKey != null && message.hasOwnProperty("reEncryptedRoleKey")) { - if (!Array.isArray(message.reEncryptedRoleKey)) - return "reEncryptedRoleKey: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.reEncryptedRoleKey != null && message.hasOwnProperty('reEncryptedRoleKey')) { + if (!Array.isArray(message.reEncryptedRoleKey)) return 'reEncryptedRoleKey: array expected'; for (let i = 0; i < message.reEncryptedRoleKey.length; ++i) { let error = $root.Enterprise.ReEncryptedRoleKey.verify(message.reEncryptedRoleKey[i]); - if (error) - return "reEncryptedRoleKey." + error; + if (error) return 'reEncryptedRoleKey.' + error; } } - if (message.roleKey != null && message.hasOwnProperty("roleKey")) { - if (!Array.isArray(message.roleKey)) - return "roleKey: array expected"; + if (message.roleKey != null && message.hasOwnProperty('roleKey')) { + if (!Array.isArray(message.roleKey)) return 'roleKey: array expected'; for (let i = 0; i < message.roleKey.length; ++i) { let error = $root.Enterprise.RoleKey.verify(message.roleKey[i]); - if (error) - return "roleKey." + error; + if (error) return 'roleKey.' + error; } } - if (message.mspKey != null && message.hasOwnProperty("mspKey")) { + if (message.mspKey != null && message.hasOwnProperty('mspKey')) { let error = $root.Enterprise.MspKey.verify(message.mspKey); - if (error) - return "mspKey." + error; + if (error) return 'mspKey.' + error; } - if (message.enterpriseKeys != null && message.hasOwnProperty("enterpriseKeys")) { + if (message.enterpriseKeys != null && message.hasOwnProperty('enterpriseKeys')) { let error = $root.Enterprise.EnterpriseKeys.verify(message.enterpriseKeys); - if (error) - return "enterpriseKeys." + error; + if (error) return 'enterpriseKeys.' + error; } - if (message.treeKey != null && message.hasOwnProperty("treeKey")) { + if (message.treeKey != null && message.hasOwnProperty('treeKey')) { let error = $root.Enterprise.TreeKey.verify(message.treeKey); - if (error) - return "treeKey." + error; + if (error) return 'treeKey.' + error; } return null; }; @@ -78170,42 +80756,45 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.GetEnterpriseDataKeysResponse} GetEnterpriseDataKeysResponse */ GetEnterpriseDataKeysResponse.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.GetEnterpriseDataKeysResponse) - return object; + if (object instanceof $root.Enterprise.GetEnterpriseDataKeysResponse) return object; let message = new $root.Enterprise.GetEnterpriseDataKeysResponse(); if (object.reEncryptedRoleKey) { if (!Array.isArray(object.reEncryptedRoleKey)) - throw TypeError(".Enterprise.GetEnterpriseDataKeysResponse.reEncryptedRoleKey: array expected"); + throw TypeError('.Enterprise.GetEnterpriseDataKeysResponse.reEncryptedRoleKey: array expected'); message.reEncryptedRoleKey = []; for (let i = 0; i < object.reEncryptedRoleKey.length; ++i) { - if (typeof object.reEncryptedRoleKey[i] !== "object") - throw TypeError(".Enterprise.GetEnterpriseDataKeysResponse.reEncryptedRoleKey: object expected"); - message.reEncryptedRoleKey[i] = $root.Enterprise.ReEncryptedRoleKey.fromObject(object.reEncryptedRoleKey[i]); + if (typeof object.reEncryptedRoleKey[i] !== 'object') + throw TypeError( + '.Enterprise.GetEnterpriseDataKeysResponse.reEncryptedRoleKey: object expected' + ); + message.reEncryptedRoleKey[i] = $root.Enterprise.ReEncryptedRoleKey.fromObject( + object.reEncryptedRoleKey[i] + ); } } if (object.roleKey) { if (!Array.isArray(object.roleKey)) - throw TypeError(".Enterprise.GetEnterpriseDataKeysResponse.roleKey: array expected"); + throw TypeError('.Enterprise.GetEnterpriseDataKeysResponse.roleKey: array expected'); message.roleKey = []; for (let i = 0; i < object.roleKey.length; ++i) { - if (typeof object.roleKey[i] !== "object") - throw TypeError(".Enterprise.GetEnterpriseDataKeysResponse.roleKey: object expected"); + if (typeof object.roleKey[i] !== 'object') + throw TypeError('.Enterprise.GetEnterpriseDataKeysResponse.roleKey: object expected'); message.roleKey[i] = $root.Enterprise.RoleKey.fromObject(object.roleKey[i]); } } if (object.mspKey != null) { - if (typeof object.mspKey !== "object") - throw TypeError(".Enterprise.GetEnterpriseDataKeysResponse.mspKey: object expected"); + if (typeof object.mspKey !== 'object') + throw TypeError('.Enterprise.GetEnterpriseDataKeysResponse.mspKey: object expected'); message.mspKey = $root.Enterprise.MspKey.fromObject(object.mspKey); } if (object.enterpriseKeys != null) { - if (typeof object.enterpriseKeys !== "object") - throw TypeError(".Enterprise.GetEnterpriseDataKeysResponse.enterpriseKeys: object expected"); + if (typeof object.enterpriseKeys !== 'object') + throw TypeError('.Enterprise.GetEnterpriseDataKeysResponse.enterpriseKeys: object expected'); message.enterpriseKeys = $root.Enterprise.EnterpriseKeys.fromObject(object.enterpriseKeys); } if (object.treeKey != null) { - if (typeof object.treeKey !== "object") - throw TypeError(".Enterprise.GetEnterpriseDataKeysResponse.treeKey: object expected"); + if (typeof object.treeKey !== 'object') + throw TypeError('.Enterprise.GetEnterpriseDataKeysResponse.treeKey: object expected'); message.treeKey = $root.Enterprise.TreeKey.fromObject(object.treeKey); } return message; @@ -78221,8 +80810,7 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ GetEnterpriseDataKeysResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.arrays || options.defaults) { object.reEncryptedRoleKey = []; @@ -78236,18 +80824,21 @@ export const Enterprise = $root.Enterprise = (() => { if (message.reEncryptedRoleKey && message.reEncryptedRoleKey.length) { object.reEncryptedRoleKey = []; for (let j = 0; j < message.reEncryptedRoleKey.length; ++j) - object.reEncryptedRoleKey[j] = $root.Enterprise.ReEncryptedRoleKey.toObject(message.reEncryptedRoleKey[j], options); + object.reEncryptedRoleKey[j] = $root.Enterprise.ReEncryptedRoleKey.toObject( + message.reEncryptedRoleKey[j], + options + ); } if (message.roleKey && message.roleKey.length) { object.roleKey = []; for (let j = 0; j < message.roleKey.length; ++j) object.roleKey[j] = $root.Enterprise.RoleKey.toObject(message.roleKey[j], options); } - if (message.mspKey != null && message.hasOwnProperty("mspKey")) + if (message.mspKey != null && message.hasOwnProperty('mspKey')) object.mspKey = $root.Enterprise.MspKey.toObject(message.mspKey, options); - if (message.enterpriseKeys != null && message.hasOwnProperty("enterpriseKeys")) + if (message.enterpriseKeys != null && message.hasOwnProperty('enterpriseKeys')) object.enterpriseKeys = $root.Enterprise.EnterpriseKeys.toObject(message.enterpriseKeys, options); - if (message.treeKey != null && message.hasOwnProperty("treeKey")) + if (message.treeKey != null && message.hasOwnProperty('treeKey')) object.treeKey = $root.Enterprise.TreeKey.toObject(message.treeKey, options); return object; }; @@ -78273,16 +80864,15 @@ export const Enterprise = $root.Enterprise = (() => { */ GetEnterpriseDataKeysResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.GetEnterpriseDataKeysResponse"; + return typeUrlPrefix + '/Enterprise.GetEnterpriseDataKeysResponse'; }; return GetEnterpriseDataKeysResponse; })(); - Enterprise.RoleKey = (function() { - + Enterprise.RoleKey = (function () { /** * Properties of a RoleKey. * @memberof Enterprise @@ -78303,8 +80893,7 @@ export const Enterprise = $root.Enterprise = (() => { function RoleKey(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -78313,7 +80902,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.RoleKey * @instance */ - RoleKey.prototype.roleId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + RoleKey.prototype.roleId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * RoleKey encryptedKey. @@ -78321,7 +80910,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.RoleKey * @instance */ - RoleKey.prototype.encryptedKey = ""; + RoleKey.prototype.encryptedKey = ''; /** * RoleKey keyType. @@ -78353,14 +80942,13 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ RoleKey.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.roleId != null && Object.hasOwnProperty.call(message, "roleId")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.roleId); - if (message.encryptedKey != null && Object.hasOwnProperty.call(message, "encryptedKey")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.encryptedKey); - if (message.keyType != null && Object.hasOwnProperty.call(message, "keyType")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.keyType); + if (!writer) writer = $Writer.create(); + if (message.roleId != null && Object.hasOwnProperty.call(message, 'roleId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int64(message.roleId); + if (message.encryptedKey != null && Object.hasOwnProperty.call(message, 'encryptedKey')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.encryptedKey); + if (message.keyType != null && Object.hasOwnProperty.call(message, 'keyType')) + writer.uint32(/* id 3, wireType 0 =*/ 24).int32(message.keyType); return writer; }; @@ -78389,27 +80977,27 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RoleKey.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.RoleKey(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.RoleKey(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.roleId = reader.int64(); break; } - case 2: { + case 2: { message.encryptedKey = reader.string(); break; } - case 3: { + case 3: { message.keyType = reader.int32(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -78426,8 +81014,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RoleKey.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -78440,24 +81027,25 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ RoleKey.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.roleId != null && message.hasOwnProperty("roleId")) - if (!$util.isInteger(message.roleId) && !(message.roleId && $util.isInteger(message.roleId.low) && $util.isInteger(message.roleId.high))) - return "roleId: integer|Long expected"; - if (message.encryptedKey != null && message.hasOwnProperty("encryptedKey")) - if (!$util.isString(message.encryptedKey)) - return "encryptedKey: string expected"; - if (message.keyType != null && message.hasOwnProperty("keyType")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.roleId != null && message.hasOwnProperty('roleId')) + if ( + !$util.isInteger(message.roleId) && + !(message.roleId && $util.isInteger(message.roleId.low) && $util.isInteger(message.roleId.high)) + ) + return 'roleId: integer|Long expected'; + if (message.encryptedKey != null && message.hasOwnProperty('encryptedKey')) + if (!$util.isString(message.encryptedKey)) return 'encryptedKey: string expected'; + if (message.keyType != null && message.hasOwnProperty('keyType')) switch (message.keyType) { - default: - return "keyType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; + default: + return 'keyType: enum value expected'; + case 0: + case 1: + case 2: + case 3: + case 4: + break; } return null; }; @@ -78471,47 +81059,42 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.RoleKey} RoleKey */ RoleKey.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.RoleKey) - return object; + if (object instanceof $root.Enterprise.RoleKey) return object; let message = new $root.Enterprise.RoleKey(); if (object.roleId != null) - if ($util.Long) - (message.roleId = $util.Long.fromValue(object.roleId)).unsigned = false; - else if (typeof object.roleId === "string") - message.roleId = parseInt(object.roleId, 10); - else if (typeof object.roleId === "number") - message.roleId = object.roleId; - else if (typeof object.roleId === "object") + if ($util.Long) (message.roleId = $util.Long.fromValue(object.roleId)).unsigned = false; + else if (typeof object.roleId === 'string') message.roleId = parseInt(object.roleId, 10); + else if (typeof object.roleId === 'number') message.roleId = object.roleId; + else if (typeof object.roleId === 'object') message.roleId = new $util.LongBits(object.roleId.low >>> 0, object.roleId.high >>> 0).toNumber(); - if (object.encryptedKey != null) - message.encryptedKey = String(object.encryptedKey); + if (object.encryptedKey != null) message.encryptedKey = String(object.encryptedKey); switch (object.keyType) { - default: - if (typeof object.keyType === "number") { - message.keyType = object.keyType; + default: + if (typeof object.keyType === 'number') { + message.keyType = object.keyType; + break; + } + break; + case 'KT_NO_KEY': + case 0: + message.keyType = 0; + break; + case 'KT_ENCRYPTED_BY_DATA_KEY': + case 1: + message.keyType = 1; + break; + case 'KT_ENCRYPTED_BY_PUBLIC_KEY': + case 2: + message.keyType = 2; + break; + case 'KT_ENCRYPTED_BY_DATA_KEY_GCM': + case 3: + message.keyType = 3; + break; + case 'KT_ENCRYPTED_BY_PUBLIC_KEY_ECC': + case 4: + message.keyType = 4; break; - } - break; - case "KT_NO_KEY": - case 0: - message.keyType = 0; - break; - case "KT_ENCRYPTED_BY_DATA_KEY": - case 1: - message.keyType = 1; - break; - case "KT_ENCRYPTED_BY_PUBLIC_KEY": - case 2: - message.keyType = 2; - break; - case "KT_ENCRYPTED_BY_DATA_KEY_GCM": - case 3: - message.keyType = 3; - break; - case "KT_ENCRYPTED_BY_PUBLIC_KEY_ECC": - case 4: - message.keyType = 4; - break; } return message; }; @@ -78526,27 +81109,36 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ RoleKey.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.roleId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.roleId = options.longs === String ? "0" : 0; - object.encryptedKey = ""; - object.keyType = options.enums === String ? "KT_NO_KEY" : 0; - } - if (message.roleId != null && message.hasOwnProperty("roleId")) - if (typeof message.roleId === "number") + object.roleId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.roleId = options.longs === String ? '0' : 0; + object.encryptedKey = ''; + object.keyType = options.enums === String ? 'KT_NO_KEY' : 0; + } + if (message.roleId != null && message.hasOwnProperty('roleId')) + if (typeof message.roleId === 'number') object.roleId = options.longs === String ? String(message.roleId) : message.roleId; else - object.roleId = options.longs === String ? $util.Long.prototype.toString.call(message.roleId) : options.longs === Number ? new $util.LongBits(message.roleId.low >>> 0, message.roleId.high >>> 0).toNumber() : message.roleId; - if (message.encryptedKey != null && message.hasOwnProperty("encryptedKey")) + object.roleId = + options.longs === String + ? $util.Long.prototype.toString.call(message.roleId) + : options.longs === Number + ? new $util.LongBits(message.roleId.low >>> 0, message.roleId.high >>> 0).toNumber() + : message.roleId; + if (message.encryptedKey != null && message.hasOwnProperty('encryptedKey')) object.encryptedKey = message.encryptedKey; - if (message.keyType != null && message.hasOwnProperty("keyType")) - object.keyType = options.enums === String ? $root.Enterprise.EncryptedKeyType[message.keyType] === undefined ? message.keyType : $root.Enterprise.EncryptedKeyType[message.keyType] : message.keyType; + if (message.keyType != null && message.hasOwnProperty('keyType')) + object.keyType = + options.enums === String + ? $root.Enterprise.EncryptedKeyType[message.keyType] === undefined + ? message.keyType + : $root.Enterprise.EncryptedKeyType[message.keyType] + : message.keyType; return object; }; @@ -78571,16 +81163,15 @@ export const Enterprise = $root.Enterprise = (() => { */ RoleKey.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.RoleKey"; + return typeUrlPrefix + '/Enterprise.RoleKey'; }; return RoleKey; })(); - Enterprise.MspKey = (function() { - + Enterprise.MspKey = (function () { /** * Properties of a MspKey. * @memberof Enterprise @@ -78600,8 +81191,7 @@ export const Enterprise = $root.Enterprise = (() => { function MspKey(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -78610,7 +81200,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.MspKey * @instance */ - MspKey.prototype.encryptedMspTreeKey = ""; + MspKey.prototype.encryptedMspTreeKey = ''; /** * MspKey encryptedMspTreeKeyType. @@ -78642,12 +81232,14 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ MspKey.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.encryptedMspTreeKey != null && Object.hasOwnProperty.call(message, "encryptedMspTreeKey")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.encryptedMspTreeKey); - if (message.encryptedMspTreeKeyType != null && Object.hasOwnProperty.call(message, "encryptedMspTreeKeyType")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.encryptedMspTreeKeyType); + if (!writer) writer = $Writer.create(); + if (message.encryptedMspTreeKey != null && Object.hasOwnProperty.call(message, 'encryptedMspTreeKey')) + writer.uint32(/* id 1, wireType 2 =*/ 10).string(message.encryptedMspTreeKey); + if ( + message.encryptedMspTreeKeyType != null && + Object.hasOwnProperty.call(message, 'encryptedMspTreeKeyType') + ) + writer.uint32(/* id 2, wireType 0 =*/ 16).int32(message.encryptedMspTreeKeyType); return writer; }; @@ -78676,23 +81268,23 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ MspKey.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.MspKey(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.MspKey(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.encryptedMspTreeKey = reader.string(); break; } - case 2: { + case 2: { message.encryptedMspTreeKeyType = reader.int32(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -78709,8 +81301,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ MspKey.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -78723,21 +81314,19 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ MspKey.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.encryptedMspTreeKey != null && message.hasOwnProperty("encryptedMspTreeKey")) - if (!$util.isString(message.encryptedMspTreeKey)) - return "encryptedMspTreeKey: string expected"; - if (message.encryptedMspTreeKeyType != null && message.hasOwnProperty("encryptedMspTreeKeyType")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.encryptedMspTreeKey != null && message.hasOwnProperty('encryptedMspTreeKey')) + if (!$util.isString(message.encryptedMspTreeKey)) return 'encryptedMspTreeKey: string expected'; + if (message.encryptedMspTreeKeyType != null && message.hasOwnProperty('encryptedMspTreeKeyType')) switch (message.encryptedMspTreeKeyType) { - default: - return "encryptedMspTreeKeyType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; + default: + return 'encryptedMspTreeKeyType: enum value expected'; + case 0: + case 1: + case 2: + case 3: + case 4: + break; } return null; }; @@ -78751,38 +81340,36 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.MspKey} MspKey */ MspKey.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.MspKey) - return object; + if (object instanceof $root.Enterprise.MspKey) return object; let message = new $root.Enterprise.MspKey(); - if (object.encryptedMspTreeKey != null) - message.encryptedMspTreeKey = String(object.encryptedMspTreeKey); + if (object.encryptedMspTreeKey != null) message.encryptedMspTreeKey = String(object.encryptedMspTreeKey); switch (object.encryptedMspTreeKeyType) { - default: - if (typeof object.encryptedMspTreeKeyType === "number") { - message.encryptedMspTreeKeyType = object.encryptedMspTreeKeyType; + default: + if (typeof object.encryptedMspTreeKeyType === 'number') { + message.encryptedMspTreeKeyType = object.encryptedMspTreeKeyType; + break; + } + break; + case 'KT_NO_KEY': + case 0: + message.encryptedMspTreeKeyType = 0; + break; + case 'KT_ENCRYPTED_BY_DATA_KEY': + case 1: + message.encryptedMspTreeKeyType = 1; + break; + case 'KT_ENCRYPTED_BY_PUBLIC_KEY': + case 2: + message.encryptedMspTreeKeyType = 2; + break; + case 'KT_ENCRYPTED_BY_DATA_KEY_GCM': + case 3: + message.encryptedMspTreeKeyType = 3; + break; + case 'KT_ENCRYPTED_BY_PUBLIC_KEY_ECC': + case 4: + message.encryptedMspTreeKeyType = 4; break; - } - break; - case "KT_NO_KEY": - case 0: - message.encryptedMspTreeKeyType = 0; - break; - case "KT_ENCRYPTED_BY_DATA_KEY": - case 1: - message.encryptedMspTreeKeyType = 1; - break; - case "KT_ENCRYPTED_BY_PUBLIC_KEY": - case 2: - message.encryptedMspTreeKeyType = 2; - break; - case "KT_ENCRYPTED_BY_DATA_KEY_GCM": - case 3: - message.encryptedMspTreeKeyType = 3; - break; - case "KT_ENCRYPTED_BY_PUBLIC_KEY_ECC": - case 4: - message.encryptedMspTreeKeyType = 4; - break; } return message; }; @@ -78797,17 +81384,21 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ MspKey.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - object.encryptedMspTreeKey = ""; - object.encryptedMspTreeKeyType = options.enums === String ? "KT_NO_KEY" : 0; + object.encryptedMspTreeKey = ''; + object.encryptedMspTreeKeyType = options.enums === String ? 'KT_NO_KEY' : 0; } - if (message.encryptedMspTreeKey != null && message.hasOwnProperty("encryptedMspTreeKey")) + if (message.encryptedMspTreeKey != null && message.hasOwnProperty('encryptedMspTreeKey')) object.encryptedMspTreeKey = message.encryptedMspTreeKey; - if (message.encryptedMspTreeKeyType != null && message.hasOwnProperty("encryptedMspTreeKeyType")) - object.encryptedMspTreeKeyType = options.enums === String ? $root.Enterprise.EncryptedKeyType[message.encryptedMspTreeKeyType] === undefined ? message.encryptedMspTreeKeyType : $root.Enterprise.EncryptedKeyType[message.encryptedMspTreeKeyType] : message.encryptedMspTreeKeyType; + if (message.encryptedMspTreeKeyType != null && message.hasOwnProperty('encryptedMspTreeKeyType')) + object.encryptedMspTreeKeyType = + options.enums === String + ? $root.Enterprise.EncryptedKeyType[message.encryptedMspTreeKeyType] === undefined + ? message.encryptedMspTreeKeyType + : $root.Enterprise.EncryptedKeyType[message.encryptedMspTreeKeyType] + : message.encryptedMspTreeKeyType; return object; }; @@ -78832,9 +81423,9 @@ export const Enterprise = $root.Enterprise = (() => { */ MspKey.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.MspKey"; + return typeUrlPrefix + '/Enterprise.MspKey'; }; return MspKey; @@ -78850,18 +81441,18 @@ export const Enterprise = $root.Enterprise = (() => { * @property {number} KT_ENCRYPTED_BY_DATA_KEY_GCM=3 KT_ENCRYPTED_BY_DATA_KEY_GCM value * @property {number} KT_ENCRYPTED_BY_PUBLIC_KEY_ECC=4 KT_ENCRYPTED_BY_PUBLIC_KEY_ECC value */ - Enterprise.EncryptedKeyType = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "KT_NO_KEY"] = 0; - values[valuesById[1] = "KT_ENCRYPTED_BY_DATA_KEY"] = 1; - values[valuesById[2] = "KT_ENCRYPTED_BY_PUBLIC_KEY"] = 2; - values[valuesById[3] = "KT_ENCRYPTED_BY_DATA_KEY_GCM"] = 3; - values[valuesById[4] = "KT_ENCRYPTED_BY_PUBLIC_KEY_ECC"] = 4; + Enterprise.EncryptedKeyType = (function () { + const valuesById = {}, + values = Object.create(valuesById); + values[(valuesById[0] = 'KT_NO_KEY')] = 0; + values[(valuesById[1] = 'KT_ENCRYPTED_BY_DATA_KEY')] = 1; + values[(valuesById[2] = 'KT_ENCRYPTED_BY_PUBLIC_KEY')] = 2; + values[(valuesById[3] = 'KT_ENCRYPTED_BY_DATA_KEY_GCM')] = 3; + values[(valuesById[4] = 'KT_ENCRYPTED_BY_PUBLIC_KEY_ECC')] = 4; return values; })(); - Enterprise.EnterpriseKeys = (function() { - + Enterprise.EnterpriseKeys = (function () { /** * Properties of an EnterpriseKeys. * @memberof Enterprise @@ -78883,8 +81474,7 @@ export const Enterprise = $root.Enterprise = (() => { function EnterpriseKeys(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -78941,16 +81531,15 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ EnterpriseKeys.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.rsaPublicKey != null && Object.hasOwnProperty.call(message, "rsaPublicKey")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.rsaPublicKey); - if (message.rsaEncryptedPrivateKey != null && Object.hasOwnProperty.call(message, "rsaEncryptedPrivateKey")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.rsaEncryptedPrivateKey); - if (message.eccPublicKey != null && Object.hasOwnProperty.call(message, "eccPublicKey")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.eccPublicKey); - if (message.eccEncryptedPrivateKey != null && Object.hasOwnProperty.call(message, "eccEncryptedPrivateKey")) - writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.eccEncryptedPrivateKey); + if (!writer) writer = $Writer.create(); + if (message.rsaPublicKey != null && Object.hasOwnProperty.call(message, 'rsaPublicKey')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.rsaPublicKey); + if (message.rsaEncryptedPrivateKey != null && Object.hasOwnProperty.call(message, 'rsaEncryptedPrivateKey')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.rsaEncryptedPrivateKey); + if (message.eccPublicKey != null && Object.hasOwnProperty.call(message, 'eccPublicKey')) + writer.uint32(/* id 3, wireType 2 =*/ 26).bytes(message.eccPublicKey); + if (message.eccEncryptedPrivateKey != null && Object.hasOwnProperty.call(message, 'eccEncryptedPrivateKey')) + writer.uint32(/* id 4, wireType 2 =*/ 34).bytes(message.eccEncryptedPrivateKey); return writer; }; @@ -78979,31 +81568,31 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ EnterpriseKeys.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.EnterpriseKeys(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.EnterpriseKeys(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.rsaPublicKey = reader.bytes(); break; } - case 2: { + case 2: { message.rsaEncryptedPrivateKey = reader.bytes(); break; } - case 3: { + case 3: { message.eccPublicKey = reader.bytes(); break; } - case 4: { + case 4: { message.eccEncryptedPrivateKey = reader.bytes(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -79020,8 +81609,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ EnterpriseKeys.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -79034,20 +81622,39 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ EnterpriseKeys.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.rsaPublicKey != null && message.hasOwnProperty("rsaPublicKey")) - if (!(message.rsaPublicKey && typeof message.rsaPublicKey.length === "number" || $util.isString(message.rsaPublicKey))) - return "rsaPublicKey: buffer expected"; - if (message.rsaEncryptedPrivateKey != null && message.hasOwnProperty("rsaEncryptedPrivateKey")) - if (!(message.rsaEncryptedPrivateKey && typeof message.rsaEncryptedPrivateKey.length === "number" || $util.isString(message.rsaEncryptedPrivateKey))) - return "rsaEncryptedPrivateKey: buffer expected"; - if (message.eccPublicKey != null && message.hasOwnProperty("eccPublicKey")) - if (!(message.eccPublicKey && typeof message.eccPublicKey.length === "number" || $util.isString(message.eccPublicKey))) - return "eccPublicKey: buffer expected"; - if (message.eccEncryptedPrivateKey != null && message.hasOwnProperty("eccEncryptedPrivateKey")) - if (!(message.eccEncryptedPrivateKey && typeof message.eccEncryptedPrivateKey.length === "number" || $util.isString(message.eccEncryptedPrivateKey))) - return "eccEncryptedPrivateKey: buffer expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.rsaPublicKey != null && message.hasOwnProperty('rsaPublicKey')) + if ( + !( + (message.rsaPublicKey && typeof message.rsaPublicKey.length === 'number') || + $util.isString(message.rsaPublicKey) + ) + ) + return 'rsaPublicKey: buffer expected'; + if (message.rsaEncryptedPrivateKey != null && message.hasOwnProperty('rsaEncryptedPrivateKey')) + if ( + !( + (message.rsaEncryptedPrivateKey && typeof message.rsaEncryptedPrivateKey.length === 'number') || + $util.isString(message.rsaEncryptedPrivateKey) + ) + ) + return 'rsaEncryptedPrivateKey: buffer expected'; + if (message.eccPublicKey != null && message.hasOwnProperty('eccPublicKey')) + if ( + !( + (message.eccPublicKey && typeof message.eccPublicKey.length === 'number') || + $util.isString(message.eccPublicKey) + ) + ) + return 'eccPublicKey: buffer expected'; + if (message.eccEncryptedPrivateKey != null && message.hasOwnProperty('eccEncryptedPrivateKey')) + if ( + !( + (message.eccEncryptedPrivateKey && typeof message.eccEncryptedPrivateKey.length === 'number') || + $util.isString(message.eccEncryptedPrivateKey) + ) + ) + return 'eccEncryptedPrivateKey: buffer expected'; return null; }; @@ -79060,27 +81667,44 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.EnterpriseKeys} EnterpriseKeys */ EnterpriseKeys.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.EnterpriseKeys) - return object; + if (object instanceof $root.Enterprise.EnterpriseKeys) return object; let message = new $root.Enterprise.EnterpriseKeys(); if (object.rsaPublicKey != null) - if (typeof object.rsaPublicKey === "string") - $util.base64.decode(object.rsaPublicKey, message.rsaPublicKey = $util.newBuffer($util.base64.length(object.rsaPublicKey)), 0); - else if (object.rsaPublicKey.length >= 0) - message.rsaPublicKey = object.rsaPublicKey; + if (typeof object.rsaPublicKey === 'string') + $util.base64.decode( + object.rsaPublicKey, + (message.rsaPublicKey = $util.newBuffer($util.base64.length(object.rsaPublicKey))), + 0 + ); + else if (object.rsaPublicKey.length >= 0) message.rsaPublicKey = object.rsaPublicKey; if (object.rsaEncryptedPrivateKey != null) - if (typeof object.rsaEncryptedPrivateKey === "string") - $util.base64.decode(object.rsaEncryptedPrivateKey, message.rsaEncryptedPrivateKey = $util.newBuffer($util.base64.length(object.rsaEncryptedPrivateKey)), 0); + if (typeof object.rsaEncryptedPrivateKey === 'string') + $util.base64.decode( + object.rsaEncryptedPrivateKey, + (message.rsaEncryptedPrivateKey = $util.newBuffer( + $util.base64.length(object.rsaEncryptedPrivateKey) + )), + 0 + ); else if (object.rsaEncryptedPrivateKey.length >= 0) message.rsaEncryptedPrivateKey = object.rsaEncryptedPrivateKey; if (object.eccPublicKey != null) - if (typeof object.eccPublicKey === "string") - $util.base64.decode(object.eccPublicKey, message.eccPublicKey = $util.newBuffer($util.base64.length(object.eccPublicKey)), 0); - else if (object.eccPublicKey.length >= 0) - message.eccPublicKey = object.eccPublicKey; + if (typeof object.eccPublicKey === 'string') + $util.base64.decode( + object.eccPublicKey, + (message.eccPublicKey = $util.newBuffer($util.base64.length(object.eccPublicKey))), + 0 + ); + else if (object.eccPublicKey.length >= 0) message.eccPublicKey = object.eccPublicKey; if (object.eccEncryptedPrivateKey != null) - if (typeof object.eccEncryptedPrivateKey === "string") - $util.base64.decode(object.eccEncryptedPrivateKey, message.eccEncryptedPrivateKey = $util.newBuffer($util.base64.length(object.eccEncryptedPrivateKey)), 0); + if (typeof object.eccEncryptedPrivateKey === 'string') + $util.base64.decode( + object.eccEncryptedPrivateKey, + (message.eccEncryptedPrivateKey = $util.newBuffer( + $util.base64.length(object.eccEncryptedPrivateKey) + )), + 0 + ); else if (object.eccEncryptedPrivateKey.length >= 0) message.eccEncryptedPrivateKey = object.eccEncryptedPrivateKey; return message; @@ -79096,47 +81720,60 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ EnterpriseKeys.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.rsaPublicKey = ""; + if (options.bytes === String) object.rsaPublicKey = ''; else { object.rsaPublicKey = []; - if (options.bytes !== Array) - object.rsaPublicKey = $util.newBuffer(object.rsaPublicKey); + if (options.bytes !== Array) object.rsaPublicKey = $util.newBuffer(object.rsaPublicKey); } - if (options.bytes === String) - object.rsaEncryptedPrivateKey = ""; + if (options.bytes === String) object.rsaEncryptedPrivateKey = ''; else { object.rsaEncryptedPrivateKey = []; if (options.bytes !== Array) object.rsaEncryptedPrivateKey = $util.newBuffer(object.rsaEncryptedPrivateKey); } - if (options.bytes === String) - object.eccPublicKey = ""; + if (options.bytes === String) object.eccPublicKey = ''; else { object.eccPublicKey = []; - if (options.bytes !== Array) - object.eccPublicKey = $util.newBuffer(object.eccPublicKey); + if (options.bytes !== Array) object.eccPublicKey = $util.newBuffer(object.eccPublicKey); } - if (options.bytes === String) - object.eccEncryptedPrivateKey = ""; + if (options.bytes === String) object.eccEncryptedPrivateKey = ''; else { object.eccEncryptedPrivateKey = []; if (options.bytes !== Array) object.eccEncryptedPrivateKey = $util.newBuffer(object.eccEncryptedPrivateKey); } } - if (message.rsaPublicKey != null && message.hasOwnProperty("rsaPublicKey")) - object.rsaPublicKey = options.bytes === String ? $util.base64.encode(message.rsaPublicKey, 0, message.rsaPublicKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.rsaPublicKey) : message.rsaPublicKey; - if (message.rsaEncryptedPrivateKey != null && message.hasOwnProperty("rsaEncryptedPrivateKey")) - object.rsaEncryptedPrivateKey = options.bytes === String ? $util.base64.encode(message.rsaEncryptedPrivateKey, 0, message.rsaEncryptedPrivateKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.rsaEncryptedPrivateKey) : message.rsaEncryptedPrivateKey; - if (message.eccPublicKey != null && message.hasOwnProperty("eccPublicKey")) - object.eccPublicKey = options.bytes === String ? $util.base64.encode(message.eccPublicKey, 0, message.eccPublicKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.eccPublicKey) : message.eccPublicKey; - if (message.eccEncryptedPrivateKey != null && message.hasOwnProperty("eccEncryptedPrivateKey")) - object.eccEncryptedPrivateKey = options.bytes === String ? $util.base64.encode(message.eccEncryptedPrivateKey, 0, message.eccEncryptedPrivateKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.eccEncryptedPrivateKey) : message.eccEncryptedPrivateKey; + if (message.rsaPublicKey != null && message.hasOwnProperty('rsaPublicKey')) + object.rsaPublicKey = + options.bytes === String + ? $util.base64.encode(message.rsaPublicKey, 0, message.rsaPublicKey.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.rsaPublicKey) + : message.rsaPublicKey; + if (message.rsaEncryptedPrivateKey != null && message.hasOwnProperty('rsaEncryptedPrivateKey')) + object.rsaEncryptedPrivateKey = + options.bytes === String + ? $util.base64.encode(message.rsaEncryptedPrivateKey, 0, message.rsaEncryptedPrivateKey.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.rsaEncryptedPrivateKey) + : message.rsaEncryptedPrivateKey; + if (message.eccPublicKey != null && message.hasOwnProperty('eccPublicKey')) + object.eccPublicKey = + options.bytes === String + ? $util.base64.encode(message.eccPublicKey, 0, message.eccPublicKey.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.eccPublicKey) + : message.eccPublicKey; + if (message.eccEncryptedPrivateKey != null && message.hasOwnProperty('eccEncryptedPrivateKey')) + object.eccEncryptedPrivateKey = + options.bytes === String + ? $util.base64.encode(message.eccEncryptedPrivateKey, 0, message.eccEncryptedPrivateKey.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.eccEncryptedPrivateKey) + : message.eccEncryptedPrivateKey; return object; }; @@ -79161,16 +81798,15 @@ export const Enterprise = $root.Enterprise = (() => { */ EnterpriseKeys.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.EnterpriseKeys"; + return typeUrlPrefix + '/Enterprise.EnterpriseKeys'; }; return EnterpriseKeys; })(); - Enterprise.TreeKey = (function() { - + Enterprise.TreeKey = (function () { /** * Properties of a TreeKey. * @memberof Enterprise @@ -79190,8 +81826,7 @@ export const Enterprise = $root.Enterprise = (() => { function TreeKey(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -79200,7 +81835,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.TreeKey * @instance */ - TreeKey.prototype.treeKey = ""; + TreeKey.prototype.treeKey = ''; /** * TreeKey keyTypeId. @@ -79232,12 +81867,11 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ TreeKey.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.treeKey != null && Object.hasOwnProperty.call(message, "treeKey")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.treeKey); - if (message.keyTypeId != null && Object.hasOwnProperty.call(message, "keyTypeId")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.keyTypeId); + if (!writer) writer = $Writer.create(); + if (message.treeKey != null && Object.hasOwnProperty.call(message, 'treeKey')) + writer.uint32(/* id 1, wireType 2 =*/ 10).string(message.treeKey); + if (message.keyTypeId != null && Object.hasOwnProperty.call(message, 'keyTypeId')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int32(message.keyTypeId); return writer; }; @@ -79266,23 +81900,23 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ TreeKey.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.TreeKey(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.TreeKey(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.treeKey = reader.string(); break; } - case 2: { + case 2: { message.keyTypeId = reader.int32(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -79299,8 +81933,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ TreeKey.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -79313,21 +81946,19 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ TreeKey.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.treeKey != null && message.hasOwnProperty("treeKey")) - if (!$util.isString(message.treeKey)) - return "treeKey: string expected"; - if (message.keyTypeId != null && message.hasOwnProperty("keyTypeId")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.treeKey != null && message.hasOwnProperty('treeKey')) + if (!$util.isString(message.treeKey)) return 'treeKey: string expected'; + if (message.keyTypeId != null && message.hasOwnProperty('keyTypeId')) switch (message.keyTypeId) { - default: - return "keyTypeId: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; + default: + return 'keyTypeId: enum value expected'; + case 0: + case 1: + case 2: + case 3: + case 4: + break; } return null; }; @@ -79341,38 +81972,36 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.TreeKey} TreeKey */ TreeKey.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.TreeKey) - return object; + if (object instanceof $root.Enterprise.TreeKey) return object; let message = new $root.Enterprise.TreeKey(); - if (object.treeKey != null) - message.treeKey = String(object.treeKey); + if (object.treeKey != null) message.treeKey = String(object.treeKey); switch (object.keyTypeId) { - default: - if (typeof object.keyTypeId === "number") { - message.keyTypeId = object.keyTypeId; + default: + if (typeof object.keyTypeId === 'number') { + message.keyTypeId = object.keyTypeId; + break; + } + break; + case 'NO_KEY': + case 0: + message.keyTypeId = 0; + break; + case 'ENCRYPTED_BY_DATA_KEY': + case 1: + message.keyTypeId = 1; + break; + case 'ENCRYPTED_BY_PUBLIC_KEY': + case 2: + message.keyTypeId = 2; + break; + case 'ENCRYPTED_BY_DATA_KEY_GCM': + case 3: + message.keyTypeId = 3; + break; + case 'ENCRYPTED_BY_PUBLIC_KEY_ECC': + case 4: + message.keyTypeId = 4; break; - } - break; - case "NO_KEY": - case 0: - message.keyTypeId = 0; - break; - case "ENCRYPTED_BY_DATA_KEY": - case 1: - message.keyTypeId = 1; - break; - case "ENCRYPTED_BY_PUBLIC_KEY": - case 2: - message.keyTypeId = 2; - break; - case "ENCRYPTED_BY_DATA_KEY_GCM": - case 3: - message.keyTypeId = 3; - break; - case "ENCRYPTED_BY_PUBLIC_KEY_ECC": - case 4: - message.keyTypeId = 4; - break; } return message; }; @@ -79387,17 +82016,20 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ TreeKey.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - object.treeKey = ""; - object.keyTypeId = options.enums === String ? "NO_KEY" : 0; + object.treeKey = ''; + object.keyTypeId = options.enums === String ? 'NO_KEY' : 0; } - if (message.treeKey != null && message.hasOwnProperty("treeKey")) - object.treeKey = message.treeKey; - if (message.keyTypeId != null && message.hasOwnProperty("keyTypeId")) - object.keyTypeId = options.enums === String ? $root.Enterprise.BackupKeyType[message.keyTypeId] === undefined ? message.keyTypeId : $root.Enterprise.BackupKeyType[message.keyTypeId] : message.keyTypeId; + if (message.treeKey != null && message.hasOwnProperty('treeKey')) object.treeKey = message.treeKey; + if (message.keyTypeId != null && message.hasOwnProperty('keyTypeId')) + object.keyTypeId = + options.enums === String + ? $root.Enterprise.BackupKeyType[message.keyTypeId] === undefined + ? message.keyTypeId + : $root.Enterprise.BackupKeyType[message.keyTypeId] + : message.keyTypeId; return object; }; @@ -79422,16 +82054,15 @@ export const Enterprise = $root.Enterprise = (() => { */ TreeKey.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.TreeKey"; + return typeUrlPrefix + '/Enterprise.TreeKey'; }; return TreeKey; })(); - Enterprise.SharedRecordResponse = (function() { - + Enterprise.SharedRecordResponse = (function () { /** * Properties of a SharedRecordResponse. * @memberof Enterprise @@ -79451,8 +82082,7 @@ export const Enterprise = $root.Enterprise = (() => { this.events = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -79485,11 +82115,13 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ SharedRecordResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.events != null && message.events.length) for (let i = 0; i < message.events.length; ++i) - $root.Enterprise.SharedRecordEvent.encode(message.events[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.Enterprise.SharedRecordEvent.encode( + message.events[i], + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); return writer; }; @@ -79518,21 +82150,20 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SharedRecordResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.SharedRecordResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.SharedRecordResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (!(message.events && message.events.length)) - message.events = []; + case 1: { + if (!(message.events && message.events.length)) message.events = []; message.events.push($root.Enterprise.SharedRecordEvent.decode(reader, reader.uint32())); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -79549,8 +82180,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SharedRecordResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -79563,15 +82193,12 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ SharedRecordResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.events != null && message.hasOwnProperty("events")) { - if (!Array.isArray(message.events)) - return "events: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.events != null && message.hasOwnProperty('events')) { + if (!Array.isArray(message.events)) return 'events: array expected'; for (let i = 0; i < message.events.length; ++i) { let error = $root.Enterprise.SharedRecordEvent.verify(message.events[i]); - if (error) - return "events." + error; + if (error) return 'events.' + error; } } return null; @@ -79586,16 +82213,15 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.SharedRecordResponse} SharedRecordResponse */ SharedRecordResponse.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.SharedRecordResponse) - return object; + if (object instanceof $root.Enterprise.SharedRecordResponse) return object; let message = new $root.Enterprise.SharedRecordResponse(); if (object.events) { if (!Array.isArray(object.events)) - throw TypeError(".Enterprise.SharedRecordResponse.events: array expected"); + throw TypeError('.Enterprise.SharedRecordResponse.events: array expected'); message.events = []; for (let i = 0; i < object.events.length; ++i) { - if (typeof object.events[i] !== "object") - throw TypeError(".Enterprise.SharedRecordResponse.events: object expected"); + if (typeof object.events[i] !== 'object') + throw TypeError('.Enterprise.SharedRecordResponse.events: object expected'); message.events[i] = $root.Enterprise.SharedRecordEvent.fromObject(object.events[i]); } } @@ -79612,11 +82238,9 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ SharedRecordResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.events = []; + if (options.arrays || options.defaults) object.events = []; if (message.events && message.events.length) { object.events = []; for (let j = 0; j < message.events.length; ++j) @@ -79646,16 +82270,15 @@ export const Enterprise = $root.Enterprise = (() => { */ SharedRecordResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.SharedRecordResponse"; + return typeUrlPrefix + '/Enterprise.SharedRecordResponse'; }; return SharedRecordResponse; })(); - Enterprise.SharedRecordEvent = (function() { - + Enterprise.SharedRecordEvent = (function () { /** * Properties of a SharedRecordEvent. * @memberof Enterprise @@ -79678,8 +82301,7 @@ export const Enterprise = $root.Enterprise = (() => { function SharedRecordEvent(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -79696,7 +82318,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.SharedRecordEvent * @instance */ - SharedRecordEvent.prototype.userName = ""; + SharedRecordEvent.prototype.userName = ''; /** * SharedRecordEvent canEdit. @@ -79744,18 +82366,17 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ SharedRecordEvent.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); - if (message.userName != null && Object.hasOwnProperty.call(message, "userName")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.userName); - if (message.canEdit != null && Object.hasOwnProperty.call(message, "canEdit")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.canEdit); - if (message.canReshare != null && Object.hasOwnProperty.call(message, "canReshare")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.canReshare); - if (message.shareFrom != null && Object.hasOwnProperty.call(message, "shareFrom")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.shareFrom); + if (!writer) writer = $Writer.create(); + if (message.recordUid != null && Object.hasOwnProperty.call(message, 'recordUid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.recordUid); + if (message.userName != null && Object.hasOwnProperty.call(message, 'userName')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.userName); + if (message.canEdit != null && Object.hasOwnProperty.call(message, 'canEdit')) + writer.uint32(/* id 3, wireType 0 =*/ 24).bool(message.canEdit); + if (message.canReshare != null && Object.hasOwnProperty.call(message, 'canReshare')) + writer.uint32(/* id 4, wireType 0 =*/ 32).bool(message.canReshare); + if (message.shareFrom != null && Object.hasOwnProperty.call(message, 'shareFrom')) + writer.uint32(/* id 5, wireType 0 =*/ 40).int32(message.shareFrom); return writer; }; @@ -79784,35 +82405,35 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SharedRecordEvent.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.SharedRecordEvent(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.SharedRecordEvent(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.recordUid = reader.bytes(); break; } - case 2: { + case 2: { message.userName = reader.string(); break; } - case 3: { + case 3: { message.canEdit = reader.bool(); break; } - case 4: { + case 4: { message.canReshare = reader.bool(); break; } - case 5: { + case 5: { message.shareFrom = reader.int32(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -79829,8 +82450,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SharedRecordEvent.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -79843,23 +82463,23 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ SharedRecordEvent.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) - return "recordUid: buffer expected"; - if (message.userName != null && message.hasOwnProperty("userName")) - if (!$util.isString(message.userName)) - return "userName: string expected"; - if (message.canEdit != null && message.hasOwnProperty("canEdit")) - if (typeof message.canEdit !== "boolean") - return "canEdit: boolean expected"; - if (message.canReshare != null && message.hasOwnProperty("canReshare")) - if (typeof message.canReshare !== "boolean") - return "canReshare: boolean expected"; - if (message.shareFrom != null && message.hasOwnProperty("shareFrom")) - if (!$util.isInteger(message.shareFrom)) - return "shareFrom: integer expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.recordUid != null && message.hasOwnProperty('recordUid')) + if ( + !( + (message.recordUid && typeof message.recordUid.length === 'number') || + $util.isString(message.recordUid) + ) + ) + return 'recordUid: buffer expected'; + if (message.userName != null && message.hasOwnProperty('userName')) + if (!$util.isString(message.userName)) return 'userName: string expected'; + if (message.canEdit != null && message.hasOwnProperty('canEdit')) + if (typeof message.canEdit !== 'boolean') return 'canEdit: boolean expected'; + if (message.canReshare != null && message.hasOwnProperty('canReshare')) + if (typeof message.canReshare !== 'boolean') return 'canReshare: boolean expected'; + if (message.shareFrom != null && message.hasOwnProperty('shareFrom')) + if (!$util.isInteger(message.shareFrom)) return 'shareFrom: integer expected'; return null; }; @@ -79872,22 +82492,20 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.SharedRecordEvent} SharedRecordEvent */ SharedRecordEvent.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.SharedRecordEvent) - return object; + if (object instanceof $root.Enterprise.SharedRecordEvent) return object; let message = new $root.Enterprise.SharedRecordEvent(); 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.userName != null) - message.userName = String(object.userName); - if (object.canEdit != null) - message.canEdit = Boolean(object.canEdit); - if (object.canReshare != null) - message.canReshare = Boolean(object.canReshare); - if (object.shareFrom != null) - message.shareFrom = object.shareFrom | 0; + 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.userName != null) message.userName = String(object.userName); + if (object.canEdit != null) message.canEdit = Boolean(object.canEdit); + if (object.canReshare != null) message.canReshare = Boolean(object.canReshare); + if (object.shareFrom != null) message.shareFrom = object.shareFrom | 0; return message; }; @@ -79901,32 +82519,31 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ SharedRecordEvent.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.recordUid = ""; + if (options.bytes === String) object.recordUid = ''; else { object.recordUid = []; - if (options.bytes !== Array) - object.recordUid = $util.newBuffer(object.recordUid); + if (options.bytes !== Array) object.recordUid = $util.newBuffer(object.recordUid); } - object.userName = ""; + object.userName = ''; object.canEdit = false; object.canReshare = false; object.shareFrom = 0; } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; - if (message.userName != null && message.hasOwnProperty("userName")) - object.userName = message.userName; - if (message.canEdit != null && message.hasOwnProperty("canEdit")) - object.canEdit = message.canEdit; - if (message.canReshare != null && message.hasOwnProperty("canReshare")) + if (message.recordUid != null && message.hasOwnProperty('recordUid')) + object.recordUid = + options.bytes === String + ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.recordUid) + : message.recordUid; + if (message.userName != null && message.hasOwnProperty('userName')) object.userName = message.userName; + if (message.canEdit != null && message.hasOwnProperty('canEdit')) object.canEdit = message.canEdit; + if (message.canReshare != null && message.hasOwnProperty('canReshare')) object.canReshare = message.canReshare; - if (message.shareFrom != null && message.hasOwnProperty("shareFrom")) - object.shareFrom = message.shareFrom; + if (message.shareFrom != null && message.hasOwnProperty('shareFrom')) object.shareFrom = message.shareFrom; return object; }; @@ -79951,9 +82568,9 @@ export const Enterprise = $root.Enterprise = (() => { */ SharedRecordEvent.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.SharedRecordEvent"; + return typeUrlPrefix + '/Enterprise.SharedRecordEvent'; }; return SharedRecordEvent; @@ -79975,24 +82592,24 @@ export const Enterprise = $root.Enterprise = (() => { * @property {number} NPS_POPUP_OPT_OUT=9 NPS_POPUP_OPT_OUT value * @property {number} SHOW_USER_ONBOARD=10 SHOW_USER_ONBOARD value */ - Enterprise.EnterpriseFlagType = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "INVALID"] = 0; - values[valuesById[1] = "ALLOW_PERSONAL_LICENSE"] = 1; - values[valuesById[2] = "SPECIAL_PROVISIONING"] = 2; - values[valuesById[3] = "RECORD_TYPES"] = 3; - values[valuesById[4] = "SECRETS_MANAGER"] = 4; - values[valuesById[5] = "ENTERPRISE_LOCKED"] = 5; - values[valuesById[6] = "FORBID_KEY_TYPE_2"] = 6; - values[valuesById[7] = "CONSOLE_ONBOARDED"] = 7; - values[valuesById[8] = "FORBID_ACCOUNT_TRANSFER"] = 8; - values[valuesById[9] = "NPS_POPUP_OPT_OUT"] = 9; - values[valuesById[10] = "SHOW_USER_ONBOARD"] = 10; + Enterprise.EnterpriseFlagType = (function () { + const valuesById = {}, + values = Object.create(valuesById); + values[(valuesById[0] = 'INVALID')] = 0; + values[(valuesById[1] = 'ALLOW_PERSONAL_LICENSE')] = 1; + values[(valuesById[2] = 'SPECIAL_PROVISIONING')] = 2; + values[(valuesById[3] = 'RECORD_TYPES')] = 3; + values[(valuesById[4] = 'SECRETS_MANAGER')] = 4; + values[(valuesById[5] = 'ENTERPRISE_LOCKED')] = 5; + values[(valuesById[6] = 'FORBID_KEY_TYPE_2')] = 6; + values[(valuesById[7] = 'CONSOLE_ONBOARDED')] = 7; + values[(valuesById[8] = 'FORBID_ACCOUNT_TRANSFER')] = 8; + values[(valuesById[9] = 'NPS_POPUP_OPT_OUT')] = 9; + values[(valuesById[10] = 'SHOW_USER_ONBOARD')] = 10; return values; })(); - Enterprise.SetRestrictVisibilityRequest = (function() { - + Enterprise.SetRestrictVisibilityRequest = (function () { /** * Properties of a SetRestrictVisibilityRequest. * @memberof Enterprise @@ -80011,8 +82628,7 @@ export const Enterprise = $root.Enterprise = (() => { function SetRestrictVisibilityRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -80021,7 +82637,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.SetRestrictVisibilityRequest * @instance */ - SetRestrictVisibilityRequest.prototype.nodeId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + SetRestrictVisibilityRequest.prototype.nodeId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * Creates a new SetRestrictVisibilityRequest instance using the specified properties. @@ -80045,10 +82661,9 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ SetRestrictVisibilityRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.nodeId != null && Object.hasOwnProperty.call(message, "nodeId")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.nodeId); + if (!writer) writer = $Writer.create(); + if (message.nodeId != null && Object.hasOwnProperty.call(message, 'nodeId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int64(message.nodeId); return writer; }; @@ -80077,19 +82692,19 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SetRestrictVisibilityRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.SetRestrictVisibilityRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.SetRestrictVisibilityRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.nodeId = reader.int64(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -80106,8 +82721,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SetRestrictVisibilityRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -80120,11 +82734,13 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ SetRestrictVisibilityRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.nodeId != null && message.hasOwnProperty("nodeId")) - if (!$util.isInteger(message.nodeId) && !(message.nodeId && $util.isInteger(message.nodeId.low) && $util.isInteger(message.nodeId.high))) - return "nodeId: integer|Long expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.nodeId != null && message.hasOwnProperty('nodeId')) + if ( + !$util.isInteger(message.nodeId) && + !(message.nodeId && $util.isInteger(message.nodeId.low) && $util.isInteger(message.nodeId.high)) + ) + return 'nodeId: integer|Long expected'; return null; }; @@ -80137,17 +82753,13 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.SetRestrictVisibilityRequest} SetRestrictVisibilityRequest */ SetRestrictVisibilityRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.SetRestrictVisibilityRequest) - return object; + if (object instanceof $root.Enterprise.SetRestrictVisibilityRequest) return object; let message = new $root.Enterprise.SetRestrictVisibilityRequest(); if (object.nodeId != null) - if ($util.Long) - (message.nodeId = $util.Long.fromValue(object.nodeId)).unsigned = false; - else if (typeof object.nodeId === "string") - message.nodeId = parseInt(object.nodeId, 10); - else if (typeof object.nodeId === "number") - message.nodeId = object.nodeId; - else if (typeof object.nodeId === "object") + if ($util.Long) (message.nodeId = $util.Long.fromValue(object.nodeId)).unsigned = false; + else if (typeof object.nodeId === 'string') message.nodeId = parseInt(object.nodeId, 10); + else if (typeof object.nodeId === 'number') message.nodeId = object.nodeId; + else if (typeof object.nodeId === 'object') message.nodeId = new $util.LongBits(object.nodeId.low >>> 0, object.nodeId.high >>> 0).toNumber(); return message; }; @@ -80162,20 +82774,24 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ SetRestrictVisibilityRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) if ($util.Long) { let long = new $util.Long(0, 0, false); - object.nodeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.nodeId = options.longs === String ? "0" : 0; - if (message.nodeId != null && message.hasOwnProperty("nodeId")) - if (typeof message.nodeId === "number") + object.nodeId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.nodeId = options.longs === String ? '0' : 0; + if (message.nodeId != null && message.hasOwnProperty('nodeId')) + if (typeof message.nodeId === 'number') object.nodeId = options.longs === String ? String(message.nodeId) : message.nodeId; else - object.nodeId = options.longs === String ? $util.Long.prototype.toString.call(message.nodeId) : options.longs === Number ? new $util.LongBits(message.nodeId.low >>> 0, message.nodeId.high >>> 0).toNumber() : message.nodeId; + object.nodeId = + options.longs === String + ? $util.Long.prototype.toString.call(message.nodeId) + : options.longs === Number + ? new $util.LongBits(message.nodeId.low >>> 0, message.nodeId.high >>> 0).toNumber() + : message.nodeId; return object; }; @@ -80200,16 +82816,15 @@ export const Enterprise = $root.Enterprise = (() => { */ SetRestrictVisibilityRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.SetRestrictVisibilityRequest"; + return typeUrlPrefix + '/Enterprise.SetRestrictVisibilityRequest'; }; return SetRestrictVisibilityRequest; })(); - Enterprise.UserAddRequest = (function() { - + Enterprise.UserAddRequest = (function () { /** * Properties of a UserAddRequest. * @memberof Enterprise @@ -80235,8 +82850,7 @@ export const Enterprise = $root.Enterprise = (() => { function UserAddRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -80245,7 +82859,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.UserAddRequest * @instance */ - UserAddRequest.prototype.enterpriseUserId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + UserAddRequest.prototype.enterpriseUserId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * UserAddRequest nodeId. @@ -80253,7 +82867,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.UserAddRequest * @instance */ - UserAddRequest.prototype.nodeId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + UserAddRequest.prototype.nodeId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * UserAddRequest encryptedData. @@ -80277,7 +82891,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.UserAddRequest * @instance */ - UserAddRequest.prototype.fullName = ""; + UserAddRequest.prototype.fullName = ''; /** * UserAddRequest jobTitle. @@ -80285,7 +82899,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.UserAddRequest * @instance */ - UserAddRequest.prototype.jobTitle = ""; + UserAddRequest.prototype.jobTitle = ''; /** * UserAddRequest email. @@ -80293,7 +82907,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.UserAddRequest * @instance */ - UserAddRequest.prototype.email = ""; + UserAddRequest.prototype.email = ''; /** * UserAddRequest suppressEmailInvite. @@ -80325,24 +82939,23 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ UserAddRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "enterpriseUserId")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.enterpriseUserId); - if (message.nodeId != null && Object.hasOwnProperty.call(message, "nodeId")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.nodeId); - if (message.encryptedData != null && Object.hasOwnProperty.call(message, "encryptedData")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.encryptedData); - if (message.keyType != null && Object.hasOwnProperty.call(message, "keyType")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.keyType); - if (message.fullName != null && Object.hasOwnProperty.call(message, "fullName")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.fullName); - if (message.jobTitle != null && Object.hasOwnProperty.call(message, "jobTitle")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.jobTitle); - if (message.email != null && Object.hasOwnProperty.call(message, "email")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.email); - if (message.suppressEmailInvite != null && Object.hasOwnProperty.call(message, "suppressEmailInvite")) - writer.uint32(/* id 8, wireType 0 =*/64).bool(message.suppressEmailInvite); + if (!writer) writer = $Writer.create(); + if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, 'enterpriseUserId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int64(message.enterpriseUserId); + if (message.nodeId != null && Object.hasOwnProperty.call(message, 'nodeId')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int64(message.nodeId); + if (message.encryptedData != null && Object.hasOwnProperty.call(message, 'encryptedData')) + writer.uint32(/* id 3, wireType 2 =*/ 26).bytes(message.encryptedData); + if (message.keyType != null && Object.hasOwnProperty.call(message, 'keyType')) + writer.uint32(/* id 4, wireType 0 =*/ 32).int32(message.keyType); + if (message.fullName != null && Object.hasOwnProperty.call(message, 'fullName')) + writer.uint32(/* id 5, wireType 2 =*/ 42).string(message.fullName); + if (message.jobTitle != null && Object.hasOwnProperty.call(message, 'jobTitle')) + writer.uint32(/* id 6, wireType 2 =*/ 50).string(message.jobTitle); + if (message.email != null && Object.hasOwnProperty.call(message, 'email')) + writer.uint32(/* id 7, wireType 2 =*/ 58).string(message.email); + if (message.suppressEmailInvite != null && Object.hasOwnProperty.call(message, 'suppressEmailInvite')) + writer.uint32(/* id 8, wireType 0 =*/ 64).bool(message.suppressEmailInvite); return writer; }; @@ -80371,47 +82984,47 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ UserAddRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.UserAddRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.UserAddRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.enterpriseUserId = reader.int64(); break; } - case 2: { + case 2: { message.nodeId = reader.int64(); break; } - case 3: { + case 3: { message.encryptedData = reader.bytes(); break; } - case 4: { + case 4: { message.keyType = reader.int32(); break; } - case 5: { + case 5: { message.fullName = reader.string(); break; } - case 6: { + case 6: { message.jobTitle = reader.string(); break; } - case 7: { + case 7: { message.email = reader.string(); break; } - case 8: { + case 8: { message.suppressEmailInvite = reader.bool(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -80428,8 +83041,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ UserAddRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -80442,40 +83054,50 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ UserAddRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (!$util.isInteger(message.enterpriseUserId) && !(message.enterpriseUserId && $util.isInteger(message.enterpriseUserId.low) && $util.isInteger(message.enterpriseUserId.high))) - return "enterpriseUserId: integer|Long expected"; - if (message.nodeId != null && message.hasOwnProperty("nodeId")) - if (!$util.isInteger(message.nodeId) && !(message.nodeId && $util.isInteger(message.nodeId.low) && $util.isInteger(message.nodeId.high))) - return "nodeId: integer|Long expected"; - if (message.encryptedData != null && message.hasOwnProperty("encryptedData")) - if (!(message.encryptedData && typeof message.encryptedData.length === "number" || $util.isString(message.encryptedData))) - return "encryptedData: buffer expected"; - if (message.keyType != null && message.hasOwnProperty("keyType")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.enterpriseUserId != null && message.hasOwnProperty('enterpriseUserId')) + if ( + !$util.isInteger(message.enterpriseUserId) && + !( + message.enterpriseUserId && + $util.isInteger(message.enterpriseUserId.low) && + $util.isInteger(message.enterpriseUserId.high) + ) + ) + return 'enterpriseUserId: integer|Long expected'; + if (message.nodeId != null && message.hasOwnProperty('nodeId')) + if ( + !$util.isInteger(message.nodeId) && + !(message.nodeId && $util.isInteger(message.nodeId.low) && $util.isInteger(message.nodeId.high)) + ) + return 'nodeId: integer|Long expected'; + if (message.encryptedData != null && message.hasOwnProperty('encryptedData')) + if ( + !( + (message.encryptedData && typeof message.encryptedData.length === 'number') || + $util.isString(message.encryptedData) + ) + ) + return 'encryptedData: buffer expected'; + if (message.keyType != null && message.hasOwnProperty('keyType')) switch (message.keyType) { - default: - return "keyType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; + default: + return 'keyType: enum value expected'; + case 0: + case 1: + case 2: + case 3: + case 4: + break; } - if (message.fullName != null && message.hasOwnProperty("fullName")) - if (!$util.isString(message.fullName)) - return "fullName: string expected"; - if (message.jobTitle != null && message.hasOwnProperty("jobTitle")) - if (!$util.isString(message.jobTitle)) - return "jobTitle: string expected"; - if (message.email != null && message.hasOwnProperty("email")) - if (!$util.isString(message.email)) - return "email: string expected"; - if (message.suppressEmailInvite != null && message.hasOwnProperty("suppressEmailInvite")) - if (typeof message.suppressEmailInvite !== "boolean") - return "suppressEmailInvite: boolean expected"; + if (message.fullName != null && message.hasOwnProperty('fullName')) + if (!$util.isString(message.fullName)) return 'fullName: string expected'; + if (message.jobTitle != null && message.hasOwnProperty('jobTitle')) + if (!$util.isString(message.jobTitle)) return 'jobTitle: string expected'; + if (message.email != null && message.hasOwnProperty('email')) + if (!$util.isString(message.email)) return 'email: string expected'; + if (message.suppressEmailInvite != null && message.hasOwnProperty('suppressEmailInvite')) + if (typeof message.suppressEmailInvite !== 'boolean') return 'suppressEmailInvite: boolean expected'; return null; }; @@ -80488,68 +83110,66 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.UserAddRequest} UserAddRequest */ UserAddRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.UserAddRequest) - return object; + if (object instanceof $root.Enterprise.UserAddRequest) return object; let message = new $root.Enterprise.UserAddRequest(); if (object.enterpriseUserId != null) if ($util.Long) (message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId)).unsigned = false; - else if (typeof object.enterpriseUserId === "string") + else if (typeof object.enterpriseUserId === 'string') message.enterpriseUserId = parseInt(object.enterpriseUserId, 10); - else if (typeof object.enterpriseUserId === "number") + else if (typeof object.enterpriseUserId === 'number') message.enterpriseUserId = object.enterpriseUserId; - else if (typeof object.enterpriseUserId === "object") - message.enterpriseUserId = new $util.LongBits(object.enterpriseUserId.low >>> 0, object.enterpriseUserId.high >>> 0).toNumber(); + else if (typeof object.enterpriseUserId === 'object') + message.enterpriseUserId = new $util.LongBits( + object.enterpriseUserId.low >>> 0, + object.enterpriseUserId.high >>> 0 + ).toNumber(); if (object.nodeId != null) - if ($util.Long) - (message.nodeId = $util.Long.fromValue(object.nodeId)).unsigned = false; - else if (typeof object.nodeId === "string") - message.nodeId = parseInt(object.nodeId, 10); - else if (typeof object.nodeId === "number") - message.nodeId = object.nodeId; - else if (typeof object.nodeId === "object") + if ($util.Long) (message.nodeId = $util.Long.fromValue(object.nodeId)).unsigned = false; + else if (typeof object.nodeId === 'string') message.nodeId = parseInt(object.nodeId, 10); + else if (typeof object.nodeId === 'number') message.nodeId = object.nodeId; + else if (typeof object.nodeId === 'object') message.nodeId = new $util.LongBits(object.nodeId.low >>> 0, object.nodeId.high >>> 0).toNumber(); if (object.encryptedData != null) - if (typeof object.encryptedData === "string") - $util.base64.decode(object.encryptedData, message.encryptedData = $util.newBuffer($util.base64.length(object.encryptedData)), 0); - else if (object.encryptedData.length >= 0) - message.encryptedData = object.encryptedData; + if (typeof object.encryptedData === 'string') + $util.base64.decode( + object.encryptedData, + (message.encryptedData = $util.newBuffer($util.base64.length(object.encryptedData))), + 0 + ); + else if (object.encryptedData.length >= 0) message.encryptedData = object.encryptedData; switch (object.keyType) { - default: - if (typeof object.keyType === "number") { - message.keyType = object.keyType; - break; - } - break; - case "KT_NO_KEY": - case 0: - message.keyType = 0; - break; - case "KT_ENCRYPTED_BY_DATA_KEY": - case 1: - message.keyType = 1; - break; - case "KT_ENCRYPTED_BY_PUBLIC_KEY": - case 2: - message.keyType = 2; - break; - case "KT_ENCRYPTED_BY_DATA_KEY_GCM": - case 3: - message.keyType = 3; - break; - case "KT_ENCRYPTED_BY_PUBLIC_KEY_ECC": - case 4: - message.keyType = 4; - break; - } - if (object.fullName != null) - message.fullName = String(object.fullName); - if (object.jobTitle != null) - message.jobTitle = String(object.jobTitle); - if (object.email != null) - message.email = String(object.email); - if (object.suppressEmailInvite != null) - message.suppressEmailInvite = Boolean(object.suppressEmailInvite); + default: + if (typeof object.keyType === 'number') { + message.keyType = object.keyType; + break; + } + break; + case 'KT_NO_KEY': + case 0: + message.keyType = 0; + break; + case 'KT_ENCRYPTED_BY_DATA_KEY': + case 1: + message.keyType = 1; + break; + case 'KT_ENCRYPTED_BY_PUBLIC_KEY': + case 2: + message.keyType = 2; + break; + case 'KT_ENCRYPTED_BY_DATA_KEY_GCM': + case 3: + message.keyType = 3; + break; + case 'KT_ENCRYPTED_BY_PUBLIC_KEY_ECC': + case 4: + message.keyType = 4; + break; + } + if (object.fullName != null) message.fullName = String(object.fullName); + if (object.jobTitle != null) message.jobTitle = String(object.jobTitle); + if (object.email != null) message.email = String(object.email); + if (object.suppressEmailInvite != null) message.suppressEmailInvite = Boolean(object.suppressEmailInvite); return message; }; @@ -80563,54 +83183,72 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ UserAddRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.enterpriseUserId = options.longs === String ? "0" : 0; + object.enterpriseUserId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.enterpriseUserId = options.longs === String ? '0' : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.nodeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.nodeId = options.longs === String ? "0" : 0; - if (options.bytes === String) - object.encryptedData = ""; + object.nodeId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.nodeId = options.longs === String ? '0' : 0; + if (options.bytes === String) object.encryptedData = ''; else { object.encryptedData = []; - if (options.bytes !== Array) - object.encryptedData = $util.newBuffer(object.encryptedData); + if (options.bytes !== Array) object.encryptedData = $util.newBuffer(object.encryptedData); } - object.keyType = options.enums === String ? "KT_NO_KEY" : 0; - object.fullName = ""; - object.jobTitle = ""; - object.email = ""; + object.keyType = options.enums === String ? 'KT_NO_KEY' : 0; + object.fullName = ''; + object.jobTitle = ''; + object.email = ''; object.suppressEmailInvite = false; } - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (typeof message.enterpriseUserId === "number") - object.enterpriseUserId = options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; + if (message.enterpriseUserId != null && message.hasOwnProperty('enterpriseUserId')) + if (typeof message.enterpriseUserId === 'number') + object.enterpriseUserId = + options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; else - object.enterpriseUserId = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseUserId) : options.longs === Number ? new $util.LongBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0).toNumber() : message.enterpriseUserId; - if (message.nodeId != null && message.hasOwnProperty("nodeId")) - if (typeof message.nodeId === "number") + object.enterpriseUserId = + options.longs === String + ? $util.Long.prototype.toString.call(message.enterpriseUserId) + : options.longs === Number + ? new $util.LongBits( + message.enterpriseUserId.low >>> 0, + message.enterpriseUserId.high >>> 0 + ).toNumber() + : message.enterpriseUserId; + if (message.nodeId != null && message.hasOwnProperty('nodeId')) + if (typeof message.nodeId === 'number') object.nodeId = options.longs === String ? String(message.nodeId) : message.nodeId; else - object.nodeId = options.longs === String ? $util.Long.prototype.toString.call(message.nodeId) : options.longs === Number ? new $util.LongBits(message.nodeId.low >>> 0, message.nodeId.high >>> 0).toNumber() : message.nodeId; - if (message.encryptedData != null && message.hasOwnProperty("encryptedData")) - object.encryptedData = options.bytes === String ? $util.base64.encode(message.encryptedData, 0, message.encryptedData.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedData) : message.encryptedData; - if (message.keyType != null && message.hasOwnProperty("keyType")) - object.keyType = options.enums === String ? $root.Enterprise.EncryptedKeyType[message.keyType] === undefined ? message.keyType : $root.Enterprise.EncryptedKeyType[message.keyType] : message.keyType; - if (message.fullName != null && message.hasOwnProperty("fullName")) - object.fullName = message.fullName; - if (message.jobTitle != null && message.hasOwnProperty("jobTitle")) - object.jobTitle = message.jobTitle; - if (message.email != null && message.hasOwnProperty("email")) - object.email = message.email; - if (message.suppressEmailInvite != null && message.hasOwnProperty("suppressEmailInvite")) + object.nodeId = + options.longs === String + ? $util.Long.prototype.toString.call(message.nodeId) + : options.longs === Number + ? new $util.LongBits(message.nodeId.low >>> 0, message.nodeId.high >>> 0).toNumber() + : message.nodeId; + if (message.encryptedData != null && message.hasOwnProperty('encryptedData')) + object.encryptedData = + options.bytes === String + ? $util.base64.encode(message.encryptedData, 0, message.encryptedData.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.encryptedData) + : message.encryptedData; + if (message.keyType != null && message.hasOwnProperty('keyType')) + object.keyType = + options.enums === String + ? $root.Enterprise.EncryptedKeyType[message.keyType] === undefined + ? message.keyType + : $root.Enterprise.EncryptedKeyType[message.keyType] + : message.keyType; + if (message.fullName != null && message.hasOwnProperty('fullName')) object.fullName = message.fullName; + if (message.jobTitle != null && message.hasOwnProperty('jobTitle')) object.jobTitle = message.jobTitle; + if (message.email != null && message.hasOwnProperty('email')) object.email = message.email; + if (message.suppressEmailInvite != null && message.hasOwnProperty('suppressEmailInvite')) object.suppressEmailInvite = message.suppressEmailInvite; return object; }; @@ -80636,16 +83274,15 @@ export const Enterprise = $root.Enterprise = (() => { */ UserAddRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.UserAddRequest"; + return typeUrlPrefix + '/Enterprise.UserAddRequest'; }; return UserAddRequest; })(); - Enterprise.UserUpdateRequest = (function() { - + Enterprise.UserUpdateRequest = (function () { /** * Properties of a UserUpdateRequest. * @memberof Enterprise @@ -80665,8 +83302,7 @@ export const Enterprise = $root.Enterprise = (() => { this.users = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -80699,11 +83335,13 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ UserUpdateRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.users != null && message.users.length) for (let i = 0; i < message.users.length; ++i) - $root.Enterprise.UserUpdate.encode(message.users[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.Enterprise.UserUpdate.encode( + message.users[i], + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); return writer; }; @@ -80732,21 +83370,20 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ UserUpdateRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.UserUpdateRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.UserUpdateRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (!(message.users && message.users.length)) - message.users = []; + case 1: { + if (!(message.users && message.users.length)) message.users = []; message.users.push($root.Enterprise.UserUpdate.decode(reader, reader.uint32())); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -80763,8 +83400,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ UserUpdateRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -80777,15 +83413,12 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ UserUpdateRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.users != null && message.hasOwnProperty("users")) { - if (!Array.isArray(message.users)) - return "users: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.users != null && message.hasOwnProperty('users')) { + if (!Array.isArray(message.users)) return 'users: array expected'; for (let i = 0; i < message.users.length; ++i) { let error = $root.Enterprise.UserUpdate.verify(message.users[i]); - if (error) - return "users." + error; + if (error) return 'users.' + error; } } return null; @@ -80800,16 +83433,15 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.UserUpdateRequest} UserUpdateRequest */ UserUpdateRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.UserUpdateRequest) - return object; + if (object instanceof $root.Enterprise.UserUpdateRequest) return object; let message = new $root.Enterprise.UserUpdateRequest(); if (object.users) { if (!Array.isArray(object.users)) - throw TypeError(".Enterprise.UserUpdateRequest.users: array expected"); + throw TypeError('.Enterprise.UserUpdateRequest.users: array expected'); message.users = []; for (let i = 0; i < object.users.length; ++i) { - if (typeof object.users[i] !== "object") - throw TypeError(".Enterprise.UserUpdateRequest.users: object expected"); + if (typeof object.users[i] !== 'object') + throw TypeError('.Enterprise.UserUpdateRequest.users: object expected'); message.users[i] = $root.Enterprise.UserUpdate.fromObject(object.users[i]); } } @@ -80826,11 +83458,9 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ UserUpdateRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.users = []; + if (options.arrays || options.defaults) object.users = []; if (message.users && message.users.length) { object.users = []; for (let j = 0; j < message.users.length; ++j) @@ -80860,16 +83490,15 @@ export const Enterprise = $root.Enterprise = (() => { */ UserUpdateRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.UserUpdateRequest"; + return typeUrlPrefix + '/Enterprise.UserUpdateRequest'; }; return UserUpdateRequest; })(); - Enterprise.UserUpdate = (function() { - + Enterprise.UserUpdate = (function () { /** * Properties of a UserUpdate. * @memberof Enterprise @@ -80894,8 +83523,7 @@ export const Enterprise = $root.Enterprise = (() => { function UserUpdate(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -80904,7 +83532,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.UserUpdate * @instance */ - UserUpdate.prototype.enterpriseUserId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + UserUpdate.prototype.enterpriseUserId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * UserUpdate nodeId. @@ -80912,7 +83540,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.UserUpdate * @instance */ - UserUpdate.prototype.nodeId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + UserUpdate.prototype.nodeId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * UserUpdate encryptedData. @@ -80936,7 +83564,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.UserUpdate * @instance */ - UserUpdate.prototype.fullName = ""; + UserUpdate.prototype.fullName = ''; /** * UserUpdate jobTitle. @@ -80944,7 +83572,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.UserUpdate * @instance */ - UserUpdate.prototype.jobTitle = ""; + UserUpdate.prototype.jobTitle = ''; /** * UserUpdate email. @@ -80952,7 +83580,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.UserUpdate * @instance */ - UserUpdate.prototype.email = ""; + UserUpdate.prototype.email = ''; /** * Creates a new UserUpdate instance using the specified properties. @@ -80976,22 +83604,21 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ UserUpdate.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "enterpriseUserId")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.enterpriseUserId); - if (message.nodeId != null && Object.hasOwnProperty.call(message, "nodeId")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.nodeId); - if (message.encryptedData != null && Object.hasOwnProperty.call(message, "encryptedData")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.encryptedData); - if (message.keyType != null && Object.hasOwnProperty.call(message, "keyType")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.keyType); - if (message.fullName != null && Object.hasOwnProperty.call(message, "fullName")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.fullName); - if (message.jobTitle != null && Object.hasOwnProperty.call(message, "jobTitle")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.jobTitle); - if (message.email != null && Object.hasOwnProperty.call(message, "email")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.email); + if (!writer) writer = $Writer.create(); + if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, 'enterpriseUserId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int64(message.enterpriseUserId); + if (message.nodeId != null && Object.hasOwnProperty.call(message, 'nodeId')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int64(message.nodeId); + if (message.encryptedData != null && Object.hasOwnProperty.call(message, 'encryptedData')) + writer.uint32(/* id 3, wireType 2 =*/ 26).bytes(message.encryptedData); + if (message.keyType != null && Object.hasOwnProperty.call(message, 'keyType')) + writer.uint32(/* id 4, wireType 0 =*/ 32).int32(message.keyType); + if (message.fullName != null && Object.hasOwnProperty.call(message, 'fullName')) + writer.uint32(/* id 5, wireType 2 =*/ 42).string(message.fullName); + if (message.jobTitle != null && Object.hasOwnProperty.call(message, 'jobTitle')) + writer.uint32(/* id 6, wireType 2 =*/ 50).string(message.jobTitle); + if (message.email != null && Object.hasOwnProperty.call(message, 'email')) + writer.uint32(/* id 7, wireType 2 =*/ 58).string(message.email); return writer; }; @@ -81020,43 +83647,43 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ UserUpdate.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.UserUpdate(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.UserUpdate(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.enterpriseUserId = reader.int64(); break; } - case 2: { + case 2: { message.nodeId = reader.int64(); break; } - case 3: { + case 3: { message.encryptedData = reader.bytes(); break; } - case 4: { + case 4: { message.keyType = reader.int32(); break; } - case 5: { + case 5: { message.fullName = reader.string(); break; } - case 6: { + case 6: { message.jobTitle = reader.string(); break; } - case 7: { + case 7: { message.email = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -81073,8 +83700,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ UserUpdate.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -81087,37 +83713,48 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ UserUpdate.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (!$util.isInteger(message.enterpriseUserId) && !(message.enterpriseUserId && $util.isInteger(message.enterpriseUserId.low) && $util.isInteger(message.enterpriseUserId.high))) - return "enterpriseUserId: integer|Long expected"; - if (message.nodeId != null && message.hasOwnProperty("nodeId")) - if (!$util.isInteger(message.nodeId) && !(message.nodeId && $util.isInteger(message.nodeId.low) && $util.isInteger(message.nodeId.high))) - return "nodeId: integer|Long expected"; - if (message.encryptedData != null && message.hasOwnProperty("encryptedData")) - if (!(message.encryptedData && typeof message.encryptedData.length === "number" || $util.isString(message.encryptedData))) - return "encryptedData: buffer expected"; - if (message.keyType != null && message.hasOwnProperty("keyType")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.enterpriseUserId != null && message.hasOwnProperty('enterpriseUserId')) + if ( + !$util.isInteger(message.enterpriseUserId) && + !( + message.enterpriseUserId && + $util.isInteger(message.enterpriseUserId.low) && + $util.isInteger(message.enterpriseUserId.high) + ) + ) + return 'enterpriseUserId: integer|Long expected'; + if (message.nodeId != null && message.hasOwnProperty('nodeId')) + if ( + !$util.isInteger(message.nodeId) && + !(message.nodeId && $util.isInteger(message.nodeId.low) && $util.isInteger(message.nodeId.high)) + ) + return 'nodeId: integer|Long expected'; + if (message.encryptedData != null && message.hasOwnProperty('encryptedData')) + if ( + !( + (message.encryptedData && typeof message.encryptedData.length === 'number') || + $util.isString(message.encryptedData) + ) + ) + return 'encryptedData: buffer expected'; + if (message.keyType != null && message.hasOwnProperty('keyType')) switch (message.keyType) { - default: - return "keyType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; + default: + return 'keyType: enum value expected'; + case 0: + case 1: + case 2: + case 3: + case 4: + break; } - if (message.fullName != null && message.hasOwnProperty("fullName")) - if (!$util.isString(message.fullName)) - return "fullName: string expected"; - if (message.jobTitle != null && message.hasOwnProperty("jobTitle")) - if (!$util.isString(message.jobTitle)) - return "jobTitle: string expected"; - if (message.email != null && message.hasOwnProperty("email")) - if (!$util.isString(message.email)) - return "email: string expected"; + if (message.fullName != null && message.hasOwnProperty('fullName')) + if (!$util.isString(message.fullName)) return 'fullName: string expected'; + if (message.jobTitle != null && message.hasOwnProperty('jobTitle')) + if (!$util.isString(message.jobTitle)) return 'jobTitle: string expected'; + if (message.email != null && message.hasOwnProperty('email')) + if (!$util.isString(message.email)) return 'email: string expected'; return null; }; @@ -81130,66 +83767,65 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.UserUpdate} UserUpdate */ UserUpdate.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.UserUpdate) - return object; + if (object instanceof $root.Enterprise.UserUpdate) return object; let message = new $root.Enterprise.UserUpdate(); if (object.enterpriseUserId != null) if ($util.Long) (message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId)).unsigned = false; - else if (typeof object.enterpriseUserId === "string") + else if (typeof object.enterpriseUserId === 'string') message.enterpriseUserId = parseInt(object.enterpriseUserId, 10); - else if (typeof object.enterpriseUserId === "number") + else if (typeof object.enterpriseUserId === 'number') message.enterpriseUserId = object.enterpriseUserId; - else if (typeof object.enterpriseUserId === "object") - message.enterpriseUserId = new $util.LongBits(object.enterpriseUserId.low >>> 0, object.enterpriseUserId.high >>> 0).toNumber(); + else if (typeof object.enterpriseUserId === 'object') + message.enterpriseUserId = new $util.LongBits( + object.enterpriseUserId.low >>> 0, + object.enterpriseUserId.high >>> 0 + ).toNumber(); if (object.nodeId != null) - if ($util.Long) - (message.nodeId = $util.Long.fromValue(object.nodeId)).unsigned = false; - else if (typeof object.nodeId === "string") - message.nodeId = parseInt(object.nodeId, 10); - else if (typeof object.nodeId === "number") - message.nodeId = object.nodeId; - else if (typeof object.nodeId === "object") + if ($util.Long) (message.nodeId = $util.Long.fromValue(object.nodeId)).unsigned = false; + else if (typeof object.nodeId === 'string') message.nodeId = parseInt(object.nodeId, 10); + else if (typeof object.nodeId === 'number') message.nodeId = object.nodeId; + else if (typeof object.nodeId === 'object') message.nodeId = new $util.LongBits(object.nodeId.low >>> 0, object.nodeId.high >>> 0).toNumber(); if (object.encryptedData != null) - if (typeof object.encryptedData === "string") - $util.base64.decode(object.encryptedData, message.encryptedData = $util.newBuffer($util.base64.length(object.encryptedData)), 0); - else if (object.encryptedData.length >= 0) - message.encryptedData = object.encryptedData; + if (typeof object.encryptedData === 'string') + $util.base64.decode( + object.encryptedData, + (message.encryptedData = $util.newBuffer($util.base64.length(object.encryptedData))), + 0 + ); + else if (object.encryptedData.length >= 0) message.encryptedData = object.encryptedData; switch (object.keyType) { - default: - if (typeof object.keyType === "number") { - message.keyType = object.keyType; - break; - } - break; - case "KT_NO_KEY": - case 0: - message.keyType = 0; - break; - case "KT_ENCRYPTED_BY_DATA_KEY": - case 1: - message.keyType = 1; - break; - case "KT_ENCRYPTED_BY_PUBLIC_KEY": - case 2: - message.keyType = 2; - break; - case "KT_ENCRYPTED_BY_DATA_KEY_GCM": - case 3: - message.keyType = 3; - break; - case "KT_ENCRYPTED_BY_PUBLIC_KEY_ECC": - case 4: - message.keyType = 4; - break; - } - if (object.fullName != null) - message.fullName = String(object.fullName); - if (object.jobTitle != null) - message.jobTitle = String(object.jobTitle); - if (object.email != null) - message.email = String(object.email); + default: + if (typeof object.keyType === 'number') { + message.keyType = object.keyType; + break; + } + break; + case 'KT_NO_KEY': + case 0: + message.keyType = 0; + break; + case 'KT_ENCRYPTED_BY_DATA_KEY': + case 1: + message.keyType = 1; + break; + case 'KT_ENCRYPTED_BY_PUBLIC_KEY': + case 2: + message.keyType = 2; + break; + case 'KT_ENCRYPTED_BY_DATA_KEY_GCM': + case 3: + message.keyType = 3; + break; + case 'KT_ENCRYPTED_BY_PUBLIC_KEY_ECC': + case 4: + message.keyType = 4; + break; + } + if (object.fullName != null) message.fullName = String(object.fullName); + if (object.jobTitle != null) message.jobTitle = String(object.jobTitle); + if (object.email != null) message.email = String(object.email); return message; }; @@ -81203,52 +83839,70 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ UserUpdate.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.enterpriseUserId = options.longs === String ? "0" : 0; + object.enterpriseUserId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.enterpriseUserId = options.longs === String ? '0' : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.nodeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.nodeId = options.longs === String ? "0" : 0; - if (options.bytes === String) - object.encryptedData = ""; + object.nodeId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.nodeId = options.longs === String ? '0' : 0; + if (options.bytes === String) object.encryptedData = ''; else { object.encryptedData = []; - if (options.bytes !== Array) - object.encryptedData = $util.newBuffer(object.encryptedData); + if (options.bytes !== Array) object.encryptedData = $util.newBuffer(object.encryptedData); } - object.keyType = options.enums === String ? "KT_NO_KEY" : 0; - object.fullName = ""; - object.jobTitle = ""; - object.email = ""; + object.keyType = options.enums === String ? 'KT_NO_KEY' : 0; + object.fullName = ''; + object.jobTitle = ''; + object.email = ''; } - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (typeof message.enterpriseUserId === "number") - object.enterpriseUserId = options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; + if (message.enterpriseUserId != null && message.hasOwnProperty('enterpriseUserId')) + if (typeof message.enterpriseUserId === 'number') + object.enterpriseUserId = + options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; else - object.enterpriseUserId = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseUserId) : options.longs === Number ? new $util.LongBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0).toNumber() : message.enterpriseUserId; - if (message.nodeId != null && message.hasOwnProperty("nodeId")) - if (typeof message.nodeId === "number") + object.enterpriseUserId = + options.longs === String + ? $util.Long.prototype.toString.call(message.enterpriseUserId) + : options.longs === Number + ? new $util.LongBits( + message.enterpriseUserId.low >>> 0, + message.enterpriseUserId.high >>> 0 + ).toNumber() + : message.enterpriseUserId; + if (message.nodeId != null && message.hasOwnProperty('nodeId')) + if (typeof message.nodeId === 'number') object.nodeId = options.longs === String ? String(message.nodeId) : message.nodeId; else - object.nodeId = options.longs === String ? $util.Long.prototype.toString.call(message.nodeId) : options.longs === Number ? new $util.LongBits(message.nodeId.low >>> 0, message.nodeId.high >>> 0).toNumber() : message.nodeId; - if (message.encryptedData != null && message.hasOwnProperty("encryptedData")) - object.encryptedData = options.bytes === String ? $util.base64.encode(message.encryptedData, 0, message.encryptedData.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedData) : message.encryptedData; - if (message.keyType != null && message.hasOwnProperty("keyType")) - object.keyType = options.enums === String ? $root.Enterprise.EncryptedKeyType[message.keyType] === undefined ? message.keyType : $root.Enterprise.EncryptedKeyType[message.keyType] : message.keyType; - if (message.fullName != null && message.hasOwnProperty("fullName")) - object.fullName = message.fullName; - if (message.jobTitle != null && message.hasOwnProperty("jobTitle")) - object.jobTitle = message.jobTitle; - if (message.email != null && message.hasOwnProperty("email")) - object.email = message.email; + object.nodeId = + options.longs === String + ? $util.Long.prototype.toString.call(message.nodeId) + : options.longs === Number + ? new $util.LongBits(message.nodeId.low >>> 0, message.nodeId.high >>> 0).toNumber() + : message.nodeId; + if (message.encryptedData != null && message.hasOwnProperty('encryptedData')) + object.encryptedData = + options.bytes === String + ? $util.base64.encode(message.encryptedData, 0, message.encryptedData.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.encryptedData) + : message.encryptedData; + if (message.keyType != null && message.hasOwnProperty('keyType')) + object.keyType = + options.enums === String + ? $root.Enterprise.EncryptedKeyType[message.keyType] === undefined + ? message.keyType + : $root.Enterprise.EncryptedKeyType[message.keyType] + : message.keyType; + if (message.fullName != null && message.hasOwnProperty('fullName')) object.fullName = message.fullName; + if (message.jobTitle != null && message.hasOwnProperty('jobTitle')) object.jobTitle = message.jobTitle; + if (message.email != null && message.hasOwnProperty('email')) object.email = message.email; return object; }; @@ -81273,16 +83927,15 @@ export const Enterprise = $root.Enterprise = (() => { */ UserUpdate.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.UserUpdate"; + return typeUrlPrefix + '/Enterprise.UserUpdate'; }; return UserUpdate; })(); - Enterprise.UserUpdateResponse = (function() { - + Enterprise.UserUpdateResponse = (function () { /** * Properties of a UserUpdateResponse. * @memberof Enterprise @@ -81302,8 +83955,7 @@ export const Enterprise = $root.Enterprise = (() => { this.users = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -81336,11 +83988,13 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ UserUpdateResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.users != null && message.users.length) for (let i = 0; i < message.users.length; ++i) - $root.Enterprise.UserUpdateResult.encode(message.users[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.Enterprise.UserUpdateResult.encode( + message.users[i], + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); return writer; }; @@ -81369,21 +84023,20 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ UserUpdateResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.UserUpdateResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.UserUpdateResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (!(message.users && message.users.length)) - message.users = []; + case 1: { + if (!(message.users && message.users.length)) message.users = []; message.users.push($root.Enterprise.UserUpdateResult.decode(reader, reader.uint32())); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -81400,8 +84053,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ UserUpdateResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -81414,15 +84066,12 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ UserUpdateResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.users != null && message.hasOwnProperty("users")) { - if (!Array.isArray(message.users)) - return "users: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.users != null && message.hasOwnProperty('users')) { + if (!Array.isArray(message.users)) return 'users: array expected'; for (let i = 0; i < message.users.length; ++i) { let error = $root.Enterprise.UserUpdateResult.verify(message.users[i]); - if (error) - return "users." + error; + if (error) return 'users.' + error; } } return null; @@ -81437,16 +84086,15 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.UserUpdateResponse} UserUpdateResponse */ UserUpdateResponse.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.UserUpdateResponse) - return object; + if (object instanceof $root.Enterprise.UserUpdateResponse) return object; let message = new $root.Enterprise.UserUpdateResponse(); if (object.users) { if (!Array.isArray(object.users)) - throw TypeError(".Enterprise.UserUpdateResponse.users: array expected"); + throw TypeError('.Enterprise.UserUpdateResponse.users: array expected'); message.users = []; for (let i = 0; i < object.users.length; ++i) { - if (typeof object.users[i] !== "object") - throw TypeError(".Enterprise.UserUpdateResponse.users: object expected"); + if (typeof object.users[i] !== 'object') + throw TypeError('.Enterprise.UserUpdateResponse.users: object expected'); message.users[i] = $root.Enterprise.UserUpdateResult.fromObject(object.users[i]); } } @@ -81463,11 +84111,9 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ UserUpdateResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.users = []; + if (options.arrays || options.defaults) object.users = []; if (message.users && message.users.length) { object.users = []; for (let j = 0; j < message.users.length; ++j) @@ -81497,16 +84143,15 @@ export const Enterprise = $root.Enterprise = (() => { */ UserUpdateResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.UserUpdateResponse"; + return typeUrlPrefix + '/Enterprise.UserUpdateResponse'; }; return UserUpdateResponse; })(); - Enterprise.UserUpdateResult = (function() { - + Enterprise.UserUpdateResult = (function () { /** * Properties of a UserUpdateResult. * @memberof Enterprise @@ -81526,8 +84171,7 @@ export const Enterprise = $root.Enterprise = (() => { function UserUpdateResult(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -81536,7 +84180,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.UserUpdateResult * @instance */ - UserUpdateResult.prototype.enterpriseUserId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + UserUpdateResult.prototype.enterpriseUserId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * UserUpdateResult status. @@ -81568,12 +84212,11 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ UserUpdateResult.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "enterpriseUserId")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.enterpriseUserId); - if (message.status != null && Object.hasOwnProperty.call(message, "status")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.status); + if (!writer) writer = $Writer.create(); + if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, 'enterpriseUserId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int64(message.enterpriseUserId); + if (message.status != null && Object.hasOwnProperty.call(message, 'status')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int32(message.status); return writer; }; @@ -81602,23 +84245,23 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ UserUpdateResult.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.UserUpdateResult(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.UserUpdateResult(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.enterpriseUserId = reader.int64(); break; } - case 2: { + case 2: { message.status = reader.int32(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -81635,8 +84278,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ UserUpdateResult.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -81649,18 +84291,24 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ UserUpdateResult.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (!$util.isInteger(message.enterpriseUserId) && !(message.enterpriseUserId && $util.isInteger(message.enterpriseUserId.low) && $util.isInteger(message.enterpriseUserId.high))) - return "enterpriseUserId: integer|Long expected"; - if (message.status != null && message.hasOwnProperty("status")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.enterpriseUserId != null && message.hasOwnProperty('enterpriseUserId')) + if ( + !$util.isInteger(message.enterpriseUserId) && + !( + message.enterpriseUserId && + $util.isInteger(message.enterpriseUserId.low) && + $util.isInteger(message.enterpriseUserId.high) + ) + ) + return 'enterpriseUserId: integer|Long expected'; + if (message.status != null && message.hasOwnProperty('status')) switch (message.status) { - default: - return "status: enum value expected"; - case 0: - case 1: - break; + default: + return 'status: enum value expected'; + case 0: + case 1: + break; } return null; }; @@ -81674,33 +84322,35 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.UserUpdateResult} UserUpdateResult */ UserUpdateResult.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.UserUpdateResult) - return object; + if (object instanceof $root.Enterprise.UserUpdateResult) return object; let message = new $root.Enterprise.UserUpdateResult(); if (object.enterpriseUserId != null) if ($util.Long) (message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId)).unsigned = false; - else if (typeof object.enterpriseUserId === "string") + else if (typeof object.enterpriseUserId === 'string') message.enterpriseUserId = parseInt(object.enterpriseUserId, 10); - else if (typeof object.enterpriseUserId === "number") + else if (typeof object.enterpriseUserId === 'number') message.enterpriseUserId = object.enterpriseUserId; - else if (typeof object.enterpriseUserId === "object") - message.enterpriseUserId = new $util.LongBits(object.enterpriseUserId.low >>> 0, object.enterpriseUserId.high >>> 0).toNumber(); + else if (typeof object.enterpriseUserId === 'object') + message.enterpriseUserId = new $util.LongBits( + object.enterpriseUserId.low >>> 0, + object.enterpriseUserId.high >>> 0 + ).toNumber(); switch (object.status) { - default: - if (typeof object.status === "number") { - message.status = object.status; + default: + if (typeof object.status === 'number') { + message.status = object.status; + break; + } + break; + case 'USER_UPDATE_OK': + case 0: + message.status = 0; + break; + case 'USER_UPDATE_ACCESS_DENIED': + case 1: + message.status = 1; break; - } - break; - case "USER_UPDATE_OK": - case 0: - message.status = 0; - break; - case "USER_UPDATE_ACCESS_DENIED": - case 1: - message.status = 1; - break; } return message; }; @@ -81715,24 +84365,37 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ UserUpdateResult.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.enterpriseUserId = options.longs === String ? "0" : 0; - object.status = options.enums === String ? "USER_UPDATE_OK" : 0; - } - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (typeof message.enterpriseUserId === "number") - object.enterpriseUserId = options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; + object.enterpriseUserId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.enterpriseUserId = options.longs === String ? '0' : 0; + object.status = options.enums === String ? 'USER_UPDATE_OK' : 0; + } + if (message.enterpriseUserId != null && message.hasOwnProperty('enterpriseUserId')) + if (typeof message.enterpriseUserId === 'number') + object.enterpriseUserId = + options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; else - object.enterpriseUserId = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseUserId) : options.longs === Number ? new $util.LongBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0).toNumber() : message.enterpriseUserId; - if (message.status != null && message.hasOwnProperty("status")) - object.status = options.enums === String ? $root.Enterprise.UserUpdateStatus[message.status] === undefined ? message.status : $root.Enterprise.UserUpdateStatus[message.status] : message.status; + object.enterpriseUserId = + options.longs === String + ? $util.Long.prototype.toString.call(message.enterpriseUserId) + : options.longs === Number + ? new $util.LongBits( + message.enterpriseUserId.low >>> 0, + message.enterpriseUserId.high >>> 0 + ).toNumber() + : message.enterpriseUserId; + if (message.status != null && message.hasOwnProperty('status')) + object.status = + options.enums === String + ? $root.Enterprise.UserUpdateStatus[message.status] === undefined + ? message.status + : $root.Enterprise.UserUpdateStatus[message.status] + : message.status; return object; }; @@ -81757,9 +84420,9 @@ export const Enterprise = $root.Enterprise = (() => { */ UserUpdateResult.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.UserUpdateResult"; + return typeUrlPrefix + '/Enterprise.UserUpdateResult'; }; return UserUpdateResult; @@ -81772,15 +84435,15 @@ export const Enterprise = $root.Enterprise = (() => { * @property {number} USER_UPDATE_OK=0 USER_UPDATE_OK value * @property {number} USER_UPDATE_ACCESS_DENIED=1 USER_UPDATE_ACCESS_DENIED value */ - Enterprise.UserUpdateStatus = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "USER_UPDATE_OK"] = 0; - values[valuesById[1] = "USER_UPDATE_ACCESS_DENIED"] = 1; + Enterprise.UserUpdateStatus = (function () { + const valuesById = {}, + values = Object.create(valuesById); + values[(valuesById[0] = 'USER_UPDATE_OK')] = 0; + values[(valuesById[1] = 'USER_UPDATE_ACCESS_DENIED')] = 1; return values; })(); - Enterprise.ComplianceRecordOwnersRequest = (function() { - + Enterprise.ComplianceRecordOwnersRequest = (function () { /** * Properties of a ComplianceRecordOwnersRequest. * @memberof Enterprise @@ -81801,8 +84464,7 @@ export const Enterprise = $root.Enterprise = (() => { this.nodeIds = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -81843,16 +84505,14 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ ComplianceRecordOwnersRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.nodeIds != null && message.nodeIds.length) { - writer.uint32(/* id 1, wireType 2 =*/10).fork(); - for (let i = 0; i < message.nodeIds.length; ++i) - writer.int64(message.nodeIds[i]); + writer.uint32(/* id 1, wireType 2 =*/ 10).fork(); + for (let i = 0; i < message.nodeIds.length; ++i) writer.int64(message.nodeIds[i]); writer.ldelim(); } - if (message.includeNonShared != null && Object.hasOwnProperty.call(message, "includeNonShared")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.includeNonShared); + if (message.includeNonShared != null && Object.hasOwnProperty.call(message, 'includeNonShared')) + writer.uint32(/* id 2, wireType 0 =*/ 16).bool(message.includeNonShared); return writer; }; @@ -81881,30 +84541,27 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ComplianceRecordOwnersRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.ComplianceRecordOwnersRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.ComplianceRecordOwnersRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (!(message.nodeIds && message.nodeIds.length)) - message.nodeIds = []; + case 1: { + if (!(message.nodeIds && message.nodeIds.length)) message.nodeIds = []; if ((tag & 7) === 2) { let end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.nodeIds.push(reader.int64()); - } else - message.nodeIds.push(reader.int64()); + while (reader.pos < end2) message.nodeIds.push(reader.int64()); + } else message.nodeIds.push(reader.int64()); break; } - case 2: { + case 2: { message.includeNonShared = reader.bool(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -81921,8 +84578,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ComplianceRecordOwnersRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -81935,18 +84591,22 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ ComplianceRecordOwnersRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.nodeIds != null && message.hasOwnProperty("nodeIds")) { - if (!Array.isArray(message.nodeIds)) - return "nodeIds: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.nodeIds != null && message.hasOwnProperty('nodeIds')) { + if (!Array.isArray(message.nodeIds)) return 'nodeIds: array expected'; for (let i = 0; i < message.nodeIds.length; ++i) - if (!$util.isInteger(message.nodeIds[i]) && !(message.nodeIds[i] && $util.isInteger(message.nodeIds[i].low) && $util.isInteger(message.nodeIds[i].high))) - return "nodeIds: integer|Long[] expected"; + if ( + !$util.isInteger(message.nodeIds[i]) && + !( + message.nodeIds[i] && + $util.isInteger(message.nodeIds[i].low) && + $util.isInteger(message.nodeIds[i].high) + ) + ) + return 'nodeIds: integer|Long[] expected'; } - if (message.includeNonShared != null && message.hasOwnProperty("includeNonShared")) - if (typeof message.includeNonShared !== "boolean") - return "includeNonShared: boolean expected"; + if (message.includeNonShared != null && message.hasOwnProperty('includeNonShared')) + if (typeof message.includeNonShared !== 'boolean') return 'includeNonShared: boolean expected'; return null; }; @@ -81959,25 +84619,24 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.ComplianceRecordOwnersRequest} ComplianceRecordOwnersRequest */ ComplianceRecordOwnersRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.ComplianceRecordOwnersRequest) - return object; + if (object instanceof $root.Enterprise.ComplianceRecordOwnersRequest) return object; let message = new $root.Enterprise.ComplianceRecordOwnersRequest(); if (object.nodeIds) { if (!Array.isArray(object.nodeIds)) - throw TypeError(".Enterprise.ComplianceRecordOwnersRequest.nodeIds: array expected"); + throw TypeError('.Enterprise.ComplianceRecordOwnersRequest.nodeIds: array expected'); message.nodeIds = []; for (let i = 0; i < object.nodeIds.length; ++i) - if ($util.Long) - (message.nodeIds[i] = $util.Long.fromValue(object.nodeIds[i])).unsigned = false; - else if (typeof object.nodeIds[i] === "string") + if ($util.Long) (message.nodeIds[i] = $util.Long.fromValue(object.nodeIds[i])).unsigned = false; + else if (typeof object.nodeIds[i] === 'string') message.nodeIds[i] = parseInt(object.nodeIds[i], 10); - else if (typeof object.nodeIds[i] === "number") - message.nodeIds[i] = object.nodeIds[i]; - else if (typeof object.nodeIds[i] === "object") - message.nodeIds[i] = new $util.LongBits(object.nodeIds[i].low >>> 0, object.nodeIds[i].high >>> 0).toNumber(); + else if (typeof object.nodeIds[i] === 'number') message.nodeIds[i] = object.nodeIds[i]; + else if (typeof object.nodeIds[i] === 'object') + message.nodeIds[i] = new $util.LongBits( + object.nodeIds[i].low >>> 0, + object.nodeIds[i].high >>> 0 + ).toNumber(); } - if (object.includeNonShared != null) - message.includeNonShared = Boolean(object.includeNonShared); + if (object.includeNonShared != null) message.includeNonShared = Boolean(object.includeNonShared); return message; }; @@ -81991,22 +84650,27 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ ComplianceRecordOwnersRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.nodeIds = []; - if (options.defaults) - object.includeNonShared = false; + if (options.arrays || options.defaults) object.nodeIds = []; + if (options.defaults) object.includeNonShared = false; if (message.nodeIds && message.nodeIds.length) { object.nodeIds = []; for (let j = 0; j < message.nodeIds.length; ++j) - if (typeof message.nodeIds[j] === "number") + if (typeof message.nodeIds[j] === 'number') object.nodeIds[j] = options.longs === String ? String(message.nodeIds[j]) : message.nodeIds[j]; else - object.nodeIds[j] = options.longs === String ? $util.Long.prototype.toString.call(message.nodeIds[j]) : options.longs === Number ? new $util.LongBits(message.nodeIds[j].low >>> 0, message.nodeIds[j].high >>> 0).toNumber() : message.nodeIds[j]; - } - if (message.includeNonShared != null && message.hasOwnProperty("includeNonShared")) + object.nodeIds[j] = + options.longs === String + ? $util.Long.prototype.toString.call(message.nodeIds[j]) + : options.longs === Number + ? new $util.LongBits( + message.nodeIds[j].low >>> 0, + message.nodeIds[j].high >>> 0 + ).toNumber() + : message.nodeIds[j]; + } + if (message.includeNonShared != null && message.hasOwnProperty('includeNonShared')) object.includeNonShared = message.includeNonShared; return object; }; @@ -82032,16 +84696,15 @@ export const Enterprise = $root.Enterprise = (() => { */ ComplianceRecordOwnersRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.ComplianceRecordOwnersRequest"; + return typeUrlPrefix + '/Enterprise.ComplianceRecordOwnersRequest'; }; return ComplianceRecordOwnersRequest; })(); - Enterprise.ComplianceRecordOwnersResponse = (function() { - + Enterprise.ComplianceRecordOwnersResponse = (function () { /** * Properties of a ComplianceRecordOwnersResponse. * @memberof Enterprise @@ -82061,8 +84724,7 @@ export const Enterprise = $root.Enterprise = (() => { this.recordOwners = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -82095,11 +84757,13 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ ComplianceRecordOwnersResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.recordOwners != null && message.recordOwners.length) for (let i = 0; i < message.recordOwners.length; ++i) - $root.Enterprise.RecordOwner.encode(message.recordOwners[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.Enterprise.RecordOwner.encode( + message.recordOwners[i], + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); return writer; }; @@ -82128,21 +84792,20 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ComplianceRecordOwnersResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.ComplianceRecordOwnersResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.ComplianceRecordOwnersResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (!(message.recordOwners && message.recordOwners.length)) - message.recordOwners = []; + case 1: { + if (!(message.recordOwners && message.recordOwners.length)) message.recordOwners = []; message.recordOwners.push($root.Enterprise.RecordOwner.decode(reader, reader.uint32())); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -82159,8 +84822,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ComplianceRecordOwnersResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -82173,15 +84835,12 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ ComplianceRecordOwnersResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.recordOwners != null && message.hasOwnProperty("recordOwners")) { - if (!Array.isArray(message.recordOwners)) - return "recordOwners: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.recordOwners != null && message.hasOwnProperty('recordOwners')) { + if (!Array.isArray(message.recordOwners)) return 'recordOwners: array expected'; for (let i = 0; i < message.recordOwners.length; ++i) { let error = $root.Enterprise.RecordOwner.verify(message.recordOwners[i]); - if (error) - return "recordOwners." + error; + if (error) return 'recordOwners.' + error; } } return null; @@ -82196,16 +84855,15 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.ComplianceRecordOwnersResponse} ComplianceRecordOwnersResponse */ ComplianceRecordOwnersResponse.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.ComplianceRecordOwnersResponse) - return object; + if (object instanceof $root.Enterprise.ComplianceRecordOwnersResponse) return object; let message = new $root.Enterprise.ComplianceRecordOwnersResponse(); if (object.recordOwners) { if (!Array.isArray(object.recordOwners)) - throw TypeError(".Enterprise.ComplianceRecordOwnersResponse.recordOwners: array expected"); + throw TypeError('.Enterprise.ComplianceRecordOwnersResponse.recordOwners: array expected'); message.recordOwners = []; for (let i = 0; i < object.recordOwners.length; ++i) { - if (typeof object.recordOwners[i] !== "object") - throw TypeError(".Enterprise.ComplianceRecordOwnersResponse.recordOwners: object expected"); + if (typeof object.recordOwners[i] !== 'object') + throw TypeError('.Enterprise.ComplianceRecordOwnersResponse.recordOwners: object expected'); message.recordOwners[i] = $root.Enterprise.RecordOwner.fromObject(object.recordOwners[i]); } } @@ -82222,11 +84880,9 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ ComplianceRecordOwnersResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.recordOwners = []; + if (options.arrays || options.defaults) object.recordOwners = []; if (message.recordOwners && message.recordOwners.length) { object.recordOwners = []; for (let j = 0; j < message.recordOwners.length; ++j) @@ -82256,16 +84912,15 @@ export const Enterprise = $root.Enterprise = (() => { */ ComplianceRecordOwnersResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.ComplianceRecordOwnersResponse"; + return typeUrlPrefix + '/Enterprise.ComplianceRecordOwnersResponse'; }; return ComplianceRecordOwnersResponse; })(); - Enterprise.RecordOwner = (function() { - + Enterprise.RecordOwner = (function () { /** * Properties of a RecordOwner. * @memberof Enterprise @@ -82285,8 +84940,7 @@ export const Enterprise = $root.Enterprise = (() => { function RecordOwner(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -82295,7 +84949,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.RecordOwner * @instance */ - RecordOwner.prototype.enterpriseUserId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + RecordOwner.prototype.enterpriseUserId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * RecordOwner shared. @@ -82327,12 +84981,11 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ RecordOwner.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "enterpriseUserId")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.enterpriseUserId); - if (message.shared != null && Object.hasOwnProperty.call(message, "shared")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.shared); + if (!writer) writer = $Writer.create(); + if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, 'enterpriseUserId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int64(message.enterpriseUserId); + if (message.shared != null && Object.hasOwnProperty.call(message, 'shared')) + writer.uint32(/* id 2, wireType 0 =*/ 16).bool(message.shared); return writer; }; @@ -82361,23 +85014,23 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RecordOwner.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.RecordOwner(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.RecordOwner(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.enterpriseUserId = reader.int64(); break; } - case 2: { + case 2: { message.shared = reader.bool(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -82394,8 +85047,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RecordOwner.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -82408,14 +85060,19 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ RecordOwner.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (!$util.isInteger(message.enterpriseUserId) && !(message.enterpriseUserId && $util.isInteger(message.enterpriseUserId.low) && $util.isInteger(message.enterpriseUserId.high))) - return "enterpriseUserId: integer|Long expected"; - if (message.shared != null && message.hasOwnProperty("shared")) - if (typeof message.shared !== "boolean") - return "shared: boolean expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.enterpriseUserId != null && message.hasOwnProperty('enterpriseUserId')) + if ( + !$util.isInteger(message.enterpriseUserId) && + !( + message.enterpriseUserId && + $util.isInteger(message.enterpriseUserId.low) && + $util.isInteger(message.enterpriseUserId.high) + ) + ) + return 'enterpriseUserId: integer|Long expected'; + if (message.shared != null && message.hasOwnProperty('shared')) + if (typeof message.shared !== 'boolean') return 'shared: boolean expected'; return null; }; @@ -82428,20 +85085,21 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.RecordOwner} RecordOwner */ RecordOwner.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.RecordOwner) - return object; + if (object instanceof $root.Enterprise.RecordOwner) return object; let message = new $root.Enterprise.RecordOwner(); if (object.enterpriseUserId != null) if ($util.Long) (message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId)).unsigned = false; - else if (typeof object.enterpriseUserId === "string") + else if (typeof object.enterpriseUserId === 'string') message.enterpriseUserId = parseInt(object.enterpriseUserId, 10); - else if (typeof object.enterpriseUserId === "number") + else if (typeof object.enterpriseUserId === 'number') message.enterpriseUserId = object.enterpriseUserId; - else if (typeof object.enterpriseUserId === "object") - message.enterpriseUserId = new $util.LongBits(object.enterpriseUserId.low >>> 0, object.enterpriseUserId.high >>> 0).toNumber(); - if (object.shared != null) - message.shared = Boolean(object.shared); + else if (typeof object.enterpriseUserId === 'object') + message.enterpriseUserId = new $util.LongBits( + object.enterpriseUserId.low >>> 0, + object.enterpriseUserId.high >>> 0 + ).toNumber(); + if (object.shared != null) message.shared = Boolean(object.shared); return message; }; @@ -82455,24 +85113,31 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ RecordOwner.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.enterpriseUserId = options.longs === String ? "0" : 0; + object.enterpriseUserId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.enterpriseUserId = options.longs === String ? '0' : 0; object.shared = false; } - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (typeof message.enterpriseUserId === "number") - object.enterpriseUserId = options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; + if (message.enterpriseUserId != null && message.hasOwnProperty('enterpriseUserId')) + if (typeof message.enterpriseUserId === 'number') + object.enterpriseUserId = + options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; else - object.enterpriseUserId = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseUserId) : options.longs === Number ? new $util.LongBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0).toNumber() : message.enterpriseUserId; - if (message.shared != null && message.hasOwnProperty("shared")) - object.shared = message.shared; + object.enterpriseUserId = + options.longs === String + ? $util.Long.prototype.toString.call(message.enterpriseUserId) + : options.longs === Number + ? new $util.LongBits( + message.enterpriseUserId.low >>> 0, + message.enterpriseUserId.high >>> 0 + ).toNumber() + : message.enterpriseUserId; + if (message.shared != null && message.hasOwnProperty('shared')) object.shared = message.shared; return object; }; @@ -82497,16 +85162,15 @@ export const Enterprise = $root.Enterprise = (() => { */ RecordOwner.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.RecordOwner"; + return typeUrlPrefix + '/Enterprise.RecordOwner'; }; return RecordOwner; })(); - Enterprise.PreliminaryComplianceDataRequest = (function() { - + Enterprise.PreliminaryComplianceDataRequest = (function () { /** * Properties of a PreliminaryComplianceDataRequest. * @memberof Enterprise @@ -82529,8 +85193,7 @@ export const Enterprise = $root.Enterprise = (() => { this.enterpriseUserIds = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -82587,20 +85250,21 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ PreliminaryComplianceDataRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.enterpriseUserIds != null && message.enterpriseUserIds.length) { - writer.uint32(/* id 1, wireType 2 =*/10).fork(); - for (let i = 0; i < message.enterpriseUserIds.length; ++i) - writer.int64(message.enterpriseUserIds[i]); + writer.uint32(/* id 1, wireType 2 =*/ 10).fork(); + for (let i = 0; i < message.enterpriseUserIds.length; ++i) writer.int64(message.enterpriseUserIds[i]); writer.ldelim(); } - if (message.includeNonShared != null && Object.hasOwnProperty.call(message, "includeNonShared")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.includeNonShared); - if (message.continuationToken != null && Object.hasOwnProperty.call(message, "continuationToken")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.continuationToken); - if (message.includeTotalMatchingRecordsInFirstResponse != null && Object.hasOwnProperty.call(message, "includeTotalMatchingRecordsInFirstResponse")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.includeTotalMatchingRecordsInFirstResponse); + if (message.includeNonShared != null && Object.hasOwnProperty.call(message, 'includeNonShared')) + writer.uint32(/* id 2, wireType 0 =*/ 16).bool(message.includeNonShared); + if (message.continuationToken != null && Object.hasOwnProperty.call(message, 'continuationToken')) + writer.uint32(/* id 3, wireType 2 =*/ 26).bytes(message.continuationToken); + if ( + message.includeTotalMatchingRecordsInFirstResponse != null && + Object.hasOwnProperty.call(message, 'includeTotalMatchingRecordsInFirstResponse') + ) + writer.uint32(/* id 4, wireType 0 =*/ 32).bool(message.includeTotalMatchingRecordsInFirstResponse); return writer; }; @@ -82629,38 +85293,36 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ PreliminaryComplianceDataRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.PreliminaryComplianceDataRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.PreliminaryComplianceDataRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { if (!(message.enterpriseUserIds && message.enterpriseUserIds.length)) message.enterpriseUserIds = []; if ((tag & 7) === 2) { let end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.enterpriseUserIds.push(reader.int64()); - } else - message.enterpriseUserIds.push(reader.int64()); + while (reader.pos < end2) message.enterpriseUserIds.push(reader.int64()); + } else message.enterpriseUserIds.push(reader.int64()); break; } - case 2: { + case 2: { message.includeNonShared = reader.bool(); break; } - case 3: { + case 3: { message.continuationToken = reader.bytes(); break; } - case 4: { + case 4: { message.includeTotalMatchingRecordsInFirstResponse = reader.bool(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -82677,8 +85339,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ PreliminaryComplianceDataRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -82691,24 +85352,36 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ PreliminaryComplianceDataRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.enterpriseUserIds != null && message.hasOwnProperty("enterpriseUserIds")) { - if (!Array.isArray(message.enterpriseUserIds)) - return "enterpriseUserIds: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.enterpriseUserIds != null && message.hasOwnProperty('enterpriseUserIds')) { + if (!Array.isArray(message.enterpriseUserIds)) return 'enterpriseUserIds: array expected'; for (let i = 0; i < message.enterpriseUserIds.length; ++i) - if (!$util.isInteger(message.enterpriseUserIds[i]) && !(message.enterpriseUserIds[i] && $util.isInteger(message.enterpriseUserIds[i].low) && $util.isInteger(message.enterpriseUserIds[i].high))) - return "enterpriseUserIds: integer|Long[] expected"; - } - if (message.includeNonShared != null && message.hasOwnProperty("includeNonShared")) - if (typeof message.includeNonShared !== "boolean") - return "includeNonShared: boolean expected"; - if (message.continuationToken != null && message.hasOwnProperty("continuationToken")) - if (!(message.continuationToken && typeof message.continuationToken.length === "number" || $util.isString(message.continuationToken))) - return "continuationToken: buffer expected"; - if (message.includeTotalMatchingRecordsInFirstResponse != null && message.hasOwnProperty("includeTotalMatchingRecordsInFirstResponse")) - if (typeof message.includeTotalMatchingRecordsInFirstResponse !== "boolean") - return "includeTotalMatchingRecordsInFirstResponse: boolean expected"; + if ( + !$util.isInteger(message.enterpriseUserIds[i]) && + !( + message.enterpriseUserIds[i] && + $util.isInteger(message.enterpriseUserIds[i].low) && + $util.isInteger(message.enterpriseUserIds[i].high) + ) + ) + return 'enterpriseUserIds: integer|Long[] expected'; + } + if (message.includeNonShared != null && message.hasOwnProperty('includeNonShared')) + if (typeof message.includeNonShared !== 'boolean') return 'includeNonShared: boolean expected'; + if (message.continuationToken != null && message.hasOwnProperty('continuationToken')) + if ( + !( + (message.continuationToken && typeof message.continuationToken.length === 'number') || + $util.isString(message.continuationToken) + ) + ) + return 'continuationToken: buffer expected'; + if ( + message.includeTotalMatchingRecordsInFirstResponse != null && + message.hasOwnProperty('includeTotalMatchingRecordsInFirstResponse') + ) + if (typeof message.includeTotalMatchingRecordsInFirstResponse !== 'boolean') + return 'includeTotalMatchingRecordsInFirstResponse: boolean expected'; return null; }; @@ -82721,32 +85394,39 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.PreliminaryComplianceDataRequest} PreliminaryComplianceDataRequest */ PreliminaryComplianceDataRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.PreliminaryComplianceDataRequest) - return object; + if (object instanceof $root.Enterprise.PreliminaryComplianceDataRequest) return object; let message = new $root.Enterprise.PreliminaryComplianceDataRequest(); if (object.enterpriseUserIds) { if (!Array.isArray(object.enterpriseUserIds)) - throw TypeError(".Enterprise.PreliminaryComplianceDataRequest.enterpriseUserIds: array expected"); + throw TypeError('.Enterprise.PreliminaryComplianceDataRequest.enterpriseUserIds: array expected'); message.enterpriseUserIds = []; for (let i = 0; i < object.enterpriseUserIds.length; ++i) if ($util.Long) - (message.enterpriseUserIds[i] = $util.Long.fromValue(object.enterpriseUserIds[i])).unsigned = false; - else if (typeof object.enterpriseUserIds[i] === "string") + (message.enterpriseUserIds[i] = $util.Long.fromValue(object.enterpriseUserIds[i])).unsigned = + false; + else if (typeof object.enterpriseUserIds[i] === 'string') message.enterpriseUserIds[i] = parseInt(object.enterpriseUserIds[i], 10); - else if (typeof object.enterpriseUserIds[i] === "number") + else if (typeof object.enterpriseUserIds[i] === 'number') message.enterpriseUserIds[i] = object.enterpriseUserIds[i]; - else if (typeof object.enterpriseUserIds[i] === "object") - message.enterpriseUserIds[i] = new $util.LongBits(object.enterpriseUserIds[i].low >>> 0, object.enterpriseUserIds[i].high >>> 0).toNumber(); + else if (typeof object.enterpriseUserIds[i] === 'object') + message.enterpriseUserIds[i] = new $util.LongBits( + object.enterpriseUserIds[i].low >>> 0, + object.enterpriseUserIds[i].high >>> 0 + ).toNumber(); } - if (object.includeNonShared != null) - message.includeNonShared = Boolean(object.includeNonShared); + if (object.includeNonShared != null) message.includeNonShared = Boolean(object.includeNonShared); if (object.continuationToken != null) - if (typeof object.continuationToken === "string") - $util.base64.decode(object.continuationToken, message.continuationToken = $util.newBuffer($util.base64.length(object.continuationToken)), 0); - else if (object.continuationToken.length >= 0) - message.continuationToken = object.continuationToken; + if (typeof object.continuationToken === 'string') + $util.base64.decode( + object.continuationToken, + (message.continuationToken = $util.newBuffer($util.base64.length(object.continuationToken))), + 0 + ); + else if (object.continuationToken.length >= 0) message.continuationToken = object.continuationToken; if (object.includeTotalMatchingRecordsInFirstResponse != null) - message.includeTotalMatchingRecordsInFirstResponse = Boolean(object.includeTotalMatchingRecordsInFirstResponse); + message.includeTotalMatchingRecordsInFirstResponse = Boolean( + object.includeTotalMatchingRecordsInFirstResponse + ); return message; }; @@ -82760,35 +85440,50 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ PreliminaryComplianceDataRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.enterpriseUserIds = []; + if (options.arrays || options.defaults) object.enterpriseUserIds = []; if (options.defaults) { object.includeNonShared = false; - if (options.bytes === String) - object.continuationToken = ""; + if (options.bytes === String) object.continuationToken = ''; else { object.continuationToken = []; - if (options.bytes !== Array) - object.continuationToken = $util.newBuffer(object.continuationToken); + if (options.bytes !== Array) object.continuationToken = $util.newBuffer(object.continuationToken); } object.includeTotalMatchingRecordsInFirstResponse = false; } if (message.enterpriseUserIds && message.enterpriseUserIds.length) { object.enterpriseUserIds = []; for (let j = 0; j < message.enterpriseUserIds.length; ++j) - if (typeof message.enterpriseUserIds[j] === "number") - object.enterpriseUserIds[j] = options.longs === String ? String(message.enterpriseUserIds[j]) : message.enterpriseUserIds[j]; + if (typeof message.enterpriseUserIds[j] === 'number') + object.enterpriseUserIds[j] = + options.longs === String + ? String(message.enterpriseUserIds[j]) + : message.enterpriseUserIds[j]; else - object.enterpriseUserIds[j] = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseUserIds[j]) : options.longs === Number ? new $util.LongBits(message.enterpriseUserIds[j].low >>> 0, message.enterpriseUserIds[j].high >>> 0).toNumber() : message.enterpriseUserIds[j]; - } - if (message.includeNonShared != null && message.hasOwnProperty("includeNonShared")) + object.enterpriseUserIds[j] = + options.longs === String + ? $util.Long.prototype.toString.call(message.enterpriseUserIds[j]) + : options.longs === Number + ? new $util.LongBits( + message.enterpriseUserIds[j].low >>> 0, + message.enterpriseUserIds[j].high >>> 0 + ).toNumber() + : message.enterpriseUserIds[j]; + } + if (message.includeNonShared != null && message.hasOwnProperty('includeNonShared')) object.includeNonShared = message.includeNonShared; - if (message.continuationToken != null && message.hasOwnProperty("continuationToken")) - object.continuationToken = options.bytes === String ? $util.base64.encode(message.continuationToken, 0, message.continuationToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.continuationToken) : message.continuationToken; - if (message.includeTotalMatchingRecordsInFirstResponse != null && message.hasOwnProperty("includeTotalMatchingRecordsInFirstResponse")) + if (message.continuationToken != null && message.hasOwnProperty('continuationToken')) + object.continuationToken = + options.bytes === String + ? $util.base64.encode(message.continuationToken, 0, message.continuationToken.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.continuationToken) + : message.continuationToken; + if ( + message.includeTotalMatchingRecordsInFirstResponse != null && + message.hasOwnProperty('includeTotalMatchingRecordsInFirstResponse') + ) object.includeTotalMatchingRecordsInFirstResponse = message.includeTotalMatchingRecordsInFirstResponse; return object; }; @@ -82814,16 +85509,15 @@ export const Enterprise = $root.Enterprise = (() => { */ PreliminaryComplianceDataRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.PreliminaryComplianceDataRequest"; + return typeUrlPrefix + '/Enterprise.PreliminaryComplianceDataRequest'; }; return PreliminaryComplianceDataRequest; })(); - Enterprise.PreliminaryComplianceDataResponse = (function() { - + Enterprise.PreliminaryComplianceDataResponse = (function () { /** * Properties of a PreliminaryComplianceDataResponse. * @memberof Enterprise @@ -82846,8 +85540,7 @@ export const Enterprise = $root.Enterprise = (() => { this.auditUserData = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -82904,17 +85597,19 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ PreliminaryComplianceDataResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.auditUserData != null && message.auditUserData.length) for (let i = 0; i < message.auditUserData.length; ++i) - $root.Enterprise.AuditUserData.encode(message.auditUserData[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.continuationToken != null && Object.hasOwnProperty.call(message, "continuationToken")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.continuationToken); - if (message.hasMore != null && Object.hasOwnProperty.call(message, "hasMore")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.hasMore); - if (message.totalMatchingRecords != null && Object.hasOwnProperty.call(message, "totalMatchingRecords")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.totalMatchingRecords); + $root.Enterprise.AuditUserData.encode( + message.auditUserData[i], + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); + if (message.continuationToken != null && Object.hasOwnProperty.call(message, 'continuationToken')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.continuationToken); + if (message.hasMore != null && Object.hasOwnProperty.call(message, 'hasMore')) + writer.uint32(/* id 3, wireType 0 =*/ 24).bool(message.hasMore); + if (message.totalMatchingRecords != null && Object.hasOwnProperty.call(message, 'totalMatchingRecords')) + writer.uint32(/* id 4, wireType 0 =*/ 32).int32(message.totalMatchingRecords); return writer; }; @@ -82943,33 +85638,32 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ PreliminaryComplianceDataResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.PreliminaryComplianceDataResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.PreliminaryComplianceDataResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (!(message.auditUserData && message.auditUserData.length)) - message.auditUserData = []; + case 1: { + if (!(message.auditUserData && message.auditUserData.length)) message.auditUserData = []; message.auditUserData.push($root.Enterprise.AuditUserData.decode(reader, reader.uint32())); break; } - case 2: { + case 2: { message.continuationToken = reader.bytes(); break; } - case 3: { + case 3: { message.hasMore = reader.bool(); break; } - case 4: { + case 4: { message.totalMatchingRecords = reader.int32(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -82986,8 +85680,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ PreliminaryComplianceDataResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -83000,26 +85693,26 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ PreliminaryComplianceDataResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.auditUserData != null && message.hasOwnProperty("auditUserData")) { - if (!Array.isArray(message.auditUserData)) - return "auditUserData: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.auditUserData != null && message.hasOwnProperty('auditUserData')) { + if (!Array.isArray(message.auditUserData)) return 'auditUserData: array expected'; for (let i = 0; i < message.auditUserData.length; ++i) { let error = $root.Enterprise.AuditUserData.verify(message.auditUserData[i]); - if (error) - return "auditUserData." + error; + if (error) return 'auditUserData.' + error; } } - if (message.continuationToken != null && message.hasOwnProperty("continuationToken")) - if (!(message.continuationToken && typeof message.continuationToken.length === "number" || $util.isString(message.continuationToken))) - return "continuationToken: buffer expected"; - if (message.hasMore != null && message.hasOwnProperty("hasMore")) - if (typeof message.hasMore !== "boolean") - return "hasMore: boolean expected"; - if (message.totalMatchingRecords != null && message.hasOwnProperty("totalMatchingRecords")) - if (!$util.isInteger(message.totalMatchingRecords)) - return "totalMatchingRecords: integer expected"; + if (message.continuationToken != null && message.hasOwnProperty('continuationToken')) + if ( + !( + (message.continuationToken && typeof message.continuationToken.length === 'number') || + $util.isString(message.continuationToken) + ) + ) + return 'continuationToken: buffer expected'; + if (message.hasMore != null && message.hasOwnProperty('hasMore')) + if (typeof message.hasMore !== 'boolean') return 'hasMore: boolean expected'; + if (message.totalMatchingRecords != null && message.hasOwnProperty('totalMatchingRecords')) + if (!$util.isInteger(message.totalMatchingRecords)) return 'totalMatchingRecords: integer expected'; return null; }; @@ -83032,28 +85725,28 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.PreliminaryComplianceDataResponse} PreliminaryComplianceDataResponse */ PreliminaryComplianceDataResponse.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.PreliminaryComplianceDataResponse) - return object; + if (object instanceof $root.Enterprise.PreliminaryComplianceDataResponse) return object; let message = new $root.Enterprise.PreliminaryComplianceDataResponse(); if (object.auditUserData) { if (!Array.isArray(object.auditUserData)) - throw TypeError(".Enterprise.PreliminaryComplianceDataResponse.auditUserData: array expected"); + throw TypeError('.Enterprise.PreliminaryComplianceDataResponse.auditUserData: array expected'); message.auditUserData = []; for (let i = 0; i < object.auditUserData.length; ++i) { - if (typeof object.auditUserData[i] !== "object") - throw TypeError(".Enterprise.PreliminaryComplianceDataResponse.auditUserData: object expected"); + if (typeof object.auditUserData[i] !== 'object') + throw TypeError('.Enterprise.PreliminaryComplianceDataResponse.auditUserData: object expected'); message.auditUserData[i] = $root.Enterprise.AuditUserData.fromObject(object.auditUserData[i]); } } if (object.continuationToken != null) - if (typeof object.continuationToken === "string") - $util.base64.decode(object.continuationToken, message.continuationToken = $util.newBuffer($util.base64.length(object.continuationToken)), 0); - else if (object.continuationToken.length >= 0) - message.continuationToken = object.continuationToken; - if (object.hasMore != null) - message.hasMore = Boolean(object.hasMore); - if (object.totalMatchingRecords != null) - message.totalMatchingRecords = object.totalMatchingRecords | 0; + if (typeof object.continuationToken === 'string') + $util.base64.decode( + object.continuationToken, + (message.continuationToken = $util.newBuffer($util.base64.length(object.continuationToken))), + 0 + ); + else if (object.continuationToken.length >= 0) message.continuationToken = object.continuationToken; + if (object.hasMore != null) message.hasMore = Boolean(object.hasMore); + if (object.totalMatchingRecords != null) message.totalMatchingRecords = object.totalMatchingRecords | 0; return message; }; @@ -83067,18 +85760,14 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ PreliminaryComplianceDataResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.auditUserData = []; + if (options.arrays || options.defaults) object.auditUserData = []; if (options.defaults) { - if (options.bytes === String) - object.continuationToken = ""; + if (options.bytes === String) object.continuationToken = ''; else { object.continuationToken = []; - if (options.bytes !== Array) - object.continuationToken = $util.newBuffer(object.continuationToken); + if (options.bytes !== Array) object.continuationToken = $util.newBuffer(object.continuationToken); } object.hasMore = false; object.totalMatchingRecords = 0; @@ -83086,13 +85775,20 @@ export const Enterprise = $root.Enterprise = (() => { if (message.auditUserData && message.auditUserData.length) { object.auditUserData = []; for (let j = 0; j < message.auditUserData.length; ++j) - object.auditUserData[j] = $root.Enterprise.AuditUserData.toObject(message.auditUserData[j], options); - } - if (message.continuationToken != null && message.hasOwnProperty("continuationToken")) - object.continuationToken = options.bytes === String ? $util.base64.encode(message.continuationToken, 0, message.continuationToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.continuationToken) : message.continuationToken; - if (message.hasMore != null && message.hasOwnProperty("hasMore")) - object.hasMore = message.hasMore; - if (message.totalMatchingRecords != null && message.hasOwnProperty("totalMatchingRecords")) + object.auditUserData[j] = $root.Enterprise.AuditUserData.toObject( + message.auditUserData[j], + options + ); + } + if (message.continuationToken != null && message.hasOwnProperty('continuationToken')) + object.continuationToken = + options.bytes === String + ? $util.base64.encode(message.continuationToken, 0, message.continuationToken.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.continuationToken) + : message.continuationToken; + if (message.hasMore != null && message.hasOwnProperty('hasMore')) object.hasMore = message.hasMore; + if (message.totalMatchingRecords != null && message.hasOwnProperty('totalMatchingRecords')) object.totalMatchingRecords = message.totalMatchingRecords; return object; }; @@ -83118,16 +85814,15 @@ export const Enterprise = $root.Enterprise = (() => { */ PreliminaryComplianceDataResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.PreliminaryComplianceDataResponse"; + return typeUrlPrefix + '/Enterprise.PreliminaryComplianceDataResponse'; }; return PreliminaryComplianceDataResponse; })(); - Enterprise.AuditUserRecord = (function() { - + Enterprise.AuditUserRecord = (function () { /** * Properties of an AuditUserRecord. * @memberof Enterprise @@ -83148,8 +85843,7 @@ export const Enterprise = $root.Enterprise = (() => { function AuditUserRecord(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -83198,14 +85892,13 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ AuditUserRecord.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); - if (message.encryptedData != null && Object.hasOwnProperty.call(message, "encryptedData")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.encryptedData); - if (message.shared != null && Object.hasOwnProperty.call(message, "shared")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.shared); + if (!writer) writer = $Writer.create(); + if (message.recordUid != null && Object.hasOwnProperty.call(message, 'recordUid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.recordUid); + if (message.encryptedData != null && Object.hasOwnProperty.call(message, 'encryptedData')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.encryptedData); + if (message.shared != null && Object.hasOwnProperty.call(message, 'shared')) + writer.uint32(/* id 3, wireType 0 =*/ 24).bool(message.shared); return writer; }; @@ -83234,27 +85927,27 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ AuditUserRecord.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.AuditUserRecord(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.AuditUserRecord(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.recordUid = reader.bytes(); break; } - case 2: { + case 2: { message.encryptedData = reader.bytes(); break; } - case 3: { + case 3: { message.shared = reader.bool(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -83271,8 +85964,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ AuditUserRecord.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -83285,17 +85977,25 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ AuditUserRecord.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) - return "recordUid: buffer expected"; - if (message.encryptedData != null && message.hasOwnProperty("encryptedData")) - if (!(message.encryptedData && typeof message.encryptedData.length === "number" || $util.isString(message.encryptedData))) - return "encryptedData: buffer expected"; - if (message.shared != null && message.hasOwnProperty("shared")) - if (typeof message.shared !== "boolean") - return "shared: boolean expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.recordUid != null && message.hasOwnProperty('recordUid')) + if ( + !( + (message.recordUid && typeof message.recordUid.length === 'number') || + $util.isString(message.recordUid) + ) + ) + return 'recordUid: buffer expected'; + if (message.encryptedData != null && message.hasOwnProperty('encryptedData')) + if ( + !( + (message.encryptedData && typeof message.encryptedData.length === 'number') || + $util.isString(message.encryptedData) + ) + ) + return 'encryptedData: buffer expected'; + if (message.shared != null && message.hasOwnProperty('shared')) + if (typeof message.shared !== 'boolean') return 'shared: boolean expected'; return null; }; @@ -83308,21 +86008,25 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.AuditUserRecord} AuditUserRecord */ AuditUserRecord.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.AuditUserRecord) - return object; + if (object instanceof $root.Enterprise.AuditUserRecord) return object; let message = new $root.Enterprise.AuditUserRecord(); 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 (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.encryptedData != null) - if (typeof object.encryptedData === "string") - $util.base64.decode(object.encryptedData, message.encryptedData = $util.newBuffer($util.base64.length(object.encryptedData)), 0); - else if (object.encryptedData.length >= 0) - message.encryptedData = object.encryptedData; - if (object.shared != null) - message.shared = Boolean(object.shared); + if (typeof object.encryptedData === 'string') + $util.base64.decode( + object.encryptedData, + (message.encryptedData = $util.newBuffer($util.base64.length(object.encryptedData))), + 0 + ); + else if (object.encryptedData.length >= 0) message.encryptedData = object.encryptedData; + if (object.shared != null) message.shared = Boolean(object.shared); return message; }; @@ -83336,32 +86040,36 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ AuditUserRecord.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.recordUid = ""; + if (options.bytes === String) object.recordUid = ''; else { object.recordUid = []; - if (options.bytes !== Array) - object.recordUid = $util.newBuffer(object.recordUid); + if (options.bytes !== Array) object.recordUid = $util.newBuffer(object.recordUid); } - if (options.bytes === String) - object.encryptedData = ""; + if (options.bytes === String) object.encryptedData = ''; else { object.encryptedData = []; - if (options.bytes !== Array) - object.encryptedData = $util.newBuffer(object.encryptedData); + if (options.bytes !== Array) object.encryptedData = $util.newBuffer(object.encryptedData); } object.shared = false; } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; - if (message.encryptedData != null && message.hasOwnProperty("encryptedData")) - object.encryptedData = options.bytes === String ? $util.base64.encode(message.encryptedData, 0, message.encryptedData.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedData) : message.encryptedData; - if (message.shared != null && message.hasOwnProperty("shared")) - object.shared = message.shared; + if (message.recordUid != null && message.hasOwnProperty('recordUid')) + object.recordUid = + options.bytes === String + ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.recordUid) + : message.recordUid; + if (message.encryptedData != null && message.hasOwnProperty('encryptedData')) + object.encryptedData = + options.bytes === String + ? $util.base64.encode(message.encryptedData, 0, message.encryptedData.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.encryptedData) + : message.encryptedData; + if (message.shared != null && message.hasOwnProperty('shared')) object.shared = message.shared; return object; }; @@ -83386,9 +86094,9 @@ export const Enterprise = $root.Enterprise = (() => { */ AuditUserRecord.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.AuditUserRecord"; + return typeUrlPrefix + '/Enterprise.AuditUserRecord'; }; return AuditUserRecord; @@ -83402,16 +86110,16 @@ export const Enterprise = $root.Enterprise = (() => { * @property {number} ACCESS_DENIED=1 ACCESS_DENIED value * @property {number} NO_LONGER_IN_ENTERPRISE=2 NO_LONGER_IN_ENTERPRISE value */ - Enterprise.AuditUserStatus = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "OK"] = 0; - values[valuesById[1] = "ACCESS_DENIED"] = 1; - values[valuesById[2] = "NO_LONGER_IN_ENTERPRISE"] = 2; + Enterprise.AuditUserStatus = (function () { + const valuesById = {}, + values = Object.create(valuesById); + values[(valuesById[0] = 'OK')] = 0; + values[(valuesById[1] = 'ACCESS_DENIED')] = 1; + values[(valuesById[2] = 'NO_LONGER_IN_ENTERPRISE')] = 2; return values; })(); - Enterprise.AuditUserData = (function() { - + Enterprise.AuditUserData = (function () { /** * Properties of an AuditUserData. * @memberof Enterprise @@ -83433,8 +86141,7 @@ export const Enterprise = $root.Enterprise = (() => { this.auditUserRecords = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -83443,7 +86150,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.AuditUserData * @instance */ - AuditUserData.prototype.enterpriseUserId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + AuditUserData.prototype.enterpriseUserId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * AuditUserData auditUserRecords. @@ -83483,15 +86190,17 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ AuditUserData.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "enterpriseUserId")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.enterpriseUserId); + if (!writer) writer = $Writer.create(); + if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, 'enterpriseUserId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int64(message.enterpriseUserId); if (message.auditUserRecords != null && message.auditUserRecords.length) for (let i = 0; i < message.auditUserRecords.length; ++i) - $root.Enterprise.AuditUserRecord.encode(message.auditUserRecords[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.status != null && Object.hasOwnProperty.call(message, "status")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.status); + $root.Enterprise.AuditUserRecord.encode( + message.auditUserRecords[i], + writer.uint32(/* id 2, wireType 2 =*/ 18).fork() + ).ldelim(); + if (message.status != null && Object.hasOwnProperty.call(message, 'status')) + writer.uint32(/* id 3, wireType 0 =*/ 24).int32(message.status); return writer; }; @@ -83520,29 +86229,29 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ AuditUserData.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.AuditUserData(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.AuditUserData(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.enterpriseUserId = reader.int64(); break; } - case 2: { + case 2: { if (!(message.auditUserRecords && message.auditUserRecords.length)) message.auditUserRecords = []; message.auditUserRecords.push($root.Enterprise.AuditUserRecord.decode(reader, reader.uint32())); break; } - case 3: { + case 3: { message.status = reader.int32(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -83559,8 +86268,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ AuditUserData.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -83573,28 +86281,32 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ AuditUserData.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (!$util.isInteger(message.enterpriseUserId) && !(message.enterpriseUserId && $util.isInteger(message.enterpriseUserId.low) && $util.isInteger(message.enterpriseUserId.high))) - return "enterpriseUserId: integer|Long expected"; - if (message.auditUserRecords != null && message.hasOwnProperty("auditUserRecords")) { - if (!Array.isArray(message.auditUserRecords)) - return "auditUserRecords: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.enterpriseUserId != null && message.hasOwnProperty('enterpriseUserId')) + if ( + !$util.isInteger(message.enterpriseUserId) && + !( + message.enterpriseUserId && + $util.isInteger(message.enterpriseUserId.low) && + $util.isInteger(message.enterpriseUserId.high) + ) + ) + return 'enterpriseUserId: integer|Long expected'; + if (message.auditUserRecords != null && message.hasOwnProperty('auditUserRecords')) { + if (!Array.isArray(message.auditUserRecords)) return 'auditUserRecords: array expected'; for (let i = 0; i < message.auditUserRecords.length; ++i) { let error = $root.Enterprise.AuditUserRecord.verify(message.auditUserRecords[i]); - if (error) - return "auditUserRecords." + error; + if (error) return 'auditUserRecords.' + error; } } - if (message.status != null && message.hasOwnProperty("status")) + if (message.status != null && message.hasOwnProperty('status')) switch (message.status) { - default: - return "status: enum value expected"; - case 0: - case 1: - case 2: - break; + default: + return 'status: enum value expected'; + case 0: + case 1: + case 2: + break; } return null; }; @@ -83608,47 +86320,51 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.AuditUserData} AuditUserData */ AuditUserData.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.AuditUserData) - return object; + if (object instanceof $root.Enterprise.AuditUserData) return object; let message = new $root.Enterprise.AuditUserData(); if (object.enterpriseUserId != null) if ($util.Long) (message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId)).unsigned = false; - else if (typeof object.enterpriseUserId === "string") + else if (typeof object.enterpriseUserId === 'string') message.enterpriseUserId = parseInt(object.enterpriseUserId, 10); - else if (typeof object.enterpriseUserId === "number") + else if (typeof object.enterpriseUserId === 'number') message.enterpriseUserId = object.enterpriseUserId; - else if (typeof object.enterpriseUserId === "object") - message.enterpriseUserId = new $util.LongBits(object.enterpriseUserId.low >>> 0, object.enterpriseUserId.high >>> 0).toNumber(); + else if (typeof object.enterpriseUserId === 'object') + message.enterpriseUserId = new $util.LongBits( + object.enterpriseUserId.low >>> 0, + object.enterpriseUserId.high >>> 0 + ).toNumber(); if (object.auditUserRecords) { if (!Array.isArray(object.auditUserRecords)) - throw TypeError(".Enterprise.AuditUserData.auditUserRecords: array expected"); + throw TypeError('.Enterprise.AuditUserData.auditUserRecords: array expected'); message.auditUserRecords = []; for (let i = 0; i < object.auditUserRecords.length; ++i) { - if (typeof object.auditUserRecords[i] !== "object") - throw TypeError(".Enterprise.AuditUserData.auditUserRecords: object expected"); - message.auditUserRecords[i] = $root.Enterprise.AuditUserRecord.fromObject(object.auditUserRecords[i]); + if (typeof object.auditUserRecords[i] !== 'object') + throw TypeError('.Enterprise.AuditUserData.auditUserRecords: object expected'); + message.auditUserRecords[i] = $root.Enterprise.AuditUserRecord.fromObject( + object.auditUserRecords[i] + ); } } switch (object.status) { - default: - if (typeof object.status === "number") { - message.status = object.status; + default: + if (typeof object.status === 'number') { + message.status = object.status; + break; + } + break; + case 'OK': + case 0: + message.status = 0; + break; + case 'ACCESS_DENIED': + case 1: + message.status = 1; + break; + case 'NO_LONGER_IN_ENTERPRISE': + case 2: + message.status = 2; break; - } - break; - case "OK": - case 0: - message.status = 0; - break; - case "ACCESS_DENIED": - case 1: - message.status = 1; - break; - case "NO_LONGER_IN_ENTERPRISE": - case 2: - message.status = 2; - break; } return message; }; @@ -83663,31 +86379,46 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ AuditUserData.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.auditUserRecords = []; + if (options.arrays || options.defaults) object.auditUserRecords = []; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.enterpriseUserId = options.longs === String ? "0" : 0; - object.status = options.enums === String ? "OK" : 0; - } - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (typeof message.enterpriseUserId === "number") - object.enterpriseUserId = options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; + object.enterpriseUserId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.enterpriseUserId = options.longs === String ? '0' : 0; + object.status = options.enums === String ? 'OK' : 0; + } + if (message.enterpriseUserId != null && message.hasOwnProperty('enterpriseUserId')) + if (typeof message.enterpriseUserId === 'number') + object.enterpriseUserId = + options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; else - object.enterpriseUserId = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseUserId) : options.longs === Number ? new $util.LongBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0).toNumber() : message.enterpriseUserId; + object.enterpriseUserId = + options.longs === String + ? $util.Long.prototype.toString.call(message.enterpriseUserId) + : options.longs === Number + ? new $util.LongBits( + message.enterpriseUserId.low >>> 0, + message.enterpriseUserId.high >>> 0 + ).toNumber() + : message.enterpriseUserId; if (message.auditUserRecords && message.auditUserRecords.length) { object.auditUserRecords = []; for (let j = 0; j < message.auditUserRecords.length; ++j) - object.auditUserRecords[j] = $root.Enterprise.AuditUserRecord.toObject(message.auditUserRecords[j], options); + object.auditUserRecords[j] = $root.Enterprise.AuditUserRecord.toObject( + message.auditUserRecords[j], + options + ); } - if (message.status != null && message.hasOwnProperty("status")) - object.status = options.enums === String ? $root.Enterprise.AuditUserStatus[message.status] === undefined ? message.status : $root.Enterprise.AuditUserStatus[message.status] : message.status; + if (message.status != null && message.hasOwnProperty('status')) + object.status = + options.enums === String + ? $root.Enterprise.AuditUserStatus[message.status] === undefined + ? message.status + : $root.Enterprise.AuditUserStatus[message.status] + : message.status; return object; }; @@ -83712,16 +86443,15 @@ export const Enterprise = $root.Enterprise = (() => { */ AuditUserData.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.AuditUserData"; + return typeUrlPrefix + '/Enterprise.AuditUserData'; }; return AuditUserData; })(); - Enterprise.ComplianceReportFilters = (function() { - + Enterprise.ComplianceReportFilters = (function () { /** * Properties of a ComplianceReportFilters. * @memberof Enterprise @@ -83749,8 +86479,7 @@ export const Enterprise = $root.Enterprise = (() => { this.enterpriseUserIds = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -83815,27 +86544,24 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ ComplianceReportFilters.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.recordTitles != null && message.recordTitles.length) for (let i = 0; i < message.recordTitles.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.recordTitles[i]); + writer.uint32(/* id 1, wireType 2 =*/ 10).string(message.recordTitles[i]); if (message.recordUids != null && message.recordUids.length) for (let i = 0; i < message.recordUids.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.recordUids[i]); + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.recordUids[i]); if (message.jobTitles != null && message.jobTitles.length) { - writer.uint32(/* id 3, wireType 2 =*/26).fork(); - for (let i = 0; i < message.jobTitles.length; ++i) - writer.int64(message.jobTitles[i]); + writer.uint32(/* id 3, wireType 2 =*/ 26).fork(); + for (let i = 0; i < message.jobTitles.length; ++i) writer.int64(message.jobTitles[i]); writer.ldelim(); } if (message.urls != null && message.urls.length) for (let i = 0; i < message.urls.length; ++i) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.urls[i]); + writer.uint32(/* id 4, wireType 2 =*/ 34).string(message.urls[i]); if (message.enterpriseUserIds != null && message.enterpriseUserIds.length) { - writer.uint32(/* id 5, wireType 2 =*/42).fork(); - for (let i = 0; i < message.enterpriseUserIds.length; ++i) - writer.int64(message.enterpriseUserIds[i]); + writer.uint32(/* id 5, wireType 2 =*/ 42).fork(); + for (let i = 0; i < message.enterpriseUserIds.length; ++i) writer.int64(message.enterpriseUserIds[i]); writer.ldelim(); } return writer; @@ -83866,55 +86592,47 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ComplianceReportFilters.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.ComplianceReportFilters(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.ComplianceReportFilters(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (!(message.recordTitles && message.recordTitles.length)) - message.recordTitles = []; + case 1: { + if (!(message.recordTitles && message.recordTitles.length)) message.recordTitles = []; message.recordTitles.push(reader.string()); break; } - case 2: { - if (!(message.recordUids && message.recordUids.length)) - message.recordUids = []; + case 2: { + if (!(message.recordUids && message.recordUids.length)) message.recordUids = []; message.recordUids.push(reader.bytes()); break; } - case 3: { - if (!(message.jobTitles && message.jobTitles.length)) - message.jobTitles = []; + case 3: { + if (!(message.jobTitles && message.jobTitles.length)) message.jobTitles = []; if ((tag & 7) === 2) { let end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.jobTitles.push(reader.int64()); - } else - message.jobTitles.push(reader.int64()); + while (reader.pos < end2) message.jobTitles.push(reader.int64()); + } else message.jobTitles.push(reader.int64()); break; } - case 4: { - if (!(message.urls && message.urls.length)) - message.urls = []; + case 4: { + if (!(message.urls && message.urls.length)) message.urls = []; message.urls.push(reader.string()); break; } - case 5: { + case 5: { if (!(message.enterpriseUserIds && message.enterpriseUserIds.length)) message.enterpriseUserIds = []; if ((tag & 7) === 2) { let end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.enterpriseUserIds.push(reader.int64()); - } else - message.enterpriseUserIds.push(reader.int64()); + while (reader.pos < end2) message.enterpriseUserIds.push(reader.int64()); + } else message.enterpriseUserIds.push(reader.int64()); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -83931,8 +86649,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ComplianceReportFilters.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -83945,42 +86662,53 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ ComplianceReportFilters.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.recordTitles != null && message.hasOwnProperty("recordTitles")) { - if (!Array.isArray(message.recordTitles)) - return "recordTitles: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.recordTitles != null && message.hasOwnProperty('recordTitles')) { + if (!Array.isArray(message.recordTitles)) return 'recordTitles: array expected'; for (let i = 0; i < message.recordTitles.length; ++i) - if (!$util.isString(message.recordTitles[i])) - return "recordTitles: string[] expected"; + if (!$util.isString(message.recordTitles[i])) return 'recordTitles: string[] expected'; } - if (message.recordUids != null && message.hasOwnProperty("recordUids")) { - if (!Array.isArray(message.recordUids)) - return "recordUids: array expected"; + if (message.recordUids != null && message.hasOwnProperty('recordUids')) { + if (!Array.isArray(message.recordUids)) return 'recordUids: array expected'; for (let i = 0; i < message.recordUids.length; ++i) - if (!(message.recordUids[i] && typeof message.recordUids[i].length === "number" || $util.isString(message.recordUids[i]))) - return "recordUids: buffer[] expected"; - } - if (message.jobTitles != null && message.hasOwnProperty("jobTitles")) { - if (!Array.isArray(message.jobTitles)) - return "jobTitles: array expected"; + if ( + !( + (message.recordUids[i] && typeof message.recordUids[i].length === 'number') || + $util.isString(message.recordUids[i]) + ) + ) + return 'recordUids: buffer[] expected'; + } + if (message.jobTitles != null && message.hasOwnProperty('jobTitles')) { + if (!Array.isArray(message.jobTitles)) return 'jobTitles: array expected'; for (let i = 0; i < message.jobTitles.length; ++i) - if (!$util.isInteger(message.jobTitles[i]) && !(message.jobTitles[i] && $util.isInteger(message.jobTitles[i].low) && $util.isInteger(message.jobTitles[i].high))) - return "jobTitles: integer|Long[] expected"; - } - if (message.urls != null && message.hasOwnProperty("urls")) { - if (!Array.isArray(message.urls)) - return "urls: array expected"; + if ( + !$util.isInteger(message.jobTitles[i]) && + !( + message.jobTitles[i] && + $util.isInteger(message.jobTitles[i].low) && + $util.isInteger(message.jobTitles[i].high) + ) + ) + return 'jobTitles: integer|Long[] expected'; + } + if (message.urls != null && message.hasOwnProperty('urls')) { + if (!Array.isArray(message.urls)) return 'urls: array expected'; for (let i = 0; i < message.urls.length; ++i) - if (!$util.isString(message.urls[i])) - return "urls: string[] expected"; + if (!$util.isString(message.urls[i])) return 'urls: string[] expected'; } - if (message.enterpriseUserIds != null && message.hasOwnProperty("enterpriseUserIds")) { - if (!Array.isArray(message.enterpriseUserIds)) - return "enterpriseUserIds: array expected"; + if (message.enterpriseUserIds != null && message.hasOwnProperty('enterpriseUserIds')) { + if (!Array.isArray(message.enterpriseUserIds)) return 'enterpriseUserIds: array expected'; for (let i = 0; i < message.enterpriseUserIds.length; ++i) - if (!$util.isInteger(message.enterpriseUserIds[i]) && !(message.enterpriseUserIds[i] && $util.isInteger(message.enterpriseUserIds[i].low) && $util.isInteger(message.enterpriseUserIds[i].high))) - return "enterpriseUserIds: integer|Long[] expected"; + if ( + !$util.isInteger(message.enterpriseUserIds[i]) && + !( + message.enterpriseUserIds[i] && + $util.isInteger(message.enterpriseUserIds[i].low) && + $util.isInteger(message.enterpriseUserIds[i].high) + ) + ) + return 'enterpriseUserIds: integer|Long[] expected'; } return null; }; @@ -83994,60 +86722,66 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.ComplianceReportFilters} ComplianceReportFilters */ ComplianceReportFilters.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.ComplianceReportFilters) - return object; + if (object instanceof $root.Enterprise.ComplianceReportFilters) return object; let message = new $root.Enterprise.ComplianceReportFilters(); if (object.recordTitles) { if (!Array.isArray(object.recordTitles)) - throw TypeError(".Enterprise.ComplianceReportFilters.recordTitles: array expected"); + throw TypeError('.Enterprise.ComplianceReportFilters.recordTitles: array expected'); message.recordTitles = []; for (let i = 0; i < object.recordTitles.length; ++i) message.recordTitles[i] = String(object.recordTitles[i]); } if (object.recordUids) { if (!Array.isArray(object.recordUids)) - throw TypeError(".Enterprise.ComplianceReportFilters.recordUids: array expected"); + throw TypeError('.Enterprise.ComplianceReportFilters.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 (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.jobTitles) { if (!Array.isArray(object.jobTitles)) - throw TypeError(".Enterprise.ComplianceReportFilters.jobTitles: array expected"); + throw TypeError('.Enterprise.ComplianceReportFilters.jobTitles: array expected'); message.jobTitles = []; for (let i = 0; i < object.jobTitles.length; ++i) - if ($util.Long) - (message.jobTitles[i] = $util.Long.fromValue(object.jobTitles[i])).unsigned = false; - else if (typeof object.jobTitles[i] === "string") + if ($util.Long) (message.jobTitles[i] = $util.Long.fromValue(object.jobTitles[i])).unsigned = false; + else if (typeof object.jobTitles[i] === 'string') message.jobTitles[i] = parseInt(object.jobTitles[i], 10); - else if (typeof object.jobTitles[i] === "number") - message.jobTitles[i] = object.jobTitles[i]; - else if (typeof object.jobTitles[i] === "object") - message.jobTitles[i] = new $util.LongBits(object.jobTitles[i].low >>> 0, object.jobTitles[i].high >>> 0).toNumber(); + else if (typeof object.jobTitles[i] === 'number') message.jobTitles[i] = object.jobTitles[i]; + else if (typeof object.jobTitles[i] === 'object') + message.jobTitles[i] = new $util.LongBits( + object.jobTitles[i].low >>> 0, + object.jobTitles[i].high >>> 0 + ).toNumber(); } if (object.urls) { if (!Array.isArray(object.urls)) - throw TypeError(".Enterprise.ComplianceReportFilters.urls: array expected"); + throw TypeError('.Enterprise.ComplianceReportFilters.urls: array expected'); message.urls = []; - for (let i = 0; i < object.urls.length; ++i) - message.urls[i] = String(object.urls[i]); + for (let i = 0; i < object.urls.length; ++i) message.urls[i] = String(object.urls[i]); } if (object.enterpriseUserIds) { if (!Array.isArray(object.enterpriseUserIds)) - throw TypeError(".Enterprise.ComplianceReportFilters.enterpriseUserIds: array expected"); + throw TypeError('.Enterprise.ComplianceReportFilters.enterpriseUserIds: array expected'); message.enterpriseUserIds = []; for (let i = 0; i < object.enterpriseUserIds.length; ++i) if ($util.Long) - (message.enterpriseUserIds[i] = $util.Long.fromValue(object.enterpriseUserIds[i])).unsigned = false; - else if (typeof object.enterpriseUserIds[i] === "string") + (message.enterpriseUserIds[i] = $util.Long.fromValue(object.enterpriseUserIds[i])).unsigned = + false; + else if (typeof object.enterpriseUserIds[i] === 'string') message.enterpriseUserIds[i] = parseInt(object.enterpriseUserIds[i], 10); - else if (typeof object.enterpriseUserIds[i] === "number") + else if (typeof object.enterpriseUserIds[i] === 'number') message.enterpriseUserIds[i] = object.enterpriseUserIds[i]; - else if (typeof object.enterpriseUserIds[i] === "object") - message.enterpriseUserIds[i] = new $util.LongBits(object.enterpriseUserIds[i].low >>> 0, object.enterpriseUserIds[i].high >>> 0).toNumber(); + else if (typeof object.enterpriseUserIds[i] === 'object') + message.enterpriseUserIds[i] = new $util.LongBits( + object.enterpriseUserIds[i].low >>> 0, + object.enterpriseUserIds[i].high >>> 0 + ).toNumber(); } return message; }; @@ -84062,8 +86796,7 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ ComplianceReportFilters.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.arrays || options.defaults) { object.recordTitles = []; @@ -84074,34 +86807,57 @@ export const Enterprise = $root.Enterprise = (() => { } if (message.recordTitles && message.recordTitles.length) { object.recordTitles = []; - for (let j = 0; j < message.recordTitles.length; ++j) - object.recordTitles[j] = message.recordTitles[j]; + for (let j = 0; j < message.recordTitles.length; ++j) object.recordTitles[j] = message.recordTitles[j]; } 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]; + 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]; } if (message.jobTitles && message.jobTitles.length) { object.jobTitles = []; for (let j = 0; j < message.jobTitles.length; ++j) - if (typeof message.jobTitles[j] === "number") - object.jobTitles[j] = options.longs === String ? String(message.jobTitles[j]) : message.jobTitles[j]; + if (typeof message.jobTitles[j] === 'number') + object.jobTitles[j] = + options.longs === String ? String(message.jobTitles[j]) : message.jobTitles[j]; else - object.jobTitles[j] = options.longs === String ? $util.Long.prototype.toString.call(message.jobTitles[j]) : options.longs === Number ? new $util.LongBits(message.jobTitles[j].low >>> 0, message.jobTitles[j].high >>> 0).toNumber() : message.jobTitles[j]; + object.jobTitles[j] = + options.longs === String + ? $util.Long.prototype.toString.call(message.jobTitles[j]) + : options.longs === Number + ? new $util.LongBits( + message.jobTitles[j].low >>> 0, + message.jobTitles[j].high >>> 0 + ).toNumber() + : message.jobTitles[j]; } if (message.urls && message.urls.length) { object.urls = []; - for (let j = 0; j < message.urls.length; ++j) - object.urls[j] = message.urls[j]; + for (let j = 0; j < message.urls.length; ++j) object.urls[j] = message.urls[j]; } if (message.enterpriseUserIds && message.enterpriseUserIds.length) { object.enterpriseUserIds = []; for (let j = 0; j < message.enterpriseUserIds.length; ++j) - if (typeof message.enterpriseUserIds[j] === "number") - object.enterpriseUserIds[j] = options.longs === String ? String(message.enterpriseUserIds[j]) : message.enterpriseUserIds[j]; + if (typeof message.enterpriseUserIds[j] === 'number') + object.enterpriseUserIds[j] = + options.longs === String + ? String(message.enterpriseUserIds[j]) + : message.enterpriseUserIds[j]; else - object.enterpriseUserIds[j] = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseUserIds[j]) : options.longs === Number ? new $util.LongBits(message.enterpriseUserIds[j].low >>> 0, message.enterpriseUserIds[j].high >>> 0).toNumber() : message.enterpriseUserIds[j]; + object.enterpriseUserIds[j] = + options.longs === String + ? $util.Long.prototype.toString.call(message.enterpriseUserIds[j]) + : options.longs === Number + ? new $util.LongBits( + message.enterpriseUserIds[j].low >>> 0, + message.enterpriseUserIds[j].high >>> 0 + ).toNumber() + : message.enterpriseUserIds[j]; } return object; }; @@ -84127,16 +86883,15 @@ export const Enterprise = $root.Enterprise = (() => { */ ComplianceReportFilters.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.ComplianceReportFilters"; + return typeUrlPrefix + '/Enterprise.ComplianceReportFilters'; }; return ComplianceReportFilters; })(); - Enterprise.ComplianceReportRequest = (function() { - + Enterprise.ComplianceReportRequest = (function () { /** * Properties of a ComplianceReportRequest. * @memberof Enterprise @@ -84157,8 +86912,7 @@ export const Enterprise = $root.Enterprise = (() => { function ComplianceReportRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -84175,7 +86929,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.ComplianceReportRequest * @instance */ - ComplianceReportRequest.prototype.reportName = ""; + ComplianceReportRequest.prototype.reportName = ''; /** * ComplianceReportRequest saveReport. @@ -84207,14 +86961,16 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ ComplianceReportRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.complianceReportRun != null && Object.hasOwnProperty.call(message, "complianceReportRun")) - $root.Enterprise.ComplianceReportRun.encode(message.complianceReportRun, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.reportName != null && Object.hasOwnProperty.call(message, "reportName")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.reportName); - if (message.saveReport != null && Object.hasOwnProperty.call(message, "saveReport")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.saveReport); + if (!writer) writer = $Writer.create(); + if (message.complianceReportRun != null && Object.hasOwnProperty.call(message, 'complianceReportRun')) + $root.Enterprise.ComplianceReportRun.encode( + message.complianceReportRun, + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); + if (message.reportName != null && Object.hasOwnProperty.call(message, 'reportName')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.reportName); + if (message.saveReport != null && Object.hasOwnProperty.call(message, 'saveReport')) + writer.uint32(/* id 3, wireType 0 =*/ 24).bool(message.saveReport); return writer; }; @@ -84243,27 +86999,30 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ComplianceReportRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.ComplianceReportRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.ComplianceReportRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - message.complianceReportRun = $root.Enterprise.ComplianceReportRun.decode(reader, reader.uint32()); + case 1: { + message.complianceReportRun = $root.Enterprise.ComplianceReportRun.decode( + reader, + reader.uint32() + ); break; } - case 2: { + case 2: { message.reportName = reader.string(); break; } - case 3: { + case 3: { message.saveReport = reader.bool(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -84280,8 +87039,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ComplianceReportRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -84294,19 +87052,15 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ ComplianceReportRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.complianceReportRun != null && message.hasOwnProperty("complianceReportRun")) { + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.complianceReportRun != null && message.hasOwnProperty('complianceReportRun')) { let error = $root.Enterprise.ComplianceReportRun.verify(message.complianceReportRun); - if (error) - return "complianceReportRun." + error; + if (error) return 'complianceReportRun.' + error; } - if (message.reportName != null && message.hasOwnProperty("reportName")) - if (!$util.isString(message.reportName)) - return "reportName: string expected"; - if (message.saveReport != null && message.hasOwnProperty("saveReport")) - if (typeof message.saveReport !== "boolean") - return "saveReport: boolean expected"; + if (message.reportName != null && message.hasOwnProperty('reportName')) + if (!$util.isString(message.reportName)) return 'reportName: string expected'; + if (message.saveReport != null && message.hasOwnProperty('saveReport')) + if (typeof message.saveReport !== 'boolean') return 'saveReport: boolean expected'; return null; }; @@ -84319,18 +87073,17 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.ComplianceReportRequest} ComplianceReportRequest */ ComplianceReportRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.ComplianceReportRequest) - return object; + if (object instanceof $root.Enterprise.ComplianceReportRequest) return object; let message = new $root.Enterprise.ComplianceReportRequest(); if (object.complianceReportRun != null) { - if (typeof object.complianceReportRun !== "object") - throw TypeError(".Enterprise.ComplianceReportRequest.complianceReportRun: object expected"); - message.complianceReportRun = $root.Enterprise.ComplianceReportRun.fromObject(object.complianceReportRun); + if (typeof object.complianceReportRun !== 'object') + throw TypeError('.Enterprise.ComplianceReportRequest.complianceReportRun: object expected'); + message.complianceReportRun = $root.Enterprise.ComplianceReportRun.fromObject( + object.complianceReportRun + ); } - if (object.reportName != null) - message.reportName = String(object.reportName); - if (object.saveReport != null) - message.saveReport = Boolean(object.saveReport); + if (object.reportName != null) message.reportName = String(object.reportName); + if (object.saveReport != null) message.saveReport = Boolean(object.saveReport); return message; }; @@ -84344,19 +87097,21 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ ComplianceReportRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { object.complianceReportRun = null; - object.reportName = ""; + object.reportName = ''; object.saveReport = false; } - if (message.complianceReportRun != null && message.hasOwnProperty("complianceReportRun")) - object.complianceReportRun = $root.Enterprise.ComplianceReportRun.toObject(message.complianceReportRun, options); - if (message.reportName != null && message.hasOwnProperty("reportName")) + if (message.complianceReportRun != null && message.hasOwnProperty('complianceReportRun')) + object.complianceReportRun = $root.Enterprise.ComplianceReportRun.toObject( + message.complianceReportRun, + options + ); + if (message.reportName != null && message.hasOwnProperty('reportName')) object.reportName = message.reportName; - if (message.saveReport != null && message.hasOwnProperty("saveReport")) + if (message.saveReport != null && message.hasOwnProperty('saveReport')) object.saveReport = message.saveReport; return object; }; @@ -84382,16 +87137,15 @@ export const Enterprise = $root.Enterprise = (() => { */ ComplianceReportRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.ComplianceReportRequest"; + return typeUrlPrefix + '/Enterprise.ComplianceReportRequest'; }; return ComplianceReportRequest; })(); - Enterprise.ComplianceReportRun = (function() { - + Enterprise.ComplianceReportRun = (function () { /** * Properties of a ComplianceReportRun. * @memberof Enterprise @@ -84414,8 +87168,7 @@ export const Enterprise = $root.Enterprise = (() => { this.records = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -84464,19 +87217,23 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ ComplianceReportRun.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.reportCriteriaAndFilter != null && Object.hasOwnProperty.call(message, "reportCriteriaAndFilter")) - $root.Enterprise.ComplianceReportCriteriaAndFilter.encode(message.reportCriteriaAndFilter, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (!writer) writer = $Writer.create(); + if ( + message.reportCriteriaAndFilter != null && + Object.hasOwnProperty.call(message, 'reportCriteriaAndFilter') + ) + $root.Enterprise.ComplianceReportCriteriaAndFilter.encode( + message.reportCriteriaAndFilter, + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); if (message.users != null && message.users.length) { - writer.uint32(/* id 2, wireType 2 =*/18).fork(); - for (let i = 0; i < message.users.length; ++i) - writer.int64(message.users[i]); + writer.uint32(/* id 2, wireType 2 =*/ 18).fork(); + for (let i = 0; i < message.users.length; ++i) writer.int64(message.users[i]); writer.ldelim(); } if (message.records != null && message.records.length) for (let i = 0; i < message.records.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.records[i]); + writer.uint32(/* id 3, wireType 2 =*/ 26).bytes(message.records[i]); return writer; }; @@ -84505,36 +87262,35 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ComplianceReportRun.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.ComplianceReportRun(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.ComplianceReportRun(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - message.reportCriteriaAndFilter = $root.Enterprise.ComplianceReportCriteriaAndFilter.decode(reader, reader.uint32()); + case 1: { + message.reportCriteriaAndFilter = $root.Enterprise.ComplianceReportCriteriaAndFilter.decode( + reader, + reader.uint32() + ); break; } - case 2: { - if (!(message.users && message.users.length)) - message.users = []; + case 2: { + if (!(message.users && message.users.length)) message.users = []; if ((tag & 7) === 2) { let end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.users.push(reader.int64()); - } else - message.users.push(reader.int64()); + while (reader.pos < end2) message.users.push(reader.int64()); + } else message.users.push(reader.int64()); break; } - case 3: { - if (!(message.records && message.records.length)) - message.records = []; + case 3: { + if (!(message.records && message.records.length)) message.records = []; message.records.push(reader.bytes()); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -84551,8 +87307,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ComplianceReportRun.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -84565,26 +87320,34 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ ComplianceReportRun.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.reportCriteriaAndFilter != null && message.hasOwnProperty("reportCriteriaAndFilter")) { + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.reportCriteriaAndFilter != null && message.hasOwnProperty('reportCriteriaAndFilter')) { let error = $root.Enterprise.ComplianceReportCriteriaAndFilter.verify(message.reportCriteriaAndFilter); - if (error) - return "reportCriteriaAndFilter." + error; + if (error) return 'reportCriteriaAndFilter.' + error; } - if (message.users != null && message.hasOwnProperty("users")) { - if (!Array.isArray(message.users)) - return "users: array expected"; + if (message.users != null && message.hasOwnProperty('users')) { + if (!Array.isArray(message.users)) return 'users: array expected'; for (let i = 0; i < message.users.length; ++i) - if (!$util.isInteger(message.users[i]) && !(message.users[i] && $util.isInteger(message.users[i].low) && $util.isInteger(message.users[i].high))) - return "users: integer|Long[] expected"; - } - if (message.records != null && message.hasOwnProperty("records")) { - if (!Array.isArray(message.records)) - return "records: array expected"; + if ( + !$util.isInteger(message.users[i]) && + !( + message.users[i] && + $util.isInteger(message.users[i].low) && + $util.isInteger(message.users[i].high) + ) + ) + return 'users: integer|Long[] expected'; + } + if (message.records != null && message.hasOwnProperty('records')) { + if (!Array.isArray(message.records)) return 'records: array expected'; for (let i = 0; i < message.records.length; ++i) - if (!(message.records[i] && typeof message.records[i].length === "number" || $util.isString(message.records[i]))) - return "records: buffer[] expected"; + if ( + !( + (message.records[i] && typeof message.records[i].length === 'number') || + $util.isString(message.records[i]) + ) + ) + return 'records: buffer[] expected'; } return null; }; @@ -84598,37 +87361,41 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.ComplianceReportRun} ComplianceReportRun */ ComplianceReportRun.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.ComplianceReportRun) - return object; + if (object instanceof $root.Enterprise.ComplianceReportRun) return object; let message = new $root.Enterprise.ComplianceReportRun(); if (object.reportCriteriaAndFilter != null) { - if (typeof object.reportCriteriaAndFilter !== "object") - throw TypeError(".Enterprise.ComplianceReportRun.reportCriteriaAndFilter: object expected"); - message.reportCriteriaAndFilter = $root.Enterprise.ComplianceReportCriteriaAndFilter.fromObject(object.reportCriteriaAndFilter); + if (typeof object.reportCriteriaAndFilter !== 'object') + throw TypeError('.Enterprise.ComplianceReportRun.reportCriteriaAndFilter: object expected'); + message.reportCriteriaAndFilter = $root.Enterprise.ComplianceReportCriteriaAndFilter.fromObject( + object.reportCriteriaAndFilter + ); } if (object.users) { if (!Array.isArray(object.users)) - throw TypeError(".Enterprise.ComplianceReportRun.users: array expected"); + throw TypeError('.Enterprise.ComplianceReportRun.users: array expected'); message.users = []; for (let i = 0; i < object.users.length; ++i) - if ($util.Long) - (message.users[i] = $util.Long.fromValue(object.users[i])).unsigned = false; - else if (typeof object.users[i] === "string") - message.users[i] = parseInt(object.users[i], 10); - else if (typeof object.users[i] === "number") - message.users[i] = object.users[i]; - else if (typeof object.users[i] === "object") - message.users[i] = new $util.LongBits(object.users[i].low >>> 0, object.users[i].high >>> 0).toNumber(); + if ($util.Long) (message.users[i] = $util.Long.fromValue(object.users[i])).unsigned = false; + else if (typeof object.users[i] === 'string') message.users[i] = parseInt(object.users[i], 10); + else if (typeof object.users[i] === 'number') message.users[i] = object.users[i]; + else if (typeof object.users[i] === 'object') + message.users[i] = new $util.LongBits( + object.users[i].low >>> 0, + object.users[i].high >>> 0 + ).toNumber(); } if (object.records) { if (!Array.isArray(object.records)) - throw TypeError(".Enterprise.ComplianceReportRun.records: array expected"); + throw TypeError('.Enterprise.ComplianceReportRun.records: array expected'); message.records = []; for (let i = 0; i < object.records.length; ++i) - if (typeof object.records[i] === "string") - $util.base64.decode(object.records[i], message.records[i] = $util.newBuffer($util.base64.length(object.records[i])), 0); - else if (object.records[i].length >= 0) - message.records[i] = object.records[i]; + if (typeof object.records[i] === 'string') + $util.base64.decode( + object.records[i], + (message.records[i] = $util.newBuffer($util.base64.length(object.records[i]))), + 0 + ); + else if (object.records[i].length >= 0) message.records[i] = object.records[i]; } return message; }; @@ -84643,29 +87410,43 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ ComplianceReportRun.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.arrays || options.defaults) { object.users = []; object.records = []; } - if (options.defaults) - object.reportCriteriaAndFilter = null; - if (message.reportCriteriaAndFilter != null && message.hasOwnProperty("reportCriteriaAndFilter")) - object.reportCriteriaAndFilter = $root.Enterprise.ComplianceReportCriteriaAndFilter.toObject(message.reportCriteriaAndFilter, options); + if (options.defaults) object.reportCriteriaAndFilter = null; + if (message.reportCriteriaAndFilter != null && message.hasOwnProperty('reportCriteriaAndFilter')) + object.reportCriteriaAndFilter = $root.Enterprise.ComplianceReportCriteriaAndFilter.toObject( + message.reportCriteriaAndFilter, + options + ); if (message.users && message.users.length) { object.users = []; for (let j = 0; j < message.users.length; ++j) - if (typeof message.users[j] === "number") + if (typeof message.users[j] === 'number') object.users[j] = options.longs === String ? String(message.users[j]) : message.users[j]; else - object.users[j] = options.longs === String ? $util.Long.prototype.toString.call(message.users[j]) : options.longs === Number ? new $util.LongBits(message.users[j].low >>> 0, message.users[j].high >>> 0).toNumber() : message.users[j]; + object.users[j] = + options.longs === String + ? $util.Long.prototype.toString.call(message.users[j]) + : options.longs === Number + ? new $util.LongBits( + message.users[j].low >>> 0, + message.users[j].high >>> 0 + ).toNumber() + : message.users[j]; } if (message.records && message.records.length) { object.records = []; for (let j = 0; j < message.records.length; ++j) - object.records[j] = options.bytes === String ? $util.base64.encode(message.records[j], 0, message.records[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.records[j]) : message.records[j]; + object.records[j] = + options.bytes === String + ? $util.base64.encode(message.records[j], 0, message.records[j].length) + : options.bytes === Array + ? Array.prototype.slice.call(message.records[j]) + : message.records[j]; } return object; }; @@ -84691,16 +87472,15 @@ export const Enterprise = $root.Enterprise = (() => { */ ComplianceReportRun.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.ComplianceReportRun"; + return typeUrlPrefix + '/Enterprise.ComplianceReportRun'; }; return ComplianceReportRun; })(); - Enterprise.ComplianceReportCriteriaAndFilter = (function() { - + Enterprise.ComplianceReportCriteriaAndFilter = (function () { /** * Properties of a ComplianceReportCriteriaAndFilter. * @memberof Enterprise @@ -84726,8 +87506,7 @@ export const Enterprise = $root.Enterprise = (() => { this.filters = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -84736,7 +87515,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.ComplianceReportCriteriaAndFilter * @instance */ - ComplianceReportCriteriaAndFilter.prototype.nodeId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + ComplianceReportCriteriaAndFilter.prototype.nodeId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * ComplianceReportCriteriaAndFilter criteriaUid. @@ -84752,7 +87531,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.ComplianceReportCriteriaAndFilter * @instance */ - ComplianceReportCriteriaAndFilter.prototype.criteriaName = ""; + ComplianceReportCriteriaAndFilter.prototype.criteriaName = ''; /** * ComplianceReportCriteriaAndFilter criteria. @@ -84776,7 +87555,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.ComplianceReportCriteriaAndFilter * @instance */ - ComplianceReportCriteriaAndFilter.prototype.lastModified = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + ComplianceReportCriteriaAndFilter.prototype.lastModified = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * ComplianceReportCriteriaAndFilter nodeEncryptedData. @@ -84808,23 +87587,28 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ ComplianceReportCriteriaAndFilter.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.nodeId != null && Object.hasOwnProperty.call(message, "nodeId")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.nodeId); - if (message.criteriaUid != null && Object.hasOwnProperty.call(message, "criteriaUid")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.criteriaUid); - if (message.criteriaName != null && Object.hasOwnProperty.call(message, "criteriaName")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.criteriaName); - if (message.criteria != null && Object.hasOwnProperty.call(message, "criteria")) - $root.Enterprise.ComplianceReportCriteria.encode(message.criteria, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (!writer) writer = $Writer.create(); + if (message.nodeId != null && Object.hasOwnProperty.call(message, 'nodeId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int64(message.nodeId); + if (message.criteriaUid != null && Object.hasOwnProperty.call(message, 'criteriaUid')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.criteriaUid); + if (message.criteriaName != null && Object.hasOwnProperty.call(message, 'criteriaName')) + writer.uint32(/* id 3, wireType 2 =*/ 26).string(message.criteriaName); + if (message.criteria != null && Object.hasOwnProperty.call(message, 'criteria')) + $root.Enterprise.ComplianceReportCriteria.encode( + message.criteria, + writer.uint32(/* id 4, wireType 2 =*/ 34).fork() + ).ldelim(); if (message.filters != null && message.filters.length) for (let i = 0; i < message.filters.length; ++i) - $root.Enterprise.ComplianceReportFilter.encode(message.filters[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.lastModified != null && Object.hasOwnProperty.call(message, "lastModified")) - writer.uint32(/* id 6, wireType 0 =*/48).int64(message.lastModified); - if (message.nodeEncryptedData != null && Object.hasOwnProperty.call(message, "nodeEncryptedData")) - writer.uint32(/* id 7, wireType 2 =*/58).bytes(message.nodeEncryptedData); + $root.Enterprise.ComplianceReportFilter.encode( + message.filters[i], + writer.uint32(/* id 5, wireType 2 =*/ 42).fork() + ).ldelim(); + if (message.lastModified != null && Object.hasOwnProperty.call(message, 'lastModified')) + writer.uint32(/* id 6, wireType 0 =*/ 48).int64(message.lastModified); + if (message.nodeEncryptedData != null && Object.hasOwnProperty.call(message, 'nodeEncryptedData')) + writer.uint32(/* id 7, wireType 2 =*/ 58).bytes(message.nodeEncryptedData); return writer; }; @@ -84853,45 +87637,44 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ComplianceReportCriteriaAndFilter.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.ComplianceReportCriteriaAndFilter(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.ComplianceReportCriteriaAndFilter(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.nodeId = reader.int64(); break; } - case 2: { + case 2: { message.criteriaUid = reader.bytes(); break; } - case 3: { + case 3: { message.criteriaName = reader.string(); break; } - case 4: { + case 4: { message.criteria = $root.Enterprise.ComplianceReportCriteria.decode(reader, reader.uint32()); break; } - case 5: { - if (!(message.filters && message.filters.length)) - message.filters = []; + case 5: { + if (!(message.filters && message.filters.length)) message.filters = []; message.filters.push($root.Enterprise.ComplianceReportFilter.decode(reader, reader.uint32())); break; } - case 6: { + case 6: { message.lastModified = reader.int64(); break; } - case 7: { + case 7: { message.nodeEncryptedData = reader.bytes(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -84908,8 +87691,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ComplianceReportCriteriaAndFilter.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -84922,37 +87704,52 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ ComplianceReportCriteriaAndFilter.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.nodeId != null && message.hasOwnProperty("nodeId")) - if (!$util.isInteger(message.nodeId) && !(message.nodeId && $util.isInteger(message.nodeId.low) && $util.isInteger(message.nodeId.high))) - return "nodeId: integer|Long expected"; - if (message.criteriaUid != null && message.hasOwnProperty("criteriaUid")) - if (!(message.criteriaUid && typeof message.criteriaUid.length === "number" || $util.isString(message.criteriaUid))) - return "criteriaUid: buffer expected"; - if (message.criteriaName != null && message.hasOwnProperty("criteriaName")) - if (!$util.isString(message.criteriaName)) - return "criteriaName: string expected"; - if (message.criteria != null && message.hasOwnProperty("criteria")) { + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.nodeId != null && message.hasOwnProperty('nodeId')) + if ( + !$util.isInteger(message.nodeId) && + !(message.nodeId && $util.isInteger(message.nodeId.low) && $util.isInteger(message.nodeId.high)) + ) + return 'nodeId: integer|Long expected'; + if (message.criteriaUid != null && message.hasOwnProperty('criteriaUid')) + if ( + !( + (message.criteriaUid && typeof message.criteriaUid.length === 'number') || + $util.isString(message.criteriaUid) + ) + ) + return 'criteriaUid: buffer expected'; + if (message.criteriaName != null && message.hasOwnProperty('criteriaName')) + if (!$util.isString(message.criteriaName)) return 'criteriaName: string expected'; + if (message.criteria != null && message.hasOwnProperty('criteria')) { let error = $root.Enterprise.ComplianceReportCriteria.verify(message.criteria); - if (error) - return "criteria." + error; + if (error) return 'criteria.' + error; } - if (message.filters != null && message.hasOwnProperty("filters")) { - if (!Array.isArray(message.filters)) - return "filters: array expected"; + if (message.filters != null && message.hasOwnProperty('filters')) { + if (!Array.isArray(message.filters)) return 'filters: array expected'; for (let i = 0; i < message.filters.length; ++i) { let error = $root.Enterprise.ComplianceReportFilter.verify(message.filters[i]); - if (error) - return "filters." + error; + if (error) return 'filters.' + error; } } - if (message.lastModified != null && message.hasOwnProperty("lastModified")) - if (!$util.isInteger(message.lastModified) && !(message.lastModified && $util.isInteger(message.lastModified.low) && $util.isInteger(message.lastModified.high))) - return "lastModified: integer|Long expected"; - if (message.nodeEncryptedData != null && message.hasOwnProperty("nodeEncryptedData")) - if (!(message.nodeEncryptedData && typeof message.nodeEncryptedData.length === "number" || $util.isString(message.nodeEncryptedData))) - return "nodeEncryptedData: buffer expected"; + if (message.lastModified != null && message.hasOwnProperty('lastModified')) + if ( + !$util.isInteger(message.lastModified) && + !( + message.lastModified && + $util.isInteger(message.lastModified.low) && + $util.isInteger(message.lastModified.high) + ) + ) + return 'lastModified: integer|Long expected'; + if (message.nodeEncryptedData != null && message.hasOwnProperty('nodeEncryptedData')) + if ( + !( + (message.nodeEncryptedData && typeof message.nodeEncryptedData.length === 'number') || + $util.isString(message.nodeEncryptedData) + ) + ) + return 'nodeEncryptedData: buffer expected'; return null; }; @@ -84965,54 +87762,56 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.ComplianceReportCriteriaAndFilter} ComplianceReportCriteriaAndFilter */ ComplianceReportCriteriaAndFilter.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.ComplianceReportCriteriaAndFilter) - return object; + if (object instanceof $root.Enterprise.ComplianceReportCriteriaAndFilter) return object; let message = new $root.Enterprise.ComplianceReportCriteriaAndFilter(); if (object.nodeId != null) - if ($util.Long) - (message.nodeId = $util.Long.fromValue(object.nodeId)).unsigned = false; - else if (typeof object.nodeId === "string") - message.nodeId = parseInt(object.nodeId, 10); - else if (typeof object.nodeId === "number") - message.nodeId = object.nodeId; - else if (typeof object.nodeId === "object") + if ($util.Long) (message.nodeId = $util.Long.fromValue(object.nodeId)).unsigned = false; + else if (typeof object.nodeId === 'string') message.nodeId = parseInt(object.nodeId, 10); + else if (typeof object.nodeId === 'number') message.nodeId = object.nodeId; + else if (typeof object.nodeId === 'object') message.nodeId = new $util.LongBits(object.nodeId.low >>> 0, object.nodeId.high >>> 0).toNumber(); if (object.criteriaUid != null) - if (typeof object.criteriaUid === "string") - $util.base64.decode(object.criteriaUid, message.criteriaUid = $util.newBuffer($util.base64.length(object.criteriaUid)), 0); - else if (object.criteriaUid.length >= 0) - message.criteriaUid = object.criteriaUid; - if (object.criteriaName != null) - message.criteriaName = String(object.criteriaName); + if (typeof object.criteriaUid === 'string') + $util.base64.decode( + object.criteriaUid, + (message.criteriaUid = $util.newBuffer($util.base64.length(object.criteriaUid))), + 0 + ); + else if (object.criteriaUid.length >= 0) message.criteriaUid = object.criteriaUid; + if (object.criteriaName != null) message.criteriaName = String(object.criteriaName); if (object.criteria != null) { - if (typeof object.criteria !== "object") - throw TypeError(".Enterprise.ComplianceReportCriteriaAndFilter.criteria: object expected"); + if (typeof object.criteria !== 'object') + throw TypeError('.Enterprise.ComplianceReportCriteriaAndFilter.criteria: object expected'); message.criteria = $root.Enterprise.ComplianceReportCriteria.fromObject(object.criteria); } if (object.filters) { if (!Array.isArray(object.filters)) - throw TypeError(".Enterprise.ComplianceReportCriteriaAndFilter.filters: array expected"); + throw TypeError('.Enterprise.ComplianceReportCriteriaAndFilter.filters: array expected'); message.filters = []; for (let i = 0; i < object.filters.length; ++i) { - if (typeof object.filters[i] !== "object") - throw TypeError(".Enterprise.ComplianceReportCriteriaAndFilter.filters: object expected"); + if (typeof object.filters[i] !== 'object') + throw TypeError('.Enterprise.ComplianceReportCriteriaAndFilter.filters: object expected'); message.filters[i] = $root.Enterprise.ComplianceReportFilter.fromObject(object.filters[i]); } } if (object.lastModified != null) - if ($util.Long) - (message.lastModified = $util.Long.fromValue(object.lastModified)).unsigned = false; - else if (typeof object.lastModified === "string") + if ($util.Long) (message.lastModified = $util.Long.fromValue(object.lastModified)).unsigned = 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(); + 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(); if (object.nodeEncryptedData != null) - if (typeof object.nodeEncryptedData === "string") - $util.base64.decode(object.nodeEncryptedData, message.nodeEncryptedData = $util.newBuffer($util.base64.length(object.nodeEncryptedData)), 0); - else if (object.nodeEncryptedData.length >= 0) - message.nodeEncryptedData = object.nodeEncryptedData; + if (typeof object.nodeEncryptedData === 'string') + $util.base64.decode( + object.nodeEncryptedData, + (message.nodeEncryptedData = $util.newBuffer($util.base64.length(object.nodeEncryptedData))), + 0 + ); + else if (object.nodeEncryptedData.length >= 0) message.nodeEncryptedData = object.nodeEncryptedData; return message; }; @@ -85026,62 +87825,80 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ ComplianceReportCriteriaAndFilter.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.filters = []; + if (options.arrays || options.defaults) object.filters = []; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.nodeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.nodeId = options.longs === String ? "0" : 0; - if (options.bytes === String) - object.criteriaUid = ""; + object.nodeId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.nodeId = options.longs === String ? '0' : 0; + if (options.bytes === String) object.criteriaUid = ''; else { object.criteriaUid = []; - if (options.bytes !== Array) - object.criteriaUid = $util.newBuffer(object.criteriaUid); + if (options.bytes !== Array) object.criteriaUid = $util.newBuffer(object.criteriaUid); } - object.criteriaName = ""; + object.criteriaName = ''; object.criteria = null; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.lastModified = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.lastModified = options.longs === String ? "0" : 0; - if (options.bytes === String) - object.nodeEncryptedData = ""; + object.lastModified = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.lastModified = options.longs === String ? '0' : 0; + if (options.bytes === String) object.nodeEncryptedData = ''; else { object.nodeEncryptedData = []; - if (options.bytes !== Array) - object.nodeEncryptedData = $util.newBuffer(object.nodeEncryptedData); + if (options.bytes !== Array) object.nodeEncryptedData = $util.newBuffer(object.nodeEncryptedData); } } - if (message.nodeId != null && message.hasOwnProperty("nodeId")) - if (typeof message.nodeId === "number") + if (message.nodeId != null && message.hasOwnProperty('nodeId')) + if (typeof message.nodeId === 'number') object.nodeId = options.longs === String ? String(message.nodeId) : message.nodeId; else - object.nodeId = options.longs === String ? $util.Long.prototype.toString.call(message.nodeId) : options.longs === Number ? new $util.LongBits(message.nodeId.low >>> 0, message.nodeId.high >>> 0).toNumber() : message.nodeId; - if (message.criteriaUid != null && message.hasOwnProperty("criteriaUid")) - object.criteriaUid = options.bytes === String ? $util.base64.encode(message.criteriaUid, 0, message.criteriaUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.criteriaUid) : message.criteriaUid; - if (message.criteriaName != null && message.hasOwnProperty("criteriaName")) + object.nodeId = + options.longs === String + ? $util.Long.prototype.toString.call(message.nodeId) + : options.longs === Number + ? new $util.LongBits(message.nodeId.low >>> 0, message.nodeId.high >>> 0).toNumber() + : message.nodeId; + if (message.criteriaUid != null && message.hasOwnProperty('criteriaUid')) + object.criteriaUid = + options.bytes === String + ? $util.base64.encode(message.criteriaUid, 0, message.criteriaUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.criteriaUid) + : message.criteriaUid; + if (message.criteriaName != null && message.hasOwnProperty('criteriaName')) object.criteriaName = message.criteriaName; - if (message.criteria != null && message.hasOwnProperty("criteria")) + if (message.criteria != null && message.hasOwnProperty('criteria')) object.criteria = $root.Enterprise.ComplianceReportCriteria.toObject(message.criteria, options); if (message.filters && message.filters.length) { object.filters = []; for (let j = 0; j < message.filters.length; ++j) object.filters[j] = $root.Enterprise.ComplianceReportFilter.toObject(message.filters[j], options); } - if (message.lastModified != null && message.hasOwnProperty("lastModified")) - if (typeof message.lastModified === "number") - object.lastModified = options.longs === String ? String(message.lastModified) : message.lastModified; + if (message.lastModified != null && message.hasOwnProperty('lastModified')) + 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; - if (message.nodeEncryptedData != null && message.hasOwnProperty("nodeEncryptedData")) - object.nodeEncryptedData = options.bytes === String ? $util.base64.encode(message.nodeEncryptedData, 0, message.nodeEncryptedData.length) : options.bytes === Array ? Array.prototype.slice.call(message.nodeEncryptedData) : message.nodeEncryptedData; + 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; + if (message.nodeEncryptedData != null && message.hasOwnProperty('nodeEncryptedData')) + object.nodeEncryptedData = + options.bytes === String + ? $util.base64.encode(message.nodeEncryptedData, 0, message.nodeEncryptedData.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.nodeEncryptedData) + : message.nodeEncryptedData; return object; }; @@ -85106,16 +87923,15 @@ export const Enterprise = $root.Enterprise = (() => { */ ComplianceReportCriteriaAndFilter.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.ComplianceReportCriteriaAndFilter"; + return typeUrlPrefix + '/Enterprise.ComplianceReportCriteriaAndFilter'; }; return ComplianceReportCriteriaAndFilter; })(); - Enterprise.ComplianceReportCriteria = (function() { - + Enterprise.ComplianceReportCriteria = (function () { /** * Properties of a ComplianceReportCriteria. * @memberof Enterprise @@ -85138,8 +87954,7 @@ export const Enterprise = $root.Enterprise = (() => { this.enterpriseUserIds = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -85188,19 +88003,17 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ ComplianceReportCriteria.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.jobTitles != null && message.jobTitles.length) for (let i = 0; i < message.jobTitles.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.jobTitles[i]); + writer.uint32(/* id 1, wireType 2 =*/ 10).string(message.jobTitles[i]); if (message.enterpriseUserIds != null && message.enterpriseUserIds.length) { - writer.uint32(/* id 2, wireType 2 =*/18).fork(); - for (let i = 0; i < message.enterpriseUserIds.length; ++i) - writer.int64(message.enterpriseUserIds[i]); + writer.uint32(/* id 2, wireType 2 =*/ 18).fork(); + for (let i = 0; i < message.enterpriseUserIds.length; ++i) writer.int64(message.enterpriseUserIds[i]); writer.ldelim(); } - if (message.includeNonShared != null && Object.hasOwnProperty.call(message, "includeNonShared")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.includeNonShared); + if (message.includeNonShared != null && Object.hasOwnProperty.call(message, 'includeNonShared')) + writer.uint32(/* id 3, wireType 0 =*/ 24).bool(message.includeNonShared); return writer; }; @@ -85229,36 +88042,33 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ComplianceReportCriteria.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.ComplianceReportCriteria(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.ComplianceReportCriteria(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (!(message.jobTitles && message.jobTitles.length)) - message.jobTitles = []; + case 1: { + if (!(message.jobTitles && message.jobTitles.length)) message.jobTitles = []; message.jobTitles.push(reader.string()); break; } - case 2: { + case 2: { if (!(message.enterpriseUserIds && message.enterpriseUserIds.length)) message.enterpriseUserIds = []; if ((tag & 7) === 2) { let end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.enterpriseUserIds.push(reader.int64()); - } else - message.enterpriseUserIds.push(reader.int64()); + while (reader.pos < end2) message.enterpriseUserIds.push(reader.int64()); + } else message.enterpriseUserIds.push(reader.int64()); break; } - case 3: { + case 3: { message.includeNonShared = reader.bool(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -85275,8 +88085,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ComplianceReportCriteria.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -85289,25 +88098,27 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ ComplianceReportCriteria.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.jobTitles != null && message.hasOwnProperty("jobTitles")) { - if (!Array.isArray(message.jobTitles)) - return "jobTitles: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.jobTitles != null && message.hasOwnProperty('jobTitles')) { + if (!Array.isArray(message.jobTitles)) return 'jobTitles: array expected'; for (let i = 0; i < message.jobTitles.length; ++i) - if (!$util.isString(message.jobTitles[i])) - return "jobTitles: string[] expected"; + if (!$util.isString(message.jobTitles[i])) return 'jobTitles: string[] expected'; } - if (message.enterpriseUserIds != null && message.hasOwnProperty("enterpriseUserIds")) { - if (!Array.isArray(message.enterpriseUserIds)) - return "enterpriseUserIds: array expected"; + if (message.enterpriseUserIds != null && message.hasOwnProperty('enterpriseUserIds')) { + if (!Array.isArray(message.enterpriseUserIds)) return 'enterpriseUserIds: array expected'; for (let i = 0; i < message.enterpriseUserIds.length; ++i) - if (!$util.isInteger(message.enterpriseUserIds[i]) && !(message.enterpriseUserIds[i] && $util.isInteger(message.enterpriseUserIds[i].low) && $util.isInteger(message.enterpriseUserIds[i].high))) - return "enterpriseUserIds: integer|Long[] expected"; + if ( + !$util.isInteger(message.enterpriseUserIds[i]) && + !( + message.enterpriseUserIds[i] && + $util.isInteger(message.enterpriseUserIds[i].low) && + $util.isInteger(message.enterpriseUserIds[i].high) + ) + ) + return 'enterpriseUserIds: integer|Long[] expected'; } - if (message.includeNonShared != null && message.hasOwnProperty("includeNonShared")) - if (typeof message.includeNonShared !== "boolean") - return "includeNonShared: boolean expected"; + if (message.includeNonShared != null && message.hasOwnProperty('includeNonShared')) + if (typeof message.includeNonShared !== 'boolean') return 'includeNonShared: boolean expected'; return null; }; @@ -85320,32 +88131,33 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.ComplianceReportCriteria} ComplianceReportCriteria */ ComplianceReportCriteria.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.ComplianceReportCriteria) - return object; + if (object instanceof $root.Enterprise.ComplianceReportCriteria) return object; let message = new $root.Enterprise.ComplianceReportCriteria(); if (object.jobTitles) { if (!Array.isArray(object.jobTitles)) - throw TypeError(".Enterprise.ComplianceReportCriteria.jobTitles: array expected"); + throw TypeError('.Enterprise.ComplianceReportCriteria.jobTitles: array expected'); message.jobTitles = []; - for (let i = 0; i < object.jobTitles.length; ++i) - message.jobTitles[i] = String(object.jobTitles[i]); + for (let i = 0; i < object.jobTitles.length; ++i) message.jobTitles[i] = String(object.jobTitles[i]); } if (object.enterpriseUserIds) { if (!Array.isArray(object.enterpriseUserIds)) - throw TypeError(".Enterprise.ComplianceReportCriteria.enterpriseUserIds: array expected"); + throw TypeError('.Enterprise.ComplianceReportCriteria.enterpriseUserIds: array expected'); message.enterpriseUserIds = []; for (let i = 0; i < object.enterpriseUserIds.length; ++i) if ($util.Long) - (message.enterpriseUserIds[i] = $util.Long.fromValue(object.enterpriseUserIds[i])).unsigned = false; - else if (typeof object.enterpriseUserIds[i] === "string") + (message.enterpriseUserIds[i] = $util.Long.fromValue(object.enterpriseUserIds[i])).unsigned = + false; + else if (typeof object.enterpriseUserIds[i] === 'string') message.enterpriseUserIds[i] = parseInt(object.enterpriseUserIds[i], 10); - else if (typeof object.enterpriseUserIds[i] === "number") + else if (typeof object.enterpriseUserIds[i] === 'number') message.enterpriseUserIds[i] = object.enterpriseUserIds[i]; - else if (typeof object.enterpriseUserIds[i] === "object") - message.enterpriseUserIds[i] = new $util.LongBits(object.enterpriseUserIds[i].low >>> 0, object.enterpriseUserIds[i].high >>> 0).toNumber(); + else if (typeof object.enterpriseUserIds[i] === 'object') + message.enterpriseUserIds[i] = new $util.LongBits( + object.enterpriseUserIds[i].low >>> 0, + object.enterpriseUserIds[i].high >>> 0 + ).toNumber(); } - if (object.includeNonShared != null) - message.includeNonShared = Boolean(object.includeNonShared); + if (object.includeNonShared != null) message.includeNonShared = Boolean(object.includeNonShared); return message; }; @@ -85359,29 +88171,37 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ ComplianceReportCriteria.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.arrays || options.defaults) { object.jobTitles = []; object.enterpriseUserIds = []; } - if (options.defaults) - object.includeNonShared = false; + if (options.defaults) object.includeNonShared = false; if (message.jobTitles && message.jobTitles.length) { object.jobTitles = []; - for (let j = 0; j < message.jobTitles.length; ++j) - object.jobTitles[j] = message.jobTitles[j]; + for (let j = 0; j < message.jobTitles.length; ++j) object.jobTitles[j] = message.jobTitles[j]; } if (message.enterpriseUserIds && message.enterpriseUserIds.length) { object.enterpriseUserIds = []; for (let j = 0; j < message.enterpriseUserIds.length; ++j) - if (typeof message.enterpriseUserIds[j] === "number") - object.enterpriseUserIds[j] = options.longs === String ? String(message.enterpriseUserIds[j]) : message.enterpriseUserIds[j]; + if (typeof message.enterpriseUserIds[j] === 'number') + object.enterpriseUserIds[j] = + options.longs === String + ? String(message.enterpriseUserIds[j]) + : message.enterpriseUserIds[j]; else - object.enterpriseUserIds[j] = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseUserIds[j]) : options.longs === Number ? new $util.LongBits(message.enterpriseUserIds[j].low >>> 0, message.enterpriseUserIds[j].high >>> 0).toNumber() : message.enterpriseUserIds[j]; - } - if (message.includeNonShared != null && message.hasOwnProperty("includeNonShared")) + object.enterpriseUserIds[j] = + options.longs === String + ? $util.Long.prototype.toString.call(message.enterpriseUserIds[j]) + : options.longs === Number + ? new $util.LongBits( + message.enterpriseUserIds[j].low >>> 0, + message.enterpriseUserIds[j].high >>> 0 + ).toNumber() + : message.enterpriseUserIds[j]; + } + if (message.includeNonShared != null && message.hasOwnProperty('includeNonShared')) object.includeNonShared = message.includeNonShared; return object; }; @@ -85407,16 +88227,15 @@ export const Enterprise = $root.Enterprise = (() => { */ ComplianceReportCriteria.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.ComplianceReportCriteria"; + return typeUrlPrefix + '/Enterprise.ComplianceReportCriteria'; }; return ComplianceReportCriteria; })(); - Enterprise.ComplianceReportFilter = (function() { - + Enterprise.ComplianceReportFilter = (function () { /** * Properties of a ComplianceReportFilter. * @memberof Enterprise @@ -85444,8 +88263,7 @@ export const Enterprise = $root.Enterprise = (() => { this.recordTypes = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -85510,23 +88328,22 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ ComplianceReportFilter.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.recordTitles != null && message.recordTitles.length) for (let i = 0; i < message.recordTitles.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.recordTitles[i]); + writer.uint32(/* id 1, wireType 2 =*/ 10).string(message.recordTitles[i]); if (message.recordUids != null && message.recordUids.length) for (let i = 0; i < message.recordUids.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.recordUids[i]); + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.recordUids[i]); if (message.jobTitles != null && message.jobTitles.length) for (let i = 0; i < message.jobTitles.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.jobTitles[i]); + writer.uint32(/* id 3, wireType 2 =*/ 26).string(message.jobTitles[i]); if (message.urls != null && message.urls.length) for (let i = 0; i < message.urls.length; ++i) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.urls[i]); + writer.uint32(/* id 4, wireType 2 =*/ 34).string(message.urls[i]); if (message.recordTypes != null && message.recordTypes.length) for (let i = 0; i < message.recordTypes.length; ++i) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.recordTypes[i]); + writer.uint32(/* id 5, wireType 2 =*/ 42).string(message.recordTypes[i]); return writer; }; @@ -85555,45 +88372,40 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ComplianceReportFilter.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.ComplianceReportFilter(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.ComplianceReportFilter(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (!(message.recordTitles && message.recordTitles.length)) - message.recordTitles = []; + case 1: { + if (!(message.recordTitles && message.recordTitles.length)) message.recordTitles = []; message.recordTitles.push(reader.string()); break; } - case 2: { - if (!(message.recordUids && message.recordUids.length)) - message.recordUids = []; + case 2: { + if (!(message.recordUids && message.recordUids.length)) message.recordUids = []; message.recordUids.push(reader.bytes()); break; } - case 3: { - if (!(message.jobTitles && message.jobTitles.length)) - message.jobTitles = []; + case 3: { + if (!(message.jobTitles && message.jobTitles.length)) message.jobTitles = []; message.jobTitles.push(reader.string()); break; } - case 4: { - if (!(message.urls && message.urls.length)) - message.urls = []; + case 4: { + if (!(message.urls && message.urls.length)) message.urls = []; message.urls.push(reader.string()); break; } - case 5: { - if (!(message.recordTypes && message.recordTypes.length)) - message.recordTypes = []; + case 5: { + if (!(message.recordTypes && message.recordTypes.length)) message.recordTypes = []; message.recordTypes.push(reader.string()); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -85610,8 +88422,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ComplianceReportFilter.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -85624,42 +88435,37 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ ComplianceReportFilter.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.recordTitles != null && message.hasOwnProperty("recordTitles")) { - if (!Array.isArray(message.recordTitles)) - return "recordTitles: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.recordTitles != null && message.hasOwnProperty('recordTitles')) { + if (!Array.isArray(message.recordTitles)) return 'recordTitles: array expected'; for (let i = 0; i < message.recordTitles.length; ++i) - if (!$util.isString(message.recordTitles[i])) - return "recordTitles: string[] expected"; + if (!$util.isString(message.recordTitles[i])) return 'recordTitles: string[] expected'; } - if (message.recordUids != null && message.hasOwnProperty("recordUids")) { - if (!Array.isArray(message.recordUids)) - return "recordUids: array expected"; + if (message.recordUids != null && message.hasOwnProperty('recordUids')) { + if (!Array.isArray(message.recordUids)) return 'recordUids: array expected'; for (let i = 0; i < message.recordUids.length; ++i) - if (!(message.recordUids[i] && typeof message.recordUids[i].length === "number" || $util.isString(message.recordUids[i]))) - return "recordUids: buffer[] expected"; - } - if (message.jobTitles != null && message.hasOwnProperty("jobTitles")) { - if (!Array.isArray(message.jobTitles)) - return "jobTitles: array expected"; + if ( + !( + (message.recordUids[i] && typeof message.recordUids[i].length === 'number') || + $util.isString(message.recordUids[i]) + ) + ) + return 'recordUids: buffer[] expected'; + } + if (message.jobTitles != null && message.hasOwnProperty('jobTitles')) { + if (!Array.isArray(message.jobTitles)) return 'jobTitles: array expected'; for (let i = 0; i < message.jobTitles.length; ++i) - if (!$util.isString(message.jobTitles[i])) - return "jobTitles: string[] expected"; + if (!$util.isString(message.jobTitles[i])) return 'jobTitles: string[] expected'; } - if (message.urls != null && message.hasOwnProperty("urls")) { - if (!Array.isArray(message.urls)) - return "urls: array expected"; + if (message.urls != null && message.hasOwnProperty('urls')) { + if (!Array.isArray(message.urls)) return 'urls: array expected'; for (let i = 0; i < message.urls.length; ++i) - if (!$util.isString(message.urls[i])) - return "urls: string[] expected"; + if (!$util.isString(message.urls[i])) return 'urls: string[] expected'; } - if (message.recordTypes != null && message.hasOwnProperty("recordTypes")) { - if (!Array.isArray(message.recordTypes)) - return "recordTypes: array expected"; + if (message.recordTypes != null && message.hasOwnProperty('recordTypes')) { + if (!Array.isArray(message.recordTypes)) return 'recordTypes: array expected'; for (let i = 0; i < message.recordTypes.length; ++i) - if (!$util.isString(message.recordTypes[i])) - return "recordTypes: string[] expected"; + if (!$util.isString(message.recordTypes[i])) return 'recordTypes: string[] expected'; } return null; }; @@ -85673,43 +88479,43 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.ComplianceReportFilter} ComplianceReportFilter */ ComplianceReportFilter.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.ComplianceReportFilter) - return object; + if (object instanceof $root.Enterprise.ComplianceReportFilter) return object; let message = new $root.Enterprise.ComplianceReportFilter(); if (object.recordTitles) { if (!Array.isArray(object.recordTitles)) - throw TypeError(".Enterprise.ComplianceReportFilter.recordTitles: array expected"); + throw TypeError('.Enterprise.ComplianceReportFilter.recordTitles: array expected'); message.recordTitles = []; for (let i = 0; i < object.recordTitles.length; ++i) message.recordTitles[i] = String(object.recordTitles[i]); } if (object.recordUids) { if (!Array.isArray(object.recordUids)) - throw TypeError(".Enterprise.ComplianceReportFilter.recordUids: array expected"); + throw TypeError('.Enterprise.ComplianceReportFilter.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 (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.jobTitles) { if (!Array.isArray(object.jobTitles)) - throw TypeError(".Enterprise.ComplianceReportFilter.jobTitles: array expected"); + throw TypeError('.Enterprise.ComplianceReportFilter.jobTitles: array expected'); message.jobTitles = []; - for (let i = 0; i < object.jobTitles.length; ++i) - message.jobTitles[i] = String(object.jobTitles[i]); + for (let i = 0; i < object.jobTitles.length; ++i) message.jobTitles[i] = String(object.jobTitles[i]); } if (object.urls) { if (!Array.isArray(object.urls)) - throw TypeError(".Enterprise.ComplianceReportFilter.urls: array expected"); + throw TypeError('.Enterprise.ComplianceReportFilter.urls: array expected'); message.urls = []; - for (let i = 0; i < object.urls.length; ++i) - message.urls[i] = String(object.urls[i]); + for (let i = 0; i < object.urls.length; ++i) message.urls[i] = String(object.urls[i]); } if (object.recordTypes) { if (!Array.isArray(object.recordTypes)) - throw TypeError(".Enterprise.ComplianceReportFilter.recordTypes: array expected"); + throw TypeError('.Enterprise.ComplianceReportFilter.recordTypes: array expected'); message.recordTypes = []; for (let i = 0; i < object.recordTypes.length; ++i) message.recordTypes[i] = String(object.recordTypes[i]); @@ -85727,8 +88533,7 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ ComplianceReportFilter.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.arrays || options.defaults) { object.recordTitles = []; @@ -85739,28 +88544,29 @@ export const Enterprise = $root.Enterprise = (() => { } if (message.recordTitles && message.recordTitles.length) { object.recordTitles = []; - for (let j = 0; j < message.recordTitles.length; ++j) - object.recordTitles[j] = message.recordTitles[j]; + for (let j = 0; j < message.recordTitles.length; ++j) object.recordTitles[j] = message.recordTitles[j]; } 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]; + 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]; } if (message.jobTitles && message.jobTitles.length) { object.jobTitles = []; - for (let j = 0; j < message.jobTitles.length; ++j) - object.jobTitles[j] = message.jobTitles[j]; + for (let j = 0; j < message.jobTitles.length; ++j) object.jobTitles[j] = message.jobTitles[j]; } if (message.urls && message.urls.length) { object.urls = []; - for (let j = 0; j < message.urls.length; ++j) - object.urls[j] = message.urls[j]; + for (let j = 0; j < message.urls.length; ++j) object.urls[j] = message.urls[j]; } if (message.recordTypes && message.recordTypes.length) { object.recordTypes = []; - for (let j = 0; j < message.recordTypes.length; ++j) - object.recordTypes[j] = message.recordTypes[j]; + for (let j = 0; j < message.recordTypes.length; ++j) object.recordTypes[j] = message.recordTypes[j]; } return object; }; @@ -85786,16 +88592,15 @@ export const Enterprise = $root.Enterprise = (() => { */ ComplianceReportFilter.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.ComplianceReportFilter"; + return typeUrlPrefix + '/Enterprise.ComplianceReportFilter'; }; return ComplianceReportFilter; })(); - Enterprise.ComplianceReportResponse = (function() { - + Enterprise.ComplianceReportResponse = (function () { /** * Properties of a ComplianceReportResponse. * @memberof Enterprise @@ -85838,8 +88643,7 @@ export const Enterprise = $root.Enterprise = (() => { this.linkedRecords = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -85848,7 +88652,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.ComplianceReportResponse * @instance */ - ComplianceReportResponse.prototype.dateGenerated = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + ComplianceReportResponse.prototype.dateGenerated = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * ComplianceReportResponse runByUserName. @@ -85856,7 +88660,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.ComplianceReportResponse * @instance */ - ComplianceReportResponse.prototype.runByUserName = ""; + ComplianceReportResponse.prototype.runByUserName = ''; /** * ComplianceReportResponse reportName. @@ -85864,7 +88668,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.ComplianceReportResponse * @instance */ - ComplianceReportResponse.prototype.reportName = ""; + ComplianceReportResponse.prototype.reportName = ''; /** * ComplianceReportResponse reportUid. @@ -85984,48 +88788,80 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ ComplianceReportResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.dateGenerated != null && Object.hasOwnProperty.call(message, "dateGenerated")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.dateGenerated); - if (message.runByUserName != null && Object.hasOwnProperty.call(message, "runByUserName")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.runByUserName); - if (message.reportName != null && Object.hasOwnProperty.call(message, "reportName")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.reportName); - if (message.reportUid != null && Object.hasOwnProperty.call(message, "reportUid")) - writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.reportUid); - if (message.complianceReportRun != null && Object.hasOwnProperty.call(message, "complianceReportRun")) - $root.Enterprise.ComplianceReportRun.encode(message.complianceReportRun, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (!writer) writer = $Writer.create(); + if (message.dateGenerated != null && Object.hasOwnProperty.call(message, 'dateGenerated')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int64(message.dateGenerated); + if (message.runByUserName != null && Object.hasOwnProperty.call(message, 'runByUserName')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.runByUserName); + if (message.reportName != null && Object.hasOwnProperty.call(message, 'reportName')) + writer.uint32(/* id 3, wireType 2 =*/ 26).string(message.reportName); + if (message.reportUid != null && Object.hasOwnProperty.call(message, 'reportUid')) + writer.uint32(/* id 4, wireType 2 =*/ 34).bytes(message.reportUid); + if (message.complianceReportRun != null && Object.hasOwnProperty.call(message, 'complianceReportRun')) + $root.Enterprise.ComplianceReportRun.encode( + message.complianceReportRun, + writer.uint32(/* id 5, wireType 2 =*/ 42).fork() + ).ldelim(); if (message.userProfiles != null && message.userProfiles.length) for (let i = 0; i < message.userProfiles.length; ++i) - $root.Enterprise.UserProfile.encode(message.userProfiles[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + $root.Enterprise.UserProfile.encode( + message.userProfiles[i], + writer.uint32(/* id 6, wireType 2 =*/ 50).fork() + ).ldelim(); if (message.auditTeams != null && message.auditTeams.length) for (let i = 0; i < message.auditTeams.length; ++i) - $root.Enterprise.AuditTeam.encode(message.auditTeams[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + $root.Enterprise.AuditTeam.encode( + message.auditTeams[i], + writer.uint32(/* id 7, wireType 2 =*/ 58).fork() + ).ldelim(); if (message.auditRecords != null && message.auditRecords.length) for (let i = 0; i < message.auditRecords.length; ++i) - $root.Enterprise.AuditRecord.encode(message.auditRecords[i], writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + $root.Enterprise.AuditRecord.encode( + message.auditRecords[i], + writer.uint32(/* id 8, wireType 2 =*/ 66).fork() + ).ldelim(); if (message.userRecords != null && message.userRecords.length) for (let i = 0; i < message.userRecords.length; ++i) - $root.Enterprise.UserRecord.encode(message.userRecords[i], writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + $root.Enterprise.UserRecord.encode( + message.userRecords[i], + writer.uint32(/* id 9, wireType 2 =*/ 74).fork() + ).ldelim(); if (message.sharedFolderRecords != null && message.sharedFolderRecords.length) for (let i = 0; i < message.sharedFolderRecords.length; ++i) - $root.Enterprise.SharedFolderRecord.encode(message.sharedFolderRecords[i], writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + $root.Enterprise.SharedFolderRecord.encode( + message.sharedFolderRecords[i], + writer.uint32(/* id 10, wireType 2 =*/ 82).fork() + ).ldelim(); if (message.sharedFolderUsers != null && message.sharedFolderUsers.length) for (let i = 0; i < message.sharedFolderUsers.length; ++i) - $root.Enterprise.SharedFolderUser.encode(message.sharedFolderUsers[i], writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); + $root.Enterprise.SharedFolderUser.encode( + message.sharedFolderUsers[i], + writer.uint32(/* id 11, wireType 2 =*/ 90).fork() + ).ldelim(); if (message.sharedFolderTeams != null && message.sharedFolderTeams.length) for (let i = 0; i < message.sharedFolderTeams.length; ++i) - $root.Enterprise.SharedFolderTeam.encode(message.sharedFolderTeams[i], writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); + $root.Enterprise.SharedFolderTeam.encode( + message.sharedFolderTeams[i], + writer.uint32(/* id 12, wireType 2 =*/ 98).fork() + ).ldelim(); if (message.auditTeamUsers != null && message.auditTeamUsers.length) for (let i = 0; i < message.auditTeamUsers.length; ++i) - $root.Enterprise.AuditTeamUser.encode(message.auditTeamUsers[i], writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); + $root.Enterprise.AuditTeamUser.encode( + message.auditTeamUsers[i], + writer.uint32(/* id 13, wireType 2 =*/ 106).fork() + ).ldelim(); if (message.auditRoles != null && message.auditRoles.length) for (let i = 0; i < message.auditRoles.length; ++i) - $root.Enterprise.AuditRole.encode(message.auditRoles[i], writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim(); + $root.Enterprise.AuditRole.encode( + message.auditRoles[i], + writer.uint32(/* id 14, wireType 2 =*/ 114).fork() + ).ldelim(); if (message.linkedRecords != null && message.linkedRecords.length) for (let i = 0; i < message.linkedRecords.length; ++i) - $root.Enterprise.LinkedRecord.encode(message.linkedRecords[i], writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim(); + $root.Enterprise.LinkedRecord.encode( + message.linkedRecords[i], + writer.uint32(/* id 15, wireType 2 =*/ 122).fork() + ).ldelim(); return writer; }; @@ -86054,95 +88890,97 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ComplianceReportResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.ComplianceReportResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.ComplianceReportResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.dateGenerated = reader.int64(); break; } - case 2: { + case 2: { message.runByUserName = reader.string(); break; } - case 3: { + case 3: { message.reportName = reader.string(); break; } - case 4: { + case 4: { message.reportUid = reader.bytes(); break; } - case 5: { - message.complianceReportRun = $root.Enterprise.ComplianceReportRun.decode(reader, reader.uint32()); + case 5: { + message.complianceReportRun = $root.Enterprise.ComplianceReportRun.decode( + reader, + reader.uint32() + ); break; } - case 6: { - if (!(message.userProfiles && message.userProfiles.length)) - message.userProfiles = []; + case 6: { + if (!(message.userProfiles && message.userProfiles.length)) message.userProfiles = []; message.userProfiles.push($root.Enterprise.UserProfile.decode(reader, reader.uint32())); break; } - case 7: { - if (!(message.auditTeams && message.auditTeams.length)) - message.auditTeams = []; + case 7: { + if (!(message.auditTeams && message.auditTeams.length)) message.auditTeams = []; message.auditTeams.push($root.Enterprise.AuditTeam.decode(reader, reader.uint32())); break; } - case 8: { - if (!(message.auditRecords && message.auditRecords.length)) - message.auditRecords = []; + case 8: { + if (!(message.auditRecords && message.auditRecords.length)) message.auditRecords = []; message.auditRecords.push($root.Enterprise.AuditRecord.decode(reader, reader.uint32())); break; } - case 9: { - if (!(message.userRecords && message.userRecords.length)) - message.userRecords = []; + case 9: { + if (!(message.userRecords && message.userRecords.length)) message.userRecords = []; message.userRecords.push($root.Enterprise.UserRecord.decode(reader, reader.uint32())); break; } - case 10: { + case 10: { if (!(message.sharedFolderRecords && message.sharedFolderRecords.length)) message.sharedFolderRecords = []; - message.sharedFolderRecords.push($root.Enterprise.SharedFolderRecord.decode(reader, reader.uint32())); + message.sharedFolderRecords.push( + $root.Enterprise.SharedFolderRecord.decode(reader, reader.uint32()) + ); break; } - case 11: { + case 11: { if (!(message.sharedFolderUsers && message.sharedFolderUsers.length)) message.sharedFolderUsers = []; - message.sharedFolderUsers.push($root.Enterprise.SharedFolderUser.decode(reader, reader.uint32())); + message.sharedFolderUsers.push( + $root.Enterprise.SharedFolderUser.decode(reader, reader.uint32()) + ); break; } - case 12: { + case 12: { if (!(message.sharedFolderTeams && message.sharedFolderTeams.length)) message.sharedFolderTeams = []; - message.sharedFolderTeams.push($root.Enterprise.SharedFolderTeam.decode(reader, reader.uint32())); + message.sharedFolderTeams.push( + $root.Enterprise.SharedFolderTeam.decode(reader, reader.uint32()) + ); break; } - case 13: { - if (!(message.auditTeamUsers && message.auditTeamUsers.length)) - message.auditTeamUsers = []; + case 13: { + if (!(message.auditTeamUsers && message.auditTeamUsers.length)) message.auditTeamUsers = []; message.auditTeamUsers.push($root.Enterprise.AuditTeamUser.decode(reader, reader.uint32())); break; } - case 14: { - if (!(message.auditRoles && message.auditRoles.length)) - message.auditRoles = []; + case 14: { + if (!(message.auditRoles && message.auditRoles.length)) message.auditRoles = []; message.auditRoles.push($root.Enterprise.AuditRole.decode(reader, reader.uint32())); break; } - case 15: { - if (!(message.linkedRecords && message.linkedRecords.length)) - message.linkedRecords = []; + case 15: { + if (!(message.linkedRecords && message.linkedRecords.length)) message.linkedRecords = []; message.linkedRecords.push($root.Enterprise.LinkedRecord.decode(reader, reader.uint32())); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -86159,8 +88997,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ComplianceReportResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -86173,113 +89010,101 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ ComplianceReportResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.dateGenerated != null && message.hasOwnProperty("dateGenerated")) - if (!$util.isInteger(message.dateGenerated) && !(message.dateGenerated && $util.isInteger(message.dateGenerated.low) && $util.isInteger(message.dateGenerated.high))) - return "dateGenerated: integer|Long expected"; - if (message.runByUserName != null && message.hasOwnProperty("runByUserName")) - if (!$util.isString(message.runByUserName)) - return "runByUserName: string expected"; - if (message.reportName != null && message.hasOwnProperty("reportName")) - if (!$util.isString(message.reportName)) - return "reportName: string expected"; - if (message.reportUid != null && message.hasOwnProperty("reportUid")) - if (!(message.reportUid && typeof message.reportUid.length === "number" || $util.isString(message.reportUid))) - return "reportUid: buffer expected"; - if (message.complianceReportRun != null && message.hasOwnProperty("complianceReportRun")) { + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.dateGenerated != null && message.hasOwnProperty('dateGenerated')) + if ( + !$util.isInteger(message.dateGenerated) && + !( + message.dateGenerated && + $util.isInteger(message.dateGenerated.low) && + $util.isInteger(message.dateGenerated.high) + ) + ) + return 'dateGenerated: integer|Long expected'; + if (message.runByUserName != null && message.hasOwnProperty('runByUserName')) + if (!$util.isString(message.runByUserName)) return 'runByUserName: string expected'; + if (message.reportName != null && message.hasOwnProperty('reportName')) + if (!$util.isString(message.reportName)) return 'reportName: string expected'; + if (message.reportUid != null && message.hasOwnProperty('reportUid')) + if ( + !( + (message.reportUid && typeof message.reportUid.length === 'number') || + $util.isString(message.reportUid) + ) + ) + return 'reportUid: buffer expected'; + if (message.complianceReportRun != null && message.hasOwnProperty('complianceReportRun')) { let error = $root.Enterprise.ComplianceReportRun.verify(message.complianceReportRun); - if (error) - return "complianceReportRun." + error; + if (error) return 'complianceReportRun.' + error; } - if (message.userProfiles != null && message.hasOwnProperty("userProfiles")) { - if (!Array.isArray(message.userProfiles)) - return "userProfiles: array expected"; + if (message.userProfiles != null && message.hasOwnProperty('userProfiles')) { + if (!Array.isArray(message.userProfiles)) return 'userProfiles: array expected'; for (let i = 0; i < message.userProfiles.length; ++i) { let error = $root.Enterprise.UserProfile.verify(message.userProfiles[i]); - if (error) - return "userProfiles." + error; + if (error) return 'userProfiles.' + error; } } - if (message.auditTeams != null && message.hasOwnProperty("auditTeams")) { - if (!Array.isArray(message.auditTeams)) - return "auditTeams: array expected"; + if (message.auditTeams != null && message.hasOwnProperty('auditTeams')) { + if (!Array.isArray(message.auditTeams)) return 'auditTeams: array expected'; for (let i = 0; i < message.auditTeams.length; ++i) { let error = $root.Enterprise.AuditTeam.verify(message.auditTeams[i]); - if (error) - return "auditTeams." + error; + if (error) return 'auditTeams.' + error; } } - if (message.auditRecords != null && message.hasOwnProperty("auditRecords")) { - if (!Array.isArray(message.auditRecords)) - return "auditRecords: array expected"; + if (message.auditRecords != null && message.hasOwnProperty('auditRecords')) { + if (!Array.isArray(message.auditRecords)) return 'auditRecords: array expected'; for (let i = 0; i < message.auditRecords.length; ++i) { let error = $root.Enterprise.AuditRecord.verify(message.auditRecords[i]); - if (error) - return "auditRecords." + error; + if (error) return 'auditRecords.' + error; } } - if (message.userRecords != null && message.hasOwnProperty("userRecords")) { - if (!Array.isArray(message.userRecords)) - return "userRecords: array expected"; + if (message.userRecords != null && message.hasOwnProperty('userRecords')) { + if (!Array.isArray(message.userRecords)) return 'userRecords: array expected'; for (let i = 0; i < message.userRecords.length; ++i) { let error = $root.Enterprise.UserRecord.verify(message.userRecords[i]); - if (error) - return "userRecords." + error; + if (error) return 'userRecords.' + error; } } - if (message.sharedFolderRecords != null && message.hasOwnProperty("sharedFolderRecords")) { - if (!Array.isArray(message.sharedFolderRecords)) - return "sharedFolderRecords: array expected"; + if (message.sharedFolderRecords != null && message.hasOwnProperty('sharedFolderRecords')) { + if (!Array.isArray(message.sharedFolderRecords)) return 'sharedFolderRecords: array expected'; for (let i = 0; i < message.sharedFolderRecords.length; ++i) { let error = $root.Enterprise.SharedFolderRecord.verify(message.sharedFolderRecords[i]); - if (error) - return "sharedFolderRecords." + error; + if (error) return 'sharedFolderRecords.' + error; } } - if (message.sharedFolderUsers != null && message.hasOwnProperty("sharedFolderUsers")) { - if (!Array.isArray(message.sharedFolderUsers)) - return "sharedFolderUsers: array expected"; + if (message.sharedFolderUsers != null && message.hasOwnProperty('sharedFolderUsers')) { + if (!Array.isArray(message.sharedFolderUsers)) return 'sharedFolderUsers: array expected'; for (let i = 0; i < message.sharedFolderUsers.length; ++i) { let error = $root.Enterprise.SharedFolderUser.verify(message.sharedFolderUsers[i]); - if (error) - return "sharedFolderUsers." + error; + if (error) return 'sharedFolderUsers.' + error; } } - if (message.sharedFolderTeams != null && message.hasOwnProperty("sharedFolderTeams")) { - if (!Array.isArray(message.sharedFolderTeams)) - return "sharedFolderTeams: array expected"; + if (message.sharedFolderTeams != null && message.hasOwnProperty('sharedFolderTeams')) { + if (!Array.isArray(message.sharedFolderTeams)) return 'sharedFolderTeams: array expected'; for (let i = 0; i < message.sharedFolderTeams.length; ++i) { let error = $root.Enterprise.SharedFolderTeam.verify(message.sharedFolderTeams[i]); - if (error) - return "sharedFolderTeams." + error; + if (error) return 'sharedFolderTeams.' + error; } } - if (message.auditTeamUsers != null && message.hasOwnProperty("auditTeamUsers")) { - if (!Array.isArray(message.auditTeamUsers)) - return "auditTeamUsers: array expected"; + if (message.auditTeamUsers != null && message.hasOwnProperty('auditTeamUsers')) { + if (!Array.isArray(message.auditTeamUsers)) return 'auditTeamUsers: array expected'; for (let i = 0; i < message.auditTeamUsers.length; ++i) { let error = $root.Enterprise.AuditTeamUser.verify(message.auditTeamUsers[i]); - if (error) - return "auditTeamUsers." + error; + if (error) return 'auditTeamUsers.' + error; } } - if (message.auditRoles != null && message.hasOwnProperty("auditRoles")) { - if (!Array.isArray(message.auditRoles)) - return "auditRoles: array expected"; + if (message.auditRoles != null && message.hasOwnProperty('auditRoles')) { + if (!Array.isArray(message.auditRoles)) return 'auditRoles: array expected'; for (let i = 0; i < message.auditRoles.length; ++i) { let error = $root.Enterprise.AuditRole.verify(message.auditRoles[i]); - if (error) - return "auditRoles." + error; + if (error) return 'auditRoles.' + error; } } - if (message.linkedRecords != null && message.hasOwnProperty("linkedRecords")) { - if (!Array.isArray(message.linkedRecords)) - return "linkedRecords: array expected"; + if (message.linkedRecords != null && message.hasOwnProperty('linkedRecords')) { + if (!Array.isArray(message.linkedRecords)) return 'linkedRecords: array expected'; for (let i = 0; i < message.linkedRecords.length; ++i) { let error = $root.Enterprise.LinkedRecord.verify(message.linkedRecords[i]); - if (error) - return "linkedRecords." + error; + if (error) return 'linkedRecords.' + error; } } return null; @@ -86294,129 +89119,138 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.ComplianceReportResponse} ComplianceReportResponse */ ComplianceReportResponse.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.ComplianceReportResponse) - return object; + if (object instanceof $root.Enterprise.ComplianceReportResponse) return object; let message = new $root.Enterprise.ComplianceReportResponse(); if (object.dateGenerated != null) - if ($util.Long) - (message.dateGenerated = $util.Long.fromValue(object.dateGenerated)).unsigned = false; - else if (typeof object.dateGenerated === "string") + if ($util.Long) (message.dateGenerated = $util.Long.fromValue(object.dateGenerated)).unsigned = false; + else if (typeof object.dateGenerated === 'string') message.dateGenerated = parseInt(object.dateGenerated, 10); - else if (typeof object.dateGenerated === "number") - message.dateGenerated = object.dateGenerated; - else if (typeof object.dateGenerated === "object") - message.dateGenerated = new $util.LongBits(object.dateGenerated.low >>> 0, object.dateGenerated.high >>> 0).toNumber(); - if (object.runByUserName != null) - message.runByUserName = String(object.runByUserName); - if (object.reportName != null) - message.reportName = String(object.reportName); + else if (typeof object.dateGenerated === 'number') message.dateGenerated = object.dateGenerated; + else if (typeof object.dateGenerated === 'object') + message.dateGenerated = new $util.LongBits( + object.dateGenerated.low >>> 0, + object.dateGenerated.high >>> 0 + ).toNumber(); + if (object.runByUserName != null) message.runByUserName = String(object.runByUserName); + if (object.reportName != null) message.reportName = String(object.reportName); if (object.reportUid != null) - if (typeof object.reportUid === "string") - $util.base64.decode(object.reportUid, message.reportUid = $util.newBuffer($util.base64.length(object.reportUid)), 0); - else if (object.reportUid.length >= 0) - message.reportUid = object.reportUid; + if (typeof object.reportUid === 'string') + $util.base64.decode( + object.reportUid, + (message.reportUid = $util.newBuffer($util.base64.length(object.reportUid))), + 0 + ); + else if (object.reportUid.length >= 0) message.reportUid = object.reportUid; if (object.complianceReportRun != null) { - if (typeof object.complianceReportRun !== "object") - throw TypeError(".Enterprise.ComplianceReportResponse.complianceReportRun: object expected"); - message.complianceReportRun = $root.Enterprise.ComplianceReportRun.fromObject(object.complianceReportRun); + if (typeof object.complianceReportRun !== 'object') + throw TypeError('.Enterprise.ComplianceReportResponse.complianceReportRun: object expected'); + message.complianceReportRun = $root.Enterprise.ComplianceReportRun.fromObject( + object.complianceReportRun + ); } if (object.userProfiles) { if (!Array.isArray(object.userProfiles)) - throw TypeError(".Enterprise.ComplianceReportResponse.userProfiles: array expected"); + throw TypeError('.Enterprise.ComplianceReportResponse.userProfiles: array expected'); message.userProfiles = []; for (let i = 0; i < object.userProfiles.length; ++i) { - if (typeof object.userProfiles[i] !== "object") - throw TypeError(".Enterprise.ComplianceReportResponse.userProfiles: object expected"); + if (typeof object.userProfiles[i] !== 'object') + throw TypeError('.Enterprise.ComplianceReportResponse.userProfiles: object expected'); message.userProfiles[i] = $root.Enterprise.UserProfile.fromObject(object.userProfiles[i]); } } if (object.auditTeams) { if (!Array.isArray(object.auditTeams)) - throw TypeError(".Enterprise.ComplianceReportResponse.auditTeams: array expected"); + throw TypeError('.Enterprise.ComplianceReportResponse.auditTeams: array expected'); message.auditTeams = []; for (let i = 0; i < object.auditTeams.length; ++i) { - if (typeof object.auditTeams[i] !== "object") - throw TypeError(".Enterprise.ComplianceReportResponse.auditTeams: object expected"); + if (typeof object.auditTeams[i] !== 'object') + throw TypeError('.Enterprise.ComplianceReportResponse.auditTeams: object expected'); message.auditTeams[i] = $root.Enterprise.AuditTeam.fromObject(object.auditTeams[i]); } } if (object.auditRecords) { if (!Array.isArray(object.auditRecords)) - throw TypeError(".Enterprise.ComplianceReportResponse.auditRecords: array expected"); + throw TypeError('.Enterprise.ComplianceReportResponse.auditRecords: array expected'); message.auditRecords = []; for (let i = 0; i < object.auditRecords.length; ++i) { - if (typeof object.auditRecords[i] !== "object") - throw TypeError(".Enterprise.ComplianceReportResponse.auditRecords: object expected"); + if (typeof object.auditRecords[i] !== 'object') + throw TypeError('.Enterprise.ComplianceReportResponse.auditRecords: object expected'); message.auditRecords[i] = $root.Enterprise.AuditRecord.fromObject(object.auditRecords[i]); } } if (object.userRecords) { if (!Array.isArray(object.userRecords)) - throw TypeError(".Enterprise.ComplianceReportResponse.userRecords: array expected"); + throw TypeError('.Enterprise.ComplianceReportResponse.userRecords: array expected'); message.userRecords = []; for (let i = 0; i < object.userRecords.length; ++i) { - if (typeof object.userRecords[i] !== "object") - throw TypeError(".Enterprise.ComplianceReportResponse.userRecords: object expected"); + if (typeof object.userRecords[i] !== 'object') + throw TypeError('.Enterprise.ComplianceReportResponse.userRecords: object expected'); message.userRecords[i] = $root.Enterprise.UserRecord.fromObject(object.userRecords[i]); } } if (object.sharedFolderRecords) { if (!Array.isArray(object.sharedFolderRecords)) - throw TypeError(".Enterprise.ComplianceReportResponse.sharedFolderRecords: array expected"); + throw TypeError('.Enterprise.ComplianceReportResponse.sharedFolderRecords: array expected'); message.sharedFolderRecords = []; for (let i = 0; i < object.sharedFolderRecords.length; ++i) { - if (typeof object.sharedFolderRecords[i] !== "object") - throw TypeError(".Enterprise.ComplianceReportResponse.sharedFolderRecords: object expected"); - message.sharedFolderRecords[i] = $root.Enterprise.SharedFolderRecord.fromObject(object.sharedFolderRecords[i]); + if (typeof object.sharedFolderRecords[i] !== 'object') + throw TypeError('.Enterprise.ComplianceReportResponse.sharedFolderRecords: object expected'); + message.sharedFolderRecords[i] = $root.Enterprise.SharedFolderRecord.fromObject( + object.sharedFolderRecords[i] + ); } } if (object.sharedFolderUsers) { if (!Array.isArray(object.sharedFolderUsers)) - throw TypeError(".Enterprise.ComplianceReportResponse.sharedFolderUsers: array expected"); + throw TypeError('.Enterprise.ComplianceReportResponse.sharedFolderUsers: array expected'); message.sharedFolderUsers = []; for (let i = 0; i < object.sharedFolderUsers.length; ++i) { - if (typeof object.sharedFolderUsers[i] !== "object") - throw TypeError(".Enterprise.ComplianceReportResponse.sharedFolderUsers: object expected"); - message.sharedFolderUsers[i] = $root.Enterprise.SharedFolderUser.fromObject(object.sharedFolderUsers[i]); + if (typeof object.sharedFolderUsers[i] !== 'object') + throw TypeError('.Enterprise.ComplianceReportResponse.sharedFolderUsers: object expected'); + message.sharedFolderUsers[i] = $root.Enterprise.SharedFolderUser.fromObject( + object.sharedFolderUsers[i] + ); } } if (object.sharedFolderTeams) { if (!Array.isArray(object.sharedFolderTeams)) - throw TypeError(".Enterprise.ComplianceReportResponse.sharedFolderTeams: array expected"); + throw TypeError('.Enterprise.ComplianceReportResponse.sharedFolderTeams: array expected'); message.sharedFolderTeams = []; for (let i = 0; i < object.sharedFolderTeams.length; ++i) { - if (typeof object.sharedFolderTeams[i] !== "object") - throw TypeError(".Enterprise.ComplianceReportResponse.sharedFolderTeams: object expected"); - message.sharedFolderTeams[i] = $root.Enterprise.SharedFolderTeam.fromObject(object.sharedFolderTeams[i]); + if (typeof object.sharedFolderTeams[i] !== 'object') + throw TypeError('.Enterprise.ComplianceReportResponse.sharedFolderTeams: object expected'); + message.sharedFolderTeams[i] = $root.Enterprise.SharedFolderTeam.fromObject( + object.sharedFolderTeams[i] + ); } } if (object.auditTeamUsers) { if (!Array.isArray(object.auditTeamUsers)) - throw TypeError(".Enterprise.ComplianceReportResponse.auditTeamUsers: array expected"); + throw TypeError('.Enterprise.ComplianceReportResponse.auditTeamUsers: array expected'); message.auditTeamUsers = []; for (let i = 0; i < object.auditTeamUsers.length; ++i) { - if (typeof object.auditTeamUsers[i] !== "object") - throw TypeError(".Enterprise.ComplianceReportResponse.auditTeamUsers: object expected"); + if (typeof object.auditTeamUsers[i] !== 'object') + throw TypeError('.Enterprise.ComplianceReportResponse.auditTeamUsers: object expected'); message.auditTeamUsers[i] = $root.Enterprise.AuditTeamUser.fromObject(object.auditTeamUsers[i]); } } if (object.auditRoles) { if (!Array.isArray(object.auditRoles)) - throw TypeError(".Enterprise.ComplianceReportResponse.auditRoles: array expected"); + throw TypeError('.Enterprise.ComplianceReportResponse.auditRoles: array expected'); message.auditRoles = []; for (let i = 0; i < object.auditRoles.length; ++i) { - if (typeof object.auditRoles[i] !== "object") - throw TypeError(".Enterprise.ComplianceReportResponse.auditRoles: object expected"); + if (typeof object.auditRoles[i] !== 'object') + throw TypeError('.Enterprise.ComplianceReportResponse.auditRoles: object expected'); message.auditRoles[i] = $root.Enterprise.AuditRole.fromObject(object.auditRoles[i]); } } if (object.linkedRecords) { if (!Array.isArray(object.linkedRecords)) - throw TypeError(".Enterprise.ComplianceReportResponse.linkedRecords: array expected"); + throw TypeError('.Enterprise.ComplianceReportResponse.linkedRecords: array expected'); message.linkedRecords = []; for (let i = 0; i < object.linkedRecords.length; ++i) { - if (typeof object.linkedRecords[i] !== "object") - throw TypeError(".Enterprise.ComplianceReportResponse.linkedRecords: object expected"); + if (typeof object.linkedRecords[i] !== 'object') + throw TypeError('.Enterprise.ComplianceReportResponse.linkedRecords: object expected'); message.linkedRecords[i] = $root.Enterprise.LinkedRecord.fromObject(object.linkedRecords[i]); } } @@ -86433,8 +89267,7 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ ComplianceReportResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.arrays || options.defaults) { object.userProfiles = []; @@ -86451,33 +89284,48 @@ export const Enterprise = $root.Enterprise = (() => { if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.dateGenerated = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.dateGenerated = options.longs === String ? "0" : 0; - object.runByUserName = ""; - object.reportName = ""; - if (options.bytes === String) - object.reportUid = ""; + object.dateGenerated = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.dateGenerated = options.longs === String ? '0' : 0; + object.runByUserName = ''; + object.reportName = ''; + if (options.bytes === String) object.reportUid = ''; else { object.reportUid = []; - if (options.bytes !== Array) - object.reportUid = $util.newBuffer(object.reportUid); + if (options.bytes !== Array) object.reportUid = $util.newBuffer(object.reportUid); } object.complianceReportRun = null; } - if (message.dateGenerated != null && message.hasOwnProperty("dateGenerated")) - if (typeof message.dateGenerated === "number") - object.dateGenerated = options.longs === String ? String(message.dateGenerated) : message.dateGenerated; + if (message.dateGenerated != null && message.hasOwnProperty('dateGenerated')) + if (typeof message.dateGenerated === 'number') + object.dateGenerated = + options.longs === String ? String(message.dateGenerated) : message.dateGenerated; else - object.dateGenerated = options.longs === String ? $util.Long.prototype.toString.call(message.dateGenerated) : options.longs === Number ? new $util.LongBits(message.dateGenerated.low >>> 0, message.dateGenerated.high >>> 0).toNumber() : message.dateGenerated; - if (message.runByUserName != null && message.hasOwnProperty("runByUserName")) + object.dateGenerated = + options.longs === String + ? $util.Long.prototype.toString.call(message.dateGenerated) + : options.longs === Number + ? new $util.LongBits( + message.dateGenerated.low >>> 0, + message.dateGenerated.high >>> 0 + ).toNumber() + : message.dateGenerated; + if (message.runByUserName != null && message.hasOwnProperty('runByUserName')) object.runByUserName = message.runByUserName; - if (message.reportName != null && message.hasOwnProperty("reportName")) + if (message.reportName != null && message.hasOwnProperty('reportName')) object.reportName = message.reportName; - if (message.reportUid != null && message.hasOwnProperty("reportUid")) - object.reportUid = options.bytes === String ? $util.base64.encode(message.reportUid, 0, message.reportUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.reportUid) : message.reportUid; - if (message.complianceReportRun != null && message.hasOwnProperty("complianceReportRun")) - object.complianceReportRun = $root.Enterprise.ComplianceReportRun.toObject(message.complianceReportRun, options); + if (message.reportUid != null && message.hasOwnProperty('reportUid')) + object.reportUid = + options.bytes === String + ? $util.base64.encode(message.reportUid, 0, message.reportUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.reportUid) + : message.reportUid; + if (message.complianceReportRun != null && message.hasOwnProperty('complianceReportRun')) + object.complianceReportRun = $root.Enterprise.ComplianceReportRun.toObject( + message.complianceReportRun, + options + ); if (message.userProfiles && message.userProfiles.length) { object.userProfiles = []; for (let j = 0; j < message.userProfiles.length; ++j) @@ -86501,22 +89349,34 @@ export const Enterprise = $root.Enterprise = (() => { if (message.sharedFolderRecords && message.sharedFolderRecords.length) { object.sharedFolderRecords = []; for (let j = 0; j < message.sharedFolderRecords.length; ++j) - object.sharedFolderRecords[j] = $root.Enterprise.SharedFolderRecord.toObject(message.sharedFolderRecords[j], options); + object.sharedFolderRecords[j] = $root.Enterprise.SharedFolderRecord.toObject( + message.sharedFolderRecords[j], + options + ); } if (message.sharedFolderUsers && message.sharedFolderUsers.length) { object.sharedFolderUsers = []; for (let j = 0; j < message.sharedFolderUsers.length; ++j) - object.sharedFolderUsers[j] = $root.Enterprise.SharedFolderUser.toObject(message.sharedFolderUsers[j], options); + object.sharedFolderUsers[j] = $root.Enterprise.SharedFolderUser.toObject( + message.sharedFolderUsers[j], + options + ); } if (message.sharedFolderTeams && message.sharedFolderTeams.length) { object.sharedFolderTeams = []; for (let j = 0; j < message.sharedFolderTeams.length; ++j) - object.sharedFolderTeams[j] = $root.Enterprise.SharedFolderTeam.toObject(message.sharedFolderTeams[j], options); + object.sharedFolderTeams[j] = $root.Enterprise.SharedFolderTeam.toObject( + message.sharedFolderTeams[j], + options + ); } if (message.auditTeamUsers && message.auditTeamUsers.length) { object.auditTeamUsers = []; for (let j = 0; j < message.auditTeamUsers.length; ++j) - object.auditTeamUsers[j] = $root.Enterprise.AuditTeamUser.toObject(message.auditTeamUsers[j], options); + object.auditTeamUsers[j] = $root.Enterprise.AuditTeamUser.toObject( + message.auditTeamUsers[j], + options + ); } if (message.auditRoles && message.auditRoles.length) { object.auditRoles = []; @@ -86552,16 +89412,15 @@ export const Enterprise = $root.Enterprise = (() => { */ ComplianceReportResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.ComplianceReportResponse"; + return typeUrlPrefix + '/Enterprise.ComplianceReportResponse'; }; return ComplianceReportResponse; })(); - Enterprise.AuditRecord = (function() { - + Enterprise.AuditRecord = (function () { /** * Properties of an AuditRecord. * @memberof Enterprise @@ -86585,8 +89444,7 @@ export const Enterprise = $root.Enterprise = (() => { function AuditRecord(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -86659,20 +89517,19 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ AuditRecord.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); - if (message.auditData != null && Object.hasOwnProperty.call(message, "auditData")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.auditData); - if (message.hasAttachments != null && Object.hasOwnProperty.call(message, "hasAttachments")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.hasAttachments); - if (message.inTrash != null && Object.hasOwnProperty.call(message, "inTrash")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.inTrash); - if (message.treeLeft != null && Object.hasOwnProperty.call(message, "treeLeft")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.treeLeft); - if (message.treeRight != null && Object.hasOwnProperty.call(message, "treeRight")) - writer.uint32(/* id 6, wireType 0 =*/48).int32(message.treeRight); + if (!writer) writer = $Writer.create(); + if (message.recordUid != null && Object.hasOwnProperty.call(message, 'recordUid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.recordUid); + if (message.auditData != null && Object.hasOwnProperty.call(message, 'auditData')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.auditData); + if (message.hasAttachments != null && Object.hasOwnProperty.call(message, 'hasAttachments')) + writer.uint32(/* id 3, wireType 0 =*/ 24).bool(message.hasAttachments); + if (message.inTrash != null && Object.hasOwnProperty.call(message, 'inTrash')) + writer.uint32(/* id 4, wireType 0 =*/ 32).bool(message.inTrash); + if (message.treeLeft != null && Object.hasOwnProperty.call(message, 'treeLeft')) + writer.uint32(/* id 5, wireType 0 =*/ 40).int32(message.treeLeft); + if (message.treeRight != null && Object.hasOwnProperty.call(message, 'treeRight')) + writer.uint32(/* id 6, wireType 0 =*/ 48).int32(message.treeRight); return writer; }; @@ -86701,39 +89558,39 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ AuditRecord.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.AuditRecord(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.AuditRecord(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.recordUid = reader.bytes(); break; } - case 2: { + case 2: { message.auditData = reader.bytes(); break; } - case 3: { + case 3: { message.hasAttachments = reader.bool(); break; } - case 4: { + case 4: { message.inTrash = reader.bool(); break; } - case 5: { + case 5: { message.treeLeft = reader.int32(); break; } - case 6: { + case 6: { message.treeRight = reader.int32(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -86750,8 +89607,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ AuditRecord.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -86764,26 +89620,31 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ AuditRecord.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) - return "recordUid: buffer expected"; - if (message.auditData != null && message.hasOwnProperty("auditData")) - if (!(message.auditData && typeof message.auditData.length === "number" || $util.isString(message.auditData))) - return "auditData: buffer expected"; - if (message.hasAttachments != null && message.hasOwnProperty("hasAttachments")) - if (typeof message.hasAttachments !== "boolean") - return "hasAttachments: boolean expected"; - if (message.inTrash != null && message.hasOwnProperty("inTrash")) - if (typeof message.inTrash !== "boolean") - return "inTrash: boolean expected"; - if (message.treeLeft != null && message.hasOwnProperty("treeLeft")) - if (!$util.isInteger(message.treeLeft)) - return "treeLeft: integer expected"; - if (message.treeRight != null && message.hasOwnProperty("treeRight")) - if (!$util.isInteger(message.treeRight)) - return "treeRight: integer expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.recordUid != null && message.hasOwnProperty('recordUid')) + if ( + !( + (message.recordUid && typeof message.recordUid.length === 'number') || + $util.isString(message.recordUid) + ) + ) + return 'recordUid: buffer expected'; + if (message.auditData != null && message.hasOwnProperty('auditData')) + if ( + !( + (message.auditData && typeof message.auditData.length === 'number') || + $util.isString(message.auditData) + ) + ) + return 'auditData: buffer expected'; + if (message.hasAttachments != null && message.hasOwnProperty('hasAttachments')) + if (typeof message.hasAttachments !== 'boolean') return 'hasAttachments: boolean expected'; + if (message.inTrash != null && message.hasOwnProperty('inTrash')) + if (typeof message.inTrash !== 'boolean') return 'inTrash: boolean expected'; + if (message.treeLeft != null && message.hasOwnProperty('treeLeft')) + if (!$util.isInteger(message.treeLeft)) return 'treeLeft: integer expected'; + if (message.treeRight != null && message.hasOwnProperty('treeRight')) + if (!$util.isInteger(message.treeRight)) return 'treeRight: integer expected'; return null; }; @@ -86796,27 +89657,28 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.AuditRecord} AuditRecord */ AuditRecord.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.AuditRecord) - return object; + if (object instanceof $root.Enterprise.AuditRecord) return object; let message = new $root.Enterprise.AuditRecord(); 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 (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.auditData != null) - if (typeof object.auditData === "string") - $util.base64.decode(object.auditData, message.auditData = $util.newBuffer($util.base64.length(object.auditData)), 0); - else if (object.auditData.length >= 0) - message.auditData = object.auditData; - if (object.hasAttachments != null) - message.hasAttachments = Boolean(object.hasAttachments); - if (object.inTrash != null) - message.inTrash = Boolean(object.inTrash); - if (object.treeLeft != null) - message.treeLeft = object.treeLeft | 0; - if (object.treeRight != null) - message.treeRight = object.treeRight | 0; + if (typeof object.auditData === 'string') + $util.base64.decode( + object.auditData, + (message.auditData = $util.newBuffer($util.base64.length(object.auditData))), + 0 + ); + else if (object.auditData.length >= 0) message.auditData = object.auditData; + if (object.hasAttachments != null) message.hasAttachments = Boolean(object.hasAttachments); + if (object.inTrash != null) message.inTrash = Boolean(object.inTrash); + if (object.treeLeft != null) message.treeLeft = object.treeLeft | 0; + if (object.treeRight != null) message.treeRight = object.treeRight | 0; return message; }; @@ -86830,41 +89692,43 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ AuditRecord.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.recordUid = ""; + if (options.bytes === String) object.recordUid = ''; else { object.recordUid = []; - if (options.bytes !== Array) - object.recordUid = $util.newBuffer(object.recordUid); + if (options.bytes !== Array) object.recordUid = $util.newBuffer(object.recordUid); } - if (options.bytes === String) - object.auditData = ""; + if (options.bytes === String) object.auditData = ''; else { object.auditData = []; - if (options.bytes !== Array) - object.auditData = $util.newBuffer(object.auditData); + if (options.bytes !== Array) object.auditData = $util.newBuffer(object.auditData); } object.hasAttachments = false; object.inTrash = false; object.treeLeft = 0; object.treeRight = 0; } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; - if (message.auditData != null && message.hasOwnProperty("auditData")) - object.auditData = options.bytes === String ? $util.base64.encode(message.auditData, 0, message.auditData.length) : options.bytes === Array ? Array.prototype.slice.call(message.auditData) : message.auditData; - if (message.hasAttachments != null && message.hasOwnProperty("hasAttachments")) + if (message.recordUid != null && message.hasOwnProperty('recordUid')) + object.recordUid = + options.bytes === String + ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.recordUid) + : message.recordUid; + if (message.auditData != null && message.hasOwnProperty('auditData')) + object.auditData = + options.bytes === String + ? $util.base64.encode(message.auditData, 0, message.auditData.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.auditData) + : message.auditData; + if (message.hasAttachments != null && message.hasOwnProperty('hasAttachments')) object.hasAttachments = message.hasAttachments; - if (message.inTrash != null && message.hasOwnProperty("inTrash")) - object.inTrash = message.inTrash; - if (message.treeLeft != null && message.hasOwnProperty("treeLeft")) - object.treeLeft = message.treeLeft; - if (message.treeRight != null && message.hasOwnProperty("treeRight")) - object.treeRight = message.treeRight; + if (message.inTrash != null && message.hasOwnProperty('inTrash')) object.inTrash = message.inTrash; + if (message.treeLeft != null && message.hasOwnProperty('treeLeft')) object.treeLeft = message.treeLeft; + if (message.treeRight != null && message.hasOwnProperty('treeRight')) object.treeRight = message.treeRight; return object; }; @@ -86889,16 +89753,15 @@ export const Enterprise = $root.Enterprise = (() => { */ AuditRecord.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.AuditRecord"; + return typeUrlPrefix + '/Enterprise.AuditRecord'; }; return AuditRecord; })(); - Enterprise.AuditRole = (function() { - + Enterprise.AuditRole = (function () { /** * Properties of an AuditRole. * @memberof Enterprise @@ -86924,8 +89787,7 @@ export const Enterprise = $root.Enterprise = (() => { this.roleNodeManagements = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -86934,7 +89796,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.AuditRole * @instance */ - AuditRole.prototype.roleId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + AuditRole.prototype.roleId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * AuditRole encryptedData. @@ -87006,23 +89868,34 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ AuditRole.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.roleId != null && Object.hasOwnProperty.call(message, "roleId")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.roleId); - if (message.encryptedData != null && Object.hasOwnProperty.call(message, "encryptedData")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.encryptedData); - if (message.restrictShareOutsideEnterprise != null && Object.hasOwnProperty.call(message, "restrictShareOutsideEnterprise")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.restrictShareOutsideEnterprise); - if (message.restrictShareAll != null && Object.hasOwnProperty.call(message, "restrictShareAll")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.restrictShareAll); - if (message.restrictShareOfAttachments != null && Object.hasOwnProperty.call(message, "restrictShareOfAttachments")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.restrictShareOfAttachments); - if (message.restrictMaskPasswordsWhileEditing != null && Object.hasOwnProperty.call(message, "restrictMaskPasswordsWhileEditing")) - writer.uint32(/* id 6, wireType 0 =*/48).bool(message.restrictMaskPasswordsWhileEditing); + if (!writer) writer = $Writer.create(); + if (message.roleId != null && Object.hasOwnProperty.call(message, 'roleId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int64(message.roleId); + if (message.encryptedData != null && Object.hasOwnProperty.call(message, 'encryptedData')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.encryptedData); + if ( + message.restrictShareOutsideEnterprise != null && + Object.hasOwnProperty.call(message, 'restrictShareOutsideEnterprise') + ) + writer.uint32(/* id 3, wireType 0 =*/ 24).bool(message.restrictShareOutsideEnterprise); + if (message.restrictShareAll != null && Object.hasOwnProperty.call(message, 'restrictShareAll')) + writer.uint32(/* id 4, wireType 0 =*/ 32).bool(message.restrictShareAll); + if ( + message.restrictShareOfAttachments != null && + Object.hasOwnProperty.call(message, 'restrictShareOfAttachments') + ) + writer.uint32(/* id 5, wireType 0 =*/ 40).bool(message.restrictShareOfAttachments); + if ( + message.restrictMaskPasswordsWhileEditing != null && + Object.hasOwnProperty.call(message, 'restrictMaskPasswordsWhileEditing') + ) + writer.uint32(/* id 6, wireType 0 =*/ 48).bool(message.restrictMaskPasswordsWhileEditing); if (message.roleNodeManagements != null && message.roleNodeManagements.length) for (let i = 0; i < message.roleNodeManagements.length; ++i) - $root.Enterprise.RoleNodeManagement.encode(message.roleNodeManagements[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + $root.Enterprise.RoleNodeManagement.encode( + message.roleNodeManagements[i], + writer.uint32(/* id 7, wireType 2 =*/ 58).fork() + ).ldelim(); return writer; }; @@ -87051,45 +89924,47 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ AuditRole.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.AuditRole(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.AuditRole(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.roleId = reader.int64(); break; } - case 2: { + case 2: { message.encryptedData = reader.bytes(); break; } - case 3: { + case 3: { message.restrictShareOutsideEnterprise = reader.bool(); break; } - case 4: { + case 4: { message.restrictShareAll = reader.bool(); break; } - case 5: { + case 5: { message.restrictShareOfAttachments = reader.bool(); break; } - case 6: { + case 6: { message.restrictMaskPasswordsWhileEditing = reader.bool(); break; } - case 7: { + case 7: { if (!(message.roleNodeManagements && message.roleNodeManagements.length)) message.roleNodeManagements = []; - message.roleNodeManagements.push($root.Enterprise.RoleNodeManagement.decode(reader, reader.uint32())); + message.roleNodeManagements.push( + $root.Enterprise.RoleNodeManagement.decode(reader, reader.uint32()) + ); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -87106,8 +89981,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ AuditRole.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -87120,33 +89994,43 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ AuditRole.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.roleId != null && message.hasOwnProperty("roleId")) - if (!$util.isInteger(message.roleId) && !(message.roleId && $util.isInteger(message.roleId.low) && $util.isInteger(message.roleId.high))) - return "roleId: integer|Long expected"; - if (message.encryptedData != null && message.hasOwnProperty("encryptedData")) - if (!(message.encryptedData && typeof message.encryptedData.length === "number" || $util.isString(message.encryptedData))) - return "encryptedData: buffer expected"; - if (message.restrictShareOutsideEnterprise != null && message.hasOwnProperty("restrictShareOutsideEnterprise")) - if (typeof message.restrictShareOutsideEnterprise !== "boolean") - return "restrictShareOutsideEnterprise: boolean expected"; - if (message.restrictShareAll != null && message.hasOwnProperty("restrictShareAll")) - if (typeof message.restrictShareAll !== "boolean") - return "restrictShareAll: boolean expected"; - if (message.restrictShareOfAttachments != null && message.hasOwnProperty("restrictShareOfAttachments")) - if (typeof message.restrictShareOfAttachments !== "boolean") - return "restrictShareOfAttachments: boolean expected"; - if (message.restrictMaskPasswordsWhileEditing != null && message.hasOwnProperty("restrictMaskPasswordsWhileEditing")) - if (typeof message.restrictMaskPasswordsWhileEditing !== "boolean") - return "restrictMaskPasswordsWhileEditing: boolean expected"; - if (message.roleNodeManagements != null && message.hasOwnProperty("roleNodeManagements")) { - if (!Array.isArray(message.roleNodeManagements)) - return "roleNodeManagements: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.roleId != null && message.hasOwnProperty('roleId')) + if ( + !$util.isInteger(message.roleId) && + !(message.roleId && $util.isInteger(message.roleId.low) && $util.isInteger(message.roleId.high)) + ) + return 'roleId: integer|Long expected'; + if (message.encryptedData != null && message.hasOwnProperty('encryptedData')) + if ( + !( + (message.encryptedData && typeof message.encryptedData.length === 'number') || + $util.isString(message.encryptedData) + ) + ) + return 'encryptedData: buffer expected'; + if ( + message.restrictShareOutsideEnterprise != null && + message.hasOwnProperty('restrictShareOutsideEnterprise') + ) + if (typeof message.restrictShareOutsideEnterprise !== 'boolean') + return 'restrictShareOutsideEnterprise: boolean expected'; + if (message.restrictShareAll != null && message.hasOwnProperty('restrictShareAll')) + if (typeof message.restrictShareAll !== 'boolean') return 'restrictShareAll: boolean expected'; + if (message.restrictShareOfAttachments != null && message.hasOwnProperty('restrictShareOfAttachments')) + if (typeof message.restrictShareOfAttachments !== 'boolean') + return 'restrictShareOfAttachments: boolean expected'; + if ( + message.restrictMaskPasswordsWhileEditing != null && + message.hasOwnProperty('restrictMaskPasswordsWhileEditing') + ) + if (typeof message.restrictMaskPasswordsWhileEditing !== 'boolean') + return 'restrictMaskPasswordsWhileEditing: boolean expected'; + if (message.roleNodeManagements != null && message.hasOwnProperty('roleNodeManagements')) { + if (!Array.isArray(message.roleNodeManagements)) return 'roleNodeManagements: array expected'; for (let i = 0; i < message.roleNodeManagements.length; ++i) { let error = $root.Enterprise.RoleNodeManagement.verify(message.roleNodeManagements[i]); - if (error) - return "roleNodeManagements." + error; + if (error) return 'roleNodeManagements.' + error; } } return null; @@ -87161,39 +90045,39 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.AuditRole} AuditRole */ AuditRole.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.AuditRole) - return object; + if (object instanceof $root.Enterprise.AuditRole) return object; let message = new $root.Enterprise.AuditRole(); if (object.roleId != null) - if ($util.Long) - (message.roleId = $util.Long.fromValue(object.roleId)).unsigned = false; - else if (typeof object.roleId === "string") - message.roleId = parseInt(object.roleId, 10); - else if (typeof object.roleId === "number") - message.roleId = object.roleId; - else if (typeof object.roleId === "object") + if ($util.Long) (message.roleId = $util.Long.fromValue(object.roleId)).unsigned = false; + else if (typeof object.roleId === 'string') message.roleId = parseInt(object.roleId, 10); + else if (typeof object.roleId === 'number') message.roleId = object.roleId; + else if (typeof object.roleId === 'object') message.roleId = new $util.LongBits(object.roleId.low >>> 0, object.roleId.high >>> 0).toNumber(); if (object.encryptedData != null) - if (typeof object.encryptedData === "string") - $util.base64.decode(object.encryptedData, message.encryptedData = $util.newBuffer($util.base64.length(object.encryptedData)), 0); - else if (object.encryptedData.length >= 0) - message.encryptedData = object.encryptedData; + if (typeof object.encryptedData === 'string') + $util.base64.decode( + object.encryptedData, + (message.encryptedData = $util.newBuffer($util.base64.length(object.encryptedData))), + 0 + ); + else if (object.encryptedData.length >= 0) message.encryptedData = object.encryptedData; if (object.restrictShareOutsideEnterprise != null) message.restrictShareOutsideEnterprise = Boolean(object.restrictShareOutsideEnterprise); - if (object.restrictShareAll != null) - message.restrictShareAll = Boolean(object.restrictShareAll); + if (object.restrictShareAll != null) message.restrictShareAll = Boolean(object.restrictShareAll); if (object.restrictShareOfAttachments != null) message.restrictShareOfAttachments = Boolean(object.restrictShareOfAttachments); if (object.restrictMaskPasswordsWhileEditing != null) message.restrictMaskPasswordsWhileEditing = Boolean(object.restrictMaskPasswordsWhileEditing); if (object.roleNodeManagements) { if (!Array.isArray(object.roleNodeManagements)) - throw TypeError(".Enterprise.AuditRole.roleNodeManagements: array expected"); + throw TypeError('.Enterprise.AuditRole.roleNodeManagements: array expected'); message.roleNodeManagements = []; for (let i = 0; i < object.roleNodeManagements.length; ++i) { - if (typeof object.roleNodeManagements[i] !== "object") - throw TypeError(".Enterprise.AuditRole.roleNodeManagements: object expected"); - message.roleNodeManagements[i] = $root.Enterprise.RoleNodeManagement.fromObject(object.roleNodeManagements[i]); + if (typeof object.roleNodeManagements[i] !== 'object') + throw TypeError('.Enterprise.AuditRole.roleNodeManagements: object expected'); + message.roleNodeManagements[i] = $root.Enterprise.RoleNodeManagement.fromObject( + object.roleNodeManagements[i] + ); } } return message; @@ -87209,48 +90093,63 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ AuditRole.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.roleNodeManagements = []; + if (options.arrays || options.defaults) object.roleNodeManagements = []; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.roleId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.roleId = options.longs === String ? "0" : 0; - if (options.bytes === String) - object.encryptedData = ""; + object.roleId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.roleId = options.longs === String ? '0' : 0; + if (options.bytes === String) object.encryptedData = ''; else { object.encryptedData = []; - if (options.bytes !== Array) - object.encryptedData = $util.newBuffer(object.encryptedData); + if (options.bytes !== Array) object.encryptedData = $util.newBuffer(object.encryptedData); } object.restrictShareOutsideEnterprise = false; object.restrictShareAll = false; object.restrictShareOfAttachments = false; object.restrictMaskPasswordsWhileEditing = false; } - if (message.roleId != null && message.hasOwnProperty("roleId")) - if (typeof message.roleId === "number") + if (message.roleId != null && message.hasOwnProperty('roleId')) + if (typeof message.roleId === 'number') object.roleId = options.longs === String ? String(message.roleId) : message.roleId; else - object.roleId = options.longs === String ? $util.Long.prototype.toString.call(message.roleId) : options.longs === Number ? new $util.LongBits(message.roleId.low >>> 0, message.roleId.high >>> 0).toNumber() : message.roleId; - if (message.encryptedData != null && message.hasOwnProperty("encryptedData")) - object.encryptedData = options.bytes === String ? $util.base64.encode(message.encryptedData, 0, message.encryptedData.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedData) : message.encryptedData; - if (message.restrictShareOutsideEnterprise != null && message.hasOwnProperty("restrictShareOutsideEnterprise")) + object.roleId = + options.longs === String + ? $util.Long.prototype.toString.call(message.roleId) + : options.longs === Number + ? new $util.LongBits(message.roleId.low >>> 0, message.roleId.high >>> 0).toNumber() + : message.roleId; + if (message.encryptedData != null && message.hasOwnProperty('encryptedData')) + object.encryptedData = + options.bytes === String + ? $util.base64.encode(message.encryptedData, 0, message.encryptedData.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.encryptedData) + : message.encryptedData; + if ( + message.restrictShareOutsideEnterprise != null && + message.hasOwnProperty('restrictShareOutsideEnterprise') + ) object.restrictShareOutsideEnterprise = message.restrictShareOutsideEnterprise; - if (message.restrictShareAll != null && message.hasOwnProperty("restrictShareAll")) + if (message.restrictShareAll != null && message.hasOwnProperty('restrictShareAll')) object.restrictShareAll = message.restrictShareAll; - if (message.restrictShareOfAttachments != null && message.hasOwnProperty("restrictShareOfAttachments")) + if (message.restrictShareOfAttachments != null && message.hasOwnProperty('restrictShareOfAttachments')) object.restrictShareOfAttachments = message.restrictShareOfAttachments; - if (message.restrictMaskPasswordsWhileEditing != null && message.hasOwnProperty("restrictMaskPasswordsWhileEditing")) + if ( + message.restrictMaskPasswordsWhileEditing != null && + message.hasOwnProperty('restrictMaskPasswordsWhileEditing') + ) object.restrictMaskPasswordsWhileEditing = message.restrictMaskPasswordsWhileEditing; if (message.roleNodeManagements && message.roleNodeManagements.length) { object.roleNodeManagements = []; for (let j = 0; j < message.roleNodeManagements.length; ++j) - object.roleNodeManagements[j] = $root.Enterprise.RoleNodeManagement.toObject(message.roleNodeManagements[j], options); + object.roleNodeManagements[j] = $root.Enterprise.RoleNodeManagement.toObject( + message.roleNodeManagements[j], + options + ); } return object; }; @@ -87276,16 +90175,15 @@ export const Enterprise = $root.Enterprise = (() => { */ AuditRole.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.AuditRole"; + return typeUrlPrefix + '/Enterprise.AuditRole'; }; return AuditRole; })(); - Enterprise.RoleNodeManagement = (function() { - + Enterprise.RoleNodeManagement = (function () { /** * Properties of a RoleNodeManagement. * @memberof Enterprise @@ -87307,8 +90205,7 @@ export const Enterprise = $root.Enterprise = (() => { function RoleNodeManagement(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -87365,16 +90262,15 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ RoleNodeManagement.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.treeLeft != null && Object.hasOwnProperty.call(message, "treeLeft")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.treeLeft); - if (message.treeRight != null && Object.hasOwnProperty.call(message, "treeRight")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.treeRight); - if (message.cascade != null && Object.hasOwnProperty.call(message, "cascade")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.cascade); - if (message.privileges != null && Object.hasOwnProperty.call(message, "privileges")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.privileges); + if (!writer) writer = $Writer.create(); + if (message.treeLeft != null && Object.hasOwnProperty.call(message, 'treeLeft')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int32(message.treeLeft); + if (message.treeRight != null && Object.hasOwnProperty.call(message, 'treeRight')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int32(message.treeRight); + if (message.cascade != null && Object.hasOwnProperty.call(message, 'cascade')) + writer.uint32(/* id 3, wireType 0 =*/ 24).bool(message.cascade); + if (message.privileges != null && Object.hasOwnProperty.call(message, 'privileges')) + writer.uint32(/* id 4, wireType 0 =*/ 32).int32(message.privileges); return writer; }; @@ -87403,31 +90299,31 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RoleNodeManagement.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.RoleNodeManagement(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.RoleNodeManagement(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.treeLeft = reader.int32(); break; } - case 2: { + case 2: { message.treeRight = reader.int32(); break; } - case 3: { + case 3: { message.cascade = reader.bool(); break; } - case 4: { + case 4: { message.privileges = reader.int32(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -87444,8 +90340,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RoleNodeManagement.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -87458,20 +90353,15 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ RoleNodeManagement.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.treeLeft != null && message.hasOwnProperty("treeLeft")) - if (!$util.isInteger(message.treeLeft)) - return "treeLeft: integer expected"; - if (message.treeRight != null && message.hasOwnProperty("treeRight")) - if (!$util.isInteger(message.treeRight)) - return "treeRight: integer expected"; - if (message.cascade != null && message.hasOwnProperty("cascade")) - if (typeof message.cascade !== "boolean") - return "cascade: boolean expected"; - if (message.privileges != null && message.hasOwnProperty("privileges")) - if (!$util.isInteger(message.privileges)) - return "privileges: integer expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.treeLeft != null && message.hasOwnProperty('treeLeft')) + if (!$util.isInteger(message.treeLeft)) return 'treeLeft: integer expected'; + if (message.treeRight != null && message.hasOwnProperty('treeRight')) + if (!$util.isInteger(message.treeRight)) return 'treeRight: integer expected'; + if (message.cascade != null && message.hasOwnProperty('cascade')) + if (typeof message.cascade !== 'boolean') return 'cascade: boolean expected'; + if (message.privileges != null && message.hasOwnProperty('privileges')) + if (!$util.isInteger(message.privileges)) return 'privileges: integer expected'; return null; }; @@ -87484,17 +90374,12 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.RoleNodeManagement} RoleNodeManagement */ RoleNodeManagement.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.RoleNodeManagement) - return object; + if (object instanceof $root.Enterprise.RoleNodeManagement) return object; let message = new $root.Enterprise.RoleNodeManagement(); - if (object.treeLeft != null) - message.treeLeft = object.treeLeft | 0; - if (object.treeRight != null) - message.treeRight = object.treeRight | 0; - if (object.cascade != null) - message.cascade = Boolean(object.cascade); - if (object.privileges != null) - message.privileges = object.privileges | 0; + if (object.treeLeft != null) message.treeLeft = object.treeLeft | 0; + if (object.treeRight != null) message.treeRight = object.treeRight | 0; + if (object.cascade != null) message.cascade = Boolean(object.cascade); + if (object.privileges != null) message.privileges = object.privileges | 0; return message; }; @@ -87508,8 +90393,7 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ RoleNodeManagement.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { object.treeLeft = 0; @@ -87517,13 +90401,10 @@ export const Enterprise = $root.Enterprise = (() => { object.cascade = false; object.privileges = 0; } - if (message.treeLeft != null && message.hasOwnProperty("treeLeft")) - object.treeLeft = message.treeLeft; - if (message.treeRight != null && message.hasOwnProperty("treeRight")) - object.treeRight = message.treeRight; - if (message.cascade != null && message.hasOwnProperty("cascade")) - object.cascade = message.cascade; - if (message.privileges != null && message.hasOwnProperty("privileges")) + if (message.treeLeft != null && message.hasOwnProperty('treeLeft')) object.treeLeft = message.treeLeft; + if (message.treeRight != null && message.hasOwnProperty('treeRight')) object.treeRight = message.treeRight; + if (message.cascade != null && message.hasOwnProperty('cascade')) object.cascade = message.cascade; + if (message.privileges != null && message.hasOwnProperty('privileges')) object.privileges = message.privileges; return object; }; @@ -87549,16 +90430,15 @@ export const Enterprise = $root.Enterprise = (() => { */ RoleNodeManagement.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.RoleNodeManagement"; + return typeUrlPrefix + '/Enterprise.RoleNodeManagement'; }; return RoleNodeManagement; })(); - Enterprise.UserProfile = (function() { - + Enterprise.UserProfile = (function () { /** * Properties of a UserProfile. * @memberof Enterprise @@ -87582,8 +90462,7 @@ export const Enterprise = $root.Enterprise = (() => { this.roleIds = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -87592,7 +90471,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.UserProfile * @instance */ - UserProfile.prototype.enterpriseUserId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + UserProfile.prototype.enterpriseUserId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * UserProfile fullName. @@ -87600,7 +90479,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.UserProfile * @instance */ - UserProfile.prototype.fullName = ""; + UserProfile.prototype.fullName = ''; /** * UserProfile jobTitle. @@ -87608,7 +90487,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.UserProfile * @instance */ - UserProfile.prototype.jobTitle = ""; + UserProfile.prototype.jobTitle = ''; /** * UserProfile email. @@ -87616,7 +90495,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.UserProfile * @instance */ - UserProfile.prototype.email = ""; + UserProfile.prototype.email = ''; /** * UserProfile roleIds. @@ -87648,20 +90527,18 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ UserProfile.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "enterpriseUserId")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.enterpriseUserId); - if (message.fullName != null && Object.hasOwnProperty.call(message, "fullName")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.fullName); - if (message.jobTitle != null && Object.hasOwnProperty.call(message, "jobTitle")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.jobTitle); - if (message.email != null && Object.hasOwnProperty.call(message, "email")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.email); + if (!writer) writer = $Writer.create(); + if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, 'enterpriseUserId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int64(message.enterpriseUserId); + if (message.fullName != null && Object.hasOwnProperty.call(message, 'fullName')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.fullName); + if (message.jobTitle != null && Object.hasOwnProperty.call(message, 'jobTitle')) + writer.uint32(/* id 3, wireType 2 =*/ 26).string(message.jobTitle); + if (message.email != null && Object.hasOwnProperty.call(message, 'email')) + writer.uint32(/* id 4, wireType 2 =*/ 34).string(message.email); if (message.roleIds != null && message.roleIds.length) { - writer.uint32(/* id 5, wireType 2 =*/42).fork(); - for (let i = 0; i < message.roleIds.length; ++i) - writer.int64(message.roleIds[i]); + writer.uint32(/* id 5, wireType 2 =*/ 42).fork(); + for (let i = 0; i < message.roleIds.length; ++i) writer.int64(message.roleIds[i]); writer.ldelim(); } return writer; @@ -87692,42 +90569,39 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ UserProfile.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.UserProfile(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.UserProfile(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.enterpriseUserId = reader.int64(); break; } - case 2: { + case 2: { message.fullName = reader.string(); break; } - case 3: { + case 3: { message.jobTitle = reader.string(); break; } - case 4: { + case 4: { message.email = reader.string(); break; } - case 5: { - if (!(message.roleIds && message.roleIds.length)) - message.roleIds = []; + case 5: { + if (!(message.roleIds && message.roleIds.length)) message.roleIds = []; if ((tag & 7) === 2) { let end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.roleIds.push(reader.int64()); - } else - message.roleIds.push(reader.int64()); + while (reader.pos < end2) message.roleIds.push(reader.int64()); + } else message.roleIds.push(reader.int64()); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -87744,8 +90618,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ UserProfile.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -87758,26 +90631,35 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ UserProfile.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (!$util.isInteger(message.enterpriseUserId) && !(message.enterpriseUserId && $util.isInteger(message.enterpriseUserId.low) && $util.isInteger(message.enterpriseUserId.high))) - return "enterpriseUserId: integer|Long expected"; - if (message.fullName != null && message.hasOwnProperty("fullName")) - if (!$util.isString(message.fullName)) - return "fullName: string expected"; - if (message.jobTitle != null && message.hasOwnProperty("jobTitle")) - if (!$util.isString(message.jobTitle)) - return "jobTitle: string expected"; - if (message.email != null && message.hasOwnProperty("email")) - if (!$util.isString(message.email)) - return "email: string expected"; - if (message.roleIds != null && message.hasOwnProperty("roleIds")) { - if (!Array.isArray(message.roleIds)) - return "roleIds: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.enterpriseUserId != null && message.hasOwnProperty('enterpriseUserId')) + if ( + !$util.isInteger(message.enterpriseUserId) && + !( + message.enterpriseUserId && + $util.isInteger(message.enterpriseUserId.low) && + $util.isInteger(message.enterpriseUserId.high) + ) + ) + return 'enterpriseUserId: integer|Long expected'; + if (message.fullName != null && message.hasOwnProperty('fullName')) + if (!$util.isString(message.fullName)) return 'fullName: string expected'; + if (message.jobTitle != null && message.hasOwnProperty('jobTitle')) + if (!$util.isString(message.jobTitle)) return 'jobTitle: string expected'; + if (message.email != null && message.hasOwnProperty('email')) + if (!$util.isString(message.email)) return 'email: string expected'; + if (message.roleIds != null && message.hasOwnProperty('roleIds')) { + if (!Array.isArray(message.roleIds)) return 'roleIds: array expected'; for (let i = 0; i < message.roleIds.length; ++i) - if (!$util.isInteger(message.roleIds[i]) && !(message.roleIds[i] && $util.isInteger(message.roleIds[i].low) && $util.isInteger(message.roleIds[i].high))) - return "roleIds: integer|Long[] expected"; + if ( + !$util.isInteger(message.roleIds[i]) && + !( + message.roleIds[i] && + $util.isInteger(message.roleIds[i].low) && + $util.isInteger(message.roleIds[i].high) + ) + ) + return 'roleIds: integer|Long[] expected'; } return null; }; @@ -87791,37 +90673,36 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.UserProfile} UserProfile */ UserProfile.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.UserProfile) - return object; + if (object instanceof $root.Enterprise.UserProfile) return object; let message = new $root.Enterprise.UserProfile(); if (object.enterpriseUserId != null) if ($util.Long) (message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId)).unsigned = false; - else if (typeof object.enterpriseUserId === "string") + else if (typeof object.enterpriseUserId === 'string') message.enterpriseUserId = parseInt(object.enterpriseUserId, 10); - else if (typeof object.enterpriseUserId === "number") + else if (typeof object.enterpriseUserId === 'number') message.enterpriseUserId = object.enterpriseUserId; - else if (typeof object.enterpriseUserId === "object") - message.enterpriseUserId = new $util.LongBits(object.enterpriseUserId.low >>> 0, object.enterpriseUserId.high >>> 0).toNumber(); - if (object.fullName != null) - message.fullName = String(object.fullName); - if (object.jobTitle != null) - message.jobTitle = String(object.jobTitle); - if (object.email != null) - message.email = String(object.email); + else if (typeof object.enterpriseUserId === 'object') + message.enterpriseUserId = new $util.LongBits( + object.enterpriseUserId.low >>> 0, + object.enterpriseUserId.high >>> 0 + ).toNumber(); + if (object.fullName != null) message.fullName = String(object.fullName); + if (object.jobTitle != null) message.jobTitle = String(object.jobTitle); + if (object.email != null) message.email = String(object.email); if (object.roleIds) { - if (!Array.isArray(object.roleIds)) - throw TypeError(".Enterprise.UserProfile.roleIds: array expected"); + if (!Array.isArray(object.roleIds)) throw TypeError('.Enterprise.UserProfile.roleIds: array expected'); message.roleIds = []; for (let i = 0; i < object.roleIds.length; ++i) - if ($util.Long) - (message.roleIds[i] = $util.Long.fromValue(object.roleIds[i])).unsigned = false; - else if (typeof object.roleIds[i] === "string") + if ($util.Long) (message.roleIds[i] = $util.Long.fromValue(object.roleIds[i])).unsigned = false; + else if (typeof object.roleIds[i] === 'string') message.roleIds[i] = parseInt(object.roleIds[i], 10); - else if (typeof object.roleIds[i] === "number") - message.roleIds[i] = object.roleIds[i]; - else if (typeof object.roleIds[i] === "object") - message.roleIds[i] = new $util.LongBits(object.roleIds[i].low >>> 0, object.roleIds[i].high >>> 0).toNumber(); + else if (typeof object.roleIds[i] === 'number') message.roleIds[i] = object.roleIds[i]; + else if (typeof object.roleIds[i] === 'object') + message.roleIds[i] = new $util.LongBits( + object.roleIds[i].low >>> 0, + object.roleIds[i].high >>> 0 + ).toNumber(); } return message; }; @@ -87836,39 +90717,51 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ UserProfile.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.roleIds = []; + if (options.arrays || options.defaults) object.roleIds = []; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.enterpriseUserId = options.longs === String ? "0" : 0; - object.fullName = ""; - object.jobTitle = ""; - object.email = ""; - } - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (typeof message.enterpriseUserId === "number") - object.enterpriseUserId = options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; + object.enterpriseUserId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.enterpriseUserId = options.longs === String ? '0' : 0; + object.fullName = ''; + object.jobTitle = ''; + object.email = ''; + } + if (message.enterpriseUserId != null && message.hasOwnProperty('enterpriseUserId')) + if (typeof message.enterpriseUserId === 'number') + object.enterpriseUserId = + options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; else - object.enterpriseUserId = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseUserId) : options.longs === Number ? new $util.LongBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0).toNumber() : message.enterpriseUserId; - if (message.fullName != null && message.hasOwnProperty("fullName")) - object.fullName = message.fullName; - if (message.jobTitle != null && message.hasOwnProperty("jobTitle")) - object.jobTitle = message.jobTitle; - if (message.email != null && message.hasOwnProperty("email")) - object.email = message.email; + object.enterpriseUserId = + options.longs === String + ? $util.Long.prototype.toString.call(message.enterpriseUserId) + : options.longs === Number + ? new $util.LongBits( + message.enterpriseUserId.low >>> 0, + message.enterpriseUserId.high >>> 0 + ).toNumber() + : message.enterpriseUserId; + if (message.fullName != null && message.hasOwnProperty('fullName')) object.fullName = message.fullName; + if (message.jobTitle != null && message.hasOwnProperty('jobTitle')) object.jobTitle = message.jobTitle; + if (message.email != null && message.hasOwnProperty('email')) object.email = message.email; if (message.roleIds && message.roleIds.length) { object.roleIds = []; for (let j = 0; j < message.roleIds.length; ++j) - if (typeof message.roleIds[j] === "number") + if (typeof message.roleIds[j] === 'number') object.roleIds[j] = options.longs === String ? String(message.roleIds[j]) : message.roleIds[j]; else - object.roleIds[j] = options.longs === String ? $util.Long.prototype.toString.call(message.roleIds[j]) : options.longs === Number ? new $util.LongBits(message.roleIds[j].low >>> 0, message.roleIds[j].high >>> 0).toNumber() : message.roleIds[j]; + object.roleIds[j] = + options.longs === String + ? $util.Long.prototype.toString.call(message.roleIds[j]) + : options.longs === Number + ? new $util.LongBits( + message.roleIds[j].low >>> 0, + message.roleIds[j].high >>> 0 + ).toNumber() + : message.roleIds[j]; } return object; }; @@ -87894,16 +90787,15 @@ export const Enterprise = $root.Enterprise = (() => { */ UserProfile.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.UserProfile"; + return typeUrlPrefix + '/Enterprise.UserProfile'; }; return UserProfile; })(); - Enterprise.RecordPermission = (function() { - + Enterprise.RecordPermission = (function () { /** * Properties of a RecordPermission. * @memberof Enterprise @@ -87923,8 +90815,7 @@ export const Enterprise = $root.Enterprise = (() => { function RecordPermission(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -87965,12 +90856,11 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ RecordPermission.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); - if (message.permissionBits != null && Object.hasOwnProperty.call(message, "permissionBits")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.permissionBits); + if (!writer) writer = $Writer.create(); + if (message.recordUid != null && Object.hasOwnProperty.call(message, 'recordUid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.recordUid); + if (message.permissionBits != null && Object.hasOwnProperty.call(message, 'permissionBits')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int32(message.permissionBits); return writer; }; @@ -87999,23 +90889,23 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RecordPermission.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.RecordPermission(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.RecordPermission(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.recordUid = reader.bytes(); break; } - case 2: { + case 2: { message.permissionBits = reader.int32(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -88032,8 +90922,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RecordPermission.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -88046,14 +90935,17 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ RecordPermission.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) - return "recordUid: buffer expected"; - if (message.permissionBits != null && message.hasOwnProperty("permissionBits")) - if (!$util.isInteger(message.permissionBits)) - return "permissionBits: integer expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.recordUid != null && message.hasOwnProperty('recordUid')) + if ( + !( + (message.recordUid && typeof message.recordUid.length === 'number') || + $util.isString(message.recordUid) + ) + ) + return 'recordUid: buffer expected'; + if (message.permissionBits != null && message.hasOwnProperty('permissionBits')) + if (!$util.isInteger(message.permissionBits)) return 'permissionBits: integer expected'; return null; }; @@ -88066,16 +90958,17 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.RecordPermission} RecordPermission */ RecordPermission.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.RecordPermission) - return object; + if (object instanceof $root.Enterprise.RecordPermission) return object; let message = new $root.Enterprise.RecordPermission(); 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.permissionBits != null) - message.permissionBits = object.permissionBits | 0; + 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.permissionBits != null) message.permissionBits = object.permissionBits | 0; return message; }; @@ -88089,22 +90982,24 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ RecordPermission.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.recordUid = ""; + if (options.bytes === String) object.recordUid = ''; else { object.recordUid = []; - if (options.bytes !== Array) - object.recordUid = $util.newBuffer(object.recordUid); + if (options.bytes !== Array) object.recordUid = $util.newBuffer(object.recordUid); } object.permissionBits = 0; } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; - if (message.permissionBits != null && message.hasOwnProperty("permissionBits")) + if (message.recordUid != null && message.hasOwnProperty('recordUid')) + object.recordUid = + options.bytes === String + ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.recordUid) + : message.recordUid; + if (message.permissionBits != null && message.hasOwnProperty('permissionBits')) object.permissionBits = message.permissionBits; return object; }; @@ -88130,16 +91025,15 @@ export const Enterprise = $root.Enterprise = (() => { */ RecordPermission.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.RecordPermission"; + return typeUrlPrefix + '/Enterprise.RecordPermission'; }; return RecordPermission; })(); - Enterprise.UserRecord = (function() { - + Enterprise.UserRecord = (function () { /** * Properties of a UserRecord. * @memberof Enterprise @@ -88160,8 +91054,7 @@ export const Enterprise = $root.Enterprise = (() => { this.recordPermissions = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -88170,7 +91063,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.UserRecord * @instance */ - UserRecord.prototype.enterpriseUserId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + UserRecord.prototype.enterpriseUserId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * UserRecord recordPermissions. @@ -88202,13 +91095,15 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ UserRecord.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "enterpriseUserId")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.enterpriseUserId); + if (!writer) writer = $Writer.create(); + if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, 'enterpriseUserId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int64(message.enterpriseUserId); if (message.recordPermissions != null && message.recordPermissions.length) for (let i = 0; i < message.recordPermissions.length; ++i) - $root.Enterprise.RecordPermission.encode(message.recordPermissions[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + $root.Enterprise.RecordPermission.encode( + message.recordPermissions[i], + writer.uint32(/* id 2, wireType 2 =*/ 18).fork() + ).ldelim(); return writer; }; @@ -88237,25 +91132,27 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ UserRecord.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.UserRecord(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.UserRecord(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.enterpriseUserId = reader.int64(); break; } - case 2: { + case 2: { if (!(message.recordPermissions && message.recordPermissions.length)) message.recordPermissions = []; - message.recordPermissions.push($root.Enterprise.RecordPermission.decode(reader, reader.uint32())); + message.recordPermissions.push( + $root.Enterprise.RecordPermission.decode(reader, reader.uint32()) + ); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -88272,8 +91169,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ UserRecord.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -88286,18 +91182,22 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ UserRecord.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (!$util.isInteger(message.enterpriseUserId) && !(message.enterpriseUserId && $util.isInteger(message.enterpriseUserId.low) && $util.isInteger(message.enterpriseUserId.high))) - return "enterpriseUserId: integer|Long expected"; - if (message.recordPermissions != null && message.hasOwnProperty("recordPermissions")) { - if (!Array.isArray(message.recordPermissions)) - return "recordPermissions: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.enterpriseUserId != null && message.hasOwnProperty('enterpriseUserId')) + if ( + !$util.isInteger(message.enterpriseUserId) && + !( + message.enterpriseUserId && + $util.isInteger(message.enterpriseUserId.low) && + $util.isInteger(message.enterpriseUserId.high) + ) + ) + return 'enterpriseUserId: integer|Long expected'; + if (message.recordPermissions != null && message.hasOwnProperty('recordPermissions')) { + if (!Array.isArray(message.recordPermissions)) return 'recordPermissions: array expected'; for (let i = 0; i < message.recordPermissions.length; ++i) { let error = $root.Enterprise.RecordPermission.verify(message.recordPermissions[i]); - if (error) - return "recordPermissions." + error; + if (error) return 'recordPermissions.' + error; } } return null; @@ -88312,26 +91212,30 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.UserRecord} UserRecord */ UserRecord.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.UserRecord) - return object; + if (object instanceof $root.Enterprise.UserRecord) return object; let message = new $root.Enterprise.UserRecord(); if (object.enterpriseUserId != null) if ($util.Long) (message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId)).unsigned = false; - else if (typeof object.enterpriseUserId === "string") + else if (typeof object.enterpriseUserId === 'string') message.enterpriseUserId = parseInt(object.enterpriseUserId, 10); - else if (typeof object.enterpriseUserId === "number") + else if (typeof object.enterpriseUserId === 'number') message.enterpriseUserId = object.enterpriseUserId; - else if (typeof object.enterpriseUserId === "object") - message.enterpriseUserId = new $util.LongBits(object.enterpriseUserId.low >>> 0, object.enterpriseUserId.high >>> 0).toNumber(); + else if (typeof object.enterpriseUserId === 'object') + message.enterpriseUserId = new $util.LongBits( + object.enterpriseUserId.low >>> 0, + object.enterpriseUserId.high >>> 0 + ).toNumber(); if (object.recordPermissions) { if (!Array.isArray(object.recordPermissions)) - throw TypeError(".Enterprise.UserRecord.recordPermissions: array expected"); + throw TypeError('.Enterprise.UserRecord.recordPermissions: array expected'); message.recordPermissions = []; for (let i = 0; i < object.recordPermissions.length; ++i) { - if (typeof object.recordPermissions[i] !== "object") - throw TypeError(".Enterprise.UserRecord.recordPermissions: object expected"); - message.recordPermissions[i] = $root.Enterprise.RecordPermission.fromObject(object.recordPermissions[i]); + if (typeof object.recordPermissions[i] !== 'object') + throw TypeError('.Enterprise.UserRecord.recordPermissions: object expected'); + message.recordPermissions[i] = $root.Enterprise.RecordPermission.fromObject( + object.recordPermissions[i] + ); } } return message; @@ -88347,26 +91251,36 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ UserRecord.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.recordPermissions = []; + if (options.arrays || options.defaults) object.recordPermissions = []; if (options.defaults) if ($util.Long) { let long = new $util.Long(0, 0, false); - object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.enterpriseUserId = options.longs === String ? "0" : 0; - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (typeof message.enterpriseUserId === "number") - object.enterpriseUserId = options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; + object.enterpriseUserId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.enterpriseUserId = options.longs === String ? '0' : 0; + if (message.enterpriseUserId != null && message.hasOwnProperty('enterpriseUserId')) + if (typeof message.enterpriseUserId === 'number') + object.enterpriseUserId = + options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; else - object.enterpriseUserId = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseUserId) : options.longs === Number ? new $util.LongBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0).toNumber() : message.enterpriseUserId; + object.enterpriseUserId = + options.longs === String + ? $util.Long.prototype.toString.call(message.enterpriseUserId) + : options.longs === Number + ? new $util.LongBits( + message.enterpriseUserId.low >>> 0, + message.enterpriseUserId.high >>> 0 + ).toNumber() + : message.enterpriseUserId; if (message.recordPermissions && message.recordPermissions.length) { object.recordPermissions = []; for (let j = 0; j < message.recordPermissions.length; ++j) - object.recordPermissions[j] = $root.Enterprise.RecordPermission.toObject(message.recordPermissions[j], options); + object.recordPermissions[j] = $root.Enterprise.RecordPermission.toObject( + message.recordPermissions[j], + options + ); } return object; }; @@ -88392,16 +91306,15 @@ export const Enterprise = $root.Enterprise = (() => { */ UserRecord.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.UserRecord"; + return typeUrlPrefix + '/Enterprise.UserRecord'; }; return UserRecord; })(); - Enterprise.AuditTeam = (function() { - + Enterprise.AuditTeam = (function () { /** * Properties of an AuditTeam. * @memberof Enterprise @@ -88423,8 +91336,7 @@ export const Enterprise = $root.Enterprise = (() => { function AuditTeam(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -88441,7 +91353,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.AuditTeam * @instance */ - AuditTeam.prototype.teamName = ""; + AuditTeam.prototype.teamName = ''; /** * AuditTeam restrictEdit. @@ -88481,16 +91393,15 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ AuditTeam.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.teamUid != null && Object.hasOwnProperty.call(message, "teamUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.teamUid); - if (message.teamName != null && Object.hasOwnProperty.call(message, "teamName")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.teamName); - if (message.restrictEdit != null && Object.hasOwnProperty.call(message, "restrictEdit")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.restrictEdit); - if (message.restrictShare != null && Object.hasOwnProperty.call(message, "restrictShare")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.restrictShare); + if (!writer) writer = $Writer.create(); + if (message.teamUid != null && Object.hasOwnProperty.call(message, 'teamUid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.teamUid); + if (message.teamName != null && Object.hasOwnProperty.call(message, 'teamName')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.teamName); + if (message.restrictEdit != null && Object.hasOwnProperty.call(message, 'restrictEdit')) + writer.uint32(/* id 3, wireType 0 =*/ 24).bool(message.restrictEdit); + if (message.restrictShare != null && Object.hasOwnProperty.call(message, 'restrictShare')) + writer.uint32(/* id 4, wireType 0 =*/ 32).bool(message.restrictShare); return writer; }; @@ -88519,31 +91430,31 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ AuditTeam.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.AuditTeam(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.AuditTeam(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.teamUid = reader.bytes(); break; } - case 2: { + case 2: { message.teamName = reader.string(); break; } - case 3: { + case 3: { message.restrictEdit = reader.bool(); break; } - case 4: { + case 4: { message.restrictShare = reader.bool(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -88560,8 +91471,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ AuditTeam.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -88574,20 +91484,21 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ AuditTeam.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.teamUid != null && message.hasOwnProperty("teamUid")) - if (!(message.teamUid && typeof message.teamUid.length === "number" || $util.isString(message.teamUid))) - return "teamUid: buffer expected"; - if (message.teamName != null && message.hasOwnProperty("teamName")) - if (!$util.isString(message.teamName)) - return "teamName: string expected"; - if (message.restrictEdit != null && message.hasOwnProperty("restrictEdit")) - if (typeof message.restrictEdit !== "boolean") - return "restrictEdit: boolean expected"; - if (message.restrictShare != null && message.hasOwnProperty("restrictShare")) - if (typeof message.restrictShare !== "boolean") - return "restrictShare: boolean expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.teamUid != null && message.hasOwnProperty('teamUid')) + if ( + !( + (message.teamUid && typeof message.teamUid.length === 'number') || + $util.isString(message.teamUid) + ) + ) + return 'teamUid: buffer expected'; + if (message.teamName != null && message.hasOwnProperty('teamName')) + if (!$util.isString(message.teamName)) return 'teamName: string expected'; + if (message.restrictEdit != null && message.hasOwnProperty('restrictEdit')) + if (typeof message.restrictEdit !== 'boolean') return 'restrictEdit: boolean expected'; + if (message.restrictShare != null && message.hasOwnProperty('restrictShare')) + if (typeof message.restrictShare !== 'boolean') return 'restrictShare: boolean expected'; return null; }; @@ -88600,20 +91511,19 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.AuditTeam} AuditTeam */ AuditTeam.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.AuditTeam) - return object; + if (object instanceof $root.Enterprise.AuditTeam) return object; let message = new $root.Enterprise.AuditTeam(); if (object.teamUid != null) - if (typeof object.teamUid === "string") - $util.base64.decode(object.teamUid, message.teamUid = $util.newBuffer($util.base64.length(object.teamUid)), 0); - else if (object.teamUid.length >= 0) - message.teamUid = object.teamUid; - if (object.teamName != null) - message.teamName = String(object.teamName); - if (object.restrictEdit != null) - message.restrictEdit = Boolean(object.restrictEdit); - if (object.restrictShare != null) - message.restrictShare = Boolean(object.restrictShare); + if (typeof object.teamUid === 'string') + $util.base64.decode( + object.teamUid, + (message.teamUid = $util.newBuffer($util.base64.length(object.teamUid))), + 0 + ); + else if (object.teamUid.length >= 0) message.teamUid = object.teamUid; + if (object.teamName != null) message.teamName = String(object.teamName); + if (object.restrictEdit != null) message.restrictEdit = Boolean(object.restrictEdit); + if (object.restrictShare != null) message.restrictShare = Boolean(object.restrictShare); return message; }; @@ -88627,28 +91537,29 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ AuditTeam.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.teamUid = ""; + if (options.bytes === String) object.teamUid = ''; else { object.teamUid = []; - if (options.bytes !== Array) - object.teamUid = $util.newBuffer(object.teamUid); + if (options.bytes !== Array) object.teamUid = $util.newBuffer(object.teamUid); } - object.teamName = ""; + object.teamName = ''; object.restrictEdit = false; object.restrictShare = false; } - if (message.teamUid != null && message.hasOwnProperty("teamUid")) - object.teamUid = options.bytes === String ? $util.base64.encode(message.teamUid, 0, message.teamUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.teamUid) : message.teamUid; - if (message.teamName != null && message.hasOwnProperty("teamName")) - object.teamName = message.teamName; - if (message.restrictEdit != null && message.hasOwnProperty("restrictEdit")) + if (message.teamUid != null && message.hasOwnProperty('teamUid')) + object.teamUid = + options.bytes === String + ? $util.base64.encode(message.teamUid, 0, message.teamUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.teamUid) + : message.teamUid; + if (message.teamName != null && message.hasOwnProperty('teamName')) object.teamName = message.teamName; + if (message.restrictEdit != null && message.hasOwnProperty('restrictEdit')) object.restrictEdit = message.restrictEdit; - if (message.restrictShare != null && message.hasOwnProperty("restrictShare")) + if (message.restrictShare != null && message.hasOwnProperty('restrictShare')) object.restrictShare = message.restrictShare; return object; }; @@ -88674,16 +91585,15 @@ export const Enterprise = $root.Enterprise = (() => { */ AuditTeam.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.AuditTeam"; + return typeUrlPrefix + '/Enterprise.AuditTeam'; }; return AuditTeam; })(); - Enterprise.AuditTeamUser = (function() { - + Enterprise.AuditTeamUser = (function () { /** * Properties of an AuditTeamUser. * @memberof Enterprise @@ -88704,8 +91614,7 @@ export const Enterprise = $root.Enterprise = (() => { this.enterpriseUserIds = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -88746,14 +91655,12 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ AuditTeamUser.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.teamUid != null && Object.hasOwnProperty.call(message, "teamUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.teamUid); + if (!writer) writer = $Writer.create(); + if (message.teamUid != null && Object.hasOwnProperty.call(message, 'teamUid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.teamUid); if (message.enterpriseUserIds != null && message.enterpriseUserIds.length) { - writer.uint32(/* id 2, wireType 2 =*/18).fork(); - for (let i = 0; i < message.enterpriseUserIds.length; ++i) - writer.int64(message.enterpriseUserIds[i]); + writer.uint32(/* id 2, wireType 2 =*/ 18).fork(); + for (let i = 0; i < message.enterpriseUserIds.length; ++i) writer.int64(message.enterpriseUserIds[i]); writer.ldelim(); } return writer; @@ -88784,30 +91691,28 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ AuditTeamUser.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.AuditTeamUser(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.AuditTeamUser(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.teamUid = reader.bytes(); break; } - case 2: { + case 2: { if (!(message.enterpriseUserIds && message.enterpriseUserIds.length)) message.enterpriseUserIds = []; if ((tag & 7) === 2) { let end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.enterpriseUserIds.push(reader.int64()); - } else - message.enterpriseUserIds.push(reader.int64()); + while (reader.pos < end2) message.enterpriseUserIds.push(reader.int64()); + } else message.enterpriseUserIds.push(reader.int64()); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -88824,8 +91729,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ AuditTeamUser.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -88838,17 +91742,27 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ AuditTeamUser.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.teamUid != null && message.hasOwnProperty("teamUid")) - if (!(message.teamUid && typeof message.teamUid.length === "number" || $util.isString(message.teamUid))) - return "teamUid: buffer expected"; - if (message.enterpriseUserIds != null && message.hasOwnProperty("enterpriseUserIds")) { - if (!Array.isArray(message.enterpriseUserIds)) - return "enterpriseUserIds: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.teamUid != null && message.hasOwnProperty('teamUid')) + if ( + !( + (message.teamUid && typeof message.teamUid.length === 'number') || + $util.isString(message.teamUid) + ) + ) + return 'teamUid: buffer expected'; + if (message.enterpriseUserIds != null && message.hasOwnProperty('enterpriseUserIds')) { + if (!Array.isArray(message.enterpriseUserIds)) return 'enterpriseUserIds: array expected'; for (let i = 0; i < message.enterpriseUserIds.length; ++i) - if (!$util.isInteger(message.enterpriseUserIds[i]) && !(message.enterpriseUserIds[i] && $util.isInteger(message.enterpriseUserIds[i].low) && $util.isInteger(message.enterpriseUserIds[i].high))) - return "enterpriseUserIds: integer|Long[] expected"; + if ( + !$util.isInteger(message.enterpriseUserIds[i]) && + !( + message.enterpriseUserIds[i] && + $util.isInteger(message.enterpriseUserIds[i].low) && + $util.isInteger(message.enterpriseUserIds[i].high) + ) + ) + return 'enterpriseUserIds: integer|Long[] expected'; } return null; }; @@ -88862,27 +91776,33 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.AuditTeamUser} AuditTeamUser */ AuditTeamUser.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.AuditTeamUser) - return object; + if (object instanceof $root.Enterprise.AuditTeamUser) return object; let message = new $root.Enterprise.AuditTeamUser(); if (object.teamUid != null) - if (typeof object.teamUid === "string") - $util.base64.decode(object.teamUid, message.teamUid = $util.newBuffer($util.base64.length(object.teamUid)), 0); - else if (object.teamUid.length >= 0) - message.teamUid = object.teamUid; + if (typeof object.teamUid === 'string') + $util.base64.decode( + object.teamUid, + (message.teamUid = $util.newBuffer($util.base64.length(object.teamUid))), + 0 + ); + else if (object.teamUid.length >= 0) message.teamUid = object.teamUid; if (object.enterpriseUserIds) { if (!Array.isArray(object.enterpriseUserIds)) - throw TypeError(".Enterprise.AuditTeamUser.enterpriseUserIds: array expected"); + throw TypeError('.Enterprise.AuditTeamUser.enterpriseUserIds: array expected'); message.enterpriseUserIds = []; for (let i = 0; i < object.enterpriseUserIds.length; ++i) if ($util.Long) - (message.enterpriseUserIds[i] = $util.Long.fromValue(object.enterpriseUserIds[i])).unsigned = false; - else if (typeof object.enterpriseUserIds[i] === "string") + (message.enterpriseUserIds[i] = $util.Long.fromValue(object.enterpriseUserIds[i])).unsigned = + false; + else if (typeof object.enterpriseUserIds[i] === 'string') message.enterpriseUserIds[i] = parseInt(object.enterpriseUserIds[i], 10); - else if (typeof object.enterpriseUserIds[i] === "number") + else if (typeof object.enterpriseUserIds[i] === 'number') message.enterpriseUserIds[i] = object.enterpriseUserIds[i]; - else if (typeof object.enterpriseUserIds[i] === "object") - message.enterpriseUserIds[i] = new $util.LongBits(object.enterpriseUserIds[i].low >>> 0, object.enterpriseUserIds[i].high >>> 0).toNumber(); + else if (typeof object.enterpriseUserIds[i] === 'object') + message.enterpriseUserIds[i] = new $util.LongBits( + object.enterpriseUserIds[i].low >>> 0, + object.enterpriseUserIds[i].high >>> 0 + ).toNumber(); } return message; }; @@ -88897,28 +91817,40 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ AuditTeamUser.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.enterpriseUserIds = []; + if (options.arrays || options.defaults) object.enterpriseUserIds = []; if (options.defaults) - if (options.bytes === String) - object.teamUid = ""; + if (options.bytes === String) object.teamUid = ''; else { object.teamUid = []; - if (options.bytes !== Array) - object.teamUid = $util.newBuffer(object.teamUid); - } - if (message.teamUid != null && message.hasOwnProperty("teamUid")) - object.teamUid = options.bytes === String ? $util.base64.encode(message.teamUid, 0, message.teamUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.teamUid) : message.teamUid; + if (options.bytes !== Array) object.teamUid = $util.newBuffer(object.teamUid); + } + if (message.teamUid != null && message.hasOwnProperty('teamUid')) + object.teamUid = + options.bytes === String + ? $util.base64.encode(message.teamUid, 0, message.teamUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.teamUid) + : message.teamUid; if (message.enterpriseUserIds && message.enterpriseUserIds.length) { object.enterpriseUserIds = []; for (let j = 0; j < message.enterpriseUserIds.length; ++j) - if (typeof message.enterpriseUserIds[j] === "number") - object.enterpriseUserIds[j] = options.longs === String ? String(message.enterpriseUserIds[j]) : message.enterpriseUserIds[j]; + if (typeof message.enterpriseUserIds[j] === 'number') + object.enterpriseUserIds[j] = + options.longs === String + ? String(message.enterpriseUserIds[j]) + : message.enterpriseUserIds[j]; else - object.enterpriseUserIds[j] = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseUserIds[j]) : options.longs === Number ? new $util.LongBits(message.enterpriseUserIds[j].low >>> 0, message.enterpriseUserIds[j].high >>> 0).toNumber() : message.enterpriseUserIds[j]; + object.enterpriseUserIds[j] = + options.longs === String + ? $util.Long.prototype.toString.call(message.enterpriseUserIds[j]) + : options.longs === Number + ? new $util.LongBits( + message.enterpriseUserIds[j].low >>> 0, + message.enterpriseUserIds[j].high >>> 0 + ).toNumber() + : message.enterpriseUserIds[j]; } return object; }; @@ -88944,16 +91876,15 @@ export const Enterprise = $root.Enterprise = (() => { */ AuditTeamUser.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.AuditTeamUser"; + return typeUrlPrefix + '/Enterprise.AuditTeamUser'; }; return AuditTeamUser; })(); - Enterprise.SharedFolderRecord = (function() { - + Enterprise.SharedFolderRecord = (function () { /** * Properties of a SharedFolderRecord. * @memberof Enterprise @@ -88976,8 +91907,7 @@ export const Enterprise = $root.Enterprise = (() => { this.shareAdminRecords = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -89026,16 +91956,21 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ SharedFolderRecord.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, "sharedFolderUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.sharedFolderUid); + if (!writer) writer = $Writer.create(); + if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, 'sharedFolderUid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.sharedFolderUid); if (message.recordPermissions != null && message.recordPermissions.length) for (let i = 0; i < message.recordPermissions.length; ++i) - $root.Enterprise.RecordPermission.encode(message.recordPermissions[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + $root.Enterprise.RecordPermission.encode( + message.recordPermissions[i], + writer.uint32(/* id 2, wireType 2 =*/ 18).fork() + ).ldelim(); if (message.shareAdminRecords != null && message.shareAdminRecords.length) for (let i = 0; i < message.shareAdminRecords.length; ++i) - $root.Enterprise.ShareAdminRecord.encode(message.shareAdminRecords[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + $root.Enterprise.ShareAdminRecord.encode( + message.shareAdminRecords[i], + writer.uint32(/* id 3, wireType 2 =*/ 26).fork() + ).ldelim(); return writer; }; @@ -89064,31 +91999,35 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SharedFolderRecord.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.SharedFolderRecord(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.SharedFolderRecord(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.sharedFolderUid = reader.bytes(); break; } - case 2: { + case 2: { if (!(message.recordPermissions && message.recordPermissions.length)) message.recordPermissions = []; - message.recordPermissions.push($root.Enterprise.RecordPermission.decode(reader, reader.uint32())); + message.recordPermissions.push( + $root.Enterprise.RecordPermission.decode(reader, reader.uint32()) + ); break; } - case 3: { + case 3: { if (!(message.shareAdminRecords && message.shareAdminRecords.length)) message.shareAdminRecords = []; - message.shareAdminRecords.push($root.Enterprise.ShareAdminRecord.decode(reader, reader.uint32())); + message.shareAdminRecords.push( + $root.Enterprise.ShareAdminRecord.decode(reader, reader.uint32()) + ); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -89105,8 +92044,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SharedFolderRecord.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -89119,27 +92057,27 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ SharedFolderRecord.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) - if (!(message.sharedFolderUid && typeof message.sharedFolderUid.length === "number" || $util.isString(message.sharedFolderUid))) - return "sharedFolderUid: buffer expected"; - if (message.recordPermissions != null && message.hasOwnProperty("recordPermissions")) { - if (!Array.isArray(message.recordPermissions)) - return "recordPermissions: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.sharedFolderUid != null && message.hasOwnProperty('sharedFolderUid')) + if ( + !( + (message.sharedFolderUid && typeof message.sharedFolderUid.length === 'number') || + $util.isString(message.sharedFolderUid) + ) + ) + return 'sharedFolderUid: buffer expected'; + if (message.recordPermissions != null && message.hasOwnProperty('recordPermissions')) { + if (!Array.isArray(message.recordPermissions)) return 'recordPermissions: array expected'; for (let i = 0; i < message.recordPermissions.length; ++i) { let error = $root.Enterprise.RecordPermission.verify(message.recordPermissions[i]); - if (error) - return "recordPermissions." + error; + if (error) return 'recordPermissions.' + error; } } - if (message.shareAdminRecords != null && message.hasOwnProperty("shareAdminRecords")) { - if (!Array.isArray(message.shareAdminRecords)) - return "shareAdminRecords: array expected"; + if (message.shareAdminRecords != null && message.hasOwnProperty('shareAdminRecords')) { + if (!Array.isArray(message.shareAdminRecords)) return 'shareAdminRecords: array expected'; for (let i = 0; i < message.shareAdminRecords.length; ++i) { let error = $root.Enterprise.ShareAdminRecord.verify(message.shareAdminRecords[i]); - if (error) - return "shareAdminRecords." + error; + if (error) return 'shareAdminRecords.' + error; } } return null; @@ -89154,32 +92092,38 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.SharedFolderRecord} SharedFolderRecord */ SharedFolderRecord.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.SharedFolderRecord) - return object; + if (object instanceof $root.Enterprise.SharedFolderRecord) return object; let message = new $root.Enterprise.SharedFolderRecord(); if (object.sharedFolderUid != null) - if (typeof object.sharedFolderUid === "string") - $util.base64.decode(object.sharedFolderUid, message.sharedFolderUid = $util.newBuffer($util.base64.length(object.sharedFolderUid)), 0); - else if (object.sharedFolderUid.length >= 0) - message.sharedFolderUid = object.sharedFolderUid; + if (typeof object.sharedFolderUid === 'string') + $util.base64.decode( + object.sharedFolderUid, + (message.sharedFolderUid = $util.newBuffer($util.base64.length(object.sharedFolderUid))), + 0 + ); + else if (object.sharedFolderUid.length >= 0) message.sharedFolderUid = object.sharedFolderUid; if (object.recordPermissions) { if (!Array.isArray(object.recordPermissions)) - throw TypeError(".Enterprise.SharedFolderRecord.recordPermissions: array expected"); + throw TypeError('.Enterprise.SharedFolderRecord.recordPermissions: array expected'); message.recordPermissions = []; for (let i = 0; i < object.recordPermissions.length; ++i) { - if (typeof object.recordPermissions[i] !== "object") - throw TypeError(".Enterprise.SharedFolderRecord.recordPermissions: object expected"); - message.recordPermissions[i] = $root.Enterprise.RecordPermission.fromObject(object.recordPermissions[i]); + if (typeof object.recordPermissions[i] !== 'object') + throw TypeError('.Enterprise.SharedFolderRecord.recordPermissions: object expected'); + message.recordPermissions[i] = $root.Enterprise.RecordPermission.fromObject( + object.recordPermissions[i] + ); } } if (object.shareAdminRecords) { if (!Array.isArray(object.shareAdminRecords)) - throw TypeError(".Enterprise.SharedFolderRecord.shareAdminRecords: array expected"); + throw TypeError('.Enterprise.SharedFolderRecord.shareAdminRecords: array expected'); message.shareAdminRecords = []; for (let i = 0; i < object.shareAdminRecords.length; ++i) { - if (typeof object.shareAdminRecords[i] !== "object") - throw TypeError(".Enterprise.SharedFolderRecord.shareAdminRecords: object expected"); - message.shareAdminRecords[i] = $root.Enterprise.ShareAdminRecord.fromObject(object.shareAdminRecords[i]); + if (typeof object.shareAdminRecords[i] !== 'object') + throw TypeError('.Enterprise.SharedFolderRecord.shareAdminRecords: object expected'); + message.shareAdminRecords[i] = $root.Enterprise.ShareAdminRecord.fromObject( + object.shareAdminRecords[i] + ); } } return message; @@ -89195,32 +92139,40 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ SharedFolderRecord.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.arrays || options.defaults) { object.recordPermissions = []; object.shareAdminRecords = []; } if (options.defaults) - if (options.bytes === String) - object.sharedFolderUid = ""; + if (options.bytes === String) object.sharedFolderUid = ''; else { object.sharedFolderUid = []; - if (options.bytes !== Array) - object.sharedFolderUid = $util.newBuffer(object.sharedFolderUid); - } - if (message.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) - object.sharedFolderUid = options.bytes === String ? $util.base64.encode(message.sharedFolderUid, 0, message.sharedFolderUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.sharedFolderUid) : message.sharedFolderUid; + if (options.bytes !== Array) object.sharedFolderUid = $util.newBuffer(object.sharedFolderUid); + } + if (message.sharedFolderUid != null && message.hasOwnProperty('sharedFolderUid')) + object.sharedFolderUid = + options.bytes === String + ? $util.base64.encode(message.sharedFolderUid, 0, message.sharedFolderUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.sharedFolderUid) + : message.sharedFolderUid; if (message.recordPermissions && message.recordPermissions.length) { object.recordPermissions = []; for (let j = 0; j < message.recordPermissions.length; ++j) - object.recordPermissions[j] = $root.Enterprise.RecordPermission.toObject(message.recordPermissions[j], options); + object.recordPermissions[j] = $root.Enterprise.RecordPermission.toObject( + message.recordPermissions[j], + options + ); } if (message.shareAdminRecords && message.shareAdminRecords.length) { object.shareAdminRecords = []; for (let j = 0; j < message.shareAdminRecords.length; ++j) - object.shareAdminRecords[j] = $root.Enterprise.ShareAdminRecord.toObject(message.shareAdminRecords[j], options); + object.shareAdminRecords[j] = $root.Enterprise.ShareAdminRecord.toObject( + message.shareAdminRecords[j], + options + ); } return object; }; @@ -89246,16 +92198,15 @@ export const Enterprise = $root.Enterprise = (() => { */ SharedFolderRecord.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.SharedFolderRecord"; + return typeUrlPrefix + '/Enterprise.SharedFolderRecord'; }; return SharedFolderRecord; })(); - Enterprise.ShareAdminRecord = (function() { - + Enterprise.ShareAdminRecord = (function () { /** * Properties of a ShareAdminRecord. * @memberof Enterprise @@ -89276,8 +92227,7 @@ export const Enterprise = $root.Enterprise = (() => { this.recordPermissionIndexes = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -89286,7 +92236,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.ShareAdminRecord * @instance */ - ShareAdminRecord.prototype.enterpriseUserId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + ShareAdminRecord.prototype.enterpriseUserId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * ShareAdminRecord recordPermissionIndexes. @@ -89318,12 +92268,11 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ ShareAdminRecord.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "enterpriseUserId")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.enterpriseUserId); + if (!writer) writer = $Writer.create(); + if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, 'enterpriseUserId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int64(message.enterpriseUserId); if (message.recordPermissionIndexes != null && message.recordPermissionIndexes.length) { - writer.uint32(/* id 2, wireType 2 =*/18).fork(); + writer.uint32(/* id 2, wireType 2 =*/ 18).fork(); for (let i = 0; i < message.recordPermissionIndexes.length; ++i) writer.int32(message.recordPermissionIndexes[i]); writer.ldelim(); @@ -89356,30 +92305,28 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ShareAdminRecord.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.ShareAdminRecord(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.ShareAdminRecord(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.enterpriseUserId = reader.int64(); break; } - case 2: { + case 2: { if (!(message.recordPermissionIndexes && message.recordPermissionIndexes.length)) message.recordPermissionIndexes = []; if ((tag & 7) === 2) { let end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.recordPermissionIndexes.push(reader.int32()); - } else - message.recordPermissionIndexes.push(reader.int32()); + while (reader.pos < end2) message.recordPermissionIndexes.push(reader.int32()); + } else message.recordPermissionIndexes.push(reader.int32()); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -89396,8 +92343,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ShareAdminRecord.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -89410,17 +92356,22 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ ShareAdminRecord.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (!$util.isInteger(message.enterpriseUserId) && !(message.enterpriseUserId && $util.isInteger(message.enterpriseUserId.low) && $util.isInteger(message.enterpriseUserId.high))) - return "enterpriseUserId: integer|Long expected"; - if (message.recordPermissionIndexes != null && message.hasOwnProperty("recordPermissionIndexes")) { - if (!Array.isArray(message.recordPermissionIndexes)) - return "recordPermissionIndexes: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.enterpriseUserId != null && message.hasOwnProperty('enterpriseUserId')) + if ( + !$util.isInteger(message.enterpriseUserId) && + !( + message.enterpriseUserId && + $util.isInteger(message.enterpriseUserId.low) && + $util.isInteger(message.enterpriseUserId.high) + ) + ) + return 'enterpriseUserId: integer|Long expected'; + if (message.recordPermissionIndexes != null && message.hasOwnProperty('recordPermissionIndexes')) { + if (!Array.isArray(message.recordPermissionIndexes)) return 'recordPermissionIndexes: array expected'; for (let i = 0; i < message.recordPermissionIndexes.length; ++i) if (!$util.isInteger(message.recordPermissionIndexes[i])) - return "recordPermissionIndexes: integer[] expected"; + return 'recordPermissionIndexes: integer[] expected'; } return null; }; @@ -89434,21 +92385,23 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.ShareAdminRecord} ShareAdminRecord */ ShareAdminRecord.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.ShareAdminRecord) - return object; + if (object instanceof $root.Enterprise.ShareAdminRecord) return object; let message = new $root.Enterprise.ShareAdminRecord(); if (object.enterpriseUserId != null) if ($util.Long) (message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId)).unsigned = false; - else if (typeof object.enterpriseUserId === "string") + else if (typeof object.enterpriseUserId === 'string') message.enterpriseUserId = parseInt(object.enterpriseUserId, 10); - else if (typeof object.enterpriseUserId === "number") + else if (typeof object.enterpriseUserId === 'number') message.enterpriseUserId = object.enterpriseUserId; - else if (typeof object.enterpriseUserId === "object") - message.enterpriseUserId = new $util.LongBits(object.enterpriseUserId.low >>> 0, object.enterpriseUserId.high >>> 0).toNumber(); + else if (typeof object.enterpriseUserId === 'object') + message.enterpriseUserId = new $util.LongBits( + object.enterpriseUserId.low >>> 0, + object.enterpriseUserId.high >>> 0 + ).toNumber(); if (object.recordPermissionIndexes) { if (!Array.isArray(object.recordPermissionIndexes)) - throw TypeError(".Enterprise.ShareAdminRecord.recordPermissionIndexes: array expected"); + throw TypeError('.Enterprise.ShareAdminRecord.recordPermissionIndexes: array expected'); message.recordPermissionIndexes = []; for (let i = 0; i < object.recordPermissionIndexes.length; ++i) message.recordPermissionIndexes[i] = object.recordPermissionIndexes[i] | 0; @@ -89466,22 +92419,29 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ ShareAdminRecord.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.recordPermissionIndexes = []; + if (options.arrays || options.defaults) object.recordPermissionIndexes = []; if (options.defaults) if ($util.Long) { let long = new $util.Long(0, 0, false); - object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.enterpriseUserId = options.longs === String ? "0" : 0; - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (typeof message.enterpriseUserId === "number") - object.enterpriseUserId = options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; + object.enterpriseUserId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.enterpriseUserId = options.longs === String ? '0' : 0; + if (message.enterpriseUserId != null && message.hasOwnProperty('enterpriseUserId')) + if (typeof message.enterpriseUserId === 'number') + object.enterpriseUserId = + options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; else - object.enterpriseUserId = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseUserId) : options.longs === Number ? new $util.LongBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0).toNumber() : message.enterpriseUserId; + object.enterpriseUserId = + options.longs === String + ? $util.Long.prototype.toString.call(message.enterpriseUserId) + : options.longs === Number + ? new $util.LongBits( + message.enterpriseUserId.low >>> 0, + message.enterpriseUserId.high >>> 0 + ).toNumber() + : message.enterpriseUserId; if (message.recordPermissionIndexes && message.recordPermissionIndexes.length) { object.recordPermissionIndexes = []; for (let j = 0; j < message.recordPermissionIndexes.length; ++j) @@ -89511,16 +92471,15 @@ export const Enterprise = $root.Enterprise = (() => { */ ShareAdminRecord.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.ShareAdminRecord"; + return typeUrlPrefix + '/Enterprise.ShareAdminRecord'; }; return ShareAdminRecord; })(); - Enterprise.SharedFolderUser = (function() { - + Enterprise.SharedFolderUser = (function () { /** * Properties of a SharedFolderUser. * @memberof Enterprise @@ -89541,8 +92500,7 @@ export const Enterprise = $root.Enterprise = (() => { this.enterpriseUserIds = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -89583,14 +92541,12 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ SharedFolderUser.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, "sharedFolderUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.sharedFolderUid); + if (!writer) writer = $Writer.create(); + if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, 'sharedFolderUid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.sharedFolderUid); if (message.enterpriseUserIds != null && message.enterpriseUserIds.length) { - writer.uint32(/* id 2, wireType 2 =*/18).fork(); - for (let i = 0; i < message.enterpriseUserIds.length; ++i) - writer.int64(message.enterpriseUserIds[i]); + writer.uint32(/* id 2, wireType 2 =*/ 18).fork(); + for (let i = 0; i < message.enterpriseUserIds.length; ++i) writer.int64(message.enterpriseUserIds[i]); writer.ldelim(); } return writer; @@ -89621,30 +92577,28 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SharedFolderUser.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.SharedFolderUser(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.SharedFolderUser(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.sharedFolderUid = reader.bytes(); break; } - case 2: { + case 2: { if (!(message.enterpriseUserIds && message.enterpriseUserIds.length)) message.enterpriseUserIds = []; if ((tag & 7) === 2) { let end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.enterpriseUserIds.push(reader.int64()); - } else - message.enterpriseUserIds.push(reader.int64()); + while (reader.pos < end2) message.enterpriseUserIds.push(reader.int64()); + } else message.enterpriseUserIds.push(reader.int64()); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -89661,8 +92615,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SharedFolderUser.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -89675,17 +92628,27 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ SharedFolderUser.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) - if (!(message.sharedFolderUid && typeof message.sharedFolderUid.length === "number" || $util.isString(message.sharedFolderUid))) - return "sharedFolderUid: buffer expected"; - if (message.enterpriseUserIds != null && message.hasOwnProperty("enterpriseUserIds")) { - if (!Array.isArray(message.enterpriseUserIds)) - return "enterpriseUserIds: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.sharedFolderUid != null && message.hasOwnProperty('sharedFolderUid')) + if ( + !( + (message.sharedFolderUid && typeof message.sharedFolderUid.length === 'number') || + $util.isString(message.sharedFolderUid) + ) + ) + return 'sharedFolderUid: buffer expected'; + if (message.enterpriseUserIds != null && message.hasOwnProperty('enterpriseUserIds')) { + if (!Array.isArray(message.enterpriseUserIds)) return 'enterpriseUserIds: array expected'; for (let i = 0; i < message.enterpriseUserIds.length; ++i) - if (!$util.isInteger(message.enterpriseUserIds[i]) && !(message.enterpriseUserIds[i] && $util.isInteger(message.enterpriseUserIds[i].low) && $util.isInteger(message.enterpriseUserIds[i].high))) - return "enterpriseUserIds: integer|Long[] expected"; + if ( + !$util.isInteger(message.enterpriseUserIds[i]) && + !( + message.enterpriseUserIds[i] && + $util.isInteger(message.enterpriseUserIds[i].low) && + $util.isInteger(message.enterpriseUserIds[i].high) + ) + ) + return 'enterpriseUserIds: integer|Long[] expected'; } return null; }; @@ -89699,27 +92662,33 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.SharedFolderUser} SharedFolderUser */ SharedFolderUser.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.SharedFolderUser) - return object; + if (object instanceof $root.Enterprise.SharedFolderUser) return object; let message = new $root.Enterprise.SharedFolderUser(); if (object.sharedFolderUid != null) - if (typeof object.sharedFolderUid === "string") - $util.base64.decode(object.sharedFolderUid, message.sharedFolderUid = $util.newBuffer($util.base64.length(object.sharedFolderUid)), 0); - else if (object.sharedFolderUid.length >= 0) - message.sharedFolderUid = object.sharedFolderUid; + if (typeof object.sharedFolderUid === 'string') + $util.base64.decode( + object.sharedFolderUid, + (message.sharedFolderUid = $util.newBuffer($util.base64.length(object.sharedFolderUid))), + 0 + ); + else if (object.sharedFolderUid.length >= 0) message.sharedFolderUid = object.sharedFolderUid; if (object.enterpriseUserIds) { if (!Array.isArray(object.enterpriseUserIds)) - throw TypeError(".Enterprise.SharedFolderUser.enterpriseUserIds: array expected"); + throw TypeError('.Enterprise.SharedFolderUser.enterpriseUserIds: array expected'); message.enterpriseUserIds = []; for (let i = 0; i < object.enterpriseUserIds.length; ++i) if ($util.Long) - (message.enterpriseUserIds[i] = $util.Long.fromValue(object.enterpriseUserIds[i])).unsigned = false; - else if (typeof object.enterpriseUserIds[i] === "string") + (message.enterpriseUserIds[i] = $util.Long.fromValue(object.enterpriseUserIds[i])).unsigned = + false; + else if (typeof object.enterpriseUserIds[i] === 'string') message.enterpriseUserIds[i] = parseInt(object.enterpriseUserIds[i], 10); - else if (typeof object.enterpriseUserIds[i] === "number") + else if (typeof object.enterpriseUserIds[i] === 'number') message.enterpriseUserIds[i] = object.enterpriseUserIds[i]; - else if (typeof object.enterpriseUserIds[i] === "object") - message.enterpriseUserIds[i] = new $util.LongBits(object.enterpriseUserIds[i].low >>> 0, object.enterpriseUserIds[i].high >>> 0).toNumber(); + else if (typeof object.enterpriseUserIds[i] === 'object') + message.enterpriseUserIds[i] = new $util.LongBits( + object.enterpriseUserIds[i].low >>> 0, + object.enterpriseUserIds[i].high >>> 0 + ).toNumber(); } return message; }; @@ -89734,28 +92703,40 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ SharedFolderUser.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.enterpriseUserIds = []; + if (options.arrays || options.defaults) object.enterpriseUserIds = []; if (options.defaults) - if (options.bytes === String) - object.sharedFolderUid = ""; + if (options.bytes === String) object.sharedFolderUid = ''; else { object.sharedFolderUid = []; - if (options.bytes !== Array) - object.sharedFolderUid = $util.newBuffer(object.sharedFolderUid); - } - if (message.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) - object.sharedFolderUid = options.bytes === String ? $util.base64.encode(message.sharedFolderUid, 0, message.sharedFolderUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.sharedFolderUid) : message.sharedFolderUid; + if (options.bytes !== Array) object.sharedFolderUid = $util.newBuffer(object.sharedFolderUid); + } + if (message.sharedFolderUid != null && message.hasOwnProperty('sharedFolderUid')) + object.sharedFolderUid = + options.bytes === String + ? $util.base64.encode(message.sharedFolderUid, 0, message.sharedFolderUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.sharedFolderUid) + : message.sharedFolderUid; if (message.enterpriseUserIds && message.enterpriseUserIds.length) { object.enterpriseUserIds = []; for (let j = 0; j < message.enterpriseUserIds.length; ++j) - if (typeof message.enterpriseUserIds[j] === "number") - object.enterpriseUserIds[j] = options.longs === String ? String(message.enterpriseUserIds[j]) : message.enterpriseUserIds[j]; + if (typeof message.enterpriseUserIds[j] === 'number') + object.enterpriseUserIds[j] = + options.longs === String + ? String(message.enterpriseUserIds[j]) + : message.enterpriseUserIds[j]; else - object.enterpriseUserIds[j] = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseUserIds[j]) : options.longs === Number ? new $util.LongBits(message.enterpriseUserIds[j].low >>> 0, message.enterpriseUserIds[j].high >>> 0).toNumber() : message.enterpriseUserIds[j]; + object.enterpriseUserIds[j] = + options.longs === String + ? $util.Long.prototype.toString.call(message.enterpriseUserIds[j]) + : options.longs === Number + ? new $util.LongBits( + message.enterpriseUserIds[j].low >>> 0, + message.enterpriseUserIds[j].high >>> 0 + ).toNumber() + : message.enterpriseUserIds[j]; } return object; }; @@ -89781,16 +92762,15 @@ export const Enterprise = $root.Enterprise = (() => { */ SharedFolderUser.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.SharedFolderUser"; + return typeUrlPrefix + '/Enterprise.SharedFolderUser'; }; return SharedFolderUser; })(); - Enterprise.SharedFolderTeam = (function() { - + Enterprise.SharedFolderTeam = (function () { /** * Properties of a SharedFolderTeam. * @memberof Enterprise @@ -89811,8 +92791,7 @@ export const Enterprise = $root.Enterprise = (() => { this.teamUids = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -89853,13 +92832,12 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ SharedFolderTeam.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, "sharedFolderUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.sharedFolderUid); + if (!writer) writer = $Writer.create(); + if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, 'sharedFolderUid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.sharedFolderUid); if (message.teamUids != null && message.teamUids.length) for (let i = 0; i < message.teamUids.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.teamUids[i]); + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.teamUids[i]); return writer; }; @@ -89888,25 +92866,24 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SharedFolderTeam.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.SharedFolderTeam(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.SharedFolderTeam(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.sharedFolderUid = reader.bytes(); break; } - case 2: { - if (!(message.teamUids && message.teamUids.length)) - message.teamUids = []; + case 2: { + if (!(message.teamUids && message.teamUids.length)) message.teamUids = []; message.teamUids.push(reader.bytes()); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -89923,8 +92900,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SharedFolderTeam.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -89937,17 +92913,25 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ SharedFolderTeam.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) - if (!(message.sharedFolderUid && typeof message.sharedFolderUid.length === "number" || $util.isString(message.sharedFolderUid))) - return "sharedFolderUid: buffer expected"; - if (message.teamUids != null && message.hasOwnProperty("teamUids")) { - if (!Array.isArray(message.teamUids)) - return "teamUids: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.sharedFolderUid != null && message.hasOwnProperty('sharedFolderUid')) + if ( + !( + (message.sharedFolderUid && typeof message.sharedFolderUid.length === 'number') || + $util.isString(message.sharedFolderUid) + ) + ) + return 'sharedFolderUid: buffer expected'; + if (message.teamUids != null && message.hasOwnProperty('teamUids')) { + if (!Array.isArray(message.teamUids)) return 'teamUids: array expected'; for (let i = 0; i < message.teamUids.length; ++i) - if (!(message.teamUids[i] && typeof message.teamUids[i].length === "number" || $util.isString(message.teamUids[i]))) - return "teamUids: buffer[] expected"; + if ( + !( + (message.teamUids[i] && typeof message.teamUids[i].length === 'number') || + $util.isString(message.teamUids[i]) + ) + ) + return 'teamUids: buffer[] expected'; } return null; }; @@ -89961,23 +92945,28 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.SharedFolderTeam} SharedFolderTeam */ SharedFolderTeam.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.SharedFolderTeam) - return object; + if (object instanceof $root.Enterprise.SharedFolderTeam) return object; let message = new $root.Enterprise.SharedFolderTeam(); if (object.sharedFolderUid != null) - if (typeof object.sharedFolderUid === "string") - $util.base64.decode(object.sharedFolderUid, message.sharedFolderUid = $util.newBuffer($util.base64.length(object.sharedFolderUid)), 0); - else if (object.sharedFolderUid.length >= 0) - message.sharedFolderUid = object.sharedFolderUid; + if (typeof object.sharedFolderUid === 'string') + $util.base64.decode( + object.sharedFolderUid, + (message.sharedFolderUid = $util.newBuffer($util.base64.length(object.sharedFolderUid))), + 0 + ); + else if (object.sharedFolderUid.length >= 0) message.sharedFolderUid = object.sharedFolderUid; if (object.teamUids) { if (!Array.isArray(object.teamUids)) - throw TypeError(".Enterprise.SharedFolderTeam.teamUids: array expected"); + throw TypeError('.Enterprise.SharedFolderTeam.teamUids: array expected'); message.teamUids = []; for (let i = 0; i < object.teamUids.length; ++i) - if (typeof object.teamUids[i] === "string") - $util.base64.decode(object.teamUids[i], message.teamUids[i] = $util.newBuffer($util.base64.length(object.teamUids[i])), 0); - else if (object.teamUids[i].length >= 0) - message.teamUids[i] = object.teamUids[i]; + if (typeof object.teamUids[i] === 'string') + $util.base64.decode( + object.teamUids[i], + (message.teamUids[i] = $util.newBuffer($util.base64.length(object.teamUids[i]))), + 0 + ); + else if (object.teamUids[i].length >= 0) message.teamUids[i] = object.teamUids[i]; } return message; }; @@ -89992,25 +92981,31 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ SharedFolderTeam.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.teamUids = []; + if (options.arrays || options.defaults) object.teamUids = []; if (options.defaults) - if (options.bytes === String) - object.sharedFolderUid = ""; + if (options.bytes === String) object.sharedFolderUid = ''; else { object.sharedFolderUid = []; - if (options.bytes !== Array) - object.sharedFolderUid = $util.newBuffer(object.sharedFolderUid); - } - if (message.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) - object.sharedFolderUid = options.bytes === String ? $util.base64.encode(message.sharedFolderUid, 0, message.sharedFolderUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.sharedFolderUid) : message.sharedFolderUid; + if (options.bytes !== Array) object.sharedFolderUid = $util.newBuffer(object.sharedFolderUid); + } + if (message.sharedFolderUid != null && message.hasOwnProperty('sharedFolderUid')) + object.sharedFolderUid = + options.bytes === String + ? $util.base64.encode(message.sharedFolderUid, 0, message.sharedFolderUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.sharedFolderUid) + : message.sharedFolderUid; if (message.teamUids && message.teamUids.length) { object.teamUids = []; for (let j = 0; j < message.teamUids.length; ++j) - object.teamUids[j] = options.bytes === String ? $util.base64.encode(message.teamUids[j], 0, message.teamUids[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.teamUids[j]) : message.teamUids[j]; + object.teamUids[j] = + options.bytes === String + ? $util.base64.encode(message.teamUids[j], 0, message.teamUids[j].length) + : options.bytes === Array + ? Array.prototype.slice.call(message.teamUids[j]) + : message.teamUids[j]; } return object; }; @@ -90036,16 +93031,15 @@ export const Enterprise = $root.Enterprise = (() => { */ SharedFolderTeam.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.SharedFolderTeam"; + return typeUrlPrefix + '/Enterprise.SharedFolderTeam'; }; return SharedFolderTeam; })(); - Enterprise.GetComplianceReportRequest = (function() { - + Enterprise.GetComplianceReportRequest = (function () { /** * Properties of a GetComplianceReportRequest. * @memberof Enterprise @@ -90064,8 +93058,7 @@ export const Enterprise = $root.Enterprise = (() => { function GetComplianceReportRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -90098,10 +93091,9 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ GetComplianceReportRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.reportUid != null && Object.hasOwnProperty.call(message, "reportUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.reportUid); + if (!writer) writer = $Writer.create(); + if (message.reportUid != null && Object.hasOwnProperty.call(message, 'reportUid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.reportUid); return writer; }; @@ -90130,19 +93122,19 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ GetComplianceReportRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.GetComplianceReportRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.GetComplianceReportRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.reportUid = reader.bytes(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -90159,8 +93151,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ GetComplianceReportRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -90173,11 +93164,15 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ GetComplianceReportRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.reportUid != null && message.hasOwnProperty("reportUid")) - if (!(message.reportUid && typeof message.reportUid.length === "number" || $util.isString(message.reportUid))) - return "reportUid: buffer expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.reportUid != null && message.hasOwnProperty('reportUid')) + if ( + !( + (message.reportUid && typeof message.reportUid.length === 'number') || + $util.isString(message.reportUid) + ) + ) + return 'reportUid: buffer expected'; return null; }; @@ -90190,14 +93185,16 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.GetComplianceReportRequest} GetComplianceReportRequest */ GetComplianceReportRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.GetComplianceReportRequest) - return object; + if (object instanceof $root.Enterprise.GetComplianceReportRequest) return object; let message = new $root.Enterprise.GetComplianceReportRequest(); if (object.reportUid != null) - if (typeof object.reportUid === "string") - $util.base64.decode(object.reportUid, message.reportUid = $util.newBuffer($util.base64.length(object.reportUid)), 0); - else if (object.reportUid.length >= 0) - message.reportUid = object.reportUid; + if (typeof object.reportUid === 'string') + $util.base64.decode( + object.reportUid, + (message.reportUid = $util.newBuffer($util.base64.length(object.reportUid))), + 0 + ); + else if (object.reportUid.length >= 0) message.reportUid = object.reportUid; return message; }; @@ -90211,19 +93208,21 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ GetComplianceReportRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) - if (options.bytes === String) - object.reportUid = ""; + if (options.bytes === String) object.reportUid = ''; else { object.reportUid = []; - if (options.bytes !== Array) - object.reportUid = $util.newBuffer(object.reportUid); + if (options.bytes !== Array) object.reportUid = $util.newBuffer(object.reportUid); } - if (message.reportUid != null && message.hasOwnProperty("reportUid")) - object.reportUid = options.bytes === String ? $util.base64.encode(message.reportUid, 0, message.reportUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.reportUid) : message.reportUid; + if (message.reportUid != null && message.hasOwnProperty('reportUid')) + object.reportUid = + options.bytes === String + ? $util.base64.encode(message.reportUid, 0, message.reportUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.reportUid) + : message.reportUid; return object; }; @@ -90248,16 +93247,15 @@ export const Enterprise = $root.Enterprise = (() => { */ GetComplianceReportRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.GetComplianceReportRequest"; + return typeUrlPrefix + '/Enterprise.GetComplianceReportRequest'; }; return GetComplianceReportRequest; })(); - Enterprise.GetComplianceReportResponse = (function() { - + Enterprise.GetComplianceReportResponse = (function () { /** * Properties of a GetComplianceReportResponse. * @memberof Enterprise @@ -90276,8 +93274,7 @@ export const Enterprise = $root.Enterprise = (() => { function GetComplianceReportResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -90286,7 +93283,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.GetComplianceReportResponse * @instance */ - GetComplianceReportResponse.prototype.downloadUrl = ""; + GetComplianceReportResponse.prototype.downloadUrl = ''; /** * Creates a new GetComplianceReportResponse instance using the specified properties. @@ -90310,10 +93307,9 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ GetComplianceReportResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.downloadUrl != null && Object.hasOwnProperty.call(message, "downloadUrl")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.downloadUrl); + if (!writer) writer = $Writer.create(); + if (message.downloadUrl != null && Object.hasOwnProperty.call(message, 'downloadUrl')) + writer.uint32(/* id 1, wireType 2 =*/ 10).string(message.downloadUrl); return writer; }; @@ -90342,19 +93338,19 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ GetComplianceReportResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.GetComplianceReportResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.GetComplianceReportResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.downloadUrl = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -90371,8 +93367,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ GetComplianceReportResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -90385,11 +93380,9 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ GetComplianceReportResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.downloadUrl != null && message.hasOwnProperty("downloadUrl")) - if (!$util.isString(message.downloadUrl)) - return "downloadUrl: string expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.downloadUrl != null && message.hasOwnProperty('downloadUrl')) + if (!$util.isString(message.downloadUrl)) return 'downloadUrl: string expected'; return null; }; @@ -90402,11 +93395,9 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.GetComplianceReportResponse} GetComplianceReportResponse */ GetComplianceReportResponse.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.GetComplianceReportResponse) - return object; + if (object instanceof $root.Enterprise.GetComplianceReportResponse) return object; let message = new $root.Enterprise.GetComplianceReportResponse(); - if (object.downloadUrl != null) - message.downloadUrl = String(object.downloadUrl); + if (object.downloadUrl != null) message.downloadUrl = String(object.downloadUrl); return message; }; @@ -90420,12 +93411,10 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ GetComplianceReportResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.defaults) - object.downloadUrl = ""; - if (message.downloadUrl != null && message.hasOwnProperty("downloadUrl")) + if (options.defaults) object.downloadUrl = ''; + if (message.downloadUrl != null && message.hasOwnProperty('downloadUrl')) object.downloadUrl = message.downloadUrl; return object; }; @@ -90451,16 +93440,15 @@ export const Enterprise = $root.Enterprise = (() => { */ GetComplianceReportResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.GetComplianceReportResponse"; + return typeUrlPrefix + '/Enterprise.GetComplianceReportResponse'; }; return GetComplianceReportResponse; })(); - Enterprise.ComplianceReportCriteriaRequest = (function() { - + Enterprise.ComplianceReportCriteriaRequest = (function () { /** * Properties of a ComplianceReportCriteriaRequest. * @memberof Enterprise @@ -90479,8 +93467,7 @@ export const Enterprise = $root.Enterprise = (() => { function ComplianceReportCriteriaRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -90513,10 +93500,9 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ ComplianceReportCriteriaRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.criteriaUid != null && Object.hasOwnProperty.call(message, "criteriaUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.criteriaUid); + if (!writer) writer = $Writer.create(); + if (message.criteriaUid != null && Object.hasOwnProperty.call(message, 'criteriaUid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.criteriaUid); return writer; }; @@ -90545,19 +93531,19 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ComplianceReportCriteriaRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.ComplianceReportCriteriaRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.ComplianceReportCriteriaRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.criteriaUid = reader.bytes(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -90574,8 +93560,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ComplianceReportCriteriaRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -90588,11 +93573,15 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ ComplianceReportCriteriaRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.criteriaUid != null && message.hasOwnProperty("criteriaUid")) - if (!(message.criteriaUid && typeof message.criteriaUid.length === "number" || $util.isString(message.criteriaUid))) - return "criteriaUid: buffer expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.criteriaUid != null && message.hasOwnProperty('criteriaUid')) + if ( + !( + (message.criteriaUid && typeof message.criteriaUid.length === 'number') || + $util.isString(message.criteriaUid) + ) + ) + return 'criteriaUid: buffer expected'; return null; }; @@ -90605,14 +93594,16 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.ComplianceReportCriteriaRequest} ComplianceReportCriteriaRequest */ ComplianceReportCriteriaRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.ComplianceReportCriteriaRequest) - return object; + if (object instanceof $root.Enterprise.ComplianceReportCriteriaRequest) return object; let message = new $root.Enterprise.ComplianceReportCriteriaRequest(); if (object.criteriaUid != null) - if (typeof object.criteriaUid === "string") - $util.base64.decode(object.criteriaUid, message.criteriaUid = $util.newBuffer($util.base64.length(object.criteriaUid)), 0); - else if (object.criteriaUid.length >= 0) - message.criteriaUid = object.criteriaUid; + if (typeof object.criteriaUid === 'string') + $util.base64.decode( + object.criteriaUid, + (message.criteriaUid = $util.newBuffer($util.base64.length(object.criteriaUid))), + 0 + ); + else if (object.criteriaUid.length >= 0) message.criteriaUid = object.criteriaUid; return message; }; @@ -90626,19 +93617,21 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ ComplianceReportCriteriaRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) - if (options.bytes === String) - object.criteriaUid = ""; + if (options.bytes === String) object.criteriaUid = ''; else { object.criteriaUid = []; - if (options.bytes !== Array) - object.criteriaUid = $util.newBuffer(object.criteriaUid); + if (options.bytes !== Array) object.criteriaUid = $util.newBuffer(object.criteriaUid); } - if (message.criteriaUid != null && message.hasOwnProperty("criteriaUid")) - object.criteriaUid = options.bytes === String ? $util.base64.encode(message.criteriaUid, 0, message.criteriaUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.criteriaUid) : message.criteriaUid; + if (message.criteriaUid != null && message.hasOwnProperty('criteriaUid')) + object.criteriaUid = + options.bytes === String + ? $util.base64.encode(message.criteriaUid, 0, message.criteriaUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.criteriaUid) + : message.criteriaUid; return object; }; @@ -90663,16 +93656,15 @@ export const Enterprise = $root.Enterprise = (() => { */ ComplianceReportCriteriaRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.ComplianceReportCriteriaRequest"; + return typeUrlPrefix + '/Enterprise.ComplianceReportCriteriaRequest'; }; return ComplianceReportCriteriaRequest; })(); - Enterprise.SaveComplianceReportCriteriaResponse = (function() { - + Enterprise.SaveComplianceReportCriteriaResponse = (function () { /** * Properties of a SaveComplianceReportCriteriaResponse. * @memberof Enterprise @@ -90691,8 +93683,7 @@ export const Enterprise = $root.Enterprise = (() => { function SaveComplianceReportCriteriaResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -90725,10 +93716,9 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ SaveComplianceReportCriteriaResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.criteriaUid != null && Object.hasOwnProperty.call(message, "criteriaUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.criteriaUid); + if (!writer) writer = $Writer.create(); + if (message.criteriaUid != null && Object.hasOwnProperty.call(message, 'criteriaUid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.criteriaUid); return writer; }; @@ -90757,19 +93747,19 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SaveComplianceReportCriteriaResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.SaveComplianceReportCriteriaResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.SaveComplianceReportCriteriaResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.criteriaUid = reader.bytes(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -90786,8 +93776,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SaveComplianceReportCriteriaResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -90800,11 +93789,15 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ SaveComplianceReportCriteriaResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.criteriaUid != null && message.hasOwnProperty("criteriaUid")) - if (!(message.criteriaUid && typeof message.criteriaUid.length === "number" || $util.isString(message.criteriaUid))) - return "criteriaUid: buffer expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.criteriaUid != null && message.hasOwnProperty('criteriaUid')) + if ( + !( + (message.criteriaUid && typeof message.criteriaUid.length === 'number') || + $util.isString(message.criteriaUid) + ) + ) + return 'criteriaUid: buffer expected'; return null; }; @@ -90817,14 +93810,16 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.SaveComplianceReportCriteriaResponse} SaveComplianceReportCriteriaResponse */ SaveComplianceReportCriteriaResponse.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.SaveComplianceReportCriteriaResponse) - return object; + if (object instanceof $root.Enterprise.SaveComplianceReportCriteriaResponse) return object; let message = new $root.Enterprise.SaveComplianceReportCriteriaResponse(); if (object.criteriaUid != null) - if (typeof object.criteriaUid === "string") - $util.base64.decode(object.criteriaUid, message.criteriaUid = $util.newBuffer($util.base64.length(object.criteriaUid)), 0); - else if (object.criteriaUid.length >= 0) - message.criteriaUid = object.criteriaUid; + if (typeof object.criteriaUid === 'string') + $util.base64.decode( + object.criteriaUid, + (message.criteriaUid = $util.newBuffer($util.base64.length(object.criteriaUid))), + 0 + ); + else if (object.criteriaUid.length >= 0) message.criteriaUid = object.criteriaUid; return message; }; @@ -90838,19 +93833,21 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ SaveComplianceReportCriteriaResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) - if (options.bytes === String) - object.criteriaUid = ""; + if (options.bytes === String) object.criteriaUid = ''; else { object.criteriaUid = []; - if (options.bytes !== Array) - object.criteriaUid = $util.newBuffer(object.criteriaUid); + if (options.bytes !== Array) object.criteriaUid = $util.newBuffer(object.criteriaUid); } - if (message.criteriaUid != null && message.hasOwnProperty("criteriaUid")) - object.criteriaUid = options.bytes === String ? $util.base64.encode(message.criteriaUid, 0, message.criteriaUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.criteriaUid) : message.criteriaUid; + if (message.criteriaUid != null && message.hasOwnProperty('criteriaUid')) + object.criteriaUid = + options.bytes === String + ? $util.base64.encode(message.criteriaUid, 0, message.criteriaUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.criteriaUid) + : message.criteriaUid; return object; }; @@ -90875,16 +93872,15 @@ export const Enterprise = $root.Enterprise = (() => { */ SaveComplianceReportCriteriaResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.SaveComplianceReportCriteriaResponse"; + return typeUrlPrefix + '/Enterprise.SaveComplianceReportCriteriaResponse'; }; return SaveComplianceReportCriteriaResponse; })(); - Enterprise.LinkedRecord = (function() { - + Enterprise.LinkedRecord = (function () { /** * Properties of a LinkedRecord. * @memberof Enterprise @@ -90905,8 +93901,7 @@ export const Enterprise = $root.Enterprise = (() => { this.recordUids = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -90947,13 +93942,12 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ LinkedRecord.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.ownerUid != null && Object.hasOwnProperty.call(message, "ownerUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.ownerUid); + if (!writer) writer = $Writer.create(); + if (message.ownerUid != null && Object.hasOwnProperty.call(message, 'ownerUid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.ownerUid); if (message.recordUids != null && message.recordUids.length) for (let i = 0; i < message.recordUids.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.recordUids[i]); + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.recordUids[i]); return writer; }; @@ -90982,25 +93976,24 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ LinkedRecord.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.LinkedRecord(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.LinkedRecord(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.ownerUid = reader.bytes(); break; } - case 2: { - if (!(message.recordUids && message.recordUids.length)) - message.recordUids = []; + case 2: { + if (!(message.recordUids && message.recordUids.length)) message.recordUids = []; message.recordUids.push(reader.bytes()); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -91017,8 +94010,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ LinkedRecord.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -91031,17 +94023,25 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ LinkedRecord.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.ownerUid != null && message.hasOwnProperty("ownerUid")) - if (!(message.ownerUid && typeof message.ownerUid.length === "number" || $util.isString(message.ownerUid))) - return "ownerUid: buffer expected"; - if (message.recordUids != null && message.hasOwnProperty("recordUids")) { - if (!Array.isArray(message.recordUids)) - return "recordUids: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.ownerUid != null && message.hasOwnProperty('ownerUid')) + if ( + !( + (message.ownerUid && typeof message.ownerUid.length === 'number') || + $util.isString(message.ownerUid) + ) + ) + return 'ownerUid: buffer expected'; + if (message.recordUids != null && message.hasOwnProperty('recordUids')) { + if (!Array.isArray(message.recordUids)) return 'recordUids: array expected'; for (let i = 0; i < message.recordUids.length; ++i) - if (!(message.recordUids[i] && typeof message.recordUids[i].length === "number" || $util.isString(message.recordUids[i]))) - return "recordUids: buffer[] expected"; + if ( + !( + (message.recordUids[i] && typeof message.recordUids[i].length === 'number') || + $util.isString(message.recordUids[i]) + ) + ) + return 'recordUids: buffer[] expected'; } return null; }; @@ -91055,23 +94055,28 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.LinkedRecord} LinkedRecord */ LinkedRecord.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.LinkedRecord) - return object; + if (object instanceof $root.Enterprise.LinkedRecord) return object; let message = new $root.Enterprise.LinkedRecord(); if (object.ownerUid != null) - if (typeof object.ownerUid === "string") - $util.base64.decode(object.ownerUid, message.ownerUid = $util.newBuffer($util.base64.length(object.ownerUid)), 0); - else if (object.ownerUid.length >= 0) - message.ownerUid = object.ownerUid; + if (typeof object.ownerUid === 'string') + $util.base64.decode( + object.ownerUid, + (message.ownerUid = $util.newBuffer($util.base64.length(object.ownerUid))), + 0 + ); + else if (object.ownerUid.length >= 0) message.ownerUid = object.ownerUid; if (object.recordUids) { if (!Array.isArray(object.recordUids)) - throw TypeError(".Enterprise.LinkedRecord.recordUids: array expected"); + throw TypeError('.Enterprise.LinkedRecord.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 (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; }; @@ -91086,25 +94091,31 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ LinkedRecord.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.recordUids = []; + if (options.arrays || options.defaults) object.recordUids = []; if (options.defaults) - if (options.bytes === String) - object.ownerUid = ""; + if (options.bytes === String) object.ownerUid = ''; else { object.ownerUid = []; - if (options.bytes !== Array) - object.ownerUid = $util.newBuffer(object.ownerUid); - } - if (message.ownerUid != null && message.hasOwnProperty("ownerUid")) - object.ownerUid = options.bytes === String ? $util.base64.encode(message.ownerUid, 0, message.ownerUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.ownerUid) : message.ownerUid; + if (options.bytes !== Array) object.ownerUid = $util.newBuffer(object.ownerUid); + } + if (message.ownerUid != null && message.hasOwnProperty('ownerUid')) + object.ownerUid = + options.bytes === String + ? $util.base64.encode(message.ownerUid, 0, message.ownerUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.ownerUid) + : message.ownerUid; 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]; + 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; }; @@ -91130,16 +94141,15 @@ export const Enterprise = $root.Enterprise = (() => { */ LinkedRecord.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.LinkedRecord"; + return typeUrlPrefix + '/Enterprise.LinkedRecord'; }; return LinkedRecord; })(); - Enterprise.GetSharingAdminsRequest = (function() { - + Enterprise.GetSharingAdminsRequest = (function () { /** * Properties of a GetSharingAdminsRequest. * @memberof Enterprise @@ -91160,8 +94170,7 @@ export const Enterprise = $root.Enterprise = (() => { function GetSharingAdminsRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -91186,7 +94195,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.GetSharingAdminsRequest * @instance */ - GetSharingAdminsRequest.prototype.username = ""; + GetSharingAdminsRequest.prototype.username = ''; /** * Creates a new GetSharingAdminsRequest instance using the specified properties. @@ -91210,14 +94219,13 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ GetSharingAdminsRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, "sharedFolderUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.sharedFolderUid); - if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.recordUid); - if (message.username != null && Object.hasOwnProperty.call(message, "username")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.username); + if (!writer) writer = $Writer.create(); + if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, 'sharedFolderUid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.sharedFolderUid); + if (message.recordUid != null && Object.hasOwnProperty.call(message, 'recordUid')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.recordUid); + if (message.username != null && Object.hasOwnProperty.call(message, 'username')) + writer.uint32(/* id 3, wireType 2 =*/ 26).string(message.username); return writer; }; @@ -91246,27 +94254,27 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ GetSharingAdminsRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.GetSharingAdminsRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.GetSharingAdminsRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.sharedFolderUid = reader.bytes(); break; } - case 2: { + case 2: { message.recordUid = reader.bytes(); break; } - case 3: { + case 3: { message.username = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -91283,8 +94291,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ GetSharingAdminsRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -91297,17 +94304,25 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ GetSharingAdminsRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) - if (!(message.sharedFolderUid && typeof message.sharedFolderUid.length === "number" || $util.isString(message.sharedFolderUid))) - return "sharedFolderUid: buffer expected"; - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) - return "recordUid: buffer expected"; - if (message.username != null && message.hasOwnProperty("username")) - if (!$util.isString(message.username)) - return "username: string expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.sharedFolderUid != null && message.hasOwnProperty('sharedFolderUid')) + if ( + !( + (message.sharedFolderUid && typeof message.sharedFolderUid.length === 'number') || + $util.isString(message.sharedFolderUid) + ) + ) + return 'sharedFolderUid: buffer expected'; + if (message.recordUid != null && message.hasOwnProperty('recordUid')) + if ( + !( + (message.recordUid && typeof message.recordUid.length === 'number') || + $util.isString(message.recordUid) + ) + ) + return 'recordUid: buffer expected'; + if (message.username != null && message.hasOwnProperty('username')) + if (!$util.isString(message.username)) return 'username: string expected'; return null; }; @@ -91320,21 +94335,25 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.GetSharingAdminsRequest} GetSharingAdminsRequest */ GetSharingAdminsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.GetSharingAdminsRequest) - return object; + if (object instanceof $root.Enterprise.GetSharingAdminsRequest) return object; let message = new $root.Enterprise.GetSharingAdminsRequest(); if (object.sharedFolderUid != null) - if (typeof object.sharedFolderUid === "string") - $util.base64.decode(object.sharedFolderUid, message.sharedFolderUid = $util.newBuffer($util.base64.length(object.sharedFolderUid)), 0); - else if (object.sharedFolderUid.length >= 0) - message.sharedFolderUid = object.sharedFolderUid; + if (typeof object.sharedFolderUid === 'string') + $util.base64.decode( + object.sharedFolderUid, + (message.sharedFolderUid = $util.newBuffer($util.base64.length(object.sharedFolderUid))), + 0 + ); + else if (object.sharedFolderUid.length >= 0) message.sharedFolderUid = object.sharedFolderUid; 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.username != null) - message.username = String(object.username); + 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.username != null) message.username = String(object.username); return message; }; @@ -91348,32 +94367,36 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ GetSharingAdminsRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.sharedFolderUid = ""; + if (options.bytes === String) object.sharedFolderUid = ''; else { object.sharedFolderUid = []; - if (options.bytes !== Array) - object.sharedFolderUid = $util.newBuffer(object.sharedFolderUid); + if (options.bytes !== Array) object.sharedFolderUid = $util.newBuffer(object.sharedFolderUid); } - if (options.bytes === String) - object.recordUid = ""; + if (options.bytes === String) object.recordUid = ''; else { object.recordUid = []; - if (options.bytes !== Array) - object.recordUid = $util.newBuffer(object.recordUid); + if (options.bytes !== Array) object.recordUid = $util.newBuffer(object.recordUid); } - object.username = ""; + object.username = ''; } - if (message.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) - object.sharedFolderUid = options.bytes === String ? $util.base64.encode(message.sharedFolderUid, 0, message.sharedFolderUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.sharedFolderUid) : message.sharedFolderUid; - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; - if (message.username != null && message.hasOwnProperty("username")) - object.username = message.username; + if (message.sharedFolderUid != null && message.hasOwnProperty('sharedFolderUid')) + object.sharedFolderUid = + options.bytes === String + ? $util.base64.encode(message.sharedFolderUid, 0, message.sharedFolderUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.sharedFolderUid) + : message.sharedFolderUid; + if (message.recordUid != null && message.hasOwnProperty('recordUid')) + object.recordUid = + options.bytes === String + ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.recordUid) + : message.recordUid; + if (message.username != null && message.hasOwnProperty('username')) object.username = message.username; return object; }; @@ -91398,16 +94421,15 @@ export const Enterprise = $root.Enterprise = (() => { */ GetSharingAdminsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.GetSharingAdminsRequest"; + return typeUrlPrefix + '/Enterprise.GetSharingAdminsRequest'; }; return GetSharingAdminsRequest; })(); - Enterprise.UserProfileExt = (function() { - + Enterprise.UserProfileExt = (function () { /** * Properties of a UserProfileExt. * @memberof Enterprise @@ -91433,8 +94455,7 @@ export const Enterprise = $root.Enterprise = (() => { function UserProfileExt(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -91443,7 +94464,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.UserProfileExt * @instance */ - UserProfileExt.prototype.email = ""; + UserProfileExt.prototype.email = ''; /** * UserProfileExt fullName. @@ -91451,7 +94472,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.UserProfileExt * @instance */ - UserProfileExt.prototype.fullName = ""; + UserProfileExt.prototype.fullName = ''; /** * UserProfileExt jobTitle. @@ -91459,7 +94480,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.UserProfileExt * @instance */ - UserProfileExt.prototype.jobTitle = ""; + UserProfileExt.prototype.jobTitle = ''; /** * UserProfileExt isMSPMCAdmin. @@ -91523,24 +94544,29 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ UserProfileExt.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.email != null && Object.hasOwnProperty.call(message, "email")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.email); - if (message.fullName != null && Object.hasOwnProperty.call(message, "fullName")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.fullName); - if (message.jobTitle != null && Object.hasOwnProperty.call(message, "jobTitle")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.jobTitle); - if (message.isMSPMCAdmin != null && Object.hasOwnProperty.call(message, "isMSPMCAdmin")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.isMSPMCAdmin); - if (message.isInSharedFolder != null && Object.hasOwnProperty.call(message, "isInSharedFolder")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.isInSharedFolder); - if (message.isShareAdminForRequestedObject != null && Object.hasOwnProperty.call(message, "isShareAdminForRequestedObject")) - writer.uint32(/* id 6, wireType 0 =*/48).bool(message.isShareAdminForRequestedObject); - if (message.isShareAdminForSharedFolderOwner != null && Object.hasOwnProperty.call(message, "isShareAdminForSharedFolderOwner")) - writer.uint32(/* id 7, wireType 0 =*/56).bool(message.isShareAdminForSharedFolderOwner); - if (message.hasAccessToObject != null && Object.hasOwnProperty.call(message, "hasAccessToObject")) - writer.uint32(/* id 8, wireType 0 =*/64).bool(message.hasAccessToObject); + if (!writer) writer = $Writer.create(); + if (message.email != null && Object.hasOwnProperty.call(message, 'email')) + writer.uint32(/* id 1, wireType 2 =*/ 10).string(message.email); + if (message.fullName != null && Object.hasOwnProperty.call(message, 'fullName')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.fullName); + if (message.jobTitle != null && Object.hasOwnProperty.call(message, 'jobTitle')) + writer.uint32(/* id 3, wireType 2 =*/ 26).string(message.jobTitle); + if (message.isMSPMCAdmin != null && Object.hasOwnProperty.call(message, 'isMSPMCAdmin')) + writer.uint32(/* id 4, wireType 0 =*/ 32).bool(message.isMSPMCAdmin); + if (message.isInSharedFolder != null && Object.hasOwnProperty.call(message, 'isInSharedFolder')) + writer.uint32(/* id 5, wireType 0 =*/ 40).bool(message.isInSharedFolder); + if ( + message.isShareAdminForRequestedObject != null && + Object.hasOwnProperty.call(message, 'isShareAdminForRequestedObject') + ) + writer.uint32(/* id 6, wireType 0 =*/ 48).bool(message.isShareAdminForRequestedObject); + if ( + message.isShareAdminForSharedFolderOwner != null && + Object.hasOwnProperty.call(message, 'isShareAdminForSharedFolderOwner') + ) + writer.uint32(/* id 7, wireType 0 =*/ 56).bool(message.isShareAdminForSharedFolderOwner); + if (message.hasAccessToObject != null && Object.hasOwnProperty.call(message, 'hasAccessToObject')) + writer.uint32(/* id 8, wireType 0 =*/ 64).bool(message.hasAccessToObject); return writer; }; @@ -91569,47 +94595,47 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ UserProfileExt.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.UserProfileExt(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.UserProfileExt(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.email = reader.string(); break; } - case 2: { + case 2: { message.fullName = reader.string(); break; } - case 3: { + case 3: { message.jobTitle = reader.string(); break; } - case 4: { + case 4: { message.isMSPMCAdmin = reader.bool(); break; } - case 5: { + case 5: { message.isInSharedFolder = reader.bool(); break; } - case 6: { + case 6: { message.isShareAdminForRequestedObject = reader.bool(); break; } - case 7: { + case 7: { message.isShareAdminForSharedFolderOwner = reader.bool(); break; } - case 8: { + case 8: { message.hasAccessToObject = reader.bool(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -91626,8 +94652,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ UserProfileExt.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -91640,32 +94665,31 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ UserProfileExt.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.email != null && message.hasOwnProperty("email")) - if (!$util.isString(message.email)) - return "email: string expected"; - if (message.fullName != null && message.hasOwnProperty("fullName")) - if (!$util.isString(message.fullName)) - return "fullName: string expected"; - if (message.jobTitle != null && message.hasOwnProperty("jobTitle")) - if (!$util.isString(message.jobTitle)) - return "jobTitle: string expected"; - if (message.isMSPMCAdmin != null && message.hasOwnProperty("isMSPMCAdmin")) - if (typeof message.isMSPMCAdmin !== "boolean") - return "isMSPMCAdmin: boolean expected"; - if (message.isInSharedFolder != null && message.hasOwnProperty("isInSharedFolder")) - if (typeof message.isInSharedFolder !== "boolean") - return "isInSharedFolder: boolean expected"; - if (message.isShareAdminForRequestedObject != null && message.hasOwnProperty("isShareAdminForRequestedObject")) - if (typeof message.isShareAdminForRequestedObject !== "boolean") - return "isShareAdminForRequestedObject: boolean expected"; - if (message.isShareAdminForSharedFolderOwner != null && message.hasOwnProperty("isShareAdminForSharedFolderOwner")) - if (typeof message.isShareAdminForSharedFolderOwner !== "boolean") - return "isShareAdminForSharedFolderOwner: boolean expected"; - if (message.hasAccessToObject != null && message.hasOwnProperty("hasAccessToObject")) - if (typeof message.hasAccessToObject !== "boolean") - return "hasAccessToObject: boolean expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.email != null && message.hasOwnProperty('email')) + if (!$util.isString(message.email)) return 'email: string expected'; + if (message.fullName != null && message.hasOwnProperty('fullName')) + if (!$util.isString(message.fullName)) return 'fullName: string expected'; + if (message.jobTitle != null && message.hasOwnProperty('jobTitle')) + if (!$util.isString(message.jobTitle)) return 'jobTitle: string expected'; + if (message.isMSPMCAdmin != null && message.hasOwnProperty('isMSPMCAdmin')) + if (typeof message.isMSPMCAdmin !== 'boolean') return 'isMSPMCAdmin: boolean expected'; + if (message.isInSharedFolder != null && message.hasOwnProperty('isInSharedFolder')) + if (typeof message.isInSharedFolder !== 'boolean') return 'isInSharedFolder: boolean expected'; + if ( + message.isShareAdminForRequestedObject != null && + message.hasOwnProperty('isShareAdminForRequestedObject') + ) + if (typeof message.isShareAdminForRequestedObject !== 'boolean') + return 'isShareAdminForRequestedObject: boolean expected'; + if ( + message.isShareAdminForSharedFolderOwner != null && + message.hasOwnProperty('isShareAdminForSharedFolderOwner') + ) + if (typeof message.isShareAdminForSharedFolderOwner !== 'boolean') + return 'isShareAdminForSharedFolderOwner: boolean expected'; + if (message.hasAccessToObject != null && message.hasOwnProperty('hasAccessToObject')) + if (typeof message.hasAccessToObject !== 'boolean') return 'hasAccessToObject: boolean expected'; return null; }; @@ -91678,25 +94702,18 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.UserProfileExt} UserProfileExt */ UserProfileExt.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.UserProfileExt) - return object; + if (object instanceof $root.Enterprise.UserProfileExt) return object; let message = new $root.Enterprise.UserProfileExt(); - if (object.email != null) - message.email = String(object.email); - if (object.fullName != null) - message.fullName = String(object.fullName); - if (object.jobTitle != null) - message.jobTitle = String(object.jobTitle); - if (object.isMSPMCAdmin != null) - message.isMSPMCAdmin = Boolean(object.isMSPMCAdmin); - if (object.isInSharedFolder != null) - message.isInSharedFolder = Boolean(object.isInSharedFolder); + if (object.email != null) message.email = String(object.email); + if (object.fullName != null) message.fullName = String(object.fullName); + if (object.jobTitle != null) message.jobTitle = String(object.jobTitle); + if (object.isMSPMCAdmin != null) message.isMSPMCAdmin = Boolean(object.isMSPMCAdmin); + if (object.isInSharedFolder != null) message.isInSharedFolder = Boolean(object.isInSharedFolder); if (object.isShareAdminForRequestedObject != null) message.isShareAdminForRequestedObject = Boolean(object.isShareAdminForRequestedObject); if (object.isShareAdminForSharedFolderOwner != null) message.isShareAdminForSharedFolderOwner = Boolean(object.isShareAdminForSharedFolderOwner); - if (object.hasAccessToObject != null) - message.hasAccessToObject = Boolean(object.hasAccessToObject); + if (object.hasAccessToObject != null) message.hasAccessToObject = Boolean(object.hasAccessToObject); return message; }; @@ -91710,34 +94727,36 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ UserProfileExt.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - object.email = ""; - object.fullName = ""; - object.jobTitle = ""; + object.email = ''; + object.fullName = ''; + object.jobTitle = ''; object.isMSPMCAdmin = false; object.isInSharedFolder = false; object.isShareAdminForRequestedObject = false; object.isShareAdminForSharedFolderOwner = false; object.hasAccessToObject = false; } - if (message.email != null && message.hasOwnProperty("email")) - object.email = message.email; - if (message.fullName != null && message.hasOwnProperty("fullName")) - object.fullName = message.fullName; - if (message.jobTitle != null && message.hasOwnProperty("jobTitle")) - object.jobTitle = message.jobTitle; - if (message.isMSPMCAdmin != null && message.hasOwnProperty("isMSPMCAdmin")) + if (message.email != null && message.hasOwnProperty('email')) object.email = message.email; + if (message.fullName != null && message.hasOwnProperty('fullName')) object.fullName = message.fullName; + if (message.jobTitle != null && message.hasOwnProperty('jobTitle')) object.jobTitle = message.jobTitle; + if (message.isMSPMCAdmin != null && message.hasOwnProperty('isMSPMCAdmin')) object.isMSPMCAdmin = message.isMSPMCAdmin; - if (message.isInSharedFolder != null && message.hasOwnProperty("isInSharedFolder")) + if (message.isInSharedFolder != null && message.hasOwnProperty('isInSharedFolder')) object.isInSharedFolder = message.isInSharedFolder; - if (message.isShareAdminForRequestedObject != null && message.hasOwnProperty("isShareAdminForRequestedObject")) + if ( + message.isShareAdminForRequestedObject != null && + message.hasOwnProperty('isShareAdminForRequestedObject') + ) object.isShareAdminForRequestedObject = message.isShareAdminForRequestedObject; - if (message.isShareAdminForSharedFolderOwner != null && message.hasOwnProperty("isShareAdminForSharedFolderOwner")) + if ( + message.isShareAdminForSharedFolderOwner != null && + message.hasOwnProperty('isShareAdminForSharedFolderOwner') + ) object.isShareAdminForSharedFolderOwner = message.isShareAdminForSharedFolderOwner; - if (message.hasAccessToObject != null && message.hasOwnProperty("hasAccessToObject")) + if (message.hasAccessToObject != null && message.hasOwnProperty('hasAccessToObject')) object.hasAccessToObject = message.hasAccessToObject; return object; }; @@ -91763,16 +94782,15 @@ export const Enterprise = $root.Enterprise = (() => { */ UserProfileExt.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.UserProfileExt"; + return typeUrlPrefix + '/Enterprise.UserProfileExt'; }; return UserProfileExt; })(); - Enterprise.GetSharingAdminsResponse = (function() { - + Enterprise.GetSharingAdminsResponse = (function () { /** * Properties of a GetSharingAdminsResponse. * @memberof Enterprise @@ -91792,8 +94810,7 @@ export const Enterprise = $root.Enterprise = (() => { this.userProfileExts = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -91826,11 +94843,13 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ GetSharingAdminsResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.userProfileExts != null && message.userProfileExts.length) for (let i = 0; i < message.userProfileExts.length; ++i) - $root.Enterprise.UserProfileExt.encode(message.userProfileExts[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.Enterprise.UserProfileExt.encode( + message.userProfileExts[i], + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); return writer; }; @@ -91859,21 +94878,20 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ GetSharingAdminsResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.GetSharingAdminsResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.GetSharingAdminsResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (!(message.userProfileExts && message.userProfileExts.length)) - message.userProfileExts = []; + case 1: { + if (!(message.userProfileExts && message.userProfileExts.length)) message.userProfileExts = []; message.userProfileExts.push($root.Enterprise.UserProfileExt.decode(reader, reader.uint32())); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -91890,8 +94908,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ GetSharingAdminsResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -91904,15 +94921,12 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ GetSharingAdminsResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.userProfileExts != null && message.hasOwnProperty("userProfileExts")) { - if (!Array.isArray(message.userProfileExts)) - return "userProfileExts: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.userProfileExts != null && message.hasOwnProperty('userProfileExts')) { + if (!Array.isArray(message.userProfileExts)) return 'userProfileExts: array expected'; for (let i = 0; i < message.userProfileExts.length; ++i) { let error = $root.Enterprise.UserProfileExt.verify(message.userProfileExts[i]); - if (error) - return "userProfileExts." + error; + if (error) return 'userProfileExts.' + error; } } return null; @@ -91927,16 +94941,15 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.GetSharingAdminsResponse} GetSharingAdminsResponse */ GetSharingAdminsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.GetSharingAdminsResponse) - return object; + if (object instanceof $root.Enterprise.GetSharingAdminsResponse) return object; let message = new $root.Enterprise.GetSharingAdminsResponse(); if (object.userProfileExts) { if (!Array.isArray(object.userProfileExts)) - throw TypeError(".Enterprise.GetSharingAdminsResponse.userProfileExts: array expected"); + throw TypeError('.Enterprise.GetSharingAdminsResponse.userProfileExts: array expected'); message.userProfileExts = []; for (let i = 0; i < object.userProfileExts.length; ++i) { - if (typeof object.userProfileExts[i] !== "object") - throw TypeError(".Enterprise.GetSharingAdminsResponse.userProfileExts: object expected"); + if (typeof object.userProfileExts[i] !== 'object') + throw TypeError('.Enterprise.GetSharingAdminsResponse.userProfileExts: object expected'); message.userProfileExts[i] = $root.Enterprise.UserProfileExt.fromObject(object.userProfileExts[i]); } } @@ -91953,15 +94966,16 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ GetSharingAdminsResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.userProfileExts = []; + if (options.arrays || options.defaults) object.userProfileExts = []; if (message.userProfileExts && message.userProfileExts.length) { object.userProfileExts = []; for (let j = 0; j < message.userProfileExts.length; ++j) - object.userProfileExts[j] = $root.Enterprise.UserProfileExt.toObject(message.userProfileExts[j], options); + object.userProfileExts[j] = $root.Enterprise.UserProfileExt.toObject( + message.userProfileExts[j], + options + ); } return object; }; @@ -91987,16 +95001,15 @@ export const Enterprise = $root.Enterprise = (() => { */ GetSharingAdminsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.GetSharingAdminsResponse"; + return typeUrlPrefix + '/Enterprise.GetSharingAdminsResponse'; }; return GetSharingAdminsResponse; })(); - Enterprise.TeamsEnterpriseUsersAddRequest = (function() { - + Enterprise.TeamsEnterpriseUsersAddRequest = (function () { /** * Properties of a TeamsEnterpriseUsersAddRequest. * @memberof Enterprise @@ -92016,8 +95029,7 @@ export const Enterprise = $root.Enterprise = (() => { this.teams = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -92050,11 +95062,13 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ TeamsEnterpriseUsersAddRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.teams != null && message.teams.length) for (let i = 0; i < message.teams.length; ++i) - $root.Enterprise.TeamsEnterpriseUsersAddTeamRequest.encode(message.teams[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.Enterprise.TeamsEnterpriseUsersAddTeamRequest.encode( + message.teams[i], + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); return writer; }; @@ -92083,21 +95097,22 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ TeamsEnterpriseUsersAddRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.TeamsEnterpriseUsersAddRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.TeamsEnterpriseUsersAddRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (!(message.teams && message.teams.length)) - message.teams = []; - message.teams.push($root.Enterprise.TeamsEnterpriseUsersAddTeamRequest.decode(reader, reader.uint32())); + case 1: { + if (!(message.teams && message.teams.length)) message.teams = []; + message.teams.push( + $root.Enterprise.TeamsEnterpriseUsersAddTeamRequest.decode(reader, reader.uint32()) + ); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -92114,8 +95129,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ TeamsEnterpriseUsersAddRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -92128,15 +95142,12 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ TeamsEnterpriseUsersAddRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.teams != null && message.hasOwnProperty("teams")) { - if (!Array.isArray(message.teams)) - return "teams: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.teams != null && message.hasOwnProperty('teams')) { + if (!Array.isArray(message.teams)) return 'teams: array expected'; for (let i = 0; i < message.teams.length; ++i) { let error = $root.Enterprise.TeamsEnterpriseUsersAddTeamRequest.verify(message.teams[i]); - if (error) - return "teams." + error; + if (error) return 'teams.' + error; } } return null; @@ -92151,16 +95162,15 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.TeamsEnterpriseUsersAddRequest} TeamsEnterpriseUsersAddRequest */ TeamsEnterpriseUsersAddRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.TeamsEnterpriseUsersAddRequest) - return object; + if (object instanceof $root.Enterprise.TeamsEnterpriseUsersAddRequest) return object; let message = new $root.Enterprise.TeamsEnterpriseUsersAddRequest(); if (object.teams) { if (!Array.isArray(object.teams)) - throw TypeError(".Enterprise.TeamsEnterpriseUsersAddRequest.teams: array expected"); + throw TypeError('.Enterprise.TeamsEnterpriseUsersAddRequest.teams: array expected'); message.teams = []; for (let i = 0; i < object.teams.length; ++i) { - if (typeof object.teams[i] !== "object") - throw TypeError(".Enterprise.TeamsEnterpriseUsersAddRequest.teams: object expected"); + if (typeof object.teams[i] !== 'object') + throw TypeError('.Enterprise.TeamsEnterpriseUsersAddRequest.teams: object expected'); message.teams[i] = $root.Enterprise.TeamsEnterpriseUsersAddTeamRequest.fromObject(object.teams[i]); } } @@ -92177,15 +95187,16 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ TeamsEnterpriseUsersAddRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.teams = []; + if (options.arrays || options.defaults) object.teams = []; if (message.teams && message.teams.length) { object.teams = []; for (let j = 0; j < message.teams.length; ++j) - object.teams[j] = $root.Enterprise.TeamsEnterpriseUsersAddTeamRequest.toObject(message.teams[j], options); + object.teams[j] = $root.Enterprise.TeamsEnterpriseUsersAddTeamRequest.toObject( + message.teams[j], + options + ); } return object; }; @@ -92211,16 +95222,15 @@ export const Enterprise = $root.Enterprise = (() => { */ TeamsEnterpriseUsersAddRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.TeamsEnterpriseUsersAddRequest"; + return typeUrlPrefix + '/Enterprise.TeamsEnterpriseUsersAddRequest'; }; return TeamsEnterpriseUsersAddRequest; })(); - Enterprise.TeamsEnterpriseUsersAddTeamRequest = (function() { - + Enterprise.TeamsEnterpriseUsersAddTeamRequest = (function () { /** * Properties of a TeamsEnterpriseUsersAddTeamRequest. * @memberof Enterprise @@ -92241,8 +95251,7 @@ export const Enterprise = $root.Enterprise = (() => { this.users = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -92283,13 +95292,15 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ TeamsEnterpriseUsersAddTeamRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.teamUid != null && Object.hasOwnProperty.call(message, "teamUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.teamUid); + if (!writer) writer = $Writer.create(); + if (message.teamUid != null && Object.hasOwnProperty.call(message, 'teamUid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.teamUid); if (message.users != null && message.users.length) for (let i = 0; i < message.users.length; ++i) - $root.Enterprise.TeamsEnterpriseUsersAddUserRequest.encode(message.users[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + $root.Enterprise.TeamsEnterpriseUsersAddUserRequest.encode( + message.users[i], + writer.uint32(/* id 2, wireType 2 =*/ 18).fork() + ).ldelim(); return writer; }; @@ -92318,25 +95329,26 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ TeamsEnterpriseUsersAddTeamRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.TeamsEnterpriseUsersAddTeamRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.TeamsEnterpriseUsersAddTeamRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.teamUid = reader.bytes(); break; } - case 2: { - if (!(message.users && message.users.length)) - message.users = []; - message.users.push($root.Enterprise.TeamsEnterpriseUsersAddUserRequest.decode(reader, reader.uint32())); + case 2: { + if (!(message.users && message.users.length)) message.users = []; + message.users.push( + $root.Enterprise.TeamsEnterpriseUsersAddUserRequest.decode(reader, reader.uint32()) + ); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -92353,8 +95365,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ TeamsEnterpriseUsersAddTeamRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -92367,18 +95378,20 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ TeamsEnterpriseUsersAddTeamRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.teamUid != null && message.hasOwnProperty("teamUid")) - if (!(message.teamUid && typeof message.teamUid.length === "number" || $util.isString(message.teamUid))) - return "teamUid: buffer expected"; - if (message.users != null && message.hasOwnProperty("users")) { - if (!Array.isArray(message.users)) - return "users: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.teamUid != null && message.hasOwnProperty('teamUid')) + if ( + !( + (message.teamUid && typeof message.teamUid.length === 'number') || + $util.isString(message.teamUid) + ) + ) + return 'teamUid: buffer expected'; + if (message.users != null && message.hasOwnProperty('users')) { + if (!Array.isArray(message.users)) return 'users: array expected'; for (let i = 0; i < message.users.length; ++i) { let error = $root.Enterprise.TeamsEnterpriseUsersAddUserRequest.verify(message.users[i]); - if (error) - return "users." + error; + if (error) return 'users.' + error; } } return null; @@ -92393,21 +95406,23 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.TeamsEnterpriseUsersAddTeamRequest} TeamsEnterpriseUsersAddTeamRequest */ TeamsEnterpriseUsersAddTeamRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.TeamsEnterpriseUsersAddTeamRequest) - return object; + if (object instanceof $root.Enterprise.TeamsEnterpriseUsersAddTeamRequest) return object; let message = new $root.Enterprise.TeamsEnterpriseUsersAddTeamRequest(); if (object.teamUid != null) - if (typeof object.teamUid === "string") - $util.base64.decode(object.teamUid, message.teamUid = $util.newBuffer($util.base64.length(object.teamUid)), 0); - else if (object.teamUid.length >= 0) - message.teamUid = object.teamUid; + if (typeof object.teamUid === 'string') + $util.base64.decode( + object.teamUid, + (message.teamUid = $util.newBuffer($util.base64.length(object.teamUid))), + 0 + ); + else if (object.teamUid.length >= 0) message.teamUid = object.teamUid; if (object.users) { if (!Array.isArray(object.users)) - throw TypeError(".Enterprise.TeamsEnterpriseUsersAddTeamRequest.users: array expected"); + throw TypeError('.Enterprise.TeamsEnterpriseUsersAddTeamRequest.users: array expected'); message.users = []; for (let i = 0; i < object.users.length; ++i) { - if (typeof object.users[i] !== "object") - throw TypeError(".Enterprise.TeamsEnterpriseUsersAddTeamRequest.users: object expected"); + if (typeof object.users[i] !== 'object') + throw TypeError('.Enterprise.TeamsEnterpriseUsersAddTeamRequest.users: object expected'); message.users[i] = $root.Enterprise.TeamsEnterpriseUsersAddUserRequest.fromObject(object.users[i]); } } @@ -92424,25 +95439,29 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ TeamsEnterpriseUsersAddTeamRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.users = []; + if (options.arrays || options.defaults) object.users = []; if (options.defaults) - if (options.bytes === String) - object.teamUid = ""; + if (options.bytes === String) object.teamUid = ''; else { object.teamUid = []; - if (options.bytes !== Array) - object.teamUid = $util.newBuffer(object.teamUid); - } - if (message.teamUid != null && message.hasOwnProperty("teamUid")) - object.teamUid = options.bytes === String ? $util.base64.encode(message.teamUid, 0, message.teamUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.teamUid) : message.teamUid; + if (options.bytes !== Array) object.teamUid = $util.newBuffer(object.teamUid); + } + if (message.teamUid != null && message.hasOwnProperty('teamUid')) + object.teamUid = + options.bytes === String + ? $util.base64.encode(message.teamUid, 0, message.teamUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.teamUid) + : message.teamUid; if (message.users && message.users.length) { object.users = []; for (let j = 0; j < message.users.length; ++j) - object.users[j] = $root.Enterprise.TeamsEnterpriseUsersAddUserRequest.toObject(message.users[j], options); + object.users[j] = $root.Enterprise.TeamsEnterpriseUsersAddUserRequest.toObject( + message.users[j], + options + ); } return object; }; @@ -92468,16 +95487,15 @@ export const Enterprise = $root.Enterprise = (() => { */ TeamsEnterpriseUsersAddTeamRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.TeamsEnterpriseUsersAddTeamRequest"; + return typeUrlPrefix + '/Enterprise.TeamsEnterpriseUsersAddTeamRequest'; }; return TeamsEnterpriseUsersAddTeamRequest; })(); - Enterprise.TeamsEnterpriseUsersAddUserRequest = (function() { - + Enterprise.TeamsEnterpriseUsersAddUserRequest = (function () { /** * Properties of a TeamsEnterpriseUsersAddUserRequest. * @memberof Enterprise @@ -92499,8 +95517,7 @@ export const Enterprise = $root.Enterprise = (() => { function TeamsEnterpriseUsersAddUserRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -92509,7 +95526,9 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.TeamsEnterpriseUsersAddUserRequest * @instance */ - TeamsEnterpriseUsersAddUserRequest.prototype.enterpriseUserId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + TeamsEnterpriseUsersAddUserRequest.prototype.enterpriseUserId = $util.Long + ? $util.Long.fromBits(0, 0, false) + : 0; /** * TeamsEnterpriseUsersAddUserRequest userType. @@ -92525,7 +95544,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.TeamsEnterpriseUsersAddUserRequest * @instance */ - TeamsEnterpriseUsersAddUserRequest.prototype.teamKey = ""; + TeamsEnterpriseUsersAddUserRequest.prototype.teamKey = ''; /** * TeamsEnterpriseUsersAddUserRequest typedTeamKey. @@ -92557,16 +95576,18 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ TeamsEnterpriseUsersAddUserRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "enterpriseUserId")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.enterpriseUserId); - if (message.userType != null && Object.hasOwnProperty.call(message, "userType")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.userType); - if (message.teamKey != null && Object.hasOwnProperty.call(message, "teamKey")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.teamKey); - if (message.typedTeamKey != null && Object.hasOwnProperty.call(message, "typedTeamKey")) - $root.Enterprise.TypedKey.encode(message.typedTeamKey, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (!writer) writer = $Writer.create(); + if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, 'enterpriseUserId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int64(message.enterpriseUserId); + if (message.userType != null && Object.hasOwnProperty.call(message, 'userType')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int32(message.userType); + if (message.teamKey != null && Object.hasOwnProperty.call(message, 'teamKey')) + writer.uint32(/* id 3, wireType 2 =*/ 26).string(message.teamKey); + if (message.typedTeamKey != null && Object.hasOwnProperty.call(message, 'typedTeamKey')) + $root.Enterprise.TypedKey.encode( + message.typedTeamKey, + writer.uint32(/* id 4, wireType 2 =*/ 34).fork() + ).ldelim(); return writer; }; @@ -92595,31 +95616,31 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ TeamsEnterpriseUsersAddUserRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.TeamsEnterpriseUsersAddUserRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.TeamsEnterpriseUsersAddUserRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.enterpriseUserId = reader.int64(); break; } - case 2: { + case 2: { message.userType = reader.int32(); break; } - case 3: { + case 3: { message.teamKey = reader.string(); break; } - case 4: { + case 4: { message.typedTeamKey = $root.Enterprise.TypedKey.decode(reader, reader.uint32()); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -92636,8 +95657,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ TeamsEnterpriseUsersAddUserRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -92650,27 +95670,31 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ TeamsEnterpriseUsersAddUserRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (!$util.isInteger(message.enterpriseUserId) && !(message.enterpriseUserId && $util.isInteger(message.enterpriseUserId.low) && $util.isInteger(message.enterpriseUserId.high))) - return "enterpriseUserId: integer|Long expected"; - if (message.userType != null && message.hasOwnProperty("userType")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.enterpriseUserId != null && message.hasOwnProperty('enterpriseUserId')) + if ( + !$util.isInteger(message.enterpriseUserId) && + !( + message.enterpriseUserId && + $util.isInteger(message.enterpriseUserId.low) && + $util.isInteger(message.enterpriseUserId.high) + ) + ) + return 'enterpriseUserId: integer|Long expected'; + if (message.userType != null && message.hasOwnProperty('userType')) switch (message.userType) { - default: - return "userType: enum value expected"; - case 0: - case 1: - case 2: - break; + default: + return 'userType: enum value expected'; + case 0: + case 1: + case 2: + break; } - if (message.teamKey != null && message.hasOwnProperty("teamKey")) - if (!$util.isString(message.teamKey)) - return "teamKey: string expected"; - if (message.typedTeamKey != null && message.hasOwnProperty("typedTeamKey")) { + if (message.teamKey != null && message.hasOwnProperty('teamKey')) + if (!$util.isString(message.teamKey)) return 'teamKey: string expected'; + if (message.typedTeamKey != null && message.hasOwnProperty('typedTeamKey')) { let error = $root.Enterprise.TypedKey.verify(message.typedTeamKey); - if (error) - return "typedTeamKey." + error; + if (error) return 'typedTeamKey.' + error; } return null; }; @@ -92684,43 +95708,44 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.TeamsEnterpriseUsersAddUserRequest} TeamsEnterpriseUsersAddUserRequest */ TeamsEnterpriseUsersAddUserRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.TeamsEnterpriseUsersAddUserRequest) - return object; + if (object instanceof $root.Enterprise.TeamsEnterpriseUsersAddUserRequest) return object; let message = new $root.Enterprise.TeamsEnterpriseUsersAddUserRequest(); if (object.enterpriseUserId != null) if ($util.Long) (message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId)).unsigned = false; - else if (typeof object.enterpriseUserId === "string") + else if (typeof object.enterpriseUserId === 'string') message.enterpriseUserId = parseInt(object.enterpriseUserId, 10); - else if (typeof object.enterpriseUserId === "number") + else if (typeof object.enterpriseUserId === 'number') message.enterpriseUserId = object.enterpriseUserId; - else if (typeof object.enterpriseUserId === "object") - message.enterpriseUserId = new $util.LongBits(object.enterpriseUserId.low >>> 0, object.enterpriseUserId.high >>> 0).toNumber(); + else if (typeof object.enterpriseUserId === 'object') + message.enterpriseUserId = new $util.LongBits( + object.enterpriseUserId.low >>> 0, + object.enterpriseUserId.high >>> 0 + ).toNumber(); switch (object.userType) { - default: - if (typeof object.userType === "number") { - message.userType = object.userType; - break; - } - break; - case "USER": - case 0: - message.userType = 0; - break; - case "ADMIN": - case 1: - message.userType = 1; - break; - case "ADMIN_ONLY": - case 2: - message.userType = 2; - break; + default: + if (typeof object.userType === 'number') { + message.userType = object.userType; + break; + } + break; + case 'USER': + case 0: + message.userType = 0; + break; + case 'ADMIN': + case 1: + message.userType = 1; + break; + case 'ADMIN_ONLY': + case 2: + message.userType = 2; + break; } - if (object.teamKey != null) - message.teamKey = String(object.teamKey); + if (object.teamKey != null) message.teamKey = String(object.teamKey); if (object.typedTeamKey != null) { - if (typeof object.typedTeamKey !== "object") - throw TypeError(".Enterprise.TeamsEnterpriseUsersAddUserRequest.typedTeamKey: object expected"); + if (typeof object.typedTeamKey !== 'object') + throw TypeError('.Enterprise.TeamsEnterpriseUsersAddUserRequest.typedTeamKey: object expected'); message.typedTeamKey = $root.Enterprise.TypedKey.fromObject(object.typedTeamKey); } return message; @@ -92736,29 +95761,41 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ TeamsEnterpriseUsersAddUserRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.enterpriseUserId = options.longs === String ? "0" : 0; - object.userType = options.enums === String ? "USER" : 0; - object.teamKey = ""; + object.enterpriseUserId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.enterpriseUserId = options.longs === String ? '0' : 0; + object.userType = options.enums === String ? 'USER' : 0; + object.teamKey = ''; object.typedTeamKey = null; } - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (typeof message.enterpriseUserId === "number") - object.enterpriseUserId = options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; + if (message.enterpriseUserId != null && message.hasOwnProperty('enterpriseUserId')) + if (typeof message.enterpriseUserId === 'number') + object.enterpriseUserId = + options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; else - object.enterpriseUserId = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseUserId) : options.longs === Number ? new $util.LongBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0).toNumber() : message.enterpriseUserId; - if (message.userType != null && message.hasOwnProperty("userType")) - object.userType = options.enums === String ? $root.Enterprise.TeamUserType[message.userType] === undefined ? message.userType : $root.Enterprise.TeamUserType[message.userType] : message.userType; - if (message.teamKey != null && message.hasOwnProperty("teamKey")) - object.teamKey = message.teamKey; - if (message.typedTeamKey != null && message.hasOwnProperty("typedTeamKey")) + object.enterpriseUserId = + options.longs === String + ? $util.Long.prototype.toString.call(message.enterpriseUserId) + : options.longs === Number + ? new $util.LongBits( + message.enterpriseUserId.low >>> 0, + message.enterpriseUserId.high >>> 0 + ).toNumber() + : message.enterpriseUserId; + if (message.userType != null && message.hasOwnProperty('userType')) + object.userType = + options.enums === String + ? $root.Enterprise.TeamUserType[message.userType] === undefined + ? message.userType + : $root.Enterprise.TeamUserType[message.userType] + : message.userType; + if (message.teamKey != null && message.hasOwnProperty('teamKey')) object.teamKey = message.teamKey; + if (message.typedTeamKey != null && message.hasOwnProperty('typedTeamKey')) object.typedTeamKey = $root.Enterprise.TypedKey.toObject(message.typedTeamKey, options); return object; }; @@ -92784,16 +95821,15 @@ export const Enterprise = $root.Enterprise = (() => { */ TeamsEnterpriseUsersAddUserRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.TeamsEnterpriseUsersAddUserRequest"; + return typeUrlPrefix + '/Enterprise.TeamsEnterpriseUsersAddUserRequest'; }; return TeamsEnterpriseUsersAddUserRequest; })(); - Enterprise.TypedKey = (function() { - + Enterprise.TypedKey = (function () { /** * Properties of a TypedKey. * @memberof Enterprise @@ -92813,8 +95849,7 @@ export const Enterprise = $root.Enterprise = (() => { function TypedKey(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -92855,12 +95890,11 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ TypedKey.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.key != null && Object.hasOwnProperty.call(message, "key")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.key); - if (message.keyType != null && Object.hasOwnProperty.call(message, "keyType")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.keyType); + if (!writer) writer = $Writer.create(); + if (message.key != null && Object.hasOwnProperty.call(message, 'key')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.key); + if (message.keyType != null && Object.hasOwnProperty.call(message, 'keyType')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int32(message.keyType); return writer; }; @@ -92889,23 +95923,23 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ TypedKey.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.TypedKey(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.TypedKey(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.key = reader.bytes(); break; } - case 2: { + case 2: { message.keyType = reader.int32(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -92922,8 +95956,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ TypedKey.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -92936,21 +95969,20 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ TypedKey.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.key != null && message.hasOwnProperty("key")) - if (!(message.key && typeof message.key.length === "number" || $util.isString(message.key))) - return "key: buffer expected"; - if (message.keyType != null && message.hasOwnProperty("keyType")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.key != null && message.hasOwnProperty('key')) + if (!((message.key && typeof message.key.length === 'number') || $util.isString(message.key))) + return 'key: buffer expected'; + if (message.keyType != null && message.hasOwnProperty('keyType')) switch (message.keyType) { - default: - return "keyType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; + default: + return 'keyType: enum value expected'; + case 0: + case 1: + case 2: + case 3: + case 4: + break; } return null; }; @@ -92964,41 +95996,43 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.TypedKey} TypedKey */ TypedKey.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.TypedKey) - return object; + if (object instanceof $root.Enterprise.TypedKey) return object; let message = new $root.Enterprise.TypedKey(); if (object.key != null) - if (typeof object.key === "string") - $util.base64.decode(object.key, message.key = $util.newBuffer($util.base64.length(object.key)), 0); - else if (object.key.length >= 0) - message.key = object.key; + if (typeof object.key === 'string') + $util.base64.decode( + object.key, + (message.key = $util.newBuffer($util.base64.length(object.key))), + 0 + ); + else if (object.key.length >= 0) message.key = object.key; switch (object.keyType) { - default: - if (typeof object.keyType === "number") { - message.keyType = object.keyType; + default: + if (typeof object.keyType === 'number') { + message.keyType = object.keyType; + break; + } + break; + case 'KT_NO_KEY': + case 0: + message.keyType = 0; + break; + case 'KT_ENCRYPTED_BY_DATA_KEY': + case 1: + message.keyType = 1; + break; + case 'KT_ENCRYPTED_BY_PUBLIC_KEY': + case 2: + message.keyType = 2; + break; + case 'KT_ENCRYPTED_BY_DATA_KEY_GCM': + case 3: + message.keyType = 3; + break; + case 'KT_ENCRYPTED_BY_PUBLIC_KEY_ECC': + case 4: + message.keyType = 4; break; - } - break; - case "KT_NO_KEY": - case 0: - message.keyType = 0; - break; - case "KT_ENCRYPTED_BY_DATA_KEY": - case 1: - message.keyType = 1; - break; - case "KT_ENCRYPTED_BY_PUBLIC_KEY": - case 2: - message.keyType = 2; - break; - case "KT_ENCRYPTED_BY_DATA_KEY_GCM": - case 3: - message.keyType = 3; - break; - case "KT_ENCRYPTED_BY_PUBLIC_KEY_ECC": - case 4: - message.keyType = 4; - break; } return message; }; @@ -93013,23 +96047,30 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ TypedKey.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.key = ""; + if (options.bytes === String) object.key = ''; else { object.key = []; - if (options.bytes !== Array) - object.key = $util.newBuffer(object.key); + if (options.bytes !== Array) object.key = $util.newBuffer(object.key); } - object.keyType = options.enums === String ? "KT_NO_KEY" : 0; + object.keyType = options.enums === String ? 'KT_NO_KEY' : 0; } - if (message.key != null && message.hasOwnProperty("key")) - object.key = options.bytes === String ? $util.base64.encode(message.key, 0, message.key.length) : options.bytes === Array ? Array.prototype.slice.call(message.key) : message.key; - if (message.keyType != null && message.hasOwnProperty("keyType")) - object.keyType = options.enums === String ? $root.Enterprise.EncryptedKeyType[message.keyType] === undefined ? message.keyType : $root.Enterprise.EncryptedKeyType[message.keyType] : message.keyType; + if (message.key != null && message.hasOwnProperty('key')) + object.key = + options.bytes === String + ? $util.base64.encode(message.key, 0, message.key.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.key) + : message.key; + if (message.keyType != null && message.hasOwnProperty('keyType')) + object.keyType = + options.enums === String + ? $root.Enterprise.EncryptedKeyType[message.keyType] === undefined + ? message.keyType + : $root.Enterprise.EncryptedKeyType[message.keyType] + : message.keyType; return object; }; @@ -93054,9 +96095,9 @@ export const Enterprise = $root.Enterprise = (() => { */ TypedKey.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.TypedKey"; + return typeUrlPrefix + '/Enterprise.TypedKey'; }; return TypedKey; @@ -93070,16 +96111,16 @@ export const Enterprise = $root.Enterprise = (() => { * @property {number} ADMIN=1 ADMIN value * @property {number} ADMIN_ONLY=2 ADMIN_ONLY value */ - Enterprise.TeamUserType = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "USER"] = 0; - values[valuesById[1] = "ADMIN"] = 1; - values[valuesById[2] = "ADMIN_ONLY"] = 2; + Enterprise.TeamUserType = (function () { + const valuesById = {}, + values = Object.create(valuesById); + values[(valuesById[0] = 'USER')] = 0; + values[(valuesById[1] = 'ADMIN')] = 1; + values[(valuesById[2] = 'ADMIN_ONLY')] = 2; return values; })(); - Enterprise.TeamsEnterpriseUsersAddResponse = (function() { - + Enterprise.TeamsEnterpriseUsersAddResponse = (function () { /** * Properties of a TeamsEnterpriseUsersAddResponse. * @memberof Enterprise @@ -93100,8 +96141,7 @@ export const Enterprise = $root.Enterprise = (() => { this.teams = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -93118,7 +96158,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.TeamsEnterpriseUsersAddResponse * @instance */ - TeamsEnterpriseUsersAddResponse.prototype.revision = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + TeamsEnterpriseUsersAddResponse.prototype.revision = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * Creates a new TeamsEnterpriseUsersAddResponse instance using the specified properties. @@ -93142,13 +96182,15 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ TeamsEnterpriseUsersAddResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.teams != null && message.teams.length) for (let i = 0; i < message.teams.length; ++i) - $root.Enterprise.TeamsEnterpriseUsersAddTeamResponse.encode(message.teams[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.revision != null && Object.hasOwnProperty.call(message, "revision")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.revision); + $root.Enterprise.TeamsEnterpriseUsersAddTeamResponse.encode( + message.teams[i], + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); + if (message.revision != null && Object.hasOwnProperty.call(message, 'revision')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int64(message.revision); return writer; }; @@ -93177,25 +96219,26 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ TeamsEnterpriseUsersAddResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.TeamsEnterpriseUsersAddResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.TeamsEnterpriseUsersAddResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (!(message.teams && message.teams.length)) - message.teams = []; - message.teams.push($root.Enterprise.TeamsEnterpriseUsersAddTeamResponse.decode(reader, reader.uint32())); + case 1: { + if (!(message.teams && message.teams.length)) message.teams = []; + message.teams.push( + $root.Enterprise.TeamsEnterpriseUsersAddTeamResponse.decode(reader, reader.uint32()) + ); break; } - case 2: { + case 2: { message.revision = reader.int64(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -93212,8 +96255,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ TeamsEnterpriseUsersAddResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -93226,20 +96268,24 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ TeamsEnterpriseUsersAddResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.teams != null && message.hasOwnProperty("teams")) { - if (!Array.isArray(message.teams)) - return "teams: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.teams != null && message.hasOwnProperty('teams')) { + if (!Array.isArray(message.teams)) return 'teams: array expected'; for (let i = 0; i < message.teams.length; ++i) { let error = $root.Enterprise.TeamsEnterpriseUsersAddTeamResponse.verify(message.teams[i]); - if (error) - return "teams." + error; + if (error) return 'teams.' + error; } } - if (message.revision != null && message.hasOwnProperty("revision")) - if (!$util.isInteger(message.revision) && !(message.revision && $util.isInteger(message.revision.low) && $util.isInteger(message.revision.high))) - return "revision: integer|Long expected"; + if (message.revision != null && message.hasOwnProperty('revision')) + if ( + !$util.isInteger(message.revision) && + !( + message.revision && + $util.isInteger(message.revision.low) && + $util.isInteger(message.revision.high) + ) + ) + return 'revision: integer|Long expected'; return null; }; @@ -93252,28 +96298,27 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.TeamsEnterpriseUsersAddResponse} TeamsEnterpriseUsersAddResponse */ TeamsEnterpriseUsersAddResponse.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.TeamsEnterpriseUsersAddResponse) - return object; + if (object instanceof $root.Enterprise.TeamsEnterpriseUsersAddResponse) return object; let message = new $root.Enterprise.TeamsEnterpriseUsersAddResponse(); if (object.teams) { if (!Array.isArray(object.teams)) - throw TypeError(".Enterprise.TeamsEnterpriseUsersAddResponse.teams: array expected"); + throw TypeError('.Enterprise.TeamsEnterpriseUsersAddResponse.teams: array expected'); message.teams = []; for (let i = 0; i < object.teams.length; ++i) { - if (typeof object.teams[i] !== "object") - throw TypeError(".Enterprise.TeamsEnterpriseUsersAddResponse.teams: object expected"); + if (typeof object.teams[i] !== 'object') + throw TypeError('.Enterprise.TeamsEnterpriseUsersAddResponse.teams: object expected'); message.teams[i] = $root.Enterprise.TeamsEnterpriseUsersAddTeamResponse.fromObject(object.teams[i]); } } if (object.revision != null) - if ($util.Long) - (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; - else if (typeof object.revision === "string") - message.revision = parseInt(object.revision, 10); - else if (typeof object.revision === "number") - message.revision = object.revision; - else if (typeof object.revision === "object") - message.revision = new $util.LongBits(object.revision.low >>> 0, object.revision.high >>> 0).toNumber(); + if ($util.Long) (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; + else if (typeof object.revision === 'string') message.revision = parseInt(object.revision, 10); + else if (typeof object.revision === 'number') message.revision = object.revision; + else if (typeof object.revision === 'object') + message.revision = new $util.LongBits( + object.revision.low >>> 0, + object.revision.high >>> 0 + ).toNumber(); return message; }; @@ -93287,27 +96332,33 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ TeamsEnterpriseUsersAddResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.teams = []; + if (options.arrays || options.defaults) object.teams = []; if (options.defaults) if ($util.Long) { let long = new $util.Long(0, 0, false); - object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.revision = options.longs === String ? "0" : 0; + object.revision = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.revision = options.longs === String ? '0' : 0; if (message.teams && message.teams.length) { object.teams = []; for (let j = 0; j < message.teams.length; ++j) - object.teams[j] = $root.Enterprise.TeamsEnterpriseUsersAddTeamResponse.toObject(message.teams[j], options); + object.teams[j] = $root.Enterprise.TeamsEnterpriseUsersAddTeamResponse.toObject( + message.teams[j], + options + ); } - if (message.revision != null && message.hasOwnProperty("revision")) - if (typeof message.revision === "number") + if (message.revision != null && message.hasOwnProperty('revision')) + if (typeof message.revision === 'number') object.revision = options.longs === String ? String(message.revision) : message.revision; else - object.revision = options.longs === String ? $util.Long.prototype.toString.call(message.revision) : options.longs === Number ? new $util.LongBits(message.revision.low >>> 0, message.revision.high >>> 0).toNumber() : message.revision; + object.revision = + options.longs === String + ? $util.Long.prototype.toString.call(message.revision) + : options.longs === Number + ? new $util.LongBits(message.revision.low >>> 0, message.revision.high >>> 0).toNumber() + : message.revision; return object; }; @@ -93332,16 +96383,15 @@ export const Enterprise = $root.Enterprise = (() => { */ TeamsEnterpriseUsersAddResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.TeamsEnterpriseUsersAddResponse"; + return typeUrlPrefix + '/Enterprise.TeamsEnterpriseUsersAddResponse'; }; return TeamsEnterpriseUsersAddResponse; })(); - Enterprise.TeamsEnterpriseUsersAddTeamResponse = (function() { - + Enterprise.TeamsEnterpriseUsersAddTeamResponse = (function () { /** * Properties of a TeamsEnterpriseUsersAddTeamResponse. * @memberof Enterprise @@ -93366,8 +96416,7 @@ export const Enterprise = $root.Enterprise = (() => { this.users = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -93400,7 +96449,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.TeamsEnterpriseUsersAddTeamResponse * @instance */ - TeamsEnterpriseUsersAddTeamResponse.prototype.message = ""; + TeamsEnterpriseUsersAddTeamResponse.prototype.message = ''; /** * TeamsEnterpriseUsersAddTeamResponse resultCode. @@ -93408,7 +96457,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.TeamsEnterpriseUsersAddTeamResponse * @instance */ - TeamsEnterpriseUsersAddTeamResponse.prototype.resultCode = ""; + TeamsEnterpriseUsersAddTeamResponse.prototype.resultCode = ''; /** * TeamsEnterpriseUsersAddTeamResponse additionalInfo. @@ -93416,7 +96465,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.TeamsEnterpriseUsersAddTeamResponse * @instance */ - TeamsEnterpriseUsersAddTeamResponse.prototype.additionalInfo = ""; + TeamsEnterpriseUsersAddTeamResponse.prototype.additionalInfo = ''; /** * Creates a new TeamsEnterpriseUsersAddTeamResponse instance using the specified properties. @@ -93440,21 +96489,23 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ TeamsEnterpriseUsersAddTeamResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.teamUid != null && Object.hasOwnProperty.call(message, "teamUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.teamUid); + if (!writer) writer = $Writer.create(); + if (message.teamUid != null && Object.hasOwnProperty.call(message, 'teamUid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.teamUid); if (message.users != null && message.users.length) for (let i = 0; i < message.users.length; ++i) - $root.Enterprise.TeamsEnterpriseUsersAddUserResponse.encode(message.users[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.success != null && Object.hasOwnProperty.call(message, "success")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.success); - if (message.message != null && Object.hasOwnProperty.call(message, "message")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.message); - if (message.resultCode != null && Object.hasOwnProperty.call(message, "resultCode")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.resultCode); - if (message.additionalInfo != null && Object.hasOwnProperty.call(message, "additionalInfo")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.additionalInfo); + $root.Enterprise.TeamsEnterpriseUsersAddUserResponse.encode( + message.users[i], + writer.uint32(/* id 2, wireType 2 =*/ 18).fork() + ).ldelim(); + if (message.success != null && Object.hasOwnProperty.call(message, 'success')) + writer.uint32(/* id 3, wireType 0 =*/ 24).bool(message.success); + if (message.message != null && Object.hasOwnProperty.call(message, 'message')) + writer.uint32(/* id 4, wireType 2 =*/ 34).string(message.message); + if (message.resultCode != null && Object.hasOwnProperty.call(message, 'resultCode')) + writer.uint32(/* id 5, wireType 2 =*/ 42).string(message.resultCode); + if (message.additionalInfo != null && Object.hasOwnProperty.call(message, 'additionalInfo')) + writer.uint32(/* id 6, wireType 2 =*/ 50).string(message.additionalInfo); return writer; }; @@ -93483,41 +96534,42 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ TeamsEnterpriseUsersAddTeamResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.TeamsEnterpriseUsersAddTeamResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.TeamsEnterpriseUsersAddTeamResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.teamUid = reader.bytes(); break; } - case 2: { - if (!(message.users && message.users.length)) - message.users = []; - message.users.push($root.Enterprise.TeamsEnterpriseUsersAddUserResponse.decode(reader, reader.uint32())); + case 2: { + if (!(message.users && message.users.length)) message.users = []; + message.users.push( + $root.Enterprise.TeamsEnterpriseUsersAddUserResponse.decode(reader, reader.uint32()) + ); break; } - case 3: { + case 3: { message.success = reader.bool(); break; } - case 4: { + case 4: { message.message = reader.string(); break; } - case 5: { + case 5: { message.resultCode = reader.string(); break; } - case 6: { + case 6: { message.additionalInfo = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -93534,8 +96586,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ TeamsEnterpriseUsersAddTeamResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -93548,32 +96599,30 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ TeamsEnterpriseUsersAddTeamResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.teamUid != null && message.hasOwnProperty("teamUid")) - if (!(message.teamUid && typeof message.teamUid.length === "number" || $util.isString(message.teamUid))) - return "teamUid: buffer expected"; - if (message.users != null && message.hasOwnProperty("users")) { - if (!Array.isArray(message.users)) - return "users: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.teamUid != null && message.hasOwnProperty('teamUid')) + if ( + !( + (message.teamUid && typeof message.teamUid.length === 'number') || + $util.isString(message.teamUid) + ) + ) + return 'teamUid: buffer expected'; + if (message.users != null && message.hasOwnProperty('users')) { + if (!Array.isArray(message.users)) return 'users: array expected'; for (let i = 0; i < message.users.length; ++i) { let error = $root.Enterprise.TeamsEnterpriseUsersAddUserResponse.verify(message.users[i]); - if (error) - return "users." + error; + if (error) return 'users.' + error; } } - if (message.success != null && message.hasOwnProperty("success")) - if (typeof message.success !== "boolean") - return "success: boolean expected"; - if (message.message != null && message.hasOwnProperty("message")) - if (!$util.isString(message.message)) - return "message: string expected"; - if (message.resultCode != null && message.hasOwnProperty("resultCode")) - if (!$util.isString(message.resultCode)) - return "resultCode: string expected"; - if (message.additionalInfo != null && message.hasOwnProperty("additionalInfo")) - if (!$util.isString(message.additionalInfo)) - return "additionalInfo: string expected"; + if (message.success != null && message.hasOwnProperty('success')) + if (typeof message.success !== 'boolean') return 'success: boolean expected'; + if (message.message != null && message.hasOwnProperty('message')) + if (!$util.isString(message.message)) return 'message: string expected'; + if (message.resultCode != null && message.hasOwnProperty('resultCode')) + if (!$util.isString(message.resultCode)) return 'resultCode: string expected'; + if (message.additionalInfo != null && message.hasOwnProperty('additionalInfo')) + if (!$util.isString(message.additionalInfo)) return 'additionalInfo: string expected'; return null; }; @@ -93586,32 +96635,30 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.TeamsEnterpriseUsersAddTeamResponse} TeamsEnterpriseUsersAddTeamResponse */ TeamsEnterpriseUsersAddTeamResponse.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.TeamsEnterpriseUsersAddTeamResponse) - return object; + if (object instanceof $root.Enterprise.TeamsEnterpriseUsersAddTeamResponse) return object; let message = new $root.Enterprise.TeamsEnterpriseUsersAddTeamResponse(); if (object.teamUid != null) - if (typeof object.teamUid === "string") - $util.base64.decode(object.teamUid, message.teamUid = $util.newBuffer($util.base64.length(object.teamUid)), 0); - else if (object.teamUid.length >= 0) - message.teamUid = object.teamUid; + if (typeof object.teamUid === 'string') + $util.base64.decode( + object.teamUid, + (message.teamUid = $util.newBuffer($util.base64.length(object.teamUid))), + 0 + ); + else if (object.teamUid.length >= 0) message.teamUid = object.teamUid; if (object.users) { if (!Array.isArray(object.users)) - throw TypeError(".Enterprise.TeamsEnterpriseUsersAddTeamResponse.users: array expected"); + throw TypeError('.Enterprise.TeamsEnterpriseUsersAddTeamResponse.users: array expected'); message.users = []; for (let i = 0; i < object.users.length; ++i) { - if (typeof object.users[i] !== "object") - throw TypeError(".Enterprise.TeamsEnterpriseUsersAddTeamResponse.users: object expected"); + if (typeof object.users[i] !== 'object') + throw TypeError('.Enterprise.TeamsEnterpriseUsersAddTeamResponse.users: object expected'); message.users[i] = $root.Enterprise.TeamsEnterpriseUsersAddUserResponse.fromObject(object.users[i]); } } - if (object.success != null) - message.success = Boolean(object.success); - if (object.message != null) - message.message = String(object.message); - if (object.resultCode != null) - message.resultCode = String(object.resultCode); - if (object.additionalInfo != null) - message.additionalInfo = String(object.additionalInfo); + if (object.success != null) message.success = Boolean(object.success); + if (object.message != null) message.message = String(object.message); + if (object.resultCode != null) message.resultCode = String(object.resultCode); + if (object.additionalInfo != null) message.additionalInfo = String(object.additionalInfo); return message; }; @@ -93625,38 +96672,40 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ TeamsEnterpriseUsersAddTeamResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.users = []; + if (options.arrays || options.defaults) object.users = []; if (options.defaults) { - if (options.bytes === String) - object.teamUid = ""; + if (options.bytes === String) object.teamUid = ''; else { object.teamUid = []; - if (options.bytes !== Array) - object.teamUid = $util.newBuffer(object.teamUid); + if (options.bytes !== Array) object.teamUid = $util.newBuffer(object.teamUid); } object.success = false; - object.message = ""; - object.resultCode = ""; - object.additionalInfo = ""; - } - if (message.teamUid != null && message.hasOwnProperty("teamUid")) - object.teamUid = options.bytes === String ? $util.base64.encode(message.teamUid, 0, message.teamUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.teamUid) : message.teamUid; + object.message = ''; + object.resultCode = ''; + object.additionalInfo = ''; + } + if (message.teamUid != null && message.hasOwnProperty('teamUid')) + object.teamUid = + options.bytes === String + ? $util.base64.encode(message.teamUid, 0, message.teamUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.teamUid) + : message.teamUid; if (message.users && message.users.length) { object.users = []; for (let j = 0; j < message.users.length; ++j) - object.users[j] = $root.Enterprise.TeamsEnterpriseUsersAddUserResponse.toObject(message.users[j], options); - } - if (message.success != null && message.hasOwnProperty("success")) - object.success = message.success; - if (message.message != null && message.hasOwnProperty("message")) - object.message = message.message; - if (message.resultCode != null && message.hasOwnProperty("resultCode")) + object.users[j] = $root.Enterprise.TeamsEnterpriseUsersAddUserResponse.toObject( + message.users[j], + options + ); + } + if (message.success != null && message.hasOwnProperty('success')) object.success = message.success; + if (message.message != null && message.hasOwnProperty('message')) object.message = message.message; + if (message.resultCode != null && message.hasOwnProperty('resultCode')) object.resultCode = message.resultCode; - if (message.additionalInfo != null && message.hasOwnProperty("additionalInfo")) + if (message.additionalInfo != null && message.hasOwnProperty('additionalInfo')) object.additionalInfo = message.additionalInfo; return object; }; @@ -93682,16 +96731,15 @@ export const Enterprise = $root.Enterprise = (() => { */ TeamsEnterpriseUsersAddTeamResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.TeamsEnterpriseUsersAddTeamResponse"; + return typeUrlPrefix + '/Enterprise.TeamsEnterpriseUsersAddTeamResponse'; }; return TeamsEnterpriseUsersAddTeamResponse; })(); - Enterprise.TeamsEnterpriseUsersAddUserResponse = (function() { - + Enterprise.TeamsEnterpriseUsersAddUserResponse = (function () { /** * Properties of a TeamsEnterpriseUsersAddUserResponse. * @memberof Enterprise @@ -93715,8 +96763,7 @@ export const Enterprise = $root.Enterprise = (() => { function TeamsEnterpriseUsersAddUserResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -93725,7 +96772,9 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.TeamsEnterpriseUsersAddUserResponse * @instance */ - TeamsEnterpriseUsersAddUserResponse.prototype.enterpriseUserId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + TeamsEnterpriseUsersAddUserResponse.prototype.enterpriseUserId = $util.Long + ? $util.Long.fromBits(0, 0, false) + : 0; /** * TeamsEnterpriseUsersAddUserResponse revision. @@ -93733,7 +96782,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.TeamsEnterpriseUsersAddUserResponse * @instance */ - TeamsEnterpriseUsersAddUserResponse.prototype.revision = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + TeamsEnterpriseUsersAddUserResponse.prototype.revision = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * TeamsEnterpriseUsersAddUserResponse success. @@ -93749,7 +96798,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.TeamsEnterpriseUsersAddUserResponse * @instance */ - TeamsEnterpriseUsersAddUserResponse.prototype.message = ""; + TeamsEnterpriseUsersAddUserResponse.prototype.message = ''; /** * TeamsEnterpriseUsersAddUserResponse resultCode. @@ -93757,7 +96806,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.TeamsEnterpriseUsersAddUserResponse * @instance */ - TeamsEnterpriseUsersAddUserResponse.prototype.resultCode = ""; + TeamsEnterpriseUsersAddUserResponse.prototype.resultCode = ''; /** * TeamsEnterpriseUsersAddUserResponse additionalInfo. @@ -93765,7 +96814,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.TeamsEnterpriseUsersAddUserResponse * @instance */ - TeamsEnterpriseUsersAddUserResponse.prototype.additionalInfo = ""; + TeamsEnterpriseUsersAddUserResponse.prototype.additionalInfo = ''; /** * Creates a new TeamsEnterpriseUsersAddUserResponse instance using the specified properties. @@ -93789,20 +96838,19 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ TeamsEnterpriseUsersAddUserResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "enterpriseUserId")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.enterpriseUserId); - if (message.revision != null && Object.hasOwnProperty.call(message, "revision")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.revision); - if (message.success != null && Object.hasOwnProperty.call(message, "success")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.success); - if (message.message != null && Object.hasOwnProperty.call(message, "message")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.message); - if (message.resultCode != null && Object.hasOwnProperty.call(message, "resultCode")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.resultCode); - if (message.additionalInfo != null && Object.hasOwnProperty.call(message, "additionalInfo")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.additionalInfo); + if (!writer) writer = $Writer.create(); + if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, 'enterpriseUserId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int64(message.enterpriseUserId); + if (message.revision != null && Object.hasOwnProperty.call(message, 'revision')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int64(message.revision); + if (message.success != null && Object.hasOwnProperty.call(message, 'success')) + writer.uint32(/* id 3, wireType 0 =*/ 24).bool(message.success); + if (message.message != null && Object.hasOwnProperty.call(message, 'message')) + writer.uint32(/* id 4, wireType 2 =*/ 34).string(message.message); + if (message.resultCode != null && Object.hasOwnProperty.call(message, 'resultCode')) + writer.uint32(/* id 5, wireType 2 =*/ 42).string(message.resultCode); + if (message.additionalInfo != null && Object.hasOwnProperty.call(message, 'additionalInfo')) + writer.uint32(/* id 6, wireType 2 =*/ 50).string(message.additionalInfo); return writer; }; @@ -93831,39 +96879,39 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ TeamsEnterpriseUsersAddUserResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.TeamsEnterpriseUsersAddUserResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.TeamsEnterpriseUsersAddUserResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.enterpriseUserId = reader.int64(); break; } - case 2: { + case 2: { message.revision = reader.int64(); break; } - case 3: { + case 3: { message.success = reader.bool(); break; } - case 4: { + case 4: { message.message = reader.string(); break; } - case 5: { + case 5: { message.resultCode = reader.string(); break; } - case 6: { + case 6: { message.additionalInfo = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -93880,8 +96928,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ TeamsEnterpriseUsersAddUserResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -93894,26 +96941,35 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ TeamsEnterpriseUsersAddUserResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (!$util.isInteger(message.enterpriseUserId) && !(message.enterpriseUserId && $util.isInteger(message.enterpriseUserId.low) && $util.isInteger(message.enterpriseUserId.high))) - return "enterpriseUserId: integer|Long expected"; - if (message.revision != null && message.hasOwnProperty("revision")) - if (!$util.isInteger(message.revision) && !(message.revision && $util.isInteger(message.revision.low) && $util.isInteger(message.revision.high))) - return "revision: integer|Long expected"; - if (message.success != null && message.hasOwnProperty("success")) - if (typeof message.success !== "boolean") - return "success: boolean expected"; - if (message.message != null && message.hasOwnProperty("message")) - if (!$util.isString(message.message)) - return "message: string expected"; - if (message.resultCode != null && message.hasOwnProperty("resultCode")) - if (!$util.isString(message.resultCode)) - return "resultCode: string expected"; - if (message.additionalInfo != null && message.hasOwnProperty("additionalInfo")) - if (!$util.isString(message.additionalInfo)) - return "additionalInfo: string expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.enterpriseUserId != null && message.hasOwnProperty('enterpriseUserId')) + if ( + !$util.isInteger(message.enterpriseUserId) && + !( + message.enterpriseUserId && + $util.isInteger(message.enterpriseUserId.low) && + $util.isInteger(message.enterpriseUserId.high) + ) + ) + return 'enterpriseUserId: integer|Long expected'; + if (message.revision != null && message.hasOwnProperty('revision')) + if ( + !$util.isInteger(message.revision) && + !( + message.revision && + $util.isInteger(message.revision.low) && + $util.isInteger(message.revision.high) + ) + ) + return 'revision: integer|Long expected'; + if (message.success != null && message.hasOwnProperty('success')) + if (typeof message.success !== 'boolean') return 'success: boolean expected'; + if (message.message != null && message.hasOwnProperty('message')) + if (!$util.isString(message.message)) return 'message: string expected'; + if (message.resultCode != null && message.hasOwnProperty('resultCode')) + if (!$util.isString(message.resultCode)) return 'resultCode: string expected'; + if (message.additionalInfo != null && message.hasOwnProperty('additionalInfo')) + if (!$util.isString(message.additionalInfo)) return 'additionalInfo: string expected'; return null; }; @@ -93926,35 +96982,33 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.TeamsEnterpriseUsersAddUserResponse} TeamsEnterpriseUsersAddUserResponse */ TeamsEnterpriseUsersAddUserResponse.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.TeamsEnterpriseUsersAddUserResponse) - return object; + if (object instanceof $root.Enterprise.TeamsEnterpriseUsersAddUserResponse) return object; let message = new $root.Enterprise.TeamsEnterpriseUsersAddUserResponse(); if (object.enterpriseUserId != null) if ($util.Long) (message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId)).unsigned = false; - else if (typeof object.enterpriseUserId === "string") + else if (typeof object.enterpriseUserId === 'string') message.enterpriseUserId = parseInt(object.enterpriseUserId, 10); - else if (typeof object.enterpriseUserId === "number") + else if (typeof object.enterpriseUserId === 'number') message.enterpriseUserId = object.enterpriseUserId; - else if (typeof object.enterpriseUserId === "object") - message.enterpriseUserId = new $util.LongBits(object.enterpriseUserId.low >>> 0, object.enterpriseUserId.high >>> 0).toNumber(); + else if (typeof object.enterpriseUserId === 'object') + message.enterpriseUserId = new $util.LongBits( + object.enterpriseUserId.low >>> 0, + object.enterpriseUserId.high >>> 0 + ).toNumber(); if (object.revision != null) - if ($util.Long) - (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; - else if (typeof object.revision === "string") - message.revision = parseInt(object.revision, 10); - else if (typeof object.revision === "number") - message.revision = object.revision; - else if (typeof object.revision === "object") - message.revision = new $util.LongBits(object.revision.low >>> 0, object.revision.high >>> 0).toNumber(); - if (object.success != null) - message.success = Boolean(object.success); - if (object.message != null) - message.message = String(object.message); - if (object.resultCode != null) - message.resultCode = String(object.resultCode); - if (object.additionalInfo != null) - message.additionalInfo = String(object.additionalInfo); + if ($util.Long) (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; + else if (typeof object.revision === 'string') message.revision = parseInt(object.revision, 10); + else if (typeof object.revision === 'number') message.revision = object.revision; + else if (typeof object.revision === 'object') + message.revision = new $util.LongBits( + object.revision.low >>> 0, + object.revision.high >>> 0 + ).toNumber(); + if (object.success != null) message.success = Boolean(object.success); + if (object.message != null) message.message = String(object.message); + if (object.resultCode != null) message.resultCode = String(object.resultCode); + if (object.additionalInfo != null) message.additionalInfo = String(object.additionalInfo); return message; }; @@ -93968,42 +97022,53 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ TeamsEnterpriseUsersAddUserResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.enterpriseUserId = options.longs === String ? "0" : 0; + object.enterpriseUserId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.enterpriseUserId = options.longs === String ? '0' : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.revision = options.longs === String ? "0" : 0; + object.revision = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.revision = options.longs === String ? '0' : 0; object.success = false; - object.message = ""; - object.resultCode = ""; - object.additionalInfo = ""; - } - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (typeof message.enterpriseUserId === "number") - object.enterpriseUserId = options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; + object.message = ''; + object.resultCode = ''; + object.additionalInfo = ''; + } + if (message.enterpriseUserId != null && message.hasOwnProperty('enterpriseUserId')) + if (typeof message.enterpriseUserId === 'number') + object.enterpriseUserId = + options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; else - object.enterpriseUserId = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseUserId) : options.longs === Number ? new $util.LongBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0).toNumber() : message.enterpriseUserId; - if (message.revision != null && message.hasOwnProperty("revision")) - if (typeof message.revision === "number") + object.enterpriseUserId = + options.longs === String + ? $util.Long.prototype.toString.call(message.enterpriseUserId) + : options.longs === Number + ? new $util.LongBits( + message.enterpriseUserId.low >>> 0, + message.enterpriseUserId.high >>> 0 + ).toNumber() + : message.enterpriseUserId; + if (message.revision != null && message.hasOwnProperty('revision')) + if (typeof message.revision === 'number') object.revision = options.longs === String ? String(message.revision) : message.revision; else - object.revision = options.longs === String ? $util.Long.prototype.toString.call(message.revision) : options.longs === Number ? new $util.LongBits(message.revision.low >>> 0, message.revision.high >>> 0).toNumber() : message.revision; - if (message.success != null && message.hasOwnProperty("success")) - object.success = message.success; - if (message.message != null && message.hasOwnProperty("message")) - object.message = message.message; - if (message.resultCode != null && message.hasOwnProperty("resultCode")) + object.revision = + options.longs === String + ? $util.Long.prototype.toString.call(message.revision) + : options.longs === Number + ? new $util.LongBits(message.revision.low >>> 0, message.revision.high >>> 0).toNumber() + : message.revision; + if (message.success != null && message.hasOwnProperty('success')) object.success = message.success; + if (message.message != null && message.hasOwnProperty('message')) object.message = message.message; + if (message.resultCode != null && message.hasOwnProperty('resultCode')) object.resultCode = message.resultCode; - if (message.additionalInfo != null && message.hasOwnProperty("additionalInfo")) + if (message.additionalInfo != null && message.hasOwnProperty('additionalInfo')) object.additionalInfo = message.additionalInfo; return object; }; @@ -94029,16 +97094,15 @@ export const Enterprise = $root.Enterprise = (() => { */ TeamsEnterpriseUsersAddUserResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.TeamsEnterpriseUsersAddUserResponse"; + return typeUrlPrefix + '/Enterprise.TeamsEnterpriseUsersAddUserResponse'; }; return TeamsEnterpriseUsersAddUserResponse; })(); - Enterprise.TeamEnterpriseUserRemove = (function() { - + Enterprise.TeamEnterpriseUserRemove = (function () { /** * Properties of a TeamEnterpriseUserRemove. * @memberof Enterprise @@ -94058,8 +97122,7 @@ export const Enterprise = $root.Enterprise = (() => { function TeamEnterpriseUserRemove(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -94076,7 +97139,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.TeamEnterpriseUserRemove * @instance */ - TeamEnterpriseUserRemove.prototype.enterpriseUserId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + TeamEnterpriseUserRemove.prototype.enterpriseUserId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * Creates a new TeamEnterpriseUserRemove instance using the specified properties. @@ -94100,12 +97163,11 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ TeamEnterpriseUserRemove.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.teamUid != null && Object.hasOwnProperty.call(message, "teamUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.teamUid); - if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "enterpriseUserId")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.enterpriseUserId); + if (!writer) writer = $Writer.create(); + if (message.teamUid != null && Object.hasOwnProperty.call(message, 'teamUid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.teamUid); + if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, 'enterpriseUserId')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int64(message.enterpriseUserId); return writer; }; @@ -94134,23 +97196,23 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ TeamEnterpriseUserRemove.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.TeamEnterpriseUserRemove(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.TeamEnterpriseUserRemove(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.teamUid = reader.bytes(); break; } - case 2: { + case 2: { message.enterpriseUserId = reader.int64(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -94167,8 +97229,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ TeamEnterpriseUserRemove.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -94181,14 +97242,25 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ TeamEnterpriseUserRemove.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.teamUid != null && message.hasOwnProperty("teamUid")) - if (!(message.teamUid && typeof message.teamUid.length === "number" || $util.isString(message.teamUid))) - return "teamUid: buffer expected"; - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (!$util.isInteger(message.enterpriseUserId) && !(message.enterpriseUserId && $util.isInteger(message.enterpriseUserId.low) && $util.isInteger(message.enterpriseUserId.high))) - return "enterpriseUserId: integer|Long expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.teamUid != null && message.hasOwnProperty('teamUid')) + if ( + !( + (message.teamUid && typeof message.teamUid.length === 'number') || + $util.isString(message.teamUid) + ) + ) + return 'teamUid: buffer expected'; + if (message.enterpriseUserId != null && message.hasOwnProperty('enterpriseUserId')) + if ( + !$util.isInteger(message.enterpriseUserId) && + !( + message.enterpriseUserId && + $util.isInteger(message.enterpriseUserId.low) && + $util.isInteger(message.enterpriseUserId.high) + ) + ) + return 'enterpriseUserId: integer|Long expected'; return null; }; @@ -94201,23 +97273,28 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.TeamEnterpriseUserRemove} TeamEnterpriseUserRemove */ TeamEnterpriseUserRemove.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.TeamEnterpriseUserRemove) - return object; + if (object instanceof $root.Enterprise.TeamEnterpriseUserRemove) return object; let message = new $root.Enterprise.TeamEnterpriseUserRemove(); if (object.teamUid != null) - if (typeof object.teamUid === "string") - $util.base64.decode(object.teamUid, message.teamUid = $util.newBuffer($util.base64.length(object.teamUid)), 0); - else if (object.teamUid.length >= 0) - message.teamUid = object.teamUid; + if (typeof object.teamUid === 'string') + $util.base64.decode( + object.teamUid, + (message.teamUid = $util.newBuffer($util.base64.length(object.teamUid))), + 0 + ); + else if (object.teamUid.length >= 0) message.teamUid = object.teamUid; if (object.enterpriseUserId != null) if ($util.Long) (message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId)).unsigned = false; - else if (typeof object.enterpriseUserId === "string") + else if (typeof object.enterpriseUserId === 'string') message.enterpriseUserId = parseInt(object.enterpriseUserId, 10); - else if (typeof object.enterpriseUserId === "number") + else if (typeof object.enterpriseUserId === 'number') message.enterpriseUserId = object.enterpriseUserId; - else if (typeof object.enterpriseUserId === "object") - message.enterpriseUserId = new $util.LongBits(object.enterpriseUserId.low >>> 0, object.enterpriseUserId.high >>> 0).toNumber(); + else if (typeof object.enterpriseUserId === 'object') + message.enterpriseUserId = new $util.LongBits( + object.enterpriseUserId.low >>> 0, + object.enterpriseUserId.high >>> 0 + ).toNumber(); return message; }; @@ -94231,30 +97308,41 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ TeamEnterpriseUserRemove.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.teamUid = ""; + if (options.bytes === String) object.teamUid = ''; else { object.teamUid = []; - if (options.bytes !== Array) - object.teamUid = $util.newBuffer(object.teamUid); + if (options.bytes !== Array) object.teamUid = $util.newBuffer(object.teamUid); } if ($util.Long) { let long = new $util.Long(0, 0, false); - object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.enterpriseUserId = options.longs === String ? "0" : 0; - } - if (message.teamUid != null && message.hasOwnProperty("teamUid")) - object.teamUid = options.bytes === String ? $util.base64.encode(message.teamUid, 0, message.teamUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.teamUid) : message.teamUid; - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (typeof message.enterpriseUserId === "number") - object.enterpriseUserId = options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; + object.enterpriseUserId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.enterpriseUserId = options.longs === String ? '0' : 0; + } + if (message.teamUid != null && message.hasOwnProperty('teamUid')) + object.teamUid = + options.bytes === String + ? $util.base64.encode(message.teamUid, 0, message.teamUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.teamUid) + : message.teamUid; + if (message.enterpriseUserId != null && message.hasOwnProperty('enterpriseUserId')) + if (typeof message.enterpriseUserId === 'number') + object.enterpriseUserId = + options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; else - object.enterpriseUserId = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseUserId) : options.longs === Number ? new $util.LongBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0).toNumber() : message.enterpriseUserId; + object.enterpriseUserId = + options.longs === String + ? $util.Long.prototype.toString.call(message.enterpriseUserId) + : options.longs === Number + ? new $util.LongBits( + message.enterpriseUserId.low >>> 0, + message.enterpriseUserId.high >>> 0 + ).toNumber() + : message.enterpriseUserId; return object; }; @@ -94279,16 +97367,15 @@ export const Enterprise = $root.Enterprise = (() => { */ TeamEnterpriseUserRemove.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.TeamEnterpriseUserRemove"; + return typeUrlPrefix + '/Enterprise.TeamEnterpriseUserRemove'; }; return TeamEnterpriseUserRemove; })(); - Enterprise.TeamEnterpriseUserRemovesRequest = (function() { - + Enterprise.TeamEnterpriseUserRemovesRequest = (function () { /** * Properties of a TeamEnterpriseUserRemovesRequest. * @memberof Enterprise @@ -94308,8 +97395,7 @@ export const Enterprise = $root.Enterprise = (() => { this.teamEnterpriseUserRemove = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -94342,11 +97428,13 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ TeamEnterpriseUserRemovesRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.teamEnterpriseUserRemove != null && message.teamEnterpriseUserRemove.length) for (let i = 0; i < message.teamEnterpriseUserRemove.length; ++i) - $root.Enterprise.TeamEnterpriseUserRemove.encode(message.teamEnterpriseUserRemove[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.Enterprise.TeamEnterpriseUserRemove.encode( + message.teamEnterpriseUserRemove[i], + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); return writer; }; @@ -94375,21 +97463,23 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ TeamEnterpriseUserRemovesRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.TeamEnterpriseUserRemovesRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.TeamEnterpriseUserRemovesRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { if (!(message.teamEnterpriseUserRemove && message.teamEnterpriseUserRemove.length)) message.teamEnterpriseUserRemove = []; - message.teamEnterpriseUserRemove.push($root.Enterprise.TeamEnterpriseUserRemove.decode(reader, reader.uint32())); + message.teamEnterpriseUserRemove.push( + $root.Enterprise.TeamEnterpriseUserRemove.decode(reader, reader.uint32()) + ); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -94406,8 +97496,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ TeamEnterpriseUserRemovesRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -94420,15 +97509,12 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ TeamEnterpriseUserRemovesRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.teamEnterpriseUserRemove != null && message.hasOwnProperty("teamEnterpriseUserRemove")) { - if (!Array.isArray(message.teamEnterpriseUserRemove)) - return "teamEnterpriseUserRemove: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.teamEnterpriseUserRemove != null && message.hasOwnProperty('teamEnterpriseUserRemove')) { + if (!Array.isArray(message.teamEnterpriseUserRemove)) return 'teamEnterpriseUserRemove: array expected'; for (let i = 0; i < message.teamEnterpriseUserRemove.length; ++i) { let error = $root.Enterprise.TeamEnterpriseUserRemove.verify(message.teamEnterpriseUserRemove[i]); - if (error) - return "teamEnterpriseUserRemove." + error; + if (error) return 'teamEnterpriseUserRemove.' + error; } } return null; @@ -94443,17 +97529,22 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.TeamEnterpriseUserRemovesRequest} TeamEnterpriseUserRemovesRequest */ TeamEnterpriseUserRemovesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.TeamEnterpriseUserRemovesRequest) - return object; + if (object instanceof $root.Enterprise.TeamEnterpriseUserRemovesRequest) return object; let message = new $root.Enterprise.TeamEnterpriseUserRemovesRequest(); if (object.teamEnterpriseUserRemove) { if (!Array.isArray(object.teamEnterpriseUserRemove)) - throw TypeError(".Enterprise.TeamEnterpriseUserRemovesRequest.teamEnterpriseUserRemove: array expected"); + throw TypeError( + '.Enterprise.TeamEnterpriseUserRemovesRequest.teamEnterpriseUserRemove: array expected' + ); message.teamEnterpriseUserRemove = []; for (let i = 0; i < object.teamEnterpriseUserRemove.length; ++i) { - if (typeof object.teamEnterpriseUserRemove[i] !== "object") - throw TypeError(".Enterprise.TeamEnterpriseUserRemovesRequest.teamEnterpriseUserRemove: object expected"); - message.teamEnterpriseUserRemove[i] = $root.Enterprise.TeamEnterpriseUserRemove.fromObject(object.teamEnterpriseUserRemove[i]); + if (typeof object.teamEnterpriseUserRemove[i] !== 'object') + throw TypeError( + '.Enterprise.TeamEnterpriseUserRemovesRequest.teamEnterpriseUserRemove: object expected' + ); + message.teamEnterpriseUserRemove[i] = $root.Enterprise.TeamEnterpriseUserRemove.fromObject( + object.teamEnterpriseUserRemove[i] + ); } } return message; @@ -94469,15 +97560,16 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ TeamEnterpriseUserRemovesRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.teamEnterpriseUserRemove = []; + if (options.arrays || options.defaults) object.teamEnterpriseUserRemove = []; if (message.teamEnterpriseUserRemove && message.teamEnterpriseUserRemove.length) { object.teamEnterpriseUserRemove = []; for (let j = 0; j < message.teamEnterpriseUserRemove.length; ++j) - object.teamEnterpriseUserRemove[j] = $root.Enterprise.TeamEnterpriseUserRemove.toObject(message.teamEnterpriseUserRemove[j], options); + object.teamEnterpriseUserRemove[j] = $root.Enterprise.TeamEnterpriseUserRemove.toObject( + message.teamEnterpriseUserRemove[j], + options + ); } return object; }; @@ -94503,16 +97595,15 @@ export const Enterprise = $root.Enterprise = (() => { */ TeamEnterpriseUserRemovesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.TeamEnterpriseUserRemovesRequest"; + return typeUrlPrefix + '/Enterprise.TeamEnterpriseUserRemovesRequest'; }; return TeamEnterpriseUserRemovesRequest; })(); - Enterprise.TeamEnterpriseUserRemovesResponse = (function() { - + Enterprise.TeamEnterpriseUserRemovesResponse = (function () { /** * Properties of a TeamEnterpriseUserRemovesResponse. * @memberof Enterprise @@ -94532,8 +97623,7 @@ export const Enterprise = $root.Enterprise = (() => { this.teamEnterpriseUserRemoveResponse = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -94566,11 +97656,13 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ TeamEnterpriseUserRemovesResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.teamEnterpriseUserRemoveResponse != null && message.teamEnterpriseUserRemoveResponse.length) for (let i = 0; i < message.teamEnterpriseUserRemoveResponse.length; ++i) - $root.Enterprise.TeamEnterpriseUserRemoveResponse.encode(message.teamEnterpriseUserRemoveResponse[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.Enterprise.TeamEnterpriseUserRemoveResponse.encode( + message.teamEnterpriseUserRemoveResponse[i], + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); return writer; }; @@ -94599,21 +97691,28 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ TeamEnterpriseUserRemovesResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.TeamEnterpriseUserRemovesResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.TeamEnterpriseUserRemovesResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (!(message.teamEnterpriseUserRemoveResponse && message.teamEnterpriseUserRemoveResponse.length)) + case 1: { + if ( + !( + message.teamEnterpriseUserRemoveResponse && + message.teamEnterpriseUserRemoveResponse.length + ) + ) message.teamEnterpriseUserRemoveResponse = []; - message.teamEnterpriseUserRemoveResponse.push($root.Enterprise.TeamEnterpriseUserRemoveResponse.decode(reader, reader.uint32())); + message.teamEnterpriseUserRemoveResponse.push( + $root.Enterprise.TeamEnterpriseUserRemoveResponse.decode(reader, reader.uint32()) + ); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -94630,8 +97729,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ TeamEnterpriseUserRemovesResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -94644,15 +97742,18 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ TeamEnterpriseUserRemovesResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.teamEnterpriseUserRemoveResponse != null && message.hasOwnProperty("teamEnterpriseUserRemoveResponse")) { + if (typeof message !== 'object' || message === null) return 'object expected'; + if ( + message.teamEnterpriseUserRemoveResponse != null && + message.hasOwnProperty('teamEnterpriseUserRemoveResponse') + ) { if (!Array.isArray(message.teamEnterpriseUserRemoveResponse)) - return "teamEnterpriseUserRemoveResponse: array expected"; + return 'teamEnterpriseUserRemoveResponse: array expected'; for (let i = 0; i < message.teamEnterpriseUserRemoveResponse.length; ++i) { - let error = $root.Enterprise.TeamEnterpriseUserRemoveResponse.verify(message.teamEnterpriseUserRemoveResponse[i]); - if (error) - return "teamEnterpriseUserRemoveResponse." + error; + let error = $root.Enterprise.TeamEnterpriseUserRemoveResponse.verify( + message.teamEnterpriseUserRemoveResponse[i] + ); + if (error) return 'teamEnterpriseUserRemoveResponse.' + error; } } return null; @@ -94667,17 +97768,23 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.TeamEnterpriseUserRemovesResponse} TeamEnterpriseUserRemovesResponse */ TeamEnterpriseUserRemovesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.TeamEnterpriseUserRemovesResponse) - return object; + if (object instanceof $root.Enterprise.TeamEnterpriseUserRemovesResponse) return object; let message = new $root.Enterprise.TeamEnterpriseUserRemovesResponse(); if (object.teamEnterpriseUserRemoveResponse) { if (!Array.isArray(object.teamEnterpriseUserRemoveResponse)) - throw TypeError(".Enterprise.TeamEnterpriseUserRemovesResponse.teamEnterpriseUserRemoveResponse: array expected"); + throw TypeError( + '.Enterprise.TeamEnterpriseUserRemovesResponse.teamEnterpriseUserRemoveResponse: array expected' + ); message.teamEnterpriseUserRemoveResponse = []; for (let i = 0; i < object.teamEnterpriseUserRemoveResponse.length; ++i) { - if (typeof object.teamEnterpriseUserRemoveResponse[i] !== "object") - throw TypeError(".Enterprise.TeamEnterpriseUserRemovesResponse.teamEnterpriseUserRemoveResponse: object expected"); - message.teamEnterpriseUserRemoveResponse[i] = $root.Enterprise.TeamEnterpriseUserRemoveResponse.fromObject(object.teamEnterpriseUserRemoveResponse[i]); + if (typeof object.teamEnterpriseUserRemoveResponse[i] !== 'object') + throw TypeError( + '.Enterprise.TeamEnterpriseUserRemovesResponse.teamEnterpriseUserRemoveResponse: object expected' + ); + message.teamEnterpriseUserRemoveResponse[i] = + $root.Enterprise.TeamEnterpriseUserRemoveResponse.fromObject( + object.teamEnterpriseUserRemoveResponse[i] + ); } } return message; @@ -94693,15 +97800,17 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ TeamEnterpriseUserRemovesResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.teamEnterpriseUserRemoveResponse = []; + if (options.arrays || options.defaults) object.teamEnterpriseUserRemoveResponse = []; if (message.teamEnterpriseUserRemoveResponse && message.teamEnterpriseUserRemoveResponse.length) { object.teamEnterpriseUserRemoveResponse = []; for (let j = 0; j < message.teamEnterpriseUserRemoveResponse.length; ++j) - object.teamEnterpriseUserRemoveResponse[j] = $root.Enterprise.TeamEnterpriseUserRemoveResponse.toObject(message.teamEnterpriseUserRemoveResponse[j], options); + object.teamEnterpriseUserRemoveResponse[j] = + $root.Enterprise.TeamEnterpriseUserRemoveResponse.toObject( + message.teamEnterpriseUserRemoveResponse[j], + options + ); } return object; }; @@ -94727,16 +97836,15 @@ export const Enterprise = $root.Enterprise = (() => { */ TeamEnterpriseUserRemovesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.TeamEnterpriseUserRemovesResponse"; + return typeUrlPrefix + '/Enterprise.TeamEnterpriseUserRemovesResponse'; }; return TeamEnterpriseUserRemovesResponse; })(); - Enterprise.TeamEnterpriseUserRemoveResponse = (function() { - + Enterprise.TeamEnterpriseUserRemoveResponse = (function () { /** * Properties of a TeamEnterpriseUserRemoveResponse. * @memberof Enterprise @@ -94759,8 +97867,7 @@ export const Enterprise = $root.Enterprise = (() => { function TeamEnterpriseUserRemoveResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -94785,7 +97892,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.TeamEnterpriseUserRemoveResponse * @instance */ - TeamEnterpriseUserRemoveResponse.prototype.resultCode = ""; + TeamEnterpriseUserRemoveResponse.prototype.resultCode = ''; /** * TeamEnterpriseUserRemoveResponse message. @@ -94793,7 +97900,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.TeamEnterpriseUserRemoveResponse * @instance */ - TeamEnterpriseUserRemoveResponse.prototype.message = ""; + TeamEnterpriseUserRemoveResponse.prototype.message = ''; /** * TeamEnterpriseUserRemoveResponse additionalInfo. @@ -94801,7 +97908,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.TeamEnterpriseUserRemoveResponse * @instance */ - TeamEnterpriseUserRemoveResponse.prototype.additionalInfo = ""; + TeamEnterpriseUserRemoveResponse.prototype.additionalInfo = ''; /** * Creates a new TeamEnterpriseUserRemoveResponse instance using the specified properties. @@ -94825,18 +97932,23 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ TeamEnterpriseUserRemoveResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.teamEnterpriseUserRemove != null && Object.hasOwnProperty.call(message, "teamEnterpriseUserRemove")) - $root.Enterprise.TeamEnterpriseUserRemove.encode(message.teamEnterpriseUserRemove, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.success != null && Object.hasOwnProperty.call(message, "success")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.success); - if (message.resultCode != null && Object.hasOwnProperty.call(message, "resultCode")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.resultCode); - if (message.message != null && Object.hasOwnProperty.call(message, "message")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.message); - if (message.additionalInfo != null && Object.hasOwnProperty.call(message, "additionalInfo")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.additionalInfo); + if (!writer) writer = $Writer.create(); + if ( + message.teamEnterpriseUserRemove != null && + Object.hasOwnProperty.call(message, 'teamEnterpriseUserRemove') + ) + $root.Enterprise.TeamEnterpriseUserRemove.encode( + message.teamEnterpriseUserRemove, + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); + if (message.success != null && Object.hasOwnProperty.call(message, 'success')) + writer.uint32(/* id 2, wireType 0 =*/ 16).bool(message.success); + if (message.resultCode != null && Object.hasOwnProperty.call(message, 'resultCode')) + writer.uint32(/* id 3, wireType 2 =*/ 26).string(message.resultCode); + if (message.message != null && Object.hasOwnProperty.call(message, 'message')) + writer.uint32(/* id 4, wireType 2 =*/ 34).string(message.message); + if (message.additionalInfo != null && Object.hasOwnProperty.call(message, 'additionalInfo')) + writer.uint32(/* id 5, wireType 2 =*/ 42).string(message.additionalInfo); return writer; }; @@ -94865,35 +97977,38 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ TeamEnterpriseUserRemoveResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.TeamEnterpriseUserRemoveResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.TeamEnterpriseUserRemoveResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - message.teamEnterpriseUserRemove = $root.Enterprise.TeamEnterpriseUserRemove.decode(reader, reader.uint32()); + case 1: { + message.teamEnterpriseUserRemove = $root.Enterprise.TeamEnterpriseUserRemove.decode( + reader, + reader.uint32() + ); break; } - case 2: { + case 2: { message.success = reader.bool(); break; } - case 3: { + case 3: { message.resultCode = reader.string(); break; } - case 4: { + case 4: { message.message = reader.string(); break; } - case 5: { + case 5: { message.additionalInfo = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -94910,8 +98025,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ TeamEnterpriseUserRemoveResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -94924,25 +98038,19 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ TeamEnterpriseUserRemoveResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.teamEnterpriseUserRemove != null && message.hasOwnProperty("teamEnterpriseUserRemove")) { + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.teamEnterpriseUserRemove != null && message.hasOwnProperty('teamEnterpriseUserRemove')) { let error = $root.Enterprise.TeamEnterpriseUserRemove.verify(message.teamEnterpriseUserRemove); - if (error) - return "teamEnterpriseUserRemove." + error; + if (error) return 'teamEnterpriseUserRemove.' + error; } - if (message.success != null && message.hasOwnProperty("success")) - if (typeof message.success !== "boolean") - return "success: boolean expected"; - if (message.resultCode != null && message.hasOwnProperty("resultCode")) - if (!$util.isString(message.resultCode)) - return "resultCode: string expected"; - if (message.message != null && message.hasOwnProperty("message")) - if (!$util.isString(message.message)) - return "message: string expected"; - if (message.additionalInfo != null && message.hasOwnProperty("additionalInfo")) - if (!$util.isString(message.additionalInfo)) - return "additionalInfo: string expected"; + if (message.success != null && message.hasOwnProperty('success')) + if (typeof message.success !== 'boolean') return 'success: boolean expected'; + if (message.resultCode != null && message.hasOwnProperty('resultCode')) + if (!$util.isString(message.resultCode)) return 'resultCode: string expected'; + if (message.message != null && message.hasOwnProperty('message')) + if (!$util.isString(message.message)) return 'message: string expected'; + if (message.additionalInfo != null && message.hasOwnProperty('additionalInfo')) + if (!$util.isString(message.additionalInfo)) return 'additionalInfo: string expected'; return null; }; @@ -94955,22 +98063,21 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.TeamEnterpriseUserRemoveResponse} TeamEnterpriseUserRemoveResponse */ TeamEnterpriseUserRemoveResponse.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.TeamEnterpriseUserRemoveResponse) - return object; + if (object instanceof $root.Enterprise.TeamEnterpriseUserRemoveResponse) return object; let message = new $root.Enterprise.TeamEnterpriseUserRemoveResponse(); if (object.teamEnterpriseUserRemove != null) { - if (typeof object.teamEnterpriseUserRemove !== "object") - throw TypeError(".Enterprise.TeamEnterpriseUserRemoveResponse.teamEnterpriseUserRemove: object expected"); - message.teamEnterpriseUserRemove = $root.Enterprise.TeamEnterpriseUserRemove.fromObject(object.teamEnterpriseUserRemove); - } - if (object.success != null) - message.success = Boolean(object.success); - if (object.resultCode != null) - message.resultCode = String(object.resultCode); - if (object.message != null) - message.message = String(object.message); - if (object.additionalInfo != null) - message.additionalInfo = String(object.additionalInfo); + if (typeof object.teamEnterpriseUserRemove !== 'object') + throw TypeError( + '.Enterprise.TeamEnterpriseUserRemoveResponse.teamEnterpriseUserRemove: object expected' + ); + message.teamEnterpriseUserRemove = $root.Enterprise.TeamEnterpriseUserRemove.fromObject( + object.teamEnterpriseUserRemove + ); + } + if (object.success != null) message.success = Boolean(object.success); + if (object.resultCode != null) message.resultCode = String(object.resultCode); + if (object.message != null) message.message = String(object.message); + if (object.additionalInfo != null) message.additionalInfo = String(object.additionalInfo); return message; }; @@ -94984,25 +98091,25 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ TeamEnterpriseUserRemoveResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { object.teamEnterpriseUserRemove = null; object.success = false; - object.resultCode = ""; - object.message = ""; - object.additionalInfo = ""; - } - if (message.teamEnterpriseUserRemove != null && message.hasOwnProperty("teamEnterpriseUserRemove")) - object.teamEnterpriseUserRemove = $root.Enterprise.TeamEnterpriseUserRemove.toObject(message.teamEnterpriseUserRemove, options); - if (message.success != null && message.hasOwnProperty("success")) - object.success = message.success; - if (message.resultCode != null && message.hasOwnProperty("resultCode")) + object.resultCode = ''; + object.message = ''; + object.additionalInfo = ''; + } + if (message.teamEnterpriseUserRemove != null && message.hasOwnProperty('teamEnterpriseUserRemove')) + object.teamEnterpriseUserRemove = $root.Enterprise.TeamEnterpriseUserRemove.toObject( + message.teamEnterpriseUserRemove, + options + ); + if (message.success != null && message.hasOwnProperty('success')) object.success = message.success; + if (message.resultCode != null && message.hasOwnProperty('resultCode')) object.resultCode = message.resultCode; - if (message.message != null && message.hasOwnProperty("message")) - object.message = message.message; - if (message.additionalInfo != null && message.hasOwnProperty("additionalInfo")) + if (message.message != null && message.hasOwnProperty('message')) object.message = message.message; + if (message.additionalInfo != null && message.hasOwnProperty('additionalInfo')) object.additionalInfo = message.additionalInfo; return object; }; @@ -95028,16 +98135,15 @@ export const Enterprise = $root.Enterprise = (() => { */ TeamEnterpriseUserRemoveResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.TeamEnterpriseUserRemoveResponse"; + return typeUrlPrefix + '/Enterprise.TeamEnterpriseUserRemoveResponse'; }; return TeamEnterpriseUserRemoveResponse; })(); - Enterprise.DomainAlias = (function() { - + Enterprise.DomainAlias = (function () { /** * Properties of a DomainAlias. * @memberof Enterprise @@ -95059,8 +98165,7 @@ export const Enterprise = $root.Enterprise = (() => { function DomainAlias(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -95069,7 +98174,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.DomainAlias * @instance */ - DomainAlias.prototype.domain = ""; + DomainAlias.prototype.domain = ''; /** * DomainAlias alias. @@ -95077,7 +98182,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.DomainAlias * @instance */ - DomainAlias.prototype.alias = ""; + DomainAlias.prototype.alias = ''; /** * DomainAlias status. @@ -95093,7 +98198,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.DomainAlias * @instance */ - DomainAlias.prototype.message = ""; + DomainAlias.prototype.message = ''; /** * Creates a new DomainAlias instance using the specified properties. @@ -95117,16 +98222,15 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ DomainAlias.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.domain != null && Object.hasOwnProperty.call(message, "domain")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.domain); - if (message.alias != null && Object.hasOwnProperty.call(message, "alias")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.alias); - if (message.status != null && Object.hasOwnProperty.call(message, "status")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.status); - if (message.message != null && Object.hasOwnProperty.call(message, "message")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.message); + if (!writer) writer = $Writer.create(); + if (message.domain != null && Object.hasOwnProperty.call(message, 'domain')) + writer.uint32(/* id 1, wireType 2 =*/ 10).string(message.domain); + if (message.alias != null && Object.hasOwnProperty.call(message, 'alias')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.alias); + if (message.status != null && Object.hasOwnProperty.call(message, 'status')) + writer.uint32(/* id 3, wireType 0 =*/ 24).int32(message.status); + if (message.message != null && Object.hasOwnProperty.call(message, 'message')) + writer.uint32(/* id 4, wireType 2 =*/ 34).string(message.message); return writer; }; @@ -95155,31 +98259,31 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ DomainAlias.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.DomainAlias(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.DomainAlias(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.domain = reader.string(); break; } - case 2: { + case 2: { message.alias = reader.string(); break; } - case 3: { + case 3: { message.status = reader.int32(); break; } - case 4: { + case 4: { message.message = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -95196,8 +98300,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ DomainAlias.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -95210,20 +98313,15 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ DomainAlias.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.domain != null && message.hasOwnProperty("domain")) - if (!$util.isString(message.domain)) - return "domain: string expected"; - if (message.alias != null && message.hasOwnProperty("alias")) - if (!$util.isString(message.alias)) - return "alias: string expected"; - if (message.status != null && message.hasOwnProperty("status")) - if (!$util.isInteger(message.status)) - return "status: integer expected"; - if (message.message != null && message.hasOwnProperty("message")) - if (!$util.isString(message.message)) - return "message: string expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.domain != null && message.hasOwnProperty('domain')) + if (!$util.isString(message.domain)) return 'domain: string expected'; + if (message.alias != null && message.hasOwnProperty('alias')) + if (!$util.isString(message.alias)) return 'alias: string expected'; + if (message.status != null && message.hasOwnProperty('status')) + if (!$util.isInteger(message.status)) return 'status: integer expected'; + if (message.message != null && message.hasOwnProperty('message')) + if (!$util.isString(message.message)) return 'message: string expected'; return null; }; @@ -95236,17 +98334,12 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.DomainAlias} DomainAlias */ DomainAlias.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.DomainAlias) - return object; + if (object instanceof $root.Enterprise.DomainAlias) return object; let message = new $root.Enterprise.DomainAlias(); - if (object.domain != null) - message.domain = String(object.domain); - if (object.alias != null) - message.alias = String(object.alias); - if (object.status != null) - message.status = object.status | 0; - if (object.message != null) - message.message = String(object.message); + if (object.domain != null) message.domain = String(object.domain); + if (object.alias != null) message.alias = String(object.alias); + if (object.status != null) message.status = object.status | 0; + if (object.message != null) message.message = String(object.message); return message; }; @@ -95260,23 +98353,18 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ DomainAlias.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - object.domain = ""; - object.alias = ""; + object.domain = ''; + object.alias = ''; object.status = 0; - object.message = ""; + object.message = ''; } - if (message.domain != null && message.hasOwnProperty("domain")) - object.domain = message.domain; - if (message.alias != null && message.hasOwnProperty("alias")) - object.alias = message.alias; - if (message.status != null && message.hasOwnProperty("status")) - object.status = message.status; - if (message.message != null && message.hasOwnProperty("message")) - object.message = message.message; + if (message.domain != null && message.hasOwnProperty('domain')) object.domain = message.domain; + if (message.alias != null && message.hasOwnProperty('alias')) object.alias = message.alias; + if (message.status != null && message.hasOwnProperty('status')) object.status = message.status; + if (message.message != null && message.hasOwnProperty('message')) object.message = message.message; return object; }; @@ -95301,16 +98389,15 @@ export const Enterprise = $root.Enterprise = (() => { */ DomainAlias.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.DomainAlias"; + return typeUrlPrefix + '/Enterprise.DomainAlias'; }; return DomainAlias; })(); - Enterprise.DomainAliasRequest = (function() { - + Enterprise.DomainAliasRequest = (function () { /** * Properties of a DomainAliasRequest. * @memberof Enterprise @@ -95330,8 +98417,7 @@ export const Enterprise = $root.Enterprise = (() => { this.domainAlias = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -95364,11 +98450,13 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ DomainAliasRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.domainAlias != null && message.domainAlias.length) for (let i = 0; i < message.domainAlias.length; ++i) - $root.Enterprise.DomainAlias.encode(message.domainAlias[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.Enterprise.DomainAlias.encode( + message.domainAlias[i], + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); return writer; }; @@ -95397,21 +98485,20 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ DomainAliasRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.DomainAliasRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.DomainAliasRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (!(message.domainAlias && message.domainAlias.length)) - message.domainAlias = []; + case 1: { + if (!(message.domainAlias && message.domainAlias.length)) message.domainAlias = []; message.domainAlias.push($root.Enterprise.DomainAlias.decode(reader, reader.uint32())); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -95428,8 +98515,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ DomainAliasRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -95442,15 +98528,12 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ DomainAliasRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.domainAlias != null && message.hasOwnProperty("domainAlias")) { - if (!Array.isArray(message.domainAlias)) - return "domainAlias: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.domainAlias != null && message.hasOwnProperty('domainAlias')) { + if (!Array.isArray(message.domainAlias)) return 'domainAlias: array expected'; for (let i = 0; i < message.domainAlias.length; ++i) { let error = $root.Enterprise.DomainAlias.verify(message.domainAlias[i]); - if (error) - return "domainAlias." + error; + if (error) return 'domainAlias.' + error; } } return null; @@ -95465,16 +98548,15 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.DomainAliasRequest} DomainAliasRequest */ DomainAliasRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.DomainAliasRequest) - return object; + if (object instanceof $root.Enterprise.DomainAliasRequest) return object; let message = new $root.Enterprise.DomainAliasRequest(); if (object.domainAlias) { if (!Array.isArray(object.domainAlias)) - throw TypeError(".Enterprise.DomainAliasRequest.domainAlias: array expected"); + throw TypeError('.Enterprise.DomainAliasRequest.domainAlias: array expected'); message.domainAlias = []; for (let i = 0; i < object.domainAlias.length; ++i) { - if (typeof object.domainAlias[i] !== "object") - throw TypeError(".Enterprise.DomainAliasRequest.domainAlias: object expected"); + if (typeof object.domainAlias[i] !== 'object') + throw TypeError('.Enterprise.DomainAliasRequest.domainAlias: object expected'); message.domainAlias[i] = $root.Enterprise.DomainAlias.fromObject(object.domainAlias[i]); } } @@ -95491,11 +98573,9 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ DomainAliasRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.domainAlias = []; + if (options.arrays || options.defaults) object.domainAlias = []; if (message.domainAlias && message.domainAlias.length) { object.domainAlias = []; for (let j = 0; j < message.domainAlias.length; ++j) @@ -95525,16 +98605,15 @@ export const Enterprise = $root.Enterprise = (() => { */ DomainAliasRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.DomainAliasRequest"; + return typeUrlPrefix + '/Enterprise.DomainAliasRequest'; }; return DomainAliasRequest; })(); - Enterprise.DomainAliasResponse = (function() { - + Enterprise.DomainAliasResponse = (function () { /** * Properties of a DomainAliasResponse. * @memberof Enterprise @@ -95554,8 +98633,7 @@ export const Enterprise = $root.Enterprise = (() => { this.domainAlias = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -95588,11 +98666,13 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ DomainAliasResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.domainAlias != null && message.domainAlias.length) for (let i = 0; i < message.domainAlias.length; ++i) - $root.Enterprise.DomainAlias.encode(message.domainAlias[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.Enterprise.DomainAlias.encode( + message.domainAlias[i], + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); return writer; }; @@ -95621,21 +98701,20 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ DomainAliasResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.DomainAliasResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.DomainAliasResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (!(message.domainAlias && message.domainAlias.length)) - message.domainAlias = []; + case 1: { + if (!(message.domainAlias && message.domainAlias.length)) message.domainAlias = []; message.domainAlias.push($root.Enterprise.DomainAlias.decode(reader, reader.uint32())); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -95652,8 +98731,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ DomainAliasResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -95666,15 +98744,12 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ DomainAliasResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.domainAlias != null && message.hasOwnProperty("domainAlias")) { - if (!Array.isArray(message.domainAlias)) - return "domainAlias: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.domainAlias != null && message.hasOwnProperty('domainAlias')) { + if (!Array.isArray(message.domainAlias)) return 'domainAlias: array expected'; for (let i = 0; i < message.domainAlias.length; ++i) { let error = $root.Enterprise.DomainAlias.verify(message.domainAlias[i]); - if (error) - return "domainAlias." + error; + if (error) return 'domainAlias.' + error; } } return null; @@ -95689,16 +98764,15 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.DomainAliasResponse} DomainAliasResponse */ DomainAliasResponse.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.DomainAliasResponse) - return object; + if (object instanceof $root.Enterprise.DomainAliasResponse) return object; let message = new $root.Enterprise.DomainAliasResponse(); if (object.domainAlias) { if (!Array.isArray(object.domainAlias)) - throw TypeError(".Enterprise.DomainAliasResponse.domainAlias: array expected"); + throw TypeError('.Enterprise.DomainAliasResponse.domainAlias: array expected'); message.domainAlias = []; for (let i = 0; i < object.domainAlias.length; ++i) { - if (typeof object.domainAlias[i] !== "object") - throw TypeError(".Enterprise.DomainAliasResponse.domainAlias: object expected"); + if (typeof object.domainAlias[i] !== 'object') + throw TypeError('.Enterprise.DomainAliasResponse.domainAlias: object expected'); message.domainAlias[i] = $root.Enterprise.DomainAlias.fromObject(object.domainAlias[i]); } } @@ -95715,11 +98789,9 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ DomainAliasResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.domainAlias = []; + if (options.arrays || options.defaults) object.domainAlias = []; if (message.domainAlias && message.domainAlias.length) { object.domainAlias = []; for (let j = 0; j < message.domainAlias.length; ++j) @@ -95749,16 +98821,15 @@ export const Enterprise = $root.Enterprise = (() => { */ DomainAliasResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.DomainAliasResponse"; + return typeUrlPrefix + '/Enterprise.DomainAliasResponse'; }; return DomainAliasResponse; })(); - Enterprise.EnterpriseUsersProvisionRequest = (function() { - + Enterprise.EnterpriseUsersProvisionRequest = (function () { /** * Properties of an EnterpriseUsersProvisionRequest. * @memberof Enterprise @@ -95779,8 +98850,7 @@ export const Enterprise = $root.Enterprise = (() => { this.users = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -95797,7 +98867,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.EnterpriseUsersProvisionRequest * @instance */ - EnterpriseUsersProvisionRequest.prototype.clientVersion = ""; + EnterpriseUsersProvisionRequest.prototype.clientVersion = ''; /** * Creates a new EnterpriseUsersProvisionRequest instance using the specified properties. @@ -95821,13 +98891,15 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ EnterpriseUsersProvisionRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.users != null && message.users.length) for (let i = 0; i < message.users.length; ++i) - $root.Enterprise.EnterpriseUsersProvision.encode(message.users[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.clientVersion != null && Object.hasOwnProperty.call(message, "clientVersion")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.clientVersion); + $root.Enterprise.EnterpriseUsersProvision.encode( + message.users[i], + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); + if (message.clientVersion != null && Object.hasOwnProperty.call(message, 'clientVersion')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.clientVersion); return writer; }; @@ -95856,25 +98928,24 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ EnterpriseUsersProvisionRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.EnterpriseUsersProvisionRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.EnterpriseUsersProvisionRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (!(message.users && message.users.length)) - message.users = []; + case 1: { + if (!(message.users && message.users.length)) message.users = []; message.users.push($root.Enterprise.EnterpriseUsersProvision.decode(reader, reader.uint32())); break; } - case 2: { + case 2: { message.clientVersion = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -95891,8 +98962,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ EnterpriseUsersProvisionRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -95905,20 +98975,16 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ EnterpriseUsersProvisionRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.users != null && message.hasOwnProperty("users")) { - if (!Array.isArray(message.users)) - return "users: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.users != null && message.hasOwnProperty('users')) { + if (!Array.isArray(message.users)) return 'users: array expected'; for (let i = 0; i < message.users.length; ++i) { let error = $root.Enterprise.EnterpriseUsersProvision.verify(message.users[i]); - if (error) - return "users." + error; + if (error) return 'users.' + error; } } - if (message.clientVersion != null && message.hasOwnProperty("clientVersion")) - if (!$util.isString(message.clientVersion)) - return "clientVersion: string expected"; + if (message.clientVersion != null && message.hasOwnProperty('clientVersion')) + if (!$util.isString(message.clientVersion)) return 'clientVersion: string expected'; return null; }; @@ -95931,21 +98997,19 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.EnterpriseUsersProvisionRequest} EnterpriseUsersProvisionRequest */ EnterpriseUsersProvisionRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.EnterpriseUsersProvisionRequest) - return object; + if (object instanceof $root.Enterprise.EnterpriseUsersProvisionRequest) return object; let message = new $root.Enterprise.EnterpriseUsersProvisionRequest(); if (object.users) { if (!Array.isArray(object.users)) - throw TypeError(".Enterprise.EnterpriseUsersProvisionRequest.users: array expected"); + throw TypeError('.Enterprise.EnterpriseUsersProvisionRequest.users: array expected'); message.users = []; for (let i = 0; i < object.users.length; ++i) { - if (typeof object.users[i] !== "object") - throw TypeError(".Enterprise.EnterpriseUsersProvisionRequest.users: object expected"); + if (typeof object.users[i] !== 'object') + throw TypeError('.Enterprise.EnterpriseUsersProvisionRequest.users: object expected'); message.users[i] = $root.Enterprise.EnterpriseUsersProvision.fromObject(object.users[i]); } } - if (object.clientVersion != null) - message.clientVersion = String(object.clientVersion); + if (object.clientVersion != null) message.clientVersion = String(object.clientVersion); return message; }; @@ -95959,19 +99023,16 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ EnterpriseUsersProvisionRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.users = []; - if (options.defaults) - object.clientVersion = ""; + if (options.arrays || options.defaults) object.users = []; + if (options.defaults) object.clientVersion = ''; if (message.users && message.users.length) { object.users = []; for (let j = 0; j < message.users.length; ++j) object.users[j] = $root.Enterprise.EnterpriseUsersProvision.toObject(message.users[j], options); } - if (message.clientVersion != null && message.hasOwnProperty("clientVersion")) + if (message.clientVersion != null && message.hasOwnProperty('clientVersion')) object.clientVersion = message.clientVersion; return object; }; @@ -95997,16 +99058,15 @@ export const Enterprise = $root.Enterprise = (() => { */ EnterpriseUsersProvisionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.EnterpriseUsersProvisionRequest"; + return typeUrlPrefix + '/Enterprise.EnterpriseUsersProvisionRequest'; }; return EnterpriseUsersProvisionRequest; })(); - Enterprise.EnterpriseUsersProvision = (function() { - + Enterprise.EnterpriseUsersProvision = (function () { /** * Properties of an EnterpriseUsersProvision. * @memberof Enterprise @@ -96040,8 +99100,7 @@ export const Enterprise = $root.Enterprise = (() => { function EnterpriseUsersProvision(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -96050,7 +99109,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.EnterpriseUsersProvision * @instance */ - EnterpriseUsersProvision.prototype.enterpriseUserId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + EnterpriseUsersProvision.prototype.enterpriseUserId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * EnterpriseUsersProvision username. @@ -96058,7 +99117,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.EnterpriseUsersProvision * @instance */ - EnterpriseUsersProvision.prototype.username = ""; + EnterpriseUsersProvision.prototype.username = ''; /** * EnterpriseUsersProvision nodeId. @@ -96066,7 +99125,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.EnterpriseUsersProvision * @instance */ - EnterpriseUsersProvision.prototype.nodeId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + EnterpriseUsersProvision.prototype.nodeId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * EnterpriseUsersProvision encryptedData. @@ -96074,7 +99133,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.EnterpriseUsersProvision * @instance */ - EnterpriseUsersProvision.prototype.encryptedData = ""; + EnterpriseUsersProvision.prototype.encryptedData = ''; /** * EnterpriseUsersProvision keyType. @@ -96090,7 +99149,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.EnterpriseUsersProvision * @instance */ - EnterpriseUsersProvision.prototype.fullName = ""; + EnterpriseUsersProvision.prototype.fullName = ''; /** * EnterpriseUsersProvision jobTitle. @@ -96098,7 +99157,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.EnterpriseUsersProvision * @instance */ - EnterpriseUsersProvision.prototype.jobTitle = ""; + EnterpriseUsersProvision.prototype.jobTitle = ''; /** * EnterpriseUsersProvision enterpriseUsersDataKey. @@ -96194,40 +99253,39 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ EnterpriseUsersProvision.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "enterpriseUserId")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.enterpriseUserId); - if (message.username != null && Object.hasOwnProperty.call(message, "username")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.username); - if (message.nodeId != null && Object.hasOwnProperty.call(message, "nodeId")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.nodeId); - if (message.encryptedData != null && Object.hasOwnProperty.call(message, "encryptedData")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.encryptedData); - if (message.keyType != null && Object.hasOwnProperty.call(message, "keyType")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.keyType); - if (message.fullName != null && Object.hasOwnProperty.call(message, "fullName")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.fullName); - if (message.jobTitle != null && Object.hasOwnProperty.call(message, "jobTitle")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.jobTitle); - if (message.enterpriseUsersDataKey != null && Object.hasOwnProperty.call(message, "enterpriseUsersDataKey")) - writer.uint32(/* id 8, wireType 2 =*/66).bytes(message.enterpriseUsersDataKey); - if (message.authVerifier != null && Object.hasOwnProperty.call(message, "authVerifier")) - writer.uint32(/* id 9, wireType 2 =*/74).bytes(message.authVerifier); - if (message.encryptionParams != null && Object.hasOwnProperty.call(message, "encryptionParams")) - writer.uint32(/* id 10, wireType 2 =*/82).bytes(message.encryptionParams); - if (message.rsaPublicKey != null && Object.hasOwnProperty.call(message, "rsaPublicKey")) - writer.uint32(/* id 11, wireType 2 =*/90).bytes(message.rsaPublicKey); - if (message.rsaEncryptedPrivateKey != null && Object.hasOwnProperty.call(message, "rsaEncryptedPrivateKey")) - writer.uint32(/* id 12, wireType 2 =*/98).bytes(message.rsaEncryptedPrivateKey); - if (message.eccPublicKey != null && Object.hasOwnProperty.call(message, "eccPublicKey")) - writer.uint32(/* id 13, wireType 2 =*/106).bytes(message.eccPublicKey); - if (message.eccEncryptedPrivateKey != null && Object.hasOwnProperty.call(message, "eccEncryptedPrivateKey")) - writer.uint32(/* id 14, wireType 2 =*/114).bytes(message.eccEncryptedPrivateKey); - if (message.encryptedDeviceToken != null && Object.hasOwnProperty.call(message, "encryptedDeviceToken")) - writer.uint32(/* id 15, wireType 2 =*/122).bytes(message.encryptedDeviceToken); - if (message.encryptedClientKey != null && Object.hasOwnProperty.call(message, "encryptedClientKey")) - writer.uint32(/* id 16, wireType 2 =*/130).bytes(message.encryptedClientKey); + if (!writer) writer = $Writer.create(); + if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, 'enterpriseUserId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int64(message.enterpriseUserId); + if (message.username != null && Object.hasOwnProperty.call(message, 'username')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.username); + if (message.nodeId != null && Object.hasOwnProperty.call(message, 'nodeId')) + writer.uint32(/* id 3, wireType 0 =*/ 24).int64(message.nodeId); + if (message.encryptedData != null && Object.hasOwnProperty.call(message, 'encryptedData')) + writer.uint32(/* id 4, wireType 2 =*/ 34).string(message.encryptedData); + if (message.keyType != null && Object.hasOwnProperty.call(message, 'keyType')) + writer.uint32(/* id 5, wireType 0 =*/ 40).int32(message.keyType); + if (message.fullName != null && Object.hasOwnProperty.call(message, 'fullName')) + writer.uint32(/* id 6, wireType 2 =*/ 50).string(message.fullName); + if (message.jobTitle != null && Object.hasOwnProperty.call(message, 'jobTitle')) + writer.uint32(/* id 7, wireType 2 =*/ 58).string(message.jobTitle); + if (message.enterpriseUsersDataKey != null && Object.hasOwnProperty.call(message, 'enterpriseUsersDataKey')) + writer.uint32(/* id 8, wireType 2 =*/ 66).bytes(message.enterpriseUsersDataKey); + if (message.authVerifier != null && Object.hasOwnProperty.call(message, 'authVerifier')) + writer.uint32(/* id 9, wireType 2 =*/ 74).bytes(message.authVerifier); + if (message.encryptionParams != null && Object.hasOwnProperty.call(message, 'encryptionParams')) + writer.uint32(/* id 10, wireType 2 =*/ 82).bytes(message.encryptionParams); + if (message.rsaPublicKey != null && Object.hasOwnProperty.call(message, 'rsaPublicKey')) + writer.uint32(/* id 11, wireType 2 =*/ 90).bytes(message.rsaPublicKey); + if (message.rsaEncryptedPrivateKey != null && Object.hasOwnProperty.call(message, 'rsaEncryptedPrivateKey')) + writer.uint32(/* id 12, wireType 2 =*/ 98).bytes(message.rsaEncryptedPrivateKey); + if (message.eccPublicKey != null && Object.hasOwnProperty.call(message, 'eccPublicKey')) + writer.uint32(/* id 13, wireType 2 =*/ 106).bytes(message.eccPublicKey); + if (message.eccEncryptedPrivateKey != null && Object.hasOwnProperty.call(message, 'eccEncryptedPrivateKey')) + writer.uint32(/* id 14, wireType 2 =*/ 114).bytes(message.eccEncryptedPrivateKey); + if (message.encryptedDeviceToken != null && Object.hasOwnProperty.call(message, 'encryptedDeviceToken')) + writer.uint32(/* id 15, wireType 2 =*/ 122).bytes(message.encryptedDeviceToken); + if (message.encryptedClientKey != null && Object.hasOwnProperty.call(message, 'encryptedClientKey')) + writer.uint32(/* id 16, wireType 2 =*/ 130).bytes(message.encryptedClientKey); return writer; }; @@ -96256,79 +99314,79 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ EnterpriseUsersProvision.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.EnterpriseUsersProvision(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.EnterpriseUsersProvision(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.enterpriseUserId = reader.int64(); break; } - case 2: { + case 2: { message.username = reader.string(); break; } - case 3: { + case 3: { message.nodeId = reader.int64(); break; } - case 4: { + case 4: { message.encryptedData = reader.string(); break; } - case 5: { + case 5: { message.keyType = reader.int32(); break; } - case 6: { + case 6: { message.fullName = reader.string(); break; } - case 7: { + case 7: { message.jobTitle = reader.string(); break; } - case 8: { + case 8: { message.enterpriseUsersDataKey = reader.bytes(); break; } - case 9: { + case 9: { message.authVerifier = reader.bytes(); break; } - case 10: { + case 10: { message.encryptionParams = reader.bytes(); break; } - case 11: { + case 11: { message.rsaPublicKey = reader.bytes(); break; } - case 12: { + case 12: { message.rsaEncryptedPrivateKey = reader.bytes(); break; } - case 13: { + case 13: { message.eccPublicKey = reader.bytes(); break; } - case 14: { + case 14: { message.eccEncryptedPrivateKey = reader.bytes(); break; } - case 15: { + case 15: { message.encryptedDeviceToken = reader.bytes(); break; } - case 16: { + case 16: { message.encryptedClientKey = reader.bytes(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -96345,8 +99403,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ EnterpriseUsersProvision.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -96359,64 +99416,114 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ EnterpriseUsersProvision.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (!$util.isInteger(message.enterpriseUserId) && !(message.enterpriseUserId && $util.isInteger(message.enterpriseUserId.low) && $util.isInteger(message.enterpriseUserId.high))) - return "enterpriseUserId: integer|Long expected"; - if (message.username != null && message.hasOwnProperty("username")) - if (!$util.isString(message.username)) - return "username: string expected"; - if (message.nodeId != null && message.hasOwnProperty("nodeId")) - if (!$util.isInteger(message.nodeId) && !(message.nodeId && $util.isInteger(message.nodeId.low) && $util.isInteger(message.nodeId.high))) - return "nodeId: integer|Long expected"; - if (message.encryptedData != null && message.hasOwnProperty("encryptedData")) - if (!$util.isString(message.encryptedData)) - return "encryptedData: string expected"; - if (message.keyType != null && message.hasOwnProperty("keyType")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.enterpriseUserId != null && message.hasOwnProperty('enterpriseUserId')) + if ( + !$util.isInteger(message.enterpriseUserId) && + !( + message.enterpriseUserId && + $util.isInteger(message.enterpriseUserId.low) && + $util.isInteger(message.enterpriseUserId.high) + ) + ) + return 'enterpriseUserId: integer|Long expected'; + if (message.username != null && message.hasOwnProperty('username')) + if (!$util.isString(message.username)) return 'username: string expected'; + if (message.nodeId != null && message.hasOwnProperty('nodeId')) + if ( + !$util.isInteger(message.nodeId) && + !(message.nodeId && $util.isInteger(message.nodeId.low) && $util.isInteger(message.nodeId.high)) + ) + return 'nodeId: integer|Long expected'; + if (message.encryptedData != null && message.hasOwnProperty('encryptedData')) + if (!$util.isString(message.encryptedData)) return 'encryptedData: string expected'; + if (message.keyType != null && message.hasOwnProperty('keyType')) switch (message.keyType) { - default: - return "keyType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; + default: + return 'keyType: enum value expected'; + case 0: + case 1: + case 2: + case 3: + case 4: + break; } - if (message.fullName != null && message.hasOwnProperty("fullName")) - if (!$util.isString(message.fullName)) - return "fullName: string expected"; - if (message.jobTitle != null && message.hasOwnProperty("jobTitle")) - if (!$util.isString(message.jobTitle)) - return "jobTitle: string expected"; - if (message.enterpriseUsersDataKey != null && message.hasOwnProperty("enterpriseUsersDataKey")) - if (!(message.enterpriseUsersDataKey && typeof message.enterpriseUsersDataKey.length === "number" || $util.isString(message.enterpriseUsersDataKey))) - return "enterpriseUsersDataKey: buffer expected"; - if (message.authVerifier != null && message.hasOwnProperty("authVerifier")) - if (!(message.authVerifier && typeof message.authVerifier.length === "number" || $util.isString(message.authVerifier))) - return "authVerifier: buffer expected"; - if (message.encryptionParams != null && message.hasOwnProperty("encryptionParams")) - if (!(message.encryptionParams && typeof message.encryptionParams.length === "number" || $util.isString(message.encryptionParams))) - return "encryptionParams: buffer expected"; - if (message.rsaPublicKey != null && message.hasOwnProperty("rsaPublicKey")) - if (!(message.rsaPublicKey && typeof message.rsaPublicKey.length === "number" || $util.isString(message.rsaPublicKey))) - return "rsaPublicKey: buffer expected"; - if (message.rsaEncryptedPrivateKey != null && message.hasOwnProperty("rsaEncryptedPrivateKey")) - if (!(message.rsaEncryptedPrivateKey && typeof message.rsaEncryptedPrivateKey.length === "number" || $util.isString(message.rsaEncryptedPrivateKey))) - return "rsaEncryptedPrivateKey: buffer expected"; - if (message.eccPublicKey != null && message.hasOwnProperty("eccPublicKey")) - if (!(message.eccPublicKey && typeof message.eccPublicKey.length === "number" || $util.isString(message.eccPublicKey))) - return "eccPublicKey: buffer expected"; - if (message.eccEncryptedPrivateKey != null && message.hasOwnProperty("eccEncryptedPrivateKey")) - if (!(message.eccEncryptedPrivateKey && typeof message.eccEncryptedPrivateKey.length === "number" || $util.isString(message.eccEncryptedPrivateKey))) - return "eccEncryptedPrivateKey: buffer expected"; - if (message.encryptedDeviceToken != null && message.hasOwnProperty("encryptedDeviceToken")) - if (!(message.encryptedDeviceToken && typeof message.encryptedDeviceToken.length === "number" || $util.isString(message.encryptedDeviceToken))) - return "encryptedDeviceToken: buffer expected"; - if (message.encryptedClientKey != null && message.hasOwnProperty("encryptedClientKey")) - if (!(message.encryptedClientKey && typeof message.encryptedClientKey.length === "number" || $util.isString(message.encryptedClientKey))) - return "encryptedClientKey: buffer expected"; + if (message.fullName != null && message.hasOwnProperty('fullName')) + if (!$util.isString(message.fullName)) return 'fullName: string expected'; + if (message.jobTitle != null && message.hasOwnProperty('jobTitle')) + if (!$util.isString(message.jobTitle)) return 'jobTitle: string expected'; + if (message.enterpriseUsersDataKey != null && message.hasOwnProperty('enterpriseUsersDataKey')) + if ( + !( + (message.enterpriseUsersDataKey && typeof message.enterpriseUsersDataKey.length === 'number') || + $util.isString(message.enterpriseUsersDataKey) + ) + ) + return 'enterpriseUsersDataKey: buffer expected'; + if (message.authVerifier != null && message.hasOwnProperty('authVerifier')) + if ( + !( + (message.authVerifier && typeof message.authVerifier.length === 'number') || + $util.isString(message.authVerifier) + ) + ) + return 'authVerifier: buffer expected'; + if (message.encryptionParams != null && message.hasOwnProperty('encryptionParams')) + if ( + !( + (message.encryptionParams && typeof message.encryptionParams.length === 'number') || + $util.isString(message.encryptionParams) + ) + ) + return 'encryptionParams: buffer expected'; + if (message.rsaPublicKey != null && message.hasOwnProperty('rsaPublicKey')) + if ( + !( + (message.rsaPublicKey && typeof message.rsaPublicKey.length === 'number') || + $util.isString(message.rsaPublicKey) + ) + ) + return 'rsaPublicKey: buffer expected'; + if (message.rsaEncryptedPrivateKey != null && message.hasOwnProperty('rsaEncryptedPrivateKey')) + if ( + !( + (message.rsaEncryptedPrivateKey && typeof message.rsaEncryptedPrivateKey.length === 'number') || + $util.isString(message.rsaEncryptedPrivateKey) + ) + ) + return 'rsaEncryptedPrivateKey: buffer expected'; + if (message.eccPublicKey != null && message.hasOwnProperty('eccPublicKey')) + if ( + !( + (message.eccPublicKey && typeof message.eccPublicKey.length === 'number') || + $util.isString(message.eccPublicKey) + ) + ) + return 'eccPublicKey: buffer expected'; + if (message.eccEncryptedPrivateKey != null && message.hasOwnProperty('eccEncryptedPrivateKey')) + if ( + !( + (message.eccEncryptedPrivateKey && typeof message.eccEncryptedPrivateKey.length === 'number') || + $util.isString(message.eccEncryptedPrivateKey) + ) + ) + return 'eccEncryptedPrivateKey: buffer expected'; + if (message.encryptedDeviceToken != null && message.hasOwnProperty('encryptedDeviceToken')) + if ( + !( + (message.encryptedDeviceToken && typeof message.encryptedDeviceToken.length === 'number') || + $util.isString(message.encryptedDeviceToken) + ) + ) + return 'encryptedDeviceToken: buffer expected'; + if (message.encryptedClientKey != null && message.hasOwnProperty('encryptedClientKey')) + if ( + !( + (message.encryptedClientKey && typeof message.encryptedClientKey.length === 'number') || + $util.isString(message.encryptedClientKey) + ) + ) + return 'encryptedClientKey: buffer expected'; return null; }; @@ -96429,108 +99536,142 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.EnterpriseUsersProvision} EnterpriseUsersProvision */ EnterpriseUsersProvision.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.EnterpriseUsersProvision) - return object; + if (object instanceof $root.Enterprise.EnterpriseUsersProvision) return object; let message = new $root.Enterprise.EnterpriseUsersProvision(); if (object.enterpriseUserId != null) if ($util.Long) (message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId)).unsigned = false; - else if (typeof object.enterpriseUserId === "string") + else if (typeof object.enterpriseUserId === 'string') message.enterpriseUserId = parseInt(object.enterpriseUserId, 10); - else if (typeof object.enterpriseUserId === "number") + else if (typeof object.enterpriseUserId === 'number') message.enterpriseUserId = object.enterpriseUserId; - else if (typeof object.enterpriseUserId === "object") - message.enterpriseUserId = new $util.LongBits(object.enterpriseUserId.low >>> 0, object.enterpriseUserId.high >>> 0).toNumber(); - if (object.username != null) - message.username = String(object.username); + else if (typeof object.enterpriseUserId === 'object') + message.enterpriseUserId = new $util.LongBits( + object.enterpriseUserId.low >>> 0, + object.enterpriseUserId.high >>> 0 + ).toNumber(); + if (object.username != null) message.username = String(object.username); if (object.nodeId != null) - if ($util.Long) - (message.nodeId = $util.Long.fromValue(object.nodeId)).unsigned = false; - else if (typeof object.nodeId === "string") - message.nodeId = parseInt(object.nodeId, 10); - else if (typeof object.nodeId === "number") - message.nodeId = object.nodeId; - else if (typeof object.nodeId === "object") + if ($util.Long) (message.nodeId = $util.Long.fromValue(object.nodeId)).unsigned = false; + else if (typeof object.nodeId === 'string') message.nodeId = parseInt(object.nodeId, 10); + else if (typeof object.nodeId === 'number') message.nodeId = object.nodeId; + else if (typeof object.nodeId === 'object') message.nodeId = new $util.LongBits(object.nodeId.low >>> 0, object.nodeId.high >>> 0).toNumber(); - if (object.encryptedData != null) - message.encryptedData = String(object.encryptedData); + if (object.encryptedData != null) message.encryptedData = String(object.encryptedData); switch (object.keyType) { - default: - if (typeof object.keyType === "number") { - message.keyType = object.keyType; - break; - } - break; - case "KT_NO_KEY": - case 0: - message.keyType = 0; - break; - case "KT_ENCRYPTED_BY_DATA_KEY": - case 1: - message.keyType = 1; - break; - case "KT_ENCRYPTED_BY_PUBLIC_KEY": - case 2: - message.keyType = 2; - break; - case "KT_ENCRYPTED_BY_DATA_KEY_GCM": - case 3: - message.keyType = 3; - break; - case "KT_ENCRYPTED_BY_PUBLIC_KEY_ECC": - case 4: - message.keyType = 4; - break; - } - if (object.fullName != null) - message.fullName = String(object.fullName); - if (object.jobTitle != null) - message.jobTitle = String(object.jobTitle); + default: + if (typeof object.keyType === 'number') { + message.keyType = object.keyType; + break; + } + break; + case 'KT_NO_KEY': + case 0: + message.keyType = 0; + break; + case 'KT_ENCRYPTED_BY_DATA_KEY': + case 1: + message.keyType = 1; + break; + case 'KT_ENCRYPTED_BY_PUBLIC_KEY': + case 2: + message.keyType = 2; + break; + case 'KT_ENCRYPTED_BY_DATA_KEY_GCM': + case 3: + message.keyType = 3; + break; + case 'KT_ENCRYPTED_BY_PUBLIC_KEY_ECC': + case 4: + message.keyType = 4; + break; + } + if (object.fullName != null) message.fullName = String(object.fullName); + if (object.jobTitle != null) message.jobTitle = String(object.jobTitle); if (object.enterpriseUsersDataKey != null) - if (typeof object.enterpriseUsersDataKey === "string") - $util.base64.decode(object.enterpriseUsersDataKey, message.enterpriseUsersDataKey = $util.newBuffer($util.base64.length(object.enterpriseUsersDataKey)), 0); + if (typeof object.enterpriseUsersDataKey === 'string') + $util.base64.decode( + object.enterpriseUsersDataKey, + (message.enterpriseUsersDataKey = $util.newBuffer( + $util.base64.length(object.enterpriseUsersDataKey) + )), + 0 + ); else if (object.enterpriseUsersDataKey.length >= 0) message.enterpriseUsersDataKey = object.enterpriseUsersDataKey; if (object.authVerifier != null) - if (typeof object.authVerifier === "string") - $util.base64.decode(object.authVerifier, message.authVerifier = $util.newBuffer($util.base64.length(object.authVerifier)), 0); - else if (object.authVerifier.length >= 0) - message.authVerifier = object.authVerifier; + if (typeof object.authVerifier === 'string') + $util.base64.decode( + object.authVerifier, + (message.authVerifier = $util.newBuffer($util.base64.length(object.authVerifier))), + 0 + ); + else if (object.authVerifier.length >= 0) message.authVerifier = object.authVerifier; if (object.encryptionParams != null) - if (typeof object.encryptionParams === "string") - $util.base64.decode(object.encryptionParams, message.encryptionParams = $util.newBuffer($util.base64.length(object.encryptionParams)), 0); - else if (object.encryptionParams.length >= 0) - message.encryptionParams = object.encryptionParams; + if (typeof object.encryptionParams === 'string') + $util.base64.decode( + object.encryptionParams, + (message.encryptionParams = $util.newBuffer($util.base64.length(object.encryptionParams))), + 0 + ); + else if (object.encryptionParams.length >= 0) message.encryptionParams = object.encryptionParams; if (object.rsaPublicKey != null) - if (typeof object.rsaPublicKey === "string") - $util.base64.decode(object.rsaPublicKey, message.rsaPublicKey = $util.newBuffer($util.base64.length(object.rsaPublicKey)), 0); - else if (object.rsaPublicKey.length >= 0) - message.rsaPublicKey = object.rsaPublicKey; + if (typeof object.rsaPublicKey === 'string') + $util.base64.decode( + object.rsaPublicKey, + (message.rsaPublicKey = $util.newBuffer($util.base64.length(object.rsaPublicKey))), + 0 + ); + else if (object.rsaPublicKey.length >= 0) message.rsaPublicKey = object.rsaPublicKey; if (object.rsaEncryptedPrivateKey != null) - if (typeof object.rsaEncryptedPrivateKey === "string") - $util.base64.decode(object.rsaEncryptedPrivateKey, message.rsaEncryptedPrivateKey = $util.newBuffer($util.base64.length(object.rsaEncryptedPrivateKey)), 0); + if (typeof object.rsaEncryptedPrivateKey === 'string') + $util.base64.decode( + object.rsaEncryptedPrivateKey, + (message.rsaEncryptedPrivateKey = $util.newBuffer( + $util.base64.length(object.rsaEncryptedPrivateKey) + )), + 0 + ); else if (object.rsaEncryptedPrivateKey.length >= 0) message.rsaEncryptedPrivateKey = object.rsaEncryptedPrivateKey; if (object.eccPublicKey != null) - if (typeof object.eccPublicKey === "string") - $util.base64.decode(object.eccPublicKey, message.eccPublicKey = $util.newBuffer($util.base64.length(object.eccPublicKey)), 0); - else if (object.eccPublicKey.length >= 0) - message.eccPublicKey = object.eccPublicKey; + if (typeof object.eccPublicKey === 'string') + $util.base64.decode( + object.eccPublicKey, + (message.eccPublicKey = $util.newBuffer($util.base64.length(object.eccPublicKey))), + 0 + ); + else if (object.eccPublicKey.length >= 0) message.eccPublicKey = object.eccPublicKey; if (object.eccEncryptedPrivateKey != null) - if (typeof object.eccEncryptedPrivateKey === "string") - $util.base64.decode(object.eccEncryptedPrivateKey, message.eccEncryptedPrivateKey = $util.newBuffer($util.base64.length(object.eccEncryptedPrivateKey)), 0); + if (typeof object.eccEncryptedPrivateKey === 'string') + $util.base64.decode( + object.eccEncryptedPrivateKey, + (message.eccEncryptedPrivateKey = $util.newBuffer( + $util.base64.length(object.eccEncryptedPrivateKey) + )), + 0 + ); else if (object.eccEncryptedPrivateKey.length >= 0) message.eccEncryptedPrivateKey = object.eccEncryptedPrivateKey; if (object.encryptedDeviceToken != null) - if (typeof object.encryptedDeviceToken === "string") - $util.base64.decode(object.encryptedDeviceToken, message.encryptedDeviceToken = $util.newBuffer($util.base64.length(object.encryptedDeviceToken)), 0); + if (typeof object.encryptedDeviceToken === 'string') + $util.base64.decode( + object.encryptedDeviceToken, + (message.encryptedDeviceToken = $util.newBuffer( + $util.base64.length(object.encryptedDeviceToken) + )), + 0 + ); else if (object.encryptedDeviceToken.length >= 0) message.encryptedDeviceToken = object.encryptedDeviceToken; if (object.encryptedClientKey != null) - if (typeof object.encryptedClientKey === "string") - $util.base64.decode(object.encryptedClientKey, message.encryptedClientKey = $util.newBuffer($util.base64.length(object.encryptedClientKey)), 0); - else if (object.encryptedClientKey.length >= 0) - message.encryptedClientKey = object.encryptedClientKey; + if (typeof object.encryptedClientKey === 'string') + $util.base64.decode( + object.encryptedClientKey, + (message.encryptedClientKey = $util.newBuffer($util.base64.length(object.encryptedClientKey))), + 0 + ); + else if (object.encryptedClientKey.length >= 0) message.encryptedClientKey = object.encryptedClientKey; return message; }; @@ -96544,127 +99685,173 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ EnterpriseUsersProvision.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.enterpriseUserId = options.longs === String ? "0" : 0; - object.username = ""; + object.enterpriseUserId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.enterpriseUserId = options.longs === String ? '0' : 0; + object.username = ''; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.nodeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.nodeId = options.longs === String ? "0" : 0; - object.encryptedData = ""; - object.keyType = options.enums === String ? "KT_NO_KEY" : 0; - object.fullName = ""; - object.jobTitle = ""; - if (options.bytes === String) - object.enterpriseUsersDataKey = ""; + object.nodeId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.nodeId = options.longs === String ? '0' : 0; + object.encryptedData = ''; + object.keyType = options.enums === String ? 'KT_NO_KEY' : 0; + object.fullName = ''; + object.jobTitle = ''; + if (options.bytes === String) object.enterpriseUsersDataKey = ''; else { object.enterpriseUsersDataKey = []; if (options.bytes !== Array) object.enterpriseUsersDataKey = $util.newBuffer(object.enterpriseUsersDataKey); } - if (options.bytes === String) - object.authVerifier = ""; + if (options.bytes === String) object.authVerifier = ''; else { object.authVerifier = []; - if (options.bytes !== Array) - object.authVerifier = $util.newBuffer(object.authVerifier); + if (options.bytes !== Array) object.authVerifier = $util.newBuffer(object.authVerifier); } - if (options.bytes === String) - object.encryptionParams = ""; + if (options.bytes === String) object.encryptionParams = ''; else { object.encryptionParams = []; - if (options.bytes !== Array) - object.encryptionParams = $util.newBuffer(object.encryptionParams); + if (options.bytes !== Array) object.encryptionParams = $util.newBuffer(object.encryptionParams); } - if (options.bytes === String) - object.rsaPublicKey = ""; + if (options.bytes === String) object.rsaPublicKey = ''; else { object.rsaPublicKey = []; - if (options.bytes !== Array) - object.rsaPublicKey = $util.newBuffer(object.rsaPublicKey); + if (options.bytes !== Array) object.rsaPublicKey = $util.newBuffer(object.rsaPublicKey); } - if (options.bytes === String) - object.rsaEncryptedPrivateKey = ""; + if (options.bytes === String) object.rsaEncryptedPrivateKey = ''; else { object.rsaEncryptedPrivateKey = []; if (options.bytes !== Array) object.rsaEncryptedPrivateKey = $util.newBuffer(object.rsaEncryptedPrivateKey); } - if (options.bytes === String) - object.eccPublicKey = ""; + if (options.bytes === String) object.eccPublicKey = ''; else { object.eccPublicKey = []; - if (options.bytes !== Array) - object.eccPublicKey = $util.newBuffer(object.eccPublicKey); + if (options.bytes !== Array) object.eccPublicKey = $util.newBuffer(object.eccPublicKey); } - if (options.bytes === String) - object.eccEncryptedPrivateKey = ""; + if (options.bytes === String) object.eccEncryptedPrivateKey = ''; else { object.eccEncryptedPrivateKey = []; if (options.bytes !== Array) object.eccEncryptedPrivateKey = $util.newBuffer(object.eccEncryptedPrivateKey); } - if (options.bytes === String) - object.encryptedDeviceToken = ""; + if (options.bytes === String) object.encryptedDeviceToken = ''; else { object.encryptedDeviceToken = []; if (options.bytes !== Array) object.encryptedDeviceToken = $util.newBuffer(object.encryptedDeviceToken); } - if (options.bytes === String) - object.encryptedClientKey = ""; + if (options.bytes === String) object.encryptedClientKey = ''; else { object.encryptedClientKey = []; - if (options.bytes !== Array) - object.encryptedClientKey = $util.newBuffer(object.encryptedClientKey); + if (options.bytes !== Array) object.encryptedClientKey = $util.newBuffer(object.encryptedClientKey); } } - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (typeof message.enterpriseUserId === "number") - object.enterpriseUserId = options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; + if (message.enterpriseUserId != null && message.hasOwnProperty('enterpriseUserId')) + if (typeof message.enterpriseUserId === 'number') + object.enterpriseUserId = + options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; else - object.enterpriseUserId = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseUserId) : options.longs === Number ? new $util.LongBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0).toNumber() : message.enterpriseUserId; - if (message.username != null && message.hasOwnProperty("username")) - object.username = message.username; - if (message.nodeId != null && message.hasOwnProperty("nodeId")) - if (typeof message.nodeId === "number") + object.enterpriseUserId = + options.longs === String + ? $util.Long.prototype.toString.call(message.enterpriseUserId) + : options.longs === Number + ? new $util.LongBits( + message.enterpriseUserId.low >>> 0, + message.enterpriseUserId.high >>> 0 + ).toNumber() + : message.enterpriseUserId; + if (message.username != null && message.hasOwnProperty('username')) object.username = message.username; + if (message.nodeId != null && message.hasOwnProperty('nodeId')) + if (typeof message.nodeId === 'number') object.nodeId = options.longs === String ? String(message.nodeId) : message.nodeId; else - object.nodeId = options.longs === String ? $util.Long.prototype.toString.call(message.nodeId) : options.longs === Number ? new $util.LongBits(message.nodeId.low >>> 0, message.nodeId.high >>> 0).toNumber() : message.nodeId; - if (message.encryptedData != null && message.hasOwnProperty("encryptedData")) + object.nodeId = + options.longs === String + ? $util.Long.prototype.toString.call(message.nodeId) + : options.longs === Number + ? new $util.LongBits(message.nodeId.low >>> 0, message.nodeId.high >>> 0).toNumber() + : message.nodeId; + if (message.encryptedData != null && message.hasOwnProperty('encryptedData')) object.encryptedData = message.encryptedData; - if (message.keyType != null && message.hasOwnProperty("keyType")) - object.keyType = options.enums === String ? $root.Enterprise.EncryptedKeyType[message.keyType] === undefined ? message.keyType : $root.Enterprise.EncryptedKeyType[message.keyType] : message.keyType; - if (message.fullName != null && message.hasOwnProperty("fullName")) - object.fullName = message.fullName; - if (message.jobTitle != null && message.hasOwnProperty("jobTitle")) - object.jobTitle = message.jobTitle; - if (message.enterpriseUsersDataKey != null && message.hasOwnProperty("enterpriseUsersDataKey")) - object.enterpriseUsersDataKey = options.bytes === String ? $util.base64.encode(message.enterpriseUsersDataKey, 0, message.enterpriseUsersDataKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.enterpriseUsersDataKey) : message.enterpriseUsersDataKey; - if (message.authVerifier != null && message.hasOwnProperty("authVerifier")) - object.authVerifier = options.bytes === String ? $util.base64.encode(message.authVerifier, 0, message.authVerifier.length) : options.bytes === Array ? Array.prototype.slice.call(message.authVerifier) : message.authVerifier; - if (message.encryptionParams != null && message.hasOwnProperty("encryptionParams")) - object.encryptionParams = options.bytes === String ? $util.base64.encode(message.encryptionParams, 0, message.encryptionParams.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptionParams) : message.encryptionParams; - if (message.rsaPublicKey != null && message.hasOwnProperty("rsaPublicKey")) - object.rsaPublicKey = options.bytes === String ? $util.base64.encode(message.rsaPublicKey, 0, message.rsaPublicKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.rsaPublicKey) : message.rsaPublicKey; - if (message.rsaEncryptedPrivateKey != null && message.hasOwnProperty("rsaEncryptedPrivateKey")) - object.rsaEncryptedPrivateKey = options.bytes === String ? $util.base64.encode(message.rsaEncryptedPrivateKey, 0, message.rsaEncryptedPrivateKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.rsaEncryptedPrivateKey) : message.rsaEncryptedPrivateKey; - if (message.eccPublicKey != null && message.hasOwnProperty("eccPublicKey")) - object.eccPublicKey = options.bytes === String ? $util.base64.encode(message.eccPublicKey, 0, message.eccPublicKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.eccPublicKey) : message.eccPublicKey; - if (message.eccEncryptedPrivateKey != null && message.hasOwnProperty("eccEncryptedPrivateKey")) - object.eccEncryptedPrivateKey = options.bytes === String ? $util.base64.encode(message.eccEncryptedPrivateKey, 0, message.eccEncryptedPrivateKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.eccEncryptedPrivateKey) : message.eccEncryptedPrivateKey; - if (message.encryptedDeviceToken != null && message.hasOwnProperty("encryptedDeviceToken")) - object.encryptedDeviceToken = options.bytes === String ? $util.base64.encode(message.encryptedDeviceToken, 0, message.encryptedDeviceToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedDeviceToken) : message.encryptedDeviceToken; - if (message.encryptedClientKey != null && message.hasOwnProperty("encryptedClientKey")) - object.encryptedClientKey = options.bytes === String ? $util.base64.encode(message.encryptedClientKey, 0, message.encryptedClientKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedClientKey) : message.encryptedClientKey; + if (message.keyType != null && message.hasOwnProperty('keyType')) + object.keyType = + options.enums === String + ? $root.Enterprise.EncryptedKeyType[message.keyType] === undefined + ? message.keyType + : $root.Enterprise.EncryptedKeyType[message.keyType] + : message.keyType; + if (message.fullName != null && message.hasOwnProperty('fullName')) object.fullName = message.fullName; + if (message.jobTitle != null && message.hasOwnProperty('jobTitle')) object.jobTitle = message.jobTitle; + if (message.enterpriseUsersDataKey != null && message.hasOwnProperty('enterpriseUsersDataKey')) + object.enterpriseUsersDataKey = + options.bytes === String + ? $util.base64.encode(message.enterpriseUsersDataKey, 0, message.enterpriseUsersDataKey.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.enterpriseUsersDataKey) + : message.enterpriseUsersDataKey; + if (message.authVerifier != null && message.hasOwnProperty('authVerifier')) + object.authVerifier = + options.bytes === String + ? $util.base64.encode(message.authVerifier, 0, message.authVerifier.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.authVerifier) + : message.authVerifier; + if (message.encryptionParams != null && message.hasOwnProperty('encryptionParams')) + object.encryptionParams = + options.bytes === String + ? $util.base64.encode(message.encryptionParams, 0, message.encryptionParams.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.encryptionParams) + : message.encryptionParams; + if (message.rsaPublicKey != null && message.hasOwnProperty('rsaPublicKey')) + object.rsaPublicKey = + options.bytes === String + ? $util.base64.encode(message.rsaPublicKey, 0, message.rsaPublicKey.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.rsaPublicKey) + : message.rsaPublicKey; + if (message.rsaEncryptedPrivateKey != null && message.hasOwnProperty('rsaEncryptedPrivateKey')) + object.rsaEncryptedPrivateKey = + options.bytes === String + ? $util.base64.encode(message.rsaEncryptedPrivateKey, 0, message.rsaEncryptedPrivateKey.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.rsaEncryptedPrivateKey) + : message.rsaEncryptedPrivateKey; + if (message.eccPublicKey != null && message.hasOwnProperty('eccPublicKey')) + object.eccPublicKey = + options.bytes === String + ? $util.base64.encode(message.eccPublicKey, 0, message.eccPublicKey.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.eccPublicKey) + : message.eccPublicKey; + if (message.eccEncryptedPrivateKey != null && message.hasOwnProperty('eccEncryptedPrivateKey')) + object.eccEncryptedPrivateKey = + options.bytes === String + ? $util.base64.encode(message.eccEncryptedPrivateKey, 0, message.eccEncryptedPrivateKey.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.eccEncryptedPrivateKey) + : message.eccEncryptedPrivateKey; + if (message.encryptedDeviceToken != null && message.hasOwnProperty('encryptedDeviceToken')) + object.encryptedDeviceToken = + options.bytes === String + ? $util.base64.encode(message.encryptedDeviceToken, 0, message.encryptedDeviceToken.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.encryptedDeviceToken) + : message.encryptedDeviceToken; + if (message.encryptedClientKey != null && message.hasOwnProperty('encryptedClientKey')) + object.encryptedClientKey = + options.bytes === String + ? $util.base64.encode(message.encryptedClientKey, 0, message.encryptedClientKey.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.encryptedClientKey) + : message.encryptedClientKey; return object; }; @@ -96689,16 +99876,15 @@ export const Enterprise = $root.Enterprise = (() => { */ EnterpriseUsersProvision.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.EnterpriseUsersProvision"; + return typeUrlPrefix + '/Enterprise.EnterpriseUsersProvision'; }; return EnterpriseUsersProvision; })(); - Enterprise.EnterpriseUsersProvisionResponse = (function() { - + Enterprise.EnterpriseUsersProvisionResponse = (function () { /** * Properties of an EnterpriseUsersProvisionResponse. * @memberof Enterprise @@ -96718,8 +99904,7 @@ export const Enterprise = $root.Enterprise = (() => { this.results = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -96752,11 +99937,13 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ EnterpriseUsersProvisionResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.results != null && message.results.length) for (let i = 0; i < message.results.length; ++i) - $root.Enterprise.EnterpriseUsersProvisionResult.encode(message.results[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.Enterprise.EnterpriseUsersProvisionResult.encode( + message.results[i], + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); return writer; }; @@ -96785,21 +99972,22 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ EnterpriseUsersProvisionResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.EnterpriseUsersProvisionResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.EnterpriseUsersProvisionResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (!(message.results && message.results.length)) - message.results = []; - message.results.push($root.Enterprise.EnterpriseUsersProvisionResult.decode(reader, reader.uint32())); + case 1: { + if (!(message.results && message.results.length)) message.results = []; + message.results.push( + $root.Enterprise.EnterpriseUsersProvisionResult.decode(reader, reader.uint32()) + ); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -96816,8 +100004,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ EnterpriseUsersProvisionResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -96830,15 +100017,12 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ EnterpriseUsersProvisionResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.results != null && message.hasOwnProperty("results")) { - if (!Array.isArray(message.results)) - return "results: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.results != null && message.hasOwnProperty('results')) { + if (!Array.isArray(message.results)) return 'results: array expected'; for (let i = 0; i < message.results.length; ++i) { let error = $root.Enterprise.EnterpriseUsersProvisionResult.verify(message.results[i]); - if (error) - return "results." + error; + if (error) return 'results.' + error; } } return null; @@ -96853,16 +100037,15 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.EnterpriseUsersProvisionResponse} EnterpriseUsersProvisionResponse */ EnterpriseUsersProvisionResponse.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.EnterpriseUsersProvisionResponse) - return object; + if (object instanceof $root.Enterprise.EnterpriseUsersProvisionResponse) return object; let message = new $root.Enterprise.EnterpriseUsersProvisionResponse(); if (object.results) { if (!Array.isArray(object.results)) - throw TypeError(".Enterprise.EnterpriseUsersProvisionResponse.results: array expected"); + throw TypeError('.Enterprise.EnterpriseUsersProvisionResponse.results: array expected'); message.results = []; for (let i = 0; i < object.results.length; ++i) { - if (typeof object.results[i] !== "object") - throw TypeError(".Enterprise.EnterpriseUsersProvisionResponse.results: object expected"); + if (typeof object.results[i] !== 'object') + throw TypeError('.Enterprise.EnterpriseUsersProvisionResponse.results: object expected'); message.results[i] = $root.Enterprise.EnterpriseUsersProvisionResult.fromObject(object.results[i]); } } @@ -96879,15 +100062,16 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ EnterpriseUsersProvisionResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.results = []; + if (options.arrays || options.defaults) object.results = []; if (message.results && message.results.length) { object.results = []; for (let j = 0; j < message.results.length; ++j) - object.results[j] = $root.Enterprise.EnterpriseUsersProvisionResult.toObject(message.results[j], options); + object.results[j] = $root.Enterprise.EnterpriseUsersProvisionResult.toObject( + message.results[j], + options + ); } return object; }; @@ -96913,16 +100097,15 @@ export const Enterprise = $root.Enterprise = (() => { */ EnterpriseUsersProvisionResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.EnterpriseUsersProvisionResponse"; + return typeUrlPrefix + '/Enterprise.EnterpriseUsersProvisionResponse'; }; return EnterpriseUsersProvisionResponse; })(); - Enterprise.EnterpriseUsersProvisionResult = (function() { - + Enterprise.EnterpriseUsersProvisionResult = (function () { /** * Properties of an EnterpriseUsersProvisionResult. * @memberof Enterprise @@ -96944,8 +100127,7 @@ export const Enterprise = $root.Enterprise = (() => { function EnterpriseUsersProvisionResult(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -96954,7 +100136,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.EnterpriseUsersProvisionResult * @instance */ - EnterpriseUsersProvisionResult.prototype.enterpriseUserId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + EnterpriseUsersProvisionResult.prototype.enterpriseUserId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * EnterpriseUsersProvisionResult code. @@ -96962,7 +100144,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.EnterpriseUsersProvisionResult * @instance */ - EnterpriseUsersProvisionResult.prototype.code = ""; + EnterpriseUsersProvisionResult.prototype.code = ''; /** * EnterpriseUsersProvisionResult message. @@ -96970,7 +100152,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.EnterpriseUsersProvisionResult * @instance */ - EnterpriseUsersProvisionResult.prototype.message = ""; + EnterpriseUsersProvisionResult.prototype.message = ''; /** * EnterpriseUsersProvisionResult additionalInfo. @@ -96978,7 +100160,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.EnterpriseUsersProvisionResult * @instance */ - EnterpriseUsersProvisionResult.prototype.additionalInfo = ""; + EnterpriseUsersProvisionResult.prototype.additionalInfo = ''; /** * Creates a new EnterpriseUsersProvisionResult instance using the specified properties. @@ -97002,16 +100184,15 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ EnterpriseUsersProvisionResult.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "enterpriseUserId")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.enterpriseUserId); - if (message.code != null && Object.hasOwnProperty.call(message, "code")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.code); - if (message.message != null && Object.hasOwnProperty.call(message, "message")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.message); - if (message.additionalInfo != null && Object.hasOwnProperty.call(message, "additionalInfo")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.additionalInfo); + if (!writer) writer = $Writer.create(); + if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, 'enterpriseUserId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int64(message.enterpriseUserId); + if (message.code != null && Object.hasOwnProperty.call(message, 'code')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.code); + if (message.message != null && Object.hasOwnProperty.call(message, 'message')) + writer.uint32(/* id 3, wireType 2 =*/ 26).string(message.message); + if (message.additionalInfo != null && Object.hasOwnProperty.call(message, 'additionalInfo')) + writer.uint32(/* id 4, wireType 2 =*/ 34).string(message.additionalInfo); return writer; }; @@ -97040,31 +100221,31 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ EnterpriseUsersProvisionResult.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.EnterpriseUsersProvisionResult(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.EnterpriseUsersProvisionResult(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.enterpriseUserId = reader.int64(); break; } - case 2: { + case 2: { message.code = reader.string(); break; } - case 3: { + case 3: { message.message = reader.string(); break; } - case 4: { + case 4: { message.additionalInfo = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -97081,8 +100262,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ EnterpriseUsersProvisionResult.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -97095,20 +100275,23 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ EnterpriseUsersProvisionResult.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (!$util.isInteger(message.enterpriseUserId) && !(message.enterpriseUserId && $util.isInteger(message.enterpriseUserId.low) && $util.isInteger(message.enterpriseUserId.high))) - return "enterpriseUserId: integer|Long expected"; - if (message.code != null && message.hasOwnProperty("code")) - if (!$util.isString(message.code)) - return "code: string expected"; - if (message.message != null && message.hasOwnProperty("message")) - if (!$util.isString(message.message)) - return "message: string expected"; - if (message.additionalInfo != null && message.hasOwnProperty("additionalInfo")) - if (!$util.isString(message.additionalInfo)) - return "additionalInfo: string expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.enterpriseUserId != null && message.hasOwnProperty('enterpriseUserId')) + if ( + !$util.isInteger(message.enterpriseUserId) && + !( + message.enterpriseUserId && + $util.isInteger(message.enterpriseUserId.low) && + $util.isInteger(message.enterpriseUserId.high) + ) + ) + return 'enterpriseUserId: integer|Long expected'; + if (message.code != null && message.hasOwnProperty('code')) + if (!$util.isString(message.code)) return 'code: string expected'; + if (message.message != null && message.hasOwnProperty('message')) + if (!$util.isString(message.message)) return 'message: string expected'; + if (message.additionalInfo != null && message.hasOwnProperty('additionalInfo')) + if (!$util.isString(message.additionalInfo)) return 'additionalInfo: string expected'; return null; }; @@ -97121,24 +100304,23 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.EnterpriseUsersProvisionResult} EnterpriseUsersProvisionResult */ EnterpriseUsersProvisionResult.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.EnterpriseUsersProvisionResult) - return object; + if (object instanceof $root.Enterprise.EnterpriseUsersProvisionResult) return object; let message = new $root.Enterprise.EnterpriseUsersProvisionResult(); if (object.enterpriseUserId != null) if ($util.Long) (message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId)).unsigned = false; - else if (typeof object.enterpriseUserId === "string") + else if (typeof object.enterpriseUserId === 'string') message.enterpriseUserId = parseInt(object.enterpriseUserId, 10); - else if (typeof object.enterpriseUserId === "number") + else if (typeof object.enterpriseUserId === 'number') message.enterpriseUserId = object.enterpriseUserId; - else if (typeof object.enterpriseUserId === "object") - message.enterpriseUserId = new $util.LongBits(object.enterpriseUserId.low >>> 0, object.enterpriseUserId.high >>> 0).toNumber(); - if (object.code != null) - message.code = String(object.code); - if (object.message != null) - message.message = String(object.message); - if (object.additionalInfo != null) - message.additionalInfo = String(object.additionalInfo); + else if (typeof object.enterpriseUserId === 'object') + message.enterpriseUserId = new $util.LongBits( + object.enterpriseUserId.low >>> 0, + object.enterpriseUserId.high >>> 0 + ).toNumber(); + if (object.code != null) message.code = String(object.code); + if (object.message != null) message.message = String(object.message); + if (object.additionalInfo != null) message.additionalInfo = String(object.additionalInfo); return message; }; @@ -97152,29 +100334,35 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ EnterpriseUsersProvisionResult.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.enterpriseUserId = options.longs === String ? "0" : 0; - object.code = ""; - object.message = ""; - object.additionalInfo = ""; - } - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (typeof message.enterpriseUserId === "number") - object.enterpriseUserId = options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; + object.enterpriseUserId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.enterpriseUserId = options.longs === String ? '0' : 0; + object.code = ''; + object.message = ''; + object.additionalInfo = ''; + } + if (message.enterpriseUserId != null && message.hasOwnProperty('enterpriseUserId')) + if (typeof message.enterpriseUserId === 'number') + object.enterpriseUserId = + options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; else - object.enterpriseUserId = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseUserId) : options.longs === Number ? new $util.LongBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0).toNumber() : message.enterpriseUserId; - if (message.code != null && message.hasOwnProperty("code")) - object.code = message.code; - if (message.message != null && message.hasOwnProperty("message")) - object.message = message.message; - if (message.additionalInfo != null && message.hasOwnProperty("additionalInfo")) + object.enterpriseUserId = + options.longs === String + ? $util.Long.prototype.toString.call(message.enterpriseUserId) + : options.longs === Number + ? new $util.LongBits( + message.enterpriseUserId.low >>> 0, + message.enterpriseUserId.high >>> 0 + ).toNumber() + : message.enterpriseUserId; + if (message.code != null && message.hasOwnProperty('code')) object.code = message.code; + if (message.message != null && message.hasOwnProperty('message')) object.message = message.message; + if (message.additionalInfo != null && message.hasOwnProperty('additionalInfo')) object.additionalInfo = message.additionalInfo; return object; }; @@ -97200,16 +100388,15 @@ export const Enterprise = $root.Enterprise = (() => { */ EnterpriseUsersProvisionResult.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.EnterpriseUsersProvisionResult"; + return typeUrlPrefix + '/Enterprise.EnterpriseUsersProvisionResult'; }; return EnterpriseUsersProvisionResult; })(); - Enterprise.EnterpriseUsersAddRequest = (function() { - + Enterprise.EnterpriseUsersAddRequest = (function () { /** * Properties of an EnterpriseUsersAddRequest. * @memberof Enterprise @@ -97230,8 +100417,7 @@ export const Enterprise = $root.Enterprise = (() => { this.users = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -97248,7 +100434,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.EnterpriseUsersAddRequest * @instance */ - EnterpriseUsersAddRequest.prototype.clientVersion = ""; + EnterpriseUsersAddRequest.prototype.clientVersion = ''; /** * Creates a new EnterpriseUsersAddRequest instance using the specified properties. @@ -97272,13 +100458,15 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ EnterpriseUsersAddRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.users != null && message.users.length) for (let i = 0; i < message.users.length; ++i) - $root.Enterprise.EnterpriseUsersAdd.encode(message.users[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.clientVersion != null && Object.hasOwnProperty.call(message, "clientVersion")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.clientVersion); + $root.Enterprise.EnterpriseUsersAdd.encode( + message.users[i], + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); + if (message.clientVersion != null && Object.hasOwnProperty.call(message, 'clientVersion')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.clientVersion); return writer; }; @@ -97307,25 +100495,24 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ EnterpriseUsersAddRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.EnterpriseUsersAddRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.EnterpriseUsersAddRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (!(message.users && message.users.length)) - message.users = []; + case 1: { + if (!(message.users && message.users.length)) message.users = []; message.users.push($root.Enterprise.EnterpriseUsersAdd.decode(reader, reader.uint32())); break; } - case 2: { + case 2: { message.clientVersion = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -97342,8 +100529,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ EnterpriseUsersAddRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -97356,20 +100542,16 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ EnterpriseUsersAddRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.users != null && message.hasOwnProperty("users")) { - if (!Array.isArray(message.users)) - return "users: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.users != null && message.hasOwnProperty('users')) { + if (!Array.isArray(message.users)) return 'users: array expected'; for (let i = 0; i < message.users.length; ++i) { let error = $root.Enterprise.EnterpriseUsersAdd.verify(message.users[i]); - if (error) - return "users." + error; + if (error) return 'users.' + error; } } - if (message.clientVersion != null && message.hasOwnProperty("clientVersion")) - if (!$util.isString(message.clientVersion)) - return "clientVersion: string expected"; + if (message.clientVersion != null && message.hasOwnProperty('clientVersion')) + if (!$util.isString(message.clientVersion)) return 'clientVersion: string expected'; return null; }; @@ -97382,21 +100564,19 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.EnterpriseUsersAddRequest} EnterpriseUsersAddRequest */ EnterpriseUsersAddRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.EnterpriseUsersAddRequest) - return object; + if (object instanceof $root.Enterprise.EnterpriseUsersAddRequest) return object; let message = new $root.Enterprise.EnterpriseUsersAddRequest(); if (object.users) { if (!Array.isArray(object.users)) - throw TypeError(".Enterprise.EnterpriseUsersAddRequest.users: array expected"); + throw TypeError('.Enterprise.EnterpriseUsersAddRequest.users: array expected'); message.users = []; for (let i = 0; i < object.users.length; ++i) { - if (typeof object.users[i] !== "object") - throw TypeError(".Enterprise.EnterpriseUsersAddRequest.users: object expected"); + if (typeof object.users[i] !== 'object') + throw TypeError('.Enterprise.EnterpriseUsersAddRequest.users: object expected'); message.users[i] = $root.Enterprise.EnterpriseUsersAdd.fromObject(object.users[i]); } } - if (object.clientVersion != null) - message.clientVersion = String(object.clientVersion); + if (object.clientVersion != null) message.clientVersion = String(object.clientVersion); return message; }; @@ -97410,19 +100590,16 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ EnterpriseUsersAddRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.users = []; - if (options.defaults) - object.clientVersion = ""; + if (options.arrays || options.defaults) object.users = []; + if (options.defaults) object.clientVersion = ''; if (message.users && message.users.length) { object.users = []; for (let j = 0; j < message.users.length; ++j) object.users[j] = $root.Enterprise.EnterpriseUsersAdd.toObject(message.users[j], options); } - if (message.clientVersion != null && message.hasOwnProperty("clientVersion")) + if (message.clientVersion != null && message.hasOwnProperty('clientVersion')) object.clientVersion = message.clientVersion; return object; }; @@ -97448,16 +100625,15 @@ export const Enterprise = $root.Enterprise = (() => { */ EnterpriseUsersAddRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.EnterpriseUsersAddRequest"; + return typeUrlPrefix + '/Enterprise.EnterpriseUsersAddRequest'; }; return EnterpriseUsersAddRequest; })(); - Enterprise.EnterpriseUsersAdd = (function() { - + Enterprise.EnterpriseUsersAdd = (function () { /** * Properties of an EnterpriseUsersAdd. * @memberof Enterprise @@ -97486,8 +100662,7 @@ export const Enterprise = $root.Enterprise = (() => { function EnterpriseUsersAdd(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -97496,7 +100671,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.EnterpriseUsersAdd * @instance */ - EnterpriseUsersAdd.prototype.enterpriseUserId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + EnterpriseUsersAdd.prototype.enterpriseUserId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * EnterpriseUsersAdd username. @@ -97504,7 +100679,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.EnterpriseUsersAdd * @instance */ - EnterpriseUsersAdd.prototype.username = ""; + EnterpriseUsersAdd.prototype.username = ''; /** * EnterpriseUsersAdd nodeId. @@ -97512,7 +100687,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.EnterpriseUsersAdd * @instance */ - EnterpriseUsersAdd.prototype.nodeId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + EnterpriseUsersAdd.prototype.nodeId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * EnterpriseUsersAdd encryptedData. @@ -97520,7 +100695,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.EnterpriseUsersAdd * @instance */ - EnterpriseUsersAdd.prototype.encryptedData = ""; + EnterpriseUsersAdd.prototype.encryptedData = ''; /** * EnterpriseUsersAdd keyType. @@ -97536,7 +100711,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.EnterpriseUsersAdd * @instance */ - EnterpriseUsersAdd.prototype.fullName = ""; + EnterpriseUsersAdd.prototype.fullName = ''; /** * EnterpriseUsersAdd jobTitle. @@ -97544,7 +100719,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.EnterpriseUsersAdd * @instance */ - EnterpriseUsersAdd.prototype.jobTitle = ""; + EnterpriseUsersAdd.prototype.jobTitle = ''; /** * EnterpriseUsersAdd suppressEmailInvite. @@ -97560,7 +100735,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.EnterpriseUsersAdd * @instance */ - EnterpriseUsersAdd.prototype.inviteeLocale = ""; + EnterpriseUsersAdd.prototype.inviteeLocale = ''; /** * EnterpriseUsersAdd move. @@ -97576,7 +100751,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.EnterpriseUsersAdd * @instance */ - EnterpriseUsersAdd.prototype.roleId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + EnterpriseUsersAdd.prototype.roleId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * Creates a new EnterpriseUsersAdd instance using the specified properties. @@ -97600,30 +100775,29 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ EnterpriseUsersAdd.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "enterpriseUserId")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.enterpriseUserId); - if (message.username != null && Object.hasOwnProperty.call(message, "username")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.username); - if (message.nodeId != null && Object.hasOwnProperty.call(message, "nodeId")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.nodeId); - if (message.encryptedData != null && Object.hasOwnProperty.call(message, "encryptedData")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.encryptedData); - if (message.keyType != null && Object.hasOwnProperty.call(message, "keyType")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.keyType); - if (message.fullName != null && Object.hasOwnProperty.call(message, "fullName")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.fullName); - if (message.jobTitle != null && Object.hasOwnProperty.call(message, "jobTitle")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.jobTitle); - if (message.suppressEmailInvite != null && Object.hasOwnProperty.call(message, "suppressEmailInvite")) - writer.uint32(/* id 8, wireType 0 =*/64).bool(message.suppressEmailInvite); - if (message.inviteeLocale != null && Object.hasOwnProperty.call(message, "inviteeLocale")) - writer.uint32(/* id 9, wireType 2 =*/74).string(message.inviteeLocale); - if (message.move != null && Object.hasOwnProperty.call(message, "move")) - writer.uint32(/* id 10, wireType 0 =*/80).bool(message.move); - if (message.roleId != null && Object.hasOwnProperty.call(message, "roleId")) - writer.uint32(/* id 11, wireType 0 =*/88).int64(message.roleId); + if (!writer) writer = $Writer.create(); + if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, 'enterpriseUserId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int64(message.enterpriseUserId); + if (message.username != null && Object.hasOwnProperty.call(message, 'username')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.username); + if (message.nodeId != null && Object.hasOwnProperty.call(message, 'nodeId')) + writer.uint32(/* id 3, wireType 0 =*/ 24).int64(message.nodeId); + if (message.encryptedData != null && Object.hasOwnProperty.call(message, 'encryptedData')) + writer.uint32(/* id 4, wireType 2 =*/ 34).string(message.encryptedData); + if (message.keyType != null && Object.hasOwnProperty.call(message, 'keyType')) + writer.uint32(/* id 5, wireType 0 =*/ 40).int32(message.keyType); + if (message.fullName != null && Object.hasOwnProperty.call(message, 'fullName')) + writer.uint32(/* id 6, wireType 2 =*/ 50).string(message.fullName); + if (message.jobTitle != null && Object.hasOwnProperty.call(message, 'jobTitle')) + writer.uint32(/* id 7, wireType 2 =*/ 58).string(message.jobTitle); + if (message.suppressEmailInvite != null && Object.hasOwnProperty.call(message, 'suppressEmailInvite')) + writer.uint32(/* id 8, wireType 0 =*/ 64).bool(message.suppressEmailInvite); + if (message.inviteeLocale != null && Object.hasOwnProperty.call(message, 'inviteeLocale')) + writer.uint32(/* id 9, wireType 2 =*/ 74).string(message.inviteeLocale); + if (message.move != null && Object.hasOwnProperty.call(message, 'move')) + writer.uint32(/* id 10, wireType 0 =*/ 80).bool(message.move); + if (message.roleId != null && Object.hasOwnProperty.call(message, 'roleId')) + writer.uint32(/* id 11, wireType 0 =*/ 88).int64(message.roleId); return writer; }; @@ -97652,59 +100826,59 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ EnterpriseUsersAdd.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.EnterpriseUsersAdd(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.EnterpriseUsersAdd(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.enterpriseUserId = reader.int64(); break; } - case 2: { + case 2: { message.username = reader.string(); break; } - case 3: { + case 3: { message.nodeId = reader.int64(); break; } - case 4: { + case 4: { message.encryptedData = reader.string(); break; } - case 5: { + case 5: { message.keyType = reader.int32(); break; } - case 6: { + case 6: { message.fullName = reader.string(); break; } - case 7: { + case 7: { message.jobTitle = reader.string(); break; } - case 8: { + case 8: { message.suppressEmailInvite = reader.bool(); break; } - case 9: { + case 9: { message.inviteeLocale = reader.string(); break; } - case 10: { + case 10: { message.move = reader.bool(); break; } - case 11: { + case 11: { message.roleId = reader.int64(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -97721,8 +100895,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ EnterpriseUsersAdd.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -97735,49 +100908,54 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ EnterpriseUsersAdd.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (!$util.isInteger(message.enterpriseUserId) && !(message.enterpriseUserId && $util.isInteger(message.enterpriseUserId.low) && $util.isInteger(message.enterpriseUserId.high))) - return "enterpriseUserId: integer|Long expected"; - if (message.username != null && message.hasOwnProperty("username")) - if (!$util.isString(message.username)) - return "username: string expected"; - if (message.nodeId != null && message.hasOwnProperty("nodeId")) - if (!$util.isInteger(message.nodeId) && !(message.nodeId && $util.isInteger(message.nodeId.low) && $util.isInteger(message.nodeId.high))) - return "nodeId: integer|Long expected"; - if (message.encryptedData != null && message.hasOwnProperty("encryptedData")) - if (!$util.isString(message.encryptedData)) - return "encryptedData: string expected"; - if (message.keyType != null && message.hasOwnProperty("keyType")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.enterpriseUserId != null && message.hasOwnProperty('enterpriseUserId')) + if ( + !$util.isInteger(message.enterpriseUserId) && + !( + message.enterpriseUserId && + $util.isInteger(message.enterpriseUserId.low) && + $util.isInteger(message.enterpriseUserId.high) + ) + ) + return 'enterpriseUserId: integer|Long expected'; + if (message.username != null && message.hasOwnProperty('username')) + if (!$util.isString(message.username)) return 'username: string expected'; + if (message.nodeId != null && message.hasOwnProperty('nodeId')) + if ( + !$util.isInteger(message.nodeId) && + !(message.nodeId && $util.isInteger(message.nodeId.low) && $util.isInteger(message.nodeId.high)) + ) + return 'nodeId: integer|Long expected'; + if (message.encryptedData != null && message.hasOwnProperty('encryptedData')) + if (!$util.isString(message.encryptedData)) return 'encryptedData: string expected'; + if (message.keyType != null && message.hasOwnProperty('keyType')) switch (message.keyType) { - default: - return "keyType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; + default: + return 'keyType: enum value expected'; + case 0: + case 1: + case 2: + case 3: + case 4: + break; } - if (message.fullName != null && message.hasOwnProperty("fullName")) - if (!$util.isString(message.fullName)) - return "fullName: string expected"; - if (message.jobTitle != null && message.hasOwnProperty("jobTitle")) - if (!$util.isString(message.jobTitle)) - return "jobTitle: string expected"; - if (message.suppressEmailInvite != null && message.hasOwnProperty("suppressEmailInvite")) - if (typeof message.suppressEmailInvite !== "boolean") - return "suppressEmailInvite: boolean expected"; - if (message.inviteeLocale != null && message.hasOwnProperty("inviteeLocale")) - if (!$util.isString(message.inviteeLocale)) - return "inviteeLocale: string expected"; - if (message.move != null && message.hasOwnProperty("move")) - if (typeof message.move !== "boolean") - return "move: boolean expected"; - if (message.roleId != null && message.hasOwnProperty("roleId")) - if (!$util.isInteger(message.roleId) && !(message.roleId && $util.isInteger(message.roleId.low) && $util.isInteger(message.roleId.high))) - return "roleId: integer|Long expected"; + if (message.fullName != null && message.hasOwnProperty('fullName')) + if (!$util.isString(message.fullName)) return 'fullName: string expected'; + if (message.jobTitle != null && message.hasOwnProperty('jobTitle')) + if (!$util.isString(message.jobTitle)) return 'jobTitle: string expected'; + if (message.suppressEmailInvite != null && message.hasOwnProperty('suppressEmailInvite')) + if (typeof message.suppressEmailInvite !== 'boolean') return 'suppressEmailInvite: boolean expected'; + if (message.inviteeLocale != null && message.hasOwnProperty('inviteeLocale')) + if (!$util.isString(message.inviteeLocale)) return 'inviteeLocale: string expected'; + if (message.move != null && message.hasOwnProperty('move')) + if (typeof message.move !== 'boolean') return 'move: boolean expected'; + if (message.roleId != null && message.hasOwnProperty('roleId')) + if ( + !$util.isInteger(message.roleId) && + !(message.roleId && $util.isInteger(message.roleId.low) && $util.isInteger(message.roleId.high)) + ) + return 'roleId: integer|Long expected'; return null; }; @@ -97790,77 +100968,66 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.EnterpriseUsersAdd} EnterpriseUsersAdd */ EnterpriseUsersAdd.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.EnterpriseUsersAdd) - return object; + if (object instanceof $root.Enterprise.EnterpriseUsersAdd) return object; let message = new $root.Enterprise.EnterpriseUsersAdd(); if (object.enterpriseUserId != null) if ($util.Long) (message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId)).unsigned = false; - else if (typeof object.enterpriseUserId === "string") + else if (typeof object.enterpriseUserId === 'string') message.enterpriseUserId = parseInt(object.enterpriseUserId, 10); - else if (typeof object.enterpriseUserId === "number") + else if (typeof object.enterpriseUserId === 'number') message.enterpriseUserId = object.enterpriseUserId; - else if (typeof object.enterpriseUserId === "object") - message.enterpriseUserId = new $util.LongBits(object.enterpriseUserId.low >>> 0, object.enterpriseUserId.high >>> 0).toNumber(); - if (object.username != null) - message.username = String(object.username); + else if (typeof object.enterpriseUserId === 'object') + message.enterpriseUserId = new $util.LongBits( + object.enterpriseUserId.low >>> 0, + object.enterpriseUserId.high >>> 0 + ).toNumber(); + if (object.username != null) message.username = String(object.username); if (object.nodeId != null) - if ($util.Long) - (message.nodeId = $util.Long.fromValue(object.nodeId)).unsigned = false; - else if (typeof object.nodeId === "string") - message.nodeId = parseInt(object.nodeId, 10); - else if (typeof object.nodeId === "number") - message.nodeId = object.nodeId; - else if (typeof object.nodeId === "object") + if ($util.Long) (message.nodeId = $util.Long.fromValue(object.nodeId)).unsigned = false; + else if (typeof object.nodeId === 'string') message.nodeId = parseInt(object.nodeId, 10); + else if (typeof object.nodeId === 'number') message.nodeId = object.nodeId; + else if (typeof object.nodeId === 'object') message.nodeId = new $util.LongBits(object.nodeId.low >>> 0, object.nodeId.high >>> 0).toNumber(); - if (object.encryptedData != null) - message.encryptedData = String(object.encryptedData); + if (object.encryptedData != null) message.encryptedData = String(object.encryptedData); switch (object.keyType) { - default: - if (typeof object.keyType === "number") { - message.keyType = object.keyType; - break; - } - break; - case "KT_NO_KEY": - case 0: - message.keyType = 0; - break; - case "KT_ENCRYPTED_BY_DATA_KEY": - case 1: - message.keyType = 1; - break; - case "KT_ENCRYPTED_BY_PUBLIC_KEY": - case 2: - message.keyType = 2; - break; - case "KT_ENCRYPTED_BY_DATA_KEY_GCM": - case 3: - message.keyType = 3; - break; - case "KT_ENCRYPTED_BY_PUBLIC_KEY_ECC": - case 4: - message.keyType = 4; - break; - } - if (object.fullName != null) - message.fullName = String(object.fullName); - if (object.jobTitle != null) - message.jobTitle = String(object.jobTitle); - if (object.suppressEmailInvite != null) - message.suppressEmailInvite = Boolean(object.suppressEmailInvite); - if (object.inviteeLocale != null) - message.inviteeLocale = String(object.inviteeLocale); - if (object.move != null) - message.move = Boolean(object.move); + default: + if (typeof object.keyType === 'number') { + message.keyType = object.keyType; + break; + } + break; + case 'KT_NO_KEY': + case 0: + message.keyType = 0; + break; + case 'KT_ENCRYPTED_BY_DATA_KEY': + case 1: + message.keyType = 1; + break; + case 'KT_ENCRYPTED_BY_PUBLIC_KEY': + case 2: + message.keyType = 2; + break; + case 'KT_ENCRYPTED_BY_DATA_KEY_GCM': + case 3: + message.keyType = 3; + break; + case 'KT_ENCRYPTED_BY_PUBLIC_KEY_ECC': + case 4: + message.keyType = 4; + break; + } + if (object.fullName != null) message.fullName = String(object.fullName); + if (object.jobTitle != null) message.jobTitle = String(object.jobTitle); + if (object.suppressEmailInvite != null) message.suppressEmailInvite = Boolean(object.suppressEmailInvite); + if (object.inviteeLocale != null) message.inviteeLocale = String(object.inviteeLocale); + if (object.move != null) message.move = Boolean(object.move); if (object.roleId != null) - if ($util.Long) - (message.roleId = $util.Long.fromValue(object.roleId)).unsigned = false; - else if (typeof object.roleId === "string") - message.roleId = parseInt(object.roleId, 10); - else if (typeof object.roleId === "number") - message.roleId = object.roleId; - else if (typeof object.roleId === "object") + if ($util.Long) (message.roleId = $util.Long.fromValue(object.roleId)).unsigned = false; + else if (typeof object.roleId === 'string') message.roleId = parseInt(object.roleId, 10); + else if (typeof object.roleId === 'number') message.roleId = object.roleId; + else if (typeof object.roleId === 'object') message.roleId = new $util.LongBits(object.roleId.low >>> 0, object.roleId.high >>> 0).toNumber(); return message; }; @@ -97875,65 +101042,84 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ EnterpriseUsersAdd.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.enterpriseUserId = options.longs === String ? "0" : 0; - object.username = ""; + object.enterpriseUserId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.enterpriseUserId = options.longs === String ? '0' : 0; + object.username = ''; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.nodeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.nodeId = options.longs === String ? "0" : 0; - object.encryptedData = ""; - object.keyType = options.enums === String ? "KT_NO_KEY" : 0; - object.fullName = ""; - object.jobTitle = ""; + object.nodeId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.nodeId = options.longs === String ? '0' : 0; + object.encryptedData = ''; + object.keyType = options.enums === String ? 'KT_NO_KEY' : 0; + object.fullName = ''; + object.jobTitle = ''; object.suppressEmailInvite = false; - object.inviteeLocale = ""; + object.inviteeLocale = ''; object.move = false; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.roleId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.roleId = options.longs === String ? "0" : 0; - } - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (typeof message.enterpriseUserId === "number") - object.enterpriseUserId = options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; + object.roleId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.roleId = options.longs === String ? '0' : 0; + } + if (message.enterpriseUserId != null && message.hasOwnProperty('enterpriseUserId')) + if (typeof message.enterpriseUserId === 'number') + object.enterpriseUserId = + options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; else - object.enterpriseUserId = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseUserId) : options.longs === Number ? new $util.LongBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0).toNumber() : message.enterpriseUserId; - if (message.username != null && message.hasOwnProperty("username")) - object.username = message.username; - if (message.nodeId != null && message.hasOwnProperty("nodeId")) - if (typeof message.nodeId === "number") + object.enterpriseUserId = + options.longs === String + ? $util.Long.prototype.toString.call(message.enterpriseUserId) + : options.longs === Number + ? new $util.LongBits( + message.enterpriseUserId.low >>> 0, + message.enterpriseUserId.high >>> 0 + ).toNumber() + : message.enterpriseUserId; + if (message.username != null && message.hasOwnProperty('username')) object.username = message.username; + if (message.nodeId != null && message.hasOwnProperty('nodeId')) + if (typeof message.nodeId === 'number') object.nodeId = options.longs === String ? String(message.nodeId) : message.nodeId; else - object.nodeId = options.longs === String ? $util.Long.prototype.toString.call(message.nodeId) : options.longs === Number ? new $util.LongBits(message.nodeId.low >>> 0, message.nodeId.high >>> 0).toNumber() : message.nodeId; - if (message.encryptedData != null && message.hasOwnProperty("encryptedData")) + object.nodeId = + options.longs === String + ? $util.Long.prototype.toString.call(message.nodeId) + : options.longs === Number + ? new $util.LongBits(message.nodeId.low >>> 0, message.nodeId.high >>> 0).toNumber() + : message.nodeId; + if (message.encryptedData != null && message.hasOwnProperty('encryptedData')) object.encryptedData = message.encryptedData; - if (message.keyType != null && message.hasOwnProperty("keyType")) - object.keyType = options.enums === String ? $root.Enterprise.EncryptedKeyType[message.keyType] === undefined ? message.keyType : $root.Enterprise.EncryptedKeyType[message.keyType] : message.keyType; - if (message.fullName != null && message.hasOwnProperty("fullName")) - object.fullName = message.fullName; - if (message.jobTitle != null && message.hasOwnProperty("jobTitle")) - object.jobTitle = message.jobTitle; - if (message.suppressEmailInvite != null && message.hasOwnProperty("suppressEmailInvite")) + if (message.keyType != null && message.hasOwnProperty('keyType')) + object.keyType = + options.enums === String + ? $root.Enterprise.EncryptedKeyType[message.keyType] === undefined + ? message.keyType + : $root.Enterprise.EncryptedKeyType[message.keyType] + : message.keyType; + if (message.fullName != null && message.hasOwnProperty('fullName')) object.fullName = message.fullName; + if (message.jobTitle != null && message.hasOwnProperty('jobTitle')) object.jobTitle = message.jobTitle; + if (message.suppressEmailInvite != null && message.hasOwnProperty('suppressEmailInvite')) object.suppressEmailInvite = message.suppressEmailInvite; - if (message.inviteeLocale != null && message.hasOwnProperty("inviteeLocale")) + if (message.inviteeLocale != null && message.hasOwnProperty('inviteeLocale')) object.inviteeLocale = message.inviteeLocale; - if (message.move != null && message.hasOwnProperty("move")) - object.move = message.move; - if (message.roleId != null && message.hasOwnProperty("roleId")) - if (typeof message.roleId === "number") + if (message.move != null && message.hasOwnProperty('move')) object.move = message.move; + if (message.roleId != null && message.hasOwnProperty('roleId')) + if (typeof message.roleId === 'number') object.roleId = options.longs === String ? String(message.roleId) : message.roleId; else - object.roleId = options.longs === String ? $util.Long.prototype.toString.call(message.roleId) : options.longs === Number ? new $util.LongBits(message.roleId.low >>> 0, message.roleId.high >>> 0).toNumber() : message.roleId; + object.roleId = + options.longs === String + ? $util.Long.prototype.toString.call(message.roleId) + : options.longs === Number + ? new $util.LongBits(message.roleId.low >>> 0, message.roleId.high >>> 0).toNumber() + : message.roleId; return object; }; @@ -97958,16 +101144,15 @@ export const Enterprise = $root.Enterprise = (() => { */ EnterpriseUsersAdd.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.EnterpriseUsersAdd"; + return typeUrlPrefix + '/Enterprise.EnterpriseUsersAdd'; }; return EnterpriseUsersAdd; })(); - Enterprise.EnterpriseUsersAddResponse = (function() { - + Enterprise.EnterpriseUsersAddResponse = (function () { /** * Properties of an EnterpriseUsersAddResponse. * @memberof Enterprise @@ -97991,8 +101176,7 @@ export const Enterprise = $root.Enterprise = (() => { this.results = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -98017,7 +101201,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.EnterpriseUsersAddResponse * @instance */ - EnterpriseUsersAddResponse.prototype.code = ""; + EnterpriseUsersAddResponse.prototype.code = ''; /** * EnterpriseUsersAddResponse message. @@ -98025,7 +101209,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.EnterpriseUsersAddResponse * @instance */ - EnterpriseUsersAddResponse.prototype.message = ""; + EnterpriseUsersAddResponse.prototype.message = ''; /** * EnterpriseUsersAddResponse additionalInfo. @@ -98033,7 +101217,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.EnterpriseUsersAddResponse * @instance */ - EnterpriseUsersAddResponse.prototype.additionalInfo = ""; + EnterpriseUsersAddResponse.prototype.additionalInfo = ''; /** * Creates a new EnterpriseUsersAddResponse instance using the specified properties. @@ -98057,19 +101241,21 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ EnterpriseUsersAddResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.results != null && message.results.length) for (let i = 0; i < message.results.length; ++i) - $root.Enterprise.EnterpriseUsersAddResult.encode(message.results[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.success != null && Object.hasOwnProperty.call(message, "success")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.success); - if (message.code != null && Object.hasOwnProperty.call(message, "code")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.code); - if (message.message != null && Object.hasOwnProperty.call(message, "message")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.message); - if (message.additionalInfo != null && Object.hasOwnProperty.call(message, "additionalInfo")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.additionalInfo); + $root.Enterprise.EnterpriseUsersAddResult.encode( + message.results[i], + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); + if (message.success != null && Object.hasOwnProperty.call(message, 'success')) + writer.uint32(/* id 2, wireType 0 =*/ 16).bool(message.success); + if (message.code != null && Object.hasOwnProperty.call(message, 'code')) + writer.uint32(/* id 3, wireType 2 =*/ 26).string(message.code); + if (message.message != null && Object.hasOwnProperty.call(message, 'message')) + writer.uint32(/* id 4, wireType 2 =*/ 34).string(message.message); + if (message.additionalInfo != null && Object.hasOwnProperty.call(message, 'additionalInfo')) + writer.uint32(/* id 5, wireType 2 =*/ 42).string(message.additionalInfo); return writer; }; @@ -98098,37 +101284,36 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ EnterpriseUsersAddResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.EnterpriseUsersAddResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.EnterpriseUsersAddResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (!(message.results && message.results.length)) - message.results = []; + case 1: { + if (!(message.results && message.results.length)) message.results = []; message.results.push($root.Enterprise.EnterpriseUsersAddResult.decode(reader, reader.uint32())); break; } - case 2: { + case 2: { message.success = reader.bool(); break; } - case 3: { + case 3: { message.code = reader.string(); break; } - case 4: { + case 4: { message.message = reader.string(); break; } - case 5: { + case 5: { message.additionalInfo = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -98145,8 +101330,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ EnterpriseUsersAddResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -98159,29 +101343,22 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ EnterpriseUsersAddResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.results != null && message.hasOwnProperty("results")) { - if (!Array.isArray(message.results)) - return "results: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.results != null && message.hasOwnProperty('results')) { + if (!Array.isArray(message.results)) return 'results: array expected'; for (let i = 0; i < message.results.length; ++i) { let error = $root.Enterprise.EnterpriseUsersAddResult.verify(message.results[i]); - if (error) - return "results." + error; + if (error) return 'results.' + error; } } - if (message.success != null && message.hasOwnProperty("success")) - if (typeof message.success !== "boolean") - return "success: boolean expected"; - if (message.code != null && message.hasOwnProperty("code")) - if (!$util.isString(message.code)) - return "code: string expected"; - if (message.message != null && message.hasOwnProperty("message")) - if (!$util.isString(message.message)) - return "message: string expected"; - if (message.additionalInfo != null && message.hasOwnProperty("additionalInfo")) - if (!$util.isString(message.additionalInfo)) - return "additionalInfo: string expected"; + if (message.success != null && message.hasOwnProperty('success')) + if (typeof message.success !== 'boolean') return 'success: boolean expected'; + if (message.code != null && message.hasOwnProperty('code')) + if (!$util.isString(message.code)) return 'code: string expected'; + if (message.message != null && message.hasOwnProperty('message')) + if (!$util.isString(message.message)) return 'message: string expected'; + if (message.additionalInfo != null && message.hasOwnProperty('additionalInfo')) + if (!$util.isString(message.additionalInfo)) return 'additionalInfo: string expected'; return null; }; @@ -98194,27 +101371,22 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.EnterpriseUsersAddResponse} EnterpriseUsersAddResponse */ EnterpriseUsersAddResponse.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.EnterpriseUsersAddResponse) - return object; + if (object instanceof $root.Enterprise.EnterpriseUsersAddResponse) return object; let message = new $root.Enterprise.EnterpriseUsersAddResponse(); if (object.results) { if (!Array.isArray(object.results)) - throw TypeError(".Enterprise.EnterpriseUsersAddResponse.results: array expected"); + throw TypeError('.Enterprise.EnterpriseUsersAddResponse.results: array expected'); message.results = []; for (let i = 0; i < object.results.length; ++i) { - if (typeof object.results[i] !== "object") - throw TypeError(".Enterprise.EnterpriseUsersAddResponse.results: object expected"); + if (typeof object.results[i] !== 'object') + throw TypeError('.Enterprise.EnterpriseUsersAddResponse.results: object expected'); message.results[i] = $root.Enterprise.EnterpriseUsersAddResult.fromObject(object.results[i]); } } - if (object.success != null) - message.success = Boolean(object.success); - if (object.code != null) - message.code = String(object.code); - if (object.message != null) - message.message = String(object.message); - if (object.additionalInfo != null) - message.additionalInfo = String(object.additionalInfo); + if (object.success != null) message.success = Boolean(object.success); + if (object.code != null) message.code = String(object.code); + if (object.message != null) message.message = String(object.message); + if (object.additionalInfo != null) message.additionalInfo = String(object.additionalInfo); return message; }; @@ -98228,29 +101400,24 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ EnterpriseUsersAddResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.results = []; + if (options.arrays || options.defaults) object.results = []; if (options.defaults) { object.success = false; - object.code = ""; - object.message = ""; - object.additionalInfo = ""; + object.code = ''; + object.message = ''; + object.additionalInfo = ''; } if (message.results && message.results.length) { object.results = []; for (let j = 0; j < message.results.length; ++j) object.results[j] = $root.Enterprise.EnterpriseUsersAddResult.toObject(message.results[j], options); } - if (message.success != null && message.hasOwnProperty("success")) - object.success = message.success; - if (message.code != null && message.hasOwnProperty("code")) - object.code = message.code; - if (message.message != null && message.hasOwnProperty("message")) - object.message = message.message; - if (message.additionalInfo != null && message.hasOwnProperty("additionalInfo")) + if (message.success != null && message.hasOwnProperty('success')) object.success = message.success; + if (message.code != null && message.hasOwnProperty('code')) object.code = message.code; + if (message.message != null && message.hasOwnProperty('message')) object.message = message.message; + if (message.additionalInfo != null && message.hasOwnProperty('additionalInfo')) object.additionalInfo = message.additionalInfo; return object; }; @@ -98276,16 +101443,15 @@ export const Enterprise = $root.Enterprise = (() => { */ EnterpriseUsersAddResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.EnterpriseUsersAddResponse"; + return typeUrlPrefix + '/Enterprise.EnterpriseUsersAddResponse'; }; return EnterpriseUsersAddResponse; })(); - Enterprise.EnterpriseUsersAddResult = (function() { - + Enterprise.EnterpriseUsersAddResult = (function () { /** * Properties of an EnterpriseUsersAddResult. * @memberof Enterprise @@ -98309,8 +101475,7 @@ export const Enterprise = $root.Enterprise = (() => { function EnterpriseUsersAddResult(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -98319,7 +101484,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.EnterpriseUsersAddResult * @instance */ - EnterpriseUsersAddResult.prototype.enterpriseUserId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + EnterpriseUsersAddResult.prototype.enterpriseUserId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * EnterpriseUsersAddResult success. @@ -98335,7 +101500,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.EnterpriseUsersAddResult * @instance */ - EnterpriseUsersAddResult.prototype.verificationCode = ""; + EnterpriseUsersAddResult.prototype.verificationCode = ''; /** * EnterpriseUsersAddResult code. @@ -98343,7 +101508,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.EnterpriseUsersAddResult * @instance */ - EnterpriseUsersAddResult.prototype.code = ""; + EnterpriseUsersAddResult.prototype.code = ''; /** * EnterpriseUsersAddResult message. @@ -98351,7 +101516,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.EnterpriseUsersAddResult * @instance */ - EnterpriseUsersAddResult.prototype.message = ""; + EnterpriseUsersAddResult.prototype.message = ''; /** * EnterpriseUsersAddResult additionalInfo. @@ -98359,7 +101524,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.EnterpriseUsersAddResult * @instance */ - EnterpriseUsersAddResult.prototype.additionalInfo = ""; + EnterpriseUsersAddResult.prototype.additionalInfo = ''; /** * Creates a new EnterpriseUsersAddResult instance using the specified properties. @@ -98383,20 +101548,19 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ EnterpriseUsersAddResult.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "enterpriseUserId")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.enterpriseUserId); - if (message.success != null && Object.hasOwnProperty.call(message, "success")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.success); - if (message.verificationCode != null && Object.hasOwnProperty.call(message, "verificationCode")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.verificationCode); - if (message.code != null && Object.hasOwnProperty.call(message, "code")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.code); - if (message.message != null && Object.hasOwnProperty.call(message, "message")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.message); - if (message.additionalInfo != null && Object.hasOwnProperty.call(message, "additionalInfo")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.additionalInfo); + if (!writer) writer = $Writer.create(); + if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, 'enterpriseUserId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int64(message.enterpriseUserId); + if (message.success != null && Object.hasOwnProperty.call(message, 'success')) + writer.uint32(/* id 2, wireType 0 =*/ 16).bool(message.success); + if (message.verificationCode != null && Object.hasOwnProperty.call(message, 'verificationCode')) + writer.uint32(/* id 3, wireType 2 =*/ 26).string(message.verificationCode); + if (message.code != null && Object.hasOwnProperty.call(message, 'code')) + writer.uint32(/* id 4, wireType 2 =*/ 34).string(message.code); + if (message.message != null && Object.hasOwnProperty.call(message, 'message')) + writer.uint32(/* id 5, wireType 2 =*/ 42).string(message.message); + if (message.additionalInfo != null && Object.hasOwnProperty.call(message, 'additionalInfo')) + writer.uint32(/* id 6, wireType 2 =*/ 50).string(message.additionalInfo); return writer; }; @@ -98425,39 +101589,39 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ EnterpriseUsersAddResult.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.EnterpriseUsersAddResult(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.EnterpriseUsersAddResult(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.enterpriseUserId = reader.int64(); break; } - case 2: { + case 2: { message.success = reader.bool(); break; } - case 3: { + case 3: { message.verificationCode = reader.string(); break; } - case 4: { + case 4: { message.code = reader.string(); break; } - case 5: { + case 5: { message.message = reader.string(); break; } - case 6: { + case 6: { message.additionalInfo = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -98474,8 +101638,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ EnterpriseUsersAddResult.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -98488,26 +101651,27 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ EnterpriseUsersAddResult.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (!$util.isInteger(message.enterpriseUserId) && !(message.enterpriseUserId && $util.isInteger(message.enterpriseUserId.low) && $util.isInteger(message.enterpriseUserId.high))) - return "enterpriseUserId: integer|Long expected"; - if (message.success != null && message.hasOwnProperty("success")) - if (typeof message.success !== "boolean") - return "success: boolean expected"; - if (message.verificationCode != null && message.hasOwnProperty("verificationCode")) - if (!$util.isString(message.verificationCode)) - return "verificationCode: string expected"; - if (message.code != null && message.hasOwnProperty("code")) - if (!$util.isString(message.code)) - return "code: string expected"; - if (message.message != null && message.hasOwnProperty("message")) - if (!$util.isString(message.message)) - return "message: string expected"; - if (message.additionalInfo != null && message.hasOwnProperty("additionalInfo")) - if (!$util.isString(message.additionalInfo)) - return "additionalInfo: string expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.enterpriseUserId != null && message.hasOwnProperty('enterpriseUserId')) + if ( + !$util.isInteger(message.enterpriseUserId) && + !( + message.enterpriseUserId && + $util.isInteger(message.enterpriseUserId.low) && + $util.isInteger(message.enterpriseUserId.high) + ) + ) + return 'enterpriseUserId: integer|Long expected'; + if (message.success != null && message.hasOwnProperty('success')) + if (typeof message.success !== 'boolean') return 'success: boolean expected'; + if (message.verificationCode != null && message.hasOwnProperty('verificationCode')) + if (!$util.isString(message.verificationCode)) return 'verificationCode: string expected'; + if (message.code != null && message.hasOwnProperty('code')) + if (!$util.isString(message.code)) return 'code: string expected'; + if (message.message != null && message.hasOwnProperty('message')) + if (!$util.isString(message.message)) return 'message: string expected'; + if (message.additionalInfo != null && message.hasOwnProperty('additionalInfo')) + if (!$util.isString(message.additionalInfo)) return 'additionalInfo: string expected'; return null; }; @@ -98520,28 +101684,25 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.EnterpriseUsersAddResult} EnterpriseUsersAddResult */ EnterpriseUsersAddResult.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.EnterpriseUsersAddResult) - return object; + if (object instanceof $root.Enterprise.EnterpriseUsersAddResult) return object; let message = new $root.Enterprise.EnterpriseUsersAddResult(); if (object.enterpriseUserId != null) if ($util.Long) (message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId)).unsigned = false; - else if (typeof object.enterpriseUserId === "string") + else if (typeof object.enterpriseUserId === 'string') message.enterpriseUserId = parseInt(object.enterpriseUserId, 10); - else if (typeof object.enterpriseUserId === "number") + else if (typeof object.enterpriseUserId === 'number') message.enterpriseUserId = object.enterpriseUserId; - else if (typeof object.enterpriseUserId === "object") - message.enterpriseUserId = new $util.LongBits(object.enterpriseUserId.low >>> 0, object.enterpriseUserId.high >>> 0).toNumber(); - if (object.success != null) - message.success = Boolean(object.success); - if (object.verificationCode != null) - message.verificationCode = String(object.verificationCode); - if (object.code != null) - message.code = String(object.code); - if (object.message != null) - message.message = String(object.message); - if (object.additionalInfo != null) - message.additionalInfo = String(object.additionalInfo); + else if (typeof object.enterpriseUserId === 'object') + message.enterpriseUserId = new $util.LongBits( + object.enterpriseUserId.low >>> 0, + object.enterpriseUserId.high >>> 0 + ).toNumber(); + if (object.success != null) message.success = Boolean(object.success); + if (object.verificationCode != null) message.verificationCode = String(object.verificationCode); + if (object.code != null) message.code = String(object.code); + if (object.message != null) message.message = String(object.message); + if (object.additionalInfo != null) message.additionalInfo = String(object.additionalInfo); return message; }; @@ -98555,35 +101716,40 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ EnterpriseUsersAddResult.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.enterpriseUserId = options.longs === String ? "0" : 0; + object.enterpriseUserId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.enterpriseUserId = options.longs === String ? '0' : 0; object.success = false; - object.verificationCode = ""; - object.code = ""; - object.message = ""; - object.additionalInfo = ""; - } - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (typeof message.enterpriseUserId === "number") - object.enterpriseUserId = options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; + object.verificationCode = ''; + object.code = ''; + object.message = ''; + object.additionalInfo = ''; + } + if (message.enterpriseUserId != null && message.hasOwnProperty('enterpriseUserId')) + if (typeof message.enterpriseUserId === 'number') + object.enterpriseUserId = + options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; else - object.enterpriseUserId = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseUserId) : options.longs === Number ? new $util.LongBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0).toNumber() : message.enterpriseUserId; - if (message.success != null && message.hasOwnProperty("success")) - object.success = message.success; - if (message.verificationCode != null && message.hasOwnProperty("verificationCode")) + object.enterpriseUserId = + options.longs === String + ? $util.Long.prototype.toString.call(message.enterpriseUserId) + : options.longs === Number + ? new $util.LongBits( + message.enterpriseUserId.low >>> 0, + message.enterpriseUserId.high >>> 0 + ).toNumber() + : message.enterpriseUserId; + if (message.success != null && message.hasOwnProperty('success')) object.success = message.success; + if (message.verificationCode != null && message.hasOwnProperty('verificationCode')) object.verificationCode = message.verificationCode; - if (message.code != null && message.hasOwnProperty("code")) - object.code = message.code; - if (message.message != null && message.hasOwnProperty("message")) - object.message = message.message; - if (message.additionalInfo != null && message.hasOwnProperty("additionalInfo")) + if (message.code != null && message.hasOwnProperty('code')) object.code = message.code; + if (message.message != null && message.hasOwnProperty('message')) object.message = message.message; + if (message.additionalInfo != null && message.hasOwnProperty('additionalInfo')) object.additionalInfo = message.additionalInfo; return object; }; @@ -98609,16 +101775,15 @@ export const Enterprise = $root.Enterprise = (() => { */ EnterpriseUsersAddResult.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.EnterpriseUsersAddResult"; + return typeUrlPrefix + '/Enterprise.EnterpriseUsersAddResult'; }; return EnterpriseUsersAddResult; })(); - Enterprise.UpdateMSPPermitsRequest = (function() { - + Enterprise.UpdateMSPPermitsRequest = (function () { /** * Properties of an UpdateMSPPermitsRequest. * @memberof Enterprise @@ -98644,8 +101809,7 @@ export const Enterprise = $root.Enterprise = (() => { this.allowedAddOns = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -98686,7 +101850,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.UpdateMSPPermitsRequest * @instance */ - UpdateMSPPermitsRequest.prototype.maxFilePlanType = ""; + UpdateMSPPermitsRequest.prototype.maxFilePlanType = ''; /** * UpdateMSPPermitsRequest allowUnlimitedLicenses. @@ -98718,22 +101882,21 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ UpdateMSPPermitsRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.mspEnterpriseId != null && Object.hasOwnProperty.call(message, "mspEnterpriseId")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.mspEnterpriseId); - if (message.maxAllowedLicenses != null && Object.hasOwnProperty.call(message, "maxAllowedLicenses")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.maxAllowedLicenses); + if (!writer) writer = $Writer.create(); + if (message.mspEnterpriseId != null && Object.hasOwnProperty.call(message, 'mspEnterpriseId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int32(message.mspEnterpriseId); + if (message.maxAllowedLicenses != null && Object.hasOwnProperty.call(message, 'maxAllowedLicenses')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int32(message.maxAllowedLicenses); if (message.allowedMcProducts != null && message.allowedMcProducts.length) for (let i = 0; i < message.allowedMcProducts.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.allowedMcProducts[i]); + writer.uint32(/* id 3, wireType 2 =*/ 26).string(message.allowedMcProducts[i]); if (message.allowedAddOns != null && message.allowedAddOns.length) for (let i = 0; i < message.allowedAddOns.length; ++i) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.allowedAddOns[i]); - if (message.maxFilePlanType != null && Object.hasOwnProperty.call(message, "maxFilePlanType")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.maxFilePlanType); - if (message.allowUnlimitedLicenses != null && Object.hasOwnProperty.call(message, "allowUnlimitedLicenses")) - writer.uint32(/* id 6, wireType 0 =*/48).bool(message.allowUnlimitedLicenses); + writer.uint32(/* id 4, wireType 2 =*/ 34).string(message.allowedAddOns[i]); + if (message.maxFilePlanType != null && Object.hasOwnProperty.call(message, 'maxFilePlanType')) + writer.uint32(/* id 5, wireType 2 =*/ 42).string(message.maxFilePlanType); + if (message.allowUnlimitedLicenses != null && Object.hasOwnProperty.call(message, 'allowUnlimitedLicenses')) + writer.uint32(/* id 6, wireType 0 =*/ 48).bool(message.allowUnlimitedLicenses); return writer; }; @@ -98762,43 +101925,42 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ UpdateMSPPermitsRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.UpdateMSPPermitsRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.UpdateMSPPermitsRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.mspEnterpriseId = reader.int32(); break; } - case 2: { + case 2: { message.maxAllowedLicenses = reader.int32(); break; } - case 3: { + case 3: { if (!(message.allowedMcProducts && message.allowedMcProducts.length)) message.allowedMcProducts = []; message.allowedMcProducts.push(reader.string()); break; } - case 4: { - if (!(message.allowedAddOns && message.allowedAddOns.length)) - message.allowedAddOns = []; + case 4: { + if (!(message.allowedAddOns && message.allowedAddOns.length)) message.allowedAddOns = []; message.allowedAddOns.push(reader.string()); break; } - case 5: { + case 5: { message.maxFilePlanType = reader.string(); break; } - case 6: { + case 6: { message.allowUnlimitedLicenses = reader.bool(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -98815,8 +101977,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ UpdateMSPPermitsRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -98829,34 +101990,26 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ UpdateMSPPermitsRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.mspEnterpriseId != null && message.hasOwnProperty("mspEnterpriseId")) - if (!$util.isInteger(message.mspEnterpriseId)) - return "mspEnterpriseId: integer expected"; - if (message.maxAllowedLicenses != null && message.hasOwnProperty("maxAllowedLicenses")) - if (!$util.isInteger(message.maxAllowedLicenses)) - return "maxAllowedLicenses: integer expected"; - if (message.allowedMcProducts != null && message.hasOwnProperty("allowedMcProducts")) { - if (!Array.isArray(message.allowedMcProducts)) - return "allowedMcProducts: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.mspEnterpriseId != null && message.hasOwnProperty('mspEnterpriseId')) + if (!$util.isInteger(message.mspEnterpriseId)) return 'mspEnterpriseId: integer expected'; + if (message.maxAllowedLicenses != null && message.hasOwnProperty('maxAllowedLicenses')) + if (!$util.isInteger(message.maxAllowedLicenses)) return 'maxAllowedLicenses: integer expected'; + if (message.allowedMcProducts != null && message.hasOwnProperty('allowedMcProducts')) { + if (!Array.isArray(message.allowedMcProducts)) return 'allowedMcProducts: array expected'; for (let i = 0; i < message.allowedMcProducts.length; ++i) - if (!$util.isString(message.allowedMcProducts[i])) - return "allowedMcProducts: string[] expected"; + if (!$util.isString(message.allowedMcProducts[i])) return 'allowedMcProducts: string[] expected'; } - if (message.allowedAddOns != null && message.hasOwnProperty("allowedAddOns")) { - if (!Array.isArray(message.allowedAddOns)) - return "allowedAddOns: array expected"; + if (message.allowedAddOns != null && message.hasOwnProperty('allowedAddOns')) { + if (!Array.isArray(message.allowedAddOns)) return 'allowedAddOns: array expected'; for (let i = 0; i < message.allowedAddOns.length; ++i) - if (!$util.isString(message.allowedAddOns[i])) - return "allowedAddOns: string[] expected"; + if (!$util.isString(message.allowedAddOns[i])) return 'allowedAddOns: string[] expected'; } - if (message.maxFilePlanType != null && message.hasOwnProperty("maxFilePlanType")) - if (!$util.isString(message.maxFilePlanType)) - return "maxFilePlanType: string expected"; - if (message.allowUnlimitedLicenses != null && message.hasOwnProperty("allowUnlimitedLicenses")) - if (typeof message.allowUnlimitedLicenses !== "boolean") - return "allowUnlimitedLicenses: boolean expected"; + if (message.maxFilePlanType != null && message.hasOwnProperty('maxFilePlanType')) + if (!$util.isString(message.maxFilePlanType)) return 'maxFilePlanType: string expected'; + if (message.allowUnlimitedLicenses != null && message.hasOwnProperty('allowUnlimitedLicenses')) + if (typeof message.allowUnlimitedLicenses !== 'boolean') + return 'allowUnlimitedLicenses: boolean expected'; return null; }; @@ -98869,29 +102022,25 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.UpdateMSPPermitsRequest} UpdateMSPPermitsRequest */ UpdateMSPPermitsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.UpdateMSPPermitsRequest) - return object; + if (object instanceof $root.Enterprise.UpdateMSPPermitsRequest) return object; let message = new $root.Enterprise.UpdateMSPPermitsRequest(); - if (object.mspEnterpriseId != null) - message.mspEnterpriseId = object.mspEnterpriseId | 0; - if (object.maxAllowedLicenses != null) - message.maxAllowedLicenses = object.maxAllowedLicenses | 0; + if (object.mspEnterpriseId != null) message.mspEnterpriseId = object.mspEnterpriseId | 0; + if (object.maxAllowedLicenses != null) message.maxAllowedLicenses = object.maxAllowedLicenses | 0; if (object.allowedMcProducts) { if (!Array.isArray(object.allowedMcProducts)) - throw TypeError(".Enterprise.UpdateMSPPermitsRequest.allowedMcProducts: array expected"); + throw TypeError('.Enterprise.UpdateMSPPermitsRequest.allowedMcProducts: array expected'); message.allowedMcProducts = []; for (let i = 0; i < object.allowedMcProducts.length; ++i) message.allowedMcProducts[i] = String(object.allowedMcProducts[i]); } if (object.allowedAddOns) { if (!Array.isArray(object.allowedAddOns)) - throw TypeError(".Enterprise.UpdateMSPPermitsRequest.allowedAddOns: array expected"); + throw TypeError('.Enterprise.UpdateMSPPermitsRequest.allowedAddOns: array expected'); message.allowedAddOns = []; for (let i = 0; i < object.allowedAddOns.length; ++i) message.allowedAddOns[i] = String(object.allowedAddOns[i]); } - if (object.maxFilePlanType != null) - message.maxFilePlanType = String(object.maxFilePlanType); + if (object.maxFilePlanType != null) message.maxFilePlanType = String(object.maxFilePlanType); if (object.allowUnlimitedLicenses != null) message.allowUnlimitedLicenses = Boolean(object.allowUnlimitedLicenses); return message; @@ -98907,8 +102056,7 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ UpdateMSPPermitsRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.arrays || options.defaults) { object.allowedMcProducts = []; @@ -98917,12 +102065,12 @@ export const Enterprise = $root.Enterprise = (() => { if (options.defaults) { object.mspEnterpriseId = 0; object.maxAllowedLicenses = 0; - object.maxFilePlanType = ""; + object.maxFilePlanType = ''; object.allowUnlimitedLicenses = false; } - if (message.mspEnterpriseId != null && message.hasOwnProperty("mspEnterpriseId")) + if (message.mspEnterpriseId != null && message.hasOwnProperty('mspEnterpriseId')) object.mspEnterpriseId = message.mspEnterpriseId; - if (message.maxAllowedLicenses != null && message.hasOwnProperty("maxAllowedLicenses")) + if (message.maxAllowedLicenses != null && message.hasOwnProperty('maxAllowedLicenses')) object.maxAllowedLicenses = message.maxAllowedLicenses; if (message.allowedMcProducts && message.allowedMcProducts.length) { object.allowedMcProducts = []; @@ -98934,9 +102082,9 @@ export const Enterprise = $root.Enterprise = (() => { for (let j = 0; j < message.allowedAddOns.length; ++j) object.allowedAddOns[j] = message.allowedAddOns[j]; } - if (message.maxFilePlanType != null && message.hasOwnProperty("maxFilePlanType")) + if (message.maxFilePlanType != null && message.hasOwnProperty('maxFilePlanType')) object.maxFilePlanType = message.maxFilePlanType; - if (message.allowUnlimitedLicenses != null && message.hasOwnProperty("allowUnlimitedLicenses")) + if (message.allowUnlimitedLicenses != null && message.hasOwnProperty('allowUnlimitedLicenses')) object.allowUnlimitedLicenses = message.allowUnlimitedLicenses; return object; }; @@ -98962,9 +102110,9 @@ export const Enterprise = $root.Enterprise = (() => { */ UpdateMSPPermitsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.UpdateMSPPermitsRequest"; + return typeUrlPrefix + '/Enterprise.UpdateMSPPermitsRequest'; }; return UpdateMSPPermitsRequest; @@ -98980,18 +102128,18 @@ export const Enterprise = $root.Enterprise = (() => { * @property {number} KCM_CONTROLLER=3 KCM_CONTROLLER value * @property {number} SELF_DESTRUCT=4 SELF_DESTRUCT value */ - Enterprise.AppClientType = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "NOT_USED"] = 0; - values[valuesById[1] = "GENERAL"] = 1; - values[valuesById[2] = "DISCOVERY_AND_ROTATION_CONTROLLER"] = 2; - values[valuesById[3] = "KCM_CONTROLLER"] = 3; - values[valuesById[4] = "SELF_DESTRUCT"] = 4; + Enterprise.AppClientType = (function () { + const valuesById = {}, + values = Object.create(valuesById); + values[(valuesById[0] = 'NOT_USED')] = 0; + values[(valuesById[1] = 'GENERAL')] = 1; + values[(valuesById[2] = 'DISCOVERY_AND_ROTATION_CONTROLLER')] = 2; + values[(valuesById[3] = 'KCM_CONTROLLER')] = 3; + values[(valuesById[4] = 'SELF_DESTRUCT')] = 4; return values; })(); - Enterprise.DeleteEnterpriseUsersRequest = (function() { - + Enterprise.DeleteEnterpriseUsersRequest = (function () { /** * Properties of a DeleteEnterpriseUsersRequest. * @memberof Enterprise @@ -99011,8 +102159,7 @@ export const Enterprise = $root.Enterprise = (() => { this.enterpriseUserIds = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -99045,12 +102192,10 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ DeleteEnterpriseUsersRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.enterpriseUserIds != null && message.enterpriseUserIds.length) { - writer.uint32(/* id 1, wireType 2 =*/10).fork(); - for (let i = 0; i < message.enterpriseUserIds.length; ++i) - writer.int64(message.enterpriseUserIds[i]); + writer.uint32(/* id 1, wireType 2 =*/ 10).fork(); + for (let i = 0; i < message.enterpriseUserIds.length; ++i) writer.int64(message.enterpriseUserIds[i]); writer.ldelim(); } return writer; @@ -99081,26 +102226,24 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ DeleteEnterpriseUsersRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.DeleteEnterpriseUsersRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.DeleteEnterpriseUsersRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { if (!(message.enterpriseUserIds && message.enterpriseUserIds.length)) message.enterpriseUserIds = []; if ((tag & 7) === 2) { let end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.enterpriseUserIds.push(reader.int64()); - } else - message.enterpriseUserIds.push(reader.int64()); + while (reader.pos < end2) message.enterpriseUserIds.push(reader.int64()); + } else message.enterpriseUserIds.push(reader.int64()); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -99117,8 +102260,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ DeleteEnterpriseUsersRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -99131,14 +102273,19 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ DeleteEnterpriseUsersRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.enterpriseUserIds != null && message.hasOwnProperty("enterpriseUserIds")) { - if (!Array.isArray(message.enterpriseUserIds)) - return "enterpriseUserIds: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.enterpriseUserIds != null && message.hasOwnProperty('enterpriseUserIds')) { + if (!Array.isArray(message.enterpriseUserIds)) return 'enterpriseUserIds: array expected'; for (let i = 0; i < message.enterpriseUserIds.length; ++i) - if (!$util.isInteger(message.enterpriseUserIds[i]) && !(message.enterpriseUserIds[i] && $util.isInteger(message.enterpriseUserIds[i].low) && $util.isInteger(message.enterpriseUserIds[i].high))) - return "enterpriseUserIds: integer|Long[] expected"; + if ( + !$util.isInteger(message.enterpriseUserIds[i]) && + !( + message.enterpriseUserIds[i] && + $util.isInteger(message.enterpriseUserIds[i].low) && + $util.isInteger(message.enterpriseUserIds[i].high) + ) + ) + return 'enterpriseUserIds: integer|Long[] expected'; } return null; }; @@ -99152,22 +102299,25 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.DeleteEnterpriseUsersRequest} DeleteEnterpriseUsersRequest */ DeleteEnterpriseUsersRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.DeleteEnterpriseUsersRequest) - return object; + if (object instanceof $root.Enterprise.DeleteEnterpriseUsersRequest) return object; let message = new $root.Enterprise.DeleteEnterpriseUsersRequest(); if (object.enterpriseUserIds) { if (!Array.isArray(object.enterpriseUserIds)) - throw TypeError(".Enterprise.DeleteEnterpriseUsersRequest.enterpriseUserIds: array expected"); + throw TypeError('.Enterprise.DeleteEnterpriseUsersRequest.enterpriseUserIds: array expected'); message.enterpriseUserIds = []; for (let i = 0; i < object.enterpriseUserIds.length; ++i) if ($util.Long) - (message.enterpriseUserIds[i] = $util.Long.fromValue(object.enterpriseUserIds[i])).unsigned = false; - else if (typeof object.enterpriseUserIds[i] === "string") + (message.enterpriseUserIds[i] = $util.Long.fromValue(object.enterpriseUserIds[i])).unsigned = + false; + else if (typeof object.enterpriseUserIds[i] === 'string') message.enterpriseUserIds[i] = parseInt(object.enterpriseUserIds[i], 10); - else if (typeof object.enterpriseUserIds[i] === "number") + else if (typeof object.enterpriseUserIds[i] === 'number') message.enterpriseUserIds[i] = object.enterpriseUserIds[i]; - else if (typeof object.enterpriseUserIds[i] === "object") - message.enterpriseUserIds[i] = new $util.LongBits(object.enterpriseUserIds[i].low >>> 0, object.enterpriseUserIds[i].high >>> 0).toNumber(); + else if (typeof object.enterpriseUserIds[i] === 'object') + message.enterpriseUserIds[i] = new $util.LongBits( + object.enterpriseUserIds[i].low >>> 0, + object.enterpriseUserIds[i].high >>> 0 + ).toNumber(); } return message; }; @@ -99182,18 +102332,27 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ DeleteEnterpriseUsersRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.enterpriseUserIds = []; + if (options.arrays || options.defaults) object.enterpriseUserIds = []; if (message.enterpriseUserIds && message.enterpriseUserIds.length) { object.enterpriseUserIds = []; for (let j = 0; j < message.enterpriseUserIds.length; ++j) - if (typeof message.enterpriseUserIds[j] === "number") - object.enterpriseUserIds[j] = options.longs === String ? String(message.enterpriseUserIds[j]) : message.enterpriseUserIds[j]; + if (typeof message.enterpriseUserIds[j] === 'number') + object.enterpriseUserIds[j] = + options.longs === String + ? String(message.enterpriseUserIds[j]) + : message.enterpriseUserIds[j]; else - object.enterpriseUserIds[j] = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseUserIds[j]) : options.longs === Number ? new $util.LongBits(message.enterpriseUserIds[j].low >>> 0, message.enterpriseUserIds[j].high >>> 0).toNumber() : message.enterpriseUserIds[j]; + object.enterpriseUserIds[j] = + options.longs === String + ? $util.Long.prototype.toString.call(message.enterpriseUserIds[j]) + : options.longs === Number + ? new $util.LongBits( + message.enterpriseUserIds[j].low >>> 0, + message.enterpriseUserIds[j].high >>> 0 + ).toNumber() + : message.enterpriseUserIds[j]; } return object; }; @@ -99219,9 +102378,9 @@ export const Enterprise = $root.Enterprise = (() => { */ DeleteEnterpriseUsersRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.DeleteEnterpriseUsersRequest"; + return typeUrlPrefix + '/Enterprise.DeleteEnterpriseUsersRequest'; }; return DeleteEnterpriseUsersRequest; @@ -99237,18 +102396,18 @@ export const Enterprise = $root.Enterprise = (() => { * @property {number} BRIDGE_CANNOT_DELETE_ACTIVE_USER=3 BRIDGE_CANNOT_DELETE_ACTIVE_USER value * @property {number} ERROR=4 ERROR value */ - Enterprise.DeleteEnterpriseUsersResult = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "SUCCESS"] = 0; - values[valuesById[1] = "NOT_AN_ENTERPRISE_USER"] = 1; - values[valuesById[2] = "CANNOT_DELETE_SELF"] = 2; - values[valuesById[3] = "BRIDGE_CANNOT_DELETE_ACTIVE_USER"] = 3; - values[valuesById[4] = "ERROR"] = 4; + Enterprise.DeleteEnterpriseUsersResult = (function () { + const valuesById = {}, + values = Object.create(valuesById); + values[(valuesById[0] = 'SUCCESS')] = 0; + values[(valuesById[1] = 'NOT_AN_ENTERPRISE_USER')] = 1; + values[(valuesById[2] = 'CANNOT_DELETE_SELF')] = 2; + values[(valuesById[3] = 'BRIDGE_CANNOT_DELETE_ACTIVE_USER')] = 3; + values[(valuesById[4] = 'ERROR')] = 4; return values; })(); - Enterprise.DeleteEnterpriseUserStatus = (function() { - + Enterprise.DeleteEnterpriseUserStatus = (function () { /** * Properties of a DeleteEnterpriseUserStatus. * @memberof Enterprise @@ -99268,8 +102427,7 @@ export const Enterprise = $root.Enterprise = (() => { function DeleteEnterpriseUserStatus(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -99278,7 +102436,7 @@ export const Enterprise = $root.Enterprise = (() => { * @memberof Enterprise.DeleteEnterpriseUserStatus * @instance */ - DeleteEnterpriseUserStatus.prototype.enterpriseUserId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + DeleteEnterpriseUserStatus.prototype.enterpriseUserId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * DeleteEnterpriseUserStatus status. @@ -99310,12 +102468,11 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ DeleteEnterpriseUserStatus.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "enterpriseUserId")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.enterpriseUserId); - if (message.status != null && Object.hasOwnProperty.call(message, "status")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.status); + if (!writer) writer = $Writer.create(); + if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, 'enterpriseUserId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int64(message.enterpriseUserId); + if (message.status != null && Object.hasOwnProperty.call(message, 'status')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int32(message.status); return writer; }; @@ -99344,23 +102501,23 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ DeleteEnterpriseUserStatus.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.DeleteEnterpriseUserStatus(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.DeleteEnterpriseUserStatus(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.enterpriseUserId = reader.int64(); break; } - case 2: { + case 2: { message.status = reader.int32(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -99377,8 +102534,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ DeleteEnterpriseUserStatus.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -99391,21 +102547,27 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ DeleteEnterpriseUserStatus.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (!$util.isInteger(message.enterpriseUserId) && !(message.enterpriseUserId && $util.isInteger(message.enterpriseUserId.low) && $util.isInteger(message.enterpriseUserId.high))) - return "enterpriseUserId: integer|Long expected"; - if (message.status != null && message.hasOwnProperty("status")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.enterpriseUserId != null && message.hasOwnProperty('enterpriseUserId')) + if ( + !$util.isInteger(message.enterpriseUserId) && + !( + message.enterpriseUserId && + $util.isInteger(message.enterpriseUserId.low) && + $util.isInteger(message.enterpriseUserId.high) + ) + ) + return 'enterpriseUserId: integer|Long expected'; + if (message.status != null && message.hasOwnProperty('status')) switch (message.status) { - default: - return "status: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; + default: + return 'status: enum value expected'; + case 0: + case 1: + case 2: + case 3: + case 4: + break; } return null; }; @@ -99419,45 +102581,47 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.DeleteEnterpriseUserStatus} DeleteEnterpriseUserStatus */ DeleteEnterpriseUserStatus.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.DeleteEnterpriseUserStatus) - return object; + if (object instanceof $root.Enterprise.DeleteEnterpriseUserStatus) return object; let message = new $root.Enterprise.DeleteEnterpriseUserStatus(); if (object.enterpriseUserId != null) if ($util.Long) (message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId)).unsigned = false; - else if (typeof object.enterpriseUserId === "string") + else if (typeof object.enterpriseUserId === 'string') message.enterpriseUserId = parseInt(object.enterpriseUserId, 10); - else if (typeof object.enterpriseUserId === "number") + else if (typeof object.enterpriseUserId === 'number') message.enterpriseUserId = object.enterpriseUserId; - else if (typeof object.enterpriseUserId === "object") - message.enterpriseUserId = new $util.LongBits(object.enterpriseUserId.low >>> 0, object.enterpriseUserId.high >>> 0).toNumber(); + else if (typeof object.enterpriseUserId === 'object') + message.enterpriseUserId = new $util.LongBits( + object.enterpriseUserId.low >>> 0, + object.enterpriseUserId.high >>> 0 + ).toNumber(); switch (object.status) { - default: - if (typeof object.status === "number") { - message.status = object.status; + default: + if (typeof object.status === 'number') { + message.status = object.status; + break; + } + break; + case 'SUCCESS': + case 0: + message.status = 0; + break; + case 'NOT_AN_ENTERPRISE_USER': + case 1: + message.status = 1; + break; + case 'CANNOT_DELETE_SELF': + case 2: + message.status = 2; + break; + case 'BRIDGE_CANNOT_DELETE_ACTIVE_USER': + case 3: + message.status = 3; + break; + case 'ERROR': + case 4: + message.status = 4; break; - } - break; - case "SUCCESS": - case 0: - message.status = 0; - break; - case "NOT_AN_ENTERPRISE_USER": - case 1: - message.status = 1; - break; - case "CANNOT_DELETE_SELF": - case 2: - message.status = 2; - break; - case "BRIDGE_CANNOT_DELETE_ACTIVE_USER": - case 3: - message.status = 3; - break; - case "ERROR": - case 4: - message.status = 4; - break; } return message; }; @@ -99472,24 +102636,37 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ DeleteEnterpriseUserStatus.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.enterpriseUserId = options.longs === String ? "0" : 0; - object.status = options.enums === String ? "SUCCESS" : 0; - } - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (typeof message.enterpriseUserId === "number") - object.enterpriseUserId = options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; + object.enterpriseUserId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.enterpriseUserId = options.longs === String ? '0' : 0; + object.status = options.enums === String ? 'SUCCESS' : 0; + } + if (message.enterpriseUserId != null && message.hasOwnProperty('enterpriseUserId')) + if (typeof message.enterpriseUserId === 'number') + object.enterpriseUserId = + options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; else - object.enterpriseUserId = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseUserId) : options.longs === Number ? new $util.LongBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0).toNumber() : message.enterpriseUserId; - if (message.status != null && message.hasOwnProperty("status")) - object.status = options.enums === String ? $root.Enterprise.DeleteEnterpriseUsersResult[message.status] === undefined ? message.status : $root.Enterprise.DeleteEnterpriseUsersResult[message.status] : message.status; + object.enterpriseUserId = + options.longs === String + ? $util.Long.prototype.toString.call(message.enterpriseUserId) + : options.longs === Number + ? new $util.LongBits( + message.enterpriseUserId.low >>> 0, + message.enterpriseUserId.high >>> 0 + ).toNumber() + : message.enterpriseUserId; + if (message.status != null && message.hasOwnProperty('status')) + object.status = + options.enums === String + ? $root.Enterprise.DeleteEnterpriseUsersResult[message.status] === undefined + ? message.status + : $root.Enterprise.DeleteEnterpriseUsersResult[message.status] + : message.status; return object; }; @@ -99514,16 +102691,15 @@ export const Enterprise = $root.Enterprise = (() => { */ DeleteEnterpriseUserStatus.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.DeleteEnterpriseUserStatus"; + return typeUrlPrefix + '/Enterprise.DeleteEnterpriseUserStatus'; }; return DeleteEnterpriseUserStatus; })(); - Enterprise.DeleteEnterpriseUsersResponse = (function() { - + Enterprise.DeleteEnterpriseUsersResponse = (function () { /** * Properties of a DeleteEnterpriseUsersResponse. * @memberof Enterprise @@ -99543,8 +102719,7 @@ export const Enterprise = $root.Enterprise = (() => { this.deleteStatus = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -99577,11 +102752,13 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ DeleteEnterpriseUsersResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.deleteStatus != null && message.deleteStatus.length) for (let i = 0; i < message.deleteStatus.length; ++i) - $root.Enterprise.DeleteEnterpriseUserStatus.encode(message.deleteStatus[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.Enterprise.DeleteEnterpriseUserStatus.encode( + message.deleteStatus[i], + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); return writer; }; @@ -99610,21 +102787,22 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ DeleteEnterpriseUsersResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.DeleteEnterpriseUsersResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.DeleteEnterpriseUsersResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (!(message.deleteStatus && message.deleteStatus.length)) - message.deleteStatus = []; - message.deleteStatus.push($root.Enterprise.DeleteEnterpriseUserStatus.decode(reader, reader.uint32())); + case 1: { + if (!(message.deleteStatus && message.deleteStatus.length)) message.deleteStatus = []; + message.deleteStatus.push( + $root.Enterprise.DeleteEnterpriseUserStatus.decode(reader, reader.uint32()) + ); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -99641,8 +102819,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ DeleteEnterpriseUsersResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -99655,15 +102832,12 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ DeleteEnterpriseUsersResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.deleteStatus != null && message.hasOwnProperty("deleteStatus")) { - if (!Array.isArray(message.deleteStatus)) - return "deleteStatus: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.deleteStatus != null && message.hasOwnProperty('deleteStatus')) { + if (!Array.isArray(message.deleteStatus)) return 'deleteStatus: array expected'; for (let i = 0; i < message.deleteStatus.length; ++i) { let error = $root.Enterprise.DeleteEnterpriseUserStatus.verify(message.deleteStatus[i]); - if (error) - return "deleteStatus." + error; + if (error) return 'deleteStatus.' + error; } } return null; @@ -99678,17 +102852,18 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.DeleteEnterpriseUsersResponse} DeleteEnterpriseUsersResponse */ DeleteEnterpriseUsersResponse.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.DeleteEnterpriseUsersResponse) - return object; + if (object instanceof $root.Enterprise.DeleteEnterpriseUsersResponse) return object; let message = new $root.Enterprise.DeleteEnterpriseUsersResponse(); if (object.deleteStatus) { if (!Array.isArray(object.deleteStatus)) - throw TypeError(".Enterprise.DeleteEnterpriseUsersResponse.deleteStatus: array expected"); + throw TypeError('.Enterprise.DeleteEnterpriseUsersResponse.deleteStatus: array expected'); message.deleteStatus = []; for (let i = 0; i < object.deleteStatus.length; ++i) { - if (typeof object.deleteStatus[i] !== "object") - throw TypeError(".Enterprise.DeleteEnterpriseUsersResponse.deleteStatus: object expected"); - message.deleteStatus[i] = $root.Enterprise.DeleteEnterpriseUserStatus.fromObject(object.deleteStatus[i]); + if (typeof object.deleteStatus[i] !== 'object') + throw TypeError('.Enterprise.DeleteEnterpriseUsersResponse.deleteStatus: object expected'); + message.deleteStatus[i] = $root.Enterprise.DeleteEnterpriseUserStatus.fromObject( + object.deleteStatus[i] + ); } } return message; @@ -99704,15 +102879,16 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ DeleteEnterpriseUsersResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.deleteStatus = []; + if (options.arrays || options.defaults) object.deleteStatus = []; if (message.deleteStatus && message.deleteStatus.length) { object.deleteStatus = []; for (let j = 0; j < message.deleteStatus.length; ++j) - object.deleteStatus[j] = $root.Enterprise.DeleteEnterpriseUserStatus.toObject(message.deleteStatus[j], options); + object.deleteStatus[j] = $root.Enterprise.DeleteEnterpriseUserStatus.toObject( + message.deleteStatus[j], + options + ); } return object; }; @@ -99738,9 +102914,9 @@ export const Enterprise = $root.Enterprise = (() => { */ DeleteEnterpriseUsersResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.DeleteEnterpriseUsersResponse"; + return typeUrlPrefix + '/Enterprise.DeleteEnterpriseUsersResponse'; }; return DeleteEnterpriseUsersResponse; @@ -99754,16 +102930,16 @@ export const Enterprise = $root.Enterprise = (() => { * @property {number} FORCE_CLIENT_CHECK_FOR_MISSING_DATA=1 FORCE_CLIENT_CHECK_FOR_MISSING_DATA value * @property {number} FORCE_CLIENT_RESEND_SECURITY_DATA=2 FORCE_CLIENT_RESEND_SECURITY_DATA value */ - Enterprise.ClearSecurityDataType = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "RECALCULATE_SUMMARY_REPORT"] = 0; - values[valuesById[1] = "FORCE_CLIENT_CHECK_FOR_MISSING_DATA"] = 1; - values[valuesById[2] = "FORCE_CLIENT_RESEND_SECURITY_DATA"] = 2; + Enterprise.ClearSecurityDataType = (function () { + const valuesById = {}, + values = Object.create(valuesById); + values[(valuesById[0] = 'RECALCULATE_SUMMARY_REPORT')] = 0; + values[(valuesById[1] = 'FORCE_CLIENT_CHECK_FOR_MISSING_DATA')] = 1; + values[(valuesById[2] = 'FORCE_CLIENT_RESEND_SECURITY_DATA')] = 2; return values; })(); - Enterprise.ClearSecurityDataRequest = (function() { - + Enterprise.ClearSecurityDataRequest = (function () { /** * Properties of a ClearSecurityDataRequest. * @memberof Enterprise @@ -99785,8 +102961,7 @@ export const Enterprise = $root.Enterprise = (() => { this.enterpriseUserId = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -99835,18 +103010,16 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ ClearSecurityDataRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.enterpriseUserId != null && message.enterpriseUserId.length) { - writer.uint32(/* id 1, wireType 2 =*/10).fork(); - for (let i = 0; i < message.enterpriseUserId.length; ++i) - writer.int64(message.enterpriseUserId[i]); + writer.uint32(/* id 1, wireType 2 =*/ 10).fork(); + for (let i = 0; i < message.enterpriseUserId.length; ++i) writer.int64(message.enterpriseUserId[i]); writer.ldelim(); } - if (message.allUsers != null && Object.hasOwnProperty.call(message, "allUsers")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.allUsers); - if (message.type != null && Object.hasOwnProperty.call(message, "type")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.type); + if (message.allUsers != null && Object.hasOwnProperty.call(message, 'allUsers')) + writer.uint32(/* id 2, wireType 0 =*/ 16).bool(message.allUsers); + if (message.type != null && Object.hasOwnProperty.call(message, 'type')) + writer.uint32(/* id 3, wireType 0 =*/ 24).int32(message.type); return writer; }; @@ -99875,34 +103048,32 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ClearSecurityDataRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.ClearSecurityDataRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.ClearSecurityDataRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { if (!(message.enterpriseUserId && message.enterpriseUserId.length)) message.enterpriseUserId = []; if ((tag & 7) === 2) { let end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.enterpriseUserId.push(reader.int64()); - } else - message.enterpriseUserId.push(reader.int64()); + while (reader.pos < end2) message.enterpriseUserId.push(reader.int64()); + } else message.enterpriseUserId.push(reader.int64()); break; } - case 2: { + case 2: { message.allUsers = reader.bool(); break; } - case 3: { + case 3: { message.type = reader.int32(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -99919,8 +103090,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ClearSecurityDataRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -99933,26 +103103,30 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ ClearSecurityDataRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) { - if (!Array.isArray(message.enterpriseUserId)) - return "enterpriseUserId: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.enterpriseUserId != null && message.hasOwnProperty('enterpriseUserId')) { + if (!Array.isArray(message.enterpriseUserId)) return 'enterpriseUserId: array expected'; for (let i = 0; i < message.enterpriseUserId.length; ++i) - if (!$util.isInteger(message.enterpriseUserId[i]) && !(message.enterpriseUserId[i] && $util.isInteger(message.enterpriseUserId[i].low) && $util.isInteger(message.enterpriseUserId[i].high))) - return "enterpriseUserId: integer|Long[] expected"; - } - if (message.allUsers != null && message.hasOwnProperty("allUsers")) - if (typeof message.allUsers !== "boolean") - return "allUsers: boolean expected"; - if (message.type != null && message.hasOwnProperty("type")) + if ( + !$util.isInteger(message.enterpriseUserId[i]) && + !( + message.enterpriseUserId[i] && + $util.isInteger(message.enterpriseUserId[i].low) && + $util.isInteger(message.enterpriseUserId[i].high) + ) + ) + return 'enterpriseUserId: integer|Long[] expected'; + } + if (message.allUsers != null && message.hasOwnProperty('allUsers')) + if (typeof message.allUsers !== 'boolean') return 'allUsers: boolean expected'; + if (message.type != null && message.hasOwnProperty('type')) switch (message.type) { - default: - return "type: enum value expected"; - case 0: - case 1: - case 2: - break; + default: + return 'type: enum value expected'; + case 0: + case 1: + case 2: + break; } return null; }; @@ -99966,44 +103140,46 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.ClearSecurityDataRequest} ClearSecurityDataRequest */ ClearSecurityDataRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.ClearSecurityDataRequest) - return object; + if (object instanceof $root.Enterprise.ClearSecurityDataRequest) return object; let message = new $root.Enterprise.ClearSecurityDataRequest(); if (object.enterpriseUserId) { if (!Array.isArray(object.enterpriseUserId)) - throw TypeError(".Enterprise.ClearSecurityDataRequest.enterpriseUserId: array expected"); + throw TypeError('.Enterprise.ClearSecurityDataRequest.enterpriseUserId: array expected'); message.enterpriseUserId = []; for (let i = 0; i < object.enterpriseUserId.length; ++i) if ($util.Long) - (message.enterpriseUserId[i] = $util.Long.fromValue(object.enterpriseUserId[i])).unsigned = false; - else if (typeof object.enterpriseUserId[i] === "string") + (message.enterpriseUserId[i] = $util.Long.fromValue(object.enterpriseUserId[i])).unsigned = + false; + else if (typeof object.enterpriseUserId[i] === 'string') message.enterpriseUserId[i] = parseInt(object.enterpriseUserId[i], 10); - else if (typeof object.enterpriseUserId[i] === "number") + else if (typeof object.enterpriseUserId[i] === 'number') message.enterpriseUserId[i] = object.enterpriseUserId[i]; - else if (typeof object.enterpriseUserId[i] === "object") - message.enterpriseUserId[i] = new $util.LongBits(object.enterpriseUserId[i].low >>> 0, object.enterpriseUserId[i].high >>> 0).toNumber(); + else if (typeof object.enterpriseUserId[i] === 'object') + message.enterpriseUserId[i] = new $util.LongBits( + object.enterpriseUserId[i].low >>> 0, + object.enterpriseUserId[i].high >>> 0 + ).toNumber(); } - if (object.allUsers != null) - message.allUsers = Boolean(object.allUsers); + if (object.allUsers != null) message.allUsers = Boolean(object.allUsers); switch (object.type) { - default: - if (typeof object.type === "number") { - message.type = object.type; + default: + if (typeof object.type === 'number') { + message.type = object.type; + break; + } + break; + case 'RECALCULATE_SUMMARY_REPORT': + case 0: + message.type = 0; + break; + case 'FORCE_CLIENT_CHECK_FOR_MISSING_DATA': + case 1: + message.type = 1; + break; + case 'FORCE_CLIENT_RESEND_SECURITY_DATA': + case 2: + message.type = 2; break; - } - break; - case "RECALCULATE_SUMMARY_REPORT": - case 0: - message.type = 0; - break; - case "FORCE_CLIENT_CHECK_FOR_MISSING_DATA": - case 1: - message.type = 1; - break; - case "FORCE_CLIENT_RESEND_SECURITY_DATA": - case 2: - message.type = 2; - break; } return message; }; @@ -100018,27 +103194,40 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ ClearSecurityDataRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.enterpriseUserId = []; + if (options.arrays || options.defaults) object.enterpriseUserId = []; if (options.defaults) { object.allUsers = false; - object.type = options.enums === String ? "RECALCULATE_SUMMARY_REPORT" : 0; + object.type = options.enums === String ? 'RECALCULATE_SUMMARY_REPORT' : 0; } if (message.enterpriseUserId && message.enterpriseUserId.length) { object.enterpriseUserId = []; for (let j = 0; j < message.enterpriseUserId.length; ++j) - if (typeof message.enterpriseUserId[j] === "number") - object.enterpriseUserId[j] = options.longs === String ? String(message.enterpriseUserId[j]) : message.enterpriseUserId[j]; + if (typeof message.enterpriseUserId[j] === 'number') + object.enterpriseUserId[j] = + options.longs === String + ? String(message.enterpriseUserId[j]) + : message.enterpriseUserId[j]; else - object.enterpriseUserId[j] = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseUserId[j]) : options.longs === Number ? new $util.LongBits(message.enterpriseUserId[j].low >>> 0, message.enterpriseUserId[j].high >>> 0).toNumber() : message.enterpriseUserId[j]; + object.enterpriseUserId[j] = + options.longs === String + ? $util.Long.prototype.toString.call(message.enterpriseUserId[j]) + : options.longs === Number + ? new $util.LongBits( + message.enterpriseUserId[j].low >>> 0, + message.enterpriseUserId[j].high >>> 0 + ).toNumber() + : message.enterpriseUserId[j]; } - if (message.allUsers != null && message.hasOwnProperty("allUsers")) - object.allUsers = message.allUsers; - if (message.type != null && message.hasOwnProperty("type")) - object.type = options.enums === String ? $root.Enterprise.ClearSecurityDataType[message.type] === undefined ? message.type : $root.Enterprise.ClearSecurityDataType[message.type] : message.type; + if (message.allUsers != null && message.hasOwnProperty('allUsers')) object.allUsers = message.allUsers; + if (message.type != null && message.hasOwnProperty('type')) + object.type = + options.enums === String + ? $root.Enterprise.ClearSecurityDataType[message.type] === undefined + ? message.type + : $root.Enterprise.ClearSecurityDataType[message.type] + : message.type; return object; }; @@ -100063,16 +103252,15 @@ export const Enterprise = $root.Enterprise = (() => { */ ClearSecurityDataRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.ClearSecurityDataRequest"; + return typeUrlPrefix + '/Enterprise.ClearSecurityDataRequest'; }; return ClearSecurityDataRequest; })(); - Enterprise.RolesByTeam = (function() { - + Enterprise.RolesByTeam = (function () { /** * Properties of a RolesByTeam. * @memberof Enterprise @@ -100093,8 +103281,7 @@ export const Enterprise = $root.Enterprise = (() => { this.roleId = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -100135,14 +103322,12 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {$protobuf.Writer} Writer */ RolesByTeam.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.teamUid != null && Object.hasOwnProperty.call(message, "teamUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.teamUid); + if (!writer) writer = $Writer.create(); + if (message.teamUid != null && Object.hasOwnProperty.call(message, 'teamUid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.teamUid); if (message.roleId != null && message.roleId.length) { - writer.uint32(/* id 2, wireType 2 =*/18).fork(); - for (let i = 0; i < message.roleId.length; ++i) - writer.int64(message.roleId[i]); + writer.uint32(/* id 2, wireType 2 =*/ 18).fork(); + for (let i = 0; i < message.roleId.length; ++i) writer.int64(message.roleId[i]); writer.ldelim(); } return writer; @@ -100173,30 +103358,27 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RolesByTeam.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Enterprise.RolesByTeam(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Enterprise.RolesByTeam(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.teamUid = reader.bytes(); break; } - case 2: { - if (!(message.roleId && message.roleId.length)) - message.roleId = []; + case 2: { + if (!(message.roleId && message.roleId.length)) message.roleId = []; if ((tag & 7) === 2) { let end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.roleId.push(reader.int64()); - } else - message.roleId.push(reader.int64()); + while (reader.pos < end2) message.roleId.push(reader.int64()); + } else message.roleId.push(reader.int64()); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -100213,8 +103395,7 @@ export const Enterprise = $root.Enterprise = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RolesByTeam.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -100227,17 +103408,27 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ RolesByTeam.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.teamUid != null && message.hasOwnProperty("teamUid")) - if (!(message.teamUid && typeof message.teamUid.length === "number" || $util.isString(message.teamUid))) - return "teamUid: buffer expected"; - if (message.roleId != null && message.hasOwnProperty("roleId")) { - if (!Array.isArray(message.roleId)) - return "roleId: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.teamUid != null && message.hasOwnProperty('teamUid')) + if ( + !( + (message.teamUid && typeof message.teamUid.length === 'number') || + $util.isString(message.teamUid) + ) + ) + return 'teamUid: buffer expected'; + if (message.roleId != null && message.hasOwnProperty('roleId')) { + if (!Array.isArray(message.roleId)) return 'roleId: array expected'; for (let i = 0; i < message.roleId.length; ++i) - if (!$util.isInteger(message.roleId[i]) && !(message.roleId[i] && $util.isInteger(message.roleId[i].low) && $util.isInteger(message.roleId[i].high))) - return "roleId: integer|Long[] expected"; + if ( + !$util.isInteger(message.roleId[i]) && + !( + message.roleId[i] && + $util.isInteger(message.roleId[i].low) && + $util.isInteger(message.roleId[i].high) + ) + ) + return 'roleId: integer|Long[] expected'; } return null; }; @@ -100251,27 +103442,28 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Enterprise.RolesByTeam} RolesByTeam */ RolesByTeam.fromObject = function fromObject(object) { - if (object instanceof $root.Enterprise.RolesByTeam) - return object; + if (object instanceof $root.Enterprise.RolesByTeam) return object; let message = new $root.Enterprise.RolesByTeam(); if (object.teamUid != null) - if (typeof object.teamUid === "string") - $util.base64.decode(object.teamUid, message.teamUid = $util.newBuffer($util.base64.length(object.teamUid)), 0); - else if (object.teamUid.length >= 0) - message.teamUid = object.teamUid; + if (typeof object.teamUid === 'string') + $util.base64.decode( + object.teamUid, + (message.teamUid = $util.newBuffer($util.base64.length(object.teamUid))), + 0 + ); + else if (object.teamUid.length >= 0) message.teamUid = object.teamUid; if (object.roleId) { - if (!Array.isArray(object.roleId)) - throw TypeError(".Enterprise.RolesByTeam.roleId: array expected"); + if (!Array.isArray(object.roleId)) throw TypeError('.Enterprise.RolesByTeam.roleId: array expected'); message.roleId = []; for (let i = 0; i < object.roleId.length; ++i) - if ($util.Long) - (message.roleId[i] = $util.Long.fromValue(object.roleId[i])).unsigned = false; - else if (typeof object.roleId[i] === "string") - message.roleId[i] = parseInt(object.roleId[i], 10); - else if (typeof object.roleId[i] === "number") - message.roleId[i] = object.roleId[i]; - else if (typeof object.roleId[i] === "object") - message.roleId[i] = new $util.LongBits(object.roleId[i].low >>> 0, object.roleId[i].high >>> 0).toNumber(); + if ($util.Long) (message.roleId[i] = $util.Long.fromValue(object.roleId[i])).unsigned = false; + else if (typeof object.roleId[i] === 'string') message.roleId[i] = parseInt(object.roleId[i], 10); + else if (typeof object.roleId[i] === 'number') message.roleId[i] = object.roleId[i]; + else if (typeof object.roleId[i] === 'object') + message.roleId[i] = new $util.LongBits( + object.roleId[i].low >>> 0, + object.roleId[i].high >>> 0 + ).toNumber(); } return message; }; @@ -100286,28 +103478,37 @@ export const Enterprise = $root.Enterprise = (() => { * @returns {Object.} Plain object */ RolesByTeam.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.roleId = []; + if (options.arrays || options.defaults) object.roleId = []; if (options.defaults) - if (options.bytes === String) - object.teamUid = ""; + if (options.bytes === String) object.teamUid = ''; else { object.teamUid = []; - if (options.bytes !== Array) - object.teamUid = $util.newBuffer(object.teamUid); - } - if (message.teamUid != null && message.hasOwnProperty("teamUid")) - object.teamUid = options.bytes === String ? $util.base64.encode(message.teamUid, 0, message.teamUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.teamUid) : message.teamUid; + if (options.bytes !== Array) object.teamUid = $util.newBuffer(object.teamUid); + } + if (message.teamUid != null && message.hasOwnProperty('teamUid')) + object.teamUid = + options.bytes === String + ? $util.base64.encode(message.teamUid, 0, message.teamUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.teamUid) + : message.teamUid; if (message.roleId && message.roleId.length) { object.roleId = []; for (let j = 0; j < message.roleId.length; ++j) - if (typeof message.roleId[j] === "number") + if (typeof message.roleId[j] === 'number') object.roleId[j] = options.longs === String ? String(message.roleId[j]) : message.roleId[j]; else - object.roleId[j] = options.longs === String ? $util.Long.prototype.toString.call(message.roleId[j]) : options.longs === Number ? new $util.LongBits(message.roleId[j].low >>> 0, message.roleId[j].high >>> 0).toNumber() : message.roleId[j]; + object.roleId[j] = + options.longs === String + ? $util.Long.prototype.toString.call(message.roleId[j]) + : options.longs === Number + ? new $util.LongBits( + message.roleId[j].low >>> 0, + message.roleId[j].high >>> 0 + ).toNumber() + : message.roleId[j]; } return object; }; @@ -100333,19 +103534,18 @@ export const Enterprise = $root.Enterprise = (() => { */ RolesByTeam.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Enterprise.RolesByTeam"; + return typeUrlPrefix + '/Enterprise.RolesByTeam'; }; return RolesByTeam; })(); return Enterprise; -})(); - -export const AccountSummary = $root.AccountSummary = (() => { +})()); +export const AccountSummary = ($root.AccountSummary = (() => { /** * Namespace AccountSummary. * @exports AccountSummary @@ -100353,8 +103553,7 @@ export const AccountSummary = $root.AccountSummary = (() => { */ const AccountSummary = {}; - AccountSummary.AccountSummaryRequest = (function() { - + AccountSummary.AccountSummaryRequest = (function () { /** * Properties of an AccountSummaryRequest. * @memberof AccountSummary @@ -100374,8 +103573,7 @@ export const AccountSummary = $root.AccountSummary = (() => { function AccountSummaryRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -100416,12 +103614,11 @@ export const AccountSummary = $root.AccountSummary = (() => { * @returns {$protobuf.Writer} Writer */ AccountSummaryRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.summaryVersion != null && Object.hasOwnProperty.call(message, "summaryVersion")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.summaryVersion); - if (message.includeRecentActivity != null && Object.hasOwnProperty.call(message, "includeRecentActivity")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.includeRecentActivity); + if (!writer) writer = $Writer.create(); + if (message.summaryVersion != null && Object.hasOwnProperty.call(message, 'summaryVersion')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int32(message.summaryVersion); + if (message.includeRecentActivity != null && Object.hasOwnProperty.call(message, 'includeRecentActivity')) + writer.uint32(/* id 2, wireType 0 =*/ 16).bool(message.includeRecentActivity); return writer; }; @@ -100450,23 +103647,23 @@ export const AccountSummary = $root.AccountSummary = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ AccountSummaryRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.AccountSummary.AccountSummaryRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.AccountSummary.AccountSummaryRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.summaryVersion = reader.int32(); break; } - case 2: { + case 2: { message.includeRecentActivity = reader.bool(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -100483,8 +103680,7 @@ export const AccountSummary = $root.AccountSummary = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ AccountSummaryRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -100497,14 +103693,12 @@ export const AccountSummary = $root.AccountSummary = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ AccountSummaryRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.summaryVersion != null && message.hasOwnProperty("summaryVersion")) - if (!$util.isInteger(message.summaryVersion)) - return "summaryVersion: integer expected"; - if (message.includeRecentActivity != null && message.hasOwnProperty("includeRecentActivity")) - if (typeof message.includeRecentActivity !== "boolean") - return "includeRecentActivity: boolean expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.summaryVersion != null && message.hasOwnProperty('summaryVersion')) + if (!$util.isInteger(message.summaryVersion)) return 'summaryVersion: integer expected'; + if (message.includeRecentActivity != null && message.hasOwnProperty('includeRecentActivity')) + if (typeof message.includeRecentActivity !== 'boolean') + return 'includeRecentActivity: boolean expected'; return null; }; @@ -100517,11 +103711,9 @@ export const AccountSummary = $root.AccountSummary = (() => { * @returns {AccountSummary.AccountSummaryRequest} AccountSummaryRequest */ AccountSummaryRequest.fromObject = function fromObject(object) { - if (object instanceof $root.AccountSummary.AccountSummaryRequest) - return object; + if (object instanceof $root.AccountSummary.AccountSummaryRequest) return object; let message = new $root.AccountSummary.AccountSummaryRequest(); - if (object.summaryVersion != null) - message.summaryVersion = object.summaryVersion | 0; + if (object.summaryVersion != null) message.summaryVersion = object.summaryVersion | 0; if (object.includeRecentActivity != null) message.includeRecentActivity = Boolean(object.includeRecentActivity); return message; @@ -100537,16 +103729,15 @@ export const AccountSummary = $root.AccountSummary = (() => { * @returns {Object.} Plain object */ AccountSummaryRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { object.summaryVersion = 0; object.includeRecentActivity = false; } - if (message.summaryVersion != null && message.hasOwnProperty("summaryVersion")) + if (message.summaryVersion != null && message.hasOwnProperty('summaryVersion')) object.summaryVersion = message.summaryVersion; - if (message.includeRecentActivity != null && message.hasOwnProperty("includeRecentActivity")) + if (message.includeRecentActivity != null && message.hasOwnProperty('includeRecentActivity')) object.includeRecentActivity = message.includeRecentActivity; return object; }; @@ -100572,16 +103763,15 @@ export const AccountSummary = $root.AccountSummary = (() => { */ AccountSummaryRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/AccountSummary.AccountSummaryRequest"; + return typeUrlPrefix + '/AccountSummary.AccountSummaryRequest'; }; return AccountSummaryRequest; })(); - AccountSummary.AccountSummaryElements = (function() { - + AccountSummary.AccountSummaryElements = (function () { /** * Properties of an AccountSummaryElements. * @memberof AccountSummary @@ -100621,8 +103811,7 @@ export const AccountSummary = $root.AccountSummary = (() => { this.devices = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -100791,48 +103980,77 @@ export const AccountSummary = $root.AccountSummary = (() => { * @returns {$protobuf.Writer} Writer */ AccountSummaryElements.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.clientKey != null && Object.hasOwnProperty.call(message, "clientKey")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.clientKey); - if (message.settings != null && Object.hasOwnProperty.call(message, "settings")) - $root.AccountSummary.Settings.encode(message.settings, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.keysInfo != null && Object.hasOwnProperty.call(message, "keysInfo")) - $root.AccountSummary.KeysInfo.encode(message.keysInfo, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (!writer) writer = $Writer.create(); + if (message.clientKey != null && Object.hasOwnProperty.call(message, 'clientKey')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.clientKey); + if (message.settings != null && Object.hasOwnProperty.call(message, 'settings')) + $root.AccountSummary.Settings.encode( + message.settings, + writer.uint32(/* id 2, wireType 2 =*/ 18).fork() + ).ldelim(); + if (message.keysInfo != null && Object.hasOwnProperty.call(message, 'keysInfo')) + $root.AccountSummary.KeysInfo.encode( + message.keysInfo, + writer.uint32(/* id 3, wireType 2 =*/ 26).fork() + ).ldelim(); if (message.syncLogs != null && message.syncLogs.length) for (let i = 0; i < message.syncLogs.length; ++i) - $root.AccountSummary.SyncLog.encode(message.syncLogs[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.isEnterpriseAdmin != null && Object.hasOwnProperty.call(message, "isEnterpriseAdmin")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.isEnterpriseAdmin); - if (message.license != null && Object.hasOwnProperty.call(message, "license")) - $root.AccountSummary.License.encode(message.license, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.group != null && Object.hasOwnProperty.call(message, "group")) - $root.AccountSummary.Group.encode(message.group, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.Enforcements != null && Object.hasOwnProperty.call(message, "Enforcements")) - $root.AccountSummary.Enforcements.encode(message.Enforcements, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + $root.AccountSummary.SyncLog.encode( + message.syncLogs[i], + writer.uint32(/* id 4, wireType 2 =*/ 34).fork() + ).ldelim(); + if (message.isEnterpriseAdmin != null && Object.hasOwnProperty.call(message, 'isEnterpriseAdmin')) + writer.uint32(/* id 5, wireType 0 =*/ 40).bool(message.isEnterpriseAdmin); + if (message.license != null && Object.hasOwnProperty.call(message, 'license')) + $root.AccountSummary.License.encode( + message.license, + writer.uint32(/* id 6, wireType 2 =*/ 50).fork() + ).ldelim(); + if (message.group != null && Object.hasOwnProperty.call(message, 'group')) + $root.AccountSummary.Group.encode( + message.group, + writer.uint32(/* id 7, wireType 2 =*/ 58).fork() + ).ldelim(); + if (message.Enforcements != null && Object.hasOwnProperty.call(message, 'Enforcements')) + $root.AccountSummary.Enforcements.encode( + message.Enforcements, + writer.uint32(/* id 8, wireType 2 =*/ 66).fork() + ).ldelim(); if (message.Images != null && message.Images.length) for (let i = 0; i < message.Images.length; ++i) - $root.AccountSummary.KeyValue.encode(message.Images[i], writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); - if (message.personalLicense != null && Object.hasOwnProperty.call(message, "personalLicense")) - $root.AccountSummary.License.encode(message.personalLicense, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); - if (message.fixSharedFolderRecords != null && Object.hasOwnProperty.call(message, "fixSharedFolderRecords")) - writer.uint32(/* id 11, wireType 0 =*/88).bool(message.fixSharedFolderRecords); + $root.AccountSummary.KeyValue.encode( + message.Images[i], + writer.uint32(/* id 9, wireType 2 =*/ 74).fork() + ).ldelim(); + if (message.personalLicense != null && Object.hasOwnProperty.call(message, 'personalLicense')) + $root.AccountSummary.License.encode( + message.personalLicense, + writer.uint32(/* id 10, wireType 2 =*/ 82).fork() + ).ldelim(); + if (message.fixSharedFolderRecords != null && Object.hasOwnProperty.call(message, 'fixSharedFolderRecords')) + writer.uint32(/* id 11, wireType 0 =*/ 88).bool(message.fixSharedFolderRecords); if (message.usernames != null && message.usernames.length) for (let i = 0; i < message.usernames.length; ++i) - writer.uint32(/* id 12, wireType 2 =*/98).string(message.usernames[i]); + writer.uint32(/* id 12, wireType 2 =*/ 98).string(message.usernames[i]); if (message.devices != null && message.devices.length) for (let i = 0; i < message.devices.length; ++i) - $root.AccountSummary.DeviceInfo.encode(message.devices[i], writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); - if (message.isShareAdmin != null && Object.hasOwnProperty.call(message, "isShareAdmin")) - writer.uint32(/* id 14, wireType 0 =*/112).bool(message.isShareAdmin); - if (message.accountRecovery != null && Object.hasOwnProperty.call(message, "accountRecovery")) - writer.uint32(/* id 15, wireType 0 =*/120).bool(message.accountRecovery); - if (message.accountRecoveryPrompt != null && Object.hasOwnProperty.call(message, "accountRecoveryPrompt")) - writer.uint32(/* id 16, wireType 0 =*/128).bool(message.accountRecoveryPrompt); - if (message.minMasterPasswordLengthNoPrompt != null && Object.hasOwnProperty.call(message, "minMasterPasswordLengthNoPrompt")) - writer.uint32(/* id 17, wireType 0 =*/136).int32(message.minMasterPasswordLengthNoPrompt); - if (message.forbidKeyType2 != null && Object.hasOwnProperty.call(message, "forbidKeyType2")) - writer.uint32(/* id 18, wireType 0 =*/144).bool(message.forbidKeyType2); + $root.AccountSummary.DeviceInfo.encode( + message.devices[i], + writer.uint32(/* id 13, wireType 2 =*/ 106).fork() + ).ldelim(); + if (message.isShareAdmin != null && Object.hasOwnProperty.call(message, 'isShareAdmin')) + writer.uint32(/* id 14, wireType 0 =*/ 112).bool(message.isShareAdmin); + if (message.accountRecovery != null && Object.hasOwnProperty.call(message, 'accountRecovery')) + writer.uint32(/* id 15, wireType 0 =*/ 120).bool(message.accountRecovery); + if (message.accountRecoveryPrompt != null && Object.hasOwnProperty.call(message, 'accountRecoveryPrompt')) + writer.uint32(/* id 16, wireType 0 =*/ 128).bool(message.accountRecoveryPrompt); + if ( + message.minMasterPasswordLengthNoPrompt != null && + Object.hasOwnProperty.call(message, 'minMasterPasswordLengthNoPrompt') + ) + writer.uint32(/* id 17, wireType 0 =*/ 136).int32(message.minMasterPasswordLengthNoPrompt); + if (message.forbidKeyType2 != null && Object.hasOwnProperty.call(message, 'forbidKeyType2')) + writer.uint32(/* id 18, wireType 0 =*/ 144).bool(message.forbidKeyType2); return writer; }; @@ -100861,95 +104079,91 @@ export const AccountSummary = $root.AccountSummary = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ AccountSummaryElements.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.AccountSummary.AccountSummaryElements(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.AccountSummary.AccountSummaryElements(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.clientKey = reader.bytes(); break; } - case 2: { + case 2: { message.settings = $root.AccountSummary.Settings.decode(reader, reader.uint32()); break; } - case 3: { + case 3: { message.keysInfo = $root.AccountSummary.KeysInfo.decode(reader, reader.uint32()); break; } - case 4: { - if (!(message.syncLogs && message.syncLogs.length)) - message.syncLogs = []; + case 4: { + if (!(message.syncLogs && message.syncLogs.length)) message.syncLogs = []; message.syncLogs.push($root.AccountSummary.SyncLog.decode(reader, reader.uint32())); break; } - case 5: { + case 5: { message.isEnterpriseAdmin = reader.bool(); break; } - case 6: { + case 6: { message.license = $root.AccountSummary.License.decode(reader, reader.uint32()); break; } - case 7: { + case 7: { message.group = $root.AccountSummary.Group.decode(reader, reader.uint32()); break; } - case 8: { + case 8: { message.Enforcements = $root.AccountSummary.Enforcements.decode(reader, reader.uint32()); break; } - case 9: { - if (!(message.Images && message.Images.length)) - message.Images = []; + case 9: { + if (!(message.Images && message.Images.length)) message.Images = []; message.Images.push($root.AccountSummary.KeyValue.decode(reader, reader.uint32())); break; } - case 10: { + case 10: { message.personalLicense = $root.AccountSummary.License.decode(reader, reader.uint32()); break; } - case 11: { + case 11: { message.fixSharedFolderRecords = reader.bool(); break; } - case 12: { - if (!(message.usernames && message.usernames.length)) - message.usernames = []; + case 12: { + if (!(message.usernames && message.usernames.length)) message.usernames = []; message.usernames.push(reader.string()); break; } - case 13: { - if (!(message.devices && message.devices.length)) - message.devices = []; + case 13: { + if (!(message.devices && message.devices.length)) message.devices = []; message.devices.push($root.AccountSummary.DeviceInfo.decode(reader, reader.uint32())); break; } - case 14: { + case 14: { message.isShareAdmin = reader.bool(); break; } - case 15: { + case 15: { message.accountRecovery = reader.bool(); break; } - case 16: { + case 16: { message.accountRecoveryPrompt = reader.bool(); break; } - case 17: { + case 17: { message.minMasterPasswordLengthNoPrompt = reader.int32(); break; } - case 18: { + case 18: { message.forbidKeyType2 = reader.bool(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -100966,8 +104180,7 @@ export const AccountSummary = $root.AccountSummary = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ AccountSummaryElements.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -100980,96 +104193,85 @@ export const AccountSummary = $root.AccountSummary = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ AccountSummaryElements.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.clientKey != null && message.hasOwnProperty("clientKey")) - if (!(message.clientKey && typeof message.clientKey.length === "number" || $util.isString(message.clientKey))) - return "clientKey: buffer expected"; - if (message.settings != null && message.hasOwnProperty("settings")) { + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.clientKey != null && message.hasOwnProperty('clientKey')) + if ( + !( + (message.clientKey && typeof message.clientKey.length === 'number') || + $util.isString(message.clientKey) + ) + ) + return 'clientKey: buffer expected'; + if (message.settings != null && message.hasOwnProperty('settings')) { let error = $root.AccountSummary.Settings.verify(message.settings); - if (error) - return "settings." + error; + if (error) return 'settings.' + error; } - if (message.keysInfo != null && message.hasOwnProperty("keysInfo")) { + if (message.keysInfo != null && message.hasOwnProperty('keysInfo')) { let error = $root.AccountSummary.KeysInfo.verify(message.keysInfo); - if (error) - return "keysInfo." + error; + if (error) return 'keysInfo.' + error; } - if (message.syncLogs != null && message.hasOwnProperty("syncLogs")) { - if (!Array.isArray(message.syncLogs)) - return "syncLogs: array expected"; + if (message.syncLogs != null && message.hasOwnProperty('syncLogs')) { + if (!Array.isArray(message.syncLogs)) return 'syncLogs: array expected'; for (let i = 0; i < message.syncLogs.length; ++i) { let error = $root.AccountSummary.SyncLog.verify(message.syncLogs[i]); - if (error) - return "syncLogs." + error; + if (error) return 'syncLogs.' + error; } } - if (message.isEnterpriseAdmin != null && message.hasOwnProperty("isEnterpriseAdmin")) - if (typeof message.isEnterpriseAdmin !== "boolean") - return "isEnterpriseAdmin: boolean expected"; - if (message.license != null && message.hasOwnProperty("license")) { + if (message.isEnterpriseAdmin != null && message.hasOwnProperty('isEnterpriseAdmin')) + if (typeof message.isEnterpriseAdmin !== 'boolean') return 'isEnterpriseAdmin: boolean expected'; + if (message.license != null && message.hasOwnProperty('license')) { let error = $root.AccountSummary.License.verify(message.license); - if (error) - return "license." + error; + if (error) return 'license.' + error; } - if (message.group != null && message.hasOwnProperty("group")) { + if (message.group != null && message.hasOwnProperty('group')) { let error = $root.AccountSummary.Group.verify(message.group); - if (error) - return "group." + error; + if (error) return 'group.' + error; } - if (message.Enforcements != null && message.hasOwnProperty("Enforcements")) { + if (message.Enforcements != null && message.hasOwnProperty('Enforcements')) { let error = $root.AccountSummary.Enforcements.verify(message.Enforcements); - if (error) - return "Enforcements." + error; + if (error) return 'Enforcements.' + error; } - if (message.Images != null && message.hasOwnProperty("Images")) { - if (!Array.isArray(message.Images)) - return "Images: array expected"; + if (message.Images != null && message.hasOwnProperty('Images')) { + if (!Array.isArray(message.Images)) return 'Images: array expected'; for (let i = 0; i < message.Images.length; ++i) { let error = $root.AccountSummary.KeyValue.verify(message.Images[i]); - if (error) - return "Images." + error; + if (error) return 'Images.' + error; } } - if (message.personalLicense != null && message.hasOwnProperty("personalLicense")) { + if (message.personalLicense != null && message.hasOwnProperty('personalLicense')) { let error = $root.AccountSummary.License.verify(message.personalLicense); - if (error) - return "personalLicense." + error; - } - if (message.fixSharedFolderRecords != null && message.hasOwnProperty("fixSharedFolderRecords")) - if (typeof message.fixSharedFolderRecords !== "boolean") - return "fixSharedFolderRecords: boolean expected"; - if (message.usernames != null && message.hasOwnProperty("usernames")) { - if (!Array.isArray(message.usernames)) - return "usernames: array expected"; + if (error) return 'personalLicense.' + error; + } + if (message.fixSharedFolderRecords != null && message.hasOwnProperty('fixSharedFolderRecords')) + if (typeof message.fixSharedFolderRecords !== 'boolean') + return 'fixSharedFolderRecords: boolean expected'; + if (message.usernames != null && message.hasOwnProperty('usernames')) { + if (!Array.isArray(message.usernames)) return 'usernames: array expected'; for (let i = 0; i < message.usernames.length; ++i) - if (!$util.isString(message.usernames[i])) - return "usernames: string[] expected"; + if (!$util.isString(message.usernames[i])) return 'usernames: string[] expected'; } - if (message.devices != null && message.hasOwnProperty("devices")) { - if (!Array.isArray(message.devices)) - return "devices: array expected"; + if (message.devices != null && message.hasOwnProperty('devices')) { + if (!Array.isArray(message.devices)) return 'devices: array expected'; for (let i = 0; i < message.devices.length; ++i) { let error = $root.AccountSummary.DeviceInfo.verify(message.devices[i]); - if (error) - return "devices." + error; - } - } - if (message.isShareAdmin != null && message.hasOwnProperty("isShareAdmin")) - if (typeof message.isShareAdmin !== "boolean") - return "isShareAdmin: boolean expected"; - if (message.accountRecovery != null && message.hasOwnProperty("accountRecovery")) - if (typeof message.accountRecovery !== "boolean") - return "accountRecovery: boolean expected"; - if (message.accountRecoveryPrompt != null && message.hasOwnProperty("accountRecoveryPrompt")) - if (typeof message.accountRecoveryPrompt !== "boolean") - return "accountRecoveryPrompt: boolean expected"; - if (message.minMasterPasswordLengthNoPrompt != null && message.hasOwnProperty("minMasterPasswordLengthNoPrompt")) + if (error) return 'devices.' + error; + } + } + if (message.isShareAdmin != null && message.hasOwnProperty('isShareAdmin')) + if (typeof message.isShareAdmin !== 'boolean') return 'isShareAdmin: boolean expected'; + if (message.accountRecovery != null && message.hasOwnProperty('accountRecovery')) + if (typeof message.accountRecovery !== 'boolean') return 'accountRecovery: boolean expected'; + if (message.accountRecoveryPrompt != null && message.hasOwnProperty('accountRecoveryPrompt')) + if (typeof message.accountRecoveryPrompt !== 'boolean') + return 'accountRecoveryPrompt: boolean expected'; + if ( + message.minMasterPasswordLengthNoPrompt != null && + message.hasOwnProperty('minMasterPasswordLengthNoPrompt') + ) if (!$util.isInteger(message.minMasterPasswordLengthNoPrompt)) - return "minMasterPasswordLengthNoPrompt: integer expected"; - if (message.forbidKeyType2 != null && message.hasOwnProperty("forbidKeyType2")) - if (typeof message.forbidKeyType2 !== "boolean") - return "forbidKeyType2: boolean expected"; + return 'minMasterPasswordLengthNoPrompt: integer expected'; + if (message.forbidKeyType2 != null && message.hasOwnProperty('forbidKeyType2')) + if (typeof message.forbidKeyType2 !== 'boolean') return 'forbidKeyType2: boolean expected'; return null; }; @@ -101082,95 +104284,92 @@ export const AccountSummary = $root.AccountSummary = (() => { * @returns {AccountSummary.AccountSummaryElements} AccountSummaryElements */ AccountSummaryElements.fromObject = function fromObject(object) { - if (object instanceof $root.AccountSummary.AccountSummaryElements) - return object; + if (object instanceof $root.AccountSummary.AccountSummaryElements) return object; let message = new $root.AccountSummary.AccountSummaryElements(); if (object.clientKey != null) - if (typeof object.clientKey === "string") - $util.base64.decode(object.clientKey, message.clientKey = $util.newBuffer($util.base64.length(object.clientKey)), 0); - else if (object.clientKey.length >= 0) - message.clientKey = object.clientKey; + if (typeof object.clientKey === 'string') + $util.base64.decode( + object.clientKey, + (message.clientKey = $util.newBuffer($util.base64.length(object.clientKey))), + 0 + ); + else if (object.clientKey.length >= 0) message.clientKey = object.clientKey; if (object.settings != null) { - if (typeof object.settings !== "object") - throw TypeError(".AccountSummary.AccountSummaryElements.settings: object expected"); + if (typeof object.settings !== 'object') + throw TypeError('.AccountSummary.AccountSummaryElements.settings: object expected'); message.settings = $root.AccountSummary.Settings.fromObject(object.settings); } if (object.keysInfo != null) { - if (typeof object.keysInfo !== "object") - throw TypeError(".AccountSummary.AccountSummaryElements.keysInfo: object expected"); + if (typeof object.keysInfo !== 'object') + throw TypeError('.AccountSummary.AccountSummaryElements.keysInfo: object expected'); message.keysInfo = $root.AccountSummary.KeysInfo.fromObject(object.keysInfo); } if (object.syncLogs) { if (!Array.isArray(object.syncLogs)) - throw TypeError(".AccountSummary.AccountSummaryElements.syncLogs: array expected"); + throw TypeError('.AccountSummary.AccountSummaryElements.syncLogs: array expected'); message.syncLogs = []; for (let i = 0; i < object.syncLogs.length; ++i) { - if (typeof object.syncLogs[i] !== "object") - throw TypeError(".AccountSummary.AccountSummaryElements.syncLogs: object expected"); + if (typeof object.syncLogs[i] !== 'object') + throw TypeError('.AccountSummary.AccountSummaryElements.syncLogs: object expected'); message.syncLogs[i] = $root.AccountSummary.SyncLog.fromObject(object.syncLogs[i]); } } - if (object.isEnterpriseAdmin != null) - message.isEnterpriseAdmin = Boolean(object.isEnterpriseAdmin); + if (object.isEnterpriseAdmin != null) message.isEnterpriseAdmin = Boolean(object.isEnterpriseAdmin); if (object.license != null) { - if (typeof object.license !== "object") - throw TypeError(".AccountSummary.AccountSummaryElements.license: object expected"); + if (typeof object.license !== 'object') + throw TypeError('.AccountSummary.AccountSummaryElements.license: object expected'); message.license = $root.AccountSummary.License.fromObject(object.license); } if (object.group != null) { - if (typeof object.group !== "object") - throw TypeError(".AccountSummary.AccountSummaryElements.group: object expected"); + if (typeof object.group !== 'object') + throw TypeError('.AccountSummary.AccountSummaryElements.group: object expected'); message.group = $root.AccountSummary.Group.fromObject(object.group); } if (object.Enforcements != null) { - if (typeof object.Enforcements !== "object") - throw TypeError(".AccountSummary.AccountSummaryElements.Enforcements: object expected"); + if (typeof object.Enforcements !== 'object') + throw TypeError('.AccountSummary.AccountSummaryElements.Enforcements: object expected'); message.Enforcements = $root.AccountSummary.Enforcements.fromObject(object.Enforcements); } if (object.Images) { if (!Array.isArray(object.Images)) - throw TypeError(".AccountSummary.AccountSummaryElements.Images: array expected"); + throw TypeError('.AccountSummary.AccountSummaryElements.Images: array expected'); message.Images = []; for (let i = 0; i < object.Images.length; ++i) { - if (typeof object.Images[i] !== "object") - throw TypeError(".AccountSummary.AccountSummaryElements.Images: object expected"); + if (typeof object.Images[i] !== 'object') + throw TypeError('.AccountSummary.AccountSummaryElements.Images: object expected'); message.Images[i] = $root.AccountSummary.KeyValue.fromObject(object.Images[i]); } } if (object.personalLicense != null) { - if (typeof object.personalLicense !== "object") - throw TypeError(".AccountSummary.AccountSummaryElements.personalLicense: object expected"); + if (typeof object.personalLicense !== 'object') + throw TypeError('.AccountSummary.AccountSummaryElements.personalLicense: object expected'); message.personalLicense = $root.AccountSummary.License.fromObject(object.personalLicense); } if (object.fixSharedFolderRecords != null) message.fixSharedFolderRecords = Boolean(object.fixSharedFolderRecords); if (object.usernames) { if (!Array.isArray(object.usernames)) - throw TypeError(".AccountSummary.AccountSummaryElements.usernames: array expected"); + throw TypeError('.AccountSummary.AccountSummaryElements.usernames: array expected'); message.usernames = []; - for (let i = 0; i < object.usernames.length; ++i) - message.usernames[i] = String(object.usernames[i]); + for (let i = 0; i < object.usernames.length; ++i) message.usernames[i] = String(object.usernames[i]); } if (object.devices) { if (!Array.isArray(object.devices)) - throw TypeError(".AccountSummary.AccountSummaryElements.devices: array expected"); + throw TypeError('.AccountSummary.AccountSummaryElements.devices: array expected'); message.devices = []; for (let i = 0; i < object.devices.length; ++i) { - if (typeof object.devices[i] !== "object") - throw TypeError(".AccountSummary.AccountSummaryElements.devices: object expected"); + if (typeof object.devices[i] !== 'object') + throw TypeError('.AccountSummary.AccountSummaryElements.devices: object expected'); message.devices[i] = $root.AccountSummary.DeviceInfo.fromObject(object.devices[i]); } } - if (object.isShareAdmin != null) - message.isShareAdmin = Boolean(object.isShareAdmin); - if (object.accountRecovery != null) - message.accountRecovery = Boolean(object.accountRecovery); + if (object.isShareAdmin != null) message.isShareAdmin = Boolean(object.isShareAdmin); + if (object.accountRecovery != null) message.accountRecovery = Boolean(object.accountRecovery); if (object.accountRecoveryPrompt != null) message.accountRecoveryPrompt = Boolean(object.accountRecoveryPrompt); if (object.minMasterPasswordLengthNoPrompt != null) message.minMasterPasswordLengthNoPrompt = object.minMasterPasswordLengthNoPrompt | 0; - if (object.forbidKeyType2 != null) - message.forbidKeyType2 = Boolean(object.forbidKeyType2); + if (object.forbidKeyType2 != null) message.forbidKeyType2 = Boolean(object.forbidKeyType2); return message; }; @@ -101184,8 +104383,7 @@ export const AccountSummary = $root.AccountSummary = (() => { * @returns {Object.} Plain object */ AccountSummaryElements.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.arrays || options.defaults) { object.syncLogs = []; @@ -101194,12 +104392,10 @@ export const AccountSummary = $root.AccountSummary = (() => { object.devices = []; } if (options.defaults) { - if (options.bytes === String) - object.clientKey = ""; + if (options.bytes === String) object.clientKey = ''; else { object.clientKey = []; - if (options.bytes !== Array) - object.clientKey = $util.newBuffer(object.clientKey); + if (options.bytes !== Array) object.clientKey = $util.newBuffer(object.clientKey); } object.settings = null; object.keysInfo = null; @@ -101215,53 +104411,60 @@ export const AccountSummary = $root.AccountSummary = (() => { object.minMasterPasswordLengthNoPrompt = 0; object.forbidKeyType2 = false; } - if (message.clientKey != null && message.hasOwnProperty("clientKey")) - object.clientKey = options.bytes === String ? $util.base64.encode(message.clientKey, 0, message.clientKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.clientKey) : message.clientKey; - if (message.settings != null && message.hasOwnProperty("settings")) + if (message.clientKey != null && message.hasOwnProperty('clientKey')) + object.clientKey = + options.bytes === String + ? $util.base64.encode(message.clientKey, 0, message.clientKey.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.clientKey) + : message.clientKey; + if (message.settings != null && message.hasOwnProperty('settings')) object.settings = $root.AccountSummary.Settings.toObject(message.settings, options); - if (message.keysInfo != null && message.hasOwnProperty("keysInfo")) + if (message.keysInfo != null && message.hasOwnProperty('keysInfo')) object.keysInfo = $root.AccountSummary.KeysInfo.toObject(message.keysInfo, options); if (message.syncLogs && message.syncLogs.length) { object.syncLogs = []; for (let j = 0; j < message.syncLogs.length; ++j) object.syncLogs[j] = $root.AccountSummary.SyncLog.toObject(message.syncLogs[j], options); } - if (message.isEnterpriseAdmin != null && message.hasOwnProperty("isEnterpriseAdmin")) + if (message.isEnterpriseAdmin != null && message.hasOwnProperty('isEnterpriseAdmin')) object.isEnterpriseAdmin = message.isEnterpriseAdmin; - if (message.license != null && message.hasOwnProperty("license")) + if (message.license != null && message.hasOwnProperty('license')) object.license = $root.AccountSummary.License.toObject(message.license, options); - if (message.group != null && message.hasOwnProperty("group")) + if (message.group != null && message.hasOwnProperty('group')) object.group = $root.AccountSummary.Group.toObject(message.group, options); - if (message.Enforcements != null && message.hasOwnProperty("Enforcements")) + if (message.Enforcements != null && message.hasOwnProperty('Enforcements')) object.Enforcements = $root.AccountSummary.Enforcements.toObject(message.Enforcements, options); if (message.Images && message.Images.length) { object.Images = []; for (let j = 0; j < message.Images.length; ++j) object.Images[j] = $root.AccountSummary.KeyValue.toObject(message.Images[j], options); } - if (message.personalLicense != null && message.hasOwnProperty("personalLicense")) + if (message.personalLicense != null && message.hasOwnProperty('personalLicense')) object.personalLicense = $root.AccountSummary.License.toObject(message.personalLicense, options); - if (message.fixSharedFolderRecords != null && message.hasOwnProperty("fixSharedFolderRecords")) + if (message.fixSharedFolderRecords != null && message.hasOwnProperty('fixSharedFolderRecords')) object.fixSharedFolderRecords = message.fixSharedFolderRecords; if (message.usernames && message.usernames.length) { object.usernames = []; - for (let j = 0; j < message.usernames.length; ++j) - object.usernames[j] = message.usernames[j]; + for (let j = 0; j < message.usernames.length; ++j) object.usernames[j] = message.usernames[j]; } if (message.devices && message.devices.length) { object.devices = []; for (let j = 0; j < message.devices.length; ++j) object.devices[j] = $root.AccountSummary.DeviceInfo.toObject(message.devices[j], options); } - if (message.isShareAdmin != null && message.hasOwnProperty("isShareAdmin")) + if (message.isShareAdmin != null && message.hasOwnProperty('isShareAdmin')) object.isShareAdmin = message.isShareAdmin; - if (message.accountRecovery != null && message.hasOwnProperty("accountRecovery")) + if (message.accountRecovery != null && message.hasOwnProperty('accountRecovery')) object.accountRecovery = message.accountRecovery; - if (message.accountRecoveryPrompt != null && message.hasOwnProperty("accountRecoveryPrompt")) + if (message.accountRecoveryPrompt != null && message.hasOwnProperty('accountRecoveryPrompt')) object.accountRecoveryPrompt = message.accountRecoveryPrompt; - if (message.minMasterPasswordLengthNoPrompt != null && message.hasOwnProperty("minMasterPasswordLengthNoPrompt")) + if ( + message.minMasterPasswordLengthNoPrompt != null && + message.hasOwnProperty('minMasterPasswordLengthNoPrompt') + ) object.minMasterPasswordLengthNoPrompt = message.minMasterPasswordLengthNoPrompt; - if (message.forbidKeyType2 != null && message.hasOwnProperty("forbidKeyType2")) + if (message.forbidKeyType2 != null && message.hasOwnProperty('forbidKeyType2')) object.forbidKeyType2 = message.forbidKeyType2; return object; }; @@ -101287,16 +104490,15 @@ export const AccountSummary = $root.AccountSummary = (() => { */ AccountSummaryElements.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/AccountSummary.AccountSummaryElements"; + return typeUrlPrefix + '/AccountSummary.AccountSummaryElements'; }; return AccountSummaryElements; })(); - AccountSummary.DeviceInfo = (function() { - + AccountSummary.DeviceInfo = (function () { /** * Properties of a DeviceInfo. * @memberof AccountSummary @@ -101327,8 +104529,7 @@ export const AccountSummary = $root.AccountSummary = (() => { function DeviceInfo(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -101345,7 +104546,7 @@ export const AccountSummary = $root.AccountSummary = (() => { * @memberof AccountSummary.DeviceInfo * @instance */ - DeviceInfo.prototype.deviceName = ""; + DeviceInfo.prototype.deviceName = ''; /** * DeviceInfo deviceStatus. @@ -101377,7 +104578,7 @@ export const AccountSummary = $root.AccountSummary = (() => { * @memberof AccountSummary.DeviceInfo * @instance */ - DeviceInfo.prototype.clientVersion = ""; + DeviceInfo.prototype.clientVersion = ''; /** * DeviceInfo username. @@ -101385,7 +104586,7 @@ export const AccountSummary = $root.AccountSummary = (() => { * @memberof AccountSummary.DeviceInfo * @instance */ - DeviceInfo.prototype.username = ""; + DeviceInfo.prototype.username = ''; /** * DeviceInfo ipAddress. @@ -101393,7 +104594,7 @@ export const AccountSummary = $root.AccountSummary = (() => { * @memberof AccountSummary.DeviceInfo * @instance */ - DeviceInfo.prototype.ipAddress = ""; + DeviceInfo.prototype.ipAddress = ''; /** * DeviceInfo approveRequestTime. @@ -101401,7 +104602,7 @@ export const AccountSummary = $root.AccountSummary = (() => { * @memberof AccountSummary.DeviceInfo * @instance */ - DeviceInfo.prototype.approveRequestTime = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + DeviceInfo.prototype.approveRequestTime = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * DeviceInfo encryptedDataKeyPresent. @@ -101417,7 +104618,7 @@ export const AccountSummary = $root.AccountSummary = (() => { * @memberof AccountSummary.DeviceInfo * @instance */ - DeviceInfo.prototype.groupId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + DeviceInfo.prototype.groupId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * DeviceInfo devicePlatform. @@ -101425,7 +104626,7 @@ export const AccountSummary = $root.AccountSummary = (() => { * @memberof AccountSummary.DeviceInfo * @instance */ - DeviceInfo.prototype.devicePlatform = ""; + DeviceInfo.prototype.devicePlatform = ''; /** * DeviceInfo clientFormFactor. @@ -101457,34 +104658,39 @@ export const AccountSummary = $root.AccountSummary = (() => { * @returns {$protobuf.Writer} Writer */ DeviceInfo.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.encryptedDeviceToken != null && Object.hasOwnProperty.call(message, "encryptedDeviceToken")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.encryptedDeviceToken); - if (message.deviceName != null && Object.hasOwnProperty.call(message, "deviceName")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.deviceName); - if (message.deviceStatus != null && Object.hasOwnProperty.call(message, "deviceStatus")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.deviceStatus); - if (message.devicePublicKey != null && Object.hasOwnProperty.call(message, "devicePublicKey")) - writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.devicePublicKey); - if (message.encryptedDataKeyDoNotUse != null && Object.hasOwnProperty.call(message, "encryptedDataKeyDoNotUse")) - writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.encryptedDataKeyDoNotUse); - if (message.clientVersion != null && Object.hasOwnProperty.call(message, "clientVersion")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.clientVersion); - if (message.username != null && Object.hasOwnProperty.call(message, "username")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.username); - if (message.ipAddress != null && Object.hasOwnProperty.call(message, "ipAddress")) - writer.uint32(/* id 8, wireType 2 =*/66).string(message.ipAddress); - if (message.approveRequestTime != null && Object.hasOwnProperty.call(message, "approveRequestTime")) - writer.uint32(/* id 9, wireType 0 =*/72).int64(message.approveRequestTime); - if (message.encryptedDataKeyPresent != null && Object.hasOwnProperty.call(message, "encryptedDataKeyPresent")) - writer.uint32(/* id 10, wireType 0 =*/80).bool(message.encryptedDataKeyPresent); - if (message.groupId != null && Object.hasOwnProperty.call(message, "groupId")) - writer.uint32(/* id 11, wireType 0 =*/88).int64(message.groupId); - if (message.devicePlatform != null && Object.hasOwnProperty.call(message, "devicePlatform")) - writer.uint32(/* id 12, wireType 2 =*/98).string(message.devicePlatform); - if (message.clientFormFactor != null && Object.hasOwnProperty.call(message, "clientFormFactor")) - writer.uint32(/* id 13, wireType 0 =*/104).int32(message.clientFormFactor); + if (!writer) writer = $Writer.create(); + if (message.encryptedDeviceToken != null && Object.hasOwnProperty.call(message, 'encryptedDeviceToken')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.encryptedDeviceToken); + if (message.deviceName != null && Object.hasOwnProperty.call(message, 'deviceName')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.deviceName); + if (message.deviceStatus != null && Object.hasOwnProperty.call(message, 'deviceStatus')) + writer.uint32(/* id 3, wireType 0 =*/ 24).int32(message.deviceStatus); + if (message.devicePublicKey != null && Object.hasOwnProperty.call(message, 'devicePublicKey')) + writer.uint32(/* id 4, wireType 2 =*/ 34).bytes(message.devicePublicKey); + if ( + message.encryptedDataKeyDoNotUse != null && + Object.hasOwnProperty.call(message, 'encryptedDataKeyDoNotUse') + ) + writer.uint32(/* id 5, wireType 2 =*/ 42).bytes(message.encryptedDataKeyDoNotUse); + if (message.clientVersion != null && Object.hasOwnProperty.call(message, 'clientVersion')) + writer.uint32(/* id 6, wireType 2 =*/ 50).string(message.clientVersion); + if (message.username != null && Object.hasOwnProperty.call(message, 'username')) + writer.uint32(/* id 7, wireType 2 =*/ 58).string(message.username); + if (message.ipAddress != null && Object.hasOwnProperty.call(message, 'ipAddress')) + writer.uint32(/* id 8, wireType 2 =*/ 66).string(message.ipAddress); + if (message.approveRequestTime != null && Object.hasOwnProperty.call(message, 'approveRequestTime')) + writer.uint32(/* id 9, wireType 0 =*/ 72).int64(message.approveRequestTime); + if ( + message.encryptedDataKeyPresent != null && + Object.hasOwnProperty.call(message, 'encryptedDataKeyPresent') + ) + writer.uint32(/* id 10, wireType 0 =*/ 80).bool(message.encryptedDataKeyPresent); + if (message.groupId != null && Object.hasOwnProperty.call(message, 'groupId')) + writer.uint32(/* id 11, wireType 0 =*/ 88).int64(message.groupId); + if (message.devicePlatform != null && Object.hasOwnProperty.call(message, 'devicePlatform')) + writer.uint32(/* id 12, wireType 2 =*/ 98).string(message.devicePlatform); + if (message.clientFormFactor != null && Object.hasOwnProperty.call(message, 'clientFormFactor')) + writer.uint32(/* id 13, wireType 0 =*/ 104).int32(message.clientFormFactor); return writer; }; @@ -101513,67 +104719,67 @@ export const AccountSummary = $root.AccountSummary = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ DeviceInfo.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.AccountSummary.DeviceInfo(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.AccountSummary.DeviceInfo(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.encryptedDeviceToken = reader.bytes(); break; } - case 2: { + case 2: { message.deviceName = reader.string(); break; } - case 3: { + case 3: { message.deviceStatus = reader.int32(); break; } - case 4: { + case 4: { message.devicePublicKey = reader.bytes(); break; } - case 5: { + case 5: { message.encryptedDataKeyDoNotUse = reader.bytes(); break; } - case 6: { + case 6: { message.clientVersion = reader.string(); break; } - case 7: { + case 7: { message.username = reader.string(); break; } - case 8: { + case 8: { message.ipAddress = reader.string(); break; } - case 9: { + case 9: { message.approveRequestTime = reader.int64(); break; } - case 10: { + case 10: { message.encryptedDataKeyPresent = reader.bool(); break; } - case 11: { + case 11: { message.groupId = reader.int64(); break; } - case 12: { + case 12: { message.devicePlatform = reader.string(); break; } - case 13: { + case 13: { message.clientFormFactor = reader.int32(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -101590,8 +104796,7 @@ export const AccountSummary = $root.AccountSummary = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ DeviceInfo.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -101604,60 +104809,80 @@ export const AccountSummary = $root.AccountSummary = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ DeviceInfo.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.encryptedDeviceToken != null && message.hasOwnProperty("encryptedDeviceToken")) - if (!(message.encryptedDeviceToken && typeof message.encryptedDeviceToken.length === "number" || $util.isString(message.encryptedDeviceToken))) - return "encryptedDeviceToken: buffer expected"; - if (message.deviceName != null && message.hasOwnProperty("deviceName")) - if (!$util.isString(message.deviceName)) - return "deviceName: string expected"; - if (message.deviceStatus != null && message.hasOwnProperty("deviceStatus")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.encryptedDeviceToken != null && message.hasOwnProperty('encryptedDeviceToken')) + if ( + !( + (message.encryptedDeviceToken && typeof message.encryptedDeviceToken.length === 'number') || + $util.isString(message.encryptedDeviceToken) + ) + ) + return 'encryptedDeviceToken: buffer expected'; + if (message.deviceName != null && message.hasOwnProperty('deviceName')) + if (!$util.isString(message.deviceName)) return 'deviceName: string expected'; + if (message.deviceStatus != null && message.hasOwnProperty('deviceStatus')) switch (message.deviceStatus) { - default: - return "deviceStatus: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; + default: + return 'deviceStatus: enum value expected'; + case 0: + case 1: + case 2: + case 3: + break; } - if (message.devicePublicKey != null && message.hasOwnProperty("devicePublicKey")) - if (!(message.devicePublicKey && typeof message.devicePublicKey.length === "number" || $util.isString(message.devicePublicKey))) - return "devicePublicKey: buffer expected"; - if (message.encryptedDataKeyDoNotUse != null && message.hasOwnProperty("encryptedDataKeyDoNotUse")) - if (!(message.encryptedDataKeyDoNotUse && typeof message.encryptedDataKeyDoNotUse.length === "number" || $util.isString(message.encryptedDataKeyDoNotUse))) - return "encryptedDataKeyDoNotUse: buffer expected"; - if (message.clientVersion != null && message.hasOwnProperty("clientVersion")) - if (!$util.isString(message.clientVersion)) - return "clientVersion: string expected"; - if (message.username != null && message.hasOwnProperty("username")) - if (!$util.isString(message.username)) - return "username: string expected"; - if (message.ipAddress != null && message.hasOwnProperty("ipAddress")) - if (!$util.isString(message.ipAddress)) - return "ipAddress: string expected"; - if (message.approveRequestTime != null && message.hasOwnProperty("approveRequestTime")) - if (!$util.isInteger(message.approveRequestTime) && !(message.approveRequestTime && $util.isInteger(message.approveRequestTime.low) && $util.isInteger(message.approveRequestTime.high))) - return "approveRequestTime: integer|Long expected"; - if (message.encryptedDataKeyPresent != null && message.hasOwnProperty("encryptedDataKeyPresent")) - if (typeof message.encryptedDataKeyPresent !== "boolean") - return "encryptedDataKeyPresent: boolean expected"; - if (message.groupId != null && message.hasOwnProperty("groupId")) - if (!$util.isInteger(message.groupId) && !(message.groupId && $util.isInteger(message.groupId.low) && $util.isInteger(message.groupId.high))) - return "groupId: integer|Long expected"; - if (message.devicePlatform != null && message.hasOwnProperty("devicePlatform")) - if (!$util.isString(message.devicePlatform)) - return "devicePlatform: string expected"; - if (message.clientFormFactor != null && message.hasOwnProperty("clientFormFactor")) + if (message.devicePublicKey != null && message.hasOwnProperty('devicePublicKey')) + if ( + !( + (message.devicePublicKey && typeof message.devicePublicKey.length === 'number') || + $util.isString(message.devicePublicKey) + ) + ) + return 'devicePublicKey: buffer expected'; + if (message.encryptedDataKeyDoNotUse != null && message.hasOwnProperty('encryptedDataKeyDoNotUse')) + if ( + !( + (message.encryptedDataKeyDoNotUse && + typeof message.encryptedDataKeyDoNotUse.length === 'number') || + $util.isString(message.encryptedDataKeyDoNotUse) + ) + ) + return 'encryptedDataKeyDoNotUse: buffer expected'; + if (message.clientVersion != null && message.hasOwnProperty('clientVersion')) + if (!$util.isString(message.clientVersion)) return 'clientVersion: string expected'; + if (message.username != null && message.hasOwnProperty('username')) + if (!$util.isString(message.username)) return 'username: string expected'; + if (message.ipAddress != null && message.hasOwnProperty('ipAddress')) + if (!$util.isString(message.ipAddress)) return 'ipAddress: string expected'; + if (message.approveRequestTime != null && message.hasOwnProperty('approveRequestTime')) + if ( + !$util.isInteger(message.approveRequestTime) && + !( + message.approveRequestTime && + $util.isInteger(message.approveRequestTime.low) && + $util.isInteger(message.approveRequestTime.high) + ) + ) + return 'approveRequestTime: integer|Long expected'; + if (message.encryptedDataKeyPresent != null && message.hasOwnProperty('encryptedDataKeyPresent')) + if (typeof message.encryptedDataKeyPresent !== 'boolean') + return 'encryptedDataKeyPresent: boolean expected'; + if (message.groupId != null && message.hasOwnProperty('groupId')) + if ( + !$util.isInteger(message.groupId) && + !(message.groupId && $util.isInteger(message.groupId.low) && $util.isInteger(message.groupId.high)) + ) + return 'groupId: integer|Long expected'; + if (message.devicePlatform != null && message.hasOwnProperty('devicePlatform')) + if (!$util.isString(message.devicePlatform)) return 'devicePlatform: string expected'; + if (message.clientFormFactor != null && message.hasOwnProperty('clientFormFactor')) switch (message.clientFormFactor) { - default: - return "clientFormFactor: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; + default: + return 'clientFormFactor: enum value expected'; + case 0: + case 1: + case 2: + case 3: + break; } return null; }; @@ -101671,101 +104896,113 @@ export const AccountSummary = $root.AccountSummary = (() => { * @returns {AccountSummary.DeviceInfo} DeviceInfo */ DeviceInfo.fromObject = function fromObject(object) { - if (object instanceof $root.AccountSummary.DeviceInfo) - return object; + if (object instanceof $root.AccountSummary.DeviceInfo) return object; let message = new $root.AccountSummary.DeviceInfo(); if (object.encryptedDeviceToken != null) - if (typeof object.encryptedDeviceToken === "string") - $util.base64.decode(object.encryptedDeviceToken, message.encryptedDeviceToken = $util.newBuffer($util.base64.length(object.encryptedDeviceToken)), 0); + if (typeof object.encryptedDeviceToken === 'string') + $util.base64.decode( + object.encryptedDeviceToken, + (message.encryptedDeviceToken = $util.newBuffer( + $util.base64.length(object.encryptedDeviceToken) + )), + 0 + ); else if (object.encryptedDeviceToken.length >= 0) message.encryptedDeviceToken = object.encryptedDeviceToken; - if (object.deviceName != null) - message.deviceName = String(object.deviceName); + if (object.deviceName != null) message.deviceName = String(object.deviceName); switch (object.deviceStatus) { - default: - if (typeof object.deviceStatus === "number") { - message.deviceStatus = object.deviceStatus; - break; - } - break; - case "DEVICE_NEEDS_APPROVAL": - case 0: - message.deviceStatus = 0; - break; - case "DEVICE_OK": - case 1: - message.deviceStatus = 1; - break; - case "DEVICE_DISABLED_BY_USER": - case 2: - message.deviceStatus = 2; - break; - case "DEVICE_LOCKED_BY_ADMIN": - case 3: - message.deviceStatus = 3; - break; + default: + if (typeof object.deviceStatus === 'number') { + message.deviceStatus = object.deviceStatus; + break; + } + break; + case 'DEVICE_NEEDS_APPROVAL': + case 0: + message.deviceStatus = 0; + break; + case 'DEVICE_OK': + case 1: + message.deviceStatus = 1; + break; + case 'DEVICE_DISABLED_BY_USER': + case 2: + message.deviceStatus = 2; + break; + case 'DEVICE_LOCKED_BY_ADMIN': + case 3: + message.deviceStatus = 3; + break; } if (object.devicePublicKey != null) - if (typeof object.devicePublicKey === "string") - $util.base64.decode(object.devicePublicKey, message.devicePublicKey = $util.newBuffer($util.base64.length(object.devicePublicKey)), 0); - else if (object.devicePublicKey.length >= 0) - message.devicePublicKey = object.devicePublicKey; + if (typeof object.devicePublicKey === 'string') + $util.base64.decode( + object.devicePublicKey, + (message.devicePublicKey = $util.newBuffer($util.base64.length(object.devicePublicKey))), + 0 + ); + else if (object.devicePublicKey.length >= 0) message.devicePublicKey = object.devicePublicKey; if (object.encryptedDataKeyDoNotUse != null) - if (typeof object.encryptedDataKeyDoNotUse === "string") - $util.base64.decode(object.encryptedDataKeyDoNotUse, message.encryptedDataKeyDoNotUse = $util.newBuffer($util.base64.length(object.encryptedDataKeyDoNotUse)), 0); + if (typeof object.encryptedDataKeyDoNotUse === 'string') + $util.base64.decode( + object.encryptedDataKeyDoNotUse, + (message.encryptedDataKeyDoNotUse = $util.newBuffer( + $util.base64.length(object.encryptedDataKeyDoNotUse) + )), + 0 + ); else if (object.encryptedDataKeyDoNotUse.length >= 0) message.encryptedDataKeyDoNotUse = object.encryptedDataKeyDoNotUse; - if (object.clientVersion != null) - message.clientVersion = String(object.clientVersion); - if (object.username != null) - message.username = String(object.username); - if (object.ipAddress != null) - message.ipAddress = String(object.ipAddress); + if (object.clientVersion != null) message.clientVersion = String(object.clientVersion); + if (object.username != null) message.username = String(object.username); + if (object.ipAddress != null) message.ipAddress = String(object.ipAddress); if (object.approveRequestTime != null) if ($util.Long) (message.approveRequestTime = $util.Long.fromValue(object.approveRequestTime)).unsigned = false; - else if (typeof object.approveRequestTime === "string") + else if (typeof object.approveRequestTime === 'string') message.approveRequestTime = parseInt(object.approveRequestTime, 10); - else if (typeof object.approveRequestTime === "number") + else if (typeof object.approveRequestTime === 'number') message.approveRequestTime = object.approveRequestTime; - else if (typeof object.approveRequestTime === "object") - message.approveRequestTime = new $util.LongBits(object.approveRequestTime.low >>> 0, object.approveRequestTime.high >>> 0).toNumber(); + else if (typeof object.approveRequestTime === 'object') + message.approveRequestTime = new $util.LongBits( + object.approveRequestTime.low >>> 0, + object.approveRequestTime.high >>> 0 + ).toNumber(); if (object.encryptedDataKeyPresent != null) message.encryptedDataKeyPresent = Boolean(object.encryptedDataKeyPresent); if (object.groupId != null) - if ($util.Long) - (message.groupId = $util.Long.fromValue(object.groupId)).unsigned = false; - else if (typeof object.groupId === "string") - message.groupId = parseInt(object.groupId, 10); - else if (typeof object.groupId === "number") - message.groupId = object.groupId; - else if (typeof object.groupId === "object") - message.groupId = new $util.LongBits(object.groupId.low >>> 0, object.groupId.high >>> 0).toNumber(); - if (object.devicePlatform != null) - message.devicePlatform = String(object.devicePlatform); + if ($util.Long) (message.groupId = $util.Long.fromValue(object.groupId)).unsigned = false; + else if (typeof object.groupId === 'string') message.groupId = parseInt(object.groupId, 10); + else if (typeof object.groupId === 'number') message.groupId = object.groupId; + else if (typeof object.groupId === 'object') + message.groupId = new $util.LongBits( + object.groupId.low >>> 0, + object.groupId.high >>> 0 + ).toNumber(); + if (object.devicePlatform != null) message.devicePlatform = String(object.devicePlatform); switch (object.clientFormFactor) { - default: - if (typeof object.clientFormFactor === "number") { - message.clientFormFactor = object.clientFormFactor; + default: + if (typeof object.clientFormFactor === 'number') { + message.clientFormFactor = object.clientFormFactor; + break; + } + break; + case 'FF_EMPTY': + case 0: + message.clientFormFactor = 0; + break; + case 'FF_PHONE': + case 1: + message.clientFormFactor = 1; + break; + case 'FF_TABLET': + case 2: + message.clientFormFactor = 2; + break; + case 'FF_WATCH': + case 3: + message.clientFormFactor = 3; break; - } - break; - case "FF_EMPTY": - case 0: - message.clientFormFactor = 0; - break; - case "FF_PHONE": - case 1: - message.clientFormFactor = 1; - break; - case "FF_TABLET": - case 2: - message.clientFormFactor = 2; - break; - case "FF_WATCH": - case 3: - message.clientFormFactor = 3; - break; } return message; }; @@ -101780,82 +105017,118 @@ export const AccountSummary = $root.AccountSummary = (() => { * @returns {Object.} Plain object */ DeviceInfo.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.encryptedDeviceToken = ""; + if (options.bytes === String) object.encryptedDeviceToken = ''; else { object.encryptedDeviceToken = []; if (options.bytes !== Array) object.encryptedDeviceToken = $util.newBuffer(object.encryptedDeviceToken); } - object.deviceName = ""; - object.deviceStatus = options.enums === String ? "DEVICE_NEEDS_APPROVAL" : 0; - if (options.bytes === String) - object.devicePublicKey = ""; + object.deviceName = ''; + object.deviceStatus = options.enums === String ? 'DEVICE_NEEDS_APPROVAL' : 0; + if (options.bytes === String) object.devicePublicKey = ''; else { object.devicePublicKey = []; - if (options.bytes !== Array) - object.devicePublicKey = $util.newBuffer(object.devicePublicKey); + if (options.bytes !== Array) object.devicePublicKey = $util.newBuffer(object.devicePublicKey); } - if (options.bytes === String) - object.encryptedDataKeyDoNotUse = ""; + if (options.bytes === String) object.encryptedDataKeyDoNotUse = ''; else { object.encryptedDataKeyDoNotUse = []; if (options.bytes !== Array) object.encryptedDataKeyDoNotUse = $util.newBuffer(object.encryptedDataKeyDoNotUse); } - object.clientVersion = ""; - object.username = ""; - object.ipAddress = ""; + object.clientVersion = ''; + object.username = ''; + object.ipAddress = ''; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.approveRequestTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.approveRequestTime = options.longs === String ? "0" : 0; + object.approveRequestTime = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.approveRequestTime = options.longs === String ? '0' : 0; object.encryptedDataKeyPresent = false; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.groupId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.groupId = options.longs === String ? "0" : 0; - object.devicePlatform = ""; - object.clientFormFactor = options.enums === String ? "FF_EMPTY" : 0; - } - if (message.encryptedDeviceToken != null && message.hasOwnProperty("encryptedDeviceToken")) - object.encryptedDeviceToken = options.bytes === String ? $util.base64.encode(message.encryptedDeviceToken, 0, message.encryptedDeviceToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedDeviceToken) : message.encryptedDeviceToken; - if (message.deviceName != null && message.hasOwnProperty("deviceName")) + object.groupId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.groupId = options.longs === String ? '0' : 0; + object.devicePlatform = ''; + object.clientFormFactor = options.enums === String ? 'FF_EMPTY' : 0; + } + if (message.encryptedDeviceToken != null && message.hasOwnProperty('encryptedDeviceToken')) + object.encryptedDeviceToken = + options.bytes === String + ? $util.base64.encode(message.encryptedDeviceToken, 0, message.encryptedDeviceToken.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.encryptedDeviceToken) + : message.encryptedDeviceToken; + if (message.deviceName != null && message.hasOwnProperty('deviceName')) object.deviceName = message.deviceName; - if (message.deviceStatus != null && message.hasOwnProperty("deviceStatus")) - object.deviceStatus = options.enums === String ? $root.Authentication.DeviceStatus[message.deviceStatus] === undefined ? message.deviceStatus : $root.Authentication.DeviceStatus[message.deviceStatus] : message.deviceStatus; - if (message.devicePublicKey != null && message.hasOwnProperty("devicePublicKey")) - object.devicePublicKey = options.bytes === String ? $util.base64.encode(message.devicePublicKey, 0, message.devicePublicKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.devicePublicKey) : message.devicePublicKey; - if (message.encryptedDataKeyDoNotUse != null && message.hasOwnProperty("encryptedDataKeyDoNotUse")) - object.encryptedDataKeyDoNotUse = options.bytes === String ? $util.base64.encode(message.encryptedDataKeyDoNotUse, 0, message.encryptedDataKeyDoNotUse.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedDataKeyDoNotUse) : message.encryptedDataKeyDoNotUse; - if (message.clientVersion != null && message.hasOwnProperty("clientVersion")) + if (message.deviceStatus != null && message.hasOwnProperty('deviceStatus')) + object.deviceStatus = + options.enums === String + ? $root.Authentication.DeviceStatus[message.deviceStatus] === undefined + ? message.deviceStatus + : $root.Authentication.DeviceStatus[message.deviceStatus] + : message.deviceStatus; + if (message.devicePublicKey != null && message.hasOwnProperty('devicePublicKey')) + object.devicePublicKey = + options.bytes === String + ? $util.base64.encode(message.devicePublicKey, 0, message.devicePublicKey.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.devicePublicKey) + : message.devicePublicKey; + if (message.encryptedDataKeyDoNotUse != null && message.hasOwnProperty('encryptedDataKeyDoNotUse')) + object.encryptedDataKeyDoNotUse = + options.bytes === String + ? $util.base64.encode( + message.encryptedDataKeyDoNotUse, + 0, + message.encryptedDataKeyDoNotUse.length + ) + : options.bytes === Array + ? Array.prototype.slice.call(message.encryptedDataKeyDoNotUse) + : message.encryptedDataKeyDoNotUse; + if (message.clientVersion != null && message.hasOwnProperty('clientVersion')) object.clientVersion = message.clientVersion; - if (message.username != null && message.hasOwnProperty("username")) - object.username = message.username; - if (message.ipAddress != null && message.hasOwnProperty("ipAddress")) - object.ipAddress = message.ipAddress; - if (message.approveRequestTime != null && message.hasOwnProperty("approveRequestTime")) - if (typeof message.approveRequestTime === "number") - object.approveRequestTime = options.longs === String ? String(message.approveRequestTime) : message.approveRequestTime; + if (message.username != null && message.hasOwnProperty('username')) object.username = message.username; + if (message.ipAddress != null && message.hasOwnProperty('ipAddress')) object.ipAddress = message.ipAddress; + if (message.approveRequestTime != null && message.hasOwnProperty('approveRequestTime')) + if (typeof message.approveRequestTime === 'number') + object.approveRequestTime = + options.longs === String ? String(message.approveRequestTime) : message.approveRequestTime; else - object.approveRequestTime = options.longs === String ? $util.Long.prototype.toString.call(message.approveRequestTime) : options.longs === Number ? new $util.LongBits(message.approveRequestTime.low >>> 0, message.approveRequestTime.high >>> 0).toNumber() : message.approveRequestTime; - if (message.encryptedDataKeyPresent != null && message.hasOwnProperty("encryptedDataKeyPresent")) + object.approveRequestTime = + options.longs === String + ? $util.Long.prototype.toString.call(message.approveRequestTime) + : options.longs === Number + ? new $util.LongBits( + message.approveRequestTime.low >>> 0, + message.approveRequestTime.high >>> 0 + ).toNumber() + : message.approveRequestTime; + if (message.encryptedDataKeyPresent != null && message.hasOwnProperty('encryptedDataKeyPresent')) object.encryptedDataKeyPresent = message.encryptedDataKeyPresent; - if (message.groupId != null && message.hasOwnProperty("groupId")) - if (typeof message.groupId === "number") + if (message.groupId != null && message.hasOwnProperty('groupId')) + if (typeof message.groupId === 'number') object.groupId = options.longs === String ? String(message.groupId) : message.groupId; else - object.groupId = options.longs === String ? $util.Long.prototype.toString.call(message.groupId) : options.longs === Number ? new $util.LongBits(message.groupId.low >>> 0, message.groupId.high >>> 0).toNumber() : message.groupId; - if (message.devicePlatform != null && message.hasOwnProperty("devicePlatform")) + object.groupId = + options.longs === String + ? $util.Long.prototype.toString.call(message.groupId) + : options.longs === Number + ? new $util.LongBits(message.groupId.low >>> 0, message.groupId.high >>> 0).toNumber() + : message.groupId; + if (message.devicePlatform != null && message.hasOwnProperty('devicePlatform')) object.devicePlatform = message.devicePlatform; - if (message.clientFormFactor != null && message.hasOwnProperty("clientFormFactor")) - object.clientFormFactor = options.enums === String ? $root.Authentication.ClientFormFactor[message.clientFormFactor] === undefined ? message.clientFormFactor : $root.Authentication.ClientFormFactor[message.clientFormFactor] : message.clientFormFactor; + if (message.clientFormFactor != null && message.hasOwnProperty('clientFormFactor')) + object.clientFormFactor = + options.enums === String + ? $root.Authentication.ClientFormFactor[message.clientFormFactor] === undefined + ? message.clientFormFactor + : $root.Authentication.ClientFormFactor[message.clientFormFactor] + : message.clientFormFactor; return object; }; @@ -101880,16 +105153,15 @@ export const AccountSummary = $root.AccountSummary = (() => { */ DeviceInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/AccountSummary.DeviceInfo"; + return typeUrlPrefix + '/AccountSummary.DeviceInfo'; }; return DeviceInfo; })(); - AccountSummary.KeysInfo = (function() { - + AccountSummary.KeysInfo = (function () { /** * Properties of a KeysInfo. * @memberof AccountSummary @@ -101914,8 +105186,7 @@ export const AccountSummary = $root.AccountSummary = (() => { function KeysInfo(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -101996,22 +105267,21 @@ export const AccountSummary = $root.AccountSummary = (() => { * @returns {$protobuf.Writer} Writer */ KeysInfo.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.encryptionParams != null && Object.hasOwnProperty.call(message, "encryptionParams")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.encryptionParams); - if (message.encryptedDataKey != null && Object.hasOwnProperty.call(message, "encryptedDataKey")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.encryptedDataKey); - if (message.dataKeyBackupDate != null && Object.hasOwnProperty.call(message, "dataKeyBackupDate")) - writer.uint32(/* id 3, wireType 1 =*/25).double(message.dataKeyBackupDate); - if (message.userAuthUid != null && Object.hasOwnProperty.call(message, "userAuthUid")) - writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.userAuthUid); - if (message.encryptedPrivateKey != null && Object.hasOwnProperty.call(message, "encryptedPrivateKey")) - writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.encryptedPrivateKey); - if (message.encryptedEccPrivateKey != null && Object.hasOwnProperty.call(message, "encryptedEccPrivateKey")) - writer.uint32(/* id 6, wireType 2 =*/50).bytes(message.encryptedEccPrivateKey); - if (message.eccPublicKey != null && Object.hasOwnProperty.call(message, "eccPublicKey")) - writer.uint32(/* id 7, wireType 2 =*/58).bytes(message.eccPublicKey); + if (!writer) writer = $Writer.create(); + if (message.encryptionParams != null && Object.hasOwnProperty.call(message, 'encryptionParams')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.encryptionParams); + if (message.encryptedDataKey != null && Object.hasOwnProperty.call(message, 'encryptedDataKey')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.encryptedDataKey); + if (message.dataKeyBackupDate != null && Object.hasOwnProperty.call(message, 'dataKeyBackupDate')) + writer.uint32(/* id 3, wireType 1 =*/ 25).double(message.dataKeyBackupDate); + if (message.userAuthUid != null && Object.hasOwnProperty.call(message, 'userAuthUid')) + writer.uint32(/* id 4, wireType 2 =*/ 34).bytes(message.userAuthUid); + if (message.encryptedPrivateKey != null && Object.hasOwnProperty.call(message, 'encryptedPrivateKey')) + writer.uint32(/* id 5, wireType 2 =*/ 42).bytes(message.encryptedPrivateKey); + if (message.encryptedEccPrivateKey != null && Object.hasOwnProperty.call(message, 'encryptedEccPrivateKey')) + writer.uint32(/* id 6, wireType 2 =*/ 50).bytes(message.encryptedEccPrivateKey); + if (message.eccPublicKey != null && Object.hasOwnProperty.call(message, 'eccPublicKey')) + writer.uint32(/* id 7, wireType 2 =*/ 58).bytes(message.eccPublicKey); return writer; }; @@ -102040,43 +105310,43 @@ export const AccountSummary = $root.AccountSummary = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ KeysInfo.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.AccountSummary.KeysInfo(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.AccountSummary.KeysInfo(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.encryptionParams = reader.bytes(); break; } - case 2: { + case 2: { message.encryptedDataKey = reader.bytes(); break; } - case 3: { + case 3: { message.dataKeyBackupDate = reader.double(); break; } - case 4: { + case 4: { message.userAuthUid = reader.bytes(); break; } - case 5: { + case 5: { message.encryptedPrivateKey = reader.bytes(); break; } - case 6: { + case 6: { message.encryptedEccPrivateKey = reader.bytes(); break; } - case 7: { + case 7: { message.eccPublicKey = reader.bytes(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -102093,8 +105363,7 @@ export const AccountSummary = $root.AccountSummary = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ KeysInfo.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -102107,29 +105376,57 @@ export const AccountSummary = $root.AccountSummary = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ KeysInfo.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.encryptionParams != null && message.hasOwnProperty("encryptionParams")) - if (!(message.encryptionParams && typeof message.encryptionParams.length === "number" || $util.isString(message.encryptionParams))) - return "encryptionParams: buffer expected"; - if (message.encryptedDataKey != null && message.hasOwnProperty("encryptedDataKey")) - if (!(message.encryptedDataKey && typeof message.encryptedDataKey.length === "number" || $util.isString(message.encryptedDataKey))) - return "encryptedDataKey: buffer expected"; - if (message.dataKeyBackupDate != null && message.hasOwnProperty("dataKeyBackupDate")) - if (typeof message.dataKeyBackupDate !== "number") - return "dataKeyBackupDate: number expected"; - if (message.userAuthUid != null && message.hasOwnProperty("userAuthUid")) - if (!(message.userAuthUid && typeof message.userAuthUid.length === "number" || $util.isString(message.userAuthUid))) - return "userAuthUid: buffer expected"; - if (message.encryptedPrivateKey != null && message.hasOwnProperty("encryptedPrivateKey")) - if (!(message.encryptedPrivateKey && typeof message.encryptedPrivateKey.length === "number" || $util.isString(message.encryptedPrivateKey))) - return "encryptedPrivateKey: buffer expected"; - if (message.encryptedEccPrivateKey != null && message.hasOwnProperty("encryptedEccPrivateKey")) - if (!(message.encryptedEccPrivateKey && typeof message.encryptedEccPrivateKey.length === "number" || $util.isString(message.encryptedEccPrivateKey))) - return "encryptedEccPrivateKey: buffer expected"; - if (message.eccPublicKey != null && message.hasOwnProperty("eccPublicKey")) - if (!(message.eccPublicKey && typeof message.eccPublicKey.length === "number" || $util.isString(message.eccPublicKey))) - return "eccPublicKey: buffer expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.encryptionParams != null && message.hasOwnProperty('encryptionParams')) + if ( + !( + (message.encryptionParams && typeof message.encryptionParams.length === 'number') || + $util.isString(message.encryptionParams) + ) + ) + return 'encryptionParams: buffer expected'; + if (message.encryptedDataKey != null && message.hasOwnProperty('encryptedDataKey')) + if ( + !( + (message.encryptedDataKey && typeof message.encryptedDataKey.length === 'number') || + $util.isString(message.encryptedDataKey) + ) + ) + return 'encryptedDataKey: buffer expected'; + if (message.dataKeyBackupDate != null && message.hasOwnProperty('dataKeyBackupDate')) + if (typeof message.dataKeyBackupDate !== 'number') return 'dataKeyBackupDate: number expected'; + if (message.userAuthUid != null && message.hasOwnProperty('userAuthUid')) + if ( + !( + (message.userAuthUid && typeof message.userAuthUid.length === 'number') || + $util.isString(message.userAuthUid) + ) + ) + return 'userAuthUid: buffer expected'; + if (message.encryptedPrivateKey != null && message.hasOwnProperty('encryptedPrivateKey')) + if ( + !( + (message.encryptedPrivateKey && typeof message.encryptedPrivateKey.length === 'number') || + $util.isString(message.encryptedPrivateKey) + ) + ) + return 'encryptedPrivateKey: buffer expected'; + if (message.encryptedEccPrivateKey != null && message.hasOwnProperty('encryptedEccPrivateKey')) + if ( + !( + (message.encryptedEccPrivateKey && typeof message.encryptedEccPrivateKey.length === 'number') || + $util.isString(message.encryptedEccPrivateKey) + ) + ) + return 'encryptedEccPrivateKey: buffer expected'; + if (message.eccPublicKey != null && message.hasOwnProperty('eccPublicKey')) + if ( + !( + (message.eccPublicKey && typeof message.eccPublicKey.length === 'number') || + $util.isString(message.eccPublicKey) + ) + ) + return 'eccPublicKey: buffer expected'; return null; }; @@ -102142,41 +105439,63 @@ export const AccountSummary = $root.AccountSummary = (() => { * @returns {AccountSummary.KeysInfo} KeysInfo */ KeysInfo.fromObject = function fromObject(object) { - if (object instanceof $root.AccountSummary.KeysInfo) - return object; + if (object instanceof $root.AccountSummary.KeysInfo) return object; let message = new $root.AccountSummary.KeysInfo(); if (object.encryptionParams != null) - if (typeof object.encryptionParams === "string") - $util.base64.decode(object.encryptionParams, message.encryptionParams = $util.newBuffer($util.base64.length(object.encryptionParams)), 0); - else if (object.encryptionParams.length >= 0) - message.encryptionParams = object.encryptionParams; + if (typeof object.encryptionParams === 'string') + $util.base64.decode( + object.encryptionParams, + (message.encryptionParams = $util.newBuffer($util.base64.length(object.encryptionParams))), + 0 + ); + else if (object.encryptionParams.length >= 0) message.encryptionParams = object.encryptionParams; if (object.encryptedDataKey != null) - if (typeof object.encryptedDataKey === "string") - $util.base64.decode(object.encryptedDataKey, message.encryptedDataKey = $util.newBuffer($util.base64.length(object.encryptedDataKey)), 0); - else if (object.encryptedDataKey.length >= 0) - message.encryptedDataKey = object.encryptedDataKey; - if (object.dataKeyBackupDate != null) - message.dataKeyBackupDate = Number(object.dataKeyBackupDate); + if (typeof object.encryptedDataKey === 'string') + $util.base64.decode( + object.encryptedDataKey, + (message.encryptedDataKey = $util.newBuffer($util.base64.length(object.encryptedDataKey))), + 0 + ); + else if (object.encryptedDataKey.length >= 0) message.encryptedDataKey = object.encryptedDataKey; + if (object.dataKeyBackupDate != null) message.dataKeyBackupDate = Number(object.dataKeyBackupDate); if (object.userAuthUid != null) - if (typeof object.userAuthUid === "string") - $util.base64.decode(object.userAuthUid, message.userAuthUid = $util.newBuffer($util.base64.length(object.userAuthUid)), 0); - else if (object.userAuthUid.length >= 0) - message.userAuthUid = object.userAuthUid; + if (typeof object.userAuthUid === 'string') + $util.base64.decode( + object.userAuthUid, + (message.userAuthUid = $util.newBuffer($util.base64.length(object.userAuthUid))), + 0 + ); + else if (object.userAuthUid.length >= 0) message.userAuthUid = object.userAuthUid; if (object.encryptedPrivateKey != null) - if (typeof object.encryptedPrivateKey === "string") - $util.base64.decode(object.encryptedPrivateKey, message.encryptedPrivateKey = $util.newBuffer($util.base64.length(object.encryptedPrivateKey)), 0); + if (typeof object.encryptedPrivateKey === 'string') + $util.base64.decode( + object.encryptedPrivateKey, + (message.encryptedPrivateKey = $util.newBuffer( + $util.base64.length(object.encryptedPrivateKey) + )), + 0 + ); else if (object.encryptedPrivateKey.length >= 0) message.encryptedPrivateKey = object.encryptedPrivateKey; if (object.encryptedEccPrivateKey != null) - if (typeof object.encryptedEccPrivateKey === "string") - $util.base64.decode(object.encryptedEccPrivateKey, message.encryptedEccPrivateKey = $util.newBuffer($util.base64.length(object.encryptedEccPrivateKey)), 0); + if (typeof object.encryptedEccPrivateKey === 'string') + $util.base64.decode( + object.encryptedEccPrivateKey, + (message.encryptedEccPrivateKey = $util.newBuffer( + $util.base64.length(object.encryptedEccPrivateKey) + )), + 0 + ); else if (object.encryptedEccPrivateKey.length >= 0) message.encryptedEccPrivateKey = object.encryptedEccPrivateKey; if (object.eccPublicKey != null) - if (typeof object.eccPublicKey === "string") - $util.base64.decode(object.eccPublicKey, message.eccPublicKey = $util.newBuffer($util.base64.length(object.eccPublicKey)), 0); - else if (object.eccPublicKey.length >= 0) - message.eccPublicKey = object.eccPublicKey; + if (typeof object.eccPublicKey === 'string') + $util.base64.decode( + object.eccPublicKey, + (message.eccPublicKey = $util.newBuffer($util.base64.length(object.eccPublicKey))), + 0 + ); + else if (object.eccPublicKey.length >= 0) message.eccPublicKey = object.eccPublicKey; return message; }; @@ -102190,68 +105509,90 @@ export const AccountSummary = $root.AccountSummary = (() => { * @returns {Object.} Plain object */ KeysInfo.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.encryptionParams = ""; + if (options.bytes === String) object.encryptionParams = ''; else { object.encryptionParams = []; - if (options.bytes !== Array) - object.encryptionParams = $util.newBuffer(object.encryptionParams); + if (options.bytes !== Array) object.encryptionParams = $util.newBuffer(object.encryptionParams); } - if (options.bytes === String) - object.encryptedDataKey = ""; + if (options.bytes === String) object.encryptedDataKey = ''; else { object.encryptedDataKey = []; - if (options.bytes !== Array) - object.encryptedDataKey = $util.newBuffer(object.encryptedDataKey); + if (options.bytes !== Array) object.encryptedDataKey = $util.newBuffer(object.encryptedDataKey); } object.dataKeyBackupDate = 0; - if (options.bytes === String) - object.userAuthUid = ""; + if (options.bytes === String) object.userAuthUid = ''; else { object.userAuthUid = []; - if (options.bytes !== Array) - object.userAuthUid = $util.newBuffer(object.userAuthUid); + if (options.bytes !== Array) object.userAuthUid = $util.newBuffer(object.userAuthUid); } - if (options.bytes === String) - object.encryptedPrivateKey = ""; + if (options.bytes === String) object.encryptedPrivateKey = ''; else { object.encryptedPrivateKey = []; if (options.bytes !== Array) object.encryptedPrivateKey = $util.newBuffer(object.encryptedPrivateKey); } - if (options.bytes === String) - object.encryptedEccPrivateKey = ""; + if (options.bytes === String) object.encryptedEccPrivateKey = ''; else { object.encryptedEccPrivateKey = []; if (options.bytes !== Array) object.encryptedEccPrivateKey = $util.newBuffer(object.encryptedEccPrivateKey); } - if (options.bytes === String) - object.eccPublicKey = ""; + if (options.bytes === String) object.eccPublicKey = ''; else { object.eccPublicKey = []; - if (options.bytes !== Array) - object.eccPublicKey = $util.newBuffer(object.eccPublicKey); - } - } - if (message.encryptionParams != null && message.hasOwnProperty("encryptionParams")) - object.encryptionParams = options.bytes === String ? $util.base64.encode(message.encryptionParams, 0, message.encryptionParams.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptionParams) : message.encryptionParams; - if (message.encryptedDataKey != null && message.hasOwnProperty("encryptedDataKey")) - object.encryptedDataKey = options.bytes === String ? $util.base64.encode(message.encryptedDataKey, 0, message.encryptedDataKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedDataKey) : message.encryptedDataKey; - if (message.dataKeyBackupDate != null && message.hasOwnProperty("dataKeyBackupDate")) - object.dataKeyBackupDate = options.json && !isFinite(message.dataKeyBackupDate) ? String(message.dataKeyBackupDate) : message.dataKeyBackupDate; - if (message.userAuthUid != null && message.hasOwnProperty("userAuthUid")) - object.userAuthUid = options.bytes === String ? $util.base64.encode(message.userAuthUid, 0, message.userAuthUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.userAuthUid) : message.userAuthUid; - if (message.encryptedPrivateKey != null && message.hasOwnProperty("encryptedPrivateKey")) - object.encryptedPrivateKey = options.bytes === String ? $util.base64.encode(message.encryptedPrivateKey, 0, message.encryptedPrivateKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedPrivateKey) : message.encryptedPrivateKey; - if (message.encryptedEccPrivateKey != null && message.hasOwnProperty("encryptedEccPrivateKey")) - object.encryptedEccPrivateKey = options.bytes === String ? $util.base64.encode(message.encryptedEccPrivateKey, 0, message.encryptedEccPrivateKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedEccPrivateKey) : message.encryptedEccPrivateKey; - if (message.eccPublicKey != null && message.hasOwnProperty("eccPublicKey")) - object.eccPublicKey = options.bytes === String ? $util.base64.encode(message.eccPublicKey, 0, message.eccPublicKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.eccPublicKey) : message.eccPublicKey; + if (options.bytes !== Array) object.eccPublicKey = $util.newBuffer(object.eccPublicKey); + } + } + if (message.encryptionParams != null && message.hasOwnProperty('encryptionParams')) + object.encryptionParams = + options.bytes === String + ? $util.base64.encode(message.encryptionParams, 0, message.encryptionParams.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.encryptionParams) + : message.encryptionParams; + if (message.encryptedDataKey != null && message.hasOwnProperty('encryptedDataKey')) + object.encryptedDataKey = + options.bytes === String + ? $util.base64.encode(message.encryptedDataKey, 0, message.encryptedDataKey.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.encryptedDataKey) + : message.encryptedDataKey; + if (message.dataKeyBackupDate != null && message.hasOwnProperty('dataKeyBackupDate')) + object.dataKeyBackupDate = + options.json && !isFinite(message.dataKeyBackupDate) + ? String(message.dataKeyBackupDate) + : message.dataKeyBackupDate; + if (message.userAuthUid != null && message.hasOwnProperty('userAuthUid')) + object.userAuthUid = + options.bytes === String + ? $util.base64.encode(message.userAuthUid, 0, message.userAuthUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.userAuthUid) + : message.userAuthUid; + if (message.encryptedPrivateKey != null && message.hasOwnProperty('encryptedPrivateKey')) + object.encryptedPrivateKey = + options.bytes === String + ? $util.base64.encode(message.encryptedPrivateKey, 0, message.encryptedPrivateKey.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.encryptedPrivateKey) + : message.encryptedPrivateKey; + if (message.encryptedEccPrivateKey != null && message.hasOwnProperty('encryptedEccPrivateKey')) + object.encryptedEccPrivateKey = + options.bytes === String + ? $util.base64.encode(message.encryptedEccPrivateKey, 0, message.encryptedEccPrivateKey.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.encryptedEccPrivateKey) + : message.encryptedEccPrivateKey; + if (message.eccPublicKey != null && message.hasOwnProperty('eccPublicKey')) + object.eccPublicKey = + options.bytes === String + ? $util.base64.encode(message.eccPublicKey, 0, message.eccPublicKey.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.eccPublicKey) + : message.eccPublicKey; return object; }; @@ -102276,16 +105617,15 @@ export const AccountSummary = $root.AccountSummary = (() => { */ KeysInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/AccountSummary.KeysInfo"; + return typeUrlPrefix + '/AccountSummary.KeysInfo'; }; return KeysInfo; })(); - AccountSummary.SyncLog = (function() { - + AccountSummary.SyncLog = (function () { /** * Properties of a SyncLog. * @memberof AccountSummary @@ -102309,8 +105649,7 @@ export const AccountSummary = $root.AccountSummary = (() => { function SyncLog(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -102319,7 +105658,7 @@ export const AccountSummary = $root.AccountSummary = (() => { * @memberof AccountSummary.SyncLog * @instance */ - SyncLog.prototype.countryName = ""; + SyncLog.prototype.countryName = ''; /** * SyncLog secondsAgo. @@ -102327,7 +105666,7 @@ export const AccountSummary = $root.AccountSummary = (() => { * @memberof AccountSummary.SyncLog * @instance */ - SyncLog.prototype.secondsAgo = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + SyncLog.prototype.secondsAgo = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * SyncLog deviceName. @@ -102335,7 +105674,7 @@ export const AccountSummary = $root.AccountSummary = (() => { * @memberof AccountSummary.SyncLog * @instance */ - SyncLog.prototype.deviceName = ""; + SyncLog.prototype.deviceName = ''; /** * SyncLog countryCode. @@ -102343,7 +105682,7 @@ export const AccountSummary = $root.AccountSummary = (() => { * @memberof AccountSummary.SyncLog * @instance */ - SyncLog.prototype.countryCode = ""; + SyncLog.prototype.countryCode = ''; /** * SyncLog deviceUID. @@ -102359,7 +105698,7 @@ export const AccountSummary = $root.AccountSummary = (() => { * @memberof AccountSummary.SyncLog * @instance */ - SyncLog.prototype.ipAddress = ""; + SyncLog.prototype.ipAddress = ''; /** * Creates a new SyncLog instance using the specified properties. @@ -102383,20 +105722,19 @@ export const AccountSummary = $root.AccountSummary = (() => { * @returns {$protobuf.Writer} Writer */ SyncLog.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.countryName != null && Object.hasOwnProperty.call(message, "countryName")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.countryName); - if (message.secondsAgo != null && Object.hasOwnProperty.call(message, "secondsAgo")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.secondsAgo); - if (message.deviceName != null && Object.hasOwnProperty.call(message, "deviceName")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.deviceName); - if (message.countryCode != null && Object.hasOwnProperty.call(message, "countryCode")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.countryCode); - if (message.deviceUID != null && Object.hasOwnProperty.call(message, "deviceUID")) - writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.deviceUID); - if (message.ipAddress != null && Object.hasOwnProperty.call(message, "ipAddress")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.ipAddress); + if (!writer) writer = $Writer.create(); + if (message.countryName != null && Object.hasOwnProperty.call(message, 'countryName')) + writer.uint32(/* id 1, wireType 2 =*/ 10).string(message.countryName); + if (message.secondsAgo != null && Object.hasOwnProperty.call(message, 'secondsAgo')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int64(message.secondsAgo); + if (message.deviceName != null && Object.hasOwnProperty.call(message, 'deviceName')) + writer.uint32(/* id 3, wireType 2 =*/ 26).string(message.deviceName); + if (message.countryCode != null && Object.hasOwnProperty.call(message, 'countryCode')) + writer.uint32(/* id 4, wireType 2 =*/ 34).string(message.countryCode); + if (message.deviceUID != null && Object.hasOwnProperty.call(message, 'deviceUID')) + writer.uint32(/* id 5, wireType 2 =*/ 42).bytes(message.deviceUID); + if (message.ipAddress != null && Object.hasOwnProperty.call(message, 'ipAddress')) + writer.uint32(/* id 6, wireType 2 =*/ 50).string(message.ipAddress); return writer; }; @@ -102425,39 +105763,39 @@ export const AccountSummary = $root.AccountSummary = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SyncLog.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.AccountSummary.SyncLog(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.AccountSummary.SyncLog(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.countryName = reader.string(); break; } - case 2: { + case 2: { message.secondsAgo = reader.int64(); break; } - case 3: { + case 3: { message.deviceName = reader.string(); break; } - case 4: { + case 4: { message.countryCode = reader.string(); break; } - case 5: { + case 5: { message.deviceUID = reader.bytes(); break; } - case 6: { + case 6: { message.ipAddress = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -102474,8 +105812,7 @@ export const AccountSummary = $root.AccountSummary = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SyncLog.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -102488,26 +105825,33 @@ export const AccountSummary = $root.AccountSummary = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ SyncLog.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.countryName != null && message.hasOwnProperty("countryName")) - if (!$util.isString(message.countryName)) - return "countryName: string expected"; - if (message.secondsAgo != null && message.hasOwnProperty("secondsAgo")) - if (!$util.isInteger(message.secondsAgo) && !(message.secondsAgo && $util.isInteger(message.secondsAgo.low) && $util.isInteger(message.secondsAgo.high))) - return "secondsAgo: integer|Long expected"; - if (message.deviceName != null && message.hasOwnProperty("deviceName")) - if (!$util.isString(message.deviceName)) - return "deviceName: string expected"; - if (message.countryCode != null && message.hasOwnProperty("countryCode")) - if (!$util.isString(message.countryCode)) - return "countryCode: string expected"; - if (message.deviceUID != null && message.hasOwnProperty("deviceUID")) - if (!(message.deviceUID && typeof message.deviceUID.length === "number" || $util.isString(message.deviceUID))) - return "deviceUID: buffer expected"; - if (message.ipAddress != null && message.hasOwnProperty("ipAddress")) - if (!$util.isString(message.ipAddress)) - return "ipAddress: string expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.countryName != null && message.hasOwnProperty('countryName')) + if (!$util.isString(message.countryName)) return 'countryName: string expected'; + if (message.secondsAgo != null && message.hasOwnProperty('secondsAgo')) + if ( + !$util.isInteger(message.secondsAgo) && + !( + message.secondsAgo && + $util.isInteger(message.secondsAgo.low) && + $util.isInteger(message.secondsAgo.high) + ) + ) + return 'secondsAgo: integer|Long expected'; + if (message.deviceName != null && message.hasOwnProperty('deviceName')) + if (!$util.isString(message.deviceName)) return 'deviceName: string expected'; + if (message.countryCode != null && message.hasOwnProperty('countryCode')) + if (!$util.isString(message.countryCode)) return 'countryCode: string expected'; + if (message.deviceUID != null && message.hasOwnProperty('deviceUID')) + if ( + !( + (message.deviceUID && typeof message.deviceUID.length === 'number') || + $util.isString(message.deviceUID) + ) + ) + return 'deviceUID: buffer expected'; + if (message.ipAddress != null && message.hasOwnProperty('ipAddress')) + if (!$util.isString(message.ipAddress)) return 'ipAddress: string expected'; return null; }; @@ -102520,31 +105864,29 @@ export const AccountSummary = $root.AccountSummary = (() => { * @returns {AccountSummary.SyncLog} SyncLog */ SyncLog.fromObject = function fromObject(object) { - if (object instanceof $root.AccountSummary.SyncLog) - return object; + if (object instanceof $root.AccountSummary.SyncLog) return object; let message = new $root.AccountSummary.SyncLog(); - if (object.countryName != null) - message.countryName = String(object.countryName); + if (object.countryName != null) message.countryName = String(object.countryName); if (object.secondsAgo != null) - if ($util.Long) - (message.secondsAgo = $util.Long.fromValue(object.secondsAgo)).unsigned = false; - else if (typeof object.secondsAgo === "string") - message.secondsAgo = parseInt(object.secondsAgo, 10); - else if (typeof object.secondsAgo === "number") - message.secondsAgo = object.secondsAgo; - else if (typeof object.secondsAgo === "object") - message.secondsAgo = new $util.LongBits(object.secondsAgo.low >>> 0, object.secondsAgo.high >>> 0).toNumber(); - if (object.deviceName != null) - message.deviceName = String(object.deviceName); - if (object.countryCode != null) - message.countryCode = String(object.countryCode); + if ($util.Long) (message.secondsAgo = $util.Long.fromValue(object.secondsAgo)).unsigned = false; + else if (typeof object.secondsAgo === 'string') message.secondsAgo = parseInt(object.secondsAgo, 10); + else if (typeof object.secondsAgo === 'number') message.secondsAgo = object.secondsAgo; + else if (typeof object.secondsAgo === 'object') + message.secondsAgo = new $util.LongBits( + object.secondsAgo.low >>> 0, + object.secondsAgo.high >>> 0 + ).toNumber(); + if (object.deviceName != null) message.deviceName = String(object.deviceName); + if (object.countryCode != null) message.countryCode = String(object.countryCode); if (object.deviceUID != null) - if (typeof object.deviceUID === "string") - $util.base64.decode(object.deviceUID, message.deviceUID = $util.newBuffer($util.base64.length(object.deviceUID)), 0); - else if (object.deviceUID.length >= 0) - message.deviceUID = object.deviceUID; - if (object.ipAddress != null) - message.ipAddress = String(object.ipAddress); + if (typeof object.deviceUID === 'string') + $util.base64.decode( + object.deviceUID, + (message.deviceUID = $util.newBuffer($util.base64.length(object.deviceUID))), + 0 + ); + else if (object.deviceUID.length >= 0) message.deviceUID = object.deviceUID; + if (object.ipAddress != null) message.ipAddress = String(object.ipAddress); return message; }; @@ -102558,42 +105900,51 @@ export const AccountSummary = $root.AccountSummary = (() => { * @returns {Object.} Plain object */ SyncLog.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - object.countryName = ""; + object.countryName = ''; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.secondsAgo = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.secondsAgo = options.longs === String ? "0" : 0; - object.deviceName = ""; - object.countryCode = ""; - if (options.bytes === String) - object.deviceUID = ""; + object.secondsAgo = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.secondsAgo = options.longs === String ? '0' : 0; + object.deviceName = ''; + object.countryCode = ''; + if (options.bytes === String) object.deviceUID = ''; else { object.deviceUID = []; - if (options.bytes !== Array) - object.deviceUID = $util.newBuffer(object.deviceUID); + if (options.bytes !== Array) object.deviceUID = $util.newBuffer(object.deviceUID); } - object.ipAddress = ""; + object.ipAddress = ''; } - if (message.countryName != null && message.hasOwnProperty("countryName")) + if (message.countryName != null && message.hasOwnProperty('countryName')) object.countryName = message.countryName; - if (message.secondsAgo != null && message.hasOwnProperty("secondsAgo")) - if (typeof message.secondsAgo === "number") + if (message.secondsAgo != null && message.hasOwnProperty('secondsAgo')) + if (typeof message.secondsAgo === 'number') object.secondsAgo = options.longs === String ? String(message.secondsAgo) : message.secondsAgo; else - object.secondsAgo = options.longs === String ? $util.Long.prototype.toString.call(message.secondsAgo) : options.longs === Number ? new $util.LongBits(message.secondsAgo.low >>> 0, message.secondsAgo.high >>> 0).toNumber() : message.secondsAgo; - if (message.deviceName != null && message.hasOwnProperty("deviceName")) + object.secondsAgo = + options.longs === String + ? $util.Long.prototype.toString.call(message.secondsAgo) + : options.longs === Number + ? new $util.LongBits( + message.secondsAgo.low >>> 0, + message.secondsAgo.high >>> 0 + ).toNumber() + : message.secondsAgo; + if (message.deviceName != null && message.hasOwnProperty('deviceName')) object.deviceName = message.deviceName; - if (message.countryCode != null && message.hasOwnProperty("countryCode")) + if (message.countryCode != null && message.hasOwnProperty('countryCode')) object.countryCode = message.countryCode; - if (message.deviceUID != null && message.hasOwnProperty("deviceUID")) - object.deviceUID = options.bytes === String ? $util.base64.encode(message.deviceUID, 0, message.deviceUID.length) : options.bytes === Array ? Array.prototype.slice.call(message.deviceUID) : message.deviceUID; - if (message.ipAddress != null && message.hasOwnProperty("ipAddress")) - object.ipAddress = message.ipAddress; + if (message.deviceUID != null && message.hasOwnProperty('deviceUID')) + object.deviceUID = + options.bytes === String + ? $util.base64.encode(message.deviceUID, 0, message.deviceUID.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.deviceUID) + : message.deviceUID; + if (message.ipAddress != null && message.hasOwnProperty('ipAddress')) object.ipAddress = message.ipAddress; return object; }; @@ -102618,16 +105969,15 @@ export const AccountSummary = $root.AccountSummary = (() => { */ SyncLog.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/AccountSummary.SyncLog"; + return typeUrlPrefix + '/AccountSummary.SyncLog'; }; return SyncLog; })(); - AccountSummary.License = (function() { - + AccountSummary.License = (function () { /** * Properties of a License. * @memberof AccountSummary @@ -102679,8 +106029,7 @@ export const AccountSummary = $root.AccountSummary = (() => { function License(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -102689,7 +106038,7 @@ export const AccountSummary = $root.AccountSummary = (() => { * @memberof AccountSummary.License * @instance */ - License.prototype.subscriptionCode = ""; + License.prototype.subscriptionCode = ''; /** * License productTypeId. @@ -102705,7 +106054,7 @@ export const AccountSummary = $root.AccountSummary = (() => { * @memberof AccountSummary.License * @instance */ - License.prototype.productTypeName = ""; + License.prototype.productTypeName = ''; /** * License expirationDate. @@ -102713,7 +106062,7 @@ export const AccountSummary = $root.AccountSummary = (() => { * @memberof AccountSummary.License * @instance */ - License.prototype.expirationDate = ""; + License.prototype.expirationDate = ''; /** * License secondsUntilExpiration. @@ -102721,7 +106070,7 @@ export const AccountSummary = $root.AccountSummary = (() => { * @memberof AccountSummary.License * @instance */ - License.prototype.secondsUntilExpiration = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + License.prototype.secondsUntilExpiration = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * License maxDevices. @@ -102745,7 +106094,7 @@ export const AccountSummary = $root.AccountSummary = (() => { * @memberof AccountSummary.License * @instance */ - License.prototype.bytesUsed = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + License.prototype.bytesUsed = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * License bytesTotal. @@ -102753,7 +106102,7 @@ export const AccountSummary = $root.AccountSummary = (() => { * @memberof AccountSummary.License * @instance */ - License.prototype.bytesTotal = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + License.prototype.bytesTotal = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * License secondsUntilStorageExpiration. @@ -102761,7 +106110,7 @@ export const AccountSummary = $root.AccountSummary = (() => { * @memberof AccountSummary.License * @instance */ - License.prototype.secondsUntilStorageExpiration = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + License.prototype.secondsUntilStorageExpiration = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * License storageExpirationDate. @@ -102769,7 +106118,7 @@ export const AccountSummary = $root.AccountSummary = (() => { * @memberof AccountSummary.License * @instance */ - License.prototype.storageExpirationDate = ""; + License.prototype.storageExpirationDate = ''; /** * License hasAutoRenewableAppstoreSubscription. @@ -102849,7 +106198,7 @@ export const AccountSummary = $root.AccountSummary = (() => { * @memberof AccountSummary.License * @instance */ - License.prototype.licensedBy = ""; + License.prototype.licensedBy = ''; /** * License email. @@ -102857,7 +106206,7 @@ export const AccountSummary = $root.AccountSummary = (() => { * @memberof AccountSummary.License * @instance */ - License.prototype.email = ""; + License.prototype.email = ''; /** * License breachWatchEnabled. @@ -102881,7 +106230,7 @@ export const AccountSummary = $root.AccountSummary = (() => { * @memberof AccountSummary.License * @instance */ - License.prototype.breachWatchExpiration = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + License.prototype.breachWatchExpiration = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * License breachWatchDateCreated. @@ -102889,7 +106238,7 @@ export const AccountSummary = $root.AccountSummary = (() => { * @memberof AccountSummary.License * @instance */ - License.prototype.breachWatchDateCreated = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + License.prototype.breachWatchDateCreated = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * License error. @@ -102905,7 +106254,7 @@ export const AccountSummary = $root.AccountSummary = (() => { * @memberof AccountSummary.License * @instance */ - License.prototype.expiration = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + License.prototype.expiration = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * License storageExpiration. @@ -102913,7 +106262,7 @@ export const AccountSummary = $root.AccountSummary = (() => { * @memberof AccountSummary.License * @instance */ - License.prototype.storageExpiration = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + License.prototype.storageExpiration = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * License uploadsCount. @@ -102977,76 +106326,90 @@ export const AccountSummary = $root.AccountSummary = (() => { * @returns {$protobuf.Writer} Writer */ License.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.subscriptionCode != null && Object.hasOwnProperty.call(message, "subscriptionCode")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.subscriptionCode); - if (message.productTypeId != null && Object.hasOwnProperty.call(message, "productTypeId")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.productTypeId); - if (message.productTypeName != null && Object.hasOwnProperty.call(message, "productTypeName")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.productTypeName); - if (message.expirationDate != null && Object.hasOwnProperty.call(message, "expirationDate")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.expirationDate); - if (message.secondsUntilExpiration != null && Object.hasOwnProperty.call(message, "secondsUntilExpiration")) - writer.uint32(/* id 5, wireType 0 =*/40).int64(message.secondsUntilExpiration); - if (message.maxDevices != null && Object.hasOwnProperty.call(message, "maxDevices")) - writer.uint32(/* id 6, wireType 0 =*/48).int32(message.maxDevices); - if (message.filePlanType != null && Object.hasOwnProperty.call(message, "filePlanType")) - writer.uint32(/* id 7, wireType 0 =*/56).int32(message.filePlanType); - if (message.bytesUsed != null && Object.hasOwnProperty.call(message, "bytesUsed")) - writer.uint32(/* id 8, wireType 0 =*/64).int64(message.bytesUsed); - if (message.bytesTotal != null && Object.hasOwnProperty.call(message, "bytesTotal")) - writer.uint32(/* id 9, wireType 0 =*/72).int64(message.bytesTotal); - if (message.secondsUntilStorageExpiration != null && Object.hasOwnProperty.call(message, "secondsUntilStorageExpiration")) - writer.uint32(/* id 10, wireType 0 =*/80).int64(message.secondsUntilStorageExpiration); - if (message.storageExpirationDate != null && Object.hasOwnProperty.call(message, "storageExpirationDate")) - writer.uint32(/* id 11, wireType 2 =*/90).string(message.storageExpirationDate); - if (message.hasAutoRenewableAppstoreSubscription != null && Object.hasOwnProperty.call(message, "hasAutoRenewableAppstoreSubscription")) - writer.uint32(/* id 12, wireType 0 =*/96).bool(message.hasAutoRenewableAppstoreSubscription); - if (message.accountType != null && Object.hasOwnProperty.call(message, "accountType")) - writer.uint32(/* id 13, wireType 0 =*/104).int32(message.accountType); - if (message.uploadsRemaining != null && Object.hasOwnProperty.call(message, "uploadsRemaining")) - writer.uint32(/* id 14, wireType 0 =*/112).int32(message.uploadsRemaining); - if (message.enterpriseId != null && Object.hasOwnProperty.call(message, "enterpriseId")) - writer.uint32(/* id 15, wireType 0 =*/120).int32(message.enterpriseId); - if (message.chatEnabled != null && Object.hasOwnProperty.call(message, "chatEnabled")) - writer.uint32(/* id 16, wireType 0 =*/128).bool(message.chatEnabled); - if (message.auditAndReportingEnabled != null && Object.hasOwnProperty.call(message, "auditAndReportingEnabled")) - writer.uint32(/* id 17, wireType 0 =*/136).bool(message.auditAndReportingEnabled); - if (message.breachWatchFeatureDisable != null && Object.hasOwnProperty.call(message, "breachWatchFeatureDisable")) - writer.uint32(/* id 18, wireType 0 =*/144).bool(message.breachWatchFeatureDisable); - if (message.accountUid != null && Object.hasOwnProperty.call(message, "accountUid")) - writer.uint32(/* id 19, wireType 2 =*/154).bytes(message.accountUid); - if (message.allowPersonalLicense != null && Object.hasOwnProperty.call(message, "allowPersonalLicense")) - writer.uint32(/* id 20, wireType 0 =*/160).bool(message.allowPersonalLicense); - if (message.licensedBy != null && Object.hasOwnProperty.call(message, "licensedBy")) - writer.uint32(/* id 21, wireType 2 =*/170).string(message.licensedBy); - if (message.email != null && Object.hasOwnProperty.call(message, "email")) - writer.uint32(/* id 22, wireType 2 =*/178).string(message.email); - if (message.breachWatchEnabled != null && Object.hasOwnProperty.call(message, "breachWatchEnabled")) - writer.uint32(/* id 23, wireType 0 =*/184).bool(message.breachWatchEnabled); - if (message.breachWatchScanned != null && Object.hasOwnProperty.call(message, "breachWatchScanned")) - writer.uint32(/* id 24, wireType 0 =*/192).bool(message.breachWatchScanned); - if (message.breachWatchExpiration != null && Object.hasOwnProperty.call(message, "breachWatchExpiration")) - writer.uint32(/* id 25, wireType 0 =*/200).int64(message.breachWatchExpiration); - if (message.breachWatchDateCreated != null && Object.hasOwnProperty.call(message, "breachWatchDateCreated")) - writer.uint32(/* id 26, wireType 0 =*/208).int64(message.breachWatchDateCreated); - if (message.error != null && Object.hasOwnProperty.call(message, "error")) - $root.AccountSummary.Result.encode(message.error, writer.uint32(/* id 27, wireType 2 =*/218).fork()).ldelim(); - if (message.expiration != null && Object.hasOwnProperty.call(message, "expiration")) - writer.uint32(/* id 29, wireType 0 =*/232).int64(message.expiration); - if (message.storageExpiration != null && Object.hasOwnProperty.call(message, "storageExpiration")) - writer.uint32(/* id 30, wireType 0 =*/240).int64(message.storageExpiration); - if (message.uploadsCount != null && Object.hasOwnProperty.call(message, "uploadsCount")) - writer.uint32(/* id 31, wireType 0 =*/248).int32(message.uploadsCount); - if (message.units != null && Object.hasOwnProperty.call(message, "units")) - writer.uint32(/* id 32, wireType 0 =*/256).int32(message.units); - if (message.pendingEnterprise != null && Object.hasOwnProperty.call(message, "pendingEnterprise")) - writer.uint32(/* id 33, wireType 0 =*/264).bool(message.pendingEnterprise); - if (message.isPamEnabled != null && Object.hasOwnProperty.call(message, "isPamEnabled")) - writer.uint32(/* id 34, wireType 0 =*/272).bool(message.isPamEnabled); - if (message.isKsmEnabled != null && Object.hasOwnProperty.call(message, "isKsmEnabled")) - writer.uint32(/* id 35, wireType 0 =*/280).bool(message.isKsmEnabled); + if (!writer) writer = $Writer.create(); + if (message.subscriptionCode != null && Object.hasOwnProperty.call(message, 'subscriptionCode')) + writer.uint32(/* id 1, wireType 2 =*/ 10).string(message.subscriptionCode); + if (message.productTypeId != null && Object.hasOwnProperty.call(message, 'productTypeId')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int32(message.productTypeId); + if (message.productTypeName != null && Object.hasOwnProperty.call(message, 'productTypeName')) + writer.uint32(/* id 3, wireType 2 =*/ 26).string(message.productTypeName); + if (message.expirationDate != null && Object.hasOwnProperty.call(message, 'expirationDate')) + writer.uint32(/* id 4, wireType 2 =*/ 34).string(message.expirationDate); + if (message.secondsUntilExpiration != null && Object.hasOwnProperty.call(message, 'secondsUntilExpiration')) + writer.uint32(/* id 5, wireType 0 =*/ 40).int64(message.secondsUntilExpiration); + if (message.maxDevices != null && Object.hasOwnProperty.call(message, 'maxDevices')) + writer.uint32(/* id 6, wireType 0 =*/ 48).int32(message.maxDevices); + if (message.filePlanType != null && Object.hasOwnProperty.call(message, 'filePlanType')) + writer.uint32(/* id 7, wireType 0 =*/ 56).int32(message.filePlanType); + if (message.bytesUsed != null && Object.hasOwnProperty.call(message, 'bytesUsed')) + writer.uint32(/* id 8, wireType 0 =*/ 64).int64(message.bytesUsed); + if (message.bytesTotal != null && Object.hasOwnProperty.call(message, 'bytesTotal')) + writer.uint32(/* id 9, wireType 0 =*/ 72).int64(message.bytesTotal); + if ( + message.secondsUntilStorageExpiration != null && + Object.hasOwnProperty.call(message, 'secondsUntilStorageExpiration') + ) + writer.uint32(/* id 10, wireType 0 =*/ 80).int64(message.secondsUntilStorageExpiration); + if (message.storageExpirationDate != null && Object.hasOwnProperty.call(message, 'storageExpirationDate')) + writer.uint32(/* id 11, wireType 2 =*/ 90).string(message.storageExpirationDate); + if ( + message.hasAutoRenewableAppstoreSubscription != null && + Object.hasOwnProperty.call(message, 'hasAutoRenewableAppstoreSubscription') + ) + writer.uint32(/* id 12, wireType 0 =*/ 96).bool(message.hasAutoRenewableAppstoreSubscription); + if (message.accountType != null && Object.hasOwnProperty.call(message, 'accountType')) + writer.uint32(/* id 13, wireType 0 =*/ 104).int32(message.accountType); + if (message.uploadsRemaining != null && Object.hasOwnProperty.call(message, 'uploadsRemaining')) + writer.uint32(/* id 14, wireType 0 =*/ 112).int32(message.uploadsRemaining); + if (message.enterpriseId != null && Object.hasOwnProperty.call(message, 'enterpriseId')) + writer.uint32(/* id 15, wireType 0 =*/ 120).int32(message.enterpriseId); + if (message.chatEnabled != null && Object.hasOwnProperty.call(message, 'chatEnabled')) + writer.uint32(/* id 16, wireType 0 =*/ 128).bool(message.chatEnabled); + if ( + message.auditAndReportingEnabled != null && + Object.hasOwnProperty.call(message, 'auditAndReportingEnabled') + ) + writer.uint32(/* id 17, wireType 0 =*/ 136).bool(message.auditAndReportingEnabled); + if ( + message.breachWatchFeatureDisable != null && + Object.hasOwnProperty.call(message, 'breachWatchFeatureDisable') + ) + writer.uint32(/* id 18, wireType 0 =*/ 144).bool(message.breachWatchFeatureDisable); + if (message.accountUid != null && Object.hasOwnProperty.call(message, 'accountUid')) + writer.uint32(/* id 19, wireType 2 =*/ 154).bytes(message.accountUid); + if (message.allowPersonalLicense != null && Object.hasOwnProperty.call(message, 'allowPersonalLicense')) + writer.uint32(/* id 20, wireType 0 =*/ 160).bool(message.allowPersonalLicense); + if (message.licensedBy != null && Object.hasOwnProperty.call(message, 'licensedBy')) + writer.uint32(/* id 21, wireType 2 =*/ 170).string(message.licensedBy); + if (message.email != null && Object.hasOwnProperty.call(message, 'email')) + writer.uint32(/* id 22, wireType 2 =*/ 178).string(message.email); + if (message.breachWatchEnabled != null && Object.hasOwnProperty.call(message, 'breachWatchEnabled')) + writer.uint32(/* id 23, wireType 0 =*/ 184).bool(message.breachWatchEnabled); + if (message.breachWatchScanned != null && Object.hasOwnProperty.call(message, 'breachWatchScanned')) + writer.uint32(/* id 24, wireType 0 =*/ 192).bool(message.breachWatchScanned); + if (message.breachWatchExpiration != null && Object.hasOwnProperty.call(message, 'breachWatchExpiration')) + writer.uint32(/* id 25, wireType 0 =*/ 200).int64(message.breachWatchExpiration); + if (message.breachWatchDateCreated != null && Object.hasOwnProperty.call(message, 'breachWatchDateCreated')) + writer.uint32(/* id 26, wireType 0 =*/ 208).int64(message.breachWatchDateCreated); + if (message.error != null && Object.hasOwnProperty.call(message, 'error')) + $root.AccountSummary.Result.encode( + message.error, + writer.uint32(/* id 27, wireType 2 =*/ 218).fork() + ).ldelim(); + if (message.expiration != null && Object.hasOwnProperty.call(message, 'expiration')) + writer.uint32(/* id 29, wireType 0 =*/ 232).int64(message.expiration); + if (message.storageExpiration != null && Object.hasOwnProperty.call(message, 'storageExpiration')) + writer.uint32(/* id 30, wireType 0 =*/ 240).int64(message.storageExpiration); + if (message.uploadsCount != null && Object.hasOwnProperty.call(message, 'uploadsCount')) + writer.uint32(/* id 31, wireType 0 =*/ 248).int32(message.uploadsCount); + if (message.units != null && Object.hasOwnProperty.call(message, 'units')) + writer.uint32(/* id 32, wireType 0 =*/ 256).int32(message.units); + if (message.pendingEnterprise != null && Object.hasOwnProperty.call(message, 'pendingEnterprise')) + writer.uint32(/* id 33, wireType 0 =*/ 264).bool(message.pendingEnterprise); + if (message.isPamEnabled != null && Object.hasOwnProperty.call(message, 'isPamEnabled')) + writer.uint32(/* id 34, wireType 0 =*/ 272).bool(message.isPamEnabled); + if (message.isKsmEnabled != null && Object.hasOwnProperty.call(message, 'isKsmEnabled')) + writer.uint32(/* id 35, wireType 0 =*/ 280).bool(message.isKsmEnabled); return writer; }; @@ -103075,151 +106438,151 @@ export const AccountSummary = $root.AccountSummary = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ License.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.AccountSummary.License(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.AccountSummary.License(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.subscriptionCode = reader.string(); break; } - case 2: { + case 2: { message.productTypeId = reader.int32(); break; } - case 3: { + case 3: { message.productTypeName = reader.string(); break; } - case 4: { + case 4: { message.expirationDate = reader.string(); break; } - case 5: { + case 5: { message.secondsUntilExpiration = reader.int64(); break; } - case 6: { + case 6: { message.maxDevices = reader.int32(); break; } - case 7: { + case 7: { message.filePlanType = reader.int32(); break; } - case 8: { + case 8: { message.bytesUsed = reader.int64(); break; } - case 9: { + case 9: { message.bytesTotal = reader.int64(); break; } - case 10: { + case 10: { message.secondsUntilStorageExpiration = reader.int64(); break; } - case 11: { + case 11: { message.storageExpirationDate = reader.string(); break; } - case 12: { + case 12: { message.hasAutoRenewableAppstoreSubscription = reader.bool(); break; } - case 13: { + case 13: { message.accountType = reader.int32(); break; } - case 14: { + case 14: { message.uploadsRemaining = reader.int32(); break; } - case 15: { + case 15: { message.enterpriseId = reader.int32(); break; } - case 16: { + case 16: { message.chatEnabled = reader.bool(); break; } - case 17: { + case 17: { message.auditAndReportingEnabled = reader.bool(); break; } - case 18: { + case 18: { message.breachWatchFeatureDisable = reader.bool(); break; } - case 19: { + case 19: { message.accountUid = reader.bytes(); break; } - case 20: { + case 20: { message.allowPersonalLicense = reader.bool(); break; } - case 21: { + case 21: { message.licensedBy = reader.string(); break; } - case 22: { + case 22: { message.email = reader.string(); break; } - case 23: { + case 23: { message.breachWatchEnabled = reader.bool(); break; } - case 24: { + case 24: { message.breachWatchScanned = reader.bool(); break; } - case 25: { + case 25: { message.breachWatchExpiration = reader.int64(); break; } - case 26: { + case 26: { message.breachWatchDateCreated = reader.int64(); break; } - case 27: { + case 27: { message.error = $root.AccountSummary.Result.decode(reader, reader.uint32()); break; } - case 29: { + case 29: { message.expiration = reader.int64(); break; } - case 30: { + case 30: { message.storageExpiration = reader.int64(); break; } - case 31: { + case 31: { message.uploadsCount = reader.int32(); break; } - case 32: { + case 32: { message.units = reader.int32(); break; } - case 33: { + case 33: { message.pendingEnterprise = reader.bool(); break; } - case 34: { + case 34: { message.isPamEnabled = reader.bool(); break; } - case 35: { + case 35: { message.isKsmEnabled = reader.bool(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -103236,8 +106599,7 @@ export const AccountSummary = $root.AccountSummary = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ License.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -103250,112 +106612,156 @@ export const AccountSummary = $root.AccountSummary = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ License.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.subscriptionCode != null && message.hasOwnProperty("subscriptionCode")) - if (!$util.isString(message.subscriptionCode)) - return "subscriptionCode: string expected"; - if (message.productTypeId != null && message.hasOwnProperty("productTypeId")) - if (!$util.isInteger(message.productTypeId)) - return "productTypeId: integer expected"; - if (message.productTypeName != null && message.hasOwnProperty("productTypeName")) - if (!$util.isString(message.productTypeName)) - return "productTypeName: string expected"; - if (message.expirationDate != null && message.hasOwnProperty("expirationDate")) - if (!$util.isString(message.expirationDate)) - return "expirationDate: string expected"; - if (message.secondsUntilExpiration != null && message.hasOwnProperty("secondsUntilExpiration")) - if (!$util.isInteger(message.secondsUntilExpiration) && !(message.secondsUntilExpiration && $util.isInteger(message.secondsUntilExpiration.low) && $util.isInteger(message.secondsUntilExpiration.high))) - return "secondsUntilExpiration: integer|Long expected"; - if (message.maxDevices != null && message.hasOwnProperty("maxDevices")) - if (!$util.isInteger(message.maxDevices)) - return "maxDevices: integer expected"; - if (message.filePlanType != null && message.hasOwnProperty("filePlanType")) - if (!$util.isInteger(message.filePlanType)) - return "filePlanType: integer expected"; - if (message.bytesUsed != null && message.hasOwnProperty("bytesUsed")) - if (!$util.isInteger(message.bytesUsed) && !(message.bytesUsed && $util.isInteger(message.bytesUsed.low) && $util.isInteger(message.bytesUsed.high))) - return "bytesUsed: integer|Long expected"; - if (message.bytesTotal != null && message.hasOwnProperty("bytesTotal")) - if (!$util.isInteger(message.bytesTotal) && !(message.bytesTotal && $util.isInteger(message.bytesTotal.low) && $util.isInteger(message.bytesTotal.high))) - return "bytesTotal: integer|Long expected"; - if (message.secondsUntilStorageExpiration != null && message.hasOwnProperty("secondsUntilStorageExpiration")) - if (!$util.isInteger(message.secondsUntilStorageExpiration) && !(message.secondsUntilStorageExpiration && $util.isInteger(message.secondsUntilStorageExpiration.low) && $util.isInteger(message.secondsUntilStorageExpiration.high))) - return "secondsUntilStorageExpiration: integer|Long expected"; - if (message.storageExpirationDate != null && message.hasOwnProperty("storageExpirationDate")) - if (!$util.isString(message.storageExpirationDate)) - return "storageExpirationDate: string expected"; - if (message.hasAutoRenewableAppstoreSubscription != null && message.hasOwnProperty("hasAutoRenewableAppstoreSubscription")) - if (typeof message.hasAutoRenewableAppstoreSubscription !== "boolean") - return "hasAutoRenewableAppstoreSubscription: boolean expected"; - if (message.accountType != null && message.hasOwnProperty("accountType")) - if (!$util.isInteger(message.accountType)) - return "accountType: integer expected"; - if (message.uploadsRemaining != null && message.hasOwnProperty("uploadsRemaining")) - if (!$util.isInteger(message.uploadsRemaining)) - return "uploadsRemaining: integer expected"; - if (message.enterpriseId != null && message.hasOwnProperty("enterpriseId")) - if (!$util.isInteger(message.enterpriseId)) - return "enterpriseId: integer expected"; - if (message.chatEnabled != null && message.hasOwnProperty("chatEnabled")) - if (typeof message.chatEnabled !== "boolean") - return "chatEnabled: boolean expected"; - if (message.auditAndReportingEnabled != null && message.hasOwnProperty("auditAndReportingEnabled")) - if (typeof message.auditAndReportingEnabled !== "boolean") - return "auditAndReportingEnabled: boolean expected"; - if (message.breachWatchFeatureDisable != null && message.hasOwnProperty("breachWatchFeatureDisable")) - if (typeof message.breachWatchFeatureDisable !== "boolean") - return "breachWatchFeatureDisable: boolean expected"; - if (message.accountUid != null && message.hasOwnProperty("accountUid")) - if (!(message.accountUid && typeof message.accountUid.length === "number" || $util.isString(message.accountUid))) - return "accountUid: buffer expected"; - if (message.allowPersonalLicense != null && message.hasOwnProperty("allowPersonalLicense")) - if (typeof message.allowPersonalLicense !== "boolean") - return "allowPersonalLicense: boolean expected"; - if (message.licensedBy != null && message.hasOwnProperty("licensedBy")) - if (!$util.isString(message.licensedBy)) - return "licensedBy: string expected"; - if (message.email != null && message.hasOwnProperty("email")) - if (!$util.isString(message.email)) - return "email: string expected"; - if (message.breachWatchEnabled != null && message.hasOwnProperty("breachWatchEnabled")) - if (typeof message.breachWatchEnabled !== "boolean") - return "breachWatchEnabled: boolean expected"; - if (message.breachWatchScanned != null && message.hasOwnProperty("breachWatchScanned")) - if (typeof message.breachWatchScanned !== "boolean") - return "breachWatchScanned: boolean expected"; - if (message.breachWatchExpiration != null && message.hasOwnProperty("breachWatchExpiration")) - if (!$util.isInteger(message.breachWatchExpiration) && !(message.breachWatchExpiration && $util.isInteger(message.breachWatchExpiration.low) && $util.isInteger(message.breachWatchExpiration.high))) - return "breachWatchExpiration: integer|Long expected"; - if (message.breachWatchDateCreated != null && message.hasOwnProperty("breachWatchDateCreated")) - if (!$util.isInteger(message.breachWatchDateCreated) && !(message.breachWatchDateCreated && $util.isInteger(message.breachWatchDateCreated.low) && $util.isInteger(message.breachWatchDateCreated.high))) - return "breachWatchDateCreated: integer|Long expected"; - if (message.error != null && message.hasOwnProperty("error")) { + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.subscriptionCode != null && message.hasOwnProperty('subscriptionCode')) + if (!$util.isString(message.subscriptionCode)) return 'subscriptionCode: string expected'; + if (message.productTypeId != null && message.hasOwnProperty('productTypeId')) + if (!$util.isInteger(message.productTypeId)) return 'productTypeId: integer expected'; + if (message.productTypeName != null && message.hasOwnProperty('productTypeName')) + if (!$util.isString(message.productTypeName)) return 'productTypeName: string expected'; + if (message.expirationDate != null && message.hasOwnProperty('expirationDate')) + if (!$util.isString(message.expirationDate)) return 'expirationDate: string expected'; + if (message.secondsUntilExpiration != null && message.hasOwnProperty('secondsUntilExpiration')) + if ( + !$util.isInteger(message.secondsUntilExpiration) && + !( + message.secondsUntilExpiration && + $util.isInteger(message.secondsUntilExpiration.low) && + $util.isInteger(message.secondsUntilExpiration.high) + ) + ) + return 'secondsUntilExpiration: integer|Long expected'; + if (message.maxDevices != null && message.hasOwnProperty('maxDevices')) + if (!$util.isInteger(message.maxDevices)) return 'maxDevices: integer expected'; + if (message.filePlanType != null && message.hasOwnProperty('filePlanType')) + if (!$util.isInteger(message.filePlanType)) return 'filePlanType: integer expected'; + if (message.bytesUsed != null && message.hasOwnProperty('bytesUsed')) + if ( + !$util.isInteger(message.bytesUsed) && + !( + message.bytesUsed && + $util.isInteger(message.bytesUsed.low) && + $util.isInteger(message.bytesUsed.high) + ) + ) + return 'bytesUsed: integer|Long expected'; + if (message.bytesTotal != null && message.hasOwnProperty('bytesTotal')) + if ( + !$util.isInteger(message.bytesTotal) && + !( + message.bytesTotal && + $util.isInteger(message.bytesTotal.low) && + $util.isInteger(message.bytesTotal.high) + ) + ) + return 'bytesTotal: integer|Long expected'; + if ( + message.secondsUntilStorageExpiration != null && + message.hasOwnProperty('secondsUntilStorageExpiration') + ) + if ( + !$util.isInteger(message.secondsUntilStorageExpiration) && + !( + message.secondsUntilStorageExpiration && + $util.isInteger(message.secondsUntilStorageExpiration.low) && + $util.isInteger(message.secondsUntilStorageExpiration.high) + ) + ) + return 'secondsUntilStorageExpiration: integer|Long expected'; + if (message.storageExpirationDate != null && message.hasOwnProperty('storageExpirationDate')) + if (!$util.isString(message.storageExpirationDate)) return 'storageExpirationDate: string expected'; + if ( + message.hasAutoRenewableAppstoreSubscription != null && + message.hasOwnProperty('hasAutoRenewableAppstoreSubscription') + ) + if (typeof message.hasAutoRenewableAppstoreSubscription !== 'boolean') + return 'hasAutoRenewableAppstoreSubscription: boolean expected'; + if (message.accountType != null && message.hasOwnProperty('accountType')) + if (!$util.isInteger(message.accountType)) return 'accountType: integer expected'; + if (message.uploadsRemaining != null && message.hasOwnProperty('uploadsRemaining')) + if (!$util.isInteger(message.uploadsRemaining)) return 'uploadsRemaining: integer expected'; + if (message.enterpriseId != null && message.hasOwnProperty('enterpriseId')) + if (!$util.isInteger(message.enterpriseId)) return 'enterpriseId: integer expected'; + if (message.chatEnabled != null && message.hasOwnProperty('chatEnabled')) + if (typeof message.chatEnabled !== 'boolean') return 'chatEnabled: boolean expected'; + if (message.auditAndReportingEnabled != null && message.hasOwnProperty('auditAndReportingEnabled')) + if (typeof message.auditAndReportingEnabled !== 'boolean') + return 'auditAndReportingEnabled: boolean expected'; + if (message.breachWatchFeatureDisable != null && message.hasOwnProperty('breachWatchFeatureDisable')) + if (typeof message.breachWatchFeatureDisable !== 'boolean') + return 'breachWatchFeatureDisable: boolean expected'; + if (message.accountUid != null && message.hasOwnProperty('accountUid')) + if ( + !( + (message.accountUid && typeof message.accountUid.length === 'number') || + $util.isString(message.accountUid) + ) + ) + return 'accountUid: buffer expected'; + if (message.allowPersonalLicense != null && message.hasOwnProperty('allowPersonalLicense')) + if (typeof message.allowPersonalLicense !== 'boolean') return 'allowPersonalLicense: boolean expected'; + if (message.licensedBy != null && message.hasOwnProperty('licensedBy')) + if (!$util.isString(message.licensedBy)) return 'licensedBy: string expected'; + if (message.email != null && message.hasOwnProperty('email')) + if (!$util.isString(message.email)) return 'email: string expected'; + if (message.breachWatchEnabled != null && message.hasOwnProperty('breachWatchEnabled')) + if (typeof message.breachWatchEnabled !== 'boolean') return 'breachWatchEnabled: boolean expected'; + if (message.breachWatchScanned != null && message.hasOwnProperty('breachWatchScanned')) + if (typeof message.breachWatchScanned !== 'boolean') return 'breachWatchScanned: boolean expected'; + if (message.breachWatchExpiration != null && message.hasOwnProperty('breachWatchExpiration')) + if ( + !$util.isInteger(message.breachWatchExpiration) && + !( + message.breachWatchExpiration && + $util.isInteger(message.breachWatchExpiration.low) && + $util.isInteger(message.breachWatchExpiration.high) + ) + ) + return 'breachWatchExpiration: integer|Long expected'; + if (message.breachWatchDateCreated != null && message.hasOwnProperty('breachWatchDateCreated')) + if ( + !$util.isInteger(message.breachWatchDateCreated) && + !( + message.breachWatchDateCreated && + $util.isInteger(message.breachWatchDateCreated.low) && + $util.isInteger(message.breachWatchDateCreated.high) + ) + ) + return 'breachWatchDateCreated: integer|Long expected'; + if (message.error != null && message.hasOwnProperty('error')) { let error = $root.AccountSummary.Result.verify(message.error); - if (error) - return "error." + error; - } - if (message.expiration != null && message.hasOwnProperty("expiration")) - if (!$util.isInteger(message.expiration) && !(message.expiration && $util.isInteger(message.expiration.low) && $util.isInteger(message.expiration.high))) - return "expiration: integer|Long expected"; - if (message.storageExpiration != null && message.hasOwnProperty("storageExpiration")) - if (!$util.isInteger(message.storageExpiration) && !(message.storageExpiration && $util.isInteger(message.storageExpiration.low) && $util.isInteger(message.storageExpiration.high))) - return "storageExpiration: integer|Long expected"; - if (message.uploadsCount != null && message.hasOwnProperty("uploadsCount")) - if (!$util.isInteger(message.uploadsCount)) - return "uploadsCount: integer expected"; - if (message.units != null && message.hasOwnProperty("units")) - if (!$util.isInteger(message.units)) - return "units: integer expected"; - if (message.pendingEnterprise != null && message.hasOwnProperty("pendingEnterprise")) - if (typeof message.pendingEnterprise !== "boolean") - return "pendingEnterprise: boolean expected"; - if (message.isPamEnabled != null && message.hasOwnProperty("isPamEnabled")) - if (typeof message.isPamEnabled !== "boolean") - return "isPamEnabled: boolean expected"; - if (message.isKsmEnabled != null && message.hasOwnProperty("isKsmEnabled")) - if (typeof message.isKsmEnabled !== "boolean") - return "isKsmEnabled: boolean expected"; + if (error) return 'error.' + error; + } + if (message.expiration != null && message.hasOwnProperty('expiration')) + if ( + !$util.isInteger(message.expiration) && + !( + message.expiration && + $util.isInteger(message.expiration.low) && + $util.isInteger(message.expiration.high) + ) + ) + return 'expiration: integer|Long expected'; + if (message.storageExpiration != null && message.hasOwnProperty('storageExpiration')) + if ( + !$util.isInteger(message.storageExpiration) && + !( + message.storageExpiration && + $util.isInteger(message.storageExpiration.low) && + $util.isInteger(message.storageExpiration.high) + ) + ) + return 'storageExpiration: integer|Long expected'; + if (message.uploadsCount != null && message.hasOwnProperty('uploadsCount')) + if (!$util.isInteger(message.uploadsCount)) return 'uploadsCount: integer expected'; + if (message.units != null && message.hasOwnProperty('units')) + if (!$util.isInteger(message.units)) return 'units: integer expected'; + if (message.pendingEnterprise != null && message.hasOwnProperty('pendingEnterprise')) + if (typeof message.pendingEnterprise !== 'boolean') return 'pendingEnterprise: boolean expected'; + if (message.isPamEnabled != null && message.hasOwnProperty('isPamEnabled')) + if (typeof message.isPamEnabled !== 'boolean') return 'isPamEnabled: boolean expected'; + if (message.isKsmEnabled != null && message.hasOwnProperty('isKsmEnabled')) + if (typeof message.isKsmEnabled !== 'boolean') return 'isKsmEnabled: boolean expected'; return null; }; @@ -103368,139 +106774,141 @@ export const AccountSummary = $root.AccountSummary = (() => { * @returns {AccountSummary.License} License */ License.fromObject = function fromObject(object) { - if (object instanceof $root.AccountSummary.License) - return object; + if (object instanceof $root.AccountSummary.License) return object; let message = new $root.AccountSummary.License(); - if (object.subscriptionCode != null) - message.subscriptionCode = String(object.subscriptionCode); - if (object.productTypeId != null) - message.productTypeId = object.productTypeId | 0; - if (object.productTypeName != null) - message.productTypeName = String(object.productTypeName); - if (object.expirationDate != null) - message.expirationDate = String(object.expirationDate); + if (object.subscriptionCode != null) message.subscriptionCode = String(object.subscriptionCode); + if (object.productTypeId != null) message.productTypeId = object.productTypeId | 0; + if (object.productTypeName != null) message.productTypeName = String(object.productTypeName); + if (object.expirationDate != null) message.expirationDate = String(object.expirationDate); if (object.secondsUntilExpiration != null) if ($util.Long) - (message.secondsUntilExpiration = $util.Long.fromValue(object.secondsUntilExpiration)).unsigned = false; - else if (typeof object.secondsUntilExpiration === "string") + (message.secondsUntilExpiration = $util.Long.fromValue(object.secondsUntilExpiration)).unsigned = + false; + else if (typeof object.secondsUntilExpiration === 'string') message.secondsUntilExpiration = parseInt(object.secondsUntilExpiration, 10); - else if (typeof object.secondsUntilExpiration === "number") + else if (typeof object.secondsUntilExpiration === 'number') message.secondsUntilExpiration = object.secondsUntilExpiration; - else if (typeof object.secondsUntilExpiration === "object") - message.secondsUntilExpiration = new $util.LongBits(object.secondsUntilExpiration.low >>> 0, object.secondsUntilExpiration.high >>> 0).toNumber(); - if (object.maxDevices != null) - message.maxDevices = object.maxDevices | 0; - if (object.filePlanType != null) - message.filePlanType = object.filePlanType | 0; + else if (typeof object.secondsUntilExpiration === 'object') + message.secondsUntilExpiration = new $util.LongBits( + object.secondsUntilExpiration.low >>> 0, + object.secondsUntilExpiration.high >>> 0 + ).toNumber(); + if (object.maxDevices != null) message.maxDevices = object.maxDevices | 0; + if (object.filePlanType != null) message.filePlanType = object.filePlanType | 0; if (object.bytesUsed != null) - if ($util.Long) - (message.bytesUsed = $util.Long.fromValue(object.bytesUsed)).unsigned = false; - else if (typeof object.bytesUsed === "string") - message.bytesUsed = parseInt(object.bytesUsed, 10); - else if (typeof object.bytesUsed === "number") - message.bytesUsed = object.bytesUsed; - else if (typeof object.bytesUsed === "object") - message.bytesUsed = new $util.LongBits(object.bytesUsed.low >>> 0, object.bytesUsed.high >>> 0).toNumber(); + if ($util.Long) (message.bytesUsed = $util.Long.fromValue(object.bytesUsed)).unsigned = false; + else if (typeof object.bytesUsed === 'string') message.bytesUsed = parseInt(object.bytesUsed, 10); + else if (typeof object.bytesUsed === 'number') message.bytesUsed = object.bytesUsed; + else if (typeof object.bytesUsed === 'object') + message.bytesUsed = new $util.LongBits( + object.bytesUsed.low >>> 0, + object.bytesUsed.high >>> 0 + ).toNumber(); if (object.bytesTotal != null) - if ($util.Long) - (message.bytesTotal = $util.Long.fromValue(object.bytesTotal)).unsigned = false; - else if (typeof object.bytesTotal === "string") - message.bytesTotal = parseInt(object.bytesTotal, 10); - else if (typeof object.bytesTotal === "number") - message.bytesTotal = object.bytesTotal; - else if (typeof object.bytesTotal === "object") - message.bytesTotal = new $util.LongBits(object.bytesTotal.low >>> 0, object.bytesTotal.high >>> 0).toNumber(); + if ($util.Long) (message.bytesTotal = $util.Long.fromValue(object.bytesTotal)).unsigned = false; + else if (typeof object.bytesTotal === 'string') message.bytesTotal = parseInt(object.bytesTotal, 10); + else if (typeof object.bytesTotal === 'number') message.bytesTotal = object.bytesTotal; + else if (typeof object.bytesTotal === 'object') + message.bytesTotal = new $util.LongBits( + object.bytesTotal.low >>> 0, + object.bytesTotal.high >>> 0 + ).toNumber(); if (object.secondsUntilStorageExpiration != null) if ($util.Long) - (message.secondsUntilStorageExpiration = $util.Long.fromValue(object.secondsUntilStorageExpiration)).unsigned = false; - else if (typeof object.secondsUntilStorageExpiration === "string") + (message.secondsUntilStorageExpiration = $util.Long.fromValue( + object.secondsUntilStorageExpiration + )).unsigned = false; + else if (typeof object.secondsUntilStorageExpiration === 'string') message.secondsUntilStorageExpiration = parseInt(object.secondsUntilStorageExpiration, 10); - else if (typeof object.secondsUntilStorageExpiration === "number") + else if (typeof object.secondsUntilStorageExpiration === 'number') message.secondsUntilStorageExpiration = object.secondsUntilStorageExpiration; - else if (typeof object.secondsUntilStorageExpiration === "object") - message.secondsUntilStorageExpiration = new $util.LongBits(object.secondsUntilStorageExpiration.low >>> 0, object.secondsUntilStorageExpiration.high >>> 0).toNumber(); + else if (typeof object.secondsUntilStorageExpiration === 'object') + message.secondsUntilStorageExpiration = new $util.LongBits( + object.secondsUntilStorageExpiration.low >>> 0, + object.secondsUntilStorageExpiration.high >>> 0 + ).toNumber(); if (object.storageExpirationDate != null) message.storageExpirationDate = String(object.storageExpirationDate); if (object.hasAutoRenewableAppstoreSubscription != null) message.hasAutoRenewableAppstoreSubscription = Boolean(object.hasAutoRenewableAppstoreSubscription); - if (object.accountType != null) - message.accountType = object.accountType | 0; - if (object.uploadsRemaining != null) - message.uploadsRemaining = object.uploadsRemaining | 0; - if (object.enterpriseId != null) - message.enterpriseId = object.enterpriseId | 0; - if (object.chatEnabled != null) - message.chatEnabled = Boolean(object.chatEnabled); + if (object.accountType != null) message.accountType = object.accountType | 0; + if (object.uploadsRemaining != null) message.uploadsRemaining = object.uploadsRemaining | 0; + if (object.enterpriseId != null) message.enterpriseId = object.enterpriseId | 0; + if (object.chatEnabled != null) message.chatEnabled = Boolean(object.chatEnabled); if (object.auditAndReportingEnabled != null) message.auditAndReportingEnabled = Boolean(object.auditAndReportingEnabled); if (object.breachWatchFeatureDisable != null) message.breachWatchFeatureDisable = Boolean(object.breachWatchFeatureDisable); if (object.accountUid != null) - if (typeof object.accountUid === "string") - $util.base64.decode(object.accountUid, message.accountUid = $util.newBuffer($util.base64.length(object.accountUid)), 0); - else if (object.accountUid.length >= 0) - message.accountUid = object.accountUid; + if (typeof object.accountUid === 'string') + $util.base64.decode( + object.accountUid, + (message.accountUid = $util.newBuffer($util.base64.length(object.accountUid))), + 0 + ); + else if (object.accountUid.length >= 0) message.accountUid = object.accountUid; if (object.allowPersonalLicense != null) message.allowPersonalLicense = Boolean(object.allowPersonalLicense); - if (object.licensedBy != null) - message.licensedBy = String(object.licensedBy); - if (object.email != null) - message.email = String(object.email); - if (object.breachWatchEnabled != null) - message.breachWatchEnabled = Boolean(object.breachWatchEnabled); - if (object.breachWatchScanned != null) - message.breachWatchScanned = Boolean(object.breachWatchScanned); + if (object.licensedBy != null) message.licensedBy = String(object.licensedBy); + if (object.email != null) message.email = String(object.email); + if (object.breachWatchEnabled != null) message.breachWatchEnabled = Boolean(object.breachWatchEnabled); + if (object.breachWatchScanned != null) message.breachWatchScanned = Boolean(object.breachWatchScanned); if (object.breachWatchExpiration != null) if ($util.Long) - (message.breachWatchExpiration = $util.Long.fromValue(object.breachWatchExpiration)).unsigned = false; - else if (typeof object.breachWatchExpiration === "string") + (message.breachWatchExpiration = $util.Long.fromValue(object.breachWatchExpiration)).unsigned = + false; + else if (typeof object.breachWatchExpiration === 'string') message.breachWatchExpiration = parseInt(object.breachWatchExpiration, 10); - else if (typeof object.breachWatchExpiration === "number") + else if (typeof object.breachWatchExpiration === 'number') message.breachWatchExpiration = object.breachWatchExpiration; - else if (typeof object.breachWatchExpiration === "object") - message.breachWatchExpiration = new $util.LongBits(object.breachWatchExpiration.low >>> 0, object.breachWatchExpiration.high >>> 0).toNumber(); + else if (typeof object.breachWatchExpiration === 'object') + message.breachWatchExpiration = new $util.LongBits( + object.breachWatchExpiration.low >>> 0, + object.breachWatchExpiration.high >>> 0 + ).toNumber(); if (object.breachWatchDateCreated != null) if ($util.Long) - (message.breachWatchDateCreated = $util.Long.fromValue(object.breachWatchDateCreated)).unsigned = false; - else if (typeof object.breachWatchDateCreated === "string") + (message.breachWatchDateCreated = $util.Long.fromValue(object.breachWatchDateCreated)).unsigned = + false; + else if (typeof object.breachWatchDateCreated === 'string') message.breachWatchDateCreated = parseInt(object.breachWatchDateCreated, 10); - else if (typeof object.breachWatchDateCreated === "number") + else if (typeof object.breachWatchDateCreated === 'number') message.breachWatchDateCreated = object.breachWatchDateCreated; - else if (typeof object.breachWatchDateCreated === "object") - message.breachWatchDateCreated = new $util.LongBits(object.breachWatchDateCreated.low >>> 0, object.breachWatchDateCreated.high >>> 0).toNumber(); + else if (typeof object.breachWatchDateCreated === 'object') + message.breachWatchDateCreated = new $util.LongBits( + object.breachWatchDateCreated.low >>> 0, + object.breachWatchDateCreated.high >>> 0 + ).toNumber(); if (object.error != null) { - if (typeof object.error !== "object") - throw TypeError(".AccountSummary.License.error: object expected"); + if (typeof object.error !== 'object') throw TypeError('.AccountSummary.License.error: object expected'); message.error = $root.AccountSummary.Result.fromObject(object.error); } if (object.expiration != null) - if ($util.Long) - (message.expiration = $util.Long.fromValue(object.expiration)).unsigned = false; - else if (typeof object.expiration === "string") - message.expiration = parseInt(object.expiration, 10); - else if (typeof object.expiration === "number") - message.expiration = object.expiration; - else if (typeof object.expiration === "object") - message.expiration = new $util.LongBits(object.expiration.low >>> 0, object.expiration.high >>> 0).toNumber(); + if ($util.Long) (message.expiration = $util.Long.fromValue(object.expiration)).unsigned = false; + else if (typeof object.expiration === 'string') message.expiration = parseInt(object.expiration, 10); + else if (typeof object.expiration === 'number') message.expiration = object.expiration; + else if (typeof object.expiration === 'object') + message.expiration = new $util.LongBits( + object.expiration.low >>> 0, + object.expiration.high >>> 0 + ).toNumber(); if (object.storageExpiration != null) if ($util.Long) (message.storageExpiration = $util.Long.fromValue(object.storageExpiration)).unsigned = false; - else if (typeof object.storageExpiration === "string") + else if (typeof object.storageExpiration === 'string') message.storageExpiration = parseInt(object.storageExpiration, 10); - else if (typeof object.storageExpiration === "number") + else if (typeof object.storageExpiration === 'number') message.storageExpiration = object.storageExpiration; - else if (typeof object.storageExpiration === "object") - message.storageExpiration = new $util.LongBits(object.storageExpiration.low >>> 0, object.storageExpiration.high >>> 0).toNumber(); - if (object.uploadsCount != null) - message.uploadsCount = object.uploadsCount | 0; - if (object.units != null) - message.units = object.units | 0; - if (object.pendingEnterprise != null) - message.pendingEnterprise = Boolean(object.pendingEnterprise); - if (object.isPamEnabled != null) - message.isPamEnabled = Boolean(object.isPamEnabled); - if (object.isKsmEnabled != null) - message.isKsmEnabled = Boolean(object.isKsmEnabled); + else if (typeof object.storageExpiration === 'object') + message.storageExpiration = new $util.LongBits( + object.storageExpiration.low >>> 0, + object.storageExpiration.high >>> 0 + ).toNumber(); + if (object.uploadsCount != null) message.uploadsCount = object.uploadsCount | 0; + if (object.units != null) message.units = object.units | 0; + if (object.pendingEnterprise != null) message.pendingEnterprise = Boolean(object.pendingEnterprise); + if (object.isPamEnabled != null) message.isPamEnabled = Boolean(object.isPamEnabled); + if (object.isKsmEnabled != null) message.isKsmEnabled = Boolean(object.isKsmEnabled); return message; }; @@ -103514,37 +106922,36 @@ export const AccountSummary = $root.AccountSummary = (() => { * @returns {Object.} Plain object */ License.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - object.subscriptionCode = ""; + object.subscriptionCode = ''; object.productTypeId = 0; - object.productTypeName = ""; - object.expirationDate = ""; + object.productTypeName = ''; + object.expirationDate = ''; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.secondsUntilExpiration = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.secondsUntilExpiration = options.longs === String ? "0" : 0; + object.secondsUntilExpiration = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.secondsUntilExpiration = options.longs === String ? '0' : 0; object.maxDevices = 0; object.filePlanType = 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.bytesUsed = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.bytesUsed = options.longs === String ? "0" : 0; + object.bytesUsed = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.bytesUsed = options.longs === String ? '0' : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.bytesTotal = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.bytesTotal = options.longs === String ? "0" : 0; + object.bytesTotal = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.bytesTotal = options.longs === String ? '0' : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.secondsUntilStorageExpiration = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.secondsUntilStorageExpiration = options.longs === String ? "0" : 0; - object.storageExpirationDate = ""; + object.secondsUntilStorageExpiration = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.secondsUntilStorageExpiration = options.longs === String ? '0' : 0; + object.storageExpirationDate = ''; object.hasAutoRenewableAppstoreSubscription = false; object.accountType = 0; object.uploadsRemaining = 0; @@ -103552,136 +106959,217 @@ export const AccountSummary = $root.AccountSummary = (() => { object.chatEnabled = false; object.auditAndReportingEnabled = false; object.breachWatchFeatureDisable = false; - if (options.bytes === String) - object.accountUid = ""; + if (options.bytes === String) object.accountUid = ''; else { object.accountUid = []; - if (options.bytes !== Array) - object.accountUid = $util.newBuffer(object.accountUid); + if (options.bytes !== Array) object.accountUid = $util.newBuffer(object.accountUid); } object.allowPersonalLicense = false; - object.licensedBy = ""; - object.email = ""; + object.licensedBy = ''; + object.email = ''; object.breachWatchEnabled = false; object.breachWatchScanned = false; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.breachWatchExpiration = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.breachWatchExpiration = options.longs === String ? "0" : 0; + object.breachWatchExpiration = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.breachWatchExpiration = options.longs === String ? '0' : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.breachWatchDateCreated = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.breachWatchDateCreated = options.longs === String ? "0" : 0; + object.breachWatchDateCreated = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.breachWatchDateCreated = options.longs === String ? '0' : 0; object.error = null; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.expiration = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.expiration = options.longs === String ? "0" : 0; + object.expiration = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.expiration = options.longs === String ? '0' : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.storageExpiration = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.storageExpiration = options.longs === String ? "0" : 0; + object.storageExpiration = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.storageExpiration = options.longs === String ? '0' : 0; object.uploadsCount = 0; object.units = 0; object.pendingEnterprise = false; object.isPamEnabled = false; object.isKsmEnabled = false; } - if (message.subscriptionCode != null && message.hasOwnProperty("subscriptionCode")) + if (message.subscriptionCode != null && message.hasOwnProperty('subscriptionCode')) object.subscriptionCode = message.subscriptionCode; - if (message.productTypeId != null && message.hasOwnProperty("productTypeId")) + if (message.productTypeId != null && message.hasOwnProperty('productTypeId')) object.productTypeId = message.productTypeId; - if (message.productTypeName != null && message.hasOwnProperty("productTypeName")) + if (message.productTypeName != null && message.hasOwnProperty('productTypeName')) object.productTypeName = message.productTypeName; - if (message.expirationDate != null && message.hasOwnProperty("expirationDate")) + if (message.expirationDate != null && message.hasOwnProperty('expirationDate')) object.expirationDate = message.expirationDate; - if (message.secondsUntilExpiration != null && message.hasOwnProperty("secondsUntilExpiration")) - if (typeof message.secondsUntilExpiration === "number") - object.secondsUntilExpiration = options.longs === String ? String(message.secondsUntilExpiration) : message.secondsUntilExpiration; + if (message.secondsUntilExpiration != null && message.hasOwnProperty('secondsUntilExpiration')) + if (typeof message.secondsUntilExpiration === 'number') + object.secondsUntilExpiration = + options.longs === String + ? String(message.secondsUntilExpiration) + : message.secondsUntilExpiration; else - object.secondsUntilExpiration = options.longs === String ? $util.Long.prototype.toString.call(message.secondsUntilExpiration) : options.longs === Number ? new $util.LongBits(message.secondsUntilExpiration.low >>> 0, message.secondsUntilExpiration.high >>> 0).toNumber() : message.secondsUntilExpiration; - if (message.maxDevices != null && message.hasOwnProperty("maxDevices")) + object.secondsUntilExpiration = + options.longs === String + ? $util.Long.prototype.toString.call(message.secondsUntilExpiration) + : options.longs === Number + ? new $util.LongBits( + message.secondsUntilExpiration.low >>> 0, + message.secondsUntilExpiration.high >>> 0 + ).toNumber() + : message.secondsUntilExpiration; + if (message.maxDevices != null && message.hasOwnProperty('maxDevices')) object.maxDevices = message.maxDevices; - if (message.filePlanType != null && message.hasOwnProperty("filePlanType")) + if (message.filePlanType != null && message.hasOwnProperty('filePlanType')) object.filePlanType = message.filePlanType; - if (message.bytesUsed != null && message.hasOwnProperty("bytesUsed")) - if (typeof message.bytesUsed === "number") + if (message.bytesUsed != null && message.hasOwnProperty('bytesUsed')) + if (typeof message.bytesUsed === 'number') object.bytesUsed = options.longs === String ? String(message.bytesUsed) : message.bytesUsed; else - object.bytesUsed = options.longs === String ? $util.Long.prototype.toString.call(message.bytesUsed) : options.longs === Number ? new $util.LongBits(message.bytesUsed.low >>> 0, message.bytesUsed.high >>> 0).toNumber() : message.bytesUsed; - if (message.bytesTotal != null && message.hasOwnProperty("bytesTotal")) - if (typeof message.bytesTotal === "number") + object.bytesUsed = + options.longs === String + ? $util.Long.prototype.toString.call(message.bytesUsed) + : options.longs === Number + ? new $util.LongBits(message.bytesUsed.low >>> 0, message.bytesUsed.high >>> 0).toNumber() + : message.bytesUsed; + if (message.bytesTotal != null && message.hasOwnProperty('bytesTotal')) + if (typeof message.bytesTotal === 'number') object.bytesTotal = options.longs === String ? String(message.bytesTotal) : message.bytesTotal; else - object.bytesTotal = options.longs === String ? $util.Long.prototype.toString.call(message.bytesTotal) : options.longs === Number ? new $util.LongBits(message.bytesTotal.low >>> 0, message.bytesTotal.high >>> 0).toNumber() : message.bytesTotal; - if (message.secondsUntilStorageExpiration != null && message.hasOwnProperty("secondsUntilStorageExpiration")) - if (typeof message.secondsUntilStorageExpiration === "number") - object.secondsUntilStorageExpiration = options.longs === String ? String(message.secondsUntilStorageExpiration) : message.secondsUntilStorageExpiration; + object.bytesTotal = + options.longs === String + ? $util.Long.prototype.toString.call(message.bytesTotal) + : options.longs === Number + ? new $util.LongBits( + message.bytesTotal.low >>> 0, + message.bytesTotal.high >>> 0 + ).toNumber() + : message.bytesTotal; + if ( + message.secondsUntilStorageExpiration != null && + message.hasOwnProperty('secondsUntilStorageExpiration') + ) + if (typeof message.secondsUntilStorageExpiration === 'number') + object.secondsUntilStorageExpiration = + options.longs === String + ? String(message.secondsUntilStorageExpiration) + : message.secondsUntilStorageExpiration; else - object.secondsUntilStorageExpiration = options.longs === String ? $util.Long.prototype.toString.call(message.secondsUntilStorageExpiration) : options.longs === Number ? new $util.LongBits(message.secondsUntilStorageExpiration.low >>> 0, message.secondsUntilStorageExpiration.high >>> 0).toNumber() : message.secondsUntilStorageExpiration; - if (message.storageExpirationDate != null && message.hasOwnProperty("storageExpirationDate")) + object.secondsUntilStorageExpiration = + options.longs === String + ? $util.Long.prototype.toString.call(message.secondsUntilStorageExpiration) + : options.longs === Number + ? new $util.LongBits( + message.secondsUntilStorageExpiration.low >>> 0, + message.secondsUntilStorageExpiration.high >>> 0 + ).toNumber() + : message.secondsUntilStorageExpiration; + if (message.storageExpirationDate != null && message.hasOwnProperty('storageExpirationDate')) object.storageExpirationDate = message.storageExpirationDate; - if (message.hasAutoRenewableAppstoreSubscription != null && message.hasOwnProperty("hasAutoRenewableAppstoreSubscription")) + if ( + message.hasAutoRenewableAppstoreSubscription != null && + message.hasOwnProperty('hasAutoRenewableAppstoreSubscription') + ) object.hasAutoRenewableAppstoreSubscription = message.hasAutoRenewableAppstoreSubscription; - if (message.accountType != null && message.hasOwnProperty("accountType")) + if (message.accountType != null && message.hasOwnProperty('accountType')) object.accountType = message.accountType; - if (message.uploadsRemaining != null && message.hasOwnProperty("uploadsRemaining")) + if (message.uploadsRemaining != null && message.hasOwnProperty('uploadsRemaining')) object.uploadsRemaining = message.uploadsRemaining; - if (message.enterpriseId != null && message.hasOwnProperty("enterpriseId")) + if (message.enterpriseId != null && message.hasOwnProperty('enterpriseId')) object.enterpriseId = message.enterpriseId; - if (message.chatEnabled != null && message.hasOwnProperty("chatEnabled")) + if (message.chatEnabled != null && message.hasOwnProperty('chatEnabled')) object.chatEnabled = message.chatEnabled; - if (message.auditAndReportingEnabled != null && message.hasOwnProperty("auditAndReportingEnabled")) + if (message.auditAndReportingEnabled != null && message.hasOwnProperty('auditAndReportingEnabled')) object.auditAndReportingEnabled = message.auditAndReportingEnabled; - if (message.breachWatchFeatureDisable != null && message.hasOwnProperty("breachWatchFeatureDisable")) + if (message.breachWatchFeatureDisable != null && message.hasOwnProperty('breachWatchFeatureDisable')) object.breachWatchFeatureDisable = message.breachWatchFeatureDisable; - if (message.accountUid != null && message.hasOwnProperty("accountUid")) - object.accountUid = options.bytes === String ? $util.base64.encode(message.accountUid, 0, message.accountUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.accountUid) : message.accountUid; - if (message.allowPersonalLicense != null && message.hasOwnProperty("allowPersonalLicense")) + if (message.accountUid != null && message.hasOwnProperty('accountUid')) + object.accountUid = + options.bytes === String + ? $util.base64.encode(message.accountUid, 0, message.accountUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.accountUid) + : message.accountUid; + if (message.allowPersonalLicense != null && message.hasOwnProperty('allowPersonalLicense')) object.allowPersonalLicense = message.allowPersonalLicense; - if (message.licensedBy != null && message.hasOwnProperty("licensedBy")) + if (message.licensedBy != null && message.hasOwnProperty('licensedBy')) object.licensedBy = message.licensedBy; - if (message.email != null && message.hasOwnProperty("email")) - object.email = message.email; - if (message.breachWatchEnabled != null && message.hasOwnProperty("breachWatchEnabled")) + if (message.email != null && message.hasOwnProperty('email')) object.email = message.email; + if (message.breachWatchEnabled != null && message.hasOwnProperty('breachWatchEnabled')) object.breachWatchEnabled = message.breachWatchEnabled; - if (message.breachWatchScanned != null && message.hasOwnProperty("breachWatchScanned")) + if (message.breachWatchScanned != null && message.hasOwnProperty('breachWatchScanned')) object.breachWatchScanned = message.breachWatchScanned; - if (message.breachWatchExpiration != null && message.hasOwnProperty("breachWatchExpiration")) - if (typeof message.breachWatchExpiration === "number") - object.breachWatchExpiration = options.longs === String ? String(message.breachWatchExpiration) : message.breachWatchExpiration; + if (message.breachWatchExpiration != null && message.hasOwnProperty('breachWatchExpiration')) + if (typeof message.breachWatchExpiration === 'number') + object.breachWatchExpiration = + options.longs === String + ? String(message.breachWatchExpiration) + : message.breachWatchExpiration; else - object.breachWatchExpiration = options.longs === String ? $util.Long.prototype.toString.call(message.breachWatchExpiration) : options.longs === Number ? new $util.LongBits(message.breachWatchExpiration.low >>> 0, message.breachWatchExpiration.high >>> 0).toNumber() : message.breachWatchExpiration; - if (message.breachWatchDateCreated != null && message.hasOwnProperty("breachWatchDateCreated")) - if (typeof message.breachWatchDateCreated === "number") - object.breachWatchDateCreated = options.longs === String ? String(message.breachWatchDateCreated) : message.breachWatchDateCreated; + object.breachWatchExpiration = + options.longs === String + ? $util.Long.prototype.toString.call(message.breachWatchExpiration) + : options.longs === Number + ? new $util.LongBits( + message.breachWatchExpiration.low >>> 0, + message.breachWatchExpiration.high >>> 0 + ).toNumber() + : message.breachWatchExpiration; + if (message.breachWatchDateCreated != null && message.hasOwnProperty('breachWatchDateCreated')) + if (typeof message.breachWatchDateCreated === 'number') + object.breachWatchDateCreated = + options.longs === String + ? String(message.breachWatchDateCreated) + : message.breachWatchDateCreated; else - object.breachWatchDateCreated = options.longs === String ? $util.Long.prototype.toString.call(message.breachWatchDateCreated) : options.longs === Number ? new $util.LongBits(message.breachWatchDateCreated.low >>> 0, message.breachWatchDateCreated.high >>> 0).toNumber() : message.breachWatchDateCreated; - if (message.error != null && message.hasOwnProperty("error")) + object.breachWatchDateCreated = + options.longs === String + ? $util.Long.prototype.toString.call(message.breachWatchDateCreated) + : options.longs === Number + ? new $util.LongBits( + message.breachWatchDateCreated.low >>> 0, + message.breachWatchDateCreated.high >>> 0 + ).toNumber() + : message.breachWatchDateCreated; + if (message.error != null && message.hasOwnProperty('error')) object.error = $root.AccountSummary.Result.toObject(message.error, options); - if (message.expiration != null && message.hasOwnProperty("expiration")) - if (typeof message.expiration === "number") + if (message.expiration != null && message.hasOwnProperty('expiration')) + if (typeof message.expiration === 'number') object.expiration = options.longs === String ? String(message.expiration) : message.expiration; else - object.expiration = options.longs === String ? $util.Long.prototype.toString.call(message.expiration) : options.longs === Number ? new $util.LongBits(message.expiration.low >>> 0, message.expiration.high >>> 0).toNumber() : message.expiration; - if (message.storageExpiration != null && message.hasOwnProperty("storageExpiration")) - if (typeof message.storageExpiration === "number") - object.storageExpiration = options.longs === String ? String(message.storageExpiration) : message.storageExpiration; + object.expiration = + options.longs === String + ? $util.Long.prototype.toString.call(message.expiration) + : options.longs === Number + ? new $util.LongBits( + message.expiration.low >>> 0, + message.expiration.high >>> 0 + ).toNumber() + : message.expiration; + if (message.storageExpiration != null && message.hasOwnProperty('storageExpiration')) + if (typeof message.storageExpiration === 'number') + object.storageExpiration = + options.longs === String ? String(message.storageExpiration) : message.storageExpiration; else - object.storageExpiration = options.longs === String ? $util.Long.prototype.toString.call(message.storageExpiration) : options.longs === Number ? new $util.LongBits(message.storageExpiration.low >>> 0, message.storageExpiration.high >>> 0).toNumber() : message.storageExpiration; - if (message.uploadsCount != null && message.hasOwnProperty("uploadsCount")) + object.storageExpiration = + options.longs === String + ? $util.Long.prototype.toString.call(message.storageExpiration) + : options.longs === Number + ? new $util.LongBits( + message.storageExpiration.low >>> 0, + message.storageExpiration.high >>> 0 + ).toNumber() + : message.storageExpiration; + if (message.uploadsCount != null && message.hasOwnProperty('uploadsCount')) object.uploadsCount = message.uploadsCount; - if (message.units != null && message.hasOwnProperty("units")) - object.units = message.units; - if (message.pendingEnterprise != null && message.hasOwnProperty("pendingEnterprise")) + if (message.units != null && message.hasOwnProperty('units')) object.units = message.units; + if (message.pendingEnterprise != null && message.hasOwnProperty('pendingEnterprise')) object.pendingEnterprise = message.pendingEnterprise; - if (message.isPamEnabled != null && message.hasOwnProperty("isPamEnabled")) + if (message.isPamEnabled != null && message.hasOwnProperty('isPamEnabled')) object.isPamEnabled = message.isPamEnabled; - if (message.isKsmEnabled != null && message.hasOwnProperty("isKsmEnabled")) + if (message.isKsmEnabled != null && message.hasOwnProperty('isKsmEnabled')) object.isKsmEnabled = message.isKsmEnabled; return object; }; @@ -103707,16 +107195,15 @@ export const AccountSummary = $root.AccountSummary = (() => { */ License.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/AccountSummary.License"; + return typeUrlPrefix + '/AccountSummary.License'; }; return License; })(); - AccountSummary.AddOn = (function() { - + AccountSummary.AddOn = (function () { /** * Properties of an AddOn. * @memberof AccountSummary @@ -103742,8 +107229,7 @@ export const AccountSummary = $root.AccountSummary = (() => { function AddOn(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -103760,7 +107246,7 @@ export const AccountSummary = $root.AccountSummary = (() => { * @memberof AccountSummary.AddOn * @instance */ - AddOn.prototype.name = ""; + AddOn.prototype.name = ''; /** * AddOn expirationDate. @@ -103768,7 +107254,7 @@ export const AccountSummary = $root.AccountSummary = (() => { * @memberof AccountSummary.AddOn * @instance */ - AddOn.prototype.expirationDate = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + AddOn.prototype.expirationDate = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * AddOn createdDate. @@ -103776,7 +107262,7 @@ export const AccountSummary = $root.AccountSummary = (() => { * @memberof AccountSummary.AddOn * @instance */ - AddOn.prototype.createdDate = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + AddOn.prototype.createdDate = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * AddOn isTrial. @@ -103832,24 +107318,23 @@ export const AccountSummary = $root.AccountSummary = (() => { * @returns {$protobuf.Writer} Writer */ AddOn.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.licenseKeyId != null && Object.hasOwnProperty.call(message, "licenseKeyId")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.licenseKeyId); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.name); - if (message.expirationDate != null && Object.hasOwnProperty.call(message, "expirationDate")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.expirationDate); - if (message.createdDate != null && Object.hasOwnProperty.call(message, "createdDate")) - writer.uint32(/* id 4, wireType 0 =*/32).int64(message.createdDate); - if (message.isTrial != null && Object.hasOwnProperty.call(message, "isTrial")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.isTrial); - if (message.enabled != null && Object.hasOwnProperty.call(message, "enabled")) - writer.uint32(/* id 6, wireType 0 =*/48).bool(message.enabled); - if (message.scanned != null && Object.hasOwnProperty.call(message, "scanned")) - writer.uint32(/* id 7, wireType 0 =*/56).bool(message.scanned); - if (message.featureDisable != null && Object.hasOwnProperty.call(message, "featureDisable")) - writer.uint32(/* id 8, wireType 0 =*/64).bool(message.featureDisable); + if (!writer) writer = $Writer.create(); + if (message.licenseKeyId != null && Object.hasOwnProperty.call(message, 'licenseKeyId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int32(message.licenseKeyId); + if (message.name != null && Object.hasOwnProperty.call(message, 'name')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.name); + if (message.expirationDate != null && Object.hasOwnProperty.call(message, 'expirationDate')) + writer.uint32(/* id 3, wireType 0 =*/ 24).int64(message.expirationDate); + if (message.createdDate != null && Object.hasOwnProperty.call(message, 'createdDate')) + writer.uint32(/* id 4, wireType 0 =*/ 32).int64(message.createdDate); + if (message.isTrial != null && Object.hasOwnProperty.call(message, 'isTrial')) + writer.uint32(/* id 5, wireType 0 =*/ 40).bool(message.isTrial); + if (message.enabled != null && Object.hasOwnProperty.call(message, 'enabled')) + writer.uint32(/* id 6, wireType 0 =*/ 48).bool(message.enabled); + if (message.scanned != null && Object.hasOwnProperty.call(message, 'scanned')) + writer.uint32(/* id 7, wireType 0 =*/ 56).bool(message.scanned); + if (message.featureDisable != null && Object.hasOwnProperty.call(message, 'featureDisable')) + writer.uint32(/* id 8, wireType 0 =*/ 64).bool(message.featureDisable); return writer; }; @@ -103878,47 +107363,47 @@ export const AccountSummary = $root.AccountSummary = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ AddOn.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.AccountSummary.AddOn(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.AccountSummary.AddOn(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.licenseKeyId = reader.int32(); break; } - case 2: { + case 2: { message.name = reader.string(); break; } - case 3: { + case 3: { message.expirationDate = reader.int64(); break; } - case 4: { + case 4: { message.createdDate = reader.int64(); break; } - case 5: { + case 5: { message.isTrial = reader.bool(); break; } - case 6: { + case 6: { message.enabled = reader.bool(); break; } - case 7: { + case 7: { message.scanned = reader.bool(); break; } - case 8: { + case 8: { message.featureDisable = reader.bool(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -103935,8 +107420,7 @@ export const AccountSummary = $root.AccountSummary = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ AddOn.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -103949,32 +107433,39 @@ export const AccountSummary = $root.AccountSummary = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ AddOn.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.licenseKeyId != null && message.hasOwnProperty("licenseKeyId")) - if (!$util.isInteger(message.licenseKeyId)) - return "licenseKeyId: integer expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.expirationDate != null && message.hasOwnProperty("expirationDate")) - if (!$util.isInteger(message.expirationDate) && !(message.expirationDate && $util.isInteger(message.expirationDate.low) && $util.isInteger(message.expirationDate.high))) - return "expirationDate: integer|Long expected"; - if (message.createdDate != null && message.hasOwnProperty("createdDate")) - if (!$util.isInteger(message.createdDate) && !(message.createdDate && $util.isInteger(message.createdDate.low) && $util.isInteger(message.createdDate.high))) - return "createdDate: integer|Long expected"; - if (message.isTrial != null && message.hasOwnProperty("isTrial")) - if (typeof message.isTrial !== "boolean") - return "isTrial: boolean expected"; - if (message.enabled != null && message.hasOwnProperty("enabled")) - if (typeof message.enabled !== "boolean") - return "enabled: boolean expected"; - if (message.scanned != null && message.hasOwnProperty("scanned")) - if (typeof message.scanned !== "boolean") - return "scanned: boolean expected"; - if (message.featureDisable != null && message.hasOwnProperty("featureDisable")) - if (typeof message.featureDisable !== "boolean") - return "featureDisable: boolean expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.licenseKeyId != null && message.hasOwnProperty('licenseKeyId')) + if (!$util.isInteger(message.licenseKeyId)) return 'licenseKeyId: integer expected'; + if (message.name != null && message.hasOwnProperty('name')) + if (!$util.isString(message.name)) return 'name: string expected'; + if (message.expirationDate != null && message.hasOwnProperty('expirationDate')) + if ( + !$util.isInteger(message.expirationDate) && + !( + message.expirationDate && + $util.isInteger(message.expirationDate.low) && + $util.isInteger(message.expirationDate.high) + ) + ) + return 'expirationDate: integer|Long expected'; + if (message.createdDate != null && message.hasOwnProperty('createdDate')) + if ( + !$util.isInteger(message.createdDate) && + !( + message.createdDate && + $util.isInteger(message.createdDate.low) && + $util.isInteger(message.createdDate.high) + ) + ) + return 'createdDate: integer|Long expected'; + if (message.isTrial != null && message.hasOwnProperty('isTrial')) + if (typeof message.isTrial !== 'boolean') return 'isTrial: boolean expected'; + if (message.enabled != null && message.hasOwnProperty('enabled')) + if (typeof message.enabled !== 'boolean') return 'enabled: boolean expected'; + if (message.scanned != null && message.hasOwnProperty('scanned')) + if (typeof message.scanned !== 'boolean') return 'scanned: boolean expected'; + if (message.featureDisable != null && message.hasOwnProperty('featureDisable')) + if (typeof message.featureDisable !== 'boolean') return 'featureDisable: boolean expected'; return null; }; @@ -103987,39 +107478,33 @@ export const AccountSummary = $root.AccountSummary = (() => { * @returns {AccountSummary.AddOn} AddOn */ AddOn.fromObject = function fromObject(object) { - if (object instanceof $root.AccountSummary.AddOn) - return object; + if (object instanceof $root.AccountSummary.AddOn) return object; let message = new $root.AccountSummary.AddOn(); - if (object.licenseKeyId != null) - message.licenseKeyId = object.licenseKeyId | 0; - if (object.name != null) - message.name = String(object.name); + if (object.licenseKeyId != null) message.licenseKeyId = object.licenseKeyId | 0; + if (object.name != null) message.name = String(object.name); if (object.expirationDate != null) - if ($util.Long) - (message.expirationDate = $util.Long.fromValue(object.expirationDate)).unsigned = false; - else if (typeof object.expirationDate === "string") + if ($util.Long) (message.expirationDate = $util.Long.fromValue(object.expirationDate)).unsigned = false; + else if (typeof object.expirationDate === 'string') message.expirationDate = parseInt(object.expirationDate, 10); - else if (typeof object.expirationDate === "number") - message.expirationDate = object.expirationDate; - else if (typeof object.expirationDate === "object") - message.expirationDate = new $util.LongBits(object.expirationDate.low >>> 0, object.expirationDate.high >>> 0).toNumber(); + else if (typeof object.expirationDate === 'number') message.expirationDate = object.expirationDate; + else if (typeof object.expirationDate === 'object') + message.expirationDate = new $util.LongBits( + object.expirationDate.low >>> 0, + object.expirationDate.high >>> 0 + ).toNumber(); if (object.createdDate != null) - if ($util.Long) - (message.createdDate = $util.Long.fromValue(object.createdDate)).unsigned = false; - else if (typeof object.createdDate === "string") - message.createdDate = parseInt(object.createdDate, 10); - else if (typeof object.createdDate === "number") - message.createdDate = object.createdDate; - else if (typeof object.createdDate === "object") - message.createdDate = new $util.LongBits(object.createdDate.low >>> 0, object.createdDate.high >>> 0).toNumber(); - if (object.isTrial != null) - message.isTrial = Boolean(object.isTrial); - if (object.enabled != null) - message.enabled = Boolean(object.enabled); - if (object.scanned != null) - message.scanned = Boolean(object.scanned); - if (object.featureDisable != null) - message.featureDisable = Boolean(object.featureDisable); + if ($util.Long) (message.createdDate = $util.Long.fromValue(object.createdDate)).unsigned = false; + else if (typeof object.createdDate === 'string') message.createdDate = parseInt(object.createdDate, 10); + else if (typeof object.createdDate === 'number') message.createdDate = object.createdDate; + else if (typeof object.createdDate === 'object') + message.createdDate = new $util.LongBits( + object.createdDate.low >>> 0, + object.createdDate.high >>> 0 + ).toNumber(); + if (object.isTrial != null) message.isTrial = Boolean(object.isTrial); + if (object.enabled != null) message.enabled = Boolean(object.enabled); + if (object.scanned != null) message.scanned = Boolean(object.scanned); + if (object.featureDisable != null) message.featureDisable = Boolean(object.featureDisable); return message; }; @@ -104033,48 +107518,60 @@ export const AccountSummary = $root.AccountSummary = (() => { * @returns {Object.} Plain object */ AddOn.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { object.licenseKeyId = 0; - object.name = ""; + object.name = ''; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.expirationDate = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.expirationDate = options.longs === String ? "0" : 0; + object.expirationDate = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.expirationDate = options.longs === String ? '0' : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.createdDate = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.createdDate = options.longs === String ? "0" : 0; + object.createdDate = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.createdDate = options.longs === String ? '0' : 0; object.isTrial = false; object.enabled = false; object.scanned = false; object.featureDisable = false; } - if (message.licenseKeyId != null && message.hasOwnProperty("licenseKeyId")) + if (message.licenseKeyId != null && message.hasOwnProperty('licenseKeyId')) object.licenseKeyId = message.licenseKeyId; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.expirationDate != null && message.hasOwnProperty("expirationDate")) - if (typeof message.expirationDate === "number") - object.expirationDate = options.longs === String ? String(message.expirationDate) : message.expirationDate; + if (message.name != null && message.hasOwnProperty('name')) object.name = message.name; + if (message.expirationDate != null && message.hasOwnProperty('expirationDate')) + if (typeof message.expirationDate === 'number') + object.expirationDate = + options.longs === String ? String(message.expirationDate) : message.expirationDate; else - object.expirationDate = options.longs === String ? $util.Long.prototype.toString.call(message.expirationDate) : options.longs === Number ? new $util.LongBits(message.expirationDate.low >>> 0, message.expirationDate.high >>> 0).toNumber() : message.expirationDate; - if (message.createdDate != null && message.hasOwnProperty("createdDate")) - if (typeof message.createdDate === "number") + object.expirationDate = + options.longs === String + ? $util.Long.prototype.toString.call(message.expirationDate) + : options.longs === Number + ? new $util.LongBits( + message.expirationDate.low >>> 0, + message.expirationDate.high >>> 0 + ).toNumber() + : message.expirationDate; + if (message.createdDate != null && message.hasOwnProperty('createdDate')) + if (typeof message.createdDate === 'number') object.createdDate = options.longs === String ? String(message.createdDate) : message.createdDate; else - object.createdDate = options.longs === String ? $util.Long.prototype.toString.call(message.createdDate) : options.longs === Number ? new $util.LongBits(message.createdDate.low >>> 0, message.createdDate.high >>> 0).toNumber() : message.createdDate; - if (message.isTrial != null && message.hasOwnProperty("isTrial")) - object.isTrial = message.isTrial; - if (message.enabled != null && message.hasOwnProperty("enabled")) - object.enabled = message.enabled; - if (message.scanned != null && message.hasOwnProperty("scanned")) - object.scanned = message.scanned; - if (message.featureDisable != null && message.hasOwnProperty("featureDisable")) + object.createdDate = + options.longs === String + ? $util.Long.prototype.toString.call(message.createdDate) + : options.longs === Number + ? new $util.LongBits( + message.createdDate.low >>> 0, + message.createdDate.high >>> 0 + ).toNumber() + : message.createdDate; + if (message.isTrial != null && message.hasOwnProperty('isTrial')) object.isTrial = message.isTrial; + if (message.enabled != null && message.hasOwnProperty('enabled')) object.enabled = message.enabled; + if (message.scanned != null && message.hasOwnProperty('scanned')) object.scanned = message.scanned; + if (message.featureDisable != null && message.hasOwnProperty('featureDisable')) object.featureDisable = message.featureDisable; return object; }; @@ -104100,16 +107597,15 @@ export const AccountSummary = $root.AccountSummary = (() => { */ AddOn.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/AccountSummary.AddOn"; + return typeUrlPrefix + '/AccountSummary.AddOn'; }; return AddOn; })(); - AccountSummary.Settings = (function() { - + AccountSummary.Settings = (function () { /** * Properties of a Settings. * @memberof AccountSummary @@ -104172,8 +107668,7 @@ export const AccountSummary = $root.AccountSummary = (() => { this.personalUsernames = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -104190,7 +107685,7 @@ export const AccountSummary = $root.AccountSummary = (() => { * @memberof AccountSummary.Settings * @instance */ - Settings.prototype.mustPerformAccountShareBy = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + Settings.prototype.mustPerformAccountShareBy = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * Settings shareAccountTo. @@ -104214,7 +107709,7 @@ export const AccountSummary = $root.AccountSummary = (() => { * @memberof AccountSummary.Settings * @instance */ - Settings.prototype.passwordRulesIntro = ""; + Settings.prototype.passwordRulesIntro = ''; /** * Settings autoBackupDays. @@ -104230,7 +107725,7 @@ export const AccountSummary = $root.AccountSummary = (() => { * @memberof AccountSummary.Settings * @instance */ - Settings.prototype.theme = ""; + Settings.prototype.theme = ''; /** * Settings channel. @@ -104238,7 +107733,7 @@ export const AccountSummary = $root.AccountSummary = (() => { * @memberof AccountSummary.Settings * @instance */ - Settings.prototype.channel = ""; + Settings.prototype.channel = ''; /** * Settings channelValue. @@ -104246,7 +107741,7 @@ export const AccountSummary = $root.AccountSummary = (() => { * @memberof AccountSummary.Settings * @instance */ - Settings.prototype.channelValue = ""; + Settings.prototype.channelValue = ''; /** * Settings rsaConfigured. @@ -104382,7 +107877,7 @@ export const AccountSummary = $root.AccountSummary = (() => { * @memberof AccountSummary.Settings * @instance */ - Settings.prototype.logoutTimer = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + Settings.prototype.logoutTimer = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * Settings persistentLogin. @@ -104510,95 +108005,129 @@ export const AccountSummary = $root.AccountSummary = (() => { * @returns {$protobuf.Writer} Writer */ Settings.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.audit != null && Object.hasOwnProperty.call(message, "audit")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.audit); - if (message.mustPerformAccountShareBy != null && Object.hasOwnProperty.call(message, "mustPerformAccountShareBy")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.mustPerformAccountShareBy); + if (!writer) writer = $Writer.create(); + if (message.audit != null && Object.hasOwnProperty.call(message, 'audit')) + writer.uint32(/* id 1, wireType 0 =*/ 8).bool(message.audit); + if ( + message.mustPerformAccountShareBy != null && + Object.hasOwnProperty.call(message, 'mustPerformAccountShareBy') + ) + writer.uint32(/* id 2, wireType 0 =*/ 16).int64(message.mustPerformAccountShareBy); if (message.shareAccountTo != null && message.shareAccountTo.length) for (let i = 0; i < message.shareAccountTo.length; ++i) - $root.AccountSummary.MissingAccountShareKey.encode(message.shareAccountTo[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + $root.AccountSummary.MissingAccountShareKey.encode( + message.shareAccountTo[i], + writer.uint32(/* id 3, wireType 2 =*/ 26).fork() + ).ldelim(); if (message.rules != null && message.rules.length) for (let i = 0; i < message.rules.length; ++i) - $root.AccountSummary.PasswordRule.encode(message.rules[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.passwordRulesIntro != null && Object.hasOwnProperty.call(message, "passwordRulesIntro")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.passwordRulesIntro); - if (message.autoBackupDays != null && Object.hasOwnProperty.call(message, "autoBackupDays")) - writer.uint32(/* id 6, wireType 0 =*/48).int32(message.autoBackupDays); - if (message.theme != null && Object.hasOwnProperty.call(message, "theme")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.theme); - if (message.channel != null && Object.hasOwnProperty.call(message, "channel")) - writer.uint32(/* id 8, wireType 2 =*/66).string(message.channel); - if (message.channelValue != null && Object.hasOwnProperty.call(message, "channelValue")) - writer.uint32(/* id 9, wireType 2 =*/74).string(message.channelValue); - if (message.rsaConfigured != null && Object.hasOwnProperty.call(message, "rsaConfigured")) - writer.uint32(/* id 10, wireType 0 =*/80).bool(message.rsaConfigured); - if (message.emailVerified != null && Object.hasOwnProperty.call(message, "emailVerified")) - writer.uint32(/* id 11, wireType 0 =*/88).bool(message.emailVerified); - if (message.masterPasswordLastModified != null && Object.hasOwnProperty.call(message, "masterPasswordLastModified")) - writer.uint32(/* id 12, wireType 1 =*/97).double(message.masterPasswordLastModified); - if (message.accountFolderKey != null && Object.hasOwnProperty.call(message, "accountFolderKey")) - writer.uint32(/* id 13, wireType 2 =*/106).bytes(message.accountFolderKey); + $root.AccountSummary.PasswordRule.encode( + message.rules[i], + writer.uint32(/* id 4, wireType 2 =*/ 34).fork() + ).ldelim(); + if (message.passwordRulesIntro != null && Object.hasOwnProperty.call(message, 'passwordRulesIntro')) + writer.uint32(/* id 5, wireType 2 =*/ 42).string(message.passwordRulesIntro); + if (message.autoBackupDays != null && Object.hasOwnProperty.call(message, 'autoBackupDays')) + writer.uint32(/* id 6, wireType 0 =*/ 48).int32(message.autoBackupDays); + if (message.theme != null && Object.hasOwnProperty.call(message, 'theme')) + writer.uint32(/* id 7, wireType 2 =*/ 58).string(message.theme); + if (message.channel != null && Object.hasOwnProperty.call(message, 'channel')) + writer.uint32(/* id 8, wireType 2 =*/ 66).string(message.channel); + if (message.channelValue != null && Object.hasOwnProperty.call(message, 'channelValue')) + writer.uint32(/* id 9, wireType 2 =*/ 74).string(message.channelValue); + if (message.rsaConfigured != null && Object.hasOwnProperty.call(message, 'rsaConfigured')) + writer.uint32(/* id 10, wireType 0 =*/ 80).bool(message.rsaConfigured); + if (message.emailVerified != null && Object.hasOwnProperty.call(message, 'emailVerified')) + writer.uint32(/* id 11, wireType 0 =*/ 88).bool(message.emailVerified); + if ( + message.masterPasswordLastModified != null && + Object.hasOwnProperty.call(message, 'masterPasswordLastModified') + ) + writer.uint32(/* id 12, wireType 1 =*/ 97).double(message.masterPasswordLastModified); + if (message.accountFolderKey != null && Object.hasOwnProperty.call(message, 'accountFolderKey')) + writer.uint32(/* id 13, wireType 2 =*/ 106).bytes(message.accountFolderKey); if (message.securityKeys != null && message.securityKeys.length) for (let i = 0; i < message.securityKeys.length; ++i) - $root.AccountSummary.SecurityKey.encode(message.securityKeys[i], writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim(); + $root.AccountSummary.SecurityKey.encode( + message.securityKeys[i], + writer.uint32(/* id 14, wireType 2 =*/ 114).fork() + ).ldelim(); if (message.keyValues != null && message.keyValues.length) for (let i = 0; i < message.keyValues.length; ++i) - $root.AccountSummary.KeyValue.encode(message.keyValues[i], writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim(); - if (message.ssoUser != null && Object.hasOwnProperty.call(message, "ssoUser")) - writer.uint32(/* id 16, wireType 0 =*/128).bool(message.ssoUser); - if (message.onlineAccessOnly != null && Object.hasOwnProperty.call(message, "onlineAccessOnly")) - writer.uint32(/* id 17, wireType 0 =*/136).bool(message.onlineAccessOnly); - if (message.masterPasswordExpiry != null && Object.hasOwnProperty.call(message, "masterPasswordExpiry")) - writer.uint32(/* id 18, wireType 0 =*/144).int32(message.masterPasswordExpiry); - if (message.twoFactorRequired != null && Object.hasOwnProperty.call(message, "twoFactorRequired")) - writer.uint32(/* id 19, wireType 0 =*/152).bool(message.twoFactorRequired); - if (message.disallowExport != null && Object.hasOwnProperty.call(message, "disallowExport")) - writer.uint32(/* id 20, wireType 0 =*/160).bool(message.disallowExport); - if (message.restrictFiles != null && Object.hasOwnProperty.call(message, "restrictFiles")) - writer.uint32(/* id 21, wireType 0 =*/168).bool(message.restrictFiles); - if (message.restrictAllSharing != null && Object.hasOwnProperty.call(message, "restrictAllSharing")) - writer.uint32(/* id 22, wireType 0 =*/176).bool(message.restrictAllSharing); - if (message.restrictSharing != null && Object.hasOwnProperty.call(message, "restrictSharing")) - writer.uint32(/* id 23, wireType 0 =*/184).bool(message.restrictSharing); - if (message.restrictSharingIncomingAll != null && Object.hasOwnProperty.call(message, "restrictSharingIncomingAll")) - writer.uint32(/* id 24, wireType 0 =*/192).bool(message.restrictSharingIncomingAll); - if (message.restrictSharingIncomingEnterprise != null && Object.hasOwnProperty.call(message, "restrictSharingIncomingEnterprise")) - writer.uint32(/* id 25, wireType 0 =*/200).bool(message.restrictSharingIncomingEnterprise); - if (message.logoutTimer != null && Object.hasOwnProperty.call(message, "logoutTimer")) - writer.uint32(/* id 26, wireType 0 =*/208).int64(message.logoutTimer); - if (message.persistentLogin != null && Object.hasOwnProperty.call(message, "persistentLogin")) - writer.uint32(/* id 27, wireType 0 =*/216).bool(message.persistentLogin); - if (message.ipDisableAutoApprove != null && Object.hasOwnProperty.call(message, "ipDisableAutoApprove")) - writer.uint32(/* id 28, wireType 0 =*/224).bool(message.ipDisableAutoApprove); - if (message.shareDataKeyWithEccPublicKey != null && Object.hasOwnProperty.call(message, "shareDataKeyWithEccPublicKey")) - writer.uint32(/* id 29, wireType 0 =*/232).bool(message.shareDataKeyWithEccPublicKey); - if (message.shareDataKeyWithDevicePublicKey != null && Object.hasOwnProperty.call(message, "shareDataKeyWithDevicePublicKey")) - writer.uint32(/* id 30, wireType 0 =*/240).bool(message.shareDataKeyWithDevicePublicKey); - if (message.RecordTypesCounter != null && Object.hasOwnProperty.call(message, "RecordTypesCounter")) - writer.uint32(/* id 31, wireType 0 =*/248).int32(message.RecordTypesCounter); - if (message.RecordTypesEnterpriseCounter != null && Object.hasOwnProperty.call(message, "RecordTypesEnterpriseCounter")) - writer.uint32(/* id 32, wireType 0 =*/256).int32(message.RecordTypesEnterpriseCounter); - if (message.recordTypesEnabled != null && Object.hasOwnProperty.call(message, "recordTypesEnabled")) - writer.uint32(/* id 33, wireType 0 =*/264).bool(message.recordTypesEnabled); - if (message.canManageRecordTypes != null && Object.hasOwnProperty.call(message, "canManageRecordTypes")) - writer.uint32(/* id 34, wireType 0 =*/272).bool(message.canManageRecordTypes); - if (message.recordTypesPAMCounter != null && Object.hasOwnProperty.call(message, "recordTypesPAMCounter")) - writer.uint32(/* id 35, wireType 0 =*/280).int32(message.recordTypesPAMCounter); - if (message.logoutTimerMinutes != null && Object.hasOwnProperty.call(message, "logoutTimerMinutes")) - writer.uint32(/* id 36, wireType 0 =*/288).int32(message.logoutTimerMinutes); - if (message.securityKeysNoUserVerify != null && Object.hasOwnProperty.call(message, "securityKeysNoUserVerify")) - writer.uint32(/* id 37, wireType 0 =*/296).bool(message.securityKeysNoUserVerify); + $root.AccountSummary.KeyValue.encode( + message.keyValues[i], + writer.uint32(/* id 15, wireType 2 =*/ 122).fork() + ).ldelim(); + if (message.ssoUser != null && Object.hasOwnProperty.call(message, 'ssoUser')) + writer.uint32(/* id 16, wireType 0 =*/ 128).bool(message.ssoUser); + if (message.onlineAccessOnly != null && Object.hasOwnProperty.call(message, 'onlineAccessOnly')) + writer.uint32(/* id 17, wireType 0 =*/ 136).bool(message.onlineAccessOnly); + if (message.masterPasswordExpiry != null && Object.hasOwnProperty.call(message, 'masterPasswordExpiry')) + writer.uint32(/* id 18, wireType 0 =*/ 144).int32(message.masterPasswordExpiry); + if (message.twoFactorRequired != null && Object.hasOwnProperty.call(message, 'twoFactorRequired')) + writer.uint32(/* id 19, wireType 0 =*/ 152).bool(message.twoFactorRequired); + if (message.disallowExport != null && Object.hasOwnProperty.call(message, 'disallowExport')) + writer.uint32(/* id 20, wireType 0 =*/ 160).bool(message.disallowExport); + if (message.restrictFiles != null && Object.hasOwnProperty.call(message, 'restrictFiles')) + writer.uint32(/* id 21, wireType 0 =*/ 168).bool(message.restrictFiles); + if (message.restrictAllSharing != null && Object.hasOwnProperty.call(message, 'restrictAllSharing')) + writer.uint32(/* id 22, wireType 0 =*/ 176).bool(message.restrictAllSharing); + if (message.restrictSharing != null && Object.hasOwnProperty.call(message, 'restrictSharing')) + writer.uint32(/* id 23, wireType 0 =*/ 184).bool(message.restrictSharing); + if ( + message.restrictSharingIncomingAll != null && + Object.hasOwnProperty.call(message, 'restrictSharingIncomingAll') + ) + writer.uint32(/* id 24, wireType 0 =*/ 192).bool(message.restrictSharingIncomingAll); + if ( + message.restrictSharingIncomingEnterprise != null && + Object.hasOwnProperty.call(message, 'restrictSharingIncomingEnterprise') + ) + writer.uint32(/* id 25, wireType 0 =*/ 200).bool(message.restrictSharingIncomingEnterprise); + if (message.logoutTimer != null && Object.hasOwnProperty.call(message, 'logoutTimer')) + writer.uint32(/* id 26, wireType 0 =*/ 208).int64(message.logoutTimer); + if (message.persistentLogin != null && Object.hasOwnProperty.call(message, 'persistentLogin')) + writer.uint32(/* id 27, wireType 0 =*/ 216).bool(message.persistentLogin); + if (message.ipDisableAutoApprove != null && Object.hasOwnProperty.call(message, 'ipDisableAutoApprove')) + writer.uint32(/* id 28, wireType 0 =*/ 224).bool(message.ipDisableAutoApprove); + if ( + message.shareDataKeyWithEccPublicKey != null && + Object.hasOwnProperty.call(message, 'shareDataKeyWithEccPublicKey') + ) + writer.uint32(/* id 29, wireType 0 =*/ 232).bool(message.shareDataKeyWithEccPublicKey); + if ( + message.shareDataKeyWithDevicePublicKey != null && + Object.hasOwnProperty.call(message, 'shareDataKeyWithDevicePublicKey') + ) + writer.uint32(/* id 30, wireType 0 =*/ 240).bool(message.shareDataKeyWithDevicePublicKey); + if (message.RecordTypesCounter != null && Object.hasOwnProperty.call(message, 'RecordTypesCounter')) + writer.uint32(/* id 31, wireType 0 =*/ 248).int32(message.RecordTypesCounter); + if ( + message.RecordTypesEnterpriseCounter != null && + Object.hasOwnProperty.call(message, 'RecordTypesEnterpriseCounter') + ) + writer.uint32(/* id 32, wireType 0 =*/ 256).int32(message.RecordTypesEnterpriseCounter); + if (message.recordTypesEnabled != null && Object.hasOwnProperty.call(message, 'recordTypesEnabled')) + writer.uint32(/* id 33, wireType 0 =*/ 264).bool(message.recordTypesEnabled); + if (message.canManageRecordTypes != null && Object.hasOwnProperty.call(message, 'canManageRecordTypes')) + writer.uint32(/* id 34, wireType 0 =*/ 272).bool(message.canManageRecordTypes); + if (message.recordTypesPAMCounter != null && Object.hasOwnProperty.call(message, 'recordTypesPAMCounter')) + writer.uint32(/* id 35, wireType 0 =*/ 280).int32(message.recordTypesPAMCounter); + if (message.logoutTimerMinutes != null && Object.hasOwnProperty.call(message, 'logoutTimerMinutes')) + writer.uint32(/* id 36, wireType 0 =*/ 288).int32(message.logoutTimerMinutes); + if ( + message.securityKeysNoUserVerify != null && + Object.hasOwnProperty.call(message, 'securityKeysNoUserVerify') + ) + writer.uint32(/* id 37, wireType 0 =*/ 296).bool(message.securityKeysNoUserVerify); if (message.channels != null && message.channels.length) { - writer.uint32(/* id 38, wireType 2 =*/306).fork(); - for (let i = 0; i < message.channels.length; ++i) - writer.int32(message.channels[i]); + writer.uint32(/* id 38, wireType 2 =*/ 306).fork(); + for (let i = 0; i < message.channels.length; ++i) writer.int32(message.channels[i]); writer.ldelim(); } if (message.personalUsernames != null && message.personalUsernames.length) for (let i = 0; i < message.personalUsernames.length; ++i) - writer.uint32(/* id 39, wireType 2 =*/314).string(message.personalUsernames[i]); + writer.uint32(/* id 39, wireType 2 =*/ 314).string(message.personalUsernames[i]); return writer; }; @@ -104627,188 +108156,183 @@ export const AccountSummary = $root.AccountSummary = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ Settings.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.AccountSummary.Settings(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.AccountSummary.Settings(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.audit = reader.bool(); break; } - case 2: { + case 2: { message.mustPerformAccountShareBy = reader.int64(); break; } - case 3: { - if (!(message.shareAccountTo && message.shareAccountTo.length)) - message.shareAccountTo = []; - message.shareAccountTo.push($root.AccountSummary.MissingAccountShareKey.decode(reader, reader.uint32())); + case 3: { + if (!(message.shareAccountTo && message.shareAccountTo.length)) message.shareAccountTo = []; + message.shareAccountTo.push( + $root.AccountSummary.MissingAccountShareKey.decode(reader, reader.uint32()) + ); break; } - case 4: { - if (!(message.rules && message.rules.length)) - message.rules = []; + case 4: { + if (!(message.rules && message.rules.length)) message.rules = []; message.rules.push($root.AccountSummary.PasswordRule.decode(reader, reader.uint32())); break; } - case 5: { + case 5: { message.passwordRulesIntro = reader.string(); break; } - case 6: { + case 6: { message.autoBackupDays = reader.int32(); break; } - case 7: { + case 7: { message.theme = reader.string(); break; } - case 8: { + case 8: { message.channel = reader.string(); break; } - case 9: { + case 9: { message.channelValue = reader.string(); break; } - case 10: { + case 10: { message.rsaConfigured = reader.bool(); break; } - case 11: { + case 11: { message.emailVerified = reader.bool(); break; } - case 12: { + case 12: { message.masterPasswordLastModified = reader.double(); break; } - case 13: { + case 13: { message.accountFolderKey = reader.bytes(); break; } - case 14: { - if (!(message.securityKeys && message.securityKeys.length)) - message.securityKeys = []; + case 14: { + if (!(message.securityKeys && message.securityKeys.length)) message.securityKeys = []; message.securityKeys.push($root.AccountSummary.SecurityKey.decode(reader, reader.uint32())); break; } - case 15: { - if (!(message.keyValues && message.keyValues.length)) - message.keyValues = []; + case 15: { + if (!(message.keyValues && message.keyValues.length)) message.keyValues = []; message.keyValues.push($root.AccountSummary.KeyValue.decode(reader, reader.uint32())); break; } - case 16: { + case 16: { message.ssoUser = reader.bool(); break; } - case 17: { + case 17: { message.onlineAccessOnly = reader.bool(); break; } - case 18: { + case 18: { message.masterPasswordExpiry = reader.int32(); break; } - case 19: { + case 19: { message.twoFactorRequired = reader.bool(); break; } - case 20: { + case 20: { message.disallowExport = reader.bool(); break; } - case 21: { + case 21: { message.restrictFiles = reader.bool(); break; } - case 22: { + case 22: { message.restrictAllSharing = reader.bool(); break; } - case 23: { + case 23: { message.restrictSharing = reader.bool(); break; } - case 24: { + case 24: { message.restrictSharingIncomingAll = reader.bool(); break; } - case 25: { + case 25: { message.restrictSharingIncomingEnterprise = reader.bool(); break; } - case 26: { + case 26: { message.logoutTimer = reader.int64(); break; } - case 27: { + case 27: { message.persistentLogin = reader.bool(); break; } - case 28: { + case 28: { message.ipDisableAutoApprove = reader.bool(); break; } - case 29: { + case 29: { message.shareDataKeyWithEccPublicKey = reader.bool(); break; } - case 30: { + case 30: { message.shareDataKeyWithDevicePublicKey = reader.bool(); break; } - case 31: { + case 31: { message.RecordTypesCounter = reader.int32(); break; } - case 32: { + case 32: { message.RecordTypesEnterpriseCounter = reader.int32(); break; } - case 33: { + case 33: { message.recordTypesEnabled = reader.bool(); break; } - case 34: { + case 34: { message.canManageRecordTypes = reader.bool(); break; } - case 35: { + case 35: { message.recordTypesPAMCounter = reader.int32(); break; } - case 36: { + case 36: { message.logoutTimerMinutes = reader.int32(); break; } - case 37: { + case 37: { message.securityKeysNoUserVerify = reader.bool(); break; } - case 38: { - if (!(message.channels && message.channels.length)) - message.channels = []; + case 38: { + if (!(message.channels && message.channels.length)) message.channels = []; if ((tag & 7) === 2) { let end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.channels.push(reader.int32()); - } else - message.channels.push(reader.int32()); + while (reader.pos < end2) message.channels.push(reader.int32()); + } else message.channels.push(reader.int32()); break; } - case 39: { + case 39: { if (!(message.personalUsernames && message.personalUsernames.length)) message.personalUsernames = []; message.personalUsernames.push(reader.string()); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -104825,8 +108349,7 @@ export const AccountSummary = $root.AccountSummary = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ Settings.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -104839,169 +108362,159 @@ export const AccountSummary = $root.AccountSummary = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ Settings.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.audit != null && message.hasOwnProperty("audit")) - if (typeof message.audit !== "boolean") - return "audit: boolean expected"; - if (message.mustPerformAccountShareBy != null && message.hasOwnProperty("mustPerformAccountShareBy")) - if (!$util.isInteger(message.mustPerformAccountShareBy) && !(message.mustPerformAccountShareBy && $util.isInteger(message.mustPerformAccountShareBy.low) && $util.isInteger(message.mustPerformAccountShareBy.high))) - return "mustPerformAccountShareBy: integer|Long expected"; - if (message.shareAccountTo != null && message.hasOwnProperty("shareAccountTo")) { - if (!Array.isArray(message.shareAccountTo)) - return "shareAccountTo: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.audit != null && message.hasOwnProperty('audit')) + if (typeof message.audit !== 'boolean') return 'audit: boolean expected'; + if (message.mustPerformAccountShareBy != null && message.hasOwnProperty('mustPerformAccountShareBy')) + if ( + !$util.isInteger(message.mustPerformAccountShareBy) && + !( + message.mustPerformAccountShareBy && + $util.isInteger(message.mustPerformAccountShareBy.low) && + $util.isInteger(message.mustPerformAccountShareBy.high) + ) + ) + return 'mustPerformAccountShareBy: integer|Long expected'; + if (message.shareAccountTo != null && message.hasOwnProperty('shareAccountTo')) { + if (!Array.isArray(message.shareAccountTo)) return 'shareAccountTo: array expected'; for (let i = 0; i < message.shareAccountTo.length; ++i) { let error = $root.AccountSummary.MissingAccountShareKey.verify(message.shareAccountTo[i]); - if (error) - return "shareAccountTo." + error; + if (error) return 'shareAccountTo.' + error; } } - if (message.rules != null && message.hasOwnProperty("rules")) { - if (!Array.isArray(message.rules)) - return "rules: array expected"; + if (message.rules != null && message.hasOwnProperty('rules')) { + if (!Array.isArray(message.rules)) return 'rules: array expected'; for (let i = 0; i < message.rules.length; ++i) { let error = $root.AccountSummary.PasswordRule.verify(message.rules[i]); - if (error) - return "rules." + error; - } - } - if (message.passwordRulesIntro != null && message.hasOwnProperty("passwordRulesIntro")) - if (!$util.isString(message.passwordRulesIntro)) - return "passwordRulesIntro: string expected"; - if (message.autoBackupDays != null && message.hasOwnProperty("autoBackupDays")) - if (!$util.isInteger(message.autoBackupDays)) - return "autoBackupDays: integer expected"; - if (message.theme != null && message.hasOwnProperty("theme")) - if (!$util.isString(message.theme)) - return "theme: string expected"; - if (message.channel != null && message.hasOwnProperty("channel")) - if (!$util.isString(message.channel)) - return "channel: string expected"; - if (message.channelValue != null && message.hasOwnProperty("channelValue")) - if (!$util.isString(message.channelValue)) - return "channelValue: string expected"; - if (message.rsaConfigured != null && message.hasOwnProperty("rsaConfigured")) - if (typeof message.rsaConfigured !== "boolean") - return "rsaConfigured: boolean expected"; - if (message.emailVerified != null && message.hasOwnProperty("emailVerified")) - if (typeof message.emailVerified !== "boolean") - return "emailVerified: boolean expected"; - if (message.masterPasswordLastModified != null && message.hasOwnProperty("masterPasswordLastModified")) - if (typeof message.masterPasswordLastModified !== "number") - return "masterPasswordLastModified: number expected"; - if (message.accountFolderKey != null && message.hasOwnProperty("accountFolderKey")) - if (!(message.accountFolderKey && typeof message.accountFolderKey.length === "number" || $util.isString(message.accountFolderKey))) - return "accountFolderKey: buffer expected"; - if (message.securityKeys != null && message.hasOwnProperty("securityKeys")) { - if (!Array.isArray(message.securityKeys)) - return "securityKeys: array expected"; + if (error) return 'rules.' + error; + } + } + if (message.passwordRulesIntro != null && message.hasOwnProperty('passwordRulesIntro')) + if (!$util.isString(message.passwordRulesIntro)) return 'passwordRulesIntro: string expected'; + if (message.autoBackupDays != null && message.hasOwnProperty('autoBackupDays')) + if (!$util.isInteger(message.autoBackupDays)) return 'autoBackupDays: integer expected'; + if (message.theme != null && message.hasOwnProperty('theme')) + if (!$util.isString(message.theme)) return 'theme: string expected'; + if (message.channel != null && message.hasOwnProperty('channel')) + if (!$util.isString(message.channel)) return 'channel: string expected'; + if (message.channelValue != null && message.hasOwnProperty('channelValue')) + if (!$util.isString(message.channelValue)) return 'channelValue: string expected'; + if (message.rsaConfigured != null && message.hasOwnProperty('rsaConfigured')) + if (typeof message.rsaConfigured !== 'boolean') return 'rsaConfigured: boolean expected'; + if (message.emailVerified != null && message.hasOwnProperty('emailVerified')) + if (typeof message.emailVerified !== 'boolean') return 'emailVerified: boolean expected'; + if (message.masterPasswordLastModified != null && message.hasOwnProperty('masterPasswordLastModified')) + if (typeof message.masterPasswordLastModified !== 'number') + return 'masterPasswordLastModified: number expected'; + if (message.accountFolderKey != null && message.hasOwnProperty('accountFolderKey')) + if ( + !( + (message.accountFolderKey && typeof message.accountFolderKey.length === 'number') || + $util.isString(message.accountFolderKey) + ) + ) + return 'accountFolderKey: buffer expected'; + if (message.securityKeys != null && message.hasOwnProperty('securityKeys')) { + if (!Array.isArray(message.securityKeys)) return 'securityKeys: array expected'; for (let i = 0; i < message.securityKeys.length; ++i) { let error = $root.AccountSummary.SecurityKey.verify(message.securityKeys[i]); - if (error) - return "securityKeys." + error; + if (error) return 'securityKeys.' + error; } } - if (message.keyValues != null && message.hasOwnProperty("keyValues")) { - if (!Array.isArray(message.keyValues)) - return "keyValues: array expected"; + if (message.keyValues != null && message.hasOwnProperty('keyValues')) { + if (!Array.isArray(message.keyValues)) return 'keyValues: array expected'; for (let i = 0; i < message.keyValues.length; ++i) { let error = $root.AccountSummary.KeyValue.verify(message.keyValues[i]); - if (error) - return "keyValues." + error; - } - } - if (message.ssoUser != null && message.hasOwnProperty("ssoUser")) - if (typeof message.ssoUser !== "boolean") - return "ssoUser: boolean expected"; - if (message.onlineAccessOnly != null && message.hasOwnProperty("onlineAccessOnly")) - if (typeof message.onlineAccessOnly !== "boolean") - return "onlineAccessOnly: boolean expected"; - if (message.masterPasswordExpiry != null && message.hasOwnProperty("masterPasswordExpiry")) - if (!$util.isInteger(message.masterPasswordExpiry)) - return "masterPasswordExpiry: integer expected"; - if (message.twoFactorRequired != null && message.hasOwnProperty("twoFactorRequired")) - if (typeof message.twoFactorRequired !== "boolean") - return "twoFactorRequired: boolean expected"; - if (message.disallowExport != null && message.hasOwnProperty("disallowExport")) - if (typeof message.disallowExport !== "boolean") - return "disallowExport: boolean expected"; - if (message.restrictFiles != null && message.hasOwnProperty("restrictFiles")) - if (typeof message.restrictFiles !== "boolean") - return "restrictFiles: boolean expected"; - if (message.restrictAllSharing != null && message.hasOwnProperty("restrictAllSharing")) - if (typeof message.restrictAllSharing !== "boolean") - return "restrictAllSharing: boolean expected"; - if (message.restrictSharing != null && message.hasOwnProperty("restrictSharing")) - if (typeof message.restrictSharing !== "boolean") - return "restrictSharing: boolean expected"; - if (message.restrictSharingIncomingAll != null && message.hasOwnProperty("restrictSharingIncomingAll")) - if (typeof message.restrictSharingIncomingAll !== "boolean") - return "restrictSharingIncomingAll: boolean expected"; - if (message.restrictSharingIncomingEnterprise != null && message.hasOwnProperty("restrictSharingIncomingEnterprise")) - if (typeof message.restrictSharingIncomingEnterprise !== "boolean") - return "restrictSharingIncomingEnterprise: boolean expected"; - if (message.logoutTimer != null && message.hasOwnProperty("logoutTimer")) - if (!$util.isInteger(message.logoutTimer) && !(message.logoutTimer && $util.isInteger(message.logoutTimer.low) && $util.isInteger(message.logoutTimer.high))) - return "logoutTimer: integer|Long expected"; - if (message.persistentLogin != null && message.hasOwnProperty("persistentLogin")) - if (typeof message.persistentLogin !== "boolean") - return "persistentLogin: boolean expected"; - if (message.ipDisableAutoApprove != null && message.hasOwnProperty("ipDisableAutoApprove")) - if (typeof message.ipDisableAutoApprove !== "boolean") - return "ipDisableAutoApprove: boolean expected"; - if (message.shareDataKeyWithEccPublicKey != null && message.hasOwnProperty("shareDataKeyWithEccPublicKey")) - if (typeof message.shareDataKeyWithEccPublicKey !== "boolean") - return "shareDataKeyWithEccPublicKey: boolean expected"; - if (message.shareDataKeyWithDevicePublicKey != null && message.hasOwnProperty("shareDataKeyWithDevicePublicKey")) - if (typeof message.shareDataKeyWithDevicePublicKey !== "boolean") - return "shareDataKeyWithDevicePublicKey: boolean expected"; - if (message.RecordTypesCounter != null && message.hasOwnProperty("RecordTypesCounter")) - if (!$util.isInteger(message.RecordTypesCounter)) - return "RecordTypesCounter: integer expected"; - if (message.RecordTypesEnterpriseCounter != null && message.hasOwnProperty("RecordTypesEnterpriseCounter")) + if (error) return 'keyValues.' + error; + } + } + if (message.ssoUser != null && message.hasOwnProperty('ssoUser')) + if (typeof message.ssoUser !== 'boolean') return 'ssoUser: boolean expected'; + if (message.onlineAccessOnly != null && message.hasOwnProperty('onlineAccessOnly')) + if (typeof message.onlineAccessOnly !== 'boolean') return 'onlineAccessOnly: boolean expected'; + if (message.masterPasswordExpiry != null && message.hasOwnProperty('masterPasswordExpiry')) + if (!$util.isInteger(message.masterPasswordExpiry)) return 'masterPasswordExpiry: integer expected'; + if (message.twoFactorRequired != null && message.hasOwnProperty('twoFactorRequired')) + if (typeof message.twoFactorRequired !== 'boolean') return 'twoFactorRequired: boolean expected'; + if (message.disallowExport != null && message.hasOwnProperty('disallowExport')) + if (typeof message.disallowExport !== 'boolean') return 'disallowExport: boolean expected'; + if (message.restrictFiles != null && message.hasOwnProperty('restrictFiles')) + if (typeof message.restrictFiles !== 'boolean') return 'restrictFiles: boolean expected'; + if (message.restrictAllSharing != null && message.hasOwnProperty('restrictAllSharing')) + if (typeof message.restrictAllSharing !== 'boolean') return 'restrictAllSharing: boolean expected'; + if (message.restrictSharing != null && message.hasOwnProperty('restrictSharing')) + if (typeof message.restrictSharing !== 'boolean') return 'restrictSharing: boolean expected'; + if (message.restrictSharingIncomingAll != null && message.hasOwnProperty('restrictSharingIncomingAll')) + if (typeof message.restrictSharingIncomingAll !== 'boolean') + return 'restrictSharingIncomingAll: boolean expected'; + if ( + message.restrictSharingIncomingEnterprise != null && + message.hasOwnProperty('restrictSharingIncomingEnterprise') + ) + if (typeof message.restrictSharingIncomingEnterprise !== 'boolean') + return 'restrictSharingIncomingEnterprise: boolean expected'; + if (message.logoutTimer != null && message.hasOwnProperty('logoutTimer')) + if ( + !$util.isInteger(message.logoutTimer) && + !( + message.logoutTimer && + $util.isInteger(message.logoutTimer.low) && + $util.isInteger(message.logoutTimer.high) + ) + ) + return 'logoutTimer: integer|Long expected'; + if (message.persistentLogin != null && message.hasOwnProperty('persistentLogin')) + if (typeof message.persistentLogin !== 'boolean') return 'persistentLogin: boolean expected'; + if (message.ipDisableAutoApprove != null && message.hasOwnProperty('ipDisableAutoApprove')) + if (typeof message.ipDisableAutoApprove !== 'boolean') return 'ipDisableAutoApprove: boolean expected'; + if (message.shareDataKeyWithEccPublicKey != null && message.hasOwnProperty('shareDataKeyWithEccPublicKey')) + if (typeof message.shareDataKeyWithEccPublicKey !== 'boolean') + return 'shareDataKeyWithEccPublicKey: boolean expected'; + if ( + message.shareDataKeyWithDevicePublicKey != null && + message.hasOwnProperty('shareDataKeyWithDevicePublicKey') + ) + if (typeof message.shareDataKeyWithDevicePublicKey !== 'boolean') + return 'shareDataKeyWithDevicePublicKey: boolean expected'; + if (message.RecordTypesCounter != null && message.hasOwnProperty('RecordTypesCounter')) + if (!$util.isInteger(message.RecordTypesCounter)) return 'RecordTypesCounter: integer expected'; + if (message.RecordTypesEnterpriseCounter != null && message.hasOwnProperty('RecordTypesEnterpriseCounter')) if (!$util.isInteger(message.RecordTypesEnterpriseCounter)) - return "RecordTypesEnterpriseCounter: integer expected"; - if (message.recordTypesEnabled != null && message.hasOwnProperty("recordTypesEnabled")) - if (typeof message.recordTypesEnabled !== "boolean") - return "recordTypesEnabled: boolean expected"; - if (message.canManageRecordTypes != null && message.hasOwnProperty("canManageRecordTypes")) - if (typeof message.canManageRecordTypes !== "boolean") - return "canManageRecordTypes: boolean expected"; - if (message.recordTypesPAMCounter != null && message.hasOwnProperty("recordTypesPAMCounter")) - if (!$util.isInteger(message.recordTypesPAMCounter)) - return "recordTypesPAMCounter: integer expected"; - if (message.logoutTimerMinutes != null && message.hasOwnProperty("logoutTimerMinutes")) - if (!$util.isInteger(message.logoutTimerMinutes)) - return "logoutTimerMinutes: integer expected"; - if (message.securityKeysNoUserVerify != null && message.hasOwnProperty("securityKeysNoUserVerify")) - if (typeof message.securityKeysNoUserVerify !== "boolean") - return "securityKeysNoUserVerify: boolean expected"; - if (message.channels != null && message.hasOwnProperty("channels")) { - if (!Array.isArray(message.channels)) - return "channels: array expected"; + return 'RecordTypesEnterpriseCounter: integer expected'; + if (message.recordTypesEnabled != null && message.hasOwnProperty('recordTypesEnabled')) + if (typeof message.recordTypesEnabled !== 'boolean') return 'recordTypesEnabled: boolean expected'; + if (message.canManageRecordTypes != null && message.hasOwnProperty('canManageRecordTypes')) + if (typeof message.canManageRecordTypes !== 'boolean') return 'canManageRecordTypes: boolean expected'; + if (message.recordTypesPAMCounter != null && message.hasOwnProperty('recordTypesPAMCounter')) + if (!$util.isInteger(message.recordTypesPAMCounter)) return 'recordTypesPAMCounter: integer expected'; + if (message.logoutTimerMinutes != null && message.hasOwnProperty('logoutTimerMinutes')) + if (!$util.isInteger(message.logoutTimerMinutes)) return 'logoutTimerMinutes: integer expected'; + if (message.securityKeysNoUserVerify != null && message.hasOwnProperty('securityKeysNoUserVerify')) + if (typeof message.securityKeysNoUserVerify !== 'boolean') + return 'securityKeysNoUserVerify: boolean expected'; + if (message.channels != null && message.hasOwnProperty('channels')) { + if (!Array.isArray(message.channels)) return 'channels: array expected'; for (let i = 0; i < message.channels.length; ++i) switch (message.channels[i]) { - default: - return "channels: enum value[] expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - break; + default: + return 'channels: enum value[] expected'; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + break; } } - if (message.personalUsernames != null && message.hasOwnProperty("personalUsernames")) { - if (!Array.isArray(message.personalUsernames)) - return "personalUsernames: array expected"; + if (message.personalUsernames != null && message.hasOwnProperty('personalUsernames')) { + if (!Array.isArray(message.personalUsernames)) return 'personalUsernames: array expected'; for (let i = 0; i < message.personalUsernames.length; ++i) - if (!$util.isString(message.personalUsernames[i])) - return "personalUsernames: string[] expected"; + if (!$util.isString(message.personalUsernames[i])) return 'personalUsernames: string[] expected'; } return null; }; @@ -105015,188 +108528,175 @@ export const AccountSummary = $root.AccountSummary = (() => { * @returns {AccountSummary.Settings} Settings */ Settings.fromObject = function fromObject(object) { - if (object instanceof $root.AccountSummary.Settings) - return object; + if (object instanceof $root.AccountSummary.Settings) return object; let message = new $root.AccountSummary.Settings(); - if (object.audit != null) - message.audit = Boolean(object.audit); + if (object.audit != null) message.audit = Boolean(object.audit); if (object.mustPerformAccountShareBy != null) if ($util.Long) - (message.mustPerformAccountShareBy = $util.Long.fromValue(object.mustPerformAccountShareBy)).unsigned = false; - else if (typeof object.mustPerformAccountShareBy === "string") + (message.mustPerformAccountShareBy = $util.Long.fromValue( + object.mustPerformAccountShareBy + )).unsigned = false; + else if (typeof object.mustPerformAccountShareBy === 'string') message.mustPerformAccountShareBy = parseInt(object.mustPerformAccountShareBy, 10); - else if (typeof object.mustPerformAccountShareBy === "number") + else if (typeof object.mustPerformAccountShareBy === 'number') message.mustPerformAccountShareBy = object.mustPerformAccountShareBy; - else if (typeof object.mustPerformAccountShareBy === "object") - message.mustPerformAccountShareBy = new $util.LongBits(object.mustPerformAccountShareBy.low >>> 0, object.mustPerformAccountShareBy.high >>> 0).toNumber(); + else if (typeof object.mustPerformAccountShareBy === 'object') + message.mustPerformAccountShareBy = new $util.LongBits( + object.mustPerformAccountShareBy.low >>> 0, + object.mustPerformAccountShareBy.high >>> 0 + ).toNumber(); if (object.shareAccountTo) { if (!Array.isArray(object.shareAccountTo)) - throw TypeError(".AccountSummary.Settings.shareAccountTo: array expected"); + throw TypeError('.AccountSummary.Settings.shareAccountTo: array expected'); message.shareAccountTo = []; for (let i = 0; i < object.shareAccountTo.length; ++i) { - if (typeof object.shareAccountTo[i] !== "object") - throw TypeError(".AccountSummary.Settings.shareAccountTo: object expected"); - message.shareAccountTo[i] = $root.AccountSummary.MissingAccountShareKey.fromObject(object.shareAccountTo[i]); + if (typeof object.shareAccountTo[i] !== 'object') + throw TypeError('.AccountSummary.Settings.shareAccountTo: object expected'); + message.shareAccountTo[i] = $root.AccountSummary.MissingAccountShareKey.fromObject( + object.shareAccountTo[i] + ); } } if (object.rules) { - if (!Array.isArray(object.rules)) - throw TypeError(".AccountSummary.Settings.rules: array expected"); + if (!Array.isArray(object.rules)) throw TypeError('.AccountSummary.Settings.rules: array expected'); message.rules = []; for (let i = 0; i < object.rules.length; ++i) { - if (typeof object.rules[i] !== "object") - throw TypeError(".AccountSummary.Settings.rules: object expected"); + if (typeof object.rules[i] !== 'object') + throw TypeError('.AccountSummary.Settings.rules: object expected'); message.rules[i] = $root.AccountSummary.PasswordRule.fromObject(object.rules[i]); } } - if (object.passwordRulesIntro != null) - message.passwordRulesIntro = String(object.passwordRulesIntro); - if (object.autoBackupDays != null) - message.autoBackupDays = object.autoBackupDays | 0; - if (object.theme != null) - message.theme = String(object.theme); - if (object.channel != null) - message.channel = String(object.channel); - if (object.channelValue != null) - message.channelValue = String(object.channelValue); - if (object.rsaConfigured != null) - message.rsaConfigured = Boolean(object.rsaConfigured); - if (object.emailVerified != null) - message.emailVerified = Boolean(object.emailVerified); + if (object.passwordRulesIntro != null) message.passwordRulesIntro = String(object.passwordRulesIntro); + if (object.autoBackupDays != null) message.autoBackupDays = object.autoBackupDays | 0; + if (object.theme != null) message.theme = String(object.theme); + if (object.channel != null) message.channel = String(object.channel); + if (object.channelValue != null) message.channelValue = String(object.channelValue); + if (object.rsaConfigured != null) message.rsaConfigured = Boolean(object.rsaConfigured); + if (object.emailVerified != null) message.emailVerified = Boolean(object.emailVerified); if (object.masterPasswordLastModified != null) message.masterPasswordLastModified = Number(object.masterPasswordLastModified); if (object.accountFolderKey != null) - if (typeof object.accountFolderKey === "string") - $util.base64.decode(object.accountFolderKey, message.accountFolderKey = $util.newBuffer($util.base64.length(object.accountFolderKey)), 0); - else if (object.accountFolderKey.length >= 0) - message.accountFolderKey = object.accountFolderKey; + if (typeof object.accountFolderKey === 'string') + $util.base64.decode( + object.accountFolderKey, + (message.accountFolderKey = $util.newBuffer($util.base64.length(object.accountFolderKey))), + 0 + ); + else if (object.accountFolderKey.length >= 0) message.accountFolderKey = object.accountFolderKey; if (object.securityKeys) { if (!Array.isArray(object.securityKeys)) - throw TypeError(".AccountSummary.Settings.securityKeys: array expected"); + throw TypeError('.AccountSummary.Settings.securityKeys: array expected'); message.securityKeys = []; for (let i = 0; i < object.securityKeys.length; ++i) { - if (typeof object.securityKeys[i] !== "object") - throw TypeError(".AccountSummary.Settings.securityKeys: object expected"); + if (typeof object.securityKeys[i] !== 'object') + throw TypeError('.AccountSummary.Settings.securityKeys: object expected'); message.securityKeys[i] = $root.AccountSummary.SecurityKey.fromObject(object.securityKeys[i]); } } if (object.keyValues) { if (!Array.isArray(object.keyValues)) - throw TypeError(".AccountSummary.Settings.keyValues: array expected"); + throw TypeError('.AccountSummary.Settings.keyValues: array expected'); message.keyValues = []; for (let i = 0; i < object.keyValues.length; ++i) { - if (typeof object.keyValues[i] !== "object") - throw TypeError(".AccountSummary.Settings.keyValues: object expected"); + if (typeof object.keyValues[i] !== 'object') + throw TypeError('.AccountSummary.Settings.keyValues: object expected'); message.keyValues[i] = $root.AccountSummary.KeyValue.fromObject(object.keyValues[i]); } } - if (object.ssoUser != null) - message.ssoUser = Boolean(object.ssoUser); - if (object.onlineAccessOnly != null) - message.onlineAccessOnly = Boolean(object.onlineAccessOnly); - if (object.masterPasswordExpiry != null) - message.masterPasswordExpiry = object.masterPasswordExpiry | 0; - if (object.twoFactorRequired != null) - message.twoFactorRequired = Boolean(object.twoFactorRequired); - if (object.disallowExport != null) - message.disallowExport = Boolean(object.disallowExport); - if (object.restrictFiles != null) - message.restrictFiles = Boolean(object.restrictFiles); - if (object.restrictAllSharing != null) - message.restrictAllSharing = Boolean(object.restrictAllSharing); - if (object.restrictSharing != null) - message.restrictSharing = Boolean(object.restrictSharing); + if (object.ssoUser != null) message.ssoUser = Boolean(object.ssoUser); + if (object.onlineAccessOnly != null) message.onlineAccessOnly = Boolean(object.onlineAccessOnly); + if (object.masterPasswordExpiry != null) message.masterPasswordExpiry = object.masterPasswordExpiry | 0; + if (object.twoFactorRequired != null) message.twoFactorRequired = Boolean(object.twoFactorRequired); + if (object.disallowExport != null) message.disallowExport = Boolean(object.disallowExport); + if (object.restrictFiles != null) message.restrictFiles = Boolean(object.restrictFiles); + if (object.restrictAllSharing != null) message.restrictAllSharing = Boolean(object.restrictAllSharing); + if (object.restrictSharing != null) message.restrictSharing = Boolean(object.restrictSharing); if (object.restrictSharingIncomingAll != null) message.restrictSharingIncomingAll = Boolean(object.restrictSharingIncomingAll); if (object.restrictSharingIncomingEnterprise != null) message.restrictSharingIncomingEnterprise = Boolean(object.restrictSharingIncomingEnterprise); if (object.logoutTimer != null) - if ($util.Long) - (message.logoutTimer = $util.Long.fromValue(object.logoutTimer)).unsigned = false; - else if (typeof object.logoutTimer === "string") - message.logoutTimer = parseInt(object.logoutTimer, 10); - else if (typeof object.logoutTimer === "number") - message.logoutTimer = object.logoutTimer; - else if (typeof object.logoutTimer === "object") - message.logoutTimer = new $util.LongBits(object.logoutTimer.low >>> 0, object.logoutTimer.high >>> 0).toNumber(); - if (object.persistentLogin != null) - message.persistentLogin = Boolean(object.persistentLogin); + if ($util.Long) (message.logoutTimer = $util.Long.fromValue(object.logoutTimer)).unsigned = false; + else if (typeof object.logoutTimer === 'string') message.logoutTimer = parseInt(object.logoutTimer, 10); + else if (typeof object.logoutTimer === 'number') message.logoutTimer = object.logoutTimer; + else if (typeof object.logoutTimer === 'object') + message.logoutTimer = new $util.LongBits( + object.logoutTimer.low >>> 0, + object.logoutTimer.high >>> 0 + ).toNumber(); + if (object.persistentLogin != null) message.persistentLogin = Boolean(object.persistentLogin); if (object.ipDisableAutoApprove != null) message.ipDisableAutoApprove = Boolean(object.ipDisableAutoApprove); if (object.shareDataKeyWithEccPublicKey != null) message.shareDataKeyWithEccPublicKey = Boolean(object.shareDataKeyWithEccPublicKey); if (object.shareDataKeyWithDevicePublicKey != null) message.shareDataKeyWithDevicePublicKey = Boolean(object.shareDataKeyWithDevicePublicKey); - if (object.RecordTypesCounter != null) - message.RecordTypesCounter = object.RecordTypesCounter | 0; + if (object.RecordTypesCounter != null) message.RecordTypesCounter = object.RecordTypesCounter | 0; if (object.RecordTypesEnterpriseCounter != null) message.RecordTypesEnterpriseCounter = object.RecordTypesEnterpriseCounter | 0; - if (object.recordTypesEnabled != null) - message.recordTypesEnabled = Boolean(object.recordTypesEnabled); + if (object.recordTypesEnabled != null) message.recordTypesEnabled = Boolean(object.recordTypesEnabled); if (object.canManageRecordTypes != null) message.canManageRecordTypes = Boolean(object.canManageRecordTypes); - if (object.recordTypesPAMCounter != null) - message.recordTypesPAMCounter = object.recordTypesPAMCounter | 0; - if (object.logoutTimerMinutes != null) - message.logoutTimerMinutes = object.logoutTimerMinutes | 0; + if (object.recordTypesPAMCounter != null) message.recordTypesPAMCounter = object.recordTypesPAMCounter | 0; + if (object.logoutTimerMinutes != null) message.logoutTimerMinutes = object.logoutTimerMinutes | 0; if (object.securityKeysNoUserVerify != null) message.securityKeysNoUserVerify = Boolean(object.securityKeysNoUserVerify); if (object.channels) { if (!Array.isArray(object.channels)) - throw TypeError(".AccountSummary.Settings.channels: array expected"); + throw TypeError('.AccountSummary.Settings.channels: array expected'); message.channels = []; for (let i = 0; i < object.channels.length; ++i) switch (object.channels[i]) { - default: - if (typeof object.channels[i] === "number") { - message.channels[i] = object.channels[i]; + default: + if (typeof object.channels[i] === 'number') { + message.channels[i] = object.channels[i]; + break; + } + case 'TWO_FA_CT_NONE': + case 0: + message.channels[i] = 0; + break; + case 'TWO_FA_CT_TOTP': + case 1: + message.channels[i] = 1; + break; + case 'TWO_FA_CT_SMS': + case 2: + message.channels[i] = 2; + break; + case 'TWO_FA_CT_DUO': + case 3: + message.channels[i] = 3; + break; + case 'TWO_FA_CT_RSA': + case 4: + message.channels[i] = 4; + break; + case 'TWO_FA_CT_BACKUP': + case 5: + message.channels[i] = 5; + break; + case 'TWO_FA_CT_U2F': + case 6: + message.channels[i] = 6; + break; + case 'TWO_FA_CT_WEBAUTHN': + case 7: + message.channels[i] = 7; + break; + case 'TWO_FA_CT_KEEPER': + case 8: + message.channels[i] = 8; + break; + case 'TWO_FA_CT_DNA': + case 9: + message.channels[i] = 9; break; - } - case "TWO_FA_CT_NONE": - case 0: - message.channels[i] = 0; - break; - case "TWO_FA_CT_TOTP": - case 1: - message.channels[i] = 1; - break; - case "TWO_FA_CT_SMS": - case 2: - message.channels[i] = 2; - break; - case "TWO_FA_CT_DUO": - case 3: - message.channels[i] = 3; - break; - case "TWO_FA_CT_RSA": - case 4: - message.channels[i] = 4; - break; - case "TWO_FA_CT_BACKUP": - case 5: - message.channels[i] = 5; - break; - case "TWO_FA_CT_U2F": - case 6: - message.channels[i] = 6; - break; - case "TWO_FA_CT_WEBAUTHN": - case 7: - message.channels[i] = 7; - break; - case "TWO_FA_CT_KEEPER": - case 8: - message.channels[i] = 8; - break; - case "TWO_FA_CT_DNA": - case 9: - message.channels[i] = 9; - break; } } if (object.personalUsernames) { if (!Array.isArray(object.personalUsernames)) - throw TypeError(".AccountSummary.Settings.personalUsernames: array expected"); + throw TypeError('.AccountSummary.Settings.personalUsernames: array expected'); message.personalUsernames = []; for (let i = 0; i < object.personalUsernames.length; ++i) message.personalUsernames[i] = String(object.personalUsernames[i]); @@ -105214,8 +108714,7 @@ export const AccountSummary = $root.AccountSummary = (() => { * @returns {Object.} Plain object */ Settings.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.arrays || options.defaults) { object.shareAccountTo = []; @@ -105229,23 +108728,21 @@ export const AccountSummary = $root.AccountSummary = (() => { object.audit = false; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.mustPerformAccountShareBy = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.mustPerformAccountShareBy = options.longs === String ? "0" : 0; - object.passwordRulesIntro = ""; + object.mustPerformAccountShareBy = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.mustPerformAccountShareBy = options.longs === String ? '0' : 0; + object.passwordRulesIntro = ''; object.autoBackupDays = 0; - object.theme = ""; - object.channel = ""; - object.channelValue = ""; + object.theme = ''; + object.channel = ''; + object.channelValue = ''; object.rsaConfigured = false; object.emailVerified = false; object.masterPasswordLastModified = 0; - if (options.bytes === String) - object.accountFolderKey = ""; + if (options.bytes === String) object.accountFolderKey = ''; else { object.accountFolderKey = []; - if (options.bytes !== Array) - object.accountFolderKey = $util.newBuffer(object.accountFolderKey); + if (options.bytes !== Array) object.accountFolderKey = $util.newBuffer(object.accountFolderKey); } object.ssoUser = false; object.onlineAccessOnly = false; @@ -105259,9 +108756,9 @@ export const AccountSummary = $root.AccountSummary = (() => { object.restrictSharingIncomingEnterprise = false; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.logoutTimer = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.logoutTimer = options.longs === String ? "0" : 0; + object.logoutTimer = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.logoutTimer = options.longs === String ? '0' : 0; object.persistentLogin = false; object.ipDisableAutoApprove = false; object.shareDataKeyWithEccPublicKey = false; @@ -105274,102 +108771,142 @@ export const AccountSummary = $root.AccountSummary = (() => { object.logoutTimerMinutes = 0; object.securityKeysNoUserVerify = false; } - if (message.audit != null && message.hasOwnProperty("audit")) - object.audit = message.audit; - if (message.mustPerformAccountShareBy != null && message.hasOwnProperty("mustPerformAccountShareBy")) - if (typeof message.mustPerformAccountShareBy === "number") - object.mustPerformAccountShareBy = options.longs === String ? String(message.mustPerformAccountShareBy) : message.mustPerformAccountShareBy; + if (message.audit != null && message.hasOwnProperty('audit')) object.audit = message.audit; + if (message.mustPerformAccountShareBy != null && message.hasOwnProperty('mustPerformAccountShareBy')) + if (typeof message.mustPerformAccountShareBy === 'number') + object.mustPerformAccountShareBy = + options.longs === String + ? String(message.mustPerformAccountShareBy) + : message.mustPerformAccountShareBy; else - object.mustPerformAccountShareBy = options.longs === String ? $util.Long.prototype.toString.call(message.mustPerformAccountShareBy) : options.longs === Number ? new $util.LongBits(message.mustPerformAccountShareBy.low >>> 0, message.mustPerformAccountShareBy.high >>> 0).toNumber() : message.mustPerformAccountShareBy; + object.mustPerformAccountShareBy = + options.longs === String + ? $util.Long.prototype.toString.call(message.mustPerformAccountShareBy) + : options.longs === Number + ? new $util.LongBits( + message.mustPerformAccountShareBy.low >>> 0, + message.mustPerformAccountShareBy.high >>> 0 + ).toNumber() + : message.mustPerformAccountShareBy; if (message.shareAccountTo && message.shareAccountTo.length) { object.shareAccountTo = []; for (let j = 0; j < message.shareAccountTo.length; ++j) - object.shareAccountTo[j] = $root.AccountSummary.MissingAccountShareKey.toObject(message.shareAccountTo[j], options); + object.shareAccountTo[j] = $root.AccountSummary.MissingAccountShareKey.toObject( + message.shareAccountTo[j], + options + ); } if (message.rules && message.rules.length) { object.rules = []; for (let j = 0; j < message.rules.length; ++j) object.rules[j] = $root.AccountSummary.PasswordRule.toObject(message.rules[j], options); } - if (message.passwordRulesIntro != null && message.hasOwnProperty("passwordRulesIntro")) + if (message.passwordRulesIntro != null && message.hasOwnProperty('passwordRulesIntro')) object.passwordRulesIntro = message.passwordRulesIntro; - if (message.autoBackupDays != null && message.hasOwnProperty("autoBackupDays")) + if (message.autoBackupDays != null && message.hasOwnProperty('autoBackupDays')) object.autoBackupDays = message.autoBackupDays; - if (message.theme != null && message.hasOwnProperty("theme")) - object.theme = message.theme; - if (message.channel != null && message.hasOwnProperty("channel")) - object.channel = message.channel; - if (message.channelValue != null && message.hasOwnProperty("channelValue")) + if (message.theme != null && message.hasOwnProperty('theme')) object.theme = message.theme; + if (message.channel != null && message.hasOwnProperty('channel')) object.channel = message.channel; + if (message.channelValue != null && message.hasOwnProperty('channelValue')) object.channelValue = message.channelValue; - if (message.rsaConfigured != null && message.hasOwnProperty("rsaConfigured")) + if (message.rsaConfigured != null && message.hasOwnProperty('rsaConfigured')) object.rsaConfigured = message.rsaConfigured; - if (message.emailVerified != null && message.hasOwnProperty("emailVerified")) + if (message.emailVerified != null && message.hasOwnProperty('emailVerified')) object.emailVerified = message.emailVerified; - if (message.masterPasswordLastModified != null && message.hasOwnProperty("masterPasswordLastModified")) - object.masterPasswordLastModified = options.json && !isFinite(message.masterPasswordLastModified) ? String(message.masterPasswordLastModified) : message.masterPasswordLastModified; - if (message.accountFolderKey != null && message.hasOwnProperty("accountFolderKey")) - object.accountFolderKey = options.bytes === String ? $util.base64.encode(message.accountFolderKey, 0, message.accountFolderKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.accountFolderKey) : message.accountFolderKey; + if (message.masterPasswordLastModified != null && message.hasOwnProperty('masterPasswordLastModified')) + object.masterPasswordLastModified = + options.json && !isFinite(message.masterPasswordLastModified) + ? String(message.masterPasswordLastModified) + : message.masterPasswordLastModified; + if (message.accountFolderKey != null && message.hasOwnProperty('accountFolderKey')) + object.accountFolderKey = + options.bytes === String + ? $util.base64.encode(message.accountFolderKey, 0, message.accountFolderKey.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.accountFolderKey) + : message.accountFolderKey; if (message.securityKeys && message.securityKeys.length) { object.securityKeys = []; for (let j = 0; j < message.securityKeys.length; ++j) - object.securityKeys[j] = $root.AccountSummary.SecurityKey.toObject(message.securityKeys[j], options); + object.securityKeys[j] = $root.AccountSummary.SecurityKey.toObject( + message.securityKeys[j], + options + ); } if (message.keyValues && message.keyValues.length) { object.keyValues = []; for (let j = 0; j < message.keyValues.length; ++j) object.keyValues[j] = $root.AccountSummary.KeyValue.toObject(message.keyValues[j], options); } - if (message.ssoUser != null && message.hasOwnProperty("ssoUser")) - object.ssoUser = message.ssoUser; - if (message.onlineAccessOnly != null && message.hasOwnProperty("onlineAccessOnly")) + if (message.ssoUser != null && message.hasOwnProperty('ssoUser')) object.ssoUser = message.ssoUser; + if (message.onlineAccessOnly != null && message.hasOwnProperty('onlineAccessOnly')) object.onlineAccessOnly = message.onlineAccessOnly; - if (message.masterPasswordExpiry != null && message.hasOwnProperty("masterPasswordExpiry")) + if (message.masterPasswordExpiry != null && message.hasOwnProperty('masterPasswordExpiry')) object.masterPasswordExpiry = message.masterPasswordExpiry; - if (message.twoFactorRequired != null && message.hasOwnProperty("twoFactorRequired")) + if (message.twoFactorRequired != null && message.hasOwnProperty('twoFactorRequired')) object.twoFactorRequired = message.twoFactorRequired; - if (message.disallowExport != null && message.hasOwnProperty("disallowExport")) + if (message.disallowExport != null && message.hasOwnProperty('disallowExport')) object.disallowExport = message.disallowExport; - if (message.restrictFiles != null && message.hasOwnProperty("restrictFiles")) + if (message.restrictFiles != null && message.hasOwnProperty('restrictFiles')) object.restrictFiles = message.restrictFiles; - if (message.restrictAllSharing != null && message.hasOwnProperty("restrictAllSharing")) + if (message.restrictAllSharing != null && message.hasOwnProperty('restrictAllSharing')) object.restrictAllSharing = message.restrictAllSharing; - if (message.restrictSharing != null && message.hasOwnProperty("restrictSharing")) + if (message.restrictSharing != null && message.hasOwnProperty('restrictSharing')) object.restrictSharing = message.restrictSharing; - if (message.restrictSharingIncomingAll != null && message.hasOwnProperty("restrictSharingIncomingAll")) + if (message.restrictSharingIncomingAll != null && message.hasOwnProperty('restrictSharingIncomingAll')) object.restrictSharingIncomingAll = message.restrictSharingIncomingAll; - if (message.restrictSharingIncomingEnterprise != null && message.hasOwnProperty("restrictSharingIncomingEnterprise")) + if ( + message.restrictSharingIncomingEnterprise != null && + message.hasOwnProperty('restrictSharingIncomingEnterprise') + ) object.restrictSharingIncomingEnterprise = message.restrictSharingIncomingEnterprise; - if (message.logoutTimer != null && message.hasOwnProperty("logoutTimer")) - if (typeof message.logoutTimer === "number") + if (message.logoutTimer != null && message.hasOwnProperty('logoutTimer')) + if (typeof message.logoutTimer === 'number') object.logoutTimer = options.longs === String ? String(message.logoutTimer) : message.logoutTimer; else - object.logoutTimer = options.longs === String ? $util.Long.prototype.toString.call(message.logoutTimer) : options.longs === Number ? new $util.LongBits(message.logoutTimer.low >>> 0, message.logoutTimer.high >>> 0).toNumber() : message.logoutTimer; - if (message.persistentLogin != null && message.hasOwnProperty("persistentLogin")) + object.logoutTimer = + options.longs === String + ? $util.Long.prototype.toString.call(message.logoutTimer) + : options.longs === Number + ? new $util.LongBits( + message.logoutTimer.low >>> 0, + message.logoutTimer.high >>> 0 + ).toNumber() + : message.logoutTimer; + if (message.persistentLogin != null && message.hasOwnProperty('persistentLogin')) object.persistentLogin = message.persistentLogin; - if (message.ipDisableAutoApprove != null && message.hasOwnProperty("ipDisableAutoApprove")) + if (message.ipDisableAutoApprove != null && message.hasOwnProperty('ipDisableAutoApprove')) object.ipDisableAutoApprove = message.ipDisableAutoApprove; - if (message.shareDataKeyWithEccPublicKey != null && message.hasOwnProperty("shareDataKeyWithEccPublicKey")) + if (message.shareDataKeyWithEccPublicKey != null && message.hasOwnProperty('shareDataKeyWithEccPublicKey')) object.shareDataKeyWithEccPublicKey = message.shareDataKeyWithEccPublicKey; - if (message.shareDataKeyWithDevicePublicKey != null && message.hasOwnProperty("shareDataKeyWithDevicePublicKey")) + if ( + message.shareDataKeyWithDevicePublicKey != null && + message.hasOwnProperty('shareDataKeyWithDevicePublicKey') + ) object.shareDataKeyWithDevicePublicKey = message.shareDataKeyWithDevicePublicKey; - if (message.RecordTypesCounter != null && message.hasOwnProperty("RecordTypesCounter")) + if (message.RecordTypesCounter != null && message.hasOwnProperty('RecordTypesCounter')) object.RecordTypesCounter = message.RecordTypesCounter; - if (message.RecordTypesEnterpriseCounter != null && message.hasOwnProperty("RecordTypesEnterpriseCounter")) + if (message.RecordTypesEnterpriseCounter != null && message.hasOwnProperty('RecordTypesEnterpriseCounter')) object.RecordTypesEnterpriseCounter = message.RecordTypesEnterpriseCounter; - if (message.recordTypesEnabled != null && message.hasOwnProperty("recordTypesEnabled")) + if (message.recordTypesEnabled != null && message.hasOwnProperty('recordTypesEnabled')) object.recordTypesEnabled = message.recordTypesEnabled; - if (message.canManageRecordTypes != null && message.hasOwnProperty("canManageRecordTypes")) + if (message.canManageRecordTypes != null && message.hasOwnProperty('canManageRecordTypes')) object.canManageRecordTypes = message.canManageRecordTypes; - if (message.recordTypesPAMCounter != null && message.hasOwnProperty("recordTypesPAMCounter")) + if (message.recordTypesPAMCounter != null && message.hasOwnProperty('recordTypesPAMCounter')) object.recordTypesPAMCounter = message.recordTypesPAMCounter; - if (message.logoutTimerMinutes != null && message.hasOwnProperty("logoutTimerMinutes")) + if (message.logoutTimerMinutes != null && message.hasOwnProperty('logoutTimerMinutes')) object.logoutTimerMinutes = message.logoutTimerMinutes; - if (message.securityKeysNoUserVerify != null && message.hasOwnProperty("securityKeysNoUserVerify")) + if (message.securityKeysNoUserVerify != null && message.hasOwnProperty('securityKeysNoUserVerify')) object.securityKeysNoUserVerify = message.securityKeysNoUserVerify; if (message.channels && message.channels.length) { object.channels = []; for (let j = 0; j < message.channels.length; ++j) - object.channels[j] = options.enums === String ? $root.Authentication.TwoFactorChannelType[message.channels[j]] === undefined ? message.channels[j] : $root.Authentication.TwoFactorChannelType[message.channels[j]] : message.channels[j]; + object.channels[j] = + options.enums === String + ? $root.Authentication.TwoFactorChannelType[message.channels[j]] === undefined + ? message.channels[j] + : $root.Authentication.TwoFactorChannelType[message.channels[j]] + : message.channels[j]; } if (message.personalUsernames && message.personalUsernames.length) { object.personalUsernames = []; @@ -105400,16 +108937,15 @@ export const AccountSummary = $root.AccountSummary = (() => { */ Settings.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/AccountSummary.Settings"; + return typeUrlPrefix + '/AccountSummary.Settings'; }; return Settings; })(); - AccountSummary.KeyValue = (function() { - + AccountSummary.KeyValue = (function () { /** * Properties of a KeyValue. * @memberof AccountSummary @@ -105429,8 +108965,7 @@ export const AccountSummary = $root.AccountSummary = (() => { function KeyValue(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -105439,7 +108974,7 @@ export const AccountSummary = $root.AccountSummary = (() => { * @memberof AccountSummary.KeyValue * @instance */ - KeyValue.prototype.key = ""; + KeyValue.prototype.key = ''; /** * KeyValue value. @@ -105447,7 +108982,7 @@ export const AccountSummary = $root.AccountSummary = (() => { * @memberof AccountSummary.KeyValue * @instance */ - KeyValue.prototype.value = ""; + KeyValue.prototype.value = ''; /** * Creates a new KeyValue instance using the specified properties. @@ -105471,12 +109006,11 @@ export const AccountSummary = $root.AccountSummary = (() => { * @returns {$protobuf.Writer} Writer */ KeyValue.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.key != null && Object.hasOwnProperty.call(message, "key")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.key); - if (message.value != null && Object.hasOwnProperty.call(message, "value")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.value); + if (!writer) writer = $Writer.create(); + if (message.key != null && Object.hasOwnProperty.call(message, 'key')) + writer.uint32(/* id 1, wireType 2 =*/ 10).string(message.key); + if (message.value != null && Object.hasOwnProperty.call(message, 'value')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.value); return writer; }; @@ -105505,23 +109039,23 @@ export const AccountSummary = $root.AccountSummary = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ KeyValue.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.AccountSummary.KeyValue(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.AccountSummary.KeyValue(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.key = reader.string(); break; } - case 2: { + case 2: { message.value = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -105538,8 +109072,7 @@ export const AccountSummary = $root.AccountSummary = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ KeyValue.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -105552,14 +109085,11 @@ export const AccountSummary = $root.AccountSummary = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ KeyValue.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.key != null && message.hasOwnProperty("key")) - if (!$util.isString(message.key)) - return "key: string expected"; - if (message.value != null && message.hasOwnProperty("value")) - if (!$util.isString(message.value)) - return "value: string expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.key != null && message.hasOwnProperty('key')) + if (!$util.isString(message.key)) return 'key: string expected'; + if (message.value != null && message.hasOwnProperty('value')) + if (!$util.isString(message.value)) return 'value: string expected'; return null; }; @@ -105572,13 +109102,10 @@ export const AccountSummary = $root.AccountSummary = (() => { * @returns {AccountSummary.KeyValue} KeyValue */ KeyValue.fromObject = function fromObject(object) { - if (object instanceof $root.AccountSummary.KeyValue) - return object; + if (object instanceof $root.AccountSummary.KeyValue) return object; let message = new $root.AccountSummary.KeyValue(); - if (object.key != null) - message.key = String(object.key); - if (object.value != null) - message.value = String(object.value); + if (object.key != null) message.key = String(object.key); + if (object.value != null) message.value = String(object.value); return message; }; @@ -105592,17 +109119,14 @@ export const AccountSummary = $root.AccountSummary = (() => { * @returns {Object.} Plain object */ KeyValue.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - object.key = ""; - object.value = ""; + object.key = ''; + object.value = ''; } - if (message.key != null && message.hasOwnProperty("key")) - object.key = message.key; - if (message.value != null && message.hasOwnProperty("value")) - object.value = message.value; + if (message.key != null && message.hasOwnProperty('key')) object.key = message.key; + if (message.value != null && message.hasOwnProperty('value')) object.value = message.value; return object; }; @@ -105627,16 +109151,15 @@ export const AccountSummary = $root.AccountSummary = (() => { */ KeyValue.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/AccountSummary.KeyValue"; + return typeUrlPrefix + '/AccountSummary.KeyValue'; }; return KeyValue; })(); - AccountSummary.KeyValueBoolean = (function() { - + AccountSummary.KeyValueBoolean = (function () { /** * Properties of a KeyValueBoolean. * @memberof AccountSummary @@ -105656,8 +109179,7 @@ export const AccountSummary = $root.AccountSummary = (() => { function KeyValueBoolean(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -105666,7 +109188,7 @@ export const AccountSummary = $root.AccountSummary = (() => { * @memberof AccountSummary.KeyValueBoolean * @instance */ - KeyValueBoolean.prototype.key = ""; + KeyValueBoolean.prototype.key = ''; /** * KeyValueBoolean value. @@ -105698,12 +109220,11 @@ export const AccountSummary = $root.AccountSummary = (() => { * @returns {$protobuf.Writer} Writer */ KeyValueBoolean.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.key != null && Object.hasOwnProperty.call(message, "key")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.key); - if (message.value != null && Object.hasOwnProperty.call(message, "value")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.value); + if (!writer) writer = $Writer.create(); + if (message.key != null && Object.hasOwnProperty.call(message, 'key')) + writer.uint32(/* id 1, wireType 2 =*/ 10).string(message.key); + if (message.value != null && Object.hasOwnProperty.call(message, 'value')) + writer.uint32(/* id 2, wireType 0 =*/ 16).bool(message.value); return writer; }; @@ -105732,23 +109253,23 @@ export const AccountSummary = $root.AccountSummary = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ KeyValueBoolean.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.AccountSummary.KeyValueBoolean(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.AccountSummary.KeyValueBoolean(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.key = reader.string(); break; } - case 2: { + case 2: { message.value = reader.bool(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -105765,8 +109286,7 @@ export const AccountSummary = $root.AccountSummary = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ KeyValueBoolean.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -105779,14 +109299,11 @@ export const AccountSummary = $root.AccountSummary = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ KeyValueBoolean.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.key != null && message.hasOwnProperty("key")) - if (!$util.isString(message.key)) - return "key: string expected"; - if (message.value != null && message.hasOwnProperty("value")) - if (typeof message.value !== "boolean") - return "value: boolean expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.key != null && message.hasOwnProperty('key')) + if (!$util.isString(message.key)) return 'key: string expected'; + if (message.value != null && message.hasOwnProperty('value')) + if (typeof message.value !== 'boolean') return 'value: boolean expected'; return null; }; @@ -105799,13 +109316,10 @@ export const AccountSummary = $root.AccountSummary = (() => { * @returns {AccountSummary.KeyValueBoolean} KeyValueBoolean */ KeyValueBoolean.fromObject = function fromObject(object) { - if (object instanceof $root.AccountSummary.KeyValueBoolean) - return object; + if (object instanceof $root.AccountSummary.KeyValueBoolean) return object; let message = new $root.AccountSummary.KeyValueBoolean(); - if (object.key != null) - message.key = String(object.key); - if (object.value != null) - message.value = Boolean(object.value); + if (object.key != null) message.key = String(object.key); + if (object.value != null) message.value = Boolean(object.value); return message; }; @@ -105819,17 +109333,14 @@ export const AccountSummary = $root.AccountSummary = (() => { * @returns {Object.} Plain object */ KeyValueBoolean.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - object.key = ""; + object.key = ''; object.value = false; } - if (message.key != null && message.hasOwnProperty("key")) - object.key = message.key; - if (message.value != null && message.hasOwnProperty("value")) - object.value = message.value; + if (message.key != null && message.hasOwnProperty('key')) object.key = message.key; + if (message.value != null && message.hasOwnProperty('value')) object.value = message.value; return object; }; @@ -105854,16 +109365,15 @@ export const AccountSummary = $root.AccountSummary = (() => { */ KeyValueBoolean.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/AccountSummary.KeyValueBoolean"; + return typeUrlPrefix + '/AccountSummary.KeyValueBoolean'; }; return KeyValueBoolean; })(); - AccountSummary.KeyValueLong = (function() { - + AccountSummary.KeyValueLong = (function () { /** * Properties of a KeyValueLong. * @memberof AccountSummary @@ -105883,8 +109393,7 @@ export const AccountSummary = $root.AccountSummary = (() => { function KeyValueLong(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -105893,7 +109402,7 @@ export const AccountSummary = $root.AccountSummary = (() => { * @memberof AccountSummary.KeyValueLong * @instance */ - KeyValueLong.prototype.key = ""; + KeyValueLong.prototype.key = ''; /** * KeyValueLong value. @@ -105901,7 +109410,7 @@ export const AccountSummary = $root.AccountSummary = (() => { * @memberof AccountSummary.KeyValueLong * @instance */ - KeyValueLong.prototype.value = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + KeyValueLong.prototype.value = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * Creates a new KeyValueLong instance using the specified properties. @@ -105925,12 +109434,11 @@ export const AccountSummary = $root.AccountSummary = (() => { * @returns {$protobuf.Writer} Writer */ KeyValueLong.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.key != null && Object.hasOwnProperty.call(message, "key")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.key); - if (message.value != null && Object.hasOwnProperty.call(message, "value")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.value); + if (!writer) writer = $Writer.create(); + if (message.key != null && Object.hasOwnProperty.call(message, 'key')) + writer.uint32(/* id 1, wireType 2 =*/ 10).string(message.key); + if (message.value != null && Object.hasOwnProperty.call(message, 'value')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int64(message.value); return writer; }; @@ -105959,23 +109467,23 @@ export const AccountSummary = $root.AccountSummary = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ KeyValueLong.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.AccountSummary.KeyValueLong(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.AccountSummary.KeyValueLong(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.key = reader.string(); break; } - case 2: { + case 2: { message.value = reader.int64(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -105992,8 +109500,7 @@ export const AccountSummary = $root.AccountSummary = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ KeyValueLong.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -106006,14 +109513,15 @@ export const AccountSummary = $root.AccountSummary = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ KeyValueLong.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.key != null && message.hasOwnProperty("key")) - if (!$util.isString(message.key)) - return "key: string expected"; - if (message.value != null && message.hasOwnProperty("value")) - if (!$util.isInteger(message.value) && !(message.value && $util.isInteger(message.value.low) && $util.isInteger(message.value.high))) - return "value: integer|Long expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.key != null && message.hasOwnProperty('key')) + if (!$util.isString(message.key)) return 'key: string expected'; + if (message.value != null && message.hasOwnProperty('value')) + if ( + !$util.isInteger(message.value) && + !(message.value && $util.isInteger(message.value.low) && $util.isInteger(message.value.high)) + ) + return 'value: integer|Long expected'; return null; }; @@ -106026,19 +109534,14 @@ export const AccountSummary = $root.AccountSummary = (() => { * @returns {AccountSummary.KeyValueLong} KeyValueLong */ KeyValueLong.fromObject = function fromObject(object) { - if (object instanceof $root.AccountSummary.KeyValueLong) - return object; + if (object instanceof $root.AccountSummary.KeyValueLong) return object; let message = new $root.AccountSummary.KeyValueLong(); - if (object.key != null) - message.key = String(object.key); + if (object.key != null) message.key = String(object.key); if (object.value != null) - if ($util.Long) - (message.value = $util.Long.fromValue(object.value)).unsigned = false; - else if (typeof object.value === "string") - message.value = parseInt(object.value, 10); - else if (typeof object.value === "number") - message.value = object.value; - else if (typeof object.value === "object") + if ($util.Long) (message.value = $util.Long.fromValue(object.value)).unsigned = false; + else if (typeof object.value === 'string') message.value = parseInt(object.value, 10); + else if (typeof object.value === 'number') message.value = object.value; + else if (typeof object.value === 'object') message.value = new $util.LongBits(object.value.low >>> 0, object.value.high >>> 0).toNumber(); return message; }; @@ -106053,24 +109556,27 @@ export const AccountSummary = $root.AccountSummary = (() => { * @returns {Object.} Plain object */ KeyValueLong.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - object.key = ""; + object.key = ''; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.value = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.value = options.longs === String ? "0" : 0; - } - if (message.key != null && message.hasOwnProperty("key")) - object.key = message.key; - if (message.value != null && message.hasOwnProperty("value")) - if (typeof message.value === "number") + object.value = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.value = options.longs === String ? '0' : 0; + } + if (message.key != null && message.hasOwnProperty('key')) object.key = message.key; + if (message.value != null && message.hasOwnProperty('value')) + if (typeof message.value === 'number') object.value = options.longs === String ? String(message.value) : message.value; else - object.value = options.longs === String ? $util.Long.prototype.toString.call(message.value) : options.longs === Number ? new $util.LongBits(message.value.low >>> 0, message.value.high >>> 0).toNumber() : message.value; + object.value = + options.longs === String + ? $util.Long.prototype.toString.call(message.value) + : options.longs === Number + ? new $util.LongBits(message.value.low >>> 0, message.value.high >>> 0).toNumber() + : message.value; return object; }; @@ -106095,16 +109601,15 @@ export const AccountSummary = $root.AccountSummary = (() => { */ KeyValueLong.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/AccountSummary.KeyValueLong"; + return typeUrlPrefix + '/AccountSummary.KeyValueLong'; }; return KeyValueLong; })(); - AccountSummary.Result = (function() { - + AccountSummary.Result = (function () { /** * Properties of a Result. * @memberof AccountSummary @@ -106125,8 +109630,7 @@ export const AccountSummary = $root.AccountSummary = (() => { function Result(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -106135,7 +109639,7 @@ export const AccountSummary = $root.AccountSummary = (() => { * @memberof AccountSummary.Result * @instance */ - Result.prototype.resultCode = ""; + Result.prototype.resultCode = ''; /** * Result message. @@ -106143,7 +109647,7 @@ export const AccountSummary = $root.AccountSummary = (() => { * @memberof AccountSummary.Result * @instance */ - Result.prototype.message = ""; + Result.prototype.message = ''; /** * Result result. @@ -106151,7 +109655,7 @@ export const AccountSummary = $root.AccountSummary = (() => { * @memberof AccountSummary.Result * @instance */ - Result.prototype.result = ""; + Result.prototype.result = ''; /** * Creates a new Result instance using the specified properties. @@ -106175,14 +109679,13 @@ export const AccountSummary = $root.AccountSummary = (() => { * @returns {$protobuf.Writer} Writer */ Result.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.resultCode != null && Object.hasOwnProperty.call(message, "resultCode")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.resultCode); - if (message.message != null && Object.hasOwnProperty.call(message, "message")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.message); - if (message.result != null && Object.hasOwnProperty.call(message, "result")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.result); + if (!writer) writer = $Writer.create(); + if (message.resultCode != null && Object.hasOwnProperty.call(message, 'resultCode')) + writer.uint32(/* id 1, wireType 2 =*/ 10).string(message.resultCode); + if (message.message != null && Object.hasOwnProperty.call(message, 'message')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.message); + if (message.result != null && Object.hasOwnProperty.call(message, 'result')) + writer.uint32(/* id 3, wireType 2 =*/ 26).string(message.result); return writer; }; @@ -106211,27 +109714,27 @@ export const AccountSummary = $root.AccountSummary = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ Result.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.AccountSummary.Result(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.AccountSummary.Result(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.resultCode = reader.string(); break; } - case 2: { + case 2: { message.message = reader.string(); break; } - case 3: { + case 3: { message.result = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -106248,8 +109751,7 @@ export const AccountSummary = $root.AccountSummary = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ Result.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -106262,17 +109764,13 @@ export const AccountSummary = $root.AccountSummary = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ Result.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.resultCode != null && message.hasOwnProperty("resultCode")) - if (!$util.isString(message.resultCode)) - return "resultCode: string expected"; - if (message.message != null && message.hasOwnProperty("message")) - if (!$util.isString(message.message)) - return "message: string expected"; - if (message.result != null && message.hasOwnProperty("result")) - if (!$util.isString(message.result)) - return "result: string expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.resultCode != null && message.hasOwnProperty('resultCode')) + if (!$util.isString(message.resultCode)) return 'resultCode: string expected'; + if (message.message != null && message.hasOwnProperty('message')) + if (!$util.isString(message.message)) return 'message: string expected'; + if (message.result != null && message.hasOwnProperty('result')) + if (!$util.isString(message.result)) return 'result: string expected'; return null; }; @@ -106285,15 +109783,11 @@ export const AccountSummary = $root.AccountSummary = (() => { * @returns {AccountSummary.Result} Result */ Result.fromObject = function fromObject(object) { - if (object instanceof $root.AccountSummary.Result) - return object; + if (object instanceof $root.AccountSummary.Result) return object; let message = new $root.AccountSummary.Result(); - if (object.resultCode != null) - message.resultCode = String(object.resultCode); - if (object.message != null) - message.message = String(object.message); - if (object.result != null) - message.result = String(object.result); + if (object.resultCode != null) message.resultCode = String(object.resultCode); + if (object.message != null) message.message = String(object.message); + if (object.result != null) message.result = String(object.result); return message; }; @@ -106307,20 +109801,17 @@ export const AccountSummary = $root.AccountSummary = (() => { * @returns {Object.} Plain object */ Result.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - object.resultCode = ""; - object.message = ""; - object.result = ""; + object.resultCode = ''; + object.message = ''; + object.result = ''; } - if (message.resultCode != null && message.hasOwnProperty("resultCode")) + if (message.resultCode != null && message.hasOwnProperty('resultCode')) object.resultCode = message.resultCode; - if (message.message != null && message.hasOwnProperty("message")) - object.message = message.message; - if (message.result != null && message.hasOwnProperty("result")) - object.result = message.result; + if (message.message != null && message.hasOwnProperty('message')) object.message = message.message; + if (message.result != null && message.hasOwnProperty('result')) object.result = message.result; return object; }; @@ -106345,16 +109836,15 @@ export const AccountSummary = $root.AccountSummary = (() => { */ Result.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/AccountSummary.Result"; + return typeUrlPrefix + '/AccountSummary.Result'; }; return Result; })(); - AccountSummary.Enforcements = (function() { - + AccountSummary.Enforcements = (function () { /** * Properties of an Enforcements. * @memberof AccountSummary @@ -106380,8 +109870,7 @@ export const AccountSummary = $root.AccountSummary = (() => { this.jsons = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -106438,20 +109927,31 @@ export const AccountSummary = $root.AccountSummary = (() => { * @returns {$protobuf.Writer} Writer */ Enforcements.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.strings != null && message.strings.length) for (let i = 0; i < message.strings.length; ++i) - $root.AccountSummary.KeyValue.encode(message.strings[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.AccountSummary.KeyValue.encode( + message.strings[i], + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); if (message.booleans != null && message.booleans.length) for (let i = 0; i < message.booleans.length; ++i) - $root.AccountSummary.KeyValueBoolean.encode(message.booleans[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + $root.AccountSummary.KeyValueBoolean.encode( + message.booleans[i], + writer.uint32(/* id 2, wireType 2 =*/ 18).fork() + ).ldelim(); if (message.longs != null && message.longs.length) for (let i = 0; i < message.longs.length; ++i) - $root.AccountSummary.KeyValueLong.encode(message.longs[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + $root.AccountSummary.KeyValueLong.encode( + message.longs[i], + writer.uint32(/* id 3, wireType 2 =*/ 26).fork() + ).ldelim(); if (message.jsons != null && message.jsons.length) for (let i = 0; i < message.jsons.length; ++i) - $root.AccountSummary.KeyValue.encode(message.jsons[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + $root.AccountSummary.KeyValue.encode( + message.jsons[i], + writer.uint32(/* id 4, wireType 2 =*/ 34).fork() + ).ldelim(); return writer; }; @@ -106480,39 +109980,35 @@ export const AccountSummary = $root.AccountSummary = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ Enforcements.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.AccountSummary.Enforcements(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.AccountSummary.Enforcements(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (!(message.strings && message.strings.length)) - message.strings = []; + case 1: { + if (!(message.strings && message.strings.length)) message.strings = []; message.strings.push($root.AccountSummary.KeyValue.decode(reader, reader.uint32())); break; } - case 2: { - if (!(message.booleans && message.booleans.length)) - message.booleans = []; + case 2: { + if (!(message.booleans && message.booleans.length)) message.booleans = []; message.booleans.push($root.AccountSummary.KeyValueBoolean.decode(reader, reader.uint32())); break; } - case 3: { - if (!(message.longs && message.longs.length)) - message.longs = []; + case 3: { + if (!(message.longs && message.longs.length)) message.longs = []; message.longs.push($root.AccountSummary.KeyValueLong.decode(reader, reader.uint32())); break; } - case 4: { - if (!(message.jsons && message.jsons.length)) - message.jsons = []; + case 4: { + if (!(message.jsons && message.jsons.length)) message.jsons = []; message.jsons.push($root.AccountSummary.KeyValue.decode(reader, reader.uint32())); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -106529,8 +110025,7 @@ export const AccountSummary = $root.AccountSummary = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ Enforcements.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -106543,42 +110038,33 @@ export const AccountSummary = $root.AccountSummary = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ Enforcements.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.strings != null && message.hasOwnProperty("strings")) { - if (!Array.isArray(message.strings)) - return "strings: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.strings != null && message.hasOwnProperty('strings')) { + if (!Array.isArray(message.strings)) return 'strings: array expected'; for (let i = 0; i < message.strings.length; ++i) { let error = $root.AccountSummary.KeyValue.verify(message.strings[i]); - if (error) - return "strings." + error; + if (error) return 'strings.' + error; } } - if (message.booleans != null && message.hasOwnProperty("booleans")) { - if (!Array.isArray(message.booleans)) - return "booleans: array expected"; + if (message.booleans != null && message.hasOwnProperty('booleans')) { + if (!Array.isArray(message.booleans)) return 'booleans: array expected'; for (let i = 0; i < message.booleans.length; ++i) { let error = $root.AccountSummary.KeyValueBoolean.verify(message.booleans[i]); - if (error) - return "booleans." + error; + if (error) return 'booleans.' + error; } } - if (message.longs != null && message.hasOwnProperty("longs")) { - if (!Array.isArray(message.longs)) - return "longs: array expected"; + if (message.longs != null && message.hasOwnProperty('longs')) { + if (!Array.isArray(message.longs)) return 'longs: array expected'; for (let i = 0; i < message.longs.length; ++i) { let error = $root.AccountSummary.KeyValueLong.verify(message.longs[i]); - if (error) - return "longs." + error; + if (error) return 'longs.' + error; } } - if (message.jsons != null && message.hasOwnProperty("jsons")) { - if (!Array.isArray(message.jsons)) - return "jsons: array expected"; + if (message.jsons != null && message.hasOwnProperty('jsons')) { + if (!Array.isArray(message.jsons)) return 'jsons: array expected'; for (let i = 0; i < message.jsons.length; ++i) { let error = $root.AccountSummary.KeyValue.verify(message.jsons[i]); - if (error) - return "jsons." + error; + if (error) return 'jsons.' + error; } } return null; @@ -106593,46 +110079,43 @@ export const AccountSummary = $root.AccountSummary = (() => { * @returns {AccountSummary.Enforcements} Enforcements */ Enforcements.fromObject = function fromObject(object) { - if (object instanceof $root.AccountSummary.Enforcements) - return object; + if (object instanceof $root.AccountSummary.Enforcements) return object; let message = new $root.AccountSummary.Enforcements(); if (object.strings) { if (!Array.isArray(object.strings)) - throw TypeError(".AccountSummary.Enforcements.strings: array expected"); + throw TypeError('.AccountSummary.Enforcements.strings: array expected'); message.strings = []; for (let i = 0; i < object.strings.length; ++i) { - if (typeof object.strings[i] !== "object") - throw TypeError(".AccountSummary.Enforcements.strings: object expected"); + if (typeof object.strings[i] !== 'object') + throw TypeError('.AccountSummary.Enforcements.strings: object expected'); message.strings[i] = $root.AccountSummary.KeyValue.fromObject(object.strings[i]); } } if (object.booleans) { if (!Array.isArray(object.booleans)) - throw TypeError(".AccountSummary.Enforcements.booleans: array expected"); + throw TypeError('.AccountSummary.Enforcements.booleans: array expected'); message.booleans = []; for (let i = 0; i < object.booleans.length; ++i) { - if (typeof object.booleans[i] !== "object") - throw TypeError(".AccountSummary.Enforcements.booleans: object expected"); + if (typeof object.booleans[i] !== 'object') + throw TypeError('.AccountSummary.Enforcements.booleans: object expected'); message.booleans[i] = $root.AccountSummary.KeyValueBoolean.fromObject(object.booleans[i]); } } if (object.longs) { - if (!Array.isArray(object.longs)) - throw TypeError(".AccountSummary.Enforcements.longs: array expected"); + if (!Array.isArray(object.longs)) throw TypeError('.AccountSummary.Enforcements.longs: array expected'); message.longs = []; for (let i = 0; i < object.longs.length; ++i) { - if (typeof object.longs[i] !== "object") - throw TypeError(".AccountSummary.Enforcements.longs: object expected"); + if (typeof object.longs[i] !== 'object') + throw TypeError('.AccountSummary.Enforcements.longs: object expected'); message.longs[i] = $root.AccountSummary.KeyValueLong.fromObject(object.longs[i]); } } if (object.jsons) { - if (!Array.isArray(object.jsons)) - throw TypeError(".AccountSummary.Enforcements.jsons: array expected"); + if (!Array.isArray(object.jsons)) throw TypeError('.AccountSummary.Enforcements.jsons: array expected'); message.jsons = []; for (let i = 0; i < object.jsons.length; ++i) { - if (typeof object.jsons[i] !== "object") - throw TypeError(".AccountSummary.Enforcements.jsons: object expected"); + if (typeof object.jsons[i] !== 'object') + throw TypeError('.AccountSummary.Enforcements.jsons: object expected'); message.jsons[i] = $root.AccountSummary.KeyValue.fromObject(object.jsons[i]); } } @@ -106649,8 +110132,7 @@ export const AccountSummary = $root.AccountSummary = (() => { * @returns {Object.} Plain object */ Enforcements.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.arrays || options.defaults) { object.strings = []; @@ -106702,16 +110184,15 @@ export const AccountSummary = $root.AccountSummary = (() => { */ Enforcements.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/AccountSummary.Enforcements"; + return typeUrlPrefix + '/AccountSummary.Enforcements'; }; return Enforcements; })(); - AccountSummary.MissingAccountShareKey = (function() { - + AccountSummary.MissingAccountShareKey = (function () { /** * Properties of a MissingAccountShareKey. * @memberof AccountSummary @@ -106731,8 +110212,7 @@ export const AccountSummary = $root.AccountSummary = (() => { function MissingAccountShareKey(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -106741,7 +110221,7 @@ export const AccountSummary = $root.AccountSummary = (() => { * @memberof AccountSummary.MissingAccountShareKey * @instance */ - MissingAccountShareKey.prototype.roleId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + MissingAccountShareKey.prototype.roleId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * MissingAccountShareKey publicKey. @@ -106773,12 +110253,11 @@ export const AccountSummary = $root.AccountSummary = (() => { * @returns {$protobuf.Writer} Writer */ MissingAccountShareKey.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.roleId != null && Object.hasOwnProperty.call(message, "roleId")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.roleId); - if (message.publicKey != null && Object.hasOwnProperty.call(message, "publicKey")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.publicKey); + if (!writer) writer = $Writer.create(); + if (message.roleId != null && Object.hasOwnProperty.call(message, 'roleId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int64(message.roleId); + if (message.publicKey != null && Object.hasOwnProperty.call(message, 'publicKey')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.publicKey); return writer; }; @@ -106807,23 +110286,23 @@ export const AccountSummary = $root.AccountSummary = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ MissingAccountShareKey.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.AccountSummary.MissingAccountShareKey(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.AccountSummary.MissingAccountShareKey(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.roleId = reader.int64(); break; } - case 2: { + case 2: { message.publicKey = reader.bytes(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -106840,8 +110319,7 @@ export const AccountSummary = $root.AccountSummary = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ MissingAccountShareKey.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -106854,14 +110332,21 @@ export const AccountSummary = $root.AccountSummary = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ MissingAccountShareKey.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.roleId != null && message.hasOwnProperty("roleId")) - if (!$util.isInteger(message.roleId) && !(message.roleId && $util.isInteger(message.roleId.low) && $util.isInteger(message.roleId.high))) - return "roleId: integer|Long expected"; - if (message.publicKey != null && message.hasOwnProperty("publicKey")) - if (!(message.publicKey && typeof message.publicKey.length === "number" || $util.isString(message.publicKey))) - return "publicKey: buffer expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.roleId != null && message.hasOwnProperty('roleId')) + if ( + !$util.isInteger(message.roleId) && + !(message.roleId && $util.isInteger(message.roleId.low) && $util.isInteger(message.roleId.high)) + ) + return 'roleId: integer|Long expected'; + if (message.publicKey != null && message.hasOwnProperty('publicKey')) + if ( + !( + (message.publicKey && typeof message.publicKey.length === 'number') || + $util.isString(message.publicKey) + ) + ) + return 'publicKey: buffer expected'; return null; }; @@ -106874,23 +110359,22 @@ export const AccountSummary = $root.AccountSummary = (() => { * @returns {AccountSummary.MissingAccountShareKey} MissingAccountShareKey */ MissingAccountShareKey.fromObject = function fromObject(object) { - if (object instanceof $root.AccountSummary.MissingAccountShareKey) - return object; + if (object instanceof $root.AccountSummary.MissingAccountShareKey) return object; let message = new $root.AccountSummary.MissingAccountShareKey(); if (object.roleId != null) - if ($util.Long) - (message.roleId = $util.Long.fromValue(object.roleId)).unsigned = false; - else if (typeof object.roleId === "string") - message.roleId = parseInt(object.roleId, 10); - else if (typeof object.roleId === "number") - message.roleId = object.roleId; - else if (typeof object.roleId === "object") + if ($util.Long) (message.roleId = $util.Long.fromValue(object.roleId)).unsigned = false; + else if (typeof object.roleId === 'string') message.roleId = parseInt(object.roleId, 10); + else if (typeof object.roleId === 'number') message.roleId = object.roleId; + else if (typeof object.roleId === 'object') message.roleId = new $util.LongBits(object.roleId.low >>> 0, object.roleId.high >>> 0).toNumber(); if (object.publicKey != null) - if (typeof object.publicKey === "string") - $util.base64.decode(object.publicKey, message.publicKey = $util.newBuffer($util.base64.length(object.publicKey)), 0); - else if (object.publicKey.length >= 0) - message.publicKey = object.publicKey; + if (typeof object.publicKey === 'string') + $util.base64.decode( + object.publicKey, + (message.publicKey = $util.newBuffer($util.base64.length(object.publicKey))), + 0 + ); + else if (object.publicKey.length >= 0) message.publicKey = object.publicKey; return message; }; @@ -106904,30 +110388,37 @@ export const AccountSummary = $root.AccountSummary = (() => { * @returns {Object.} Plain object */ MissingAccountShareKey.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.roleId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.roleId = options.longs === String ? "0" : 0; - if (options.bytes === String) - object.publicKey = ""; + object.roleId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.roleId = options.longs === String ? '0' : 0; + if (options.bytes === String) object.publicKey = ''; else { object.publicKey = []; - if (options.bytes !== Array) - object.publicKey = $util.newBuffer(object.publicKey); + if (options.bytes !== Array) object.publicKey = $util.newBuffer(object.publicKey); } } - if (message.roleId != null && message.hasOwnProperty("roleId")) - if (typeof message.roleId === "number") + if (message.roleId != null && message.hasOwnProperty('roleId')) + if (typeof message.roleId === 'number') object.roleId = options.longs === String ? String(message.roleId) : message.roleId; else - object.roleId = options.longs === String ? $util.Long.prototype.toString.call(message.roleId) : options.longs === Number ? new $util.LongBits(message.roleId.low >>> 0, message.roleId.high >>> 0).toNumber() : message.roleId; - if (message.publicKey != null && message.hasOwnProperty("publicKey")) - object.publicKey = options.bytes === String ? $util.base64.encode(message.publicKey, 0, message.publicKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.publicKey) : message.publicKey; + object.roleId = + options.longs === String + ? $util.Long.prototype.toString.call(message.roleId) + : options.longs === Number + ? new $util.LongBits(message.roleId.low >>> 0, message.roleId.high >>> 0).toNumber() + : message.roleId; + if (message.publicKey != null && message.hasOwnProperty('publicKey')) + object.publicKey = + options.bytes === String + ? $util.base64.encode(message.publicKey, 0, message.publicKey.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.publicKey) + : message.publicKey; return object; }; @@ -106952,16 +110443,15 @@ export const AccountSummary = $root.AccountSummary = (() => { */ MissingAccountShareKey.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/AccountSummary.MissingAccountShareKey"; + return typeUrlPrefix + '/AccountSummary.MissingAccountShareKey'; }; return MissingAccountShareKey; })(); - AccountSummary.PasswordRule = (function() { - + AccountSummary.PasswordRule = (function () { /** * Properties of a PasswordRule. * @memberof AccountSummary @@ -106985,8 +110475,7 @@ export const AccountSummary = $root.AccountSummary = (() => { function PasswordRule(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -106995,7 +110484,7 @@ export const AccountSummary = $root.AccountSummary = (() => { * @memberof AccountSummary.PasswordRule * @instance */ - PasswordRule.prototype.ruleType = ""; + PasswordRule.prototype.ruleType = ''; /** * PasswordRule pattern. @@ -107003,7 +110492,7 @@ export const AccountSummary = $root.AccountSummary = (() => { * @memberof AccountSummary.PasswordRule * @instance */ - PasswordRule.prototype.pattern = ""; + PasswordRule.prototype.pattern = ''; /** * PasswordRule match. @@ -107027,7 +110516,7 @@ export const AccountSummary = $root.AccountSummary = (() => { * @memberof AccountSummary.PasswordRule * @instance */ - PasswordRule.prototype.description = ""; + PasswordRule.prototype.description = ''; /** * PasswordRule value. @@ -107035,7 +110524,7 @@ export const AccountSummary = $root.AccountSummary = (() => { * @memberof AccountSummary.PasswordRule * @instance */ - PasswordRule.prototype.value = ""; + PasswordRule.prototype.value = ''; /** * Creates a new PasswordRule instance using the specified properties. @@ -107059,20 +110548,19 @@ export const AccountSummary = $root.AccountSummary = (() => { * @returns {$protobuf.Writer} Writer */ PasswordRule.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.ruleType != null && Object.hasOwnProperty.call(message, "ruleType")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.ruleType); - if (message.pattern != null && Object.hasOwnProperty.call(message, "pattern")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.pattern); - if (message.match != null && Object.hasOwnProperty.call(message, "match")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.match); - if (message.minimum != null && Object.hasOwnProperty.call(message, "minimum")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.minimum); - if (message.description != null && Object.hasOwnProperty.call(message, "description")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.description); - if (message.value != null && Object.hasOwnProperty.call(message, "value")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.value); + if (!writer) writer = $Writer.create(); + if (message.ruleType != null && Object.hasOwnProperty.call(message, 'ruleType')) + writer.uint32(/* id 1, wireType 2 =*/ 10).string(message.ruleType); + if (message.pattern != null && Object.hasOwnProperty.call(message, 'pattern')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.pattern); + if (message.match != null && Object.hasOwnProperty.call(message, 'match')) + writer.uint32(/* id 3, wireType 0 =*/ 24).bool(message.match); + if (message.minimum != null && Object.hasOwnProperty.call(message, 'minimum')) + writer.uint32(/* id 4, wireType 0 =*/ 32).int32(message.minimum); + if (message.description != null && Object.hasOwnProperty.call(message, 'description')) + writer.uint32(/* id 5, wireType 2 =*/ 42).string(message.description); + if (message.value != null && Object.hasOwnProperty.call(message, 'value')) + writer.uint32(/* id 6, wireType 2 =*/ 50).string(message.value); return writer; }; @@ -107101,39 +110589,39 @@ export const AccountSummary = $root.AccountSummary = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ PasswordRule.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.AccountSummary.PasswordRule(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.AccountSummary.PasswordRule(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.ruleType = reader.string(); break; } - case 2: { + case 2: { message.pattern = reader.string(); break; } - case 3: { + case 3: { message.match = reader.bool(); break; } - case 4: { + case 4: { message.minimum = reader.int32(); break; } - case 5: { + case 5: { message.description = reader.string(); break; } - case 6: { + case 6: { message.value = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -107150,8 +110638,7 @@ export const AccountSummary = $root.AccountSummary = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ PasswordRule.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -107164,26 +110651,19 @@ export const AccountSummary = $root.AccountSummary = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ PasswordRule.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.ruleType != null && message.hasOwnProperty("ruleType")) - if (!$util.isString(message.ruleType)) - return "ruleType: string expected"; - if (message.pattern != null && message.hasOwnProperty("pattern")) - if (!$util.isString(message.pattern)) - return "pattern: string expected"; - if (message.match != null && message.hasOwnProperty("match")) - if (typeof message.match !== "boolean") - return "match: boolean expected"; - if (message.minimum != null && message.hasOwnProperty("minimum")) - if (!$util.isInteger(message.minimum)) - return "minimum: integer expected"; - if (message.description != null && message.hasOwnProperty("description")) - if (!$util.isString(message.description)) - return "description: string expected"; - if (message.value != null && message.hasOwnProperty("value")) - if (!$util.isString(message.value)) - return "value: string expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.ruleType != null && message.hasOwnProperty('ruleType')) + if (!$util.isString(message.ruleType)) return 'ruleType: string expected'; + if (message.pattern != null && message.hasOwnProperty('pattern')) + if (!$util.isString(message.pattern)) return 'pattern: string expected'; + if (message.match != null && message.hasOwnProperty('match')) + if (typeof message.match !== 'boolean') return 'match: boolean expected'; + if (message.minimum != null && message.hasOwnProperty('minimum')) + if (!$util.isInteger(message.minimum)) return 'minimum: integer expected'; + if (message.description != null && message.hasOwnProperty('description')) + if (!$util.isString(message.description)) return 'description: string expected'; + if (message.value != null && message.hasOwnProperty('value')) + if (!$util.isString(message.value)) return 'value: string expected'; return null; }; @@ -107196,21 +110676,14 @@ export const AccountSummary = $root.AccountSummary = (() => { * @returns {AccountSummary.PasswordRule} PasswordRule */ PasswordRule.fromObject = function fromObject(object) { - if (object instanceof $root.AccountSummary.PasswordRule) - return object; + if (object instanceof $root.AccountSummary.PasswordRule) return object; let message = new $root.AccountSummary.PasswordRule(); - if (object.ruleType != null) - message.ruleType = String(object.ruleType); - if (object.pattern != null) - message.pattern = String(object.pattern); - if (object.match != null) - message.match = Boolean(object.match); - if (object.minimum != null) - message.minimum = object.minimum | 0; - if (object.description != null) - message.description = String(object.description); - if (object.value != null) - message.value = String(object.value); + if (object.ruleType != null) message.ruleType = String(object.ruleType); + if (object.pattern != null) message.pattern = String(object.pattern); + if (object.match != null) message.match = Boolean(object.match); + if (object.minimum != null) message.minimum = object.minimum | 0; + if (object.description != null) message.description = String(object.description); + if (object.value != null) message.value = String(object.value); return message; }; @@ -107224,29 +110697,23 @@ export const AccountSummary = $root.AccountSummary = (() => { * @returns {Object.} Plain object */ PasswordRule.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - object.ruleType = ""; - object.pattern = ""; + object.ruleType = ''; + object.pattern = ''; object.match = false; object.minimum = 0; - object.description = ""; - object.value = ""; - } - if (message.ruleType != null && message.hasOwnProperty("ruleType")) - object.ruleType = message.ruleType; - if (message.pattern != null && message.hasOwnProperty("pattern")) - object.pattern = message.pattern; - if (message.match != null && message.hasOwnProperty("match")) - object.match = message.match; - if (message.minimum != null && message.hasOwnProperty("minimum")) - object.minimum = message.minimum; - if (message.description != null && message.hasOwnProperty("description")) + object.description = ''; + object.value = ''; + } + if (message.ruleType != null && message.hasOwnProperty('ruleType')) object.ruleType = message.ruleType; + if (message.pattern != null && message.hasOwnProperty('pattern')) object.pattern = message.pattern; + if (message.match != null && message.hasOwnProperty('match')) object.match = message.match; + if (message.minimum != null && message.hasOwnProperty('minimum')) object.minimum = message.minimum; + if (message.description != null && message.hasOwnProperty('description')) object.description = message.description; - if (message.value != null && message.hasOwnProperty("value")) - object.value = message.value; + if (message.value != null && message.hasOwnProperty('value')) object.value = message.value; return object; }; @@ -107271,16 +110738,15 @@ export const AccountSummary = $root.AccountSummary = (() => { */ PasswordRule.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/AccountSummary.PasswordRule"; + return typeUrlPrefix + '/AccountSummary.PasswordRule'; }; return PasswordRule; })(); - AccountSummary.SecurityKey = (function() { - + AccountSummary.SecurityKey = (function () { /** * Properties of a SecurityKey. * @memberof AccountSummary @@ -107303,8 +110769,7 @@ export const AccountSummary = $root.AccountSummary = (() => { function SecurityKey(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -107313,7 +110778,7 @@ export const AccountSummary = $root.AccountSummary = (() => { * @memberof AccountSummary.SecurityKey * @instance */ - SecurityKey.prototype.deviceId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + SecurityKey.prototype.deviceId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * SecurityKey deviceName. @@ -107321,7 +110786,7 @@ export const AccountSummary = $root.AccountSummary = (() => { * @memberof AccountSummary.SecurityKey * @instance */ - SecurityKey.prototype.deviceName = ""; + SecurityKey.prototype.deviceName = ''; /** * SecurityKey dateAdded. @@ -107329,7 +110794,7 @@ export const AccountSummary = $root.AccountSummary = (() => { * @memberof AccountSummary.SecurityKey * @instance */ - SecurityKey.prototype.dateAdded = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + SecurityKey.prototype.dateAdded = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * SecurityKey isValid. @@ -107369,18 +110834,20 @@ export const AccountSummary = $root.AccountSummary = (() => { * @returns {$protobuf.Writer} Writer */ SecurityKey.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.deviceId != null && Object.hasOwnProperty.call(message, "deviceId")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.deviceId); - if (message.deviceName != null && Object.hasOwnProperty.call(message, "deviceName")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.deviceName); - if (message.dateAdded != null && Object.hasOwnProperty.call(message, "dateAdded")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.dateAdded); - if (message.isValid != null && Object.hasOwnProperty.call(message, "isValid")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.isValid); - if (message.deviceRegistration != null && Object.hasOwnProperty.call(message, "deviceRegistration")) - $root.AccountSummary.DeviceRegistration.encode(message.deviceRegistration, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (!writer) writer = $Writer.create(); + if (message.deviceId != null && Object.hasOwnProperty.call(message, 'deviceId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int64(message.deviceId); + if (message.deviceName != null && Object.hasOwnProperty.call(message, 'deviceName')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.deviceName); + if (message.dateAdded != null && Object.hasOwnProperty.call(message, 'dateAdded')) + writer.uint32(/* id 3, wireType 0 =*/ 24).int64(message.dateAdded); + if (message.isValid != null && Object.hasOwnProperty.call(message, 'isValid')) + writer.uint32(/* id 4, wireType 0 =*/ 32).bool(message.isValid); + if (message.deviceRegistration != null && Object.hasOwnProperty.call(message, 'deviceRegistration')) + $root.AccountSummary.DeviceRegistration.encode( + message.deviceRegistration, + writer.uint32(/* id 5, wireType 2 =*/ 42).fork() + ).ldelim(); return writer; }; @@ -107409,35 +110876,38 @@ export const AccountSummary = $root.AccountSummary = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SecurityKey.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.AccountSummary.SecurityKey(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.AccountSummary.SecurityKey(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.deviceId = reader.int64(); break; } - case 2: { + case 2: { message.deviceName = reader.string(); break; } - case 3: { + case 3: { message.dateAdded = reader.int64(); break; } - case 4: { + case 4: { message.isValid = reader.bool(); break; } - case 5: { - message.deviceRegistration = $root.AccountSummary.DeviceRegistration.decode(reader, reader.uint32()); + case 5: { + message.deviceRegistration = $root.AccountSummary.DeviceRegistration.decode( + reader, + reader.uint32() + ); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -107454,8 +110924,7 @@ export const AccountSummary = $root.AccountSummary = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SecurityKey.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -107468,24 +110937,34 @@ export const AccountSummary = $root.AccountSummary = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ SecurityKey.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.deviceId != null && message.hasOwnProperty("deviceId")) - if (!$util.isInteger(message.deviceId) && !(message.deviceId && $util.isInteger(message.deviceId.low) && $util.isInteger(message.deviceId.high))) - return "deviceId: integer|Long expected"; - if (message.deviceName != null && message.hasOwnProperty("deviceName")) - if (!$util.isString(message.deviceName)) - return "deviceName: string expected"; - if (message.dateAdded != null && message.hasOwnProperty("dateAdded")) - if (!$util.isInteger(message.dateAdded) && !(message.dateAdded && $util.isInteger(message.dateAdded.low) && $util.isInteger(message.dateAdded.high))) - return "dateAdded: integer|Long expected"; - if (message.isValid != null && message.hasOwnProperty("isValid")) - if (typeof message.isValid !== "boolean") - return "isValid: boolean expected"; - if (message.deviceRegistration != null && message.hasOwnProperty("deviceRegistration")) { + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.deviceId != null && message.hasOwnProperty('deviceId')) + if ( + !$util.isInteger(message.deviceId) && + !( + message.deviceId && + $util.isInteger(message.deviceId.low) && + $util.isInteger(message.deviceId.high) + ) + ) + return 'deviceId: integer|Long expected'; + if (message.deviceName != null && message.hasOwnProperty('deviceName')) + if (!$util.isString(message.deviceName)) return 'deviceName: string expected'; + if (message.dateAdded != null && message.hasOwnProperty('dateAdded')) + if ( + !$util.isInteger(message.dateAdded) && + !( + message.dateAdded && + $util.isInteger(message.dateAdded.low) && + $util.isInteger(message.dateAdded.high) + ) + ) + return 'dateAdded: integer|Long expected'; + if (message.isValid != null && message.hasOwnProperty('isValid')) + if (typeof message.isValid !== 'boolean') return 'isValid: boolean expected'; + if (message.deviceRegistration != null && message.hasOwnProperty('deviceRegistration')) { let error = $root.AccountSummary.DeviceRegistration.verify(message.deviceRegistration); - if (error) - return "deviceRegistration." + error; + if (error) return 'deviceRegistration.' + error; } return null; }; @@ -107499,35 +110978,34 @@ export const AccountSummary = $root.AccountSummary = (() => { * @returns {AccountSummary.SecurityKey} SecurityKey */ SecurityKey.fromObject = function fromObject(object) { - if (object instanceof $root.AccountSummary.SecurityKey) - return object; + if (object instanceof $root.AccountSummary.SecurityKey) return object; let message = new $root.AccountSummary.SecurityKey(); if (object.deviceId != null) - if ($util.Long) - (message.deviceId = $util.Long.fromValue(object.deviceId)).unsigned = false; - else if (typeof object.deviceId === "string") - message.deviceId = parseInt(object.deviceId, 10); - else if (typeof object.deviceId === "number") - message.deviceId = object.deviceId; - else if (typeof object.deviceId === "object") - message.deviceId = new $util.LongBits(object.deviceId.low >>> 0, object.deviceId.high >>> 0).toNumber(); - if (object.deviceName != null) - message.deviceName = String(object.deviceName); + if ($util.Long) (message.deviceId = $util.Long.fromValue(object.deviceId)).unsigned = false; + else if (typeof object.deviceId === 'string') message.deviceId = parseInt(object.deviceId, 10); + else if (typeof object.deviceId === 'number') message.deviceId = object.deviceId; + else if (typeof object.deviceId === 'object') + message.deviceId = new $util.LongBits( + object.deviceId.low >>> 0, + object.deviceId.high >>> 0 + ).toNumber(); + if (object.deviceName != null) message.deviceName = String(object.deviceName); if (object.dateAdded != null) - if ($util.Long) - (message.dateAdded = $util.Long.fromValue(object.dateAdded)).unsigned = false; - else if (typeof object.dateAdded === "string") - message.dateAdded = parseInt(object.dateAdded, 10); - else if (typeof object.dateAdded === "number") - message.dateAdded = object.dateAdded; - else if (typeof object.dateAdded === "object") - message.dateAdded = new $util.LongBits(object.dateAdded.low >>> 0, object.dateAdded.high >>> 0).toNumber(); - if (object.isValid != null) - message.isValid = Boolean(object.isValid); + if ($util.Long) (message.dateAdded = $util.Long.fromValue(object.dateAdded)).unsigned = false; + else if (typeof object.dateAdded === 'string') message.dateAdded = parseInt(object.dateAdded, 10); + else if (typeof object.dateAdded === 'number') message.dateAdded = object.dateAdded; + else if (typeof object.dateAdded === 'object') + message.dateAdded = new $util.LongBits( + object.dateAdded.low >>> 0, + object.dateAdded.high >>> 0 + ).toNumber(); + if (object.isValid != null) message.isValid = Boolean(object.isValid); if (object.deviceRegistration != null) { - if (typeof object.deviceRegistration !== "object") - throw TypeError(".AccountSummary.SecurityKey.deviceRegistration: object expected"); - message.deviceRegistration = $root.AccountSummary.DeviceRegistration.fromObject(object.deviceRegistration); + if (typeof object.deviceRegistration !== 'object') + throw TypeError('.AccountSummary.SecurityKey.deviceRegistration: object expected'); + message.deviceRegistration = $root.AccountSummary.DeviceRegistration.fromObject( + object.deviceRegistration + ); } return message; }; @@ -107542,40 +111020,51 @@ export const AccountSummary = $root.AccountSummary = (() => { * @returns {Object.} Plain object */ SecurityKey.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.deviceId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.deviceId = options.longs === String ? "0" : 0; - object.deviceName = ""; + object.deviceId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.deviceId = options.longs === String ? '0' : 0; + object.deviceName = ''; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.dateAdded = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.dateAdded = options.longs === String ? "0" : 0; + object.dateAdded = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.dateAdded = options.longs === String ? '0' : 0; object.isValid = false; object.deviceRegistration = null; } - if (message.deviceId != null && message.hasOwnProperty("deviceId")) - if (typeof message.deviceId === "number") + if (message.deviceId != null && message.hasOwnProperty('deviceId')) + if (typeof message.deviceId === 'number') object.deviceId = options.longs === String ? String(message.deviceId) : message.deviceId; else - object.deviceId = options.longs === String ? $util.Long.prototype.toString.call(message.deviceId) : options.longs === Number ? new $util.LongBits(message.deviceId.low >>> 0, message.deviceId.high >>> 0).toNumber() : message.deviceId; - if (message.deviceName != null && message.hasOwnProperty("deviceName")) + object.deviceId = + options.longs === String + ? $util.Long.prototype.toString.call(message.deviceId) + : options.longs === Number + ? new $util.LongBits(message.deviceId.low >>> 0, message.deviceId.high >>> 0).toNumber() + : message.deviceId; + if (message.deviceName != null && message.hasOwnProperty('deviceName')) object.deviceName = message.deviceName; - if (message.dateAdded != null && message.hasOwnProperty("dateAdded")) - if (typeof message.dateAdded === "number") + if (message.dateAdded != null && message.hasOwnProperty('dateAdded')) + if (typeof message.dateAdded === 'number') object.dateAdded = options.longs === String ? String(message.dateAdded) : message.dateAdded; else - object.dateAdded = options.longs === String ? $util.Long.prototype.toString.call(message.dateAdded) : options.longs === Number ? new $util.LongBits(message.dateAdded.low >>> 0, message.dateAdded.high >>> 0).toNumber() : message.dateAdded; - if (message.isValid != null && message.hasOwnProperty("isValid")) - object.isValid = message.isValid; - if (message.deviceRegistration != null && message.hasOwnProperty("deviceRegistration")) - object.deviceRegistration = $root.AccountSummary.DeviceRegistration.toObject(message.deviceRegistration, options); + object.dateAdded = + options.longs === String + ? $util.Long.prototype.toString.call(message.dateAdded) + : options.longs === Number + ? new $util.LongBits(message.dateAdded.low >>> 0, message.dateAdded.high >>> 0).toNumber() + : message.dateAdded; + if (message.isValid != null && message.hasOwnProperty('isValid')) object.isValid = message.isValid; + if (message.deviceRegistration != null && message.hasOwnProperty('deviceRegistration')) + object.deviceRegistration = $root.AccountSummary.DeviceRegistration.toObject( + message.deviceRegistration, + options + ); return object; }; @@ -107600,16 +111089,15 @@ export const AccountSummary = $root.AccountSummary = (() => { */ SecurityKey.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/AccountSummary.SecurityKey"; + return typeUrlPrefix + '/AccountSummary.SecurityKey'; }; return SecurityKey; })(); - AccountSummary.DeviceRegistration = (function() { - + AccountSummary.DeviceRegistration = (function () { /** * Properties of a DeviceRegistration. * @memberof AccountSummary @@ -107632,8 +111120,7 @@ export const AccountSummary = $root.AccountSummary = (() => { function DeviceRegistration(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -107642,7 +111129,7 @@ export const AccountSummary = $root.AccountSummary = (() => { * @memberof AccountSummary.DeviceRegistration * @instance */ - DeviceRegistration.prototype.keyHandle = ""; + DeviceRegistration.prototype.keyHandle = ''; /** * DeviceRegistration publicKey. @@ -107658,7 +111145,7 @@ export const AccountSummary = $root.AccountSummary = (() => { * @memberof AccountSummary.DeviceRegistration * @instance */ - DeviceRegistration.prototype.attestationCert = ""; + DeviceRegistration.prototype.attestationCert = ''; /** * DeviceRegistration counter. @@ -107666,7 +111153,7 @@ export const AccountSummary = $root.AccountSummary = (() => { * @memberof AccountSummary.DeviceRegistration * @instance */ - DeviceRegistration.prototype.counter = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + DeviceRegistration.prototype.counter = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * DeviceRegistration compromised. @@ -107698,18 +111185,17 @@ export const AccountSummary = $root.AccountSummary = (() => { * @returns {$protobuf.Writer} Writer */ DeviceRegistration.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.keyHandle != null && Object.hasOwnProperty.call(message, "keyHandle")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.keyHandle); - if (message.publicKey != null && Object.hasOwnProperty.call(message, "publicKey")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.publicKey); - if (message.attestationCert != null && Object.hasOwnProperty.call(message, "attestationCert")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.attestationCert); - if (message.counter != null && Object.hasOwnProperty.call(message, "counter")) - writer.uint32(/* id 4, wireType 0 =*/32).int64(message.counter); - if (message.compromised != null && Object.hasOwnProperty.call(message, "compromised")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.compromised); + if (!writer) writer = $Writer.create(); + if (message.keyHandle != null && Object.hasOwnProperty.call(message, 'keyHandle')) + writer.uint32(/* id 1, wireType 2 =*/ 10).string(message.keyHandle); + if (message.publicKey != null && Object.hasOwnProperty.call(message, 'publicKey')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.publicKey); + if (message.attestationCert != null && Object.hasOwnProperty.call(message, 'attestationCert')) + writer.uint32(/* id 3, wireType 2 =*/ 26).string(message.attestationCert); + if (message.counter != null && Object.hasOwnProperty.call(message, 'counter')) + writer.uint32(/* id 4, wireType 0 =*/ 32).int64(message.counter); + if (message.compromised != null && Object.hasOwnProperty.call(message, 'compromised')) + writer.uint32(/* id 5, wireType 0 =*/ 40).bool(message.compromised); return writer; }; @@ -107738,35 +111224,35 @@ export const AccountSummary = $root.AccountSummary = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ DeviceRegistration.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.AccountSummary.DeviceRegistration(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.AccountSummary.DeviceRegistration(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.keyHandle = reader.string(); break; } - case 2: { + case 2: { message.publicKey = reader.bytes(); break; } - case 3: { + case 3: { message.attestationCert = reader.string(); break; } - case 4: { + case 4: { message.counter = reader.int64(); break; } - case 5: { + case 5: { message.compromised = reader.bool(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -107783,8 +111269,7 @@ export const AccountSummary = $root.AccountSummary = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ DeviceRegistration.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -107797,23 +111282,27 @@ export const AccountSummary = $root.AccountSummary = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ DeviceRegistration.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.keyHandle != null && message.hasOwnProperty("keyHandle")) - if (!$util.isString(message.keyHandle)) - return "keyHandle: string expected"; - if (message.publicKey != null && message.hasOwnProperty("publicKey")) - if (!(message.publicKey && typeof message.publicKey.length === "number" || $util.isString(message.publicKey))) - return "publicKey: buffer expected"; - if (message.attestationCert != null && message.hasOwnProperty("attestationCert")) - if (!$util.isString(message.attestationCert)) - return "attestationCert: string expected"; - if (message.counter != null && message.hasOwnProperty("counter")) - if (!$util.isInteger(message.counter) && !(message.counter && $util.isInteger(message.counter.low) && $util.isInteger(message.counter.high))) - return "counter: integer|Long expected"; - if (message.compromised != null && message.hasOwnProperty("compromised")) - if (typeof message.compromised !== "boolean") - return "compromised: boolean expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.keyHandle != null && message.hasOwnProperty('keyHandle')) + if (!$util.isString(message.keyHandle)) return 'keyHandle: string expected'; + if (message.publicKey != null && message.hasOwnProperty('publicKey')) + if ( + !( + (message.publicKey && typeof message.publicKey.length === 'number') || + $util.isString(message.publicKey) + ) + ) + return 'publicKey: buffer expected'; + if (message.attestationCert != null && message.hasOwnProperty('attestationCert')) + if (!$util.isString(message.attestationCert)) return 'attestationCert: string expected'; + if (message.counter != null && message.hasOwnProperty('counter')) + if ( + !$util.isInteger(message.counter) && + !(message.counter && $util.isInteger(message.counter.low) && $util.isInteger(message.counter.high)) + ) + return 'counter: integer|Long expected'; + if (message.compromised != null && message.hasOwnProperty('compromised')) + if (typeof message.compromised !== 'boolean') return 'compromised: boolean expected'; return null; }; @@ -107826,29 +111315,28 @@ export const AccountSummary = $root.AccountSummary = (() => { * @returns {AccountSummary.DeviceRegistration} DeviceRegistration */ DeviceRegistration.fromObject = function fromObject(object) { - if (object instanceof $root.AccountSummary.DeviceRegistration) - return object; + if (object instanceof $root.AccountSummary.DeviceRegistration) return object; let message = new $root.AccountSummary.DeviceRegistration(); - if (object.keyHandle != null) - message.keyHandle = String(object.keyHandle); + if (object.keyHandle != null) message.keyHandle = String(object.keyHandle); if (object.publicKey != null) - if (typeof object.publicKey === "string") - $util.base64.decode(object.publicKey, message.publicKey = $util.newBuffer($util.base64.length(object.publicKey)), 0); - else if (object.publicKey.length >= 0) - message.publicKey = object.publicKey; - if (object.attestationCert != null) - message.attestationCert = String(object.attestationCert); + if (typeof object.publicKey === 'string') + $util.base64.decode( + object.publicKey, + (message.publicKey = $util.newBuffer($util.base64.length(object.publicKey))), + 0 + ); + else if (object.publicKey.length >= 0) message.publicKey = object.publicKey; + if (object.attestationCert != null) message.attestationCert = String(object.attestationCert); if (object.counter != null) - if ($util.Long) - (message.counter = $util.Long.fromValue(object.counter)).unsigned = false; - else if (typeof object.counter === "string") - message.counter = parseInt(object.counter, 10); - else if (typeof object.counter === "number") - message.counter = object.counter; - else if (typeof object.counter === "object") - message.counter = new $util.LongBits(object.counter.low >>> 0, object.counter.high >>> 0).toNumber(); - if (object.compromised != null) - message.compromised = Boolean(object.compromised); + if ($util.Long) (message.counter = $util.Long.fromValue(object.counter)).unsigned = false; + else if (typeof object.counter === 'string') message.counter = parseInt(object.counter, 10); + else if (typeof object.counter === 'number') message.counter = object.counter; + else if (typeof object.counter === 'object') + message.counter = new $util.LongBits( + object.counter.low >>> 0, + object.counter.high >>> 0 + ).toNumber(); + if (object.compromised != null) message.compromised = Boolean(object.compromised); return message; }; @@ -107862,38 +111350,44 @@ export const AccountSummary = $root.AccountSummary = (() => { * @returns {Object.} Plain object */ DeviceRegistration.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - object.keyHandle = ""; - if (options.bytes === String) - object.publicKey = ""; + object.keyHandle = ''; + if (options.bytes === String) object.publicKey = ''; else { object.publicKey = []; - if (options.bytes !== Array) - object.publicKey = $util.newBuffer(object.publicKey); + if (options.bytes !== Array) object.publicKey = $util.newBuffer(object.publicKey); } - object.attestationCert = ""; + object.attestationCert = ''; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.counter = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.counter = options.longs === String ? "0" : 0; + object.counter = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.counter = options.longs === String ? '0' : 0; object.compromised = false; } - if (message.keyHandle != null && message.hasOwnProperty("keyHandle")) - object.keyHandle = message.keyHandle; - if (message.publicKey != null && message.hasOwnProperty("publicKey")) - object.publicKey = options.bytes === String ? $util.base64.encode(message.publicKey, 0, message.publicKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.publicKey) : message.publicKey; - if (message.attestationCert != null && message.hasOwnProperty("attestationCert")) + if (message.keyHandle != null && message.hasOwnProperty('keyHandle')) object.keyHandle = message.keyHandle; + if (message.publicKey != null && message.hasOwnProperty('publicKey')) + object.publicKey = + options.bytes === String + ? $util.base64.encode(message.publicKey, 0, message.publicKey.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.publicKey) + : message.publicKey; + if (message.attestationCert != null && message.hasOwnProperty('attestationCert')) object.attestationCert = message.attestationCert; - if (message.counter != null && message.hasOwnProperty("counter")) - if (typeof message.counter === "number") + if (message.counter != null && message.hasOwnProperty('counter')) + if (typeof message.counter === 'number') object.counter = options.longs === String ? String(message.counter) : message.counter; else - object.counter = options.longs === String ? $util.Long.prototype.toString.call(message.counter) : options.longs === Number ? new $util.LongBits(message.counter.low >>> 0, message.counter.high >>> 0).toNumber() : message.counter; - if (message.compromised != null && message.hasOwnProperty("compromised")) + object.counter = + options.longs === String + ? $util.Long.prototype.toString.call(message.counter) + : options.longs === Number + ? new $util.LongBits(message.counter.low >>> 0, message.counter.high >>> 0).toNumber() + : message.counter; + if (message.compromised != null && message.hasOwnProperty('compromised')) object.compromised = message.compromised; return object; }; @@ -107919,16 +111413,15 @@ export const AccountSummary = $root.AccountSummary = (() => { */ DeviceRegistration.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/AccountSummary.DeviceRegistration"; + return typeUrlPrefix + '/AccountSummary.DeviceRegistration'; }; return DeviceRegistration; })(); - AccountSummary.Group = (function() { - + AccountSummary.Group = (function () { /** * Properties of a Group. * @memberof AccountSummary @@ -107949,8 +111442,7 @@ export const AccountSummary = $root.AccountSummary = (() => { function Group(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -107967,7 +111459,7 @@ export const AccountSummary = $root.AccountSummary = (() => { * @memberof AccountSummary.Group * @instance */ - Group.prototype.groupVerificationCode = ""; + Group.prototype.groupVerificationCode = ''; /** * Group administrator. @@ -107999,14 +111491,16 @@ export const AccountSummary = $root.AccountSummary = (() => { * @returns {$protobuf.Writer} Writer */ Group.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.admin != null && Object.hasOwnProperty.call(message, "admin")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.admin); - if (message.groupVerificationCode != null && Object.hasOwnProperty.call(message, "groupVerificationCode")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.groupVerificationCode); - if (message.administrator != null && Object.hasOwnProperty.call(message, "administrator")) - $root.AccountSummary.Administrator.encode(message.administrator, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (!writer) writer = $Writer.create(); + if (message.admin != null && Object.hasOwnProperty.call(message, 'admin')) + writer.uint32(/* id 1, wireType 0 =*/ 8).bool(message.admin); + if (message.groupVerificationCode != null && Object.hasOwnProperty.call(message, 'groupVerificationCode')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.groupVerificationCode); + if (message.administrator != null && Object.hasOwnProperty.call(message, 'administrator')) + $root.AccountSummary.Administrator.encode( + message.administrator, + writer.uint32(/* id 4, wireType 2 =*/ 34).fork() + ).ldelim(); return writer; }; @@ -108035,27 +111529,27 @@ export const AccountSummary = $root.AccountSummary = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ Group.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.AccountSummary.Group(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.AccountSummary.Group(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.admin = reader.bool(); break; } - case 2: { + case 2: { message.groupVerificationCode = reader.string(); break; } - case 4: { + case 4: { message.administrator = $root.AccountSummary.Administrator.decode(reader, reader.uint32()); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -108072,8 +111566,7 @@ export const AccountSummary = $root.AccountSummary = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ Group.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -108086,18 +111579,14 @@ export const AccountSummary = $root.AccountSummary = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ Group.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.admin != null && message.hasOwnProperty("admin")) - if (typeof message.admin !== "boolean") - return "admin: boolean expected"; - if (message.groupVerificationCode != null && message.hasOwnProperty("groupVerificationCode")) - if (!$util.isString(message.groupVerificationCode)) - return "groupVerificationCode: string expected"; - if (message.administrator != null && message.hasOwnProperty("administrator")) { + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.admin != null && message.hasOwnProperty('admin')) + if (typeof message.admin !== 'boolean') return 'admin: boolean expected'; + if (message.groupVerificationCode != null && message.hasOwnProperty('groupVerificationCode')) + if (!$util.isString(message.groupVerificationCode)) return 'groupVerificationCode: string expected'; + if (message.administrator != null && message.hasOwnProperty('administrator')) { let error = $root.AccountSummary.Administrator.verify(message.administrator); - if (error) - return "administrator." + error; + if (error) return 'administrator.' + error; } return null; }; @@ -108111,16 +111600,14 @@ export const AccountSummary = $root.AccountSummary = (() => { * @returns {AccountSummary.Group} Group */ Group.fromObject = function fromObject(object) { - if (object instanceof $root.AccountSummary.Group) - return object; + if (object instanceof $root.AccountSummary.Group) return object; let message = new $root.AccountSummary.Group(); - if (object.admin != null) - message.admin = Boolean(object.admin); + if (object.admin != null) message.admin = Boolean(object.admin); if (object.groupVerificationCode != null) message.groupVerificationCode = String(object.groupVerificationCode); if (object.administrator != null) { - if (typeof object.administrator !== "object") - throw TypeError(".AccountSummary.Group.administrator: object expected"); + if (typeof object.administrator !== 'object') + throw TypeError('.AccountSummary.Group.administrator: object expected'); message.administrator = $root.AccountSummary.Administrator.fromObject(object.administrator); } return message; @@ -108136,19 +111623,17 @@ export const AccountSummary = $root.AccountSummary = (() => { * @returns {Object.} Plain object */ Group.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { object.admin = false; - object.groupVerificationCode = ""; + object.groupVerificationCode = ''; object.administrator = null; } - if (message.admin != null && message.hasOwnProperty("admin")) - object.admin = message.admin; - if (message.groupVerificationCode != null && message.hasOwnProperty("groupVerificationCode")) + if (message.admin != null && message.hasOwnProperty('admin')) object.admin = message.admin; + if (message.groupVerificationCode != null && message.hasOwnProperty('groupVerificationCode')) object.groupVerificationCode = message.groupVerificationCode; - if (message.administrator != null && message.hasOwnProperty("administrator")) + if (message.administrator != null && message.hasOwnProperty('administrator')) object.administrator = $root.AccountSummary.Administrator.toObject(message.administrator, options); return object; }; @@ -108174,16 +111659,15 @@ export const AccountSummary = $root.AccountSummary = (() => { */ Group.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/AccountSummary.Group"; + return typeUrlPrefix + '/AccountSummary.Group'; }; return Group; })(); - AccountSummary.Administrator = (function() { - + AccountSummary.Administrator = (function () { /** * Properties of an Administrator. * @memberof AccountSummary @@ -108209,8 +111693,7 @@ export const AccountSummary = $root.AccountSummary = (() => { function Administrator(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -108219,7 +111702,7 @@ export const AccountSummary = $root.AccountSummary = (() => { * @memberof AccountSummary.Administrator * @instance */ - Administrator.prototype.firstName = ""; + Administrator.prototype.firstName = ''; /** * Administrator lastName. @@ -108227,7 +111710,7 @@ export const AccountSummary = $root.AccountSummary = (() => { * @memberof AccountSummary.Administrator * @instance */ - Administrator.prototype.lastName = ""; + Administrator.prototype.lastName = ''; /** * Administrator email. @@ -108235,7 +111718,7 @@ export const AccountSummary = $root.AccountSummary = (() => { * @memberof AccountSummary.Administrator * @instance */ - Administrator.prototype.email = ""; + Administrator.prototype.email = ''; /** * Administrator currentNumberOfUsers. @@ -108259,7 +111742,7 @@ export const AccountSummary = $root.AccountSummary = (() => { * @memberof AccountSummary.Administrator * @instance */ - Administrator.prototype.subscriptionCode = ""; + Administrator.prototype.subscriptionCode = ''; /** * Administrator expirationDate. @@ -108267,7 +111750,7 @@ export const AccountSummary = $root.AccountSummary = (() => { * @memberof AccountSummary.Administrator * @instance */ - Administrator.prototype.expirationDate = ""; + Administrator.prototype.expirationDate = ''; /** * Administrator purchaseDate. @@ -108275,7 +111758,7 @@ export const AccountSummary = $root.AccountSummary = (() => { * @memberof AccountSummary.Administrator * @instance */ - Administrator.prototype.purchaseDate = ""; + Administrator.prototype.purchaseDate = ''; /** * Creates a new Administrator instance using the specified properties. @@ -108299,24 +111782,23 @@ export const AccountSummary = $root.AccountSummary = (() => { * @returns {$protobuf.Writer} Writer */ Administrator.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.firstName != null && Object.hasOwnProperty.call(message, "firstName")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.firstName); - if (message.lastName != null && Object.hasOwnProperty.call(message, "lastName")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.lastName); - if (message.email != null && Object.hasOwnProperty.call(message, "email")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.email); - if (message.currentNumberOfUsers != null && Object.hasOwnProperty.call(message, "currentNumberOfUsers")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.currentNumberOfUsers); - if (message.numberOfUsers != null && Object.hasOwnProperty.call(message, "numberOfUsers")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.numberOfUsers); - if (message.subscriptionCode != null && Object.hasOwnProperty.call(message, "subscriptionCode")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.subscriptionCode); - if (message.expirationDate != null && Object.hasOwnProperty.call(message, "expirationDate")) - writer.uint32(/* id 8, wireType 2 =*/66).string(message.expirationDate); - if (message.purchaseDate != null && Object.hasOwnProperty.call(message, "purchaseDate")) - writer.uint32(/* id 9, wireType 2 =*/74).string(message.purchaseDate); + if (!writer) writer = $Writer.create(); + if (message.firstName != null && Object.hasOwnProperty.call(message, 'firstName')) + writer.uint32(/* id 1, wireType 2 =*/ 10).string(message.firstName); + if (message.lastName != null && Object.hasOwnProperty.call(message, 'lastName')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.lastName); + if (message.email != null && Object.hasOwnProperty.call(message, 'email')) + writer.uint32(/* id 3, wireType 2 =*/ 26).string(message.email); + if (message.currentNumberOfUsers != null && Object.hasOwnProperty.call(message, 'currentNumberOfUsers')) + writer.uint32(/* id 4, wireType 0 =*/ 32).int32(message.currentNumberOfUsers); + if (message.numberOfUsers != null && Object.hasOwnProperty.call(message, 'numberOfUsers')) + writer.uint32(/* id 5, wireType 0 =*/ 40).int32(message.numberOfUsers); + if (message.subscriptionCode != null && Object.hasOwnProperty.call(message, 'subscriptionCode')) + writer.uint32(/* id 7, wireType 2 =*/ 58).string(message.subscriptionCode); + if (message.expirationDate != null && Object.hasOwnProperty.call(message, 'expirationDate')) + writer.uint32(/* id 8, wireType 2 =*/ 66).string(message.expirationDate); + if (message.purchaseDate != null && Object.hasOwnProperty.call(message, 'purchaseDate')) + writer.uint32(/* id 9, wireType 2 =*/ 74).string(message.purchaseDate); return writer; }; @@ -108345,47 +111827,47 @@ export const AccountSummary = $root.AccountSummary = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ Administrator.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.AccountSummary.Administrator(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.AccountSummary.Administrator(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.firstName = reader.string(); break; } - case 2: { + case 2: { message.lastName = reader.string(); break; } - case 3: { + case 3: { message.email = reader.string(); break; } - case 4: { + case 4: { message.currentNumberOfUsers = reader.int32(); break; } - case 5: { + case 5: { message.numberOfUsers = reader.int32(); break; } - case 7: { + case 7: { message.subscriptionCode = reader.string(); break; } - case 8: { + case 8: { message.expirationDate = reader.string(); break; } - case 9: { + case 9: { message.purchaseDate = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -108402,8 +111884,7 @@ export const AccountSummary = $root.AccountSummary = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ Administrator.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -108416,32 +111897,23 @@ export const AccountSummary = $root.AccountSummary = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ Administrator.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.firstName != null && message.hasOwnProperty("firstName")) - if (!$util.isString(message.firstName)) - return "firstName: string expected"; - if (message.lastName != null && message.hasOwnProperty("lastName")) - if (!$util.isString(message.lastName)) - return "lastName: string expected"; - if (message.email != null && message.hasOwnProperty("email")) - if (!$util.isString(message.email)) - return "email: string expected"; - if (message.currentNumberOfUsers != null && message.hasOwnProperty("currentNumberOfUsers")) - if (!$util.isInteger(message.currentNumberOfUsers)) - return "currentNumberOfUsers: integer expected"; - if (message.numberOfUsers != null && message.hasOwnProperty("numberOfUsers")) - if (!$util.isInteger(message.numberOfUsers)) - return "numberOfUsers: integer expected"; - if (message.subscriptionCode != null && message.hasOwnProperty("subscriptionCode")) - if (!$util.isString(message.subscriptionCode)) - return "subscriptionCode: string expected"; - if (message.expirationDate != null && message.hasOwnProperty("expirationDate")) - if (!$util.isString(message.expirationDate)) - return "expirationDate: string expected"; - if (message.purchaseDate != null && message.hasOwnProperty("purchaseDate")) - if (!$util.isString(message.purchaseDate)) - return "purchaseDate: string expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.firstName != null && message.hasOwnProperty('firstName')) + if (!$util.isString(message.firstName)) return 'firstName: string expected'; + if (message.lastName != null && message.hasOwnProperty('lastName')) + if (!$util.isString(message.lastName)) return 'lastName: string expected'; + if (message.email != null && message.hasOwnProperty('email')) + if (!$util.isString(message.email)) return 'email: string expected'; + if (message.currentNumberOfUsers != null && message.hasOwnProperty('currentNumberOfUsers')) + if (!$util.isInteger(message.currentNumberOfUsers)) return 'currentNumberOfUsers: integer expected'; + if (message.numberOfUsers != null && message.hasOwnProperty('numberOfUsers')) + if (!$util.isInteger(message.numberOfUsers)) return 'numberOfUsers: integer expected'; + if (message.subscriptionCode != null && message.hasOwnProperty('subscriptionCode')) + if (!$util.isString(message.subscriptionCode)) return 'subscriptionCode: string expected'; + if (message.expirationDate != null && message.hasOwnProperty('expirationDate')) + if (!$util.isString(message.expirationDate)) return 'expirationDate: string expected'; + if (message.purchaseDate != null && message.hasOwnProperty('purchaseDate')) + if (!$util.isString(message.purchaseDate)) return 'purchaseDate: string expected'; return null; }; @@ -108454,25 +111926,16 @@ export const AccountSummary = $root.AccountSummary = (() => { * @returns {AccountSummary.Administrator} Administrator */ Administrator.fromObject = function fromObject(object) { - if (object instanceof $root.AccountSummary.Administrator) - return object; + if (object instanceof $root.AccountSummary.Administrator) return object; let message = new $root.AccountSummary.Administrator(); - if (object.firstName != null) - message.firstName = String(object.firstName); - if (object.lastName != null) - message.lastName = String(object.lastName); - if (object.email != null) - message.email = String(object.email); - if (object.currentNumberOfUsers != null) - message.currentNumberOfUsers = object.currentNumberOfUsers | 0; - if (object.numberOfUsers != null) - message.numberOfUsers = object.numberOfUsers | 0; - if (object.subscriptionCode != null) - message.subscriptionCode = String(object.subscriptionCode); - if (object.expirationDate != null) - message.expirationDate = String(object.expirationDate); - if (object.purchaseDate != null) - message.purchaseDate = String(object.purchaseDate); + if (object.firstName != null) message.firstName = String(object.firstName); + if (object.lastName != null) message.lastName = String(object.lastName); + if (object.email != null) message.email = String(object.email); + if (object.currentNumberOfUsers != null) message.currentNumberOfUsers = object.currentNumberOfUsers | 0; + if (object.numberOfUsers != null) message.numberOfUsers = object.numberOfUsers | 0; + if (object.subscriptionCode != null) message.subscriptionCode = String(object.subscriptionCode); + if (object.expirationDate != null) message.expirationDate = String(object.expirationDate); + if (object.purchaseDate != null) message.purchaseDate = String(object.purchaseDate); return message; }; @@ -108486,34 +111949,30 @@ export const AccountSummary = $root.AccountSummary = (() => { * @returns {Object.} Plain object */ Administrator.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - object.firstName = ""; - object.lastName = ""; - object.email = ""; + object.firstName = ''; + object.lastName = ''; + object.email = ''; object.currentNumberOfUsers = 0; object.numberOfUsers = 0; - object.subscriptionCode = ""; - object.expirationDate = ""; - object.purchaseDate = ""; - } - if (message.firstName != null && message.hasOwnProperty("firstName")) - object.firstName = message.firstName; - if (message.lastName != null && message.hasOwnProperty("lastName")) - object.lastName = message.lastName; - if (message.email != null && message.hasOwnProperty("email")) - object.email = message.email; - if (message.currentNumberOfUsers != null && message.hasOwnProperty("currentNumberOfUsers")) + object.subscriptionCode = ''; + object.expirationDate = ''; + object.purchaseDate = ''; + } + if (message.firstName != null && message.hasOwnProperty('firstName')) object.firstName = message.firstName; + if (message.lastName != null && message.hasOwnProperty('lastName')) object.lastName = message.lastName; + if (message.email != null && message.hasOwnProperty('email')) object.email = message.email; + if (message.currentNumberOfUsers != null && message.hasOwnProperty('currentNumberOfUsers')) object.currentNumberOfUsers = message.currentNumberOfUsers; - if (message.numberOfUsers != null && message.hasOwnProperty("numberOfUsers")) + if (message.numberOfUsers != null && message.hasOwnProperty('numberOfUsers')) object.numberOfUsers = message.numberOfUsers; - if (message.subscriptionCode != null && message.hasOwnProperty("subscriptionCode")) + if (message.subscriptionCode != null && message.hasOwnProperty('subscriptionCode')) object.subscriptionCode = message.subscriptionCode; - if (message.expirationDate != null && message.hasOwnProperty("expirationDate")) + if (message.expirationDate != null && message.hasOwnProperty('expirationDate')) object.expirationDate = message.expirationDate; - if (message.purchaseDate != null && message.hasOwnProperty("purchaseDate")) + if (message.purchaseDate != null && message.hasOwnProperty('purchaseDate')) object.purchaseDate = message.purchaseDate; return object; }; @@ -108539,19 +111998,18 @@ export const AccountSummary = $root.AccountSummary = (() => { */ Administrator.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/AccountSummary.Administrator"; + return typeUrlPrefix + '/AccountSummary.Administrator'; }; return Administrator; })(); return AccountSummary; -})(); - -export const Automator = $root.Automator = (() => { +})()); +export const Automator = ($root.Automator = (() => { /** * Namespace Automator. * @exports Automator @@ -108568,11 +112026,12 @@ export const Automator = $root.Automator = (() => { * @property {number} SAML2=1 SAML2 value * @property {number} JWT=2 JWT value */ - Automator.SsoAuthenticationProtocolType = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "UNKNOWN_PROTOCOL"] = 0; - values[valuesById[1] = "SAML2"] = 1; - values[valuesById[2] = "JWT"] = 2; + Automator.SsoAuthenticationProtocolType = (function () { + const valuesById = {}, + values = Object.create(valuesById); + values[(valuesById[0] = 'UNKNOWN_PROTOCOL')] = 0; + values[(valuesById[1] = 'SAML2')] = 1; + values[(valuesById[2] = 'JWT')] = 2; return values; })(); @@ -108584,16 +112043,16 @@ export const Automator = $root.Automator = (() => { * @property {number} PKCS12=1 PKCS12 value * @property {number} JKS=2 JKS value */ - Automator.CertificateFormat = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "UNKNOWN_FORMAT"] = 0; - values[valuesById[1] = "PKCS12"] = 1; - values[valuesById[2] = "JKS"] = 2; + Automator.CertificateFormat = (function () { + const valuesById = {}, + values = Object.create(valuesById); + values[(valuesById[0] = 'UNKNOWN_FORMAT')] = 0; + values[(valuesById[1] = 'PKCS12')] = 1; + values[(valuesById[2] = 'JKS')] = 2; return values; })(); - Automator.AutomatorSettingValue = (function() { - + Automator.AutomatorSettingValue = (function () { /** * Properties of an AutomatorSettingValue. * @memberof Automator @@ -108629,8 +112088,7 @@ export const Automator = $root.Automator = (() => { function AutomatorSettingValue(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -108639,7 +112097,7 @@ export const Automator = $root.Automator = (() => { * @memberof Automator.AutomatorSettingValue * @instance */ - AutomatorSettingValue.prototype.settingId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + AutomatorSettingValue.prototype.settingId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * AutomatorSettingValue settingTypeId. @@ -108655,7 +112113,7 @@ export const Automator = $root.Automator = (() => { * @memberof Automator.AutomatorSettingValue * @instance */ - AutomatorSettingValue.prototype.settingTag = ""; + AutomatorSettingValue.prototype.settingTag = ''; /** * AutomatorSettingValue settingName. @@ -108663,7 +112121,7 @@ export const Automator = $root.Automator = (() => { * @memberof Automator.AutomatorSettingValue * @instance */ - AutomatorSettingValue.prototype.settingName = ""; + AutomatorSettingValue.prototype.settingName = ''; /** * AutomatorSettingValue settingValue. @@ -108671,7 +112129,7 @@ export const Automator = $root.Automator = (() => { * @memberof Automator.AutomatorSettingValue * @instance */ - AutomatorSettingValue.prototype.settingValue = ""; + AutomatorSettingValue.prototype.settingValue = ''; /** * AutomatorSettingValue dataType. @@ -108687,7 +112145,7 @@ export const Automator = $root.Automator = (() => { * @memberof Automator.AutomatorSettingValue * @instance */ - AutomatorSettingValue.prototype.lastModified = ""; + AutomatorSettingValue.prototype.lastModified = ''; /** * AutomatorSettingValue fromFile. @@ -108767,36 +112225,35 @@ export const Automator = $root.Automator = (() => { * @returns {$protobuf.Writer} Writer */ AutomatorSettingValue.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.settingId != null && Object.hasOwnProperty.call(message, "settingId")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.settingId); - if (message.settingTypeId != null && Object.hasOwnProperty.call(message, "settingTypeId")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.settingTypeId); - if (message.settingTag != null && Object.hasOwnProperty.call(message, "settingTag")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.settingTag); - if (message.settingName != null && Object.hasOwnProperty.call(message, "settingName")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.settingName); - if (message.settingValue != null && Object.hasOwnProperty.call(message, "settingValue")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.settingValue); - if (message.dataType != null && Object.hasOwnProperty.call(message, "dataType")) - writer.uint32(/* id 6, wireType 0 =*/48).int32(message.dataType); - if (message.lastModified != null && Object.hasOwnProperty.call(message, "lastModified")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.lastModified); - if (message.fromFile != null && Object.hasOwnProperty.call(message, "fromFile")) - writer.uint32(/* id 8, wireType 0 =*/64).bool(message.fromFile); - if (message.encrypted != null && Object.hasOwnProperty.call(message, "encrypted")) - writer.uint32(/* id 9, wireType 0 =*/72).bool(message.encrypted); - if (message.encoded != null && Object.hasOwnProperty.call(message, "encoded")) - writer.uint32(/* id 10, wireType 0 =*/80).bool(message.encoded); - if (message.editable != null && Object.hasOwnProperty.call(message, "editable")) - writer.uint32(/* id 11, wireType 0 =*/88).bool(message.editable); - if (message.translated != null && Object.hasOwnProperty.call(message, "translated")) - writer.uint32(/* id 12, wireType 0 =*/96).bool(message.translated); - if (message.userVisible != null && Object.hasOwnProperty.call(message, "userVisible")) - writer.uint32(/* id 13, wireType 0 =*/104).bool(message.userVisible); - if (message.required != null && Object.hasOwnProperty.call(message, "required")) - writer.uint32(/* id 14, wireType 0 =*/112).bool(message.required); + if (!writer) writer = $Writer.create(); + if (message.settingId != null && Object.hasOwnProperty.call(message, 'settingId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int64(message.settingId); + if (message.settingTypeId != null && Object.hasOwnProperty.call(message, 'settingTypeId')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int32(message.settingTypeId); + if (message.settingTag != null && Object.hasOwnProperty.call(message, 'settingTag')) + writer.uint32(/* id 3, wireType 2 =*/ 26).string(message.settingTag); + if (message.settingName != null && Object.hasOwnProperty.call(message, 'settingName')) + writer.uint32(/* id 4, wireType 2 =*/ 34).string(message.settingName); + if (message.settingValue != null && Object.hasOwnProperty.call(message, 'settingValue')) + writer.uint32(/* id 5, wireType 2 =*/ 42).string(message.settingValue); + if (message.dataType != null && Object.hasOwnProperty.call(message, 'dataType')) + writer.uint32(/* id 6, wireType 0 =*/ 48).int32(message.dataType); + if (message.lastModified != null && Object.hasOwnProperty.call(message, 'lastModified')) + writer.uint32(/* id 7, wireType 2 =*/ 58).string(message.lastModified); + if (message.fromFile != null && Object.hasOwnProperty.call(message, 'fromFile')) + writer.uint32(/* id 8, wireType 0 =*/ 64).bool(message.fromFile); + if (message.encrypted != null && Object.hasOwnProperty.call(message, 'encrypted')) + writer.uint32(/* id 9, wireType 0 =*/ 72).bool(message.encrypted); + if (message.encoded != null && Object.hasOwnProperty.call(message, 'encoded')) + writer.uint32(/* id 10, wireType 0 =*/ 80).bool(message.encoded); + if (message.editable != null && Object.hasOwnProperty.call(message, 'editable')) + writer.uint32(/* id 11, wireType 0 =*/ 88).bool(message.editable); + if (message.translated != null && Object.hasOwnProperty.call(message, 'translated')) + writer.uint32(/* id 12, wireType 0 =*/ 96).bool(message.translated); + if (message.userVisible != null && Object.hasOwnProperty.call(message, 'userVisible')) + writer.uint32(/* id 13, wireType 0 =*/ 104).bool(message.userVisible); + if (message.required != null && Object.hasOwnProperty.call(message, 'required')) + writer.uint32(/* id 14, wireType 0 =*/ 112).bool(message.required); return writer; }; @@ -108825,71 +112282,71 @@ export const Automator = $root.Automator = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ AutomatorSettingValue.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Automator.AutomatorSettingValue(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Automator.AutomatorSettingValue(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.settingId = reader.int64(); break; } - case 2: { + case 2: { message.settingTypeId = reader.int32(); break; } - case 3: { + case 3: { message.settingTag = reader.string(); break; } - case 4: { + case 4: { message.settingName = reader.string(); break; } - case 5: { + case 5: { message.settingValue = reader.string(); break; } - case 6: { + case 6: { message.dataType = reader.int32(); break; } - case 7: { + case 7: { message.lastModified = reader.string(); break; } - case 8: { + case 8: { message.fromFile = reader.bool(); break; } - case 9: { + case 9: { message.encrypted = reader.bool(); break; } - case 10: { + case 10: { message.encoded = reader.bool(); break; } - case 11: { + case 11: { message.editable = reader.bool(); break; } - case 12: { + case 12: { message.translated = reader.bool(); break; } - case 13: { + case 13: { message.userVisible = reader.bool(); break; } - case 14: { + case 14: { message.required = reader.bool(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -108906,8 +112363,7 @@ export const Automator = $root.Automator = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ AutomatorSettingValue.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -108920,64 +112376,58 @@ export const Automator = $root.Automator = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ AutomatorSettingValue.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.settingId != null && message.hasOwnProperty("settingId")) - if (!$util.isInteger(message.settingId) && !(message.settingId && $util.isInteger(message.settingId.low) && $util.isInteger(message.settingId.high))) - return "settingId: integer|Long expected"; - if (message.settingTypeId != null && message.hasOwnProperty("settingTypeId")) - if (!$util.isInteger(message.settingTypeId)) - return "settingTypeId: integer expected"; - if (message.settingTag != null && message.hasOwnProperty("settingTag")) - if (!$util.isString(message.settingTag)) - return "settingTag: string expected"; - if (message.settingName != null && message.hasOwnProperty("settingName")) - if (!$util.isString(message.settingName)) - return "settingName: string expected"; - if (message.settingValue != null && message.hasOwnProperty("settingValue")) - if (!$util.isString(message.settingValue)) - return "settingValue: string expected"; - if (message.dataType != null && message.hasOwnProperty("dataType")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.settingId != null && message.hasOwnProperty('settingId')) + if ( + !$util.isInteger(message.settingId) && + !( + message.settingId && + $util.isInteger(message.settingId.low) && + $util.isInteger(message.settingId.high) + ) + ) + return 'settingId: integer|Long expected'; + if (message.settingTypeId != null && message.hasOwnProperty('settingTypeId')) + if (!$util.isInteger(message.settingTypeId)) return 'settingTypeId: integer expected'; + if (message.settingTag != null && message.hasOwnProperty('settingTag')) + if (!$util.isString(message.settingTag)) return 'settingTag: string expected'; + if (message.settingName != null && message.hasOwnProperty('settingName')) + if (!$util.isString(message.settingName)) return 'settingName: string expected'; + if (message.settingValue != null && message.hasOwnProperty('settingValue')) + if (!$util.isString(message.settingValue)) return 'settingValue: string expected'; + if (message.dataType != null && message.hasOwnProperty('dataType')) switch (message.dataType) { - default: - return "dataType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - case 10: - break; + default: + return 'dataType: enum value expected'; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + case 10: + break; } - if (message.lastModified != null && message.hasOwnProperty("lastModified")) - if (!$util.isString(message.lastModified)) - return "lastModified: string expected"; - if (message.fromFile != null && message.hasOwnProperty("fromFile")) - if (typeof message.fromFile !== "boolean") - return "fromFile: boolean expected"; - if (message.encrypted != null && message.hasOwnProperty("encrypted")) - if (typeof message.encrypted !== "boolean") - return "encrypted: boolean expected"; - if (message.encoded != null && message.hasOwnProperty("encoded")) - if (typeof message.encoded !== "boolean") - return "encoded: boolean expected"; - if (message.editable != null && message.hasOwnProperty("editable")) - if (typeof message.editable !== "boolean") - return "editable: boolean expected"; - if (message.translated != null && message.hasOwnProperty("translated")) - if (typeof message.translated !== "boolean") - return "translated: boolean expected"; - if (message.userVisible != null && message.hasOwnProperty("userVisible")) - if (typeof message.userVisible !== "boolean") - return "userVisible: boolean expected"; - if (message.required != null && message.hasOwnProperty("required")) - if (typeof message.required !== "boolean") - return "required: boolean expected"; + if (message.lastModified != null && message.hasOwnProperty('lastModified')) + if (!$util.isString(message.lastModified)) return 'lastModified: string expected'; + if (message.fromFile != null && message.hasOwnProperty('fromFile')) + if (typeof message.fromFile !== 'boolean') return 'fromFile: boolean expected'; + if (message.encrypted != null && message.hasOwnProperty('encrypted')) + if (typeof message.encrypted !== 'boolean') return 'encrypted: boolean expected'; + if (message.encoded != null && message.hasOwnProperty('encoded')) + if (typeof message.encoded !== 'boolean') return 'encoded: boolean expected'; + if (message.editable != null && message.hasOwnProperty('editable')) + if (typeof message.editable !== 'boolean') return 'editable: boolean expected'; + if (message.translated != null && message.hasOwnProperty('translated')) + if (typeof message.translated !== 'boolean') return 'translated: boolean expected'; + if (message.userVisible != null && message.hasOwnProperty('userVisible')) + if (typeof message.userVisible !== 'boolean') return 'userVisible: boolean expected'; + if (message.required != null && message.hasOwnProperty('required')) + if (typeof message.required !== 'boolean') return 'required: boolean expected'; return null; }; @@ -108990,94 +112440,81 @@ export const Automator = $root.Automator = (() => { * @returns {Automator.AutomatorSettingValue} AutomatorSettingValue */ AutomatorSettingValue.fromObject = function fromObject(object) { - if (object instanceof $root.Automator.AutomatorSettingValue) - return object; + if (object instanceof $root.Automator.AutomatorSettingValue) return object; let message = new $root.Automator.AutomatorSettingValue(); if (object.settingId != null) - if ($util.Long) - (message.settingId = $util.Long.fromValue(object.settingId)).unsigned = false; - else if (typeof object.settingId === "string") - message.settingId = parseInt(object.settingId, 10); - else if (typeof object.settingId === "number") - message.settingId = object.settingId; - else if (typeof object.settingId === "object") - message.settingId = new $util.LongBits(object.settingId.low >>> 0, object.settingId.high >>> 0).toNumber(); - if (object.settingTypeId != null) - message.settingTypeId = object.settingTypeId | 0; - if (object.settingTag != null) - message.settingTag = String(object.settingTag); - if (object.settingName != null) - message.settingName = String(object.settingName); - if (object.settingValue != null) - message.settingValue = String(object.settingValue); + if ($util.Long) (message.settingId = $util.Long.fromValue(object.settingId)).unsigned = false; + else if (typeof object.settingId === 'string') message.settingId = parseInt(object.settingId, 10); + else if (typeof object.settingId === 'number') message.settingId = object.settingId; + else if (typeof object.settingId === 'object') + message.settingId = new $util.LongBits( + object.settingId.low >>> 0, + object.settingId.high >>> 0 + ).toNumber(); + if (object.settingTypeId != null) message.settingTypeId = object.settingTypeId | 0; + if (object.settingTag != null) message.settingTag = String(object.settingTag); + if (object.settingName != null) message.settingName = String(object.settingName); + if (object.settingValue != null) message.settingValue = String(object.settingValue); switch (object.dataType) { - default: - if (typeof object.dataType === "number") { - message.dataType = object.dataType; - break; - } - break; - case "ANY": - case 0: - message.dataType = 0; - break; - case "BOOLEAN": - case 1: - message.dataType = 1; - break; - case "INTEGER": - case 2: - message.dataType = 2; - break; - case "STRING": - case 3: - message.dataType = 3; - break; - case "BYTES": - case 4: - message.dataType = 4; - break; - case "URL": - case 5: - message.dataType = 5; - break; - case "com_keepersecurity_proto_SsoCloud_DataType": - case 6: - message.dataType = 6; - break; - case "com_keepersecurity_proto_SsoCloud_AuthProtocolType": - case 7: - message.dataType = 7; - break; - case "com_keepersecurity_proto_SsoCloud_SsoIdpType": - case 8: - message.dataType = 8; - break; - case "LONG": - case 9: - message.dataType = 9; - break; - case "TIMESTAMP": - case 10: - message.dataType = 10; - break; + default: + if (typeof object.dataType === 'number') { + message.dataType = object.dataType; + break; + } + break; + case 'ANY': + case 0: + message.dataType = 0; + break; + case 'BOOLEAN': + case 1: + message.dataType = 1; + break; + case 'INTEGER': + case 2: + message.dataType = 2; + break; + case 'STRING': + case 3: + message.dataType = 3; + break; + case 'BYTES': + case 4: + message.dataType = 4; + break; + case 'URL': + case 5: + message.dataType = 5; + break; + case 'com_keepersecurity_proto_SsoCloud_DataType': + case 6: + message.dataType = 6; + break; + case 'com_keepersecurity_proto_SsoCloud_AuthProtocolType': + case 7: + message.dataType = 7; + break; + case 'com_keepersecurity_proto_SsoCloud_SsoIdpType': + case 8: + message.dataType = 8; + break; + case 'LONG': + case 9: + message.dataType = 9; + break; + case 'TIMESTAMP': + case 10: + message.dataType = 10; + break; } - if (object.lastModified != null) - message.lastModified = String(object.lastModified); - if (object.fromFile != null) - message.fromFile = Boolean(object.fromFile); - if (object.encrypted != null) - message.encrypted = Boolean(object.encrypted); - if (object.encoded != null) - message.encoded = Boolean(object.encoded); - if (object.editable != null) - message.editable = Boolean(object.editable); - if (object.translated != null) - message.translated = Boolean(object.translated); - if (object.userVisible != null) - message.userVisible = Boolean(object.userVisible); - if (object.required != null) - message.required = Boolean(object.required); + if (object.lastModified != null) message.lastModified = String(object.lastModified); + if (object.fromFile != null) message.fromFile = Boolean(object.fromFile); + if (object.encrypted != null) message.encrypted = Boolean(object.encrypted); + if (object.encoded != null) message.encoded = Boolean(object.encoded); + if (object.editable != null) message.editable = Boolean(object.editable); + if (object.translated != null) message.translated = Boolean(object.translated); + if (object.userVisible != null) message.userVisible = Boolean(object.userVisible); + if (object.required != null) message.required = Boolean(object.required); return message; }; @@ -109091,21 +112528,20 @@ export const Automator = $root.Automator = (() => { * @returns {Object.} Plain object */ AutomatorSettingValue.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.settingId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.settingId = options.longs === String ? "0" : 0; + object.settingId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.settingId = options.longs === String ? '0' : 0; object.settingTypeId = 0; - object.settingTag = ""; - object.settingName = ""; - object.settingValue = ""; - object.dataType = options.enums === String ? "ANY" : 0; - object.lastModified = ""; + object.settingTag = ''; + object.settingName = ''; + object.settingValue = ''; + object.dataType = options.enums === String ? 'ANY' : 0; + object.lastModified = ''; object.fromFile = false; object.encrypted = false; object.encoded = false; @@ -109114,37 +112550,42 @@ export const Automator = $root.Automator = (() => { object.userVisible = false; object.required = false; } - if (message.settingId != null && message.hasOwnProperty("settingId")) - if (typeof message.settingId === "number") + if (message.settingId != null && message.hasOwnProperty('settingId')) + if (typeof message.settingId === 'number') object.settingId = options.longs === String ? String(message.settingId) : message.settingId; else - object.settingId = options.longs === String ? $util.Long.prototype.toString.call(message.settingId) : options.longs === Number ? new $util.LongBits(message.settingId.low >>> 0, message.settingId.high >>> 0).toNumber() : message.settingId; - if (message.settingTypeId != null && message.hasOwnProperty("settingTypeId")) + object.settingId = + options.longs === String + ? $util.Long.prototype.toString.call(message.settingId) + : options.longs === Number + ? new $util.LongBits(message.settingId.low >>> 0, message.settingId.high >>> 0).toNumber() + : message.settingId; + if (message.settingTypeId != null && message.hasOwnProperty('settingTypeId')) object.settingTypeId = message.settingTypeId; - if (message.settingTag != null && message.hasOwnProperty("settingTag")) + if (message.settingTag != null && message.hasOwnProperty('settingTag')) object.settingTag = message.settingTag; - if (message.settingName != null && message.hasOwnProperty("settingName")) + if (message.settingName != null && message.hasOwnProperty('settingName')) object.settingName = message.settingName; - if (message.settingValue != null && message.hasOwnProperty("settingValue")) + if (message.settingValue != null && message.hasOwnProperty('settingValue')) object.settingValue = message.settingValue; - if (message.dataType != null && message.hasOwnProperty("dataType")) - object.dataType = options.enums === String ? $root.SsoCloud.DataType[message.dataType] === undefined ? message.dataType : $root.SsoCloud.DataType[message.dataType] : message.dataType; - if (message.lastModified != null && message.hasOwnProperty("lastModified")) + if (message.dataType != null && message.hasOwnProperty('dataType')) + object.dataType = + options.enums === String + ? $root.SsoCloud.DataType[message.dataType] === undefined + ? message.dataType + : $root.SsoCloud.DataType[message.dataType] + : message.dataType; + if (message.lastModified != null && message.hasOwnProperty('lastModified')) object.lastModified = message.lastModified; - if (message.fromFile != null && message.hasOwnProperty("fromFile")) - object.fromFile = message.fromFile; - if (message.encrypted != null && message.hasOwnProperty("encrypted")) - object.encrypted = message.encrypted; - if (message.encoded != null && message.hasOwnProperty("encoded")) - object.encoded = message.encoded; - if (message.editable != null && message.hasOwnProperty("editable")) - object.editable = message.editable; - if (message.translated != null && message.hasOwnProperty("translated")) + if (message.fromFile != null && message.hasOwnProperty('fromFile')) object.fromFile = message.fromFile; + if (message.encrypted != null && message.hasOwnProperty('encrypted')) object.encrypted = message.encrypted; + if (message.encoded != null && message.hasOwnProperty('encoded')) object.encoded = message.encoded; + if (message.editable != null && message.hasOwnProperty('editable')) object.editable = message.editable; + if (message.translated != null && message.hasOwnProperty('translated')) object.translated = message.translated; - if (message.userVisible != null && message.hasOwnProperty("userVisible")) + if (message.userVisible != null && message.hasOwnProperty('userVisible')) object.userVisible = message.userVisible; - if (message.required != null && message.hasOwnProperty("required")) - object.required = message.required; + if (message.required != null && message.hasOwnProperty('required')) object.required = message.required; return object; }; @@ -109169,16 +112610,15 @@ export const Automator = $root.Automator = (() => { */ AutomatorSettingValue.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Automator.AutomatorSettingValue"; + return typeUrlPrefix + '/Automator.AutomatorSettingValue'; }; return AutomatorSettingValue; })(); - Automator.ApproveDeviceRequest = (function() { - + Automator.ApproveDeviceRequest = (function () { /** * Properties of an ApproveDeviceRequest. * @memberof Automator @@ -109202,7 +112642,7 @@ export const Automator = $root.Automator = (() => { * @classdesc ApproveDeviceRequest * This is used to ask Automator to approve a user's device. * It requires a SAML Authentication response, or the equivalent. - * + * * @return an AutomatorResponse containing an ApproveDeviceResponse * @implements IApproveDeviceRequest * @constructor @@ -109211,8 +112651,7 @@ export const Automator = $root.Automator = (() => { function ApproveDeviceRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -109221,7 +112660,7 @@ export const Automator = $root.Automator = (() => { * @memberof Automator.ApproveDeviceRequest * @instance */ - ApproveDeviceRequest.prototype.automatorId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + ApproveDeviceRequest.prototype.automatorId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * ApproveDeviceRequest ssoAuthenticationProtocolType. @@ -109237,7 +112676,7 @@ export const Automator = $root.Automator = (() => { * @memberof Automator.ApproveDeviceRequest * @instance */ - ApproveDeviceRequest.prototype.authMessage = ""; + ApproveDeviceRequest.prototype.authMessage = ''; /** * ApproveDeviceRequest email. @@ -109245,7 +112684,7 @@ export const Automator = $root.Automator = (() => { * @memberof Automator.ApproveDeviceRequest * @instance */ - ApproveDeviceRequest.prototype.email = ""; + ApproveDeviceRequest.prototype.email = ''; /** * ApproveDeviceRequest devicePublicKey. @@ -109285,7 +112724,7 @@ export const Automator = $root.Automator = (() => { * @memberof Automator.ApproveDeviceRequest * @instance */ - ApproveDeviceRequest.prototype.ipAddress = ""; + ApproveDeviceRequest.prototype.ipAddress = ''; /** * ApproveDeviceRequest isTesting. @@ -109325,30 +112764,35 @@ export const Automator = $root.Automator = (() => { * @returns {$protobuf.Writer} Writer */ ApproveDeviceRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.automatorId != null && Object.hasOwnProperty.call(message, "automatorId")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.automatorId); - if (message.ssoAuthenticationProtocolType != null && Object.hasOwnProperty.call(message, "ssoAuthenticationProtocolType")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.ssoAuthenticationProtocolType); - if (message.authMessage != null && Object.hasOwnProperty.call(message, "authMessage")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.authMessage); - if (message.email != null && Object.hasOwnProperty.call(message, "email")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.email); - if (message.devicePublicKey != null && Object.hasOwnProperty.call(message, "devicePublicKey")) - writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.devicePublicKey); - if (message.serverEccPublicKeyId != null && Object.hasOwnProperty.call(message, "serverEccPublicKeyId")) - writer.uint32(/* id 6, wireType 0 =*/48).int32(message.serverEccPublicKeyId); - if (message.userEncryptedDataKey != null && Object.hasOwnProperty.call(message, "userEncryptedDataKey")) - writer.uint32(/* id 7, wireType 2 =*/58).bytes(message.userEncryptedDataKey); - if (message.userEncryptedDataKeyType != null && Object.hasOwnProperty.call(message, "userEncryptedDataKeyType")) - writer.uint32(/* id 8, wireType 0 =*/64).int32(message.userEncryptedDataKeyType); - if (message.ipAddress != null && Object.hasOwnProperty.call(message, "ipAddress")) - writer.uint32(/* id 9, wireType 2 =*/74).string(message.ipAddress); - if (message.isTesting != null && Object.hasOwnProperty.call(message, "isTesting")) - writer.uint32(/* id 10, wireType 0 =*/80).bool(message.isTesting); - if (message.isEccOnly != null && Object.hasOwnProperty.call(message, "isEccOnly")) - writer.uint32(/* id 11, wireType 0 =*/88).bool(message.isEccOnly); + if (!writer) writer = $Writer.create(); + if (message.automatorId != null && Object.hasOwnProperty.call(message, 'automatorId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int64(message.automatorId); + if ( + message.ssoAuthenticationProtocolType != null && + Object.hasOwnProperty.call(message, 'ssoAuthenticationProtocolType') + ) + writer.uint32(/* id 2, wireType 0 =*/ 16).int32(message.ssoAuthenticationProtocolType); + if (message.authMessage != null && Object.hasOwnProperty.call(message, 'authMessage')) + writer.uint32(/* id 3, wireType 2 =*/ 26).string(message.authMessage); + if (message.email != null && Object.hasOwnProperty.call(message, 'email')) + writer.uint32(/* id 4, wireType 2 =*/ 34).string(message.email); + if (message.devicePublicKey != null && Object.hasOwnProperty.call(message, 'devicePublicKey')) + writer.uint32(/* id 5, wireType 2 =*/ 42).bytes(message.devicePublicKey); + if (message.serverEccPublicKeyId != null && Object.hasOwnProperty.call(message, 'serverEccPublicKeyId')) + writer.uint32(/* id 6, wireType 0 =*/ 48).int32(message.serverEccPublicKeyId); + if (message.userEncryptedDataKey != null && Object.hasOwnProperty.call(message, 'userEncryptedDataKey')) + writer.uint32(/* id 7, wireType 2 =*/ 58).bytes(message.userEncryptedDataKey); + if ( + message.userEncryptedDataKeyType != null && + Object.hasOwnProperty.call(message, 'userEncryptedDataKeyType') + ) + writer.uint32(/* id 8, wireType 0 =*/ 64).int32(message.userEncryptedDataKeyType); + if (message.ipAddress != null && Object.hasOwnProperty.call(message, 'ipAddress')) + writer.uint32(/* id 9, wireType 2 =*/ 74).string(message.ipAddress); + if (message.isTesting != null && Object.hasOwnProperty.call(message, 'isTesting')) + writer.uint32(/* id 10, wireType 0 =*/ 80).bool(message.isTesting); + if (message.isEccOnly != null && Object.hasOwnProperty.call(message, 'isEccOnly')) + writer.uint32(/* id 11, wireType 0 =*/ 88).bool(message.isEccOnly); return writer; }; @@ -109377,59 +112821,59 @@ export const Automator = $root.Automator = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ApproveDeviceRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Automator.ApproveDeviceRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Automator.ApproveDeviceRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.automatorId = reader.int64(); break; } - case 2: { + case 2: { message.ssoAuthenticationProtocolType = reader.int32(); break; } - case 3: { + case 3: { message.authMessage = reader.string(); break; } - case 4: { + case 4: { message.email = reader.string(); break; } - case 5: { + case 5: { message.devicePublicKey = reader.bytes(); break; } - case 6: { + case 6: { message.serverEccPublicKeyId = reader.int32(); break; } - case 7: { + case 7: { message.userEncryptedDataKey = reader.bytes(); break; } - case 8: { + case 8: { message.userEncryptedDataKeyType = reader.int32(); break; } - case 9: { + case 9: { message.ipAddress = reader.string(); break; } - case 10: { + case 10: { message.isTesting = reader.bool(); break; } - case 11: { + case 11: { message.isEccOnly = reader.bool(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -109446,8 +112890,7 @@ export const Automator = $root.Automator = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ApproveDeviceRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -109460,55 +112903,68 @@ export const Automator = $root.Automator = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ ApproveDeviceRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.automatorId != null && message.hasOwnProperty("automatorId")) - if (!$util.isInteger(message.automatorId) && !(message.automatorId && $util.isInteger(message.automatorId.low) && $util.isInteger(message.automatorId.high))) - return "automatorId: integer|Long expected"; - if (message.ssoAuthenticationProtocolType != null && message.hasOwnProperty("ssoAuthenticationProtocolType")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.automatorId != null && message.hasOwnProperty('automatorId')) + if ( + !$util.isInteger(message.automatorId) && + !( + message.automatorId && + $util.isInteger(message.automatorId.low) && + $util.isInteger(message.automatorId.high) + ) + ) + return 'automatorId: integer|Long expected'; + if ( + message.ssoAuthenticationProtocolType != null && + message.hasOwnProperty('ssoAuthenticationProtocolType') + ) switch (message.ssoAuthenticationProtocolType) { - default: - return "ssoAuthenticationProtocolType: enum value expected"; - case 0: - case 1: - case 2: - break; + default: + return 'ssoAuthenticationProtocolType: enum value expected'; + case 0: + case 1: + case 2: + break; } - if (message.authMessage != null && message.hasOwnProperty("authMessage")) - if (!$util.isString(message.authMessage)) - return "authMessage: string expected"; - if (message.email != null && message.hasOwnProperty("email")) - if (!$util.isString(message.email)) - return "email: string expected"; - if (message.devicePublicKey != null && message.hasOwnProperty("devicePublicKey")) - if (!(message.devicePublicKey && typeof message.devicePublicKey.length === "number" || $util.isString(message.devicePublicKey))) - return "devicePublicKey: buffer expected"; - if (message.serverEccPublicKeyId != null && message.hasOwnProperty("serverEccPublicKeyId")) - if (!$util.isInteger(message.serverEccPublicKeyId)) - return "serverEccPublicKeyId: integer expected"; - if (message.userEncryptedDataKey != null && message.hasOwnProperty("userEncryptedDataKey")) - if (!(message.userEncryptedDataKey && typeof message.userEncryptedDataKey.length === "number" || $util.isString(message.userEncryptedDataKey))) - return "userEncryptedDataKey: buffer expected"; - if (message.userEncryptedDataKeyType != null && message.hasOwnProperty("userEncryptedDataKeyType")) + if (message.authMessage != null && message.hasOwnProperty('authMessage')) + if (!$util.isString(message.authMessage)) return 'authMessage: string expected'; + if (message.email != null && message.hasOwnProperty('email')) + if (!$util.isString(message.email)) return 'email: string expected'; + if (message.devicePublicKey != null && message.hasOwnProperty('devicePublicKey')) + if ( + !( + (message.devicePublicKey && typeof message.devicePublicKey.length === 'number') || + $util.isString(message.devicePublicKey) + ) + ) + return 'devicePublicKey: buffer expected'; + if (message.serverEccPublicKeyId != null && message.hasOwnProperty('serverEccPublicKeyId')) + if (!$util.isInteger(message.serverEccPublicKeyId)) return 'serverEccPublicKeyId: integer expected'; + if (message.userEncryptedDataKey != null && message.hasOwnProperty('userEncryptedDataKey')) + if ( + !( + (message.userEncryptedDataKey && typeof message.userEncryptedDataKey.length === 'number') || + $util.isString(message.userEncryptedDataKey) + ) + ) + return 'userEncryptedDataKey: buffer expected'; + if (message.userEncryptedDataKeyType != null && message.hasOwnProperty('userEncryptedDataKeyType')) switch (message.userEncryptedDataKeyType) { - default: - return "userEncryptedDataKeyType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; + default: + return 'userEncryptedDataKeyType: enum value expected'; + case 0: + case 1: + case 2: + case 3: + case 4: + break; } - if (message.ipAddress != null && message.hasOwnProperty("ipAddress")) - if (!$util.isString(message.ipAddress)) - return "ipAddress: string expected"; - if (message.isTesting != null && message.hasOwnProperty("isTesting")) - if (typeof message.isTesting !== "boolean") - return "isTesting: boolean expected"; - if (message.isEccOnly != null && message.hasOwnProperty("isEccOnly")) - if (typeof message.isEccOnly !== "boolean") - return "isEccOnly: boolean expected"; + if (message.ipAddress != null && message.hasOwnProperty('ipAddress')) + if (!$util.isString(message.ipAddress)) return 'ipAddress: string expected'; + if (message.isTesting != null && message.hasOwnProperty('isTesting')) + if (typeof message.isTesting !== 'boolean') return 'isTesting: boolean expected'; + if (message.isEccOnly != null && message.hasOwnProperty('isEccOnly')) + if (typeof message.isEccOnly !== 'boolean') return 'isEccOnly: boolean expected'; return null; }; @@ -109521,88 +112977,90 @@ export const Automator = $root.Automator = (() => { * @returns {Automator.ApproveDeviceRequest} ApproveDeviceRequest */ ApproveDeviceRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Automator.ApproveDeviceRequest) - return object; + if (object instanceof $root.Automator.ApproveDeviceRequest) return object; let message = new $root.Automator.ApproveDeviceRequest(); if (object.automatorId != null) - if ($util.Long) - (message.automatorId = $util.Long.fromValue(object.automatorId)).unsigned = false; - else if (typeof object.automatorId === "string") - message.automatorId = parseInt(object.automatorId, 10); - else if (typeof object.automatorId === "number") - message.automatorId = object.automatorId; - else if (typeof object.automatorId === "object") - message.automatorId = new $util.LongBits(object.automatorId.low >>> 0, object.automatorId.high >>> 0).toNumber(); + if ($util.Long) (message.automatorId = $util.Long.fromValue(object.automatorId)).unsigned = false; + else if (typeof object.automatorId === 'string') message.automatorId = parseInt(object.automatorId, 10); + else if (typeof object.automatorId === 'number') message.automatorId = object.automatorId; + else if (typeof object.automatorId === 'object') + message.automatorId = new $util.LongBits( + object.automatorId.low >>> 0, + object.automatorId.high >>> 0 + ).toNumber(); switch (object.ssoAuthenticationProtocolType) { - default: - if (typeof object.ssoAuthenticationProtocolType === "number") { - message.ssoAuthenticationProtocolType = object.ssoAuthenticationProtocolType; - break; - } - break; - case "UNKNOWN_PROTOCOL": - case 0: - message.ssoAuthenticationProtocolType = 0; - break; - case "SAML2": - case 1: - message.ssoAuthenticationProtocolType = 1; - break; - case "JWT": - case 2: - message.ssoAuthenticationProtocolType = 2; - break; - } - if (object.authMessage != null) - message.authMessage = String(object.authMessage); - if (object.email != null) - message.email = String(object.email); + default: + if (typeof object.ssoAuthenticationProtocolType === 'number') { + message.ssoAuthenticationProtocolType = object.ssoAuthenticationProtocolType; + break; + } + break; + case 'UNKNOWN_PROTOCOL': + case 0: + message.ssoAuthenticationProtocolType = 0; + break; + case 'SAML2': + case 1: + message.ssoAuthenticationProtocolType = 1; + break; + case 'JWT': + case 2: + message.ssoAuthenticationProtocolType = 2; + break; + } + if (object.authMessage != null) message.authMessage = String(object.authMessage); + if (object.email != null) message.email = String(object.email); if (object.devicePublicKey != null) - if (typeof object.devicePublicKey === "string") - $util.base64.decode(object.devicePublicKey, message.devicePublicKey = $util.newBuffer($util.base64.length(object.devicePublicKey)), 0); - else if (object.devicePublicKey.length >= 0) - message.devicePublicKey = object.devicePublicKey; - if (object.serverEccPublicKeyId != null) - message.serverEccPublicKeyId = object.serverEccPublicKeyId | 0; + if (typeof object.devicePublicKey === 'string') + $util.base64.decode( + object.devicePublicKey, + (message.devicePublicKey = $util.newBuffer($util.base64.length(object.devicePublicKey))), + 0 + ); + else if (object.devicePublicKey.length >= 0) message.devicePublicKey = object.devicePublicKey; + if (object.serverEccPublicKeyId != null) message.serverEccPublicKeyId = object.serverEccPublicKeyId | 0; if (object.userEncryptedDataKey != null) - if (typeof object.userEncryptedDataKey === "string") - $util.base64.decode(object.userEncryptedDataKey, message.userEncryptedDataKey = $util.newBuffer($util.base64.length(object.userEncryptedDataKey)), 0); + if (typeof object.userEncryptedDataKey === 'string') + $util.base64.decode( + object.userEncryptedDataKey, + (message.userEncryptedDataKey = $util.newBuffer( + $util.base64.length(object.userEncryptedDataKey) + )), + 0 + ); else if (object.userEncryptedDataKey.length >= 0) message.userEncryptedDataKey = object.userEncryptedDataKey; switch (object.userEncryptedDataKeyType) { - default: - if (typeof object.userEncryptedDataKeyType === "number") { - message.userEncryptedDataKeyType = object.userEncryptedDataKeyType; - break; - } - break; - case "KT_NO_KEY": - case 0: - message.userEncryptedDataKeyType = 0; - break; - case "KT_ENCRYPTED_BY_DATA_KEY": - case 1: - message.userEncryptedDataKeyType = 1; - break; - case "KT_ENCRYPTED_BY_PUBLIC_KEY": - case 2: - message.userEncryptedDataKeyType = 2; - break; - case "KT_ENCRYPTED_BY_DATA_KEY_GCM": - case 3: - message.userEncryptedDataKeyType = 3; - break; - case "KT_ENCRYPTED_BY_PUBLIC_KEY_ECC": - case 4: - message.userEncryptedDataKeyType = 4; - break; - } - if (object.ipAddress != null) - message.ipAddress = String(object.ipAddress); - if (object.isTesting != null) - message.isTesting = Boolean(object.isTesting); - if (object.isEccOnly != null) - message.isEccOnly = Boolean(object.isEccOnly); + default: + if (typeof object.userEncryptedDataKeyType === 'number') { + message.userEncryptedDataKeyType = object.userEncryptedDataKeyType; + break; + } + break; + case 'KT_NO_KEY': + case 0: + message.userEncryptedDataKeyType = 0; + break; + case 'KT_ENCRYPTED_BY_DATA_KEY': + case 1: + message.userEncryptedDataKeyType = 1; + break; + case 'KT_ENCRYPTED_BY_PUBLIC_KEY': + case 2: + message.userEncryptedDataKeyType = 2; + break; + case 'KT_ENCRYPTED_BY_DATA_KEY_GCM': + case 3: + message.userEncryptedDataKeyType = 3; + break; + case 'KT_ENCRYPTED_BY_PUBLIC_KEY_ECC': + case 4: + message.userEncryptedDataKeyType = 4; + break; + } + if (object.ipAddress != null) message.ipAddress = String(object.ipAddress); + if (object.isTesting != null) message.isTesting = Boolean(object.isTesting); + if (object.isEccOnly != null) message.isEccOnly = Boolean(object.isEccOnly); return message; }; @@ -109616,63 +113074,87 @@ export const Automator = $root.Automator = (() => { * @returns {Object.} Plain object */ ApproveDeviceRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.automatorId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.automatorId = options.longs === String ? "0" : 0; - object.ssoAuthenticationProtocolType = options.enums === String ? "UNKNOWN_PROTOCOL" : 0; - object.authMessage = ""; - object.email = ""; - if (options.bytes === String) - object.devicePublicKey = ""; + object.automatorId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.automatorId = options.longs === String ? '0' : 0; + object.ssoAuthenticationProtocolType = options.enums === String ? 'UNKNOWN_PROTOCOL' : 0; + object.authMessage = ''; + object.email = ''; + if (options.bytes === String) object.devicePublicKey = ''; else { object.devicePublicKey = []; - if (options.bytes !== Array) - object.devicePublicKey = $util.newBuffer(object.devicePublicKey); + if (options.bytes !== Array) object.devicePublicKey = $util.newBuffer(object.devicePublicKey); } object.serverEccPublicKeyId = 0; - if (options.bytes === String) - object.userEncryptedDataKey = ""; + if (options.bytes === String) object.userEncryptedDataKey = ''; else { object.userEncryptedDataKey = []; if (options.bytes !== Array) object.userEncryptedDataKey = $util.newBuffer(object.userEncryptedDataKey); } - object.userEncryptedDataKeyType = options.enums === String ? "KT_NO_KEY" : 0; - object.ipAddress = ""; + object.userEncryptedDataKeyType = options.enums === String ? 'KT_NO_KEY' : 0; + object.ipAddress = ''; object.isTesting = false; object.isEccOnly = false; } - if (message.automatorId != null && message.hasOwnProperty("automatorId")) - if (typeof message.automatorId === "number") + if (message.automatorId != null && message.hasOwnProperty('automatorId')) + if (typeof message.automatorId === 'number') object.automatorId = options.longs === String ? String(message.automatorId) : message.automatorId; else - object.automatorId = options.longs === String ? $util.Long.prototype.toString.call(message.automatorId) : options.longs === Number ? new $util.LongBits(message.automatorId.low >>> 0, message.automatorId.high >>> 0).toNumber() : message.automatorId; - if (message.ssoAuthenticationProtocolType != null && message.hasOwnProperty("ssoAuthenticationProtocolType")) - object.ssoAuthenticationProtocolType = options.enums === String ? $root.Automator.SsoAuthenticationProtocolType[message.ssoAuthenticationProtocolType] === undefined ? message.ssoAuthenticationProtocolType : $root.Automator.SsoAuthenticationProtocolType[message.ssoAuthenticationProtocolType] : message.ssoAuthenticationProtocolType; - if (message.authMessage != null && message.hasOwnProperty("authMessage")) + object.automatorId = + options.longs === String + ? $util.Long.prototype.toString.call(message.automatorId) + : options.longs === Number + ? new $util.LongBits( + message.automatorId.low >>> 0, + message.automatorId.high >>> 0 + ).toNumber() + : message.automatorId; + if ( + message.ssoAuthenticationProtocolType != null && + message.hasOwnProperty('ssoAuthenticationProtocolType') + ) + object.ssoAuthenticationProtocolType = + options.enums === String + ? $root.Automator.SsoAuthenticationProtocolType[message.ssoAuthenticationProtocolType] === + undefined + ? message.ssoAuthenticationProtocolType + : $root.Automator.SsoAuthenticationProtocolType[message.ssoAuthenticationProtocolType] + : message.ssoAuthenticationProtocolType; + if (message.authMessage != null && message.hasOwnProperty('authMessage')) object.authMessage = message.authMessage; - if (message.email != null && message.hasOwnProperty("email")) - object.email = message.email; - if (message.devicePublicKey != null && message.hasOwnProperty("devicePublicKey")) - object.devicePublicKey = options.bytes === String ? $util.base64.encode(message.devicePublicKey, 0, message.devicePublicKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.devicePublicKey) : message.devicePublicKey; - if (message.serverEccPublicKeyId != null && message.hasOwnProperty("serverEccPublicKeyId")) + if (message.email != null && message.hasOwnProperty('email')) object.email = message.email; + if (message.devicePublicKey != null && message.hasOwnProperty('devicePublicKey')) + object.devicePublicKey = + options.bytes === String + ? $util.base64.encode(message.devicePublicKey, 0, message.devicePublicKey.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.devicePublicKey) + : message.devicePublicKey; + if (message.serverEccPublicKeyId != null && message.hasOwnProperty('serverEccPublicKeyId')) object.serverEccPublicKeyId = message.serverEccPublicKeyId; - if (message.userEncryptedDataKey != null && message.hasOwnProperty("userEncryptedDataKey")) - object.userEncryptedDataKey = options.bytes === String ? $util.base64.encode(message.userEncryptedDataKey, 0, message.userEncryptedDataKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.userEncryptedDataKey) : message.userEncryptedDataKey; - if (message.userEncryptedDataKeyType != null && message.hasOwnProperty("userEncryptedDataKeyType")) - object.userEncryptedDataKeyType = options.enums === String ? $root.Enterprise.EncryptedKeyType[message.userEncryptedDataKeyType] === undefined ? message.userEncryptedDataKeyType : $root.Enterprise.EncryptedKeyType[message.userEncryptedDataKeyType] : message.userEncryptedDataKeyType; - if (message.ipAddress != null && message.hasOwnProperty("ipAddress")) - object.ipAddress = message.ipAddress; - if (message.isTesting != null && message.hasOwnProperty("isTesting")) - object.isTesting = message.isTesting; - if (message.isEccOnly != null && message.hasOwnProperty("isEccOnly")) - object.isEccOnly = message.isEccOnly; + if (message.userEncryptedDataKey != null && message.hasOwnProperty('userEncryptedDataKey')) + object.userEncryptedDataKey = + options.bytes === String + ? $util.base64.encode(message.userEncryptedDataKey, 0, message.userEncryptedDataKey.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.userEncryptedDataKey) + : message.userEncryptedDataKey; + if (message.userEncryptedDataKeyType != null && message.hasOwnProperty('userEncryptedDataKeyType')) + object.userEncryptedDataKeyType = + options.enums === String + ? $root.Enterprise.EncryptedKeyType[message.userEncryptedDataKeyType] === undefined + ? message.userEncryptedDataKeyType + : $root.Enterprise.EncryptedKeyType[message.userEncryptedDataKeyType] + : message.userEncryptedDataKeyType; + if (message.ipAddress != null && message.hasOwnProperty('ipAddress')) object.ipAddress = message.ipAddress; + if (message.isTesting != null && message.hasOwnProperty('isTesting')) object.isTesting = message.isTesting; + if (message.isEccOnly != null && message.hasOwnProperty('isEccOnly')) object.isEccOnly = message.isEccOnly; return object; }; @@ -109697,16 +113179,15 @@ export const Automator = $root.Automator = (() => { */ ApproveDeviceRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Automator.ApproveDeviceRequest"; + return typeUrlPrefix + '/Automator.ApproveDeviceRequest'; }; return ApproveDeviceRequest; })(); - Automator.SetupRequest = (function() { - + Automator.SetupRequest = (function () { /** * Properties of a SetupRequest. * @memberof Automator @@ -109727,9 +113208,9 @@ export const Automator = $root.Automator = (() => { * @classdesc SetupRequest * In NEEDS_CRYPTO_STEP_1, this causes the automator to reply with the automator public ECC key. * In NEEDS_CRYPTO_STEP_2, this causes the automator to accept the ec_enterprise_private_key encrypted with the automator's public ECC key. - * + * * The client should check the automatorState in the AutomatorResponse to see what the next step should be. - * + * * @return an AutomatorResponse containing StatusResponse * @implements ISetupRequest * @constructor @@ -109739,8 +113220,7 @@ export const Automator = $root.Automator = (() => { this.automatorSkills = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -109749,7 +113229,7 @@ export const Automator = $root.Automator = (() => { * @memberof Automator.SetupRequest * @instance */ - SetupRequest.prototype.automatorId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + SetupRequest.prototype.automatorId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * SetupRequest serverEccPublicKeyId. @@ -109829,25 +113309,33 @@ export const Automator = $root.Automator = (() => { * @returns {$protobuf.Writer} Writer */ SetupRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.automatorId != null && Object.hasOwnProperty.call(message, "automatorId")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.automatorId); - if (message.serverEccPublicKeyId != null && Object.hasOwnProperty.call(message, "serverEccPublicKeyId")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.serverEccPublicKeyId); - if (message.automatorState != null && Object.hasOwnProperty.call(message, "automatorState")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.automatorState); - if (message.encryptedEnterprisePrivateEccKey != null && Object.hasOwnProperty.call(message, "encryptedEnterprisePrivateEccKey")) - writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.encryptedEnterprisePrivateEccKey); - if (message.encryptedEnterprisePrivateRsaKey != null && Object.hasOwnProperty.call(message, "encryptedEnterprisePrivateRsaKey")) - writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.encryptedEnterprisePrivateRsaKey); + if (!writer) writer = $Writer.create(); + if (message.automatorId != null && Object.hasOwnProperty.call(message, 'automatorId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int64(message.automatorId); + if (message.serverEccPublicKeyId != null && Object.hasOwnProperty.call(message, 'serverEccPublicKeyId')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int32(message.serverEccPublicKeyId); + if (message.automatorState != null && Object.hasOwnProperty.call(message, 'automatorState')) + writer.uint32(/* id 3, wireType 0 =*/ 24).int32(message.automatorState); + if ( + message.encryptedEnterprisePrivateEccKey != null && + Object.hasOwnProperty.call(message, 'encryptedEnterprisePrivateEccKey') + ) + writer.uint32(/* id 4, wireType 2 =*/ 34).bytes(message.encryptedEnterprisePrivateEccKey); + if ( + message.encryptedEnterprisePrivateRsaKey != null && + Object.hasOwnProperty.call(message, 'encryptedEnterprisePrivateRsaKey') + ) + writer.uint32(/* id 5, wireType 2 =*/ 42).bytes(message.encryptedEnterprisePrivateRsaKey); if (message.automatorSkills != null && message.automatorSkills.length) for (let i = 0; i < message.automatorSkills.length; ++i) - $root.Automator.AutomatorSkill.encode(message.automatorSkills[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.encryptedTreeKey != null && Object.hasOwnProperty.call(message, "encryptedTreeKey")) - writer.uint32(/* id 7, wireType 2 =*/58).bytes(message.encryptedTreeKey); - if (message.isEccOnly != null && Object.hasOwnProperty.call(message, "isEccOnly")) - writer.uint32(/* id 8, wireType 0 =*/64).bool(message.isEccOnly); + $root.Automator.AutomatorSkill.encode( + message.automatorSkills[i], + writer.uint32(/* id 6, wireType 2 =*/ 50).fork() + ).ldelim(); + if (message.encryptedTreeKey != null && Object.hasOwnProperty.call(message, 'encryptedTreeKey')) + writer.uint32(/* id 7, wireType 2 =*/ 58).bytes(message.encryptedTreeKey); + if (message.isEccOnly != null && Object.hasOwnProperty.call(message, 'isEccOnly')) + writer.uint32(/* id 8, wireType 0 =*/ 64).bool(message.isEccOnly); return writer; }; @@ -109876,49 +113364,48 @@ export const Automator = $root.Automator = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SetupRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Automator.SetupRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Automator.SetupRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.automatorId = reader.int64(); break; } - case 2: { + case 2: { message.serverEccPublicKeyId = reader.int32(); break; } - case 3: { + case 3: { message.automatorState = reader.int32(); break; } - case 4: { + case 4: { message.encryptedEnterprisePrivateEccKey = reader.bytes(); break; } - case 5: { + case 5: { message.encryptedEnterprisePrivateRsaKey = reader.bytes(); break; } - case 6: { - if (!(message.automatorSkills && message.automatorSkills.length)) - message.automatorSkills = []; + case 6: { + if (!(message.automatorSkills && message.automatorSkills.length)) message.automatorSkills = []; message.automatorSkills.push($root.Automator.AutomatorSkill.decode(reader, reader.uint32())); break; } - case 7: { + case 7: { message.encryptedTreeKey = reader.bytes(); break; } - case 8: { + case 8: { message.isEccOnly = reader.bool(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -109935,8 +113422,7 @@ export const Automator = $root.Automator = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SetupRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -109949,47 +113435,72 @@ export const Automator = $root.Automator = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ SetupRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.automatorId != null && message.hasOwnProperty("automatorId")) - if (!$util.isInteger(message.automatorId) && !(message.automatorId && $util.isInteger(message.automatorId.low) && $util.isInteger(message.automatorId.high))) - return "automatorId: integer|Long expected"; - if (message.serverEccPublicKeyId != null && message.hasOwnProperty("serverEccPublicKeyId")) - if (!$util.isInteger(message.serverEccPublicKeyId)) - return "serverEccPublicKeyId: integer expected"; - if (message.automatorState != null && message.hasOwnProperty("automatorState")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.automatorId != null && message.hasOwnProperty('automatorId')) + if ( + !$util.isInteger(message.automatorId) && + !( + message.automatorId && + $util.isInteger(message.automatorId.low) && + $util.isInteger(message.automatorId.high) + ) + ) + return 'automatorId: integer|Long expected'; + if (message.serverEccPublicKeyId != null && message.hasOwnProperty('serverEccPublicKeyId')) + if (!$util.isInteger(message.serverEccPublicKeyId)) return 'serverEccPublicKeyId: integer expected'; + if (message.automatorState != null && message.hasOwnProperty('automatorState')) switch (message.automatorState) { - default: - return "automatorState: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - break; + default: + return 'automatorState: enum value expected'; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + break; } - if (message.encryptedEnterprisePrivateEccKey != null && message.hasOwnProperty("encryptedEnterprisePrivateEccKey")) - if (!(message.encryptedEnterprisePrivateEccKey && typeof message.encryptedEnterprisePrivateEccKey.length === "number" || $util.isString(message.encryptedEnterprisePrivateEccKey))) - return "encryptedEnterprisePrivateEccKey: buffer expected"; - if (message.encryptedEnterprisePrivateRsaKey != null && message.hasOwnProperty("encryptedEnterprisePrivateRsaKey")) - if (!(message.encryptedEnterprisePrivateRsaKey && typeof message.encryptedEnterprisePrivateRsaKey.length === "number" || $util.isString(message.encryptedEnterprisePrivateRsaKey))) - return "encryptedEnterprisePrivateRsaKey: buffer expected"; - if (message.automatorSkills != null && message.hasOwnProperty("automatorSkills")) { - if (!Array.isArray(message.automatorSkills)) - return "automatorSkills: array expected"; + if ( + message.encryptedEnterprisePrivateEccKey != null && + message.hasOwnProperty('encryptedEnterprisePrivateEccKey') + ) + if ( + !( + (message.encryptedEnterprisePrivateEccKey && + typeof message.encryptedEnterprisePrivateEccKey.length === 'number') || + $util.isString(message.encryptedEnterprisePrivateEccKey) + ) + ) + return 'encryptedEnterprisePrivateEccKey: buffer expected'; + if ( + message.encryptedEnterprisePrivateRsaKey != null && + message.hasOwnProperty('encryptedEnterprisePrivateRsaKey') + ) + if ( + !( + (message.encryptedEnterprisePrivateRsaKey && + typeof message.encryptedEnterprisePrivateRsaKey.length === 'number') || + $util.isString(message.encryptedEnterprisePrivateRsaKey) + ) + ) + return 'encryptedEnterprisePrivateRsaKey: buffer expected'; + if (message.automatorSkills != null && message.hasOwnProperty('automatorSkills')) { + if (!Array.isArray(message.automatorSkills)) return 'automatorSkills: array expected'; for (let i = 0; i < message.automatorSkills.length; ++i) { let error = $root.Automator.AutomatorSkill.verify(message.automatorSkills[i]); - if (error) - return "automatorSkills." + error; + if (error) return 'automatorSkills.' + error; } } - if (message.encryptedTreeKey != null && message.hasOwnProperty("encryptedTreeKey")) - if (!(message.encryptedTreeKey && typeof message.encryptedTreeKey.length === "number" || $util.isString(message.encryptedTreeKey))) - return "encryptedTreeKey: buffer expected"; - if (message.isEccOnly != null && message.hasOwnProperty("isEccOnly")) - if (typeof message.isEccOnly !== "boolean") - return "isEccOnly: boolean expected"; + if (message.encryptedTreeKey != null && message.hasOwnProperty('encryptedTreeKey')) + if ( + !( + (message.encryptedTreeKey && typeof message.encryptedTreeKey.length === 'number') || + $util.isString(message.encryptedTreeKey) + ) + ) + return 'encryptedTreeKey: buffer expected'; + if (message.isEccOnly != null && message.hasOwnProperty('isEccOnly')) + if (typeof message.isEccOnly !== 'boolean') return 'isEccOnly: boolean expected'; return null; }; @@ -110002,79 +113513,91 @@ export const Automator = $root.Automator = (() => { * @returns {Automator.SetupRequest} SetupRequest */ SetupRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Automator.SetupRequest) - return object; + if (object instanceof $root.Automator.SetupRequest) return object; let message = new $root.Automator.SetupRequest(); if (object.automatorId != null) - if ($util.Long) - (message.automatorId = $util.Long.fromValue(object.automatorId)).unsigned = false; - else if (typeof object.automatorId === "string") - message.automatorId = parseInt(object.automatorId, 10); - else if (typeof object.automatorId === "number") - message.automatorId = object.automatorId; - else if (typeof object.automatorId === "object") - message.automatorId = new $util.LongBits(object.automatorId.low >>> 0, object.automatorId.high >>> 0).toNumber(); - if (object.serverEccPublicKeyId != null) - message.serverEccPublicKeyId = object.serverEccPublicKeyId | 0; + if ($util.Long) (message.automatorId = $util.Long.fromValue(object.automatorId)).unsigned = false; + else if (typeof object.automatorId === 'string') message.automatorId = parseInt(object.automatorId, 10); + else if (typeof object.automatorId === 'number') message.automatorId = object.automatorId; + else if (typeof object.automatorId === 'object') + message.automatorId = new $util.LongBits( + object.automatorId.low >>> 0, + object.automatorId.high >>> 0 + ).toNumber(); + if (object.serverEccPublicKeyId != null) message.serverEccPublicKeyId = object.serverEccPublicKeyId | 0; switch (object.automatorState) { - default: - if (typeof object.automatorState === "number") { - message.automatorState = object.automatorState; - break; - } - break; - case "UNKNOWN_STATE": - case 0: - message.automatorState = 0; - break; - case "RUNNING": - case 1: - message.automatorState = 1; - break; - case "ERROR": - case 2: - message.automatorState = 2; - break; - case "NEEDS_INITIALIZATION": - case 3: - message.automatorState = 3; - break; - case "NEEDS_CRYPTO_STEP_1": - case 4: - message.automatorState = 4; - break; - case "NEEDS_CRYPTO_STEP_2": - case 5: - message.automatorState = 5; - break; + default: + if (typeof object.automatorState === 'number') { + message.automatorState = object.automatorState; + break; + } + break; + case 'UNKNOWN_STATE': + case 0: + message.automatorState = 0; + break; + case 'RUNNING': + case 1: + message.automatorState = 1; + break; + case 'ERROR': + case 2: + message.automatorState = 2; + break; + case 'NEEDS_INITIALIZATION': + case 3: + message.automatorState = 3; + break; + case 'NEEDS_CRYPTO_STEP_1': + case 4: + message.automatorState = 4; + break; + case 'NEEDS_CRYPTO_STEP_2': + case 5: + message.automatorState = 5; + break; } if (object.encryptedEnterprisePrivateEccKey != null) - if (typeof object.encryptedEnterprisePrivateEccKey === "string") - $util.base64.decode(object.encryptedEnterprisePrivateEccKey, message.encryptedEnterprisePrivateEccKey = $util.newBuffer($util.base64.length(object.encryptedEnterprisePrivateEccKey)), 0); + if (typeof object.encryptedEnterprisePrivateEccKey === 'string') + $util.base64.decode( + object.encryptedEnterprisePrivateEccKey, + (message.encryptedEnterprisePrivateEccKey = $util.newBuffer( + $util.base64.length(object.encryptedEnterprisePrivateEccKey) + )), + 0 + ); else if (object.encryptedEnterprisePrivateEccKey.length >= 0) message.encryptedEnterprisePrivateEccKey = object.encryptedEnterprisePrivateEccKey; if (object.encryptedEnterprisePrivateRsaKey != null) - if (typeof object.encryptedEnterprisePrivateRsaKey === "string") - $util.base64.decode(object.encryptedEnterprisePrivateRsaKey, message.encryptedEnterprisePrivateRsaKey = $util.newBuffer($util.base64.length(object.encryptedEnterprisePrivateRsaKey)), 0); + if (typeof object.encryptedEnterprisePrivateRsaKey === 'string') + $util.base64.decode( + object.encryptedEnterprisePrivateRsaKey, + (message.encryptedEnterprisePrivateRsaKey = $util.newBuffer( + $util.base64.length(object.encryptedEnterprisePrivateRsaKey) + )), + 0 + ); else if (object.encryptedEnterprisePrivateRsaKey.length >= 0) message.encryptedEnterprisePrivateRsaKey = object.encryptedEnterprisePrivateRsaKey; if (object.automatorSkills) { if (!Array.isArray(object.automatorSkills)) - throw TypeError(".Automator.SetupRequest.automatorSkills: array expected"); + throw TypeError('.Automator.SetupRequest.automatorSkills: array expected'); message.automatorSkills = []; for (let i = 0; i < object.automatorSkills.length; ++i) { - if (typeof object.automatorSkills[i] !== "object") - throw TypeError(".Automator.SetupRequest.automatorSkills: object expected"); + if (typeof object.automatorSkills[i] !== 'object') + throw TypeError('.Automator.SetupRequest.automatorSkills: object expected'); message.automatorSkills[i] = $root.Automator.AutomatorSkill.fromObject(object.automatorSkills[i]); } } if (object.encryptedTreeKey != null) - if (typeof object.encryptedTreeKey === "string") - $util.base64.decode(object.encryptedTreeKey, message.encryptedTreeKey = $util.newBuffer($util.base64.length(object.encryptedTreeKey)), 0); - else if (object.encryptedTreeKey.length >= 0) - message.encryptedTreeKey = object.encryptedTreeKey; - if (object.isEccOnly != null) - message.isEccOnly = Boolean(object.isEccOnly); + if (typeof object.encryptedTreeKey === 'string') + $util.base64.decode( + object.encryptedTreeKey, + (message.encryptedTreeKey = $util.newBuffer($util.base64.length(object.encryptedTreeKey))), + 0 + ); + else if (object.encryptedTreeKey.length >= 0) message.encryptedTreeKey = object.encryptedTreeKey; + if (object.isEccOnly != null) message.isEccOnly = Boolean(object.isEccOnly); return message; }; @@ -110088,64 +113611,106 @@ export const Automator = $root.Automator = (() => { * @returns {Object.} Plain object */ SetupRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.automatorSkills = []; + if (options.arrays || options.defaults) object.automatorSkills = []; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.automatorId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.automatorId = options.longs === String ? "0" : 0; + object.automatorId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.automatorId = options.longs === String ? '0' : 0; object.serverEccPublicKeyId = 0; - object.automatorState = options.enums === String ? "UNKNOWN_STATE" : 0; - if (options.bytes === String) - object.encryptedEnterprisePrivateEccKey = ""; + object.automatorState = options.enums === String ? 'UNKNOWN_STATE' : 0; + if (options.bytes === String) object.encryptedEnterprisePrivateEccKey = ''; else { object.encryptedEnterprisePrivateEccKey = []; if (options.bytes !== Array) - object.encryptedEnterprisePrivateEccKey = $util.newBuffer(object.encryptedEnterprisePrivateEccKey); + object.encryptedEnterprisePrivateEccKey = $util.newBuffer( + object.encryptedEnterprisePrivateEccKey + ); } - if (options.bytes === String) - object.encryptedEnterprisePrivateRsaKey = ""; + if (options.bytes === String) object.encryptedEnterprisePrivateRsaKey = ''; else { object.encryptedEnterprisePrivateRsaKey = []; if (options.bytes !== Array) - object.encryptedEnterprisePrivateRsaKey = $util.newBuffer(object.encryptedEnterprisePrivateRsaKey); + object.encryptedEnterprisePrivateRsaKey = $util.newBuffer( + object.encryptedEnterprisePrivateRsaKey + ); } - if (options.bytes === String) - object.encryptedTreeKey = ""; + if (options.bytes === String) object.encryptedTreeKey = ''; else { object.encryptedTreeKey = []; - if (options.bytes !== Array) - object.encryptedTreeKey = $util.newBuffer(object.encryptedTreeKey); + if (options.bytes !== Array) object.encryptedTreeKey = $util.newBuffer(object.encryptedTreeKey); } object.isEccOnly = false; } - if (message.automatorId != null && message.hasOwnProperty("automatorId")) - if (typeof message.automatorId === "number") + if (message.automatorId != null && message.hasOwnProperty('automatorId')) + if (typeof message.automatorId === 'number') object.automatorId = options.longs === String ? String(message.automatorId) : message.automatorId; else - object.automatorId = options.longs === String ? $util.Long.prototype.toString.call(message.automatorId) : options.longs === Number ? new $util.LongBits(message.automatorId.low >>> 0, message.automatorId.high >>> 0).toNumber() : message.automatorId; - if (message.serverEccPublicKeyId != null && message.hasOwnProperty("serverEccPublicKeyId")) + object.automatorId = + options.longs === String + ? $util.Long.prototype.toString.call(message.automatorId) + : options.longs === Number + ? new $util.LongBits( + message.automatorId.low >>> 0, + message.automatorId.high >>> 0 + ).toNumber() + : message.automatorId; + if (message.serverEccPublicKeyId != null && message.hasOwnProperty('serverEccPublicKeyId')) object.serverEccPublicKeyId = message.serverEccPublicKeyId; - if (message.automatorState != null && message.hasOwnProperty("automatorState")) - object.automatorState = options.enums === String ? $root.Automator.AutomatorState[message.automatorState] === undefined ? message.automatorState : $root.Automator.AutomatorState[message.automatorState] : message.automatorState; - if (message.encryptedEnterprisePrivateEccKey != null && message.hasOwnProperty("encryptedEnterprisePrivateEccKey")) - object.encryptedEnterprisePrivateEccKey = options.bytes === String ? $util.base64.encode(message.encryptedEnterprisePrivateEccKey, 0, message.encryptedEnterprisePrivateEccKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedEnterprisePrivateEccKey) : message.encryptedEnterprisePrivateEccKey; - if (message.encryptedEnterprisePrivateRsaKey != null && message.hasOwnProperty("encryptedEnterprisePrivateRsaKey")) - object.encryptedEnterprisePrivateRsaKey = options.bytes === String ? $util.base64.encode(message.encryptedEnterprisePrivateRsaKey, 0, message.encryptedEnterprisePrivateRsaKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedEnterprisePrivateRsaKey) : message.encryptedEnterprisePrivateRsaKey; + if (message.automatorState != null && message.hasOwnProperty('automatorState')) + object.automatorState = + options.enums === String + ? $root.Automator.AutomatorState[message.automatorState] === undefined + ? message.automatorState + : $root.Automator.AutomatorState[message.automatorState] + : message.automatorState; + if ( + message.encryptedEnterprisePrivateEccKey != null && + message.hasOwnProperty('encryptedEnterprisePrivateEccKey') + ) + object.encryptedEnterprisePrivateEccKey = + options.bytes === String + ? $util.base64.encode( + message.encryptedEnterprisePrivateEccKey, + 0, + message.encryptedEnterprisePrivateEccKey.length + ) + : options.bytes === Array + ? Array.prototype.slice.call(message.encryptedEnterprisePrivateEccKey) + : message.encryptedEnterprisePrivateEccKey; + if ( + message.encryptedEnterprisePrivateRsaKey != null && + message.hasOwnProperty('encryptedEnterprisePrivateRsaKey') + ) + object.encryptedEnterprisePrivateRsaKey = + options.bytes === String + ? $util.base64.encode( + message.encryptedEnterprisePrivateRsaKey, + 0, + message.encryptedEnterprisePrivateRsaKey.length + ) + : options.bytes === Array + ? Array.prototype.slice.call(message.encryptedEnterprisePrivateRsaKey) + : message.encryptedEnterprisePrivateRsaKey; if (message.automatorSkills && message.automatorSkills.length) { object.automatorSkills = []; for (let j = 0; j < message.automatorSkills.length; ++j) - object.automatorSkills[j] = $root.Automator.AutomatorSkill.toObject(message.automatorSkills[j], options); + object.automatorSkills[j] = $root.Automator.AutomatorSkill.toObject( + message.automatorSkills[j], + options + ); } - if (message.encryptedTreeKey != null && message.hasOwnProperty("encryptedTreeKey")) - object.encryptedTreeKey = options.bytes === String ? $util.base64.encode(message.encryptedTreeKey, 0, message.encryptedTreeKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedTreeKey) : message.encryptedTreeKey; - if (message.isEccOnly != null && message.hasOwnProperty("isEccOnly")) - object.isEccOnly = message.isEccOnly; + if (message.encryptedTreeKey != null && message.hasOwnProperty('encryptedTreeKey')) + object.encryptedTreeKey = + options.bytes === String + ? $util.base64.encode(message.encryptedTreeKey, 0, message.encryptedTreeKey.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.encryptedTreeKey) + : message.encryptedTreeKey; + if (message.isEccOnly != null && message.hasOwnProperty('isEccOnly')) object.isEccOnly = message.isEccOnly; return object; }; @@ -110170,16 +113735,15 @@ export const Automator = $root.Automator = (() => { */ SetupRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Automator.SetupRequest"; + return typeUrlPrefix + '/Automator.SetupRequest'; }; return SetupRequest; })(); - Automator.StatusRequest = (function() { - + Automator.StatusRequest = (function () { /** * Properties of a StatusRequest. * @memberof Automator @@ -110202,8 +113766,7 @@ export const Automator = $root.Automator = (() => { function StatusRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -110212,7 +113775,7 @@ export const Automator = $root.Automator = (() => { * @memberof Automator.StatusRequest * @instance */ - StatusRequest.prototype.automatorId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + StatusRequest.prototype.automatorId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * StatusRequest serverEccPublicKeyId. @@ -110252,14 +113815,13 @@ export const Automator = $root.Automator = (() => { * @returns {$protobuf.Writer} Writer */ StatusRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.automatorId != null && Object.hasOwnProperty.call(message, "automatorId")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.automatorId); - if (message.serverEccPublicKeyId != null && Object.hasOwnProperty.call(message, "serverEccPublicKeyId")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.serverEccPublicKeyId); - if (message.isEccOnly != null && Object.hasOwnProperty.call(message, "isEccOnly")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.isEccOnly); + if (!writer) writer = $Writer.create(); + if (message.automatorId != null && Object.hasOwnProperty.call(message, 'automatorId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int64(message.automatorId); + if (message.serverEccPublicKeyId != null && Object.hasOwnProperty.call(message, 'serverEccPublicKeyId')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int32(message.serverEccPublicKeyId); + if (message.isEccOnly != null && Object.hasOwnProperty.call(message, 'isEccOnly')) + writer.uint32(/* id 3, wireType 0 =*/ 24).bool(message.isEccOnly); return writer; }; @@ -110288,27 +113850,27 @@ export const Automator = $root.Automator = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ StatusRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Automator.StatusRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Automator.StatusRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.automatorId = reader.int64(); break; } - case 2: { + case 2: { message.serverEccPublicKeyId = reader.int32(); break; } - case 3: { + case 3: { message.isEccOnly = reader.bool(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -110325,8 +113887,7 @@ export const Automator = $root.Automator = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ StatusRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -110339,17 +113900,21 @@ export const Automator = $root.Automator = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ StatusRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.automatorId != null && message.hasOwnProperty("automatorId")) - if (!$util.isInteger(message.automatorId) && !(message.automatorId && $util.isInteger(message.automatorId.low) && $util.isInteger(message.automatorId.high))) - return "automatorId: integer|Long expected"; - if (message.serverEccPublicKeyId != null && message.hasOwnProperty("serverEccPublicKeyId")) - if (!$util.isInteger(message.serverEccPublicKeyId)) - return "serverEccPublicKeyId: integer expected"; - if (message.isEccOnly != null && message.hasOwnProperty("isEccOnly")) - if (typeof message.isEccOnly !== "boolean") - return "isEccOnly: boolean expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.automatorId != null && message.hasOwnProperty('automatorId')) + if ( + !$util.isInteger(message.automatorId) && + !( + message.automatorId && + $util.isInteger(message.automatorId.low) && + $util.isInteger(message.automatorId.high) + ) + ) + return 'automatorId: integer|Long expected'; + if (message.serverEccPublicKeyId != null && message.hasOwnProperty('serverEccPublicKeyId')) + if (!$util.isInteger(message.serverEccPublicKeyId)) return 'serverEccPublicKeyId: integer expected'; + if (message.isEccOnly != null && message.hasOwnProperty('isEccOnly')) + if (typeof message.isEccOnly !== 'boolean') return 'isEccOnly: boolean expected'; return null; }; @@ -110362,22 +113927,19 @@ export const Automator = $root.Automator = (() => { * @returns {Automator.StatusRequest} StatusRequest */ StatusRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Automator.StatusRequest) - return object; + if (object instanceof $root.Automator.StatusRequest) return object; let message = new $root.Automator.StatusRequest(); if (object.automatorId != null) - if ($util.Long) - (message.automatorId = $util.Long.fromValue(object.automatorId)).unsigned = false; - else if (typeof object.automatorId === "string") - message.automatorId = parseInt(object.automatorId, 10); - else if (typeof object.automatorId === "number") - message.automatorId = object.automatorId; - else if (typeof object.automatorId === "object") - message.automatorId = new $util.LongBits(object.automatorId.low >>> 0, object.automatorId.high >>> 0).toNumber(); - if (object.serverEccPublicKeyId != null) - message.serverEccPublicKeyId = object.serverEccPublicKeyId | 0; - if (object.isEccOnly != null) - message.isEccOnly = Boolean(object.isEccOnly); + if ($util.Long) (message.automatorId = $util.Long.fromValue(object.automatorId)).unsigned = false; + else if (typeof object.automatorId === 'string') message.automatorId = parseInt(object.automatorId, 10); + else if (typeof object.automatorId === 'number') message.automatorId = object.automatorId; + else if (typeof object.automatorId === 'object') + message.automatorId = new $util.LongBits( + object.automatorId.low >>> 0, + object.automatorId.high >>> 0 + ).toNumber(); + if (object.serverEccPublicKeyId != null) message.serverEccPublicKeyId = object.serverEccPublicKeyId | 0; + if (object.isEccOnly != null) message.isEccOnly = Boolean(object.isEccOnly); return message; }; @@ -110391,27 +113953,33 @@ export const Automator = $root.Automator = (() => { * @returns {Object.} Plain object */ StatusRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.automatorId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.automatorId = options.longs === String ? "0" : 0; + object.automatorId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.automatorId = options.longs === String ? '0' : 0; object.serverEccPublicKeyId = 0; object.isEccOnly = false; } - if (message.automatorId != null && message.hasOwnProperty("automatorId")) - if (typeof message.automatorId === "number") + if (message.automatorId != null && message.hasOwnProperty('automatorId')) + if (typeof message.automatorId === 'number') object.automatorId = options.longs === String ? String(message.automatorId) : message.automatorId; else - object.automatorId = options.longs === String ? $util.Long.prototype.toString.call(message.automatorId) : options.longs === Number ? new $util.LongBits(message.automatorId.low >>> 0, message.automatorId.high >>> 0).toNumber() : message.automatorId; - if (message.serverEccPublicKeyId != null && message.hasOwnProperty("serverEccPublicKeyId")) + object.automatorId = + options.longs === String + ? $util.Long.prototype.toString.call(message.automatorId) + : options.longs === Number + ? new $util.LongBits( + message.automatorId.low >>> 0, + message.automatorId.high >>> 0 + ).toNumber() + : message.automatorId; + if (message.serverEccPublicKeyId != null && message.hasOwnProperty('serverEccPublicKeyId')) object.serverEccPublicKeyId = message.serverEccPublicKeyId; - if (message.isEccOnly != null && message.hasOwnProperty("isEccOnly")) - object.isEccOnly = message.isEccOnly; + if (message.isEccOnly != null && message.hasOwnProperty('isEccOnly')) object.isEccOnly = message.isEccOnly; return object; }; @@ -110436,16 +114004,15 @@ export const Automator = $root.Automator = (() => { */ StatusRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Automator.StatusRequest"; + return typeUrlPrefix + '/Automator.StatusRequest'; }; return StatusRequest; })(); - Automator.InitializeRequest = (function() { - + Automator.InitializeRequest = (function () { /** * Properties of an InitializeRequest. * @memberof Automator @@ -110481,7 +114048,7 @@ export const Automator = $root.Automator = (() => { * This is used to Initialize the Automator instance via an authenticated REST call. * Updated for Automator 2.0 by adding 9 new configuration parameters. * Updated for Automator 2.2 by adding 2 new configuration parameters. - * + * * @return an AutomatorResponse containing a StatusResponse * @implements IInitializeRequest * @constructor @@ -110490,8 +114057,7 @@ export const Automator = $root.Automator = (() => { function InitializeRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -110500,7 +114066,7 @@ export const Automator = $root.Automator = (() => { * @memberof Automator.InitializeRequest * @instance */ - InitializeRequest.prototype.automatorId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + InitializeRequest.prototype.automatorId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * InitializeRequest idpMetadata. @@ -110508,7 +114074,7 @@ export const Automator = $root.Automator = (() => { * @memberof Automator.InitializeRequest * @instance */ - InitializeRequest.prototype.idpMetadata = ""; + InitializeRequest.prototype.idpMetadata = ''; /** * InitializeRequest idpSigningCertificate. @@ -110524,7 +114090,7 @@ export const Automator = $root.Automator = (() => { * @memberof Automator.InitializeRequest * @instance */ - InitializeRequest.prototype.ssoEntityId = ""; + InitializeRequest.prototype.ssoEntityId = ''; /** * InitializeRequest emailMapping. @@ -110532,7 +114098,7 @@ export const Automator = $root.Automator = (() => { * @memberof Automator.InitializeRequest * @instance */ - InitializeRequest.prototype.emailMapping = ""; + InitializeRequest.prototype.emailMapping = ''; /** * InitializeRequest firstnameMapping. @@ -110540,7 +114106,7 @@ export const Automator = $root.Automator = (() => { * @memberof Automator.InitializeRequest * @instance */ - InitializeRequest.prototype.firstnameMapping = ""; + InitializeRequest.prototype.firstnameMapping = ''; /** * InitializeRequest lastnameMapping. @@ -110548,7 +114114,7 @@ export const Automator = $root.Automator = (() => { * @memberof Automator.InitializeRequest * @instance */ - InitializeRequest.prototype.lastnameMapping = ""; + InitializeRequest.prototype.lastnameMapping = ''; /** * InitializeRequest disabled. @@ -110580,7 +114146,7 @@ export const Automator = $root.Automator = (() => { * @memberof Automator.InitializeRequest * @instance */ - InitializeRequest.prototype.sslMode = ""; + InitializeRequest.prototype.sslMode = ''; /** * InitializeRequest persistState. @@ -110604,7 +114170,7 @@ export const Automator = $root.Automator = (() => { * @memberof Automator.InitializeRequest * @instance */ - InitializeRequest.prototype.sslCertificateFilename = ""; + InitializeRequest.prototype.sslCertificateFilename = ''; /** * InitializeRequest sslCertificateFilePassword. @@ -110612,7 +114178,7 @@ export const Automator = $root.Automator = (() => { * @memberof Automator.InitializeRequest * @instance */ - InitializeRequest.prototype.sslCertificateFilePassword = ""; + InitializeRequest.prototype.sslCertificateFilePassword = ''; /** * InitializeRequest sslCertificateKeyPassword. @@ -110620,7 +114186,7 @@ export const Automator = $root.Automator = (() => { * @memberof Automator.InitializeRequest * @instance */ - InitializeRequest.prototype.sslCertificateKeyPassword = ""; + InitializeRequest.prototype.sslCertificateKeyPassword = ''; /** * InitializeRequest sslCertificateContents. @@ -110636,7 +114202,7 @@ export const Automator = $root.Automator = (() => { * @memberof Automator.InitializeRequest * @instance */ - InitializeRequest.prototype.automatorHost = ""; + InitializeRequest.prototype.automatorHost = ''; /** * InitializeRequest automatorPort. @@ -110644,7 +114210,7 @@ export const Automator = $root.Automator = (() => { * @memberof Automator.InitializeRequest * @instance */ - InitializeRequest.prototype.automatorPort = ""; + InitializeRequest.prototype.automatorPort = ''; /** * InitializeRequest ipAllow. @@ -110652,7 +114218,7 @@ export const Automator = $root.Automator = (() => { * @memberof Automator.InitializeRequest * @instance */ - InitializeRequest.prototype.ipAllow = ""; + InitializeRequest.prototype.ipAllow = ''; /** * InitializeRequest ipDeny. @@ -110660,7 +114226,7 @@ export const Automator = $root.Automator = (() => { * @memberof Automator.InitializeRequest * @instance */ - InitializeRequest.prototype.ipDeny = ""; + InitializeRequest.prototype.ipDeny = ''; /** * InitializeRequest isEccOnly. @@ -110692,52 +114258,57 @@ export const Automator = $root.Automator = (() => { * @returns {$protobuf.Writer} Writer */ InitializeRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.automatorId != null && Object.hasOwnProperty.call(message, "automatorId")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.automatorId); - if (message.idpMetadata != null && Object.hasOwnProperty.call(message, "idpMetadata")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.idpMetadata); - if (message.idpSigningCertificate != null && Object.hasOwnProperty.call(message, "idpSigningCertificate")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.idpSigningCertificate); - if (message.ssoEntityId != null && Object.hasOwnProperty.call(message, "ssoEntityId")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.ssoEntityId); - if (message.emailMapping != null && Object.hasOwnProperty.call(message, "emailMapping")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.emailMapping); - if (message.firstnameMapping != null && Object.hasOwnProperty.call(message, "firstnameMapping")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.firstnameMapping); - if (message.lastnameMapping != null && Object.hasOwnProperty.call(message, "lastnameMapping")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.lastnameMapping); - if (message.disabled != null && Object.hasOwnProperty.call(message, "disabled")) - writer.uint32(/* id 8, wireType 0 =*/64).bool(message.disabled); - if (message.serverEccPublicKeyId != null && Object.hasOwnProperty.call(message, "serverEccPublicKeyId")) - writer.uint32(/* id 9, wireType 0 =*/72).int32(message.serverEccPublicKeyId); - if (message.config != null && Object.hasOwnProperty.call(message, "config")) - writer.uint32(/* id 10, wireType 2 =*/82).bytes(message.config); - if (message.sslMode != null && Object.hasOwnProperty.call(message, "sslMode")) - writer.uint32(/* id 11, wireType 2 =*/90).string(message.sslMode); - if (message.persistState != null && Object.hasOwnProperty.call(message, "persistState")) - writer.uint32(/* id 12, wireType 0 =*/96).bool(message.persistState); - if (message.disableSniCheck != null && Object.hasOwnProperty.call(message, "disableSniCheck")) - writer.uint32(/* id 13, wireType 0 =*/104).bool(message.disableSniCheck); - if (message.sslCertificateFilename != null && Object.hasOwnProperty.call(message, "sslCertificateFilename")) - writer.uint32(/* id 14, wireType 2 =*/114).string(message.sslCertificateFilename); - if (message.sslCertificateFilePassword != null && Object.hasOwnProperty.call(message, "sslCertificateFilePassword")) - writer.uint32(/* id 15, wireType 2 =*/122).string(message.sslCertificateFilePassword); - if (message.sslCertificateKeyPassword != null && Object.hasOwnProperty.call(message, "sslCertificateKeyPassword")) - writer.uint32(/* id 16, wireType 2 =*/130).string(message.sslCertificateKeyPassword); - if (message.sslCertificateContents != null && Object.hasOwnProperty.call(message, "sslCertificateContents")) - writer.uint32(/* id 17, wireType 2 =*/138).bytes(message.sslCertificateContents); - if (message.automatorHost != null && Object.hasOwnProperty.call(message, "automatorHost")) - writer.uint32(/* id 18, wireType 2 =*/146).string(message.automatorHost); - if (message.automatorPort != null && Object.hasOwnProperty.call(message, "automatorPort")) - writer.uint32(/* id 19, wireType 2 =*/154).string(message.automatorPort); - if (message.ipAllow != null && Object.hasOwnProperty.call(message, "ipAllow")) - writer.uint32(/* id 20, wireType 2 =*/162).string(message.ipAllow); - if (message.ipDeny != null && Object.hasOwnProperty.call(message, "ipDeny")) - writer.uint32(/* id 21, wireType 2 =*/170).string(message.ipDeny); - if (message.isEccOnly != null && Object.hasOwnProperty.call(message, "isEccOnly")) - writer.uint32(/* id 22, wireType 0 =*/176).bool(message.isEccOnly); + if (!writer) writer = $Writer.create(); + if (message.automatorId != null && Object.hasOwnProperty.call(message, 'automatorId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int64(message.automatorId); + if (message.idpMetadata != null && Object.hasOwnProperty.call(message, 'idpMetadata')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.idpMetadata); + if (message.idpSigningCertificate != null && Object.hasOwnProperty.call(message, 'idpSigningCertificate')) + writer.uint32(/* id 3, wireType 2 =*/ 26).bytes(message.idpSigningCertificate); + if (message.ssoEntityId != null && Object.hasOwnProperty.call(message, 'ssoEntityId')) + writer.uint32(/* id 4, wireType 2 =*/ 34).string(message.ssoEntityId); + if (message.emailMapping != null && Object.hasOwnProperty.call(message, 'emailMapping')) + writer.uint32(/* id 5, wireType 2 =*/ 42).string(message.emailMapping); + if (message.firstnameMapping != null && Object.hasOwnProperty.call(message, 'firstnameMapping')) + writer.uint32(/* id 6, wireType 2 =*/ 50).string(message.firstnameMapping); + if (message.lastnameMapping != null && Object.hasOwnProperty.call(message, 'lastnameMapping')) + writer.uint32(/* id 7, wireType 2 =*/ 58).string(message.lastnameMapping); + if (message.disabled != null && Object.hasOwnProperty.call(message, 'disabled')) + writer.uint32(/* id 8, wireType 0 =*/ 64).bool(message.disabled); + if (message.serverEccPublicKeyId != null && Object.hasOwnProperty.call(message, 'serverEccPublicKeyId')) + writer.uint32(/* id 9, wireType 0 =*/ 72).int32(message.serverEccPublicKeyId); + if (message.config != null && Object.hasOwnProperty.call(message, 'config')) + writer.uint32(/* id 10, wireType 2 =*/ 82).bytes(message.config); + if (message.sslMode != null && Object.hasOwnProperty.call(message, 'sslMode')) + writer.uint32(/* id 11, wireType 2 =*/ 90).string(message.sslMode); + if (message.persistState != null && Object.hasOwnProperty.call(message, 'persistState')) + writer.uint32(/* id 12, wireType 0 =*/ 96).bool(message.persistState); + if (message.disableSniCheck != null && Object.hasOwnProperty.call(message, 'disableSniCheck')) + writer.uint32(/* id 13, wireType 0 =*/ 104).bool(message.disableSniCheck); + if (message.sslCertificateFilename != null && Object.hasOwnProperty.call(message, 'sslCertificateFilename')) + writer.uint32(/* id 14, wireType 2 =*/ 114).string(message.sslCertificateFilename); + if ( + message.sslCertificateFilePassword != null && + Object.hasOwnProperty.call(message, 'sslCertificateFilePassword') + ) + writer.uint32(/* id 15, wireType 2 =*/ 122).string(message.sslCertificateFilePassword); + if ( + message.sslCertificateKeyPassword != null && + Object.hasOwnProperty.call(message, 'sslCertificateKeyPassword') + ) + writer.uint32(/* id 16, wireType 2 =*/ 130).string(message.sslCertificateKeyPassword); + if (message.sslCertificateContents != null && Object.hasOwnProperty.call(message, 'sslCertificateContents')) + writer.uint32(/* id 17, wireType 2 =*/ 138).bytes(message.sslCertificateContents); + if (message.automatorHost != null && Object.hasOwnProperty.call(message, 'automatorHost')) + writer.uint32(/* id 18, wireType 2 =*/ 146).string(message.automatorHost); + if (message.automatorPort != null && Object.hasOwnProperty.call(message, 'automatorPort')) + writer.uint32(/* id 19, wireType 2 =*/ 154).string(message.automatorPort); + if (message.ipAllow != null && Object.hasOwnProperty.call(message, 'ipAllow')) + writer.uint32(/* id 20, wireType 2 =*/ 162).string(message.ipAllow); + if (message.ipDeny != null && Object.hasOwnProperty.call(message, 'ipDeny')) + writer.uint32(/* id 21, wireType 2 =*/ 170).string(message.ipDeny); + if (message.isEccOnly != null && Object.hasOwnProperty.call(message, 'isEccOnly')) + writer.uint32(/* id 22, wireType 0 =*/ 176).bool(message.isEccOnly); return writer; }; @@ -110766,103 +114337,103 @@ export const Automator = $root.Automator = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ InitializeRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Automator.InitializeRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Automator.InitializeRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.automatorId = reader.int64(); break; } - case 2: { + case 2: { message.idpMetadata = reader.string(); break; } - case 3: { + case 3: { message.idpSigningCertificate = reader.bytes(); break; } - case 4: { + case 4: { message.ssoEntityId = reader.string(); break; } - case 5: { + case 5: { message.emailMapping = reader.string(); break; } - case 6: { + case 6: { message.firstnameMapping = reader.string(); break; } - case 7: { + case 7: { message.lastnameMapping = reader.string(); break; } - case 8: { + case 8: { message.disabled = reader.bool(); break; } - case 9: { + case 9: { message.serverEccPublicKeyId = reader.int32(); break; } - case 10: { + case 10: { message.config = reader.bytes(); break; } - case 11: { + case 11: { message.sslMode = reader.string(); break; } - case 12: { + case 12: { message.persistState = reader.bool(); break; } - case 13: { + case 13: { message.disableSniCheck = reader.bool(); break; } - case 14: { + case 14: { message.sslCertificateFilename = reader.string(); break; } - case 15: { + case 15: { message.sslCertificateFilePassword = reader.string(); break; } - case 16: { + case 16: { message.sslCertificateKeyPassword = reader.string(); break; } - case 17: { + case 17: { message.sslCertificateContents = reader.bytes(); break; } - case 18: { + case 18: { message.automatorHost = reader.string(); break; } - case 19: { + case 19: { message.automatorPort = reader.string(); break; } - case 20: { + case 20: { message.ipAllow = reader.string(); break; } - case 21: { + case 21: { message.ipDeny = reader.string(); break; } - case 22: { + case 22: { message.isEccOnly = reader.bool(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -110879,8 +114450,7 @@ export const Automator = $root.Automator = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ InitializeRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -110893,74 +114463,74 @@ export const Automator = $root.Automator = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ InitializeRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.automatorId != null && message.hasOwnProperty("automatorId")) - if (!$util.isInteger(message.automatorId) && !(message.automatorId && $util.isInteger(message.automatorId.low) && $util.isInteger(message.automatorId.high))) - return "automatorId: integer|Long expected"; - if (message.idpMetadata != null && message.hasOwnProperty("idpMetadata")) - if (!$util.isString(message.idpMetadata)) - return "idpMetadata: string expected"; - if (message.idpSigningCertificate != null && message.hasOwnProperty("idpSigningCertificate")) - if (!(message.idpSigningCertificate && typeof message.idpSigningCertificate.length === "number" || $util.isString(message.idpSigningCertificate))) - return "idpSigningCertificate: buffer expected"; - if (message.ssoEntityId != null && message.hasOwnProperty("ssoEntityId")) - if (!$util.isString(message.ssoEntityId)) - return "ssoEntityId: string expected"; - if (message.emailMapping != null && message.hasOwnProperty("emailMapping")) - if (!$util.isString(message.emailMapping)) - return "emailMapping: string expected"; - if (message.firstnameMapping != null && message.hasOwnProperty("firstnameMapping")) - if (!$util.isString(message.firstnameMapping)) - return "firstnameMapping: string expected"; - if (message.lastnameMapping != null && message.hasOwnProperty("lastnameMapping")) - if (!$util.isString(message.lastnameMapping)) - return "lastnameMapping: string expected"; - if (message.disabled != null && message.hasOwnProperty("disabled")) - if (typeof message.disabled !== "boolean") - return "disabled: boolean expected"; - if (message.serverEccPublicKeyId != null && message.hasOwnProperty("serverEccPublicKeyId")) - if (!$util.isInteger(message.serverEccPublicKeyId)) - return "serverEccPublicKeyId: integer expected"; - if (message.config != null && message.hasOwnProperty("config")) - if (!(message.config && typeof message.config.length === "number" || $util.isString(message.config))) - return "config: buffer expected"; - if (message.sslMode != null && message.hasOwnProperty("sslMode")) - if (!$util.isString(message.sslMode)) - return "sslMode: string expected"; - if (message.persistState != null && message.hasOwnProperty("persistState")) - if (typeof message.persistState !== "boolean") - return "persistState: boolean expected"; - if (message.disableSniCheck != null && message.hasOwnProperty("disableSniCheck")) - if (typeof message.disableSniCheck !== "boolean") - return "disableSniCheck: boolean expected"; - if (message.sslCertificateFilename != null && message.hasOwnProperty("sslCertificateFilename")) - if (!$util.isString(message.sslCertificateFilename)) - return "sslCertificateFilename: string expected"; - if (message.sslCertificateFilePassword != null && message.hasOwnProperty("sslCertificateFilePassword")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.automatorId != null && message.hasOwnProperty('automatorId')) + if ( + !$util.isInteger(message.automatorId) && + !( + message.automatorId && + $util.isInteger(message.automatorId.low) && + $util.isInteger(message.automatorId.high) + ) + ) + return 'automatorId: integer|Long expected'; + if (message.idpMetadata != null && message.hasOwnProperty('idpMetadata')) + if (!$util.isString(message.idpMetadata)) return 'idpMetadata: string expected'; + if (message.idpSigningCertificate != null && message.hasOwnProperty('idpSigningCertificate')) + if ( + !( + (message.idpSigningCertificate && typeof message.idpSigningCertificate.length === 'number') || + $util.isString(message.idpSigningCertificate) + ) + ) + return 'idpSigningCertificate: buffer expected'; + if (message.ssoEntityId != null && message.hasOwnProperty('ssoEntityId')) + if (!$util.isString(message.ssoEntityId)) return 'ssoEntityId: string expected'; + if (message.emailMapping != null && message.hasOwnProperty('emailMapping')) + if (!$util.isString(message.emailMapping)) return 'emailMapping: string expected'; + if (message.firstnameMapping != null && message.hasOwnProperty('firstnameMapping')) + if (!$util.isString(message.firstnameMapping)) return 'firstnameMapping: string expected'; + if (message.lastnameMapping != null && message.hasOwnProperty('lastnameMapping')) + if (!$util.isString(message.lastnameMapping)) return 'lastnameMapping: string expected'; + if (message.disabled != null && message.hasOwnProperty('disabled')) + if (typeof message.disabled !== 'boolean') return 'disabled: boolean expected'; + if (message.serverEccPublicKeyId != null && message.hasOwnProperty('serverEccPublicKeyId')) + if (!$util.isInteger(message.serverEccPublicKeyId)) return 'serverEccPublicKeyId: integer expected'; + if (message.config != null && message.hasOwnProperty('config')) + if (!((message.config && typeof message.config.length === 'number') || $util.isString(message.config))) + return 'config: buffer expected'; + if (message.sslMode != null && message.hasOwnProperty('sslMode')) + if (!$util.isString(message.sslMode)) return 'sslMode: string expected'; + if (message.persistState != null && message.hasOwnProperty('persistState')) + if (typeof message.persistState !== 'boolean') return 'persistState: boolean expected'; + if (message.disableSniCheck != null && message.hasOwnProperty('disableSniCheck')) + if (typeof message.disableSniCheck !== 'boolean') return 'disableSniCheck: boolean expected'; + if (message.sslCertificateFilename != null && message.hasOwnProperty('sslCertificateFilename')) + if (!$util.isString(message.sslCertificateFilename)) return 'sslCertificateFilename: string expected'; + if (message.sslCertificateFilePassword != null && message.hasOwnProperty('sslCertificateFilePassword')) if (!$util.isString(message.sslCertificateFilePassword)) - return "sslCertificateFilePassword: string expected"; - if (message.sslCertificateKeyPassword != null && message.hasOwnProperty("sslCertificateKeyPassword")) + return 'sslCertificateFilePassword: string expected'; + if (message.sslCertificateKeyPassword != null && message.hasOwnProperty('sslCertificateKeyPassword')) if (!$util.isString(message.sslCertificateKeyPassword)) - return "sslCertificateKeyPassword: string expected"; - if (message.sslCertificateContents != null && message.hasOwnProperty("sslCertificateContents")) - if (!(message.sslCertificateContents && typeof message.sslCertificateContents.length === "number" || $util.isString(message.sslCertificateContents))) - return "sslCertificateContents: buffer expected"; - if (message.automatorHost != null && message.hasOwnProperty("automatorHost")) - if (!$util.isString(message.automatorHost)) - return "automatorHost: string expected"; - if (message.automatorPort != null && message.hasOwnProperty("automatorPort")) - if (!$util.isString(message.automatorPort)) - return "automatorPort: string expected"; - if (message.ipAllow != null && message.hasOwnProperty("ipAllow")) - if (!$util.isString(message.ipAllow)) - return "ipAllow: string expected"; - if (message.ipDeny != null && message.hasOwnProperty("ipDeny")) - if (!$util.isString(message.ipDeny)) - return "ipDeny: string expected"; - if (message.isEccOnly != null && message.hasOwnProperty("isEccOnly")) - if (typeof message.isEccOnly !== "boolean") - return "isEccOnly: boolean expected"; + return 'sslCertificateKeyPassword: string expected'; + if (message.sslCertificateContents != null && message.hasOwnProperty('sslCertificateContents')) + if ( + !( + (message.sslCertificateContents && typeof message.sslCertificateContents.length === 'number') || + $util.isString(message.sslCertificateContents) + ) + ) + return 'sslCertificateContents: buffer expected'; + if (message.automatorHost != null && message.hasOwnProperty('automatorHost')) + if (!$util.isString(message.automatorHost)) return 'automatorHost: string expected'; + if (message.automatorPort != null && message.hasOwnProperty('automatorPort')) + if (!$util.isString(message.automatorPort)) return 'automatorPort: string expected'; + if (message.ipAllow != null && message.hasOwnProperty('ipAllow')) + if (!$util.isString(message.ipAllow)) return 'ipAllow: string expected'; + if (message.ipDeny != null && message.hasOwnProperty('ipDeny')) + if (!$util.isString(message.ipDeny)) return 'ipDeny: string expected'; + if (message.isEccOnly != null && message.hasOwnProperty('isEccOnly')) + if (typeof message.isEccOnly !== 'boolean') return 'isEccOnly: boolean expected'; return null; }; @@ -110973,48 +114543,46 @@ export const Automator = $root.Automator = (() => { * @returns {Automator.InitializeRequest} InitializeRequest */ InitializeRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Automator.InitializeRequest) - return object; + if (object instanceof $root.Automator.InitializeRequest) return object; let message = new $root.Automator.InitializeRequest(); if (object.automatorId != null) - if ($util.Long) - (message.automatorId = $util.Long.fromValue(object.automatorId)).unsigned = false; - else if (typeof object.automatorId === "string") - message.automatorId = parseInt(object.automatorId, 10); - else if (typeof object.automatorId === "number") - message.automatorId = object.automatorId; - else if (typeof object.automatorId === "object") - message.automatorId = new $util.LongBits(object.automatorId.low >>> 0, object.automatorId.high >>> 0).toNumber(); - if (object.idpMetadata != null) - message.idpMetadata = String(object.idpMetadata); + if ($util.Long) (message.automatorId = $util.Long.fromValue(object.automatorId)).unsigned = false; + else if (typeof object.automatorId === 'string') message.automatorId = parseInt(object.automatorId, 10); + else if (typeof object.automatorId === 'number') message.automatorId = object.automatorId; + else if (typeof object.automatorId === 'object') + message.automatorId = new $util.LongBits( + object.automatorId.low >>> 0, + object.automatorId.high >>> 0 + ).toNumber(); + if (object.idpMetadata != null) message.idpMetadata = String(object.idpMetadata); if (object.idpSigningCertificate != null) - if (typeof object.idpSigningCertificate === "string") - $util.base64.decode(object.idpSigningCertificate, message.idpSigningCertificate = $util.newBuffer($util.base64.length(object.idpSigningCertificate)), 0); + if (typeof object.idpSigningCertificate === 'string') + $util.base64.decode( + object.idpSigningCertificate, + (message.idpSigningCertificate = $util.newBuffer( + $util.base64.length(object.idpSigningCertificate) + )), + 0 + ); else if (object.idpSigningCertificate.length >= 0) message.idpSigningCertificate = object.idpSigningCertificate; - if (object.ssoEntityId != null) - message.ssoEntityId = String(object.ssoEntityId); - if (object.emailMapping != null) - message.emailMapping = String(object.emailMapping); - if (object.firstnameMapping != null) - message.firstnameMapping = String(object.firstnameMapping); - if (object.lastnameMapping != null) - message.lastnameMapping = String(object.lastnameMapping); - if (object.disabled != null) - message.disabled = Boolean(object.disabled); - if (object.serverEccPublicKeyId != null) - message.serverEccPublicKeyId = object.serverEccPublicKeyId | 0; + if (object.ssoEntityId != null) message.ssoEntityId = String(object.ssoEntityId); + if (object.emailMapping != null) message.emailMapping = String(object.emailMapping); + if (object.firstnameMapping != null) message.firstnameMapping = String(object.firstnameMapping); + if (object.lastnameMapping != null) message.lastnameMapping = String(object.lastnameMapping); + if (object.disabled != null) message.disabled = Boolean(object.disabled); + if (object.serverEccPublicKeyId != null) message.serverEccPublicKeyId = object.serverEccPublicKeyId | 0; if (object.config != null) - if (typeof object.config === "string") - $util.base64.decode(object.config, message.config = $util.newBuffer($util.base64.length(object.config)), 0); - else if (object.config.length >= 0) - message.config = object.config; - if (object.sslMode != null) - message.sslMode = String(object.sslMode); - if (object.persistState != null) - message.persistState = Boolean(object.persistState); - if (object.disableSniCheck != null) - message.disableSniCheck = Boolean(object.disableSniCheck); + if (typeof object.config === 'string') + $util.base64.decode( + object.config, + (message.config = $util.newBuffer($util.base64.length(object.config))), + 0 + ); + else if (object.config.length >= 0) message.config = object.config; + if (object.sslMode != null) message.sslMode = String(object.sslMode); + if (object.persistState != null) message.persistState = Boolean(object.persistState); + if (object.disableSniCheck != null) message.disableSniCheck = Boolean(object.disableSniCheck); if (object.sslCertificateFilename != null) message.sslCertificateFilename = String(object.sslCertificateFilename); if (object.sslCertificateFilePassword != null) @@ -111022,20 +114590,21 @@ export const Automator = $root.Automator = (() => { if (object.sslCertificateKeyPassword != null) message.sslCertificateKeyPassword = String(object.sslCertificateKeyPassword); if (object.sslCertificateContents != null) - if (typeof object.sslCertificateContents === "string") - $util.base64.decode(object.sslCertificateContents, message.sslCertificateContents = $util.newBuffer($util.base64.length(object.sslCertificateContents)), 0); + if (typeof object.sslCertificateContents === 'string') + $util.base64.decode( + object.sslCertificateContents, + (message.sslCertificateContents = $util.newBuffer( + $util.base64.length(object.sslCertificateContents) + )), + 0 + ); else if (object.sslCertificateContents.length >= 0) message.sslCertificateContents = object.sslCertificateContents; - if (object.automatorHost != null) - message.automatorHost = String(object.automatorHost); - if (object.automatorPort != null) - message.automatorPort = String(object.automatorPort); - if (object.ipAllow != null) - message.ipAllow = String(object.ipAllow); - if (object.ipDeny != null) - message.ipDeny = String(object.ipDeny); - if (object.isEccOnly != null) - message.isEccOnly = Boolean(object.isEccOnly); + if (object.automatorHost != null) message.automatorHost = String(object.automatorHost); + if (object.automatorPort != null) message.automatorPort = String(object.automatorPort); + if (object.ipAllow != null) message.ipAllow = String(object.ipAllow); + if (object.ipDeny != null) message.ipDeny = String(object.ipDeny); + if (object.isEccOnly != null) message.isEccOnly = Boolean(object.isEccOnly); return message; }; @@ -111049,102 +114618,115 @@ export const Automator = $root.Automator = (() => { * @returns {Object.} Plain object */ InitializeRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.automatorId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.automatorId = options.longs === String ? "0" : 0; - object.idpMetadata = ""; - if (options.bytes === String) - object.idpSigningCertificate = ""; + object.automatorId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.automatorId = options.longs === String ? '0' : 0; + object.idpMetadata = ''; + if (options.bytes === String) object.idpSigningCertificate = ''; else { object.idpSigningCertificate = []; if (options.bytes !== Array) object.idpSigningCertificate = $util.newBuffer(object.idpSigningCertificate); } - object.ssoEntityId = ""; - object.emailMapping = ""; - object.firstnameMapping = ""; - object.lastnameMapping = ""; + object.ssoEntityId = ''; + object.emailMapping = ''; + object.firstnameMapping = ''; + object.lastnameMapping = ''; object.disabled = false; object.serverEccPublicKeyId = 0; - if (options.bytes === String) - object.config = ""; + if (options.bytes === String) object.config = ''; else { object.config = []; - if (options.bytes !== Array) - object.config = $util.newBuffer(object.config); + if (options.bytes !== Array) object.config = $util.newBuffer(object.config); } - object.sslMode = ""; + object.sslMode = ''; object.persistState = false; object.disableSniCheck = false; - object.sslCertificateFilename = ""; - object.sslCertificateFilePassword = ""; - object.sslCertificateKeyPassword = ""; - if (options.bytes === String) - object.sslCertificateContents = ""; + object.sslCertificateFilename = ''; + object.sslCertificateFilePassword = ''; + object.sslCertificateKeyPassword = ''; + if (options.bytes === String) object.sslCertificateContents = ''; else { object.sslCertificateContents = []; if (options.bytes !== Array) object.sslCertificateContents = $util.newBuffer(object.sslCertificateContents); } - object.automatorHost = ""; - object.automatorPort = ""; - object.ipAllow = ""; - object.ipDeny = ""; + object.automatorHost = ''; + object.automatorPort = ''; + object.ipAllow = ''; + object.ipDeny = ''; object.isEccOnly = false; } - if (message.automatorId != null && message.hasOwnProperty("automatorId")) - if (typeof message.automatorId === "number") + if (message.automatorId != null && message.hasOwnProperty('automatorId')) + if (typeof message.automatorId === 'number') object.automatorId = options.longs === String ? String(message.automatorId) : message.automatorId; else - object.automatorId = options.longs === String ? $util.Long.prototype.toString.call(message.automatorId) : options.longs === Number ? new $util.LongBits(message.automatorId.low >>> 0, message.automatorId.high >>> 0).toNumber() : message.automatorId; - if (message.idpMetadata != null && message.hasOwnProperty("idpMetadata")) + object.automatorId = + options.longs === String + ? $util.Long.prototype.toString.call(message.automatorId) + : options.longs === Number + ? new $util.LongBits( + message.automatorId.low >>> 0, + message.automatorId.high >>> 0 + ).toNumber() + : message.automatorId; + if (message.idpMetadata != null && message.hasOwnProperty('idpMetadata')) object.idpMetadata = message.idpMetadata; - if (message.idpSigningCertificate != null && message.hasOwnProperty("idpSigningCertificate")) - object.idpSigningCertificate = options.bytes === String ? $util.base64.encode(message.idpSigningCertificate, 0, message.idpSigningCertificate.length) : options.bytes === Array ? Array.prototype.slice.call(message.idpSigningCertificate) : message.idpSigningCertificate; - if (message.ssoEntityId != null && message.hasOwnProperty("ssoEntityId")) + if (message.idpSigningCertificate != null && message.hasOwnProperty('idpSigningCertificate')) + object.idpSigningCertificate = + options.bytes === String + ? $util.base64.encode(message.idpSigningCertificate, 0, message.idpSigningCertificate.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.idpSigningCertificate) + : message.idpSigningCertificate; + if (message.ssoEntityId != null && message.hasOwnProperty('ssoEntityId')) object.ssoEntityId = message.ssoEntityId; - if (message.emailMapping != null && message.hasOwnProperty("emailMapping")) + if (message.emailMapping != null && message.hasOwnProperty('emailMapping')) object.emailMapping = message.emailMapping; - if (message.firstnameMapping != null && message.hasOwnProperty("firstnameMapping")) + if (message.firstnameMapping != null && message.hasOwnProperty('firstnameMapping')) object.firstnameMapping = message.firstnameMapping; - if (message.lastnameMapping != null && message.hasOwnProperty("lastnameMapping")) + if (message.lastnameMapping != null && message.hasOwnProperty('lastnameMapping')) object.lastnameMapping = message.lastnameMapping; - if (message.disabled != null && message.hasOwnProperty("disabled")) - object.disabled = message.disabled; - if (message.serverEccPublicKeyId != null && message.hasOwnProperty("serverEccPublicKeyId")) + if (message.disabled != null && message.hasOwnProperty('disabled')) object.disabled = message.disabled; + if (message.serverEccPublicKeyId != null && message.hasOwnProperty('serverEccPublicKeyId')) object.serverEccPublicKeyId = message.serverEccPublicKeyId; - if (message.config != null && message.hasOwnProperty("config")) - object.config = options.bytes === String ? $util.base64.encode(message.config, 0, message.config.length) : options.bytes === Array ? Array.prototype.slice.call(message.config) : message.config; - if (message.sslMode != null && message.hasOwnProperty("sslMode")) - object.sslMode = message.sslMode; - if (message.persistState != null && message.hasOwnProperty("persistState")) + if (message.config != null && message.hasOwnProperty('config')) + object.config = + options.bytes === String + ? $util.base64.encode(message.config, 0, message.config.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.config) + : message.config; + if (message.sslMode != null && message.hasOwnProperty('sslMode')) object.sslMode = message.sslMode; + if (message.persistState != null && message.hasOwnProperty('persistState')) object.persistState = message.persistState; - if (message.disableSniCheck != null && message.hasOwnProperty("disableSniCheck")) + if (message.disableSniCheck != null && message.hasOwnProperty('disableSniCheck')) object.disableSniCheck = message.disableSniCheck; - if (message.sslCertificateFilename != null && message.hasOwnProperty("sslCertificateFilename")) + if (message.sslCertificateFilename != null && message.hasOwnProperty('sslCertificateFilename')) object.sslCertificateFilename = message.sslCertificateFilename; - if (message.sslCertificateFilePassword != null && message.hasOwnProperty("sslCertificateFilePassword")) + if (message.sslCertificateFilePassword != null && message.hasOwnProperty('sslCertificateFilePassword')) object.sslCertificateFilePassword = message.sslCertificateFilePassword; - if (message.sslCertificateKeyPassword != null && message.hasOwnProperty("sslCertificateKeyPassword")) + if (message.sslCertificateKeyPassword != null && message.hasOwnProperty('sslCertificateKeyPassword')) object.sslCertificateKeyPassword = message.sslCertificateKeyPassword; - if (message.sslCertificateContents != null && message.hasOwnProperty("sslCertificateContents")) - object.sslCertificateContents = options.bytes === String ? $util.base64.encode(message.sslCertificateContents, 0, message.sslCertificateContents.length) : options.bytes === Array ? Array.prototype.slice.call(message.sslCertificateContents) : message.sslCertificateContents; - if (message.automatorHost != null && message.hasOwnProperty("automatorHost")) + if (message.sslCertificateContents != null && message.hasOwnProperty('sslCertificateContents')) + object.sslCertificateContents = + options.bytes === String + ? $util.base64.encode(message.sslCertificateContents, 0, message.sslCertificateContents.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.sslCertificateContents) + : message.sslCertificateContents; + if (message.automatorHost != null && message.hasOwnProperty('automatorHost')) object.automatorHost = message.automatorHost; - if (message.automatorPort != null && message.hasOwnProperty("automatorPort")) + if (message.automatorPort != null && message.hasOwnProperty('automatorPort')) object.automatorPort = message.automatorPort; - if (message.ipAllow != null && message.hasOwnProperty("ipAllow")) - object.ipAllow = message.ipAllow; - if (message.ipDeny != null && message.hasOwnProperty("ipDeny")) - object.ipDeny = message.ipDeny; - if (message.isEccOnly != null && message.hasOwnProperty("isEccOnly")) - object.isEccOnly = message.isEccOnly; + if (message.ipAllow != null && message.hasOwnProperty('ipAllow')) object.ipAllow = message.ipAllow; + if (message.ipDeny != null && message.hasOwnProperty('ipDeny')) object.ipDeny = message.ipDeny; + if (message.isEccOnly != null && message.hasOwnProperty('isEccOnly')) object.isEccOnly = message.isEccOnly; return object; }; @@ -111169,16 +114751,15 @@ export const Automator = $root.Automator = (() => { */ InitializeRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Automator.InitializeRequest"; + return typeUrlPrefix + '/Automator.InitializeRequest'; }; return InitializeRequest; })(); - Automator.NotInitializedResponse = (function() { - + Automator.NotInitializedResponse = (function () { /** * Properties of a NotInitializedResponse. * @memberof Automator @@ -111200,7 +114781,7 @@ export const Automator = $root.Automator = (() => { * The Automator instance replies with this message if it has not been initialized. * The certificate is most likely the SSL certificate of the Automator. * The certificate will be passed to the corresponding Cloud SSO instance and used to sign the IdP messages. - * + * * This message will be encrypted with the ECC public key whose ID is indicated in the request received from Keeper. * All other messages are encrypted with the automatorTransmissionKey. * @implements INotInitializedResponse @@ -111210,8 +114791,7 @@ export const Automator = $root.Automator = (() => { function NotInitializedResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -111236,7 +114816,7 @@ export const Automator = $root.Automator = (() => { * @memberof Automator.NotInitializedResponse * @instance */ - NotInitializedResponse.prototype.signingCertificateFilename = ""; + NotInitializedResponse.prototype.signingCertificateFilename = ''; /** * NotInitializedResponse signingCertificatePassword. @@ -111244,7 +114824,7 @@ export const Automator = $root.Automator = (() => { * @memberof Automator.NotInitializedResponse * @instance */ - NotInitializedResponse.prototype.signingCertificatePassword = ""; + NotInitializedResponse.prototype.signingCertificatePassword = ''; /** * NotInitializedResponse signingKeyPassword. @@ -111252,7 +114832,7 @@ export const Automator = $root.Automator = (() => { * @memberof Automator.NotInitializedResponse * @instance */ - NotInitializedResponse.prototype.signingKeyPassword = ""; + NotInitializedResponse.prototype.signingKeyPassword = ''; /** * NotInitializedResponse signingCertificateFormat. @@ -111300,24 +114880,35 @@ export const Automator = $root.Automator = (() => { * @returns {$protobuf.Writer} Writer */ NotInitializedResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.automatorTransmissionKey != null && Object.hasOwnProperty.call(message, "automatorTransmissionKey")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.automatorTransmissionKey); - if (message.signingCertificate != null && Object.hasOwnProperty.call(message, "signingCertificate")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.signingCertificate); - if (message.signingCertificateFilename != null && Object.hasOwnProperty.call(message, "signingCertificateFilename")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.signingCertificateFilename); - if (message.signingCertificatePassword != null && Object.hasOwnProperty.call(message, "signingCertificatePassword")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.signingCertificatePassword); - if (message.signingKeyPassword != null && Object.hasOwnProperty.call(message, "signingKeyPassword")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.signingKeyPassword); - if (message.signingCertificateFormat != null && Object.hasOwnProperty.call(message, "signingCertificateFormat")) - writer.uint32(/* id 6, wireType 0 =*/48).int32(message.signingCertificateFormat); - if (message.automatorPublicKey != null && Object.hasOwnProperty.call(message, "automatorPublicKey")) - writer.uint32(/* id 7, wireType 2 =*/58).bytes(message.automatorPublicKey); - if (message.config != null && Object.hasOwnProperty.call(message, "config")) - writer.uint32(/* id 8, wireType 2 =*/66).bytes(message.config); + if (!writer) writer = $Writer.create(); + if ( + message.automatorTransmissionKey != null && + Object.hasOwnProperty.call(message, 'automatorTransmissionKey') + ) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.automatorTransmissionKey); + if (message.signingCertificate != null && Object.hasOwnProperty.call(message, 'signingCertificate')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.signingCertificate); + if ( + message.signingCertificateFilename != null && + Object.hasOwnProperty.call(message, 'signingCertificateFilename') + ) + writer.uint32(/* id 3, wireType 2 =*/ 26).string(message.signingCertificateFilename); + if ( + message.signingCertificatePassword != null && + Object.hasOwnProperty.call(message, 'signingCertificatePassword') + ) + writer.uint32(/* id 4, wireType 2 =*/ 34).string(message.signingCertificatePassword); + if (message.signingKeyPassword != null && Object.hasOwnProperty.call(message, 'signingKeyPassword')) + writer.uint32(/* id 5, wireType 2 =*/ 42).string(message.signingKeyPassword); + if ( + message.signingCertificateFormat != null && + Object.hasOwnProperty.call(message, 'signingCertificateFormat') + ) + writer.uint32(/* id 6, wireType 0 =*/ 48).int32(message.signingCertificateFormat); + if (message.automatorPublicKey != null && Object.hasOwnProperty.call(message, 'automatorPublicKey')) + writer.uint32(/* id 7, wireType 2 =*/ 58).bytes(message.automatorPublicKey); + if (message.config != null && Object.hasOwnProperty.call(message, 'config')) + writer.uint32(/* id 8, wireType 2 =*/ 66).bytes(message.config); return writer; }; @@ -111346,47 +114937,47 @@ export const Automator = $root.Automator = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ NotInitializedResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Automator.NotInitializedResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Automator.NotInitializedResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.automatorTransmissionKey = reader.bytes(); break; } - case 2: { + case 2: { message.signingCertificate = reader.bytes(); break; } - case 3: { + case 3: { message.signingCertificateFilename = reader.string(); break; } - case 4: { + case 4: { message.signingCertificatePassword = reader.string(); break; } - case 5: { + case 5: { message.signingKeyPassword = reader.string(); break; } - case 6: { + case 6: { message.signingCertificateFormat = reader.int32(); break; } - case 7: { + case 7: { message.automatorPublicKey = reader.bytes(); break; } - case 8: { + case 8: { message.config = reader.bytes(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -111403,8 +114994,7 @@ export const Automator = $root.Automator = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ NotInitializedResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -111417,38 +115007,52 @@ export const Automator = $root.Automator = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ NotInitializedResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.automatorTransmissionKey != null && message.hasOwnProperty("automatorTransmissionKey")) - if (!(message.automatorTransmissionKey && typeof message.automatorTransmissionKey.length === "number" || $util.isString(message.automatorTransmissionKey))) - return "automatorTransmissionKey: buffer expected"; - if (message.signingCertificate != null && message.hasOwnProperty("signingCertificate")) - if (!(message.signingCertificate && typeof message.signingCertificate.length === "number" || $util.isString(message.signingCertificate))) - return "signingCertificate: buffer expected"; - if (message.signingCertificateFilename != null && message.hasOwnProperty("signingCertificateFilename")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.automatorTransmissionKey != null && message.hasOwnProperty('automatorTransmissionKey')) + if ( + !( + (message.automatorTransmissionKey && + typeof message.automatorTransmissionKey.length === 'number') || + $util.isString(message.automatorTransmissionKey) + ) + ) + return 'automatorTransmissionKey: buffer expected'; + if (message.signingCertificate != null && message.hasOwnProperty('signingCertificate')) + if ( + !( + (message.signingCertificate && typeof message.signingCertificate.length === 'number') || + $util.isString(message.signingCertificate) + ) + ) + return 'signingCertificate: buffer expected'; + if (message.signingCertificateFilename != null && message.hasOwnProperty('signingCertificateFilename')) if (!$util.isString(message.signingCertificateFilename)) - return "signingCertificateFilename: string expected"; - if (message.signingCertificatePassword != null && message.hasOwnProperty("signingCertificatePassword")) + return 'signingCertificateFilename: string expected'; + if (message.signingCertificatePassword != null && message.hasOwnProperty('signingCertificatePassword')) if (!$util.isString(message.signingCertificatePassword)) - return "signingCertificatePassword: string expected"; - if (message.signingKeyPassword != null && message.hasOwnProperty("signingKeyPassword")) - if (!$util.isString(message.signingKeyPassword)) - return "signingKeyPassword: string expected"; - if (message.signingCertificateFormat != null && message.hasOwnProperty("signingCertificateFormat")) + return 'signingCertificatePassword: string expected'; + if (message.signingKeyPassword != null && message.hasOwnProperty('signingKeyPassword')) + if (!$util.isString(message.signingKeyPassword)) return 'signingKeyPassword: string expected'; + if (message.signingCertificateFormat != null && message.hasOwnProperty('signingCertificateFormat')) switch (message.signingCertificateFormat) { - default: - return "signingCertificateFormat: enum value expected"; - case 0: - case 1: - case 2: - break; + default: + return 'signingCertificateFormat: enum value expected'; + case 0: + case 1: + case 2: + break; } - if (message.automatorPublicKey != null && message.hasOwnProperty("automatorPublicKey")) - if (!(message.automatorPublicKey && typeof message.automatorPublicKey.length === "number" || $util.isString(message.automatorPublicKey))) - return "automatorPublicKey: buffer expected"; - if (message.config != null && message.hasOwnProperty("config")) - if (!(message.config && typeof message.config.length === "number" || $util.isString(message.config))) - return "config: buffer expected"; + if (message.automatorPublicKey != null && message.hasOwnProperty('automatorPublicKey')) + if ( + !( + (message.automatorPublicKey && typeof message.automatorPublicKey.length === 'number') || + $util.isString(message.automatorPublicKey) + ) + ) + return 'automatorPublicKey: buffer expected'; + if (message.config != null && message.hasOwnProperty('config')) + if (!((message.config && typeof message.config.length === 'number') || $util.isString(message.config))) + return 'config: buffer expected'; return null; }; @@ -111461,55 +115065,68 @@ export const Automator = $root.Automator = (() => { * @returns {Automator.NotInitializedResponse} NotInitializedResponse */ NotInitializedResponse.fromObject = function fromObject(object) { - if (object instanceof $root.Automator.NotInitializedResponse) - return object; + if (object instanceof $root.Automator.NotInitializedResponse) return object; let message = new $root.Automator.NotInitializedResponse(); if (object.automatorTransmissionKey != null) - if (typeof object.automatorTransmissionKey === "string") - $util.base64.decode(object.automatorTransmissionKey, message.automatorTransmissionKey = $util.newBuffer($util.base64.length(object.automatorTransmissionKey)), 0); + if (typeof object.automatorTransmissionKey === 'string') + $util.base64.decode( + object.automatorTransmissionKey, + (message.automatorTransmissionKey = $util.newBuffer( + $util.base64.length(object.automatorTransmissionKey) + )), + 0 + ); else if (object.automatorTransmissionKey.length >= 0) message.automatorTransmissionKey = object.automatorTransmissionKey; if (object.signingCertificate != null) - if (typeof object.signingCertificate === "string") - $util.base64.decode(object.signingCertificate, message.signingCertificate = $util.newBuffer($util.base64.length(object.signingCertificate)), 0); - else if (object.signingCertificate.length >= 0) - message.signingCertificate = object.signingCertificate; + if (typeof object.signingCertificate === 'string') + $util.base64.decode( + object.signingCertificate, + (message.signingCertificate = $util.newBuffer($util.base64.length(object.signingCertificate))), + 0 + ); + else if (object.signingCertificate.length >= 0) message.signingCertificate = object.signingCertificate; if (object.signingCertificateFilename != null) message.signingCertificateFilename = String(object.signingCertificateFilename); if (object.signingCertificatePassword != null) message.signingCertificatePassword = String(object.signingCertificatePassword); - if (object.signingKeyPassword != null) - message.signingKeyPassword = String(object.signingKeyPassword); + if (object.signingKeyPassword != null) message.signingKeyPassword = String(object.signingKeyPassword); switch (object.signingCertificateFormat) { - default: - if (typeof object.signingCertificateFormat === "number") { - message.signingCertificateFormat = object.signingCertificateFormat; - break; - } - break; - case "UNKNOWN_FORMAT": - case 0: - message.signingCertificateFormat = 0; - break; - case "PKCS12": - case 1: - message.signingCertificateFormat = 1; - break; - case "JKS": - case 2: - message.signingCertificateFormat = 2; - break; + default: + if (typeof object.signingCertificateFormat === 'number') { + message.signingCertificateFormat = object.signingCertificateFormat; + break; + } + break; + case 'UNKNOWN_FORMAT': + case 0: + message.signingCertificateFormat = 0; + break; + case 'PKCS12': + case 1: + message.signingCertificateFormat = 1; + break; + case 'JKS': + case 2: + message.signingCertificateFormat = 2; + break; } if (object.automatorPublicKey != null) - if (typeof object.automatorPublicKey === "string") - $util.base64.decode(object.automatorPublicKey, message.automatorPublicKey = $util.newBuffer($util.base64.length(object.automatorPublicKey)), 0); - else if (object.automatorPublicKey.length >= 0) - message.automatorPublicKey = object.automatorPublicKey; + if (typeof object.automatorPublicKey === 'string') + $util.base64.decode( + object.automatorPublicKey, + (message.automatorPublicKey = $util.newBuffer($util.base64.length(object.automatorPublicKey))), + 0 + ); + else if (object.automatorPublicKey.length >= 0) message.automatorPublicKey = object.automatorPublicKey; if (object.config != null) - if (typeof object.config === "string") - $util.base64.decode(object.config, message.config = $util.newBuffer($util.base64.length(object.config)), 0); - else if (object.config.length >= 0) - message.config = object.config; + if (typeof object.config === 'string') + $util.base64.decode( + object.config, + (message.config = $util.newBuffer($util.base64.length(object.config))), + 0 + ); + else if (object.config.length >= 0) message.config = object.config; return message; }; @@ -111523,59 +115140,80 @@ export const Automator = $root.Automator = (() => { * @returns {Object.} Plain object */ NotInitializedResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.automatorTransmissionKey = ""; + if (options.bytes === String) object.automatorTransmissionKey = ''; else { object.automatorTransmissionKey = []; if (options.bytes !== Array) object.automatorTransmissionKey = $util.newBuffer(object.automatorTransmissionKey); } - if (options.bytes === String) - object.signingCertificate = ""; + if (options.bytes === String) object.signingCertificate = ''; else { object.signingCertificate = []; - if (options.bytes !== Array) - object.signingCertificate = $util.newBuffer(object.signingCertificate); + if (options.bytes !== Array) object.signingCertificate = $util.newBuffer(object.signingCertificate); } - object.signingCertificateFilename = ""; - object.signingCertificatePassword = ""; - object.signingKeyPassword = ""; - object.signingCertificateFormat = options.enums === String ? "UNKNOWN_FORMAT" : 0; - if (options.bytes === String) - object.automatorPublicKey = ""; + object.signingCertificateFilename = ''; + object.signingCertificatePassword = ''; + object.signingKeyPassword = ''; + object.signingCertificateFormat = options.enums === String ? 'UNKNOWN_FORMAT' : 0; + if (options.bytes === String) object.automatorPublicKey = ''; else { object.automatorPublicKey = []; - if (options.bytes !== Array) - object.automatorPublicKey = $util.newBuffer(object.automatorPublicKey); + if (options.bytes !== Array) object.automatorPublicKey = $util.newBuffer(object.automatorPublicKey); } - if (options.bytes === String) - object.config = ""; + if (options.bytes === String) object.config = ''; else { object.config = []; - if (options.bytes !== Array) - object.config = $util.newBuffer(object.config); - } - } - if (message.automatorTransmissionKey != null && message.hasOwnProperty("automatorTransmissionKey")) - object.automatorTransmissionKey = options.bytes === String ? $util.base64.encode(message.automatorTransmissionKey, 0, message.automatorTransmissionKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.automatorTransmissionKey) : message.automatorTransmissionKey; - if (message.signingCertificate != null && message.hasOwnProperty("signingCertificate")) - object.signingCertificate = options.bytes === String ? $util.base64.encode(message.signingCertificate, 0, message.signingCertificate.length) : options.bytes === Array ? Array.prototype.slice.call(message.signingCertificate) : message.signingCertificate; - if (message.signingCertificateFilename != null && message.hasOwnProperty("signingCertificateFilename")) + if (options.bytes !== Array) object.config = $util.newBuffer(object.config); + } + } + if (message.automatorTransmissionKey != null && message.hasOwnProperty('automatorTransmissionKey')) + object.automatorTransmissionKey = + options.bytes === String + ? $util.base64.encode( + message.automatorTransmissionKey, + 0, + message.automatorTransmissionKey.length + ) + : options.bytes === Array + ? Array.prototype.slice.call(message.automatorTransmissionKey) + : message.automatorTransmissionKey; + if (message.signingCertificate != null && message.hasOwnProperty('signingCertificate')) + object.signingCertificate = + options.bytes === String + ? $util.base64.encode(message.signingCertificate, 0, message.signingCertificate.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.signingCertificate) + : message.signingCertificate; + if (message.signingCertificateFilename != null && message.hasOwnProperty('signingCertificateFilename')) object.signingCertificateFilename = message.signingCertificateFilename; - if (message.signingCertificatePassword != null && message.hasOwnProperty("signingCertificatePassword")) + if (message.signingCertificatePassword != null && message.hasOwnProperty('signingCertificatePassword')) object.signingCertificatePassword = message.signingCertificatePassword; - if (message.signingKeyPassword != null && message.hasOwnProperty("signingKeyPassword")) + if (message.signingKeyPassword != null && message.hasOwnProperty('signingKeyPassword')) object.signingKeyPassword = message.signingKeyPassword; - if (message.signingCertificateFormat != null && message.hasOwnProperty("signingCertificateFormat")) - object.signingCertificateFormat = options.enums === String ? $root.Automator.CertificateFormat[message.signingCertificateFormat] === undefined ? message.signingCertificateFormat : $root.Automator.CertificateFormat[message.signingCertificateFormat] : message.signingCertificateFormat; - if (message.automatorPublicKey != null && message.hasOwnProperty("automatorPublicKey")) - object.automatorPublicKey = options.bytes === String ? $util.base64.encode(message.automatorPublicKey, 0, message.automatorPublicKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.automatorPublicKey) : message.automatorPublicKey; - if (message.config != null && message.hasOwnProperty("config")) - object.config = options.bytes === String ? $util.base64.encode(message.config, 0, message.config.length) : options.bytes === Array ? Array.prototype.slice.call(message.config) : message.config; + if (message.signingCertificateFormat != null && message.hasOwnProperty('signingCertificateFormat')) + object.signingCertificateFormat = + options.enums === String + ? $root.Automator.CertificateFormat[message.signingCertificateFormat] === undefined + ? message.signingCertificateFormat + : $root.Automator.CertificateFormat[message.signingCertificateFormat] + : message.signingCertificateFormat; + if (message.automatorPublicKey != null && message.hasOwnProperty('automatorPublicKey')) + object.automatorPublicKey = + options.bytes === String + ? $util.base64.encode(message.automatorPublicKey, 0, message.automatorPublicKey.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.automatorPublicKey) + : message.automatorPublicKey; + if (message.config != null && message.hasOwnProperty('config')) + object.config = + options.bytes === String + ? $util.base64.encode(message.config, 0, message.config.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.config) + : message.config; return object; }; @@ -111600,16 +115238,15 @@ export const Automator = $root.Automator = (() => { */ NotInitializedResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Automator.NotInitializedResponse"; + return typeUrlPrefix + '/Automator.NotInitializedResponse'; }; return NotInitializedResponse; })(); - Automator.AutomatorResponse = (function() { - + Automator.AutomatorResponse = (function () { /** * Properties of an AutomatorResponse. * @memberof Automator @@ -111641,8 +115278,7 @@ export const Automator = $root.Automator = (() => { function AutomatorResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -111651,7 +115287,7 @@ export const Automator = $root.Automator = (() => { * @memberof Automator.AutomatorResponse * @instance */ - AutomatorResponse.prototype.automatorId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + AutomatorResponse.prototype.automatorId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * AutomatorResponse enabled. @@ -111667,7 +115303,7 @@ export const Automator = $root.Automator = (() => { * @memberof Automator.AutomatorResponse * @instance */ - AutomatorResponse.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + AutomatorResponse.prototype.timestamp = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * AutomatorResponse approveDevice. @@ -111750,9 +115386,18 @@ export const Automator = $root.Automator = (() => { * @memberof Automator.AutomatorResponse * @instance */ - Object.defineProperty(AutomatorResponse.prototype, "response", { - get: $util.oneOfGetter($oneOfFields = ["approveDevice", "status", "notInitialized", "error", "approveTeamsForUser", "approveTeams"]), - set: $util.oneOfSetter($oneOfFields) + Object.defineProperty(AutomatorResponse.prototype, 'response', { + get: $util.oneOfGetter( + ($oneOfFields = [ + 'approveDevice', + 'status', + 'notInitialized', + 'error', + 'approveTeamsForUser', + 'approveTeams', + ]) + ), + set: $util.oneOfSetter($oneOfFields), }); /** @@ -111777,32 +115422,52 @@ export const Automator = $root.Automator = (() => { * @returns {$protobuf.Writer} Writer */ AutomatorResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.automatorId != null && Object.hasOwnProperty.call(message, "automatorId")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.automatorId); - if (message.enabled != null && Object.hasOwnProperty.call(message, "enabled")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.enabled); - if (message.timestamp != null && Object.hasOwnProperty.call(message, "timestamp")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.timestamp); - if (message.approveDevice != null && Object.hasOwnProperty.call(message, "approveDevice")) - $root.Automator.ApproveDeviceResponse.encode(message.approveDevice, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.status != null && Object.hasOwnProperty.call(message, "status")) - $root.Automator.StatusResponse.encode(message.status, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.notInitialized != null && Object.hasOwnProperty.call(message, "notInitialized")) - $root.Automator.NotInitializedResponse.encode(message.notInitialized, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.error != null && Object.hasOwnProperty.call(message, "error")) - $root.Automator.ErrorResponse.encode(message.error, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.automatorState != null && Object.hasOwnProperty.call(message, "automatorState")) - writer.uint32(/* id 8, wireType 0 =*/64).int32(message.automatorState); - if (message.automatorPublicEccKey != null && Object.hasOwnProperty.call(message, "automatorPublicEccKey")) - writer.uint32(/* id 9, wireType 2 =*/74).bytes(message.automatorPublicEccKey); - if (message.approveTeamsForUser != null && Object.hasOwnProperty.call(message, "approveTeamsForUser")) - $root.Automator.ApproveTeamsForUserResponse.encode(message.approveTeamsForUser, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); - if (message.approveTeams != null && Object.hasOwnProperty.call(message, "approveTeams")) - $root.Automator.ApproveTeamsResponse.encode(message.approveTeams, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); - if (message.version != null && Object.hasOwnProperty.call(message, "version")) - $root.SemanticVersion.Version.encode(message.version, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); + if (!writer) writer = $Writer.create(); + if (message.automatorId != null && Object.hasOwnProperty.call(message, 'automatorId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int64(message.automatorId); + if (message.enabled != null && Object.hasOwnProperty.call(message, 'enabled')) + writer.uint32(/* id 2, wireType 0 =*/ 16).bool(message.enabled); + if (message.timestamp != null && Object.hasOwnProperty.call(message, 'timestamp')) + writer.uint32(/* id 3, wireType 0 =*/ 24).int64(message.timestamp); + if (message.approveDevice != null && Object.hasOwnProperty.call(message, 'approveDevice')) + $root.Automator.ApproveDeviceResponse.encode( + message.approveDevice, + writer.uint32(/* id 4, wireType 2 =*/ 34).fork() + ).ldelim(); + if (message.status != null && Object.hasOwnProperty.call(message, 'status')) + $root.Automator.StatusResponse.encode( + message.status, + writer.uint32(/* id 5, wireType 2 =*/ 42).fork() + ).ldelim(); + if (message.notInitialized != null && Object.hasOwnProperty.call(message, 'notInitialized')) + $root.Automator.NotInitializedResponse.encode( + message.notInitialized, + writer.uint32(/* id 6, wireType 2 =*/ 50).fork() + ).ldelim(); + if (message.error != null && Object.hasOwnProperty.call(message, 'error')) + $root.Automator.ErrorResponse.encode( + message.error, + writer.uint32(/* id 7, wireType 2 =*/ 58).fork() + ).ldelim(); + if (message.automatorState != null && Object.hasOwnProperty.call(message, 'automatorState')) + writer.uint32(/* id 8, wireType 0 =*/ 64).int32(message.automatorState); + if (message.automatorPublicEccKey != null && Object.hasOwnProperty.call(message, 'automatorPublicEccKey')) + writer.uint32(/* id 9, wireType 2 =*/ 74).bytes(message.automatorPublicEccKey); + if (message.approveTeamsForUser != null && Object.hasOwnProperty.call(message, 'approveTeamsForUser')) + $root.Automator.ApproveTeamsForUserResponse.encode( + message.approveTeamsForUser, + writer.uint32(/* id 10, wireType 2 =*/ 82).fork() + ).ldelim(); + if (message.approveTeams != null && Object.hasOwnProperty.call(message, 'approveTeams')) + $root.Automator.ApproveTeamsResponse.encode( + message.approveTeams, + writer.uint32(/* id 11, wireType 2 =*/ 90).fork() + ).ldelim(); + if (message.version != null && Object.hasOwnProperty.call(message, 'version')) + $root.SemanticVersion.Version.encode( + message.version, + writer.uint32(/* id 12, wireType 2 =*/ 98).fork() + ).ldelim(); return writer; }; @@ -111831,63 +115496,66 @@ export const Automator = $root.Automator = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ AutomatorResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Automator.AutomatorResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Automator.AutomatorResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.automatorId = reader.int64(); break; } - case 2: { + case 2: { message.enabled = reader.bool(); break; } - case 3: { + case 3: { message.timestamp = reader.int64(); break; } - case 4: { + case 4: { message.approveDevice = $root.Automator.ApproveDeviceResponse.decode(reader, reader.uint32()); break; } - case 5: { + case 5: { message.status = $root.Automator.StatusResponse.decode(reader, reader.uint32()); break; } - case 6: { + case 6: { message.notInitialized = $root.Automator.NotInitializedResponse.decode(reader, reader.uint32()); break; } - case 7: { + case 7: { message.error = $root.Automator.ErrorResponse.decode(reader, reader.uint32()); break; } - case 10: { - message.approveTeamsForUser = $root.Automator.ApproveTeamsForUserResponse.decode(reader, reader.uint32()); + case 10: { + message.approveTeamsForUser = $root.Automator.ApproveTeamsForUserResponse.decode( + reader, + reader.uint32() + ); break; } - case 11: { + case 11: { message.approveTeams = $root.Automator.ApproveTeamsResponse.decode(reader, reader.uint32()); break; } - case 8: { + case 8: { message.automatorState = reader.int32(); break; } - case 9: { + case 9: { message.automatorPublicEccKey = reader.bytes(); break; } - case 12: { + case 12: { message.version = $root.SemanticVersion.Version.decode(reader, reader.uint32()); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -111904,8 +115572,7 @@ export const Automator = $root.Automator = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ AutomatorResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -111918,95 +115585,100 @@ export const Automator = $root.Automator = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ AutomatorResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; let properties = {}; - if (message.automatorId != null && message.hasOwnProperty("automatorId")) - if (!$util.isInteger(message.automatorId) && !(message.automatorId && $util.isInteger(message.automatorId.low) && $util.isInteger(message.automatorId.high))) - return "automatorId: integer|Long expected"; - if (message.enabled != null && message.hasOwnProperty("enabled")) - if (typeof message.enabled !== "boolean") - return "enabled: boolean expected"; - if (message.timestamp != null && message.hasOwnProperty("timestamp")) - if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high))) - return "timestamp: integer|Long expected"; - if (message.approveDevice != null && message.hasOwnProperty("approveDevice")) { + if (message.automatorId != null && message.hasOwnProperty('automatorId')) + if ( + !$util.isInteger(message.automatorId) && + !( + message.automatorId && + $util.isInteger(message.automatorId.low) && + $util.isInteger(message.automatorId.high) + ) + ) + return 'automatorId: integer|Long expected'; + if (message.enabled != null && message.hasOwnProperty('enabled')) + if (typeof message.enabled !== 'boolean') return 'enabled: boolean expected'; + if (message.timestamp != null && message.hasOwnProperty('timestamp')) + if ( + !$util.isInteger(message.timestamp) && + !( + message.timestamp && + $util.isInteger(message.timestamp.low) && + $util.isInteger(message.timestamp.high) + ) + ) + return 'timestamp: integer|Long expected'; + if (message.approveDevice != null && message.hasOwnProperty('approveDevice')) { properties.response = 1; { let error = $root.Automator.ApproveDeviceResponse.verify(message.approveDevice); - if (error) - return "approveDevice." + error; + if (error) return 'approveDevice.' + error; } } - if (message.status != null && message.hasOwnProperty("status")) { - if (properties.response === 1) - return "response: multiple values"; + if (message.status != null && message.hasOwnProperty('status')) { + if (properties.response === 1) return 'response: multiple values'; properties.response = 1; { let error = $root.Automator.StatusResponse.verify(message.status); - if (error) - return "status." + error; + if (error) return 'status.' + error; } } - if (message.notInitialized != null && message.hasOwnProperty("notInitialized")) { - if (properties.response === 1) - return "response: multiple values"; + if (message.notInitialized != null && message.hasOwnProperty('notInitialized')) { + if (properties.response === 1) return 'response: multiple values'; properties.response = 1; { let error = $root.Automator.NotInitializedResponse.verify(message.notInitialized); - if (error) - return "notInitialized." + error; + if (error) return 'notInitialized.' + error; } } - if (message.error != null && message.hasOwnProperty("error")) { - if (properties.response === 1) - return "response: multiple values"; + if (message.error != null && message.hasOwnProperty('error')) { + if (properties.response === 1) return 'response: multiple values'; properties.response = 1; { let error = $root.Automator.ErrorResponse.verify(message.error); - if (error) - return "error." + error; + if (error) return 'error.' + error; } } - if (message.approveTeamsForUser != null && message.hasOwnProperty("approveTeamsForUser")) { - if (properties.response === 1) - return "response: multiple values"; + if (message.approveTeamsForUser != null && message.hasOwnProperty('approveTeamsForUser')) { + if (properties.response === 1) return 'response: multiple values'; properties.response = 1; { let error = $root.Automator.ApproveTeamsForUserResponse.verify(message.approveTeamsForUser); - if (error) - return "approveTeamsForUser." + error; + if (error) return 'approveTeamsForUser.' + error; } } - if (message.approveTeams != null && message.hasOwnProperty("approveTeams")) { - if (properties.response === 1) - return "response: multiple values"; + if (message.approveTeams != null && message.hasOwnProperty('approveTeams')) { + if (properties.response === 1) return 'response: multiple values'; properties.response = 1; { let error = $root.Automator.ApproveTeamsResponse.verify(message.approveTeams); - if (error) - return "approveTeams." + error; + if (error) return 'approveTeams.' + error; } } - if (message.automatorState != null && message.hasOwnProperty("automatorState")) + if (message.automatorState != null && message.hasOwnProperty('automatorState')) switch (message.automatorState) { - default: - return "automatorState: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - break; + default: + return 'automatorState: enum value expected'; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + break; } - if (message.automatorPublicEccKey != null && message.hasOwnProperty("automatorPublicEccKey")) - if (!(message.automatorPublicEccKey && typeof message.automatorPublicEccKey.length === "number" || $util.isString(message.automatorPublicEccKey))) - return "automatorPublicEccKey: buffer expected"; - if (message.version != null && message.hasOwnProperty("version")) { + if (message.automatorPublicEccKey != null && message.hasOwnProperty('automatorPublicEccKey')) + if ( + !( + (message.automatorPublicEccKey && typeof message.automatorPublicEccKey.length === 'number') || + $util.isString(message.automatorPublicEccKey) + ) + ) + return 'automatorPublicEccKey: buffer expected'; + if (message.version != null && message.hasOwnProperty('version')) { let error = $root.SemanticVersion.Version.verify(message.version); - if (error) - return "version." + error; + if (error) return 'version.' + error; } return null; }; @@ -112020,99 +115692,105 @@ export const Automator = $root.Automator = (() => { * @returns {Automator.AutomatorResponse} AutomatorResponse */ AutomatorResponse.fromObject = function fromObject(object) { - if (object instanceof $root.Automator.AutomatorResponse) - return object; + if (object instanceof $root.Automator.AutomatorResponse) return object; let message = new $root.Automator.AutomatorResponse(); if (object.automatorId != null) - if ($util.Long) - (message.automatorId = $util.Long.fromValue(object.automatorId)).unsigned = false; - else if (typeof object.automatorId === "string") - message.automatorId = parseInt(object.automatorId, 10); - else if (typeof object.automatorId === "number") - message.automatorId = object.automatorId; - else if (typeof object.automatorId === "object") - message.automatorId = new $util.LongBits(object.automatorId.low >>> 0, object.automatorId.high >>> 0).toNumber(); - if (object.enabled != null) - message.enabled = Boolean(object.enabled); + if ($util.Long) (message.automatorId = $util.Long.fromValue(object.automatorId)).unsigned = false; + else if (typeof object.automatorId === 'string') message.automatorId = parseInt(object.automatorId, 10); + else if (typeof object.automatorId === 'number') message.automatorId = object.automatorId; + else if (typeof object.automatorId === 'object') + message.automatorId = new $util.LongBits( + object.automatorId.low >>> 0, + object.automatorId.high >>> 0 + ).toNumber(); + if (object.enabled != null) message.enabled = Boolean(object.enabled); if (object.timestamp != null) - if ($util.Long) - (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = false; - else if (typeof object.timestamp === "string") - message.timestamp = parseInt(object.timestamp, 10); - else if (typeof object.timestamp === "number") - message.timestamp = object.timestamp; - else if (typeof object.timestamp === "object") - message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(); + if ($util.Long) (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = false; + else if (typeof object.timestamp === 'string') message.timestamp = parseInt(object.timestamp, 10); + else if (typeof object.timestamp === 'number') message.timestamp = object.timestamp; + else if (typeof object.timestamp === 'object') + message.timestamp = new $util.LongBits( + object.timestamp.low >>> 0, + object.timestamp.high >>> 0 + ).toNumber(); if (object.approveDevice != null) { - if (typeof object.approveDevice !== "object") - throw TypeError(".Automator.AutomatorResponse.approveDevice: object expected"); + if (typeof object.approveDevice !== 'object') + throw TypeError('.Automator.AutomatorResponse.approveDevice: object expected'); message.approveDevice = $root.Automator.ApproveDeviceResponse.fromObject(object.approveDevice); } if (object.status != null) { - if (typeof object.status !== "object") - throw TypeError(".Automator.AutomatorResponse.status: object expected"); + if (typeof object.status !== 'object') + throw TypeError('.Automator.AutomatorResponse.status: object expected'); message.status = $root.Automator.StatusResponse.fromObject(object.status); } if (object.notInitialized != null) { - if (typeof object.notInitialized !== "object") - throw TypeError(".Automator.AutomatorResponse.notInitialized: object expected"); + if (typeof object.notInitialized !== 'object') + throw TypeError('.Automator.AutomatorResponse.notInitialized: object expected'); message.notInitialized = $root.Automator.NotInitializedResponse.fromObject(object.notInitialized); } if (object.error != null) { - if (typeof object.error !== "object") - throw TypeError(".Automator.AutomatorResponse.error: object expected"); + if (typeof object.error !== 'object') + throw TypeError('.Automator.AutomatorResponse.error: object expected'); message.error = $root.Automator.ErrorResponse.fromObject(object.error); } if (object.approveTeamsForUser != null) { - if (typeof object.approveTeamsForUser !== "object") - throw TypeError(".Automator.AutomatorResponse.approveTeamsForUser: object expected"); - message.approveTeamsForUser = $root.Automator.ApproveTeamsForUserResponse.fromObject(object.approveTeamsForUser); + if (typeof object.approveTeamsForUser !== 'object') + throw TypeError('.Automator.AutomatorResponse.approveTeamsForUser: object expected'); + message.approveTeamsForUser = $root.Automator.ApproveTeamsForUserResponse.fromObject( + object.approveTeamsForUser + ); } if (object.approveTeams != null) { - if (typeof object.approveTeams !== "object") - throw TypeError(".Automator.AutomatorResponse.approveTeams: object expected"); + if (typeof object.approveTeams !== 'object') + throw TypeError('.Automator.AutomatorResponse.approveTeams: object expected'); message.approveTeams = $root.Automator.ApproveTeamsResponse.fromObject(object.approveTeams); } switch (object.automatorState) { - default: - if (typeof object.automatorState === "number") { - message.automatorState = object.automatorState; - break; - } - break; - case "UNKNOWN_STATE": - case 0: - message.automatorState = 0; - break; - case "RUNNING": - case 1: - message.automatorState = 1; - break; - case "ERROR": - case 2: - message.automatorState = 2; - break; - case "NEEDS_INITIALIZATION": - case 3: - message.automatorState = 3; - break; - case "NEEDS_CRYPTO_STEP_1": - case 4: - message.automatorState = 4; - break; - case "NEEDS_CRYPTO_STEP_2": - case 5: - message.automatorState = 5; - break; + default: + if (typeof object.automatorState === 'number') { + message.automatorState = object.automatorState; + break; + } + break; + case 'UNKNOWN_STATE': + case 0: + message.automatorState = 0; + break; + case 'RUNNING': + case 1: + message.automatorState = 1; + break; + case 'ERROR': + case 2: + message.automatorState = 2; + break; + case 'NEEDS_INITIALIZATION': + case 3: + message.automatorState = 3; + break; + case 'NEEDS_CRYPTO_STEP_1': + case 4: + message.automatorState = 4; + break; + case 'NEEDS_CRYPTO_STEP_2': + case 5: + message.automatorState = 5; + break; } if (object.automatorPublicEccKey != null) - if (typeof object.automatorPublicEccKey === "string") - $util.base64.decode(object.automatorPublicEccKey, message.automatorPublicEccKey = $util.newBuffer($util.base64.length(object.automatorPublicEccKey)), 0); + if (typeof object.automatorPublicEccKey === 'string') + $util.base64.decode( + object.automatorPublicEccKey, + (message.automatorPublicEccKey = $util.newBuffer( + $util.base64.length(object.automatorPublicEccKey) + )), + 0 + ); else if (object.automatorPublicEccKey.length >= 0) message.automatorPublicEccKey = object.automatorPublicEccKey; if (object.version != null) { - if (typeof object.version !== "object") - throw TypeError(".Automator.AutomatorResponse.version: object expected"); + if (typeof object.version !== 'object') + throw TypeError('.Automator.AutomatorResponse.version: object expected'); message.version = $root.SemanticVersion.Version.fromObject(object.version); } return message; @@ -112128,24 +115806,22 @@ export const Automator = $root.Automator = (() => { * @returns {Object.} Plain object */ AutomatorResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.automatorId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.automatorId = options.longs === String ? "0" : 0; + object.automatorId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.automatorId = options.longs === String ? '0' : 0; object.enabled = false; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.timestamp = options.longs === String ? "0" : 0; - object.automatorState = options.enums === String ? "UNKNOWN_STATE" : 0; - if (options.bytes === String) - object.automatorPublicEccKey = ""; + object.timestamp = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.timestamp = options.longs === String ? '0' : 0; + object.automatorState = options.enums === String ? 'UNKNOWN_STATE' : 0; + if (options.bytes === String) object.automatorPublicEccKey = ''; else { object.automatorPublicEccKey = []; if (options.bytes !== Array) @@ -112153,53 +115829,75 @@ export const Automator = $root.Automator = (() => { } object.version = null; } - if (message.automatorId != null && message.hasOwnProperty("automatorId")) - if (typeof message.automatorId === "number") + if (message.automatorId != null && message.hasOwnProperty('automatorId')) + if (typeof message.automatorId === 'number') object.automatorId = options.longs === String ? String(message.automatorId) : message.automatorId; else - object.automatorId = options.longs === String ? $util.Long.prototype.toString.call(message.automatorId) : options.longs === Number ? new $util.LongBits(message.automatorId.low >>> 0, message.automatorId.high >>> 0).toNumber() : message.automatorId; - if (message.enabled != null && message.hasOwnProperty("enabled")) - object.enabled = message.enabled; - if (message.timestamp != null && message.hasOwnProperty("timestamp")) - if (typeof message.timestamp === "number") + object.automatorId = + options.longs === String + ? $util.Long.prototype.toString.call(message.automatorId) + : options.longs === Number + ? new $util.LongBits( + message.automatorId.low >>> 0, + message.automatorId.high >>> 0 + ).toNumber() + : message.automatorId; + if (message.enabled != null && message.hasOwnProperty('enabled')) object.enabled = message.enabled; + if (message.timestamp != null && message.hasOwnProperty('timestamp')) + if (typeof message.timestamp === 'number') object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp; else - object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber() : message.timestamp; - if (message.approveDevice != null && message.hasOwnProperty("approveDevice")) { + object.timestamp = + options.longs === String + ? $util.Long.prototype.toString.call(message.timestamp) + : options.longs === Number + ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber() + : message.timestamp; + if (message.approveDevice != null && message.hasOwnProperty('approveDevice')) { object.approveDevice = $root.Automator.ApproveDeviceResponse.toObject(message.approveDevice, options); - if (options.oneofs) - object.response = "approveDevice"; + if (options.oneofs) object.response = 'approveDevice'; } - if (message.status != null && message.hasOwnProperty("status")) { + if (message.status != null && message.hasOwnProperty('status')) { object.status = $root.Automator.StatusResponse.toObject(message.status, options); - if (options.oneofs) - object.response = "status"; + if (options.oneofs) object.response = 'status'; } - if (message.notInitialized != null && message.hasOwnProperty("notInitialized")) { - object.notInitialized = $root.Automator.NotInitializedResponse.toObject(message.notInitialized, options); - if (options.oneofs) - object.response = "notInitialized"; + if (message.notInitialized != null && message.hasOwnProperty('notInitialized')) { + object.notInitialized = $root.Automator.NotInitializedResponse.toObject( + message.notInitialized, + options + ); + if (options.oneofs) object.response = 'notInitialized'; } - if (message.error != null && message.hasOwnProperty("error")) { + if (message.error != null && message.hasOwnProperty('error')) { object.error = $root.Automator.ErrorResponse.toObject(message.error, options); - if (options.oneofs) - object.response = "error"; - } - if (message.automatorState != null && message.hasOwnProperty("automatorState")) - object.automatorState = options.enums === String ? $root.Automator.AutomatorState[message.automatorState] === undefined ? message.automatorState : $root.Automator.AutomatorState[message.automatorState] : message.automatorState; - if (message.automatorPublicEccKey != null && message.hasOwnProperty("automatorPublicEccKey")) - object.automatorPublicEccKey = options.bytes === String ? $util.base64.encode(message.automatorPublicEccKey, 0, message.automatorPublicEccKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.automatorPublicEccKey) : message.automatorPublicEccKey; - if (message.approveTeamsForUser != null && message.hasOwnProperty("approveTeamsForUser")) { - object.approveTeamsForUser = $root.Automator.ApproveTeamsForUserResponse.toObject(message.approveTeamsForUser, options); - if (options.oneofs) - object.response = "approveTeamsForUser"; - } - if (message.approveTeams != null && message.hasOwnProperty("approveTeams")) { + if (options.oneofs) object.response = 'error'; + } + if (message.automatorState != null && message.hasOwnProperty('automatorState')) + object.automatorState = + options.enums === String + ? $root.Automator.AutomatorState[message.automatorState] === undefined + ? message.automatorState + : $root.Automator.AutomatorState[message.automatorState] + : message.automatorState; + if (message.automatorPublicEccKey != null && message.hasOwnProperty('automatorPublicEccKey')) + object.automatorPublicEccKey = + options.bytes === String + ? $util.base64.encode(message.automatorPublicEccKey, 0, message.automatorPublicEccKey.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.automatorPublicEccKey) + : message.automatorPublicEccKey; + if (message.approveTeamsForUser != null && message.hasOwnProperty('approveTeamsForUser')) { + object.approveTeamsForUser = $root.Automator.ApproveTeamsForUserResponse.toObject( + message.approveTeamsForUser, + options + ); + if (options.oneofs) object.response = 'approveTeamsForUser'; + } + if (message.approveTeams != null && message.hasOwnProperty('approveTeams')) { object.approveTeams = $root.Automator.ApproveTeamsResponse.toObject(message.approveTeams, options); - if (options.oneofs) - object.response = "approveTeams"; + if (options.oneofs) object.response = 'approveTeams'; } - if (message.version != null && message.hasOwnProperty("version")) + if (message.version != null && message.hasOwnProperty('version')) object.version = $root.SemanticVersion.Version.toObject(message.version, options); return object; }; @@ -112225,16 +115923,15 @@ export const Automator = $root.Automator = (() => { */ AutomatorResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Automator.AutomatorResponse"; + return typeUrlPrefix + '/Automator.AutomatorResponse'; }; return AutomatorResponse; })(); - Automator.ApproveDeviceResponse = (function() { - + Automator.ApproveDeviceResponse = (function () { /** * Properties of an ApproveDeviceResponse. * @memberof Automator @@ -112258,8 +115955,7 @@ export const Automator = $root.Automator = (() => { function ApproveDeviceResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -112284,7 +115980,7 @@ export const Automator = $root.Automator = (() => { * @memberof Automator.ApproveDeviceResponse * @instance */ - ApproveDeviceResponse.prototype.message = ""; + ApproveDeviceResponse.prototype.message = ''; /** * ApproveDeviceResponse encryptedUserDataKeyType. @@ -112316,16 +116012,18 @@ export const Automator = $root.Automator = (() => { * @returns {$protobuf.Writer} Writer */ ApproveDeviceResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.approved != null && Object.hasOwnProperty.call(message, "approved")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.approved); - if (message.encryptedUserDataKey != null && Object.hasOwnProperty.call(message, "encryptedUserDataKey")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.encryptedUserDataKey); - if (message.message != null && Object.hasOwnProperty.call(message, "message")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.message); - if (message.encryptedUserDataKeyType != null && Object.hasOwnProperty.call(message, "encryptedUserDataKeyType")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.encryptedUserDataKeyType); + if (!writer) writer = $Writer.create(); + if (message.approved != null && Object.hasOwnProperty.call(message, 'approved')) + writer.uint32(/* id 1, wireType 0 =*/ 8).bool(message.approved); + if (message.encryptedUserDataKey != null && Object.hasOwnProperty.call(message, 'encryptedUserDataKey')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.encryptedUserDataKey); + if (message.message != null && Object.hasOwnProperty.call(message, 'message')) + writer.uint32(/* id 3, wireType 2 =*/ 26).string(message.message); + if ( + message.encryptedUserDataKeyType != null && + Object.hasOwnProperty.call(message, 'encryptedUserDataKeyType') + ) + writer.uint32(/* id 4, wireType 0 =*/ 32).int32(message.encryptedUserDataKeyType); return writer; }; @@ -112354,31 +116052,31 @@ export const Automator = $root.Automator = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ApproveDeviceResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Automator.ApproveDeviceResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Automator.ApproveDeviceResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.approved = reader.bool(); break; } - case 2: { + case 2: { message.encryptedUserDataKey = reader.bytes(); break; } - case 3: { + case 3: { message.message = reader.string(); break; } - case 4: { + case 4: { message.encryptedUserDataKeyType = reader.int32(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -112395,8 +116093,7 @@ export const Automator = $root.Automator = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ApproveDeviceResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -112409,27 +116106,29 @@ export const Automator = $root.Automator = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ ApproveDeviceResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.approved != null && message.hasOwnProperty("approved")) - if (typeof message.approved !== "boolean") - return "approved: boolean expected"; - if (message.encryptedUserDataKey != null && message.hasOwnProperty("encryptedUserDataKey")) - if (!(message.encryptedUserDataKey && typeof message.encryptedUserDataKey.length === "number" || $util.isString(message.encryptedUserDataKey))) - return "encryptedUserDataKey: buffer expected"; - if (message.message != null && message.hasOwnProperty("message")) - if (!$util.isString(message.message)) - return "message: string expected"; - if (message.encryptedUserDataKeyType != null && message.hasOwnProperty("encryptedUserDataKeyType")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.approved != null && message.hasOwnProperty('approved')) + if (typeof message.approved !== 'boolean') return 'approved: boolean expected'; + if (message.encryptedUserDataKey != null && message.hasOwnProperty('encryptedUserDataKey')) + if ( + !( + (message.encryptedUserDataKey && typeof message.encryptedUserDataKey.length === 'number') || + $util.isString(message.encryptedUserDataKey) + ) + ) + return 'encryptedUserDataKey: buffer expected'; + if (message.message != null && message.hasOwnProperty('message')) + if (!$util.isString(message.message)) return 'message: string expected'; + if (message.encryptedUserDataKeyType != null && message.hasOwnProperty('encryptedUserDataKeyType')) switch (message.encryptedUserDataKeyType) { - default: - return "encryptedUserDataKeyType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; + default: + return 'encryptedUserDataKeyType: enum value expected'; + case 0: + case 1: + case 2: + case 3: + case 4: + break; } return null; }; @@ -112443,45 +116142,48 @@ export const Automator = $root.Automator = (() => { * @returns {Automator.ApproveDeviceResponse} ApproveDeviceResponse */ ApproveDeviceResponse.fromObject = function fromObject(object) { - if (object instanceof $root.Automator.ApproveDeviceResponse) - return object; + if (object instanceof $root.Automator.ApproveDeviceResponse) return object; let message = new $root.Automator.ApproveDeviceResponse(); - if (object.approved != null) - message.approved = Boolean(object.approved); + if (object.approved != null) message.approved = Boolean(object.approved); if (object.encryptedUserDataKey != null) - if (typeof object.encryptedUserDataKey === "string") - $util.base64.decode(object.encryptedUserDataKey, message.encryptedUserDataKey = $util.newBuffer($util.base64.length(object.encryptedUserDataKey)), 0); + if (typeof object.encryptedUserDataKey === 'string') + $util.base64.decode( + object.encryptedUserDataKey, + (message.encryptedUserDataKey = $util.newBuffer( + $util.base64.length(object.encryptedUserDataKey) + )), + 0 + ); else if (object.encryptedUserDataKey.length >= 0) message.encryptedUserDataKey = object.encryptedUserDataKey; - if (object.message != null) - message.message = String(object.message); + if (object.message != null) message.message = String(object.message); switch (object.encryptedUserDataKeyType) { - default: - if (typeof object.encryptedUserDataKeyType === "number") { - message.encryptedUserDataKeyType = object.encryptedUserDataKeyType; + default: + if (typeof object.encryptedUserDataKeyType === 'number') { + message.encryptedUserDataKeyType = object.encryptedUserDataKeyType; + break; + } + break; + case 'KT_NO_KEY': + case 0: + message.encryptedUserDataKeyType = 0; + break; + case 'KT_ENCRYPTED_BY_DATA_KEY': + case 1: + message.encryptedUserDataKeyType = 1; + break; + case 'KT_ENCRYPTED_BY_PUBLIC_KEY': + case 2: + message.encryptedUserDataKeyType = 2; + break; + case 'KT_ENCRYPTED_BY_DATA_KEY_GCM': + case 3: + message.encryptedUserDataKeyType = 3; + break; + case 'KT_ENCRYPTED_BY_PUBLIC_KEY_ECC': + case 4: + message.encryptedUserDataKeyType = 4; break; - } - break; - case "KT_NO_KEY": - case 0: - message.encryptedUserDataKeyType = 0; - break; - case "KT_ENCRYPTED_BY_DATA_KEY": - case 1: - message.encryptedUserDataKeyType = 1; - break; - case "KT_ENCRYPTED_BY_PUBLIC_KEY": - case 2: - message.encryptedUserDataKeyType = 2; - break; - case "KT_ENCRYPTED_BY_DATA_KEY_GCM": - case 3: - message.encryptedUserDataKeyType = 3; - break; - case "KT_ENCRYPTED_BY_PUBLIC_KEY_ECC": - case 4: - message.encryptedUserDataKeyType = 4; - break; } return message; }; @@ -112496,29 +116198,35 @@ export const Automator = $root.Automator = (() => { * @returns {Object.} Plain object */ ApproveDeviceResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { object.approved = false; - if (options.bytes === String) - object.encryptedUserDataKey = ""; + if (options.bytes === String) object.encryptedUserDataKey = ''; else { object.encryptedUserDataKey = []; if (options.bytes !== Array) object.encryptedUserDataKey = $util.newBuffer(object.encryptedUserDataKey); } - object.message = ""; - object.encryptedUserDataKeyType = options.enums === String ? "KT_NO_KEY" : 0; + object.message = ''; + object.encryptedUserDataKeyType = options.enums === String ? 'KT_NO_KEY' : 0; } - if (message.approved != null && message.hasOwnProperty("approved")) - object.approved = message.approved; - if (message.encryptedUserDataKey != null && message.hasOwnProperty("encryptedUserDataKey")) - object.encryptedUserDataKey = options.bytes === String ? $util.base64.encode(message.encryptedUserDataKey, 0, message.encryptedUserDataKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedUserDataKey) : message.encryptedUserDataKey; - if (message.message != null && message.hasOwnProperty("message")) - object.message = message.message; - if (message.encryptedUserDataKeyType != null && message.hasOwnProperty("encryptedUserDataKeyType")) - object.encryptedUserDataKeyType = options.enums === String ? $root.Enterprise.EncryptedKeyType[message.encryptedUserDataKeyType] === undefined ? message.encryptedUserDataKeyType : $root.Enterprise.EncryptedKeyType[message.encryptedUserDataKeyType] : message.encryptedUserDataKeyType; + if (message.approved != null && message.hasOwnProperty('approved')) object.approved = message.approved; + if (message.encryptedUserDataKey != null && message.hasOwnProperty('encryptedUserDataKey')) + object.encryptedUserDataKey = + options.bytes === String + ? $util.base64.encode(message.encryptedUserDataKey, 0, message.encryptedUserDataKey.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.encryptedUserDataKey) + : message.encryptedUserDataKey; + if (message.message != null && message.hasOwnProperty('message')) object.message = message.message; + if (message.encryptedUserDataKeyType != null && message.hasOwnProperty('encryptedUserDataKeyType')) + object.encryptedUserDataKeyType = + options.enums === String + ? $root.Enterprise.EncryptedKeyType[message.encryptedUserDataKeyType] === undefined + ? message.encryptedUserDataKeyType + : $root.Enterprise.EncryptedKeyType[message.encryptedUserDataKeyType] + : message.encryptedUserDataKeyType; return object; }; @@ -112543,16 +116251,15 @@ export const Automator = $root.Automator = (() => { */ ApproveDeviceResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Automator.ApproveDeviceResponse"; + return typeUrlPrefix + '/Automator.ApproveDeviceResponse'; }; return ApproveDeviceResponse; })(); - Automator.StatusResponse = (function() { - + Automator.StatusResponse = (function () { /** * Properties of a StatusResponse. * @memberof Automator @@ -112590,8 +116297,7 @@ export const Automator = $root.Automator = (() => { this.sslCertificateInfo = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -112608,7 +116314,7 @@ export const Automator = $root.Automator = (() => { * @memberof Automator.StatusResponse * @instance */ - StatusResponse.prototype.enabledTimestamp = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + StatusResponse.prototype.enabledTimestamp = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * StatusResponse initializedTimestamp. @@ -112616,7 +116322,7 @@ export const Automator = $root.Automator = (() => { * @memberof Automator.StatusResponse * @instance */ - StatusResponse.prototype.initializedTimestamp = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + StatusResponse.prototype.initializedTimestamp = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * StatusResponse updatedTimestamp. @@ -112624,7 +116330,7 @@ export const Automator = $root.Automator = (() => { * @memberof Automator.StatusResponse * @instance */ - StatusResponse.prototype.updatedTimestamp = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + StatusResponse.prototype.updatedTimestamp = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * StatusResponse numberOfDevicesApproved. @@ -112632,7 +116338,7 @@ export const Automator = $root.Automator = (() => { * @memberof Automator.StatusResponse * @instance */ - StatusResponse.prototype.numberOfDevicesApproved = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + StatusResponse.prototype.numberOfDevicesApproved = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * StatusResponse numberOfDevicesDenied. @@ -112640,7 +116346,7 @@ export const Automator = $root.Automator = (() => { * @memberof Automator.StatusResponse * @instance */ - StatusResponse.prototype.numberOfDevicesDenied = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + StatusResponse.prototype.numberOfDevicesDenied = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * StatusResponse numberOfErrors. @@ -112648,7 +116354,7 @@ export const Automator = $root.Automator = (() => { * @memberof Automator.StatusResponse * @instance */ - StatusResponse.prototype.numberOfErrors = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + StatusResponse.prototype.numberOfErrors = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * StatusResponse sslCertificateExpiration. @@ -112656,7 +116362,7 @@ export const Automator = $root.Automator = (() => { * @memberof Automator.StatusResponse * @instance */ - StatusResponse.prototype.sslCertificateExpiration = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + StatusResponse.prototype.sslCertificateExpiration = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * StatusResponse notInitializedResponse. @@ -112680,7 +116386,7 @@ export const Automator = $root.Automator = (() => { * @memberof Automator.StatusResponse * @instance */ - StatusResponse.prototype.numberOfTeamMembershipsApproved = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + StatusResponse.prototype.numberOfTeamMembershipsApproved = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * StatusResponse numberOfTeamMembershipsDenied. @@ -112688,7 +116394,7 @@ export const Automator = $root.Automator = (() => { * @memberof Automator.StatusResponse * @instance */ - StatusResponse.prototype.numberOfTeamMembershipsDenied = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + StatusResponse.prototype.numberOfTeamMembershipsDenied = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * StatusResponse numberOfTeamsApproved. @@ -112696,7 +116402,7 @@ export const Automator = $root.Automator = (() => { * @memberof Automator.StatusResponse * @instance */ - StatusResponse.prototype.numberOfTeamsApproved = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + StatusResponse.prototype.numberOfTeamsApproved = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * StatusResponse numberOfTeamsDenied. @@ -112704,7 +116410,7 @@ export const Automator = $root.Automator = (() => { * @memberof Automator.StatusResponse * @instance */ - StatusResponse.prototype.numberOfTeamsDenied = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + StatusResponse.prototype.numberOfTeamsDenied = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * StatusResponse sslCertificateInfo. @@ -112736,39 +116442,56 @@ export const Automator = $root.Automator = (() => { * @returns {$protobuf.Writer} Writer */ StatusResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.initialized != null && Object.hasOwnProperty.call(message, "initialized")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.initialized); - if (message.enabledTimestamp != null && Object.hasOwnProperty.call(message, "enabledTimestamp")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.enabledTimestamp); - if (message.initializedTimestamp != null && Object.hasOwnProperty.call(message, "initializedTimestamp")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.initializedTimestamp); - if (message.updatedTimestamp != null && Object.hasOwnProperty.call(message, "updatedTimestamp")) - writer.uint32(/* id 4, wireType 0 =*/32).int64(message.updatedTimestamp); - if (message.numberOfDevicesApproved != null && Object.hasOwnProperty.call(message, "numberOfDevicesApproved")) - writer.uint32(/* id 5, wireType 0 =*/40).int64(message.numberOfDevicesApproved); - if (message.numberOfDevicesDenied != null && Object.hasOwnProperty.call(message, "numberOfDevicesDenied")) - writer.uint32(/* id 6, wireType 0 =*/48).int64(message.numberOfDevicesDenied); - if (message.numberOfErrors != null && Object.hasOwnProperty.call(message, "numberOfErrors")) - writer.uint32(/* id 7, wireType 0 =*/56).int64(message.numberOfErrors); - if (message.sslCertificateExpiration != null && Object.hasOwnProperty.call(message, "sslCertificateExpiration")) - writer.uint32(/* id 8, wireType 0 =*/64).int64(message.sslCertificateExpiration); - if (message.notInitializedResponse != null && Object.hasOwnProperty.call(message, "notInitializedResponse")) - $root.Automator.NotInitializedResponse.encode(message.notInitializedResponse, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); - if (message.config != null && Object.hasOwnProperty.call(message, "config")) - writer.uint32(/* id 10, wireType 2 =*/82).bytes(message.config); - if (message.numberOfTeamMembershipsApproved != null && Object.hasOwnProperty.call(message, "numberOfTeamMembershipsApproved")) - writer.uint32(/* id 11, wireType 0 =*/88).int64(message.numberOfTeamMembershipsApproved); - if (message.numberOfTeamMembershipsDenied != null && Object.hasOwnProperty.call(message, "numberOfTeamMembershipsDenied")) - writer.uint32(/* id 12, wireType 0 =*/96).int64(message.numberOfTeamMembershipsDenied); - if (message.numberOfTeamsApproved != null && Object.hasOwnProperty.call(message, "numberOfTeamsApproved")) - writer.uint32(/* id 13, wireType 0 =*/104).int64(message.numberOfTeamsApproved); - if (message.numberOfTeamsDenied != null && Object.hasOwnProperty.call(message, "numberOfTeamsDenied")) - writer.uint32(/* id 14, wireType 0 =*/112).int64(message.numberOfTeamsDenied); + if (!writer) writer = $Writer.create(); + if (message.initialized != null && Object.hasOwnProperty.call(message, 'initialized')) + writer.uint32(/* id 1, wireType 0 =*/ 8).bool(message.initialized); + if (message.enabledTimestamp != null && Object.hasOwnProperty.call(message, 'enabledTimestamp')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int64(message.enabledTimestamp); + if (message.initializedTimestamp != null && Object.hasOwnProperty.call(message, 'initializedTimestamp')) + writer.uint32(/* id 3, wireType 0 =*/ 24).int64(message.initializedTimestamp); + if (message.updatedTimestamp != null && Object.hasOwnProperty.call(message, 'updatedTimestamp')) + writer.uint32(/* id 4, wireType 0 =*/ 32).int64(message.updatedTimestamp); + if ( + message.numberOfDevicesApproved != null && + Object.hasOwnProperty.call(message, 'numberOfDevicesApproved') + ) + writer.uint32(/* id 5, wireType 0 =*/ 40).int64(message.numberOfDevicesApproved); + if (message.numberOfDevicesDenied != null && Object.hasOwnProperty.call(message, 'numberOfDevicesDenied')) + writer.uint32(/* id 6, wireType 0 =*/ 48).int64(message.numberOfDevicesDenied); + if (message.numberOfErrors != null && Object.hasOwnProperty.call(message, 'numberOfErrors')) + writer.uint32(/* id 7, wireType 0 =*/ 56).int64(message.numberOfErrors); + if ( + message.sslCertificateExpiration != null && + Object.hasOwnProperty.call(message, 'sslCertificateExpiration') + ) + writer.uint32(/* id 8, wireType 0 =*/ 64).int64(message.sslCertificateExpiration); + if (message.notInitializedResponse != null && Object.hasOwnProperty.call(message, 'notInitializedResponse')) + $root.Automator.NotInitializedResponse.encode( + message.notInitializedResponse, + writer.uint32(/* id 9, wireType 2 =*/ 74).fork() + ).ldelim(); + if (message.config != null && Object.hasOwnProperty.call(message, 'config')) + writer.uint32(/* id 10, wireType 2 =*/ 82).bytes(message.config); + if ( + message.numberOfTeamMembershipsApproved != null && + Object.hasOwnProperty.call(message, 'numberOfTeamMembershipsApproved') + ) + writer.uint32(/* id 11, wireType 0 =*/ 88).int64(message.numberOfTeamMembershipsApproved); + if ( + message.numberOfTeamMembershipsDenied != null && + Object.hasOwnProperty.call(message, 'numberOfTeamMembershipsDenied') + ) + writer.uint32(/* id 12, wireType 0 =*/ 96).int64(message.numberOfTeamMembershipsDenied); + if (message.numberOfTeamsApproved != null && Object.hasOwnProperty.call(message, 'numberOfTeamsApproved')) + writer.uint32(/* id 13, wireType 0 =*/ 104).int64(message.numberOfTeamsApproved); + if (message.numberOfTeamsDenied != null && Object.hasOwnProperty.call(message, 'numberOfTeamsDenied')) + writer.uint32(/* id 14, wireType 0 =*/ 112).int64(message.numberOfTeamsDenied); if (message.sslCertificateInfo != null && message.sslCertificateInfo.length) for (let i = 0; i < message.sslCertificateInfo.length; ++i) - $root.Automator.SSLCertificateInfo.encode(message.sslCertificateInfo[i], writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim(); + $root.Automator.SSLCertificateInfo.encode( + message.sslCertificateInfo[i], + writer.uint32(/* id 15, wireType 2 =*/ 122).fork() + ).ldelim(); return writer; }; @@ -112797,77 +116520,82 @@ export const Automator = $root.Automator = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ StatusResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Automator.StatusResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Automator.StatusResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.initialized = reader.bool(); break; } - case 2: { + case 2: { message.enabledTimestamp = reader.int64(); break; } - case 3: { + case 3: { message.initializedTimestamp = reader.int64(); break; } - case 4: { + case 4: { message.updatedTimestamp = reader.int64(); break; } - case 5: { + case 5: { message.numberOfDevicesApproved = reader.int64(); break; } - case 6: { + case 6: { message.numberOfDevicesDenied = reader.int64(); break; } - case 7: { + case 7: { message.numberOfErrors = reader.int64(); break; } - case 8: { + case 8: { message.sslCertificateExpiration = reader.int64(); break; } - case 9: { - message.notInitializedResponse = $root.Automator.NotInitializedResponse.decode(reader, reader.uint32()); + case 9: { + message.notInitializedResponse = $root.Automator.NotInitializedResponse.decode( + reader, + reader.uint32() + ); break; } - case 10: { + case 10: { message.config = reader.bytes(); break; } - case 11: { + case 11: { message.numberOfTeamMembershipsApproved = reader.int64(); break; } - case 12: { + case 12: { message.numberOfTeamMembershipsDenied = reader.int64(); break; } - case 13: { + case 13: { message.numberOfTeamsApproved = reader.int64(); break; } - case 14: { + case 14: { message.numberOfTeamsDenied = reader.int64(); break; } - case 15: { + case 15: { if (!(message.sslCertificateInfo && message.sslCertificateInfo.length)) message.sslCertificateInfo = []; - message.sslCertificateInfo.push($root.Automator.SSLCertificateInfo.decode(reader, reader.uint32())); + message.sslCertificateInfo.push( + $root.Automator.SSLCertificateInfo.decode(reader, reader.uint32()) + ); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -112884,8 +116612,7 @@ export const Automator = $root.Automator = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ StatusResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -112898,59 +116625,137 @@ export const Automator = $root.Automator = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ StatusResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.initialized != null && message.hasOwnProperty("initialized")) - if (typeof message.initialized !== "boolean") - return "initialized: boolean expected"; - if (message.enabledTimestamp != null && message.hasOwnProperty("enabledTimestamp")) - if (!$util.isInteger(message.enabledTimestamp) && !(message.enabledTimestamp && $util.isInteger(message.enabledTimestamp.low) && $util.isInteger(message.enabledTimestamp.high))) - return "enabledTimestamp: integer|Long expected"; - if (message.initializedTimestamp != null && message.hasOwnProperty("initializedTimestamp")) - if (!$util.isInteger(message.initializedTimestamp) && !(message.initializedTimestamp && $util.isInteger(message.initializedTimestamp.low) && $util.isInteger(message.initializedTimestamp.high))) - return "initializedTimestamp: integer|Long expected"; - if (message.updatedTimestamp != null && message.hasOwnProperty("updatedTimestamp")) - if (!$util.isInteger(message.updatedTimestamp) && !(message.updatedTimestamp && $util.isInteger(message.updatedTimestamp.low) && $util.isInteger(message.updatedTimestamp.high))) - return "updatedTimestamp: integer|Long expected"; - if (message.numberOfDevicesApproved != null && message.hasOwnProperty("numberOfDevicesApproved")) - if (!$util.isInteger(message.numberOfDevicesApproved) && !(message.numberOfDevicesApproved && $util.isInteger(message.numberOfDevicesApproved.low) && $util.isInteger(message.numberOfDevicesApproved.high))) - return "numberOfDevicesApproved: integer|Long expected"; - if (message.numberOfDevicesDenied != null && message.hasOwnProperty("numberOfDevicesDenied")) - if (!$util.isInteger(message.numberOfDevicesDenied) && !(message.numberOfDevicesDenied && $util.isInteger(message.numberOfDevicesDenied.low) && $util.isInteger(message.numberOfDevicesDenied.high))) - return "numberOfDevicesDenied: integer|Long expected"; - if (message.numberOfErrors != null && message.hasOwnProperty("numberOfErrors")) - if (!$util.isInteger(message.numberOfErrors) && !(message.numberOfErrors && $util.isInteger(message.numberOfErrors.low) && $util.isInteger(message.numberOfErrors.high))) - return "numberOfErrors: integer|Long expected"; - if (message.sslCertificateExpiration != null && message.hasOwnProperty("sslCertificateExpiration")) - if (!$util.isInteger(message.sslCertificateExpiration) && !(message.sslCertificateExpiration && $util.isInteger(message.sslCertificateExpiration.low) && $util.isInteger(message.sslCertificateExpiration.high))) - return "sslCertificateExpiration: integer|Long expected"; - if (message.notInitializedResponse != null && message.hasOwnProperty("notInitializedResponse")) { + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.initialized != null && message.hasOwnProperty('initialized')) + if (typeof message.initialized !== 'boolean') return 'initialized: boolean expected'; + if (message.enabledTimestamp != null && message.hasOwnProperty('enabledTimestamp')) + if ( + !$util.isInteger(message.enabledTimestamp) && + !( + message.enabledTimestamp && + $util.isInteger(message.enabledTimestamp.low) && + $util.isInteger(message.enabledTimestamp.high) + ) + ) + return 'enabledTimestamp: integer|Long expected'; + if (message.initializedTimestamp != null && message.hasOwnProperty('initializedTimestamp')) + if ( + !$util.isInteger(message.initializedTimestamp) && + !( + message.initializedTimestamp && + $util.isInteger(message.initializedTimestamp.low) && + $util.isInteger(message.initializedTimestamp.high) + ) + ) + return 'initializedTimestamp: integer|Long expected'; + if (message.updatedTimestamp != null && message.hasOwnProperty('updatedTimestamp')) + if ( + !$util.isInteger(message.updatedTimestamp) && + !( + message.updatedTimestamp && + $util.isInteger(message.updatedTimestamp.low) && + $util.isInteger(message.updatedTimestamp.high) + ) + ) + return 'updatedTimestamp: integer|Long expected'; + if (message.numberOfDevicesApproved != null && message.hasOwnProperty('numberOfDevicesApproved')) + if ( + !$util.isInteger(message.numberOfDevicesApproved) && + !( + message.numberOfDevicesApproved && + $util.isInteger(message.numberOfDevicesApproved.low) && + $util.isInteger(message.numberOfDevicesApproved.high) + ) + ) + return 'numberOfDevicesApproved: integer|Long expected'; + if (message.numberOfDevicesDenied != null && message.hasOwnProperty('numberOfDevicesDenied')) + if ( + !$util.isInteger(message.numberOfDevicesDenied) && + !( + message.numberOfDevicesDenied && + $util.isInteger(message.numberOfDevicesDenied.low) && + $util.isInteger(message.numberOfDevicesDenied.high) + ) + ) + return 'numberOfDevicesDenied: integer|Long expected'; + if (message.numberOfErrors != null && message.hasOwnProperty('numberOfErrors')) + if ( + !$util.isInteger(message.numberOfErrors) && + !( + message.numberOfErrors && + $util.isInteger(message.numberOfErrors.low) && + $util.isInteger(message.numberOfErrors.high) + ) + ) + return 'numberOfErrors: integer|Long expected'; + if (message.sslCertificateExpiration != null && message.hasOwnProperty('sslCertificateExpiration')) + if ( + !$util.isInteger(message.sslCertificateExpiration) && + !( + message.sslCertificateExpiration && + $util.isInteger(message.sslCertificateExpiration.low) && + $util.isInteger(message.sslCertificateExpiration.high) + ) + ) + return 'sslCertificateExpiration: integer|Long expected'; + if (message.notInitializedResponse != null && message.hasOwnProperty('notInitializedResponse')) { let error = $root.Automator.NotInitializedResponse.verify(message.notInitializedResponse); - if (error) - return "notInitializedResponse." + error; - } - if (message.config != null && message.hasOwnProperty("config")) - if (!(message.config && typeof message.config.length === "number" || $util.isString(message.config))) - return "config: buffer expected"; - if (message.numberOfTeamMembershipsApproved != null && message.hasOwnProperty("numberOfTeamMembershipsApproved")) - if (!$util.isInteger(message.numberOfTeamMembershipsApproved) && !(message.numberOfTeamMembershipsApproved && $util.isInteger(message.numberOfTeamMembershipsApproved.low) && $util.isInteger(message.numberOfTeamMembershipsApproved.high))) - return "numberOfTeamMembershipsApproved: integer|Long expected"; - if (message.numberOfTeamMembershipsDenied != null && message.hasOwnProperty("numberOfTeamMembershipsDenied")) - if (!$util.isInteger(message.numberOfTeamMembershipsDenied) && !(message.numberOfTeamMembershipsDenied && $util.isInteger(message.numberOfTeamMembershipsDenied.low) && $util.isInteger(message.numberOfTeamMembershipsDenied.high))) - return "numberOfTeamMembershipsDenied: integer|Long expected"; - if (message.numberOfTeamsApproved != null && message.hasOwnProperty("numberOfTeamsApproved")) - if (!$util.isInteger(message.numberOfTeamsApproved) && !(message.numberOfTeamsApproved && $util.isInteger(message.numberOfTeamsApproved.low) && $util.isInteger(message.numberOfTeamsApproved.high))) - return "numberOfTeamsApproved: integer|Long expected"; - if (message.numberOfTeamsDenied != null && message.hasOwnProperty("numberOfTeamsDenied")) - if (!$util.isInteger(message.numberOfTeamsDenied) && !(message.numberOfTeamsDenied && $util.isInteger(message.numberOfTeamsDenied.low) && $util.isInteger(message.numberOfTeamsDenied.high))) - return "numberOfTeamsDenied: integer|Long expected"; - if (message.sslCertificateInfo != null && message.hasOwnProperty("sslCertificateInfo")) { - if (!Array.isArray(message.sslCertificateInfo)) - return "sslCertificateInfo: array expected"; + if (error) return 'notInitializedResponse.' + error; + } + if (message.config != null && message.hasOwnProperty('config')) + if (!((message.config && typeof message.config.length === 'number') || $util.isString(message.config))) + return 'config: buffer expected'; + if ( + message.numberOfTeamMembershipsApproved != null && + message.hasOwnProperty('numberOfTeamMembershipsApproved') + ) + if ( + !$util.isInteger(message.numberOfTeamMembershipsApproved) && + !( + message.numberOfTeamMembershipsApproved && + $util.isInteger(message.numberOfTeamMembershipsApproved.low) && + $util.isInteger(message.numberOfTeamMembershipsApproved.high) + ) + ) + return 'numberOfTeamMembershipsApproved: integer|Long expected'; + if ( + message.numberOfTeamMembershipsDenied != null && + message.hasOwnProperty('numberOfTeamMembershipsDenied') + ) + if ( + !$util.isInteger(message.numberOfTeamMembershipsDenied) && + !( + message.numberOfTeamMembershipsDenied && + $util.isInteger(message.numberOfTeamMembershipsDenied.low) && + $util.isInteger(message.numberOfTeamMembershipsDenied.high) + ) + ) + return 'numberOfTeamMembershipsDenied: integer|Long expected'; + if (message.numberOfTeamsApproved != null && message.hasOwnProperty('numberOfTeamsApproved')) + if ( + !$util.isInteger(message.numberOfTeamsApproved) && + !( + message.numberOfTeamsApproved && + $util.isInteger(message.numberOfTeamsApproved.low) && + $util.isInteger(message.numberOfTeamsApproved.high) + ) + ) + return 'numberOfTeamsApproved: integer|Long expected'; + if (message.numberOfTeamsDenied != null && message.hasOwnProperty('numberOfTeamsDenied')) + if ( + !$util.isInteger(message.numberOfTeamsDenied) && + !( + message.numberOfTeamsDenied && + $util.isInteger(message.numberOfTeamsDenied.low) && + $util.isInteger(message.numberOfTeamsDenied.high) + ) + ) + return 'numberOfTeamsDenied: integer|Long expected'; + if (message.sslCertificateInfo != null && message.hasOwnProperty('sslCertificateInfo')) { + if (!Array.isArray(message.sslCertificateInfo)) return 'sslCertificateInfo: array expected'; for (let i = 0; i < message.sslCertificateInfo.length; ++i) { let error = $root.Automator.SSLCertificateInfo.verify(message.sslCertificateInfo[i]); - if (error) - return "sslCertificateInfo." + error; + if (error) return 'sslCertificateInfo.' + error; } } return null; @@ -112965,128 +116770,173 @@ export const Automator = $root.Automator = (() => { * @returns {Automator.StatusResponse} StatusResponse */ StatusResponse.fromObject = function fromObject(object) { - if (object instanceof $root.Automator.StatusResponse) - return object; + if (object instanceof $root.Automator.StatusResponse) return object; let message = new $root.Automator.StatusResponse(); - if (object.initialized != null) - message.initialized = Boolean(object.initialized); + if (object.initialized != null) message.initialized = Boolean(object.initialized); if (object.enabledTimestamp != null) if ($util.Long) (message.enabledTimestamp = $util.Long.fromValue(object.enabledTimestamp)).unsigned = false; - else if (typeof object.enabledTimestamp === "string") + else if (typeof object.enabledTimestamp === 'string') message.enabledTimestamp = parseInt(object.enabledTimestamp, 10); - else if (typeof object.enabledTimestamp === "number") + else if (typeof object.enabledTimestamp === 'number') message.enabledTimestamp = object.enabledTimestamp; - else if (typeof object.enabledTimestamp === "object") - message.enabledTimestamp = new $util.LongBits(object.enabledTimestamp.low >>> 0, object.enabledTimestamp.high >>> 0).toNumber(); + else if (typeof object.enabledTimestamp === 'object') + message.enabledTimestamp = new $util.LongBits( + object.enabledTimestamp.low >>> 0, + object.enabledTimestamp.high >>> 0 + ).toNumber(); if (object.initializedTimestamp != null) if ($util.Long) (message.initializedTimestamp = $util.Long.fromValue(object.initializedTimestamp)).unsigned = false; - else if (typeof object.initializedTimestamp === "string") + else if (typeof object.initializedTimestamp === 'string') message.initializedTimestamp = parseInt(object.initializedTimestamp, 10); - else if (typeof object.initializedTimestamp === "number") + else if (typeof object.initializedTimestamp === 'number') message.initializedTimestamp = object.initializedTimestamp; - else if (typeof object.initializedTimestamp === "object") - message.initializedTimestamp = new $util.LongBits(object.initializedTimestamp.low >>> 0, object.initializedTimestamp.high >>> 0).toNumber(); + else if (typeof object.initializedTimestamp === 'object') + message.initializedTimestamp = new $util.LongBits( + object.initializedTimestamp.low >>> 0, + object.initializedTimestamp.high >>> 0 + ).toNumber(); if (object.updatedTimestamp != null) if ($util.Long) (message.updatedTimestamp = $util.Long.fromValue(object.updatedTimestamp)).unsigned = false; - else if (typeof object.updatedTimestamp === "string") + else if (typeof object.updatedTimestamp === 'string') message.updatedTimestamp = parseInt(object.updatedTimestamp, 10); - else if (typeof object.updatedTimestamp === "number") + else if (typeof object.updatedTimestamp === 'number') message.updatedTimestamp = object.updatedTimestamp; - else if (typeof object.updatedTimestamp === "object") - message.updatedTimestamp = new $util.LongBits(object.updatedTimestamp.low >>> 0, object.updatedTimestamp.high >>> 0).toNumber(); + else if (typeof object.updatedTimestamp === 'object') + message.updatedTimestamp = new $util.LongBits( + object.updatedTimestamp.low >>> 0, + object.updatedTimestamp.high >>> 0 + ).toNumber(); if (object.numberOfDevicesApproved != null) if ($util.Long) - (message.numberOfDevicesApproved = $util.Long.fromValue(object.numberOfDevicesApproved)).unsigned = false; - else if (typeof object.numberOfDevicesApproved === "string") + (message.numberOfDevicesApproved = $util.Long.fromValue(object.numberOfDevicesApproved)).unsigned = + false; + else if (typeof object.numberOfDevicesApproved === 'string') message.numberOfDevicesApproved = parseInt(object.numberOfDevicesApproved, 10); - else if (typeof object.numberOfDevicesApproved === "number") + else if (typeof object.numberOfDevicesApproved === 'number') message.numberOfDevicesApproved = object.numberOfDevicesApproved; - else if (typeof object.numberOfDevicesApproved === "object") - message.numberOfDevicesApproved = new $util.LongBits(object.numberOfDevicesApproved.low >>> 0, object.numberOfDevicesApproved.high >>> 0).toNumber(); + else if (typeof object.numberOfDevicesApproved === 'object') + message.numberOfDevicesApproved = new $util.LongBits( + object.numberOfDevicesApproved.low >>> 0, + object.numberOfDevicesApproved.high >>> 0 + ).toNumber(); if (object.numberOfDevicesDenied != null) if ($util.Long) - (message.numberOfDevicesDenied = $util.Long.fromValue(object.numberOfDevicesDenied)).unsigned = false; - else if (typeof object.numberOfDevicesDenied === "string") + (message.numberOfDevicesDenied = $util.Long.fromValue(object.numberOfDevicesDenied)).unsigned = + false; + else if (typeof object.numberOfDevicesDenied === 'string') message.numberOfDevicesDenied = parseInt(object.numberOfDevicesDenied, 10); - else if (typeof object.numberOfDevicesDenied === "number") + else if (typeof object.numberOfDevicesDenied === 'number') message.numberOfDevicesDenied = object.numberOfDevicesDenied; - else if (typeof object.numberOfDevicesDenied === "object") - message.numberOfDevicesDenied = new $util.LongBits(object.numberOfDevicesDenied.low >>> 0, object.numberOfDevicesDenied.high >>> 0).toNumber(); + else if (typeof object.numberOfDevicesDenied === 'object') + message.numberOfDevicesDenied = new $util.LongBits( + object.numberOfDevicesDenied.low >>> 0, + object.numberOfDevicesDenied.high >>> 0 + ).toNumber(); if (object.numberOfErrors != null) - if ($util.Long) - (message.numberOfErrors = $util.Long.fromValue(object.numberOfErrors)).unsigned = false; - else if (typeof object.numberOfErrors === "string") + if ($util.Long) (message.numberOfErrors = $util.Long.fromValue(object.numberOfErrors)).unsigned = false; + else if (typeof object.numberOfErrors === 'string') message.numberOfErrors = parseInt(object.numberOfErrors, 10); - else if (typeof object.numberOfErrors === "number") - message.numberOfErrors = object.numberOfErrors; - else if (typeof object.numberOfErrors === "object") - message.numberOfErrors = new $util.LongBits(object.numberOfErrors.low >>> 0, object.numberOfErrors.high >>> 0).toNumber(); + else if (typeof object.numberOfErrors === 'number') message.numberOfErrors = object.numberOfErrors; + else if (typeof object.numberOfErrors === 'object') + message.numberOfErrors = new $util.LongBits( + object.numberOfErrors.low >>> 0, + object.numberOfErrors.high >>> 0 + ).toNumber(); if (object.sslCertificateExpiration != null) if ($util.Long) - (message.sslCertificateExpiration = $util.Long.fromValue(object.sslCertificateExpiration)).unsigned = false; - else if (typeof object.sslCertificateExpiration === "string") + (message.sslCertificateExpiration = $util.Long.fromValue( + object.sslCertificateExpiration + )).unsigned = false; + else if (typeof object.sslCertificateExpiration === 'string') message.sslCertificateExpiration = parseInt(object.sslCertificateExpiration, 10); - else if (typeof object.sslCertificateExpiration === "number") + else if (typeof object.sslCertificateExpiration === 'number') message.sslCertificateExpiration = object.sslCertificateExpiration; - else if (typeof object.sslCertificateExpiration === "object") - message.sslCertificateExpiration = new $util.LongBits(object.sslCertificateExpiration.low >>> 0, object.sslCertificateExpiration.high >>> 0).toNumber(); + else if (typeof object.sslCertificateExpiration === 'object') + message.sslCertificateExpiration = new $util.LongBits( + object.sslCertificateExpiration.low >>> 0, + object.sslCertificateExpiration.high >>> 0 + ).toNumber(); if (object.notInitializedResponse != null) { - if (typeof object.notInitializedResponse !== "object") - throw TypeError(".Automator.StatusResponse.notInitializedResponse: object expected"); - message.notInitializedResponse = $root.Automator.NotInitializedResponse.fromObject(object.notInitializedResponse); + if (typeof object.notInitializedResponse !== 'object') + throw TypeError('.Automator.StatusResponse.notInitializedResponse: object expected'); + message.notInitializedResponse = $root.Automator.NotInitializedResponse.fromObject( + object.notInitializedResponse + ); } if (object.config != null) - if (typeof object.config === "string") - $util.base64.decode(object.config, message.config = $util.newBuffer($util.base64.length(object.config)), 0); - else if (object.config.length >= 0) - message.config = object.config; + if (typeof object.config === 'string') + $util.base64.decode( + object.config, + (message.config = $util.newBuffer($util.base64.length(object.config))), + 0 + ); + else if (object.config.length >= 0) message.config = object.config; if (object.numberOfTeamMembershipsApproved != null) if ($util.Long) - (message.numberOfTeamMembershipsApproved = $util.Long.fromValue(object.numberOfTeamMembershipsApproved)).unsigned = false; - else if (typeof object.numberOfTeamMembershipsApproved === "string") + (message.numberOfTeamMembershipsApproved = $util.Long.fromValue( + object.numberOfTeamMembershipsApproved + )).unsigned = false; + else if (typeof object.numberOfTeamMembershipsApproved === 'string') message.numberOfTeamMembershipsApproved = parseInt(object.numberOfTeamMembershipsApproved, 10); - else if (typeof object.numberOfTeamMembershipsApproved === "number") + else if (typeof object.numberOfTeamMembershipsApproved === 'number') message.numberOfTeamMembershipsApproved = object.numberOfTeamMembershipsApproved; - else if (typeof object.numberOfTeamMembershipsApproved === "object") - message.numberOfTeamMembershipsApproved = new $util.LongBits(object.numberOfTeamMembershipsApproved.low >>> 0, object.numberOfTeamMembershipsApproved.high >>> 0).toNumber(); + else if (typeof object.numberOfTeamMembershipsApproved === 'object') + message.numberOfTeamMembershipsApproved = new $util.LongBits( + object.numberOfTeamMembershipsApproved.low >>> 0, + object.numberOfTeamMembershipsApproved.high >>> 0 + ).toNumber(); if (object.numberOfTeamMembershipsDenied != null) if ($util.Long) - (message.numberOfTeamMembershipsDenied = $util.Long.fromValue(object.numberOfTeamMembershipsDenied)).unsigned = false; - else if (typeof object.numberOfTeamMembershipsDenied === "string") + (message.numberOfTeamMembershipsDenied = $util.Long.fromValue( + object.numberOfTeamMembershipsDenied + )).unsigned = false; + else if (typeof object.numberOfTeamMembershipsDenied === 'string') message.numberOfTeamMembershipsDenied = parseInt(object.numberOfTeamMembershipsDenied, 10); - else if (typeof object.numberOfTeamMembershipsDenied === "number") + else if (typeof object.numberOfTeamMembershipsDenied === 'number') message.numberOfTeamMembershipsDenied = object.numberOfTeamMembershipsDenied; - else if (typeof object.numberOfTeamMembershipsDenied === "object") - message.numberOfTeamMembershipsDenied = new $util.LongBits(object.numberOfTeamMembershipsDenied.low >>> 0, object.numberOfTeamMembershipsDenied.high >>> 0).toNumber(); + else if (typeof object.numberOfTeamMembershipsDenied === 'object') + message.numberOfTeamMembershipsDenied = new $util.LongBits( + object.numberOfTeamMembershipsDenied.low >>> 0, + object.numberOfTeamMembershipsDenied.high >>> 0 + ).toNumber(); if (object.numberOfTeamsApproved != null) if ($util.Long) - (message.numberOfTeamsApproved = $util.Long.fromValue(object.numberOfTeamsApproved)).unsigned = false; - else if (typeof object.numberOfTeamsApproved === "string") + (message.numberOfTeamsApproved = $util.Long.fromValue(object.numberOfTeamsApproved)).unsigned = + false; + else if (typeof object.numberOfTeamsApproved === 'string') message.numberOfTeamsApproved = parseInt(object.numberOfTeamsApproved, 10); - else if (typeof object.numberOfTeamsApproved === "number") + else if (typeof object.numberOfTeamsApproved === 'number') message.numberOfTeamsApproved = object.numberOfTeamsApproved; - else if (typeof object.numberOfTeamsApproved === "object") - message.numberOfTeamsApproved = new $util.LongBits(object.numberOfTeamsApproved.low >>> 0, object.numberOfTeamsApproved.high >>> 0).toNumber(); + else if (typeof object.numberOfTeamsApproved === 'object') + message.numberOfTeamsApproved = new $util.LongBits( + object.numberOfTeamsApproved.low >>> 0, + object.numberOfTeamsApproved.high >>> 0 + ).toNumber(); if (object.numberOfTeamsDenied != null) if ($util.Long) (message.numberOfTeamsDenied = $util.Long.fromValue(object.numberOfTeamsDenied)).unsigned = false; - else if (typeof object.numberOfTeamsDenied === "string") + else if (typeof object.numberOfTeamsDenied === 'string') message.numberOfTeamsDenied = parseInt(object.numberOfTeamsDenied, 10); - else if (typeof object.numberOfTeamsDenied === "number") + else if (typeof object.numberOfTeamsDenied === 'number') message.numberOfTeamsDenied = object.numberOfTeamsDenied; - else if (typeof object.numberOfTeamsDenied === "object") - message.numberOfTeamsDenied = new $util.LongBits(object.numberOfTeamsDenied.low >>> 0, object.numberOfTeamsDenied.high >>> 0).toNumber(); + else if (typeof object.numberOfTeamsDenied === 'object') + message.numberOfTeamsDenied = new $util.LongBits( + object.numberOfTeamsDenied.low >>> 0, + object.numberOfTeamsDenied.high >>> 0 + ).toNumber(); if (object.sslCertificateInfo) { if (!Array.isArray(object.sslCertificateInfo)) - throw TypeError(".Automator.StatusResponse.sslCertificateInfo: array expected"); + throw TypeError('.Automator.StatusResponse.sslCertificateInfo: array expected'); message.sslCertificateInfo = []; for (let i = 0; i < object.sslCertificateInfo.length; ++i) { - if (typeof object.sslCertificateInfo[i] !== "object") - throw TypeError(".Automator.StatusResponse.sslCertificateInfo: object expected"); - message.sslCertificateInfo[i] = $root.Automator.SSLCertificateInfo.fromObject(object.sslCertificateInfo[i]); + if (typeof object.sslCertificateInfo[i] !== 'object') + throw TypeError('.Automator.StatusResponse.sslCertificateInfo: object expected'); + message.sslCertificateInfo[i] = $root.Automator.SSLCertificateInfo.fromObject( + object.sslCertificateInfo[i] + ); } } return message; @@ -113102,142 +116952,266 @@ export const Automator = $root.Automator = (() => { * @returns {Object.} Plain object */ StatusResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.sslCertificateInfo = []; + if (options.arrays || options.defaults) object.sslCertificateInfo = []; if (options.defaults) { object.initialized = false; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.enabledTimestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.enabledTimestamp = options.longs === String ? "0" : 0; + object.enabledTimestamp = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.enabledTimestamp = options.longs === String ? '0' : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.initializedTimestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.initializedTimestamp = options.longs === String ? "0" : 0; + object.initializedTimestamp = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.initializedTimestamp = options.longs === String ? '0' : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.updatedTimestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.updatedTimestamp = options.longs === String ? "0" : 0; + object.updatedTimestamp = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.updatedTimestamp = options.longs === String ? '0' : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.numberOfDevicesApproved = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.numberOfDevicesApproved = options.longs === String ? "0" : 0; + object.numberOfDevicesApproved = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.numberOfDevicesApproved = options.longs === String ? '0' : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.numberOfDevicesDenied = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.numberOfDevicesDenied = options.longs === String ? "0" : 0; + object.numberOfDevicesDenied = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.numberOfDevicesDenied = options.longs === String ? '0' : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.numberOfErrors = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.numberOfErrors = options.longs === String ? "0" : 0; + object.numberOfErrors = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.numberOfErrors = options.longs === String ? '0' : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.sslCertificateExpiration = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.sslCertificateExpiration = options.longs === String ? "0" : 0; + object.sslCertificateExpiration = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.sslCertificateExpiration = options.longs === String ? '0' : 0; object.notInitializedResponse = null; - if (options.bytes === String) - object.config = ""; + if (options.bytes === String) object.config = ''; else { object.config = []; - if (options.bytes !== Array) - object.config = $util.newBuffer(object.config); + if (options.bytes !== Array) object.config = $util.newBuffer(object.config); } if ($util.Long) { let long = new $util.Long(0, 0, false); - object.numberOfTeamMembershipsApproved = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.numberOfTeamMembershipsApproved = options.longs === String ? "0" : 0; + object.numberOfTeamMembershipsApproved = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.numberOfTeamMembershipsApproved = options.longs === String ? '0' : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.numberOfTeamMembershipsDenied = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.numberOfTeamMembershipsDenied = options.longs === String ? "0" : 0; + object.numberOfTeamMembershipsDenied = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.numberOfTeamMembershipsDenied = options.longs === String ? '0' : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.numberOfTeamsApproved = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.numberOfTeamsApproved = options.longs === String ? "0" : 0; + object.numberOfTeamsApproved = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.numberOfTeamsApproved = options.longs === String ? '0' : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.numberOfTeamsDenied = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.numberOfTeamsDenied = options.longs === String ? "0" : 0; + object.numberOfTeamsDenied = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.numberOfTeamsDenied = options.longs === String ? '0' : 0; } - if (message.initialized != null && message.hasOwnProperty("initialized")) + if (message.initialized != null && message.hasOwnProperty('initialized')) object.initialized = message.initialized; - if (message.enabledTimestamp != null && message.hasOwnProperty("enabledTimestamp")) - if (typeof message.enabledTimestamp === "number") - object.enabledTimestamp = options.longs === String ? String(message.enabledTimestamp) : message.enabledTimestamp; + if (message.enabledTimestamp != null && message.hasOwnProperty('enabledTimestamp')) + if (typeof message.enabledTimestamp === 'number') + object.enabledTimestamp = + options.longs === String ? String(message.enabledTimestamp) : message.enabledTimestamp; else - object.enabledTimestamp = options.longs === String ? $util.Long.prototype.toString.call(message.enabledTimestamp) : options.longs === Number ? new $util.LongBits(message.enabledTimestamp.low >>> 0, message.enabledTimestamp.high >>> 0).toNumber() : message.enabledTimestamp; - if (message.initializedTimestamp != null && message.hasOwnProperty("initializedTimestamp")) - if (typeof message.initializedTimestamp === "number") - object.initializedTimestamp = options.longs === String ? String(message.initializedTimestamp) : message.initializedTimestamp; + object.enabledTimestamp = + options.longs === String + ? $util.Long.prototype.toString.call(message.enabledTimestamp) + : options.longs === Number + ? new $util.LongBits( + message.enabledTimestamp.low >>> 0, + message.enabledTimestamp.high >>> 0 + ).toNumber() + : message.enabledTimestamp; + if (message.initializedTimestamp != null && message.hasOwnProperty('initializedTimestamp')) + if (typeof message.initializedTimestamp === 'number') + object.initializedTimestamp = + options.longs === String ? String(message.initializedTimestamp) : message.initializedTimestamp; else - object.initializedTimestamp = options.longs === String ? $util.Long.prototype.toString.call(message.initializedTimestamp) : options.longs === Number ? new $util.LongBits(message.initializedTimestamp.low >>> 0, message.initializedTimestamp.high >>> 0).toNumber() : message.initializedTimestamp; - if (message.updatedTimestamp != null && message.hasOwnProperty("updatedTimestamp")) - if (typeof message.updatedTimestamp === "number") - object.updatedTimestamp = options.longs === String ? String(message.updatedTimestamp) : message.updatedTimestamp; + object.initializedTimestamp = + options.longs === String + ? $util.Long.prototype.toString.call(message.initializedTimestamp) + : options.longs === Number + ? new $util.LongBits( + message.initializedTimestamp.low >>> 0, + message.initializedTimestamp.high >>> 0 + ).toNumber() + : message.initializedTimestamp; + if (message.updatedTimestamp != null && message.hasOwnProperty('updatedTimestamp')) + if (typeof message.updatedTimestamp === 'number') + object.updatedTimestamp = + options.longs === String ? String(message.updatedTimestamp) : message.updatedTimestamp; else - object.updatedTimestamp = options.longs === String ? $util.Long.prototype.toString.call(message.updatedTimestamp) : options.longs === Number ? new $util.LongBits(message.updatedTimestamp.low >>> 0, message.updatedTimestamp.high >>> 0).toNumber() : message.updatedTimestamp; - if (message.numberOfDevicesApproved != null && message.hasOwnProperty("numberOfDevicesApproved")) - if (typeof message.numberOfDevicesApproved === "number") - object.numberOfDevicesApproved = options.longs === String ? String(message.numberOfDevicesApproved) : message.numberOfDevicesApproved; + object.updatedTimestamp = + options.longs === String + ? $util.Long.prototype.toString.call(message.updatedTimestamp) + : options.longs === Number + ? new $util.LongBits( + message.updatedTimestamp.low >>> 0, + message.updatedTimestamp.high >>> 0 + ).toNumber() + : message.updatedTimestamp; + if (message.numberOfDevicesApproved != null && message.hasOwnProperty('numberOfDevicesApproved')) + if (typeof message.numberOfDevicesApproved === 'number') + object.numberOfDevicesApproved = + options.longs === String + ? String(message.numberOfDevicesApproved) + : message.numberOfDevicesApproved; else - object.numberOfDevicesApproved = options.longs === String ? $util.Long.prototype.toString.call(message.numberOfDevicesApproved) : options.longs === Number ? new $util.LongBits(message.numberOfDevicesApproved.low >>> 0, message.numberOfDevicesApproved.high >>> 0).toNumber() : message.numberOfDevicesApproved; - if (message.numberOfDevicesDenied != null && message.hasOwnProperty("numberOfDevicesDenied")) - if (typeof message.numberOfDevicesDenied === "number") - object.numberOfDevicesDenied = options.longs === String ? String(message.numberOfDevicesDenied) : message.numberOfDevicesDenied; + object.numberOfDevicesApproved = + options.longs === String + ? $util.Long.prototype.toString.call(message.numberOfDevicesApproved) + : options.longs === Number + ? new $util.LongBits( + message.numberOfDevicesApproved.low >>> 0, + message.numberOfDevicesApproved.high >>> 0 + ).toNumber() + : message.numberOfDevicesApproved; + if (message.numberOfDevicesDenied != null && message.hasOwnProperty('numberOfDevicesDenied')) + if (typeof message.numberOfDevicesDenied === 'number') + object.numberOfDevicesDenied = + options.longs === String + ? String(message.numberOfDevicesDenied) + : message.numberOfDevicesDenied; else - object.numberOfDevicesDenied = options.longs === String ? $util.Long.prototype.toString.call(message.numberOfDevicesDenied) : options.longs === Number ? new $util.LongBits(message.numberOfDevicesDenied.low >>> 0, message.numberOfDevicesDenied.high >>> 0).toNumber() : message.numberOfDevicesDenied; - if (message.numberOfErrors != null && message.hasOwnProperty("numberOfErrors")) - if (typeof message.numberOfErrors === "number") - object.numberOfErrors = options.longs === String ? String(message.numberOfErrors) : message.numberOfErrors; + object.numberOfDevicesDenied = + options.longs === String + ? $util.Long.prototype.toString.call(message.numberOfDevicesDenied) + : options.longs === Number + ? new $util.LongBits( + message.numberOfDevicesDenied.low >>> 0, + message.numberOfDevicesDenied.high >>> 0 + ).toNumber() + : message.numberOfDevicesDenied; + if (message.numberOfErrors != null && message.hasOwnProperty('numberOfErrors')) + if (typeof message.numberOfErrors === 'number') + object.numberOfErrors = + options.longs === String ? String(message.numberOfErrors) : message.numberOfErrors; else - object.numberOfErrors = options.longs === String ? $util.Long.prototype.toString.call(message.numberOfErrors) : options.longs === Number ? new $util.LongBits(message.numberOfErrors.low >>> 0, message.numberOfErrors.high >>> 0).toNumber() : message.numberOfErrors; - if (message.sslCertificateExpiration != null && message.hasOwnProperty("sslCertificateExpiration")) - if (typeof message.sslCertificateExpiration === "number") - object.sslCertificateExpiration = options.longs === String ? String(message.sslCertificateExpiration) : message.sslCertificateExpiration; + object.numberOfErrors = + options.longs === String + ? $util.Long.prototype.toString.call(message.numberOfErrors) + : options.longs === Number + ? new $util.LongBits( + message.numberOfErrors.low >>> 0, + message.numberOfErrors.high >>> 0 + ).toNumber() + : message.numberOfErrors; + if (message.sslCertificateExpiration != null && message.hasOwnProperty('sslCertificateExpiration')) + if (typeof message.sslCertificateExpiration === 'number') + object.sslCertificateExpiration = + options.longs === String + ? String(message.sslCertificateExpiration) + : message.sslCertificateExpiration; else - object.sslCertificateExpiration = options.longs === String ? $util.Long.prototype.toString.call(message.sslCertificateExpiration) : options.longs === Number ? new $util.LongBits(message.sslCertificateExpiration.low >>> 0, message.sslCertificateExpiration.high >>> 0).toNumber() : message.sslCertificateExpiration; - if (message.notInitializedResponse != null && message.hasOwnProperty("notInitializedResponse")) - object.notInitializedResponse = $root.Automator.NotInitializedResponse.toObject(message.notInitializedResponse, options); - if (message.config != null && message.hasOwnProperty("config")) - object.config = options.bytes === String ? $util.base64.encode(message.config, 0, message.config.length) : options.bytes === Array ? Array.prototype.slice.call(message.config) : message.config; - if (message.numberOfTeamMembershipsApproved != null && message.hasOwnProperty("numberOfTeamMembershipsApproved")) - if (typeof message.numberOfTeamMembershipsApproved === "number") - object.numberOfTeamMembershipsApproved = options.longs === String ? String(message.numberOfTeamMembershipsApproved) : message.numberOfTeamMembershipsApproved; + object.sslCertificateExpiration = + options.longs === String + ? $util.Long.prototype.toString.call(message.sslCertificateExpiration) + : options.longs === Number + ? new $util.LongBits( + message.sslCertificateExpiration.low >>> 0, + message.sslCertificateExpiration.high >>> 0 + ).toNumber() + : message.sslCertificateExpiration; + if (message.notInitializedResponse != null && message.hasOwnProperty('notInitializedResponse')) + object.notInitializedResponse = $root.Automator.NotInitializedResponse.toObject( + message.notInitializedResponse, + options + ); + if (message.config != null && message.hasOwnProperty('config')) + object.config = + options.bytes === String + ? $util.base64.encode(message.config, 0, message.config.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.config) + : message.config; + if ( + message.numberOfTeamMembershipsApproved != null && + message.hasOwnProperty('numberOfTeamMembershipsApproved') + ) + if (typeof message.numberOfTeamMembershipsApproved === 'number') + object.numberOfTeamMembershipsApproved = + options.longs === String + ? String(message.numberOfTeamMembershipsApproved) + : message.numberOfTeamMembershipsApproved; else - object.numberOfTeamMembershipsApproved = options.longs === String ? $util.Long.prototype.toString.call(message.numberOfTeamMembershipsApproved) : options.longs === Number ? new $util.LongBits(message.numberOfTeamMembershipsApproved.low >>> 0, message.numberOfTeamMembershipsApproved.high >>> 0).toNumber() : message.numberOfTeamMembershipsApproved; - if (message.numberOfTeamMembershipsDenied != null && message.hasOwnProperty("numberOfTeamMembershipsDenied")) - if (typeof message.numberOfTeamMembershipsDenied === "number") - object.numberOfTeamMembershipsDenied = options.longs === String ? String(message.numberOfTeamMembershipsDenied) : message.numberOfTeamMembershipsDenied; + object.numberOfTeamMembershipsApproved = + options.longs === String + ? $util.Long.prototype.toString.call(message.numberOfTeamMembershipsApproved) + : options.longs === Number + ? new $util.LongBits( + message.numberOfTeamMembershipsApproved.low >>> 0, + message.numberOfTeamMembershipsApproved.high >>> 0 + ).toNumber() + : message.numberOfTeamMembershipsApproved; + if ( + message.numberOfTeamMembershipsDenied != null && + message.hasOwnProperty('numberOfTeamMembershipsDenied') + ) + if (typeof message.numberOfTeamMembershipsDenied === 'number') + object.numberOfTeamMembershipsDenied = + options.longs === String + ? String(message.numberOfTeamMembershipsDenied) + : message.numberOfTeamMembershipsDenied; else - object.numberOfTeamMembershipsDenied = options.longs === String ? $util.Long.prototype.toString.call(message.numberOfTeamMembershipsDenied) : options.longs === Number ? new $util.LongBits(message.numberOfTeamMembershipsDenied.low >>> 0, message.numberOfTeamMembershipsDenied.high >>> 0).toNumber() : message.numberOfTeamMembershipsDenied; - if (message.numberOfTeamsApproved != null && message.hasOwnProperty("numberOfTeamsApproved")) - if (typeof message.numberOfTeamsApproved === "number") - object.numberOfTeamsApproved = options.longs === String ? String(message.numberOfTeamsApproved) : message.numberOfTeamsApproved; + object.numberOfTeamMembershipsDenied = + options.longs === String + ? $util.Long.prototype.toString.call(message.numberOfTeamMembershipsDenied) + : options.longs === Number + ? new $util.LongBits( + message.numberOfTeamMembershipsDenied.low >>> 0, + message.numberOfTeamMembershipsDenied.high >>> 0 + ).toNumber() + : message.numberOfTeamMembershipsDenied; + if (message.numberOfTeamsApproved != null && message.hasOwnProperty('numberOfTeamsApproved')) + if (typeof message.numberOfTeamsApproved === 'number') + object.numberOfTeamsApproved = + options.longs === String + ? String(message.numberOfTeamsApproved) + : message.numberOfTeamsApproved; else - object.numberOfTeamsApproved = options.longs === String ? $util.Long.prototype.toString.call(message.numberOfTeamsApproved) : options.longs === Number ? new $util.LongBits(message.numberOfTeamsApproved.low >>> 0, message.numberOfTeamsApproved.high >>> 0).toNumber() : message.numberOfTeamsApproved; - if (message.numberOfTeamsDenied != null && message.hasOwnProperty("numberOfTeamsDenied")) - if (typeof message.numberOfTeamsDenied === "number") - object.numberOfTeamsDenied = options.longs === String ? String(message.numberOfTeamsDenied) : message.numberOfTeamsDenied; + object.numberOfTeamsApproved = + options.longs === String + ? $util.Long.prototype.toString.call(message.numberOfTeamsApproved) + : options.longs === Number + ? new $util.LongBits( + message.numberOfTeamsApproved.low >>> 0, + message.numberOfTeamsApproved.high >>> 0 + ).toNumber() + : message.numberOfTeamsApproved; + if (message.numberOfTeamsDenied != null && message.hasOwnProperty('numberOfTeamsDenied')) + if (typeof message.numberOfTeamsDenied === 'number') + object.numberOfTeamsDenied = + options.longs === String ? String(message.numberOfTeamsDenied) : message.numberOfTeamsDenied; else - object.numberOfTeamsDenied = options.longs === String ? $util.Long.prototype.toString.call(message.numberOfTeamsDenied) : options.longs === Number ? new $util.LongBits(message.numberOfTeamsDenied.low >>> 0, message.numberOfTeamsDenied.high >>> 0).toNumber() : message.numberOfTeamsDenied; + object.numberOfTeamsDenied = + options.longs === String + ? $util.Long.prototype.toString.call(message.numberOfTeamsDenied) + : options.longs === Number + ? new $util.LongBits( + message.numberOfTeamsDenied.low >>> 0, + message.numberOfTeamsDenied.high >>> 0 + ).toNumber() + : message.numberOfTeamsDenied; if (message.sslCertificateInfo && message.sslCertificateInfo.length) { object.sslCertificateInfo = []; for (let j = 0; j < message.sslCertificateInfo.length; ++j) - object.sslCertificateInfo[j] = $root.Automator.SSLCertificateInfo.toObject(message.sslCertificateInfo[j], options); + object.sslCertificateInfo[j] = $root.Automator.SSLCertificateInfo.toObject( + message.sslCertificateInfo[j], + options + ); } return object; }; @@ -113263,16 +117237,15 @@ export const Automator = $root.Automator = (() => { */ StatusResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Automator.StatusResponse"; + return typeUrlPrefix + '/Automator.StatusResponse'; }; return StatusResponse; })(); - Automator.ErrorResponse = (function() { - + Automator.ErrorResponse = (function () { /** * Properties of an ErrorResponse. * @memberof Automator @@ -113292,8 +117265,7 @@ export const Automator = $root.Automator = (() => { function ErrorResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -113302,7 +117274,7 @@ export const Automator = $root.Automator = (() => { * @memberof Automator.ErrorResponse * @instance */ - ErrorResponse.prototype.message = ""; + ErrorResponse.prototype.message = ''; /** * Creates a new ErrorResponse instance using the specified properties. @@ -113326,10 +117298,9 @@ export const Automator = $root.Automator = (() => { * @returns {$protobuf.Writer} Writer */ ErrorResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.message != null && Object.hasOwnProperty.call(message, "message")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.message); + if (!writer) writer = $Writer.create(); + if (message.message != null && Object.hasOwnProperty.call(message, 'message')) + writer.uint32(/* id 1, wireType 2 =*/ 10).string(message.message); return writer; }; @@ -113358,19 +117329,19 @@ export const Automator = $root.Automator = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ErrorResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Automator.ErrorResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Automator.ErrorResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.message = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -113387,8 +117358,7 @@ export const Automator = $root.Automator = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ErrorResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -113401,11 +117371,9 @@ export const Automator = $root.Automator = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ ErrorResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.message != null && message.hasOwnProperty("message")) - if (!$util.isString(message.message)) - return "message: string expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.message != null && message.hasOwnProperty('message')) + if (!$util.isString(message.message)) return 'message: string expected'; return null; }; @@ -113418,11 +117386,9 @@ export const Automator = $root.Automator = (() => { * @returns {Automator.ErrorResponse} ErrorResponse */ ErrorResponse.fromObject = function fromObject(object) { - if (object instanceof $root.Automator.ErrorResponse) - return object; + if (object instanceof $root.Automator.ErrorResponse) return object; let message = new $root.Automator.ErrorResponse(); - if (object.message != null) - message.message = String(object.message); + if (object.message != null) message.message = String(object.message); return message; }; @@ -113436,13 +117402,10 @@ export const Automator = $root.Automator = (() => { * @returns {Object.} Plain object */ ErrorResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.defaults) - object.message = ""; - if (message.message != null && message.hasOwnProperty("message")) - object.message = message.message; + if (options.defaults) object.message = ''; + if (message.message != null && message.hasOwnProperty('message')) object.message = message.message; return object; }; @@ -113467,9 +117430,9 @@ export const Automator = $root.Automator = (() => { */ ErrorResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Automator.ErrorResponse"; + return typeUrlPrefix + '/Automator.ErrorResponse'; }; return ErrorResponse; @@ -113484,17 +117447,17 @@ export const Automator = $root.Automator = (() => { * @property {number} TEAM_APPROVAL=2 TEAM_APPROVAL value * @property {number} TEAM_FOR_USER_APPROVAL=3 TEAM_FOR_USER_APPROVAL value */ - Automator.SkillType = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "UNKNOWN_SKILL_TYPE"] = 0; - values[valuesById[1] = "DEVICE_APPROVAL"] = 1; - values[valuesById[2] = "TEAM_APPROVAL"] = 2; - values[valuesById[3] = "TEAM_FOR_USER_APPROVAL"] = 3; + Automator.SkillType = (function () { + const valuesById = {}, + values = Object.create(valuesById); + values[(valuesById[0] = 'UNKNOWN_SKILL_TYPE')] = 0; + values[(valuesById[1] = 'DEVICE_APPROVAL')] = 1; + values[(valuesById[2] = 'TEAM_APPROVAL')] = 2; + values[(valuesById[3] = 'TEAM_FOR_USER_APPROVAL')] = 3; return values; })(); - Automator.LogEntry = (function() { - + Automator.LogEntry = (function () { /** * Properties of a LogEntry. * @memberof Automator @@ -113510,7 +117473,7 @@ export const Automator = $root.Automator = (() => { * @memberof Automator * @classdesc One entry from the log. * Normally, log entries will be sorted in reverse chronological order (newest first). - * + * * Included in AdminResponse. * @implements ILogEntry * @constructor @@ -113519,8 +117482,7 @@ export const Automator = $root.Automator = (() => { function LogEntry(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -113529,7 +117491,7 @@ export const Automator = $root.Automator = (() => { * @memberof Automator.LogEntry * @instance */ - LogEntry.prototype.serverTime = ""; + LogEntry.prototype.serverTime = ''; /** * LogEntry messageLevel. @@ -113537,7 +117499,7 @@ export const Automator = $root.Automator = (() => { * @memberof Automator.LogEntry * @instance */ - LogEntry.prototype.messageLevel = ""; + LogEntry.prototype.messageLevel = ''; /** * LogEntry component. @@ -113545,7 +117507,7 @@ export const Automator = $root.Automator = (() => { * @memberof Automator.LogEntry * @instance */ - LogEntry.prototype.component = ""; + LogEntry.prototype.component = ''; /** * LogEntry message. @@ -113553,7 +117515,7 @@ export const Automator = $root.Automator = (() => { * @memberof Automator.LogEntry * @instance */ - LogEntry.prototype.message = ""; + LogEntry.prototype.message = ''; /** * Creates a new LogEntry instance using the specified properties. @@ -113577,16 +117539,15 @@ export const Automator = $root.Automator = (() => { * @returns {$protobuf.Writer} Writer */ LogEntry.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.serverTime != null && Object.hasOwnProperty.call(message, "serverTime")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.serverTime); - if (message.messageLevel != null && Object.hasOwnProperty.call(message, "messageLevel")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.messageLevel); - if (message.component != null && Object.hasOwnProperty.call(message, "component")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.component); - if (message.message != null && Object.hasOwnProperty.call(message, "message")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.message); + if (!writer) writer = $Writer.create(); + if (message.serverTime != null && Object.hasOwnProperty.call(message, 'serverTime')) + writer.uint32(/* id 1, wireType 2 =*/ 10).string(message.serverTime); + if (message.messageLevel != null && Object.hasOwnProperty.call(message, 'messageLevel')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.messageLevel); + if (message.component != null && Object.hasOwnProperty.call(message, 'component')) + writer.uint32(/* id 3, wireType 2 =*/ 26).string(message.component); + if (message.message != null && Object.hasOwnProperty.call(message, 'message')) + writer.uint32(/* id 4, wireType 2 =*/ 34).string(message.message); return writer; }; @@ -113615,31 +117576,31 @@ export const Automator = $root.Automator = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ LogEntry.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Automator.LogEntry(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Automator.LogEntry(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.serverTime = reader.string(); break; } - case 2: { + case 2: { message.messageLevel = reader.string(); break; } - case 3: { + case 3: { message.component = reader.string(); break; } - case 4: { + case 4: { message.message = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -113656,8 +117617,7 @@ export const Automator = $root.Automator = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ LogEntry.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -113670,20 +117630,15 @@ export const Automator = $root.Automator = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ LogEntry.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.serverTime != null && message.hasOwnProperty("serverTime")) - if (!$util.isString(message.serverTime)) - return "serverTime: string expected"; - if (message.messageLevel != null && message.hasOwnProperty("messageLevel")) - if (!$util.isString(message.messageLevel)) - return "messageLevel: string expected"; - if (message.component != null && message.hasOwnProperty("component")) - if (!$util.isString(message.component)) - return "component: string expected"; - if (message.message != null && message.hasOwnProperty("message")) - if (!$util.isString(message.message)) - return "message: string expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.serverTime != null && message.hasOwnProperty('serverTime')) + if (!$util.isString(message.serverTime)) return 'serverTime: string expected'; + if (message.messageLevel != null && message.hasOwnProperty('messageLevel')) + if (!$util.isString(message.messageLevel)) return 'messageLevel: string expected'; + if (message.component != null && message.hasOwnProperty('component')) + if (!$util.isString(message.component)) return 'component: string expected'; + if (message.message != null && message.hasOwnProperty('message')) + if (!$util.isString(message.message)) return 'message: string expected'; return null; }; @@ -113696,17 +117651,12 @@ export const Automator = $root.Automator = (() => { * @returns {Automator.LogEntry} LogEntry */ LogEntry.fromObject = function fromObject(object) { - if (object instanceof $root.Automator.LogEntry) - return object; + if (object instanceof $root.Automator.LogEntry) return object; let message = new $root.Automator.LogEntry(); - if (object.serverTime != null) - message.serverTime = String(object.serverTime); - if (object.messageLevel != null) - message.messageLevel = String(object.messageLevel); - if (object.component != null) - message.component = String(object.component); - if (object.message != null) - message.message = String(object.message); + if (object.serverTime != null) message.serverTime = String(object.serverTime); + if (object.messageLevel != null) message.messageLevel = String(object.messageLevel); + if (object.component != null) message.component = String(object.component); + if (object.message != null) message.message = String(object.message); return message; }; @@ -113720,23 +117670,20 @@ export const Automator = $root.Automator = (() => { * @returns {Object.} Plain object */ LogEntry.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - object.serverTime = ""; - object.messageLevel = ""; - object.component = ""; - object.message = ""; + object.serverTime = ''; + object.messageLevel = ''; + object.component = ''; + object.message = ''; } - if (message.serverTime != null && message.hasOwnProperty("serverTime")) + if (message.serverTime != null && message.hasOwnProperty('serverTime')) object.serverTime = message.serverTime; - if (message.messageLevel != null && message.hasOwnProperty("messageLevel")) + if (message.messageLevel != null && message.hasOwnProperty('messageLevel')) object.messageLevel = message.messageLevel; - if (message.component != null && message.hasOwnProperty("component")) - object.component = message.component; - if (message.message != null && message.hasOwnProperty("message")) - object.message = message.message; + if (message.component != null && message.hasOwnProperty('component')) object.component = message.component; + if (message.message != null && message.hasOwnProperty('message')) object.message = message.message; return object; }; @@ -113761,9 +117708,9 @@ export const Automator = $root.Automator = (() => { */ LogEntry.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Automator.LogEntry"; + return typeUrlPrefix + '/Automator.LogEntry'; }; return LogEntry; @@ -113771,7 +117718,7 @@ export const Automator = $root.Automator = (() => { /** * AutomatorState (enum) - * + * * Provides the state of the Automator - part of the status. * @name Automator.AutomatorState * @enum {number} @@ -113782,19 +117729,19 @@ export const Automator = $root.Automator = (() => { * @property {number} NEEDS_CRYPTO_STEP_1=4 NEEDS_CRYPTO_STEP_1 value * @property {number} NEEDS_CRYPTO_STEP_2=5 NEEDS_CRYPTO_STEP_2 value */ - Automator.AutomatorState = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "UNKNOWN_STATE"] = 0; - values[valuesById[1] = "RUNNING"] = 1; - values[valuesById[2] = "ERROR"] = 2; - values[valuesById[3] = "NEEDS_INITIALIZATION"] = 3; - values[valuesById[4] = "NEEDS_CRYPTO_STEP_1"] = 4; - values[valuesById[5] = "NEEDS_CRYPTO_STEP_2"] = 5; + Automator.AutomatorState = (function () { + const valuesById = {}, + values = Object.create(valuesById); + values[(valuesById[0] = 'UNKNOWN_STATE')] = 0; + values[(valuesById[1] = 'RUNNING')] = 1; + values[(valuesById[2] = 'ERROR')] = 2; + values[(valuesById[3] = 'NEEDS_INITIALIZATION')] = 3; + values[(valuesById[4] = 'NEEDS_CRYPTO_STEP_1')] = 4; + values[(valuesById[5] = 'NEEDS_CRYPTO_STEP_2')] = 5; return values; })(); - Automator.AdminResponse = (function() { - + Automator.AdminResponse = (function () { /** * Properties of an AdminResponse. * @memberof Automator @@ -113808,7 +117755,7 @@ export const Automator = $root.Automator = (() => { * Constructs a new AdminResponse. * @memberof Automator * @classdesc AdminResponse - * + * * This is sent in reply to an Admin request. * There can be more than one Automator on a Node so that's why this is a multi-response. * @implements IAdminResponse @@ -113819,8 +117766,7 @@ export const Automator = $root.Automator = (() => { this.automatorInfo = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -113837,7 +117783,7 @@ export const Automator = $root.Automator = (() => { * @memberof Automator.AdminResponse * @instance */ - AdminResponse.prototype.message = ""; + AdminResponse.prototype.message = ''; /** * AdminResponse automatorInfo. @@ -113869,15 +117815,17 @@ export const Automator = $root.Automator = (() => { * @returns {$protobuf.Writer} Writer */ AdminResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.success != null && Object.hasOwnProperty.call(message, "success")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.success); - if (message.message != null && Object.hasOwnProperty.call(message, "message")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.message); + if (!writer) writer = $Writer.create(); + if (message.success != null && Object.hasOwnProperty.call(message, 'success')) + writer.uint32(/* id 1, wireType 0 =*/ 8).bool(message.success); + if (message.message != null && Object.hasOwnProperty.call(message, 'message')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.message); if (message.automatorInfo != null && message.automatorInfo.length) for (let i = 0; i < message.automatorInfo.length; ++i) - $root.Automator.AutomatorInfo.encode(message.automatorInfo[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + $root.Automator.AutomatorInfo.encode( + message.automatorInfo[i], + writer.uint32(/* id 3, wireType 2 =*/ 26).fork() + ).ldelim(); return writer; }; @@ -113906,29 +117854,28 @@ export const Automator = $root.Automator = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ AdminResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Automator.AdminResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Automator.AdminResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.success = reader.bool(); break; } - case 2: { + case 2: { message.message = reader.string(); break; } - case 3: { - if (!(message.automatorInfo && message.automatorInfo.length)) - message.automatorInfo = []; + case 3: { + if (!(message.automatorInfo && message.automatorInfo.length)) message.automatorInfo = []; message.automatorInfo.push($root.Automator.AutomatorInfo.decode(reader, reader.uint32())); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -113945,8 +117892,7 @@ export const Automator = $root.Automator = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ AdminResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -113959,21 +117905,16 @@ export const Automator = $root.Automator = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ AdminResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.success != null && message.hasOwnProperty("success")) - if (typeof message.success !== "boolean") - return "success: boolean expected"; - if (message.message != null && message.hasOwnProperty("message")) - if (!$util.isString(message.message)) - return "message: string expected"; - if (message.automatorInfo != null && message.hasOwnProperty("automatorInfo")) { - if (!Array.isArray(message.automatorInfo)) - return "automatorInfo: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.success != null && message.hasOwnProperty('success')) + if (typeof message.success !== 'boolean') return 'success: boolean expected'; + if (message.message != null && message.hasOwnProperty('message')) + if (!$util.isString(message.message)) return 'message: string expected'; + if (message.automatorInfo != null && message.hasOwnProperty('automatorInfo')) { + if (!Array.isArray(message.automatorInfo)) return 'automatorInfo: array expected'; for (let i = 0; i < message.automatorInfo.length; ++i) { let error = $root.Automator.AutomatorInfo.verify(message.automatorInfo[i]); - if (error) - return "automatorInfo." + error; + if (error) return 'automatorInfo.' + error; } } return null; @@ -113988,20 +117929,17 @@ export const Automator = $root.Automator = (() => { * @returns {Automator.AdminResponse} AdminResponse */ AdminResponse.fromObject = function fromObject(object) { - if (object instanceof $root.Automator.AdminResponse) - return object; + if (object instanceof $root.Automator.AdminResponse) return object; let message = new $root.Automator.AdminResponse(); - if (object.success != null) - message.success = Boolean(object.success); - if (object.message != null) - message.message = String(object.message); + if (object.success != null) message.success = Boolean(object.success); + if (object.message != null) message.message = String(object.message); if (object.automatorInfo) { if (!Array.isArray(object.automatorInfo)) - throw TypeError(".Automator.AdminResponse.automatorInfo: array expected"); + throw TypeError('.Automator.AdminResponse.automatorInfo: array expected'); message.automatorInfo = []; for (let i = 0; i < object.automatorInfo.length; ++i) { - if (typeof object.automatorInfo[i] !== "object") - throw TypeError(".Automator.AdminResponse.automatorInfo: object expected"); + if (typeof object.automatorInfo[i] !== 'object') + throw TypeError('.Automator.AdminResponse.automatorInfo: object expected'); message.automatorInfo[i] = $root.Automator.AutomatorInfo.fromObject(object.automatorInfo[i]); } } @@ -114018,19 +117956,15 @@ export const Automator = $root.Automator = (() => { * @returns {Object.} Plain object */ AdminResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.automatorInfo = []; + if (options.arrays || options.defaults) object.automatorInfo = []; if (options.defaults) { object.success = false; - object.message = ""; + object.message = ''; } - if (message.success != null && message.hasOwnProperty("success")) - object.success = message.success; - if (message.message != null && message.hasOwnProperty("message")) - object.message = message.message; + if (message.success != null && message.hasOwnProperty('success')) object.success = message.success; + if (message.message != null && message.hasOwnProperty('message')) object.message = message.message; if (message.automatorInfo && message.automatorInfo.length) { object.automatorInfo = []; for (let j = 0; j < message.automatorInfo.length; ++j) @@ -114060,16 +117994,15 @@ export const Automator = $root.Automator = (() => { */ AdminResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Automator.AdminResponse"; + return typeUrlPrefix + '/Automator.AdminResponse'; }; return AdminResponse; })(); - Automator.AutomatorInfo = (function() { - + Automator.AutomatorInfo = (function () { /** * Properties of an AutomatorInfo. * @memberof Automator @@ -114101,8 +118034,7 @@ export const Automator = $root.Automator = (() => { this.logEntries = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -114111,7 +118043,7 @@ export const Automator = $root.Automator = (() => { * @memberof Automator.AutomatorInfo * @instance */ - AutomatorInfo.prototype.automatorId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + AutomatorInfo.prototype.automatorId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * AutomatorInfo nodeId. @@ -114119,7 +118051,7 @@ export const Automator = $root.Automator = (() => { * @memberof Automator.AutomatorInfo * @instance */ - AutomatorInfo.prototype.nodeId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + AutomatorInfo.prototype.nodeId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * AutomatorInfo name. @@ -114127,7 +118059,7 @@ export const Automator = $root.Automator = (() => { * @memberof Automator.AutomatorInfo * @instance */ - AutomatorInfo.prototype.name = ""; + AutomatorInfo.prototype.name = ''; /** * AutomatorInfo enabled. @@ -114143,7 +118075,7 @@ export const Automator = $root.Automator = (() => { * @memberof Automator.AutomatorInfo * @instance */ - AutomatorInfo.prototype.url = ""; + AutomatorInfo.prototype.url = ''; /** * AutomatorInfo automatorSkills. @@ -114191,7 +118123,7 @@ export const Automator = $root.Automator = (() => { * @memberof Automator.AutomatorInfo * @instance */ - AutomatorInfo.prototype.version = ""; + AutomatorInfo.prototype.version = ''; /** * Creates a new AutomatorInfo instance using the specified properties. @@ -114215,33 +118147,44 @@ export const Automator = $root.Automator = (() => { * @returns {$protobuf.Writer} Writer */ AutomatorInfo.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.automatorId != null && Object.hasOwnProperty.call(message, "automatorId")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.automatorId); - if (message.nodeId != null && Object.hasOwnProperty.call(message, "nodeId")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.nodeId); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.name); - if (message.enabled != null && Object.hasOwnProperty.call(message, "enabled")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.enabled); - if (message.url != null && Object.hasOwnProperty.call(message, "url")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.url); + if (!writer) writer = $Writer.create(); + if (message.automatorId != null && Object.hasOwnProperty.call(message, 'automatorId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int64(message.automatorId); + if (message.nodeId != null && Object.hasOwnProperty.call(message, 'nodeId')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int64(message.nodeId); + if (message.name != null && Object.hasOwnProperty.call(message, 'name')) + writer.uint32(/* id 3, wireType 2 =*/ 26).string(message.name); + if (message.enabled != null && Object.hasOwnProperty.call(message, 'enabled')) + writer.uint32(/* id 4, wireType 0 =*/ 32).bool(message.enabled); + if (message.url != null && Object.hasOwnProperty.call(message, 'url')) + writer.uint32(/* id 5, wireType 2 =*/ 42).string(message.url); if (message.automatorSkills != null && message.automatorSkills.length) for (let i = 0; i < message.automatorSkills.length; ++i) - $root.Automator.AutomatorSkill.encode(message.automatorSkills[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + $root.Automator.AutomatorSkill.encode( + message.automatorSkills[i], + writer.uint32(/* id 6, wireType 2 =*/ 50).fork() + ).ldelim(); if (message.automatorSettingValues != null && message.automatorSettingValues.length) for (let i = 0; i < message.automatorSettingValues.length; ++i) - $root.Automator.AutomatorSettingValue.encode(message.automatorSettingValues[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.status != null && Object.hasOwnProperty.call(message, "status")) - $root.Automator.StatusResponse.encode(message.status, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + $root.Automator.AutomatorSettingValue.encode( + message.automatorSettingValues[i], + writer.uint32(/* id 7, wireType 2 =*/ 58).fork() + ).ldelim(); + if (message.status != null && Object.hasOwnProperty.call(message, 'status')) + $root.Automator.StatusResponse.encode( + message.status, + writer.uint32(/* id 8, wireType 2 =*/ 66).fork() + ).ldelim(); if (message.logEntries != null && message.logEntries.length) for (let i = 0; i < message.logEntries.length; ++i) - $root.Automator.LogEntry.encode(message.logEntries[i], writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); - if (message.automatorState != null && Object.hasOwnProperty.call(message, "automatorState")) - writer.uint32(/* id 10, wireType 0 =*/80).int32(message.automatorState); - if (message.version != null && Object.hasOwnProperty.call(message, "version")) - writer.uint32(/* id 11, wireType 2 =*/90).string(message.version); + $root.Automator.LogEntry.encode( + message.logEntries[i], + writer.uint32(/* id 9, wireType 2 =*/ 74).fork() + ).ldelim(); + if (message.automatorState != null && Object.hasOwnProperty.call(message, 'automatorState')) + writer.uint32(/* id 10, wireType 0 =*/ 80).int32(message.automatorState); + if (message.version != null && Object.hasOwnProperty.call(message, 'version')) + writer.uint32(/* id 11, wireType 2 =*/ 90).string(message.version); return writer; }; @@ -114270,65 +118213,65 @@ export const Automator = $root.Automator = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ AutomatorInfo.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Automator.AutomatorInfo(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Automator.AutomatorInfo(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.automatorId = reader.int64(); break; } - case 2: { + case 2: { message.nodeId = reader.int64(); break; } - case 3: { + case 3: { message.name = reader.string(); break; } - case 4: { + case 4: { message.enabled = reader.bool(); break; } - case 5: { + case 5: { message.url = reader.string(); break; } - case 6: { - if (!(message.automatorSkills && message.automatorSkills.length)) - message.automatorSkills = []; + case 6: { + if (!(message.automatorSkills && message.automatorSkills.length)) message.automatorSkills = []; message.automatorSkills.push($root.Automator.AutomatorSkill.decode(reader, reader.uint32())); break; } - case 7: { + case 7: { if (!(message.automatorSettingValues && message.automatorSettingValues.length)) message.automatorSettingValues = []; - message.automatorSettingValues.push($root.Automator.AutomatorSettingValue.decode(reader, reader.uint32())); + message.automatorSettingValues.push( + $root.Automator.AutomatorSettingValue.decode(reader, reader.uint32()) + ); break; } - case 8: { + case 8: { message.status = $root.Automator.StatusResponse.decode(reader, reader.uint32()); break; } - case 9: { - if (!(message.logEntries && message.logEntries.length)) - message.logEntries = []; + case 9: { + if (!(message.logEntries && message.logEntries.length)) message.logEntries = []; message.logEntries.push($root.Automator.LogEntry.decode(reader, reader.uint32())); break; } - case 10: { + case 10: { message.automatorState = reader.int32(); break; } - case 11: { + case 11: { message.version = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -114345,8 +118288,7 @@ export const Automator = $root.Automator = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ AutomatorInfo.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -114359,70 +118301,68 @@ export const Automator = $root.Automator = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ AutomatorInfo.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.automatorId != null && message.hasOwnProperty("automatorId")) - if (!$util.isInteger(message.automatorId) && !(message.automatorId && $util.isInteger(message.automatorId.low) && $util.isInteger(message.automatorId.high))) - return "automatorId: integer|Long expected"; - if (message.nodeId != null && message.hasOwnProperty("nodeId")) - if (!$util.isInteger(message.nodeId) && !(message.nodeId && $util.isInteger(message.nodeId.low) && $util.isInteger(message.nodeId.high))) - return "nodeId: integer|Long expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.enabled != null && message.hasOwnProperty("enabled")) - if (typeof message.enabled !== "boolean") - return "enabled: boolean expected"; - if (message.url != null && message.hasOwnProperty("url")) - if (!$util.isString(message.url)) - return "url: string expected"; - if (message.automatorSkills != null && message.hasOwnProperty("automatorSkills")) { - if (!Array.isArray(message.automatorSkills)) - return "automatorSkills: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.automatorId != null && message.hasOwnProperty('automatorId')) + if ( + !$util.isInteger(message.automatorId) && + !( + message.automatorId && + $util.isInteger(message.automatorId.low) && + $util.isInteger(message.automatorId.high) + ) + ) + return 'automatorId: integer|Long expected'; + if (message.nodeId != null && message.hasOwnProperty('nodeId')) + if ( + !$util.isInteger(message.nodeId) && + !(message.nodeId && $util.isInteger(message.nodeId.low) && $util.isInteger(message.nodeId.high)) + ) + return 'nodeId: integer|Long expected'; + if (message.name != null && message.hasOwnProperty('name')) + if (!$util.isString(message.name)) return 'name: string expected'; + if (message.enabled != null && message.hasOwnProperty('enabled')) + if (typeof message.enabled !== 'boolean') return 'enabled: boolean expected'; + if (message.url != null && message.hasOwnProperty('url')) + if (!$util.isString(message.url)) return 'url: string expected'; + if (message.automatorSkills != null && message.hasOwnProperty('automatorSkills')) { + if (!Array.isArray(message.automatorSkills)) return 'automatorSkills: array expected'; for (let i = 0; i < message.automatorSkills.length; ++i) { let error = $root.Automator.AutomatorSkill.verify(message.automatorSkills[i]); - if (error) - return "automatorSkills." + error; + if (error) return 'automatorSkills.' + error; } } - if (message.automatorSettingValues != null && message.hasOwnProperty("automatorSettingValues")) { - if (!Array.isArray(message.automatorSettingValues)) - return "automatorSettingValues: array expected"; + if (message.automatorSettingValues != null && message.hasOwnProperty('automatorSettingValues')) { + if (!Array.isArray(message.automatorSettingValues)) return 'automatorSettingValues: array expected'; for (let i = 0; i < message.automatorSettingValues.length; ++i) { let error = $root.Automator.AutomatorSettingValue.verify(message.automatorSettingValues[i]); - if (error) - return "automatorSettingValues." + error; + if (error) return 'automatorSettingValues.' + error; } } - if (message.status != null && message.hasOwnProperty("status")) { + if (message.status != null && message.hasOwnProperty('status')) { let error = $root.Automator.StatusResponse.verify(message.status); - if (error) - return "status." + error; + if (error) return 'status.' + error; } - if (message.logEntries != null && message.hasOwnProperty("logEntries")) { - if (!Array.isArray(message.logEntries)) - return "logEntries: array expected"; + if (message.logEntries != null && message.hasOwnProperty('logEntries')) { + if (!Array.isArray(message.logEntries)) return 'logEntries: array expected'; for (let i = 0; i < message.logEntries.length; ++i) { let error = $root.Automator.LogEntry.verify(message.logEntries[i]); - if (error) - return "logEntries." + error; + if (error) return 'logEntries.' + error; } } - if (message.automatorState != null && message.hasOwnProperty("automatorState")) + if (message.automatorState != null && message.hasOwnProperty('automatorState')) switch (message.automatorState) { - default: - return "automatorState: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - break; + default: + return 'automatorState: enum value expected'; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + break; } - if (message.version != null && message.hasOwnProperty("version")) - if (!$util.isString(message.version)) - return "version: string expected"; + if (message.version != null && message.hasOwnProperty('version')) + if (!$util.isString(message.version)) return 'version: string expected'; return null; }; @@ -114435,102 +118375,96 @@ export const Automator = $root.Automator = (() => { * @returns {Automator.AutomatorInfo} AutomatorInfo */ AutomatorInfo.fromObject = function fromObject(object) { - if (object instanceof $root.Automator.AutomatorInfo) - return object; + if (object instanceof $root.Automator.AutomatorInfo) return object; let message = new $root.Automator.AutomatorInfo(); if (object.automatorId != null) - if ($util.Long) - (message.automatorId = $util.Long.fromValue(object.automatorId)).unsigned = false; - else if (typeof object.automatorId === "string") - message.automatorId = parseInt(object.automatorId, 10); - else if (typeof object.automatorId === "number") - message.automatorId = object.automatorId; - else if (typeof object.automatorId === "object") - message.automatorId = new $util.LongBits(object.automatorId.low >>> 0, object.automatorId.high >>> 0).toNumber(); + if ($util.Long) (message.automatorId = $util.Long.fromValue(object.automatorId)).unsigned = false; + else if (typeof object.automatorId === 'string') message.automatorId = parseInt(object.automatorId, 10); + else if (typeof object.automatorId === 'number') message.automatorId = object.automatorId; + else if (typeof object.automatorId === 'object') + message.automatorId = new $util.LongBits( + object.automatorId.low >>> 0, + object.automatorId.high >>> 0 + ).toNumber(); if (object.nodeId != null) - if ($util.Long) - (message.nodeId = $util.Long.fromValue(object.nodeId)).unsigned = false; - else if (typeof object.nodeId === "string") - message.nodeId = parseInt(object.nodeId, 10); - else if (typeof object.nodeId === "number") - message.nodeId = object.nodeId; - else if (typeof object.nodeId === "object") + if ($util.Long) (message.nodeId = $util.Long.fromValue(object.nodeId)).unsigned = false; + else if (typeof object.nodeId === 'string') message.nodeId = parseInt(object.nodeId, 10); + else if (typeof object.nodeId === 'number') message.nodeId = object.nodeId; + else if (typeof object.nodeId === 'object') message.nodeId = new $util.LongBits(object.nodeId.low >>> 0, object.nodeId.high >>> 0).toNumber(); - if (object.name != null) - message.name = String(object.name); - if (object.enabled != null) - message.enabled = Boolean(object.enabled); - if (object.url != null) - message.url = String(object.url); + if (object.name != null) message.name = String(object.name); + if (object.enabled != null) message.enabled = Boolean(object.enabled); + if (object.url != null) message.url = String(object.url); if (object.automatorSkills) { if (!Array.isArray(object.automatorSkills)) - throw TypeError(".Automator.AutomatorInfo.automatorSkills: array expected"); + throw TypeError('.Automator.AutomatorInfo.automatorSkills: array expected'); message.automatorSkills = []; for (let i = 0; i < object.automatorSkills.length; ++i) { - if (typeof object.automatorSkills[i] !== "object") - throw TypeError(".Automator.AutomatorInfo.automatorSkills: object expected"); + if (typeof object.automatorSkills[i] !== 'object') + throw TypeError('.Automator.AutomatorInfo.automatorSkills: object expected'); message.automatorSkills[i] = $root.Automator.AutomatorSkill.fromObject(object.automatorSkills[i]); } } if (object.automatorSettingValues) { if (!Array.isArray(object.automatorSettingValues)) - throw TypeError(".Automator.AutomatorInfo.automatorSettingValues: array expected"); + throw TypeError('.Automator.AutomatorInfo.automatorSettingValues: array expected'); message.automatorSettingValues = []; for (let i = 0; i < object.automatorSettingValues.length; ++i) { - if (typeof object.automatorSettingValues[i] !== "object") - throw TypeError(".Automator.AutomatorInfo.automatorSettingValues: object expected"); - message.automatorSettingValues[i] = $root.Automator.AutomatorSettingValue.fromObject(object.automatorSettingValues[i]); + if (typeof object.automatorSettingValues[i] !== 'object') + throw TypeError('.Automator.AutomatorInfo.automatorSettingValues: object expected'); + message.automatorSettingValues[i] = $root.Automator.AutomatorSettingValue.fromObject( + object.automatorSettingValues[i] + ); } } if (object.status != null) { - if (typeof object.status !== "object") - throw TypeError(".Automator.AutomatorInfo.status: object expected"); + if (typeof object.status !== 'object') + throw TypeError('.Automator.AutomatorInfo.status: object expected'); message.status = $root.Automator.StatusResponse.fromObject(object.status); } if (object.logEntries) { if (!Array.isArray(object.logEntries)) - throw TypeError(".Automator.AutomatorInfo.logEntries: array expected"); + throw TypeError('.Automator.AutomatorInfo.logEntries: array expected'); message.logEntries = []; for (let i = 0; i < object.logEntries.length; ++i) { - if (typeof object.logEntries[i] !== "object") - throw TypeError(".Automator.AutomatorInfo.logEntries: object expected"); + if (typeof object.logEntries[i] !== 'object') + throw TypeError('.Automator.AutomatorInfo.logEntries: object expected'); message.logEntries[i] = $root.Automator.LogEntry.fromObject(object.logEntries[i]); } } switch (object.automatorState) { - default: - if (typeof object.automatorState === "number") { - message.automatorState = object.automatorState; - break; - } - break; - case "UNKNOWN_STATE": - case 0: - message.automatorState = 0; - break; - case "RUNNING": - case 1: - message.automatorState = 1; - break; - case "ERROR": - case 2: - message.automatorState = 2; - break; - case "NEEDS_INITIALIZATION": - case 3: - message.automatorState = 3; - break; - case "NEEDS_CRYPTO_STEP_1": - case 4: - message.automatorState = 4; - break; - case "NEEDS_CRYPTO_STEP_2": - case 5: - message.automatorState = 5; - break; - } - if (object.version != null) - message.version = String(object.version); + default: + if (typeof object.automatorState === 'number') { + message.automatorState = object.automatorState; + break; + } + break; + case 'UNKNOWN_STATE': + case 0: + message.automatorState = 0; + break; + case 'RUNNING': + case 1: + message.automatorState = 1; + break; + case 'ERROR': + case 2: + message.automatorState = 2; + break; + case 'NEEDS_INITIALIZATION': + case 3: + message.automatorState = 3; + break; + case 'NEEDS_CRYPTO_STEP_1': + case 4: + message.automatorState = 4; + break; + case 'NEEDS_CRYPTO_STEP_2': + case 5: + message.automatorState = 5; + break; + } + if (object.version != null) message.version = String(object.version); return message; }; @@ -114544,8 +118478,7 @@ export const Automator = $root.Automator = (() => { * @returns {Object.} Plain object */ AutomatorInfo.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.arrays || options.defaults) { object.automatorSkills = []; @@ -114555,58 +118488,78 @@ export const Automator = $root.Automator = (() => { if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.automatorId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.automatorId = options.longs === String ? "0" : 0; + object.automatorId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.automatorId = options.longs === String ? '0' : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.nodeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.nodeId = options.longs === String ? "0" : 0; - object.name = ""; + object.nodeId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.nodeId = options.longs === String ? '0' : 0; + object.name = ''; object.enabled = false; - object.url = ""; + object.url = ''; object.status = null; - object.automatorState = options.enums === String ? "UNKNOWN_STATE" : 0; - object.version = ""; + object.automatorState = options.enums === String ? 'UNKNOWN_STATE' : 0; + object.version = ''; } - if (message.automatorId != null && message.hasOwnProperty("automatorId")) - if (typeof message.automatorId === "number") + if (message.automatorId != null && message.hasOwnProperty('automatorId')) + if (typeof message.automatorId === 'number') object.automatorId = options.longs === String ? String(message.automatorId) : message.automatorId; else - object.automatorId = options.longs === String ? $util.Long.prototype.toString.call(message.automatorId) : options.longs === Number ? new $util.LongBits(message.automatorId.low >>> 0, message.automatorId.high >>> 0).toNumber() : message.automatorId; - if (message.nodeId != null && message.hasOwnProperty("nodeId")) - if (typeof message.nodeId === "number") + object.automatorId = + options.longs === String + ? $util.Long.prototype.toString.call(message.automatorId) + : options.longs === Number + ? new $util.LongBits( + message.automatorId.low >>> 0, + message.automatorId.high >>> 0 + ).toNumber() + : message.automatorId; + if (message.nodeId != null && message.hasOwnProperty('nodeId')) + if (typeof message.nodeId === 'number') object.nodeId = options.longs === String ? String(message.nodeId) : message.nodeId; else - object.nodeId = options.longs === String ? $util.Long.prototype.toString.call(message.nodeId) : options.longs === Number ? new $util.LongBits(message.nodeId.low >>> 0, message.nodeId.high >>> 0).toNumber() : message.nodeId; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.enabled != null && message.hasOwnProperty("enabled")) - object.enabled = message.enabled; - if (message.url != null && message.hasOwnProperty("url")) - object.url = message.url; + object.nodeId = + options.longs === String + ? $util.Long.prototype.toString.call(message.nodeId) + : options.longs === Number + ? new $util.LongBits(message.nodeId.low >>> 0, message.nodeId.high >>> 0).toNumber() + : message.nodeId; + if (message.name != null && message.hasOwnProperty('name')) object.name = message.name; + if (message.enabled != null && message.hasOwnProperty('enabled')) object.enabled = message.enabled; + if (message.url != null && message.hasOwnProperty('url')) object.url = message.url; if (message.automatorSkills && message.automatorSkills.length) { object.automatorSkills = []; for (let j = 0; j < message.automatorSkills.length; ++j) - object.automatorSkills[j] = $root.Automator.AutomatorSkill.toObject(message.automatorSkills[j], options); + object.automatorSkills[j] = $root.Automator.AutomatorSkill.toObject( + message.automatorSkills[j], + options + ); } if (message.automatorSettingValues && message.automatorSettingValues.length) { object.automatorSettingValues = []; for (let j = 0; j < message.automatorSettingValues.length; ++j) - object.automatorSettingValues[j] = $root.Automator.AutomatorSettingValue.toObject(message.automatorSettingValues[j], options); + object.automatorSettingValues[j] = $root.Automator.AutomatorSettingValue.toObject( + message.automatorSettingValues[j], + options + ); } - if (message.status != null && message.hasOwnProperty("status")) + if (message.status != null && message.hasOwnProperty('status')) object.status = $root.Automator.StatusResponse.toObject(message.status, options); if (message.logEntries && message.logEntries.length) { object.logEntries = []; for (let j = 0; j < message.logEntries.length; ++j) object.logEntries[j] = $root.Automator.LogEntry.toObject(message.logEntries[j], options); } - if (message.automatorState != null && message.hasOwnProperty("automatorState")) - object.automatorState = options.enums === String ? $root.Automator.AutomatorState[message.automatorState] === undefined ? message.automatorState : $root.Automator.AutomatorState[message.automatorState] : message.automatorState; - if (message.version != null && message.hasOwnProperty("version")) - object.version = message.version; + if (message.automatorState != null && message.hasOwnProperty('automatorState')) + object.automatorState = + options.enums === String + ? $root.Automator.AutomatorState[message.automatorState] === undefined + ? message.automatorState + : $root.Automator.AutomatorState[message.automatorState] + : message.automatorState; + if (message.version != null && message.hasOwnProperty('version')) object.version = message.version; return object; }; @@ -114631,16 +118584,15 @@ export const Automator = $root.Automator = (() => { */ AutomatorInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Automator.AutomatorInfo"; + return typeUrlPrefix + '/Automator.AutomatorInfo'; }; return AutomatorInfo; })(); - Automator.AdminCreateAutomatorRequest = (function() { - + Automator.AdminCreateAutomatorRequest = (function () { /** * Properties of an AdminCreateAutomatorRequest. * @memberof Automator @@ -114655,7 +118607,7 @@ export const Automator = $root.Automator = (() => { * @memberof Automator * @classdesc AdminCreateAutomatorRequest * Create an automator on a Node. - * + * * Returns AdminResponse * @implements IAdminCreateAutomatorRequest * @constructor @@ -114664,8 +118616,7 @@ export const Automator = $root.Automator = (() => { function AdminCreateAutomatorRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -114674,7 +118625,7 @@ export const Automator = $root.Automator = (() => { * @memberof Automator.AdminCreateAutomatorRequest * @instance */ - AdminCreateAutomatorRequest.prototype.nodeId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + AdminCreateAutomatorRequest.prototype.nodeId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * AdminCreateAutomatorRequest name. @@ -114682,7 +118633,7 @@ export const Automator = $root.Automator = (() => { * @memberof Automator.AdminCreateAutomatorRequest * @instance */ - AdminCreateAutomatorRequest.prototype.name = ""; + AdminCreateAutomatorRequest.prototype.name = ''; /** * AdminCreateAutomatorRequest skill. @@ -114714,14 +118665,16 @@ export const Automator = $root.Automator = (() => { * @returns {$protobuf.Writer} Writer */ AdminCreateAutomatorRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.nodeId != null && Object.hasOwnProperty.call(message, "nodeId")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.nodeId); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.name); - if (message.skill != null && Object.hasOwnProperty.call(message, "skill")) - $root.Automator.AutomatorSkill.encode(message.skill, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (!writer) writer = $Writer.create(); + if (message.nodeId != null && Object.hasOwnProperty.call(message, 'nodeId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int64(message.nodeId); + if (message.name != null && Object.hasOwnProperty.call(message, 'name')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.name); + if (message.skill != null && Object.hasOwnProperty.call(message, 'skill')) + $root.Automator.AutomatorSkill.encode( + message.skill, + writer.uint32(/* id 3, wireType 2 =*/ 26).fork() + ).ldelim(); return writer; }; @@ -114750,27 +118703,27 @@ export const Automator = $root.Automator = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ AdminCreateAutomatorRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Automator.AdminCreateAutomatorRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Automator.AdminCreateAutomatorRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.nodeId = reader.int64(); break; } - case 2: { + case 2: { message.name = reader.string(); break; } - case 3: { + case 3: { message.skill = $root.Automator.AutomatorSkill.decode(reader, reader.uint32()); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -114787,8 +118740,7 @@ export const Automator = $root.Automator = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ AdminCreateAutomatorRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -114801,18 +118753,18 @@ export const Automator = $root.Automator = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ AdminCreateAutomatorRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.nodeId != null && message.hasOwnProperty("nodeId")) - if (!$util.isInteger(message.nodeId) && !(message.nodeId && $util.isInteger(message.nodeId.low) && $util.isInteger(message.nodeId.high))) - return "nodeId: integer|Long expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.skill != null && message.hasOwnProperty("skill")) { + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.nodeId != null && message.hasOwnProperty('nodeId')) + if ( + !$util.isInteger(message.nodeId) && + !(message.nodeId && $util.isInteger(message.nodeId.low) && $util.isInteger(message.nodeId.high)) + ) + return 'nodeId: integer|Long expected'; + if (message.name != null && message.hasOwnProperty('name')) + if (!$util.isString(message.name)) return 'name: string expected'; + if (message.skill != null && message.hasOwnProperty('skill')) { let error = $root.Automator.AutomatorSkill.verify(message.skill); - if (error) - return "skill." + error; + if (error) return 'skill.' + error; } return null; }; @@ -114826,23 +118778,18 @@ export const Automator = $root.Automator = (() => { * @returns {Automator.AdminCreateAutomatorRequest} AdminCreateAutomatorRequest */ AdminCreateAutomatorRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Automator.AdminCreateAutomatorRequest) - return object; + if (object instanceof $root.Automator.AdminCreateAutomatorRequest) return object; let message = new $root.Automator.AdminCreateAutomatorRequest(); if (object.nodeId != null) - if ($util.Long) - (message.nodeId = $util.Long.fromValue(object.nodeId)).unsigned = false; - else if (typeof object.nodeId === "string") - message.nodeId = parseInt(object.nodeId, 10); - else if (typeof object.nodeId === "number") - message.nodeId = object.nodeId; - else if (typeof object.nodeId === "object") + if ($util.Long) (message.nodeId = $util.Long.fromValue(object.nodeId)).unsigned = false; + else if (typeof object.nodeId === 'string') message.nodeId = parseInt(object.nodeId, 10); + else if (typeof object.nodeId === 'number') message.nodeId = object.nodeId; + else if (typeof object.nodeId === 'object') message.nodeId = new $util.LongBits(object.nodeId.low >>> 0, object.nodeId.high >>> 0).toNumber(); - if (object.name != null) - message.name = String(object.name); + if (object.name != null) message.name = String(object.name); if (object.skill != null) { - if (typeof object.skill !== "object") - throw TypeError(".Automator.AdminCreateAutomatorRequest.skill: object expected"); + if (typeof object.skill !== 'object') + throw TypeError('.Automator.AdminCreateAutomatorRequest.skill: object expected'); message.skill = $root.Automator.AutomatorSkill.fromObject(object.skill); } return message; @@ -114858,26 +118805,29 @@ export const Automator = $root.Automator = (() => { * @returns {Object.} Plain object */ AdminCreateAutomatorRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.nodeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.nodeId = options.longs === String ? "0" : 0; - object.name = ""; + object.nodeId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.nodeId = options.longs === String ? '0' : 0; + object.name = ''; object.skill = null; } - if (message.nodeId != null && message.hasOwnProperty("nodeId")) - if (typeof message.nodeId === "number") + if (message.nodeId != null && message.hasOwnProperty('nodeId')) + if (typeof message.nodeId === 'number') object.nodeId = options.longs === String ? String(message.nodeId) : message.nodeId; else - object.nodeId = options.longs === String ? $util.Long.prototype.toString.call(message.nodeId) : options.longs === Number ? new $util.LongBits(message.nodeId.low >>> 0, message.nodeId.high >>> 0).toNumber() : message.nodeId; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.skill != null && message.hasOwnProperty("skill")) + object.nodeId = + options.longs === String + ? $util.Long.prototype.toString.call(message.nodeId) + : options.longs === Number + ? new $util.LongBits(message.nodeId.low >>> 0, message.nodeId.high >>> 0).toNumber() + : message.nodeId; + if (message.name != null && message.hasOwnProperty('name')) object.name = message.name; + if (message.skill != null && message.hasOwnProperty('skill')) object.skill = $root.Automator.AutomatorSkill.toObject(message.skill, options); return object; }; @@ -114903,16 +118853,15 @@ export const Automator = $root.Automator = (() => { */ AdminCreateAutomatorRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Automator.AdminCreateAutomatorRequest"; + return typeUrlPrefix + '/Automator.AdminCreateAutomatorRequest'; }; return AdminCreateAutomatorRequest; })(); - Automator.AdminDeleteAutomatorRequest = (function() { - + Automator.AdminDeleteAutomatorRequest = (function () { /** * Properties of an AdminDeleteAutomatorRequest. * @memberof Automator @@ -114924,10 +118873,10 @@ export const Automator = $root.Automator = (() => { * Constructs a new AdminDeleteAutomatorRequest. * @memberof Automator * @classdesc AdminDeleteAutomatorRequest - * + * * Delete an automator and its settings. * Does not notify or affect the actual Automator running at the client site. - * + * * Returns AdminResponse * @implements IAdminDeleteAutomatorRequest * @constructor @@ -114936,8 +118885,7 @@ export const Automator = $root.Automator = (() => { function AdminDeleteAutomatorRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -114946,7 +118894,7 @@ export const Automator = $root.Automator = (() => { * @memberof Automator.AdminDeleteAutomatorRequest * @instance */ - AdminDeleteAutomatorRequest.prototype.automatorId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + AdminDeleteAutomatorRequest.prototype.automatorId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * Creates a new AdminDeleteAutomatorRequest instance using the specified properties. @@ -114970,10 +118918,9 @@ export const Automator = $root.Automator = (() => { * @returns {$protobuf.Writer} Writer */ AdminDeleteAutomatorRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.automatorId != null && Object.hasOwnProperty.call(message, "automatorId")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.automatorId); + if (!writer) writer = $Writer.create(); + if (message.automatorId != null && Object.hasOwnProperty.call(message, 'automatorId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int64(message.automatorId); return writer; }; @@ -115002,19 +118949,19 @@ export const Automator = $root.Automator = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ AdminDeleteAutomatorRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Automator.AdminDeleteAutomatorRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Automator.AdminDeleteAutomatorRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.automatorId = reader.int64(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -115031,8 +118978,7 @@ export const Automator = $root.Automator = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ AdminDeleteAutomatorRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -115045,11 +118991,17 @@ export const Automator = $root.Automator = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ AdminDeleteAutomatorRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.automatorId != null && message.hasOwnProperty("automatorId")) - if (!$util.isInteger(message.automatorId) && !(message.automatorId && $util.isInteger(message.automatorId.low) && $util.isInteger(message.automatorId.high))) - return "automatorId: integer|Long expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.automatorId != null && message.hasOwnProperty('automatorId')) + if ( + !$util.isInteger(message.automatorId) && + !( + message.automatorId && + $util.isInteger(message.automatorId.low) && + $util.isInteger(message.automatorId.high) + ) + ) + return 'automatorId: integer|Long expected'; return null; }; @@ -115062,18 +119014,17 @@ export const Automator = $root.Automator = (() => { * @returns {Automator.AdminDeleteAutomatorRequest} AdminDeleteAutomatorRequest */ AdminDeleteAutomatorRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Automator.AdminDeleteAutomatorRequest) - return object; + if (object instanceof $root.Automator.AdminDeleteAutomatorRequest) return object; let message = new $root.Automator.AdminDeleteAutomatorRequest(); if (object.automatorId != null) - if ($util.Long) - (message.automatorId = $util.Long.fromValue(object.automatorId)).unsigned = false; - else if (typeof object.automatorId === "string") - message.automatorId = parseInt(object.automatorId, 10); - else if (typeof object.automatorId === "number") - message.automatorId = object.automatorId; - else if (typeof object.automatorId === "object") - message.automatorId = new $util.LongBits(object.automatorId.low >>> 0, object.automatorId.high >>> 0).toNumber(); + if ($util.Long) (message.automatorId = $util.Long.fromValue(object.automatorId)).unsigned = false; + else if (typeof object.automatorId === 'string') message.automatorId = parseInt(object.automatorId, 10); + else if (typeof object.automatorId === 'number') message.automatorId = object.automatorId; + else if (typeof object.automatorId === 'object') + message.automatorId = new $util.LongBits( + object.automatorId.low >>> 0, + object.automatorId.high >>> 0 + ).toNumber(); return message; }; @@ -115087,20 +119038,27 @@ export const Automator = $root.Automator = (() => { * @returns {Object.} Plain object */ AdminDeleteAutomatorRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) if ($util.Long) { let long = new $util.Long(0, 0, false); - object.automatorId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.automatorId = options.longs === String ? "0" : 0; - if (message.automatorId != null && message.hasOwnProperty("automatorId")) - if (typeof message.automatorId === "number") + object.automatorId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.automatorId = options.longs === String ? '0' : 0; + if (message.automatorId != null && message.hasOwnProperty('automatorId')) + if (typeof message.automatorId === 'number') object.automatorId = options.longs === String ? String(message.automatorId) : message.automatorId; else - object.automatorId = options.longs === String ? $util.Long.prototype.toString.call(message.automatorId) : options.longs === Number ? new $util.LongBits(message.automatorId.low >>> 0, message.automatorId.high >>> 0).toNumber() : message.automatorId; + object.automatorId = + options.longs === String + ? $util.Long.prototype.toString.call(message.automatorId) + : options.longs === Number + ? new $util.LongBits( + message.automatorId.low >>> 0, + message.automatorId.high >>> 0 + ).toNumber() + : message.automatorId; return object; }; @@ -115125,16 +119083,15 @@ export const Automator = $root.Automator = (() => { */ AdminDeleteAutomatorRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Automator.AdminDeleteAutomatorRequest"; + return typeUrlPrefix + '/Automator.AdminDeleteAutomatorRequest'; }; return AdminDeleteAutomatorRequest; })(); - Automator.AdminGetAutomatorsOnNodeRequest = (function() { - + Automator.AdminGetAutomatorsOnNodeRequest = (function () { /** * Properties of an AdminGetAutomatorsOnNodeRequest. * @memberof Automator @@ -115147,7 +119104,7 @@ export const Automator = $root.Automator = (() => { * @memberof Automator * @classdesc Retrieve automators on a node. * The info should also be in enterprise_summary or whatever it is called. - * + * * If you want info on a particular automator, use automator_get. * Returns AdminResponse * @implements IAdminGetAutomatorsOnNodeRequest @@ -115157,8 +119114,7 @@ export const Automator = $root.Automator = (() => { function AdminGetAutomatorsOnNodeRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -115167,7 +119123,7 @@ export const Automator = $root.Automator = (() => { * @memberof Automator.AdminGetAutomatorsOnNodeRequest * @instance */ - AdminGetAutomatorsOnNodeRequest.prototype.nodeId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + AdminGetAutomatorsOnNodeRequest.prototype.nodeId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * Creates a new AdminGetAutomatorsOnNodeRequest instance using the specified properties. @@ -115191,10 +119147,9 @@ export const Automator = $root.Automator = (() => { * @returns {$protobuf.Writer} Writer */ AdminGetAutomatorsOnNodeRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.nodeId != null && Object.hasOwnProperty.call(message, "nodeId")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.nodeId); + if (!writer) writer = $Writer.create(); + if (message.nodeId != null && Object.hasOwnProperty.call(message, 'nodeId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int64(message.nodeId); return writer; }; @@ -115223,19 +119178,19 @@ export const Automator = $root.Automator = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ AdminGetAutomatorsOnNodeRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Automator.AdminGetAutomatorsOnNodeRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Automator.AdminGetAutomatorsOnNodeRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.nodeId = reader.int64(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -115252,8 +119207,7 @@ export const Automator = $root.Automator = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ AdminGetAutomatorsOnNodeRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -115266,11 +119220,13 @@ export const Automator = $root.Automator = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ AdminGetAutomatorsOnNodeRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.nodeId != null && message.hasOwnProperty("nodeId")) - if (!$util.isInteger(message.nodeId) && !(message.nodeId && $util.isInteger(message.nodeId.low) && $util.isInteger(message.nodeId.high))) - return "nodeId: integer|Long expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.nodeId != null && message.hasOwnProperty('nodeId')) + if ( + !$util.isInteger(message.nodeId) && + !(message.nodeId && $util.isInteger(message.nodeId.low) && $util.isInteger(message.nodeId.high)) + ) + return 'nodeId: integer|Long expected'; return null; }; @@ -115283,17 +119239,13 @@ export const Automator = $root.Automator = (() => { * @returns {Automator.AdminGetAutomatorsOnNodeRequest} AdminGetAutomatorsOnNodeRequest */ AdminGetAutomatorsOnNodeRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Automator.AdminGetAutomatorsOnNodeRequest) - return object; + if (object instanceof $root.Automator.AdminGetAutomatorsOnNodeRequest) return object; let message = new $root.Automator.AdminGetAutomatorsOnNodeRequest(); if (object.nodeId != null) - if ($util.Long) - (message.nodeId = $util.Long.fromValue(object.nodeId)).unsigned = false; - else if (typeof object.nodeId === "string") - message.nodeId = parseInt(object.nodeId, 10); - else if (typeof object.nodeId === "number") - message.nodeId = object.nodeId; - else if (typeof object.nodeId === "object") + if ($util.Long) (message.nodeId = $util.Long.fromValue(object.nodeId)).unsigned = false; + else if (typeof object.nodeId === 'string') message.nodeId = parseInt(object.nodeId, 10); + else if (typeof object.nodeId === 'number') message.nodeId = object.nodeId; + else if (typeof object.nodeId === 'object') message.nodeId = new $util.LongBits(object.nodeId.low >>> 0, object.nodeId.high >>> 0).toNumber(); return message; }; @@ -115308,20 +119260,24 @@ export const Automator = $root.Automator = (() => { * @returns {Object.} Plain object */ AdminGetAutomatorsOnNodeRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) if ($util.Long) { let long = new $util.Long(0, 0, false); - object.nodeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.nodeId = options.longs === String ? "0" : 0; - if (message.nodeId != null && message.hasOwnProperty("nodeId")) - if (typeof message.nodeId === "number") + object.nodeId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.nodeId = options.longs === String ? '0' : 0; + if (message.nodeId != null && message.hasOwnProperty('nodeId')) + if (typeof message.nodeId === 'number') object.nodeId = options.longs === String ? String(message.nodeId) : message.nodeId; else - object.nodeId = options.longs === String ? $util.Long.prototype.toString.call(message.nodeId) : options.longs === Number ? new $util.LongBits(message.nodeId.low >>> 0, message.nodeId.high >>> 0).toNumber() : message.nodeId; + object.nodeId = + options.longs === String + ? $util.Long.prototype.toString.call(message.nodeId) + : options.longs === Number + ? new $util.LongBits(message.nodeId.low >>> 0, message.nodeId.high >>> 0).toNumber() + : message.nodeId; return object; }; @@ -115346,16 +119302,15 @@ export const Automator = $root.Automator = (() => { */ AdminGetAutomatorsOnNodeRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Automator.AdminGetAutomatorsOnNodeRequest"; + return typeUrlPrefix + '/Automator.AdminGetAutomatorsOnNodeRequest'; }; return AdminGetAutomatorsOnNodeRequest; })(); - Automator.AdminGetAutomatorsForEnterpriseRequest = (function() { - + Automator.AdminGetAutomatorsForEnterpriseRequest = (function () { /** * Properties of an AdminGetAutomatorsForEnterpriseRequest. * @memberof Automator @@ -115368,7 +119323,7 @@ export const Automator = $root.Automator = (() => { * @memberof Automator * @classdesc Retrieve automators in an enterprise. * The info should also be in enterprise_summary or whatever it is called. - * + * * If you want info on a particular automator, use automator_get. * If you want a list of automators on a node, use automator_get_on_node * Returns AdminResponse @@ -115379,8 +119334,7 @@ export const Automator = $root.Automator = (() => { function AdminGetAutomatorsForEnterpriseRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -115413,10 +119367,9 @@ export const Automator = $root.Automator = (() => { * @returns {$protobuf.Writer} Writer */ AdminGetAutomatorsForEnterpriseRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.enterpriseId != null && Object.hasOwnProperty.call(message, "enterpriseId")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.enterpriseId); + if (!writer) writer = $Writer.create(); + if (message.enterpriseId != null && Object.hasOwnProperty.call(message, 'enterpriseId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int32(message.enterpriseId); return writer; }; @@ -115445,19 +119398,19 @@ export const Automator = $root.Automator = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ AdminGetAutomatorsForEnterpriseRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Automator.AdminGetAutomatorsForEnterpriseRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Automator.AdminGetAutomatorsForEnterpriseRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.enterpriseId = reader.int32(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -115474,8 +119427,7 @@ export const Automator = $root.Automator = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ AdminGetAutomatorsForEnterpriseRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -115488,11 +119440,9 @@ export const Automator = $root.Automator = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ AdminGetAutomatorsForEnterpriseRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.enterpriseId != null && message.hasOwnProperty("enterpriseId")) - if (!$util.isInteger(message.enterpriseId)) - return "enterpriseId: integer expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.enterpriseId != null && message.hasOwnProperty('enterpriseId')) + if (!$util.isInteger(message.enterpriseId)) return 'enterpriseId: integer expected'; return null; }; @@ -115505,11 +119455,9 @@ export const Automator = $root.Automator = (() => { * @returns {Automator.AdminGetAutomatorsForEnterpriseRequest} AdminGetAutomatorsForEnterpriseRequest */ AdminGetAutomatorsForEnterpriseRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Automator.AdminGetAutomatorsForEnterpriseRequest) - return object; + if (object instanceof $root.Automator.AdminGetAutomatorsForEnterpriseRequest) return object; let message = new $root.Automator.AdminGetAutomatorsForEnterpriseRequest(); - if (object.enterpriseId != null) - message.enterpriseId = object.enterpriseId | 0; + if (object.enterpriseId != null) message.enterpriseId = object.enterpriseId | 0; return message; }; @@ -115523,12 +119471,10 @@ export const Automator = $root.Automator = (() => { * @returns {Object.} Plain object */ AdminGetAutomatorsForEnterpriseRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.defaults) - object.enterpriseId = 0; - if (message.enterpriseId != null && message.hasOwnProperty("enterpriseId")) + if (options.defaults) object.enterpriseId = 0; + if (message.enterpriseId != null && message.hasOwnProperty('enterpriseId')) object.enterpriseId = message.enterpriseId; return object; }; @@ -115554,16 +119500,15 @@ export const Automator = $root.Automator = (() => { */ AdminGetAutomatorsForEnterpriseRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Automator.AdminGetAutomatorsForEnterpriseRequest"; + return typeUrlPrefix + '/Automator.AdminGetAutomatorsForEnterpriseRequest'; }; return AdminGetAutomatorsForEnterpriseRequest; })(); - Automator.AdminGetAutomatorRequest = (function() { - + Automator.AdminGetAutomatorRequest = (function () { /** * Properties of an AdminGetAutomatorRequest. * @memberof Automator @@ -115575,7 +119520,7 @@ export const Automator = $root.Automator = (() => { * Constructs a new AdminGetAutomatorRequest. * @memberof Automator * @classdesc Retrieve information about a specific automator. - * + * * Returns AdminResponse * @implements IAdminGetAutomatorRequest * @constructor @@ -115584,8 +119529,7 @@ export const Automator = $root.Automator = (() => { function AdminGetAutomatorRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -115594,7 +119538,7 @@ export const Automator = $root.Automator = (() => { * @memberof Automator.AdminGetAutomatorRequest * @instance */ - AdminGetAutomatorRequest.prototype.automatorId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + AdminGetAutomatorRequest.prototype.automatorId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * Creates a new AdminGetAutomatorRequest instance using the specified properties. @@ -115618,10 +119562,9 @@ export const Automator = $root.Automator = (() => { * @returns {$protobuf.Writer} Writer */ AdminGetAutomatorRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.automatorId != null && Object.hasOwnProperty.call(message, "automatorId")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.automatorId); + if (!writer) writer = $Writer.create(); + if (message.automatorId != null && Object.hasOwnProperty.call(message, 'automatorId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int64(message.automatorId); return writer; }; @@ -115650,19 +119593,19 @@ export const Automator = $root.Automator = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ AdminGetAutomatorRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Automator.AdminGetAutomatorRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Automator.AdminGetAutomatorRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.automatorId = reader.int64(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -115679,8 +119622,7 @@ export const Automator = $root.Automator = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ AdminGetAutomatorRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -115693,11 +119635,17 @@ export const Automator = $root.Automator = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ AdminGetAutomatorRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.automatorId != null && message.hasOwnProperty("automatorId")) - if (!$util.isInteger(message.automatorId) && !(message.automatorId && $util.isInteger(message.automatorId.low) && $util.isInteger(message.automatorId.high))) - return "automatorId: integer|Long expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.automatorId != null && message.hasOwnProperty('automatorId')) + if ( + !$util.isInteger(message.automatorId) && + !( + message.automatorId && + $util.isInteger(message.automatorId.low) && + $util.isInteger(message.automatorId.high) + ) + ) + return 'automatorId: integer|Long expected'; return null; }; @@ -115710,18 +119658,17 @@ export const Automator = $root.Automator = (() => { * @returns {Automator.AdminGetAutomatorRequest} AdminGetAutomatorRequest */ AdminGetAutomatorRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Automator.AdminGetAutomatorRequest) - return object; + if (object instanceof $root.Automator.AdminGetAutomatorRequest) return object; let message = new $root.Automator.AdminGetAutomatorRequest(); if (object.automatorId != null) - if ($util.Long) - (message.automatorId = $util.Long.fromValue(object.automatorId)).unsigned = false; - else if (typeof object.automatorId === "string") - message.automatorId = parseInt(object.automatorId, 10); - else if (typeof object.automatorId === "number") - message.automatorId = object.automatorId; - else if (typeof object.automatorId === "object") - message.automatorId = new $util.LongBits(object.automatorId.low >>> 0, object.automatorId.high >>> 0).toNumber(); + if ($util.Long) (message.automatorId = $util.Long.fromValue(object.automatorId)).unsigned = false; + else if (typeof object.automatorId === 'string') message.automatorId = parseInt(object.automatorId, 10); + else if (typeof object.automatorId === 'number') message.automatorId = object.automatorId; + else if (typeof object.automatorId === 'object') + message.automatorId = new $util.LongBits( + object.automatorId.low >>> 0, + object.automatorId.high >>> 0 + ).toNumber(); return message; }; @@ -115735,20 +119682,27 @@ export const Automator = $root.Automator = (() => { * @returns {Object.} Plain object */ AdminGetAutomatorRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) if ($util.Long) { let long = new $util.Long(0, 0, false); - object.automatorId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.automatorId = options.longs === String ? "0" : 0; - if (message.automatorId != null && message.hasOwnProperty("automatorId")) - if (typeof message.automatorId === "number") + object.automatorId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.automatorId = options.longs === String ? '0' : 0; + if (message.automatorId != null && message.hasOwnProperty('automatorId')) + if (typeof message.automatorId === 'number') object.automatorId = options.longs === String ? String(message.automatorId) : message.automatorId; else - object.automatorId = options.longs === String ? $util.Long.prototype.toString.call(message.automatorId) : options.longs === Number ? new $util.LongBits(message.automatorId.low >>> 0, message.automatorId.high >>> 0).toNumber() : message.automatorId; + object.automatorId = + options.longs === String + ? $util.Long.prototype.toString.call(message.automatorId) + : options.longs === Number + ? new $util.LongBits( + message.automatorId.low >>> 0, + message.automatorId.high >>> 0 + ).toNumber() + : message.automatorId; return object; }; @@ -115773,16 +119727,15 @@ export const Automator = $root.Automator = (() => { */ AdminGetAutomatorRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Automator.AdminGetAutomatorRequest"; + return typeUrlPrefix + '/Automator.AdminGetAutomatorRequest'; }; return AdminGetAutomatorRequest; })(); - Automator.AdminEnableAutomatorRequest = (function() { - + Automator.AdminEnableAutomatorRequest = (function () { /** * Properties of an AdminEnableAutomatorRequest. * @memberof Automator @@ -115795,7 +119748,7 @@ export const Automator = $root.Automator = (() => { * Constructs a new AdminEnableAutomatorRequest. * @memberof Automator * @classdesc Enable or disable an automator. - * + * * Returns AdminResponse * @implements IAdminEnableAutomatorRequest * @constructor @@ -115804,8 +119757,7 @@ export const Automator = $root.Automator = (() => { function AdminEnableAutomatorRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -115814,7 +119766,7 @@ export const Automator = $root.Automator = (() => { * @memberof Automator.AdminEnableAutomatorRequest * @instance */ - AdminEnableAutomatorRequest.prototype.automatorId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + AdminEnableAutomatorRequest.prototype.automatorId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * AdminEnableAutomatorRequest enabled. @@ -115846,12 +119798,11 @@ export const Automator = $root.Automator = (() => { * @returns {$protobuf.Writer} Writer */ AdminEnableAutomatorRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.automatorId != null && Object.hasOwnProperty.call(message, "automatorId")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.automatorId); - if (message.enabled != null && Object.hasOwnProperty.call(message, "enabled")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.enabled); + if (!writer) writer = $Writer.create(); + if (message.automatorId != null && Object.hasOwnProperty.call(message, 'automatorId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int64(message.automatorId); + if (message.enabled != null && Object.hasOwnProperty.call(message, 'enabled')) + writer.uint32(/* id 2, wireType 0 =*/ 16).bool(message.enabled); return writer; }; @@ -115880,23 +119831,23 @@ export const Automator = $root.Automator = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ AdminEnableAutomatorRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Automator.AdminEnableAutomatorRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Automator.AdminEnableAutomatorRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.automatorId = reader.int64(); break; } - case 2: { + case 2: { message.enabled = reader.bool(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -115913,8 +119864,7 @@ export const Automator = $root.Automator = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ AdminEnableAutomatorRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -115927,14 +119877,19 @@ export const Automator = $root.Automator = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ AdminEnableAutomatorRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.automatorId != null && message.hasOwnProperty("automatorId")) - if (!$util.isInteger(message.automatorId) && !(message.automatorId && $util.isInteger(message.automatorId.low) && $util.isInteger(message.automatorId.high))) - return "automatorId: integer|Long expected"; - if (message.enabled != null && message.hasOwnProperty("enabled")) - if (typeof message.enabled !== "boolean") - return "enabled: boolean expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.automatorId != null && message.hasOwnProperty('automatorId')) + if ( + !$util.isInteger(message.automatorId) && + !( + message.automatorId && + $util.isInteger(message.automatorId.low) && + $util.isInteger(message.automatorId.high) + ) + ) + return 'automatorId: integer|Long expected'; + if (message.enabled != null && message.hasOwnProperty('enabled')) + if (typeof message.enabled !== 'boolean') return 'enabled: boolean expected'; return null; }; @@ -115947,20 +119902,18 @@ export const Automator = $root.Automator = (() => { * @returns {Automator.AdminEnableAutomatorRequest} AdminEnableAutomatorRequest */ AdminEnableAutomatorRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Automator.AdminEnableAutomatorRequest) - return object; + if (object instanceof $root.Automator.AdminEnableAutomatorRequest) return object; let message = new $root.Automator.AdminEnableAutomatorRequest(); if (object.automatorId != null) - if ($util.Long) - (message.automatorId = $util.Long.fromValue(object.automatorId)).unsigned = false; - else if (typeof object.automatorId === "string") - message.automatorId = parseInt(object.automatorId, 10); - else if (typeof object.automatorId === "number") - message.automatorId = object.automatorId; - else if (typeof object.automatorId === "object") - message.automatorId = new $util.LongBits(object.automatorId.low >>> 0, object.automatorId.high >>> 0).toNumber(); - if (object.enabled != null) - message.enabled = Boolean(object.enabled); + if ($util.Long) (message.automatorId = $util.Long.fromValue(object.automatorId)).unsigned = false; + else if (typeof object.automatorId === 'string') message.automatorId = parseInt(object.automatorId, 10); + else if (typeof object.automatorId === 'number') message.automatorId = object.automatorId; + else if (typeof object.automatorId === 'object') + message.automatorId = new $util.LongBits( + object.automatorId.low >>> 0, + object.automatorId.high >>> 0 + ).toNumber(); + if (object.enabled != null) message.enabled = Boolean(object.enabled); return message; }; @@ -115974,24 +119927,30 @@ export const Automator = $root.Automator = (() => { * @returns {Object.} Plain object */ AdminEnableAutomatorRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.automatorId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.automatorId = options.longs === String ? "0" : 0; + object.automatorId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.automatorId = options.longs === String ? '0' : 0; object.enabled = false; } - if (message.automatorId != null && message.hasOwnProperty("automatorId")) - if (typeof message.automatorId === "number") + if (message.automatorId != null && message.hasOwnProperty('automatorId')) + if (typeof message.automatorId === 'number') object.automatorId = options.longs === String ? String(message.automatorId) : message.automatorId; else - object.automatorId = options.longs === String ? $util.Long.prototype.toString.call(message.automatorId) : options.longs === Number ? new $util.LongBits(message.automatorId.low >>> 0, message.automatorId.high >>> 0).toNumber() : message.automatorId; - if (message.enabled != null && message.hasOwnProperty("enabled")) - object.enabled = message.enabled; + object.automatorId = + options.longs === String + ? $util.Long.prototype.toString.call(message.automatorId) + : options.longs === Number + ? new $util.LongBits( + message.automatorId.low >>> 0, + message.automatorId.high >>> 0 + ).toNumber() + : message.automatorId; + if (message.enabled != null && message.hasOwnProperty('enabled')) object.enabled = message.enabled; return object; }; @@ -116016,16 +119975,15 @@ export const Automator = $root.Automator = (() => { */ AdminEnableAutomatorRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Automator.AdminEnableAutomatorRequest"; + return typeUrlPrefix + '/Automator.AdminEnableAutomatorRequest'; }; return AdminEnableAutomatorRequest; })(); - Automator.AdminEditAutomatorRequest = (function() { - + Automator.AdminEditAutomatorRequest = (function () { /** * Properties of an AdminEditAutomatorRequest. * @memberof Automator @@ -116042,9 +120000,9 @@ export const Automator = $root.Automator = (() => { * Constructs a new AdminEditAutomatorRequest. * @memberof Automator * @classdesc Edit settings on the automator. - * + * * If a value is non-empty, it will be set on the Automator. - * + * * Returns AdminResponse with all current settings * @implements IAdminEditAutomatorRequest * @constructor @@ -116055,8 +120013,7 @@ export const Automator = $root.Automator = (() => { this.automatorSettingValues = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -116065,7 +120022,7 @@ export const Automator = $root.Automator = (() => { * @memberof Automator.AdminEditAutomatorRequest * @instance */ - AdminEditAutomatorRequest.prototype.automatorId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + AdminEditAutomatorRequest.prototype.automatorId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * AdminEditAutomatorRequest name. @@ -116073,7 +120030,7 @@ export const Automator = $root.Automator = (() => { * @memberof Automator.AdminEditAutomatorRequest * @instance */ - AdminEditAutomatorRequest.prototype.name = ""; + AdminEditAutomatorRequest.prototype.name = ''; /** * AdminEditAutomatorRequest enabled. @@ -116089,7 +120046,7 @@ export const Automator = $root.Automator = (() => { * @memberof Automator.AdminEditAutomatorRequest * @instance */ - AdminEditAutomatorRequest.prototype.url = ""; + AdminEditAutomatorRequest.prototype.url = ''; /** * AdminEditAutomatorRequest skillTypes. @@ -116129,25 +120086,26 @@ export const Automator = $root.Automator = (() => { * @returns {$protobuf.Writer} Writer */ AdminEditAutomatorRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.automatorId != null && Object.hasOwnProperty.call(message, "automatorId")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.automatorId); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.name); - if (message.enabled != null && Object.hasOwnProperty.call(message, "enabled")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.enabled); - if (message.url != null && Object.hasOwnProperty.call(message, "url")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.url); + if (!writer) writer = $Writer.create(); + if (message.automatorId != null && Object.hasOwnProperty.call(message, 'automatorId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int64(message.automatorId); + if (message.name != null && Object.hasOwnProperty.call(message, 'name')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.name); + if (message.enabled != null && Object.hasOwnProperty.call(message, 'enabled')) + writer.uint32(/* id 3, wireType 0 =*/ 24).bool(message.enabled); + if (message.url != null && Object.hasOwnProperty.call(message, 'url')) + writer.uint32(/* id 4, wireType 2 =*/ 34).string(message.url); if (message.skillTypes != null && message.skillTypes.length) { - writer.uint32(/* id 5, wireType 2 =*/42).fork(); - for (let i = 0; i < message.skillTypes.length; ++i) - writer.int32(message.skillTypes[i]); + writer.uint32(/* id 5, wireType 2 =*/ 42).fork(); + for (let i = 0; i < message.skillTypes.length; ++i) writer.int32(message.skillTypes[i]); writer.ldelim(); } if (message.automatorSettingValues != null && message.automatorSettingValues.length) for (let i = 0; i < message.automatorSettingValues.length; ++i) - $root.Automator.AutomatorSettingValue.encode(message.automatorSettingValues[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + $root.Automator.AutomatorSettingValue.encode( + message.automatorSettingValues[i], + writer.uint32(/* id 6, wireType 2 =*/ 50).fork() + ).ldelim(); return writer; }; @@ -116176,48 +120134,47 @@ export const Automator = $root.Automator = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ AdminEditAutomatorRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Automator.AdminEditAutomatorRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Automator.AdminEditAutomatorRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.automatorId = reader.int64(); break; } - case 2: { + case 2: { message.name = reader.string(); break; } - case 3: { + case 3: { message.enabled = reader.bool(); break; } - case 4: { + case 4: { message.url = reader.string(); break; } - case 5: { - if (!(message.skillTypes && message.skillTypes.length)) - message.skillTypes = []; + case 5: { + if (!(message.skillTypes && message.skillTypes.length)) message.skillTypes = []; if ((tag & 7) === 2) { let end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.skillTypes.push(reader.int32()); - } else - message.skillTypes.push(reader.int32()); + while (reader.pos < end2) message.skillTypes.push(reader.int32()); + } else message.skillTypes.push(reader.int32()); break; } - case 6: { + case 6: { if (!(message.automatorSettingValues && message.automatorSettingValues.length)) message.automatorSettingValues = []; - message.automatorSettingValues.push($root.Automator.AutomatorSettingValue.decode(reader, reader.uint32())); + message.automatorSettingValues.push( + $root.Automator.AutomatorSettingValue.decode(reader, reader.uint32()) + ); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -116234,8 +120191,7 @@ export const Automator = $root.Automator = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ AdminEditAutomatorRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -116248,41 +120204,41 @@ export const Automator = $root.Automator = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ AdminEditAutomatorRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.automatorId != null && message.hasOwnProperty("automatorId")) - if (!$util.isInteger(message.automatorId) && !(message.automatorId && $util.isInteger(message.automatorId.low) && $util.isInteger(message.automatorId.high))) - return "automatorId: integer|Long expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.enabled != null && message.hasOwnProperty("enabled")) - if (typeof message.enabled !== "boolean") - return "enabled: boolean expected"; - if (message.url != null && message.hasOwnProperty("url")) - if (!$util.isString(message.url)) - return "url: string expected"; - if (message.skillTypes != null && message.hasOwnProperty("skillTypes")) { - if (!Array.isArray(message.skillTypes)) - return "skillTypes: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.automatorId != null && message.hasOwnProperty('automatorId')) + if ( + !$util.isInteger(message.automatorId) && + !( + message.automatorId && + $util.isInteger(message.automatorId.low) && + $util.isInteger(message.automatorId.high) + ) + ) + return 'automatorId: integer|Long expected'; + if (message.name != null && message.hasOwnProperty('name')) + if (!$util.isString(message.name)) return 'name: string expected'; + if (message.enabled != null && message.hasOwnProperty('enabled')) + if (typeof message.enabled !== 'boolean') return 'enabled: boolean expected'; + if (message.url != null && message.hasOwnProperty('url')) + if (!$util.isString(message.url)) return 'url: string expected'; + if (message.skillTypes != null && message.hasOwnProperty('skillTypes')) { + if (!Array.isArray(message.skillTypes)) return 'skillTypes: array expected'; for (let i = 0; i < message.skillTypes.length; ++i) switch (message.skillTypes[i]) { - default: - return "skillTypes: enum value[] expected"; - case 0: - case 1: - case 2: - case 3: - break; + default: + return 'skillTypes: enum value[] expected'; + case 0: + case 1: + case 2: + case 3: + break; } } - if (message.automatorSettingValues != null && message.hasOwnProperty("automatorSettingValues")) { - if (!Array.isArray(message.automatorSettingValues)) - return "automatorSettingValues: array expected"; + if (message.automatorSettingValues != null && message.hasOwnProperty('automatorSettingValues')) { + if (!Array.isArray(message.automatorSettingValues)) return 'automatorSettingValues: array expected'; for (let i = 0; i < message.automatorSettingValues.length; ++i) { let error = $root.Automator.AutomatorSettingValue.verify(message.automatorSettingValues[i]); - if (error) - return "automatorSettingValues." + error; + if (error) return 'automatorSettingValues.' + error; } } return null; @@ -116297,61 +120253,59 @@ export const Automator = $root.Automator = (() => { * @returns {Automator.AdminEditAutomatorRequest} AdminEditAutomatorRequest */ AdminEditAutomatorRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Automator.AdminEditAutomatorRequest) - return object; + if (object instanceof $root.Automator.AdminEditAutomatorRequest) return object; let message = new $root.Automator.AdminEditAutomatorRequest(); if (object.automatorId != null) - if ($util.Long) - (message.automatorId = $util.Long.fromValue(object.automatorId)).unsigned = false; - else if (typeof object.automatorId === "string") - message.automatorId = parseInt(object.automatorId, 10); - else if (typeof object.automatorId === "number") - message.automatorId = object.automatorId; - else if (typeof object.automatorId === "object") - message.automatorId = new $util.LongBits(object.automatorId.low >>> 0, object.automatorId.high >>> 0).toNumber(); - if (object.name != null) - message.name = String(object.name); - if (object.enabled != null) - message.enabled = Boolean(object.enabled); - if (object.url != null) - message.url = String(object.url); + if ($util.Long) (message.automatorId = $util.Long.fromValue(object.automatorId)).unsigned = false; + else if (typeof object.automatorId === 'string') message.automatorId = parseInt(object.automatorId, 10); + else if (typeof object.automatorId === 'number') message.automatorId = object.automatorId; + else if (typeof object.automatorId === 'object') + message.automatorId = new $util.LongBits( + object.automatorId.low >>> 0, + object.automatorId.high >>> 0 + ).toNumber(); + if (object.name != null) message.name = String(object.name); + if (object.enabled != null) message.enabled = Boolean(object.enabled); + if (object.url != null) message.url = String(object.url); if (object.skillTypes) { if (!Array.isArray(object.skillTypes)) - throw TypeError(".Automator.AdminEditAutomatorRequest.skillTypes: array expected"); + throw TypeError('.Automator.AdminEditAutomatorRequest.skillTypes: array expected'); message.skillTypes = []; for (let i = 0; i < object.skillTypes.length; ++i) switch (object.skillTypes[i]) { - default: - if (typeof object.skillTypes[i] === "number") { - message.skillTypes[i] = object.skillTypes[i]; + default: + if (typeof object.skillTypes[i] === 'number') { + message.skillTypes[i] = object.skillTypes[i]; + break; + } + case 'UNKNOWN_SKILL_TYPE': + case 0: + message.skillTypes[i] = 0; + break; + case 'DEVICE_APPROVAL': + case 1: + message.skillTypes[i] = 1; + break; + case 'TEAM_APPROVAL': + case 2: + message.skillTypes[i] = 2; + break; + case 'TEAM_FOR_USER_APPROVAL': + case 3: + message.skillTypes[i] = 3; break; - } - case "UNKNOWN_SKILL_TYPE": - case 0: - message.skillTypes[i] = 0; - break; - case "DEVICE_APPROVAL": - case 1: - message.skillTypes[i] = 1; - break; - case "TEAM_APPROVAL": - case 2: - message.skillTypes[i] = 2; - break; - case "TEAM_FOR_USER_APPROVAL": - case 3: - message.skillTypes[i] = 3; - break; } } if (object.automatorSettingValues) { if (!Array.isArray(object.automatorSettingValues)) - throw TypeError(".Automator.AdminEditAutomatorRequest.automatorSettingValues: array expected"); + throw TypeError('.Automator.AdminEditAutomatorRequest.automatorSettingValues: array expected'); message.automatorSettingValues = []; for (let i = 0; i < object.automatorSettingValues.length; ++i) { - if (typeof object.automatorSettingValues[i] !== "object") - throw TypeError(".Automator.AdminEditAutomatorRequest.automatorSettingValues: object expected"); - message.automatorSettingValues[i] = $root.Automator.AutomatorSettingValue.fromObject(object.automatorSettingValues[i]); + if (typeof object.automatorSettingValues[i] !== 'object') + throw TypeError('.Automator.AdminEditAutomatorRequest.automatorSettingValues: object expected'); + message.automatorSettingValues[i] = $root.Automator.AutomatorSettingValue.fromObject( + object.automatorSettingValues[i] + ); } } return message; @@ -116367,8 +120321,7 @@ export const Automator = $root.Automator = (() => { * @returns {Object.} Plain object */ AdminEditAutomatorRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.arrays || options.defaults) { object.skillTypes = []; @@ -116377,33 +120330,46 @@ export const Automator = $root.Automator = (() => { if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.automatorId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.automatorId = options.longs === String ? "0" : 0; - object.name = ""; + object.automatorId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.automatorId = options.longs === String ? '0' : 0; + object.name = ''; object.enabled = false; - object.url = ""; + object.url = ''; } - if (message.automatorId != null && message.hasOwnProperty("automatorId")) - if (typeof message.automatorId === "number") + if (message.automatorId != null && message.hasOwnProperty('automatorId')) + if (typeof message.automatorId === 'number') object.automatorId = options.longs === String ? String(message.automatorId) : message.automatorId; else - object.automatorId = options.longs === String ? $util.Long.prototype.toString.call(message.automatorId) : options.longs === Number ? new $util.LongBits(message.automatorId.low >>> 0, message.automatorId.high >>> 0).toNumber() : message.automatorId; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.enabled != null && message.hasOwnProperty("enabled")) - object.enabled = message.enabled; - if (message.url != null && message.hasOwnProperty("url")) - object.url = message.url; + object.automatorId = + options.longs === String + ? $util.Long.prototype.toString.call(message.automatorId) + : options.longs === Number + ? new $util.LongBits( + message.automatorId.low >>> 0, + message.automatorId.high >>> 0 + ).toNumber() + : message.automatorId; + if (message.name != null && message.hasOwnProperty('name')) object.name = message.name; + if (message.enabled != null && message.hasOwnProperty('enabled')) object.enabled = message.enabled; + if (message.url != null && message.hasOwnProperty('url')) object.url = message.url; if (message.skillTypes && message.skillTypes.length) { object.skillTypes = []; for (let j = 0; j < message.skillTypes.length; ++j) - object.skillTypes[j] = options.enums === String ? $root.Automator.SkillType[message.skillTypes[j]] === undefined ? message.skillTypes[j] : $root.Automator.SkillType[message.skillTypes[j]] : message.skillTypes[j]; + object.skillTypes[j] = + options.enums === String + ? $root.Automator.SkillType[message.skillTypes[j]] === undefined + ? message.skillTypes[j] + : $root.Automator.SkillType[message.skillTypes[j]] + : message.skillTypes[j]; } if (message.automatorSettingValues && message.automatorSettingValues.length) { object.automatorSettingValues = []; for (let j = 0; j < message.automatorSettingValues.length; ++j) - object.automatorSettingValues[j] = $root.Automator.AutomatorSettingValue.toObject(message.automatorSettingValues[j], options); + object.automatorSettingValues[j] = $root.Automator.AutomatorSettingValue.toObject( + message.automatorSettingValues[j], + options + ); } return object; }; @@ -116429,16 +120395,15 @@ export const Automator = $root.Automator = (() => { */ AdminEditAutomatorRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Automator.AdminEditAutomatorRequest"; + return typeUrlPrefix + '/Automator.AdminEditAutomatorRequest'; }; return AdminEditAutomatorRequest; })(); - Automator.AdminSetupAutomatorRequest = (function() { - + Automator.AdminSetupAutomatorRequest = (function () { /** * Properties of an AdminSetupAutomatorRequest. * @memberof Automator @@ -116457,7 +120422,7 @@ export const Automator = $root.Automator = (() => { * @classdesc Initiate a setup operation with the automator via Keeper. * Step 1 is to request the Automator's ECC public key. Use automatorState = NEEDS_CRYPTO_STEP_1 * Step 2 is to send the ec_enterprise_private_key encrypted with the public key. Use automatorState = NEEDS_CRYPTO_STEP_2 - * + * * Returns AdminSetupAutomatorResponse * @implements IAdminSetupAutomatorRequest * @constructor @@ -116467,8 +120432,7 @@ export const Automator = $root.Automator = (() => { this.skillTypes = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -116477,7 +120441,7 @@ export const Automator = $root.Automator = (() => { * @memberof Automator.AdminSetupAutomatorRequest * @instance */ - AdminSetupAutomatorRequest.prototype.automatorId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + AdminSetupAutomatorRequest.prototype.automatorId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * AdminSetupAutomatorRequest automatorState. @@ -116541,24 +120505,28 @@ export const Automator = $root.Automator = (() => { * @returns {$protobuf.Writer} Writer */ AdminSetupAutomatorRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.automatorId != null && Object.hasOwnProperty.call(message, "automatorId")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.automatorId); - if (message.automatorState != null && Object.hasOwnProperty.call(message, "automatorState")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.automatorState); - if (message.encryptedEccEnterprisePrivateKey != null && Object.hasOwnProperty.call(message, "encryptedEccEnterprisePrivateKey")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.encryptedEccEnterprisePrivateKey); - if (message.encryptedRsaEnterprisePrivateKey != null && Object.hasOwnProperty.call(message, "encryptedRsaEnterprisePrivateKey")) - writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.encryptedRsaEnterprisePrivateKey); + if (!writer) writer = $Writer.create(); + if (message.automatorId != null && Object.hasOwnProperty.call(message, 'automatorId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int64(message.automatorId); + if (message.automatorState != null && Object.hasOwnProperty.call(message, 'automatorState')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int32(message.automatorState); + if ( + message.encryptedEccEnterprisePrivateKey != null && + Object.hasOwnProperty.call(message, 'encryptedEccEnterprisePrivateKey') + ) + writer.uint32(/* id 3, wireType 2 =*/ 26).bytes(message.encryptedEccEnterprisePrivateKey); + if ( + message.encryptedRsaEnterprisePrivateKey != null && + Object.hasOwnProperty.call(message, 'encryptedRsaEnterprisePrivateKey') + ) + writer.uint32(/* id 4, wireType 2 =*/ 34).bytes(message.encryptedRsaEnterprisePrivateKey); if (message.skillTypes != null && message.skillTypes.length) { - writer.uint32(/* id 5, wireType 2 =*/42).fork(); - for (let i = 0; i < message.skillTypes.length; ++i) - writer.int32(message.skillTypes[i]); + writer.uint32(/* id 5, wireType 2 =*/ 42).fork(); + for (let i = 0; i < message.skillTypes.length; ++i) writer.int32(message.skillTypes[i]); writer.ldelim(); } - if (message.encryptedTreeKey != null && Object.hasOwnProperty.call(message, "encryptedTreeKey")) - writer.uint32(/* id 6, wireType 2 =*/50).bytes(message.encryptedTreeKey); + if (message.encryptedTreeKey != null && Object.hasOwnProperty.call(message, 'encryptedTreeKey')) + writer.uint32(/* id 6, wireType 2 =*/ 50).bytes(message.encryptedTreeKey); return writer; }; @@ -116587,46 +120555,43 @@ export const Automator = $root.Automator = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ AdminSetupAutomatorRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Automator.AdminSetupAutomatorRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Automator.AdminSetupAutomatorRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.automatorId = reader.int64(); break; } - case 2: { + case 2: { message.automatorState = reader.int32(); break; } - case 3: { + case 3: { message.encryptedEccEnterprisePrivateKey = reader.bytes(); break; } - case 4: { + case 4: { message.encryptedRsaEnterprisePrivateKey = reader.bytes(); break; } - case 5: { - if (!(message.skillTypes && message.skillTypes.length)) - message.skillTypes = []; + case 5: { + if (!(message.skillTypes && message.skillTypes.length)) message.skillTypes = []; if ((tag & 7) === 2) { let end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.skillTypes.push(reader.int32()); - } else - message.skillTypes.push(reader.int32()); + while (reader.pos < end2) message.skillTypes.push(reader.int32()); + } else message.skillTypes.push(reader.int32()); break; } - case 6: { + case 6: { message.encryptedTreeKey = reader.bytes(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -116643,8 +120608,7 @@ export const Automator = $root.Automator = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ AdminSetupAutomatorRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -116657,46 +120621,74 @@ export const Automator = $root.Automator = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ AdminSetupAutomatorRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.automatorId != null && message.hasOwnProperty("automatorId")) - if (!$util.isInteger(message.automatorId) && !(message.automatorId && $util.isInteger(message.automatorId.low) && $util.isInteger(message.automatorId.high))) - return "automatorId: integer|Long expected"; - if (message.automatorState != null && message.hasOwnProperty("automatorState")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.automatorId != null && message.hasOwnProperty('automatorId')) + if ( + !$util.isInteger(message.automatorId) && + !( + message.automatorId && + $util.isInteger(message.automatorId.low) && + $util.isInteger(message.automatorId.high) + ) + ) + return 'automatorId: integer|Long expected'; + if (message.automatorState != null && message.hasOwnProperty('automatorState')) switch (message.automatorState) { - default: - return "automatorState: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - break; - } - if (message.encryptedEccEnterprisePrivateKey != null && message.hasOwnProperty("encryptedEccEnterprisePrivateKey")) - if (!(message.encryptedEccEnterprisePrivateKey && typeof message.encryptedEccEnterprisePrivateKey.length === "number" || $util.isString(message.encryptedEccEnterprisePrivateKey))) - return "encryptedEccEnterprisePrivateKey: buffer expected"; - if (message.encryptedRsaEnterprisePrivateKey != null && message.hasOwnProperty("encryptedRsaEnterprisePrivateKey")) - if (!(message.encryptedRsaEnterprisePrivateKey && typeof message.encryptedRsaEnterprisePrivateKey.length === "number" || $util.isString(message.encryptedRsaEnterprisePrivateKey))) - return "encryptedRsaEnterprisePrivateKey: buffer expected"; - if (message.skillTypes != null && message.hasOwnProperty("skillTypes")) { - if (!Array.isArray(message.skillTypes)) - return "skillTypes: array expected"; - for (let i = 0; i < message.skillTypes.length; ++i) - switch (message.skillTypes[i]) { default: - return "skillTypes: enum value[] expected"; + return 'automatorState: enum value expected'; case 0: case 1: case 2: case 3: + case 4: + case 5: break; + } + if ( + message.encryptedEccEnterprisePrivateKey != null && + message.hasOwnProperty('encryptedEccEnterprisePrivateKey') + ) + if ( + !( + (message.encryptedEccEnterprisePrivateKey && + typeof message.encryptedEccEnterprisePrivateKey.length === 'number') || + $util.isString(message.encryptedEccEnterprisePrivateKey) + ) + ) + return 'encryptedEccEnterprisePrivateKey: buffer expected'; + if ( + message.encryptedRsaEnterprisePrivateKey != null && + message.hasOwnProperty('encryptedRsaEnterprisePrivateKey') + ) + if ( + !( + (message.encryptedRsaEnterprisePrivateKey && + typeof message.encryptedRsaEnterprisePrivateKey.length === 'number') || + $util.isString(message.encryptedRsaEnterprisePrivateKey) + ) + ) + return 'encryptedRsaEnterprisePrivateKey: buffer expected'; + if (message.skillTypes != null && message.hasOwnProperty('skillTypes')) { + if (!Array.isArray(message.skillTypes)) return 'skillTypes: array expected'; + for (let i = 0; i < message.skillTypes.length; ++i) + switch (message.skillTypes[i]) { + default: + return 'skillTypes: enum value[] expected'; + case 0: + case 1: + case 2: + case 3: + break; } } - if (message.encryptedTreeKey != null && message.hasOwnProperty("encryptedTreeKey")) - if (!(message.encryptedTreeKey && typeof message.encryptedTreeKey.length === "number" || $util.isString(message.encryptedTreeKey))) - return "encryptedTreeKey: buffer expected"; + if (message.encryptedTreeKey != null && message.hasOwnProperty('encryptedTreeKey')) + if ( + !( + (message.encryptedTreeKey && typeof message.encryptedTreeKey.length === 'number') || + $util.isString(message.encryptedTreeKey) + ) + ) + return 'encryptedTreeKey: buffer expected'; return null; }; @@ -116709,94 +120701,108 @@ export const Automator = $root.Automator = (() => { * @returns {Automator.AdminSetupAutomatorRequest} AdminSetupAutomatorRequest */ AdminSetupAutomatorRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Automator.AdminSetupAutomatorRequest) - return object; + if (object instanceof $root.Automator.AdminSetupAutomatorRequest) return object; let message = new $root.Automator.AdminSetupAutomatorRequest(); if (object.automatorId != null) - if ($util.Long) - (message.automatorId = $util.Long.fromValue(object.automatorId)).unsigned = false; - else if (typeof object.automatorId === "string") - message.automatorId = parseInt(object.automatorId, 10); - else if (typeof object.automatorId === "number") - message.automatorId = object.automatorId; - else if (typeof object.automatorId === "object") - message.automatorId = new $util.LongBits(object.automatorId.low >>> 0, object.automatorId.high >>> 0).toNumber(); + if ($util.Long) (message.automatorId = $util.Long.fromValue(object.automatorId)).unsigned = false; + else if (typeof object.automatorId === 'string') message.automatorId = parseInt(object.automatorId, 10); + else if (typeof object.automatorId === 'number') message.automatorId = object.automatorId; + else if (typeof object.automatorId === 'object') + message.automatorId = new $util.LongBits( + object.automatorId.low >>> 0, + object.automatorId.high >>> 0 + ).toNumber(); switch (object.automatorState) { - default: - if (typeof object.automatorState === "number") { - message.automatorState = object.automatorState; - break; - } - break; - case "UNKNOWN_STATE": - case 0: - message.automatorState = 0; - break; - case "RUNNING": - case 1: - message.automatorState = 1; - break; - case "ERROR": - case 2: - message.automatorState = 2; - break; - case "NEEDS_INITIALIZATION": - case 3: - message.automatorState = 3; - break; - case "NEEDS_CRYPTO_STEP_1": - case 4: - message.automatorState = 4; - break; - case "NEEDS_CRYPTO_STEP_2": - case 5: - message.automatorState = 5; - break; + default: + if (typeof object.automatorState === 'number') { + message.automatorState = object.automatorState; + break; + } + break; + case 'UNKNOWN_STATE': + case 0: + message.automatorState = 0; + break; + case 'RUNNING': + case 1: + message.automatorState = 1; + break; + case 'ERROR': + case 2: + message.automatorState = 2; + break; + case 'NEEDS_INITIALIZATION': + case 3: + message.automatorState = 3; + break; + case 'NEEDS_CRYPTO_STEP_1': + case 4: + message.automatorState = 4; + break; + case 'NEEDS_CRYPTO_STEP_2': + case 5: + message.automatorState = 5; + break; } if (object.encryptedEccEnterprisePrivateKey != null) - if (typeof object.encryptedEccEnterprisePrivateKey === "string") - $util.base64.decode(object.encryptedEccEnterprisePrivateKey, message.encryptedEccEnterprisePrivateKey = $util.newBuffer($util.base64.length(object.encryptedEccEnterprisePrivateKey)), 0); + if (typeof object.encryptedEccEnterprisePrivateKey === 'string') + $util.base64.decode( + object.encryptedEccEnterprisePrivateKey, + (message.encryptedEccEnterprisePrivateKey = $util.newBuffer( + $util.base64.length(object.encryptedEccEnterprisePrivateKey) + )), + 0 + ); else if (object.encryptedEccEnterprisePrivateKey.length >= 0) message.encryptedEccEnterprisePrivateKey = object.encryptedEccEnterprisePrivateKey; if (object.encryptedRsaEnterprisePrivateKey != null) - if (typeof object.encryptedRsaEnterprisePrivateKey === "string") - $util.base64.decode(object.encryptedRsaEnterprisePrivateKey, message.encryptedRsaEnterprisePrivateKey = $util.newBuffer($util.base64.length(object.encryptedRsaEnterprisePrivateKey)), 0); + if (typeof object.encryptedRsaEnterprisePrivateKey === 'string') + $util.base64.decode( + object.encryptedRsaEnterprisePrivateKey, + (message.encryptedRsaEnterprisePrivateKey = $util.newBuffer( + $util.base64.length(object.encryptedRsaEnterprisePrivateKey) + )), + 0 + ); else if (object.encryptedRsaEnterprisePrivateKey.length >= 0) message.encryptedRsaEnterprisePrivateKey = object.encryptedRsaEnterprisePrivateKey; if (object.skillTypes) { if (!Array.isArray(object.skillTypes)) - throw TypeError(".Automator.AdminSetupAutomatorRequest.skillTypes: array expected"); + throw TypeError('.Automator.AdminSetupAutomatorRequest.skillTypes: array expected'); message.skillTypes = []; for (let i = 0; i < object.skillTypes.length; ++i) switch (object.skillTypes[i]) { - default: - if (typeof object.skillTypes[i] === "number") { - message.skillTypes[i] = object.skillTypes[i]; + default: + if (typeof object.skillTypes[i] === 'number') { + message.skillTypes[i] = object.skillTypes[i]; + break; + } + case 'UNKNOWN_SKILL_TYPE': + case 0: + message.skillTypes[i] = 0; + break; + case 'DEVICE_APPROVAL': + case 1: + message.skillTypes[i] = 1; + break; + case 'TEAM_APPROVAL': + case 2: + message.skillTypes[i] = 2; + break; + case 'TEAM_FOR_USER_APPROVAL': + case 3: + message.skillTypes[i] = 3; break; - } - case "UNKNOWN_SKILL_TYPE": - case 0: - message.skillTypes[i] = 0; - break; - case "DEVICE_APPROVAL": - case 1: - message.skillTypes[i] = 1; - break; - case "TEAM_APPROVAL": - case 2: - message.skillTypes[i] = 2; - break; - case "TEAM_FOR_USER_APPROVAL": - case 3: - message.skillTypes[i] = 3; - break; } } if (object.encryptedTreeKey != null) - if (typeof object.encryptedTreeKey === "string") - $util.base64.decode(object.encryptedTreeKey, message.encryptedTreeKey = $util.newBuffer($util.base64.length(object.encryptedTreeKey)), 0); - else if (object.encryptedTreeKey.length >= 0) - message.encryptedTreeKey = object.encryptedTreeKey; + if (typeof object.encryptedTreeKey === 'string') + $util.base64.decode( + object.encryptedTreeKey, + (message.encryptedTreeKey = $util.newBuffer($util.base64.length(object.encryptedTreeKey))), + 0 + ); + else if (object.encryptedTreeKey.length >= 0) message.encryptedTreeKey = object.encryptedTreeKey; return message; }; @@ -116810,58 +120816,103 @@ export const Automator = $root.Automator = (() => { * @returns {Object.} Plain object */ AdminSetupAutomatorRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.skillTypes = []; + if (options.arrays || options.defaults) object.skillTypes = []; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.automatorId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.automatorId = options.longs === String ? "0" : 0; - object.automatorState = options.enums === String ? "UNKNOWN_STATE" : 0; - if (options.bytes === String) - object.encryptedEccEnterprisePrivateKey = ""; + object.automatorId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.automatorId = options.longs === String ? '0' : 0; + object.automatorState = options.enums === String ? 'UNKNOWN_STATE' : 0; + if (options.bytes === String) object.encryptedEccEnterprisePrivateKey = ''; else { object.encryptedEccEnterprisePrivateKey = []; if (options.bytes !== Array) - object.encryptedEccEnterprisePrivateKey = $util.newBuffer(object.encryptedEccEnterprisePrivateKey); + object.encryptedEccEnterprisePrivateKey = $util.newBuffer( + object.encryptedEccEnterprisePrivateKey + ); } - if (options.bytes === String) - object.encryptedRsaEnterprisePrivateKey = ""; + if (options.bytes === String) object.encryptedRsaEnterprisePrivateKey = ''; else { object.encryptedRsaEnterprisePrivateKey = []; if (options.bytes !== Array) - object.encryptedRsaEnterprisePrivateKey = $util.newBuffer(object.encryptedRsaEnterprisePrivateKey); + object.encryptedRsaEnterprisePrivateKey = $util.newBuffer( + object.encryptedRsaEnterprisePrivateKey + ); } - if (options.bytes === String) - object.encryptedTreeKey = ""; + if (options.bytes === String) object.encryptedTreeKey = ''; else { object.encryptedTreeKey = []; - if (options.bytes !== Array) - object.encryptedTreeKey = $util.newBuffer(object.encryptedTreeKey); + if (options.bytes !== Array) object.encryptedTreeKey = $util.newBuffer(object.encryptedTreeKey); } } - if (message.automatorId != null && message.hasOwnProperty("automatorId")) - if (typeof message.automatorId === "number") + if (message.automatorId != null && message.hasOwnProperty('automatorId')) + if (typeof message.automatorId === 'number') object.automatorId = options.longs === String ? String(message.automatorId) : message.automatorId; else - object.automatorId = options.longs === String ? $util.Long.prototype.toString.call(message.automatorId) : options.longs === Number ? new $util.LongBits(message.automatorId.low >>> 0, message.automatorId.high >>> 0).toNumber() : message.automatorId; - if (message.automatorState != null && message.hasOwnProperty("automatorState")) - object.automatorState = options.enums === String ? $root.Automator.AutomatorState[message.automatorState] === undefined ? message.automatorState : $root.Automator.AutomatorState[message.automatorState] : message.automatorState; - if (message.encryptedEccEnterprisePrivateKey != null && message.hasOwnProperty("encryptedEccEnterprisePrivateKey")) - object.encryptedEccEnterprisePrivateKey = options.bytes === String ? $util.base64.encode(message.encryptedEccEnterprisePrivateKey, 0, message.encryptedEccEnterprisePrivateKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedEccEnterprisePrivateKey) : message.encryptedEccEnterprisePrivateKey; - if (message.encryptedRsaEnterprisePrivateKey != null && message.hasOwnProperty("encryptedRsaEnterprisePrivateKey")) - object.encryptedRsaEnterprisePrivateKey = options.bytes === String ? $util.base64.encode(message.encryptedRsaEnterprisePrivateKey, 0, message.encryptedRsaEnterprisePrivateKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedRsaEnterprisePrivateKey) : message.encryptedRsaEnterprisePrivateKey; + object.automatorId = + options.longs === String + ? $util.Long.prototype.toString.call(message.automatorId) + : options.longs === Number + ? new $util.LongBits( + message.automatorId.low >>> 0, + message.automatorId.high >>> 0 + ).toNumber() + : message.automatorId; + if (message.automatorState != null && message.hasOwnProperty('automatorState')) + object.automatorState = + options.enums === String + ? $root.Automator.AutomatorState[message.automatorState] === undefined + ? message.automatorState + : $root.Automator.AutomatorState[message.automatorState] + : message.automatorState; + if ( + message.encryptedEccEnterprisePrivateKey != null && + message.hasOwnProperty('encryptedEccEnterprisePrivateKey') + ) + object.encryptedEccEnterprisePrivateKey = + options.bytes === String + ? $util.base64.encode( + message.encryptedEccEnterprisePrivateKey, + 0, + message.encryptedEccEnterprisePrivateKey.length + ) + : options.bytes === Array + ? Array.prototype.slice.call(message.encryptedEccEnterprisePrivateKey) + : message.encryptedEccEnterprisePrivateKey; + if ( + message.encryptedRsaEnterprisePrivateKey != null && + message.hasOwnProperty('encryptedRsaEnterprisePrivateKey') + ) + object.encryptedRsaEnterprisePrivateKey = + options.bytes === String + ? $util.base64.encode( + message.encryptedRsaEnterprisePrivateKey, + 0, + message.encryptedRsaEnterprisePrivateKey.length + ) + : options.bytes === Array + ? Array.prototype.slice.call(message.encryptedRsaEnterprisePrivateKey) + : message.encryptedRsaEnterprisePrivateKey; if (message.skillTypes && message.skillTypes.length) { object.skillTypes = []; for (let j = 0; j < message.skillTypes.length; ++j) - object.skillTypes[j] = options.enums === String ? $root.Automator.SkillType[message.skillTypes[j]] === undefined ? message.skillTypes[j] : $root.Automator.SkillType[message.skillTypes[j]] : message.skillTypes[j]; + object.skillTypes[j] = + options.enums === String + ? $root.Automator.SkillType[message.skillTypes[j]] === undefined + ? message.skillTypes[j] + : $root.Automator.SkillType[message.skillTypes[j]] + : message.skillTypes[j]; } - if (message.encryptedTreeKey != null && message.hasOwnProperty("encryptedTreeKey")) - object.encryptedTreeKey = options.bytes === String ? $util.base64.encode(message.encryptedTreeKey, 0, message.encryptedTreeKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedTreeKey) : message.encryptedTreeKey; + if (message.encryptedTreeKey != null && message.hasOwnProperty('encryptedTreeKey')) + object.encryptedTreeKey = + options.bytes === String + ? $util.base64.encode(message.encryptedTreeKey, 0, message.encryptedTreeKey.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.encryptedTreeKey) + : message.encryptedTreeKey; return object; }; @@ -116886,16 +120937,15 @@ export const Automator = $root.Automator = (() => { */ AdminSetupAutomatorRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Automator.AdminSetupAutomatorRequest"; + return typeUrlPrefix + '/Automator.AdminSetupAutomatorRequest'; }; return AdminSetupAutomatorRequest; })(); - Automator.AdminSetupAutomatorResponse = (function() { - + Automator.AdminSetupAutomatorResponse = (function () { /** * Properties of an AdminSetupAutomatorResponse. * @memberof Automator @@ -116919,8 +120969,7 @@ export const Automator = $root.Automator = (() => { function AdminSetupAutomatorResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -116937,7 +120986,7 @@ export const Automator = $root.Automator = (() => { * @memberof Automator.AdminSetupAutomatorResponse * @instance */ - AdminSetupAutomatorResponse.prototype.message = ""; + AdminSetupAutomatorResponse.prototype.message = ''; /** * AdminSetupAutomatorResponse automatorId. @@ -116945,7 +120994,7 @@ export const Automator = $root.Automator = (() => { * @memberof Automator.AdminSetupAutomatorResponse * @instance */ - AdminSetupAutomatorResponse.prototype.automatorId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + AdminSetupAutomatorResponse.prototype.automatorId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * AdminSetupAutomatorResponse automatorState. @@ -116985,18 +121034,17 @@ export const Automator = $root.Automator = (() => { * @returns {$protobuf.Writer} Writer */ AdminSetupAutomatorResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.success != null && Object.hasOwnProperty.call(message, "success")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.success); - if (message.message != null && Object.hasOwnProperty.call(message, "message")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.message); - if (message.automatorId != null && Object.hasOwnProperty.call(message, "automatorId")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.automatorId); - if (message.automatorState != null && Object.hasOwnProperty.call(message, "automatorState")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.automatorState); - if (message.automatorEccPublicKey != null && Object.hasOwnProperty.call(message, "automatorEccPublicKey")) - writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.automatorEccPublicKey); + if (!writer) writer = $Writer.create(); + if (message.success != null && Object.hasOwnProperty.call(message, 'success')) + writer.uint32(/* id 1, wireType 0 =*/ 8).bool(message.success); + if (message.message != null && Object.hasOwnProperty.call(message, 'message')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.message); + if (message.automatorId != null && Object.hasOwnProperty.call(message, 'automatorId')) + writer.uint32(/* id 3, wireType 0 =*/ 24).int64(message.automatorId); + if (message.automatorState != null && Object.hasOwnProperty.call(message, 'automatorState')) + writer.uint32(/* id 4, wireType 0 =*/ 32).int32(message.automatorState); + if (message.automatorEccPublicKey != null && Object.hasOwnProperty.call(message, 'automatorEccPublicKey')) + writer.uint32(/* id 5, wireType 2 =*/ 42).bytes(message.automatorEccPublicKey); return writer; }; @@ -117025,35 +121073,35 @@ export const Automator = $root.Automator = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ AdminSetupAutomatorResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Automator.AdminSetupAutomatorResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Automator.AdminSetupAutomatorResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.success = reader.bool(); break; } - case 2: { + case 2: { message.message = reader.string(); break; } - case 3: { + case 3: { message.automatorId = reader.int64(); break; } - case 4: { + case 4: { message.automatorState = reader.int32(); break; } - case 5: { + case 5: { message.automatorEccPublicKey = reader.bytes(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -117070,8 +121118,7 @@ export const Automator = $root.Automator = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ AdminSetupAutomatorResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -117084,32 +121131,41 @@ export const Automator = $root.Automator = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ AdminSetupAutomatorResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.success != null && message.hasOwnProperty("success")) - if (typeof message.success !== "boolean") - return "success: boolean expected"; - if (message.message != null && message.hasOwnProperty("message")) - if (!$util.isString(message.message)) - return "message: string expected"; - if (message.automatorId != null && message.hasOwnProperty("automatorId")) - if (!$util.isInteger(message.automatorId) && !(message.automatorId && $util.isInteger(message.automatorId.low) && $util.isInteger(message.automatorId.high))) - return "automatorId: integer|Long expected"; - if (message.automatorState != null && message.hasOwnProperty("automatorState")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.success != null && message.hasOwnProperty('success')) + if (typeof message.success !== 'boolean') return 'success: boolean expected'; + if (message.message != null && message.hasOwnProperty('message')) + if (!$util.isString(message.message)) return 'message: string expected'; + if (message.automatorId != null && message.hasOwnProperty('automatorId')) + if ( + !$util.isInteger(message.automatorId) && + !( + message.automatorId && + $util.isInteger(message.automatorId.low) && + $util.isInteger(message.automatorId.high) + ) + ) + return 'automatorId: integer|Long expected'; + if (message.automatorState != null && message.hasOwnProperty('automatorState')) switch (message.automatorState) { - default: - return "automatorState: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - break; + default: + return 'automatorState: enum value expected'; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + break; } - if (message.automatorEccPublicKey != null && message.hasOwnProperty("automatorEccPublicKey")) - if (!(message.automatorEccPublicKey && typeof message.automatorEccPublicKey.length === "number" || $util.isString(message.automatorEccPublicKey))) - return "automatorEccPublicKey: buffer expected"; + if (message.automatorEccPublicKey != null && message.hasOwnProperty('automatorEccPublicKey')) + if ( + !( + (message.automatorEccPublicKey && typeof message.automatorEccPublicKey.length === 'number') || + $util.isString(message.automatorEccPublicKey) + ) + ) + return 'automatorEccPublicKey: buffer expected'; return null; }; @@ -117122,57 +121178,60 @@ export const Automator = $root.Automator = (() => { * @returns {Automator.AdminSetupAutomatorResponse} AdminSetupAutomatorResponse */ AdminSetupAutomatorResponse.fromObject = function fromObject(object) { - if (object instanceof $root.Automator.AdminSetupAutomatorResponse) - return object; + if (object instanceof $root.Automator.AdminSetupAutomatorResponse) return object; let message = new $root.Automator.AdminSetupAutomatorResponse(); - if (object.success != null) - message.success = Boolean(object.success); - if (object.message != null) - message.message = String(object.message); + if (object.success != null) message.success = Boolean(object.success); + if (object.message != null) message.message = String(object.message); if (object.automatorId != null) - if ($util.Long) - (message.automatorId = $util.Long.fromValue(object.automatorId)).unsigned = false; - else if (typeof object.automatorId === "string") - message.automatorId = parseInt(object.automatorId, 10); - else if (typeof object.automatorId === "number") - message.automatorId = object.automatorId; - else if (typeof object.automatorId === "object") - message.automatorId = new $util.LongBits(object.automatorId.low >>> 0, object.automatorId.high >>> 0).toNumber(); + if ($util.Long) (message.automatorId = $util.Long.fromValue(object.automatorId)).unsigned = false; + else if (typeof object.automatorId === 'string') message.automatorId = parseInt(object.automatorId, 10); + else if (typeof object.automatorId === 'number') message.automatorId = object.automatorId; + else if (typeof object.automatorId === 'object') + message.automatorId = new $util.LongBits( + object.automatorId.low >>> 0, + object.automatorId.high >>> 0 + ).toNumber(); switch (object.automatorState) { - default: - if (typeof object.automatorState === "number") { - message.automatorState = object.automatorState; - break; - } - break; - case "UNKNOWN_STATE": - case 0: - message.automatorState = 0; - break; - case "RUNNING": - case 1: - message.automatorState = 1; - break; - case "ERROR": - case 2: - message.automatorState = 2; - break; - case "NEEDS_INITIALIZATION": - case 3: - message.automatorState = 3; - break; - case "NEEDS_CRYPTO_STEP_1": - case 4: - message.automatorState = 4; - break; - case "NEEDS_CRYPTO_STEP_2": - case 5: - message.automatorState = 5; - break; + default: + if (typeof object.automatorState === 'number') { + message.automatorState = object.automatorState; + break; + } + break; + case 'UNKNOWN_STATE': + case 0: + message.automatorState = 0; + break; + case 'RUNNING': + case 1: + message.automatorState = 1; + break; + case 'ERROR': + case 2: + message.automatorState = 2; + break; + case 'NEEDS_INITIALIZATION': + case 3: + message.automatorState = 3; + break; + case 'NEEDS_CRYPTO_STEP_1': + case 4: + message.automatorState = 4; + break; + case 'NEEDS_CRYPTO_STEP_2': + case 5: + message.automatorState = 5; + break; } if (object.automatorEccPublicKey != null) - if (typeof object.automatorEccPublicKey === "string") - $util.base64.decode(object.automatorEccPublicKey, message.automatorEccPublicKey = $util.newBuffer($util.base64.length(object.automatorEccPublicKey)), 0); + if (typeof object.automatorEccPublicKey === 'string') + $util.base64.decode( + object.automatorEccPublicKey, + (message.automatorEccPublicKey = $util.newBuffer( + $util.base64.length(object.automatorEccPublicKey) + )), + 0 + ); else if (object.automatorEccPublicKey.length >= 0) message.automatorEccPublicKey = object.automatorEccPublicKey; return message; @@ -117188,39 +121247,53 @@ export const Automator = $root.Automator = (() => { * @returns {Object.} Plain object */ AdminSetupAutomatorResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { object.success = false; - object.message = ""; + object.message = ''; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.automatorId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.automatorId = options.longs === String ? "0" : 0; - object.automatorState = options.enums === String ? "UNKNOWN_STATE" : 0; - if (options.bytes === String) - object.automatorEccPublicKey = ""; + object.automatorId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.automatorId = options.longs === String ? '0' : 0; + object.automatorState = options.enums === String ? 'UNKNOWN_STATE' : 0; + if (options.bytes === String) object.automatorEccPublicKey = ''; else { object.automatorEccPublicKey = []; if (options.bytes !== Array) object.automatorEccPublicKey = $util.newBuffer(object.automatorEccPublicKey); } } - if (message.success != null && message.hasOwnProperty("success")) - object.success = message.success; - if (message.message != null && message.hasOwnProperty("message")) - object.message = message.message; - if (message.automatorId != null && message.hasOwnProperty("automatorId")) - if (typeof message.automatorId === "number") + if (message.success != null && message.hasOwnProperty('success')) object.success = message.success; + if (message.message != null && message.hasOwnProperty('message')) object.message = message.message; + if (message.automatorId != null && message.hasOwnProperty('automatorId')) + if (typeof message.automatorId === 'number') object.automatorId = options.longs === String ? String(message.automatorId) : message.automatorId; else - object.automatorId = options.longs === String ? $util.Long.prototype.toString.call(message.automatorId) : options.longs === Number ? new $util.LongBits(message.automatorId.low >>> 0, message.automatorId.high >>> 0).toNumber() : message.automatorId; - if (message.automatorState != null && message.hasOwnProperty("automatorState")) - object.automatorState = options.enums === String ? $root.Automator.AutomatorState[message.automatorState] === undefined ? message.automatorState : $root.Automator.AutomatorState[message.automatorState] : message.automatorState; - if (message.automatorEccPublicKey != null && message.hasOwnProperty("automatorEccPublicKey")) - object.automatorEccPublicKey = options.bytes === String ? $util.base64.encode(message.automatorEccPublicKey, 0, message.automatorEccPublicKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.automatorEccPublicKey) : message.automatorEccPublicKey; + object.automatorId = + options.longs === String + ? $util.Long.prototype.toString.call(message.automatorId) + : options.longs === Number + ? new $util.LongBits( + message.automatorId.low >>> 0, + message.automatorId.high >>> 0 + ).toNumber() + : message.automatorId; + if (message.automatorState != null && message.hasOwnProperty('automatorState')) + object.automatorState = + options.enums === String + ? $root.Automator.AutomatorState[message.automatorState] === undefined + ? message.automatorState + : $root.Automator.AutomatorState[message.automatorState] + : message.automatorState; + if (message.automatorEccPublicKey != null && message.hasOwnProperty('automatorEccPublicKey')) + object.automatorEccPublicKey = + options.bytes === String + ? $util.base64.encode(message.automatorEccPublicKey, 0, message.automatorEccPublicKey.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.automatorEccPublicKey) + : message.automatorEccPublicKey; return object; }; @@ -117245,16 +121318,15 @@ export const Automator = $root.Automator = (() => { */ AdminSetupAutomatorResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Automator.AdminSetupAutomatorResponse"; + return typeUrlPrefix + '/Automator.AdminSetupAutomatorResponse'; }; return AdminSetupAutomatorResponse; })(); - Automator.AdminAutomatorSkillsRequest = (function() { - + Automator.AdminAutomatorSkillsRequest = (function () { /** * Properties of an AdminAutomatorSkillsRequest. * @memberof Automator @@ -117267,7 +121339,7 @@ export const Automator = $root.Automator = (() => { * @memberof Automator * @classdesc Retrieve the list of known skills that Automators can have. * This is NOT the list of skills that a particular Automator has. - * + * * Returns AdminAutomatorSkillsResponse. * @implements IAdminAutomatorSkillsRequest * @constructor @@ -117276,8 +121348,7 @@ export const Automator = $root.Automator = (() => { function AdminAutomatorSkillsRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -117286,7 +121357,7 @@ export const Automator = $root.Automator = (() => { * @memberof Automator.AdminAutomatorSkillsRequest * @instance */ - AdminAutomatorSkillsRequest.prototype.automatorId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + AdminAutomatorSkillsRequest.prototype.automatorId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * Creates a new AdminAutomatorSkillsRequest instance using the specified properties. @@ -117310,10 +121381,9 @@ export const Automator = $root.Automator = (() => { * @returns {$protobuf.Writer} Writer */ AdminAutomatorSkillsRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.automatorId != null && Object.hasOwnProperty.call(message, "automatorId")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.automatorId); + if (!writer) writer = $Writer.create(); + if (message.automatorId != null && Object.hasOwnProperty.call(message, 'automatorId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int64(message.automatorId); return writer; }; @@ -117342,19 +121412,19 @@ export const Automator = $root.Automator = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ AdminAutomatorSkillsRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Automator.AdminAutomatorSkillsRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Automator.AdminAutomatorSkillsRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.automatorId = reader.int64(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -117371,8 +121441,7 @@ export const Automator = $root.Automator = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ AdminAutomatorSkillsRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -117385,11 +121454,17 @@ export const Automator = $root.Automator = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ AdminAutomatorSkillsRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.automatorId != null && message.hasOwnProperty("automatorId")) - if (!$util.isInteger(message.automatorId) && !(message.automatorId && $util.isInteger(message.automatorId.low) && $util.isInteger(message.automatorId.high))) - return "automatorId: integer|Long expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.automatorId != null && message.hasOwnProperty('automatorId')) + if ( + !$util.isInteger(message.automatorId) && + !( + message.automatorId && + $util.isInteger(message.automatorId.low) && + $util.isInteger(message.automatorId.high) + ) + ) + return 'automatorId: integer|Long expected'; return null; }; @@ -117402,18 +121477,17 @@ export const Automator = $root.Automator = (() => { * @returns {Automator.AdminAutomatorSkillsRequest} AdminAutomatorSkillsRequest */ AdminAutomatorSkillsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Automator.AdminAutomatorSkillsRequest) - return object; + if (object instanceof $root.Automator.AdminAutomatorSkillsRequest) return object; let message = new $root.Automator.AdminAutomatorSkillsRequest(); if (object.automatorId != null) - if ($util.Long) - (message.automatorId = $util.Long.fromValue(object.automatorId)).unsigned = false; - else if (typeof object.automatorId === "string") - message.automatorId = parseInt(object.automatorId, 10); - else if (typeof object.automatorId === "number") - message.automatorId = object.automatorId; - else if (typeof object.automatorId === "object") - message.automatorId = new $util.LongBits(object.automatorId.low >>> 0, object.automatorId.high >>> 0).toNumber(); + if ($util.Long) (message.automatorId = $util.Long.fromValue(object.automatorId)).unsigned = false; + else if (typeof object.automatorId === 'string') message.automatorId = parseInt(object.automatorId, 10); + else if (typeof object.automatorId === 'number') message.automatorId = object.automatorId; + else if (typeof object.automatorId === 'object') + message.automatorId = new $util.LongBits( + object.automatorId.low >>> 0, + object.automatorId.high >>> 0 + ).toNumber(); return message; }; @@ -117427,20 +121501,27 @@ export const Automator = $root.Automator = (() => { * @returns {Object.} Plain object */ AdminAutomatorSkillsRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) if ($util.Long) { let long = new $util.Long(0, 0, false); - object.automatorId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.automatorId = options.longs === String ? "0" : 0; - if (message.automatorId != null && message.hasOwnProperty("automatorId")) - if (typeof message.automatorId === "number") + object.automatorId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.automatorId = options.longs === String ? '0' : 0; + if (message.automatorId != null && message.hasOwnProperty('automatorId')) + if (typeof message.automatorId === 'number') object.automatorId = options.longs === String ? String(message.automatorId) : message.automatorId; else - object.automatorId = options.longs === String ? $util.Long.prototype.toString.call(message.automatorId) : options.longs === Number ? new $util.LongBits(message.automatorId.low >>> 0, message.automatorId.high >>> 0).toNumber() : message.automatorId; + object.automatorId = + options.longs === String + ? $util.Long.prototype.toString.call(message.automatorId) + : options.longs === Number + ? new $util.LongBits( + message.automatorId.low >>> 0, + message.automatorId.high >>> 0 + ).toNumber() + : message.automatorId; return object; }; @@ -117465,16 +121546,15 @@ export const Automator = $root.Automator = (() => { */ AdminAutomatorSkillsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Automator.AdminAutomatorSkillsRequest"; + return typeUrlPrefix + '/Automator.AdminAutomatorSkillsRequest'; }; return AdminAutomatorSkillsRequest; })(); - Automator.AutomatorSkill = (function() { - + Automator.AutomatorSkill = (function () { /** * Properties of an AutomatorSkill. * @memberof Automator @@ -117495,8 +121575,7 @@ export const Automator = $root.Automator = (() => { function AutomatorSkill(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -117513,7 +121592,7 @@ export const Automator = $root.Automator = (() => { * @memberof Automator.AutomatorSkill * @instance */ - AutomatorSkill.prototype.name = ""; + AutomatorSkill.prototype.name = ''; /** * AutomatorSkill translatedName. @@ -117521,7 +121600,7 @@ export const Automator = $root.Automator = (() => { * @memberof Automator.AutomatorSkill * @instance */ - AutomatorSkill.prototype.translatedName = ""; + AutomatorSkill.prototype.translatedName = ''; /** * Creates a new AutomatorSkill instance using the specified properties. @@ -117545,14 +121624,13 @@ export const Automator = $root.Automator = (() => { * @returns {$protobuf.Writer} Writer */ AutomatorSkill.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.skillType != null && Object.hasOwnProperty.call(message, "skillType")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.skillType); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.name); - if (message.translatedName != null && Object.hasOwnProperty.call(message, "translatedName")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.translatedName); + if (!writer) writer = $Writer.create(); + if (message.skillType != null && Object.hasOwnProperty.call(message, 'skillType')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int32(message.skillType); + if (message.name != null && Object.hasOwnProperty.call(message, 'name')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.name); + if (message.translatedName != null && Object.hasOwnProperty.call(message, 'translatedName')) + writer.uint32(/* id 3, wireType 2 =*/ 26).string(message.translatedName); return writer; }; @@ -117581,27 +121659,27 @@ export const Automator = $root.Automator = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ AutomatorSkill.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Automator.AutomatorSkill(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Automator.AutomatorSkill(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.skillType = reader.int32(); break; } - case 2: { + case 2: { message.name = reader.string(); break; } - case 3: { + case 3: { message.translatedName = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -117618,8 +121696,7 @@ export const Automator = $root.Automator = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ AutomatorSkill.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -117632,24 +121709,21 @@ export const Automator = $root.Automator = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ AutomatorSkill.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.skillType != null && message.hasOwnProperty("skillType")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.skillType != null && message.hasOwnProperty('skillType')) switch (message.skillType) { - default: - return "skillType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; + default: + return 'skillType: enum value expected'; + case 0: + case 1: + case 2: + case 3: + break; } - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.translatedName != null && message.hasOwnProperty("translatedName")) - if (!$util.isString(message.translatedName)) - return "translatedName: string expected"; + if (message.name != null && message.hasOwnProperty('name')) + if (!$util.isString(message.name)) return 'name: string expected'; + if (message.translatedName != null && message.hasOwnProperty('translatedName')) + if (!$util.isString(message.translatedName)) return 'translatedName: string expected'; return null; }; @@ -117662,37 +121736,34 @@ export const Automator = $root.Automator = (() => { * @returns {Automator.AutomatorSkill} AutomatorSkill */ AutomatorSkill.fromObject = function fromObject(object) { - if (object instanceof $root.Automator.AutomatorSkill) - return object; + if (object instanceof $root.Automator.AutomatorSkill) return object; let message = new $root.Automator.AutomatorSkill(); switch (object.skillType) { - default: - if (typeof object.skillType === "number") { - message.skillType = object.skillType; - break; - } - break; - case "UNKNOWN_SKILL_TYPE": - case 0: - message.skillType = 0; - break; - case "DEVICE_APPROVAL": - case 1: - message.skillType = 1; - break; - case "TEAM_APPROVAL": - case 2: - message.skillType = 2; - break; - case "TEAM_FOR_USER_APPROVAL": - case 3: - message.skillType = 3; - break; + default: + if (typeof object.skillType === 'number') { + message.skillType = object.skillType; + break; + } + break; + case 'UNKNOWN_SKILL_TYPE': + case 0: + message.skillType = 0; + break; + case 'DEVICE_APPROVAL': + case 1: + message.skillType = 1; + break; + case 'TEAM_APPROVAL': + case 2: + message.skillType = 2; + break; + case 'TEAM_FOR_USER_APPROVAL': + case 3: + message.skillType = 3; + break; } - if (object.name != null) - message.name = String(object.name); - if (object.translatedName != null) - message.translatedName = String(object.translatedName); + if (object.name != null) message.name = String(object.name); + if (object.translatedName != null) message.translatedName = String(object.translatedName); return message; }; @@ -117706,19 +121777,22 @@ export const Automator = $root.Automator = (() => { * @returns {Object.} Plain object */ AutomatorSkill.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - object.skillType = options.enums === String ? "UNKNOWN_SKILL_TYPE" : 0; - object.name = ""; - object.translatedName = ""; - } - if (message.skillType != null && message.hasOwnProperty("skillType")) - object.skillType = options.enums === String ? $root.Automator.SkillType[message.skillType] === undefined ? message.skillType : $root.Automator.SkillType[message.skillType] : message.skillType; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.translatedName != null && message.hasOwnProperty("translatedName")) + if (!options) options = {}; + let object = {}; + if (options.defaults) { + object.skillType = options.enums === String ? 'UNKNOWN_SKILL_TYPE' : 0; + object.name = ''; + object.translatedName = ''; + } + if (message.skillType != null && message.hasOwnProperty('skillType')) + object.skillType = + options.enums === String + ? $root.Automator.SkillType[message.skillType] === undefined + ? message.skillType + : $root.Automator.SkillType[message.skillType] + : message.skillType; + if (message.name != null && message.hasOwnProperty('name')) object.name = message.name; + if (message.translatedName != null && message.hasOwnProperty('translatedName')) object.translatedName = message.translatedName; return object; }; @@ -117744,16 +121818,15 @@ export const Automator = $root.Automator = (() => { */ AutomatorSkill.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Automator.AutomatorSkill"; + return typeUrlPrefix + '/Automator.AutomatorSkill'; }; return AutomatorSkill; })(); - Automator.AdminAutomatorSkillsResponse = (function() { - + Automator.AdminAutomatorSkillsResponse = (function () { /** * Properties of an AdminAutomatorSkillsResponse. * @memberof Automator @@ -117775,8 +121848,7 @@ export const Automator = $root.Automator = (() => { this.automatorSkills = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -117793,7 +121865,7 @@ export const Automator = $root.Automator = (() => { * @memberof Automator.AdminAutomatorSkillsResponse * @instance */ - AdminAutomatorSkillsResponse.prototype.message = ""; + AdminAutomatorSkillsResponse.prototype.message = ''; /** * AdminAutomatorSkillsResponse automatorSkills. @@ -117825,15 +121897,17 @@ export const Automator = $root.Automator = (() => { * @returns {$protobuf.Writer} Writer */ AdminAutomatorSkillsResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.success != null && Object.hasOwnProperty.call(message, "success")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.success); - if (message.message != null && Object.hasOwnProperty.call(message, "message")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.message); + if (!writer) writer = $Writer.create(); + if (message.success != null && Object.hasOwnProperty.call(message, 'success')) + writer.uint32(/* id 1, wireType 0 =*/ 8).bool(message.success); + if (message.message != null && Object.hasOwnProperty.call(message, 'message')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.message); if (message.automatorSkills != null && message.automatorSkills.length) for (let i = 0; i < message.automatorSkills.length; ++i) - $root.Automator.AutomatorSkill.encode(message.automatorSkills[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + $root.Automator.AutomatorSkill.encode( + message.automatorSkills[i], + writer.uint32(/* id 3, wireType 2 =*/ 26).fork() + ).ldelim(); return writer; }; @@ -117862,29 +121936,28 @@ export const Automator = $root.Automator = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ AdminAutomatorSkillsResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Automator.AdminAutomatorSkillsResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Automator.AdminAutomatorSkillsResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.success = reader.bool(); break; } - case 2: { + case 2: { message.message = reader.string(); break; } - case 3: { - if (!(message.automatorSkills && message.automatorSkills.length)) - message.automatorSkills = []; + case 3: { + if (!(message.automatorSkills && message.automatorSkills.length)) message.automatorSkills = []; message.automatorSkills.push($root.Automator.AutomatorSkill.decode(reader, reader.uint32())); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -117901,8 +121974,7 @@ export const Automator = $root.Automator = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ AdminAutomatorSkillsResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -117915,21 +121987,16 @@ export const Automator = $root.Automator = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ AdminAutomatorSkillsResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.success != null && message.hasOwnProperty("success")) - if (typeof message.success !== "boolean") - return "success: boolean expected"; - if (message.message != null && message.hasOwnProperty("message")) - if (!$util.isString(message.message)) - return "message: string expected"; - if (message.automatorSkills != null && message.hasOwnProperty("automatorSkills")) { - if (!Array.isArray(message.automatorSkills)) - return "automatorSkills: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.success != null && message.hasOwnProperty('success')) + if (typeof message.success !== 'boolean') return 'success: boolean expected'; + if (message.message != null && message.hasOwnProperty('message')) + if (!$util.isString(message.message)) return 'message: string expected'; + if (message.automatorSkills != null && message.hasOwnProperty('automatorSkills')) { + if (!Array.isArray(message.automatorSkills)) return 'automatorSkills: array expected'; for (let i = 0; i < message.automatorSkills.length; ++i) { let error = $root.Automator.AutomatorSkill.verify(message.automatorSkills[i]); - if (error) - return "automatorSkills." + error; + if (error) return 'automatorSkills.' + error; } } return null; @@ -117944,20 +122011,17 @@ export const Automator = $root.Automator = (() => { * @returns {Automator.AdminAutomatorSkillsResponse} AdminAutomatorSkillsResponse */ AdminAutomatorSkillsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.Automator.AdminAutomatorSkillsResponse) - return object; + if (object instanceof $root.Automator.AdminAutomatorSkillsResponse) return object; let message = new $root.Automator.AdminAutomatorSkillsResponse(); - if (object.success != null) - message.success = Boolean(object.success); - if (object.message != null) - message.message = String(object.message); + if (object.success != null) message.success = Boolean(object.success); + if (object.message != null) message.message = String(object.message); if (object.automatorSkills) { if (!Array.isArray(object.automatorSkills)) - throw TypeError(".Automator.AdminAutomatorSkillsResponse.automatorSkills: array expected"); + throw TypeError('.Automator.AdminAutomatorSkillsResponse.automatorSkills: array expected'); message.automatorSkills = []; for (let i = 0; i < object.automatorSkills.length; ++i) { - if (typeof object.automatorSkills[i] !== "object") - throw TypeError(".Automator.AdminAutomatorSkillsResponse.automatorSkills: object expected"); + if (typeof object.automatorSkills[i] !== 'object') + throw TypeError('.Automator.AdminAutomatorSkillsResponse.automatorSkills: object expected'); message.automatorSkills[i] = $root.Automator.AutomatorSkill.fromObject(object.automatorSkills[i]); } } @@ -117974,23 +122038,22 @@ export const Automator = $root.Automator = (() => { * @returns {Object.} Plain object */ AdminAutomatorSkillsResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.automatorSkills = []; + if (options.arrays || options.defaults) object.automatorSkills = []; if (options.defaults) { object.success = false; - object.message = ""; + object.message = ''; } - if (message.success != null && message.hasOwnProperty("success")) - object.success = message.success; - if (message.message != null && message.hasOwnProperty("message")) - object.message = message.message; + if (message.success != null && message.hasOwnProperty('success')) object.success = message.success; + if (message.message != null && message.hasOwnProperty('message')) object.message = message.message; if (message.automatorSkills && message.automatorSkills.length) { object.automatorSkills = []; for (let j = 0; j < message.automatorSkills.length; ++j) - object.automatorSkills[j] = $root.Automator.AutomatorSkill.toObject(message.automatorSkills[j], options); + object.automatorSkills[j] = $root.Automator.AutomatorSkill.toObject( + message.automatorSkills[j], + options + ); } return object; }; @@ -118016,16 +122079,15 @@ export const Automator = $root.Automator = (() => { */ AdminAutomatorSkillsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Automator.AdminAutomatorSkillsResponse"; + return typeUrlPrefix + '/Automator.AdminAutomatorSkillsResponse'; }; return AdminAutomatorSkillsResponse; })(); - Automator.AdminResetAutomatorRequest = (function() { - + Automator.AdminResetAutomatorRequest = (function () { /** * Properties of an AdminResetAutomatorRequest. * @memberof Automator @@ -118037,9 +122099,9 @@ export const Automator = $root.Automator = (() => { * Constructs a new AdminResetAutomatorRequest. * @memberof Automator * @classdesc Sends a message to an Automator to reset all of its settings so that it can be re-initialized. - * + * * We don't want this in the Console - just in Commander, or for use in testing. - * + * * Returns AdminResponse * @implements IAdminResetAutomatorRequest * @constructor @@ -118048,8 +122110,7 @@ export const Automator = $root.Automator = (() => { function AdminResetAutomatorRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -118058,7 +122119,7 @@ export const Automator = $root.Automator = (() => { * @memberof Automator.AdminResetAutomatorRequest * @instance */ - AdminResetAutomatorRequest.prototype.automatorId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + AdminResetAutomatorRequest.prototype.automatorId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * Creates a new AdminResetAutomatorRequest instance using the specified properties. @@ -118082,10 +122143,9 @@ export const Automator = $root.Automator = (() => { * @returns {$protobuf.Writer} Writer */ AdminResetAutomatorRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.automatorId != null && Object.hasOwnProperty.call(message, "automatorId")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.automatorId); + if (!writer) writer = $Writer.create(); + if (message.automatorId != null && Object.hasOwnProperty.call(message, 'automatorId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int64(message.automatorId); return writer; }; @@ -118114,19 +122174,19 @@ export const Automator = $root.Automator = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ AdminResetAutomatorRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Automator.AdminResetAutomatorRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Automator.AdminResetAutomatorRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.automatorId = reader.int64(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -118143,8 +122203,7 @@ export const Automator = $root.Automator = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ AdminResetAutomatorRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -118157,11 +122216,17 @@ export const Automator = $root.Automator = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ AdminResetAutomatorRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.automatorId != null && message.hasOwnProperty("automatorId")) - if (!$util.isInteger(message.automatorId) && !(message.automatorId && $util.isInteger(message.automatorId.low) && $util.isInteger(message.automatorId.high))) - return "automatorId: integer|Long expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.automatorId != null && message.hasOwnProperty('automatorId')) + if ( + !$util.isInteger(message.automatorId) && + !( + message.automatorId && + $util.isInteger(message.automatorId.low) && + $util.isInteger(message.automatorId.high) + ) + ) + return 'automatorId: integer|Long expected'; return null; }; @@ -118174,18 +122239,17 @@ export const Automator = $root.Automator = (() => { * @returns {Automator.AdminResetAutomatorRequest} AdminResetAutomatorRequest */ AdminResetAutomatorRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Automator.AdminResetAutomatorRequest) - return object; + if (object instanceof $root.Automator.AdminResetAutomatorRequest) return object; let message = new $root.Automator.AdminResetAutomatorRequest(); if (object.automatorId != null) - if ($util.Long) - (message.automatorId = $util.Long.fromValue(object.automatorId)).unsigned = false; - else if (typeof object.automatorId === "string") - message.automatorId = parseInt(object.automatorId, 10); - else if (typeof object.automatorId === "number") - message.automatorId = object.automatorId; - else if (typeof object.automatorId === "object") - message.automatorId = new $util.LongBits(object.automatorId.low >>> 0, object.automatorId.high >>> 0).toNumber(); + if ($util.Long) (message.automatorId = $util.Long.fromValue(object.automatorId)).unsigned = false; + else if (typeof object.automatorId === 'string') message.automatorId = parseInt(object.automatorId, 10); + else if (typeof object.automatorId === 'number') message.automatorId = object.automatorId; + else if (typeof object.automatorId === 'object') + message.automatorId = new $util.LongBits( + object.automatorId.low >>> 0, + object.automatorId.high >>> 0 + ).toNumber(); return message; }; @@ -118199,20 +122263,27 @@ export const Automator = $root.Automator = (() => { * @returns {Object.} Plain object */ AdminResetAutomatorRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) if ($util.Long) { let long = new $util.Long(0, 0, false); - object.automatorId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.automatorId = options.longs === String ? "0" : 0; - if (message.automatorId != null && message.hasOwnProperty("automatorId")) - if (typeof message.automatorId === "number") + object.automatorId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.automatorId = options.longs === String ? '0' : 0; + if (message.automatorId != null && message.hasOwnProperty('automatorId')) + if (typeof message.automatorId === 'number') object.automatorId = options.longs === String ? String(message.automatorId) : message.automatorId; else - object.automatorId = options.longs === String ? $util.Long.prototype.toString.call(message.automatorId) : options.longs === Number ? new $util.LongBits(message.automatorId.low >>> 0, message.automatorId.high >>> 0).toNumber() : message.automatorId; + object.automatorId = + options.longs === String + ? $util.Long.prototype.toString.call(message.automatorId) + : options.longs === Number + ? new $util.LongBits( + message.automatorId.low >>> 0, + message.automatorId.high >>> 0 + ).toNumber() + : message.automatorId; return object; }; @@ -118237,16 +122308,15 @@ export const Automator = $root.Automator = (() => { */ AdminResetAutomatorRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Automator.AdminResetAutomatorRequest"; + return typeUrlPrefix + '/Automator.AdminResetAutomatorRequest'; }; return AdminResetAutomatorRequest; })(); - Automator.AdminInitializeAutomatorRequest = (function() { - + Automator.AdminInitializeAutomatorRequest = (function () { /** * Properties of an AdminInitializeAutomatorRequest. * @memberof Automator @@ -118259,7 +122329,7 @@ export const Automator = $root.Automator = (() => { * @memberof Automator * @classdesc Sends configuration settings to an Automator. * Call this after AdminAutomatorEdit to send the new settings to the Automator. - * + * * Returns AdminResponse * @implements IAdminInitializeAutomatorRequest * @constructor @@ -118268,8 +122338,7 @@ export const Automator = $root.Automator = (() => { function AdminInitializeAutomatorRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -118278,7 +122347,7 @@ export const Automator = $root.Automator = (() => { * @memberof Automator.AdminInitializeAutomatorRequest * @instance */ - AdminInitializeAutomatorRequest.prototype.automatorId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + AdminInitializeAutomatorRequest.prototype.automatorId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * Creates a new AdminInitializeAutomatorRequest instance using the specified properties. @@ -118302,10 +122371,9 @@ export const Automator = $root.Automator = (() => { * @returns {$protobuf.Writer} Writer */ AdminInitializeAutomatorRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.automatorId != null && Object.hasOwnProperty.call(message, "automatorId")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.automatorId); + if (!writer) writer = $Writer.create(); + if (message.automatorId != null && Object.hasOwnProperty.call(message, 'automatorId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int64(message.automatorId); return writer; }; @@ -118334,19 +122402,19 @@ export const Automator = $root.Automator = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ AdminInitializeAutomatorRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Automator.AdminInitializeAutomatorRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Automator.AdminInitializeAutomatorRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.automatorId = reader.int64(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -118363,8 +122431,7 @@ export const Automator = $root.Automator = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ AdminInitializeAutomatorRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -118377,11 +122444,17 @@ export const Automator = $root.Automator = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ AdminInitializeAutomatorRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.automatorId != null && message.hasOwnProperty("automatorId")) - if (!$util.isInteger(message.automatorId) && !(message.automatorId && $util.isInteger(message.automatorId.low) && $util.isInteger(message.automatorId.high))) - return "automatorId: integer|Long expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.automatorId != null && message.hasOwnProperty('automatorId')) + if ( + !$util.isInteger(message.automatorId) && + !( + message.automatorId && + $util.isInteger(message.automatorId.low) && + $util.isInteger(message.automatorId.high) + ) + ) + return 'automatorId: integer|Long expected'; return null; }; @@ -118394,18 +122467,17 @@ export const Automator = $root.Automator = (() => { * @returns {Automator.AdminInitializeAutomatorRequest} AdminInitializeAutomatorRequest */ AdminInitializeAutomatorRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Automator.AdminInitializeAutomatorRequest) - return object; + if (object instanceof $root.Automator.AdminInitializeAutomatorRequest) return object; let message = new $root.Automator.AdminInitializeAutomatorRequest(); if (object.automatorId != null) - if ($util.Long) - (message.automatorId = $util.Long.fromValue(object.automatorId)).unsigned = false; - else if (typeof object.automatorId === "string") - message.automatorId = parseInt(object.automatorId, 10); - else if (typeof object.automatorId === "number") - message.automatorId = object.automatorId; - else if (typeof object.automatorId === "object") - message.automatorId = new $util.LongBits(object.automatorId.low >>> 0, object.automatorId.high >>> 0).toNumber(); + if ($util.Long) (message.automatorId = $util.Long.fromValue(object.automatorId)).unsigned = false; + else if (typeof object.automatorId === 'string') message.automatorId = parseInt(object.automatorId, 10); + else if (typeof object.automatorId === 'number') message.automatorId = object.automatorId; + else if (typeof object.automatorId === 'object') + message.automatorId = new $util.LongBits( + object.automatorId.low >>> 0, + object.automatorId.high >>> 0 + ).toNumber(); return message; }; @@ -118419,20 +122491,27 @@ export const Automator = $root.Automator = (() => { * @returns {Object.} Plain object */ AdminInitializeAutomatorRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) if ($util.Long) { let long = new $util.Long(0, 0, false); - object.automatorId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.automatorId = options.longs === String ? "0" : 0; - if (message.automatorId != null && message.hasOwnProperty("automatorId")) - if (typeof message.automatorId === "number") + object.automatorId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.automatorId = options.longs === String ? '0' : 0; + if (message.automatorId != null && message.hasOwnProperty('automatorId')) + if (typeof message.automatorId === 'number') object.automatorId = options.longs === String ? String(message.automatorId) : message.automatorId; else - object.automatorId = options.longs === String ? $util.Long.prototype.toString.call(message.automatorId) : options.longs === Number ? new $util.LongBits(message.automatorId.low >>> 0, message.automatorId.high >>> 0).toNumber() : message.automatorId; + object.automatorId = + options.longs === String + ? $util.Long.prototype.toString.call(message.automatorId) + : options.longs === Number + ? new $util.LongBits( + message.automatorId.low >>> 0, + message.automatorId.high >>> 0 + ).toNumber() + : message.automatorId; return object; }; @@ -118457,16 +122536,15 @@ export const Automator = $root.Automator = (() => { */ AdminInitializeAutomatorRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Automator.AdminInitializeAutomatorRequest"; + return typeUrlPrefix + '/Automator.AdminInitializeAutomatorRequest'; }; return AdminInitializeAutomatorRequest; })(); - Automator.AdminAutomatorLogRequest = (function() { - + Automator.AdminAutomatorLogRequest = (function () { /** * Properties of an AdminAutomatorLogRequest. * @memberof Automator @@ -118478,10 +122556,10 @@ export const Automator = $root.Automator = (() => { * Constructs a new AdminAutomatorLogRequest. * @memberof Automator * @classdesc AdminAutomatorLogRequest - * + * * Retrieves the internal log entries of Keeper that relate to the given Automator instance. * It does not contact the remote Automator. - * + * * Returns AdminResponse * @implements IAdminAutomatorLogRequest * @constructor @@ -118490,8 +122568,7 @@ export const Automator = $root.Automator = (() => { function AdminAutomatorLogRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -118500,7 +122577,7 @@ export const Automator = $root.Automator = (() => { * @memberof Automator.AdminAutomatorLogRequest * @instance */ - AdminAutomatorLogRequest.prototype.automatorId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + AdminAutomatorLogRequest.prototype.automatorId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * Creates a new AdminAutomatorLogRequest instance using the specified properties. @@ -118524,10 +122601,9 @@ export const Automator = $root.Automator = (() => { * @returns {$protobuf.Writer} Writer */ AdminAutomatorLogRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.automatorId != null && Object.hasOwnProperty.call(message, "automatorId")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.automatorId); + if (!writer) writer = $Writer.create(); + if (message.automatorId != null && Object.hasOwnProperty.call(message, 'automatorId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int64(message.automatorId); return writer; }; @@ -118556,19 +122632,19 @@ export const Automator = $root.Automator = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ AdminAutomatorLogRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Automator.AdminAutomatorLogRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Automator.AdminAutomatorLogRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.automatorId = reader.int64(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -118585,8 +122661,7 @@ export const Automator = $root.Automator = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ AdminAutomatorLogRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -118599,11 +122674,17 @@ export const Automator = $root.Automator = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ AdminAutomatorLogRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.automatorId != null && message.hasOwnProperty("automatorId")) - if (!$util.isInteger(message.automatorId) && !(message.automatorId && $util.isInteger(message.automatorId.low) && $util.isInteger(message.automatorId.high))) - return "automatorId: integer|Long expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.automatorId != null && message.hasOwnProperty('automatorId')) + if ( + !$util.isInteger(message.automatorId) && + !( + message.automatorId && + $util.isInteger(message.automatorId.low) && + $util.isInteger(message.automatorId.high) + ) + ) + return 'automatorId: integer|Long expected'; return null; }; @@ -118616,18 +122697,17 @@ export const Automator = $root.Automator = (() => { * @returns {Automator.AdminAutomatorLogRequest} AdminAutomatorLogRequest */ AdminAutomatorLogRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Automator.AdminAutomatorLogRequest) - return object; + if (object instanceof $root.Automator.AdminAutomatorLogRequest) return object; let message = new $root.Automator.AdminAutomatorLogRequest(); if (object.automatorId != null) - if ($util.Long) - (message.automatorId = $util.Long.fromValue(object.automatorId)).unsigned = false; - else if (typeof object.automatorId === "string") - message.automatorId = parseInt(object.automatorId, 10); - else if (typeof object.automatorId === "number") - message.automatorId = object.automatorId; - else if (typeof object.automatorId === "object") - message.automatorId = new $util.LongBits(object.automatorId.low >>> 0, object.automatorId.high >>> 0).toNumber(); + if ($util.Long) (message.automatorId = $util.Long.fromValue(object.automatorId)).unsigned = false; + else if (typeof object.automatorId === 'string') message.automatorId = parseInt(object.automatorId, 10); + else if (typeof object.automatorId === 'number') message.automatorId = object.automatorId; + else if (typeof object.automatorId === 'object') + message.automatorId = new $util.LongBits( + object.automatorId.low >>> 0, + object.automatorId.high >>> 0 + ).toNumber(); return message; }; @@ -118641,20 +122721,27 @@ export const Automator = $root.Automator = (() => { * @returns {Object.} Plain object */ AdminAutomatorLogRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) if ($util.Long) { let long = new $util.Long(0, 0, false); - object.automatorId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.automatorId = options.longs === String ? "0" : 0; - if (message.automatorId != null && message.hasOwnProperty("automatorId")) - if (typeof message.automatorId === "number") + object.automatorId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.automatorId = options.longs === String ? '0' : 0; + if (message.automatorId != null && message.hasOwnProperty('automatorId')) + if (typeof message.automatorId === 'number') object.automatorId = options.longs === String ? String(message.automatorId) : message.automatorId; else - object.automatorId = options.longs === String ? $util.Long.prototype.toString.call(message.automatorId) : options.longs === Number ? new $util.LongBits(message.automatorId.low >>> 0, message.automatorId.high >>> 0).toNumber() : message.automatorId; + object.automatorId = + options.longs === String + ? $util.Long.prototype.toString.call(message.automatorId) + : options.longs === Number + ? new $util.LongBits( + message.automatorId.low >>> 0, + message.automatorId.high >>> 0 + ).toNumber() + : message.automatorId; return object; }; @@ -118679,16 +122766,15 @@ export const Automator = $root.Automator = (() => { */ AdminAutomatorLogRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Automator.AdminAutomatorLogRequest"; + return typeUrlPrefix + '/Automator.AdminAutomatorLogRequest'; }; return AdminAutomatorLogRequest; })(); - Automator.AdminAutomatorLogClearRequest = (function() { - + Automator.AdminAutomatorLogClearRequest = (function () { /** * Properties of an AdminAutomatorLogClearRequest. * @memberof Automator @@ -118700,10 +122786,10 @@ export const Automator = $root.Automator = (() => { * Constructs a new AdminAutomatorLogClearRequest. * @memberof Automator * @classdesc AdminAutomatorLogClearRequest - * + * * Clears the internal log entries of Keeper that relate to the given Automator instance. * It does not contact the remote Automator. - * + * * Returns AdminResponse * @implements IAdminAutomatorLogClearRequest * @constructor @@ -118712,8 +122798,7 @@ export const Automator = $root.Automator = (() => { function AdminAutomatorLogClearRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -118722,7 +122807,7 @@ export const Automator = $root.Automator = (() => { * @memberof Automator.AdminAutomatorLogClearRequest * @instance */ - AdminAutomatorLogClearRequest.prototype.automatorId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + AdminAutomatorLogClearRequest.prototype.automatorId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * Creates a new AdminAutomatorLogClearRequest instance using the specified properties. @@ -118746,10 +122831,9 @@ export const Automator = $root.Automator = (() => { * @returns {$protobuf.Writer} Writer */ AdminAutomatorLogClearRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.automatorId != null && Object.hasOwnProperty.call(message, "automatorId")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.automatorId); + if (!writer) writer = $Writer.create(); + if (message.automatorId != null && Object.hasOwnProperty.call(message, 'automatorId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int64(message.automatorId); return writer; }; @@ -118778,19 +122862,19 @@ export const Automator = $root.Automator = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ AdminAutomatorLogClearRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Automator.AdminAutomatorLogClearRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Automator.AdminAutomatorLogClearRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.automatorId = reader.int64(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -118807,8 +122891,7 @@ export const Automator = $root.Automator = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ AdminAutomatorLogClearRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -118821,11 +122904,17 @@ export const Automator = $root.Automator = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ AdminAutomatorLogClearRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.automatorId != null && message.hasOwnProperty("automatorId")) - if (!$util.isInteger(message.automatorId) && !(message.automatorId && $util.isInteger(message.automatorId.low) && $util.isInteger(message.automatorId.high))) - return "automatorId: integer|Long expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.automatorId != null && message.hasOwnProperty('automatorId')) + if ( + !$util.isInteger(message.automatorId) && + !( + message.automatorId && + $util.isInteger(message.automatorId.low) && + $util.isInteger(message.automatorId.high) + ) + ) + return 'automatorId: integer|Long expected'; return null; }; @@ -118838,18 +122927,17 @@ export const Automator = $root.Automator = (() => { * @returns {Automator.AdminAutomatorLogClearRequest} AdminAutomatorLogClearRequest */ AdminAutomatorLogClearRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Automator.AdminAutomatorLogClearRequest) - return object; + if (object instanceof $root.Automator.AdminAutomatorLogClearRequest) return object; let message = new $root.Automator.AdminAutomatorLogClearRequest(); if (object.automatorId != null) - if ($util.Long) - (message.automatorId = $util.Long.fromValue(object.automatorId)).unsigned = false; - else if (typeof object.automatorId === "string") - message.automatorId = parseInt(object.automatorId, 10); - else if (typeof object.automatorId === "number") - message.automatorId = object.automatorId; - else if (typeof object.automatorId === "object") - message.automatorId = new $util.LongBits(object.automatorId.low >>> 0, object.automatorId.high >>> 0).toNumber(); + if ($util.Long) (message.automatorId = $util.Long.fromValue(object.automatorId)).unsigned = false; + else if (typeof object.automatorId === 'string') message.automatorId = parseInt(object.automatorId, 10); + else if (typeof object.automatorId === 'number') message.automatorId = object.automatorId; + else if (typeof object.automatorId === 'object') + message.automatorId = new $util.LongBits( + object.automatorId.low >>> 0, + object.automatorId.high >>> 0 + ).toNumber(); return message; }; @@ -118863,20 +122951,27 @@ export const Automator = $root.Automator = (() => { * @returns {Object.} Plain object */ AdminAutomatorLogClearRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) if ($util.Long) { let long = new $util.Long(0, 0, false); - object.automatorId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.automatorId = options.longs === String ? "0" : 0; - if (message.automatorId != null && message.hasOwnProperty("automatorId")) - if (typeof message.automatorId === "number") + object.automatorId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.automatorId = options.longs === String ? '0' : 0; + if (message.automatorId != null && message.hasOwnProperty('automatorId')) + if (typeof message.automatorId === 'number') object.automatorId = options.longs === String ? String(message.automatorId) : message.automatorId; else - object.automatorId = options.longs === String ? $util.Long.prototype.toString.call(message.automatorId) : options.longs === Number ? new $util.LongBits(message.automatorId.low >>> 0, message.automatorId.high >>> 0).toNumber() : message.automatorId; + object.automatorId = + options.longs === String + ? $util.Long.prototype.toString.call(message.automatorId) + : options.longs === Number + ? new $util.LongBits( + message.automatorId.low >>> 0, + message.automatorId.high >>> 0 + ).toNumber() + : message.automatorId; return object; }; @@ -118901,16 +122996,15 @@ export const Automator = $root.Automator = (() => { */ AdminAutomatorLogClearRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Automator.AdminAutomatorLogClearRequest"; + return typeUrlPrefix + '/Automator.AdminAutomatorLogClearRequest'; }; return AdminAutomatorLogClearRequest; })(); - Automator.ApproveTeamsForUserRequest = (function() { - + Automator.ApproveTeamsForUserRequest = (function () { /** * Properties of an ApproveTeamsForUserRequest. * @memberof Automator @@ -118932,9 +123026,9 @@ export const Automator = $root.Automator = (() => { * Constructs a new ApproveTeamsForUserRequest. * @memberof Automator * @classdesc ApproveTeamsForUserRequest - * + * * A message from Keeper to Automator asking for approval to add a user to one or more teams. - * + * * @return an AutomatorResponse containing an ApproveTeamsForUserResponse * @implements IApproveTeamsForUserRequest * @constructor @@ -118944,8 +123038,7 @@ export const Automator = $root.Automator = (() => { this.teamDescription = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -118954,7 +123047,7 @@ export const Automator = $root.Automator = (() => { * @memberof Automator.ApproveTeamsForUserRequest * @instance */ - ApproveTeamsForUserRequest.prototype.automatorId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + ApproveTeamsForUserRequest.prototype.automatorId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * ApproveTeamsForUserRequest ssoAuthenticationProtocolType. @@ -118970,7 +123063,7 @@ export const Automator = $root.Automator = (() => { * @memberof Automator.ApproveTeamsForUserRequest * @instance */ - ApproveTeamsForUserRequest.prototype.authMessage = ""; + ApproveTeamsForUserRequest.prototype.authMessage = ''; /** * ApproveTeamsForUserRequest email. @@ -118978,7 +123071,7 @@ export const Automator = $root.Automator = (() => { * @memberof Automator.ApproveTeamsForUserRequest * @instance */ - ApproveTeamsForUserRequest.prototype.email = ""; + ApproveTeamsForUserRequest.prototype.email = ''; /** * ApproveTeamsForUserRequest serverEccPublicKeyId. @@ -118994,7 +123087,7 @@ export const Automator = $root.Automator = (() => { * @memberof Automator.ApproveTeamsForUserRequest * @instance */ - ApproveTeamsForUserRequest.prototype.ipAddress = ""; + ApproveTeamsForUserRequest.prototype.ipAddress = ''; /** * ApproveTeamsForUserRequest userPublicKey. @@ -119058,31 +123151,36 @@ export const Automator = $root.Automator = (() => { * @returns {$protobuf.Writer} Writer */ ApproveTeamsForUserRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.automatorId != null && Object.hasOwnProperty.call(message, "automatorId")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.automatorId); - if (message.ssoAuthenticationProtocolType != null && Object.hasOwnProperty.call(message, "ssoAuthenticationProtocolType")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.ssoAuthenticationProtocolType); - if (message.authMessage != null && Object.hasOwnProperty.call(message, "authMessage")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.authMessage); - if (message.email != null && Object.hasOwnProperty.call(message, "email")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.email); - if (message.serverEccPublicKeyId != null && Object.hasOwnProperty.call(message, "serverEccPublicKeyId")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.serverEccPublicKeyId); - if (message.ipAddress != null && Object.hasOwnProperty.call(message, "ipAddress")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.ipAddress); - if (message.userPublicKey != null && Object.hasOwnProperty.call(message, "userPublicKey")) - writer.uint32(/* id 7, wireType 2 =*/58).bytes(message.userPublicKey); + if (!writer) writer = $Writer.create(); + if (message.automatorId != null && Object.hasOwnProperty.call(message, 'automatorId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int64(message.automatorId); + if ( + message.ssoAuthenticationProtocolType != null && + Object.hasOwnProperty.call(message, 'ssoAuthenticationProtocolType') + ) + writer.uint32(/* id 2, wireType 0 =*/ 16).int32(message.ssoAuthenticationProtocolType); + if (message.authMessage != null && Object.hasOwnProperty.call(message, 'authMessage')) + writer.uint32(/* id 3, wireType 2 =*/ 26).string(message.authMessage); + if (message.email != null && Object.hasOwnProperty.call(message, 'email')) + writer.uint32(/* id 4, wireType 2 =*/ 34).string(message.email); + if (message.serverEccPublicKeyId != null && Object.hasOwnProperty.call(message, 'serverEccPublicKeyId')) + writer.uint32(/* id 5, wireType 0 =*/ 40).int32(message.serverEccPublicKeyId); + if (message.ipAddress != null && Object.hasOwnProperty.call(message, 'ipAddress')) + writer.uint32(/* id 6, wireType 2 =*/ 50).string(message.ipAddress); + if (message.userPublicKey != null && Object.hasOwnProperty.call(message, 'userPublicKey')) + writer.uint32(/* id 7, wireType 2 =*/ 58).bytes(message.userPublicKey); if (message.teamDescription != null && message.teamDescription.length) for (let i = 0; i < message.teamDescription.length; ++i) - $root.Automator.TeamDescription.encode(message.teamDescription[i], writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.isTesting != null && Object.hasOwnProperty.call(message, "isTesting")) - writer.uint32(/* id 9, wireType 0 =*/72).bool(message.isTesting); - if (message.isEccOnly != null && Object.hasOwnProperty.call(message, "isEccOnly")) - writer.uint32(/* id 10, wireType 0 =*/80).bool(message.isEccOnly); - if (message.userPublicKeyEcc != null && Object.hasOwnProperty.call(message, "userPublicKeyEcc")) - writer.uint32(/* id 11, wireType 2 =*/90).bytes(message.userPublicKeyEcc); + $root.Automator.TeamDescription.encode( + message.teamDescription[i], + writer.uint32(/* id 8, wireType 2 =*/ 66).fork() + ).ldelim(); + if (message.isTesting != null && Object.hasOwnProperty.call(message, 'isTesting')) + writer.uint32(/* id 9, wireType 0 =*/ 72).bool(message.isTesting); + if (message.isEccOnly != null && Object.hasOwnProperty.call(message, 'isEccOnly')) + writer.uint32(/* id 10, wireType 0 =*/ 80).bool(message.isEccOnly); + if (message.userPublicKeyEcc != null && Object.hasOwnProperty.call(message, 'userPublicKeyEcc')) + writer.uint32(/* id 11, wireType 2 =*/ 90).bytes(message.userPublicKeyEcc); return writer; }; @@ -119111,61 +123209,60 @@ export const Automator = $root.Automator = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ApproveTeamsForUserRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Automator.ApproveTeamsForUserRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Automator.ApproveTeamsForUserRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.automatorId = reader.int64(); break; } - case 2: { + case 2: { message.ssoAuthenticationProtocolType = reader.int32(); break; } - case 3: { + case 3: { message.authMessage = reader.string(); break; } - case 4: { + case 4: { message.email = reader.string(); break; } - case 5: { + case 5: { message.serverEccPublicKeyId = reader.int32(); break; } - case 6: { + case 6: { message.ipAddress = reader.string(); break; } - case 7: { + case 7: { message.userPublicKey = reader.bytes(); break; } - case 8: { - if (!(message.teamDescription && message.teamDescription.length)) - message.teamDescription = []; + case 8: { + if (!(message.teamDescription && message.teamDescription.length)) message.teamDescription = []; message.teamDescription.push($root.Automator.TeamDescription.decode(reader, reader.uint32())); break; } - case 9: { + case 9: { message.isTesting = reader.bool(); break; } - case 10: { + case 10: { message.isEccOnly = reader.bool(); break; } - case 11: { + case 11: { message.userPublicKeyEcc = reader.bytes(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -119182,8 +123279,7 @@ export const Automator = $root.Automator = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ApproveTeamsForUserRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -119196,53 +123292,64 @@ export const Automator = $root.Automator = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ ApproveTeamsForUserRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.automatorId != null && message.hasOwnProperty("automatorId")) - if (!$util.isInteger(message.automatorId) && !(message.automatorId && $util.isInteger(message.automatorId.low) && $util.isInteger(message.automatorId.high))) - return "automatorId: integer|Long expected"; - if (message.ssoAuthenticationProtocolType != null && message.hasOwnProperty("ssoAuthenticationProtocolType")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.automatorId != null && message.hasOwnProperty('automatorId')) + if ( + !$util.isInteger(message.automatorId) && + !( + message.automatorId && + $util.isInteger(message.automatorId.low) && + $util.isInteger(message.automatorId.high) + ) + ) + return 'automatorId: integer|Long expected'; + if ( + message.ssoAuthenticationProtocolType != null && + message.hasOwnProperty('ssoAuthenticationProtocolType') + ) switch (message.ssoAuthenticationProtocolType) { - default: - return "ssoAuthenticationProtocolType: enum value expected"; - case 0: - case 1: - case 2: - break; + default: + return 'ssoAuthenticationProtocolType: enum value expected'; + case 0: + case 1: + case 2: + break; } - if (message.authMessage != null && message.hasOwnProperty("authMessage")) - if (!$util.isString(message.authMessage)) - return "authMessage: string expected"; - if (message.email != null && message.hasOwnProperty("email")) - if (!$util.isString(message.email)) - return "email: string expected"; - if (message.serverEccPublicKeyId != null && message.hasOwnProperty("serverEccPublicKeyId")) - if (!$util.isInteger(message.serverEccPublicKeyId)) - return "serverEccPublicKeyId: integer expected"; - if (message.ipAddress != null && message.hasOwnProperty("ipAddress")) - if (!$util.isString(message.ipAddress)) - return "ipAddress: string expected"; - if (message.userPublicKey != null && message.hasOwnProperty("userPublicKey")) - if (!(message.userPublicKey && typeof message.userPublicKey.length === "number" || $util.isString(message.userPublicKey))) - return "userPublicKey: buffer expected"; - if (message.teamDescription != null && message.hasOwnProperty("teamDescription")) { - if (!Array.isArray(message.teamDescription)) - return "teamDescription: array expected"; + if (message.authMessage != null && message.hasOwnProperty('authMessage')) + if (!$util.isString(message.authMessage)) return 'authMessage: string expected'; + if (message.email != null && message.hasOwnProperty('email')) + if (!$util.isString(message.email)) return 'email: string expected'; + if (message.serverEccPublicKeyId != null && message.hasOwnProperty('serverEccPublicKeyId')) + if (!$util.isInteger(message.serverEccPublicKeyId)) return 'serverEccPublicKeyId: integer expected'; + if (message.ipAddress != null && message.hasOwnProperty('ipAddress')) + if (!$util.isString(message.ipAddress)) return 'ipAddress: string expected'; + if (message.userPublicKey != null && message.hasOwnProperty('userPublicKey')) + if ( + !( + (message.userPublicKey && typeof message.userPublicKey.length === 'number') || + $util.isString(message.userPublicKey) + ) + ) + return 'userPublicKey: buffer expected'; + if (message.teamDescription != null && message.hasOwnProperty('teamDescription')) { + if (!Array.isArray(message.teamDescription)) return 'teamDescription: array expected'; for (let i = 0; i < message.teamDescription.length; ++i) { let error = $root.Automator.TeamDescription.verify(message.teamDescription[i]); - if (error) - return "teamDescription." + error; + if (error) return 'teamDescription.' + error; } } - if (message.isTesting != null && message.hasOwnProperty("isTesting")) - if (typeof message.isTesting !== "boolean") - return "isTesting: boolean expected"; - if (message.isEccOnly != null && message.hasOwnProperty("isEccOnly")) - if (typeof message.isEccOnly !== "boolean") - return "isEccOnly: boolean expected"; - if (message.userPublicKeyEcc != null && message.hasOwnProperty("userPublicKeyEcc")) - if (!(message.userPublicKeyEcc && typeof message.userPublicKeyEcc.length === "number" || $util.isString(message.userPublicKeyEcc))) - return "userPublicKeyEcc: buffer expected"; + if (message.isTesting != null && message.hasOwnProperty('isTesting')) + if (typeof message.isTesting !== 'boolean') return 'isTesting: boolean expected'; + if (message.isEccOnly != null && message.hasOwnProperty('isEccOnly')) + if (typeof message.isEccOnly !== 'boolean') return 'isEccOnly: boolean expected'; + if (message.userPublicKeyEcc != null && message.hasOwnProperty('userPublicKeyEcc')) + if ( + !( + (message.userPublicKeyEcc && typeof message.userPublicKeyEcc.length === 'number') || + $util.isString(message.userPublicKeyEcc) + ) + ) + return 'userPublicKeyEcc: buffer expected'; return null; }; @@ -119255,70 +123362,69 @@ export const Automator = $root.Automator = (() => { * @returns {Automator.ApproveTeamsForUserRequest} ApproveTeamsForUserRequest */ ApproveTeamsForUserRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Automator.ApproveTeamsForUserRequest) - return object; + if (object instanceof $root.Automator.ApproveTeamsForUserRequest) return object; let message = new $root.Automator.ApproveTeamsForUserRequest(); if (object.automatorId != null) - if ($util.Long) - (message.automatorId = $util.Long.fromValue(object.automatorId)).unsigned = false; - else if (typeof object.automatorId === "string") - message.automatorId = parseInt(object.automatorId, 10); - else if (typeof object.automatorId === "number") - message.automatorId = object.automatorId; - else if (typeof object.automatorId === "object") - message.automatorId = new $util.LongBits(object.automatorId.low >>> 0, object.automatorId.high >>> 0).toNumber(); + if ($util.Long) (message.automatorId = $util.Long.fromValue(object.automatorId)).unsigned = false; + else if (typeof object.automatorId === 'string') message.automatorId = parseInt(object.automatorId, 10); + else if (typeof object.automatorId === 'number') message.automatorId = object.automatorId; + else if (typeof object.automatorId === 'object') + message.automatorId = new $util.LongBits( + object.automatorId.low >>> 0, + object.automatorId.high >>> 0 + ).toNumber(); switch (object.ssoAuthenticationProtocolType) { - default: - if (typeof object.ssoAuthenticationProtocolType === "number") { - message.ssoAuthenticationProtocolType = object.ssoAuthenticationProtocolType; - break; - } - break; - case "UNKNOWN_PROTOCOL": - case 0: - message.ssoAuthenticationProtocolType = 0; - break; - case "SAML2": - case 1: - message.ssoAuthenticationProtocolType = 1; - break; - case "JWT": - case 2: - message.ssoAuthenticationProtocolType = 2; - break; - } - if (object.authMessage != null) - message.authMessage = String(object.authMessage); - if (object.email != null) - message.email = String(object.email); - if (object.serverEccPublicKeyId != null) - message.serverEccPublicKeyId = object.serverEccPublicKeyId | 0; - if (object.ipAddress != null) - message.ipAddress = String(object.ipAddress); + default: + if (typeof object.ssoAuthenticationProtocolType === 'number') { + message.ssoAuthenticationProtocolType = object.ssoAuthenticationProtocolType; + break; + } + break; + case 'UNKNOWN_PROTOCOL': + case 0: + message.ssoAuthenticationProtocolType = 0; + break; + case 'SAML2': + case 1: + message.ssoAuthenticationProtocolType = 1; + break; + case 'JWT': + case 2: + message.ssoAuthenticationProtocolType = 2; + break; + } + if (object.authMessage != null) message.authMessage = String(object.authMessage); + if (object.email != null) message.email = String(object.email); + if (object.serverEccPublicKeyId != null) message.serverEccPublicKeyId = object.serverEccPublicKeyId | 0; + if (object.ipAddress != null) message.ipAddress = String(object.ipAddress); if (object.userPublicKey != null) - if (typeof object.userPublicKey === "string") - $util.base64.decode(object.userPublicKey, message.userPublicKey = $util.newBuffer($util.base64.length(object.userPublicKey)), 0); - else if (object.userPublicKey.length >= 0) - message.userPublicKey = object.userPublicKey; + if (typeof object.userPublicKey === 'string') + $util.base64.decode( + object.userPublicKey, + (message.userPublicKey = $util.newBuffer($util.base64.length(object.userPublicKey))), + 0 + ); + else if (object.userPublicKey.length >= 0) message.userPublicKey = object.userPublicKey; if (object.teamDescription) { if (!Array.isArray(object.teamDescription)) - throw TypeError(".Automator.ApproveTeamsForUserRequest.teamDescription: array expected"); + throw TypeError('.Automator.ApproveTeamsForUserRequest.teamDescription: array expected'); message.teamDescription = []; for (let i = 0; i < object.teamDescription.length; ++i) { - if (typeof object.teamDescription[i] !== "object") - throw TypeError(".Automator.ApproveTeamsForUserRequest.teamDescription: object expected"); + if (typeof object.teamDescription[i] !== 'object') + throw TypeError('.Automator.ApproveTeamsForUserRequest.teamDescription: object expected'); message.teamDescription[i] = $root.Automator.TeamDescription.fromObject(object.teamDescription[i]); } } - if (object.isTesting != null) - message.isTesting = Boolean(object.isTesting); - if (object.isEccOnly != null) - message.isEccOnly = Boolean(object.isEccOnly); + if (object.isTesting != null) message.isTesting = Boolean(object.isTesting); + if (object.isEccOnly != null) message.isEccOnly = Boolean(object.isEccOnly); if (object.userPublicKeyEcc != null) - if (typeof object.userPublicKeyEcc === "string") - $util.base64.decode(object.userPublicKeyEcc, message.userPublicKeyEcc = $util.newBuffer($util.base64.length(object.userPublicKeyEcc)), 0); - else if (object.userPublicKeyEcc.length >= 0) - message.userPublicKeyEcc = object.userPublicKeyEcc; + if (typeof object.userPublicKeyEcc === 'string') + $util.base64.decode( + object.userPublicKeyEcc, + (message.userPublicKeyEcc = $util.newBuffer($util.base64.length(object.userPublicKeyEcc))), + 0 + ); + else if (object.userPublicKeyEcc.length >= 0) message.userPublicKeyEcc = object.userPublicKeyEcc; return message; }; @@ -119332,67 +123438,87 @@ export const Automator = $root.Automator = (() => { * @returns {Object.} Plain object */ ApproveTeamsForUserRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.teamDescription = []; + if (options.arrays || options.defaults) object.teamDescription = []; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.automatorId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.automatorId = options.longs === String ? "0" : 0; - object.ssoAuthenticationProtocolType = options.enums === String ? "UNKNOWN_PROTOCOL" : 0; - object.authMessage = ""; - object.email = ""; + object.automatorId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.automatorId = options.longs === String ? '0' : 0; + object.ssoAuthenticationProtocolType = options.enums === String ? 'UNKNOWN_PROTOCOL' : 0; + object.authMessage = ''; + object.email = ''; object.serverEccPublicKeyId = 0; - object.ipAddress = ""; - if (options.bytes === String) - object.userPublicKey = ""; + object.ipAddress = ''; + if (options.bytes === String) object.userPublicKey = ''; else { object.userPublicKey = []; - if (options.bytes !== Array) - object.userPublicKey = $util.newBuffer(object.userPublicKey); + if (options.bytes !== Array) object.userPublicKey = $util.newBuffer(object.userPublicKey); } object.isTesting = false; object.isEccOnly = false; - if (options.bytes === String) - object.userPublicKeyEcc = ""; + if (options.bytes === String) object.userPublicKeyEcc = ''; else { object.userPublicKeyEcc = []; - if (options.bytes !== Array) - object.userPublicKeyEcc = $util.newBuffer(object.userPublicKeyEcc); + if (options.bytes !== Array) object.userPublicKeyEcc = $util.newBuffer(object.userPublicKeyEcc); } } - if (message.automatorId != null && message.hasOwnProperty("automatorId")) - if (typeof message.automatorId === "number") + if (message.automatorId != null && message.hasOwnProperty('automatorId')) + if (typeof message.automatorId === 'number') object.automatorId = options.longs === String ? String(message.automatorId) : message.automatorId; else - object.automatorId = options.longs === String ? $util.Long.prototype.toString.call(message.automatorId) : options.longs === Number ? new $util.LongBits(message.automatorId.low >>> 0, message.automatorId.high >>> 0).toNumber() : message.automatorId; - if (message.ssoAuthenticationProtocolType != null && message.hasOwnProperty("ssoAuthenticationProtocolType")) - object.ssoAuthenticationProtocolType = options.enums === String ? $root.Automator.SsoAuthenticationProtocolType[message.ssoAuthenticationProtocolType] === undefined ? message.ssoAuthenticationProtocolType : $root.Automator.SsoAuthenticationProtocolType[message.ssoAuthenticationProtocolType] : message.ssoAuthenticationProtocolType; - if (message.authMessage != null && message.hasOwnProperty("authMessage")) + object.automatorId = + options.longs === String + ? $util.Long.prototype.toString.call(message.automatorId) + : options.longs === Number + ? new $util.LongBits( + message.automatorId.low >>> 0, + message.automatorId.high >>> 0 + ).toNumber() + : message.automatorId; + if ( + message.ssoAuthenticationProtocolType != null && + message.hasOwnProperty('ssoAuthenticationProtocolType') + ) + object.ssoAuthenticationProtocolType = + options.enums === String + ? $root.Automator.SsoAuthenticationProtocolType[message.ssoAuthenticationProtocolType] === + undefined + ? message.ssoAuthenticationProtocolType + : $root.Automator.SsoAuthenticationProtocolType[message.ssoAuthenticationProtocolType] + : message.ssoAuthenticationProtocolType; + if (message.authMessage != null && message.hasOwnProperty('authMessage')) object.authMessage = message.authMessage; - if (message.email != null && message.hasOwnProperty("email")) - object.email = message.email; - if (message.serverEccPublicKeyId != null && message.hasOwnProperty("serverEccPublicKeyId")) + if (message.email != null && message.hasOwnProperty('email')) object.email = message.email; + if (message.serverEccPublicKeyId != null && message.hasOwnProperty('serverEccPublicKeyId')) object.serverEccPublicKeyId = message.serverEccPublicKeyId; - if (message.ipAddress != null && message.hasOwnProperty("ipAddress")) - object.ipAddress = message.ipAddress; - if (message.userPublicKey != null && message.hasOwnProperty("userPublicKey")) - object.userPublicKey = options.bytes === String ? $util.base64.encode(message.userPublicKey, 0, message.userPublicKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.userPublicKey) : message.userPublicKey; + if (message.ipAddress != null && message.hasOwnProperty('ipAddress')) object.ipAddress = message.ipAddress; + if (message.userPublicKey != null && message.hasOwnProperty('userPublicKey')) + object.userPublicKey = + options.bytes === String + ? $util.base64.encode(message.userPublicKey, 0, message.userPublicKey.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.userPublicKey) + : message.userPublicKey; if (message.teamDescription && message.teamDescription.length) { object.teamDescription = []; for (let j = 0; j < message.teamDescription.length; ++j) - object.teamDescription[j] = $root.Automator.TeamDescription.toObject(message.teamDescription[j], options); + object.teamDescription[j] = $root.Automator.TeamDescription.toObject( + message.teamDescription[j], + options + ); } - if (message.isTesting != null && message.hasOwnProperty("isTesting")) - object.isTesting = message.isTesting; - if (message.isEccOnly != null && message.hasOwnProperty("isEccOnly")) - object.isEccOnly = message.isEccOnly; - if (message.userPublicKeyEcc != null && message.hasOwnProperty("userPublicKeyEcc")) - object.userPublicKeyEcc = options.bytes === String ? $util.base64.encode(message.userPublicKeyEcc, 0, message.userPublicKeyEcc.length) : options.bytes === Array ? Array.prototype.slice.call(message.userPublicKeyEcc) : message.userPublicKeyEcc; + if (message.isTesting != null && message.hasOwnProperty('isTesting')) object.isTesting = message.isTesting; + if (message.isEccOnly != null && message.hasOwnProperty('isEccOnly')) object.isEccOnly = message.isEccOnly; + if (message.userPublicKeyEcc != null && message.hasOwnProperty('userPublicKeyEcc')) + object.userPublicKeyEcc = + options.bytes === String + ? $util.base64.encode(message.userPublicKeyEcc, 0, message.userPublicKeyEcc.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.userPublicKeyEcc) + : message.userPublicKeyEcc; return object; }; @@ -119417,16 +123543,15 @@ export const Automator = $root.Automator = (() => { */ ApproveTeamsForUserRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Automator.ApproveTeamsForUserRequest"; + return typeUrlPrefix + '/Automator.ApproveTeamsForUserRequest'; }; return ApproveTeamsForUserRequest; })(); - Automator.TeamDescription = (function() { - + Automator.TeamDescription = (function () { /** * Properties of a TeamDescription. * @memberof Automator @@ -119441,7 +123566,7 @@ export const Automator = $root.Automator = (() => { * Constructs a new TeamDescription. * @memberof Automator * @classdesc TeamDescription - * + * * Description of a team involved in a Team approval or Team for User approval. * Used in ApproveTeamsForUserRequest. * @implements ITeamDescription @@ -119451,8 +123576,7 @@ export const Automator = $root.Automator = (() => { function TeamDescription(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -119469,7 +123593,7 @@ export const Automator = $root.Automator = (() => { * @memberof Automator.TeamDescription * @instance */ - TeamDescription.prototype.teamName = ""; + TeamDescription.prototype.teamName = ''; /** * TeamDescription encryptedTeamKey. @@ -119509,16 +123633,15 @@ export const Automator = $root.Automator = (() => { * @returns {$protobuf.Writer} Writer */ TeamDescription.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.teamUid != null && Object.hasOwnProperty.call(message, "teamUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.teamUid); - if (message.teamName != null && Object.hasOwnProperty.call(message, "teamName")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.teamName); - if (message.encryptedTeamKey != null && Object.hasOwnProperty.call(message, "encryptedTeamKey")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.encryptedTeamKey); - if (message.encryptedTeamKeyType != null && Object.hasOwnProperty.call(message, "encryptedTeamKeyType")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.encryptedTeamKeyType); + if (!writer) writer = $Writer.create(); + if (message.teamUid != null && Object.hasOwnProperty.call(message, 'teamUid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.teamUid); + if (message.teamName != null && Object.hasOwnProperty.call(message, 'teamName')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.teamName); + if (message.encryptedTeamKey != null && Object.hasOwnProperty.call(message, 'encryptedTeamKey')) + writer.uint32(/* id 3, wireType 2 =*/ 26).bytes(message.encryptedTeamKey); + if (message.encryptedTeamKeyType != null && Object.hasOwnProperty.call(message, 'encryptedTeamKeyType')) + writer.uint32(/* id 4, wireType 0 =*/ 32).int32(message.encryptedTeamKeyType); return writer; }; @@ -119547,31 +123670,31 @@ export const Automator = $root.Automator = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ TeamDescription.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Automator.TeamDescription(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Automator.TeamDescription(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.teamUid = reader.bytes(); break; } - case 2: { + case 2: { message.teamName = reader.string(); break; } - case 3: { + case 3: { message.encryptedTeamKey = reader.bytes(); break; } - case 4: { + case 4: { message.encryptedTeamKeyType = reader.int32(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -119588,8 +123711,7 @@ export const Automator = $root.Automator = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ TeamDescription.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -119602,27 +123724,35 @@ export const Automator = $root.Automator = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ TeamDescription.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.teamUid != null && message.hasOwnProperty("teamUid")) - if (!(message.teamUid && typeof message.teamUid.length === "number" || $util.isString(message.teamUid))) - return "teamUid: buffer expected"; - if (message.teamName != null && message.hasOwnProperty("teamName")) - if (!$util.isString(message.teamName)) - return "teamName: string expected"; - if (message.encryptedTeamKey != null && message.hasOwnProperty("encryptedTeamKey")) - if (!(message.encryptedTeamKey && typeof message.encryptedTeamKey.length === "number" || $util.isString(message.encryptedTeamKey))) - return "encryptedTeamKey: buffer expected"; - if (message.encryptedTeamKeyType != null && message.hasOwnProperty("encryptedTeamKeyType")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.teamUid != null && message.hasOwnProperty('teamUid')) + if ( + !( + (message.teamUid && typeof message.teamUid.length === 'number') || + $util.isString(message.teamUid) + ) + ) + return 'teamUid: buffer expected'; + if (message.teamName != null && message.hasOwnProperty('teamName')) + if (!$util.isString(message.teamName)) return 'teamName: string expected'; + if (message.encryptedTeamKey != null && message.hasOwnProperty('encryptedTeamKey')) + if ( + !( + (message.encryptedTeamKey && typeof message.encryptedTeamKey.length === 'number') || + $util.isString(message.encryptedTeamKey) + ) + ) + return 'encryptedTeamKey: buffer expected'; + if (message.encryptedTeamKeyType != null && message.hasOwnProperty('encryptedTeamKeyType')) switch (message.encryptedTeamKeyType) { - default: - return "encryptedTeamKeyType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; + default: + return 'encryptedTeamKeyType: enum value expected'; + case 0: + case 1: + case 2: + case 3: + case 4: + break; } return null; }; @@ -119636,48 +123766,52 @@ export const Automator = $root.Automator = (() => { * @returns {Automator.TeamDescription} TeamDescription */ TeamDescription.fromObject = function fromObject(object) { - if (object instanceof $root.Automator.TeamDescription) - return object; + if (object instanceof $root.Automator.TeamDescription) return object; let message = new $root.Automator.TeamDescription(); if (object.teamUid != null) - if (typeof object.teamUid === "string") - $util.base64.decode(object.teamUid, message.teamUid = $util.newBuffer($util.base64.length(object.teamUid)), 0); - else if (object.teamUid.length >= 0) - message.teamUid = object.teamUid; - if (object.teamName != null) - message.teamName = String(object.teamName); + if (typeof object.teamUid === 'string') + $util.base64.decode( + object.teamUid, + (message.teamUid = $util.newBuffer($util.base64.length(object.teamUid))), + 0 + ); + else if (object.teamUid.length >= 0) message.teamUid = object.teamUid; + if (object.teamName != null) message.teamName = String(object.teamName); if (object.encryptedTeamKey != null) - if (typeof object.encryptedTeamKey === "string") - $util.base64.decode(object.encryptedTeamKey, message.encryptedTeamKey = $util.newBuffer($util.base64.length(object.encryptedTeamKey)), 0); - else if (object.encryptedTeamKey.length >= 0) - message.encryptedTeamKey = object.encryptedTeamKey; + if (typeof object.encryptedTeamKey === 'string') + $util.base64.decode( + object.encryptedTeamKey, + (message.encryptedTeamKey = $util.newBuffer($util.base64.length(object.encryptedTeamKey))), + 0 + ); + else if (object.encryptedTeamKey.length >= 0) message.encryptedTeamKey = object.encryptedTeamKey; switch (object.encryptedTeamKeyType) { - default: - if (typeof object.encryptedTeamKeyType === "number") { - message.encryptedTeamKeyType = object.encryptedTeamKeyType; + default: + if (typeof object.encryptedTeamKeyType === 'number') { + message.encryptedTeamKeyType = object.encryptedTeamKeyType; + break; + } + break; + case 'KT_NO_KEY': + case 0: + message.encryptedTeamKeyType = 0; + break; + case 'KT_ENCRYPTED_BY_DATA_KEY': + case 1: + message.encryptedTeamKeyType = 1; + break; + case 'KT_ENCRYPTED_BY_PUBLIC_KEY': + case 2: + message.encryptedTeamKeyType = 2; + break; + case 'KT_ENCRYPTED_BY_DATA_KEY_GCM': + case 3: + message.encryptedTeamKeyType = 3; + break; + case 'KT_ENCRYPTED_BY_PUBLIC_KEY_ECC': + case 4: + message.encryptedTeamKeyType = 4; break; - } - break; - case "KT_NO_KEY": - case 0: - message.encryptedTeamKeyType = 0; - break; - case "KT_ENCRYPTED_BY_DATA_KEY": - case 1: - message.encryptedTeamKeyType = 1; - break; - case "KT_ENCRYPTED_BY_PUBLIC_KEY": - case 2: - message.encryptedTeamKeyType = 2; - break; - case "KT_ENCRYPTED_BY_DATA_KEY_GCM": - case 3: - message.encryptedTeamKeyType = 3; - break; - case "KT_ENCRYPTED_BY_PUBLIC_KEY_ECC": - case 4: - message.encryptedTeamKeyType = 4; - break; } return message; }; @@ -119692,35 +123826,44 @@ export const Automator = $root.Automator = (() => { * @returns {Object.} Plain object */ TeamDescription.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.teamUid = ""; + if (options.bytes === String) object.teamUid = ''; else { object.teamUid = []; - if (options.bytes !== Array) - object.teamUid = $util.newBuffer(object.teamUid); + if (options.bytes !== Array) object.teamUid = $util.newBuffer(object.teamUid); } - object.teamName = ""; - if (options.bytes === String) - object.encryptedTeamKey = ""; + object.teamName = ''; + if (options.bytes === String) object.encryptedTeamKey = ''; else { object.encryptedTeamKey = []; - if (options.bytes !== Array) - object.encryptedTeamKey = $util.newBuffer(object.encryptedTeamKey); - } - object.encryptedTeamKeyType = options.enums === String ? "KT_NO_KEY" : 0; - } - if (message.teamUid != null && message.hasOwnProperty("teamUid")) - object.teamUid = options.bytes === String ? $util.base64.encode(message.teamUid, 0, message.teamUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.teamUid) : message.teamUid; - if (message.teamName != null && message.hasOwnProperty("teamName")) - object.teamName = message.teamName; - if (message.encryptedTeamKey != null && message.hasOwnProperty("encryptedTeamKey")) - object.encryptedTeamKey = options.bytes === String ? $util.base64.encode(message.encryptedTeamKey, 0, message.encryptedTeamKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedTeamKey) : message.encryptedTeamKey; - if (message.encryptedTeamKeyType != null && message.hasOwnProperty("encryptedTeamKeyType")) - object.encryptedTeamKeyType = options.enums === String ? $root.Enterprise.EncryptedKeyType[message.encryptedTeamKeyType] === undefined ? message.encryptedTeamKeyType : $root.Enterprise.EncryptedKeyType[message.encryptedTeamKeyType] : message.encryptedTeamKeyType; + if (options.bytes !== Array) object.encryptedTeamKey = $util.newBuffer(object.encryptedTeamKey); + } + object.encryptedTeamKeyType = options.enums === String ? 'KT_NO_KEY' : 0; + } + if (message.teamUid != null && message.hasOwnProperty('teamUid')) + object.teamUid = + options.bytes === String + ? $util.base64.encode(message.teamUid, 0, message.teamUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.teamUid) + : message.teamUid; + if (message.teamName != null && message.hasOwnProperty('teamName')) object.teamName = message.teamName; + if (message.encryptedTeamKey != null && message.hasOwnProperty('encryptedTeamKey')) + object.encryptedTeamKey = + options.bytes === String + ? $util.base64.encode(message.encryptedTeamKey, 0, message.encryptedTeamKey.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.encryptedTeamKey) + : message.encryptedTeamKey; + if (message.encryptedTeamKeyType != null && message.hasOwnProperty('encryptedTeamKeyType')) + object.encryptedTeamKeyType = + options.enums === String + ? $root.Enterprise.EncryptedKeyType[message.encryptedTeamKeyType] === undefined + ? message.encryptedTeamKeyType + : $root.Enterprise.EncryptedKeyType[message.encryptedTeamKeyType] + : message.encryptedTeamKeyType; return object; }; @@ -119745,16 +123888,15 @@ export const Automator = $root.Automator = (() => { */ TeamDescription.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Automator.TeamDescription"; + return typeUrlPrefix + '/Automator.TeamDescription'; }; return TeamDescription; })(); - Automator.ApproveTeamsForUserResponse = (function() { - + Automator.ApproveTeamsForUserResponse = (function () { /** * Properties of an ApproveTeamsForUserResponse. * @memberof Automator @@ -119769,7 +123911,7 @@ export const Automator = $root.Automator = (() => { * Constructs a new ApproveTeamsForUserResponse. * @memberof Automator * @classdesc ApproveTeamsForUserResponse - * + * * The Response from Automator when a team is or is not approved. * It is included in an AutomatorResponse. * @implements IApproveTeamsForUserResponse @@ -119780,8 +123922,7 @@ export const Automator = $root.Automator = (() => { this.approveTeamResponse = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -119790,7 +123931,7 @@ export const Automator = $root.Automator = (() => { * @memberof Automator.ApproveTeamsForUserResponse * @instance */ - ApproveTeamsForUserResponse.prototype.automatorId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + ApproveTeamsForUserResponse.prototype.automatorId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * ApproveTeamsForUserResponse email. @@ -119798,7 +123939,7 @@ export const Automator = $root.Automator = (() => { * @memberof Automator.ApproveTeamsForUserResponse * @instance */ - ApproveTeamsForUserResponse.prototype.email = ""; + ApproveTeamsForUserResponse.prototype.email = ''; /** * ApproveTeamsForUserResponse message. @@ -119806,7 +123947,7 @@ export const Automator = $root.Automator = (() => { * @memberof Automator.ApproveTeamsForUserResponse * @instance */ - ApproveTeamsForUserResponse.prototype.message = ""; + ApproveTeamsForUserResponse.prototype.message = ''; /** * ApproveTeamsForUserResponse approveTeamResponse. @@ -119838,17 +123979,19 @@ export const Automator = $root.Automator = (() => { * @returns {$protobuf.Writer} Writer */ ApproveTeamsForUserResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.automatorId != null && Object.hasOwnProperty.call(message, "automatorId")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.automatorId); - if (message.email != null && Object.hasOwnProperty.call(message, "email")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.email); - if (message.message != null && Object.hasOwnProperty.call(message, "message")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.message); + if (!writer) writer = $Writer.create(); + if (message.automatorId != null && Object.hasOwnProperty.call(message, 'automatorId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int64(message.automatorId); + if (message.email != null && Object.hasOwnProperty.call(message, 'email')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.email); + if (message.message != null && Object.hasOwnProperty.call(message, 'message')) + writer.uint32(/* id 3, wireType 2 =*/ 26).string(message.message); if (message.approveTeamResponse != null && message.approveTeamResponse.length) for (let i = 0; i < message.approveTeamResponse.length; ++i) - $root.Automator.ApproveOneTeamForUserResponse.encode(message.approveTeamResponse[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + $root.Automator.ApproveOneTeamForUserResponse.encode( + message.approveTeamResponse[i], + writer.uint32(/* id 4, wireType 2 =*/ 34).fork() + ).ldelim(); return writer; }; @@ -119877,33 +124020,35 @@ export const Automator = $root.Automator = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ApproveTeamsForUserResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Automator.ApproveTeamsForUserResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Automator.ApproveTeamsForUserResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.automatorId = reader.int64(); break; } - case 2: { + case 2: { message.email = reader.string(); break; } - case 3: { + case 3: { message.message = reader.string(); break; } - case 4: { + case 4: { if (!(message.approveTeamResponse && message.approveTeamResponse.length)) message.approveTeamResponse = []; - message.approveTeamResponse.push($root.Automator.ApproveOneTeamForUserResponse.decode(reader, reader.uint32())); + message.approveTeamResponse.push( + $root.Automator.ApproveOneTeamForUserResponse.decode(reader, reader.uint32()) + ); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -119920,8 +124065,7 @@ export const Automator = $root.Automator = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ApproveTeamsForUserResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -119934,24 +124078,26 @@ export const Automator = $root.Automator = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ ApproveTeamsForUserResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.automatorId != null && message.hasOwnProperty("automatorId")) - if (!$util.isInteger(message.automatorId) && !(message.automatorId && $util.isInteger(message.automatorId.low) && $util.isInteger(message.automatorId.high))) - return "automatorId: integer|Long expected"; - if (message.email != null && message.hasOwnProperty("email")) - if (!$util.isString(message.email)) - return "email: string expected"; - if (message.message != null && message.hasOwnProperty("message")) - if (!$util.isString(message.message)) - return "message: string expected"; - if (message.approveTeamResponse != null && message.hasOwnProperty("approveTeamResponse")) { - if (!Array.isArray(message.approveTeamResponse)) - return "approveTeamResponse: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.automatorId != null && message.hasOwnProperty('automatorId')) + if ( + !$util.isInteger(message.automatorId) && + !( + message.automatorId && + $util.isInteger(message.automatorId.low) && + $util.isInteger(message.automatorId.high) + ) + ) + return 'automatorId: integer|Long expected'; + if (message.email != null && message.hasOwnProperty('email')) + if (!$util.isString(message.email)) return 'email: string expected'; + if (message.message != null && message.hasOwnProperty('message')) + if (!$util.isString(message.message)) return 'message: string expected'; + if (message.approveTeamResponse != null && message.hasOwnProperty('approveTeamResponse')) { + if (!Array.isArray(message.approveTeamResponse)) return 'approveTeamResponse: array expected'; for (let i = 0; i < message.approveTeamResponse.length; ++i) { let error = $root.Automator.ApproveOneTeamForUserResponse.verify(message.approveTeamResponse[i]); - if (error) - return "approveTeamResponse." + error; + if (error) return 'approveTeamResponse.' + error; } } return null; @@ -119966,30 +124112,29 @@ export const Automator = $root.Automator = (() => { * @returns {Automator.ApproveTeamsForUserResponse} ApproveTeamsForUserResponse */ ApproveTeamsForUserResponse.fromObject = function fromObject(object) { - if (object instanceof $root.Automator.ApproveTeamsForUserResponse) - return object; + if (object instanceof $root.Automator.ApproveTeamsForUserResponse) return object; let message = new $root.Automator.ApproveTeamsForUserResponse(); if (object.automatorId != null) - if ($util.Long) - (message.automatorId = $util.Long.fromValue(object.automatorId)).unsigned = false; - else if (typeof object.automatorId === "string") - message.automatorId = parseInt(object.automatorId, 10); - else if (typeof object.automatorId === "number") - message.automatorId = object.automatorId; - else if (typeof object.automatorId === "object") - message.automatorId = new $util.LongBits(object.automatorId.low >>> 0, object.automatorId.high >>> 0).toNumber(); - if (object.email != null) - message.email = String(object.email); - if (object.message != null) - message.message = String(object.message); + if ($util.Long) (message.automatorId = $util.Long.fromValue(object.automatorId)).unsigned = false; + else if (typeof object.automatorId === 'string') message.automatorId = parseInt(object.automatorId, 10); + else if (typeof object.automatorId === 'number') message.automatorId = object.automatorId; + else if (typeof object.automatorId === 'object') + message.automatorId = new $util.LongBits( + object.automatorId.low >>> 0, + object.automatorId.high >>> 0 + ).toNumber(); + if (object.email != null) message.email = String(object.email); + if (object.message != null) message.message = String(object.message); if (object.approveTeamResponse) { if (!Array.isArray(object.approveTeamResponse)) - throw TypeError(".Automator.ApproveTeamsForUserResponse.approveTeamResponse: array expected"); + throw TypeError('.Automator.ApproveTeamsForUserResponse.approveTeamResponse: array expected'); message.approveTeamResponse = []; for (let i = 0; i < object.approveTeamResponse.length; ++i) { - if (typeof object.approveTeamResponse[i] !== "object") - throw TypeError(".Automator.ApproveTeamsForUserResponse.approveTeamResponse: object expected"); - message.approveTeamResponse[i] = $root.Automator.ApproveOneTeamForUserResponse.fromObject(object.approveTeamResponse[i]); + if (typeof object.approveTeamResponse[i] !== 'object') + throw TypeError('.Automator.ApproveTeamsForUserResponse.approveTeamResponse: object expected'); + message.approveTeamResponse[i] = $root.Automator.ApproveOneTeamForUserResponse.fromObject( + object.approveTeamResponse[i] + ); } } return message; @@ -120005,33 +124150,40 @@ export const Automator = $root.Automator = (() => { * @returns {Object.} Plain object */ ApproveTeamsForUserResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.approveTeamResponse = []; + if (options.arrays || options.defaults) object.approveTeamResponse = []; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.automatorId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.automatorId = options.longs === String ? "0" : 0; - object.email = ""; - object.message = ""; - } - if (message.automatorId != null && message.hasOwnProperty("automatorId")) - if (typeof message.automatorId === "number") + object.automatorId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.automatorId = options.longs === String ? '0' : 0; + object.email = ''; + object.message = ''; + } + if (message.automatorId != null && message.hasOwnProperty('automatorId')) + if (typeof message.automatorId === 'number') object.automatorId = options.longs === String ? String(message.automatorId) : message.automatorId; else - object.automatorId = options.longs === String ? $util.Long.prototype.toString.call(message.automatorId) : options.longs === Number ? new $util.LongBits(message.automatorId.low >>> 0, message.automatorId.high >>> 0).toNumber() : message.automatorId; - if (message.email != null && message.hasOwnProperty("email")) - object.email = message.email; - if (message.message != null && message.hasOwnProperty("message")) - object.message = message.message; + object.automatorId = + options.longs === String + ? $util.Long.prototype.toString.call(message.automatorId) + : options.longs === Number + ? new $util.LongBits( + message.automatorId.low >>> 0, + message.automatorId.high >>> 0 + ).toNumber() + : message.automatorId; + if (message.email != null && message.hasOwnProperty('email')) object.email = message.email; + if (message.message != null && message.hasOwnProperty('message')) object.message = message.message; if (message.approveTeamResponse && message.approveTeamResponse.length) { object.approveTeamResponse = []; for (let j = 0; j < message.approveTeamResponse.length; ++j) - object.approveTeamResponse[j] = $root.Automator.ApproveOneTeamForUserResponse.toObject(message.approveTeamResponse[j], options); + object.approveTeamResponse[j] = $root.Automator.ApproveOneTeamForUserResponse.toObject( + message.approveTeamResponse[j], + options + ); } return object; }; @@ -120057,16 +124209,15 @@ export const Automator = $root.Automator = (() => { */ ApproveTeamsForUserResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Automator.ApproveTeamsForUserResponse"; + return typeUrlPrefix + '/Automator.ApproveTeamsForUserResponse'; }; return ApproveTeamsForUserResponse; })(); - Automator.ApproveOneTeamForUserResponse = (function() { - + Automator.ApproveOneTeamForUserResponse = (function () { /** * Properties of an ApproveOneTeamForUserResponse. * @memberof Automator @@ -120085,7 +124236,7 @@ export const Automator = $root.Automator = (() => { * Constructs a new ApproveOneTeamForUserResponse. * @memberof Automator * @classdesc ApproveOneTeamForUserResponse - * + * * Part of the ApproveTeamsForUserResponse. * Provides information needed to add one user to one team. * @implements IApproveOneTeamForUserResponse @@ -120095,8 +124246,7 @@ export const Automator = $root.Automator = (() => { function ApproveOneTeamForUserResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -120113,7 +124263,7 @@ export const Automator = $root.Automator = (() => { * @memberof Automator.ApproveOneTeamForUserResponse * @instance */ - ApproveOneTeamForUserResponse.prototype.message = ""; + ApproveOneTeamForUserResponse.prototype.message = ''; /** * ApproveOneTeamForUserResponse teamUid. @@ -120129,7 +124279,7 @@ export const Automator = $root.Automator = (() => { * @memberof Automator.ApproveOneTeamForUserResponse * @instance */ - ApproveOneTeamForUserResponse.prototype.teamName = ""; + ApproveOneTeamForUserResponse.prototype.teamName = ''; /** * ApproveOneTeamForUserResponse userEncryptedTeamKey. @@ -120185,24 +124335,32 @@ export const Automator = $root.Automator = (() => { * @returns {$protobuf.Writer} Writer */ ApproveOneTeamForUserResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.approved != null && Object.hasOwnProperty.call(message, "approved")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.approved); - if (message.message != null && Object.hasOwnProperty.call(message, "message")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.message); - if (message.teamUid != null && Object.hasOwnProperty.call(message, "teamUid")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.teamUid); - if (message.teamName != null && Object.hasOwnProperty.call(message, "teamName")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.teamName); - if (message.userEncryptedTeamKey != null && Object.hasOwnProperty.call(message, "userEncryptedTeamKey")) - writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.userEncryptedTeamKey); - if (message.userEncryptedTeamKeyType != null && Object.hasOwnProperty.call(message, "userEncryptedTeamKeyType")) - writer.uint32(/* id 6, wireType 0 =*/48).int32(message.userEncryptedTeamKeyType); - if (message.userEncryptedTeamKeyByEcc != null && Object.hasOwnProperty.call(message, "userEncryptedTeamKeyByEcc")) - writer.uint32(/* id 7, wireType 2 =*/58).bytes(message.userEncryptedTeamKeyByEcc); - if (message.userEncryptedTeamKeyByEccType != null && Object.hasOwnProperty.call(message, "userEncryptedTeamKeyByEccType")) - writer.uint32(/* id 8, wireType 0 =*/64).int32(message.userEncryptedTeamKeyByEccType); + if (!writer) writer = $Writer.create(); + if (message.approved != null && Object.hasOwnProperty.call(message, 'approved')) + writer.uint32(/* id 1, wireType 0 =*/ 8).bool(message.approved); + if (message.message != null && Object.hasOwnProperty.call(message, 'message')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.message); + if (message.teamUid != null && Object.hasOwnProperty.call(message, 'teamUid')) + writer.uint32(/* id 3, wireType 2 =*/ 26).bytes(message.teamUid); + if (message.teamName != null && Object.hasOwnProperty.call(message, 'teamName')) + writer.uint32(/* id 4, wireType 2 =*/ 34).string(message.teamName); + if (message.userEncryptedTeamKey != null && Object.hasOwnProperty.call(message, 'userEncryptedTeamKey')) + writer.uint32(/* id 5, wireType 2 =*/ 42).bytes(message.userEncryptedTeamKey); + if ( + message.userEncryptedTeamKeyType != null && + Object.hasOwnProperty.call(message, 'userEncryptedTeamKeyType') + ) + writer.uint32(/* id 6, wireType 0 =*/ 48).int32(message.userEncryptedTeamKeyType); + if ( + message.userEncryptedTeamKeyByEcc != null && + Object.hasOwnProperty.call(message, 'userEncryptedTeamKeyByEcc') + ) + writer.uint32(/* id 7, wireType 2 =*/ 58).bytes(message.userEncryptedTeamKeyByEcc); + if ( + message.userEncryptedTeamKeyByEccType != null && + Object.hasOwnProperty.call(message, 'userEncryptedTeamKeyByEccType') + ) + writer.uint32(/* id 8, wireType 0 =*/ 64).int32(message.userEncryptedTeamKeyByEccType); return writer; }; @@ -120231,47 +124389,47 @@ export const Automator = $root.Automator = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ApproveOneTeamForUserResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Automator.ApproveOneTeamForUserResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Automator.ApproveOneTeamForUserResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.approved = reader.bool(); break; } - case 2: { + case 2: { message.message = reader.string(); break; } - case 3: { + case 3: { message.teamUid = reader.bytes(); break; } - case 4: { + case 4: { message.teamName = reader.string(); break; } - case 5: { + case 5: { message.userEncryptedTeamKey = reader.bytes(); break; } - case 6: { + case 6: { message.userEncryptedTeamKeyType = reader.int32(); break; } - case 7: { + case 7: { message.userEncryptedTeamKeyByEcc = reader.bytes(); break; } - case 8: { + case 8: { message.userEncryptedTeamKeyByEccType = reader.int32(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -120288,8 +124446,7 @@ export const Automator = $root.Automator = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ApproveOneTeamForUserResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -120302,47 +124459,62 @@ export const Automator = $root.Automator = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ ApproveOneTeamForUserResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.approved != null && message.hasOwnProperty("approved")) - if (typeof message.approved !== "boolean") - return "approved: boolean expected"; - if (message.message != null && message.hasOwnProperty("message")) - if (!$util.isString(message.message)) - return "message: string expected"; - if (message.teamUid != null && message.hasOwnProperty("teamUid")) - if (!(message.teamUid && typeof message.teamUid.length === "number" || $util.isString(message.teamUid))) - return "teamUid: buffer expected"; - if (message.teamName != null && message.hasOwnProperty("teamName")) - if (!$util.isString(message.teamName)) - return "teamName: string expected"; - if (message.userEncryptedTeamKey != null && message.hasOwnProperty("userEncryptedTeamKey")) - if (!(message.userEncryptedTeamKey && typeof message.userEncryptedTeamKey.length === "number" || $util.isString(message.userEncryptedTeamKey))) - return "userEncryptedTeamKey: buffer expected"; - if (message.userEncryptedTeamKeyType != null && message.hasOwnProperty("userEncryptedTeamKeyType")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.approved != null && message.hasOwnProperty('approved')) + if (typeof message.approved !== 'boolean') return 'approved: boolean expected'; + if (message.message != null && message.hasOwnProperty('message')) + if (!$util.isString(message.message)) return 'message: string expected'; + if (message.teamUid != null && message.hasOwnProperty('teamUid')) + if ( + !( + (message.teamUid && typeof message.teamUid.length === 'number') || + $util.isString(message.teamUid) + ) + ) + return 'teamUid: buffer expected'; + if (message.teamName != null && message.hasOwnProperty('teamName')) + if (!$util.isString(message.teamName)) return 'teamName: string expected'; + if (message.userEncryptedTeamKey != null && message.hasOwnProperty('userEncryptedTeamKey')) + if ( + !( + (message.userEncryptedTeamKey && typeof message.userEncryptedTeamKey.length === 'number') || + $util.isString(message.userEncryptedTeamKey) + ) + ) + return 'userEncryptedTeamKey: buffer expected'; + if (message.userEncryptedTeamKeyType != null && message.hasOwnProperty('userEncryptedTeamKeyType')) switch (message.userEncryptedTeamKeyType) { - default: - return "userEncryptedTeamKeyType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; + default: + return 'userEncryptedTeamKeyType: enum value expected'; + case 0: + case 1: + case 2: + case 3: + case 4: + break; } - if (message.userEncryptedTeamKeyByEcc != null && message.hasOwnProperty("userEncryptedTeamKeyByEcc")) - if (!(message.userEncryptedTeamKeyByEcc && typeof message.userEncryptedTeamKeyByEcc.length === "number" || $util.isString(message.userEncryptedTeamKeyByEcc))) - return "userEncryptedTeamKeyByEcc: buffer expected"; - if (message.userEncryptedTeamKeyByEccType != null && message.hasOwnProperty("userEncryptedTeamKeyByEccType")) + if (message.userEncryptedTeamKeyByEcc != null && message.hasOwnProperty('userEncryptedTeamKeyByEcc')) + if ( + !( + (message.userEncryptedTeamKeyByEcc && + typeof message.userEncryptedTeamKeyByEcc.length === 'number') || + $util.isString(message.userEncryptedTeamKeyByEcc) + ) + ) + return 'userEncryptedTeamKeyByEcc: buffer expected'; + if ( + message.userEncryptedTeamKeyByEccType != null && + message.hasOwnProperty('userEncryptedTeamKeyByEccType') + ) switch (message.userEncryptedTeamKeyByEccType) { - default: - return "userEncryptedTeamKeyByEccType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; + default: + return 'userEncryptedTeamKeyByEccType: enum value expected'; + case 0: + case 1: + case 2: + case 3: + case 4: + break; } return null; }; @@ -120356,85 +124528,96 @@ export const Automator = $root.Automator = (() => { * @returns {Automator.ApproveOneTeamForUserResponse} ApproveOneTeamForUserResponse */ ApproveOneTeamForUserResponse.fromObject = function fromObject(object) { - if (object instanceof $root.Automator.ApproveOneTeamForUserResponse) - return object; + if (object instanceof $root.Automator.ApproveOneTeamForUserResponse) return object; let message = new $root.Automator.ApproveOneTeamForUserResponse(); - if (object.approved != null) - message.approved = Boolean(object.approved); - if (object.message != null) - message.message = String(object.message); + if (object.approved != null) message.approved = Boolean(object.approved); + if (object.message != null) message.message = String(object.message); if (object.teamUid != null) - if (typeof object.teamUid === "string") - $util.base64.decode(object.teamUid, message.teamUid = $util.newBuffer($util.base64.length(object.teamUid)), 0); - else if (object.teamUid.length >= 0) - message.teamUid = object.teamUid; - if (object.teamName != null) - message.teamName = String(object.teamName); + if (typeof object.teamUid === 'string') + $util.base64.decode( + object.teamUid, + (message.teamUid = $util.newBuffer($util.base64.length(object.teamUid))), + 0 + ); + else if (object.teamUid.length >= 0) message.teamUid = object.teamUid; + if (object.teamName != null) message.teamName = String(object.teamName); if (object.userEncryptedTeamKey != null) - if (typeof object.userEncryptedTeamKey === "string") - $util.base64.decode(object.userEncryptedTeamKey, message.userEncryptedTeamKey = $util.newBuffer($util.base64.length(object.userEncryptedTeamKey)), 0); + if (typeof object.userEncryptedTeamKey === 'string') + $util.base64.decode( + object.userEncryptedTeamKey, + (message.userEncryptedTeamKey = $util.newBuffer( + $util.base64.length(object.userEncryptedTeamKey) + )), + 0 + ); else if (object.userEncryptedTeamKey.length >= 0) message.userEncryptedTeamKey = object.userEncryptedTeamKey; switch (object.userEncryptedTeamKeyType) { - default: - if (typeof object.userEncryptedTeamKeyType === "number") { - message.userEncryptedTeamKeyType = object.userEncryptedTeamKeyType; - break; - } - break; - case "KT_NO_KEY": - case 0: - message.userEncryptedTeamKeyType = 0; - break; - case "KT_ENCRYPTED_BY_DATA_KEY": - case 1: - message.userEncryptedTeamKeyType = 1; - break; - case "KT_ENCRYPTED_BY_PUBLIC_KEY": - case 2: - message.userEncryptedTeamKeyType = 2; - break; - case "KT_ENCRYPTED_BY_DATA_KEY_GCM": - case 3: - message.userEncryptedTeamKeyType = 3; - break; - case "KT_ENCRYPTED_BY_PUBLIC_KEY_ECC": - case 4: - message.userEncryptedTeamKeyType = 4; - break; + default: + if (typeof object.userEncryptedTeamKeyType === 'number') { + message.userEncryptedTeamKeyType = object.userEncryptedTeamKeyType; + break; + } + break; + case 'KT_NO_KEY': + case 0: + message.userEncryptedTeamKeyType = 0; + break; + case 'KT_ENCRYPTED_BY_DATA_KEY': + case 1: + message.userEncryptedTeamKeyType = 1; + break; + case 'KT_ENCRYPTED_BY_PUBLIC_KEY': + case 2: + message.userEncryptedTeamKeyType = 2; + break; + case 'KT_ENCRYPTED_BY_DATA_KEY_GCM': + case 3: + message.userEncryptedTeamKeyType = 3; + break; + case 'KT_ENCRYPTED_BY_PUBLIC_KEY_ECC': + case 4: + message.userEncryptedTeamKeyType = 4; + break; } if (object.userEncryptedTeamKeyByEcc != null) - if (typeof object.userEncryptedTeamKeyByEcc === "string") - $util.base64.decode(object.userEncryptedTeamKeyByEcc, message.userEncryptedTeamKeyByEcc = $util.newBuffer($util.base64.length(object.userEncryptedTeamKeyByEcc)), 0); + if (typeof object.userEncryptedTeamKeyByEcc === 'string') + $util.base64.decode( + object.userEncryptedTeamKeyByEcc, + (message.userEncryptedTeamKeyByEcc = $util.newBuffer( + $util.base64.length(object.userEncryptedTeamKeyByEcc) + )), + 0 + ); else if (object.userEncryptedTeamKeyByEcc.length >= 0) message.userEncryptedTeamKeyByEcc = object.userEncryptedTeamKeyByEcc; switch (object.userEncryptedTeamKeyByEccType) { - default: - if (typeof object.userEncryptedTeamKeyByEccType === "number") { - message.userEncryptedTeamKeyByEccType = object.userEncryptedTeamKeyByEccType; + default: + if (typeof object.userEncryptedTeamKeyByEccType === 'number') { + message.userEncryptedTeamKeyByEccType = object.userEncryptedTeamKeyByEccType; + break; + } + break; + case 'KT_NO_KEY': + case 0: + message.userEncryptedTeamKeyByEccType = 0; + break; + case 'KT_ENCRYPTED_BY_DATA_KEY': + case 1: + message.userEncryptedTeamKeyByEccType = 1; + break; + case 'KT_ENCRYPTED_BY_PUBLIC_KEY': + case 2: + message.userEncryptedTeamKeyByEccType = 2; + break; + case 'KT_ENCRYPTED_BY_DATA_KEY_GCM': + case 3: + message.userEncryptedTeamKeyByEccType = 3; + break; + case 'KT_ENCRYPTED_BY_PUBLIC_KEY_ECC': + case 4: + message.userEncryptedTeamKeyByEccType = 4; break; - } - break; - case "KT_NO_KEY": - case 0: - message.userEncryptedTeamKeyByEccType = 0; - break; - case "KT_ENCRYPTED_BY_DATA_KEY": - case 1: - message.userEncryptedTeamKeyByEccType = 1; - break; - case "KT_ENCRYPTED_BY_PUBLIC_KEY": - case 2: - message.userEncryptedTeamKeyByEccType = 2; - break; - case "KT_ENCRYPTED_BY_DATA_KEY_GCM": - case 3: - message.userEncryptedTeamKeyByEccType = 3; - break; - case "KT_ENCRYPTED_BY_PUBLIC_KEY_ECC": - case 4: - message.userEncryptedTeamKeyByEccType = 4; - break; } return message; }; @@ -120449,53 +124632,77 @@ export const Automator = $root.Automator = (() => { * @returns {Object.} Plain object */ ApproveOneTeamForUserResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { object.approved = false; - object.message = ""; - if (options.bytes === String) - object.teamUid = ""; + object.message = ''; + if (options.bytes === String) object.teamUid = ''; else { object.teamUid = []; - if (options.bytes !== Array) - object.teamUid = $util.newBuffer(object.teamUid); + if (options.bytes !== Array) object.teamUid = $util.newBuffer(object.teamUid); } - object.teamName = ""; - if (options.bytes === String) - object.userEncryptedTeamKey = ""; + object.teamName = ''; + if (options.bytes === String) object.userEncryptedTeamKey = ''; else { object.userEncryptedTeamKey = []; if (options.bytes !== Array) object.userEncryptedTeamKey = $util.newBuffer(object.userEncryptedTeamKey); } - object.userEncryptedTeamKeyType = options.enums === String ? "KT_NO_KEY" : 0; - if (options.bytes === String) - object.userEncryptedTeamKeyByEcc = ""; + object.userEncryptedTeamKeyType = options.enums === String ? 'KT_NO_KEY' : 0; + if (options.bytes === String) object.userEncryptedTeamKeyByEcc = ''; else { object.userEncryptedTeamKeyByEcc = []; if (options.bytes !== Array) object.userEncryptedTeamKeyByEcc = $util.newBuffer(object.userEncryptedTeamKeyByEcc); } - object.userEncryptedTeamKeyByEccType = options.enums === String ? "KT_NO_KEY" : 0; - } - if (message.approved != null && message.hasOwnProperty("approved")) - object.approved = message.approved; - if (message.message != null && message.hasOwnProperty("message")) - object.message = message.message; - if (message.teamUid != null && message.hasOwnProperty("teamUid")) - object.teamUid = options.bytes === String ? $util.base64.encode(message.teamUid, 0, message.teamUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.teamUid) : message.teamUid; - if (message.teamName != null && message.hasOwnProperty("teamName")) - object.teamName = message.teamName; - if (message.userEncryptedTeamKey != null && message.hasOwnProperty("userEncryptedTeamKey")) - object.userEncryptedTeamKey = options.bytes === String ? $util.base64.encode(message.userEncryptedTeamKey, 0, message.userEncryptedTeamKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.userEncryptedTeamKey) : message.userEncryptedTeamKey; - if (message.userEncryptedTeamKeyType != null && message.hasOwnProperty("userEncryptedTeamKeyType")) - object.userEncryptedTeamKeyType = options.enums === String ? $root.Enterprise.EncryptedKeyType[message.userEncryptedTeamKeyType] === undefined ? message.userEncryptedTeamKeyType : $root.Enterprise.EncryptedKeyType[message.userEncryptedTeamKeyType] : message.userEncryptedTeamKeyType; - if (message.userEncryptedTeamKeyByEcc != null && message.hasOwnProperty("userEncryptedTeamKeyByEcc")) - object.userEncryptedTeamKeyByEcc = options.bytes === String ? $util.base64.encode(message.userEncryptedTeamKeyByEcc, 0, message.userEncryptedTeamKeyByEcc.length) : options.bytes === Array ? Array.prototype.slice.call(message.userEncryptedTeamKeyByEcc) : message.userEncryptedTeamKeyByEcc; - if (message.userEncryptedTeamKeyByEccType != null && message.hasOwnProperty("userEncryptedTeamKeyByEccType")) - object.userEncryptedTeamKeyByEccType = options.enums === String ? $root.Enterprise.EncryptedKeyType[message.userEncryptedTeamKeyByEccType] === undefined ? message.userEncryptedTeamKeyByEccType : $root.Enterprise.EncryptedKeyType[message.userEncryptedTeamKeyByEccType] : message.userEncryptedTeamKeyByEccType; + object.userEncryptedTeamKeyByEccType = options.enums === String ? 'KT_NO_KEY' : 0; + } + if (message.approved != null && message.hasOwnProperty('approved')) object.approved = message.approved; + if (message.message != null && message.hasOwnProperty('message')) object.message = message.message; + if (message.teamUid != null && message.hasOwnProperty('teamUid')) + object.teamUid = + options.bytes === String + ? $util.base64.encode(message.teamUid, 0, message.teamUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.teamUid) + : message.teamUid; + if (message.teamName != null && message.hasOwnProperty('teamName')) object.teamName = message.teamName; + if (message.userEncryptedTeamKey != null && message.hasOwnProperty('userEncryptedTeamKey')) + object.userEncryptedTeamKey = + options.bytes === String + ? $util.base64.encode(message.userEncryptedTeamKey, 0, message.userEncryptedTeamKey.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.userEncryptedTeamKey) + : message.userEncryptedTeamKey; + if (message.userEncryptedTeamKeyType != null && message.hasOwnProperty('userEncryptedTeamKeyType')) + object.userEncryptedTeamKeyType = + options.enums === String + ? $root.Enterprise.EncryptedKeyType[message.userEncryptedTeamKeyType] === undefined + ? message.userEncryptedTeamKeyType + : $root.Enterprise.EncryptedKeyType[message.userEncryptedTeamKeyType] + : message.userEncryptedTeamKeyType; + if (message.userEncryptedTeamKeyByEcc != null && message.hasOwnProperty('userEncryptedTeamKeyByEcc')) + object.userEncryptedTeamKeyByEcc = + options.bytes === String + ? $util.base64.encode( + message.userEncryptedTeamKeyByEcc, + 0, + message.userEncryptedTeamKeyByEcc.length + ) + : options.bytes === Array + ? Array.prototype.slice.call(message.userEncryptedTeamKeyByEcc) + : message.userEncryptedTeamKeyByEcc; + if ( + message.userEncryptedTeamKeyByEccType != null && + message.hasOwnProperty('userEncryptedTeamKeyByEccType') + ) + object.userEncryptedTeamKeyByEccType = + options.enums === String + ? $root.Enterprise.EncryptedKeyType[message.userEncryptedTeamKeyByEccType] === undefined + ? message.userEncryptedTeamKeyByEccType + : $root.Enterprise.EncryptedKeyType[message.userEncryptedTeamKeyByEccType] + : message.userEncryptedTeamKeyByEccType; return object; }; @@ -120520,16 +124727,15 @@ export const Automator = $root.Automator = (() => { */ ApproveOneTeamForUserResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Automator.ApproveOneTeamForUserResponse"; + return typeUrlPrefix + '/Automator.ApproveOneTeamForUserResponse'; }; return ApproveOneTeamForUserResponse; })(); - Automator.ApproveTeamsRequest = (function() { - + Automator.ApproveTeamsRequest = (function () { /** * Properties of an ApproveTeamsRequest. * @memberof Automator @@ -120549,9 +124755,9 @@ export const Automator = $root.Automator = (() => { * Constructs a new ApproveTeamsRequest. * @memberof Automator * @classdesc ApproveTeamsRequest - * + * * A message from Keeper to Automator asking for approval to create one or more teams. - * + * * @return an AutomatorResponse containing an ApproveTeamsResponse * @implements IApproveTeamsRequest * @constructor @@ -120561,8 +124767,7 @@ export const Automator = $root.Automator = (() => { this.teamDescription = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -120571,7 +124776,7 @@ export const Automator = $root.Automator = (() => { * @memberof Automator.ApproveTeamsRequest * @instance */ - ApproveTeamsRequest.prototype.automatorId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + ApproveTeamsRequest.prototype.automatorId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * ApproveTeamsRequest ssoAuthenticationProtocolType. @@ -120587,7 +124792,7 @@ export const Automator = $root.Automator = (() => { * @memberof Automator.ApproveTeamsRequest * @instance */ - ApproveTeamsRequest.prototype.authMessage = ""; + ApproveTeamsRequest.prototype.authMessage = ''; /** * ApproveTeamsRequest email. @@ -120595,7 +124800,7 @@ export const Automator = $root.Automator = (() => { * @memberof Automator.ApproveTeamsRequest * @instance */ - ApproveTeamsRequest.prototype.email = ""; + ApproveTeamsRequest.prototype.email = ''; /** * ApproveTeamsRequest serverEccPublicKeyId. @@ -120611,7 +124816,7 @@ export const Automator = $root.Automator = (() => { * @memberof Automator.ApproveTeamsRequest * @instance */ - ApproveTeamsRequest.prototype.ipAddress = ""; + ApproveTeamsRequest.prototype.ipAddress = ''; /** * ApproveTeamsRequest teamDescription. @@ -120659,27 +124864,32 @@ export const Automator = $root.Automator = (() => { * @returns {$protobuf.Writer} Writer */ ApproveTeamsRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.automatorId != null && Object.hasOwnProperty.call(message, "automatorId")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.automatorId); - if (message.ssoAuthenticationProtocolType != null && Object.hasOwnProperty.call(message, "ssoAuthenticationProtocolType")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.ssoAuthenticationProtocolType); - if (message.authMessage != null && Object.hasOwnProperty.call(message, "authMessage")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.authMessage); - if (message.email != null && Object.hasOwnProperty.call(message, "email")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.email); - if (message.serverEccPublicKeyId != null && Object.hasOwnProperty.call(message, "serverEccPublicKeyId")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.serverEccPublicKeyId); - if (message.ipAddress != null && Object.hasOwnProperty.call(message, "ipAddress")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.ipAddress); + if (!writer) writer = $Writer.create(); + if (message.automatorId != null && Object.hasOwnProperty.call(message, 'automatorId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int64(message.automatorId); + if ( + message.ssoAuthenticationProtocolType != null && + Object.hasOwnProperty.call(message, 'ssoAuthenticationProtocolType') + ) + writer.uint32(/* id 2, wireType 0 =*/ 16).int32(message.ssoAuthenticationProtocolType); + if (message.authMessage != null && Object.hasOwnProperty.call(message, 'authMessage')) + writer.uint32(/* id 3, wireType 2 =*/ 26).string(message.authMessage); + if (message.email != null && Object.hasOwnProperty.call(message, 'email')) + writer.uint32(/* id 4, wireType 2 =*/ 34).string(message.email); + if (message.serverEccPublicKeyId != null && Object.hasOwnProperty.call(message, 'serverEccPublicKeyId')) + writer.uint32(/* id 5, wireType 0 =*/ 40).int32(message.serverEccPublicKeyId); + if (message.ipAddress != null && Object.hasOwnProperty.call(message, 'ipAddress')) + writer.uint32(/* id 6, wireType 2 =*/ 50).string(message.ipAddress); if (message.teamDescription != null && message.teamDescription.length) for (let i = 0; i < message.teamDescription.length; ++i) - $root.Automator.TeamDescription.encode(message.teamDescription[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.isEccOnly != null && Object.hasOwnProperty.call(message, "isEccOnly")) - writer.uint32(/* id 8, wireType 0 =*/64).bool(message.isEccOnly); - if (message.isTesting != null && Object.hasOwnProperty.call(message, "isTesting")) - writer.uint32(/* id 9, wireType 0 =*/72).bool(message.isTesting); + $root.Automator.TeamDescription.encode( + message.teamDescription[i], + writer.uint32(/* id 7, wireType 2 =*/ 58).fork() + ).ldelim(); + if (message.isEccOnly != null && Object.hasOwnProperty.call(message, 'isEccOnly')) + writer.uint32(/* id 8, wireType 0 =*/ 64).bool(message.isEccOnly); + if (message.isTesting != null && Object.hasOwnProperty.call(message, 'isTesting')) + writer.uint32(/* id 9, wireType 0 =*/ 72).bool(message.isTesting); return writer; }; @@ -120708,53 +124918,52 @@ export const Automator = $root.Automator = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ApproveTeamsRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Automator.ApproveTeamsRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Automator.ApproveTeamsRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.automatorId = reader.int64(); break; } - case 2: { + case 2: { message.ssoAuthenticationProtocolType = reader.int32(); break; } - case 3: { + case 3: { message.authMessage = reader.string(); break; } - case 4: { + case 4: { message.email = reader.string(); break; } - case 5: { + case 5: { message.serverEccPublicKeyId = reader.int32(); break; } - case 6: { + case 6: { message.ipAddress = reader.string(); break; } - case 7: { - if (!(message.teamDescription && message.teamDescription.length)) - message.teamDescription = []; + case 7: { + if (!(message.teamDescription && message.teamDescription.length)) message.teamDescription = []; message.teamDescription.push($root.Automator.TeamDescription.decode(reader, reader.uint32())); break; } - case 8: { + case 8: { message.isEccOnly = reader.bool(); break; } - case 9: { + case 9: { message.isTesting = reader.bool(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -120771,8 +124980,7 @@ export const Automator = $root.Automator = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ApproveTeamsRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -120785,47 +124993,48 @@ export const Automator = $root.Automator = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ ApproveTeamsRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.automatorId != null && message.hasOwnProperty("automatorId")) - if (!$util.isInteger(message.automatorId) && !(message.automatorId && $util.isInteger(message.automatorId.low) && $util.isInteger(message.automatorId.high))) - return "automatorId: integer|Long expected"; - if (message.ssoAuthenticationProtocolType != null && message.hasOwnProperty("ssoAuthenticationProtocolType")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.automatorId != null && message.hasOwnProperty('automatorId')) + if ( + !$util.isInteger(message.automatorId) && + !( + message.automatorId && + $util.isInteger(message.automatorId.low) && + $util.isInteger(message.automatorId.high) + ) + ) + return 'automatorId: integer|Long expected'; + if ( + message.ssoAuthenticationProtocolType != null && + message.hasOwnProperty('ssoAuthenticationProtocolType') + ) switch (message.ssoAuthenticationProtocolType) { - default: - return "ssoAuthenticationProtocolType: enum value expected"; - case 0: - case 1: - case 2: - break; + default: + return 'ssoAuthenticationProtocolType: enum value expected'; + case 0: + case 1: + case 2: + break; } - if (message.authMessage != null && message.hasOwnProperty("authMessage")) - if (!$util.isString(message.authMessage)) - return "authMessage: string expected"; - if (message.email != null && message.hasOwnProperty("email")) - if (!$util.isString(message.email)) - return "email: string expected"; - if (message.serverEccPublicKeyId != null && message.hasOwnProperty("serverEccPublicKeyId")) - if (!$util.isInteger(message.serverEccPublicKeyId)) - return "serverEccPublicKeyId: integer expected"; - if (message.ipAddress != null && message.hasOwnProperty("ipAddress")) - if (!$util.isString(message.ipAddress)) - return "ipAddress: string expected"; - if (message.teamDescription != null && message.hasOwnProperty("teamDescription")) { - if (!Array.isArray(message.teamDescription)) - return "teamDescription: array expected"; + if (message.authMessage != null && message.hasOwnProperty('authMessage')) + if (!$util.isString(message.authMessage)) return 'authMessage: string expected'; + if (message.email != null && message.hasOwnProperty('email')) + if (!$util.isString(message.email)) return 'email: string expected'; + if (message.serverEccPublicKeyId != null && message.hasOwnProperty('serverEccPublicKeyId')) + if (!$util.isInteger(message.serverEccPublicKeyId)) return 'serverEccPublicKeyId: integer expected'; + if (message.ipAddress != null && message.hasOwnProperty('ipAddress')) + if (!$util.isString(message.ipAddress)) return 'ipAddress: string expected'; + if (message.teamDescription != null && message.hasOwnProperty('teamDescription')) { + if (!Array.isArray(message.teamDescription)) return 'teamDescription: array expected'; for (let i = 0; i < message.teamDescription.length; ++i) { let error = $root.Automator.TeamDescription.verify(message.teamDescription[i]); - if (error) - return "teamDescription." + error; + if (error) return 'teamDescription.' + error; } } - if (message.isEccOnly != null && message.hasOwnProperty("isEccOnly")) - if (typeof message.isEccOnly !== "boolean") - return "isEccOnly: boolean expected"; - if (message.isTesting != null && message.hasOwnProperty("isTesting")) - if (typeof message.isTesting !== "boolean") - return "isTesting: boolean expected"; + if (message.isEccOnly != null && message.hasOwnProperty('isEccOnly')) + if (typeof message.isEccOnly !== 'boolean') return 'isEccOnly: boolean expected'; + if (message.isTesting != null && message.hasOwnProperty('isTesting')) + if (typeof message.isTesting !== 'boolean') return 'isTesting: boolean expected'; return null; }; @@ -120838,60 +125047,53 @@ export const Automator = $root.Automator = (() => { * @returns {Automator.ApproveTeamsRequest} ApproveTeamsRequest */ ApproveTeamsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Automator.ApproveTeamsRequest) - return object; + if (object instanceof $root.Automator.ApproveTeamsRequest) return object; let message = new $root.Automator.ApproveTeamsRequest(); if (object.automatorId != null) - if ($util.Long) - (message.automatorId = $util.Long.fromValue(object.automatorId)).unsigned = false; - else if (typeof object.automatorId === "string") - message.automatorId = parseInt(object.automatorId, 10); - else if (typeof object.automatorId === "number") - message.automatorId = object.automatorId; - else if (typeof object.automatorId === "object") - message.automatorId = new $util.LongBits(object.automatorId.low >>> 0, object.automatorId.high >>> 0).toNumber(); + if ($util.Long) (message.automatorId = $util.Long.fromValue(object.automatorId)).unsigned = false; + else if (typeof object.automatorId === 'string') message.automatorId = parseInt(object.automatorId, 10); + else if (typeof object.automatorId === 'number') message.automatorId = object.automatorId; + else if (typeof object.automatorId === 'object') + message.automatorId = new $util.LongBits( + object.automatorId.low >>> 0, + object.automatorId.high >>> 0 + ).toNumber(); switch (object.ssoAuthenticationProtocolType) { - default: - if (typeof object.ssoAuthenticationProtocolType === "number") { - message.ssoAuthenticationProtocolType = object.ssoAuthenticationProtocolType; - break; - } - break; - case "UNKNOWN_PROTOCOL": - case 0: - message.ssoAuthenticationProtocolType = 0; - break; - case "SAML2": - case 1: - message.ssoAuthenticationProtocolType = 1; - break; - case "JWT": - case 2: - message.ssoAuthenticationProtocolType = 2; - break; - } - if (object.authMessage != null) - message.authMessage = String(object.authMessage); - if (object.email != null) - message.email = String(object.email); - if (object.serverEccPublicKeyId != null) - message.serverEccPublicKeyId = object.serverEccPublicKeyId | 0; - if (object.ipAddress != null) - message.ipAddress = String(object.ipAddress); + default: + if (typeof object.ssoAuthenticationProtocolType === 'number') { + message.ssoAuthenticationProtocolType = object.ssoAuthenticationProtocolType; + break; + } + break; + case 'UNKNOWN_PROTOCOL': + case 0: + message.ssoAuthenticationProtocolType = 0; + break; + case 'SAML2': + case 1: + message.ssoAuthenticationProtocolType = 1; + break; + case 'JWT': + case 2: + message.ssoAuthenticationProtocolType = 2; + break; + } + if (object.authMessage != null) message.authMessage = String(object.authMessage); + if (object.email != null) message.email = String(object.email); + if (object.serverEccPublicKeyId != null) message.serverEccPublicKeyId = object.serverEccPublicKeyId | 0; + if (object.ipAddress != null) message.ipAddress = String(object.ipAddress); if (object.teamDescription) { if (!Array.isArray(object.teamDescription)) - throw TypeError(".Automator.ApproveTeamsRequest.teamDescription: array expected"); + throw TypeError('.Automator.ApproveTeamsRequest.teamDescription: array expected'); message.teamDescription = []; for (let i = 0; i < object.teamDescription.length; ++i) { - if (typeof object.teamDescription[i] !== "object") - throw TypeError(".Automator.ApproveTeamsRequest.teamDescription: object expected"); + if (typeof object.teamDescription[i] !== 'object') + throw TypeError('.Automator.ApproveTeamsRequest.teamDescription: object expected'); message.teamDescription[i] = $root.Automator.TeamDescription.fromObject(object.teamDescription[i]); } } - if (object.isEccOnly != null) - message.isEccOnly = Boolean(object.isEccOnly); - if (object.isTesting != null) - message.isTesting = Boolean(object.isTesting); + if (object.isEccOnly != null) message.isEccOnly = Boolean(object.isEccOnly); + if (object.isTesting != null) message.isTesting = Boolean(object.isTesting); return message; }; @@ -120905,49 +125107,63 @@ export const Automator = $root.Automator = (() => { * @returns {Object.} Plain object */ ApproveTeamsRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.teamDescription = []; + if (options.arrays || options.defaults) object.teamDescription = []; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.automatorId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.automatorId = options.longs === String ? "0" : 0; - object.ssoAuthenticationProtocolType = options.enums === String ? "UNKNOWN_PROTOCOL" : 0; - object.authMessage = ""; - object.email = ""; + object.automatorId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.automatorId = options.longs === String ? '0' : 0; + object.ssoAuthenticationProtocolType = options.enums === String ? 'UNKNOWN_PROTOCOL' : 0; + object.authMessage = ''; + object.email = ''; object.serverEccPublicKeyId = 0; - object.ipAddress = ""; + object.ipAddress = ''; object.isEccOnly = false; object.isTesting = false; } - if (message.automatorId != null && message.hasOwnProperty("automatorId")) - if (typeof message.automatorId === "number") + if (message.automatorId != null && message.hasOwnProperty('automatorId')) + if (typeof message.automatorId === 'number') object.automatorId = options.longs === String ? String(message.automatorId) : message.automatorId; else - object.automatorId = options.longs === String ? $util.Long.prototype.toString.call(message.automatorId) : options.longs === Number ? new $util.LongBits(message.automatorId.low >>> 0, message.automatorId.high >>> 0).toNumber() : message.automatorId; - if (message.ssoAuthenticationProtocolType != null && message.hasOwnProperty("ssoAuthenticationProtocolType")) - object.ssoAuthenticationProtocolType = options.enums === String ? $root.Automator.SsoAuthenticationProtocolType[message.ssoAuthenticationProtocolType] === undefined ? message.ssoAuthenticationProtocolType : $root.Automator.SsoAuthenticationProtocolType[message.ssoAuthenticationProtocolType] : message.ssoAuthenticationProtocolType; - if (message.authMessage != null && message.hasOwnProperty("authMessage")) + object.automatorId = + options.longs === String + ? $util.Long.prototype.toString.call(message.automatorId) + : options.longs === Number + ? new $util.LongBits( + message.automatorId.low >>> 0, + message.automatorId.high >>> 0 + ).toNumber() + : message.automatorId; + if ( + message.ssoAuthenticationProtocolType != null && + message.hasOwnProperty('ssoAuthenticationProtocolType') + ) + object.ssoAuthenticationProtocolType = + options.enums === String + ? $root.Automator.SsoAuthenticationProtocolType[message.ssoAuthenticationProtocolType] === + undefined + ? message.ssoAuthenticationProtocolType + : $root.Automator.SsoAuthenticationProtocolType[message.ssoAuthenticationProtocolType] + : message.ssoAuthenticationProtocolType; + if (message.authMessage != null && message.hasOwnProperty('authMessage')) object.authMessage = message.authMessage; - if (message.email != null && message.hasOwnProperty("email")) - object.email = message.email; - if (message.serverEccPublicKeyId != null && message.hasOwnProperty("serverEccPublicKeyId")) + if (message.email != null && message.hasOwnProperty('email')) object.email = message.email; + if (message.serverEccPublicKeyId != null && message.hasOwnProperty('serverEccPublicKeyId')) object.serverEccPublicKeyId = message.serverEccPublicKeyId; - if (message.ipAddress != null && message.hasOwnProperty("ipAddress")) - object.ipAddress = message.ipAddress; + if (message.ipAddress != null && message.hasOwnProperty('ipAddress')) object.ipAddress = message.ipAddress; if (message.teamDescription && message.teamDescription.length) { object.teamDescription = []; for (let j = 0; j < message.teamDescription.length; ++j) - object.teamDescription[j] = $root.Automator.TeamDescription.toObject(message.teamDescription[j], options); + object.teamDescription[j] = $root.Automator.TeamDescription.toObject( + message.teamDescription[j], + options + ); } - if (message.isEccOnly != null && message.hasOwnProperty("isEccOnly")) - object.isEccOnly = message.isEccOnly; - if (message.isTesting != null && message.hasOwnProperty("isTesting")) - object.isTesting = message.isTesting; + if (message.isEccOnly != null && message.hasOwnProperty('isEccOnly')) object.isEccOnly = message.isEccOnly; + if (message.isTesting != null && message.hasOwnProperty('isTesting')) object.isTesting = message.isTesting; return object; }; @@ -120972,16 +125188,15 @@ export const Automator = $root.Automator = (() => { */ ApproveTeamsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Automator.ApproveTeamsRequest"; + return typeUrlPrefix + '/Automator.ApproveTeamsRequest'; }; return ApproveTeamsRequest; })(); - Automator.ApproveTeamsResponse = (function() { - + Automator.ApproveTeamsResponse = (function () { /** * Properties of an ApproveTeamsResponse. * @memberof Automator @@ -120995,7 +125210,7 @@ export const Automator = $root.Automator = (() => { * Constructs a new ApproveTeamsResponse. * @memberof Automator * @classdesc ApproveTeamsResponse - * + * * The Response from Automator when a team is or is not approved. * It is included in an AutomatorResponse. * @implements IApproveTeamsResponse @@ -121006,8 +125221,7 @@ export const Automator = $root.Automator = (() => { this.approveTeamResponse = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -121016,7 +125230,7 @@ export const Automator = $root.Automator = (() => { * @memberof Automator.ApproveTeamsResponse * @instance */ - ApproveTeamsResponse.prototype.automatorId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + ApproveTeamsResponse.prototype.automatorId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * ApproveTeamsResponse message. @@ -121024,7 +125238,7 @@ export const Automator = $root.Automator = (() => { * @memberof Automator.ApproveTeamsResponse * @instance */ - ApproveTeamsResponse.prototype.message = ""; + ApproveTeamsResponse.prototype.message = ''; /** * ApproveTeamsResponse approveTeamResponse. @@ -121056,15 +125270,17 @@ export const Automator = $root.Automator = (() => { * @returns {$protobuf.Writer} Writer */ ApproveTeamsResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.automatorId != null && Object.hasOwnProperty.call(message, "automatorId")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.automatorId); - if (message.message != null && Object.hasOwnProperty.call(message, "message")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.message); + if (!writer) writer = $Writer.create(); + if (message.automatorId != null && Object.hasOwnProperty.call(message, 'automatorId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int64(message.automatorId); + if (message.message != null && Object.hasOwnProperty.call(message, 'message')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.message); if (message.approveTeamResponse != null && message.approveTeamResponse.length) for (let i = 0; i < message.approveTeamResponse.length; ++i) - $root.Automator.ApproveOneTeamResponse.encode(message.approveTeamResponse[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + $root.Automator.ApproveOneTeamResponse.encode( + message.approveTeamResponse[i], + writer.uint32(/* id 3, wireType 2 =*/ 26).fork() + ).ldelim(); return writer; }; @@ -121093,29 +125309,31 @@ export const Automator = $root.Automator = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ApproveTeamsResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Automator.ApproveTeamsResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Automator.ApproveTeamsResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.automatorId = reader.int64(); break; } - case 2: { + case 2: { message.message = reader.string(); break; } - case 3: { + case 3: { if (!(message.approveTeamResponse && message.approveTeamResponse.length)) message.approveTeamResponse = []; - message.approveTeamResponse.push($root.Automator.ApproveOneTeamResponse.decode(reader, reader.uint32())); + message.approveTeamResponse.push( + $root.Automator.ApproveOneTeamResponse.decode(reader, reader.uint32()) + ); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -121132,8 +125350,7 @@ export const Automator = $root.Automator = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ApproveTeamsResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -121146,21 +125363,24 @@ export const Automator = $root.Automator = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ ApproveTeamsResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.automatorId != null && message.hasOwnProperty("automatorId")) - if (!$util.isInteger(message.automatorId) && !(message.automatorId && $util.isInteger(message.automatorId.low) && $util.isInteger(message.automatorId.high))) - return "automatorId: integer|Long expected"; - if (message.message != null && message.hasOwnProperty("message")) - if (!$util.isString(message.message)) - return "message: string expected"; - if (message.approveTeamResponse != null && message.hasOwnProperty("approveTeamResponse")) { - if (!Array.isArray(message.approveTeamResponse)) - return "approveTeamResponse: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.automatorId != null && message.hasOwnProperty('automatorId')) + if ( + !$util.isInteger(message.automatorId) && + !( + message.automatorId && + $util.isInteger(message.automatorId.low) && + $util.isInteger(message.automatorId.high) + ) + ) + return 'automatorId: integer|Long expected'; + if (message.message != null && message.hasOwnProperty('message')) + if (!$util.isString(message.message)) return 'message: string expected'; + if (message.approveTeamResponse != null && message.hasOwnProperty('approveTeamResponse')) { + if (!Array.isArray(message.approveTeamResponse)) return 'approveTeamResponse: array expected'; for (let i = 0; i < message.approveTeamResponse.length; ++i) { let error = $root.Automator.ApproveOneTeamResponse.verify(message.approveTeamResponse[i]); - if (error) - return "approveTeamResponse." + error; + if (error) return 'approveTeamResponse.' + error; } } return null; @@ -121175,28 +125395,28 @@ export const Automator = $root.Automator = (() => { * @returns {Automator.ApproveTeamsResponse} ApproveTeamsResponse */ ApproveTeamsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.Automator.ApproveTeamsResponse) - return object; + if (object instanceof $root.Automator.ApproveTeamsResponse) return object; let message = new $root.Automator.ApproveTeamsResponse(); if (object.automatorId != null) - if ($util.Long) - (message.automatorId = $util.Long.fromValue(object.automatorId)).unsigned = false; - else if (typeof object.automatorId === "string") - message.automatorId = parseInt(object.automatorId, 10); - else if (typeof object.automatorId === "number") - message.automatorId = object.automatorId; - else if (typeof object.automatorId === "object") - message.automatorId = new $util.LongBits(object.automatorId.low >>> 0, object.automatorId.high >>> 0).toNumber(); - if (object.message != null) - message.message = String(object.message); + if ($util.Long) (message.automatorId = $util.Long.fromValue(object.automatorId)).unsigned = false; + else if (typeof object.automatorId === 'string') message.automatorId = parseInt(object.automatorId, 10); + else if (typeof object.automatorId === 'number') message.automatorId = object.automatorId; + else if (typeof object.automatorId === 'object') + message.automatorId = new $util.LongBits( + object.automatorId.low >>> 0, + object.automatorId.high >>> 0 + ).toNumber(); + if (object.message != null) message.message = String(object.message); if (object.approveTeamResponse) { if (!Array.isArray(object.approveTeamResponse)) - throw TypeError(".Automator.ApproveTeamsResponse.approveTeamResponse: array expected"); + throw TypeError('.Automator.ApproveTeamsResponse.approveTeamResponse: array expected'); message.approveTeamResponse = []; for (let i = 0; i < object.approveTeamResponse.length; ++i) { - if (typeof object.approveTeamResponse[i] !== "object") - throw TypeError(".Automator.ApproveTeamsResponse.approveTeamResponse: object expected"); - message.approveTeamResponse[i] = $root.Automator.ApproveOneTeamResponse.fromObject(object.approveTeamResponse[i]); + if (typeof object.approveTeamResponse[i] !== 'object') + throw TypeError('.Automator.ApproveTeamsResponse.approveTeamResponse: object expected'); + message.approveTeamResponse[i] = $root.Automator.ApproveOneTeamResponse.fromObject( + object.approveTeamResponse[i] + ); } } return message; @@ -121212,30 +125432,38 @@ export const Automator = $root.Automator = (() => { * @returns {Object.} Plain object */ ApproveTeamsResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.approveTeamResponse = []; + if (options.arrays || options.defaults) object.approveTeamResponse = []; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.automatorId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.automatorId = options.longs === String ? "0" : 0; - object.message = ""; + object.automatorId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.automatorId = options.longs === String ? '0' : 0; + object.message = ''; } - if (message.automatorId != null && message.hasOwnProperty("automatorId")) - if (typeof message.automatorId === "number") + if (message.automatorId != null && message.hasOwnProperty('automatorId')) + if (typeof message.automatorId === 'number') object.automatorId = options.longs === String ? String(message.automatorId) : message.automatorId; else - object.automatorId = options.longs === String ? $util.Long.prototype.toString.call(message.automatorId) : options.longs === Number ? new $util.LongBits(message.automatorId.low >>> 0, message.automatorId.high >>> 0).toNumber() : message.automatorId; - if (message.message != null && message.hasOwnProperty("message")) - object.message = message.message; + object.automatorId = + options.longs === String + ? $util.Long.prototype.toString.call(message.automatorId) + : options.longs === Number + ? new $util.LongBits( + message.automatorId.low >>> 0, + message.automatorId.high >>> 0 + ).toNumber() + : message.automatorId; + if (message.message != null && message.hasOwnProperty('message')) object.message = message.message; if (message.approveTeamResponse && message.approveTeamResponse.length) { object.approveTeamResponse = []; for (let j = 0; j < message.approveTeamResponse.length; ++j) - object.approveTeamResponse[j] = $root.Automator.ApproveOneTeamResponse.toObject(message.approveTeamResponse[j], options); + object.approveTeamResponse[j] = $root.Automator.ApproveOneTeamResponse.toObject( + message.approveTeamResponse[j], + options + ); } return object; }; @@ -121261,16 +125489,15 @@ export const Automator = $root.Automator = (() => { */ ApproveTeamsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Automator.ApproveTeamsResponse"; + return typeUrlPrefix + '/Automator.ApproveTeamsResponse'; }; return ApproveTeamsResponse; })(); - Automator.ApproveOneTeamResponse = (function() { - + Automator.ApproveOneTeamResponse = (function () { /** * Properties of an ApproveOneTeamResponse. * @memberof Automator @@ -121295,7 +125522,7 @@ export const Automator = $root.Automator = (() => { * Constructs a new ApproveOneTeamResponse. * @memberof Automator * @classdesc ApproveOneTeamResponse - * + * * The Response from Automator when a team is or is not approved. * It is included in an ApproveTeamsResponse. * Fields 5 and above will be empty if the team was not approved. @@ -121306,8 +125533,7 @@ export const Automator = $root.Automator = (() => { function ApproveOneTeamResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -121324,7 +125550,7 @@ export const Automator = $root.Automator = (() => { * @memberof Automator.ApproveOneTeamResponse * @instance */ - ApproveOneTeamResponse.prototype.message = ""; + ApproveOneTeamResponse.prototype.message = ''; /** * ApproveOneTeamResponse teamUid. @@ -121340,7 +125566,7 @@ export const Automator = $root.Automator = (() => { * @memberof Automator.ApproveOneTeamResponse * @instance */ - ApproveOneTeamResponse.prototype.teamName = ""; + ApproveOneTeamResponse.prototype.teamName = ''; /** * ApproveOneTeamResponse encryptedTeamKeyCbc. @@ -121444,36 +125670,53 @@ export const Automator = $root.Automator = (() => { * @returns {$protobuf.Writer} Writer */ ApproveOneTeamResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.approved != null && Object.hasOwnProperty.call(message, "approved")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.approved); - if (message.message != null && Object.hasOwnProperty.call(message, "message")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.message); - if (message.teamUid != null && Object.hasOwnProperty.call(message, "teamUid")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.teamUid); - if (message.teamName != null && Object.hasOwnProperty.call(message, "teamName")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.teamName); - if (message.encryptedTeamKeyCbc != null && Object.hasOwnProperty.call(message, "encryptedTeamKeyCbc")) - writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.encryptedTeamKeyCbc); - if (message.encryptedTeamKeyCbcType != null && Object.hasOwnProperty.call(message, "encryptedTeamKeyCbcType")) - writer.uint32(/* id 6, wireType 0 =*/48).int32(message.encryptedTeamKeyCbcType); - if (message.encryptedTeamKeyGcm != null && Object.hasOwnProperty.call(message, "encryptedTeamKeyGcm")) - writer.uint32(/* id 7, wireType 2 =*/58).bytes(message.encryptedTeamKeyGcm); - if (message.encryptedTeamKeyGcmType != null && Object.hasOwnProperty.call(message, "encryptedTeamKeyGcmType")) - writer.uint32(/* id 8, wireType 0 =*/64).int32(message.encryptedTeamKeyGcmType); - if (message.teamPublicKeyRsa != null && Object.hasOwnProperty.call(message, "teamPublicKeyRsa")) - writer.uint32(/* id 9, wireType 2 =*/74).bytes(message.teamPublicKeyRsa); - if (message.encryptedTeamPrivateKeyRsa != null && Object.hasOwnProperty.call(message, "encryptedTeamPrivateKeyRsa")) - writer.uint32(/* id 10, wireType 2 =*/82).bytes(message.encryptedTeamPrivateKeyRsa); - if (message.encryptedTeamPrivateKeyRsaType != null && Object.hasOwnProperty.call(message, "encryptedTeamPrivateKeyRsaType")) - writer.uint32(/* id 11, wireType 0 =*/88).int32(message.encryptedTeamPrivateKeyRsaType); - if (message.teamPublicKeyEcc != null && Object.hasOwnProperty.call(message, "teamPublicKeyEcc")) - writer.uint32(/* id 12, wireType 2 =*/98).bytes(message.teamPublicKeyEcc); - if (message.encryptedTeamPrivateKeyEcc != null && Object.hasOwnProperty.call(message, "encryptedTeamPrivateKeyEcc")) - writer.uint32(/* id 13, wireType 2 =*/106).bytes(message.encryptedTeamPrivateKeyEcc); - if (message.encryptedTeamPrivateKeyEccType != null && Object.hasOwnProperty.call(message, "encryptedTeamPrivateKeyEccType")) - writer.uint32(/* id 14, wireType 0 =*/112).int32(message.encryptedTeamPrivateKeyEccType); + if (!writer) writer = $Writer.create(); + if (message.approved != null && Object.hasOwnProperty.call(message, 'approved')) + writer.uint32(/* id 1, wireType 0 =*/ 8).bool(message.approved); + if (message.message != null && Object.hasOwnProperty.call(message, 'message')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.message); + if (message.teamUid != null && Object.hasOwnProperty.call(message, 'teamUid')) + writer.uint32(/* id 3, wireType 2 =*/ 26).bytes(message.teamUid); + if (message.teamName != null && Object.hasOwnProperty.call(message, 'teamName')) + writer.uint32(/* id 4, wireType 2 =*/ 34).string(message.teamName); + if (message.encryptedTeamKeyCbc != null && Object.hasOwnProperty.call(message, 'encryptedTeamKeyCbc')) + writer.uint32(/* id 5, wireType 2 =*/ 42).bytes(message.encryptedTeamKeyCbc); + if ( + message.encryptedTeamKeyCbcType != null && + Object.hasOwnProperty.call(message, 'encryptedTeamKeyCbcType') + ) + writer.uint32(/* id 6, wireType 0 =*/ 48).int32(message.encryptedTeamKeyCbcType); + if (message.encryptedTeamKeyGcm != null && Object.hasOwnProperty.call(message, 'encryptedTeamKeyGcm')) + writer.uint32(/* id 7, wireType 2 =*/ 58).bytes(message.encryptedTeamKeyGcm); + if ( + message.encryptedTeamKeyGcmType != null && + Object.hasOwnProperty.call(message, 'encryptedTeamKeyGcmType') + ) + writer.uint32(/* id 8, wireType 0 =*/ 64).int32(message.encryptedTeamKeyGcmType); + if (message.teamPublicKeyRsa != null && Object.hasOwnProperty.call(message, 'teamPublicKeyRsa')) + writer.uint32(/* id 9, wireType 2 =*/ 74).bytes(message.teamPublicKeyRsa); + if ( + message.encryptedTeamPrivateKeyRsa != null && + Object.hasOwnProperty.call(message, 'encryptedTeamPrivateKeyRsa') + ) + writer.uint32(/* id 10, wireType 2 =*/ 82).bytes(message.encryptedTeamPrivateKeyRsa); + if ( + message.encryptedTeamPrivateKeyRsaType != null && + Object.hasOwnProperty.call(message, 'encryptedTeamPrivateKeyRsaType') + ) + writer.uint32(/* id 11, wireType 0 =*/ 88).int32(message.encryptedTeamPrivateKeyRsaType); + if (message.teamPublicKeyEcc != null && Object.hasOwnProperty.call(message, 'teamPublicKeyEcc')) + writer.uint32(/* id 12, wireType 2 =*/ 98).bytes(message.teamPublicKeyEcc); + if ( + message.encryptedTeamPrivateKeyEcc != null && + Object.hasOwnProperty.call(message, 'encryptedTeamPrivateKeyEcc') + ) + writer.uint32(/* id 13, wireType 2 =*/ 106).bytes(message.encryptedTeamPrivateKeyEcc); + if ( + message.encryptedTeamPrivateKeyEccType != null && + Object.hasOwnProperty.call(message, 'encryptedTeamPrivateKeyEccType') + ) + writer.uint32(/* id 14, wireType 0 =*/ 112).int32(message.encryptedTeamPrivateKeyEccType); return writer; }; @@ -121502,71 +125745,71 @@ export const Automator = $root.Automator = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ApproveOneTeamResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Automator.ApproveOneTeamResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Automator.ApproveOneTeamResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.approved = reader.bool(); break; } - case 2: { + case 2: { message.message = reader.string(); break; } - case 3: { + case 3: { message.teamUid = reader.bytes(); break; } - case 4: { + case 4: { message.teamName = reader.string(); break; } - case 5: { + case 5: { message.encryptedTeamKeyCbc = reader.bytes(); break; } - case 6: { + case 6: { message.encryptedTeamKeyCbcType = reader.int32(); break; } - case 7: { + case 7: { message.encryptedTeamKeyGcm = reader.bytes(); break; } - case 8: { + case 8: { message.encryptedTeamKeyGcmType = reader.int32(); break; } - case 9: { + case 9: { message.teamPublicKeyRsa = reader.bytes(); break; } - case 10: { + case 10: { message.encryptedTeamPrivateKeyRsa = reader.bytes(); break; } - case 11: { + case 11: { message.encryptedTeamPrivateKeyRsaType = reader.int32(); break; } - case 12: { + case 12: { message.teamPublicKeyEcc = reader.bytes(); break; } - case 13: { + case 13: { message.encryptedTeamPrivateKeyEcc = reader.bytes(); break; } - case 14: { + case 14: { message.encryptedTeamPrivateKeyEccType = reader.int32(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -121583,8 +125826,7 @@ export const Automator = $root.Automator = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ApproveOneTeamResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -121597,81 +125839,120 @@ export const Automator = $root.Automator = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ ApproveOneTeamResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.approved != null && message.hasOwnProperty("approved")) - if (typeof message.approved !== "boolean") - return "approved: boolean expected"; - if (message.message != null && message.hasOwnProperty("message")) - if (!$util.isString(message.message)) - return "message: string expected"; - if (message.teamUid != null && message.hasOwnProperty("teamUid")) - if (!(message.teamUid && typeof message.teamUid.length === "number" || $util.isString(message.teamUid))) - return "teamUid: buffer expected"; - if (message.teamName != null && message.hasOwnProperty("teamName")) - if (!$util.isString(message.teamName)) - return "teamName: string expected"; - if (message.encryptedTeamKeyCbc != null && message.hasOwnProperty("encryptedTeamKeyCbc")) - if (!(message.encryptedTeamKeyCbc && typeof message.encryptedTeamKeyCbc.length === "number" || $util.isString(message.encryptedTeamKeyCbc))) - return "encryptedTeamKeyCbc: buffer expected"; - if (message.encryptedTeamKeyCbcType != null && message.hasOwnProperty("encryptedTeamKeyCbcType")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.approved != null && message.hasOwnProperty('approved')) + if (typeof message.approved !== 'boolean') return 'approved: boolean expected'; + if (message.message != null && message.hasOwnProperty('message')) + if (!$util.isString(message.message)) return 'message: string expected'; + if (message.teamUid != null && message.hasOwnProperty('teamUid')) + if ( + !( + (message.teamUid && typeof message.teamUid.length === 'number') || + $util.isString(message.teamUid) + ) + ) + return 'teamUid: buffer expected'; + if (message.teamName != null && message.hasOwnProperty('teamName')) + if (!$util.isString(message.teamName)) return 'teamName: string expected'; + if (message.encryptedTeamKeyCbc != null && message.hasOwnProperty('encryptedTeamKeyCbc')) + if ( + !( + (message.encryptedTeamKeyCbc && typeof message.encryptedTeamKeyCbc.length === 'number') || + $util.isString(message.encryptedTeamKeyCbc) + ) + ) + return 'encryptedTeamKeyCbc: buffer expected'; + if (message.encryptedTeamKeyCbcType != null && message.hasOwnProperty('encryptedTeamKeyCbcType')) switch (message.encryptedTeamKeyCbcType) { - default: - return "encryptedTeamKeyCbcType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; + default: + return 'encryptedTeamKeyCbcType: enum value expected'; + case 0: + case 1: + case 2: + case 3: + case 4: + break; } - if (message.encryptedTeamKeyGcm != null && message.hasOwnProperty("encryptedTeamKeyGcm")) - if (!(message.encryptedTeamKeyGcm && typeof message.encryptedTeamKeyGcm.length === "number" || $util.isString(message.encryptedTeamKeyGcm))) - return "encryptedTeamKeyGcm: buffer expected"; - if (message.encryptedTeamKeyGcmType != null && message.hasOwnProperty("encryptedTeamKeyGcmType")) + if (message.encryptedTeamKeyGcm != null && message.hasOwnProperty('encryptedTeamKeyGcm')) + if ( + !( + (message.encryptedTeamKeyGcm && typeof message.encryptedTeamKeyGcm.length === 'number') || + $util.isString(message.encryptedTeamKeyGcm) + ) + ) + return 'encryptedTeamKeyGcm: buffer expected'; + if (message.encryptedTeamKeyGcmType != null && message.hasOwnProperty('encryptedTeamKeyGcmType')) switch (message.encryptedTeamKeyGcmType) { - default: - return "encryptedTeamKeyGcmType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; + default: + return 'encryptedTeamKeyGcmType: enum value expected'; + case 0: + case 1: + case 2: + case 3: + case 4: + break; } - if (message.teamPublicKeyRsa != null && message.hasOwnProperty("teamPublicKeyRsa")) - if (!(message.teamPublicKeyRsa && typeof message.teamPublicKeyRsa.length === "number" || $util.isString(message.teamPublicKeyRsa))) - return "teamPublicKeyRsa: buffer expected"; - if (message.encryptedTeamPrivateKeyRsa != null && message.hasOwnProperty("encryptedTeamPrivateKeyRsa")) - if (!(message.encryptedTeamPrivateKeyRsa && typeof message.encryptedTeamPrivateKeyRsa.length === "number" || $util.isString(message.encryptedTeamPrivateKeyRsa))) - return "encryptedTeamPrivateKeyRsa: buffer expected"; - if (message.encryptedTeamPrivateKeyRsaType != null && message.hasOwnProperty("encryptedTeamPrivateKeyRsaType")) + if (message.teamPublicKeyRsa != null && message.hasOwnProperty('teamPublicKeyRsa')) + if ( + !( + (message.teamPublicKeyRsa && typeof message.teamPublicKeyRsa.length === 'number') || + $util.isString(message.teamPublicKeyRsa) + ) + ) + return 'teamPublicKeyRsa: buffer expected'; + if (message.encryptedTeamPrivateKeyRsa != null && message.hasOwnProperty('encryptedTeamPrivateKeyRsa')) + if ( + !( + (message.encryptedTeamPrivateKeyRsa && + typeof message.encryptedTeamPrivateKeyRsa.length === 'number') || + $util.isString(message.encryptedTeamPrivateKeyRsa) + ) + ) + return 'encryptedTeamPrivateKeyRsa: buffer expected'; + if ( + message.encryptedTeamPrivateKeyRsaType != null && + message.hasOwnProperty('encryptedTeamPrivateKeyRsaType') + ) switch (message.encryptedTeamPrivateKeyRsaType) { - default: - return "encryptedTeamPrivateKeyRsaType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; + default: + return 'encryptedTeamPrivateKeyRsaType: enum value expected'; + case 0: + case 1: + case 2: + case 3: + case 4: + break; } - if (message.teamPublicKeyEcc != null && message.hasOwnProperty("teamPublicKeyEcc")) - if (!(message.teamPublicKeyEcc && typeof message.teamPublicKeyEcc.length === "number" || $util.isString(message.teamPublicKeyEcc))) - return "teamPublicKeyEcc: buffer expected"; - if (message.encryptedTeamPrivateKeyEcc != null && message.hasOwnProperty("encryptedTeamPrivateKeyEcc")) - if (!(message.encryptedTeamPrivateKeyEcc && typeof message.encryptedTeamPrivateKeyEcc.length === "number" || $util.isString(message.encryptedTeamPrivateKeyEcc))) - return "encryptedTeamPrivateKeyEcc: buffer expected"; - if (message.encryptedTeamPrivateKeyEccType != null && message.hasOwnProperty("encryptedTeamPrivateKeyEccType")) + if (message.teamPublicKeyEcc != null && message.hasOwnProperty('teamPublicKeyEcc')) + if ( + !( + (message.teamPublicKeyEcc && typeof message.teamPublicKeyEcc.length === 'number') || + $util.isString(message.teamPublicKeyEcc) + ) + ) + return 'teamPublicKeyEcc: buffer expected'; + if (message.encryptedTeamPrivateKeyEcc != null && message.hasOwnProperty('encryptedTeamPrivateKeyEcc')) + if ( + !( + (message.encryptedTeamPrivateKeyEcc && + typeof message.encryptedTeamPrivateKeyEcc.length === 'number') || + $util.isString(message.encryptedTeamPrivateKeyEcc) + ) + ) + return 'encryptedTeamPrivateKeyEcc: buffer expected'; + if ( + message.encryptedTeamPrivateKeyEccType != null && + message.hasOwnProperty('encryptedTeamPrivateKeyEccType') + ) switch (message.encryptedTeamPrivateKeyEccType) { - default: - return "encryptedTeamPrivateKeyEccType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; + default: + return 'encryptedTeamPrivateKeyEccType: enum value expected'; + case 0: + case 1: + case 2: + case 3: + case 4: + break; } return null; }; @@ -121685,161 +125966,190 @@ export const Automator = $root.Automator = (() => { * @returns {Automator.ApproveOneTeamResponse} ApproveOneTeamResponse */ ApproveOneTeamResponse.fromObject = function fromObject(object) { - if (object instanceof $root.Automator.ApproveOneTeamResponse) - return object; + if (object instanceof $root.Automator.ApproveOneTeamResponse) return object; let message = new $root.Automator.ApproveOneTeamResponse(); - if (object.approved != null) - message.approved = Boolean(object.approved); - if (object.message != null) - message.message = String(object.message); + if (object.approved != null) message.approved = Boolean(object.approved); + if (object.message != null) message.message = String(object.message); if (object.teamUid != null) - if (typeof object.teamUid === "string") - $util.base64.decode(object.teamUid, message.teamUid = $util.newBuffer($util.base64.length(object.teamUid)), 0); - else if (object.teamUid.length >= 0) - message.teamUid = object.teamUid; - if (object.teamName != null) - message.teamName = String(object.teamName); + if (typeof object.teamUid === 'string') + $util.base64.decode( + object.teamUid, + (message.teamUid = $util.newBuffer($util.base64.length(object.teamUid))), + 0 + ); + else if (object.teamUid.length >= 0) message.teamUid = object.teamUid; + if (object.teamName != null) message.teamName = String(object.teamName); if (object.encryptedTeamKeyCbc != null) - if (typeof object.encryptedTeamKeyCbc === "string") - $util.base64.decode(object.encryptedTeamKeyCbc, message.encryptedTeamKeyCbc = $util.newBuffer($util.base64.length(object.encryptedTeamKeyCbc)), 0); + if (typeof object.encryptedTeamKeyCbc === 'string') + $util.base64.decode( + object.encryptedTeamKeyCbc, + (message.encryptedTeamKeyCbc = $util.newBuffer( + $util.base64.length(object.encryptedTeamKeyCbc) + )), + 0 + ); else if (object.encryptedTeamKeyCbc.length >= 0) message.encryptedTeamKeyCbc = object.encryptedTeamKeyCbc; switch (object.encryptedTeamKeyCbcType) { - default: - if (typeof object.encryptedTeamKeyCbcType === "number") { - message.encryptedTeamKeyCbcType = object.encryptedTeamKeyCbcType; - break; - } - break; - case "KT_NO_KEY": - case 0: - message.encryptedTeamKeyCbcType = 0; - break; - case "KT_ENCRYPTED_BY_DATA_KEY": - case 1: - message.encryptedTeamKeyCbcType = 1; - break; - case "KT_ENCRYPTED_BY_PUBLIC_KEY": - case 2: - message.encryptedTeamKeyCbcType = 2; - break; - case "KT_ENCRYPTED_BY_DATA_KEY_GCM": - case 3: - message.encryptedTeamKeyCbcType = 3; - break; - case "KT_ENCRYPTED_BY_PUBLIC_KEY_ECC": - case 4: - message.encryptedTeamKeyCbcType = 4; - break; + default: + if (typeof object.encryptedTeamKeyCbcType === 'number') { + message.encryptedTeamKeyCbcType = object.encryptedTeamKeyCbcType; + break; + } + break; + case 'KT_NO_KEY': + case 0: + message.encryptedTeamKeyCbcType = 0; + break; + case 'KT_ENCRYPTED_BY_DATA_KEY': + case 1: + message.encryptedTeamKeyCbcType = 1; + break; + case 'KT_ENCRYPTED_BY_PUBLIC_KEY': + case 2: + message.encryptedTeamKeyCbcType = 2; + break; + case 'KT_ENCRYPTED_BY_DATA_KEY_GCM': + case 3: + message.encryptedTeamKeyCbcType = 3; + break; + case 'KT_ENCRYPTED_BY_PUBLIC_KEY_ECC': + case 4: + message.encryptedTeamKeyCbcType = 4; + break; } if (object.encryptedTeamKeyGcm != null) - if (typeof object.encryptedTeamKeyGcm === "string") - $util.base64.decode(object.encryptedTeamKeyGcm, message.encryptedTeamKeyGcm = $util.newBuffer($util.base64.length(object.encryptedTeamKeyGcm)), 0); + if (typeof object.encryptedTeamKeyGcm === 'string') + $util.base64.decode( + object.encryptedTeamKeyGcm, + (message.encryptedTeamKeyGcm = $util.newBuffer( + $util.base64.length(object.encryptedTeamKeyGcm) + )), + 0 + ); else if (object.encryptedTeamKeyGcm.length >= 0) message.encryptedTeamKeyGcm = object.encryptedTeamKeyGcm; switch (object.encryptedTeamKeyGcmType) { - default: - if (typeof object.encryptedTeamKeyGcmType === "number") { - message.encryptedTeamKeyGcmType = object.encryptedTeamKeyGcmType; - break; - } - break; - case "KT_NO_KEY": - case 0: - message.encryptedTeamKeyGcmType = 0; - break; - case "KT_ENCRYPTED_BY_DATA_KEY": - case 1: - message.encryptedTeamKeyGcmType = 1; - break; - case "KT_ENCRYPTED_BY_PUBLIC_KEY": - case 2: - message.encryptedTeamKeyGcmType = 2; - break; - case "KT_ENCRYPTED_BY_DATA_KEY_GCM": - case 3: - message.encryptedTeamKeyGcmType = 3; - break; - case "KT_ENCRYPTED_BY_PUBLIC_KEY_ECC": - case 4: - message.encryptedTeamKeyGcmType = 4; - break; + default: + if (typeof object.encryptedTeamKeyGcmType === 'number') { + message.encryptedTeamKeyGcmType = object.encryptedTeamKeyGcmType; + break; + } + break; + case 'KT_NO_KEY': + case 0: + message.encryptedTeamKeyGcmType = 0; + break; + case 'KT_ENCRYPTED_BY_DATA_KEY': + case 1: + message.encryptedTeamKeyGcmType = 1; + break; + case 'KT_ENCRYPTED_BY_PUBLIC_KEY': + case 2: + message.encryptedTeamKeyGcmType = 2; + break; + case 'KT_ENCRYPTED_BY_DATA_KEY_GCM': + case 3: + message.encryptedTeamKeyGcmType = 3; + break; + case 'KT_ENCRYPTED_BY_PUBLIC_KEY_ECC': + case 4: + message.encryptedTeamKeyGcmType = 4; + break; } if (object.teamPublicKeyRsa != null) - if (typeof object.teamPublicKeyRsa === "string") - $util.base64.decode(object.teamPublicKeyRsa, message.teamPublicKeyRsa = $util.newBuffer($util.base64.length(object.teamPublicKeyRsa)), 0); - else if (object.teamPublicKeyRsa.length >= 0) - message.teamPublicKeyRsa = object.teamPublicKeyRsa; + if (typeof object.teamPublicKeyRsa === 'string') + $util.base64.decode( + object.teamPublicKeyRsa, + (message.teamPublicKeyRsa = $util.newBuffer($util.base64.length(object.teamPublicKeyRsa))), + 0 + ); + else if (object.teamPublicKeyRsa.length >= 0) message.teamPublicKeyRsa = object.teamPublicKeyRsa; if (object.encryptedTeamPrivateKeyRsa != null) - if (typeof object.encryptedTeamPrivateKeyRsa === "string") - $util.base64.decode(object.encryptedTeamPrivateKeyRsa, message.encryptedTeamPrivateKeyRsa = $util.newBuffer($util.base64.length(object.encryptedTeamPrivateKeyRsa)), 0); + if (typeof object.encryptedTeamPrivateKeyRsa === 'string') + $util.base64.decode( + object.encryptedTeamPrivateKeyRsa, + (message.encryptedTeamPrivateKeyRsa = $util.newBuffer( + $util.base64.length(object.encryptedTeamPrivateKeyRsa) + )), + 0 + ); else if (object.encryptedTeamPrivateKeyRsa.length >= 0) message.encryptedTeamPrivateKeyRsa = object.encryptedTeamPrivateKeyRsa; switch (object.encryptedTeamPrivateKeyRsaType) { - default: - if (typeof object.encryptedTeamPrivateKeyRsaType === "number") { - message.encryptedTeamPrivateKeyRsaType = object.encryptedTeamPrivateKeyRsaType; - break; - } - break; - case "KT_NO_KEY": - case 0: - message.encryptedTeamPrivateKeyRsaType = 0; - break; - case "KT_ENCRYPTED_BY_DATA_KEY": - case 1: - message.encryptedTeamPrivateKeyRsaType = 1; - break; - case "KT_ENCRYPTED_BY_PUBLIC_KEY": - case 2: - message.encryptedTeamPrivateKeyRsaType = 2; - break; - case "KT_ENCRYPTED_BY_DATA_KEY_GCM": - case 3: - message.encryptedTeamPrivateKeyRsaType = 3; - break; - case "KT_ENCRYPTED_BY_PUBLIC_KEY_ECC": - case 4: - message.encryptedTeamPrivateKeyRsaType = 4; - break; + default: + if (typeof object.encryptedTeamPrivateKeyRsaType === 'number') { + message.encryptedTeamPrivateKeyRsaType = object.encryptedTeamPrivateKeyRsaType; + break; + } + break; + case 'KT_NO_KEY': + case 0: + message.encryptedTeamPrivateKeyRsaType = 0; + break; + case 'KT_ENCRYPTED_BY_DATA_KEY': + case 1: + message.encryptedTeamPrivateKeyRsaType = 1; + break; + case 'KT_ENCRYPTED_BY_PUBLIC_KEY': + case 2: + message.encryptedTeamPrivateKeyRsaType = 2; + break; + case 'KT_ENCRYPTED_BY_DATA_KEY_GCM': + case 3: + message.encryptedTeamPrivateKeyRsaType = 3; + break; + case 'KT_ENCRYPTED_BY_PUBLIC_KEY_ECC': + case 4: + message.encryptedTeamPrivateKeyRsaType = 4; + break; } if (object.teamPublicKeyEcc != null) - if (typeof object.teamPublicKeyEcc === "string") - $util.base64.decode(object.teamPublicKeyEcc, message.teamPublicKeyEcc = $util.newBuffer($util.base64.length(object.teamPublicKeyEcc)), 0); - else if (object.teamPublicKeyEcc.length >= 0) - message.teamPublicKeyEcc = object.teamPublicKeyEcc; + if (typeof object.teamPublicKeyEcc === 'string') + $util.base64.decode( + object.teamPublicKeyEcc, + (message.teamPublicKeyEcc = $util.newBuffer($util.base64.length(object.teamPublicKeyEcc))), + 0 + ); + else if (object.teamPublicKeyEcc.length >= 0) message.teamPublicKeyEcc = object.teamPublicKeyEcc; if (object.encryptedTeamPrivateKeyEcc != null) - if (typeof object.encryptedTeamPrivateKeyEcc === "string") - $util.base64.decode(object.encryptedTeamPrivateKeyEcc, message.encryptedTeamPrivateKeyEcc = $util.newBuffer($util.base64.length(object.encryptedTeamPrivateKeyEcc)), 0); + if (typeof object.encryptedTeamPrivateKeyEcc === 'string') + $util.base64.decode( + object.encryptedTeamPrivateKeyEcc, + (message.encryptedTeamPrivateKeyEcc = $util.newBuffer( + $util.base64.length(object.encryptedTeamPrivateKeyEcc) + )), + 0 + ); else if (object.encryptedTeamPrivateKeyEcc.length >= 0) message.encryptedTeamPrivateKeyEcc = object.encryptedTeamPrivateKeyEcc; switch (object.encryptedTeamPrivateKeyEccType) { - default: - if (typeof object.encryptedTeamPrivateKeyEccType === "number") { - message.encryptedTeamPrivateKeyEccType = object.encryptedTeamPrivateKeyEccType; + default: + if (typeof object.encryptedTeamPrivateKeyEccType === 'number') { + message.encryptedTeamPrivateKeyEccType = object.encryptedTeamPrivateKeyEccType; + break; + } + break; + case 'KT_NO_KEY': + case 0: + message.encryptedTeamPrivateKeyEccType = 0; + break; + case 'KT_ENCRYPTED_BY_DATA_KEY': + case 1: + message.encryptedTeamPrivateKeyEccType = 1; + break; + case 'KT_ENCRYPTED_BY_PUBLIC_KEY': + case 2: + message.encryptedTeamPrivateKeyEccType = 2; + break; + case 'KT_ENCRYPTED_BY_DATA_KEY_GCM': + case 3: + message.encryptedTeamPrivateKeyEccType = 3; + break; + case 'KT_ENCRYPTED_BY_PUBLIC_KEY_ECC': + case 4: + message.encryptedTeamPrivateKeyEccType = 4; break; - } - break; - case "KT_NO_KEY": - case 0: - message.encryptedTeamPrivateKeyEccType = 0; - break; - case "KT_ENCRYPTED_BY_DATA_KEY": - case 1: - message.encryptedTeamPrivateKeyEccType = 1; - break; - case "KT_ENCRYPTED_BY_PUBLIC_KEY": - case 2: - message.encryptedTeamPrivateKeyEccType = 2; - break; - case "KT_ENCRYPTED_BY_DATA_KEY_GCM": - case 3: - message.encryptedTeamPrivateKeyEccType = 3; - break; - case "KT_ENCRYPTED_BY_PUBLIC_KEY_ECC": - case 4: - message.encryptedTeamPrivateKeyEccType = 4; - break; } return message; }; @@ -121854,95 +126164,150 @@ export const Automator = $root.Automator = (() => { * @returns {Object.} Plain object */ ApproveOneTeamResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { object.approved = false; - object.message = ""; - if (options.bytes === String) - object.teamUid = ""; + object.message = ''; + if (options.bytes === String) object.teamUid = ''; else { object.teamUid = []; - if (options.bytes !== Array) - object.teamUid = $util.newBuffer(object.teamUid); + if (options.bytes !== Array) object.teamUid = $util.newBuffer(object.teamUid); } - object.teamName = ""; - if (options.bytes === String) - object.encryptedTeamKeyCbc = ""; + object.teamName = ''; + if (options.bytes === String) object.encryptedTeamKeyCbc = ''; else { object.encryptedTeamKeyCbc = []; if (options.bytes !== Array) object.encryptedTeamKeyCbc = $util.newBuffer(object.encryptedTeamKeyCbc); } - object.encryptedTeamKeyCbcType = options.enums === String ? "KT_NO_KEY" : 0; - if (options.bytes === String) - object.encryptedTeamKeyGcm = ""; + object.encryptedTeamKeyCbcType = options.enums === String ? 'KT_NO_KEY' : 0; + if (options.bytes === String) object.encryptedTeamKeyGcm = ''; else { object.encryptedTeamKeyGcm = []; if (options.bytes !== Array) object.encryptedTeamKeyGcm = $util.newBuffer(object.encryptedTeamKeyGcm); } - object.encryptedTeamKeyGcmType = options.enums === String ? "KT_NO_KEY" : 0; - if (options.bytes === String) - object.teamPublicKeyRsa = ""; + object.encryptedTeamKeyGcmType = options.enums === String ? 'KT_NO_KEY' : 0; + if (options.bytes === String) object.teamPublicKeyRsa = ''; else { object.teamPublicKeyRsa = []; - if (options.bytes !== Array) - object.teamPublicKeyRsa = $util.newBuffer(object.teamPublicKeyRsa); + if (options.bytes !== Array) object.teamPublicKeyRsa = $util.newBuffer(object.teamPublicKeyRsa); } - if (options.bytes === String) - object.encryptedTeamPrivateKeyRsa = ""; + if (options.bytes === String) object.encryptedTeamPrivateKeyRsa = ''; else { object.encryptedTeamPrivateKeyRsa = []; if (options.bytes !== Array) object.encryptedTeamPrivateKeyRsa = $util.newBuffer(object.encryptedTeamPrivateKeyRsa); } - object.encryptedTeamPrivateKeyRsaType = options.enums === String ? "KT_NO_KEY" : 0; - if (options.bytes === String) - object.teamPublicKeyEcc = ""; + object.encryptedTeamPrivateKeyRsaType = options.enums === String ? 'KT_NO_KEY' : 0; + if (options.bytes === String) object.teamPublicKeyEcc = ''; else { object.teamPublicKeyEcc = []; - if (options.bytes !== Array) - object.teamPublicKeyEcc = $util.newBuffer(object.teamPublicKeyEcc); + if (options.bytes !== Array) object.teamPublicKeyEcc = $util.newBuffer(object.teamPublicKeyEcc); } - if (options.bytes === String) - object.encryptedTeamPrivateKeyEcc = ""; + if (options.bytes === String) object.encryptedTeamPrivateKeyEcc = ''; else { object.encryptedTeamPrivateKeyEcc = []; if (options.bytes !== Array) object.encryptedTeamPrivateKeyEcc = $util.newBuffer(object.encryptedTeamPrivateKeyEcc); } - object.encryptedTeamPrivateKeyEccType = options.enums === String ? "KT_NO_KEY" : 0; - } - if (message.approved != null && message.hasOwnProperty("approved")) - object.approved = message.approved; - if (message.message != null && message.hasOwnProperty("message")) - object.message = message.message; - if (message.teamUid != null && message.hasOwnProperty("teamUid")) - object.teamUid = options.bytes === String ? $util.base64.encode(message.teamUid, 0, message.teamUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.teamUid) : message.teamUid; - if (message.teamName != null && message.hasOwnProperty("teamName")) - object.teamName = message.teamName; - if (message.encryptedTeamKeyCbc != null && message.hasOwnProperty("encryptedTeamKeyCbc")) - object.encryptedTeamKeyCbc = options.bytes === String ? $util.base64.encode(message.encryptedTeamKeyCbc, 0, message.encryptedTeamKeyCbc.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedTeamKeyCbc) : message.encryptedTeamKeyCbc; - if (message.encryptedTeamKeyCbcType != null && message.hasOwnProperty("encryptedTeamKeyCbcType")) - object.encryptedTeamKeyCbcType = options.enums === String ? $root.Enterprise.EncryptedKeyType[message.encryptedTeamKeyCbcType] === undefined ? message.encryptedTeamKeyCbcType : $root.Enterprise.EncryptedKeyType[message.encryptedTeamKeyCbcType] : message.encryptedTeamKeyCbcType; - if (message.encryptedTeamKeyGcm != null && message.hasOwnProperty("encryptedTeamKeyGcm")) - object.encryptedTeamKeyGcm = options.bytes === String ? $util.base64.encode(message.encryptedTeamKeyGcm, 0, message.encryptedTeamKeyGcm.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedTeamKeyGcm) : message.encryptedTeamKeyGcm; - if (message.encryptedTeamKeyGcmType != null && message.hasOwnProperty("encryptedTeamKeyGcmType")) - object.encryptedTeamKeyGcmType = options.enums === String ? $root.Enterprise.EncryptedKeyType[message.encryptedTeamKeyGcmType] === undefined ? message.encryptedTeamKeyGcmType : $root.Enterprise.EncryptedKeyType[message.encryptedTeamKeyGcmType] : message.encryptedTeamKeyGcmType; - if (message.teamPublicKeyRsa != null && message.hasOwnProperty("teamPublicKeyRsa")) - object.teamPublicKeyRsa = options.bytes === String ? $util.base64.encode(message.teamPublicKeyRsa, 0, message.teamPublicKeyRsa.length) : options.bytes === Array ? Array.prototype.slice.call(message.teamPublicKeyRsa) : message.teamPublicKeyRsa; - if (message.encryptedTeamPrivateKeyRsa != null && message.hasOwnProperty("encryptedTeamPrivateKeyRsa")) - object.encryptedTeamPrivateKeyRsa = options.bytes === String ? $util.base64.encode(message.encryptedTeamPrivateKeyRsa, 0, message.encryptedTeamPrivateKeyRsa.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedTeamPrivateKeyRsa) : message.encryptedTeamPrivateKeyRsa; - if (message.encryptedTeamPrivateKeyRsaType != null && message.hasOwnProperty("encryptedTeamPrivateKeyRsaType")) - object.encryptedTeamPrivateKeyRsaType = options.enums === String ? $root.Enterprise.EncryptedKeyType[message.encryptedTeamPrivateKeyRsaType] === undefined ? message.encryptedTeamPrivateKeyRsaType : $root.Enterprise.EncryptedKeyType[message.encryptedTeamPrivateKeyRsaType] : message.encryptedTeamPrivateKeyRsaType; - if (message.teamPublicKeyEcc != null && message.hasOwnProperty("teamPublicKeyEcc")) - object.teamPublicKeyEcc = options.bytes === String ? $util.base64.encode(message.teamPublicKeyEcc, 0, message.teamPublicKeyEcc.length) : options.bytes === Array ? Array.prototype.slice.call(message.teamPublicKeyEcc) : message.teamPublicKeyEcc; - if (message.encryptedTeamPrivateKeyEcc != null && message.hasOwnProperty("encryptedTeamPrivateKeyEcc")) - object.encryptedTeamPrivateKeyEcc = options.bytes === String ? $util.base64.encode(message.encryptedTeamPrivateKeyEcc, 0, message.encryptedTeamPrivateKeyEcc.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedTeamPrivateKeyEcc) : message.encryptedTeamPrivateKeyEcc; - if (message.encryptedTeamPrivateKeyEccType != null && message.hasOwnProperty("encryptedTeamPrivateKeyEccType")) - object.encryptedTeamPrivateKeyEccType = options.enums === String ? $root.Enterprise.EncryptedKeyType[message.encryptedTeamPrivateKeyEccType] === undefined ? message.encryptedTeamPrivateKeyEccType : $root.Enterprise.EncryptedKeyType[message.encryptedTeamPrivateKeyEccType] : message.encryptedTeamPrivateKeyEccType; + object.encryptedTeamPrivateKeyEccType = options.enums === String ? 'KT_NO_KEY' : 0; + } + if (message.approved != null && message.hasOwnProperty('approved')) object.approved = message.approved; + if (message.message != null && message.hasOwnProperty('message')) object.message = message.message; + if (message.teamUid != null && message.hasOwnProperty('teamUid')) + object.teamUid = + options.bytes === String + ? $util.base64.encode(message.teamUid, 0, message.teamUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.teamUid) + : message.teamUid; + if (message.teamName != null && message.hasOwnProperty('teamName')) object.teamName = message.teamName; + if (message.encryptedTeamKeyCbc != null && message.hasOwnProperty('encryptedTeamKeyCbc')) + object.encryptedTeamKeyCbc = + options.bytes === String + ? $util.base64.encode(message.encryptedTeamKeyCbc, 0, message.encryptedTeamKeyCbc.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.encryptedTeamKeyCbc) + : message.encryptedTeamKeyCbc; + if (message.encryptedTeamKeyCbcType != null && message.hasOwnProperty('encryptedTeamKeyCbcType')) + object.encryptedTeamKeyCbcType = + options.enums === String + ? $root.Enterprise.EncryptedKeyType[message.encryptedTeamKeyCbcType] === undefined + ? message.encryptedTeamKeyCbcType + : $root.Enterprise.EncryptedKeyType[message.encryptedTeamKeyCbcType] + : message.encryptedTeamKeyCbcType; + if (message.encryptedTeamKeyGcm != null && message.hasOwnProperty('encryptedTeamKeyGcm')) + object.encryptedTeamKeyGcm = + options.bytes === String + ? $util.base64.encode(message.encryptedTeamKeyGcm, 0, message.encryptedTeamKeyGcm.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.encryptedTeamKeyGcm) + : message.encryptedTeamKeyGcm; + if (message.encryptedTeamKeyGcmType != null && message.hasOwnProperty('encryptedTeamKeyGcmType')) + object.encryptedTeamKeyGcmType = + options.enums === String + ? $root.Enterprise.EncryptedKeyType[message.encryptedTeamKeyGcmType] === undefined + ? message.encryptedTeamKeyGcmType + : $root.Enterprise.EncryptedKeyType[message.encryptedTeamKeyGcmType] + : message.encryptedTeamKeyGcmType; + if (message.teamPublicKeyRsa != null && message.hasOwnProperty('teamPublicKeyRsa')) + object.teamPublicKeyRsa = + options.bytes === String + ? $util.base64.encode(message.teamPublicKeyRsa, 0, message.teamPublicKeyRsa.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.teamPublicKeyRsa) + : message.teamPublicKeyRsa; + if (message.encryptedTeamPrivateKeyRsa != null && message.hasOwnProperty('encryptedTeamPrivateKeyRsa')) + object.encryptedTeamPrivateKeyRsa = + options.bytes === String + ? $util.base64.encode( + message.encryptedTeamPrivateKeyRsa, + 0, + message.encryptedTeamPrivateKeyRsa.length + ) + : options.bytes === Array + ? Array.prototype.slice.call(message.encryptedTeamPrivateKeyRsa) + : message.encryptedTeamPrivateKeyRsa; + if ( + message.encryptedTeamPrivateKeyRsaType != null && + message.hasOwnProperty('encryptedTeamPrivateKeyRsaType') + ) + object.encryptedTeamPrivateKeyRsaType = + options.enums === String + ? $root.Enterprise.EncryptedKeyType[message.encryptedTeamPrivateKeyRsaType] === undefined + ? message.encryptedTeamPrivateKeyRsaType + : $root.Enterprise.EncryptedKeyType[message.encryptedTeamPrivateKeyRsaType] + : message.encryptedTeamPrivateKeyRsaType; + if (message.teamPublicKeyEcc != null && message.hasOwnProperty('teamPublicKeyEcc')) + object.teamPublicKeyEcc = + options.bytes === String + ? $util.base64.encode(message.teamPublicKeyEcc, 0, message.teamPublicKeyEcc.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.teamPublicKeyEcc) + : message.teamPublicKeyEcc; + if (message.encryptedTeamPrivateKeyEcc != null && message.hasOwnProperty('encryptedTeamPrivateKeyEcc')) + object.encryptedTeamPrivateKeyEcc = + options.bytes === String + ? $util.base64.encode( + message.encryptedTeamPrivateKeyEcc, + 0, + message.encryptedTeamPrivateKeyEcc.length + ) + : options.bytes === Array + ? Array.prototype.slice.call(message.encryptedTeamPrivateKeyEcc) + : message.encryptedTeamPrivateKeyEcc; + if ( + message.encryptedTeamPrivateKeyEccType != null && + message.hasOwnProperty('encryptedTeamPrivateKeyEccType') + ) + object.encryptedTeamPrivateKeyEccType = + options.enums === String + ? $root.Enterprise.EncryptedKeyType[message.encryptedTeamPrivateKeyEccType] === undefined + ? message.encryptedTeamPrivateKeyEccType + : $root.Enterprise.EncryptedKeyType[message.encryptedTeamPrivateKeyEccType] + : message.encryptedTeamPrivateKeyEccType; return object; }; @@ -121967,16 +126332,15 @@ export const Automator = $root.Automator = (() => { */ ApproveOneTeamResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Automator.ApproveOneTeamResponse"; + return typeUrlPrefix + '/Automator.ApproveOneTeamResponse'; }; return ApproveOneTeamResponse; })(); - Automator.SSLCertificateInfo = (function() { - + Automator.SSLCertificateInfo = (function () { /** * Properties of a SSLCertificateInfo. * @memberof Automator @@ -122001,8 +126365,7 @@ export const Automator = $root.Automator = (() => { function SSLCertificateInfo(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -122011,7 +126374,7 @@ export const Automator = $root.Automator = (() => { * @memberof Automator.SSLCertificateInfo * @instance */ - SSLCertificateInfo.prototype.hostname = ""; + SSLCertificateInfo.prototype.hostname = ''; /** * SSLCertificateInfo subject. @@ -122019,7 +126382,7 @@ export const Automator = $root.Automator = (() => { * @memberof Automator.SSLCertificateInfo * @instance */ - SSLCertificateInfo.prototype.subject = ""; + SSLCertificateInfo.prototype.subject = ''; /** * SSLCertificateInfo issuedBy. @@ -122027,7 +126390,7 @@ export const Automator = $root.Automator = (() => { * @memberof Automator.SSLCertificateInfo * @instance */ - SSLCertificateInfo.prototype.issuedBy = ""; + SSLCertificateInfo.prototype.issuedBy = ''; /** * SSLCertificateInfo issuedOn. @@ -122035,7 +126398,7 @@ export const Automator = $root.Automator = (() => { * @memberof Automator.SSLCertificateInfo * @instance */ - SSLCertificateInfo.prototype.issuedOn = ""; + SSLCertificateInfo.prototype.issuedOn = ''; /** * SSLCertificateInfo expiresOn. @@ -122043,7 +126406,7 @@ export const Automator = $root.Automator = (() => { * @memberof Automator.SSLCertificateInfo * @instance */ - SSLCertificateInfo.prototype.expiresOn = ""; + SSLCertificateInfo.prototype.expiresOn = ''; /** * SSLCertificateInfo checkedOn. @@ -122051,7 +126414,7 @@ export const Automator = $root.Automator = (() => { * @memberof Automator.SSLCertificateInfo * @instance */ - SSLCertificateInfo.prototype.checkedOn = ""; + SSLCertificateInfo.prototype.checkedOn = ''; /** * Creates a new SSLCertificateInfo instance using the specified properties. @@ -122075,20 +126438,19 @@ export const Automator = $root.Automator = (() => { * @returns {$protobuf.Writer} Writer */ SSLCertificateInfo.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.hostname != null && Object.hasOwnProperty.call(message, "hostname")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.hostname); - if (message.subject != null && Object.hasOwnProperty.call(message, "subject")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.subject); - if (message.issuedBy != null && Object.hasOwnProperty.call(message, "issuedBy")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.issuedBy); - if (message.issuedOn != null && Object.hasOwnProperty.call(message, "issuedOn")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.issuedOn); - if (message.expiresOn != null && Object.hasOwnProperty.call(message, "expiresOn")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.expiresOn); - if (message.checkedOn != null && Object.hasOwnProperty.call(message, "checkedOn")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.checkedOn); + if (!writer) writer = $Writer.create(); + if (message.hostname != null && Object.hasOwnProperty.call(message, 'hostname')) + writer.uint32(/* id 1, wireType 2 =*/ 10).string(message.hostname); + if (message.subject != null && Object.hasOwnProperty.call(message, 'subject')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.subject); + if (message.issuedBy != null && Object.hasOwnProperty.call(message, 'issuedBy')) + writer.uint32(/* id 3, wireType 2 =*/ 26).string(message.issuedBy); + if (message.issuedOn != null && Object.hasOwnProperty.call(message, 'issuedOn')) + writer.uint32(/* id 4, wireType 2 =*/ 34).string(message.issuedOn); + if (message.expiresOn != null && Object.hasOwnProperty.call(message, 'expiresOn')) + writer.uint32(/* id 5, wireType 2 =*/ 42).string(message.expiresOn); + if (message.checkedOn != null && Object.hasOwnProperty.call(message, 'checkedOn')) + writer.uint32(/* id 6, wireType 2 =*/ 50).string(message.checkedOn); return writer; }; @@ -122117,39 +126479,39 @@ export const Automator = $root.Automator = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SSLCertificateInfo.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Automator.SSLCertificateInfo(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Automator.SSLCertificateInfo(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.hostname = reader.string(); break; } - case 2: { + case 2: { message.subject = reader.string(); break; } - case 3: { + case 3: { message.issuedBy = reader.string(); break; } - case 4: { + case 4: { message.issuedOn = reader.string(); break; } - case 5: { + case 5: { message.expiresOn = reader.string(); break; } - case 6: { + case 6: { message.checkedOn = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -122166,8 +126528,7 @@ export const Automator = $root.Automator = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SSLCertificateInfo.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -122180,26 +126541,19 @@ export const Automator = $root.Automator = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ SSLCertificateInfo.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.hostname != null && message.hasOwnProperty("hostname")) - if (!$util.isString(message.hostname)) - return "hostname: string expected"; - if (message.subject != null && message.hasOwnProperty("subject")) - if (!$util.isString(message.subject)) - return "subject: string expected"; - if (message.issuedBy != null && message.hasOwnProperty("issuedBy")) - if (!$util.isString(message.issuedBy)) - return "issuedBy: string expected"; - if (message.issuedOn != null && message.hasOwnProperty("issuedOn")) - if (!$util.isString(message.issuedOn)) - return "issuedOn: string expected"; - if (message.expiresOn != null && message.hasOwnProperty("expiresOn")) - if (!$util.isString(message.expiresOn)) - return "expiresOn: string expected"; - if (message.checkedOn != null && message.hasOwnProperty("checkedOn")) - if (!$util.isString(message.checkedOn)) - return "checkedOn: string expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.hostname != null && message.hasOwnProperty('hostname')) + if (!$util.isString(message.hostname)) return 'hostname: string expected'; + if (message.subject != null && message.hasOwnProperty('subject')) + if (!$util.isString(message.subject)) return 'subject: string expected'; + if (message.issuedBy != null && message.hasOwnProperty('issuedBy')) + if (!$util.isString(message.issuedBy)) return 'issuedBy: string expected'; + if (message.issuedOn != null && message.hasOwnProperty('issuedOn')) + if (!$util.isString(message.issuedOn)) return 'issuedOn: string expected'; + if (message.expiresOn != null && message.hasOwnProperty('expiresOn')) + if (!$util.isString(message.expiresOn)) return 'expiresOn: string expected'; + if (message.checkedOn != null && message.hasOwnProperty('checkedOn')) + if (!$util.isString(message.checkedOn)) return 'checkedOn: string expected'; return null; }; @@ -122212,21 +126566,14 @@ export const Automator = $root.Automator = (() => { * @returns {Automator.SSLCertificateInfo} SSLCertificateInfo */ SSLCertificateInfo.fromObject = function fromObject(object) { - if (object instanceof $root.Automator.SSLCertificateInfo) - return object; + if (object instanceof $root.Automator.SSLCertificateInfo) return object; let message = new $root.Automator.SSLCertificateInfo(); - if (object.hostname != null) - message.hostname = String(object.hostname); - if (object.subject != null) - message.subject = String(object.subject); - if (object.issuedBy != null) - message.issuedBy = String(object.issuedBy); - if (object.issuedOn != null) - message.issuedOn = String(object.issuedOn); - if (object.expiresOn != null) - message.expiresOn = String(object.expiresOn); - if (object.checkedOn != null) - message.checkedOn = String(object.checkedOn); + if (object.hostname != null) message.hostname = String(object.hostname); + if (object.subject != null) message.subject = String(object.subject); + if (object.issuedBy != null) message.issuedBy = String(object.issuedBy); + if (object.issuedOn != null) message.issuedOn = String(object.issuedOn); + if (object.expiresOn != null) message.expiresOn = String(object.expiresOn); + if (object.checkedOn != null) message.checkedOn = String(object.checkedOn); return message; }; @@ -122240,29 +126587,22 @@ export const Automator = $root.Automator = (() => { * @returns {Object.} Plain object */ SSLCertificateInfo.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - object.hostname = ""; - object.subject = ""; - object.issuedBy = ""; - object.issuedOn = ""; - object.expiresOn = ""; - object.checkedOn = ""; + object.hostname = ''; + object.subject = ''; + object.issuedBy = ''; + object.issuedOn = ''; + object.expiresOn = ''; + object.checkedOn = ''; } - if (message.hostname != null && message.hasOwnProperty("hostname")) - object.hostname = message.hostname; - if (message.subject != null && message.hasOwnProperty("subject")) - object.subject = message.subject; - if (message.issuedBy != null && message.hasOwnProperty("issuedBy")) - object.issuedBy = message.issuedBy; - if (message.issuedOn != null && message.hasOwnProperty("issuedOn")) - object.issuedOn = message.issuedOn; - if (message.expiresOn != null && message.hasOwnProperty("expiresOn")) - object.expiresOn = message.expiresOn; - if (message.checkedOn != null && message.hasOwnProperty("checkedOn")) - object.checkedOn = message.checkedOn; + if (message.hostname != null && message.hasOwnProperty('hostname')) object.hostname = message.hostname; + if (message.subject != null && message.hasOwnProperty('subject')) object.subject = message.subject; + if (message.issuedBy != null && message.hasOwnProperty('issuedBy')) object.issuedBy = message.issuedBy; + if (message.issuedOn != null && message.hasOwnProperty('issuedOn')) object.issuedOn = message.issuedOn; + if (message.expiresOn != null && message.hasOwnProperty('expiresOn')) object.expiresOn = message.expiresOn; + if (message.checkedOn != null && message.hasOwnProperty('checkedOn')) object.checkedOn = message.checkedOn; return object; }; @@ -122287,19 +126627,18 @@ export const Automator = $root.Automator = (() => { */ SSLCertificateInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Automator.SSLCertificateInfo"; + return typeUrlPrefix + '/Automator.SSLCertificateInfo'; }; return SSLCertificateInfo; })(); return Automator; -})(); - -export const SsoCloud = $root.SsoCloud = (() => { +})()); +export const SsoCloud = ($root.SsoCloud = (() => { /** * Namespace SsoCloud. * @exports SsoCloud @@ -122314,10 +126653,11 @@ export const SsoCloud = $root.SsoCloud = (() => { * @property {number} SAML2=0 SAML2 value * @property {number} JWT=1 JWT value */ - SsoCloud.AuthProtocolType = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "SAML2"] = 0; - values[valuesById[1] = "JWT"] = 1; + SsoCloud.AuthProtocolType = (function () { + const valuesById = {}, + values = Object.create(valuesById); + values[(valuesById[0] = 'SAML2')] = 0; + values[(valuesById[1] = 'JWT')] = 1; return values; })(); @@ -122337,19 +126677,20 @@ export const SsoCloud = $root.SsoCloud = (() => { * @property {number} LONG=9 LONG value * @property {number} TIMESTAMP=10 TIMESTAMP value */ - SsoCloud.DataType = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "ANY"] = 0; - values[valuesById[1] = "BOOLEAN"] = 1; - values[valuesById[2] = "INTEGER"] = 2; - values[valuesById[3] = "STRING"] = 3; - values[valuesById[4] = "BYTES"] = 4; - values[valuesById[5] = "URL"] = 5; - values[valuesById[6] = "com_keepersecurity_proto_SsoCloud_DataType"] = 6; - values[valuesById[7] = "com_keepersecurity_proto_SsoCloud_AuthProtocolType"] = 7; - values[valuesById[8] = "com_keepersecurity_proto_SsoCloud_SsoIdpType"] = 8; - values[valuesById[9] = "LONG"] = 9; - values[valuesById[10] = "TIMESTAMP"] = 10; + SsoCloud.DataType = (function () { + const valuesById = {}, + values = Object.create(valuesById); + values[(valuesById[0] = 'ANY')] = 0; + values[(valuesById[1] = 'BOOLEAN')] = 1; + values[(valuesById[2] = 'INTEGER')] = 2; + values[(valuesById[3] = 'STRING')] = 3; + values[(valuesById[4] = 'BYTES')] = 4; + values[(valuesById[5] = 'URL')] = 5; + values[(valuesById[6] = 'com_keepersecurity_proto_SsoCloud_DataType')] = 6; + values[(valuesById[7] = 'com_keepersecurity_proto_SsoCloud_AuthProtocolType')] = 7; + values[(valuesById[8] = 'com_keepersecurity_proto_SsoCloud_SsoIdpType')] = 8; + values[(valuesById[9] = 'LONG')] = 9; + values[(valuesById[10] = 'TIMESTAMP')] = 10; return values; })(); @@ -122362,12 +126703,13 @@ export const SsoCloud = $root.SsoCloud = (() => { * @property {number} DELETE=2 DELETE value * @property {number} RESET_TO_DEFAULT=3 RESET_TO_DEFAULT value */ - SsoCloud.SsoCloudSettingOperationType = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "SET"] = 0; - values[valuesById[1] = "GET"] = 1; - values[valuesById[2] = "DELETE"] = 2; - values[valuesById[3] = "RESET_TO_DEFAULT"] = 3; + SsoCloud.SsoCloudSettingOperationType = (function () { + const valuesById = {}, + values = Object.create(valuesById); + values[(valuesById[0] = 'SET')] = 0; + values[(valuesById[1] = 'GET')] = 1; + values[(valuesById[2] = 'DELETE')] = 2; + values[(valuesById[3] = 'RESET_TO_DEFAULT')] = 3; return values; })(); @@ -122404,41 +126746,41 @@ export const SsoCloud = $root.SsoCloud = (() => { * @property {number} VERIDIUM=26 VERIDIUM value * @property {number} CAS=27 CAS value */ - SsoCloud.SsoIdpType = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "XX_UNUSED"] = 0; - values[valuesById[1] = "GENERIC"] = 1; - values[valuesById[2] = "F5"] = 2; - values[valuesById[3] = "GOOGLE"] = 3; - values[valuesById[4] = "OKTA"] = 4; - values[valuesById[5] = "ADFS"] = 5; - values[valuesById[6] = "AZURE"] = 6; - values[valuesById[7] = "ONELOGIN"] = 7; - values[valuesById[8] = "AWS"] = 8; - values[valuesById[9] = "CENTRIFY"] = 9; - values[valuesById[10] = "DUO"] = 10; - values[valuesById[11] = "IBM"] = 11; - values[valuesById[12] = "JUMPCLOUD"] = 12; - values[valuesById[13] = "PING"] = 13; - values[valuesById[14] = "PINGONE"] = 14; - values[valuesById[15] = "RSA"] = 15; - values[valuesById[16] = "SECUREAUTH"] = 16; - values[valuesById[17] = "THALES"] = 17; - values[valuesById[18] = "AUTH0"] = 18; - values[valuesById[19] = "BEYOND"] = 19; - values[valuesById[20] = "HYPR"] = 20; - values[valuesById[21] = "PUREID"] = 21; - values[valuesById[22] = "SDO"] = 22; - values[valuesById[23] = "TRAIT"] = 23; - values[valuesById[24] = "TRANSMIT"] = 24; - values[valuesById[25] = "TRUSONA"] = 25; - values[valuesById[26] = "VERIDIUM"] = 26; - values[valuesById[27] = "CAS"] = 27; + SsoCloud.SsoIdpType = (function () { + const valuesById = {}, + values = Object.create(valuesById); + values[(valuesById[0] = 'XX_UNUSED')] = 0; + values[(valuesById[1] = 'GENERIC')] = 1; + values[(valuesById[2] = 'F5')] = 2; + values[(valuesById[3] = 'GOOGLE')] = 3; + values[(valuesById[4] = 'OKTA')] = 4; + values[(valuesById[5] = 'ADFS')] = 5; + values[(valuesById[6] = 'AZURE')] = 6; + values[(valuesById[7] = 'ONELOGIN')] = 7; + values[(valuesById[8] = 'AWS')] = 8; + values[(valuesById[9] = 'CENTRIFY')] = 9; + values[(valuesById[10] = 'DUO')] = 10; + values[(valuesById[11] = 'IBM')] = 11; + values[(valuesById[12] = 'JUMPCLOUD')] = 12; + values[(valuesById[13] = 'PING')] = 13; + values[(valuesById[14] = 'PINGONE')] = 14; + values[(valuesById[15] = 'RSA')] = 15; + values[(valuesById[16] = 'SECUREAUTH')] = 16; + values[(valuesById[17] = 'THALES')] = 17; + values[(valuesById[18] = 'AUTH0')] = 18; + values[(valuesById[19] = 'BEYOND')] = 19; + values[(valuesById[20] = 'HYPR')] = 20; + values[(valuesById[21] = 'PUREID')] = 21; + values[(valuesById[22] = 'SDO')] = 22; + values[(valuesById[23] = 'TRAIT')] = 23; + values[(valuesById[24] = 'TRANSMIT')] = 24; + values[(valuesById[25] = 'TRUSONA')] = 25; + values[(valuesById[26] = 'VERIDIUM')] = 26; + values[(valuesById[27] = 'CAS')] = 27; return values; })(); - SsoCloud.SsoCloudSettingValue = (function() { - + SsoCloud.SsoCloudSettingValue = (function () { /** * Properties of a SsoCloudSettingValue. * @memberof SsoCloud @@ -122465,8 +126807,7 @@ export const SsoCloud = $root.SsoCloud = (() => { function SsoCloudSettingValue(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -122475,7 +126816,7 @@ export const SsoCloud = $root.SsoCloud = (() => { * @memberof SsoCloud.SsoCloudSettingValue * @instance */ - SsoCloudSettingValue.prototype.settingId = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + SsoCloudSettingValue.prototype.settingId = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; /** * SsoCloudSettingValue settingName. @@ -122483,7 +126824,7 @@ export const SsoCloud = $root.SsoCloud = (() => { * @memberof SsoCloud.SsoCloudSettingValue * @instance */ - SsoCloudSettingValue.prototype.settingName = ""; + SsoCloudSettingValue.prototype.settingName = ''; /** * SsoCloudSettingValue label. @@ -122491,7 +126832,7 @@ export const SsoCloud = $root.SsoCloud = (() => { * @memberof SsoCloud.SsoCloudSettingValue * @instance */ - SsoCloudSettingValue.prototype.label = ""; + SsoCloudSettingValue.prototype.label = ''; /** * SsoCloudSettingValue value. @@ -122499,7 +126840,7 @@ export const SsoCloud = $root.SsoCloud = (() => { * @memberof SsoCloud.SsoCloudSettingValue * @instance */ - SsoCloudSettingValue.prototype.value = ""; + SsoCloudSettingValue.prototype.value = ''; /** * SsoCloudSettingValue valueType. @@ -122515,7 +126856,7 @@ export const SsoCloud = $root.SsoCloud = (() => { * @memberof SsoCloud.SsoCloudSettingValue * @instance */ - SsoCloudSettingValue.prototype.lastModified = ""; + SsoCloudSettingValue.prototype.lastModified = ''; /** * SsoCloudSettingValue isFromFile. @@ -122563,26 +126904,25 @@ export const SsoCloud = $root.SsoCloud = (() => { * @returns {$protobuf.Writer} Writer */ SsoCloudSettingValue.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.settingId != null && Object.hasOwnProperty.call(message, "settingId")) - writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.settingId); - if (message.settingName != null && Object.hasOwnProperty.call(message, "settingName")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.settingName); - if (message.label != null && Object.hasOwnProperty.call(message, "label")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.label); - if (message.value != null && Object.hasOwnProperty.call(message, "value")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.value); - if (message.valueType != null && Object.hasOwnProperty.call(message, "valueType")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.valueType); - if (message.lastModified != null && Object.hasOwnProperty.call(message, "lastModified")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.lastModified); - if (message.isFromFile != null && Object.hasOwnProperty.call(message, "isFromFile")) - writer.uint32(/* id 8, wireType 0 =*/64).bool(message.isFromFile); - if (message.isEditable != null && Object.hasOwnProperty.call(message, "isEditable")) - writer.uint32(/* id 9, wireType 0 =*/72).bool(message.isEditable); - if (message.isRequired != null && Object.hasOwnProperty.call(message, "isRequired")) - writer.uint32(/* id 10, wireType 0 =*/80).bool(message.isRequired); + if (!writer) writer = $Writer.create(); + if (message.settingId != null && Object.hasOwnProperty.call(message, 'settingId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).uint64(message.settingId); + if (message.settingName != null && Object.hasOwnProperty.call(message, 'settingName')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.settingName); + if (message.label != null && Object.hasOwnProperty.call(message, 'label')) + writer.uint32(/* id 3, wireType 2 =*/ 26).string(message.label); + if (message.value != null && Object.hasOwnProperty.call(message, 'value')) + writer.uint32(/* id 4, wireType 2 =*/ 34).string(message.value); + if (message.valueType != null && Object.hasOwnProperty.call(message, 'valueType')) + writer.uint32(/* id 5, wireType 0 =*/ 40).int32(message.valueType); + if (message.lastModified != null && Object.hasOwnProperty.call(message, 'lastModified')) + writer.uint32(/* id 7, wireType 2 =*/ 58).string(message.lastModified); + if (message.isFromFile != null && Object.hasOwnProperty.call(message, 'isFromFile')) + writer.uint32(/* id 8, wireType 0 =*/ 64).bool(message.isFromFile); + if (message.isEditable != null && Object.hasOwnProperty.call(message, 'isEditable')) + writer.uint32(/* id 9, wireType 0 =*/ 72).bool(message.isEditable); + if (message.isRequired != null && Object.hasOwnProperty.call(message, 'isRequired')) + writer.uint32(/* id 10, wireType 0 =*/ 80).bool(message.isRequired); return writer; }; @@ -122611,51 +126951,51 @@ export const SsoCloud = $root.SsoCloud = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SsoCloudSettingValue.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.SsoCloud.SsoCloudSettingValue(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.SsoCloud.SsoCloudSettingValue(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.settingId = reader.uint64(); break; } - case 2: { + case 2: { message.settingName = reader.string(); break; } - case 3: { + case 3: { message.label = reader.string(); break; } - case 4: { + case 4: { message.value = reader.string(); break; } - case 5: { + case 5: { message.valueType = reader.int32(); break; } - case 7: { + case 7: { message.lastModified = reader.string(); break; } - case 8: { + case 8: { message.isFromFile = reader.bool(); break; } - case 9: { + case 9: { message.isEditable = reader.bool(); break; } - case 10: { + case 10: { message.isRequired = reader.bool(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -122672,8 +127012,7 @@ export const SsoCloud = $root.SsoCloud = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SsoCloudSettingValue.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -122686,49 +127025,48 @@ export const SsoCloud = $root.SsoCloud = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ SsoCloudSettingValue.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.settingId != null && message.hasOwnProperty("settingId")) - if (!$util.isInteger(message.settingId) && !(message.settingId && $util.isInteger(message.settingId.low) && $util.isInteger(message.settingId.high))) - return "settingId: integer|Long expected"; - if (message.settingName != null && message.hasOwnProperty("settingName")) - if (!$util.isString(message.settingName)) - return "settingName: string expected"; - if (message.label != null && message.hasOwnProperty("label")) - if (!$util.isString(message.label)) - return "label: string expected"; - if (message.value != null && message.hasOwnProperty("value")) - if (!$util.isString(message.value)) - return "value: string expected"; - if (message.valueType != null && message.hasOwnProperty("valueType")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.settingId != null && message.hasOwnProperty('settingId')) + if ( + !$util.isInteger(message.settingId) && + !( + message.settingId && + $util.isInteger(message.settingId.low) && + $util.isInteger(message.settingId.high) + ) + ) + return 'settingId: integer|Long expected'; + if (message.settingName != null && message.hasOwnProperty('settingName')) + if (!$util.isString(message.settingName)) return 'settingName: string expected'; + if (message.label != null && message.hasOwnProperty('label')) + if (!$util.isString(message.label)) return 'label: string expected'; + if (message.value != null && message.hasOwnProperty('value')) + if (!$util.isString(message.value)) return 'value: string expected'; + if (message.valueType != null && message.hasOwnProperty('valueType')) switch (message.valueType) { - default: - return "valueType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - case 10: - break; + default: + return 'valueType: enum value expected'; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + case 10: + break; } - if (message.lastModified != null && message.hasOwnProperty("lastModified")) - if (!$util.isString(message.lastModified)) - return "lastModified: string expected"; - if (message.isFromFile != null && message.hasOwnProperty("isFromFile")) - if (typeof message.isFromFile !== "boolean") - return "isFromFile: boolean expected"; - if (message.isEditable != null && message.hasOwnProperty("isEditable")) - if (typeof message.isEditable !== "boolean") - return "isEditable: boolean expected"; - if (message.isRequired != null && message.hasOwnProperty("isRequired")) - if (typeof message.isRequired !== "boolean") - return "isRequired: boolean expected"; + if (message.lastModified != null && message.hasOwnProperty('lastModified')) + if (!$util.isString(message.lastModified)) return 'lastModified: string expected'; + if (message.isFromFile != null && message.hasOwnProperty('isFromFile')) + if (typeof message.isFromFile !== 'boolean') return 'isFromFile: boolean expected'; + if (message.isEditable != null && message.hasOwnProperty('isEditable')) + if (typeof message.isEditable !== 'boolean') return 'isEditable: boolean expected'; + if (message.isRequired != null && message.hasOwnProperty('isRequired')) + if (typeof message.isRequired !== 'boolean') return 'isRequired: boolean expected'; return null; }; @@ -122741,84 +127079,76 @@ export const SsoCloud = $root.SsoCloud = (() => { * @returns {SsoCloud.SsoCloudSettingValue} SsoCloudSettingValue */ SsoCloudSettingValue.fromObject = function fromObject(object) { - if (object instanceof $root.SsoCloud.SsoCloudSettingValue) - return object; + if (object instanceof $root.SsoCloud.SsoCloudSettingValue) return object; let message = new $root.SsoCloud.SsoCloudSettingValue(); if (object.settingId != null) - if ($util.Long) - (message.settingId = $util.Long.fromValue(object.settingId)).unsigned = true; - else if (typeof object.settingId === "string") - message.settingId = parseInt(object.settingId, 10); - else if (typeof object.settingId === "number") - message.settingId = object.settingId; - else if (typeof object.settingId === "object") - message.settingId = new $util.LongBits(object.settingId.low >>> 0, object.settingId.high >>> 0).toNumber(true); - if (object.settingName != null) - message.settingName = String(object.settingName); - if (object.label != null) - message.label = String(object.label); - if (object.value != null) - message.value = String(object.value); + if ($util.Long) (message.settingId = $util.Long.fromValue(object.settingId)).unsigned = true; + else if (typeof object.settingId === 'string') message.settingId = parseInt(object.settingId, 10); + else if (typeof object.settingId === 'number') message.settingId = object.settingId; + else if (typeof object.settingId === 'object') + message.settingId = new $util.LongBits( + object.settingId.low >>> 0, + object.settingId.high >>> 0 + ).toNumber(true); + if (object.settingName != null) message.settingName = String(object.settingName); + if (object.label != null) message.label = String(object.label); + if (object.value != null) message.value = String(object.value); switch (object.valueType) { - default: - if (typeof object.valueType === "number") { - message.valueType = object.valueType; - break; - } - break; - case "ANY": - case 0: - message.valueType = 0; - break; - case "BOOLEAN": - case 1: - message.valueType = 1; - break; - case "INTEGER": - case 2: - message.valueType = 2; - break; - case "STRING": - case 3: - message.valueType = 3; - break; - case "BYTES": - case 4: - message.valueType = 4; - break; - case "URL": - case 5: - message.valueType = 5; - break; - case "com_keepersecurity_proto_SsoCloud_DataType": - case 6: - message.valueType = 6; - break; - case "com_keepersecurity_proto_SsoCloud_AuthProtocolType": - case 7: - message.valueType = 7; - break; - case "com_keepersecurity_proto_SsoCloud_SsoIdpType": - case 8: - message.valueType = 8; - break; - case "LONG": - case 9: - message.valueType = 9; - break; - case "TIMESTAMP": - case 10: - message.valueType = 10; - break; + default: + if (typeof object.valueType === 'number') { + message.valueType = object.valueType; + break; + } + break; + case 'ANY': + case 0: + message.valueType = 0; + break; + case 'BOOLEAN': + case 1: + message.valueType = 1; + break; + case 'INTEGER': + case 2: + message.valueType = 2; + break; + case 'STRING': + case 3: + message.valueType = 3; + break; + case 'BYTES': + case 4: + message.valueType = 4; + break; + case 'URL': + case 5: + message.valueType = 5; + break; + case 'com_keepersecurity_proto_SsoCloud_DataType': + case 6: + message.valueType = 6; + break; + case 'com_keepersecurity_proto_SsoCloud_AuthProtocolType': + case 7: + message.valueType = 7; + break; + case 'com_keepersecurity_proto_SsoCloud_SsoIdpType': + case 8: + message.valueType = 8; + break; + case 'LONG': + case 9: + message.valueType = 9; + break; + case 'TIMESTAMP': + case 10: + message.valueType = 10; + break; } - if (object.lastModified != null) - message.lastModified = String(object.lastModified); - if (object.isFromFile != null) - message.isFromFile = Boolean(object.isFromFile); - if (object.isEditable != null) - message.isEditable = Boolean(object.isEditable); - if (object.isRequired != null) - message.isRequired = Boolean(object.isRequired); + if (object.lastModified != null) message.lastModified = String(object.lastModified); + if (object.isFromFile != null) message.isFromFile = Boolean(object.isFromFile); + if (object.isEditable != null) message.isEditable = Boolean(object.isEditable); + if (object.isRequired != null) message.isRequired = Boolean(object.isRequired); return message; }; @@ -122832,44 +127162,53 @@ export const SsoCloud = $root.SsoCloud = (() => { * @returns {Object.} Plain object */ SsoCloudSettingValue.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, true); - object.settingId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.settingId = options.longs === String ? "0" : 0; - object.settingName = ""; - object.label = ""; - object.value = ""; - object.valueType = options.enums === String ? "ANY" : 0; - object.lastModified = ""; + object.settingId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.settingId = options.longs === String ? '0' : 0; + object.settingName = ''; + object.label = ''; + object.value = ''; + object.valueType = options.enums === String ? 'ANY' : 0; + object.lastModified = ''; object.isFromFile = false; object.isEditable = false; object.isRequired = false; } - if (message.settingId != null && message.hasOwnProperty("settingId")) - if (typeof message.settingId === "number") + if (message.settingId != null && message.hasOwnProperty('settingId')) + if (typeof message.settingId === 'number') object.settingId = options.longs === String ? String(message.settingId) : message.settingId; else - object.settingId = options.longs === String ? $util.Long.prototype.toString.call(message.settingId) : options.longs === Number ? new $util.LongBits(message.settingId.low >>> 0, message.settingId.high >>> 0).toNumber(true) : message.settingId; - if (message.settingName != null && message.hasOwnProperty("settingName")) + object.settingId = + options.longs === String + ? $util.Long.prototype.toString.call(message.settingId) + : options.longs === Number + ? new $util.LongBits(message.settingId.low >>> 0, message.settingId.high >>> 0).toNumber( + true + ) + : message.settingId; + if (message.settingName != null && message.hasOwnProperty('settingName')) object.settingName = message.settingName; - if (message.label != null && message.hasOwnProperty("label")) - object.label = message.label; - if (message.value != null && message.hasOwnProperty("value")) - object.value = message.value; - if (message.valueType != null && message.hasOwnProperty("valueType")) - object.valueType = options.enums === String ? $root.SsoCloud.DataType[message.valueType] === undefined ? message.valueType : $root.SsoCloud.DataType[message.valueType] : message.valueType; - if (message.lastModified != null && message.hasOwnProperty("lastModified")) + if (message.label != null && message.hasOwnProperty('label')) object.label = message.label; + if (message.value != null && message.hasOwnProperty('value')) object.value = message.value; + if (message.valueType != null && message.hasOwnProperty('valueType')) + object.valueType = + options.enums === String + ? $root.SsoCloud.DataType[message.valueType] === undefined + ? message.valueType + : $root.SsoCloud.DataType[message.valueType] + : message.valueType; + if (message.lastModified != null && message.hasOwnProperty('lastModified')) object.lastModified = message.lastModified; - if (message.isFromFile != null && message.hasOwnProperty("isFromFile")) + if (message.isFromFile != null && message.hasOwnProperty('isFromFile')) object.isFromFile = message.isFromFile; - if (message.isEditable != null && message.hasOwnProperty("isEditable")) + if (message.isEditable != null && message.hasOwnProperty('isEditable')) object.isEditable = message.isEditable; - if (message.isRequired != null && message.hasOwnProperty("isRequired")) + if (message.isRequired != null && message.hasOwnProperty('isRequired')) object.isRequired = message.isRequired; return object; }; @@ -122895,16 +127234,15 @@ export const SsoCloud = $root.SsoCloud = (() => { */ SsoCloudSettingValue.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/SsoCloud.SsoCloudSettingValue"; + return typeUrlPrefix + '/SsoCloud.SsoCloudSettingValue'; }; return SsoCloudSettingValue; })(); - SsoCloud.SsoCloudSettingAction = (function() { - + SsoCloud.SsoCloudSettingAction = (function () { /** * Properties of a SsoCloudSettingAction. * @memberof SsoCloud @@ -122926,8 +127264,7 @@ export const SsoCloud = $root.SsoCloud = (() => { function SsoCloudSettingAction(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -122936,7 +127273,7 @@ export const SsoCloud = $root.SsoCloud = (() => { * @memberof SsoCloud.SsoCloudSettingAction * @instance */ - SsoCloudSettingAction.prototype.settingId = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + SsoCloudSettingAction.prototype.settingId = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; /** * SsoCloudSettingAction settingName. @@ -122944,7 +127281,7 @@ export const SsoCloud = $root.SsoCloud = (() => { * @memberof SsoCloud.SsoCloudSettingAction * @instance */ - SsoCloudSettingAction.prototype.settingName = ""; + SsoCloudSettingAction.prototype.settingName = ''; /** * SsoCloudSettingAction operation. @@ -122960,7 +127297,7 @@ export const SsoCloud = $root.SsoCloud = (() => { * @memberof SsoCloud.SsoCloudSettingAction * @instance */ - SsoCloudSettingAction.prototype.value = ""; + SsoCloudSettingAction.prototype.value = ''; /** * Creates a new SsoCloudSettingAction instance using the specified properties. @@ -122984,16 +127321,15 @@ export const SsoCloud = $root.SsoCloud = (() => { * @returns {$protobuf.Writer} Writer */ SsoCloudSettingAction.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.settingId != null && Object.hasOwnProperty.call(message, "settingId")) - writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.settingId); - if (message.settingName != null && Object.hasOwnProperty.call(message, "settingName")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.settingName); - if (message.operation != null && Object.hasOwnProperty.call(message, "operation")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.operation); - if (message.value != null && Object.hasOwnProperty.call(message, "value")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.value); + if (!writer) writer = $Writer.create(); + if (message.settingId != null && Object.hasOwnProperty.call(message, 'settingId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).uint64(message.settingId); + if (message.settingName != null && Object.hasOwnProperty.call(message, 'settingName')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.settingName); + if (message.operation != null && Object.hasOwnProperty.call(message, 'operation')) + writer.uint32(/* id 3, wireType 0 =*/ 24).int32(message.operation); + if (message.value != null && Object.hasOwnProperty.call(message, 'value')) + writer.uint32(/* id 4, wireType 2 =*/ 34).string(message.value); return writer; }; @@ -123022,31 +127358,31 @@ export const SsoCloud = $root.SsoCloud = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SsoCloudSettingAction.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.SsoCloud.SsoCloudSettingAction(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.SsoCloud.SsoCloudSettingAction(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.settingId = reader.uint64(); break; } - case 2: { + case 2: { message.settingName = reader.string(); break; } - case 3: { + case 3: { message.operation = reader.int32(); break; } - case 4: { + case 4: { message.value = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -123063,8 +127399,7 @@ export const SsoCloud = $root.SsoCloud = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SsoCloudSettingAction.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -123077,27 +127412,31 @@ export const SsoCloud = $root.SsoCloud = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ SsoCloudSettingAction.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.settingId != null && message.hasOwnProperty("settingId")) - if (!$util.isInteger(message.settingId) && !(message.settingId && $util.isInteger(message.settingId.low) && $util.isInteger(message.settingId.high))) - return "settingId: integer|Long expected"; - if (message.settingName != null && message.hasOwnProperty("settingName")) - if (!$util.isString(message.settingName)) - return "settingName: string expected"; - if (message.operation != null && message.hasOwnProperty("operation")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.settingId != null && message.hasOwnProperty('settingId')) + if ( + !$util.isInteger(message.settingId) && + !( + message.settingId && + $util.isInteger(message.settingId.low) && + $util.isInteger(message.settingId.high) + ) + ) + return 'settingId: integer|Long expected'; + if (message.settingName != null && message.hasOwnProperty('settingName')) + if (!$util.isString(message.settingName)) return 'settingName: string expected'; + if (message.operation != null && message.hasOwnProperty('operation')) switch (message.operation) { - default: - return "operation: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; + default: + return 'operation: enum value expected'; + case 0: + case 1: + case 2: + case 3: + break; } - if (message.value != null && message.hasOwnProperty("value")) - if (!$util.isString(message.value)) - return "value: string expected"; + if (message.value != null && message.hasOwnProperty('value')) + if (!$util.isString(message.value)) return 'value: string expected'; return null; }; @@ -123110,46 +127449,43 @@ export const SsoCloud = $root.SsoCloud = (() => { * @returns {SsoCloud.SsoCloudSettingAction} SsoCloudSettingAction */ SsoCloudSettingAction.fromObject = function fromObject(object) { - if (object instanceof $root.SsoCloud.SsoCloudSettingAction) - return object; + if (object instanceof $root.SsoCloud.SsoCloudSettingAction) return object; let message = new $root.SsoCloud.SsoCloudSettingAction(); if (object.settingId != null) - if ($util.Long) - (message.settingId = $util.Long.fromValue(object.settingId)).unsigned = true; - else if (typeof object.settingId === "string") - message.settingId = parseInt(object.settingId, 10); - else if (typeof object.settingId === "number") - message.settingId = object.settingId; - else if (typeof object.settingId === "object") - message.settingId = new $util.LongBits(object.settingId.low >>> 0, object.settingId.high >>> 0).toNumber(true); - if (object.settingName != null) - message.settingName = String(object.settingName); + if ($util.Long) (message.settingId = $util.Long.fromValue(object.settingId)).unsigned = true; + else if (typeof object.settingId === 'string') message.settingId = parseInt(object.settingId, 10); + else if (typeof object.settingId === 'number') message.settingId = object.settingId; + else if (typeof object.settingId === 'object') + message.settingId = new $util.LongBits( + object.settingId.low >>> 0, + object.settingId.high >>> 0 + ).toNumber(true); + if (object.settingName != null) message.settingName = String(object.settingName); switch (object.operation) { - default: - if (typeof object.operation === "number") { - message.operation = object.operation; - break; - } - break; - case "SET": - case 0: - message.operation = 0; - break; - case "GET": - case 1: - message.operation = 1; - break; - case "DELETE": - case 2: - message.operation = 2; - break; - case "RESET_TO_DEFAULT": - case 3: - message.operation = 3; - break; + default: + if (typeof object.operation === 'number') { + message.operation = object.operation; + break; + } + break; + case 'SET': + case 0: + message.operation = 0; + break; + case 'GET': + case 1: + message.operation = 1; + break; + case 'DELETE': + case 2: + message.operation = 2; + break; + case 'RESET_TO_DEFAULT': + case 3: + message.operation = 3; + break; } - if (object.value != null) - message.value = String(object.value); + if (object.value != null) message.value = String(object.value); return message; }; @@ -123163,30 +127499,40 @@ export const SsoCloud = $root.SsoCloud = (() => { * @returns {Object.} Plain object */ SsoCloudSettingAction.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, true); - object.settingId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.settingId = options.longs === String ? "0" : 0; - object.settingName = ""; - object.operation = options.enums === String ? "SET" : 0; - object.value = ""; - } - if (message.settingId != null && message.hasOwnProperty("settingId")) - if (typeof message.settingId === "number") + object.settingId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.settingId = options.longs === String ? '0' : 0; + object.settingName = ''; + object.operation = options.enums === String ? 'SET' : 0; + object.value = ''; + } + if (message.settingId != null && message.hasOwnProperty('settingId')) + if (typeof message.settingId === 'number') object.settingId = options.longs === String ? String(message.settingId) : message.settingId; else - object.settingId = options.longs === String ? $util.Long.prototype.toString.call(message.settingId) : options.longs === Number ? new $util.LongBits(message.settingId.low >>> 0, message.settingId.high >>> 0).toNumber(true) : message.settingId; - if (message.settingName != null && message.hasOwnProperty("settingName")) + object.settingId = + options.longs === String + ? $util.Long.prototype.toString.call(message.settingId) + : options.longs === Number + ? new $util.LongBits(message.settingId.low >>> 0, message.settingId.high >>> 0).toNumber( + true + ) + : message.settingId; + if (message.settingName != null && message.hasOwnProperty('settingName')) object.settingName = message.settingName; - if (message.operation != null && message.hasOwnProperty("operation")) - object.operation = options.enums === String ? $root.SsoCloud.SsoCloudSettingOperationType[message.operation] === undefined ? message.operation : $root.SsoCloud.SsoCloudSettingOperationType[message.operation] : message.operation; - if (message.value != null && message.hasOwnProperty("value")) - object.value = message.value; + if (message.operation != null && message.hasOwnProperty('operation')) + object.operation = + options.enums === String + ? $root.SsoCloud.SsoCloudSettingOperationType[message.operation] === undefined + ? message.operation + : $root.SsoCloud.SsoCloudSettingOperationType[message.operation] + : message.operation; + if (message.value != null && message.hasOwnProperty('value')) object.value = message.value; return object; }; @@ -123211,16 +127557,15 @@ export const SsoCloud = $root.SsoCloud = (() => { */ SsoCloudSettingAction.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/SsoCloud.SsoCloudSettingAction"; + return typeUrlPrefix + '/SsoCloud.SsoCloudSettingAction'; }; return SsoCloudSettingAction; })(); - SsoCloud.SsoCloudConfigurationRequest = (function() { - + SsoCloud.SsoCloudConfigurationRequest = (function () { /** * Properties of a SsoCloudConfigurationRequest. * @memberof SsoCloud @@ -123244,8 +127589,7 @@ export const SsoCloud = $root.SsoCloud = (() => { this.ssoCloudSettingAction = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -123254,7 +127598,7 @@ export const SsoCloud = $root.SsoCloud = (() => { * @memberof SsoCloud.SsoCloudConfigurationRequest * @instance */ - SsoCloudConfigurationRequest.prototype.ssoServiceProviderId = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + SsoCloudConfigurationRequest.prototype.ssoServiceProviderId = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; /** * SsoCloudConfigurationRequest ssoSpConfigurationId. @@ -123262,7 +127606,7 @@ export const SsoCloud = $root.SsoCloud = (() => { * @memberof SsoCloud.SsoCloudConfigurationRequest * @instance */ - SsoCloudConfigurationRequest.prototype.ssoSpConfigurationId = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + SsoCloudConfigurationRequest.prototype.ssoSpConfigurationId = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; /** * SsoCloudConfigurationRequest name. @@ -123270,7 +127614,7 @@ export const SsoCloud = $root.SsoCloud = (() => { * @memberof SsoCloud.SsoCloudConfigurationRequest * @instance */ - SsoCloudConfigurationRequest.prototype.name = ""; + SsoCloudConfigurationRequest.prototype.name = ''; /** * SsoCloudConfigurationRequest ssoAuthProtocolType. @@ -123310,19 +127654,21 @@ export const SsoCloud = $root.SsoCloud = (() => { * @returns {$protobuf.Writer} Writer */ SsoCloudConfigurationRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.ssoServiceProviderId != null && Object.hasOwnProperty.call(message, "ssoServiceProviderId")) - writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.ssoServiceProviderId); - if (message.ssoSpConfigurationId != null && Object.hasOwnProperty.call(message, "ssoSpConfigurationId")) - writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.ssoSpConfigurationId); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.name); - if (message.ssoAuthProtocolType != null && Object.hasOwnProperty.call(message, "ssoAuthProtocolType")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.ssoAuthProtocolType); + if (!writer) writer = $Writer.create(); + if (message.ssoServiceProviderId != null && Object.hasOwnProperty.call(message, 'ssoServiceProviderId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).uint64(message.ssoServiceProviderId); + if (message.ssoSpConfigurationId != null && Object.hasOwnProperty.call(message, 'ssoSpConfigurationId')) + writer.uint32(/* id 2, wireType 0 =*/ 16).uint64(message.ssoSpConfigurationId); + if (message.name != null && Object.hasOwnProperty.call(message, 'name')) + writer.uint32(/* id 3, wireType 2 =*/ 26).string(message.name); + if (message.ssoAuthProtocolType != null && Object.hasOwnProperty.call(message, 'ssoAuthProtocolType')) + writer.uint32(/* id 4, wireType 0 =*/ 32).int32(message.ssoAuthProtocolType); if (message.ssoCloudSettingAction != null && message.ssoCloudSettingAction.length) for (let i = 0; i < message.ssoCloudSettingAction.length; ++i) - $root.SsoCloud.SsoCloudSettingAction.encode(message.ssoCloudSettingAction[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + $root.SsoCloud.SsoCloudSettingAction.encode( + message.ssoCloudSettingAction[i], + writer.uint32(/* id 5, wireType 2 =*/ 42).fork() + ).ldelim(); return writer; }; @@ -123351,37 +127697,39 @@ export const SsoCloud = $root.SsoCloud = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SsoCloudConfigurationRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.SsoCloud.SsoCloudConfigurationRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.SsoCloud.SsoCloudConfigurationRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.ssoServiceProviderId = reader.uint64(); break; } - case 2: { + case 2: { message.ssoSpConfigurationId = reader.uint64(); break; } - case 3: { + case 3: { message.name = reader.string(); break; } - case 4: { + case 4: { message.ssoAuthProtocolType = reader.int32(); break; } - case 5: { + case 5: { if (!(message.ssoCloudSettingAction && message.ssoCloudSettingAction.length)) message.ssoCloudSettingAction = []; - message.ssoCloudSettingAction.push($root.SsoCloud.SsoCloudSettingAction.decode(reader, reader.uint32())); + message.ssoCloudSettingAction.push( + $root.SsoCloud.SsoCloudSettingAction.decode(reader, reader.uint32()) + ); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -123398,8 +127746,7 @@ export const SsoCloud = $root.SsoCloud = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SsoCloudConfigurationRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -123412,32 +127759,42 @@ export const SsoCloud = $root.SsoCloud = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ SsoCloudConfigurationRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.ssoServiceProviderId != null && message.hasOwnProperty("ssoServiceProviderId")) - if (!$util.isInteger(message.ssoServiceProviderId) && !(message.ssoServiceProviderId && $util.isInteger(message.ssoServiceProviderId.low) && $util.isInteger(message.ssoServiceProviderId.high))) - return "ssoServiceProviderId: integer|Long expected"; - if (message.ssoSpConfigurationId != null && message.hasOwnProperty("ssoSpConfigurationId")) - if (!$util.isInteger(message.ssoSpConfigurationId) && !(message.ssoSpConfigurationId && $util.isInteger(message.ssoSpConfigurationId.low) && $util.isInteger(message.ssoSpConfigurationId.high))) - return "ssoSpConfigurationId: integer|Long expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.ssoAuthProtocolType != null && message.hasOwnProperty("ssoAuthProtocolType")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.ssoServiceProviderId != null && message.hasOwnProperty('ssoServiceProviderId')) + if ( + !$util.isInteger(message.ssoServiceProviderId) && + !( + message.ssoServiceProviderId && + $util.isInteger(message.ssoServiceProviderId.low) && + $util.isInteger(message.ssoServiceProviderId.high) + ) + ) + return 'ssoServiceProviderId: integer|Long expected'; + if (message.ssoSpConfigurationId != null && message.hasOwnProperty('ssoSpConfigurationId')) + if ( + !$util.isInteger(message.ssoSpConfigurationId) && + !( + message.ssoSpConfigurationId && + $util.isInteger(message.ssoSpConfigurationId.low) && + $util.isInteger(message.ssoSpConfigurationId.high) + ) + ) + return 'ssoSpConfigurationId: integer|Long expected'; + if (message.name != null && message.hasOwnProperty('name')) + if (!$util.isString(message.name)) return 'name: string expected'; + if (message.ssoAuthProtocolType != null && message.hasOwnProperty('ssoAuthProtocolType')) switch (message.ssoAuthProtocolType) { - default: - return "ssoAuthProtocolType: enum value expected"; - case 0: - case 1: - break; + default: + return 'ssoAuthProtocolType: enum value expected'; + case 0: + case 1: + break; } - if (message.ssoCloudSettingAction != null && message.hasOwnProperty("ssoCloudSettingAction")) { - if (!Array.isArray(message.ssoCloudSettingAction)) - return "ssoCloudSettingAction: array expected"; + if (message.ssoCloudSettingAction != null && message.hasOwnProperty('ssoCloudSettingAction')) { + if (!Array.isArray(message.ssoCloudSettingAction)) return 'ssoCloudSettingAction: array expected'; for (let i = 0; i < message.ssoCloudSettingAction.length; ++i) { let error = $root.SsoCloud.SsoCloudSettingAction.verify(message.ssoCloudSettingAction[i]); - if (error) - return "ssoCloudSettingAction." + error; + if (error) return 'ssoCloudSettingAction.' + error; } } return null; @@ -123452,53 +127809,61 @@ export const SsoCloud = $root.SsoCloud = (() => { * @returns {SsoCloud.SsoCloudConfigurationRequest} SsoCloudConfigurationRequest */ SsoCloudConfigurationRequest.fromObject = function fromObject(object) { - if (object instanceof $root.SsoCloud.SsoCloudConfigurationRequest) - return object; + if (object instanceof $root.SsoCloud.SsoCloudConfigurationRequest) return object; let message = new $root.SsoCloud.SsoCloudConfigurationRequest(); if (object.ssoServiceProviderId != null) if ($util.Long) (message.ssoServiceProviderId = $util.Long.fromValue(object.ssoServiceProviderId)).unsigned = true; - else if (typeof object.ssoServiceProviderId === "string") + else if (typeof object.ssoServiceProviderId === 'string') message.ssoServiceProviderId = parseInt(object.ssoServiceProviderId, 10); - else if (typeof object.ssoServiceProviderId === "number") + else if (typeof object.ssoServiceProviderId === 'number') message.ssoServiceProviderId = object.ssoServiceProviderId; - else if (typeof object.ssoServiceProviderId === "object") - message.ssoServiceProviderId = new $util.LongBits(object.ssoServiceProviderId.low >>> 0, object.ssoServiceProviderId.high >>> 0).toNumber(true); + else if (typeof object.ssoServiceProviderId === 'object') + message.ssoServiceProviderId = new $util.LongBits( + object.ssoServiceProviderId.low >>> 0, + object.ssoServiceProviderId.high >>> 0 + ).toNumber(true); if (object.ssoSpConfigurationId != null) if ($util.Long) (message.ssoSpConfigurationId = $util.Long.fromValue(object.ssoSpConfigurationId)).unsigned = true; - else if (typeof object.ssoSpConfigurationId === "string") + else if (typeof object.ssoSpConfigurationId === 'string') message.ssoSpConfigurationId = parseInt(object.ssoSpConfigurationId, 10); - else if (typeof object.ssoSpConfigurationId === "number") + else if (typeof object.ssoSpConfigurationId === 'number') message.ssoSpConfigurationId = object.ssoSpConfigurationId; - else if (typeof object.ssoSpConfigurationId === "object") - message.ssoSpConfigurationId = new $util.LongBits(object.ssoSpConfigurationId.low >>> 0, object.ssoSpConfigurationId.high >>> 0).toNumber(true); - if (object.name != null) - message.name = String(object.name); + else if (typeof object.ssoSpConfigurationId === 'object') + message.ssoSpConfigurationId = new $util.LongBits( + object.ssoSpConfigurationId.low >>> 0, + object.ssoSpConfigurationId.high >>> 0 + ).toNumber(true); + if (object.name != null) message.name = String(object.name); switch (object.ssoAuthProtocolType) { - default: - if (typeof object.ssoAuthProtocolType === "number") { - message.ssoAuthProtocolType = object.ssoAuthProtocolType; + default: + if (typeof object.ssoAuthProtocolType === 'number') { + message.ssoAuthProtocolType = object.ssoAuthProtocolType; + break; + } + break; + case 'SAML2': + case 0: + message.ssoAuthProtocolType = 0; + break; + case 'JWT': + case 1: + message.ssoAuthProtocolType = 1; break; - } - break; - case "SAML2": - case 0: - message.ssoAuthProtocolType = 0; - break; - case "JWT": - case 1: - message.ssoAuthProtocolType = 1; - break; } if (object.ssoCloudSettingAction) { if (!Array.isArray(object.ssoCloudSettingAction)) - throw TypeError(".SsoCloud.SsoCloudConfigurationRequest.ssoCloudSettingAction: array expected"); + throw TypeError('.SsoCloud.SsoCloudConfigurationRequest.ssoCloudSettingAction: array expected'); message.ssoCloudSettingAction = []; for (let i = 0; i < object.ssoCloudSettingAction.length; ++i) { - if (typeof object.ssoCloudSettingAction[i] !== "object") - throw TypeError(".SsoCloud.SsoCloudConfigurationRequest.ssoCloudSettingAction: object expected"); - message.ssoCloudSettingAction[i] = $root.SsoCloud.SsoCloudSettingAction.fromObject(object.ssoCloudSettingAction[i]); + if (typeof object.ssoCloudSettingAction[i] !== 'object') + throw TypeError( + '.SsoCloud.SsoCloudConfigurationRequest.ssoCloudSettingAction: object expected' + ); + message.ssoCloudSettingAction[i] = $root.SsoCloud.SsoCloudSettingAction.fromObject( + object.ssoCloudSettingAction[i] + ); } } return message; @@ -123514,43 +127879,66 @@ export const SsoCloud = $root.SsoCloud = (() => { * @returns {Object.} Plain object */ SsoCloudConfigurationRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.ssoCloudSettingAction = []; + if (options.arrays || options.defaults) object.ssoCloudSettingAction = []; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, true); - object.ssoServiceProviderId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.ssoServiceProviderId = options.longs === String ? "0" : 0; + object.ssoServiceProviderId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.ssoServiceProviderId = options.longs === String ? '0' : 0; if ($util.Long) { let long = new $util.Long(0, 0, true); - object.ssoSpConfigurationId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.ssoSpConfigurationId = options.longs === String ? "0" : 0; - object.name = ""; - object.ssoAuthProtocolType = options.enums === String ? "SAML2" : 0; - } - if (message.ssoServiceProviderId != null && message.hasOwnProperty("ssoServiceProviderId")) - if (typeof message.ssoServiceProviderId === "number") - object.ssoServiceProviderId = options.longs === String ? String(message.ssoServiceProviderId) : message.ssoServiceProviderId; + object.ssoSpConfigurationId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.ssoSpConfigurationId = options.longs === String ? '0' : 0; + object.name = ''; + object.ssoAuthProtocolType = options.enums === String ? 'SAML2' : 0; + } + if (message.ssoServiceProviderId != null && message.hasOwnProperty('ssoServiceProviderId')) + if (typeof message.ssoServiceProviderId === 'number') + object.ssoServiceProviderId = + options.longs === String ? String(message.ssoServiceProviderId) : message.ssoServiceProviderId; else - object.ssoServiceProviderId = options.longs === String ? $util.Long.prototype.toString.call(message.ssoServiceProviderId) : options.longs === Number ? new $util.LongBits(message.ssoServiceProviderId.low >>> 0, message.ssoServiceProviderId.high >>> 0).toNumber(true) : message.ssoServiceProviderId; - if (message.ssoSpConfigurationId != null && message.hasOwnProperty("ssoSpConfigurationId")) - if (typeof message.ssoSpConfigurationId === "number") - object.ssoSpConfigurationId = options.longs === String ? String(message.ssoSpConfigurationId) : message.ssoSpConfigurationId; + object.ssoServiceProviderId = + options.longs === String + ? $util.Long.prototype.toString.call(message.ssoServiceProviderId) + : options.longs === Number + ? new $util.LongBits( + message.ssoServiceProviderId.low >>> 0, + message.ssoServiceProviderId.high >>> 0 + ).toNumber(true) + : message.ssoServiceProviderId; + if (message.ssoSpConfigurationId != null && message.hasOwnProperty('ssoSpConfigurationId')) + if (typeof message.ssoSpConfigurationId === 'number') + object.ssoSpConfigurationId = + options.longs === String ? String(message.ssoSpConfigurationId) : message.ssoSpConfigurationId; else - object.ssoSpConfigurationId = options.longs === String ? $util.Long.prototype.toString.call(message.ssoSpConfigurationId) : options.longs === Number ? new $util.LongBits(message.ssoSpConfigurationId.low >>> 0, message.ssoSpConfigurationId.high >>> 0).toNumber(true) : message.ssoSpConfigurationId; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.ssoAuthProtocolType != null && message.hasOwnProperty("ssoAuthProtocolType")) - object.ssoAuthProtocolType = options.enums === String ? $root.SsoCloud.AuthProtocolType[message.ssoAuthProtocolType] === undefined ? message.ssoAuthProtocolType : $root.SsoCloud.AuthProtocolType[message.ssoAuthProtocolType] : message.ssoAuthProtocolType; + object.ssoSpConfigurationId = + options.longs === String + ? $util.Long.prototype.toString.call(message.ssoSpConfigurationId) + : options.longs === Number + ? new $util.LongBits( + message.ssoSpConfigurationId.low >>> 0, + message.ssoSpConfigurationId.high >>> 0 + ).toNumber(true) + : message.ssoSpConfigurationId; + if (message.name != null && message.hasOwnProperty('name')) object.name = message.name; + if (message.ssoAuthProtocolType != null && message.hasOwnProperty('ssoAuthProtocolType')) + object.ssoAuthProtocolType = + options.enums === String + ? $root.SsoCloud.AuthProtocolType[message.ssoAuthProtocolType] === undefined + ? message.ssoAuthProtocolType + : $root.SsoCloud.AuthProtocolType[message.ssoAuthProtocolType] + : message.ssoAuthProtocolType; if (message.ssoCloudSettingAction && message.ssoCloudSettingAction.length) { object.ssoCloudSettingAction = []; for (let j = 0; j < message.ssoCloudSettingAction.length; ++j) - object.ssoCloudSettingAction[j] = $root.SsoCloud.SsoCloudSettingAction.toObject(message.ssoCloudSettingAction[j], options); + object.ssoCloudSettingAction[j] = $root.SsoCloud.SsoCloudSettingAction.toObject( + message.ssoCloudSettingAction[j], + options + ); } return object; }; @@ -123576,16 +127964,15 @@ export const SsoCloud = $root.SsoCloud = (() => { */ SsoCloudConfigurationRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/SsoCloud.SsoCloudConfigurationRequest"; + return typeUrlPrefix + '/SsoCloud.SsoCloudConfigurationRequest'; }; return SsoCloudConfigurationRequest; })(); - SsoCloud.SsoSharedConfigItem = (function() { - + SsoCloud.SsoSharedConfigItem = (function () { /** * Properties of a SsoSharedConfigItem. * @memberof SsoCloud @@ -123606,8 +127993,7 @@ export const SsoCloud = $root.SsoCloud = (() => { function SsoSharedConfigItem(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -123616,7 +128002,7 @@ export const SsoCloud = $root.SsoCloud = (() => { * @memberof SsoCloud.SsoSharedConfigItem * @instance */ - SsoSharedConfigItem.prototype.ssoSpConfigurationId = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + SsoSharedConfigItem.prototype.ssoSpConfigurationId = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; /** * SsoSharedConfigItem ssoServiceProviderId. @@ -123624,7 +128010,7 @@ export const SsoCloud = $root.SsoCloud = (() => { * @memberof SsoCloud.SsoSharedConfigItem * @instance */ - SsoSharedConfigItem.prototype.ssoServiceProviderId = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + SsoSharedConfigItem.prototype.ssoServiceProviderId = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; /** * SsoSharedConfigItem ssoNodeId. @@ -123632,7 +128018,7 @@ export const SsoCloud = $root.SsoCloud = (() => { * @memberof SsoCloud.SsoSharedConfigItem * @instance */ - SsoSharedConfigItem.prototype.ssoNodeId = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + SsoSharedConfigItem.prototype.ssoNodeId = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; /** * Creates a new SsoSharedConfigItem instance using the specified properties. @@ -123656,14 +128042,13 @@ export const SsoCloud = $root.SsoCloud = (() => { * @returns {$protobuf.Writer} Writer */ SsoSharedConfigItem.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.ssoSpConfigurationId != null && Object.hasOwnProperty.call(message, "ssoSpConfigurationId")) - writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.ssoSpConfigurationId); - if (message.ssoServiceProviderId != null && Object.hasOwnProperty.call(message, "ssoServiceProviderId")) - writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.ssoServiceProviderId); - if (message.ssoNodeId != null && Object.hasOwnProperty.call(message, "ssoNodeId")) - writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.ssoNodeId); + if (!writer) writer = $Writer.create(); + if (message.ssoSpConfigurationId != null && Object.hasOwnProperty.call(message, 'ssoSpConfigurationId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).uint64(message.ssoSpConfigurationId); + if (message.ssoServiceProviderId != null && Object.hasOwnProperty.call(message, 'ssoServiceProviderId')) + writer.uint32(/* id 2, wireType 0 =*/ 16).uint64(message.ssoServiceProviderId); + if (message.ssoNodeId != null && Object.hasOwnProperty.call(message, 'ssoNodeId')) + writer.uint32(/* id 3, wireType 0 =*/ 24).uint64(message.ssoNodeId); return writer; }; @@ -123692,27 +128077,27 @@ export const SsoCloud = $root.SsoCloud = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SsoSharedConfigItem.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.SsoCloud.SsoSharedConfigItem(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.SsoCloud.SsoSharedConfigItem(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.ssoSpConfigurationId = reader.uint64(); break; } - case 2: { + case 2: { message.ssoServiceProviderId = reader.uint64(); break; } - case 3: { + case 3: { message.ssoNodeId = reader.uint64(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -123729,8 +128114,7 @@ export const SsoCloud = $root.SsoCloud = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SsoSharedConfigItem.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -123743,17 +128127,37 @@ export const SsoCloud = $root.SsoCloud = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ SsoSharedConfigItem.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.ssoSpConfigurationId != null && message.hasOwnProperty("ssoSpConfigurationId")) - if (!$util.isInteger(message.ssoSpConfigurationId) && !(message.ssoSpConfigurationId && $util.isInteger(message.ssoSpConfigurationId.low) && $util.isInteger(message.ssoSpConfigurationId.high))) - return "ssoSpConfigurationId: integer|Long expected"; - if (message.ssoServiceProviderId != null && message.hasOwnProperty("ssoServiceProviderId")) - if (!$util.isInteger(message.ssoServiceProviderId) && !(message.ssoServiceProviderId && $util.isInteger(message.ssoServiceProviderId.low) && $util.isInteger(message.ssoServiceProviderId.high))) - return "ssoServiceProviderId: integer|Long expected"; - if (message.ssoNodeId != null && message.hasOwnProperty("ssoNodeId")) - if (!$util.isInteger(message.ssoNodeId) && !(message.ssoNodeId && $util.isInteger(message.ssoNodeId.low) && $util.isInteger(message.ssoNodeId.high))) - return "ssoNodeId: integer|Long expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.ssoSpConfigurationId != null && message.hasOwnProperty('ssoSpConfigurationId')) + if ( + !$util.isInteger(message.ssoSpConfigurationId) && + !( + message.ssoSpConfigurationId && + $util.isInteger(message.ssoSpConfigurationId.low) && + $util.isInteger(message.ssoSpConfigurationId.high) + ) + ) + return 'ssoSpConfigurationId: integer|Long expected'; + if (message.ssoServiceProviderId != null && message.hasOwnProperty('ssoServiceProviderId')) + if ( + !$util.isInteger(message.ssoServiceProviderId) && + !( + message.ssoServiceProviderId && + $util.isInteger(message.ssoServiceProviderId.low) && + $util.isInteger(message.ssoServiceProviderId.high) + ) + ) + return 'ssoServiceProviderId: integer|Long expected'; + if (message.ssoNodeId != null && message.hasOwnProperty('ssoNodeId')) + if ( + !$util.isInteger(message.ssoNodeId) && + !( + message.ssoNodeId && + $util.isInteger(message.ssoNodeId.low) && + $util.isInteger(message.ssoNodeId.high) + ) + ) + return 'ssoNodeId: integer|Long expected'; return null; }; @@ -123766,36 +128170,41 @@ export const SsoCloud = $root.SsoCloud = (() => { * @returns {SsoCloud.SsoSharedConfigItem} SsoSharedConfigItem */ SsoSharedConfigItem.fromObject = function fromObject(object) { - if (object instanceof $root.SsoCloud.SsoSharedConfigItem) - return object; + if (object instanceof $root.SsoCloud.SsoSharedConfigItem) return object; let message = new $root.SsoCloud.SsoSharedConfigItem(); if (object.ssoSpConfigurationId != null) if ($util.Long) (message.ssoSpConfigurationId = $util.Long.fromValue(object.ssoSpConfigurationId)).unsigned = true; - else if (typeof object.ssoSpConfigurationId === "string") + else if (typeof object.ssoSpConfigurationId === 'string') message.ssoSpConfigurationId = parseInt(object.ssoSpConfigurationId, 10); - else if (typeof object.ssoSpConfigurationId === "number") + else if (typeof object.ssoSpConfigurationId === 'number') message.ssoSpConfigurationId = object.ssoSpConfigurationId; - else if (typeof object.ssoSpConfigurationId === "object") - message.ssoSpConfigurationId = new $util.LongBits(object.ssoSpConfigurationId.low >>> 0, object.ssoSpConfigurationId.high >>> 0).toNumber(true); + else if (typeof object.ssoSpConfigurationId === 'object') + message.ssoSpConfigurationId = new $util.LongBits( + object.ssoSpConfigurationId.low >>> 0, + object.ssoSpConfigurationId.high >>> 0 + ).toNumber(true); if (object.ssoServiceProviderId != null) if ($util.Long) (message.ssoServiceProviderId = $util.Long.fromValue(object.ssoServiceProviderId)).unsigned = true; - else if (typeof object.ssoServiceProviderId === "string") + else if (typeof object.ssoServiceProviderId === 'string') message.ssoServiceProviderId = parseInt(object.ssoServiceProviderId, 10); - else if (typeof object.ssoServiceProviderId === "number") + else if (typeof object.ssoServiceProviderId === 'number') message.ssoServiceProviderId = object.ssoServiceProviderId; - else if (typeof object.ssoServiceProviderId === "object") - message.ssoServiceProviderId = new $util.LongBits(object.ssoServiceProviderId.low >>> 0, object.ssoServiceProviderId.high >>> 0).toNumber(true); + else if (typeof object.ssoServiceProviderId === 'object') + message.ssoServiceProviderId = new $util.LongBits( + object.ssoServiceProviderId.low >>> 0, + object.ssoServiceProviderId.high >>> 0 + ).toNumber(true); if (object.ssoNodeId != null) - if ($util.Long) - (message.ssoNodeId = $util.Long.fromValue(object.ssoNodeId)).unsigned = true; - else if (typeof object.ssoNodeId === "string") - message.ssoNodeId = parseInt(object.ssoNodeId, 10); - else if (typeof object.ssoNodeId === "number") - message.ssoNodeId = object.ssoNodeId; - else if (typeof object.ssoNodeId === "object") - message.ssoNodeId = new $util.LongBits(object.ssoNodeId.low >>> 0, object.ssoNodeId.high >>> 0).toNumber(true); + if ($util.Long) (message.ssoNodeId = $util.Long.fromValue(object.ssoNodeId)).unsigned = true; + else if (typeof object.ssoNodeId === 'string') message.ssoNodeId = parseInt(object.ssoNodeId, 10); + else if (typeof object.ssoNodeId === 'number') message.ssoNodeId = object.ssoNodeId; + else if (typeof object.ssoNodeId === 'object') + message.ssoNodeId = new $util.LongBits( + object.ssoNodeId.low >>> 0, + object.ssoNodeId.high >>> 0 + ).toNumber(true); return message; }; @@ -123809,41 +128218,65 @@ export const SsoCloud = $root.SsoCloud = (() => { * @returns {Object.} Plain object */ SsoSharedConfigItem.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, true); - object.ssoSpConfigurationId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.ssoSpConfigurationId = options.longs === String ? "0" : 0; + object.ssoSpConfigurationId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.ssoSpConfigurationId = options.longs === String ? '0' : 0; if ($util.Long) { let long = new $util.Long(0, 0, true); - object.ssoServiceProviderId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.ssoServiceProviderId = options.longs === String ? "0" : 0; + object.ssoServiceProviderId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.ssoServiceProviderId = options.longs === String ? '0' : 0; if ($util.Long) { let long = new $util.Long(0, 0, true); - object.ssoNodeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.ssoNodeId = options.longs === String ? "0" : 0; - } - if (message.ssoSpConfigurationId != null && message.hasOwnProperty("ssoSpConfigurationId")) - if (typeof message.ssoSpConfigurationId === "number") - object.ssoSpConfigurationId = options.longs === String ? String(message.ssoSpConfigurationId) : message.ssoSpConfigurationId; + object.ssoNodeId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.ssoNodeId = options.longs === String ? '0' : 0; + } + if (message.ssoSpConfigurationId != null && message.hasOwnProperty('ssoSpConfigurationId')) + if (typeof message.ssoSpConfigurationId === 'number') + object.ssoSpConfigurationId = + options.longs === String ? String(message.ssoSpConfigurationId) : message.ssoSpConfigurationId; else - object.ssoSpConfigurationId = options.longs === String ? $util.Long.prototype.toString.call(message.ssoSpConfigurationId) : options.longs === Number ? new $util.LongBits(message.ssoSpConfigurationId.low >>> 0, message.ssoSpConfigurationId.high >>> 0).toNumber(true) : message.ssoSpConfigurationId; - if (message.ssoServiceProviderId != null && message.hasOwnProperty("ssoServiceProviderId")) - if (typeof message.ssoServiceProviderId === "number") - object.ssoServiceProviderId = options.longs === String ? String(message.ssoServiceProviderId) : message.ssoServiceProviderId; + object.ssoSpConfigurationId = + options.longs === String + ? $util.Long.prototype.toString.call(message.ssoSpConfigurationId) + : options.longs === Number + ? new $util.LongBits( + message.ssoSpConfigurationId.low >>> 0, + message.ssoSpConfigurationId.high >>> 0 + ).toNumber(true) + : message.ssoSpConfigurationId; + if (message.ssoServiceProviderId != null && message.hasOwnProperty('ssoServiceProviderId')) + if (typeof message.ssoServiceProviderId === 'number') + object.ssoServiceProviderId = + options.longs === String ? String(message.ssoServiceProviderId) : message.ssoServiceProviderId; else - object.ssoServiceProviderId = options.longs === String ? $util.Long.prototype.toString.call(message.ssoServiceProviderId) : options.longs === Number ? new $util.LongBits(message.ssoServiceProviderId.low >>> 0, message.ssoServiceProviderId.high >>> 0).toNumber(true) : message.ssoServiceProviderId; - if (message.ssoNodeId != null && message.hasOwnProperty("ssoNodeId")) - if (typeof message.ssoNodeId === "number") + object.ssoServiceProviderId = + options.longs === String + ? $util.Long.prototype.toString.call(message.ssoServiceProviderId) + : options.longs === Number + ? new $util.LongBits( + message.ssoServiceProviderId.low >>> 0, + message.ssoServiceProviderId.high >>> 0 + ).toNumber(true) + : message.ssoServiceProviderId; + if (message.ssoNodeId != null && message.hasOwnProperty('ssoNodeId')) + if (typeof message.ssoNodeId === 'number') object.ssoNodeId = options.longs === String ? String(message.ssoNodeId) : message.ssoNodeId; else - object.ssoNodeId = options.longs === String ? $util.Long.prototype.toString.call(message.ssoNodeId) : options.longs === Number ? new $util.LongBits(message.ssoNodeId.low >>> 0, message.ssoNodeId.high >>> 0).toNumber(true) : message.ssoNodeId; + object.ssoNodeId = + options.longs === String + ? $util.Long.prototype.toString.call(message.ssoNodeId) + : options.longs === Number + ? new $util.LongBits(message.ssoNodeId.low >>> 0, message.ssoNodeId.high >>> 0).toNumber( + true + ) + : message.ssoNodeId; return object; }; @@ -123868,16 +128301,15 @@ export const SsoCloud = $root.SsoCloud = (() => { */ SsoSharedConfigItem.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/SsoCloud.SsoSharedConfigItem"; + return typeUrlPrefix + '/SsoCloud.SsoSharedConfigItem'; }; return SsoSharedConfigItem; })(); - SsoCloud.SsoCloudConfigurationResponse = (function() { - + SsoCloud.SsoCloudConfigurationResponse = (function () { /** * Properties of a SsoCloudConfigurationResponse. * @memberof SsoCloud @@ -123906,8 +128338,7 @@ export const SsoCloud = $root.SsoCloud = (() => { this.sharedConfigs = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -123916,7 +128347,7 @@ export const SsoCloud = $root.SsoCloud = (() => { * @memberof SsoCloud.SsoCloudConfigurationResponse * @instance */ - SsoCloudConfigurationResponse.prototype.ssoServiceProviderId = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + SsoCloudConfigurationResponse.prototype.ssoServiceProviderId = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; /** * SsoCloudConfigurationResponse ssoSpConfigurationId. @@ -123924,7 +128355,7 @@ export const SsoCloud = $root.SsoCloud = (() => { * @memberof SsoCloud.SsoCloudConfigurationResponse * @instance */ - SsoCloudConfigurationResponse.prototype.ssoSpConfigurationId = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + SsoCloudConfigurationResponse.prototype.ssoSpConfigurationId = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; /** * SsoCloudConfigurationResponse enterpriseId. @@ -123932,7 +128363,7 @@ export const SsoCloud = $root.SsoCloud = (() => { * @memberof SsoCloud.SsoCloudConfigurationResponse * @instance */ - SsoCloudConfigurationResponse.prototype.enterpriseId = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + SsoCloudConfigurationResponse.prototype.enterpriseId = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; /** * SsoCloudConfigurationResponse name. @@ -123940,7 +128371,7 @@ export const SsoCloud = $root.SsoCloud = (() => { * @memberof SsoCloud.SsoCloudConfigurationResponse * @instance */ - SsoCloudConfigurationResponse.prototype.name = ""; + SsoCloudConfigurationResponse.prototype.name = ''; /** * SsoCloudConfigurationResponse protocol. @@ -123948,7 +128379,7 @@ export const SsoCloud = $root.SsoCloud = (() => { * @memberof SsoCloud.SsoCloudConfigurationResponse * @instance */ - SsoCloudConfigurationResponse.prototype.protocol = ""; + SsoCloudConfigurationResponse.prototype.protocol = ''; /** * SsoCloudConfigurationResponse lastModified. @@ -123956,7 +128387,7 @@ export const SsoCloud = $root.SsoCloud = (() => { * @memberof SsoCloud.SsoCloudConfigurationResponse * @instance */ - SsoCloudConfigurationResponse.prototype.lastModified = ""; + SsoCloudConfigurationResponse.prototype.lastModified = ''; /** * SsoCloudConfigurationResponse ssoCloudSettingValue. @@ -124004,28 +128435,33 @@ export const SsoCloud = $root.SsoCloud = (() => { * @returns {$protobuf.Writer} Writer */ SsoCloudConfigurationResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.ssoServiceProviderId != null && Object.hasOwnProperty.call(message, "ssoServiceProviderId")) - writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.ssoServiceProviderId); - if (message.ssoSpConfigurationId != null && Object.hasOwnProperty.call(message, "ssoSpConfigurationId")) - writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.ssoSpConfigurationId); - if (message.enterpriseId != null && Object.hasOwnProperty.call(message, "enterpriseId")) - writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.enterpriseId); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.name); - if (message.protocol != null && Object.hasOwnProperty.call(message, "protocol")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.protocol); - if (message.lastModified != null && Object.hasOwnProperty.call(message, "lastModified")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.lastModified); + if (!writer) writer = $Writer.create(); + if (message.ssoServiceProviderId != null && Object.hasOwnProperty.call(message, 'ssoServiceProviderId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).uint64(message.ssoServiceProviderId); + if (message.ssoSpConfigurationId != null && Object.hasOwnProperty.call(message, 'ssoSpConfigurationId')) + writer.uint32(/* id 2, wireType 0 =*/ 16).uint64(message.ssoSpConfigurationId); + if (message.enterpriseId != null && Object.hasOwnProperty.call(message, 'enterpriseId')) + writer.uint32(/* id 3, wireType 0 =*/ 24).uint64(message.enterpriseId); + if (message.name != null && Object.hasOwnProperty.call(message, 'name')) + writer.uint32(/* id 4, wireType 2 =*/ 34).string(message.name); + if (message.protocol != null && Object.hasOwnProperty.call(message, 'protocol')) + writer.uint32(/* id 5, wireType 2 =*/ 42).string(message.protocol); + if (message.lastModified != null && Object.hasOwnProperty.call(message, 'lastModified')) + writer.uint32(/* id 6, wireType 2 =*/ 50).string(message.lastModified); if (message.ssoCloudSettingValue != null && message.ssoCloudSettingValue.length) for (let i = 0; i < message.ssoCloudSettingValue.length; ++i) - $root.SsoCloud.SsoCloudSettingValue.encode(message.ssoCloudSettingValue[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.isShared != null && Object.hasOwnProperty.call(message, "isShared")) - writer.uint32(/* id 8, wireType 0 =*/64).bool(message.isShared); + $root.SsoCloud.SsoCloudSettingValue.encode( + message.ssoCloudSettingValue[i], + writer.uint32(/* id 7, wireType 2 =*/ 58).fork() + ).ldelim(); + if (message.isShared != null && Object.hasOwnProperty.call(message, 'isShared')) + writer.uint32(/* id 8, wireType 0 =*/ 64).bool(message.isShared); if (message.sharedConfigs != null && message.sharedConfigs.length) for (let i = 0; i < message.sharedConfigs.length; ++i) - $root.SsoCloud.SsoSharedConfigItem.encode(message.sharedConfigs[i], writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + $root.SsoCloud.SsoSharedConfigItem.encode( + message.sharedConfigs[i], + writer.uint32(/* id 9, wireType 2 =*/ 74).fork() + ).ldelim(); return writer; }; @@ -124054,55 +128490,56 @@ export const SsoCloud = $root.SsoCloud = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SsoCloudConfigurationResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.SsoCloud.SsoCloudConfigurationResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.SsoCloud.SsoCloudConfigurationResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.ssoServiceProviderId = reader.uint64(); break; } - case 2: { + case 2: { message.ssoSpConfigurationId = reader.uint64(); break; } - case 3: { + case 3: { message.enterpriseId = reader.uint64(); break; } - case 4: { + case 4: { message.name = reader.string(); break; } - case 5: { + case 5: { message.protocol = reader.string(); break; } - case 6: { + case 6: { message.lastModified = reader.string(); break; } - case 7: { + case 7: { if (!(message.ssoCloudSettingValue && message.ssoCloudSettingValue.length)) message.ssoCloudSettingValue = []; - message.ssoCloudSettingValue.push($root.SsoCloud.SsoCloudSettingValue.decode(reader, reader.uint32())); + message.ssoCloudSettingValue.push( + $root.SsoCloud.SsoCloudSettingValue.decode(reader, reader.uint32()) + ); break; } - case 8: { + case 8: { message.isShared = reader.bool(); break; } - case 9: { - if (!(message.sharedConfigs && message.sharedConfigs.length)) - message.sharedConfigs = []; + case 9: { + if (!(message.sharedConfigs && message.sharedConfigs.length)) message.sharedConfigs = []; message.sharedConfigs.push($root.SsoCloud.SsoSharedConfigItem.decode(reader, reader.uint32())); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -124119,8 +128556,7 @@ export const SsoCloud = $root.SsoCloud = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SsoCloudConfigurationResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -124133,45 +128569,57 @@ export const SsoCloud = $root.SsoCloud = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ SsoCloudConfigurationResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.ssoServiceProviderId != null && message.hasOwnProperty("ssoServiceProviderId")) - if (!$util.isInteger(message.ssoServiceProviderId) && !(message.ssoServiceProviderId && $util.isInteger(message.ssoServiceProviderId.low) && $util.isInteger(message.ssoServiceProviderId.high))) - return "ssoServiceProviderId: integer|Long expected"; - if (message.ssoSpConfigurationId != null && message.hasOwnProperty("ssoSpConfigurationId")) - if (!$util.isInteger(message.ssoSpConfigurationId) && !(message.ssoSpConfigurationId && $util.isInteger(message.ssoSpConfigurationId.low) && $util.isInteger(message.ssoSpConfigurationId.high))) - return "ssoSpConfigurationId: integer|Long expected"; - if (message.enterpriseId != null && message.hasOwnProperty("enterpriseId")) - if (!$util.isInteger(message.enterpriseId) && !(message.enterpriseId && $util.isInteger(message.enterpriseId.low) && $util.isInteger(message.enterpriseId.high))) - return "enterpriseId: integer|Long expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.protocol != null && message.hasOwnProperty("protocol")) - if (!$util.isString(message.protocol)) - return "protocol: string expected"; - if (message.lastModified != null && message.hasOwnProperty("lastModified")) - if (!$util.isString(message.lastModified)) - return "lastModified: string expected"; - if (message.ssoCloudSettingValue != null && message.hasOwnProperty("ssoCloudSettingValue")) { - if (!Array.isArray(message.ssoCloudSettingValue)) - return "ssoCloudSettingValue: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.ssoServiceProviderId != null && message.hasOwnProperty('ssoServiceProviderId')) + if ( + !$util.isInteger(message.ssoServiceProviderId) && + !( + message.ssoServiceProviderId && + $util.isInteger(message.ssoServiceProviderId.low) && + $util.isInteger(message.ssoServiceProviderId.high) + ) + ) + return 'ssoServiceProviderId: integer|Long expected'; + if (message.ssoSpConfigurationId != null && message.hasOwnProperty('ssoSpConfigurationId')) + if ( + !$util.isInteger(message.ssoSpConfigurationId) && + !( + message.ssoSpConfigurationId && + $util.isInteger(message.ssoSpConfigurationId.low) && + $util.isInteger(message.ssoSpConfigurationId.high) + ) + ) + return 'ssoSpConfigurationId: integer|Long expected'; + if (message.enterpriseId != null && message.hasOwnProperty('enterpriseId')) + if ( + !$util.isInteger(message.enterpriseId) && + !( + message.enterpriseId && + $util.isInteger(message.enterpriseId.low) && + $util.isInteger(message.enterpriseId.high) + ) + ) + return 'enterpriseId: integer|Long expected'; + if (message.name != null && message.hasOwnProperty('name')) + if (!$util.isString(message.name)) return 'name: string expected'; + if (message.protocol != null && message.hasOwnProperty('protocol')) + if (!$util.isString(message.protocol)) return 'protocol: string expected'; + if (message.lastModified != null && message.hasOwnProperty('lastModified')) + if (!$util.isString(message.lastModified)) return 'lastModified: string expected'; + if (message.ssoCloudSettingValue != null && message.hasOwnProperty('ssoCloudSettingValue')) { + if (!Array.isArray(message.ssoCloudSettingValue)) return 'ssoCloudSettingValue: array expected'; for (let i = 0; i < message.ssoCloudSettingValue.length; ++i) { let error = $root.SsoCloud.SsoCloudSettingValue.verify(message.ssoCloudSettingValue[i]); - if (error) - return "ssoCloudSettingValue." + error; + if (error) return 'ssoCloudSettingValue.' + error; } } - if (message.isShared != null && message.hasOwnProperty("isShared")) - if (typeof message.isShared !== "boolean") - return "isShared: boolean expected"; - if (message.sharedConfigs != null && message.hasOwnProperty("sharedConfigs")) { - if (!Array.isArray(message.sharedConfigs)) - return "sharedConfigs: array expected"; + if (message.isShared != null && message.hasOwnProperty('isShared')) + if (typeof message.isShared !== 'boolean') return 'isShared: boolean expected'; + if (message.sharedConfigs != null && message.hasOwnProperty('sharedConfigs')) { + if (!Array.isArray(message.sharedConfigs)) return 'sharedConfigs: array expected'; for (let i = 0; i < message.sharedConfigs.length; ++i) { let error = $root.SsoCloud.SsoSharedConfigItem.verify(message.sharedConfigs[i]); - if (error) - return "sharedConfigs." + error; + if (error) return 'sharedConfigs.' + error; } } return null; @@ -124186,61 +128634,67 @@ export const SsoCloud = $root.SsoCloud = (() => { * @returns {SsoCloud.SsoCloudConfigurationResponse} SsoCloudConfigurationResponse */ SsoCloudConfigurationResponse.fromObject = function fromObject(object) { - if (object instanceof $root.SsoCloud.SsoCloudConfigurationResponse) - return object; + if (object instanceof $root.SsoCloud.SsoCloudConfigurationResponse) return object; let message = new $root.SsoCloud.SsoCloudConfigurationResponse(); if (object.ssoServiceProviderId != null) if ($util.Long) (message.ssoServiceProviderId = $util.Long.fromValue(object.ssoServiceProviderId)).unsigned = true; - else if (typeof object.ssoServiceProviderId === "string") + else if (typeof object.ssoServiceProviderId === 'string') message.ssoServiceProviderId = parseInt(object.ssoServiceProviderId, 10); - else if (typeof object.ssoServiceProviderId === "number") + else if (typeof object.ssoServiceProviderId === 'number') message.ssoServiceProviderId = object.ssoServiceProviderId; - else if (typeof object.ssoServiceProviderId === "object") - message.ssoServiceProviderId = new $util.LongBits(object.ssoServiceProviderId.low >>> 0, object.ssoServiceProviderId.high >>> 0).toNumber(true); + else if (typeof object.ssoServiceProviderId === 'object') + message.ssoServiceProviderId = new $util.LongBits( + object.ssoServiceProviderId.low >>> 0, + object.ssoServiceProviderId.high >>> 0 + ).toNumber(true); if (object.ssoSpConfigurationId != null) if ($util.Long) (message.ssoSpConfigurationId = $util.Long.fromValue(object.ssoSpConfigurationId)).unsigned = true; - else if (typeof object.ssoSpConfigurationId === "string") + else if (typeof object.ssoSpConfigurationId === 'string') message.ssoSpConfigurationId = parseInt(object.ssoSpConfigurationId, 10); - else if (typeof object.ssoSpConfigurationId === "number") + else if (typeof object.ssoSpConfigurationId === 'number') message.ssoSpConfigurationId = object.ssoSpConfigurationId; - else if (typeof object.ssoSpConfigurationId === "object") - message.ssoSpConfigurationId = new $util.LongBits(object.ssoSpConfigurationId.low >>> 0, object.ssoSpConfigurationId.high >>> 0).toNumber(true); + else if (typeof object.ssoSpConfigurationId === 'object') + message.ssoSpConfigurationId = new $util.LongBits( + object.ssoSpConfigurationId.low >>> 0, + object.ssoSpConfigurationId.high >>> 0 + ).toNumber(true); if (object.enterpriseId != null) - if ($util.Long) - (message.enterpriseId = $util.Long.fromValue(object.enterpriseId)).unsigned = true; - else if (typeof object.enterpriseId === "string") + if ($util.Long) (message.enterpriseId = $util.Long.fromValue(object.enterpriseId)).unsigned = true; + else if (typeof object.enterpriseId === 'string') message.enterpriseId = parseInt(object.enterpriseId, 10); - else if (typeof object.enterpriseId === "number") - message.enterpriseId = object.enterpriseId; - else if (typeof object.enterpriseId === "object") - message.enterpriseId = new $util.LongBits(object.enterpriseId.low >>> 0, object.enterpriseId.high >>> 0).toNumber(true); - if (object.name != null) - message.name = String(object.name); - if (object.protocol != null) - message.protocol = String(object.protocol); - if (object.lastModified != null) - message.lastModified = String(object.lastModified); + else if (typeof object.enterpriseId === 'number') message.enterpriseId = object.enterpriseId; + else if (typeof object.enterpriseId === 'object') + message.enterpriseId = new $util.LongBits( + object.enterpriseId.low >>> 0, + object.enterpriseId.high >>> 0 + ).toNumber(true); + if (object.name != null) message.name = String(object.name); + if (object.protocol != null) message.protocol = String(object.protocol); + if (object.lastModified != null) message.lastModified = String(object.lastModified); if (object.ssoCloudSettingValue) { if (!Array.isArray(object.ssoCloudSettingValue)) - throw TypeError(".SsoCloud.SsoCloudConfigurationResponse.ssoCloudSettingValue: array expected"); + throw TypeError('.SsoCloud.SsoCloudConfigurationResponse.ssoCloudSettingValue: array expected'); message.ssoCloudSettingValue = []; for (let i = 0; i < object.ssoCloudSettingValue.length; ++i) { - if (typeof object.ssoCloudSettingValue[i] !== "object") - throw TypeError(".SsoCloud.SsoCloudConfigurationResponse.ssoCloudSettingValue: object expected"); - message.ssoCloudSettingValue[i] = $root.SsoCloud.SsoCloudSettingValue.fromObject(object.ssoCloudSettingValue[i]); + if (typeof object.ssoCloudSettingValue[i] !== 'object') + throw TypeError( + '.SsoCloud.SsoCloudConfigurationResponse.ssoCloudSettingValue: object expected' + ); + message.ssoCloudSettingValue[i] = $root.SsoCloud.SsoCloudSettingValue.fromObject( + object.ssoCloudSettingValue[i] + ); } } - if (object.isShared != null) - message.isShared = Boolean(object.isShared); + if (object.isShared != null) message.isShared = Boolean(object.isShared); if (object.sharedConfigs) { if (!Array.isArray(object.sharedConfigs)) - throw TypeError(".SsoCloud.SsoCloudConfigurationResponse.sharedConfigs: array expected"); + throw TypeError('.SsoCloud.SsoCloudConfigurationResponse.sharedConfigs: array expected'); message.sharedConfigs = []; for (let i = 0; i < object.sharedConfigs.length; ++i) { - if (typeof object.sharedConfigs[i] !== "object") - throw TypeError(".SsoCloud.SsoCloudConfigurationResponse.sharedConfigs: object expected"); + if (typeof object.sharedConfigs[i] !== 'object') + throw TypeError('.SsoCloud.SsoCloudConfigurationResponse.sharedConfigs: object expected'); message.sharedConfigs[i] = $root.SsoCloud.SsoSharedConfigItem.fromObject(object.sharedConfigs[i]); } } @@ -124257,8 +128711,7 @@ export const SsoCloud = $root.SsoCloud = (() => { * @returns {Object.} Plain object */ SsoCloudConfigurationResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.arrays || options.defaults) { object.ssoCloudSettingValue = []; @@ -124267,56 +128720,86 @@ export const SsoCloud = $root.SsoCloud = (() => { if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, true); - object.ssoServiceProviderId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.ssoServiceProviderId = options.longs === String ? "0" : 0; + object.ssoServiceProviderId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.ssoServiceProviderId = options.longs === String ? '0' : 0; if ($util.Long) { let long = new $util.Long(0, 0, true); - object.ssoSpConfigurationId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.ssoSpConfigurationId = options.longs === String ? "0" : 0; + object.ssoSpConfigurationId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.ssoSpConfigurationId = options.longs === String ? '0' : 0; if ($util.Long) { let long = new $util.Long(0, 0, true); - object.enterpriseId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.enterpriseId = options.longs === String ? "0" : 0; - object.name = ""; - object.protocol = ""; - object.lastModified = ""; + object.enterpriseId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.enterpriseId = options.longs === String ? '0' : 0; + object.name = ''; + object.protocol = ''; + object.lastModified = ''; object.isShared = false; } - if (message.ssoServiceProviderId != null && message.hasOwnProperty("ssoServiceProviderId")) - if (typeof message.ssoServiceProviderId === "number") - object.ssoServiceProviderId = options.longs === String ? String(message.ssoServiceProviderId) : message.ssoServiceProviderId; + if (message.ssoServiceProviderId != null && message.hasOwnProperty('ssoServiceProviderId')) + if (typeof message.ssoServiceProviderId === 'number') + object.ssoServiceProviderId = + options.longs === String ? String(message.ssoServiceProviderId) : message.ssoServiceProviderId; else - object.ssoServiceProviderId = options.longs === String ? $util.Long.prototype.toString.call(message.ssoServiceProviderId) : options.longs === Number ? new $util.LongBits(message.ssoServiceProviderId.low >>> 0, message.ssoServiceProviderId.high >>> 0).toNumber(true) : message.ssoServiceProviderId; - if (message.ssoSpConfigurationId != null && message.hasOwnProperty("ssoSpConfigurationId")) - if (typeof message.ssoSpConfigurationId === "number") - object.ssoSpConfigurationId = options.longs === String ? String(message.ssoSpConfigurationId) : message.ssoSpConfigurationId; + object.ssoServiceProviderId = + options.longs === String + ? $util.Long.prototype.toString.call(message.ssoServiceProviderId) + : options.longs === Number + ? new $util.LongBits( + message.ssoServiceProviderId.low >>> 0, + message.ssoServiceProviderId.high >>> 0 + ).toNumber(true) + : message.ssoServiceProviderId; + if (message.ssoSpConfigurationId != null && message.hasOwnProperty('ssoSpConfigurationId')) + if (typeof message.ssoSpConfigurationId === 'number') + object.ssoSpConfigurationId = + options.longs === String ? String(message.ssoSpConfigurationId) : message.ssoSpConfigurationId; else - object.ssoSpConfigurationId = options.longs === String ? $util.Long.prototype.toString.call(message.ssoSpConfigurationId) : options.longs === Number ? new $util.LongBits(message.ssoSpConfigurationId.low >>> 0, message.ssoSpConfigurationId.high >>> 0).toNumber(true) : message.ssoSpConfigurationId; - if (message.enterpriseId != null && message.hasOwnProperty("enterpriseId")) - if (typeof message.enterpriseId === "number") - object.enterpriseId = options.longs === String ? String(message.enterpriseId) : message.enterpriseId; + object.ssoSpConfigurationId = + options.longs === String + ? $util.Long.prototype.toString.call(message.ssoSpConfigurationId) + : options.longs === Number + ? new $util.LongBits( + message.ssoSpConfigurationId.low >>> 0, + message.ssoSpConfigurationId.high >>> 0 + ).toNumber(true) + : message.ssoSpConfigurationId; + if (message.enterpriseId != null && message.hasOwnProperty('enterpriseId')) + if (typeof message.enterpriseId === 'number') + object.enterpriseId = + options.longs === String ? String(message.enterpriseId) : message.enterpriseId; else - object.enterpriseId = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseId) : options.longs === Number ? new $util.LongBits(message.enterpriseId.low >>> 0, message.enterpriseId.high >>> 0).toNumber(true) : message.enterpriseId; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.protocol != null && message.hasOwnProperty("protocol")) - object.protocol = message.protocol; - if (message.lastModified != null && message.hasOwnProperty("lastModified")) + object.enterpriseId = + options.longs === String + ? $util.Long.prototype.toString.call(message.enterpriseId) + : options.longs === Number + ? new $util.LongBits( + message.enterpriseId.low >>> 0, + message.enterpriseId.high >>> 0 + ).toNumber(true) + : message.enterpriseId; + if (message.name != null && message.hasOwnProperty('name')) object.name = message.name; + if (message.protocol != null && message.hasOwnProperty('protocol')) object.protocol = message.protocol; + if (message.lastModified != null && message.hasOwnProperty('lastModified')) object.lastModified = message.lastModified; if (message.ssoCloudSettingValue && message.ssoCloudSettingValue.length) { object.ssoCloudSettingValue = []; for (let j = 0; j < message.ssoCloudSettingValue.length; ++j) - object.ssoCloudSettingValue[j] = $root.SsoCloud.SsoCloudSettingValue.toObject(message.ssoCloudSettingValue[j], options); + object.ssoCloudSettingValue[j] = $root.SsoCloud.SsoCloudSettingValue.toObject( + message.ssoCloudSettingValue[j], + options + ); } - if (message.isShared != null && message.hasOwnProperty("isShared")) - object.isShared = message.isShared; + if (message.isShared != null && message.hasOwnProperty('isShared')) object.isShared = message.isShared; if (message.sharedConfigs && message.sharedConfigs.length) { object.sharedConfigs = []; for (let j = 0; j < message.sharedConfigs.length; ++j) - object.sharedConfigs[j] = $root.SsoCloud.SsoSharedConfigItem.toObject(message.sharedConfigs[j], options); + object.sharedConfigs[j] = $root.SsoCloud.SsoSharedConfigItem.toObject( + message.sharedConfigs[j], + options + ); } return object; }; @@ -124342,16 +128825,15 @@ export const SsoCloud = $root.SsoCloud = (() => { */ SsoCloudConfigurationResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/SsoCloud.SsoCloudConfigurationResponse"; + return typeUrlPrefix + '/SsoCloud.SsoCloudConfigurationResponse'; }; return SsoCloudConfigurationResponse; })(); - SsoCloud.SsoIdpTypeRequest = (function() { - + SsoCloud.SsoIdpTypeRequest = (function () { /** * Properties of a SsoIdpTypeRequest. * @memberof SsoCloud @@ -124372,8 +128854,7 @@ export const SsoCloud = $root.SsoCloud = (() => { function SsoIdpTypeRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -124390,7 +128871,7 @@ export const SsoCloud = $root.SsoCloud = (() => { * @memberof SsoCloud.SsoIdpTypeRequest * @instance */ - SsoIdpTypeRequest.prototype.tag = ""; + SsoIdpTypeRequest.prototype.tag = ''; /** * SsoIdpTypeRequest label. @@ -124398,7 +128879,7 @@ export const SsoCloud = $root.SsoCloud = (() => { * @memberof SsoCloud.SsoIdpTypeRequest * @instance */ - SsoIdpTypeRequest.prototype.label = ""; + SsoIdpTypeRequest.prototype.label = ''; /** * Creates a new SsoIdpTypeRequest instance using the specified properties. @@ -124422,14 +128903,13 @@ export const SsoCloud = $root.SsoCloud = (() => { * @returns {$protobuf.Writer} Writer */ SsoIdpTypeRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.ssoIdpTypeId != null && Object.hasOwnProperty.call(message, "ssoIdpTypeId")) - writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.ssoIdpTypeId); - if (message.tag != null && Object.hasOwnProperty.call(message, "tag")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.tag); - if (message.label != null && Object.hasOwnProperty.call(message, "label")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.label); + if (!writer) writer = $Writer.create(); + if (message.ssoIdpTypeId != null && Object.hasOwnProperty.call(message, 'ssoIdpTypeId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).uint32(message.ssoIdpTypeId); + if (message.tag != null && Object.hasOwnProperty.call(message, 'tag')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.tag); + if (message.label != null && Object.hasOwnProperty.call(message, 'label')) + writer.uint32(/* id 3, wireType 2 =*/ 26).string(message.label); return writer; }; @@ -124458,27 +128938,27 @@ export const SsoCloud = $root.SsoCloud = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SsoIdpTypeRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.SsoCloud.SsoIdpTypeRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.SsoCloud.SsoIdpTypeRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.ssoIdpTypeId = reader.uint32(); break; } - case 2: { + case 2: { message.tag = reader.string(); break; } - case 3: { + case 3: { message.label = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -124495,8 +128975,7 @@ export const SsoCloud = $root.SsoCloud = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SsoIdpTypeRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -124509,17 +128988,13 @@ export const SsoCloud = $root.SsoCloud = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ SsoIdpTypeRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.ssoIdpTypeId != null && message.hasOwnProperty("ssoIdpTypeId")) - if (!$util.isInteger(message.ssoIdpTypeId)) - return "ssoIdpTypeId: integer expected"; - if (message.tag != null && message.hasOwnProperty("tag")) - if (!$util.isString(message.tag)) - return "tag: string expected"; - if (message.label != null && message.hasOwnProperty("label")) - if (!$util.isString(message.label)) - return "label: string expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.ssoIdpTypeId != null && message.hasOwnProperty('ssoIdpTypeId')) + if (!$util.isInteger(message.ssoIdpTypeId)) return 'ssoIdpTypeId: integer expected'; + if (message.tag != null && message.hasOwnProperty('tag')) + if (!$util.isString(message.tag)) return 'tag: string expected'; + if (message.label != null && message.hasOwnProperty('label')) + if (!$util.isString(message.label)) return 'label: string expected'; return null; }; @@ -124532,15 +129007,11 @@ export const SsoCloud = $root.SsoCloud = (() => { * @returns {SsoCloud.SsoIdpTypeRequest} SsoIdpTypeRequest */ SsoIdpTypeRequest.fromObject = function fromObject(object) { - if (object instanceof $root.SsoCloud.SsoIdpTypeRequest) - return object; + if (object instanceof $root.SsoCloud.SsoIdpTypeRequest) return object; let message = new $root.SsoCloud.SsoIdpTypeRequest(); - if (object.ssoIdpTypeId != null) - message.ssoIdpTypeId = object.ssoIdpTypeId >>> 0; - if (object.tag != null) - message.tag = String(object.tag); - if (object.label != null) - message.label = String(object.label); + if (object.ssoIdpTypeId != null) message.ssoIdpTypeId = object.ssoIdpTypeId >>> 0; + if (object.tag != null) message.tag = String(object.tag); + if (object.label != null) message.label = String(object.label); return message; }; @@ -124554,20 +129025,17 @@ export const SsoCloud = $root.SsoCloud = (() => { * @returns {Object.} Plain object */ SsoIdpTypeRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { object.ssoIdpTypeId = 0; - object.tag = ""; - object.label = ""; + object.tag = ''; + object.label = ''; } - if (message.ssoIdpTypeId != null && message.hasOwnProperty("ssoIdpTypeId")) + if (message.ssoIdpTypeId != null && message.hasOwnProperty('ssoIdpTypeId')) object.ssoIdpTypeId = message.ssoIdpTypeId; - if (message.tag != null && message.hasOwnProperty("tag")) - object.tag = message.tag; - if (message.label != null && message.hasOwnProperty("label")) - object.label = message.label; + if (message.tag != null && message.hasOwnProperty('tag')) object.tag = message.tag; + if (message.label != null && message.hasOwnProperty('label')) object.label = message.label; return object; }; @@ -124592,16 +129060,15 @@ export const SsoCloud = $root.SsoCloud = (() => { */ SsoIdpTypeRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/SsoCloud.SsoIdpTypeRequest"; + return typeUrlPrefix + '/SsoCloud.SsoIdpTypeRequest'; }; return SsoIdpTypeRequest; })(); - SsoCloud.SsoIdpTypeResponse = (function() { - + SsoCloud.SsoIdpTypeResponse = (function () { /** * Properties of a SsoIdpTypeResponse. * @memberof SsoCloud @@ -124622,8 +129089,7 @@ export const SsoCloud = $root.SsoCloud = (() => { function SsoIdpTypeResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -124672,14 +129138,13 @@ export const SsoCloud = $root.SsoCloud = (() => { * @returns {$protobuf.Writer} Writer */ SsoIdpTypeResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.ssoIdpTypeId != null && Object.hasOwnProperty.call(message, "ssoIdpTypeId")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.ssoIdpTypeId); - if (message.tag != null && Object.hasOwnProperty.call(message, "tag")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.tag); - if (message.label != null && Object.hasOwnProperty.call(message, "label")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.label); + if (!writer) writer = $Writer.create(); + if (message.ssoIdpTypeId != null && Object.hasOwnProperty.call(message, 'ssoIdpTypeId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int32(message.ssoIdpTypeId); + if (message.tag != null && Object.hasOwnProperty.call(message, 'tag')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int32(message.tag); + if (message.label != null && Object.hasOwnProperty.call(message, 'label')) + writer.uint32(/* id 3, wireType 0 =*/ 24).int32(message.label); return writer; }; @@ -124708,27 +129173,27 @@ export const SsoCloud = $root.SsoCloud = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SsoIdpTypeResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.SsoCloud.SsoIdpTypeResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.SsoCloud.SsoIdpTypeResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.ssoIdpTypeId = reader.int32(); break; } - case 2: { + case 2: { message.tag = reader.int32(); break; } - case 3: { + case 3: { message.label = reader.int32(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -124745,8 +129210,7 @@ export const SsoCloud = $root.SsoCloud = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SsoIdpTypeResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -124759,17 +129223,13 @@ export const SsoCloud = $root.SsoCloud = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ SsoIdpTypeResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.ssoIdpTypeId != null && message.hasOwnProperty("ssoIdpTypeId")) - if (!$util.isInteger(message.ssoIdpTypeId)) - return "ssoIdpTypeId: integer expected"; - if (message.tag != null && message.hasOwnProperty("tag")) - if (!$util.isInteger(message.tag)) - return "tag: integer expected"; - if (message.label != null && message.hasOwnProperty("label")) - if (!$util.isInteger(message.label)) - return "label: integer expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.ssoIdpTypeId != null && message.hasOwnProperty('ssoIdpTypeId')) + if (!$util.isInteger(message.ssoIdpTypeId)) return 'ssoIdpTypeId: integer expected'; + if (message.tag != null && message.hasOwnProperty('tag')) + if (!$util.isInteger(message.tag)) return 'tag: integer expected'; + if (message.label != null && message.hasOwnProperty('label')) + if (!$util.isInteger(message.label)) return 'label: integer expected'; return null; }; @@ -124782,15 +129242,11 @@ export const SsoCloud = $root.SsoCloud = (() => { * @returns {SsoCloud.SsoIdpTypeResponse} SsoIdpTypeResponse */ SsoIdpTypeResponse.fromObject = function fromObject(object) { - if (object instanceof $root.SsoCloud.SsoIdpTypeResponse) - return object; + if (object instanceof $root.SsoCloud.SsoIdpTypeResponse) return object; let message = new $root.SsoCloud.SsoIdpTypeResponse(); - if (object.ssoIdpTypeId != null) - message.ssoIdpTypeId = object.ssoIdpTypeId | 0; - if (object.tag != null) - message.tag = object.tag | 0; - if (object.label != null) - message.label = object.label | 0; + if (object.ssoIdpTypeId != null) message.ssoIdpTypeId = object.ssoIdpTypeId | 0; + if (object.tag != null) message.tag = object.tag | 0; + if (object.label != null) message.label = object.label | 0; return message; }; @@ -124804,20 +129260,17 @@ export const SsoCloud = $root.SsoCloud = (() => { * @returns {Object.} Plain object */ SsoIdpTypeResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { object.ssoIdpTypeId = 0; object.tag = 0; object.label = 0; } - if (message.ssoIdpTypeId != null && message.hasOwnProperty("ssoIdpTypeId")) + if (message.ssoIdpTypeId != null && message.hasOwnProperty('ssoIdpTypeId')) object.ssoIdpTypeId = message.ssoIdpTypeId; - if (message.tag != null && message.hasOwnProperty("tag")) - object.tag = message.tag; - if (message.label != null && message.hasOwnProperty("label")) - object.label = message.label; + if (message.tag != null && message.hasOwnProperty('tag')) object.tag = message.tag; + if (message.label != null && message.hasOwnProperty('label')) object.label = message.label; return object; }; @@ -124842,16 +129295,15 @@ export const SsoCloud = $root.SsoCloud = (() => { */ SsoIdpTypeResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/SsoCloud.SsoIdpTypeResponse"; + return typeUrlPrefix + '/SsoCloud.SsoIdpTypeResponse'; }; return SsoIdpTypeResponse; })(); - SsoCloud.SsoCloudSAMLLogRequest = (function() { - + SsoCloud.SsoCloudSAMLLogRequest = (function () { /** * Properties of a SsoCloudSAMLLogRequest. * @memberof SsoCloud @@ -124870,8 +129322,7 @@ export const SsoCloud = $root.SsoCloud = (() => { function SsoCloudSAMLLogRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -124880,7 +129331,7 @@ export const SsoCloud = $root.SsoCloud = (() => { * @memberof SsoCloud.SsoCloudSAMLLogRequest * @instance */ - SsoCloudSAMLLogRequest.prototype.ssoServiceProviderId = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + SsoCloudSAMLLogRequest.prototype.ssoServiceProviderId = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; /** * Creates a new SsoCloudSAMLLogRequest instance using the specified properties. @@ -124904,10 +129355,9 @@ export const SsoCloud = $root.SsoCloud = (() => { * @returns {$protobuf.Writer} Writer */ SsoCloudSAMLLogRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.ssoServiceProviderId != null && Object.hasOwnProperty.call(message, "ssoServiceProviderId")) - writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.ssoServiceProviderId); + if (!writer) writer = $Writer.create(); + if (message.ssoServiceProviderId != null && Object.hasOwnProperty.call(message, 'ssoServiceProviderId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).uint64(message.ssoServiceProviderId); return writer; }; @@ -124936,19 +129386,19 @@ export const SsoCloud = $root.SsoCloud = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SsoCloudSAMLLogRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.SsoCloud.SsoCloudSAMLLogRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.SsoCloud.SsoCloudSAMLLogRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.ssoServiceProviderId = reader.uint64(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -124965,8 +129415,7 @@ export const SsoCloud = $root.SsoCloud = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SsoCloudSAMLLogRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -124979,11 +129428,17 @@ export const SsoCloud = $root.SsoCloud = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ SsoCloudSAMLLogRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.ssoServiceProviderId != null && message.hasOwnProperty("ssoServiceProviderId")) - if (!$util.isInteger(message.ssoServiceProviderId) && !(message.ssoServiceProviderId && $util.isInteger(message.ssoServiceProviderId.low) && $util.isInteger(message.ssoServiceProviderId.high))) - return "ssoServiceProviderId: integer|Long expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.ssoServiceProviderId != null && message.hasOwnProperty('ssoServiceProviderId')) + if ( + !$util.isInteger(message.ssoServiceProviderId) && + !( + message.ssoServiceProviderId && + $util.isInteger(message.ssoServiceProviderId.low) && + $util.isInteger(message.ssoServiceProviderId.high) + ) + ) + return 'ssoServiceProviderId: integer|Long expected'; return null; }; @@ -124996,18 +129451,20 @@ export const SsoCloud = $root.SsoCloud = (() => { * @returns {SsoCloud.SsoCloudSAMLLogRequest} SsoCloudSAMLLogRequest */ SsoCloudSAMLLogRequest.fromObject = function fromObject(object) { - if (object instanceof $root.SsoCloud.SsoCloudSAMLLogRequest) - return object; + if (object instanceof $root.SsoCloud.SsoCloudSAMLLogRequest) return object; let message = new $root.SsoCloud.SsoCloudSAMLLogRequest(); if (object.ssoServiceProviderId != null) if ($util.Long) (message.ssoServiceProviderId = $util.Long.fromValue(object.ssoServiceProviderId)).unsigned = true; - else if (typeof object.ssoServiceProviderId === "string") + else if (typeof object.ssoServiceProviderId === 'string') message.ssoServiceProviderId = parseInt(object.ssoServiceProviderId, 10); - else if (typeof object.ssoServiceProviderId === "number") + else if (typeof object.ssoServiceProviderId === 'number') message.ssoServiceProviderId = object.ssoServiceProviderId; - else if (typeof object.ssoServiceProviderId === "object") - message.ssoServiceProviderId = new $util.LongBits(object.ssoServiceProviderId.low >>> 0, object.ssoServiceProviderId.high >>> 0).toNumber(true); + else if (typeof object.ssoServiceProviderId === 'object') + message.ssoServiceProviderId = new $util.LongBits( + object.ssoServiceProviderId.low >>> 0, + object.ssoServiceProviderId.high >>> 0 + ).toNumber(true); return message; }; @@ -125021,20 +129478,28 @@ export const SsoCloud = $root.SsoCloud = (() => { * @returns {Object.} Plain object */ SsoCloudSAMLLogRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) if ($util.Long) { let long = new $util.Long(0, 0, true); - object.ssoServiceProviderId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.ssoServiceProviderId = options.longs === String ? "0" : 0; - if (message.ssoServiceProviderId != null && message.hasOwnProperty("ssoServiceProviderId")) - if (typeof message.ssoServiceProviderId === "number") - object.ssoServiceProviderId = options.longs === String ? String(message.ssoServiceProviderId) : message.ssoServiceProviderId; + object.ssoServiceProviderId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.ssoServiceProviderId = options.longs === String ? '0' : 0; + if (message.ssoServiceProviderId != null && message.hasOwnProperty('ssoServiceProviderId')) + if (typeof message.ssoServiceProviderId === 'number') + object.ssoServiceProviderId = + options.longs === String ? String(message.ssoServiceProviderId) : message.ssoServiceProviderId; else - object.ssoServiceProviderId = options.longs === String ? $util.Long.prototype.toString.call(message.ssoServiceProviderId) : options.longs === Number ? new $util.LongBits(message.ssoServiceProviderId.low >>> 0, message.ssoServiceProviderId.high >>> 0).toNumber(true) : message.ssoServiceProviderId; + object.ssoServiceProviderId = + options.longs === String + ? $util.Long.prototype.toString.call(message.ssoServiceProviderId) + : options.longs === Number + ? new $util.LongBits( + message.ssoServiceProviderId.low >>> 0, + message.ssoServiceProviderId.high >>> 0 + ).toNumber(true) + : message.ssoServiceProviderId; return object; }; @@ -125059,16 +129524,15 @@ export const SsoCloud = $root.SsoCloud = (() => { */ SsoCloudSAMLLogRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/SsoCloud.SsoCloudSAMLLogRequest"; + return typeUrlPrefix + '/SsoCloud.SsoCloudSAMLLogRequest'; }; return SsoCloudSAMLLogRequest; })(); - SsoCloud.SsoCloudSAMLLogEntry = (function() { - + SsoCloud.SsoCloudSAMLLogEntry = (function () { /** * Properties of a SsoCloudSAMLLogEntry. * @memberof SsoCloud @@ -125096,8 +129560,7 @@ export const SsoCloud = $root.SsoCloud = (() => { function SsoCloudSAMLLogEntry(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -125106,7 +129569,7 @@ export const SsoCloud = $root.SsoCloud = (() => { * @memberof SsoCloud.SsoCloudSAMLLogEntry * @instance */ - SsoCloudSAMLLogEntry.prototype.serverTime = ""; + SsoCloudSAMLLogEntry.prototype.serverTime = ''; /** * SsoCloudSAMLLogEntry direction. @@ -125114,7 +129577,7 @@ export const SsoCloud = $root.SsoCloud = (() => { * @memberof SsoCloud.SsoCloudSAMLLogEntry * @instance */ - SsoCloudSAMLLogEntry.prototype.direction = ""; + SsoCloudSAMLLogEntry.prototype.direction = ''; /** * SsoCloudSAMLLogEntry messageType. @@ -125122,7 +129585,7 @@ export const SsoCloud = $root.SsoCloud = (() => { * @memberof SsoCloud.SsoCloudSAMLLogEntry * @instance */ - SsoCloudSAMLLogEntry.prototype.messageType = ""; + SsoCloudSAMLLogEntry.prototype.messageType = ''; /** * SsoCloudSAMLLogEntry messageIssued. @@ -125130,7 +129593,7 @@ export const SsoCloud = $root.SsoCloud = (() => { * @memberof SsoCloud.SsoCloudSAMLLogEntry * @instance */ - SsoCloudSAMLLogEntry.prototype.messageIssued = ""; + SsoCloudSAMLLogEntry.prototype.messageIssued = ''; /** * SsoCloudSAMLLogEntry fromEntityId. @@ -125138,7 +129601,7 @@ export const SsoCloud = $root.SsoCloud = (() => { * @memberof SsoCloud.SsoCloudSAMLLogEntry * @instance */ - SsoCloudSAMLLogEntry.prototype.fromEntityId = ""; + SsoCloudSAMLLogEntry.prototype.fromEntityId = ''; /** * SsoCloudSAMLLogEntry samlStatus. @@ -125146,7 +129609,7 @@ export const SsoCloud = $root.SsoCloud = (() => { * @memberof SsoCloud.SsoCloudSAMLLogEntry * @instance */ - SsoCloudSAMLLogEntry.prototype.samlStatus = ""; + SsoCloudSAMLLogEntry.prototype.samlStatus = ''; /** * SsoCloudSAMLLogEntry relayState. @@ -125154,7 +129617,7 @@ export const SsoCloud = $root.SsoCloud = (() => { * @memberof SsoCloud.SsoCloudSAMLLogEntry * @instance */ - SsoCloudSAMLLogEntry.prototype.relayState = ""; + SsoCloudSAMLLogEntry.prototype.relayState = ''; /** * SsoCloudSAMLLogEntry samlContent. @@ -125162,7 +129625,7 @@ export const SsoCloud = $root.SsoCloud = (() => { * @memberof SsoCloud.SsoCloudSAMLLogEntry * @instance */ - SsoCloudSAMLLogEntry.prototype.samlContent = ""; + SsoCloudSAMLLogEntry.prototype.samlContent = ''; /** * SsoCloudSAMLLogEntry isSigned. @@ -125202,28 +129665,27 @@ export const SsoCloud = $root.SsoCloud = (() => { * @returns {$protobuf.Writer} Writer */ SsoCloudSAMLLogEntry.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.serverTime != null && Object.hasOwnProperty.call(message, "serverTime")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.serverTime); - if (message.direction != null && Object.hasOwnProperty.call(message, "direction")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.direction); - if (message.messageType != null && Object.hasOwnProperty.call(message, "messageType")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.messageType); - if (message.messageIssued != null && Object.hasOwnProperty.call(message, "messageIssued")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.messageIssued); - if (message.fromEntityId != null && Object.hasOwnProperty.call(message, "fromEntityId")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.fromEntityId); - if (message.samlStatus != null && Object.hasOwnProperty.call(message, "samlStatus")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.samlStatus); - if (message.relayState != null && Object.hasOwnProperty.call(message, "relayState")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.relayState); - if (message.samlContent != null && Object.hasOwnProperty.call(message, "samlContent")) - writer.uint32(/* id 8, wireType 2 =*/66).string(message.samlContent); - if (message.isSigned != null && Object.hasOwnProperty.call(message, "isSigned")) - writer.uint32(/* id 9, wireType 0 =*/72).bool(message.isSigned); - if (message.isOK != null && Object.hasOwnProperty.call(message, "isOK")) - writer.uint32(/* id 10, wireType 0 =*/80).bool(message.isOK); + if (!writer) writer = $Writer.create(); + if (message.serverTime != null && Object.hasOwnProperty.call(message, 'serverTime')) + writer.uint32(/* id 1, wireType 2 =*/ 10).string(message.serverTime); + if (message.direction != null && Object.hasOwnProperty.call(message, 'direction')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.direction); + if (message.messageType != null && Object.hasOwnProperty.call(message, 'messageType')) + writer.uint32(/* id 3, wireType 2 =*/ 26).string(message.messageType); + if (message.messageIssued != null && Object.hasOwnProperty.call(message, 'messageIssued')) + writer.uint32(/* id 4, wireType 2 =*/ 34).string(message.messageIssued); + if (message.fromEntityId != null && Object.hasOwnProperty.call(message, 'fromEntityId')) + writer.uint32(/* id 5, wireType 2 =*/ 42).string(message.fromEntityId); + if (message.samlStatus != null && Object.hasOwnProperty.call(message, 'samlStatus')) + writer.uint32(/* id 6, wireType 2 =*/ 50).string(message.samlStatus); + if (message.relayState != null && Object.hasOwnProperty.call(message, 'relayState')) + writer.uint32(/* id 7, wireType 2 =*/ 58).string(message.relayState); + if (message.samlContent != null && Object.hasOwnProperty.call(message, 'samlContent')) + writer.uint32(/* id 8, wireType 2 =*/ 66).string(message.samlContent); + if (message.isSigned != null && Object.hasOwnProperty.call(message, 'isSigned')) + writer.uint32(/* id 9, wireType 0 =*/ 72).bool(message.isSigned); + if (message.isOK != null && Object.hasOwnProperty.call(message, 'isOK')) + writer.uint32(/* id 10, wireType 0 =*/ 80).bool(message.isOK); return writer; }; @@ -125252,55 +129714,55 @@ export const SsoCloud = $root.SsoCloud = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SsoCloudSAMLLogEntry.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.SsoCloud.SsoCloudSAMLLogEntry(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.SsoCloud.SsoCloudSAMLLogEntry(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.serverTime = reader.string(); break; } - case 2: { + case 2: { message.direction = reader.string(); break; } - case 3: { + case 3: { message.messageType = reader.string(); break; } - case 4: { + case 4: { message.messageIssued = reader.string(); break; } - case 5: { + case 5: { message.fromEntityId = reader.string(); break; } - case 6: { + case 6: { message.samlStatus = reader.string(); break; } - case 7: { + case 7: { message.relayState = reader.string(); break; } - case 8: { + case 8: { message.samlContent = reader.string(); break; } - case 9: { + case 9: { message.isSigned = reader.bool(); break; } - case 10: { + case 10: { message.isOK = reader.bool(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -125317,8 +129779,7 @@ export const SsoCloud = $root.SsoCloud = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SsoCloudSAMLLogEntry.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -125331,38 +129792,27 @@ export const SsoCloud = $root.SsoCloud = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ SsoCloudSAMLLogEntry.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.serverTime != null && message.hasOwnProperty("serverTime")) - if (!$util.isString(message.serverTime)) - return "serverTime: string expected"; - if (message.direction != null && message.hasOwnProperty("direction")) - if (!$util.isString(message.direction)) - return "direction: string expected"; - if (message.messageType != null && message.hasOwnProperty("messageType")) - if (!$util.isString(message.messageType)) - return "messageType: string expected"; - if (message.messageIssued != null && message.hasOwnProperty("messageIssued")) - if (!$util.isString(message.messageIssued)) - return "messageIssued: string expected"; - if (message.fromEntityId != null && message.hasOwnProperty("fromEntityId")) - if (!$util.isString(message.fromEntityId)) - return "fromEntityId: string expected"; - if (message.samlStatus != null && message.hasOwnProperty("samlStatus")) - if (!$util.isString(message.samlStatus)) - return "samlStatus: string expected"; - if (message.relayState != null && message.hasOwnProperty("relayState")) - if (!$util.isString(message.relayState)) - return "relayState: string expected"; - if (message.samlContent != null && message.hasOwnProperty("samlContent")) - if (!$util.isString(message.samlContent)) - return "samlContent: string expected"; - if (message.isSigned != null && message.hasOwnProperty("isSigned")) - if (typeof message.isSigned !== "boolean") - return "isSigned: boolean expected"; - if (message.isOK != null && message.hasOwnProperty("isOK")) - if (typeof message.isOK !== "boolean") - return "isOK: boolean expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.serverTime != null && message.hasOwnProperty('serverTime')) + if (!$util.isString(message.serverTime)) return 'serverTime: string expected'; + if (message.direction != null && message.hasOwnProperty('direction')) + if (!$util.isString(message.direction)) return 'direction: string expected'; + if (message.messageType != null && message.hasOwnProperty('messageType')) + if (!$util.isString(message.messageType)) return 'messageType: string expected'; + if (message.messageIssued != null && message.hasOwnProperty('messageIssued')) + if (!$util.isString(message.messageIssued)) return 'messageIssued: string expected'; + if (message.fromEntityId != null && message.hasOwnProperty('fromEntityId')) + if (!$util.isString(message.fromEntityId)) return 'fromEntityId: string expected'; + if (message.samlStatus != null && message.hasOwnProperty('samlStatus')) + if (!$util.isString(message.samlStatus)) return 'samlStatus: string expected'; + if (message.relayState != null && message.hasOwnProperty('relayState')) + if (!$util.isString(message.relayState)) return 'relayState: string expected'; + if (message.samlContent != null && message.hasOwnProperty('samlContent')) + if (!$util.isString(message.samlContent)) return 'samlContent: string expected'; + if (message.isSigned != null && message.hasOwnProperty('isSigned')) + if (typeof message.isSigned !== 'boolean') return 'isSigned: boolean expected'; + if (message.isOK != null && message.hasOwnProperty('isOK')) + if (typeof message.isOK !== 'boolean') return 'isOK: boolean expected'; return null; }; @@ -125375,29 +129825,18 @@ export const SsoCloud = $root.SsoCloud = (() => { * @returns {SsoCloud.SsoCloudSAMLLogEntry} SsoCloudSAMLLogEntry */ SsoCloudSAMLLogEntry.fromObject = function fromObject(object) { - if (object instanceof $root.SsoCloud.SsoCloudSAMLLogEntry) - return object; + if (object instanceof $root.SsoCloud.SsoCloudSAMLLogEntry) return object; let message = new $root.SsoCloud.SsoCloudSAMLLogEntry(); - if (object.serverTime != null) - message.serverTime = String(object.serverTime); - if (object.direction != null) - message.direction = String(object.direction); - if (object.messageType != null) - message.messageType = String(object.messageType); - if (object.messageIssued != null) - message.messageIssued = String(object.messageIssued); - if (object.fromEntityId != null) - message.fromEntityId = String(object.fromEntityId); - if (object.samlStatus != null) - message.samlStatus = String(object.samlStatus); - if (object.relayState != null) - message.relayState = String(object.relayState); - if (object.samlContent != null) - message.samlContent = String(object.samlContent); - if (object.isSigned != null) - message.isSigned = Boolean(object.isSigned); - if (object.isOK != null) - message.isOK = Boolean(object.isOK); + if (object.serverTime != null) message.serverTime = String(object.serverTime); + if (object.direction != null) message.direction = String(object.direction); + if (object.messageType != null) message.messageType = String(object.messageType); + if (object.messageIssued != null) message.messageIssued = String(object.messageIssued); + if (object.fromEntityId != null) message.fromEntityId = String(object.fromEntityId); + if (object.samlStatus != null) message.samlStatus = String(object.samlStatus); + if (object.relayState != null) message.relayState = String(object.relayState); + if (object.samlContent != null) message.samlContent = String(object.samlContent); + if (object.isSigned != null) message.isSigned = Boolean(object.isSigned); + if (object.isOK != null) message.isOK = Boolean(object.isOK); return message; }; @@ -125411,41 +129850,37 @@ export const SsoCloud = $root.SsoCloud = (() => { * @returns {Object.} Plain object */ SsoCloudSAMLLogEntry.toObject = function toObject(message, options) { - if (!options) - options = {}; - let object = {}; - if (options.defaults) { - object.serverTime = ""; - object.direction = ""; - object.messageType = ""; - object.messageIssued = ""; - object.fromEntityId = ""; - object.samlStatus = ""; - object.relayState = ""; - object.samlContent = ""; + if (!options) options = {}; + let object = {}; + if (options.defaults) { + object.serverTime = ''; + object.direction = ''; + object.messageType = ''; + object.messageIssued = ''; + object.fromEntityId = ''; + object.samlStatus = ''; + object.relayState = ''; + object.samlContent = ''; object.isSigned = false; object.isOK = false; } - if (message.serverTime != null && message.hasOwnProperty("serverTime")) + if (message.serverTime != null && message.hasOwnProperty('serverTime')) object.serverTime = message.serverTime; - if (message.direction != null && message.hasOwnProperty("direction")) - object.direction = message.direction; - if (message.messageType != null && message.hasOwnProperty("messageType")) + if (message.direction != null && message.hasOwnProperty('direction')) object.direction = message.direction; + if (message.messageType != null && message.hasOwnProperty('messageType')) object.messageType = message.messageType; - if (message.messageIssued != null && message.hasOwnProperty("messageIssued")) + if (message.messageIssued != null && message.hasOwnProperty('messageIssued')) object.messageIssued = message.messageIssued; - if (message.fromEntityId != null && message.hasOwnProperty("fromEntityId")) + if (message.fromEntityId != null && message.hasOwnProperty('fromEntityId')) object.fromEntityId = message.fromEntityId; - if (message.samlStatus != null && message.hasOwnProperty("samlStatus")) + if (message.samlStatus != null && message.hasOwnProperty('samlStatus')) object.samlStatus = message.samlStatus; - if (message.relayState != null && message.hasOwnProperty("relayState")) + if (message.relayState != null && message.hasOwnProperty('relayState')) object.relayState = message.relayState; - if (message.samlContent != null && message.hasOwnProperty("samlContent")) + if (message.samlContent != null && message.hasOwnProperty('samlContent')) object.samlContent = message.samlContent; - if (message.isSigned != null && message.hasOwnProperty("isSigned")) - object.isSigned = message.isSigned; - if (message.isOK != null && message.hasOwnProperty("isOK")) - object.isOK = message.isOK; + if (message.isSigned != null && message.hasOwnProperty('isSigned')) object.isSigned = message.isSigned; + if (message.isOK != null && message.hasOwnProperty('isOK')) object.isOK = message.isOK; return object; }; @@ -125470,16 +129905,15 @@ export const SsoCloud = $root.SsoCloud = (() => { */ SsoCloudSAMLLogEntry.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/SsoCloud.SsoCloudSAMLLogEntry"; + return typeUrlPrefix + '/SsoCloud.SsoCloudSAMLLogEntry'; }; return SsoCloudSAMLLogEntry; })(); - SsoCloud.SsoCloudSAMLLogResponse = (function() { - + SsoCloud.SsoCloudSAMLLogResponse = (function () { /** * Properties of a SsoCloudSAMLLogResponse. * @memberof SsoCloud @@ -125500,8 +129934,7 @@ export const SsoCloud = $root.SsoCloud = (() => { this.entry = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -125510,7 +129943,7 @@ export const SsoCloud = $root.SsoCloud = (() => { * @memberof SsoCloud.SsoCloudSAMLLogResponse * @instance */ - SsoCloudSAMLLogResponse.prototype.ssoServiceProviderId = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + SsoCloudSAMLLogResponse.prototype.ssoServiceProviderId = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; /** * SsoCloudSAMLLogResponse entry. @@ -125542,13 +129975,15 @@ export const SsoCloud = $root.SsoCloud = (() => { * @returns {$protobuf.Writer} Writer */ SsoCloudSAMLLogResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.ssoServiceProviderId != null && Object.hasOwnProperty.call(message, "ssoServiceProviderId")) - writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.ssoServiceProviderId); + if (!writer) writer = $Writer.create(); + if (message.ssoServiceProviderId != null && Object.hasOwnProperty.call(message, 'ssoServiceProviderId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).uint64(message.ssoServiceProviderId); if (message.entry != null && message.entry.length) for (let i = 0; i < message.entry.length; ++i) - $root.SsoCloud.SsoCloudSAMLLogEntry.encode(message.entry[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + $root.SsoCloud.SsoCloudSAMLLogEntry.encode( + message.entry[i], + writer.uint32(/* id 2, wireType 2 =*/ 18).fork() + ).ldelim(); return writer; }; @@ -125577,25 +130012,24 @@ export const SsoCloud = $root.SsoCloud = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SsoCloudSAMLLogResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.SsoCloud.SsoCloudSAMLLogResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.SsoCloud.SsoCloudSAMLLogResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.ssoServiceProviderId = reader.uint64(); break; } - case 2: { - if (!(message.entry && message.entry.length)) - message.entry = []; + case 2: { + if (!(message.entry && message.entry.length)) message.entry = []; message.entry.push($root.SsoCloud.SsoCloudSAMLLogEntry.decode(reader, reader.uint32())); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -125612,8 +130046,7 @@ export const SsoCloud = $root.SsoCloud = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SsoCloudSAMLLogResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -125626,18 +130059,22 @@ export const SsoCloud = $root.SsoCloud = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ SsoCloudSAMLLogResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.ssoServiceProviderId != null && message.hasOwnProperty("ssoServiceProviderId")) - if (!$util.isInteger(message.ssoServiceProviderId) && !(message.ssoServiceProviderId && $util.isInteger(message.ssoServiceProviderId.low) && $util.isInteger(message.ssoServiceProviderId.high))) - return "ssoServiceProviderId: integer|Long expected"; - if (message.entry != null && message.hasOwnProperty("entry")) { - if (!Array.isArray(message.entry)) - return "entry: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.ssoServiceProviderId != null && message.hasOwnProperty('ssoServiceProviderId')) + if ( + !$util.isInteger(message.ssoServiceProviderId) && + !( + message.ssoServiceProviderId && + $util.isInteger(message.ssoServiceProviderId.low) && + $util.isInteger(message.ssoServiceProviderId.high) + ) + ) + return 'ssoServiceProviderId: integer|Long expected'; + if (message.entry != null && message.hasOwnProperty('entry')) { + if (!Array.isArray(message.entry)) return 'entry: array expected'; for (let i = 0; i < message.entry.length; ++i) { let error = $root.SsoCloud.SsoCloudSAMLLogEntry.verify(message.entry[i]); - if (error) - return "entry." + error; + if (error) return 'entry.' + error; } } return null; @@ -125652,25 +130089,27 @@ export const SsoCloud = $root.SsoCloud = (() => { * @returns {SsoCloud.SsoCloudSAMLLogResponse} SsoCloudSAMLLogResponse */ SsoCloudSAMLLogResponse.fromObject = function fromObject(object) { - if (object instanceof $root.SsoCloud.SsoCloudSAMLLogResponse) - return object; + if (object instanceof $root.SsoCloud.SsoCloudSAMLLogResponse) return object; let message = new $root.SsoCloud.SsoCloudSAMLLogResponse(); if (object.ssoServiceProviderId != null) if ($util.Long) (message.ssoServiceProviderId = $util.Long.fromValue(object.ssoServiceProviderId)).unsigned = true; - else if (typeof object.ssoServiceProviderId === "string") + else if (typeof object.ssoServiceProviderId === 'string') message.ssoServiceProviderId = parseInt(object.ssoServiceProviderId, 10); - else if (typeof object.ssoServiceProviderId === "number") + else if (typeof object.ssoServiceProviderId === 'number') message.ssoServiceProviderId = object.ssoServiceProviderId; - else if (typeof object.ssoServiceProviderId === "object") - message.ssoServiceProviderId = new $util.LongBits(object.ssoServiceProviderId.low >>> 0, object.ssoServiceProviderId.high >>> 0).toNumber(true); + else if (typeof object.ssoServiceProviderId === 'object') + message.ssoServiceProviderId = new $util.LongBits( + object.ssoServiceProviderId.low >>> 0, + object.ssoServiceProviderId.high >>> 0 + ).toNumber(true); if (object.entry) { if (!Array.isArray(object.entry)) - throw TypeError(".SsoCloud.SsoCloudSAMLLogResponse.entry: array expected"); + throw TypeError('.SsoCloud.SsoCloudSAMLLogResponse.entry: array expected'); message.entry = []; for (let i = 0; i < object.entry.length; ++i) { - if (typeof object.entry[i] !== "object") - throw TypeError(".SsoCloud.SsoCloudSAMLLogResponse.entry: object expected"); + if (typeof object.entry[i] !== 'object') + throw TypeError('.SsoCloud.SsoCloudSAMLLogResponse.entry: object expected'); message.entry[i] = $root.SsoCloud.SsoCloudSAMLLogEntry.fromObject(object.entry[i]); } } @@ -125687,22 +130126,29 @@ export const SsoCloud = $root.SsoCloud = (() => { * @returns {Object.} Plain object */ SsoCloudSAMLLogResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.entry = []; + if (options.arrays || options.defaults) object.entry = []; if (options.defaults) if ($util.Long) { let long = new $util.Long(0, 0, true); - object.ssoServiceProviderId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.ssoServiceProviderId = options.longs === String ? "0" : 0; - if (message.ssoServiceProviderId != null && message.hasOwnProperty("ssoServiceProviderId")) - if (typeof message.ssoServiceProviderId === "number") - object.ssoServiceProviderId = options.longs === String ? String(message.ssoServiceProviderId) : message.ssoServiceProviderId; + object.ssoServiceProviderId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.ssoServiceProviderId = options.longs === String ? '0' : 0; + if (message.ssoServiceProviderId != null && message.hasOwnProperty('ssoServiceProviderId')) + if (typeof message.ssoServiceProviderId === 'number') + object.ssoServiceProviderId = + options.longs === String ? String(message.ssoServiceProviderId) : message.ssoServiceProviderId; else - object.ssoServiceProviderId = options.longs === String ? $util.Long.prototype.toString.call(message.ssoServiceProviderId) : options.longs === Number ? new $util.LongBits(message.ssoServiceProviderId.low >>> 0, message.ssoServiceProviderId.high >>> 0).toNumber(true) : message.ssoServiceProviderId; + object.ssoServiceProviderId = + options.longs === String + ? $util.Long.prototype.toString.call(message.ssoServiceProviderId) + : options.longs === Number + ? new $util.LongBits( + message.ssoServiceProviderId.low >>> 0, + message.ssoServiceProviderId.high >>> 0 + ).toNumber(true) + : message.ssoServiceProviderId; if (message.entry && message.entry.length) { object.entry = []; for (let j = 0; j < message.entry.length; ++j) @@ -125732,16 +130178,15 @@ export const SsoCloud = $root.SsoCloud = (() => { */ SsoCloudSAMLLogResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/SsoCloud.SsoCloudSAMLLogResponse"; + return typeUrlPrefix + '/SsoCloud.SsoCloudSAMLLogResponse'; }; return SsoCloudSAMLLogResponse; })(); - SsoCloud.SsoCloudServiceProviderUpdateRequest = (function() { - + SsoCloud.SsoCloudServiceProviderUpdateRequest = (function () { /** * Properties of a SsoCloudServiceProviderUpdateRequest. * @memberof SsoCloud @@ -125762,8 +130207,7 @@ export const SsoCloud = $root.SsoCloud = (() => { function SsoCloudServiceProviderUpdateRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -125772,7 +130216,9 @@ export const SsoCloud = $root.SsoCloud = (() => { * @memberof SsoCloud.SsoCloudServiceProviderUpdateRequest * @instance */ - SsoCloudServiceProviderUpdateRequest.prototype.ssoServiceProviderId = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + SsoCloudServiceProviderUpdateRequest.prototype.ssoServiceProviderId = $util.Long + ? $util.Long.fromBits(0, 0, true) + : 0; /** * SsoCloudServiceProviderUpdateRequest ssoSpConfigurationId. @@ -125780,7 +130226,9 @@ export const SsoCloud = $root.SsoCloud = (() => { * @memberof SsoCloud.SsoCloudServiceProviderUpdateRequest * @instance */ - SsoCloudServiceProviderUpdateRequest.prototype.ssoSpConfigurationId = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + SsoCloudServiceProviderUpdateRequest.prototype.ssoSpConfigurationId = $util.Long + ? $util.Long.fromBits(0, 0, true) + : 0; /** * Creates a new SsoCloudServiceProviderUpdateRequest instance using the specified properties. @@ -125804,12 +130252,11 @@ export const SsoCloud = $root.SsoCloud = (() => { * @returns {$protobuf.Writer} Writer */ SsoCloudServiceProviderUpdateRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.ssoServiceProviderId != null && Object.hasOwnProperty.call(message, "ssoServiceProviderId")) - writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.ssoServiceProviderId); - if (message.ssoSpConfigurationId != null && Object.hasOwnProperty.call(message, "ssoSpConfigurationId")) - writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.ssoSpConfigurationId); + if (!writer) writer = $Writer.create(); + if (message.ssoServiceProviderId != null && Object.hasOwnProperty.call(message, 'ssoServiceProviderId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).uint64(message.ssoServiceProviderId); + if (message.ssoSpConfigurationId != null && Object.hasOwnProperty.call(message, 'ssoSpConfigurationId')) + writer.uint32(/* id 2, wireType 0 =*/ 16).uint64(message.ssoSpConfigurationId); return writer; }; @@ -125838,23 +130285,23 @@ export const SsoCloud = $root.SsoCloud = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SsoCloudServiceProviderUpdateRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.SsoCloud.SsoCloudServiceProviderUpdateRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.SsoCloud.SsoCloudServiceProviderUpdateRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.ssoServiceProviderId = reader.uint64(); break; } - case 2: { + case 2: { message.ssoSpConfigurationId = reader.uint64(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -125871,8 +130318,7 @@ export const SsoCloud = $root.SsoCloud = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SsoCloudServiceProviderUpdateRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -125885,14 +130331,27 @@ export const SsoCloud = $root.SsoCloud = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ SsoCloudServiceProviderUpdateRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.ssoServiceProviderId != null && message.hasOwnProperty("ssoServiceProviderId")) - if (!$util.isInteger(message.ssoServiceProviderId) && !(message.ssoServiceProviderId && $util.isInteger(message.ssoServiceProviderId.low) && $util.isInteger(message.ssoServiceProviderId.high))) - return "ssoServiceProviderId: integer|Long expected"; - if (message.ssoSpConfigurationId != null && message.hasOwnProperty("ssoSpConfigurationId")) - if (!$util.isInteger(message.ssoSpConfigurationId) && !(message.ssoSpConfigurationId && $util.isInteger(message.ssoSpConfigurationId.low) && $util.isInteger(message.ssoSpConfigurationId.high))) - return "ssoSpConfigurationId: integer|Long expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.ssoServiceProviderId != null && message.hasOwnProperty('ssoServiceProviderId')) + if ( + !$util.isInteger(message.ssoServiceProviderId) && + !( + message.ssoServiceProviderId && + $util.isInteger(message.ssoServiceProviderId.low) && + $util.isInteger(message.ssoServiceProviderId.high) + ) + ) + return 'ssoServiceProviderId: integer|Long expected'; + if (message.ssoSpConfigurationId != null && message.hasOwnProperty('ssoSpConfigurationId')) + if ( + !$util.isInteger(message.ssoSpConfigurationId) && + !( + message.ssoSpConfigurationId && + $util.isInteger(message.ssoSpConfigurationId.low) && + $util.isInteger(message.ssoSpConfigurationId.high) + ) + ) + return 'ssoSpConfigurationId: integer|Long expected'; return null; }; @@ -125905,27 +130364,32 @@ export const SsoCloud = $root.SsoCloud = (() => { * @returns {SsoCloud.SsoCloudServiceProviderUpdateRequest} SsoCloudServiceProviderUpdateRequest */ SsoCloudServiceProviderUpdateRequest.fromObject = function fromObject(object) { - if (object instanceof $root.SsoCloud.SsoCloudServiceProviderUpdateRequest) - return object; + if (object instanceof $root.SsoCloud.SsoCloudServiceProviderUpdateRequest) return object; let message = new $root.SsoCloud.SsoCloudServiceProviderUpdateRequest(); if (object.ssoServiceProviderId != null) if ($util.Long) (message.ssoServiceProviderId = $util.Long.fromValue(object.ssoServiceProviderId)).unsigned = true; - else if (typeof object.ssoServiceProviderId === "string") + else if (typeof object.ssoServiceProviderId === 'string') message.ssoServiceProviderId = parseInt(object.ssoServiceProviderId, 10); - else if (typeof object.ssoServiceProviderId === "number") + else if (typeof object.ssoServiceProviderId === 'number') message.ssoServiceProviderId = object.ssoServiceProviderId; - else if (typeof object.ssoServiceProviderId === "object") - message.ssoServiceProviderId = new $util.LongBits(object.ssoServiceProviderId.low >>> 0, object.ssoServiceProviderId.high >>> 0).toNumber(true); + else if (typeof object.ssoServiceProviderId === 'object') + message.ssoServiceProviderId = new $util.LongBits( + object.ssoServiceProviderId.low >>> 0, + object.ssoServiceProviderId.high >>> 0 + ).toNumber(true); if (object.ssoSpConfigurationId != null) if ($util.Long) (message.ssoSpConfigurationId = $util.Long.fromValue(object.ssoSpConfigurationId)).unsigned = true; - else if (typeof object.ssoSpConfigurationId === "string") + else if (typeof object.ssoSpConfigurationId === 'string') message.ssoSpConfigurationId = parseInt(object.ssoSpConfigurationId, 10); - else if (typeof object.ssoSpConfigurationId === "number") + else if (typeof object.ssoSpConfigurationId === 'number') message.ssoSpConfigurationId = object.ssoSpConfigurationId; - else if (typeof object.ssoSpConfigurationId === "object") - message.ssoSpConfigurationId = new $util.LongBits(object.ssoSpConfigurationId.low >>> 0, object.ssoSpConfigurationId.high >>> 0).toNumber(true); + else if (typeof object.ssoSpConfigurationId === 'object') + message.ssoSpConfigurationId = new $util.LongBits( + object.ssoSpConfigurationId.low >>> 0, + object.ssoSpConfigurationId.high >>> 0 + ).toNumber(true); return message; }; @@ -125939,31 +130403,48 @@ export const SsoCloud = $root.SsoCloud = (() => { * @returns {Object.} Plain object */ SsoCloudServiceProviderUpdateRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, true); - object.ssoServiceProviderId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.ssoServiceProviderId = options.longs === String ? "0" : 0; + object.ssoServiceProviderId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.ssoServiceProviderId = options.longs === String ? '0' : 0; if ($util.Long) { let long = new $util.Long(0, 0, true); - object.ssoSpConfigurationId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.ssoSpConfigurationId = options.longs === String ? "0" : 0; - } - if (message.ssoServiceProviderId != null && message.hasOwnProperty("ssoServiceProviderId")) - if (typeof message.ssoServiceProviderId === "number") - object.ssoServiceProviderId = options.longs === String ? String(message.ssoServiceProviderId) : message.ssoServiceProviderId; + object.ssoSpConfigurationId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.ssoSpConfigurationId = options.longs === String ? '0' : 0; + } + if (message.ssoServiceProviderId != null && message.hasOwnProperty('ssoServiceProviderId')) + if (typeof message.ssoServiceProviderId === 'number') + object.ssoServiceProviderId = + options.longs === String ? String(message.ssoServiceProviderId) : message.ssoServiceProviderId; else - object.ssoServiceProviderId = options.longs === String ? $util.Long.prototype.toString.call(message.ssoServiceProviderId) : options.longs === Number ? new $util.LongBits(message.ssoServiceProviderId.low >>> 0, message.ssoServiceProviderId.high >>> 0).toNumber(true) : message.ssoServiceProviderId; - if (message.ssoSpConfigurationId != null && message.hasOwnProperty("ssoSpConfigurationId")) - if (typeof message.ssoSpConfigurationId === "number") - object.ssoSpConfigurationId = options.longs === String ? String(message.ssoSpConfigurationId) : message.ssoSpConfigurationId; + object.ssoServiceProviderId = + options.longs === String + ? $util.Long.prototype.toString.call(message.ssoServiceProviderId) + : options.longs === Number + ? new $util.LongBits( + message.ssoServiceProviderId.low >>> 0, + message.ssoServiceProviderId.high >>> 0 + ).toNumber(true) + : message.ssoServiceProviderId; + if (message.ssoSpConfigurationId != null && message.hasOwnProperty('ssoSpConfigurationId')) + if (typeof message.ssoSpConfigurationId === 'number') + object.ssoSpConfigurationId = + options.longs === String ? String(message.ssoSpConfigurationId) : message.ssoSpConfigurationId; else - object.ssoSpConfigurationId = options.longs === String ? $util.Long.prototype.toString.call(message.ssoSpConfigurationId) : options.longs === Number ? new $util.LongBits(message.ssoSpConfigurationId.low >>> 0, message.ssoSpConfigurationId.high >>> 0).toNumber(true) : message.ssoSpConfigurationId; + object.ssoSpConfigurationId = + options.longs === String + ? $util.Long.prototype.toString.call(message.ssoSpConfigurationId) + : options.longs === Number + ? new $util.LongBits( + message.ssoSpConfigurationId.low >>> 0, + message.ssoSpConfigurationId.high >>> 0 + ).toNumber(true) + : message.ssoSpConfigurationId; return object; }; @@ -125988,16 +130469,15 @@ export const SsoCloud = $root.SsoCloud = (() => { */ SsoCloudServiceProviderUpdateRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/SsoCloud.SsoCloudServiceProviderUpdateRequest"; + return typeUrlPrefix + '/SsoCloud.SsoCloudServiceProviderUpdateRequest'; }; return SsoCloudServiceProviderUpdateRequest; })(); - SsoCloud.SsoCloudIdpMetadataRequest = (function() { - + SsoCloud.SsoCloudIdpMetadataRequest = (function () { /** * Properties of a SsoCloudIdpMetadataRequest. * @memberof SsoCloud @@ -126019,8 +130499,7 @@ export const SsoCloud = $root.SsoCloud = (() => { function SsoCloudIdpMetadataRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -126029,7 +130508,7 @@ export const SsoCloud = $root.SsoCloud = (() => { * @memberof SsoCloud.SsoCloudIdpMetadataRequest * @instance */ - SsoCloudIdpMetadataRequest.prototype.ssoSpConfigurationId = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + SsoCloudIdpMetadataRequest.prototype.ssoSpConfigurationId = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; /** * SsoCloudIdpMetadataRequest filename. @@ -126037,7 +130516,7 @@ export const SsoCloud = $root.SsoCloud = (() => { * @memberof SsoCloud.SsoCloudIdpMetadataRequest * @instance */ - SsoCloudIdpMetadataRequest.prototype.filename = ""; + SsoCloudIdpMetadataRequest.prototype.filename = ''; /** * SsoCloudIdpMetadataRequest content. @@ -126069,14 +130548,13 @@ export const SsoCloud = $root.SsoCloud = (() => { * @returns {$protobuf.Writer} Writer */ SsoCloudIdpMetadataRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.ssoSpConfigurationId != null && Object.hasOwnProperty.call(message, "ssoSpConfigurationId")) - writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.ssoSpConfigurationId); - if (message.filename != null && Object.hasOwnProperty.call(message, "filename")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.filename); - if (message.content != null && Object.hasOwnProperty.call(message, "content")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.content); + if (!writer) writer = $Writer.create(); + if (message.ssoSpConfigurationId != null && Object.hasOwnProperty.call(message, 'ssoSpConfigurationId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).uint64(message.ssoSpConfigurationId); + if (message.filename != null && Object.hasOwnProperty.call(message, 'filename')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.filename); + if (message.content != null && Object.hasOwnProperty.call(message, 'content')) + writer.uint32(/* id 3, wireType 2 =*/ 26).bytes(message.content); return writer; }; @@ -126105,27 +130583,27 @@ export const SsoCloud = $root.SsoCloud = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SsoCloudIdpMetadataRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.SsoCloud.SsoCloudIdpMetadataRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.SsoCloud.SsoCloudIdpMetadataRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.ssoSpConfigurationId = reader.uint64(); break; } - case 2: { + case 2: { message.filename = reader.string(); break; } - case 3: { + case 3: { message.content = reader.bytes(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -126142,8 +130620,7 @@ export const SsoCloud = $root.SsoCloud = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SsoCloudIdpMetadataRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -126156,17 +130633,27 @@ export const SsoCloud = $root.SsoCloud = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ SsoCloudIdpMetadataRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.ssoSpConfigurationId != null && message.hasOwnProperty("ssoSpConfigurationId")) - if (!$util.isInteger(message.ssoSpConfigurationId) && !(message.ssoSpConfigurationId && $util.isInteger(message.ssoSpConfigurationId.low) && $util.isInteger(message.ssoSpConfigurationId.high))) - return "ssoSpConfigurationId: integer|Long expected"; - if (message.filename != null && message.hasOwnProperty("filename")) - if (!$util.isString(message.filename)) - return "filename: string expected"; - if (message.content != null && message.hasOwnProperty("content")) - if (!(message.content && typeof message.content.length === "number" || $util.isString(message.content))) - return "content: buffer expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.ssoSpConfigurationId != null && message.hasOwnProperty('ssoSpConfigurationId')) + if ( + !$util.isInteger(message.ssoSpConfigurationId) && + !( + message.ssoSpConfigurationId && + $util.isInteger(message.ssoSpConfigurationId.low) && + $util.isInteger(message.ssoSpConfigurationId.high) + ) + ) + return 'ssoSpConfigurationId: integer|Long expected'; + if (message.filename != null && message.hasOwnProperty('filename')) + if (!$util.isString(message.filename)) return 'filename: string expected'; + if (message.content != null && message.hasOwnProperty('content')) + if ( + !( + (message.content && typeof message.content.length === 'number') || + $util.isString(message.content) + ) + ) + return 'content: buffer expected'; return null; }; @@ -126179,25 +130666,29 @@ export const SsoCloud = $root.SsoCloud = (() => { * @returns {SsoCloud.SsoCloudIdpMetadataRequest} SsoCloudIdpMetadataRequest */ SsoCloudIdpMetadataRequest.fromObject = function fromObject(object) { - if (object instanceof $root.SsoCloud.SsoCloudIdpMetadataRequest) - return object; + if (object instanceof $root.SsoCloud.SsoCloudIdpMetadataRequest) return object; let message = new $root.SsoCloud.SsoCloudIdpMetadataRequest(); if (object.ssoSpConfigurationId != null) if ($util.Long) (message.ssoSpConfigurationId = $util.Long.fromValue(object.ssoSpConfigurationId)).unsigned = true; - else if (typeof object.ssoSpConfigurationId === "string") + else if (typeof object.ssoSpConfigurationId === 'string') message.ssoSpConfigurationId = parseInt(object.ssoSpConfigurationId, 10); - else if (typeof object.ssoSpConfigurationId === "number") + else if (typeof object.ssoSpConfigurationId === 'number') message.ssoSpConfigurationId = object.ssoSpConfigurationId; - else if (typeof object.ssoSpConfigurationId === "object") - message.ssoSpConfigurationId = new $util.LongBits(object.ssoSpConfigurationId.low >>> 0, object.ssoSpConfigurationId.high >>> 0).toNumber(true); - if (object.filename != null) - message.filename = String(object.filename); + else if (typeof object.ssoSpConfigurationId === 'object') + message.ssoSpConfigurationId = new $util.LongBits( + object.ssoSpConfigurationId.low >>> 0, + object.ssoSpConfigurationId.high >>> 0 + ).toNumber(true); + if (object.filename != null) message.filename = String(object.filename); if (object.content != null) - if (typeof object.content === "string") - $util.base64.decode(object.content, message.content = $util.newBuffer($util.base64.length(object.content)), 0); - else if (object.content.length >= 0) - message.content = object.content; + if (typeof object.content === 'string') + $util.base64.decode( + object.content, + (message.content = $util.newBuffer($util.base64.length(object.content))), + 0 + ); + else if (object.content.length >= 0) message.content = object.content; return message; }; @@ -126211,33 +130702,43 @@ export const SsoCloud = $root.SsoCloud = (() => { * @returns {Object.} Plain object */ SsoCloudIdpMetadataRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, true); - object.ssoSpConfigurationId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.ssoSpConfigurationId = options.longs === String ? "0" : 0; - object.filename = ""; - if (options.bytes === String) - object.content = ""; + object.ssoSpConfigurationId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.ssoSpConfigurationId = options.longs === String ? '0' : 0; + object.filename = ''; + if (options.bytes === String) object.content = ''; else { object.content = []; - if (options.bytes !== Array) - object.content = $util.newBuffer(object.content); + if (options.bytes !== Array) object.content = $util.newBuffer(object.content); } } - if (message.ssoSpConfigurationId != null && message.hasOwnProperty("ssoSpConfigurationId")) - if (typeof message.ssoSpConfigurationId === "number") - object.ssoSpConfigurationId = options.longs === String ? String(message.ssoSpConfigurationId) : message.ssoSpConfigurationId; + if (message.ssoSpConfigurationId != null && message.hasOwnProperty('ssoSpConfigurationId')) + if (typeof message.ssoSpConfigurationId === 'number') + object.ssoSpConfigurationId = + options.longs === String ? String(message.ssoSpConfigurationId) : message.ssoSpConfigurationId; else - object.ssoSpConfigurationId = options.longs === String ? $util.Long.prototype.toString.call(message.ssoSpConfigurationId) : options.longs === Number ? new $util.LongBits(message.ssoSpConfigurationId.low >>> 0, message.ssoSpConfigurationId.high >>> 0).toNumber(true) : message.ssoSpConfigurationId; - if (message.filename != null && message.hasOwnProperty("filename")) - object.filename = message.filename; - if (message.content != null && message.hasOwnProperty("content")) - object.content = options.bytes === String ? $util.base64.encode(message.content, 0, message.content.length) : options.bytes === Array ? Array.prototype.slice.call(message.content) : message.content; + object.ssoSpConfigurationId = + options.longs === String + ? $util.Long.prototype.toString.call(message.ssoSpConfigurationId) + : options.longs === Number + ? new $util.LongBits( + message.ssoSpConfigurationId.low >>> 0, + message.ssoSpConfigurationId.high >>> 0 + ).toNumber(true) + : message.ssoSpConfigurationId; + if (message.filename != null && message.hasOwnProperty('filename')) object.filename = message.filename; + if (message.content != null && message.hasOwnProperty('content')) + object.content = + options.bytes === String + ? $util.base64.encode(message.content, 0, message.content.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.content) + : message.content; return object; }; @@ -126262,16 +130763,15 @@ export const SsoCloud = $root.SsoCloud = (() => { */ SsoCloudIdpMetadataRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/SsoCloud.SsoCloudIdpMetadataRequest"; + return typeUrlPrefix + '/SsoCloud.SsoCloudIdpMetadataRequest'; }; return SsoCloudIdpMetadataRequest; })(); - SsoCloud.SsoCloudIdpMetadataSupportRequest = (function() { - + SsoCloud.SsoCloudIdpMetadataSupportRequest = (function () { /** * Properties of a SsoCloudIdpMetadataSupportRequest. * @memberof SsoCloud @@ -126295,8 +130795,7 @@ export const SsoCloud = $root.SsoCloud = (() => { function SsoCloudIdpMetadataSupportRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -126305,7 +130804,9 @@ export const SsoCloud = $root.SsoCloud = (() => { * @memberof SsoCloud.SsoCloudIdpMetadataSupportRequest * @instance */ - SsoCloudIdpMetadataSupportRequest.prototype.ssoServiceProviderId = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + SsoCloudIdpMetadataSupportRequest.prototype.ssoServiceProviderId = $util.Long + ? $util.Long.fromBits(0, 0, true) + : 0; /** * SsoCloudIdpMetadataSupportRequest ssoSpConfigurationId. @@ -126313,7 +130814,9 @@ export const SsoCloud = $root.SsoCloud = (() => { * @memberof SsoCloud.SsoCloudIdpMetadataSupportRequest * @instance */ - SsoCloudIdpMetadataSupportRequest.prototype.ssoSpConfigurationId = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + SsoCloudIdpMetadataSupportRequest.prototype.ssoSpConfigurationId = $util.Long + ? $util.Long.fromBits(0, 0, true) + : 0; /** * SsoCloudIdpMetadataSupportRequest ssoEnterpriseId. @@ -126321,7 +130824,7 @@ export const SsoCloud = $root.SsoCloud = (() => { * @memberof SsoCloud.SsoCloudIdpMetadataSupportRequest * @instance */ - SsoCloudIdpMetadataSupportRequest.prototype.ssoEnterpriseId = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + SsoCloudIdpMetadataSupportRequest.prototype.ssoEnterpriseId = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; /** * SsoCloudIdpMetadataSupportRequest filename. @@ -126329,7 +130832,7 @@ export const SsoCloud = $root.SsoCloud = (() => { * @memberof SsoCloud.SsoCloudIdpMetadataSupportRequest * @instance */ - SsoCloudIdpMetadataSupportRequest.prototype.filename = ""; + SsoCloudIdpMetadataSupportRequest.prototype.filename = ''; /** * SsoCloudIdpMetadataSupportRequest content. @@ -126361,18 +130864,17 @@ export const SsoCloud = $root.SsoCloud = (() => { * @returns {$protobuf.Writer} Writer */ SsoCloudIdpMetadataSupportRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.ssoServiceProviderId != null && Object.hasOwnProperty.call(message, "ssoServiceProviderId")) - writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.ssoServiceProviderId); - if (message.ssoSpConfigurationId != null && Object.hasOwnProperty.call(message, "ssoSpConfigurationId")) - writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.ssoSpConfigurationId); - if (message.ssoEnterpriseId != null && Object.hasOwnProperty.call(message, "ssoEnterpriseId")) - writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.ssoEnterpriseId); - if (message.filename != null && Object.hasOwnProperty.call(message, "filename")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.filename); - if (message.content != null && Object.hasOwnProperty.call(message, "content")) - writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.content); + if (!writer) writer = $Writer.create(); + if (message.ssoServiceProviderId != null && Object.hasOwnProperty.call(message, 'ssoServiceProviderId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).uint64(message.ssoServiceProviderId); + if (message.ssoSpConfigurationId != null && Object.hasOwnProperty.call(message, 'ssoSpConfigurationId')) + writer.uint32(/* id 2, wireType 0 =*/ 16).uint64(message.ssoSpConfigurationId); + if (message.ssoEnterpriseId != null && Object.hasOwnProperty.call(message, 'ssoEnterpriseId')) + writer.uint32(/* id 3, wireType 0 =*/ 24).uint64(message.ssoEnterpriseId); + if (message.filename != null && Object.hasOwnProperty.call(message, 'filename')) + writer.uint32(/* id 4, wireType 2 =*/ 34).string(message.filename); + if (message.content != null && Object.hasOwnProperty.call(message, 'content')) + writer.uint32(/* id 5, wireType 2 =*/ 42).bytes(message.content); return writer; }; @@ -126401,35 +130903,35 @@ export const SsoCloud = $root.SsoCloud = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SsoCloudIdpMetadataSupportRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.SsoCloud.SsoCloudIdpMetadataSupportRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.SsoCloud.SsoCloudIdpMetadataSupportRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.ssoServiceProviderId = reader.uint64(); break; } - case 2: { + case 2: { message.ssoSpConfigurationId = reader.uint64(); break; } - case 3: { + case 3: { message.ssoEnterpriseId = reader.uint64(); break; } - case 4: { + case 4: { message.filename = reader.string(); break; } - case 5: { + case 5: { message.content = reader.bytes(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -126446,8 +130948,7 @@ export const SsoCloud = $root.SsoCloud = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SsoCloudIdpMetadataSupportRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -126460,23 +130961,47 @@ export const SsoCloud = $root.SsoCloud = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ SsoCloudIdpMetadataSupportRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.ssoServiceProviderId != null && message.hasOwnProperty("ssoServiceProviderId")) - if (!$util.isInteger(message.ssoServiceProviderId) && !(message.ssoServiceProviderId && $util.isInteger(message.ssoServiceProviderId.low) && $util.isInteger(message.ssoServiceProviderId.high))) - return "ssoServiceProviderId: integer|Long expected"; - if (message.ssoSpConfigurationId != null && message.hasOwnProperty("ssoSpConfigurationId")) - if (!$util.isInteger(message.ssoSpConfigurationId) && !(message.ssoSpConfigurationId && $util.isInteger(message.ssoSpConfigurationId.low) && $util.isInteger(message.ssoSpConfigurationId.high))) - return "ssoSpConfigurationId: integer|Long expected"; - if (message.ssoEnterpriseId != null && message.hasOwnProperty("ssoEnterpriseId")) - if (!$util.isInteger(message.ssoEnterpriseId) && !(message.ssoEnterpriseId && $util.isInteger(message.ssoEnterpriseId.low) && $util.isInteger(message.ssoEnterpriseId.high))) - return "ssoEnterpriseId: integer|Long expected"; - if (message.filename != null && message.hasOwnProperty("filename")) - if (!$util.isString(message.filename)) - return "filename: string expected"; - if (message.content != null && message.hasOwnProperty("content")) - if (!(message.content && typeof message.content.length === "number" || $util.isString(message.content))) - return "content: buffer expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.ssoServiceProviderId != null && message.hasOwnProperty('ssoServiceProviderId')) + if ( + !$util.isInteger(message.ssoServiceProviderId) && + !( + message.ssoServiceProviderId && + $util.isInteger(message.ssoServiceProviderId.low) && + $util.isInteger(message.ssoServiceProviderId.high) + ) + ) + return 'ssoServiceProviderId: integer|Long expected'; + if (message.ssoSpConfigurationId != null && message.hasOwnProperty('ssoSpConfigurationId')) + if ( + !$util.isInteger(message.ssoSpConfigurationId) && + !( + message.ssoSpConfigurationId && + $util.isInteger(message.ssoSpConfigurationId.low) && + $util.isInteger(message.ssoSpConfigurationId.high) + ) + ) + return 'ssoSpConfigurationId: integer|Long expected'; + if (message.ssoEnterpriseId != null && message.hasOwnProperty('ssoEnterpriseId')) + if ( + !$util.isInteger(message.ssoEnterpriseId) && + !( + message.ssoEnterpriseId && + $util.isInteger(message.ssoEnterpriseId.low) && + $util.isInteger(message.ssoEnterpriseId.high) + ) + ) + return 'ssoEnterpriseId: integer|Long expected'; + if (message.filename != null && message.hasOwnProperty('filename')) + if (!$util.isString(message.filename)) return 'filename: string expected'; + if (message.content != null && message.hasOwnProperty('content')) + if ( + !( + (message.content && typeof message.content.length === 'number') || + $util.isString(message.content) + ) + ) + return 'content: buffer expected'; return null; }; @@ -126489,43 +131014,52 @@ export const SsoCloud = $root.SsoCloud = (() => { * @returns {SsoCloud.SsoCloudIdpMetadataSupportRequest} SsoCloudIdpMetadataSupportRequest */ SsoCloudIdpMetadataSupportRequest.fromObject = function fromObject(object) { - if (object instanceof $root.SsoCloud.SsoCloudIdpMetadataSupportRequest) - return object; + if (object instanceof $root.SsoCloud.SsoCloudIdpMetadataSupportRequest) return object; let message = new $root.SsoCloud.SsoCloudIdpMetadataSupportRequest(); if (object.ssoServiceProviderId != null) if ($util.Long) (message.ssoServiceProviderId = $util.Long.fromValue(object.ssoServiceProviderId)).unsigned = true; - else if (typeof object.ssoServiceProviderId === "string") + else if (typeof object.ssoServiceProviderId === 'string') message.ssoServiceProviderId = parseInt(object.ssoServiceProviderId, 10); - else if (typeof object.ssoServiceProviderId === "number") + else if (typeof object.ssoServiceProviderId === 'number') message.ssoServiceProviderId = object.ssoServiceProviderId; - else if (typeof object.ssoServiceProviderId === "object") - message.ssoServiceProviderId = new $util.LongBits(object.ssoServiceProviderId.low >>> 0, object.ssoServiceProviderId.high >>> 0).toNumber(true); + else if (typeof object.ssoServiceProviderId === 'object') + message.ssoServiceProviderId = new $util.LongBits( + object.ssoServiceProviderId.low >>> 0, + object.ssoServiceProviderId.high >>> 0 + ).toNumber(true); if (object.ssoSpConfigurationId != null) if ($util.Long) (message.ssoSpConfigurationId = $util.Long.fromValue(object.ssoSpConfigurationId)).unsigned = true; - else if (typeof object.ssoSpConfigurationId === "string") + else if (typeof object.ssoSpConfigurationId === 'string') message.ssoSpConfigurationId = parseInt(object.ssoSpConfigurationId, 10); - else if (typeof object.ssoSpConfigurationId === "number") + else if (typeof object.ssoSpConfigurationId === 'number') message.ssoSpConfigurationId = object.ssoSpConfigurationId; - else if (typeof object.ssoSpConfigurationId === "object") - message.ssoSpConfigurationId = new $util.LongBits(object.ssoSpConfigurationId.low >>> 0, object.ssoSpConfigurationId.high >>> 0).toNumber(true); + else if (typeof object.ssoSpConfigurationId === 'object') + message.ssoSpConfigurationId = new $util.LongBits( + object.ssoSpConfigurationId.low >>> 0, + object.ssoSpConfigurationId.high >>> 0 + ).toNumber(true); if (object.ssoEnterpriseId != null) if ($util.Long) (message.ssoEnterpriseId = $util.Long.fromValue(object.ssoEnterpriseId)).unsigned = true; - else if (typeof object.ssoEnterpriseId === "string") + else if (typeof object.ssoEnterpriseId === 'string') message.ssoEnterpriseId = parseInt(object.ssoEnterpriseId, 10); - else if (typeof object.ssoEnterpriseId === "number") - message.ssoEnterpriseId = object.ssoEnterpriseId; - else if (typeof object.ssoEnterpriseId === "object") - message.ssoEnterpriseId = new $util.LongBits(object.ssoEnterpriseId.low >>> 0, object.ssoEnterpriseId.high >>> 0).toNumber(true); - if (object.filename != null) - message.filename = String(object.filename); + else if (typeof object.ssoEnterpriseId === 'number') message.ssoEnterpriseId = object.ssoEnterpriseId; + else if (typeof object.ssoEnterpriseId === 'object') + message.ssoEnterpriseId = new $util.LongBits( + object.ssoEnterpriseId.low >>> 0, + object.ssoEnterpriseId.high >>> 0 + ).toNumber(true); + if (object.filename != null) message.filename = String(object.filename); if (object.content != null) - if (typeof object.content === "string") - $util.base64.decode(object.content, message.content = $util.newBuffer($util.base64.length(object.content)), 0); - else if (object.content.length >= 0) - message.content = object.content; + if (typeof object.content === 'string') + $util.base64.decode( + object.content, + (message.content = $util.newBuffer($util.base64.length(object.content))), + 0 + ); + else if (object.content.length >= 0) message.content = object.content; return message; }; @@ -126539,53 +131073,81 @@ export const SsoCloud = $root.SsoCloud = (() => { * @returns {Object.} Plain object */ SsoCloudIdpMetadataSupportRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, true); - object.ssoServiceProviderId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.ssoServiceProviderId = options.longs === String ? "0" : 0; + object.ssoServiceProviderId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.ssoServiceProviderId = options.longs === String ? '0' : 0; if ($util.Long) { let long = new $util.Long(0, 0, true); - object.ssoSpConfigurationId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.ssoSpConfigurationId = options.longs === String ? "0" : 0; + object.ssoSpConfigurationId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.ssoSpConfigurationId = options.longs === String ? '0' : 0; if ($util.Long) { let long = new $util.Long(0, 0, true); - object.ssoEnterpriseId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.ssoEnterpriseId = options.longs === String ? "0" : 0; - object.filename = ""; - if (options.bytes === String) - object.content = ""; + object.ssoEnterpriseId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.ssoEnterpriseId = options.longs === String ? '0' : 0; + object.filename = ''; + if (options.bytes === String) object.content = ''; else { object.content = []; - if (options.bytes !== Array) - object.content = $util.newBuffer(object.content); + if (options.bytes !== Array) object.content = $util.newBuffer(object.content); } } - if (message.ssoServiceProviderId != null && message.hasOwnProperty("ssoServiceProviderId")) - if (typeof message.ssoServiceProviderId === "number") - object.ssoServiceProviderId = options.longs === String ? String(message.ssoServiceProviderId) : message.ssoServiceProviderId; + if (message.ssoServiceProviderId != null && message.hasOwnProperty('ssoServiceProviderId')) + if (typeof message.ssoServiceProviderId === 'number') + object.ssoServiceProviderId = + options.longs === String ? String(message.ssoServiceProviderId) : message.ssoServiceProviderId; else - object.ssoServiceProviderId = options.longs === String ? $util.Long.prototype.toString.call(message.ssoServiceProviderId) : options.longs === Number ? new $util.LongBits(message.ssoServiceProviderId.low >>> 0, message.ssoServiceProviderId.high >>> 0).toNumber(true) : message.ssoServiceProviderId; - if (message.ssoSpConfigurationId != null && message.hasOwnProperty("ssoSpConfigurationId")) - if (typeof message.ssoSpConfigurationId === "number") - object.ssoSpConfigurationId = options.longs === String ? String(message.ssoSpConfigurationId) : message.ssoSpConfigurationId; + object.ssoServiceProviderId = + options.longs === String + ? $util.Long.prototype.toString.call(message.ssoServiceProviderId) + : options.longs === Number + ? new $util.LongBits( + message.ssoServiceProviderId.low >>> 0, + message.ssoServiceProviderId.high >>> 0 + ).toNumber(true) + : message.ssoServiceProviderId; + if (message.ssoSpConfigurationId != null && message.hasOwnProperty('ssoSpConfigurationId')) + if (typeof message.ssoSpConfigurationId === 'number') + object.ssoSpConfigurationId = + options.longs === String ? String(message.ssoSpConfigurationId) : message.ssoSpConfigurationId; else - object.ssoSpConfigurationId = options.longs === String ? $util.Long.prototype.toString.call(message.ssoSpConfigurationId) : options.longs === Number ? new $util.LongBits(message.ssoSpConfigurationId.low >>> 0, message.ssoSpConfigurationId.high >>> 0).toNumber(true) : message.ssoSpConfigurationId; - if (message.ssoEnterpriseId != null && message.hasOwnProperty("ssoEnterpriseId")) - if (typeof message.ssoEnterpriseId === "number") - object.ssoEnterpriseId = options.longs === String ? String(message.ssoEnterpriseId) : message.ssoEnterpriseId; + object.ssoSpConfigurationId = + options.longs === String + ? $util.Long.prototype.toString.call(message.ssoSpConfigurationId) + : options.longs === Number + ? new $util.LongBits( + message.ssoSpConfigurationId.low >>> 0, + message.ssoSpConfigurationId.high >>> 0 + ).toNumber(true) + : message.ssoSpConfigurationId; + if (message.ssoEnterpriseId != null && message.hasOwnProperty('ssoEnterpriseId')) + if (typeof message.ssoEnterpriseId === 'number') + object.ssoEnterpriseId = + options.longs === String ? String(message.ssoEnterpriseId) : message.ssoEnterpriseId; else - object.ssoEnterpriseId = options.longs === String ? $util.Long.prototype.toString.call(message.ssoEnterpriseId) : options.longs === Number ? new $util.LongBits(message.ssoEnterpriseId.low >>> 0, message.ssoEnterpriseId.high >>> 0).toNumber(true) : message.ssoEnterpriseId; - if (message.filename != null && message.hasOwnProperty("filename")) - object.filename = message.filename; - if (message.content != null && message.hasOwnProperty("content")) - object.content = options.bytes === String ? $util.base64.encode(message.content, 0, message.content.length) : options.bytes === Array ? Array.prototype.slice.call(message.content) : message.content; + object.ssoEnterpriseId = + options.longs === String + ? $util.Long.prototype.toString.call(message.ssoEnterpriseId) + : options.longs === Number + ? new $util.LongBits( + message.ssoEnterpriseId.low >>> 0, + message.ssoEnterpriseId.high >>> 0 + ).toNumber(true) + : message.ssoEnterpriseId; + if (message.filename != null && message.hasOwnProperty('filename')) object.filename = message.filename; + if (message.content != null && message.hasOwnProperty('content')) + object.content = + options.bytes === String + ? $util.base64.encode(message.content, 0, message.content.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.content) + : message.content; return object; }; @@ -126610,16 +131172,15 @@ export const SsoCloud = $root.SsoCloud = (() => { */ SsoCloudIdpMetadataSupportRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/SsoCloud.SsoCloudIdpMetadataSupportRequest"; + return typeUrlPrefix + '/SsoCloud.SsoCloudIdpMetadataSupportRequest'; }; return SsoCloudIdpMetadataSupportRequest; })(); - SsoCloud.SsoCloudConfigurationValidationRequest = (function() { - + SsoCloud.SsoCloudConfigurationValidationRequest = (function () { /** * Properties of a SsoCloudConfigurationValidationRequest. * @memberof SsoCloud @@ -126640,8 +131201,7 @@ export const SsoCloud = $root.SsoCloud = (() => { this.ssoSpConfigurationId = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -126674,10 +131234,9 @@ export const SsoCloud = $root.SsoCloud = (() => { * @returns {$protobuf.Writer} Writer */ SsoCloudConfigurationValidationRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.ssoSpConfigurationId != null && message.ssoSpConfigurationId.length) { - writer.uint32(/* id 1, wireType 2 =*/10).fork(); + writer.uint32(/* id 1, wireType 2 =*/ 10).fork(); for (let i = 0; i < message.ssoSpConfigurationId.length; ++i) writer.uint64(message.ssoSpConfigurationId[i]); writer.ldelim(); @@ -126710,26 +131269,24 @@ export const SsoCloud = $root.SsoCloud = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SsoCloudConfigurationValidationRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.SsoCloud.SsoCloudConfigurationValidationRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.SsoCloud.SsoCloudConfigurationValidationRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { if (!(message.ssoSpConfigurationId && message.ssoSpConfigurationId.length)) message.ssoSpConfigurationId = []; if ((tag & 7) === 2) { let end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.ssoSpConfigurationId.push(reader.uint64()); - } else - message.ssoSpConfigurationId.push(reader.uint64()); + while (reader.pos < end2) message.ssoSpConfigurationId.push(reader.uint64()); + } else message.ssoSpConfigurationId.push(reader.uint64()); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -126746,8 +131303,7 @@ export const SsoCloud = $root.SsoCloud = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SsoCloudConfigurationValidationRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -126760,14 +131316,19 @@ export const SsoCloud = $root.SsoCloud = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ SsoCloudConfigurationValidationRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.ssoSpConfigurationId != null && message.hasOwnProperty("ssoSpConfigurationId")) { - if (!Array.isArray(message.ssoSpConfigurationId)) - return "ssoSpConfigurationId: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.ssoSpConfigurationId != null && message.hasOwnProperty('ssoSpConfigurationId')) { + if (!Array.isArray(message.ssoSpConfigurationId)) return 'ssoSpConfigurationId: array expected'; for (let i = 0; i < message.ssoSpConfigurationId.length; ++i) - if (!$util.isInteger(message.ssoSpConfigurationId[i]) && !(message.ssoSpConfigurationId[i] && $util.isInteger(message.ssoSpConfigurationId[i].low) && $util.isInteger(message.ssoSpConfigurationId[i].high))) - return "ssoSpConfigurationId: integer|Long[] expected"; + if ( + !$util.isInteger(message.ssoSpConfigurationId[i]) && + !( + message.ssoSpConfigurationId[i] && + $util.isInteger(message.ssoSpConfigurationId[i].low) && + $util.isInteger(message.ssoSpConfigurationId[i].high) + ) + ) + return 'ssoSpConfigurationId: integer|Long[] expected'; } return null; }; @@ -126781,22 +131342,28 @@ export const SsoCloud = $root.SsoCloud = (() => { * @returns {SsoCloud.SsoCloudConfigurationValidationRequest} SsoCloudConfigurationValidationRequest */ SsoCloudConfigurationValidationRequest.fromObject = function fromObject(object) { - if (object instanceof $root.SsoCloud.SsoCloudConfigurationValidationRequest) - return object; + if (object instanceof $root.SsoCloud.SsoCloudConfigurationValidationRequest) return object; let message = new $root.SsoCloud.SsoCloudConfigurationValidationRequest(); if (object.ssoSpConfigurationId) { if (!Array.isArray(object.ssoSpConfigurationId)) - throw TypeError(".SsoCloud.SsoCloudConfigurationValidationRequest.ssoSpConfigurationId: array expected"); + throw TypeError( + '.SsoCloud.SsoCloudConfigurationValidationRequest.ssoSpConfigurationId: array expected' + ); message.ssoSpConfigurationId = []; for (let i = 0; i < object.ssoSpConfigurationId.length; ++i) if ($util.Long) - (message.ssoSpConfigurationId[i] = $util.Long.fromValue(object.ssoSpConfigurationId[i])).unsigned = true; - else if (typeof object.ssoSpConfigurationId[i] === "string") + (message.ssoSpConfigurationId[i] = $util.Long.fromValue( + object.ssoSpConfigurationId[i] + )).unsigned = true; + else if (typeof object.ssoSpConfigurationId[i] === 'string') message.ssoSpConfigurationId[i] = parseInt(object.ssoSpConfigurationId[i], 10); - else if (typeof object.ssoSpConfigurationId[i] === "number") + else if (typeof object.ssoSpConfigurationId[i] === 'number') message.ssoSpConfigurationId[i] = object.ssoSpConfigurationId[i]; - else if (typeof object.ssoSpConfigurationId[i] === "object") - message.ssoSpConfigurationId[i] = new $util.LongBits(object.ssoSpConfigurationId[i].low >>> 0, object.ssoSpConfigurationId[i].high >>> 0).toNumber(true); + else if (typeof object.ssoSpConfigurationId[i] === 'object') + message.ssoSpConfigurationId[i] = new $util.LongBits( + object.ssoSpConfigurationId[i].low >>> 0, + object.ssoSpConfigurationId[i].high >>> 0 + ).toNumber(true); } return message; }; @@ -126811,18 +131378,27 @@ export const SsoCloud = $root.SsoCloud = (() => { * @returns {Object.} Plain object */ SsoCloudConfigurationValidationRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.ssoSpConfigurationId = []; + if (options.arrays || options.defaults) object.ssoSpConfigurationId = []; if (message.ssoSpConfigurationId && message.ssoSpConfigurationId.length) { object.ssoSpConfigurationId = []; for (let j = 0; j < message.ssoSpConfigurationId.length; ++j) - if (typeof message.ssoSpConfigurationId[j] === "number") - object.ssoSpConfigurationId[j] = options.longs === String ? String(message.ssoSpConfigurationId[j]) : message.ssoSpConfigurationId[j]; + if (typeof message.ssoSpConfigurationId[j] === 'number') + object.ssoSpConfigurationId[j] = + options.longs === String + ? String(message.ssoSpConfigurationId[j]) + : message.ssoSpConfigurationId[j]; else - object.ssoSpConfigurationId[j] = options.longs === String ? $util.Long.prototype.toString.call(message.ssoSpConfigurationId[j]) : options.longs === Number ? new $util.LongBits(message.ssoSpConfigurationId[j].low >>> 0, message.ssoSpConfigurationId[j].high >>> 0).toNumber(true) : message.ssoSpConfigurationId[j]; + object.ssoSpConfigurationId[j] = + options.longs === String + ? $util.Long.prototype.toString.call(message.ssoSpConfigurationId[j]) + : options.longs === Number + ? new $util.LongBits( + message.ssoSpConfigurationId[j].low >>> 0, + message.ssoSpConfigurationId[j].high >>> 0 + ).toNumber(true) + : message.ssoSpConfigurationId[j]; } return object; }; @@ -126848,16 +131424,15 @@ export const SsoCloud = $root.SsoCloud = (() => { */ SsoCloudConfigurationValidationRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/SsoCloud.SsoCloudConfigurationValidationRequest"; + return typeUrlPrefix + '/SsoCloud.SsoCloudConfigurationValidationRequest'; }; return SsoCloudConfigurationValidationRequest; })(); - SsoCloud.ValidationContent = (function() { - + SsoCloud.ValidationContent = (function () { /** * Properties of a ValidationContent. * @memberof SsoCloud @@ -126879,8 +131454,7 @@ export const SsoCloud = $root.SsoCloud = (() => { this.errorMessage = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -126889,7 +131463,7 @@ export const SsoCloud = $root.SsoCloud = (() => { * @memberof SsoCloud.ValidationContent * @instance */ - ValidationContent.prototype.ssoSpConfigurationId = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + ValidationContent.prototype.ssoSpConfigurationId = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; /** * ValidationContent isSuccessful. @@ -126929,15 +131503,14 @@ export const SsoCloud = $root.SsoCloud = (() => { * @returns {$protobuf.Writer} Writer */ ValidationContent.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.ssoSpConfigurationId != null && Object.hasOwnProperty.call(message, "ssoSpConfigurationId")) - writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.ssoSpConfigurationId); - if (message.isSuccessful != null && Object.hasOwnProperty.call(message, "isSuccessful")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.isSuccessful); + if (!writer) writer = $Writer.create(); + if (message.ssoSpConfigurationId != null && Object.hasOwnProperty.call(message, 'ssoSpConfigurationId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).uint64(message.ssoSpConfigurationId); + if (message.isSuccessful != null && Object.hasOwnProperty.call(message, 'isSuccessful')) + writer.uint32(/* id 2, wireType 0 =*/ 16).bool(message.isSuccessful); if (message.errorMessage != null && message.errorMessage.length) for (let i = 0; i < message.errorMessage.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.errorMessage[i]); + writer.uint32(/* id 3, wireType 2 =*/ 26).string(message.errorMessage[i]); return writer; }; @@ -126966,29 +131539,28 @@ export const SsoCloud = $root.SsoCloud = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ValidationContent.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.SsoCloud.ValidationContent(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.SsoCloud.ValidationContent(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.ssoSpConfigurationId = reader.uint64(); break; } - case 2: { + case 2: { message.isSuccessful = reader.bool(); break; } - case 3: { - if (!(message.errorMessage && message.errorMessage.length)) - message.errorMessage = []; + case 3: { + if (!(message.errorMessage && message.errorMessage.length)) message.errorMessage = []; message.errorMessage.push(reader.string()); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -127005,8 +131577,7 @@ export const SsoCloud = $root.SsoCloud = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ValidationContent.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -127019,20 +131590,23 @@ export const SsoCloud = $root.SsoCloud = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ ValidationContent.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.ssoSpConfigurationId != null && message.hasOwnProperty("ssoSpConfigurationId")) - if (!$util.isInteger(message.ssoSpConfigurationId) && !(message.ssoSpConfigurationId && $util.isInteger(message.ssoSpConfigurationId.low) && $util.isInteger(message.ssoSpConfigurationId.high))) - return "ssoSpConfigurationId: integer|Long expected"; - if (message.isSuccessful != null && message.hasOwnProperty("isSuccessful")) - if (typeof message.isSuccessful !== "boolean") - return "isSuccessful: boolean expected"; - if (message.errorMessage != null && message.hasOwnProperty("errorMessage")) { - if (!Array.isArray(message.errorMessage)) - return "errorMessage: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.ssoSpConfigurationId != null && message.hasOwnProperty('ssoSpConfigurationId')) + if ( + !$util.isInteger(message.ssoSpConfigurationId) && + !( + message.ssoSpConfigurationId && + $util.isInteger(message.ssoSpConfigurationId.low) && + $util.isInteger(message.ssoSpConfigurationId.high) + ) + ) + return 'ssoSpConfigurationId: integer|Long expected'; + if (message.isSuccessful != null && message.hasOwnProperty('isSuccessful')) + if (typeof message.isSuccessful !== 'boolean') return 'isSuccessful: boolean expected'; + if (message.errorMessage != null && message.hasOwnProperty('errorMessage')) { + if (!Array.isArray(message.errorMessage)) return 'errorMessage: array expected'; for (let i = 0; i < message.errorMessage.length; ++i) - if (!$util.isString(message.errorMessage[i])) - return "errorMessage: string[] expected"; + if (!$util.isString(message.errorMessage[i])) return 'errorMessage: string[] expected'; } return null; }; @@ -127046,23 +131620,24 @@ export const SsoCloud = $root.SsoCloud = (() => { * @returns {SsoCloud.ValidationContent} ValidationContent */ ValidationContent.fromObject = function fromObject(object) { - if (object instanceof $root.SsoCloud.ValidationContent) - return object; + if (object instanceof $root.SsoCloud.ValidationContent) return object; let message = new $root.SsoCloud.ValidationContent(); if (object.ssoSpConfigurationId != null) if ($util.Long) (message.ssoSpConfigurationId = $util.Long.fromValue(object.ssoSpConfigurationId)).unsigned = true; - else if (typeof object.ssoSpConfigurationId === "string") + else if (typeof object.ssoSpConfigurationId === 'string') message.ssoSpConfigurationId = parseInt(object.ssoSpConfigurationId, 10); - else if (typeof object.ssoSpConfigurationId === "number") + else if (typeof object.ssoSpConfigurationId === 'number') message.ssoSpConfigurationId = object.ssoSpConfigurationId; - else if (typeof object.ssoSpConfigurationId === "object") - message.ssoSpConfigurationId = new $util.LongBits(object.ssoSpConfigurationId.low >>> 0, object.ssoSpConfigurationId.high >>> 0).toNumber(true); - if (object.isSuccessful != null) - message.isSuccessful = Boolean(object.isSuccessful); + else if (typeof object.ssoSpConfigurationId === 'object') + message.ssoSpConfigurationId = new $util.LongBits( + object.ssoSpConfigurationId.low >>> 0, + object.ssoSpConfigurationId.high >>> 0 + ).toNumber(true); + if (object.isSuccessful != null) message.isSuccessful = Boolean(object.isSuccessful); if (object.errorMessage) { if (!Array.isArray(object.errorMessage)) - throw TypeError(".SsoCloud.ValidationContent.errorMessage: array expected"); + throw TypeError('.SsoCloud.ValidationContent.errorMessage: array expected'); message.errorMessage = []; for (let i = 0; i < object.errorMessage.length; ++i) message.errorMessage[i] = String(object.errorMessage[i]); @@ -127080,30 +131655,36 @@ export const SsoCloud = $root.SsoCloud = (() => { * @returns {Object.} Plain object */ ValidationContent.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.errorMessage = []; + if (options.arrays || options.defaults) object.errorMessage = []; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, true); - object.ssoSpConfigurationId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.ssoSpConfigurationId = options.longs === String ? "0" : 0; + object.ssoSpConfigurationId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.ssoSpConfigurationId = options.longs === String ? '0' : 0; object.isSuccessful = false; } - if (message.ssoSpConfigurationId != null && message.hasOwnProperty("ssoSpConfigurationId")) - if (typeof message.ssoSpConfigurationId === "number") - object.ssoSpConfigurationId = options.longs === String ? String(message.ssoSpConfigurationId) : message.ssoSpConfigurationId; + if (message.ssoSpConfigurationId != null && message.hasOwnProperty('ssoSpConfigurationId')) + if (typeof message.ssoSpConfigurationId === 'number') + object.ssoSpConfigurationId = + options.longs === String ? String(message.ssoSpConfigurationId) : message.ssoSpConfigurationId; else - object.ssoSpConfigurationId = options.longs === String ? $util.Long.prototype.toString.call(message.ssoSpConfigurationId) : options.longs === Number ? new $util.LongBits(message.ssoSpConfigurationId.low >>> 0, message.ssoSpConfigurationId.high >>> 0).toNumber(true) : message.ssoSpConfigurationId; - if (message.isSuccessful != null && message.hasOwnProperty("isSuccessful")) + object.ssoSpConfigurationId = + options.longs === String + ? $util.Long.prototype.toString.call(message.ssoSpConfigurationId) + : options.longs === Number + ? new $util.LongBits( + message.ssoSpConfigurationId.low >>> 0, + message.ssoSpConfigurationId.high >>> 0 + ).toNumber(true) + : message.ssoSpConfigurationId; + if (message.isSuccessful != null && message.hasOwnProperty('isSuccessful')) object.isSuccessful = message.isSuccessful; if (message.errorMessage && message.errorMessage.length) { object.errorMessage = []; - for (let j = 0; j < message.errorMessage.length; ++j) - object.errorMessage[j] = message.errorMessage[j]; + for (let j = 0; j < message.errorMessage.length; ++j) object.errorMessage[j] = message.errorMessage[j]; } return object; }; @@ -127129,16 +131710,15 @@ export const SsoCloud = $root.SsoCloud = (() => { */ ValidationContent.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/SsoCloud.ValidationContent"; + return typeUrlPrefix + '/SsoCloud.ValidationContent'; }; return ValidationContent; })(); - SsoCloud.SsoCloudConfigurationValidationResponse = (function() { - + SsoCloud.SsoCloudConfigurationValidationResponse = (function () { /** * Properties of a SsoCloudConfigurationValidationResponse. * @memberof SsoCloud @@ -127158,8 +131738,7 @@ export const SsoCloud = $root.SsoCloud = (() => { this.validationContent = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -127192,11 +131771,13 @@ export const SsoCloud = $root.SsoCloud = (() => { * @returns {$protobuf.Writer} Writer */ SsoCloudConfigurationValidationResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.validationContent != null && message.validationContent.length) for (let i = 0; i < message.validationContent.length; ++i) - $root.SsoCloud.ValidationContent.encode(message.validationContent[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.SsoCloud.ValidationContent.encode( + message.validationContent[i], + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); return writer; }; @@ -127225,21 +131806,23 @@ export const SsoCloud = $root.SsoCloud = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SsoCloudConfigurationValidationResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.SsoCloud.SsoCloudConfigurationValidationResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.SsoCloud.SsoCloudConfigurationValidationResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { if (!(message.validationContent && message.validationContent.length)) message.validationContent = []; - message.validationContent.push($root.SsoCloud.ValidationContent.decode(reader, reader.uint32())); + message.validationContent.push( + $root.SsoCloud.ValidationContent.decode(reader, reader.uint32()) + ); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -127256,8 +131839,7 @@ export const SsoCloud = $root.SsoCloud = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SsoCloudConfigurationValidationResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -127270,15 +131852,12 @@ export const SsoCloud = $root.SsoCloud = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ SsoCloudConfigurationValidationResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.validationContent != null && message.hasOwnProperty("validationContent")) { - if (!Array.isArray(message.validationContent)) - return "validationContent: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.validationContent != null && message.hasOwnProperty('validationContent')) { + if (!Array.isArray(message.validationContent)) return 'validationContent: array expected'; for (let i = 0; i < message.validationContent.length; ++i) { let error = $root.SsoCloud.ValidationContent.verify(message.validationContent[i]); - if (error) - return "validationContent." + error; + if (error) return 'validationContent.' + error; } } return null; @@ -127293,17 +131872,22 @@ export const SsoCloud = $root.SsoCloud = (() => { * @returns {SsoCloud.SsoCloudConfigurationValidationResponse} SsoCloudConfigurationValidationResponse */ SsoCloudConfigurationValidationResponse.fromObject = function fromObject(object) { - if (object instanceof $root.SsoCloud.SsoCloudConfigurationValidationResponse) - return object; + if (object instanceof $root.SsoCloud.SsoCloudConfigurationValidationResponse) return object; let message = new $root.SsoCloud.SsoCloudConfigurationValidationResponse(); if (object.validationContent) { if (!Array.isArray(object.validationContent)) - throw TypeError(".SsoCloud.SsoCloudConfigurationValidationResponse.validationContent: array expected"); + throw TypeError( + '.SsoCloud.SsoCloudConfigurationValidationResponse.validationContent: array expected' + ); message.validationContent = []; for (let i = 0; i < object.validationContent.length; ++i) { - if (typeof object.validationContent[i] !== "object") - throw TypeError(".SsoCloud.SsoCloudConfigurationValidationResponse.validationContent: object expected"); - message.validationContent[i] = $root.SsoCloud.ValidationContent.fromObject(object.validationContent[i]); + if (typeof object.validationContent[i] !== 'object') + throw TypeError( + '.SsoCloud.SsoCloudConfigurationValidationResponse.validationContent: object expected' + ); + message.validationContent[i] = $root.SsoCloud.ValidationContent.fromObject( + object.validationContent[i] + ); } } return message; @@ -127319,15 +131903,16 @@ export const SsoCloud = $root.SsoCloud = (() => { * @returns {Object.} Plain object */ SsoCloudConfigurationValidationResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.validationContent = []; + if (options.arrays || options.defaults) object.validationContent = []; if (message.validationContent && message.validationContent.length) { object.validationContent = []; for (let j = 0; j < message.validationContent.length; ++j) - object.validationContent[j] = $root.SsoCloud.ValidationContent.toObject(message.validationContent[j], options); + object.validationContent[j] = $root.SsoCloud.ValidationContent.toObject( + message.validationContent[j], + options + ); } return object; }; @@ -127353,16 +131938,15 @@ export const SsoCloud = $root.SsoCloud = (() => { */ SsoCloudConfigurationValidationResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/SsoCloud.SsoCloudConfigurationValidationResponse"; + return typeUrlPrefix + '/SsoCloud.SsoCloudConfigurationValidationResponse'; }; return SsoCloudConfigurationValidationResponse; })(); - SsoCloud.SsoCloudServiceProviderConfigurationListRequest = (function() { - + SsoCloud.SsoCloudServiceProviderConfigurationListRequest = (function () { /** * Properties of a SsoCloudServiceProviderConfigurationListRequest. * @memberof SsoCloud @@ -127381,8 +131965,7 @@ export const SsoCloud = $root.SsoCloud = (() => { function SsoCloudServiceProviderConfigurationListRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -127391,7 +131974,9 @@ export const SsoCloud = $root.SsoCloud = (() => { * @memberof SsoCloud.SsoCloudServiceProviderConfigurationListRequest * @instance */ - SsoCloudServiceProviderConfigurationListRequest.prototype.ssoServiceProviderId = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + SsoCloudServiceProviderConfigurationListRequest.prototype.ssoServiceProviderId = $util.Long + ? $util.Long.fromBits(0, 0, true) + : 0; /** * Creates a new SsoCloudServiceProviderConfigurationListRequest instance using the specified properties. @@ -127415,10 +132000,9 @@ export const SsoCloud = $root.SsoCloud = (() => { * @returns {$protobuf.Writer} Writer */ SsoCloudServiceProviderConfigurationListRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.ssoServiceProviderId != null && Object.hasOwnProperty.call(message, "ssoServiceProviderId")) - writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.ssoServiceProviderId); + if (!writer) writer = $Writer.create(); + if (message.ssoServiceProviderId != null && Object.hasOwnProperty.call(message, 'ssoServiceProviderId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).uint64(message.ssoServiceProviderId); return writer; }; @@ -127447,19 +132031,19 @@ export const SsoCloud = $root.SsoCloud = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SsoCloudServiceProviderConfigurationListRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.SsoCloud.SsoCloudServiceProviderConfigurationListRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.SsoCloud.SsoCloudServiceProviderConfigurationListRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.ssoServiceProviderId = reader.uint64(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -127476,8 +132060,7 @@ export const SsoCloud = $root.SsoCloud = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SsoCloudServiceProviderConfigurationListRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -127490,11 +132073,17 @@ export const SsoCloud = $root.SsoCloud = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ SsoCloudServiceProviderConfigurationListRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.ssoServiceProviderId != null && message.hasOwnProperty("ssoServiceProviderId")) - if (!$util.isInteger(message.ssoServiceProviderId) && !(message.ssoServiceProviderId && $util.isInteger(message.ssoServiceProviderId.low) && $util.isInteger(message.ssoServiceProviderId.high))) - return "ssoServiceProviderId: integer|Long expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.ssoServiceProviderId != null && message.hasOwnProperty('ssoServiceProviderId')) + if ( + !$util.isInteger(message.ssoServiceProviderId) && + !( + message.ssoServiceProviderId && + $util.isInteger(message.ssoServiceProviderId.low) && + $util.isInteger(message.ssoServiceProviderId.high) + ) + ) + return 'ssoServiceProviderId: integer|Long expected'; return null; }; @@ -127507,18 +132096,20 @@ export const SsoCloud = $root.SsoCloud = (() => { * @returns {SsoCloud.SsoCloudServiceProviderConfigurationListRequest} SsoCloudServiceProviderConfigurationListRequest */ SsoCloudServiceProviderConfigurationListRequest.fromObject = function fromObject(object) { - if (object instanceof $root.SsoCloud.SsoCloudServiceProviderConfigurationListRequest) - return object; + if (object instanceof $root.SsoCloud.SsoCloudServiceProviderConfigurationListRequest) return object; let message = new $root.SsoCloud.SsoCloudServiceProviderConfigurationListRequest(); if (object.ssoServiceProviderId != null) if ($util.Long) (message.ssoServiceProviderId = $util.Long.fromValue(object.ssoServiceProviderId)).unsigned = true; - else if (typeof object.ssoServiceProviderId === "string") + else if (typeof object.ssoServiceProviderId === 'string') message.ssoServiceProviderId = parseInt(object.ssoServiceProviderId, 10); - else if (typeof object.ssoServiceProviderId === "number") + else if (typeof object.ssoServiceProviderId === 'number') message.ssoServiceProviderId = object.ssoServiceProviderId; - else if (typeof object.ssoServiceProviderId === "object") - message.ssoServiceProviderId = new $util.LongBits(object.ssoServiceProviderId.low >>> 0, object.ssoServiceProviderId.high >>> 0).toNumber(true); + else if (typeof object.ssoServiceProviderId === 'object') + message.ssoServiceProviderId = new $util.LongBits( + object.ssoServiceProviderId.low >>> 0, + object.ssoServiceProviderId.high >>> 0 + ).toNumber(true); return message; }; @@ -127532,20 +132123,28 @@ export const SsoCloud = $root.SsoCloud = (() => { * @returns {Object.} Plain object */ SsoCloudServiceProviderConfigurationListRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) if ($util.Long) { let long = new $util.Long(0, 0, true); - object.ssoServiceProviderId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.ssoServiceProviderId = options.longs === String ? "0" : 0; - if (message.ssoServiceProviderId != null && message.hasOwnProperty("ssoServiceProviderId")) - if (typeof message.ssoServiceProviderId === "number") - object.ssoServiceProviderId = options.longs === String ? String(message.ssoServiceProviderId) : message.ssoServiceProviderId; + object.ssoServiceProviderId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.ssoServiceProviderId = options.longs === String ? '0' : 0; + if (message.ssoServiceProviderId != null && message.hasOwnProperty('ssoServiceProviderId')) + if (typeof message.ssoServiceProviderId === 'number') + object.ssoServiceProviderId = + options.longs === String ? String(message.ssoServiceProviderId) : message.ssoServiceProviderId; else - object.ssoServiceProviderId = options.longs === String ? $util.Long.prototype.toString.call(message.ssoServiceProviderId) : options.longs === Number ? new $util.LongBits(message.ssoServiceProviderId.low >>> 0, message.ssoServiceProviderId.high >>> 0).toNumber(true) : message.ssoServiceProviderId; + object.ssoServiceProviderId = + options.longs === String + ? $util.Long.prototype.toString.call(message.ssoServiceProviderId) + : options.longs === Number + ? new $util.LongBits( + message.ssoServiceProviderId.low >>> 0, + message.ssoServiceProviderId.high >>> 0 + ).toNumber(true) + : message.ssoServiceProviderId; return object; }; @@ -127570,16 +132169,15 @@ export const SsoCloud = $root.SsoCloud = (() => { */ SsoCloudServiceProviderConfigurationListRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/SsoCloud.SsoCloudServiceProviderConfigurationListRequest"; + return typeUrlPrefix + '/SsoCloud.SsoCloudServiceProviderConfigurationListRequest'; }; return SsoCloudServiceProviderConfigurationListRequest; })(); - SsoCloud.ConfigurationListItem = (function() { - + SsoCloud.ConfigurationListItem = (function () { /** * Properties of a ConfigurationListItem. * @memberof SsoCloud @@ -127603,8 +132201,7 @@ export const SsoCloud = $root.SsoCloud = (() => { this.ssoServiceProviderId = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -127613,7 +132210,7 @@ export const SsoCloud = $root.SsoCloud = (() => { * @memberof SsoCloud.ConfigurationListItem * @instance */ - ConfigurationListItem.prototype.ssoSpConfigurationId = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + ConfigurationListItem.prototype.ssoSpConfigurationId = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; /** * ConfigurationListItem name. @@ -127621,7 +132218,7 @@ export const SsoCloud = $root.SsoCloud = (() => { * @memberof SsoCloud.ConfigurationListItem * @instance */ - ConfigurationListItem.prototype.name = ""; + ConfigurationListItem.prototype.name = ''; /** * ConfigurationListItem isSelected. @@ -127661,16 +132258,15 @@ export const SsoCloud = $root.SsoCloud = (() => { * @returns {$protobuf.Writer} Writer */ ConfigurationListItem.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.ssoSpConfigurationId != null && Object.hasOwnProperty.call(message, "ssoSpConfigurationId")) - writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.ssoSpConfigurationId); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.name); - if (message.isSelected != null && Object.hasOwnProperty.call(message, "isSelected")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.isSelected); + if (!writer) writer = $Writer.create(); + if (message.ssoSpConfigurationId != null && Object.hasOwnProperty.call(message, 'ssoSpConfigurationId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).uint64(message.ssoSpConfigurationId); + if (message.name != null && Object.hasOwnProperty.call(message, 'name')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.name); + if (message.isSelected != null && Object.hasOwnProperty.call(message, 'isSelected')) + writer.uint32(/* id 3, wireType 0 =*/ 24).bool(message.isSelected); if (message.ssoServiceProviderId != null && message.ssoServiceProviderId.length) { - writer.uint32(/* id 4, wireType 2 =*/34).fork(); + writer.uint32(/* id 4, wireType 2 =*/ 34).fork(); for (let i = 0; i < message.ssoServiceProviderId.length; ++i) writer.uint64(message.ssoServiceProviderId[i]); writer.ldelim(); @@ -127703,38 +132299,36 @@ export const SsoCloud = $root.SsoCloud = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ConfigurationListItem.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.SsoCloud.ConfigurationListItem(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.SsoCloud.ConfigurationListItem(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.ssoSpConfigurationId = reader.uint64(); break; } - case 2: { + case 2: { message.name = reader.string(); break; } - case 3: { + case 3: { message.isSelected = reader.bool(); break; } - case 4: { + case 4: { if (!(message.ssoServiceProviderId && message.ssoServiceProviderId.length)) message.ssoServiceProviderId = []; if ((tag & 7) === 2) { let end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.ssoServiceProviderId.push(reader.uint64()); - } else - message.ssoServiceProviderId.push(reader.uint64()); + while (reader.pos < end2) message.ssoServiceProviderId.push(reader.uint64()); + } else message.ssoServiceProviderId.push(reader.uint64()); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -127751,8 +132345,7 @@ export const SsoCloud = $root.SsoCloud = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ConfigurationListItem.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -127765,23 +132358,33 @@ export const SsoCloud = $root.SsoCloud = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ ConfigurationListItem.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.ssoSpConfigurationId != null && message.hasOwnProperty("ssoSpConfigurationId")) - if (!$util.isInteger(message.ssoSpConfigurationId) && !(message.ssoSpConfigurationId && $util.isInteger(message.ssoSpConfigurationId.low) && $util.isInteger(message.ssoSpConfigurationId.high))) - return "ssoSpConfigurationId: integer|Long expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.isSelected != null && message.hasOwnProperty("isSelected")) - if (typeof message.isSelected !== "boolean") - return "isSelected: boolean expected"; - if (message.ssoServiceProviderId != null && message.hasOwnProperty("ssoServiceProviderId")) { - if (!Array.isArray(message.ssoServiceProviderId)) - return "ssoServiceProviderId: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.ssoSpConfigurationId != null && message.hasOwnProperty('ssoSpConfigurationId')) + if ( + !$util.isInteger(message.ssoSpConfigurationId) && + !( + message.ssoSpConfigurationId && + $util.isInteger(message.ssoSpConfigurationId.low) && + $util.isInteger(message.ssoSpConfigurationId.high) + ) + ) + return 'ssoSpConfigurationId: integer|Long expected'; + if (message.name != null && message.hasOwnProperty('name')) + if (!$util.isString(message.name)) return 'name: string expected'; + if (message.isSelected != null && message.hasOwnProperty('isSelected')) + if (typeof message.isSelected !== 'boolean') return 'isSelected: boolean expected'; + if (message.ssoServiceProviderId != null && message.hasOwnProperty('ssoServiceProviderId')) { + if (!Array.isArray(message.ssoServiceProviderId)) return 'ssoServiceProviderId: array expected'; for (let i = 0; i < message.ssoServiceProviderId.length; ++i) - if (!$util.isInteger(message.ssoServiceProviderId[i]) && !(message.ssoServiceProviderId[i] && $util.isInteger(message.ssoServiceProviderId[i].low) && $util.isInteger(message.ssoServiceProviderId[i].high))) - return "ssoServiceProviderId: integer|Long[] expected"; + if ( + !$util.isInteger(message.ssoServiceProviderId[i]) && + !( + message.ssoServiceProviderId[i] && + $util.isInteger(message.ssoServiceProviderId[i].low) && + $util.isInteger(message.ssoServiceProviderId[i].high) + ) + ) + return 'ssoServiceProviderId: integer|Long[] expected'; } return null; }; @@ -127795,35 +132398,40 @@ export const SsoCloud = $root.SsoCloud = (() => { * @returns {SsoCloud.ConfigurationListItem} ConfigurationListItem */ ConfigurationListItem.fromObject = function fromObject(object) { - if (object instanceof $root.SsoCloud.ConfigurationListItem) - return object; + if (object instanceof $root.SsoCloud.ConfigurationListItem) return object; let message = new $root.SsoCloud.ConfigurationListItem(); if (object.ssoSpConfigurationId != null) if ($util.Long) (message.ssoSpConfigurationId = $util.Long.fromValue(object.ssoSpConfigurationId)).unsigned = true; - else if (typeof object.ssoSpConfigurationId === "string") + else if (typeof object.ssoSpConfigurationId === 'string') message.ssoSpConfigurationId = parseInt(object.ssoSpConfigurationId, 10); - else if (typeof object.ssoSpConfigurationId === "number") + else if (typeof object.ssoSpConfigurationId === 'number') message.ssoSpConfigurationId = object.ssoSpConfigurationId; - else if (typeof object.ssoSpConfigurationId === "object") - message.ssoSpConfigurationId = new $util.LongBits(object.ssoSpConfigurationId.low >>> 0, object.ssoSpConfigurationId.high >>> 0).toNumber(true); - if (object.name != null) - message.name = String(object.name); - if (object.isSelected != null) - message.isSelected = Boolean(object.isSelected); + else if (typeof object.ssoSpConfigurationId === 'object') + message.ssoSpConfigurationId = new $util.LongBits( + object.ssoSpConfigurationId.low >>> 0, + object.ssoSpConfigurationId.high >>> 0 + ).toNumber(true); + if (object.name != null) message.name = String(object.name); + if (object.isSelected != null) message.isSelected = Boolean(object.isSelected); if (object.ssoServiceProviderId) { if (!Array.isArray(object.ssoServiceProviderId)) - throw TypeError(".SsoCloud.ConfigurationListItem.ssoServiceProviderId: array expected"); + throw TypeError('.SsoCloud.ConfigurationListItem.ssoServiceProviderId: array expected'); message.ssoServiceProviderId = []; for (let i = 0; i < object.ssoServiceProviderId.length; ++i) if ($util.Long) - (message.ssoServiceProviderId[i] = $util.Long.fromValue(object.ssoServiceProviderId[i])).unsigned = true; - else if (typeof object.ssoServiceProviderId[i] === "string") + (message.ssoServiceProviderId[i] = $util.Long.fromValue( + object.ssoServiceProviderId[i] + )).unsigned = true; + else if (typeof object.ssoServiceProviderId[i] === 'string') message.ssoServiceProviderId[i] = parseInt(object.ssoServiceProviderId[i], 10); - else if (typeof object.ssoServiceProviderId[i] === "number") + else if (typeof object.ssoServiceProviderId[i] === 'number') message.ssoServiceProviderId[i] = object.ssoServiceProviderId[i]; - else if (typeof object.ssoServiceProviderId[i] === "object") - message.ssoServiceProviderId[i] = new $util.LongBits(object.ssoServiceProviderId[i].low >>> 0, object.ssoServiceProviderId[i].high >>> 0).toNumber(true); + else if (typeof object.ssoServiceProviderId[i] === 'object') + message.ssoServiceProviderId[i] = new $util.LongBits( + object.ssoServiceProviderId[i].low >>> 0, + object.ssoServiceProviderId[i].high >>> 0 + ).toNumber(true); } return message; }; @@ -127838,36 +132446,53 @@ export const SsoCloud = $root.SsoCloud = (() => { * @returns {Object.} Plain object */ ConfigurationListItem.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.ssoServiceProviderId = []; + if (options.arrays || options.defaults) object.ssoServiceProviderId = []; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, true); - object.ssoSpConfigurationId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.ssoSpConfigurationId = options.longs === String ? "0" : 0; - object.name = ""; + object.ssoSpConfigurationId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.ssoSpConfigurationId = options.longs === String ? '0' : 0; + object.name = ''; object.isSelected = false; } - if (message.ssoSpConfigurationId != null && message.hasOwnProperty("ssoSpConfigurationId")) - if (typeof message.ssoSpConfigurationId === "number") - object.ssoSpConfigurationId = options.longs === String ? String(message.ssoSpConfigurationId) : message.ssoSpConfigurationId; + if (message.ssoSpConfigurationId != null && message.hasOwnProperty('ssoSpConfigurationId')) + if (typeof message.ssoSpConfigurationId === 'number') + object.ssoSpConfigurationId = + options.longs === String ? String(message.ssoSpConfigurationId) : message.ssoSpConfigurationId; else - object.ssoSpConfigurationId = options.longs === String ? $util.Long.prototype.toString.call(message.ssoSpConfigurationId) : options.longs === Number ? new $util.LongBits(message.ssoSpConfigurationId.low >>> 0, message.ssoSpConfigurationId.high >>> 0).toNumber(true) : message.ssoSpConfigurationId; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.isSelected != null && message.hasOwnProperty("isSelected")) + object.ssoSpConfigurationId = + options.longs === String + ? $util.Long.prototype.toString.call(message.ssoSpConfigurationId) + : options.longs === Number + ? new $util.LongBits( + message.ssoSpConfigurationId.low >>> 0, + message.ssoSpConfigurationId.high >>> 0 + ).toNumber(true) + : message.ssoSpConfigurationId; + if (message.name != null && message.hasOwnProperty('name')) object.name = message.name; + if (message.isSelected != null && message.hasOwnProperty('isSelected')) object.isSelected = message.isSelected; if (message.ssoServiceProviderId && message.ssoServiceProviderId.length) { object.ssoServiceProviderId = []; for (let j = 0; j < message.ssoServiceProviderId.length; ++j) - if (typeof message.ssoServiceProviderId[j] === "number") - object.ssoServiceProviderId[j] = options.longs === String ? String(message.ssoServiceProviderId[j]) : message.ssoServiceProviderId[j]; + if (typeof message.ssoServiceProviderId[j] === 'number') + object.ssoServiceProviderId[j] = + options.longs === String + ? String(message.ssoServiceProviderId[j]) + : message.ssoServiceProviderId[j]; else - object.ssoServiceProviderId[j] = options.longs === String ? $util.Long.prototype.toString.call(message.ssoServiceProviderId[j]) : options.longs === Number ? new $util.LongBits(message.ssoServiceProviderId[j].low >>> 0, message.ssoServiceProviderId[j].high >>> 0).toNumber(true) : message.ssoServiceProviderId[j]; + object.ssoServiceProviderId[j] = + options.longs === String + ? $util.Long.prototype.toString.call(message.ssoServiceProviderId[j]) + : options.longs === Number + ? new $util.LongBits( + message.ssoServiceProviderId[j].low >>> 0, + message.ssoServiceProviderId[j].high >>> 0 + ).toNumber(true) + : message.ssoServiceProviderId[j]; } return object; }; @@ -127893,16 +132518,15 @@ export const SsoCloud = $root.SsoCloud = (() => { */ ConfigurationListItem.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/SsoCloud.ConfigurationListItem"; + return typeUrlPrefix + '/SsoCloud.ConfigurationListItem'; }; return ConfigurationListItem; })(); - SsoCloud.SsoCloudServiceProviderConfigurationListResponse = (function() { - + SsoCloud.SsoCloudServiceProviderConfigurationListResponse = (function () { /** * Properties of a SsoCloudServiceProviderConfigurationListResponse. * @memberof SsoCloud @@ -127922,8 +132546,7 @@ export const SsoCloud = $root.SsoCloud = (() => { this.configurationItem = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -127956,11 +132579,13 @@ export const SsoCloud = $root.SsoCloud = (() => { * @returns {$protobuf.Writer} Writer */ SsoCloudServiceProviderConfigurationListResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.configurationItem != null && message.configurationItem.length) for (let i = 0; i < message.configurationItem.length; ++i) - $root.SsoCloud.ConfigurationListItem.encode(message.configurationItem[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.SsoCloud.ConfigurationListItem.encode( + message.configurationItem[i], + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); return writer; }; @@ -127989,21 +132614,23 @@ export const SsoCloud = $root.SsoCloud = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SsoCloudServiceProviderConfigurationListResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.SsoCloud.SsoCloudServiceProviderConfigurationListResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.SsoCloud.SsoCloudServiceProviderConfigurationListResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { if (!(message.configurationItem && message.configurationItem.length)) message.configurationItem = []; - message.configurationItem.push($root.SsoCloud.ConfigurationListItem.decode(reader, reader.uint32())); + message.configurationItem.push( + $root.SsoCloud.ConfigurationListItem.decode(reader, reader.uint32()) + ); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -128020,8 +132647,7 @@ export const SsoCloud = $root.SsoCloud = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SsoCloudServiceProviderConfigurationListResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -128034,15 +132660,12 @@ export const SsoCloud = $root.SsoCloud = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ SsoCloudServiceProviderConfigurationListResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.configurationItem != null && message.hasOwnProperty("configurationItem")) { - if (!Array.isArray(message.configurationItem)) - return "configurationItem: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.configurationItem != null && message.hasOwnProperty('configurationItem')) { + if (!Array.isArray(message.configurationItem)) return 'configurationItem: array expected'; for (let i = 0; i < message.configurationItem.length; ++i) { let error = $root.SsoCloud.ConfigurationListItem.verify(message.configurationItem[i]); - if (error) - return "configurationItem." + error; + if (error) return 'configurationItem.' + error; } } return null; @@ -128057,17 +132680,22 @@ export const SsoCloud = $root.SsoCloud = (() => { * @returns {SsoCloud.SsoCloudServiceProviderConfigurationListResponse} SsoCloudServiceProviderConfigurationListResponse */ SsoCloudServiceProviderConfigurationListResponse.fromObject = function fromObject(object) { - if (object instanceof $root.SsoCloud.SsoCloudServiceProviderConfigurationListResponse) - return object; + if (object instanceof $root.SsoCloud.SsoCloudServiceProviderConfigurationListResponse) return object; let message = new $root.SsoCloud.SsoCloudServiceProviderConfigurationListResponse(); if (object.configurationItem) { if (!Array.isArray(object.configurationItem)) - throw TypeError(".SsoCloud.SsoCloudServiceProviderConfigurationListResponse.configurationItem: array expected"); + throw TypeError( + '.SsoCloud.SsoCloudServiceProviderConfigurationListResponse.configurationItem: array expected' + ); message.configurationItem = []; for (let i = 0; i < object.configurationItem.length; ++i) { - if (typeof object.configurationItem[i] !== "object") - throw TypeError(".SsoCloud.SsoCloudServiceProviderConfigurationListResponse.configurationItem: object expected"); - message.configurationItem[i] = $root.SsoCloud.ConfigurationListItem.fromObject(object.configurationItem[i]); + if (typeof object.configurationItem[i] !== 'object') + throw TypeError( + '.SsoCloud.SsoCloudServiceProviderConfigurationListResponse.configurationItem: object expected' + ); + message.configurationItem[i] = $root.SsoCloud.ConfigurationListItem.fromObject( + object.configurationItem[i] + ); } } return message; @@ -128083,15 +132711,16 @@ export const SsoCloud = $root.SsoCloud = (() => { * @returns {Object.} Plain object */ SsoCloudServiceProviderConfigurationListResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.configurationItem = []; + if (options.arrays || options.defaults) object.configurationItem = []; if (message.configurationItem && message.configurationItem.length) { object.configurationItem = []; for (let j = 0; j < message.configurationItem.length; ++j) - object.configurationItem[j] = $root.SsoCloud.ConfigurationListItem.toObject(message.configurationItem[j], options); + object.configurationItem[j] = $root.SsoCloud.ConfigurationListItem.toObject( + message.configurationItem[j], + options + ); } return object; }; @@ -128117,16 +132746,15 @@ export const SsoCloud = $root.SsoCloud = (() => { */ SsoCloudServiceProviderConfigurationListResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/SsoCloud.SsoCloudServiceProviderConfigurationListResponse"; + return typeUrlPrefix + '/SsoCloud.SsoCloudServiceProviderConfigurationListResponse'; }; return SsoCloudServiceProviderConfigurationListResponse; })(); - SsoCloud.SsoCloudRequest = (function() { - + SsoCloud.SsoCloudRequest = (function () { /** * Properties of a SsoCloudRequest. * @memberof SsoCloud @@ -128154,8 +132782,7 @@ export const SsoCloud = $root.SsoCloud = (() => { function SsoCloudRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -128172,7 +132799,7 @@ export const SsoCloud = $root.SsoCloud = (() => { * @memberof SsoCloud.SsoCloudRequest * @instance */ - SsoCloudRequest.prototype.clientVersion = ""; + SsoCloudRequest.prototype.clientVersion = ''; /** * SsoCloudRequest embedded. @@ -128196,7 +132823,7 @@ export const SsoCloud = $root.SsoCloud = (() => { * @memberof SsoCloud.SsoCloudRequest * @instance */ - SsoCloudRequest.prototype.dest = ""; + SsoCloudRequest.prototype.dest = ''; /** * SsoCloudRequest idpSessionId. @@ -128204,7 +132831,7 @@ export const SsoCloud = $root.SsoCloud = (() => { * @memberof SsoCloud.SsoCloudRequest * @instance */ - SsoCloudRequest.prototype.idpSessionId = ""; + SsoCloudRequest.prototype.idpSessionId = ''; /** * SsoCloudRequest forceLogin. @@ -128220,7 +132847,7 @@ export const SsoCloud = $root.SsoCloud = (() => { * @memberof SsoCloud.SsoCloudRequest * @instance */ - SsoCloudRequest.prototype.username = ""; + SsoCloudRequest.prototype.username = ''; /** * SsoCloudRequest detached. @@ -128252,26 +132879,25 @@ export const SsoCloud = $root.SsoCloud = (() => { * @returns {$protobuf.Writer} Writer */ SsoCloudRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.messageSessionUid != null && Object.hasOwnProperty.call(message, "messageSessionUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.messageSessionUid); - if (message.clientVersion != null && Object.hasOwnProperty.call(message, "clientVersion")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.clientVersion); - if (message.embedded != null && Object.hasOwnProperty.call(message, "embedded")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.embedded); - if (message.json != null && Object.hasOwnProperty.call(message, "json")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.json); - if (message.dest != null && Object.hasOwnProperty.call(message, "dest")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.dest); - if (message.idpSessionId != null && Object.hasOwnProperty.call(message, "idpSessionId")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.idpSessionId); - if (message.forceLogin != null && Object.hasOwnProperty.call(message, "forceLogin")) - writer.uint32(/* id 7, wireType 0 =*/56).bool(message.forceLogin); - if (message.username != null && Object.hasOwnProperty.call(message, "username")) - writer.uint32(/* id 8, wireType 2 =*/66).string(message.username); - if (message.detached != null && Object.hasOwnProperty.call(message, "detached")) - writer.uint32(/* id 9, wireType 0 =*/72).bool(message.detached); + if (!writer) writer = $Writer.create(); + if (message.messageSessionUid != null && Object.hasOwnProperty.call(message, 'messageSessionUid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.messageSessionUid); + if (message.clientVersion != null && Object.hasOwnProperty.call(message, 'clientVersion')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.clientVersion); + if (message.embedded != null && Object.hasOwnProperty.call(message, 'embedded')) + writer.uint32(/* id 3, wireType 0 =*/ 24).bool(message.embedded); + if (message.json != null && Object.hasOwnProperty.call(message, 'json')) + writer.uint32(/* id 4, wireType 0 =*/ 32).bool(message.json); + if (message.dest != null && Object.hasOwnProperty.call(message, 'dest')) + writer.uint32(/* id 5, wireType 2 =*/ 42).string(message.dest); + if (message.idpSessionId != null && Object.hasOwnProperty.call(message, 'idpSessionId')) + writer.uint32(/* id 6, wireType 2 =*/ 50).string(message.idpSessionId); + if (message.forceLogin != null && Object.hasOwnProperty.call(message, 'forceLogin')) + writer.uint32(/* id 7, wireType 0 =*/ 56).bool(message.forceLogin); + if (message.username != null && Object.hasOwnProperty.call(message, 'username')) + writer.uint32(/* id 8, wireType 2 =*/ 66).string(message.username); + if (message.detached != null && Object.hasOwnProperty.call(message, 'detached')) + writer.uint32(/* id 9, wireType 0 =*/ 72).bool(message.detached); return writer; }; @@ -128300,51 +132926,51 @@ export const SsoCloud = $root.SsoCloud = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SsoCloudRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.SsoCloud.SsoCloudRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.SsoCloud.SsoCloudRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.messageSessionUid = reader.bytes(); break; } - case 2: { + case 2: { message.clientVersion = reader.string(); break; } - case 3: { + case 3: { message.embedded = reader.bool(); break; } - case 4: { + case 4: { message.json = reader.bool(); break; } - case 5: { + case 5: { message.dest = reader.string(); break; } - case 6: { + case 6: { message.idpSessionId = reader.string(); break; } - case 7: { + case 7: { message.forceLogin = reader.bool(); break; } - case 8: { + case 8: { message.username = reader.string(); break; } - case 9: { + case 9: { message.detached = reader.bool(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -128361,8 +132987,7 @@ export const SsoCloud = $root.SsoCloud = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SsoCloudRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -128375,35 +133000,31 @@ export const SsoCloud = $root.SsoCloud = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ SsoCloudRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.messageSessionUid != null && message.hasOwnProperty("messageSessionUid")) - if (!(message.messageSessionUid && typeof message.messageSessionUid.length === "number" || $util.isString(message.messageSessionUid))) - return "messageSessionUid: buffer expected"; - if (message.clientVersion != null && message.hasOwnProperty("clientVersion")) - if (!$util.isString(message.clientVersion)) - return "clientVersion: string expected"; - if (message.embedded != null && message.hasOwnProperty("embedded")) - if (typeof message.embedded !== "boolean") - return "embedded: boolean expected"; - if (message.json != null && message.hasOwnProperty("json")) - if (typeof message.json !== "boolean") - return "json: boolean expected"; - if (message.dest != null && message.hasOwnProperty("dest")) - if (!$util.isString(message.dest)) - return "dest: string expected"; - if (message.idpSessionId != null && message.hasOwnProperty("idpSessionId")) - if (!$util.isString(message.idpSessionId)) - return "idpSessionId: string expected"; - if (message.forceLogin != null && message.hasOwnProperty("forceLogin")) - if (typeof message.forceLogin !== "boolean") - return "forceLogin: boolean expected"; - if (message.username != null && message.hasOwnProperty("username")) - if (!$util.isString(message.username)) - return "username: string expected"; - if (message.detached != null && message.hasOwnProperty("detached")) - if (typeof message.detached !== "boolean") - return "detached: boolean expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.messageSessionUid != null && message.hasOwnProperty('messageSessionUid')) + if ( + !( + (message.messageSessionUid && typeof message.messageSessionUid.length === 'number') || + $util.isString(message.messageSessionUid) + ) + ) + return 'messageSessionUid: buffer expected'; + if (message.clientVersion != null && message.hasOwnProperty('clientVersion')) + if (!$util.isString(message.clientVersion)) return 'clientVersion: string expected'; + if (message.embedded != null && message.hasOwnProperty('embedded')) + if (typeof message.embedded !== 'boolean') return 'embedded: boolean expected'; + if (message.json != null && message.hasOwnProperty('json')) + if (typeof message.json !== 'boolean') return 'json: boolean expected'; + if (message.dest != null && message.hasOwnProperty('dest')) + if (!$util.isString(message.dest)) return 'dest: string expected'; + if (message.idpSessionId != null && message.hasOwnProperty('idpSessionId')) + if (!$util.isString(message.idpSessionId)) return 'idpSessionId: string expected'; + if (message.forceLogin != null && message.hasOwnProperty('forceLogin')) + if (typeof message.forceLogin !== 'boolean') return 'forceLogin: boolean expected'; + if (message.username != null && message.hasOwnProperty('username')) + if (!$util.isString(message.username)) return 'username: string expected'; + if (message.detached != null && message.hasOwnProperty('detached')) + if (typeof message.detached !== 'boolean') return 'detached: boolean expected'; return null; }; @@ -128416,30 +133037,24 @@ export const SsoCloud = $root.SsoCloud = (() => { * @returns {SsoCloud.SsoCloudRequest} SsoCloudRequest */ SsoCloudRequest.fromObject = function fromObject(object) { - if (object instanceof $root.SsoCloud.SsoCloudRequest) - return object; + if (object instanceof $root.SsoCloud.SsoCloudRequest) return object; let message = new $root.SsoCloud.SsoCloudRequest(); if (object.messageSessionUid != null) - if (typeof object.messageSessionUid === "string") - $util.base64.decode(object.messageSessionUid, message.messageSessionUid = $util.newBuffer($util.base64.length(object.messageSessionUid)), 0); - else if (object.messageSessionUid.length >= 0) - message.messageSessionUid = object.messageSessionUid; - if (object.clientVersion != null) - message.clientVersion = String(object.clientVersion); - if (object.embedded != null) - message.embedded = Boolean(object.embedded); - if (object.json != null) - message.json = Boolean(object.json); - if (object.dest != null) - message.dest = String(object.dest); - if (object.idpSessionId != null) - message.idpSessionId = String(object.idpSessionId); - if (object.forceLogin != null) - message.forceLogin = Boolean(object.forceLogin); - if (object.username != null) - message.username = String(object.username); - if (object.detached != null) - message.detached = Boolean(object.detached); + if (typeof object.messageSessionUid === 'string') + $util.base64.decode( + object.messageSessionUid, + (message.messageSessionUid = $util.newBuffer($util.base64.length(object.messageSessionUid))), + 0 + ); + else if (object.messageSessionUid.length >= 0) message.messageSessionUid = object.messageSessionUid; + if (object.clientVersion != null) message.clientVersion = String(object.clientVersion); + if (object.embedded != null) message.embedded = Boolean(object.embedded); + if (object.json != null) message.json = Boolean(object.json); + if (object.dest != null) message.dest = String(object.dest); + if (object.idpSessionId != null) message.idpSessionId = String(object.idpSessionId); + if (object.forceLogin != null) message.forceLogin = Boolean(object.forceLogin); + if (object.username != null) message.username = String(object.username); + if (object.detached != null) message.detached = Boolean(object.detached); return message; }; @@ -128453,44 +133068,41 @@ export const SsoCloud = $root.SsoCloud = (() => { * @returns {Object.} Plain object */ SsoCloudRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.messageSessionUid = ""; + if (options.bytes === String) object.messageSessionUid = ''; else { object.messageSessionUid = []; - if (options.bytes !== Array) - object.messageSessionUid = $util.newBuffer(object.messageSessionUid); + if (options.bytes !== Array) object.messageSessionUid = $util.newBuffer(object.messageSessionUid); } - object.clientVersion = ""; + object.clientVersion = ''; object.embedded = false; object.json = false; - object.dest = ""; - object.idpSessionId = ""; + object.dest = ''; + object.idpSessionId = ''; object.forceLogin = false; - object.username = ""; + object.username = ''; object.detached = false; } - if (message.messageSessionUid != null && message.hasOwnProperty("messageSessionUid")) - object.messageSessionUid = options.bytes === String ? $util.base64.encode(message.messageSessionUid, 0, message.messageSessionUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.messageSessionUid) : message.messageSessionUid; - if (message.clientVersion != null && message.hasOwnProperty("clientVersion")) + if (message.messageSessionUid != null && message.hasOwnProperty('messageSessionUid')) + object.messageSessionUid = + options.bytes === String + ? $util.base64.encode(message.messageSessionUid, 0, message.messageSessionUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.messageSessionUid) + : message.messageSessionUid; + if (message.clientVersion != null && message.hasOwnProperty('clientVersion')) object.clientVersion = message.clientVersion; - if (message.embedded != null && message.hasOwnProperty("embedded")) - object.embedded = message.embedded; - if (message.json != null && message.hasOwnProperty("json")) - object.json = message.json; - if (message.dest != null && message.hasOwnProperty("dest")) - object.dest = message.dest; - if (message.idpSessionId != null && message.hasOwnProperty("idpSessionId")) + if (message.embedded != null && message.hasOwnProperty('embedded')) object.embedded = message.embedded; + if (message.json != null && message.hasOwnProperty('json')) object.json = message.json; + if (message.dest != null && message.hasOwnProperty('dest')) object.dest = message.dest; + if (message.idpSessionId != null && message.hasOwnProperty('idpSessionId')) object.idpSessionId = message.idpSessionId; - if (message.forceLogin != null && message.hasOwnProperty("forceLogin")) + if (message.forceLogin != null && message.hasOwnProperty('forceLogin')) object.forceLogin = message.forceLogin; - if (message.username != null && message.hasOwnProperty("username")) - object.username = message.username; - if (message.detached != null && message.hasOwnProperty("detached")) - object.detached = message.detached; + if (message.username != null && message.hasOwnProperty('username')) object.username = message.username; + if (message.detached != null && message.hasOwnProperty('detached')) object.detached = message.detached; return object; }; @@ -128515,16 +133127,15 @@ export const SsoCloud = $root.SsoCloud = (() => { */ SsoCloudRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/SsoCloud.SsoCloudRequest"; + return typeUrlPrefix + '/SsoCloud.SsoCloudRequest'; }; return SsoCloudRequest; })(); - SsoCloud.SsoCloudResponse = (function() { - + SsoCloud.SsoCloudResponse = (function () { /** * Properties of a SsoCloudResponse. * @memberof SsoCloud @@ -128551,8 +133162,7 @@ export const SsoCloud = $root.SsoCloud = (() => { function SsoCloudResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -128561,7 +133171,7 @@ export const SsoCloud = $root.SsoCloud = (() => { * @memberof SsoCloud.SsoCloudResponse * @instance */ - SsoCloudResponse.prototype.command = ""; + SsoCloudResponse.prototype.command = ''; /** * SsoCloudResponse messageSessionUid. @@ -128577,7 +133187,7 @@ export const SsoCloud = $root.SsoCloud = (() => { * @memberof SsoCloud.SsoCloudResponse * @instance */ - SsoCloudResponse.prototype.email = ""; + SsoCloudResponse.prototype.email = ''; /** * SsoCloudResponse encryptedLoginToken. @@ -128593,7 +133203,7 @@ export const SsoCloud = $root.SsoCloud = (() => { * @memberof SsoCloud.SsoCloudResponse * @instance */ - SsoCloudResponse.prototype.providerName = ""; + SsoCloudResponse.prototype.providerName = ''; /** * SsoCloudResponse idpSessionId. @@ -128601,7 +133211,7 @@ export const SsoCloud = $root.SsoCloud = (() => { * @memberof SsoCloud.SsoCloudResponse * @instance */ - SsoCloudResponse.prototype.idpSessionId = ""; + SsoCloudResponse.prototype.idpSessionId = ''; /** * SsoCloudResponse encryptedSessionToken. @@ -128617,7 +133227,7 @@ export const SsoCloud = $root.SsoCloud = (() => { * @memberof SsoCloud.SsoCloudResponse * @instance */ - SsoCloudResponse.prototype.errorToken = ""; + SsoCloudResponse.prototype.errorToken = ''; /** * Creates a new SsoCloudResponse instance using the specified properties. @@ -128641,24 +133251,23 @@ export const SsoCloud = $root.SsoCloud = (() => { * @returns {$protobuf.Writer} Writer */ SsoCloudResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.command != null && Object.hasOwnProperty.call(message, "command")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.command); - if (message.messageSessionUid != null && Object.hasOwnProperty.call(message, "messageSessionUid")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.messageSessionUid); - if (message.email != null && Object.hasOwnProperty.call(message, "email")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.email); - if (message.encryptedLoginToken != null && Object.hasOwnProperty.call(message, "encryptedLoginToken")) - writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.encryptedLoginToken); - if (message.providerName != null && Object.hasOwnProperty.call(message, "providerName")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.providerName); - if (message.idpSessionId != null && Object.hasOwnProperty.call(message, "idpSessionId")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.idpSessionId); - if (message.encryptedSessionToken != null && Object.hasOwnProperty.call(message, "encryptedSessionToken")) - writer.uint32(/* id 7, wireType 2 =*/58).bytes(message.encryptedSessionToken); - if (message.errorToken != null && Object.hasOwnProperty.call(message, "errorToken")) - writer.uint32(/* id 8, wireType 2 =*/66).string(message.errorToken); + if (!writer) writer = $Writer.create(); + if (message.command != null && Object.hasOwnProperty.call(message, 'command')) + writer.uint32(/* id 1, wireType 2 =*/ 10).string(message.command); + if (message.messageSessionUid != null && Object.hasOwnProperty.call(message, 'messageSessionUid')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.messageSessionUid); + if (message.email != null && Object.hasOwnProperty.call(message, 'email')) + writer.uint32(/* id 3, wireType 2 =*/ 26).string(message.email); + if (message.encryptedLoginToken != null && Object.hasOwnProperty.call(message, 'encryptedLoginToken')) + writer.uint32(/* id 4, wireType 2 =*/ 34).bytes(message.encryptedLoginToken); + if (message.providerName != null && Object.hasOwnProperty.call(message, 'providerName')) + writer.uint32(/* id 5, wireType 2 =*/ 42).string(message.providerName); + if (message.idpSessionId != null && Object.hasOwnProperty.call(message, 'idpSessionId')) + writer.uint32(/* id 6, wireType 2 =*/ 50).string(message.idpSessionId); + if (message.encryptedSessionToken != null && Object.hasOwnProperty.call(message, 'encryptedSessionToken')) + writer.uint32(/* id 7, wireType 2 =*/ 58).bytes(message.encryptedSessionToken); + if (message.errorToken != null && Object.hasOwnProperty.call(message, 'errorToken')) + writer.uint32(/* id 8, wireType 2 =*/ 66).string(message.errorToken); return writer; }; @@ -128687,47 +133296,47 @@ export const SsoCloud = $root.SsoCloud = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SsoCloudResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.SsoCloud.SsoCloudResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.SsoCloud.SsoCloudResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.command = reader.string(); break; } - case 2: { + case 2: { message.messageSessionUid = reader.bytes(); break; } - case 3: { + case 3: { message.email = reader.string(); break; } - case 4: { + case 4: { message.encryptedLoginToken = reader.bytes(); break; } - case 5: { + case 5: { message.providerName = reader.string(); break; } - case 6: { + case 6: { message.idpSessionId = reader.string(); break; } - case 7: { + case 7: { message.encryptedSessionToken = reader.bytes(); break; } - case 8: { + case 8: { message.errorToken = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -128744,8 +133353,7 @@ export const SsoCloud = $root.SsoCloud = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SsoCloudResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -128758,32 +133366,41 @@ export const SsoCloud = $root.SsoCloud = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ SsoCloudResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.command != null && message.hasOwnProperty("command")) - if (!$util.isString(message.command)) - return "command: string expected"; - if (message.messageSessionUid != null && message.hasOwnProperty("messageSessionUid")) - if (!(message.messageSessionUid && typeof message.messageSessionUid.length === "number" || $util.isString(message.messageSessionUid))) - return "messageSessionUid: buffer expected"; - if (message.email != null && message.hasOwnProperty("email")) - if (!$util.isString(message.email)) - return "email: string expected"; - if (message.encryptedLoginToken != null && message.hasOwnProperty("encryptedLoginToken")) - if (!(message.encryptedLoginToken && typeof message.encryptedLoginToken.length === "number" || $util.isString(message.encryptedLoginToken))) - return "encryptedLoginToken: buffer expected"; - if (message.providerName != null && message.hasOwnProperty("providerName")) - if (!$util.isString(message.providerName)) - return "providerName: string expected"; - if (message.idpSessionId != null && message.hasOwnProperty("idpSessionId")) - if (!$util.isString(message.idpSessionId)) - return "idpSessionId: string expected"; - if (message.encryptedSessionToken != null && message.hasOwnProperty("encryptedSessionToken")) - if (!(message.encryptedSessionToken && typeof message.encryptedSessionToken.length === "number" || $util.isString(message.encryptedSessionToken))) - return "encryptedSessionToken: buffer expected"; - if (message.errorToken != null && message.hasOwnProperty("errorToken")) - if (!$util.isString(message.errorToken)) - return "errorToken: string expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.command != null && message.hasOwnProperty('command')) + if (!$util.isString(message.command)) return 'command: string expected'; + if (message.messageSessionUid != null && message.hasOwnProperty('messageSessionUid')) + if ( + !( + (message.messageSessionUid && typeof message.messageSessionUid.length === 'number') || + $util.isString(message.messageSessionUid) + ) + ) + return 'messageSessionUid: buffer expected'; + if (message.email != null && message.hasOwnProperty('email')) + if (!$util.isString(message.email)) return 'email: string expected'; + if (message.encryptedLoginToken != null && message.hasOwnProperty('encryptedLoginToken')) + if ( + !( + (message.encryptedLoginToken && typeof message.encryptedLoginToken.length === 'number') || + $util.isString(message.encryptedLoginToken) + ) + ) + return 'encryptedLoginToken: buffer expected'; + if (message.providerName != null && message.hasOwnProperty('providerName')) + if (!$util.isString(message.providerName)) return 'providerName: string expected'; + if (message.idpSessionId != null && message.hasOwnProperty('idpSessionId')) + if (!$util.isString(message.idpSessionId)) return 'idpSessionId: string expected'; + if (message.encryptedSessionToken != null && message.hasOwnProperty('encryptedSessionToken')) + if ( + !( + (message.encryptedSessionToken && typeof message.encryptedSessionToken.length === 'number') || + $util.isString(message.encryptedSessionToken) + ) + ) + return 'encryptedSessionToken: buffer expected'; + if (message.errorToken != null && message.hasOwnProperty('errorToken')) + if (!$util.isString(message.errorToken)) return 'errorToken: string expected'; return null; }; @@ -128796,34 +133413,43 @@ export const SsoCloud = $root.SsoCloud = (() => { * @returns {SsoCloud.SsoCloudResponse} SsoCloudResponse */ SsoCloudResponse.fromObject = function fromObject(object) { - if (object instanceof $root.SsoCloud.SsoCloudResponse) - return object; + if (object instanceof $root.SsoCloud.SsoCloudResponse) return object; let message = new $root.SsoCloud.SsoCloudResponse(); - if (object.command != null) - message.command = String(object.command); + if (object.command != null) message.command = String(object.command); if (object.messageSessionUid != null) - if (typeof object.messageSessionUid === "string") - $util.base64.decode(object.messageSessionUid, message.messageSessionUid = $util.newBuffer($util.base64.length(object.messageSessionUid)), 0); - else if (object.messageSessionUid.length >= 0) - message.messageSessionUid = object.messageSessionUid; - if (object.email != null) - message.email = String(object.email); + if (typeof object.messageSessionUid === 'string') + $util.base64.decode( + object.messageSessionUid, + (message.messageSessionUid = $util.newBuffer($util.base64.length(object.messageSessionUid))), + 0 + ); + else if (object.messageSessionUid.length >= 0) message.messageSessionUid = object.messageSessionUid; + if (object.email != null) message.email = String(object.email); if (object.encryptedLoginToken != null) - if (typeof object.encryptedLoginToken === "string") - $util.base64.decode(object.encryptedLoginToken, message.encryptedLoginToken = $util.newBuffer($util.base64.length(object.encryptedLoginToken)), 0); + if (typeof object.encryptedLoginToken === 'string') + $util.base64.decode( + object.encryptedLoginToken, + (message.encryptedLoginToken = $util.newBuffer( + $util.base64.length(object.encryptedLoginToken) + )), + 0 + ); else if (object.encryptedLoginToken.length >= 0) message.encryptedLoginToken = object.encryptedLoginToken; - if (object.providerName != null) - message.providerName = String(object.providerName); - if (object.idpSessionId != null) - message.idpSessionId = String(object.idpSessionId); + if (object.providerName != null) message.providerName = String(object.providerName); + if (object.idpSessionId != null) message.idpSessionId = String(object.idpSessionId); if (object.encryptedSessionToken != null) - if (typeof object.encryptedSessionToken === "string") - $util.base64.decode(object.encryptedSessionToken, message.encryptedSessionToken = $util.newBuffer($util.base64.length(object.encryptedSessionToken)), 0); + if (typeof object.encryptedSessionToken === 'string') + $util.base64.decode( + object.encryptedSessionToken, + (message.encryptedSessionToken = $util.newBuffer( + $util.base64.length(object.encryptedSessionToken) + )), + 0 + ); else if (object.encryptedSessionToken.length >= 0) message.encryptedSessionToken = object.encryptedSessionToken; - if (object.errorToken != null) - message.errorToken = String(object.errorToken); + if (object.errorToken != null) message.errorToken = String(object.errorToken); return message; }; @@ -128837,52 +133463,60 @@ export const SsoCloud = $root.SsoCloud = (() => { * @returns {Object.} Plain object */ SsoCloudResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - object.command = ""; - if (options.bytes === String) - object.messageSessionUid = ""; + object.command = ''; + if (options.bytes === String) object.messageSessionUid = ''; else { object.messageSessionUid = []; - if (options.bytes !== Array) - object.messageSessionUid = $util.newBuffer(object.messageSessionUid); + if (options.bytes !== Array) object.messageSessionUid = $util.newBuffer(object.messageSessionUid); } - object.email = ""; - if (options.bytes === String) - object.encryptedLoginToken = ""; + object.email = ''; + if (options.bytes === String) object.encryptedLoginToken = ''; else { object.encryptedLoginToken = []; if (options.bytes !== Array) object.encryptedLoginToken = $util.newBuffer(object.encryptedLoginToken); } - object.providerName = ""; - object.idpSessionId = ""; - if (options.bytes === String) - object.encryptedSessionToken = ""; + object.providerName = ''; + object.idpSessionId = ''; + if (options.bytes === String) object.encryptedSessionToken = ''; else { object.encryptedSessionToken = []; if (options.bytes !== Array) object.encryptedSessionToken = $util.newBuffer(object.encryptedSessionToken); } - object.errorToken = ""; - } - if (message.command != null && message.hasOwnProperty("command")) - object.command = message.command; - if (message.messageSessionUid != null && message.hasOwnProperty("messageSessionUid")) - object.messageSessionUid = options.bytes === String ? $util.base64.encode(message.messageSessionUid, 0, message.messageSessionUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.messageSessionUid) : message.messageSessionUid; - if (message.email != null && message.hasOwnProperty("email")) - object.email = message.email; - if (message.encryptedLoginToken != null && message.hasOwnProperty("encryptedLoginToken")) - object.encryptedLoginToken = options.bytes === String ? $util.base64.encode(message.encryptedLoginToken, 0, message.encryptedLoginToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedLoginToken) : message.encryptedLoginToken; - if (message.providerName != null && message.hasOwnProperty("providerName")) + object.errorToken = ''; + } + if (message.command != null && message.hasOwnProperty('command')) object.command = message.command; + if (message.messageSessionUid != null && message.hasOwnProperty('messageSessionUid')) + object.messageSessionUid = + options.bytes === String + ? $util.base64.encode(message.messageSessionUid, 0, message.messageSessionUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.messageSessionUid) + : message.messageSessionUid; + if (message.email != null && message.hasOwnProperty('email')) object.email = message.email; + if (message.encryptedLoginToken != null && message.hasOwnProperty('encryptedLoginToken')) + object.encryptedLoginToken = + options.bytes === String + ? $util.base64.encode(message.encryptedLoginToken, 0, message.encryptedLoginToken.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.encryptedLoginToken) + : message.encryptedLoginToken; + if (message.providerName != null && message.hasOwnProperty('providerName')) object.providerName = message.providerName; - if (message.idpSessionId != null && message.hasOwnProperty("idpSessionId")) + if (message.idpSessionId != null && message.hasOwnProperty('idpSessionId')) object.idpSessionId = message.idpSessionId; - if (message.encryptedSessionToken != null && message.hasOwnProperty("encryptedSessionToken")) - object.encryptedSessionToken = options.bytes === String ? $util.base64.encode(message.encryptedSessionToken, 0, message.encryptedSessionToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedSessionToken) : message.encryptedSessionToken; - if (message.errorToken != null && message.hasOwnProperty("errorToken")) + if (message.encryptedSessionToken != null && message.hasOwnProperty('encryptedSessionToken')) + object.encryptedSessionToken = + options.bytes === String + ? $util.base64.encode(message.encryptedSessionToken, 0, message.encryptedSessionToken.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.encryptedSessionToken) + : message.encryptedSessionToken; + if (message.errorToken != null && message.hasOwnProperty('errorToken')) object.errorToken = message.errorToken; return object; }; @@ -128908,16 +133542,15 @@ export const SsoCloud = $root.SsoCloud = (() => { */ SsoCloudResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/SsoCloud.SsoCloudResponse"; + return typeUrlPrefix + '/SsoCloud.SsoCloudResponse'; }; return SsoCloudResponse; })(); - SsoCloud.SsoCloudLogRequest = (function() { - + SsoCloud.SsoCloudLogRequest = (function () { /** * Properties of a SsoCloudLogRequest. * @memberof SsoCloud @@ -128938,8 +133571,7 @@ export const SsoCloud = $root.SsoCloud = (() => { function SsoCloudLogRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -128948,7 +133580,7 @@ export const SsoCloud = $root.SsoCloud = (() => { * @memberof SsoCloud.SsoCloudLogRequest * @instance */ - SsoCloudLogRequest.prototype.ssoServiceProviderId = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + SsoCloudLogRequest.prototype.ssoServiceProviderId = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; /** * SsoCloudLogRequest serviceName. @@ -128956,7 +133588,7 @@ export const SsoCloud = $root.SsoCloud = (() => { * @memberof SsoCloud.SsoCloudLogRequest * @instance */ - SsoCloudLogRequest.prototype.serviceName = ""; + SsoCloudLogRequest.prototype.serviceName = ''; /** * SsoCloudLogRequest serviceId. @@ -128988,14 +133620,13 @@ export const SsoCloud = $root.SsoCloud = (() => { * @returns {$protobuf.Writer} Writer */ SsoCloudLogRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.ssoServiceProviderId != null && Object.hasOwnProperty.call(message, "ssoServiceProviderId")) - writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.ssoServiceProviderId); - if (message.serviceName != null && Object.hasOwnProperty.call(message, "serviceName")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.serviceName); - if (message.serviceId != null && Object.hasOwnProperty.call(message, "serviceId")) - writer.uint32(/* id 3, wireType 0 =*/24).uint32(message.serviceId); + if (!writer) writer = $Writer.create(); + if (message.ssoServiceProviderId != null && Object.hasOwnProperty.call(message, 'ssoServiceProviderId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).uint64(message.ssoServiceProviderId); + if (message.serviceName != null && Object.hasOwnProperty.call(message, 'serviceName')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.serviceName); + if (message.serviceId != null && Object.hasOwnProperty.call(message, 'serviceId')) + writer.uint32(/* id 3, wireType 0 =*/ 24).uint32(message.serviceId); return writer; }; @@ -129024,27 +133655,27 @@ export const SsoCloud = $root.SsoCloud = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SsoCloudLogRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.SsoCloud.SsoCloudLogRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.SsoCloud.SsoCloudLogRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.ssoServiceProviderId = reader.uint64(); break; } - case 2: { + case 2: { message.serviceName = reader.string(); break; } - case 3: { + case 3: { message.serviceId = reader.uint32(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -129061,8 +133692,7 @@ export const SsoCloud = $root.SsoCloud = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SsoCloudLogRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -129075,17 +133705,21 @@ export const SsoCloud = $root.SsoCloud = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ SsoCloudLogRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.ssoServiceProviderId != null && message.hasOwnProperty("ssoServiceProviderId")) - if (!$util.isInteger(message.ssoServiceProviderId) && !(message.ssoServiceProviderId && $util.isInteger(message.ssoServiceProviderId.low) && $util.isInteger(message.ssoServiceProviderId.high))) - return "ssoServiceProviderId: integer|Long expected"; - if (message.serviceName != null && message.hasOwnProperty("serviceName")) - if (!$util.isString(message.serviceName)) - return "serviceName: string expected"; - if (message.serviceId != null && message.hasOwnProperty("serviceId")) - if (!$util.isInteger(message.serviceId)) - return "serviceId: integer expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.ssoServiceProviderId != null && message.hasOwnProperty('ssoServiceProviderId')) + if ( + !$util.isInteger(message.ssoServiceProviderId) && + !( + message.ssoServiceProviderId && + $util.isInteger(message.ssoServiceProviderId.low) && + $util.isInteger(message.ssoServiceProviderId.high) + ) + ) + return 'ssoServiceProviderId: integer|Long expected'; + if (message.serviceName != null && message.hasOwnProperty('serviceName')) + if (!$util.isString(message.serviceName)) return 'serviceName: string expected'; + if (message.serviceId != null && message.hasOwnProperty('serviceId')) + if (!$util.isInteger(message.serviceId)) return 'serviceId: integer expected'; return null; }; @@ -129098,22 +133732,22 @@ export const SsoCloud = $root.SsoCloud = (() => { * @returns {SsoCloud.SsoCloudLogRequest} SsoCloudLogRequest */ SsoCloudLogRequest.fromObject = function fromObject(object) { - if (object instanceof $root.SsoCloud.SsoCloudLogRequest) - return object; + if (object instanceof $root.SsoCloud.SsoCloudLogRequest) return object; let message = new $root.SsoCloud.SsoCloudLogRequest(); if (object.ssoServiceProviderId != null) if ($util.Long) (message.ssoServiceProviderId = $util.Long.fromValue(object.ssoServiceProviderId)).unsigned = true; - else if (typeof object.ssoServiceProviderId === "string") + else if (typeof object.ssoServiceProviderId === 'string') message.ssoServiceProviderId = parseInt(object.ssoServiceProviderId, 10); - else if (typeof object.ssoServiceProviderId === "number") + else if (typeof object.ssoServiceProviderId === 'number') message.ssoServiceProviderId = object.ssoServiceProviderId; - else if (typeof object.ssoServiceProviderId === "object") - message.ssoServiceProviderId = new $util.LongBits(object.ssoServiceProviderId.low >>> 0, object.ssoServiceProviderId.high >>> 0).toNumber(true); - if (object.serviceName != null) - message.serviceName = String(object.serviceName); - if (object.serviceId != null) - message.serviceId = object.serviceId >>> 0; + else if (typeof object.ssoServiceProviderId === 'object') + message.ssoServiceProviderId = new $util.LongBits( + object.ssoServiceProviderId.low >>> 0, + object.ssoServiceProviderId.high >>> 0 + ).toNumber(true); + if (object.serviceName != null) message.serviceName = String(object.serviceName); + if (object.serviceId != null) message.serviceId = object.serviceId >>> 0; return message; }; @@ -129127,27 +133761,34 @@ export const SsoCloud = $root.SsoCloud = (() => { * @returns {Object.} Plain object */ SsoCloudLogRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, true); - object.ssoServiceProviderId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.ssoServiceProviderId = options.longs === String ? "0" : 0; - object.serviceName = ""; + object.ssoServiceProviderId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.ssoServiceProviderId = options.longs === String ? '0' : 0; + object.serviceName = ''; object.serviceId = 0; } - if (message.ssoServiceProviderId != null && message.hasOwnProperty("ssoServiceProviderId")) - if (typeof message.ssoServiceProviderId === "number") - object.ssoServiceProviderId = options.longs === String ? String(message.ssoServiceProviderId) : message.ssoServiceProviderId; + if (message.ssoServiceProviderId != null && message.hasOwnProperty('ssoServiceProviderId')) + if (typeof message.ssoServiceProviderId === 'number') + object.ssoServiceProviderId = + options.longs === String ? String(message.ssoServiceProviderId) : message.ssoServiceProviderId; else - object.ssoServiceProviderId = options.longs === String ? $util.Long.prototype.toString.call(message.ssoServiceProviderId) : options.longs === Number ? new $util.LongBits(message.ssoServiceProviderId.low >>> 0, message.ssoServiceProviderId.high >>> 0).toNumber(true) : message.ssoServiceProviderId; - if (message.serviceName != null && message.hasOwnProperty("serviceName")) + object.ssoServiceProviderId = + options.longs === String + ? $util.Long.prototype.toString.call(message.ssoServiceProviderId) + : options.longs === Number + ? new $util.LongBits( + message.ssoServiceProviderId.low >>> 0, + message.ssoServiceProviderId.high >>> 0 + ).toNumber(true) + : message.ssoServiceProviderId; + if (message.serviceName != null && message.hasOwnProperty('serviceName')) object.serviceName = message.serviceName; - if (message.serviceId != null && message.hasOwnProperty("serviceId")) - object.serviceId = message.serviceId; + if (message.serviceId != null && message.hasOwnProperty('serviceId')) object.serviceId = message.serviceId; return object; }; @@ -129172,16 +133813,15 @@ export const SsoCloud = $root.SsoCloud = (() => { */ SsoCloudLogRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/SsoCloud.SsoCloudLogRequest"; + return typeUrlPrefix + '/SsoCloud.SsoCloudLogRequest'; }; return SsoCloudLogRequest; })(); - SsoCloud.SamlRelayState = (function() { - + SsoCloud.SamlRelayState = (function () { /** * Properties of a SamlRelayState. * @memberof SsoCloud @@ -129210,8 +133850,7 @@ export const SsoCloud = $root.SsoCloud = (() => { function SamlRelayState(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -129228,7 +133867,7 @@ export const SsoCloud = $root.SsoCloud = (() => { * @memberof SsoCloud.SamlRelayState * @instance */ - SamlRelayState.prototype.username = ""; + SamlRelayState.prototype.username = ''; /** * SamlRelayState embedded. @@ -129276,7 +133915,7 @@ export const SsoCloud = $root.SsoCloud = (() => { * @memberof SsoCloud.SamlRelayState * @instance */ - SamlRelayState.prototype.checksum = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + SamlRelayState.prototype.checksum = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; /** * SamlRelayState isGeneratedUid. @@ -129292,7 +133931,7 @@ export const SsoCloud = $root.SsoCloud = (() => { * @memberof SsoCloud.SamlRelayState * @instance */ - SamlRelayState.prototype.deviceId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + SamlRelayState.prototype.deviceId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * SamlRelayState detached. @@ -129324,30 +133963,29 @@ export const SsoCloud = $root.SsoCloud = (() => { * @returns {$protobuf.Writer} Writer */ SamlRelayState.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.messageSessionUid != null && Object.hasOwnProperty.call(message, "messageSessionUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.messageSessionUid); - if (message.username != null && Object.hasOwnProperty.call(message, "username")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.username); - if (message.embedded != null && Object.hasOwnProperty.call(message, "embedded")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.embedded); - if (message.json != null && Object.hasOwnProperty.call(message, "json")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.json); - if (message.destId != null && Object.hasOwnProperty.call(message, "destId")) - writer.uint32(/* id 5, wireType 0 =*/40).uint32(message.destId); - if (message.keyId != null && Object.hasOwnProperty.call(message, "keyId")) - writer.uint32(/* id 6, wireType 0 =*/48).int32(message.keyId); - if (message.supportedLanguage != null && Object.hasOwnProperty.call(message, "supportedLanguage")) - writer.uint32(/* id 7, wireType 0 =*/56).int32(message.supportedLanguage); - if (message.checksum != null && Object.hasOwnProperty.call(message, "checksum")) - writer.uint32(/* id 8, wireType 0 =*/64).uint64(message.checksum); - if (message.isGeneratedUid != null && Object.hasOwnProperty.call(message, "isGeneratedUid")) - writer.uint32(/* id 9, wireType 0 =*/72).bool(message.isGeneratedUid); - if (message.deviceId != null && Object.hasOwnProperty.call(message, "deviceId")) - writer.uint32(/* id 10, wireType 0 =*/80).int64(message.deviceId); - if (message.detached != null && Object.hasOwnProperty.call(message, "detached")) - writer.uint32(/* id 11, wireType 0 =*/88).bool(message.detached); + if (!writer) writer = $Writer.create(); + if (message.messageSessionUid != null && Object.hasOwnProperty.call(message, 'messageSessionUid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.messageSessionUid); + if (message.username != null && Object.hasOwnProperty.call(message, 'username')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.username); + if (message.embedded != null && Object.hasOwnProperty.call(message, 'embedded')) + writer.uint32(/* id 3, wireType 0 =*/ 24).bool(message.embedded); + if (message.json != null && Object.hasOwnProperty.call(message, 'json')) + writer.uint32(/* id 4, wireType 0 =*/ 32).bool(message.json); + if (message.destId != null && Object.hasOwnProperty.call(message, 'destId')) + writer.uint32(/* id 5, wireType 0 =*/ 40).uint32(message.destId); + if (message.keyId != null && Object.hasOwnProperty.call(message, 'keyId')) + writer.uint32(/* id 6, wireType 0 =*/ 48).int32(message.keyId); + if (message.supportedLanguage != null && Object.hasOwnProperty.call(message, 'supportedLanguage')) + writer.uint32(/* id 7, wireType 0 =*/ 56).int32(message.supportedLanguage); + if (message.checksum != null && Object.hasOwnProperty.call(message, 'checksum')) + writer.uint32(/* id 8, wireType 0 =*/ 64).uint64(message.checksum); + if (message.isGeneratedUid != null && Object.hasOwnProperty.call(message, 'isGeneratedUid')) + writer.uint32(/* id 9, wireType 0 =*/ 72).bool(message.isGeneratedUid); + if (message.deviceId != null && Object.hasOwnProperty.call(message, 'deviceId')) + writer.uint32(/* id 10, wireType 0 =*/ 80).int64(message.deviceId); + if (message.detached != null && Object.hasOwnProperty.call(message, 'detached')) + writer.uint32(/* id 11, wireType 0 =*/ 88).bool(message.detached); return writer; }; @@ -129376,59 +134014,59 @@ export const SsoCloud = $root.SsoCloud = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SamlRelayState.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.SsoCloud.SamlRelayState(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.SsoCloud.SamlRelayState(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.messageSessionUid = reader.bytes(); break; } - case 2: { + case 2: { message.username = reader.string(); break; } - case 3: { + case 3: { message.embedded = reader.bool(); break; } - case 4: { + case 4: { message.json = reader.bool(); break; } - case 5: { + case 5: { message.destId = reader.uint32(); break; } - case 6: { + case 6: { message.keyId = reader.int32(); break; } - case 7: { + case 7: { message.supportedLanguage = reader.int32(); break; } - case 8: { + case 8: { message.checksum = reader.uint64(); break; } - case 9: { + case 9: { message.isGeneratedUid = reader.bool(); break; } - case 10: { + case 10: { message.deviceId = reader.int64(); break; } - case 11: { + case 11: { message.detached = reader.bool(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -129445,8 +134083,7 @@ export const SsoCloud = $root.SsoCloud = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SamlRelayState.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -129459,219 +134096,225 @@ export const SsoCloud = $root.SsoCloud = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ SamlRelayState.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.messageSessionUid != null && message.hasOwnProperty("messageSessionUid")) - if (!(message.messageSessionUid && typeof message.messageSessionUid.length === "number" || $util.isString(message.messageSessionUid))) - return "messageSessionUid: buffer expected"; - if (message.username != null && message.hasOwnProperty("username")) - if (!$util.isString(message.username)) - return "username: string expected"; - if (message.embedded != null && message.hasOwnProperty("embedded")) - if (typeof message.embedded !== "boolean") - return "embedded: boolean expected"; - if (message.json != null && message.hasOwnProperty("json")) - if (typeof message.json !== "boolean") - return "json: boolean expected"; - if (message.destId != null && message.hasOwnProperty("destId")) - if (!$util.isInteger(message.destId)) - return "destId: integer expected"; - if (message.keyId != null && message.hasOwnProperty("keyId")) - if (!$util.isInteger(message.keyId)) - return "keyId: integer expected"; - if (message.supportedLanguage != null && message.hasOwnProperty("supportedLanguage")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.messageSessionUid != null && message.hasOwnProperty('messageSessionUid')) + if ( + !( + (message.messageSessionUid && typeof message.messageSessionUid.length === 'number') || + $util.isString(message.messageSessionUid) + ) + ) + return 'messageSessionUid: buffer expected'; + if (message.username != null && message.hasOwnProperty('username')) + if (!$util.isString(message.username)) return 'username: string expected'; + if (message.embedded != null && message.hasOwnProperty('embedded')) + if (typeof message.embedded !== 'boolean') return 'embedded: boolean expected'; + if (message.json != null && message.hasOwnProperty('json')) + if (typeof message.json !== 'boolean') return 'json: boolean expected'; + if (message.destId != null && message.hasOwnProperty('destId')) + if (!$util.isInteger(message.destId)) return 'destId: integer expected'; + if (message.keyId != null && message.hasOwnProperty('keyId')) + if (!$util.isInteger(message.keyId)) return 'keyId: integer expected'; + if (message.supportedLanguage != null && message.hasOwnProperty('supportedLanguage')) switch (message.supportedLanguage) { + default: + return 'supportedLanguage: enum value expected'; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + case 10: + case 11: + case 12: + case 13: + case 14: + case 15: + case 16: + case 17: + case 18: + case 19: + case 20: + case 21: + case 22: + break; + } + if (message.checksum != null && message.hasOwnProperty('checksum')) + if ( + !$util.isInteger(message.checksum) && + !( + message.checksum && + $util.isInteger(message.checksum.low) && + $util.isInteger(message.checksum.high) + ) + ) + return 'checksum: integer|Long expected'; + if (message.isGeneratedUid != null && message.hasOwnProperty('isGeneratedUid')) + if (typeof message.isGeneratedUid !== 'boolean') return 'isGeneratedUid: boolean expected'; + if (message.deviceId != null && message.hasOwnProperty('deviceId')) + if ( + !$util.isInteger(message.deviceId) && + !( + message.deviceId && + $util.isInteger(message.deviceId.low) && + $util.isInteger(message.deviceId.high) + ) + ) + return 'deviceId: integer|Long expected'; + if (message.detached != null && message.hasOwnProperty('detached')) + if (typeof message.detached !== 'boolean') return 'detached: boolean expected'; + return null; + }; + + /** + * Creates a SamlRelayState message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof SsoCloud.SamlRelayState + * @static + * @param {Object.} object Plain object + * @returns {SsoCloud.SamlRelayState} SamlRelayState + */ + SamlRelayState.fromObject = function fromObject(object) { + if (object instanceof $root.SsoCloud.SamlRelayState) return object; + let message = new $root.SsoCloud.SamlRelayState(); + if (object.messageSessionUid != null) + if (typeof object.messageSessionUid === 'string') + $util.base64.decode( + object.messageSessionUid, + (message.messageSessionUid = $util.newBuffer($util.base64.length(object.messageSessionUid))), + 0 + ); + else if (object.messageSessionUid.length >= 0) message.messageSessionUid = object.messageSessionUid; + if (object.username != null) message.username = String(object.username); + if (object.embedded != null) message.embedded = Boolean(object.embedded); + if (object.json != null) message.json = Boolean(object.json); + if (object.destId != null) message.destId = object.destId >>> 0; + if (object.keyId != null) message.keyId = object.keyId | 0; + switch (object.supportedLanguage) { default: - return "supportedLanguage: enum value expected"; + if (typeof object.supportedLanguage === 'number') { + message.supportedLanguage = object.supportedLanguage; + break; + } + break; + case 'ENGLISH': case 0: + message.supportedLanguage = 0; + break; + case 'ARABIC': case 1: + message.supportedLanguage = 1; + break; + case 'BRITISH': case 2: + message.supportedLanguage = 2; + break; + case 'CHINESE': case 3: + message.supportedLanguage = 3; + break; + case 'CHINESE_HONG_KONG': case 4: + message.supportedLanguage = 4; + break; + case 'CHINESE_TAIWAN': case 5: + message.supportedLanguage = 5; + break; + case 'DUTCH': case 6: + message.supportedLanguage = 6; + break; + case 'FRENCH': case 7: + message.supportedLanguage = 7; + break; + case 'GERMAN': case 8: + message.supportedLanguage = 8; + break; + case 'GREEK': case 9: + message.supportedLanguage = 9; + break; + case 'HEBREW': case 10: + message.supportedLanguage = 10; + break; + case 'ITALIAN': case 11: + message.supportedLanguage = 11; + break; + case 'JAPANESE': case 12: + message.supportedLanguage = 12; + break; + case 'KOREAN': case 13: + message.supportedLanguage = 13; + break; + case 'POLISH': case 14: + message.supportedLanguage = 14; + break; + case 'PORTUGUESE': case 15: + message.supportedLanguage = 15; + break; + case 'PORTUGUESE_BRAZIL': case 16: + message.supportedLanguage = 16; + break; + case 'ROMANIAN': case 17: + message.supportedLanguage = 17; + break; + case 'RUSSIAN': case 18: + message.supportedLanguage = 18; + break; + case 'SLOVAK': case 19: + message.supportedLanguage = 19; + break; + case 'SPANISH': case 20: + message.supportedLanguage = 20; + break; + case 'FINNISH': case 21: + message.supportedLanguage = 21; + break; + case 'SWEDISH': case 22: + message.supportedLanguage = 22; break; - } - if (message.checksum != null && message.hasOwnProperty("checksum")) - if (!$util.isInteger(message.checksum) && !(message.checksum && $util.isInteger(message.checksum.low) && $util.isInteger(message.checksum.high))) - return "checksum: integer|Long expected"; - if (message.isGeneratedUid != null && message.hasOwnProperty("isGeneratedUid")) - if (typeof message.isGeneratedUid !== "boolean") - return "isGeneratedUid: boolean expected"; - if (message.deviceId != null && message.hasOwnProperty("deviceId")) - if (!$util.isInteger(message.deviceId) && !(message.deviceId && $util.isInteger(message.deviceId.low) && $util.isInteger(message.deviceId.high))) - return "deviceId: integer|Long expected"; - if (message.detached != null && message.hasOwnProperty("detached")) - if (typeof message.detached !== "boolean") - return "detached: boolean expected"; - return null; - }; - - /** - * Creates a SamlRelayState message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof SsoCloud.SamlRelayState - * @static - * @param {Object.} object Plain object - * @returns {SsoCloud.SamlRelayState} SamlRelayState - */ - SamlRelayState.fromObject = function fromObject(object) { - if (object instanceof $root.SsoCloud.SamlRelayState) - return object; - let message = new $root.SsoCloud.SamlRelayState(); - if (object.messageSessionUid != null) - if (typeof object.messageSessionUid === "string") - $util.base64.decode(object.messageSessionUid, message.messageSessionUid = $util.newBuffer($util.base64.length(object.messageSessionUid)), 0); - else if (object.messageSessionUid.length >= 0) - message.messageSessionUid = object.messageSessionUid; - if (object.username != null) - message.username = String(object.username); - if (object.embedded != null) - message.embedded = Boolean(object.embedded); - if (object.json != null) - message.json = Boolean(object.json); - if (object.destId != null) - message.destId = object.destId >>> 0; - if (object.keyId != null) - message.keyId = object.keyId | 0; - switch (object.supportedLanguage) { - default: - if (typeof object.supportedLanguage === "number") { - message.supportedLanguage = object.supportedLanguage; - break; - } - break; - case "ENGLISH": - case 0: - message.supportedLanguage = 0; - break; - case "ARABIC": - case 1: - message.supportedLanguage = 1; - break; - case "BRITISH": - case 2: - message.supportedLanguage = 2; - break; - case "CHINESE": - case 3: - message.supportedLanguage = 3; - break; - case "CHINESE_HONG_KONG": - case 4: - message.supportedLanguage = 4; - break; - case "CHINESE_TAIWAN": - case 5: - message.supportedLanguage = 5; - break; - case "DUTCH": - case 6: - message.supportedLanguage = 6; - break; - case "FRENCH": - case 7: - message.supportedLanguage = 7; - break; - case "GERMAN": - case 8: - message.supportedLanguage = 8; - break; - case "GREEK": - case 9: - message.supportedLanguage = 9; - break; - case "HEBREW": - case 10: - message.supportedLanguage = 10; - break; - case "ITALIAN": - case 11: - message.supportedLanguage = 11; - break; - case "JAPANESE": - case 12: - message.supportedLanguage = 12; - break; - case "KOREAN": - case 13: - message.supportedLanguage = 13; - break; - case "POLISH": - case 14: - message.supportedLanguage = 14; - break; - case "PORTUGUESE": - case 15: - message.supportedLanguage = 15; - break; - case "PORTUGUESE_BRAZIL": - case 16: - message.supportedLanguage = 16; - break; - case "ROMANIAN": - case 17: - message.supportedLanguage = 17; - break; - case "RUSSIAN": - case 18: - message.supportedLanguage = 18; - break; - case "SLOVAK": - case 19: - message.supportedLanguage = 19; - break; - case "SPANISH": - case 20: - message.supportedLanguage = 20; - break; - case "FINNISH": - case 21: - message.supportedLanguage = 21; - break; - case "SWEDISH": - case 22: - message.supportedLanguage = 22; - break; } if (object.checksum != null) - if ($util.Long) - (message.checksum = $util.Long.fromValue(object.checksum)).unsigned = true; - else if (typeof object.checksum === "string") - message.checksum = parseInt(object.checksum, 10); - else if (typeof object.checksum === "number") - message.checksum = object.checksum; - else if (typeof object.checksum === "object") - message.checksum = new $util.LongBits(object.checksum.low >>> 0, object.checksum.high >>> 0).toNumber(true); - if (object.isGeneratedUid != null) - message.isGeneratedUid = Boolean(object.isGeneratedUid); + if ($util.Long) (message.checksum = $util.Long.fromValue(object.checksum)).unsigned = true; + else if (typeof object.checksum === 'string') message.checksum = parseInt(object.checksum, 10); + else if (typeof object.checksum === 'number') message.checksum = object.checksum; + else if (typeof object.checksum === 'object') + message.checksum = new $util.LongBits( + object.checksum.low >>> 0, + object.checksum.high >>> 0 + ).toNumber(true); + if (object.isGeneratedUid != null) message.isGeneratedUid = Boolean(object.isGeneratedUid); if (object.deviceId != null) - if ($util.Long) - (message.deviceId = $util.Long.fromValue(object.deviceId)).unsigned = false; - else if (typeof object.deviceId === "string") - message.deviceId = parseInt(object.deviceId, 10); - else if (typeof object.deviceId === "number") - message.deviceId = object.deviceId; - else if (typeof object.deviceId === "object") - message.deviceId = new $util.LongBits(object.deviceId.low >>> 0, object.deviceId.high >>> 0).toNumber(); - if (object.detached != null) - message.detached = Boolean(object.detached); + if ($util.Long) (message.deviceId = $util.Long.fromValue(object.deviceId)).unsigned = false; + else if (typeof object.deviceId === 'string') message.deviceId = parseInt(object.deviceId, 10); + else if (typeof object.deviceId === 'number') message.deviceId = object.deviceId; + else if (typeof object.deviceId === 'object') + message.deviceId = new $util.LongBits( + object.deviceId.low >>> 0, + object.deviceId.high >>> 0 + ).toNumber(); + if (object.detached != null) message.detached = Boolean(object.detached); return message; }; @@ -129685,64 +134328,77 @@ export const SsoCloud = $root.SsoCloud = (() => { * @returns {Object.} Plain object */ SamlRelayState.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.messageSessionUid = ""; + if (options.bytes === String) object.messageSessionUid = ''; else { object.messageSessionUid = []; - if (options.bytes !== Array) - object.messageSessionUid = $util.newBuffer(object.messageSessionUid); + if (options.bytes !== Array) object.messageSessionUid = $util.newBuffer(object.messageSessionUid); } - object.username = ""; + object.username = ''; object.embedded = false; object.json = false; object.destId = 0; object.keyId = 0; - object.supportedLanguage = options.enums === String ? "ENGLISH" : 0; + object.supportedLanguage = options.enums === String ? 'ENGLISH' : 0; if ($util.Long) { let long = new $util.Long(0, 0, true); - object.checksum = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.checksum = options.longs === String ? "0" : 0; + object.checksum = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.checksum = options.longs === String ? '0' : 0; object.isGeneratedUid = false; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.deviceId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.deviceId = options.longs === String ? "0" : 0; + object.deviceId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.deviceId = options.longs === String ? '0' : 0; object.detached = false; } - if (message.messageSessionUid != null && message.hasOwnProperty("messageSessionUid")) - object.messageSessionUid = options.bytes === String ? $util.base64.encode(message.messageSessionUid, 0, message.messageSessionUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.messageSessionUid) : message.messageSessionUid; - if (message.username != null && message.hasOwnProperty("username")) - object.username = message.username; - if (message.embedded != null && message.hasOwnProperty("embedded")) - object.embedded = message.embedded; - if (message.json != null && message.hasOwnProperty("json")) - object.json = message.json; - if (message.destId != null && message.hasOwnProperty("destId")) - object.destId = message.destId; - if (message.keyId != null && message.hasOwnProperty("keyId")) - object.keyId = message.keyId; - if (message.supportedLanguage != null && message.hasOwnProperty("supportedLanguage")) - object.supportedLanguage = options.enums === String ? $root.Authentication.SupportedLanguage[message.supportedLanguage] === undefined ? message.supportedLanguage : $root.Authentication.SupportedLanguage[message.supportedLanguage] : message.supportedLanguage; - if (message.checksum != null && message.hasOwnProperty("checksum")) - if (typeof message.checksum === "number") + if (message.messageSessionUid != null && message.hasOwnProperty('messageSessionUid')) + object.messageSessionUid = + options.bytes === String + ? $util.base64.encode(message.messageSessionUid, 0, message.messageSessionUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.messageSessionUid) + : message.messageSessionUid; + if (message.username != null && message.hasOwnProperty('username')) object.username = message.username; + if (message.embedded != null && message.hasOwnProperty('embedded')) object.embedded = message.embedded; + if (message.json != null && message.hasOwnProperty('json')) object.json = message.json; + if (message.destId != null && message.hasOwnProperty('destId')) object.destId = message.destId; + if (message.keyId != null && message.hasOwnProperty('keyId')) object.keyId = message.keyId; + if (message.supportedLanguage != null && message.hasOwnProperty('supportedLanguage')) + object.supportedLanguage = + options.enums === String + ? $root.Authentication.SupportedLanguage[message.supportedLanguage] === undefined + ? message.supportedLanguage + : $root.Authentication.SupportedLanguage[message.supportedLanguage] + : message.supportedLanguage; + if (message.checksum != null && message.hasOwnProperty('checksum')) + if (typeof message.checksum === 'number') object.checksum = options.longs === String ? String(message.checksum) : message.checksum; else - object.checksum = options.longs === String ? $util.Long.prototype.toString.call(message.checksum) : options.longs === Number ? new $util.LongBits(message.checksum.low >>> 0, message.checksum.high >>> 0).toNumber(true) : message.checksum; - if (message.isGeneratedUid != null && message.hasOwnProperty("isGeneratedUid")) + object.checksum = + options.longs === String + ? $util.Long.prototype.toString.call(message.checksum) + : options.longs === Number + ? new $util.LongBits(message.checksum.low >>> 0, message.checksum.high >>> 0).toNumber( + true + ) + : message.checksum; + if (message.isGeneratedUid != null && message.hasOwnProperty('isGeneratedUid')) object.isGeneratedUid = message.isGeneratedUid; - if (message.deviceId != null && message.hasOwnProperty("deviceId")) - if (typeof message.deviceId === "number") + if (message.deviceId != null && message.hasOwnProperty('deviceId')) + if (typeof message.deviceId === 'number') object.deviceId = options.longs === String ? String(message.deviceId) : message.deviceId; else - object.deviceId = options.longs === String ? $util.Long.prototype.toString.call(message.deviceId) : options.longs === Number ? new $util.LongBits(message.deviceId.low >>> 0, message.deviceId.high >>> 0).toNumber() : message.deviceId; - if (message.detached != null && message.hasOwnProperty("detached")) - object.detached = message.detached; + object.deviceId = + options.longs === String + ? $util.Long.prototype.toString.call(message.deviceId) + : options.longs === Number + ? new $util.LongBits(message.deviceId.low >>> 0, message.deviceId.high >>> 0).toNumber() + : message.deviceId; + if (message.detached != null && message.hasOwnProperty('detached')) object.detached = message.detached; return object; }; @@ -129767,16 +134423,15 @@ export const SsoCloud = $root.SsoCloud = (() => { */ SamlRelayState.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/SsoCloud.SamlRelayState"; + return typeUrlPrefix + '/SsoCloud.SamlRelayState'; }; return SamlRelayState; })(); - SsoCloud.SsoCloudMigrationStatusRequest = (function() { - + SsoCloud.SsoCloudMigrationStatusRequest = (function () { /** * Properties of a SsoCloudMigrationStatusRequest. * @memberof SsoCloud @@ -129792,9 +134447,9 @@ export const SsoCloud = $root.SsoCloud = (() => { * @memberof SsoCloud * @classdesc This is used when migrating from SSO Connect to SSO Connect Cloud. * This retrieves the current status of the migration. - * + * * If fullStatus == false but limit == 0, a default limit (probably 25) will be used. - * + * * Example 1: (nodeId=123, fullStatus=true, includeMigratedUsers=true, limit=any). ALL users, migrated and unmigrated, will be returned. * Example 2: (nodeId=123, fullStatus=true, includeMigratedUsers=false, limit=any). ALL unmigrated users will be returned. * Example 3: (nodeId=123, fullStatus=false, includeMigratedUsers=true, limit=-1). No users will be returned @@ -129802,7 +134457,7 @@ export const SsoCloud = $root.SsoCloud = (() => { * Example 5: (nodeId=123, fullStatus=false, includeMigratedUsers=false, limit=0). The first 25 unmigrated users will be returned. * Example 6: (nodeId=123, fullStatus=false, includeMigratedUsers=false, limit=15). The first 15 unmigrated users will be returned. * Example 7: (nodeId=123, fullStatus=false, includeMigratedUsers=false, limit=-1). Just stats will be returned, no users will be returned. - * + * * @see SsoCloudMigrationStatusResponse * @since MH: 2022-01-11 * @implements ISsoCloudMigrationStatusRequest @@ -129812,8 +134467,7 @@ export const SsoCloud = $root.SsoCloud = (() => { function SsoCloudMigrationStatusRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -129822,7 +134476,7 @@ export const SsoCloud = $root.SsoCloud = (() => { * @memberof SsoCloud.SsoCloudMigrationStatusRequest * @instance */ - SsoCloudMigrationStatusRequest.prototype.nodeId = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + SsoCloudMigrationStatusRequest.prototype.nodeId = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; /** * SsoCloudMigrationStatusRequest fullStatus. @@ -129870,16 +134524,15 @@ export const SsoCloud = $root.SsoCloud = (() => { * @returns {$protobuf.Writer} Writer */ SsoCloudMigrationStatusRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.nodeId != null && Object.hasOwnProperty.call(message, "nodeId")) - writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.nodeId); - if (message.fullStatus != null && Object.hasOwnProperty.call(message, "fullStatus")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.fullStatus); - if (message.includeMigratedUsers != null && Object.hasOwnProperty.call(message, "includeMigratedUsers")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.includeMigratedUsers); - if (message.limit != null && Object.hasOwnProperty.call(message, "limit")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.limit); + if (!writer) writer = $Writer.create(); + if (message.nodeId != null && Object.hasOwnProperty.call(message, 'nodeId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).uint64(message.nodeId); + if (message.fullStatus != null && Object.hasOwnProperty.call(message, 'fullStatus')) + writer.uint32(/* id 2, wireType 0 =*/ 16).bool(message.fullStatus); + if (message.includeMigratedUsers != null && Object.hasOwnProperty.call(message, 'includeMigratedUsers')) + writer.uint32(/* id 3, wireType 0 =*/ 24).bool(message.includeMigratedUsers); + if (message.limit != null && Object.hasOwnProperty.call(message, 'limit')) + writer.uint32(/* id 4, wireType 0 =*/ 32).int32(message.limit); return writer; }; @@ -129908,31 +134561,31 @@ export const SsoCloud = $root.SsoCloud = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SsoCloudMigrationStatusRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.SsoCloud.SsoCloudMigrationStatusRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.SsoCloud.SsoCloudMigrationStatusRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.nodeId = reader.uint64(); break; } - case 2: { + case 2: { message.fullStatus = reader.bool(); break; } - case 3: { + case 3: { message.includeMigratedUsers = reader.bool(); break; } - case 4: { + case 4: { message.limit = reader.int32(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -129949,8 +134602,7 @@ export const SsoCloud = $root.SsoCloud = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SsoCloudMigrationStatusRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -129963,20 +134615,19 @@ export const SsoCloud = $root.SsoCloud = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ SsoCloudMigrationStatusRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.nodeId != null && message.hasOwnProperty("nodeId")) - if (!$util.isInteger(message.nodeId) && !(message.nodeId && $util.isInteger(message.nodeId.low) && $util.isInteger(message.nodeId.high))) - return "nodeId: integer|Long expected"; - if (message.fullStatus != null && message.hasOwnProperty("fullStatus")) - if (typeof message.fullStatus !== "boolean") - return "fullStatus: boolean expected"; - if (message.includeMigratedUsers != null && message.hasOwnProperty("includeMigratedUsers")) - if (typeof message.includeMigratedUsers !== "boolean") - return "includeMigratedUsers: boolean expected"; - if (message.limit != null && message.hasOwnProperty("limit")) - if (!$util.isInteger(message.limit)) - return "limit: integer expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.nodeId != null && message.hasOwnProperty('nodeId')) + if ( + !$util.isInteger(message.nodeId) && + !(message.nodeId && $util.isInteger(message.nodeId.low) && $util.isInteger(message.nodeId.high)) + ) + return 'nodeId: integer|Long expected'; + if (message.fullStatus != null && message.hasOwnProperty('fullStatus')) + if (typeof message.fullStatus !== 'boolean') return 'fullStatus: boolean expected'; + if (message.includeMigratedUsers != null && message.hasOwnProperty('includeMigratedUsers')) + if (typeof message.includeMigratedUsers !== 'boolean') return 'includeMigratedUsers: boolean expected'; + if (message.limit != null && message.hasOwnProperty('limit')) + if (!$util.isInteger(message.limit)) return 'limit: integer expected'; return null; }; @@ -129989,24 +134640,20 @@ export const SsoCloud = $root.SsoCloud = (() => { * @returns {SsoCloud.SsoCloudMigrationStatusRequest} SsoCloudMigrationStatusRequest */ SsoCloudMigrationStatusRequest.fromObject = function fromObject(object) { - if (object instanceof $root.SsoCloud.SsoCloudMigrationStatusRequest) - return object; + if (object instanceof $root.SsoCloud.SsoCloudMigrationStatusRequest) return object; let message = new $root.SsoCloud.SsoCloudMigrationStatusRequest(); if (object.nodeId != null) - if ($util.Long) - (message.nodeId = $util.Long.fromValue(object.nodeId)).unsigned = true; - else if (typeof object.nodeId === "string") - message.nodeId = parseInt(object.nodeId, 10); - else if (typeof object.nodeId === "number") - message.nodeId = object.nodeId; - else if (typeof object.nodeId === "object") - message.nodeId = new $util.LongBits(object.nodeId.low >>> 0, object.nodeId.high >>> 0).toNumber(true); - if (object.fullStatus != null) - message.fullStatus = Boolean(object.fullStatus); + if ($util.Long) (message.nodeId = $util.Long.fromValue(object.nodeId)).unsigned = true; + else if (typeof object.nodeId === 'string') message.nodeId = parseInt(object.nodeId, 10); + else if (typeof object.nodeId === 'number') message.nodeId = object.nodeId; + else if (typeof object.nodeId === 'object') + message.nodeId = new $util.LongBits(object.nodeId.low >>> 0, object.nodeId.high >>> 0).toNumber( + true + ); + if (object.fullStatus != null) message.fullStatus = Boolean(object.fullStatus); if (object.includeMigratedUsers != null) message.includeMigratedUsers = Boolean(object.includeMigratedUsers); - if (object.limit != null) - message.limit = object.limit | 0; + if (object.limit != null) message.limit = object.limit | 0; return message; }; @@ -130020,30 +134667,33 @@ export const SsoCloud = $root.SsoCloud = (() => { * @returns {Object.} Plain object */ SsoCloudMigrationStatusRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, true); - object.nodeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.nodeId = options.longs === String ? "0" : 0; + object.nodeId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.nodeId = options.longs === String ? '0' : 0; object.fullStatus = false; object.includeMigratedUsers = false; object.limit = 0; } - if (message.nodeId != null && message.hasOwnProperty("nodeId")) - if (typeof message.nodeId === "number") + if (message.nodeId != null && message.hasOwnProperty('nodeId')) + if (typeof message.nodeId === 'number') object.nodeId = options.longs === String ? String(message.nodeId) : message.nodeId; else - object.nodeId = options.longs === String ? $util.Long.prototype.toString.call(message.nodeId) : options.longs === Number ? new $util.LongBits(message.nodeId.low >>> 0, message.nodeId.high >>> 0).toNumber(true) : message.nodeId; - if (message.fullStatus != null && message.hasOwnProperty("fullStatus")) + object.nodeId = + options.longs === String + ? $util.Long.prototype.toString.call(message.nodeId) + : options.longs === Number + ? new $util.LongBits(message.nodeId.low >>> 0, message.nodeId.high >>> 0).toNumber(true) + : message.nodeId; + if (message.fullStatus != null && message.hasOwnProperty('fullStatus')) object.fullStatus = message.fullStatus; - if (message.includeMigratedUsers != null && message.hasOwnProperty("includeMigratedUsers")) + if (message.includeMigratedUsers != null && message.hasOwnProperty('includeMigratedUsers')) object.includeMigratedUsers = message.includeMigratedUsers; - if (message.limit != null && message.hasOwnProperty("limit")) - object.limit = message.limit; + if (message.limit != null && message.hasOwnProperty('limit')) object.limit = message.limit; return object; }; @@ -130068,16 +134718,15 @@ export const SsoCloud = $root.SsoCloud = (() => { */ SsoCloudMigrationStatusRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/SsoCloud.SsoCloudMigrationStatusRequest"; + return typeUrlPrefix + '/SsoCloud.SsoCloudMigrationStatusRequest'; }; return SsoCloudMigrationStatusRequest; })(); - SsoCloud.SsoCloudMigrationStatusResponse = (function() { - + SsoCloud.SsoCloudMigrationStatusResponse = (function () { /** * Properties of a SsoCloudMigrationStatusResponse. * @memberof SsoCloud @@ -130101,7 +134750,7 @@ export const SsoCloud = $root.SsoCloud = (() => { * @classdesc Returns the status of an SSO Connect migration in progress. * If there is an error, success will be false and message will contain an error message. * User records will be sorted by last name. - * + * * @see SsoCloudMigrationStatusRequest * @since MH: 2022-01-11 * @implements ISsoCloudMigrationStatusResponse @@ -130113,8 +134762,7 @@ export const SsoCloud = $root.SsoCloud = (() => { this.unmigratedUsers = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -130131,7 +134779,7 @@ export const SsoCloud = $root.SsoCloud = (() => { * @memberof SsoCloud.SsoCloudMigrationStatusResponse * @instance */ - SsoCloudMigrationStatusResponse.prototype.message = ""; + SsoCloudMigrationStatusResponse.prototype.message = ''; /** * SsoCloudMigrationStatusResponse nodeId. @@ -130139,7 +134787,7 @@ export const SsoCloud = $root.SsoCloud = (() => { * @memberof SsoCloud.SsoCloudMigrationStatusResponse * @instance */ - SsoCloudMigrationStatusResponse.prototype.nodeId = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + SsoCloudMigrationStatusResponse.prototype.nodeId = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; /** * SsoCloudMigrationStatusResponse ssoConnectId. @@ -130147,7 +134795,7 @@ export const SsoCloud = $root.SsoCloud = (() => { * @memberof SsoCloud.SsoCloudMigrationStatusResponse * @instance */ - SsoCloudMigrationStatusResponse.prototype.ssoConnectId = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + SsoCloudMigrationStatusResponse.prototype.ssoConnectId = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; /** * SsoCloudMigrationStatusResponse ssoConnectName. @@ -130155,7 +134803,7 @@ export const SsoCloud = $root.SsoCloud = (() => { * @memberof SsoCloud.SsoCloudMigrationStatusResponse * @instance */ - SsoCloudMigrationStatusResponse.prototype.ssoConnectName = ""; + SsoCloudMigrationStatusResponse.prototype.ssoConnectName = ''; /** * SsoCloudMigrationStatusResponse ssoConnectCloudId. @@ -130163,7 +134811,7 @@ export const SsoCloud = $root.SsoCloud = (() => { * @memberof SsoCloud.SsoCloudMigrationStatusResponse * @instance */ - SsoCloudMigrationStatusResponse.prototype.ssoConnectCloudId = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + SsoCloudMigrationStatusResponse.prototype.ssoConnectCloudId = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; /** * SsoCloudMigrationStatusResponse ssoConnectCloudName. @@ -130171,7 +134819,7 @@ export const SsoCloud = $root.SsoCloud = (() => { * @memberof SsoCloud.SsoCloudMigrationStatusResponse * @instance */ - SsoCloudMigrationStatusResponse.prototype.ssoConnectCloudName = ""; + SsoCloudMigrationStatusResponse.prototype.ssoConnectCloudName = ''; /** * SsoCloudMigrationStatusResponse totalUsersCount. @@ -130227,32 +134875,37 @@ export const SsoCloud = $root.SsoCloud = (() => { * @returns {$protobuf.Writer} Writer */ SsoCloudMigrationStatusResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.success != null && Object.hasOwnProperty.call(message, "success")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.success); - if (message.message != null && Object.hasOwnProperty.call(message, "message")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.message); - if (message.nodeId != null && Object.hasOwnProperty.call(message, "nodeId")) - writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.nodeId); - if (message.ssoConnectId != null && Object.hasOwnProperty.call(message, "ssoConnectId")) - writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.ssoConnectId); - if (message.ssoConnectName != null && Object.hasOwnProperty.call(message, "ssoConnectName")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.ssoConnectName); - if (message.ssoConnectCloudId != null && Object.hasOwnProperty.call(message, "ssoConnectCloudId")) - writer.uint32(/* id 6, wireType 0 =*/48).uint64(message.ssoConnectCloudId); - if (message.ssoConnectCloudName != null && Object.hasOwnProperty.call(message, "ssoConnectCloudName")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.ssoConnectCloudName); - if (message.totalUsersCount != null && Object.hasOwnProperty.call(message, "totalUsersCount")) - writer.uint32(/* id 8, wireType 0 =*/64).uint32(message.totalUsersCount); - if (message.usersMigratedCount != null && Object.hasOwnProperty.call(message, "usersMigratedCount")) - writer.uint32(/* id 9, wireType 0 =*/72).uint32(message.usersMigratedCount); + if (!writer) writer = $Writer.create(); + if (message.success != null && Object.hasOwnProperty.call(message, 'success')) + writer.uint32(/* id 1, wireType 0 =*/ 8).bool(message.success); + if (message.message != null && Object.hasOwnProperty.call(message, 'message')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.message); + if (message.nodeId != null && Object.hasOwnProperty.call(message, 'nodeId')) + writer.uint32(/* id 3, wireType 0 =*/ 24).uint64(message.nodeId); + if (message.ssoConnectId != null && Object.hasOwnProperty.call(message, 'ssoConnectId')) + writer.uint32(/* id 4, wireType 0 =*/ 32).uint64(message.ssoConnectId); + if (message.ssoConnectName != null && Object.hasOwnProperty.call(message, 'ssoConnectName')) + writer.uint32(/* id 5, wireType 2 =*/ 42).string(message.ssoConnectName); + if (message.ssoConnectCloudId != null && Object.hasOwnProperty.call(message, 'ssoConnectCloudId')) + writer.uint32(/* id 6, wireType 0 =*/ 48).uint64(message.ssoConnectCloudId); + if (message.ssoConnectCloudName != null && Object.hasOwnProperty.call(message, 'ssoConnectCloudName')) + writer.uint32(/* id 7, wireType 2 =*/ 58).string(message.ssoConnectCloudName); + if (message.totalUsersCount != null && Object.hasOwnProperty.call(message, 'totalUsersCount')) + writer.uint32(/* id 8, wireType 0 =*/ 64).uint32(message.totalUsersCount); + if (message.usersMigratedCount != null && Object.hasOwnProperty.call(message, 'usersMigratedCount')) + writer.uint32(/* id 9, wireType 0 =*/ 72).uint32(message.usersMigratedCount); if (message.migratedUsers != null && message.migratedUsers.length) for (let i = 0; i < message.migratedUsers.length; ++i) - $root.SsoCloud.SsoCloudMigrationUserInfo.encode(message.migratedUsers[i], writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + $root.SsoCloud.SsoCloudMigrationUserInfo.encode( + message.migratedUsers[i], + writer.uint32(/* id 10, wireType 2 =*/ 82).fork() + ).ldelim(); if (message.unmigratedUsers != null && message.unmigratedUsers.length) for (let i = 0; i < message.unmigratedUsers.length; ++i) - $root.SsoCloud.SsoCloudMigrationUserInfo.encode(message.unmigratedUsers[i], writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); + $root.SsoCloud.SsoCloudMigrationUserInfo.encode( + message.unmigratedUsers[i], + writer.uint32(/* id 11, wireType 2 =*/ 90).fork() + ).ldelim(); return writer; }; @@ -130281,63 +134934,65 @@ export const SsoCloud = $root.SsoCloud = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SsoCloudMigrationStatusResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.SsoCloud.SsoCloudMigrationStatusResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.SsoCloud.SsoCloudMigrationStatusResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.success = reader.bool(); break; } - case 2: { + case 2: { message.message = reader.string(); break; } - case 3: { + case 3: { message.nodeId = reader.uint64(); break; } - case 4: { + case 4: { message.ssoConnectId = reader.uint64(); break; } - case 5: { + case 5: { message.ssoConnectName = reader.string(); break; } - case 6: { + case 6: { message.ssoConnectCloudId = reader.uint64(); break; } - case 7: { + case 7: { message.ssoConnectCloudName = reader.string(); break; } - case 8: { + case 8: { message.totalUsersCount = reader.uint32(); break; } - case 9: { + case 9: { message.usersMigratedCount = reader.uint32(); break; } - case 10: { - if (!(message.migratedUsers && message.migratedUsers.length)) - message.migratedUsers = []; - message.migratedUsers.push($root.SsoCloud.SsoCloudMigrationUserInfo.decode(reader, reader.uint32())); + case 10: { + if (!(message.migratedUsers && message.migratedUsers.length)) message.migratedUsers = []; + message.migratedUsers.push( + $root.SsoCloud.SsoCloudMigrationUserInfo.decode(reader, reader.uint32()) + ); break; } - case 11: { - if (!(message.unmigratedUsers && message.unmigratedUsers.length)) - message.unmigratedUsers = []; - message.unmigratedUsers.push($root.SsoCloud.SsoCloudMigrationUserInfo.decode(reader, reader.uint32())); + case 11: { + if (!(message.unmigratedUsers && message.unmigratedUsers.length)) message.unmigratedUsers = []; + message.unmigratedUsers.push( + $root.SsoCloud.SsoCloudMigrationUserInfo.decode(reader, reader.uint32()) + ); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -130354,8 +135009,7 @@ export const SsoCloud = $root.SsoCloud = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SsoCloudMigrationStatusResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -130368,51 +135022,57 @@ export const SsoCloud = $root.SsoCloud = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ SsoCloudMigrationStatusResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.success != null && message.hasOwnProperty("success")) - if (typeof message.success !== "boolean") - return "success: boolean expected"; - if (message.message != null && message.hasOwnProperty("message")) - if (!$util.isString(message.message)) - return "message: string expected"; - if (message.nodeId != null && message.hasOwnProperty("nodeId")) - if (!$util.isInteger(message.nodeId) && !(message.nodeId && $util.isInteger(message.nodeId.low) && $util.isInteger(message.nodeId.high))) - return "nodeId: integer|Long expected"; - if (message.ssoConnectId != null && message.hasOwnProperty("ssoConnectId")) - if (!$util.isInteger(message.ssoConnectId) && !(message.ssoConnectId && $util.isInteger(message.ssoConnectId.low) && $util.isInteger(message.ssoConnectId.high))) - return "ssoConnectId: integer|Long expected"; - if (message.ssoConnectName != null && message.hasOwnProperty("ssoConnectName")) - if (!$util.isString(message.ssoConnectName)) - return "ssoConnectName: string expected"; - if (message.ssoConnectCloudId != null && message.hasOwnProperty("ssoConnectCloudId")) - if (!$util.isInteger(message.ssoConnectCloudId) && !(message.ssoConnectCloudId && $util.isInteger(message.ssoConnectCloudId.low) && $util.isInteger(message.ssoConnectCloudId.high))) - return "ssoConnectCloudId: integer|Long expected"; - if (message.ssoConnectCloudName != null && message.hasOwnProperty("ssoConnectCloudName")) - if (!$util.isString(message.ssoConnectCloudName)) - return "ssoConnectCloudName: string expected"; - if (message.totalUsersCount != null && message.hasOwnProperty("totalUsersCount")) - if (!$util.isInteger(message.totalUsersCount)) - return "totalUsersCount: integer expected"; - if (message.usersMigratedCount != null && message.hasOwnProperty("usersMigratedCount")) - if (!$util.isInteger(message.usersMigratedCount)) - return "usersMigratedCount: integer expected"; - if (message.migratedUsers != null && message.hasOwnProperty("migratedUsers")) { - if (!Array.isArray(message.migratedUsers)) - return "migratedUsers: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.success != null && message.hasOwnProperty('success')) + if (typeof message.success !== 'boolean') return 'success: boolean expected'; + if (message.message != null && message.hasOwnProperty('message')) + if (!$util.isString(message.message)) return 'message: string expected'; + if (message.nodeId != null && message.hasOwnProperty('nodeId')) + if ( + !$util.isInteger(message.nodeId) && + !(message.nodeId && $util.isInteger(message.nodeId.low) && $util.isInteger(message.nodeId.high)) + ) + return 'nodeId: integer|Long expected'; + if (message.ssoConnectId != null && message.hasOwnProperty('ssoConnectId')) + if ( + !$util.isInteger(message.ssoConnectId) && + !( + message.ssoConnectId && + $util.isInteger(message.ssoConnectId.low) && + $util.isInteger(message.ssoConnectId.high) + ) + ) + return 'ssoConnectId: integer|Long expected'; + if (message.ssoConnectName != null && message.hasOwnProperty('ssoConnectName')) + if (!$util.isString(message.ssoConnectName)) return 'ssoConnectName: string expected'; + if (message.ssoConnectCloudId != null && message.hasOwnProperty('ssoConnectCloudId')) + if ( + !$util.isInteger(message.ssoConnectCloudId) && + !( + message.ssoConnectCloudId && + $util.isInteger(message.ssoConnectCloudId.low) && + $util.isInteger(message.ssoConnectCloudId.high) + ) + ) + return 'ssoConnectCloudId: integer|Long expected'; + if (message.ssoConnectCloudName != null && message.hasOwnProperty('ssoConnectCloudName')) + if (!$util.isString(message.ssoConnectCloudName)) return 'ssoConnectCloudName: string expected'; + if (message.totalUsersCount != null && message.hasOwnProperty('totalUsersCount')) + if (!$util.isInteger(message.totalUsersCount)) return 'totalUsersCount: integer expected'; + if (message.usersMigratedCount != null && message.hasOwnProperty('usersMigratedCount')) + if (!$util.isInteger(message.usersMigratedCount)) return 'usersMigratedCount: integer expected'; + if (message.migratedUsers != null && message.hasOwnProperty('migratedUsers')) { + if (!Array.isArray(message.migratedUsers)) return 'migratedUsers: array expected'; for (let i = 0; i < message.migratedUsers.length; ++i) { let error = $root.SsoCloud.SsoCloudMigrationUserInfo.verify(message.migratedUsers[i]); - if (error) - return "migratedUsers." + error; + if (error) return 'migratedUsers.' + error; } } - if (message.unmigratedUsers != null && message.hasOwnProperty("unmigratedUsers")) { - if (!Array.isArray(message.unmigratedUsers)) - return "unmigratedUsers: array expected"; + if (message.unmigratedUsers != null && message.hasOwnProperty('unmigratedUsers')) { + if (!Array.isArray(message.unmigratedUsers)) return 'unmigratedUsers: array expected'; for (let i = 0; i < message.unmigratedUsers.length; ++i) { let error = $root.SsoCloud.SsoCloudMigrationUserInfo.verify(message.unmigratedUsers[i]); - if (error) - return "unmigratedUsers." + error; + if (error) return 'unmigratedUsers.' + error; } } return null; @@ -130427,66 +135087,66 @@ export const SsoCloud = $root.SsoCloud = (() => { * @returns {SsoCloud.SsoCloudMigrationStatusResponse} SsoCloudMigrationStatusResponse */ SsoCloudMigrationStatusResponse.fromObject = function fromObject(object) { - if (object instanceof $root.SsoCloud.SsoCloudMigrationStatusResponse) - return object; + if (object instanceof $root.SsoCloud.SsoCloudMigrationStatusResponse) return object; let message = new $root.SsoCloud.SsoCloudMigrationStatusResponse(); - if (object.success != null) - message.success = Boolean(object.success); - if (object.message != null) - message.message = String(object.message); + if (object.success != null) message.success = Boolean(object.success); + if (object.message != null) message.message = String(object.message); if (object.nodeId != null) - if ($util.Long) - (message.nodeId = $util.Long.fromValue(object.nodeId)).unsigned = true; - else if (typeof object.nodeId === "string") - message.nodeId = parseInt(object.nodeId, 10); - else if (typeof object.nodeId === "number") - message.nodeId = object.nodeId; - else if (typeof object.nodeId === "object") - message.nodeId = new $util.LongBits(object.nodeId.low >>> 0, object.nodeId.high >>> 0).toNumber(true); + if ($util.Long) (message.nodeId = $util.Long.fromValue(object.nodeId)).unsigned = true; + else if (typeof object.nodeId === 'string') message.nodeId = parseInt(object.nodeId, 10); + else if (typeof object.nodeId === 'number') message.nodeId = object.nodeId; + else if (typeof object.nodeId === 'object') + message.nodeId = new $util.LongBits(object.nodeId.low >>> 0, object.nodeId.high >>> 0).toNumber( + true + ); if (object.ssoConnectId != null) - if ($util.Long) - (message.ssoConnectId = $util.Long.fromValue(object.ssoConnectId)).unsigned = true; - else if (typeof object.ssoConnectId === "string") + if ($util.Long) (message.ssoConnectId = $util.Long.fromValue(object.ssoConnectId)).unsigned = true; + else if (typeof object.ssoConnectId === 'string') message.ssoConnectId = parseInt(object.ssoConnectId, 10); - else if (typeof object.ssoConnectId === "number") - message.ssoConnectId = object.ssoConnectId; - else if (typeof object.ssoConnectId === "object") - message.ssoConnectId = new $util.LongBits(object.ssoConnectId.low >>> 0, object.ssoConnectId.high >>> 0).toNumber(true); - if (object.ssoConnectName != null) - message.ssoConnectName = String(object.ssoConnectName); + else if (typeof object.ssoConnectId === 'number') message.ssoConnectId = object.ssoConnectId; + else if (typeof object.ssoConnectId === 'object') + message.ssoConnectId = new $util.LongBits( + object.ssoConnectId.low >>> 0, + object.ssoConnectId.high >>> 0 + ).toNumber(true); + if (object.ssoConnectName != null) message.ssoConnectName = String(object.ssoConnectName); if (object.ssoConnectCloudId != null) if ($util.Long) (message.ssoConnectCloudId = $util.Long.fromValue(object.ssoConnectCloudId)).unsigned = true; - else if (typeof object.ssoConnectCloudId === "string") + else if (typeof object.ssoConnectCloudId === 'string') message.ssoConnectCloudId = parseInt(object.ssoConnectCloudId, 10); - else if (typeof object.ssoConnectCloudId === "number") + else if (typeof object.ssoConnectCloudId === 'number') message.ssoConnectCloudId = object.ssoConnectCloudId; - else if (typeof object.ssoConnectCloudId === "object") - message.ssoConnectCloudId = new $util.LongBits(object.ssoConnectCloudId.low >>> 0, object.ssoConnectCloudId.high >>> 0).toNumber(true); - if (object.ssoConnectCloudName != null) - message.ssoConnectCloudName = String(object.ssoConnectCloudName); - if (object.totalUsersCount != null) - message.totalUsersCount = object.totalUsersCount >>> 0; - if (object.usersMigratedCount != null) - message.usersMigratedCount = object.usersMigratedCount >>> 0; + else if (typeof object.ssoConnectCloudId === 'object') + message.ssoConnectCloudId = new $util.LongBits( + object.ssoConnectCloudId.low >>> 0, + object.ssoConnectCloudId.high >>> 0 + ).toNumber(true); + if (object.ssoConnectCloudName != null) message.ssoConnectCloudName = String(object.ssoConnectCloudName); + if (object.totalUsersCount != null) message.totalUsersCount = object.totalUsersCount >>> 0; + if (object.usersMigratedCount != null) message.usersMigratedCount = object.usersMigratedCount >>> 0; if (object.migratedUsers) { if (!Array.isArray(object.migratedUsers)) - throw TypeError(".SsoCloud.SsoCloudMigrationStatusResponse.migratedUsers: array expected"); + throw TypeError('.SsoCloud.SsoCloudMigrationStatusResponse.migratedUsers: array expected'); message.migratedUsers = []; for (let i = 0; i < object.migratedUsers.length; ++i) { - if (typeof object.migratedUsers[i] !== "object") - throw TypeError(".SsoCloud.SsoCloudMigrationStatusResponse.migratedUsers: object expected"); - message.migratedUsers[i] = $root.SsoCloud.SsoCloudMigrationUserInfo.fromObject(object.migratedUsers[i]); + if (typeof object.migratedUsers[i] !== 'object') + throw TypeError('.SsoCloud.SsoCloudMigrationStatusResponse.migratedUsers: object expected'); + message.migratedUsers[i] = $root.SsoCloud.SsoCloudMigrationUserInfo.fromObject( + object.migratedUsers[i] + ); } } if (object.unmigratedUsers) { if (!Array.isArray(object.unmigratedUsers)) - throw TypeError(".SsoCloud.SsoCloudMigrationStatusResponse.unmigratedUsers: array expected"); + throw TypeError('.SsoCloud.SsoCloudMigrationStatusResponse.unmigratedUsers: array expected'); message.unmigratedUsers = []; for (let i = 0; i < object.unmigratedUsers.length; ++i) { - if (typeof object.unmigratedUsers[i] !== "object") - throw TypeError(".SsoCloud.SsoCloudMigrationStatusResponse.unmigratedUsers: object expected"); - message.unmigratedUsers[i] = $root.SsoCloud.SsoCloudMigrationUserInfo.fromObject(object.unmigratedUsers[i]); + if (typeof object.unmigratedUsers[i] !== 'object') + throw TypeError('.SsoCloud.SsoCloudMigrationStatusResponse.unmigratedUsers: object expected'); + message.unmigratedUsers[i] = $root.SsoCloud.SsoCloudMigrationUserInfo.fromObject( + object.unmigratedUsers[i] + ); } } return message; @@ -130502,8 +135162,7 @@ export const SsoCloud = $root.SsoCloud = (() => { * @returns {Object.} Plain object */ SsoCloudMigrationStatusResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.arrays || options.defaults) { object.migratedUsers = []; @@ -130511,63 +135170,90 @@ export const SsoCloud = $root.SsoCloud = (() => { } if (options.defaults) { object.success = false; - object.message = ""; + object.message = ''; if ($util.Long) { let long = new $util.Long(0, 0, true); - object.nodeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.nodeId = options.longs === String ? "0" : 0; + object.nodeId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.nodeId = options.longs === String ? '0' : 0; if ($util.Long) { let long = new $util.Long(0, 0, true); - object.ssoConnectId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.ssoConnectId = options.longs === String ? "0" : 0; - object.ssoConnectName = ""; + object.ssoConnectId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.ssoConnectId = options.longs === String ? '0' : 0; + object.ssoConnectName = ''; if ($util.Long) { let long = new $util.Long(0, 0, true); - object.ssoConnectCloudId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.ssoConnectCloudId = options.longs === String ? "0" : 0; - object.ssoConnectCloudName = ""; + object.ssoConnectCloudId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.ssoConnectCloudId = options.longs === String ? '0' : 0; + object.ssoConnectCloudName = ''; object.totalUsersCount = 0; object.usersMigratedCount = 0; } - if (message.success != null && message.hasOwnProperty("success")) - object.success = message.success; - if (message.message != null && message.hasOwnProperty("message")) - object.message = message.message; - if (message.nodeId != null && message.hasOwnProperty("nodeId")) - if (typeof message.nodeId === "number") + if (message.success != null && message.hasOwnProperty('success')) object.success = message.success; + if (message.message != null && message.hasOwnProperty('message')) object.message = message.message; + if (message.nodeId != null && message.hasOwnProperty('nodeId')) + if (typeof message.nodeId === 'number') object.nodeId = options.longs === String ? String(message.nodeId) : message.nodeId; else - object.nodeId = options.longs === String ? $util.Long.prototype.toString.call(message.nodeId) : options.longs === Number ? new $util.LongBits(message.nodeId.low >>> 0, message.nodeId.high >>> 0).toNumber(true) : message.nodeId; - if (message.ssoConnectId != null && message.hasOwnProperty("ssoConnectId")) - if (typeof message.ssoConnectId === "number") - object.ssoConnectId = options.longs === String ? String(message.ssoConnectId) : message.ssoConnectId; + object.nodeId = + options.longs === String + ? $util.Long.prototype.toString.call(message.nodeId) + : options.longs === Number + ? new $util.LongBits(message.nodeId.low >>> 0, message.nodeId.high >>> 0).toNumber(true) + : message.nodeId; + if (message.ssoConnectId != null && message.hasOwnProperty('ssoConnectId')) + if (typeof message.ssoConnectId === 'number') + object.ssoConnectId = + options.longs === String ? String(message.ssoConnectId) : message.ssoConnectId; else - object.ssoConnectId = options.longs === String ? $util.Long.prototype.toString.call(message.ssoConnectId) : options.longs === Number ? new $util.LongBits(message.ssoConnectId.low >>> 0, message.ssoConnectId.high >>> 0).toNumber(true) : message.ssoConnectId; - if (message.ssoConnectName != null && message.hasOwnProperty("ssoConnectName")) + object.ssoConnectId = + options.longs === String + ? $util.Long.prototype.toString.call(message.ssoConnectId) + : options.longs === Number + ? new $util.LongBits( + message.ssoConnectId.low >>> 0, + message.ssoConnectId.high >>> 0 + ).toNumber(true) + : message.ssoConnectId; + if (message.ssoConnectName != null && message.hasOwnProperty('ssoConnectName')) object.ssoConnectName = message.ssoConnectName; - if (message.ssoConnectCloudId != null && message.hasOwnProperty("ssoConnectCloudId")) - if (typeof message.ssoConnectCloudId === "number") - object.ssoConnectCloudId = options.longs === String ? String(message.ssoConnectCloudId) : message.ssoConnectCloudId; + if (message.ssoConnectCloudId != null && message.hasOwnProperty('ssoConnectCloudId')) + if (typeof message.ssoConnectCloudId === 'number') + object.ssoConnectCloudId = + options.longs === String ? String(message.ssoConnectCloudId) : message.ssoConnectCloudId; else - object.ssoConnectCloudId = options.longs === String ? $util.Long.prototype.toString.call(message.ssoConnectCloudId) : options.longs === Number ? new $util.LongBits(message.ssoConnectCloudId.low >>> 0, message.ssoConnectCloudId.high >>> 0).toNumber(true) : message.ssoConnectCloudId; - if (message.ssoConnectCloudName != null && message.hasOwnProperty("ssoConnectCloudName")) + object.ssoConnectCloudId = + options.longs === String + ? $util.Long.prototype.toString.call(message.ssoConnectCloudId) + : options.longs === Number + ? new $util.LongBits( + message.ssoConnectCloudId.low >>> 0, + message.ssoConnectCloudId.high >>> 0 + ).toNumber(true) + : message.ssoConnectCloudId; + if (message.ssoConnectCloudName != null && message.hasOwnProperty('ssoConnectCloudName')) object.ssoConnectCloudName = message.ssoConnectCloudName; - if (message.totalUsersCount != null && message.hasOwnProperty("totalUsersCount")) + if (message.totalUsersCount != null && message.hasOwnProperty('totalUsersCount')) object.totalUsersCount = message.totalUsersCount; - if (message.usersMigratedCount != null && message.hasOwnProperty("usersMigratedCount")) + if (message.usersMigratedCount != null && message.hasOwnProperty('usersMigratedCount')) object.usersMigratedCount = message.usersMigratedCount; if (message.migratedUsers && message.migratedUsers.length) { object.migratedUsers = []; for (let j = 0; j < message.migratedUsers.length; ++j) - object.migratedUsers[j] = $root.SsoCloud.SsoCloudMigrationUserInfo.toObject(message.migratedUsers[j], options); + object.migratedUsers[j] = $root.SsoCloud.SsoCloudMigrationUserInfo.toObject( + message.migratedUsers[j], + options + ); } if (message.unmigratedUsers && message.unmigratedUsers.length) { object.unmigratedUsers = []; for (let j = 0; j < message.unmigratedUsers.length; ++j) - object.unmigratedUsers[j] = $root.SsoCloud.SsoCloudMigrationUserInfo.toObject(message.unmigratedUsers[j], options); + object.unmigratedUsers[j] = $root.SsoCloud.SsoCloudMigrationUserInfo.toObject( + message.unmigratedUsers[j], + options + ); } return object; }; @@ -130593,16 +135279,15 @@ export const SsoCloud = $root.SsoCloud = (() => { */ SsoCloudMigrationStatusResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/SsoCloud.SsoCloudMigrationStatusResponse"; + return typeUrlPrefix + '/SsoCloud.SsoCloudMigrationStatusResponse'; }; return SsoCloudMigrationStatusResponse; })(); - SsoCloud.SsoCloudMigrationUserInfo = (function() { - + SsoCloud.SsoCloudMigrationUserInfo = (function () { /** * Properties of a SsoCloudMigrationUserInfo. * @memberof SsoCloud @@ -130624,8 +135309,7 @@ export const SsoCloud = $root.SsoCloud = (() => { function SsoCloudMigrationUserInfo(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -130642,7 +135326,7 @@ export const SsoCloud = $root.SsoCloud = (() => { * @memberof SsoCloud.SsoCloudMigrationUserInfo * @instance */ - SsoCloudMigrationUserInfo.prototype.email = ""; + SsoCloudMigrationUserInfo.prototype.email = ''; /** * SsoCloudMigrationUserInfo fullName. @@ -130650,7 +135334,7 @@ export const SsoCloud = $root.SsoCloud = (() => { * @memberof SsoCloud.SsoCloudMigrationUserInfo * @instance */ - SsoCloudMigrationUserInfo.prototype.fullName = ""; + SsoCloudMigrationUserInfo.prototype.fullName = ''; /** * SsoCloudMigrationUserInfo isMigrated. @@ -130682,16 +135366,15 @@ export const SsoCloud = $root.SsoCloud = (() => { * @returns {$protobuf.Writer} Writer */ SsoCloudMigrationUserInfo.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.userId != null && Object.hasOwnProperty.call(message, "userId")) - writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.userId); - if (message.email != null && Object.hasOwnProperty.call(message, "email")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.email); - if (message.fullName != null && Object.hasOwnProperty.call(message, "fullName")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.fullName); - if (message.isMigrated != null && Object.hasOwnProperty.call(message, "isMigrated")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.isMigrated); + if (!writer) writer = $Writer.create(); + if (message.userId != null && Object.hasOwnProperty.call(message, 'userId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).uint32(message.userId); + if (message.email != null && Object.hasOwnProperty.call(message, 'email')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.email); + if (message.fullName != null && Object.hasOwnProperty.call(message, 'fullName')) + writer.uint32(/* id 3, wireType 2 =*/ 26).string(message.fullName); + if (message.isMigrated != null && Object.hasOwnProperty.call(message, 'isMigrated')) + writer.uint32(/* id 4, wireType 0 =*/ 32).bool(message.isMigrated); return writer; }; @@ -130720,31 +135403,31 @@ export const SsoCloud = $root.SsoCloud = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SsoCloudMigrationUserInfo.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.SsoCloud.SsoCloudMigrationUserInfo(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.SsoCloud.SsoCloudMigrationUserInfo(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.userId = reader.uint32(); break; } - case 2: { + case 2: { message.email = reader.string(); break; } - case 3: { + case 3: { message.fullName = reader.string(); break; } - case 4: { + case 4: { message.isMigrated = reader.bool(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -130761,8 +135444,7 @@ export const SsoCloud = $root.SsoCloud = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SsoCloudMigrationUserInfo.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -130775,20 +135457,15 @@ export const SsoCloud = $root.SsoCloud = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ SsoCloudMigrationUserInfo.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.userId != null && message.hasOwnProperty("userId")) - if (!$util.isInteger(message.userId)) - return "userId: integer expected"; - if (message.email != null && message.hasOwnProperty("email")) - if (!$util.isString(message.email)) - return "email: string expected"; - if (message.fullName != null && message.hasOwnProperty("fullName")) - if (!$util.isString(message.fullName)) - return "fullName: string expected"; - if (message.isMigrated != null && message.hasOwnProperty("isMigrated")) - if (typeof message.isMigrated !== "boolean") - return "isMigrated: boolean expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.userId != null && message.hasOwnProperty('userId')) + if (!$util.isInteger(message.userId)) return 'userId: integer expected'; + if (message.email != null && message.hasOwnProperty('email')) + if (!$util.isString(message.email)) return 'email: string expected'; + if (message.fullName != null && message.hasOwnProperty('fullName')) + if (!$util.isString(message.fullName)) return 'fullName: string expected'; + if (message.isMigrated != null && message.hasOwnProperty('isMigrated')) + if (typeof message.isMigrated !== 'boolean') return 'isMigrated: boolean expected'; return null; }; @@ -130801,17 +135478,12 @@ export const SsoCloud = $root.SsoCloud = (() => { * @returns {SsoCloud.SsoCloudMigrationUserInfo} SsoCloudMigrationUserInfo */ SsoCloudMigrationUserInfo.fromObject = function fromObject(object) { - if (object instanceof $root.SsoCloud.SsoCloudMigrationUserInfo) - return object; + if (object instanceof $root.SsoCloud.SsoCloudMigrationUserInfo) return object; let message = new $root.SsoCloud.SsoCloudMigrationUserInfo(); - if (object.userId != null) - message.userId = object.userId >>> 0; - if (object.email != null) - message.email = String(object.email); - if (object.fullName != null) - message.fullName = String(object.fullName); - if (object.isMigrated != null) - message.isMigrated = Boolean(object.isMigrated); + if (object.userId != null) message.userId = object.userId >>> 0; + if (object.email != null) message.email = String(object.email); + if (object.fullName != null) message.fullName = String(object.fullName); + if (object.isMigrated != null) message.isMigrated = Boolean(object.isMigrated); return message; }; @@ -130825,22 +135497,18 @@ export const SsoCloud = $root.SsoCloud = (() => { * @returns {Object.} Plain object */ SsoCloudMigrationUserInfo.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { object.userId = 0; - object.email = ""; - object.fullName = ""; + object.email = ''; + object.fullName = ''; object.isMigrated = false; } - if (message.userId != null && message.hasOwnProperty("userId")) - object.userId = message.userId; - if (message.email != null && message.hasOwnProperty("email")) - object.email = message.email; - if (message.fullName != null && message.hasOwnProperty("fullName")) - object.fullName = message.fullName; - if (message.isMigrated != null && message.hasOwnProperty("isMigrated")) + if (message.userId != null && message.hasOwnProperty('userId')) object.userId = message.userId; + if (message.email != null && message.hasOwnProperty('email')) object.email = message.email; + if (message.fullName != null && message.hasOwnProperty('fullName')) object.fullName = message.fullName; + if (message.isMigrated != null && message.hasOwnProperty('isMigrated')) object.isMigrated = message.isMigrated; return object; }; @@ -130866,19 +135534,18 @@ export const SsoCloud = $root.SsoCloud = (() => { */ SsoCloudMigrationUserInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/SsoCloud.SsoCloudMigrationUserInfo"; + return typeUrlPrefix + '/SsoCloud.SsoCloudMigrationUserInfo'; }; return SsoCloudMigrationUserInfo; })(); return SsoCloud; -})(); - -export const SemanticVersion = $root.SemanticVersion = (() => { +})()); +export const SemanticVersion = ($root.SemanticVersion = (() => { /** * Namespace SemanticVersion. * @exports SemanticVersion @@ -130886,8 +135553,7 @@ export const SemanticVersion = $root.SemanticVersion = (() => { */ const SemanticVersion = {}; - SemanticVersion.Version = (function() { - + SemanticVersion.Version = (function () { /** * Properties of a Version. * @memberof SemanticVersion @@ -130909,8 +135575,7 @@ export const SemanticVersion = $root.SemanticVersion = (() => { function Version(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -130967,16 +135632,15 @@ export const SemanticVersion = $root.SemanticVersion = (() => { * @returns {$protobuf.Writer} Writer */ Version.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.major != null && Object.hasOwnProperty.call(message, "major")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.major); - if (message.minor != null && Object.hasOwnProperty.call(message, "minor")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.minor); - if (message.patch != null && Object.hasOwnProperty.call(message, "patch")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.patch); - if (message.build != null && Object.hasOwnProperty.call(message, "build")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.build); + if (!writer) writer = $Writer.create(); + if (message.major != null && Object.hasOwnProperty.call(message, 'major')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int32(message.major); + if (message.minor != null && Object.hasOwnProperty.call(message, 'minor')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int32(message.minor); + if (message.patch != null && Object.hasOwnProperty.call(message, 'patch')) + writer.uint32(/* id 3, wireType 0 =*/ 24).int32(message.patch); + if (message.build != null && Object.hasOwnProperty.call(message, 'build')) + writer.uint32(/* id 4, wireType 0 =*/ 32).int32(message.build); return writer; }; @@ -131005,31 +135669,31 @@ export const SemanticVersion = $root.SemanticVersion = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ Version.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.SemanticVersion.Version(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.SemanticVersion.Version(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.major = reader.int32(); break; } - case 2: { + case 2: { message.minor = reader.int32(); break; } - case 3: { + case 3: { message.patch = reader.int32(); break; } - case 4: { + case 4: { message.build = reader.int32(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -131046,8 +135710,7 @@ export const SemanticVersion = $root.SemanticVersion = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ Version.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -131060,20 +135723,15 @@ export const SemanticVersion = $root.SemanticVersion = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ Version.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.major != null && message.hasOwnProperty("major")) - if (!$util.isInteger(message.major)) - return "major: integer expected"; - if (message.minor != null && message.hasOwnProperty("minor")) - if (!$util.isInteger(message.minor)) - return "minor: integer expected"; - if (message.patch != null && message.hasOwnProperty("patch")) - if (!$util.isInteger(message.patch)) - return "patch: integer expected"; - if (message.build != null && message.hasOwnProperty("build")) - if (!$util.isInteger(message.build)) - return "build: integer expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.major != null && message.hasOwnProperty('major')) + if (!$util.isInteger(message.major)) return 'major: integer expected'; + if (message.minor != null && message.hasOwnProperty('minor')) + if (!$util.isInteger(message.minor)) return 'minor: integer expected'; + if (message.patch != null && message.hasOwnProperty('patch')) + if (!$util.isInteger(message.patch)) return 'patch: integer expected'; + if (message.build != null && message.hasOwnProperty('build')) + if (!$util.isInteger(message.build)) return 'build: integer expected'; return null; }; @@ -131086,17 +135744,12 @@ export const SemanticVersion = $root.SemanticVersion = (() => { * @returns {SemanticVersion.Version} Version */ Version.fromObject = function fromObject(object) { - if (object instanceof $root.SemanticVersion.Version) - return object; + if (object instanceof $root.SemanticVersion.Version) return object; let message = new $root.SemanticVersion.Version(); - if (object.major != null) - message.major = object.major | 0; - if (object.minor != null) - message.minor = object.minor | 0; - if (object.patch != null) - message.patch = object.patch | 0; - if (object.build != null) - message.build = object.build | 0; + if (object.major != null) message.major = object.major | 0; + if (object.minor != null) message.minor = object.minor | 0; + if (object.patch != null) message.patch = object.patch | 0; + if (object.build != null) message.build = object.build | 0; return message; }; @@ -131110,8 +135763,7 @@ export const SemanticVersion = $root.SemanticVersion = (() => { * @returns {Object.} Plain object */ Version.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { object.major = 0; @@ -131119,14 +135771,10 @@ export const SemanticVersion = $root.SemanticVersion = (() => { object.patch = 0; object.build = 0; } - if (message.major != null && message.hasOwnProperty("major")) - object.major = message.major; - if (message.minor != null && message.hasOwnProperty("minor")) - object.minor = message.minor; - if (message.patch != null && message.hasOwnProperty("patch")) - object.patch = message.patch; - if (message.build != null && message.hasOwnProperty("build")) - object.build = message.build; + if (message.major != null && message.hasOwnProperty('major')) object.major = message.major; + if (message.minor != null && message.hasOwnProperty('minor')) object.minor = message.minor; + if (message.patch != null && message.hasOwnProperty('patch')) object.patch = message.patch; + if (message.build != null && message.hasOwnProperty('build')) object.build = message.build; return object; }; @@ -131151,19 +135799,18 @@ export const SemanticVersion = $root.SemanticVersion = (() => { */ Version.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/SemanticVersion.Version"; + return typeUrlPrefix + '/SemanticVersion.Version'; }; return Version; })(); return SemanticVersion; -})(); - -export const BreachWatch = $root.BreachWatch = (() => { +})()); +export const BreachWatch = ($root.BreachWatch = (() => { /** * Namespace BreachWatch. * @exports BreachWatch @@ -131178,15 +135825,15 @@ export const BreachWatch = $root.BreachWatch = (() => { * @property {number} RECORD=0 RECORD value * @property {number} ALTERNATE_PASSWORD=1 ALTERNATE_PASSWORD value */ - BreachWatch.BreachWatchInfoType = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "RECORD"] = 0; - values[valuesById[1] = "ALTERNATE_PASSWORD"] = 1; + BreachWatch.BreachWatchInfoType = (function () { + const valuesById = {}, + values = Object.create(valuesById); + values[(valuesById[0] = 'RECORD')] = 0; + values[(valuesById[1] = 'ALTERNATE_PASSWORD')] = 1; return values; })(); - BreachWatch.BreachWatchRecordRequest = (function() { - + BreachWatch.BreachWatchRecordRequest = (function () { /** * Properties of a BreachWatchRecordRequest. * @memberof BreachWatch @@ -131208,8 +135855,7 @@ export const BreachWatch = $root.BreachWatch = (() => { function BreachWatchRecordRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -131266,16 +135912,15 @@ export const BreachWatch = $root.BreachWatch = (() => { * @returns {$protobuf.Writer} Writer */ BreachWatchRecordRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); - if (message.encryptedData != null && Object.hasOwnProperty.call(message, "encryptedData")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.encryptedData); - if (message.breachWatchInfoType != null && Object.hasOwnProperty.call(message, "breachWatchInfoType")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.breachWatchInfoType); - if (message.updateUserWhoScanned != null && Object.hasOwnProperty.call(message, "updateUserWhoScanned")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.updateUserWhoScanned); + if (!writer) writer = $Writer.create(); + if (message.recordUid != null && Object.hasOwnProperty.call(message, 'recordUid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.recordUid); + if (message.encryptedData != null && Object.hasOwnProperty.call(message, 'encryptedData')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.encryptedData); + if (message.breachWatchInfoType != null && Object.hasOwnProperty.call(message, 'breachWatchInfoType')) + writer.uint32(/* id 3, wireType 0 =*/ 24).int32(message.breachWatchInfoType); + if (message.updateUserWhoScanned != null && Object.hasOwnProperty.call(message, 'updateUserWhoScanned')) + writer.uint32(/* id 4, wireType 0 =*/ 32).bool(message.updateUserWhoScanned); return writer; }; @@ -131304,31 +135949,31 @@ export const BreachWatch = $root.BreachWatch = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ BreachWatchRecordRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BreachWatch.BreachWatchRecordRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.BreachWatch.BreachWatchRecordRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.recordUid = reader.bytes(); break; } - case 2: { + case 2: { message.encryptedData = reader.bytes(); break; } - case 3: { + case 3: { message.breachWatchInfoType = reader.int32(); break; } - case 4: { + case 4: { message.updateUserWhoScanned = reader.bool(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -131345,8 +135990,7 @@ export const BreachWatch = $root.BreachWatch = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ BreachWatchRecordRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -131359,25 +136003,33 @@ export const BreachWatch = $root.BreachWatch = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ BreachWatchRecordRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) - return "recordUid: buffer expected"; - if (message.encryptedData != null && message.hasOwnProperty("encryptedData")) - if (!(message.encryptedData && typeof message.encryptedData.length === "number" || $util.isString(message.encryptedData))) - return "encryptedData: buffer expected"; - if (message.breachWatchInfoType != null && message.hasOwnProperty("breachWatchInfoType")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.recordUid != null && message.hasOwnProperty('recordUid')) + if ( + !( + (message.recordUid && typeof message.recordUid.length === 'number') || + $util.isString(message.recordUid) + ) + ) + return 'recordUid: buffer expected'; + if (message.encryptedData != null && message.hasOwnProperty('encryptedData')) + if ( + !( + (message.encryptedData && typeof message.encryptedData.length === 'number') || + $util.isString(message.encryptedData) + ) + ) + return 'encryptedData: buffer expected'; + if (message.breachWatchInfoType != null && message.hasOwnProperty('breachWatchInfoType')) switch (message.breachWatchInfoType) { - default: - return "breachWatchInfoType: enum value expected"; - case 0: - case 1: - break; + default: + return 'breachWatchInfoType: enum value expected'; + case 0: + case 1: + break; } - if (message.updateUserWhoScanned != null && message.hasOwnProperty("updateUserWhoScanned")) - if (typeof message.updateUserWhoScanned !== "boolean") - return "updateUserWhoScanned: boolean expected"; + if (message.updateUserWhoScanned != null && message.hasOwnProperty('updateUserWhoScanned')) + if (typeof message.updateUserWhoScanned !== 'boolean') return 'updateUserWhoScanned: boolean expected'; return null; }; @@ -131390,34 +136042,39 @@ export const BreachWatch = $root.BreachWatch = (() => { * @returns {BreachWatch.BreachWatchRecordRequest} BreachWatchRecordRequest */ BreachWatchRecordRequest.fromObject = function fromObject(object) { - if (object instanceof $root.BreachWatch.BreachWatchRecordRequest) - return object; + if (object instanceof $root.BreachWatch.BreachWatchRecordRequest) return object; let message = new $root.BreachWatch.BreachWatchRecordRequest(); 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 (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.encryptedData != null) - if (typeof object.encryptedData === "string") - $util.base64.decode(object.encryptedData, message.encryptedData = $util.newBuffer($util.base64.length(object.encryptedData)), 0); - else if (object.encryptedData.length >= 0) - message.encryptedData = object.encryptedData; + if (typeof object.encryptedData === 'string') + $util.base64.decode( + object.encryptedData, + (message.encryptedData = $util.newBuffer($util.base64.length(object.encryptedData))), + 0 + ); + else if (object.encryptedData.length >= 0) message.encryptedData = object.encryptedData; switch (object.breachWatchInfoType) { - default: - if (typeof object.breachWatchInfoType === "number") { - message.breachWatchInfoType = object.breachWatchInfoType; + default: + if (typeof object.breachWatchInfoType === 'number') { + message.breachWatchInfoType = object.breachWatchInfoType; + break; + } + break; + case 'RECORD': + case 0: + message.breachWatchInfoType = 0; + break; + case 'ALTERNATE_PASSWORD': + case 1: + message.breachWatchInfoType = 1; break; - } - break; - case "RECORD": - case 0: - message.breachWatchInfoType = 0; - break; - case "ALTERNATE_PASSWORD": - case 1: - message.breachWatchInfoType = 1; - break; } if (object.updateUserWhoScanned != null) message.updateUserWhoScanned = Boolean(object.updateUserWhoScanned); @@ -131434,34 +136091,44 @@ export const BreachWatch = $root.BreachWatch = (() => { * @returns {Object.} Plain object */ BreachWatchRecordRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.recordUid = ""; + if (options.bytes === String) object.recordUid = ''; else { object.recordUid = []; - if (options.bytes !== Array) - object.recordUid = $util.newBuffer(object.recordUid); + if (options.bytes !== Array) object.recordUid = $util.newBuffer(object.recordUid); } - if (options.bytes === String) - object.encryptedData = ""; + if (options.bytes === String) object.encryptedData = ''; else { object.encryptedData = []; - if (options.bytes !== Array) - object.encryptedData = $util.newBuffer(object.encryptedData); + if (options.bytes !== Array) object.encryptedData = $util.newBuffer(object.encryptedData); } - object.breachWatchInfoType = options.enums === String ? "RECORD" : 0; + object.breachWatchInfoType = options.enums === String ? 'RECORD' : 0; object.updateUserWhoScanned = false; } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; - if (message.encryptedData != null && message.hasOwnProperty("encryptedData")) - object.encryptedData = options.bytes === String ? $util.base64.encode(message.encryptedData, 0, message.encryptedData.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedData) : message.encryptedData; - if (message.breachWatchInfoType != null && message.hasOwnProperty("breachWatchInfoType")) - object.breachWatchInfoType = options.enums === String ? $root.BreachWatch.BreachWatchInfoType[message.breachWatchInfoType] === undefined ? message.breachWatchInfoType : $root.BreachWatch.BreachWatchInfoType[message.breachWatchInfoType] : message.breachWatchInfoType; - if (message.updateUserWhoScanned != null && message.hasOwnProperty("updateUserWhoScanned")) + if (message.recordUid != null && message.hasOwnProperty('recordUid')) + object.recordUid = + options.bytes === String + ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.recordUid) + : message.recordUid; + if (message.encryptedData != null && message.hasOwnProperty('encryptedData')) + object.encryptedData = + options.bytes === String + ? $util.base64.encode(message.encryptedData, 0, message.encryptedData.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.encryptedData) + : message.encryptedData; + if (message.breachWatchInfoType != null && message.hasOwnProperty('breachWatchInfoType')) + object.breachWatchInfoType = + options.enums === String + ? $root.BreachWatch.BreachWatchInfoType[message.breachWatchInfoType] === undefined + ? message.breachWatchInfoType + : $root.BreachWatch.BreachWatchInfoType[message.breachWatchInfoType] + : message.breachWatchInfoType; + if (message.updateUserWhoScanned != null && message.hasOwnProperty('updateUserWhoScanned')) object.updateUserWhoScanned = message.updateUserWhoScanned; return object; }; @@ -131487,16 +136154,15 @@ export const BreachWatch = $root.BreachWatch = (() => { */ BreachWatchRecordRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/BreachWatch.BreachWatchRecordRequest"; + return typeUrlPrefix + '/BreachWatch.BreachWatchRecordRequest'; }; return BreachWatchRecordRequest; })(); - BreachWatch.BreachWatchUpdateRequest = (function() { - + BreachWatch.BreachWatchUpdateRequest = (function () { /** * Properties of a BreachWatchUpdateRequest. * @memberof BreachWatch @@ -131517,8 +136183,7 @@ export const BreachWatch = $root.BreachWatch = (() => { this.breachWatchRecordRequest = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -131559,13 +136224,15 @@ export const BreachWatch = $root.BreachWatch = (() => { * @returns {$protobuf.Writer} Writer */ BreachWatchUpdateRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.breachWatchRecordRequest != null && message.breachWatchRecordRequest.length) for (let i = 0; i < message.breachWatchRecordRequest.length; ++i) - $root.BreachWatch.BreachWatchRecordRequest.encode(message.breachWatchRecordRequest[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.encryptedData != null && Object.hasOwnProperty.call(message, "encryptedData")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.encryptedData); + $root.BreachWatch.BreachWatchRecordRequest.encode( + message.breachWatchRecordRequest[i], + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); + if (message.encryptedData != null && Object.hasOwnProperty.call(message, 'encryptedData')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.encryptedData); return writer; }; @@ -131594,25 +136261,27 @@ export const BreachWatch = $root.BreachWatch = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ BreachWatchUpdateRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BreachWatch.BreachWatchUpdateRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.BreachWatch.BreachWatchUpdateRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { if (!(message.breachWatchRecordRequest && message.breachWatchRecordRequest.length)) message.breachWatchRecordRequest = []; - message.breachWatchRecordRequest.push($root.BreachWatch.BreachWatchRecordRequest.decode(reader, reader.uint32())); + message.breachWatchRecordRequest.push( + $root.BreachWatch.BreachWatchRecordRequest.decode(reader, reader.uint32()) + ); break; } - case 2: { + case 2: { message.encryptedData = reader.bytes(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -131629,8 +136298,7 @@ export const BreachWatch = $root.BreachWatch = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ BreachWatchUpdateRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -131643,20 +136311,22 @@ export const BreachWatch = $root.BreachWatch = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ BreachWatchUpdateRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.breachWatchRecordRequest != null && message.hasOwnProperty("breachWatchRecordRequest")) { - if (!Array.isArray(message.breachWatchRecordRequest)) - return "breachWatchRecordRequest: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.breachWatchRecordRequest != null && message.hasOwnProperty('breachWatchRecordRequest')) { + if (!Array.isArray(message.breachWatchRecordRequest)) return 'breachWatchRecordRequest: array expected'; for (let i = 0; i < message.breachWatchRecordRequest.length; ++i) { let error = $root.BreachWatch.BreachWatchRecordRequest.verify(message.breachWatchRecordRequest[i]); - if (error) - return "breachWatchRecordRequest." + error; + if (error) return 'breachWatchRecordRequest.' + error; } } - if (message.encryptedData != null && message.hasOwnProperty("encryptedData")) - if (!(message.encryptedData && typeof message.encryptedData.length === "number" || $util.isString(message.encryptedData))) - return "encryptedData: buffer expected"; + if (message.encryptedData != null && message.hasOwnProperty('encryptedData')) + if ( + !( + (message.encryptedData && typeof message.encryptedData.length === 'number') || + $util.isString(message.encryptedData) + ) + ) + return 'encryptedData: buffer expected'; return null; }; @@ -131669,24 +136339,30 @@ export const BreachWatch = $root.BreachWatch = (() => { * @returns {BreachWatch.BreachWatchUpdateRequest} BreachWatchUpdateRequest */ BreachWatchUpdateRequest.fromObject = function fromObject(object) { - if (object instanceof $root.BreachWatch.BreachWatchUpdateRequest) - return object; + if (object instanceof $root.BreachWatch.BreachWatchUpdateRequest) return object; let message = new $root.BreachWatch.BreachWatchUpdateRequest(); if (object.breachWatchRecordRequest) { if (!Array.isArray(object.breachWatchRecordRequest)) - throw TypeError(".BreachWatch.BreachWatchUpdateRequest.breachWatchRecordRequest: array expected"); + throw TypeError('.BreachWatch.BreachWatchUpdateRequest.breachWatchRecordRequest: array expected'); message.breachWatchRecordRequest = []; for (let i = 0; i < object.breachWatchRecordRequest.length; ++i) { - if (typeof object.breachWatchRecordRequest[i] !== "object") - throw TypeError(".BreachWatch.BreachWatchUpdateRequest.breachWatchRecordRequest: object expected"); - message.breachWatchRecordRequest[i] = $root.BreachWatch.BreachWatchRecordRequest.fromObject(object.breachWatchRecordRequest[i]); + if (typeof object.breachWatchRecordRequest[i] !== 'object') + throw TypeError( + '.BreachWatch.BreachWatchUpdateRequest.breachWatchRecordRequest: object expected' + ); + message.breachWatchRecordRequest[i] = $root.BreachWatch.BreachWatchRecordRequest.fromObject( + object.breachWatchRecordRequest[i] + ); } } if (object.encryptedData != null) - if (typeof object.encryptedData === "string") - $util.base64.decode(object.encryptedData, message.encryptedData = $util.newBuffer($util.base64.length(object.encryptedData)), 0); - else if (object.encryptedData.length >= 0) - message.encryptedData = object.encryptedData; + if (typeof object.encryptedData === 'string') + $util.base64.decode( + object.encryptedData, + (message.encryptedData = $util.newBuffer($util.base64.length(object.encryptedData))), + 0 + ); + else if (object.encryptedData.length >= 0) message.encryptedData = object.encryptedData; return message; }; @@ -131700,26 +136376,30 @@ export const BreachWatch = $root.BreachWatch = (() => { * @returns {Object.} Plain object */ BreachWatchUpdateRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.breachWatchRecordRequest = []; + if (options.arrays || options.defaults) object.breachWatchRecordRequest = []; if (options.defaults) - if (options.bytes === String) - object.encryptedData = ""; + if (options.bytes === String) object.encryptedData = ''; else { object.encryptedData = []; - if (options.bytes !== Array) - object.encryptedData = $util.newBuffer(object.encryptedData); + if (options.bytes !== Array) object.encryptedData = $util.newBuffer(object.encryptedData); } if (message.breachWatchRecordRequest && message.breachWatchRecordRequest.length) { object.breachWatchRecordRequest = []; for (let j = 0; j < message.breachWatchRecordRequest.length; ++j) - object.breachWatchRecordRequest[j] = $root.BreachWatch.BreachWatchRecordRequest.toObject(message.breachWatchRecordRequest[j], options); + object.breachWatchRecordRequest[j] = $root.BreachWatch.BreachWatchRecordRequest.toObject( + message.breachWatchRecordRequest[j], + options + ); } - if (message.encryptedData != null && message.hasOwnProperty("encryptedData")) - object.encryptedData = options.bytes === String ? $util.base64.encode(message.encryptedData, 0, message.encryptedData.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedData) : message.encryptedData; + if (message.encryptedData != null && message.hasOwnProperty('encryptedData')) + object.encryptedData = + options.bytes === String + ? $util.base64.encode(message.encryptedData, 0, message.encryptedData.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.encryptedData) + : message.encryptedData; return object; }; @@ -131744,16 +136424,15 @@ export const BreachWatch = $root.BreachWatch = (() => { */ BreachWatchUpdateRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/BreachWatch.BreachWatchUpdateRequest"; + return typeUrlPrefix + '/BreachWatch.BreachWatchUpdateRequest'; }; return BreachWatchUpdateRequest; })(); - BreachWatch.BreachWatchRecordStatus = (function() { - + BreachWatch.BreachWatchRecordStatus = (function () { /** * Properties of a BreachWatchRecordStatus. * @memberof BreachWatch @@ -131774,8 +136453,7 @@ export const BreachWatch = $root.BreachWatch = (() => { function BreachWatchRecordStatus(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -131792,7 +136470,7 @@ export const BreachWatch = $root.BreachWatch = (() => { * @memberof BreachWatch.BreachWatchRecordStatus * @instance */ - BreachWatchRecordStatus.prototype.status = ""; + BreachWatchRecordStatus.prototype.status = ''; /** * BreachWatchRecordStatus reason. @@ -131800,7 +136478,7 @@ export const BreachWatch = $root.BreachWatch = (() => { * @memberof BreachWatch.BreachWatchRecordStatus * @instance */ - BreachWatchRecordStatus.prototype.reason = ""; + BreachWatchRecordStatus.prototype.reason = ''; /** * Creates a new BreachWatchRecordStatus instance using the specified properties. @@ -131824,14 +136502,13 @@ export const BreachWatch = $root.BreachWatch = (() => { * @returns {$protobuf.Writer} Writer */ BreachWatchRecordStatus.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); - if (message.status != null && Object.hasOwnProperty.call(message, "status")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.status); - if (message.reason != null && Object.hasOwnProperty.call(message, "reason")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.reason); + if (!writer) writer = $Writer.create(); + if (message.recordUid != null && Object.hasOwnProperty.call(message, 'recordUid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.recordUid); + if (message.status != null && Object.hasOwnProperty.call(message, 'status')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.status); + if (message.reason != null && Object.hasOwnProperty.call(message, 'reason')) + writer.uint32(/* id 3, wireType 2 =*/ 26).string(message.reason); return writer; }; @@ -131860,27 +136537,27 @@ export const BreachWatch = $root.BreachWatch = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ BreachWatchRecordStatus.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BreachWatch.BreachWatchRecordStatus(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.BreachWatch.BreachWatchRecordStatus(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.recordUid = reader.bytes(); break; } - case 2: { + case 2: { message.status = reader.string(); break; } - case 3: { + case 3: { message.reason = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -131897,8 +136574,7 @@ export const BreachWatch = $root.BreachWatch = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ BreachWatchRecordStatus.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -131911,17 +136587,19 @@ export const BreachWatch = $root.BreachWatch = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ BreachWatchRecordStatus.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) - return "recordUid: buffer expected"; - if (message.status != null && message.hasOwnProperty("status")) - if (!$util.isString(message.status)) - return "status: string expected"; - if (message.reason != null && message.hasOwnProperty("reason")) - if (!$util.isString(message.reason)) - return "reason: string expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.recordUid != null && message.hasOwnProperty('recordUid')) + if ( + !( + (message.recordUid && typeof message.recordUid.length === 'number') || + $util.isString(message.recordUid) + ) + ) + return 'recordUid: buffer expected'; + if (message.status != null && message.hasOwnProperty('status')) + if (!$util.isString(message.status)) return 'status: string expected'; + if (message.reason != null && message.hasOwnProperty('reason')) + if (!$util.isString(message.reason)) return 'reason: string expected'; return null; }; @@ -131934,18 +136612,18 @@ export const BreachWatch = $root.BreachWatch = (() => { * @returns {BreachWatch.BreachWatchRecordStatus} BreachWatchRecordStatus */ BreachWatchRecordStatus.fromObject = function fromObject(object) { - if (object instanceof $root.BreachWatch.BreachWatchRecordStatus) - return object; + if (object instanceof $root.BreachWatch.BreachWatchRecordStatus) return object; let message = new $root.BreachWatch.BreachWatchRecordStatus(); 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.status != null) - message.status = String(object.status); - if (object.reason != null) - message.reason = String(object.reason); + 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.status != null) message.status = String(object.status); + if (object.reason != null) message.reason = String(object.reason); return message; }; @@ -131959,26 +136637,26 @@ export const BreachWatch = $root.BreachWatch = (() => { * @returns {Object.} Plain object */ BreachWatchRecordStatus.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.recordUid = ""; + if (options.bytes === String) object.recordUid = ''; else { object.recordUid = []; - if (options.bytes !== Array) - object.recordUid = $util.newBuffer(object.recordUid); + if (options.bytes !== Array) object.recordUid = $util.newBuffer(object.recordUid); } - object.status = ""; - object.reason = ""; + object.status = ''; + object.reason = ''; } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; - if (message.status != null && message.hasOwnProperty("status")) - object.status = message.status; - if (message.reason != null && message.hasOwnProperty("reason")) - object.reason = message.reason; + if (message.recordUid != null && message.hasOwnProperty('recordUid')) + object.recordUid = + options.bytes === String + ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.recordUid) + : message.recordUid; + if (message.status != null && message.hasOwnProperty('status')) object.status = message.status; + if (message.reason != null && message.hasOwnProperty('reason')) object.reason = message.reason; return object; }; @@ -132003,16 +136681,15 @@ export const BreachWatch = $root.BreachWatch = (() => { */ BreachWatchRecordStatus.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/BreachWatch.BreachWatchRecordStatus"; + return typeUrlPrefix + '/BreachWatch.BreachWatchRecordStatus'; }; return BreachWatchRecordStatus; })(); - BreachWatch.BreachWatchUpdateResponse = (function() { - + BreachWatch.BreachWatchUpdateResponse = (function () { /** * Properties of a BreachWatchUpdateResponse. * @memberof BreachWatch @@ -132032,8 +136709,7 @@ export const BreachWatch = $root.BreachWatch = (() => { this.breachWatchRecordStatus = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -132066,11 +136742,13 @@ export const BreachWatch = $root.BreachWatch = (() => { * @returns {$protobuf.Writer} Writer */ BreachWatchUpdateResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.breachWatchRecordStatus != null && message.breachWatchRecordStatus.length) for (let i = 0; i < message.breachWatchRecordStatus.length; ++i) - $root.BreachWatch.BreachWatchRecordStatus.encode(message.breachWatchRecordStatus[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.BreachWatch.BreachWatchRecordStatus.encode( + message.breachWatchRecordStatus[i], + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); return writer; }; @@ -132099,21 +136777,23 @@ export const BreachWatch = $root.BreachWatch = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ BreachWatchUpdateResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BreachWatch.BreachWatchUpdateResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.BreachWatch.BreachWatchUpdateResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { if (!(message.breachWatchRecordStatus && message.breachWatchRecordStatus.length)) message.breachWatchRecordStatus = []; - message.breachWatchRecordStatus.push($root.BreachWatch.BreachWatchRecordStatus.decode(reader, reader.uint32())); + message.breachWatchRecordStatus.push( + $root.BreachWatch.BreachWatchRecordStatus.decode(reader, reader.uint32()) + ); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -132130,8 +136810,7 @@ export const BreachWatch = $root.BreachWatch = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ BreachWatchUpdateResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -132144,15 +136823,12 @@ export const BreachWatch = $root.BreachWatch = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ BreachWatchUpdateResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.breachWatchRecordStatus != null && message.hasOwnProperty("breachWatchRecordStatus")) { - if (!Array.isArray(message.breachWatchRecordStatus)) - return "breachWatchRecordStatus: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.breachWatchRecordStatus != null && message.hasOwnProperty('breachWatchRecordStatus')) { + if (!Array.isArray(message.breachWatchRecordStatus)) return 'breachWatchRecordStatus: array expected'; for (let i = 0; i < message.breachWatchRecordStatus.length; ++i) { let error = $root.BreachWatch.BreachWatchRecordStatus.verify(message.breachWatchRecordStatus[i]); - if (error) - return "breachWatchRecordStatus." + error; + if (error) return 'breachWatchRecordStatus.' + error; } } return null; @@ -132167,17 +136843,20 @@ export const BreachWatch = $root.BreachWatch = (() => { * @returns {BreachWatch.BreachWatchUpdateResponse} BreachWatchUpdateResponse */ BreachWatchUpdateResponse.fromObject = function fromObject(object) { - if (object instanceof $root.BreachWatch.BreachWatchUpdateResponse) - return object; + if (object instanceof $root.BreachWatch.BreachWatchUpdateResponse) return object; let message = new $root.BreachWatch.BreachWatchUpdateResponse(); if (object.breachWatchRecordStatus) { if (!Array.isArray(object.breachWatchRecordStatus)) - throw TypeError(".BreachWatch.BreachWatchUpdateResponse.breachWatchRecordStatus: array expected"); + throw TypeError('.BreachWatch.BreachWatchUpdateResponse.breachWatchRecordStatus: array expected'); message.breachWatchRecordStatus = []; for (let i = 0; i < object.breachWatchRecordStatus.length; ++i) { - if (typeof object.breachWatchRecordStatus[i] !== "object") - throw TypeError(".BreachWatch.BreachWatchUpdateResponse.breachWatchRecordStatus: object expected"); - message.breachWatchRecordStatus[i] = $root.BreachWatch.BreachWatchRecordStatus.fromObject(object.breachWatchRecordStatus[i]); + if (typeof object.breachWatchRecordStatus[i] !== 'object') + throw TypeError( + '.BreachWatch.BreachWatchUpdateResponse.breachWatchRecordStatus: object expected' + ); + message.breachWatchRecordStatus[i] = $root.BreachWatch.BreachWatchRecordStatus.fromObject( + object.breachWatchRecordStatus[i] + ); } } return message; @@ -132193,15 +136872,16 @@ export const BreachWatch = $root.BreachWatch = (() => { * @returns {Object.} Plain object */ BreachWatchUpdateResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.breachWatchRecordStatus = []; + if (options.arrays || options.defaults) object.breachWatchRecordStatus = []; if (message.breachWatchRecordStatus && message.breachWatchRecordStatus.length) { object.breachWatchRecordStatus = []; for (let j = 0; j < message.breachWatchRecordStatus.length; ++j) - object.breachWatchRecordStatus[j] = $root.BreachWatch.BreachWatchRecordStatus.toObject(message.breachWatchRecordStatus[j], options); + object.breachWatchRecordStatus[j] = $root.BreachWatch.BreachWatchRecordStatus.toObject( + message.breachWatchRecordStatus[j], + options + ); } return object; }; @@ -132227,16 +136907,15 @@ export const BreachWatch = $root.BreachWatch = (() => { */ BreachWatchUpdateResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/BreachWatch.BreachWatchUpdateResponse"; + return typeUrlPrefix + '/BreachWatch.BreachWatchUpdateResponse'; }; return BreachWatchUpdateResponse; })(); - BreachWatch.BreachWatchTokenRequest = (function() { - + BreachWatch.BreachWatchTokenRequest = (function () { /** * Properties of a BreachWatchTokenRequest. * @memberof BreachWatch @@ -132255,8 +136934,7 @@ export const BreachWatch = $root.BreachWatch = (() => { function BreachWatchTokenRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -132289,10 +136967,9 @@ export const BreachWatch = $root.BreachWatch = (() => { * @returns {$protobuf.Writer} Writer */ BreachWatchTokenRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.breachWatchToken != null && Object.hasOwnProperty.call(message, "breachWatchToken")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.breachWatchToken); + if (!writer) writer = $Writer.create(); + if (message.breachWatchToken != null && Object.hasOwnProperty.call(message, 'breachWatchToken')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.breachWatchToken); return writer; }; @@ -132321,19 +136998,19 @@ export const BreachWatch = $root.BreachWatch = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ BreachWatchTokenRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BreachWatch.BreachWatchTokenRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.BreachWatch.BreachWatchTokenRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.breachWatchToken = reader.bytes(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -132350,8 +137027,7 @@ export const BreachWatch = $root.BreachWatch = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ BreachWatchTokenRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -132364,11 +137040,15 @@ export const BreachWatch = $root.BreachWatch = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ BreachWatchTokenRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.breachWatchToken != null && message.hasOwnProperty("breachWatchToken")) - if (!(message.breachWatchToken && typeof message.breachWatchToken.length === "number" || $util.isString(message.breachWatchToken))) - return "breachWatchToken: buffer expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.breachWatchToken != null && message.hasOwnProperty('breachWatchToken')) + if ( + !( + (message.breachWatchToken && typeof message.breachWatchToken.length === 'number') || + $util.isString(message.breachWatchToken) + ) + ) + return 'breachWatchToken: buffer expected'; return null; }; @@ -132381,14 +137061,16 @@ export const BreachWatch = $root.BreachWatch = (() => { * @returns {BreachWatch.BreachWatchTokenRequest} BreachWatchTokenRequest */ BreachWatchTokenRequest.fromObject = function fromObject(object) { - if (object instanceof $root.BreachWatch.BreachWatchTokenRequest) - return object; + if (object instanceof $root.BreachWatch.BreachWatchTokenRequest) return object; let message = new $root.BreachWatch.BreachWatchTokenRequest(); if (object.breachWatchToken != null) - if (typeof object.breachWatchToken === "string") - $util.base64.decode(object.breachWatchToken, message.breachWatchToken = $util.newBuffer($util.base64.length(object.breachWatchToken)), 0); - else if (object.breachWatchToken.length >= 0) - message.breachWatchToken = object.breachWatchToken; + if (typeof object.breachWatchToken === 'string') + $util.base64.decode( + object.breachWatchToken, + (message.breachWatchToken = $util.newBuffer($util.base64.length(object.breachWatchToken))), + 0 + ); + else if (object.breachWatchToken.length >= 0) message.breachWatchToken = object.breachWatchToken; return message; }; @@ -132402,19 +137084,21 @@ export const BreachWatch = $root.BreachWatch = (() => { * @returns {Object.} Plain object */ BreachWatchTokenRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) - if (options.bytes === String) - object.breachWatchToken = ""; + if (options.bytes === String) object.breachWatchToken = ''; else { object.breachWatchToken = []; - if (options.bytes !== Array) - object.breachWatchToken = $util.newBuffer(object.breachWatchToken); + if (options.bytes !== Array) object.breachWatchToken = $util.newBuffer(object.breachWatchToken); } - if (message.breachWatchToken != null && message.hasOwnProperty("breachWatchToken")) - object.breachWatchToken = options.bytes === String ? $util.base64.encode(message.breachWatchToken, 0, message.breachWatchToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.breachWatchToken) : message.breachWatchToken; + if (message.breachWatchToken != null && message.hasOwnProperty('breachWatchToken')) + object.breachWatchToken = + options.bytes === String + ? $util.base64.encode(message.breachWatchToken, 0, message.breachWatchToken.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.breachWatchToken) + : message.breachWatchToken; return object; }; @@ -132439,16 +137123,15 @@ export const BreachWatch = $root.BreachWatch = (() => { */ BreachWatchTokenRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/BreachWatch.BreachWatchTokenRequest"; + return typeUrlPrefix + '/BreachWatch.BreachWatchTokenRequest'; }; return BreachWatchTokenRequest; })(); - BreachWatch.BreachWatchTokenResponse = (function() { - + BreachWatch.BreachWatchTokenResponse = (function () { /** * Properties of a BreachWatchTokenResponse. * @memberof BreachWatch @@ -132468,8 +137151,7 @@ export const BreachWatch = $root.BreachWatch = (() => { function BreachWatchTokenResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -132510,12 +137192,11 @@ export const BreachWatch = $root.BreachWatch = (() => { * @returns {$protobuf.Writer} Writer */ BreachWatchTokenResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.breachWatchToken != null && Object.hasOwnProperty.call(message, "breachWatchToken")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.breachWatchToken); - if (message.clientEncrypted != null && Object.hasOwnProperty.call(message, "clientEncrypted")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.clientEncrypted); + if (!writer) writer = $Writer.create(); + if (message.breachWatchToken != null && Object.hasOwnProperty.call(message, 'breachWatchToken')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.breachWatchToken); + if (message.clientEncrypted != null && Object.hasOwnProperty.call(message, 'clientEncrypted')) + writer.uint32(/* id 2, wireType 0 =*/ 16).bool(message.clientEncrypted); return writer; }; @@ -132544,23 +137225,23 @@ export const BreachWatch = $root.BreachWatch = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ BreachWatchTokenResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BreachWatch.BreachWatchTokenResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.BreachWatch.BreachWatchTokenResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.breachWatchToken = reader.bytes(); break; } - case 2: { + case 2: { message.clientEncrypted = reader.bool(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -132577,8 +137258,7 @@ export const BreachWatch = $root.BreachWatch = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ BreachWatchTokenResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -132591,14 +137271,17 @@ export const BreachWatch = $root.BreachWatch = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ BreachWatchTokenResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.breachWatchToken != null && message.hasOwnProperty("breachWatchToken")) - if (!(message.breachWatchToken && typeof message.breachWatchToken.length === "number" || $util.isString(message.breachWatchToken))) - return "breachWatchToken: buffer expected"; - if (message.clientEncrypted != null && message.hasOwnProperty("clientEncrypted")) - if (typeof message.clientEncrypted !== "boolean") - return "clientEncrypted: boolean expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.breachWatchToken != null && message.hasOwnProperty('breachWatchToken')) + if ( + !( + (message.breachWatchToken && typeof message.breachWatchToken.length === 'number') || + $util.isString(message.breachWatchToken) + ) + ) + return 'breachWatchToken: buffer expected'; + if (message.clientEncrypted != null && message.hasOwnProperty('clientEncrypted')) + if (typeof message.clientEncrypted !== 'boolean') return 'clientEncrypted: boolean expected'; return null; }; @@ -132611,16 +137294,17 @@ export const BreachWatch = $root.BreachWatch = (() => { * @returns {BreachWatch.BreachWatchTokenResponse} BreachWatchTokenResponse */ BreachWatchTokenResponse.fromObject = function fromObject(object) { - if (object instanceof $root.BreachWatch.BreachWatchTokenResponse) - return object; + if (object instanceof $root.BreachWatch.BreachWatchTokenResponse) return object; let message = new $root.BreachWatch.BreachWatchTokenResponse(); if (object.breachWatchToken != null) - if (typeof object.breachWatchToken === "string") - $util.base64.decode(object.breachWatchToken, message.breachWatchToken = $util.newBuffer($util.base64.length(object.breachWatchToken)), 0); - else if (object.breachWatchToken.length >= 0) - message.breachWatchToken = object.breachWatchToken; - if (object.clientEncrypted != null) - message.clientEncrypted = Boolean(object.clientEncrypted); + if (typeof object.breachWatchToken === 'string') + $util.base64.decode( + object.breachWatchToken, + (message.breachWatchToken = $util.newBuffer($util.base64.length(object.breachWatchToken))), + 0 + ); + else if (object.breachWatchToken.length >= 0) message.breachWatchToken = object.breachWatchToken; + if (object.clientEncrypted != null) message.clientEncrypted = Boolean(object.clientEncrypted); return message; }; @@ -132634,22 +137318,24 @@ export const BreachWatch = $root.BreachWatch = (() => { * @returns {Object.} Plain object */ BreachWatchTokenResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.breachWatchToken = ""; + if (options.bytes === String) object.breachWatchToken = ''; else { object.breachWatchToken = []; - if (options.bytes !== Array) - object.breachWatchToken = $util.newBuffer(object.breachWatchToken); + if (options.bytes !== Array) object.breachWatchToken = $util.newBuffer(object.breachWatchToken); } object.clientEncrypted = false; } - if (message.breachWatchToken != null && message.hasOwnProperty("breachWatchToken")) - object.breachWatchToken = options.bytes === String ? $util.base64.encode(message.breachWatchToken, 0, message.breachWatchToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.breachWatchToken) : message.breachWatchToken; - if (message.clientEncrypted != null && message.hasOwnProperty("clientEncrypted")) + if (message.breachWatchToken != null && message.hasOwnProperty('breachWatchToken')) + object.breachWatchToken = + options.bytes === String + ? $util.base64.encode(message.breachWatchToken, 0, message.breachWatchToken.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.breachWatchToken) + : message.breachWatchToken; + if (message.clientEncrypted != null && message.hasOwnProperty('clientEncrypted')) object.clientEncrypted = message.clientEncrypted; return object; }; @@ -132675,16 +137361,15 @@ export const BreachWatch = $root.BreachWatch = (() => { */ BreachWatchTokenResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/BreachWatch.BreachWatchTokenResponse"; + return typeUrlPrefix + '/BreachWatch.BreachWatchTokenResponse'; }; return BreachWatchTokenResponse; })(); - BreachWatch.AnonymizedTokenResponse = (function() { - + BreachWatch.AnonymizedTokenResponse = (function () { /** * Properties of an AnonymizedTokenResponse. * @memberof BreachWatch @@ -132705,8 +137390,7 @@ export const BreachWatch = $root.BreachWatch = (() => { function AnonymizedTokenResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -132755,14 +137439,13 @@ export const BreachWatch = $root.BreachWatch = (() => { * @returns {$protobuf.Writer} Writer */ AnonymizedTokenResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.domainToken != null && Object.hasOwnProperty.call(message, "domainToken")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.domainToken); - if (message.emailToken != null && Object.hasOwnProperty.call(message, "emailToken")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.emailToken); - if (message.passwordToken != null && Object.hasOwnProperty.call(message, "passwordToken")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.passwordToken); + if (!writer) writer = $Writer.create(); + if (message.domainToken != null && Object.hasOwnProperty.call(message, 'domainToken')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.domainToken); + if (message.emailToken != null && Object.hasOwnProperty.call(message, 'emailToken')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.emailToken); + if (message.passwordToken != null && Object.hasOwnProperty.call(message, 'passwordToken')) + writer.uint32(/* id 3, wireType 2 =*/ 26).bytes(message.passwordToken); return writer; }; @@ -132791,27 +137474,27 @@ export const BreachWatch = $root.BreachWatch = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ AnonymizedTokenResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BreachWatch.AnonymizedTokenResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.BreachWatch.AnonymizedTokenResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.domainToken = reader.bytes(); break; } - case 2: { + case 2: { message.emailToken = reader.bytes(); break; } - case 3: { + case 3: { message.passwordToken = reader.bytes(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -132828,8 +137511,7 @@ export const BreachWatch = $root.BreachWatch = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ AnonymizedTokenResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -132842,17 +137524,31 @@ export const BreachWatch = $root.BreachWatch = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ AnonymizedTokenResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.domainToken != null && message.hasOwnProperty("domainToken")) - if (!(message.domainToken && typeof message.domainToken.length === "number" || $util.isString(message.domainToken))) - return "domainToken: buffer expected"; - if (message.emailToken != null && message.hasOwnProperty("emailToken")) - if (!(message.emailToken && typeof message.emailToken.length === "number" || $util.isString(message.emailToken))) - return "emailToken: buffer expected"; - if (message.passwordToken != null && message.hasOwnProperty("passwordToken")) - if (!(message.passwordToken && typeof message.passwordToken.length === "number" || $util.isString(message.passwordToken))) - return "passwordToken: buffer expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.domainToken != null && message.hasOwnProperty('domainToken')) + if ( + !( + (message.domainToken && typeof message.domainToken.length === 'number') || + $util.isString(message.domainToken) + ) + ) + return 'domainToken: buffer expected'; + if (message.emailToken != null && message.hasOwnProperty('emailToken')) + if ( + !( + (message.emailToken && typeof message.emailToken.length === 'number') || + $util.isString(message.emailToken) + ) + ) + return 'emailToken: buffer expected'; + if (message.passwordToken != null && message.hasOwnProperty('passwordToken')) + if ( + !( + (message.passwordToken && typeof message.passwordToken.length === 'number') || + $util.isString(message.passwordToken) + ) + ) + return 'passwordToken: buffer expected'; return null; }; @@ -132865,24 +137561,32 @@ export const BreachWatch = $root.BreachWatch = (() => { * @returns {BreachWatch.AnonymizedTokenResponse} AnonymizedTokenResponse */ AnonymizedTokenResponse.fromObject = function fromObject(object) { - if (object instanceof $root.BreachWatch.AnonymizedTokenResponse) - return object; + if (object instanceof $root.BreachWatch.AnonymizedTokenResponse) return object; let message = new $root.BreachWatch.AnonymizedTokenResponse(); if (object.domainToken != null) - if (typeof object.domainToken === "string") - $util.base64.decode(object.domainToken, message.domainToken = $util.newBuffer($util.base64.length(object.domainToken)), 0); - else if (object.domainToken.length >= 0) - message.domainToken = object.domainToken; + if (typeof object.domainToken === 'string') + $util.base64.decode( + object.domainToken, + (message.domainToken = $util.newBuffer($util.base64.length(object.domainToken))), + 0 + ); + else if (object.domainToken.length >= 0) message.domainToken = object.domainToken; if (object.emailToken != null) - if (typeof object.emailToken === "string") - $util.base64.decode(object.emailToken, message.emailToken = $util.newBuffer($util.base64.length(object.emailToken)), 0); - else if (object.emailToken.length >= 0) - message.emailToken = object.emailToken; + if (typeof object.emailToken === 'string') + $util.base64.decode( + object.emailToken, + (message.emailToken = $util.newBuffer($util.base64.length(object.emailToken))), + 0 + ); + else if (object.emailToken.length >= 0) message.emailToken = object.emailToken; if (object.passwordToken != null) - if (typeof object.passwordToken === "string") - $util.base64.decode(object.passwordToken, message.passwordToken = $util.newBuffer($util.base64.length(object.passwordToken)), 0); - else if (object.passwordToken.length >= 0) - message.passwordToken = object.passwordToken; + if (typeof object.passwordToken === 'string') + $util.base64.decode( + object.passwordToken, + (message.passwordToken = $util.newBuffer($util.base64.length(object.passwordToken))), + 0 + ); + else if (object.passwordToken.length >= 0) message.passwordToken = object.passwordToken; return message; }; @@ -132896,38 +137600,46 @@ export const BreachWatch = $root.BreachWatch = (() => { * @returns {Object.} Plain object */ AnonymizedTokenResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.domainToken = ""; + if (options.bytes === String) object.domainToken = ''; else { object.domainToken = []; - if (options.bytes !== Array) - object.domainToken = $util.newBuffer(object.domainToken); + if (options.bytes !== Array) object.domainToken = $util.newBuffer(object.domainToken); } - if (options.bytes === String) - object.emailToken = ""; + if (options.bytes === String) object.emailToken = ''; else { object.emailToken = []; - if (options.bytes !== Array) - object.emailToken = $util.newBuffer(object.emailToken); + if (options.bytes !== Array) object.emailToken = $util.newBuffer(object.emailToken); } - if (options.bytes === String) - object.passwordToken = ""; + if (options.bytes === String) object.passwordToken = ''; else { object.passwordToken = []; - if (options.bytes !== Array) - object.passwordToken = $util.newBuffer(object.passwordToken); - } - } - if (message.domainToken != null && message.hasOwnProperty("domainToken")) - object.domainToken = options.bytes === String ? $util.base64.encode(message.domainToken, 0, message.domainToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.domainToken) : message.domainToken; - if (message.emailToken != null && message.hasOwnProperty("emailToken")) - object.emailToken = options.bytes === String ? $util.base64.encode(message.emailToken, 0, message.emailToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.emailToken) : message.emailToken; - if (message.passwordToken != null && message.hasOwnProperty("passwordToken")) - object.passwordToken = options.bytes === String ? $util.base64.encode(message.passwordToken, 0, message.passwordToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.passwordToken) : message.passwordToken; + if (options.bytes !== Array) object.passwordToken = $util.newBuffer(object.passwordToken); + } + } + if (message.domainToken != null && message.hasOwnProperty('domainToken')) + object.domainToken = + options.bytes === String + ? $util.base64.encode(message.domainToken, 0, message.domainToken.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.domainToken) + : message.domainToken; + if (message.emailToken != null && message.hasOwnProperty('emailToken')) + object.emailToken = + options.bytes === String + ? $util.base64.encode(message.emailToken, 0, message.emailToken.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.emailToken) + : message.emailToken; + if (message.passwordToken != null && message.hasOwnProperty('passwordToken')) + object.passwordToken = + options.bytes === String + ? $util.base64.encode(message.passwordToken, 0, message.passwordToken.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.passwordToken) + : message.passwordToken; return object; }; @@ -132952,16 +137664,15 @@ export const BreachWatch = $root.BreachWatch = (() => { */ AnonymizedTokenResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/BreachWatch.AnonymizedTokenResponse"; + return typeUrlPrefix + '/BreachWatch.AnonymizedTokenResponse'; }; return AnonymizedTokenResponse; })(); - BreachWatch.HashCheck = (function() { - + BreachWatch.HashCheck = (function () { /** * Properties of a HashCheck. * @memberof BreachWatch @@ -132981,8 +137692,7 @@ export const BreachWatch = $root.BreachWatch = (() => { function HashCheck(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -133023,12 +137733,11 @@ export const BreachWatch = $root.BreachWatch = (() => { * @returns {$protobuf.Writer} Writer */ HashCheck.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.hash1 != null && Object.hasOwnProperty.call(message, "hash1")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.hash1); - if (message.euid != null && Object.hasOwnProperty.call(message, "euid")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.euid); + if (!writer) writer = $Writer.create(); + if (message.hash1 != null && Object.hasOwnProperty.call(message, 'hash1')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.hash1); + if (message.euid != null && Object.hasOwnProperty.call(message, 'euid')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.euid); return writer; }; @@ -133057,23 +137766,23 @@ export const BreachWatch = $root.BreachWatch = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ HashCheck.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BreachWatch.HashCheck(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.BreachWatch.HashCheck(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.hash1 = reader.bytes(); break; } - case 2: { + case 2: { message.euid = reader.bytes(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -133090,8 +137799,7 @@ export const BreachWatch = $root.BreachWatch = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ HashCheck.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -133104,14 +137812,13 @@ export const BreachWatch = $root.BreachWatch = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ HashCheck.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.hash1 != null && message.hasOwnProperty("hash1")) - if (!(message.hash1 && typeof message.hash1.length === "number" || $util.isString(message.hash1))) - return "hash1: buffer expected"; - if (message.euid != null && message.hasOwnProperty("euid")) - if (!(message.euid && typeof message.euid.length === "number" || $util.isString(message.euid))) - return "euid: buffer expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.hash1 != null && message.hasOwnProperty('hash1')) + if (!((message.hash1 && typeof message.hash1.length === 'number') || $util.isString(message.hash1))) + return 'hash1: buffer expected'; + if (message.euid != null && message.hasOwnProperty('euid')) + if (!((message.euid && typeof message.euid.length === 'number') || $util.isString(message.euid))) + return 'euid: buffer expected'; return null; }; @@ -133124,19 +137831,24 @@ export const BreachWatch = $root.BreachWatch = (() => { * @returns {BreachWatch.HashCheck} HashCheck */ HashCheck.fromObject = function fromObject(object) { - if (object instanceof $root.BreachWatch.HashCheck) - return object; + if (object instanceof $root.BreachWatch.HashCheck) return object; let message = new $root.BreachWatch.HashCheck(); if (object.hash1 != null) - if (typeof object.hash1 === "string") - $util.base64.decode(object.hash1, message.hash1 = $util.newBuffer($util.base64.length(object.hash1)), 0); - else if (object.hash1.length >= 0) - message.hash1 = object.hash1; + if (typeof object.hash1 === 'string') + $util.base64.decode( + object.hash1, + (message.hash1 = $util.newBuffer($util.base64.length(object.hash1))), + 0 + ); + else if (object.hash1.length >= 0) message.hash1 = object.hash1; if (object.euid != null) - if (typeof object.euid === "string") - $util.base64.decode(object.euid, message.euid = $util.newBuffer($util.base64.length(object.euid)), 0); - else if (object.euid.length >= 0) - message.euid = object.euid; + if (typeof object.euid === 'string') + $util.base64.decode( + object.euid, + (message.euid = $util.newBuffer($util.base64.length(object.euid))), + 0 + ); + else if (object.euid.length >= 0) message.euid = object.euid; return message; }; @@ -133150,29 +137862,34 @@ export const BreachWatch = $root.BreachWatch = (() => { * @returns {Object.} Plain object */ HashCheck.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.hash1 = ""; + if (options.bytes === String) object.hash1 = ''; else { object.hash1 = []; - if (options.bytes !== Array) - object.hash1 = $util.newBuffer(object.hash1); + if (options.bytes !== Array) object.hash1 = $util.newBuffer(object.hash1); } - if (options.bytes === String) - object.euid = ""; + if (options.bytes === String) object.euid = ''; else { object.euid = []; - if (options.bytes !== Array) - object.euid = $util.newBuffer(object.euid); + if (options.bytes !== Array) object.euid = $util.newBuffer(object.euid); } } - if (message.hash1 != null && message.hasOwnProperty("hash1")) - object.hash1 = options.bytes === String ? $util.base64.encode(message.hash1, 0, message.hash1.length) : options.bytes === Array ? Array.prototype.slice.call(message.hash1) : message.hash1; - if (message.euid != null && message.hasOwnProperty("euid")) - object.euid = options.bytes === String ? $util.base64.encode(message.euid, 0, message.euid.length) : options.bytes === Array ? Array.prototype.slice.call(message.euid) : message.euid; + if (message.hash1 != null && message.hasOwnProperty('hash1')) + object.hash1 = + options.bytes === String + ? $util.base64.encode(message.hash1, 0, message.hash1.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.hash1) + : message.hash1; + if (message.euid != null && message.hasOwnProperty('euid')) + object.euid = + options.bytes === String + ? $util.base64.encode(message.euid, 0, message.euid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.euid) + : message.euid; return object; }; @@ -133197,16 +137914,15 @@ export const BreachWatch = $root.BreachWatch = (() => { */ HashCheck.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/BreachWatch.HashCheck"; + return typeUrlPrefix + '/BreachWatch.HashCheck'; }; return HashCheck; })(); - BreachWatch.BreachWatchStatusRequest = (function() { - + BreachWatch.BreachWatchStatusRequest = (function () { /** * Properties of a BreachWatchStatusRequest. * @memberof BreachWatch @@ -133229,8 +137945,7 @@ export const BreachWatch = $root.BreachWatch = (() => { this.removedEuid = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -133279,16 +137994,18 @@ export const BreachWatch = $root.BreachWatch = (() => { * @returns {$protobuf.Writer} Writer */ BreachWatchStatusRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.anonymizedToken != null && Object.hasOwnProperty.call(message, "anonymizedToken")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.anonymizedToken); + if (!writer) writer = $Writer.create(); + if (message.anonymizedToken != null && Object.hasOwnProperty.call(message, 'anonymizedToken')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.anonymizedToken); if (message.hashCheck != null && message.hashCheck.length) for (let i = 0; i < message.hashCheck.length; ++i) - $root.BreachWatch.HashCheck.encode(message.hashCheck[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + $root.BreachWatch.HashCheck.encode( + message.hashCheck[i], + writer.uint32(/* id 2, wireType 2 =*/ 18).fork() + ).ldelim(); if (message.removedEuid != null && message.removedEuid.length) for (let i = 0; i < message.removedEuid.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.removedEuid[i]); + writer.uint32(/* id 3, wireType 2 =*/ 26).bytes(message.removedEuid[i]); return writer; }; @@ -133317,31 +138034,29 @@ export const BreachWatch = $root.BreachWatch = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ BreachWatchStatusRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BreachWatch.BreachWatchStatusRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.BreachWatch.BreachWatchStatusRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.anonymizedToken = reader.bytes(); break; } - case 2: { - if (!(message.hashCheck && message.hashCheck.length)) - message.hashCheck = []; + case 2: { + if (!(message.hashCheck && message.hashCheck.length)) message.hashCheck = []; message.hashCheck.push($root.BreachWatch.HashCheck.decode(reader, reader.uint32())); break; } - case 3: { - if (!(message.removedEuid && message.removedEuid.length)) - message.removedEuid = []; + case 3: { + if (!(message.removedEuid && message.removedEuid.length)) message.removedEuid = []; message.removedEuid.push(reader.bytes()); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -133358,8 +138073,7 @@ export const BreachWatch = $root.BreachWatch = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ BreachWatchStatusRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -133372,26 +138086,32 @@ export const BreachWatch = $root.BreachWatch = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ BreachWatchStatusRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.anonymizedToken != null && message.hasOwnProperty("anonymizedToken")) - if (!(message.anonymizedToken && typeof message.anonymizedToken.length === "number" || $util.isString(message.anonymizedToken))) - return "anonymizedToken: buffer expected"; - if (message.hashCheck != null && message.hasOwnProperty("hashCheck")) { - if (!Array.isArray(message.hashCheck)) - return "hashCheck: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.anonymizedToken != null && message.hasOwnProperty('anonymizedToken')) + if ( + !( + (message.anonymizedToken && typeof message.anonymizedToken.length === 'number') || + $util.isString(message.anonymizedToken) + ) + ) + return 'anonymizedToken: buffer expected'; + if (message.hashCheck != null && message.hasOwnProperty('hashCheck')) { + if (!Array.isArray(message.hashCheck)) return 'hashCheck: array expected'; for (let i = 0; i < message.hashCheck.length; ++i) { let error = $root.BreachWatch.HashCheck.verify(message.hashCheck[i]); - if (error) - return "hashCheck." + error; + if (error) return 'hashCheck.' + error; } } - if (message.removedEuid != null && message.hasOwnProperty("removedEuid")) { - if (!Array.isArray(message.removedEuid)) - return "removedEuid: array expected"; + if (message.removedEuid != null && message.hasOwnProperty('removedEuid')) { + if (!Array.isArray(message.removedEuid)) return 'removedEuid: array expected'; for (let i = 0; i < message.removedEuid.length; ++i) - if (!(message.removedEuid[i] && typeof message.removedEuid[i].length === "number" || $util.isString(message.removedEuid[i]))) - return "removedEuid: buffer[] expected"; + if ( + !( + (message.removedEuid[i] && typeof message.removedEuid[i].length === 'number') || + $util.isString(message.removedEuid[i]) + ) + ) + return 'removedEuid: buffer[] expected'; } return null; }; @@ -133405,33 +138125,38 @@ export const BreachWatch = $root.BreachWatch = (() => { * @returns {BreachWatch.BreachWatchStatusRequest} BreachWatchStatusRequest */ BreachWatchStatusRequest.fromObject = function fromObject(object) { - if (object instanceof $root.BreachWatch.BreachWatchStatusRequest) - return object; + if (object instanceof $root.BreachWatch.BreachWatchStatusRequest) return object; let message = new $root.BreachWatch.BreachWatchStatusRequest(); if (object.anonymizedToken != null) - if (typeof object.anonymizedToken === "string") - $util.base64.decode(object.anonymizedToken, message.anonymizedToken = $util.newBuffer($util.base64.length(object.anonymizedToken)), 0); - else if (object.anonymizedToken.length >= 0) - message.anonymizedToken = object.anonymizedToken; + if (typeof object.anonymizedToken === 'string') + $util.base64.decode( + object.anonymizedToken, + (message.anonymizedToken = $util.newBuffer($util.base64.length(object.anonymizedToken))), + 0 + ); + else if (object.anonymizedToken.length >= 0) message.anonymizedToken = object.anonymizedToken; if (object.hashCheck) { if (!Array.isArray(object.hashCheck)) - throw TypeError(".BreachWatch.BreachWatchStatusRequest.hashCheck: array expected"); + throw TypeError('.BreachWatch.BreachWatchStatusRequest.hashCheck: array expected'); message.hashCheck = []; for (let i = 0; i < object.hashCheck.length; ++i) { - if (typeof object.hashCheck[i] !== "object") - throw TypeError(".BreachWatch.BreachWatchStatusRequest.hashCheck: object expected"); + if (typeof object.hashCheck[i] !== 'object') + throw TypeError('.BreachWatch.BreachWatchStatusRequest.hashCheck: object expected'); message.hashCheck[i] = $root.BreachWatch.HashCheck.fromObject(object.hashCheck[i]); } } if (object.removedEuid) { if (!Array.isArray(object.removedEuid)) - throw TypeError(".BreachWatch.BreachWatchStatusRequest.removedEuid: array expected"); + throw TypeError('.BreachWatch.BreachWatchStatusRequest.removedEuid: array expected'); message.removedEuid = []; for (let i = 0; i < object.removedEuid.length; ++i) - if (typeof object.removedEuid[i] === "string") - $util.base64.decode(object.removedEuid[i], message.removedEuid[i] = $util.newBuffer($util.base64.length(object.removedEuid[i])), 0); - else if (object.removedEuid[i].length >= 0) - message.removedEuid[i] = object.removedEuid[i]; + if (typeof object.removedEuid[i] === 'string') + $util.base64.decode( + object.removedEuid[i], + (message.removedEuid[i] = $util.newBuffer($util.base64.length(object.removedEuid[i]))), + 0 + ); + else if (object.removedEuid[i].length >= 0) message.removedEuid[i] = object.removedEuid[i]; } return message; }; @@ -133446,23 +138171,25 @@ export const BreachWatch = $root.BreachWatch = (() => { * @returns {Object.} Plain object */ BreachWatchStatusRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.arrays || options.defaults) { object.hashCheck = []; object.removedEuid = []; } if (options.defaults) - if (options.bytes === String) - object.anonymizedToken = ""; + if (options.bytes === String) object.anonymizedToken = ''; else { object.anonymizedToken = []; - if (options.bytes !== Array) - object.anonymizedToken = $util.newBuffer(object.anonymizedToken); - } - if (message.anonymizedToken != null && message.hasOwnProperty("anonymizedToken")) - object.anonymizedToken = options.bytes === String ? $util.base64.encode(message.anonymizedToken, 0, message.anonymizedToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.anonymizedToken) : message.anonymizedToken; + if (options.bytes !== Array) object.anonymizedToken = $util.newBuffer(object.anonymizedToken); + } + if (message.anonymizedToken != null && message.hasOwnProperty('anonymizedToken')) + object.anonymizedToken = + options.bytes === String + ? $util.base64.encode(message.anonymizedToken, 0, message.anonymizedToken.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.anonymizedToken) + : message.anonymizedToken; if (message.hashCheck && message.hashCheck.length) { object.hashCheck = []; for (let j = 0; j < message.hashCheck.length; ++j) @@ -133471,7 +138198,12 @@ export const BreachWatch = $root.BreachWatch = (() => { if (message.removedEuid && message.removedEuid.length) { object.removedEuid = []; for (let j = 0; j < message.removedEuid.length; ++j) - object.removedEuid[j] = options.bytes === String ? $util.base64.encode(message.removedEuid[j], 0, message.removedEuid[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.removedEuid[j]) : message.removedEuid[j]; + object.removedEuid[j] = + options.bytes === String + ? $util.base64.encode(message.removedEuid[j], 0, message.removedEuid[j].length) + : options.bytes === Array + ? Array.prototype.slice.call(message.removedEuid[j]) + : message.removedEuid[j]; } return object; }; @@ -133497,16 +138229,15 @@ export const BreachWatch = $root.BreachWatch = (() => { */ BreachWatchStatusRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/BreachWatch.BreachWatchStatusRequest"; + return typeUrlPrefix + '/BreachWatch.BreachWatchStatusRequest'; }; return BreachWatchStatusRequest; })(); - BreachWatch.HashStatus = (function() { - + BreachWatch.HashStatus = (function () { /** * Properties of a HashStatus. * @memberof BreachWatch @@ -133527,8 +138258,7 @@ export const BreachWatch = $root.BreachWatch = (() => { function HashStatus(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -133577,14 +138307,13 @@ export const BreachWatch = $root.BreachWatch = (() => { * @returns {$protobuf.Writer} Writer */ HashStatus.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.hash1 != null && Object.hasOwnProperty.call(message, "hash1")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.hash1); - if (message.euid != null && Object.hasOwnProperty.call(message, "euid")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.euid); - if (message.breachDetected != null && Object.hasOwnProperty.call(message, "breachDetected")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.breachDetected); + if (!writer) writer = $Writer.create(); + if (message.hash1 != null && Object.hasOwnProperty.call(message, 'hash1')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.hash1); + if (message.euid != null && Object.hasOwnProperty.call(message, 'euid')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.euid); + if (message.breachDetected != null && Object.hasOwnProperty.call(message, 'breachDetected')) + writer.uint32(/* id 3, wireType 0 =*/ 24).bool(message.breachDetected); return writer; }; @@ -133613,27 +138342,27 @@ export const BreachWatch = $root.BreachWatch = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ HashStatus.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BreachWatch.HashStatus(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.BreachWatch.HashStatus(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.hash1 = reader.bytes(); break; } - case 2: { + case 2: { message.euid = reader.bytes(); break; } - case 3: { + case 3: { message.breachDetected = reader.bool(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -133650,8 +138379,7 @@ export const BreachWatch = $root.BreachWatch = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ HashStatus.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -133664,17 +138392,15 @@ export const BreachWatch = $root.BreachWatch = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ HashStatus.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.hash1 != null && message.hasOwnProperty("hash1")) - if (!(message.hash1 && typeof message.hash1.length === "number" || $util.isString(message.hash1))) - return "hash1: buffer expected"; - if (message.euid != null && message.hasOwnProperty("euid")) - if (!(message.euid && typeof message.euid.length === "number" || $util.isString(message.euid))) - return "euid: buffer expected"; - if (message.breachDetected != null && message.hasOwnProperty("breachDetected")) - if (typeof message.breachDetected !== "boolean") - return "breachDetected: boolean expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.hash1 != null && message.hasOwnProperty('hash1')) + if (!((message.hash1 && typeof message.hash1.length === 'number') || $util.isString(message.hash1))) + return 'hash1: buffer expected'; + if (message.euid != null && message.hasOwnProperty('euid')) + if (!((message.euid && typeof message.euid.length === 'number') || $util.isString(message.euid))) + return 'euid: buffer expected'; + if (message.breachDetected != null && message.hasOwnProperty('breachDetected')) + if (typeof message.breachDetected !== 'boolean') return 'breachDetected: boolean expected'; return null; }; @@ -133687,21 +138413,25 @@ export const BreachWatch = $root.BreachWatch = (() => { * @returns {BreachWatch.HashStatus} HashStatus */ HashStatus.fromObject = function fromObject(object) { - if (object instanceof $root.BreachWatch.HashStatus) - return object; + if (object instanceof $root.BreachWatch.HashStatus) return object; let message = new $root.BreachWatch.HashStatus(); if (object.hash1 != null) - if (typeof object.hash1 === "string") - $util.base64.decode(object.hash1, message.hash1 = $util.newBuffer($util.base64.length(object.hash1)), 0); - else if (object.hash1.length >= 0) - message.hash1 = object.hash1; + if (typeof object.hash1 === 'string') + $util.base64.decode( + object.hash1, + (message.hash1 = $util.newBuffer($util.base64.length(object.hash1))), + 0 + ); + else if (object.hash1.length >= 0) message.hash1 = object.hash1; if (object.euid != null) - if (typeof object.euid === "string") - $util.base64.decode(object.euid, message.euid = $util.newBuffer($util.base64.length(object.euid)), 0); - else if (object.euid.length >= 0) - message.euid = object.euid; - if (object.breachDetected != null) - message.breachDetected = Boolean(object.breachDetected); + if (typeof object.euid === 'string') + $util.base64.decode( + object.euid, + (message.euid = $util.newBuffer($util.base64.length(object.euid))), + 0 + ); + else if (object.euid.length >= 0) message.euid = object.euid; + if (object.breachDetected != null) message.breachDetected = Boolean(object.breachDetected); return message; }; @@ -133715,31 +138445,36 @@ export const BreachWatch = $root.BreachWatch = (() => { * @returns {Object.} Plain object */ HashStatus.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.hash1 = ""; + if (options.bytes === String) object.hash1 = ''; else { object.hash1 = []; - if (options.bytes !== Array) - object.hash1 = $util.newBuffer(object.hash1); + if (options.bytes !== Array) object.hash1 = $util.newBuffer(object.hash1); } - if (options.bytes === String) - object.euid = ""; + if (options.bytes === String) object.euid = ''; else { object.euid = []; - if (options.bytes !== Array) - object.euid = $util.newBuffer(object.euid); + if (options.bytes !== Array) object.euid = $util.newBuffer(object.euid); } object.breachDetected = false; } - if (message.hash1 != null && message.hasOwnProperty("hash1")) - object.hash1 = options.bytes === String ? $util.base64.encode(message.hash1, 0, message.hash1.length) : options.bytes === Array ? Array.prototype.slice.call(message.hash1) : message.hash1; - if (message.euid != null && message.hasOwnProperty("euid")) - object.euid = options.bytes === String ? $util.base64.encode(message.euid, 0, message.euid.length) : options.bytes === Array ? Array.prototype.slice.call(message.euid) : message.euid; - if (message.breachDetected != null && message.hasOwnProperty("breachDetected")) + if (message.hash1 != null && message.hasOwnProperty('hash1')) + object.hash1 = + options.bytes === String + ? $util.base64.encode(message.hash1, 0, message.hash1.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.hash1) + : message.hash1; + if (message.euid != null && message.hasOwnProperty('euid')) + object.euid = + options.bytes === String + ? $util.base64.encode(message.euid, 0, message.euid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.euid) + : message.euid; + if (message.breachDetected != null && message.hasOwnProperty('breachDetected')) object.breachDetected = message.breachDetected; return object; }; @@ -133765,16 +138500,15 @@ export const BreachWatch = $root.BreachWatch = (() => { */ HashStatus.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/BreachWatch.HashStatus"; + return typeUrlPrefix + '/BreachWatch.HashStatus'; }; return HashStatus; })(); - BreachWatch.BreachWatchStatusResponse = (function() { - + BreachWatch.BreachWatchStatusResponse = (function () { /** * Properties of a BreachWatchStatusResponse. * @memberof BreachWatch @@ -133794,8 +138528,7 @@ export const BreachWatch = $root.BreachWatch = (() => { this.hashStatus = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -133828,11 +138561,13 @@ export const BreachWatch = $root.BreachWatch = (() => { * @returns {$protobuf.Writer} Writer */ BreachWatchStatusResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.hashStatus != null && message.hashStatus.length) for (let i = 0; i < message.hashStatus.length; ++i) - $root.BreachWatch.HashStatus.encode(message.hashStatus[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + $root.BreachWatch.HashStatus.encode( + message.hashStatus[i], + writer.uint32(/* id 2, wireType 2 =*/ 18).fork() + ).ldelim(); return writer; }; @@ -133861,21 +138596,20 @@ export const BreachWatch = $root.BreachWatch = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ BreachWatchStatusResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BreachWatch.BreachWatchStatusResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.BreachWatch.BreachWatchStatusResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 2: { - if (!(message.hashStatus && message.hashStatus.length)) - message.hashStatus = []; + case 2: { + if (!(message.hashStatus && message.hashStatus.length)) message.hashStatus = []; message.hashStatus.push($root.BreachWatch.HashStatus.decode(reader, reader.uint32())); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -133892,8 +138626,7 @@ export const BreachWatch = $root.BreachWatch = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ BreachWatchStatusResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -133906,15 +138639,12 @@ export const BreachWatch = $root.BreachWatch = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ BreachWatchStatusResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.hashStatus != null && message.hasOwnProperty("hashStatus")) { - if (!Array.isArray(message.hashStatus)) - return "hashStatus: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.hashStatus != null && message.hasOwnProperty('hashStatus')) { + if (!Array.isArray(message.hashStatus)) return 'hashStatus: array expected'; for (let i = 0; i < message.hashStatus.length; ++i) { let error = $root.BreachWatch.HashStatus.verify(message.hashStatus[i]); - if (error) - return "hashStatus." + error; + if (error) return 'hashStatus.' + error; } } return null; @@ -133929,16 +138659,15 @@ export const BreachWatch = $root.BreachWatch = (() => { * @returns {BreachWatch.BreachWatchStatusResponse} BreachWatchStatusResponse */ BreachWatchStatusResponse.fromObject = function fromObject(object) { - if (object instanceof $root.BreachWatch.BreachWatchStatusResponse) - return object; + if (object instanceof $root.BreachWatch.BreachWatchStatusResponse) return object; let message = new $root.BreachWatch.BreachWatchStatusResponse(); if (object.hashStatus) { if (!Array.isArray(object.hashStatus)) - throw TypeError(".BreachWatch.BreachWatchStatusResponse.hashStatus: array expected"); + throw TypeError('.BreachWatch.BreachWatchStatusResponse.hashStatus: array expected'); message.hashStatus = []; for (let i = 0; i < object.hashStatus.length; ++i) { - if (typeof object.hashStatus[i] !== "object") - throw TypeError(".BreachWatch.BreachWatchStatusResponse.hashStatus: object expected"); + if (typeof object.hashStatus[i] !== 'object') + throw TypeError('.BreachWatch.BreachWatchStatusResponse.hashStatus: object expected'); message.hashStatus[i] = $root.BreachWatch.HashStatus.fromObject(object.hashStatus[i]); } } @@ -133955,11 +138684,9 @@ export const BreachWatch = $root.BreachWatch = (() => { * @returns {Object.} Plain object */ BreachWatchStatusResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.hashStatus = []; + if (options.arrays || options.defaults) object.hashStatus = []; if (message.hashStatus && message.hashStatus.length) { object.hashStatus = []; for (let j = 0; j < message.hashStatus.length; ++j) @@ -133989,16 +138716,15 @@ export const BreachWatch = $root.BreachWatch = (() => { */ BreachWatchStatusResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/BreachWatch.BreachWatchStatusResponse"; + return typeUrlPrefix + '/BreachWatch.BreachWatchStatusResponse'; }; return BreachWatchStatusResponse; })(); - BreachWatch.EnterprisePublicKeyResponse = (function() { - + BreachWatch.EnterprisePublicKeyResponse = (function () { /** * Properties of an EnterprisePublicKeyResponse. * @memberof BreachWatch @@ -134018,8 +138744,7 @@ export const BreachWatch = $root.BreachWatch = (() => { function EnterprisePublicKeyResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -134060,12 +138785,11 @@ export const BreachWatch = $root.BreachWatch = (() => { * @returns {$protobuf.Writer} Writer */ EnterprisePublicKeyResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.enterprisePublicKey != null && Object.hasOwnProperty.call(message, "enterprisePublicKey")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.enterprisePublicKey); - if (message.enterpriseECCPublicKey != null && Object.hasOwnProperty.call(message, "enterpriseECCPublicKey")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.enterpriseECCPublicKey); + if (!writer) writer = $Writer.create(); + if (message.enterprisePublicKey != null && Object.hasOwnProperty.call(message, 'enterprisePublicKey')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.enterprisePublicKey); + if (message.enterpriseECCPublicKey != null && Object.hasOwnProperty.call(message, 'enterpriseECCPublicKey')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.enterpriseECCPublicKey); return writer; }; @@ -134094,23 +138818,23 @@ export const BreachWatch = $root.BreachWatch = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ EnterprisePublicKeyResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BreachWatch.EnterprisePublicKeyResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.BreachWatch.EnterprisePublicKeyResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.enterprisePublicKey = reader.bytes(); break; } - case 2: { + case 2: { message.enterpriseECCPublicKey = reader.bytes(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -134127,8 +138851,7 @@ export const BreachWatch = $root.BreachWatch = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ EnterprisePublicKeyResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -134141,14 +138864,23 @@ export const BreachWatch = $root.BreachWatch = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ EnterprisePublicKeyResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.enterprisePublicKey != null && message.hasOwnProperty("enterprisePublicKey")) - if (!(message.enterprisePublicKey && typeof message.enterprisePublicKey.length === "number" || $util.isString(message.enterprisePublicKey))) - return "enterprisePublicKey: buffer expected"; - if (message.enterpriseECCPublicKey != null && message.hasOwnProperty("enterpriseECCPublicKey")) - if (!(message.enterpriseECCPublicKey && typeof message.enterpriseECCPublicKey.length === "number" || $util.isString(message.enterpriseECCPublicKey))) - return "enterpriseECCPublicKey: buffer expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.enterprisePublicKey != null && message.hasOwnProperty('enterprisePublicKey')) + if ( + !( + (message.enterprisePublicKey && typeof message.enterprisePublicKey.length === 'number') || + $util.isString(message.enterprisePublicKey) + ) + ) + return 'enterprisePublicKey: buffer expected'; + if (message.enterpriseECCPublicKey != null && message.hasOwnProperty('enterpriseECCPublicKey')) + if ( + !( + (message.enterpriseECCPublicKey && typeof message.enterpriseECCPublicKey.length === 'number') || + $util.isString(message.enterpriseECCPublicKey) + ) + ) + return 'enterpriseECCPublicKey: buffer expected'; return null; }; @@ -134161,17 +138893,28 @@ export const BreachWatch = $root.BreachWatch = (() => { * @returns {BreachWatch.EnterprisePublicKeyResponse} EnterprisePublicKeyResponse */ EnterprisePublicKeyResponse.fromObject = function fromObject(object) { - if (object instanceof $root.BreachWatch.EnterprisePublicKeyResponse) - return object; + if (object instanceof $root.BreachWatch.EnterprisePublicKeyResponse) return object; let message = new $root.BreachWatch.EnterprisePublicKeyResponse(); if (object.enterprisePublicKey != null) - if (typeof object.enterprisePublicKey === "string") - $util.base64.decode(object.enterprisePublicKey, message.enterprisePublicKey = $util.newBuffer($util.base64.length(object.enterprisePublicKey)), 0); + if (typeof object.enterprisePublicKey === 'string') + $util.base64.decode( + object.enterprisePublicKey, + (message.enterprisePublicKey = $util.newBuffer( + $util.base64.length(object.enterprisePublicKey) + )), + 0 + ); else if (object.enterprisePublicKey.length >= 0) message.enterprisePublicKey = object.enterprisePublicKey; if (object.enterpriseECCPublicKey != null) - if (typeof object.enterpriseECCPublicKey === "string") - $util.base64.decode(object.enterpriseECCPublicKey, message.enterpriseECCPublicKey = $util.newBuffer($util.base64.length(object.enterpriseECCPublicKey)), 0); + if (typeof object.enterpriseECCPublicKey === 'string') + $util.base64.decode( + object.enterpriseECCPublicKey, + (message.enterpriseECCPublicKey = $util.newBuffer( + $util.base64.length(object.enterpriseECCPublicKey) + )), + 0 + ); else if (object.enterpriseECCPublicKey.length >= 0) message.enterpriseECCPublicKey = object.enterpriseECCPublicKey; return message; @@ -134187,29 +138930,36 @@ export const BreachWatch = $root.BreachWatch = (() => { * @returns {Object.} Plain object */ EnterprisePublicKeyResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.enterprisePublicKey = ""; + if (options.bytes === String) object.enterprisePublicKey = ''; else { object.enterprisePublicKey = []; if (options.bytes !== Array) object.enterprisePublicKey = $util.newBuffer(object.enterprisePublicKey); } - if (options.bytes === String) - object.enterpriseECCPublicKey = ""; + if (options.bytes === String) object.enterpriseECCPublicKey = ''; else { object.enterpriseECCPublicKey = []; if (options.bytes !== Array) object.enterpriseECCPublicKey = $util.newBuffer(object.enterpriseECCPublicKey); } } - if (message.enterprisePublicKey != null && message.hasOwnProperty("enterprisePublicKey")) - object.enterprisePublicKey = options.bytes === String ? $util.base64.encode(message.enterprisePublicKey, 0, message.enterprisePublicKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.enterprisePublicKey) : message.enterprisePublicKey; - if (message.enterpriseECCPublicKey != null && message.hasOwnProperty("enterpriseECCPublicKey")) - object.enterpriseECCPublicKey = options.bytes === String ? $util.base64.encode(message.enterpriseECCPublicKey, 0, message.enterpriseECCPublicKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.enterpriseECCPublicKey) : message.enterpriseECCPublicKey; + if (message.enterprisePublicKey != null && message.hasOwnProperty('enterprisePublicKey')) + object.enterprisePublicKey = + options.bytes === String + ? $util.base64.encode(message.enterprisePublicKey, 0, message.enterprisePublicKey.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.enterprisePublicKey) + : message.enterprisePublicKey; + if (message.enterpriseECCPublicKey != null && message.hasOwnProperty('enterpriseECCPublicKey')) + object.enterpriseECCPublicKey = + options.bytes === String + ? $util.base64.encode(message.enterpriseECCPublicKey, 0, message.enterpriseECCPublicKey.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.enterpriseECCPublicKey) + : message.enterpriseECCPublicKey; return object; }; @@ -134234,16 +138984,15 @@ export const BreachWatch = $root.BreachWatch = (() => { */ EnterprisePublicKeyResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/BreachWatch.EnterprisePublicKeyResponse"; + return typeUrlPrefix + '/BreachWatch.EnterprisePublicKeyResponse'; }; return EnterprisePublicKeyResponse; })(); - BreachWatch.FreeScanRequest = (function() { - + BreachWatch.FreeScanRequest = (function () { /** * Properties of a FreeScanRequest. * @memberof BreachWatch @@ -134262,8 +139011,7 @@ export const BreachWatch = $root.BreachWatch = (() => { function FreeScanRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -134296,10 +139044,9 @@ export const BreachWatch = $root.BreachWatch = (() => { * @returns {$protobuf.Writer} Writer */ FreeScanRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.hashedEmail != null && Object.hasOwnProperty.call(message, "hashedEmail")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.hashedEmail); + if (!writer) writer = $Writer.create(); + if (message.hashedEmail != null && Object.hasOwnProperty.call(message, 'hashedEmail')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.hashedEmail); return writer; }; @@ -134328,19 +139075,19 @@ export const BreachWatch = $root.BreachWatch = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ FreeScanRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BreachWatch.FreeScanRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.BreachWatch.FreeScanRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.hashedEmail = reader.bytes(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -134357,8 +139104,7 @@ export const BreachWatch = $root.BreachWatch = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ FreeScanRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -134371,11 +139117,15 @@ export const BreachWatch = $root.BreachWatch = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ FreeScanRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.hashedEmail != null && message.hasOwnProperty("hashedEmail")) - if (!(message.hashedEmail && typeof message.hashedEmail.length === "number" || $util.isString(message.hashedEmail))) - return "hashedEmail: buffer expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.hashedEmail != null && message.hasOwnProperty('hashedEmail')) + if ( + !( + (message.hashedEmail && typeof message.hashedEmail.length === 'number') || + $util.isString(message.hashedEmail) + ) + ) + return 'hashedEmail: buffer expected'; return null; }; @@ -134388,14 +139138,16 @@ export const BreachWatch = $root.BreachWatch = (() => { * @returns {BreachWatch.FreeScanRequest} FreeScanRequest */ FreeScanRequest.fromObject = function fromObject(object) { - if (object instanceof $root.BreachWatch.FreeScanRequest) - return object; + if (object instanceof $root.BreachWatch.FreeScanRequest) return object; let message = new $root.BreachWatch.FreeScanRequest(); if (object.hashedEmail != null) - if (typeof object.hashedEmail === "string") - $util.base64.decode(object.hashedEmail, message.hashedEmail = $util.newBuffer($util.base64.length(object.hashedEmail)), 0); - else if (object.hashedEmail.length >= 0) - message.hashedEmail = object.hashedEmail; + if (typeof object.hashedEmail === 'string') + $util.base64.decode( + object.hashedEmail, + (message.hashedEmail = $util.newBuffer($util.base64.length(object.hashedEmail))), + 0 + ); + else if (object.hashedEmail.length >= 0) message.hashedEmail = object.hashedEmail; return message; }; @@ -134409,19 +139161,21 @@ export const BreachWatch = $root.BreachWatch = (() => { * @returns {Object.} Plain object */ FreeScanRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) - if (options.bytes === String) - object.hashedEmail = ""; + if (options.bytes === String) object.hashedEmail = ''; else { object.hashedEmail = []; - if (options.bytes !== Array) - object.hashedEmail = $util.newBuffer(object.hashedEmail); + if (options.bytes !== Array) object.hashedEmail = $util.newBuffer(object.hashedEmail); } - if (message.hashedEmail != null && message.hasOwnProperty("hashedEmail")) - object.hashedEmail = options.bytes === String ? $util.base64.encode(message.hashedEmail, 0, message.hashedEmail.length) : options.bytes === Array ? Array.prototype.slice.call(message.hashedEmail) : message.hashedEmail; + if (message.hashedEmail != null && message.hasOwnProperty('hashedEmail')) + object.hashedEmail = + options.bytes === String + ? $util.base64.encode(message.hashedEmail, 0, message.hashedEmail.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.hashedEmail) + : message.hashedEmail; return object; }; @@ -134446,16 +139200,15 @@ export const BreachWatch = $root.BreachWatch = (() => { */ FreeScanRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/BreachWatch.FreeScanRequest"; + return typeUrlPrefix + '/BreachWatch.FreeScanRequest'; }; return FreeScanRequest; })(); - BreachWatch.FreeScanResponse = (function() { - + BreachWatch.FreeScanResponse = (function () { /** * Properties of a FreeScanResponse. * @memberof BreachWatch @@ -134475,8 +139228,7 @@ export const BreachWatch = $root.BreachWatch = (() => { function FreeScanResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -134517,12 +139269,11 @@ export const BreachWatch = $root.BreachWatch = (() => { * @returns {$protobuf.Writer} Writer */ FreeScanResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.emailBreaches != null && Object.hasOwnProperty.call(message, "emailBreaches")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.emailBreaches); - if (message.passwordBreaches != null && Object.hasOwnProperty.call(message, "passwordBreaches")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.passwordBreaches); + if (!writer) writer = $Writer.create(); + if (message.emailBreaches != null && Object.hasOwnProperty.call(message, 'emailBreaches')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int32(message.emailBreaches); + if (message.passwordBreaches != null && Object.hasOwnProperty.call(message, 'passwordBreaches')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int32(message.passwordBreaches); return writer; }; @@ -134551,23 +139302,23 @@ export const BreachWatch = $root.BreachWatch = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ FreeScanResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BreachWatch.FreeScanResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.BreachWatch.FreeScanResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.emailBreaches = reader.int32(); break; } - case 2: { + case 2: { message.passwordBreaches = reader.int32(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -134584,8 +139335,7 @@ export const BreachWatch = $root.BreachWatch = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ FreeScanResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -134598,14 +139348,11 @@ export const BreachWatch = $root.BreachWatch = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ FreeScanResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.emailBreaches != null && message.hasOwnProperty("emailBreaches")) - if (!$util.isInteger(message.emailBreaches)) - return "emailBreaches: integer expected"; - if (message.passwordBreaches != null && message.hasOwnProperty("passwordBreaches")) - if (!$util.isInteger(message.passwordBreaches)) - return "passwordBreaches: integer expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.emailBreaches != null && message.hasOwnProperty('emailBreaches')) + if (!$util.isInteger(message.emailBreaches)) return 'emailBreaches: integer expected'; + if (message.passwordBreaches != null && message.hasOwnProperty('passwordBreaches')) + if (!$util.isInteger(message.passwordBreaches)) return 'passwordBreaches: integer expected'; return null; }; @@ -134618,13 +139365,10 @@ export const BreachWatch = $root.BreachWatch = (() => { * @returns {BreachWatch.FreeScanResponse} FreeScanResponse */ FreeScanResponse.fromObject = function fromObject(object) { - if (object instanceof $root.BreachWatch.FreeScanResponse) - return object; + if (object instanceof $root.BreachWatch.FreeScanResponse) return object; let message = new $root.BreachWatch.FreeScanResponse(); - if (object.emailBreaches != null) - message.emailBreaches = object.emailBreaches | 0; - if (object.passwordBreaches != null) - message.passwordBreaches = object.passwordBreaches | 0; + if (object.emailBreaches != null) message.emailBreaches = object.emailBreaches | 0; + if (object.passwordBreaches != null) message.passwordBreaches = object.passwordBreaches | 0; return message; }; @@ -134638,16 +139382,15 @@ export const BreachWatch = $root.BreachWatch = (() => { * @returns {Object.} Plain object */ FreeScanResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { object.emailBreaches = 0; object.passwordBreaches = 0; } - if (message.emailBreaches != null && message.hasOwnProperty("emailBreaches")) + if (message.emailBreaches != null && message.hasOwnProperty('emailBreaches')) object.emailBreaches = message.emailBreaches; - if (message.passwordBreaches != null && message.hasOwnProperty("passwordBreaches")) + if (message.passwordBreaches != null && message.hasOwnProperty('passwordBreaches')) object.passwordBreaches = message.passwordBreaches; return object; }; @@ -134673,16 +139416,15 @@ export const BreachWatch = $root.BreachWatch = (() => { */ FreeScanResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/BreachWatch.FreeScanResponse"; + return typeUrlPrefix + '/BreachWatch.FreeScanResponse'; }; return FreeScanResponse; })(); - BreachWatch.PaidUserRequest = (function() { - + BreachWatch.PaidUserRequest = (function () { /** * Properties of a PaidUserRequest. * @memberof BreachWatch @@ -134701,8 +139443,7 @@ export const BreachWatch = $root.BreachWatch = (() => { function PaidUserRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -134711,7 +139452,7 @@ export const BreachWatch = $root.BreachWatch = (() => { * @memberof BreachWatch.PaidUserRequest * @instance */ - PaidUserRequest.prototype.email = ""; + PaidUserRequest.prototype.email = ''; /** * Creates a new PaidUserRequest instance using the specified properties. @@ -134735,10 +139476,9 @@ export const BreachWatch = $root.BreachWatch = (() => { * @returns {$protobuf.Writer} Writer */ PaidUserRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.email != null && Object.hasOwnProperty.call(message, "email")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.email); + if (!writer) writer = $Writer.create(); + if (message.email != null && Object.hasOwnProperty.call(message, 'email')) + writer.uint32(/* id 1, wireType 2 =*/ 10).string(message.email); return writer; }; @@ -134767,19 +139507,19 @@ export const BreachWatch = $root.BreachWatch = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ PaidUserRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BreachWatch.PaidUserRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.BreachWatch.PaidUserRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.email = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -134796,8 +139536,7 @@ export const BreachWatch = $root.BreachWatch = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ PaidUserRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -134810,11 +139549,9 @@ export const BreachWatch = $root.BreachWatch = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ PaidUserRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.email != null && message.hasOwnProperty("email")) - if (!$util.isString(message.email)) - return "email: string expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.email != null && message.hasOwnProperty('email')) + if (!$util.isString(message.email)) return 'email: string expected'; return null; }; @@ -134827,11 +139564,9 @@ export const BreachWatch = $root.BreachWatch = (() => { * @returns {BreachWatch.PaidUserRequest} PaidUserRequest */ PaidUserRequest.fromObject = function fromObject(object) { - if (object instanceof $root.BreachWatch.PaidUserRequest) - return object; + if (object instanceof $root.BreachWatch.PaidUserRequest) return object; let message = new $root.BreachWatch.PaidUserRequest(); - if (object.email != null) - message.email = String(object.email); + if (object.email != null) message.email = String(object.email); return message; }; @@ -134845,13 +139580,10 @@ export const BreachWatch = $root.BreachWatch = (() => { * @returns {Object.} Plain object */ PaidUserRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.defaults) - object.email = ""; - if (message.email != null && message.hasOwnProperty("email")) - object.email = message.email; + if (options.defaults) object.email = ''; + if (message.email != null && message.hasOwnProperty('email')) object.email = message.email; return object; }; @@ -134876,16 +139608,15 @@ export const BreachWatch = $root.BreachWatch = (() => { */ PaidUserRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/BreachWatch.PaidUserRequest"; + return typeUrlPrefix + '/BreachWatch.PaidUserRequest'; }; return PaidUserRequest; })(); - BreachWatch.PaidUserResponse = (function() { - + BreachWatch.PaidUserResponse = (function () { /** * Properties of a PaidUserResponse. * @memberof BreachWatch @@ -134904,8 +139635,7 @@ export const BreachWatch = $root.BreachWatch = (() => { function PaidUserResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -134938,10 +139668,9 @@ export const BreachWatch = $root.BreachWatch = (() => { * @returns {$protobuf.Writer} Writer */ PaidUserResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.paidUser != null && Object.hasOwnProperty.call(message, "paidUser")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.paidUser); + if (!writer) writer = $Writer.create(); + if (message.paidUser != null && Object.hasOwnProperty.call(message, 'paidUser')) + writer.uint32(/* id 1, wireType 0 =*/ 8).bool(message.paidUser); return writer; }; @@ -134970,19 +139699,19 @@ export const BreachWatch = $root.BreachWatch = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ PaidUserResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BreachWatch.PaidUserResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.BreachWatch.PaidUserResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.paidUser = reader.bool(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -134999,8 +139728,7 @@ export const BreachWatch = $root.BreachWatch = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ PaidUserResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -135013,11 +139741,9 @@ export const BreachWatch = $root.BreachWatch = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ PaidUserResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.paidUser != null && message.hasOwnProperty("paidUser")) - if (typeof message.paidUser !== "boolean") - return "paidUser: boolean expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.paidUser != null && message.hasOwnProperty('paidUser')) + if (typeof message.paidUser !== 'boolean') return 'paidUser: boolean expected'; return null; }; @@ -135030,11 +139756,9 @@ export const BreachWatch = $root.BreachWatch = (() => { * @returns {BreachWatch.PaidUserResponse} PaidUserResponse */ PaidUserResponse.fromObject = function fromObject(object) { - if (object instanceof $root.BreachWatch.PaidUserResponse) - return object; + if (object instanceof $root.BreachWatch.PaidUserResponse) return object; let message = new $root.BreachWatch.PaidUserResponse(); - if (object.paidUser != null) - message.paidUser = Boolean(object.paidUser); + if (object.paidUser != null) message.paidUser = Boolean(object.paidUser); return message; }; @@ -135048,13 +139772,10 @@ export const BreachWatch = $root.BreachWatch = (() => { * @returns {Object.} Plain object */ PaidUserResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.defaults) - object.paidUser = false; - if (message.paidUser != null && message.hasOwnProperty("paidUser")) - object.paidUser = message.paidUser; + if (options.defaults) object.paidUser = false; + if (message.paidUser != null && message.hasOwnProperty('paidUser')) object.paidUser = message.paidUser; return object; }; @@ -135079,16 +139800,15 @@ export const BreachWatch = $root.BreachWatch = (() => { */ PaidUserResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/BreachWatch.PaidUserResponse"; + return typeUrlPrefix + '/BreachWatch.PaidUserResponse'; }; return PaidUserResponse; })(); - BreachWatch.DetailedScanRequest = (function() { - + BreachWatch.DetailedScanRequest = (function () { /** * Properties of a DetailedScanRequest. * @memberof BreachWatch @@ -135107,8 +139827,7 @@ export const BreachWatch = $root.BreachWatch = (() => { function DetailedScanRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -135117,7 +139836,7 @@ export const BreachWatch = $root.BreachWatch = (() => { * @memberof BreachWatch.DetailedScanRequest * @instance */ - DetailedScanRequest.prototype.email = ""; + DetailedScanRequest.prototype.email = ''; /** * Creates a new DetailedScanRequest instance using the specified properties. @@ -135141,10 +139860,9 @@ export const BreachWatch = $root.BreachWatch = (() => { * @returns {$protobuf.Writer} Writer */ DetailedScanRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.email != null && Object.hasOwnProperty.call(message, "email")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.email); + if (!writer) writer = $Writer.create(); + if (message.email != null && Object.hasOwnProperty.call(message, 'email')) + writer.uint32(/* id 1, wireType 2 =*/ 10).string(message.email); return writer; }; @@ -135173,19 +139891,19 @@ export const BreachWatch = $root.BreachWatch = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ DetailedScanRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BreachWatch.DetailedScanRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.BreachWatch.DetailedScanRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.email = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -135202,8 +139920,7 @@ export const BreachWatch = $root.BreachWatch = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ DetailedScanRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -135216,11 +139933,9 @@ export const BreachWatch = $root.BreachWatch = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ DetailedScanRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.email != null && message.hasOwnProperty("email")) - if (!$util.isString(message.email)) - return "email: string expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.email != null && message.hasOwnProperty('email')) + if (!$util.isString(message.email)) return 'email: string expected'; return null; }; @@ -135233,11 +139948,9 @@ export const BreachWatch = $root.BreachWatch = (() => { * @returns {BreachWatch.DetailedScanRequest} DetailedScanRequest */ DetailedScanRequest.fromObject = function fromObject(object) { - if (object instanceof $root.BreachWatch.DetailedScanRequest) - return object; + if (object instanceof $root.BreachWatch.DetailedScanRequest) return object; let message = new $root.BreachWatch.DetailedScanRequest(); - if (object.email != null) - message.email = String(object.email); + if (object.email != null) message.email = String(object.email); return message; }; @@ -135251,13 +139964,10 @@ export const BreachWatch = $root.BreachWatch = (() => { * @returns {Object.} Plain object */ DetailedScanRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.defaults) - object.email = ""; - if (message.email != null && message.hasOwnProperty("email")) - object.email = message.email; + if (options.defaults) object.email = ''; + if (message.email != null && message.hasOwnProperty('email')) object.email = message.email; return object; }; @@ -135282,16 +139992,15 @@ export const BreachWatch = $root.BreachWatch = (() => { */ DetailedScanRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/BreachWatch.DetailedScanRequest"; + return typeUrlPrefix + '/BreachWatch.DetailedScanRequest'; }; return DetailedScanRequest; })(); - BreachWatch.UseOneTimeTokenRequest = (function() { - + BreachWatch.UseOneTimeTokenRequest = (function () { /** * Properties of a UseOneTimeTokenRequest. * @memberof BreachWatch @@ -135310,8 +140019,7 @@ export const BreachWatch = $root.BreachWatch = (() => { function UseOneTimeTokenRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -135344,10 +140052,9 @@ export const BreachWatch = $root.BreachWatch = (() => { * @returns {$protobuf.Writer} Writer */ UseOneTimeTokenRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.token != null && Object.hasOwnProperty.call(message, "token")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.token); + if (!writer) writer = $Writer.create(); + if (message.token != null && Object.hasOwnProperty.call(message, 'token')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.token); return writer; }; @@ -135376,19 +140083,19 @@ export const BreachWatch = $root.BreachWatch = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ UseOneTimeTokenRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BreachWatch.UseOneTimeTokenRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.BreachWatch.UseOneTimeTokenRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.token = reader.bytes(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -135405,8 +140112,7 @@ export const BreachWatch = $root.BreachWatch = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ UseOneTimeTokenRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -135419,11 +140125,10 @@ export const BreachWatch = $root.BreachWatch = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ UseOneTimeTokenRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.token != null && message.hasOwnProperty("token")) - if (!(message.token && typeof message.token.length === "number" || $util.isString(message.token))) - return "token: buffer expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.token != null && message.hasOwnProperty('token')) + if (!((message.token && typeof message.token.length === 'number') || $util.isString(message.token))) + return 'token: buffer expected'; return null; }; @@ -135436,14 +140141,16 @@ export const BreachWatch = $root.BreachWatch = (() => { * @returns {BreachWatch.UseOneTimeTokenRequest} UseOneTimeTokenRequest */ UseOneTimeTokenRequest.fromObject = function fromObject(object) { - if (object instanceof $root.BreachWatch.UseOneTimeTokenRequest) - return object; + if (object instanceof $root.BreachWatch.UseOneTimeTokenRequest) return object; let message = new $root.BreachWatch.UseOneTimeTokenRequest(); if (object.token != null) - if (typeof object.token === "string") - $util.base64.decode(object.token, message.token = $util.newBuffer($util.base64.length(object.token)), 0); - else if (object.token.length >= 0) - message.token = object.token; + if (typeof object.token === 'string') + $util.base64.decode( + object.token, + (message.token = $util.newBuffer($util.base64.length(object.token))), + 0 + ); + else if (object.token.length >= 0) message.token = object.token; return message; }; @@ -135457,19 +140164,21 @@ export const BreachWatch = $root.BreachWatch = (() => { * @returns {Object.} Plain object */ UseOneTimeTokenRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) - if (options.bytes === String) - object.token = ""; + if (options.bytes === String) object.token = ''; else { object.token = []; - if (options.bytes !== Array) - object.token = $util.newBuffer(object.token); + if (options.bytes !== Array) object.token = $util.newBuffer(object.token); } - if (message.token != null && message.hasOwnProperty("token")) - object.token = options.bytes === String ? $util.base64.encode(message.token, 0, message.token.length) : options.bytes === Array ? Array.prototype.slice.call(message.token) : message.token; + if (message.token != null && message.hasOwnProperty('token')) + object.token = + options.bytes === String + ? $util.base64.encode(message.token, 0, message.token.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.token) + : message.token; return object; }; @@ -135494,16 +140203,15 @@ export const BreachWatch = $root.BreachWatch = (() => { */ UseOneTimeTokenRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/BreachWatch.UseOneTimeTokenRequest"; + return typeUrlPrefix + '/BreachWatch.UseOneTimeTokenRequest'; }; return UseOneTimeTokenRequest; })(); - BreachWatch.BreachEvent = (function() { - + BreachWatch.BreachEvent = (function () { /** * Properties of a BreachEvent. * @memberof BreachWatch @@ -135526,8 +140234,7 @@ export const BreachWatch = $root.BreachWatch = (() => { function BreachEvent(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -135536,7 +140243,7 @@ export const BreachWatch = $root.BreachWatch = (() => { * @memberof BreachWatch.BreachEvent * @instance */ - BreachEvent.prototype.site = ""; + BreachEvent.prototype.site = ''; /** * BreachEvent email. @@ -135544,7 +140251,7 @@ export const BreachWatch = $root.BreachWatch = (() => { * @memberof BreachWatch.BreachEvent * @instance */ - BreachEvent.prototype.email = ""; + BreachEvent.prototype.email = ''; /** * BreachEvent passwordInBreach. @@ -135560,7 +140267,7 @@ export const BreachWatch = $root.BreachWatch = (() => { * @memberof BreachWatch.BreachEvent * @instance */ - BreachEvent.prototype.date = ""; + BreachEvent.prototype.date = ''; /** * BreachEvent description. @@ -135568,7 +140275,7 @@ export const BreachWatch = $root.BreachWatch = (() => { * @memberof BreachWatch.BreachEvent * @instance */ - BreachEvent.prototype.description = ""; + BreachEvent.prototype.description = ''; /** * Creates a new BreachEvent instance using the specified properties. @@ -135592,18 +140299,17 @@ export const BreachWatch = $root.BreachWatch = (() => { * @returns {$protobuf.Writer} Writer */ BreachEvent.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.site != null && Object.hasOwnProperty.call(message, "site")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.site); - if (message.email != null && Object.hasOwnProperty.call(message, "email")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.email); - if (message.passwordInBreach != null && Object.hasOwnProperty.call(message, "passwordInBreach")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.passwordInBreach); - if (message.date != null && Object.hasOwnProperty.call(message, "date")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.date); - if (message.description != null && Object.hasOwnProperty.call(message, "description")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.description); + if (!writer) writer = $Writer.create(); + if (message.site != null && Object.hasOwnProperty.call(message, 'site')) + writer.uint32(/* id 1, wireType 2 =*/ 10).string(message.site); + if (message.email != null && Object.hasOwnProperty.call(message, 'email')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.email); + if (message.passwordInBreach != null && Object.hasOwnProperty.call(message, 'passwordInBreach')) + writer.uint32(/* id 3, wireType 0 =*/ 24).bool(message.passwordInBreach); + if (message.date != null && Object.hasOwnProperty.call(message, 'date')) + writer.uint32(/* id 4, wireType 2 =*/ 34).string(message.date); + if (message.description != null && Object.hasOwnProperty.call(message, 'description')) + writer.uint32(/* id 5, wireType 2 =*/ 42).string(message.description); return writer; }; @@ -135632,35 +140338,35 @@ export const BreachWatch = $root.BreachWatch = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ BreachEvent.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BreachWatch.BreachEvent(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.BreachWatch.BreachEvent(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.site = reader.string(); break; } - case 2: { + case 2: { message.email = reader.string(); break; } - case 3: { + case 3: { message.passwordInBreach = reader.bool(); break; } - case 4: { + case 4: { message.date = reader.string(); break; } - case 5: { + case 5: { message.description = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -135677,8 +140383,7 @@ export const BreachWatch = $root.BreachWatch = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ BreachEvent.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -135691,23 +140396,17 @@ export const BreachWatch = $root.BreachWatch = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ BreachEvent.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.site != null && message.hasOwnProperty("site")) - if (!$util.isString(message.site)) - return "site: string expected"; - if (message.email != null && message.hasOwnProperty("email")) - if (!$util.isString(message.email)) - return "email: string expected"; - if (message.passwordInBreach != null && message.hasOwnProperty("passwordInBreach")) - if (typeof message.passwordInBreach !== "boolean") - return "passwordInBreach: boolean expected"; - if (message.date != null && message.hasOwnProperty("date")) - if (!$util.isString(message.date)) - return "date: string expected"; - if (message.description != null && message.hasOwnProperty("description")) - if (!$util.isString(message.description)) - return "description: string expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.site != null && message.hasOwnProperty('site')) + if (!$util.isString(message.site)) return 'site: string expected'; + if (message.email != null && message.hasOwnProperty('email')) + if (!$util.isString(message.email)) return 'email: string expected'; + if (message.passwordInBreach != null && message.hasOwnProperty('passwordInBreach')) + if (typeof message.passwordInBreach !== 'boolean') return 'passwordInBreach: boolean expected'; + if (message.date != null && message.hasOwnProperty('date')) + if (!$util.isString(message.date)) return 'date: string expected'; + if (message.description != null && message.hasOwnProperty('description')) + if (!$util.isString(message.description)) return 'description: string expected'; return null; }; @@ -135720,19 +140419,13 @@ export const BreachWatch = $root.BreachWatch = (() => { * @returns {BreachWatch.BreachEvent} BreachEvent */ BreachEvent.fromObject = function fromObject(object) { - if (object instanceof $root.BreachWatch.BreachEvent) - return object; + if (object instanceof $root.BreachWatch.BreachEvent) return object; let message = new $root.BreachWatch.BreachEvent(); - if (object.site != null) - message.site = String(object.site); - if (object.email != null) - message.email = String(object.email); - if (object.passwordInBreach != null) - message.passwordInBreach = Boolean(object.passwordInBreach); - if (object.date != null) - message.date = String(object.date); - if (object.description != null) - message.description = String(object.description); + if (object.site != null) message.site = String(object.site); + if (object.email != null) message.email = String(object.email); + if (object.passwordInBreach != null) message.passwordInBreach = Boolean(object.passwordInBreach); + if (object.date != null) message.date = String(object.date); + if (object.description != null) message.description = String(object.description); return message; }; @@ -135746,25 +140439,21 @@ export const BreachWatch = $root.BreachWatch = (() => { * @returns {Object.} Plain object */ BreachEvent.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - object.site = ""; - object.email = ""; + object.site = ''; + object.email = ''; object.passwordInBreach = false; - object.date = ""; - object.description = ""; - } - if (message.site != null && message.hasOwnProperty("site")) - object.site = message.site; - if (message.email != null && message.hasOwnProperty("email")) - object.email = message.email; - if (message.passwordInBreach != null && message.hasOwnProperty("passwordInBreach")) + object.date = ''; + object.description = ''; + } + if (message.site != null && message.hasOwnProperty('site')) object.site = message.site; + if (message.email != null && message.hasOwnProperty('email')) object.email = message.email; + if (message.passwordInBreach != null && message.hasOwnProperty('passwordInBreach')) object.passwordInBreach = message.passwordInBreach; - if (message.date != null && message.hasOwnProperty("date")) - object.date = message.date; - if (message.description != null && message.hasOwnProperty("description")) + if (message.date != null && message.hasOwnProperty('date')) object.date = message.date; + if (message.description != null && message.hasOwnProperty('description')) object.description = message.description; return object; }; @@ -135790,16 +140479,15 @@ export const BreachWatch = $root.BreachWatch = (() => { */ BreachEvent.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/BreachWatch.BreachEvent"; + return typeUrlPrefix + '/BreachWatch.BreachEvent'; }; return BreachEvent; })(); - BreachWatch.UseOneTimeTokenResponse = (function() { - + BreachWatch.UseOneTimeTokenResponse = (function () { /** * Properties of a UseOneTimeTokenResponse. * @memberof BreachWatch @@ -135822,8 +140510,7 @@ export const BreachWatch = $root.BreachWatch = (() => { this.breachEvents = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -135856,7 +140543,7 @@ export const BreachWatch = $root.BreachWatch = (() => { * @memberof BreachWatch.UseOneTimeTokenResponse * @instance */ - UseOneTimeTokenResponse.prototype.email = ""; + UseOneTimeTokenResponse.prototype.email = ''; /** * Creates a new UseOneTimeTokenResponse instance using the specified properties. @@ -135880,17 +140567,19 @@ export const BreachWatch = $root.BreachWatch = (() => { * @returns {$protobuf.Writer} Writer */ UseOneTimeTokenResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.emailBreaches != null && Object.hasOwnProperty.call(message, "emailBreaches")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.emailBreaches); - if (message.passwordBreaches != null && Object.hasOwnProperty.call(message, "passwordBreaches")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.passwordBreaches); + if (!writer) writer = $Writer.create(); + if (message.emailBreaches != null && Object.hasOwnProperty.call(message, 'emailBreaches')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int32(message.emailBreaches); + if (message.passwordBreaches != null && Object.hasOwnProperty.call(message, 'passwordBreaches')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int32(message.passwordBreaches); if (message.breachEvents != null && message.breachEvents.length) for (let i = 0; i < message.breachEvents.length; ++i) - $root.BreachWatch.BreachEvent.encode(message.breachEvents[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.email != null && Object.hasOwnProperty.call(message, "email")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.email); + $root.BreachWatch.BreachEvent.encode( + message.breachEvents[i], + writer.uint32(/* id 3, wireType 2 =*/ 26).fork() + ).ldelim(); + if (message.email != null && Object.hasOwnProperty.call(message, 'email')) + writer.uint32(/* id 4, wireType 2 =*/ 34).string(message.email); return writer; }; @@ -135919,33 +140608,32 @@ export const BreachWatch = $root.BreachWatch = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ UseOneTimeTokenResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BreachWatch.UseOneTimeTokenResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.BreachWatch.UseOneTimeTokenResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.emailBreaches = reader.int32(); break; } - case 2: { + case 2: { message.passwordBreaches = reader.int32(); break; } - case 3: { - if (!(message.breachEvents && message.breachEvents.length)) - message.breachEvents = []; + case 3: { + if (!(message.breachEvents && message.breachEvents.length)) message.breachEvents = []; message.breachEvents.push($root.BreachWatch.BreachEvent.decode(reader, reader.uint32())); break; } - case 4: { + case 4: { message.email = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -135962,8 +140650,7 @@ export const BreachWatch = $root.BreachWatch = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ UseOneTimeTokenResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -135976,26 +140663,20 @@ export const BreachWatch = $root.BreachWatch = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ UseOneTimeTokenResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.emailBreaches != null && message.hasOwnProperty("emailBreaches")) - if (!$util.isInteger(message.emailBreaches)) - return "emailBreaches: integer expected"; - if (message.passwordBreaches != null && message.hasOwnProperty("passwordBreaches")) - if (!$util.isInteger(message.passwordBreaches)) - return "passwordBreaches: integer expected"; - if (message.breachEvents != null && message.hasOwnProperty("breachEvents")) { - if (!Array.isArray(message.breachEvents)) - return "breachEvents: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.emailBreaches != null && message.hasOwnProperty('emailBreaches')) + if (!$util.isInteger(message.emailBreaches)) return 'emailBreaches: integer expected'; + if (message.passwordBreaches != null && message.hasOwnProperty('passwordBreaches')) + if (!$util.isInteger(message.passwordBreaches)) return 'passwordBreaches: integer expected'; + if (message.breachEvents != null && message.hasOwnProperty('breachEvents')) { + if (!Array.isArray(message.breachEvents)) return 'breachEvents: array expected'; for (let i = 0; i < message.breachEvents.length; ++i) { let error = $root.BreachWatch.BreachEvent.verify(message.breachEvents[i]); - if (error) - return "breachEvents." + error; + if (error) return 'breachEvents.' + error; } } - if (message.email != null && message.hasOwnProperty("email")) - if (!$util.isString(message.email)) - return "email: string expected"; + if (message.email != null && message.hasOwnProperty('email')) + if (!$util.isString(message.email)) return 'email: string expected'; return null; }; @@ -136008,25 +140689,21 @@ export const BreachWatch = $root.BreachWatch = (() => { * @returns {BreachWatch.UseOneTimeTokenResponse} UseOneTimeTokenResponse */ UseOneTimeTokenResponse.fromObject = function fromObject(object) { - if (object instanceof $root.BreachWatch.UseOneTimeTokenResponse) - return object; + if (object instanceof $root.BreachWatch.UseOneTimeTokenResponse) return object; let message = new $root.BreachWatch.UseOneTimeTokenResponse(); - if (object.emailBreaches != null) - message.emailBreaches = object.emailBreaches | 0; - if (object.passwordBreaches != null) - message.passwordBreaches = object.passwordBreaches | 0; + if (object.emailBreaches != null) message.emailBreaches = object.emailBreaches | 0; + if (object.passwordBreaches != null) message.passwordBreaches = object.passwordBreaches | 0; if (object.breachEvents) { if (!Array.isArray(object.breachEvents)) - throw TypeError(".BreachWatch.UseOneTimeTokenResponse.breachEvents: array expected"); + throw TypeError('.BreachWatch.UseOneTimeTokenResponse.breachEvents: array expected'); message.breachEvents = []; for (let i = 0; i < object.breachEvents.length; ++i) { - if (typeof object.breachEvents[i] !== "object") - throw TypeError(".BreachWatch.UseOneTimeTokenResponse.breachEvents: object expected"); + if (typeof object.breachEvents[i] !== 'object') + throw TypeError('.BreachWatch.UseOneTimeTokenResponse.breachEvents: object expected'); message.breachEvents[i] = $root.BreachWatch.BreachEvent.fromObject(object.breachEvents[i]); } } - if (object.email != null) - message.email = String(object.email); + if (object.email != null) message.email = String(object.email); return message; }; @@ -136040,27 +140717,24 @@ export const BreachWatch = $root.BreachWatch = (() => { * @returns {Object.} Plain object */ UseOneTimeTokenResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.breachEvents = []; + if (options.arrays || options.defaults) object.breachEvents = []; if (options.defaults) { object.emailBreaches = 0; object.passwordBreaches = 0; - object.email = ""; + object.email = ''; } - if (message.emailBreaches != null && message.hasOwnProperty("emailBreaches")) + if (message.emailBreaches != null && message.hasOwnProperty('emailBreaches')) object.emailBreaches = message.emailBreaches; - if (message.passwordBreaches != null && message.hasOwnProperty("passwordBreaches")) + if (message.passwordBreaches != null && message.hasOwnProperty('passwordBreaches')) object.passwordBreaches = message.passwordBreaches; if (message.breachEvents && message.breachEvents.length) { object.breachEvents = []; for (let j = 0; j < message.breachEvents.length; ++j) object.breachEvents[j] = $root.BreachWatch.BreachEvent.toObject(message.breachEvents[j], options); } - if (message.email != null && message.hasOwnProperty("email")) - object.email = message.email; + if (message.email != null && message.hasOwnProperty('email')) object.email = message.email; return object; }; @@ -136085,16 +140759,15 @@ export const BreachWatch = $root.BreachWatch = (() => { */ UseOneTimeTokenResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/BreachWatch.UseOneTimeTokenResponse"; + return typeUrlPrefix + '/BreachWatch.UseOneTimeTokenResponse'; }; return UseOneTimeTokenResponse; })(); - BreachWatch.OneTimeUseToken = (function() { - + BreachWatch.OneTimeUseToken = (function () { /** * Properties of an OneTimeUseToken. * @memberof BreachWatch @@ -136114,8 +140787,7 @@ export const BreachWatch = $root.BreachWatch = (() => { function OneTimeUseToken(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -136124,7 +140796,7 @@ export const BreachWatch = $root.BreachWatch = (() => { * @memberof BreachWatch.OneTimeUseToken * @instance */ - OneTimeUseToken.prototype.email = ""; + OneTimeUseToken.prototype.email = ''; /** * OneTimeUseToken pad. @@ -136132,7 +140804,7 @@ export const BreachWatch = $root.BreachWatch = (() => { * @memberof BreachWatch.OneTimeUseToken * @instance */ - OneTimeUseToken.prototype.pad = ""; + OneTimeUseToken.prototype.pad = ''; /** * Creates a new OneTimeUseToken instance using the specified properties. @@ -136156,12 +140828,11 @@ export const BreachWatch = $root.BreachWatch = (() => { * @returns {$protobuf.Writer} Writer */ OneTimeUseToken.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.email != null && Object.hasOwnProperty.call(message, "email")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.email); - if (message.pad != null && Object.hasOwnProperty.call(message, "pad")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.pad); + if (!writer) writer = $Writer.create(); + if (message.email != null && Object.hasOwnProperty.call(message, 'email')) + writer.uint32(/* id 1, wireType 2 =*/ 10).string(message.email); + if (message.pad != null && Object.hasOwnProperty.call(message, 'pad')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.pad); return writer; }; @@ -136190,23 +140861,23 @@ export const BreachWatch = $root.BreachWatch = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ OneTimeUseToken.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BreachWatch.OneTimeUseToken(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.BreachWatch.OneTimeUseToken(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.email = reader.string(); break; } - case 2: { + case 2: { message.pad = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -136223,8 +140894,7 @@ export const BreachWatch = $root.BreachWatch = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ OneTimeUseToken.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -136237,14 +140907,11 @@ export const BreachWatch = $root.BreachWatch = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ OneTimeUseToken.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.email != null && message.hasOwnProperty("email")) - if (!$util.isString(message.email)) - return "email: string expected"; - if (message.pad != null && message.hasOwnProperty("pad")) - if (!$util.isString(message.pad)) - return "pad: string expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.email != null && message.hasOwnProperty('email')) + if (!$util.isString(message.email)) return 'email: string expected'; + if (message.pad != null && message.hasOwnProperty('pad')) + if (!$util.isString(message.pad)) return 'pad: string expected'; return null; }; @@ -136257,13 +140924,10 @@ export const BreachWatch = $root.BreachWatch = (() => { * @returns {BreachWatch.OneTimeUseToken} OneTimeUseToken */ OneTimeUseToken.fromObject = function fromObject(object) { - if (object instanceof $root.BreachWatch.OneTimeUseToken) - return object; + if (object instanceof $root.BreachWatch.OneTimeUseToken) return object; let message = new $root.BreachWatch.OneTimeUseToken(); - if (object.email != null) - message.email = String(object.email); - if (object.pad != null) - message.pad = String(object.pad); + if (object.email != null) message.email = String(object.email); + if (object.pad != null) message.pad = String(object.pad); return message; }; @@ -136277,17 +140941,14 @@ export const BreachWatch = $root.BreachWatch = (() => { * @returns {Object.} Plain object */ OneTimeUseToken.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - object.email = ""; - object.pad = ""; + object.email = ''; + object.pad = ''; } - if (message.email != null && message.hasOwnProperty("email")) - object.email = message.email; - if (message.pad != null && message.hasOwnProperty("pad")) - object.pad = message.pad; + if (message.email != null && message.hasOwnProperty('email')) object.email = message.email; + if (message.pad != null && message.hasOwnProperty('pad')) object.pad = message.pad; return object; }; @@ -136312,16 +140973,15 @@ export const BreachWatch = $root.BreachWatch = (() => { */ OneTimeUseToken.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/BreachWatch.OneTimeUseToken"; + return typeUrlPrefix + '/BreachWatch.OneTimeUseToken'; }; return OneTimeUseToken; })(); - BreachWatch.FreePasswordScanRequest = (function() { - + BreachWatch.FreePasswordScanRequest = (function () { /** * Properties of a FreePasswordScanRequest. * @memberof BreachWatch @@ -136340,8 +141000,7 @@ export const BreachWatch = $root.BreachWatch = (() => { function FreePasswordScanRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -136374,10 +141033,9 @@ export const BreachWatch = $root.BreachWatch = (() => { * @returns {$protobuf.Writer} Writer */ FreePasswordScanRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.hashedPassword != null && Object.hasOwnProperty.call(message, "hashedPassword")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.hashedPassword); + if (!writer) writer = $Writer.create(); + if (message.hashedPassword != null && Object.hasOwnProperty.call(message, 'hashedPassword')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.hashedPassword); return writer; }; @@ -136406,19 +141064,19 @@ export const BreachWatch = $root.BreachWatch = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ FreePasswordScanRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BreachWatch.FreePasswordScanRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.BreachWatch.FreePasswordScanRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.hashedPassword = reader.bytes(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -136435,8 +141093,7 @@ export const BreachWatch = $root.BreachWatch = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ FreePasswordScanRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -136449,11 +141106,15 @@ export const BreachWatch = $root.BreachWatch = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ FreePasswordScanRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.hashedPassword != null && message.hasOwnProperty("hashedPassword")) - if (!(message.hashedPassword && typeof message.hashedPassword.length === "number" || $util.isString(message.hashedPassword))) - return "hashedPassword: buffer expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.hashedPassword != null && message.hasOwnProperty('hashedPassword')) + if ( + !( + (message.hashedPassword && typeof message.hashedPassword.length === 'number') || + $util.isString(message.hashedPassword) + ) + ) + return 'hashedPassword: buffer expected'; return null; }; @@ -136466,14 +141127,16 @@ export const BreachWatch = $root.BreachWatch = (() => { * @returns {BreachWatch.FreePasswordScanRequest} FreePasswordScanRequest */ FreePasswordScanRequest.fromObject = function fromObject(object) { - if (object instanceof $root.BreachWatch.FreePasswordScanRequest) - return object; + if (object instanceof $root.BreachWatch.FreePasswordScanRequest) return object; let message = new $root.BreachWatch.FreePasswordScanRequest(); if (object.hashedPassword != null) - if (typeof object.hashedPassword === "string") - $util.base64.decode(object.hashedPassword, message.hashedPassword = $util.newBuffer($util.base64.length(object.hashedPassword)), 0); - else if (object.hashedPassword.length >= 0) - message.hashedPassword = object.hashedPassword; + if (typeof object.hashedPassword === 'string') + $util.base64.decode( + object.hashedPassword, + (message.hashedPassword = $util.newBuffer($util.base64.length(object.hashedPassword))), + 0 + ); + else if (object.hashedPassword.length >= 0) message.hashedPassword = object.hashedPassword; return message; }; @@ -136487,19 +141150,21 @@ export const BreachWatch = $root.BreachWatch = (() => { * @returns {Object.} Plain object */ FreePasswordScanRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) - if (options.bytes === String) - object.hashedPassword = ""; + if (options.bytes === String) object.hashedPassword = ''; else { object.hashedPassword = []; - if (options.bytes !== Array) - object.hashedPassword = $util.newBuffer(object.hashedPassword); + if (options.bytes !== Array) object.hashedPassword = $util.newBuffer(object.hashedPassword); } - if (message.hashedPassword != null && message.hasOwnProperty("hashedPassword")) - object.hashedPassword = options.bytes === String ? $util.base64.encode(message.hashedPassword, 0, message.hashedPassword.length) : options.bytes === Array ? Array.prototype.slice.call(message.hashedPassword) : message.hashedPassword; + if (message.hashedPassword != null && message.hasOwnProperty('hashedPassword')) + object.hashedPassword = + options.bytes === String + ? $util.base64.encode(message.hashedPassword, 0, message.hashedPassword.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.hashedPassword) + : message.hashedPassword; return object; }; @@ -136524,16 +141189,15 @@ export const BreachWatch = $root.BreachWatch = (() => { */ FreePasswordScanRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/BreachWatch.FreePasswordScanRequest"; + return typeUrlPrefix + '/BreachWatch.FreePasswordScanRequest'; }; return FreePasswordScanRequest; })(); - BreachWatch.FreePasswordScanResponse = (function() { - + BreachWatch.FreePasswordScanResponse = (function () { /** * Properties of a FreePasswordScanResponse. * @memberof BreachWatch @@ -136552,8 +141216,7 @@ export const BreachWatch = $root.BreachWatch = (() => { function FreePasswordScanResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -136562,7 +141225,7 @@ export const BreachWatch = $root.BreachWatch = (() => { * @memberof BreachWatch.FreePasswordScanResponse * @instance */ - FreePasswordScanResponse.prototype.passwordBreaches = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + FreePasswordScanResponse.prototype.passwordBreaches = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * Creates a new FreePasswordScanResponse instance using the specified properties. @@ -136586,10 +141249,9 @@ export const BreachWatch = $root.BreachWatch = (() => { * @returns {$protobuf.Writer} Writer */ FreePasswordScanResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.passwordBreaches != null && Object.hasOwnProperty.call(message, "passwordBreaches")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.passwordBreaches); + if (!writer) writer = $Writer.create(); + if (message.passwordBreaches != null && Object.hasOwnProperty.call(message, 'passwordBreaches')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int64(message.passwordBreaches); return writer; }; @@ -136618,19 +141280,19 @@ export const BreachWatch = $root.BreachWatch = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ FreePasswordScanResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BreachWatch.FreePasswordScanResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.BreachWatch.FreePasswordScanResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.passwordBreaches = reader.int64(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -136647,8 +141309,7 @@ export const BreachWatch = $root.BreachWatch = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ FreePasswordScanResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -136661,11 +141322,17 @@ export const BreachWatch = $root.BreachWatch = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ FreePasswordScanResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.passwordBreaches != null && message.hasOwnProperty("passwordBreaches")) - if (!$util.isInteger(message.passwordBreaches) && !(message.passwordBreaches && $util.isInteger(message.passwordBreaches.low) && $util.isInteger(message.passwordBreaches.high))) - return "passwordBreaches: integer|Long expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.passwordBreaches != null && message.hasOwnProperty('passwordBreaches')) + if ( + !$util.isInteger(message.passwordBreaches) && + !( + message.passwordBreaches && + $util.isInteger(message.passwordBreaches.low) && + $util.isInteger(message.passwordBreaches.high) + ) + ) + return 'passwordBreaches: integer|Long expected'; return null; }; @@ -136678,18 +141345,20 @@ export const BreachWatch = $root.BreachWatch = (() => { * @returns {BreachWatch.FreePasswordScanResponse} FreePasswordScanResponse */ FreePasswordScanResponse.fromObject = function fromObject(object) { - if (object instanceof $root.BreachWatch.FreePasswordScanResponse) - return object; + if (object instanceof $root.BreachWatch.FreePasswordScanResponse) return object; let message = new $root.BreachWatch.FreePasswordScanResponse(); if (object.passwordBreaches != null) if ($util.Long) (message.passwordBreaches = $util.Long.fromValue(object.passwordBreaches)).unsigned = false; - else if (typeof object.passwordBreaches === "string") + else if (typeof object.passwordBreaches === 'string') message.passwordBreaches = parseInt(object.passwordBreaches, 10); - else if (typeof object.passwordBreaches === "number") + else if (typeof object.passwordBreaches === 'number') message.passwordBreaches = object.passwordBreaches; - else if (typeof object.passwordBreaches === "object") - message.passwordBreaches = new $util.LongBits(object.passwordBreaches.low >>> 0, object.passwordBreaches.high >>> 0).toNumber(); + else if (typeof object.passwordBreaches === 'object') + message.passwordBreaches = new $util.LongBits( + object.passwordBreaches.low >>> 0, + object.passwordBreaches.high >>> 0 + ).toNumber(); return message; }; @@ -136703,20 +141372,28 @@ export const BreachWatch = $root.BreachWatch = (() => { * @returns {Object.} Plain object */ FreePasswordScanResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) if ($util.Long) { let long = new $util.Long(0, 0, false); - object.passwordBreaches = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.passwordBreaches = options.longs === String ? "0" : 0; - if (message.passwordBreaches != null && message.hasOwnProperty("passwordBreaches")) - if (typeof message.passwordBreaches === "number") - object.passwordBreaches = options.longs === String ? String(message.passwordBreaches) : message.passwordBreaches; + object.passwordBreaches = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.passwordBreaches = options.longs === String ? '0' : 0; + if (message.passwordBreaches != null && message.hasOwnProperty('passwordBreaches')) + if (typeof message.passwordBreaches === 'number') + object.passwordBreaches = + options.longs === String ? String(message.passwordBreaches) : message.passwordBreaches; else - object.passwordBreaches = options.longs === String ? $util.Long.prototype.toString.call(message.passwordBreaches) : options.longs === Number ? new $util.LongBits(message.passwordBreaches.low >>> 0, message.passwordBreaches.high >>> 0).toNumber() : message.passwordBreaches; + object.passwordBreaches = + options.longs === String + ? $util.Long.prototype.toString.call(message.passwordBreaches) + : options.longs === Number + ? new $util.LongBits( + message.passwordBreaches.low >>> 0, + message.passwordBreaches.high >>> 0 + ).toNumber() + : message.passwordBreaches; return object; }; @@ -136741,19 +141418,18 @@ export const BreachWatch = $root.BreachWatch = (() => { */ FreePasswordScanResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/BreachWatch.FreePasswordScanResponse"; + return typeUrlPrefix + '/BreachWatch.FreePasswordScanResponse'; }; return FreePasswordScanResponse; })(); return BreachWatch; -})(); - -export const Tokens = $root.Tokens = (() => { +})()); +export const Tokens = ($root.Tokens = (() => { /** * Namespace Tokens. * @exports Tokens @@ -136761,8 +141437,7 @@ export const Tokens = $root.Tokens = (() => { */ const Tokens = {}; - Tokens.BreachWatchUpdateRequest = (function() { - + Tokens.BreachWatchUpdateRequest = (function () { /** * Properties of a BreachWatchUpdateRequest. * @memberof Tokens @@ -136783,8 +141458,7 @@ export const Tokens = $root.Tokens = (() => { this.breachWatchRecordRequest = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -136825,13 +141499,15 @@ export const Tokens = $root.Tokens = (() => { * @returns {$protobuf.Writer} Writer */ BreachWatchUpdateRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.breachWatchRecordRequest != null && message.breachWatchRecordRequest.length) for (let i = 0; i < message.breachWatchRecordRequest.length; ++i) - $root.Tokens.BreachWatchRecordRequest.encode(message.breachWatchRecordRequest[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.encryptedData != null && Object.hasOwnProperty.call(message, "encryptedData")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.encryptedData); + $root.Tokens.BreachWatchRecordRequest.encode( + message.breachWatchRecordRequest[i], + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); + if (message.encryptedData != null && Object.hasOwnProperty.call(message, 'encryptedData')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.encryptedData); return writer; }; @@ -136860,25 +141536,27 @@ export const Tokens = $root.Tokens = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ BreachWatchUpdateRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Tokens.BreachWatchUpdateRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Tokens.BreachWatchUpdateRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { if (!(message.breachWatchRecordRequest && message.breachWatchRecordRequest.length)) message.breachWatchRecordRequest = []; - message.breachWatchRecordRequest.push($root.Tokens.BreachWatchRecordRequest.decode(reader, reader.uint32())); + message.breachWatchRecordRequest.push( + $root.Tokens.BreachWatchRecordRequest.decode(reader, reader.uint32()) + ); break; } - case 2: { + case 2: { message.encryptedData = reader.bytes(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -136895,8 +141573,7 @@ export const Tokens = $root.Tokens = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ BreachWatchUpdateRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -136909,20 +141586,22 @@ export const Tokens = $root.Tokens = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ BreachWatchUpdateRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.breachWatchRecordRequest != null && message.hasOwnProperty("breachWatchRecordRequest")) { - if (!Array.isArray(message.breachWatchRecordRequest)) - return "breachWatchRecordRequest: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.breachWatchRecordRequest != null && message.hasOwnProperty('breachWatchRecordRequest')) { + if (!Array.isArray(message.breachWatchRecordRequest)) return 'breachWatchRecordRequest: array expected'; for (let i = 0; i < message.breachWatchRecordRequest.length; ++i) { let error = $root.Tokens.BreachWatchRecordRequest.verify(message.breachWatchRecordRequest[i]); - if (error) - return "breachWatchRecordRequest." + error; + if (error) return 'breachWatchRecordRequest.' + error; } } - if (message.encryptedData != null && message.hasOwnProperty("encryptedData")) - if (!(message.encryptedData && typeof message.encryptedData.length === "number" || $util.isString(message.encryptedData))) - return "encryptedData: buffer expected"; + if (message.encryptedData != null && message.hasOwnProperty('encryptedData')) + if ( + !( + (message.encryptedData && typeof message.encryptedData.length === 'number') || + $util.isString(message.encryptedData) + ) + ) + return 'encryptedData: buffer expected'; return null; }; @@ -136935,24 +141614,28 @@ export const Tokens = $root.Tokens = (() => { * @returns {Tokens.BreachWatchUpdateRequest} BreachWatchUpdateRequest */ BreachWatchUpdateRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Tokens.BreachWatchUpdateRequest) - return object; + if (object instanceof $root.Tokens.BreachWatchUpdateRequest) return object; let message = new $root.Tokens.BreachWatchUpdateRequest(); if (object.breachWatchRecordRequest) { if (!Array.isArray(object.breachWatchRecordRequest)) - throw TypeError(".Tokens.BreachWatchUpdateRequest.breachWatchRecordRequest: array expected"); + throw TypeError('.Tokens.BreachWatchUpdateRequest.breachWatchRecordRequest: array expected'); message.breachWatchRecordRequest = []; for (let i = 0; i < object.breachWatchRecordRequest.length; ++i) { - if (typeof object.breachWatchRecordRequest[i] !== "object") - throw TypeError(".Tokens.BreachWatchUpdateRequest.breachWatchRecordRequest: object expected"); - message.breachWatchRecordRequest[i] = $root.Tokens.BreachWatchRecordRequest.fromObject(object.breachWatchRecordRequest[i]); + if (typeof object.breachWatchRecordRequest[i] !== 'object') + throw TypeError('.Tokens.BreachWatchUpdateRequest.breachWatchRecordRequest: object expected'); + message.breachWatchRecordRequest[i] = $root.Tokens.BreachWatchRecordRequest.fromObject( + object.breachWatchRecordRequest[i] + ); } } if (object.encryptedData != null) - if (typeof object.encryptedData === "string") - $util.base64.decode(object.encryptedData, message.encryptedData = $util.newBuffer($util.base64.length(object.encryptedData)), 0); - else if (object.encryptedData.length >= 0) - message.encryptedData = object.encryptedData; + if (typeof object.encryptedData === 'string') + $util.base64.decode( + object.encryptedData, + (message.encryptedData = $util.newBuffer($util.base64.length(object.encryptedData))), + 0 + ); + else if (object.encryptedData.length >= 0) message.encryptedData = object.encryptedData; return message; }; @@ -136966,26 +141649,30 @@ export const Tokens = $root.Tokens = (() => { * @returns {Object.} Plain object */ BreachWatchUpdateRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.breachWatchRecordRequest = []; + if (options.arrays || options.defaults) object.breachWatchRecordRequest = []; if (options.defaults) - if (options.bytes === String) - object.encryptedData = ""; + if (options.bytes === String) object.encryptedData = ''; else { object.encryptedData = []; - if (options.bytes !== Array) - object.encryptedData = $util.newBuffer(object.encryptedData); + if (options.bytes !== Array) object.encryptedData = $util.newBuffer(object.encryptedData); } if (message.breachWatchRecordRequest && message.breachWatchRecordRequest.length) { object.breachWatchRecordRequest = []; for (let j = 0; j < message.breachWatchRecordRequest.length; ++j) - object.breachWatchRecordRequest[j] = $root.Tokens.BreachWatchRecordRequest.toObject(message.breachWatchRecordRequest[j], options); + object.breachWatchRecordRequest[j] = $root.Tokens.BreachWatchRecordRequest.toObject( + message.breachWatchRecordRequest[j], + options + ); } - if (message.encryptedData != null && message.hasOwnProperty("encryptedData")) - object.encryptedData = options.bytes === String ? $util.base64.encode(message.encryptedData, 0, message.encryptedData.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedData) : message.encryptedData; + if (message.encryptedData != null && message.hasOwnProperty('encryptedData')) + object.encryptedData = + options.bytes === String + ? $util.base64.encode(message.encryptedData, 0, message.encryptedData.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.encryptedData) + : message.encryptedData; return object; }; @@ -137010,16 +141697,15 @@ export const Tokens = $root.Tokens = (() => { */ BreachWatchUpdateRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Tokens.BreachWatchUpdateRequest"; + return typeUrlPrefix + '/Tokens.BreachWatchUpdateRequest'; }; return BreachWatchUpdateRequest; })(); - Tokens.BreachWatchRecordRequest = (function() { - + Tokens.BreachWatchRecordRequest = (function () { /** * Properties of a BreachWatchRecordRequest. * @memberof Tokens @@ -137041,8 +141727,7 @@ export const Tokens = $root.Tokens = (() => { function BreachWatchRecordRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -137099,16 +141784,15 @@ export const Tokens = $root.Tokens = (() => { * @returns {$protobuf.Writer} Writer */ BreachWatchRecordRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); - if (message.encryptedData != null && Object.hasOwnProperty.call(message, "encryptedData")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.encryptedData); - if (message.breachWatchInfoType != null && Object.hasOwnProperty.call(message, "breachWatchInfoType")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.breachWatchInfoType); - if (message.updateUserWhoScanned != null && Object.hasOwnProperty.call(message, "updateUserWhoScanned")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.updateUserWhoScanned); + if (!writer) writer = $Writer.create(); + if (message.recordUid != null && Object.hasOwnProperty.call(message, 'recordUid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.recordUid); + if (message.encryptedData != null && Object.hasOwnProperty.call(message, 'encryptedData')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.encryptedData); + if (message.breachWatchInfoType != null && Object.hasOwnProperty.call(message, 'breachWatchInfoType')) + writer.uint32(/* id 3, wireType 0 =*/ 24).int32(message.breachWatchInfoType); + if (message.updateUserWhoScanned != null && Object.hasOwnProperty.call(message, 'updateUserWhoScanned')) + writer.uint32(/* id 4, wireType 0 =*/ 32).bool(message.updateUserWhoScanned); return writer; }; @@ -137137,31 +141821,31 @@ export const Tokens = $root.Tokens = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ BreachWatchRecordRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Tokens.BreachWatchRecordRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Tokens.BreachWatchRecordRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.recordUid = reader.bytes(); break; } - case 2: { + case 2: { message.encryptedData = reader.bytes(); break; } - case 3: { + case 3: { message.breachWatchInfoType = reader.int32(); break; } - case 4: { + case 4: { message.updateUserWhoScanned = reader.bool(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -137178,8 +141862,7 @@ export const Tokens = $root.Tokens = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ BreachWatchRecordRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -137192,25 +141875,33 @@ export const Tokens = $root.Tokens = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ BreachWatchRecordRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) - return "recordUid: buffer expected"; - if (message.encryptedData != null && message.hasOwnProperty("encryptedData")) - if (!(message.encryptedData && typeof message.encryptedData.length === "number" || $util.isString(message.encryptedData))) - return "encryptedData: buffer expected"; - if (message.breachWatchInfoType != null && message.hasOwnProperty("breachWatchInfoType")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.recordUid != null && message.hasOwnProperty('recordUid')) + if ( + !( + (message.recordUid && typeof message.recordUid.length === 'number') || + $util.isString(message.recordUid) + ) + ) + return 'recordUid: buffer expected'; + if (message.encryptedData != null && message.hasOwnProperty('encryptedData')) + if ( + !( + (message.encryptedData && typeof message.encryptedData.length === 'number') || + $util.isString(message.encryptedData) + ) + ) + return 'encryptedData: buffer expected'; + if (message.breachWatchInfoType != null && message.hasOwnProperty('breachWatchInfoType')) switch (message.breachWatchInfoType) { - default: - return "breachWatchInfoType: enum value expected"; - case 0: - case 1: - break; + default: + return 'breachWatchInfoType: enum value expected'; + case 0: + case 1: + break; } - if (message.updateUserWhoScanned != null && message.hasOwnProperty("updateUserWhoScanned")) - if (typeof message.updateUserWhoScanned !== "boolean") - return "updateUserWhoScanned: boolean expected"; + if (message.updateUserWhoScanned != null && message.hasOwnProperty('updateUserWhoScanned')) + if (typeof message.updateUserWhoScanned !== 'boolean') return 'updateUserWhoScanned: boolean expected'; return null; }; @@ -137223,34 +141914,39 @@ export const Tokens = $root.Tokens = (() => { * @returns {Tokens.BreachWatchRecordRequest} BreachWatchRecordRequest */ BreachWatchRecordRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Tokens.BreachWatchRecordRequest) - return object; + if (object instanceof $root.Tokens.BreachWatchRecordRequest) return object; let message = new $root.Tokens.BreachWatchRecordRequest(); 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 (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.encryptedData != null) - if (typeof object.encryptedData === "string") - $util.base64.decode(object.encryptedData, message.encryptedData = $util.newBuffer($util.base64.length(object.encryptedData)), 0); - else if (object.encryptedData.length >= 0) - message.encryptedData = object.encryptedData; + if (typeof object.encryptedData === 'string') + $util.base64.decode( + object.encryptedData, + (message.encryptedData = $util.newBuffer($util.base64.length(object.encryptedData))), + 0 + ); + else if (object.encryptedData.length >= 0) message.encryptedData = object.encryptedData; switch (object.breachWatchInfoType) { - default: - if (typeof object.breachWatchInfoType === "number") { - message.breachWatchInfoType = object.breachWatchInfoType; + default: + if (typeof object.breachWatchInfoType === 'number') { + message.breachWatchInfoType = object.breachWatchInfoType; + break; + } + break; + case 'RECORD': + case 0: + message.breachWatchInfoType = 0; + break; + case 'ALTERNATE_PASSWORD': + case 1: + message.breachWatchInfoType = 1; break; - } - break; - case "RECORD": - case 0: - message.breachWatchInfoType = 0; - break; - case "ALTERNATE_PASSWORD": - case 1: - message.breachWatchInfoType = 1; - break; } if (object.updateUserWhoScanned != null) message.updateUserWhoScanned = Boolean(object.updateUserWhoScanned); @@ -137267,34 +141963,44 @@ export const Tokens = $root.Tokens = (() => { * @returns {Object.} Plain object */ BreachWatchRecordRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.recordUid = ""; + if (options.bytes === String) object.recordUid = ''; else { object.recordUid = []; - if (options.bytes !== Array) - object.recordUid = $util.newBuffer(object.recordUid); + if (options.bytes !== Array) object.recordUid = $util.newBuffer(object.recordUid); } - if (options.bytes === String) - object.encryptedData = ""; + if (options.bytes === String) object.encryptedData = ''; else { object.encryptedData = []; - if (options.bytes !== Array) - object.encryptedData = $util.newBuffer(object.encryptedData); + if (options.bytes !== Array) object.encryptedData = $util.newBuffer(object.encryptedData); } - object.breachWatchInfoType = options.enums === String ? "RECORD" : 0; + object.breachWatchInfoType = options.enums === String ? 'RECORD' : 0; object.updateUserWhoScanned = false; } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; - if (message.encryptedData != null && message.hasOwnProperty("encryptedData")) - object.encryptedData = options.bytes === String ? $util.base64.encode(message.encryptedData, 0, message.encryptedData.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedData) : message.encryptedData; - if (message.breachWatchInfoType != null && message.hasOwnProperty("breachWatchInfoType")) - object.breachWatchInfoType = options.enums === String ? $root.Tokens.BreachWatchInfoType[message.breachWatchInfoType] === undefined ? message.breachWatchInfoType : $root.Tokens.BreachWatchInfoType[message.breachWatchInfoType] : message.breachWatchInfoType; - if (message.updateUserWhoScanned != null && message.hasOwnProperty("updateUserWhoScanned")) + if (message.recordUid != null && message.hasOwnProperty('recordUid')) + object.recordUid = + options.bytes === String + ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.recordUid) + : message.recordUid; + if (message.encryptedData != null && message.hasOwnProperty('encryptedData')) + object.encryptedData = + options.bytes === String + ? $util.base64.encode(message.encryptedData, 0, message.encryptedData.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.encryptedData) + : message.encryptedData; + if (message.breachWatchInfoType != null && message.hasOwnProperty('breachWatchInfoType')) + object.breachWatchInfoType = + options.enums === String + ? $root.Tokens.BreachWatchInfoType[message.breachWatchInfoType] === undefined + ? message.breachWatchInfoType + : $root.Tokens.BreachWatchInfoType[message.breachWatchInfoType] + : message.breachWatchInfoType; + if (message.updateUserWhoScanned != null && message.hasOwnProperty('updateUserWhoScanned')) object.updateUserWhoScanned = message.updateUserWhoScanned; return object; }; @@ -137320,9 +142026,9 @@ export const Tokens = $root.Tokens = (() => { */ BreachWatchRecordRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Tokens.BreachWatchRecordRequest"; + return typeUrlPrefix + '/Tokens.BreachWatchRecordRequest'; }; return BreachWatchRecordRequest; @@ -137335,15 +142041,15 @@ export const Tokens = $root.Tokens = (() => { * @property {number} RECORD=0 RECORD value * @property {number} ALTERNATE_PASSWORD=1 ALTERNATE_PASSWORD value */ - Tokens.BreachWatchInfoType = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "RECORD"] = 0; - values[valuesById[1] = "ALTERNATE_PASSWORD"] = 1; + Tokens.BreachWatchInfoType = (function () { + const valuesById = {}, + values = Object.create(valuesById); + values[(valuesById[0] = 'RECORD')] = 0; + values[(valuesById[1] = 'ALTERNATE_PASSWORD')] = 1; return values; })(); - Tokens.BreachWatchData = (function() { - + Tokens.BreachWatchData = (function () { /** * Properties of a BreachWatchData. * @memberof Tokens @@ -137367,8 +142073,7 @@ export const Tokens = $root.Tokens = (() => { this.domains = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -137417,17 +142122,25 @@ export const Tokens = $root.Tokens = (() => { * @returns {$protobuf.Writer} Writer */ BreachWatchData.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.passwords != null && message.passwords.length) for (let i = 0; i < message.passwords.length; ++i) - $root.Tokens.BWPassword.encode(message.passwords[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.Tokens.BWPassword.encode( + message.passwords[i], + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); if (message.emails != null && message.emails.length) for (let i = 0; i < message.emails.length; ++i) - $root.Tokens.BWPassword.encode(message.emails[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + $root.Tokens.BWPassword.encode( + message.emails[i], + writer.uint32(/* id 2, wireType 2 =*/ 18).fork() + ).ldelim(); if (message.domains != null && message.domains.length) for (let i = 0; i < message.domains.length; ++i) - $root.Tokens.BWPassword.encode(message.domains[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + $root.Tokens.BWPassword.encode( + message.domains[i], + writer.uint32(/* id 3, wireType 2 =*/ 26).fork() + ).ldelim(); return writer; }; @@ -137456,33 +142169,30 @@ export const Tokens = $root.Tokens = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ BreachWatchData.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Tokens.BreachWatchData(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Tokens.BreachWatchData(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (!(message.passwords && message.passwords.length)) - message.passwords = []; + case 1: { + if (!(message.passwords && message.passwords.length)) message.passwords = []; message.passwords.push($root.Tokens.BWPassword.decode(reader, reader.uint32())); break; } - case 2: { - if (!(message.emails && message.emails.length)) - message.emails = []; + case 2: { + if (!(message.emails && message.emails.length)) message.emails = []; message.emails.push($root.Tokens.BWPassword.decode(reader, reader.uint32())); break; } - case 3: { - if (!(message.domains && message.domains.length)) - message.domains = []; + case 3: { + if (!(message.domains && message.domains.length)) message.domains = []; message.domains.push($root.Tokens.BWPassword.decode(reader, reader.uint32())); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -137499,8 +142209,7 @@ export const Tokens = $root.Tokens = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ BreachWatchData.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -137513,33 +142222,26 @@ export const Tokens = $root.Tokens = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ BreachWatchData.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.passwords != null && message.hasOwnProperty("passwords")) { - if (!Array.isArray(message.passwords)) - return "passwords: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.passwords != null && message.hasOwnProperty('passwords')) { + if (!Array.isArray(message.passwords)) return 'passwords: array expected'; for (let i = 0; i < message.passwords.length; ++i) { let error = $root.Tokens.BWPassword.verify(message.passwords[i]); - if (error) - return "passwords." + error; + if (error) return 'passwords.' + error; } } - if (message.emails != null && message.hasOwnProperty("emails")) { - if (!Array.isArray(message.emails)) - return "emails: array expected"; + if (message.emails != null && message.hasOwnProperty('emails')) { + if (!Array.isArray(message.emails)) return 'emails: array expected'; for (let i = 0; i < message.emails.length; ++i) { let error = $root.Tokens.BWPassword.verify(message.emails[i]); - if (error) - return "emails." + error; + if (error) return 'emails.' + error; } } - if (message.domains != null && message.hasOwnProperty("domains")) { - if (!Array.isArray(message.domains)) - return "domains: array expected"; + if (message.domains != null && message.hasOwnProperty('domains')) { + if (!Array.isArray(message.domains)) return 'domains: array expected'; for (let i = 0; i < message.domains.length; ++i) { let error = $root.Tokens.BWPassword.verify(message.domains[i]); - if (error) - return "domains." + error; + if (error) return 'domains.' + error; } } return null; @@ -137554,36 +142256,33 @@ export const Tokens = $root.Tokens = (() => { * @returns {Tokens.BreachWatchData} BreachWatchData */ BreachWatchData.fromObject = function fromObject(object) { - if (object instanceof $root.Tokens.BreachWatchData) - return object; + if (object instanceof $root.Tokens.BreachWatchData) return object; let message = new $root.Tokens.BreachWatchData(); if (object.passwords) { if (!Array.isArray(object.passwords)) - throw TypeError(".Tokens.BreachWatchData.passwords: array expected"); + throw TypeError('.Tokens.BreachWatchData.passwords: array expected'); message.passwords = []; for (let i = 0; i < object.passwords.length; ++i) { - if (typeof object.passwords[i] !== "object") - throw TypeError(".Tokens.BreachWatchData.passwords: object expected"); + if (typeof object.passwords[i] !== 'object') + throw TypeError('.Tokens.BreachWatchData.passwords: object expected'); message.passwords[i] = $root.Tokens.BWPassword.fromObject(object.passwords[i]); } } if (object.emails) { - if (!Array.isArray(object.emails)) - throw TypeError(".Tokens.BreachWatchData.emails: array expected"); + if (!Array.isArray(object.emails)) throw TypeError('.Tokens.BreachWatchData.emails: array expected'); message.emails = []; for (let i = 0; i < object.emails.length; ++i) { - if (typeof object.emails[i] !== "object") - throw TypeError(".Tokens.BreachWatchData.emails: object expected"); + if (typeof object.emails[i] !== 'object') + throw TypeError('.Tokens.BreachWatchData.emails: object expected'); message.emails[i] = $root.Tokens.BWPassword.fromObject(object.emails[i]); } } if (object.domains) { - if (!Array.isArray(object.domains)) - throw TypeError(".Tokens.BreachWatchData.domains: array expected"); + if (!Array.isArray(object.domains)) throw TypeError('.Tokens.BreachWatchData.domains: array expected'); message.domains = []; for (let i = 0; i < object.domains.length; ++i) { - if (typeof object.domains[i] !== "object") - throw TypeError(".Tokens.BreachWatchData.domains: object expected"); + if (typeof object.domains[i] !== 'object') + throw TypeError('.Tokens.BreachWatchData.domains: object expected'); message.domains[i] = $root.Tokens.BWPassword.fromObject(object.domains[i]); } } @@ -137600,8 +142299,7 @@ export const Tokens = $root.Tokens = (() => { * @returns {Object.} Plain object */ BreachWatchData.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.arrays || options.defaults) { object.passwords = []; @@ -137647,16 +142345,15 @@ export const Tokens = $root.Tokens = (() => { */ BreachWatchData.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Tokens.BreachWatchData"; + return typeUrlPrefix + '/Tokens.BreachWatchData'; }; return BreachWatchData; })(); - Tokens.BWPassword = (function() { - + Tokens.BWPassword = (function () { /** * Properties of a BWPassword. * @memberof Tokens @@ -137678,8 +142375,7 @@ export const Tokens = $root.Tokens = (() => { function BWPassword(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -137688,7 +142384,7 @@ export const Tokens = $root.Tokens = (() => { * @memberof Tokens.BWPassword * @instance */ - BWPassword.prototype.value = ""; + BWPassword.prototype.value = ''; /** * BWPassword resolved. @@ -137696,7 +142392,7 @@ export const Tokens = $root.Tokens = (() => { * @memberof Tokens.BWPassword * @instance */ - BWPassword.prototype.resolved = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + BWPassword.prototype.resolved = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; /** * BWPassword status. @@ -137736,16 +142432,15 @@ export const Tokens = $root.Tokens = (() => { * @returns {$protobuf.Writer} Writer */ BWPassword.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.value != null && Object.hasOwnProperty.call(message, "value")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.value); - if (message.resolved != null && Object.hasOwnProperty.call(message, "resolved")) - writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.resolved); - if (message.status != null && Object.hasOwnProperty.call(message, "status")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.status); - if (message.euid != null && Object.hasOwnProperty.call(message, "euid")) - writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.euid); + if (!writer) writer = $Writer.create(); + if (message.value != null && Object.hasOwnProperty.call(message, 'value')) + writer.uint32(/* id 1, wireType 2 =*/ 10).string(message.value); + if (message.resolved != null && Object.hasOwnProperty.call(message, 'resolved')) + writer.uint32(/* id 2, wireType 0 =*/ 16).uint64(message.resolved); + if (message.status != null && Object.hasOwnProperty.call(message, 'status')) + writer.uint32(/* id 3, wireType 0 =*/ 24).int32(message.status); + if (message.euid != null && Object.hasOwnProperty.call(message, 'euid')) + writer.uint32(/* id 4, wireType 2 =*/ 34).bytes(message.euid); return writer; }; @@ -137774,31 +142469,31 @@ export const Tokens = $root.Tokens = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ BWPassword.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Tokens.BWPassword(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Tokens.BWPassword(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.value = reader.string(); break; } - case 2: { + case 2: { message.resolved = reader.uint64(); break; } - case 3: { + case 3: { message.status = reader.int32(); break; } - case 4: { + case 4: { message.euid = reader.bytes(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -137815,8 +142510,7 @@ export const Tokens = $root.Tokens = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ BWPassword.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -137829,28 +142523,33 @@ export const Tokens = $root.Tokens = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ BWPassword.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.value != null && message.hasOwnProperty("value")) - if (!$util.isString(message.value)) - return "value: string expected"; - if (message.resolved != null && message.hasOwnProperty("resolved")) - if (!$util.isInteger(message.resolved) && !(message.resolved && $util.isInteger(message.resolved.low) && $util.isInteger(message.resolved.high))) - return "resolved: integer|Long expected"; - if (message.status != null && message.hasOwnProperty("status")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.value != null && message.hasOwnProperty('value')) + if (!$util.isString(message.value)) return 'value: string expected'; + if (message.resolved != null && message.hasOwnProperty('resolved')) + if ( + !$util.isInteger(message.resolved) && + !( + message.resolved && + $util.isInteger(message.resolved.low) && + $util.isInteger(message.resolved.high) + ) + ) + return 'resolved: integer|Long expected'; + if (message.status != null && message.hasOwnProperty('status')) switch (message.status) { - default: - return "status: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; + default: + return 'status: enum value expected'; + case 0: + case 1: + case 2: + case 3: + case 4: + break; } - if (message.euid != null && message.hasOwnProperty("euid")) - if (!(message.euid && typeof message.euid.length === "number" || $util.isString(message.euid))) - return "euid: buffer expected"; + if (message.euid != null && message.hasOwnProperty('euid')) + if (!((message.euid && typeof message.euid.length === 'number') || $util.isString(message.euid))) + return 'euid: buffer expected'; return null; }; @@ -137863,53 +142562,54 @@ export const Tokens = $root.Tokens = (() => { * @returns {Tokens.BWPassword} BWPassword */ BWPassword.fromObject = function fromObject(object) { - if (object instanceof $root.Tokens.BWPassword) - return object; + if (object instanceof $root.Tokens.BWPassword) return object; let message = new $root.Tokens.BWPassword(); - if (object.value != null) - message.value = String(object.value); + if (object.value != null) message.value = String(object.value); if (object.resolved != null) - if ($util.Long) - (message.resolved = $util.Long.fromValue(object.resolved)).unsigned = true; - else if (typeof object.resolved === "string") - message.resolved = parseInt(object.resolved, 10); - else if (typeof object.resolved === "number") - message.resolved = object.resolved; - else if (typeof object.resolved === "object") - message.resolved = new $util.LongBits(object.resolved.low >>> 0, object.resolved.high >>> 0).toNumber(true); + if ($util.Long) (message.resolved = $util.Long.fromValue(object.resolved)).unsigned = true; + else if (typeof object.resolved === 'string') message.resolved = parseInt(object.resolved, 10); + else if (typeof object.resolved === 'number') message.resolved = object.resolved; + else if (typeof object.resolved === 'object') + message.resolved = new $util.LongBits( + object.resolved.low >>> 0, + object.resolved.high >>> 0 + ).toNumber(true); switch (object.status) { - default: - if (typeof object.status === "number") { - message.status = object.status; - break; - } - break; - case "GOOD": - case 0: - message.status = 0; - break; - case "CHANGED": - case 1: - message.status = 1; - break; - case "WEAK": - case 2: - message.status = 2; - break; - case "BREACHED": - case 3: - message.status = 3; - break; - case "IGNORE": - case 4: - message.status = 4; - break; + default: + if (typeof object.status === 'number') { + message.status = object.status; + break; + } + break; + case 'GOOD': + case 0: + message.status = 0; + break; + case 'CHANGED': + case 1: + message.status = 1; + break; + case 'WEAK': + case 2: + message.status = 2; + break; + case 'BREACHED': + case 3: + message.status = 3; + break; + case 'IGNORE': + case 4: + message.status = 4; + break; } if (object.euid != null) - if (typeof object.euid === "string") - $util.base64.decode(object.euid, message.euid = $util.newBuffer($util.base64.length(object.euid)), 0); - else if (object.euid.length >= 0) - message.euid = object.euid; + if (typeof object.euid === 'string') + $util.base64.decode( + object.euid, + (message.euid = $util.newBuffer($util.base64.length(object.euid))), + 0 + ); + else if (object.euid.length >= 0) message.euid = object.euid; return message; }; @@ -137923,36 +142623,49 @@ export const Tokens = $root.Tokens = (() => { * @returns {Object.} Plain object */ BWPassword.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - object.value = ""; + object.value = ''; if ($util.Long) { let long = new $util.Long(0, 0, true); - object.resolved = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.resolved = options.longs === String ? "0" : 0; - object.status = options.enums === String ? "GOOD" : 0; - if (options.bytes === String) - object.euid = ""; + object.resolved = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.resolved = options.longs === String ? '0' : 0; + object.status = options.enums === String ? 'GOOD' : 0; + if (options.bytes === String) object.euid = ''; else { object.euid = []; - if (options.bytes !== Array) - object.euid = $util.newBuffer(object.euid); + if (options.bytes !== Array) object.euid = $util.newBuffer(object.euid); } } - if (message.value != null && message.hasOwnProperty("value")) - object.value = message.value; - if (message.resolved != null && message.hasOwnProperty("resolved")) - if (typeof message.resolved === "number") + if (message.value != null && message.hasOwnProperty('value')) object.value = message.value; + if (message.resolved != null && message.hasOwnProperty('resolved')) + if (typeof message.resolved === 'number') object.resolved = options.longs === String ? String(message.resolved) : message.resolved; else - object.resolved = options.longs === String ? $util.Long.prototype.toString.call(message.resolved) : options.longs === Number ? new $util.LongBits(message.resolved.low >>> 0, message.resolved.high >>> 0).toNumber(true) : message.resolved; - if (message.status != null && message.hasOwnProperty("status")) - object.status = options.enums === String ? $root.Tokens.BWStatus[message.status] === undefined ? message.status : $root.Tokens.BWStatus[message.status] : message.status; - if (message.euid != null && message.hasOwnProperty("euid")) - object.euid = options.bytes === String ? $util.base64.encode(message.euid, 0, message.euid.length) : options.bytes === Array ? Array.prototype.slice.call(message.euid) : message.euid; + object.resolved = + options.longs === String + ? $util.Long.prototype.toString.call(message.resolved) + : options.longs === Number + ? new $util.LongBits(message.resolved.low >>> 0, message.resolved.high >>> 0).toNumber( + true + ) + : message.resolved; + if (message.status != null && message.hasOwnProperty('status')) + object.status = + options.enums === String + ? $root.Tokens.BWStatus[message.status] === undefined + ? message.status + : $root.Tokens.BWStatus[message.status] + : message.status; + if (message.euid != null && message.hasOwnProperty('euid')) + object.euid = + options.bytes === String + ? $util.base64.encode(message.euid, 0, message.euid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.euid) + : message.euid; return object; }; @@ -137977,9 +142690,9 @@ export const Tokens = $root.Tokens = (() => { */ BWPassword.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Tokens.BWPassword"; + return typeUrlPrefix + '/Tokens.BWPassword'; }; return BWPassword; @@ -137995,18 +142708,18 @@ export const Tokens = $root.Tokens = (() => { * @property {number} BREACHED=3 BREACHED value * @property {number} IGNORE=4 IGNORE value */ - Tokens.BWStatus = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "GOOD"] = 0; - values[valuesById[1] = "CHANGED"] = 1; - values[valuesById[2] = "WEAK"] = 2; - values[valuesById[3] = "BREACHED"] = 3; - values[valuesById[4] = "IGNORE"] = 4; + Tokens.BWStatus = (function () { + const valuesById = {}, + values = Object.create(valuesById); + values[(valuesById[0] = 'GOOD')] = 0; + values[(valuesById[1] = 'CHANGED')] = 1; + values[(valuesById[2] = 'WEAK')] = 2; + values[(valuesById[3] = 'BREACHED')] = 3; + values[(valuesById[4] = 'IGNORE')] = 4; return values; })(); - Tokens.DeviceToken = (function() { - + Tokens.DeviceToken = (function () { /** * Properties of a DeviceToken. * @memberof Tokens @@ -138026,8 +142739,7 @@ export const Tokens = $root.Tokens = (() => { function DeviceToken(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -138036,7 +142748,7 @@ export const Tokens = $root.Tokens = (() => { * @memberof Tokens.DeviceToken * @instance */ - DeviceToken.prototype.deviceId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + DeviceToken.prototype.deviceId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * DeviceToken region. @@ -138068,12 +142780,11 @@ export const Tokens = $root.Tokens = (() => { * @returns {$protobuf.Writer} Writer */ DeviceToken.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.deviceId != null && Object.hasOwnProperty.call(message, "deviceId")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.deviceId); - if (message.region != null && Object.hasOwnProperty.call(message, "region")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.region); + if (!writer) writer = $Writer.create(); + if (message.deviceId != null && Object.hasOwnProperty.call(message, 'deviceId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int64(message.deviceId); + if (message.region != null && Object.hasOwnProperty.call(message, 'region')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int32(message.region); return writer; }; @@ -138102,23 +142813,23 @@ export const Tokens = $root.Tokens = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ DeviceToken.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Tokens.DeviceToken(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Tokens.DeviceToken(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.deviceId = reader.int64(); break; } - case 2: { + case 2: { message.region = reader.int32(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -138135,8 +142846,7 @@ export const Tokens = $root.Tokens = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ DeviceToken.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -138149,14 +142859,19 @@ export const Tokens = $root.Tokens = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ DeviceToken.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.deviceId != null && message.hasOwnProperty("deviceId")) - if (!$util.isInteger(message.deviceId) && !(message.deviceId && $util.isInteger(message.deviceId.low) && $util.isInteger(message.deviceId.high))) - return "deviceId: integer|Long expected"; - if (message.region != null && message.hasOwnProperty("region")) - if (!$util.isInteger(message.region)) - return "region: integer expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.deviceId != null && message.hasOwnProperty('deviceId')) + if ( + !$util.isInteger(message.deviceId) && + !( + message.deviceId && + $util.isInteger(message.deviceId.low) && + $util.isInteger(message.deviceId.high) + ) + ) + return 'deviceId: integer|Long expected'; + if (message.region != null && message.hasOwnProperty('region')) + if (!$util.isInteger(message.region)) return 'region: integer expected'; return null; }; @@ -138169,20 +142884,18 @@ export const Tokens = $root.Tokens = (() => { * @returns {Tokens.DeviceToken} DeviceToken */ DeviceToken.fromObject = function fromObject(object) { - if (object instanceof $root.Tokens.DeviceToken) - return object; + if (object instanceof $root.Tokens.DeviceToken) return object; let message = new $root.Tokens.DeviceToken(); if (object.deviceId != null) - if ($util.Long) - (message.deviceId = $util.Long.fromValue(object.deviceId)).unsigned = false; - else if (typeof object.deviceId === "string") - message.deviceId = parseInt(object.deviceId, 10); - else if (typeof object.deviceId === "number") - message.deviceId = object.deviceId; - else if (typeof object.deviceId === "object") - message.deviceId = new $util.LongBits(object.deviceId.low >>> 0, object.deviceId.high >>> 0).toNumber(); - if (object.region != null) - message.region = object.region | 0; + if ($util.Long) (message.deviceId = $util.Long.fromValue(object.deviceId)).unsigned = false; + else if (typeof object.deviceId === 'string') message.deviceId = parseInt(object.deviceId, 10); + else if (typeof object.deviceId === 'number') message.deviceId = object.deviceId; + else if (typeof object.deviceId === 'object') + message.deviceId = new $util.LongBits( + object.deviceId.low >>> 0, + object.deviceId.high >>> 0 + ).toNumber(); + if (object.region != null) message.region = object.region | 0; return message; }; @@ -138196,24 +142909,27 @@ export const Tokens = $root.Tokens = (() => { * @returns {Object.} Plain object */ DeviceToken.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.deviceId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.deviceId = options.longs === String ? "0" : 0; + object.deviceId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.deviceId = options.longs === String ? '0' : 0; object.region = 0; } - if (message.deviceId != null && message.hasOwnProperty("deviceId")) - if (typeof message.deviceId === "number") + if (message.deviceId != null && message.hasOwnProperty('deviceId')) + if (typeof message.deviceId === 'number') object.deviceId = options.longs === String ? String(message.deviceId) : message.deviceId; else - object.deviceId = options.longs === String ? $util.Long.prototype.toString.call(message.deviceId) : options.longs === Number ? new $util.LongBits(message.deviceId.low >>> 0, message.deviceId.high >>> 0).toNumber() : message.deviceId; - if (message.region != null && message.hasOwnProperty("region")) - object.region = message.region; + object.deviceId = + options.longs === String + ? $util.Long.prototype.toString.call(message.deviceId) + : options.longs === Number + ? new $util.LongBits(message.deviceId.low >>> 0, message.deviceId.high >>> 0).toNumber() + : message.deviceId; + if (message.region != null && message.hasOwnProperty('region')) object.region = message.region; return object; }; @@ -138238,16 +142954,15 @@ export const Tokens = $root.Tokens = (() => { */ DeviceToken.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Tokens.DeviceToken"; + return typeUrlPrefix + '/Tokens.DeviceToken'; }; return DeviceToken; })(); - Tokens.SSOLoginToken = (function() { - + Tokens.SSOLoginToken = (function () { /** * Properties of a SSOLoginToken. * @memberof Tokens @@ -138269,8 +142984,7 @@ export const Tokens = $root.Tokens = (() => { function SSOLoginToken(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -138279,7 +142993,7 @@ export const Tokens = $root.Tokens = (() => { * @memberof Tokens.SSOLoginToken * @instance */ - SSOLoginToken.prototype.ssoServiceProviderId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + SSOLoginToken.prototype.ssoServiceProviderId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * SSOLoginToken username. @@ -138287,7 +143001,7 @@ export const Tokens = $root.Tokens = (() => { * @memberof Tokens.SSOLoginToken * @instance */ - SSOLoginToken.prototype.username = ""; + SSOLoginToken.prototype.username = ''; /** * SSOLoginToken alias. @@ -138295,7 +143009,7 @@ export const Tokens = $root.Tokens = (() => { * @memberof Tokens.SSOLoginToken * @instance */ - SSOLoginToken.prototype.alias = ""; + SSOLoginToken.prototype.alias = ''; /** * SSOLoginToken displayname. @@ -138303,7 +143017,7 @@ export const Tokens = $root.Tokens = (() => { * @memberof Tokens.SSOLoginToken * @instance */ - SSOLoginToken.prototype.displayname = ""; + SSOLoginToken.prototype.displayname = ''; /** * Creates a new SSOLoginToken instance using the specified properties. @@ -138327,16 +143041,15 @@ export const Tokens = $root.Tokens = (() => { * @returns {$protobuf.Writer} Writer */ SSOLoginToken.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.ssoServiceProviderId != null && Object.hasOwnProperty.call(message, "ssoServiceProviderId")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.ssoServiceProviderId); - if (message.username != null && Object.hasOwnProperty.call(message, "username")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.username); - if (message.alias != null && Object.hasOwnProperty.call(message, "alias")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.alias); - if (message.displayname != null && Object.hasOwnProperty.call(message, "displayname")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.displayname); + if (!writer) writer = $Writer.create(); + if (message.ssoServiceProviderId != null && Object.hasOwnProperty.call(message, 'ssoServiceProviderId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int64(message.ssoServiceProviderId); + if (message.username != null && Object.hasOwnProperty.call(message, 'username')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.username); + if (message.alias != null && Object.hasOwnProperty.call(message, 'alias')) + writer.uint32(/* id 3, wireType 2 =*/ 26).string(message.alias); + if (message.displayname != null && Object.hasOwnProperty.call(message, 'displayname')) + writer.uint32(/* id 4, wireType 2 =*/ 34).string(message.displayname); return writer; }; @@ -138365,31 +143078,31 @@ export const Tokens = $root.Tokens = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SSOLoginToken.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Tokens.SSOLoginToken(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Tokens.SSOLoginToken(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.ssoServiceProviderId = reader.int64(); break; } - case 2: { + case 2: { message.username = reader.string(); break; } - case 3: { + case 3: { message.alias = reader.string(); break; } - case 4: { + case 4: { message.displayname = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -138406,8 +143119,7 @@ export const Tokens = $root.Tokens = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SSOLoginToken.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -138420,20 +143132,23 @@ export const Tokens = $root.Tokens = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ SSOLoginToken.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.ssoServiceProviderId != null && message.hasOwnProperty("ssoServiceProviderId")) - if (!$util.isInteger(message.ssoServiceProviderId) && !(message.ssoServiceProviderId && $util.isInteger(message.ssoServiceProviderId.low) && $util.isInteger(message.ssoServiceProviderId.high))) - return "ssoServiceProviderId: integer|Long expected"; - if (message.username != null && message.hasOwnProperty("username")) - if (!$util.isString(message.username)) - return "username: string expected"; - if (message.alias != null && message.hasOwnProperty("alias")) - if (!$util.isString(message.alias)) - return "alias: string expected"; - if (message.displayname != null && message.hasOwnProperty("displayname")) - if (!$util.isString(message.displayname)) - return "displayname: string expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.ssoServiceProviderId != null && message.hasOwnProperty('ssoServiceProviderId')) + if ( + !$util.isInteger(message.ssoServiceProviderId) && + !( + message.ssoServiceProviderId && + $util.isInteger(message.ssoServiceProviderId.low) && + $util.isInteger(message.ssoServiceProviderId.high) + ) + ) + return 'ssoServiceProviderId: integer|Long expected'; + if (message.username != null && message.hasOwnProperty('username')) + if (!$util.isString(message.username)) return 'username: string expected'; + if (message.alias != null && message.hasOwnProperty('alias')) + if (!$util.isString(message.alias)) return 'alias: string expected'; + if (message.displayname != null && message.hasOwnProperty('displayname')) + if (!$util.isString(message.displayname)) return 'displayname: string expected'; return null; }; @@ -138446,24 +143161,23 @@ export const Tokens = $root.Tokens = (() => { * @returns {Tokens.SSOLoginToken} SSOLoginToken */ SSOLoginToken.fromObject = function fromObject(object) { - if (object instanceof $root.Tokens.SSOLoginToken) - return object; + if (object instanceof $root.Tokens.SSOLoginToken) return object; let message = new $root.Tokens.SSOLoginToken(); if (object.ssoServiceProviderId != null) if ($util.Long) (message.ssoServiceProviderId = $util.Long.fromValue(object.ssoServiceProviderId)).unsigned = false; - else if (typeof object.ssoServiceProviderId === "string") + else if (typeof object.ssoServiceProviderId === 'string') message.ssoServiceProviderId = parseInt(object.ssoServiceProviderId, 10); - else if (typeof object.ssoServiceProviderId === "number") + else if (typeof object.ssoServiceProviderId === 'number') message.ssoServiceProviderId = object.ssoServiceProviderId; - else if (typeof object.ssoServiceProviderId === "object") - message.ssoServiceProviderId = new $util.LongBits(object.ssoServiceProviderId.low >>> 0, object.ssoServiceProviderId.high >>> 0).toNumber(); - if (object.username != null) - message.username = String(object.username); - if (object.alias != null) - message.alias = String(object.alias); - if (object.displayname != null) - message.displayname = String(object.displayname); + else if (typeof object.ssoServiceProviderId === 'object') + message.ssoServiceProviderId = new $util.LongBits( + object.ssoServiceProviderId.low >>> 0, + object.ssoServiceProviderId.high >>> 0 + ).toNumber(); + if (object.username != null) message.username = String(object.username); + if (object.alias != null) message.alias = String(object.alias); + if (object.displayname != null) message.displayname = String(object.displayname); return message; }; @@ -138477,29 +143191,35 @@ export const Tokens = $root.Tokens = (() => { * @returns {Object.} Plain object */ SSOLoginToken.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.ssoServiceProviderId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.ssoServiceProviderId = options.longs === String ? "0" : 0; - object.username = ""; - object.alias = ""; - object.displayname = ""; - } - if (message.ssoServiceProviderId != null && message.hasOwnProperty("ssoServiceProviderId")) - if (typeof message.ssoServiceProviderId === "number") - object.ssoServiceProviderId = options.longs === String ? String(message.ssoServiceProviderId) : message.ssoServiceProviderId; + object.ssoServiceProviderId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.ssoServiceProviderId = options.longs === String ? '0' : 0; + object.username = ''; + object.alias = ''; + object.displayname = ''; + } + if (message.ssoServiceProviderId != null && message.hasOwnProperty('ssoServiceProviderId')) + if (typeof message.ssoServiceProviderId === 'number') + object.ssoServiceProviderId = + options.longs === String ? String(message.ssoServiceProviderId) : message.ssoServiceProviderId; else - object.ssoServiceProviderId = options.longs === String ? $util.Long.prototype.toString.call(message.ssoServiceProviderId) : options.longs === Number ? new $util.LongBits(message.ssoServiceProviderId.low >>> 0, message.ssoServiceProviderId.high >>> 0).toNumber() : message.ssoServiceProviderId; - if (message.username != null && message.hasOwnProperty("username")) - object.username = message.username; - if (message.alias != null && message.hasOwnProperty("alias")) - object.alias = message.alias; - if (message.displayname != null && message.hasOwnProperty("displayname")) + object.ssoServiceProviderId = + options.longs === String + ? $util.Long.prototype.toString.call(message.ssoServiceProviderId) + : options.longs === Number + ? new $util.LongBits( + message.ssoServiceProviderId.low >>> 0, + message.ssoServiceProviderId.high >>> 0 + ).toNumber() + : message.ssoServiceProviderId; + if (message.username != null && message.hasOwnProperty('username')) object.username = message.username; + if (message.alias != null && message.hasOwnProperty('alias')) object.alias = message.alias; + if (message.displayname != null && message.hasOwnProperty('displayname')) object.displayname = message.displayname; return object; }; @@ -138525,16 +143245,15 @@ export const Tokens = $root.Tokens = (() => { */ SSOLoginToken.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Tokens.SSOLoginToken"; + return typeUrlPrefix + '/Tokens.SSOLoginToken'; }; return SSOLoginToken; })(); - Tokens.PasskeyLoginToken = (function() { - + Tokens.PasskeyLoginToken = (function () { /** * Properties of a PasskeyLoginToken. * @memberof Tokens @@ -138554,8 +143273,7 @@ export const Tokens = $root.Tokens = (() => { function PasskeyLoginToken(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -138564,7 +143282,7 @@ export const Tokens = $root.Tokens = (() => { * @memberof Tokens.PasskeyLoginToken * @instance */ - PasskeyLoginToken.prototype.passkeyVerificationMS = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + PasskeyLoginToken.prototype.passkeyVerificationMS = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * PasskeyLoginToken challenge. @@ -138596,12 +143314,11 @@ export const Tokens = $root.Tokens = (() => { * @returns {$protobuf.Writer} Writer */ PasskeyLoginToken.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.passkeyVerificationMS != null && Object.hasOwnProperty.call(message, "passkeyVerificationMS")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.passkeyVerificationMS); - if (message.challenge != null && Object.hasOwnProperty.call(message, "challenge")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.challenge); + if (!writer) writer = $Writer.create(); + if (message.passkeyVerificationMS != null && Object.hasOwnProperty.call(message, 'passkeyVerificationMS')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int64(message.passkeyVerificationMS); + if (message.challenge != null && Object.hasOwnProperty.call(message, 'challenge')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.challenge); return writer; }; @@ -138630,23 +143347,23 @@ export const Tokens = $root.Tokens = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ PasskeyLoginToken.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Tokens.PasskeyLoginToken(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Tokens.PasskeyLoginToken(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.passkeyVerificationMS = reader.int64(); break; } - case 2: { + case 2: { message.challenge = reader.bytes(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -138663,8 +143380,7 @@ export const Tokens = $root.Tokens = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ PasskeyLoginToken.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -138677,14 +143393,25 @@ export const Tokens = $root.Tokens = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ PasskeyLoginToken.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.passkeyVerificationMS != null && message.hasOwnProperty("passkeyVerificationMS")) - if (!$util.isInteger(message.passkeyVerificationMS) && !(message.passkeyVerificationMS && $util.isInteger(message.passkeyVerificationMS.low) && $util.isInteger(message.passkeyVerificationMS.high))) - return "passkeyVerificationMS: integer|Long expected"; - if (message.challenge != null && message.hasOwnProperty("challenge")) - if (!(message.challenge && typeof message.challenge.length === "number" || $util.isString(message.challenge))) - return "challenge: buffer expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.passkeyVerificationMS != null && message.hasOwnProperty('passkeyVerificationMS')) + if ( + !$util.isInteger(message.passkeyVerificationMS) && + !( + message.passkeyVerificationMS && + $util.isInteger(message.passkeyVerificationMS.low) && + $util.isInteger(message.passkeyVerificationMS.high) + ) + ) + return 'passkeyVerificationMS: integer|Long expected'; + if (message.challenge != null && message.hasOwnProperty('challenge')) + if ( + !( + (message.challenge && typeof message.challenge.length === 'number') || + $util.isString(message.challenge) + ) + ) + return 'challenge: buffer expected'; return null; }; @@ -138697,23 +143424,29 @@ export const Tokens = $root.Tokens = (() => { * @returns {Tokens.PasskeyLoginToken} PasskeyLoginToken */ PasskeyLoginToken.fromObject = function fromObject(object) { - if (object instanceof $root.Tokens.PasskeyLoginToken) - return object; + if (object instanceof $root.Tokens.PasskeyLoginToken) return object; let message = new $root.Tokens.PasskeyLoginToken(); if (object.passkeyVerificationMS != null) if ($util.Long) - (message.passkeyVerificationMS = $util.Long.fromValue(object.passkeyVerificationMS)).unsigned = false; - else if (typeof object.passkeyVerificationMS === "string") + (message.passkeyVerificationMS = $util.Long.fromValue(object.passkeyVerificationMS)).unsigned = + false; + else if (typeof object.passkeyVerificationMS === 'string') message.passkeyVerificationMS = parseInt(object.passkeyVerificationMS, 10); - else if (typeof object.passkeyVerificationMS === "number") + else if (typeof object.passkeyVerificationMS === 'number') message.passkeyVerificationMS = object.passkeyVerificationMS; - else if (typeof object.passkeyVerificationMS === "object") - message.passkeyVerificationMS = new $util.LongBits(object.passkeyVerificationMS.low >>> 0, object.passkeyVerificationMS.high >>> 0).toNumber(); + else if (typeof object.passkeyVerificationMS === 'object') + message.passkeyVerificationMS = new $util.LongBits( + object.passkeyVerificationMS.low >>> 0, + object.passkeyVerificationMS.high >>> 0 + ).toNumber(); if (object.challenge != null) - if (typeof object.challenge === "string") - $util.base64.decode(object.challenge, message.challenge = $util.newBuffer($util.base64.length(object.challenge)), 0); - else if (object.challenge.length >= 0) - message.challenge = object.challenge; + if (typeof object.challenge === 'string') + $util.base64.decode( + object.challenge, + (message.challenge = $util.newBuffer($util.base64.length(object.challenge))), + 0 + ); + else if (object.challenge.length >= 0) message.challenge = object.challenge; return message; }; @@ -138727,30 +143460,43 @@ export const Tokens = $root.Tokens = (() => { * @returns {Object.} Plain object */ PasskeyLoginToken.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.passkeyVerificationMS = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.passkeyVerificationMS = options.longs === String ? "0" : 0; - if (options.bytes === String) - object.challenge = ""; + object.passkeyVerificationMS = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.passkeyVerificationMS = options.longs === String ? '0' : 0; + if (options.bytes === String) object.challenge = ''; else { object.challenge = []; - if (options.bytes !== Array) - object.challenge = $util.newBuffer(object.challenge); + if (options.bytes !== Array) object.challenge = $util.newBuffer(object.challenge); } } - if (message.passkeyVerificationMS != null && message.hasOwnProperty("passkeyVerificationMS")) - if (typeof message.passkeyVerificationMS === "number") - object.passkeyVerificationMS = options.longs === String ? String(message.passkeyVerificationMS) : message.passkeyVerificationMS; + if (message.passkeyVerificationMS != null && message.hasOwnProperty('passkeyVerificationMS')) + if (typeof message.passkeyVerificationMS === 'number') + object.passkeyVerificationMS = + options.longs === String + ? String(message.passkeyVerificationMS) + : message.passkeyVerificationMS; else - object.passkeyVerificationMS = options.longs === String ? $util.Long.prototype.toString.call(message.passkeyVerificationMS) : options.longs === Number ? new $util.LongBits(message.passkeyVerificationMS.low >>> 0, message.passkeyVerificationMS.high >>> 0).toNumber() : message.passkeyVerificationMS; - if (message.challenge != null && message.hasOwnProperty("challenge")) - object.challenge = options.bytes === String ? $util.base64.encode(message.challenge, 0, message.challenge.length) : options.bytes === Array ? Array.prototype.slice.call(message.challenge) : message.challenge; + object.passkeyVerificationMS = + options.longs === String + ? $util.Long.prototype.toString.call(message.passkeyVerificationMS) + : options.longs === Number + ? new $util.LongBits( + message.passkeyVerificationMS.low >>> 0, + message.passkeyVerificationMS.high >>> 0 + ).toNumber() + : message.passkeyVerificationMS; + if (message.challenge != null && message.hasOwnProperty('challenge')) + object.challenge = + options.bytes === String + ? $util.base64.encode(message.challenge, 0, message.challenge.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.challenge) + : message.challenge; return object; }; @@ -138775,16 +143521,15 @@ export const Tokens = $root.Tokens = (() => { */ PasskeyLoginToken.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Tokens.PasskeyLoginToken"; + return typeUrlPrefix + '/Tokens.PasskeyLoginToken'; }; return PasskeyLoginToken; })(); - Tokens.LoginToken = (function() { - + Tokens.LoginToken = (function () { /** * Properties of a LoginToken. * @memberof Tokens @@ -138819,8 +143564,7 @@ export const Tokens = $root.Tokens = (() => { function LoginToken(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -138829,7 +143573,7 @@ export const Tokens = $root.Tokens = (() => { * @memberof Tokens.LoginToken * @instance */ - LoginToken.prototype.loginSessionId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + LoginToken.prototype.loginSessionId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * LoginToken deviceId. @@ -138837,7 +143581,7 @@ export const Tokens = $root.Tokens = (() => { * @memberof Tokens.LoginToken * @instance */ - LoginToken.prototype.deviceId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + LoginToken.prototype.deviceId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * LoginToken accountUid. @@ -138877,7 +143621,7 @@ export const Tokens = $root.Tokens = (() => { * @memberof Tokens.LoginToken * @instance */ - LoginToken.prototype.creation = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + LoginToken.prototype.creation = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * LoginToken userId. @@ -138893,7 +143637,7 @@ export const Tokens = $root.Tokens = (() => { * @memberof Tokens.LoginToken * @instance */ - LoginToken.prototype.enterpriseUserId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + LoginToken.prototype.enterpriseUserId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * LoginToken clientVersionId. @@ -138925,7 +143669,7 @@ export const Tokens = $root.Tokens = (() => { * @memberof Tokens.LoginToken * @instance */ - LoginToken.prototype.username = ""; + LoginToken.prototype.username = ''; /** * LoginToken relogin. @@ -138981,42 +143725,47 @@ export const Tokens = $root.Tokens = (() => { * @returns {$protobuf.Writer} Writer */ LoginToken.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.loginSessionId != null && Object.hasOwnProperty.call(message, "loginSessionId")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.loginSessionId); - if (message.deviceId != null && Object.hasOwnProperty.call(message, "deviceId")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.deviceId); - if (message.accountUid != null && Object.hasOwnProperty.call(message, "accountUid")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.accountUid); - if (message.messageSessionUid != null && Object.hasOwnProperty.call(message, "messageSessionUid")) - writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.messageSessionUid); - if (message.loginState != null && Object.hasOwnProperty.call(message, "loginState")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.loginState); - if (message.loginMethod != null && Object.hasOwnProperty.call(message, "loginMethod")) - writer.uint32(/* id 6, wireType 0 =*/48).int32(message.loginMethod); - if (message.creation != null && Object.hasOwnProperty.call(message, "creation")) - writer.uint32(/* id 7, wireType 0 =*/56).int64(message.creation); - if (message.userId != null && Object.hasOwnProperty.call(message, "userId")) - writer.uint32(/* id 8, wireType 0 =*/64).int32(message.userId); - if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "enterpriseUserId")) - writer.uint32(/* id 9, wireType 0 =*/72).int64(message.enterpriseUserId); - if (message.clientVersionId != null && Object.hasOwnProperty.call(message, "clientVersionId")) - writer.uint32(/* id 10, wireType 0 =*/80).int32(message.clientVersionId); - if (message.supportedLanguage != null && Object.hasOwnProperty.call(message, "supportedLanguage")) - writer.uint32(/* id 11, wireType 0 =*/88).int32(message.supportedLanguage); - if (message.ssoLoginToken != null && Object.hasOwnProperty.call(message, "ssoLoginToken")) - $root.Tokens.SSOLoginToken.encode(message.ssoLoginToken, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); - if (message.username != null && Object.hasOwnProperty.call(message, "username")) - writer.uint32(/* id 13, wireType 2 =*/106).string(message.username); - if (message.relogin != null && Object.hasOwnProperty.call(message, "relogin")) - writer.uint32(/* id 14, wireType 0 =*/112).bool(message.relogin); - if (message.loginType != null && Object.hasOwnProperty.call(message, "loginType")) - writer.uint32(/* id 15, wireType 0 =*/120).int32(message.loginType); - if (message.fromUserId != null && Object.hasOwnProperty.call(message, "fromUserId")) - writer.uint32(/* id 16, wireType 0 =*/128).int32(message.fromUserId); - if (message.passkeyLoginToken != null && Object.hasOwnProperty.call(message, "passkeyLoginToken")) - $root.Tokens.PasskeyLoginToken.encode(message.passkeyLoginToken, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim(); + if (!writer) writer = $Writer.create(); + if (message.loginSessionId != null && Object.hasOwnProperty.call(message, 'loginSessionId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int64(message.loginSessionId); + if (message.deviceId != null && Object.hasOwnProperty.call(message, 'deviceId')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int64(message.deviceId); + if (message.accountUid != null && Object.hasOwnProperty.call(message, 'accountUid')) + writer.uint32(/* id 3, wireType 2 =*/ 26).bytes(message.accountUid); + if (message.messageSessionUid != null && Object.hasOwnProperty.call(message, 'messageSessionUid')) + writer.uint32(/* id 4, wireType 2 =*/ 34).bytes(message.messageSessionUid); + if (message.loginState != null && Object.hasOwnProperty.call(message, 'loginState')) + writer.uint32(/* id 5, wireType 0 =*/ 40).int32(message.loginState); + if (message.loginMethod != null && Object.hasOwnProperty.call(message, 'loginMethod')) + writer.uint32(/* id 6, wireType 0 =*/ 48).int32(message.loginMethod); + if (message.creation != null && Object.hasOwnProperty.call(message, 'creation')) + writer.uint32(/* id 7, wireType 0 =*/ 56).int64(message.creation); + if (message.userId != null && Object.hasOwnProperty.call(message, 'userId')) + writer.uint32(/* id 8, wireType 0 =*/ 64).int32(message.userId); + if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, 'enterpriseUserId')) + writer.uint32(/* id 9, wireType 0 =*/ 72).int64(message.enterpriseUserId); + if (message.clientVersionId != null && Object.hasOwnProperty.call(message, 'clientVersionId')) + writer.uint32(/* id 10, wireType 0 =*/ 80).int32(message.clientVersionId); + if (message.supportedLanguage != null && Object.hasOwnProperty.call(message, 'supportedLanguage')) + writer.uint32(/* id 11, wireType 0 =*/ 88).int32(message.supportedLanguage); + if (message.ssoLoginToken != null && Object.hasOwnProperty.call(message, 'ssoLoginToken')) + $root.Tokens.SSOLoginToken.encode( + message.ssoLoginToken, + writer.uint32(/* id 12, wireType 2 =*/ 98).fork() + ).ldelim(); + if (message.username != null && Object.hasOwnProperty.call(message, 'username')) + writer.uint32(/* id 13, wireType 2 =*/ 106).string(message.username); + if (message.relogin != null && Object.hasOwnProperty.call(message, 'relogin')) + writer.uint32(/* id 14, wireType 0 =*/ 112).bool(message.relogin); + if (message.loginType != null && Object.hasOwnProperty.call(message, 'loginType')) + writer.uint32(/* id 15, wireType 0 =*/ 120).int32(message.loginType); + if (message.fromUserId != null && Object.hasOwnProperty.call(message, 'fromUserId')) + writer.uint32(/* id 16, wireType 0 =*/ 128).int32(message.fromUserId); + if (message.passkeyLoginToken != null && Object.hasOwnProperty.call(message, 'passkeyLoginToken')) + $root.Tokens.PasskeyLoginToken.encode( + message.passkeyLoginToken, + writer.uint32(/* id 17, wireType 2 =*/ 138).fork() + ).ldelim(); return writer; }; @@ -139045,83 +143794,83 @@ export const Tokens = $root.Tokens = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ LoginToken.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Tokens.LoginToken(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Tokens.LoginToken(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.loginSessionId = reader.int64(); break; } - case 2: { + case 2: { message.deviceId = reader.int64(); break; } - case 3: { + case 3: { message.accountUid = reader.bytes(); break; } - case 4: { + case 4: { message.messageSessionUid = reader.bytes(); break; } - case 5: { + case 5: { message.loginState = reader.int32(); break; } - case 6: { + case 6: { message.loginMethod = reader.int32(); break; } - case 7: { + case 7: { message.creation = reader.int64(); break; } - case 8: { + case 8: { message.userId = reader.int32(); break; } - case 9: { + case 9: { message.enterpriseUserId = reader.int64(); break; } - case 10: { + case 10: { message.clientVersionId = reader.int32(); break; } - case 11: { + case 11: { message.supportedLanguage = reader.int32(); break; } - case 12: { + case 12: { message.ssoLoginToken = $root.Tokens.SSOLoginToken.decode(reader, reader.uint32()); break; } - case 13: { + case 13: { message.username = reader.string(); break; } - case 14: { + case 14: { message.relogin = reader.bool(); break; } - case 15: { + case 15: { message.loginType = reader.int32(); break; } - case 16: { + case 16: { message.fromUserId = reader.int32(); break; } - case 17: { + case 17: { message.passkeyLoginToken = $root.Tokens.PasskeyLoginToken.decode(reader, reader.uint32()); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -139138,8 +143887,7 @@ export const Tokens = $root.Tokens = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ LoginToken.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -139152,476 +143900,510 @@ export const Tokens = $root.Tokens = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ LoginToken.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.loginSessionId != null && message.hasOwnProperty("loginSessionId")) - if (!$util.isInteger(message.loginSessionId) && !(message.loginSessionId && $util.isInteger(message.loginSessionId.low) && $util.isInteger(message.loginSessionId.high))) - return "loginSessionId: integer|Long expected"; - if (message.deviceId != null && message.hasOwnProperty("deviceId")) - if (!$util.isInteger(message.deviceId) && !(message.deviceId && $util.isInteger(message.deviceId.low) && $util.isInteger(message.deviceId.high))) - return "deviceId: integer|Long expected"; - if (message.accountUid != null && message.hasOwnProperty("accountUid")) - if (!(message.accountUid && typeof message.accountUid.length === "number" || $util.isString(message.accountUid))) - return "accountUid: buffer expected"; - if (message.messageSessionUid != null && message.hasOwnProperty("messageSessionUid")) - if (!(message.messageSessionUid && typeof message.messageSessionUid.length === "number" || $util.isString(message.messageSessionUid))) - return "messageSessionUid: buffer expected"; - if (message.loginState != null && message.hasOwnProperty("loginState")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.loginSessionId != null && message.hasOwnProperty('loginSessionId')) + if ( + !$util.isInteger(message.loginSessionId) && + !( + message.loginSessionId && + $util.isInteger(message.loginSessionId.low) && + $util.isInteger(message.loginSessionId.high) + ) + ) + return 'loginSessionId: integer|Long expected'; + if (message.deviceId != null && message.hasOwnProperty('deviceId')) + if ( + !$util.isInteger(message.deviceId) && + !( + message.deviceId && + $util.isInteger(message.deviceId.low) && + $util.isInteger(message.deviceId.high) + ) + ) + return 'deviceId: integer|Long expected'; + if (message.accountUid != null && message.hasOwnProperty('accountUid')) + if ( + !( + (message.accountUid && typeof message.accountUid.length === 'number') || + $util.isString(message.accountUid) + ) + ) + return 'accountUid: buffer expected'; + if (message.messageSessionUid != null && message.hasOwnProperty('messageSessionUid')) + if ( + !( + (message.messageSessionUid && typeof message.messageSessionUid.length === 'number') || + $util.isString(message.messageSessionUid) + ) + ) + return 'messageSessionUid: buffer expected'; + if (message.loginState != null && message.hasOwnProperty('loginState')) switch (message.loginState) { + default: + return 'loginState: enum value expected'; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + case 10: + case 12: + case 13: + case 14: + case 15: + case 16: + case 17: + case 18: + case 19: + case 20: + case 21: + case 22: + case 99: + break; + } + if (message.loginMethod != null && message.hasOwnProperty('loginMethod')) + switch (message.loginMethod) { + default: + return 'loginMethod: enum value expected'; + case 0: + case 1: + case 2: + case 3: + case 4: + break; + } + if (message.creation != null && message.hasOwnProperty('creation')) + if ( + !$util.isInteger(message.creation) && + !( + message.creation && + $util.isInteger(message.creation.low) && + $util.isInteger(message.creation.high) + ) + ) + return 'creation: integer|Long expected'; + if (message.userId != null && message.hasOwnProperty('userId')) + if (!$util.isInteger(message.userId)) return 'userId: integer expected'; + if (message.enterpriseUserId != null && message.hasOwnProperty('enterpriseUserId')) + if ( + !$util.isInteger(message.enterpriseUserId) && + !( + message.enterpriseUserId && + $util.isInteger(message.enterpriseUserId.low) && + $util.isInteger(message.enterpriseUserId.high) + ) + ) + return 'enterpriseUserId: integer|Long expected'; + if (message.clientVersionId != null && message.hasOwnProperty('clientVersionId')) + if (!$util.isInteger(message.clientVersionId)) return 'clientVersionId: integer expected'; + if (message.supportedLanguage != null && message.hasOwnProperty('supportedLanguage')) + switch (message.supportedLanguage) { + default: + return 'supportedLanguage: enum value expected'; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + case 10: + case 11: + case 12: + case 13: + case 14: + case 15: + case 16: + case 17: + case 18: + case 19: + case 20: + case 21: + case 22: + break; + } + if (message.ssoLoginToken != null && message.hasOwnProperty('ssoLoginToken')) { + let error = $root.Tokens.SSOLoginToken.verify(message.ssoLoginToken); + if (error) return 'ssoLoginToken.' + error; + } + if (message.username != null && message.hasOwnProperty('username')) + if (!$util.isString(message.username)) return 'username: string expected'; + if (message.relogin != null && message.hasOwnProperty('relogin')) + if (typeof message.relogin !== 'boolean') return 'relogin: boolean expected'; + if (message.loginType != null && message.hasOwnProperty('loginType')) + switch (message.loginType) { + default: + return 'loginType: enum value expected'; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + break; + } + if (message.fromUserId != null && message.hasOwnProperty('fromUserId')) + if (!$util.isInteger(message.fromUserId)) return 'fromUserId: integer expected'; + if (message.passkeyLoginToken != null && message.hasOwnProperty('passkeyLoginToken')) { + let error = $root.Tokens.PasskeyLoginToken.verify(message.passkeyLoginToken); + if (error) return 'passkeyLoginToken.' + error; + } + return null; + }; + + /** + * Creates a LoginToken message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof Tokens.LoginToken + * @static + * @param {Object.} object Plain object + * @returns {Tokens.LoginToken} LoginToken + */ + LoginToken.fromObject = function fromObject(object) { + if (object instanceof $root.Tokens.LoginToken) return object; + let message = new $root.Tokens.LoginToken(); + if (object.loginSessionId != null) + if ($util.Long) (message.loginSessionId = $util.Long.fromValue(object.loginSessionId)).unsigned = false; + else if (typeof object.loginSessionId === 'string') + message.loginSessionId = parseInt(object.loginSessionId, 10); + else if (typeof object.loginSessionId === 'number') message.loginSessionId = object.loginSessionId; + else if (typeof object.loginSessionId === 'object') + message.loginSessionId = new $util.LongBits( + object.loginSessionId.low >>> 0, + object.loginSessionId.high >>> 0 + ).toNumber(); + if (object.deviceId != null) + if ($util.Long) (message.deviceId = $util.Long.fromValue(object.deviceId)).unsigned = false; + else if (typeof object.deviceId === 'string') message.deviceId = parseInt(object.deviceId, 10); + else if (typeof object.deviceId === 'number') message.deviceId = object.deviceId; + else if (typeof object.deviceId === 'object') + message.deviceId = new $util.LongBits( + object.deviceId.low >>> 0, + object.deviceId.high >>> 0 + ).toNumber(); + if (object.accountUid != null) + if (typeof object.accountUid === 'string') + $util.base64.decode( + object.accountUid, + (message.accountUid = $util.newBuffer($util.base64.length(object.accountUid))), + 0 + ); + else if (object.accountUid.length >= 0) message.accountUid = object.accountUid; + if (object.messageSessionUid != null) + if (typeof object.messageSessionUid === 'string') + $util.base64.decode( + object.messageSessionUid, + (message.messageSessionUid = $util.newBuffer($util.base64.length(object.messageSessionUid))), + 0 + ); + else if (object.messageSessionUid.length >= 0) message.messageSessionUid = object.messageSessionUid; + switch (object.loginState) { default: - return "loginState: enum value expected"; + if (typeof object.loginState === 'number') { + message.loginState = object.loginState; + break; + } + break; + case 'INVALID_LOGINSTATE': case 0: + message.loginState = 0; + break; + case 'LOGGED_OUT': case 1: + message.loginState = 1; + break; + case 'DEVICE_APPROVAL_REQUIRED': case 2: + message.loginState = 2; + break; + case 'DEVICE_LOCKED': case 3: + message.loginState = 3; + break; + case 'ACCOUNT_LOCKED': case 4: + message.loginState = 4; + break; + case 'DEVICE_ACCOUNT_LOCKED': case 5: + message.loginState = 5; + break; + case 'UPGRADE': case 6: + message.loginState = 6; + break; + case 'LICENSE_EXPIRED': case 7: + message.loginState = 7; + break; + case 'REGION_REDIRECT': case 8: + message.loginState = 8; + break; + case 'REDIRECT_CLOUD_SSO': case 9: + message.loginState = 9; + break; + case 'REDIRECT_ONSITE_SSO': case 10: + message.loginState = 10; + break; + case 'REQUIRES_2FA': case 12: + message.loginState = 12; + break; + case 'REQUIRES_AUTH_HASH': case 13: + message.loginState = 13; + break; + case 'REQUIRES_USERNAME': case 14: + message.loginState = 14; + break; + case 'AFTER_CLOUD_SSO_LOGIN': case 15: + message.loginState = 15; + break; + case 'REQUIRES_ACCOUNT_CREATION': case 16: + message.loginState = 16; + break; + case 'REQUIRES_DEVICE_ENCRYPTED_DATA_KEY': case 17: + message.loginState = 17; + break; + case 'LOGIN_TOKEN_EXPIRED': case 18: + message.loginState = 18; + break; + case 'PASSKEY_INITIATE_CHALLENGE': case 19: + message.loginState = 19; + break; + case 'PASSKEY_AUTH_REQUIRED': case 20: + message.loginState = 20; + break; + case 'PASSKEY_VERIFY_AUTHENTICATION': case 21: + message.loginState = 21; + break; + case 'AFTER_PASSKEY_LOGIN': case 22: + message.loginState = 22; + break; + case 'LOGGED_IN': case 99: + message.loginState = 99; break; - } - if (message.loginMethod != null && message.hasOwnProperty("loginMethod")) - switch (message.loginMethod) { + } + switch (object.loginMethod) { default: - return "loginMethod: enum value expected"; + if (typeof object.loginMethod === 'number') { + message.loginMethod = object.loginMethod; + break; + } + break; + case 'INVALID_LOGINMETHOD': case 0: + message.loginMethod = 0; + break; + case 'EXISTING_ACCOUNT': case 1: + message.loginMethod = 1; + break; + case 'SSO_DOMAIN': case 2: + message.loginMethod = 2; + break; + case 'AFTER_SSO': case 3: + message.loginMethod = 3; + break; + case 'NEW_ACCOUNT': case 4: + message.loginMethod = 4; break; - } - if (message.creation != null && message.hasOwnProperty("creation")) - if (!$util.isInteger(message.creation) && !(message.creation && $util.isInteger(message.creation.low) && $util.isInteger(message.creation.high))) - return "creation: integer|Long expected"; - if (message.userId != null && message.hasOwnProperty("userId")) - if (!$util.isInteger(message.userId)) - return "userId: integer expected"; - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (!$util.isInteger(message.enterpriseUserId) && !(message.enterpriseUserId && $util.isInteger(message.enterpriseUserId.low) && $util.isInteger(message.enterpriseUserId.high))) - return "enterpriseUserId: integer|Long expected"; - if (message.clientVersionId != null && message.hasOwnProperty("clientVersionId")) - if (!$util.isInteger(message.clientVersionId)) - return "clientVersionId: integer expected"; - if (message.supportedLanguage != null && message.hasOwnProperty("supportedLanguage")) - switch (message.supportedLanguage) { + } + if (object.creation != null) + if ($util.Long) (message.creation = $util.Long.fromValue(object.creation)).unsigned = false; + else if (typeof object.creation === 'string') message.creation = parseInt(object.creation, 10); + else if (typeof object.creation === 'number') message.creation = object.creation; + else if (typeof object.creation === 'object') + message.creation = new $util.LongBits( + object.creation.low >>> 0, + object.creation.high >>> 0 + ).toNumber(); + if (object.userId != null) message.userId = object.userId | 0; + if (object.enterpriseUserId != null) + if ($util.Long) + (message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId)).unsigned = false; + else if (typeof object.enterpriseUserId === 'string') + message.enterpriseUserId = parseInt(object.enterpriseUserId, 10); + else if (typeof object.enterpriseUserId === 'number') + message.enterpriseUserId = object.enterpriseUserId; + else if (typeof object.enterpriseUserId === 'object') + message.enterpriseUserId = new $util.LongBits( + object.enterpriseUserId.low >>> 0, + object.enterpriseUserId.high >>> 0 + ).toNumber(); + if (object.clientVersionId != null) message.clientVersionId = object.clientVersionId | 0; + switch (object.supportedLanguage) { default: - return "supportedLanguage: enum value expected"; + if (typeof object.supportedLanguage === 'number') { + message.supportedLanguage = object.supportedLanguage; + break; + } + break; + case 'ENGLISH': case 0: + message.supportedLanguage = 0; + break; + case 'ARABIC': case 1: + message.supportedLanguage = 1; + break; + case 'BRITISH': case 2: + message.supportedLanguage = 2; + break; + case 'CHINESE': case 3: + message.supportedLanguage = 3; + break; + case 'CHINESE_HONG_KONG': case 4: + message.supportedLanguage = 4; + break; + case 'CHINESE_TAIWAN': case 5: + message.supportedLanguage = 5; + break; + case 'DUTCH': case 6: + message.supportedLanguage = 6; + break; + case 'FRENCH': case 7: + message.supportedLanguage = 7; + break; + case 'GERMAN': case 8: + message.supportedLanguage = 8; + break; + case 'GREEK': case 9: + message.supportedLanguage = 9; + break; + case 'HEBREW': case 10: + message.supportedLanguage = 10; + break; + case 'ITALIAN': case 11: + message.supportedLanguage = 11; + break; + case 'JAPANESE': case 12: + message.supportedLanguage = 12; + break; + case 'KOREAN': case 13: + message.supportedLanguage = 13; + break; + case 'POLISH': case 14: + message.supportedLanguage = 14; + break; + case 'PORTUGUESE': case 15: + message.supportedLanguage = 15; + break; + case 'PORTUGUESE_BRAZIL': case 16: + message.supportedLanguage = 16; + break; + case 'ROMANIAN': case 17: + message.supportedLanguage = 17; + break; + case 'RUSSIAN': case 18: + message.supportedLanguage = 18; + break; + case 'SLOVAK': case 19: + message.supportedLanguage = 19; + break; + case 'SPANISH': case 20: + message.supportedLanguage = 20; + break; + case 'FINNISH': case 21: + message.supportedLanguage = 21; + break; + case 'SWEDISH': case 22: + message.supportedLanguage = 22; break; - } - if (message.ssoLoginToken != null && message.hasOwnProperty("ssoLoginToken")) { - let error = $root.Tokens.SSOLoginToken.verify(message.ssoLoginToken); - if (error) - return "ssoLoginToken." + error; - } - if (message.username != null && message.hasOwnProperty("username")) - if (!$util.isString(message.username)) - return "username: string expected"; - if (message.relogin != null && message.hasOwnProperty("relogin")) - if (typeof message.relogin !== "boolean") - return "relogin: boolean expected"; - if (message.loginType != null && message.hasOwnProperty("loginType")) - switch (message.loginType) { + } + if (object.ssoLoginToken != null) { + if (typeof object.ssoLoginToken !== 'object') + throw TypeError('.Tokens.LoginToken.ssoLoginToken: object expected'); + message.ssoLoginToken = $root.Tokens.SSOLoginToken.fromObject(object.ssoLoginToken); + } + if (object.username != null) message.username = String(object.username); + if (object.relogin != null) message.relogin = Boolean(object.relogin); + switch (object.loginType) { default: - return "loginType: enum value expected"; + if (typeof object.loginType === 'number') { + message.loginType = object.loginType; + break; + } + break; + case 'NORMAL': case 0: + message.loginType = 0; + break; + case 'SSO': case 1: + message.loginType = 1; + break; + case 'BIO': case 2: + message.loginType = 2; + break; + case 'ALTERNATE': case 3: + message.loginType = 3; + break; + case 'OFFLINE': case 4: + message.loginType = 4; + break; + case 'FORGOT_PASSWORD': case 5: + message.loginType = 5; + break; + case 'PASSKEY_BIO': case 6: + message.loginType = 6; break; - } - if (message.fromUserId != null && message.hasOwnProperty("fromUserId")) - if (!$util.isInteger(message.fromUserId)) - return "fromUserId: integer expected"; - if (message.passkeyLoginToken != null && message.hasOwnProperty("passkeyLoginToken")) { - let error = $root.Tokens.PasskeyLoginToken.verify(message.passkeyLoginToken); - if (error) - return "passkeyLoginToken." + error; - } - return null; - }; - - /** - * Creates a LoginToken message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof Tokens.LoginToken - * @static - * @param {Object.} object Plain object - * @returns {Tokens.LoginToken} LoginToken - */ - LoginToken.fromObject = function fromObject(object) { - if (object instanceof $root.Tokens.LoginToken) - return object; - let message = new $root.Tokens.LoginToken(); - if (object.loginSessionId != null) - if ($util.Long) - (message.loginSessionId = $util.Long.fromValue(object.loginSessionId)).unsigned = false; - else if (typeof object.loginSessionId === "string") - message.loginSessionId = parseInt(object.loginSessionId, 10); - else if (typeof object.loginSessionId === "number") - message.loginSessionId = object.loginSessionId; - else if (typeof object.loginSessionId === "object") - message.loginSessionId = new $util.LongBits(object.loginSessionId.low >>> 0, object.loginSessionId.high >>> 0).toNumber(); - if (object.deviceId != null) - if ($util.Long) - (message.deviceId = $util.Long.fromValue(object.deviceId)).unsigned = false; - else if (typeof object.deviceId === "string") - message.deviceId = parseInt(object.deviceId, 10); - else if (typeof object.deviceId === "number") - message.deviceId = object.deviceId; - else if (typeof object.deviceId === "object") - message.deviceId = new $util.LongBits(object.deviceId.low >>> 0, object.deviceId.high >>> 0).toNumber(); - if (object.accountUid != null) - if (typeof object.accountUid === "string") - $util.base64.decode(object.accountUid, message.accountUid = $util.newBuffer($util.base64.length(object.accountUid)), 0); - else if (object.accountUid.length >= 0) - message.accountUid = object.accountUid; - if (object.messageSessionUid != null) - if (typeof object.messageSessionUid === "string") - $util.base64.decode(object.messageSessionUid, message.messageSessionUid = $util.newBuffer($util.base64.length(object.messageSessionUid)), 0); - else if (object.messageSessionUid.length >= 0) - message.messageSessionUid = object.messageSessionUid; - switch (object.loginState) { - default: - if (typeof object.loginState === "number") { - message.loginState = object.loginState; - break; - } - break; - case "INVALID_LOGINSTATE": - case 0: - message.loginState = 0; - break; - case "LOGGED_OUT": - case 1: - message.loginState = 1; - break; - case "DEVICE_APPROVAL_REQUIRED": - case 2: - message.loginState = 2; - break; - case "DEVICE_LOCKED": - case 3: - message.loginState = 3; - break; - case "ACCOUNT_LOCKED": - case 4: - message.loginState = 4; - break; - case "DEVICE_ACCOUNT_LOCKED": - case 5: - message.loginState = 5; - break; - case "UPGRADE": - case 6: - message.loginState = 6; - break; - case "LICENSE_EXPIRED": - case 7: - message.loginState = 7; - break; - case "REGION_REDIRECT": - case 8: - message.loginState = 8; - break; - case "REDIRECT_CLOUD_SSO": - case 9: - message.loginState = 9; - break; - case "REDIRECT_ONSITE_SSO": - case 10: - message.loginState = 10; - break; - case "REQUIRES_2FA": - case 12: - message.loginState = 12; - break; - case "REQUIRES_AUTH_HASH": - case 13: - message.loginState = 13; - break; - case "REQUIRES_USERNAME": - case 14: - message.loginState = 14; - break; - case "AFTER_CLOUD_SSO_LOGIN": - case 15: - message.loginState = 15; - break; - case "REQUIRES_ACCOUNT_CREATION": - case 16: - message.loginState = 16; - break; - case "REQUIRES_DEVICE_ENCRYPTED_DATA_KEY": - case 17: - message.loginState = 17; - break; - case "LOGIN_TOKEN_EXPIRED": - case 18: - message.loginState = 18; - break; - case "PASSKEY_INITIATE_CHALLENGE": - case 19: - message.loginState = 19; - break; - case "PASSKEY_AUTH_REQUIRED": - case 20: - message.loginState = 20; - break; - case "PASSKEY_VERIFY_AUTHENTICATION": - case 21: - message.loginState = 21; - break; - case "AFTER_PASSKEY_LOGIN": - case 22: - message.loginState = 22; - break; - case "LOGGED_IN": - case 99: - message.loginState = 99; - break; - } - switch (object.loginMethod) { - default: - if (typeof object.loginMethod === "number") { - message.loginMethod = object.loginMethod; - break; - } - break; - case "INVALID_LOGINMETHOD": - case 0: - message.loginMethod = 0; - break; - case "EXISTING_ACCOUNT": - case 1: - message.loginMethod = 1; - break; - case "SSO_DOMAIN": - case 2: - message.loginMethod = 2; - break; - case "AFTER_SSO": - case 3: - message.loginMethod = 3; - break; - case "NEW_ACCOUNT": - case 4: - message.loginMethod = 4; - break; - } - if (object.creation != null) - if ($util.Long) - (message.creation = $util.Long.fromValue(object.creation)).unsigned = false; - else if (typeof object.creation === "string") - message.creation = parseInt(object.creation, 10); - else if (typeof object.creation === "number") - message.creation = object.creation; - else if (typeof object.creation === "object") - message.creation = new $util.LongBits(object.creation.low >>> 0, object.creation.high >>> 0).toNumber(); - if (object.userId != null) - message.userId = object.userId | 0; - if (object.enterpriseUserId != null) - if ($util.Long) - (message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId)).unsigned = false; - else if (typeof object.enterpriseUserId === "string") - message.enterpriseUserId = parseInt(object.enterpriseUserId, 10); - else if (typeof object.enterpriseUserId === "number") - message.enterpriseUserId = object.enterpriseUserId; - else if (typeof object.enterpriseUserId === "object") - message.enterpriseUserId = new $util.LongBits(object.enterpriseUserId.low >>> 0, object.enterpriseUserId.high >>> 0).toNumber(); - if (object.clientVersionId != null) - message.clientVersionId = object.clientVersionId | 0; - switch (object.supportedLanguage) { - default: - if (typeof object.supportedLanguage === "number") { - message.supportedLanguage = object.supportedLanguage; - break; - } - break; - case "ENGLISH": - case 0: - message.supportedLanguage = 0; - break; - case "ARABIC": - case 1: - message.supportedLanguage = 1; - break; - case "BRITISH": - case 2: - message.supportedLanguage = 2; - break; - case "CHINESE": - case 3: - message.supportedLanguage = 3; - break; - case "CHINESE_HONG_KONG": - case 4: - message.supportedLanguage = 4; - break; - case "CHINESE_TAIWAN": - case 5: - message.supportedLanguage = 5; - break; - case "DUTCH": - case 6: - message.supportedLanguage = 6; - break; - case "FRENCH": - case 7: - message.supportedLanguage = 7; - break; - case "GERMAN": - case 8: - message.supportedLanguage = 8; - break; - case "GREEK": - case 9: - message.supportedLanguage = 9; - break; - case "HEBREW": - case 10: - message.supportedLanguage = 10; - break; - case "ITALIAN": - case 11: - message.supportedLanguage = 11; - break; - case "JAPANESE": - case 12: - message.supportedLanguage = 12; - break; - case "KOREAN": - case 13: - message.supportedLanguage = 13; - break; - case "POLISH": - case 14: - message.supportedLanguage = 14; - break; - case "PORTUGUESE": - case 15: - message.supportedLanguage = 15; - break; - case "PORTUGUESE_BRAZIL": - case 16: - message.supportedLanguage = 16; - break; - case "ROMANIAN": - case 17: - message.supportedLanguage = 17; - break; - case "RUSSIAN": - case 18: - message.supportedLanguage = 18; - break; - case "SLOVAK": - case 19: - message.supportedLanguage = 19; - break; - case "SPANISH": - case 20: - message.supportedLanguage = 20; - break; - case "FINNISH": - case 21: - message.supportedLanguage = 21; - break; - case "SWEDISH": - case 22: - message.supportedLanguage = 22; - break; - } - if (object.ssoLoginToken != null) { - if (typeof object.ssoLoginToken !== "object") - throw TypeError(".Tokens.LoginToken.ssoLoginToken: object expected"); - message.ssoLoginToken = $root.Tokens.SSOLoginToken.fromObject(object.ssoLoginToken); } - if (object.username != null) - message.username = String(object.username); - if (object.relogin != null) - message.relogin = Boolean(object.relogin); - switch (object.loginType) { - default: - if (typeof object.loginType === "number") { - message.loginType = object.loginType; - break; - } - break; - case "NORMAL": - case 0: - message.loginType = 0; - break; - case "SSO": - case 1: - message.loginType = 1; - break; - case "BIO": - case 2: - message.loginType = 2; - break; - case "ALTERNATE": - case 3: - message.loginType = 3; - break; - case "OFFLINE": - case 4: - message.loginType = 4; - break; - case "FORGOT_PASSWORD": - case 5: - message.loginType = 5; - break; - case "PASSKEY_BIO": - case 6: - message.loginType = 6; - break; - } - if (object.fromUserId != null) - message.fromUserId = object.fromUserId | 0; + if (object.fromUserId != null) message.fromUserId = object.fromUserId | 0; if (object.passkeyLoginToken != null) { - if (typeof object.passkeyLoginToken !== "object") - throw TypeError(".Tokens.LoginToken.passkeyLoginToken: object expected"); + if (typeof object.passkeyLoginToken !== 'object') + throw TypeError('.Tokens.LoginToken.passkeyLoginToken: object expected'); message.passkeyLoginToken = $root.Tokens.PasskeyLoginToken.fromObject(object.passkeyLoginToken); } return message; @@ -139637,101 +144419,151 @@ export const Tokens = $root.Tokens = (() => { * @returns {Object.} Plain object */ LoginToken.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.loginSessionId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.loginSessionId = options.longs === String ? "0" : 0; + object.loginSessionId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.loginSessionId = options.longs === String ? '0' : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.deviceId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.deviceId = options.longs === String ? "0" : 0; - if (options.bytes === String) - object.accountUid = ""; + object.deviceId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.deviceId = options.longs === String ? '0' : 0; + if (options.bytes === String) object.accountUid = ''; else { object.accountUid = []; - if (options.bytes !== Array) - object.accountUid = $util.newBuffer(object.accountUid); + if (options.bytes !== Array) object.accountUid = $util.newBuffer(object.accountUid); } - if (options.bytes === String) - object.messageSessionUid = ""; + if (options.bytes === String) object.messageSessionUid = ''; else { object.messageSessionUid = []; - if (options.bytes !== Array) - object.messageSessionUid = $util.newBuffer(object.messageSessionUid); + if (options.bytes !== Array) object.messageSessionUid = $util.newBuffer(object.messageSessionUid); } - object.loginState = options.enums === String ? "INVALID_LOGINSTATE" : 0; - object.loginMethod = options.enums === String ? "INVALID_LOGINMETHOD" : 0; + object.loginState = options.enums === String ? 'INVALID_LOGINSTATE' : 0; + object.loginMethod = options.enums === String ? 'INVALID_LOGINMETHOD' : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.creation = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.creation = options.longs === String ? "0" : 0; + object.creation = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.creation = options.longs === String ? '0' : 0; object.userId = 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.enterpriseUserId = options.longs === String ? "0" : 0; + object.enterpriseUserId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.enterpriseUserId = options.longs === String ? '0' : 0; object.clientVersionId = 0; - object.supportedLanguage = options.enums === String ? "ENGLISH" : 0; + object.supportedLanguage = options.enums === String ? 'ENGLISH' : 0; object.ssoLoginToken = null; - object.username = ""; + object.username = ''; object.relogin = false; - object.loginType = options.enums === String ? "NORMAL" : 0; + object.loginType = options.enums === String ? 'NORMAL' : 0; object.fromUserId = 0; object.passkeyLoginToken = null; } - if (message.loginSessionId != null && message.hasOwnProperty("loginSessionId")) - if (typeof message.loginSessionId === "number") - object.loginSessionId = options.longs === String ? String(message.loginSessionId) : message.loginSessionId; + if (message.loginSessionId != null && message.hasOwnProperty('loginSessionId')) + if (typeof message.loginSessionId === 'number') + object.loginSessionId = + options.longs === String ? String(message.loginSessionId) : message.loginSessionId; else - object.loginSessionId = options.longs === String ? $util.Long.prototype.toString.call(message.loginSessionId) : options.longs === Number ? new $util.LongBits(message.loginSessionId.low >>> 0, message.loginSessionId.high >>> 0).toNumber() : message.loginSessionId; - if (message.deviceId != null && message.hasOwnProperty("deviceId")) - if (typeof message.deviceId === "number") + object.loginSessionId = + options.longs === String + ? $util.Long.prototype.toString.call(message.loginSessionId) + : options.longs === Number + ? new $util.LongBits( + message.loginSessionId.low >>> 0, + message.loginSessionId.high >>> 0 + ).toNumber() + : message.loginSessionId; + if (message.deviceId != null && message.hasOwnProperty('deviceId')) + if (typeof message.deviceId === 'number') object.deviceId = options.longs === String ? String(message.deviceId) : message.deviceId; else - object.deviceId = options.longs === String ? $util.Long.prototype.toString.call(message.deviceId) : options.longs === Number ? new $util.LongBits(message.deviceId.low >>> 0, message.deviceId.high >>> 0).toNumber() : message.deviceId; - if (message.accountUid != null && message.hasOwnProperty("accountUid")) - object.accountUid = options.bytes === String ? $util.base64.encode(message.accountUid, 0, message.accountUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.accountUid) : message.accountUid; - if (message.messageSessionUid != null && message.hasOwnProperty("messageSessionUid")) - object.messageSessionUid = options.bytes === String ? $util.base64.encode(message.messageSessionUid, 0, message.messageSessionUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.messageSessionUid) : message.messageSessionUid; - if (message.loginState != null && message.hasOwnProperty("loginState")) - object.loginState = options.enums === String ? $root.Authentication.LoginState[message.loginState] === undefined ? message.loginState : $root.Authentication.LoginState[message.loginState] : message.loginState; - if (message.loginMethod != null && message.hasOwnProperty("loginMethod")) - object.loginMethod = options.enums === String ? $root.Authentication.LoginMethod[message.loginMethod] === undefined ? message.loginMethod : $root.Authentication.LoginMethod[message.loginMethod] : message.loginMethod; - if (message.creation != null && message.hasOwnProperty("creation")) - if (typeof message.creation === "number") + object.deviceId = + options.longs === String + ? $util.Long.prototype.toString.call(message.deviceId) + : options.longs === Number + ? new $util.LongBits(message.deviceId.low >>> 0, message.deviceId.high >>> 0).toNumber() + : message.deviceId; + if (message.accountUid != null && message.hasOwnProperty('accountUid')) + object.accountUid = + options.bytes === String + ? $util.base64.encode(message.accountUid, 0, message.accountUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.accountUid) + : message.accountUid; + if (message.messageSessionUid != null && message.hasOwnProperty('messageSessionUid')) + object.messageSessionUid = + options.bytes === String + ? $util.base64.encode(message.messageSessionUid, 0, message.messageSessionUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.messageSessionUid) + : message.messageSessionUid; + if (message.loginState != null && message.hasOwnProperty('loginState')) + object.loginState = + options.enums === String + ? $root.Authentication.LoginState[message.loginState] === undefined + ? message.loginState + : $root.Authentication.LoginState[message.loginState] + : message.loginState; + if (message.loginMethod != null && message.hasOwnProperty('loginMethod')) + object.loginMethod = + options.enums === String + ? $root.Authentication.LoginMethod[message.loginMethod] === undefined + ? message.loginMethod + : $root.Authentication.LoginMethod[message.loginMethod] + : message.loginMethod; + if (message.creation != null && message.hasOwnProperty('creation')) + if (typeof message.creation === 'number') object.creation = options.longs === String ? String(message.creation) : message.creation; else - object.creation = options.longs === String ? $util.Long.prototype.toString.call(message.creation) : options.longs === Number ? new $util.LongBits(message.creation.low >>> 0, message.creation.high >>> 0).toNumber() : message.creation; - if (message.userId != null && message.hasOwnProperty("userId")) - object.userId = message.userId; - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (typeof message.enterpriseUserId === "number") - object.enterpriseUserId = options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; + object.creation = + options.longs === String + ? $util.Long.prototype.toString.call(message.creation) + : options.longs === Number + ? new $util.LongBits(message.creation.low >>> 0, message.creation.high >>> 0).toNumber() + : message.creation; + if (message.userId != null && message.hasOwnProperty('userId')) object.userId = message.userId; + if (message.enterpriseUserId != null && message.hasOwnProperty('enterpriseUserId')) + if (typeof message.enterpriseUserId === 'number') + object.enterpriseUserId = + options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; else - object.enterpriseUserId = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseUserId) : options.longs === Number ? new $util.LongBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0).toNumber() : message.enterpriseUserId; - if (message.clientVersionId != null && message.hasOwnProperty("clientVersionId")) + object.enterpriseUserId = + options.longs === String + ? $util.Long.prototype.toString.call(message.enterpriseUserId) + : options.longs === Number + ? new $util.LongBits( + message.enterpriseUserId.low >>> 0, + message.enterpriseUserId.high >>> 0 + ).toNumber() + : message.enterpriseUserId; + if (message.clientVersionId != null && message.hasOwnProperty('clientVersionId')) object.clientVersionId = message.clientVersionId; - if (message.supportedLanguage != null && message.hasOwnProperty("supportedLanguage")) - object.supportedLanguage = options.enums === String ? $root.Authentication.SupportedLanguage[message.supportedLanguage] === undefined ? message.supportedLanguage : $root.Authentication.SupportedLanguage[message.supportedLanguage] : message.supportedLanguage; - if (message.ssoLoginToken != null && message.hasOwnProperty("ssoLoginToken")) + if (message.supportedLanguage != null && message.hasOwnProperty('supportedLanguage')) + object.supportedLanguage = + options.enums === String + ? $root.Authentication.SupportedLanguage[message.supportedLanguage] === undefined + ? message.supportedLanguage + : $root.Authentication.SupportedLanguage[message.supportedLanguage] + : message.supportedLanguage; + if (message.ssoLoginToken != null && message.hasOwnProperty('ssoLoginToken')) object.ssoLoginToken = $root.Tokens.SSOLoginToken.toObject(message.ssoLoginToken, options); - if (message.username != null && message.hasOwnProperty("username")) - object.username = message.username; - if (message.relogin != null && message.hasOwnProperty("relogin")) - object.relogin = message.relogin; - if (message.loginType != null && message.hasOwnProperty("loginType")) - object.loginType = options.enums === String ? $root.Authentication.LoginType[message.loginType] === undefined ? message.loginType : $root.Authentication.LoginType[message.loginType] : message.loginType; - if (message.fromUserId != null && message.hasOwnProperty("fromUserId")) + if (message.username != null && message.hasOwnProperty('username')) object.username = message.username; + if (message.relogin != null && message.hasOwnProperty('relogin')) object.relogin = message.relogin; + if (message.loginType != null && message.hasOwnProperty('loginType')) + object.loginType = + options.enums === String + ? $root.Authentication.LoginType[message.loginType] === undefined + ? message.loginType + : $root.Authentication.LoginType[message.loginType] + : message.loginType; + if (message.fromUserId != null && message.hasOwnProperty('fromUserId')) object.fromUserId = message.fromUserId; - if (message.passkeyLoginToken != null && message.hasOwnProperty("passkeyLoginToken")) + if (message.passkeyLoginToken != null && message.hasOwnProperty('passkeyLoginToken')) object.passkeyLoginToken = $root.Tokens.PasskeyLoginToken.toObject(message.passkeyLoginToken, options); return object; }; @@ -139757,16 +144589,15 @@ export const Tokens = $root.Tokens = (() => { */ LoginToken.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Tokens.LoginToken"; + return typeUrlPrefix + '/Tokens.LoginToken'; }; return LoginToken; })(); - Tokens.DeviceApprovalToken = (function() { - + Tokens.DeviceApprovalToken = (function () { /** * Properties of a DeviceApprovalToken. * @memberof Tokens @@ -139788,8 +144619,7 @@ export const Tokens = $root.Tokens = (() => { function DeviceApprovalToken(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -139798,7 +144628,7 @@ export const Tokens = $root.Tokens = (() => { * @memberof Tokens.DeviceApprovalToken * @instance */ - DeviceApprovalToken.prototype.creation = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + DeviceApprovalToken.prototype.creation = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * DeviceApprovalToken expiration. @@ -139806,7 +144636,7 @@ export const Tokens = $root.Tokens = (() => { * @memberof Tokens.DeviceApprovalToken * @instance */ - DeviceApprovalToken.prototype.expiration = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + DeviceApprovalToken.prototype.expiration = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * DeviceApprovalToken deviceToken. @@ -139846,16 +144676,18 @@ export const Tokens = $root.Tokens = (() => { * @returns {$protobuf.Writer} Writer */ DeviceApprovalToken.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.creation != null && Object.hasOwnProperty.call(message, "creation")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.creation); - if (message.expiration != null && Object.hasOwnProperty.call(message, "expiration")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.expiration); - if (message.deviceToken != null && Object.hasOwnProperty.call(message, "deviceToken")) - $root.Tokens.DeviceToken.encode(message.deviceToken, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.supportedLanguage != null && Object.hasOwnProperty.call(message, "supportedLanguage")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.supportedLanguage); + if (!writer) writer = $Writer.create(); + if (message.creation != null && Object.hasOwnProperty.call(message, 'creation')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int64(message.creation); + if (message.expiration != null && Object.hasOwnProperty.call(message, 'expiration')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int64(message.expiration); + if (message.deviceToken != null && Object.hasOwnProperty.call(message, 'deviceToken')) + $root.Tokens.DeviceToken.encode( + message.deviceToken, + writer.uint32(/* id 3, wireType 2 =*/ 26).fork() + ).ldelim(); + if (message.supportedLanguage != null && Object.hasOwnProperty.call(message, 'supportedLanguage')) + writer.uint32(/* id 4, wireType 0 =*/ 32).int32(message.supportedLanguage); return writer; }; @@ -139884,31 +144716,31 @@ export const Tokens = $root.Tokens = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ DeviceApprovalToken.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Tokens.DeviceApprovalToken(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Tokens.DeviceApprovalToken(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.creation = reader.int64(); break; } - case 2: { + case 2: { message.expiration = reader.int64(); break; } - case 3: { + case 3: { message.deviceToken = $root.Tokens.DeviceToken.decode(reader, reader.uint32()); break; } - case 4: { + case 4: { message.supportedLanguage = reader.int32(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -139925,8 +144757,7 @@ export const Tokens = $root.Tokens = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ DeviceApprovalToken.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -139939,185 +144770,196 @@ export const Tokens = $root.Tokens = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ DeviceApprovalToken.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.creation != null && message.hasOwnProperty("creation")) - if (!$util.isInteger(message.creation) && !(message.creation && $util.isInteger(message.creation.low) && $util.isInteger(message.creation.high))) - return "creation: integer|Long expected"; - if (message.expiration != null && message.hasOwnProperty("expiration")) - if (!$util.isInteger(message.expiration) && !(message.expiration && $util.isInteger(message.expiration.low) && $util.isInteger(message.expiration.high))) - return "expiration: integer|Long expected"; - if (message.deviceToken != null && message.hasOwnProperty("deviceToken")) { + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.creation != null && message.hasOwnProperty('creation')) + if ( + !$util.isInteger(message.creation) && + !( + message.creation && + $util.isInteger(message.creation.low) && + $util.isInteger(message.creation.high) + ) + ) + return 'creation: integer|Long expected'; + if (message.expiration != null && message.hasOwnProperty('expiration')) + if ( + !$util.isInteger(message.expiration) && + !( + message.expiration && + $util.isInteger(message.expiration.low) && + $util.isInteger(message.expiration.high) + ) + ) + return 'expiration: integer|Long expected'; + if (message.deviceToken != null && message.hasOwnProperty('deviceToken')) { let error = $root.Tokens.DeviceToken.verify(message.deviceToken); - if (error) - return "deviceToken." + error; + if (error) return 'deviceToken.' + error; } - if (message.supportedLanguage != null && message.hasOwnProperty("supportedLanguage")) + if (message.supportedLanguage != null && message.hasOwnProperty('supportedLanguage')) switch (message.supportedLanguage) { + default: + return 'supportedLanguage: enum value expected'; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + case 10: + case 11: + case 12: + case 13: + case 14: + case 15: + case 16: + case 17: + case 18: + case 19: + case 20: + case 21: + case 22: + break; + } + return null; + }; + + /** + * Creates a DeviceApprovalToken message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof Tokens.DeviceApprovalToken + * @static + * @param {Object.} object Plain object + * @returns {Tokens.DeviceApprovalToken} DeviceApprovalToken + */ + DeviceApprovalToken.fromObject = function fromObject(object) { + if (object instanceof $root.Tokens.DeviceApprovalToken) return object; + let message = new $root.Tokens.DeviceApprovalToken(); + if (object.creation != null) + if ($util.Long) (message.creation = $util.Long.fromValue(object.creation)).unsigned = false; + else if (typeof object.creation === 'string') message.creation = parseInt(object.creation, 10); + else if (typeof object.creation === 'number') message.creation = object.creation; + else if (typeof object.creation === 'object') + message.creation = new $util.LongBits( + object.creation.low >>> 0, + object.creation.high >>> 0 + ).toNumber(); + if (object.expiration != null) + if ($util.Long) (message.expiration = $util.Long.fromValue(object.expiration)).unsigned = false; + else if (typeof object.expiration === 'string') message.expiration = parseInt(object.expiration, 10); + else if (typeof object.expiration === 'number') message.expiration = object.expiration; + else if (typeof object.expiration === 'object') + message.expiration = new $util.LongBits( + object.expiration.low >>> 0, + object.expiration.high >>> 0 + ).toNumber(); + if (object.deviceToken != null) { + if (typeof object.deviceToken !== 'object') + throw TypeError('.Tokens.DeviceApprovalToken.deviceToken: object expected'); + message.deviceToken = $root.Tokens.DeviceToken.fromObject(object.deviceToken); + } + switch (object.supportedLanguage) { default: - return "supportedLanguage: enum value expected"; + if (typeof object.supportedLanguage === 'number') { + message.supportedLanguage = object.supportedLanguage; + break; + } + break; + case 'ENGLISH': case 0: + message.supportedLanguage = 0; + break; + case 'ARABIC': case 1: + message.supportedLanguage = 1; + break; + case 'BRITISH': case 2: + message.supportedLanguage = 2; + break; + case 'CHINESE': case 3: + message.supportedLanguage = 3; + break; + case 'CHINESE_HONG_KONG': case 4: + message.supportedLanguage = 4; + break; + case 'CHINESE_TAIWAN': case 5: + message.supportedLanguage = 5; + break; + case 'DUTCH': case 6: + message.supportedLanguage = 6; + break; + case 'FRENCH': case 7: + message.supportedLanguage = 7; + break; + case 'GERMAN': case 8: + message.supportedLanguage = 8; + break; + case 'GREEK': case 9: + message.supportedLanguage = 9; + break; + case 'HEBREW': case 10: + message.supportedLanguage = 10; + break; + case 'ITALIAN': case 11: + message.supportedLanguage = 11; + break; + case 'JAPANESE': case 12: + message.supportedLanguage = 12; + break; + case 'KOREAN': case 13: + message.supportedLanguage = 13; + break; + case 'POLISH': case 14: + message.supportedLanguage = 14; + break; + case 'PORTUGUESE': case 15: + message.supportedLanguage = 15; + break; + case 'PORTUGUESE_BRAZIL': case 16: + message.supportedLanguage = 16; + break; + case 'ROMANIAN': case 17: + message.supportedLanguage = 17; + break; + case 'RUSSIAN': case 18: + message.supportedLanguage = 18; + break; + case 'SLOVAK': case 19: + message.supportedLanguage = 19; + break; + case 'SPANISH': case 20: + message.supportedLanguage = 20; + break; + case 'FINNISH': case 21: + message.supportedLanguage = 21; + break; + case 'SWEDISH': case 22: + message.supportedLanguage = 22; break; - } - return null; - }; - - /** - * Creates a DeviceApprovalToken message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof Tokens.DeviceApprovalToken - * @static - * @param {Object.} object Plain object - * @returns {Tokens.DeviceApprovalToken} DeviceApprovalToken - */ - DeviceApprovalToken.fromObject = function fromObject(object) { - if (object instanceof $root.Tokens.DeviceApprovalToken) - return object; - let message = new $root.Tokens.DeviceApprovalToken(); - if (object.creation != null) - if ($util.Long) - (message.creation = $util.Long.fromValue(object.creation)).unsigned = false; - else if (typeof object.creation === "string") - message.creation = parseInt(object.creation, 10); - else if (typeof object.creation === "number") - message.creation = object.creation; - else if (typeof object.creation === "object") - message.creation = new $util.LongBits(object.creation.low >>> 0, object.creation.high >>> 0).toNumber(); - if (object.expiration != null) - if ($util.Long) - (message.expiration = $util.Long.fromValue(object.expiration)).unsigned = false; - else if (typeof object.expiration === "string") - message.expiration = parseInt(object.expiration, 10); - else if (typeof object.expiration === "number") - message.expiration = object.expiration; - else if (typeof object.expiration === "object") - message.expiration = new $util.LongBits(object.expiration.low >>> 0, object.expiration.high >>> 0).toNumber(); - if (object.deviceToken != null) { - if (typeof object.deviceToken !== "object") - throw TypeError(".Tokens.DeviceApprovalToken.deviceToken: object expected"); - message.deviceToken = $root.Tokens.DeviceToken.fromObject(object.deviceToken); - } - switch (object.supportedLanguage) { - default: - if (typeof object.supportedLanguage === "number") { - message.supportedLanguage = object.supportedLanguage; - break; - } - break; - case "ENGLISH": - case 0: - message.supportedLanguage = 0; - break; - case "ARABIC": - case 1: - message.supportedLanguage = 1; - break; - case "BRITISH": - case 2: - message.supportedLanguage = 2; - break; - case "CHINESE": - case 3: - message.supportedLanguage = 3; - break; - case "CHINESE_HONG_KONG": - case 4: - message.supportedLanguage = 4; - break; - case "CHINESE_TAIWAN": - case 5: - message.supportedLanguage = 5; - break; - case "DUTCH": - case 6: - message.supportedLanguage = 6; - break; - case "FRENCH": - case 7: - message.supportedLanguage = 7; - break; - case "GERMAN": - case 8: - message.supportedLanguage = 8; - break; - case "GREEK": - case 9: - message.supportedLanguage = 9; - break; - case "HEBREW": - case 10: - message.supportedLanguage = 10; - break; - case "ITALIAN": - case 11: - message.supportedLanguage = 11; - break; - case "JAPANESE": - case 12: - message.supportedLanguage = 12; - break; - case "KOREAN": - case 13: - message.supportedLanguage = 13; - break; - case "POLISH": - case 14: - message.supportedLanguage = 14; - break; - case "PORTUGUESE": - case 15: - message.supportedLanguage = 15; - break; - case "PORTUGUESE_BRAZIL": - case 16: - message.supportedLanguage = 16; - break; - case "ROMANIAN": - case 17: - message.supportedLanguage = 17; - break; - case "RUSSIAN": - case 18: - message.supportedLanguage = 18; - break; - case "SLOVAK": - case 19: - message.supportedLanguage = 19; - break; - case "SPANISH": - case 20: - message.supportedLanguage = 20; - break; - case "FINNISH": - case 21: - message.supportedLanguage = 21; - break; - case "SWEDISH": - case 22: - message.supportedLanguage = 22; - break; } return message; }; @@ -140132,37 +144974,54 @@ export const Tokens = $root.Tokens = (() => { * @returns {Object.} Plain object */ DeviceApprovalToken.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.creation = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.creation = options.longs === String ? "0" : 0; + object.creation = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.creation = options.longs === String ? '0' : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.expiration = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.expiration = options.longs === String ? "0" : 0; + object.expiration = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.expiration = options.longs === String ? '0' : 0; object.deviceToken = null; - object.supportedLanguage = options.enums === String ? "ENGLISH" : 0; + object.supportedLanguage = options.enums === String ? 'ENGLISH' : 0; } - if (message.creation != null && message.hasOwnProperty("creation")) - if (typeof message.creation === "number") + if (message.creation != null && message.hasOwnProperty('creation')) + if (typeof message.creation === 'number') object.creation = options.longs === String ? String(message.creation) : message.creation; else - object.creation = options.longs === String ? $util.Long.prototype.toString.call(message.creation) : options.longs === Number ? new $util.LongBits(message.creation.low >>> 0, message.creation.high >>> 0).toNumber() : message.creation; - if (message.expiration != null && message.hasOwnProperty("expiration")) - if (typeof message.expiration === "number") + object.creation = + options.longs === String + ? $util.Long.prototype.toString.call(message.creation) + : options.longs === Number + ? new $util.LongBits(message.creation.low >>> 0, message.creation.high >>> 0).toNumber() + : message.creation; + if (message.expiration != null && message.hasOwnProperty('expiration')) + if (typeof message.expiration === 'number') object.expiration = options.longs === String ? String(message.expiration) : message.expiration; else - object.expiration = options.longs === String ? $util.Long.prototype.toString.call(message.expiration) : options.longs === Number ? new $util.LongBits(message.expiration.low >>> 0, message.expiration.high >>> 0).toNumber() : message.expiration; - if (message.deviceToken != null && message.hasOwnProperty("deviceToken")) + object.expiration = + options.longs === String + ? $util.Long.prototype.toString.call(message.expiration) + : options.longs === Number + ? new $util.LongBits( + message.expiration.low >>> 0, + message.expiration.high >>> 0 + ).toNumber() + : message.expiration; + if (message.deviceToken != null && message.hasOwnProperty('deviceToken')) object.deviceToken = $root.Tokens.DeviceToken.toObject(message.deviceToken, options); - if (message.supportedLanguage != null && message.hasOwnProperty("supportedLanguage")) - object.supportedLanguage = options.enums === String ? $root.Authentication.SupportedLanguage[message.supportedLanguage] === undefined ? message.supportedLanguage : $root.Authentication.SupportedLanguage[message.supportedLanguage] : message.supportedLanguage; + if (message.supportedLanguage != null && message.hasOwnProperty('supportedLanguage')) + object.supportedLanguage = + options.enums === String + ? $root.Authentication.SupportedLanguage[message.supportedLanguage] === undefined + ? message.supportedLanguage + : $root.Authentication.SupportedLanguage[message.supportedLanguage] + : message.supportedLanguage; return object; }; @@ -140187,16 +145046,15 @@ export const Tokens = $root.Tokens = (() => { */ DeviceApprovalToken.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Tokens.DeviceApprovalToken"; + return typeUrlPrefix + '/Tokens.DeviceApprovalToken'; }; return DeviceApprovalToken; })(); - Tokens.TwoFactorToken = (function() { - + Tokens.TwoFactorToken = (function () { /** * Properties of a TwoFactorToken. * @memberof Tokens @@ -140218,8 +145076,7 @@ export const Tokens = $root.Tokens = (() => { function TwoFactorToken(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -140228,7 +145085,7 @@ export const Tokens = $root.Tokens = (() => { * @memberof Tokens.TwoFactorToken * @instance */ - TwoFactorToken.prototype.creation = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + TwoFactorToken.prototype.creation = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * TwoFactorToken expiration. @@ -140236,7 +145093,7 @@ export const Tokens = $root.Tokens = (() => { * @memberof Tokens.TwoFactorToken * @instance */ - TwoFactorToken.prototype.expiration = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + TwoFactorToken.prototype.expiration = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * TwoFactorToken deviceToken. @@ -140252,7 +145109,7 @@ export const Tokens = $root.Tokens = (() => { * @memberof Tokens.TwoFactorToken * @instance */ - TwoFactorToken.prototype.deviceIp = ""; + TwoFactorToken.prototype.deviceIp = ''; /** * Creates a new TwoFactorToken instance using the specified properties. @@ -140276,16 +145133,18 @@ export const Tokens = $root.Tokens = (() => { * @returns {$protobuf.Writer} Writer */ TwoFactorToken.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.creation != null && Object.hasOwnProperty.call(message, "creation")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.creation); - if (message.expiration != null && Object.hasOwnProperty.call(message, "expiration")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.expiration); - if (message.deviceToken != null && Object.hasOwnProperty.call(message, "deviceToken")) - $root.Tokens.DeviceToken.encode(message.deviceToken, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.deviceIp != null && Object.hasOwnProperty.call(message, "deviceIp")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.deviceIp); + if (!writer) writer = $Writer.create(); + if (message.creation != null && Object.hasOwnProperty.call(message, 'creation')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int64(message.creation); + if (message.expiration != null && Object.hasOwnProperty.call(message, 'expiration')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int64(message.expiration); + if (message.deviceToken != null && Object.hasOwnProperty.call(message, 'deviceToken')) + $root.Tokens.DeviceToken.encode( + message.deviceToken, + writer.uint32(/* id 3, wireType 2 =*/ 26).fork() + ).ldelim(); + if (message.deviceIp != null && Object.hasOwnProperty.call(message, 'deviceIp')) + writer.uint32(/* id 4, wireType 2 =*/ 34).string(message.deviceIp); return writer; }; @@ -140314,31 +145173,31 @@ export const Tokens = $root.Tokens = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ TwoFactorToken.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Tokens.TwoFactorToken(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Tokens.TwoFactorToken(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.creation = reader.int64(); break; } - case 2: { + case 2: { message.expiration = reader.int64(); break; } - case 3: { + case 3: { message.deviceToken = $root.Tokens.DeviceToken.decode(reader, reader.uint32()); break; } - case 4: { + case 4: { message.deviceIp = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -140355,8 +145214,7 @@ export const Tokens = $root.Tokens = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ TwoFactorToken.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -140369,22 +145227,33 @@ export const Tokens = $root.Tokens = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ TwoFactorToken.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.creation != null && message.hasOwnProperty("creation")) - if (!$util.isInteger(message.creation) && !(message.creation && $util.isInteger(message.creation.low) && $util.isInteger(message.creation.high))) - return "creation: integer|Long expected"; - if (message.expiration != null && message.hasOwnProperty("expiration")) - if (!$util.isInteger(message.expiration) && !(message.expiration && $util.isInteger(message.expiration.low) && $util.isInteger(message.expiration.high))) - return "expiration: integer|Long expected"; - if (message.deviceToken != null && message.hasOwnProperty("deviceToken")) { + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.creation != null && message.hasOwnProperty('creation')) + if ( + !$util.isInteger(message.creation) && + !( + message.creation && + $util.isInteger(message.creation.low) && + $util.isInteger(message.creation.high) + ) + ) + return 'creation: integer|Long expected'; + if (message.expiration != null && message.hasOwnProperty('expiration')) + if ( + !$util.isInteger(message.expiration) && + !( + message.expiration && + $util.isInteger(message.expiration.low) && + $util.isInteger(message.expiration.high) + ) + ) + return 'expiration: integer|Long expected'; + if (message.deviceToken != null && message.hasOwnProperty('deviceToken')) { let error = $root.Tokens.DeviceToken.verify(message.deviceToken); - if (error) - return "deviceToken." + error; + if (error) return 'deviceToken.' + error; } - if (message.deviceIp != null && message.hasOwnProperty("deviceIp")) - if (!$util.isString(message.deviceIp)) - return "deviceIp: string expected"; + if (message.deviceIp != null && message.hasOwnProperty('deviceIp')) + if (!$util.isString(message.deviceIp)) return 'deviceIp: string expected'; return null; }; @@ -140397,34 +145266,32 @@ export const Tokens = $root.Tokens = (() => { * @returns {Tokens.TwoFactorToken} TwoFactorToken */ TwoFactorToken.fromObject = function fromObject(object) { - if (object instanceof $root.Tokens.TwoFactorToken) - return object; + if (object instanceof $root.Tokens.TwoFactorToken) return object; let message = new $root.Tokens.TwoFactorToken(); if (object.creation != null) - if ($util.Long) - (message.creation = $util.Long.fromValue(object.creation)).unsigned = false; - else if (typeof object.creation === "string") - message.creation = parseInt(object.creation, 10); - else if (typeof object.creation === "number") - message.creation = object.creation; - else if (typeof object.creation === "object") - message.creation = new $util.LongBits(object.creation.low >>> 0, object.creation.high >>> 0).toNumber(); + if ($util.Long) (message.creation = $util.Long.fromValue(object.creation)).unsigned = false; + else if (typeof object.creation === 'string') message.creation = parseInt(object.creation, 10); + else if (typeof object.creation === 'number') message.creation = object.creation; + else if (typeof object.creation === 'object') + message.creation = new $util.LongBits( + object.creation.low >>> 0, + object.creation.high >>> 0 + ).toNumber(); if (object.expiration != null) - if ($util.Long) - (message.expiration = $util.Long.fromValue(object.expiration)).unsigned = false; - else if (typeof object.expiration === "string") - message.expiration = parseInt(object.expiration, 10); - else if (typeof object.expiration === "number") - message.expiration = object.expiration; - else if (typeof object.expiration === "object") - message.expiration = new $util.LongBits(object.expiration.low >>> 0, object.expiration.high >>> 0).toNumber(); + if ($util.Long) (message.expiration = $util.Long.fromValue(object.expiration)).unsigned = false; + else if (typeof object.expiration === 'string') message.expiration = parseInt(object.expiration, 10); + else if (typeof object.expiration === 'number') message.expiration = object.expiration; + else if (typeof object.expiration === 'object') + message.expiration = new $util.LongBits( + object.expiration.low >>> 0, + object.expiration.high >>> 0 + ).toNumber(); if (object.deviceToken != null) { - if (typeof object.deviceToken !== "object") - throw TypeError(".Tokens.TwoFactorToken.deviceToken: object expected"); + if (typeof object.deviceToken !== 'object') + throw TypeError('.Tokens.TwoFactorToken.deviceToken: object expected'); message.deviceToken = $root.Tokens.DeviceToken.fromObject(object.deviceToken); } - if (object.deviceIp != null) - message.deviceIp = String(object.deviceIp); + if (object.deviceIp != null) message.deviceIp = String(object.deviceIp); return message; }; @@ -140438,37 +145305,48 @@ export const Tokens = $root.Tokens = (() => { * @returns {Object.} Plain object */ TwoFactorToken.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.creation = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.creation = options.longs === String ? "0" : 0; + object.creation = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.creation = options.longs === String ? '0' : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.expiration = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.expiration = options.longs === String ? "0" : 0; + object.expiration = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.expiration = options.longs === String ? '0' : 0; object.deviceToken = null; - object.deviceIp = ""; + object.deviceIp = ''; } - if (message.creation != null && message.hasOwnProperty("creation")) - if (typeof message.creation === "number") + if (message.creation != null && message.hasOwnProperty('creation')) + if (typeof message.creation === 'number') object.creation = options.longs === String ? String(message.creation) : message.creation; else - object.creation = options.longs === String ? $util.Long.prototype.toString.call(message.creation) : options.longs === Number ? new $util.LongBits(message.creation.low >>> 0, message.creation.high >>> 0).toNumber() : message.creation; - if (message.expiration != null && message.hasOwnProperty("expiration")) - if (typeof message.expiration === "number") + object.creation = + options.longs === String + ? $util.Long.prototype.toString.call(message.creation) + : options.longs === Number + ? new $util.LongBits(message.creation.low >>> 0, message.creation.high >>> 0).toNumber() + : message.creation; + if (message.expiration != null && message.hasOwnProperty('expiration')) + if (typeof message.expiration === 'number') object.expiration = options.longs === String ? String(message.expiration) : message.expiration; else - object.expiration = options.longs === String ? $util.Long.prototype.toString.call(message.expiration) : options.longs === Number ? new $util.LongBits(message.expiration.low >>> 0, message.expiration.high >>> 0).toNumber() : message.expiration; - if (message.deviceToken != null && message.hasOwnProperty("deviceToken")) + object.expiration = + options.longs === String + ? $util.Long.prototype.toString.call(message.expiration) + : options.longs === Number + ? new $util.LongBits( + message.expiration.low >>> 0, + message.expiration.high >>> 0 + ).toNumber() + : message.expiration; + if (message.deviceToken != null && message.hasOwnProperty('deviceToken')) object.deviceToken = $root.Tokens.DeviceToken.toObject(message.deviceToken, options); - if (message.deviceIp != null && message.hasOwnProperty("deviceIp")) - object.deviceIp = message.deviceIp; + if (message.deviceIp != null && message.hasOwnProperty('deviceIp')) object.deviceIp = message.deviceIp; return object; }; @@ -140493,16 +145371,15 @@ export const Tokens = $root.Tokens = (() => { */ TwoFactorToken.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Tokens.TwoFactorToken"; + return typeUrlPrefix + '/Tokens.TwoFactorToken'; }; return TwoFactorToken; })(); - Tokens.BreachWatchToken = (function() { - + Tokens.BreachWatchToken = (function () { /** * Properties of a BreachWatchToken. * @memberof Tokens @@ -140524,8 +145401,7 @@ export const Tokens = $root.Tokens = (() => { function BreachWatchToken(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -140582,16 +145458,15 @@ export const Tokens = $root.Tokens = (() => { * @returns {$protobuf.Writer} Writer */ BreachWatchToken.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.userId != null && Object.hasOwnProperty.call(message, "userId")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.userId); - if (message.domainUid != null && Object.hasOwnProperty.call(message, "domainUid")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.domainUid); - if (message.emailUid != null && Object.hasOwnProperty.call(message, "emailUid")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.emailUid); - if (message.passwordUid != null && Object.hasOwnProperty.call(message, "passwordUid")) - writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.passwordUid); + if (!writer) writer = $Writer.create(); + if (message.userId != null && Object.hasOwnProperty.call(message, 'userId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int32(message.userId); + if (message.domainUid != null && Object.hasOwnProperty.call(message, 'domainUid')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.domainUid); + if (message.emailUid != null && Object.hasOwnProperty.call(message, 'emailUid')) + writer.uint32(/* id 3, wireType 2 =*/ 26).bytes(message.emailUid); + if (message.passwordUid != null && Object.hasOwnProperty.call(message, 'passwordUid')) + writer.uint32(/* id 4, wireType 2 =*/ 34).bytes(message.passwordUid); return writer; }; @@ -140620,31 +145495,31 @@ export const Tokens = $root.Tokens = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ BreachWatchToken.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Tokens.BreachWatchToken(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Tokens.BreachWatchToken(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.userId = reader.int32(); break; } - case 2: { + case 2: { message.domainUid = reader.bytes(); break; } - case 3: { + case 3: { message.emailUid = reader.bytes(); break; } - case 4: { + case 4: { message.passwordUid = reader.bytes(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -140661,8 +145536,7 @@ export const Tokens = $root.Tokens = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ BreachWatchToken.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -140675,20 +145549,33 @@ export const Tokens = $root.Tokens = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ BreachWatchToken.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.userId != null && message.hasOwnProperty("userId")) - if (!$util.isInteger(message.userId)) - return "userId: integer expected"; - if (message.domainUid != null && message.hasOwnProperty("domainUid")) - if (!(message.domainUid && typeof message.domainUid.length === "number" || $util.isString(message.domainUid))) - return "domainUid: buffer expected"; - if (message.emailUid != null && message.hasOwnProperty("emailUid")) - if (!(message.emailUid && typeof message.emailUid.length === "number" || $util.isString(message.emailUid))) - return "emailUid: buffer expected"; - if (message.passwordUid != null && message.hasOwnProperty("passwordUid")) - if (!(message.passwordUid && typeof message.passwordUid.length === "number" || $util.isString(message.passwordUid))) - return "passwordUid: buffer expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.userId != null && message.hasOwnProperty('userId')) + if (!$util.isInteger(message.userId)) return 'userId: integer expected'; + if (message.domainUid != null && message.hasOwnProperty('domainUid')) + if ( + !( + (message.domainUid && typeof message.domainUid.length === 'number') || + $util.isString(message.domainUid) + ) + ) + return 'domainUid: buffer expected'; + if (message.emailUid != null && message.hasOwnProperty('emailUid')) + if ( + !( + (message.emailUid && typeof message.emailUid.length === 'number') || + $util.isString(message.emailUid) + ) + ) + return 'emailUid: buffer expected'; + if (message.passwordUid != null && message.hasOwnProperty('passwordUid')) + if ( + !( + (message.passwordUid && typeof message.passwordUid.length === 'number') || + $util.isString(message.passwordUid) + ) + ) + return 'passwordUid: buffer expected'; return null; }; @@ -140701,26 +145588,33 @@ export const Tokens = $root.Tokens = (() => { * @returns {Tokens.BreachWatchToken} BreachWatchToken */ BreachWatchToken.fromObject = function fromObject(object) { - if (object instanceof $root.Tokens.BreachWatchToken) - return object; + if (object instanceof $root.Tokens.BreachWatchToken) return object; let message = new $root.Tokens.BreachWatchToken(); - if (object.userId != null) - message.userId = object.userId | 0; + if (object.userId != null) message.userId = object.userId | 0; if (object.domainUid != null) - if (typeof object.domainUid === "string") - $util.base64.decode(object.domainUid, message.domainUid = $util.newBuffer($util.base64.length(object.domainUid)), 0); - else if (object.domainUid.length >= 0) - message.domainUid = object.domainUid; + if (typeof object.domainUid === 'string') + $util.base64.decode( + object.domainUid, + (message.domainUid = $util.newBuffer($util.base64.length(object.domainUid))), + 0 + ); + else if (object.domainUid.length >= 0) message.domainUid = object.domainUid; if (object.emailUid != null) - if (typeof object.emailUid === "string") - $util.base64.decode(object.emailUid, message.emailUid = $util.newBuffer($util.base64.length(object.emailUid)), 0); - else if (object.emailUid.length >= 0) - message.emailUid = object.emailUid; + if (typeof object.emailUid === 'string') + $util.base64.decode( + object.emailUid, + (message.emailUid = $util.newBuffer($util.base64.length(object.emailUid))), + 0 + ); + else if (object.emailUid.length >= 0) message.emailUid = object.emailUid; if (object.passwordUid != null) - if (typeof object.passwordUid === "string") - $util.base64.decode(object.passwordUid, message.passwordUid = $util.newBuffer($util.base64.length(object.passwordUid)), 0); - else if (object.passwordUid.length >= 0) - message.passwordUid = object.passwordUid; + if (typeof object.passwordUid === 'string') + $util.base64.decode( + object.passwordUid, + (message.passwordUid = $util.newBuffer($util.base64.length(object.passwordUid))), + 0 + ); + else if (object.passwordUid.length >= 0) message.passwordUid = object.passwordUid; return message; }; @@ -140734,41 +145628,48 @@ export const Tokens = $root.Tokens = (() => { * @returns {Object.} Plain object */ BreachWatchToken.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { object.userId = 0; - if (options.bytes === String) - object.domainUid = ""; + if (options.bytes === String) object.domainUid = ''; else { object.domainUid = []; - if (options.bytes !== Array) - object.domainUid = $util.newBuffer(object.domainUid); + if (options.bytes !== Array) object.domainUid = $util.newBuffer(object.domainUid); } - if (options.bytes === String) - object.emailUid = ""; + if (options.bytes === String) object.emailUid = ''; else { object.emailUid = []; - if (options.bytes !== Array) - object.emailUid = $util.newBuffer(object.emailUid); + if (options.bytes !== Array) object.emailUid = $util.newBuffer(object.emailUid); } - if (options.bytes === String) - object.passwordUid = ""; + if (options.bytes === String) object.passwordUid = ''; else { object.passwordUid = []; - if (options.bytes !== Array) - object.passwordUid = $util.newBuffer(object.passwordUid); - } - } - if (message.userId != null && message.hasOwnProperty("userId")) - object.userId = message.userId; - if (message.domainUid != null && message.hasOwnProperty("domainUid")) - object.domainUid = options.bytes === String ? $util.base64.encode(message.domainUid, 0, message.domainUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.domainUid) : message.domainUid; - if (message.emailUid != null && message.hasOwnProperty("emailUid")) - object.emailUid = options.bytes === String ? $util.base64.encode(message.emailUid, 0, message.emailUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.emailUid) : message.emailUid; - if (message.passwordUid != null && message.hasOwnProperty("passwordUid")) - object.passwordUid = options.bytes === String ? $util.base64.encode(message.passwordUid, 0, message.passwordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.passwordUid) : message.passwordUid; + if (options.bytes !== Array) object.passwordUid = $util.newBuffer(object.passwordUid); + } + } + if (message.userId != null && message.hasOwnProperty('userId')) object.userId = message.userId; + if (message.domainUid != null && message.hasOwnProperty('domainUid')) + object.domainUid = + options.bytes === String + ? $util.base64.encode(message.domainUid, 0, message.domainUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.domainUid) + : message.domainUid; + if (message.emailUid != null && message.hasOwnProperty('emailUid')) + object.emailUid = + options.bytes === String + ? $util.base64.encode(message.emailUid, 0, message.emailUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.emailUid) + : message.emailUid; + if (message.passwordUid != null && message.hasOwnProperty('passwordUid')) + object.passwordUid = + options.bytes === String + ? $util.base64.encode(message.passwordUid, 0, message.passwordUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.passwordUid) + : message.passwordUid; return object; }; @@ -140793,9 +145694,9 @@ export const Tokens = $root.Tokens = (() => { */ BreachWatchToken.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Tokens.BreachWatchToken"; + return typeUrlPrefix + '/Tokens.BreachWatchToken'; }; return BreachWatchToken; @@ -140809,16 +145710,16 @@ export const Tokens = $root.Tokens = (() => { * @property {number} EAT=1 EAT value * @property {number} PAT=2 PAT value */ - Tokens.AnonymizedTokenType = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "DAT"] = 0; - values[valuesById[1] = "EAT"] = 1; - values[valuesById[2] = "PAT"] = 2; + Tokens.AnonymizedTokenType = (function () { + const valuesById = {}, + values = Object.create(valuesById); + values[(valuesById[0] = 'DAT')] = 0; + values[(valuesById[1] = 'EAT')] = 1; + values[(valuesById[2] = 'PAT')] = 2; return values; })(); - Tokens.AnonymizedToken = (function() { - + Tokens.AnonymizedToken = (function () { /** * Properties of an AnonymizedToken. * @memberof Tokens @@ -140840,8 +145741,7 @@ export const Tokens = $root.Tokens = (() => { function AnonymizedToken(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -140850,7 +145750,7 @@ export const Tokens = $root.Tokens = (() => { * @memberof Tokens.AnonymizedToken * @instance */ - AnonymizedToken.prototype.created = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + AnonymizedToken.prototype.created = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * AnonymizedToken expiration. @@ -140858,7 +145758,7 @@ export const Tokens = $root.Tokens = (() => { * @memberof Tokens.AnonymizedToken * @instance */ - AnonymizedToken.prototype.expiration = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + AnonymizedToken.prototype.expiration = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * AnonymizedToken uid. @@ -140898,16 +145798,15 @@ export const Tokens = $root.Tokens = (() => { * @returns {$protobuf.Writer} Writer */ AnonymizedToken.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.created != null && Object.hasOwnProperty.call(message, "created")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.created); - if (message.expiration != null && Object.hasOwnProperty.call(message, "expiration")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.expiration); - if (message.uid != null && Object.hasOwnProperty.call(message, "uid")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.uid); - if (message.anonymizedTokenType != null && Object.hasOwnProperty.call(message, "anonymizedTokenType")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.anonymizedTokenType); + if (!writer) writer = $Writer.create(); + if (message.created != null && Object.hasOwnProperty.call(message, 'created')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int64(message.created); + if (message.expiration != null && Object.hasOwnProperty.call(message, 'expiration')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int64(message.expiration); + if (message.uid != null && Object.hasOwnProperty.call(message, 'uid')) + writer.uint32(/* id 3, wireType 2 =*/ 26).bytes(message.uid); + if (message.anonymizedTokenType != null && Object.hasOwnProperty.call(message, 'anonymizedTokenType')) + writer.uint32(/* id 4, wireType 0 =*/ 32).int32(message.anonymizedTokenType); return writer; }; @@ -140936,31 +145835,31 @@ export const Tokens = $root.Tokens = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ AnonymizedToken.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Tokens.AnonymizedToken(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Tokens.AnonymizedToken(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.created = reader.int64(); break; } - case 2: { + case 2: { message.expiration = reader.int64(); break; } - case 3: { + case 3: { message.uid = reader.bytes(); break; } - case 4: { + case 4: { message.anonymizedTokenType = reader.int32(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -140977,8 +145876,7 @@ export const Tokens = $root.Tokens = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ AnonymizedToken.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -140991,25 +145889,34 @@ export const Tokens = $root.Tokens = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ AnonymizedToken.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.created != null && message.hasOwnProperty("created")) - if (!$util.isInteger(message.created) && !(message.created && $util.isInteger(message.created.low) && $util.isInteger(message.created.high))) - return "created: integer|Long expected"; - if (message.expiration != null && message.hasOwnProperty("expiration")) - if (!$util.isInteger(message.expiration) && !(message.expiration && $util.isInteger(message.expiration.low) && $util.isInteger(message.expiration.high))) - return "expiration: integer|Long expected"; - if (message.uid != null && message.hasOwnProperty("uid")) - if (!(message.uid && typeof message.uid.length === "number" || $util.isString(message.uid))) - return "uid: buffer expected"; - if (message.anonymizedTokenType != null && message.hasOwnProperty("anonymizedTokenType")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.created != null && message.hasOwnProperty('created')) + if ( + !$util.isInteger(message.created) && + !(message.created && $util.isInteger(message.created.low) && $util.isInteger(message.created.high)) + ) + return 'created: integer|Long expected'; + if (message.expiration != null && message.hasOwnProperty('expiration')) + if ( + !$util.isInteger(message.expiration) && + !( + message.expiration && + $util.isInteger(message.expiration.low) && + $util.isInteger(message.expiration.high) + ) + ) + return 'expiration: integer|Long expected'; + if (message.uid != null && message.hasOwnProperty('uid')) + if (!((message.uid && typeof message.uid.length === 'number') || $util.isString(message.uid))) + return 'uid: buffer expected'; + if (message.anonymizedTokenType != null && message.hasOwnProperty('anonymizedTokenType')) switch (message.anonymizedTokenType) { - default: - return "anonymizedTokenType: enum value expected"; - case 0: - case 1: - case 2: - break; + default: + return 'anonymizedTokenType: enum value expected'; + case 0: + case 1: + case 2: + break; } return null; }; @@ -141023,51 +145930,53 @@ export const Tokens = $root.Tokens = (() => { * @returns {Tokens.AnonymizedToken} AnonymizedToken */ AnonymizedToken.fromObject = function fromObject(object) { - if (object instanceof $root.Tokens.AnonymizedToken) - return object; + if (object instanceof $root.Tokens.AnonymizedToken) return object; let message = new $root.Tokens.AnonymizedToken(); if (object.created != null) - if ($util.Long) - (message.created = $util.Long.fromValue(object.created)).unsigned = false; - else if (typeof object.created === "string") - message.created = parseInt(object.created, 10); - else if (typeof object.created === "number") - message.created = object.created; - else if (typeof object.created === "object") - message.created = new $util.LongBits(object.created.low >>> 0, object.created.high >>> 0).toNumber(); + if ($util.Long) (message.created = $util.Long.fromValue(object.created)).unsigned = false; + else if (typeof object.created === 'string') message.created = parseInt(object.created, 10); + else if (typeof object.created === 'number') message.created = object.created; + else if (typeof object.created === 'object') + message.created = new $util.LongBits( + object.created.low >>> 0, + object.created.high >>> 0 + ).toNumber(); if (object.expiration != null) - if ($util.Long) - (message.expiration = $util.Long.fromValue(object.expiration)).unsigned = false; - else if (typeof object.expiration === "string") - message.expiration = parseInt(object.expiration, 10); - else if (typeof object.expiration === "number") - message.expiration = object.expiration; - else if (typeof object.expiration === "object") - message.expiration = new $util.LongBits(object.expiration.low >>> 0, object.expiration.high >>> 0).toNumber(); + if ($util.Long) (message.expiration = $util.Long.fromValue(object.expiration)).unsigned = false; + else if (typeof object.expiration === 'string') message.expiration = parseInt(object.expiration, 10); + else if (typeof object.expiration === 'number') message.expiration = object.expiration; + else if (typeof object.expiration === 'object') + message.expiration = new $util.LongBits( + object.expiration.low >>> 0, + object.expiration.high >>> 0 + ).toNumber(); if (object.uid != null) - if (typeof object.uid === "string") - $util.base64.decode(object.uid, message.uid = $util.newBuffer($util.base64.length(object.uid)), 0); - else if (object.uid.length >= 0) - message.uid = object.uid; + if (typeof object.uid === 'string') + $util.base64.decode( + object.uid, + (message.uid = $util.newBuffer($util.base64.length(object.uid))), + 0 + ); + else if (object.uid.length >= 0) message.uid = object.uid; switch (object.anonymizedTokenType) { - default: - if (typeof object.anonymizedTokenType === "number") { - message.anonymizedTokenType = object.anonymizedTokenType; + default: + if (typeof object.anonymizedTokenType === 'number') { + message.anonymizedTokenType = object.anonymizedTokenType; + break; + } + break; + case 'DAT': + case 0: + message.anonymizedTokenType = 0; + break; + case 'EAT': + case 1: + message.anonymizedTokenType = 1; + break; + case 'PAT': + case 2: + message.anonymizedTokenType = 2; break; - } - break; - case "DAT": - case 0: - message.anonymizedTokenType = 0; - break; - case "EAT": - case 1: - message.anonymizedTokenType = 1; - break; - case "PAT": - case 2: - message.anonymizedTokenType = 2; - break; } return message; }; @@ -141082,43 +145991,63 @@ export const Tokens = $root.Tokens = (() => { * @returns {Object.} Plain object */ AnonymizedToken.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.created = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.created = options.longs === String ? "0" : 0; + object.created = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.created = options.longs === String ? '0' : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.expiration = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.expiration = options.longs === String ? "0" : 0; - if (options.bytes === String) - object.uid = ""; + object.expiration = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.expiration = options.longs === String ? '0' : 0; + if (options.bytes === String) object.uid = ''; else { object.uid = []; - if (options.bytes !== Array) - object.uid = $util.newBuffer(object.uid); + if (options.bytes !== Array) object.uid = $util.newBuffer(object.uid); } - object.anonymizedTokenType = options.enums === String ? "DAT" : 0; + object.anonymizedTokenType = options.enums === String ? 'DAT' : 0; } - if (message.created != null && message.hasOwnProperty("created")) - if (typeof message.created === "number") + if (message.created != null && message.hasOwnProperty('created')) + if (typeof message.created === 'number') object.created = options.longs === String ? String(message.created) : message.created; else - object.created = options.longs === String ? $util.Long.prototype.toString.call(message.created) : options.longs === Number ? new $util.LongBits(message.created.low >>> 0, message.created.high >>> 0).toNumber() : message.created; - if (message.expiration != null && message.hasOwnProperty("expiration")) - if (typeof message.expiration === "number") + object.created = + options.longs === String + ? $util.Long.prototype.toString.call(message.created) + : options.longs === Number + ? new $util.LongBits(message.created.low >>> 0, message.created.high >>> 0).toNumber() + : message.created; + if (message.expiration != null && message.hasOwnProperty('expiration')) + if (typeof message.expiration === 'number') object.expiration = options.longs === String ? String(message.expiration) : message.expiration; else - object.expiration = options.longs === String ? $util.Long.prototype.toString.call(message.expiration) : options.longs === Number ? new $util.LongBits(message.expiration.low >>> 0, message.expiration.high >>> 0).toNumber() : message.expiration; - if (message.uid != null && message.hasOwnProperty("uid")) - object.uid = options.bytes === String ? $util.base64.encode(message.uid, 0, message.uid.length) : options.bytes === Array ? Array.prototype.slice.call(message.uid) : message.uid; - if (message.anonymizedTokenType != null && message.hasOwnProperty("anonymizedTokenType")) - object.anonymizedTokenType = options.enums === String ? $root.Tokens.AnonymizedTokenType[message.anonymizedTokenType] === undefined ? message.anonymizedTokenType : $root.Tokens.AnonymizedTokenType[message.anonymizedTokenType] : message.anonymizedTokenType; + object.expiration = + options.longs === String + ? $util.Long.prototype.toString.call(message.expiration) + : options.longs === Number + ? new $util.LongBits( + message.expiration.low >>> 0, + message.expiration.high >>> 0 + ).toNumber() + : message.expiration; + if (message.uid != null && message.hasOwnProperty('uid')) + object.uid = + options.bytes === String + ? $util.base64.encode(message.uid, 0, message.uid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.uid) + : message.uid; + if (message.anonymizedTokenType != null && message.hasOwnProperty('anonymizedTokenType')) + object.anonymizedTokenType = + options.enums === String + ? $root.Tokens.AnonymizedTokenType[message.anonymizedTokenType] === undefined + ? message.anonymizedTokenType + : $root.Tokens.AnonymizedTokenType[message.anonymizedTokenType] + : message.anonymizedTokenType; return object; }; @@ -141143,16 +146072,15 @@ export const Tokens = $root.Tokens = (() => { */ AnonymizedToken.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Tokens.AnonymizedToken"; + return typeUrlPrefix + '/Tokens.AnonymizedToken'; }; return AnonymizedToken; })(); - Tokens.LicenseToken = (function() { - + Tokens.LicenseToken = (function () { /** * Properties of a LicenseToken. * @memberof Tokens @@ -141172,8 +146100,7 @@ export const Tokens = $root.Tokens = (() => { function LicenseToken(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -141182,7 +146109,7 @@ export const Tokens = $root.Tokens = (() => { * @memberof Tokens.LicenseToken * @instance */ - LicenseToken.prototype.expiration = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + LicenseToken.prototype.expiration = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * LicenseToken licenseStatus. @@ -141214,12 +146141,11 @@ export const Tokens = $root.Tokens = (() => { * @returns {$protobuf.Writer} Writer */ LicenseToken.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.expiration != null && Object.hasOwnProperty.call(message, "expiration")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.expiration); - if (message.licenseStatus != null && Object.hasOwnProperty.call(message, "licenseStatus")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.licenseStatus); + if (!writer) writer = $Writer.create(); + if (message.expiration != null && Object.hasOwnProperty.call(message, 'expiration')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int64(message.expiration); + if (message.licenseStatus != null && Object.hasOwnProperty.call(message, 'licenseStatus')) + writer.uint32(/* id 3, wireType 0 =*/ 24).int32(message.licenseStatus); return writer; }; @@ -141248,23 +146174,23 @@ export const Tokens = $root.Tokens = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ LicenseToken.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Tokens.LicenseToken(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Tokens.LicenseToken(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 2: { + case 2: { message.expiration = reader.int64(); break; } - case 3: { + case 3: { message.licenseStatus = reader.int32(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -141281,8 +146207,7 @@ export const Tokens = $root.Tokens = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ LicenseToken.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -141295,20 +146220,26 @@ export const Tokens = $root.Tokens = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ LicenseToken.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.expiration != null && message.hasOwnProperty("expiration")) - if (!$util.isInteger(message.expiration) && !(message.expiration && $util.isInteger(message.expiration.low) && $util.isInteger(message.expiration.high))) - return "expiration: integer|Long expected"; - if (message.licenseStatus != null && message.hasOwnProperty("licenseStatus")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.expiration != null && message.hasOwnProperty('expiration')) + if ( + !$util.isInteger(message.expiration) && + !( + message.expiration && + $util.isInteger(message.expiration.low) && + $util.isInteger(message.expiration.high) + ) + ) + return 'expiration: integer|Long expected'; + if (message.licenseStatus != null && message.hasOwnProperty('licenseStatus')) switch (message.licenseStatus) { - default: - return "licenseStatus: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; + default: + return 'licenseStatus: enum value expected'; + case 0: + case 1: + case 2: + case 3: + break; } return null; }; @@ -141322,41 +146253,40 @@ export const Tokens = $root.Tokens = (() => { * @returns {Tokens.LicenseToken} LicenseToken */ LicenseToken.fromObject = function fromObject(object) { - if (object instanceof $root.Tokens.LicenseToken) - return object; + if (object instanceof $root.Tokens.LicenseToken) return object; let message = new $root.Tokens.LicenseToken(); if (object.expiration != null) - if ($util.Long) - (message.expiration = $util.Long.fromValue(object.expiration)).unsigned = false; - else if (typeof object.expiration === "string") - message.expiration = parseInt(object.expiration, 10); - else if (typeof object.expiration === "number") - message.expiration = object.expiration; - else if (typeof object.expiration === "object") - message.expiration = new $util.LongBits(object.expiration.low >>> 0, object.expiration.high >>> 0).toNumber(); + if ($util.Long) (message.expiration = $util.Long.fromValue(object.expiration)).unsigned = false; + else if (typeof object.expiration === 'string') message.expiration = parseInt(object.expiration, 10); + else if (typeof object.expiration === 'number') message.expiration = object.expiration; + else if (typeof object.expiration === 'object') + message.expiration = new $util.LongBits( + object.expiration.low >>> 0, + object.expiration.high >>> 0 + ).toNumber(); switch (object.licenseStatus) { - default: - if (typeof object.licenseStatus === "number") { - message.licenseStatus = object.licenseStatus; + default: + if (typeof object.licenseStatus === 'number') { + message.licenseStatus = object.licenseStatus; + break; + } + break; + case 'OTHER': + case 0: + message.licenseStatus = 0; + break; + case 'ACTIVE': + case 1: + message.licenseStatus = 1; + break; + case 'EXPIRED': + case 2: + message.licenseStatus = 2; + break; + case 'DISABLED': + case 3: + message.licenseStatus = 3; break; - } - break; - case "OTHER": - case 0: - message.licenseStatus = 0; - break; - case "ACTIVE": - case 1: - message.licenseStatus = 1; - break; - case "EXPIRED": - case 2: - message.licenseStatus = 2; - break; - case "DISABLED": - case 3: - message.licenseStatus = 3; - break; } return message; }; @@ -141371,24 +146301,36 @@ export const Tokens = $root.Tokens = (() => { * @returns {Object.} Plain object */ LicenseToken.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.expiration = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.expiration = options.longs === String ? "0" : 0; - object.licenseStatus = options.enums === String ? "OTHER" : 0; + object.expiration = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.expiration = options.longs === String ? '0' : 0; + object.licenseStatus = options.enums === String ? 'OTHER' : 0; } - if (message.expiration != null && message.hasOwnProperty("expiration")) - if (typeof message.expiration === "number") + if (message.expiration != null && message.hasOwnProperty('expiration')) + if (typeof message.expiration === 'number') object.expiration = options.longs === String ? String(message.expiration) : message.expiration; else - object.expiration = options.longs === String ? $util.Long.prototype.toString.call(message.expiration) : options.longs === Number ? new $util.LongBits(message.expiration.low >>> 0, message.expiration.high >>> 0).toNumber() : message.expiration; - if (message.licenseStatus != null && message.hasOwnProperty("licenseStatus")) - object.licenseStatus = options.enums === String ? $root.Authentication.LicenseStatus[message.licenseStatus] === undefined ? message.licenseStatus : $root.Authentication.LicenseStatus[message.licenseStatus] : message.licenseStatus; + object.expiration = + options.longs === String + ? $util.Long.prototype.toString.call(message.expiration) + : options.longs === Number + ? new $util.LongBits( + message.expiration.low >>> 0, + message.expiration.high >>> 0 + ).toNumber() + : message.expiration; + if (message.licenseStatus != null && message.hasOwnProperty('licenseStatus')) + object.licenseStatus = + options.enums === String + ? $root.Authentication.LicenseStatus[message.licenseStatus] === undefined + ? message.licenseStatus + : $root.Authentication.LicenseStatus[message.licenseStatus] + : message.licenseStatus; return object; }; @@ -141413,9 +146355,9 @@ export const Tokens = $root.Tokens = (() => { */ LicenseToken.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Tokens.LicenseToken"; + return typeUrlPrefix + '/Tokens.LicenseToken'; }; return LicenseToken; @@ -141429,16 +146371,16 @@ export const Tokens = $root.Tokens = (() => { * @property {number} VAULT_RO=1 VAULT_RO value * @property {number} ADMIN=2 ADMIN value */ - Tokens.AccessType = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "VAULT_RW"] = 0; - values[valuesById[1] = "VAULT_RO"] = 1; - values[valuesById[2] = "ADMIN"] = 2; + Tokens.AccessType = (function () { + const valuesById = {}, + values = Object.create(valuesById); + values[(valuesById[0] = 'VAULT_RW')] = 0; + values[(valuesById[1] = 'VAULT_RO')] = 1; + values[(valuesById[2] = 'ADMIN')] = 2; return values; })(); - Tokens.SessionToken = (function() { - + Tokens.SessionToken = (function () { /** * Properties of a SessionToken. * @memberof Tokens @@ -141476,8 +146418,7 @@ export const Tokens = $root.Tokens = (() => { function SessionToken(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -141486,7 +146427,7 @@ export const Tokens = $root.Tokens = (() => { * @memberof Tokens.SessionToken * @instance */ - SessionToken.prototype.created = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + SessionToken.prototype.created = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * SessionToken expiration. @@ -141494,7 +146435,7 @@ export const Tokens = $root.Tokens = (() => { * @memberof Tokens.SessionToken * @instance */ - SessionToken.prototype.expiration = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + SessionToken.prototype.expiration = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * SessionToken du1. @@ -141502,7 +146443,7 @@ export const Tokens = $root.Tokens = (() => { * @memberof Tokens.SessionToken * @instance */ - SessionToken.prototype.du1 = ""; + SessionToken.prototype.du1 = ''; /** * SessionToken messageSessionUid. @@ -141542,7 +146483,7 @@ export const Tokens = $root.Tokens = (() => { * @memberof Tokens.SessionToken * @instance */ - SessionToken.prototype.enterpriseUserId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + SessionToken.prototype.enterpriseUserId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * SessionToken du2. @@ -141622,7 +146563,7 @@ export const Tokens = $root.Tokens = (() => { * @memberof Tokens.SessionToken * @instance */ - SessionToken.prototype.deviceId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + SessionToken.prototype.deviceId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * SessionToken loginSessionId. @@ -141630,7 +146571,7 @@ export const Tokens = $root.Tokens = (() => { * @memberof Tokens.SessionToken * @instance */ - SessionToken.prototype.loginSessionId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + SessionToken.prototype.loginSessionId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * SessionToken clientTypeId. @@ -141662,48 +146603,59 @@ export const Tokens = $root.Tokens = (() => { * @returns {$protobuf.Writer} Writer */ SessionToken.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.created != null && Object.hasOwnProperty.call(message, "created")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.created); - if (message.expiration != null && Object.hasOwnProperty.call(message, "expiration")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.expiration); - if (message.du1 != null && Object.hasOwnProperty.call(message, "du1")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.du1); - if (message.messageSessionUid != null && Object.hasOwnProperty.call(message, "messageSessionUid")) - writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.messageSessionUid); - if (message.du8 != null && Object.hasOwnProperty.call(message, "du8")) - $root.Tokens.DeviceToken.encode(message.du8, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.fromUserId != null && Object.hasOwnProperty.call(message, "fromUserId")) - writer.uint32(/* id 6, wireType 0 =*/48).int32(message.fromUserId); - if (message.forUserId != null && Object.hasOwnProperty.call(message, "forUserId")) - writer.uint32(/* id 7, wireType 0 =*/56).int32(message.forUserId); - if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "enterpriseUserId")) - writer.uint32(/* id 8, wireType 0 =*/64).int64(message.enterpriseUserId); - if (message.du2 != null && Object.hasOwnProperty.call(message, "du2")) - $root.Tokens.LicenseToken.encode(message.du2, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); - if (message.du3 != null && Object.hasOwnProperty.call(message, "du3")) - $root.Tokens.LicenseToken.encode(message.du3, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); - if (message.du4 != null && Object.hasOwnProperty.call(message, "du4")) - $root.Tokens.LicenseToken.encode(message.du4, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); - if (message.du6 != null && Object.hasOwnProperty.call(message, "du6")) - writer.uint32(/* id 12, wireType 0 =*/96).int32(message.du6); - if (message.clientVersionId != null && Object.hasOwnProperty.call(message, "clientVersionId")) - writer.uint32(/* id 13, wireType 0 =*/104).int32(message.clientVersionId); - if (message.sessionTokenType != null && Object.hasOwnProperty.call(message, "sessionTokenType")) - writer.uint32(/* id 14, wireType 0 =*/112).int32(message.sessionTokenType); - if (message.du5 != null && Object.hasOwnProperty.call(message, "du5")) - $root.Tokens.LicenseToken.encode(message.du5, writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim(); - if (message.mcEnterpriseId != null && Object.hasOwnProperty.call(message, "mcEnterpriseId")) - writer.uint32(/* id 16, wireType 0 =*/128).int32(message.mcEnterpriseId); - if (message.du7 != null && Object.hasOwnProperty.call(message, "du7")) - writer.uint32(/* id 17, wireType 0 =*/136).bool(message.du7); - if (message.deviceId != null && Object.hasOwnProperty.call(message, "deviceId")) - writer.uint32(/* id 18, wireType 0 =*/144).int64(message.deviceId); - if (message.loginSessionId != null && Object.hasOwnProperty.call(message, "loginSessionId")) - writer.uint32(/* id 19, wireType 0 =*/152).int64(message.loginSessionId); - if (message.clientTypeId != null && Object.hasOwnProperty.call(message, "clientTypeId")) - writer.uint32(/* id 20, wireType 0 =*/160).int32(message.clientTypeId); + if (!writer) writer = $Writer.create(); + if (message.created != null && Object.hasOwnProperty.call(message, 'created')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int64(message.created); + if (message.expiration != null && Object.hasOwnProperty.call(message, 'expiration')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int64(message.expiration); + if (message.du1 != null && Object.hasOwnProperty.call(message, 'du1')) + writer.uint32(/* id 3, wireType 2 =*/ 26).string(message.du1); + if (message.messageSessionUid != null && Object.hasOwnProperty.call(message, 'messageSessionUid')) + writer.uint32(/* id 4, wireType 2 =*/ 34).bytes(message.messageSessionUid); + if (message.du8 != null && Object.hasOwnProperty.call(message, 'du8')) + $root.Tokens.DeviceToken.encode(message.du8, writer.uint32(/* id 5, wireType 2 =*/ 42).fork()).ldelim(); + if (message.fromUserId != null && Object.hasOwnProperty.call(message, 'fromUserId')) + writer.uint32(/* id 6, wireType 0 =*/ 48).int32(message.fromUserId); + if (message.forUserId != null && Object.hasOwnProperty.call(message, 'forUserId')) + writer.uint32(/* id 7, wireType 0 =*/ 56).int32(message.forUserId); + if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, 'enterpriseUserId')) + writer.uint32(/* id 8, wireType 0 =*/ 64).int64(message.enterpriseUserId); + if (message.du2 != null && Object.hasOwnProperty.call(message, 'du2')) + $root.Tokens.LicenseToken.encode( + message.du2, + writer.uint32(/* id 9, wireType 2 =*/ 74).fork() + ).ldelim(); + if (message.du3 != null && Object.hasOwnProperty.call(message, 'du3')) + $root.Tokens.LicenseToken.encode( + message.du3, + writer.uint32(/* id 10, wireType 2 =*/ 82).fork() + ).ldelim(); + if (message.du4 != null && Object.hasOwnProperty.call(message, 'du4')) + $root.Tokens.LicenseToken.encode( + message.du4, + writer.uint32(/* id 11, wireType 2 =*/ 90).fork() + ).ldelim(); + if (message.du6 != null && Object.hasOwnProperty.call(message, 'du6')) + writer.uint32(/* id 12, wireType 0 =*/ 96).int32(message.du6); + if (message.clientVersionId != null && Object.hasOwnProperty.call(message, 'clientVersionId')) + writer.uint32(/* id 13, wireType 0 =*/ 104).int32(message.clientVersionId); + if (message.sessionTokenType != null && Object.hasOwnProperty.call(message, 'sessionTokenType')) + writer.uint32(/* id 14, wireType 0 =*/ 112).int32(message.sessionTokenType); + if (message.du5 != null && Object.hasOwnProperty.call(message, 'du5')) + $root.Tokens.LicenseToken.encode( + message.du5, + writer.uint32(/* id 15, wireType 2 =*/ 122).fork() + ).ldelim(); + if (message.mcEnterpriseId != null && Object.hasOwnProperty.call(message, 'mcEnterpriseId')) + writer.uint32(/* id 16, wireType 0 =*/ 128).int32(message.mcEnterpriseId); + if (message.du7 != null && Object.hasOwnProperty.call(message, 'du7')) + writer.uint32(/* id 17, wireType 0 =*/ 136).bool(message.du7); + if (message.deviceId != null && Object.hasOwnProperty.call(message, 'deviceId')) + writer.uint32(/* id 18, wireType 0 =*/ 144).int64(message.deviceId); + if (message.loginSessionId != null && Object.hasOwnProperty.call(message, 'loginSessionId')) + writer.uint32(/* id 19, wireType 0 =*/ 152).int64(message.loginSessionId); + if (message.clientTypeId != null && Object.hasOwnProperty.call(message, 'clientTypeId')) + writer.uint32(/* id 20, wireType 0 =*/ 160).int32(message.clientTypeId); return writer; }; @@ -141732,95 +146684,95 @@ export const Tokens = $root.Tokens = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SessionToken.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Tokens.SessionToken(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Tokens.SessionToken(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.created = reader.int64(); break; } - case 2: { + case 2: { message.expiration = reader.int64(); break; } - case 3: { + case 3: { message.du1 = reader.string(); break; } - case 4: { + case 4: { message.messageSessionUid = reader.bytes(); break; } - case 5: { + case 5: { message.du8 = $root.Tokens.DeviceToken.decode(reader, reader.uint32()); break; } - case 6: { + case 6: { message.fromUserId = reader.int32(); break; } - case 7: { + case 7: { message.forUserId = reader.int32(); break; } - case 8: { + case 8: { message.enterpriseUserId = reader.int64(); break; } - case 9: { + case 9: { message.du2 = $root.Tokens.LicenseToken.decode(reader, reader.uint32()); break; } - case 10: { + case 10: { message.du3 = $root.Tokens.LicenseToken.decode(reader, reader.uint32()); break; } - case 11: { + case 11: { message.du4 = $root.Tokens.LicenseToken.decode(reader, reader.uint32()); break; } - case 15: { + case 15: { message.du5 = $root.Tokens.LicenseToken.decode(reader, reader.uint32()); break; } - case 12: { + case 12: { message.du6 = reader.int32(); break; } - case 13: { + case 13: { message.clientVersionId = reader.int32(); break; } - case 14: { + case 14: { message.sessionTokenType = reader.int32(); break; } - case 16: { + case 16: { message.mcEnterpriseId = reader.int32(); break; } - case 17: { + case 17: { message.du7 = reader.bool(); break; } - case 18: { + case 18: { message.deviceId = reader.int64(); break; } - case 19: { + case 19: { message.loginSessionId = reader.int64(); break; } - case 20: { + case 20: { message.clientTypeId = reader.int32(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -141837,8 +146789,7 @@ export const Tokens = $root.Tokens = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SessionToken.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -141851,99 +146802,122 @@ export const Tokens = $root.Tokens = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ SessionToken.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.created != null && message.hasOwnProperty("created")) - if (!$util.isInteger(message.created) && !(message.created && $util.isInteger(message.created.low) && $util.isInteger(message.created.high))) - return "created: integer|Long expected"; - if (message.expiration != null && message.hasOwnProperty("expiration")) - if (!$util.isInteger(message.expiration) && !(message.expiration && $util.isInteger(message.expiration.low) && $util.isInteger(message.expiration.high))) - return "expiration: integer|Long expected"; - if (message.du1 != null && message.hasOwnProperty("du1")) - if (!$util.isString(message.du1)) - return "du1: string expected"; - if (message.messageSessionUid != null && message.hasOwnProperty("messageSessionUid")) - if (!(message.messageSessionUid && typeof message.messageSessionUid.length === "number" || $util.isString(message.messageSessionUid))) - return "messageSessionUid: buffer expected"; - if (message.du8 != null && message.hasOwnProperty("du8")) { + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.created != null && message.hasOwnProperty('created')) + if ( + !$util.isInteger(message.created) && + !(message.created && $util.isInteger(message.created.low) && $util.isInteger(message.created.high)) + ) + return 'created: integer|Long expected'; + if (message.expiration != null && message.hasOwnProperty('expiration')) + if ( + !$util.isInteger(message.expiration) && + !( + message.expiration && + $util.isInteger(message.expiration.low) && + $util.isInteger(message.expiration.high) + ) + ) + return 'expiration: integer|Long expected'; + if (message.du1 != null && message.hasOwnProperty('du1')) + if (!$util.isString(message.du1)) return 'du1: string expected'; + if (message.messageSessionUid != null && message.hasOwnProperty('messageSessionUid')) + if ( + !( + (message.messageSessionUid && typeof message.messageSessionUid.length === 'number') || + $util.isString(message.messageSessionUid) + ) + ) + return 'messageSessionUid: buffer expected'; + if (message.du8 != null && message.hasOwnProperty('du8')) { let error = $root.Tokens.DeviceToken.verify(message.du8); - if (error) - return "du8." + error; - } - if (message.fromUserId != null && message.hasOwnProperty("fromUserId")) - if (!$util.isInteger(message.fromUserId)) - return "fromUserId: integer expected"; - if (message.forUserId != null && message.hasOwnProperty("forUserId")) - if (!$util.isInteger(message.forUserId)) - return "forUserId: integer expected"; - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (!$util.isInteger(message.enterpriseUserId) && !(message.enterpriseUserId && $util.isInteger(message.enterpriseUserId.low) && $util.isInteger(message.enterpriseUserId.high))) - return "enterpriseUserId: integer|Long expected"; - if (message.du2 != null && message.hasOwnProperty("du2")) { + if (error) return 'du8.' + error; + } + if (message.fromUserId != null && message.hasOwnProperty('fromUserId')) + if (!$util.isInteger(message.fromUserId)) return 'fromUserId: integer expected'; + if (message.forUserId != null && message.hasOwnProperty('forUserId')) + if (!$util.isInteger(message.forUserId)) return 'forUserId: integer expected'; + if (message.enterpriseUserId != null && message.hasOwnProperty('enterpriseUserId')) + if ( + !$util.isInteger(message.enterpriseUserId) && + !( + message.enterpriseUserId && + $util.isInteger(message.enterpriseUserId.low) && + $util.isInteger(message.enterpriseUserId.high) + ) + ) + return 'enterpriseUserId: integer|Long expected'; + if (message.du2 != null && message.hasOwnProperty('du2')) { let error = $root.Tokens.LicenseToken.verify(message.du2); - if (error) - return "du2." + error; + if (error) return 'du2.' + error; } - if (message.du3 != null && message.hasOwnProperty("du3")) { + if (message.du3 != null && message.hasOwnProperty('du3')) { let error = $root.Tokens.LicenseToken.verify(message.du3); - if (error) - return "du3." + error; + if (error) return 'du3.' + error; } - if (message.du4 != null && message.hasOwnProperty("du4")) { + if (message.du4 != null && message.hasOwnProperty('du4')) { let error = $root.Tokens.LicenseToken.verify(message.du4); - if (error) - return "du4." + error; + if (error) return 'du4.' + error; } - if (message.du5 != null && message.hasOwnProperty("du5")) { + if (message.du5 != null && message.hasOwnProperty('du5')) { let error = $root.Tokens.LicenseToken.verify(message.du5); - if (error) - return "du5." + error; + if (error) return 'du5.' + error; } - if (message.du6 != null && message.hasOwnProperty("du6")) + if (message.du6 != null && message.hasOwnProperty('du6')) switch (message.du6) { - default: - return "du6: enum value expected"; - case 0: - case 1: - case 2: - break; + default: + return 'du6: enum value expected'; + case 0: + case 1: + case 2: + break; } - if (message.clientVersionId != null && message.hasOwnProperty("clientVersionId")) - if (!$util.isInteger(message.clientVersionId)) - return "clientVersionId: integer expected"; - if (message.sessionTokenType != null && message.hasOwnProperty("sessionTokenType")) + if (message.clientVersionId != null && message.hasOwnProperty('clientVersionId')) + if (!$util.isInteger(message.clientVersionId)) return 'clientVersionId: integer expected'; + if (message.sessionTokenType != null && message.hasOwnProperty('sessionTokenType')) switch (message.sessionTokenType) { - default: - return "sessionTokenType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - case 10: - case 11: - break; - } - if (message.mcEnterpriseId != null && message.hasOwnProperty("mcEnterpriseId")) - if (!$util.isInteger(message.mcEnterpriseId)) - return "mcEnterpriseId: integer expected"; - if (message.du7 != null && message.hasOwnProperty("du7")) - if (typeof message.du7 !== "boolean") - return "du7: boolean expected"; - if (message.deviceId != null && message.hasOwnProperty("deviceId")) - if (!$util.isInteger(message.deviceId) && !(message.deviceId && $util.isInteger(message.deviceId.low) && $util.isInteger(message.deviceId.high))) - return "deviceId: integer|Long expected"; - if (message.loginSessionId != null && message.hasOwnProperty("loginSessionId")) - if (!$util.isInteger(message.loginSessionId) && !(message.loginSessionId && $util.isInteger(message.loginSessionId.low) && $util.isInteger(message.loginSessionId.high))) - return "loginSessionId: integer|Long expected"; - if (message.clientTypeId != null && message.hasOwnProperty("clientTypeId")) - if (!$util.isInteger(message.clientTypeId)) - return "clientTypeId: integer expected"; + default: + return 'sessionTokenType: enum value expected'; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + case 10: + case 11: + break; + } + if (message.mcEnterpriseId != null && message.hasOwnProperty('mcEnterpriseId')) + if (!$util.isInteger(message.mcEnterpriseId)) return 'mcEnterpriseId: integer expected'; + if (message.du7 != null && message.hasOwnProperty('du7')) + if (typeof message.du7 !== 'boolean') return 'du7: boolean expected'; + if (message.deviceId != null && message.hasOwnProperty('deviceId')) + if ( + !$util.isInteger(message.deviceId) && + !( + message.deviceId && + $util.isInteger(message.deviceId.low) && + $util.isInteger(message.deviceId.high) + ) + ) + return 'deviceId: integer|Long expected'; + if (message.loginSessionId != null && message.hasOwnProperty('loginSessionId')) + if ( + !$util.isInteger(message.loginSessionId) && + !( + message.loginSessionId && + $util.isInteger(message.loginSessionId.low) && + $util.isInteger(message.loginSessionId.high) + ) + ) + return 'loginSessionId: integer|Long expected'; + if (message.clientTypeId != null && message.hasOwnProperty('clientTypeId')) + if (!$util.isInteger(message.clientTypeId)) return 'clientTypeId: integer expected'; return null; }; @@ -141956,174 +146930,168 @@ export const Tokens = $root.Tokens = (() => { * @returns {Tokens.SessionToken} SessionToken */ SessionToken.fromObject = function fromObject(object) { - if (object instanceof $root.Tokens.SessionToken) - return object; + if (object instanceof $root.Tokens.SessionToken) return object; let message = new $root.Tokens.SessionToken(); if (object.created != null) - if ($util.Long) - (message.created = $util.Long.fromValue(object.created)).unsigned = false; - else if (typeof object.created === "string") - message.created = parseInt(object.created, 10); - else if (typeof object.created === "number") - message.created = object.created; - else if (typeof object.created === "object") - message.created = new $util.LongBits(object.created.low >>> 0, object.created.high >>> 0).toNumber(); + if ($util.Long) (message.created = $util.Long.fromValue(object.created)).unsigned = false; + else if (typeof object.created === 'string') message.created = parseInt(object.created, 10); + else if (typeof object.created === 'number') message.created = object.created; + else if (typeof object.created === 'object') + message.created = new $util.LongBits( + object.created.low >>> 0, + object.created.high >>> 0 + ).toNumber(); if (object.expiration != null) - if ($util.Long) - (message.expiration = $util.Long.fromValue(object.expiration)).unsigned = false; - else if (typeof object.expiration === "string") - message.expiration = parseInt(object.expiration, 10); - else if (typeof object.expiration === "number") - message.expiration = object.expiration; - else if (typeof object.expiration === "object") - message.expiration = new $util.LongBits(object.expiration.low >>> 0, object.expiration.high >>> 0).toNumber(); - if (object.du1 != null) - message.du1 = String(object.du1); + if ($util.Long) (message.expiration = $util.Long.fromValue(object.expiration)).unsigned = false; + else if (typeof object.expiration === 'string') message.expiration = parseInt(object.expiration, 10); + else if (typeof object.expiration === 'number') message.expiration = object.expiration; + else if (typeof object.expiration === 'object') + message.expiration = new $util.LongBits( + object.expiration.low >>> 0, + object.expiration.high >>> 0 + ).toNumber(); + if (object.du1 != null) message.du1 = String(object.du1); if (object.messageSessionUid != null) - if (typeof object.messageSessionUid === "string") - $util.base64.decode(object.messageSessionUid, message.messageSessionUid = $util.newBuffer($util.base64.length(object.messageSessionUid)), 0); - else if (object.messageSessionUid.length >= 0) - message.messageSessionUid = object.messageSessionUid; + if (typeof object.messageSessionUid === 'string') + $util.base64.decode( + object.messageSessionUid, + (message.messageSessionUid = $util.newBuffer($util.base64.length(object.messageSessionUid))), + 0 + ); + else if (object.messageSessionUid.length >= 0) message.messageSessionUid = object.messageSessionUid; if (object.du8 != null) { - if (typeof object.du8 !== "object") - throw TypeError(".Tokens.SessionToken.du8: object expected"); + if (typeof object.du8 !== 'object') throw TypeError('.Tokens.SessionToken.du8: object expected'); message.du8 = $root.Tokens.DeviceToken.fromObject(object.du8); } - if (object.fromUserId != null) - message.fromUserId = object.fromUserId | 0; - if (object.forUserId != null) - message.forUserId = object.forUserId | 0; + if (object.fromUserId != null) message.fromUserId = object.fromUserId | 0; + if (object.forUserId != null) message.forUserId = object.forUserId | 0; if (object.enterpriseUserId != null) if ($util.Long) (message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId)).unsigned = false; - else if (typeof object.enterpriseUserId === "string") + else if (typeof object.enterpriseUserId === 'string') message.enterpriseUserId = parseInt(object.enterpriseUserId, 10); - else if (typeof object.enterpriseUserId === "number") + else if (typeof object.enterpriseUserId === 'number') message.enterpriseUserId = object.enterpriseUserId; - else if (typeof object.enterpriseUserId === "object") - message.enterpriseUserId = new $util.LongBits(object.enterpriseUserId.low >>> 0, object.enterpriseUserId.high >>> 0).toNumber(); + else if (typeof object.enterpriseUserId === 'object') + message.enterpriseUserId = new $util.LongBits( + object.enterpriseUserId.low >>> 0, + object.enterpriseUserId.high >>> 0 + ).toNumber(); if (object.du2 != null) { - if (typeof object.du2 !== "object") - throw TypeError(".Tokens.SessionToken.du2: object expected"); + if (typeof object.du2 !== 'object') throw TypeError('.Tokens.SessionToken.du2: object expected'); message.du2 = $root.Tokens.LicenseToken.fromObject(object.du2); } if (object.du3 != null) { - if (typeof object.du3 !== "object") - throw TypeError(".Tokens.SessionToken.du3: object expected"); + if (typeof object.du3 !== 'object') throw TypeError('.Tokens.SessionToken.du3: object expected'); message.du3 = $root.Tokens.LicenseToken.fromObject(object.du3); } if (object.du4 != null) { - if (typeof object.du4 !== "object") - throw TypeError(".Tokens.SessionToken.du4: object expected"); + if (typeof object.du4 !== 'object') throw TypeError('.Tokens.SessionToken.du4: object expected'); message.du4 = $root.Tokens.LicenseToken.fromObject(object.du4); } if (object.du5 != null) { - if (typeof object.du5 !== "object") - throw TypeError(".Tokens.SessionToken.du5: object expected"); + if (typeof object.du5 !== 'object') throw TypeError('.Tokens.SessionToken.du5: object expected'); message.du5 = $root.Tokens.LicenseToken.fromObject(object.du5); } switch (object.du6) { - default: - if (typeof object.du6 === "number") { - message.du6 = object.du6; - break; - } - break; - case "CONSUMER": - case 0: - message.du6 = 0; - break; - case "FAMILY": - case 1: - message.du6 = 1; - break; - case "ENTERPRISE": - case 2: - message.du6 = 2; - break; - } - if (object.clientVersionId != null) - message.clientVersionId = object.clientVersionId | 0; + default: + if (typeof object.du6 === 'number') { + message.du6 = object.du6; + break; + } + break; + case 'CONSUMER': + case 0: + message.du6 = 0; + break; + case 'FAMILY': + case 1: + message.du6 = 1; + break; + case 'ENTERPRISE': + case 2: + message.du6 = 2; + break; + } + if (object.clientVersionId != null) message.clientVersionId = object.clientVersionId | 0; switch (object.sessionTokenType) { - default: - if (typeof object.sessionTokenType === "number") { - message.sessionTokenType = object.sessionTokenType; - break; - } - break; - case "NO_RESTRICTION": - case 0: - message.sessionTokenType = 0; - break; - case "ACCOUNT_RECOVERY": - case 1: - message.sessionTokenType = 1; - break; - case "SHARE_ACCOUNT": - case 2: - message.sessionTokenType = 2; - break; - case "PURCHASE": - case 3: - message.sessionTokenType = 3; - break; - case "RESTRICT": - case 4: - message.sessionTokenType = 4; - break; - case "ACCEPT_INVITE": - case 5: - message.sessionTokenType = 5; - break; - case "SUPPORT_SERVER": - case 6: - message.sessionTokenType = 6; - break; - case "ENTERPRISE_CREATION": - case 7: - message.sessionTokenType = 7; - break; - case "EXPIRED_BUT_ALLOWED_TO_SYNC": - case 8: - message.sessionTokenType = 8; - break; - case "ACCEPT_FAMILY_INVITE": - case 9: - message.sessionTokenType = 9; - break; - case "ENTERPRISE_CREATION_PURCHASED": - case 10: - message.sessionTokenType = 10; - break; - case "EMERGENCY_ACCESS": - case 11: - message.sessionTokenType = 11; - break; - } - if (object.mcEnterpriseId != null) - message.mcEnterpriseId = object.mcEnterpriseId | 0; - if (object.du7 != null) - message.du7 = Boolean(object.du7); + default: + if (typeof object.sessionTokenType === 'number') { + message.sessionTokenType = object.sessionTokenType; + break; + } + break; + case 'NO_RESTRICTION': + case 0: + message.sessionTokenType = 0; + break; + case 'ACCOUNT_RECOVERY': + case 1: + message.sessionTokenType = 1; + break; + case 'SHARE_ACCOUNT': + case 2: + message.sessionTokenType = 2; + break; + case 'PURCHASE': + case 3: + message.sessionTokenType = 3; + break; + case 'RESTRICT': + case 4: + message.sessionTokenType = 4; + break; + case 'ACCEPT_INVITE': + case 5: + message.sessionTokenType = 5; + break; + case 'SUPPORT_SERVER': + case 6: + message.sessionTokenType = 6; + break; + case 'ENTERPRISE_CREATION': + case 7: + message.sessionTokenType = 7; + break; + case 'EXPIRED_BUT_ALLOWED_TO_SYNC': + case 8: + message.sessionTokenType = 8; + break; + case 'ACCEPT_FAMILY_INVITE': + case 9: + message.sessionTokenType = 9; + break; + case 'ENTERPRISE_CREATION_PURCHASED': + case 10: + message.sessionTokenType = 10; + break; + case 'EMERGENCY_ACCESS': + case 11: + message.sessionTokenType = 11; + break; + } + if (object.mcEnterpriseId != null) message.mcEnterpriseId = object.mcEnterpriseId | 0; + if (object.du7 != null) message.du7 = Boolean(object.du7); if (object.deviceId != null) - if ($util.Long) - (message.deviceId = $util.Long.fromValue(object.deviceId)).unsigned = false; - else if (typeof object.deviceId === "string") - message.deviceId = parseInt(object.deviceId, 10); - else if (typeof object.deviceId === "number") - message.deviceId = object.deviceId; - else if (typeof object.deviceId === "object") - message.deviceId = new $util.LongBits(object.deviceId.low >>> 0, object.deviceId.high >>> 0).toNumber(); + if ($util.Long) (message.deviceId = $util.Long.fromValue(object.deviceId)).unsigned = false; + else if (typeof object.deviceId === 'string') message.deviceId = parseInt(object.deviceId, 10); + else if (typeof object.deviceId === 'number') message.deviceId = object.deviceId; + else if (typeof object.deviceId === 'object') + message.deviceId = new $util.LongBits( + object.deviceId.low >>> 0, + object.deviceId.high >>> 0 + ).toNumber(); if (object.loginSessionId != null) - if ($util.Long) - (message.loginSessionId = $util.Long.fromValue(object.loginSessionId)).unsigned = false; - else if (typeof object.loginSessionId === "string") + if ($util.Long) (message.loginSessionId = $util.Long.fromValue(object.loginSessionId)).unsigned = false; + else if (typeof object.loginSessionId === 'string') message.loginSessionId = parseInt(object.loginSessionId, 10); - else if (typeof object.loginSessionId === "number") - message.loginSessionId = object.loginSessionId; - else if (typeof object.loginSessionId === "object") - message.loginSessionId = new $util.LongBits(object.loginSessionId.low >>> 0, object.loginSessionId.high >>> 0).toNumber(); - if (object.clientTypeId != null) - message.clientTypeId = object.clientTypeId | 0; + else if (typeof object.loginSessionId === 'number') message.loginSessionId = object.loginSessionId; + else if (typeof object.loginSessionId === 'object') + message.loginSessionId = new $util.LongBits( + object.loginSessionId.low >>> 0, + object.loginSessionId.high >>> 0 + ).toNumber(); + if (object.clientTypeId != null) message.clientTypeId = object.clientTypeId | 0; return message; }; @@ -142137,111 +147105,156 @@ export const Tokens = $root.Tokens = (() => { * @returns {Object.} Plain object */ SessionToken.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.created = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.created = options.longs === String ? "0" : 0; + object.created = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.created = options.longs === String ? '0' : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.expiration = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.expiration = options.longs === String ? "0" : 0; - object.du1 = ""; - if (options.bytes === String) - object.messageSessionUid = ""; + object.expiration = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.expiration = options.longs === String ? '0' : 0; + object.du1 = ''; + if (options.bytes === String) object.messageSessionUid = ''; else { object.messageSessionUid = []; - if (options.bytes !== Array) - object.messageSessionUid = $util.newBuffer(object.messageSessionUid); + if (options.bytes !== Array) object.messageSessionUid = $util.newBuffer(object.messageSessionUid); } object.du8 = null; object.fromUserId = 0; object.forUserId = 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.enterpriseUserId = options.longs === String ? "0" : 0; + object.enterpriseUserId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.enterpriseUserId = options.longs === String ? '0' : 0; object.du2 = null; object.du3 = null; object.du4 = null; - object.du6 = options.enums === String ? "CONSUMER" : 0; + object.du6 = options.enums === String ? 'CONSUMER' : 0; object.clientVersionId = 0; - object.sessionTokenType = options.enums === String ? "NO_RESTRICTION" : 0; + object.sessionTokenType = options.enums === String ? 'NO_RESTRICTION' : 0; object.du5 = null; object.mcEnterpriseId = 0; object.du7 = false; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.deviceId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.deviceId = options.longs === String ? "0" : 0; + object.deviceId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.deviceId = options.longs === String ? '0' : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.loginSessionId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.loginSessionId = options.longs === String ? "0" : 0; + object.loginSessionId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.loginSessionId = options.longs === String ? '0' : 0; object.clientTypeId = 0; } - if (message.created != null && message.hasOwnProperty("created")) - if (typeof message.created === "number") + if (message.created != null && message.hasOwnProperty('created')) + if (typeof message.created === 'number') object.created = options.longs === String ? String(message.created) : message.created; else - object.created = options.longs === String ? $util.Long.prototype.toString.call(message.created) : options.longs === Number ? new $util.LongBits(message.created.low >>> 0, message.created.high >>> 0).toNumber() : message.created; - if (message.expiration != null && message.hasOwnProperty("expiration")) - if (typeof message.expiration === "number") + object.created = + options.longs === String + ? $util.Long.prototype.toString.call(message.created) + : options.longs === Number + ? new $util.LongBits(message.created.low >>> 0, message.created.high >>> 0).toNumber() + : message.created; + if (message.expiration != null && message.hasOwnProperty('expiration')) + if (typeof message.expiration === 'number') object.expiration = options.longs === String ? String(message.expiration) : message.expiration; else - object.expiration = options.longs === String ? $util.Long.prototype.toString.call(message.expiration) : options.longs === Number ? new $util.LongBits(message.expiration.low >>> 0, message.expiration.high >>> 0).toNumber() : message.expiration; - if (message.du1 != null && message.hasOwnProperty("du1")) - object.du1 = message.du1; - if (message.messageSessionUid != null && message.hasOwnProperty("messageSessionUid")) - object.messageSessionUid = options.bytes === String ? $util.base64.encode(message.messageSessionUid, 0, message.messageSessionUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.messageSessionUid) : message.messageSessionUid; - if (message.du8 != null && message.hasOwnProperty("du8")) + object.expiration = + options.longs === String + ? $util.Long.prototype.toString.call(message.expiration) + : options.longs === Number + ? new $util.LongBits( + message.expiration.low >>> 0, + message.expiration.high >>> 0 + ).toNumber() + : message.expiration; + if (message.du1 != null && message.hasOwnProperty('du1')) object.du1 = message.du1; + if (message.messageSessionUid != null && message.hasOwnProperty('messageSessionUid')) + object.messageSessionUid = + options.bytes === String + ? $util.base64.encode(message.messageSessionUid, 0, message.messageSessionUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.messageSessionUid) + : message.messageSessionUid; + if (message.du8 != null && message.hasOwnProperty('du8')) object.du8 = $root.Tokens.DeviceToken.toObject(message.du8, options); - if (message.fromUserId != null && message.hasOwnProperty("fromUserId")) + if (message.fromUserId != null && message.hasOwnProperty('fromUserId')) object.fromUserId = message.fromUserId; - if (message.forUserId != null && message.hasOwnProperty("forUserId")) - object.forUserId = message.forUserId; - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (typeof message.enterpriseUserId === "number") - object.enterpriseUserId = options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; + if (message.forUserId != null && message.hasOwnProperty('forUserId')) object.forUserId = message.forUserId; + if (message.enterpriseUserId != null && message.hasOwnProperty('enterpriseUserId')) + if (typeof message.enterpriseUserId === 'number') + object.enterpriseUserId = + options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; else - object.enterpriseUserId = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseUserId) : options.longs === Number ? new $util.LongBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0).toNumber() : message.enterpriseUserId; - if (message.du2 != null && message.hasOwnProperty("du2")) + object.enterpriseUserId = + options.longs === String + ? $util.Long.prototype.toString.call(message.enterpriseUserId) + : options.longs === Number + ? new $util.LongBits( + message.enterpriseUserId.low >>> 0, + message.enterpriseUserId.high >>> 0 + ).toNumber() + : message.enterpriseUserId; + if (message.du2 != null && message.hasOwnProperty('du2')) object.du2 = $root.Tokens.LicenseToken.toObject(message.du2, options); - if (message.du3 != null && message.hasOwnProperty("du3")) + if (message.du3 != null && message.hasOwnProperty('du3')) object.du3 = $root.Tokens.LicenseToken.toObject(message.du3, options); - if (message.du4 != null && message.hasOwnProperty("du4")) + if (message.du4 != null && message.hasOwnProperty('du4')) object.du4 = $root.Tokens.LicenseToken.toObject(message.du4, options); - if (message.du6 != null && message.hasOwnProperty("du6")) - object.du6 = options.enums === String ? $root.Authentication.AccountType[message.du6] === undefined ? message.du6 : $root.Authentication.AccountType[message.du6] : message.du6; - if (message.clientVersionId != null && message.hasOwnProperty("clientVersionId")) + if (message.du6 != null && message.hasOwnProperty('du6')) + object.du6 = + options.enums === String + ? $root.Authentication.AccountType[message.du6] === undefined + ? message.du6 + : $root.Authentication.AccountType[message.du6] + : message.du6; + if (message.clientVersionId != null && message.hasOwnProperty('clientVersionId')) object.clientVersionId = message.clientVersionId; - if (message.sessionTokenType != null && message.hasOwnProperty("sessionTokenType")) - object.sessionTokenType = options.enums === String ? $root.Authentication.SessionTokenType[message.sessionTokenType] === undefined ? message.sessionTokenType : $root.Authentication.SessionTokenType[message.sessionTokenType] : message.sessionTokenType; - if (message.du5 != null && message.hasOwnProperty("du5")) + if (message.sessionTokenType != null && message.hasOwnProperty('sessionTokenType')) + object.sessionTokenType = + options.enums === String + ? $root.Authentication.SessionTokenType[message.sessionTokenType] === undefined + ? message.sessionTokenType + : $root.Authentication.SessionTokenType[message.sessionTokenType] + : message.sessionTokenType; + if (message.du5 != null && message.hasOwnProperty('du5')) object.du5 = $root.Tokens.LicenseToken.toObject(message.du5, options); - if (message.mcEnterpriseId != null && message.hasOwnProperty("mcEnterpriseId")) + if (message.mcEnterpriseId != null && message.hasOwnProperty('mcEnterpriseId')) object.mcEnterpriseId = message.mcEnterpriseId; - if (message.du7 != null && message.hasOwnProperty("du7")) - object.du7 = message.du7; - if (message.deviceId != null && message.hasOwnProperty("deviceId")) - if (typeof message.deviceId === "number") + if (message.du7 != null && message.hasOwnProperty('du7')) object.du7 = message.du7; + if (message.deviceId != null && message.hasOwnProperty('deviceId')) + if (typeof message.deviceId === 'number') object.deviceId = options.longs === String ? String(message.deviceId) : message.deviceId; else - object.deviceId = options.longs === String ? $util.Long.prototype.toString.call(message.deviceId) : options.longs === Number ? new $util.LongBits(message.deviceId.low >>> 0, message.deviceId.high >>> 0).toNumber() : message.deviceId; - if (message.loginSessionId != null && message.hasOwnProperty("loginSessionId")) - if (typeof message.loginSessionId === "number") - object.loginSessionId = options.longs === String ? String(message.loginSessionId) : message.loginSessionId; + object.deviceId = + options.longs === String + ? $util.Long.prototype.toString.call(message.deviceId) + : options.longs === Number + ? new $util.LongBits(message.deviceId.low >>> 0, message.deviceId.high >>> 0).toNumber() + : message.deviceId; + if (message.loginSessionId != null && message.hasOwnProperty('loginSessionId')) + if (typeof message.loginSessionId === 'number') + object.loginSessionId = + options.longs === String ? String(message.loginSessionId) : message.loginSessionId; else - object.loginSessionId = options.longs === String ? $util.Long.prototype.toString.call(message.loginSessionId) : options.longs === Number ? new $util.LongBits(message.loginSessionId.low >>> 0, message.loginSessionId.high >>> 0).toNumber() : message.loginSessionId; - if (message.clientTypeId != null && message.hasOwnProperty("clientTypeId")) + object.loginSessionId = + options.longs === String + ? $util.Long.prototype.toString.call(message.loginSessionId) + : options.longs === Number + ? new $util.LongBits( + message.loginSessionId.low >>> 0, + message.loginSessionId.high >>> 0 + ).toNumber() + : message.loginSessionId; + if (message.clientTypeId != null && message.hasOwnProperty('clientTypeId')) object.clientTypeId = message.clientTypeId; return object; }; @@ -142267,16 +147280,15 @@ export const Tokens = $root.Tokens = (() => { */ SessionToken.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Tokens.SessionToken"; + return typeUrlPrefix + '/Tokens.SessionToken'; }; return SessionToken; })(); - Tokens.UserLicenseStatus = (function() { - + Tokens.UserLicenseStatus = (function () { /** * Properties of a UserLicenseStatus. * @memberof Tokens @@ -142296,8 +147308,7 @@ export const Tokens = $root.Tokens = (() => { function UserLicenseStatus(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -142314,7 +147325,7 @@ export const Tokens = $root.Tokens = (() => { * @memberof Tokens.UserLicenseStatus * @instance */ - UserLicenseStatus.prototype.expiration = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + UserLicenseStatus.prototype.expiration = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * Creates a new UserLicenseStatus instance using the specified properties. @@ -142338,12 +147349,11 @@ export const Tokens = $root.Tokens = (() => { * @returns {$protobuf.Writer} Writer */ UserLicenseStatus.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.licenseType != null && Object.hasOwnProperty.call(message, "licenseType")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.licenseType); - if (message.expiration != null && Object.hasOwnProperty.call(message, "expiration")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.expiration); + if (!writer) writer = $Writer.create(); + if (message.licenseType != null && Object.hasOwnProperty.call(message, 'licenseType')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int32(message.licenseType); + if (message.expiration != null && Object.hasOwnProperty.call(message, 'expiration')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int64(message.expiration); return writer; }; @@ -142372,23 +147382,23 @@ export const Tokens = $root.Tokens = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ UserLicenseStatus.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Tokens.UserLicenseStatus(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Tokens.UserLicenseStatus(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.licenseType = reader.int32(); break; } - case 2: { + case 2: { message.expiration = reader.int64(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -142405,8 +147415,7 @@ export const Tokens = $root.Tokens = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ UserLicenseStatus.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -142419,21 +147428,27 @@ export const Tokens = $root.Tokens = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ UserLicenseStatus.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.licenseType != null && message.hasOwnProperty("licenseType")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.licenseType != null && message.hasOwnProperty('licenseType')) switch (message.licenseType) { - default: - return "licenseType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; + default: + return 'licenseType: enum value expected'; + case 0: + case 1: + case 2: + case 3: + break; } - if (message.expiration != null && message.hasOwnProperty("expiration")) - if (!$util.isInteger(message.expiration) && !(message.expiration && $util.isInteger(message.expiration.low) && $util.isInteger(message.expiration.high))) - return "expiration: integer|Long expected"; + if (message.expiration != null && message.hasOwnProperty('expiration')) + if ( + !$util.isInteger(message.expiration) && + !( + message.expiration && + $util.isInteger(message.expiration.low) && + $util.isInteger(message.expiration.high) + ) + ) + return 'expiration: integer|Long expected'; return null; }; @@ -142446,42 +147461,41 @@ export const Tokens = $root.Tokens = (() => { * @returns {Tokens.UserLicenseStatus} UserLicenseStatus */ UserLicenseStatus.fromObject = function fromObject(object) { - if (object instanceof $root.Tokens.UserLicenseStatus) - return object; + if (object instanceof $root.Tokens.UserLicenseStatus) return object; let message = new $root.Tokens.UserLicenseStatus(); switch (object.licenseType) { - default: - if (typeof object.licenseType === "number") { - message.licenseType = object.licenseType; - break; - } - break; - case "VAULT": - case 0: - message.licenseType = 0; - break; - case "CHAT": - case 1: - message.licenseType = 1; - break; - case "STORAGE": - case 2: - message.licenseType = 2; - break; - case "BREACHWATCH": - case 3: - message.licenseType = 3; - break; + default: + if (typeof object.licenseType === 'number') { + message.licenseType = object.licenseType; + break; + } + break; + case 'VAULT': + case 0: + message.licenseType = 0; + break; + case 'CHAT': + case 1: + message.licenseType = 1; + break; + case 'STORAGE': + case 2: + message.licenseType = 2; + break; + case 'BREACHWATCH': + case 3: + message.licenseType = 3; + break; } if (object.expiration != null) - if ($util.Long) - (message.expiration = $util.Long.fromValue(object.expiration)).unsigned = false; - else if (typeof object.expiration === "string") - message.expiration = parseInt(object.expiration, 10); - else if (typeof object.expiration === "number") - message.expiration = object.expiration; - else if (typeof object.expiration === "object") - message.expiration = new $util.LongBits(object.expiration.low >>> 0, object.expiration.high >>> 0).toNumber(); + if ($util.Long) (message.expiration = $util.Long.fromValue(object.expiration)).unsigned = false; + else if (typeof object.expiration === 'string') message.expiration = parseInt(object.expiration, 10); + else if (typeof object.expiration === 'number') message.expiration = object.expiration; + else if (typeof object.expiration === 'object') + message.expiration = new $util.LongBits( + object.expiration.low >>> 0, + object.expiration.high >>> 0 + ).toNumber(); return message; }; @@ -142495,24 +147509,36 @@ export const Tokens = $root.Tokens = (() => { * @returns {Object.} Plain object */ UserLicenseStatus.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - object.licenseType = options.enums === String ? "VAULT" : 0; + object.licenseType = options.enums === String ? 'VAULT' : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.expiration = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.expiration = options.longs === String ? "0" : 0; - } - if (message.licenseType != null && message.hasOwnProperty("licenseType")) - object.licenseType = options.enums === String ? $root.Authentication.LicenseType[message.licenseType] === undefined ? message.licenseType : $root.Authentication.LicenseType[message.licenseType] : message.licenseType; - if (message.expiration != null && message.hasOwnProperty("expiration")) - if (typeof message.expiration === "number") + object.expiration = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.expiration = options.longs === String ? '0' : 0; + } + if (message.licenseType != null && message.hasOwnProperty('licenseType')) + object.licenseType = + options.enums === String + ? $root.Authentication.LicenseType[message.licenseType] === undefined + ? message.licenseType + : $root.Authentication.LicenseType[message.licenseType] + : message.licenseType; + if (message.expiration != null && message.hasOwnProperty('expiration')) + if (typeof message.expiration === 'number') object.expiration = options.longs === String ? String(message.expiration) : message.expiration; else - object.expiration = options.longs === String ? $util.Long.prototype.toString.call(message.expiration) : options.longs === Number ? new $util.LongBits(message.expiration.low >>> 0, message.expiration.high >>> 0).toNumber() : message.expiration; + object.expiration = + options.longs === String + ? $util.Long.prototype.toString.call(message.expiration) + : options.longs === Number + ? new $util.LongBits( + message.expiration.low >>> 0, + message.expiration.high >>> 0 + ).toNumber() + : message.expiration; return object; }; @@ -142537,16 +147563,15 @@ export const Tokens = $root.Tokens = (() => { */ UserLicenseStatus.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Tokens.UserLicenseStatus"; + return typeUrlPrefix + '/Tokens.UserLicenseStatus'; }; return UserLicenseStatus; })(); - Tokens.CheckOutTokenResponse = (function() { - + Tokens.CheckOutTokenResponse = (function () { /** * Properties of a CheckOutTokenResponse. * @memberof Tokens @@ -142565,8 +147590,7 @@ export const Tokens = $root.Tokens = (() => { function CheckOutTokenResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -142575,7 +147599,7 @@ export const Tokens = $root.Tokens = (() => { * @memberof Tokens.CheckOutTokenResponse * @instance */ - CheckOutTokenResponse.prototype.checkOutToken = ""; + CheckOutTokenResponse.prototype.checkOutToken = ''; /** * Creates a new CheckOutTokenResponse instance using the specified properties. @@ -142599,10 +147623,9 @@ export const Tokens = $root.Tokens = (() => { * @returns {$protobuf.Writer} Writer */ CheckOutTokenResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.checkOutToken != null && Object.hasOwnProperty.call(message, "checkOutToken")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.checkOutToken); + if (!writer) writer = $Writer.create(); + if (message.checkOutToken != null && Object.hasOwnProperty.call(message, 'checkOutToken')) + writer.uint32(/* id 1, wireType 2 =*/ 10).string(message.checkOutToken); return writer; }; @@ -142631,19 +147654,19 @@ export const Tokens = $root.Tokens = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ CheckOutTokenResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Tokens.CheckOutTokenResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Tokens.CheckOutTokenResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.checkOutToken = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -142660,8 +147683,7 @@ export const Tokens = $root.Tokens = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ CheckOutTokenResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -142674,11 +147696,9 @@ export const Tokens = $root.Tokens = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ CheckOutTokenResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.checkOutToken != null && message.hasOwnProperty("checkOutToken")) - if (!$util.isString(message.checkOutToken)) - return "checkOutToken: string expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.checkOutToken != null && message.hasOwnProperty('checkOutToken')) + if (!$util.isString(message.checkOutToken)) return 'checkOutToken: string expected'; return null; }; @@ -142691,11 +147711,9 @@ export const Tokens = $root.Tokens = (() => { * @returns {Tokens.CheckOutTokenResponse} CheckOutTokenResponse */ CheckOutTokenResponse.fromObject = function fromObject(object) { - if (object instanceof $root.Tokens.CheckOutTokenResponse) - return object; + if (object instanceof $root.Tokens.CheckOutTokenResponse) return object; let message = new $root.Tokens.CheckOutTokenResponse(); - if (object.checkOutToken != null) - message.checkOutToken = String(object.checkOutToken); + if (object.checkOutToken != null) message.checkOutToken = String(object.checkOutToken); return message; }; @@ -142709,12 +147727,10 @@ export const Tokens = $root.Tokens = (() => { * @returns {Object.} Plain object */ CheckOutTokenResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.defaults) - object.checkOutToken = ""; - if (message.checkOutToken != null && message.hasOwnProperty("checkOutToken")) + if (options.defaults) object.checkOutToken = ''; + if (message.checkOutToken != null && message.hasOwnProperty('checkOutToken')) object.checkOutToken = message.checkOutToken; return object; }; @@ -142740,16 +147756,15 @@ export const Tokens = $root.Tokens = (() => { */ CheckOutTokenResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Tokens.CheckOutTokenResponse"; + return typeUrlPrefix + '/Tokens.CheckOutTokenResponse'; }; return CheckOutTokenResponse; })(); - Tokens.ImporterToken = (function() { - + Tokens.ImporterToken = (function () { /** * Properties of an ImporterToken. * @memberof Tokens @@ -142770,8 +147785,7 @@ export const Tokens = $root.Tokens = (() => { function ImporterToken(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -142796,7 +147810,7 @@ export const Tokens = $root.Tokens = (() => { * @memberof Tokens.ImporterToken * @instance */ - ImporterToken.prototype.region = ""; + ImporterToken.prototype.region = ''; /** * Creates a new ImporterToken instance using the specified properties. @@ -142820,14 +147834,13 @@ export const Tokens = $root.Tokens = (() => { * @returns {$protobuf.Writer} Writer */ ImporterToken.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.importId != null && Object.hasOwnProperty.call(message, "importId")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.importId); - if (message.userId != null && Object.hasOwnProperty.call(message, "userId")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.userId); - if (message.region != null && Object.hasOwnProperty.call(message, "region")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.region); + if (!writer) writer = $Writer.create(); + if (message.importId != null && Object.hasOwnProperty.call(message, 'importId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int32(message.importId); + if (message.userId != null && Object.hasOwnProperty.call(message, 'userId')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int32(message.userId); + if (message.region != null && Object.hasOwnProperty.call(message, 'region')) + writer.uint32(/* id 3, wireType 2 =*/ 26).string(message.region); return writer; }; @@ -142856,27 +147869,27 @@ export const Tokens = $root.Tokens = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ImporterToken.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Tokens.ImporterToken(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Tokens.ImporterToken(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.importId = reader.int32(); break; } - case 2: { + case 2: { message.userId = reader.int32(); break; } - case 3: { + case 3: { message.region = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -142893,8 +147906,7 @@ export const Tokens = $root.Tokens = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ImporterToken.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -142907,17 +147919,13 @@ export const Tokens = $root.Tokens = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ ImporterToken.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.importId != null && message.hasOwnProperty("importId")) - if (!$util.isInteger(message.importId)) - return "importId: integer expected"; - if (message.userId != null && message.hasOwnProperty("userId")) - if (!$util.isInteger(message.userId)) - return "userId: integer expected"; - if (message.region != null && message.hasOwnProperty("region")) - if (!$util.isString(message.region)) - return "region: string expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.importId != null && message.hasOwnProperty('importId')) + if (!$util.isInteger(message.importId)) return 'importId: integer expected'; + if (message.userId != null && message.hasOwnProperty('userId')) + if (!$util.isInteger(message.userId)) return 'userId: integer expected'; + if (message.region != null && message.hasOwnProperty('region')) + if (!$util.isString(message.region)) return 'region: string expected'; return null; }; @@ -142930,15 +147938,11 @@ export const Tokens = $root.Tokens = (() => { * @returns {Tokens.ImporterToken} ImporterToken */ ImporterToken.fromObject = function fromObject(object) { - if (object instanceof $root.Tokens.ImporterToken) - return object; + if (object instanceof $root.Tokens.ImporterToken) return object; let message = new $root.Tokens.ImporterToken(); - if (object.importId != null) - message.importId = object.importId | 0; - if (object.userId != null) - message.userId = object.userId | 0; - if (object.region != null) - message.region = String(object.region); + if (object.importId != null) message.importId = object.importId | 0; + if (object.userId != null) message.userId = object.userId | 0; + if (object.region != null) message.region = String(object.region); return message; }; @@ -142952,20 +147956,16 @@ export const Tokens = $root.Tokens = (() => { * @returns {Object.} Plain object */ ImporterToken.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { object.importId = 0; object.userId = 0; - object.region = ""; + object.region = ''; } - if (message.importId != null && message.hasOwnProperty("importId")) - object.importId = message.importId; - if (message.userId != null && message.hasOwnProperty("userId")) - object.userId = message.userId; - if (message.region != null && message.hasOwnProperty("region")) - object.region = message.region; + if (message.importId != null && message.hasOwnProperty('importId')) object.importId = message.importId; + if (message.userId != null && message.hasOwnProperty('userId')) object.userId = message.userId; + if (message.region != null && message.hasOwnProperty('region')) object.region = message.region; return object; }; @@ -142990,16 +147990,15 @@ export const Tokens = $root.Tokens = (() => { */ ImporterToken.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Tokens.ImporterToken"; + return typeUrlPrefix + '/Tokens.ImporterToken'; }; return ImporterToken; })(); - Tokens.ApiDecryptedRequest = (function() { - + Tokens.ApiDecryptedRequest = (function () { /** * Properties of an ApiDecryptedRequest. * @memberof Tokens @@ -143023,8 +148022,7 @@ export const Tokens = $root.Tokens = (() => { function ApiDecryptedRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -143057,7 +148055,7 @@ export const Tokens = $root.Tokens = (() => { * @memberof Tokens.ApiDecryptedRequest * @instance */ - ApiDecryptedRequest.prototype.recaptcha = ""; + ApiDecryptedRequest.prototype.recaptcha = ''; /** * ApiDecryptedRequest userAgent. @@ -143065,7 +148063,7 @@ export const Tokens = $root.Tokens = (() => { * @memberof Tokens.ApiDecryptedRequest * @instance */ - ApiDecryptedRequest.prototype.userAgent = ""; + ApiDecryptedRequest.prototype.userAgent = ''; /** * ApiDecryptedRequest subEnvironment. @@ -143073,7 +148071,7 @@ export const Tokens = $root.Tokens = (() => { * @memberof Tokens.ApiDecryptedRequest * @instance */ - ApiDecryptedRequest.prototype.subEnvironment = ""; + ApiDecryptedRequest.prototype.subEnvironment = ''; /** * Creates a new ApiDecryptedRequest instance using the specified properties. @@ -143097,20 +148095,25 @@ export const Tokens = $root.Tokens = (() => { * @returns {$protobuf.Writer} Writer */ ApiDecryptedRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.decryptedTransmissionKey != null && Object.hasOwnProperty.call(message, "decryptedTransmissionKey")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.decryptedTransmissionKey); - if (message.apiRequestPayload != null && Object.hasOwnProperty.call(message, "apiRequestPayload")) - $root.Authentication.ApiRequestPayload.encode(message.apiRequestPayload, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.supportedLanguage != null && Object.hasOwnProperty.call(message, "supportedLanguage")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.supportedLanguage); - if (message.recaptcha != null && Object.hasOwnProperty.call(message, "recaptcha")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.recaptcha); - if (message.userAgent != null && Object.hasOwnProperty.call(message, "userAgent")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.userAgent); - if (message.subEnvironment != null && Object.hasOwnProperty.call(message, "subEnvironment")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.subEnvironment); + if (!writer) writer = $Writer.create(); + if ( + message.decryptedTransmissionKey != null && + Object.hasOwnProperty.call(message, 'decryptedTransmissionKey') + ) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.decryptedTransmissionKey); + if (message.apiRequestPayload != null && Object.hasOwnProperty.call(message, 'apiRequestPayload')) + $root.Authentication.ApiRequestPayload.encode( + message.apiRequestPayload, + writer.uint32(/* id 3, wireType 2 =*/ 26).fork() + ).ldelim(); + if (message.supportedLanguage != null && Object.hasOwnProperty.call(message, 'supportedLanguage')) + writer.uint32(/* id 4, wireType 0 =*/ 32).int32(message.supportedLanguage); + if (message.recaptcha != null && Object.hasOwnProperty.call(message, 'recaptcha')) + writer.uint32(/* id 5, wireType 2 =*/ 42).string(message.recaptcha); + if (message.userAgent != null && Object.hasOwnProperty.call(message, 'userAgent')) + writer.uint32(/* id 6, wireType 2 =*/ 50).string(message.userAgent); + if (message.subEnvironment != null && Object.hasOwnProperty.call(message, 'subEnvironment')) + writer.uint32(/* id 7, wireType 2 =*/ 58).string(message.subEnvironment); return writer; }; @@ -143139,39 +148142,42 @@ export const Tokens = $root.Tokens = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ApiDecryptedRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Tokens.ApiDecryptedRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Tokens.ApiDecryptedRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.decryptedTransmissionKey = reader.bytes(); break; } - case 3: { - message.apiRequestPayload = $root.Authentication.ApiRequestPayload.decode(reader, reader.uint32()); + case 3: { + message.apiRequestPayload = $root.Authentication.ApiRequestPayload.decode( + reader, + reader.uint32() + ); break; } - case 4: { + case 4: { message.supportedLanguage = reader.int32(); break; } - case 5: { + case 5: { message.recaptcha = reader.string(); break; } - case 6: { + case 6: { message.userAgent = reader.string(); break; } - case 7: { + case 7: { message.subEnvironment = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -143188,8 +148194,7 @@ export const Tokens = $root.Tokens = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ApiDecryptedRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -143202,185 +148207,188 @@ export const Tokens = $root.Tokens = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ ApiDecryptedRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.decryptedTransmissionKey != null && message.hasOwnProperty("decryptedTransmissionKey")) - if (!(message.decryptedTransmissionKey && typeof message.decryptedTransmissionKey.length === "number" || $util.isString(message.decryptedTransmissionKey))) - return "decryptedTransmissionKey: buffer expected"; - if (message.apiRequestPayload != null && message.hasOwnProperty("apiRequestPayload")) { + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.decryptedTransmissionKey != null && message.hasOwnProperty('decryptedTransmissionKey')) + if ( + !( + (message.decryptedTransmissionKey && + typeof message.decryptedTransmissionKey.length === 'number') || + $util.isString(message.decryptedTransmissionKey) + ) + ) + return 'decryptedTransmissionKey: buffer expected'; + if (message.apiRequestPayload != null && message.hasOwnProperty('apiRequestPayload')) { let error = $root.Authentication.ApiRequestPayload.verify(message.apiRequestPayload); - if (error) - return "apiRequestPayload." + error; + if (error) return 'apiRequestPayload.' + error; } - if (message.supportedLanguage != null && message.hasOwnProperty("supportedLanguage")) + if (message.supportedLanguage != null && message.hasOwnProperty('supportedLanguage')) switch (message.supportedLanguage) { + default: + return 'supportedLanguage: enum value expected'; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + case 10: + case 11: + case 12: + case 13: + case 14: + case 15: + case 16: + case 17: + case 18: + case 19: + case 20: + case 21: + case 22: + break; + } + if (message.recaptcha != null && message.hasOwnProperty('recaptcha')) + if (!$util.isString(message.recaptcha)) return 'recaptcha: string expected'; + if (message.userAgent != null && message.hasOwnProperty('userAgent')) + if (!$util.isString(message.userAgent)) return 'userAgent: string expected'; + if (message.subEnvironment != null && message.hasOwnProperty('subEnvironment')) + if (!$util.isString(message.subEnvironment)) return 'subEnvironment: string expected'; + return null; + }; + + /** + * Creates an ApiDecryptedRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof Tokens.ApiDecryptedRequest + * @static + * @param {Object.} object Plain object + * @returns {Tokens.ApiDecryptedRequest} ApiDecryptedRequest + */ + ApiDecryptedRequest.fromObject = function fromObject(object) { + if (object instanceof $root.Tokens.ApiDecryptedRequest) return object; + let message = new $root.Tokens.ApiDecryptedRequest(); + if (object.decryptedTransmissionKey != null) + if (typeof object.decryptedTransmissionKey === 'string') + $util.base64.decode( + object.decryptedTransmissionKey, + (message.decryptedTransmissionKey = $util.newBuffer( + $util.base64.length(object.decryptedTransmissionKey) + )), + 0 + ); + else if (object.decryptedTransmissionKey.length >= 0) + message.decryptedTransmissionKey = object.decryptedTransmissionKey; + if (object.apiRequestPayload != null) { + if (typeof object.apiRequestPayload !== 'object') + throw TypeError('.Tokens.ApiDecryptedRequest.apiRequestPayload: object expected'); + message.apiRequestPayload = $root.Authentication.ApiRequestPayload.fromObject(object.apiRequestPayload); + } + switch (object.supportedLanguage) { default: - return "supportedLanguage: enum value expected"; + if (typeof object.supportedLanguage === 'number') { + message.supportedLanguage = object.supportedLanguage; + break; + } + break; + case 'ENGLISH': case 0: + message.supportedLanguage = 0; + break; + case 'ARABIC': case 1: + message.supportedLanguage = 1; + break; + case 'BRITISH': case 2: + message.supportedLanguage = 2; + break; + case 'CHINESE': case 3: + message.supportedLanguage = 3; + break; + case 'CHINESE_HONG_KONG': case 4: + message.supportedLanguage = 4; + break; + case 'CHINESE_TAIWAN': case 5: + message.supportedLanguage = 5; + break; + case 'DUTCH': case 6: + message.supportedLanguage = 6; + break; + case 'FRENCH': case 7: + message.supportedLanguage = 7; + break; + case 'GERMAN': case 8: + message.supportedLanguage = 8; + break; + case 'GREEK': case 9: + message.supportedLanguage = 9; + break; + case 'HEBREW': case 10: + message.supportedLanguage = 10; + break; + case 'ITALIAN': case 11: + message.supportedLanguage = 11; + break; + case 'JAPANESE': case 12: + message.supportedLanguage = 12; + break; + case 'KOREAN': case 13: + message.supportedLanguage = 13; + break; + case 'POLISH': case 14: + message.supportedLanguage = 14; + break; + case 'PORTUGUESE': case 15: + message.supportedLanguage = 15; + break; + case 'PORTUGUESE_BRAZIL': case 16: + message.supportedLanguage = 16; + break; + case 'ROMANIAN': case 17: + message.supportedLanguage = 17; + break; + case 'RUSSIAN': case 18: + message.supportedLanguage = 18; + break; + case 'SLOVAK': case 19: + message.supportedLanguage = 19; + break; + case 'SPANISH': case 20: + message.supportedLanguage = 20; + break; + case 'FINNISH': case 21: + message.supportedLanguage = 21; + break; + case 'SWEDISH': case 22: + message.supportedLanguage = 22; break; - } - if (message.recaptcha != null && message.hasOwnProperty("recaptcha")) - if (!$util.isString(message.recaptcha)) - return "recaptcha: string expected"; - if (message.userAgent != null && message.hasOwnProperty("userAgent")) - if (!$util.isString(message.userAgent)) - return "userAgent: string expected"; - if (message.subEnvironment != null && message.hasOwnProperty("subEnvironment")) - if (!$util.isString(message.subEnvironment)) - return "subEnvironment: string expected"; - return null; - }; - - /** - * Creates an ApiDecryptedRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof Tokens.ApiDecryptedRequest - * @static - * @param {Object.} object Plain object - * @returns {Tokens.ApiDecryptedRequest} ApiDecryptedRequest - */ - ApiDecryptedRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Tokens.ApiDecryptedRequest) - return object; - let message = new $root.Tokens.ApiDecryptedRequest(); - if (object.decryptedTransmissionKey != null) - if (typeof object.decryptedTransmissionKey === "string") - $util.base64.decode(object.decryptedTransmissionKey, message.decryptedTransmissionKey = $util.newBuffer($util.base64.length(object.decryptedTransmissionKey)), 0); - else if (object.decryptedTransmissionKey.length >= 0) - message.decryptedTransmissionKey = object.decryptedTransmissionKey; - if (object.apiRequestPayload != null) { - if (typeof object.apiRequestPayload !== "object") - throw TypeError(".Tokens.ApiDecryptedRequest.apiRequestPayload: object expected"); - message.apiRequestPayload = $root.Authentication.ApiRequestPayload.fromObject(object.apiRequestPayload); } - switch (object.supportedLanguage) { - default: - if (typeof object.supportedLanguage === "number") { - message.supportedLanguage = object.supportedLanguage; - break; - } - break; - case "ENGLISH": - case 0: - message.supportedLanguage = 0; - break; - case "ARABIC": - case 1: - message.supportedLanguage = 1; - break; - case "BRITISH": - case 2: - message.supportedLanguage = 2; - break; - case "CHINESE": - case 3: - message.supportedLanguage = 3; - break; - case "CHINESE_HONG_KONG": - case 4: - message.supportedLanguage = 4; - break; - case "CHINESE_TAIWAN": - case 5: - message.supportedLanguage = 5; - break; - case "DUTCH": - case 6: - message.supportedLanguage = 6; - break; - case "FRENCH": - case 7: - message.supportedLanguage = 7; - break; - case "GERMAN": - case 8: - message.supportedLanguage = 8; - break; - case "GREEK": - case 9: - message.supportedLanguage = 9; - break; - case "HEBREW": - case 10: - message.supportedLanguage = 10; - break; - case "ITALIAN": - case 11: - message.supportedLanguage = 11; - break; - case "JAPANESE": - case 12: - message.supportedLanguage = 12; - break; - case "KOREAN": - case 13: - message.supportedLanguage = 13; - break; - case "POLISH": - case 14: - message.supportedLanguage = 14; - break; - case "PORTUGUESE": - case 15: - message.supportedLanguage = 15; - break; - case "PORTUGUESE_BRAZIL": - case 16: - message.supportedLanguage = 16; - break; - case "ROMANIAN": - case 17: - message.supportedLanguage = 17; - break; - case "RUSSIAN": - case 18: - message.supportedLanguage = 18; - break; - case "SLOVAK": - case 19: - message.supportedLanguage = 19; - break; - case "SPANISH": - case 20: - message.supportedLanguage = 20; - break; - case "FINNISH": - case 21: - message.supportedLanguage = 21; - break; - case "SWEDISH": - case 22: - message.supportedLanguage = 22; - break; - } - if (object.recaptcha != null) - message.recaptcha = String(object.recaptcha); - if (object.userAgent != null) - message.userAgent = String(object.userAgent); - if (object.subEnvironment != null) - message.subEnvironment = String(object.subEnvironment); + if (object.recaptcha != null) message.recaptcha = String(object.recaptcha); + if (object.userAgent != null) message.userAgent = String(object.userAgent); + if (object.subEnvironment != null) message.subEnvironment = String(object.subEnvironment); return message; }; @@ -143394,34 +148402,47 @@ export const Tokens = $root.Tokens = (() => { * @returns {Object.} Plain object */ ApiDecryptedRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.decryptedTransmissionKey = ""; + if (options.bytes === String) object.decryptedTransmissionKey = ''; else { object.decryptedTransmissionKey = []; if (options.bytes !== Array) object.decryptedTransmissionKey = $util.newBuffer(object.decryptedTransmissionKey); } object.apiRequestPayload = null; - object.supportedLanguage = options.enums === String ? "ENGLISH" : 0; - object.recaptcha = ""; - object.userAgent = ""; - object.subEnvironment = ""; - } - if (message.decryptedTransmissionKey != null && message.hasOwnProperty("decryptedTransmissionKey")) - object.decryptedTransmissionKey = options.bytes === String ? $util.base64.encode(message.decryptedTransmissionKey, 0, message.decryptedTransmissionKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.decryptedTransmissionKey) : message.decryptedTransmissionKey; - if (message.apiRequestPayload != null && message.hasOwnProperty("apiRequestPayload")) - object.apiRequestPayload = $root.Authentication.ApiRequestPayload.toObject(message.apiRequestPayload, options); - if (message.supportedLanguage != null && message.hasOwnProperty("supportedLanguage")) - object.supportedLanguage = options.enums === String ? $root.Authentication.SupportedLanguage[message.supportedLanguage] === undefined ? message.supportedLanguage : $root.Authentication.SupportedLanguage[message.supportedLanguage] : message.supportedLanguage; - if (message.recaptcha != null && message.hasOwnProperty("recaptcha")) - object.recaptcha = message.recaptcha; - if (message.userAgent != null && message.hasOwnProperty("userAgent")) - object.userAgent = message.userAgent; - if (message.subEnvironment != null && message.hasOwnProperty("subEnvironment")) + object.supportedLanguage = options.enums === String ? 'ENGLISH' : 0; + object.recaptcha = ''; + object.userAgent = ''; + object.subEnvironment = ''; + } + if (message.decryptedTransmissionKey != null && message.hasOwnProperty('decryptedTransmissionKey')) + object.decryptedTransmissionKey = + options.bytes === String + ? $util.base64.encode( + message.decryptedTransmissionKey, + 0, + message.decryptedTransmissionKey.length + ) + : options.bytes === Array + ? Array.prototype.slice.call(message.decryptedTransmissionKey) + : message.decryptedTransmissionKey; + if (message.apiRequestPayload != null && message.hasOwnProperty('apiRequestPayload')) + object.apiRequestPayload = $root.Authentication.ApiRequestPayload.toObject( + message.apiRequestPayload, + options + ); + if (message.supportedLanguage != null && message.hasOwnProperty('supportedLanguage')) + object.supportedLanguage = + options.enums === String + ? $root.Authentication.SupportedLanguage[message.supportedLanguage] === undefined + ? message.supportedLanguage + : $root.Authentication.SupportedLanguage[message.supportedLanguage] + : message.supportedLanguage; + if (message.recaptcha != null && message.hasOwnProperty('recaptcha')) object.recaptcha = message.recaptcha; + if (message.userAgent != null && message.hasOwnProperty('userAgent')) object.userAgent = message.userAgent; + if (message.subEnvironment != null && message.hasOwnProperty('subEnvironment')) object.subEnvironment = message.subEnvironment; return object; }; @@ -143447,16 +148468,15 @@ export const Tokens = $root.Tokens = (() => { */ ApiDecryptedRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Tokens.ApiDecryptedRequest"; + return typeUrlPrefix + '/Tokens.ApiDecryptedRequest'; }; return ApiDecryptedRequest; })(); - Tokens.ChangeEmailToken = (function() { - + Tokens.ChangeEmailToken = (function () { /** * Properties of a ChangeEmailToken. * @memberof Tokens @@ -143480,8 +148500,7 @@ export const Tokens = $root.Tokens = (() => { function ChangeEmailToken(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -143498,7 +148517,7 @@ export const Tokens = $root.Tokens = (() => { * @memberof Tokens.ChangeEmailToken * @instance */ - ChangeEmailToken.prototype.newEmail = ""; + ChangeEmailToken.prototype.newEmail = ''; /** * ChangeEmailToken supportedLanguage. @@ -143514,7 +148533,7 @@ export const Tokens = $root.Tokens = (() => { * @memberof Tokens.ChangeEmailToken * @instance */ - ChangeEmailToken.prototype.enterpriseUserId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + ChangeEmailToken.prototype.enterpriseUserId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * ChangeEmailToken creation. @@ -143522,7 +148541,7 @@ export const Tokens = $root.Tokens = (() => { * @memberof Tokens.ChangeEmailToken * @instance */ - ChangeEmailToken.prototype.creation = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + ChangeEmailToken.prototype.creation = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * ChangeEmailToken clientVersionId. @@ -143554,20 +148573,19 @@ export const Tokens = $root.Tokens = (() => { * @returns {$protobuf.Writer} Writer */ ChangeEmailToken.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.userId != null && Object.hasOwnProperty.call(message, "userId")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.userId); - if (message.newEmail != null && Object.hasOwnProperty.call(message, "newEmail")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.newEmail); - if (message.supportedLanguage != null && Object.hasOwnProperty.call(message, "supportedLanguage")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.supportedLanguage); - if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "enterpriseUserId")) - writer.uint32(/* id 4, wireType 0 =*/32).int64(message.enterpriseUserId); - if (message.creation != null && Object.hasOwnProperty.call(message, "creation")) - writer.uint32(/* id 5, wireType 0 =*/40).int64(message.creation); - if (message.clientVersionId != null && Object.hasOwnProperty.call(message, "clientVersionId")) - writer.uint32(/* id 6, wireType 0 =*/48).int32(message.clientVersionId); + if (!writer) writer = $Writer.create(); + if (message.userId != null && Object.hasOwnProperty.call(message, 'userId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int32(message.userId); + if (message.newEmail != null && Object.hasOwnProperty.call(message, 'newEmail')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.newEmail); + if (message.supportedLanguage != null && Object.hasOwnProperty.call(message, 'supportedLanguage')) + writer.uint32(/* id 3, wireType 0 =*/ 24).int32(message.supportedLanguage); + if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, 'enterpriseUserId')) + writer.uint32(/* id 4, wireType 0 =*/ 32).int64(message.enterpriseUserId); + if (message.creation != null && Object.hasOwnProperty.call(message, 'creation')) + writer.uint32(/* id 5, wireType 0 =*/ 40).int64(message.creation); + if (message.clientVersionId != null && Object.hasOwnProperty.call(message, 'clientVersionId')) + writer.uint32(/* id 6, wireType 0 =*/ 48).int32(message.clientVersionId); return writer; }; @@ -143596,39 +148614,39 @@ export const Tokens = $root.Tokens = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ChangeEmailToken.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Tokens.ChangeEmailToken(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Tokens.ChangeEmailToken(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.userId = reader.int32(); break; } - case 2: { + case 2: { message.newEmail = reader.string(); break; } - case 3: { + case 3: { message.supportedLanguage = reader.int32(); break; } - case 4: { + case 4: { message.enterpriseUserId = reader.int64(); break; } - case 5: { + case 5: { message.creation = reader.int64(); break; } - case 6: { + case 6: { message.clientVersionId = reader.int32(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -143645,8 +148663,7 @@ export const Tokens = $root.Tokens = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ChangeEmailToken.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -143659,191 +148676,200 @@ export const Tokens = $root.Tokens = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ ChangeEmailToken.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.userId != null && message.hasOwnProperty("userId")) - if (!$util.isInteger(message.userId)) - return "userId: integer expected"; - if (message.newEmail != null && message.hasOwnProperty("newEmail")) - if (!$util.isString(message.newEmail)) - return "newEmail: string expected"; - if (message.supportedLanguage != null && message.hasOwnProperty("supportedLanguage")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.userId != null && message.hasOwnProperty('userId')) + if (!$util.isInteger(message.userId)) return 'userId: integer expected'; + if (message.newEmail != null && message.hasOwnProperty('newEmail')) + if (!$util.isString(message.newEmail)) return 'newEmail: string expected'; + if (message.supportedLanguage != null && message.hasOwnProperty('supportedLanguage')) switch (message.supportedLanguage) { + default: + return 'supportedLanguage: enum value expected'; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + case 10: + case 11: + case 12: + case 13: + case 14: + case 15: + case 16: + case 17: + case 18: + case 19: + case 20: + case 21: + case 22: + break; + } + if (message.enterpriseUserId != null && message.hasOwnProperty('enterpriseUserId')) + if ( + !$util.isInteger(message.enterpriseUserId) && + !( + message.enterpriseUserId && + $util.isInteger(message.enterpriseUserId.low) && + $util.isInteger(message.enterpriseUserId.high) + ) + ) + return 'enterpriseUserId: integer|Long expected'; + if (message.creation != null && message.hasOwnProperty('creation')) + if ( + !$util.isInteger(message.creation) && + !( + message.creation && + $util.isInteger(message.creation.low) && + $util.isInteger(message.creation.high) + ) + ) + return 'creation: integer|Long expected'; + if (message.clientVersionId != null && message.hasOwnProperty('clientVersionId')) + if (!$util.isInteger(message.clientVersionId)) return 'clientVersionId: integer expected'; + return null; + }; + + /** + * Creates a ChangeEmailToken message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof Tokens.ChangeEmailToken + * @static + * @param {Object.} object Plain object + * @returns {Tokens.ChangeEmailToken} ChangeEmailToken + */ + ChangeEmailToken.fromObject = function fromObject(object) { + if (object instanceof $root.Tokens.ChangeEmailToken) return object; + let message = new $root.Tokens.ChangeEmailToken(); + if (object.userId != null) message.userId = object.userId | 0; + if (object.newEmail != null) message.newEmail = String(object.newEmail); + switch (object.supportedLanguage) { default: - return "supportedLanguage: enum value expected"; + if (typeof object.supportedLanguage === 'number') { + message.supportedLanguage = object.supportedLanguage; + break; + } + break; + case 'ENGLISH': case 0: + message.supportedLanguage = 0; + break; + case 'ARABIC': case 1: + message.supportedLanguage = 1; + break; + case 'BRITISH': case 2: + message.supportedLanguage = 2; + break; + case 'CHINESE': case 3: + message.supportedLanguage = 3; + break; + case 'CHINESE_HONG_KONG': case 4: + message.supportedLanguage = 4; + break; + case 'CHINESE_TAIWAN': case 5: + message.supportedLanguage = 5; + break; + case 'DUTCH': case 6: + message.supportedLanguage = 6; + break; + case 'FRENCH': case 7: + message.supportedLanguage = 7; + break; + case 'GERMAN': case 8: + message.supportedLanguage = 8; + break; + case 'GREEK': case 9: + message.supportedLanguage = 9; + break; + case 'HEBREW': case 10: + message.supportedLanguage = 10; + break; + case 'ITALIAN': case 11: + message.supportedLanguage = 11; + break; + case 'JAPANESE': case 12: + message.supportedLanguage = 12; + break; + case 'KOREAN': case 13: + message.supportedLanguage = 13; + break; + case 'POLISH': case 14: + message.supportedLanguage = 14; + break; + case 'PORTUGUESE': case 15: + message.supportedLanguage = 15; + break; + case 'PORTUGUESE_BRAZIL': case 16: + message.supportedLanguage = 16; + break; + case 'ROMANIAN': case 17: + message.supportedLanguage = 17; + break; + case 'RUSSIAN': case 18: + message.supportedLanguage = 18; + break; + case 'SLOVAK': case 19: + message.supportedLanguage = 19; + break; + case 'SPANISH': case 20: + message.supportedLanguage = 20; + break; + case 'FINNISH': case 21: + message.supportedLanguage = 21; + break; + case 'SWEDISH': case 22: + message.supportedLanguage = 22; break; - } - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (!$util.isInteger(message.enterpriseUserId) && !(message.enterpriseUserId && $util.isInteger(message.enterpriseUserId.low) && $util.isInteger(message.enterpriseUserId.high))) - return "enterpriseUserId: integer|Long expected"; - if (message.creation != null && message.hasOwnProperty("creation")) - if (!$util.isInteger(message.creation) && !(message.creation && $util.isInteger(message.creation.low) && $util.isInteger(message.creation.high))) - return "creation: integer|Long expected"; - if (message.clientVersionId != null && message.hasOwnProperty("clientVersionId")) - if (!$util.isInteger(message.clientVersionId)) - return "clientVersionId: integer expected"; - return null; - }; - - /** - * Creates a ChangeEmailToken message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof Tokens.ChangeEmailToken - * @static - * @param {Object.} object Plain object - * @returns {Tokens.ChangeEmailToken} ChangeEmailToken - */ - ChangeEmailToken.fromObject = function fromObject(object) { - if (object instanceof $root.Tokens.ChangeEmailToken) - return object; - let message = new $root.Tokens.ChangeEmailToken(); - if (object.userId != null) - message.userId = object.userId | 0; - if (object.newEmail != null) - message.newEmail = String(object.newEmail); - switch (object.supportedLanguage) { - default: - if (typeof object.supportedLanguage === "number") { - message.supportedLanguage = object.supportedLanguage; - break; - } - break; - case "ENGLISH": - case 0: - message.supportedLanguage = 0; - break; - case "ARABIC": - case 1: - message.supportedLanguage = 1; - break; - case "BRITISH": - case 2: - message.supportedLanguage = 2; - break; - case "CHINESE": - case 3: - message.supportedLanguage = 3; - break; - case "CHINESE_HONG_KONG": - case 4: - message.supportedLanguage = 4; - break; - case "CHINESE_TAIWAN": - case 5: - message.supportedLanguage = 5; - break; - case "DUTCH": - case 6: - message.supportedLanguage = 6; - break; - case "FRENCH": - case 7: - message.supportedLanguage = 7; - break; - case "GERMAN": - case 8: - message.supportedLanguage = 8; - break; - case "GREEK": - case 9: - message.supportedLanguage = 9; - break; - case "HEBREW": - case 10: - message.supportedLanguage = 10; - break; - case "ITALIAN": - case 11: - message.supportedLanguage = 11; - break; - case "JAPANESE": - case 12: - message.supportedLanguage = 12; - break; - case "KOREAN": - case 13: - message.supportedLanguage = 13; - break; - case "POLISH": - case 14: - message.supportedLanguage = 14; - break; - case "PORTUGUESE": - case 15: - message.supportedLanguage = 15; - break; - case "PORTUGUESE_BRAZIL": - case 16: - message.supportedLanguage = 16; - break; - case "ROMANIAN": - case 17: - message.supportedLanguage = 17; - break; - case "RUSSIAN": - case 18: - message.supportedLanguage = 18; - break; - case "SLOVAK": - case 19: - message.supportedLanguage = 19; - break; - case "SPANISH": - case 20: - message.supportedLanguage = 20; - break; - case "FINNISH": - case 21: - message.supportedLanguage = 21; - break; - case "SWEDISH": - case 22: - message.supportedLanguage = 22; - break; } if (object.enterpriseUserId != null) if ($util.Long) (message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId)).unsigned = false; - else if (typeof object.enterpriseUserId === "string") + else if (typeof object.enterpriseUserId === 'string') message.enterpriseUserId = parseInt(object.enterpriseUserId, 10); - else if (typeof object.enterpriseUserId === "number") + else if (typeof object.enterpriseUserId === 'number') message.enterpriseUserId = object.enterpriseUserId; - else if (typeof object.enterpriseUserId === "object") - message.enterpriseUserId = new $util.LongBits(object.enterpriseUserId.low >>> 0, object.enterpriseUserId.high >>> 0).toNumber(); + else if (typeof object.enterpriseUserId === 'object') + message.enterpriseUserId = new $util.LongBits( + object.enterpriseUserId.low >>> 0, + object.enterpriseUserId.high >>> 0 + ).toNumber(); if (object.creation != null) - if ($util.Long) - (message.creation = $util.Long.fromValue(object.creation)).unsigned = false; - else if (typeof object.creation === "string") - message.creation = parseInt(object.creation, 10); - else if (typeof object.creation === "number") - message.creation = object.creation; - else if (typeof object.creation === "object") - message.creation = new $util.LongBits(object.creation.low >>> 0, object.creation.high >>> 0).toNumber(); - if (object.clientVersionId != null) - message.clientVersionId = object.clientVersionId | 0; + if ($util.Long) (message.creation = $util.Long.fromValue(object.creation)).unsigned = false; + else if (typeof object.creation === 'string') message.creation = parseInt(object.creation, 10); + else if (typeof object.creation === 'number') message.creation = object.creation; + else if (typeof object.creation === 'object') + message.creation = new $util.LongBits( + object.creation.low >>> 0, + object.creation.high >>> 0 + ).toNumber(); + if (object.clientVersionId != null) message.clientVersionId = object.clientVersionId | 0; return message; }; @@ -143857,42 +148883,58 @@ export const Tokens = $root.Tokens = (() => { * @returns {Object.} Plain object */ ChangeEmailToken.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { object.userId = 0; - object.newEmail = ""; - object.supportedLanguage = options.enums === String ? "ENGLISH" : 0; + object.newEmail = ''; + object.supportedLanguage = options.enums === String ? 'ENGLISH' : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.enterpriseUserId = options.longs === String ? "0" : 0; + object.enterpriseUserId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.enterpriseUserId = options.longs === String ? '0' : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.creation = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.creation = options.longs === String ? "0" : 0; + object.creation = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.creation = options.longs === String ? '0' : 0; object.clientVersionId = 0; } - if (message.userId != null && message.hasOwnProperty("userId")) - object.userId = message.userId; - if (message.newEmail != null && message.hasOwnProperty("newEmail")) - object.newEmail = message.newEmail; - if (message.supportedLanguage != null && message.hasOwnProperty("supportedLanguage")) - object.supportedLanguage = options.enums === String ? $root.Authentication.SupportedLanguage[message.supportedLanguage] === undefined ? message.supportedLanguage : $root.Authentication.SupportedLanguage[message.supportedLanguage] : message.supportedLanguage; - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (typeof message.enterpriseUserId === "number") - object.enterpriseUserId = options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; + if (message.userId != null && message.hasOwnProperty('userId')) object.userId = message.userId; + if (message.newEmail != null && message.hasOwnProperty('newEmail')) object.newEmail = message.newEmail; + if (message.supportedLanguage != null && message.hasOwnProperty('supportedLanguage')) + object.supportedLanguage = + options.enums === String + ? $root.Authentication.SupportedLanguage[message.supportedLanguage] === undefined + ? message.supportedLanguage + : $root.Authentication.SupportedLanguage[message.supportedLanguage] + : message.supportedLanguage; + if (message.enterpriseUserId != null && message.hasOwnProperty('enterpriseUserId')) + if (typeof message.enterpriseUserId === 'number') + object.enterpriseUserId = + options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; else - object.enterpriseUserId = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseUserId) : options.longs === Number ? new $util.LongBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0).toNumber() : message.enterpriseUserId; - if (message.creation != null && message.hasOwnProperty("creation")) - if (typeof message.creation === "number") + object.enterpriseUserId = + options.longs === String + ? $util.Long.prototype.toString.call(message.enterpriseUserId) + : options.longs === Number + ? new $util.LongBits( + message.enterpriseUserId.low >>> 0, + message.enterpriseUserId.high >>> 0 + ).toNumber() + : message.enterpriseUserId; + if (message.creation != null && message.hasOwnProperty('creation')) + if (typeof message.creation === 'number') object.creation = options.longs === String ? String(message.creation) : message.creation; else - object.creation = options.longs === String ? $util.Long.prototype.toString.call(message.creation) : options.longs === Number ? new $util.LongBits(message.creation.low >>> 0, message.creation.high >>> 0).toNumber() : message.creation; - if (message.clientVersionId != null && message.hasOwnProperty("clientVersionId")) + object.creation = + options.longs === String + ? $util.Long.prototype.toString.call(message.creation) + : options.longs === Number + ? new $util.LongBits(message.creation.low >>> 0, message.creation.high >>> 0).toNumber() + : message.creation; + if (message.clientVersionId != null && message.hasOwnProperty('clientVersionId')) object.clientVersionId = message.clientVersionId; return object; }; @@ -143918,16 +148960,15 @@ export const Tokens = $root.Tokens = (() => { */ ChangeEmailToken.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Tokens.ChangeEmailToken"; + return typeUrlPrefix + '/Tokens.ChangeEmailToken'; }; return ChangeEmailToken; })(); - Tokens.EmailVerificationToken = (function() { - + Tokens.EmailVerificationToken = (function () { /** * Properties of an EmailVerificationToken. * @memberof Tokens @@ -143950,8 +148991,7 @@ export const Tokens = $root.Tokens = (() => { function EmailVerificationToken(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -143968,7 +149008,7 @@ export const Tokens = $root.Tokens = (() => { * @memberof Tokens.EmailVerificationToken * @instance */ - EmailVerificationToken.prototype.email = ""; + EmailVerificationToken.prototype.email = ''; /** * EmailVerificationToken du1. @@ -143976,7 +149016,7 @@ export const Tokens = $root.Tokens = (() => { * @memberof Tokens.EmailVerificationToken * @instance */ - EmailVerificationToken.prototype.du1 = ""; + EmailVerificationToken.prototype.du1 = ''; /** * EmailVerificationToken enterpriseUserId. @@ -143984,7 +149024,7 @@ export const Tokens = $root.Tokens = (() => { * @memberof Tokens.EmailVerificationToken * @instance */ - EmailVerificationToken.prototype.enterpriseUserId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + EmailVerificationToken.prototype.enterpriseUserId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * EmailVerificationToken du2. @@ -143992,7 +149032,7 @@ export const Tokens = $root.Tokens = (() => { * @memberof Tokens.EmailVerificationToken * @instance */ - EmailVerificationToken.prototype.du2 = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + EmailVerificationToken.prototype.du2 = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * Creates a new EmailVerificationToken instance using the specified properties. @@ -144016,18 +149056,17 @@ export const Tokens = $root.Tokens = (() => { * @returns {$protobuf.Writer} Writer */ EmailVerificationToken.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.userId != null && Object.hasOwnProperty.call(message, "userId")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.userId); - if (message.email != null && Object.hasOwnProperty.call(message, "email")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.email); - if (message.du1 != null && Object.hasOwnProperty.call(message, "du1")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.du1); - if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "enterpriseUserId")) - writer.uint32(/* id 4, wireType 0 =*/32).int64(message.enterpriseUserId); - if (message.du2 != null && Object.hasOwnProperty.call(message, "du2")) - writer.uint32(/* id 5, wireType 0 =*/40).int64(message.du2); + if (!writer) writer = $Writer.create(); + if (message.userId != null && Object.hasOwnProperty.call(message, 'userId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int32(message.userId); + if (message.email != null && Object.hasOwnProperty.call(message, 'email')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.email); + if (message.du1 != null && Object.hasOwnProperty.call(message, 'du1')) + writer.uint32(/* id 3, wireType 2 =*/ 26).string(message.du1); + if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, 'enterpriseUserId')) + writer.uint32(/* id 4, wireType 0 =*/ 32).int64(message.enterpriseUserId); + if (message.du2 != null && Object.hasOwnProperty.call(message, 'du2')) + writer.uint32(/* id 5, wireType 0 =*/ 40).int64(message.du2); return writer; }; @@ -144056,35 +149095,35 @@ export const Tokens = $root.Tokens = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ EmailVerificationToken.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Tokens.EmailVerificationToken(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Tokens.EmailVerificationToken(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.userId = reader.int32(); break; } - case 2: { + case 2: { message.email = reader.string(); break; } - case 3: { + case 3: { message.du1 = reader.string(); break; } - case 4: { + case 4: { message.enterpriseUserId = reader.int64(); break; } - case 5: { + case 5: { message.du2 = reader.int64(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -144101,8 +149140,7 @@ export const Tokens = $root.Tokens = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ EmailVerificationToken.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -144115,23 +149153,29 @@ export const Tokens = $root.Tokens = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ EmailVerificationToken.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.userId != null && message.hasOwnProperty("userId")) - if (!$util.isInteger(message.userId)) - return "userId: integer expected"; - if (message.email != null && message.hasOwnProperty("email")) - if (!$util.isString(message.email)) - return "email: string expected"; - if (message.du1 != null && message.hasOwnProperty("du1")) - if (!$util.isString(message.du1)) - return "du1: string expected"; - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (!$util.isInteger(message.enterpriseUserId) && !(message.enterpriseUserId && $util.isInteger(message.enterpriseUserId.low) && $util.isInteger(message.enterpriseUserId.high))) - return "enterpriseUserId: integer|Long expected"; - if (message.du2 != null && message.hasOwnProperty("du2")) - if (!$util.isInteger(message.du2) && !(message.du2 && $util.isInteger(message.du2.low) && $util.isInteger(message.du2.high))) - return "du2: integer|Long expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.userId != null && message.hasOwnProperty('userId')) + if (!$util.isInteger(message.userId)) return 'userId: integer expected'; + if (message.email != null && message.hasOwnProperty('email')) + if (!$util.isString(message.email)) return 'email: string expected'; + if (message.du1 != null && message.hasOwnProperty('du1')) + if (!$util.isString(message.du1)) return 'du1: string expected'; + if (message.enterpriseUserId != null && message.hasOwnProperty('enterpriseUserId')) + if ( + !$util.isInteger(message.enterpriseUserId) && + !( + message.enterpriseUserId && + $util.isInteger(message.enterpriseUserId.low) && + $util.isInteger(message.enterpriseUserId.high) + ) + ) + return 'enterpriseUserId: integer|Long expected'; + if (message.du2 != null && message.hasOwnProperty('du2')) + if ( + !$util.isInteger(message.du2) && + !(message.du2 && $util.isInteger(message.du2.low) && $util.isInteger(message.du2.high)) + ) + return 'du2: integer|Long expected'; return null; }; @@ -144144,32 +149188,28 @@ export const Tokens = $root.Tokens = (() => { * @returns {Tokens.EmailVerificationToken} EmailVerificationToken */ EmailVerificationToken.fromObject = function fromObject(object) { - if (object instanceof $root.Tokens.EmailVerificationToken) - return object; + if (object instanceof $root.Tokens.EmailVerificationToken) return object; let message = new $root.Tokens.EmailVerificationToken(); - if (object.userId != null) - message.userId = object.userId | 0; - if (object.email != null) - message.email = String(object.email); - if (object.du1 != null) - message.du1 = String(object.du1); + if (object.userId != null) message.userId = object.userId | 0; + if (object.email != null) message.email = String(object.email); + if (object.du1 != null) message.du1 = String(object.du1); if (object.enterpriseUserId != null) if ($util.Long) (message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId)).unsigned = false; - else if (typeof object.enterpriseUserId === "string") + else if (typeof object.enterpriseUserId === 'string') message.enterpriseUserId = parseInt(object.enterpriseUserId, 10); - else if (typeof object.enterpriseUserId === "number") + else if (typeof object.enterpriseUserId === 'number') message.enterpriseUserId = object.enterpriseUserId; - else if (typeof object.enterpriseUserId === "object") - message.enterpriseUserId = new $util.LongBits(object.enterpriseUserId.low >>> 0, object.enterpriseUserId.high >>> 0).toNumber(); + else if (typeof object.enterpriseUserId === 'object') + message.enterpriseUserId = new $util.LongBits( + object.enterpriseUserId.low >>> 0, + object.enterpriseUserId.high >>> 0 + ).toNumber(); if (object.du2 != null) - if ($util.Long) - (message.du2 = $util.Long.fromValue(object.du2)).unsigned = false; - else if (typeof object.du2 === "string") - message.du2 = parseInt(object.du2, 10); - else if (typeof object.du2 === "number") - message.du2 = object.du2; - else if (typeof object.du2 === "object") + if ($util.Long) (message.du2 = $util.Long.fromValue(object.du2)).unsigned = false; + else if (typeof object.du2 === 'string') message.du2 = parseInt(object.du2, 10); + else if (typeof object.du2 === 'number') message.du2 = object.du2; + else if (typeof object.du2 === 'object') message.du2 = new $util.LongBits(object.du2.low >>> 0, object.du2.high >>> 0).toNumber(); return message; }; @@ -144184,40 +149224,50 @@ export const Tokens = $root.Tokens = (() => { * @returns {Object.} Plain object */ EmailVerificationToken.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { object.userId = 0; - object.email = ""; - object.du1 = ""; + object.email = ''; + object.du1 = ''; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.enterpriseUserId = options.longs === String ? "0" : 0; + object.enterpriseUserId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.enterpriseUserId = options.longs === String ? '0' : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.du2 = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.du2 = options.longs === String ? "0" : 0; - } - if (message.userId != null && message.hasOwnProperty("userId")) - object.userId = message.userId; - if (message.email != null && message.hasOwnProperty("email")) - object.email = message.email; - if (message.du1 != null && message.hasOwnProperty("du1")) - object.du1 = message.du1; - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (typeof message.enterpriseUserId === "number") - object.enterpriseUserId = options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; + object.du2 = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.du2 = options.longs === String ? '0' : 0; + } + if (message.userId != null && message.hasOwnProperty('userId')) object.userId = message.userId; + if (message.email != null && message.hasOwnProperty('email')) object.email = message.email; + if (message.du1 != null && message.hasOwnProperty('du1')) object.du1 = message.du1; + if (message.enterpriseUserId != null && message.hasOwnProperty('enterpriseUserId')) + if (typeof message.enterpriseUserId === 'number') + object.enterpriseUserId = + options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; else - object.enterpriseUserId = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseUserId) : options.longs === Number ? new $util.LongBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0).toNumber() : message.enterpriseUserId; - if (message.du2 != null && message.hasOwnProperty("du2")) - if (typeof message.du2 === "number") + object.enterpriseUserId = + options.longs === String + ? $util.Long.prototype.toString.call(message.enterpriseUserId) + : options.longs === Number + ? new $util.LongBits( + message.enterpriseUserId.low >>> 0, + message.enterpriseUserId.high >>> 0 + ).toNumber() + : message.enterpriseUserId; + if (message.du2 != null && message.hasOwnProperty('du2')) + if (typeof message.du2 === 'number') object.du2 = options.longs === String ? String(message.du2) : message.du2; else - object.du2 = options.longs === String ? $util.Long.prototype.toString.call(message.du2) : options.longs === Number ? new $util.LongBits(message.du2.low >>> 0, message.du2.high >>> 0).toNumber() : message.du2; + object.du2 = + options.longs === String + ? $util.Long.prototype.toString.call(message.du2) + : options.longs === Number + ? new $util.LongBits(message.du2.low >>> 0, message.du2.high >>> 0).toNumber() + : message.du2; return object; }; @@ -144242,16 +149292,15 @@ export const Tokens = $root.Tokens = (() => { */ EmailVerificationToken.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Tokens.EmailVerificationToken"; + return typeUrlPrefix + '/Tokens.EmailVerificationToken'; }; return EmailVerificationToken; })(); - Tokens.IpAddressVerificationToken = (function() { - + Tokens.IpAddressVerificationToken = (function () { /** * Properties of an IpAddressVerificationToken. * @memberof Tokens @@ -144277,8 +149326,7 @@ export const Tokens = $root.Tokens = (() => { function IpAddressVerificationToken(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -144295,7 +149343,7 @@ export const Tokens = $root.Tokens = (() => { * @memberof Tokens.IpAddressVerificationToken * @instance */ - IpAddressVerificationToken.prototype.email = ""; + IpAddressVerificationToken.prototype.email = ''; /** * IpAddressVerificationToken ssoServiceProviderId. @@ -144303,7 +149351,7 @@ export const Tokens = $root.Tokens = (() => { * @memberof Tokens.IpAddressVerificationToken * @instance */ - IpAddressVerificationToken.prototype.ssoServiceProviderId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + IpAddressVerificationToken.prototype.ssoServiceProviderId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * IpAddressVerificationToken ipAddress. @@ -144311,7 +149359,7 @@ export const Tokens = $root.Tokens = (() => { * @memberof Tokens.IpAddressVerificationToken * @instance */ - IpAddressVerificationToken.prototype.ipAddress = ""; + IpAddressVerificationToken.prototype.ipAddress = ''; /** * IpAddressVerificationToken du1. @@ -144319,7 +149367,7 @@ export const Tokens = $root.Tokens = (() => { * @memberof Tokens.IpAddressVerificationToken * @instance */ - IpAddressVerificationToken.prototype.du1 = ""; + IpAddressVerificationToken.prototype.du1 = ''; /** * IpAddressVerificationToken du2. @@ -144327,7 +149375,7 @@ export const Tokens = $root.Tokens = (() => { * @memberof Tokens.IpAddressVerificationToken * @instance */ - IpAddressVerificationToken.prototype.du2 = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + IpAddressVerificationToken.prototype.du2 = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * IpAddressVerificationToken enterpriseId. @@ -144343,7 +149391,7 @@ export const Tokens = $root.Tokens = (() => { * @memberof Tokens.IpAddressVerificationToken * @instance */ - IpAddressVerificationToken.prototype.deviceId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + IpAddressVerificationToken.prototype.deviceId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * Creates a new IpAddressVerificationToken instance using the specified properties. @@ -144367,24 +149415,23 @@ export const Tokens = $root.Tokens = (() => { * @returns {$protobuf.Writer} Writer */ IpAddressVerificationToken.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.userId != null && Object.hasOwnProperty.call(message, "userId")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.userId); - if (message.email != null && Object.hasOwnProperty.call(message, "email")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.email); - if (message.ssoServiceProviderId != null && Object.hasOwnProperty.call(message, "ssoServiceProviderId")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.ssoServiceProviderId); - if (message.ipAddress != null && Object.hasOwnProperty.call(message, "ipAddress")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.ipAddress); - if (message.du1 != null && Object.hasOwnProperty.call(message, "du1")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.du1); - if (message.du2 != null && Object.hasOwnProperty.call(message, "du2")) - writer.uint32(/* id 6, wireType 0 =*/48).int64(message.du2); - if (message.enterpriseId != null && Object.hasOwnProperty.call(message, "enterpriseId")) - writer.uint32(/* id 7, wireType 0 =*/56).int32(message.enterpriseId); - if (message.deviceId != null && Object.hasOwnProperty.call(message, "deviceId")) - writer.uint32(/* id 8, wireType 0 =*/64).int64(message.deviceId); + if (!writer) writer = $Writer.create(); + if (message.userId != null && Object.hasOwnProperty.call(message, 'userId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int32(message.userId); + if (message.email != null && Object.hasOwnProperty.call(message, 'email')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.email); + if (message.ssoServiceProviderId != null && Object.hasOwnProperty.call(message, 'ssoServiceProviderId')) + writer.uint32(/* id 3, wireType 0 =*/ 24).int64(message.ssoServiceProviderId); + if (message.ipAddress != null && Object.hasOwnProperty.call(message, 'ipAddress')) + writer.uint32(/* id 4, wireType 2 =*/ 34).string(message.ipAddress); + if (message.du1 != null && Object.hasOwnProperty.call(message, 'du1')) + writer.uint32(/* id 5, wireType 2 =*/ 42).string(message.du1); + if (message.du2 != null && Object.hasOwnProperty.call(message, 'du2')) + writer.uint32(/* id 6, wireType 0 =*/ 48).int64(message.du2); + if (message.enterpriseId != null && Object.hasOwnProperty.call(message, 'enterpriseId')) + writer.uint32(/* id 7, wireType 0 =*/ 56).int32(message.enterpriseId); + if (message.deviceId != null && Object.hasOwnProperty.call(message, 'deviceId')) + writer.uint32(/* id 8, wireType 0 =*/ 64).int64(message.deviceId); return writer; }; @@ -144413,47 +149460,47 @@ export const Tokens = $root.Tokens = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ IpAddressVerificationToken.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Tokens.IpAddressVerificationToken(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Tokens.IpAddressVerificationToken(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.userId = reader.int32(); break; } - case 2: { + case 2: { message.email = reader.string(); break; } - case 3: { + case 3: { message.ssoServiceProviderId = reader.int64(); break; } - case 4: { + case 4: { message.ipAddress = reader.string(); break; } - case 5: { + case 5: { message.du1 = reader.string(); break; } - case 6: { + case 6: { message.du2 = reader.int64(); break; } - case 7: { + case 7: { message.enterpriseId = reader.int32(); break; } - case 8: { + case 8: { message.deviceId = reader.int64(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -144470,8 +149517,7 @@ export const Tokens = $root.Tokens = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ IpAddressVerificationToken.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -144484,32 +149530,43 @@ export const Tokens = $root.Tokens = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ IpAddressVerificationToken.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.userId != null && message.hasOwnProperty("userId")) - if (!$util.isInteger(message.userId)) - return "userId: integer expected"; - if (message.email != null && message.hasOwnProperty("email")) - if (!$util.isString(message.email)) - return "email: string expected"; - if (message.ssoServiceProviderId != null && message.hasOwnProperty("ssoServiceProviderId")) - if (!$util.isInteger(message.ssoServiceProviderId) && !(message.ssoServiceProviderId && $util.isInteger(message.ssoServiceProviderId.low) && $util.isInteger(message.ssoServiceProviderId.high))) - return "ssoServiceProviderId: integer|Long expected"; - if (message.ipAddress != null && message.hasOwnProperty("ipAddress")) - if (!$util.isString(message.ipAddress)) - return "ipAddress: string expected"; - if (message.du1 != null && message.hasOwnProperty("du1")) - if (!$util.isString(message.du1)) - return "du1: string expected"; - if (message.du2 != null && message.hasOwnProperty("du2")) - if (!$util.isInteger(message.du2) && !(message.du2 && $util.isInteger(message.du2.low) && $util.isInteger(message.du2.high))) - return "du2: integer|Long expected"; - if (message.enterpriseId != null && message.hasOwnProperty("enterpriseId")) - if (!$util.isInteger(message.enterpriseId)) - return "enterpriseId: integer expected"; - if (message.deviceId != null && message.hasOwnProperty("deviceId")) - if (!$util.isInteger(message.deviceId) && !(message.deviceId && $util.isInteger(message.deviceId.low) && $util.isInteger(message.deviceId.high))) - return "deviceId: integer|Long expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.userId != null && message.hasOwnProperty('userId')) + if (!$util.isInteger(message.userId)) return 'userId: integer expected'; + if (message.email != null && message.hasOwnProperty('email')) + if (!$util.isString(message.email)) return 'email: string expected'; + if (message.ssoServiceProviderId != null && message.hasOwnProperty('ssoServiceProviderId')) + if ( + !$util.isInteger(message.ssoServiceProviderId) && + !( + message.ssoServiceProviderId && + $util.isInteger(message.ssoServiceProviderId.low) && + $util.isInteger(message.ssoServiceProviderId.high) + ) + ) + return 'ssoServiceProviderId: integer|Long expected'; + if (message.ipAddress != null && message.hasOwnProperty('ipAddress')) + if (!$util.isString(message.ipAddress)) return 'ipAddress: string expected'; + if (message.du1 != null && message.hasOwnProperty('du1')) + if (!$util.isString(message.du1)) return 'du1: string expected'; + if (message.du2 != null && message.hasOwnProperty('du2')) + if ( + !$util.isInteger(message.du2) && + !(message.du2 && $util.isInteger(message.du2.low) && $util.isInteger(message.du2.high)) + ) + return 'du2: integer|Long expected'; + if (message.enterpriseId != null && message.hasOwnProperty('enterpriseId')) + if (!$util.isInteger(message.enterpriseId)) return 'enterpriseId: integer expected'; + if (message.deviceId != null && message.hasOwnProperty('deviceId')) + if ( + !$util.isInteger(message.deviceId) && + !( + message.deviceId && + $util.isInteger(message.deviceId.low) && + $util.isInteger(message.deviceId.high) + ) + ) + return 'deviceId: integer|Long expected'; return null; }; @@ -144522,46 +149579,40 @@ export const Tokens = $root.Tokens = (() => { * @returns {Tokens.IpAddressVerificationToken} IpAddressVerificationToken */ IpAddressVerificationToken.fromObject = function fromObject(object) { - if (object instanceof $root.Tokens.IpAddressVerificationToken) - return object; + if (object instanceof $root.Tokens.IpAddressVerificationToken) return object; let message = new $root.Tokens.IpAddressVerificationToken(); - if (object.userId != null) - message.userId = object.userId | 0; - if (object.email != null) - message.email = String(object.email); + if (object.userId != null) message.userId = object.userId | 0; + if (object.email != null) message.email = String(object.email); if (object.ssoServiceProviderId != null) if ($util.Long) (message.ssoServiceProviderId = $util.Long.fromValue(object.ssoServiceProviderId)).unsigned = false; - else if (typeof object.ssoServiceProviderId === "string") + else if (typeof object.ssoServiceProviderId === 'string') message.ssoServiceProviderId = parseInt(object.ssoServiceProviderId, 10); - else if (typeof object.ssoServiceProviderId === "number") + else if (typeof object.ssoServiceProviderId === 'number') message.ssoServiceProviderId = object.ssoServiceProviderId; - else if (typeof object.ssoServiceProviderId === "object") - message.ssoServiceProviderId = new $util.LongBits(object.ssoServiceProviderId.low >>> 0, object.ssoServiceProviderId.high >>> 0).toNumber(); - if (object.ipAddress != null) - message.ipAddress = String(object.ipAddress); - if (object.du1 != null) - message.du1 = String(object.du1); + else if (typeof object.ssoServiceProviderId === 'object') + message.ssoServiceProviderId = new $util.LongBits( + object.ssoServiceProviderId.low >>> 0, + object.ssoServiceProviderId.high >>> 0 + ).toNumber(); + if (object.ipAddress != null) message.ipAddress = String(object.ipAddress); + if (object.du1 != null) message.du1 = String(object.du1); if (object.du2 != null) - if ($util.Long) - (message.du2 = $util.Long.fromValue(object.du2)).unsigned = false; - else if (typeof object.du2 === "string") - message.du2 = parseInt(object.du2, 10); - else if (typeof object.du2 === "number") - message.du2 = object.du2; - else if (typeof object.du2 === "object") + if ($util.Long) (message.du2 = $util.Long.fromValue(object.du2)).unsigned = false; + else if (typeof object.du2 === 'string') message.du2 = parseInt(object.du2, 10); + else if (typeof object.du2 === 'number') message.du2 = object.du2; + else if (typeof object.du2 === 'object') message.du2 = new $util.LongBits(object.du2.low >>> 0, object.du2.high >>> 0).toNumber(); - if (object.enterpriseId != null) - message.enterpriseId = object.enterpriseId | 0; + if (object.enterpriseId != null) message.enterpriseId = object.enterpriseId | 0; if (object.deviceId != null) - if ($util.Long) - (message.deviceId = $util.Long.fromValue(object.deviceId)).unsigned = false; - else if (typeof object.deviceId === "string") - message.deviceId = parseInt(object.deviceId, 10); - else if (typeof object.deviceId === "number") - message.deviceId = object.deviceId; - else if (typeof object.deviceId === "object") - message.deviceId = new $util.LongBits(object.deviceId.low >>> 0, object.deviceId.high >>> 0).toNumber(); + if ($util.Long) (message.deviceId = $util.Long.fromValue(object.deviceId)).unsigned = false; + else if (typeof object.deviceId === 'string') message.deviceId = parseInt(object.deviceId, 10); + else if (typeof object.deviceId === 'number') message.deviceId = object.deviceId; + else if (typeof object.deviceId === 'object') + message.deviceId = new $util.LongBits( + object.deviceId.low >>> 0, + object.deviceId.high >>> 0 + ).toNumber(); return message; }; @@ -144575,56 +149626,70 @@ export const Tokens = $root.Tokens = (() => { * @returns {Object.} Plain object */ IpAddressVerificationToken.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { object.userId = 0; - object.email = ""; + object.email = ''; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.ssoServiceProviderId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.ssoServiceProviderId = options.longs === String ? "0" : 0; - object.ipAddress = ""; - object.du1 = ""; + object.ssoServiceProviderId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.ssoServiceProviderId = options.longs === String ? '0' : 0; + object.ipAddress = ''; + object.du1 = ''; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.du2 = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.du2 = options.longs === String ? "0" : 0; + object.du2 = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.du2 = options.longs === String ? '0' : 0; object.enterpriseId = 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.deviceId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.deviceId = options.longs === String ? "0" : 0; - } - if (message.userId != null && message.hasOwnProperty("userId")) - object.userId = message.userId; - if (message.email != null && message.hasOwnProperty("email")) - object.email = message.email; - if (message.ssoServiceProviderId != null && message.hasOwnProperty("ssoServiceProviderId")) - if (typeof message.ssoServiceProviderId === "number") - object.ssoServiceProviderId = options.longs === String ? String(message.ssoServiceProviderId) : message.ssoServiceProviderId; + object.deviceId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.deviceId = options.longs === String ? '0' : 0; + } + if (message.userId != null && message.hasOwnProperty('userId')) object.userId = message.userId; + if (message.email != null && message.hasOwnProperty('email')) object.email = message.email; + if (message.ssoServiceProviderId != null && message.hasOwnProperty('ssoServiceProviderId')) + if (typeof message.ssoServiceProviderId === 'number') + object.ssoServiceProviderId = + options.longs === String ? String(message.ssoServiceProviderId) : message.ssoServiceProviderId; else - object.ssoServiceProviderId = options.longs === String ? $util.Long.prototype.toString.call(message.ssoServiceProviderId) : options.longs === Number ? new $util.LongBits(message.ssoServiceProviderId.low >>> 0, message.ssoServiceProviderId.high >>> 0).toNumber() : message.ssoServiceProviderId; - if (message.ipAddress != null && message.hasOwnProperty("ipAddress")) - object.ipAddress = message.ipAddress; - if (message.du1 != null && message.hasOwnProperty("du1")) - object.du1 = message.du1; - if (message.du2 != null && message.hasOwnProperty("du2")) - if (typeof message.du2 === "number") + object.ssoServiceProviderId = + options.longs === String + ? $util.Long.prototype.toString.call(message.ssoServiceProviderId) + : options.longs === Number + ? new $util.LongBits( + message.ssoServiceProviderId.low >>> 0, + message.ssoServiceProviderId.high >>> 0 + ).toNumber() + : message.ssoServiceProviderId; + if (message.ipAddress != null && message.hasOwnProperty('ipAddress')) object.ipAddress = message.ipAddress; + if (message.du1 != null && message.hasOwnProperty('du1')) object.du1 = message.du1; + if (message.du2 != null && message.hasOwnProperty('du2')) + if (typeof message.du2 === 'number') object.du2 = options.longs === String ? String(message.du2) : message.du2; else - object.du2 = options.longs === String ? $util.Long.prototype.toString.call(message.du2) : options.longs === Number ? new $util.LongBits(message.du2.low >>> 0, message.du2.high >>> 0).toNumber() : message.du2; - if (message.enterpriseId != null && message.hasOwnProperty("enterpriseId")) + object.du2 = + options.longs === String + ? $util.Long.prototype.toString.call(message.du2) + : options.longs === Number + ? new $util.LongBits(message.du2.low >>> 0, message.du2.high >>> 0).toNumber() + : message.du2; + if (message.enterpriseId != null && message.hasOwnProperty('enterpriseId')) object.enterpriseId = message.enterpriseId; - if (message.deviceId != null && message.hasOwnProperty("deviceId")) - if (typeof message.deviceId === "number") + if (message.deviceId != null && message.hasOwnProperty('deviceId')) + if (typeof message.deviceId === 'number') object.deviceId = options.longs === String ? String(message.deviceId) : message.deviceId; else - object.deviceId = options.longs === String ? $util.Long.prototype.toString.call(message.deviceId) : options.longs === Number ? new $util.LongBits(message.deviceId.low >>> 0, message.deviceId.high >>> 0).toNumber() : message.deviceId; + object.deviceId = + options.longs === String + ? $util.Long.prototype.toString.call(message.deviceId) + : options.longs === Number + ? new $util.LongBits(message.deviceId.low >>> 0, message.deviceId.high >>> 0).toNumber() + : message.deviceId; return object; }; @@ -144649,16 +149714,15 @@ export const Tokens = $root.Tokens = (() => { */ IpAddressVerificationToken.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Tokens.IpAddressVerificationToken"; + return typeUrlPrefix + '/Tokens.IpAddressVerificationToken'; }; return IpAddressVerificationToken; })(); - Tokens.EnterprisePersonalAccountToken = (function() { - + Tokens.EnterprisePersonalAccountToken = (function () { /** * Properties of an EnterprisePersonalAccountToken. * @memberof Tokens @@ -144682,8 +149746,7 @@ export const Tokens = $root.Tokens = (() => { function EnterprisePersonalAccountToken(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -144692,7 +149755,7 @@ export const Tokens = $root.Tokens = (() => { * @memberof Tokens.EnterprisePersonalAccountToken * @instance */ - EnterprisePersonalAccountToken.prototype.enterpriseUserId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + EnterprisePersonalAccountToken.prototype.enterpriseUserId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * EnterprisePersonalAccountToken email. @@ -144700,7 +149763,7 @@ export const Tokens = $root.Tokens = (() => { * @memberof Tokens.EnterprisePersonalAccountToken * @instance */ - EnterprisePersonalAccountToken.prototype.email = ""; + EnterprisePersonalAccountToken.prototype.email = ''; /** * EnterprisePersonalAccountToken supportedLanguage. @@ -144716,7 +149779,7 @@ export const Tokens = $root.Tokens = (() => { * @memberof Tokens.EnterprisePersonalAccountToken * @instance */ - EnterprisePersonalAccountToken.prototype.duration = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + EnterprisePersonalAccountToken.prototype.duration = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * EnterprisePersonalAccountToken referralName. @@ -144724,7 +149787,7 @@ export const Tokens = $root.Tokens = (() => { * @memberof Tokens.EnterprisePersonalAccountToken * @instance */ - EnterprisePersonalAccountToken.prototype.referralName = ""; + EnterprisePersonalAccountToken.prototype.referralName = ''; /** * EnterprisePersonalAccountToken creation. @@ -144732,7 +149795,7 @@ export const Tokens = $root.Tokens = (() => { * @memberof Tokens.EnterprisePersonalAccountToken * @instance */ - EnterprisePersonalAccountToken.prototype.creation = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + EnterprisePersonalAccountToken.prototype.creation = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * Creates a new EnterprisePersonalAccountToken instance using the specified properties. @@ -144756,20 +149819,19 @@ export const Tokens = $root.Tokens = (() => { * @returns {$protobuf.Writer} Writer */ EnterprisePersonalAccountToken.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "enterpriseUserId")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.enterpriseUserId); - if (message.email != null && Object.hasOwnProperty.call(message, "email")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.email); - if (message.supportedLanguage != null && Object.hasOwnProperty.call(message, "supportedLanguage")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.supportedLanguage); - if (message.duration != null && Object.hasOwnProperty.call(message, "duration")) - writer.uint32(/* id 4, wireType 0 =*/32).int64(message.duration); - if (message.referralName != null && Object.hasOwnProperty.call(message, "referralName")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.referralName); - if (message.creation != null && Object.hasOwnProperty.call(message, "creation")) - writer.uint32(/* id 6, wireType 0 =*/48).int64(message.creation); + if (!writer) writer = $Writer.create(); + if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, 'enterpriseUserId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int64(message.enterpriseUserId); + if (message.email != null && Object.hasOwnProperty.call(message, 'email')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.email); + if (message.supportedLanguage != null && Object.hasOwnProperty.call(message, 'supportedLanguage')) + writer.uint32(/* id 3, wireType 0 =*/ 24).int32(message.supportedLanguage); + if (message.duration != null && Object.hasOwnProperty.call(message, 'duration')) + writer.uint32(/* id 4, wireType 0 =*/ 32).int64(message.duration); + if (message.referralName != null && Object.hasOwnProperty.call(message, 'referralName')) + writer.uint32(/* id 5, wireType 2 =*/ 42).string(message.referralName); + if (message.creation != null && Object.hasOwnProperty.call(message, 'creation')) + writer.uint32(/* id 6, wireType 0 =*/ 48).int64(message.creation); return writer; }; @@ -144798,39 +149860,39 @@ export const Tokens = $root.Tokens = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ EnterprisePersonalAccountToken.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Tokens.EnterprisePersonalAccountToken(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Tokens.EnterprisePersonalAccountToken(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.enterpriseUserId = reader.int64(); break; } - case 2: { + case 2: { message.email = reader.string(); break; } - case 3: { + case 3: { message.supportedLanguage = reader.int32(); break; } - case 4: { + case 4: { message.duration = reader.int64(); break; } - case 5: { + case 5: { message.referralName = reader.string(); break; } - case 6: { + case 6: { message.creation = reader.int64(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -144847,8 +149909,7 @@ export const Tokens = $root.Tokens = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ EnterprisePersonalAccountToken.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -144861,198 +149922,216 @@ export const Tokens = $root.Tokens = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ EnterprisePersonalAccountToken.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (!$util.isInteger(message.enterpriseUserId) && !(message.enterpriseUserId && $util.isInteger(message.enterpriseUserId.low) && $util.isInteger(message.enterpriseUserId.high))) - return "enterpriseUserId: integer|Long expected"; - if (message.email != null && message.hasOwnProperty("email")) - if (!$util.isString(message.email)) - return "email: string expected"; - if (message.supportedLanguage != null && message.hasOwnProperty("supportedLanguage")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.enterpriseUserId != null && message.hasOwnProperty('enterpriseUserId')) + if ( + !$util.isInteger(message.enterpriseUserId) && + !( + message.enterpriseUserId && + $util.isInteger(message.enterpriseUserId.low) && + $util.isInteger(message.enterpriseUserId.high) + ) + ) + return 'enterpriseUserId: integer|Long expected'; + if (message.email != null && message.hasOwnProperty('email')) + if (!$util.isString(message.email)) return 'email: string expected'; + if (message.supportedLanguage != null && message.hasOwnProperty('supportedLanguage')) switch (message.supportedLanguage) { + default: + return 'supportedLanguage: enum value expected'; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + case 10: + case 11: + case 12: + case 13: + case 14: + case 15: + case 16: + case 17: + case 18: + case 19: + case 20: + case 21: + case 22: + break; + } + if (message.duration != null && message.hasOwnProperty('duration')) + if ( + !$util.isInteger(message.duration) && + !( + message.duration && + $util.isInteger(message.duration.low) && + $util.isInteger(message.duration.high) + ) + ) + return 'duration: integer|Long expected'; + if (message.referralName != null && message.hasOwnProperty('referralName')) + if (!$util.isString(message.referralName)) return 'referralName: string expected'; + if (message.creation != null && message.hasOwnProperty('creation')) + if ( + !$util.isInteger(message.creation) && + !( + message.creation && + $util.isInteger(message.creation.low) && + $util.isInteger(message.creation.high) + ) + ) + return 'creation: integer|Long expected'; + return null; + }; + + /** + * Creates an EnterprisePersonalAccountToken message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof Tokens.EnterprisePersonalAccountToken + * @static + * @param {Object.} object Plain object + * @returns {Tokens.EnterprisePersonalAccountToken} EnterprisePersonalAccountToken + */ + EnterprisePersonalAccountToken.fromObject = function fromObject(object) { + if (object instanceof $root.Tokens.EnterprisePersonalAccountToken) return object; + let message = new $root.Tokens.EnterprisePersonalAccountToken(); + if (object.enterpriseUserId != null) + if ($util.Long) + (message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId)).unsigned = false; + else if (typeof object.enterpriseUserId === 'string') + message.enterpriseUserId = parseInt(object.enterpriseUserId, 10); + else if (typeof object.enterpriseUserId === 'number') + message.enterpriseUserId = object.enterpriseUserId; + else if (typeof object.enterpriseUserId === 'object') + message.enterpriseUserId = new $util.LongBits( + object.enterpriseUserId.low >>> 0, + object.enterpriseUserId.high >>> 0 + ).toNumber(); + if (object.email != null) message.email = String(object.email); + switch (object.supportedLanguage) { default: - return "supportedLanguage: enum value expected"; + if (typeof object.supportedLanguage === 'number') { + message.supportedLanguage = object.supportedLanguage; + break; + } + break; + case 'ENGLISH': case 0: + message.supportedLanguage = 0; + break; + case 'ARABIC': case 1: + message.supportedLanguage = 1; + break; + case 'BRITISH': case 2: + message.supportedLanguage = 2; + break; + case 'CHINESE': case 3: + message.supportedLanguage = 3; + break; + case 'CHINESE_HONG_KONG': case 4: + message.supportedLanguage = 4; + break; + case 'CHINESE_TAIWAN': case 5: + message.supportedLanguage = 5; + break; + case 'DUTCH': case 6: + message.supportedLanguage = 6; + break; + case 'FRENCH': case 7: + message.supportedLanguage = 7; + break; + case 'GERMAN': case 8: + message.supportedLanguage = 8; + break; + case 'GREEK': case 9: + message.supportedLanguage = 9; + break; + case 'HEBREW': case 10: + message.supportedLanguage = 10; + break; + case 'ITALIAN': case 11: + message.supportedLanguage = 11; + break; + case 'JAPANESE': case 12: + message.supportedLanguage = 12; + break; + case 'KOREAN': case 13: + message.supportedLanguage = 13; + break; + case 'POLISH': case 14: + message.supportedLanguage = 14; + break; + case 'PORTUGUESE': case 15: + message.supportedLanguage = 15; + break; + case 'PORTUGUESE_BRAZIL': case 16: + message.supportedLanguage = 16; + break; + case 'ROMANIAN': case 17: + message.supportedLanguage = 17; + break; + case 'RUSSIAN': case 18: + message.supportedLanguage = 18; + break; + case 'SLOVAK': case 19: + message.supportedLanguage = 19; + break; + case 'SPANISH': case 20: + message.supportedLanguage = 20; + break; + case 'FINNISH': case 21: + message.supportedLanguage = 21; + break; + case 'SWEDISH': case 22: + message.supportedLanguage = 22; break; - } - if (message.duration != null && message.hasOwnProperty("duration")) - if (!$util.isInteger(message.duration) && !(message.duration && $util.isInteger(message.duration.low) && $util.isInteger(message.duration.high))) - return "duration: integer|Long expected"; - if (message.referralName != null && message.hasOwnProperty("referralName")) - if (!$util.isString(message.referralName)) - return "referralName: string expected"; - if (message.creation != null && message.hasOwnProperty("creation")) - if (!$util.isInteger(message.creation) && !(message.creation && $util.isInteger(message.creation.low) && $util.isInteger(message.creation.high))) - return "creation: integer|Long expected"; - return null; - }; - - /** - * Creates an EnterprisePersonalAccountToken message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof Tokens.EnterprisePersonalAccountToken - * @static - * @param {Object.} object Plain object - * @returns {Tokens.EnterprisePersonalAccountToken} EnterprisePersonalAccountToken - */ - EnterprisePersonalAccountToken.fromObject = function fromObject(object) { - if (object instanceof $root.Tokens.EnterprisePersonalAccountToken) - return object; - let message = new $root.Tokens.EnterprisePersonalAccountToken(); - if (object.enterpriseUserId != null) - if ($util.Long) - (message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId)).unsigned = false; - else if (typeof object.enterpriseUserId === "string") - message.enterpriseUserId = parseInt(object.enterpriseUserId, 10); - else if (typeof object.enterpriseUserId === "number") - message.enterpriseUserId = object.enterpriseUserId; - else if (typeof object.enterpriseUserId === "object") - message.enterpriseUserId = new $util.LongBits(object.enterpriseUserId.low >>> 0, object.enterpriseUserId.high >>> 0).toNumber(); - if (object.email != null) - message.email = String(object.email); - switch (object.supportedLanguage) { - default: - if (typeof object.supportedLanguage === "number") { - message.supportedLanguage = object.supportedLanguage; - break; - } - break; - case "ENGLISH": - case 0: - message.supportedLanguage = 0; - break; - case "ARABIC": - case 1: - message.supportedLanguage = 1; - break; - case "BRITISH": - case 2: - message.supportedLanguage = 2; - break; - case "CHINESE": - case 3: - message.supportedLanguage = 3; - break; - case "CHINESE_HONG_KONG": - case 4: - message.supportedLanguage = 4; - break; - case "CHINESE_TAIWAN": - case 5: - message.supportedLanguage = 5; - break; - case "DUTCH": - case 6: - message.supportedLanguage = 6; - break; - case "FRENCH": - case 7: - message.supportedLanguage = 7; - break; - case "GERMAN": - case 8: - message.supportedLanguage = 8; - break; - case "GREEK": - case 9: - message.supportedLanguage = 9; - break; - case "HEBREW": - case 10: - message.supportedLanguage = 10; - break; - case "ITALIAN": - case 11: - message.supportedLanguage = 11; - break; - case "JAPANESE": - case 12: - message.supportedLanguage = 12; - break; - case "KOREAN": - case 13: - message.supportedLanguage = 13; - break; - case "POLISH": - case 14: - message.supportedLanguage = 14; - break; - case "PORTUGUESE": - case 15: - message.supportedLanguage = 15; - break; - case "PORTUGUESE_BRAZIL": - case 16: - message.supportedLanguage = 16; - break; - case "ROMANIAN": - case 17: - message.supportedLanguage = 17; - break; - case "RUSSIAN": - case 18: - message.supportedLanguage = 18; - break; - case "SLOVAK": - case 19: - message.supportedLanguage = 19; - break; - case "SPANISH": - case 20: - message.supportedLanguage = 20; - break; - case "FINNISH": - case 21: - message.supportedLanguage = 21; - break; - case "SWEDISH": - case 22: - message.supportedLanguage = 22; - break; } if (object.duration != null) - if ($util.Long) - (message.duration = $util.Long.fromValue(object.duration)).unsigned = false; - else if (typeof object.duration === "string") - message.duration = parseInt(object.duration, 10); - else if (typeof object.duration === "number") - message.duration = object.duration; - else if (typeof object.duration === "object") - message.duration = new $util.LongBits(object.duration.low >>> 0, object.duration.high >>> 0).toNumber(); - if (object.referralName != null) - message.referralName = String(object.referralName); + if ($util.Long) (message.duration = $util.Long.fromValue(object.duration)).unsigned = false; + else if (typeof object.duration === 'string') message.duration = parseInt(object.duration, 10); + else if (typeof object.duration === 'number') message.duration = object.duration; + else if (typeof object.duration === 'object') + message.duration = new $util.LongBits( + object.duration.low >>> 0, + object.duration.high >>> 0 + ).toNumber(); + if (object.referralName != null) message.referralName = String(object.referralName); if (object.creation != null) - if ($util.Long) - (message.creation = $util.Long.fromValue(object.creation)).unsigned = false; - else if (typeof object.creation === "string") - message.creation = parseInt(object.creation, 10); - else if (typeof object.creation === "number") - message.creation = object.creation; - else if (typeof object.creation === "object") - message.creation = new $util.LongBits(object.creation.low >>> 0, object.creation.high >>> 0).toNumber(); + if ($util.Long) (message.creation = $util.Long.fromValue(object.creation)).unsigned = false; + else if (typeof object.creation === 'string') message.creation = parseInt(object.creation, 10); + else if (typeof object.creation === 'number') message.creation = object.creation; + else if (typeof object.creation === 'object') + message.creation = new $util.LongBits( + object.creation.low >>> 0, + object.creation.high >>> 0 + ).toNumber(); return message; }; @@ -145066,50 +150145,72 @@ export const Tokens = $root.Tokens = (() => { * @returns {Object.} Plain object */ EnterprisePersonalAccountToken.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.enterpriseUserId = options.longs === String ? "0" : 0; - object.email = ""; - object.supportedLanguage = options.enums === String ? "ENGLISH" : 0; + object.enterpriseUserId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.enterpriseUserId = options.longs === String ? '0' : 0; + object.email = ''; + object.supportedLanguage = options.enums === String ? 'ENGLISH' : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.duration = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.duration = options.longs === String ? "0" : 0; - object.referralName = ""; + object.duration = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.duration = options.longs === String ? '0' : 0; + object.referralName = ''; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.creation = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.creation = options.longs === String ? "0" : 0; - } - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (typeof message.enterpriseUserId === "number") - object.enterpriseUserId = options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; + object.creation = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.creation = options.longs === String ? '0' : 0; + } + if (message.enterpriseUserId != null && message.hasOwnProperty('enterpriseUserId')) + if (typeof message.enterpriseUserId === 'number') + object.enterpriseUserId = + options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; else - object.enterpriseUserId = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseUserId) : options.longs === Number ? new $util.LongBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0).toNumber() : message.enterpriseUserId; - if (message.email != null && message.hasOwnProperty("email")) - object.email = message.email; - if (message.supportedLanguage != null && message.hasOwnProperty("supportedLanguage")) - object.supportedLanguage = options.enums === String ? $root.Authentication.SupportedLanguage[message.supportedLanguage] === undefined ? message.supportedLanguage : $root.Authentication.SupportedLanguage[message.supportedLanguage] : message.supportedLanguage; - if (message.duration != null && message.hasOwnProperty("duration")) - if (typeof message.duration === "number") + object.enterpriseUserId = + options.longs === String + ? $util.Long.prototype.toString.call(message.enterpriseUserId) + : options.longs === Number + ? new $util.LongBits( + message.enterpriseUserId.low >>> 0, + message.enterpriseUserId.high >>> 0 + ).toNumber() + : message.enterpriseUserId; + if (message.email != null && message.hasOwnProperty('email')) object.email = message.email; + if (message.supportedLanguage != null && message.hasOwnProperty('supportedLanguage')) + object.supportedLanguage = + options.enums === String + ? $root.Authentication.SupportedLanguage[message.supportedLanguage] === undefined + ? message.supportedLanguage + : $root.Authentication.SupportedLanguage[message.supportedLanguage] + : message.supportedLanguage; + if (message.duration != null && message.hasOwnProperty('duration')) + if (typeof message.duration === 'number') object.duration = options.longs === String ? String(message.duration) : message.duration; else - object.duration = options.longs === String ? $util.Long.prototype.toString.call(message.duration) : options.longs === Number ? new $util.LongBits(message.duration.low >>> 0, message.duration.high >>> 0).toNumber() : message.duration; - if (message.referralName != null && message.hasOwnProperty("referralName")) + object.duration = + options.longs === String + ? $util.Long.prototype.toString.call(message.duration) + : options.longs === Number + ? new $util.LongBits(message.duration.low >>> 0, message.duration.high >>> 0).toNumber() + : message.duration; + if (message.referralName != null && message.hasOwnProperty('referralName')) object.referralName = message.referralName; - if (message.creation != null && message.hasOwnProperty("creation")) - if (typeof message.creation === "number") + if (message.creation != null && message.hasOwnProperty('creation')) + if (typeof message.creation === 'number') object.creation = options.longs === String ? String(message.creation) : message.creation; else - object.creation = options.longs === String ? $util.Long.prototype.toString.call(message.creation) : options.longs === Number ? new $util.LongBits(message.creation.low >>> 0, message.creation.high >>> 0).toNumber() : message.creation; + object.creation = + options.longs === String + ? $util.Long.prototype.toString.call(message.creation) + : options.longs === Number + ? new $util.LongBits(message.creation.low >>> 0, message.creation.high >>> 0).toNumber() + : message.creation; return object; }; @@ -145134,16 +150235,15 @@ export const Tokens = $root.Tokens = (() => { */ EnterprisePersonalAccountToken.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Tokens.EnterprisePersonalAccountToken"; + return typeUrlPrefix + '/Tokens.EnterprisePersonalAccountToken'; }; return EnterprisePersonalAccountToken; })(); - Tokens.UsernameVerificationToken = (function() { - + Tokens.UsernameVerificationToken = (function () { /** * Properties of a UsernameVerificationToken. * @memberof Tokens @@ -145168,8 +150268,7 @@ export const Tokens = $root.Tokens = (() => { function UsernameVerificationToken(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -145178,7 +150277,7 @@ export const Tokens = $root.Tokens = (() => { * @memberof Tokens.UsernameVerificationToken * @instance */ - UsernameVerificationToken.prototype.username = ""; + UsernameVerificationToken.prototype.username = ''; /** * UsernameVerificationToken accountUid. @@ -145202,7 +150301,7 @@ export const Tokens = $root.Tokens = (() => { * @memberof Tokens.UsernameVerificationToken * @instance */ - UsernameVerificationToken.prototype.creation = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + UsernameVerificationToken.prototype.creation = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * UsernameVerificationToken clientVersionId. @@ -145218,7 +150317,7 @@ export const Tokens = $root.Tokens = (() => { * @memberof Tokens.UsernameVerificationToken * @instance */ - UsernameVerificationToken.prototype.alternateUsername = ""; + UsernameVerificationToken.prototype.alternateUsername = ''; /** * UsernameVerificationToken toUsername. @@ -145226,7 +150325,7 @@ export const Tokens = $root.Tokens = (() => { * @memberof Tokens.UsernameVerificationToken * @instance */ - UsernameVerificationToken.prototype.toUsername = ""; + UsernameVerificationToken.prototype.toUsername = ''; /** * Creates a new UsernameVerificationToken instance using the specified properties. @@ -145250,22 +150349,21 @@ export const Tokens = $root.Tokens = (() => { * @returns {$protobuf.Writer} Writer */ UsernameVerificationToken.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.username != null && Object.hasOwnProperty.call(message, "username")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.username); - if (message.accountUid != null && Object.hasOwnProperty.call(message, "accountUid")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.accountUid); - if (message.supportedLanguage != null && Object.hasOwnProperty.call(message, "supportedLanguage")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.supportedLanguage); - if (message.creation != null && Object.hasOwnProperty.call(message, "creation")) - writer.uint32(/* id 4, wireType 0 =*/32).int64(message.creation); - if (message.clientVersionId != null && Object.hasOwnProperty.call(message, "clientVersionId")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.clientVersionId); - if (message.alternateUsername != null && Object.hasOwnProperty.call(message, "alternateUsername")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.alternateUsername); - if (message.toUsername != null && Object.hasOwnProperty.call(message, "toUsername")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.toUsername); + if (!writer) writer = $Writer.create(); + if (message.username != null && Object.hasOwnProperty.call(message, 'username')) + writer.uint32(/* id 1, wireType 2 =*/ 10).string(message.username); + if (message.accountUid != null && Object.hasOwnProperty.call(message, 'accountUid')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.accountUid); + if (message.supportedLanguage != null && Object.hasOwnProperty.call(message, 'supportedLanguage')) + writer.uint32(/* id 3, wireType 0 =*/ 24).int32(message.supportedLanguage); + if (message.creation != null && Object.hasOwnProperty.call(message, 'creation')) + writer.uint32(/* id 4, wireType 0 =*/ 32).int64(message.creation); + if (message.clientVersionId != null && Object.hasOwnProperty.call(message, 'clientVersionId')) + writer.uint32(/* id 5, wireType 0 =*/ 40).int32(message.clientVersionId); + if (message.alternateUsername != null && Object.hasOwnProperty.call(message, 'alternateUsername')) + writer.uint32(/* id 6, wireType 2 =*/ 50).string(message.alternateUsername); + if (message.toUsername != null && Object.hasOwnProperty.call(message, 'toUsername')) + writer.uint32(/* id 7, wireType 2 =*/ 58).string(message.toUsername); return writer; }; @@ -145294,43 +150392,43 @@ export const Tokens = $root.Tokens = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ UsernameVerificationToken.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Tokens.UsernameVerificationToken(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Tokens.UsernameVerificationToken(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.username = reader.string(); break; } - case 2: { + case 2: { message.accountUid = reader.bytes(); break; } - case 3: { + case 3: { message.supportedLanguage = reader.int32(); break; } - case 4: { + case 4: { message.creation = reader.int64(); break; } - case 5: { + case 5: { message.clientVersionId = reader.int32(); break; } - case 6: { + case 6: { message.alternateUsername = reader.string(); break; } - case 7: { + case 7: { message.toUsername = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -145347,8 +150445,7 @@ export const Tokens = $root.Tokens = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ UsernameVerificationToken.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -145361,192 +150458,197 @@ export const Tokens = $root.Tokens = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ UsernameVerificationToken.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.username != null && message.hasOwnProperty("username")) - if (!$util.isString(message.username)) - return "username: string expected"; - if (message.accountUid != null && message.hasOwnProperty("accountUid")) - if (!(message.accountUid && typeof message.accountUid.length === "number" || $util.isString(message.accountUid))) - return "accountUid: buffer expected"; - if (message.supportedLanguage != null && message.hasOwnProperty("supportedLanguage")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.username != null && message.hasOwnProperty('username')) + if (!$util.isString(message.username)) return 'username: string expected'; + if (message.accountUid != null && message.hasOwnProperty('accountUid')) + if ( + !( + (message.accountUid && typeof message.accountUid.length === 'number') || + $util.isString(message.accountUid) + ) + ) + return 'accountUid: buffer expected'; + if (message.supportedLanguage != null && message.hasOwnProperty('supportedLanguage')) switch (message.supportedLanguage) { + default: + return 'supportedLanguage: enum value expected'; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + case 10: + case 11: + case 12: + case 13: + case 14: + case 15: + case 16: + case 17: + case 18: + case 19: + case 20: + case 21: + case 22: + break; + } + if (message.creation != null && message.hasOwnProperty('creation')) + if ( + !$util.isInteger(message.creation) && + !( + message.creation && + $util.isInteger(message.creation.low) && + $util.isInteger(message.creation.high) + ) + ) + return 'creation: integer|Long expected'; + if (message.clientVersionId != null && message.hasOwnProperty('clientVersionId')) + if (!$util.isInteger(message.clientVersionId)) return 'clientVersionId: integer expected'; + if (message.alternateUsername != null && message.hasOwnProperty('alternateUsername')) + if (!$util.isString(message.alternateUsername)) return 'alternateUsername: string expected'; + if (message.toUsername != null && message.hasOwnProperty('toUsername')) + if (!$util.isString(message.toUsername)) return 'toUsername: string expected'; + return null; + }; + + /** + * Creates a UsernameVerificationToken message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof Tokens.UsernameVerificationToken + * @static + * @param {Object.} object Plain object + * @returns {Tokens.UsernameVerificationToken} UsernameVerificationToken + */ + UsernameVerificationToken.fromObject = function fromObject(object) { + if (object instanceof $root.Tokens.UsernameVerificationToken) return object; + let message = new $root.Tokens.UsernameVerificationToken(); + if (object.username != null) message.username = String(object.username); + if (object.accountUid != null) + if (typeof object.accountUid === 'string') + $util.base64.decode( + object.accountUid, + (message.accountUid = $util.newBuffer($util.base64.length(object.accountUid))), + 0 + ); + else if (object.accountUid.length >= 0) message.accountUid = object.accountUid; + switch (object.supportedLanguage) { default: - return "supportedLanguage: enum value expected"; + if (typeof object.supportedLanguage === 'number') { + message.supportedLanguage = object.supportedLanguage; + break; + } + break; + case 'ENGLISH': case 0: + message.supportedLanguage = 0; + break; + case 'ARABIC': case 1: + message.supportedLanguage = 1; + break; + case 'BRITISH': case 2: + message.supportedLanguage = 2; + break; + case 'CHINESE': case 3: + message.supportedLanguage = 3; + break; + case 'CHINESE_HONG_KONG': case 4: + message.supportedLanguage = 4; + break; + case 'CHINESE_TAIWAN': case 5: + message.supportedLanguage = 5; + break; + case 'DUTCH': case 6: + message.supportedLanguage = 6; + break; + case 'FRENCH': case 7: + message.supportedLanguage = 7; + break; + case 'GERMAN': case 8: + message.supportedLanguage = 8; + break; + case 'GREEK': case 9: + message.supportedLanguage = 9; + break; + case 'HEBREW': case 10: + message.supportedLanguage = 10; + break; + case 'ITALIAN': case 11: + message.supportedLanguage = 11; + break; + case 'JAPANESE': case 12: + message.supportedLanguage = 12; + break; + case 'KOREAN': case 13: + message.supportedLanguage = 13; + break; + case 'POLISH': case 14: + message.supportedLanguage = 14; + break; + case 'PORTUGUESE': case 15: + message.supportedLanguage = 15; + break; + case 'PORTUGUESE_BRAZIL': case 16: + message.supportedLanguage = 16; + break; + case 'ROMANIAN': case 17: + message.supportedLanguage = 17; + break; + case 'RUSSIAN': case 18: + message.supportedLanguage = 18; + break; + case 'SLOVAK': case 19: + message.supportedLanguage = 19; + break; + case 'SPANISH': case 20: + message.supportedLanguage = 20; + break; + case 'FINNISH': case 21: + message.supportedLanguage = 21; + break; + case 'SWEDISH': case 22: + message.supportedLanguage = 22; break; - } - if (message.creation != null && message.hasOwnProperty("creation")) - if (!$util.isInteger(message.creation) && !(message.creation && $util.isInteger(message.creation.low) && $util.isInteger(message.creation.high))) - return "creation: integer|Long expected"; - if (message.clientVersionId != null && message.hasOwnProperty("clientVersionId")) - if (!$util.isInteger(message.clientVersionId)) - return "clientVersionId: integer expected"; - if (message.alternateUsername != null && message.hasOwnProperty("alternateUsername")) - if (!$util.isString(message.alternateUsername)) - return "alternateUsername: string expected"; - if (message.toUsername != null && message.hasOwnProperty("toUsername")) - if (!$util.isString(message.toUsername)) - return "toUsername: string expected"; - return null; - }; - - /** - * Creates a UsernameVerificationToken message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof Tokens.UsernameVerificationToken - * @static - * @param {Object.} object Plain object - * @returns {Tokens.UsernameVerificationToken} UsernameVerificationToken - */ - UsernameVerificationToken.fromObject = function fromObject(object) { - if (object instanceof $root.Tokens.UsernameVerificationToken) - return object; - let message = new $root.Tokens.UsernameVerificationToken(); - if (object.username != null) - message.username = String(object.username); - if (object.accountUid != null) - if (typeof object.accountUid === "string") - $util.base64.decode(object.accountUid, message.accountUid = $util.newBuffer($util.base64.length(object.accountUid)), 0); - else if (object.accountUid.length >= 0) - message.accountUid = object.accountUid; - switch (object.supportedLanguage) { - default: - if (typeof object.supportedLanguage === "number") { - message.supportedLanguage = object.supportedLanguage; - break; - } - break; - case "ENGLISH": - case 0: - message.supportedLanguage = 0; - break; - case "ARABIC": - case 1: - message.supportedLanguage = 1; - break; - case "BRITISH": - case 2: - message.supportedLanguage = 2; - break; - case "CHINESE": - case 3: - message.supportedLanguage = 3; - break; - case "CHINESE_HONG_KONG": - case 4: - message.supportedLanguage = 4; - break; - case "CHINESE_TAIWAN": - case 5: - message.supportedLanguage = 5; - break; - case "DUTCH": - case 6: - message.supportedLanguage = 6; - break; - case "FRENCH": - case 7: - message.supportedLanguage = 7; - break; - case "GERMAN": - case 8: - message.supportedLanguage = 8; - break; - case "GREEK": - case 9: - message.supportedLanguage = 9; - break; - case "HEBREW": - case 10: - message.supportedLanguage = 10; - break; - case "ITALIAN": - case 11: - message.supportedLanguage = 11; - break; - case "JAPANESE": - case 12: - message.supportedLanguage = 12; - break; - case "KOREAN": - case 13: - message.supportedLanguage = 13; - break; - case "POLISH": - case 14: - message.supportedLanguage = 14; - break; - case "PORTUGUESE": - case 15: - message.supportedLanguage = 15; - break; - case "PORTUGUESE_BRAZIL": - case 16: - message.supportedLanguage = 16; - break; - case "ROMANIAN": - case 17: - message.supportedLanguage = 17; - break; - case "RUSSIAN": - case 18: - message.supportedLanguage = 18; - break; - case "SLOVAK": - case 19: - message.supportedLanguage = 19; - break; - case "SPANISH": - case 20: - message.supportedLanguage = 20; - break; - case "FINNISH": - case 21: - message.supportedLanguage = 21; - break; - case "SWEDISH": - case 22: - message.supportedLanguage = 22; - break; } if (object.creation != null) - if ($util.Long) - (message.creation = $util.Long.fromValue(object.creation)).unsigned = false; - else if (typeof object.creation === "string") - message.creation = parseInt(object.creation, 10); - else if (typeof object.creation === "number") - message.creation = object.creation; - else if (typeof object.creation === "object") - message.creation = new $util.LongBits(object.creation.low >>> 0, object.creation.high >>> 0).toNumber(); - if (object.clientVersionId != null) - message.clientVersionId = object.clientVersionId | 0; - if (object.alternateUsername != null) - message.alternateUsername = String(object.alternateUsername); - if (object.toUsername != null) - message.toUsername = String(object.toUsername); + if ($util.Long) (message.creation = $util.Long.fromValue(object.creation)).unsigned = false; + else if (typeof object.creation === 'string') message.creation = parseInt(object.creation, 10); + else if (typeof object.creation === 'number') message.creation = object.creation; + else if (typeof object.creation === 'object') + message.creation = new $util.LongBits( + object.creation.low >>> 0, + object.creation.high >>> 0 + ).toNumber(); + if (object.clientVersionId != null) message.clientVersionId = object.clientVersionId | 0; + if (object.alternateUsername != null) message.alternateUsername = String(object.alternateUsername); + if (object.toUsername != null) message.toUsername = String(object.toUsername); return message; }; @@ -145560,44 +150662,55 @@ export const Tokens = $root.Tokens = (() => { * @returns {Object.} Plain object */ UsernameVerificationToken.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - object.username = ""; - if (options.bytes === String) - object.accountUid = ""; + object.username = ''; + if (options.bytes === String) object.accountUid = ''; else { object.accountUid = []; - if (options.bytes !== Array) - object.accountUid = $util.newBuffer(object.accountUid); + if (options.bytes !== Array) object.accountUid = $util.newBuffer(object.accountUid); } - object.supportedLanguage = options.enums === String ? "ENGLISH" : 0; + object.supportedLanguage = options.enums === String ? 'ENGLISH' : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.creation = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.creation = options.longs === String ? "0" : 0; + object.creation = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.creation = options.longs === String ? '0' : 0; object.clientVersionId = 0; - object.alternateUsername = ""; - object.toUsername = ""; - } - if (message.username != null && message.hasOwnProperty("username")) - object.username = message.username; - if (message.accountUid != null && message.hasOwnProperty("accountUid")) - object.accountUid = options.bytes === String ? $util.base64.encode(message.accountUid, 0, message.accountUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.accountUid) : message.accountUid; - if (message.supportedLanguage != null && message.hasOwnProperty("supportedLanguage")) - object.supportedLanguage = options.enums === String ? $root.Authentication.SupportedLanguage[message.supportedLanguage] === undefined ? message.supportedLanguage : $root.Authentication.SupportedLanguage[message.supportedLanguage] : message.supportedLanguage; - if (message.creation != null && message.hasOwnProperty("creation")) - if (typeof message.creation === "number") + object.alternateUsername = ''; + object.toUsername = ''; + } + if (message.username != null && message.hasOwnProperty('username')) object.username = message.username; + if (message.accountUid != null && message.hasOwnProperty('accountUid')) + object.accountUid = + options.bytes === String + ? $util.base64.encode(message.accountUid, 0, message.accountUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.accountUid) + : message.accountUid; + if (message.supportedLanguage != null && message.hasOwnProperty('supportedLanguage')) + object.supportedLanguage = + options.enums === String + ? $root.Authentication.SupportedLanguage[message.supportedLanguage] === undefined + ? message.supportedLanguage + : $root.Authentication.SupportedLanguage[message.supportedLanguage] + : message.supportedLanguage; + if (message.creation != null && message.hasOwnProperty('creation')) + if (typeof message.creation === 'number') object.creation = options.longs === String ? String(message.creation) : message.creation; else - object.creation = options.longs === String ? $util.Long.prototype.toString.call(message.creation) : options.longs === Number ? new $util.LongBits(message.creation.low >>> 0, message.creation.high >>> 0).toNumber() : message.creation; - if (message.clientVersionId != null && message.hasOwnProperty("clientVersionId")) + object.creation = + options.longs === String + ? $util.Long.prototype.toString.call(message.creation) + : options.longs === Number + ? new $util.LongBits(message.creation.low >>> 0, message.creation.high >>> 0).toNumber() + : message.creation; + if (message.clientVersionId != null && message.hasOwnProperty('clientVersionId')) object.clientVersionId = message.clientVersionId; - if (message.alternateUsername != null && message.hasOwnProperty("alternateUsername")) + if (message.alternateUsername != null && message.hasOwnProperty('alternateUsername')) object.alternateUsername = message.alternateUsername; - if (message.toUsername != null && message.hasOwnProperty("toUsername")) + if (message.toUsername != null && message.hasOwnProperty('toUsername')) object.toUsername = message.toUsername; return object; }; @@ -145623,16 +150736,15 @@ export const Tokens = $root.Tokens = (() => { */ UsernameVerificationToken.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Tokens.UsernameVerificationToken"; + return typeUrlPrefix + '/Tokens.UsernameVerificationToken'; }; return UsernameVerificationToken; })(); - Tokens.DeviceVerificationToken = (function() { - + Tokens.DeviceVerificationToken = (function () { /** * Properties of a DeviceVerificationToken. * @memberof Tokens @@ -145658,8 +150770,7 @@ export const Tokens = $root.Tokens = (() => { function DeviceVerificationToken(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -145668,7 +150779,7 @@ export const Tokens = $root.Tokens = (() => { * @memberof Tokens.DeviceVerificationToken * @instance */ - DeviceVerificationToken.prototype.deviceId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + DeviceVerificationToken.prototype.deviceId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * DeviceVerificationToken username. @@ -145676,7 +150787,7 @@ export const Tokens = $root.Tokens = (() => { * @memberof Tokens.DeviceVerificationToken * @instance */ - DeviceVerificationToken.prototype.username = ""; + DeviceVerificationToken.prototype.username = ''; /** * DeviceVerificationToken accountUid. @@ -145692,7 +150803,7 @@ export const Tokens = $root.Tokens = (() => { * @memberof Tokens.DeviceVerificationToken * @instance */ - DeviceVerificationToken.prototype.clientVersion = ""; + DeviceVerificationToken.prototype.clientVersion = ''; /** * DeviceVerificationToken supportedLanguage. @@ -145708,7 +150819,7 @@ export const Tokens = $root.Tokens = (() => { * @memberof Tokens.DeviceVerificationToken * @instance */ - DeviceVerificationToken.prototype.creation = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + DeviceVerificationToken.prototype.creation = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * DeviceVerificationToken messageSessionUid. @@ -145724,7 +150835,7 @@ export const Tokens = $root.Tokens = (() => { * @memberof Tokens.DeviceVerificationToken * @instance */ - DeviceVerificationToken.prototype.ipAddress = ""; + DeviceVerificationToken.prototype.ipAddress = ''; /** * Creates a new DeviceVerificationToken instance using the specified properties. @@ -145748,24 +150859,23 @@ export const Tokens = $root.Tokens = (() => { * @returns {$protobuf.Writer} Writer */ DeviceVerificationToken.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.deviceId != null && Object.hasOwnProperty.call(message, "deviceId")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.deviceId); - if (message.username != null && Object.hasOwnProperty.call(message, "username")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.username); - if (message.accountUid != null && Object.hasOwnProperty.call(message, "accountUid")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.accountUid); - if (message.clientVersion != null && Object.hasOwnProperty.call(message, "clientVersion")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.clientVersion); - if (message.supportedLanguage != null && Object.hasOwnProperty.call(message, "supportedLanguage")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.supportedLanguage); - if (message.creation != null && Object.hasOwnProperty.call(message, "creation")) - writer.uint32(/* id 6, wireType 0 =*/48).int64(message.creation); - if (message.messageSessionUid != null && Object.hasOwnProperty.call(message, "messageSessionUid")) - writer.uint32(/* id 7, wireType 2 =*/58).bytes(message.messageSessionUid); - if (message.ipAddress != null && Object.hasOwnProperty.call(message, "ipAddress")) - writer.uint32(/* id 8, wireType 2 =*/66).string(message.ipAddress); + if (!writer) writer = $Writer.create(); + if (message.deviceId != null && Object.hasOwnProperty.call(message, 'deviceId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int64(message.deviceId); + if (message.username != null && Object.hasOwnProperty.call(message, 'username')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.username); + if (message.accountUid != null && Object.hasOwnProperty.call(message, 'accountUid')) + writer.uint32(/* id 3, wireType 2 =*/ 26).bytes(message.accountUid); + if (message.clientVersion != null && Object.hasOwnProperty.call(message, 'clientVersion')) + writer.uint32(/* id 4, wireType 2 =*/ 34).string(message.clientVersion); + if (message.supportedLanguage != null && Object.hasOwnProperty.call(message, 'supportedLanguage')) + writer.uint32(/* id 5, wireType 0 =*/ 40).int32(message.supportedLanguage); + if (message.creation != null && Object.hasOwnProperty.call(message, 'creation')) + writer.uint32(/* id 6, wireType 0 =*/ 48).int64(message.creation); + if (message.messageSessionUid != null && Object.hasOwnProperty.call(message, 'messageSessionUid')) + writer.uint32(/* id 7, wireType 2 =*/ 58).bytes(message.messageSessionUid); + if (message.ipAddress != null && Object.hasOwnProperty.call(message, 'ipAddress')) + writer.uint32(/* id 8, wireType 2 =*/ 66).string(message.ipAddress); return writer; }; @@ -145794,47 +150904,47 @@ export const Tokens = $root.Tokens = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ DeviceVerificationToken.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Tokens.DeviceVerificationToken(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Tokens.DeviceVerificationToken(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.deviceId = reader.int64(); break; } - case 2: { + case 2: { message.username = reader.string(); break; } - case 3: { + case 3: { message.accountUid = reader.bytes(); break; } - case 4: { + case 4: { message.clientVersion = reader.string(); break; } - case 5: { + case 5: { message.supportedLanguage = reader.int32(); break; } - case 6: { + case 6: { message.creation = reader.int64(); break; } - case 7: { + case 7: { message.messageSessionUid = reader.bytes(); break; } - case 8: { + case 8: { message.ipAddress = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -145851,8 +150961,7 @@ export const Tokens = $root.Tokens = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ DeviceVerificationToken.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -145865,207 +150974,229 @@ export const Tokens = $root.Tokens = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ DeviceVerificationToken.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.deviceId != null && message.hasOwnProperty("deviceId")) - if (!$util.isInteger(message.deviceId) && !(message.deviceId && $util.isInteger(message.deviceId.low) && $util.isInteger(message.deviceId.high))) - return "deviceId: integer|Long expected"; - if (message.username != null && message.hasOwnProperty("username")) - if (!$util.isString(message.username)) - return "username: string expected"; - if (message.accountUid != null && message.hasOwnProperty("accountUid")) - if (!(message.accountUid && typeof message.accountUid.length === "number" || $util.isString(message.accountUid))) - return "accountUid: buffer expected"; - if (message.clientVersion != null && message.hasOwnProperty("clientVersion")) - if (!$util.isString(message.clientVersion)) - return "clientVersion: string expected"; - if (message.supportedLanguage != null && message.hasOwnProperty("supportedLanguage")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.deviceId != null && message.hasOwnProperty('deviceId')) + if ( + !$util.isInteger(message.deviceId) && + !( + message.deviceId && + $util.isInteger(message.deviceId.low) && + $util.isInteger(message.deviceId.high) + ) + ) + return 'deviceId: integer|Long expected'; + if (message.username != null && message.hasOwnProperty('username')) + if (!$util.isString(message.username)) return 'username: string expected'; + if (message.accountUid != null && message.hasOwnProperty('accountUid')) + if ( + !( + (message.accountUid && typeof message.accountUid.length === 'number') || + $util.isString(message.accountUid) + ) + ) + return 'accountUid: buffer expected'; + if (message.clientVersion != null && message.hasOwnProperty('clientVersion')) + if (!$util.isString(message.clientVersion)) return 'clientVersion: string expected'; + if (message.supportedLanguage != null && message.hasOwnProperty('supportedLanguage')) switch (message.supportedLanguage) { + default: + return 'supportedLanguage: enum value expected'; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + case 10: + case 11: + case 12: + case 13: + case 14: + case 15: + case 16: + case 17: + case 18: + case 19: + case 20: + case 21: + case 22: + break; + } + if (message.creation != null && message.hasOwnProperty('creation')) + if ( + !$util.isInteger(message.creation) && + !( + message.creation && + $util.isInteger(message.creation.low) && + $util.isInteger(message.creation.high) + ) + ) + return 'creation: integer|Long expected'; + if (message.messageSessionUid != null && message.hasOwnProperty('messageSessionUid')) + if ( + !( + (message.messageSessionUid && typeof message.messageSessionUid.length === 'number') || + $util.isString(message.messageSessionUid) + ) + ) + return 'messageSessionUid: buffer expected'; + if (message.ipAddress != null && message.hasOwnProperty('ipAddress')) + if (!$util.isString(message.ipAddress)) return 'ipAddress: string expected'; + return null; + }; + + /** + * Creates a DeviceVerificationToken message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof Tokens.DeviceVerificationToken + * @static + * @param {Object.} object Plain object + * @returns {Tokens.DeviceVerificationToken} DeviceVerificationToken + */ + DeviceVerificationToken.fromObject = function fromObject(object) { + if (object instanceof $root.Tokens.DeviceVerificationToken) return object; + let message = new $root.Tokens.DeviceVerificationToken(); + if (object.deviceId != null) + if ($util.Long) (message.deviceId = $util.Long.fromValue(object.deviceId)).unsigned = false; + else if (typeof object.deviceId === 'string') message.deviceId = parseInt(object.deviceId, 10); + else if (typeof object.deviceId === 'number') message.deviceId = object.deviceId; + else if (typeof object.deviceId === 'object') + message.deviceId = new $util.LongBits( + object.deviceId.low >>> 0, + object.deviceId.high >>> 0 + ).toNumber(); + if (object.username != null) message.username = String(object.username); + if (object.accountUid != null) + if (typeof object.accountUid === 'string') + $util.base64.decode( + object.accountUid, + (message.accountUid = $util.newBuffer($util.base64.length(object.accountUid))), + 0 + ); + else if (object.accountUid.length >= 0) message.accountUid = object.accountUid; + if (object.clientVersion != null) message.clientVersion = String(object.clientVersion); + switch (object.supportedLanguage) { default: - return "supportedLanguage: enum value expected"; + if (typeof object.supportedLanguage === 'number') { + message.supportedLanguage = object.supportedLanguage; + break; + } + break; + case 'ENGLISH': case 0: + message.supportedLanguage = 0; + break; + case 'ARABIC': case 1: + message.supportedLanguage = 1; + break; + case 'BRITISH': case 2: + message.supportedLanguage = 2; + break; + case 'CHINESE': case 3: + message.supportedLanguage = 3; + break; + case 'CHINESE_HONG_KONG': case 4: + message.supportedLanguage = 4; + break; + case 'CHINESE_TAIWAN': case 5: + message.supportedLanguage = 5; + break; + case 'DUTCH': case 6: + message.supportedLanguage = 6; + break; + case 'FRENCH': case 7: + message.supportedLanguage = 7; + break; + case 'GERMAN': case 8: + message.supportedLanguage = 8; + break; + case 'GREEK': case 9: + message.supportedLanguage = 9; + break; + case 'HEBREW': case 10: + message.supportedLanguage = 10; + break; + case 'ITALIAN': case 11: + message.supportedLanguage = 11; + break; + case 'JAPANESE': case 12: + message.supportedLanguage = 12; + break; + case 'KOREAN': case 13: + message.supportedLanguage = 13; + break; + case 'POLISH': case 14: + message.supportedLanguage = 14; + break; + case 'PORTUGUESE': case 15: + message.supportedLanguage = 15; + break; + case 'PORTUGUESE_BRAZIL': case 16: + message.supportedLanguage = 16; + break; + case 'ROMANIAN': case 17: + message.supportedLanguage = 17; + break; + case 'RUSSIAN': case 18: + message.supportedLanguage = 18; + break; + case 'SLOVAK': case 19: + message.supportedLanguage = 19; + break; + case 'SPANISH': case 20: + message.supportedLanguage = 20; + break; + case 'FINNISH': case 21: + message.supportedLanguage = 21; + break; + case 'SWEDISH': case 22: + message.supportedLanguage = 22; break; - } - if (message.creation != null && message.hasOwnProperty("creation")) - if (!$util.isInteger(message.creation) && !(message.creation && $util.isInteger(message.creation.low) && $util.isInteger(message.creation.high))) - return "creation: integer|Long expected"; - if (message.messageSessionUid != null && message.hasOwnProperty("messageSessionUid")) - if (!(message.messageSessionUid && typeof message.messageSessionUid.length === "number" || $util.isString(message.messageSessionUid))) - return "messageSessionUid: buffer expected"; - if (message.ipAddress != null && message.hasOwnProperty("ipAddress")) - if (!$util.isString(message.ipAddress)) - return "ipAddress: string expected"; - return null; - }; - - /** - * Creates a DeviceVerificationToken message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof Tokens.DeviceVerificationToken - * @static - * @param {Object.} object Plain object - * @returns {Tokens.DeviceVerificationToken} DeviceVerificationToken - */ - DeviceVerificationToken.fromObject = function fromObject(object) { - if (object instanceof $root.Tokens.DeviceVerificationToken) - return object; - let message = new $root.Tokens.DeviceVerificationToken(); - if (object.deviceId != null) - if ($util.Long) - (message.deviceId = $util.Long.fromValue(object.deviceId)).unsigned = false; - else if (typeof object.deviceId === "string") - message.deviceId = parseInt(object.deviceId, 10); - else if (typeof object.deviceId === "number") - message.deviceId = object.deviceId; - else if (typeof object.deviceId === "object") - message.deviceId = new $util.LongBits(object.deviceId.low >>> 0, object.deviceId.high >>> 0).toNumber(); - if (object.username != null) - message.username = String(object.username); - if (object.accountUid != null) - if (typeof object.accountUid === "string") - $util.base64.decode(object.accountUid, message.accountUid = $util.newBuffer($util.base64.length(object.accountUid)), 0); - else if (object.accountUid.length >= 0) - message.accountUid = object.accountUid; - if (object.clientVersion != null) - message.clientVersion = String(object.clientVersion); - switch (object.supportedLanguage) { - default: - if (typeof object.supportedLanguage === "number") { - message.supportedLanguage = object.supportedLanguage; - break; - } - break; - case "ENGLISH": - case 0: - message.supportedLanguage = 0; - break; - case "ARABIC": - case 1: - message.supportedLanguage = 1; - break; - case "BRITISH": - case 2: - message.supportedLanguage = 2; - break; - case "CHINESE": - case 3: - message.supportedLanguage = 3; - break; - case "CHINESE_HONG_KONG": - case 4: - message.supportedLanguage = 4; - break; - case "CHINESE_TAIWAN": - case 5: - message.supportedLanguage = 5; - break; - case "DUTCH": - case 6: - message.supportedLanguage = 6; - break; - case "FRENCH": - case 7: - message.supportedLanguage = 7; - break; - case "GERMAN": - case 8: - message.supportedLanguage = 8; - break; - case "GREEK": - case 9: - message.supportedLanguage = 9; - break; - case "HEBREW": - case 10: - message.supportedLanguage = 10; - break; - case "ITALIAN": - case 11: - message.supportedLanguage = 11; - break; - case "JAPANESE": - case 12: - message.supportedLanguage = 12; - break; - case "KOREAN": - case 13: - message.supportedLanguage = 13; - break; - case "POLISH": - case 14: - message.supportedLanguage = 14; - break; - case "PORTUGUESE": - case 15: - message.supportedLanguage = 15; - break; - case "PORTUGUESE_BRAZIL": - case 16: - message.supportedLanguage = 16; - break; - case "ROMANIAN": - case 17: - message.supportedLanguage = 17; - break; - case "RUSSIAN": - case 18: - message.supportedLanguage = 18; - break; - case "SLOVAK": - case 19: - message.supportedLanguage = 19; - break; - case "SPANISH": - case 20: - message.supportedLanguage = 20; - break; - case "FINNISH": - case 21: - message.supportedLanguage = 21; - break; - case "SWEDISH": - case 22: - message.supportedLanguage = 22; - break; } if (object.creation != null) - if ($util.Long) - (message.creation = $util.Long.fromValue(object.creation)).unsigned = false; - else if (typeof object.creation === "string") - message.creation = parseInt(object.creation, 10); - else if (typeof object.creation === "number") - message.creation = object.creation; - else if (typeof object.creation === "object") - message.creation = new $util.LongBits(object.creation.low >>> 0, object.creation.high >>> 0).toNumber(); + if ($util.Long) (message.creation = $util.Long.fromValue(object.creation)).unsigned = false; + else if (typeof object.creation === 'string') message.creation = parseInt(object.creation, 10); + else if (typeof object.creation === 'number') message.creation = object.creation; + else if (typeof object.creation === 'object') + message.creation = new $util.LongBits( + object.creation.low >>> 0, + object.creation.high >>> 0 + ).toNumber(); if (object.messageSessionUid != null) - if (typeof object.messageSessionUid === "string") - $util.base64.decode(object.messageSessionUid, message.messageSessionUid = $util.newBuffer($util.base64.length(object.messageSessionUid)), 0); - else if (object.messageSessionUid.length >= 0) - message.messageSessionUid = object.messageSessionUid; - if (object.ipAddress != null) - message.ipAddress = String(object.ipAddress); + if (typeof object.messageSessionUid === 'string') + $util.base64.decode( + object.messageSessionUid, + (message.messageSessionUid = $util.newBuffer($util.base64.length(object.messageSessionUid))), + 0 + ); + else if (object.messageSessionUid.length >= 0) message.messageSessionUid = object.messageSessionUid; + if (object.ipAddress != null) message.ipAddress = String(object.ipAddress); return message; }; @@ -146079,61 +151210,79 @@ export const Tokens = $root.Tokens = (() => { * @returns {Object.} Plain object */ DeviceVerificationToken.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.deviceId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.deviceId = options.longs === String ? "0" : 0; - object.username = ""; - if (options.bytes === String) - object.accountUid = ""; + object.deviceId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.deviceId = options.longs === String ? '0' : 0; + object.username = ''; + if (options.bytes === String) object.accountUid = ''; else { object.accountUid = []; - if (options.bytes !== Array) - object.accountUid = $util.newBuffer(object.accountUid); + if (options.bytes !== Array) object.accountUid = $util.newBuffer(object.accountUid); } - object.clientVersion = ""; - object.supportedLanguage = options.enums === String ? "ENGLISH" : 0; + object.clientVersion = ''; + object.supportedLanguage = options.enums === String ? 'ENGLISH' : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.creation = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.creation = options.longs === String ? "0" : 0; - if (options.bytes === String) - object.messageSessionUid = ""; + object.creation = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.creation = options.longs === String ? '0' : 0; + if (options.bytes === String) object.messageSessionUid = ''; else { object.messageSessionUid = []; - if (options.bytes !== Array) - object.messageSessionUid = $util.newBuffer(object.messageSessionUid); + if (options.bytes !== Array) object.messageSessionUid = $util.newBuffer(object.messageSessionUid); } - object.ipAddress = ""; + object.ipAddress = ''; } - if (message.deviceId != null && message.hasOwnProperty("deviceId")) - if (typeof message.deviceId === "number") + if (message.deviceId != null && message.hasOwnProperty('deviceId')) + if (typeof message.deviceId === 'number') object.deviceId = options.longs === String ? String(message.deviceId) : message.deviceId; else - object.deviceId = options.longs === String ? $util.Long.prototype.toString.call(message.deviceId) : options.longs === Number ? new $util.LongBits(message.deviceId.low >>> 0, message.deviceId.high >>> 0).toNumber() : message.deviceId; - if (message.username != null && message.hasOwnProperty("username")) - object.username = message.username; - if (message.accountUid != null && message.hasOwnProperty("accountUid")) - object.accountUid = options.bytes === String ? $util.base64.encode(message.accountUid, 0, message.accountUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.accountUid) : message.accountUid; - if (message.clientVersion != null && message.hasOwnProperty("clientVersion")) + object.deviceId = + options.longs === String + ? $util.Long.prototype.toString.call(message.deviceId) + : options.longs === Number + ? new $util.LongBits(message.deviceId.low >>> 0, message.deviceId.high >>> 0).toNumber() + : message.deviceId; + if (message.username != null && message.hasOwnProperty('username')) object.username = message.username; + if (message.accountUid != null && message.hasOwnProperty('accountUid')) + object.accountUid = + options.bytes === String + ? $util.base64.encode(message.accountUid, 0, message.accountUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.accountUid) + : message.accountUid; + if (message.clientVersion != null && message.hasOwnProperty('clientVersion')) object.clientVersion = message.clientVersion; - if (message.supportedLanguage != null && message.hasOwnProperty("supportedLanguage")) - object.supportedLanguage = options.enums === String ? $root.Authentication.SupportedLanguage[message.supportedLanguage] === undefined ? message.supportedLanguage : $root.Authentication.SupportedLanguage[message.supportedLanguage] : message.supportedLanguage; - if (message.creation != null && message.hasOwnProperty("creation")) - if (typeof message.creation === "number") + if (message.supportedLanguage != null && message.hasOwnProperty('supportedLanguage')) + object.supportedLanguage = + options.enums === String + ? $root.Authentication.SupportedLanguage[message.supportedLanguage] === undefined + ? message.supportedLanguage + : $root.Authentication.SupportedLanguage[message.supportedLanguage] + : message.supportedLanguage; + if (message.creation != null && message.hasOwnProperty('creation')) + if (typeof message.creation === 'number') object.creation = options.longs === String ? String(message.creation) : message.creation; else - object.creation = options.longs === String ? $util.Long.prototype.toString.call(message.creation) : options.longs === Number ? new $util.LongBits(message.creation.low >>> 0, message.creation.high >>> 0).toNumber() : message.creation; - if (message.messageSessionUid != null && message.hasOwnProperty("messageSessionUid")) - object.messageSessionUid = options.bytes === String ? $util.base64.encode(message.messageSessionUid, 0, message.messageSessionUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.messageSessionUid) : message.messageSessionUid; - if (message.ipAddress != null && message.hasOwnProperty("ipAddress")) - object.ipAddress = message.ipAddress; + object.creation = + options.longs === String + ? $util.Long.prototype.toString.call(message.creation) + : options.longs === Number + ? new $util.LongBits(message.creation.low >>> 0, message.creation.high >>> 0).toNumber() + : message.creation; + if (message.messageSessionUid != null && message.hasOwnProperty('messageSessionUid')) + object.messageSessionUid = + options.bytes === String + ? $util.base64.encode(message.messageSessionUid, 0, message.messageSessionUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.messageSessionUid) + : message.messageSessionUid; + if (message.ipAddress != null && message.hasOwnProperty('ipAddress')) object.ipAddress = message.ipAddress; return object; }; @@ -146158,16 +151307,15 @@ export const Tokens = $root.Tokens = (() => { */ DeviceVerificationToken.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Tokens.DeviceVerificationToken"; + return typeUrlPrefix + '/Tokens.DeviceVerificationToken'; }; return DeviceVerificationToken; })(); - Tokens.ReActivateDeviceApprovalRequestToken = (function() { - + Tokens.ReActivateDeviceApprovalRequestToken = (function () { /** * Properties of a ReActivateDeviceApprovalRequestToken. * @memberof Tokens @@ -146191,8 +151339,7 @@ export const Tokens = $root.Tokens = (() => { function ReActivateDeviceApprovalRequestToken(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -146201,7 +151348,7 @@ export const Tokens = $root.Tokens = (() => { * @memberof Tokens.ReActivateDeviceApprovalRequestToken * @instance */ - ReActivateDeviceApprovalRequestToken.prototype.deviceId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + ReActivateDeviceApprovalRequestToken.prototype.deviceId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * ReActivateDeviceApprovalRequestToken fromUsername. @@ -146209,7 +151356,7 @@ export const Tokens = $root.Tokens = (() => { * @memberof Tokens.ReActivateDeviceApprovalRequestToken * @instance */ - ReActivateDeviceApprovalRequestToken.prototype.fromUsername = ""; + ReActivateDeviceApprovalRequestToken.prototype.fromUsername = ''; /** * ReActivateDeviceApprovalRequestToken forUsername. @@ -146217,7 +151364,7 @@ export const Tokens = $root.Tokens = (() => { * @memberof Tokens.ReActivateDeviceApprovalRequestToken * @instance */ - ReActivateDeviceApprovalRequestToken.prototype.forUsername = ""; + ReActivateDeviceApprovalRequestToken.prototype.forUsername = ''; /** * ReActivateDeviceApprovalRequestToken accountUid. @@ -146233,7 +151380,9 @@ export const Tokens = $root.Tokens = (() => { * @memberof Tokens.ReActivateDeviceApprovalRequestToken * @instance */ - ReActivateDeviceApprovalRequestToken.prototype.requestTimeStamp = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + ReActivateDeviceApprovalRequestToken.prototype.requestTimeStamp = $util.Long + ? $util.Long.fromBits(0, 0, false) + : 0; /** * ReActivateDeviceApprovalRequestToken supportedLanguage. @@ -146265,20 +151414,19 @@ export const Tokens = $root.Tokens = (() => { * @returns {$protobuf.Writer} Writer */ ReActivateDeviceApprovalRequestToken.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.deviceId != null && Object.hasOwnProperty.call(message, "deviceId")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.deviceId); - if (message.fromUsername != null && Object.hasOwnProperty.call(message, "fromUsername")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.fromUsername); - if (message.forUsername != null && Object.hasOwnProperty.call(message, "forUsername")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.forUsername); - if (message.accountUid != null && Object.hasOwnProperty.call(message, "accountUid")) - writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.accountUid); - if (message.requestTimeStamp != null && Object.hasOwnProperty.call(message, "requestTimeStamp")) - writer.uint32(/* id 5, wireType 0 =*/40).int64(message.requestTimeStamp); - if (message.supportedLanguage != null && Object.hasOwnProperty.call(message, "supportedLanguage")) - writer.uint32(/* id 6, wireType 0 =*/48).int32(message.supportedLanguage); + if (!writer) writer = $Writer.create(); + if (message.deviceId != null && Object.hasOwnProperty.call(message, 'deviceId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int64(message.deviceId); + if (message.fromUsername != null && Object.hasOwnProperty.call(message, 'fromUsername')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.fromUsername); + if (message.forUsername != null && Object.hasOwnProperty.call(message, 'forUsername')) + writer.uint32(/* id 3, wireType 2 =*/ 26).string(message.forUsername); + if (message.accountUid != null && Object.hasOwnProperty.call(message, 'accountUid')) + writer.uint32(/* id 4, wireType 2 =*/ 34).bytes(message.accountUid); + if (message.requestTimeStamp != null && Object.hasOwnProperty.call(message, 'requestTimeStamp')) + writer.uint32(/* id 5, wireType 0 =*/ 40).int64(message.requestTimeStamp); + if (message.supportedLanguage != null && Object.hasOwnProperty.call(message, 'supportedLanguage')) + writer.uint32(/* id 6, wireType 0 =*/ 48).int32(message.supportedLanguage); return writer; }; @@ -146307,39 +151455,39 @@ export const Tokens = $root.Tokens = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ReActivateDeviceApprovalRequestToken.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Tokens.ReActivateDeviceApprovalRequestToken(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Tokens.ReActivateDeviceApprovalRequestToken(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.deviceId = reader.int64(); break; } - case 2: { + case 2: { message.fromUsername = reader.string(); break; } - case 3: { + case 3: { message.forUsername = reader.string(); break; } - case 4: { + case 4: { message.accountUid = reader.bytes(); break; } - case 5: { + case 5: { message.requestTimeStamp = reader.int64(); break; } - case 6: { + case 6: { message.supportedLanguage = reader.int32(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -146356,8 +151504,7 @@ export const Tokens = $root.Tokens = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ReActivateDeviceApprovalRequestToken.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -146370,193 +151517,212 @@ export const Tokens = $root.Tokens = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ ReActivateDeviceApprovalRequestToken.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.deviceId != null && message.hasOwnProperty("deviceId")) - if (!$util.isInteger(message.deviceId) && !(message.deviceId && $util.isInteger(message.deviceId.low) && $util.isInteger(message.deviceId.high))) - return "deviceId: integer|Long expected"; - if (message.fromUsername != null && message.hasOwnProperty("fromUsername")) - if (!$util.isString(message.fromUsername)) - return "fromUsername: string expected"; - if (message.forUsername != null && message.hasOwnProperty("forUsername")) - if (!$util.isString(message.forUsername)) - return "forUsername: string expected"; - if (message.accountUid != null && message.hasOwnProperty("accountUid")) - if (!(message.accountUid && typeof message.accountUid.length === "number" || $util.isString(message.accountUid))) - return "accountUid: buffer expected"; - if (message.requestTimeStamp != null && message.hasOwnProperty("requestTimeStamp")) - if (!$util.isInteger(message.requestTimeStamp) && !(message.requestTimeStamp && $util.isInteger(message.requestTimeStamp.low) && $util.isInteger(message.requestTimeStamp.high))) - return "requestTimeStamp: integer|Long expected"; - if (message.supportedLanguage != null && message.hasOwnProperty("supportedLanguage")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.deviceId != null && message.hasOwnProperty('deviceId')) + if ( + !$util.isInteger(message.deviceId) && + !( + message.deviceId && + $util.isInteger(message.deviceId.low) && + $util.isInteger(message.deviceId.high) + ) + ) + return 'deviceId: integer|Long expected'; + if (message.fromUsername != null && message.hasOwnProperty('fromUsername')) + if (!$util.isString(message.fromUsername)) return 'fromUsername: string expected'; + if (message.forUsername != null && message.hasOwnProperty('forUsername')) + if (!$util.isString(message.forUsername)) return 'forUsername: string expected'; + if (message.accountUid != null && message.hasOwnProperty('accountUid')) + if ( + !( + (message.accountUid && typeof message.accountUid.length === 'number') || + $util.isString(message.accountUid) + ) + ) + return 'accountUid: buffer expected'; + if (message.requestTimeStamp != null && message.hasOwnProperty('requestTimeStamp')) + if ( + !$util.isInteger(message.requestTimeStamp) && + !( + message.requestTimeStamp && + $util.isInteger(message.requestTimeStamp.low) && + $util.isInteger(message.requestTimeStamp.high) + ) + ) + return 'requestTimeStamp: integer|Long expected'; + if (message.supportedLanguage != null && message.hasOwnProperty('supportedLanguage')) switch (message.supportedLanguage) { + default: + return 'supportedLanguage: enum value expected'; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + case 10: + case 11: + case 12: + case 13: + case 14: + case 15: + case 16: + case 17: + case 18: + case 19: + case 20: + case 21: + case 22: + break; + } + return null; + }; + + /** + * Creates a ReActivateDeviceApprovalRequestToken message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof Tokens.ReActivateDeviceApprovalRequestToken + * @static + * @param {Object.} object Plain object + * @returns {Tokens.ReActivateDeviceApprovalRequestToken} ReActivateDeviceApprovalRequestToken + */ + ReActivateDeviceApprovalRequestToken.fromObject = function fromObject(object) { + if (object instanceof $root.Tokens.ReActivateDeviceApprovalRequestToken) return object; + let message = new $root.Tokens.ReActivateDeviceApprovalRequestToken(); + if (object.deviceId != null) + if ($util.Long) (message.deviceId = $util.Long.fromValue(object.deviceId)).unsigned = false; + else if (typeof object.deviceId === 'string') message.deviceId = parseInt(object.deviceId, 10); + else if (typeof object.deviceId === 'number') message.deviceId = object.deviceId; + else if (typeof object.deviceId === 'object') + message.deviceId = new $util.LongBits( + object.deviceId.low >>> 0, + object.deviceId.high >>> 0 + ).toNumber(); + if (object.fromUsername != null) message.fromUsername = String(object.fromUsername); + if (object.forUsername != null) message.forUsername = String(object.forUsername); + if (object.accountUid != null) + if (typeof object.accountUid === 'string') + $util.base64.decode( + object.accountUid, + (message.accountUid = $util.newBuffer($util.base64.length(object.accountUid))), + 0 + ); + else if (object.accountUid.length >= 0) message.accountUid = object.accountUid; + if (object.requestTimeStamp != null) + if ($util.Long) + (message.requestTimeStamp = $util.Long.fromValue(object.requestTimeStamp)).unsigned = false; + else if (typeof object.requestTimeStamp === 'string') + message.requestTimeStamp = parseInt(object.requestTimeStamp, 10); + else if (typeof object.requestTimeStamp === 'number') + message.requestTimeStamp = object.requestTimeStamp; + else if (typeof object.requestTimeStamp === 'object') + message.requestTimeStamp = new $util.LongBits( + object.requestTimeStamp.low >>> 0, + object.requestTimeStamp.high >>> 0 + ).toNumber(); + switch (object.supportedLanguage) { default: - return "supportedLanguage: enum value expected"; + if (typeof object.supportedLanguage === 'number') { + message.supportedLanguage = object.supportedLanguage; + break; + } + break; + case 'ENGLISH': case 0: + message.supportedLanguage = 0; + break; + case 'ARABIC': case 1: + message.supportedLanguage = 1; + break; + case 'BRITISH': case 2: + message.supportedLanguage = 2; + break; + case 'CHINESE': case 3: + message.supportedLanguage = 3; + break; + case 'CHINESE_HONG_KONG': case 4: + message.supportedLanguage = 4; + break; + case 'CHINESE_TAIWAN': case 5: + message.supportedLanguage = 5; + break; + case 'DUTCH': case 6: + message.supportedLanguage = 6; + break; + case 'FRENCH': case 7: + message.supportedLanguage = 7; + break; + case 'GERMAN': case 8: + message.supportedLanguage = 8; + break; + case 'GREEK': case 9: + message.supportedLanguage = 9; + break; + case 'HEBREW': case 10: + message.supportedLanguage = 10; + break; + case 'ITALIAN': case 11: + message.supportedLanguage = 11; + break; + case 'JAPANESE': case 12: + message.supportedLanguage = 12; + break; + case 'KOREAN': case 13: + message.supportedLanguage = 13; + break; + case 'POLISH': case 14: + message.supportedLanguage = 14; + break; + case 'PORTUGUESE': case 15: + message.supportedLanguage = 15; + break; + case 'PORTUGUESE_BRAZIL': case 16: + message.supportedLanguage = 16; + break; + case 'ROMANIAN': case 17: + message.supportedLanguage = 17; + break; + case 'RUSSIAN': case 18: + message.supportedLanguage = 18; + break; + case 'SLOVAK': case 19: + message.supportedLanguage = 19; + break; + case 'SPANISH': case 20: + message.supportedLanguage = 20; + break; + case 'FINNISH': case 21: + message.supportedLanguage = 21; + break; + case 'SWEDISH': case 22: + message.supportedLanguage = 22; break; - } - return null; - }; - - /** - * Creates a ReActivateDeviceApprovalRequestToken message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof Tokens.ReActivateDeviceApprovalRequestToken - * @static - * @param {Object.} object Plain object - * @returns {Tokens.ReActivateDeviceApprovalRequestToken} ReActivateDeviceApprovalRequestToken - */ - ReActivateDeviceApprovalRequestToken.fromObject = function fromObject(object) { - if (object instanceof $root.Tokens.ReActivateDeviceApprovalRequestToken) - return object; - let message = new $root.Tokens.ReActivateDeviceApprovalRequestToken(); - if (object.deviceId != null) - if ($util.Long) - (message.deviceId = $util.Long.fromValue(object.deviceId)).unsigned = false; - else if (typeof object.deviceId === "string") - message.deviceId = parseInt(object.deviceId, 10); - else if (typeof object.deviceId === "number") - message.deviceId = object.deviceId; - else if (typeof object.deviceId === "object") - message.deviceId = new $util.LongBits(object.deviceId.low >>> 0, object.deviceId.high >>> 0).toNumber(); - if (object.fromUsername != null) - message.fromUsername = String(object.fromUsername); - if (object.forUsername != null) - message.forUsername = String(object.forUsername); - if (object.accountUid != null) - if (typeof object.accountUid === "string") - $util.base64.decode(object.accountUid, message.accountUid = $util.newBuffer($util.base64.length(object.accountUid)), 0); - else if (object.accountUid.length >= 0) - message.accountUid = object.accountUid; - if (object.requestTimeStamp != null) - if ($util.Long) - (message.requestTimeStamp = $util.Long.fromValue(object.requestTimeStamp)).unsigned = false; - else if (typeof object.requestTimeStamp === "string") - message.requestTimeStamp = parseInt(object.requestTimeStamp, 10); - else if (typeof object.requestTimeStamp === "number") - message.requestTimeStamp = object.requestTimeStamp; - else if (typeof object.requestTimeStamp === "object") - message.requestTimeStamp = new $util.LongBits(object.requestTimeStamp.low >>> 0, object.requestTimeStamp.high >>> 0).toNumber(); - switch (object.supportedLanguage) { - default: - if (typeof object.supportedLanguage === "number") { - message.supportedLanguage = object.supportedLanguage; - break; - } - break; - case "ENGLISH": - case 0: - message.supportedLanguage = 0; - break; - case "ARABIC": - case 1: - message.supportedLanguage = 1; - break; - case "BRITISH": - case 2: - message.supportedLanguage = 2; - break; - case "CHINESE": - case 3: - message.supportedLanguage = 3; - break; - case "CHINESE_HONG_KONG": - case 4: - message.supportedLanguage = 4; - break; - case "CHINESE_TAIWAN": - case 5: - message.supportedLanguage = 5; - break; - case "DUTCH": - case 6: - message.supportedLanguage = 6; - break; - case "FRENCH": - case 7: - message.supportedLanguage = 7; - break; - case "GERMAN": - case 8: - message.supportedLanguage = 8; - break; - case "GREEK": - case 9: - message.supportedLanguage = 9; - break; - case "HEBREW": - case 10: - message.supportedLanguage = 10; - break; - case "ITALIAN": - case 11: - message.supportedLanguage = 11; - break; - case "JAPANESE": - case 12: - message.supportedLanguage = 12; - break; - case "KOREAN": - case 13: - message.supportedLanguage = 13; - break; - case "POLISH": - case 14: - message.supportedLanguage = 14; - break; - case "PORTUGUESE": - case 15: - message.supportedLanguage = 15; - break; - case "PORTUGUESE_BRAZIL": - case 16: - message.supportedLanguage = 16; - break; - case "ROMANIAN": - case 17: - message.supportedLanguage = 17; - break; - case "RUSSIAN": - case 18: - message.supportedLanguage = 18; - break; - case "SLOVAK": - case 19: - message.supportedLanguage = 19; - break; - case "SPANISH": - case 20: - message.supportedLanguage = 20; - break; - case "FINNISH": - case 21: - message.supportedLanguage = 21; - break; - case "SWEDISH": - case 22: - message.supportedLanguage = 22; - break; } return message; }; @@ -146571,49 +151737,70 @@ export const Tokens = $root.Tokens = (() => { * @returns {Object.} Plain object */ ReActivateDeviceApprovalRequestToken.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.deviceId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.deviceId = options.longs === String ? "0" : 0; - object.fromUsername = ""; - object.forUsername = ""; - if (options.bytes === String) - object.accountUid = ""; + object.deviceId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.deviceId = options.longs === String ? '0' : 0; + object.fromUsername = ''; + object.forUsername = ''; + if (options.bytes === String) object.accountUid = ''; else { object.accountUid = []; - if (options.bytes !== Array) - object.accountUid = $util.newBuffer(object.accountUid); + if (options.bytes !== Array) object.accountUid = $util.newBuffer(object.accountUid); } if ($util.Long) { let long = new $util.Long(0, 0, false); - object.requestTimeStamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.requestTimeStamp = options.longs === String ? "0" : 0; - object.supportedLanguage = options.enums === String ? "ENGLISH" : 0; + object.requestTimeStamp = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.requestTimeStamp = options.longs === String ? '0' : 0; + object.supportedLanguage = options.enums === String ? 'ENGLISH' : 0; } - if (message.deviceId != null && message.hasOwnProperty("deviceId")) - if (typeof message.deviceId === "number") + if (message.deviceId != null && message.hasOwnProperty('deviceId')) + if (typeof message.deviceId === 'number') object.deviceId = options.longs === String ? String(message.deviceId) : message.deviceId; else - object.deviceId = options.longs === String ? $util.Long.prototype.toString.call(message.deviceId) : options.longs === Number ? new $util.LongBits(message.deviceId.low >>> 0, message.deviceId.high >>> 0).toNumber() : message.deviceId; - if (message.fromUsername != null && message.hasOwnProperty("fromUsername")) + object.deviceId = + options.longs === String + ? $util.Long.prototype.toString.call(message.deviceId) + : options.longs === Number + ? new $util.LongBits(message.deviceId.low >>> 0, message.deviceId.high >>> 0).toNumber() + : message.deviceId; + if (message.fromUsername != null && message.hasOwnProperty('fromUsername')) object.fromUsername = message.fromUsername; - if (message.forUsername != null && message.hasOwnProperty("forUsername")) + if (message.forUsername != null && message.hasOwnProperty('forUsername')) object.forUsername = message.forUsername; - if (message.accountUid != null && message.hasOwnProperty("accountUid")) - object.accountUid = options.bytes === String ? $util.base64.encode(message.accountUid, 0, message.accountUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.accountUid) : message.accountUid; - if (message.requestTimeStamp != null && message.hasOwnProperty("requestTimeStamp")) - if (typeof message.requestTimeStamp === "number") - object.requestTimeStamp = options.longs === String ? String(message.requestTimeStamp) : message.requestTimeStamp; + if (message.accountUid != null && message.hasOwnProperty('accountUid')) + object.accountUid = + options.bytes === String + ? $util.base64.encode(message.accountUid, 0, message.accountUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.accountUid) + : message.accountUid; + if (message.requestTimeStamp != null && message.hasOwnProperty('requestTimeStamp')) + if (typeof message.requestTimeStamp === 'number') + object.requestTimeStamp = + options.longs === String ? String(message.requestTimeStamp) : message.requestTimeStamp; else - object.requestTimeStamp = options.longs === String ? $util.Long.prototype.toString.call(message.requestTimeStamp) : options.longs === Number ? new $util.LongBits(message.requestTimeStamp.low >>> 0, message.requestTimeStamp.high >>> 0).toNumber() : message.requestTimeStamp; - if (message.supportedLanguage != null && message.hasOwnProperty("supportedLanguage")) - object.supportedLanguage = options.enums === String ? $root.Authentication.SupportedLanguage[message.supportedLanguage] === undefined ? message.supportedLanguage : $root.Authentication.SupportedLanguage[message.supportedLanguage] : message.supportedLanguage; + object.requestTimeStamp = + options.longs === String + ? $util.Long.prototype.toString.call(message.requestTimeStamp) + : options.longs === Number + ? new $util.LongBits( + message.requestTimeStamp.low >>> 0, + message.requestTimeStamp.high >>> 0 + ).toNumber() + : message.requestTimeStamp; + if (message.supportedLanguage != null && message.hasOwnProperty('supportedLanguage')) + object.supportedLanguage = + options.enums === String + ? $root.Authentication.SupportedLanguage[message.supportedLanguage] === undefined + ? message.supportedLanguage + : $root.Authentication.SupportedLanguage[message.supportedLanguage] + : message.supportedLanguage; return object; }; @@ -146638,16 +151825,15 @@ export const Tokens = $root.Tokens = (() => { */ ReActivateDeviceApprovalRequestToken.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Tokens.ReActivateDeviceApprovalRequestToken"; + return typeUrlPrefix + '/Tokens.ReActivateDeviceApprovalRequestToken'; }; return ReActivateDeviceApprovalRequestToken; })(); - Tokens.CreateUserToken = (function() { - + Tokens.CreateUserToken = (function () { /** * Properties of a CreateUserToken. * @memberof Tokens @@ -146672,8 +151858,7 @@ export const Tokens = $root.Tokens = (() => { function CreateUserToken(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -146690,7 +151875,7 @@ export const Tokens = $root.Tokens = (() => { * @memberof Tokens.CreateUserToken * @instance */ - CreateUserToken.prototype.verificationCode = ""; + CreateUserToken.prototype.verificationCode = ''; /** * CreateUserToken requestTimeStamp. @@ -146698,7 +151883,7 @@ export const Tokens = $root.Tokens = (() => { * @memberof Tokens.CreateUserToken * @instance */ - CreateUserToken.prototype.requestTimeStamp = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + CreateUserToken.prototype.requestTimeStamp = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * CreateUserToken supportedLanguage. @@ -146714,7 +151899,7 @@ export const Tokens = $root.Tokens = (() => { * @memberof Tokens.CreateUserToken * @instance */ - CreateUserToken.prototype.remoteAddress = ""; + CreateUserToken.prototype.remoteAddress = ''; /** * CreateUserToken messageSessionUid. @@ -146730,7 +151915,7 @@ export const Tokens = $root.Tokens = (() => { * @memberof Tokens.CreateUserToken * @instance */ - CreateUserToken.prototype.deviceId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + CreateUserToken.prototype.deviceId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * Creates a new CreateUserToken instance using the specified properties. @@ -146754,22 +151939,21 @@ export const Tokens = $root.Tokens = (() => { * @returns {$protobuf.Writer} Writer */ CreateUserToken.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.createUserRequestId != null && Object.hasOwnProperty.call(message, "createUserRequestId")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.createUserRequestId); - if (message.verificationCode != null && Object.hasOwnProperty.call(message, "verificationCode")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.verificationCode); - if (message.requestTimeStamp != null && Object.hasOwnProperty.call(message, "requestTimeStamp")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.requestTimeStamp); - if (message.supportedLanguage != null && Object.hasOwnProperty.call(message, "supportedLanguage")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.supportedLanguage); - if (message.remoteAddress != null && Object.hasOwnProperty.call(message, "remoteAddress")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.remoteAddress); - if (message.messageSessionUid != null && Object.hasOwnProperty.call(message, "messageSessionUid")) - writer.uint32(/* id 6, wireType 2 =*/50).bytes(message.messageSessionUid); - if (message.deviceId != null && Object.hasOwnProperty.call(message, "deviceId")) - writer.uint32(/* id 7, wireType 0 =*/56).int64(message.deviceId); + if (!writer) writer = $Writer.create(); + if (message.createUserRequestId != null && Object.hasOwnProperty.call(message, 'createUserRequestId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int32(message.createUserRequestId); + if (message.verificationCode != null && Object.hasOwnProperty.call(message, 'verificationCode')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.verificationCode); + if (message.requestTimeStamp != null && Object.hasOwnProperty.call(message, 'requestTimeStamp')) + writer.uint32(/* id 3, wireType 0 =*/ 24).int64(message.requestTimeStamp); + if (message.supportedLanguage != null && Object.hasOwnProperty.call(message, 'supportedLanguage')) + writer.uint32(/* id 4, wireType 0 =*/ 32).int32(message.supportedLanguage); + if (message.remoteAddress != null && Object.hasOwnProperty.call(message, 'remoteAddress')) + writer.uint32(/* id 5, wireType 2 =*/ 42).string(message.remoteAddress); + if (message.messageSessionUid != null && Object.hasOwnProperty.call(message, 'messageSessionUid')) + writer.uint32(/* id 6, wireType 2 =*/ 50).bytes(message.messageSessionUid); + if (message.deviceId != null && Object.hasOwnProperty.call(message, 'deviceId')) + writer.uint32(/* id 7, wireType 0 =*/ 56).int64(message.deviceId); return writer; }; @@ -146798,43 +151982,43 @@ export const Tokens = $root.Tokens = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ CreateUserToken.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Tokens.CreateUserToken(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Tokens.CreateUserToken(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.createUserRequestId = reader.int32(); break; } - case 2: { + case 2: { message.verificationCode = reader.string(); break; } - case 3: { + case 3: { message.requestTimeStamp = reader.int64(); break; } - case 4: { + case 4: { message.supportedLanguage = reader.int32(); break; } - case 5: { + case 5: { message.remoteAddress = reader.string(); break; } - case 6: { + case 6: { message.messageSessionUid = reader.bytes(); break; } - case 7: { + case 7: { message.deviceId = reader.int64(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -146851,8 +152035,7 @@ export const Tokens = $root.Tokens = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ CreateUserToken.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -146865,199 +152048,216 @@ export const Tokens = $root.Tokens = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ CreateUserToken.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.createUserRequestId != null && message.hasOwnProperty("createUserRequestId")) - if (!$util.isInteger(message.createUserRequestId)) - return "createUserRequestId: integer expected"; - if (message.verificationCode != null && message.hasOwnProperty("verificationCode")) - if (!$util.isString(message.verificationCode)) - return "verificationCode: string expected"; - if (message.requestTimeStamp != null && message.hasOwnProperty("requestTimeStamp")) - if (!$util.isInteger(message.requestTimeStamp) && !(message.requestTimeStamp && $util.isInteger(message.requestTimeStamp.low) && $util.isInteger(message.requestTimeStamp.high))) - return "requestTimeStamp: integer|Long expected"; - if (message.supportedLanguage != null && message.hasOwnProperty("supportedLanguage")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.createUserRequestId != null && message.hasOwnProperty('createUserRequestId')) + if (!$util.isInteger(message.createUserRequestId)) return 'createUserRequestId: integer expected'; + if (message.verificationCode != null && message.hasOwnProperty('verificationCode')) + if (!$util.isString(message.verificationCode)) return 'verificationCode: string expected'; + if (message.requestTimeStamp != null && message.hasOwnProperty('requestTimeStamp')) + if ( + !$util.isInteger(message.requestTimeStamp) && + !( + message.requestTimeStamp && + $util.isInteger(message.requestTimeStamp.low) && + $util.isInteger(message.requestTimeStamp.high) + ) + ) + return 'requestTimeStamp: integer|Long expected'; + if (message.supportedLanguage != null && message.hasOwnProperty('supportedLanguage')) switch (message.supportedLanguage) { + default: + return 'supportedLanguage: enum value expected'; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + case 10: + case 11: + case 12: + case 13: + case 14: + case 15: + case 16: + case 17: + case 18: + case 19: + case 20: + case 21: + case 22: + break; + } + if (message.remoteAddress != null && message.hasOwnProperty('remoteAddress')) + if (!$util.isString(message.remoteAddress)) return 'remoteAddress: string expected'; + if (message.messageSessionUid != null && message.hasOwnProperty('messageSessionUid')) + if ( + !( + (message.messageSessionUid && typeof message.messageSessionUid.length === 'number') || + $util.isString(message.messageSessionUid) + ) + ) + return 'messageSessionUid: buffer expected'; + if (message.deviceId != null && message.hasOwnProperty('deviceId')) + if ( + !$util.isInteger(message.deviceId) && + !( + message.deviceId && + $util.isInteger(message.deviceId.low) && + $util.isInteger(message.deviceId.high) + ) + ) + return 'deviceId: integer|Long expected'; + return null; + }; + + /** + * Creates a CreateUserToken message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof Tokens.CreateUserToken + * @static + * @param {Object.} object Plain object + * @returns {Tokens.CreateUserToken} CreateUserToken + */ + CreateUserToken.fromObject = function fromObject(object) { + if (object instanceof $root.Tokens.CreateUserToken) return object; + let message = new $root.Tokens.CreateUserToken(); + if (object.createUserRequestId != null) message.createUserRequestId = object.createUserRequestId | 0; + if (object.verificationCode != null) message.verificationCode = String(object.verificationCode); + if (object.requestTimeStamp != null) + if ($util.Long) + (message.requestTimeStamp = $util.Long.fromValue(object.requestTimeStamp)).unsigned = false; + else if (typeof object.requestTimeStamp === 'string') + message.requestTimeStamp = parseInt(object.requestTimeStamp, 10); + else if (typeof object.requestTimeStamp === 'number') + message.requestTimeStamp = object.requestTimeStamp; + else if (typeof object.requestTimeStamp === 'object') + message.requestTimeStamp = new $util.LongBits( + object.requestTimeStamp.low >>> 0, + object.requestTimeStamp.high >>> 0 + ).toNumber(); + switch (object.supportedLanguage) { default: - return "supportedLanguage: enum value expected"; + if (typeof object.supportedLanguage === 'number') { + message.supportedLanguage = object.supportedLanguage; + break; + } + break; + case 'ENGLISH': case 0: + message.supportedLanguage = 0; + break; + case 'ARABIC': case 1: + message.supportedLanguage = 1; + break; + case 'BRITISH': case 2: + message.supportedLanguage = 2; + break; + case 'CHINESE': case 3: + message.supportedLanguage = 3; + break; + case 'CHINESE_HONG_KONG': case 4: + message.supportedLanguage = 4; + break; + case 'CHINESE_TAIWAN': case 5: + message.supportedLanguage = 5; + break; + case 'DUTCH': case 6: + message.supportedLanguage = 6; + break; + case 'FRENCH': case 7: + message.supportedLanguage = 7; + break; + case 'GERMAN': case 8: + message.supportedLanguage = 8; + break; + case 'GREEK': case 9: + message.supportedLanguage = 9; + break; + case 'HEBREW': case 10: + message.supportedLanguage = 10; + break; + case 'ITALIAN': case 11: + message.supportedLanguage = 11; + break; + case 'JAPANESE': case 12: + message.supportedLanguage = 12; + break; + case 'KOREAN': case 13: + message.supportedLanguage = 13; + break; + case 'POLISH': case 14: + message.supportedLanguage = 14; + break; + case 'PORTUGUESE': case 15: + message.supportedLanguage = 15; + break; + case 'PORTUGUESE_BRAZIL': case 16: + message.supportedLanguage = 16; + break; + case 'ROMANIAN': case 17: + message.supportedLanguage = 17; + break; + case 'RUSSIAN': case 18: + message.supportedLanguage = 18; + break; + case 'SLOVAK': case 19: + message.supportedLanguage = 19; + break; + case 'SPANISH': case 20: + message.supportedLanguage = 20; + break; + case 'FINNISH': case 21: + message.supportedLanguage = 21; + break; + case 'SWEDISH': case 22: + message.supportedLanguage = 22; break; - } - if (message.remoteAddress != null && message.hasOwnProperty("remoteAddress")) - if (!$util.isString(message.remoteAddress)) - return "remoteAddress: string expected"; - if (message.messageSessionUid != null && message.hasOwnProperty("messageSessionUid")) - if (!(message.messageSessionUid && typeof message.messageSessionUid.length === "number" || $util.isString(message.messageSessionUid))) - return "messageSessionUid: buffer expected"; - if (message.deviceId != null && message.hasOwnProperty("deviceId")) - if (!$util.isInteger(message.deviceId) && !(message.deviceId && $util.isInteger(message.deviceId.low) && $util.isInteger(message.deviceId.high))) - return "deviceId: integer|Long expected"; - return null; - }; - - /** - * Creates a CreateUserToken message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof Tokens.CreateUserToken - * @static - * @param {Object.} object Plain object - * @returns {Tokens.CreateUserToken} CreateUserToken - */ - CreateUserToken.fromObject = function fromObject(object) { - if (object instanceof $root.Tokens.CreateUserToken) - return object; - let message = new $root.Tokens.CreateUserToken(); - if (object.createUserRequestId != null) - message.createUserRequestId = object.createUserRequestId | 0; - if (object.verificationCode != null) - message.verificationCode = String(object.verificationCode); - if (object.requestTimeStamp != null) - if ($util.Long) - (message.requestTimeStamp = $util.Long.fromValue(object.requestTimeStamp)).unsigned = false; - else if (typeof object.requestTimeStamp === "string") - message.requestTimeStamp = parseInt(object.requestTimeStamp, 10); - else if (typeof object.requestTimeStamp === "number") - message.requestTimeStamp = object.requestTimeStamp; - else if (typeof object.requestTimeStamp === "object") - message.requestTimeStamp = new $util.LongBits(object.requestTimeStamp.low >>> 0, object.requestTimeStamp.high >>> 0).toNumber(); - switch (object.supportedLanguage) { - default: - if (typeof object.supportedLanguage === "number") { - message.supportedLanguage = object.supportedLanguage; - break; - } - break; - case "ENGLISH": - case 0: - message.supportedLanguage = 0; - break; - case "ARABIC": - case 1: - message.supportedLanguage = 1; - break; - case "BRITISH": - case 2: - message.supportedLanguage = 2; - break; - case "CHINESE": - case 3: - message.supportedLanguage = 3; - break; - case "CHINESE_HONG_KONG": - case 4: - message.supportedLanguage = 4; - break; - case "CHINESE_TAIWAN": - case 5: - message.supportedLanguage = 5; - break; - case "DUTCH": - case 6: - message.supportedLanguage = 6; - break; - case "FRENCH": - case 7: - message.supportedLanguage = 7; - break; - case "GERMAN": - case 8: - message.supportedLanguage = 8; - break; - case "GREEK": - case 9: - message.supportedLanguage = 9; - break; - case "HEBREW": - case 10: - message.supportedLanguage = 10; - break; - case "ITALIAN": - case 11: - message.supportedLanguage = 11; - break; - case "JAPANESE": - case 12: - message.supportedLanguage = 12; - break; - case "KOREAN": - case 13: - message.supportedLanguage = 13; - break; - case "POLISH": - case 14: - message.supportedLanguage = 14; - break; - case "PORTUGUESE": - case 15: - message.supportedLanguage = 15; - break; - case "PORTUGUESE_BRAZIL": - case 16: - message.supportedLanguage = 16; - break; - case "ROMANIAN": - case 17: - message.supportedLanguage = 17; - break; - case "RUSSIAN": - case 18: - message.supportedLanguage = 18; - break; - case "SLOVAK": - case 19: - message.supportedLanguage = 19; - break; - case "SPANISH": - case 20: - message.supportedLanguage = 20; - break; - case "FINNISH": - case 21: - message.supportedLanguage = 21; - break; - case "SWEDISH": - case 22: - message.supportedLanguage = 22; - break; - } - if (object.remoteAddress != null) - message.remoteAddress = String(object.remoteAddress); + } + if (object.remoteAddress != null) message.remoteAddress = String(object.remoteAddress); if (object.messageSessionUid != null) - if (typeof object.messageSessionUid === "string") - $util.base64.decode(object.messageSessionUid, message.messageSessionUid = $util.newBuffer($util.base64.length(object.messageSessionUid)), 0); - else if (object.messageSessionUid.length >= 0) - message.messageSessionUid = object.messageSessionUid; + if (typeof object.messageSessionUid === 'string') + $util.base64.decode( + object.messageSessionUid, + (message.messageSessionUid = $util.newBuffer($util.base64.length(object.messageSessionUid))), + 0 + ); + else if (object.messageSessionUid.length >= 0) message.messageSessionUid = object.messageSessionUid; if (object.deviceId != null) - if ($util.Long) - (message.deviceId = $util.Long.fromValue(object.deviceId)).unsigned = false; - else if (typeof object.deviceId === "string") - message.deviceId = parseInt(object.deviceId, 10); - else if (typeof object.deviceId === "number") - message.deviceId = object.deviceId; - else if (typeof object.deviceId === "object") - message.deviceId = new $util.LongBits(object.deviceId.low >>> 0, object.deviceId.high >>> 0).toNumber(); + if ($util.Long) (message.deviceId = $util.Long.fromValue(object.deviceId)).unsigned = false; + else if (typeof object.deviceId === 'string') message.deviceId = parseInt(object.deviceId, 10); + else if (typeof object.deviceId === 'number') message.deviceId = object.deviceId; + else if (typeof object.deviceId === 'object') + message.deviceId = new $util.LongBits( + object.deviceId.low >>> 0, + object.deviceId.high >>> 0 + ).toNumber(); return message; }; @@ -147071,52 +152271,73 @@ export const Tokens = $root.Tokens = (() => { * @returns {Object.} Plain object */ CreateUserToken.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { object.createUserRequestId = 0; - object.verificationCode = ""; + object.verificationCode = ''; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.requestTimeStamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.requestTimeStamp = options.longs === String ? "0" : 0; - object.supportedLanguage = options.enums === String ? "ENGLISH" : 0; - object.remoteAddress = ""; - if (options.bytes === String) - object.messageSessionUid = ""; + object.requestTimeStamp = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.requestTimeStamp = options.longs === String ? '0' : 0; + object.supportedLanguage = options.enums === String ? 'ENGLISH' : 0; + object.remoteAddress = ''; + if (options.bytes === String) object.messageSessionUid = ''; else { object.messageSessionUid = []; - if (options.bytes !== Array) - object.messageSessionUid = $util.newBuffer(object.messageSessionUid); + if (options.bytes !== Array) object.messageSessionUid = $util.newBuffer(object.messageSessionUid); } if ($util.Long) { let long = new $util.Long(0, 0, false); - object.deviceId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.deviceId = options.longs === String ? "0" : 0; + object.deviceId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.deviceId = options.longs === String ? '0' : 0; } - if (message.createUserRequestId != null && message.hasOwnProperty("createUserRequestId")) + if (message.createUserRequestId != null && message.hasOwnProperty('createUserRequestId')) object.createUserRequestId = message.createUserRequestId; - if (message.verificationCode != null && message.hasOwnProperty("verificationCode")) + if (message.verificationCode != null && message.hasOwnProperty('verificationCode')) object.verificationCode = message.verificationCode; - if (message.requestTimeStamp != null && message.hasOwnProperty("requestTimeStamp")) - if (typeof message.requestTimeStamp === "number") - object.requestTimeStamp = options.longs === String ? String(message.requestTimeStamp) : message.requestTimeStamp; + if (message.requestTimeStamp != null && message.hasOwnProperty('requestTimeStamp')) + if (typeof message.requestTimeStamp === 'number') + object.requestTimeStamp = + options.longs === String ? String(message.requestTimeStamp) : message.requestTimeStamp; else - object.requestTimeStamp = options.longs === String ? $util.Long.prototype.toString.call(message.requestTimeStamp) : options.longs === Number ? new $util.LongBits(message.requestTimeStamp.low >>> 0, message.requestTimeStamp.high >>> 0).toNumber() : message.requestTimeStamp; - if (message.supportedLanguage != null && message.hasOwnProperty("supportedLanguage")) - object.supportedLanguage = options.enums === String ? $root.Authentication.SupportedLanguage[message.supportedLanguage] === undefined ? message.supportedLanguage : $root.Authentication.SupportedLanguage[message.supportedLanguage] : message.supportedLanguage; - if (message.remoteAddress != null && message.hasOwnProperty("remoteAddress")) + object.requestTimeStamp = + options.longs === String + ? $util.Long.prototype.toString.call(message.requestTimeStamp) + : options.longs === Number + ? new $util.LongBits( + message.requestTimeStamp.low >>> 0, + message.requestTimeStamp.high >>> 0 + ).toNumber() + : message.requestTimeStamp; + if (message.supportedLanguage != null && message.hasOwnProperty('supportedLanguage')) + object.supportedLanguage = + options.enums === String + ? $root.Authentication.SupportedLanguage[message.supportedLanguage] === undefined + ? message.supportedLanguage + : $root.Authentication.SupportedLanguage[message.supportedLanguage] + : message.supportedLanguage; + if (message.remoteAddress != null && message.hasOwnProperty('remoteAddress')) object.remoteAddress = message.remoteAddress; - if (message.messageSessionUid != null && message.hasOwnProperty("messageSessionUid")) - object.messageSessionUid = options.bytes === String ? $util.base64.encode(message.messageSessionUid, 0, message.messageSessionUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.messageSessionUid) : message.messageSessionUid; - if (message.deviceId != null && message.hasOwnProperty("deviceId")) - if (typeof message.deviceId === "number") + if (message.messageSessionUid != null && message.hasOwnProperty('messageSessionUid')) + object.messageSessionUid = + options.bytes === String + ? $util.base64.encode(message.messageSessionUid, 0, message.messageSessionUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.messageSessionUid) + : message.messageSessionUid; + if (message.deviceId != null && message.hasOwnProperty('deviceId')) + if (typeof message.deviceId === 'number') object.deviceId = options.longs === String ? String(message.deviceId) : message.deviceId; else - object.deviceId = options.longs === String ? $util.Long.prototype.toString.call(message.deviceId) : options.longs === Number ? new $util.LongBits(message.deviceId.low >>> 0, message.deviceId.high >>> 0).toNumber() : message.deviceId; + object.deviceId = + options.longs === String + ? $util.Long.prototype.toString.call(message.deviceId) + : options.longs === Number + ? new $util.LongBits(message.deviceId.low >>> 0, message.deviceId.high >>> 0).toNumber() + : message.deviceId; return object; }; @@ -147141,16 +152362,15 @@ export const Tokens = $root.Tokens = (() => { */ CreateUserToken.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Tokens.CreateUserToken"; + return typeUrlPrefix + '/Tokens.CreateUserToken'; }; return CreateUserToken; })(); - Tokens.DeleteUserToken = (function() { - + Tokens.DeleteUserToken = (function () { /** * Properties of a DeleteUserToken. * @memberof Tokens @@ -147173,8 +152393,7 @@ export const Tokens = $root.Tokens = (() => { function DeleteUserToken(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -147191,7 +152410,7 @@ export const Tokens = $root.Tokens = (() => { * @memberof Tokens.DeleteUserToken * @instance */ - DeleteUserToken.prototype.username = ""; + DeleteUserToken.prototype.username = ''; /** * DeleteUserToken reason. @@ -147199,7 +152418,7 @@ export const Tokens = $root.Tokens = (() => { * @memberof Tokens.DeleteUserToken * @instance */ - DeleteUserToken.prototype.reason = ""; + DeleteUserToken.prototype.reason = ''; /** * DeleteUserToken requestTimeStamp. @@ -147207,7 +152426,7 @@ export const Tokens = $root.Tokens = (() => { * @memberof Tokens.DeleteUserToken * @instance */ - DeleteUserToken.prototype.requestTimeStamp = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + DeleteUserToken.prototype.requestTimeStamp = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * DeleteUserToken supportedLanguage. @@ -147239,18 +152458,17 @@ export const Tokens = $root.Tokens = (() => { * @returns {$protobuf.Writer} Writer */ DeleteUserToken.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.userIdForDelete != null && Object.hasOwnProperty.call(message, "userIdForDelete")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.userIdForDelete); - if (message.username != null && Object.hasOwnProperty.call(message, "username")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.username); - if (message.reason != null && Object.hasOwnProperty.call(message, "reason")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.reason); - if (message.requestTimeStamp != null && Object.hasOwnProperty.call(message, "requestTimeStamp")) - writer.uint32(/* id 4, wireType 0 =*/32).int64(message.requestTimeStamp); - if (message.supportedLanguage != null && Object.hasOwnProperty.call(message, "supportedLanguage")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.supportedLanguage); + if (!writer) writer = $Writer.create(); + if (message.userIdForDelete != null && Object.hasOwnProperty.call(message, 'userIdForDelete')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int32(message.userIdForDelete); + if (message.username != null && Object.hasOwnProperty.call(message, 'username')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.username); + if (message.reason != null && Object.hasOwnProperty.call(message, 'reason')) + writer.uint32(/* id 3, wireType 2 =*/ 26).string(message.reason); + if (message.requestTimeStamp != null && Object.hasOwnProperty.call(message, 'requestTimeStamp')) + writer.uint32(/* id 4, wireType 0 =*/ 32).int64(message.requestTimeStamp); + if (message.supportedLanguage != null && Object.hasOwnProperty.call(message, 'supportedLanguage')) + writer.uint32(/* id 5, wireType 0 =*/ 40).int32(message.supportedLanguage); return writer; }; @@ -147279,35 +152497,35 @@ export const Tokens = $root.Tokens = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ DeleteUserToken.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Tokens.DeleteUserToken(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Tokens.DeleteUserToken(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.userIdForDelete = reader.int32(); break; } - case 2: { + case 2: { message.username = reader.string(); break; } - case 3: { + case 3: { message.reason = reader.string(); break; } - case 4: { + case 4: { message.requestTimeStamp = reader.int64(); break; } - case 5: { + case 5: { message.supportedLanguage = reader.int32(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -147324,8 +152542,7 @@ export const Tokens = $root.Tokens = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ DeleteUserToken.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -147338,178 +152555,180 @@ export const Tokens = $root.Tokens = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ DeleteUserToken.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.userIdForDelete != null && message.hasOwnProperty("userIdForDelete")) - if (!$util.isInteger(message.userIdForDelete)) - return "userIdForDelete: integer expected"; - if (message.username != null && message.hasOwnProperty("username")) - if (!$util.isString(message.username)) - return "username: string expected"; - if (message.reason != null && message.hasOwnProperty("reason")) - if (!$util.isString(message.reason)) - return "reason: string expected"; - if (message.requestTimeStamp != null && message.hasOwnProperty("requestTimeStamp")) - if (!$util.isInteger(message.requestTimeStamp) && !(message.requestTimeStamp && $util.isInteger(message.requestTimeStamp.low) && $util.isInteger(message.requestTimeStamp.high))) - return "requestTimeStamp: integer|Long expected"; - if (message.supportedLanguage != null && message.hasOwnProperty("supportedLanguage")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.userIdForDelete != null && message.hasOwnProperty('userIdForDelete')) + if (!$util.isInteger(message.userIdForDelete)) return 'userIdForDelete: integer expected'; + if (message.username != null && message.hasOwnProperty('username')) + if (!$util.isString(message.username)) return 'username: string expected'; + if (message.reason != null && message.hasOwnProperty('reason')) + if (!$util.isString(message.reason)) return 'reason: string expected'; + if (message.requestTimeStamp != null && message.hasOwnProperty('requestTimeStamp')) + if ( + !$util.isInteger(message.requestTimeStamp) && + !( + message.requestTimeStamp && + $util.isInteger(message.requestTimeStamp.low) && + $util.isInteger(message.requestTimeStamp.high) + ) + ) + return 'requestTimeStamp: integer|Long expected'; + if (message.supportedLanguage != null && message.hasOwnProperty('supportedLanguage')) switch (message.supportedLanguage) { + default: + return 'supportedLanguage: enum value expected'; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + case 10: + case 11: + case 12: + case 13: + case 14: + case 15: + case 16: + case 17: + case 18: + case 19: + case 20: + case 21: + case 22: + break; + } + return null; + }; + + /** + * Creates a DeleteUserToken message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof Tokens.DeleteUserToken + * @static + * @param {Object.} object Plain object + * @returns {Tokens.DeleteUserToken} DeleteUserToken + */ + DeleteUserToken.fromObject = function fromObject(object) { + if (object instanceof $root.Tokens.DeleteUserToken) return object; + let message = new $root.Tokens.DeleteUserToken(); + if (object.userIdForDelete != null) message.userIdForDelete = object.userIdForDelete | 0; + if (object.username != null) message.username = String(object.username); + if (object.reason != null) message.reason = String(object.reason); + if (object.requestTimeStamp != null) + if ($util.Long) + (message.requestTimeStamp = $util.Long.fromValue(object.requestTimeStamp)).unsigned = false; + else if (typeof object.requestTimeStamp === 'string') + message.requestTimeStamp = parseInt(object.requestTimeStamp, 10); + else if (typeof object.requestTimeStamp === 'number') + message.requestTimeStamp = object.requestTimeStamp; + else if (typeof object.requestTimeStamp === 'object') + message.requestTimeStamp = new $util.LongBits( + object.requestTimeStamp.low >>> 0, + object.requestTimeStamp.high >>> 0 + ).toNumber(); + switch (object.supportedLanguage) { default: - return "supportedLanguage: enum value expected"; + if (typeof object.supportedLanguage === 'number') { + message.supportedLanguage = object.supportedLanguage; + break; + } + break; + case 'ENGLISH': case 0: + message.supportedLanguage = 0; + break; + case 'ARABIC': case 1: + message.supportedLanguage = 1; + break; + case 'BRITISH': case 2: + message.supportedLanguage = 2; + break; + case 'CHINESE': case 3: + message.supportedLanguage = 3; + break; + case 'CHINESE_HONG_KONG': case 4: + message.supportedLanguage = 4; + break; + case 'CHINESE_TAIWAN': case 5: + message.supportedLanguage = 5; + break; + case 'DUTCH': case 6: + message.supportedLanguage = 6; + break; + case 'FRENCH': case 7: + message.supportedLanguage = 7; + break; + case 'GERMAN': case 8: + message.supportedLanguage = 8; + break; + case 'GREEK': case 9: + message.supportedLanguage = 9; + break; + case 'HEBREW': case 10: + message.supportedLanguage = 10; + break; + case 'ITALIAN': case 11: + message.supportedLanguage = 11; + break; + case 'JAPANESE': case 12: + message.supportedLanguage = 12; + break; + case 'KOREAN': case 13: + message.supportedLanguage = 13; + break; + case 'POLISH': case 14: + message.supportedLanguage = 14; + break; + case 'PORTUGUESE': case 15: + message.supportedLanguage = 15; + break; + case 'PORTUGUESE_BRAZIL': case 16: + message.supportedLanguage = 16; + break; + case 'ROMANIAN': case 17: + message.supportedLanguage = 17; + break; + case 'RUSSIAN': case 18: + message.supportedLanguage = 18; + break; + case 'SLOVAK': case 19: + message.supportedLanguage = 19; + break; + case 'SPANISH': case 20: + message.supportedLanguage = 20; + break; + case 'FINNISH': case 21: + message.supportedLanguage = 21; + break; + case 'SWEDISH': case 22: + message.supportedLanguage = 22; break; - } - return null; - }; - - /** - * Creates a DeleteUserToken message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof Tokens.DeleteUserToken - * @static - * @param {Object.} object Plain object - * @returns {Tokens.DeleteUserToken} DeleteUserToken - */ - DeleteUserToken.fromObject = function fromObject(object) { - if (object instanceof $root.Tokens.DeleteUserToken) - return object; - let message = new $root.Tokens.DeleteUserToken(); - if (object.userIdForDelete != null) - message.userIdForDelete = object.userIdForDelete | 0; - if (object.username != null) - message.username = String(object.username); - if (object.reason != null) - message.reason = String(object.reason); - if (object.requestTimeStamp != null) - if ($util.Long) - (message.requestTimeStamp = $util.Long.fromValue(object.requestTimeStamp)).unsigned = false; - else if (typeof object.requestTimeStamp === "string") - message.requestTimeStamp = parseInt(object.requestTimeStamp, 10); - else if (typeof object.requestTimeStamp === "number") - message.requestTimeStamp = object.requestTimeStamp; - else if (typeof object.requestTimeStamp === "object") - message.requestTimeStamp = new $util.LongBits(object.requestTimeStamp.low >>> 0, object.requestTimeStamp.high >>> 0).toNumber(); - switch (object.supportedLanguage) { - default: - if (typeof object.supportedLanguage === "number") { - message.supportedLanguage = object.supportedLanguage; - break; - } - break; - case "ENGLISH": - case 0: - message.supportedLanguage = 0; - break; - case "ARABIC": - case 1: - message.supportedLanguage = 1; - break; - case "BRITISH": - case 2: - message.supportedLanguage = 2; - break; - case "CHINESE": - case 3: - message.supportedLanguage = 3; - break; - case "CHINESE_HONG_KONG": - case 4: - message.supportedLanguage = 4; - break; - case "CHINESE_TAIWAN": - case 5: - message.supportedLanguage = 5; - break; - case "DUTCH": - case 6: - message.supportedLanguage = 6; - break; - case "FRENCH": - case 7: - message.supportedLanguage = 7; - break; - case "GERMAN": - case 8: - message.supportedLanguage = 8; - break; - case "GREEK": - case 9: - message.supportedLanguage = 9; - break; - case "HEBREW": - case 10: - message.supportedLanguage = 10; - break; - case "ITALIAN": - case 11: - message.supportedLanguage = 11; - break; - case "JAPANESE": - case 12: - message.supportedLanguage = 12; - break; - case "KOREAN": - case 13: - message.supportedLanguage = 13; - break; - case "POLISH": - case 14: - message.supportedLanguage = 14; - break; - case "PORTUGUESE": - case 15: - message.supportedLanguage = 15; - break; - case "PORTUGUESE_BRAZIL": - case 16: - message.supportedLanguage = 16; - break; - case "ROMANIAN": - case 17: - message.supportedLanguage = 17; - break; - case "RUSSIAN": - case 18: - message.supportedLanguage = 18; - break; - case "SLOVAK": - case 19: - message.supportedLanguage = 19; - break; - case "SPANISH": - case 20: - message.supportedLanguage = 20; - break; - case "FINNISH": - case 21: - message.supportedLanguage = 21; - break; - case "SWEDISH": - case 22: - message.supportedLanguage = 22; - break; } return message; }; @@ -147524,33 +152743,44 @@ export const Tokens = $root.Tokens = (() => { * @returns {Object.} Plain object */ DeleteUserToken.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { object.userIdForDelete = 0; - object.username = ""; - object.reason = ""; + object.username = ''; + object.reason = ''; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.requestTimeStamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.requestTimeStamp = options.longs === String ? "0" : 0; - object.supportedLanguage = options.enums === String ? "ENGLISH" : 0; + object.requestTimeStamp = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.requestTimeStamp = options.longs === String ? '0' : 0; + object.supportedLanguage = options.enums === String ? 'ENGLISH' : 0; } - if (message.userIdForDelete != null && message.hasOwnProperty("userIdForDelete")) + if (message.userIdForDelete != null && message.hasOwnProperty('userIdForDelete')) object.userIdForDelete = message.userIdForDelete; - if (message.username != null && message.hasOwnProperty("username")) - object.username = message.username; - if (message.reason != null && message.hasOwnProperty("reason")) - object.reason = message.reason; - if (message.requestTimeStamp != null && message.hasOwnProperty("requestTimeStamp")) - if (typeof message.requestTimeStamp === "number") - object.requestTimeStamp = options.longs === String ? String(message.requestTimeStamp) : message.requestTimeStamp; + if (message.username != null && message.hasOwnProperty('username')) object.username = message.username; + if (message.reason != null && message.hasOwnProperty('reason')) object.reason = message.reason; + if (message.requestTimeStamp != null && message.hasOwnProperty('requestTimeStamp')) + if (typeof message.requestTimeStamp === 'number') + object.requestTimeStamp = + options.longs === String ? String(message.requestTimeStamp) : message.requestTimeStamp; else - object.requestTimeStamp = options.longs === String ? $util.Long.prototype.toString.call(message.requestTimeStamp) : options.longs === Number ? new $util.LongBits(message.requestTimeStamp.low >>> 0, message.requestTimeStamp.high >>> 0).toNumber() : message.requestTimeStamp; - if (message.supportedLanguage != null && message.hasOwnProperty("supportedLanguage")) - object.supportedLanguage = options.enums === String ? $root.Authentication.SupportedLanguage[message.supportedLanguage] === undefined ? message.supportedLanguage : $root.Authentication.SupportedLanguage[message.supportedLanguage] : message.supportedLanguage; + object.requestTimeStamp = + options.longs === String + ? $util.Long.prototype.toString.call(message.requestTimeStamp) + : options.longs === Number + ? new $util.LongBits( + message.requestTimeStamp.low >>> 0, + message.requestTimeStamp.high >>> 0 + ).toNumber() + : message.requestTimeStamp; + if (message.supportedLanguage != null && message.hasOwnProperty('supportedLanguage')) + object.supportedLanguage = + options.enums === String + ? $root.Authentication.SupportedLanguage[message.supportedLanguage] === undefined + ? message.supportedLanguage + : $root.Authentication.SupportedLanguage[message.supportedLanguage] + : message.supportedLanguage; return object; }; @@ -147575,9 +152805,9 @@ export const Tokens = $root.Tokens = (() => { */ DeleteUserToken.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Tokens.DeleteUserToken"; + return typeUrlPrefix + '/Tokens.DeleteUserToken'; }; return DeleteUserToken; @@ -147597,22 +152827,22 @@ export const Tokens = $root.Tokens = (() => { * @property {number} DELETE_ACCOUNT_VERIFICATION=7 DELETE_ACCOUNT_VERIFICATION value * @property {number} REACTIVATE_DEVICE_APPROVAL_REQUEST=8 REACTIVATE_DEVICE_APPROVAL_REQUEST value */ - Tokens.ProcessTokenType = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "CHANGE_EMAIL"] = 0; - values[valuesById[1] = "EMAIL_VERIFICATION"] = 1; - values[valuesById[2] = "IP_ADDRESS_VERIFICATION"] = 2; - values[valuesById[3] = "USERNAME_VERIFICATION"] = 3; - values[valuesById[4] = "DEVICE_VERIFICATION"] = 4; - values[valuesById[5] = "CREATE_ACCOUNT_VERIFICATION"] = 5; - values[valuesById[6] = "REDEEM_PERSONAL_LICENSE"] = 6; - values[valuesById[7] = "DELETE_ACCOUNT_VERIFICATION"] = 7; - values[valuesById[8] = "REACTIVATE_DEVICE_APPROVAL_REQUEST"] = 8; + Tokens.ProcessTokenType = (function () { + const valuesById = {}, + values = Object.create(valuesById); + values[(valuesById[0] = 'CHANGE_EMAIL')] = 0; + values[(valuesById[1] = 'EMAIL_VERIFICATION')] = 1; + values[(valuesById[2] = 'IP_ADDRESS_VERIFICATION')] = 2; + values[(valuesById[3] = 'USERNAME_VERIFICATION')] = 3; + values[(valuesById[4] = 'DEVICE_VERIFICATION')] = 4; + values[(valuesById[5] = 'CREATE_ACCOUNT_VERIFICATION')] = 5; + values[(valuesById[6] = 'REDEEM_PERSONAL_LICENSE')] = 6; + values[(valuesById[7] = 'DELETE_ACCOUNT_VERIFICATION')] = 7; + values[(valuesById[8] = 'REACTIVATE_DEVICE_APPROVAL_REQUEST')] = 8; return values; })(); - Tokens.ProcessToken = (function() { - + Tokens.ProcessToken = (function () { /** * Properties of a ProcessToken. * @memberof Tokens @@ -147635,8 +152865,7 @@ export const Tokens = $root.Tokens = (() => { function ProcessToken(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -147661,7 +152890,7 @@ export const Tokens = $root.Tokens = (() => { * @memberof Tokens.ProcessToken * @instance */ - ProcessToken.prototype.creation = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + ProcessToken.prototype.creation = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * ProcessToken supportedLanguage. @@ -147677,7 +152906,7 @@ export const Tokens = $root.Tokens = (() => { * @memberof Tokens.ProcessToken * @instance */ - ProcessToken.prototype.subEnvironment = ""; + ProcessToken.prototype.subEnvironment = ''; /** * Creates a new ProcessToken instance using the specified properties. @@ -147701,18 +152930,17 @@ export const Tokens = $root.Tokens = (() => { * @returns {$protobuf.Writer} Writer */ ProcessToken.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.processTokenType != null && Object.hasOwnProperty.call(message, "processTokenType")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.processTokenType); - if (message.payload != null && Object.hasOwnProperty.call(message, "payload")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.payload); - if (message.creation != null && Object.hasOwnProperty.call(message, "creation")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.creation); - if (message.supportedLanguage != null && Object.hasOwnProperty.call(message, "supportedLanguage")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.supportedLanguage); - if (message.subEnvironment != null && Object.hasOwnProperty.call(message, "subEnvironment")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.subEnvironment); + if (!writer) writer = $Writer.create(); + if (message.processTokenType != null && Object.hasOwnProperty.call(message, 'processTokenType')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int32(message.processTokenType); + if (message.payload != null && Object.hasOwnProperty.call(message, 'payload')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.payload); + if (message.creation != null && Object.hasOwnProperty.call(message, 'creation')) + writer.uint32(/* id 3, wireType 0 =*/ 24).int64(message.creation); + if (message.supportedLanguage != null && Object.hasOwnProperty.call(message, 'supportedLanguage')) + writer.uint32(/* id 4, wireType 0 =*/ 32).int32(message.supportedLanguage); + if (message.subEnvironment != null && Object.hasOwnProperty.call(message, 'subEnvironment')) + writer.uint32(/* id 5, wireType 2 =*/ 42).string(message.subEnvironment); return writer; }; @@ -147741,35 +152969,35 @@ export const Tokens = $root.Tokens = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ProcessToken.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Tokens.ProcessToken(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Tokens.ProcessToken(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.processTokenType = reader.int32(); break; } - case 2: { + case 2: { message.payload = reader.bytes(); break; } - case 3: { + case 3: { message.creation = reader.int64(); break; } - case 4: { + case 4: { message.supportedLanguage = reader.int32(); break; } - case 5: { + case 5: { message.subEnvironment = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -147786,8 +153014,7 @@ export const Tokens = $root.Tokens = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ProcessToken.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -147800,236 +153027,247 @@ export const Tokens = $root.Tokens = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ ProcessToken.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.processTokenType != null && message.hasOwnProperty("processTokenType")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.processTokenType != null && message.hasOwnProperty('processTokenType')) switch (message.processTokenType) { + default: + return 'processTokenType: enum value expected'; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + break; + } + if (message.payload != null && message.hasOwnProperty('payload')) + if ( + !( + (message.payload && typeof message.payload.length === 'number') || + $util.isString(message.payload) + ) + ) + return 'payload: buffer expected'; + if (message.creation != null && message.hasOwnProperty('creation')) + if ( + !$util.isInteger(message.creation) && + !( + message.creation && + $util.isInteger(message.creation.low) && + $util.isInteger(message.creation.high) + ) + ) + return 'creation: integer|Long expected'; + if (message.supportedLanguage != null && message.hasOwnProperty('supportedLanguage')) + switch (message.supportedLanguage) { + default: + return 'supportedLanguage: enum value expected'; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + case 10: + case 11: + case 12: + case 13: + case 14: + case 15: + case 16: + case 17: + case 18: + case 19: + case 20: + case 21: + case 22: + break; + } + if (message.subEnvironment != null && message.hasOwnProperty('subEnvironment')) + if (!$util.isString(message.subEnvironment)) return 'subEnvironment: string expected'; + return null; + }; + + /** + * Creates a ProcessToken message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof Tokens.ProcessToken + * @static + * @param {Object.} object Plain object + * @returns {Tokens.ProcessToken} ProcessToken + */ + ProcessToken.fromObject = function fromObject(object) { + if (object instanceof $root.Tokens.ProcessToken) return object; + let message = new $root.Tokens.ProcessToken(); + switch (object.processTokenType) { default: - return "processTokenType: enum value expected"; + if (typeof object.processTokenType === 'number') { + message.processTokenType = object.processTokenType; + break; + } + break; + case 'CHANGE_EMAIL': case 0: + message.processTokenType = 0; + break; + case 'EMAIL_VERIFICATION': case 1: + message.processTokenType = 1; + break; + case 'IP_ADDRESS_VERIFICATION': case 2: + message.processTokenType = 2; + break; + case 'USERNAME_VERIFICATION': case 3: + message.processTokenType = 3; + break; + case 'DEVICE_VERIFICATION': case 4: + message.processTokenType = 4; + break; + case 'CREATE_ACCOUNT_VERIFICATION': case 5: + message.processTokenType = 5; + break; + case 'REDEEM_PERSONAL_LICENSE': case 6: + message.processTokenType = 6; + break; + case 'DELETE_ACCOUNT_VERIFICATION': case 7: + message.processTokenType = 7; + break; + case 'REACTIVATE_DEVICE_APPROVAL_REQUEST': case 8: + message.processTokenType = 8; break; - } - if (message.payload != null && message.hasOwnProperty("payload")) - if (!(message.payload && typeof message.payload.length === "number" || $util.isString(message.payload))) - return "payload: buffer expected"; - if (message.creation != null && message.hasOwnProperty("creation")) - if (!$util.isInteger(message.creation) && !(message.creation && $util.isInteger(message.creation.low) && $util.isInteger(message.creation.high))) - return "creation: integer|Long expected"; - if (message.supportedLanguage != null && message.hasOwnProperty("supportedLanguage")) - switch (message.supportedLanguage) { + } + if (object.payload != null) + if (typeof object.payload === 'string') + $util.base64.decode( + object.payload, + (message.payload = $util.newBuffer($util.base64.length(object.payload))), + 0 + ); + else if (object.payload.length >= 0) message.payload = object.payload; + if (object.creation != null) + if ($util.Long) (message.creation = $util.Long.fromValue(object.creation)).unsigned = false; + else if (typeof object.creation === 'string') message.creation = parseInt(object.creation, 10); + else if (typeof object.creation === 'number') message.creation = object.creation; + else if (typeof object.creation === 'object') + message.creation = new $util.LongBits( + object.creation.low >>> 0, + object.creation.high >>> 0 + ).toNumber(); + switch (object.supportedLanguage) { default: - return "supportedLanguage: enum value expected"; + if (typeof object.supportedLanguage === 'number') { + message.supportedLanguage = object.supportedLanguage; + break; + } + break; + case 'ENGLISH': case 0: + message.supportedLanguage = 0; + break; + case 'ARABIC': case 1: + message.supportedLanguage = 1; + break; + case 'BRITISH': case 2: + message.supportedLanguage = 2; + break; + case 'CHINESE': case 3: + message.supportedLanguage = 3; + break; + case 'CHINESE_HONG_KONG': case 4: + message.supportedLanguage = 4; + break; + case 'CHINESE_TAIWAN': case 5: + message.supportedLanguage = 5; + break; + case 'DUTCH': case 6: + message.supportedLanguage = 6; + break; + case 'FRENCH': case 7: + message.supportedLanguage = 7; + break; + case 'GERMAN': case 8: + message.supportedLanguage = 8; + break; + case 'GREEK': case 9: + message.supportedLanguage = 9; + break; + case 'HEBREW': case 10: + message.supportedLanguage = 10; + break; + case 'ITALIAN': case 11: + message.supportedLanguage = 11; + break; + case 'JAPANESE': case 12: + message.supportedLanguage = 12; + break; + case 'KOREAN': case 13: + message.supportedLanguage = 13; + break; + case 'POLISH': case 14: + message.supportedLanguage = 14; + break; + case 'PORTUGUESE': case 15: + message.supportedLanguage = 15; + break; + case 'PORTUGUESE_BRAZIL': case 16: + message.supportedLanguage = 16; + break; + case 'ROMANIAN': case 17: + message.supportedLanguage = 17; + break; + case 'RUSSIAN': case 18: + message.supportedLanguage = 18; + break; + case 'SLOVAK': case 19: + message.supportedLanguage = 19; + break; + case 'SPANISH': case 20: + message.supportedLanguage = 20; + break; + case 'FINNISH': case 21: + message.supportedLanguage = 21; + break; + case 'SWEDISH': case 22: + message.supportedLanguage = 22; break; - } - if (message.subEnvironment != null && message.hasOwnProperty("subEnvironment")) - if (!$util.isString(message.subEnvironment)) - return "subEnvironment: string expected"; - return null; - }; - - /** - * Creates a ProcessToken message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof Tokens.ProcessToken - * @static - * @param {Object.} object Plain object - * @returns {Tokens.ProcessToken} ProcessToken - */ - ProcessToken.fromObject = function fromObject(object) { - if (object instanceof $root.Tokens.ProcessToken) - return object; - let message = new $root.Tokens.ProcessToken(); - switch (object.processTokenType) { - default: - if (typeof object.processTokenType === "number") { - message.processTokenType = object.processTokenType; - break; - } - break; - case "CHANGE_EMAIL": - case 0: - message.processTokenType = 0; - break; - case "EMAIL_VERIFICATION": - case 1: - message.processTokenType = 1; - break; - case "IP_ADDRESS_VERIFICATION": - case 2: - message.processTokenType = 2; - break; - case "USERNAME_VERIFICATION": - case 3: - message.processTokenType = 3; - break; - case "DEVICE_VERIFICATION": - case 4: - message.processTokenType = 4; - break; - case "CREATE_ACCOUNT_VERIFICATION": - case 5: - message.processTokenType = 5; - break; - case "REDEEM_PERSONAL_LICENSE": - case 6: - message.processTokenType = 6; - break; - case "DELETE_ACCOUNT_VERIFICATION": - case 7: - message.processTokenType = 7; - break; - case "REACTIVATE_DEVICE_APPROVAL_REQUEST": - case 8: - message.processTokenType = 8; - break; } - if (object.payload != null) - if (typeof object.payload === "string") - $util.base64.decode(object.payload, message.payload = $util.newBuffer($util.base64.length(object.payload)), 0); - else if (object.payload.length >= 0) - message.payload = object.payload; - if (object.creation != null) - if ($util.Long) - (message.creation = $util.Long.fromValue(object.creation)).unsigned = false; - else if (typeof object.creation === "string") - message.creation = parseInt(object.creation, 10); - else if (typeof object.creation === "number") - message.creation = object.creation; - else if (typeof object.creation === "object") - message.creation = new $util.LongBits(object.creation.low >>> 0, object.creation.high >>> 0).toNumber(); - switch (object.supportedLanguage) { - default: - if (typeof object.supportedLanguage === "number") { - message.supportedLanguage = object.supportedLanguage; - break; - } - break; - case "ENGLISH": - case 0: - message.supportedLanguage = 0; - break; - case "ARABIC": - case 1: - message.supportedLanguage = 1; - break; - case "BRITISH": - case 2: - message.supportedLanguage = 2; - break; - case "CHINESE": - case 3: - message.supportedLanguage = 3; - break; - case "CHINESE_HONG_KONG": - case 4: - message.supportedLanguage = 4; - break; - case "CHINESE_TAIWAN": - case 5: - message.supportedLanguage = 5; - break; - case "DUTCH": - case 6: - message.supportedLanguage = 6; - break; - case "FRENCH": - case 7: - message.supportedLanguage = 7; - break; - case "GERMAN": - case 8: - message.supportedLanguage = 8; - break; - case "GREEK": - case 9: - message.supportedLanguage = 9; - break; - case "HEBREW": - case 10: - message.supportedLanguage = 10; - break; - case "ITALIAN": - case 11: - message.supportedLanguage = 11; - break; - case "JAPANESE": - case 12: - message.supportedLanguage = 12; - break; - case "KOREAN": - case 13: - message.supportedLanguage = 13; - break; - case "POLISH": - case 14: - message.supportedLanguage = 14; - break; - case "PORTUGUESE": - case 15: - message.supportedLanguage = 15; - break; - case "PORTUGUESE_BRAZIL": - case 16: - message.supportedLanguage = 16; - break; - case "ROMANIAN": - case 17: - message.supportedLanguage = 17; - break; - case "RUSSIAN": - case 18: - message.supportedLanguage = 18; - break; - case "SLOVAK": - case 19: - message.supportedLanguage = 19; - break; - case "SPANISH": - case 20: - message.supportedLanguage = 20; - break; - case "FINNISH": - case 21: - message.supportedLanguage = 21; - break; - case "SWEDISH": - case 22: - message.supportedLanguage = 22; - break; - } - if (object.subEnvironment != null) - message.subEnvironment = String(object.subEnvironment); + if (object.subEnvironment != null) message.subEnvironment = String(object.subEnvironment); return message; }; @@ -148043,38 +153281,55 @@ export const Tokens = $root.Tokens = (() => { * @returns {Object.} Plain object */ ProcessToken.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - object.processTokenType = options.enums === String ? "CHANGE_EMAIL" : 0; - if (options.bytes === String) - object.payload = ""; + object.processTokenType = options.enums === String ? 'CHANGE_EMAIL' : 0; + if (options.bytes === String) object.payload = ''; else { object.payload = []; - if (options.bytes !== Array) - object.payload = $util.newBuffer(object.payload); + if (options.bytes !== Array) object.payload = $util.newBuffer(object.payload); } if ($util.Long) { let long = new $util.Long(0, 0, false); - object.creation = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.creation = options.longs === String ? "0" : 0; - object.supportedLanguage = options.enums === String ? "ENGLISH" : 0; - object.subEnvironment = ""; - } - if (message.processTokenType != null && message.hasOwnProperty("processTokenType")) - object.processTokenType = options.enums === String ? $root.Tokens.ProcessTokenType[message.processTokenType] === undefined ? message.processTokenType : $root.Tokens.ProcessTokenType[message.processTokenType] : message.processTokenType; - if (message.payload != null && message.hasOwnProperty("payload")) - object.payload = options.bytes === String ? $util.base64.encode(message.payload, 0, message.payload.length) : options.bytes === Array ? Array.prototype.slice.call(message.payload) : message.payload; - if (message.creation != null && message.hasOwnProperty("creation")) - if (typeof message.creation === "number") + object.creation = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.creation = options.longs === String ? '0' : 0; + object.supportedLanguage = options.enums === String ? 'ENGLISH' : 0; + object.subEnvironment = ''; + } + if (message.processTokenType != null && message.hasOwnProperty('processTokenType')) + object.processTokenType = + options.enums === String + ? $root.Tokens.ProcessTokenType[message.processTokenType] === undefined + ? message.processTokenType + : $root.Tokens.ProcessTokenType[message.processTokenType] + : message.processTokenType; + if (message.payload != null && message.hasOwnProperty('payload')) + object.payload = + options.bytes === String + ? $util.base64.encode(message.payload, 0, message.payload.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.payload) + : message.payload; + if (message.creation != null && message.hasOwnProperty('creation')) + if (typeof message.creation === 'number') object.creation = options.longs === String ? String(message.creation) : message.creation; else - object.creation = options.longs === String ? $util.Long.prototype.toString.call(message.creation) : options.longs === Number ? new $util.LongBits(message.creation.low >>> 0, message.creation.high >>> 0).toNumber() : message.creation; - if (message.supportedLanguage != null && message.hasOwnProperty("supportedLanguage")) - object.supportedLanguage = options.enums === String ? $root.Authentication.SupportedLanguage[message.supportedLanguage] === undefined ? message.supportedLanguage : $root.Authentication.SupportedLanguage[message.supportedLanguage] : message.supportedLanguage; - if (message.subEnvironment != null && message.hasOwnProperty("subEnvironment")) + object.creation = + options.longs === String + ? $util.Long.prototype.toString.call(message.creation) + : options.longs === Number + ? new $util.LongBits(message.creation.low >>> 0, message.creation.high >>> 0).toNumber() + : message.creation; + if (message.supportedLanguage != null && message.hasOwnProperty('supportedLanguage')) + object.supportedLanguage = + options.enums === String + ? $root.Authentication.SupportedLanguage[message.supportedLanguage] === undefined + ? message.supportedLanguage + : $root.Authentication.SupportedLanguage[message.supportedLanguage] + : message.supportedLanguage; + if (message.subEnvironment != null && message.hasOwnProperty('subEnvironment')) object.subEnvironment = message.subEnvironment; return object; }; @@ -148100,9 +153355,9 @@ export const Tokens = $root.Tokens = (() => { */ ProcessToken.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Tokens.ProcessToken"; + return typeUrlPrefix + '/Tokens.ProcessToken'; }; return ProcessToken; @@ -148115,15 +153370,15 @@ export const Tokens = $root.Tokens = (() => { * @property {number} FULL=0 FULL value * @property {number} PARTIAL=1 PARTIAL value */ - Tokens.PageTokenType = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "FULL"] = 0; - values[valuesById[1] = "PARTIAL"] = 1; + Tokens.PageTokenType = (function () { + const valuesById = {}, + values = Object.create(valuesById); + values[(valuesById[0] = 'FULL')] = 0; + values[(valuesById[1] = 'PARTIAL')] = 1; return values; })(); - Tokens.EnterpriseDataContinuationToken = (function() { - + Tokens.EnterpriseDataContinuationToken = (function () { /** * Properties of an EnterpriseDataContinuationToken. * @memberof Tokens @@ -148145,8 +153400,7 @@ export const Tokens = $root.Tokens = (() => { function EnterpriseDataContinuationToken(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -148163,7 +153417,9 @@ export const Tokens = $root.Tokens = (() => { * @memberof Tokens.EnterpriseDataContinuationToken * @instance */ - EnterpriseDataContinuationToken.prototype.processedUpToTransactionId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + EnterpriseDataContinuationToken.prototype.processedUpToTransactionId = $util.Long + ? $util.Long.fromBits(0, 0, false) + : 0; /** * EnterpriseDataContinuationToken position. @@ -148179,7 +153435,7 @@ export const Tokens = $root.Tokens = (() => { * @memberof Tokens.EnterpriseDataContinuationToken * @instance */ - EnterpriseDataContinuationToken.prototype.lastProcessedTime = ""; + EnterpriseDataContinuationToken.prototype.lastProcessedTime = ''; /** * Creates a new EnterpriseDataContinuationToken instance using the specified properties. @@ -148203,16 +153459,21 @@ export const Tokens = $root.Tokens = (() => { * @returns {$protobuf.Writer} Writer */ EnterpriseDataContinuationToken.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.startType != null && Object.hasOwnProperty.call(message, "startType")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.startType); - if (message.processedUpToTransactionId != null && Object.hasOwnProperty.call(message, "processedUpToTransactionId")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.processedUpToTransactionId); - if (message.position != null && Object.hasOwnProperty.call(message, "position")) - $root.Tokens.Position.encode(message.position, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.lastProcessedTime != null && Object.hasOwnProperty.call(message, "lastProcessedTime")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.lastProcessedTime); + if (!writer) writer = $Writer.create(); + if (message.startType != null && Object.hasOwnProperty.call(message, 'startType')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int32(message.startType); + if ( + message.processedUpToTransactionId != null && + Object.hasOwnProperty.call(message, 'processedUpToTransactionId') + ) + writer.uint32(/* id 2, wireType 0 =*/ 16).int64(message.processedUpToTransactionId); + if (message.position != null && Object.hasOwnProperty.call(message, 'position')) + $root.Tokens.Position.encode( + message.position, + writer.uint32(/* id 3, wireType 2 =*/ 26).fork() + ).ldelim(); + if (message.lastProcessedTime != null && Object.hasOwnProperty.call(message, 'lastProcessedTime')) + writer.uint32(/* id 4, wireType 2 =*/ 34).string(message.lastProcessedTime); return writer; }; @@ -148241,31 +153502,31 @@ export const Tokens = $root.Tokens = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ EnterpriseDataContinuationToken.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Tokens.EnterpriseDataContinuationToken(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Tokens.EnterpriseDataContinuationToken(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.startType = reader.int32(); break; } - case 2: { + case 2: { message.processedUpToTransactionId = reader.int64(); break; } - case 3: { + case 3: { message.position = $root.Tokens.Position.decode(reader, reader.uint32()); break; } - case 4: { + case 4: { message.lastProcessedTime = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -148282,8 +153543,7 @@ export const Tokens = $root.Tokens = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ EnterpriseDataContinuationToken.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -148296,27 +153556,31 @@ export const Tokens = $root.Tokens = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ EnterpriseDataContinuationToken.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.startType != null && message.hasOwnProperty("startType")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.startType != null && message.hasOwnProperty('startType')) switch (message.startType) { - default: - return "startType: enum value expected"; - case 0: - case 1: - break; + default: + return 'startType: enum value expected'; + case 0: + case 1: + break; } - if (message.processedUpToTransactionId != null && message.hasOwnProperty("processedUpToTransactionId")) - if (!$util.isInteger(message.processedUpToTransactionId) && !(message.processedUpToTransactionId && $util.isInteger(message.processedUpToTransactionId.low) && $util.isInteger(message.processedUpToTransactionId.high))) - return "processedUpToTransactionId: integer|Long expected"; - if (message.position != null && message.hasOwnProperty("position")) { + if (message.processedUpToTransactionId != null && message.hasOwnProperty('processedUpToTransactionId')) + if ( + !$util.isInteger(message.processedUpToTransactionId) && + !( + message.processedUpToTransactionId && + $util.isInteger(message.processedUpToTransactionId.low) && + $util.isInteger(message.processedUpToTransactionId.high) + ) + ) + return 'processedUpToTransactionId: integer|Long expected'; + if (message.position != null && message.hasOwnProperty('position')) { let error = $root.Tokens.Position.verify(message.position); - if (error) - return "position." + error; + if (error) return 'position.' + error; } - if (message.lastProcessedTime != null && message.hasOwnProperty("lastProcessedTime")) - if (!$util.isString(message.lastProcessedTime)) - return "lastProcessedTime: string expected"; + if (message.lastProcessedTime != null && message.hasOwnProperty('lastProcessedTime')) + if (!$util.isString(message.lastProcessedTime)) return 'lastProcessedTime: string expected'; return null; }; @@ -148329,41 +153593,44 @@ export const Tokens = $root.Tokens = (() => { * @returns {Tokens.EnterpriseDataContinuationToken} EnterpriseDataContinuationToken */ EnterpriseDataContinuationToken.fromObject = function fromObject(object) { - if (object instanceof $root.Tokens.EnterpriseDataContinuationToken) - return object; + if (object instanceof $root.Tokens.EnterpriseDataContinuationToken) return object; let message = new $root.Tokens.EnterpriseDataContinuationToken(); switch (object.startType) { - default: - if (typeof object.startType === "number") { - message.startType = object.startType; + default: + if (typeof object.startType === 'number') { + message.startType = object.startType; + break; + } + break; + case 'FULL': + case 0: + message.startType = 0; + break; + case 'PARTIAL': + case 1: + message.startType = 1; break; - } - break; - case "FULL": - case 0: - message.startType = 0; - break; - case "PARTIAL": - case 1: - message.startType = 1; - break; } if (object.processedUpToTransactionId != null) if ($util.Long) - (message.processedUpToTransactionId = $util.Long.fromValue(object.processedUpToTransactionId)).unsigned = false; - else if (typeof object.processedUpToTransactionId === "string") + (message.processedUpToTransactionId = $util.Long.fromValue( + object.processedUpToTransactionId + )).unsigned = false; + else if (typeof object.processedUpToTransactionId === 'string') message.processedUpToTransactionId = parseInt(object.processedUpToTransactionId, 10); - else if (typeof object.processedUpToTransactionId === "number") + else if (typeof object.processedUpToTransactionId === 'number') message.processedUpToTransactionId = object.processedUpToTransactionId; - else if (typeof object.processedUpToTransactionId === "object") - message.processedUpToTransactionId = new $util.LongBits(object.processedUpToTransactionId.low >>> 0, object.processedUpToTransactionId.high >>> 0).toNumber(); + else if (typeof object.processedUpToTransactionId === 'object') + message.processedUpToTransactionId = new $util.LongBits( + object.processedUpToTransactionId.low >>> 0, + object.processedUpToTransactionId.high >>> 0 + ).toNumber(); if (object.position != null) { - if (typeof object.position !== "object") - throw TypeError(".Tokens.EnterpriseDataContinuationToken.position: object expected"); + if (typeof object.position !== 'object') + throw TypeError('.Tokens.EnterpriseDataContinuationToken.position: object expected'); message.position = $root.Tokens.Position.fromObject(object.position); } - if (object.lastProcessedTime != null) - message.lastProcessedTime = String(object.lastProcessedTime); + if (object.lastProcessedTime != null) message.lastProcessedTime = String(object.lastProcessedTime); return message; }; @@ -148377,29 +153644,44 @@ export const Tokens = $root.Tokens = (() => { * @returns {Object.} Plain object */ EnterpriseDataContinuationToken.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - object.startType = options.enums === String ? "FULL" : 0; + object.startType = options.enums === String ? 'FULL' : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.processedUpToTransactionId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.processedUpToTransactionId = options.longs === String ? "0" : 0; + object.processedUpToTransactionId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.processedUpToTransactionId = options.longs === String ? '0' : 0; object.position = null; - object.lastProcessedTime = ""; - } - if (message.startType != null && message.hasOwnProperty("startType")) - object.startType = options.enums === String ? $root.Tokens.PageTokenType[message.startType] === undefined ? message.startType : $root.Tokens.PageTokenType[message.startType] : message.startType; - if (message.processedUpToTransactionId != null && message.hasOwnProperty("processedUpToTransactionId")) - if (typeof message.processedUpToTransactionId === "number") - object.processedUpToTransactionId = options.longs === String ? String(message.processedUpToTransactionId) : message.processedUpToTransactionId; + object.lastProcessedTime = ''; + } + if (message.startType != null && message.hasOwnProperty('startType')) + object.startType = + options.enums === String + ? $root.Tokens.PageTokenType[message.startType] === undefined + ? message.startType + : $root.Tokens.PageTokenType[message.startType] + : message.startType; + if (message.processedUpToTransactionId != null && message.hasOwnProperty('processedUpToTransactionId')) + if (typeof message.processedUpToTransactionId === 'number') + object.processedUpToTransactionId = + options.longs === String + ? String(message.processedUpToTransactionId) + : message.processedUpToTransactionId; else - object.processedUpToTransactionId = options.longs === String ? $util.Long.prototype.toString.call(message.processedUpToTransactionId) : options.longs === Number ? new $util.LongBits(message.processedUpToTransactionId.low >>> 0, message.processedUpToTransactionId.high >>> 0).toNumber() : message.processedUpToTransactionId; - if (message.position != null && message.hasOwnProperty("position")) + object.processedUpToTransactionId = + options.longs === String + ? $util.Long.prototype.toString.call(message.processedUpToTransactionId) + : options.longs === Number + ? new $util.LongBits( + message.processedUpToTransactionId.low >>> 0, + message.processedUpToTransactionId.high >>> 0 + ).toNumber() + : message.processedUpToTransactionId; + if (message.position != null && message.hasOwnProperty('position')) object.position = $root.Tokens.Position.toObject(message.position, options); - if (message.lastProcessedTime != null && message.hasOwnProperty("lastProcessedTime")) + if (message.lastProcessedTime != null && message.hasOwnProperty('lastProcessedTime')) object.lastProcessedTime = message.lastProcessedTime; return object; }; @@ -148425,9 +153707,9 @@ export const Tokens = $root.Tokens = (() => { */ EnterpriseDataContinuationToken.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Tokens.EnterpriseDataContinuationToken"; + return typeUrlPrefix + '/Tokens.EnterpriseDataContinuationToken'; }; return EnterpriseDataContinuationToken; @@ -148494,69 +153776,69 @@ export const Tokens = $root.Tokens = (() => { * @property {number} USER_REMOVED=54 USER_REMOVED value * @property {number} NOTIFICATION_SYNC_DATA=55 NOTIFICATION_SYNC_DATA value */ - Tokens.VaultDataEntity = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "UNKNOWN"] = 0; - values[valuesById[1] = "USER_FOLDER"] = 1; - values[valuesById[2] = "USER_FOLDER_REMOVED"] = 2; - values[valuesById[3] = "TEAM1"] = 3; - values[valuesById[4] = "TEAM2"] = 4; - values[valuesById[5] = "TEAM3"] = 5; - values[valuesById[6] = "TEAM4"] = 6; - values[valuesById[7] = "TEAM_REMOVED"] = 7; - values[valuesById[8] = "SHARED_FOLDER"] = 8; - values[valuesById[9] = "SHARED_FOLDER_REMOVED"] = 9; - values[valuesById[10] = "SHARED_FOLDER_USER"] = 10; - values[valuesById[11] = "SHARED_FOLDER_USER_REMOVED"] = 11; - values[valuesById[12] = "SHARED_FOLDER_TEAM"] = 12; - values[valuesById[13] = "SHARED_FOLDER_TEAM_REMOVED"] = 13; - values[valuesById[14] = "SHARED_FOLDER_RECORD"] = 14; - values[valuesById[15] = "SHARED_FOLDER_RECORD_REMOVED"] = 15; - values[valuesById[16] = "SHARED_FOLDER_FOLDER"] = 16; - values[valuesById[17] = "SHARED_FOLDER_FOLDER_RECORD1"] = 17; - values[valuesById[18] = "SHARED_FOLDER_FOLDER_REMOVED"] = 18; - values[valuesById[19] = "SHARED_FOLDER_FOLDER_RECORD_REMOVED"] = 19; - values[valuesById[20] = "USER_FOLDER_SHARED_FOLDER1"] = 20; - values[valuesById[21] = "USER_FOLDER_SHARED_FOLDER2"] = 21; - values[valuesById[22] = "USER_FOLDER_SHARED_FOLDER_REMOVED1"] = 22; - values[valuesById[23] = "USER_FOLDER_SHARED_FOLDER_REMOVED2"] = 23; - values[valuesById[24] = "RECORD_META_DATA1"] = 24; - values[valuesById[25] = "RECORD_META_DATA2"] = 25; - values[valuesById[26] = "RECORD_LINK"] = 26; - values[valuesById[27] = "RECORD_LINK_REMOVED"] = 27; - values[valuesById[28] = "RECORD1"] = 28; - values[valuesById[29] = "RECORD2"] = 29; - values[valuesById[30] = "RECORD_REMOVED"] = 30; - values[valuesById[31] = "NOT_SHARED_DATA"] = 31; - values[valuesById[32] = "SHARING_CHANGE"] = 32; - values[valuesById[33] = "USER_FOLDER_RECORD1"] = 33; - values[valuesById[34] = "USER_FOLDER_RECORD2_DEPRECATED"] = 34; - values[valuesById[35] = "USER_FOLDER_RECORD_REMOVED"] = 35; - values[valuesById[36] = "BREACH_WATCH_RECORD1"] = 36; - values[valuesById[37] = "BREACH_WATCH_RECORD2"] = 37; - values[valuesById[38] = "BREACH_WATCH_RECORD3"] = 38; - values[valuesById[39] = "BREACH_WATCH_SECURITY"] = 39; - values[valuesById[40] = "USER_AUTH"] = 40; - values[valuesById[41] = "SHARE_INVITATION"] = 41; - values[valuesById[42] = "REUSED_PASSWORD"] = 42; - values[valuesById[43] = "PROFILE"] = 43; - values[valuesById[44] = "PROFILE_PIC"] = 44; - values[valuesById[45] = "PENDING_TEAM_MEMBER"] = 45; - values[valuesById[46] = "KSM_APP_SHARE"] = 46; - values[valuesById[47] = "KSM_APP_CLIENT"] = 47; - values[valuesById[48] = "RECORD_ROTATION"] = 48; - values[valuesById[49] = "USER1"] = 49; - values[valuesById[50] = "USER2"] = 50; - values[valuesById[51] = "USER3"] = 51; - values[valuesById[52] = "USER4"] = 52; - values[valuesById[53] = "USER5"] = 53; - values[valuesById[54] = "USER_REMOVED"] = 54; - values[valuesById[55] = "NOTIFICATION_SYNC_DATA"] = 55; + Tokens.VaultDataEntity = (function () { + const valuesById = {}, + values = Object.create(valuesById); + values[(valuesById[0] = 'UNKNOWN')] = 0; + values[(valuesById[1] = 'USER_FOLDER')] = 1; + values[(valuesById[2] = 'USER_FOLDER_REMOVED')] = 2; + values[(valuesById[3] = 'TEAM1')] = 3; + values[(valuesById[4] = 'TEAM2')] = 4; + values[(valuesById[5] = 'TEAM3')] = 5; + values[(valuesById[6] = 'TEAM4')] = 6; + values[(valuesById[7] = 'TEAM_REMOVED')] = 7; + values[(valuesById[8] = 'SHARED_FOLDER')] = 8; + values[(valuesById[9] = 'SHARED_FOLDER_REMOVED')] = 9; + values[(valuesById[10] = 'SHARED_FOLDER_USER')] = 10; + values[(valuesById[11] = 'SHARED_FOLDER_USER_REMOVED')] = 11; + values[(valuesById[12] = 'SHARED_FOLDER_TEAM')] = 12; + values[(valuesById[13] = 'SHARED_FOLDER_TEAM_REMOVED')] = 13; + values[(valuesById[14] = 'SHARED_FOLDER_RECORD')] = 14; + values[(valuesById[15] = 'SHARED_FOLDER_RECORD_REMOVED')] = 15; + values[(valuesById[16] = 'SHARED_FOLDER_FOLDER')] = 16; + values[(valuesById[17] = 'SHARED_FOLDER_FOLDER_RECORD1')] = 17; + values[(valuesById[18] = 'SHARED_FOLDER_FOLDER_REMOVED')] = 18; + values[(valuesById[19] = 'SHARED_FOLDER_FOLDER_RECORD_REMOVED')] = 19; + values[(valuesById[20] = 'USER_FOLDER_SHARED_FOLDER1')] = 20; + values[(valuesById[21] = 'USER_FOLDER_SHARED_FOLDER2')] = 21; + values[(valuesById[22] = 'USER_FOLDER_SHARED_FOLDER_REMOVED1')] = 22; + values[(valuesById[23] = 'USER_FOLDER_SHARED_FOLDER_REMOVED2')] = 23; + values[(valuesById[24] = 'RECORD_META_DATA1')] = 24; + values[(valuesById[25] = 'RECORD_META_DATA2')] = 25; + values[(valuesById[26] = 'RECORD_LINK')] = 26; + values[(valuesById[27] = 'RECORD_LINK_REMOVED')] = 27; + values[(valuesById[28] = 'RECORD1')] = 28; + values[(valuesById[29] = 'RECORD2')] = 29; + values[(valuesById[30] = 'RECORD_REMOVED')] = 30; + values[(valuesById[31] = 'NOT_SHARED_DATA')] = 31; + values[(valuesById[32] = 'SHARING_CHANGE')] = 32; + values[(valuesById[33] = 'USER_FOLDER_RECORD1')] = 33; + values[(valuesById[34] = 'USER_FOLDER_RECORD2_DEPRECATED')] = 34; + values[(valuesById[35] = 'USER_FOLDER_RECORD_REMOVED')] = 35; + values[(valuesById[36] = 'BREACH_WATCH_RECORD1')] = 36; + values[(valuesById[37] = 'BREACH_WATCH_RECORD2')] = 37; + values[(valuesById[38] = 'BREACH_WATCH_RECORD3')] = 38; + values[(valuesById[39] = 'BREACH_WATCH_SECURITY')] = 39; + values[(valuesById[40] = 'USER_AUTH')] = 40; + values[(valuesById[41] = 'SHARE_INVITATION')] = 41; + values[(valuesById[42] = 'REUSED_PASSWORD')] = 42; + values[(valuesById[43] = 'PROFILE')] = 43; + values[(valuesById[44] = 'PROFILE_PIC')] = 44; + values[(valuesById[45] = 'PENDING_TEAM_MEMBER')] = 45; + values[(valuesById[46] = 'KSM_APP_SHARE')] = 46; + values[(valuesById[47] = 'KSM_APP_CLIENT')] = 47; + values[(valuesById[48] = 'RECORD_ROTATION')] = 48; + values[(valuesById[49] = 'USER1')] = 49; + values[(valuesById[50] = 'USER2')] = 50; + values[(valuesById[51] = 'USER3')] = 51; + values[(valuesById[52] = 'USER4')] = 52; + values[(valuesById[53] = 'USER5')] = 53; + values[(valuesById[54] = 'USER_REMOVED')] = 54; + values[(valuesById[55] = 'NOTIFICATION_SYNC_DATA')] = 55; return values; })(); - Tokens.Position = (function() { - + Tokens.Position = (function () { /** * Properties of a Position. * @memberof Tokens @@ -148577,8 +153859,7 @@ export const Tokens = $root.Tokens = (() => { function Position(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -148595,7 +153876,7 @@ export const Tokens = $root.Tokens = (() => { * @memberof Tokens.Position * @instance */ - Position.prototype.nodeId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + Position.prototype.nodeId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * Position location. @@ -148627,14 +153908,13 @@ export const Tokens = $root.Tokens = (() => { * @returns {$protobuf.Writer} Writer */ Position.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.entity != null && Object.hasOwnProperty.call(message, "entity")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.entity); - if (message.nodeId != null && Object.hasOwnProperty.call(message, "nodeId")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.nodeId); - if (message.location != null && Object.hasOwnProperty.call(message, "location")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.location); + if (!writer) writer = $Writer.create(); + if (message.entity != null && Object.hasOwnProperty.call(message, 'entity')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int32(message.entity); + if (message.nodeId != null && Object.hasOwnProperty.call(message, 'nodeId')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int64(message.nodeId); + if (message.location != null && Object.hasOwnProperty.call(message, 'location')) + writer.uint32(/* id 3, wireType 2 =*/ 26).bytes(message.location); return writer; }; @@ -148663,27 +153943,27 @@ export const Tokens = $root.Tokens = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ Position.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Tokens.Position(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Tokens.Position(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.entity = reader.int32(); break; } - case 2: { + case 2: { message.nodeId = reader.int64(); break; } - case 3: { + case 3: { message.location = reader.bytes(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -148700,8 +153980,7 @@ export const Tokens = $root.Tokens = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ Position.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -148714,177 +153993,183 @@ export const Tokens = $root.Tokens = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ Position.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.entity != null && message.hasOwnProperty("entity")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.entity != null && message.hasOwnProperty('entity')) switch (message.entity) { + default: + return 'entity: enum value expected'; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + case 10: + case 11: + case 12: + case 13: + case 14: + case 15: + case 16: + case 17: + case 18: + case 19: + case 20: + case 21: + case 22: + case 23: + break; + } + if (message.nodeId != null && message.hasOwnProperty('nodeId')) + if ( + !$util.isInteger(message.nodeId) && + !(message.nodeId && $util.isInteger(message.nodeId.low) && $util.isInteger(message.nodeId.high)) + ) + return 'nodeId: integer|Long expected'; + if (message.location != null && message.hasOwnProperty('location')) + if ( + !( + (message.location && typeof message.location.length === 'number') || + $util.isString(message.location) + ) + ) + return 'location: buffer expected'; + return null; + }; + + /** + * Creates a Position message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof Tokens.Position + * @static + * @param {Object.} object Plain object + * @returns {Tokens.Position} Position + */ + Position.fromObject = function fromObject(object) { + if (object instanceof $root.Tokens.Position) return object; + let message = new $root.Tokens.Position(); + switch (object.entity) { default: - return "entity: enum value expected"; + if (typeof object.entity === 'number') { + message.entity = object.entity; + break; + } + break; + case 'UNKNOWN': case 0: + message.entity = 0; + break; + case 'NODES': case 1: + message.entity = 1; + break; + case 'ROLES': case 2: + message.entity = 2; + break; + case 'USERS': case 3: + message.entity = 3; + break; + case 'TEAMS': case 4: + message.entity = 4; + break; + case 'TEAM_USERS': case 5: + message.entity = 5; + break; + case 'ROLE_USERS': case 6: + message.entity = 6; + break; + case 'ROLE_PRIVILEGES': case 7: + message.entity = 7; + break; + case 'ROLE_ENFORCEMENTS': case 8: + message.entity = 8; + break; + case 'ROLE_TEAMS': case 9: + message.entity = 9; + break; + case 'LICENSES': case 10: + message.entity = 10; + break; + case 'MANAGED_NODES': case 11: + message.entity = 11; + break; + case 'MANAGED_COMPANIES': case 12: + message.entity = 12; + break; + case 'BRIDGES': case 13: + message.entity = 13; + break; + case 'SCIMS': case 14: + message.entity = 14; + break; + case 'EMAIL_PROVISION': case 15: + message.entity = 15; + break; + case 'QUEUED_TEAMS': case 16: + message.entity = 16; + break; + case 'QUEUED_TEAM_USERS': case 17: + message.entity = 17; + break; + case 'SSO_SERVICES': case 18: + message.entity = 18; + break; + case 'REPORT_FILTER_USERS': case 19: + message.entity = 19; + break; + case 'DEVICES_REQUEST_FOR_ADMIN_APPROVAL': case 20: + message.entity = 20; + break; + case 'USER_ALIASES': case 21: + message.entity = 21; + break; + case 'COMPLIANCE_REPORT_CRITERIA_AND_FILTER': case 22: + message.entity = 22; + break; + case 'COMPLIANCE_REPORTS': case 23: + message.entity = 23; break; - } - if (message.nodeId != null && message.hasOwnProperty("nodeId")) - if (!$util.isInteger(message.nodeId) && !(message.nodeId && $util.isInteger(message.nodeId.low) && $util.isInteger(message.nodeId.high))) - return "nodeId: integer|Long expected"; - if (message.location != null && message.hasOwnProperty("location")) - if (!(message.location && typeof message.location.length === "number" || $util.isString(message.location))) - return "location: buffer expected"; - return null; - }; - - /** - * Creates a Position message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof Tokens.Position - * @static - * @param {Object.} object Plain object - * @returns {Tokens.Position} Position - */ - Position.fromObject = function fromObject(object) { - if (object instanceof $root.Tokens.Position) - return object; - let message = new $root.Tokens.Position(); - switch (object.entity) { - default: - if (typeof object.entity === "number") { - message.entity = object.entity; - break; - } - break; - case "UNKNOWN": - case 0: - message.entity = 0; - break; - case "NODES": - case 1: - message.entity = 1; - break; - case "ROLES": - case 2: - message.entity = 2; - break; - case "USERS": - case 3: - message.entity = 3; - break; - case "TEAMS": - case 4: - message.entity = 4; - break; - case "TEAM_USERS": - case 5: - message.entity = 5; - break; - case "ROLE_USERS": - case 6: - message.entity = 6; - break; - case "ROLE_PRIVILEGES": - case 7: - message.entity = 7; - break; - case "ROLE_ENFORCEMENTS": - case 8: - message.entity = 8; - break; - case "ROLE_TEAMS": - case 9: - message.entity = 9; - break; - case "LICENSES": - case 10: - message.entity = 10; - break; - case "MANAGED_NODES": - case 11: - message.entity = 11; - break; - case "MANAGED_COMPANIES": - case 12: - message.entity = 12; - break; - case "BRIDGES": - case 13: - message.entity = 13; - break; - case "SCIMS": - case 14: - message.entity = 14; - break; - case "EMAIL_PROVISION": - case 15: - message.entity = 15; - break; - case "QUEUED_TEAMS": - case 16: - message.entity = 16; - break; - case "QUEUED_TEAM_USERS": - case 17: - message.entity = 17; - break; - case "SSO_SERVICES": - case 18: - message.entity = 18; - break; - case "REPORT_FILTER_USERS": - case 19: - message.entity = 19; - break; - case "DEVICES_REQUEST_FOR_ADMIN_APPROVAL": - case 20: - message.entity = 20; - break; - case "USER_ALIASES": - case 21: - message.entity = 21; - break; - case "COMPLIANCE_REPORT_CRITERIA_AND_FILTER": - case 22: - message.entity = 22; - break; - case "COMPLIANCE_REPORTS": - case 23: - message.entity = 23; - break; } if (object.nodeId != null) - if ($util.Long) - (message.nodeId = $util.Long.fromValue(object.nodeId)).unsigned = false; - else if (typeof object.nodeId === "string") - message.nodeId = parseInt(object.nodeId, 10); - else if (typeof object.nodeId === "number") - message.nodeId = object.nodeId; - else if (typeof object.nodeId === "object") + if ($util.Long) (message.nodeId = $util.Long.fromValue(object.nodeId)).unsigned = false; + else if (typeof object.nodeId === 'string') message.nodeId = parseInt(object.nodeId, 10); + else if (typeof object.nodeId === 'number') message.nodeId = object.nodeId; + else if (typeof object.nodeId === 'object') message.nodeId = new $util.LongBits(object.nodeId.low >>> 0, object.nodeId.high >>> 0).toNumber(); if (object.location != null) - if (typeof object.location === "string") - $util.base64.decode(object.location, message.location = $util.newBuffer($util.base64.length(object.location)), 0); - else if (object.location.length >= 0) - message.location = object.location; + if (typeof object.location === 'string') + $util.base64.decode( + object.location, + (message.location = $util.newBuffer($util.base64.length(object.location))), + 0 + ); + else if (object.location.length >= 0) message.location = object.location; return message; }; @@ -148898,33 +154183,45 @@ export const Tokens = $root.Tokens = (() => { * @returns {Object.} Plain object */ Position.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - object.entity = options.enums === String ? "UNKNOWN" : 0; + object.entity = options.enums === String ? 'UNKNOWN' : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.nodeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.nodeId = options.longs === String ? "0" : 0; - if (options.bytes === String) - object.location = ""; + object.nodeId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.nodeId = options.longs === String ? '0' : 0; + if (options.bytes === String) object.location = ''; else { object.location = []; - if (options.bytes !== Array) - object.location = $util.newBuffer(object.location); - } - } - if (message.entity != null && message.hasOwnProperty("entity")) - object.entity = options.enums === String ? $root.Enterprise.EnterpriseDataEntity[message.entity] === undefined ? message.entity : $root.Enterprise.EnterpriseDataEntity[message.entity] : message.entity; - if (message.nodeId != null && message.hasOwnProperty("nodeId")) - if (typeof message.nodeId === "number") + if (options.bytes !== Array) object.location = $util.newBuffer(object.location); + } + } + if (message.entity != null && message.hasOwnProperty('entity')) + object.entity = + options.enums === String + ? $root.Enterprise.EnterpriseDataEntity[message.entity] === undefined + ? message.entity + : $root.Enterprise.EnterpriseDataEntity[message.entity] + : message.entity; + if (message.nodeId != null && message.hasOwnProperty('nodeId')) + if (typeof message.nodeId === 'number') object.nodeId = options.longs === String ? String(message.nodeId) : message.nodeId; else - object.nodeId = options.longs === String ? $util.Long.prototype.toString.call(message.nodeId) : options.longs === Number ? new $util.LongBits(message.nodeId.low >>> 0, message.nodeId.high >>> 0).toNumber() : message.nodeId; - if (message.location != null && message.hasOwnProperty("location")) - object.location = options.bytes === String ? $util.base64.encode(message.location, 0, message.location.length) : options.bytes === Array ? Array.prototype.slice.call(message.location) : message.location; + object.nodeId = + options.longs === String + ? $util.Long.prototype.toString.call(message.nodeId) + : options.longs === Number + ? new $util.LongBits(message.nodeId.low >>> 0, message.nodeId.high >>> 0).toNumber() + : message.nodeId; + if (message.location != null && message.hasOwnProperty('location')) + object.location = + options.bytes === String + ? $util.base64.encode(message.location, 0, message.location.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.location) + : message.location; return object; }; @@ -148949,16 +154246,15 @@ export const Tokens = $root.Tokens = (() => { */ Position.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Tokens.Position"; + return typeUrlPrefix + '/Tokens.Position'; }; return Position; })(); - Tokens.LocationL = (function() { - + Tokens.LocationL = (function () { /** * Properties of a LocationL. * @memberof Tokens @@ -148977,8 +154273,7 @@ export const Tokens = $root.Tokens = (() => { function LocationL(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -148987,7 +154282,7 @@ export const Tokens = $root.Tokens = (() => { * @memberof Tokens.LocationL * @instance */ - LocationL.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + LocationL.prototype.id = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * Creates a new LocationL instance using the specified properties. @@ -149011,10 +154306,9 @@ export const Tokens = $root.Tokens = (() => { * @returns {$protobuf.Writer} Writer */ LocationL.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.id != null && Object.hasOwnProperty.call(message, "id")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.id); + if (!writer) writer = $Writer.create(); + if (message.id != null && Object.hasOwnProperty.call(message, 'id')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int64(message.id); return writer; }; @@ -149043,19 +154337,19 @@ export const Tokens = $root.Tokens = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ LocationL.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Tokens.LocationL(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Tokens.LocationL(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.id = reader.int64(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -149072,8 +154366,7 @@ export const Tokens = $root.Tokens = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ LocationL.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -149086,11 +154379,13 @@ export const Tokens = $root.Tokens = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ LocationL.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) - if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high))) - return "id: integer|Long expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.id != null && message.hasOwnProperty('id')) + if ( + !$util.isInteger(message.id) && + !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high)) + ) + return 'id: integer|Long expected'; return null; }; @@ -149103,17 +154398,13 @@ export const Tokens = $root.Tokens = (() => { * @returns {Tokens.LocationL} LocationL */ LocationL.fromObject = function fromObject(object) { - if (object instanceof $root.Tokens.LocationL) - return object; + if (object instanceof $root.Tokens.LocationL) return object; let message = new $root.Tokens.LocationL(); if (object.id != null) - if ($util.Long) - (message.id = $util.Long.fromValue(object.id)).unsigned = false; - else if (typeof object.id === "string") - message.id = parseInt(object.id, 10); - else if (typeof object.id === "number") - message.id = object.id; - else if (typeof object.id === "object") + if ($util.Long) (message.id = $util.Long.fromValue(object.id)).unsigned = false; + else if (typeof object.id === 'string') message.id = parseInt(object.id, 10); + else if (typeof object.id === 'number') message.id = object.id; + else if (typeof object.id === 'object') message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber(); return message; }; @@ -149128,20 +154419,24 @@ export const Tokens = $root.Tokens = (() => { * @returns {Object.} Plain object */ LocationL.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) if ($util.Long) { let long = new $util.Long(0, 0, false); - object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.id = options.longs === String ? "0" : 0; - if (message.id != null && message.hasOwnProperty("id")) - if (typeof message.id === "number") + object.id = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.id = options.longs === String ? '0' : 0; + if (message.id != null && message.hasOwnProperty('id')) + if (typeof message.id === 'number') object.id = options.longs === String ? String(message.id) : message.id; else - object.id = options.longs === String ? $util.Long.prototype.toString.call(message.id) : options.longs === Number ? new $util.LongBits(message.id.low >>> 0, message.id.high >>> 0).toNumber() : message.id; + object.id = + options.longs === String + ? $util.Long.prototype.toString.call(message.id) + : options.longs === Number + ? new $util.LongBits(message.id.low >>> 0, message.id.high >>> 0).toNumber() + : message.id; return object; }; @@ -149166,16 +154461,15 @@ export const Tokens = $root.Tokens = (() => { */ LocationL.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Tokens.LocationL"; + return typeUrlPrefix + '/Tokens.LocationL'; }; return LocationL; })(); - Tokens.LocationLL = (function() { - + Tokens.LocationLL = (function () { /** * Properties of a LocationLL. * @memberof Tokens @@ -149195,8 +154489,7 @@ export const Tokens = $root.Tokens = (() => { function LocationLL(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -149205,7 +154498,7 @@ export const Tokens = $root.Tokens = (() => { * @memberof Tokens.LocationLL * @instance */ - LocationLL.prototype.id1 = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + LocationLL.prototype.id1 = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * LocationLL id2. @@ -149213,7 +154506,7 @@ export const Tokens = $root.Tokens = (() => { * @memberof Tokens.LocationLL * @instance */ - LocationLL.prototype.id2 = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + LocationLL.prototype.id2 = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * Creates a new LocationLL instance using the specified properties. @@ -149237,12 +154530,11 @@ export const Tokens = $root.Tokens = (() => { * @returns {$protobuf.Writer} Writer */ LocationLL.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.id1 != null && Object.hasOwnProperty.call(message, "id1")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.id1); - if (message.id2 != null && Object.hasOwnProperty.call(message, "id2")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.id2); + if (!writer) writer = $Writer.create(); + if (message.id1 != null && Object.hasOwnProperty.call(message, 'id1')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int64(message.id1); + if (message.id2 != null && Object.hasOwnProperty.call(message, 'id2')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int64(message.id2); return writer; }; @@ -149271,23 +154563,23 @@ export const Tokens = $root.Tokens = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ LocationLL.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Tokens.LocationLL(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Tokens.LocationLL(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.id1 = reader.int64(); break; } - case 2: { + case 2: { message.id2 = reader.int64(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -149304,8 +154596,7 @@ export const Tokens = $root.Tokens = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ LocationLL.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -149318,14 +154609,19 @@ export const Tokens = $root.Tokens = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ LocationLL.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.id1 != null && message.hasOwnProperty("id1")) - if (!$util.isInteger(message.id1) && !(message.id1 && $util.isInteger(message.id1.low) && $util.isInteger(message.id1.high))) - return "id1: integer|Long expected"; - if (message.id2 != null && message.hasOwnProperty("id2")) - if (!$util.isInteger(message.id2) && !(message.id2 && $util.isInteger(message.id2.low) && $util.isInteger(message.id2.high))) - return "id2: integer|Long expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.id1 != null && message.hasOwnProperty('id1')) + if ( + !$util.isInteger(message.id1) && + !(message.id1 && $util.isInteger(message.id1.low) && $util.isInteger(message.id1.high)) + ) + return 'id1: integer|Long expected'; + if (message.id2 != null && message.hasOwnProperty('id2')) + if ( + !$util.isInteger(message.id2) && + !(message.id2 && $util.isInteger(message.id2.low) && $util.isInteger(message.id2.high)) + ) + return 'id2: integer|Long expected'; return null; }; @@ -149338,26 +154634,19 @@ export const Tokens = $root.Tokens = (() => { * @returns {Tokens.LocationLL} LocationLL */ LocationLL.fromObject = function fromObject(object) { - if (object instanceof $root.Tokens.LocationLL) - return object; + if (object instanceof $root.Tokens.LocationLL) return object; let message = new $root.Tokens.LocationLL(); if (object.id1 != null) - if ($util.Long) - (message.id1 = $util.Long.fromValue(object.id1)).unsigned = false; - else if (typeof object.id1 === "string") - message.id1 = parseInt(object.id1, 10); - else if (typeof object.id1 === "number") - message.id1 = object.id1; - else if (typeof object.id1 === "object") + if ($util.Long) (message.id1 = $util.Long.fromValue(object.id1)).unsigned = false; + else if (typeof object.id1 === 'string') message.id1 = parseInt(object.id1, 10); + else if (typeof object.id1 === 'number') message.id1 = object.id1; + else if (typeof object.id1 === 'object') message.id1 = new $util.LongBits(object.id1.low >>> 0, object.id1.high >>> 0).toNumber(); if (object.id2 != null) - if ($util.Long) - (message.id2 = $util.Long.fromValue(object.id2)).unsigned = false; - else if (typeof object.id2 === "string") - message.id2 = parseInt(object.id2, 10); - else if (typeof object.id2 === "number") - message.id2 = object.id2; - else if (typeof object.id2 === "object") + if ($util.Long) (message.id2 = $util.Long.fromValue(object.id2)).unsigned = false; + else if (typeof object.id2 === 'string') message.id2 = parseInt(object.id2, 10); + else if (typeof object.id2 === 'number') message.id2 = object.id2; + else if (typeof object.id2 === 'object') message.id2 = new $util.LongBits(object.id2.low >>> 0, object.id2.high >>> 0).toNumber(); return message; }; @@ -149372,31 +154661,40 @@ export const Tokens = $root.Tokens = (() => { * @returns {Object.} Plain object */ LocationLL.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.id1 = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.id1 = options.longs === String ? "0" : 0; + object.id1 = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.id1 = options.longs === String ? '0' : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.id2 = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.id2 = options.longs === String ? "0" : 0; + object.id2 = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.id2 = options.longs === String ? '0' : 0; } - if (message.id1 != null && message.hasOwnProperty("id1")) - if (typeof message.id1 === "number") + if (message.id1 != null && message.hasOwnProperty('id1')) + if (typeof message.id1 === 'number') object.id1 = options.longs === String ? String(message.id1) : message.id1; else - object.id1 = options.longs === String ? $util.Long.prototype.toString.call(message.id1) : options.longs === Number ? new $util.LongBits(message.id1.low >>> 0, message.id1.high >>> 0).toNumber() : message.id1; - if (message.id2 != null && message.hasOwnProperty("id2")) - if (typeof message.id2 === "number") + object.id1 = + options.longs === String + ? $util.Long.prototype.toString.call(message.id1) + : options.longs === Number + ? new $util.LongBits(message.id1.low >>> 0, message.id1.high >>> 0).toNumber() + : message.id1; + if (message.id2 != null && message.hasOwnProperty('id2')) + if (typeof message.id2 === 'number') object.id2 = options.longs === String ? String(message.id2) : message.id2; else - object.id2 = options.longs === String ? $util.Long.prototype.toString.call(message.id2) : options.longs === Number ? new $util.LongBits(message.id2.low >>> 0, message.id2.high >>> 0).toNumber() : message.id2; + object.id2 = + options.longs === String + ? $util.Long.prototype.toString.call(message.id2) + : options.longs === Number + ? new $util.LongBits(message.id2.low >>> 0, message.id2.high >>> 0).toNumber() + : message.id2; return object; }; @@ -149421,16 +154719,15 @@ export const Tokens = $root.Tokens = (() => { */ LocationLL.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Tokens.LocationLL"; + return typeUrlPrefix + '/Tokens.LocationLL'; }; return LocationLL; })(); - Tokens.LocationLI = (function() { - + Tokens.LocationLI = (function () { /** * Properties of a LocationLI. * @memberof Tokens @@ -149450,8 +154747,7 @@ export const Tokens = $root.Tokens = (() => { function LocationLI(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -149460,7 +154756,7 @@ export const Tokens = $root.Tokens = (() => { * @memberof Tokens.LocationLI * @instance */ - LocationLI.prototype.id1 = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + LocationLI.prototype.id1 = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * LocationLI id2. @@ -149492,12 +154788,11 @@ export const Tokens = $root.Tokens = (() => { * @returns {$protobuf.Writer} Writer */ LocationLI.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.id1 != null && Object.hasOwnProperty.call(message, "id1")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.id1); - if (message.id2 != null && Object.hasOwnProperty.call(message, "id2")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.id2); + if (!writer) writer = $Writer.create(); + if (message.id1 != null && Object.hasOwnProperty.call(message, 'id1')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int64(message.id1); + if (message.id2 != null && Object.hasOwnProperty.call(message, 'id2')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int32(message.id2); return writer; }; @@ -149526,23 +154821,23 @@ export const Tokens = $root.Tokens = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ LocationLI.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Tokens.LocationLI(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Tokens.LocationLI(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.id1 = reader.int64(); break; } - case 2: { + case 2: { message.id2 = reader.int32(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -149559,8 +154854,7 @@ export const Tokens = $root.Tokens = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ LocationLI.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -149573,14 +154867,15 @@ export const Tokens = $root.Tokens = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ LocationLI.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.id1 != null && message.hasOwnProperty("id1")) - if (!$util.isInteger(message.id1) && !(message.id1 && $util.isInteger(message.id1.low) && $util.isInteger(message.id1.high))) - return "id1: integer|Long expected"; - if (message.id2 != null && message.hasOwnProperty("id2")) - if (!$util.isInteger(message.id2)) - return "id2: integer expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.id1 != null && message.hasOwnProperty('id1')) + if ( + !$util.isInteger(message.id1) && + !(message.id1 && $util.isInteger(message.id1.low) && $util.isInteger(message.id1.high)) + ) + return 'id1: integer|Long expected'; + if (message.id2 != null && message.hasOwnProperty('id2')) + if (!$util.isInteger(message.id2)) return 'id2: integer expected'; return null; }; @@ -149593,20 +154888,15 @@ export const Tokens = $root.Tokens = (() => { * @returns {Tokens.LocationLI} LocationLI */ LocationLI.fromObject = function fromObject(object) { - if (object instanceof $root.Tokens.LocationLI) - return object; + if (object instanceof $root.Tokens.LocationLI) return object; let message = new $root.Tokens.LocationLI(); if (object.id1 != null) - if ($util.Long) - (message.id1 = $util.Long.fromValue(object.id1)).unsigned = false; - else if (typeof object.id1 === "string") - message.id1 = parseInt(object.id1, 10); - else if (typeof object.id1 === "number") - message.id1 = object.id1; - else if (typeof object.id1 === "object") + if ($util.Long) (message.id1 = $util.Long.fromValue(object.id1)).unsigned = false; + else if (typeof object.id1 === 'string') message.id1 = parseInt(object.id1, 10); + else if (typeof object.id1 === 'number') message.id1 = object.id1; + else if (typeof object.id1 === 'object') message.id1 = new $util.LongBits(object.id1.low >>> 0, object.id1.high >>> 0).toNumber(); - if (object.id2 != null) - message.id2 = object.id2 | 0; + if (object.id2 != null) message.id2 = object.id2 | 0; return message; }; @@ -149620,24 +154910,27 @@ export const Tokens = $root.Tokens = (() => { * @returns {Object.} Plain object */ LocationLI.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.id1 = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.id1 = options.longs === String ? "0" : 0; + object.id1 = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.id1 = options.longs === String ? '0' : 0; object.id2 = 0; } - if (message.id1 != null && message.hasOwnProperty("id1")) - if (typeof message.id1 === "number") + if (message.id1 != null && message.hasOwnProperty('id1')) + if (typeof message.id1 === 'number') object.id1 = options.longs === String ? String(message.id1) : message.id1; else - object.id1 = options.longs === String ? $util.Long.prototype.toString.call(message.id1) : options.longs === Number ? new $util.LongBits(message.id1.low >>> 0, message.id1.high >>> 0).toNumber() : message.id1; - if (message.id2 != null && message.hasOwnProperty("id2")) - object.id2 = message.id2; + object.id1 = + options.longs === String + ? $util.Long.prototype.toString.call(message.id1) + : options.longs === Number + ? new $util.LongBits(message.id1.low >>> 0, message.id1.high >>> 0).toNumber() + : message.id1; + if (message.id2 != null && message.hasOwnProperty('id2')) object.id2 = message.id2; return object; }; @@ -149662,16 +154955,15 @@ export const Tokens = $root.Tokens = (() => { */ LocationLI.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Tokens.LocationLI"; + return typeUrlPrefix + '/Tokens.LocationLI'; }; return LocationLI; })(); - Tokens.LocationII = (function() { - + Tokens.LocationII = (function () { /** * Properties of a LocationII. * @memberof Tokens @@ -149691,8 +154983,7 @@ export const Tokens = $root.Tokens = (() => { function LocationII(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -149733,12 +155024,11 @@ export const Tokens = $root.Tokens = (() => { * @returns {$protobuf.Writer} Writer */ LocationII.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.id1 != null && Object.hasOwnProperty.call(message, "id1")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.id1); - if (message.id2 != null && Object.hasOwnProperty.call(message, "id2")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.id2); + if (!writer) writer = $Writer.create(); + if (message.id1 != null && Object.hasOwnProperty.call(message, 'id1')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int32(message.id1); + if (message.id2 != null && Object.hasOwnProperty.call(message, 'id2')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int32(message.id2); return writer; }; @@ -149767,23 +155057,23 @@ export const Tokens = $root.Tokens = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ LocationII.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Tokens.LocationII(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Tokens.LocationII(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.id1 = reader.int32(); break; } - case 2: { + case 2: { message.id2 = reader.int32(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -149800,8 +155090,7 @@ export const Tokens = $root.Tokens = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ LocationII.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -149814,14 +155103,11 @@ export const Tokens = $root.Tokens = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ LocationII.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.id1 != null && message.hasOwnProperty("id1")) - if (!$util.isInteger(message.id1)) - return "id1: integer expected"; - if (message.id2 != null && message.hasOwnProperty("id2")) - if (!$util.isInteger(message.id2)) - return "id2: integer expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.id1 != null && message.hasOwnProperty('id1')) + if (!$util.isInteger(message.id1)) return 'id1: integer expected'; + if (message.id2 != null && message.hasOwnProperty('id2')) + if (!$util.isInteger(message.id2)) return 'id2: integer expected'; return null; }; @@ -149834,13 +155120,10 @@ export const Tokens = $root.Tokens = (() => { * @returns {Tokens.LocationII} LocationII */ LocationII.fromObject = function fromObject(object) { - if (object instanceof $root.Tokens.LocationII) - return object; + if (object instanceof $root.Tokens.LocationII) return object; let message = new $root.Tokens.LocationII(); - if (object.id1 != null) - message.id1 = object.id1 | 0; - if (object.id2 != null) - message.id2 = object.id2 | 0; + if (object.id1 != null) message.id1 = object.id1 | 0; + if (object.id2 != null) message.id2 = object.id2 | 0; return message; }; @@ -149854,17 +155137,14 @@ export const Tokens = $root.Tokens = (() => { * @returns {Object.} Plain object */ LocationII.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { object.id1 = 0; object.id2 = 0; } - if (message.id1 != null && message.hasOwnProperty("id1")) - object.id1 = message.id1; - if (message.id2 != null && message.hasOwnProperty("id2")) - object.id2 = message.id2; + if (message.id1 != null && message.hasOwnProperty('id1')) object.id1 = message.id1; + if (message.id2 != null && message.hasOwnProperty('id2')) object.id2 = message.id2; return object; }; @@ -149889,16 +155169,15 @@ export const Tokens = $root.Tokens = (() => { */ LocationII.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Tokens.LocationII"; + return typeUrlPrefix + '/Tokens.LocationII'; }; return LocationII; })(); - Tokens.LocationB = (function() { - + Tokens.LocationB = (function () { /** * Properties of a LocationB. * @memberof Tokens @@ -149917,8 +155196,7 @@ export const Tokens = $root.Tokens = (() => { function LocationB(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -149951,10 +155229,9 @@ export const Tokens = $root.Tokens = (() => { * @returns {$protobuf.Writer} Writer */ LocationB.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.uid != null && Object.hasOwnProperty.call(message, "uid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.uid); + if (!writer) writer = $Writer.create(); + if (message.uid != null && Object.hasOwnProperty.call(message, 'uid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.uid); return writer; }; @@ -149983,19 +155260,19 @@ export const Tokens = $root.Tokens = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ LocationB.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Tokens.LocationB(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Tokens.LocationB(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.uid = reader.bytes(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -150012,8 +155289,7 @@ export const Tokens = $root.Tokens = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ LocationB.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -150026,11 +155302,10 @@ export const Tokens = $root.Tokens = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ LocationB.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.uid != null && message.hasOwnProperty("uid")) - if (!(message.uid && typeof message.uid.length === "number" || $util.isString(message.uid))) - return "uid: buffer expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.uid != null && message.hasOwnProperty('uid')) + if (!((message.uid && typeof message.uid.length === 'number') || $util.isString(message.uid))) + return 'uid: buffer expected'; return null; }; @@ -150043,14 +155318,16 @@ export const Tokens = $root.Tokens = (() => { * @returns {Tokens.LocationB} LocationB */ LocationB.fromObject = function fromObject(object) { - if (object instanceof $root.Tokens.LocationB) - return object; + if (object instanceof $root.Tokens.LocationB) return object; let message = new $root.Tokens.LocationB(); if (object.uid != null) - if (typeof object.uid === "string") - $util.base64.decode(object.uid, message.uid = $util.newBuffer($util.base64.length(object.uid)), 0); - else if (object.uid.length >= 0) - message.uid = object.uid; + if (typeof object.uid === 'string') + $util.base64.decode( + object.uid, + (message.uid = $util.newBuffer($util.base64.length(object.uid))), + 0 + ); + else if (object.uid.length >= 0) message.uid = object.uid; return message; }; @@ -150064,19 +155341,21 @@ export const Tokens = $root.Tokens = (() => { * @returns {Object.} Plain object */ LocationB.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) - if (options.bytes === String) - object.uid = ""; + if (options.bytes === String) object.uid = ''; else { object.uid = []; - if (options.bytes !== Array) - object.uid = $util.newBuffer(object.uid); + if (options.bytes !== Array) object.uid = $util.newBuffer(object.uid); } - if (message.uid != null && message.hasOwnProperty("uid")) - object.uid = options.bytes === String ? $util.base64.encode(message.uid, 0, message.uid.length) : options.bytes === Array ? Array.prototype.slice.call(message.uid) : message.uid; + if (message.uid != null && message.hasOwnProperty('uid')) + object.uid = + options.bytes === String + ? $util.base64.encode(message.uid, 0, message.uid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.uid) + : message.uid; return object; }; @@ -150101,16 +155380,15 @@ export const Tokens = $root.Tokens = (() => { */ LocationB.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Tokens.LocationB"; + return typeUrlPrefix + '/Tokens.LocationB'; }; return LocationB; })(); - Tokens.LocationLB = (function() { - + Tokens.LocationLB = (function () { /** * Properties of a LocationLB. * @memberof Tokens @@ -150130,8 +155408,7 @@ export const Tokens = $root.Tokens = (() => { function LocationLB(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -150140,7 +155417,7 @@ export const Tokens = $root.Tokens = (() => { * @memberof Tokens.LocationLB * @instance */ - LocationLB.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + LocationLB.prototype.id = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * LocationLB uid. @@ -150172,12 +155449,11 @@ export const Tokens = $root.Tokens = (() => { * @returns {$protobuf.Writer} Writer */ LocationLB.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.id != null && Object.hasOwnProperty.call(message, "id")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.id); - if (message.uid != null && Object.hasOwnProperty.call(message, "uid")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.uid); + if (!writer) writer = $Writer.create(); + if (message.id != null && Object.hasOwnProperty.call(message, 'id')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int64(message.id); + if (message.uid != null && Object.hasOwnProperty.call(message, 'uid')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.uid); return writer; }; @@ -150206,23 +155482,23 @@ export const Tokens = $root.Tokens = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ LocationLB.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Tokens.LocationLB(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Tokens.LocationLB(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.id = reader.int64(); break; } - case 2: { + case 2: { message.uid = reader.bytes(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -150239,8 +155515,7 @@ export const Tokens = $root.Tokens = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ LocationLB.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -150253,14 +155528,16 @@ export const Tokens = $root.Tokens = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ LocationLB.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) - if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high))) - return "id: integer|Long expected"; - if (message.uid != null && message.hasOwnProperty("uid")) - if (!(message.uid && typeof message.uid.length === "number" || $util.isString(message.uid))) - return "uid: buffer expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.id != null && message.hasOwnProperty('id')) + if ( + !$util.isInteger(message.id) && + !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high)) + ) + return 'id: integer|Long expected'; + if (message.uid != null && message.hasOwnProperty('uid')) + if (!((message.uid && typeof message.uid.length === 'number') || $util.isString(message.uid))) + return 'uid: buffer expected'; return null; }; @@ -150273,23 +155550,22 @@ export const Tokens = $root.Tokens = (() => { * @returns {Tokens.LocationLB} LocationLB */ LocationLB.fromObject = function fromObject(object) { - if (object instanceof $root.Tokens.LocationLB) - return object; + if (object instanceof $root.Tokens.LocationLB) return object; let message = new $root.Tokens.LocationLB(); if (object.id != null) - if ($util.Long) - (message.id = $util.Long.fromValue(object.id)).unsigned = false; - else if (typeof object.id === "string") - message.id = parseInt(object.id, 10); - else if (typeof object.id === "number") - message.id = object.id; - else if (typeof object.id === "object") + if ($util.Long) (message.id = $util.Long.fromValue(object.id)).unsigned = false; + else if (typeof object.id === 'string') message.id = parseInt(object.id, 10); + else if (typeof object.id === 'number') message.id = object.id; + else if (typeof object.id === 'object') message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber(); if (object.uid != null) - if (typeof object.uid === "string") - $util.base64.decode(object.uid, message.uid = $util.newBuffer($util.base64.length(object.uid)), 0); - else if (object.uid.length >= 0) - message.uid = object.uid; + if (typeof object.uid === 'string') + $util.base64.decode( + object.uid, + (message.uid = $util.newBuffer($util.base64.length(object.uid))), + 0 + ); + else if (object.uid.length >= 0) message.uid = object.uid; return message; }; @@ -150303,30 +155579,37 @@ export const Tokens = $root.Tokens = (() => { * @returns {Object.} Plain object */ LocationLB.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.id = options.longs === String ? "0" : 0; - if (options.bytes === String) - object.uid = ""; + object.id = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.id = options.longs === String ? '0' : 0; + if (options.bytes === String) object.uid = ''; else { object.uid = []; - if (options.bytes !== Array) - object.uid = $util.newBuffer(object.uid); + if (options.bytes !== Array) object.uid = $util.newBuffer(object.uid); } } - if (message.id != null && message.hasOwnProperty("id")) - if (typeof message.id === "number") + if (message.id != null && message.hasOwnProperty('id')) + if (typeof message.id === 'number') object.id = options.longs === String ? String(message.id) : message.id; else - object.id = options.longs === String ? $util.Long.prototype.toString.call(message.id) : options.longs === Number ? new $util.LongBits(message.id.low >>> 0, message.id.high >>> 0).toNumber() : message.id; - if (message.uid != null && message.hasOwnProperty("uid")) - object.uid = options.bytes === String ? $util.base64.encode(message.uid, 0, message.uid.length) : options.bytes === Array ? Array.prototype.slice.call(message.uid) : message.uid; + object.id = + options.longs === String + ? $util.Long.prototype.toString.call(message.id) + : options.longs === Number + ? new $util.LongBits(message.id.low >>> 0, message.id.high >>> 0).toNumber() + : message.id; + if (message.uid != null && message.hasOwnProperty('uid')) + object.uid = + options.bytes === String + ? $util.base64.encode(message.uid, 0, message.uid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.uid) + : message.uid; return object; }; @@ -150351,16 +155634,15 @@ export const Tokens = $root.Tokens = (() => { */ LocationLB.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Tokens.LocationLB"; + return typeUrlPrefix + '/Tokens.LocationLB'; }; return LocationLB; })(); - Tokens.LocationBI = (function() { - + Tokens.LocationBI = (function () { /** * Properties of a LocationBI. * @memberof Tokens @@ -150380,8 +155662,7 @@ export const Tokens = $root.Tokens = (() => { function LocationBI(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -150422,12 +155703,11 @@ export const Tokens = $root.Tokens = (() => { * @returns {$protobuf.Writer} Writer */ LocationBI.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.uid != null && Object.hasOwnProperty.call(message, "uid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.uid); - if (message.id != null && Object.hasOwnProperty.call(message, "id")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.id); + if (!writer) writer = $Writer.create(); + if (message.uid != null && Object.hasOwnProperty.call(message, 'uid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.uid); + if (message.id != null && Object.hasOwnProperty.call(message, 'id')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int32(message.id); return writer; }; @@ -150456,23 +155736,23 @@ export const Tokens = $root.Tokens = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ LocationBI.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Tokens.LocationBI(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Tokens.LocationBI(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.uid = reader.bytes(); break; } - case 2: { + case 2: { message.id = reader.int32(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -150489,8 +155769,7 @@ export const Tokens = $root.Tokens = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ LocationBI.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -150503,14 +155782,12 @@ export const Tokens = $root.Tokens = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ LocationBI.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.uid != null && message.hasOwnProperty("uid")) - if (!(message.uid && typeof message.uid.length === "number" || $util.isString(message.uid))) - return "uid: buffer expected"; - if (message.id != null && message.hasOwnProperty("id")) - if (!$util.isInteger(message.id)) - return "id: integer expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.uid != null && message.hasOwnProperty('uid')) + if (!((message.uid && typeof message.uid.length === 'number') || $util.isString(message.uid))) + return 'uid: buffer expected'; + if (message.id != null && message.hasOwnProperty('id')) + if (!$util.isInteger(message.id)) return 'id: integer expected'; return null; }; @@ -150523,16 +155800,17 @@ export const Tokens = $root.Tokens = (() => { * @returns {Tokens.LocationBI} LocationBI */ LocationBI.fromObject = function fromObject(object) { - if (object instanceof $root.Tokens.LocationBI) - return object; + if (object instanceof $root.Tokens.LocationBI) return object; let message = new $root.Tokens.LocationBI(); if (object.uid != null) - if (typeof object.uid === "string") - $util.base64.decode(object.uid, message.uid = $util.newBuffer($util.base64.length(object.uid)), 0); - else if (object.uid.length >= 0) - message.uid = object.uid; - if (object.id != null) - message.id = object.id | 0; + if (typeof object.uid === 'string') + $util.base64.decode( + object.uid, + (message.uid = $util.newBuffer($util.base64.length(object.uid))), + 0 + ); + else if (object.uid.length >= 0) message.uid = object.uid; + if (object.id != null) message.id = object.id | 0; return message; }; @@ -150546,23 +155824,24 @@ export const Tokens = $root.Tokens = (() => { * @returns {Object.} Plain object */ LocationBI.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.uid = ""; + if (options.bytes === String) object.uid = ''; else { object.uid = []; - if (options.bytes !== Array) - object.uid = $util.newBuffer(object.uid); + if (options.bytes !== Array) object.uid = $util.newBuffer(object.uid); } object.id = 0; } - if (message.uid != null && message.hasOwnProperty("uid")) - object.uid = options.bytes === String ? $util.base64.encode(message.uid, 0, message.uid.length) : options.bytes === Array ? Array.prototype.slice.call(message.uid) : message.uid; - if (message.id != null && message.hasOwnProperty("id")) - object.id = message.id; + if (message.uid != null && message.hasOwnProperty('uid')) + object.uid = + options.bytes === String + ? $util.base64.encode(message.uid, 0, message.uid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.uid) + : message.uid; + if (message.id != null && message.hasOwnProperty('id')) object.id = message.id; return object; }; @@ -150587,16 +155866,15 @@ export const Tokens = $root.Tokens = (() => { */ LocationBI.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Tokens.LocationBI"; + return typeUrlPrefix + '/Tokens.LocationBI'; }; return LocationBI; })(); - Tokens.LocationLS = (function() { - + Tokens.LocationLS = (function () { /** * Properties of a LocationLS. * @memberof Tokens @@ -150616,8 +155894,7 @@ export const Tokens = $root.Tokens = (() => { function LocationLS(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -150626,7 +155903,7 @@ export const Tokens = $root.Tokens = (() => { * @memberof Tokens.LocationLS * @instance */ - LocationLS.prototype.id1 = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + LocationLS.prototype.id1 = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * LocationLS str. @@ -150634,7 +155911,7 @@ export const Tokens = $root.Tokens = (() => { * @memberof Tokens.LocationLS * @instance */ - LocationLS.prototype.str = ""; + LocationLS.prototype.str = ''; /** * Creates a new LocationLS instance using the specified properties. @@ -150658,12 +155935,11 @@ export const Tokens = $root.Tokens = (() => { * @returns {$protobuf.Writer} Writer */ LocationLS.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.id1 != null && Object.hasOwnProperty.call(message, "id1")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.id1); - if (message.str != null && Object.hasOwnProperty.call(message, "str")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.str); + if (!writer) writer = $Writer.create(); + if (message.id1 != null && Object.hasOwnProperty.call(message, 'id1')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int64(message.id1); + if (message.str != null && Object.hasOwnProperty.call(message, 'str')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.str); return writer; }; @@ -150692,23 +155968,23 @@ export const Tokens = $root.Tokens = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ LocationLS.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Tokens.LocationLS(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Tokens.LocationLS(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.id1 = reader.int64(); break; } - case 2: { + case 2: { message.str = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -150725,8 +156001,7 @@ export const Tokens = $root.Tokens = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ LocationLS.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -150739,14 +156014,15 @@ export const Tokens = $root.Tokens = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ LocationLS.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.id1 != null && message.hasOwnProperty("id1")) - if (!$util.isInteger(message.id1) && !(message.id1 && $util.isInteger(message.id1.low) && $util.isInteger(message.id1.high))) - return "id1: integer|Long expected"; - if (message.str != null && message.hasOwnProperty("str")) - if (!$util.isString(message.str)) - return "str: string expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.id1 != null && message.hasOwnProperty('id1')) + if ( + !$util.isInteger(message.id1) && + !(message.id1 && $util.isInteger(message.id1.low) && $util.isInteger(message.id1.high)) + ) + return 'id1: integer|Long expected'; + if (message.str != null && message.hasOwnProperty('str')) + if (!$util.isString(message.str)) return 'str: string expected'; return null; }; @@ -150759,20 +156035,15 @@ export const Tokens = $root.Tokens = (() => { * @returns {Tokens.LocationLS} LocationLS */ LocationLS.fromObject = function fromObject(object) { - if (object instanceof $root.Tokens.LocationLS) - return object; + if (object instanceof $root.Tokens.LocationLS) return object; let message = new $root.Tokens.LocationLS(); if (object.id1 != null) - if ($util.Long) - (message.id1 = $util.Long.fromValue(object.id1)).unsigned = false; - else if (typeof object.id1 === "string") - message.id1 = parseInt(object.id1, 10); - else if (typeof object.id1 === "number") - message.id1 = object.id1; - else if (typeof object.id1 === "object") + if ($util.Long) (message.id1 = $util.Long.fromValue(object.id1)).unsigned = false; + else if (typeof object.id1 === 'string') message.id1 = parseInt(object.id1, 10); + else if (typeof object.id1 === 'number') message.id1 = object.id1; + else if (typeof object.id1 === 'object') message.id1 = new $util.LongBits(object.id1.low >>> 0, object.id1.high >>> 0).toNumber(); - if (object.str != null) - message.str = String(object.str); + if (object.str != null) message.str = String(object.str); return message; }; @@ -150786,24 +156057,27 @@ export const Tokens = $root.Tokens = (() => { * @returns {Object.} Plain object */ LocationLS.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.id1 = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.id1 = options.longs === String ? "0" : 0; - object.str = ""; + object.id1 = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.id1 = options.longs === String ? '0' : 0; + object.str = ''; } - if (message.id1 != null && message.hasOwnProperty("id1")) - if (typeof message.id1 === "number") + if (message.id1 != null && message.hasOwnProperty('id1')) + if (typeof message.id1 === 'number') object.id1 = options.longs === String ? String(message.id1) : message.id1; else - object.id1 = options.longs === String ? $util.Long.prototype.toString.call(message.id1) : options.longs === Number ? new $util.LongBits(message.id1.low >>> 0, message.id1.high >>> 0).toNumber() : message.id1; - if (message.str != null && message.hasOwnProperty("str")) - object.str = message.str; + object.id1 = + options.longs === String + ? $util.Long.prototype.toString.call(message.id1) + : options.longs === Number + ? new $util.LongBits(message.id1.low >>> 0, message.id1.high >>> 0).toNumber() + : message.id1; + if (message.str != null && message.hasOwnProperty('str')) object.str = message.str; return object; }; @@ -150828,16 +156102,15 @@ export const Tokens = $root.Tokens = (() => { */ LocationLS.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Tokens.LocationLS"; + return typeUrlPrefix + '/Tokens.LocationLS'; }; return LocationLS; })(); - Tokens.EnterpriseDataRoleTeamsPageToken = (function() { - + Tokens.EnterpriseDataRoleTeamsPageToken = (function () { /** * Properties of an EnterpriseDataRoleTeamsPageToken. * @memberof Tokens @@ -150858,8 +156131,7 @@ export const Tokens = $root.Tokens = (() => { function EnterpriseDataRoleTeamsPageToken(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -150868,7 +156140,7 @@ export const Tokens = $root.Tokens = (() => { * @memberof Tokens.EnterpriseDataRoleTeamsPageToken * @instance */ - EnterpriseDataRoleTeamsPageToken.prototype.lastNodeId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + EnterpriseDataRoleTeamsPageToken.prototype.lastNodeId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * EnterpriseDataRoleTeamsPageToken lastRoleId. @@ -150876,7 +156148,7 @@ export const Tokens = $root.Tokens = (() => { * @memberof Tokens.EnterpriseDataRoleTeamsPageToken * @instance */ - EnterpriseDataRoleTeamsPageToken.prototype.lastRoleId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + EnterpriseDataRoleTeamsPageToken.prototype.lastRoleId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * EnterpriseDataRoleTeamsPageToken lastTeamUid. @@ -150908,14 +156180,13 @@ export const Tokens = $root.Tokens = (() => { * @returns {$protobuf.Writer} Writer */ EnterpriseDataRoleTeamsPageToken.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.lastNodeId != null && Object.hasOwnProperty.call(message, "lastNodeId")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.lastNodeId); - if (message.lastRoleId != null && Object.hasOwnProperty.call(message, "lastRoleId")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.lastRoleId); - if (message.lastTeamUid != null && Object.hasOwnProperty.call(message, "lastTeamUid")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.lastTeamUid); + if (!writer) writer = $Writer.create(); + if (message.lastNodeId != null && Object.hasOwnProperty.call(message, 'lastNodeId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int64(message.lastNodeId); + if (message.lastRoleId != null && Object.hasOwnProperty.call(message, 'lastRoleId')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int64(message.lastRoleId); + if (message.lastTeamUid != null && Object.hasOwnProperty.call(message, 'lastTeamUid')) + writer.uint32(/* id 3, wireType 2 =*/ 26).bytes(message.lastTeamUid); return writer; }; @@ -150944,27 +156215,27 @@ export const Tokens = $root.Tokens = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ EnterpriseDataRoleTeamsPageToken.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Tokens.EnterpriseDataRoleTeamsPageToken(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Tokens.EnterpriseDataRoleTeamsPageToken(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.lastNodeId = reader.int64(); break; } - case 2: { + case 2: { message.lastRoleId = reader.int64(); break; } - case 3: { + case 3: { message.lastTeamUid = reader.bytes(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -150981,8 +156252,7 @@ export const Tokens = $root.Tokens = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ EnterpriseDataRoleTeamsPageToken.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -150995,17 +156265,35 @@ export const Tokens = $root.Tokens = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ EnterpriseDataRoleTeamsPageToken.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.lastNodeId != null && message.hasOwnProperty("lastNodeId")) - if (!$util.isInteger(message.lastNodeId) && !(message.lastNodeId && $util.isInteger(message.lastNodeId.low) && $util.isInteger(message.lastNodeId.high))) - return "lastNodeId: integer|Long expected"; - if (message.lastRoleId != null && message.hasOwnProperty("lastRoleId")) - if (!$util.isInteger(message.lastRoleId) && !(message.lastRoleId && $util.isInteger(message.lastRoleId.low) && $util.isInteger(message.lastRoleId.high))) - return "lastRoleId: integer|Long expected"; - if (message.lastTeamUid != null && message.hasOwnProperty("lastTeamUid")) - if (!(message.lastTeamUid && typeof message.lastTeamUid.length === "number" || $util.isString(message.lastTeamUid))) - return "lastTeamUid: buffer expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.lastNodeId != null && message.hasOwnProperty('lastNodeId')) + if ( + !$util.isInteger(message.lastNodeId) && + !( + message.lastNodeId && + $util.isInteger(message.lastNodeId.low) && + $util.isInteger(message.lastNodeId.high) + ) + ) + return 'lastNodeId: integer|Long expected'; + if (message.lastRoleId != null && message.hasOwnProperty('lastRoleId')) + if ( + !$util.isInteger(message.lastRoleId) && + !( + message.lastRoleId && + $util.isInteger(message.lastRoleId.low) && + $util.isInteger(message.lastRoleId.high) + ) + ) + return 'lastRoleId: integer|Long expected'; + if (message.lastTeamUid != null && message.hasOwnProperty('lastTeamUid')) + if ( + !( + (message.lastTeamUid && typeof message.lastTeamUid.length === 'number') || + $util.isString(message.lastTeamUid) + ) + ) + return 'lastTeamUid: buffer expected'; return null; }; @@ -151018,32 +156306,34 @@ export const Tokens = $root.Tokens = (() => { * @returns {Tokens.EnterpriseDataRoleTeamsPageToken} EnterpriseDataRoleTeamsPageToken */ EnterpriseDataRoleTeamsPageToken.fromObject = function fromObject(object) { - if (object instanceof $root.Tokens.EnterpriseDataRoleTeamsPageToken) - return object; + if (object instanceof $root.Tokens.EnterpriseDataRoleTeamsPageToken) return object; let message = new $root.Tokens.EnterpriseDataRoleTeamsPageToken(); if (object.lastNodeId != null) - if ($util.Long) - (message.lastNodeId = $util.Long.fromValue(object.lastNodeId)).unsigned = false; - else if (typeof object.lastNodeId === "string") - message.lastNodeId = parseInt(object.lastNodeId, 10); - else if (typeof object.lastNodeId === "number") - message.lastNodeId = object.lastNodeId; - else if (typeof object.lastNodeId === "object") - message.lastNodeId = new $util.LongBits(object.lastNodeId.low >>> 0, object.lastNodeId.high >>> 0).toNumber(); + if ($util.Long) (message.lastNodeId = $util.Long.fromValue(object.lastNodeId)).unsigned = false; + else if (typeof object.lastNodeId === 'string') message.lastNodeId = parseInt(object.lastNodeId, 10); + else if (typeof object.lastNodeId === 'number') message.lastNodeId = object.lastNodeId; + else if (typeof object.lastNodeId === 'object') + message.lastNodeId = new $util.LongBits( + object.lastNodeId.low >>> 0, + object.lastNodeId.high >>> 0 + ).toNumber(); if (object.lastRoleId != null) - if ($util.Long) - (message.lastRoleId = $util.Long.fromValue(object.lastRoleId)).unsigned = false; - else if (typeof object.lastRoleId === "string") - message.lastRoleId = parseInt(object.lastRoleId, 10); - else if (typeof object.lastRoleId === "number") - message.lastRoleId = object.lastRoleId; - else if (typeof object.lastRoleId === "object") - message.lastRoleId = new $util.LongBits(object.lastRoleId.low >>> 0, object.lastRoleId.high >>> 0).toNumber(); + if ($util.Long) (message.lastRoleId = $util.Long.fromValue(object.lastRoleId)).unsigned = false; + else if (typeof object.lastRoleId === 'string') message.lastRoleId = parseInt(object.lastRoleId, 10); + else if (typeof object.lastRoleId === 'number') message.lastRoleId = object.lastRoleId; + else if (typeof object.lastRoleId === 'object') + message.lastRoleId = new $util.LongBits( + object.lastRoleId.low >>> 0, + object.lastRoleId.high >>> 0 + ).toNumber(); if (object.lastTeamUid != null) - if (typeof object.lastTeamUid === "string") - $util.base64.decode(object.lastTeamUid, message.lastTeamUid = $util.newBuffer($util.base64.length(object.lastTeamUid)), 0); - else if (object.lastTeamUid.length >= 0) - message.lastTeamUid = object.lastTeamUid; + if (typeof object.lastTeamUid === 'string') + $util.base64.decode( + object.lastTeamUid, + (message.lastTeamUid = $util.newBuffer($util.base64.length(object.lastTeamUid))), + 0 + ); + else if (object.lastTeamUid.length >= 0) message.lastTeamUid = object.lastTeamUid; return message; }; @@ -151057,40 +156347,58 @@ export const Tokens = $root.Tokens = (() => { * @returns {Object.} Plain object */ EnterpriseDataRoleTeamsPageToken.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.lastNodeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.lastNodeId = options.longs === String ? "0" : 0; + object.lastNodeId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.lastNodeId = options.longs === String ? '0' : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.lastRoleId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.lastRoleId = options.longs === String ? "0" : 0; - if (options.bytes === String) - object.lastTeamUid = ""; + object.lastRoleId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.lastRoleId = options.longs === String ? '0' : 0; + if (options.bytes === String) object.lastTeamUid = ''; else { object.lastTeamUid = []; - if (options.bytes !== Array) - object.lastTeamUid = $util.newBuffer(object.lastTeamUid); + if (options.bytes !== Array) object.lastTeamUid = $util.newBuffer(object.lastTeamUid); } } - if (message.lastNodeId != null && message.hasOwnProperty("lastNodeId")) - if (typeof message.lastNodeId === "number") + if (message.lastNodeId != null && message.hasOwnProperty('lastNodeId')) + if (typeof message.lastNodeId === 'number') object.lastNodeId = options.longs === String ? String(message.lastNodeId) : message.lastNodeId; else - object.lastNodeId = options.longs === String ? $util.Long.prototype.toString.call(message.lastNodeId) : options.longs === Number ? new $util.LongBits(message.lastNodeId.low >>> 0, message.lastNodeId.high >>> 0).toNumber() : message.lastNodeId; - if (message.lastRoleId != null && message.hasOwnProperty("lastRoleId")) - if (typeof message.lastRoleId === "number") + object.lastNodeId = + options.longs === String + ? $util.Long.prototype.toString.call(message.lastNodeId) + : options.longs === Number + ? new $util.LongBits( + message.lastNodeId.low >>> 0, + message.lastNodeId.high >>> 0 + ).toNumber() + : message.lastNodeId; + if (message.lastRoleId != null && message.hasOwnProperty('lastRoleId')) + if (typeof message.lastRoleId === 'number') object.lastRoleId = options.longs === String ? String(message.lastRoleId) : message.lastRoleId; else - object.lastRoleId = options.longs === String ? $util.Long.prototype.toString.call(message.lastRoleId) : options.longs === Number ? new $util.LongBits(message.lastRoleId.low >>> 0, message.lastRoleId.high >>> 0).toNumber() : message.lastRoleId; - if (message.lastTeamUid != null && message.hasOwnProperty("lastTeamUid")) - object.lastTeamUid = options.bytes === String ? $util.base64.encode(message.lastTeamUid, 0, message.lastTeamUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.lastTeamUid) : message.lastTeamUid; + object.lastRoleId = + options.longs === String + ? $util.Long.prototype.toString.call(message.lastRoleId) + : options.longs === Number + ? new $util.LongBits( + message.lastRoleId.low >>> 0, + message.lastRoleId.high >>> 0 + ).toNumber() + : message.lastRoleId; + if (message.lastTeamUid != null && message.hasOwnProperty('lastTeamUid')) + object.lastTeamUid = + options.bytes === String + ? $util.base64.encode(message.lastTeamUid, 0, message.lastTeamUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.lastTeamUid) + : message.lastTeamUid; return object; }; @@ -151115,16 +156423,15 @@ export const Tokens = $root.Tokens = (() => { */ EnterpriseDataRoleTeamsPageToken.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Tokens.EnterpriseDataRoleTeamsPageToken"; + return typeUrlPrefix + '/Tokens.EnterpriseDataRoleTeamsPageToken'; }; return EnterpriseDataRoleTeamsPageToken; })(); - Tokens.EnterpriseDataTeamsPageToken = (function() { - + Tokens.EnterpriseDataTeamsPageToken = (function () { /** * Properties of an EnterpriseDataTeamsPageToken. * @memberof Tokens @@ -151144,8 +156451,7 @@ export const Tokens = $root.Tokens = (() => { function EnterpriseDataTeamsPageToken(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -151154,7 +156460,7 @@ export const Tokens = $root.Tokens = (() => { * @memberof Tokens.EnterpriseDataTeamsPageToken * @instance */ - EnterpriseDataTeamsPageToken.prototype.lastNodeId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + EnterpriseDataTeamsPageToken.prototype.lastNodeId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * EnterpriseDataTeamsPageToken lastTeamUid. @@ -151186,12 +156492,11 @@ export const Tokens = $root.Tokens = (() => { * @returns {$protobuf.Writer} Writer */ EnterpriseDataTeamsPageToken.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.lastNodeId != null && Object.hasOwnProperty.call(message, "lastNodeId")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.lastNodeId); - if (message.lastTeamUid != null && Object.hasOwnProperty.call(message, "lastTeamUid")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.lastTeamUid); + if (!writer) writer = $Writer.create(); + if (message.lastNodeId != null && Object.hasOwnProperty.call(message, 'lastNodeId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int64(message.lastNodeId); + if (message.lastTeamUid != null && Object.hasOwnProperty.call(message, 'lastTeamUid')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.lastTeamUid); return writer; }; @@ -151220,23 +156525,23 @@ export const Tokens = $root.Tokens = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ EnterpriseDataTeamsPageToken.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Tokens.EnterpriseDataTeamsPageToken(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Tokens.EnterpriseDataTeamsPageToken(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.lastNodeId = reader.int64(); break; } - case 2: { + case 2: { message.lastTeamUid = reader.bytes(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -151253,8 +156558,7 @@ export const Tokens = $root.Tokens = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ EnterpriseDataTeamsPageToken.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -151267,14 +156571,25 @@ export const Tokens = $root.Tokens = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ EnterpriseDataTeamsPageToken.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.lastNodeId != null && message.hasOwnProperty("lastNodeId")) - if (!$util.isInteger(message.lastNodeId) && !(message.lastNodeId && $util.isInteger(message.lastNodeId.low) && $util.isInteger(message.lastNodeId.high))) - return "lastNodeId: integer|Long expected"; - if (message.lastTeamUid != null && message.hasOwnProperty("lastTeamUid")) - if (!(message.lastTeamUid && typeof message.lastTeamUid.length === "number" || $util.isString(message.lastTeamUid))) - return "lastTeamUid: buffer expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.lastNodeId != null && message.hasOwnProperty('lastNodeId')) + if ( + !$util.isInteger(message.lastNodeId) && + !( + message.lastNodeId && + $util.isInteger(message.lastNodeId.low) && + $util.isInteger(message.lastNodeId.high) + ) + ) + return 'lastNodeId: integer|Long expected'; + if (message.lastTeamUid != null && message.hasOwnProperty('lastTeamUid')) + if ( + !( + (message.lastTeamUid && typeof message.lastTeamUid.length === 'number') || + $util.isString(message.lastTeamUid) + ) + ) + return 'lastTeamUid: buffer expected'; return null; }; @@ -151287,23 +156602,25 @@ export const Tokens = $root.Tokens = (() => { * @returns {Tokens.EnterpriseDataTeamsPageToken} EnterpriseDataTeamsPageToken */ EnterpriseDataTeamsPageToken.fromObject = function fromObject(object) { - if (object instanceof $root.Tokens.EnterpriseDataTeamsPageToken) - return object; + if (object instanceof $root.Tokens.EnterpriseDataTeamsPageToken) return object; let message = new $root.Tokens.EnterpriseDataTeamsPageToken(); if (object.lastNodeId != null) - if ($util.Long) - (message.lastNodeId = $util.Long.fromValue(object.lastNodeId)).unsigned = false; - else if (typeof object.lastNodeId === "string") - message.lastNodeId = parseInt(object.lastNodeId, 10); - else if (typeof object.lastNodeId === "number") - message.lastNodeId = object.lastNodeId; - else if (typeof object.lastNodeId === "object") - message.lastNodeId = new $util.LongBits(object.lastNodeId.low >>> 0, object.lastNodeId.high >>> 0).toNumber(); + if ($util.Long) (message.lastNodeId = $util.Long.fromValue(object.lastNodeId)).unsigned = false; + else if (typeof object.lastNodeId === 'string') message.lastNodeId = parseInt(object.lastNodeId, 10); + else if (typeof object.lastNodeId === 'number') message.lastNodeId = object.lastNodeId; + else if (typeof object.lastNodeId === 'object') + message.lastNodeId = new $util.LongBits( + object.lastNodeId.low >>> 0, + object.lastNodeId.high >>> 0 + ).toNumber(); if (object.lastTeamUid != null) - if (typeof object.lastTeamUid === "string") - $util.base64.decode(object.lastTeamUid, message.lastTeamUid = $util.newBuffer($util.base64.length(object.lastTeamUid)), 0); - else if (object.lastTeamUid.length >= 0) - message.lastTeamUid = object.lastTeamUid; + if (typeof object.lastTeamUid === 'string') + $util.base64.decode( + object.lastTeamUid, + (message.lastTeamUid = $util.newBuffer($util.base64.length(object.lastTeamUid))), + 0 + ); + else if (object.lastTeamUid.length >= 0) message.lastTeamUid = object.lastTeamUid; return message; }; @@ -151317,30 +156634,40 @@ export const Tokens = $root.Tokens = (() => { * @returns {Object.} Plain object */ EnterpriseDataTeamsPageToken.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.lastNodeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.lastNodeId = options.longs === String ? "0" : 0; - if (options.bytes === String) - object.lastTeamUid = ""; + object.lastNodeId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.lastNodeId = options.longs === String ? '0' : 0; + if (options.bytes === String) object.lastTeamUid = ''; else { object.lastTeamUid = []; - if (options.bytes !== Array) - object.lastTeamUid = $util.newBuffer(object.lastTeamUid); + if (options.bytes !== Array) object.lastTeamUid = $util.newBuffer(object.lastTeamUid); } } - if (message.lastNodeId != null && message.hasOwnProperty("lastNodeId")) - if (typeof message.lastNodeId === "number") + if (message.lastNodeId != null && message.hasOwnProperty('lastNodeId')) + if (typeof message.lastNodeId === 'number') object.lastNodeId = options.longs === String ? String(message.lastNodeId) : message.lastNodeId; else - object.lastNodeId = options.longs === String ? $util.Long.prototype.toString.call(message.lastNodeId) : options.longs === Number ? new $util.LongBits(message.lastNodeId.low >>> 0, message.lastNodeId.high >>> 0).toNumber() : message.lastNodeId; - if (message.lastTeamUid != null && message.hasOwnProperty("lastTeamUid")) - object.lastTeamUid = options.bytes === String ? $util.base64.encode(message.lastTeamUid, 0, message.lastTeamUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.lastTeamUid) : message.lastTeamUid; + object.lastNodeId = + options.longs === String + ? $util.Long.prototype.toString.call(message.lastNodeId) + : options.longs === Number + ? new $util.LongBits( + message.lastNodeId.low >>> 0, + message.lastNodeId.high >>> 0 + ).toNumber() + : message.lastNodeId; + if (message.lastTeamUid != null && message.hasOwnProperty('lastTeamUid')) + object.lastTeamUid = + options.bytes === String + ? $util.base64.encode(message.lastTeamUid, 0, message.lastTeamUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.lastTeamUid) + : message.lastTeamUid; return object; }; @@ -151365,16 +156692,15 @@ export const Tokens = $root.Tokens = (() => { */ EnterpriseDataTeamsPageToken.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Tokens.EnterpriseDataTeamsPageToken"; + return typeUrlPrefix + '/Tokens.EnterpriseDataTeamsPageToken'; }; return EnterpriseDataTeamsPageToken; })(); - Tokens.EnterpriseDataTeamUsersPageToken = (function() { - + Tokens.EnterpriseDataTeamUsersPageToken = (function () { /** * Properties of an EnterpriseDataTeamUsersPageToken. * @memberof Tokens @@ -151395,8 +156721,7 @@ export const Tokens = $root.Tokens = (() => { function EnterpriseDataTeamUsersPageToken(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -151405,7 +156730,7 @@ export const Tokens = $root.Tokens = (() => { * @memberof Tokens.EnterpriseDataTeamUsersPageToken * @instance */ - EnterpriseDataTeamUsersPageToken.prototype.lastNodeId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + EnterpriseDataTeamUsersPageToken.prototype.lastNodeId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * EnterpriseDataTeamUsersPageToken lastTeamUid. @@ -151445,14 +156770,13 @@ export const Tokens = $root.Tokens = (() => { * @returns {$protobuf.Writer} Writer */ EnterpriseDataTeamUsersPageToken.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.lastNodeId != null && Object.hasOwnProperty.call(message, "lastNodeId")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.lastNodeId); - if (message.lastTeamUid != null && Object.hasOwnProperty.call(message, "lastTeamUid")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.lastTeamUid); - if (message.userId != null && Object.hasOwnProperty.call(message, "userId")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.userId); + if (!writer) writer = $Writer.create(); + if (message.lastNodeId != null && Object.hasOwnProperty.call(message, 'lastNodeId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int64(message.lastNodeId); + if (message.lastTeamUid != null && Object.hasOwnProperty.call(message, 'lastTeamUid')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.lastTeamUid); + if (message.userId != null && Object.hasOwnProperty.call(message, 'userId')) + writer.uint32(/* id 3, wireType 0 =*/ 24).int32(message.userId); return writer; }; @@ -151481,27 +156805,27 @@ export const Tokens = $root.Tokens = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ EnterpriseDataTeamUsersPageToken.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Tokens.EnterpriseDataTeamUsersPageToken(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Tokens.EnterpriseDataTeamUsersPageToken(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.lastNodeId = reader.int64(); break; } - case 2: { + case 2: { message.lastTeamUid = reader.bytes(); break; } - case 3: { + case 3: { message.userId = reader.int32(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -151518,8 +156842,7 @@ export const Tokens = $root.Tokens = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ EnterpriseDataTeamUsersPageToken.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -151532,17 +156855,27 @@ export const Tokens = $root.Tokens = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ EnterpriseDataTeamUsersPageToken.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.lastNodeId != null && message.hasOwnProperty("lastNodeId")) - if (!$util.isInteger(message.lastNodeId) && !(message.lastNodeId && $util.isInteger(message.lastNodeId.low) && $util.isInteger(message.lastNodeId.high))) - return "lastNodeId: integer|Long expected"; - if (message.lastTeamUid != null && message.hasOwnProperty("lastTeamUid")) - if (!(message.lastTeamUid && typeof message.lastTeamUid.length === "number" || $util.isString(message.lastTeamUid))) - return "lastTeamUid: buffer expected"; - if (message.userId != null && message.hasOwnProperty("userId")) - if (!$util.isInteger(message.userId)) - return "userId: integer expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.lastNodeId != null && message.hasOwnProperty('lastNodeId')) + if ( + !$util.isInteger(message.lastNodeId) && + !( + message.lastNodeId && + $util.isInteger(message.lastNodeId.low) && + $util.isInteger(message.lastNodeId.high) + ) + ) + return 'lastNodeId: integer|Long expected'; + if (message.lastTeamUid != null && message.hasOwnProperty('lastTeamUid')) + if ( + !( + (message.lastTeamUid && typeof message.lastTeamUid.length === 'number') || + $util.isString(message.lastTeamUid) + ) + ) + return 'lastTeamUid: buffer expected'; + if (message.userId != null && message.hasOwnProperty('userId')) + if (!$util.isInteger(message.userId)) return 'userId: integer expected'; return null; }; @@ -151555,25 +156888,26 @@ export const Tokens = $root.Tokens = (() => { * @returns {Tokens.EnterpriseDataTeamUsersPageToken} EnterpriseDataTeamUsersPageToken */ EnterpriseDataTeamUsersPageToken.fromObject = function fromObject(object) { - if (object instanceof $root.Tokens.EnterpriseDataTeamUsersPageToken) - return object; + if (object instanceof $root.Tokens.EnterpriseDataTeamUsersPageToken) return object; let message = new $root.Tokens.EnterpriseDataTeamUsersPageToken(); if (object.lastNodeId != null) - if ($util.Long) - (message.lastNodeId = $util.Long.fromValue(object.lastNodeId)).unsigned = false; - else if (typeof object.lastNodeId === "string") - message.lastNodeId = parseInt(object.lastNodeId, 10); - else if (typeof object.lastNodeId === "number") - message.lastNodeId = object.lastNodeId; - else if (typeof object.lastNodeId === "object") - message.lastNodeId = new $util.LongBits(object.lastNodeId.low >>> 0, object.lastNodeId.high >>> 0).toNumber(); + if ($util.Long) (message.lastNodeId = $util.Long.fromValue(object.lastNodeId)).unsigned = false; + else if (typeof object.lastNodeId === 'string') message.lastNodeId = parseInt(object.lastNodeId, 10); + else if (typeof object.lastNodeId === 'number') message.lastNodeId = object.lastNodeId; + else if (typeof object.lastNodeId === 'object') + message.lastNodeId = new $util.LongBits( + object.lastNodeId.low >>> 0, + object.lastNodeId.high >>> 0 + ).toNumber(); if (object.lastTeamUid != null) - if (typeof object.lastTeamUid === "string") - $util.base64.decode(object.lastTeamUid, message.lastTeamUid = $util.newBuffer($util.base64.length(object.lastTeamUid)), 0); - else if (object.lastTeamUid.length >= 0) - message.lastTeamUid = object.lastTeamUid; - if (object.userId != null) - message.userId = object.userId | 0; + if (typeof object.lastTeamUid === 'string') + $util.base64.decode( + object.lastTeamUid, + (message.lastTeamUid = $util.newBuffer($util.base64.length(object.lastTeamUid))), + 0 + ); + else if (object.lastTeamUid.length >= 0) message.lastTeamUid = object.lastTeamUid; + if (object.userId != null) message.userId = object.userId | 0; return message; }; @@ -151587,33 +156921,42 @@ export const Tokens = $root.Tokens = (() => { * @returns {Object.} Plain object */ EnterpriseDataTeamUsersPageToken.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.lastNodeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.lastNodeId = options.longs === String ? "0" : 0; - if (options.bytes === String) - object.lastTeamUid = ""; + object.lastNodeId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.lastNodeId = options.longs === String ? '0' : 0; + if (options.bytes === String) object.lastTeamUid = ''; else { object.lastTeamUid = []; - if (options.bytes !== Array) - object.lastTeamUid = $util.newBuffer(object.lastTeamUid); + if (options.bytes !== Array) object.lastTeamUid = $util.newBuffer(object.lastTeamUid); } object.userId = 0; } - if (message.lastNodeId != null && message.hasOwnProperty("lastNodeId")) - if (typeof message.lastNodeId === "number") + if (message.lastNodeId != null && message.hasOwnProperty('lastNodeId')) + if (typeof message.lastNodeId === 'number') object.lastNodeId = options.longs === String ? String(message.lastNodeId) : message.lastNodeId; else - object.lastNodeId = options.longs === String ? $util.Long.prototype.toString.call(message.lastNodeId) : options.longs === Number ? new $util.LongBits(message.lastNodeId.low >>> 0, message.lastNodeId.high >>> 0).toNumber() : message.lastNodeId; - if (message.lastTeamUid != null && message.hasOwnProperty("lastTeamUid")) - object.lastTeamUid = options.bytes === String ? $util.base64.encode(message.lastTeamUid, 0, message.lastTeamUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.lastTeamUid) : message.lastTeamUid; - if (message.userId != null && message.hasOwnProperty("userId")) - object.userId = message.userId; + object.lastNodeId = + options.longs === String + ? $util.Long.prototype.toString.call(message.lastNodeId) + : options.longs === Number + ? new $util.LongBits( + message.lastNodeId.low >>> 0, + message.lastNodeId.high >>> 0 + ).toNumber() + : message.lastNodeId; + if (message.lastTeamUid != null && message.hasOwnProperty('lastTeamUid')) + object.lastTeamUid = + options.bytes === String + ? $util.base64.encode(message.lastTeamUid, 0, message.lastTeamUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.lastTeamUid) + : message.lastTeamUid; + if (message.userId != null && message.hasOwnProperty('userId')) object.userId = message.userId; return object; }; @@ -151638,9 +156981,9 @@ export const Tokens = $root.Tokens = (() => { */ EnterpriseDataTeamUsersPageToken.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Tokens.EnterpriseDataTeamUsersPageToken"; + return typeUrlPrefix + '/Tokens.EnterpriseDataTeamUsersPageToken'; }; return EnterpriseDataTeamUsersPageToken; @@ -151655,17 +156998,17 @@ export const Tokens = $root.Tokens = (() => { * @property {number} EBS_RECORDS_2=2 EBS_RECORDS_2 value * @property {number} EBS_COMPLETE=3 EBS_COMPLETE value */ - Tokens.EnterpriseBackupStage = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "EBS_USERS"] = 0; - values[valuesById[1] = "EBS_RECORDS_1"] = 1; - values[valuesById[2] = "EBS_RECORDS_2"] = 2; - values[valuesById[3] = "EBS_COMPLETE"] = 3; + Tokens.EnterpriseBackupStage = (function () { + const valuesById = {}, + values = Object.create(valuesById); + values[(valuesById[0] = 'EBS_USERS')] = 0; + values[(valuesById[1] = 'EBS_RECORDS_1')] = 1; + values[(valuesById[2] = 'EBS_RECORDS_2')] = 2; + values[(valuesById[3] = 'EBS_COMPLETE')] = 3; return values; })(); - Tokens.EnterpriseBackupUnlockPair = (function() { - + Tokens.EnterpriseBackupUnlockPair = (function () { /** * Properties of an EnterpriseBackupUnlockPair. * @memberof Tokens @@ -151687,8 +157030,7 @@ export const Tokens = $root.Tokens = (() => { function EnterpriseBackupUnlockPair(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -151745,16 +157087,15 @@ export const Tokens = $root.Tokens = (() => { * @returns {$protobuf.Writer} Writer */ EnterpriseBackupUnlockPair.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.user1Id != null && Object.hasOwnProperty.call(message, "user1Id")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.user1Id); - if (message.user2Id != null && Object.hasOwnProperty.call(message, "user2Id")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.user2Id); - if (message.user1Key != null && Object.hasOwnProperty.call(message, "user1Key")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.user1Key); - if (message.user2Key != null && Object.hasOwnProperty.call(message, "user2Key")) - writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.user2Key); + if (!writer) writer = $Writer.create(); + if (message.user1Id != null && Object.hasOwnProperty.call(message, 'user1Id')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int32(message.user1Id); + if (message.user2Id != null && Object.hasOwnProperty.call(message, 'user2Id')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int32(message.user2Id); + if (message.user1Key != null && Object.hasOwnProperty.call(message, 'user1Key')) + writer.uint32(/* id 3, wireType 2 =*/ 26).bytes(message.user1Key); + if (message.user2Key != null && Object.hasOwnProperty.call(message, 'user2Key')) + writer.uint32(/* id 4, wireType 2 =*/ 34).bytes(message.user2Key); return writer; }; @@ -151783,31 +157124,31 @@ export const Tokens = $root.Tokens = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ EnterpriseBackupUnlockPair.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Tokens.EnterpriseBackupUnlockPair(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Tokens.EnterpriseBackupUnlockPair(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.user1Id = reader.int32(); break; } - case 2: { + case 2: { message.user2Id = reader.int32(); break; } - case 3: { + case 3: { message.user1Key = reader.bytes(); break; } - case 4: { + case 4: { message.user2Key = reader.bytes(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -151824,8 +157165,7 @@ export const Tokens = $root.Tokens = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ EnterpriseBackupUnlockPair.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -151838,20 +157178,27 @@ export const Tokens = $root.Tokens = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ EnterpriseBackupUnlockPair.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.user1Id != null && message.hasOwnProperty("user1Id")) - if (!$util.isInteger(message.user1Id)) - return "user1Id: integer expected"; - if (message.user2Id != null && message.hasOwnProperty("user2Id")) - if (!$util.isInteger(message.user2Id)) - return "user2Id: integer expected"; - if (message.user1Key != null && message.hasOwnProperty("user1Key")) - if (!(message.user1Key && typeof message.user1Key.length === "number" || $util.isString(message.user1Key))) - return "user1Key: buffer expected"; - if (message.user2Key != null && message.hasOwnProperty("user2Key")) - if (!(message.user2Key && typeof message.user2Key.length === "number" || $util.isString(message.user2Key))) - return "user2Key: buffer expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.user1Id != null && message.hasOwnProperty('user1Id')) + if (!$util.isInteger(message.user1Id)) return 'user1Id: integer expected'; + if (message.user2Id != null && message.hasOwnProperty('user2Id')) + if (!$util.isInteger(message.user2Id)) return 'user2Id: integer expected'; + if (message.user1Key != null && message.hasOwnProperty('user1Key')) + if ( + !( + (message.user1Key && typeof message.user1Key.length === 'number') || + $util.isString(message.user1Key) + ) + ) + return 'user1Key: buffer expected'; + if (message.user2Key != null && message.hasOwnProperty('user2Key')) + if ( + !( + (message.user2Key && typeof message.user2Key.length === 'number') || + $util.isString(message.user2Key) + ) + ) + return 'user2Key: buffer expected'; return null; }; @@ -151864,23 +157211,26 @@ export const Tokens = $root.Tokens = (() => { * @returns {Tokens.EnterpriseBackupUnlockPair} EnterpriseBackupUnlockPair */ EnterpriseBackupUnlockPair.fromObject = function fromObject(object) { - if (object instanceof $root.Tokens.EnterpriseBackupUnlockPair) - return object; + if (object instanceof $root.Tokens.EnterpriseBackupUnlockPair) return object; let message = new $root.Tokens.EnterpriseBackupUnlockPair(); - if (object.user1Id != null) - message.user1Id = object.user1Id | 0; - if (object.user2Id != null) - message.user2Id = object.user2Id | 0; + if (object.user1Id != null) message.user1Id = object.user1Id | 0; + if (object.user2Id != null) message.user2Id = object.user2Id | 0; if (object.user1Key != null) - if (typeof object.user1Key === "string") - $util.base64.decode(object.user1Key, message.user1Key = $util.newBuffer($util.base64.length(object.user1Key)), 0); - else if (object.user1Key.length >= 0) - message.user1Key = object.user1Key; + if (typeof object.user1Key === 'string') + $util.base64.decode( + object.user1Key, + (message.user1Key = $util.newBuffer($util.base64.length(object.user1Key))), + 0 + ); + else if (object.user1Key.length >= 0) message.user1Key = object.user1Key; if (object.user2Key != null) - if (typeof object.user2Key === "string") - $util.base64.decode(object.user2Key, message.user2Key = $util.newBuffer($util.base64.length(object.user2Key)), 0); - else if (object.user2Key.length >= 0) - message.user2Key = object.user2Key; + if (typeof object.user2Key === 'string') + $util.base64.decode( + object.user2Key, + (message.user2Key = $util.newBuffer($util.base64.length(object.user2Key))), + 0 + ); + else if (object.user2Key.length >= 0) message.user2Key = object.user2Key; return message; }; @@ -151894,35 +157244,38 @@ export const Tokens = $root.Tokens = (() => { * @returns {Object.} Plain object */ EnterpriseBackupUnlockPair.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { object.user1Id = 0; object.user2Id = 0; - if (options.bytes === String) - object.user1Key = ""; + if (options.bytes === String) object.user1Key = ''; else { object.user1Key = []; - if (options.bytes !== Array) - object.user1Key = $util.newBuffer(object.user1Key); + if (options.bytes !== Array) object.user1Key = $util.newBuffer(object.user1Key); } - if (options.bytes === String) - object.user2Key = ""; + if (options.bytes === String) object.user2Key = ''; else { object.user2Key = []; - if (options.bytes !== Array) - object.user2Key = $util.newBuffer(object.user2Key); + if (options.bytes !== Array) object.user2Key = $util.newBuffer(object.user2Key); } } - if (message.user1Id != null && message.hasOwnProperty("user1Id")) - object.user1Id = message.user1Id; - if (message.user2Id != null && message.hasOwnProperty("user2Id")) - object.user2Id = message.user2Id; - if (message.user1Key != null && message.hasOwnProperty("user1Key")) - object.user1Key = options.bytes === String ? $util.base64.encode(message.user1Key, 0, message.user1Key.length) : options.bytes === Array ? Array.prototype.slice.call(message.user1Key) : message.user1Key; - if (message.user2Key != null && message.hasOwnProperty("user2Key")) - object.user2Key = options.bytes === String ? $util.base64.encode(message.user2Key, 0, message.user2Key.length) : options.bytes === Array ? Array.prototype.slice.call(message.user2Key) : message.user2Key; + if (message.user1Id != null && message.hasOwnProperty('user1Id')) object.user1Id = message.user1Id; + if (message.user2Id != null && message.hasOwnProperty('user2Id')) object.user2Id = message.user2Id; + if (message.user1Key != null && message.hasOwnProperty('user1Key')) + object.user1Key = + options.bytes === String + ? $util.base64.encode(message.user1Key, 0, message.user1Key.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.user1Key) + : message.user1Key; + if (message.user2Key != null && message.hasOwnProperty('user2Key')) + object.user2Key = + options.bytes === String + ? $util.base64.encode(message.user2Key, 0, message.user2Key.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.user2Key) + : message.user2Key; return object; }; @@ -151947,16 +157300,15 @@ export const Tokens = $root.Tokens = (() => { */ EnterpriseBackupUnlockPair.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Tokens.EnterpriseBackupUnlockPair"; + return typeUrlPrefix + '/Tokens.EnterpriseBackupUnlockPair'; }; return EnterpriseBackupUnlockPair; })(); - Tokens.EnterpriseBackupContinuationToken = (function() { - + Tokens.EnterpriseBackupContinuationToken = (function () { /** * Properties of an EnterpriseBackupContinuationToken. * @memberof Tokens @@ -151980,8 +157332,7 @@ export const Tokens = $root.Tokens = (() => { this.unlockPairs = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -152014,7 +157365,7 @@ export const Tokens = $root.Tokens = (() => { * @memberof Tokens.EnterpriseBackupContinuationToken * @instance */ - EnterpriseBackupContinuationToken.prototype.startUser = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + EnterpriseBackupContinuationToken.prototype.startUser = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * EnterpriseBackupContinuationToken startRecord. @@ -152046,19 +157397,21 @@ export const Tokens = $root.Tokens = (() => { * @returns {$protobuf.Writer} Writer */ EnterpriseBackupContinuationToken.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.backupKey != null && Object.hasOwnProperty.call(message, "backupKey")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.backupKey); + if (!writer) writer = $Writer.create(); + if (message.backupKey != null && Object.hasOwnProperty.call(message, 'backupKey')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.backupKey); if (message.unlockPairs != null && message.unlockPairs.length) for (let i = 0; i < message.unlockPairs.length; ++i) - $root.Tokens.EnterpriseBackupUnlockPair.encode(message.unlockPairs[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.backupStage != null && Object.hasOwnProperty.call(message, "backupStage")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.backupStage); - if (message.startUser != null && Object.hasOwnProperty.call(message, "startUser")) - writer.uint32(/* id 4, wireType 0 =*/32).int64(message.startUser); - if (message.startRecord != null && Object.hasOwnProperty.call(message, "startRecord")) - writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.startRecord); + $root.Tokens.EnterpriseBackupUnlockPair.encode( + message.unlockPairs[i], + writer.uint32(/* id 2, wireType 2 =*/ 18).fork() + ).ldelim(); + if (message.backupStage != null && Object.hasOwnProperty.call(message, 'backupStage')) + writer.uint32(/* id 3, wireType 0 =*/ 24).int32(message.backupStage); + if (message.startUser != null && Object.hasOwnProperty.call(message, 'startUser')) + writer.uint32(/* id 4, wireType 0 =*/ 32).int64(message.startUser); + if (message.startRecord != null && Object.hasOwnProperty.call(message, 'startRecord')) + writer.uint32(/* id 5, wireType 2 =*/ 42).bytes(message.startRecord); return writer; }; @@ -152087,37 +157440,38 @@ export const Tokens = $root.Tokens = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ EnterpriseBackupContinuationToken.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Tokens.EnterpriseBackupContinuationToken(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Tokens.EnterpriseBackupContinuationToken(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.backupKey = reader.bytes(); break; } - case 2: { - if (!(message.unlockPairs && message.unlockPairs.length)) - message.unlockPairs = []; - message.unlockPairs.push($root.Tokens.EnterpriseBackupUnlockPair.decode(reader, reader.uint32())); + case 2: { + if (!(message.unlockPairs && message.unlockPairs.length)) message.unlockPairs = []; + message.unlockPairs.push( + $root.Tokens.EnterpriseBackupUnlockPair.decode(reader, reader.uint32()) + ); break; } - case 3: { + case 3: { message.backupStage = reader.int32(); break; } - case 4: { + case 4: { message.startUser = reader.int64(); break; } - case 5: { + case 5: { message.startRecord = reader.bytes(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -152134,8 +157488,7 @@ export const Tokens = $root.Tokens = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ EnterpriseBackupContinuationToken.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -152148,36 +157501,50 @@ export const Tokens = $root.Tokens = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ EnterpriseBackupContinuationToken.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.backupKey != null && message.hasOwnProperty("backupKey")) - if (!(message.backupKey && typeof message.backupKey.length === "number" || $util.isString(message.backupKey))) - return "backupKey: buffer expected"; - if (message.unlockPairs != null && message.hasOwnProperty("unlockPairs")) { - if (!Array.isArray(message.unlockPairs)) - return "unlockPairs: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.backupKey != null && message.hasOwnProperty('backupKey')) + if ( + !( + (message.backupKey && typeof message.backupKey.length === 'number') || + $util.isString(message.backupKey) + ) + ) + return 'backupKey: buffer expected'; + if (message.unlockPairs != null && message.hasOwnProperty('unlockPairs')) { + if (!Array.isArray(message.unlockPairs)) return 'unlockPairs: array expected'; for (let i = 0; i < message.unlockPairs.length; ++i) { let error = $root.Tokens.EnterpriseBackupUnlockPair.verify(message.unlockPairs[i]); - if (error) - return "unlockPairs." + error; + if (error) return 'unlockPairs.' + error; } } - if (message.backupStage != null && message.hasOwnProperty("backupStage")) + if (message.backupStage != null && message.hasOwnProperty('backupStage')) switch (message.backupStage) { - default: - return "backupStage: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; + default: + return 'backupStage: enum value expected'; + case 0: + case 1: + case 2: + case 3: + break; } - if (message.startUser != null && message.hasOwnProperty("startUser")) - if (!$util.isInteger(message.startUser) && !(message.startUser && $util.isInteger(message.startUser.low) && $util.isInteger(message.startUser.high))) - return "startUser: integer|Long expected"; - if (message.startRecord != null && message.hasOwnProperty("startRecord")) - if (!(message.startRecord && typeof message.startRecord.length === "number" || $util.isString(message.startRecord))) - return "startRecord: buffer expected"; + if (message.startUser != null && message.hasOwnProperty('startUser')) + if ( + !$util.isInteger(message.startUser) && + !( + message.startUser && + $util.isInteger(message.startUser.low) && + $util.isInteger(message.startUser.high) + ) + ) + return 'startUser: integer|Long expected'; + if (message.startRecord != null && message.hasOwnProperty('startRecord')) + if ( + !( + (message.startRecord && typeof message.startRecord.length === 'number') || + $util.isString(message.startRecord) + ) + ) + return 'startRecord: buffer expected'; return null; }; @@ -152190,62 +157557,67 @@ export const Tokens = $root.Tokens = (() => { * @returns {Tokens.EnterpriseBackupContinuationToken} EnterpriseBackupContinuationToken */ EnterpriseBackupContinuationToken.fromObject = function fromObject(object) { - if (object instanceof $root.Tokens.EnterpriseBackupContinuationToken) - return object; + if (object instanceof $root.Tokens.EnterpriseBackupContinuationToken) return object; let message = new $root.Tokens.EnterpriseBackupContinuationToken(); if (object.backupKey != null) - if (typeof object.backupKey === "string") - $util.base64.decode(object.backupKey, message.backupKey = $util.newBuffer($util.base64.length(object.backupKey)), 0); - else if (object.backupKey.length >= 0) - message.backupKey = object.backupKey; + if (typeof object.backupKey === 'string') + $util.base64.decode( + object.backupKey, + (message.backupKey = $util.newBuffer($util.base64.length(object.backupKey))), + 0 + ); + else if (object.backupKey.length >= 0) message.backupKey = object.backupKey; if (object.unlockPairs) { if (!Array.isArray(object.unlockPairs)) - throw TypeError(".Tokens.EnterpriseBackupContinuationToken.unlockPairs: array expected"); + throw TypeError('.Tokens.EnterpriseBackupContinuationToken.unlockPairs: array expected'); message.unlockPairs = []; for (let i = 0; i < object.unlockPairs.length; ++i) { - if (typeof object.unlockPairs[i] !== "object") - throw TypeError(".Tokens.EnterpriseBackupContinuationToken.unlockPairs: object expected"); + if (typeof object.unlockPairs[i] !== 'object') + throw TypeError('.Tokens.EnterpriseBackupContinuationToken.unlockPairs: object expected'); message.unlockPairs[i] = $root.Tokens.EnterpriseBackupUnlockPair.fromObject(object.unlockPairs[i]); } } switch (object.backupStage) { - default: - if (typeof object.backupStage === "number") { - message.backupStage = object.backupStage; - break; - } - break; - case "EBS_USERS": - case 0: - message.backupStage = 0; - break; - case "EBS_RECORDS_1": - case 1: - message.backupStage = 1; - break; - case "EBS_RECORDS_2": - case 2: - message.backupStage = 2; - break; - case "EBS_COMPLETE": - case 3: - message.backupStage = 3; - break; + default: + if (typeof object.backupStage === 'number') { + message.backupStage = object.backupStage; + break; + } + break; + case 'EBS_USERS': + case 0: + message.backupStage = 0; + break; + case 'EBS_RECORDS_1': + case 1: + message.backupStage = 1; + break; + case 'EBS_RECORDS_2': + case 2: + message.backupStage = 2; + break; + case 'EBS_COMPLETE': + case 3: + message.backupStage = 3; + break; } if (object.startUser != null) - if ($util.Long) - (message.startUser = $util.Long.fromValue(object.startUser)).unsigned = false; - else if (typeof object.startUser === "string") - message.startUser = parseInt(object.startUser, 10); - else if (typeof object.startUser === "number") - message.startUser = object.startUser; - else if (typeof object.startUser === "object") - message.startUser = new $util.LongBits(object.startUser.low >>> 0, object.startUser.high >>> 0).toNumber(); + if ($util.Long) (message.startUser = $util.Long.fromValue(object.startUser)).unsigned = false; + else if (typeof object.startUser === 'string') message.startUser = parseInt(object.startUser, 10); + else if (typeof object.startUser === 'number') message.startUser = object.startUser; + else if (typeof object.startUser === 'object') + message.startUser = new $util.LongBits( + object.startUser.low >>> 0, + object.startUser.high >>> 0 + ).toNumber(); if (object.startRecord != null) - if (typeof object.startRecord === "string") - $util.base64.decode(object.startRecord, message.startRecord = $util.newBuffer($util.base64.length(object.startRecord)), 0); - else if (object.startRecord.length >= 0) - message.startRecord = object.startRecord; + if (typeof object.startRecord === 'string') + $util.base64.decode( + object.startRecord, + (message.startRecord = $util.newBuffer($util.base64.length(object.startRecord))), + 0 + ); + else if (object.startRecord.length >= 0) message.startRecord = object.startRecord; return message; }; @@ -152259,49 +157631,66 @@ export const Tokens = $root.Tokens = (() => { * @returns {Object.} Plain object */ EnterpriseBackupContinuationToken.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.unlockPairs = []; + if (options.arrays || options.defaults) object.unlockPairs = []; if (options.defaults) { - if (options.bytes === String) - object.backupKey = ""; + if (options.bytes === String) object.backupKey = ''; else { object.backupKey = []; - if (options.bytes !== Array) - object.backupKey = $util.newBuffer(object.backupKey); + if (options.bytes !== Array) object.backupKey = $util.newBuffer(object.backupKey); } - object.backupStage = options.enums === String ? "EBS_USERS" : 0; + object.backupStage = options.enums === String ? 'EBS_USERS' : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.startUser = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.startUser = options.longs === String ? "0" : 0; - if (options.bytes === String) - object.startRecord = ""; + object.startUser = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.startUser = options.longs === String ? '0' : 0; + if (options.bytes === String) object.startRecord = ''; else { object.startRecord = []; - if (options.bytes !== Array) - object.startRecord = $util.newBuffer(object.startRecord); + if (options.bytes !== Array) object.startRecord = $util.newBuffer(object.startRecord); } } - if (message.backupKey != null && message.hasOwnProperty("backupKey")) - object.backupKey = options.bytes === String ? $util.base64.encode(message.backupKey, 0, message.backupKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.backupKey) : message.backupKey; + if (message.backupKey != null && message.hasOwnProperty('backupKey')) + object.backupKey = + options.bytes === String + ? $util.base64.encode(message.backupKey, 0, message.backupKey.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.backupKey) + : message.backupKey; if (message.unlockPairs && message.unlockPairs.length) { object.unlockPairs = []; for (let j = 0; j < message.unlockPairs.length; ++j) - object.unlockPairs[j] = $root.Tokens.EnterpriseBackupUnlockPair.toObject(message.unlockPairs[j], options); - } - if (message.backupStage != null && message.hasOwnProperty("backupStage")) - object.backupStage = options.enums === String ? $root.Tokens.EnterpriseBackupStage[message.backupStage] === undefined ? message.backupStage : $root.Tokens.EnterpriseBackupStage[message.backupStage] : message.backupStage; - if (message.startUser != null && message.hasOwnProperty("startUser")) - if (typeof message.startUser === "number") + object.unlockPairs[j] = $root.Tokens.EnterpriseBackupUnlockPair.toObject( + message.unlockPairs[j], + options + ); + } + if (message.backupStage != null && message.hasOwnProperty('backupStage')) + object.backupStage = + options.enums === String + ? $root.Tokens.EnterpriseBackupStage[message.backupStage] === undefined + ? message.backupStage + : $root.Tokens.EnterpriseBackupStage[message.backupStage] + : message.backupStage; + if (message.startUser != null && message.hasOwnProperty('startUser')) + if (typeof message.startUser === 'number') object.startUser = options.longs === String ? String(message.startUser) : message.startUser; else - object.startUser = options.longs === String ? $util.Long.prototype.toString.call(message.startUser) : options.longs === Number ? new $util.LongBits(message.startUser.low >>> 0, message.startUser.high >>> 0).toNumber() : message.startUser; - if (message.startRecord != null && message.hasOwnProperty("startRecord")) - object.startRecord = options.bytes === String ? $util.base64.encode(message.startRecord, 0, message.startRecord.length) : options.bytes === Array ? Array.prototype.slice.call(message.startRecord) : message.startRecord; + object.startUser = + options.longs === String + ? $util.Long.prototype.toString.call(message.startUser) + : options.longs === Number + ? new $util.LongBits(message.startUser.low >>> 0, message.startUser.high >>> 0).toNumber() + : message.startUser; + if (message.startRecord != null && message.hasOwnProperty('startRecord')) + object.startRecord = + options.bytes === String + ? $util.base64.encode(message.startRecord, 0, message.startRecord.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.startRecord) + : message.startRecord; return object; }; @@ -152326,16 +157715,15 @@ export const Tokens = $root.Tokens = (() => { */ EnterpriseBackupContinuationToken.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Tokens.EnterpriseBackupContinuationToken"; + return typeUrlPrefix + '/Tokens.EnterpriseBackupContinuationToken'; }; return EnterpriseBackupContinuationToken; })(); - Tokens.VerificationToken = (function() { - + Tokens.VerificationToken = (function () { /** * Properties of a VerificationToken. * @memberof Tokens @@ -152357,8 +157745,7 @@ export const Tokens = $root.Tokens = (() => { function VerificationToken(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -152375,7 +157762,7 @@ export const Tokens = $root.Tokens = (() => { * @memberof Tokens.VerificationToken * @instance */ - VerificationToken.prototype.username = ""; + VerificationToken.prototype.username = ''; /** * VerificationToken regionId. @@ -152391,7 +157778,7 @@ export const Tokens = $root.Tokens = (() => { * @memberof Tokens.VerificationToken * @instance */ - VerificationToken.prototype.creation = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + VerificationToken.prototype.creation = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * Creates a new VerificationToken instance using the specified properties. @@ -152415,16 +157802,15 @@ export const Tokens = $root.Tokens = (() => { * @returns {$protobuf.Writer} Writer */ VerificationToken.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.accountUid != null && Object.hasOwnProperty.call(message, "accountUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.accountUid); - if (message.username != null && Object.hasOwnProperty.call(message, "username")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.username); - if (message.regionId != null && Object.hasOwnProperty.call(message, "regionId")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.regionId); - if (message.creation != null && Object.hasOwnProperty.call(message, "creation")) - writer.uint32(/* id 4, wireType 0 =*/32).int64(message.creation); + if (!writer) writer = $Writer.create(); + if (message.accountUid != null && Object.hasOwnProperty.call(message, 'accountUid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.accountUid); + if (message.username != null && Object.hasOwnProperty.call(message, 'username')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.username); + if (message.regionId != null && Object.hasOwnProperty.call(message, 'regionId')) + writer.uint32(/* id 3, wireType 0 =*/ 24).int32(message.regionId); + if (message.creation != null && Object.hasOwnProperty.call(message, 'creation')) + writer.uint32(/* id 4, wireType 0 =*/ 32).int64(message.creation); return writer; }; @@ -152453,31 +157839,31 @@ export const Tokens = $root.Tokens = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ VerificationToken.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Tokens.VerificationToken(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Tokens.VerificationToken(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.accountUid = reader.bytes(); break; } - case 2: { + case 2: { message.username = reader.string(); break; } - case 3: { + case 3: { message.regionId = reader.int32(); break; } - case 4: { + case 4: { message.creation = reader.int64(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -152494,8 +157880,7 @@ export const Tokens = $root.Tokens = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ VerificationToken.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -152508,20 +157893,29 @@ export const Tokens = $root.Tokens = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ VerificationToken.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.accountUid != null && message.hasOwnProperty("accountUid")) - if (!(message.accountUid && typeof message.accountUid.length === "number" || $util.isString(message.accountUid))) - return "accountUid: buffer expected"; - if (message.username != null && message.hasOwnProperty("username")) - if (!$util.isString(message.username)) - return "username: string expected"; - if (message.regionId != null && message.hasOwnProperty("regionId")) - if (!$util.isInteger(message.regionId)) - return "regionId: integer expected"; - if (message.creation != null && message.hasOwnProperty("creation")) - if (!$util.isInteger(message.creation) && !(message.creation && $util.isInteger(message.creation.low) && $util.isInteger(message.creation.high))) - return "creation: integer|Long expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.accountUid != null && message.hasOwnProperty('accountUid')) + if ( + !( + (message.accountUid && typeof message.accountUid.length === 'number') || + $util.isString(message.accountUid) + ) + ) + return 'accountUid: buffer expected'; + if (message.username != null && message.hasOwnProperty('username')) + if (!$util.isString(message.username)) return 'username: string expected'; + if (message.regionId != null && message.hasOwnProperty('regionId')) + if (!$util.isInteger(message.regionId)) return 'regionId: integer expected'; + if (message.creation != null && message.hasOwnProperty('creation')) + if ( + !$util.isInteger(message.creation) && + !( + message.creation && + $util.isInteger(message.creation.low) && + $util.isInteger(message.creation.high) + ) + ) + return 'creation: integer|Long expected'; return null; }; @@ -152534,27 +157928,27 @@ export const Tokens = $root.Tokens = (() => { * @returns {Tokens.VerificationToken} VerificationToken */ VerificationToken.fromObject = function fromObject(object) { - if (object instanceof $root.Tokens.VerificationToken) - return object; + if (object instanceof $root.Tokens.VerificationToken) return object; let message = new $root.Tokens.VerificationToken(); if (object.accountUid != null) - if (typeof object.accountUid === "string") - $util.base64.decode(object.accountUid, message.accountUid = $util.newBuffer($util.base64.length(object.accountUid)), 0); - else if (object.accountUid.length >= 0) - message.accountUid = object.accountUid; - if (object.username != null) - message.username = String(object.username); - if (object.regionId != null) - message.regionId = object.regionId | 0; + if (typeof object.accountUid === 'string') + $util.base64.decode( + object.accountUid, + (message.accountUid = $util.newBuffer($util.base64.length(object.accountUid))), + 0 + ); + else if (object.accountUid.length >= 0) message.accountUid = object.accountUid; + if (object.username != null) message.username = String(object.username); + if (object.regionId != null) message.regionId = object.regionId | 0; if (object.creation != null) - if ($util.Long) - (message.creation = $util.Long.fromValue(object.creation)).unsigned = false; - else if (typeof object.creation === "string") - message.creation = parseInt(object.creation, 10); - else if (typeof object.creation === "number") - message.creation = object.creation; - else if (typeof object.creation === "object") - message.creation = new $util.LongBits(object.creation.low >>> 0, object.creation.high >>> 0).toNumber(); + if ($util.Long) (message.creation = $util.Long.fromValue(object.creation)).unsigned = false; + else if (typeof object.creation === 'string') message.creation = parseInt(object.creation, 10); + else if (typeof object.creation === 'number') message.creation = object.creation; + else if (typeof object.creation === 'object') + message.creation = new $util.LongBits( + object.creation.low >>> 0, + object.creation.high >>> 0 + ).toNumber(); return message; }; @@ -152568,36 +157962,41 @@ export const Tokens = $root.Tokens = (() => { * @returns {Object.} Plain object */ VerificationToken.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.accountUid = ""; + if (options.bytes === String) object.accountUid = ''; else { object.accountUid = []; - if (options.bytes !== Array) - object.accountUid = $util.newBuffer(object.accountUid); + if (options.bytes !== Array) object.accountUid = $util.newBuffer(object.accountUid); } - object.username = ""; + object.username = ''; object.regionId = 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.creation = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.creation = options.longs === String ? "0" : 0; - } - if (message.accountUid != null && message.hasOwnProperty("accountUid")) - object.accountUid = options.bytes === String ? $util.base64.encode(message.accountUid, 0, message.accountUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.accountUid) : message.accountUid; - if (message.username != null && message.hasOwnProperty("username")) - object.username = message.username; - if (message.regionId != null && message.hasOwnProperty("regionId")) - object.regionId = message.regionId; - if (message.creation != null && message.hasOwnProperty("creation")) - if (typeof message.creation === "number") + object.creation = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.creation = options.longs === String ? '0' : 0; + } + if (message.accountUid != null && message.hasOwnProperty('accountUid')) + object.accountUid = + options.bytes === String + ? $util.base64.encode(message.accountUid, 0, message.accountUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.accountUid) + : message.accountUid; + if (message.username != null && message.hasOwnProperty('username')) object.username = message.username; + if (message.regionId != null && message.hasOwnProperty('regionId')) object.regionId = message.regionId; + if (message.creation != null && message.hasOwnProperty('creation')) + if (typeof message.creation === 'number') object.creation = options.longs === String ? String(message.creation) : message.creation; else - object.creation = options.longs === String ? $util.Long.prototype.toString.call(message.creation) : options.longs === Number ? new $util.LongBits(message.creation.low >>> 0, message.creation.high >>> 0).toNumber() : message.creation; + object.creation = + options.longs === String + ? $util.Long.prototype.toString.call(message.creation) + : options.longs === Number + ? new $util.LongBits(message.creation.low >>> 0, message.creation.high >>> 0).toNumber() + : message.creation; return object; }; @@ -152622,16 +158021,15 @@ export const Tokens = $root.Tokens = (() => { */ VerificationToken.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Tokens.VerificationToken"; + return typeUrlPrefix + '/Tokens.VerificationToken'; }; return VerificationToken; })(); - Tokens.ComplianceDataContinuationToken = (function() { - + Tokens.ComplianceDataContinuationToken = (function () { /** * Properties of a ComplianceDataContinuationToken. * @memberof Tokens @@ -152651,8 +158049,7 @@ export const Tokens = $root.Tokens = (() => { function ComplianceDataContinuationToken(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -152661,7 +158058,7 @@ export const Tokens = $root.Tokens = (() => { * @memberof Tokens.ComplianceDataContinuationToken * @instance */ - ComplianceDataContinuationToken.prototype.enterpriseUserId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + ComplianceDataContinuationToken.prototype.enterpriseUserId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * ComplianceDataContinuationToken recordUid. @@ -152693,12 +158090,11 @@ export const Tokens = $root.Tokens = (() => { * @returns {$protobuf.Writer} Writer */ ComplianceDataContinuationToken.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "enterpriseUserId")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.enterpriseUserId); - if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.recordUid); + if (!writer) writer = $Writer.create(); + if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, 'enterpriseUserId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int64(message.enterpriseUserId); + if (message.recordUid != null && Object.hasOwnProperty.call(message, 'recordUid')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.recordUid); return writer; }; @@ -152727,23 +158123,23 @@ export const Tokens = $root.Tokens = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ComplianceDataContinuationToken.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Tokens.ComplianceDataContinuationToken(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Tokens.ComplianceDataContinuationToken(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.enterpriseUserId = reader.int64(); break; } - case 2: { + case 2: { message.recordUid = reader.bytes(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -152760,8 +158156,7 @@ export const Tokens = $root.Tokens = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ComplianceDataContinuationToken.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -152774,14 +158169,25 @@ export const Tokens = $root.Tokens = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ ComplianceDataContinuationToken.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (!$util.isInteger(message.enterpriseUserId) && !(message.enterpriseUserId && $util.isInteger(message.enterpriseUserId.low) && $util.isInteger(message.enterpriseUserId.high))) - return "enterpriseUserId: integer|Long expected"; - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) - return "recordUid: buffer expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.enterpriseUserId != null && message.hasOwnProperty('enterpriseUserId')) + if ( + !$util.isInteger(message.enterpriseUserId) && + !( + message.enterpriseUserId && + $util.isInteger(message.enterpriseUserId.low) && + $util.isInteger(message.enterpriseUserId.high) + ) + ) + return 'enterpriseUserId: integer|Long expected'; + if (message.recordUid != null && message.hasOwnProperty('recordUid')) + if ( + !( + (message.recordUid && typeof message.recordUid.length === 'number') || + $util.isString(message.recordUid) + ) + ) + return 'recordUid: buffer expected'; return null; }; @@ -152794,23 +158200,28 @@ export const Tokens = $root.Tokens = (() => { * @returns {Tokens.ComplianceDataContinuationToken} ComplianceDataContinuationToken */ ComplianceDataContinuationToken.fromObject = function fromObject(object) { - if (object instanceof $root.Tokens.ComplianceDataContinuationToken) - return object; + if (object instanceof $root.Tokens.ComplianceDataContinuationToken) return object; let message = new $root.Tokens.ComplianceDataContinuationToken(); if (object.enterpriseUserId != null) if ($util.Long) (message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId)).unsigned = false; - else if (typeof object.enterpriseUserId === "string") + else if (typeof object.enterpriseUserId === 'string') message.enterpriseUserId = parseInt(object.enterpriseUserId, 10); - else if (typeof object.enterpriseUserId === "number") + else if (typeof object.enterpriseUserId === 'number') message.enterpriseUserId = object.enterpriseUserId; - else if (typeof object.enterpriseUserId === "object") - message.enterpriseUserId = new $util.LongBits(object.enterpriseUserId.low >>> 0, object.enterpriseUserId.high >>> 0).toNumber(); + else if (typeof object.enterpriseUserId === 'object') + message.enterpriseUserId = new $util.LongBits( + object.enterpriseUserId.low >>> 0, + object.enterpriseUserId.high >>> 0 + ).toNumber(); 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 (typeof object.recordUid === 'string') + $util.base64.decode( + object.recordUid, + (message.recordUid = $util.newBuffer($util.base64.length(object.recordUid))), + 0 + ); + else if (object.recordUid.length >= 0) message.recordUid = object.recordUid; return message; }; @@ -152824,30 +158235,41 @@ export const Tokens = $root.Tokens = (() => { * @returns {Object.} Plain object */ ComplianceDataContinuationToken.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.enterpriseUserId = options.longs === String ? "0" : 0; - if (options.bytes === String) - object.recordUid = ""; + object.enterpriseUserId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.enterpriseUserId = options.longs === String ? '0' : 0; + if (options.bytes === String) object.recordUid = ''; else { object.recordUid = []; - if (options.bytes !== Array) - object.recordUid = $util.newBuffer(object.recordUid); + if (options.bytes !== Array) object.recordUid = $util.newBuffer(object.recordUid); } } - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (typeof message.enterpriseUserId === "number") - object.enterpriseUserId = options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; + if (message.enterpriseUserId != null && message.hasOwnProperty('enterpriseUserId')) + if (typeof message.enterpriseUserId === 'number') + object.enterpriseUserId = + options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; else - object.enterpriseUserId = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseUserId) : options.longs === Number ? new $util.LongBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0).toNumber() : message.enterpriseUserId; - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; + object.enterpriseUserId = + options.longs === String + ? $util.Long.prototype.toString.call(message.enterpriseUserId) + : options.longs === Number + ? new $util.LongBits( + message.enterpriseUserId.low >>> 0, + message.enterpriseUserId.high >>> 0 + ).toNumber() + : message.enterpriseUserId; + if (message.recordUid != null && message.hasOwnProperty('recordUid')) + object.recordUid = + options.bytes === String + ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.recordUid) + : message.recordUid; return object; }; @@ -152872,16 +158294,15 @@ export const Tokens = $root.Tokens = (() => { */ ComplianceDataContinuationToken.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Tokens.ComplianceDataContinuationToken"; + return typeUrlPrefix + '/Tokens.ComplianceDataContinuationToken'; }; return ComplianceDataContinuationToken; })(); - Tokens.VaultSyncDownContinuationToken = (function() { - + Tokens.VaultSyncDownContinuationToken = (function () { /** * Properties of a VaultSyncDownContinuationToken. * @memberof Tokens @@ -152912,8 +158333,7 @@ export const Tokens = $root.Tokens = (() => { function VaultSyncDownContinuationToken(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -152930,7 +158350,7 @@ export const Tokens = $root.Tokens = (() => { * @memberof Tokens.VaultSyncDownContinuationToken * @instance */ - VaultSyncDownContinuationToken.prototype.syncedToSyncOrder = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + VaultSyncDownContinuationToken.prototype.syncedToSyncOrder = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * VaultSyncDownContinuationToken syncingToSyncOrder. @@ -152938,7 +158358,7 @@ export const Tokens = $root.Tokens = (() => { * @memberof Tokens.VaultSyncDownContinuationToken * @instance */ - VaultSyncDownContinuationToken.prototype.syncingToSyncOrder = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + VaultSyncDownContinuationToken.prototype.syncingToSyncOrder = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * VaultSyncDownContinuationToken tokenGenerated. @@ -153002,7 +158422,9 @@ export const Tokens = $root.Tokens = (() => { * @memberof Tokens.VaultSyncDownContinuationToken * @instance */ - VaultSyncDownContinuationToken.prototype.notificationSyncPoint = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + VaultSyncDownContinuationToken.prototype.notificationSyncPoint = $util.Long + ? $util.Long.fromBits(0, 0, false) + : 0; /** * VaultSyncDownContinuationToken skipUserRevision. @@ -153042,34 +158464,42 @@ export const Tokens = $root.Tokens = (() => { * @returns {$protobuf.Writer} Writer */ VaultSyncDownContinuationToken.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.tokenVersion != null && Object.hasOwnProperty.call(message, "tokenVersion")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.tokenVersion); - if (message.syncedToSyncOrder != null && Object.hasOwnProperty.call(message, "syncedToSyncOrder")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.syncedToSyncOrder); - if (message.syncingToSyncOrder != null && Object.hasOwnProperty.call(message, "syncingToSyncOrder")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.syncingToSyncOrder); - if (message.tokenGenerated != null && Object.hasOwnProperty.call(message, "tokenGenerated")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.tokenGenerated); - if (message.lastFullSyncCompleted != null && Object.hasOwnProperty.call(message, "lastFullSyncCompleted")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.lastFullSyncCompleted); - if (message.locations != null && Object.hasOwnProperty.call(message, "locations")) - $root.Tokens.VaultSyncDownLocations.encode(message.locations, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.checkForAuditData != null && Object.hasOwnProperty.call(message, "checkForAuditData")) - writer.uint32(/* id 7, wireType 0 =*/56).bool(message.checkForAuditData); - if (message.clientVersion != null && Object.hasOwnProperty.call(message, "clientVersion")) - writer.uint32(/* id 8, wireType 0 =*/64).int32(message.clientVersion); - if (message.clientDataVersion != null && Object.hasOwnProperty.call(message, "clientDataVersion")) - writer.uint32(/* id 9, wireType 0 =*/72).int32(message.clientDataVersion); - if (message.noRemovedSharedFoldersWithTeamAccess != null && Object.hasOwnProperty.call(message, "noRemovedSharedFoldersWithTeamAccess")) - writer.uint32(/* id 10, wireType 0 =*/80).bool(message.noRemovedSharedFoldersWithTeamAccess); - if (message.notificationSyncPoint != null && Object.hasOwnProperty.call(message, "notificationSyncPoint")) - writer.uint32(/* id 11, wireType 0 =*/88).int64(message.notificationSyncPoint); - if (message.skipUserRevision != null && Object.hasOwnProperty.call(message, "skipUserRevision")) - writer.uint32(/* id 12, wireType 0 =*/96).bool(message.skipUserRevision); - if (message.multiPageIncrementalClientVersion != null && Object.hasOwnProperty.call(message, "multiPageIncrementalClientVersion")) - writer.uint32(/* id 14, wireType 0 =*/112).int32(message.multiPageIncrementalClientVersion); + if (!writer) writer = $Writer.create(); + if (message.tokenVersion != null && Object.hasOwnProperty.call(message, 'tokenVersion')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int32(message.tokenVersion); + if (message.syncedToSyncOrder != null && Object.hasOwnProperty.call(message, 'syncedToSyncOrder')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int64(message.syncedToSyncOrder); + if (message.syncingToSyncOrder != null && Object.hasOwnProperty.call(message, 'syncingToSyncOrder')) + writer.uint32(/* id 3, wireType 0 =*/ 24).int64(message.syncingToSyncOrder); + if (message.tokenGenerated != null && Object.hasOwnProperty.call(message, 'tokenGenerated')) + writer.uint32(/* id 4, wireType 0 =*/ 32).int32(message.tokenGenerated); + if (message.lastFullSyncCompleted != null && Object.hasOwnProperty.call(message, 'lastFullSyncCompleted')) + writer.uint32(/* id 5, wireType 0 =*/ 40).int32(message.lastFullSyncCompleted); + if (message.locations != null && Object.hasOwnProperty.call(message, 'locations')) + $root.Tokens.VaultSyncDownLocations.encode( + message.locations, + writer.uint32(/* id 6, wireType 2 =*/ 50).fork() + ).ldelim(); + if (message.checkForAuditData != null && Object.hasOwnProperty.call(message, 'checkForAuditData')) + writer.uint32(/* id 7, wireType 0 =*/ 56).bool(message.checkForAuditData); + if (message.clientVersion != null && Object.hasOwnProperty.call(message, 'clientVersion')) + writer.uint32(/* id 8, wireType 0 =*/ 64).int32(message.clientVersion); + if (message.clientDataVersion != null && Object.hasOwnProperty.call(message, 'clientDataVersion')) + writer.uint32(/* id 9, wireType 0 =*/ 72).int32(message.clientDataVersion); + if ( + message.noRemovedSharedFoldersWithTeamAccess != null && + Object.hasOwnProperty.call(message, 'noRemovedSharedFoldersWithTeamAccess') + ) + writer.uint32(/* id 10, wireType 0 =*/ 80).bool(message.noRemovedSharedFoldersWithTeamAccess); + if (message.notificationSyncPoint != null && Object.hasOwnProperty.call(message, 'notificationSyncPoint')) + writer.uint32(/* id 11, wireType 0 =*/ 88).int64(message.notificationSyncPoint); + if (message.skipUserRevision != null && Object.hasOwnProperty.call(message, 'skipUserRevision')) + writer.uint32(/* id 12, wireType 0 =*/ 96).bool(message.skipUserRevision); + if ( + message.multiPageIncrementalClientVersion != null && + Object.hasOwnProperty.call(message, 'multiPageIncrementalClientVersion') + ) + writer.uint32(/* id 14, wireType 0 =*/ 112).int32(message.multiPageIncrementalClientVersion); return writer; }; @@ -153098,67 +158528,67 @@ export const Tokens = $root.Tokens = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ VaultSyncDownContinuationToken.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Tokens.VaultSyncDownContinuationToken(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Tokens.VaultSyncDownContinuationToken(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.tokenVersion = reader.int32(); break; } - case 2: { + case 2: { message.syncedToSyncOrder = reader.int64(); break; } - case 3: { + case 3: { message.syncingToSyncOrder = reader.int64(); break; } - case 4: { + case 4: { message.tokenGenerated = reader.int32(); break; } - case 5: { + case 5: { message.lastFullSyncCompleted = reader.int32(); break; } - case 6: { + case 6: { message.locations = $root.Tokens.VaultSyncDownLocations.decode(reader, reader.uint32()); break; } - case 7: { + case 7: { message.checkForAuditData = reader.bool(); break; } - case 8: { + case 8: { message.clientVersion = reader.int32(); break; } - case 9: { + case 9: { message.clientDataVersion = reader.int32(); break; } - case 10: { + case 10: { message.noRemovedSharedFoldersWithTeamAccess = reader.bool(); break; } - case 11: { + case 11: { message.notificationSyncPoint = reader.int64(); break; } - case 12: { + case 12: { message.skipUserRevision = reader.bool(); break; } - case 14: { + case 14: { message.multiPageIncrementalClientVersion = reader.int32(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -153175,8 +158605,7 @@ export const Tokens = $root.Tokens = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ VaultSyncDownContinuationToken.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -153189,49 +158618,67 @@ export const Tokens = $root.Tokens = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ VaultSyncDownContinuationToken.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.tokenVersion != null && message.hasOwnProperty("tokenVersion")) - if (!$util.isInteger(message.tokenVersion)) - return "tokenVersion: integer expected"; - if (message.syncedToSyncOrder != null && message.hasOwnProperty("syncedToSyncOrder")) - if (!$util.isInteger(message.syncedToSyncOrder) && !(message.syncedToSyncOrder && $util.isInteger(message.syncedToSyncOrder.low) && $util.isInteger(message.syncedToSyncOrder.high))) - return "syncedToSyncOrder: integer|Long expected"; - if (message.syncingToSyncOrder != null && message.hasOwnProperty("syncingToSyncOrder")) - if (!$util.isInteger(message.syncingToSyncOrder) && !(message.syncingToSyncOrder && $util.isInteger(message.syncingToSyncOrder.low) && $util.isInteger(message.syncingToSyncOrder.high))) - return "syncingToSyncOrder: integer|Long expected"; - if (message.tokenGenerated != null && message.hasOwnProperty("tokenGenerated")) - if (!$util.isInteger(message.tokenGenerated)) - return "tokenGenerated: integer expected"; - if (message.lastFullSyncCompleted != null && message.hasOwnProperty("lastFullSyncCompleted")) - if (!$util.isInteger(message.lastFullSyncCompleted)) - return "lastFullSyncCompleted: integer expected"; - if (message.locations != null && message.hasOwnProperty("locations")) { + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.tokenVersion != null && message.hasOwnProperty('tokenVersion')) + if (!$util.isInteger(message.tokenVersion)) return 'tokenVersion: integer expected'; + if (message.syncedToSyncOrder != null && message.hasOwnProperty('syncedToSyncOrder')) + if ( + !$util.isInteger(message.syncedToSyncOrder) && + !( + message.syncedToSyncOrder && + $util.isInteger(message.syncedToSyncOrder.low) && + $util.isInteger(message.syncedToSyncOrder.high) + ) + ) + return 'syncedToSyncOrder: integer|Long expected'; + if (message.syncingToSyncOrder != null && message.hasOwnProperty('syncingToSyncOrder')) + if ( + !$util.isInteger(message.syncingToSyncOrder) && + !( + message.syncingToSyncOrder && + $util.isInteger(message.syncingToSyncOrder.low) && + $util.isInteger(message.syncingToSyncOrder.high) + ) + ) + return 'syncingToSyncOrder: integer|Long expected'; + if (message.tokenGenerated != null && message.hasOwnProperty('tokenGenerated')) + if (!$util.isInteger(message.tokenGenerated)) return 'tokenGenerated: integer expected'; + if (message.lastFullSyncCompleted != null && message.hasOwnProperty('lastFullSyncCompleted')) + if (!$util.isInteger(message.lastFullSyncCompleted)) return 'lastFullSyncCompleted: integer expected'; + if (message.locations != null && message.hasOwnProperty('locations')) { let error = $root.Tokens.VaultSyncDownLocations.verify(message.locations); - if (error) - return "locations." + error; - } - if (message.checkForAuditData != null && message.hasOwnProperty("checkForAuditData")) - if (typeof message.checkForAuditData !== "boolean") - return "checkForAuditData: boolean expected"; - if (message.clientVersion != null && message.hasOwnProperty("clientVersion")) - if (!$util.isInteger(message.clientVersion)) - return "clientVersion: integer expected"; - if (message.clientDataVersion != null && message.hasOwnProperty("clientDataVersion")) - if (!$util.isInteger(message.clientDataVersion)) - return "clientDataVersion: integer expected"; - if (message.noRemovedSharedFoldersWithTeamAccess != null && message.hasOwnProperty("noRemovedSharedFoldersWithTeamAccess")) - if (typeof message.noRemovedSharedFoldersWithTeamAccess !== "boolean") - return "noRemovedSharedFoldersWithTeamAccess: boolean expected"; - if (message.notificationSyncPoint != null && message.hasOwnProperty("notificationSyncPoint")) - if (!$util.isInteger(message.notificationSyncPoint) && !(message.notificationSyncPoint && $util.isInteger(message.notificationSyncPoint.low) && $util.isInteger(message.notificationSyncPoint.high))) - return "notificationSyncPoint: integer|Long expected"; - if (message.skipUserRevision != null && message.hasOwnProperty("skipUserRevision")) - if (typeof message.skipUserRevision !== "boolean") - return "skipUserRevision: boolean expected"; - if (message.multiPageIncrementalClientVersion != null && message.hasOwnProperty("multiPageIncrementalClientVersion")) + if (error) return 'locations.' + error; + } + if (message.checkForAuditData != null && message.hasOwnProperty('checkForAuditData')) + if (typeof message.checkForAuditData !== 'boolean') return 'checkForAuditData: boolean expected'; + if (message.clientVersion != null && message.hasOwnProperty('clientVersion')) + if (!$util.isInteger(message.clientVersion)) return 'clientVersion: integer expected'; + if (message.clientDataVersion != null && message.hasOwnProperty('clientDataVersion')) + if (!$util.isInteger(message.clientDataVersion)) return 'clientDataVersion: integer expected'; + if ( + message.noRemovedSharedFoldersWithTeamAccess != null && + message.hasOwnProperty('noRemovedSharedFoldersWithTeamAccess') + ) + if (typeof message.noRemovedSharedFoldersWithTeamAccess !== 'boolean') + return 'noRemovedSharedFoldersWithTeamAccess: boolean expected'; + if (message.notificationSyncPoint != null && message.hasOwnProperty('notificationSyncPoint')) + if ( + !$util.isInteger(message.notificationSyncPoint) && + !( + message.notificationSyncPoint && + $util.isInteger(message.notificationSyncPoint.low) && + $util.isInteger(message.notificationSyncPoint.high) + ) + ) + return 'notificationSyncPoint: integer|Long expected'; + if (message.skipUserRevision != null && message.hasOwnProperty('skipUserRevision')) + if (typeof message.skipUserRevision !== 'boolean') return 'skipUserRevision: boolean expected'; + if ( + message.multiPageIncrementalClientVersion != null && + message.hasOwnProperty('multiPageIncrementalClientVersion') + ) if (!$util.isInteger(message.multiPageIncrementalClientVersion)) - return "multiPageIncrementalClientVersion: integer expected"; + return 'multiPageIncrementalClientVersion: integer expected'; return null; }; @@ -153244,57 +158691,59 @@ export const Tokens = $root.Tokens = (() => { * @returns {Tokens.VaultSyncDownContinuationToken} VaultSyncDownContinuationToken */ VaultSyncDownContinuationToken.fromObject = function fromObject(object) { - if (object instanceof $root.Tokens.VaultSyncDownContinuationToken) - return object; + if (object instanceof $root.Tokens.VaultSyncDownContinuationToken) return object; let message = new $root.Tokens.VaultSyncDownContinuationToken(); - if (object.tokenVersion != null) - message.tokenVersion = object.tokenVersion | 0; + if (object.tokenVersion != null) message.tokenVersion = object.tokenVersion | 0; if (object.syncedToSyncOrder != null) if ($util.Long) (message.syncedToSyncOrder = $util.Long.fromValue(object.syncedToSyncOrder)).unsigned = false; - else if (typeof object.syncedToSyncOrder === "string") + else if (typeof object.syncedToSyncOrder === 'string') message.syncedToSyncOrder = parseInt(object.syncedToSyncOrder, 10); - else if (typeof object.syncedToSyncOrder === "number") + else if (typeof object.syncedToSyncOrder === 'number') message.syncedToSyncOrder = object.syncedToSyncOrder; - else if (typeof object.syncedToSyncOrder === "object") - message.syncedToSyncOrder = new $util.LongBits(object.syncedToSyncOrder.low >>> 0, object.syncedToSyncOrder.high >>> 0).toNumber(); + else if (typeof object.syncedToSyncOrder === 'object') + message.syncedToSyncOrder = new $util.LongBits( + object.syncedToSyncOrder.low >>> 0, + object.syncedToSyncOrder.high >>> 0 + ).toNumber(); if (object.syncingToSyncOrder != null) if ($util.Long) (message.syncingToSyncOrder = $util.Long.fromValue(object.syncingToSyncOrder)).unsigned = false; - else if (typeof object.syncingToSyncOrder === "string") + else if (typeof object.syncingToSyncOrder === 'string') message.syncingToSyncOrder = parseInt(object.syncingToSyncOrder, 10); - else if (typeof object.syncingToSyncOrder === "number") + else if (typeof object.syncingToSyncOrder === 'number') message.syncingToSyncOrder = object.syncingToSyncOrder; - else if (typeof object.syncingToSyncOrder === "object") - message.syncingToSyncOrder = new $util.LongBits(object.syncingToSyncOrder.low >>> 0, object.syncingToSyncOrder.high >>> 0).toNumber(); - if (object.tokenGenerated != null) - message.tokenGenerated = object.tokenGenerated | 0; - if (object.lastFullSyncCompleted != null) - message.lastFullSyncCompleted = object.lastFullSyncCompleted | 0; + else if (typeof object.syncingToSyncOrder === 'object') + message.syncingToSyncOrder = new $util.LongBits( + object.syncingToSyncOrder.low >>> 0, + object.syncingToSyncOrder.high >>> 0 + ).toNumber(); + if (object.tokenGenerated != null) message.tokenGenerated = object.tokenGenerated | 0; + if (object.lastFullSyncCompleted != null) message.lastFullSyncCompleted = object.lastFullSyncCompleted | 0; if (object.locations != null) { - if (typeof object.locations !== "object") - throw TypeError(".Tokens.VaultSyncDownContinuationToken.locations: object expected"); + if (typeof object.locations !== 'object') + throw TypeError('.Tokens.VaultSyncDownContinuationToken.locations: object expected'); message.locations = $root.Tokens.VaultSyncDownLocations.fromObject(object.locations); } - if (object.checkForAuditData != null) - message.checkForAuditData = Boolean(object.checkForAuditData); - if (object.clientVersion != null) - message.clientVersion = object.clientVersion | 0; - if (object.clientDataVersion != null) - message.clientDataVersion = object.clientDataVersion | 0; + if (object.checkForAuditData != null) message.checkForAuditData = Boolean(object.checkForAuditData); + if (object.clientVersion != null) message.clientVersion = object.clientVersion | 0; + if (object.clientDataVersion != null) message.clientDataVersion = object.clientDataVersion | 0; if (object.noRemovedSharedFoldersWithTeamAccess != null) message.noRemovedSharedFoldersWithTeamAccess = Boolean(object.noRemovedSharedFoldersWithTeamAccess); if (object.notificationSyncPoint != null) if ($util.Long) - (message.notificationSyncPoint = $util.Long.fromValue(object.notificationSyncPoint)).unsigned = false; - else if (typeof object.notificationSyncPoint === "string") + (message.notificationSyncPoint = $util.Long.fromValue(object.notificationSyncPoint)).unsigned = + false; + else if (typeof object.notificationSyncPoint === 'string') message.notificationSyncPoint = parseInt(object.notificationSyncPoint, 10); - else if (typeof object.notificationSyncPoint === "number") + else if (typeof object.notificationSyncPoint === 'number') message.notificationSyncPoint = object.notificationSyncPoint; - else if (typeof object.notificationSyncPoint === "object") - message.notificationSyncPoint = new $util.LongBits(object.notificationSyncPoint.low >>> 0, object.notificationSyncPoint.high >>> 0).toNumber(); - if (object.skipUserRevision != null) - message.skipUserRevision = Boolean(object.skipUserRevision); + else if (typeof object.notificationSyncPoint === 'object') + message.notificationSyncPoint = new $util.LongBits( + object.notificationSyncPoint.low >>> 0, + object.notificationSyncPoint.high >>> 0 + ).toNumber(); + if (object.skipUserRevision != null) message.skipUserRevision = Boolean(object.skipUserRevision); if (object.multiPageIncrementalClientVersion != null) message.multiPageIncrementalClientVersion = object.multiPageIncrementalClientVersion | 0; return message; @@ -153310,21 +158759,20 @@ export const Tokens = $root.Tokens = (() => { * @returns {Object.} Plain object */ VaultSyncDownContinuationToken.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { object.tokenVersion = 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.syncedToSyncOrder = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.syncedToSyncOrder = options.longs === String ? "0" : 0; + object.syncedToSyncOrder = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.syncedToSyncOrder = options.longs === String ? '0' : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.syncingToSyncOrder = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.syncingToSyncOrder = options.longs === String ? "0" : 0; + object.syncingToSyncOrder = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.syncingToSyncOrder = options.longs === String ? '0' : 0; object.tokenGenerated = 0; object.lastFullSyncCompleted = 0; object.locations = null; @@ -153334,46 +158782,81 @@ export const Tokens = $root.Tokens = (() => { object.noRemovedSharedFoldersWithTeamAccess = false; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.notificationSyncPoint = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.notificationSyncPoint = options.longs === String ? "0" : 0; + object.notificationSyncPoint = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.notificationSyncPoint = options.longs === String ? '0' : 0; object.skipUserRevision = false; object.multiPageIncrementalClientVersion = 0; } - if (message.tokenVersion != null && message.hasOwnProperty("tokenVersion")) + if (message.tokenVersion != null && message.hasOwnProperty('tokenVersion')) object.tokenVersion = message.tokenVersion; - if (message.syncedToSyncOrder != null && message.hasOwnProperty("syncedToSyncOrder")) - if (typeof message.syncedToSyncOrder === "number") - object.syncedToSyncOrder = options.longs === String ? String(message.syncedToSyncOrder) : message.syncedToSyncOrder; + if (message.syncedToSyncOrder != null && message.hasOwnProperty('syncedToSyncOrder')) + if (typeof message.syncedToSyncOrder === 'number') + object.syncedToSyncOrder = + options.longs === String ? String(message.syncedToSyncOrder) : message.syncedToSyncOrder; else - object.syncedToSyncOrder = options.longs === String ? $util.Long.prototype.toString.call(message.syncedToSyncOrder) : options.longs === Number ? new $util.LongBits(message.syncedToSyncOrder.low >>> 0, message.syncedToSyncOrder.high >>> 0).toNumber() : message.syncedToSyncOrder; - if (message.syncingToSyncOrder != null && message.hasOwnProperty("syncingToSyncOrder")) - if (typeof message.syncingToSyncOrder === "number") - object.syncingToSyncOrder = options.longs === String ? String(message.syncingToSyncOrder) : message.syncingToSyncOrder; + object.syncedToSyncOrder = + options.longs === String + ? $util.Long.prototype.toString.call(message.syncedToSyncOrder) + : options.longs === Number + ? new $util.LongBits( + message.syncedToSyncOrder.low >>> 0, + message.syncedToSyncOrder.high >>> 0 + ).toNumber() + : message.syncedToSyncOrder; + if (message.syncingToSyncOrder != null && message.hasOwnProperty('syncingToSyncOrder')) + if (typeof message.syncingToSyncOrder === 'number') + object.syncingToSyncOrder = + options.longs === String ? String(message.syncingToSyncOrder) : message.syncingToSyncOrder; else - object.syncingToSyncOrder = options.longs === String ? $util.Long.prototype.toString.call(message.syncingToSyncOrder) : options.longs === Number ? new $util.LongBits(message.syncingToSyncOrder.low >>> 0, message.syncingToSyncOrder.high >>> 0).toNumber() : message.syncingToSyncOrder; - if (message.tokenGenerated != null && message.hasOwnProperty("tokenGenerated")) + object.syncingToSyncOrder = + options.longs === String + ? $util.Long.prototype.toString.call(message.syncingToSyncOrder) + : options.longs === Number + ? new $util.LongBits( + message.syncingToSyncOrder.low >>> 0, + message.syncingToSyncOrder.high >>> 0 + ).toNumber() + : message.syncingToSyncOrder; + if (message.tokenGenerated != null && message.hasOwnProperty('tokenGenerated')) object.tokenGenerated = message.tokenGenerated; - if (message.lastFullSyncCompleted != null && message.hasOwnProperty("lastFullSyncCompleted")) + if (message.lastFullSyncCompleted != null && message.hasOwnProperty('lastFullSyncCompleted')) object.lastFullSyncCompleted = message.lastFullSyncCompleted; - if (message.locations != null && message.hasOwnProperty("locations")) + if (message.locations != null && message.hasOwnProperty('locations')) object.locations = $root.Tokens.VaultSyncDownLocations.toObject(message.locations, options); - if (message.checkForAuditData != null && message.hasOwnProperty("checkForAuditData")) + if (message.checkForAuditData != null && message.hasOwnProperty('checkForAuditData')) object.checkForAuditData = message.checkForAuditData; - if (message.clientVersion != null && message.hasOwnProperty("clientVersion")) + if (message.clientVersion != null && message.hasOwnProperty('clientVersion')) object.clientVersion = message.clientVersion; - if (message.clientDataVersion != null && message.hasOwnProperty("clientDataVersion")) + if (message.clientDataVersion != null && message.hasOwnProperty('clientDataVersion')) object.clientDataVersion = message.clientDataVersion; - if (message.noRemovedSharedFoldersWithTeamAccess != null && message.hasOwnProperty("noRemovedSharedFoldersWithTeamAccess")) + if ( + message.noRemovedSharedFoldersWithTeamAccess != null && + message.hasOwnProperty('noRemovedSharedFoldersWithTeamAccess') + ) object.noRemovedSharedFoldersWithTeamAccess = message.noRemovedSharedFoldersWithTeamAccess; - if (message.notificationSyncPoint != null && message.hasOwnProperty("notificationSyncPoint")) - if (typeof message.notificationSyncPoint === "number") - object.notificationSyncPoint = options.longs === String ? String(message.notificationSyncPoint) : message.notificationSyncPoint; + if (message.notificationSyncPoint != null && message.hasOwnProperty('notificationSyncPoint')) + if (typeof message.notificationSyncPoint === 'number') + object.notificationSyncPoint = + options.longs === String + ? String(message.notificationSyncPoint) + : message.notificationSyncPoint; else - object.notificationSyncPoint = options.longs === String ? $util.Long.prototype.toString.call(message.notificationSyncPoint) : options.longs === Number ? new $util.LongBits(message.notificationSyncPoint.low >>> 0, message.notificationSyncPoint.high >>> 0).toNumber() : message.notificationSyncPoint; - if (message.skipUserRevision != null && message.hasOwnProperty("skipUserRevision")) + object.notificationSyncPoint = + options.longs === String + ? $util.Long.prototype.toString.call(message.notificationSyncPoint) + : options.longs === Number + ? new $util.LongBits( + message.notificationSyncPoint.low >>> 0, + message.notificationSyncPoint.high >>> 0 + ).toNumber() + : message.notificationSyncPoint; + if (message.skipUserRevision != null && message.hasOwnProperty('skipUserRevision')) object.skipUserRevision = message.skipUserRevision; - if (message.multiPageIncrementalClientVersion != null && message.hasOwnProperty("multiPageIncrementalClientVersion")) + if ( + message.multiPageIncrementalClientVersion != null && + message.hasOwnProperty('multiPageIncrementalClientVersion') + ) object.multiPageIncrementalClientVersion = message.multiPageIncrementalClientVersion; return object; }; @@ -153399,16 +158882,15 @@ export const Tokens = $root.Tokens = (() => { */ VaultSyncDownContinuationToken.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Tokens.VaultSyncDownContinuationToken"; + return typeUrlPrefix + '/Tokens.VaultSyncDownContinuationToken'; }; return VaultSyncDownContinuationToken; })(); - Tokens.VaultSyncDownLocations = (function() { - + Tokens.VaultSyncDownLocations = (function () { /** * Properties of a VaultSyncDownLocations. * @memberof Tokens @@ -153442,8 +158924,7 @@ export const Tokens = $root.Tokens = (() => { function VaultSyncDownLocations(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -153596,40 +159077,102 @@ export const Tokens = $root.Tokens = (() => { * @returns {$protobuf.Writer} Writer */ VaultSyncDownLocations.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.vaultDataEntity != null && Object.hasOwnProperty.call(message, "vaultDataEntity")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.vaultDataEntity); - if (message.recordLocation != null && Object.hasOwnProperty.call(message, "recordLocation")) - $root.Tokens.RecordLocation.encode(message.recordLocation, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.recordLinkLocation != null && Object.hasOwnProperty.call(message, "recordLinkLocation")) - $root.Tokens.RecordLinkLocation.encode(message.recordLinkLocation, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.folderLocation != null && Object.hasOwnProperty.call(message, "folderLocation")) - $root.Tokens.FolderLocation.encode(message.folderLocation, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.folderRecordLocation != null && Object.hasOwnProperty.call(message, "folderRecordLocation")) - $root.Tokens.FolderRecordLocation.encode(message.folderRecordLocation, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.folderSharedFolderLocation != null && Object.hasOwnProperty.call(message, "folderSharedFolderLocation")) - $root.Tokens.FolderSharedFolderLocation.encode(message.folderSharedFolderLocation, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.sharedFolderLocation != null && Object.hasOwnProperty.call(message, "sharedFolderLocation")) - $root.Tokens.SharedFolderLocation.encode(message.sharedFolderLocation, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.sharedFolderRecordLocation != null && Object.hasOwnProperty.call(message, "sharedFolderRecordLocation")) - $root.Tokens.SharedFolderRecordLocation.encode(message.sharedFolderRecordLocation, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.sharedFolderTeamLocation != null && Object.hasOwnProperty.call(message, "sharedFolderTeamLocation")) - $root.Tokens.SharedFolderTeamLocation.encode(message.sharedFolderTeamLocation, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); - if (message.sharedFolderUserLocation != null && Object.hasOwnProperty.call(message, "sharedFolderUserLocation")) - $root.Tokens.SharedFolderUserLocation.encode(message.sharedFolderUserLocation, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); - if (message.shareInvitationLocation != null && Object.hasOwnProperty.call(message, "shareInvitationLocation")) - $root.Tokens.ShareInvitationLocation.encode(message.shareInvitationLocation, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); - if (message.teamLocation != null && Object.hasOwnProperty.call(message, "teamLocation")) - $root.Tokens.TeamLocation.encode(message.teamLocation, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); - if (message.userAuthHashLocation != null && Object.hasOwnProperty.call(message, "userAuthHashLocation")) - $root.Tokens.UserAuthHashLocation.encode(message.userAuthHashLocation, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); - if (message.ksmLocation != null && Object.hasOwnProperty.call(message, "ksmLocation")) - $root.Tokens.KsmLocation.encode(message.ksmLocation, writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim(); - if (message.sharedFolderFolderRecordLocation != null && Object.hasOwnProperty.call(message, "sharedFolderFolderRecordLocation")) - $root.Tokens.SharedFolderFolderRecordLocation.encode(message.sharedFolderFolderRecordLocation, writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim(); - if (message.userLocation != null && Object.hasOwnProperty.call(message, "userLocation")) - $root.Tokens.UserLocation.encode(message.userLocation, writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim(); + if (!writer) writer = $Writer.create(); + if (message.vaultDataEntity != null && Object.hasOwnProperty.call(message, 'vaultDataEntity')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int32(message.vaultDataEntity); + if (message.recordLocation != null && Object.hasOwnProperty.call(message, 'recordLocation')) + $root.Tokens.RecordLocation.encode( + message.recordLocation, + writer.uint32(/* id 2, wireType 2 =*/ 18).fork() + ).ldelim(); + if (message.recordLinkLocation != null && Object.hasOwnProperty.call(message, 'recordLinkLocation')) + $root.Tokens.RecordLinkLocation.encode( + message.recordLinkLocation, + writer.uint32(/* id 3, wireType 2 =*/ 26).fork() + ).ldelim(); + if (message.folderLocation != null && Object.hasOwnProperty.call(message, 'folderLocation')) + $root.Tokens.FolderLocation.encode( + message.folderLocation, + writer.uint32(/* id 4, wireType 2 =*/ 34).fork() + ).ldelim(); + if (message.folderRecordLocation != null && Object.hasOwnProperty.call(message, 'folderRecordLocation')) + $root.Tokens.FolderRecordLocation.encode( + message.folderRecordLocation, + writer.uint32(/* id 5, wireType 2 =*/ 42).fork() + ).ldelim(); + if ( + message.folderSharedFolderLocation != null && + Object.hasOwnProperty.call(message, 'folderSharedFolderLocation') + ) + $root.Tokens.FolderSharedFolderLocation.encode( + message.folderSharedFolderLocation, + writer.uint32(/* id 6, wireType 2 =*/ 50).fork() + ).ldelim(); + if (message.sharedFolderLocation != null && Object.hasOwnProperty.call(message, 'sharedFolderLocation')) + $root.Tokens.SharedFolderLocation.encode( + message.sharedFolderLocation, + writer.uint32(/* id 7, wireType 2 =*/ 58).fork() + ).ldelim(); + if ( + message.sharedFolderRecordLocation != null && + Object.hasOwnProperty.call(message, 'sharedFolderRecordLocation') + ) + $root.Tokens.SharedFolderRecordLocation.encode( + message.sharedFolderRecordLocation, + writer.uint32(/* id 8, wireType 2 =*/ 66).fork() + ).ldelim(); + if ( + message.sharedFolderTeamLocation != null && + Object.hasOwnProperty.call(message, 'sharedFolderTeamLocation') + ) + $root.Tokens.SharedFolderTeamLocation.encode( + message.sharedFolderTeamLocation, + writer.uint32(/* id 9, wireType 2 =*/ 74).fork() + ).ldelim(); + if ( + message.sharedFolderUserLocation != null && + Object.hasOwnProperty.call(message, 'sharedFolderUserLocation') + ) + $root.Tokens.SharedFolderUserLocation.encode( + message.sharedFolderUserLocation, + writer.uint32(/* id 10, wireType 2 =*/ 82).fork() + ).ldelim(); + if ( + message.shareInvitationLocation != null && + Object.hasOwnProperty.call(message, 'shareInvitationLocation') + ) + $root.Tokens.ShareInvitationLocation.encode( + message.shareInvitationLocation, + writer.uint32(/* id 11, wireType 2 =*/ 90).fork() + ).ldelim(); + if (message.teamLocation != null && Object.hasOwnProperty.call(message, 'teamLocation')) + $root.Tokens.TeamLocation.encode( + message.teamLocation, + writer.uint32(/* id 12, wireType 2 =*/ 98).fork() + ).ldelim(); + if (message.userAuthHashLocation != null && Object.hasOwnProperty.call(message, 'userAuthHashLocation')) + $root.Tokens.UserAuthHashLocation.encode( + message.userAuthHashLocation, + writer.uint32(/* id 13, wireType 2 =*/ 106).fork() + ).ldelim(); + if (message.ksmLocation != null && Object.hasOwnProperty.call(message, 'ksmLocation')) + $root.Tokens.KsmLocation.encode( + message.ksmLocation, + writer.uint32(/* id 14, wireType 2 =*/ 114).fork() + ).ldelim(); + if ( + message.sharedFolderFolderRecordLocation != null && + Object.hasOwnProperty.call(message, 'sharedFolderFolderRecordLocation') + ) + $root.Tokens.SharedFolderFolderRecordLocation.encode( + message.sharedFolderFolderRecordLocation, + writer.uint32(/* id 15, wireType 2 =*/ 122).fork() + ).ldelim(); + if (message.userLocation != null && Object.hasOwnProperty.call(message, 'userLocation')) + $root.Tokens.UserLocation.encode( + message.userLocation, + writer.uint32(/* id 16, wireType 2 =*/ 130).fork() + ).ldelim(); return writer; }; @@ -153658,79 +159201,106 @@ export const Tokens = $root.Tokens = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ VaultSyncDownLocations.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Tokens.VaultSyncDownLocations(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Tokens.VaultSyncDownLocations(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.vaultDataEntity = reader.int32(); break; } - case 2: { + case 2: { message.recordLocation = $root.Tokens.RecordLocation.decode(reader, reader.uint32()); break; } - case 3: { + case 3: { message.recordLinkLocation = $root.Tokens.RecordLinkLocation.decode(reader, reader.uint32()); break; } - case 4: { + case 4: { message.folderLocation = $root.Tokens.FolderLocation.decode(reader, reader.uint32()); break; } - case 5: { - message.folderRecordLocation = $root.Tokens.FolderRecordLocation.decode(reader, reader.uint32()); + case 5: { + message.folderRecordLocation = $root.Tokens.FolderRecordLocation.decode( + reader, + reader.uint32() + ); break; } - case 6: { - message.folderSharedFolderLocation = $root.Tokens.FolderSharedFolderLocation.decode(reader, reader.uint32()); + case 6: { + message.folderSharedFolderLocation = $root.Tokens.FolderSharedFolderLocation.decode( + reader, + reader.uint32() + ); break; } - case 7: { - message.sharedFolderLocation = $root.Tokens.SharedFolderLocation.decode(reader, reader.uint32()); + case 7: { + message.sharedFolderLocation = $root.Tokens.SharedFolderLocation.decode( + reader, + reader.uint32() + ); break; } - case 8: { - message.sharedFolderRecordLocation = $root.Tokens.SharedFolderRecordLocation.decode(reader, reader.uint32()); + case 8: { + message.sharedFolderRecordLocation = $root.Tokens.SharedFolderRecordLocation.decode( + reader, + reader.uint32() + ); break; } - case 9: { - message.sharedFolderTeamLocation = $root.Tokens.SharedFolderTeamLocation.decode(reader, reader.uint32()); + case 9: { + message.sharedFolderTeamLocation = $root.Tokens.SharedFolderTeamLocation.decode( + reader, + reader.uint32() + ); break; } - case 10: { - message.sharedFolderUserLocation = $root.Tokens.SharedFolderUserLocation.decode(reader, reader.uint32()); + case 10: { + message.sharedFolderUserLocation = $root.Tokens.SharedFolderUserLocation.decode( + reader, + reader.uint32() + ); break; } - case 11: { - message.shareInvitationLocation = $root.Tokens.ShareInvitationLocation.decode(reader, reader.uint32()); + case 11: { + message.shareInvitationLocation = $root.Tokens.ShareInvitationLocation.decode( + reader, + reader.uint32() + ); break; } - case 12: { + case 12: { message.teamLocation = $root.Tokens.TeamLocation.decode(reader, reader.uint32()); break; } - case 13: { - message.userAuthHashLocation = $root.Tokens.UserAuthHashLocation.decode(reader, reader.uint32()); + case 13: { + message.userAuthHashLocation = $root.Tokens.UserAuthHashLocation.decode( + reader, + reader.uint32() + ); break; } - case 14: { + case 14: { message.ksmLocation = $root.Tokens.KsmLocation.decode(reader, reader.uint32()); break; } - case 15: { - message.sharedFolderFolderRecordLocation = $root.Tokens.SharedFolderFolderRecordLocation.decode(reader, reader.uint32()); + case 15: { + message.sharedFolderFolderRecordLocation = $root.Tokens.SharedFolderFolderRecordLocation.decode( + reader, + reader.uint32() + ); break; } - case 16: { + case 16: { message.userLocation = $root.Tokens.UserLocation.decode(reader, reader.uint32()); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -153747,8 +159317,7 @@ export const Tokens = $root.Tokens = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ VaultSyncDownLocations.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -153761,85 +159330,73 @@ export const Tokens = $root.Tokens = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ VaultSyncDownLocations.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.vaultDataEntity != null && message.hasOwnProperty("vaultDataEntity")) - if (!$util.isInteger(message.vaultDataEntity)) - return "vaultDataEntity: integer expected"; - if (message.recordLocation != null && message.hasOwnProperty("recordLocation")) { + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.vaultDataEntity != null && message.hasOwnProperty('vaultDataEntity')) + if (!$util.isInteger(message.vaultDataEntity)) return 'vaultDataEntity: integer expected'; + if (message.recordLocation != null && message.hasOwnProperty('recordLocation')) { let error = $root.Tokens.RecordLocation.verify(message.recordLocation); - if (error) - return "recordLocation." + error; + if (error) return 'recordLocation.' + error; } - if (message.recordLinkLocation != null && message.hasOwnProperty("recordLinkLocation")) { + if (message.recordLinkLocation != null && message.hasOwnProperty('recordLinkLocation')) { let error = $root.Tokens.RecordLinkLocation.verify(message.recordLinkLocation); - if (error) - return "recordLinkLocation." + error; + if (error) return 'recordLinkLocation.' + error; } - if (message.folderLocation != null && message.hasOwnProperty("folderLocation")) { + if (message.folderLocation != null && message.hasOwnProperty('folderLocation')) { let error = $root.Tokens.FolderLocation.verify(message.folderLocation); - if (error) - return "folderLocation." + error; + if (error) return 'folderLocation.' + error; } - if (message.folderRecordLocation != null && message.hasOwnProperty("folderRecordLocation")) { + if (message.folderRecordLocation != null && message.hasOwnProperty('folderRecordLocation')) { let error = $root.Tokens.FolderRecordLocation.verify(message.folderRecordLocation); - if (error) - return "folderRecordLocation." + error; + if (error) return 'folderRecordLocation.' + error; } - if (message.folderSharedFolderLocation != null && message.hasOwnProperty("folderSharedFolderLocation")) { + if (message.folderSharedFolderLocation != null && message.hasOwnProperty('folderSharedFolderLocation')) { let error = $root.Tokens.FolderSharedFolderLocation.verify(message.folderSharedFolderLocation); - if (error) - return "folderSharedFolderLocation." + error; + if (error) return 'folderSharedFolderLocation.' + error; } - if (message.sharedFolderLocation != null && message.hasOwnProperty("sharedFolderLocation")) { + if (message.sharedFolderLocation != null && message.hasOwnProperty('sharedFolderLocation')) { let error = $root.Tokens.SharedFolderLocation.verify(message.sharedFolderLocation); - if (error) - return "sharedFolderLocation." + error; + if (error) return 'sharedFolderLocation.' + error; } - if (message.sharedFolderRecordLocation != null && message.hasOwnProperty("sharedFolderRecordLocation")) { + if (message.sharedFolderRecordLocation != null && message.hasOwnProperty('sharedFolderRecordLocation')) { let error = $root.Tokens.SharedFolderRecordLocation.verify(message.sharedFolderRecordLocation); - if (error) - return "sharedFolderRecordLocation." + error; + if (error) return 'sharedFolderRecordLocation.' + error; } - if (message.sharedFolderTeamLocation != null && message.hasOwnProperty("sharedFolderTeamLocation")) { + if (message.sharedFolderTeamLocation != null && message.hasOwnProperty('sharedFolderTeamLocation')) { let error = $root.Tokens.SharedFolderTeamLocation.verify(message.sharedFolderTeamLocation); - if (error) - return "sharedFolderTeamLocation." + error; + if (error) return 'sharedFolderTeamLocation.' + error; } - if (message.sharedFolderUserLocation != null && message.hasOwnProperty("sharedFolderUserLocation")) { + if (message.sharedFolderUserLocation != null && message.hasOwnProperty('sharedFolderUserLocation')) { let error = $root.Tokens.SharedFolderUserLocation.verify(message.sharedFolderUserLocation); - if (error) - return "sharedFolderUserLocation." + error; + if (error) return 'sharedFolderUserLocation.' + error; } - if (message.shareInvitationLocation != null && message.hasOwnProperty("shareInvitationLocation")) { + if (message.shareInvitationLocation != null && message.hasOwnProperty('shareInvitationLocation')) { let error = $root.Tokens.ShareInvitationLocation.verify(message.shareInvitationLocation); - if (error) - return "shareInvitationLocation." + error; + if (error) return 'shareInvitationLocation.' + error; } - if (message.teamLocation != null && message.hasOwnProperty("teamLocation")) { + if (message.teamLocation != null && message.hasOwnProperty('teamLocation')) { let error = $root.Tokens.TeamLocation.verify(message.teamLocation); - if (error) - return "teamLocation." + error; + if (error) return 'teamLocation.' + error; } - if (message.userAuthHashLocation != null && message.hasOwnProperty("userAuthHashLocation")) { + if (message.userAuthHashLocation != null && message.hasOwnProperty('userAuthHashLocation')) { let error = $root.Tokens.UserAuthHashLocation.verify(message.userAuthHashLocation); - if (error) - return "userAuthHashLocation." + error; + if (error) return 'userAuthHashLocation.' + error; } - if (message.ksmLocation != null && message.hasOwnProperty("ksmLocation")) { + if (message.ksmLocation != null && message.hasOwnProperty('ksmLocation')) { let error = $root.Tokens.KsmLocation.verify(message.ksmLocation); - if (error) - return "ksmLocation." + error; - } - if (message.sharedFolderFolderRecordLocation != null && message.hasOwnProperty("sharedFolderFolderRecordLocation")) { - let error = $root.Tokens.SharedFolderFolderRecordLocation.verify(message.sharedFolderFolderRecordLocation); - if (error) - return "sharedFolderFolderRecordLocation." + error; - } - if (message.userLocation != null && message.hasOwnProperty("userLocation")) { + if (error) return 'ksmLocation.' + error; + } + if ( + message.sharedFolderFolderRecordLocation != null && + message.hasOwnProperty('sharedFolderFolderRecordLocation') + ) { + let error = $root.Tokens.SharedFolderFolderRecordLocation.verify( + message.sharedFolderFolderRecordLocation + ); + if (error) return 'sharedFolderFolderRecordLocation.' + error; + } + if (message.userLocation != null && message.hasOwnProperty('userLocation')) { let error = $root.Tokens.UserLocation.verify(message.userLocation); - if (error) - return "userLocation." + error; + if (error) return 'userLocation.' + error; } return null; }; @@ -153853,84 +159410,100 @@ export const Tokens = $root.Tokens = (() => { * @returns {Tokens.VaultSyncDownLocations} VaultSyncDownLocations */ VaultSyncDownLocations.fromObject = function fromObject(object) { - if (object instanceof $root.Tokens.VaultSyncDownLocations) - return object; + if (object instanceof $root.Tokens.VaultSyncDownLocations) return object; let message = new $root.Tokens.VaultSyncDownLocations(); - if (object.vaultDataEntity != null) - message.vaultDataEntity = object.vaultDataEntity | 0; + if (object.vaultDataEntity != null) message.vaultDataEntity = object.vaultDataEntity | 0; if (object.recordLocation != null) { - if (typeof object.recordLocation !== "object") - throw TypeError(".Tokens.VaultSyncDownLocations.recordLocation: object expected"); + if (typeof object.recordLocation !== 'object') + throw TypeError('.Tokens.VaultSyncDownLocations.recordLocation: object expected'); message.recordLocation = $root.Tokens.RecordLocation.fromObject(object.recordLocation); } if (object.recordLinkLocation != null) { - if (typeof object.recordLinkLocation !== "object") - throw TypeError(".Tokens.VaultSyncDownLocations.recordLinkLocation: object expected"); + if (typeof object.recordLinkLocation !== 'object') + throw TypeError('.Tokens.VaultSyncDownLocations.recordLinkLocation: object expected'); message.recordLinkLocation = $root.Tokens.RecordLinkLocation.fromObject(object.recordLinkLocation); } if (object.folderLocation != null) { - if (typeof object.folderLocation !== "object") - throw TypeError(".Tokens.VaultSyncDownLocations.folderLocation: object expected"); + if (typeof object.folderLocation !== 'object') + throw TypeError('.Tokens.VaultSyncDownLocations.folderLocation: object expected'); message.folderLocation = $root.Tokens.FolderLocation.fromObject(object.folderLocation); } if (object.folderRecordLocation != null) { - if (typeof object.folderRecordLocation !== "object") - throw TypeError(".Tokens.VaultSyncDownLocations.folderRecordLocation: object expected"); - message.folderRecordLocation = $root.Tokens.FolderRecordLocation.fromObject(object.folderRecordLocation); + if (typeof object.folderRecordLocation !== 'object') + throw TypeError('.Tokens.VaultSyncDownLocations.folderRecordLocation: object expected'); + message.folderRecordLocation = $root.Tokens.FolderRecordLocation.fromObject( + object.folderRecordLocation + ); } if (object.folderSharedFolderLocation != null) { - if (typeof object.folderSharedFolderLocation !== "object") - throw TypeError(".Tokens.VaultSyncDownLocations.folderSharedFolderLocation: object expected"); - message.folderSharedFolderLocation = $root.Tokens.FolderSharedFolderLocation.fromObject(object.folderSharedFolderLocation); + if (typeof object.folderSharedFolderLocation !== 'object') + throw TypeError('.Tokens.VaultSyncDownLocations.folderSharedFolderLocation: object expected'); + message.folderSharedFolderLocation = $root.Tokens.FolderSharedFolderLocation.fromObject( + object.folderSharedFolderLocation + ); } if (object.sharedFolderLocation != null) { - if (typeof object.sharedFolderLocation !== "object") - throw TypeError(".Tokens.VaultSyncDownLocations.sharedFolderLocation: object expected"); - message.sharedFolderLocation = $root.Tokens.SharedFolderLocation.fromObject(object.sharedFolderLocation); + if (typeof object.sharedFolderLocation !== 'object') + throw TypeError('.Tokens.VaultSyncDownLocations.sharedFolderLocation: object expected'); + message.sharedFolderLocation = $root.Tokens.SharedFolderLocation.fromObject( + object.sharedFolderLocation + ); } if (object.sharedFolderRecordLocation != null) { - if (typeof object.sharedFolderRecordLocation !== "object") - throw TypeError(".Tokens.VaultSyncDownLocations.sharedFolderRecordLocation: object expected"); - message.sharedFolderRecordLocation = $root.Tokens.SharedFolderRecordLocation.fromObject(object.sharedFolderRecordLocation); + if (typeof object.sharedFolderRecordLocation !== 'object') + throw TypeError('.Tokens.VaultSyncDownLocations.sharedFolderRecordLocation: object expected'); + message.sharedFolderRecordLocation = $root.Tokens.SharedFolderRecordLocation.fromObject( + object.sharedFolderRecordLocation + ); } if (object.sharedFolderTeamLocation != null) { - if (typeof object.sharedFolderTeamLocation !== "object") - throw TypeError(".Tokens.VaultSyncDownLocations.sharedFolderTeamLocation: object expected"); - message.sharedFolderTeamLocation = $root.Tokens.SharedFolderTeamLocation.fromObject(object.sharedFolderTeamLocation); + if (typeof object.sharedFolderTeamLocation !== 'object') + throw TypeError('.Tokens.VaultSyncDownLocations.sharedFolderTeamLocation: object expected'); + message.sharedFolderTeamLocation = $root.Tokens.SharedFolderTeamLocation.fromObject( + object.sharedFolderTeamLocation + ); } if (object.sharedFolderUserLocation != null) { - if (typeof object.sharedFolderUserLocation !== "object") - throw TypeError(".Tokens.VaultSyncDownLocations.sharedFolderUserLocation: object expected"); - message.sharedFolderUserLocation = $root.Tokens.SharedFolderUserLocation.fromObject(object.sharedFolderUserLocation); + if (typeof object.sharedFolderUserLocation !== 'object') + throw TypeError('.Tokens.VaultSyncDownLocations.sharedFolderUserLocation: object expected'); + message.sharedFolderUserLocation = $root.Tokens.SharedFolderUserLocation.fromObject( + object.sharedFolderUserLocation + ); } if (object.shareInvitationLocation != null) { - if (typeof object.shareInvitationLocation !== "object") - throw TypeError(".Tokens.VaultSyncDownLocations.shareInvitationLocation: object expected"); - message.shareInvitationLocation = $root.Tokens.ShareInvitationLocation.fromObject(object.shareInvitationLocation); + if (typeof object.shareInvitationLocation !== 'object') + throw TypeError('.Tokens.VaultSyncDownLocations.shareInvitationLocation: object expected'); + message.shareInvitationLocation = $root.Tokens.ShareInvitationLocation.fromObject( + object.shareInvitationLocation + ); } if (object.teamLocation != null) { - if (typeof object.teamLocation !== "object") - throw TypeError(".Tokens.VaultSyncDownLocations.teamLocation: object expected"); + if (typeof object.teamLocation !== 'object') + throw TypeError('.Tokens.VaultSyncDownLocations.teamLocation: object expected'); message.teamLocation = $root.Tokens.TeamLocation.fromObject(object.teamLocation); } if (object.userAuthHashLocation != null) { - if (typeof object.userAuthHashLocation !== "object") - throw TypeError(".Tokens.VaultSyncDownLocations.userAuthHashLocation: object expected"); - message.userAuthHashLocation = $root.Tokens.UserAuthHashLocation.fromObject(object.userAuthHashLocation); + if (typeof object.userAuthHashLocation !== 'object') + throw TypeError('.Tokens.VaultSyncDownLocations.userAuthHashLocation: object expected'); + message.userAuthHashLocation = $root.Tokens.UserAuthHashLocation.fromObject( + object.userAuthHashLocation + ); } if (object.ksmLocation != null) { - if (typeof object.ksmLocation !== "object") - throw TypeError(".Tokens.VaultSyncDownLocations.ksmLocation: object expected"); + if (typeof object.ksmLocation !== 'object') + throw TypeError('.Tokens.VaultSyncDownLocations.ksmLocation: object expected'); message.ksmLocation = $root.Tokens.KsmLocation.fromObject(object.ksmLocation); } if (object.sharedFolderFolderRecordLocation != null) { - if (typeof object.sharedFolderFolderRecordLocation !== "object") - throw TypeError(".Tokens.VaultSyncDownLocations.sharedFolderFolderRecordLocation: object expected"); - message.sharedFolderFolderRecordLocation = $root.Tokens.SharedFolderFolderRecordLocation.fromObject(object.sharedFolderFolderRecordLocation); + if (typeof object.sharedFolderFolderRecordLocation !== 'object') + throw TypeError('.Tokens.VaultSyncDownLocations.sharedFolderFolderRecordLocation: object expected'); + message.sharedFolderFolderRecordLocation = $root.Tokens.SharedFolderFolderRecordLocation.fromObject( + object.sharedFolderFolderRecordLocation + ); } if (object.userLocation != null) { - if (typeof object.userLocation !== "object") - throw TypeError(".Tokens.VaultSyncDownLocations.userLocation: object expected"); + if (typeof object.userLocation !== 'object') + throw TypeError('.Tokens.VaultSyncDownLocations.userLocation: object expected'); message.userLocation = $root.Tokens.UserLocation.fromObject(object.userLocation); } return message; @@ -153946,8 +159519,7 @@ export const Tokens = $root.Tokens = (() => { * @returns {Object.} Plain object */ VaultSyncDownLocations.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { object.vaultDataEntity = 0; @@ -153967,37 +159539,70 @@ export const Tokens = $root.Tokens = (() => { object.sharedFolderFolderRecordLocation = null; object.userLocation = null; } - if (message.vaultDataEntity != null && message.hasOwnProperty("vaultDataEntity")) + if (message.vaultDataEntity != null && message.hasOwnProperty('vaultDataEntity')) object.vaultDataEntity = message.vaultDataEntity; - if (message.recordLocation != null && message.hasOwnProperty("recordLocation")) + if (message.recordLocation != null && message.hasOwnProperty('recordLocation')) object.recordLocation = $root.Tokens.RecordLocation.toObject(message.recordLocation, options); - if (message.recordLinkLocation != null && message.hasOwnProperty("recordLinkLocation")) - object.recordLinkLocation = $root.Tokens.RecordLinkLocation.toObject(message.recordLinkLocation, options); - if (message.folderLocation != null && message.hasOwnProperty("folderLocation")) + if (message.recordLinkLocation != null && message.hasOwnProperty('recordLinkLocation')) + object.recordLinkLocation = $root.Tokens.RecordLinkLocation.toObject( + message.recordLinkLocation, + options + ); + if (message.folderLocation != null && message.hasOwnProperty('folderLocation')) object.folderLocation = $root.Tokens.FolderLocation.toObject(message.folderLocation, options); - if (message.folderRecordLocation != null && message.hasOwnProperty("folderRecordLocation")) - object.folderRecordLocation = $root.Tokens.FolderRecordLocation.toObject(message.folderRecordLocation, options); - if (message.folderSharedFolderLocation != null && message.hasOwnProperty("folderSharedFolderLocation")) - object.folderSharedFolderLocation = $root.Tokens.FolderSharedFolderLocation.toObject(message.folderSharedFolderLocation, options); - if (message.sharedFolderLocation != null && message.hasOwnProperty("sharedFolderLocation")) - object.sharedFolderLocation = $root.Tokens.SharedFolderLocation.toObject(message.sharedFolderLocation, options); - if (message.sharedFolderRecordLocation != null && message.hasOwnProperty("sharedFolderRecordLocation")) - object.sharedFolderRecordLocation = $root.Tokens.SharedFolderRecordLocation.toObject(message.sharedFolderRecordLocation, options); - if (message.sharedFolderTeamLocation != null && message.hasOwnProperty("sharedFolderTeamLocation")) - object.sharedFolderTeamLocation = $root.Tokens.SharedFolderTeamLocation.toObject(message.sharedFolderTeamLocation, options); - if (message.sharedFolderUserLocation != null && message.hasOwnProperty("sharedFolderUserLocation")) - object.sharedFolderUserLocation = $root.Tokens.SharedFolderUserLocation.toObject(message.sharedFolderUserLocation, options); - if (message.shareInvitationLocation != null && message.hasOwnProperty("shareInvitationLocation")) - object.shareInvitationLocation = $root.Tokens.ShareInvitationLocation.toObject(message.shareInvitationLocation, options); - if (message.teamLocation != null && message.hasOwnProperty("teamLocation")) + if (message.folderRecordLocation != null && message.hasOwnProperty('folderRecordLocation')) + object.folderRecordLocation = $root.Tokens.FolderRecordLocation.toObject( + message.folderRecordLocation, + options + ); + if (message.folderSharedFolderLocation != null && message.hasOwnProperty('folderSharedFolderLocation')) + object.folderSharedFolderLocation = $root.Tokens.FolderSharedFolderLocation.toObject( + message.folderSharedFolderLocation, + options + ); + if (message.sharedFolderLocation != null && message.hasOwnProperty('sharedFolderLocation')) + object.sharedFolderLocation = $root.Tokens.SharedFolderLocation.toObject( + message.sharedFolderLocation, + options + ); + if (message.sharedFolderRecordLocation != null && message.hasOwnProperty('sharedFolderRecordLocation')) + object.sharedFolderRecordLocation = $root.Tokens.SharedFolderRecordLocation.toObject( + message.sharedFolderRecordLocation, + options + ); + if (message.sharedFolderTeamLocation != null && message.hasOwnProperty('sharedFolderTeamLocation')) + object.sharedFolderTeamLocation = $root.Tokens.SharedFolderTeamLocation.toObject( + message.sharedFolderTeamLocation, + options + ); + if (message.sharedFolderUserLocation != null && message.hasOwnProperty('sharedFolderUserLocation')) + object.sharedFolderUserLocation = $root.Tokens.SharedFolderUserLocation.toObject( + message.sharedFolderUserLocation, + options + ); + if (message.shareInvitationLocation != null && message.hasOwnProperty('shareInvitationLocation')) + object.shareInvitationLocation = $root.Tokens.ShareInvitationLocation.toObject( + message.shareInvitationLocation, + options + ); + if (message.teamLocation != null && message.hasOwnProperty('teamLocation')) object.teamLocation = $root.Tokens.TeamLocation.toObject(message.teamLocation, options); - if (message.userAuthHashLocation != null && message.hasOwnProperty("userAuthHashLocation")) - object.userAuthHashLocation = $root.Tokens.UserAuthHashLocation.toObject(message.userAuthHashLocation, options); - if (message.ksmLocation != null && message.hasOwnProperty("ksmLocation")) + if (message.userAuthHashLocation != null && message.hasOwnProperty('userAuthHashLocation')) + object.userAuthHashLocation = $root.Tokens.UserAuthHashLocation.toObject( + message.userAuthHashLocation, + options + ); + if (message.ksmLocation != null && message.hasOwnProperty('ksmLocation')) object.ksmLocation = $root.Tokens.KsmLocation.toObject(message.ksmLocation, options); - if (message.sharedFolderFolderRecordLocation != null && message.hasOwnProperty("sharedFolderFolderRecordLocation")) - object.sharedFolderFolderRecordLocation = $root.Tokens.SharedFolderFolderRecordLocation.toObject(message.sharedFolderFolderRecordLocation, options); - if (message.userLocation != null && message.hasOwnProperty("userLocation")) + if ( + message.sharedFolderFolderRecordLocation != null && + message.hasOwnProperty('sharedFolderFolderRecordLocation') + ) + object.sharedFolderFolderRecordLocation = $root.Tokens.SharedFolderFolderRecordLocation.toObject( + message.sharedFolderFolderRecordLocation, + options + ); + if (message.userLocation != null && message.hasOwnProperty('userLocation')) object.userLocation = $root.Tokens.UserLocation.toObject(message.userLocation, options); return object; }; @@ -154023,16 +159628,15 @@ export const Tokens = $root.Tokens = (() => { */ VaultSyncDownLocations.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Tokens.VaultSyncDownLocations"; + return typeUrlPrefix + '/Tokens.VaultSyncDownLocations'; }; return VaultSyncDownLocations; })(); - Tokens.RecordLocation = (function() { - + Tokens.RecordLocation = (function () { /** * Properties of a RecordLocation. * @memberof Tokens @@ -154052,8 +159656,7 @@ export const Tokens = $root.Tokens = (() => { function RecordLocation(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -154070,7 +159673,7 @@ export const Tokens = $root.Tokens = (() => { * @memberof Tokens.RecordLocation * @instance */ - RecordLocation.prototype.lastSyncRevision = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + RecordLocation.prototype.lastSyncRevision = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * Creates a new RecordLocation instance using the specified properties. @@ -154094,12 +159697,11 @@ export const Tokens = $root.Tokens = (() => { * @returns {$protobuf.Writer} Writer */ RecordLocation.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); - if (message.lastSyncRevision != null && Object.hasOwnProperty.call(message, "lastSyncRevision")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.lastSyncRevision); + if (!writer) writer = $Writer.create(); + if (message.recordUid != null && Object.hasOwnProperty.call(message, 'recordUid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.recordUid); + if (message.lastSyncRevision != null && Object.hasOwnProperty.call(message, 'lastSyncRevision')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int64(message.lastSyncRevision); return writer; }; @@ -154128,23 +159730,23 @@ export const Tokens = $root.Tokens = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RecordLocation.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Tokens.RecordLocation(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Tokens.RecordLocation(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.recordUid = reader.bytes(); break; } - case 2: { + case 2: { message.lastSyncRevision = reader.int64(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -154161,8 +159763,7 @@ export const Tokens = $root.Tokens = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RecordLocation.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -154175,14 +159776,25 @@ export const Tokens = $root.Tokens = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ RecordLocation.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) - return "recordUid: buffer expected"; - if (message.lastSyncRevision != null && message.hasOwnProperty("lastSyncRevision")) - if (!$util.isInteger(message.lastSyncRevision) && !(message.lastSyncRevision && $util.isInteger(message.lastSyncRevision.low) && $util.isInteger(message.lastSyncRevision.high))) - return "lastSyncRevision: integer|Long expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.recordUid != null && message.hasOwnProperty('recordUid')) + if ( + !( + (message.recordUid && typeof message.recordUid.length === 'number') || + $util.isString(message.recordUid) + ) + ) + return 'recordUid: buffer expected'; + if (message.lastSyncRevision != null && message.hasOwnProperty('lastSyncRevision')) + if ( + !$util.isInteger(message.lastSyncRevision) && + !( + message.lastSyncRevision && + $util.isInteger(message.lastSyncRevision.low) && + $util.isInteger(message.lastSyncRevision.high) + ) + ) + return 'lastSyncRevision: integer|Long expected'; return null; }; @@ -154195,23 +159807,28 @@ export const Tokens = $root.Tokens = (() => { * @returns {Tokens.RecordLocation} RecordLocation */ RecordLocation.fromObject = function fromObject(object) { - if (object instanceof $root.Tokens.RecordLocation) - return object; + if (object instanceof $root.Tokens.RecordLocation) return object; let message = new $root.Tokens.RecordLocation(); 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 (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.lastSyncRevision != null) if ($util.Long) (message.lastSyncRevision = $util.Long.fromValue(object.lastSyncRevision)).unsigned = false; - else if (typeof object.lastSyncRevision === "string") + else if (typeof object.lastSyncRevision === 'string') message.lastSyncRevision = parseInt(object.lastSyncRevision, 10); - else if (typeof object.lastSyncRevision === "number") + else if (typeof object.lastSyncRevision === 'number') message.lastSyncRevision = object.lastSyncRevision; - else if (typeof object.lastSyncRevision === "object") - message.lastSyncRevision = new $util.LongBits(object.lastSyncRevision.low >>> 0, object.lastSyncRevision.high >>> 0).toNumber(); + else if (typeof object.lastSyncRevision === 'object') + message.lastSyncRevision = new $util.LongBits( + object.lastSyncRevision.low >>> 0, + object.lastSyncRevision.high >>> 0 + ).toNumber(); return message; }; @@ -154225,30 +159842,41 @@ export const Tokens = $root.Tokens = (() => { * @returns {Object.} Plain object */ RecordLocation.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.recordUid = ""; + if (options.bytes === String) object.recordUid = ''; else { object.recordUid = []; - if (options.bytes !== Array) - object.recordUid = $util.newBuffer(object.recordUid); + if (options.bytes !== Array) object.recordUid = $util.newBuffer(object.recordUid); } if ($util.Long) { let long = new $util.Long(0, 0, false); - object.lastSyncRevision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.lastSyncRevision = options.longs === String ? "0" : 0; - } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; - if (message.lastSyncRevision != null && message.hasOwnProperty("lastSyncRevision")) - if (typeof message.lastSyncRevision === "number") - object.lastSyncRevision = options.longs === String ? String(message.lastSyncRevision) : message.lastSyncRevision; + object.lastSyncRevision = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.lastSyncRevision = options.longs === String ? '0' : 0; + } + if (message.recordUid != null && message.hasOwnProperty('recordUid')) + object.recordUid = + options.bytes === String + ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.recordUid) + : message.recordUid; + if (message.lastSyncRevision != null && message.hasOwnProperty('lastSyncRevision')) + if (typeof message.lastSyncRevision === 'number') + object.lastSyncRevision = + options.longs === String ? String(message.lastSyncRevision) : message.lastSyncRevision; else - object.lastSyncRevision = options.longs === String ? $util.Long.prototype.toString.call(message.lastSyncRevision) : options.longs === Number ? new $util.LongBits(message.lastSyncRevision.low >>> 0, message.lastSyncRevision.high >>> 0).toNumber() : message.lastSyncRevision; + object.lastSyncRevision = + options.longs === String + ? $util.Long.prototype.toString.call(message.lastSyncRevision) + : options.longs === Number + ? new $util.LongBits( + message.lastSyncRevision.low >>> 0, + message.lastSyncRevision.high >>> 0 + ).toNumber() + : message.lastSyncRevision; return object; }; @@ -154273,16 +159901,15 @@ export const Tokens = $root.Tokens = (() => { */ RecordLocation.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Tokens.RecordLocation"; + return typeUrlPrefix + '/Tokens.RecordLocation'; }; return RecordLocation; })(); - Tokens.FolderLocation = (function() { - + Tokens.FolderLocation = (function () { /** * Properties of a FolderLocation. * @memberof Tokens @@ -154302,8 +159929,7 @@ export const Tokens = $root.Tokens = (() => { function FolderLocation(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -154320,7 +159946,7 @@ export const Tokens = $root.Tokens = (() => { * @memberof Tokens.FolderLocation * @instance */ - FolderLocation.prototype.lastSyncRevision = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + FolderLocation.prototype.lastSyncRevision = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * Creates a new FolderLocation instance using the specified properties. @@ -154344,12 +159970,11 @@ export const Tokens = $root.Tokens = (() => { * @returns {$protobuf.Writer} Writer */ FolderLocation.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.folderUid != null && Object.hasOwnProperty.call(message, "folderUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.folderUid); - if (message.lastSyncRevision != null && Object.hasOwnProperty.call(message, "lastSyncRevision")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.lastSyncRevision); + if (!writer) writer = $Writer.create(); + if (message.folderUid != null && Object.hasOwnProperty.call(message, 'folderUid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.folderUid); + if (message.lastSyncRevision != null && Object.hasOwnProperty.call(message, 'lastSyncRevision')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int64(message.lastSyncRevision); return writer; }; @@ -154378,23 +160003,23 @@ export const Tokens = $root.Tokens = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ FolderLocation.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Tokens.FolderLocation(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Tokens.FolderLocation(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.folderUid = reader.bytes(); break; } - case 2: { + case 2: { message.lastSyncRevision = reader.int64(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -154411,8 +160036,7 @@ export const Tokens = $root.Tokens = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ FolderLocation.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -154425,14 +160049,25 @@ export const Tokens = $root.Tokens = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ FolderLocation.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.folderUid != null && message.hasOwnProperty("folderUid")) - if (!(message.folderUid && typeof message.folderUid.length === "number" || $util.isString(message.folderUid))) - return "folderUid: buffer expected"; - if (message.lastSyncRevision != null && message.hasOwnProperty("lastSyncRevision")) - if (!$util.isInteger(message.lastSyncRevision) && !(message.lastSyncRevision && $util.isInteger(message.lastSyncRevision.low) && $util.isInteger(message.lastSyncRevision.high))) - return "lastSyncRevision: integer|Long expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.folderUid != null && message.hasOwnProperty('folderUid')) + if ( + !( + (message.folderUid && typeof message.folderUid.length === 'number') || + $util.isString(message.folderUid) + ) + ) + return 'folderUid: buffer expected'; + if (message.lastSyncRevision != null && message.hasOwnProperty('lastSyncRevision')) + if ( + !$util.isInteger(message.lastSyncRevision) && + !( + message.lastSyncRevision && + $util.isInteger(message.lastSyncRevision.low) && + $util.isInteger(message.lastSyncRevision.high) + ) + ) + return 'lastSyncRevision: integer|Long expected'; return null; }; @@ -154445,23 +160080,28 @@ export const Tokens = $root.Tokens = (() => { * @returns {Tokens.FolderLocation} FolderLocation */ FolderLocation.fromObject = function fromObject(object) { - if (object instanceof $root.Tokens.FolderLocation) - return object; + if (object instanceof $root.Tokens.FolderLocation) return object; let message = new $root.Tokens.FolderLocation(); 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 (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.lastSyncRevision != null) if ($util.Long) (message.lastSyncRevision = $util.Long.fromValue(object.lastSyncRevision)).unsigned = false; - else if (typeof object.lastSyncRevision === "string") + else if (typeof object.lastSyncRevision === 'string') message.lastSyncRevision = parseInt(object.lastSyncRevision, 10); - else if (typeof object.lastSyncRevision === "number") + else if (typeof object.lastSyncRevision === 'number') message.lastSyncRevision = object.lastSyncRevision; - else if (typeof object.lastSyncRevision === "object") - message.lastSyncRevision = new $util.LongBits(object.lastSyncRevision.low >>> 0, object.lastSyncRevision.high >>> 0).toNumber(); + else if (typeof object.lastSyncRevision === 'object') + message.lastSyncRevision = new $util.LongBits( + object.lastSyncRevision.low >>> 0, + object.lastSyncRevision.high >>> 0 + ).toNumber(); return message; }; @@ -154475,30 +160115,41 @@ export const Tokens = $root.Tokens = (() => { * @returns {Object.} Plain object */ FolderLocation.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.folderUid = ""; + if (options.bytes === String) object.folderUid = ''; else { object.folderUid = []; - if (options.bytes !== Array) - object.folderUid = $util.newBuffer(object.folderUid); + if (options.bytes !== Array) object.folderUid = $util.newBuffer(object.folderUid); } if ($util.Long) { let long = new $util.Long(0, 0, false); - object.lastSyncRevision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.lastSyncRevision = options.longs === String ? "0" : 0; - } - if (message.folderUid != null && message.hasOwnProperty("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.lastSyncRevision != null && message.hasOwnProperty("lastSyncRevision")) - if (typeof message.lastSyncRevision === "number") - object.lastSyncRevision = options.longs === String ? String(message.lastSyncRevision) : message.lastSyncRevision; + object.lastSyncRevision = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.lastSyncRevision = options.longs === String ? '0' : 0; + } + if (message.folderUid != null && message.hasOwnProperty('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.lastSyncRevision != null && message.hasOwnProperty('lastSyncRevision')) + if (typeof message.lastSyncRevision === 'number') + object.lastSyncRevision = + options.longs === String ? String(message.lastSyncRevision) : message.lastSyncRevision; else - object.lastSyncRevision = options.longs === String ? $util.Long.prototype.toString.call(message.lastSyncRevision) : options.longs === Number ? new $util.LongBits(message.lastSyncRevision.low >>> 0, message.lastSyncRevision.high >>> 0).toNumber() : message.lastSyncRevision; + object.lastSyncRevision = + options.longs === String + ? $util.Long.prototype.toString.call(message.lastSyncRevision) + : options.longs === Number + ? new $util.LongBits( + message.lastSyncRevision.low >>> 0, + message.lastSyncRevision.high >>> 0 + ).toNumber() + : message.lastSyncRevision; return object; }; @@ -154523,16 +160174,15 @@ export const Tokens = $root.Tokens = (() => { */ FolderLocation.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Tokens.FolderLocation"; + return typeUrlPrefix + '/Tokens.FolderLocation'; }; return FolderLocation; })(); - Tokens.SharedFolderLocation = (function() { - + Tokens.SharedFolderLocation = (function () { /** * Properties of a SharedFolderLocation. * @memberof Tokens @@ -154552,8 +160202,7 @@ export const Tokens = $root.Tokens = (() => { function SharedFolderLocation(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -154570,7 +160219,7 @@ export const Tokens = $root.Tokens = (() => { * @memberof Tokens.SharedFolderLocation * @instance */ - SharedFolderLocation.prototype.lastSyncRevision = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + SharedFolderLocation.prototype.lastSyncRevision = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * Creates a new SharedFolderLocation instance using the specified properties. @@ -154594,12 +160243,11 @@ export const Tokens = $root.Tokens = (() => { * @returns {$protobuf.Writer} Writer */ SharedFolderLocation.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, "sharedFolderUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.sharedFolderUid); - if (message.lastSyncRevision != null && Object.hasOwnProperty.call(message, "lastSyncRevision")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.lastSyncRevision); + if (!writer) writer = $Writer.create(); + if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, 'sharedFolderUid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.sharedFolderUid); + if (message.lastSyncRevision != null && Object.hasOwnProperty.call(message, 'lastSyncRevision')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int64(message.lastSyncRevision); return writer; }; @@ -154628,23 +160276,23 @@ export const Tokens = $root.Tokens = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SharedFolderLocation.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Tokens.SharedFolderLocation(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Tokens.SharedFolderLocation(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.sharedFolderUid = reader.bytes(); break; } - case 2: { + case 2: { message.lastSyncRevision = reader.int64(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -154661,8 +160309,7 @@ export const Tokens = $root.Tokens = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SharedFolderLocation.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -154675,14 +160322,25 @@ export const Tokens = $root.Tokens = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ SharedFolderLocation.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) - if (!(message.sharedFolderUid && typeof message.sharedFolderUid.length === "number" || $util.isString(message.sharedFolderUid))) - return "sharedFolderUid: buffer expected"; - if (message.lastSyncRevision != null && message.hasOwnProperty("lastSyncRevision")) - if (!$util.isInteger(message.lastSyncRevision) && !(message.lastSyncRevision && $util.isInteger(message.lastSyncRevision.low) && $util.isInteger(message.lastSyncRevision.high))) - return "lastSyncRevision: integer|Long expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.sharedFolderUid != null && message.hasOwnProperty('sharedFolderUid')) + if ( + !( + (message.sharedFolderUid && typeof message.sharedFolderUid.length === 'number') || + $util.isString(message.sharedFolderUid) + ) + ) + return 'sharedFolderUid: buffer expected'; + if (message.lastSyncRevision != null && message.hasOwnProperty('lastSyncRevision')) + if ( + !$util.isInteger(message.lastSyncRevision) && + !( + message.lastSyncRevision && + $util.isInteger(message.lastSyncRevision.low) && + $util.isInteger(message.lastSyncRevision.high) + ) + ) + return 'lastSyncRevision: integer|Long expected'; return null; }; @@ -154695,23 +160353,28 @@ export const Tokens = $root.Tokens = (() => { * @returns {Tokens.SharedFolderLocation} SharedFolderLocation */ SharedFolderLocation.fromObject = function fromObject(object) { - if (object instanceof $root.Tokens.SharedFolderLocation) - return object; + if (object instanceof $root.Tokens.SharedFolderLocation) return object; let message = new $root.Tokens.SharedFolderLocation(); if (object.sharedFolderUid != null) - if (typeof object.sharedFolderUid === "string") - $util.base64.decode(object.sharedFolderUid, message.sharedFolderUid = $util.newBuffer($util.base64.length(object.sharedFolderUid)), 0); - else if (object.sharedFolderUid.length >= 0) - message.sharedFolderUid = object.sharedFolderUid; + if (typeof object.sharedFolderUid === 'string') + $util.base64.decode( + object.sharedFolderUid, + (message.sharedFolderUid = $util.newBuffer($util.base64.length(object.sharedFolderUid))), + 0 + ); + else if (object.sharedFolderUid.length >= 0) message.sharedFolderUid = object.sharedFolderUid; if (object.lastSyncRevision != null) if ($util.Long) (message.lastSyncRevision = $util.Long.fromValue(object.lastSyncRevision)).unsigned = false; - else if (typeof object.lastSyncRevision === "string") + else if (typeof object.lastSyncRevision === 'string') message.lastSyncRevision = parseInt(object.lastSyncRevision, 10); - else if (typeof object.lastSyncRevision === "number") + else if (typeof object.lastSyncRevision === 'number') message.lastSyncRevision = object.lastSyncRevision; - else if (typeof object.lastSyncRevision === "object") - message.lastSyncRevision = new $util.LongBits(object.lastSyncRevision.low >>> 0, object.lastSyncRevision.high >>> 0).toNumber(); + else if (typeof object.lastSyncRevision === 'object') + message.lastSyncRevision = new $util.LongBits( + object.lastSyncRevision.low >>> 0, + object.lastSyncRevision.high >>> 0 + ).toNumber(); return message; }; @@ -154725,30 +160388,41 @@ export const Tokens = $root.Tokens = (() => { * @returns {Object.} Plain object */ SharedFolderLocation.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.sharedFolderUid = ""; + if (options.bytes === String) object.sharedFolderUid = ''; else { object.sharedFolderUid = []; - if (options.bytes !== Array) - object.sharedFolderUid = $util.newBuffer(object.sharedFolderUid); + if (options.bytes !== Array) object.sharedFolderUid = $util.newBuffer(object.sharedFolderUid); } if ($util.Long) { let long = new $util.Long(0, 0, false); - object.lastSyncRevision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.lastSyncRevision = options.longs === String ? "0" : 0; - } - if (message.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) - object.sharedFolderUid = options.bytes === String ? $util.base64.encode(message.sharedFolderUid, 0, message.sharedFolderUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.sharedFolderUid) : message.sharedFolderUid; - if (message.lastSyncRevision != null && message.hasOwnProperty("lastSyncRevision")) - if (typeof message.lastSyncRevision === "number") - object.lastSyncRevision = options.longs === String ? String(message.lastSyncRevision) : message.lastSyncRevision; + object.lastSyncRevision = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.lastSyncRevision = options.longs === String ? '0' : 0; + } + if (message.sharedFolderUid != null && message.hasOwnProperty('sharedFolderUid')) + object.sharedFolderUid = + options.bytes === String + ? $util.base64.encode(message.sharedFolderUid, 0, message.sharedFolderUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.sharedFolderUid) + : message.sharedFolderUid; + if (message.lastSyncRevision != null && message.hasOwnProperty('lastSyncRevision')) + if (typeof message.lastSyncRevision === 'number') + object.lastSyncRevision = + options.longs === String ? String(message.lastSyncRevision) : message.lastSyncRevision; else - object.lastSyncRevision = options.longs === String ? $util.Long.prototype.toString.call(message.lastSyncRevision) : options.longs === Number ? new $util.LongBits(message.lastSyncRevision.low >>> 0, message.lastSyncRevision.high >>> 0).toNumber() : message.lastSyncRevision; + object.lastSyncRevision = + options.longs === String + ? $util.Long.prototype.toString.call(message.lastSyncRevision) + : options.longs === Number + ? new $util.LongBits( + message.lastSyncRevision.low >>> 0, + message.lastSyncRevision.high >>> 0 + ).toNumber() + : message.lastSyncRevision; return object; }; @@ -154773,16 +160447,15 @@ export const Tokens = $root.Tokens = (() => { */ SharedFolderLocation.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Tokens.SharedFolderLocation"; + return typeUrlPrefix + '/Tokens.SharedFolderLocation'; }; return SharedFolderLocation; })(); - Tokens.SharedFolderUserLocation = (function() { - + Tokens.SharedFolderUserLocation = (function () { /** * Properties of a SharedFolderUserLocation. * @memberof Tokens @@ -154804,8 +160477,7 @@ export const Tokens = $root.Tokens = (() => { function SharedFolderUserLocation(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -154822,7 +160494,7 @@ export const Tokens = $root.Tokens = (() => { * @memberof Tokens.SharedFolderUserLocation * @instance */ - SharedFolderUserLocation.prototype.username = ""; + SharedFolderUserLocation.prototype.username = ''; /** * SharedFolderUserLocation lastSyncRevision. @@ -154830,7 +160502,7 @@ export const Tokens = $root.Tokens = (() => { * @memberof Tokens.SharedFolderUserLocation * @instance */ - SharedFolderUserLocation.prototype.lastSyncRevision = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + SharedFolderUserLocation.prototype.lastSyncRevision = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * SharedFolderUserLocation accountUid. @@ -154862,16 +160534,15 @@ export const Tokens = $root.Tokens = (() => { * @returns {$protobuf.Writer} Writer */ SharedFolderUserLocation.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, "sharedFolderUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.sharedFolderUid); - if (message.username != null && Object.hasOwnProperty.call(message, "username")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.username); - if (message.lastSyncRevision != null && Object.hasOwnProperty.call(message, "lastSyncRevision")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.lastSyncRevision); - if (message.accountUid != null && Object.hasOwnProperty.call(message, "accountUid")) - writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.accountUid); + if (!writer) writer = $Writer.create(); + if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, 'sharedFolderUid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.sharedFolderUid); + if (message.username != null && Object.hasOwnProperty.call(message, 'username')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.username); + if (message.lastSyncRevision != null && Object.hasOwnProperty.call(message, 'lastSyncRevision')) + writer.uint32(/* id 3, wireType 0 =*/ 24).int64(message.lastSyncRevision); + if (message.accountUid != null && Object.hasOwnProperty.call(message, 'accountUid')) + writer.uint32(/* id 4, wireType 2 =*/ 34).bytes(message.accountUid); return writer; }; @@ -154900,31 +160571,31 @@ export const Tokens = $root.Tokens = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SharedFolderUserLocation.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Tokens.SharedFolderUserLocation(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Tokens.SharedFolderUserLocation(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.sharedFolderUid = reader.bytes(); break; } - case 2: { + case 2: { message.username = reader.string(); break; } - case 3: { + case 3: { message.lastSyncRevision = reader.int64(); break; } - case 4: { + case 4: { message.accountUid = reader.bytes(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -154941,8 +160612,7 @@ export const Tokens = $root.Tokens = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SharedFolderUserLocation.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -154955,20 +160625,35 @@ export const Tokens = $root.Tokens = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ SharedFolderUserLocation.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) - if (!(message.sharedFolderUid && typeof message.sharedFolderUid.length === "number" || $util.isString(message.sharedFolderUid))) - return "sharedFolderUid: buffer expected"; - if (message.username != null && message.hasOwnProperty("username")) - if (!$util.isString(message.username)) - return "username: string expected"; - if (message.lastSyncRevision != null && message.hasOwnProperty("lastSyncRevision")) - if (!$util.isInteger(message.lastSyncRevision) && !(message.lastSyncRevision && $util.isInteger(message.lastSyncRevision.low) && $util.isInteger(message.lastSyncRevision.high))) - return "lastSyncRevision: integer|Long expected"; - if (message.accountUid != null && message.hasOwnProperty("accountUid")) - if (!(message.accountUid && typeof message.accountUid.length === "number" || $util.isString(message.accountUid))) - return "accountUid: buffer expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.sharedFolderUid != null && message.hasOwnProperty('sharedFolderUid')) + if ( + !( + (message.sharedFolderUid && typeof message.sharedFolderUid.length === 'number') || + $util.isString(message.sharedFolderUid) + ) + ) + return 'sharedFolderUid: buffer expected'; + if (message.username != null && message.hasOwnProperty('username')) + if (!$util.isString(message.username)) return 'username: string expected'; + if (message.lastSyncRevision != null && message.hasOwnProperty('lastSyncRevision')) + if ( + !$util.isInteger(message.lastSyncRevision) && + !( + message.lastSyncRevision && + $util.isInteger(message.lastSyncRevision.low) && + $util.isInteger(message.lastSyncRevision.high) + ) + ) + return 'lastSyncRevision: integer|Long expected'; + if (message.accountUid != null && message.hasOwnProperty('accountUid')) + if ( + !( + (message.accountUid && typeof message.accountUid.length === 'number') || + $util.isString(message.accountUid) + ) + ) + return 'accountUid: buffer expected'; return null; }; @@ -154981,30 +160666,37 @@ export const Tokens = $root.Tokens = (() => { * @returns {Tokens.SharedFolderUserLocation} SharedFolderUserLocation */ SharedFolderUserLocation.fromObject = function fromObject(object) { - if (object instanceof $root.Tokens.SharedFolderUserLocation) - return object; + if (object instanceof $root.Tokens.SharedFolderUserLocation) return object; let message = new $root.Tokens.SharedFolderUserLocation(); if (object.sharedFolderUid != null) - if (typeof object.sharedFolderUid === "string") - $util.base64.decode(object.sharedFolderUid, message.sharedFolderUid = $util.newBuffer($util.base64.length(object.sharedFolderUid)), 0); - else if (object.sharedFolderUid.length >= 0) - message.sharedFolderUid = object.sharedFolderUid; - if (object.username != null) - message.username = String(object.username); + if (typeof object.sharedFolderUid === 'string') + $util.base64.decode( + object.sharedFolderUid, + (message.sharedFolderUid = $util.newBuffer($util.base64.length(object.sharedFolderUid))), + 0 + ); + else if (object.sharedFolderUid.length >= 0) message.sharedFolderUid = object.sharedFolderUid; + if (object.username != null) message.username = String(object.username); if (object.lastSyncRevision != null) if ($util.Long) (message.lastSyncRevision = $util.Long.fromValue(object.lastSyncRevision)).unsigned = false; - else if (typeof object.lastSyncRevision === "string") + else if (typeof object.lastSyncRevision === 'string') message.lastSyncRevision = parseInt(object.lastSyncRevision, 10); - else if (typeof object.lastSyncRevision === "number") + else if (typeof object.lastSyncRevision === 'number') message.lastSyncRevision = object.lastSyncRevision; - else if (typeof object.lastSyncRevision === "object") - message.lastSyncRevision = new $util.LongBits(object.lastSyncRevision.low >>> 0, object.lastSyncRevision.high >>> 0).toNumber(); + else if (typeof object.lastSyncRevision === 'object') + message.lastSyncRevision = new $util.LongBits( + object.lastSyncRevision.low >>> 0, + object.lastSyncRevision.high >>> 0 + ).toNumber(); if (object.accountUid != null) - if (typeof object.accountUid === "string") - $util.base64.decode(object.accountUid, message.accountUid = $util.newBuffer($util.base64.length(object.accountUid)), 0); - else if (object.accountUid.length >= 0) - message.accountUid = object.accountUid; + if (typeof object.accountUid === 'string') + $util.base64.decode( + object.accountUid, + (message.accountUid = $util.newBuffer($util.base64.length(object.accountUid))), + 0 + ); + else if (object.accountUid.length >= 0) message.accountUid = object.accountUid; return message; }; @@ -155018,42 +160710,55 @@ export const Tokens = $root.Tokens = (() => { * @returns {Object.} Plain object */ SharedFolderUserLocation.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.sharedFolderUid = ""; + if (options.bytes === String) object.sharedFolderUid = ''; else { object.sharedFolderUid = []; - if (options.bytes !== Array) - object.sharedFolderUid = $util.newBuffer(object.sharedFolderUid); + if (options.bytes !== Array) object.sharedFolderUid = $util.newBuffer(object.sharedFolderUid); } - object.username = ""; + object.username = ''; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.lastSyncRevision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.lastSyncRevision = options.longs === String ? "0" : 0; - if (options.bytes === String) - object.accountUid = ""; + object.lastSyncRevision = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.lastSyncRevision = options.longs === String ? '0' : 0; + if (options.bytes === String) object.accountUid = ''; else { object.accountUid = []; - if (options.bytes !== Array) - object.accountUid = $util.newBuffer(object.accountUid); - } - } - if (message.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) - object.sharedFolderUid = options.bytes === String ? $util.base64.encode(message.sharedFolderUid, 0, message.sharedFolderUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.sharedFolderUid) : message.sharedFolderUid; - if (message.username != null && message.hasOwnProperty("username")) - object.username = message.username; - if (message.lastSyncRevision != null && message.hasOwnProperty("lastSyncRevision")) - if (typeof message.lastSyncRevision === "number") - object.lastSyncRevision = options.longs === String ? String(message.lastSyncRevision) : message.lastSyncRevision; + if (options.bytes !== Array) object.accountUid = $util.newBuffer(object.accountUid); + } + } + if (message.sharedFolderUid != null && message.hasOwnProperty('sharedFolderUid')) + object.sharedFolderUid = + options.bytes === String + ? $util.base64.encode(message.sharedFolderUid, 0, message.sharedFolderUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.sharedFolderUid) + : message.sharedFolderUid; + if (message.username != null && message.hasOwnProperty('username')) object.username = message.username; + if (message.lastSyncRevision != null && message.hasOwnProperty('lastSyncRevision')) + if (typeof message.lastSyncRevision === 'number') + object.lastSyncRevision = + options.longs === String ? String(message.lastSyncRevision) : message.lastSyncRevision; else - object.lastSyncRevision = options.longs === String ? $util.Long.prototype.toString.call(message.lastSyncRevision) : options.longs === Number ? new $util.LongBits(message.lastSyncRevision.low >>> 0, message.lastSyncRevision.high >>> 0).toNumber() : message.lastSyncRevision; - if (message.accountUid != null && message.hasOwnProperty("accountUid")) - object.accountUid = options.bytes === String ? $util.base64.encode(message.accountUid, 0, message.accountUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.accountUid) : message.accountUid; + object.lastSyncRevision = + options.longs === String + ? $util.Long.prototype.toString.call(message.lastSyncRevision) + : options.longs === Number + ? new $util.LongBits( + message.lastSyncRevision.low >>> 0, + message.lastSyncRevision.high >>> 0 + ).toNumber() + : message.lastSyncRevision; + if (message.accountUid != null && message.hasOwnProperty('accountUid')) + object.accountUid = + options.bytes === String + ? $util.base64.encode(message.accountUid, 0, message.accountUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.accountUid) + : message.accountUid; return object; }; @@ -155078,16 +160783,15 @@ export const Tokens = $root.Tokens = (() => { */ SharedFolderUserLocation.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Tokens.SharedFolderUserLocation"; + return typeUrlPrefix + '/Tokens.SharedFolderUserLocation'; }; return SharedFolderUserLocation; })(); - Tokens.SharedFolderTeamLocation = (function() { - + Tokens.SharedFolderTeamLocation = (function () { /** * Properties of a SharedFolderTeamLocation. * @memberof Tokens @@ -155108,8 +160812,7 @@ export const Tokens = $root.Tokens = (() => { function SharedFolderTeamLocation(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -155134,7 +160837,7 @@ export const Tokens = $root.Tokens = (() => { * @memberof Tokens.SharedFolderTeamLocation * @instance */ - SharedFolderTeamLocation.prototype.lastSyncRevision = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + SharedFolderTeamLocation.prototype.lastSyncRevision = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * Creates a new SharedFolderTeamLocation instance using the specified properties. @@ -155158,14 +160861,13 @@ export const Tokens = $root.Tokens = (() => { * @returns {$protobuf.Writer} Writer */ SharedFolderTeamLocation.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, "sharedFolderUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.sharedFolderUid); - if (message.teamUid != null && Object.hasOwnProperty.call(message, "teamUid")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.teamUid); - if (message.lastSyncRevision != null && Object.hasOwnProperty.call(message, "lastSyncRevision")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.lastSyncRevision); + if (!writer) writer = $Writer.create(); + if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, 'sharedFolderUid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.sharedFolderUid); + if (message.teamUid != null && Object.hasOwnProperty.call(message, 'teamUid')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.teamUid); + if (message.lastSyncRevision != null && Object.hasOwnProperty.call(message, 'lastSyncRevision')) + writer.uint32(/* id 3, wireType 0 =*/ 24).int64(message.lastSyncRevision); return writer; }; @@ -155194,27 +160896,27 @@ export const Tokens = $root.Tokens = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SharedFolderTeamLocation.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Tokens.SharedFolderTeamLocation(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Tokens.SharedFolderTeamLocation(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.sharedFolderUid = reader.bytes(); break; } - case 2: { + case 2: { message.teamUid = reader.bytes(); break; } - case 3: { + case 3: { message.lastSyncRevision = reader.int64(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -155231,8 +160933,7 @@ export const Tokens = $root.Tokens = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SharedFolderTeamLocation.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -155245,17 +160946,33 @@ export const Tokens = $root.Tokens = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ SharedFolderTeamLocation.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) - if (!(message.sharedFolderUid && typeof message.sharedFolderUid.length === "number" || $util.isString(message.sharedFolderUid))) - return "sharedFolderUid: buffer expected"; - if (message.teamUid != null && message.hasOwnProperty("teamUid")) - if (!(message.teamUid && typeof message.teamUid.length === "number" || $util.isString(message.teamUid))) - return "teamUid: buffer expected"; - if (message.lastSyncRevision != null && message.hasOwnProperty("lastSyncRevision")) - if (!$util.isInteger(message.lastSyncRevision) && !(message.lastSyncRevision && $util.isInteger(message.lastSyncRevision.low) && $util.isInteger(message.lastSyncRevision.high))) - return "lastSyncRevision: integer|Long expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.sharedFolderUid != null && message.hasOwnProperty('sharedFolderUid')) + if ( + !( + (message.sharedFolderUid && typeof message.sharedFolderUid.length === 'number') || + $util.isString(message.sharedFolderUid) + ) + ) + return 'sharedFolderUid: buffer expected'; + if (message.teamUid != null && message.hasOwnProperty('teamUid')) + if ( + !( + (message.teamUid && typeof message.teamUid.length === 'number') || + $util.isString(message.teamUid) + ) + ) + return 'teamUid: buffer expected'; + if (message.lastSyncRevision != null && message.hasOwnProperty('lastSyncRevision')) + if ( + !$util.isInteger(message.lastSyncRevision) && + !( + message.lastSyncRevision && + $util.isInteger(message.lastSyncRevision.low) && + $util.isInteger(message.lastSyncRevision.high) + ) + ) + return 'lastSyncRevision: integer|Long expected'; return null; }; @@ -155268,28 +160985,36 @@ export const Tokens = $root.Tokens = (() => { * @returns {Tokens.SharedFolderTeamLocation} SharedFolderTeamLocation */ SharedFolderTeamLocation.fromObject = function fromObject(object) { - if (object instanceof $root.Tokens.SharedFolderTeamLocation) - return object; + if (object instanceof $root.Tokens.SharedFolderTeamLocation) return object; let message = new $root.Tokens.SharedFolderTeamLocation(); if (object.sharedFolderUid != null) - if (typeof object.sharedFolderUid === "string") - $util.base64.decode(object.sharedFolderUid, message.sharedFolderUid = $util.newBuffer($util.base64.length(object.sharedFolderUid)), 0); - else if (object.sharedFolderUid.length >= 0) - message.sharedFolderUid = object.sharedFolderUid; + if (typeof object.sharedFolderUid === 'string') + $util.base64.decode( + object.sharedFolderUid, + (message.sharedFolderUid = $util.newBuffer($util.base64.length(object.sharedFolderUid))), + 0 + ); + else if (object.sharedFolderUid.length >= 0) message.sharedFolderUid = object.sharedFolderUid; if (object.teamUid != null) - if (typeof object.teamUid === "string") - $util.base64.decode(object.teamUid, message.teamUid = $util.newBuffer($util.base64.length(object.teamUid)), 0); - else if (object.teamUid.length >= 0) - message.teamUid = object.teamUid; + if (typeof object.teamUid === 'string') + $util.base64.decode( + object.teamUid, + (message.teamUid = $util.newBuffer($util.base64.length(object.teamUid))), + 0 + ); + else if (object.teamUid.length >= 0) message.teamUid = object.teamUid; if (object.lastSyncRevision != null) if ($util.Long) (message.lastSyncRevision = $util.Long.fromValue(object.lastSyncRevision)).unsigned = false; - else if (typeof object.lastSyncRevision === "string") + else if (typeof object.lastSyncRevision === 'string') message.lastSyncRevision = parseInt(object.lastSyncRevision, 10); - else if (typeof object.lastSyncRevision === "number") + else if (typeof object.lastSyncRevision === 'number') message.lastSyncRevision = object.lastSyncRevision; - else if (typeof object.lastSyncRevision === "object") - message.lastSyncRevision = new $util.LongBits(object.lastSyncRevision.low >>> 0, object.lastSyncRevision.high >>> 0).toNumber(); + else if (typeof object.lastSyncRevision === 'object') + message.lastSyncRevision = new $util.LongBits( + object.lastSyncRevision.low >>> 0, + object.lastSyncRevision.high >>> 0 + ).toNumber(); return message; }; @@ -155303,39 +161028,53 @@ export const Tokens = $root.Tokens = (() => { * @returns {Object.} Plain object */ SharedFolderTeamLocation.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.sharedFolderUid = ""; + if (options.bytes === String) object.sharedFolderUid = ''; else { object.sharedFolderUid = []; - if (options.bytes !== Array) - object.sharedFolderUid = $util.newBuffer(object.sharedFolderUid); + if (options.bytes !== Array) object.sharedFolderUid = $util.newBuffer(object.sharedFolderUid); } - if (options.bytes === String) - object.teamUid = ""; + if (options.bytes === String) object.teamUid = ''; else { object.teamUid = []; - if (options.bytes !== Array) - object.teamUid = $util.newBuffer(object.teamUid); + if (options.bytes !== Array) object.teamUid = $util.newBuffer(object.teamUid); } if ($util.Long) { let long = new $util.Long(0, 0, false); - object.lastSyncRevision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.lastSyncRevision = options.longs === String ? "0" : 0; - } - if (message.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) - object.sharedFolderUid = options.bytes === String ? $util.base64.encode(message.sharedFolderUid, 0, message.sharedFolderUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.sharedFolderUid) : message.sharedFolderUid; - if (message.teamUid != null && message.hasOwnProperty("teamUid")) - object.teamUid = options.bytes === String ? $util.base64.encode(message.teamUid, 0, message.teamUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.teamUid) : message.teamUid; - if (message.lastSyncRevision != null && message.hasOwnProperty("lastSyncRevision")) - if (typeof message.lastSyncRevision === "number") - object.lastSyncRevision = options.longs === String ? String(message.lastSyncRevision) : message.lastSyncRevision; + object.lastSyncRevision = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.lastSyncRevision = options.longs === String ? '0' : 0; + } + if (message.sharedFolderUid != null && message.hasOwnProperty('sharedFolderUid')) + object.sharedFolderUid = + options.bytes === String + ? $util.base64.encode(message.sharedFolderUid, 0, message.sharedFolderUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.sharedFolderUid) + : message.sharedFolderUid; + if (message.teamUid != null && message.hasOwnProperty('teamUid')) + object.teamUid = + options.bytes === String + ? $util.base64.encode(message.teamUid, 0, message.teamUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.teamUid) + : message.teamUid; + if (message.lastSyncRevision != null && message.hasOwnProperty('lastSyncRevision')) + if (typeof message.lastSyncRevision === 'number') + object.lastSyncRevision = + options.longs === String ? String(message.lastSyncRevision) : message.lastSyncRevision; else - object.lastSyncRevision = options.longs === String ? $util.Long.prototype.toString.call(message.lastSyncRevision) : options.longs === Number ? new $util.LongBits(message.lastSyncRevision.low >>> 0, message.lastSyncRevision.high >>> 0).toNumber() : message.lastSyncRevision; + object.lastSyncRevision = + options.longs === String + ? $util.Long.prototype.toString.call(message.lastSyncRevision) + : options.longs === Number + ? new $util.LongBits( + message.lastSyncRevision.low >>> 0, + message.lastSyncRevision.high >>> 0 + ).toNumber() + : message.lastSyncRevision; return object; }; @@ -155360,16 +161099,15 @@ export const Tokens = $root.Tokens = (() => { */ SharedFolderTeamLocation.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Tokens.SharedFolderTeamLocation"; + return typeUrlPrefix + '/Tokens.SharedFolderTeamLocation'; }; return SharedFolderTeamLocation; })(); - Tokens.SharedFolderRecordLocation = (function() { - + Tokens.SharedFolderRecordLocation = (function () { /** * Properties of a SharedFolderRecordLocation. * @memberof Tokens @@ -155390,8 +161128,7 @@ export const Tokens = $root.Tokens = (() => { function SharedFolderRecordLocation(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -155416,7 +161153,7 @@ export const Tokens = $root.Tokens = (() => { * @memberof Tokens.SharedFolderRecordLocation * @instance */ - SharedFolderRecordLocation.prototype.lastSyncRevision = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + SharedFolderRecordLocation.prototype.lastSyncRevision = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * Creates a new SharedFolderRecordLocation instance using the specified properties. @@ -155440,14 +161177,13 @@ export const Tokens = $root.Tokens = (() => { * @returns {$protobuf.Writer} Writer */ SharedFolderRecordLocation.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, "sharedFolderUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.sharedFolderUid); - if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.recordUid); - if (message.lastSyncRevision != null && Object.hasOwnProperty.call(message, "lastSyncRevision")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.lastSyncRevision); + if (!writer) writer = $Writer.create(); + if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, 'sharedFolderUid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.sharedFolderUid); + if (message.recordUid != null && Object.hasOwnProperty.call(message, 'recordUid')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.recordUid); + if (message.lastSyncRevision != null && Object.hasOwnProperty.call(message, 'lastSyncRevision')) + writer.uint32(/* id 3, wireType 0 =*/ 24).int64(message.lastSyncRevision); return writer; }; @@ -155476,27 +161212,27 @@ export const Tokens = $root.Tokens = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SharedFolderRecordLocation.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Tokens.SharedFolderRecordLocation(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Tokens.SharedFolderRecordLocation(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.sharedFolderUid = reader.bytes(); break; } - case 2: { + case 2: { message.recordUid = reader.bytes(); break; } - case 3: { + case 3: { message.lastSyncRevision = reader.int64(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -155513,8 +161249,7 @@ export const Tokens = $root.Tokens = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SharedFolderRecordLocation.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -155527,17 +161262,33 @@ export const Tokens = $root.Tokens = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ SharedFolderRecordLocation.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) - if (!(message.sharedFolderUid && typeof message.sharedFolderUid.length === "number" || $util.isString(message.sharedFolderUid))) - return "sharedFolderUid: buffer expected"; - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) - return "recordUid: buffer expected"; - if (message.lastSyncRevision != null && message.hasOwnProperty("lastSyncRevision")) - if (!$util.isInteger(message.lastSyncRevision) && !(message.lastSyncRevision && $util.isInteger(message.lastSyncRevision.low) && $util.isInteger(message.lastSyncRevision.high))) - return "lastSyncRevision: integer|Long expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.sharedFolderUid != null && message.hasOwnProperty('sharedFolderUid')) + if ( + !( + (message.sharedFolderUid && typeof message.sharedFolderUid.length === 'number') || + $util.isString(message.sharedFolderUid) + ) + ) + return 'sharedFolderUid: buffer expected'; + if (message.recordUid != null && message.hasOwnProperty('recordUid')) + if ( + !( + (message.recordUid && typeof message.recordUid.length === 'number') || + $util.isString(message.recordUid) + ) + ) + return 'recordUid: buffer expected'; + if (message.lastSyncRevision != null && message.hasOwnProperty('lastSyncRevision')) + if ( + !$util.isInteger(message.lastSyncRevision) && + !( + message.lastSyncRevision && + $util.isInteger(message.lastSyncRevision.low) && + $util.isInteger(message.lastSyncRevision.high) + ) + ) + return 'lastSyncRevision: integer|Long expected'; return null; }; @@ -155550,28 +161301,36 @@ export const Tokens = $root.Tokens = (() => { * @returns {Tokens.SharedFolderRecordLocation} SharedFolderRecordLocation */ SharedFolderRecordLocation.fromObject = function fromObject(object) { - if (object instanceof $root.Tokens.SharedFolderRecordLocation) - return object; + if (object instanceof $root.Tokens.SharedFolderRecordLocation) return object; let message = new $root.Tokens.SharedFolderRecordLocation(); if (object.sharedFolderUid != null) - if (typeof object.sharedFolderUid === "string") - $util.base64.decode(object.sharedFolderUid, message.sharedFolderUid = $util.newBuffer($util.base64.length(object.sharedFolderUid)), 0); - else if (object.sharedFolderUid.length >= 0) - message.sharedFolderUid = object.sharedFolderUid; + if (typeof object.sharedFolderUid === 'string') + $util.base64.decode( + object.sharedFolderUid, + (message.sharedFolderUid = $util.newBuffer($util.base64.length(object.sharedFolderUid))), + 0 + ); + else if (object.sharedFolderUid.length >= 0) message.sharedFolderUid = object.sharedFolderUid; 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 (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.lastSyncRevision != null) if ($util.Long) (message.lastSyncRevision = $util.Long.fromValue(object.lastSyncRevision)).unsigned = false; - else if (typeof object.lastSyncRevision === "string") + else if (typeof object.lastSyncRevision === 'string') message.lastSyncRevision = parseInt(object.lastSyncRevision, 10); - else if (typeof object.lastSyncRevision === "number") + else if (typeof object.lastSyncRevision === 'number') message.lastSyncRevision = object.lastSyncRevision; - else if (typeof object.lastSyncRevision === "object") - message.lastSyncRevision = new $util.LongBits(object.lastSyncRevision.low >>> 0, object.lastSyncRevision.high >>> 0).toNumber(); + else if (typeof object.lastSyncRevision === 'object') + message.lastSyncRevision = new $util.LongBits( + object.lastSyncRevision.low >>> 0, + object.lastSyncRevision.high >>> 0 + ).toNumber(); return message; }; @@ -155585,39 +161344,53 @@ export const Tokens = $root.Tokens = (() => { * @returns {Object.} Plain object */ SharedFolderRecordLocation.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.sharedFolderUid = ""; + if (options.bytes === String) object.sharedFolderUid = ''; else { object.sharedFolderUid = []; - if (options.bytes !== Array) - object.sharedFolderUid = $util.newBuffer(object.sharedFolderUid); + if (options.bytes !== Array) object.sharedFolderUid = $util.newBuffer(object.sharedFolderUid); } - if (options.bytes === String) - object.recordUid = ""; + if (options.bytes === String) object.recordUid = ''; else { object.recordUid = []; - if (options.bytes !== Array) - object.recordUid = $util.newBuffer(object.recordUid); + if (options.bytes !== Array) object.recordUid = $util.newBuffer(object.recordUid); } if ($util.Long) { let long = new $util.Long(0, 0, false); - object.lastSyncRevision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.lastSyncRevision = options.longs === String ? "0" : 0; - } - if (message.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) - object.sharedFolderUid = options.bytes === String ? $util.base64.encode(message.sharedFolderUid, 0, message.sharedFolderUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.sharedFolderUid) : message.sharedFolderUid; - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; - if (message.lastSyncRevision != null && message.hasOwnProperty("lastSyncRevision")) - if (typeof message.lastSyncRevision === "number") - object.lastSyncRevision = options.longs === String ? String(message.lastSyncRevision) : message.lastSyncRevision; + object.lastSyncRevision = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.lastSyncRevision = options.longs === String ? '0' : 0; + } + if (message.sharedFolderUid != null && message.hasOwnProperty('sharedFolderUid')) + object.sharedFolderUid = + options.bytes === String + ? $util.base64.encode(message.sharedFolderUid, 0, message.sharedFolderUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.sharedFolderUid) + : message.sharedFolderUid; + if (message.recordUid != null && message.hasOwnProperty('recordUid')) + object.recordUid = + options.bytes === String + ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.recordUid) + : message.recordUid; + if (message.lastSyncRevision != null && message.hasOwnProperty('lastSyncRevision')) + if (typeof message.lastSyncRevision === 'number') + object.lastSyncRevision = + options.longs === String ? String(message.lastSyncRevision) : message.lastSyncRevision; else - object.lastSyncRevision = options.longs === String ? $util.Long.prototype.toString.call(message.lastSyncRevision) : options.longs === Number ? new $util.LongBits(message.lastSyncRevision.low >>> 0, message.lastSyncRevision.high >>> 0).toNumber() : message.lastSyncRevision; + object.lastSyncRevision = + options.longs === String + ? $util.Long.prototype.toString.call(message.lastSyncRevision) + : options.longs === Number + ? new $util.LongBits( + message.lastSyncRevision.low >>> 0, + message.lastSyncRevision.high >>> 0 + ).toNumber() + : message.lastSyncRevision; return object; }; @@ -155642,16 +161415,15 @@ export const Tokens = $root.Tokens = (() => { */ SharedFolderRecordLocation.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Tokens.SharedFolderRecordLocation"; + return typeUrlPrefix + '/Tokens.SharedFolderRecordLocation'; }; return SharedFolderRecordLocation; })(); - Tokens.SharedFolderFolderRecordLocation = (function() { - + Tokens.SharedFolderFolderRecordLocation = (function () { /** * Properties of a SharedFolderFolderRecordLocation. * @memberof Tokens @@ -155672,8 +161444,7 @@ export const Tokens = $root.Tokens = (() => { function SharedFolderFolderRecordLocation(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -155722,14 +161493,13 @@ export const Tokens = $root.Tokens = (() => { * @returns {$protobuf.Writer} Writer */ SharedFolderFolderRecordLocation.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, "sharedFolderUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.sharedFolderUid); - if (message.folderUid != null && Object.hasOwnProperty.call(message, "folderUid")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.folderUid); - if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.recordUid); + if (!writer) writer = $Writer.create(); + if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, 'sharedFolderUid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.sharedFolderUid); + if (message.folderUid != null && Object.hasOwnProperty.call(message, 'folderUid')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.folderUid); + if (message.recordUid != null && Object.hasOwnProperty.call(message, 'recordUid')) + writer.uint32(/* id 3, wireType 2 =*/ 26).bytes(message.recordUid); return writer; }; @@ -155758,27 +161528,27 @@ export const Tokens = $root.Tokens = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SharedFolderFolderRecordLocation.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Tokens.SharedFolderFolderRecordLocation(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Tokens.SharedFolderFolderRecordLocation(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.sharedFolderUid = reader.bytes(); break; } - case 2: { + case 2: { message.folderUid = reader.bytes(); break; } - case 3: { + case 3: { message.recordUid = reader.bytes(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -155795,8 +161565,7 @@ export const Tokens = $root.Tokens = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SharedFolderFolderRecordLocation.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -155809,17 +161578,31 @@ export const Tokens = $root.Tokens = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ SharedFolderFolderRecordLocation.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) - if (!(message.sharedFolderUid && typeof message.sharedFolderUid.length === "number" || $util.isString(message.sharedFolderUid))) - return "sharedFolderUid: buffer expected"; - if (message.folderUid != null && message.hasOwnProperty("folderUid")) - if (!(message.folderUid && typeof message.folderUid.length === "number" || $util.isString(message.folderUid))) - return "folderUid: buffer expected"; - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) - return "recordUid: buffer expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.sharedFolderUid != null && message.hasOwnProperty('sharedFolderUid')) + if ( + !( + (message.sharedFolderUid && typeof message.sharedFolderUid.length === 'number') || + $util.isString(message.sharedFolderUid) + ) + ) + return 'sharedFolderUid: buffer expected'; + if (message.folderUid != null && message.hasOwnProperty('folderUid')) + if ( + !( + (message.folderUid && typeof message.folderUid.length === 'number') || + $util.isString(message.folderUid) + ) + ) + return 'folderUid: buffer expected'; + if (message.recordUid != null && message.hasOwnProperty('recordUid')) + if ( + !( + (message.recordUid && typeof message.recordUid.length === 'number') || + $util.isString(message.recordUid) + ) + ) + return 'recordUid: buffer expected'; return null; }; @@ -155832,24 +161615,32 @@ export const Tokens = $root.Tokens = (() => { * @returns {Tokens.SharedFolderFolderRecordLocation} SharedFolderFolderRecordLocation */ SharedFolderFolderRecordLocation.fromObject = function fromObject(object) { - if (object instanceof $root.Tokens.SharedFolderFolderRecordLocation) - return object; + if (object instanceof $root.Tokens.SharedFolderFolderRecordLocation) return object; let message = new $root.Tokens.SharedFolderFolderRecordLocation(); if (object.sharedFolderUid != null) - if (typeof object.sharedFolderUid === "string") - $util.base64.decode(object.sharedFolderUid, message.sharedFolderUid = $util.newBuffer($util.base64.length(object.sharedFolderUid)), 0); - else if (object.sharedFolderUid.length >= 0) - message.sharedFolderUid = object.sharedFolderUid; + if (typeof object.sharedFolderUid === 'string') + $util.base64.decode( + object.sharedFolderUid, + (message.sharedFolderUid = $util.newBuffer($util.base64.length(object.sharedFolderUid))), + 0 + ); + else if (object.sharedFolderUid.length >= 0) message.sharedFolderUid = object.sharedFolderUid; 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 (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.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 (typeof object.recordUid === 'string') + $util.base64.decode( + object.recordUid, + (message.recordUid = $util.newBuffer($util.base64.length(object.recordUid))), + 0 + ); + else if (object.recordUid.length >= 0) message.recordUid = object.recordUid; return message; }; @@ -155863,38 +161654,46 @@ export const Tokens = $root.Tokens = (() => { * @returns {Object.} Plain object */ SharedFolderFolderRecordLocation.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.sharedFolderUid = ""; + if (options.bytes === String) object.sharedFolderUid = ''; else { object.sharedFolderUid = []; - if (options.bytes !== Array) - object.sharedFolderUid = $util.newBuffer(object.sharedFolderUid); + if (options.bytes !== Array) object.sharedFolderUid = $util.newBuffer(object.sharedFolderUid); } - if (options.bytes === String) - object.folderUid = ""; + if (options.bytes === String) object.folderUid = ''; else { object.folderUid = []; - if (options.bytes !== Array) - object.folderUid = $util.newBuffer(object.folderUid); + if (options.bytes !== Array) object.folderUid = $util.newBuffer(object.folderUid); } - if (options.bytes === String) - object.recordUid = ""; + if (options.bytes === String) object.recordUid = ''; else { object.recordUid = []; - if (options.bytes !== Array) - object.recordUid = $util.newBuffer(object.recordUid); - } - } - if (message.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) - object.sharedFolderUid = options.bytes === String ? $util.base64.encode(message.sharedFolderUid, 0, message.sharedFolderUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.sharedFolderUid) : message.sharedFolderUid; - if (message.folderUid != null && message.hasOwnProperty("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.recordUid != null && message.hasOwnProperty("recordUid")) - object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; + if (options.bytes !== Array) object.recordUid = $util.newBuffer(object.recordUid); + } + } + if (message.sharedFolderUid != null && message.hasOwnProperty('sharedFolderUid')) + object.sharedFolderUid = + options.bytes === String + ? $util.base64.encode(message.sharedFolderUid, 0, message.sharedFolderUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.sharedFolderUid) + : message.sharedFolderUid; + if (message.folderUid != null && message.hasOwnProperty('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.recordUid != null && message.hasOwnProperty('recordUid')) + object.recordUid = + options.bytes === String + ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.recordUid) + : message.recordUid; return object; }; @@ -155919,16 +161718,15 @@ export const Tokens = $root.Tokens = (() => { */ SharedFolderFolderRecordLocation.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Tokens.SharedFolderFolderRecordLocation"; + return typeUrlPrefix + '/Tokens.SharedFolderFolderRecordLocation'; }; return SharedFolderFolderRecordLocation; })(); - Tokens.TeamLocation = (function() { - + Tokens.TeamLocation = (function () { /** * Properties of a TeamLocation. * @memberof Tokens @@ -155948,8 +161746,7 @@ export const Tokens = $root.Tokens = (() => { function TeamLocation(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -155966,7 +161763,7 @@ export const Tokens = $root.Tokens = (() => { * @memberof Tokens.TeamLocation * @instance */ - TeamLocation.prototype.lastSyncRevision = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + TeamLocation.prototype.lastSyncRevision = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * Creates a new TeamLocation instance using the specified properties. @@ -155990,12 +161787,11 @@ export const Tokens = $root.Tokens = (() => { * @returns {$protobuf.Writer} Writer */ TeamLocation.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.teamUid != null && Object.hasOwnProperty.call(message, "teamUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.teamUid); - if (message.lastSyncRevision != null && Object.hasOwnProperty.call(message, "lastSyncRevision")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.lastSyncRevision); + if (!writer) writer = $Writer.create(); + if (message.teamUid != null && Object.hasOwnProperty.call(message, 'teamUid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.teamUid); + if (message.lastSyncRevision != null && Object.hasOwnProperty.call(message, 'lastSyncRevision')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int64(message.lastSyncRevision); return writer; }; @@ -156024,23 +161820,23 @@ export const Tokens = $root.Tokens = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ TeamLocation.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Tokens.TeamLocation(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Tokens.TeamLocation(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.teamUid = reader.bytes(); break; } - case 2: { + case 2: { message.lastSyncRevision = reader.int64(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -156057,8 +161853,7 @@ export const Tokens = $root.Tokens = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ TeamLocation.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -156071,14 +161866,25 @@ export const Tokens = $root.Tokens = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ TeamLocation.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.teamUid != null && message.hasOwnProperty("teamUid")) - if (!(message.teamUid && typeof message.teamUid.length === "number" || $util.isString(message.teamUid))) - return "teamUid: buffer expected"; - if (message.lastSyncRevision != null && message.hasOwnProperty("lastSyncRevision")) - if (!$util.isInteger(message.lastSyncRevision) && !(message.lastSyncRevision && $util.isInteger(message.lastSyncRevision.low) && $util.isInteger(message.lastSyncRevision.high))) - return "lastSyncRevision: integer|Long expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.teamUid != null && message.hasOwnProperty('teamUid')) + if ( + !( + (message.teamUid && typeof message.teamUid.length === 'number') || + $util.isString(message.teamUid) + ) + ) + return 'teamUid: buffer expected'; + if (message.lastSyncRevision != null && message.hasOwnProperty('lastSyncRevision')) + if ( + !$util.isInteger(message.lastSyncRevision) && + !( + message.lastSyncRevision && + $util.isInteger(message.lastSyncRevision.low) && + $util.isInteger(message.lastSyncRevision.high) + ) + ) + return 'lastSyncRevision: integer|Long expected'; return null; }; @@ -156091,23 +161897,28 @@ export const Tokens = $root.Tokens = (() => { * @returns {Tokens.TeamLocation} TeamLocation */ TeamLocation.fromObject = function fromObject(object) { - if (object instanceof $root.Tokens.TeamLocation) - return object; + if (object instanceof $root.Tokens.TeamLocation) return object; let message = new $root.Tokens.TeamLocation(); if (object.teamUid != null) - if (typeof object.teamUid === "string") - $util.base64.decode(object.teamUid, message.teamUid = $util.newBuffer($util.base64.length(object.teamUid)), 0); - else if (object.teamUid.length >= 0) - message.teamUid = object.teamUid; + if (typeof object.teamUid === 'string') + $util.base64.decode( + object.teamUid, + (message.teamUid = $util.newBuffer($util.base64.length(object.teamUid))), + 0 + ); + else if (object.teamUid.length >= 0) message.teamUid = object.teamUid; if (object.lastSyncRevision != null) if ($util.Long) (message.lastSyncRevision = $util.Long.fromValue(object.lastSyncRevision)).unsigned = false; - else if (typeof object.lastSyncRevision === "string") + else if (typeof object.lastSyncRevision === 'string') message.lastSyncRevision = parseInt(object.lastSyncRevision, 10); - else if (typeof object.lastSyncRevision === "number") + else if (typeof object.lastSyncRevision === 'number') message.lastSyncRevision = object.lastSyncRevision; - else if (typeof object.lastSyncRevision === "object") - message.lastSyncRevision = new $util.LongBits(object.lastSyncRevision.low >>> 0, object.lastSyncRevision.high >>> 0).toNumber(); + else if (typeof object.lastSyncRevision === 'object') + message.lastSyncRevision = new $util.LongBits( + object.lastSyncRevision.low >>> 0, + object.lastSyncRevision.high >>> 0 + ).toNumber(); return message; }; @@ -156121,30 +161932,41 @@ export const Tokens = $root.Tokens = (() => { * @returns {Object.} Plain object */ TeamLocation.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.teamUid = ""; + if (options.bytes === String) object.teamUid = ''; else { object.teamUid = []; - if (options.bytes !== Array) - object.teamUid = $util.newBuffer(object.teamUid); + if (options.bytes !== Array) object.teamUid = $util.newBuffer(object.teamUid); } if ($util.Long) { let long = new $util.Long(0, 0, false); - object.lastSyncRevision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.lastSyncRevision = options.longs === String ? "0" : 0; - } - if (message.teamUid != null && message.hasOwnProperty("teamUid")) - object.teamUid = options.bytes === String ? $util.base64.encode(message.teamUid, 0, message.teamUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.teamUid) : message.teamUid; - if (message.lastSyncRevision != null && message.hasOwnProperty("lastSyncRevision")) - if (typeof message.lastSyncRevision === "number") - object.lastSyncRevision = options.longs === String ? String(message.lastSyncRevision) : message.lastSyncRevision; + object.lastSyncRevision = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.lastSyncRevision = options.longs === String ? '0' : 0; + } + if (message.teamUid != null && message.hasOwnProperty('teamUid')) + object.teamUid = + options.bytes === String + ? $util.base64.encode(message.teamUid, 0, message.teamUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.teamUid) + : message.teamUid; + if (message.lastSyncRevision != null && message.hasOwnProperty('lastSyncRevision')) + if (typeof message.lastSyncRevision === 'number') + object.lastSyncRevision = + options.longs === String ? String(message.lastSyncRevision) : message.lastSyncRevision; else - object.lastSyncRevision = options.longs === String ? $util.Long.prototype.toString.call(message.lastSyncRevision) : options.longs === Number ? new $util.LongBits(message.lastSyncRevision.low >>> 0, message.lastSyncRevision.high >>> 0).toNumber() : message.lastSyncRevision; + object.lastSyncRevision = + options.longs === String + ? $util.Long.prototype.toString.call(message.lastSyncRevision) + : options.longs === Number + ? new $util.LongBits( + message.lastSyncRevision.low >>> 0, + message.lastSyncRevision.high >>> 0 + ).toNumber() + : message.lastSyncRevision; return object; }; @@ -156169,16 +161991,15 @@ export const Tokens = $root.Tokens = (() => { */ TeamLocation.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Tokens.TeamLocation"; + return typeUrlPrefix + '/Tokens.TeamLocation'; }; return TeamLocation; })(); - Tokens.UserAuthHashLocation = (function() { - + Tokens.UserAuthHashLocation = (function () { /** * Properties of a UserAuthHashLocation. * @memberof Tokens @@ -156198,8 +162019,7 @@ export const Tokens = $root.Tokens = (() => { function UserAuthHashLocation(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -156216,7 +162036,7 @@ export const Tokens = $root.Tokens = (() => { * @memberof Tokens.UserAuthHashLocation * @instance */ - UserAuthHashLocation.prototype.lastSyncRevision = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + UserAuthHashLocation.prototype.lastSyncRevision = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * Creates a new UserAuthHashLocation instance using the specified properties. @@ -156240,12 +162060,11 @@ export const Tokens = $root.Tokens = (() => { * @returns {$protobuf.Writer} Writer */ UserAuthHashLocation.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.userAuthHashUid != null && Object.hasOwnProperty.call(message, "userAuthHashUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.userAuthHashUid); - if (message.lastSyncRevision != null && Object.hasOwnProperty.call(message, "lastSyncRevision")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.lastSyncRevision); + if (!writer) writer = $Writer.create(); + if (message.userAuthHashUid != null && Object.hasOwnProperty.call(message, 'userAuthHashUid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.userAuthHashUid); + if (message.lastSyncRevision != null && Object.hasOwnProperty.call(message, 'lastSyncRevision')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int64(message.lastSyncRevision); return writer; }; @@ -156274,23 +162093,23 @@ export const Tokens = $root.Tokens = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ UserAuthHashLocation.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Tokens.UserAuthHashLocation(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Tokens.UserAuthHashLocation(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.userAuthHashUid = reader.bytes(); break; } - case 2: { + case 2: { message.lastSyncRevision = reader.int64(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -156307,8 +162126,7 @@ export const Tokens = $root.Tokens = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ UserAuthHashLocation.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -156321,14 +162139,25 @@ export const Tokens = $root.Tokens = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ UserAuthHashLocation.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.userAuthHashUid != null && message.hasOwnProperty("userAuthHashUid")) - if (!(message.userAuthHashUid && typeof message.userAuthHashUid.length === "number" || $util.isString(message.userAuthHashUid))) - return "userAuthHashUid: buffer expected"; - if (message.lastSyncRevision != null && message.hasOwnProperty("lastSyncRevision")) - if (!$util.isInteger(message.lastSyncRevision) && !(message.lastSyncRevision && $util.isInteger(message.lastSyncRevision.low) && $util.isInteger(message.lastSyncRevision.high))) - return "lastSyncRevision: integer|Long expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.userAuthHashUid != null && message.hasOwnProperty('userAuthHashUid')) + if ( + !( + (message.userAuthHashUid && typeof message.userAuthHashUid.length === 'number') || + $util.isString(message.userAuthHashUid) + ) + ) + return 'userAuthHashUid: buffer expected'; + if (message.lastSyncRevision != null && message.hasOwnProperty('lastSyncRevision')) + if ( + !$util.isInteger(message.lastSyncRevision) && + !( + message.lastSyncRevision && + $util.isInteger(message.lastSyncRevision.low) && + $util.isInteger(message.lastSyncRevision.high) + ) + ) + return 'lastSyncRevision: integer|Long expected'; return null; }; @@ -156341,23 +162170,28 @@ export const Tokens = $root.Tokens = (() => { * @returns {Tokens.UserAuthHashLocation} UserAuthHashLocation */ UserAuthHashLocation.fromObject = function fromObject(object) { - if (object instanceof $root.Tokens.UserAuthHashLocation) - return object; + if (object instanceof $root.Tokens.UserAuthHashLocation) return object; let message = new $root.Tokens.UserAuthHashLocation(); if (object.userAuthHashUid != null) - if (typeof object.userAuthHashUid === "string") - $util.base64.decode(object.userAuthHashUid, message.userAuthHashUid = $util.newBuffer($util.base64.length(object.userAuthHashUid)), 0); - else if (object.userAuthHashUid.length >= 0) - message.userAuthHashUid = object.userAuthHashUid; + if (typeof object.userAuthHashUid === 'string') + $util.base64.decode( + object.userAuthHashUid, + (message.userAuthHashUid = $util.newBuffer($util.base64.length(object.userAuthHashUid))), + 0 + ); + else if (object.userAuthHashUid.length >= 0) message.userAuthHashUid = object.userAuthHashUid; if (object.lastSyncRevision != null) if ($util.Long) (message.lastSyncRevision = $util.Long.fromValue(object.lastSyncRevision)).unsigned = false; - else if (typeof object.lastSyncRevision === "string") + else if (typeof object.lastSyncRevision === 'string') message.lastSyncRevision = parseInt(object.lastSyncRevision, 10); - else if (typeof object.lastSyncRevision === "number") + else if (typeof object.lastSyncRevision === 'number') message.lastSyncRevision = object.lastSyncRevision; - else if (typeof object.lastSyncRevision === "object") - message.lastSyncRevision = new $util.LongBits(object.lastSyncRevision.low >>> 0, object.lastSyncRevision.high >>> 0).toNumber(); + else if (typeof object.lastSyncRevision === 'object') + message.lastSyncRevision = new $util.LongBits( + object.lastSyncRevision.low >>> 0, + object.lastSyncRevision.high >>> 0 + ).toNumber(); return message; }; @@ -156371,30 +162205,41 @@ export const Tokens = $root.Tokens = (() => { * @returns {Object.} Plain object */ UserAuthHashLocation.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.userAuthHashUid = ""; + if (options.bytes === String) object.userAuthHashUid = ''; else { object.userAuthHashUid = []; - if (options.bytes !== Array) - object.userAuthHashUid = $util.newBuffer(object.userAuthHashUid); + if (options.bytes !== Array) object.userAuthHashUid = $util.newBuffer(object.userAuthHashUid); } if ($util.Long) { let long = new $util.Long(0, 0, false); - object.lastSyncRevision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.lastSyncRevision = options.longs === String ? "0" : 0; - } - if (message.userAuthHashUid != null && message.hasOwnProperty("userAuthHashUid")) - object.userAuthHashUid = options.bytes === String ? $util.base64.encode(message.userAuthHashUid, 0, message.userAuthHashUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.userAuthHashUid) : message.userAuthHashUid; - if (message.lastSyncRevision != null && message.hasOwnProperty("lastSyncRevision")) - if (typeof message.lastSyncRevision === "number") - object.lastSyncRevision = options.longs === String ? String(message.lastSyncRevision) : message.lastSyncRevision; + object.lastSyncRevision = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.lastSyncRevision = options.longs === String ? '0' : 0; + } + if (message.userAuthHashUid != null && message.hasOwnProperty('userAuthHashUid')) + object.userAuthHashUid = + options.bytes === String + ? $util.base64.encode(message.userAuthHashUid, 0, message.userAuthHashUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.userAuthHashUid) + : message.userAuthHashUid; + if (message.lastSyncRevision != null && message.hasOwnProperty('lastSyncRevision')) + if (typeof message.lastSyncRevision === 'number') + object.lastSyncRevision = + options.longs === String ? String(message.lastSyncRevision) : message.lastSyncRevision; else - object.lastSyncRevision = options.longs === String ? $util.Long.prototype.toString.call(message.lastSyncRevision) : options.longs === Number ? new $util.LongBits(message.lastSyncRevision.low >>> 0, message.lastSyncRevision.high >>> 0).toNumber() : message.lastSyncRevision; + object.lastSyncRevision = + options.longs === String + ? $util.Long.prototype.toString.call(message.lastSyncRevision) + : options.longs === Number + ? new $util.LongBits( + message.lastSyncRevision.low >>> 0, + message.lastSyncRevision.high >>> 0 + ).toNumber() + : message.lastSyncRevision; return object; }; @@ -156419,16 +162264,15 @@ export const Tokens = $root.Tokens = (() => { */ UserAuthHashLocation.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Tokens.UserAuthHashLocation"; + return typeUrlPrefix + '/Tokens.UserAuthHashLocation'; }; return UserAuthHashLocation; })(); - Tokens.FolderRecordLocation = (function() { - + Tokens.FolderRecordLocation = (function () { /** * Properties of a FolderRecordLocation. * @memberof Tokens @@ -156449,8 +162293,7 @@ export const Tokens = $root.Tokens = (() => { function FolderRecordLocation(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -156475,7 +162318,7 @@ export const Tokens = $root.Tokens = (() => { * @memberof Tokens.FolderRecordLocation * @instance */ - FolderRecordLocation.prototype.lastSyncRevision = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + FolderRecordLocation.prototype.lastSyncRevision = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * Creates a new FolderRecordLocation instance using the specified properties. @@ -156499,14 +162342,13 @@ export const Tokens = $root.Tokens = (() => { * @returns {$protobuf.Writer} Writer */ FolderRecordLocation.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.folderUid != null && Object.hasOwnProperty.call(message, "folderUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.folderUid); - if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.recordUid); - if (message.lastSyncRevision != null && Object.hasOwnProperty.call(message, "lastSyncRevision")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.lastSyncRevision); + if (!writer) writer = $Writer.create(); + if (message.folderUid != null && Object.hasOwnProperty.call(message, 'folderUid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.folderUid); + if (message.recordUid != null && Object.hasOwnProperty.call(message, 'recordUid')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.recordUid); + if (message.lastSyncRevision != null && Object.hasOwnProperty.call(message, 'lastSyncRevision')) + writer.uint32(/* id 3, wireType 0 =*/ 24).int64(message.lastSyncRevision); return writer; }; @@ -156535,27 +162377,27 @@ export const Tokens = $root.Tokens = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ FolderRecordLocation.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Tokens.FolderRecordLocation(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Tokens.FolderRecordLocation(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.folderUid = reader.bytes(); break; } - case 2: { + case 2: { message.recordUid = reader.bytes(); break; } - case 3: { + case 3: { message.lastSyncRevision = reader.int64(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -156572,8 +162414,7 @@ export const Tokens = $root.Tokens = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ FolderRecordLocation.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -156586,17 +162427,33 @@ export const Tokens = $root.Tokens = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ FolderRecordLocation.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.folderUid != null && message.hasOwnProperty("folderUid")) - if (!(message.folderUid && typeof message.folderUid.length === "number" || $util.isString(message.folderUid))) - return "folderUid: buffer expected"; - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) - return "recordUid: buffer expected"; - if (message.lastSyncRevision != null && message.hasOwnProperty("lastSyncRevision")) - if (!$util.isInteger(message.lastSyncRevision) && !(message.lastSyncRevision && $util.isInteger(message.lastSyncRevision.low) && $util.isInteger(message.lastSyncRevision.high))) - return "lastSyncRevision: integer|Long expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.folderUid != null && message.hasOwnProperty('folderUid')) + if ( + !( + (message.folderUid && typeof message.folderUid.length === 'number') || + $util.isString(message.folderUid) + ) + ) + return 'folderUid: buffer expected'; + if (message.recordUid != null && message.hasOwnProperty('recordUid')) + if ( + !( + (message.recordUid && typeof message.recordUid.length === 'number') || + $util.isString(message.recordUid) + ) + ) + return 'recordUid: buffer expected'; + if (message.lastSyncRevision != null && message.hasOwnProperty('lastSyncRevision')) + if ( + !$util.isInteger(message.lastSyncRevision) && + !( + message.lastSyncRevision && + $util.isInteger(message.lastSyncRevision.low) && + $util.isInteger(message.lastSyncRevision.high) + ) + ) + return 'lastSyncRevision: integer|Long expected'; return null; }; @@ -156609,28 +162466,36 @@ export const Tokens = $root.Tokens = (() => { * @returns {Tokens.FolderRecordLocation} FolderRecordLocation */ FolderRecordLocation.fromObject = function fromObject(object) { - if (object instanceof $root.Tokens.FolderRecordLocation) - return object; + if (object instanceof $root.Tokens.FolderRecordLocation) return object; let message = new $root.Tokens.FolderRecordLocation(); 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 (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.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 (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.lastSyncRevision != null) if ($util.Long) (message.lastSyncRevision = $util.Long.fromValue(object.lastSyncRevision)).unsigned = false; - else if (typeof object.lastSyncRevision === "string") + else if (typeof object.lastSyncRevision === 'string') message.lastSyncRevision = parseInt(object.lastSyncRevision, 10); - else if (typeof object.lastSyncRevision === "number") + else if (typeof object.lastSyncRevision === 'number') message.lastSyncRevision = object.lastSyncRevision; - else if (typeof object.lastSyncRevision === "object") - message.lastSyncRevision = new $util.LongBits(object.lastSyncRevision.low >>> 0, object.lastSyncRevision.high >>> 0).toNumber(); + else if (typeof object.lastSyncRevision === 'object') + message.lastSyncRevision = new $util.LongBits( + object.lastSyncRevision.low >>> 0, + object.lastSyncRevision.high >>> 0 + ).toNumber(); return message; }; @@ -156644,39 +162509,53 @@ export const Tokens = $root.Tokens = (() => { * @returns {Object.} Plain object */ FolderRecordLocation.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.folderUid = ""; + if (options.bytes === String) object.folderUid = ''; else { object.folderUid = []; - if (options.bytes !== Array) - object.folderUid = $util.newBuffer(object.folderUid); + if (options.bytes !== Array) object.folderUid = $util.newBuffer(object.folderUid); } - if (options.bytes === String) - object.recordUid = ""; + if (options.bytes === String) object.recordUid = ''; else { object.recordUid = []; - if (options.bytes !== Array) - object.recordUid = $util.newBuffer(object.recordUid); + if (options.bytes !== Array) object.recordUid = $util.newBuffer(object.recordUid); } if ($util.Long) { let long = new $util.Long(0, 0, false); - object.lastSyncRevision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.lastSyncRevision = options.longs === String ? "0" : 0; - } - if (message.folderUid != null && message.hasOwnProperty("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.recordUid != null && message.hasOwnProperty("recordUid")) - object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; - if (message.lastSyncRevision != null && message.hasOwnProperty("lastSyncRevision")) - if (typeof message.lastSyncRevision === "number") - object.lastSyncRevision = options.longs === String ? String(message.lastSyncRevision) : message.lastSyncRevision; + object.lastSyncRevision = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.lastSyncRevision = options.longs === String ? '0' : 0; + } + if (message.folderUid != null && message.hasOwnProperty('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.recordUid != null && message.hasOwnProperty('recordUid')) + object.recordUid = + options.bytes === String + ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.recordUid) + : message.recordUid; + if (message.lastSyncRevision != null && message.hasOwnProperty('lastSyncRevision')) + if (typeof message.lastSyncRevision === 'number') + object.lastSyncRevision = + options.longs === String ? String(message.lastSyncRevision) : message.lastSyncRevision; else - object.lastSyncRevision = options.longs === String ? $util.Long.prototype.toString.call(message.lastSyncRevision) : options.longs === Number ? new $util.LongBits(message.lastSyncRevision.low >>> 0, message.lastSyncRevision.high >>> 0).toNumber() : message.lastSyncRevision; + object.lastSyncRevision = + options.longs === String + ? $util.Long.prototype.toString.call(message.lastSyncRevision) + : options.longs === Number + ? new $util.LongBits( + message.lastSyncRevision.low >>> 0, + message.lastSyncRevision.high >>> 0 + ).toNumber() + : message.lastSyncRevision; return object; }; @@ -156701,16 +162580,15 @@ export const Tokens = $root.Tokens = (() => { */ FolderRecordLocation.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Tokens.FolderRecordLocation"; + return typeUrlPrefix + '/Tokens.FolderRecordLocation'; }; return FolderRecordLocation; })(); - Tokens.RecordLinkLocation = (function() { - + Tokens.RecordLinkLocation = (function () { /** * Properties of a RecordLinkLocation. * @memberof Tokens @@ -156731,8 +162609,7 @@ export const Tokens = $root.Tokens = (() => { function RecordLinkLocation(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -156757,7 +162634,7 @@ export const Tokens = $root.Tokens = (() => { * @memberof Tokens.RecordLinkLocation * @instance */ - RecordLinkLocation.prototype.lastSyncRevision = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + RecordLinkLocation.prototype.lastSyncRevision = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * Creates a new RecordLinkLocation instance using the specified properties. @@ -156781,14 +162658,13 @@ export const Tokens = $root.Tokens = (() => { * @returns {$protobuf.Writer} Writer */ RecordLinkLocation.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.parentRecordUid != null && Object.hasOwnProperty.call(message, "parentRecordUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.parentRecordUid); - if (message.childRecordUid != null && Object.hasOwnProperty.call(message, "childRecordUid")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.childRecordUid); - if (message.lastSyncRevision != null && Object.hasOwnProperty.call(message, "lastSyncRevision")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.lastSyncRevision); + if (!writer) writer = $Writer.create(); + if (message.parentRecordUid != null && Object.hasOwnProperty.call(message, 'parentRecordUid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.parentRecordUid); + if (message.childRecordUid != null && Object.hasOwnProperty.call(message, 'childRecordUid')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.childRecordUid); + if (message.lastSyncRevision != null && Object.hasOwnProperty.call(message, 'lastSyncRevision')) + writer.uint32(/* id 3, wireType 0 =*/ 24).int64(message.lastSyncRevision); return writer; }; @@ -156817,27 +162693,27 @@ export const Tokens = $root.Tokens = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RecordLinkLocation.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Tokens.RecordLinkLocation(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Tokens.RecordLinkLocation(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.parentRecordUid = reader.bytes(); break; } - case 2: { + case 2: { message.childRecordUid = reader.bytes(); break; } - case 3: { + case 3: { message.lastSyncRevision = reader.int64(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -156854,8 +162730,7 @@ export const Tokens = $root.Tokens = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RecordLinkLocation.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -156868,17 +162743,33 @@ export const Tokens = $root.Tokens = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ RecordLinkLocation.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.parentRecordUid != null && message.hasOwnProperty("parentRecordUid")) - if (!(message.parentRecordUid && typeof message.parentRecordUid.length === "number" || $util.isString(message.parentRecordUid))) - return "parentRecordUid: buffer expected"; - if (message.childRecordUid != null && message.hasOwnProperty("childRecordUid")) - if (!(message.childRecordUid && typeof message.childRecordUid.length === "number" || $util.isString(message.childRecordUid))) - return "childRecordUid: buffer expected"; - if (message.lastSyncRevision != null && message.hasOwnProperty("lastSyncRevision")) - if (!$util.isInteger(message.lastSyncRevision) && !(message.lastSyncRevision && $util.isInteger(message.lastSyncRevision.low) && $util.isInteger(message.lastSyncRevision.high))) - return "lastSyncRevision: integer|Long expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.parentRecordUid != null && message.hasOwnProperty('parentRecordUid')) + if ( + !( + (message.parentRecordUid && typeof message.parentRecordUid.length === 'number') || + $util.isString(message.parentRecordUid) + ) + ) + return 'parentRecordUid: buffer expected'; + if (message.childRecordUid != null && message.hasOwnProperty('childRecordUid')) + if ( + !( + (message.childRecordUid && typeof message.childRecordUid.length === 'number') || + $util.isString(message.childRecordUid) + ) + ) + return 'childRecordUid: buffer expected'; + if (message.lastSyncRevision != null && message.hasOwnProperty('lastSyncRevision')) + if ( + !$util.isInteger(message.lastSyncRevision) && + !( + message.lastSyncRevision && + $util.isInteger(message.lastSyncRevision.low) && + $util.isInteger(message.lastSyncRevision.high) + ) + ) + return 'lastSyncRevision: integer|Long expected'; return null; }; @@ -156891,28 +162782,36 @@ export const Tokens = $root.Tokens = (() => { * @returns {Tokens.RecordLinkLocation} RecordLinkLocation */ RecordLinkLocation.fromObject = function fromObject(object) { - if (object instanceof $root.Tokens.RecordLinkLocation) - return object; + if (object instanceof $root.Tokens.RecordLinkLocation) return object; let message = new $root.Tokens.RecordLinkLocation(); if (object.parentRecordUid != null) - if (typeof object.parentRecordUid === "string") - $util.base64.decode(object.parentRecordUid, message.parentRecordUid = $util.newBuffer($util.base64.length(object.parentRecordUid)), 0); - else if (object.parentRecordUid.length >= 0) - message.parentRecordUid = object.parentRecordUid; + if (typeof object.parentRecordUid === 'string') + $util.base64.decode( + object.parentRecordUid, + (message.parentRecordUid = $util.newBuffer($util.base64.length(object.parentRecordUid))), + 0 + ); + else if (object.parentRecordUid.length >= 0) message.parentRecordUid = object.parentRecordUid; if (object.childRecordUid != null) - if (typeof object.childRecordUid === "string") - $util.base64.decode(object.childRecordUid, message.childRecordUid = $util.newBuffer($util.base64.length(object.childRecordUid)), 0); - else if (object.childRecordUid.length >= 0) - message.childRecordUid = object.childRecordUid; + if (typeof object.childRecordUid === 'string') + $util.base64.decode( + object.childRecordUid, + (message.childRecordUid = $util.newBuffer($util.base64.length(object.childRecordUid))), + 0 + ); + else if (object.childRecordUid.length >= 0) message.childRecordUid = object.childRecordUid; if (object.lastSyncRevision != null) if ($util.Long) (message.lastSyncRevision = $util.Long.fromValue(object.lastSyncRevision)).unsigned = false; - else if (typeof object.lastSyncRevision === "string") + else if (typeof object.lastSyncRevision === 'string') message.lastSyncRevision = parseInt(object.lastSyncRevision, 10); - else if (typeof object.lastSyncRevision === "number") + else if (typeof object.lastSyncRevision === 'number') message.lastSyncRevision = object.lastSyncRevision; - else if (typeof object.lastSyncRevision === "object") - message.lastSyncRevision = new $util.LongBits(object.lastSyncRevision.low >>> 0, object.lastSyncRevision.high >>> 0).toNumber(); + else if (typeof object.lastSyncRevision === 'object') + message.lastSyncRevision = new $util.LongBits( + object.lastSyncRevision.low >>> 0, + object.lastSyncRevision.high >>> 0 + ).toNumber(); return message; }; @@ -156926,39 +162825,53 @@ export const Tokens = $root.Tokens = (() => { * @returns {Object.} Plain object */ RecordLinkLocation.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.parentRecordUid = ""; + if (options.bytes === String) object.parentRecordUid = ''; else { object.parentRecordUid = []; - if (options.bytes !== Array) - object.parentRecordUid = $util.newBuffer(object.parentRecordUid); + if (options.bytes !== Array) object.parentRecordUid = $util.newBuffer(object.parentRecordUid); } - if (options.bytes === String) - object.childRecordUid = ""; + if (options.bytes === String) object.childRecordUid = ''; else { object.childRecordUid = []; - if (options.bytes !== Array) - object.childRecordUid = $util.newBuffer(object.childRecordUid); + if (options.bytes !== Array) object.childRecordUid = $util.newBuffer(object.childRecordUid); } if ($util.Long) { let long = new $util.Long(0, 0, false); - object.lastSyncRevision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.lastSyncRevision = options.longs === String ? "0" : 0; - } - if (message.parentRecordUid != null && message.hasOwnProperty("parentRecordUid")) - object.parentRecordUid = options.bytes === String ? $util.base64.encode(message.parentRecordUid, 0, message.parentRecordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.parentRecordUid) : message.parentRecordUid; - if (message.childRecordUid != null && message.hasOwnProperty("childRecordUid")) - object.childRecordUid = options.bytes === String ? $util.base64.encode(message.childRecordUid, 0, message.childRecordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.childRecordUid) : message.childRecordUid; - if (message.lastSyncRevision != null && message.hasOwnProperty("lastSyncRevision")) - if (typeof message.lastSyncRevision === "number") - object.lastSyncRevision = options.longs === String ? String(message.lastSyncRevision) : message.lastSyncRevision; + object.lastSyncRevision = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.lastSyncRevision = options.longs === String ? '0' : 0; + } + if (message.parentRecordUid != null && message.hasOwnProperty('parentRecordUid')) + object.parentRecordUid = + options.bytes === String + ? $util.base64.encode(message.parentRecordUid, 0, message.parentRecordUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.parentRecordUid) + : message.parentRecordUid; + if (message.childRecordUid != null && message.hasOwnProperty('childRecordUid')) + object.childRecordUid = + options.bytes === String + ? $util.base64.encode(message.childRecordUid, 0, message.childRecordUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.childRecordUid) + : message.childRecordUid; + if (message.lastSyncRevision != null && message.hasOwnProperty('lastSyncRevision')) + if (typeof message.lastSyncRevision === 'number') + object.lastSyncRevision = + options.longs === String ? String(message.lastSyncRevision) : message.lastSyncRevision; else - object.lastSyncRevision = options.longs === String ? $util.Long.prototype.toString.call(message.lastSyncRevision) : options.longs === Number ? new $util.LongBits(message.lastSyncRevision.low >>> 0, message.lastSyncRevision.high >>> 0).toNumber() : message.lastSyncRevision; + object.lastSyncRevision = + options.longs === String + ? $util.Long.prototype.toString.call(message.lastSyncRevision) + : options.longs === Number + ? new $util.LongBits( + message.lastSyncRevision.low >>> 0, + message.lastSyncRevision.high >>> 0 + ).toNumber() + : message.lastSyncRevision; return object; }; @@ -156983,16 +162896,15 @@ export const Tokens = $root.Tokens = (() => { */ RecordLinkLocation.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Tokens.RecordLinkLocation"; + return typeUrlPrefix + '/Tokens.RecordLinkLocation'; }; return RecordLinkLocation; })(); - Tokens.KsmLocation = (function() { - + Tokens.KsmLocation = (function () { /** * Properties of a KsmLocation. * @memberof Tokens @@ -157013,8 +162925,7 @@ export const Tokens = $root.Tokens = (() => { function KsmLocation(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -157039,7 +162950,7 @@ export const Tokens = $root.Tokens = (() => { * @memberof Tokens.KsmLocation * @instance */ - KsmLocation.prototype.lastSyncRevision = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + KsmLocation.prototype.lastSyncRevision = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * Creates a new KsmLocation instance using the specified properties. @@ -157063,14 +162974,13 @@ export const Tokens = $root.Tokens = (() => { * @returns {$protobuf.Writer} Writer */ KsmLocation.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.appRecordUid != null && Object.hasOwnProperty.call(message, "appRecordUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.appRecordUid); - if (message.detailUid != null && Object.hasOwnProperty.call(message, "detailUid")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.detailUid); - if (message.lastSyncRevision != null && Object.hasOwnProperty.call(message, "lastSyncRevision")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.lastSyncRevision); + if (!writer) writer = $Writer.create(); + if (message.appRecordUid != null && Object.hasOwnProperty.call(message, 'appRecordUid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.appRecordUid); + if (message.detailUid != null && Object.hasOwnProperty.call(message, 'detailUid')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.detailUid); + if (message.lastSyncRevision != null && Object.hasOwnProperty.call(message, 'lastSyncRevision')) + writer.uint32(/* id 3, wireType 0 =*/ 24).int64(message.lastSyncRevision); return writer; }; @@ -157099,27 +163009,27 @@ export const Tokens = $root.Tokens = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ KsmLocation.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Tokens.KsmLocation(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Tokens.KsmLocation(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.appRecordUid = reader.bytes(); break; } - case 2: { + case 2: { message.detailUid = reader.bytes(); break; } - case 3: { + case 3: { message.lastSyncRevision = reader.int64(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -157136,8 +163046,7 @@ export const Tokens = $root.Tokens = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ KsmLocation.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -157150,17 +163059,33 @@ export const Tokens = $root.Tokens = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ KsmLocation.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.appRecordUid != null && message.hasOwnProperty("appRecordUid")) - if (!(message.appRecordUid && typeof message.appRecordUid.length === "number" || $util.isString(message.appRecordUid))) - return "appRecordUid: buffer expected"; - if (message.detailUid != null && message.hasOwnProperty("detailUid")) - if (!(message.detailUid && typeof message.detailUid.length === "number" || $util.isString(message.detailUid))) - return "detailUid: buffer expected"; - if (message.lastSyncRevision != null && message.hasOwnProperty("lastSyncRevision")) - if (!$util.isInteger(message.lastSyncRevision) && !(message.lastSyncRevision && $util.isInteger(message.lastSyncRevision.low) && $util.isInteger(message.lastSyncRevision.high))) - return "lastSyncRevision: integer|Long expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.appRecordUid != null && message.hasOwnProperty('appRecordUid')) + if ( + !( + (message.appRecordUid && typeof message.appRecordUid.length === 'number') || + $util.isString(message.appRecordUid) + ) + ) + return 'appRecordUid: buffer expected'; + if (message.detailUid != null && message.hasOwnProperty('detailUid')) + if ( + !( + (message.detailUid && typeof message.detailUid.length === 'number') || + $util.isString(message.detailUid) + ) + ) + return 'detailUid: buffer expected'; + if (message.lastSyncRevision != null && message.hasOwnProperty('lastSyncRevision')) + if ( + !$util.isInteger(message.lastSyncRevision) && + !( + message.lastSyncRevision && + $util.isInteger(message.lastSyncRevision.low) && + $util.isInteger(message.lastSyncRevision.high) + ) + ) + return 'lastSyncRevision: integer|Long expected'; return null; }; @@ -157173,28 +163098,36 @@ export const Tokens = $root.Tokens = (() => { * @returns {Tokens.KsmLocation} KsmLocation */ KsmLocation.fromObject = function fromObject(object) { - if (object instanceof $root.Tokens.KsmLocation) - return object; + if (object instanceof $root.Tokens.KsmLocation) return object; let message = new $root.Tokens.KsmLocation(); if (object.appRecordUid != null) - if (typeof object.appRecordUid === "string") - $util.base64.decode(object.appRecordUid, message.appRecordUid = $util.newBuffer($util.base64.length(object.appRecordUid)), 0); - else if (object.appRecordUid.length >= 0) - message.appRecordUid = object.appRecordUid; + if (typeof object.appRecordUid === 'string') + $util.base64.decode( + object.appRecordUid, + (message.appRecordUid = $util.newBuffer($util.base64.length(object.appRecordUid))), + 0 + ); + else if (object.appRecordUid.length >= 0) message.appRecordUid = object.appRecordUid; if (object.detailUid != null) - if (typeof object.detailUid === "string") - $util.base64.decode(object.detailUid, message.detailUid = $util.newBuffer($util.base64.length(object.detailUid)), 0); - else if (object.detailUid.length >= 0) - message.detailUid = object.detailUid; + if (typeof object.detailUid === 'string') + $util.base64.decode( + object.detailUid, + (message.detailUid = $util.newBuffer($util.base64.length(object.detailUid))), + 0 + ); + else if (object.detailUid.length >= 0) message.detailUid = object.detailUid; if (object.lastSyncRevision != null) if ($util.Long) (message.lastSyncRevision = $util.Long.fromValue(object.lastSyncRevision)).unsigned = false; - else if (typeof object.lastSyncRevision === "string") + else if (typeof object.lastSyncRevision === 'string') message.lastSyncRevision = parseInt(object.lastSyncRevision, 10); - else if (typeof object.lastSyncRevision === "number") + else if (typeof object.lastSyncRevision === 'number') message.lastSyncRevision = object.lastSyncRevision; - else if (typeof object.lastSyncRevision === "object") - message.lastSyncRevision = new $util.LongBits(object.lastSyncRevision.low >>> 0, object.lastSyncRevision.high >>> 0).toNumber(); + else if (typeof object.lastSyncRevision === 'object') + message.lastSyncRevision = new $util.LongBits( + object.lastSyncRevision.low >>> 0, + object.lastSyncRevision.high >>> 0 + ).toNumber(); return message; }; @@ -157208,39 +163141,53 @@ export const Tokens = $root.Tokens = (() => { * @returns {Object.} Plain object */ KsmLocation.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.appRecordUid = ""; + if (options.bytes === String) object.appRecordUid = ''; else { object.appRecordUid = []; - if (options.bytes !== Array) - object.appRecordUid = $util.newBuffer(object.appRecordUid); + if (options.bytes !== Array) object.appRecordUid = $util.newBuffer(object.appRecordUid); } - if (options.bytes === String) - object.detailUid = ""; + if (options.bytes === String) object.detailUid = ''; else { object.detailUid = []; - if (options.bytes !== Array) - object.detailUid = $util.newBuffer(object.detailUid); + if (options.bytes !== Array) object.detailUid = $util.newBuffer(object.detailUid); } if ($util.Long) { let long = new $util.Long(0, 0, false); - object.lastSyncRevision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.lastSyncRevision = options.longs === String ? "0" : 0; - } - if (message.appRecordUid != null && message.hasOwnProperty("appRecordUid")) - object.appRecordUid = options.bytes === String ? $util.base64.encode(message.appRecordUid, 0, message.appRecordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.appRecordUid) : message.appRecordUid; - if (message.detailUid != null && message.hasOwnProperty("detailUid")) - object.detailUid = options.bytes === String ? $util.base64.encode(message.detailUid, 0, message.detailUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.detailUid) : message.detailUid; - if (message.lastSyncRevision != null && message.hasOwnProperty("lastSyncRevision")) - if (typeof message.lastSyncRevision === "number") - object.lastSyncRevision = options.longs === String ? String(message.lastSyncRevision) : message.lastSyncRevision; + object.lastSyncRevision = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.lastSyncRevision = options.longs === String ? '0' : 0; + } + if (message.appRecordUid != null && message.hasOwnProperty('appRecordUid')) + object.appRecordUid = + options.bytes === String + ? $util.base64.encode(message.appRecordUid, 0, message.appRecordUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.appRecordUid) + : message.appRecordUid; + if (message.detailUid != null && message.hasOwnProperty('detailUid')) + object.detailUid = + options.bytes === String + ? $util.base64.encode(message.detailUid, 0, message.detailUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.detailUid) + : message.detailUid; + if (message.lastSyncRevision != null && message.hasOwnProperty('lastSyncRevision')) + if (typeof message.lastSyncRevision === 'number') + object.lastSyncRevision = + options.longs === String ? String(message.lastSyncRevision) : message.lastSyncRevision; else - object.lastSyncRevision = options.longs === String ? $util.Long.prototype.toString.call(message.lastSyncRevision) : options.longs === Number ? new $util.LongBits(message.lastSyncRevision.low >>> 0, message.lastSyncRevision.high >>> 0).toNumber() : message.lastSyncRevision; + object.lastSyncRevision = + options.longs === String + ? $util.Long.prototype.toString.call(message.lastSyncRevision) + : options.longs === Number + ? new $util.LongBits( + message.lastSyncRevision.low >>> 0, + message.lastSyncRevision.high >>> 0 + ).toNumber() + : message.lastSyncRevision; return object; }; @@ -157265,16 +163212,15 @@ export const Tokens = $root.Tokens = (() => { */ KsmLocation.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Tokens.KsmLocation"; + return typeUrlPrefix + '/Tokens.KsmLocation'; }; return KsmLocation; })(); - Tokens.FolderSharedFolderLocation = (function() { - + Tokens.FolderSharedFolderLocation = (function () { /** * Properties of a FolderSharedFolderLocation. * @memberof Tokens @@ -157295,8 +163241,7 @@ export const Tokens = $root.Tokens = (() => { function FolderSharedFolderLocation(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -157321,7 +163266,7 @@ export const Tokens = $root.Tokens = (() => { * @memberof Tokens.FolderSharedFolderLocation * @instance */ - FolderSharedFolderLocation.prototype.lastSyncRevision = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + FolderSharedFolderLocation.prototype.lastSyncRevision = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * Creates a new FolderSharedFolderLocation instance using the specified properties. @@ -157345,14 +163290,13 @@ export const Tokens = $root.Tokens = (() => { * @returns {$protobuf.Writer} Writer */ FolderSharedFolderLocation.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.folderUid != null && Object.hasOwnProperty.call(message, "folderUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.folderUid); - if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, "sharedFolderUid")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.sharedFolderUid); - if (message.lastSyncRevision != null && Object.hasOwnProperty.call(message, "lastSyncRevision")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.lastSyncRevision); + if (!writer) writer = $Writer.create(); + if (message.folderUid != null && Object.hasOwnProperty.call(message, 'folderUid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.folderUid); + if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, 'sharedFolderUid')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.sharedFolderUid); + if (message.lastSyncRevision != null && Object.hasOwnProperty.call(message, 'lastSyncRevision')) + writer.uint32(/* id 3, wireType 0 =*/ 24).int64(message.lastSyncRevision); return writer; }; @@ -157381,27 +163325,27 @@ export const Tokens = $root.Tokens = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ FolderSharedFolderLocation.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Tokens.FolderSharedFolderLocation(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Tokens.FolderSharedFolderLocation(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.folderUid = reader.bytes(); break; } - case 2: { + case 2: { message.sharedFolderUid = reader.bytes(); break; } - case 3: { + case 3: { message.lastSyncRevision = reader.int64(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -157418,8 +163362,7 @@ export const Tokens = $root.Tokens = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ FolderSharedFolderLocation.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -157432,17 +163375,33 @@ export const Tokens = $root.Tokens = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ FolderSharedFolderLocation.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.folderUid != null && message.hasOwnProperty("folderUid")) - if (!(message.folderUid && typeof message.folderUid.length === "number" || $util.isString(message.folderUid))) - return "folderUid: buffer expected"; - if (message.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) - if (!(message.sharedFolderUid && typeof message.sharedFolderUid.length === "number" || $util.isString(message.sharedFolderUid))) - return "sharedFolderUid: buffer expected"; - if (message.lastSyncRevision != null && message.hasOwnProperty("lastSyncRevision")) - if (!$util.isInteger(message.lastSyncRevision) && !(message.lastSyncRevision && $util.isInteger(message.lastSyncRevision.low) && $util.isInteger(message.lastSyncRevision.high))) - return "lastSyncRevision: integer|Long expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.folderUid != null && message.hasOwnProperty('folderUid')) + if ( + !( + (message.folderUid && typeof message.folderUid.length === 'number') || + $util.isString(message.folderUid) + ) + ) + return 'folderUid: buffer expected'; + if (message.sharedFolderUid != null && message.hasOwnProperty('sharedFolderUid')) + if ( + !( + (message.sharedFolderUid && typeof message.sharedFolderUid.length === 'number') || + $util.isString(message.sharedFolderUid) + ) + ) + return 'sharedFolderUid: buffer expected'; + if (message.lastSyncRevision != null && message.hasOwnProperty('lastSyncRevision')) + if ( + !$util.isInteger(message.lastSyncRevision) && + !( + message.lastSyncRevision && + $util.isInteger(message.lastSyncRevision.low) && + $util.isInteger(message.lastSyncRevision.high) + ) + ) + return 'lastSyncRevision: integer|Long expected'; return null; }; @@ -157455,28 +163414,36 @@ export const Tokens = $root.Tokens = (() => { * @returns {Tokens.FolderSharedFolderLocation} FolderSharedFolderLocation */ FolderSharedFolderLocation.fromObject = function fromObject(object) { - if (object instanceof $root.Tokens.FolderSharedFolderLocation) - return object; + if (object instanceof $root.Tokens.FolderSharedFolderLocation) return object; let message = new $root.Tokens.FolderSharedFolderLocation(); 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 (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.sharedFolderUid != null) - if (typeof object.sharedFolderUid === "string") - $util.base64.decode(object.sharedFolderUid, message.sharedFolderUid = $util.newBuffer($util.base64.length(object.sharedFolderUid)), 0); - else if (object.sharedFolderUid.length >= 0) - message.sharedFolderUid = object.sharedFolderUid; + if (typeof object.sharedFolderUid === 'string') + $util.base64.decode( + object.sharedFolderUid, + (message.sharedFolderUid = $util.newBuffer($util.base64.length(object.sharedFolderUid))), + 0 + ); + else if (object.sharedFolderUid.length >= 0) message.sharedFolderUid = object.sharedFolderUid; if (object.lastSyncRevision != null) if ($util.Long) (message.lastSyncRevision = $util.Long.fromValue(object.lastSyncRevision)).unsigned = false; - else if (typeof object.lastSyncRevision === "string") + else if (typeof object.lastSyncRevision === 'string') message.lastSyncRevision = parseInt(object.lastSyncRevision, 10); - else if (typeof object.lastSyncRevision === "number") + else if (typeof object.lastSyncRevision === 'number') message.lastSyncRevision = object.lastSyncRevision; - else if (typeof object.lastSyncRevision === "object") - message.lastSyncRevision = new $util.LongBits(object.lastSyncRevision.low >>> 0, object.lastSyncRevision.high >>> 0).toNumber(); + else if (typeof object.lastSyncRevision === 'object') + message.lastSyncRevision = new $util.LongBits( + object.lastSyncRevision.low >>> 0, + object.lastSyncRevision.high >>> 0 + ).toNumber(); return message; }; @@ -157490,39 +163457,53 @@ export const Tokens = $root.Tokens = (() => { * @returns {Object.} Plain object */ FolderSharedFolderLocation.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.folderUid = ""; + if (options.bytes === String) object.folderUid = ''; else { object.folderUid = []; - if (options.bytes !== Array) - object.folderUid = $util.newBuffer(object.folderUid); + if (options.bytes !== Array) object.folderUid = $util.newBuffer(object.folderUid); } - if (options.bytes === String) - object.sharedFolderUid = ""; + if (options.bytes === String) object.sharedFolderUid = ''; else { object.sharedFolderUid = []; - if (options.bytes !== Array) - object.sharedFolderUid = $util.newBuffer(object.sharedFolderUid); + if (options.bytes !== Array) object.sharedFolderUid = $util.newBuffer(object.sharedFolderUid); } if ($util.Long) { let long = new $util.Long(0, 0, false); - object.lastSyncRevision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.lastSyncRevision = options.longs === String ? "0" : 0; - } - if (message.folderUid != null && message.hasOwnProperty("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.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) - object.sharedFolderUid = options.bytes === String ? $util.base64.encode(message.sharedFolderUid, 0, message.sharedFolderUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.sharedFolderUid) : message.sharedFolderUid; - if (message.lastSyncRevision != null && message.hasOwnProperty("lastSyncRevision")) - if (typeof message.lastSyncRevision === "number") - object.lastSyncRevision = options.longs === String ? String(message.lastSyncRevision) : message.lastSyncRevision; + object.lastSyncRevision = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.lastSyncRevision = options.longs === String ? '0' : 0; + } + if (message.folderUid != null && message.hasOwnProperty('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.sharedFolderUid != null && message.hasOwnProperty('sharedFolderUid')) + object.sharedFolderUid = + options.bytes === String + ? $util.base64.encode(message.sharedFolderUid, 0, message.sharedFolderUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.sharedFolderUid) + : message.sharedFolderUid; + if (message.lastSyncRevision != null && message.hasOwnProperty('lastSyncRevision')) + if (typeof message.lastSyncRevision === 'number') + object.lastSyncRevision = + options.longs === String ? String(message.lastSyncRevision) : message.lastSyncRevision; else - object.lastSyncRevision = options.longs === String ? $util.Long.prototype.toString.call(message.lastSyncRevision) : options.longs === Number ? new $util.LongBits(message.lastSyncRevision.low >>> 0, message.lastSyncRevision.high >>> 0).toNumber() : message.lastSyncRevision; + object.lastSyncRevision = + options.longs === String + ? $util.Long.prototype.toString.call(message.lastSyncRevision) + : options.longs === Number + ? new $util.LongBits( + message.lastSyncRevision.low >>> 0, + message.lastSyncRevision.high >>> 0 + ).toNumber() + : message.lastSyncRevision; return object; }; @@ -157547,16 +163528,15 @@ export const Tokens = $root.Tokens = (() => { */ FolderSharedFolderLocation.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Tokens.FolderSharedFolderLocation"; + return typeUrlPrefix + '/Tokens.FolderSharedFolderLocation'; }; return FolderSharedFolderLocation; })(); - Tokens.ShareInvitationLocation = (function() { - + Tokens.ShareInvitationLocation = (function () { /** * Properties of a ShareInvitationLocation. * @memberof Tokens @@ -157575,8 +163555,7 @@ export const Tokens = $root.Tokens = (() => { function ShareInvitationLocation(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -157585,7 +163564,7 @@ export const Tokens = $root.Tokens = (() => { * @memberof Tokens.ShareInvitationLocation * @instance */ - ShareInvitationLocation.prototype.username = ""; + ShareInvitationLocation.prototype.username = ''; /** * Creates a new ShareInvitationLocation instance using the specified properties. @@ -157609,10 +163588,9 @@ export const Tokens = $root.Tokens = (() => { * @returns {$protobuf.Writer} Writer */ ShareInvitationLocation.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.username != null && Object.hasOwnProperty.call(message, "username")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.username); + if (!writer) writer = $Writer.create(); + if (message.username != null && Object.hasOwnProperty.call(message, 'username')) + writer.uint32(/* id 1, wireType 2 =*/ 10).string(message.username); return writer; }; @@ -157641,19 +163619,19 @@ export const Tokens = $root.Tokens = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ShareInvitationLocation.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Tokens.ShareInvitationLocation(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Tokens.ShareInvitationLocation(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.username = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -157670,8 +163648,7 @@ export const Tokens = $root.Tokens = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ShareInvitationLocation.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -157684,11 +163661,9 @@ export const Tokens = $root.Tokens = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ ShareInvitationLocation.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.username != null && message.hasOwnProperty("username")) - if (!$util.isString(message.username)) - return "username: string expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.username != null && message.hasOwnProperty('username')) + if (!$util.isString(message.username)) return 'username: string expected'; return null; }; @@ -157701,11 +163676,9 @@ export const Tokens = $root.Tokens = (() => { * @returns {Tokens.ShareInvitationLocation} ShareInvitationLocation */ ShareInvitationLocation.fromObject = function fromObject(object) { - if (object instanceof $root.Tokens.ShareInvitationLocation) - return object; + if (object instanceof $root.Tokens.ShareInvitationLocation) return object; let message = new $root.Tokens.ShareInvitationLocation(); - if (object.username != null) - message.username = String(object.username); + if (object.username != null) message.username = String(object.username); return message; }; @@ -157719,13 +163692,10 @@ export const Tokens = $root.Tokens = (() => { * @returns {Object.} Plain object */ ShareInvitationLocation.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.defaults) - object.username = ""; - if (message.username != null && message.hasOwnProperty("username")) - object.username = message.username; + if (options.defaults) object.username = ''; + if (message.username != null && message.hasOwnProperty('username')) object.username = message.username; return object; }; @@ -157750,16 +163720,15 @@ export const Tokens = $root.Tokens = (() => { */ ShareInvitationLocation.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Tokens.ShareInvitationLocation"; + return typeUrlPrefix + '/Tokens.ShareInvitationLocation'; }; return ShareInvitationLocation; })(); - Tokens.UserLocation = (function() { - + Tokens.UserLocation = (function () { /** * Properties of a UserLocation. * @memberof Tokens @@ -157778,8 +163747,7 @@ export const Tokens = $root.Tokens = (() => { function UserLocation(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -157812,10 +163780,9 @@ export const Tokens = $root.Tokens = (() => { * @returns {$protobuf.Writer} Writer */ UserLocation.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.userId != null && Object.hasOwnProperty.call(message, "userId")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.userId); + if (!writer) writer = $Writer.create(); + if (message.userId != null && Object.hasOwnProperty.call(message, 'userId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int32(message.userId); return writer; }; @@ -157844,19 +163811,19 @@ export const Tokens = $root.Tokens = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ UserLocation.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Tokens.UserLocation(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Tokens.UserLocation(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.userId = reader.int32(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -157873,8 +163840,7 @@ export const Tokens = $root.Tokens = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ UserLocation.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -157887,11 +163853,9 @@ export const Tokens = $root.Tokens = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ UserLocation.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.userId != null && message.hasOwnProperty("userId")) - if (!$util.isInteger(message.userId)) - return "userId: integer expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.userId != null && message.hasOwnProperty('userId')) + if (!$util.isInteger(message.userId)) return 'userId: integer expected'; return null; }; @@ -157904,11 +163868,9 @@ export const Tokens = $root.Tokens = (() => { * @returns {Tokens.UserLocation} UserLocation */ UserLocation.fromObject = function fromObject(object) { - if (object instanceof $root.Tokens.UserLocation) - return object; + if (object instanceof $root.Tokens.UserLocation) return object; let message = new $root.Tokens.UserLocation(); - if (object.userId != null) - message.userId = object.userId | 0; + if (object.userId != null) message.userId = object.userId | 0; return message; }; @@ -157922,13 +163884,10 @@ export const Tokens = $root.Tokens = (() => { * @returns {Object.} Plain object */ UserLocation.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.defaults) - object.userId = 0; - if (message.userId != null && message.hasOwnProperty("userId")) - object.userId = message.userId; + if (options.defaults) object.userId = 0; + if (message.userId != null && message.hasOwnProperty('userId')) object.userId = message.userId; return object; }; @@ -157953,16 +163912,15 @@ export const Tokens = $root.Tokens = (() => { */ UserLocation.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Tokens.UserLocation"; + return typeUrlPrefix + '/Tokens.UserLocation'; }; return UserLocation; })(); - Tokens.KeyCloakToken = (function() { - + Tokens.KeyCloakToken = (function () { /** * Properties of a KeyCloakToken. * @memberof Tokens @@ -157983,8 +163941,7 @@ export const Tokens = $root.Tokens = (() => { this.groups = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -157993,7 +163950,7 @@ export const Tokens = $root.Tokens = (() => { * @memberof Tokens.KeyCloakToken * @instance */ - KeyCloakToken.prototype.email = ""; + KeyCloakToken.prototype.email = ''; /** * KeyCloakToken groups. @@ -158025,13 +163982,12 @@ export const Tokens = $root.Tokens = (() => { * @returns {$protobuf.Writer} Writer */ KeyCloakToken.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.email != null && Object.hasOwnProperty.call(message, "email")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.email); + if (!writer) writer = $Writer.create(); + if (message.email != null && Object.hasOwnProperty.call(message, 'email')) + writer.uint32(/* id 1, wireType 2 =*/ 10).string(message.email); if (message.groups != null && message.groups.length) for (let i = 0; i < message.groups.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.groups[i]); + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.groups[i]); return writer; }; @@ -158060,25 +164016,24 @@ export const Tokens = $root.Tokens = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ KeyCloakToken.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Tokens.KeyCloakToken(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Tokens.KeyCloakToken(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.email = reader.string(); break; } - case 2: { - if (!(message.groups && message.groups.length)) - message.groups = []; + case 2: { + if (!(message.groups && message.groups.length)) message.groups = []; message.groups.push(reader.string()); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -158095,8 +164050,7 @@ export const Tokens = $root.Tokens = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ KeyCloakToken.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -158109,17 +164063,13 @@ export const Tokens = $root.Tokens = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ KeyCloakToken.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.email != null && message.hasOwnProperty("email")) - if (!$util.isString(message.email)) - return "email: string expected"; - if (message.groups != null && message.hasOwnProperty("groups")) { - if (!Array.isArray(message.groups)) - return "groups: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.email != null && message.hasOwnProperty('email')) + if (!$util.isString(message.email)) return 'email: string expected'; + if (message.groups != null && message.hasOwnProperty('groups')) { + if (!Array.isArray(message.groups)) return 'groups: array expected'; for (let i = 0; i < message.groups.length; ++i) - if (!$util.isString(message.groups[i])) - return "groups: string[] expected"; + if (!$util.isString(message.groups[i])) return 'groups: string[] expected'; } return null; }; @@ -158133,17 +164083,13 @@ export const Tokens = $root.Tokens = (() => { * @returns {Tokens.KeyCloakToken} KeyCloakToken */ KeyCloakToken.fromObject = function fromObject(object) { - if (object instanceof $root.Tokens.KeyCloakToken) - return object; + if (object instanceof $root.Tokens.KeyCloakToken) return object; let message = new $root.Tokens.KeyCloakToken(); - if (object.email != null) - message.email = String(object.email); + if (object.email != null) message.email = String(object.email); if (object.groups) { - if (!Array.isArray(object.groups)) - throw TypeError(".Tokens.KeyCloakToken.groups: array expected"); + if (!Array.isArray(object.groups)) throw TypeError('.Tokens.KeyCloakToken.groups: array expected'); message.groups = []; - for (let i = 0; i < object.groups.length; ++i) - message.groups[i] = String(object.groups[i]); + for (let i = 0; i < object.groups.length; ++i) message.groups[i] = String(object.groups[i]); } return message; }; @@ -158158,19 +164104,14 @@ export const Tokens = $root.Tokens = (() => { * @returns {Object.} Plain object */ KeyCloakToken.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.groups = []; - if (options.defaults) - object.email = ""; - if (message.email != null && message.hasOwnProperty("email")) - object.email = message.email; + if (options.arrays || options.defaults) object.groups = []; + if (options.defaults) object.email = ''; + if (message.email != null && message.hasOwnProperty('email')) object.email = message.email; if (message.groups && message.groups.length) { object.groups = []; - for (let j = 0; j < message.groups.length; ++j) - object.groups[j] = message.groups[j]; + for (let j = 0; j < message.groups.length; ++j) object.groups[j] = message.groups[j]; } return object; }; @@ -158196,16 +164137,15 @@ export const Tokens = $root.Tokens = (() => { */ KeyCloakToken.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Tokens.KeyCloakToken"; + return typeUrlPrefix + '/Tokens.KeyCloakToken'; }; return KeyCloakToken; })(); - Tokens.IPWhiteList = (function() { - + Tokens.IPWhiteList = (function () { /** * Properties of a IPWhiteList. * @memberof Tokens @@ -158224,8 +164164,7 @@ export const Tokens = $root.Tokens = (() => { function IPWhiteList(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -158234,7 +164173,7 @@ export const Tokens = $root.Tokens = (() => { * @memberof Tokens.IPWhiteList * @instance */ - IPWhiteList.prototype.ipranges = ""; + IPWhiteList.prototype.ipranges = ''; /** * Creates a new IPWhiteList instance using the specified properties. @@ -158258,10 +164197,9 @@ export const Tokens = $root.Tokens = (() => { * @returns {$protobuf.Writer} Writer */ IPWhiteList.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.ipranges != null && Object.hasOwnProperty.call(message, "ipranges")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.ipranges); + if (!writer) writer = $Writer.create(); + if (message.ipranges != null && Object.hasOwnProperty.call(message, 'ipranges')) + writer.uint32(/* id 1, wireType 2 =*/ 10).string(message.ipranges); return writer; }; @@ -158290,19 +164228,19 @@ export const Tokens = $root.Tokens = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ IPWhiteList.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Tokens.IPWhiteList(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Tokens.IPWhiteList(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.ipranges = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -158319,8 +164257,7 @@ export const Tokens = $root.Tokens = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ IPWhiteList.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -158333,11 +164270,9 @@ export const Tokens = $root.Tokens = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ IPWhiteList.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.ipranges != null && message.hasOwnProperty("ipranges")) - if (!$util.isString(message.ipranges)) - return "ipranges: string expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.ipranges != null && message.hasOwnProperty('ipranges')) + if (!$util.isString(message.ipranges)) return 'ipranges: string expected'; return null; }; @@ -158350,11 +164285,9 @@ export const Tokens = $root.Tokens = (() => { * @returns {Tokens.IPWhiteList} IPWhiteList */ IPWhiteList.fromObject = function fromObject(object) { - if (object instanceof $root.Tokens.IPWhiteList) - return object; + if (object instanceof $root.Tokens.IPWhiteList) return object; let message = new $root.Tokens.IPWhiteList(); - if (object.ipranges != null) - message.ipranges = String(object.ipranges); + if (object.ipranges != null) message.ipranges = String(object.ipranges); return message; }; @@ -158368,13 +164301,10 @@ export const Tokens = $root.Tokens = (() => { * @returns {Object.} Plain object */ IPWhiteList.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.defaults) - object.ipranges = ""; - if (message.ipranges != null && message.hasOwnProperty("ipranges")) - object.ipranges = message.ipranges; + if (options.defaults) object.ipranges = ''; + if (message.ipranges != null && message.hasOwnProperty('ipranges')) object.ipranges = message.ipranges; return object; }; @@ -158399,16 +164329,15 @@ export const Tokens = $root.Tokens = (() => { */ IPWhiteList.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Tokens.IPWhiteList"; + return typeUrlPrefix + '/Tokens.IPWhiteList'; }; return IPWhiteList; })(); - Tokens.IncrementalSecurityDataContToken = (function() { - + Tokens.IncrementalSecurityDataContToken = (function () { /** * Properties of an IncrementalSecurityDataContToken. * @memberof Tokens @@ -158429,8 +164358,7 @@ export const Tokens = $root.Tokens = (() => { function IncrementalSecurityDataContToken(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -158439,7 +164367,9 @@ export const Tokens = $root.Tokens = (() => { * @memberof Tokens.IncrementalSecurityDataContToken * @instance */ - IncrementalSecurityDataContToken.prototype.enterpriseUserIdUpToSave = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + IncrementalSecurityDataContToken.prototype.enterpriseUserIdUpToSave = $util.Long + ? $util.Long.fromBits(0, 0, false) + : 0; /** * IncrementalSecurityDataContToken revisionUpToSave. @@ -158447,7 +164377,7 @@ export const Tokens = $root.Tokens = (() => { * @memberof Tokens.IncrementalSecurityDataContToken * @instance */ - IncrementalSecurityDataContToken.prototype.revisionUpToSave = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + IncrementalSecurityDataContToken.prototype.revisionUpToSave = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * IncrementalSecurityDataContToken recordUidUpToSave. @@ -158479,14 +164409,16 @@ export const Tokens = $root.Tokens = (() => { * @returns {$protobuf.Writer} Writer */ IncrementalSecurityDataContToken.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.enterpriseUserIdUpToSave != null && Object.hasOwnProperty.call(message, "enterpriseUserIdUpToSave")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.enterpriseUserIdUpToSave); - if (message.revisionUpToSave != null && Object.hasOwnProperty.call(message, "revisionUpToSave")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.revisionUpToSave); - if (message.recordUidUpToSave != null && Object.hasOwnProperty.call(message, "recordUidUpToSave")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.recordUidUpToSave); + if (!writer) writer = $Writer.create(); + if ( + message.enterpriseUserIdUpToSave != null && + Object.hasOwnProperty.call(message, 'enterpriseUserIdUpToSave') + ) + writer.uint32(/* id 1, wireType 0 =*/ 8).int64(message.enterpriseUserIdUpToSave); + if (message.revisionUpToSave != null && Object.hasOwnProperty.call(message, 'revisionUpToSave')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int64(message.revisionUpToSave); + if (message.recordUidUpToSave != null && Object.hasOwnProperty.call(message, 'recordUidUpToSave')) + writer.uint32(/* id 3, wireType 2 =*/ 26).bytes(message.recordUidUpToSave); return writer; }; @@ -158515,27 +164447,27 @@ export const Tokens = $root.Tokens = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ IncrementalSecurityDataContToken.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Tokens.IncrementalSecurityDataContToken(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Tokens.IncrementalSecurityDataContToken(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.enterpriseUserIdUpToSave = reader.int64(); break; } - case 2: { + case 2: { message.revisionUpToSave = reader.int64(); break; } - case 3: { + case 3: { message.recordUidUpToSave = reader.bytes(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -158552,8 +164484,7 @@ export const Tokens = $root.Tokens = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ IncrementalSecurityDataContToken.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -158566,17 +164497,35 @@ export const Tokens = $root.Tokens = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ IncrementalSecurityDataContToken.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.enterpriseUserIdUpToSave != null && message.hasOwnProperty("enterpriseUserIdUpToSave")) - if (!$util.isInteger(message.enterpriseUserIdUpToSave) && !(message.enterpriseUserIdUpToSave && $util.isInteger(message.enterpriseUserIdUpToSave.low) && $util.isInteger(message.enterpriseUserIdUpToSave.high))) - return "enterpriseUserIdUpToSave: integer|Long expected"; - if (message.revisionUpToSave != null && message.hasOwnProperty("revisionUpToSave")) - if (!$util.isInteger(message.revisionUpToSave) && !(message.revisionUpToSave && $util.isInteger(message.revisionUpToSave.low) && $util.isInteger(message.revisionUpToSave.high))) - return "revisionUpToSave: integer|Long expected"; - if (message.recordUidUpToSave != null && message.hasOwnProperty("recordUidUpToSave")) - if (!(message.recordUidUpToSave && typeof message.recordUidUpToSave.length === "number" || $util.isString(message.recordUidUpToSave))) - return "recordUidUpToSave: buffer expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.enterpriseUserIdUpToSave != null && message.hasOwnProperty('enterpriseUserIdUpToSave')) + if ( + !$util.isInteger(message.enterpriseUserIdUpToSave) && + !( + message.enterpriseUserIdUpToSave && + $util.isInteger(message.enterpriseUserIdUpToSave.low) && + $util.isInteger(message.enterpriseUserIdUpToSave.high) + ) + ) + return 'enterpriseUserIdUpToSave: integer|Long expected'; + if (message.revisionUpToSave != null && message.hasOwnProperty('revisionUpToSave')) + if ( + !$util.isInteger(message.revisionUpToSave) && + !( + message.revisionUpToSave && + $util.isInteger(message.revisionUpToSave.low) && + $util.isInteger(message.revisionUpToSave.high) + ) + ) + return 'revisionUpToSave: integer|Long expected'; + if (message.recordUidUpToSave != null && message.hasOwnProperty('recordUidUpToSave')) + if ( + !( + (message.recordUidUpToSave && typeof message.recordUidUpToSave.length === 'number') || + $util.isString(message.recordUidUpToSave) + ) + ) + return 'recordUidUpToSave: buffer expected'; return null; }; @@ -158589,32 +164538,42 @@ export const Tokens = $root.Tokens = (() => { * @returns {Tokens.IncrementalSecurityDataContToken} IncrementalSecurityDataContToken */ IncrementalSecurityDataContToken.fromObject = function fromObject(object) { - if (object instanceof $root.Tokens.IncrementalSecurityDataContToken) - return object; + if (object instanceof $root.Tokens.IncrementalSecurityDataContToken) return object; let message = new $root.Tokens.IncrementalSecurityDataContToken(); if (object.enterpriseUserIdUpToSave != null) if ($util.Long) - (message.enterpriseUserIdUpToSave = $util.Long.fromValue(object.enterpriseUserIdUpToSave)).unsigned = false; - else if (typeof object.enterpriseUserIdUpToSave === "string") + (message.enterpriseUserIdUpToSave = $util.Long.fromValue( + object.enterpriseUserIdUpToSave + )).unsigned = false; + else if (typeof object.enterpriseUserIdUpToSave === 'string') message.enterpriseUserIdUpToSave = parseInt(object.enterpriseUserIdUpToSave, 10); - else if (typeof object.enterpriseUserIdUpToSave === "number") + else if (typeof object.enterpriseUserIdUpToSave === 'number') message.enterpriseUserIdUpToSave = object.enterpriseUserIdUpToSave; - else if (typeof object.enterpriseUserIdUpToSave === "object") - message.enterpriseUserIdUpToSave = new $util.LongBits(object.enterpriseUserIdUpToSave.low >>> 0, object.enterpriseUserIdUpToSave.high >>> 0).toNumber(); + else if (typeof object.enterpriseUserIdUpToSave === 'object') + message.enterpriseUserIdUpToSave = new $util.LongBits( + object.enterpriseUserIdUpToSave.low >>> 0, + object.enterpriseUserIdUpToSave.high >>> 0 + ).toNumber(); if (object.revisionUpToSave != null) if ($util.Long) (message.revisionUpToSave = $util.Long.fromValue(object.revisionUpToSave)).unsigned = false; - else if (typeof object.revisionUpToSave === "string") + else if (typeof object.revisionUpToSave === 'string') message.revisionUpToSave = parseInt(object.revisionUpToSave, 10); - else if (typeof object.revisionUpToSave === "number") + else if (typeof object.revisionUpToSave === 'number') message.revisionUpToSave = object.revisionUpToSave; - else if (typeof object.revisionUpToSave === "object") - message.revisionUpToSave = new $util.LongBits(object.revisionUpToSave.low >>> 0, object.revisionUpToSave.high >>> 0).toNumber(); + else if (typeof object.revisionUpToSave === 'object') + message.revisionUpToSave = new $util.LongBits( + object.revisionUpToSave.low >>> 0, + object.revisionUpToSave.high >>> 0 + ).toNumber(); if (object.recordUidUpToSave != null) - if (typeof object.recordUidUpToSave === "string") - $util.base64.decode(object.recordUidUpToSave, message.recordUidUpToSave = $util.newBuffer($util.base64.length(object.recordUidUpToSave)), 0); - else if (object.recordUidUpToSave.length >= 0) - message.recordUidUpToSave = object.recordUidUpToSave; + if (typeof object.recordUidUpToSave === 'string') + $util.base64.decode( + object.recordUidUpToSave, + (message.recordUidUpToSave = $util.newBuffer($util.base64.length(object.recordUidUpToSave))), + 0 + ); + else if (object.recordUidUpToSave.length >= 0) message.recordUidUpToSave = object.recordUidUpToSave; return message; }; @@ -158628,40 +164587,62 @@ export const Tokens = $root.Tokens = (() => { * @returns {Object.} Plain object */ IncrementalSecurityDataContToken.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.enterpriseUserIdUpToSave = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.enterpriseUserIdUpToSave = options.longs === String ? "0" : 0; + object.enterpriseUserIdUpToSave = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.enterpriseUserIdUpToSave = options.longs === String ? '0' : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.revisionUpToSave = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.revisionUpToSave = options.longs === String ? "0" : 0; - if (options.bytes === String) - object.recordUidUpToSave = ""; + object.revisionUpToSave = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.revisionUpToSave = options.longs === String ? '0' : 0; + if (options.bytes === String) object.recordUidUpToSave = ''; else { object.recordUidUpToSave = []; - if (options.bytes !== Array) - object.recordUidUpToSave = $util.newBuffer(object.recordUidUpToSave); + if (options.bytes !== Array) object.recordUidUpToSave = $util.newBuffer(object.recordUidUpToSave); } } - if (message.enterpriseUserIdUpToSave != null && message.hasOwnProperty("enterpriseUserIdUpToSave")) - if (typeof message.enterpriseUserIdUpToSave === "number") - object.enterpriseUserIdUpToSave = options.longs === String ? String(message.enterpriseUserIdUpToSave) : message.enterpriseUserIdUpToSave; + if (message.enterpriseUserIdUpToSave != null && message.hasOwnProperty('enterpriseUserIdUpToSave')) + if (typeof message.enterpriseUserIdUpToSave === 'number') + object.enterpriseUserIdUpToSave = + options.longs === String + ? String(message.enterpriseUserIdUpToSave) + : message.enterpriseUserIdUpToSave; else - object.enterpriseUserIdUpToSave = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseUserIdUpToSave) : options.longs === Number ? new $util.LongBits(message.enterpriseUserIdUpToSave.low >>> 0, message.enterpriseUserIdUpToSave.high >>> 0).toNumber() : message.enterpriseUserIdUpToSave; - if (message.revisionUpToSave != null && message.hasOwnProperty("revisionUpToSave")) - if (typeof message.revisionUpToSave === "number") - object.revisionUpToSave = options.longs === String ? String(message.revisionUpToSave) : message.revisionUpToSave; + object.enterpriseUserIdUpToSave = + options.longs === String + ? $util.Long.prototype.toString.call(message.enterpriseUserIdUpToSave) + : options.longs === Number + ? new $util.LongBits( + message.enterpriseUserIdUpToSave.low >>> 0, + message.enterpriseUserIdUpToSave.high >>> 0 + ).toNumber() + : message.enterpriseUserIdUpToSave; + if (message.revisionUpToSave != null && message.hasOwnProperty('revisionUpToSave')) + if (typeof message.revisionUpToSave === 'number') + object.revisionUpToSave = + options.longs === String ? String(message.revisionUpToSave) : message.revisionUpToSave; else - object.revisionUpToSave = options.longs === String ? $util.Long.prototype.toString.call(message.revisionUpToSave) : options.longs === Number ? new $util.LongBits(message.revisionUpToSave.low >>> 0, message.revisionUpToSave.high >>> 0).toNumber() : message.revisionUpToSave; - if (message.recordUidUpToSave != null && message.hasOwnProperty("recordUidUpToSave")) - object.recordUidUpToSave = options.bytes === String ? $util.base64.encode(message.recordUidUpToSave, 0, message.recordUidUpToSave.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUidUpToSave) : message.recordUidUpToSave; + object.revisionUpToSave = + options.longs === String + ? $util.Long.prototype.toString.call(message.revisionUpToSave) + : options.longs === Number + ? new $util.LongBits( + message.revisionUpToSave.low >>> 0, + message.revisionUpToSave.high >>> 0 + ).toNumber() + : message.revisionUpToSave; + if (message.recordUidUpToSave != null && message.hasOwnProperty('recordUidUpToSave')) + object.recordUidUpToSave = + options.bytes === String + ? $util.base64.encode(message.recordUidUpToSave, 0, message.recordUidUpToSave.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.recordUidUpToSave) + : message.recordUidUpToSave; return object; }; @@ -158686,19 +164667,18 @@ export const Tokens = $root.Tokens = (() => { */ IncrementalSecurityDataContToken.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Tokens.IncrementalSecurityDataContToken"; + return typeUrlPrefix + '/Tokens.IncrementalSecurityDataContToken'; }; return IncrementalSecurityDataContToken; })(); return Tokens; -})(); - -export const ExternalService = $root.ExternalService = (() => { +})()); +export const ExternalService = ($root.ExternalService = (() => { /** * Namespace ExternalService. * @exports ExternalService @@ -158706,8 +164686,7 @@ export const ExternalService = $root.ExternalService = (() => { */ const ExternalService = {}; - ExternalService.SaveSettingsRequest = (function() { - + ExternalService.SaveSettingsRequest = (function () { /** * Properties of a SaveSettingsRequest. * @memberof ExternalService @@ -158729,8 +164708,7 @@ export const ExternalService = $root.ExternalService = (() => { function SaveSettingsRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -158755,7 +164733,7 @@ export const ExternalService = $root.ExternalService = (() => { * @memberof ExternalService.SaveSettingsRequest * @instance */ - SaveSettingsRequest.prototype.password = ""; + SaveSettingsRequest.prototype.password = ''; /** * SaveSettingsRequest directoryUrl. @@ -158763,7 +164741,7 @@ export const ExternalService = $root.ExternalService = (() => { * @memberof ExternalService.SaveSettingsRequest * @instance */ - SaveSettingsRequest.prototype.directoryUrl = ""; + SaveSettingsRequest.prototype.directoryUrl = ''; /** * Creates a new SaveSettingsRequest instance using the specified properties. @@ -158787,16 +164765,15 @@ export const ExternalService = $root.ExternalService = (() => { * @returns {$protobuf.Writer} Writer */ SaveSettingsRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.enterpriseId != null && Object.hasOwnProperty.call(message, "enterpriseId")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.enterpriseId); - if (message.certificate != null && Object.hasOwnProperty.call(message, "certificate")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.certificate); - if (message.password != null && Object.hasOwnProperty.call(message, "password")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.password); - if (message.directoryUrl != null && Object.hasOwnProperty.call(message, "directoryUrl")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.directoryUrl); + if (!writer) writer = $Writer.create(); + if (message.enterpriseId != null && Object.hasOwnProperty.call(message, 'enterpriseId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int32(message.enterpriseId); + if (message.certificate != null && Object.hasOwnProperty.call(message, 'certificate')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.certificate); + if (message.password != null && Object.hasOwnProperty.call(message, 'password')) + writer.uint32(/* id 3, wireType 2 =*/ 26).string(message.password); + if (message.directoryUrl != null && Object.hasOwnProperty.call(message, 'directoryUrl')) + writer.uint32(/* id 4, wireType 2 =*/ 34).string(message.directoryUrl); return writer; }; @@ -158825,31 +164802,31 @@ export const ExternalService = $root.ExternalService = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SaveSettingsRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ExternalService.SaveSettingsRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.ExternalService.SaveSettingsRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.enterpriseId = reader.int32(); break; } - case 2: { + case 2: { message.certificate = reader.bytes(); break; } - case 3: { + case 3: { message.password = reader.string(); break; } - case 4: { + case 4: { message.directoryUrl = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -158866,8 +164843,7 @@ export const ExternalService = $root.ExternalService = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SaveSettingsRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -158880,20 +164856,21 @@ export const ExternalService = $root.ExternalService = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ SaveSettingsRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.enterpriseId != null && message.hasOwnProperty("enterpriseId")) - if (!$util.isInteger(message.enterpriseId)) - return "enterpriseId: integer expected"; - if (message.certificate != null && message.hasOwnProperty("certificate")) - if (!(message.certificate && typeof message.certificate.length === "number" || $util.isString(message.certificate))) - return "certificate: buffer expected"; - if (message.password != null && message.hasOwnProperty("password")) - if (!$util.isString(message.password)) - return "password: string expected"; - if (message.directoryUrl != null && message.hasOwnProperty("directoryUrl")) - if (!$util.isString(message.directoryUrl)) - return "directoryUrl: string expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.enterpriseId != null && message.hasOwnProperty('enterpriseId')) + if (!$util.isInteger(message.enterpriseId)) return 'enterpriseId: integer expected'; + if (message.certificate != null && message.hasOwnProperty('certificate')) + if ( + !( + (message.certificate && typeof message.certificate.length === 'number') || + $util.isString(message.certificate) + ) + ) + return 'certificate: buffer expected'; + if (message.password != null && message.hasOwnProperty('password')) + if (!$util.isString(message.password)) return 'password: string expected'; + if (message.directoryUrl != null && message.hasOwnProperty('directoryUrl')) + if (!$util.isString(message.directoryUrl)) return 'directoryUrl: string expected'; return null; }; @@ -158906,20 +164883,19 @@ export const ExternalService = $root.ExternalService = (() => { * @returns {ExternalService.SaveSettingsRequest} SaveSettingsRequest */ SaveSettingsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.ExternalService.SaveSettingsRequest) - return object; + if (object instanceof $root.ExternalService.SaveSettingsRequest) return object; let message = new $root.ExternalService.SaveSettingsRequest(); - if (object.enterpriseId != null) - message.enterpriseId = object.enterpriseId | 0; + if (object.enterpriseId != null) message.enterpriseId = object.enterpriseId | 0; if (object.certificate != null) - if (typeof object.certificate === "string") - $util.base64.decode(object.certificate, message.certificate = $util.newBuffer($util.base64.length(object.certificate)), 0); - else if (object.certificate.length >= 0) - message.certificate = object.certificate; - if (object.password != null) - message.password = String(object.password); - if (object.directoryUrl != null) - message.directoryUrl = String(object.directoryUrl); + if (typeof object.certificate === 'string') + $util.base64.decode( + object.certificate, + (message.certificate = $util.newBuffer($util.base64.length(object.certificate))), + 0 + ); + else if (object.certificate.length >= 0) message.certificate = object.certificate; + if (object.password != null) message.password = String(object.password); + if (object.directoryUrl != null) message.directoryUrl = String(object.directoryUrl); return message; }; @@ -158933,28 +164909,29 @@ export const ExternalService = $root.ExternalService = (() => { * @returns {Object.} Plain object */ SaveSettingsRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { object.enterpriseId = 0; - if (options.bytes === String) - object.certificate = ""; + if (options.bytes === String) object.certificate = ''; else { object.certificate = []; - if (options.bytes !== Array) - object.certificate = $util.newBuffer(object.certificate); + if (options.bytes !== Array) object.certificate = $util.newBuffer(object.certificate); } - object.password = ""; - object.directoryUrl = ""; + object.password = ''; + object.directoryUrl = ''; } - if (message.enterpriseId != null && message.hasOwnProperty("enterpriseId")) + if (message.enterpriseId != null && message.hasOwnProperty('enterpriseId')) object.enterpriseId = message.enterpriseId; - if (message.certificate != null && message.hasOwnProperty("certificate")) - object.certificate = options.bytes === String ? $util.base64.encode(message.certificate, 0, message.certificate.length) : options.bytes === Array ? Array.prototype.slice.call(message.certificate) : message.certificate; - if (message.password != null && message.hasOwnProperty("password")) - object.password = message.password; - if (message.directoryUrl != null && message.hasOwnProperty("directoryUrl")) + if (message.certificate != null && message.hasOwnProperty('certificate')) + object.certificate = + options.bytes === String + ? $util.base64.encode(message.certificate, 0, message.certificate.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.certificate) + : message.certificate; + if (message.password != null && message.hasOwnProperty('password')) object.password = message.password; + if (message.directoryUrl != null && message.hasOwnProperty('directoryUrl')) object.directoryUrl = message.directoryUrl; return object; }; @@ -158980,16 +164957,15 @@ export const ExternalService = $root.ExternalService = (() => { */ SaveSettingsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/ExternalService.SaveSettingsRequest"; + return typeUrlPrefix + '/ExternalService.SaveSettingsRequest'; }; return SaveSettingsRequest; })(); - ExternalService.GetUsersRequest = (function() { - + ExternalService.GetUsersRequest = (function () { /** * Properties of a GetUsersRequest. * @memberof ExternalService @@ -159009,8 +164985,7 @@ export const ExternalService = $root.ExternalService = (() => { function GetUsersRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -159019,7 +164994,7 @@ export const ExternalService = $root.ExternalService = (() => { * @memberof ExternalService.GetUsersRequest * @instance */ - GetUsersRequest.prototype.field = ""; + GetUsersRequest.prototype.field = ''; /** * GetUsersRequest value. @@ -159027,7 +165002,7 @@ export const ExternalService = $root.ExternalService = (() => { * @memberof ExternalService.GetUsersRequest * @instance */ - GetUsersRequest.prototype.value = ""; + GetUsersRequest.prototype.value = ''; /** * Creates a new GetUsersRequest instance using the specified properties. @@ -159051,12 +165026,11 @@ export const ExternalService = $root.ExternalService = (() => { * @returns {$protobuf.Writer} Writer */ GetUsersRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.field != null && Object.hasOwnProperty.call(message, "field")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.field); - if (message.value != null && Object.hasOwnProperty.call(message, "value")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.value); + if (!writer) writer = $Writer.create(); + if (message.field != null && Object.hasOwnProperty.call(message, 'field')) + writer.uint32(/* id 1, wireType 2 =*/ 10).string(message.field); + if (message.value != null && Object.hasOwnProperty.call(message, 'value')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.value); return writer; }; @@ -159085,23 +165059,23 @@ export const ExternalService = $root.ExternalService = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ GetUsersRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ExternalService.GetUsersRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.ExternalService.GetUsersRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.field = reader.string(); break; } - case 2: { + case 2: { message.value = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -159118,8 +165092,7 @@ export const ExternalService = $root.ExternalService = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ GetUsersRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -159132,14 +165105,11 @@ export const ExternalService = $root.ExternalService = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ GetUsersRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.field != null && message.hasOwnProperty("field")) - if (!$util.isString(message.field)) - return "field: string expected"; - if (message.value != null && message.hasOwnProperty("value")) - if (!$util.isString(message.value)) - return "value: string expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.field != null && message.hasOwnProperty('field')) + if (!$util.isString(message.field)) return 'field: string expected'; + if (message.value != null && message.hasOwnProperty('value')) + if (!$util.isString(message.value)) return 'value: string expected'; return null; }; @@ -159152,13 +165122,10 @@ export const ExternalService = $root.ExternalService = (() => { * @returns {ExternalService.GetUsersRequest} GetUsersRequest */ GetUsersRequest.fromObject = function fromObject(object) { - if (object instanceof $root.ExternalService.GetUsersRequest) - return object; + if (object instanceof $root.ExternalService.GetUsersRequest) return object; let message = new $root.ExternalService.GetUsersRequest(); - if (object.field != null) - message.field = String(object.field); - if (object.value != null) - message.value = String(object.value); + if (object.field != null) message.field = String(object.field); + if (object.value != null) message.value = String(object.value); return message; }; @@ -159172,17 +165139,14 @@ export const ExternalService = $root.ExternalService = (() => { * @returns {Object.} Plain object */ GetUsersRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - object.field = ""; - object.value = ""; + object.field = ''; + object.value = ''; } - if (message.field != null && message.hasOwnProperty("field")) - object.field = message.field; - if (message.value != null && message.hasOwnProperty("value")) - object.value = message.value; + if (message.field != null && message.hasOwnProperty('field')) object.field = message.field; + if (message.value != null && message.hasOwnProperty('value')) object.value = message.value; return object; }; @@ -159207,9 +165171,9 @@ export const ExternalService = $root.ExternalService = (() => { */ GetUsersRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/ExternalService.GetUsersRequest"; + return typeUrlPrefix + '/ExternalService.GetUsersRequest'; }; return GetUsersRequest; @@ -159224,12 +165188,13 @@ export const ExternalService = $root.ExternalService = (() => { * @property {number} ACTIVE=2 ACTIVE value * @property {number} TAKEN=3 TAKEN value */ - ExternalService.UserStatus = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "NEW"] = 0; - values[valuesById[1] = "INVITED"] = 1; - values[valuesById[2] = "ACTIVE"] = 2; - values[valuesById[3] = "TAKEN"] = 3; + ExternalService.UserStatus = (function () { + const valuesById = {}, + values = Object.create(valuesById); + values[(valuesById[0] = 'NEW')] = 0; + values[(valuesById[1] = 'INVITED')] = 1; + values[(valuesById[2] = 'ACTIVE')] = 2; + values[(valuesById[3] = 'TAKEN')] = 3; return values; })(); @@ -159241,16 +165206,16 @@ export const ExternalService = $root.ExternalService = (() => { * @property {number} LOCKED=1 LOCKED value * @property {number} DISABLED=2 DISABLED value */ - ExternalService.LockStatus = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "UNLOCKED"] = 0; - values[valuesById[1] = "LOCKED"] = 1; - values[valuesById[2] = "DISABLED"] = 2; + ExternalService.LockStatus = (function () { + const valuesById = {}, + values = Object.create(valuesById); + values[(valuesById[0] = 'UNLOCKED')] = 0; + values[(valuesById[1] = 'LOCKED')] = 1; + values[(valuesById[2] = 'DISABLED')] = 2; return values; })(); - ExternalService.User = (function() { - + ExternalService.User = (function () { /** * Properties of a User. * @memberof ExternalService @@ -159272,8 +165237,7 @@ export const ExternalService = $root.ExternalService = (() => { function User(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -159282,7 +165246,7 @@ export const ExternalService = $root.ExternalService = (() => { * @memberof ExternalService.User * @instance */ - User.prototype.email = ""; + User.prototype.email = ''; /** * User name. @@ -159290,7 +165254,7 @@ export const ExternalService = $root.ExternalService = (() => { * @memberof ExternalService.User * @instance */ - User.prototype.name = ""; + User.prototype.name = ''; /** * User status. @@ -159330,16 +165294,15 @@ export const ExternalService = $root.ExternalService = (() => { * @returns {$protobuf.Writer} Writer */ User.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.email != null && Object.hasOwnProperty.call(message, "email")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.email); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.name); - if (message.status != null && Object.hasOwnProperty.call(message, "status")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.status); - if (message.lockStatus != null && Object.hasOwnProperty.call(message, "lockStatus")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.lockStatus); + if (!writer) writer = $Writer.create(); + if (message.email != null && Object.hasOwnProperty.call(message, 'email')) + writer.uint32(/* id 1, wireType 2 =*/ 10).string(message.email); + if (message.name != null && Object.hasOwnProperty.call(message, 'name')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.name); + if (message.status != null && Object.hasOwnProperty.call(message, 'status')) + writer.uint32(/* id 3, wireType 0 =*/ 24).int32(message.status); + if (message.lockStatus != null && Object.hasOwnProperty.call(message, 'lockStatus')) + writer.uint32(/* id 4, wireType 0 =*/ 32).int32(message.lockStatus); return writer; }; @@ -159368,31 +165331,31 @@ export const ExternalService = $root.ExternalService = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ User.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ExternalService.User(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.ExternalService.User(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.email = reader.string(); break; } - case 2: { + case 2: { message.name = reader.string(); break; } - case 3: { + case 3: { message.status = reader.int32(); break; } - case 4: { + case 4: { message.lockStatus = reader.int32(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -159409,8 +165372,7 @@ export const ExternalService = $root.ExternalService = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ User.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -159423,32 +165385,29 @@ export const ExternalService = $root.ExternalService = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ User.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.email != null && message.hasOwnProperty("email")) - if (!$util.isString(message.email)) - return "email: string expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.status != null && message.hasOwnProperty("status")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.email != null && message.hasOwnProperty('email')) + if (!$util.isString(message.email)) return 'email: string expected'; + if (message.name != null && message.hasOwnProperty('name')) + if (!$util.isString(message.name)) return 'name: string expected'; + if (message.status != null && message.hasOwnProperty('status')) switch (message.status) { - default: - return "status: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; + default: + return 'status: enum value expected'; + case 0: + case 1: + case 2: + case 3: + break; } - if (message.lockStatus != null && message.hasOwnProperty("lockStatus")) + if (message.lockStatus != null && message.hasOwnProperty('lockStatus')) switch (message.lockStatus) { - default: - return "lockStatus: enum value expected"; - case 0: - case 1: - case 2: - break; + default: + return 'lockStatus: enum value expected'; + case 0: + case 1: + case 2: + break; } return null; }; @@ -159462,56 +165421,53 @@ export const ExternalService = $root.ExternalService = (() => { * @returns {ExternalService.User} User */ User.fromObject = function fromObject(object) { - if (object instanceof $root.ExternalService.User) - return object; + if (object instanceof $root.ExternalService.User) return object; let message = new $root.ExternalService.User(); - if (object.email != null) - message.email = String(object.email); - if (object.name != null) - message.name = String(object.name); + if (object.email != null) message.email = String(object.email); + if (object.name != null) message.name = String(object.name); switch (object.status) { - default: - if (typeof object.status === "number") { - message.status = object.status; - break; - } - break; - case "NEW": - case 0: - message.status = 0; - break; - case "INVITED": - case 1: - message.status = 1; - break; - case "ACTIVE": - case 2: - message.status = 2; - break; - case "TAKEN": - case 3: - message.status = 3; - break; + default: + if (typeof object.status === 'number') { + message.status = object.status; + break; + } + break; + case 'NEW': + case 0: + message.status = 0; + break; + case 'INVITED': + case 1: + message.status = 1; + break; + case 'ACTIVE': + case 2: + message.status = 2; + break; + case 'TAKEN': + case 3: + message.status = 3; + break; } switch (object.lockStatus) { - default: - if (typeof object.lockStatus === "number") { - message.lockStatus = object.lockStatus; + default: + if (typeof object.lockStatus === 'number') { + message.lockStatus = object.lockStatus; + break; + } + break; + case 'UNLOCKED': + case 0: + message.lockStatus = 0; + break; + case 'LOCKED': + case 1: + message.lockStatus = 1; + break; + case 'DISABLED': + case 2: + message.lockStatus = 2; break; - } - break; - case "UNLOCKED": - case 0: - message.lockStatus = 0; - break; - case "LOCKED": - case 1: - message.lockStatus = 1; - break; - case "DISABLED": - case 2: - message.lockStatus = 2; - break; } return message; }; @@ -159526,23 +165482,30 @@ export const ExternalService = $root.ExternalService = (() => { * @returns {Object.} Plain object */ User.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - object.email = ""; - object.name = ""; - object.status = options.enums === String ? "NEW" : 0; - object.lockStatus = options.enums === String ? "UNLOCKED" : 0; + object.email = ''; + object.name = ''; + object.status = options.enums === String ? 'NEW' : 0; + object.lockStatus = options.enums === String ? 'UNLOCKED' : 0; } - if (message.email != null && message.hasOwnProperty("email")) - object.email = message.email; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.status != null && message.hasOwnProperty("status")) - object.status = options.enums === String ? $root.ExternalService.UserStatus[message.status] === undefined ? message.status : $root.ExternalService.UserStatus[message.status] : message.status; - if (message.lockStatus != null && message.hasOwnProperty("lockStatus")) - object.lockStatus = options.enums === String ? $root.ExternalService.LockStatus[message.lockStatus] === undefined ? message.lockStatus : $root.ExternalService.LockStatus[message.lockStatus] : message.lockStatus; + if (message.email != null && message.hasOwnProperty('email')) object.email = message.email; + if (message.name != null && message.hasOwnProperty('name')) object.name = message.name; + if (message.status != null && message.hasOwnProperty('status')) + object.status = + options.enums === String + ? $root.ExternalService.UserStatus[message.status] === undefined + ? message.status + : $root.ExternalService.UserStatus[message.status] + : message.status; + if (message.lockStatus != null && message.hasOwnProperty('lockStatus')) + object.lockStatus = + options.enums === String + ? $root.ExternalService.LockStatus[message.lockStatus] === undefined + ? message.lockStatus + : $root.ExternalService.LockStatus[message.lockStatus] + : message.lockStatus; return object; }; @@ -159567,16 +165530,15 @@ export const ExternalService = $root.ExternalService = (() => { */ User.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/ExternalService.User"; + return typeUrlPrefix + '/ExternalService.User'; }; return User; })(); - ExternalService.GetUsersResponse = (function() { - + ExternalService.GetUsersResponse = (function () { /** * Properties of a GetUsersResponse. * @memberof ExternalService @@ -159596,8 +165558,7 @@ export const ExternalService = $root.ExternalService = (() => { this.users = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -159630,11 +165591,13 @@ export const ExternalService = $root.ExternalService = (() => { * @returns {$protobuf.Writer} Writer */ GetUsersResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.users != null && message.users.length) for (let i = 0; i < message.users.length; ++i) - $root.ExternalService.User.encode(message.users[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.ExternalService.User.encode( + message.users[i], + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); return writer; }; @@ -159663,21 +165626,20 @@ export const ExternalService = $root.ExternalService = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ GetUsersResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ExternalService.GetUsersResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.ExternalService.GetUsersResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (!(message.users && message.users.length)) - message.users = []; + case 1: { + if (!(message.users && message.users.length)) message.users = []; message.users.push($root.ExternalService.User.decode(reader, reader.uint32())); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -159694,8 +165656,7 @@ export const ExternalService = $root.ExternalService = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ GetUsersResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -159708,15 +165669,12 @@ export const ExternalService = $root.ExternalService = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ GetUsersResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.users != null && message.hasOwnProperty("users")) { - if (!Array.isArray(message.users)) - return "users: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.users != null && message.hasOwnProperty('users')) { + if (!Array.isArray(message.users)) return 'users: array expected'; for (let i = 0; i < message.users.length; ++i) { let error = $root.ExternalService.User.verify(message.users[i]); - if (error) - return "users." + error; + if (error) return 'users.' + error; } } return null; @@ -159731,16 +165689,15 @@ export const ExternalService = $root.ExternalService = (() => { * @returns {ExternalService.GetUsersResponse} GetUsersResponse */ GetUsersResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ExternalService.GetUsersResponse) - return object; + if (object instanceof $root.ExternalService.GetUsersResponse) return object; let message = new $root.ExternalService.GetUsersResponse(); if (object.users) { if (!Array.isArray(object.users)) - throw TypeError(".ExternalService.GetUsersResponse.users: array expected"); + throw TypeError('.ExternalService.GetUsersResponse.users: array expected'); message.users = []; for (let i = 0; i < object.users.length; ++i) { - if (typeof object.users[i] !== "object") - throw TypeError(".ExternalService.GetUsersResponse.users: object expected"); + if (typeof object.users[i] !== 'object') + throw TypeError('.ExternalService.GetUsersResponse.users: object expected'); message.users[i] = $root.ExternalService.User.fromObject(object.users[i]); } } @@ -159757,11 +165714,9 @@ export const ExternalService = $root.ExternalService = (() => { * @returns {Object.} Plain object */ GetUsersResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.users = []; + if (options.arrays || options.defaults) object.users = []; if (message.users && message.users.length) { object.users = []; for (let j = 0; j < message.users.length; ++j) @@ -159791,19 +165746,18 @@ export const ExternalService = $root.ExternalService = (() => { */ GetUsersResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/ExternalService.GetUsersResponse"; + return typeUrlPrefix + '/ExternalService.GetUsersResponse'; }; return GetUsersResponse; })(); return ExternalService; -})(); - -export const Folder = $root.Folder = (() => { +})()); +export const Folder = ($root.Folder = (() => { /** * Namespace Folder. * @exports Folder @@ -159817,9 +165771,10 @@ export const Folder = $root.Folder = (() => { * @enum {number} * @property {number} password=0 password value */ - Folder.RecordType = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "password"] = 0; + Folder.RecordType = (function () { + const valuesById = {}, + values = Object.create(valuesById); + values[(valuesById[0] = 'password')] = 0; return values; })(); @@ -159832,12 +165787,13 @@ export const Folder = $root.Folder = (() => { * @property {number} shared_folder=2 shared_folder value * @property {number} shared_folder_folder=3 shared_folder_folder value */ - Folder.FolderType = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "default_folder"] = 0; - values[valuesById[1] = "user_folder"] = 1; - values[valuesById[2] = "shared_folder"] = 2; - values[valuesById[3] = "shared_folder_folder"] = 3; + Folder.FolderType = (function () { + const valuesById = {}, + values = Object.create(valuesById); + values[(valuesById[0] = 'default_folder')] = 0; + values[(valuesById[1] = 'user_folder')] = 1; + values[(valuesById[2] = 'shared_folder')] = 2; + values[(valuesById[3] = 'shared_folder_folder')] = 3; return values; })(); @@ -159851,18 +165807,18 @@ export const Folder = $root.Folder = (() => { * @property {number} encrypted_by_data_key_gcm=3 encrypted_by_data_key_gcm value * @property {number} encrypted_by_public_key_ecc=4 encrypted_by_public_key_ecc value */ - Folder.EncryptedKeyType = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "no_key"] = 0; - values[valuesById[1] = "encrypted_by_data_key"] = 1; - values[valuesById[2] = "encrypted_by_public_key"] = 2; - values[valuesById[3] = "encrypted_by_data_key_gcm"] = 3; - values[valuesById[4] = "encrypted_by_public_key_ecc"] = 4; + Folder.EncryptedKeyType = (function () { + const valuesById = {}, + values = Object.create(valuesById); + values[(valuesById[0] = 'no_key')] = 0; + values[(valuesById[1] = 'encrypted_by_data_key')] = 1; + values[(valuesById[2] = 'encrypted_by_public_key')] = 2; + values[(valuesById[3] = 'encrypted_by_data_key_gcm')] = 3; + values[(valuesById[4] = 'encrypted_by_public_key_ecc')] = 4; return values; })(); - Folder.EncryptedDataKey = (function() { - + Folder.EncryptedDataKey = (function () { /** * Properties of an EncryptedDataKey. * @memberof Folder @@ -159882,8 +165838,7 @@ export const Folder = $root.Folder = (() => { function EncryptedDataKey(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -159924,12 +165879,11 @@ export const Folder = $root.Folder = (() => { * @returns {$protobuf.Writer} Writer */ EncryptedDataKey.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.encryptedKey != null && Object.hasOwnProperty.call(message, "encryptedKey")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.encryptedKey); - if (message.encryptedKeyType != null && Object.hasOwnProperty.call(message, "encryptedKeyType")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.encryptedKeyType); + if (!writer) writer = $Writer.create(); + if (message.encryptedKey != null && Object.hasOwnProperty.call(message, 'encryptedKey')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.encryptedKey); + if (message.encryptedKeyType != null && Object.hasOwnProperty.call(message, 'encryptedKeyType')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int32(message.encryptedKeyType); return writer; }; @@ -159958,23 +165912,23 @@ export const Folder = $root.Folder = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ EncryptedDataKey.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Folder.EncryptedDataKey(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Folder.EncryptedDataKey(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.encryptedKey = reader.bytes(); break; } - case 2: { + case 2: { message.encryptedKeyType = reader.int32(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -159991,8 +165945,7 @@ export const Folder = $root.Folder = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ EncryptedDataKey.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -160005,21 +165958,25 @@ export const Folder = $root.Folder = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ EncryptedDataKey.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.encryptedKey != null && message.hasOwnProperty("encryptedKey")) - if (!(message.encryptedKey && typeof message.encryptedKey.length === "number" || $util.isString(message.encryptedKey))) - return "encryptedKey: buffer expected"; - if (message.encryptedKeyType != null && message.hasOwnProperty("encryptedKeyType")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.encryptedKey != null && message.hasOwnProperty('encryptedKey')) + if ( + !( + (message.encryptedKey && typeof message.encryptedKey.length === 'number') || + $util.isString(message.encryptedKey) + ) + ) + return 'encryptedKey: buffer expected'; + if (message.encryptedKeyType != null && message.hasOwnProperty('encryptedKeyType')) switch (message.encryptedKeyType) { - default: - return "encryptedKeyType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; + default: + return 'encryptedKeyType: enum value expected'; + case 0: + case 1: + case 2: + case 3: + case 4: + break; } return null; }; @@ -160033,41 +165990,43 @@ export const Folder = $root.Folder = (() => { * @returns {Folder.EncryptedDataKey} EncryptedDataKey */ EncryptedDataKey.fromObject = function fromObject(object) { - if (object instanceof $root.Folder.EncryptedDataKey) - return object; + if (object instanceof $root.Folder.EncryptedDataKey) return object; let message = new $root.Folder.EncryptedDataKey(); if (object.encryptedKey != null) - if (typeof object.encryptedKey === "string") - $util.base64.decode(object.encryptedKey, message.encryptedKey = $util.newBuffer($util.base64.length(object.encryptedKey)), 0); - else if (object.encryptedKey.length >= 0) - message.encryptedKey = object.encryptedKey; + if (typeof object.encryptedKey === 'string') + $util.base64.decode( + object.encryptedKey, + (message.encryptedKey = $util.newBuffer($util.base64.length(object.encryptedKey))), + 0 + ); + else if (object.encryptedKey.length >= 0) message.encryptedKey = object.encryptedKey; switch (object.encryptedKeyType) { - default: - if (typeof object.encryptedKeyType === "number") { - message.encryptedKeyType = object.encryptedKeyType; + default: + if (typeof object.encryptedKeyType === 'number') { + message.encryptedKeyType = object.encryptedKeyType; + break; + } + break; + case 'no_key': + case 0: + message.encryptedKeyType = 0; + break; + case 'encrypted_by_data_key': + case 1: + message.encryptedKeyType = 1; + break; + case 'encrypted_by_public_key': + case 2: + message.encryptedKeyType = 2; + break; + case 'encrypted_by_data_key_gcm': + case 3: + message.encryptedKeyType = 3; + break; + case 'encrypted_by_public_key_ecc': + case 4: + message.encryptedKeyType = 4; break; - } - break; - case "no_key": - case 0: - message.encryptedKeyType = 0; - break; - case "encrypted_by_data_key": - case 1: - message.encryptedKeyType = 1; - break; - case "encrypted_by_public_key": - case 2: - message.encryptedKeyType = 2; - break; - case "encrypted_by_data_key_gcm": - case 3: - message.encryptedKeyType = 3; - break; - case "encrypted_by_public_key_ecc": - case 4: - message.encryptedKeyType = 4; - break; } return message; }; @@ -160082,23 +166041,30 @@ export const Folder = $root.Folder = (() => { * @returns {Object.} Plain object */ EncryptedDataKey.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.encryptedKey = ""; + if (options.bytes === String) object.encryptedKey = ''; else { object.encryptedKey = []; - if (options.bytes !== Array) - object.encryptedKey = $util.newBuffer(object.encryptedKey); + if (options.bytes !== Array) object.encryptedKey = $util.newBuffer(object.encryptedKey); } - object.encryptedKeyType = options.enums === String ? "no_key" : 0; + object.encryptedKeyType = options.enums === String ? 'no_key' : 0; } - if (message.encryptedKey != null && message.hasOwnProperty("encryptedKey")) - object.encryptedKey = options.bytes === String ? $util.base64.encode(message.encryptedKey, 0, message.encryptedKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedKey) : message.encryptedKey; - if (message.encryptedKeyType != null && message.hasOwnProperty("encryptedKeyType")) - object.encryptedKeyType = options.enums === String ? $root.Folder.EncryptedKeyType[message.encryptedKeyType] === undefined ? message.encryptedKeyType : $root.Folder.EncryptedKeyType[message.encryptedKeyType] : message.encryptedKeyType; + if (message.encryptedKey != null && message.hasOwnProperty('encryptedKey')) + object.encryptedKey = + options.bytes === String + ? $util.base64.encode(message.encryptedKey, 0, message.encryptedKey.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.encryptedKey) + : message.encryptedKey; + if (message.encryptedKeyType != null && message.hasOwnProperty('encryptedKeyType')) + object.encryptedKeyType = + options.enums === String + ? $root.Folder.EncryptedKeyType[message.encryptedKeyType] === undefined + ? message.encryptedKeyType + : $root.Folder.EncryptedKeyType[message.encryptedKeyType] + : message.encryptedKeyType; return object; }; @@ -160123,16 +166089,15 @@ export const Folder = $root.Folder = (() => { */ EncryptedDataKey.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Folder.EncryptedDataKey"; + return typeUrlPrefix + '/Folder.EncryptedDataKey'; }; return EncryptedDataKey; })(); - Folder.SharedFolderRecordData = (function() { - + Folder.SharedFolderRecordData = (function () { /** * Properties of a SharedFolderRecordData. * @memberof Folder @@ -160155,8 +166120,7 @@ export const Folder = $root.Folder = (() => { this.encryptedDataKey = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -160213,17 +166177,19 @@ export const Folder = $root.Folder = (() => { * @returns {$protobuf.Writer} Writer */ SharedFolderRecordData.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.folderUid != null && Object.hasOwnProperty.call(message, "folderUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.folderUid); - if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.recordUid); - if (message.userId != null && Object.hasOwnProperty.call(message, "userId")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.userId); + if (!writer) writer = $Writer.create(); + if (message.folderUid != null && Object.hasOwnProperty.call(message, 'folderUid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.folderUid); + if (message.recordUid != null && Object.hasOwnProperty.call(message, 'recordUid')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.recordUid); + if (message.userId != null && Object.hasOwnProperty.call(message, 'userId')) + writer.uint32(/* id 3, wireType 0 =*/ 24).int32(message.userId); if (message.encryptedDataKey != null && message.encryptedDataKey.length) for (let i = 0; i < message.encryptedDataKey.length; ++i) - $root.Folder.EncryptedDataKey.encode(message.encryptedDataKey[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + $root.Folder.EncryptedDataKey.encode( + message.encryptedDataKey[i], + writer.uint32(/* id 4, wireType 2 =*/ 34).fork() + ).ldelim(); return writer; }; @@ -160252,33 +166218,33 @@ export const Folder = $root.Folder = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SharedFolderRecordData.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Folder.SharedFolderRecordData(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Folder.SharedFolderRecordData(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.folderUid = reader.bytes(); break; } - case 2: { + case 2: { message.recordUid = reader.bytes(); break; } - case 3: { + case 3: { message.userId = reader.int32(); break; } - case 4: { + case 4: { if (!(message.encryptedDataKey && message.encryptedDataKey.length)) message.encryptedDataKey = []; message.encryptedDataKey.push($root.Folder.EncryptedDataKey.decode(reader, reader.uint32())); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -160295,8 +166261,7 @@ export const Folder = $root.Folder = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SharedFolderRecordData.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -160309,24 +166274,30 @@ export const Folder = $root.Folder = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ SharedFolderRecordData.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.folderUid != null && message.hasOwnProperty("folderUid")) - if (!(message.folderUid && typeof message.folderUid.length === "number" || $util.isString(message.folderUid))) - return "folderUid: buffer expected"; - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) - return "recordUid: buffer expected"; - if (message.userId != null && message.hasOwnProperty("userId")) - if (!$util.isInteger(message.userId)) - return "userId: integer expected"; - if (message.encryptedDataKey != null && message.hasOwnProperty("encryptedDataKey")) { - if (!Array.isArray(message.encryptedDataKey)) - return "encryptedDataKey: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.folderUid != null && message.hasOwnProperty('folderUid')) + if ( + !( + (message.folderUid && typeof message.folderUid.length === 'number') || + $util.isString(message.folderUid) + ) + ) + return 'folderUid: buffer expected'; + if (message.recordUid != null && message.hasOwnProperty('recordUid')) + if ( + !( + (message.recordUid && typeof message.recordUid.length === 'number') || + $util.isString(message.recordUid) + ) + ) + return 'recordUid: buffer expected'; + if (message.userId != null && message.hasOwnProperty('userId')) + if (!$util.isInteger(message.userId)) return 'userId: integer expected'; + if (message.encryptedDataKey != null && message.hasOwnProperty('encryptedDataKey')) { + if (!Array.isArray(message.encryptedDataKey)) return 'encryptedDataKey: array expected'; for (let i = 0; i < message.encryptedDataKey.length; ++i) { let error = $root.Folder.EncryptedDataKey.verify(message.encryptedDataKey[i]); - if (error) - return "encryptedDataKey." + error; + if (error) return 'encryptedDataKey.' + error; } } return null; @@ -160341,28 +166312,32 @@ export const Folder = $root.Folder = (() => { * @returns {Folder.SharedFolderRecordData} SharedFolderRecordData */ SharedFolderRecordData.fromObject = function fromObject(object) { - if (object instanceof $root.Folder.SharedFolderRecordData) - return object; + if (object instanceof $root.Folder.SharedFolderRecordData) return object; let message = new $root.Folder.SharedFolderRecordData(); 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 (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.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.userId != null) - message.userId = object.userId | 0; + 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.userId != null) message.userId = object.userId | 0; if (object.encryptedDataKey) { if (!Array.isArray(object.encryptedDataKey)) - throw TypeError(".Folder.SharedFolderRecordData.encryptedDataKey: array expected"); + throw TypeError('.Folder.SharedFolderRecordData.encryptedDataKey: array expected'); message.encryptedDataKey = []; for (let i = 0; i < object.encryptedDataKey.length; ++i) { - if (typeof object.encryptedDataKey[i] !== "object") - throw TypeError(".Folder.SharedFolderRecordData.encryptedDataKey: object expected"); + if (typeof object.encryptedDataKey[i] !== 'object') + throw TypeError('.Folder.SharedFolderRecordData.encryptedDataKey: object expected'); message.encryptedDataKey[i] = $root.Folder.EncryptedDataKey.fromObject(object.encryptedDataKey[i]); } } @@ -160379,38 +166354,44 @@ export const Folder = $root.Folder = (() => { * @returns {Object.} Plain object */ SharedFolderRecordData.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.encryptedDataKey = []; + if (options.arrays || options.defaults) object.encryptedDataKey = []; if (options.defaults) { - if (options.bytes === String) - object.folderUid = ""; + if (options.bytes === String) object.folderUid = ''; else { object.folderUid = []; - if (options.bytes !== Array) - object.folderUid = $util.newBuffer(object.folderUid); + if (options.bytes !== Array) object.folderUid = $util.newBuffer(object.folderUid); } - if (options.bytes === String) - object.recordUid = ""; + if (options.bytes === String) object.recordUid = ''; else { object.recordUid = []; - if (options.bytes !== Array) - object.recordUid = $util.newBuffer(object.recordUid); + if (options.bytes !== Array) object.recordUid = $util.newBuffer(object.recordUid); } object.userId = 0; } - if (message.folderUid != null && message.hasOwnProperty("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.recordUid != null && message.hasOwnProperty("recordUid")) - object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; - if (message.userId != null && message.hasOwnProperty("userId")) - object.userId = message.userId; + if (message.folderUid != null && message.hasOwnProperty('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.recordUid != null && message.hasOwnProperty('recordUid')) + object.recordUid = + options.bytes === String + ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.recordUid) + : message.recordUid; + if (message.userId != null && message.hasOwnProperty('userId')) object.userId = message.userId; if (message.encryptedDataKey && message.encryptedDataKey.length) { object.encryptedDataKey = []; for (let j = 0; j < message.encryptedDataKey.length; ++j) - object.encryptedDataKey[j] = $root.Folder.EncryptedDataKey.toObject(message.encryptedDataKey[j], options); + object.encryptedDataKey[j] = $root.Folder.EncryptedDataKey.toObject( + message.encryptedDataKey[j], + options + ); } return object; }; @@ -160436,16 +166417,15 @@ export const Folder = $root.Folder = (() => { */ SharedFolderRecordData.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Folder.SharedFolderRecordData"; + return typeUrlPrefix + '/Folder.SharedFolderRecordData'; }; return SharedFolderRecordData; })(); - Folder.SharedFolderRecordDataList = (function() { - + Folder.SharedFolderRecordDataList = (function () { /** * Properties of a SharedFolderRecordDataList. * @memberof Folder @@ -160465,8 +166445,7 @@ export const Folder = $root.Folder = (() => { this.sharedFolderRecordData = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -160499,11 +166478,13 @@ export const Folder = $root.Folder = (() => { * @returns {$protobuf.Writer} Writer */ SharedFolderRecordDataList.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.sharedFolderRecordData != null && message.sharedFolderRecordData.length) for (let i = 0; i < message.sharedFolderRecordData.length; ++i) - $root.Folder.SharedFolderRecordData.encode(message.sharedFolderRecordData[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.Folder.SharedFolderRecordData.encode( + message.sharedFolderRecordData[i], + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); return writer; }; @@ -160532,21 +166513,23 @@ export const Folder = $root.Folder = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SharedFolderRecordDataList.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Folder.SharedFolderRecordDataList(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Folder.SharedFolderRecordDataList(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { if (!(message.sharedFolderRecordData && message.sharedFolderRecordData.length)) message.sharedFolderRecordData = []; - message.sharedFolderRecordData.push($root.Folder.SharedFolderRecordData.decode(reader, reader.uint32())); + message.sharedFolderRecordData.push( + $root.Folder.SharedFolderRecordData.decode(reader, reader.uint32()) + ); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -160563,8 +166546,7 @@ export const Folder = $root.Folder = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SharedFolderRecordDataList.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -160577,15 +166559,12 @@ export const Folder = $root.Folder = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ SharedFolderRecordDataList.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.sharedFolderRecordData != null && message.hasOwnProperty("sharedFolderRecordData")) { - if (!Array.isArray(message.sharedFolderRecordData)) - return "sharedFolderRecordData: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.sharedFolderRecordData != null && message.hasOwnProperty('sharedFolderRecordData')) { + if (!Array.isArray(message.sharedFolderRecordData)) return 'sharedFolderRecordData: array expected'; for (let i = 0; i < message.sharedFolderRecordData.length; ++i) { let error = $root.Folder.SharedFolderRecordData.verify(message.sharedFolderRecordData[i]); - if (error) - return "sharedFolderRecordData." + error; + if (error) return 'sharedFolderRecordData.' + error; } } return null; @@ -160600,17 +166579,18 @@ export const Folder = $root.Folder = (() => { * @returns {Folder.SharedFolderRecordDataList} SharedFolderRecordDataList */ SharedFolderRecordDataList.fromObject = function fromObject(object) { - if (object instanceof $root.Folder.SharedFolderRecordDataList) - return object; + if (object instanceof $root.Folder.SharedFolderRecordDataList) return object; let message = new $root.Folder.SharedFolderRecordDataList(); if (object.sharedFolderRecordData) { if (!Array.isArray(object.sharedFolderRecordData)) - throw TypeError(".Folder.SharedFolderRecordDataList.sharedFolderRecordData: array expected"); + throw TypeError('.Folder.SharedFolderRecordDataList.sharedFolderRecordData: array expected'); message.sharedFolderRecordData = []; for (let i = 0; i < object.sharedFolderRecordData.length; ++i) { - if (typeof object.sharedFolderRecordData[i] !== "object") - throw TypeError(".Folder.SharedFolderRecordDataList.sharedFolderRecordData: object expected"); - message.sharedFolderRecordData[i] = $root.Folder.SharedFolderRecordData.fromObject(object.sharedFolderRecordData[i]); + if (typeof object.sharedFolderRecordData[i] !== 'object') + throw TypeError('.Folder.SharedFolderRecordDataList.sharedFolderRecordData: object expected'); + message.sharedFolderRecordData[i] = $root.Folder.SharedFolderRecordData.fromObject( + object.sharedFolderRecordData[i] + ); } } return message; @@ -160626,15 +166606,16 @@ export const Folder = $root.Folder = (() => { * @returns {Object.} Plain object */ SharedFolderRecordDataList.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.sharedFolderRecordData = []; + if (options.arrays || options.defaults) object.sharedFolderRecordData = []; if (message.sharedFolderRecordData && message.sharedFolderRecordData.length) { object.sharedFolderRecordData = []; for (let j = 0; j < message.sharedFolderRecordData.length; ++j) - object.sharedFolderRecordData[j] = $root.Folder.SharedFolderRecordData.toObject(message.sharedFolderRecordData[j], options); + object.sharedFolderRecordData[j] = $root.Folder.SharedFolderRecordData.toObject( + message.sharedFolderRecordData[j], + options + ); } return object; }; @@ -160660,16 +166641,15 @@ export const Folder = $root.Folder = (() => { */ SharedFolderRecordDataList.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Folder.SharedFolderRecordDataList"; + return typeUrlPrefix + '/Folder.SharedFolderRecordDataList'; }; return SharedFolderRecordDataList; })(); - Folder.SharedFolderRecordFix = (function() { - + Folder.SharedFolderRecordFix = (function () { /** * Properties of a SharedFolderRecordFix. * @memberof Folder @@ -160690,8 +166670,7 @@ export const Folder = $root.Folder = (() => { function SharedFolderRecordFix(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -160740,14 +166719,16 @@ export const Folder = $root.Folder = (() => { * @returns {$protobuf.Writer} Writer */ SharedFolderRecordFix.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.folderUid != null && Object.hasOwnProperty.call(message, "folderUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.folderUid); - if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.recordUid); - if (message.encryptedRecordFolderKey != null && Object.hasOwnProperty.call(message, "encryptedRecordFolderKey")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.encryptedRecordFolderKey); + if (!writer) writer = $Writer.create(); + if (message.folderUid != null && Object.hasOwnProperty.call(message, 'folderUid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.folderUid); + if (message.recordUid != null && Object.hasOwnProperty.call(message, 'recordUid')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.recordUid); + if ( + message.encryptedRecordFolderKey != null && + Object.hasOwnProperty.call(message, 'encryptedRecordFolderKey') + ) + writer.uint32(/* id 3, wireType 2 =*/ 26).bytes(message.encryptedRecordFolderKey); return writer; }; @@ -160776,27 +166757,27 @@ export const Folder = $root.Folder = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SharedFolderRecordFix.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Folder.SharedFolderRecordFix(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Folder.SharedFolderRecordFix(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.folderUid = reader.bytes(); break; } - case 2: { + case 2: { message.recordUid = reader.bytes(); break; } - case 3: { + case 3: { message.encryptedRecordFolderKey = reader.bytes(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -160813,8 +166794,7 @@ export const Folder = $root.Folder = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SharedFolderRecordFix.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -160827,17 +166807,32 @@ export const Folder = $root.Folder = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ SharedFolderRecordFix.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.folderUid != null && message.hasOwnProperty("folderUid")) - if (!(message.folderUid && typeof message.folderUid.length === "number" || $util.isString(message.folderUid))) - return "folderUid: buffer expected"; - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) - return "recordUid: buffer expected"; - if (message.encryptedRecordFolderKey != null && message.hasOwnProperty("encryptedRecordFolderKey")) - if (!(message.encryptedRecordFolderKey && typeof message.encryptedRecordFolderKey.length === "number" || $util.isString(message.encryptedRecordFolderKey))) - return "encryptedRecordFolderKey: buffer expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.folderUid != null && message.hasOwnProperty('folderUid')) + if ( + !( + (message.folderUid && typeof message.folderUid.length === 'number') || + $util.isString(message.folderUid) + ) + ) + return 'folderUid: buffer expected'; + if (message.recordUid != null && message.hasOwnProperty('recordUid')) + if ( + !( + (message.recordUid && typeof message.recordUid.length === 'number') || + $util.isString(message.recordUid) + ) + ) + return 'recordUid: buffer expected'; + if (message.encryptedRecordFolderKey != null && message.hasOwnProperty('encryptedRecordFolderKey')) + if ( + !( + (message.encryptedRecordFolderKey && + typeof message.encryptedRecordFolderKey.length === 'number') || + $util.isString(message.encryptedRecordFolderKey) + ) + ) + return 'encryptedRecordFolderKey: buffer expected'; return null; }; @@ -160850,22 +166845,33 @@ export const Folder = $root.Folder = (() => { * @returns {Folder.SharedFolderRecordFix} SharedFolderRecordFix */ SharedFolderRecordFix.fromObject = function fromObject(object) { - if (object instanceof $root.Folder.SharedFolderRecordFix) - return object; + if (object instanceof $root.Folder.SharedFolderRecordFix) return object; let message = new $root.Folder.SharedFolderRecordFix(); 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 (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.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 (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.encryptedRecordFolderKey != null) - if (typeof object.encryptedRecordFolderKey === "string") - $util.base64.decode(object.encryptedRecordFolderKey, message.encryptedRecordFolderKey = $util.newBuffer($util.base64.length(object.encryptedRecordFolderKey)), 0); + if (typeof object.encryptedRecordFolderKey === 'string') + $util.base64.decode( + object.encryptedRecordFolderKey, + (message.encryptedRecordFolderKey = $util.newBuffer( + $util.base64.length(object.encryptedRecordFolderKey) + )), + 0 + ); else if (object.encryptedRecordFolderKey.length >= 0) message.encryptedRecordFolderKey = object.encryptedRecordFolderKey; return message; @@ -160881,38 +166887,51 @@ export const Folder = $root.Folder = (() => { * @returns {Object.} Plain object */ SharedFolderRecordFix.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.folderUid = ""; + if (options.bytes === String) object.folderUid = ''; else { object.folderUid = []; - if (options.bytes !== Array) - object.folderUid = $util.newBuffer(object.folderUid); + if (options.bytes !== Array) object.folderUid = $util.newBuffer(object.folderUid); } - if (options.bytes === String) - object.recordUid = ""; + if (options.bytes === String) object.recordUid = ''; else { object.recordUid = []; - if (options.bytes !== Array) - object.recordUid = $util.newBuffer(object.recordUid); + if (options.bytes !== Array) object.recordUid = $util.newBuffer(object.recordUid); } - if (options.bytes === String) - object.encryptedRecordFolderKey = ""; + if (options.bytes === String) object.encryptedRecordFolderKey = ''; else { object.encryptedRecordFolderKey = []; if (options.bytes !== Array) object.encryptedRecordFolderKey = $util.newBuffer(object.encryptedRecordFolderKey); } } - if (message.folderUid != null && message.hasOwnProperty("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.recordUid != null && message.hasOwnProperty("recordUid")) - object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; - if (message.encryptedRecordFolderKey != null && message.hasOwnProperty("encryptedRecordFolderKey")) - object.encryptedRecordFolderKey = options.bytes === String ? $util.base64.encode(message.encryptedRecordFolderKey, 0, message.encryptedRecordFolderKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedRecordFolderKey) : message.encryptedRecordFolderKey; + if (message.folderUid != null && message.hasOwnProperty('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.recordUid != null && message.hasOwnProperty('recordUid')) + object.recordUid = + options.bytes === String + ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.recordUid) + : message.recordUid; + if (message.encryptedRecordFolderKey != null && message.hasOwnProperty('encryptedRecordFolderKey')) + object.encryptedRecordFolderKey = + options.bytes === String + ? $util.base64.encode( + message.encryptedRecordFolderKey, + 0, + message.encryptedRecordFolderKey.length + ) + : options.bytes === Array + ? Array.prototype.slice.call(message.encryptedRecordFolderKey) + : message.encryptedRecordFolderKey; return object; }; @@ -160937,16 +166956,15 @@ export const Folder = $root.Folder = (() => { */ SharedFolderRecordFix.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Folder.SharedFolderRecordFix"; + return typeUrlPrefix + '/Folder.SharedFolderRecordFix'; }; return SharedFolderRecordFix; })(); - Folder.SharedFolderRecordFixList = (function() { - + Folder.SharedFolderRecordFixList = (function () { /** * Properties of a SharedFolderRecordFixList. * @memberof Folder @@ -160966,8 +166984,7 @@ export const Folder = $root.Folder = (() => { this.sharedFolderRecordFix = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -161000,11 +167017,13 @@ export const Folder = $root.Folder = (() => { * @returns {$protobuf.Writer} Writer */ SharedFolderRecordFixList.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.sharedFolderRecordFix != null && message.sharedFolderRecordFix.length) for (let i = 0; i < message.sharedFolderRecordFix.length; ++i) - $root.Folder.SharedFolderRecordFix.encode(message.sharedFolderRecordFix[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.Folder.SharedFolderRecordFix.encode( + message.sharedFolderRecordFix[i], + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); return writer; }; @@ -161033,21 +167052,23 @@ export const Folder = $root.Folder = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SharedFolderRecordFixList.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Folder.SharedFolderRecordFixList(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Folder.SharedFolderRecordFixList(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { if (!(message.sharedFolderRecordFix && message.sharedFolderRecordFix.length)) message.sharedFolderRecordFix = []; - message.sharedFolderRecordFix.push($root.Folder.SharedFolderRecordFix.decode(reader, reader.uint32())); + message.sharedFolderRecordFix.push( + $root.Folder.SharedFolderRecordFix.decode(reader, reader.uint32()) + ); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -161064,8 +167085,7 @@ export const Folder = $root.Folder = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SharedFolderRecordFixList.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -161078,15 +167098,12 @@ export const Folder = $root.Folder = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ SharedFolderRecordFixList.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.sharedFolderRecordFix != null && message.hasOwnProperty("sharedFolderRecordFix")) { - if (!Array.isArray(message.sharedFolderRecordFix)) - return "sharedFolderRecordFix: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.sharedFolderRecordFix != null && message.hasOwnProperty('sharedFolderRecordFix')) { + if (!Array.isArray(message.sharedFolderRecordFix)) return 'sharedFolderRecordFix: array expected'; for (let i = 0; i < message.sharedFolderRecordFix.length; ++i) { let error = $root.Folder.SharedFolderRecordFix.verify(message.sharedFolderRecordFix[i]); - if (error) - return "sharedFolderRecordFix." + error; + if (error) return 'sharedFolderRecordFix.' + error; } } return null; @@ -161101,17 +167118,18 @@ export const Folder = $root.Folder = (() => { * @returns {Folder.SharedFolderRecordFixList} SharedFolderRecordFixList */ SharedFolderRecordFixList.fromObject = function fromObject(object) { - if (object instanceof $root.Folder.SharedFolderRecordFixList) - return object; + if (object instanceof $root.Folder.SharedFolderRecordFixList) return object; let message = new $root.Folder.SharedFolderRecordFixList(); if (object.sharedFolderRecordFix) { if (!Array.isArray(object.sharedFolderRecordFix)) - throw TypeError(".Folder.SharedFolderRecordFixList.sharedFolderRecordFix: array expected"); + throw TypeError('.Folder.SharedFolderRecordFixList.sharedFolderRecordFix: array expected'); message.sharedFolderRecordFix = []; for (let i = 0; i < object.sharedFolderRecordFix.length; ++i) { - if (typeof object.sharedFolderRecordFix[i] !== "object") - throw TypeError(".Folder.SharedFolderRecordFixList.sharedFolderRecordFix: object expected"); - message.sharedFolderRecordFix[i] = $root.Folder.SharedFolderRecordFix.fromObject(object.sharedFolderRecordFix[i]); + if (typeof object.sharedFolderRecordFix[i] !== 'object') + throw TypeError('.Folder.SharedFolderRecordFixList.sharedFolderRecordFix: object expected'); + message.sharedFolderRecordFix[i] = $root.Folder.SharedFolderRecordFix.fromObject( + object.sharedFolderRecordFix[i] + ); } } return message; @@ -161127,15 +167145,16 @@ export const Folder = $root.Folder = (() => { * @returns {Object.} Plain object */ SharedFolderRecordFixList.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.sharedFolderRecordFix = []; + if (options.arrays || options.defaults) object.sharedFolderRecordFix = []; if (message.sharedFolderRecordFix && message.sharedFolderRecordFix.length) { object.sharedFolderRecordFix = []; for (let j = 0; j < message.sharedFolderRecordFix.length; ++j) - object.sharedFolderRecordFix[j] = $root.Folder.SharedFolderRecordFix.toObject(message.sharedFolderRecordFix[j], options); + object.sharedFolderRecordFix[j] = $root.Folder.SharedFolderRecordFix.toObject( + message.sharedFolderRecordFix[j], + options + ); } return object; }; @@ -161161,16 +167180,15 @@ export const Folder = $root.Folder = (() => { */ SharedFolderRecordFixList.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Folder.SharedFolderRecordFixList"; + return typeUrlPrefix + '/Folder.SharedFolderRecordFixList'; }; return SharedFolderRecordFixList; })(); - Folder.RecordRequest = (function() { - + Folder.RecordRequest = (function () { /** * Properties of a RecordRequest. * @memberof Folder @@ -161200,8 +167218,7 @@ export const Folder = $root.Folder = (() => { this.fileIds = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -161250,7 +167267,7 @@ export const Folder = $root.Folder = (() => { * @memberof Folder.RecordRequest * @instance */ - RecordRequest.prototype.howLongAgo = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + RecordRequest.prototype.howLongAgo = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * RecordRequest folderUid. @@ -161314,32 +167331,33 @@ export const Folder = $root.Folder = (() => { * @returns {$protobuf.Writer} Writer */ RecordRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); - if (message.recordType != null && Object.hasOwnProperty.call(message, "recordType")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.recordType); - if (message.recordData != null && Object.hasOwnProperty.call(message, "recordData")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.recordData); - if (message.encryptedRecordKey != null && Object.hasOwnProperty.call(message, "encryptedRecordKey")) - writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.encryptedRecordKey); - if (message.folderType != null && Object.hasOwnProperty.call(message, "folderType")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.folderType); - if (message.howLongAgo != null && Object.hasOwnProperty.call(message, "howLongAgo")) - writer.uint32(/* id 6, wireType 0 =*/48).int64(message.howLongAgo); - if (message.folderUid != null && Object.hasOwnProperty.call(message, "folderUid")) - writer.uint32(/* id 7, wireType 2 =*/58).bytes(message.folderUid); - if (message.encryptedRecordFolderKey != null && Object.hasOwnProperty.call(message, "encryptedRecordFolderKey")) - writer.uint32(/* id 8, wireType 2 =*/66).bytes(message.encryptedRecordFolderKey); - if (message.extra != null && Object.hasOwnProperty.call(message, "extra")) - writer.uint32(/* id 9, wireType 2 =*/74).bytes(message.extra); - if (message.nonSharedData != null && Object.hasOwnProperty.call(message, "nonSharedData")) - writer.uint32(/* id 10, wireType 2 =*/82).bytes(message.nonSharedData); + if (!writer) writer = $Writer.create(); + if (message.recordUid != null && Object.hasOwnProperty.call(message, 'recordUid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.recordUid); + if (message.recordType != null && Object.hasOwnProperty.call(message, 'recordType')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int32(message.recordType); + if (message.recordData != null && Object.hasOwnProperty.call(message, 'recordData')) + writer.uint32(/* id 3, wireType 2 =*/ 26).bytes(message.recordData); + if (message.encryptedRecordKey != null && Object.hasOwnProperty.call(message, 'encryptedRecordKey')) + writer.uint32(/* id 4, wireType 2 =*/ 34).bytes(message.encryptedRecordKey); + if (message.folderType != null && Object.hasOwnProperty.call(message, 'folderType')) + writer.uint32(/* id 5, wireType 0 =*/ 40).int32(message.folderType); + if (message.howLongAgo != null && Object.hasOwnProperty.call(message, 'howLongAgo')) + writer.uint32(/* id 6, wireType 0 =*/ 48).int64(message.howLongAgo); + if (message.folderUid != null && Object.hasOwnProperty.call(message, 'folderUid')) + writer.uint32(/* id 7, wireType 2 =*/ 58).bytes(message.folderUid); + if ( + message.encryptedRecordFolderKey != null && + Object.hasOwnProperty.call(message, 'encryptedRecordFolderKey') + ) + writer.uint32(/* id 8, wireType 2 =*/ 66).bytes(message.encryptedRecordFolderKey); + if (message.extra != null && Object.hasOwnProperty.call(message, 'extra')) + writer.uint32(/* id 9, wireType 2 =*/ 74).bytes(message.extra); + if (message.nonSharedData != null && Object.hasOwnProperty.call(message, 'nonSharedData')) + writer.uint32(/* id 10, wireType 2 =*/ 82).bytes(message.nonSharedData); if (message.fileIds != null && message.fileIds.length) { - writer.uint32(/* id 11, wireType 2 =*/90).fork(); - for (let i = 0; i < message.fileIds.length; ++i) - writer.int64(message.fileIds[i]); + writer.uint32(/* id 11, wireType 2 =*/ 90).fork(); + for (let i = 0; i < message.fileIds.length; ++i) writer.int64(message.fileIds[i]); writer.ldelim(); } return writer; @@ -161370,66 +167388,63 @@ export const Folder = $root.Folder = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RecordRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Folder.RecordRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Folder.RecordRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.recordUid = reader.bytes(); break; } - case 2: { + case 2: { message.recordType = reader.int32(); break; } - case 3: { + case 3: { message.recordData = reader.bytes(); break; } - case 4: { + case 4: { message.encryptedRecordKey = reader.bytes(); break; } - case 5: { + case 5: { message.folderType = reader.int32(); break; } - case 6: { + case 6: { message.howLongAgo = reader.int64(); break; } - case 7: { + case 7: { message.folderUid = reader.bytes(); break; } - case 8: { + case 8: { message.encryptedRecordFolderKey = reader.bytes(); break; } - case 9: { + case 9: { message.extra = reader.bytes(); break; } - case 10: { + case 10: { message.nonSharedData = reader.bytes(); break; } - case 11: { - if (!(message.fileIds && message.fileIds.length)) - message.fileIds = []; + case 11: { + if (!(message.fileIds && message.fileIds.length)) message.fileIds = []; if ((tag & 7) === 2) { let end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.fileIds.push(reader.int64()); - } else - message.fileIds.push(reader.int64()); + while (reader.pos < end2) message.fileIds.push(reader.int64()); + } else message.fileIds.push(reader.int64()); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -161446,8 +167461,7 @@ export const Folder = $root.Folder = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RecordRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -161460,55 +167474,98 @@ export const Folder = $root.Folder = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ RecordRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) - return "recordUid: buffer expected"; - if (message.recordType != null && message.hasOwnProperty("recordType")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.recordUid != null && message.hasOwnProperty('recordUid')) + if ( + !( + (message.recordUid && typeof message.recordUid.length === 'number') || + $util.isString(message.recordUid) + ) + ) + return 'recordUid: buffer expected'; + if (message.recordType != null && message.hasOwnProperty('recordType')) switch (message.recordType) { - default: - return "recordType: enum value expected"; - case 0: - break; + default: + return 'recordType: enum value expected'; + case 0: + break; } - if (message.recordData != null && message.hasOwnProperty("recordData")) - if (!(message.recordData && typeof message.recordData.length === "number" || $util.isString(message.recordData))) - return "recordData: buffer expected"; - if (message.encryptedRecordKey != null && message.hasOwnProperty("encryptedRecordKey")) - if (!(message.encryptedRecordKey && typeof message.encryptedRecordKey.length === "number" || $util.isString(message.encryptedRecordKey))) - return "encryptedRecordKey: buffer expected"; - if (message.folderType != null && message.hasOwnProperty("folderType")) + if (message.recordData != null && message.hasOwnProperty('recordData')) + if ( + !( + (message.recordData && typeof message.recordData.length === 'number') || + $util.isString(message.recordData) + ) + ) + return 'recordData: buffer expected'; + if (message.encryptedRecordKey != null && message.hasOwnProperty('encryptedRecordKey')) + if ( + !( + (message.encryptedRecordKey && typeof message.encryptedRecordKey.length === 'number') || + $util.isString(message.encryptedRecordKey) + ) + ) + return 'encryptedRecordKey: buffer expected'; + if (message.folderType != null && message.hasOwnProperty('folderType')) switch (message.folderType) { - default: - return "folderType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; + default: + return 'folderType: enum value expected'; + case 0: + case 1: + case 2: + case 3: + break; } - if (message.howLongAgo != null && message.hasOwnProperty("howLongAgo")) - if (!$util.isInteger(message.howLongAgo) && !(message.howLongAgo && $util.isInteger(message.howLongAgo.low) && $util.isInteger(message.howLongAgo.high))) - return "howLongAgo: integer|Long expected"; - if (message.folderUid != null && message.hasOwnProperty("folderUid")) - if (!(message.folderUid && typeof message.folderUid.length === "number" || $util.isString(message.folderUid))) - return "folderUid: buffer expected"; - if (message.encryptedRecordFolderKey != null && message.hasOwnProperty("encryptedRecordFolderKey")) - if (!(message.encryptedRecordFolderKey && typeof message.encryptedRecordFolderKey.length === "number" || $util.isString(message.encryptedRecordFolderKey))) - return "encryptedRecordFolderKey: buffer expected"; - if (message.extra != null && message.hasOwnProperty("extra")) - if (!(message.extra && typeof message.extra.length === "number" || $util.isString(message.extra))) - return "extra: buffer expected"; - if (message.nonSharedData != null && message.hasOwnProperty("nonSharedData")) - if (!(message.nonSharedData && typeof message.nonSharedData.length === "number" || $util.isString(message.nonSharedData))) - return "nonSharedData: buffer expected"; - if (message.fileIds != null && message.hasOwnProperty("fileIds")) { - if (!Array.isArray(message.fileIds)) - return "fileIds: array expected"; + if (message.howLongAgo != null && message.hasOwnProperty('howLongAgo')) + if ( + !$util.isInteger(message.howLongAgo) && + !( + message.howLongAgo && + $util.isInteger(message.howLongAgo.low) && + $util.isInteger(message.howLongAgo.high) + ) + ) + return 'howLongAgo: integer|Long expected'; + if (message.folderUid != null && message.hasOwnProperty('folderUid')) + if ( + !( + (message.folderUid && typeof message.folderUid.length === 'number') || + $util.isString(message.folderUid) + ) + ) + return 'folderUid: buffer expected'; + if (message.encryptedRecordFolderKey != null && message.hasOwnProperty('encryptedRecordFolderKey')) + if ( + !( + (message.encryptedRecordFolderKey && + typeof message.encryptedRecordFolderKey.length === 'number') || + $util.isString(message.encryptedRecordFolderKey) + ) + ) + return 'encryptedRecordFolderKey: buffer expected'; + if (message.extra != null && message.hasOwnProperty('extra')) + if (!((message.extra && typeof message.extra.length === 'number') || $util.isString(message.extra))) + return 'extra: buffer expected'; + if (message.nonSharedData != null && message.hasOwnProperty('nonSharedData')) + if ( + !( + (message.nonSharedData && typeof message.nonSharedData.length === 'number') || + $util.isString(message.nonSharedData) + ) + ) + return 'nonSharedData: buffer expected'; + if (message.fileIds != null && message.hasOwnProperty('fileIds')) { + if (!Array.isArray(message.fileIds)) return 'fileIds: array expected'; for (let i = 0; i < message.fileIds.length; ++i) - if (!$util.isInteger(message.fileIds[i]) && !(message.fileIds[i] && $util.isInteger(message.fileIds[i].low) && $util.isInteger(message.fileIds[i].high))) - return "fileIds: integer|Long[] expected"; + if ( + !$util.isInteger(message.fileIds[i]) && + !( + message.fileIds[i] && + $util.isInteger(message.fileIds[i].low) && + $util.isInteger(message.fileIds[i].high) + ) + ) + return 'fileIds: integer|Long[] expected'; } return null; }; @@ -161522,102 +167579,125 @@ export const Folder = $root.Folder = (() => { * @returns {Folder.RecordRequest} RecordRequest */ RecordRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Folder.RecordRequest) - return object; + if (object instanceof $root.Folder.RecordRequest) return object; let message = new $root.Folder.RecordRequest(); 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 (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; switch (object.recordType) { - default: - if (typeof object.recordType === "number") { - message.recordType = object.recordType; + default: + if (typeof object.recordType === 'number') { + message.recordType = object.recordType; + break; + } + break; + case 'password': + case 0: + message.recordType = 0; break; - } - break; - case "password": - case 0: - message.recordType = 0; - break; } if (object.recordData != null) - if (typeof object.recordData === "string") - $util.base64.decode(object.recordData, message.recordData = $util.newBuffer($util.base64.length(object.recordData)), 0); - else if (object.recordData.length >= 0) - message.recordData = object.recordData; + if (typeof object.recordData === 'string') + $util.base64.decode( + object.recordData, + (message.recordData = $util.newBuffer($util.base64.length(object.recordData))), + 0 + ); + else if (object.recordData.length >= 0) message.recordData = object.recordData; if (object.encryptedRecordKey != null) - if (typeof object.encryptedRecordKey === "string") - $util.base64.decode(object.encryptedRecordKey, message.encryptedRecordKey = $util.newBuffer($util.base64.length(object.encryptedRecordKey)), 0); - else if (object.encryptedRecordKey.length >= 0) - message.encryptedRecordKey = object.encryptedRecordKey; + if (typeof object.encryptedRecordKey === 'string') + $util.base64.decode( + object.encryptedRecordKey, + (message.encryptedRecordKey = $util.newBuffer($util.base64.length(object.encryptedRecordKey))), + 0 + ); + else if (object.encryptedRecordKey.length >= 0) message.encryptedRecordKey = object.encryptedRecordKey; switch (object.folderType) { - default: - if (typeof object.folderType === "number") { - message.folderType = object.folderType; - break; - } - break; - case "default_folder": - case 0: - message.folderType = 0; - break; - case "user_folder": - case 1: - message.folderType = 1; - break; - case "shared_folder": - case 2: - message.folderType = 2; - break; - case "shared_folder_folder": - case 3: - message.folderType = 3; - break; + default: + if (typeof object.folderType === 'number') { + message.folderType = object.folderType; + break; + } + break; + case 'default_folder': + case 0: + message.folderType = 0; + break; + case 'user_folder': + case 1: + message.folderType = 1; + break; + case 'shared_folder': + case 2: + message.folderType = 2; + break; + case 'shared_folder_folder': + case 3: + message.folderType = 3; + break; } if (object.howLongAgo != null) - if ($util.Long) - (message.howLongAgo = $util.Long.fromValue(object.howLongAgo)).unsigned = false; - else if (typeof object.howLongAgo === "string") - message.howLongAgo = parseInt(object.howLongAgo, 10); - else if (typeof object.howLongAgo === "number") - message.howLongAgo = object.howLongAgo; - else if (typeof object.howLongAgo === "object") - message.howLongAgo = new $util.LongBits(object.howLongAgo.low >>> 0, object.howLongAgo.high >>> 0).toNumber(); + if ($util.Long) (message.howLongAgo = $util.Long.fromValue(object.howLongAgo)).unsigned = false; + else if (typeof object.howLongAgo === 'string') message.howLongAgo = parseInt(object.howLongAgo, 10); + else if (typeof object.howLongAgo === 'number') message.howLongAgo = object.howLongAgo; + else if (typeof object.howLongAgo === 'object') + message.howLongAgo = new $util.LongBits( + object.howLongAgo.low >>> 0, + object.howLongAgo.high >>> 0 + ).toNumber(); 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 (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.encryptedRecordFolderKey != null) - if (typeof object.encryptedRecordFolderKey === "string") - $util.base64.decode(object.encryptedRecordFolderKey, message.encryptedRecordFolderKey = $util.newBuffer($util.base64.length(object.encryptedRecordFolderKey)), 0); + if (typeof object.encryptedRecordFolderKey === 'string') + $util.base64.decode( + object.encryptedRecordFolderKey, + (message.encryptedRecordFolderKey = $util.newBuffer( + $util.base64.length(object.encryptedRecordFolderKey) + )), + 0 + ); else if (object.encryptedRecordFolderKey.length >= 0) message.encryptedRecordFolderKey = object.encryptedRecordFolderKey; if (object.extra != null) - if (typeof object.extra === "string") - $util.base64.decode(object.extra, message.extra = $util.newBuffer($util.base64.length(object.extra)), 0); - else if (object.extra.length >= 0) - message.extra = object.extra; + if (typeof object.extra === 'string') + $util.base64.decode( + object.extra, + (message.extra = $util.newBuffer($util.base64.length(object.extra))), + 0 + ); + else if (object.extra.length >= 0) message.extra = object.extra; if (object.nonSharedData != null) - if (typeof object.nonSharedData === "string") - $util.base64.decode(object.nonSharedData, message.nonSharedData = $util.newBuffer($util.base64.length(object.nonSharedData)), 0); - else if (object.nonSharedData.length >= 0) - message.nonSharedData = object.nonSharedData; + if (typeof object.nonSharedData === 'string') + $util.base64.decode( + object.nonSharedData, + (message.nonSharedData = $util.newBuffer($util.base64.length(object.nonSharedData))), + 0 + ); + else if (object.nonSharedData.length >= 0) message.nonSharedData = object.nonSharedData; if (object.fileIds) { - if (!Array.isArray(object.fileIds)) - throw TypeError(".Folder.RecordRequest.fileIds: array expected"); + if (!Array.isArray(object.fileIds)) throw TypeError('.Folder.RecordRequest.fileIds: array expected'); message.fileIds = []; for (let i = 0; i < object.fileIds.length; ++i) - if ($util.Long) - (message.fileIds[i] = $util.Long.fromValue(object.fileIds[i])).unsigned = false; - else if (typeof object.fileIds[i] === "string") + if ($util.Long) (message.fileIds[i] = $util.Long.fromValue(object.fileIds[i])).unsigned = false; + else if (typeof object.fileIds[i] === 'string') message.fileIds[i] = parseInt(object.fileIds[i], 10); - else if (typeof object.fileIds[i] === "number") - message.fileIds[i] = object.fileIds[i]; - else if (typeof object.fileIds[i] === "object") - message.fileIds[i] = new $util.LongBits(object.fileIds[i].low >>> 0, object.fileIds[i].high >>> 0).toNumber(); + else if (typeof object.fileIds[i] === 'number') message.fileIds[i] = object.fileIds[i]; + else if (typeof object.fileIds[i] === 'object') + message.fileIds[i] = new $util.LongBits( + object.fileIds[i].low >>> 0, + object.fileIds[i].high >>> 0 + ).toNumber(); } return message; }; @@ -161632,99 +167712,149 @@ export const Folder = $root.Folder = (() => { * @returns {Object.} Plain object */ RecordRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.fileIds = []; + if (options.arrays || options.defaults) object.fileIds = []; if (options.defaults) { - if (options.bytes === String) - object.recordUid = ""; + if (options.bytes === String) object.recordUid = ''; else { object.recordUid = []; - if (options.bytes !== Array) - object.recordUid = $util.newBuffer(object.recordUid); + if (options.bytes !== Array) object.recordUid = $util.newBuffer(object.recordUid); } - object.recordType = options.enums === String ? "password" : 0; - if (options.bytes === String) - object.recordData = ""; + object.recordType = options.enums === String ? 'password' : 0; + if (options.bytes === String) object.recordData = ''; else { object.recordData = []; - if (options.bytes !== Array) - object.recordData = $util.newBuffer(object.recordData); + if (options.bytes !== Array) object.recordData = $util.newBuffer(object.recordData); } - if (options.bytes === String) - object.encryptedRecordKey = ""; + if (options.bytes === String) object.encryptedRecordKey = ''; else { object.encryptedRecordKey = []; - if (options.bytes !== Array) - object.encryptedRecordKey = $util.newBuffer(object.encryptedRecordKey); + if (options.bytes !== Array) object.encryptedRecordKey = $util.newBuffer(object.encryptedRecordKey); } - object.folderType = options.enums === String ? "default_folder" : 0; + object.folderType = options.enums === String ? 'default_folder' : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.howLongAgo = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.howLongAgo = options.longs === String ? "0" : 0; - if (options.bytes === String) - object.folderUid = ""; + object.howLongAgo = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.howLongAgo = options.longs === String ? '0' : 0; + if (options.bytes === String) object.folderUid = ''; else { object.folderUid = []; - if (options.bytes !== Array) - object.folderUid = $util.newBuffer(object.folderUid); + if (options.bytes !== Array) object.folderUid = $util.newBuffer(object.folderUid); } - if (options.bytes === String) - object.encryptedRecordFolderKey = ""; + if (options.bytes === String) object.encryptedRecordFolderKey = ''; else { object.encryptedRecordFolderKey = []; if (options.bytes !== Array) object.encryptedRecordFolderKey = $util.newBuffer(object.encryptedRecordFolderKey); } - if (options.bytes === String) - object.extra = ""; + if (options.bytes === String) object.extra = ''; else { object.extra = []; - if (options.bytes !== Array) - object.extra = $util.newBuffer(object.extra); + if (options.bytes !== Array) object.extra = $util.newBuffer(object.extra); } - if (options.bytes === String) - object.nonSharedData = ""; + if (options.bytes === String) object.nonSharedData = ''; else { object.nonSharedData = []; - if (options.bytes !== Array) - object.nonSharedData = $util.newBuffer(object.nonSharedData); - } - } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; - if (message.recordType != null && message.hasOwnProperty("recordType")) - object.recordType = options.enums === String ? $root.Folder.RecordType[message.recordType] === undefined ? message.recordType : $root.Folder.RecordType[message.recordType] : message.recordType; - if (message.recordData != null && message.hasOwnProperty("recordData")) - object.recordData = options.bytes === String ? $util.base64.encode(message.recordData, 0, message.recordData.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordData) : message.recordData; - if (message.encryptedRecordKey != null && message.hasOwnProperty("encryptedRecordKey")) - object.encryptedRecordKey = options.bytes === String ? $util.base64.encode(message.encryptedRecordKey, 0, message.encryptedRecordKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedRecordKey) : message.encryptedRecordKey; - if (message.folderType != null && message.hasOwnProperty("folderType")) - object.folderType = options.enums === String ? $root.Folder.FolderType[message.folderType] === undefined ? message.folderType : $root.Folder.FolderType[message.folderType] : message.folderType; - if (message.howLongAgo != null && message.hasOwnProperty("howLongAgo")) - if (typeof message.howLongAgo === "number") + if (options.bytes !== Array) object.nonSharedData = $util.newBuffer(object.nonSharedData); + } + } + if (message.recordUid != null && message.hasOwnProperty('recordUid')) + object.recordUid = + options.bytes === String + ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.recordUid) + : message.recordUid; + if (message.recordType != null && message.hasOwnProperty('recordType')) + object.recordType = + options.enums === String + ? $root.Folder.RecordType[message.recordType] === undefined + ? message.recordType + : $root.Folder.RecordType[message.recordType] + : message.recordType; + if (message.recordData != null && message.hasOwnProperty('recordData')) + object.recordData = + options.bytes === String + ? $util.base64.encode(message.recordData, 0, message.recordData.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.recordData) + : message.recordData; + if (message.encryptedRecordKey != null && message.hasOwnProperty('encryptedRecordKey')) + object.encryptedRecordKey = + options.bytes === String + ? $util.base64.encode(message.encryptedRecordKey, 0, message.encryptedRecordKey.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.encryptedRecordKey) + : message.encryptedRecordKey; + if (message.folderType != null && message.hasOwnProperty('folderType')) + object.folderType = + options.enums === String + ? $root.Folder.FolderType[message.folderType] === undefined + ? message.folderType + : $root.Folder.FolderType[message.folderType] + : message.folderType; + if (message.howLongAgo != null && message.hasOwnProperty('howLongAgo')) + if (typeof message.howLongAgo === 'number') object.howLongAgo = options.longs === String ? String(message.howLongAgo) : message.howLongAgo; else - object.howLongAgo = options.longs === String ? $util.Long.prototype.toString.call(message.howLongAgo) : options.longs === Number ? new $util.LongBits(message.howLongAgo.low >>> 0, message.howLongAgo.high >>> 0).toNumber() : message.howLongAgo; - if (message.folderUid != null && message.hasOwnProperty("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.encryptedRecordFolderKey != null && message.hasOwnProperty("encryptedRecordFolderKey")) - object.encryptedRecordFolderKey = options.bytes === String ? $util.base64.encode(message.encryptedRecordFolderKey, 0, message.encryptedRecordFolderKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedRecordFolderKey) : message.encryptedRecordFolderKey; - if (message.extra != null && message.hasOwnProperty("extra")) - object.extra = options.bytes === String ? $util.base64.encode(message.extra, 0, message.extra.length) : options.bytes === Array ? Array.prototype.slice.call(message.extra) : message.extra; - if (message.nonSharedData != null && message.hasOwnProperty("nonSharedData")) - object.nonSharedData = options.bytes === String ? $util.base64.encode(message.nonSharedData, 0, message.nonSharedData.length) : options.bytes === Array ? Array.prototype.slice.call(message.nonSharedData) : message.nonSharedData; + object.howLongAgo = + options.longs === String + ? $util.Long.prototype.toString.call(message.howLongAgo) + : options.longs === Number + ? new $util.LongBits( + message.howLongAgo.low >>> 0, + message.howLongAgo.high >>> 0 + ).toNumber() + : message.howLongAgo; + if (message.folderUid != null && message.hasOwnProperty('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.encryptedRecordFolderKey != null && message.hasOwnProperty('encryptedRecordFolderKey')) + object.encryptedRecordFolderKey = + options.bytes === String + ? $util.base64.encode( + message.encryptedRecordFolderKey, + 0, + message.encryptedRecordFolderKey.length + ) + : options.bytes === Array + ? Array.prototype.slice.call(message.encryptedRecordFolderKey) + : message.encryptedRecordFolderKey; + if (message.extra != null && message.hasOwnProperty('extra')) + object.extra = + options.bytes === String + ? $util.base64.encode(message.extra, 0, message.extra.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.extra) + : message.extra; + if (message.nonSharedData != null && message.hasOwnProperty('nonSharedData')) + object.nonSharedData = + options.bytes === String + ? $util.base64.encode(message.nonSharedData, 0, message.nonSharedData.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.nonSharedData) + : message.nonSharedData; if (message.fileIds && message.fileIds.length) { object.fileIds = []; for (let j = 0; j < message.fileIds.length; ++j) - if (typeof message.fileIds[j] === "number") + if (typeof message.fileIds[j] === 'number') object.fileIds[j] = options.longs === String ? String(message.fileIds[j]) : message.fileIds[j]; else - object.fileIds[j] = options.longs === String ? $util.Long.prototype.toString.call(message.fileIds[j]) : options.longs === Number ? new $util.LongBits(message.fileIds[j].low >>> 0, message.fileIds[j].high >>> 0).toNumber() : message.fileIds[j]; + object.fileIds[j] = + options.longs === String + ? $util.Long.prototype.toString.call(message.fileIds[j]) + : options.longs === Number + ? new $util.LongBits( + message.fileIds[j].low >>> 0, + message.fileIds[j].high >>> 0 + ).toNumber() + : message.fileIds[j]; } return object; }; @@ -161750,16 +167880,15 @@ export const Folder = $root.Folder = (() => { */ RecordRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Folder.RecordRequest"; + return typeUrlPrefix + '/Folder.RecordRequest'; }; return RecordRequest; })(); - Folder.RecordResponse = (function() { - + Folder.RecordResponse = (function () { /** * Properties of a RecordResponse. * @memberof Folder @@ -161780,8 +167909,7 @@ export const Folder = $root.Folder = (() => { function RecordResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -161798,7 +167926,7 @@ export const Folder = $root.Folder = (() => { * @memberof Folder.RecordResponse * @instance */ - RecordResponse.prototype.revision = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + RecordResponse.prototype.revision = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * RecordResponse status. @@ -161806,7 +167934,7 @@ export const Folder = $root.Folder = (() => { * @memberof Folder.RecordResponse * @instance */ - RecordResponse.prototype.status = ""; + RecordResponse.prototype.status = ''; /** * Creates a new RecordResponse instance using the specified properties. @@ -161830,14 +167958,13 @@ export const Folder = $root.Folder = (() => { * @returns {$protobuf.Writer} Writer */ RecordResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); - if (message.revision != null && Object.hasOwnProperty.call(message, "revision")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.revision); - if (message.status != null && Object.hasOwnProperty.call(message, "status")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.status); + if (!writer) writer = $Writer.create(); + if (message.recordUid != null && Object.hasOwnProperty.call(message, 'recordUid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.recordUid); + if (message.revision != null && Object.hasOwnProperty.call(message, 'revision')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int64(message.revision); + if (message.status != null && Object.hasOwnProperty.call(message, 'status')) + writer.uint32(/* id 3, wireType 2 =*/ 26).string(message.status); return writer; }; @@ -161866,27 +167993,27 @@ export const Folder = $root.Folder = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RecordResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Folder.RecordResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Folder.RecordResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.recordUid = reader.bytes(); break; } - case 2: { + case 2: { message.revision = reader.int64(); break; } - case 3: { + case 3: { message.status = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -161903,8 +168030,7 @@ export const Folder = $root.Folder = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RecordResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -161917,17 +168043,27 @@ export const Folder = $root.Folder = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ RecordResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) - return "recordUid: buffer expected"; - if (message.revision != null && message.hasOwnProperty("revision")) - if (!$util.isInteger(message.revision) && !(message.revision && $util.isInteger(message.revision.low) && $util.isInteger(message.revision.high))) - return "revision: integer|Long expected"; - if (message.status != null && message.hasOwnProperty("status")) - if (!$util.isString(message.status)) - return "status: string expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.recordUid != null && message.hasOwnProperty('recordUid')) + if ( + !( + (message.recordUid && typeof message.recordUid.length === 'number') || + $util.isString(message.recordUid) + ) + ) + return 'recordUid: buffer expected'; + if (message.revision != null && message.hasOwnProperty('revision')) + if ( + !$util.isInteger(message.revision) && + !( + message.revision && + $util.isInteger(message.revision.low) && + $util.isInteger(message.revision.high) + ) + ) + return 'revision: integer|Long expected'; + if (message.status != null && message.hasOwnProperty('status')) + if (!$util.isString(message.status)) return 'status: string expected'; return null; }; @@ -161940,25 +168076,26 @@ export const Folder = $root.Folder = (() => { * @returns {Folder.RecordResponse} RecordResponse */ RecordResponse.fromObject = function fromObject(object) { - if (object instanceof $root.Folder.RecordResponse) - return object; + if (object instanceof $root.Folder.RecordResponse) return object; let message = new $root.Folder.RecordResponse(); 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 (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.revision != null) - if ($util.Long) - (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; - else if (typeof object.revision === "string") - message.revision = parseInt(object.revision, 10); - else if (typeof object.revision === "number") - message.revision = object.revision; - else if (typeof object.revision === "object") - message.revision = new $util.LongBits(object.revision.low >>> 0, object.revision.high >>> 0).toNumber(); - if (object.status != null) - message.status = String(object.status); + if ($util.Long) (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; + else if (typeof object.revision === 'string') message.revision = parseInt(object.revision, 10); + else if (typeof object.revision === 'number') message.revision = object.revision; + else if (typeof object.revision === 'object') + message.revision = new $util.LongBits( + object.revision.low >>> 0, + object.revision.high >>> 0 + ).toNumber(); + if (object.status != null) message.status = String(object.status); return message; }; @@ -161972,33 +168109,39 @@ export const Folder = $root.Folder = (() => { * @returns {Object.} Plain object */ RecordResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.recordUid = ""; + if (options.bytes === String) object.recordUid = ''; else { object.recordUid = []; - if (options.bytes !== Array) - object.recordUid = $util.newBuffer(object.recordUid); + if (options.bytes !== Array) object.recordUid = $util.newBuffer(object.recordUid); } if ($util.Long) { let long = new $util.Long(0, 0, false); - object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.revision = options.longs === String ? "0" : 0; - object.status = ""; - } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; - if (message.revision != null && message.hasOwnProperty("revision")) - if (typeof message.revision === "number") + object.revision = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.revision = options.longs === String ? '0' : 0; + object.status = ''; + } + if (message.recordUid != null && message.hasOwnProperty('recordUid')) + object.recordUid = + options.bytes === String + ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.recordUid) + : message.recordUid; + if (message.revision != null && message.hasOwnProperty('revision')) + if (typeof message.revision === 'number') object.revision = options.longs === String ? String(message.revision) : message.revision; else - object.revision = options.longs === String ? $util.Long.prototype.toString.call(message.revision) : options.longs === Number ? new $util.LongBits(message.revision.low >>> 0, message.revision.high >>> 0).toNumber() : message.revision; - if (message.status != null && message.hasOwnProperty("status")) - object.status = message.status; + object.revision = + options.longs === String + ? $util.Long.prototype.toString.call(message.revision) + : options.longs === Number + ? new $util.LongBits(message.revision.low >>> 0, message.revision.high >>> 0).toNumber() + : message.revision; + if (message.status != null && message.hasOwnProperty('status')) object.status = message.status; return object; }; @@ -162023,16 +168166,15 @@ export const Folder = $root.Folder = (() => { */ RecordResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Folder.RecordResponse"; + return typeUrlPrefix + '/Folder.RecordResponse'; }; return RecordResponse; })(); - Folder.SharedFolderFields = (function() { - + Folder.SharedFolderFields = (function () { /** * Properties of a SharedFolderFields. * @memberof Folder @@ -162055,8 +168197,7 @@ export const Folder = $root.Folder = (() => { function SharedFolderFields(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -162121,18 +168262,17 @@ export const Folder = $root.Folder = (() => { * @returns {$protobuf.Writer} Writer */ SharedFolderFields.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.encryptedFolderName != null && Object.hasOwnProperty.call(message, "encryptedFolderName")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.encryptedFolderName); - if (message.manageUsers != null && Object.hasOwnProperty.call(message, "manageUsers")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.manageUsers); - if (message.manageRecords != null && Object.hasOwnProperty.call(message, "manageRecords")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.manageRecords); - if (message.canEdit != null && Object.hasOwnProperty.call(message, "canEdit")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.canEdit); - if (message.canShare != null && Object.hasOwnProperty.call(message, "canShare")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.canShare); + if (!writer) writer = $Writer.create(); + if (message.encryptedFolderName != null && Object.hasOwnProperty.call(message, 'encryptedFolderName')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.encryptedFolderName); + if (message.manageUsers != null && Object.hasOwnProperty.call(message, 'manageUsers')) + writer.uint32(/* id 2, wireType 0 =*/ 16).bool(message.manageUsers); + if (message.manageRecords != null && Object.hasOwnProperty.call(message, 'manageRecords')) + writer.uint32(/* id 3, wireType 0 =*/ 24).bool(message.manageRecords); + if (message.canEdit != null && Object.hasOwnProperty.call(message, 'canEdit')) + writer.uint32(/* id 4, wireType 0 =*/ 32).bool(message.canEdit); + if (message.canShare != null && Object.hasOwnProperty.call(message, 'canShare')) + writer.uint32(/* id 5, wireType 0 =*/ 40).bool(message.canShare); return writer; }; @@ -162161,35 +168301,35 @@ export const Folder = $root.Folder = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SharedFolderFields.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Folder.SharedFolderFields(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Folder.SharedFolderFields(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.encryptedFolderName = reader.bytes(); break; } - case 2: { + case 2: { message.manageUsers = reader.bool(); break; } - case 3: { + case 3: { message.manageRecords = reader.bool(); break; } - case 4: { + case 4: { message.canEdit = reader.bool(); break; } - case 5: { + case 5: { message.canShare = reader.bool(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -162206,8 +168346,7 @@ export const Folder = $root.Folder = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SharedFolderFields.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -162220,23 +168359,23 @@ export const Folder = $root.Folder = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ SharedFolderFields.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.encryptedFolderName != null && message.hasOwnProperty("encryptedFolderName")) - if (!(message.encryptedFolderName && typeof message.encryptedFolderName.length === "number" || $util.isString(message.encryptedFolderName))) - return "encryptedFolderName: buffer expected"; - if (message.manageUsers != null && message.hasOwnProperty("manageUsers")) - if (typeof message.manageUsers !== "boolean") - return "manageUsers: boolean expected"; - if (message.manageRecords != null && message.hasOwnProperty("manageRecords")) - if (typeof message.manageRecords !== "boolean") - return "manageRecords: boolean expected"; - if (message.canEdit != null && message.hasOwnProperty("canEdit")) - if (typeof message.canEdit !== "boolean") - return "canEdit: boolean expected"; - if (message.canShare != null && message.hasOwnProperty("canShare")) - if (typeof message.canShare !== "boolean") - return "canShare: boolean expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.encryptedFolderName != null && message.hasOwnProperty('encryptedFolderName')) + if ( + !( + (message.encryptedFolderName && typeof message.encryptedFolderName.length === 'number') || + $util.isString(message.encryptedFolderName) + ) + ) + return 'encryptedFolderName: buffer expected'; + if (message.manageUsers != null && message.hasOwnProperty('manageUsers')) + if (typeof message.manageUsers !== 'boolean') return 'manageUsers: boolean expected'; + if (message.manageRecords != null && message.hasOwnProperty('manageRecords')) + if (typeof message.manageRecords !== 'boolean') return 'manageRecords: boolean expected'; + if (message.canEdit != null && message.hasOwnProperty('canEdit')) + if (typeof message.canEdit !== 'boolean') return 'canEdit: boolean expected'; + if (message.canShare != null && message.hasOwnProperty('canShare')) + if (typeof message.canShare !== 'boolean') return 'canShare: boolean expected'; return null; }; @@ -162249,22 +168388,23 @@ export const Folder = $root.Folder = (() => { * @returns {Folder.SharedFolderFields} SharedFolderFields */ SharedFolderFields.fromObject = function fromObject(object) { - if (object instanceof $root.Folder.SharedFolderFields) - return object; + if (object instanceof $root.Folder.SharedFolderFields) return object; let message = new $root.Folder.SharedFolderFields(); if (object.encryptedFolderName != null) - if (typeof object.encryptedFolderName === "string") - $util.base64.decode(object.encryptedFolderName, message.encryptedFolderName = $util.newBuffer($util.base64.length(object.encryptedFolderName)), 0); + if (typeof object.encryptedFolderName === 'string') + $util.base64.decode( + object.encryptedFolderName, + (message.encryptedFolderName = $util.newBuffer( + $util.base64.length(object.encryptedFolderName) + )), + 0 + ); else if (object.encryptedFolderName.length >= 0) message.encryptedFolderName = object.encryptedFolderName; - if (object.manageUsers != null) - message.manageUsers = Boolean(object.manageUsers); - if (object.manageRecords != null) - message.manageRecords = Boolean(object.manageRecords); - if (object.canEdit != null) - message.canEdit = Boolean(object.canEdit); - if (object.canShare != null) - message.canShare = Boolean(object.canShare); + if (object.manageUsers != null) message.manageUsers = Boolean(object.manageUsers); + if (object.manageRecords != null) message.manageRecords = Boolean(object.manageRecords); + if (object.canEdit != null) message.canEdit = Boolean(object.canEdit); + if (object.canShare != null) message.canShare = Boolean(object.canShare); return message; }; @@ -162278,12 +168418,10 @@ export const Folder = $root.Folder = (() => { * @returns {Object.} Plain object */ SharedFolderFields.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.encryptedFolderName = ""; + if (options.bytes === String) object.encryptedFolderName = ''; else { object.encryptedFolderName = []; if (options.bytes !== Array) @@ -162294,16 +168432,19 @@ export const Folder = $root.Folder = (() => { object.canEdit = false; object.canShare = false; } - if (message.encryptedFolderName != null && message.hasOwnProperty("encryptedFolderName")) - object.encryptedFolderName = options.bytes === String ? $util.base64.encode(message.encryptedFolderName, 0, message.encryptedFolderName.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedFolderName) : message.encryptedFolderName; - if (message.manageUsers != null && message.hasOwnProperty("manageUsers")) + if (message.encryptedFolderName != null && message.hasOwnProperty('encryptedFolderName')) + object.encryptedFolderName = + options.bytes === String + ? $util.base64.encode(message.encryptedFolderName, 0, message.encryptedFolderName.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.encryptedFolderName) + : message.encryptedFolderName; + if (message.manageUsers != null && message.hasOwnProperty('manageUsers')) object.manageUsers = message.manageUsers; - if (message.manageRecords != null && message.hasOwnProperty("manageRecords")) + if (message.manageRecords != null && message.hasOwnProperty('manageRecords')) object.manageRecords = message.manageRecords; - if (message.canEdit != null && message.hasOwnProperty("canEdit")) - object.canEdit = message.canEdit; - if (message.canShare != null && message.hasOwnProperty("canShare")) - object.canShare = message.canShare; + if (message.canEdit != null && message.hasOwnProperty('canEdit')) object.canEdit = message.canEdit; + if (message.canShare != null && message.hasOwnProperty('canShare')) object.canShare = message.canShare; return object; }; @@ -162328,16 +168469,15 @@ export const Folder = $root.Folder = (() => { */ SharedFolderFields.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Folder.SharedFolderFields"; + return typeUrlPrefix + '/Folder.SharedFolderFields'; }; return SharedFolderFields; })(); - Folder.SharedFolderFolderFields = (function() { - + Folder.SharedFolderFolderFields = (function () { /** * Properties of a SharedFolderFolderFields. * @memberof Folder @@ -162356,8 +168496,7 @@ export const Folder = $root.Folder = (() => { function SharedFolderFolderFields(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -162390,10 +168529,9 @@ export const Folder = $root.Folder = (() => { * @returns {$protobuf.Writer} Writer */ SharedFolderFolderFields.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, "sharedFolderUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.sharedFolderUid); + if (!writer) writer = $Writer.create(); + if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, 'sharedFolderUid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.sharedFolderUid); return writer; }; @@ -162422,19 +168560,19 @@ export const Folder = $root.Folder = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SharedFolderFolderFields.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Folder.SharedFolderFolderFields(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Folder.SharedFolderFolderFields(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.sharedFolderUid = reader.bytes(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -162451,8 +168589,7 @@ export const Folder = $root.Folder = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SharedFolderFolderFields.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -162465,11 +168602,15 @@ export const Folder = $root.Folder = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ SharedFolderFolderFields.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) - if (!(message.sharedFolderUid && typeof message.sharedFolderUid.length === "number" || $util.isString(message.sharedFolderUid))) - return "sharedFolderUid: buffer expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.sharedFolderUid != null && message.hasOwnProperty('sharedFolderUid')) + if ( + !( + (message.sharedFolderUid && typeof message.sharedFolderUid.length === 'number') || + $util.isString(message.sharedFolderUid) + ) + ) + return 'sharedFolderUid: buffer expected'; return null; }; @@ -162482,14 +168623,16 @@ export const Folder = $root.Folder = (() => { * @returns {Folder.SharedFolderFolderFields} SharedFolderFolderFields */ SharedFolderFolderFields.fromObject = function fromObject(object) { - if (object instanceof $root.Folder.SharedFolderFolderFields) - return object; + if (object instanceof $root.Folder.SharedFolderFolderFields) return object; let message = new $root.Folder.SharedFolderFolderFields(); if (object.sharedFolderUid != null) - if (typeof object.sharedFolderUid === "string") - $util.base64.decode(object.sharedFolderUid, message.sharedFolderUid = $util.newBuffer($util.base64.length(object.sharedFolderUid)), 0); - else if (object.sharedFolderUid.length >= 0) - message.sharedFolderUid = object.sharedFolderUid; + if (typeof object.sharedFolderUid === 'string') + $util.base64.decode( + object.sharedFolderUid, + (message.sharedFolderUid = $util.newBuffer($util.base64.length(object.sharedFolderUid))), + 0 + ); + else if (object.sharedFolderUid.length >= 0) message.sharedFolderUid = object.sharedFolderUid; return message; }; @@ -162503,19 +168646,21 @@ export const Folder = $root.Folder = (() => { * @returns {Object.} Plain object */ SharedFolderFolderFields.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) - if (options.bytes === String) - object.sharedFolderUid = ""; + if (options.bytes === String) object.sharedFolderUid = ''; else { object.sharedFolderUid = []; - if (options.bytes !== Array) - object.sharedFolderUid = $util.newBuffer(object.sharedFolderUid); + if (options.bytes !== Array) object.sharedFolderUid = $util.newBuffer(object.sharedFolderUid); } - if (message.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) - object.sharedFolderUid = options.bytes === String ? $util.base64.encode(message.sharedFolderUid, 0, message.sharedFolderUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.sharedFolderUid) : message.sharedFolderUid; + if (message.sharedFolderUid != null && message.hasOwnProperty('sharedFolderUid')) + object.sharedFolderUid = + options.bytes === String + ? $util.base64.encode(message.sharedFolderUid, 0, message.sharedFolderUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.sharedFolderUid) + : message.sharedFolderUid; return object; }; @@ -162540,16 +168685,15 @@ export const Folder = $root.Folder = (() => { */ SharedFolderFolderFields.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Folder.SharedFolderFolderFields"; + return typeUrlPrefix + '/Folder.SharedFolderFolderFields'; }; return SharedFolderFolderFields; })(); - Folder.FolderRequest = (function() { - + Folder.FolderRequest = (function () { /** * Properties of a FolderRequest. * @memberof Folder @@ -162574,8 +168718,7 @@ export const Folder = $root.Folder = (() => { function FolderRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -162656,22 +168799,30 @@ export const Folder = $root.Folder = (() => { * @returns {$protobuf.Writer} Writer */ FolderRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.folderUid != null && Object.hasOwnProperty.call(message, "folderUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.folderUid); - if (message.folderType != null && Object.hasOwnProperty.call(message, "folderType")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.folderType); - if (message.parentFolderUid != null && Object.hasOwnProperty.call(message, "parentFolderUid")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.parentFolderUid); - if (message.folderData != null && Object.hasOwnProperty.call(message, "folderData")) - writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.folderData); - if (message.encryptedFolderKey != null && Object.hasOwnProperty.call(message, "encryptedFolderKey")) - writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.encryptedFolderKey); - if (message.sharedFolderFields != null && Object.hasOwnProperty.call(message, "sharedFolderFields")) - $root.Folder.SharedFolderFields.encode(message.sharedFolderFields, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.sharedFolderFolderFields != null && Object.hasOwnProperty.call(message, "sharedFolderFolderFields")) - $root.Folder.SharedFolderFolderFields.encode(message.sharedFolderFolderFields, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (!writer) writer = $Writer.create(); + if (message.folderUid != null && Object.hasOwnProperty.call(message, 'folderUid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.folderUid); + if (message.folderType != null && Object.hasOwnProperty.call(message, 'folderType')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int32(message.folderType); + if (message.parentFolderUid != null && Object.hasOwnProperty.call(message, 'parentFolderUid')) + writer.uint32(/* id 3, wireType 2 =*/ 26).bytes(message.parentFolderUid); + if (message.folderData != null && Object.hasOwnProperty.call(message, 'folderData')) + writer.uint32(/* id 4, wireType 2 =*/ 34).bytes(message.folderData); + if (message.encryptedFolderKey != null && Object.hasOwnProperty.call(message, 'encryptedFolderKey')) + writer.uint32(/* id 5, wireType 2 =*/ 42).bytes(message.encryptedFolderKey); + if (message.sharedFolderFields != null && Object.hasOwnProperty.call(message, 'sharedFolderFields')) + $root.Folder.SharedFolderFields.encode( + message.sharedFolderFields, + writer.uint32(/* id 6, wireType 2 =*/ 50).fork() + ).ldelim(); + if ( + message.sharedFolderFolderFields != null && + Object.hasOwnProperty.call(message, 'sharedFolderFolderFields') + ) + $root.Folder.SharedFolderFolderFields.encode( + message.sharedFolderFolderFields, + writer.uint32(/* id 7, wireType 2 =*/ 58).fork() + ).ldelim(); return writer; }; @@ -162700,43 +168851,46 @@ export const Folder = $root.Folder = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ FolderRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Folder.FolderRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Folder.FolderRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.folderUid = reader.bytes(); break; } - case 2: { + case 2: { message.folderType = reader.int32(); break; } - case 3: { + case 3: { message.parentFolderUid = reader.bytes(); break; } - case 4: { + case 4: { message.folderData = reader.bytes(); break; } - case 5: { + case 5: { message.encryptedFolderKey = reader.bytes(); break; } - case 6: { + case 6: { message.sharedFolderFields = $root.Folder.SharedFolderFields.decode(reader, reader.uint32()); break; } - case 7: { - message.sharedFolderFolderFields = $root.Folder.SharedFolderFolderFields.decode(reader, reader.uint32()); + case 7: { + message.sharedFolderFolderFields = $root.Folder.SharedFolderFolderFields.decode( + reader, + reader.uint32() + ); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -162753,8 +168907,7 @@ export const Folder = $root.Folder = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ FolderRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -162767,39 +168920,56 @@ export const Folder = $root.Folder = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ FolderRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.folderUid != null && message.hasOwnProperty("folderUid")) - if (!(message.folderUid && typeof message.folderUid.length === "number" || $util.isString(message.folderUid))) - return "folderUid: buffer expected"; - if (message.folderType != null && message.hasOwnProperty("folderType")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.folderUid != null && message.hasOwnProperty('folderUid')) + if ( + !( + (message.folderUid && typeof message.folderUid.length === 'number') || + $util.isString(message.folderUid) + ) + ) + return 'folderUid: buffer expected'; + if (message.folderType != null && message.hasOwnProperty('folderType')) switch (message.folderType) { - default: - return "folderType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; + default: + return 'folderType: enum value expected'; + case 0: + case 1: + case 2: + case 3: + break; } - if (message.parentFolderUid != null && message.hasOwnProperty("parentFolderUid")) - if (!(message.parentFolderUid && typeof message.parentFolderUid.length === "number" || $util.isString(message.parentFolderUid))) - return "parentFolderUid: buffer expected"; - if (message.folderData != null && message.hasOwnProperty("folderData")) - if (!(message.folderData && typeof message.folderData.length === "number" || $util.isString(message.folderData))) - return "folderData: buffer expected"; - if (message.encryptedFolderKey != null && message.hasOwnProperty("encryptedFolderKey")) - if (!(message.encryptedFolderKey && typeof message.encryptedFolderKey.length === "number" || $util.isString(message.encryptedFolderKey))) - return "encryptedFolderKey: buffer expected"; - if (message.sharedFolderFields != null && message.hasOwnProperty("sharedFolderFields")) { + if (message.parentFolderUid != null && message.hasOwnProperty('parentFolderUid')) + if ( + !( + (message.parentFolderUid && typeof message.parentFolderUid.length === 'number') || + $util.isString(message.parentFolderUid) + ) + ) + return 'parentFolderUid: buffer expected'; + if (message.folderData != null && message.hasOwnProperty('folderData')) + if ( + !( + (message.folderData && typeof message.folderData.length === 'number') || + $util.isString(message.folderData) + ) + ) + return 'folderData: buffer expected'; + if (message.encryptedFolderKey != null && message.hasOwnProperty('encryptedFolderKey')) + if ( + !( + (message.encryptedFolderKey && typeof message.encryptedFolderKey.length === 'number') || + $util.isString(message.encryptedFolderKey) + ) + ) + return 'encryptedFolderKey: buffer expected'; + if (message.sharedFolderFields != null && message.hasOwnProperty('sharedFolderFields')) { let error = $root.Folder.SharedFolderFields.verify(message.sharedFolderFields); - if (error) - return "sharedFolderFields." + error; + if (error) return 'sharedFolderFields.' + error; } - if (message.sharedFolderFolderFields != null && message.hasOwnProperty("sharedFolderFolderFields")) { + if (message.sharedFolderFolderFields != null && message.hasOwnProperty('sharedFolderFolderFields')) { let error = $root.Folder.SharedFolderFolderFields.verify(message.sharedFolderFolderFields); - if (error) - return "sharedFolderFolderFields." + error; + if (error) return 'sharedFolderFolderFields.' + error; } return null; }; @@ -162813,62 +168983,75 @@ export const Folder = $root.Folder = (() => { * @returns {Folder.FolderRequest} FolderRequest */ FolderRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Folder.FolderRequest) - return object; + if (object instanceof $root.Folder.FolderRequest) return object; let message = new $root.Folder.FolderRequest(); 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 (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; switch (object.folderType) { - default: - if (typeof object.folderType === "number") { - message.folderType = object.folderType; - break; - } - break; - case "default_folder": - case 0: - message.folderType = 0; - break; - case "user_folder": - case 1: - message.folderType = 1; - break; - case "shared_folder": - case 2: - message.folderType = 2; - break; - case "shared_folder_folder": - case 3: - message.folderType = 3; - break; + default: + if (typeof object.folderType === 'number') { + message.folderType = object.folderType; + break; + } + break; + case 'default_folder': + case 0: + message.folderType = 0; + break; + case 'user_folder': + case 1: + message.folderType = 1; + break; + case 'shared_folder': + case 2: + message.folderType = 2; + break; + case 'shared_folder_folder': + case 3: + message.folderType = 3; + break; } if (object.parentFolderUid != null) - if (typeof object.parentFolderUid === "string") - $util.base64.decode(object.parentFolderUid, message.parentFolderUid = $util.newBuffer($util.base64.length(object.parentFolderUid)), 0); - else if (object.parentFolderUid.length >= 0) - message.parentFolderUid = object.parentFolderUid; + if (typeof object.parentFolderUid === 'string') + $util.base64.decode( + object.parentFolderUid, + (message.parentFolderUid = $util.newBuffer($util.base64.length(object.parentFolderUid))), + 0 + ); + else if (object.parentFolderUid.length >= 0) message.parentFolderUid = object.parentFolderUid; if (object.folderData != null) - if (typeof object.folderData === "string") - $util.base64.decode(object.folderData, message.folderData = $util.newBuffer($util.base64.length(object.folderData)), 0); - else if (object.folderData.length >= 0) - message.folderData = object.folderData; + if (typeof object.folderData === 'string') + $util.base64.decode( + object.folderData, + (message.folderData = $util.newBuffer($util.base64.length(object.folderData))), + 0 + ); + else if (object.folderData.length >= 0) message.folderData = object.folderData; if (object.encryptedFolderKey != null) - if (typeof object.encryptedFolderKey === "string") - $util.base64.decode(object.encryptedFolderKey, message.encryptedFolderKey = $util.newBuffer($util.base64.length(object.encryptedFolderKey)), 0); - else if (object.encryptedFolderKey.length >= 0) - message.encryptedFolderKey = object.encryptedFolderKey; + if (typeof object.encryptedFolderKey === 'string') + $util.base64.decode( + object.encryptedFolderKey, + (message.encryptedFolderKey = $util.newBuffer($util.base64.length(object.encryptedFolderKey))), + 0 + ); + else if (object.encryptedFolderKey.length >= 0) message.encryptedFolderKey = object.encryptedFolderKey; if (object.sharedFolderFields != null) { - if (typeof object.sharedFolderFields !== "object") - throw TypeError(".Folder.FolderRequest.sharedFolderFields: object expected"); + if (typeof object.sharedFolderFields !== 'object') + throw TypeError('.Folder.FolderRequest.sharedFolderFields: object expected'); message.sharedFolderFields = $root.Folder.SharedFolderFields.fromObject(object.sharedFolderFields); } if (object.sharedFolderFolderFields != null) { - if (typeof object.sharedFolderFolderFields !== "object") - throw TypeError(".Folder.FolderRequest.sharedFolderFolderFields: object expected"); - message.sharedFolderFolderFields = $root.Folder.SharedFolderFolderFields.fromObject(object.sharedFolderFolderFields); + if (typeof object.sharedFolderFolderFields !== 'object') + throw TypeError('.Folder.FolderRequest.sharedFolderFolderFields: object expected'); + message.sharedFolderFolderFields = $root.Folder.SharedFolderFolderFields.fromObject( + object.sharedFolderFolderFields + ); } return message; }; @@ -162883,56 +169066,78 @@ export const Folder = $root.Folder = (() => { * @returns {Object.} Plain object */ FolderRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.folderUid = ""; + if (options.bytes === String) object.folderUid = ''; else { object.folderUid = []; - if (options.bytes !== Array) - object.folderUid = $util.newBuffer(object.folderUid); + if (options.bytes !== Array) object.folderUid = $util.newBuffer(object.folderUid); } - object.folderType = options.enums === String ? "default_folder" : 0; - if (options.bytes === String) - object.parentFolderUid = ""; + object.folderType = options.enums === String ? 'default_folder' : 0; + if (options.bytes === String) object.parentFolderUid = ''; else { object.parentFolderUid = []; - if (options.bytes !== Array) - object.parentFolderUid = $util.newBuffer(object.parentFolderUid); + if (options.bytes !== Array) object.parentFolderUid = $util.newBuffer(object.parentFolderUid); } - if (options.bytes === String) - object.folderData = ""; + if (options.bytes === String) object.folderData = ''; else { object.folderData = []; - if (options.bytes !== Array) - object.folderData = $util.newBuffer(object.folderData); + if (options.bytes !== Array) object.folderData = $util.newBuffer(object.folderData); } - if (options.bytes === String) - object.encryptedFolderKey = ""; + if (options.bytes === String) object.encryptedFolderKey = ''; else { object.encryptedFolderKey = []; - if (options.bytes !== Array) - object.encryptedFolderKey = $util.newBuffer(object.encryptedFolderKey); + if (options.bytes !== Array) object.encryptedFolderKey = $util.newBuffer(object.encryptedFolderKey); } object.sharedFolderFields = null; object.sharedFolderFolderFields = null; } - if (message.folderUid != null && message.hasOwnProperty("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.folderType != null && message.hasOwnProperty("folderType")) - object.folderType = options.enums === String ? $root.Folder.FolderType[message.folderType] === undefined ? message.folderType : $root.Folder.FolderType[message.folderType] : message.folderType; - if (message.parentFolderUid != null && message.hasOwnProperty("parentFolderUid")) - object.parentFolderUid = options.bytes === String ? $util.base64.encode(message.parentFolderUid, 0, message.parentFolderUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.parentFolderUid) : message.parentFolderUid; - if (message.folderData != null && message.hasOwnProperty("folderData")) - object.folderData = options.bytes === String ? $util.base64.encode(message.folderData, 0, message.folderData.length) : options.bytes === Array ? Array.prototype.slice.call(message.folderData) : message.folderData; - if (message.encryptedFolderKey != null && message.hasOwnProperty("encryptedFolderKey")) - object.encryptedFolderKey = options.bytes === String ? $util.base64.encode(message.encryptedFolderKey, 0, message.encryptedFolderKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedFolderKey) : message.encryptedFolderKey; - if (message.sharedFolderFields != null && message.hasOwnProperty("sharedFolderFields")) - object.sharedFolderFields = $root.Folder.SharedFolderFields.toObject(message.sharedFolderFields, options); - if (message.sharedFolderFolderFields != null && message.hasOwnProperty("sharedFolderFolderFields")) - object.sharedFolderFolderFields = $root.Folder.SharedFolderFolderFields.toObject(message.sharedFolderFolderFields, options); + if (message.folderUid != null && message.hasOwnProperty('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.folderType != null && message.hasOwnProperty('folderType')) + object.folderType = + options.enums === String + ? $root.Folder.FolderType[message.folderType] === undefined + ? message.folderType + : $root.Folder.FolderType[message.folderType] + : message.folderType; + if (message.parentFolderUid != null && message.hasOwnProperty('parentFolderUid')) + object.parentFolderUid = + options.bytes === String + ? $util.base64.encode(message.parentFolderUid, 0, message.parentFolderUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.parentFolderUid) + : message.parentFolderUid; + if (message.folderData != null && message.hasOwnProperty('folderData')) + object.folderData = + options.bytes === String + ? $util.base64.encode(message.folderData, 0, message.folderData.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.folderData) + : message.folderData; + if (message.encryptedFolderKey != null && message.hasOwnProperty('encryptedFolderKey')) + object.encryptedFolderKey = + options.bytes === String + ? $util.base64.encode(message.encryptedFolderKey, 0, message.encryptedFolderKey.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.encryptedFolderKey) + : message.encryptedFolderKey; + if (message.sharedFolderFields != null && message.hasOwnProperty('sharedFolderFields')) + object.sharedFolderFields = $root.Folder.SharedFolderFields.toObject( + message.sharedFolderFields, + options + ); + if (message.sharedFolderFolderFields != null && message.hasOwnProperty('sharedFolderFolderFields')) + object.sharedFolderFolderFields = $root.Folder.SharedFolderFolderFields.toObject( + message.sharedFolderFolderFields, + options + ); return object; }; @@ -162957,16 +169162,15 @@ export const Folder = $root.Folder = (() => { */ FolderRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Folder.FolderRequest"; + return typeUrlPrefix + '/Folder.FolderRequest'; }; return FolderRequest; })(); - Folder.FolderResponse = (function() { - + Folder.FolderResponse = (function () { /** * Properties of a FolderResponse. * @memberof Folder @@ -162987,8 +169191,7 @@ export const Folder = $root.Folder = (() => { function FolderResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -163005,7 +169208,7 @@ export const Folder = $root.Folder = (() => { * @memberof Folder.FolderResponse * @instance */ - FolderResponse.prototype.revision = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + FolderResponse.prototype.revision = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * FolderResponse status. @@ -163013,7 +169216,7 @@ export const Folder = $root.Folder = (() => { * @memberof Folder.FolderResponse * @instance */ - FolderResponse.prototype.status = ""; + FolderResponse.prototype.status = ''; /** * Creates a new FolderResponse instance using the specified properties. @@ -163037,14 +169240,13 @@ export const Folder = $root.Folder = (() => { * @returns {$protobuf.Writer} Writer */ FolderResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.folderUid != null && Object.hasOwnProperty.call(message, "folderUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.folderUid); - if (message.revision != null && Object.hasOwnProperty.call(message, "revision")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.revision); - if (message.status != null && Object.hasOwnProperty.call(message, "status")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.status); + if (!writer) writer = $Writer.create(); + if (message.folderUid != null && Object.hasOwnProperty.call(message, 'folderUid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.folderUid); + if (message.revision != null && Object.hasOwnProperty.call(message, 'revision')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int64(message.revision); + if (message.status != null && Object.hasOwnProperty.call(message, 'status')) + writer.uint32(/* id 3, wireType 2 =*/ 26).string(message.status); return writer; }; @@ -163073,27 +169275,27 @@ export const Folder = $root.Folder = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ FolderResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Folder.FolderResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Folder.FolderResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.folderUid = reader.bytes(); break; } - case 2: { + case 2: { message.revision = reader.int64(); break; } - case 3: { + case 3: { message.status = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -163110,8 +169312,7 @@ export const Folder = $root.Folder = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ FolderResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -163124,17 +169325,27 @@ export const Folder = $root.Folder = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ FolderResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.folderUid != null && message.hasOwnProperty("folderUid")) - if (!(message.folderUid && typeof message.folderUid.length === "number" || $util.isString(message.folderUid))) - return "folderUid: buffer expected"; - if (message.revision != null && message.hasOwnProperty("revision")) - if (!$util.isInteger(message.revision) && !(message.revision && $util.isInteger(message.revision.low) && $util.isInteger(message.revision.high))) - return "revision: integer|Long expected"; - if (message.status != null && message.hasOwnProperty("status")) - if (!$util.isString(message.status)) - return "status: string expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.folderUid != null && message.hasOwnProperty('folderUid')) + if ( + !( + (message.folderUid && typeof message.folderUid.length === 'number') || + $util.isString(message.folderUid) + ) + ) + return 'folderUid: buffer expected'; + if (message.revision != null && message.hasOwnProperty('revision')) + if ( + !$util.isInteger(message.revision) && + !( + message.revision && + $util.isInteger(message.revision.low) && + $util.isInteger(message.revision.high) + ) + ) + return 'revision: integer|Long expected'; + if (message.status != null && message.hasOwnProperty('status')) + if (!$util.isString(message.status)) return 'status: string expected'; return null; }; @@ -163147,25 +169358,26 @@ export const Folder = $root.Folder = (() => { * @returns {Folder.FolderResponse} FolderResponse */ FolderResponse.fromObject = function fromObject(object) { - if (object instanceof $root.Folder.FolderResponse) - return object; + if (object instanceof $root.Folder.FolderResponse) return object; let message = new $root.Folder.FolderResponse(); 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 (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.revision != null) - if ($util.Long) - (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; - else if (typeof object.revision === "string") - message.revision = parseInt(object.revision, 10); - else if (typeof object.revision === "number") - message.revision = object.revision; - else if (typeof object.revision === "object") - message.revision = new $util.LongBits(object.revision.low >>> 0, object.revision.high >>> 0).toNumber(); - if (object.status != null) - message.status = String(object.status); + if ($util.Long) (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; + else if (typeof object.revision === 'string') message.revision = parseInt(object.revision, 10); + else if (typeof object.revision === 'number') message.revision = object.revision; + else if (typeof object.revision === 'object') + message.revision = new $util.LongBits( + object.revision.low >>> 0, + object.revision.high >>> 0 + ).toNumber(); + if (object.status != null) message.status = String(object.status); return message; }; @@ -163179,33 +169391,39 @@ export const Folder = $root.Folder = (() => { * @returns {Object.} Plain object */ FolderResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.folderUid = ""; + if (options.bytes === String) object.folderUid = ''; else { object.folderUid = []; - if (options.bytes !== Array) - object.folderUid = $util.newBuffer(object.folderUid); + if (options.bytes !== Array) object.folderUid = $util.newBuffer(object.folderUid); } if ($util.Long) { let long = new $util.Long(0, 0, false); - object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.revision = options.longs === String ? "0" : 0; - object.status = ""; - } - if (message.folderUid != null && message.hasOwnProperty("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.revision != null && message.hasOwnProperty("revision")) - if (typeof message.revision === "number") + object.revision = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.revision = options.longs === String ? '0' : 0; + object.status = ''; + } + if (message.folderUid != null && message.hasOwnProperty('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.revision != null && message.hasOwnProperty('revision')) + if (typeof message.revision === 'number') object.revision = options.longs === String ? String(message.revision) : message.revision; else - object.revision = options.longs === String ? $util.Long.prototype.toString.call(message.revision) : options.longs === Number ? new $util.LongBits(message.revision.low >>> 0, message.revision.high >>> 0).toNumber() : message.revision; - if (message.status != null && message.hasOwnProperty("status")) - object.status = message.status; + object.revision = + options.longs === String + ? $util.Long.prototype.toString.call(message.revision) + : options.longs === Number + ? new $util.LongBits(message.revision.low >>> 0, message.revision.high >>> 0).toNumber() + : message.revision; + if (message.status != null && message.hasOwnProperty('status')) object.status = message.status; return object; }; @@ -163230,16 +169448,15 @@ export const Folder = $root.Folder = (() => { */ FolderResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Folder.FolderResponse"; + return typeUrlPrefix + '/Folder.FolderResponse'; }; return FolderResponse; })(); - Folder.ImportFolderRecordRequest = (function() { - + Folder.ImportFolderRecordRequest = (function () { /** * Properties of an ImportFolderRecordRequest. * @memberof Folder @@ -163261,8 +169478,7 @@ export const Folder = $root.Folder = (() => { this.recordRequest = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -163303,14 +169519,19 @@ export const Folder = $root.Folder = (() => { * @returns {$protobuf.Writer} Writer */ ImportFolderRecordRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.folderRequest != null && message.folderRequest.length) for (let i = 0; i < message.folderRequest.length; ++i) - $root.Folder.FolderRequest.encode(message.folderRequest[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.Folder.FolderRequest.encode( + message.folderRequest[i], + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); if (message.recordRequest != null && message.recordRequest.length) for (let i = 0; i < message.recordRequest.length; ++i) - $root.Folder.RecordRequest.encode(message.recordRequest[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + $root.Folder.RecordRequest.encode( + message.recordRequest[i], + writer.uint32(/* id 2, wireType 2 =*/ 18).fork() + ).ldelim(); return writer; }; @@ -163339,27 +169560,25 @@ export const Folder = $root.Folder = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ImportFolderRecordRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Folder.ImportFolderRecordRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Folder.ImportFolderRecordRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (!(message.folderRequest && message.folderRequest.length)) - message.folderRequest = []; + case 1: { + if (!(message.folderRequest && message.folderRequest.length)) message.folderRequest = []; message.folderRequest.push($root.Folder.FolderRequest.decode(reader, reader.uint32())); break; } - case 2: { - if (!(message.recordRequest && message.recordRequest.length)) - message.recordRequest = []; + case 2: { + if (!(message.recordRequest && message.recordRequest.length)) message.recordRequest = []; message.recordRequest.push($root.Folder.RecordRequest.decode(reader, reader.uint32())); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -163376,8 +169595,7 @@ export const Folder = $root.Folder = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ImportFolderRecordRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -163390,24 +169608,19 @@ export const Folder = $root.Folder = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ ImportFolderRecordRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.folderRequest != null && message.hasOwnProperty("folderRequest")) { - if (!Array.isArray(message.folderRequest)) - return "folderRequest: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.folderRequest != null && message.hasOwnProperty('folderRequest')) { + if (!Array.isArray(message.folderRequest)) return 'folderRequest: array expected'; for (let i = 0; i < message.folderRequest.length; ++i) { let error = $root.Folder.FolderRequest.verify(message.folderRequest[i]); - if (error) - return "folderRequest." + error; + if (error) return 'folderRequest.' + error; } } - if (message.recordRequest != null && message.hasOwnProperty("recordRequest")) { - if (!Array.isArray(message.recordRequest)) - return "recordRequest: array expected"; + if (message.recordRequest != null && message.hasOwnProperty('recordRequest')) { + if (!Array.isArray(message.recordRequest)) return 'recordRequest: array expected'; for (let i = 0; i < message.recordRequest.length; ++i) { let error = $root.Folder.RecordRequest.verify(message.recordRequest[i]); - if (error) - return "recordRequest." + error; + if (error) return 'recordRequest.' + error; } } return null; @@ -163422,26 +169635,25 @@ export const Folder = $root.Folder = (() => { * @returns {Folder.ImportFolderRecordRequest} ImportFolderRecordRequest */ ImportFolderRecordRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Folder.ImportFolderRecordRequest) - return object; + if (object instanceof $root.Folder.ImportFolderRecordRequest) return object; let message = new $root.Folder.ImportFolderRecordRequest(); if (object.folderRequest) { if (!Array.isArray(object.folderRequest)) - throw TypeError(".Folder.ImportFolderRecordRequest.folderRequest: array expected"); + throw TypeError('.Folder.ImportFolderRecordRequest.folderRequest: array expected'); message.folderRequest = []; for (let i = 0; i < object.folderRequest.length; ++i) { - if (typeof object.folderRequest[i] !== "object") - throw TypeError(".Folder.ImportFolderRecordRequest.folderRequest: object expected"); + if (typeof object.folderRequest[i] !== 'object') + throw TypeError('.Folder.ImportFolderRecordRequest.folderRequest: object expected'); message.folderRequest[i] = $root.Folder.FolderRequest.fromObject(object.folderRequest[i]); } } if (object.recordRequest) { if (!Array.isArray(object.recordRequest)) - throw TypeError(".Folder.ImportFolderRecordRequest.recordRequest: array expected"); + throw TypeError('.Folder.ImportFolderRecordRequest.recordRequest: array expected'); message.recordRequest = []; for (let i = 0; i < object.recordRequest.length; ++i) { - if (typeof object.recordRequest[i] !== "object") - throw TypeError(".Folder.ImportFolderRecordRequest.recordRequest: object expected"); + if (typeof object.recordRequest[i] !== 'object') + throw TypeError('.Folder.ImportFolderRecordRequest.recordRequest: object expected'); message.recordRequest[i] = $root.Folder.RecordRequest.fromObject(object.recordRequest[i]); } } @@ -163458,8 +169670,7 @@ export const Folder = $root.Folder = (() => { * @returns {Object.} Plain object */ ImportFolderRecordRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.arrays || options.defaults) { object.folderRequest = []; @@ -163499,16 +169710,15 @@ export const Folder = $root.Folder = (() => { */ ImportFolderRecordRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Folder.ImportFolderRecordRequest"; + return typeUrlPrefix + '/Folder.ImportFolderRecordRequest'; }; return ImportFolderRecordRequest; })(); - Folder.ImportFolderRecordResponse = (function() { - + Folder.ImportFolderRecordResponse = (function () { /** * Properties of an ImportFolderRecordResponse. * @memberof Folder @@ -163530,8 +169740,7 @@ export const Folder = $root.Folder = (() => { this.recordResponse = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -163572,14 +169781,19 @@ export const Folder = $root.Folder = (() => { * @returns {$protobuf.Writer} Writer */ ImportFolderRecordResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.folderResponse != null && message.folderResponse.length) for (let i = 0; i < message.folderResponse.length; ++i) - $root.Folder.FolderResponse.encode(message.folderResponse[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.Folder.FolderResponse.encode( + message.folderResponse[i], + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); if (message.recordResponse != null && message.recordResponse.length) for (let i = 0; i < message.recordResponse.length; ++i) - $root.Folder.RecordResponse.encode(message.recordResponse[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + $root.Folder.RecordResponse.encode( + message.recordResponse[i], + writer.uint32(/* id 2, wireType 2 =*/ 18).fork() + ).ldelim(); return writer; }; @@ -163608,27 +169822,25 @@ export const Folder = $root.Folder = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ImportFolderRecordResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Folder.ImportFolderRecordResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Folder.ImportFolderRecordResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (!(message.folderResponse && message.folderResponse.length)) - message.folderResponse = []; + case 1: { + if (!(message.folderResponse && message.folderResponse.length)) message.folderResponse = []; message.folderResponse.push($root.Folder.FolderResponse.decode(reader, reader.uint32())); break; } - case 2: { - if (!(message.recordResponse && message.recordResponse.length)) - message.recordResponse = []; + case 2: { + if (!(message.recordResponse && message.recordResponse.length)) message.recordResponse = []; message.recordResponse.push($root.Folder.RecordResponse.decode(reader, reader.uint32())); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -163645,8 +169857,7 @@ export const Folder = $root.Folder = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ImportFolderRecordResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -163659,24 +169870,19 @@ export const Folder = $root.Folder = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ ImportFolderRecordResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.folderResponse != null && message.hasOwnProperty("folderResponse")) { - if (!Array.isArray(message.folderResponse)) - return "folderResponse: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.folderResponse != null && message.hasOwnProperty('folderResponse')) { + if (!Array.isArray(message.folderResponse)) return 'folderResponse: array expected'; for (let i = 0; i < message.folderResponse.length; ++i) { let error = $root.Folder.FolderResponse.verify(message.folderResponse[i]); - if (error) - return "folderResponse." + error; + if (error) return 'folderResponse.' + error; } } - if (message.recordResponse != null && message.hasOwnProperty("recordResponse")) { - if (!Array.isArray(message.recordResponse)) - return "recordResponse: array expected"; + if (message.recordResponse != null && message.hasOwnProperty('recordResponse')) { + if (!Array.isArray(message.recordResponse)) return 'recordResponse: array expected'; for (let i = 0; i < message.recordResponse.length; ++i) { let error = $root.Folder.RecordResponse.verify(message.recordResponse[i]); - if (error) - return "recordResponse." + error; + if (error) return 'recordResponse.' + error; } } return null; @@ -163691,26 +169897,25 @@ export const Folder = $root.Folder = (() => { * @returns {Folder.ImportFolderRecordResponse} ImportFolderRecordResponse */ ImportFolderRecordResponse.fromObject = function fromObject(object) { - if (object instanceof $root.Folder.ImportFolderRecordResponse) - return object; + if (object instanceof $root.Folder.ImportFolderRecordResponse) return object; let message = new $root.Folder.ImportFolderRecordResponse(); if (object.folderResponse) { if (!Array.isArray(object.folderResponse)) - throw TypeError(".Folder.ImportFolderRecordResponse.folderResponse: array expected"); + throw TypeError('.Folder.ImportFolderRecordResponse.folderResponse: array expected'); message.folderResponse = []; for (let i = 0; i < object.folderResponse.length; ++i) { - if (typeof object.folderResponse[i] !== "object") - throw TypeError(".Folder.ImportFolderRecordResponse.folderResponse: object expected"); + if (typeof object.folderResponse[i] !== 'object') + throw TypeError('.Folder.ImportFolderRecordResponse.folderResponse: object expected'); message.folderResponse[i] = $root.Folder.FolderResponse.fromObject(object.folderResponse[i]); } } if (object.recordResponse) { if (!Array.isArray(object.recordResponse)) - throw TypeError(".Folder.ImportFolderRecordResponse.recordResponse: array expected"); + throw TypeError('.Folder.ImportFolderRecordResponse.recordResponse: array expected'); message.recordResponse = []; for (let i = 0; i < object.recordResponse.length; ++i) { - if (typeof object.recordResponse[i] !== "object") - throw TypeError(".Folder.ImportFolderRecordResponse.recordResponse: object expected"); + if (typeof object.recordResponse[i] !== 'object') + throw TypeError('.Folder.ImportFolderRecordResponse.recordResponse: object expected'); message.recordResponse[i] = $root.Folder.RecordResponse.fromObject(object.recordResponse[i]); } } @@ -163727,8 +169932,7 @@ export const Folder = $root.Folder = (() => { * @returns {Object.} Plain object */ ImportFolderRecordResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.arrays || options.defaults) { object.folderResponse = []; @@ -163768,9 +169972,9 @@ export const Folder = $root.Folder = (() => { */ ImportFolderRecordResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Folder.ImportFolderRecordResponse"; + return typeUrlPrefix + '/Folder.ImportFolderRecordResponse'; }; return ImportFolderRecordResponse; @@ -163784,16 +169988,16 @@ export const Folder = $root.Folder = (() => { * @property {number} BOOLEAN_TRUE=1 BOOLEAN_TRUE value * @property {number} BOOLEAN_FALSE=2 BOOLEAN_FALSE value */ - Folder.SetBooleanValue = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "BOOLEAN_NO_CHANGE"] = 0; - values[valuesById[1] = "BOOLEAN_TRUE"] = 1; - values[valuesById[2] = "BOOLEAN_FALSE"] = 2; + Folder.SetBooleanValue = (function () { + const valuesById = {}, + values = Object.create(valuesById); + values[(valuesById[0] = 'BOOLEAN_NO_CHANGE')] = 0; + values[(valuesById[1] = 'BOOLEAN_TRUE')] = 1; + values[(valuesById[2] = 'BOOLEAN_FALSE')] = 2; return values; })(); - Folder.SharedFolderUpdateRecord = (function() { - + Folder.SharedFolderUpdateRecord = (function () { /** * Properties of a SharedFolderUpdateRecord. * @memberof Folder @@ -163821,8 +170025,7 @@ export const Folder = $root.Folder = (() => { function SharedFolderUpdateRecord(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -163887,7 +170090,7 @@ export const Folder = $root.Folder = (() => { * @memberof Folder.SharedFolderUpdateRecord * @instance */ - SharedFolderUpdateRecord.prototype.expiration = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + SharedFolderUpdateRecord.prototype.expiration = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * SharedFolderUpdateRecord timerNotificationType. @@ -163927,28 +170130,27 @@ export const Folder = $root.Folder = (() => { * @returns {$protobuf.Writer} Writer */ SharedFolderUpdateRecord.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); - if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, "sharedFolderUid")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.sharedFolderUid); - if (message.teamUid != null && Object.hasOwnProperty.call(message, "teamUid")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.teamUid); - if (message.canEdit != null && Object.hasOwnProperty.call(message, "canEdit")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.canEdit); - if (message.canShare != null && Object.hasOwnProperty.call(message, "canShare")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.canShare); - if (message.encryptedRecordKey != null && Object.hasOwnProperty.call(message, "encryptedRecordKey")) - writer.uint32(/* id 6, wireType 2 =*/50).bytes(message.encryptedRecordKey); - if (message.revision != null && Object.hasOwnProperty.call(message, "revision")) - writer.uint32(/* id 7, wireType 0 =*/56).int32(message.revision); - if (message.expiration != null && Object.hasOwnProperty.call(message, "expiration")) - writer.uint32(/* id 8, wireType 0 =*/64).sint64(message.expiration); - if (message.timerNotificationType != null && Object.hasOwnProperty.call(message, "timerNotificationType")) - writer.uint32(/* id 9, wireType 0 =*/72).int32(message.timerNotificationType); - if (message.rotateOnExpiration != null && Object.hasOwnProperty.call(message, "rotateOnExpiration")) - writer.uint32(/* id 10, wireType 0 =*/80).bool(message.rotateOnExpiration); + if (!writer) writer = $Writer.create(); + if (message.recordUid != null && Object.hasOwnProperty.call(message, 'recordUid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.recordUid); + if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, 'sharedFolderUid')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.sharedFolderUid); + if (message.teamUid != null && Object.hasOwnProperty.call(message, 'teamUid')) + writer.uint32(/* id 3, wireType 2 =*/ 26).bytes(message.teamUid); + if (message.canEdit != null && Object.hasOwnProperty.call(message, 'canEdit')) + writer.uint32(/* id 4, wireType 0 =*/ 32).int32(message.canEdit); + if (message.canShare != null && Object.hasOwnProperty.call(message, 'canShare')) + writer.uint32(/* id 5, wireType 0 =*/ 40).int32(message.canShare); + if (message.encryptedRecordKey != null && Object.hasOwnProperty.call(message, 'encryptedRecordKey')) + writer.uint32(/* id 6, wireType 2 =*/ 50).bytes(message.encryptedRecordKey); + if (message.revision != null && Object.hasOwnProperty.call(message, 'revision')) + writer.uint32(/* id 7, wireType 0 =*/ 56).int32(message.revision); + if (message.expiration != null && Object.hasOwnProperty.call(message, 'expiration')) + writer.uint32(/* id 8, wireType 0 =*/ 64).sint64(message.expiration); + if (message.timerNotificationType != null && Object.hasOwnProperty.call(message, 'timerNotificationType')) + writer.uint32(/* id 9, wireType 0 =*/ 72).int32(message.timerNotificationType); + if (message.rotateOnExpiration != null && Object.hasOwnProperty.call(message, 'rotateOnExpiration')) + writer.uint32(/* id 10, wireType 0 =*/ 80).bool(message.rotateOnExpiration); return writer; }; @@ -163977,55 +170179,55 @@ export const Folder = $root.Folder = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SharedFolderUpdateRecord.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Folder.SharedFolderUpdateRecord(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Folder.SharedFolderUpdateRecord(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.recordUid = reader.bytes(); break; } - case 2: { + case 2: { message.sharedFolderUid = reader.bytes(); break; } - case 3: { + case 3: { message.teamUid = reader.bytes(); break; } - case 4: { + case 4: { message.canEdit = reader.int32(); break; } - case 5: { + case 5: { message.canShare = reader.int32(); break; } - case 6: { + case 6: { message.encryptedRecordKey = reader.bytes(); break; } - case 7: { + case 7: { message.revision = reader.int32(); break; } - case 8: { + case 8: { message.expiration = reader.sint64(); break; } - case 9: { + case 9: { message.timerNotificationType = reader.int32(); break; } - case 10: { + case 10: { message.rotateOnExpiration = reader.bool(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -164042,8 +170244,7 @@ export const Folder = $root.Folder = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SharedFolderUpdateRecord.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -164056,56 +170257,80 @@ export const Folder = $root.Folder = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ SharedFolderUpdateRecord.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) - return "recordUid: buffer expected"; - if (message.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) - if (!(message.sharedFolderUid && typeof message.sharedFolderUid.length === "number" || $util.isString(message.sharedFolderUid))) - return "sharedFolderUid: buffer expected"; - if (message.teamUid != null && message.hasOwnProperty("teamUid")) - if (!(message.teamUid && typeof message.teamUid.length === "number" || $util.isString(message.teamUid))) - return "teamUid: buffer expected"; - if (message.canEdit != null && message.hasOwnProperty("canEdit")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.recordUid != null && message.hasOwnProperty('recordUid')) + if ( + !( + (message.recordUid && typeof message.recordUid.length === 'number') || + $util.isString(message.recordUid) + ) + ) + return 'recordUid: buffer expected'; + if (message.sharedFolderUid != null && message.hasOwnProperty('sharedFolderUid')) + if ( + !( + (message.sharedFolderUid && typeof message.sharedFolderUid.length === 'number') || + $util.isString(message.sharedFolderUid) + ) + ) + return 'sharedFolderUid: buffer expected'; + if (message.teamUid != null && message.hasOwnProperty('teamUid')) + if ( + !( + (message.teamUid && typeof message.teamUid.length === 'number') || + $util.isString(message.teamUid) + ) + ) + return 'teamUid: buffer expected'; + if (message.canEdit != null && message.hasOwnProperty('canEdit')) switch (message.canEdit) { - default: - return "canEdit: enum value expected"; - case 0: - case 1: - case 2: - break; + default: + return 'canEdit: enum value expected'; + case 0: + case 1: + case 2: + break; } - if (message.canShare != null && message.hasOwnProperty("canShare")) + if (message.canShare != null && message.hasOwnProperty('canShare')) switch (message.canShare) { - default: - return "canShare: enum value expected"; - case 0: - case 1: - case 2: - break; + default: + return 'canShare: enum value expected'; + case 0: + case 1: + case 2: + break; } - if (message.encryptedRecordKey != null && message.hasOwnProperty("encryptedRecordKey")) - if (!(message.encryptedRecordKey && typeof message.encryptedRecordKey.length === "number" || $util.isString(message.encryptedRecordKey))) - return "encryptedRecordKey: buffer expected"; - if (message.revision != null && message.hasOwnProperty("revision")) - if (!$util.isInteger(message.revision)) - return "revision: integer expected"; - if (message.expiration != null && message.hasOwnProperty("expiration")) - if (!$util.isInteger(message.expiration) && !(message.expiration && $util.isInteger(message.expiration.low) && $util.isInteger(message.expiration.high))) - return "expiration: integer|Long expected"; - if (message.timerNotificationType != null && message.hasOwnProperty("timerNotificationType")) + if (message.encryptedRecordKey != null && message.hasOwnProperty('encryptedRecordKey')) + if ( + !( + (message.encryptedRecordKey && typeof message.encryptedRecordKey.length === 'number') || + $util.isString(message.encryptedRecordKey) + ) + ) + return 'encryptedRecordKey: buffer expected'; + if (message.revision != null && message.hasOwnProperty('revision')) + if (!$util.isInteger(message.revision)) return 'revision: integer expected'; + if (message.expiration != null && message.hasOwnProperty('expiration')) + if ( + !$util.isInteger(message.expiration) && + !( + message.expiration && + $util.isInteger(message.expiration.low) && + $util.isInteger(message.expiration.high) + ) + ) + return 'expiration: integer|Long expected'; + if (message.timerNotificationType != null && message.hasOwnProperty('timerNotificationType')) switch (message.timerNotificationType) { - default: - return "timerNotificationType: enum value expected"; - case 0: - case 1: - case 2: - break; + default: + return 'timerNotificationType: enum value expected'; + case 0: + case 1: + case 2: + break; } - if (message.rotateOnExpiration != null && message.hasOwnProperty("rotateOnExpiration")) - if (typeof message.rotateOnExpiration !== "boolean") - return "rotateOnExpiration: boolean expected"; + if (message.rotateOnExpiration != null && message.hasOwnProperty('rotateOnExpiration')) + if (typeof message.rotateOnExpiration !== 'boolean') return 'rotateOnExpiration: boolean expected'; return null; }; @@ -164118,102 +170343,111 @@ export const Folder = $root.Folder = (() => { * @returns {Folder.SharedFolderUpdateRecord} SharedFolderUpdateRecord */ SharedFolderUpdateRecord.fromObject = function fromObject(object) { - if (object instanceof $root.Folder.SharedFolderUpdateRecord) - return object; + if (object instanceof $root.Folder.SharedFolderUpdateRecord) return object; let message = new $root.Folder.SharedFolderUpdateRecord(); 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 (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.sharedFolderUid != null) - if (typeof object.sharedFolderUid === "string") - $util.base64.decode(object.sharedFolderUid, message.sharedFolderUid = $util.newBuffer($util.base64.length(object.sharedFolderUid)), 0); - else if (object.sharedFolderUid.length >= 0) - message.sharedFolderUid = object.sharedFolderUid; + if (typeof object.sharedFolderUid === 'string') + $util.base64.decode( + object.sharedFolderUid, + (message.sharedFolderUid = $util.newBuffer($util.base64.length(object.sharedFolderUid))), + 0 + ); + else if (object.sharedFolderUid.length >= 0) message.sharedFolderUid = object.sharedFolderUid; if (object.teamUid != null) - if (typeof object.teamUid === "string") - $util.base64.decode(object.teamUid, message.teamUid = $util.newBuffer($util.base64.length(object.teamUid)), 0); - else if (object.teamUid.length >= 0) - message.teamUid = object.teamUid; + if (typeof object.teamUid === 'string') + $util.base64.decode( + object.teamUid, + (message.teamUid = $util.newBuffer($util.base64.length(object.teamUid))), + 0 + ); + else if (object.teamUid.length >= 0) message.teamUid = object.teamUid; switch (object.canEdit) { - default: - if (typeof object.canEdit === "number") { - message.canEdit = object.canEdit; - break; - } - break; - case "BOOLEAN_NO_CHANGE": - case 0: - message.canEdit = 0; - break; - case "BOOLEAN_TRUE": - case 1: - message.canEdit = 1; - break; - case "BOOLEAN_FALSE": - case 2: - message.canEdit = 2; - break; + default: + if (typeof object.canEdit === 'number') { + message.canEdit = object.canEdit; + break; + } + break; + case 'BOOLEAN_NO_CHANGE': + case 0: + message.canEdit = 0; + break; + case 'BOOLEAN_TRUE': + case 1: + message.canEdit = 1; + break; + case 'BOOLEAN_FALSE': + case 2: + message.canEdit = 2; + break; } switch (object.canShare) { - default: - if (typeof object.canShare === "number") { - message.canShare = object.canShare; - break; - } - break; - case "BOOLEAN_NO_CHANGE": - case 0: - message.canShare = 0; - break; - case "BOOLEAN_TRUE": - case 1: - message.canShare = 1; - break; - case "BOOLEAN_FALSE": - case 2: - message.canShare = 2; - break; + default: + if (typeof object.canShare === 'number') { + message.canShare = object.canShare; + break; + } + break; + case 'BOOLEAN_NO_CHANGE': + case 0: + message.canShare = 0; + break; + case 'BOOLEAN_TRUE': + case 1: + message.canShare = 1; + break; + case 'BOOLEAN_FALSE': + case 2: + message.canShare = 2; + break; } if (object.encryptedRecordKey != null) - if (typeof object.encryptedRecordKey === "string") - $util.base64.decode(object.encryptedRecordKey, message.encryptedRecordKey = $util.newBuffer($util.base64.length(object.encryptedRecordKey)), 0); - else if (object.encryptedRecordKey.length >= 0) - message.encryptedRecordKey = object.encryptedRecordKey; - if (object.revision != null) - message.revision = object.revision | 0; + if (typeof object.encryptedRecordKey === 'string') + $util.base64.decode( + object.encryptedRecordKey, + (message.encryptedRecordKey = $util.newBuffer($util.base64.length(object.encryptedRecordKey))), + 0 + ); + else if (object.encryptedRecordKey.length >= 0) message.encryptedRecordKey = object.encryptedRecordKey; + if (object.revision != null) message.revision = object.revision | 0; if (object.expiration != null) - if ($util.Long) - (message.expiration = $util.Long.fromValue(object.expiration)).unsigned = false; - else if (typeof object.expiration === "string") - message.expiration = parseInt(object.expiration, 10); - else if (typeof object.expiration === "number") - message.expiration = object.expiration; - else if (typeof object.expiration === "object") - message.expiration = new $util.LongBits(object.expiration.low >>> 0, object.expiration.high >>> 0).toNumber(); + if ($util.Long) (message.expiration = $util.Long.fromValue(object.expiration)).unsigned = false; + else if (typeof object.expiration === 'string') message.expiration = parseInt(object.expiration, 10); + else if (typeof object.expiration === 'number') message.expiration = object.expiration; + else if (typeof object.expiration === 'object') + message.expiration = new $util.LongBits( + object.expiration.low >>> 0, + object.expiration.high >>> 0 + ).toNumber(); switch (object.timerNotificationType) { - default: - if (typeof object.timerNotificationType === "number") { - message.timerNotificationType = object.timerNotificationType; + default: + if (typeof object.timerNotificationType === 'number') { + message.timerNotificationType = object.timerNotificationType; + break; + } + break; + case 'NOTIFICATION_OFF': + case 0: + message.timerNotificationType = 0; + break; + case 'NOTIFY_OWNER': + case 1: + message.timerNotificationType = 1; + break; + case 'NOTIFY_PRIVILEGED_USERS': + case 2: + message.timerNotificationType = 2; break; - } - break; - case "NOTIFICATION_OFF": - case 0: - message.timerNotificationType = 0; - break; - case "NOTIFY_OWNER": - case 1: - message.timerNotificationType = 1; - break; - case "NOTIFY_PRIVILEGED_USERS": - case 2: - message.timerNotificationType = 2; - break; } - if (object.rotateOnExpiration != null) - message.rotateOnExpiration = Boolean(object.rotateOnExpiration); + if (object.rotateOnExpiration != null) message.rotateOnExpiration = Boolean(object.rotateOnExpiration); return message; }; @@ -164227,71 +170461,104 @@ export const Folder = $root.Folder = (() => { * @returns {Object.} Plain object */ SharedFolderUpdateRecord.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.recordUid = ""; + if (options.bytes === String) object.recordUid = ''; else { object.recordUid = []; - if (options.bytes !== Array) - object.recordUid = $util.newBuffer(object.recordUid); + if (options.bytes !== Array) object.recordUid = $util.newBuffer(object.recordUid); } - if (options.bytes === String) - object.sharedFolderUid = ""; + if (options.bytes === String) object.sharedFolderUid = ''; else { object.sharedFolderUid = []; - if (options.bytes !== Array) - object.sharedFolderUid = $util.newBuffer(object.sharedFolderUid); + if (options.bytes !== Array) object.sharedFolderUid = $util.newBuffer(object.sharedFolderUid); } - if (options.bytes === String) - object.teamUid = ""; + if (options.bytes === String) object.teamUid = ''; else { object.teamUid = []; - if (options.bytes !== Array) - object.teamUid = $util.newBuffer(object.teamUid); + if (options.bytes !== Array) object.teamUid = $util.newBuffer(object.teamUid); } - object.canEdit = options.enums === String ? "BOOLEAN_NO_CHANGE" : 0; - object.canShare = options.enums === String ? "BOOLEAN_NO_CHANGE" : 0; - if (options.bytes === String) - object.encryptedRecordKey = ""; + object.canEdit = options.enums === String ? 'BOOLEAN_NO_CHANGE' : 0; + object.canShare = options.enums === String ? 'BOOLEAN_NO_CHANGE' : 0; + if (options.bytes === String) object.encryptedRecordKey = ''; else { object.encryptedRecordKey = []; - if (options.bytes !== Array) - object.encryptedRecordKey = $util.newBuffer(object.encryptedRecordKey); + if (options.bytes !== Array) object.encryptedRecordKey = $util.newBuffer(object.encryptedRecordKey); } object.revision = 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.expiration = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.expiration = options.longs === String ? "0" : 0; - object.timerNotificationType = options.enums === String ? "NOTIFICATION_OFF" : 0; + object.expiration = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.expiration = options.longs === String ? '0' : 0; + object.timerNotificationType = options.enums === String ? 'NOTIFICATION_OFF' : 0; object.rotateOnExpiration = false; } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; - if (message.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) - object.sharedFolderUid = options.bytes === String ? $util.base64.encode(message.sharedFolderUid, 0, message.sharedFolderUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.sharedFolderUid) : message.sharedFolderUid; - if (message.teamUid != null && message.hasOwnProperty("teamUid")) - object.teamUid = options.bytes === String ? $util.base64.encode(message.teamUid, 0, message.teamUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.teamUid) : message.teamUid; - if (message.canEdit != null && message.hasOwnProperty("canEdit")) - object.canEdit = options.enums === String ? $root.Folder.SetBooleanValue[message.canEdit] === undefined ? message.canEdit : $root.Folder.SetBooleanValue[message.canEdit] : message.canEdit; - if (message.canShare != null && message.hasOwnProperty("canShare")) - object.canShare = options.enums === String ? $root.Folder.SetBooleanValue[message.canShare] === undefined ? message.canShare : $root.Folder.SetBooleanValue[message.canShare] : message.canShare; - if (message.encryptedRecordKey != null && message.hasOwnProperty("encryptedRecordKey")) - object.encryptedRecordKey = options.bytes === String ? $util.base64.encode(message.encryptedRecordKey, 0, message.encryptedRecordKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedRecordKey) : message.encryptedRecordKey; - if (message.revision != null && message.hasOwnProperty("revision")) - object.revision = message.revision; - if (message.expiration != null && message.hasOwnProperty("expiration")) - if (typeof message.expiration === "number") + if (message.recordUid != null && message.hasOwnProperty('recordUid')) + object.recordUid = + options.bytes === String + ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.recordUid) + : message.recordUid; + if (message.sharedFolderUid != null && message.hasOwnProperty('sharedFolderUid')) + object.sharedFolderUid = + options.bytes === String + ? $util.base64.encode(message.sharedFolderUid, 0, message.sharedFolderUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.sharedFolderUid) + : message.sharedFolderUid; + if (message.teamUid != null && message.hasOwnProperty('teamUid')) + object.teamUid = + options.bytes === String + ? $util.base64.encode(message.teamUid, 0, message.teamUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.teamUid) + : message.teamUid; + if (message.canEdit != null && message.hasOwnProperty('canEdit')) + object.canEdit = + options.enums === String + ? $root.Folder.SetBooleanValue[message.canEdit] === undefined + ? message.canEdit + : $root.Folder.SetBooleanValue[message.canEdit] + : message.canEdit; + if (message.canShare != null && message.hasOwnProperty('canShare')) + object.canShare = + options.enums === String + ? $root.Folder.SetBooleanValue[message.canShare] === undefined + ? message.canShare + : $root.Folder.SetBooleanValue[message.canShare] + : message.canShare; + if (message.encryptedRecordKey != null && message.hasOwnProperty('encryptedRecordKey')) + object.encryptedRecordKey = + options.bytes === String + ? $util.base64.encode(message.encryptedRecordKey, 0, message.encryptedRecordKey.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.encryptedRecordKey) + : message.encryptedRecordKey; + if (message.revision != null && message.hasOwnProperty('revision')) object.revision = message.revision; + if (message.expiration != null && message.hasOwnProperty('expiration')) + if (typeof message.expiration === 'number') object.expiration = options.longs === String ? String(message.expiration) : message.expiration; else - object.expiration = options.longs === String ? $util.Long.prototype.toString.call(message.expiration) : options.longs === Number ? new $util.LongBits(message.expiration.low >>> 0, message.expiration.high >>> 0).toNumber() : message.expiration; - if (message.timerNotificationType != null && message.hasOwnProperty("timerNotificationType")) - object.timerNotificationType = options.enums === String ? $root.Records.TimerNotificationType[message.timerNotificationType] === undefined ? message.timerNotificationType : $root.Records.TimerNotificationType[message.timerNotificationType] : message.timerNotificationType; - if (message.rotateOnExpiration != null && message.hasOwnProperty("rotateOnExpiration")) + object.expiration = + options.longs === String + ? $util.Long.prototype.toString.call(message.expiration) + : options.longs === Number + ? new $util.LongBits( + message.expiration.low >>> 0, + message.expiration.high >>> 0 + ).toNumber() + : message.expiration; + if (message.timerNotificationType != null && message.hasOwnProperty('timerNotificationType')) + object.timerNotificationType = + options.enums === String + ? $root.Records.TimerNotificationType[message.timerNotificationType] === undefined + ? message.timerNotificationType + : $root.Records.TimerNotificationType[message.timerNotificationType] + : message.timerNotificationType; + if (message.rotateOnExpiration != null && message.hasOwnProperty('rotateOnExpiration')) object.rotateOnExpiration = message.rotateOnExpiration; return object; }; @@ -164317,16 +170584,15 @@ export const Folder = $root.Folder = (() => { */ SharedFolderUpdateRecord.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Folder.SharedFolderUpdateRecord"; + return typeUrlPrefix + '/Folder.SharedFolderUpdateRecord'; }; return SharedFolderUpdateRecord; })(); - Folder.SharedFolderUpdateUser = (function() { - + Folder.SharedFolderUpdateUser = (function () { /** * Properties of a SharedFolderUpdateUser. * @memberof Folder @@ -164352,8 +170618,7 @@ export const Folder = $root.Folder = (() => { function SharedFolderUpdateUser(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -164362,7 +170627,7 @@ export const Folder = $root.Folder = (() => { * @memberof Folder.SharedFolderUpdateUser * @instance */ - SharedFolderUpdateUser.prototype.username = ""; + SharedFolderUpdateUser.prototype.username = ''; /** * SharedFolderUpdateUser manageUsers. @@ -164394,7 +170659,7 @@ export const Folder = $root.Folder = (() => { * @memberof Folder.SharedFolderUpdateUser * @instance */ - SharedFolderUpdateUser.prototype.expiration = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + SharedFolderUpdateUser.prototype.expiration = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * SharedFolderUpdateUser timerNotificationType. @@ -164442,24 +170707,26 @@ export const Folder = $root.Folder = (() => { * @returns {$protobuf.Writer} Writer */ SharedFolderUpdateUser.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.username != null && Object.hasOwnProperty.call(message, "username")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.username); - if (message.manageUsers != null && Object.hasOwnProperty.call(message, "manageUsers")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.manageUsers); - if (message.manageRecords != null && Object.hasOwnProperty.call(message, "manageRecords")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.manageRecords); - if (message.sharedFolderKey != null && Object.hasOwnProperty.call(message, "sharedFolderKey")) - writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.sharedFolderKey); - if (message.expiration != null && Object.hasOwnProperty.call(message, "expiration")) - writer.uint32(/* id 5, wireType 0 =*/40).sint64(message.expiration); - if (message.timerNotificationType != null && Object.hasOwnProperty.call(message, "timerNotificationType")) - writer.uint32(/* id 6, wireType 0 =*/48).int32(message.timerNotificationType); - if (message.typedSharedFolderKey != null && Object.hasOwnProperty.call(message, "typedSharedFolderKey")) - $root.Folder.EncryptedDataKey.encode(message.typedSharedFolderKey, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.rotateOnExpiration != null && Object.hasOwnProperty.call(message, "rotateOnExpiration")) - writer.uint32(/* id 8, wireType 0 =*/64).bool(message.rotateOnExpiration); + if (!writer) writer = $Writer.create(); + if (message.username != null && Object.hasOwnProperty.call(message, 'username')) + writer.uint32(/* id 1, wireType 2 =*/ 10).string(message.username); + if (message.manageUsers != null && Object.hasOwnProperty.call(message, 'manageUsers')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int32(message.manageUsers); + if (message.manageRecords != null && Object.hasOwnProperty.call(message, 'manageRecords')) + writer.uint32(/* id 3, wireType 0 =*/ 24).int32(message.manageRecords); + if (message.sharedFolderKey != null && Object.hasOwnProperty.call(message, 'sharedFolderKey')) + writer.uint32(/* id 4, wireType 2 =*/ 34).bytes(message.sharedFolderKey); + if (message.expiration != null && Object.hasOwnProperty.call(message, 'expiration')) + writer.uint32(/* id 5, wireType 0 =*/ 40).sint64(message.expiration); + if (message.timerNotificationType != null && Object.hasOwnProperty.call(message, 'timerNotificationType')) + writer.uint32(/* id 6, wireType 0 =*/ 48).int32(message.timerNotificationType); + if (message.typedSharedFolderKey != null && Object.hasOwnProperty.call(message, 'typedSharedFolderKey')) + $root.Folder.EncryptedDataKey.encode( + message.typedSharedFolderKey, + writer.uint32(/* id 7, wireType 2 =*/ 58).fork() + ).ldelim(); + if (message.rotateOnExpiration != null && Object.hasOwnProperty.call(message, 'rotateOnExpiration')) + writer.uint32(/* id 8, wireType 0 =*/ 64).bool(message.rotateOnExpiration); return writer; }; @@ -164488,47 +170755,47 @@ export const Folder = $root.Folder = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SharedFolderUpdateUser.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Folder.SharedFolderUpdateUser(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Folder.SharedFolderUpdateUser(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.username = reader.string(); break; } - case 2: { + case 2: { message.manageUsers = reader.int32(); break; } - case 3: { + case 3: { message.manageRecords = reader.int32(); break; } - case 4: { + case 4: { message.sharedFolderKey = reader.bytes(); break; } - case 5: { + case 5: { message.expiration = reader.sint64(); break; } - case 6: { + case 6: { message.timerNotificationType = reader.int32(); break; } - case 7: { + case 7: { message.typedSharedFolderKey = $root.Folder.EncryptedDataKey.decode(reader, reader.uint32()); break; } - case 8: { + case 8: { message.rotateOnExpiration = reader.bool(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -164545,8 +170812,7 @@ export const Folder = $root.Folder = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SharedFolderUpdateUser.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -164559,52 +170825,60 @@ export const Folder = $root.Folder = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ SharedFolderUpdateUser.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.username != null && message.hasOwnProperty("username")) - if (!$util.isString(message.username)) - return "username: string expected"; - if (message.manageUsers != null && message.hasOwnProperty("manageUsers")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.username != null && message.hasOwnProperty('username')) + if (!$util.isString(message.username)) return 'username: string expected'; + if (message.manageUsers != null && message.hasOwnProperty('manageUsers')) switch (message.manageUsers) { - default: - return "manageUsers: enum value expected"; - case 0: - case 1: - case 2: - break; + default: + return 'manageUsers: enum value expected'; + case 0: + case 1: + case 2: + break; } - if (message.manageRecords != null && message.hasOwnProperty("manageRecords")) + if (message.manageRecords != null && message.hasOwnProperty('manageRecords')) switch (message.manageRecords) { - default: - return "manageRecords: enum value expected"; - case 0: - case 1: - case 2: - break; + default: + return 'manageRecords: enum value expected'; + case 0: + case 1: + case 2: + break; } - if (message.sharedFolderKey != null && message.hasOwnProperty("sharedFolderKey")) - if (!(message.sharedFolderKey && typeof message.sharedFolderKey.length === "number" || $util.isString(message.sharedFolderKey))) - return "sharedFolderKey: buffer expected"; - if (message.expiration != null && message.hasOwnProperty("expiration")) - if (!$util.isInteger(message.expiration) && !(message.expiration && $util.isInteger(message.expiration.low) && $util.isInteger(message.expiration.high))) - return "expiration: integer|Long expected"; - if (message.timerNotificationType != null && message.hasOwnProperty("timerNotificationType")) + if (message.sharedFolderKey != null && message.hasOwnProperty('sharedFolderKey')) + if ( + !( + (message.sharedFolderKey && typeof message.sharedFolderKey.length === 'number') || + $util.isString(message.sharedFolderKey) + ) + ) + return 'sharedFolderKey: buffer expected'; + if (message.expiration != null && message.hasOwnProperty('expiration')) + if ( + !$util.isInteger(message.expiration) && + !( + message.expiration && + $util.isInteger(message.expiration.low) && + $util.isInteger(message.expiration.high) + ) + ) + return 'expiration: integer|Long expected'; + if (message.timerNotificationType != null && message.hasOwnProperty('timerNotificationType')) switch (message.timerNotificationType) { - default: - return "timerNotificationType: enum value expected"; - case 0: - case 1: - case 2: - break; + default: + return 'timerNotificationType: enum value expected'; + case 0: + case 1: + case 2: + break; } - if (message.typedSharedFolderKey != null && message.hasOwnProperty("typedSharedFolderKey")) { + if (message.typedSharedFolderKey != null && message.hasOwnProperty('typedSharedFolderKey')) { let error = $root.Folder.EncryptedDataKey.verify(message.typedSharedFolderKey); - if (error) - return "typedSharedFolderKey." + error; + if (error) return 'typedSharedFolderKey.' + error; } - if (message.rotateOnExpiration != null && message.hasOwnProperty("rotateOnExpiration")) - if (typeof message.rotateOnExpiration !== "boolean") - return "rotateOnExpiration: boolean expected"; + if (message.rotateOnExpiration != null && message.hasOwnProperty('rotateOnExpiration')) + if (typeof message.rotateOnExpiration !== 'boolean') return 'rotateOnExpiration: boolean expected'; return null; }; @@ -164617,92 +170891,92 @@ export const Folder = $root.Folder = (() => { * @returns {Folder.SharedFolderUpdateUser} SharedFolderUpdateUser */ SharedFolderUpdateUser.fromObject = function fromObject(object) { - if (object instanceof $root.Folder.SharedFolderUpdateUser) - return object; + if (object instanceof $root.Folder.SharedFolderUpdateUser) return object; let message = new $root.Folder.SharedFolderUpdateUser(); - if (object.username != null) - message.username = String(object.username); + if (object.username != null) message.username = String(object.username); switch (object.manageUsers) { - default: - if (typeof object.manageUsers === "number") { - message.manageUsers = object.manageUsers; - break; - } - break; - case "BOOLEAN_NO_CHANGE": - case 0: - message.manageUsers = 0; - break; - case "BOOLEAN_TRUE": - case 1: - message.manageUsers = 1; - break; - case "BOOLEAN_FALSE": - case 2: - message.manageUsers = 2; - break; + default: + if (typeof object.manageUsers === 'number') { + message.manageUsers = object.manageUsers; + break; + } + break; + case 'BOOLEAN_NO_CHANGE': + case 0: + message.manageUsers = 0; + break; + case 'BOOLEAN_TRUE': + case 1: + message.manageUsers = 1; + break; + case 'BOOLEAN_FALSE': + case 2: + message.manageUsers = 2; + break; } switch (object.manageRecords) { - default: - if (typeof object.manageRecords === "number") { - message.manageRecords = object.manageRecords; - break; - } - break; - case "BOOLEAN_NO_CHANGE": - case 0: - message.manageRecords = 0; - break; - case "BOOLEAN_TRUE": - case 1: - message.manageRecords = 1; - break; - case "BOOLEAN_FALSE": - case 2: - message.manageRecords = 2; - break; + default: + if (typeof object.manageRecords === 'number') { + message.manageRecords = object.manageRecords; + break; + } + break; + case 'BOOLEAN_NO_CHANGE': + case 0: + message.manageRecords = 0; + break; + case 'BOOLEAN_TRUE': + case 1: + message.manageRecords = 1; + break; + case 'BOOLEAN_FALSE': + case 2: + message.manageRecords = 2; + break; } if (object.sharedFolderKey != null) - if (typeof object.sharedFolderKey === "string") - $util.base64.decode(object.sharedFolderKey, message.sharedFolderKey = $util.newBuffer($util.base64.length(object.sharedFolderKey)), 0); - else if (object.sharedFolderKey.length >= 0) - message.sharedFolderKey = object.sharedFolderKey; + if (typeof object.sharedFolderKey === 'string') + $util.base64.decode( + object.sharedFolderKey, + (message.sharedFolderKey = $util.newBuffer($util.base64.length(object.sharedFolderKey))), + 0 + ); + else if (object.sharedFolderKey.length >= 0) message.sharedFolderKey = object.sharedFolderKey; if (object.expiration != null) - if ($util.Long) - (message.expiration = $util.Long.fromValue(object.expiration)).unsigned = false; - else if (typeof object.expiration === "string") - message.expiration = parseInt(object.expiration, 10); - else if (typeof object.expiration === "number") - message.expiration = object.expiration; - else if (typeof object.expiration === "object") - message.expiration = new $util.LongBits(object.expiration.low >>> 0, object.expiration.high >>> 0).toNumber(); + if ($util.Long) (message.expiration = $util.Long.fromValue(object.expiration)).unsigned = false; + else if (typeof object.expiration === 'string') message.expiration = parseInt(object.expiration, 10); + else if (typeof object.expiration === 'number') message.expiration = object.expiration; + else if (typeof object.expiration === 'object') + message.expiration = new $util.LongBits( + object.expiration.low >>> 0, + object.expiration.high >>> 0 + ).toNumber(); switch (object.timerNotificationType) { - default: - if (typeof object.timerNotificationType === "number") { - message.timerNotificationType = object.timerNotificationType; - break; - } - break; - case "NOTIFICATION_OFF": - case 0: - message.timerNotificationType = 0; - break; - case "NOTIFY_OWNER": - case 1: - message.timerNotificationType = 1; - break; - case "NOTIFY_PRIVILEGED_USERS": - case 2: - message.timerNotificationType = 2; - break; + default: + if (typeof object.timerNotificationType === 'number') { + message.timerNotificationType = object.timerNotificationType; + break; + } + break; + case 'NOTIFICATION_OFF': + case 0: + message.timerNotificationType = 0; + break; + case 'NOTIFY_OWNER': + case 1: + message.timerNotificationType = 1; + break; + case 'NOTIFY_PRIVILEGED_USERS': + case 2: + message.timerNotificationType = 2; + break; } if (object.typedSharedFolderKey != null) { - if (typeof object.typedSharedFolderKey !== "object") - throw TypeError(".Folder.SharedFolderUpdateUser.typedSharedFolderKey: object expected"); + if (typeof object.typedSharedFolderKey !== 'object') + throw TypeError('.Folder.SharedFolderUpdateUser.typedSharedFolderKey: object expected'); message.typedSharedFolderKey = $root.Folder.EncryptedDataKey.fromObject(object.typedSharedFolderKey); } - if (object.rotateOnExpiration != null) - message.rotateOnExpiration = Boolean(object.rotateOnExpiration); + if (object.rotateOnExpiration != null) message.rotateOnExpiration = Boolean(object.rotateOnExpiration); return message; }; @@ -164716,47 +170990,74 @@ export const Folder = $root.Folder = (() => { * @returns {Object.} Plain object */ SharedFolderUpdateUser.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - object.username = ""; - object.manageUsers = options.enums === String ? "BOOLEAN_NO_CHANGE" : 0; - object.manageRecords = options.enums === String ? "BOOLEAN_NO_CHANGE" : 0; - if (options.bytes === String) - object.sharedFolderKey = ""; + object.username = ''; + object.manageUsers = options.enums === String ? 'BOOLEAN_NO_CHANGE' : 0; + object.manageRecords = options.enums === String ? 'BOOLEAN_NO_CHANGE' : 0; + if (options.bytes === String) object.sharedFolderKey = ''; else { object.sharedFolderKey = []; - if (options.bytes !== Array) - object.sharedFolderKey = $util.newBuffer(object.sharedFolderKey); + if (options.bytes !== Array) object.sharedFolderKey = $util.newBuffer(object.sharedFolderKey); } if ($util.Long) { let long = new $util.Long(0, 0, false); - object.expiration = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.expiration = options.longs === String ? "0" : 0; - object.timerNotificationType = options.enums === String ? "NOTIFICATION_OFF" : 0; + object.expiration = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.expiration = options.longs === String ? '0' : 0; + object.timerNotificationType = options.enums === String ? 'NOTIFICATION_OFF' : 0; object.typedSharedFolderKey = null; object.rotateOnExpiration = false; } - if (message.username != null && message.hasOwnProperty("username")) - object.username = message.username; - if (message.manageUsers != null && message.hasOwnProperty("manageUsers")) - object.manageUsers = options.enums === String ? $root.Folder.SetBooleanValue[message.manageUsers] === undefined ? message.manageUsers : $root.Folder.SetBooleanValue[message.manageUsers] : message.manageUsers; - if (message.manageRecords != null && message.hasOwnProperty("manageRecords")) - object.manageRecords = options.enums === String ? $root.Folder.SetBooleanValue[message.manageRecords] === undefined ? message.manageRecords : $root.Folder.SetBooleanValue[message.manageRecords] : message.manageRecords; - if (message.sharedFolderKey != null && message.hasOwnProperty("sharedFolderKey")) - object.sharedFolderKey = options.bytes === String ? $util.base64.encode(message.sharedFolderKey, 0, message.sharedFolderKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.sharedFolderKey) : message.sharedFolderKey; - if (message.expiration != null && message.hasOwnProperty("expiration")) - if (typeof message.expiration === "number") + if (message.username != null && message.hasOwnProperty('username')) object.username = message.username; + if (message.manageUsers != null && message.hasOwnProperty('manageUsers')) + object.manageUsers = + options.enums === String + ? $root.Folder.SetBooleanValue[message.manageUsers] === undefined + ? message.manageUsers + : $root.Folder.SetBooleanValue[message.manageUsers] + : message.manageUsers; + if (message.manageRecords != null && message.hasOwnProperty('manageRecords')) + object.manageRecords = + options.enums === String + ? $root.Folder.SetBooleanValue[message.manageRecords] === undefined + ? message.manageRecords + : $root.Folder.SetBooleanValue[message.manageRecords] + : message.manageRecords; + if (message.sharedFolderKey != null && message.hasOwnProperty('sharedFolderKey')) + object.sharedFolderKey = + options.bytes === String + ? $util.base64.encode(message.sharedFolderKey, 0, message.sharedFolderKey.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.sharedFolderKey) + : message.sharedFolderKey; + if (message.expiration != null && message.hasOwnProperty('expiration')) + if (typeof message.expiration === 'number') object.expiration = options.longs === String ? String(message.expiration) : message.expiration; else - object.expiration = options.longs === String ? $util.Long.prototype.toString.call(message.expiration) : options.longs === Number ? new $util.LongBits(message.expiration.low >>> 0, message.expiration.high >>> 0).toNumber() : message.expiration; - if (message.timerNotificationType != null && message.hasOwnProperty("timerNotificationType")) - object.timerNotificationType = options.enums === String ? $root.Records.TimerNotificationType[message.timerNotificationType] === undefined ? message.timerNotificationType : $root.Records.TimerNotificationType[message.timerNotificationType] : message.timerNotificationType; - if (message.typedSharedFolderKey != null && message.hasOwnProperty("typedSharedFolderKey")) - object.typedSharedFolderKey = $root.Folder.EncryptedDataKey.toObject(message.typedSharedFolderKey, options); - if (message.rotateOnExpiration != null && message.hasOwnProperty("rotateOnExpiration")) + object.expiration = + options.longs === String + ? $util.Long.prototype.toString.call(message.expiration) + : options.longs === Number + ? new $util.LongBits( + message.expiration.low >>> 0, + message.expiration.high >>> 0 + ).toNumber() + : message.expiration; + if (message.timerNotificationType != null && message.hasOwnProperty('timerNotificationType')) + object.timerNotificationType = + options.enums === String + ? $root.Records.TimerNotificationType[message.timerNotificationType] === undefined + ? message.timerNotificationType + : $root.Records.TimerNotificationType[message.timerNotificationType] + : message.timerNotificationType; + if (message.typedSharedFolderKey != null && message.hasOwnProperty('typedSharedFolderKey')) + object.typedSharedFolderKey = $root.Folder.EncryptedDataKey.toObject( + message.typedSharedFolderKey, + options + ); + if (message.rotateOnExpiration != null && message.hasOwnProperty('rotateOnExpiration')) object.rotateOnExpiration = message.rotateOnExpiration; return object; }; @@ -164782,16 +171083,15 @@ export const Folder = $root.Folder = (() => { */ SharedFolderUpdateUser.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Folder.SharedFolderUpdateUser"; + return typeUrlPrefix + '/Folder.SharedFolderUpdateUser'; }; return SharedFolderUpdateUser; })(); - Folder.SharedFolderUpdateTeam = (function() { - + Folder.SharedFolderUpdateTeam = (function () { /** * Properties of a SharedFolderUpdateTeam. * @memberof Folder @@ -164817,8 +171117,7 @@ export const Folder = $root.Folder = (() => { function SharedFolderUpdateTeam(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -164859,7 +171158,7 @@ export const Folder = $root.Folder = (() => { * @memberof Folder.SharedFolderUpdateTeam * @instance */ - SharedFolderUpdateTeam.prototype.expiration = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + SharedFolderUpdateTeam.prototype.expiration = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * SharedFolderUpdateTeam timerNotificationType. @@ -164907,24 +171206,26 @@ export const Folder = $root.Folder = (() => { * @returns {$protobuf.Writer} Writer */ SharedFolderUpdateTeam.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.teamUid != null && Object.hasOwnProperty.call(message, "teamUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.teamUid); - if (message.manageUsers != null && Object.hasOwnProperty.call(message, "manageUsers")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.manageUsers); - if (message.manageRecords != null && Object.hasOwnProperty.call(message, "manageRecords")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.manageRecords); - if (message.sharedFolderKey != null && Object.hasOwnProperty.call(message, "sharedFolderKey")) - writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.sharedFolderKey); - if (message.expiration != null && Object.hasOwnProperty.call(message, "expiration")) - writer.uint32(/* id 5, wireType 0 =*/40).sint64(message.expiration); - if (message.timerNotificationType != null && Object.hasOwnProperty.call(message, "timerNotificationType")) - writer.uint32(/* id 6, wireType 0 =*/48).int32(message.timerNotificationType); - if (message.typedSharedFolderKey != null && Object.hasOwnProperty.call(message, "typedSharedFolderKey")) - $root.Folder.EncryptedDataKey.encode(message.typedSharedFolderKey, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.rotateOnExpiration != null && Object.hasOwnProperty.call(message, "rotateOnExpiration")) - writer.uint32(/* id 8, wireType 0 =*/64).bool(message.rotateOnExpiration); + if (!writer) writer = $Writer.create(); + if (message.teamUid != null && Object.hasOwnProperty.call(message, 'teamUid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.teamUid); + if (message.manageUsers != null && Object.hasOwnProperty.call(message, 'manageUsers')) + writer.uint32(/* id 2, wireType 0 =*/ 16).bool(message.manageUsers); + if (message.manageRecords != null && Object.hasOwnProperty.call(message, 'manageRecords')) + writer.uint32(/* id 3, wireType 0 =*/ 24).bool(message.manageRecords); + if (message.sharedFolderKey != null && Object.hasOwnProperty.call(message, 'sharedFolderKey')) + writer.uint32(/* id 4, wireType 2 =*/ 34).bytes(message.sharedFolderKey); + if (message.expiration != null && Object.hasOwnProperty.call(message, 'expiration')) + writer.uint32(/* id 5, wireType 0 =*/ 40).sint64(message.expiration); + if (message.timerNotificationType != null && Object.hasOwnProperty.call(message, 'timerNotificationType')) + writer.uint32(/* id 6, wireType 0 =*/ 48).int32(message.timerNotificationType); + if (message.typedSharedFolderKey != null && Object.hasOwnProperty.call(message, 'typedSharedFolderKey')) + $root.Folder.EncryptedDataKey.encode( + message.typedSharedFolderKey, + writer.uint32(/* id 7, wireType 2 =*/ 58).fork() + ).ldelim(); + if (message.rotateOnExpiration != null && Object.hasOwnProperty.call(message, 'rotateOnExpiration')) + writer.uint32(/* id 8, wireType 0 =*/ 64).bool(message.rotateOnExpiration); return writer; }; @@ -164953,47 +171254,47 @@ export const Folder = $root.Folder = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SharedFolderUpdateTeam.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Folder.SharedFolderUpdateTeam(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Folder.SharedFolderUpdateTeam(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.teamUid = reader.bytes(); break; } - case 2: { + case 2: { message.manageUsers = reader.bool(); break; } - case 3: { + case 3: { message.manageRecords = reader.bool(); break; } - case 4: { + case 4: { message.sharedFolderKey = reader.bytes(); break; } - case 5: { + case 5: { message.expiration = reader.sint64(); break; } - case 6: { + case 6: { message.timerNotificationType = reader.int32(); break; } - case 7: { + case 7: { message.typedSharedFolderKey = $root.Folder.EncryptedDataKey.decode(reader, reader.uint32()); break; } - case 8: { + case 8: { message.rotateOnExpiration = reader.bool(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -165010,8 +171311,7 @@ export const Folder = $root.Folder = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SharedFolderUpdateTeam.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -165024,40 +171324,52 @@ export const Folder = $root.Folder = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ SharedFolderUpdateTeam.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.teamUid != null && message.hasOwnProperty("teamUid")) - if (!(message.teamUid && typeof message.teamUid.length === "number" || $util.isString(message.teamUid))) - return "teamUid: buffer expected"; - if (message.manageUsers != null && message.hasOwnProperty("manageUsers")) - if (typeof message.manageUsers !== "boolean") - return "manageUsers: boolean expected"; - if (message.manageRecords != null && message.hasOwnProperty("manageRecords")) - if (typeof message.manageRecords !== "boolean") - return "manageRecords: boolean expected"; - if (message.sharedFolderKey != null && message.hasOwnProperty("sharedFolderKey")) - if (!(message.sharedFolderKey && typeof message.sharedFolderKey.length === "number" || $util.isString(message.sharedFolderKey))) - return "sharedFolderKey: buffer expected"; - if (message.expiration != null && message.hasOwnProperty("expiration")) - if (!$util.isInteger(message.expiration) && !(message.expiration && $util.isInteger(message.expiration.low) && $util.isInteger(message.expiration.high))) - return "expiration: integer|Long expected"; - if (message.timerNotificationType != null && message.hasOwnProperty("timerNotificationType")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.teamUid != null && message.hasOwnProperty('teamUid')) + if ( + !( + (message.teamUid && typeof message.teamUid.length === 'number') || + $util.isString(message.teamUid) + ) + ) + return 'teamUid: buffer expected'; + if (message.manageUsers != null && message.hasOwnProperty('manageUsers')) + if (typeof message.manageUsers !== 'boolean') return 'manageUsers: boolean expected'; + if (message.manageRecords != null && message.hasOwnProperty('manageRecords')) + if (typeof message.manageRecords !== 'boolean') return 'manageRecords: boolean expected'; + if (message.sharedFolderKey != null && message.hasOwnProperty('sharedFolderKey')) + if ( + !( + (message.sharedFolderKey && typeof message.sharedFolderKey.length === 'number') || + $util.isString(message.sharedFolderKey) + ) + ) + return 'sharedFolderKey: buffer expected'; + if (message.expiration != null && message.hasOwnProperty('expiration')) + if ( + !$util.isInteger(message.expiration) && + !( + message.expiration && + $util.isInteger(message.expiration.low) && + $util.isInteger(message.expiration.high) + ) + ) + return 'expiration: integer|Long expected'; + if (message.timerNotificationType != null && message.hasOwnProperty('timerNotificationType')) switch (message.timerNotificationType) { - default: - return "timerNotificationType: enum value expected"; - case 0: - case 1: - case 2: - break; + default: + return 'timerNotificationType: enum value expected'; + case 0: + case 1: + case 2: + break; } - if (message.typedSharedFolderKey != null && message.hasOwnProperty("typedSharedFolderKey")) { + if (message.typedSharedFolderKey != null && message.hasOwnProperty('typedSharedFolderKey')) { let error = $root.Folder.EncryptedDataKey.verify(message.typedSharedFolderKey); - if (error) - return "typedSharedFolderKey." + error; + if (error) return 'typedSharedFolderKey.' + error; } - if (message.rotateOnExpiration != null && message.hasOwnProperty("rotateOnExpiration")) - if (typeof message.rotateOnExpiration !== "boolean") - return "rotateOnExpiration: boolean expected"; + if (message.rotateOnExpiration != null && message.hasOwnProperty('rotateOnExpiration')) + if (typeof message.rotateOnExpiration !== 'boolean') return 'rotateOnExpiration: boolean expected'; return null; }; @@ -165070,59 +171382,61 @@ export const Folder = $root.Folder = (() => { * @returns {Folder.SharedFolderUpdateTeam} SharedFolderUpdateTeam */ SharedFolderUpdateTeam.fromObject = function fromObject(object) { - if (object instanceof $root.Folder.SharedFolderUpdateTeam) - return object; + if (object instanceof $root.Folder.SharedFolderUpdateTeam) return object; let message = new $root.Folder.SharedFolderUpdateTeam(); if (object.teamUid != null) - if (typeof object.teamUid === "string") - $util.base64.decode(object.teamUid, message.teamUid = $util.newBuffer($util.base64.length(object.teamUid)), 0); - else if (object.teamUid.length >= 0) - message.teamUid = object.teamUid; - if (object.manageUsers != null) - message.manageUsers = Boolean(object.manageUsers); - if (object.manageRecords != null) - message.manageRecords = Boolean(object.manageRecords); + if (typeof object.teamUid === 'string') + $util.base64.decode( + object.teamUid, + (message.teamUid = $util.newBuffer($util.base64.length(object.teamUid))), + 0 + ); + else if (object.teamUid.length >= 0) message.teamUid = object.teamUid; + if (object.manageUsers != null) message.manageUsers = Boolean(object.manageUsers); + if (object.manageRecords != null) message.manageRecords = Boolean(object.manageRecords); if (object.sharedFolderKey != null) - if (typeof object.sharedFolderKey === "string") - $util.base64.decode(object.sharedFolderKey, message.sharedFolderKey = $util.newBuffer($util.base64.length(object.sharedFolderKey)), 0); - else if (object.sharedFolderKey.length >= 0) - message.sharedFolderKey = object.sharedFolderKey; + if (typeof object.sharedFolderKey === 'string') + $util.base64.decode( + object.sharedFolderKey, + (message.sharedFolderKey = $util.newBuffer($util.base64.length(object.sharedFolderKey))), + 0 + ); + else if (object.sharedFolderKey.length >= 0) message.sharedFolderKey = object.sharedFolderKey; if (object.expiration != null) - if ($util.Long) - (message.expiration = $util.Long.fromValue(object.expiration)).unsigned = false; - else if (typeof object.expiration === "string") - message.expiration = parseInt(object.expiration, 10); - else if (typeof object.expiration === "number") - message.expiration = object.expiration; - else if (typeof object.expiration === "object") - message.expiration = new $util.LongBits(object.expiration.low >>> 0, object.expiration.high >>> 0).toNumber(); + if ($util.Long) (message.expiration = $util.Long.fromValue(object.expiration)).unsigned = false; + else if (typeof object.expiration === 'string') message.expiration = parseInt(object.expiration, 10); + else if (typeof object.expiration === 'number') message.expiration = object.expiration; + else if (typeof object.expiration === 'object') + message.expiration = new $util.LongBits( + object.expiration.low >>> 0, + object.expiration.high >>> 0 + ).toNumber(); switch (object.timerNotificationType) { - default: - if (typeof object.timerNotificationType === "number") { - message.timerNotificationType = object.timerNotificationType; - break; - } - break; - case "NOTIFICATION_OFF": - case 0: - message.timerNotificationType = 0; - break; - case "NOTIFY_OWNER": - case 1: - message.timerNotificationType = 1; - break; - case "NOTIFY_PRIVILEGED_USERS": - case 2: - message.timerNotificationType = 2; - break; + default: + if (typeof object.timerNotificationType === 'number') { + message.timerNotificationType = object.timerNotificationType; + break; + } + break; + case 'NOTIFICATION_OFF': + case 0: + message.timerNotificationType = 0; + break; + case 'NOTIFY_OWNER': + case 1: + message.timerNotificationType = 1; + break; + case 'NOTIFY_PRIVILEGED_USERS': + case 2: + message.timerNotificationType = 2; + break; } if (object.typedSharedFolderKey != null) { - if (typeof object.typedSharedFolderKey !== "object") - throw TypeError(".Folder.SharedFolderUpdateTeam.typedSharedFolderKey: object expected"); + if (typeof object.typedSharedFolderKey !== 'object') + throw TypeError('.Folder.SharedFolderUpdateTeam.typedSharedFolderKey: object expected'); message.typedSharedFolderKey = $root.Folder.EncryptedDataKey.fromObject(object.typedSharedFolderKey); } - if (object.rotateOnExpiration != null) - message.rotateOnExpiration = Boolean(object.rotateOnExpiration); + if (object.rotateOnExpiration != null) message.rotateOnExpiration = Boolean(object.rotateOnExpiration); return message; }; @@ -165136,53 +171450,74 @@ export const Folder = $root.Folder = (() => { * @returns {Object.} Plain object */ SharedFolderUpdateTeam.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.teamUid = ""; + if (options.bytes === String) object.teamUid = ''; else { object.teamUid = []; - if (options.bytes !== Array) - object.teamUid = $util.newBuffer(object.teamUid); + if (options.bytes !== Array) object.teamUid = $util.newBuffer(object.teamUid); } object.manageUsers = false; object.manageRecords = false; - if (options.bytes === String) - object.sharedFolderKey = ""; + if (options.bytes === String) object.sharedFolderKey = ''; else { object.sharedFolderKey = []; - if (options.bytes !== Array) - object.sharedFolderKey = $util.newBuffer(object.sharedFolderKey); + if (options.bytes !== Array) object.sharedFolderKey = $util.newBuffer(object.sharedFolderKey); } if ($util.Long) { let long = new $util.Long(0, 0, false); - object.expiration = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.expiration = options.longs === String ? "0" : 0; - object.timerNotificationType = options.enums === String ? "NOTIFICATION_OFF" : 0; + object.expiration = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.expiration = options.longs === String ? '0' : 0; + object.timerNotificationType = options.enums === String ? 'NOTIFICATION_OFF' : 0; object.typedSharedFolderKey = null; object.rotateOnExpiration = false; } - if (message.teamUid != null && message.hasOwnProperty("teamUid")) - object.teamUid = options.bytes === String ? $util.base64.encode(message.teamUid, 0, message.teamUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.teamUid) : message.teamUid; - if (message.manageUsers != null && message.hasOwnProperty("manageUsers")) + if (message.teamUid != null && message.hasOwnProperty('teamUid')) + object.teamUid = + options.bytes === String + ? $util.base64.encode(message.teamUid, 0, message.teamUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.teamUid) + : message.teamUid; + if (message.manageUsers != null && message.hasOwnProperty('manageUsers')) object.manageUsers = message.manageUsers; - if (message.manageRecords != null && message.hasOwnProperty("manageRecords")) + if (message.manageRecords != null && message.hasOwnProperty('manageRecords')) object.manageRecords = message.manageRecords; - if (message.sharedFolderKey != null && message.hasOwnProperty("sharedFolderKey")) - object.sharedFolderKey = options.bytes === String ? $util.base64.encode(message.sharedFolderKey, 0, message.sharedFolderKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.sharedFolderKey) : message.sharedFolderKey; - if (message.expiration != null && message.hasOwnProperty("expiration")) - if (typeof message.expiration === "number") + if (message.sharedFolderKey != null && message.hasOwnProperty('sharedFolderKey')) + object.sharedFolderKey = + options.bytes === String + ? $util.base64.encode(message.sharedFolderKey, 0, message.sharedFolderKey.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.sharedFolderKey) + : message.sharedFolderKey; + if (message.expiration != null && message.hasOwnProperty('expiration')) + if (typeof message.expiration === 'number') object.expiration = options.longs === String ? String(message.expiration) : message.expiration; else - object.expiration = options.longs === String ? $util.Long.prototype.toString.call(message.expiration) : options.longs === Number ? new $util.LongBits(message.expiration.low >>> 0, message.expiration.high >>> 0).toNumber() : message.expiration; - if (message.timerNotificationType != null && message.hasOwnProperty("timerNotificationType")) - object.timerNotificationType = options.enums === String ? $root.Records.TimerNotificationType[message.timerNotificationType] === undefined ? message.timerNotificationType : $root.Records.TimerNotificationType[message.timerNotificationType] : message.timerNotificationType; - if (message.typedSharedFolderKey != null && message.hasOwnProperty("typedSharedFolderKey")) - object.typedSharedFolderKey = $root.Folder.EncryptedDataKey.toObject(message.typedSharedFolderKey, options); - if (message.rotateOnExpiration != null && message.hasOwnProperty("rotateOnExpiration")) + object.expiration = + options.longs === String + ? $util.Long.prototype.toString.call(message.expiration) + : options.longs === Number + ? new $util.LongBits( + message.expiration.low >>> 0, + message.expiration.high >>> 0 + ).toNumber() + : message.expiration; + if (message.timerNotificationType != null && message.hasOwnProperty('timerNotificationType')) + object.timerNotificationType = + options.enums === String + ? $root.Records.TimerNotificationType[message.timerNotificationType] === undefined + ? message.timerNotificationType + : $root.Records.TimerNotificationType[message.timerNotificationType] + : message.timerNotificationType; + if (message.typedSharedFolderKey != null && message.hasOwnProperty('typedSharedFolderKey')) + object.typedSharedFolderKey = $root.Folder.EncryptedDataKey.toObject( + message.typedSharedFolderKey, + options + ); + if (message.rotateOnExpiration != null && message.hasOwnProperty('rotateOnExpiration')) object.rotateOnExpiration = message.rotateOnExpiration; return object; }; @@ -165208,16 +171543,15 @@ export const Folder = $root.Folder = (() => { */ SharedFolderUpdateTeam.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Folder.SharedFolderUpdateTeam"; + return typeUrlPrefix + '/Folder.SharedFolderUpdateTeam'; }; return SharedFolderUpdateTeam; })(); - Folder.SharedFolderUpdateV3Request = (function() { - + Folder.SharedFolderUpdateV3Request = (function () { /** * Properties of a SharedFolderUpdateV3Request. * @memberof Folder @@ -165264,8 +171598,7 @@ export const Folder = $root.Folder = (() => { this.sharedFolderRemoveTeam = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -165298,7 +171631,7 @@ export const Folder = $root.Folder = (() => { * @memberof Folder.SharedFolderUpdateV3Request * @instance */ - SharedFolderUpdateV3Request.prototype.revision = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + SharedFolderUpdateV3Request.prototype.revision = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * SharedFolderUpdateV3Request forceUpdate. @@ -165426,7 +171759,7 @@ export const Folder = $root.Folder = (() => { * @memberof Folder.SharedFolderUpdateV3Request * @instance */ - SharedFolderUpdateV3Request.prototype.sharedFolderOwner = ""; + SharedFolderUpdateV3Request.prototype.sharedFolderOwner = ''; /** * Creates a new SharedFolderUpdateV3Request instance using the specified properties. @@ -165450,57 +171783,80 @@ export const Folder = $root.Folder = (() => { * @returns {$protobuf.Writer} Writer */ SharedFolderUpdateV3Request.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.sharedFolderUpdateOperationDontUse != null && Object.hasOwnProperty.call(message, "sharedFolderUpdateOperationDontUse")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.sharedFolderUpdateOperationDontUse); - if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, "sharedFolderUid")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.sharedFolderUid); - if (message.encryptedSharedFolderName != null && Object.hasOwnProperty.call(message, "encryptedSharedFolderName")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.encryptedSharedFolderName); - if (message.revision != null && Object.hasOwnProperty.call(message, "revision")) - writer.uint32(/* id 4, wireType 0 =*/32).int64(message.revision); - if (message.forceUpdate != null && Object.hasOwnProperty.call(message, "forceUpdate")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.forceUpdate); - if (message.fromTeamUid != null && Object.hasOwnProperty.call(message, "fromTeamUid")) - writer.uint32(/* id 6, wireType 2 =*/50).bytes(message.fromTeamUid); - if (message.defaultManageUsers != null && Object.hasOwnProperty.call(message, "defaultManageUsers")) - writer.uint32(/* id 7, wireType 0 =*/56).int32(message.defaultManageUsers); - if (message.defaultManageRecords != null && Object.hasOwnProperty.call(message, "defaultManageRecords")) - writer.uint32(/* id 8, wireType 0 =*/64).int32(message.defaultManageRecords); - if (message.defaultCanEdit != null && Object.hasOwnProperty.call(message, "defaultCanEdit")) - writer.uint32(/* id 9, wireType 0 =*/72).int32(message.defaultCanEdit); - if (message.defaultCanShare != null && Object.hasOwnProperty.call(message, "defaultCanShare")) - writer.uint32(/* id 10, wireType 0 =*/80).int32(message.defaultCanShare); + if (!writer) writer = $Writer.create(); + if ( + message.sharedFolderUpdateOperationDontUse != null && + Object.hasOwnProperty.call(message, 'sharedFolderUpdateOperationDontUse') + ) + writer.uint32(/* id 1, wireType 0 =*/ 8).int32(message.sharedFolderUpdateOperationDontUse); + if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, 'sharedFolderUid')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.sharedFolderUid); + if ( + message.encryptedSharedFolderName != null && + Object.hasOwnProperty.call(message, 'encryptedSharedFolderName') + ) + writer.uint32(/* id 3, wireType 2 =*/ 26).bytes(message.encryptedSharedFolderName); + if (message.revision != null && Object.hasOwnProperty.call(message, 'revision')) + writer.uint32(/* id 4, wireType 0 =*/ 32).int64(message.revision); + if (message.forceUpdate != null && Object.hasOwnProperty.call(message, 'forceUpdate')) + writer.uint32(/* id 5, wireType 0 =*/ 40).bool(message.forceUpdate); + if (message.fromTeamUid != null && Object.hasOwnProperty.call(message, 'fromTeamUid')) + writer.uint32(/* id 6, wireType 2 =*/ 50).bytes(message.fromTeamUid); + if (message.defaultManageUsers != null && Object.hasOwnProperty.call(message, 'defaultManageUsers')) + writer.uint32(/* id 7, wireType 0 =*/ 56).int32(message.defaultManageUsers); + if (message.defaultManageRecords != null && Object.hasOwnProperty.call(message, 'defaultManageRecords')) + writer.uint32(/* id 8, wireType 0 =*/ 64).int32(message.defaultManageRecords); + if (message.defaultCanEdit != null && Object.hasOwnProperty.call(message, 'defaultCanEdit')) + writer.uint32(/* id 9, wireType 0 =*/ 72).int32(message.defaultCanEdit); + if (message.defaultCanShare != null && Object.hasOwnProperty.call(message, 'defaultCanShare')) + writer.uint32(/* id 10, wireType 0 =*/ 80).int32(message.defaultCanShare); if (message.sharedFolderAddRecord != null && message.sharedFolderAddRecord.length) for (let i = 0; i < message.sharedFolderAddRecord.length; ++i) - $root.Folder.SharedFolderUpdateRecord.encode(message.sharedFolderAddRecord[i], writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); + $root.Folder.SharedFolderUpdateRecord.encode( + message.sharedFolderAddRecord[i], + writer.uint32(/* id 11, wireType 2 =*/ 90).fork() + ).ldelim(); if (message.sharedFolderAddUser != null && message.sharedFolderAddUser.length) for (let i = 0; i < message.sharedFolderAddUser.length; ++i) - $root.Folder.SharedFolderUpdateUser.encode(message.sharedFolderAddUser[i], writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); + $root.Folder.SharedFolderUpdateUser.encode( + message.sharedFolderAddUser[i], + writer.uint32(/* id 12, wireType 2 =*/ 98).fork() + ).ldelim(); if (message.sharedFolderAddTeam != null && message.sharedFolderAddTeam.length) for (let i = 0; i < message.sharedFolderAddTeam.length; ++i) - $root.Folder.SharedFolderUpdateTeam.encode(message.sharedFolderAddTeam[i], writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); + $root.Folder.SharedFolderUpdateTeam.encode( + message.sharedFolderAddTeam[i], + writer.uint32(/* id 13, wireType 2 =*/ 106).fork() + ).ldelim(); if (message.sharedFolderUpdateRecord != null && message.sharedFolderUpdateRecord.length) for (let i = 0; i < message.sharedFolderUpdateRecord.length; ++i) - $root.Folder.SharedFolderUpdateRecord.encode(message.sharedFolderUpdateRecord[i], writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim(); + $root.Folder.SharedFolderUpdateRecord.encode( + message.sharedFolderUpdateRecord[i], + writer.uint32(/* id 14, wireType 2 =*/ 114).fork() + ).ldelim(); if (message.sharedFolderUpdateUser != null && message.sharedFolderUpdateUser.length) for (let i = 0; i < message.sharedFolderUpdateUser.length; ++i) - $root.Folder.SharedFolderUpdateUser.encode(message.sharedFolderUpdateUser[i], writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim(); + $root.Folder.SharedFolderUpdateUser.encode( + message.sharedFolderUpdateUser[i], + writer.uint32(/* id 15, wireType 2 =*/ 122).fork() + ).ldelim(); if (message.sharedFolderUpdateTeam != null && message.sharedFolderUpdateTeam.length) for (let i = 0; i < message.sharedFolderUpdateTeam.length; ++i) - $root.Folder.SharedFolderUpdateTeam.encode(message.sharedFolderUpdateTeam[i], writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim(); + $root.Folder.SharedFolderUpdateTeam.encode( + message.sharedFolderUpdateTeam[i], + writer.uint32(/* id 16, wireType 2 =*/ 130).fork() + ).ldelim(); if (message.sharedFolderRemoveRecord != null && message.sharedFolderRemoveRecord.length) for (let i = 0; i < message.sharedFolderRemoveRecord.length; ++i) - writer.uint32(/* id 17, wireType 2 =*/138).bytes(message.sharedFolderRemoveRecord[i]); + writer.uint32(/* id 17, wireType 2 =*/ 138).bytes(message.sharedFolderRemoveRecord[i]); if (message.sharedFolderRemoveUser != null && message.sharedFolderRemoveUser.length) for (let i = 0; i < message.sharedFolderRemoveUser.length; ++i) - writer.uint32(/* id 18, wireType 2 =*/146).string(message.sharedFolderRemoveUser[i]); + writer.uint32(/* id 18, wireType 2 =*/ 146).string(message.sharedFolderRemoveUser[i]); if (message.sharedFolderRemoveTeam != null && message.sharedFolderRemoveTeam.length) for (let i = 0; i < message.sharedFolderRemoveTeam.length; ++i) - writer.uint32(/* id 19, wireType 2 =*/154).bytes(message.sharedFolderRemoveTeam[i]); - if (message.sharedFolderOwner != null && Object.hasOwnProperty.call(message, "sharedFolderOwner")) - writer.uint32(/* id 20, wireType 2 =*/162).string(message.sharedFolderOwner); + writer.uint32(/* id 19, wireType 2 =*/ 154).bytes(message.sharedFolderRemoveTeam[i]); + if (message.sharedFolderOwner != null && Object.hasOwnProperty.call(message, 'sharedFolderOwner')) + writer.uint32(/* id 20, wireType 2 =*/ 162).string(message.sharedFolderOwner); return writer; }; @@ -165529,113 +171885,125 @@ export const Folder = $root.Folder = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SharedFolderUpdateV3Request.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Folder.SharedFolderUpdateV3Request(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Folder.SharedFolderUpdateV3Request(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.sharedFolderUpdateOperationDontUse = reader.int32(); break; } - case 2: { + case 2: { message.sharedFolderUid = reader.bytes(); break; } - case 3: { + case 3: { message.encryptedSharedFolderName = reader.bytes(); break; } - case 4: { + case 4: { message.revision = reader.int64(); break; } - case 5: { + case 5: { message.forceUpdate = reader.bool(); break; } - case 6: { + case 6: { message.fromTeamUid = reader.bytes(); break; } - case 7: { + case 7: { message.defaultManageUsers = reader.int32(); break; } - case 8: { + case 8: { message.defaultManageRecords = reader.int32(); break; } - case 9: { + case 9: { message.defaultCanEdit = reader.int32(); break; } - case 10: { + case 10: { message.defaultCanShare = reader.int32(); break; } - case 11: { + case 11: { if (!(message.sharedFolderAddRecord && message.sharedFolderAddRecord.length)) message.sharedFolderAddRecord = []; - message.sharedFolderAddRecord.push($root.Folder.SharedFolderUpdateRecord.decode(reader, reader.uint32())); + message.sharedFolderAddRecord.push( + $root.Folder.SharedFolderUpdateRecord.decode(reader, reader.uint32()) + ); break; } - case 12: { + case 12: { if (!(message.sharedFolderAddUser && message.sharedFolderAddUser.length)) message.sharedFolderAddUser = []; - message.sharedFolderAddUser.push($root.Folder.SharedFolderUpdateUser.decode(reader, reader.uint32())); + message.sharedFolderAddUser.push( + $root.Folder.SharedFolderUpdateUser.decode(reader, reader.uint32()) + ); break; } - case 13: { + case 13: { if (!(message.sharedFolderAddTeam && message.sharedFolderAddTeam.length)) message.sharedFolderAddTeam = []; - message.sharedFolderAddTeam.push($root.Folder.SharedFolderUpdateTeam.decode(reader, reader.uint32())); + message.sharedFolderAddTeam.push( + $root.Folder.SharedFolderUpdateTeam.decode(reader, reader.uint32()) + ); break; } - case 14: { + case 14: { if (!(message.sharedFolderUpdateRecord && message.sharedFolderUpdateRecord.length)) message.sharedFolderUpdateRecord = []; - message.sharedFolderUpdateRecord.push($root.Folder.SharedFolderUpdateRecord.decode(reader, reader.uint32())); + message.sharedFolderUpdateRecord.push( + $root.Folder.SharedFolderUpdateRecord.decode(reader, reader.uint32()) + ); break; } - case 15: { + case 15: { if (!(message.sharedFolderUpdateUser && message.sharedFolderUpdateUser.length)) message.sharedFolderUpdateUser = []; - message.sharedFolderUpdateUser.push($root.Folder.SharedFolderUpdateUser.decode(reader, reader.uint32())); + message.sharedFolderUpdateUser.push( + $root.Folder.SharedFolderUpdateUser.decode(reader, reader.uint32()) + ); break; } - case 16: { + case 16: { if (!(message.sharedFolderUpdateTeam && message.sharedFolderUpdateTeam.length)) message.sharedFolderUpdateTeam = []; - message.sharedFolderUpdateTeam.push($root.Folder.SharedFolderUpdateTeam.decode(reader, reader.uint32())); + message.sharedFolderUpdateTeam.push( + $root.Folder.SharedFolderUpdateTeam.decode(reader, reader.uint32()) + ); break; } - case 17: { + case 17: { if (!(message.sharedFolderRemoveRecord && message.sharedFolderRemoveRecord.length)) message.sharedFolderRemoveRecord = []; message.sharedFolderRemoveRecord.push(reader.bytes()); break; } - case 18: { + case 18: { if (!(message.sharedFolderRemoveUser && message.sharedFolderRemoveUser.length)) message.sharedFolderRemoveUser = []; message.sharedFolderRemoveUser.push(reader.string()); break; } - case 19: { + case 19: { if (!(message.sharedFolderRemoveTeam && message.sharedFolderRemoveTeam.length)) message.sharedFolderRemoveTeam = []; message.sharedFolderRemoveTeam.push(reader.bytes()); break; } - case 20: { + case 20: { message.sharedFolderOwner = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -165652,8 +172020,7 @@ export const Folder = $root.Folder = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SharedFolderUpdateV3Request.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -165666,140 +172033,160 @@ export const Folder = $root.Folder = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ SharedFolderUpdateV3Request.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.sharedFolderUpdateOperationDontUse != null && message.hasOwnProperty("sharedFolderUpdateOperationDontUse")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if ( + message.sharedFolderUpdateOperationDontUse != null && + message.hasOwnProperty('sharedFolderUpdateOperationDontUse') + ) if (!$util.isInteger(message.sharedFolderUpdateOperationDontUse)) - return "sharedFolderUpdateOperationDontUse: integer expected"; - if (message.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) - if (!(message.sharedFolderUid && typeof message.sharedFolderUid.length === "number" || $util.isString(message.sharedFolderUid))) - return "sharedFolderUid: buffer expected"; - if (message.encryptedSharedFolderName != null && message.hasOwnProperty("encryptedSharedFolderName")) - if (!(message.encryptedSharedFolderName && typeof message.encryptedSharedFolderName.length === "number" || $util.isString(message.encryptedSharedFolderName))) - return "encryptedSharedFolderName: buffer expected"; - if (message.revision != null && message.hasOwnProperty("revision")) - if (!$util.isInteger(message.revision) && !(message.revision && $util.isInteger(message.revision.low) && $util.isInteger(message.revision.high))) - return "revision: integer|Long expected"; - if (message.forceUpdate != null && message.hasOwnProperty("forceUpdate")) - if (typeof message.forceUpdate !== "boolean") - return "forceUpdate: boolean expected"; - if (message.fromTeamUid != null && message.hasOwnProperty("fromTeamUid")) - if (!(message.fromTeamUid && typeof message.fromTeamUid.length === "number" || $util.isString(message.fromTeamUid))) - return "fromTeamUid: buffer expected"; - if (message.defaultManageUsers != null && message.hasOwnProperty("defaultManageUsers")) + return 'sharedFolderUpdateOperationDontUse: integer expected'; + if (message.sharedFolderUid != null && message.hasOwnProperty('sharedFolderUid')) + if ( + !( + (message.sharedFolderUid && typeof message.sharedFolderUid.length === 'number') || + $util.isString(message.sharedFolderUid) + ) + ) + return 'sharedFolderUid: buffer expected'; + if (message.encryptedSharedFolderName != null && message.hasOwnProperty('encryptedSharedFolderName')) + if ( + !( + (message.encryptedSharedFolderName && + typeof message.encryptedSharedFolderName.length === 'number') || + $util.isString(message.encryptedSharedFolderName) + ) + ) + return 'encryptedSharedFolderName: buffer expected'; + if (message.revision != null && message.hasOwnProperty('revision')) + if ( + !$util.isInteger(message.revision) && + !( + message.revision && + $util.isInteger(message.revision.low) && + $util.isInteger(message.revision.high) + ) + ) + return 'revision: integer|Long expected'; + if (message.forceUpdate != null && message.hasOwnProperty('forceUpdate')) + if (typeof message.forceUpdate !== 'boolean') return 'forceUpdate: boolean expected'; + if (message.fromTeamUid != null && message.hasOwnProperty('fromTeamUid')) + if ( + !( + (message.fromTeamUid && typeof message.fromTeamUid.length === 'number') || + $util.isString(message.fromTeamUid) + ) + ) + return 'fromTeamUid: buffer expected'; + if (message.defaultManageUsers != null && message.hasOwnProperty('defaultManageUsers')) switch (message.defaultManageUsers) { - default: - return "defaultManageUsers: enum value expected"; - case 0: - case 1: - case 2: - break; + default: + return 'defaultManageUsers: enum value expected'; + case 0: + case 1: + case 2: + break; } - if (message.defaultManageRecords != null && message.hasOwnProperty("defaultManageRecords")) + if (message.defaultManageRecords != null && message.hasOwnProperty('defaultManageRecords')) switch (message.defaultManageRecords) { - default: - return "defaultManageRecords: enum value expected"; - case 0: - case 1: - case 2: - break; + default: + return 'defaultManageRecords: enum value expected'; + case 0: + case 1: + case 2: + break; } - if (message.defaultCanEdit != null && message.hasOwnProperty("defaultCanEdit")) + if (message.defaultCanEdit != null && message.hasOwnProperty('defaultCanEdit')) switch (message.defaultCanEdit) { - default: - return "defaultCanEdit: enum value expected"; - case 0: - case 1: - case 2: - break; + default: + return 'defaultCanEdit: enum value expected'; + case 0: + case 1: + case 2: + break; } - if (message.defaultCanShare != null && message.hasOwnProperty("defaultCanShare")) + if (message.defaultCanShare != null && message.hasOwnProperty('defaultCanShare')) switch (message.defaultCanShare) { - default: - return "defaultCanShare: enum value expected"; - case 0: - case 1: - case 2: - break; + default: + return 'defaultCanShare: enum value expected'; + case 0: + case 1: + case 2: + break; } - if (message.sharedFolderAddRecord != null && message.hasOwnProperty("sharedFolderAddRecord")) { - if (!Array.isArray(message.sharedFolderAddRecord)) - return "sharedFolderAddRecord: array expected"; + if (message.sharedFolderAddRecord != null && message.hasOwnProperty('sharedFolderAddRecord')) { + if (!Array.isArray(message.sharedFolderAddRecord)) return 'sharedFolderAddRecord: array expected'; for (let i = 0; i < message.sharedFolderAddRecord.length; ++i) { let error = $root.Folder.SharedFolderUpdateRecord.verify(message.sharedFolderAddRecord[i]); - if (error) - return "sharedFolderAddRecord." + error; + if (error) return 'sharedFolderAddRecord.' + error; } } - if (message.sharedFolderAddUser != null && message.hasOwnProperty("sharedFolderAddUser")) { - if (!Array.isArray(message.sharedFolderAddUser)) - return "sharedFolderAddUser: array expected"; + if (message.sharedFolderAddUser != null && message.hasOwnProperty('sharedFolderAddUser')) { + if (!Array.isArray(message.sharedFolderAddUser)) return 'sharedFolderAddUser: array expected'; for (let i = 0; i < message.sharedFolderAddUser.length; ++i) { let error = $root.Folder.SharedFolderUpdateUser.verify(message.sharedFolderAddUser[i]); - if (error) - return "sharedFolderAddUser." + error; + if (error) return 'sharedFolderAddUser.' + error; } } - if (message.sharedFolderAddTeam != null && message.hasOwnProperty("sharedFolderAddTeam")) { - if (!Array.isArray(message.sharedFolderAddTeam)) - return "sharedFolderAddTeam: array expected"; + if (message.sharedFolderAddTeam != null && message.hasOwnProperty('sharedFolderAddTeam')) { + if (!Array.isArray(message.sharedFolderAddTeam)) return 'sharedFolderAddTeam: array expected'; for (let i = 0; i < message.sharedFolderAddTeam.length; ++i) { let error = $root.Folder.SharedFolderUpdateTeam.verify(message.sharedFolderAddTeam[i]); - if (error) - return "sharedFolderAddTeam." + error; + if (error) return 'sharedFolderAddTeam.' + error; } } - if (message.sharedFolderUpdateRecord != null && message.hasOwnProperty("sharedFolderUpdateRecord")) { - if (!Array.isArray(message.sharedFolderUpdateRecord)) - return "sharedFolderUpdateRecord: array expected"; + if (message.sharedFolderUpdateRecord != null && message.hasOwnProperty('sharedFolderUpdateRecord')) { + if (!Array.isArray(message.sharedFolderUpdateRecord)) return 'sharedFolderUpdateRecord: array expected'; for (let i = 0; i < message.sharedFolderUpdateRecord.length; ++i) { let error = $root.Folder.SharedFolderUpdateRecord.verify(message.sharedFolderUpdateRecord[i]); - if (error) - return "sharedFolderUpdateRecord." + error; + if (error) return 'sharedFolderUpdateRecord.' + error; } } - if (message.sharedFolderUpdateUser != null && message.hasOwnProperty("sharedFolderUpdateUser")) { - if (!Array.isArray(message.sharedFolderUpdateUser)) - return "sharedFolderUpdateUser: array expected"; + if (message.sharedFolderUpdateUser != null && message.hasOwnProperty('sharedFolderUpdateUser')) { + if (!Array.isArray(message.sharedFolderUpdateUser)) return 'sharedFolderUpdateUser: array expected'; for (let i = 0; i < message.sharedFolderUpdateUser.length; ++i) { let error = $root.Folder.SharedFolderUpdateUser.verify(message.sharedFolderUpdateUser[i]); - if (error) - return "sharedFolderUpdateUser." + error; + if (error) return 'sharedFolderUpdateUser.' + error; } } - if (message.sharedFolderUpdateTeam != null && message.hasOwnProperty("sharedFolderUpdateTeam")) { - if (!Array.isArray(message.sharedFolderUpdateTeam)) - return "sharedFolderUpdateTeam: array expected"; + if (message.sharedFolderUpdateTeam != null && message.hasOwnProperty('sharedFolderUpdateTeam')) { + if (!Array.isArray(message.sharedFolderUpdateTeam)) return 'sharedFolderUpdateTeam: array expected'; for (let i = 0; i < message.sharedFolderUpdateTeam.length; ++i) { let error = $root.Folder.SharedFolderUpdateTeam.verify(message.sharedFolderUpdateTeam[i]); - if (error) - return "sharedFolderUpdateTeam." + error; + if (error) return 'sharedFolderUpdateTeam.' + error; } } - if (message.sharedFolderRemoveRecord != null && message.hasOwnProperty("sharedFolderRemoveRecord")) { - if (!Array.isArray(message.sharedFolderRemoveRecord)) - return "sharedFolderRemoveRecord: array expected"; + if (message.sharedFolderRemoveRecord != null && message.hasOwnProperty('sharedFolderRemoveRecord')) { + if (!Array.isArray(message.sharedFolderRemoveRecord)) return 'sharedFolderRemoveRecord: array expected'; for (let i = 0; i < message.sharedFolderRemoveRecord.length; ++i) - if (!(message.sharedFolderRemoveRecord[i] && typeof message.sharedFolderRemoveRecord[i].length === "number" || $util.isString(message.sharedFolderRemoveRecord[i]))) - return "sharedFolderRemoveRecord: buffer[] expected"; - } - if (message.sharedFolderRemoveUser != null && message.hasOwnProperty("sharedFolderRemoveUser")) { - if (!Array.isArray(message.sharedFolderRemoveUser)) - return "sharedFolderRemoveUser: array expected"; + if ( + !( + (message.sharedFolderRemoveRecord[i] && + typeof message.sharedFolderRemoveRecord[i].length === 'number') || + $util.isString(message.sharedFolderRemoveRecord[i]) + ) + ) + return 'sharedFolderRemoveRecord: buffer[] expected'; + } + if (message.sharedFolderRemoveUser != null && message.hasOwnProperty('sharedFolderRemoveUser')) { + if (!Array.isArray(message.sharedFolderRemoveUser)) return 'sharedFolderRemoveUser: array expected'; for (let i = 0; i < message.sharedFolderRemoveUser.length; ++i) if (!$util.isString(message.sharedFolderRemoveUser[i])) - return "sharedFolderRemoveUser: string[] expected"; + return 'sharedFolderRemoveUser: string[] expected'; } - if (message.sharedFolderRemoveTeam != null && message.hasOwnProperty("sharedFolderRemoveTeam")) { - if (!Array.isArray(message.sharedFolderRemoveTeam)) - return "sharedFolderRemoveTeam: array expected"; + if (message.sharedFolderRemoveTeam != null && message.hasOwnProperty('sharedFolderRemoveTeam')) { + if (!Array.isArray(message.sharedFolderRemoveTeam)) return 'sharedFolderRemoveTeam: array expected'; for (let i = 0; i < message.sharedFolderRemoveTeam.length; ++i) - if (!(message.sharedFolderRemoveTeam[i] && typeof message.sharedFolderRemoveTeam[i].length === "number" || $util.isString(message.sharedFolderRemoveTeam[i]))) - return "sharedFolderRemoveTeam: buffer[] expected"; + if ( + !( + (message.sharedFolderRemoveTeam[i] && + typeof message.sharedFolderRemoveTeam[i].length === 'number') || + $util.isString(message.sharedFolderRemoveTeam[i]) + ) + ) + return 'sharedFolderRemoveTeam: buffer[] expected'; } - if (message.sharedFolderOwner != null && message.hasOwnProperty("sharedFolderOwner")) - if (!$util.isString(message.sharedFolderOwner)) - return "sharedFolderOwner: string expected"; + if (message.sharedFolderOwner != null && message.hasOwnProperty('sharedFolderOwner')) + if (!$util.isString(message.sharedFolderOwner)) return 'sharedFolderOwner: string expected'; return null; }; @@ -165812,206 +172199,241 @@ export const Folder = $root.Folder = (() => { * @returns {Folder.SharedFolderUpdateV3Request} SharedFolderUpdateV3Request */ SharedFolderUpdateV3Request.fromObject = function fromObject(object) { - if (object instanceof $root.Folder.SharedFolderUpdateV3Request) - return object; + if (object instanceof $root.Folder.SharedFolderUpdateV3Request) return object; let message = new $root.Folder.SharedFolderUpdateV3Request(); if (object.sharedFolderUpdateOperationDontUse != null) message.sharedFolderUpdateOperationDontUse = object.sharedFolderUpdateOperationDontUse | 0; if (object.sharedFolderUid != null) - if (typeof object.sharedFolderUid === "string") - $util.base64.decode(object.sharedFolderUid, message.sharedFolderUid = $util.newBuffer($util.base64.length(object.sharedFolderUid)), 0); - else if (object.sharedFolderUid.length >= 0) - message.sharedFolderUid = object.sharedFolderUid; + if (typeof object.sharedFolderUid === 'string') + $util.base64.decode( + object.sharedFolderUid, + (message.sharedFolderUid = $util.newBuffer($util.base64.length(object.sharedFolderUid))), + 0 + ); + else if (object.sharedFolderUid.length >= 0) message.sharedFolderUid = object.sharedFolderUid; if (object.encryptedSharedFolderName != null) - if (typeof object.encryptedSharedFolderName === "string") - $util.base64.decode(object.encryptedSharedFolderName, message.encryptedSharedFolderName = $util.newBuffer($util.base64.length(object.encryptedSharedFolderName)), 0); + if (typeof object.encryptedSharedFolderName === 'string') + $util.base64.decode( + object.encryptedSharedFolderName, + (message.encryptedSharedFolderName = $util.newBuffer( + $util.base64.length(object.encryptedSharedFolderName) + )), + 0 + ); else if (object.encryptedSharedFolderName.length >= 0) message.encryptedSharedFolderName = object.encryptedSharedFolderName; if (object.revision != null) - if ($util.Long) - (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; - else if (typeof object.revision === "string") - message.revision = parseInt(object.revision, 10); - else if (typeof object.revision === "number") - message.revision = object.revision; - else if (typeof object.revision === "object") - message.revision = new $util.LongBits(object.revision.low >>> 0, object.revision.high >>> 0).toNumber(); - if (object.forceUpdate != null) - message.forceUpdate = Boolean(object.forceUpdate); + if ($util.Long) (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; + else if (typeof object.revision === 'string') message.revision = parseInt(object.revision, 10); + else if (typeof object.revision === 'number') message.revision = object.revision; + else if (typeof object.revision === 'object') + message.revision = new $util.LongBits( + object.revision.low >>> 0, + object.revision.high >>> 0 + ).toNumber(); + if (object.forceUpdate != null) message.forceUpdate = Boolean(object.forceUpdate); if (object.fromTeamUid != null) - if (typeof object.fromTeamUid === "string") - $util.base64.decode(object.fromTeamUid, message.fromTeamUid = $util.newBuffer($util.base64.length(object.fromTeamUid)), 0); - else if (object.fromTeamUid.length >= 0) - message.fromTeamUid = object.fromTeamUid; + if (typeof object.fromTeamUid === 'string') + $util.base64.decode( + object.fromTeamUid, + (message.fromTeamUid = $util.newBuffer($util.base64.length(object.fromTeamUid))), + 0 + ); + else if (object.fromTeamUid.length >= 0) message.fromTeamUid = object.fromTeamUid; switch (object.defaultManageUsers) { - default: - if (typeof object.defaultManageUsers === "number") { - message.defaultManageUsers = object.defaultManageUsers; - break; - } - break; - case "BOOLEAN_NO_CHANGE": - case 0: - message.defaultManageUsers = 0; - break; - case "BOOLEAN_TRUE": - case 1: - message.defaultManageUsers = 1; - break; - case "BOOLEAN_FALSE": - case 2: - message.defaultManageUsers = 2; - break; + default: + if (typeof object.defaultManageUsers === 'number') { + message.defaultManageUsers = object.defaultManageUsers; + break; + } + break; + case 'BOOLEAN_NO_CHANGE': + case 0: + message.defaultManageUsers = 0; + break; + case 'BOOLEAN_TRUE': + case 1: + message.defaultManageUsers = 1; + break; + case 'BOOLEAN_FALSE': + case 2: + message.defaultManageUsers = 2; + break; } switch (object.defaultManageRecords) { - default: - if (typeof object.defaultManageRecords === "number") { - message.defaultManageRecords = object.defaultManageRecords; - break; - } - break; - case "BOOLEAN_NO_CHANGE": - case 0: - message.defaultManageRecords = 0; - break; - case "BOOLEAN_TRUE": - case 1: - message.defaultManageRecords = 1; - break; - case "BOOLEAN_FALSE": - case 2: - message.defaultManageRecords = 2; - break; + default: + if (typeof object.defaultManageRecords === 'number') { + message.defaultManageRecords = object.defaultManageRecords; + break; + } + break; + case 'BOOLEAN_NO_CHANGE': + case 0: + message.defaultManageRecords = 0; + break; + case 'BOOLEAN_TRUE': + case 1: + message.defaultManageRecords = 1; + break; + case 'BOOLEAN_FALSE': + case 2: + message.defaultManageRecords = 2; + break; } switch (object.defaultCanEdit) { - default: - if (typeof object.defaultCanEdit === "number") { - message.defaultCanEdit = object.defaultCanEdit; - break; - } - break; - case "BOOLEAN_NO_CHANGE": - case 0: - message.defaultCanEdit = 0; - break; - case "BOOLEAN_TRUE": - case 1: - message.defaultCanEdit = 1; - break; - case "BOOLEAN_FALSE": - case 2: - message.defaultCanEdit = 2; - break; + default: + if (typeof object.defaultCanEdit === 'number') { + message.defaultCanEdit = object.defaultCanEdit; + break; + } + break; + case 'BOOLEAN_NO_CHANGE': + case 0: + message.defaultCanEdit = 0; + break; + case 'BOOLEAN_TRUE': + case 1: + message.defaultCanEdit = 1; + break; + case 'BOOLEAN_FALSE': + case 2: + message.defaultCanEdit = 2; + break; } switch (object.defaultCanShare) { - default: - if (typeof object.defaultCanShare === "number") { - message.defaultCanShare = object.defaultCanShare; - break; - } - break; - case "BOOLEAN_NO_CHANGE": - case 0: - message.defaultCanShare = 0; - break; - case "BOOLEAN_TRUE": - case 1: - message.defaultCanShare = 1; - break; - case "BOOLEAN_FALSE": - case 2: - message.defaultCanShare = 2; - break; + default: + if (typeof object.defaultCanShare === 'number') { + message.defaultCanShare = object.defaultCanShare; + break; + } + break; + case 'BOOLEAN_NO_CHANGE': + case 0: + message.defaultCanShare = 0; + break; + case 'BOOLEAN_TRUE': + case 1: + message.defaultCanShare = 1; + break; + case 'BOOLEAN_FALSE': + case 2: + message.defaultCanShare = 2; + break; } if (object.sharedFolderAddRecord) { if (!Array.isArray(object.sharedFolderAddRecord)) - throw TypeError(".Folder.SharedFolderUpdateV3Request.sharedFolderAddRecord: array expected"); + throw TypeError('.Folder.SharedFolderUpdateV3Request.sharedFolderAddRecord: array expected'); message.sharedFolderAddRecord = []; for (let i = 0; i < object.sharedFolderAddRecord.length; ++i) { - if (typeof object.sharedFolderAddRecord[i] !== "object") - throw TypeError(".Folder.SharedFolderUpdateV3Request.sharedFolderAddRecord: object expected"); - message.sharedFolderAddRecord[i] = $root.Folder.SharedFolderUpdateRecord.fromObject(object.sharedFolderAddRecord[i]); + if (typeof object.sharedFolderAddRecord[i] !== 'object') + throw TypeError('.Folder.SharedFolderUpdateV3Request.sharedFolderAddRecord: object expected'); + message.sharedFolderAddRecord[i] = $root.Folder.SharedFolderUpdateRecord.fromObject( + object.sharedFolderAddRecord[i] + ); } } if (object.sharedFolderAddUser) { if (!Array.isArray(object.sharedFolderAddUser)) - throw TypeError(".Folder.SharedFolderUpdateV3Request.sharedFolderAddUser: array expected"); + throw TypeError('.Folder.SharedFolderUpdateV3Request.sharedFolderAddUser: array expected'); message.sharedFolderAddUser = []; for (let i = 0; i < object.sharedFolderAddUser.length; ++i) { - if (typeof object.sharedFolderAddUser[i] !== "object") - throw TypeError(".Folder.SharedFolderUpdateV3Request.sharedFolderAddUser: object expected"); - message.sharedFolderAddUser[i] = $root.Folder.SharedFolderUpdateUser.fromObject(object.sharedFolderAddUser[i]); + if (typeof object.sharedFolderAddUser[i] !== 'object') + throw TypeError('.Folder.SharedFolderUpdateV3Request.sharedFolderAddUser: object expected'); + message.sharedFolderAddUser[i] = $root.Folder.SharedFolderUpdateUser.fromObject( + object.sharedFolderAddUser[i] + ); } } if (object.sharedFolderAddTeam) { if (!Array.isArray(object.sharedFolderAddTeam)) - throw TypeError(".Folder.SharedFolderUpdateV3Request.sharedFolderAddTeam: array expected"); + throw TypeError('.Folder.SharedFolderUpdateV3Request.sharedFolderAddTeam: array expected'); message.sharedFolderAddTeam = []; for (let i = 0; i < object.sharedFolderAddTeam.length; ++i) { - if (typeof object.sharedFolderAddTeam[i] !== "object") - throw TypeError(".Folder.SharedFolderUpdateV3Request.sharedFolderAddTeam: object expected"); - message.sharedFolderAddTeam[i] = $root.Folder.SharedFolderUpdateTeam.fromObject(object.sharedFolderAddTeam[i]); + if (typeof object.sharedFolderAddTeam[i] !== 'object') + throw TypeError('.Folder.SharedFolderUpdateV3Request.sharedFolderAddTeam: object expected'); + message.sharedFolderAddTeam[i] = $root.Folder.SharedFolderUpdateTeam.fromObject( + object.sharedFolderAddTeam[i] + ); } } if (object.sharedFolderUpdateRecord) { if (!Array.isArray(object.sharedFolderUpdateRecord)) - throw TypeError(".Folder.SharedFolderUpdateV3Request.sharedFolderUpdateRecord: array expected"); + throw TypeError('.Folder.SharedFolderUpdateV3Request.sharedFolderUpdateRecord: array expected'); message.sharedFolderUpdateRecord = []; for (let i = 0; i < object.sharedFolderUpdateRecord.length; ++i) { - if (typeof object.sharedFolderUpdateRecord[i] !== "object") - throw TypeError(".Folder.SharedFolderUpdateV3Request.sharedFolderUpdateRecord: object expected"); - message.sharedFolderUpdateRecord[i] = $root.Folder.SharedFolderUpdateRecord.fromObject(object.sharedFolderUpdateRecord[i]); + if (typeof object.sharedFolderUpdateRecord[i] !== 'object') + throw TypeError( + '.Folder.SharedFolderUpdateV3Request.sharedFolderUpdateRecord: object expected' + ); + message.sharedFolderUpdateRecord[i] = $root.Folder.SharedFolderUpdateRecord.fromObject( + object.sharedFolderUpdateRecord[i] + ); } } if (object.sharedFolderUpdateUser) { if (!Array.isArray(object.sharedFolderUpdateUser)) - throw TypeError(".Folder.SharedFolderUpdateV3Request.sharedFolderUpdateUser: array expected"); + throw TypeError('.Folder.SharedFolderUpdateV3Request.sharedFolderUpdateUser: array expected'); message.sharedFolderUpdateUser = []; for (let i = 0; i < object.sharedFolderUpdateUser.length; ++i) { - if (typeof object.sharedFolderUpdateUser[i] !== "object") - throw TypeError(".Folder.SharedFolderUpdateV3Request.sharedFolderUpdateUser: object expected"); - message.sharedFolderUpdateUser[i] = $root.Folder.SharedFolderUpdateUser.fromObject(object.sharedFolderUpdateUser[i]); + if (typeof object.sharedFolderUpdateUser[i] !== 'object') + throw TypeError('.Folder.SharedFolderUpdateV3Request.sharedFolderUpdateUser: object expected'); + message.sharedFolderUpdateUser[i] = $root.Folder.SharedFolderUpdateUser.fromObject( + object.sharedFolderUpdateUser[i] + ); } } if (object.sharedFolderUpdateTeam) { if (!Array.isArray(object.sharedFolderUpdateTeam)) - throw TypeError(".Folder.SharedFolderUpdateV3Request.sharedFolderUpdateTeam: array expected"); + throw TypeError('.Folder.SharedFolderUpdateV3Request.sharedFolderUpdateTeam: array expected'); message.sharedFolderUpdateTeam = []; for (let i = 0; i < object.sharedFolderUpdateTeam.length; ++i) { - if (typeof object.sharedFolderUpdateTeam[i] !== "object") - throw TypeError(".Folder.SharedFolderUpdateV3Request.sharedFolderUpdateTeam: object expected"); - message.sharedFolderUpdateTeam[i] = $root.Folder.SharedFolderUpdateTeam.fromObject(object.sharedFolderUpdateTeam[i]); + if (typeof object.sharedFolderUpdateTeam[i] !== 'object') + throw TypeError('.Folder.SharedFolderUpdateV3Request.sharedFolderUpdateTeam: object expected'); + message.sharedFolderUpdateTeam[i] = $root.Folder.SharedFolderUpdateTeam.fromObject( + object.sharedFolderUpdateTeam[i] + ); } } if (object.sharedFolderRemoveRecord) { if (!Array.isArray(object.sharedFolderRemoveRecord)) - throw TypeError(".Folder.SharedFolderUpdateV3Request.sharedFolderRemoveRecord: array expected"); + throw TypeError('.Folder.SharedFolderUpdateV3Request.sharedFolderRemoveRecord: array expected'); message.sharedFolderRemoveRecord = []; for (let i = 0; i < object.sharedFolderRemoveRecord.length; ++i) - if (typeof object.sharedFolderRemoveRecord[i] === "string") - $util.base64.decode(object.sharedFolderRemoveRecord[i], message.sharedFolderRemoveRecord[i] = $util.newBuffer($util.base64.length(object.sharedFolderRemoveRecord[i])), 0); + if (typeof object.sharedFolderRemoveRecord[i] === 'string') + $util.base64.decode( + object.sharedFolderRemoveRecord[i], + (message.sharedFolderRemoveRecord[i] = $util.newBuffer( + $util.base64.length(object.sharedFolderRemoveRecord[i]) + )), + 0 + ); else if (object.sharedFolderRemoveRecord[i].length >= 0) message.sharedFolderRemoveRecord[i] = object.sharedFolderRemoveRecord[i]; } if (object.sharedFolderRemoveUser) { if (!Array.isArray(object.sharedFolderRemoveUser)) - throw TypeError(".Folder.SharedFolderUpdateV3Request.sharedFolderRemoveUser: array expected"); + throw TypeError('.Folder.SharedFolderUpdateV3Request.sharedFolderRemoveUser: array expected'); message.sharedFolderRemoveUser = []; for (let i = 0; i < object.sharedFolderRemoveUser.length; ++i) message.sharedFolderRemoveUser[i] = String(object.sharedFolderRemoveUser[i]); } if (object.sharedFolderRemoveTeam) { if (!Array.isArray(object.sharedFolderRemoveTeam)) - throw TypeError(".Folder.SharedFolderUpdateV3Request.sharedFolderRemoveTeam: array expected"); + throw TypeError('.Folder.SharedFolderUpdateV3Request.sharedFolderRemoveTeam: array expected'); message.sharedFolderRemoveTeam = []; for (let i = 0; i < object.sharedFolderRemoveTeam.length; ++i) - if (typeof object.sharedFolderRemoveTeam[i] === "string") - $util.base64.decode(object.sharedFolderRemoveTeam[i], message.sharedFolderRemoveTeam[i] = $util.newBuffer($util.base64.length(object.sharedFolderRemoveTeam[i])), 0); + if (typeof object.sharedFolderRemoveTeam[i] === 'string') + $util.base64.decode( + object.sharedFolderRemoveTeam[i], + (message.sharedFolderRemoveTeam[i] = $util.newBuffer( + $util.base64.length(object.sharedFolderRemoveTeam[i]) + )), + 0 + ); else if (object.sharedFolderRemoveTeam[i].length >= 0) message.sharedFolderRemoveTeam[i] = object.sharedFolderRemoveTeam[i]; } - if (object.sharedFolderOwner != null) - message.sharedFolderOwner = String(object.sharedFolderOwner); + if (object.sharedFolderOwner != null) message.sharedFolderOwner = String(object.sharedFolderOwner); return message; }; @@ -166025,8 +172447,7 @@ export const Folder = $root.Folder = (() => { * @returns {Object.} Plain object */ SharedFolderUpdateV3Request.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.arrays || options.defaults) { object.sharedFolderAddRecord = []; @@ -166041,15 +172462,12 @@ export const Folder = $root.Folder = (() => { } if (options.defaults) { object.sharedFolderUpdateOperationDontUse = 0; - if (options.bytes === String) - object.sharedFolderUid = ""; + if (options.bytes === String) object.sharedFolderUid = ''; else { object.sharedFolderUid = []; - if (options.bytes !== Array) - object.sharedFolderUid = $util.newBuffer(object.sharedFolderUid); + if (options.bytes !== Array) object.sharedFolderUid = $util.newBuffer(object.sharedFolderUid); } - if (options.bytes === String) - object.encryptedSharedFolderName = ""; + if (options.bytes === String) object.encryptedSharedFolderName = ''; else { object.encryptedSharedFolderName = []; if (options.bytes !== Array) @@ -166057,80 +172475,152 @@ export const Folder = $root.Folder = (() => { } if ($util.Long) { let long = new $util.Long(0, 0, false); - object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.revision = options.longs === String ? "0" : 0; + object.revision = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.revision = options.longs === String ? '0' : 0; object.forceUpdate = false; - if (options.bytes === String) - object.fromTeamUid = ""; + if (options.bytes === String) object.fromTeamUid = ''; else { object.fromTeamUid = []; - if (options.bytes !== Array) - object.fromTeamUid = $util.newBuffer(object.fromTeamUid); - } - object.defaultManageUsers = options.enums === String ? "BOOLEAN_NO_CHANGE" : 0; - object.defaultManageRecords = options.enums === String ? "BOOLEAN_NO_CHANGE" : 0; - object.defaultCanEdit = options.enums === String ? "BOOLEAN_NO_CHANGE" : 0; - object.defaultCanShare = options.enums === String ? "BOOLEAN_NO_CHANGE" : 0; - object.sharedFolderOwner = ""; - } - if (message.sharedFolderUpdateOperationDontUse != null && message.hasOwnProperty("sharedFolderUpdateOperationDontUse")) + if (options.bytes !== Array) object.fromTeamUid = $util.newBuffer(object.fromTeamUid); + } + object.defaultManageUsers = options.enums === String ? 'BOOLEAN_NO_CHANGE' : 0; + object.defaultManageRecords = options.enums === String ? 'BOOLEAN_NO_CHANGE' : 0; + object.defaultCanEdit = options.enums === String ? 'BOOLEAN_NO_CHANGE' : 0; + object.defaultCanShare = options.enums === String ? 'BOOLEAN_NO_CHANGE' : 0; + object.sharedFolderOwner = ''; + } + if ( + message.sharedFolderUpdateOperationDontUse != null && + message.hasOwnProperty('sharedFolderUpdateOperationDontUse') + ) object.sharedFolderUpdateOperationDontUse = message.sharedFolderUpdateOperationDontUse; - if (message.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) - object.sharedFolderUid = options.bytes === String ? $util.base64.encode(message.sharedFolderUid, 0, message.sharedFolderUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.sharedFolderUid) : message.sharedFolderUid; - if (message.encryptedSharedFolderName != null && message.hasOwnProperty("encryptedSharedFolderName")) - object.encryptedSharedFolderName = options.bytes === String ? $util.base64.encode(message.encryptedSharedFolderName, 0, message.encryptedSharedFolderName.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedSharedFolderName) : message.encryptedSharedFolderName; - if (message.revision != null && message.hasOwnProperty("revision")) - if (typeof message.revision === "number") + if (message.sharedFolderUid != null && message.hasOwnProperty('sharedFolderUid')) + object.sharedFolderUid = + options.bytes === String + ? $util.base64.encode(message.sharedFolderUid, 0, message.sharedFolderUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.sharedFolderUid) + : message.sharedFolderUid; + if (message.encryptedSharedFolderName != null && message.hasOwnProperty('encryptedSharedFolderName')) + object.encryptedSharedFolderName = + options.bytes === String + ? $util.base64.encode( + message.encryptedSharedFolderName, + 0, + message.encryptedSharedFolderName.length + ) + : options.bytes === Array + ? Array.prototype.slice.call(message.encryptedSharedFolderName) + : message.encryptedSharedFolderName; + if (message.revision != null && message.hasOwnProperty('revision')) + if (typeof message.revision === 'number') object.revision = options.longs === String ? String(message.revision) : message.revision; else - object.revision = options.longs === String ? $util.Long.prototype.toString.call(message.revision) : options.longs === Number ? new $util.LongBits(message.revision.low >>> 0, message.revision.high >>> 0).toNumber() : message.revision; - if (message.forceUpdate != null && message.hasOwnProperty("forceUpdate")) + object.revision = + options.longs === String + ? $util.Long.prototype.toString.call(message.revision) + : options.longs === Number + ? new $util.LongBits(message.revision.low >>> 0, message.revision.high >>> 0).toNumber() + : message.revision; + if (message.forceUpdate != null && message.hasOwnProperty('forceUpdate')) object.forceUpdate = message.forceUpdate; - if (message.fromTeamUid != null && message.hasOwnProperty("fromTeamUid")) - object.fromTeamUid = options.bytes === String ? $util.base64.encode(message.fromTeamUid, 0, message.fromTeamUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.fromTeamUid) : message.fromTeamUid; - if (message.defaultManageUsers != null && message.hasOwnProperty("defaultManageUsers")) - object.defaultManageUsers = options.enums === String ? $root.Folder.SetBooleanValue[message.defaultManageUsers] === undefined ? message.defaultManageUsers : $root.Folder.SetBooleanValue[message.defaultManageUsers] : message.defaultManageUsers; - if (message.defaultManageRecords != null && message.hasOwnProperty("defaultManageRecords")) - object.defaultManageRecords = options.enums === String ? $root.Folder.SetBooleanValue[message.defaultManageRecords] === undefined ? message.defaultManageRecords : $root.Folder.SetBooleanValue[message.defaultManageRecords] : message.defaultManageRecords; - if (message.defaultCanEdit != null && message.hasOwnProperty("defaultCanEdit")) - object.defaultCanEdit = options.enums === String ? $root.Folder.SetBooleanValue[message.defaultCanEdit] === undefined ? message.defaultCanEdit : $root.Folder.SetBooleanValue[message.defaultCanEdit] : message.defaultCanEdit; - if (message.defaultCanShare != null && message.hasOwnProperty("defaultCanShare")) - object.defaultCanShare = options.enums === String ? $root.Folder.SetBooleanValue[message.defaultCanShare] === undefined ? message.defaultCanShare : $root.Folder.SetBooleanValue[message.defaultCanShare] : message.defaultCanShare; + if (message.fromTeamUid != null && message.hasOwnProperty('fromTeamUid')) + object.fromTeamUid = + options.bytes === String + ? $util.base64.encode(message.fromTeamUid, 0, message.fromTeamUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.fromTeamUid) + : message.fromTeamUid; + if (message.defaultManageUsers != null && message.hasOwnProperty('defaultManageUsers')) + object.defaultManageUsers = + options.enums === String + ? $root.Folder.SetBooleanValue[message.defaultManageUsers] === undefined + ? message.defaultManageUsers + : $root.Folder.SetBooleanValue[message.defaultManageUsers] + : message.defaultManageUsers; + if (message.defaultManageRecords != null && message.hasOwnProperty('defaultManageRecords')) + object.defaultManageRecords = + options.enums === String + ? $root.Folder.SetBooleanValue[message.defaultManageRecords] === undefined + ? message.defaultManageRecords + : $root.Folder.SetBooleanValue[message.defaultManageRecords] + : message.defaultManageRecords; + if (message.defaultCanEdit != null && message.hasOwnProperty('defaultCanEdit')) + object.defaultCanEdit = + options.enums === String + ? $root.Folder.SetBooleanValue[message.defaultCanEdit] === undefined + ? message.defaultCanEdit + : $root.Folder.SetBooleanValue[message.defaultCanEdit] + : message.defaultCanEdit; + if (message.defaultCanShare != null && message.hasOwnProperty('defaultCanShare')) + object.defaultCanShare = + options.enums === String + ? $root.Folder.SetBooleanValue[message.defaultCanShare] === undefined + ? message.defaultCanShare + : $root.Folder.SetBooleanValue[message.defaultCanShare] + : message.defaultCanShare; if (message.sharedFolderAddRecord && message.sharedFolderAddRecord.length) { object.sharedFolderAddRecord = []; for (let j = 0; j < message.sharedFolderAddRecord.length; ++j) - object.sharedFolderAddRecord[j] = $root.Folder.SharedFolderUpdateRecord.toObject(message.sharedFolderAddRecord[j], options); + object.sharedFolderAddRecord[j] = $root.Folder.SharedFolderUpdateRecord.toObject( + message.sharedFolderAddRecord[j], + options + ); } if (message.sharedFolderAddUser && message.sharedFolderAddUser.length) { object.sharedFolderAddUser = []; for (let j = 0; j < message.sharedFolderAddUser.length; ++j) - object.sharedFolderAddUser[j] = $root.Folder.SharedFolderUpdateUser.toObject(message.sharedFolderAddUser[j], options); + object.sharedFolderAddUser[j] = $root.Folder.SharedFolderUpdateUser.toObject( + message.sharedFolderAddUser[j], + options + ); } if (message.sharedFolderAddTeam && message.sharedFolderAddTeam.length) { object.sharedFolderAddTeam = []; for (let j = 0; j < message.sharedFolderAddTeam.length; ++j) - object.sharedFolderAddTeam[j] = $root.Folder.SharedFolderUpdateTeam.toObject(message.sharedFolderAddTeam[j], options); + object.sharedFolderAddTeam[j] = $root.Folder.SharedFolderUpdateTeam.toObject( + message.sharedFolderAddTeam[j], + options + ); } if (message.sharedFolderUpdateRecord && message.sharedFolderUpdateRecord.length) { object.sharedFolderUpdateRecord = []; for (let j = 0; j < message.sharedFolderUpdateRecord.length; ++j) - object.sharedFolderUpdateRecord[j] = $root.Folder.SharedFolderUpdateRecord.toObject(message.sharedFolderUpdateRecord[j], options); + object.sharedFolderUpdateRecord[j] = $root.Folder.SharedFolderUpdateRecord.toObject( + message.sharedFolderUpdateRecord[j], + options + ); } if (message.sharedFolderUpdateUser && message.sharedFolderUpdateUser.length) { object.sharedFolderUpdateUser = []; for (let j = 0; j < message.sharedFolderUpdateUser.length; ++j) - object.sharedFolderUpdateUser[j] = $root.Folder.SharedFolderUpdateUser.toObject(message.sharedFolderUpdateUser[j], options); + object.sharedFolderUpdateUser[j] = $root.Folder.SharedFolderUpdateUser.toObject( + message.sharedFolderUpdateUser[j], + options + ); } if (message.sharedFolderUpdateTeam && message.sharedFolderUpdateTeam.length) { object.sharedFolderUpdateTeam = []; for (let j = 0; j < message.sharedFolderUpdateTeam.length; ++j) - object.sharedFolderUpdateTeam[j] = $root.Folder.SharedFolderUpdateTeam.toObject(message.sharedFolderUpdateTeam[j], options); + object.sharedFolderUpdateTeam[j] = $root.Folder.SharedFolderUpdateTeam.toObject( + message.sharedFolderUpdateTeam[j], + options + ); } if (message.sharedFolderRemoveRecord && message.sharedFolderRemoveRecord.length) { object.sharedFolderRemoveRecord = []; for (let j = 0; j < message.sharedFolderRemoveRecord.length; ++j) - object.sharedFolderRemoveRecord[j] = options.bytes === String ? $util.base64.encode(message.sharedFolderRemoveRecord[j], 0, message.sharedFolderRemoveRecord[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.sharedFolderRemoveRecord[j]) : message.sharedFolderRemoveRecord[j]; + object.sharedFolderRemoveRecord[j] = + options.bytes === String + ? $util.base64.encode( + message.sharedFolderRemoveRecord[j], + 0, + message.sharedFolderRemoveRecord[j].length + ) + : options.bytes === Array + ? Array.prototype.slice.call(message.sharedFolderRemoveRecord[j]) + : message.sharedFolderRemoveRecord[j]; } if (message.sharedFolderRemoveUser && message.sharedFolderRemoveUser.length) { object.sharedFolderRemoveUser = []; @@ -166140,9 +172630,18 @@ export const Folder = $root.Folder = (() => { if (message.sharedFolderRemoveTeam && message.sharedFolderRemoveTeam.length) { object.sharedFolderRemoveTeam = []; for (let j = 0; j < message.sharedFolderRemoveTeam.length; ++j) - object.sharedFolderRemoveTeam[j] = options.bytes === String ? $util.base64.encode(message.sharedFolderRemoveTeam[j], 0, message.sharedFolderRemoveTeam[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.sharedFolderRemoveTeam[j]) : message.sharedFolderRemoveTeam[j]; - } - if (message.sharedFolderOwner != null && message.hasOwnProperty("sharedFolderOwner")) + object.sharedFolderRemoveTeam[j] = + options.bytes === String + ? $util.base64.encode( + message.sharedFolderRemoveTeam[j], + 0, + message.sharedFolderRemoveTeam[j].length + ) + : options.bytes === Array + ? Array.prototype.slice.call(message.sharedFolderRemoveTeam[j]) + : message.sharedFolderRemoveTeam[j]; + } + if (message.sharedFolderOwner != null && message.hasOwnProperty('sharedFolderOwner')) object.sharedFolderOwner = message.sharedFolderOwner; return object; }; @@ -166168,16 +172667,15 @@ export const Folder = $root.Folder = (() => { */ SharedFolderUpdateV3Request.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Folder.SharedFolderUpdateV3Request"; + return typeUrlPrefix + '/Folder.SharedFolderUpdateV3Request'; }; return SharedFolderUpdateV3Request; })(); - Folder.SharedFolderUpdateV3RequestV2 = (function() { - + Folder.SharedFolderUpdateV3RequestV2 = (function () { /** * Properties of a SharedFolderUpdateV3RequestV2. * @memberof Folder @@ -166197,8 +172695,7 @@ export const Folder = $root.Folder = (() => { this.sharedFoldersUpdateV3 = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -166231,11 +172728,13 @@ export const Folder = $root.Folder = (() => { * @returns {$protobuf.Writer} Writer */ SharedFolderUpdateV3RequestV2.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.sharedFoldersUpdateV3 != null && message.sharedFoldersUpdateV3.length) for (let i = 0; i < message.sharedFoldersUpdateV3.length; ++i) - $root.Folder.SharedFolderUpdateV3Request.encode(message.sharedFoldersUpdateV3[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.Folder.SharedFolderUpdateV3Request.encode( + message.sharedFoldersUpdateV3[i], + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); return writer; }; @@ -166264,21 +172763,23 @@ export const Folder = $root.Folder = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SharedFolderUpdateV3RequestV2.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Folder.SharedFolderUpdateV3RequestV2(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Folder.SharedFolderUpdateV3RequestV2(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { if (!(message.sharedFoldersUpdateV3 && message.sharedFoldersUpdateV3.length)) message.sharedFoldersUpdateV3 = []; - message.sharedFoldersUpdateV3.push($root.Folder.SharedFolderUpdateV3Request.decode(reader, reader.uint32())); + message.sharedFoldersUpdateV3.push( + $root.Folder.SharedFolderUpdateV3Request.decode(reader, reader.uint32()) + ); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -166295,8 +172796,7 @@ export const Folder = $root.Folder = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SharedFolderUpdateV3RequestV2.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -166309,15 +172809,12 @@ export const Folder = $root.Folder = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ SharedFolderUpdateV3RequestV2.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.sharedFoldersUpdateV3 != null && message.hasOwnProperty("sharedFoldersUpdateV3")) { - if (!Array.isArray(message.sharedFoldersUpdateV3)) - return "sharedFoldersUpdateV3: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.sharedFoldersUpdateV3 != null && message.hasOwnProperty('sharedFoldersUpdateV3')) { + if (!Array.isArray(message.sharedFoldersUpdateV3)) return 'sharedFoldersUpdateV3: array expected'; for (let i = 0; i < message.sharedFoldersUpdateV3.length; ++i) { let error = $root.Folder.SharedFolderUpdateV3Request.verify(message.sharedFoldersUpdateV3[i]); - if (error) - return "sharedFoldersUpdateV3." + error; + if (error) return 'sharedFoldersUpdateV3.' + error; } } return null; @@ -166332,17 +172829,18 @@ export const Folder = $root.Folder = (() => { * @returns {Folder.SharedFolderUpdateV3RequestV2} SharedFolderUpdateV3RequestV2 */ SharedFolderUpdateV3RequestV2.fromObject = function fromObject(object) { - if (object instanceof $root.Folder.SharedFolderUpdateV3RequestV2) - return object; + if (object instanceof $root.Folder.SharedFolderUpdateV3RequestV2) return object; let message = new $root.Folder.SharedFolderUpdateV3RequestV2(); if (object.sharedFoldersUpdateV3) { if (!Array.isArray(object.sharedFoldersUpdateV3)) - throw TypeError(".Folder.SharedFolderUpdateV3RequestV2.sharedFoldersUpdateV3: array expected"); + throw TypeError('.Folder.SharedFolderUpdateV3RequestV2.sharedFoldersUpdateV3: array expected'); message.sharedFoldersUpdateV3 = []; for (let i = 0; i < object.sharedFoldersUpdateV3.length; ++i) { - if (typeof object.sharedFoldersUpdateV3[i] !== "object") - throw TypeError(".Folder.SharedFolderUpdateV3RequestV2.sharedFoldersUpdateV3: object expected"); - message.sharedFoldersUpdateV3[i] = $root.Folder.SharedFolderUpdateV3Request.fromObject(object.sharedFoldersUpdateV3[i]); + if (typeof object.sharedFoldersUpdateV3[i] !== 'object') + throw TypeError('.Folder.SharedFolderUpdateV3RequestV2.sharedFoldersUpdateV3: object expected'); + message.sharedFoldersUpdateV3[i] = $root.Folder.SharedFolderUpdateV3Request.fromObject( + object.sharedFoldersUpdateV3[i] + ); } } return message; @@ -166358,15 +172856,16 @@ export const Folder = $root.Folder = (() => { * @returns {Object.} Plain object */ SharedFolderUpdateV3RequestV2.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.sharedFoldersUpdateV3 = []; + if (options.arrays || options.defaults) object.sharedFoldersUpdateV3 = []; if (message.sharedFoldersUpdateV3 && message.sharedFoldersUpdateV3.length) { object.sharedFoldersUpdateV3 = []; for (let j = 0; j < message.sharedFoldersUpdateV3.length; ++j) - object.sharedFoldersUpdateV3[j] = $root.Folder.SharedFolderUpdateV3Request.toObject(message.sharedFoldersUpdateV3[j], options); + object.sharedFoldersUpdateV3[j] = $root.Folder.SharedFolderUpdateV3Request.toObject( + message.sharedFoldersUpdateV3[j], + options + ); } return object; }; @@ -166392,16 +172891,15 @@ export const Folder = $root.Folder = (() => { */ SharedFolderUpdateV3RequestV2.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Folder.SharedFolderUpdateV3RequestV2"; + return typeUrlPrefix + '/Folder.SharedFolderUpdateV3RequestV2'; }; return SharedFolderUpdateV3RequestV2; })(); - Folder.SharedFolderUpdateRecordStatus = (function() { - + Folder.SharedFolderUpdateRecordStatus = (function () { /** * Properties of a SharedFolderUpdateRecordStatus. * @memberof Folder @@ -166421,8 +172919,7 @@ export const Folder = $root.Folder = (() => { function SharedFolderUpdateRecordStatus(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -166439,7 +172936,7 @@ export const Folder = $root.Folder = (() => { * @memberof Folder.SharedFolderUpdateRecordStatus * @instance */ - SharedFolderUpdateRecordStatus.prototype.status = ""; + SharedFolderUpdateRecordStatus.prototype.status = ''; /** * Creates a new SharedFolderUpdateRecordStatus instance using the specified properties. @@ -166463,12 +172960,11 @@ export const Folder = $root.Folder = (() => { * @returns {$protobuf.Writer} Writer */ SharedFolderUpdateRecordStatus.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); - if (message.status != null && Object.hasOwnProperty.call(message, "status")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.status); + if (!writer) writer = $Writer.create(); + if (message.recordUid != null && Object.hasOwnProperty.call(message, 'recordUid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.recordUid); + if (message.status != null && Object.hasOwnProperty.call(message, 'status')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.status); return writer; }; @@ -166497,23 +172993,23 @@ export const Folder = $root.Folder = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SharedFolderUpdateRecordStatus.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Folder.SharedFolderUpdateRecordStatus(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Folder.SharedFolderUpdateRecordStatus(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.recordUid = reader.bytes(); break; } - case 2: { + case 2: { message.status = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -166530,8 +173026,7 @@ export const Folder = $root.Folder = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SharedFolderUpdateRecordStatus.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -166544,14 +173039,17 @@ export const Folder = $root.Folder = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ SharedFolderUpdateRecordStatus.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) - return "recordUid: buffer expected"; - if (message.status != null && message.hasOwnProperty("status")) - if (!$util.isString(message.status)) - return "status: string expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.recordUid != null && message.hasOwnProperty('recordUid')) + if ( + !( + (message.recordUid && typeof message.recordUid.length === 'number') || + $util.isString(message.recordUid) + ) + ) + return 'recordUid: buffer expected'; + if (message.status != null && message.hasOwnProperty('status')) + if (!$util.isString(message.status)) return 'status: string expected'; return null; }; @@ -166564,16 +173062,17 @@ export const Folder = $root.Folder = (() => { * @returns {Folder.SharedFolderUpdateRecordStatus} SharedFolderUpdateRecordStatus */ SharedFolderUpdateRecordStatus.fromObject = function fromObject(object) { - if (object instanceof $root.Folder.SharedFolderUpdateRecordStatus) - return object; + if (object instanceof $root.Folder.SharedFolderUpdateRecordStatus) return object; let message = new $root.Folder.SharedFolderUpdateRecordStatus(); 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.status != null) - message.status = String(object.status); + 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.status != null) message.status = String(object.status); return message; }; @@ -166587,23 +173086,24 @@ export const Folder = $root.Folder = (() => { * @returns {Object.} Plain object */ SharedFolderUpdateRecordStatus.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.recordUid = ""; + if (options.bytes === String) object.recordUid = ''; else { object.recordUid = []; - if (options.bytes !== Array) - object.recordUid = $util.newBuffer(object.recordUid); + if (options.bytes !== Array) object.recordUid = $util.newBuffer(object.recordUid); } - object.status = ""; + object.status = ''; } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; - if (message.status != null && message.hasOwnProperty("status")) - object.status = message.status; + if (message.recordUid != null && message.hasOwnProperty('recordUid')) + object.recordUid = + options.bytes === String + ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.recordUid) + : message.recordUid; + if (message.status != null && message.hasOwnProperty('status')) object.status = message.status; return object; }; @@ -166628,16 +173128,15 @@ export const Folder = $root.Folder = (() => { */ SharedFolderUpdateRecordStatus.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Folder.SharedFolderUpdateRecordStatus"; + return typeUrlPrefix + '/Folder.SharedFolderUpdateRecordStatus'; }; return SharedFolderUpdateRecordStatus; })(); - Folder.SharedFolderUpdateUserStatus = (function() { - + Folder.SharedFolderUpdateUserStatus = (function () { /** * Properties of a SharedFolderUpdateUserStatus. * @memberof Folder @@ -166657,8 +173156,7 @@ export const Folder = $root.Folder = (() => { function SharedFolderUpdateUserStatus(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -166667,7 +173165,7 @@ export const Folder = $root.Folder = (() => { * @memberof Folder.SharedFolderUpdateUserStatus * @instance */ - SharedFolderUpdateUserStatus.prototype.username = ""; + SharedFolderUpdateUserStatus.prototype.username = ''; /** * SharedFolderUpdateUserStatus status. @@ -166675,7 +173173,7 @@ export const Folder = $root.Folder = (() => { * @memberof Folder.SharedFolderUpdateUserStatus * @instance */ - SharedFolderUpdateUserStatus.prototype.status = ""; + SharedFolderUpdateUserStatus.prototype.status = ''; /** * Creates a new SharedFolderUpdateUserStatus instance using the specified properties. @@ -166699,12 +173197,11 @@ export const Folder = $root.Folder = (() => { * @returns {$protobuf.Writer} Writer */ SharedFolderUpdateUserStatus.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.username != null && Object.hasOwnProperty.call(message, "username")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.username); - if (message.status != null && Object.hasOwnProperty.call(message, "status")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.status); + if (!writer) writer = $Writer.create(); + if (message.username != null && Object.hasOwnProperty.call(message, 'username')) + writer.uint32(/* id 1, wireType 2 =*/ 10).string(message.username); + if (message.status != null && Object.hasOwnProperty.call(message, 'status')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.status); return writer; }; @@ -166733,23 +173230,23 @@ export const Folder = $root.Folder = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SharedFolderUpdateUserStatus.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Folder.SharedFolderUpdateUserStatus(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Folder.SharedFolderUpdateUserStatus(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.username = reader.string(); break; } - case 2: { + case 2: { message.status = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -166766,8 +173263,7 @@ export const Folder = $root.Folder = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SharedFolderUpdateUserStatus.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -166780,14 +173276,11 @@ export const Folder = $root.Folder = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ SharedFolderUpdateUserStatus.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.username != null && message.hasOwnProperty("username")) - if (!$util.isString(message.username)) - return "username: string expected"; - if (message.status != null && message.hasOwnProperty("status")) - if (!$util.isString(message.status)) - return "status: string expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.username != null && message.hasOwnProperty('username')) + if (!$util.isString(message.username)) return 'username: string expected'; + if (message.status != null && message.hasOwnProperty('status')) + if (!$util.isString(message.status)) return 'status: string expected'; return null; }; @@ -166800,13 +173293,10 @@ export const Folder = $root.Folder = (() => { * @returns {Folder.SharedFolderUpdateUserStatus} SharedFolderUpdateUserStatus */ SharedFolderUpdateUserStatus.fromObject = function fromObject(object) { - if (object instanceof $root.Folder.SharedFolderUpdateUserStatus) - return object; + if (object instanceof $root.Folder.SharedFolderUpdateUserStatus) return object; let message = new $root.Folder.SharedFolderUpdateUserStatus(); - if (object.username != null) - message.username = String(object.username); - if (object.status != null) - message.status = String(object.status); + if (object.username != null) message.username = String(object.username); + if (object.status != null) message.status = String(object.status); return message; }; @@ -166820,17 +173310,14 @@ export const Folder = $root.Folder = (() => { * @returns {Object.} Plain object */ SharedFolderUpdateUserStatus.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - object.username = ""; - object.status = ""; + object.username = ''; + object.status = ''; } - if (message.username != null && message.hasOwnProperty("username")) - object.username = message.username; - if (message.status != null && message.hasOwnProperty("status")) - object.status = message.status; + if (message.username != null && message.hasOwnProperty('username')) object.username = message.username; + if (message.status != null && message.hasOwnProperty('status')) object.status = message.status; return object; }; @@ -166855,16 +173342,15 @@ export const Folder = $root.Folder = (() => { */ SharedFolderUpdateUserStatus.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Folder.SharedFolderUpdateUserStatus"; + return typeUrlPrefix + '/Folder.SharedFolderUpdateUserStatus'; }; return SharedFolderUpdateUserStatus; })(); - Folder.SharedFolderUpdateTeamStatus = (function() { - + Folder.SharedFolderUpdateTeamStatus = (function () { /** * Properties of a SharedFolderUpdateTeamStatus. * @memberof Folder @@ -166884,8 +173370,7 @@ export const Folder = $root.Folder = (() => { function SharedFolderUpdateTeamStatus(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -166902,7 +173387,7 @@ export const Folder = $root.Folder = (() => { * @memberof Folder.SharedFolderUpdateTeamStatus * @instance */ - SharedFolderUpdateTeamStatus.prototype.status = ""; + SharedFolderUpdateTeamStatus.prototype.status = ''; /** * Creates a new SharedFolderUpdateTeamStatus instance using the specified properties. @@ -166926,12 +173411,11 @@ export const Folder = $root.Folder = (() => { * @returns {$protobuf.Writer} Writer */ SharedFolderUpdateTeamStatus.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.teamUid != null && Object.hasOwnProperty.call(message, "teamUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.teamUid); - if (message.status != null && Object.hasOwnProperty.call(message, "status")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.status); + if (!writer) writer = $Writer.create(); + if (message.teamUid != null && Object.hasOwnProperty.call(message, 'teamUid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.teamUid); + if (message.status != null && Object.hasOwnProperty.call(message, 'status')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.status); return writer; }; @@ -166960,23 +173444,23 @@ export const Folder = $root.Folder = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SharedFolderUpdateTeamStatus.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Folder.SharedFolderUpdateTeamStatus(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Folder.SharedFolderUpdateTeamStatus(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.teamUid = reader.bytes(); break; } - case 2: { + case 2: { message.status = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -166993,8 +173477,7 @@ export const Folder = $root.Folder = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SharedFolderUpdateTeamStatus.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -167007,14 +173490,17 @@ export const Folder = $root.Folder = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ SharedFolderUpdateTeamStatus.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.teamUid != null && message.hasOwnProperty("teamUid")) - if (!(message.teamUid && typeof message.teamUid.length === "number" || $util.isString(message.teamUid))) - return "teamUid: buffer expected"; - if (message.status != null && message.hasOwnProperty("status")) - if (!$util.isString(message.status)) - return "status: string expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.teamUid != null && message.hasOwnProperty('teamUid')) + if ( + !( + (message.teamUid && typeof message.teamUid.length === 'number') || + $util.isString(message.teamUid) + ) + ) + return 'teamUid: buffer expected'; + if (message.status != null && message.hasOwnProperty('status')) + if (!$util.isString(message.status)) return 'status: string expected'; return null; }; @@ -167027,16 +173513,17 @@ export const Folder = $root.Folder = (() => { * @returns {Folder.SharedFolderUpdateTeamStatus} SharedFolderUpdateTeamStatus */ SharedFolderUpdateTeamStatus.fromObject = function fromObject(object) { - if (object instanceof $root.Folder.SharedFolderUpdateTeamStatus) - return object; + if (object instanceof $root.Folder.SharedFolderUpdateTeamStatus) return object; let message = new $root.Folder.SharedFolderUpdateTeamStatus(); if (object.teamUid != null) - if (typeof object.teamUid === "string") - $util.base64.decode(object.teamUid, message.teamUid = $util.newBuffer($util.base64.length(object.teamUid)), 0); - else if (object.teamUid.length >= 0) - message.teamUid = object.teamUid; - if (object.status != null) - message.status = String(object.status); + if (typeof object.teamUid === 'string') + $util.base64.decode( + object.teamUid, + (message.teamUid = $util.newBuffer($util.base64.length(object.teamUid))), + 0 + ); + else if (object.teamUid.length >= 0) message.teamUid = object.teamUid; + if (object.status != null) message.status = String(object.status); return message; }; @@ -167050,23 +173537,24 @@ export const Folder = $root.Folder = (() => { * @returns {Object.} Plain object */ SharedFolderUpdateTeamStatus.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.teamUid = ""; + if (options.bytes === String) object.teamUid = ''; else { object.teamUid = []; - if (options.bytes !== Array) - object.teamUid = $util.newBuffer(object.teamUid); + if (options.bytes !== Array) object.teamUid = $util.newBuffer(object.teamUid); } - object.status = ""; + object.status = ''; } - if (message.teamUid != null && message.hasOwnProperty("teamUid")) - object.teamUid = options.bytes === String ? $util.base64.encode(message.teamUid, 0, message.teamUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.teamUid) : message.teamUid; - if (message.status != null && message.hasOwnProperty("status")) - object.status = message.status; + if (message.teamUid != null && message.hasOwnProperty('teamUid')) + object.teamUid = + options.bytes === String + ? $util.base64.encode(message.teamUid, 0, message.teamUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.teamUid) + : message.teamUid; + if (message.status != null && message.hasOwnProperty('status')) object.status = message.status; return object; }; @@ -167091,16 +173579,15 @@ export const Folder = $root.Folder = (() => { */ SharedFolderUpdateTeamStatus.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Folder.SharedFolderUpdateTeamStatus"; + return typeUrlPrefix + '/Folder.SharedFolderUpdateTeamStatus'; }; return SharedFolderUpdateTeamStatus; })(); - Folder.SharedFolderUpdateV3Response = (function() { - + Folder.SharedFolderUpdateV3Response = (function () { /** * Properties of a SharedFolderUpdateV3Response. * @memberof Folder @@ -167139,8 +173626,7 @@ export const Folder = $root.Folder = (() => { this.sharedFolderRemoveTeamStatus = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -167149,7 +173635,7 @@ export const Folder = $root.Folder = (() => { * @memberof Folder.SharedFolderUpdateV3Response * @instance */ - SharedFolderUpdateV3Response.prototype.revision = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + SharedFolderUpdateV3Response.prototype.revision = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * SharedFolderUpdateV3Response sharedFolderAddRecordStatus. @@ -167237,7 +173723,7 @@ export const Folder = $root.Folder = (() => { * @memberof Folder.SharedFolderUpdateV3Response * @instance */ - SharedFolderUpdateV3Response.prototype.status = ""; + SharedFolderUpdateV3Response.prototype.status = ''; /** * Creates a new SharedFolderUpdateV3Response instance using the specified properties. @@ -167261,41 +173747,67 @@ export const Folder = $root.Folder = (() => { * @returns {$protobuf.Writer} Writer */ SharedFolderUpdateV3Response.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.revision != null && Object.hasOwnProperty.call(message, "revision")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.revision); + if (!writer) writer = $Writer.create(); + if (message.revision != null && Object.hasOwnProperty.call(message, 'revision')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int64(message.revision); if (message.sharedFolderAddRecordStatus != null && message.sharedFolderAddRecordStatus.length) for (let i = 0; i < message.sharedFolderAddRecordStatus.length; ++i) - $root.Folder.SharedFolderUpdateRecordStatus.encode(message.sharedFolderAddRecordStatus[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + $root.Folder.SharedFolderUpdateRecordStatus.encode( + message.sharedFolderAddRecordStatus[i], + writer.uint32(/* id 2, wireType 2 =*/ 18).fork() + ).ldelim(); if (message.sharedFolderAddUserStatus != null && message.sharedFolderAddUserStatus.length) for (let i = 0; i < message.sharedFolderAddUserStatus.length; ++i) - $root.Folder.SharedFolderUpdateUserStatus.encode(message.sharedFolderAddUserStatus[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + $root.Folder.SharedFolderUpdateUserStatus.encode( + message.sharedFolderAddUserStatus[i], + writer.uint32(/* id 3, wireType 2 =*/ 26).fork() + ).ldelim(); if (message.sharedFolderAddTeamStatus != null && message.sharedFolderAddTeamStatus.length) for (let i = 0; i < message.sharedFolderAddTeamStatus.length; ++i) - $root.Folder.SharedFolderUpdateTeamStatus.encode(message.sharedFolderAddTeamStatus[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + $root.Folder.SharedFolderUpdateTeamStatus.encode( + message.sharedFolderAddTeamStatus[i], + writer.uint32(/* id 4, wireType 2 =*/ 34).fork() + ).ldelim(); if (message.sharedFolderUpdateRecordStatus != null && message.sharedFolderUpdateRecordStatus.length) for (let i = 0; i < message.sharedFolderUpdateRecordStatus.length; ++i) - $root.Folder.SharedFolderUpdateRecordStatus.encode(message.sharedFolderUpdateRecordStatus[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + $root.Folder.SharedFolderUpdateRecordStatus.encode( + message.sharedFolderUpdateRecordStatus[i], + writer.uint32(/* id 5, wireType 2 =*/ 42).fork() + ).ldelim(); if (message.sharedFolderUpdateUserStatus != null && message.sharedFolderUpdateUserStatus.length) for (let i = 0; i < message.sharedFolderUpdateUserStatus.length; ++i) - $root.Folder.SharedFolderUpdateUserStatus.encode(message.sharedFolderUpdateUserStatus[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + $root.Folder.SharedFolderUpdateUserStatus.encode( + message.sharedFolderUpdateUserStatus[i], + writer.uint32(/* id 6, wireType 2 =*/ 50).fork() + ).ldelim(); if (message.sharedFolderUpdateTeamStatus != null && message.sharedFolderUpdateTeamStatus.length) for (let i = 0; i < message.sharedFolderUpdateTeamStatus.length; ++i) - $root.Folder.SharedFolderUpdateTeamStatus.encode(message.sharedFolderUpdateTeamStatus[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + $root.Folder.SharedFolderUpdateTeamStatus.encode( + message.sharedFolderUpdateTeamStatus[i], + writer.uint32(/* id 7, wireType 2 =*/ 58).fork() + ).ldelim(); if (message.sharedFolderRemoveRecordStatus != null && message.sharedFolderRemoveRecordStatus.length) for (let i = 0; i < message.sharedFolderRemoveRecordStatus.length; ++i) - $root.Folder.SharedFolderUpdateRecordStatus.encode(message.sharedFolderRemoveRecordStatus[i], writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + $root.Folder.SharedFolderUpdateRecordStatus.encode( + message.sharedFolderRemoveRecordStatus[i], + writer.uint32(/* id 8, wireType 2 =*/ 66).fork() + ).ldelim(); if (message.sharedFolderRemoveUserStatus != null && message.sharedFolderRemoveUserStatus.length) for (let i = 0; i < message.sharedFolderRemoveUserStatus.length; ++i) - $root.Folder.SharedFolderUpdateUserStatus.encode(message.sharedFolderRemoveUserStatus[i], writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + $root.Folder.SharedFolderUpdateUserStatus.encode( + message.sharedFolderRemoveUserStatus[i], + writer.uint32(/* id 9, wireType 2 =*/ 74).fork() + ).ldelim(); if (message.sharedFolderRemoveTeamStatus != null && message.sharedFolderRemoveTeamStatus.length) for (let i = 0; i < message.sharedFolderRemoveTeamStatus.length; ++i) - $root.Folder.SharedFolderUpdateTeamStatus.encode(message.sharedFolderRemoveTeamStatus[i], writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); - if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, "sharedFolderUid")) - writer.uint32(/* id 12, wireType 2 =*/98).bytes(message.sharedFolderUid); - if (message.status != null && Object.hasOwnProperty.call(message, "status")) - writer.uint32(/* id 13, wireType 2 =*/106).string(message.status); + $root.Folder.SharedFolderUpdateTeamStatus.encode( + message.sharedFolderRemoveTeamStatus[i], + writer.uint32(/* id 10, wireType 2 =*/ 82).fork() + ).ldelim(); + if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, 'sharedFolderUid')) + writer.uint32(/* id 12, wireType 2 =*/ 98).bytes(message.sharedFolderUid); + if (message.status != null && Object.hasOwnProperty.call(message, 'status')) + writer.uint32(/* id 13, wireType 2 =*/ 106).string(message.status); return writer; }; @@ -167324,81 +173836,99 @@ export const Folder = $root.Folder = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SharedFolderUpdateV3Response.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Folder.SharedFolderUpdateV3Response(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Folder.SharedFolderUpdateV3Response(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.revision = reader.int64(); break; } - case 2: { + case 2: { if (!(message.sharedFolderAddRecordStatus && message.sharedFolderAddRecordStatus.length)) message.sharedFolderAddRecordStatus = []; - message.sharedFolderAddRecordStatus.push($root.Folder.SharedFolderUpdateRecordStatus.decode(reader, reader.uint32())); + message.sharedFolderAddRecordStatus.push( + $root.Folder.SharedFolderUpdateRecordStatus.decode(reader, reader.uint32()) + ); break; } - case 3: { + case 3: { if (!(message.sharedFolderAddUserStatus && message.sharedFolderAddUserStatus.length)) message.sharedFolderAddUserStatus = []; - message.sharedFolderAddUserStatus.push($root.Folder.SharedFolderUpdateUserStatus.decode(reader, reader.uint32())); + message.sharedFolderAddUserStatus.push( + $root.Folder.SharedFolderUpdateUserStatus.decode(reader, reader.uint32()) + ); break; } - case 4: { + case 4: { if (!(message.sharedFolderAddTeamStatus && message.sharedFolderAddTeamStatus.length)) message.sharedFolderAddTeamStatus = []; - message.sharedFolderAddTeamStatus.push($root.Folder.SharedFolderUpdateTeamStatus.decode(reader, reader.uint32())); + message.sharedFolderAddTeamStatus.push( + $root.Folder.SharedFolderUpdateTeamStatus.decode(reader, reader.uint32()) + ); break; } - case 5: { + case 5: { if (!(message.sharedFolderUpdateRecordStatus && message.sharedFolderUpdateRecordStatus.length)) message.sharedFolderUpdateRecordStatus = []; - message.sharedFolderUpdateRecordStatus.push($root.Folder.SharedFolderUpdateRecordStatus.decode(reader, reader.uint32())); + message.sharedFolderUpdateRecordStatus.push( + $root.Folder.SharedFolderUpdateRecordStatus.decode(reader, reader.uint32()) + ); break; } - case 6: { + case 6: { if (!(message.sharedFolderUpdateUserStatus && message.sharedFolderUpdateUserStatus.length)) message.sharedFolderUpdateUserStatus = []; - message.sharedFolderUpdateUserStatus.push($root.Folder.SharedFolderUpdateUserStatus.decode(reader, reader.uint32())); + message.sharedFolderUpdateUserStatus.push( + $root.Folder.SharedFolderUpdateUserStatus.decode(reader, reader.uint32()) + ); break; } - case 7: { + case 7: { if (!(message.sharedFolderUpdateTeamStatus && message.sharedFolderUpdateTeamStatus.length)) message.sharedFolderUpdateTeamStatus = []; - message.sharedFolderUpdateTeamStatus.push($root.Folder.SharedFolderUpdateTeamStatus.decode(reader, reader.uint32())); + message.sharedFolderUpdateTeamStatus.push( + $root.Folder.SharedFolderUpdateTeamStatus.decode(reader, reader.uint32()) + ); break; } - case 8: { + case 8: { if (!(message.sharedFolderRemoveRecordStatus && message.sharedFolderRemoveRecordStatus.length)) message.sharedFolderRemoveRecordStatus = []; - message.sharedFolderRemoveRecordStatus.push($root.Folder.SharedFolderUpdateRecordStatus.decode(reader, reader.uint32())); + message.sharedFolderRemoveRecordStatus.push( + $root.Folder.SharedFolderUpdateRecordStatus.decode(reader, reader.uint32()) + ); break; } - case 9: { + case 9: { if (!(message.sharedFolderRemoveUserStatus && message.sharedFolderRemoveUserStatus.length)) message.sharedFolderRemoveUserStatus = []; - message.sharedFolderRemoveUserStatus.push($root.Folder.SharedFolderUpdateUserStatus.decode(reader, reader.uint32())); + message.sharedFolderRemoveUserStatus.push( + $root.Folder.SharedFolderUpdateUserStatus.decode(reader, reader.uint32()) + ); break; } - case 10: { + case 10: { if (!(message.sharedFolderRemoveTeamStatus && message.sharedFolderRemoveTeamStatus.length)) message.sharedFolderRemoveTeamStatus = []; - message.sharedFolderRemoveTeamStatus.push($root.Folder.SharedFolderUpdateTeamStatus.decode(reader, reader.uint32())); + message.sharedFolderRemoveTeamStatus.push( + $root.Folder.SharedFolderUpdateTeamStatus.decode(reader, reader.uint32()) + ); break; } - case 12: { + case 12: { message.sharedFolderUid = reader.bytes(); break; } - case 13: { + case 13: { message.status = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -167415,8 +173945,7 @@ export const Folder = $root.Folder = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SharedFolderUpdateV3Response.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -167429,98 +173958,131 @@ export const Folder = $root.Folder = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ SharedFolderUpdateV3Response.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.revision != null && message.hasOwnProperty("revision")) - if (!$util.isInteger(message.revision) && !(message.revision && $util.isInteger(message.revision.low) && $util.isInteger(message.revision.high))) - return "revision: integer|Long expected"; - if (message.sharedFolderAddRecordStatus != null && message.hasOwnProperty("sharedFolderAddRecordStatus")) { + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.revision != null && message.hasOwnProperty('revision')) + if ( + !$util.isInteger(message.revision) && + !( + message.revision && + $util.isInteger(message.revision.low) && + $util.isInteger(message.revision.high) + ) + ) + return 'revision: integer|Long expected'; + if (message.sharedFolderAddRecordStatus != null && message.hasOwnProperty('sharedFolderAddRecordStatus')) { if (!Array.isArray(message.sharedFolderAddRecordStatus)) - return "sharedFolderAddRecordStatus: array expected"; + return 'sharedFolderAddRecordStatus: array expected'; for (let i = 0; i < message.sharedFolderAddRecordStatus.length; ++i) { - let error = $root.Folder.SharedFolderUpdateRecordStatus.verify(message.sharedFolderAddRecordStatus[i]); - if (error) - return "sharedFolderAddRecordStatus." + error; + let error = $root.Folder.SharedFolderUpdateRecordStatus.verify( + message.sharedFolderAddRecordStatus[i] + ); + if (error) return 'sharedFolderAddRecordStatus.' + error; } } - if (message.sharedFolderAddUserStatus != null && message.hasOwnProperty("sharedFolderAddUserStatus")) { + if (message.sharedFolderAddUserStatus != null && message.hasOwnProperty('sharedFolderAddUserStatus')) { if (!Array.isArray(message.sharedFolderAddUserStatus)) - return "sharedFolderAddUserStatus: array expected"; + return 'sharedFolderAddUserStatus: array expected'; for (let i = 0; i < message.sharedFolderAddUserStatus.length; ++i) { let error = $root.Folder.SharedFolderUpdateUserStatus.verify(message.sharedFolderAddUserStatus[i]); - if (error) - return "sharedFolderAddUserStatus." + error; + if (error) return 'sharedFolderAddUserStatus.' + error; } } - if (message.sharedFolderAddTeamStatus != null && message.hasOwnProperty("sharedFolderAddTeamStatus")) { + if (message.sharedFolderAddTeamStatus != null && message.hasOwnProperty('sharedFolderAddTeamStatus')) { if (!Array.isArray(message.sharedFolderAddTeamStatus)) - return "sharedFolderAddTeamStatus: array expected"; + return 'sharedFolderAddTeamStatus: array expected'; for (let i = 0; i < message.sharedFolderAddTeamStatus.length; ++i) { let error = $root.Folder.SharedFolderUpdateTeamStatus.verify(message.sharedFolderAddTeamStatus[i]); - if (error) - return "sharedFolderAddTeamStatus." + error; + if (error) return 'sharedFolderAddTeamStatus.' + error; } } - if (message.sharedFolderUpdateRecordStatus != null && message.hasOwnProperty("sharedFolderUpdateRecordStatus")) { + if ( + message.sharedFolderUpdateRecordStatus != null && + message.hasOwnProperty('sharedFolderUpdateRecordStatus') + ) { if (!Array.isArray(message.sharedFolderUpdateRecordStatus)) - return "sharedFolderUpdateRecordStatus: array expected"; + return 'sharedFolderUpdateRecordStatus: array expected'; for (let i = 0; i < message.sharedFolderUpdateRecordStatus.length; ++i) { - let error = $root.Folder.SharedFolderUpdateRecordStatus.verify(message.sharedFolderUpdateRecordStatus[i]); - if (error) - return "sharedFolderUpdateRecordStatus." + error; + let error = $root.Folder.SharedFolderUpdateRecordStatus.verify( + message.sharedFolderUpdateRecordStatus[i] + ); + if (error) return 'sharedFolderUpdateRecordStatus.' + error; } } - if (message.sharedFolderUpdateUserStatus != null && message.hasOwnProperty("sharedFolderUpdateUserStatus")) { + if ( + message.sharedFolderUpdateUserStatus != null && + message.hasOwnProperty('sharedFolderUpdateUserStatus') + ) { if (!Array.isArray(message.sharedFolderUpdateUserStatus)) - return "sharedFolderUpdateUserStatus: array expected"; + return 'sharedFolderUpdateUserStatus: array expected'; for (let i = 0; i < message.sharedFolderUpdateUserStatus.length; ++i) { - let error = $root.Folder.SharedFolderUpdateUserStatus.verify(message.sharedFolderUpdateUserStatus[i]); - if (error) - return "sharedFolderUpdateUserStatus." + error; + let error = $root.Folder.SharedFolderUpdateUserStatus.verify( + message.sharedFolderUpdateUserStatus[i] + ); + if (error) return 'sharedFolderUpdateUserStatus.' + error; } } - if (message.sharedFolderUpdateTeamStatus != null && message.hasOwnProperty("sharedFolderUpdateTeamStatus")) { + if ( + message.sharedFolderUpdateTeamStatus != null && + message.hasOwnProperty('sharedFolderUpdateTeamStatus') + ) { if (!Array.isArray(message.sharedFolderUpdateTeamStatus)) - return "sharedFolderUpdateTeamStatus: array expected"; + return 'sharedFolderUpdateTeamStatus: array expected'; for (let i = 0; i < message.sharedFolderUpdateTeamStatus.length; ++i) { - let error = $root.Folder.SharedFolderUpdateTeamStatus.verify(message.sharedFolderUpdateTeamStatus[i]); - if (error) - return "sharedFolderUpdateTeamStatus." + error; + let error = $root.Folder.SharedFolderUpdateTeamStatus.verify( + message.sharedFolderUpdateTeamStatus[i] + ); + if (error) return 'sharedFolderUpdateTeamStatus.' + error; } } - if (message.sharedFolderRemoveRecordStatus != null && message.hasOwnProperty("sharedFolderRemoveRecordStatus")) { + if ( + message.sharedFolderRemoveRecordStatus != null && + message.hasOwnProperty('sharedFolderRemoveRecordStatus') + ) { if (!Array.isArray(message.sharedFolderRemoveRecordStatus)) - return "sharedFolderRemoveRecordStatus: array expected"; + return 'sharedFolderRemoveRecordStatus: array expected'; for (let i = 0; i < message.sharedFolderRemoveRecordStatus.length; ++i) { - let error = $root.Folder.SharedFolderUpdateRecordStatus.verify(message.sharedFolderRemoveRecordStatus[i]); - if (error) - return "sharedFolderRemoveRecordStatus." + error; + let error = $root.Folder.SharedFolderUpdateRecordStatus.verify( + message.sharedFolderRemoveRecordStatus[i] + ); + if (error) return 'sharedFolderRemoveRecordStatus.' + error; } } - if (message.sharedFolderRemoveUserStatus != null && message.hasOwnProperty("sharedFolderRemoveUserStatus")) { + if ( + message.sharedFolderRemoveUserStatus != null && + message.hasOwnProperty('sharedFolderRemoveUserStatus') + ) { if (!Array.isArray(message.sharedFolderRemoveUserStatus)) - return "sharedFolderRemoveUserStatus: array expected"; + return 'sharedFolderRemoveUserStatus: array expected'; for (let i = 0; i < message.sharedFolderRemoveUserStatus.length; ++i) { - let error = $root.Folder.SharedFolderUpdateUserStatus.verify(message.sharedFolderRemoveUserStatus[i]); - if (error) - return "sharedFolderRemoveUserStatus." + error; + let error = $root.Folder.SharedFolderUpdateUserStatus.verify( + message.sharedFolderRemoveUserStatus[i] + ); + if (error) return 'sharedFolderRemoveUserStatus.' + error; } } - if (message.sharedFolderRemoveTeamStatus != null && message.hasOwnProperty("sharedFolderRemoveTeamStatus")) { + if ( + message.sharedFolderRemoveTeamStatus != null && + message.hasOwnProperty('sharedFolderRemoveTeamStatus') + ) { if (!Array.isArray(message.sharedFolderRemoveTeamStatus)) - return "sharedFolderRemoveTeamStatus: array expected"; + return 'sharedFolderRemoveTeamStatus: array expected'; for (let i = 0; i < message.sharedFolderRemoveTeamStatus.length; ++i) { - let error = $root.Folder.SharedFolderUpdateTeamStatus.verify(message.sharedFolderRemoveTeamStatus[i]); - if (error) - return "sharedFolderRemoveTeamStatus." + error; + let error = $root.Folder.SharedFolderUpdateTeamStatus.verify( + message.sharedFolderRemoveTeamStatus[i] + ); + if (error) return 'sharedFolderRemoveTeamStatus.' + error; } } - if (message.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) - if (!(message.sharedFolderUid && typeof message.sharedFolderUid.length === "number" || $util.isString(message.sharedFolderUid))) - return "sharedFolderUid: buffer expected"; - if (message.status != null && message.hasOwnProperty("status")) - if (!$util.isString(message.status)) - return "status: string expected"; + if (message.sharedFolderUid != null && message.hasOwnProperty('sharedFolderUid')) + if ( + !( + (message.sharedFolderUid && typeof message.sharedFolderUid.length === 'number') || + $util.isString(message.sharedFolderUid) + ) + ) + return 'sharedFolderUid: buffer expected'; + if (message.status != null && message.hasOwnProperty('status')) + if (!$util.isString(message.status)) return 'status: string expected'; return null; }; @@ -167533,115 +174095,164 @@ export const Folder = $root.Folder = (() => { * @returns {Folder.SharedFolderUpdateV3Response} SharedFolderUpdateV3Response */ SharedFolderUpdateV3Response.fromObject = function fromObject(object) { - if (object instanceof $root.Folder.SharedFolderUpdateV3Response) - return object; + if (object instanceof $root.Folder.SharedFolderUpdateV3Response) return object; let message = new $root.Folder.SharedFolderUpdateV3Response(); if (object.revision != null) - if ($util.Long) - (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; - else if (typeof object.revision === "string") - message.revision = parseInt(object.revision, 10); - else if (typeof object.revision === "number") - message.revision = object.revision; - else if (typeof object.revision === "object") - message.revision = new $util.LongBits(object.revision.low >>> 0, object.revision.high >>> 0).toNumber(); + if ($util.Long) (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; + else if (typeof object.revision === 'string') message.revision = parseInt(object.revision, 10); + else if (typeof object.revision === 'number') message.revision = object.revision; + else if (typeof object.revision === 'object') + message.revision = new $util.LongBits( + object.revision.low >>> 0, + object.revision.high >>> 0 + ).toNumber(); if (object.sharedFolderAddRecordStatus) { if (!Array.isArray(object.sharedFolderAddRecordStatus)) - throw TypeError(".Folder.SharedFolderUpdateV3Response.sharedFolderAddRecordStatus: array expected"); + throw TypeError('.Folder.SharedFolderUpdateV3Response.sharedFolderAddRecordStatus: array expected'); message.sharedFolderAddRecordStatus = []; for (let i = 0; i < object.sharedFolderAddRecordStatus.length; ++i) { - if (typeof object.sharedFolderAddRecordStatus[i] !== "object") - throw TypeError(".Folder.SharedFolderUpdateV3Response.sharedFolderAddRecordStatus: object expected"); - message.sharedFolderAddRecordStatus[i] = $root.Folder.SharedFolderUpdateRecordStatus.fromObject(object.sharedFolderAddRecordStatus[i]); + if (typeof object.sharedFolderAddRecordStatus[i] !== 'object') + throw TypeError( + '.Folder.SharedFolderUpdateV3Response.sharedFolderAddRecordStatus: object expected' + ); + message.sharedFolderAddRecordStatus[i] = $root.Folder.SharedFolderUpdateRecordStatus.fromObject( + object.sharedFolderAddRecordStatus[i] + ); } } if (object.sharedFolderAddUserStatus) { if (!Array.isArray(object.sharedFolderAddUserStatus)) - throw TypeError(".Folder.SharedFolderUpdateV3Response.sharedFolderAddUserStatus: array expected"); + throw TypeError('.Folder.SharedFolderUpdateV3Response.sharedFolderAddUserStatus: array expected'); message.sharedFolderAddUserStatus = []; for (let i = 0; i < object.sharedFolderAddUserStatus.length; ++i) { - if (typeof object.sharedFolderAddUserStatus[i] !== "object") - throw TypeError(".Folder.SharedFolderUpdateV3Response.sharedFolderAddUserStatus: object expected"); - message.sharedFolderAddUserStatus[i] = $root.Folder.SharedFolderUpdateUserStatus.fromObject(object.sharedFolderAddUserStatus[i]); + if (typeof object.sharedFolderAddUserStatus[i] !== 'object') + throw TypeError( + '.Folder.SharedFolderUpdateV3Response.sharedFolderAddUserStatus: object expected' + ); + message.sharedFolderAddUserStatus[i] = $root.Folder.SharedFolderUpdateUserStatus.fromObject( + object.sharedFolderAddUserStatus[i] + ); } } if (object.sharedFolderAddTeamStatus) { if (!Array.isArray(object.sharedFolderAddTeamStatus)) - throw TypeError(".Folder.SharedFolderUpdateV3Response.sharedFolderAddTeamStatus: array expected"); + throw TypeError('.Folder.SharedFolderUpdateV3Response.sharedFolderAddTeamStatus: array expected'); message.sharedFolderAddTeamStatus = []; for (let i = 0; i < object.sharedFolderAddTeamStatus.length; ++i) { - if (typeof object.sharedFolderAddTeamStatus[i] !== "object") - throw TypeError(".Folder.SharedFolderUpdateV3Response.sharedFolderAddTeamStatus: object expected"); - message.sharedFolderAddTeamStatus[i] = $root.Folder.SharedFolderUpdateTeamStatus.fromObject(object.sharedFolderAddTeamStatus[i]); + if (typeof object.sharedFolderAddTeamStatus[i] !== 'object') + throw TypeError( + '.Folder.SharedFolderUpdateV3Response.sharedFolderAddTeamStatus: object expected' + ); + message.sharedFolderAddTeamStatus[i] = $root.Folder.SharedFolderUpdateTeamStatus.fromObject( + object.sharedFolderAddTeamStatus[i] + ); } } if (object.sharedFolderUpdateRecordStatus) { if (!Array.isArray(object.sharedFolderUpdateRecordStatus)) - throw TypeError(".Folder.SharedFolderUpdateV3Response.sharedFolderUpdateRecordStatus: array expected"); + throw TypeError( + '.Folder.SharedFolderUpdateV3Response.sharedFolderUpdateRecordStatus: array expected' + ); message.sharedFolderUpdateRecordStatus = []; for (let i = 0; i < object.sharedFolderUpdateRecordStatus.length; ++i) { - if (typeof object.sharedFolderUpdateRecordStatus[i] !== "object") - throw TypeError(".Folder.SharedFolderUpdateV3Response.sharedFolderUpdateRecordStatus: object expected"); - message.sharedFolderUpdateRecordStatus[i] = $root.Folder.SharedFolderUpdateRecordStatus.fromObject(object.sharedFolderUpdateRecordStatus[i]); + if (typeof object.sharedFolderUpdateRecordStatus[i] !== 'object') + throw TypeError( + '.Folder.SharedFolderUpdateV3Response.sharedFolderUpdateRecordStatus: object expected' + ); + message.sharedFolderUpdateRecordStatus[i] = $root.Folder.SharedFolderUpdateRecordStatus.fromObject( + object.sharedFolderUpdateRecordStatus[i] + ); } } if (object.sharedFolderUpdateUserStatus) { if (!Array.isArray(object.sharedFolderUpdateUserStatus)) - throw TypeError(".Folder.SharedFolderUpdateV3Response.sharedFolderUpdateUserStatus: array expected"); + throw TypeError( + '.Folder.SharedFolderUpdateV3Response.sharedFolderUpdateUserStatus: array expected' + ); message.sharedFolderUpdateUserStatus = []; for (let i = 0; i < object.sharedFolderUpdateUserStatus.length; ++i) { - if (typeof object.sharedFolderUpdateUserStatus[i] !== "object") - throw TypeError(".Folder.SharedFolderUpdateV3Response.sharedFolderUpdateUserStatus: object expected"); - message.sharedFolderUpdateUserStatus[i] = $root.Folder.SharedFolderUpdateUserStatus.fromObject(object.sharedFolderUpdateUserStatus[i]); + if (typeof object.sharedFolderUpdateUserStatus[i] !== 'object') + throw TypeError( + '.Folder.SharedFolderUpdateV3Response.sharedFolderUpdateUserStatus: object expected' + ); + message.sharedFolderUpdateUserStatus[i] = $root.Folder.SharedFolderUpdateUserStatus.fromObject( + object.sharedFolderUpdateUserStatus[i] + ); } } if (object.sharedFolderUpdateTeamStatus) { if (!Array.isArray(object.sharedFolderUpdateTeamStatus)) - throw TypeError(".Folder.SharedFolderUpdateV3Response.sharedFolderUpdateTeamStatus: array expected"); + throw TypeError( + '.Folder.SharedFolderUpdateV3Response.sharedFolderUpdateTeamStatus: array expected' + ); message.sharedFolderUpdateTeamStatus = []; for (let i = 0; i < object.sharedFolderUpdateTeamStatus.length; ++i) { - if (typeof object.sharedFolderUpdateTeamStatus[i] !== "object") - throw TypeError(".Folder.SharedFolderUpdateV3Response.sharedFolderUpdateTeamStatus: object expected"); - message.sharedFolderUpdateTeamStatus[i] = $root.Folder.SharedFolderUpdateTeamStatus.fromObject(object.sharedFolderUpdateTeamStatus[i]); + if (typeof object.sharedFolderUpdateTeamStatus[i] !== 'object') + throw TypeError( + '.Folder.SharedFolderUpdateV3Response.sharedFolderUpdateTeamStatus: object expected' + ); + message.sharedFolderUpdateTeamStatus[i] = $root.Folder.SharedFolderUpdateTeamStatus.fromObject( + object.sharedFolderUpdateTeamStatus[i] + ); } } if (object.sharedFolderRemoveRecordStatus) { if (!Array.isArray(object.sharedFolderRemoveRecordStatus)) - throw TypeError(".Folder.SharedFolderUpdateV3Response.sharedFolderRemoveRecordStatus: array expected"); + throw TypeError( + '.Folder.SharedFolderUpdateV3Response.sharedFolderRemoveRecordStatus: array expected' + ); message.sharedFolderRemoveRecordStatus = []; for (let i = 0; i < object.sharedFolderRemoveRecordStatus.length; ++i) { - if (typeof object.sharedFolderRemoveRecordStatus[i] !== "object") - throw TypeError(".Folder.SharedFolderUpdateV3Response.sharedFolderRemoveRecordStatus: object expected"); - message.sharedFolderRemoveRecordStatus[i] = $root.Folder.SharedFolderUpdateRecordStatus.fromObject(object.sharedFolderRemoveRecordStatus[i]); + if (typeof object.sharedFolderRemoveRecordStatus[i] !== 'object') + throw TypeError( + '.Folder.SharedFolderUpdateV3Response.sharedFolderRemoveRecordStatus: object expected' + ); + message.sharedFolderRemoveRecordStatus[i] = $root.Folder.SharedFolderUpdateRecordStatus.fromObject( + object.sharedFolderRemoveRecordStatus[i] + ); } } if (object.sharedFolderRemoveUserStatus) { if (!Array.isArray(object.sharedFolderRemoveUserStatus)) - throw TypeError(".Folder.SharedFolderUpdateV3Response.sharedFolderRemoveUserStatus: array expected"); + throw TypeError( + '.Folder.SharedFolderUpdateV3Response.sharedFolderRemoveUserStatus: array expected' + ); message.sharedFolderRemoveUserStatus = []; for (let i = 0; i < object.sharedFolderRemoveUserStatus.length; ++i) { - if (typeof object.sharedFolderRemoveUserStatus[i] !== "object") - throw TypeError(".Folder.SharedFolderUpdateV3Response.sharedFolderRemoveUserStatus: object expected"); - message.sharedFolderRemoveUserStatus[i] = $root.Folder.SharedFolderUpdateUserStatus.fromObject(object.sharedFolderRemoveUserStatus[i]); + if (typeof object.sharedFolderRemoveUserStatus[i] !== 'object') + throw TypeError( + '.Folder.SharedFolderUpdateV3Response.sharedFolderRemoveUserStatus: object expected' + ); + message.sharedFolderRemoveUserStatus[i] = $root.Folder.SharedFolderUpdateUserStatus.fromObject( + object.sharedFolderRemoveUserStatus[i] + ); } } if (object.sharedFolderRemoveTeamStatus) { if (!Array.isArray(object.sharedFolderRemoveTeamStatus)) - throw TypeError(".Folder.SharedFolderUpdateV3Response.sharedFolderRemoveTeamStatus: array expected"); + throw TypeError( + '.Folder.SharedFolderUpdateV3Response.sharedFolderRemoveTeamStatus: array expected' + ); message.sharedFolderRemoveTeamStatus = []; for (let i = 0; i < object.sharedFolderRemoveTeamStatus.length; ++i) { - if (typeof object.sharedFolderRemoveTeamStatus[i] !== "object") - throw TypeError(".Folder.SharedFolderUpdateV3Response.sharedFolderRemoveTeamStatus: object expected"); - message.sharedFolderRemoveTeamStatus[i] = $root.Folder.SharedFolderUpdateTeamStatus.fromObject(object.sharedFolderRemoveTeamStatus[i]); + if (typeof object.sharedFolderRemoveTeamStatus[i] !== 'object') + throw TypeError( + '.Folder.SharedFolderUpdateV3Response.sharedFolderRemoveTeamStatus: object expected' + ); + message.sharedFolderRemoveTeamStatus[i] = $root.Folder.SharedFolderUpdateTeamStatus.fromObject( + object.sharedFolderRemoveTeamStatus[i] + ); } } if (object.sharedFolderUid != null) - if (typeof object.sharedFolderUid === "string") - $util.base64.decode(object.sharedFolderUid, message.sharedFolderUid = $util.newBuffer($util.base64.length(object.sharedFolderUid)), 0); - else if (object.sharedFolderUid.length >= 0) - message.sharedFolderUid = object.sharedFolderUid; - if (object.status != null) - message.status = String(object.status); + if (typeof object.sharedFolderUid === 'string') + $util.base64.decode( + object.sharedFolderUid, + (message.sharedFolderUid = $util.newBuffer($util.base64.length(object.sharedFolderUid))), + 0 + ); + else if (object.sharedFolderUid.length >= 0) message.sharedFolderUid = object.sharedFolderUid; + if (object.status != null) message.status = String(object.status); return message; }; @@ -167655,8 +174266,7 @@ export const Folder = $root.Folder = (() => { * @returns {Object.} Plain object */ SharedFolderUpdateV3Response.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.arrays || options.defaults) { object.sharedFolderAddRecordStatus = []; @@ -167672,72 +174282,106 @@ export const Folder = $root.Folder = (() => { if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.revision = options.longs === String ? "0" : 0; - if (options.bytes === String) - object.sharedFolderUid = ""; + object.revision = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.revision = options.longs === String ? '0' : 0; + if (options.bytes === String) object.sharedFolderUid = ''; else { object.sharedFolderUid = []; - if (options.bytes !== Array) - object.sharedFolderUid = $util.newBuffer(object.sharedFolderUid); + if (options.bytes !== Array) object.sharedFolderUid = $util.newBuffer(object.sharedFolderUid); } - object.status = ""; + object.status = ''; } - if (message.revision != null && message.hasOwnProperty("revision")) - if (typeof message.revision === "number") + if (message.revision != null && message.hasOwnProperty('revision')) + if (typeof message.revision === 'number') object.revision = options.longs === String ? String(message.revision) : message.revision; else - object.revision = options.longs === String ? $util.Long.prototype.toString.call(message.revision) : options.longs === Number ? new $util.LongBits(message.revision.low >>> 0, message.revision.high >>> 0).toNumber() : message.revision; + object.revision = + options.longs === String + ? $util.Long.prototype.toString.call(message.revision) + : options.longs === Number + ? new $util.LongBits(message.revision.low >>> 0, message.revision.high >>> 0).toNumber() + : message.revision; if (message.sharedFolderAddRecordStatus && message.sharedFolderAddRecordStatus.length) { object.sharedFolderAddRecordStatus = []; for (let j = 0; j < message.sharedFolderAddRecordStatus.length; ++j) - object.sharedFolderAddRecordStatus[j] = $root.Folder.SharedFolderUpdateRecordStatus.toObject(message.sharedFolderAddRecordStatus[j], options); + object.sharedFolderAddRecordStatus[j] = $root.Folder.SharedFolderUpdateRecordStatus.toObject( + message.sharedFolderAddRecordStatus[j], + options + ); } if (message.sharedFolderAddUserStatus && message.sharedFolderAddUserStatus.length) { object.sharedFolderAddUserStatus = []; for (let j = 0; j < message.sharedFolderAddUserStatus.length; ++j) - object.sharedFolderAddUserStatus[j] = $root.Folder.SharedFolderUpdateUserStatus.toObject(message.sharedFolderAddUserStatus[j], options); + object.sharedFolderAddUserStatus[j] = $root.Folder.SharedFolderUpdateUserStatus.toObject( + message.sharedFolderAddUserStatus[j], + options + ); } if (message.sharedFolderAddTeamStatus && message.sharedFolderAddTeamStatus.length) { object.sharedFolderAddTeamStatus = []; for (let j = 0; j < message.sharedFolderAddTeamStatus.length; ++j) - object.sharedFolderAddTeamStatus[j] = $root.Folder.SharedFolderUpdateTeamStatus.toObject(message.sharedFolderAddTeamStatus[j], options); + object.sharedFolderAddTeamStatus[j] = $root.Folder.SharedFolderUpdateTeamStatus.toObject( + message.sharedFolderAddTeamStatus[j], + options + ); } if (message.sharedFolderUpdateRecordStatus && message.sharedFolderUpdateRecordStatus.length) { object.sharedFolderUpdateRecordStatus = []; for (let j = 0; j < message.sharedFolderUpdateRecordStatus.length; ++j) - object.sharedFolderUpdateRecordStatus[j] = $root.Folder.SharedFolderUpdateRecordStatus.toObject(message.sharedFolderUpdateRecordStatus[j], options); + object.sharedFolderUpdateRecordStatus[j] = $root.Folder.SharedFolderUpdateRecordStatus.toObject( + message.sharedFolderUpdateRecordStatus[j], + options + ); } if (message.sharedFolderUpdateUserStatus && message.sharedFolderUpdateUserStatus.length) { object.sharedFolderUpdateUserStatus = []; for (let j = 0; j < message.sharedFolderUpdateUserStatus.length; ++j) - object.sharedFolderUpdateUserStatus[j] = $root.Folder.SharedFolderUpdateUserStatus.toObject(message.sharedFolderUpdateUserStatus[j], options); + object.sharedFolderUpdateUserStatus[j] = $root.Folder.SharedFolderUpdateUserStatus.toObject( + message.sharedFolderUpdateUserStatus[j], + options + ); } if (message.sharedFolderUpdateTeamStatus && message.sharedFolderUpdateTeamStatus.length) { object.sharedFolderUpdateTeamStatus = []; for (let j = 0; j < message.sharedFolderUpdateTeamStatus.length; ++j) - object.sharedFolderUpdateTeamStatus[j] = $root.Folder.SharedFolderUpdateTeamStatus.toObject(message.sharedFolderUpdateTeamStatus[j], options); + object.sharedFolderUpdateTeamStatus[j] = $root.Folder.SharedFolderUpdateTeamStatus.toObject( + message.sharedFolderUpdateTeamStatus[j], + options + ); } if (message.sharedFolderRemoveRecordStatus && message.sharedFolderRemoveRecordStatus.length) { object.sharedFolderRemoveRecordStatus = []; for (let j = 0; j < message.sharedFolderRemoveRecordStatus.length; ++j) - object.sharedFolderRemoveRecordStatus[j] = $root.Folder.SharedFolderUpdateRecordStatus.toObject(message.sharedFolderRemoveRecordStatus[j], options); + object.sharedFolderRemoveRecordStatus[j] = $root.Folder.SharedFolderUpdateRecordStatus.toObject( + message.sharedFolderRemoveRecordStatus[j], + options + ); } if (message.sharedFolderRemoveUserStatus && message.sharedFolderRemoveUserStatus.length) { object.sharedFolderRemoveUserStatus = []; for (let j = 0; j < message.sharedFolderRemoveUserStatus.length; ++j) - object.sharedFolderRemoveUserStatus[j] = $root.Folder.SharedFolderUpdateUserStatus.toObject(message.sharedFolderRemoveUserStatus[j], options); + object.sharedFolderRemoveUserStatus[j] = $root.Folder.SharedFolderUpdateUserStatus.toObject( + message.sharedFolderRemoveUserStatus[j], + options + ); } if (message.sharedFolderRemoveTeamStatus && message.sharedFolderRemoveTeamStatus.length) { object.sharedFolderRemoveTeamStatus = []; for (let j = 0; j < message.sharedFolderRemoveTeamStatus.length; ++j) - object.sharedFolderRemoveTeamStatus[j] = $root.Folder.SharedFolderUpdateTeamStatus.toObject(message.sharedFolderRemoveTeamStatus[j], options); + object.sharedFolderRemoveTeamStatus[j] = $root.Folder.SharedFolderUpdateTeamStatus.toObject( + message.sharedFolderRemoveTeamStatus[j], + options + ); } - if (message.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) - object.sharedFolderUid = options.bytes === String ? $util.base64.encode(message.sharedFolderUid, 0, message.sharedFolderUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.sharedFolderUid) : message.sharedFolderUid; - if (message.status != null && message.hasOwnProperty("status")) - object.status = message.status; + if (message.sharedFolderUid != null && message.hasOwnProperty('sharedFolderUid')) + object.sharedFolderUid = + options.bytes === String + ? $util.base64.encode(message.sharedFolderUid, 0, message.sharedFolderUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.sharedFolderUid) + : message.sharedFolderUid; + if (message.status != null && message.hasOwnProperty('status')) object.status = message.status; return object; }; @@ -167762,16 +174406,15 @@ export const Folder = $root.Folder = (() => { */ SharedFolderUpdateV3Response.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Folder.SharedFolderUpdateV3Response"; + return typeUrlPrefix + '/Folder.SharedFolderUpdateV3Response'; }; return SharedFolderUpdateV3Response; })(); - Folder.SharedFolderUpdateV3ResponseV2 = (function() { - + Folder.SharedFolderUpdateV3ResponseV2 = (function () { /** * Properties of a SharedFolderUpdateV3ResponseV2. * @memberof Folder @@ -167791,8 +174434,7 @@ export const Folder = $root.Folder = (() => { this.sharedFoldersUpdateV3Response = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -167825,11 +174467,13 @@ export const Folder = $root.Folder = (() => { * @returns {$protobuf.Writer} Writer */ SharedFolderUpdateV3ResponseV2.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.sharedFoldersUpdateV3Response != null && message.sharedFoldersUpdateV3Response.length) for (let i = 0; i < message.sharedFoldersUpdateV3Response.length; ++i) - $root.Folder.SharedFolderUpdateV3Response.encode(message.sharedFoldersUpdateV3Response[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.Folder.SharedFolderUpdateV3Response.encode( + message.sharedFoldersUpdateV3Response[i], + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); return writer; }; @@ -167858,21 +174502,23 @@ export const Folder = $root.Folder = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SharedFolderUpdateV3ResponseV2.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Folder.SharedFolderUpdateV3ResponseV2(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Folder.SharedFolderUpdateV3ResponseV2(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { if (!(message.sharedFoldersUpdateV3Response && message.sharedFoldersUpdateV3Response.length)) message.sharedFoldersUpdateV3Response = []; - message.sharedFoldersUpdateV3Response.push($root.Folder.SharedFolderUpdateV3Response.decode(reader, reader.uint32())); + message.sharedFoldersUpdateV3Response.push( + $root.Folder.SharedFolderUpdateV3Response.decode(reader, reader.uint32()) + ); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -167889,8 +174535,7 @@ export const Folder = $root.Folder = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SharedFolderUpdateV3ResponseV2.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -167903,15 +174548,18 @@ export const Folder = $root.Folder = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ SharedFolderUpdateV3ResponseV2.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.sharedFoldersUpdateV3Response != null && message.hasOwnProperty("sharedFoldersUpdateV3Response")) { + if (typeof message !== 'object' || message === null) return 'object expected'; + if ( + message.sharedFoldersUpdateV3Response != null && + message.hasOwnProperty('sharedFoldersUpdateV3Response') + ) { if (!Array.isArray(message.sharedFoldersUpdateV3Response)) - return "sharedFoldersUpdateV3Response: array expected"; + return 'sharedFoldersUpdateV3Response: array expected'; for (let i = 0; i < message.sharedFoldersUpdateV3Response.length; ++i) { - let error = $root.Folder.SharedFolderUpdateV3Response.verify(message.sharedFoldersUpdateV3Response[i]); - if (error) - return "sharedFoldersUpdateV3Response." + error; + let error = $root.Folder.SharedFolderUpdateV3Response.verify( + message.sharedFoldersUpdateV3Response[i] + ); + if (error) return 'sharedFoldersUpdateV3Response.' + error; } } return null; @@ -167926,17 +174574,22 @@ export const Folder = $root.Folder = (() => { * @returns {Folder.SharedFolderUpdateV3ResponseV2} SharedFolderUpdateV3ResponseV2 */ SharedFolderUpdateV3ResponseV2.fromObject = function fromObject(object) { - if (object instanceof $root.Folder.SharedFolderUpdateV3ResponseV2) - return object; + if (object instanceof $root.Folder.SharedFolderUpdateV3ResponseV2) return object; let message = new $root.Folder.SharedFolderUpdateV3ResponseV2(); if (object.sharedFoldersUpdateV3Response) { if (!Array.isArray(object.sharedFoldersUpdateV3Response)) - throw TypeError(".Folder.SharedFolderUpdateV3ResponseV2.sharedFoldersUpdateV3Response: array expected"); + throw TypeError( + '.Folder.SharedFolderUpdateV3ResponseV2.sharedFoldersUpdateV3Response: array expected' + ); message.sharedFoldersUpdateV3Response = []; for (let i = 0; i < object.sharedFoldersUpdateV3Response.length; ++i) { - if (typeof object.sharedFoldersUpdateV3Response[i] !== "object") - throw TypeError(".Folder.SharedFolderUpdateV3ResponseV2.sharedFoldersUpdateV3Response: object expected"); - message.sharedFoldersUpdateV3Response[i] = $root.Folder.SharedFolderUpdateV3Response.fromObject(object.sharedFoldersUpdateV3Response[i]); + if (typeof object.sharedFoldersUpdateV3Response[i] !== 'object') + throw TypeError( + '.Folder.SharedFolderUpdateV3ResponseV2.sharedFoldersUpdateV3Response: object expected' + ); + message.sharedFoldersUpdateV3Response[i] = $root.Folder.SharedFolderUpdateV3Response.fromObject( + object.sharedFoldersUpdateV3Response[i] + ); } } return message; @@ -167952,15 +174605,16 @@ export const Folder = $root.Folder = (() => { * @returns {Object.} Plain object */ SharedFolderUpdateV3ResponseV2.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.sharedFoldersUpdateV3Response = []; + if (options.arrays || options.defaults) object.sharedFoldersUpdateV3Response = []; if (message.sharedFoldersUpdateV3Response && message.sharedFoldersUpdateV3Response.length) { object.sharedFoldersUpdateV3Response = []; for (let j = 0; j < message.sharedFoldersUpdateV3Response.length; ++j) - object.sharedFoldersUpdateV3Response[j] = $root.Folder.SharedFolderUpdateV3Response.toObject(message.sharedFoldersUpdateV3Response[j], options); + object.sharedFoldersUpdateV3Response[j] = $root.Folder.SharedFolderUpdateV3Response.toObject( + message.sharedFoldersUpdateV3Response[j], + options + ); } return object; }; @@ -167986,16 +174640,15 @@ export const Folder = $root.Folder = (() => { */ SharedFolderUpdateV3ResponseV2.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Folder.SharedFolderUpdateV3ResponseV2"; + return typeUrlPrefix + '/Folder.SharedFolderUpdateV3ResponseV2'; }; return SharedFolderUpdateV3ResponseV2; })(); - Folder.GetDeletedSharedFoldersAndRecordsResponse = (function() { - + Folder.GetDeletedSharedFoldersAndRecordsResponse = (function () { /** * Properties of a GetDeletedSharedFoldersAndRecordsResponse. * @memberof Folder @@ -168021,8 +174674,7 @@ export const Folder = $root.Folder = (() => { this.usernames = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -168079,20 +174731,31 @@ export const Folder = $root.Folder = (() => { * @returns {$protobuf.Writer} Writer */ GetDeletedSharedFoldersAndRecordsResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.sharedFolders != null && message.sharedFolders.length) for (let i = 0; i < message.sharedFolders.length; ++i) - $root.Folder.DeletedSharedFolder.encode(message.sharedFolders[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.Folder.DeletedSharedFolder.encode( + message.sharedFolders[i], + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); if (message.sharedFolderRecords != null && message.sharedFolderRecords.length) for (let i = 0; i < message.sharedFolderRecords.length; ++i) - $root.Folder.DeletedSharedFolderRecord.encode(message.sharedFolderRecords[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + $root.Folder.DeletedSharedFolderRecord.encode( + message.sharedFolderRecords[i], + writer.uint32(/* id 2, wireType 2 =*/ 18).fork() + ).ldelim(); if (message.deletedRecordData != null && message.deletedRecordData.length) for (let i = 0; i < message.deletedRecordData.length; ++i) - $root.Folder.DeletedRecordData.encode(message.deletedRecordData[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + $root.Folder.DeletedRecordData.encode( + message.deletedRecordData[i], + writer.uint32(/* id 3, wireType 2 =*/ 26).fork() + ).ldelim(); if (message.usernames != null && message.usernames.length) for (let i = 0; i < message.usernames.length; ++i) - $root.Folder.Username.encode(message.usernames[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + $root.Folder.Username.encode( + message.usernames[i], + writer.uint32(/* id 4, wireType 2 =*/ 34).fork() + ).ldelim(); return writer; }; @@ -168121,39 +174784,39 @@ export const Folder = $root.Folder = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ GetDeletedSharedFoldersAndRecordsResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Folder.GetDeletedSharedFoldersAndRecordsResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Folder.GetDeletedSharedFoldersAndRecordsResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (!(message.sharedFolders && message.sharedFolders.length)) - message.sharedFolders = []; + case 1: { + if (!(message.sharedFolders && message.sharedFolders.length)) message.sharedFolders = []; message.sharedFolders.push($root.Folder.DeletedSharedFolder.decode(reader, reader.uint32())); break; } - case 2: { + case 2: { if (!(message.sharedFolderRecords && message.sharedFolderRecords.length)) message.sharedFolderRecords = []; - message.sharedFolderRecords.push($root.Folder.DeletedSharedFolderRecord.decode(reader, reader.uint32())); + message.sharedFolderRecords.push( + $root.Folder.DeletedSharedFolderRecord.decode(reader, reader.uint32()) + ); break; } - case 3: { + case 3: { if (!(message.deletedRecordData && message.deletedRecordData.length)) message.deletedRecordData = []; message.deletedRecordData.push($root.Folder.DeletedRecordData.decode(reader, reader.uint32())); break; } - case 4: { - if (!(message.usernames && message.usernames.length)) - message.usernames = []; + case 4: { + if (!(message.usernames && message.usernames.length)) message.usernames = []; message.usernames.push($root.Folder.Username.decode(reader, reader.uint32())); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -168170,8 +174833,7 @@ export const Folder = $root.Folder = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ GetDeletedSharedFoldersAndRecordsResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -168184,42 +174846,33 @@ export const Folder = $root.Folder = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ GetDeletedSharedFoldersAndRecordsResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.sharedFolders != null && message.hasOwnProperty("sharedFolders")) { - if (!Array.isArray(message.sharedFolders)) - return "sharedFolders: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.sharedFolders != null && message.hasOwnProperty('sharedFolders')) { + if (!Array.isArray(message.sharedFolders)) return 'sharedFolders: array expected'; for (let i = 0; i < message.sharedFolders.length; ++i) { let error = $root.Folder.DeletedSharedFolder.verify(message.sharedFolders[i]); - if (error) - return "sharedFolders." + error; + if (error) return 'sharedFolders.' + error; } } - if (message.sharedFolderRecords != null && message.hasOwnProperty("sharedFolderRecords")) { - if (!Array.isArray(message.sharedFolderRecords)) - return "sharedFolderRecords: array expected"; + if (message.sharedFolderRecords != null && message.hasOwnProperty('sharedFolderRecords')) { + if (!Array.isArray(message.sharedFolderRecords)) return 'sharedFolderRecords: array expected'; for (let i = 0; i < message.sharedFolderRecords.length; ++i) { let error = $root.Folder.DeletedSharedFolderRecord.verify(message.sharedFolderRecords[i]); - if (error) - return "sharedFolderRecords." + error; + if (error) return 'sharedFolderRecords.' + error; } } - if (message.deletedRecordData != null && message.hasOwnProperty("deletedRecordData")) { - if (!Array.isArray(message.deletedRecordData)) - return "deletedRecordData: array expected"; + if (message.deletedRecordData != null && message.hasOwnProperty('deletedRecordData')) { + if (!Array.isArray(message.deletedRecordData)) return 'deletedRecordData: array expected'; for (let i = 0; i < message.deletedRecordData.length; ++i) { let error = $root.Folder.DeletedRecordData.verify(message.deletedRecordData[i]); - if (error) - return "deletedRecordData." + error; + if (error) return 'deletedRecordData.' + error; } } - if (message.usernames != null && message.hasOwnProperty("usernames")) { - if (!Array.isArray(message.usernames)) - return "usernames: array expected"; + if (message.usernames != null && message.hasOwnProperty('usernames')) { + if (!Array.isArray(message.usernames)) return 'usernames: array expected'; for (let i = 0; i < message.usernames.length; ++i) { let error = $root.Folder.Username.verify(message.usernames[i]); - if (error) - return "usernames." + error; + if (error) return 'usernames.' + error; } } return null; @@ -168234,46 +174887,59 @@ export const Folder = $root.Folder = (() => { * @returns {Folder.GetDeletedSharedFoldersAndRecordsResponse} GetDeletedSharedFoldersAndRecordsResponse */ GetDeletedSharedFoldersAndRecordsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.Folder.GetDeletedSharedFoldersAndRecordsResponse) - return object; + if (object instanceof $root.Folder.GetDeletedSharedFoldersAndRecordsResponse) return object; let message = new $root.Folder.GetDeletedSharedFoldersAndRecordsResponse(); if (object.sharedFolders) { if (!Array.isArray(object.sharedFolders)) - throw TypeError(".Folder.GetDeletedSharedFoldersAndRecordsResponse.sharedFolders: array expected"); + throw TypeError('.Folder.GetDeletedSharedFoldersAndRecordsResponse.sharedFolders: array expected'); message.sharedFolders = []; for (let i = 0; i < object.sharedFolders.length; ++i) { - if (typeof object.sharedFolders[i] !== "object") - throw TypeError(".Folder.GetDeletedSharedFoldersAndRecordsResponse.sharedFolders: object expected"); + if (typeof object.sharedFolders[i] !== 'object') + throw TypeError( + '.Folder.GetDeletedSharedFoldersAndRecordsResponse.sharedFolders: object expected' + ); message.sharedFolders[i] = $root.Folder.DeletedSharedFolder.fromObject(object.sharedFolders[i]); } } if (object.sharedFolderRecords) { if (!Array.isArray(object.sharedFolderRecords)) - throw TypeError(".Folder.GetDeletedSharedFoldersAndRecordsResponse.sharedFolderRecords: array expected"); + throw TypeError( + '.Folder.GetDeletedSharedFoldersAndRecordsResponse.sharedFolderRecords: array expected' + ); message.sharedFolderRecords = []; for (let i = 0; i < object.sharedFolderRecords.length; ++i) { - if (typeof object.sharedFolderRecords[i] !== "object") - throw TypeError(".Folder.GetDeletedSharedFoldersAndRecordsResponse.sharedFolderRecords: object expected"); - message.sharedFolderRecords[i] = $root.Folder.DeletedSharedFolderRecord.fromObject(object.sharedFolderRecords[i]); + if (typeof object.sharedFolderRecords[i] !== 'object') + throw TypeError( + '.Folder.GetDeletedSharedFoldersAndRecordsResponse.sharedFolderRecords: object expected' + ); + message.sharedFolderRecords[i] = $root.Folder.DeletedSharedFolderRecord.fromObject( + object.sharedFolderRecords[i] + ); } } if (object.deletedRecordData) { if (!Array.isArray(object.deletedRecordData)) - throw TypeError(".Folder.GetDeletedSharedFoldersAndRecordsResponse.deletedRecordData: array expected"); + throw TypeError( + '.Folder.GetDeletedSharedFoldersAndRecordsResponse.deletedRecordData: array expected' + ); message.deletedRecordData = []; for (let i = 0; i < object.deletedRecordData.length; ++i) { - if (typeof object.deletedRecordData[i] !== "object") - throw TypeError(".Folder.GetDeletedSharedFoldersAndRecordsResponse.deletedRecordData: object expected"); - message.deletedRecordData[i] = $root.Folder.DeletedRecordData.fromObject(object.deletedRecordData[i]); + if (typeof object.deletedRecordData[i] !== 'object') + throw TypeError( + '.Folder.GetDeletedSharedFoldersAndRecordsResponse.deletedRecordData: object expected' + ); + message.deletedRecordData[i] = $root.Folder.DeletedRecordData.fromObject( + object.deletedRecordData[i] + ); } } if (object.usernames) { if (!Array.isArray(object.usernames)) - throw TypeError(".Folder.GetDeletedSharedFoldersAndRecordsResponse.usernames: array expected"); + throw TypeError('.Folder.GetDeletedSharedFoldersAndRecordsResponse.usernames: array expected'); message.usernames = []; for (let i = 0; i < object.usernames.length; ++i) { - if (typeof object.usernames[i] !== "object") - throw TypeError(".Folder.GetDeletedSharedFoldersAndRecordsResponse.usernames: object expected"); + if (typeof object.usernames[i] !== 'object') + throw TypeError('.Folder.GetDeletedSharedFoldersAndRecordsResponse.usernames: object expected'); message.usernames[i] = $root.Folder.Username.fromObject(object.usernames[i]); } } @@ -168290,8 +174956,7 @@ export const Folder = $root.Folder = (() => { * @returns {Object.} Plain object */ GetDeletedSharedFoldersAndRecordsResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.arrays || options.defaults) { object.sharedFolders = []; @@ -168302,17 +174967,26 @@ export const Folder = $root.Folder = (() => { if (message.sharedFolders && message.sharedFolders.length) { object.sharedFolders = []; for (let j = 0; j < message.sharedFolders.length; ++j) - object.sharedFolders[j] = $root.Folder.DeletedSharedFolder.toObject(message.sharedFolders[j], options); + object.sharedFolders[j] = $root.Folder.DeletedSharedFolder.toObject( + message.sharedFolders[j], + options + ); } if (message.sharedFolderRecords && message.sharedFolderRecords.length) { object.sharedFolderRecords = []; for (let j = 0; j < message.sharedFolderRecords.length; ++j) - object.sharedFolderRecords[j] = $root.Folder.DeletedSharedFolderRecord.toObject(message.sharedFolderRecords[j], options); + object.sharedFolderRecords[j] = $root.Folder.DeletedSharedFolderRecord.toObject( + message.sharedFolderRecords[j], + options + ); } if (message.deletedRecordData && message.deletedRecordData.length) { object.deletedRecordData = []; for (let j = 0; j < message.deletedRecordData.length; ++j) - object.deletedRecordData[j] = $root.Folder.DeletedRecordData.toObject(message.deletedRecordData[j], options); + object.deletedRecordData[j] = $root.Folder.DeletedRecordData.toObject( + message.deletedRecordData[j], + options + ); } if (message.usernames && message.usernames.length) { object.usernames = []; @@ -168343,16 +175017,15 @@ export const Folder = $root.Folder = (() => { */ GetDeletedSharedFoldersAndRecordsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Folder.GetDeletedSharedFoldersAndRecordsResponse"; + return typeUrlPrefix + '/Folder.GetDeletedSharedFoldersAndRecordsResponse'; }; return GetDeletedSharedFoldersAndRecordsResponse; })(); - Folder.DeletedSharedFolder = (function() { - + Folder.DeletedSharedFolder = (function () { /** * Properties of a DeletedSharedFolder. * @memberof Folder @@ -168378,8 +175051,7 @@ export const Folder = $root.Folder = (() => { function DeletedSharedFolder(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -168436,7 +175108,7 @@ export const Folder = $root.Folder = (() => { * @memberof Folder.DeletedSharedFolder * @instance */ - DeletedSharedFolder.prototype.dateDeleted = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + DeletedSharedFolder.prototype.dateDeleted = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * DeletedSharedFolder revision. @@ -168444,7 +175116,7 @@ export const Folder = $root.Folder = (() => { * @memberof Folder.DeletedSharedFolder * @instance */ - DeletedSharedFolder.prototype.revision = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + DeletedSharedFolder.prototype.revision = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * Creates a new DeletedSharedFolder instance using the specified properties. @@ -168468,24 +175140,23 @@ export const Folder = $root.Folder = (() => { * @returns {$protobuf.Writer} Writer */ DeletedSharedFolder.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, "sharedFolderUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.sharedFolderUid); - if (message.folderUid != null && Object.hasOwnProperty.call(message, "folderUid")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.folderUid); - if (message.parentUid != null && Object.hasOwnProperty.call(message, "parentUid")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.parentUid); - if (message.sharedFolderKey != null && Object.hasOwnProperty.call(message, "sharedFolderKey")) - writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.sharedFolderKey); - if (message.folderKeyType != null && Object.hasOwnProperty.call(message, "folderKeyType")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.folderKeyType); - if (message.data != null && Object.hasOwnProperty.call(message, "data")) - writer.uint32(/* id 6, wireType 2 =*/50).bytes(message.data); - if (message.dateDeleted != null && Object.hasOwnProperty.call(message, "dateDeleted")) - writer.uint32(/* id 7, wireType 0 =*/56).int64(message.dateDeleted); - if (message.revision != null && Object.hasOwnProperty.call(message, "revision")) - writer.uint32(/* id 8, wireType 0 =*/64).int64(message.revision); + if (!writer) writer = $Writer.create(); + if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, 'sharedFolderUid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.sharedFolderUid); + if (message.folderUid != null && Object.hasOwnProperty.call(message, 'folderUid')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.folderUid); + if (message.parentUid != null && Object.hasOwnProperty.call(message, 'parentUid')) + writer.uint32(/* id 3, wireType 2 =*/ 26).bytes(message.parentUid); + if (message.sharedFolderKey != null && Object.hasOwnProperty.call(message, 'sharedFolderKey')) + writer.uint32(/* id 4, wireType 2 =*/ 34).bytes(message.sharedFolderKey); + if (message.folderKeyType != null && Object.hasOwnProperty.call(message, 'folderKeyType')) + writer.uint32(/* id 5, wireType 0 =*/ 40).int32(message.folderKeyType); + if (message.data != null && Object.hasOwnProperty.call(message, 'data')) + writer.uint32(/* id 6, wireType 2 =*/ 50).bytes(message.data); + if (message.dateDeleted != null && Object.hasOwnProperty.call(message, 'dateDeleted')) + writer.uint32(/* id 7, wireType 0 =*/ 56).int64(message.dateDeleted); + if (message.revision != null && Object.hasOwnProperty.call(message, 'revision')) + writer.uint32(/* id 8, wireType 0 =*/ 64).int64(message.revision); return writer; }; @@ -168514,47 +175185,47 @@ export const Folder = $root.Folder = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ DeletedSharedFolder.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Folder.DeletedSharedFolder(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Folder.DeletedSharedFolder(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.sharedFolderUid = reader.bytes(); break; } - case 2: { + case 2: { message.folderUid = reader.bytes(); break; } - case 3: { + case 3: { message.parentUid = reader.bytes(); break; } - case 4: { + case 4: { message.sharedFolderKey = reader.bytes(); break; } - case 5: { + case 5: { message.folderKeyType = reader.int32(); break; } - case 6: { + case 6: { message.data = reader.bytes(); break; } - case 7: { + case 7: { message.dateDeleted = reader.int64(); break; } - case 8: { + case 8: { message.revision = reader.int64(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -168571,8 +175242,7 @@ export const Folder = $root.Folder = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ DeletedSharedFolder.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -168585,42 +175255,75 @@ export const Folder = $root.Folder = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ DeletedSharedFolder.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) - if (!(message.sharedFolderUid && typeof message.sharedFolderUid.length === "number" || $util.isString(message.sharedFolderUid))) - return "sharedFolderUid: buffer expected"; - if (message.folderUid != null && message.hasOwnProperty("folderUid")) - if (!(message.folderUid && typeof message.folderUid.length === "number" || $util.isString(message.folderUid))) - return "folderUid: buffer expected"; - if (message.parentUid != null && message.hasOwnProperty("parentUid")) - if (!(message.parentUid && typeof message.parentUid.length === "number" || $util.isString(message.parentUid))) - return "parentUid: buffer expected"; - if (message.sharedFolderKey != null && message.hasOwnProperty("sharedFolderKey")) - if (!(message.sharedFolderKey && typeof message.sharedFolderKey.length === "number" || $util.isString(message.sharedFolderKey))) - return "sharedFolderKey: buffer expected"; - if (message.folderKeyType != null && message.hasOwnProperty("folderKeyType")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.sharedFolderUid != null && message.hasOwnProperty('sharedFolderUid')) + if ( + !( + (message.sharedFolderUid && typeof message.sharedFolderUid.length === 'number') || + $util.isString(message.sharedFolderUid) + ) + ) + return 'sharedFolderUid: buffer expected'; + if (message.folderUid != null && message.hasOwnProperty('folderUid')) + if ( + !( + (message.folderUid && typeof message.folderUid.length === 'number') || + $util.isString(message.folderUid) + ) + ) + return 'folderUid: buffer expected'; + if (message.parentUid != null && message.hasOwnProperty('parentUid')) + if ( + !( + (message.parentUid && typeof message.parentUid.length === 'number') || + $util.isString(message.parentUid) + ) + ) + return 'parentUid: buffer expected'; + if (message.sharedFolderKey != null && message.hasOwnProperty('sharedFolderKey')) + if ( + !( + (message.sharedFolderKey && typeof message.sharedFolderKey.length === 'number') || + $util.isString(message.sharedFolderKey) + ) + ) + return 'sharedFolderKey: buffer expected'; + if (message.folderKeyType != null && message.hasOwnProperty('folderKeyType')) switch (message.folderKeyType) { - default: - return "folderKeyType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - break; + default: + return 'folderKeyType: enum value expected'; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + break; } - if (message.data != null && message.hasOwnProperty("data")) - if (!(message.data && typeof message.data.length === "number" || $util.isString(message.data))) - return "data: buffer expected"; - if (message.dateDeleted != null && message.hasOwnProperty("dateDeleted")) - if (!$util.isInteger(message.dateDeleted) && !(message.dateDeleted && $util.isInteger(message.dateDeleted.low) && $util.isInteger(message.dateDeleted.high))) - return "dateDeleted: integer|Long expected"; - if (message.revision != null && message.hasOwnProperty("revision")) - if (!$util.isInteger(message.revision) && !(message.revision && $util.isInteger(message.revision.low) && $util.isInteger(message.revision.high))) - return "revision: integer|Long expected"; + if (message.data != null && message.hasOwnProperty('data')) + if (!((message.data && typeof message.data.length === 'number') || $util.isString(message.data))) + return 'data: buffer expected'; + if (message.dateDeleted != null && message.hasOwnProperty('dateDeleted')) + if ( + !$util.isInteger(message.dateDeleted) && + !( + message.dateDeleted && + $util.isInteger(message.dateDeleted.low) && + $util.isInteger(message.dateDeleted.high) + ) + ) + return 'dateDeleted: integer|Long expected'; + if (message.revision != null && message.hasOwnProperty('revision')) + if ( + !$util.isInteger(message.revision) && + !( + message.revision && + $util.isInteger(message.revision.low) && + $util.isInteger(message.revision.high) + ) + ) + return 'revision: integer|Long expected'; return null; }; @@ -168633,88 +175336,102 @@ export const Folder = $root.Folder = (() => { * @returns {Folder.DeletedSharedFolder} DeletedSharedFolder */ DeletedSharedFolder.fromObject = function fromObject(object) { - if (object instanceof $root.Folder.DeletedSharedFolder) - return object; + if (object instanceof $root.Folder.DeletedSharedFolder) return object; let message = new $root.Folder.DeletedSharedFolder(); if (object.sharedFolderUid != null) - if (typeof object.sharedFolderUid === "string") - $util.base64.decode(object.sharedFolderUid, message.sharedFolderUid = $util.newBuffer($util.base64.length(object.sharedFolderUid)), 0); - else if (object.sharedFolderUid.length >= 0) - message.sharedFolderUid = object.sharedFolderUid; + if (typeof object.sharedFolderUid === 'string') + $util.base64.decode( + object.sharedFolderUid, + (message.sharedFolderUid = $util.newBuffer($util.base64.length(object.sharedFolderUid))), + 0 + ); + else if (object.sharedFolderUid.length >= 0) message.sharedFolderUid = object.sharedFolderUid; 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 (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.parentUid != null) - if (typeof object.parentUid === "string") - $util.base64.decode(object.parentUid, message.parentUid = $util.newBuffer($util.base64.length(object.parentUid)), 0); - else if (object.parentUid.length >= 0) - message.parentUid = object.parentUid; + if (typeof object.parentUid === 'string') + $util.base64.decode( + object.parentUid, + (message.parentUid = $util.newBuffer($util.base64.length(object.parentUid))), + 0 + ); + else if (object.parentUid.length >= 0) message.parentUid = object.parentUid; if (object.sharedFolderKey != null) - if (typeof object.sharedFolderKey === "string") - $util.base64.decode(object.sharedFolderKey, message.sharedFolderKey = $util.newBuffer($util.base64.length(object.sharedFolderKey)), 0); - else if (object.sharedFolderKey.length >= 0) - message.sharedFolderKey = object.sharedFolderKey; + if (typeof object.sharedFolderKey === 'string') + $util.base64.decode( + object.sharedFolderKey, + (message.sharedFolderKey = $util.newBuffer($util.base64.length(object.sharedFolderKey))), + 0 + ); + else if (object.sharedFolderKey.length >= 0) message.sharedFolderKey = object.sharedFolderKey; switch (object.folderKeyType) { - default: - if (typeof object.folderKeyType === "number") { - message.folderKeyType = object.folderKeyType; - break; - } - break; - case "NO_KEY": - case 0: - message.folderKeyType = 0; - break; - case "ENCRYPTED_BY_DATA_KEY": - case 1: - message.folderKeyType = 1; - break; - case "ENCRYPTED_BY_PUBLIC_KEY": - case 2: - message.folderKeyType = 2; - break; - case "ENCRYPTED_BY_DATA_KEY_GCM": - case 3: - message.folderKeyType = 3; - break; - case "ENCRYPTED_BY_PUBLIC_KEY_ECC": - case 4: - message.folderKeyType = 4; - break; - case "ENCRYPTED_BY_ROOT_KEY_CBC": - case 5: - message.folderKeyType = 5; - break; - case "ENCRYPTED_BY_ROOT_KEY_GCM": - case 6: - message.folderKeyType = 6; - break; + default: + if (typeof object.folderKeyType === 'number') { + message.folderKeyType = object.folderKeyType; + break; + } + break; + case 'NO_KEY': + case 0: + message.folderKeyType = 0; + break; + case 'ENCRYPTED_BY_DATA_KEY': + case 1: + message.folderKeyType = 1; + break; + case 'ENCRYPTED_BY_PUBLIC_KEY': + case 2: + message.folderKeyType = 2; + break; + case 'ENCRYPTED_BY_DATA_KEY_GCM': + case 3: + message.folderKeyType = 3; + break; + case 'ENCRYPTED_BY_PUBLIC_KEY_ECC': + case 4: + message.folderKeyType = 4; + break; + case 'ENCRYPTED_BY_ROOT_KEY_CBC': + case 5: + message.folderKeyType = 5; + break; + case 'ENCRYPTED_BY_ROOT_KEY_GCM': + case 6: + message.folderKeyType = 6; + break; } if (object.data != null) - if (typeof object.data === "string") - $util.base64.decode(object.data, message.data = $util.newBuffer($util.base64.length(object.data)), 0); - else if (object.data.length >= 0) - message.data = object.data; + if (typeof object.data === 'string') + $util.base64.decode( + object.data, + (message.data = $util.newBuffer($util.base64.length(object.data))), + 0 + ); + else if (object.data.length >= 0) message.data = object.data; if (object.dateDeleted != null) - if ($util.Long) - (message.dateDeleted = $util.Long.fromValue(object.dateDeleted)).unsigned = false; - else if (typeof object.dateDeleted === "string") - message.dateDeleted = parseInt(object.dateDeleted, 10); - else if (typeof object.dateDeleted === "number") - message.dateDeleted = object.dateDeleted; - else if (typeof object.dateDeleted === "object") - message.dateDeleted = new $util.LongBits(object.dateDeleted.low >>> 0, object.dateDeleted.high >>> 0).toNumber(); + if ($util.Long) (message.dateDeleted = $util.Long.fromValue(object.dateDeleted)).unsigned = false; + else if (typeof object.dateDeleted === 'string') message.dateDeleted = parseInt(object.dateDeleted, 10); + else if (typeof object.dateDeleted === 'number') message.dateDeleted = object.dateDeleted; + else if (typeof object.dateDeleted === 'object') + message.dateDeleted = new $util.LongBits( + object.dateDeleted.low >>> 0, + object.dateDeleted.high >>> 0 + ).toNumber(); if (object.revision != null) - if ($util.Long) - (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; - else if (typeof object.revision === "string") - message.revision = parseInt(object.revision, 10); - else if (typeof object.revision === "number") - message.revision = object.revision; - else if (typeof object.revision === "object") - message.revision = new $util.LongBits(object.revision.low >>> 0, object.revision.high >>> 0).toNumber(); + if ($util.Long) (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; + else if (typeof object.revision === 'string') message.revision = parseInt(object.revision, 10); + else if (typeof object.revision === 'number') message.revision = object.revision; + else if (typeof object.revision === 'object') + message.revision = new $util.LongBits( + object.revision.low >>> 0, + object.revision.high >>> 0 + ).toNumber(); return message; }; @@ -168728,79 +175445,111 @@ export const Folder = $root.Folder = (() => { * @returns {Object.} Plain object */ DeletedSharedFolder.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.sharedFolderUid = ""; + if (options.bytes === String) object.sharedFolderUid = ''; else { object.sharedFolderUid = []; - if (options.bytes !== Array) - object.sharedFolderUid = $util.newBuffer(object.sharedFolderUid); + if (options.bytes !== Array) object.sharedFolderUid = $util.newBuffer(object.sharedFolderUid); } - if (options.bytes === String) - object.folderUid = ""; + if (options.bytes === String) object.folderUid = ''; else { object.folderUid = []; - if (options.bytes !== Array) - object.folderUid = $util.newBuffer(object.folderUid); + if (options.bytes !== Array) object.folderUid = $util.newBuffer(object.folderUid); } - if (options.bytes === String) - object.parentUid = ""; + if (options.bytes === String) object.parentUid = ''; else { object.parentUid = []; - if (options.bytes !== Array) - object.parentUid = $util.newBuffer(object.parentUid); + if (options.bytes !== Array) object.parentUid = $util.newBuffer(object.parentUid); } - if (options.bytes === String) - object.sharedFolderKey = ""; + if (options.bytes === String) object.sharedFolderKey = ''; else { object.sharedFolderKey = []; - if (options.bytes !== Array) - object.sharedFolderKey = $util.newBuffer(object.sharedFolderKey); + if (options.bytes !== Array) object.sharedFolderKey = $util.newBuffer(object.sharedFolderKey); } - object.folderKeyType = options.enums === String ? "NO_KEY" : 0; - if (options.bytes === String) - object.data = ""; + object.folderKeyType = options.enums === String ? 'NO_KEY' : 0; + if (options.bytes === String) object.data = ''; else { object.data = []; - if (options.bytes !== Array) - object.data = $util.newBuffer(object.data); + if (options.bytes !== Array) object.data = $util.newBuffer(object.data); } if ($util.Long) { let long = new $util.Long(0, 0, false); - object.dateDeleted = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.dateDeleted = options.longs === String ? "0" : 0; + object.dateDeleted = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.dateDeleted = options.longs === String ? '0' : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.revision = options.longs === String ? "0" : 0; - } - if (message.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) - object.sharedFolderUid = options.bytes === String ? $util.base64.encode(message.sharedFolderUid, 0, message.sharedFolderUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.sharedFolderUid) : message.sharedFolderUid; - if (message.folderUid != null && message.hasOwnProperty("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.parentUid != null && message.hasOwnProperty("parentUid")) - object.parentUid = options.bytes === String ? $util.base64.encode(message.parentUid, 0, message.parentUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.parentUid) : message.parentUid; - if (message.sharedFolderKey != null && message.hasOwnProperty("sharedFolderKey")) - object.sharedFolderKey = options.bytes === String ? $util.base64.encode(message.sharedFolderKey, 0, message.sharedFolderKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.sharedFolderKey) : message.sharedFolderKey; - if (message.folderKeyType != null && message.hasOwnProperty("folderKeyType")) - object.folderKeyType = options.enums === String ? $root.Records.RecordKeyType[message.folderKeyType] === undefined ? message.folderKeyType : $root.Records.RecordKeyType[message.folderKeyType] : message.folderKeyType; - if (message.data != null && message.hasOwnProperty("data")) - object.data = options.bytes === String ? $util.base64.encode(message.data, 0, message.data.length) : options.bytes === Array ? Array.prototype.slice.call(message.data) : message.data; - if (message.dateDeleted != null && message.hasOwnProperty("dateDeleted")) - if (typeof message.dateDeleted === "number") + object.revision = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.revision = options.longs === String ? '0' : 0; + } + if (message.sharedFolderUid != null && message.hasOwnProperty('sharedFolderUid')) + object.sharedFolderUid = + options.bytes === String + ? $util.base64.encode(message.sharedFolderUid, 0, message.sharedFolderUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.sharedFolderUid) + : message.sharedFolderUid; + if (message.folderUid != null && message.hasOwnProperty('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.parentUid != null && message.hasOwnProperty('parentUid')) + object.parentUid = + options.bytes === String + ? $util.base64.encode(message.parentUid, 0, message.parentUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.parentUid) + : message.parentUid; + if (message.sharedFolderKey != null && message.hasOwnProperty('sharedFolderKey')) + object.sharedFolderKey = + options.bytes === String + ? $util.base64.encode(message.sharedFolderKey, 0, message.sharedFolderKey.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.sharedFolderKey) + : message.sharedFolderKey; + if (message.folderKeyType != null && message.hasOwnProperty('folderKeyType')) + object.folderKeyType = + options.enums === String + ? $root.Records.RecordKeyType[message.folderKeyType] === undefined + ? message.folderKeyType + : $root.Records.RecordKeyType[message.folderKeyType] + : message.folderKeyType; + if (message.data != null && message.hasOwnProperty('data')) + object.data = + options.bytes === String + ? $util.base64.encode(message.data, 0, message.data.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.data) + : message.data; + if (message.dateDeleted != null && message.hasOwnProperty('dateDeleted')) + if (typeof message.dateDeleted === 'number') object.dateDeleted = options.longs === String ? String(message.dateDeleted) : message.dateDeleted; else - object.dateDeleted = options.longs === String ? $util.Long.prototype.toString.call(message.dateDeleted) : options.longs === Number ? new $util.LongBits(message.dateDeleted.low >>> 0, message.dateDeleted.high >>> 0).toNumber() : message.dateDeleted; - if (message.revision != null && message.hasOwnProperty("revision")) - if (typeof message.revision === "number") + object.dateDeleted = + options.longs === String + ? $util.Long.prototype.toString.call(message.dateDeleted) + : options.longs === Number + ? new $util.LongBits( + message.dateDeleted.low >>> 0, + message.dateDeleted.high >>> 0 + ).toNumber() + : message.dateDeleted; + if (message.revision != null && message.hasOwnProperty('revision')) + if (typeof message.revision === 'number') object.revision = options.longs === String ? String(message.revision) : message.revision; else - object.revision = options.longs === String ? $util.Long.prototype.toString.call(message.revision) : options.longs === Number ? new $util.LongBits(message.revision.low >>> 0, message.revision.high >>> 0).toNumber() : message.revision; + object.revision = + options.longs === String + ? $util.Long.prototype.toString.call(message.revision) + : options.longs === Number + ? new $util.LongBits(message.revision.low >>> 0, message.revision.high >>> 0).toNumber() + : message.revision; return object; }; @@ -168825,16 +175574,15 @@ export const Folder = $root.Folder = (() => { */ DeletedSharedFolder.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Folder.DeletedSharedFolder"; + return typeUrlPrefix + '/Folder.DeletedSharedFolder'; }; return DeletedSharedFolder; })(); - Folder.DeletedSharedFolderRecord = (function() { - + Folder.DeletedSharedFolderRecord = (function () { /** * Properties of a DeletedSharedFolderRecord. * @memberof Folder @@ -168857,8 +175605,7 @@ export const Folder = $root.Folder = (() => { function DeletedSharedFolderRecord(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -168891,7 +175638,7 @@ export const Folder = $root.Folder = (() => { * @memberof Folder.DeletedSharedFolderRecord * @instance */ - DeletedSharedFolderRecord.prototype.dateDeleted = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + DeletedSharedFolderRecord.prototype.dateDeleted = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * DeletedSharedFolderRecord revision. @@ -168899,7 +175646,7 @@ export const Folder = $root.Folder = (() => { * @memberof Folder.DeletedSharedFolderRecord * @instance */ - DeletedSharedFolderRecord.prototype.revision = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + DeletedSharedFolderRecord.prototype.revision = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * Creates a new DeletedSharedFolderRecord instance using the specified properties. @@ -168923,18 +175670,17 @@ export const Folder = $root.Folder = (() => { * @returns {$protobuf.Writer} Writer */ DeletedSharedFolderRecord.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.folderUid != null && Object.hasOwnProperty.call(message, "folderUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.folderUid); - if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.recordUid); - if (message.sharedRecordKey != null && Object.hasOwnProperty.call(message, "sharedRecordKey")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.sharedRecordKey); - if (message.dateDeleted != null && Object.hasOwnProperty.call(message, "dateDeleted")) - writer.uint32(/* id 4, wireType 0 =*/32).int64(message.dateDeleted); - if (message.revision != null && Object.hasOwnProperty.call(message, "revision")) - writer.uint32(/* id 5, wireType 0 =*/40).int64(message.revision); + if (!writer) writer = $Writer.create(); + if (message.folderUid != null && Object.hasOwnProperty.call(message, 'folderUid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.folderUid); + if (message.recordUid != null && Object.hasOwnProperty.call(message, 'recordUid')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.recordUid); + if (message.sharedRecordKey != null && Object.hasOwnProperty.call(message, 'sharedRecordKey')) + writer.uint32(/* id 3, wireType 2 =*/ 26).bytes(message.sharedRecordKey); + if (message.dateDeleted != null && Object.hasOwnProperty.call(message, 'dateDeleted')) + writer.uint32(/* id 4, wireType 0 =*/ 32).int64(message.dateDeleted); + if (message.revision != null && Object.hasOwnProperty.call(message, 'revision')) + writer.uint32(/* id 5, wireType 0 =*/ 40).int64(message.revision); return writer; }; @@ -168963,35 +175709,35 @@ export const Folder = $root.Folder = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ DeletedSharedFolderRecord.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Folder.DeletedSharedFolderRecord(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Folder.DeletedSharedFolderRecord(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.folderUid = reader.bytes(); break; } - case 2: { + case 2: { message.recordUid = reader.bytes(); break; } - case 3: { + case 3: { message.sharedRecordKey = reader.bytes(); break; } - case 4: { + case 4: { message.dateDeleted = reader.int64(); break; } - case 5: { + case 5: { message.revision = reader.int64(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -169008,8 +175754,7 @@ export const Folder = $root.Folder = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ DeletedSharedFolderRecord.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -169022,23 +175767,51 @@ export const Folder = $root.Folder = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ DeletedSharedFolderRecord.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.folderUid != null && message.hasOwnProperty("folderUid")) - if (!(message.folderUid && typeof message.folderUid.length === "number" || $util.isString(message.folderUid))) - return "folderUid: buffer expected"; - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) - return "recordUid: buffer expected"; - if (message.sharedRecordKey != null && message.hasOwnProperty("sharedRecordKey")) - if (!(message.sharedRecordKey && typeof message.sharedRecordKey.length === "number" || $util.isString(message.sharedRecordKey))) - return "sharedRecordKey: buffer expected"; - if (message.dateDeleted != null && message.hasOwnProperty("dateDeleted")) - if (!$util.isInteger(message.dateDeleted) && !(message.dateDeleted && $util.isInteger(message.dateDeleted.low) && $util.isInteger(message.dateDeleted.high))) - return "dateDeleted: integer|Long expected"; - if (message.revision != null && message.hasOwnProperty("revision")) - if (!$util.isInteger(message.revision) && !(message.revision && $util.isInteger(message.revision.low) && $util.isInteger(message.revision.high))) - return "revision: integer|Long expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.folderUid != null && message.hasOwnProperty('folderUid')) + if ( + !( + (message.folderUid && typeof message.folderUid.length === 'number') || + $util.isString(message.folderUid) + ) + ) + return 'folderUid: buffer expected'; + if (message.recordUid != null && message.hasOwnProperty('recordUid')) + if ( + !( + (message.recordUid && typeof message.recordUid.length === 'number') || + $util.isString(message.recordUid) + ) + ) + return 'recordUid: buffer expected'; + if (message.sharedRecordKey != null && message.hasOwnProperty('sharedRecordKey')) + if ( + !( + (message.sharedRecordKey && typeof message.sharedRecordKey.length === 'number') || + $util.isString(message.sharedRecordKey) + ) + ) + return 'sharedRecordKey: buffer expected'; + if (message.dateDeleted != null && message.hasOwnProperty('dateDeleted')) + if ( + !$util.isInteger(message.dateDeleted) && + !( + message.dateDeleted && + $util.isInteger(message.dateDeleted.low) && + $util.isInteger(message.dateDeleted.high) + ) + ) + return 'dateDeleted: integer|Long expected'; + if (message.revision != null && message.hasOwnProperty('revision')) + if ( + !$util.isInteger(message.revision) && + !( + message.revision && + $util.isInteger(message.revision.low) && + $util.isInteger(message.revision.high) + ) + ) + return 'revision: integer|Long expected'; return null; }; @@ -169051,42 +175824,50 @@ export const Folder = $root.Folder = (() => { * @returns {Folder.DeletedSharedFolderRecord} DeletedSharedFolderRecord */ DeletedSharedFolderRecord.fromObject = function fromObject(object) { - if (object instanceof $root.Folder.DeletedSharedFolderRecord) - return object; + if (object instanceof $root.Folder.DeletedSharedFolderRecord) return object; let message = new $root.Folder.DeletedSharedFolderRecord(); 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 (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.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 (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.sharedRecordKey != null) - if (typeof object.sharedRecordKey === "string") - $util.base64.decode(object.sharedRecordKey, message.sharedRecordKey = $util.newBuffer($util.base64.length(object.sharedRecordKey)), 0); - else if (object.sharedRecordKey.length >= 0) - message.sharedRecordKey = object.sharedRecordKey; + if (typeof object.sharedRecordKey === 'string') + $util.base64.decode( + object.sharedRecordKey, + (message.sharedRecordKey = $util.newBuffer($util.base64.length(object.sharedRecordKey))), + 0 + ); + else if (object.sharedRecordKey.length >= 0) message.sharedRecordKey = object.sharedRecordKey; if (object.dateDeleted != null) - if ($util.Long) - (message.dateDeleted = $util.Long.fromValue(object.dateDeleted)).unsigned = false; - else if (typeof object.dateDeleted === "string") - message.dateDeleted = parseInt(object.dateDeleted, 10); - else if (typeof object.dateDeleted === "number") - message.dateDeleted = object.dateDeleted; - else if (typeof object.dateDeleted === "object") - message.dateDeleted = new $util.LongBits(object.dateDeleted.low >>> 0, object.dateDeleted.high >>> 0).toNumber(); + if ($util.Long) (message.dateDeleted = $util.Long.fromValue(object.dateDeleted)).unsigned = false; + else if (typeof object.dateDeleted === 'string') message.dateDeleted = parseInt(object.dateDeleted, 10); + else if (typeof object.dateDeleted === 'number') message.dateDeleted = object.dateDeleted; + else if (typeof object.dateDeleted === 'object') + message.dateDeleted = new $util.LongBits( + object.dateDeleted.low >>> 0, + object.dateDeleted.high >>> 0 + ).toNumber(); if (object.revision != null) - if ($util.Long) - (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; - else if (typeof object.revision === "string") - message.revision = parseInt(object.revision, 10); - else if (typeof object.revision === "number") - message.revision = object.revision; - else if (typeof object.revision === "object") - message.revision = new $util.LongBits(object.revision.low >>> 0, object.revision.high >>> 0).toNumber(); + if ($util.Long) (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; + else if (typeof object.revision === 'string') message.revision = parseInt(object.revision, 10); + else if (typeof object.revision === 'number') message.revision = object.revision; + else if (typeof object.revision === 'object') + message.revision = new $util.LongBits( + object.revision.low >>> 0, + object.revision.high >>> 0 + ).toNumber(); return message; }; @@ -169100,58 +175881,79 @@ export const Folder = $root.Folder = (() => { * @returns {Object.} Plain object */ DeletedSharedFolderRecord.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.folderUid = ""; + if (options.bytes === String) object.folderUid = ''; else { object.folderUid = []; - if (options.bytes !== Array) - object.folderUid = $util.newBuffer(object.folderUid); + if (options.bytes !== Array) object.folderUid = $util.newBuffer(object.folderUid); } - if (options.bytes === String) - object.recordUid = ""; + if (options.bytes === String) object.recordUid = ''; else { object.recordUid = []; - if (options.bytes !== Array) - object.recordUid = $util.newBuffer(object.recordUid); + if (options.bytes !== Array) object.recordUid = $util.newBuffer(object.recordUid); } - if (options.bytes === String) - object.sharedRecordKey = ""; + if (options.bytes === String) object.sharedRecordKey = ''; else { object.sharedRecordKey = []; - if (options.bytes !== Array) - object.sharedRecordKey = $util.newBuffer(object.sharedRecordKey); + if (options.bytes !== Array) object.sharedRecordKey = $util.newBuffer(object.sharedRecordKey); } if ($util.Long) { let long = new $util.Long(0, 0, false); - object.dateDeleted = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.dateDeleted = options.longs === String ? "0" : 0; + object.dateDeleted = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.dateDeleted = options.longs === String ? '0' : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.revision = options.longs === String ? "0" : 0; - } - if (message.folderUid != null && message.hasOwnProperty("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.recordUid != null && message.hasOwnProperty("recordUid")) - object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; - if (message.sharedRecordKey != null && message.hasOwnProperty("sharedRecordKey")) - object.sharedRecordKey = options.bytes === String ? $util.base64.encode(message.sharedRecordKey, 0, message.sharedRecordKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.sharedRecordKey) : message.sharedRecordKey; - if (message.dateDeleted != null && message.hasOwnProperty("dateDeleted")) - if (typeof message.dateDeleted === "number") + object.revision = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.revision = options.longs === String ? '0' : 0; + } + if (message.folderUid != null && message.hasOwnProperty('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.recordUid != null && message.hasOwnProperty('recordUid')) + object.recordUid = + options.bytes === String + ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.recordUid) + : message.recordUid; + if (message.sharedRecordKey != null && message.hasOwnProperty('sharedRecordKey')) + object.sharedRecordKey = + options.bytes === String + ? $util.base64.encode(message.sharedRecordKey, 0, message.sharedRecordKey.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.sharedRecordKey) + : message.sharedRecordKey; + if (message.dateDeleted != null && message.hasOwnProperty('dateDeleted')) + if (typeof message.dateDeleted === 'number') object.dateDeleted = options.longs === String ? String(message.dateDeleted) : message.dateDeleted; else - object.dateDeleted = options.longs === String ? $util.Long.prototype.toString.call(message.dateDeleted) : options.longs === Number ? new $util.LongBits(message.dateDeleted.low >>> 0, message.dateDeleted.high >>> 0).toNumber() : message.dateDeleted; - if (message.revision != null && message.hasOwnProperty("revision")) - if (typeof message.revision === "number") + object.dateDeleted = + options.longs === String + ? $util.Long.prototype.toString.call(message.dateDeleted) + : options.longs === Number + ? new $util.LongBits( + message.dateDeleted.low >>> 0, + message.dateDeleted.high >>> 0 + ).toNumber() + : message.dateDeleted; + if (message.revision != null && message.hasOwnProperty('revision')) + if (typeof message.revision === 'number') object.revision = options.longs === String ? String(message.revision) : message.revision; else - object.revision = options.longs === String ? $util.Long.prototype.toString.call(message.revision) : options.longs === Number ? new $util.LongBits(message.revision.low >>> 0, message.revision.high >>> 0).toNumber() : message.revision; + object.revision = + options.longs === String + ? $util.Long.prototype.toString.call(message.revision) + : options.longs === Number + ? new $util.LongBits(message.revision.low >>> 0, message.revision.high >>> 0).toNumber() + : message.revision; return object; }; @@ -169176,16 +175978,15 @@ export const Folder = $root.Folder = (() => { */ DeletedSharedFolderRecord.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Folder.DeletedSharedFolderRecord"; + return typeUrlPrefix + '/Folder.DeletedSharedFolderRecord'; }; return DeletedSharedFolderRecord; })(); - Folder.DeletedRecordData = (function() { - + Folder.DeletedRecordData = (function () { /** * Properties of a DeletedRecordData. * @memberof Folder @@ -169209,8 +176010,7 @@ export const Folder = $root.Folder = (() => { function DeletedRecordData(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -169235,7 +176035,7 @@ export const Folder = $root.Folder = (() => { * @memberof Folder.DeletedRecordData * @instance */ - DeletedRecordData.prototype.revision = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + DeletedRecordData.prototype.revision = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * DeletedRecordData clientModifiedTime. @@ -169243,7 +176043,7 @@ export const Folder = $root.Folder = (() => { * @memberof Folder.DeletedRecordData * @instance */ - DeletedRecordData.prototype.clientModifiedTime = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + DeletedRecordData.prototype.clientModifiedTime = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * DeletedRecordData data. @@ -169283,20 +176083,19 @@ export const Folder = $root.Folder = (() => { * @returns {$protobuf.Writer} Writer */ DeletedRecordData.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); - if (message.ownerUid != null && Object.hasOwnProperty.call(message, "ownerUid")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.ownerUid); - if (message.revision != null && Object.hasOwnProperty.call(message, "revision")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.revision); - if (message.clientModifiedTime != null && Object.hasOwnProperty.call(message, "clientModifiedTime")) - writer.uint32(/* id 4, wireType 0 =*/32).int64(message.clientModifiedTime); - if (message.data != null && Object.hasOwnProperty.call(message, "data")) - writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.data); - if (message.version != null && Object.hasOwnProperty.call(message, "version")) - writer.uint32(/* id 6, wireType 0 =*/48).int32(message.version); + if (!writer) writer = $Writer.create(); + if (message.recordUid != null && Object.hasOwnProperty.call(message, 'recordUid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.recordUid); + if (message.ownerUid != null && Object.hasOwnProperty.call(message, 'ownerUid')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.ownerUid); + if (message.revision != null && Object.hasOwnProperty.call(message, 'revision')) + writer.uint32(/* id 3, wireType 0 =*/ 24).int64(message.revision); + if (message.clientModifiedTime != null && Object.hasOwnProperty.call(message, 'clientModifiedTime')) + writer.uint32(/* id 4, wireType 0 =*/ 32).int64(message.clientModifiedTime); + if (message.data != null && Object.hasOwnProperty.call(message, 'data')) + writer.uint32(/* id 5, wireType 2 =*/ 42).bytes(message.data); + if (message.version != null && Object.hasOwnProperty.call(message, 'version')) + writer.uint32(/* id 6, wireType 0 =*/ 48).int32(message.version); return writer; }; @@ -169325,39 +176124,39 @@ export const Folder = $root.Folder = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ DeletedRecordData.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Folder.DeletedRecordData(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Folder.DeletedRecordData(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.recordUid = reader.bytes(); break; } - case 2: { + case 2: { message.ownerUid = reader.bytes(); break; } - case 3: { + case 3: { message.revision = reader.int64(); break; } - case 4: { + case 4: { message.clientModifiedTime = reader.int64(); break; } - case 5: { + case 5: { message.data = reader.bytes(); break; } - case 6: { + case 6: { message.version = reader.int32(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -169374,8 +176173,7 @@ export const Folder = $root.Folder = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ DeletedRecordData.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -169388,26 +176186,48 @@ export const Folder = $root.Folder = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ DeletedRecordData.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) - return "recordUid: buffer expected"; - if (message.ownerUid != null && message.hasOwnProperty("ownerUid")) - if (!(message.ownerUid && typeof message.ownerUid.length === "number" || $util.isString(message.ownerUid))) - return "ownerUid: buffer expected"; - if (message.revision != null && message.hasOwnProperty("revision")) - if (!$util.isInteger(message.revision) && !(message.revision && $util.isInteger(message.revision.low) && $util.isInteger(message.revision.high))) - return "revision: integer|Long expected"; - if (message.clientModifiedTime != null && message.hasOwnProperty("clientModifiedTime")) - if (!$util.isInteger(message.clientModifiedTime) && !(message.clientModifiedTime && $util.isInteger(message.clientModifiedTime.low) && $util.isInteger(message.clientModifiedTime.high))) - return "clientModifiedTime: integer|Long expected"; - if (message.data != null && message.hasOwnProperty("data")) - if (!(message.data && typeof message.data.length === "number" || $util.isString(message.data))) - return "data: buffer expected"; - if (message.version != null && message.hasOwnProperty("version")) - if (!$util.isInteger(message.version)) - return "version: integer expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.recordUid != null && message.hasOwnProperty('recordUid')) + if ( + !( + (message.recordUid && typeof message.recordUid.length === 'number') || + $util.isString(message.recordUid) + ) + ) + return 'recordUid: buffer expected'; + if (message.ownerUid != null && message.hasOwnProperty('ownerUid')) + if ( + !( + (message.ownerUid && typeof message.ownerUid.length === 'number') || + $util.isString(message.ownerUid) + ) + ) + return 'ownerUid: buffer expected'; + if (message.revision != null && message.hasOwnProperty('revision')) + if ( + !$util.isInteger(message.revision) && + !( + message.revision && + $util.isInteger(message.revision.low) && + $util.isInteger(message.revision.high) + ) + ) + return 'revision: integer|Long expected'; + if (message.clientModifiedTime != null && message.hasOwnProperty('clientModifiedTime')) + if ( + !$util.isInteger(message.clientModifiedTime) && + !( + message.clientModifiedTime && + $util.isInteger(message.clientModifiedTime.low) && + $util.isInteger(message.clientModifiedTime.high) + ) + ) + return 'clientModifiedTime: integer|Long expected'; + if (message.data != null && message.hasOwnProperty('data')) + if (!((message.data && typeof message.data.length === 'number') || $util.isString(message.data))) + return 'data: buffer expected'; + if (message.version != null && message.hasOwnProperty('version')) + if (!$util.isInteger(message.version)) return 'version: integer expected'; return null; }; @@ -169420,44 +176240,54 @@ export const Folder = $root.Folder = (() => { * @returns {Folder.DeletedRecordData} DeletedRecordData */ DeletedRecordData.fromObject = function fromObject(object) { - if (object instanceof $root.Folder.DeletedRecordData) - return object; + if (object instanceof $root.Folder.DeletedRecordData) return object; let message = new $root.Folder.DeletedRecordData(); 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 (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.ownerUid != null) - if (typeof object.ownerUid === "string") - $util.base64.decode(object.ownerUid, message.ownerUid = $util.newBuffer($util.base64.length(object.ownerUid)), 0); - else if (object.ownerUid.length >= 0) - message.ownerUid = object.ownerUid; + if (typeof object.ownerUid === 'string') + $util.base64.decode( + object.ownerUid, + (message.ownerUid = $util.newBuffer($util.base64.length(object.ownerUid))), + 0 + ); + else if (object.ownerUid.length >= 0) message.ownerUid = object.ownerUid; if (object.revision != null) - if ($util.Long) - (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; - else if (typeof object.revision === "string") - message.revision = parseInt(object.revision, 10); - else if (typeof object.revision === "number") - message.revision = object.revision; - else if (typeof object.revision === "object") - message.revision = new $util.LongBits(object.revision.low >>> 0, object.revision.high >>> 0).toNumber(); + if ($util.Long) (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; + else if (typeof object.revision === 'string') message.revision = parseInt(object.revision, 10); + else if (typeof object.revision === 'number') message.revision = object.revision; + else if (typeof object.revision === 'object') + message.revision = new $util.LongBits( + object.revision.low >>> 0, + object.revision.high >>> 0 + ).toNumber(); if (object.clientModifiedTime != null) if ($util.Long) (message.clientModifiedTime = $util.Long.fromValue(object.clientModifiedTime)).unsigned = false; - else if (typeof object.clientModifiedTime === "string") + else if (typeof object.clientModifiedTime === 'string') message.clientModifiedTime = parseInt(object.clientModifiedTime, 10); - else if (typeof object.clientModifiedTime === "number") + else if (typeof object.clientModifiedTime === 'number') message.clientModifiedTime = object.clientModifiedTime; - else if (typeof object.clientModifiedTime === "object") - message.clientModifiedTime = new $util.LongBits(object.clientModifiedTime.low >>> 0, object.clientModifiedTime.high >>> 0).toNumber(); + else if (typeof object.clientModifiedTime === 'object') + message.clientModifiedTime = new $util.LongBits( + object.clientModifiedTime.low >>> 0, + object.clientModifiedTime.high >>> 0 + ).toNumber(); if (object.data != null) - if (typeof object.data === "string") - $util.base64.decode(object.data, message.data = $util.newBuffer($util.base64.length(object.data)), 0); - else if (object.data.length >= 0) - message.data = object.data; - if (object.version != null) - message.version = object.version | 0; + if (typeof object.data === 'string') + $util.base64.decode( + object.data, + (message.data = $util.newBuffer($util.base64.length(object.data))), + 0 + ); + else if (object.data.length >= 0) message.data = object.data; + if (object.version != null) message.version = object.version | 0; return message; }; @@ -169471,61 +176301,82 @@ export const Folder = $root.Folder = (() => { * @returns {Object.} Plain object */ DeletedRecordData.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.recordUid = ""; + if (options.bytes === String) object.recordUid = ''; else { object.recordUid = []; - if (options.bytes !== Array) - object.recordUid = $util.newBuffer(object.recordUid); + if (options.bytes !== Array) object.recordUid = $util.newBuffer(object.recordUid); } - if (options.bytes === String) - object.ownerUid = ""; + if (options.bytes === String) object.ownerUid = ''; else { object.ownerUid = []; - if (options.bytes !== Array) - object.ownerUid = $util.newBuffer(object.ownerUid); + if (options.bytes !== Array) object.ownerUid = $util.newBuffer(object.ownerUid); } if ($util.Long) { let long = new $util.Long(0, 0, false); - object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.revision = options.longs === String ? "0" : 0; + object.revision = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.revision = options.longs === String ? '0' : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.clientModifiedTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.clientModifiedTime = options.longs === String ? "0" : 0; - if (options.bytes === String) - object.data = ""; + object.clientModifiedTime = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.clientModifiedTime = options.longs === String ? '0' : 0; + if (options.bytes === String) object.data = ''; else { object.data = []; - if (options.bytes !== Array) - object.data = $util.newBuffer(object.data); + if (options.bytes !== Array) object.data = $util.newBuffer(object.data); } object.version = 0; } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; - if (message.ownerUid != null && message.hasOwnProperty("ownerUid")) - object.ownerUid = options.bytes === String ? $util.base64.encode(message.ownerUid, 0, message.ownerUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.ownerUid) : message.ownerUid; - if (message.revision != null && message.hasOwnProperty("revision")) - if (typeof message.revision === "number") + if (message.recordUid != null && message.hasOwnProperty('recordUid')) + object.recordUid = + options.bytes === String + ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.recordUid) + : message.recordUid; + if (message.ownerUid != null && message.hasOwnProperty('ownerUid')) + object.ownerUid = + options.bytes === String + ? $util.base64.encode(message.ownerUid, 0, message.ownerUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.ownerUid) + : message.ownerUid; + if (message.revision != null && message.hasOwnProperty('revision')) + if (typeof message.revision === 'number') object.revision = options.longs === String ? String(message.revision) : message.revision; else - object.revision = options.longs === String ? $util.Long.prototype.toString.call(message.revision) : options.longs === Number ? new $util.LongBits(message.revision.low >>> 0, message.revision.high >>> 0).toNumber() : message.revision; - if (message.clientModifiedTime != null && message.hasOwnProperty("clientModifiedTime")) - if (typeof message.clientModifiedTime === "number") - object.clientModifiedTime = options.longs === String ? String(message.clientModifiedTime) : message.clientModifiedTime; + object.revision = + options.longs === String + ? $util.Long.prototype.toString.call(message.revision) + : options.longs === Number + ? new $util.LongBits(message.revision.low >>> 0, message.revision.high >>> 0).toNumber() + : message.revision; + if (message.clientModifiedTime != null && message.hasOwnProperty('clientModifiedTime')) + if (typeof message.clientModifiedTime === 'number') + object.clientModifiedTime = + options.longs === String ? String(message.clientModifiedTime) : message.clientModifiedTime; else - object.clientModifiedTime = options.longs === String ? $util.Long.prototype.toString.call(message.clientModifiedTime) : options.longs === Number ? new $util.LongBits(message.clientModifiedTime.low >>> 0, message.clientModifiedTime.high >>> 0).toNumber() : message.clientModifiedTime; - if (message.data != null && message.hasOwnProperty("data")) - object.data = options.bytes === String ? $util.base64.encode(message.data, 0, message.data.length) : options.bytes === Array ? Array.prototype.slice.call(message.data) : message.data; - if (message.version != null && message.hasOwnProperty("version")) - object.version = message.version; + object.clientModifiedTime = + options.longs === String + ? $util.Long.prototype.toString.call(message.clientModifiedTime) + : options.longs === Number + ? new $util.LongBits( + message.clientModifiedTime.low >>> 0, + message.clientModifiedTime.high >>> 0 + ).toNumber() + : message.clientModifiedTime; + if (message.data != null && message.hasOwnProperty('data')) + object.data = + options.bytes === String + ? $util.base64.encode(message.data, 0, message.data.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.data) + : message.data; + if (message.version != null && message.hasOwnProperty('version')) object.version = message.version; return object; }; @@ -169550,16 +176401,15 @@ export const Folder = $root.Folder = (() => { */ DeletedRecordData.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Folder.DeletedRecordData"; + return typeUrlPrefix + '/Folder.DeletedRecordData'; }; return DeletedRecordData; })(); - Folder.Username = (function() { - + Folder.Username = (function () { /** * Properties of a Username. * @memberof Folder @@ -169579,8 +176429,7 @@ export const Folder = $root.Folder = (() => { function Username(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -169597,7 +176446,7 @@ export const Folder = $root.Folder = (() => { * @memberof Folder.Username * @instance */ - Username.prototype.username = ""; + Username.prototype.username = ''; /** * Creates a new Username instance using the specified properties. @@ -169621,12 +176470,11 @@ export const Folder = $root.Folder = (() => { * @returns {$protobuf.Writer} Writer */ Username.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.accountUid != null && Object.hasOwnProperty.call(message, "accountUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.accountUid); - if (message.username != null && Object.hasOwnProperty.call(message, "username")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.username); + if (!writer) writer = $Writer.create(); + if (message.accountUid != null && Object.hasOwnProperty.call(message, 'accountUid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.accountUid); + if (message.username != null && Object.hasOwnProperty.call(message, 'username')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.username); return writer; }; @@ -169655,23 +176503,23 @@ export const Folder = $root.Folder = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ Username.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Folder.Username(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Folder.Username(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.accountUid = reader.bytes(); break; } - case 2: { + case 2: { message.username = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -169688,8 +176536,7 @@ export const Folder = $root.Folder = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ Username.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -169702,14 +176549,17 @@ export const Folder = $root.Folder = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ Username.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.accountUid != null && message.hasOwnProperty("accountUid")) - if (!(message.accountUid && typeof message.accountUid.length === "number" || $util.isString(message.accountUid))) - return "accountUid: buffer expected"; - if (message.username != null && message.hasOwnProperty("username")) - if (!$util.isString(message.username)) - return "username: string expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.accountUid != null && message.hasOwnProperty('accountUid')) + if ( + !( + (message.accountUid && typeof message.accountUid.length === 'number') || + $util.isString(message.accountUid) + ) + ) + return 'accountUid: buffer expected'; + if (message.username != null && message.hasOwnProperty('username')) + if (!$util.isString(message.username)) return 'username: string expected'; return null; }; @@ -169722,16 +176572,17 @@ export const Folder = $root.Folder = (() => { * @returns {Folder.Username} Username */ Username.fromObject = function fromObject(object) { - if (object instanceof $root.Folder.Username) - return object; + if (object instanceof $root.Folder.Username) return object; let message = new $root.Folder.Username(); if (object.accountUid != null) - if (typeof object.accountUid === "string") - $util.base64.decode(object.accountUid, message.accountUid = $util.newBuffer($util.base64.length(object.accountUid)), 0); - else if (object.accountUid.length >= 0) - message.accountUid = object.accountUid; - if (object.username != null) - message.username = String(object.username); + if (typeof object.accountUid === 'string') + $util.base64.decode( + object.accountUid, + (message.accountUid = $util.newBuffer($util.base64.length(object.accountUid))), + 0 + ); + else if (object.accountUid.length >= 0) message.accountUid = object.accountUid; + if (object.username != null) message.username = String(object.username); return message; }; @@ -169745,23 +176596,24 @@ export const Folder = $root.Folder = (() => { * @returns {Object.} Plain object */ Username.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.accountUid = ""; + if (options.bytes === String) object.accountUid = ''; else { object.accountUid = []; - if (options.bytes !== Array) - object.accountUid = $util.newBuffer(object.accountUid); + if (options.bytes !== Array) object.accountUid = $util.newBuffer(object.accountUid); } - object.username = ""; + object.username = ''; } - if (message.accountUid != null && message.hasOwnProperty("accountUid")) - object.accountUid = options.bytes === String ? $util.base64.encode(message.accountUid, 0, message.accountUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.accountUid) : message.accountUid; - if (message.username != null && message.hasOwnProperty("username")) - object.username = message.username; + if (message.accountUid != null && message.hasOwnProperty('accountUid')) + object.accountUid = + options.bytes === String + ? $util.base64.encode(message.accountUid, 0, message.accountUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.accountUid) + : message.accountUid; + if (message.username != null && message.hasOwnProperty('username')) object.username = message.username; return object; }; @@ -169786,16 +176638,15 @@ export const Folder = $root.Folder = (() => { */ Username.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Folder.Username"; + return typeUrlPrefix + '/Folder.Username'; }; return Username; })(); - Folder.RestoreDeletedSharedFoldersAndRecordsRequest = (function() { - + Folder.RestoreDeletedSharedFoldersAndRecordsRequest = (function () { /** * Properties of a RestoreDeletedSharedFoldersAndRecordsRequest. * @memberof Folder @@ -169817,8 +176668,7 @@ export const Folder = $root.Folder = (() => { this.records = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -169859,14 +176709,19 @@ export const Folder = $root.Folder = (() => { * @returns {$protobuf.Writer} Writer */ RestoreDeletedSharedFoldersAndRecordsRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.folders != null && message.folders.length) for (let i = 0; i < message.folders.length; ++i) - $root.Folder.RestoreSharedObject.encode(message.folders[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.Folder.RestoreSharedObject.encode( + message.folders[i], + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); if (message.records != null && message.records.length) for (let i = 0; i < message.records.length; ++i) - $root.Folder.RestoreSharedObject.encode(message.records[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + $root.Folder.RestoreSharedObject.encode( + message.records[i], + writer.uint32(/* id 2, wireType 2 =*/ 18).fork() + ).ldelim(); return writer; }; @@ -169895,27 +176750,25 @@ export const Folder = $root.Folder = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RestoreDeletedSharedFoldersAndRecordsRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Folder.RestoreDeletedSharedFoldersAndRecordsRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Folder.RestoreDeletedSharedFoldersAndRecordsRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (!(message.folders && message.folders.length)) - message.folders = []; + case 1: { + if (!(message.folders && message.folders.length)) message.folders = []; message.folders.push($root.Folder.RestoreSharedObject.decode(reader, reader.uint32())); break; } - case 2: { - if (!(message.records && message.records.length)) - message.records = []; + case 2: { + if (!(message.records && message.records.length)) message.records = []; message.records.push($root.Folder.RestoreSharedObject.decode(reader, reader.uint32())); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -169932,8 +176785,7 @@ export const Folder = $root.Folder = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RestoreDeletedSharedFoldersAndRecordsRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -169946,24 +176798,19 @@ export const Folder = $root.Folder = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ RestoreDeletedSharedFoldersAndRecordsRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.folders != null && message.hasOwnProperty("folders")) { - if (!Array.isArray(message.folders)) - return "folders: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.folders != null && message.hasOwnProperty('folders')) { + if (!Array.isArray(message.folders)) return 'folders: array expected'; for (let i = 0; i < message.folders.length; ++i) { let error = $root.Folder.RestoreSharedObject.verify(message.folders[i]); - if (error) - return "folders." + error; + if (error) return 'folders.' + error; } } - if (message.records != null && message.hasOwnProperty("records")) { - if (!Array.isArray(message.records)) - return "records: array expected"; + if (message.records != null && message.hasOwnProperty('records')) { + if (!Array.isArray(message.records)) return 'records: array expected'; for (let i = 0; i < message.records.length; ++i) { let error = $root.Folder.RestoreSharedObject.verify(message.records[i]); - if (error) - return "records." + error; + if (error) return 'records.' + error; } } return null; @@ -169978,26 +176825,29 @@ export const Folder = $root.Folder = (() => { * @returns {Folder.RestoreDeletedSharedFoldersAndRecordsRequest} RestoreDeletedSharedFoldersAndRecordsRequest */ RestoreDeletedSharedFoldersAndRecordsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Folder.RestoreDeletedSharedFoldersAndRecordsRequest) - return object; + if (object instanceof $root.Folder.RestoreDeletedSharedFoldersAndRecordsRequest) return object; let message = new $root.Folder.RestoreDeletedSharedFoldersAndRecordsRequest(); if (object.folders) { if (!Array.isArray(object.folders)) - throw TypeError(".Folder.RestoreDeletedSharedFoldersAndRecordsRequest.folders: array expected"); + throw TypeError('.Folder.RestoreDeletedSharedFoldersAndRecordsRequest.folders: array expected'); message.folders = []; for (let i = 0; i < object.folders.length; ++i) { - if (typeof object.folders[i] !== "object") - throw TypeError(".Folder.RestoreDeletedSharedFoldersAndRecordsRequest.folders: object expected"); + if (typeof object.folders[i] !== 'object') + throw TypeError( + '.Folder.RestoreDeletedSharedFoldersAndRecordsRequest.folders: object expected' + ); message.folders[i] = $root.Folder.RestoreSharedObject.fromObject(object.folders[i]); } } if (object.records) { if (!Array.isArray(object.records)) - throw TypeError(".Folder.RestoreDeletedSharedFoldersAndRecordsRequest.records: array expected"); + throw TypeError('.Folder.RestoreDeletedSharedFoldersAndRecordsRequest.records: array expected'); message.records = []; for (let i = 0; i < object.records.length; ++i) { - if (typeof object.records[i] !== "object") - throw TypeError(".Folder.RestoreDeletedSharedFoldersAndRecordsRequest.records: object expected"); + if (typeof object.records[i] !== 'object') + throw TypeError( + '.Folder.RestoreDeletedSharedFoldersAndRecordsRequest.records: object expected' + ); message.records[i] = $root.Folder.RestoreSharedObject.fromObject(object.records[i]); } } @@ -170014,8 +176864,7 @@ export const Folder = $root.Folder = (() => { * @returns {Object.} Plain object */ RestoreDeletedSharedFoldersAndRecordsRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.arrays || options.defaults) { object.folders = []; @@ -170055,16 +176904,15 @@ export const Folder = $root.Folder = (() => { */ RestoreDeletedSharedFoldersAndRecordsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Folder.RestoreDeletedSharedFoldersAndRecordsRequest"; + return typeUrlPrefix + '/Folder.RestoreDeletedSharedFoldersAndRecordsRequest'; }; return RestoreDeletedSharedFoldersAndRecordsRequest; })(); - Folder.RestoreSharedObject = (function() { - + Folder.RestoreSharedObject = (function () { /** * Properties of a RestoreSharedObject. * @memberof Folder @@ -170085,8 +176933,7 @@ export const Folder = $root.Folder = (() => { this.recordUids = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -170127,13 +176974,12 @@ export const Folder = $root.Folder = (() => { * @returns {$protobuf.Writer} Writer */ RestoreSharedObject.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.folderUid != null && Object.hasOwnProperty.call(message, "folderUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.folderUid); + if (!writer) writer = $Writer.create(); + if (message.folderUid != null && Object.hasOwnProperty.call(message, 'folderUid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.folderUid); if (message.recordUids != null && message.recordUids.length) for (let i = 0; i < message.recordUids.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.recordUids[i]); + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.recordUids[i]); return writer; }; @@ -170162,25 +177008,24 @@ export const Folder = $root.Folder = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RestoreSharedObject.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Folder.RestoreSharedObject(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Folder.RestoreSharedObject(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.folderUid = reader.bytes(); break; } - case 2: { - if (!(message.recordUids && message.recordUids.length)) - message.recordUids = []; + case 2: { + if (!(message.recordUids && message.recordUids.length)) message.recordUids = []; message.recordUids.push(reader.bytes()); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -170197,8 +177042,7 @@ export const Folder = $root.Folder = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RestoreSharedObject.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -170211,17 +177055,25 @@ export const Folder = $root.Folder = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ RestoreSharedObject.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.folderUid != null && message.hasOwnProperty("folderUid")) - if (!(message.folderUid && typeof message.folderUid.length === "number" || $util.isString(message.folderUid))) - return "folderUid: buffer expected"; - if (message.recordUids != null && message.hasOwnProperty("recordUids")) { - if (!Array.isArray(message.recordUids)) - return "recordUids: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.folderUid != null && message.hasOwnProperty('folderUid')) + if ( + !( + (message.folderUid && typeof message.folderUid.length === 'number') || + $util.isString(message.folderUid) + ) + ) + return 'folderUid: buffer expected'; + if (message.recordUids != null && message.hasOwnProperty('recordUids')) { + if (!Array.isArray(message.recordUids)) return 'recordUids: array expected'; for (let i = 0; i < message.recordUids.length; ++i) - if (!(message.recordUids[i] && typeof message.recordUids[i].length === "number" || $util.isString(message.recordUids[i]))) - return "recordUids: buffer[] expected"; + if ( + !( + (message.recordUids[i] && typeof message.recordUids[i].length === 'number') || + $util.isString(message.recordUids[i]) + ) + ) + return 'recordUids: buffer[] expected'; } return null; }; @@ -170235,23 +177087,28 @@ export const Folder = $root.Folder = (() => { * @returns {Folder.RestoreSharedObject} RestoreSharedObject */ RestoreSharedObject.fromObject = function fromObject(object) { - if (object instanceof $root.Folder.RestoreSharedObject) - return object; + if (object instanceof $root.Folder.RestoreSharedObject) return object; let message = new $root.Folder.RestoreSharedObject(); 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 (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.recordUids) { if (!Array.isArray(object.recordUids)) - throw TypeError(".Folder.RestoreSharedObject.recordUids: array expected"); + throw TypeError('.Folder.RestoreSharedObject.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 (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; }; @@ -170266,25 +177123,31 @@ export const Folder = $root.Folder = (() => { * @returns {Object.} Plain object */ RestoreSharedObject.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.recordUids = []; + if (options.arrays || options.defaults) object.recordUids = []; if (options.defaults) - if (options.bytes === String) - object.folderUid = ""; + if (options.bytes === String) object.folderUid = ''; else { object.folderUid = []; - if (options.bytes !== Array) - object.folderUid = $util.newBuffer(object.folderUid); - } - if (message.folderUid != null && message.hasOwnProperty("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 (options.bytes !== Array) object.folderUid = $util.newBuffer(object.folderUid); + } + if (message.folderUid != null && message.hasOwnProperty('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.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]; + 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; }; @@ -170310,19 +177173,18 @@ export const Folder = $root.Folder = (() => { */ RestoreSharedObject.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Folder.RestoreSharedObject"; + return typeUrlPrefix + '/Folder.RestoreSharedObject'; }; return RestoreSharedObject; })(); return Folder; -})(); - -export const Records = $root.Records = (() => { +})()); +export const Records = ($root.Records = (() => { /** * Namespace Records. * @exports Records @@ -170340,18 +177202,18 @@ export const Records = $root.Records = (() => { * @property {number} RT_PAM=3 RT_PAM value * @property {number} RT_PAM_CONFIGURATION=4 RT_PAM_CONFIGURATION value */ - Records.RecordTypeScope = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "RT_STANDARD"] = 0; - values[valuesById[1] = "RT_USER"] = 1; - values[valuesById[2] = "RT_ENTERPRISE"] = 2; - values[valuesById[3] = "RT_PAM"] = 3; - values[valuesById[4] = "RT_PAM_CONFIGURATION"] = 4; + Records.RecordTypeScope = (function () { + const valuesById = {}, + values = Object.create(valuesById); + values[(valuesById[0] = 'RT_STANDARD')] = 0; + values[(valuesById[1] = 'RT_USER')] = 1; + values[(valuesById[2] = 'RT_ENTERPRISE')] = 2; + values[(valuesById[3] = 'RT_PAM')] = 3; + values[(valuesById[4] = 'RT_PAM_CONFIGURATION')] = 4; return values; })(); - Records.RecordType = (function() { - + Records.RecordType = (function () { /** * Properties of a RecordType. * @memberof Records @@ -170372,8 +177234,7 @@ export const Records = $root.Records = (() => { function RecordType(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -170390,7 +177251,7 @@ export const Records = $root.Records = (() => { * @memberof Records.RecordType * @instance */ - RecordType.prototype.content = ""; + RecordType.prototype.content = ''; /** * RecordType scope. @@ -170422,14 +177283,13 @@ export const Records = $root.Records = (() => { * @returns {$protobuf.Writer} Writer */ RecordType.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.recordTypeId != null && Object.hasOwnProperty.call(message, "recordTypeId")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.recordTypeId); - if (message.content != null && Object.hasOwnProperty.call(message, "content")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.content); - if (message.scope != null && Object.hasOwnProperty.call(message, "scope")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.scope); + if (!writer) writer = $Writer.create(); + if (message.recordTypeId != null && Object.hasOwnProperty.call(message, 'recordTypeId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int32(message.recordTypeId); + if (message.content != null && Object.hasOwnProperty.call(message, 'content')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.content); + if (message.scope != null && Object.hasOwnProperty.call(message, 'scope')) + writer.uint32(/* id 3, wireType 0 =*/ 24).int32(message.scope); return writer; }; @@ -170458,27 +177318,27 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RecordType.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordType(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Records.RecordType(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.recordTypeId = reader.int32(); break; } - case 2: { + case 2: { message.content = reader.string(); break; } - case 3: { + case 3: { message.scope = reader.int32(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -170495,8 +177355,7 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RecordType.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -170509,24 +177368,21 @@ export const Records = $root.Records = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ RecordType.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.recordTypeId != null && message.hasOwnProperty("recordTypeId")) - if (!$util.isInteger(message.recordTypeId)) - return "recordTypeId: integer expected"; - if (message.content != null && message.hasOwnProperty("content")) - if (!$util.isString(message.content)) - return "content: string expected"; - if (message.scope != null && message.hasOwnProperty("scope")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.recordTypeId != null && message.hasOwnProperty('recordTypeId')) + if (!$util.isInteger(message.recordTypeId)) return 'recordTypeId: integer expected'; + if (message.content != null && message.hasOwnProperty('content')) + if (!$util.isString(message.content)) return 'content: string expected'; + if (message.scope != null && message.hasOwnProperty('scope')) switch (message.scope) { - default: - return "scope: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; + default: + return 'scope: enum value expected'; + case 0: + case 1: + case 2: + case 3: + case 4: + break; } return null; }; @@ -170540,40 +177396,37 @@ export const Records = $root.Records = (() => { * @returns {Records.RecordType} RecordType */ RecordType.fromObject = function fromObject(object) { - if (object instanceof $root.Records.RecordType) - return object; + if (object instanceof $root.Records.RecordType) return object; let message = new $root.Records.RecordType(); - if (object.recordTypeId != null) - message.recordTypeId = object.recordTypeId | 0; - if (object.content != null) - message.content = String(object.content); + if (object.recordTypeId != null) message.recordTypeId = object.recordTypeId | 0; + if (object.content != null) message.content = String(object.content); switch (object.scope) { - default: - if (typeof object.scope === "number") { - message.scope = object.scope; + default: + if (typeof object.scope === 'number') { + message.scope = object.scope; + break; + } + break; + case 'RT_STANDARD': + case 0: + message.scope = 0; + break; + case 'RT_USER': + case 1: + message.scope = 1; + break; + case 'RT_ENTERPRISE': + case 2: + message.scope = 2; + break; + case 'RT_PAM': + case 3: + message.scope = 3; + break; + case 'RT_PAM_CONFIGURATION': + case 4: + message.scope = 4; break; - } - break; - case "RT_STANDARD": - case 0: - message.scope = 0; - break; - case "RT_USER": - case 1: - message.scope = 1; - break; - case "RT_ENTERPRISE": - case 2: - message.scope = 2; - break; - case "RT_PAM": - case 3: - message.scope = 3; - break; - case "RT_PAM_CONFIGURATION": - case 4: - message.scope = 4; - break; } return message; }; @@ -170588,20 +177441,23 @@ export const Records = $root.Records = (() => { * @returns {Object.} Plain object */ RecordType.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { object.recordTypeId = 0; - object.content = ""; - object.scope = options.enums === String ? "RT_STANDARD" : 0; + object.content = ''; + object.scope = options.enums === String ? 'RT_STANDARD' : 0; } - if (message.recordTypeId != null && message.hasOwnProperty("recordTypeId")) + if (message.recordTypeId != null && message.hasOwnProperty('recordTypeId')) object.recordTypeId = message.recordTypeId; - if (message.content != null && message.hasOwnProperty("content")) - object.content = message.content; - if (message.scope != null && message.hasOwnProperty("scope")) - object.scope = options.enums === String ? $root.Records.RecordTypeScope[message.scope] === undefined ? message.scope : $root.Records.RecordTypeScope[message.scope] : message.scope; + if (message.content != null && message.hasOwnProperty('content')) object.content = message.content; + if (message.scope != null && message.hasOwnProperty('scope')) + object.scope = + options.enums === String + ? $root.Records.RecordTypeScope[message.scope] === undefined + ? message.scope + : $root.Records.RecordTypeScope[message.scope] + : message.scope; return object; }; @@ -170626,16 +177482,15 @@ export const Records = $root.Records = (() => { */ RecordType.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Records.RecordType"; + return typeUrlPrefix + '/Records.RecordType'; }; return RecordType; })(); - Records.RecordTypesRequest = (function() { - + Records.RecordTypesRequest = (function () { /** * Properties of a RecordTypesRequest. * @memberof Records @@ -170657,8 +177512,7 @@ export const Records = $root.Records = (() => { function RecordTypesRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -170715,16 +177569,15 @@ export const Records = $root.Records = (() => { * @returns {$protobuf.Writer} Writer */ RecordTypesRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.standard != null && Object.hasOwnProperty.call(message, "standard")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.standard); - if (message.user != null && Object.hasOwnProperty.call(message, "user")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.user); - if (message.enterprise != null && Object.hasOwnProperty.call(message, "enterprise")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.enterprise); - if (message.pam != null && Object.hasOwnProperty.call(message, "pam")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.pam); + if (!writer) writer = $Writer.create(); + if (message.standard != null && Object.hasOwnProperty.call(message, 'standard')) + writer.uint32(/* id 1, wireType 0 =*/ 8).bool(message.standard); + if (message.user != null && Object.hasOwnProperty.call(message, 'user')) + writer.uint32(/* id 2, wireType 0 =*/ 16).bool(message.user); + if (message.enterprise != null && Object.hasOwnProperty.call(message, 'enterprise')) + writer.uint32(/* id 3, wireType 0 =*/ 24).bool(message.enterprise); + if (message.pam != null && Object.hasOwnProperty.call(message, 'pam')) + writer.uint32(/* id 4, wireType 0 =*/ 32).bool(message.pam); return writer; }; @@ -170753,31 +177606,31 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RecordTypesRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordTypesRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Records.RecordTypesRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.standard = reader.bool(); break; } - case 2: { + case 2: { message.user = reader.bool(); break; } - case 3: { + case 3: { message.enterprise = reader.bool(); break; } - case 4: { + case 4: { message.pam = reader.bool(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -170794,8 +177647,7 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RecordTypesRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -170808,20 +177660,15 @@ export const Records = $root.Records = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ RecordTypesRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.standard != null && message.hasOwnProperty("standard")) - if (typeof message.standard !== "boolean") - return "standard: boolean expected"; - if (message.user != null && message.hasOwnProperty("user")) - if (typeof message.user !== "boolean") - return "user: boolean expected"; - if (message.enterprise != null && message.hasOwnProperty("enterprise")) - if (typeof message.enterprise !== "boolean") - return "enterprise: boolean expected"; - if (message.pam != null && message.hasOwnProperty("pam")) - if (typeof message.pam !== "boolean") - return "pam: boolean expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.standard != null && message.hasOwnProperty('standard')) + if (typeof message.standard !== 'boolean') return 'standard: boolean expected'; + if (message.user != null && message.hasOwnProperty('user')) + if (typeof message.user !== 'boolean') return 'user: boolean expected'; + if (message.enterprise != null && message.hasOwnProperty('enterprise')) + if (typeof message.enterprise !== 'boolean') return 'enterprise: boolean expected'; + if (message.pam != null && message.hasOwnProperty('pam')) + if (typeof message.pam !== 'boolean') return 'pam: boolean expected'; return null; }; @@ -170834,17 +177681,12 @@ export const Records = $root.Records = (() => { * @returns {Records.RecordTypesRequest} RecordTypesRequest */ RecordTypesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Records.RecordTypesRequest) - return object; + if (object instanceof $root.Records.RecordTypesRequest) return object; let message = new $root.Records.RecordTypesRequest(); - if (object.standard != null) - message.standard = Boolean(object.standard); - if (object.user != null) - message.user = Boolean(object.user); - if (object.enterprise != null) - message.enterprise = Boolean(object.enterprise); - if (object.pam != null) - message.pam = Boolean(object.pam); + if (object.standard != null) message.standard = Boolean(object.standard); + if (object.user != null) message.user = Boolean(object.user); + if (object.enterprise != null) message.enterprise = Boolean(object.enterprise); + if (object.pam != null) message.pam = Boolean(object.pam); return message; }; @@ -170858,8 +177700,7 @@ export const Records = $root.Records = (() => { * @returns {Object.} Plain object */ RecordTypesRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { object.standard = false; @@ -170867,14 +177708,11 @@ export const Records = $root.Records = (() => { object.enterprise = false; object.pam = false; } - if (message.standard != null && message.hasOwnProperty("standard")) - object.standard = message.standard; - if (message.user != null && message.hasOwnProperty("user")) - object.user = message.user; - if (message.enterprise != null && message.hasOwnProperty("enterprise")) + if (message.standard != null && message.hasOwnProperty('standard')) object.standard = message.standard; + if (message.user != null && message.hasOwnProperty('user')) object.user = message.user; + if (message.enterprise != null && message.hasOwnProperty('enterprise')) object.enterprise = message.enterprise; - if (message.pam != null && message.hasOwnProperty("pam")) - object.pam = message.pam; + if (message.pam != null && message.hasOwnProperty('pam')) object.pam = message.pam; return object; }; @@ -170899,16 +177737,15 @@ export const Records = $root.Records = (() => { */ RecordTypesRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Records.RecordTypesRequest"; + return typeUrlPrefix + '/Records.RecordTypesRequest'; }; return RecordTypesRequest; })(); - Records.RecordTypesResponse = (function() { - + Records.RecordTypesResponse = (function () { /** * Properties of a RecordTypesResponse. * @memberof Records @@ -170932,8 +177769,7 @@ export const Records = $root.Records = (() => { this.recordTypes = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -170998,19 +177834,21 @@ export const Records = $root.Records = (() => { * @returns {$protobuf.Writer} Writer */ RecordTypesResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.recordTypes != null && message.recordTypes.length) for (let i = 0; i < message.recordTypes.length; ++i) - $root.Records.RecordType.encode(message.recordTypes[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.standardCounter != null && Object.hasOwnProperty.call(message, "standardCounter")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.standardCounter); - if (message.userCounter != null && Object.hasOwnProperty.call(message, "userCounter")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.userCounter); - if (message.enterpriseCounter != null && Object.hasOwnProperty.call(message, "enterpriseCounter")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.enterpriseCounter); - if (message.pamCounter != null && Object.hasOwnProperty.call(message, "pamCounter")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.pamCounter); + $root.Records.RecordType.encode( + message.recordTypes[i], + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); + if (message.standardCounter != null && Object.hasOwnProperty.call(message, 'standardCounter')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int32(message.standardCounter); + if (message.userCounter != null && Object.hasOwnProperty.call(message, 'userCounter')) + writer.uint32(/* id 3, wireType 0 =*/ 24).int32(message.userCounter); + if (message.enterpriseCounter != null && Object.hasOwnProperty.call(message, 'enterpriseCounter')) + writer.uint32(/* id 4, wireType 0 =*/ 32).int32(message.enterpriseCounter); + if (message.pamCounter != null && Object.hasOwnProperty.call(message, 'pamCounter')) + writer.uint32(/* id 5, wireType 0 =*/ 40).int32(message.pamCounter); return writer; }; @@ -171039,37 +177877,36 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RecordTypesResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordTypesResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Records.RecordTypesResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (!(message.recordTypes && message.recordTypes.length)) - message.recordTypes = []; + case 1: { + if (!(message.recordTypes && message.recordTypes.length)) message.recordTypes = []; message.recordTypes.push($root.Records.RecordType.decode(reader, reader.uint32())); break; } - case 2: { + case 2: { message.standardCounter = reader.int32(); break; } - case 3: { + case 3: { message.userCounter = reader.int32(); break; } - case 4: { + case 4: { message.enterpriseCounter = reader.int32(); break; } - case 5: { + case 5: { message.pamCounter = reader.int32(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -171086,8 +177923,7 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RecordTypesResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -171100,29 +177936,22 @@ export const Records = $root.Records = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ RecordTypesResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.recordTypes != null && message.hasOwnProperty("recordTypes")) { - if (!Array.isArray(message.recordTypes)) - return "recordTypes: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.recordTypes != null && message.hasOwnProperty('recordTypes')) { + if (!Array.isArray(message.recordTypes)) return 'recordTypes: array expected'; for (let i = 0; i < message.recordTypes.length; ++i) { let error = $root.Records.RecordType.verify(message.recordTypes[i]); - if (error) - return "recordTypes." + error; + if (error) return 'recordTypes.' + error; } } - if (message.standardCounter != null && message.hasOwnProperty("standardCounter")) - if (!$util.isInteger(message.standardCounter)) - return "standardCounter: integer expected"; - if (message.userCounter != null && message.hasOwnProperty("userCounter")) - if (!$util.isInteger(message.userCounter)) - return "userCounter: integer expected"; - if (message.enterpriseCounter != null && message.hasOwnProperty("enterpriseCounter")) - if (!$util.isInteger(message.enterpriseCounter)) - return "enterpriseCounter: integer expected"; - if (message.pamCounter != null && message.hasOwnProperty("pamCounter")) - if (!$util.isInteger(message.pamCounter)) - return "pamCounter: integer expected"; + if (message.standardCounter != null && message.hasOwnProperty('standardCounter')) + if (!$util.isInteger(message.standardCounter)) return 'standardCounter: integer expected'; + if (message.userCounter != null && message.hasOwnProperty('userCounter')) + if (!$util.isInteger(message.userCounter)) return 'userCounter: integer expected'; + if (message.enterpriseCounter != null && message.hasOwnProperty('enterpriseCounter')) + if (!$util.isInteger(message.enterpriseCounter)) return 'enterpriseCounter: integer expected'; + if (message.pamCounter != null && message.hasOwnProperty('pamCounter')) + if (!$util.isInteger(message.pamCounter)) return 'pamCounter: integer expected'; return null; }; @@ -171135,27 +177964,22 @@ export const Records = $root.Records = (() => { * @returns {Records.RecordTypesResponse} RecordTypesResponse */ RecordTypesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.Records.RecordTypesResponse) - return object; + if (object instanceof $root.Records.RecordTypesResponse) return object; let message = new $root.Records.RecordTypesResponse(); if (object.recordTypes) { if (!Array.isArray(object.recordTypes)) - throw TypeError(".Records.RecordTypesResponse.recordTypes: array expected"); + throw TypeError('.Records.RecordTypesResponse.recordTypes: array expected'); message.recordTypes = []; for (let i = 0; i < object.recordTypes.length; ++i) { - if (typeof object.recordTypes[i] !== "object") - throw TypeError(".Records.RecordTypesResponse.recordTypes: object expected"); + if (typeof object.recordTypes[i] !== 'object') + throw TypeError('.Records.RecordTypesResponse.recordTypes: object expected'); message.recordTypes[i] = $root.Records.RecordType.fromObject(object.recordTypes[i]); } } - if (object.standardCounter != null) - message.standardCounter = object.standardCounter | 0; - if (object.userCounter != null) - message.userCounter = object.userCounter | 0; - if (object.enterpriseCounter != null) - message.enterpriseCounter = object.enterpriseCounter | 0; - if (object.pamCounter != null) - message.pamCounter = object.pamCounter | 0; + if (object.standardCounter != null) message.standardCounter = object.standardCounter | 0; + if (object.userCounter != null) message.userCounter = object.userCounter | 0; + if (object.enterpriseCounter != null) message.enterpriseCounter = object.enterpriseCounter | 0; + if (object.pamCounter != null) message.pamCounter = object.pamCounter | 0; return message; }; @@ -171169,11 +177993,9 @@ export const Records = $root.Records = (() => { * @returns {Object.} Plain object */ RecordTypesResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.recordTypes = []; + if (options.arrays || options.defaults) object.recordTypes = []; if (options.defaults) { object.standardCounter = 0; object.userCounter = 0; @@ -171185,13 +178007,13 @@ export const Records = $root.Records = (() => { for (let j = 0; j < message.recordTypes.length; ++j) object.recordTypes[j] = $root.Records.RecordType.toObject(message.recordTypes[j], options); } - if (message.standardCounter != null && message.hasOwnProperty("standardCounter")) + if (message.standardCounter != null && message.hasOwnProperty('standardCounter')) object.standardCounter = message.standardCounter; - if (message.userCounter != null && message.hasOwnProperty("userCounter")) + if (message.userCounter != null && message.hasOwnProperty('userCounter')) object.userCounter = message.userCounter; - if (message.enterpriseCounter != null && message.hasOwnProperty("enterpriseCounter")) + if (message.enterpriseCounter != null && message.hasOwnProperty('enterpriseCounter')) object.enterpriseCounter = message.enterpriseCounter; - if (message.pamCounter != null && message.hasOwnProperty("pamCounter")) + if (message.pamCounter != null && message.hasOwnProperty('pamCounter')) object.pamCounter = message.pamCounter; return object; }; @@ -171217,16 +178039,15 @@ export const Records = $root.Records = (() => { */ RecordTypesResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Records.RecordTypesResponse"; + return typeUrlPrefix + '/Records.RecordTypesResponse'; }; return RecordTypesResponse; })(); - Records.RecordTypeModifyResponse = (function() { - + Records.RecordTypeModifyResponse = (function () { /** * Properties of a RecordTypeModifyResponse. * @memberof Records @@ -171246,8 +178067,7 @@ export const Records = $root.Records = (() => { function RecordTypeModifyResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -171288,12 +178108,11 @@ export const Records = $root.Records = (() => { * @returns {$protobuf.Writer} Writer */ RecordTypeModifyResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.recordTypeId != null && Object.hasOwnProperty.call(message, "recordTypeId")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.recordTypeId); - if (message.counter != null && Object.hasOwnProperty.call(message, "counter")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.counter); + if (!writer) writer = $Writer.create(); + if (message.recordTypeId != null && Object.hasOwnProperty.call(message, 'recordTypeId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int32(message.recordTypeId); + if (message.counter != null && Object.hasOwnProperty.call(message, 'counter')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int32(message.counter); return writer; }; @@ -171322,23 +178141,23 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RecordTypeModifyResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordTypeModifyResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Records.RecordTypeModifyResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.recordTypeId = reader.int32(); break; } - case 2: { + case 2: { message.counter = reader.int32(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -171355,8 +178174,7 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RecordTypeModifyResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -171369,14 +178187,11 @@ export const Records = $root.Records = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ RecordTypeModifyResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.recordTypeId != null && message.hasOwnProperty("recordTypeId")) - if (!$util.isInteger(message.recordTypeId)) - return "recordTypeId: integer expected"; - if (message.counter != null && message.hasOwnProperty("counter")) - if (!$util.isInteger(message.counter)) - return "counter: integer expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.recordTypeId != null && message.hasOwnProperty('recordTypeId')) + if (!$util.isInteger(message.recordTypeId)) return 'recordTypeId: integer expected'; + if (message.counter != null && message.hasOwnProperty('counter')) + if (!$util.isInteger(message.counter)) return 'counter: integer expected'; return null; }; @@ -171389,13 +178204,10 @@ export const Records = $root.Records = (() => { * @returns {Records.RecordTypeModifyResponse} RecordTypeModifyResponse */ RecordTypeModifyResponse.fromObject = function fromObject(object) { - if (object instanceof $root.Records.RecordTypeModifyResponse) - return object; + if (object instanceof $root.Records.RecordTypeModifyResponse) return object; let message = new $root.Records.RecordTypeModifyResponse(); - if (object.recordTypeId != null) - message.recordTypeId = object.recordTypeId | 0; - if (object.counter != null) - message.counter = object.counter | 0; + if (object.recordTypeId != null) message.recordTypeId = object.recordTypeId | 0; + if (object.counter != null) message.counter = object.counter | 0; return message; }; @@ -171409,17 +178221,15 @@ export const Records = $root.Records = (() => { * @returns {Object.} Plain object */ RecordTypeModifyResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { object.recordTypeId = 0; object.counter = 0; } - if (message.recordTypeId != null && message.hasOwnProperty("recordTypeId")) + if (message.recordTypeId != null && message.hasOwnProperty('recordTypeId')) object.recordTypeId = message.recordTypeId; - if (message.counter != null && message.hasOwnProperty("counter")) - object.counter = message.counter; + if (message.counter != null && message.hasOwnProperty('counter')) object.counter = message.counter; return object; }; @@ -171444,16 +178254,15 @@ export const Records = $root.Records = (() => { */ RecordTypeModifyResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Records.RecordTypeModifyResponse"; + return typeUrlPrefix + '/Records.RecordTypeModifyResponse'; }; return RecordTypeModifyResponse; })(); - Records.RecordsGetRequest = (function() { - + Records.RecordsGetRequest = (function () { /** * Properties of a RecordsGetRequest. * @memberof Records @@ -171474,8 +178283,7 @@ export const Records = $root.Records = (() => { this.recordUids = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -171492,7 +178300,7 @@ export const Records = $root.Records = (() => { * @memberof Records.RecordsGetRequest * @instance */ - RecordsGetRequest.prototype.clientTime = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + RecordsGetRequest.prototype.clientTime = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * Creates a new RecordsGetRequest instance using the specified properties. @@ -171516,13 +178324,12 @@ export const Records = $root.Records = (() => { * @returns {$protobuf.Writer} Writer */ RecordsGetRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.recordUids != null && message.recordUids.length) for (let i = 0; i < message.recordUids.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUids[i]); - if (message.clientTime != null && Object.hasOwnProperty.call(message, "clientTime")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.clientTime); + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.recordUids[i]); + if (message.clientTime != null && Object.hasOwnProperty.call(message, 'clientTime')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int64(message.clientTime); return writer; }; @@ -171551,25 +178358,24 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RecordsGetRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordsGetRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Records.RecordsGetRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (!(message.recordUids && message.recordUids.length)) - message.recordUids = []; + case 1: { + if (!(message.recordUids && message.recordUids.length)) message.recordUids = []; message.recordUids.push(reader.bytes()); break; } - case 2: { + case 2: { message.clientTime = reader.int64(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -171586,8 +178392,7 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RecordsGetRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -171600,18 +178405,28 @@ export const Records = $root.Records = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ RecordsGetRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.recordUids != null && message.hasOwnProperty("recordUids")) { - if (!Array.isArray(message.recordUids)) - return "recordUids: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.recordUids != null && message.hasOwnProperty('recordUids')) { + if (!Array.isArray(message.recordUids)) return 'recordUids: array expected'; for (let i = 0; i < message.recordUids.length; ++i) - if (!(message.recordUids[i] && typeof message.recordUids[i].length === "number" || $util.isString(message.recordUids[i]))) - return "recordUids: buffer[] expected"; + if ( + !( + (message.recordUids[i] && typeof message.recordUids[i].length === 'number') || + $util.isString(message.recordUids[i]) + ) + ) + return 'recordUids: buffer[] expected'; } - if (message.clientTime != null && message.hasOwnProperty("clientTime")) - if (!$util.isInteger(message.clientTime) && !(message.clientTime && $util.isInteger(message.clientTime.low) && $util.isInteger(message.clientTime.high))) - return "clientTime: integer|Long expected"; + if (message.clientTime != null && message.hasOwnProperty('clientTime')) + if ( + !$util.isInteger(message.clientTime) && + !( + message.clientTime && + $util.isInteger(message.clientTime.low) && + $util.isInteger(message.clientTime.high) + ) + ) + return 'clientTime: integer|Long expected'; return null; }; @@ -171624,28 +178439,30 @@ export const Records = $root.Records = (() => { * @returns {Records.RecordsGetRequest} RecordsGetRequest */ RecordsGetRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Records.RecordsGetRequest) - return object; + if (object instanceof $root.Records.RecordsGetRequest) return object; let message = new $root.Records.RecordsGetRequest(); if (object.recordUids) { if (!Array.isArray(object.recordUids)) - throw TypeError(".Records.RecordsGetRequest.recordUids: array expected"); + throw TypeError('.Records.RecordsGetRequest.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 (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.clientTime != null) - if ($util.Long) - (message.clientTime = $util.Long.fromValue(object.clientTime)).unsigned = 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 ($util.Long) (message.clientTime = $util.Long.fromValue(object.clientTime)).unsigned = 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(); return message; }; @@ -171659,27 +178476,38 @@ export const Records = $root.Records = (() => { * @returns {Object.} Plain object */ RecordsGetRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.recordUids = []; + 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() : long; - } else - object.clientTime = options.longs === String ? "0" : 0; + object.clientTime = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.clientTime = options.longs === String ? '0' : 0; 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]; - } - if (message.clientTime != null && message.hasOwnProperty("clientTime")) - if (typeof message.clientTime === "number") + 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]; + } + if (message.clientTime != null && message.hasOwnProperty('clientTime')) + 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; + 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; return object; }; @@ -171704,16 +178532,15 @@ export const Records = $root.Records = (() => { */ RecordsGetRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Records.RecordsGetRequest"; + return typeUrlPrefix + '/Records.RecordsGetRequest'; }; return RecordsGetRequest; })(); - Records.Record = (function() { - + Records.Record = (function () { /** * Properties of a Record. * @memberof Records @@ -171741,8 +178568,7 @@ export const Records = $root.Records = (() => { this.fileIds = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -171799,7 +178625,7 @@ export const Records = $root.Records = (() => { * @memberof Records.Record * @instance */ - Record.prototype.clientModifiedTime = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + Record.prototype.clientModifiedTime = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * Record revision. @@ -171807,7 +178633,7 @@ export const Records = $root.Records = (() => { * @memberof Records.Record * @instance */ - Record.prototype.revision = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + Record.prototype.revision = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * Record fileIds. @@ -171839,27 +178665,26 @@ export const Records = $root.Records = (() => { * @returns {$protobuf.Writer} Writer */ Record.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); - if (message.recordKey != null && Object.hasOwnProperty.call(message, "recordKey")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.recordKey); - if (message.recordKeyType != null && Object.hasOwnProperty.call(message, "recordKeyType")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.recordKeyType); - if (message.data != null && Object.hasOwnProperty.call(message, "data")) - writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.data); - if (message.extra != null && Object.hasOwnProperty.call(message, "extra")) - writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.extra); - if (message.version != null && Object.hasOwnProperty.call(message, "version")) - writer.uint32(/* id 6, wireType 0 =*/48).int32(message.version); - if (message.clientModifiedTime != null && Object.hasOwnProperty.call(message, "clientModifiedTime")) - writer.uint32(/* id 7, wireType 0 =*/56).int64(message.clientModifiedTime); - if (message.revision != null && Object.hasOwnProperty.call(message, "revision")) - writer.uint32(/* id 8, wireType 0 =*/64).int64(message.revision); + if (!writer) writer = $Writer.create(); + if (message.recordUid != null && Object.hasOwnProperty.call(message, 'recordUid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.recordUid); + if (message.recordKey != null && Object.hasOwnProperty.call(message, 'recordKey')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.recordKey); + if (message.recordKeyType != null && Object.hasOwnProperty.call(message, 'recordKeyType')) + writer.uint32(/* id 3, wireType 0 =*/ 24).int32(message.recordKeyType); + if (message.data != null && Object.hasOwnProperty.call(message, 'data')) + writer.uint32(/* id 4, wireType 2 =*/ 34).bytes(message.data); + if (message.extra != null && Object.hasOwnProperty.call(message, 'extra')) + writer.uint32(/* id 5, wireType 2 =*/ 42).bytes(message.extra); + if (message.version != null && Object.hasOwnProperty.call(message, 'version')) + writer.uint32(/* id 6, wireType 0 =*/ 48).int32(message.version); + if (message.clientModifiedTime != null && Object.hasOwnProperty.call(message, 'clientModifiedTime')) + writer.uint32(/* id 7, wireType 0 =*/ 56).int64(message.clientModifiedTime); + if (message.revision != null && Object.hasOwnProperty.call(message, 'revision')) + writer.uint32(/* id 8, wireType 0 =*/ 64).int64(message.revision); if (message.fileIds != null && message.fileIds.length) for (let i = 0; i < message.fileIds.length; ++i) - writer.uint32(/* id 9, wireType 2 =*/74).bytes(message.fileIds[i]); + writer.uint32(/* id 9, wireType 2 =*/ 74).bytes(message.fileIds[i]); return writer; }; @@ -171888,53 +178713,52 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ Record.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.Record(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Records.Record(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.recordUid = reader.bytes(); break; } - case 2: { + case 2: { message.recordKey = reader.bytes(); break; } - case 3: { + case 3: { message.recordKeyType = reader.int32(); break; } - case 4: { + case 4: { message.data = reader.bytes(); break; } - case 5: { + case 5: { message.extra = reader.bytes(); break; } - case 6: { + case 6: { message.version = reader.int32(); break; } - case 7: { + case 7: { message.clientModifiedTime = reader.int64(); break; } - case 8: { + case 8: { message.revision = reader.int64(); break; } - case 9: { - if (!(message.fileIds && message.fileIds.length)) - message.fileIds = []; + case 9: { + if (!(message.fileIds && message.fileIds.length)) message.fileIds = []; message.fileIds.push(reader.bytes()); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -171951,8 +178775,7 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ Record.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -171965,48 +178788,74 @@ export const Records = $root.Records = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ Record.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) - return "recordUid: buffer expected"; - if (message.recordKey != null && message.hasOwnProperty("recordKey")) - if (!(message.recordKey && typeof message.recordKey.length === "number" || $util.isString(message.recordKey))) - return "recordKey: buffer expected"; - if (message.recordKeyType != null && message.hasOwnProperty("recordKeyType")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.recordUid != null && message.hasOwnProperty('recordUid')) + if ( + !( + (message.recordUid && typeof message.recordUid.length === 'number') || + $util.isString(message.recordUid) + ) + ) + return 'recordUid: buffer expected'; + if (message.recordKey != null && message.hasOwnProperty('recordKey')) + if ( + !( + (message.recordKey && typeof message.recordKey.length === 'number') || + $util.isString(message.recordKey) + ) + ) + return 'recordKey: buffer expected'; + if (message.recordKeyType != null && message.hasOwnProperty('recordKeyType')) switch (message.recordKeyType) { - default: - return "recordKeyType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - break; + default: + return 'recordKeyType: enum value expected'; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + break; } - if (message.data != null && message.hasOwnProperty("data")) - if (!(message.data && typeof message.data.length === "number" || $util.isString(message.data))) - return "data: buffer expected"; - if (message.extra != null && message.hasOwnProperty("extra")) - if (!(message.extra && typeof message.extra.length === "number" || $util.isString(message.extra))) - return "extra: buffer expected"; - if (message.version != null && message.hasOwnProperty("version")) - if (!$util.isInteger(message.version)) - return "version: integer expected"; - if (message.clientModifiedTime != null && message.hasOwnProperty("clientModifiedTime")) - if (!$util.isInteger(message.clientModifiedTime) && !(message.clientModifiedTime && $util.isInteger(message.clientModifiedTime.low) && $util.isInteger(message.clientModifiedTime.high))) - return "clientModifiedTime: integer|Long expected"; - if (message.revision != null && message.hasOwnProperty("revision")) - if (!$util.isInteger(message.revision) && !(message.revision && $util.isInteger(message.revision.low) && $util.isInteger(message.revision.high))) - return "revision: integer|Long expected"; - if (message.fileIds != null && message.hasOwnProperty("fileIds")) { - if (!Array.isArray(message.fileIds)) - return "fileIds: array expected"; + if (message.data != null && message.hasOwnProperty('data')) + if (!((message.data && typeof message.data.length === 'number') || $util.isString(message.data))) + return 'data: buffer expected'; + if (message.extra != null && message.hasOwnProperty('extra')) + if (!((message.extra && typeof message.extra.length === 'number') || $util.isString(message.extra))) + return 'extra: buffer expected'; + if (message.version != null && message.hasOwnProperty('version')) + if (!$util.isInteger(message.version)) return 'version: integer expected'; + if (message.clientModifiedTime != null && message.hasOwnProperty('clientModifiedTime')) + if ( + !$util.isInteger(message.clientModifiedTime) && + !( + message.clientModifiedTime && + $util.isInteger(message.clientModifiedTime.low) && + $util.isInteger(message.clientModifiedTime.high) + ) + ) + return 'clientModifiedTime: integer|Long expected'; + if (message.revision != null && message.hasOwnProperty('revision')) + if ( + !$util.isInteger(message.revision) && + !( + message.revision && + $util.isInteger(message.revision.low) && + $util.isInteger(message.revision.high) + ) + ) + return 'revision: integer|Long expected'; + if (message.fileIds != null && message.hasOwnProperty('fileIds')) { + if (!Array.isArray(message.fileIds)) return 'fileIds: array expected'; for (let i = 0; i < message.fileIds.length; ++i) - if (!(message.fileIds[i] && typeof message.fileIds[i].length === "number" || $util.isString(message.fileIds[i]))) - return "fileIds: buffer[] expected"; + if ( + !( + (message.fileIds[i] && typeof message.fileIds[i].length === 'number') || + $util.isString(message.fileIds[i]) + ) + ) + return 'fileIds: buffer[] expected'; } return null; }; @@ -172020,94 +178869,109 @@ export const Records = $root.Records = (() => { * @returns {Records.Record} Record */ Record.fromObject = function fromObject(object) { - if (object instanceof $root.Records.Record) - return object; + if (object instanceof $root.Records.Record) return object; let message = new $root.Records.Record(); 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 (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.recordKey != null) - if (typeof object.recordKey === "string") - $util.base64.decode(object.recordKey, message.recordKey = $util.newBuffer($util.base64.length(object.recordKey)), 0); - else if (object.recordKey.length >= 0) - message.recordKey = object.recordKey; + if (typeof object.recordKey === 'string') + $util.base64.decode( + object.recordKey, + (message.recordKey = $util.newBuffer($util.base64.length(object.recordKey))), + 0 + ); + else if (object.recordKey.length >= 0) message.recordKey = object.recordKey; switch (object.recordKeyType) { - default: - if (typeof object.recordKeyType === "number") { - message.recordKeyType = object.recordKeyType; - break; - } - break; - case "NO_KEY": - case 0: - message.recordKeyType = 0; - break; - case "ENCRYPTED_BY_DATA_KEY": - case 1: - message.recordKeyType = 1; - break; - case "ENCRYPTED_BY_PUBLIC_KEY": - case 2: - message.recordKeyType = 2; - break; - case "ENCRYPTED_BY_DATA_KEY_GCM": - case 3: - message.recordKeyType = 3; - break; - case "ENCRYPTED_BY_PUBLIC_KEY_ECC": - case 4: - message.recordKeyType = 4; - break; - case "ENCRYPTED_BY_ROOT_KEY_CBC": - case 5: - message.recordKeyType = 5; - break; - case "ENCRYPTED_BY_ROOT_KEY_GCM": - case 6: - message.recordKeyType = 6; - break; + default: + if (typeof object.recordKeyType === 'number') { + message.recordKeyType = object.recordKeyType; + break; + } + break; + case 'NO_KEY': + case 0: + message.recordKeyType = 0; + break; + case 'ENCRYPTED_BY_DATA_KEY': + case 1: + message.recordKeyType = 1; + break; + case 'ENCRYPTED_BY_PUBLIC_KEY': + case 2: + message.recordKeyType = 2; + break; + case 'ENCRYPTED_BY_DATA_KEY_GCM': + case 3: + message.recordKeyType = 3; + break; + case 'ENCRYPTED_BY_PUBLIC_KEY_ECC': + case 4: + message.recordKeyType = 4; + break; + case 'ENCRYPTED_BY_ROOT_KEY_CBC': + case 5: + message.recordKeyType = 5; + break; + case 'ENCRYPTED_BY_ROOT_KEY_GCM': + case 6: + message.recordKeyType = 6; + break; } if (object.data != null) - if (typeof object.data === "string") - $util.base64.decode(object.data, message.data = $util.newBuffer($util.base64.length(object.data)), 0); - else if (object.data.length >= 0) - message.data = object.data; + if (typeof object.data === 'string') + $util.base64.decode( + object.data, + (message.data = $util.newBuffer($util.base64.length(object.data))), + 0 + ); + else if (object.data.length >= 0) message.data = object.data; if (object.extra != null) - if (typeof object.extra === "string") - $util.base64.decode(object.extra, message.extra = $util.newBuffer($util.base64.length(object.extra)), 0); - else if (object.extra.length >= 0) - message.extra = object.extra; - if (object.version != null) - message.version = object.version | 0; + if (typeof object.extra === 'string') + $util.base64.decode( + object.extra, + (message.extra = $util.newBuffer($util.base64.length(object.extra))), + 0 + ); + else if (object.extra.length >= 0) message.extra = object.extra; + if (object.version != null) message.version = object.version | 0; if (object.clientModifiedTime != null) if ($util.Long) (message.clientModifiedTime = $util.Long.fromValue(object.clientModifiedTime)).unsigned = false; - else if (typeof object.clientModifiedTime === "string") + else if (typeof object.clientModifiedTime === 'string') message.clientModifiedTime = parseInt(object.clientModifiedTime, 10); - else if (typeof object.clientModifiedTime === "number") + else if (typeof object.clientModifiedTime === 'number') message.clientModifiedTime = object.clientModifiedTime; - else if (typeof object.clientModifiedTime === "object") - message.clientModifiedTime = new $util.LongBits(object.clientModifiedTime.low >>> 0, object.clientModifiedTime.high >>> 0).toNumber(); + else if (typeof object.clientModifiedTime === 'object') + message.clientModifiedTime = new $util.LongBits( + object.clientModifiedTime.low >>> 0, + object.clientModifiedTime.high >>> 0 + ).toNumber(); if (object.revision != null) - if ($util.Long) - (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; - else if (typeof object.revision === "string") - message.revision = parseInt(object.revision, 10); - else if (typeof object.revision === "number") - message.revision = object.revision; - else if (typeof object.revision === "object") - message.revision = new $util.LongBits(object.revision.low >>> 0, object.revision.high >>> 0).toNumber(); + if ($util.Long) (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; + else if (typeof object.revision === 'string') message.revision = parseInt(object.revision, 10); + else if (typeof object.revision === 'number') message.revision = object.revision; + else if (typeof object.revision === 'object') + message.revision = new $util.LongBits( + object.revision.low >>> 0, + object.revision.high >>> 0 + ).toNumber(); if (object.fileIds) { - if (!Array.isArray(object.fileIds)) - throw TypeError(".Records.Record.fileIds: array expected"); + if (!Array.isArray(object.fileIds)) throw TypeError('.Records.Record.fileIds: array expected'); message.fileIds = []; for (let i = 0; i < object.fileIds.length; ++i) - if (typeof object.fileIds[i] === "string") - $util.base64.decode(object.fileIds[i], message.fileIds[i] = $util.newBuffer($util.base64.length(object.fileIds[i])), 0); - else if (object.fileIds[i].length >= 0) - message.fileIds[i] = object.fileIds[i]; + if (typeof object.fileIds[i] === 'string') + $util.base64.decode( + object.fileIds[i], + (message.fileIds[i] = $util.newBuffer($util.base64.length(object.fileIds[i]))), + 0 + ); + else if (object.fileIds[i].length >= 0) message.fileIds[i] = object.fileIds[i]; } return message; }; @@ -172122,79 +178986,112 @@ export const Records = $root.Records = (() => { * @returns {Object.} Plain object */ Record.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.fileIds = []; + if (options.arrays || options.defaults) object.fileIds = []; if (options.defaults) { - if (options.bytes === String) - object.recordUid = ""; + if (options.bytes === String) object.recordUid = ''; else { object.recordUid = []; - if (options.bytes !== Array) - object.recordUid = $util.newBuffer(object.recordUid); + if (options.bytes !== Array) object.recordUid = $util.newBuffer(object.recordUid); } - if (options.bytes === String) - object.recordKey = ""; + if (options.bytes === String) object.recordKey = ''; else { object.recordKey = []; - if (options.bytes !== Array) - object.recordKey = $util.newBuffer(object.recordKey); + if (options.bytes !== Array) object.recordKey = $util.newBuffer(object.recordKey); } - object.recordKeyType = options.enums === String ? "NO_KEY" : 0; - if (options.bytes === String) - object.data = ""; + object.recordKeyType = options.enums === String ? 'NO_KEY' : 0; + if (options.bytes === String) object.data = ''; else { object.data = []; - if (options.bytes !== Array) - object.data = $util.newBuffer(object.data); + if (options.bytes !== Array) object.data = $util.newBuffer(object.data); } - if (options.bytes === String) - object.extra = ""; + if (options.bytes === String) object.extra = ''; else { object.extra = []; - if (options.bytes !== Array) - object.extra = $util.newBuffer(object.extra); + if (options.bytes !== Array) object.extra = $util.newBuffer(object.extra); } object.version = 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.clientModifiedTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.clientModifiedTime = options.longs === String ? "0" : 0; + object.clientModifiedTime = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.clientModifiedTime = options.longs === String ? '0' : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.revision = options.longs === String ? "0" : 0; - } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; - if (message.recordKey != null && message.hasOwnProperty("recordKey")) - object.recordKey = options.bytes === String ? $util.base64.encode(message.recordKey, 0, message.recordKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordKey) : message.recordKey; - if (message.recordKeyType != null && message.hasOwnProperty("recordKeyType")) - object.recordKeyType = options.enums === String ? $root.Records.RecordKeyType[message.recordKeyType] === undefined ? message.recordKeyType : $root.Records.RecordKeyType[message.recordKeyType] : message.recordKeyType; - if (message.data != null && message.hasOwnProperty("data")) - object.data = options.bytes === String ? $util.base64.encode(message.data, 0, message.data.length) : options.bytes === Array ? Array.prototype.slice.call(message.data) : message.data; - if (message.extra != null && message.hasOwnProperty("extra")) - object.extra = options.bytes === String ? $util.base64.encode(message.extra, 0, message.extra.length) : options.bytes === Array ? Array.prototype.slice.call(message.extra) : message.extra; - if (message.version != null && message.hasOwnProperty("version")) - object.version = message.version; - if (message.clientModifiedTime != null && message.hasOwnProperty("clientModifiedTime")) - if (typeof message.clientModifiedTime === "number") - object.clientModifiedTime = options.longs === String ? String(message.clientModifiedTime) : message.clientModifiedTime; + object.revision = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.revision = options.longs === String ? '0' : 0; + } + if (message.recordUid != null && message.hasOwnProperty('recordUid')) + object.recordUid = + options.bytes === String + ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.recordUid) + : message.recordUid; + if (message.recordKey != null && message.hasOwnProperty('recordKey')) + object.recordKey = + options.bytes === String + ? $util.base64.encode(message.recordKey, 0, message.recordKey.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.recordKey) + : message.recordKey; + if (message.recordKeyType != null && message.hasOwnProperty('recordKeyType')) + object.recordKeyType = + options.enums === String + ? $root.Records.RecordKeyType[message.recordKeyType] === undefined + ? message.recordKeyType + : $root.Records.RecordKeyType[message.recordKeyType] + : message.recordKeyType; + if (message.data != null && message.hasOwnProperty('data')) + object.data = + options.bytes === String + ? $util.base64.encode(message.data, 0, message.data.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.data) + : message.data; + if (message.extra != null && message.hasOwnProperty('extra')) + object.extra = + options.bytes === String + ? $util.base64.encode(message.extra, 0, message.extra.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.extra) + : message.extra; + if (message.version != null && message.hasOwnProperty('version')) object.version = message.version; + if (message.clientModifiedTime != null && message.hasOwnProperty('clientModifiedTime')) + if (typeof message.clientModifiedTime === 'number') + object.clientModifiedTime = + options.longs === String ? String(message.clientModifiedTime) : message.clientModifiedTime; else - object.clientModifiedTime = options.longs === String ? $util.Long.prototype.toString.call(message.clientModifiedTime) : options.longs === Number ? new $util.LongBits(message.clientModifiedTime.low >>> 0, message.clientModifiedTime.high >>> 0).toNumber() : message.clientModifiedTime; - if (message.revision != null && message.hasOwnProperty("revision")) - if (typeof message.revision === "number") + object.clientModifiedTime = + options.longs === String + ? $util.Long.prototype.toString.call(message.clientModifiedTime) + : options.longs === Number + ? new $util.LongBits( + message.clientModifiedTime.low >>> 0, + message.clientModifiedTime.high >>> 0 + ).toNumber() + : message.clientModifiedTime; + if (message.revision != null && message.hasOwnProperty('revision')) + if (typeof message.revision === 'number') object.revision = options.longs === String ? String(message.revision) : message.revision; else - object.revision = options.longs === String ? $util.Long.prototype.toString.call(message.revision) : options.longs === Number ? new $util.LongBits(message.revision.low >>> 0, message.revision.high >>> 0).toNumber() : message.revision; + object.revision = + options.longs === String + ? $util.Long.prototype.toString.call(message.revision) + : options.longs === Number + ? new $util.LongBits(message.revision.low >>> 0, message.revision.high >>> 0).toNumber() + : message.revision; if (message.fileIds && message.fileIds.length) { object.fileIds = []; for (let j = 0; j < message.fileIds.length; ++j) - object.fileIds[j] = options.bytes === String ? $util.base64.encode(message.fileIds[j], 0, message.fileIds[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.fileIds[j]) : message.fileIds[j]; + object.fileIds[j] = + options.bytes === String + ? $util.base64.encode(message.fileIds[j], 0, message.fileIds[j].length) + : options.bytes === Array + ? Array.prototype.slice.call(message.fileIds[j]) + : message.fileIds[j]; } return object; }; @@ -172220,9 +179117,9 @@ export const Records = $root.Records = (() => { */ Record.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Records.Record"; + return typeUrlPrefix + '/Records.Record'; }; return Record; @@ -172240,20 +179137,20 @@ export const Records = $root.Records = (() => { * @property {number} ENCRYPTED_BY_ROOT_KEY_CBC=5 ENCRYPTED_BY_ROOT_KEY_CBC value * @property {number} ENCRYPTED_BY_ROOT_KEY_GCM=6 ENCRYPTED_BY_ROOT_KEY_GCM value */ - Records.RecordKeyType = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "NO_KEY"] = 0; - values[valuesById[1] = "ENCRYPTED_BY_DATA_KEY"] = 1; - values[valuesById[2] = "ENCRYPTED_BY_PUBLIC_KEY"] = 2; - values[valuesById[3] = "ENCRYPTED_BY_DATA_KEY_GCM"] = 3; - values[valuesById[4] = "ENCRYPTED_BY_PUBLIC_KEY_ECC"] = 4; - values[valuesById[5] = "ENCRYPTED_BY_ROOT_KEY_CBC"] = 5; - values[valuesById[6] = "ENCRYPTED_BY_ROOT_KEY_GCM"] = 6; + Records.RecordKeyType = (function () { + const valuesById = {}, + values = Object.create(valuesById); + values[(valuesById[0] = 'NO_KEY')] = 0; + values[(valuesById[1] = 'ENCRYPTED_BY_DATA_KEY')] = 1; + values[(valuesById[2] = 'ENCRYPTED_BY_PUBLIC_KEY')] = 2; + values[(valuesById[3] = 'ENCRYPTED_BY_DATA_KEY_GCM')] = 3; + values[(valuesById[4] = 'ENCRYPTED_BY_PUBLIC_KEY_ECC')] = 4; + values[(valuesById[5] = 'ENCRYPTED_BY_ROOT_KEY_CBC')] = 5; + values[(valuesById[6] = 'ENCRYPTED_BY_ROOT_KEY_GCM')] = 6; return values; })(); - Records.FolderRecordKey = (function() { - + Records.FolderRecordKey = (function () { /** * Properties of a FolderRecordKey. * @memberof Records @@ -172274,8 +179171,7 @@ export const Records = $root.Records = (() => { function FolderRecordKey(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -172324,14 +179220,13 @@ export const Records = $root.Records = (() => { * @returns {$protobuf.Writer} Writer */ FolderRecordKey.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.folderUid != null && Object.hasOwnProperty.call(message, "folderUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.folderUid); - if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.recordUid); - if (message.recordKey != null && Object.hasOwnProperty.call(message, "recordKey")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.recordKey); + if (!writer) writer = $Writer.create(); + if (message.folderUid != null && Object.hasOwnProperty.call(message, 'folderUid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.folderUid); + if (message.recordUid != null && Object.hasOwnProperty.call(message, 'recordUid')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.recordUid); + if (message.recordKey != null && Object.hasOwnProperty.call(message, 'recordKey')) + writer.uint32(/* id 3, wireType 2 =*/ 26).bytes(message.recordKey); return writer; }; @@ -172360,27 +179255,27 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ FolderRecordKey.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.FolderRecordKey(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Records.FolderRecordKey(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.folderUid = reader.bytes(); break; } - case 2: { + case 2: { message.recordUid = reader.bytes(); break; } - case 3: { + case 3: { message.recordKey = reader.bytes(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -172397,8 +179292,7 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ FolderRecordKey.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -172411,17 +179305,31 @@ export const Records = $root.Records = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ FolderRecordKey.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.folderUid != null && message.hasOwnProperty("folderUid")) - if (!(message.folderUid && typeof message.folderUid.length === "number" || $util.isString(message.folderUid))) - return "folderUid: buffer expected"; - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) - return "recordUid: buffer expected"; - if (message.recordKey != null && message.hasOwnProperty("recordKey")) - if (!(message.recordKey && typeof message.recordKey.length === "number" || $util.isString(message.recordKey))) - return "recordKey: buffer expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.folderUid != null && message.hasOwnProperty('folderUid')) + if ( + !( + (message.folderUid && typeof message.folderUid.length === 'number') || + $util.isString(message.folderUid) + ) + ) + return 'folderUid: buffer expected'; + if (message.recordUid != null && message.hasOwnProperty('recordUid')) + if ( + !( + (message.recordUid && typeof message.recordUid.length === 'number') || + $util.isString(message.recordUid) + ) + ) + return 'recordUid: buffer expected'; + if (message.recordKey != null && message.hasOwnProperty('recordKey')) + if ( + !( + (message.recordKey && typeof message.recordKey.length === 'number') || + $util.isString(message.recordKey) + ) + ) + return 'recordKey: buffer expected'; return null; }; @@ -172434,24 +179342,32 @@ export const Records = $root.Records = (() => { * @returns {Records.FolderRecordKey} FolderRecordKey */ FolderRecordKey.fromObject = function fromObject(object) { - if (object instanceof $root.Records.FolderRecordKey) - return object; + if (object instanceof $root.Records.FolderRecordKey) return object; let message = new $root.Records.FolderRecordKey(); 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 (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.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 (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.recordKey != null) - if (typeof object.recordKey === "string") - $util.base64.decode(object.recordKey, message.recordKey = $util.newBuffer($util.base64.length(object.recordKey)), 0); - else if (object.recordKey.length >= 0) - message.recordKey = object.recordKey; + if (typeof object.recordKey === 'string') + $util.base64.decode( + object.recordKey, + (message.recordKey = $util.newBuffer($util.base64.length(object.recordKey))), + 0 + ); + else if (object.recordKey.length >= 0) message.recordKey = object.recordKey; return message; }; @@ -172465,38 +179381,46 @@ export const Records = $root.Records = (() => { * @returns {Object.} Plain object */ FolderRecordKey.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.folderUid = ""; + if (options.bytes === String) object.folderUid = ''; else { object.folderUid = []; - if (options.bytes !== Array) - object.folderUid = $util.newBuffer(object.folderUid); + if (options.bytes !== Array) object.folderUid = $util.newBuffer(object.folderUid); } - if (options.bytes === String) - object.recordUid = ""; + if (options.bytes === String) object.recordUid = ''; else { object.recordUid = []; - if (options.bytes !== Array) - object.recordUid = $util.newBuffer(object.recordUid); + if (options.bytes !== Array) object.recordUid = $util.newBuffer(object.recordUid); } - if (options.bytes === String) - object.recordKey = ""; + if (options.bytes === String) object.recordKey = ''; else { object.recordKey = []; - if (options.bytes !== Array) - object.recordKey = $util.newBuffer(object.recordKey); - } - } - if (message.folderUid != null && message.hasOwnProperty("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.recordUid != null && message.hasOwnProperty("recordUid")) - object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; - if (message.recordKey != null && message.hasOwnProperty("recordKey")) - object.recordKey = options.bytes === String ? $util.base64.encode(message.recordKey, 0, message.recordKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordKey) : message.recordKey; + if (options.bytes !== Array) object.recordKey = $util.newBuffer(object.recordKey); + } + } + if (message.folderUid != null && message.hasOwnProperty('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.recordUid != null && message.hasOwnProperty('recordUid')) + object.recordUid = + options.bytes === String + ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.recordUid) + : message.recordUid; + if (message.recordKey != null && message.hasOwnProperty('recordKey')) + object.recordKey = + options.bytes === String + ? $util.base64.encode(message.recordKey, 0, message.recordKey.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.recordKey) + : message.recordKey; return object; }; @@ -172521,16 +179445,15 @@ export const Records = $root.Records = (() => { */ FolderRecordKey.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Records.FolderRecordKey"; + return typeUrlPrefix + '/Records.FolderRecordKey'; }; return FolderRecordKey; })(); - Records.Folder = (function() { - + Records.Folder = (function () { /** * Properties of a Folder. * @memberof Records @@ -172551,8 +179474,7 @@ export const Records = $root.Records = (() => { function Folder(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -172601,14 +179523,13 @@ export const Records = $root.Records = (() => { * @returns {$protobuf.Writer} Writer */ Folder.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.folderUid != null && Object.hasOwnProperty.call(message, "folderUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.folderUid); - if (message.folderKey != null && Object.hasOwnProperty.call(message, "folderKey")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.folderKey); - if (message.folderKeyType != null && Object.hasOwnProperty.call(message, "folderKeyType")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.folderKeyType); + if (!writer) writer = $Writer.create(); + if (message.folderUid != null && Object.hasOwnProperty.call(message, 'folderUid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.folderUid); + if (message.folderKey != null && Object.hasOwnProperty.call(message, 'folderKey')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.folderKey); + if (message.folderKeyType != null && Object.hasOwnProperty.call(message, 'folderKeyType')) + writer.uint32(/* id 3, wireType 0 =*/ 24).int32(message.folderKeyType); return writer; }; @@ -172637,27 +179558,27 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ Folder.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.Folder(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Records.Folder(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.folderUid = reader.bytes(); break; } - case 2: { + case 2: { message.folderKey = reader.bytes(); break; } - case 3: { + case 3: { message.folderKeyType = reader.int32(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -172674,8 +179595,7 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ Folder.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -172688,26 +179608,35 @@ export const Records = $root.Records = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ Folder.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.folderUid != null && message.hasOwnProperty("folderUid")) - if (!(message.folderUid && typeof message.folderUid.length === "number" || $util.isString(message.folderUid))) - return "folderUid: buffer expected"; - if (message.folderKey != null && message.hasOwnProperty("folderKey")) - if (!(message.folderKey && typeof message.folderKey.length === "number" || $util.isString(message.folderKey))) - return "folderKey: buffer expected"; - if (message.folderKeyType != null && message.hasOwnProperty("folderKeyType")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.folderUid != null && message.hasOwnProperty('folderUid')) + if ( + !( + (message.folderUid && typeof message.folderUid.length === 'number') || + $util.isString(message.folderUid) + ) + ) + return 'folderUid: buffer expected'; + if (message.folderKey != null && message.hasOwnProperty('folderKey')) + if ( + !( + (message.folderKey && typeof message.folderKey.length === 'number') || + $util.isString(message.folderKey) + ) + ) + return 'folderKey: buffer expected'; + if (message.folderKeyType != null && message.hasOwnProperty('folderKeyType')) switch (message.folderKeyType) { - default: - return "folderKeyType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - break; + default: + return 'folderKeyType: enum value expected'; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + break; } return null; }; @@ -172721,54 +179650,59 @@ export const Records = $root.Records = (() => { * @returns {Records.Folder} Folder */ Folder.fromObject = function fromObject(object) { - if (object instanceof $root.Records.Folder) - return object; + if (object instanceof $root.Records.Folder) return object; let message = new $root.Records.Folder(); 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 (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.folderKey != null) - if (typeof object.folderKey === "string") - $util.base64.decode(object.folderKey, message.folderKey = $util.newBuffer($util.base64.length(object.folderKey)), 0); - else if (object.folderKey.length >= 0) - message.folderKey = object.folderKey; + if (typeof object.folderKey === 'string') + $util.base64.decode( + object.folderKey, + (message.folderKey = $util.newBuffer($util.base64.length(object.folderKey))), + 0 + ); + else if (object.folderKey.length >= 0) message.folderKey = object.folderKey; switch (object.folderKeyType) { - default: - if (typeof object.folderKeyType === "number") { - message.folderKeyType = object.folderKeyType; - break; - } - break; - case "NO_KEY": - case 0: - message.folderKeyType = 0; - break; - case "ENCRYPTED_BY_DATA_KEY": - case 1: - message.folderKeyType = 1; - break; - case "ENCRYPTED_BY_PUBLIC_KEY": - case 2: - message.folderKeyType = 2; - break; - case "ENCRYPTED_BY_DATA_KEY_GCM": - case 3: - message.folderKeyType = 3; - break; - case "ENCRYPTED_BY_PUBLIC_KEY_ECC": - case 4: - message.folderKeyType = 4; - break; - case "ENCRYPTED_BY_ROOT_KEY_CBC": - case 5: - message.folderKeyType = 5; - break; - case "ENCRYPTED_BY_ROOT_KEY_GCM": - case 6: - message.folderKeyType = 6; - break; + default: + if (typeof object.folderKeyType === 'number') { + message.folderKeyType = object.folderKeyType; + break; + } + break; + case 'NO_KEY': + case 0: + message.folderKeyType = 0; + break; + case 'ENCRYPTED_BY_DATA_KEY': + case 1: + message.folderKeyType = 1; + break; + case 'ENCRYPTED_BY_PUBLIC_KEY': + case 2: + message.folderKeyType = 2; + break; + case 'ENCRYPTED_BY_DATA_KEY_GCM': + case 3: + message.folderKeyType = 3; + break; + case 'ENCRYPTED_BY_PUBLIC_KEY_ECC': + case 4: + message.folderKeyType = 4; + break; + case 'ENCRYPTED_BY_ROOT_KEY_CBC': + case 5: + message.folderKeyType = 5; + break; + case 'ENCRYPTED_BY_ROOT_KEY_GCM': + case 6: + message.folderKeyType = 6; + break; } return message; }; @@ -172783,32 +179717,42 @@ export const Records = $root.Records = (() => { * @returns {Object.} Plain object */ Folder.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.folderUid = ""; + if (options.bytes === String) object.folderUid = ''; else { object.folderUid = []; - if (options.bytes !== Array) - object.folderUid = $util.newBuffer(object.folderUid); + if (options.bytes !== Array) object.folderUid = $util.newBuffer(object.folderUid); } - if (options.bytes === String) - object.folderKey = ""; + if (options.bytes === String) object.folderKey = ''; else { object.folderKey = []; - if (options.bytes !== Array) - object.folderKey = $util.newBuffer(object.folderKey); - } - object.folderKeyType = options.enums === String ? "NO_KEY" : 0; - } - if (message.folderUid != null && message.hasOwnProperty("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.folderKey != null && message.hasOwnProperty("folderKey")) - object.folderKey = options.bytes === String ? $util.base64.encode(message.folderKey, 0, message.folderKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.folderKey) : message.folderKey; - if (message.folderKeyType != null && message.hasOwnProperty("folderKeyType")) - object.folderKeyType = options.enums === String ? $root.Records.RecordKeyType[message.folderKeyType] === undefined ? message.folderKeyType : $root.Records.RecordKeyType[message.folderKeyType] : message.folderKeyType; + if (options.bytes !== Array) object.folderKey = $util.newBuffer(object.folderKey); + } + object.folderKeyType = options.enums === String ? 'NO_KEY' : 0; + } + if (message.folderUid != null && message.hasOwnProperty('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.folderKey != null && message.hasOwnProperty('folderKey')) + object.folderKey = + options.bytes === String + ? $util.base64.encode(message.folderKey, 0, message.folderKey.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.folderKey) + : message.folderKey; + if (message.folderKeyType != null && message.hasOwnProperty('folderKeyType')) + object.folderKeyType = + options.enums === String + ? $root.Records.RecordKeyType[message.folderKeyType] === undefined + ? message.folderKeyType + : $root.Records.RecordKeyType[message.folderKeyType] + : message.folderKeyType; return object; }; @@ -172833,16 +179777,15 @@ export const Records = $root.Records = (() => { */ Folder.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Records.Folder"; + return typeUrlPrefix + '/Records.Folder'; }; return Folder; })(); - Records.Team = (function() { - + Records.Team = (function () { /** * Properties of a Team. * @memberof Records @@ -172866,8 +179809,7 @@ export const Records = $root.Records = (() => { this.folders = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -172932,19 +179874,21 @@ export const Records = $root.Records = (() => { * @returns {$protobuf.Writer} Writer */ Team.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.teamUid != null && Object.hasOwnProperty.call(message, "teamUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.teamUid); - if (message.teamKey != null && Object.hasOwnProperty.call(message, "teamKey")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.teamKey); - if (message.teamPrivateKey != null && Object.hasOwnProperty.call(message, "teamPrivateKey")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.teamPrivateKey); - if (message.teamKeyType != null && Object.hasOwnProperty.call(message, "teamKeyType")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.teamKeyType); + if (!writer) writer = $Writer.create(); + if (message.teamUid != null && Object.hasOwnProperty.call(message, 'teamUid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.teamUid); + if (message.teamKey != null && Object.hasOwnProperty.call(message, 'teamKey')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.teamKey); + if (message.teamPrivateKey != null && Object.hasOwnProperty.call(message, 'teamPrivateKey')) + writer.uint32(/* id 3, wireType 2 =*/ 26).bytes(message.teamPrivateKey); + if (message.teamKeyType != null && Object.hasOwnProperty.call(message, 'teamKeyType')) + writer.uint32(/* id 4, wireType 0 =*/ 32).int32(message.teamKeyType); if (message.folders != null && message.folders.length) for (let i = 0; i < message.folders.length; ++i) - $root.Records.Folder.encode(message.folders[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + $root.Records.Folder.encode( + message.folders[i], + writer.uint32(/* id 5, wireType 2 =*/ 42).fork() + ).ldelim(); return writer; }; @@ -172973,37 +179917,36 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ Team.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.Team(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Records.Team(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.teamUid = reader.bytes(); break; } - case 2: { + case 2: { message.teamKey = reader.bytes(); break; } - case 3: { + case 3: { message.teamPrivateKey = reader.bytes(); break; } - case 4: { + case 4: { message.teamKeyType = reader.int32(); break; } - case 5: { - if (!(message.folders && message.folders.length)) - message.folders = []; + case 5: { + if (!(message.folders && message.folders.length)) message.folders = []; message.folders.push($root.Records.Folder.decode(reader, reader.uint32())); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -173020,8 +179963,7 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ Team.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -173034,37 +179976,49 @@ export const Records = $root.Records = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ Team.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.teamUid != null && message.hasOwnProperty("teamUid")) - if (!(message.teamUid && typeof message.teamUid.length === "number" || $util.isString(message.teamUid))) - return "teamUid: buffer expected"; - if (message.teamKey != null && message.hasOwnProperty("teamKey")) - if (!(message.teamKey && typeof message.teamKey.length === "number" || $util.isString(message.teamKey))) - return "teamKey: buffer expected"; - if (message.teamPrivateKey != null && message.hasOwnProperty("teamPrivateKey")) - if (!(message.teamPrivateKey && typeof message.teamPrivateKey.length === "number" || $util.isString(message.teamPrivateKey))) - return "teamPrivateKey: buffer expected"; - if (message.teamKeyType != null && message.hasOwnProperty("teamKeyType")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.teamUid != null && message.hasOwnProperty('teamUid')) + if ( + !( + (message.teamUid && typeof message.teamUid.length === 'number') || + $util.isString(message.teamUid) + ) + ) + return 'teamUid: buffer expected'; + if (message.teamKey != null && message.hasOwnProperty('teamKey')) + if ( + !( + (message.teamKey && typeof message.teamKey.length === 'number') || + $util.isString(message.teamKey) + ) + ) + return 'teamKey: buffer expected'; + if (message.teamPrivateKey != null && message.hasOwnProperty('teamPrivateKey')) + if ( + !( + (message.teamPrivateKey && typeof message.teamPrivateKey.length === 'number') || + $util.isString(message.teamPrivateKey) + ) + ) + return 'teamPrivateKey: buffer expected'; + if (message.teamKeyType != null && message.hasOwnProperty('teamKeyType')) switch (message.teamKeyType) { - default: - return "teamKeyType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - break; + default: + return 'teamKeyType: enum value expected'; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + break; } - if (message.folders != null && message.hasOwnProperty("folders")) { - if (!Array.isArray(message.folders)) - return "folders: array expected"; + if (message.folders != null && message.hasOwnProperty('folders')) { + if (!Array.isArray(message.folders)) return 'folders: array expected'; for (let i = 0; i < message.folders.length; ++i) { let error = $root.Records.Folder.verify(message.folders[i]); - if (error) - return "folders." + error; + if (error) return 'folders.' + error; } } return null; @@ -173079,67 +180033,74 @@ export const Records = $root.Records = (() => { * @returns {Records.Team} Team */ Team.fromObject = function fromObject(object) { - if (object instanceof $root.Records.Team) - return object; + if (object instanceof $root.Records.Team) return object; let message = new $root.Records.Team(); if (object.teamUid != null) - if (typeof object.teamUid === "string") - $util.base64.decode(object.teamUid, message.teamUid = $util.newBuffer($util.base64.length(object.teamUid)), 0); - else if (object.teamUid.length >= 0) - message.teamUid = object.teamUid; + if (typeof object.teamUid === 'string') + $util.base64.decode( + object.teamUid, + (message.teamUid = $util.newBuffer($util.base64.length(object.teamUid))), + 0 + ); + else if (object.teamUid.length >= 0) message.teamUid = object.teamUid; if (object.teamKey != null) - if (typeof object.teamKey === "string") - $util.base64.decode(object.teamKey, message.teamKey = $util.newBuffer($util.base64.length(object.teamKey)), 0); - else if (object.teamKey.length >= 0) - message.teamKey = object.teamKey; + if (typeof object.teamKey === 'string') + $util.base64.decode( + object.teamKey, + (message.teamKey = $util.newBuffer($util.base64.length(object.teamKey))), + 0 + ); + else if (object.teamKey.length >= 0) message.teamKey = object.teamKey; if (object.teamPrivateKey != null) - if (typeof object.teamPrivateKey === "string") - $util.base64.decode(object.teamPrivateKey, message.teamPrivateKey = $util.newBuffer($util.base64.length(object.teamPrivateKey)), 0); - else if (object.teamPrivateKey.length >= 0) - message.teamPrivateKey = object.teamPrivateKey; + if (typeof object.teamPrivateKey === 'string') + $util.base64.decode( + object.teamPrivateKey, + (message.teamPrivateKey = $util.newBuffer($util.base64.length(object.teamPrivateKey))), + 0 + ); + else if (object.teamPrivateKey.length >= 0) message.teamPrivateKey = object.teamPrivateKey; switch (object.teamKeyType) { - default: - if (typeof object.teamKeyType === "number") { - message.teamKeyType = object.teamKeyType; - break; - } - break; - case "NO_KEY": - case 0: - message.teamKeyType = 0; - break; - case "ENCRYPTED_BY_DATA_KEY": - case 1: - message.teamKeyType = 1; - break; - case "ENCRYPTED_BY_PUBLIC_KEY": - case 2: - message.teamKeyType = 2; - break; - case "ENCRYPTED_BY_DATA_KEY_GCM": - case 3: - message.teamKeyType = 3; - break; - case "ENCRYPTED_BY_PUBLIC_KEY_ECC": - case 4: - message.teamKeyType = 4; - break; - case "ENCRYPTED_BY_ROOT_KEY_CBC": - case 5: - message.teamKeyType = 5; - break; - case "ENCRYPTED_BY_ROOT_KEY_GCM": - case 6: - message.teamKeyType = 6; - break; + default: + if (typeof object.teamKeyType === 'number') { + message.teamKeyType = object.teamKeyType; + break; + } + break; + case 'NO_KEY': + case 0: + message.teamKeyType = 0; + break; + case 'ENCRYPTED_BY_DATA_KEY': + case 1: + message.teamKeyType = 1; + break; + case 'ENCRYPTED_BY_PUBLIC_KEY': + case 2: + message.teamKeyType = 2; + break; + case 'ENCRYPTED_BY_DATA_KEY_GCM': + case 3: + message.teamKeyType = 3; + break; + case 'ENCRYPTED_BY_PUBLIC_KEY_ECC': + case 4: + message.teamKeyType = 4; + break; + case 'ENCRYPTED_BY_ROOT_KEY_CBC': + case 5: + message.teamKeyType = 5; + break; + case 'ENCRYPTED_BY_ROOT_KEY_GCM': + case 6: + message.teamKeyType = 6; + break; } if (object.folders) { - if (!Array.isArray(object.folders)) - throw TypeError(".Records.Team.folders: array expected"); + if (!Array.isArray(object.folders)) throw TypeError('.Records.Team.folders: array expected'); message.folders = []; for (let i = 0; i < object.folders.length; ++i) { - if (typeof object.folders[i] !== "object") - throw TypeError(".Records.Team.folders: object expected"); + if (typeof object.folders[i] !== 'object') + throw TypeError('.Records.Team.folders: object expected'); message.folders[i] = $root.Records.Folder.fromObject(object.folders[i]); } } @@ -173156,43 +180117,55 @@ export const Records = $root.Records = (() => { * @returns {Object.} Plain object */ Team.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.folders = []; + if (options.arrays || options.defaults) object.folders = []; if (options.defaults) { - if (options.bytes === String) - object.teamUid = ""; + if (options.bytes === String) object.teamUid = ''; else { object.teamUid = []; - if (options.bytes !== Array) - object.teamUid = $util.newBuffer(object.teamUid); + if (options.bytes !== Array) object.teamUid = $util.newBuffer(object.teamUid); } - if (options.bytes === String) - object.teamKey = ""; + if (options.bytes === String) object.teamKey = ''; else { object.teamKey = []; - if (options.bytes !== Array) - object.teamKey = $util.newBuffer(object.teamKey); + if (options.bytes !== Array) object.teamKey = $util.newBuffer(object.teamKey); } - if (options.bytes === String) - object.teamPrivateKey = ""; + if (options.bytes === String) object.teamPrivateKey = ''; else { object.teamPrivateKey = []; - if (options.bytes !== Array) - object.teamPrivateKey = $util.newBuffer(object.teamPrivateKey); - } - object.teamKeyType = options.enums === String ? "NO_KEY" : 0; - } - if (message.teamUid != null && message.hasOwnProperty("teamUid")) - object.teamUid = options.bytes === String ? $util.base64.encode(message.teamUid, 0, message.teamUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.teamUid) : message.teamUid; - if (message.teamKey != null && message.hasOwnProperty("teamKey")) - object.teamKey = options.bytes === String ? $util.base64.encode(message.teamKey, 0, message.teamKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.teamKey) : message.teamKey; - if (message.teamPrivateKey != null && message.hasOwnProperty("teamPrivateKey")) - object.teamPrivateKey = options.bytes === String ? $util.base64.encode(message.teamPrivateKey, 0, message.teamPrivateKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.teamPrivateKey) : message.teamPrivateKey; - if (message.teamKeyType != null && message.hasOwnProperty("teamKeyType")) - object.teamKeyType = options.enums === String ? $root.Records.RecordKeyType[message.teamKeyType] === undefined ? message.teamKeyType : $root.Records.RecordKeyType[message.teamKeyType] : message.teamKeyType; + if (options.bytes !== Array) object.teamPrivateKey = $util.newBuffer(object.teamPrivateKey); + } + object.teamKeyType = options.enums === String ? 'NO_KEY' : 0; + } + if (message.teamUid != null && message.hasOwnProperty('teamUid')) + object.teamUid = + options.bytes === String + ? $util.base64.encode(message.teamUid, 0, message.teamUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.teamUid) + : message.teamUid; + if (message.teamKey != null && message.hasOwnProperty('teamKey')) + object.teamKey = + options.bytes === String + ? $util.base64.encode(message.teamKey, 0, message.teamKey.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.teamKey) + : message.teamKey; + if (message.teamPrivateKey != null && message.hasOwnProperty('teamPrivateKey')) + object.teamPrivateKey = + options.bytes === String + ? $util.base64.encode(message.teamPrivateKey, 0, message.teamPrivateKey.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.teamPrivateKey) + : message.teamPrivateKey; + if (message.teamKeyType != null && message.hasOwnProperty('teamKeyType')) + object.teamKeyType = + options.enums === String + ? $root.Records.RecordKeyType[message.teamKeyType] === undefined + ? message.teamKeyType + : $root.Records.RecordKeyType[message.teamKeyType] + : message.teamKeyType; if (message.folders && message.folders.length) { object.folders = []; for (let j = 0; j < message.folders.length; ++j) @@ -173222,16 +180195,15 @@ export const Records = $root.Records = (() => { */ Team.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Records.Team"; + return typeUrlPrefix + '/Records.Team'; }; return Team; })(); - Records.RecordsGetResponse = (function() { - + Records.RecordsGetResponse = (function () { /** * Properties of a RecordsGetResponse. * @memberof Records @@ -173257,8 +180229,7 @@ export const Records = $root.Records = (() => { this.teams = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -173315,20 +180286,31 @@ export const Records = $root.Records = (() => { * @returns {$protobuf.Writer} Writer */ RecordsGetResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.records != null && message.records.length) for (let i = 0; i < message.records.length; ++i) - $root.Records.Record.encode(message.records[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.Records.Record.encode( + message.records[i], + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); if (message.folderRecordKeys != null && message.folderRecordKeys.length) for (let i = 0; i < message.folderRecordKeys.length; ++i) - $root.Records.FolderRecordKey.encode(message.folderRecordKeys[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + $root.Records.FolderRecordKey.encode( + message.folderRecordKeys[i], + writer.uint32(/* id 2, wireType 2 =*/ 18).fork() + ).ldelim(); if (message.folders != null && message.folders.length) for (let i = 0; i < message.folders.length; ++i) - $root.Records.Folder.encode(message.folders[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + $root.Records.Folder.encode( + message.folders[i], + writer.uint32(/* id 3, wireType 2 =*/ 26).fork() + ).ldelim(); if (message.teams != null && message.teams.length) for (let i = 0; i < message.teams.length; ++i) - $root.Records.Team.encode(message.teams[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + $root.Records.Team.encode( + message.teams[i], + writer.uint32(/* id 4, wireType 2 =*/ 34).fork() + ).ldelim(); return writer; }; @@ -173357,39 +180339,36 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RecordsGetResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordsGetResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Records.RecordsGetResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (!(message.records && message.records.length)) - message.records = []; + case 1: { + if (!(message.records && message.records.length)) message.records = []; message.records.push($root.Records.Record.decode(reader, reader.uint32())); break; } - case 2: { + case 2: { if (!(message.folderRecordKeys && message.folderRecordKeys.length)) message.folderRecordKeys = []; message.folderRecordKeys.push($root.Records.FolderRecordKey.decode(reader, reader.uint32())); break; } - case 3: { - if (!(message.folders && message.folders.length)) - message.folders = []; + case 3: { + if (!(message.folders && message.folders.length)) message.folders = []; message.folders.push($root.Records.Folder.decode(reader, reader.uint32())); break; } - case 4: { - if (!(message.teams && message.teams.length)) - message.teams = []; + case 4: { + if (!(message.teams && message.teams.length)) message.teams = []; message.teams.push($root.Records.Team.decode(reader, reader.uint32())); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -173406,8 +180385,7 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RecordsGetResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -173420,42 +180398,33 @@ export const Records = $root.Records = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ RecordsGetResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.records != null && message.hasOwnProperty("records")) { - if (!Array.isArray(message.records)) - return "records: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.records != null && message.hasOwnProperty('records')) { + if (!Array.isArray(message.records)) return 'records: array expected'; for (let i = 0; i < message.records.length; ++i) { let error = $root.Records.Record.verify(message.records[i]); - if (error) - return "records." + error; + if (error) return 'records.' + error; } } - if (message.folderRecordKeys != null && message.hasOwnProperty("folderRecordKeys")) { - if (!Array.isArray(message.folderRecordKeys)) - return "folderRecordKeys: array expected"; + if (message.folderRecordKeys != null && message.hasOwnProperty('folderRecordKeys')) { + if (!Array.isArray(message.folderRecordKeys)) return 'folderRecordKeys: array expected'; for (let i = 0; i < message.folderRecordKeys.length; ++i) { let error = $root.Records.FolderRecordKey.verify(message.folderRecordKeys[i]); - if (error) - return "folderRecordKeys." + error; + if (error) return 'folderRecordKeys.' + error; } } - if (message.folders != null && message.hasOwnProperty("folders")) { - if (!Array.isArray(message.folders)) - return "folders: array expected"; + if (message.folders != null && message.hasOwnProperty('folders')) { + if (!Array.isArray(message.folders)) return 'folders: array expected'; for (let i = 0; i < message.folders.length; ++i) { let error = $root.Records.Folder.verify(message.folders[i]); - if (error) - return "folders." + error; + if (error) return 'folders.' + error; } } - if (message.teams != null && message.hasOwnProperty("teams")) { - if (!Array.isArray(message.teams)) - return "teams: array expected"; + if (message.teams != null && message.hasOwnProperty('teams')) { + if (!Array.isArray(message.teams)) return 'teams: array expected'; for (let i = 0; i < message.teams.length; ++i) { let error = $root.Records.Team.verify(message.teams[i]); - if (error) - return "teams." + error; + if (error) return 'teams.' + error; } } return null; @@ -173470,46 +180439,44 @@ export const Records = $root.Records = (() => { * @returns {Records.RecordsGetResponse} RecordsGetResponse */ RecordsGetResponse.fromObject = function fromObject(object) { - if (object instanceof $root.Records.RecordsGetResponse) - return object; + if (object instanceof $root.Records.RecordsGetResponse) return object; let message = new $root.Records.RecordsGetResponse(); if (object.records) { if (!Array.isArray(object.records)) - throw TypeError(".Records.RecordsGetResponse.records: array expected"); + throw TypeError('.Records.RecordsGetResponse.records: array expected'); message.records = []; for (let i = 0; i < object.records.length; ++i) { - if (typeof object.records[i] !== "object") - throw TypeError(".Records.RecordsGetResponse.records: object expected"); + if (typeof object.records[i] !== 'object') + throw TypeError('.Records.RecordsGetResponse.records: object expected'); message.records[i] = $root.Records.Record.fromObject(object.records[i]); } } if (object.folderRecordKeys) { if (!Array.isArray(object.folderRecordKeys)) - throw TypeError(".Records.RecordsGetResponse.folderRecordKeys: array expected"); + throw TypeError('.Records.RecordsGetResponse.folderRecordKeys: array expected'); message.folderRecordKeys = []; for (let i = 0; i < object.folderRecordKeys.length; ++i) { - if (typeof object.folderRecordKeys[i] !== "object") - throw TypeError(".Records.RecordsGetResponse.folderRecordKeys: object expected"); + if (typeof object.folderRecordKeys[i] !== 'object') + throw TypeError('.Records.RecordsGetResponse.folderRecordKeys: object expected'); message.folderRecordKeys[i] = $root.Records.FolderRecordKey.fromObject(object.folderRecordKeys[i]); } } if (object.folders) { if (!Array.isArray(object.folders)) - throw TypeError(".Records.RecordsGetResponse.folders: array expected"); + throw TypeError('.Records.RecordsGetResponse.folders: array expected'); message.folders = []; for (let i = 0; i < object.folders.length; ++i) { - if (typeof object.folders[i] !== "object") - throw TypeError(".Records.RecordsGetResponse.folders: object expected"); + if (typeof object.folders[i] !== 'object') + throw TypeError('.Records.RecordsGetResponse.folders: object expected'); message.folders[i] = $root.Records.Folder.fromObject(object.folders[i]); } } if (object.teams) { - if (!Array.isArray(object.teams)) - throw TypeError(".Records.RecordsGetResponse.teams: array expected"); + if (!Array.isArray(object.teams)) throw TypeError('.Records.RecordsGetResponse.teams: array expected'); message.teams = []; for (let i = 0; i < object.teams.length; ++i) { - if (typeof object.teams[i] !== "object") - throw TypeError(".Records.RecordsGetResponse.teams: object expected"); + if (typeof object.teams[i] !== 'object') + throw TypeError('.Records.RecordsGetResponse.teams: object expected'); message.teams[i] = $root.Records.Team.fromObject(object.teams[i]); } } @@ -173526,8 +180493,7 @@ export const Records = $root.Records = (() => { * @returns {Object.} Plain object */ RecordsGetResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.arrays || options.defaults) { object.records = []; @@ -173543,7 +180509,10 @@ export const Records = $root.Records = (() => { if (message.folderRecordKeys && message.folderRecordKeys.length) { object.folderRecordKeys = []; for (let j = 0; j < message.folderRecordKeys.length; ++j) - object.folderRecordKeys[j] = $root.Records.FolderRecordKey.toObject(message.folderRecordKeys[j], options); + object.folderRecordKeys[j] = $root.Records.FolderRecordKey.toObject( + message.folderRecordKeys[j], + options + ); } if (message.folders && message.folders.length) { object.folders = []; @@ -173579,9 +180548,9 @@ export const Records = $root.Records = (() => { */ RecordsGetResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Records.RecordsGetResponse"; + return typeUrlPrefix + '/Records.RecordsGetResponse'; }; return RecordsGetResponse; @@ -173595,16 +180564,16 @@ export const Records = $root.Records = (() => { * @property {number} shared_folder=1 shared_folder value * @property {number} shared_folder_folder=2 shared_folder_folder value */ - Records.RecordFolderType = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "user_folder"] = 0; - values[valuesById[1] = "shared_folder"] = 1; - values[valuesById[2] = "shared_folder_folder"] = 2; + Records.RecordFolderType = (function () { + const valuesById = {}, + values = Object.create(valuesById); + values[(valuesById[0] = 'user_folder')] = 0; + values[(valuesById[1] = 'shared_folder')] = 1; + values[(valuesById[2] = 'shared_folder_folder')] = 2; return values; })(); - Records.RecordLink = (function() { - + Records.RecordLink = (function () { /** * Properties of a RecordLink. * @memberof Records @@ -173624,8 +180593,7 @@ export const Records = $root.Records = (() => { function RecordLink(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -173666,12 +180634,11 @@ export const Records = $root.Records = (() => { * @returns {$protobuf.Writer} Writer */ RecordLink.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); - if (message.recordKey != null && Object.hasOwnProperty.call(message, "recordKey")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.recordKey); + if (!writer) writer = $Writer.create(); + if (message.recordUid != null && Object.hasOwnProperty.call(message, 'recordUid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.recordUid); + if (message.recordKey != null && Object.hasOwnProperty.call(message, 'recordKey')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.recordKey); return writer; }; @@ -173700,23 +180667,23 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RecordLink.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordLink(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Records.RecordLink(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.recordUid = reader.bytes(); break; } - case 2: { + case 2: { message.recordKey = reader.bytes(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -173733,8 +180700,7 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RecordLink.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -173747,14 +180713,23 @@ export const Records = $root.Records = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ RecordLink.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) - return "recordUid: buffer expected"; - if (message.recordKey != null && message.hasOwnProperty("recordKey")) - if (!(message.recordKey && typeof message.recordKey.length === "number" || $util.isString(message.recordKey))) - return "recordKey: buffer expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.recordUid != null && message.hasOwnProperty('recordUid')) + if ( + !( + (message.recordUid && typeof message.recordUid.length === 'number') || + $util.isString(message.recordUid) + ) + ) + return 'recordUid: buffer expected'; + if (message.recordKey != null && message.hasOwnProperty('recordKey')) + if ( + !( + (message.recordKey && typeof message.recordKey.length === 'number') || + $util.isString(message.recordKey) + ) + ) + return 'recordKey: buffer expected'; return null; }; @@ -173767,19 +180742,24 @@ export const Records = $root.Records = (() => { * @returns {Records.RecordLink} RecordLink */ RecordLink.fromObject = function fromObject(object) { - if (object instanceof $root.Records.RecordLink) - return object; + if (object instanceof $root.Records.RecordLink) return object; let message = new $root.Records.RecordLink(); 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 (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.recordKey != null) - if (typeof object.recordKey === "string") - $util.base64.decode(object.recordKey, message.recordKey = $util.newBuffer($util.base64.length(object.recordKey)), 0); - else if (object.recordKey.length >= 0) - message.recordKey = object.recordKey; + if (typeof object.recordKey === 'string') + $util.base64.decode( + object.recordKey, + (message.recordKey = $util.newBuffer($util.base64.length(object.recordKey))), + 0 + ); + else if (object.recordKey.length >= 0) message.recordKey = object.recordKey; return message; }; @@ -173793,29 +180773,34 @@ export const Records = $root.Records = (() => { * @returns {Object.} Plain object */ RecordLink.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.recordUid = ""; + if (options.bytes === String) object.recordUid = ''; else { object.recordUid = []; - if (options.bytes !== Array) - object.recordUid = $util.newBuffer(object.recordUid); + if (options.bytes !== Array) object.recordUid = $util.newBuffer(object.recordUid); } - if (options.bytes === String) - object.recordKey = ""; + if (options.bytes === String) object.recordKey = ''; else { object.recordKey = []; - if (options.bytes !== Array) - object.recordKey = $util.newBuffer(object.recordKey); + if (options.bytes !== Array) object.recordKey = $util.newBuffer(object.recordKey); } } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; - if (message.recordKey != null && message.hasOwnProperty("recordKey")) - object.recordKey = options.bytes === String ? $util.base64.encode(message.recordKey, 0, message.recordKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordKey) : message.recordKey; + if (message.recordUid != null && message.hasOwnProperty('recordUid')) + object.recordUid = + options.bytes === String + ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.recordUid) + : message.recordUid; + if (message.recordKey != null && message.hasOwnProperty('recordKey')) + object.recordKey = + options.bytes === String + ? $util.base64.encode(message.recordKey, 0, message.recordKey.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.recordKey) + : message.recordKey; return object; }; @@ -173840,16 +180825,15 @@ export const Records = $root.Records = (() => { */ RecordLink.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Records.RecordLink"; + return typeUrlPrefix + '/Records.RecordLink'; }; return RecordLink; })(); - Records.RecordAudit = (function() { - + Records.RecordAudit = (function () { /** * Properties of a RecordAudit. * @memberof Records @@ -173869,8 +180853,7 @@ export const Records = $root.Records = (() => { function RecordAudit(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -173911,12 +180894,11 @@ export const Records = $root.Records = (() => { * @returns {$protobuf.Writer} Writer */ RecordAudit.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.version != null && Object.hasOwnProperty.call(message, "version")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.version); - if (message.data != null && Object.hasOwnProperty.call(message, "data")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.data); + if (!writer) writer = $Writer.create(); + if (message.version != null && Object.hasOwnProperty.call(message, 'version')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int32(message.version); + if (message.data != null && Object.hasOwnProperty.call(message, 'data')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.data); return writer; }; @@ -173945,23 +180927,23 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RecordAudit.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordAudit(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Records.RecordAudit(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.version = reader.int32(); break; } - case 2: { + case 2: { message.data = reader.bytes(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -173978,8 +180960,7 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RecordAudit.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -173992,14 +180973,12 @@ export const Records = $root.Records = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ RecordAudit.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.version != null && message.hasOwnProperty("version")) - if (!$util.isInteger(message.version)) - return "version: integer expected"; - if (message.data != null && message.hasOwnProperty("data")) - if (!(message.data && typeof message.data.length === "number" || $util.isString(message.data))) - return "data: buffer expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.version != null && message.hasOwnProperty('version')) + if (!$util.isInteger(message.version)) return 'version: integer expected'; + if (message.data != null && message.hasOwnProperty('data')) + if (!((message.data && typeof message.data.length === 'number') || $util.isString(message.data))) + return 'data: buffer expected'; return null; }; @@ -174012,16 +180991,17 @@ export const Records = $root.Records = (() => { * @returns {Records.RecordAudit} RecordAudit */ RecordAudit.fromObject = function fromObject(object) { - if (object instanceof $root.Records.RecordAudit) - return object; + if (object instanceof $root.Records.RecordAudit) return object; let message = new $root.Records.RecordAudit(); - if (object.version != null) - message.version = object.version | 0; + if (object.version != null) message.version = object.version | 0; if (object.data != null) - if (typeof object.data === "string") - $util.base64.decode(object.data, message.data = $util.newBuffer($util.base64.length(object.data)), 0); - else if (object.data.length >= 0) - message.data = object.data; + if (typeof object.data === 'string') + $util.base64.decode( + object.data, + (message.data = $util.newBuffer($util.base64.length(object.data))), + 0 + ); + else if (object.data.length >= 0) message.data = object.data; return message; }; @@ -174035,23 +181015,24 @@ export const Records = $root.Records = (() => { * @returns {Object.} Plain object */ RecordAudit.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { object.version = 0; - if (options.bytes === String) - object.data = ""; + if (options.bytes === String) object.data = ''; else { object.data = []; - if (options.bytes !== Array) - object.data = $util.newBuffer(object.data); + if (options.bytes !== Array) object.data = $util.newBuffer(object.data); } } - if (message.version != null && message.hasOwnProperty("version")) - object.version = message.version; - if (message.data != null && message.hasOwnProperty("data")) - object.data = options.bytes === String ? $util.base64.encode(message.data, 0, message.data.length) : options.bytes === Array ? Array.prototype.slice.call(message.data) : message.data; + if (message.version != null && message.hasOwnProperty('version')) object.version = message.version; + if (message.data != null && message.hasOwnProperty('data')) + object.data = + options.bytes === String + ? $util.base64.encode(message.data, 0, message.data.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.data) + : message.data; return object; }; @@ -174076,16 +181057,15 @@ export const Records = $root.Records = (() => { */ RecordAudit.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Records.RecordAudit"; + return typeUrlPrefix + '/Records.RecordAudit'; }; return RecordAudit; })(); - Records.SecurityData = (function() { - + Records.SecurityData = (function () { /** * Properties of a SecurityData. * @memberof Records @@ -174104,8 +181084,7 @@ export const Records = $root.Records = (() => { function SecurityData(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -174138,10 +181117,9 @@ export const Records = $root.Records = (() => { * @returns {$protobuf.Writer} Writer */ SecurityData.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.data != null && Object.hasOwnProperty.call(message, "data")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.data); + if (!writer) writer = $Writer.create(); + if (message.data != null && Object.hasOwnProperty.call(message, 'data')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.data); return writer; }; @@ -174170,19 +181148,19 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SecurityData.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.SecurityData(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Records.SecurityData(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.data = reader.bytes(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -174199,8 +181177,7 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SecurityData.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -174213,11 +181190,10 @@ export const Records = $root.Records = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ SecurityData.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.data != null && message.hasOwnProperty("data")) - if (!(message.data && typeof message.data.length === "number" || $util.isString(message.data))) - return "data: buffer expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.data != null && message.hasOwnProperty('data')) + if (!((message.data && typeof message.data.length === 'number') || $util.isString(message.data))) + return 'data: buffer expected'; return null; }; @@ -174230,14 +181206,16 @@ export const Records = $root.Records = (() => { * @returns {Records.SecurityData} SecurityData */ SecurityData.fromObject = function fromObject(object) { - if (object instanceof $root.Records.SecurityData) - return object; + if (object instanceof $root.Records.SecurityData) return object; let message = new $root.Records.SecurityData(); if (object.data != null) - if (typeof object.data === "string") - $util.base64.decode(object.data, message.data = $util.newBuffer($util.base64.length(object.data)), 0); - else if (object.data.length >= 0) - message.data = object.data; + if (typeof object.data === 'string') + $util.base64.decode( + object.data, + (message.data = $util.newBuffer($util.base64.length(object.data))), + 0 + ); + else if (object.data.length >= 0) message.data = object.data; return message; }; @@ -174251,19 +181229,21 @@ export const Records = $root.Records = (() => { * @returns {Object.} Plain object */ SecurityData.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) - if (options.bytes === String) - object.data = ""; + if (options.bytes === String) object.data = ''; else { object.data = []; - if (options.bytes !== Array) - object.data = $util.newBuffer(object.data); + if (options.bytes !== Array) object.data = $util.newBuffer(object.data); } - if (message.data != null && message.hasOwnProperty("data")) - object.data = options.bytes === String ? $util.base64.encode(message.data, 0, message.data.length) : options.bytes === Array ? Array.prototype.slice.call(message.data) : message.data; + if (message.data != null && message.hasOwnProperty('data')) + object.data = + options.bytes === String + ? $util.base64.encode(message.data, 0, message.data.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.data) + : message.data; return object; }; @@ -174288,16 +181268,15 @@ export const Records = $root.Records = (() => { */ SecurityData.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Records.SecurityData"; + return typeUrlPrefix + '/Records.SecurityData'; }; return SecurityData; })(); - Records.SecurityScoreData = (function() { - + Records.SecurityScoreData = (function () { /** * Properties of a SecurityScoreData. * @memberof Records @@ -174316,8 +181295,7 @@ export const Records = $root.Records = (() => { function SecurityScoreData(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -174350,10 +181328,9 @@ export const Records = $root.Records = (() => { * @returns {$protobuf.Writer} Writer */ SecurityScoreData.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.data != null && Object.hasOwnProperty.call(message, "data")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.data); + if (!writer) writer = $Writer.create(); + if (message.data != null && Object.hasOwnProperty.call(message, 'data')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.data); return writer; }; @@ -174382,19 +181359,19 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SecurityScoreData.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.SecurityScoreData(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Records.SecurityScoreData(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.data = reader.bytes(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -174411,8 +181388,7 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SecurityScoreData.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -174425,11 +181401,10 @@ export const Records = $root.Records = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ SecurityScoreData.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.data != null && message.hasOwnProperty("data")) - if (!(message.data && typeof message.data.length === "number" || $util.isString(message.data))) - return "data: buffer expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.data != null && message.hasOwnProperty('data')) + if (!((message.data && typeof message.data.length === 'number') || $util.isString(message.data))) + return 'data: buffer expected'; return null; }; @@ -174442,14 +181417,16 @@ export const Records = $root.Records = (() => { * @returns {Records.SecurityScoreData} SecurityScoreData */ SecurityScoreData.fromObject = function fromObject(object) { - if (object instanceof $root.Records.SecurityScoreData) - return object; + if (object instanceof $root.Records.SecurityScoreData) return object; let message = new $root.Records.SecurityScoreData(); if (object.data != null) - if (typeof object.data === "string") - $util.base64.decode(object.data, message.data = $util.newBuffer($util.base64.length(object.data)), 0); - else if (object.data.length >= 0) - message.data = object.data; + if (typeof object.data === 'string') + $util.base64.decode( + object.data, + (message.data = $util.newBuffer($util.base64.length(object.data))), + 0 + ); + else if (object.data.length >= 0) message.data = object.data; return message; }; @@ -174463,19 +181440,21 @@ export const Records = $root.Records = (() => { * @returns {Object.} Plain object */ SecurityScoreData.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) - if (options.bytes === String) - object.data = ""; + if (options.bytes === String) object.data = ''; else { object.data = []; - if (options.bytes !== Array) - object.data = $util.newBuffer(object.data); + if (options.bytes !== Array) object.data = $util.newBuffer(object.data); } - if (message.data != null && message.hasOwnProperty("data")) - object.data = options.bytes === String ? $util.base64.encode(message.data, 0, message.data.length) : options.bytes === Array ? Array.prototype.slice.call(message.data) : message.data; + if (message.data != null && message.hasOwnProperty('data')) + object.data = + options.bytes === String + ? $util.base64.encode(message.data, 0, message.data.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.data) + : message.data; return object; }; @@ -174500,16 +181479,15 @@ export const Records = $root.Records = (() => { */ SecurityScoreData.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Records.SecurityScoreData"; + return typeUrlPrefix + '/Records.SecurityScoreData'; }; return SecurityScoreData; })(); - Records.RecordAdd = (function() { - + Records.RecordAdd = (function () { /** * Properties of a RecordAdd. * @memberof Records @@ -174540,8 +181518,7 @@ export const Records = $root.Records = (() => { this.recordLinks = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -174566,7 +181543,7 @@ export const Records = $root.Records = (() => { * @memberof Records.RecordAdd * @instance */ - RecordAdd.prototype.clientModifiedTime = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + RecordAdd.prototype.clientModifiedTime = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * RecordAdd data. @@ -174662,33 +181639,44 @@ export const Records = $root.Records = (() => { * @returns {$protobuf.Writer} Writer */ RecordAdd.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); - if (message.recordKey != null && Object.hasOwnProperty.call(message, "recordKey")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.recordKey); - if (message.clientModifiedTime != null && Object.hasOwnProperty.call(message, "clientModifiedTime")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.clientModifiedTime); - if (message.data != null && Object.hasOwnProperty.call(message, "data")) - writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.data); - if (message.nonSharedData != null && Object.hasOwnProperty.call(message, "nonSharedData")) - writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.nonSharedData); - if (message.folderType != null && Object.hasOwnProperty.call(message, "folderType")) - writer.uint32(/* id 6, wireType 0 =*/48).int32(message.folderType); - if (message.folderUid != null && Object.hasOwnProperty.call(message, "folderUid")) - writer.uint32(/* id 7, wireType 2 =*/58).bytes(message.folderUid); - if (message.folderKey != null && Object.hasOwnProperty.call(message, "folderKey")) - writer.uint32(/* id 8, wireType 2 =*/66).bytes(message.folderKey); + if (!writer) writer = $Writer.create(); + if (message.recordUid != null && Object.hasOwnProperty.call(message, 'recordUid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.recordUid); + if (message.recordKey != null && Object.hasOwnProperty.call(message, 'recordKey')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.recordKey); + if (message.clientModifiedTime != null && Object.hasOwnProperty.call(message, 'clientModifiedTime')) + writer.uint32(/* id 3, wireType 0 =*/ 24).int64(message.clientModifiedTime); + if (message.data != null && Object.hasOwnProperty.call(message, 'data')) + writer.uint32(/* id 4, wireType 2 =*/ 34).bytes(message.data); + if (message.nonSharedData != null && Object.hasOwnProperty.call(message, 'nonSharedData')) + writer.uint32(/* id 5, wireType 2 =*/ 42).bytes(message.nonSharedData); + if (message.folderType != null && Object.hasOwnProperty.call(message, 'folderType')) + writer.uint32(/* id 6, wireType 0 =*/ 48).int32(message.folderType); + if (message.folderUid != null && Object.hasOwnProperty.call(message, 'folderUid')) + writer.uint32(/* id 7, wireType 2 =*/ 58).bytes(message.folderUid); + if (message.folderKey != null && Object.hasOwnProperty.call(message, 'folderKey')) + writer.uint32(/* id 8, wireType 2 =*/ 66).bytes(message.folderKey); if (message.recordLinks != null && message.recordLinks.length) for (let i = 0; i < message.recordLinks.length; ++i) - $root.Records.RecordLink.encode(message.recordLinks[i], writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); - if (message.audit != null && Object.hasOwnProperty.call(message, "audit")) - $root.Records.RecordAudit.encode(message.audit, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); - if (message.securityData != null && Object.hasOwnProperty.call(message, "securityData")) - $root.Records.SecurityData.encode(message.securityData, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); - if (message.securityScoreData != null && Object.hasOwnProperty.call(message, "securityScoreData")) - $root.Records.SecurityScoreData.encode(message.securityScoreData, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); + $root.Records.RecordLink.encode( + message.recordLinks[i], + writer.uint32(/* id 9, wireType 2 =*/ 74).fork() + ).ldelim(); + if (message.audit != null && Object.hasOwnProperty.call(message, 'audit')) + $root.Records.RecordAudit.encode( + message.audit, + writer.uint32(/* id 10, wireType 2 =*/ 82).fork() + ).ldelim(); + if (message.securityData != null && Object.hasOwnProperty.call(message, 'securityData')) + $root.Records.SecurityData.encode( + message.securityData, + writer.uint32(/* id 11, wireType 2 =*/ 90).fork() + ).ldelim(); + if (message.securityScoreData != null && Object.hasOwnProperty.call(message, 'securityScoreData')) + $root.Records.SecurityScoreData.encode( + message.securityScoreData, + writer.uint32(/* id 12, wireType 2 =*/ 98).fork() + ).ldelim(); return writer; }; @@ -174717,65 +181705,64 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RecordAdd.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordAdd(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Records.RecordAdd(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.recordUid = reader.bytes(); break; } - case 2: { + case 2: { message.recordKey = reader.bytes(); break; } - case 3: { + case 3: { message.clientModifiedTime = reader.int64(); break; } - case 4: { + case 4: { message.data = reader.bytes(); break; } - case 5: { + case 5: { message.nonSharedData = reader.bytes(); break; } - case 6: { + case 6: { message.folderType = reader.int32(); break; } - case 7: { + case 7: { message.folderUid = reader.bytes(); break; } - case 8: { + case 8: { message.folderKey = reader.bytes(); break; } - case 9: { - if (!(message.recordLinks && message.recordLinks.length)) - message.recordLinks = []; + case 9: { + if (!(message.recordLinks && message.recordLinks.length)) message.recordLinks = []; message.recordLinks.push($root.Records.RecordLink.decode(reader, reader.uint32())); break; } - case 10: { + case 10: { message.audit = $root.Records.RecordAudit.decode(reader, reader.uint32()); break; } - case 11: { + case 11: { message.securityData = $root.Records.SecurityData.decode(reader, reader.uint32()); break; } - case 12: { + case 12: { message.securityScoreData = $root.Records.SecurityScoreData.decode(reader, reader.uint32()); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -174792,8 +181779,7 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RecordAdd.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -174806,61 +181792,87 @@ export const Records = $root.Records = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ RecordAdd.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) - return "recordUid: buffer expected"; - if (message.recordKey != null && message.hasOwnProperty("recordKey")) - if (!(message.recordKey && typeof message.recordKey.length === "number" || $util.isString(message.recordKey))) - return "recordKey: buffer expected"; - if (message.clientModifiedTime != null && message.hasOwnProperty("clientModifiedTime")) - if (!$util.isInteger(message.clientModifiedTime) && !(message.clientModifiedTime && $util.isInteger(message.clientModifiedTime.low) && $util.isInteger(message.clientModifiedTime.high))) - return "clientModifiedTime: integer|Long expected"; - if (message.data != null && message.hasOwnProperty("data")) - if (!(message.data && typeof message.data.length === "number" || $util.isString(message.data))) - return "data: buffer expected"; - if (message.nonSharedData != null && message.hasOwnProperty("nonSharedData")) - if (!(message.nonSharedData && typeof message.nonSharedData.length === "number" || $util.isString(message.nonSharedData))) - return "nonSharedData: buffer expected"; - if (message.folderType != null && message.hasOwnProperty("folderType")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.recordUid != null && message.hasOwnProperty('recordUid')) + if ( + !( + (message.recordUid && typeof message.recordUid.length === 'number') || + $util.isString(message.recordUid) + ) + ) + return 'recordUid: buffer expected'; + if (message.recordKey != null && message.hasOwnProperty('recordKey')) + if ( + !( + (message.recordKey && typeof message.recordKey.length === 'number') || + $util.isString(message.recordKey) + ) + ) + return 'recordKey: buffer expected'; + if (message.clientModifiedTime != null && message.hasOwnProperty('clientModifiedTime')) + if ( + !$util.isInteger(message.clientModifiedTime) && + !( + message.clientModifiedTime && + $util.isInteger(message.clientModifiedTime.low) && + $util.isInteger(message.clientModifiedTime.high) + ) + ) + return 'clientModifiedTime: integer|Long expected'; + if (message.data != null && message.hasOwnProperty('data')) + if (!((message.data && typeof message.data.length === 'number') || $util.isString(message.data))) + return 'data: buffer expected'; + if (message.nonSharedData != null && message.hasOwnProperty('nonSharedData')) + if ( + !( + (message.nonSharedData && typeof message.nonSharedData.length === 'number') || + $util.isString(message.nonSharedData) + ) + ) + return 'nonSharedData: buffer expected'; + if (message.folderType != null && message.hasOwnProperty('folderType')) switch (message.folderType) { - default: - return "folderType: enum value expected"; - case 0: - case 1: - case 2: - break; + default: + return 'folderType: enum value expected'; + case 0: + case 1: + case 2: + break; } - if (message.folderUid != null && message.hasOwnProperty("folderUid")) - if (!(message.folderUid && typeof message.folderUid.length === "number" || $util.isString(message.folderUid))) - return "folderUid: buffer expected"; - if (message.folderKey != null && message.hasOwnProperty("folderKey")) - if (!(message.folderKey && typeof message.folderKey.length === "number" || $util.isString(message.folderKey))) - return "folderKey: buffer expected"; - if (message.recordLinks != null && message.hasOwnProperty("recordLinks")) { - if (!Array.isArray(message.recordLinks)) - return "recordLinks: array expected"; + if (message.folderUid != null && message.hasOwnProperty('folderUid')) + if ( + !( + (message.folderUid && typeof message.folderUid.length === 'number') || + $util.isString(message.folderUid) + ) + ) + return 'folderUid: buffer expected'; + if (message.folderKey != null && message.hasOwnProperty('folderKey')) + if ( + !( + (message.folderKey && typeof message.folderKey.length === 'number') || + $util.isString(message.folderKey) + ) + ) + return 'folderKey: buffer expected'; + if (message.recordLinks != null && message.hasOwnProperty('recordLinks')) { + if (!Array.isArray(message.recordLinks)) return 'recordLinks: array expected'; for (let i = 0; i < message.recordLinks.length; ++i) { let error = $root.Records.RecordLink.verify(message.recordLinks[i]); - if (error) - return "recordLinks." + error; + if (error) return 'recordLinks.' + error; } } - if (message.audit != null && message.hasOwnProperty("audit")) { + if (message.audit != null && message.hasOwnProperty('audit')) { let error = $root.Records.RecordAudit.verify(message.audit); - if (error) - return "audit." + error; + if (error) return 'audit.' + error; } - if (message.securityData != null && message.hasOwnProperty("securityData")) { + if (message.securityData != null && message.hasOwnProperty('securityData')) { let error = $root.Records.SecurityData.verify(message.securityData); - if (error) - return "securityData." + error; + if (error) return 'securityData.' + error; } - if (message.securityScoreData != null && message.hasOwnProperty("securityScoreData")) { + if (message.securityScoreData != null && message.hasOwnProperty('securityScoreData')) { let error = $root.Records.SecurityScoreData.verify(message.securityScoreData); - if (error) - return "securityScoreData." + error; + if (error) return 'securityScoreData.' + error; } return null; }; @@ -174874,91 +181886,110 @@ export const Records = $root.Records = (() => { * @returns {Records.RecordAdd} RecordAdd */ RecordAdd.fromObject = function fromObject(object) { - if (object instanceof $root.Records.RecordAdd) - return object; + if (object instanceof $root.Records.RecordAdd) return object; let message = new $root.Records.RecordAdd(); 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 (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.recordKey != null) - if (typeof object.recordKey === "string") - $util.base64.decode(object.recordKey, message.recordKey = $util.newBuffer($util.base64.length(object.recordKey)), 0); - else if (object.recordKey.length >= 0) - message.recordKey = object.recordKey; + if (typeof object.recordKey === 'string') + $util.base64.decode( + object.recordKey, + (message.recordKey = $util.newBuffer($util.base64.length(object.recordKey))), + 0 + ); + else if (object.recordKey.length >= 0) message.recordKey = object.recordKey; if (object.clientModifiedTime != null) if ($util.Long) (message.clientModifiedTime = $util.Long.fromValue(object.clientModifiedTime)).unsigned = false; - else if (typeof object.clientModifiedTime === "string") + else if (typeof object.clientModifiedTime === 'string') message.clientModifiedTime = parseInt(object.clientModifiedTime, 10); - else if (typeof object.clientModifiedTime === "number") + else if (typeof object.clientModifiedTime === 'number') message.clientModifiedTime = object.clientModifiedTime; - else if (typeof object.clientModifiedTime === "object") - message.clientModifiedTime = new $util.LongBits(object.clientModifiedTime.low >>> 0, object.clientModifiedTime.high >>> 0).toNumber(); + else if (typeof object.clientModifiedTime === 'object') + message.clientModifiedTime = new $util.LongBits( + object.clientModifiedTime.low >>> 0, + object.clientModifiedTime.high >>> 0 + ).toNumber(); if (object.data != null) - if (typeof object.data === "string") - $util.base64.decode(object.data, message.data = $util.newBuffer($util.base64.length(object.data)), 0); - else if (object.data.length >= 0) - message.data = object.data; + if (typeof object.data === 'string') + $util.base64.decode( + object.data, + (message.data = $util.newBuffer($util.base64.length(object.data))), + 0 + ); + else if (object.data.length >= 0) message.data = object.data; if (object.nonSharedData != null) - if (typeof object.nonSharedData === "string") - $util.base64.decode(object.nonSharedData, message.nonSharedData = $util.newBuffer($util.base64.length(object.nonSharedData)), 0); - else if (object.nonSharedData.length >= 0) - message.nonSharedData = object.nonSharedData; + if (typeof object.nonSharedData === 'string') + $util.base64.decode( + object.nonSharedData, + (message.nonSharedData = $util.newBuffer($util.base64.length(object.nonSharedData))), + 0 + ); + else if (object.nonSharedData.length >= 0) message.nonSharedData = object.nonSharedData; switch (object.folderType) { - default: - if (typeof object.folderType === "number") { - message.folderType = object.folderType; - break; - } - break; - case "user_folder": - case 0: - message.folderType = 0; - break; - case "shared_folder": - case 1: - message.folderType = 1; - break; - case "shared_folder_folder": - case 2: - message.folderType = 2; - break; + default: + if (typeof object.folderType === 'number') { + message.folderType = object.folderType; + break; + } + break; + case 'user_folder': + case 0: + message.folderType = 0; + break; + case 'shared_folder': + case 1: + message.folderType = 1; + break; + case 'shared_folder_folder': + case 2: + message.folderType = 2; + break; } 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 (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.folderKey != null) - if (typeof object.folderKey === "string") - $util.base64.decode(object.folderKey, message.folderKey = $util.newBuffer($util.base64.length(object.folderKey)), 0); - else if (object.folderKey.length >= 0) - message.folderKey = object.folderKey; + if (typeof object.folderKey === 'string') + $util.base64.decode( + object.folderKey, + (message.folderKey = $util.newBuffer($util.base64.length(object.folderKey))), + 0 + ); + else if (object.folderKey.length >= 0) message.folderKey = object.folderKey; if (object.recordLinks) { if (!Array.isArray(object.recordLinks)) - throw TypeError(".Records.RecordAdd.recordLinks: array expected"); + throw TypeError('.Records.RecordAdd.recordLinks: array expected'); message.recordLinks = []; for (let i = 0; i < object.recordLinks.length; ++i) { - if (typeof object.recordLinks[i] !== "object") - throw TypeError(".Records.RecordAdd.recordLinks: object expected"); + if (typeof object.recordLinks[i] !== 'object') + throw TypeError('.Records.RecordAdd.recordLinks: object expected'); message.recordLinks[i] = $root.Records.RecordLink.fromObject(object.recordLinks[i]); } } if (object.audit != null) { - if (typeof object.audit !== "object") - throw TypeError(".Records.RecordAdd.audit: object expected"); + if (typeof object.audit !== 'object') throw TypeError('.Records.RecordAdd.audit: object expected'); message.audit = $root.Records.RecordAudit.fromObject(object.audit); } if (object.securityData != null) { - if (typeof object.securityData !== "object") - throw TypeError(".Records.RecordAdd.securityData: object expected"); + if (typeof object.securityData !== 'object') + throw TypeError('.Records.RecordAdd.securityData: object expected'); message.securityData = $root.Records.SecurityData.fromObject(object.securityData); } if (object.securityScoreData != null) { - if (typeof object.securityScoreData !== "object") - throw TypeError(".Records.RecordAdd.securityScoreData: object expected"); + if (typeof object.securityScoreData !== 'object') + throw TypeError('.Records.RecordAdd.securityScoreData: object expected'); message.securityScoreData = $root.Records.SecurityScoreData.fromObject(object.securityScoreData); } return message; @@ -174974,93 +182005,123 @@ export const Records = $root.Records = (() => { * @returns {Object.} Plain object */ RecordAdd.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.recordLinks = []; + if (options.arrays || options.defaults) object.recordLinks = []; if (options.defaults) { - if (options.bytes === String) - object.recordUid = ""; + if (options.bytes === String) object.recordUid = ''; else { object.recordUid = []; - if (options.bytes !== Array) - object.recordUid = $util.newBuffer(object.recordUid); + if (options.bytes !== Array) object.recordUid = $util.newBuffer(object.recordUid); } - if (options.bytes === String) - object.recordKey = ""; + if (options.bytes === String) object.recordKey = ''; else { object.recordKey = []; - if (options.bytes !== Array) - object.recordKey = $util.newBuffer(object.recordKey); + if (options.bytes !== Array) object.recordKey = $util.newBuffer(object.recordKey); } if ($util.Long) { let long = new $util.Long(0, 0, false); - object.clientModifiedTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.clientModifiedTime = options.longs === String ? "0" : 0; - if (options.bytes === String) - object.data = ""; + object.clientModifiedTime = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.clientModifiedTime = options.longs === String ? '0' : 0; + if (options.bytes === String) object.data = ''; else { object.data = []; - if (options.bytes !== Array) - object.data = $util.newBuffer(object.data); + if (options.bytes !== Array) object.data = $util.newBuffer(object.data); } - if (options.bytes === String) - object.nonSharedData = ""; + if (options.bytes === String) object.nonSharedData = ''; else { object.nonSharedData = []; - if (options.bytes !== Array) - object.nonSharedData = $util.newBuffer(object.nonSharedData); + if (options.bytes !== Array) object.nonSharedData = $util.newBuffer(object.nonSharedData); } - object.folderType = options.enums === String ? "user_folder" : 0; - if (options.bytes === String) - object.folderUid = ""; + object.folderType = options.enums === String ? 'user_folder' : 0; + if (options.bytes === String) object.folderUid = ''; else { object.folderUid = []; - if (options.bytes !== Array) - object.folderUid = $util.newBuffer(object.folderUid); + if (options.bytes !== Array) object.folderUid = $util.newBuffer(object.folderUid); } - if (options.bytes === String) - object.folderKey = ""; + if (options.bytes === String) object.folderKey = ''; else { object.folderKey = []; - if (options.bytes !== Array) - object.folderKey = $util.newBuffer(object.folderKey); + if (options.bytes !== Array) object.folderKey = $util.newBuffer(object.folderKey); } object.audit = null; object.securityData = null; object.securityScoreData = null; } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; - if (message.recordKey != null && message.hasOwnProperty("recordKey")) - object.recordKey = options.bytes === String ? $util.base64.encode(message.recordKey, 0, message.recordKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordKey) : message.recordKey; - if (message.clientModifiedTime != null && message.hasOwnProperty("clientModifiedTime")) - if (typeof message.clientModifiedTime === "number") - object.clientModifiedTime = options.longs === String ? String(message.clientModifiedTime) : message.clientModifiedTime; + if (message.recordUid != null && message.hasOwnProperty('recordUid')) + object.recordUid = + options.bytes === String + ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.recordUid) + : message.recordUid; + if (message.recordKey != null && message.hasOwnProperty('recordKey')) + object.recordKey = + options.bytes === String + ? $util.base64.encode(message.recordKey, 0, message.recordKey.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.recordKey) + : message.recordKey; + if (message.clientModifiedTime != null && message.hasOwnProperty('clientModifiedTime')) + if (typeof message.clientModifiedTime === 'number') + object.clientModifiedTime = + options.longs === String ? String(message.clientModifiedTime) : message.clientModifiedTime; else - object.clientModifiedTime = options.longs === String ? $util.Long.prototype.toString.call(message.clientModifiedTime) : options.longs === Number ? new $util.LongBits(message.clientModifiedTime.low >>> 0, message.clientModifiedTime.high >>> 0).toNumber() : message.clientModifiedTime; - if (message.data != null && message.hasOwnProperty("data")) - object.data = options.bytes === String ? $util.base64.encode(message.data, 0, message.data.length) : options.bytes === Array ? Array.prototype.slice.call(message.data) : message.data; - if (message.nonSharedData != null && message.hasOwnProperty("nonSharedData")) - object.nonSharedData = options.bytes === String ? $util.base64.encode(message.nonSharedData, 0, message.nonSharedData.length) : options.bytes === Array ? Array.prototype.slice.call(message.nonSharedData) : message.nonSharedData; - if (message.folderType != null && message.hasOwnProperty("folderType")) - object.folderType = options.enums === String ? $root.Records.RecordFolderType[message.folderType] === undefined ? message.folderType : $root.Records.RecordFolderType[message.folderType] : message.folderType; - if (message.folderUid != null && message.hasOwnProperty("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.folderKey != null && message.hasOwnProperty("folderKey")) - object.folderKey = options.bytes === String ? $util.base64.encode(message.folderKey, 0, message.folderKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.folderKey) : message.folderKey; + object.clientModifiedTime = + options.longs === String + ? $util.Long.prototype.toString.call(message.clientModifiedTime) + : options.longs === Number + ? new $util.LongBits( + message.clientModifiedTime.low >>> 0, + message.clientModifiedTime.high >>> 0 + ).toNumber() + : message.clientModifiedTime; + if (message.data != null && message.hasOwnProperty('data')) + object.data = + options.bytes === String + ? $util.base64.encode(message.data, 0, message.data.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.data) + : message.data; + if (message.nonSharedData != null && message.hasOwnProperty('nonSharedData')) + object.nonSharedData = + options.bytes === String + ? $util.base64.encode(message.nonSharedData, 0, message.nonSharedData.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.nonSharedData) + : message.nonSharedData; + if (message.folderType != null && message.hasOwnProperty('folderType')) + object.folderType = + options.enums === String + ? $root.Records.RecordFolderType[message.folderType] === undefined + ? message.folderType + : $root.Records.RecordFolderType[message.folderType] + : message.folderType; + if (message.folderUid != null && message.hasOwnProperty('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.folderKey != null && message.hasOwnProperty('folderKey')) + object.folderKey = + options.bytes === String + ? $util.base64.encode(message.folderKey, 0, message.folderKey.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.folderKey) + : message.folderKey; if (message.recordLinks && message.recordLinks.length) { object.recordLinks = []; for (let j = 0; j < message.recordLinks.length; ++j) object.recordLinks[j] = $root.Records.RecordLink.toObject(message.recordLinks[j], options); } - if (message.audit != null && message.hasOwnProperty("audit")) + if (message.audit != null && message.hasOwnProperty('audit')) object.audit = $root.Records.RecordAudit.toObject(message.audit, options); - if (message.securityData != null && message.hasOwnProperty("securityData")) + if (message.securityData != null && message.hasOwnProperty('securityData')) object.securityData = $root.Records.SecurityData.toObject(message.securityData, options); - if (message.securityScoreData != null && message.hasOwnProperty("securityScoreData")) + if (message.securityScoreData != null && message.hasOwnProperty('securityScoreData')) object.securityScoreData = $root.Records.SecurityScoreData.toObject(message.securityScoreData, options); return object; }; @@ -175086,16 +182147,15 @@ export const Records = $root.Records = (() => { */ RecordAdd.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Records.RecordAdd"; + return typeUrlPrefix + '/Records.RecordAdd'; }; return RecordAdd; })(); - Records.RecordsAddRequest = (function() { - + Records.RecordsAddRequest = (function () { /** * Properties of a RecordsAddRequest. * @memberof Records @@ -175117,8 +182177,7 @@ export const Records = $root.Records = (() => { this.records = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -175135,7 +182194,7 @@ export const Records = $root.Records = (() => { * @memberof Records.RecordsAddRequest * @instance */ - RecordsAddRequest.prototype.clientTime = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + RecordsAddRequest.prototype.clientTime = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * RecordsAddRequest securityDataKeyType. @@ -175167,15 +182226,17 @@ export const Records = $root.Records = (() => { * @returns {$protobuf.Writer} Writer */ RecordsAddRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.records != null && message.records.length) for (let i = 0; i < message.records.length; ++i) - $root.Records.RecordAdd.encode(message.records[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.clientTime != null && Object.hasOwnProperty.call(message, "clientTime")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.clientTime); - if (message.securityDataKeyType != null && Object.hasOwnProperty.call(message, "securityDataKeyType")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.securityDataKeyType); + $root.Records.RecordAdd.encode( + message.records[i], + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); + if (message.clientTime != null && Object.hasOwnProperty.call(message, 'clientTime')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int64(message.clientTime); + if (message.securityDataKeyType != null && Object.hasOwnProperty.call(message, 'securityDataKeyType')) + writer.uint32(/* id 3, wireType 0 =*/ 24).int32(message.securityDataKeyType); return writer; }; @@ -175204,29 +182265,28 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RecordsAddRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordsAddRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Records.RecordsAddRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (!(message.records && message.records.length)) - message.records = []; + case 1: { + if (!(message.records && message.records.length)) message.records = []; message.records.push($root.Records.RecordAdd.decode(reader, reader.uint32())); break; } - case 2: { + case 2: { message.clientTime = reader.int64(); break; } - case 3: { + case 3: { message.securityDataKeyType = reader.int32(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -175243,8 +182303,7 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RecordsAddRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -175257,32 +182316,36 @@ export const Records = $root.Records = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ RecordsAddRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.records != null && message.hasOwnProperty("records")) { - if (!Array.isArray(message.records)) - return "records: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.records != null && message.hasOwnProperty('records')) { + if (!Array.isArray(message.records)) return 'records: array expected'; for (let i = 0; i < message.records.length; ++i) { let error = $root.Records.RecordAdd.verify(message.records[i]); - if (error) - return "records." + error; - } - } - if (message.clientTime != null && message.hasOwnProperty("clientTime")) - if (!$util.isInteger(message.clientTime) && !(message.clientTime && $util.isInteger(message.clientTime.low) && $util.isInteger(message.clientTime.high))) - return "clientTime: integer|Long expected"; - if (message.securityDataKeyType != null && message.hasOwnProperty("securityDataKeyType")) + if (error) return 'records.' + error; + } + } + if (message.clientTime != null && message.hasOwnProperty('clientTime')) + if ( + !$util.isInteger(message.clientTime) && + !( + message.clientTime && + $util.isInteger(message.clientTime.low) && + $util.isInteger(message.clientTime.high) + ) + ) + return 'clientTime: integer|Long expected'; + if (message.securityDataKeyType != null && message.hasOwnProperty('securityDataKeyType')) switch (message.securityDataKeyType) { - default: - return "securityDataKeyType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - break; + default: + return 'securityDataKeyType: enum value expected'; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + break; } return null; }; @@ -175296,63 +182359,62 @@ export const Records = $root.Records = (() => { * @returns {Records.RecordsAddRequest} RecordsAddRequest */ RecordsAddRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Records.RecordsAddRequest) - return object; + if (object instanceof $root.Records.RecordsAddRequest) return object; let message = new $root.Records.RecordsAddRequest(); if (object.records) { if (!Array.isArray(object.records)) - throw TypeError(".Records.RecordsAddRequest.records: array expected"); + throw TypeError('.Records.RecordsAddRequest.records: array expected'); message.records = []; for (let i = 0; i < object.records.length; ++i) { - if (typeof object.records[i] !== "object") - throw TypeError(".Records.RecordsAddRequest.records: object expected"); + if (typeof object.records[i] !== 'object') + throw TypeError('.Records.RecordsAddRequest.records: object expected'); message.records[i] = $root.Records.RecordAdd.fromObject(object.records[i]); } } if (object.clientTime != null) - if ($util.Long) - (message.clientTime = $util.Long.fromValue(object.clientTime)).unsigned = 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 ($util.Long) (message.clientTime = $util.Long.fromValue(object.clientTime)).unsigned = 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(); switch (object.securityDataKeyType) { - default: - if (typeof object.securityDataKeyType === "number") { - message.securityDataKeyType = object.securityDataKeyType; - break; - } - break; - case "NO_KEY": - case 0: - message.securityDataKeyType = 0; - break; - case "ENCRYPTED_BY_DATA_KEY": - case 1: - message.securityDataKeyType = 1; - break; - case "ENCRYPTED_BY_PUBLIC_KEY": - case 2: - message.securityDataKeyType = 2; - break; - case "ENCRYPTED_BY_DATA_KEY_GCM": - case 3: - message.securityDataKeyType = 3; - break; - case "ENCRYPTED_BY_PUBLIC_KEY_ECC": - case 4: - message.securityDataKeyType = 4; - break; - case "ENCRYPTED_BY_ROOT_KEY_CBC": - case 5: - message.securityDataKeyType = 5; - break; - case "ENCRYPTED_BY_ROOT_KEY_GCM": - case 6: - message.securityDataKeyType = 6; - break; + default: + if (typeof object.securityDataKeyType === 'number') { + message.securityDataKeyType = object.securityDataKeyType; + break; + } + break; + case 'NO_KEY': + case 0: + message.securityDataKeyType = 0; + break; + case 'ENCRYPTED_BY_DATA_KEY': + case 1: + message.securityDataKeyType = 1; + break; + case 'ENCRYPTED_BY_PUBLIC_KEY': + case 2: + message.securityDataKeyType = 2; + break; + case 'ENCRYPTED_BY_DATA_KEY_GCM': + case 3: + message.securityDataKeyType = 3; + break; + case 'ENCRYPTED_BY_PUBLIC_KEY_ECC': + case 4: + message.securityDataKeyType = 4; + break; + case 'ENCRYPTED_BY_ROOT_KEY_CBC': + case 5: + message.securityDataKeyType = 5; + break; + case 'ENCRYPTED_BY_ROOT_KEY_GCM': + case 6: + message.securityDataKeyType = 6; + break; } return message; }; @@ -175367,31 +182429,42 @@ export const Records = $root.Records = (() => { * @returns {Object.} Plain object */ RecordsAddRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.records = []; + if (options.arrays || options.defaults) object.records = []; 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() : long; - } else - object.clientTime = options.longs === String ? "0" : 0; - object.securityDataKeyType = options.enums === String ? "NO_KEY" : 0; + object.clientTime = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.clientTime = options.longs === String ? '0' : 0; + object.securityDataKeyType = options.enums === String ? 'NO_KEY' : 0; } if (message.records && message.records.length) { object.records = []; for (let j = 0; j < message.records.length; ++j) object.records[j] = $root.Records.RecordAdd.toObject(message.records[j], options); } - if (message.clientTime != null && message.hasOwnProperty("clientTime")) - if (typeof message.clientTime === "number") + if (message.clientTime != null && message.hasOwnProperty('clientTime')) + 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.securityDataKeyType != null && message.hasOwnProperty("securityDataKeyType")) - object.securityDataKeyType = options.enums === String ? $root.Records.RecordKeyType[message.securityDataKeyType] === undefined ? message.securityDataKeyType : $root.Records.RecordKeyType[message.securityDataKeyType] : message.securityDataKeyType; + 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.securityDataKeyType != null && message.hasOwnProperty('securityDataKeyType')) + object.securityDataKeyType = + options.enums === String + ? $root.Records.RecordKeyType[message.securityDataKeyType] === undefined + ? message.securityDataKeyType + : $root.Records.RecordKeyType[message.securityDataKeyType] + : message.securityDataKeyType; return object; }; @@ -175416,16 +182489,15 @@ export const Records = $root.Records = (() => { */ RecordsAddRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Records.RecordsAddRequest"; + return typeUrlPrefix + '/Records.RecordsAddRequest'; }; return RecordsAddRequest; })(); - Records.RecordUpdate = (function() { - + Records.RecordUpdate = (function () { /** * Properties of a RecordUpdate. * @memberof Records @@ -175455,8 +182527,7 @@ export const Records = $root.Records = (() => { this.recordLinksRemove = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -175473,7 +182544,7 @@ export const Records = $root.Records = (() => { * @memberof Records.RecordUpdate * @instance */ - RecordUpdate.prototype.clientModifiedTime = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + RecordUpdate.prototype.clientModifiedTime = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * RecordUpdate revision. @@ -175481,7 +182552,7 @@ export const Records = $root.Records = (() => { * @memberof Records.RecordUpdate * @instance */ - RecordUpdate.prototype.revision = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + RecordUpdate.prototype.revision = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * RecordUpdate data. @@ -175561,30 +182632,41 @@ export const Records = $root.Records = (() => { * @returns {$protobuf.Writer} Writer */ RecordUpdate.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); - if (message.clientModifiedTime != null && Object.hasOwnProperty.call(message, "clientModifiedTime")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.clientModifiedTime); - if (message.revision != null && Object.hasOwnProperty.call(message, "revision")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.revision); - if (message.data != null && Object.hasOwnProperty.call(message, "data")) - writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.data); - if (message.nonSharedData != null && Object.hasOwnProperty.call(message, "nonSharedData")) - writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.nonSharedData); + if (!writer) writer = $Writer.create(); + if (message.recordUid != null && Object.hasOwnProperty.call(message, 'recordUid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.recordUid); + if (message.clientModifiedTime != null && Object.hasOwnProperty.call(message, 'clientModifiedTime')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int64(message.clientModifiedTime); + if (message.revision != null && Object.hasOwnProperty.call(message, 'revision')) + writer.uint32(/* id 3, wireType 0 =*/ 24).int64(message.revision); + if (message.data != null && Object.hasOwnProperty.call(message, 'data')) + writer.uint32(/* id 4, wireType 2 =*/ 34).bytes(message.data); + if (message.nonSharedData != null && Object.hasOwnProperty.call(message, 'nonSharedData')) + writer.uint32(/* id 5, wireType 2 =*/ 42).bytes(message.nonSharedData); if (message.recordLinksAdd != null && message.recordLinksAdd.length) for (let i = 0; i < message.recordLinksAdd.length; ++i) - $root.Records.RecordLink.encode(message.recordLinksAdd[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + $root.Records.RecordLink.encode( + message.recordLinksAdd[i], + writer.uint32(/* id 6, wireType 2 =*/ 50).fork() + ).ldelim(); if (message.recordLinksRemove != null && message.recordLinksRemove.length) for (let i = 0; i < message.recordLinksRemove.length; ++i) - writer.uint32(/* id 7, wireType 2 =*/58).bytes(message.recordLinksRemove[i]); - if (message.audit != null && Object.hasOwnProperty.call(message, "audit")) - $root.Records.RecordAudit.encode(message.audit, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.securityData != null && Object.hasOwnProperty.call(message, "securityData")) - $root.Records.SecurityData.encode(message.securityData, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); - if (message.securityScoreData != null && Object.hasOwnProperty.call(message, "securityScoreData")) - $root.Records.SecurityScoreData.encode(message.securityScoreData, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + writer.uint32(/* id 7, wireType 2 =*/ 58).bytes(message.recordLinksRemove[i]); + if (message.audit != null && Object.hasOwnProperty.call(message, 'audit')) + $root.Records.RecordAudit.encode( + message.audit, + writer.uint32(/* id 8, wireType 2 =*/ 66).fork() + ).ldelim(); + if (message.securityData != null && Object.hasOwnProperty.call(message, 'securityData')) + $root.Records.SecurityData.encode( + message.securityData, + writer.uint32(/* id 9, wireType 2 =*/ 74).fork() + ).ldelim(); + if (message.securityScoreData != null && Object.hasOwnProperty.call(message, 'securityScoreData')) + $root.Records.SecurityScoreData.encode( + message.securityScoreData, + writer.uint32(/* id 10, wireType 2 =*/ 82).fork() + ).ldelim(); return writer; }; @@ -175613,59 +182695,58 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RecordUpdate.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordUpdate(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Records.RecordUpdate(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.recordUid = reader.bytes(); break; } - case 2: { + case 2: { message.clientModifiedTime = reader.int64(); break; } - case 3: { + case 3: { message.revision = reader.int64(); break; } - case 4: { + case 4: { message.data = reader.bytes(); break; } - case 5: { + case 5: { message.nonSharedData = reader.bytes(); break; } - case 6: { - if (!(message.recordLinksAdd && message.recordLinksAdd.length)) - message.recordLinksAdd = []; + case 6: { + if (!(message.recordLinksAdd && message.recordLinksAdd.length)) message.recordLinksAdd = []; message.recordLinksAdd.push($root.Records.RecordLink.decode(reader, reader.uint32())); break; } - case 7: { + case 7: { if (!(message.recordLinksRemove && message.recordLinksRemove.length)) message.recordLinksRemove = []; message.recordLinksRemove.push(reader.bytes()); break; } - case 8: { + case 8: { message.audit = $root.Records.RecordAudit.decode(reader, reader.uint32()); break; } - case 9: { + case 9: { message.securityData = $root.Records.SecurityData.decode(reader, reader.uint32()); break; } - case 10: { + case 10: { message.securityScoreData = $root.Records.SecurityScoreData.decode(reader, reader.uint32()); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -175682,8 +182763,7 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RecordUpdate.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -175696,53 +182776,75 @@ export const Records = $root.Records = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ RecordUpdate.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) - return "recordUid: buffer expected"; - if (message.clientModifiedTime != null && message.hasOwnProperty("clientModifiedTime")) - if (!$util.isInteger(message.clientModifiedTime) && !(message.clientModifiedTime && $util.isInteger(message.clientModifiedTime.low) && $util.isInteger(message.clientModifiedTime.high))) - return "clientModifiedTime: integer|Long expected"; - if (message.revision != null && message.hasOwnProperty("revision")) - if (!$util.isInteger(message.revision) && !(message.revision && $util.isInteger(message.revision.low) && $util.isInteger(message.revision.high))) - return "revision: integer|Long expected"; - if (message.data != null && message.hasOwnProperty("data")) - if (!(message.data && typeof message.data.length === "number" || $util.isString(message.data))) - return "data: buffer expected"; - if (message.nonSharedData != null && message.hasOwnProperty("nonSharedData")) - if (!(message.nonSharedData && typeof message.nonSharedData.length === "number" || $util.isString(message.nonSharedData))) - return "nonSharedData: buffer expected"; - if (message.recordLinksAdd != null && message.hasOwnProperty("recordLinksAdd")) { - if (!Array.isArray(message.recordLinksAdd)) - return "recordLinksAdd: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.recordUid != null && message.hasOwnProperty('recordUid')) + if ( + !( + (message.recordUid && typeof message.recordUid.length === 'number') || + $util.isString(message.recordUid) + ) + ) + return 'recordUid: buffer expected'; + if (message.clientModifiedTime != null && message.hasOwnProperty('clientModifiedTime')) + if ( + !$util.isInteger(message.clientModifiedTime) && + !( + message.clientModifiedTime && + $util.isInteger(message.clientModifiedTime.low) && + $util.isInteger(message.clientModifiedTime.high) + ) + ) + return 'clientModifiedTime: integer|Long expected'; + if (message.revision != null && message.hasOwnProperty('revision')) + if ( + !$util.isInteger(message.revision) && + !( + message.revision && + $util.isInteger(message.revision.low) && + $util.isInteger(message.revision.high) + ) + ) + return 'revision: integer|Long expected'; + if (message.data != null && message.hasOwnProperty('data')) + if (!((message.data && typeof message.data.length === 'number') || $util.isString(message.data))) + return 'data: buffer expected'; + if (message.nonSharedData != null && message.hasOwnProperty('nonSharedData')) + if ( + !( + (message.nonSharedData && typeof message.nonSharedData.length === 'number') || + $util.isString(message.nonSharedData) + ) + ) + return 'nonSharedData: buffer expected'; + if (message.recordLinksAdd != null && message.hasOwnProperty('recordLinksAdd')) { + if (!Array.isArray(message.recordLinksAdd)) return 'recordLinksAdd: array expected'; for (let i = 0; i < message.recordLinksAdd.length; ++i) { let error = $root.Records.RecordLink.verify(message.recordLinksAdd[i]); - if (error) - return "recordLinksAdd." + error; + if (error) return 'recordLinksAdd.' + error; } } - if (message.recordLinksRemove != null && message.hasOwnProperty("recordLinksRemove")) { - if (!Array.isArray(message.recordLinksRemove)) - return "recordLinksRemove: array expected"; + if (message.recordLinksRemove != null && message.hasOwnProperty('recordLinksRemove')) { + if (!Array.isArray(message.recordLinksRemove)) return 'recordLinksRemove: array expected'; for (let i = 0; i < message.recordLinksRemove.length; ++i) - if (!(message.recordLinksRemove[i] && typeof message.recordLinksRemove[i].length === "number" || $util.isString(message.recordLinksRemove[i]))) - return "recordLinksRemove: buffer[] expected"; - } - if (message.audit != null && message.hasOwnProperty("audit")) { + if ( + !( + (message.recordLinksRemove[i] && typeof message.recordLinksRemove[i].length === 'number') || + $util.isString(message.recordLinksRemove[i]) + ) + ) + return 'recordLinksRemove: buffer[] expected'; + } + if (message.audit != null && message.hasOwnProperty('audit')) { let error = $root.Records.RecordAudit.verify(message.audit); - if (error) - return "audit." + error; + if (error) return 'audit.' + error; } - if (message.securityData != null && message.hasOwnProperty("securityData")) { + if (message.securityData != null && message.hasOwnProperty('securityData')) { let error = $root.Records.SecurityData.verify(message.securityData); - if (error) - return "securityData." + error; + if (error) return 'securityData.' + error; } - if (message.securityScoreData != null && message.hasOwnProperty("securityScoreData")) { + if (message.securityScoreData != null && message.hasOwnProperty('securityScoreData')) { let error = $root.Records.SecurityScoreData.verify(message.securityScoreData); - if (error) - return "securityScoreData." + error; + if (error) return 'securityScoreData.' + error; } return null; }; @@ -175756,75 +182858,91 @@ export const Records = $root.Records = (() => { * @returns {Records.RecordUpdate} RecordUpdate */ RecordUpdate.fromObject = function fromObject(object) { - if (object instanceof $root.Records.RecordUpdate) - return object; + if (object instanceof $root.Records.RecordUpdate) return object; let message = new $root.Records.RecordUpdate(); 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 (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.clientModifiedTime != null) if ($util.Long) (message.clientModifiedTime = $util.Long.fromValue(object.clientModifiedTime)).unsigned = false; - else if (typeof object.clientModifiedTime === "string") + else if (typeof object.clientModifiedTime === 'string') message.clientModifiedTime = parseInt(object.clientModifiedTime, 10); - else if (typeof object.clientModifiedTime === "number") + else if (typeof object.clientModifiedTime === 'number') message.clientModifiedTime = object.clientModifiedTime; - else if (typeof object.clientModifiedTime === "object") - message.clientModifiedTime = new $util.LongBits(object.clientModifiedTime.low >>> 0, object.clientModifiedTime.high >>> 0).toNumber(); + else if (typeof object.clientModifiedTime === 'object') + message.clientModifiedTime = new $util.LongBits( + object.clientModifiedTime.low >>> 0, + object.clientModifiedTime.high >>> 0 + ).toNumber(); if (object.revision != null) - if ($util.Long) - (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; - else if (typeof object.revision === "string") - message.revision = parseInt(object.revision, 10); - else if (typeof object.revision === "number") - message.revision = object.revision; - else if (typeof object.revision === "object") - message.revision = new $util.LongBits(object.revision.low >>> 0, object.revision.high >>> 0).toNumber(); + if ($util.Long) (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; + else if (typeof object.revision === 'string') message.revision = parseInt(object.revision, 10); + else if (typeof object.revision === 'number') message.revision = object.revision; + else if (typeof object.revision === 'object') + message.revision = new $util.LongBits( + object.revision.low >>> 0, + object.revision.high >>> 0 + ).toNumber(); if (object.data != null) - if (typeof object.data === "string") - $util.base64.decode(object.data, message.data = $util.newBuffer($util.base64.length(object.data)), 0); - else if (object.data.length >= 0) - message.data = object.data; + if (typeof object.data === 'string') + $util.base64.decode( + object.data, + (message.data = $util.newBuffer($util.base64.length(object.data))), + 0 + ); + else if (object.data.length >= 0) message.data = object.data; if (object.nonSharedData != null) - if (typeof object.nonSharedData === "string") - $util.base64.decode(object.nonSharedData, message.nonSharedData = $util.newBuffer($util.base64.length(object.nonSharedData)), 0); - else if (object.nonSharedData.length >= 0) - message.nonSharedData = object.nonSharedData; + if (typeof object.nonSharedData === 'string') + $util.base64.decode( + object.nonSharedData, + (message.nonSharedData = $util.newBuffer($util.base64.length(object.nonSharedData))), + 0 + ); + else if (object.nonSharedData.length >= 0) message.nonSharedData = object.nonSharedData; if (object.recordLinksAdd) { if (!Array.isArray(object.recordLinksAdd)) - throw TypeError(".Records.RecordUpdate.recordLinksAdd: array expected"); + throw TypeError('.Records.RecordUpdate.recordLinksAdd: array expected'); message.recordLinksAdd = []; for (let i = 0; i < object.recordLinksAdd.length; ++i) { - if (typeof object.recordLinksAdd[i] !== "object") - throw TypeError(".Records.RecordUpdate.recordLinksAdd: object expected"); + if (typeof object.recordLinksAdd[i] !== 'object') + throw TypeError('.Records.RecordUpdate.recordLinksAdd: object expected'); message.recordLinksAdd[i] = $root.Records.RecordLink.fromObject(object.recordLinksAdd[i]); } } if (object.recordLinksRemove) { if (!Array.isArray(object.recordLinksRemove)) - throw TypeError(".Records.RecordUpdate.recordLinksRemove: array expected"); + throw TypeError('.Records.RecordUpdate.recordLinksRemove: array expected'); message.recordLinksRemove = []; for (let i = 0; i < object.recordLinksRemove.length; ++i) - if (typeof object.recordLinksRemove[i] === "string") - $util.base64.decode(object.recordLinksRemove[i], message.recordLinksRemove[i] = $util.newBuffer($util.base64.length(object.recordLinksRemove[i])), 0); + if (typeof object.recordLinksRemove[i] === 'string') + $util.base64.decode( + object.recordLinksRemove[i], + (message.recordLinksRemove[i] = $util.newBuffer( + $util.base64.length(object.recordLinksRemove[i]) + )), + 0 + ); else if (object.recordLinksRemove[i].length >= 0) message.recordLinksRemove[i] = object.recordLinksRemove[i]; } if (object.audit != null) { - if (typeof object.audit !== "object") - throw TypeError(".Records.RecordUpdate.audit: object expected"); + if (typeof object.audit !== 'object') throw TypeError('.Records.RecordUpdate.audit: object expected'); message.audit = $root.Records.RecordAudit.fromObject(object.audit); } if (object.securityData != null) { - if (typeof object.securityData !== "object") - throw TypeError(".Records.RecordUpdate.securityData: object expected"); + if (typeof object.securityData !== 'object') + throw TypeError('.Records.RecordUpdate.securityData: object expected'); message.securityData = $root.Records.SecurityData.fromObject(object.securityData); } if (object.securityScoreData != null) { - if (typeof object.securityScoreData !== "object") - throw TypeError(".Records.RecordUpdate.securityScoreData: object expected"); + if (typeof object.securityScoreData !== 'object') + throw TypeError('.Records.RecordUpdate.securityScoreData: object expected'); message.securityScoreData = $root.Records.SecurityScoreData.fromObject(object.securityScoreData); } return message; @@ -175840,65 +182958,87 @@ export const Records = $root.Records = (() => { * @returns {Object.} Plain object */ RecordUpdate.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.arrays || options.defaults) { object.recordLinksAdd = []; object.recordLinksRemove = []; } if (options.defaults) { - if (options.bytes === String) - object.recordUid = ""; + if (options.bytes === String) object.recordUid = ''; else { object.recordUid = []; - if (options.bytes !== Array) - object.recordUid = $util.newBuffer(object.recordUid); + if (options.bytes !== Array) object.recordUid = $util.newBuffer(object.recordUid); } if ($util.Long) { let long = new $util.Long(0, 0, false); - object.clientModifiedTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.clientModifiedTime = options.longs === String ? "0" : 0; + object.clientModifiedTime = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.clientModifiedTime = options.longs === String ? '0' : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.revision = options.longs === String ? "0" : 0; - if (options.bytes === String) - object.data = ""; + object.revision = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.revision = options.longs === String ? '0' : 0; + if (options.bytes === String) object.data = ''; else { object.data = []; - if (options.bytes !== Array) - object.data = $util.newBuffer(object.data); + if (options.bytes !== Array) object.data = $util.newBuffer(object.data); } - if (options.bytes === String) - object.nonSharedData = ""; + if (options.bytes === String) object.nonSharedData = ''; else { object.nonSharedData = []; - if (options.bytes !== Array) - object.nonSharedData = $util.newBuffer(object.nonSharedData); + if (options.bytes !== Array) object.nonSharedData = $util.newBuffer(object.nonSharedData); } object.audit = null; object.securityData = null; object.securityScoreData = null; } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; - if (message.clientModifiedTime != null && message.hasOwnProperty("clientModifiedTime")) - if (typeof message.clientModifiedTime === "number") - object.clientModifiedTime = options.longs === String ? String(message.clientModifiedTime) : message.clientModifiedTime; + if (message.recordUid != null && message.hasOwnProperty('recordUid')) + object.recordUid = + options.bytes === String + ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.recordUid) + : message.recordUid; + if (message.clientModifiedTime != null && message.hasOwnProperty('clientModifiedTime')) + if (typeof message.clientModifiedTime === 'number') + object.clientModifiedTime = + options.longs === String ? String(message.clientModifiedTime) : message.clientModifiedTime; else - object.clientModifiedTime = options.longs === String ? $util.Long.prototype.toString.call(message.clientModifiedTime) : options.longs === Number ? new $util.LongBits(message.clientModifiedTime.low >>> 0, message.clientModifiedTime.high >>> 0).toNumber() : message.clientModifiedTime; - if (message.revision != null && message.hasOwnProperty("revision")) - if (typeof message.revision === "number") + object.clientModifiedTime = + options.longs === String + ? $util.Long.prototype.toString.call(message.clientModifiedTime) + : options.longs === Number + ? new $util.LongBits( + message.clientModifiedTime.low >>> 0, + message.clientModifiedTime.high >>> 0 + ).toNumber() + : message.clientModifiedTime; + if (message.revision != null && message.hasOwnProperty('revision')) + if (typeof message.revision === 'number') object.revision = options.longs === String ? String(message.revision) : message.revision; else - object.revision = options.longs === String ? $util.Long.prototype.toString.call(message.revision) : options.longs === Number ? new $util.LongBits(message.revision.low >>> 0, message.revision.high >>> 0).toNumber() : message.revision; - if (message.data != null && message.hasOwnProperty("data")) - object.data = options.bytes === String ? $util.base64.encode(message.data, 0, message.data.length) : options.bytes === Array ? Array.prototype.slice.call(message.data) : message.data; - if (message.nonSharedData != null && message.hasOwnProperty("nonSharedData")) - object.nonSharedData = options.bytes === String ? $util.base64.encode(message.nonSharedData, 0, message.nonSharedData.length) : options.bytes === Array ? Array.prototype.slice.call(message.nonSharedData) : message.nonSharedData; + object.revision = + options.longs === String + ? $util.Long.prototype.toString.call(message.revision) + : options.longs === Number + ? new $util.LongBits(message.revision.low >>> 0, message.revision.high >>> 0).toNumber() + : message.revision; + if (message.data != null && message.hasOwnProperty('data')) + object.data = + options.bytes === String + ? $util.base64.encode(message.data, 0, message.data.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.data) + : message.data; + if (message.nonSharedData != null && message.hasOwnProperty('nonSharedData')) + object.nonSharedData = + options.bytes === String + ? $util.base64.encode(message.nonSharedData, 0, message.nonSharedData.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.nonSharedData) + : message.nonSharedData; if (message.recordLinksAdd && message.recordLinksAdd.length) { object.recordLinksAdd = []; for (let j = 0; j < message.recordLinksAdd.length; ++j) @@ -175907,13 +183047,18 @@ export const Records = $root.Records = (() => { if (message.recordLinksRemove && message.recordLinksRemove.length) { object.recordLinksRemove = []; for (let j = 0; j < message.recordLinksRemove.length; ++j) - object.recordLinksRemove[j] = options.bytes === String ? $util.base64.encode(message.recordLinksRemove[j], 0, message.recordLinksRemove[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.recordLinksRemove[j]) : message.recordLinksRemove[j]; - } - if (message.audit != null && message.hasOwnProperty("audit")) + object.recordLinksRemove[j] = + options.bytes === String + ? $util.base64.encode(message.recordLinksRemove[j], 0, message.recordLinksRemove[j].length) + : options.bytes === Array + ? Array.prototype.slice.call(message.recordLinksRemove[j]) + : message.recordLinksRemove[j]; + } + if (message.audit != null && message.hasOwnProperty('audit')) object.audit = $root.Records.RecordAudit.toObject(message.audit, options); - if (message.securityData != null && message.hasOwnProperty("securityData")) + if (message.securityData != null && message.hasOwnProperty('securityData')) object.securityData = $root.Records.SecurityData.toObject(message.securityData, options); - if (message.securityScoreData != null && message.hasOwnProperty("securityScoreData")) + if (message.securityScoreData != null && message.hasOwnProperty('securityScoreData')) object.securityScoreData = $root.Records.SecurityScoreData.toObject(message.securityScoreData, options); return object; }; @@ -175939,16 +183084,15 @@ export const Records = $root.Records = (() => { */ RecordUpdate.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Records.RecordUpdate"; + return typeUrlPrefix + '/Records.RecordUpdate'; }; return RecordUpdate; })(); - Records.RecordsUpdateRequest = (function() { - + Records.RecordsUpdateRequest = (function () { /** * Properties of a RecordsUpdateRequest. * @memberof Records @@ -175970,8 +183114,7 @@ export const Records = $root.Records = (() => { this.records = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -175988,7 +183131,7 @@ export const Records = $root.Records = (() => { * @memberof Records.RecordsUpdateRequest * @instance */ - RecordsUpdateRequest.prototype.clientTime = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + RecordsUpdateRequest.prototype.clientTime = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * RecordsUpdateRequest securityDataKeyType. @@ -176020,15 +183163,17 @@ export const Records = $root.Records = (() => { * @returns {$protobuf.Writer} Writer */ RecordsUpdateRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.records != null && message.records.length) for (let i = 0; i < message.records.length; ++i) - $root.Records.RecordUpdate.encode(message.records[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.clientTime != null && Object.hasOwnProperty.call(message, "clientTime")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.clientTime); - if (message.securityDataKeyType != null && Object.hasOwnProperty.call(message, "securityDataKeyType")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.securityDataKeyType); + $root.Records.RecordUpdate.encode( + message.records[i], + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); + if (message.clientTime != null && Object.hasOwnProperty.call(message, 'clientTime')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int64(message.clientTime); + if (message.securityDataKeyType != null && Object.hasOwnProperty.call(message, 'securityDataKeyType')) + writer.uint32(/* id 3, wireType 0 =*/ 24).int32(message.securityDataKeyType); return writer; }; @@ -176057,29 +183202,28 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RecordsUpdateRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordsUpdateRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Records.RecordsUpdateRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (!(message.records && message.records.length)) - message.records = []; + case 1: { + if (!(message.records && message.records.length)) message.records = []; message.records.push($root.Records.RecordUpdate.decode(reader, reader.uint32())); break; } - case 2: { + case 2: { message.clientTime = reader.int64(); break; } - case 3: { + case 3: { message.securityDataKeyType = reader.int32(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -176096,8 +183240,7 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RecordsUpdateRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -176110,32 +183253,36 @@ export const Records = $root.Records = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ RecordsUpdateRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.records != null && message.hasOwnProperty("records")) { - if (!Array.isArray(message.records)) - return "records: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.records != null && message.hasOwnProperty('records')) { + if (!Array.isArray(message.records)) return 'records: array expected'; for (let i = 0; i < message.records.length; ++i) { let error = $root.Records.RecordUpdate.verify(message.records[i]); - if (error) - return "records." + error; - } - } - if (message.clientTime != null && message.hasOwnProperty("clientTime")) - if (!$util.isInteger(message.clientTime) && !(message.clientTime && $util.isInteger(message.clientTime.low) && $util.isInteger(message.clientTime.high))) - return "clientTime: integer|Long expected"; - if (message.securityDataKeyType != null && message.hasOwnProperty("securityDataKeyType")) + if (error) return 'records.' + error; + } + } + if (message.clientTime != null && message.hasOwnProperty('clientTime')) + if ( + !$util.isInteger(message.clientTime) && + !( + message.clientTime && + $util.isInteger(message.clientTime.low) && + $util.isInteger(message.clientTime.high) + ) + ) + return 'clientTime: integer|Long expected'; + if (message.securityDataKeyType != null && message.hasOwnProperty('securityDataKeyType')) switch (message.securityDataKeyType) { - default: - return "securityDataKeyType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - break; + default: + return 'securityDataKeyType: enum value expected'; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + break; } return null; }; @@ -176149,63 +183296,62 @@ export const Records = $root.Records = (() => { * @returns {Records.RecordsUpdateRequest} RecordsUpdateRequest */ RecordsUpdateRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Records.RecordsUpdateRequest) - return object; + if (object instanceof $root.Records.RecordsUpdateRequest) return object; let message = new $root.Records.RecordsUpdateRequest(); if (object.records) { if (!Array.isArray(object.records)) - throw TypeError(".Records.RecordsUpdateRequest.records: array expected"); + throw TypeError('.Records.RecordsUpdateRequest.records: array expected'); message.records = []; for (let i = 0; i < object.records.length; ++i) { - if (typeof object.records[i] !== "object") - throw TypeError(".Records.RecordsUpdateRequest.records: object expected"); + if (typeof object.records[i] !== 'object') + throw TypeError('.Records.RecordsUpdateRequest.records: object expected'); message.records[i] = $root.Records.RecordUpdate.fromObject(object.records[i]); } } if (object.clientTime != null) - if ($util.Long) - (message.clientTime = $util.Long.fromValue(object.clientTime)).unsigned = 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 ($util.Long) (message.clientTime = $util.Long.fromValue(object.clientTime)).unsigned = 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(); switch (object.securityDataKeyType) { - default: - if (typeof object.securityDataKeyType === "number") { - message.securityDataKeyType = object.securityDataKeyType; - break; - } - break; - case "NO_KEY": - case 0: - message.securityDataKeyType = 0; - break; - case "ENCRYPTED_BY_DATA_KEY": - case 1: - message.securityDataKeyType = 1; - break; - case "ENCRYPTED_BY_PUBLIC_KEY": - case 2: - message.securityDataKeyType = 2; - break; - case "ENCRYPTED_BY_DATA_KEY_GCM": - case 3: - message.securityDataKeyType = 3; - break; - case "ENCRYPTED_BY_PUBLIC_KEY_ECC": - case 4: - message.securityDataKeyType = 4; - break; - case "ENCRYPTED_BY_ROOT_KEY_CBC": - case 5: - message.securityDataKeyType = 5; - break; - case "ENCRYPTED_BY_ROOT_KEY_GCM": - case 6: - message.securityDataKeyType = 6; - break; + default: + if (typeof object.securityDataKeyType === 'number') { + message.securityDataKeyType = object.securityDataKeyType; + break; + } + break; + case 'NO_KEY': + case 0: + message.securityDataKeyType = 0; + break; + case 'ENCRYPTED_BY_DATA_KEY': + case 1: + message.securityDataKeyType = 1; + break; + case 'ENCRYPTED_BY_PUBLIC_KEY': + case 2: + message.securityDataKeyType = 2; + break; + case 'ENCRYPTED_BY_DATA_KEY_GCM': + case 3: + message.securityDataKeyType = 3; + break; + case 'ENCRYPTED_BY_PUBLIC_KEY_ECC': + case 4: + message.securityDataKeyType = 4; + break; + case 'ENCRYPTED_BY_ROOT_KEY_CBC': + case 5: + message.securityDataKeyType = 5; + break; + case 'ENCRYPTED_BY_ROOT_KEY_GCM': + case 6: + message.securityDataKeyType = 6; + break; } return message; }; @@ -176220,31 +183366,42 @@ export const Records = $root.Records = (() => { * @returns {Object.} Plain object */ RecordsUpdateRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.records = []; + if (options.arrays || options.defaults) object.records = []; 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() : long; - } else - object.clientTime = options.longs === String ? "0" : 0; - object.securityDataKeyType = options.enums === String ? "NO_KEY" : 0; + object.clientTime = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.clientTime = options.longs === String ? '0' : 0; + object.securityDataKeyType = options.enums === String ? 'NO_KEY' : 0; } if (message.records && message.records.length) { object.records = []; for (let j = 0; j < message.records.length; ++j) object.records[j] = $root.Records.RecordUpdate.toObject(message.records[j], options); } - if (message.clientTime != null && message.hasOwnProperty("clientTime")) - if (typeof message.clientTime === "number") + if (message.clientTime != null && message.hasOwnProperty('clientTime')) + 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.securityDataKeyType != null && message.hasOwnProperty("securityDataKeyType")) - object.securityDataKeyType = options.enums === String ? $root.Records.RecordKeyType[message.securityDataKeyType] === undefined ? message.securityDataKeyType : $root.Records.RecordKeyType[message.securityDataKeyType] : message.securityDataKeyType; + 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.securityDataKeyType != null && message.hasOwnProperty('securityDataKeyType')) + object.securityDataKeyType = + options.enums === String + ? $root.Records.RecordKeyType[message.securityDataKeyType] === undefined + ? message.securityDataKeyType + : $root.Records.RecordKeyType[message.securityDataKeyType] + : message.securityDataKeyType; return object; }; @@ -176269,16 +183426,15 @@ export const Records = $root.Records = (() => { */ RecordsUpdateRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Records.RecordsUpdateRequest"; + return typeUrlPrefix + '/Records.RecordsUpdateRequest'; }; return RecordsUpdateRequest; })(); - Records.RecordFileForConversion = (function() { - + Records.RecordFileForConversion = (function () { /** * Properties of a RecordFileForConversion. * @memberof Records @@ -176302,8 +183458,7 @@ export const Records = $root.Records = (() => { function RecordFileForConversion(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -176320,7 +183475,7 @@ export const Records = $root.Records = (() => { * @memberof Records.RecordFileForConversion * @instance */ - RecordFileForConversion.prototype.fileFileId = ""; + RecordFileForConversion.prototype.fileFileId = ''; /** * RecordFileForConversion thumbFileId. @@ -176328,7 +183483,7 @@ export const Records = $root.Records = (() => { * @memberof Records.RecordFileForConversion * @instance */ - RecordFileForConversion.prototype.thumbFileId = ""; + RecordFileForConversion.prototype.thumbFileId = ''; /** * RecordFileForConversion data. @@ -176376,20 +183531,19 @@ export const Records = $root.Records = (() => { * @returns {$protobuf.Writer} Writer */ RecordFileForConversion.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); - if (message.fileFileId != null && Object.hasOwnProperty.call(message, "fileFileId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.fileFileId); - if (message.thumbFileId != null && Object.hasOwnProperty.call(message, "thumbFileId")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.thumbFileId); - if (message.data != null && Object.hasOwnProperty.call(message, "data")) - writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.data); - if (message.recordKey != null && Object.hasOwnProperty.call(message, "recordKey")) - writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.recordKey); - if (message.linkKey != null && Object.hasOwnProperty.call(message, "linkKey")) - writer.uint32(/* id 6, wireType 2 =*/50).bytes(message.linkKey); + if (!writer) writer = $Writer.create(); + if (message.recordUid != null && Object.hasOwnProperty.call(message, 'recordUid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.recordUid); + if (message.fileFileId != null && Object.hasOwnProperty.call(message, 'fileFileId')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.fileFileId); + if (message.thumbFileId != null && Object.hasOwnProperty.call(message, 'thumbFileId')) + writer.uint32(/* id 3, wireType 2 =*/ 26).string(message.thumbFileId); + if (message.data != null && Object.hasOwnProperty.call(message, 'data')) + writer.uint32(/* id 4, wireType 2 =*/ 34).bytes(message.data); + if (message.recordKey != null && Object.hasOwnProperty.call(message, 'recordKey')) + writer.uint32(/* id 5, wireType 2 =*/ 42).bytes(message.recordKey); + if (message.linkKey != null && Object.hasOwnProperty.call(message, 'linkKey')) + writer.uint32(/* id 6, wireType 2 =*/ 50).bytes(message.linkKey); return writer; }; @@ -176418,39 +183572,39 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RecordFileForConversion.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordFileForConversion(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Records.RecordFileForConversion(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.recordUid = reader.bytes(); break; } - case 2: { + case 2: { message.fileFileId = reader.string(); break; } - case 3: { + case 3: { message.thumbFileId = reader.string(); break; } - case 4: { + case 4: { message.data = reader.bytes(); break; } - case 5: { + case 5: { message.recordKey = reader.bytes(); break; } - case 6: { + case 6: { message.linkKey = reader.bytes(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -176467,8 +183621,7 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RecordFileForConversion.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -176481,26 +183634,38 @@ export const Records = $root.Records = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ RecordFileForConversion.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) - return "recordUid: buffer expected"; - if (message.fileFileId != null && message.hasOwnProperty("fileFileId")) - if (!$util.isString(message.fileFileId)) - return "fileFileId: string expected"; - if (message.thumbFileId != null && message.hasOwnProperty("thumbFileId")) - if (!$util.isString(message.thumbFileId)) - return "thumbFileId: string expected"; - if (message.data != null && message.hasOwnProperty("data")) - if (!(message.data && typeof message.data.length === "number" || $util.isString(message.data))) - return "data: buffer expected"; - if (message.recordKey != null && message.hasOwnProperty("recordKey")) - if (!(message.recordKey && typeof message.recordKey.length === "number" || $util.isString(message.recordKey))) - return "recordKey: buffer expected"; - if (message.linkKey != null && message.hasOwnProperty("linkKey")) - if (!(message.linkKey && typeof message.linkKey.length === "number" || $util.isString(message.linkKey))) - return "linkKey: buffer expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.recordUid != null && message.hasOwnProperty('recordUid')) + if ( + !( + (message.recordUid && typeof message.recordUid.length === 'number') || + $util.isString(message.recordUid) + ) + ) + return 'recordUid: buffer expected'; + if (message.fileFileId != null && message.hasOwnProperty('fileFileId')) + if (!$util.isString(message.fileFileId)) return 'fileFileId: string expected'; + if (message.thumbFileId != null && message.hasOwnProperty('thumbFileId')) + if (!$util.isString(message.thumbFileId)) return 'thumbFileId: string expected'; + if (message.data != null && message.hasOwnProperty('data')) + if (!((message.data && typeof message.data.length === 'number') || $util.isString(message.data))) + return 'data: buffer expected'; + if (message.recordKey != null && message.hasOwnProperty('recordKey')) + if ( + !( + (message.recordKey && typeof message.recordKey.length === 'number') || + $util.isString(message.recordKey) + ) + ) + return 'recordKey: buffer expected'; + if (message.linkKey != null && message.hasOwnProperty('linkKey')) + if ( + !( + (message.linkKey && typeof message.linkKey.length === 'number') || + $util.isString(message.linkKey) + ) + ) + return 'linkKey: buffer expected'; return null; }; @@ -176513,33 +183678,42 @@ export const Records = $root.Records = (() => { * @returns {Records.RecordFileForConversion} RecordFileForConversion */ RecordFileForConversion.fromObject = function fromObject(object) { - if (object instanceof $root.Records.RecordFileForConversion) - return object; + if (object instanceof $root.Records.RecordFileForConversion) return object; let message = new $root.Records.RecordFileForConversion(); 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.fileFileId != null) - message.fileFileId = String(object.fileFileId); - if (object.thumbFileId != null) - message.thumbFileId = String(object.thumbFileId); + 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.fileFileId != null) message.fileFileId = String(object.fileFileId); + if (object.thumbFileId != null) message.thumbFileId = String(object.thumbFileId); if (object.data != null) - if (typeof object.data === "string") - $util.base64.decode(object.data, message.data = $util.newBuffer($util.base64.length(object.data)), 0); - else if (object.data.length >= 0) - message.data = object.data; + if (typeof object.data === 'string') + $util.base64.decode( + object.data, + (message.data = $util.newBuffer($util.base64.length(object.data))), + 0 + ); + else if (object.data.length >= 0) message.data = object.data; if (object.recordKey != null) - if (typeof object.recordKey === "string") - $util.base64.decode(object.recordKey, message.recordKey = $util.newBuffer($util.base64.length(object.recordKey)), 0); - else if (object.recordKey.length >= 0) - message.recordKey = object.recordKey; + if (typeof object.recordKey === 'string') + $util.base64.decode( + object.recordKey, + (message.recordKey = $util.newBuffer($util.base64.length(object.recordKey))), + 0 + ); + else if (object.recordKey.length >= 0) message.recordKey = object.recordKey; if (object.linkKey != null) - if (typeof object.linkKey === "string") - $util.base64.decode(object.linkKey, message.linkKey = $util.newBuffer($util.base64.length(object.linkKey)), 0); - else if (object.linkKey.length >= 0) - message.linkKey = object.linkKey; + if (typeof object.linkKey === 'string') + $util.base64.decode( + object.linkKey, + (message.linkKey = $util.newBuffer($util.base64.length(object.linkKey))), + 0 + ); + else if (object.linkKey.length >= 0) message.linkKey = object.linkKey; return message; }; @@ -176553,53 +183727,64 @@ export const Records = $root.Records = (() => { * @returns {Object.} Plain object */ RecordFileForConversion.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.recordUid = ""; + if (options.bytes === String) object.recordUid = ''; else { object.recordUid = []; - if (options.bytes !== Array) - object.recordUid = $util.newBuffer(object.recordUid); + if (options.bytes !== Array) object.recordUid = $util.newBuffer(object.recordUid); } - object.fileFileId = ""; - object.thumbFileId = ""; - if (options.bytes === String) - object.data = ""; + object.fileFileId = ''; + object.thumbFileId = ''; + if (options.bytes === String) object.data = ''; else { object.data = []; - if (options.bytes !== Array) - object.data = $util.newBuffer(object.data); + if (options.bytes !== Array) object.data = $util.newBuffer(object.data); } - if (options.bytes === String) - object.recordKey = ""; + if (options.bytes === String) object.recordKey = ''; else { object.recordKey = []; - if (options.bytes !== Array) - object.recordKey = $util.newBuffer(object.recordKey); + if (options.bytes !== Array) object.recordKey = $util.newBuffer(object.recordKey); } - if (options.bytes === String) - object.linkKey = ""; + if (options.bytes === String) object.linkKey = ''; else { object.linkKey = []; - if (options.bytes !== Array) - object.linkKey = $util.newBuffer(object.linkKey); + if (options.bytes !== Array) object.linkKey = $util.newBuffer(object.linkKey); } } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; - if (message.fileFileId != null && message.hasOwnProperty("fileFileId")) + if (message.recordUid != null && message.hasOwnProperty('recordUid')) + object.recordUid = + options.bytes === String + ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.recordUid) + : message.recordUid; + if (message.fileFileId != null && message.hasOwnProperty('fileFileId')) object.fileFileId = message.fileFileId; - if (message.thumbFileId != null && message.hasOwnProperty("thumbFileId")) + if (message.thumbFileId != null && message.hasOwnProperty('thumbFileId')) object.thumbFileId = message.thumbFileId; - if (message.data != null && message.hasOwnProperty("data")) - object.data = options.bytes === String ? $util.base64.encode(message.data, 0, message.data.length) : options.bytes === Array ? Array.prototype.slice.call(message.data) : message.data; - if (message.recordKey != null && message.hasOwnProperty("recordKey")) - object.recordKey = options.bytes === String ? $util.base64.encode(message.recordKey, 0, message.recordKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordKey) : message.recordKey; - if (message.linkKey != null && message.hasOwnProperty("linkKey")) - object.linkKey = options.bytes === String ? $util.base64.encode(message.linkKey, 0, message.linkKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.linkKey) : message.linkKey; + if (message.data != null && message.hasOwnProperty('data')) + object.data = + options.bytes === String + ? $util.base64.encode(message.data, 0, message.data.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.data) + : message.data; + if (message.recordKey != null && message.hasOwnProperty('recordKey')) + object.recordKey = + options.bytes === String + ? $util.base64.encode(message.recordKey, 0, message.recordKey.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.recordKey) + : message.recordKey; + if (message.linkKey != null && message.hasOwnProperty('linkKey')) + object.linkKey = + options.bytes === String + ? $util.base64.encode(message.linkKey, 0, message.linkKey.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.linkKey) + : message.linkKey; return object; }; @@ -176624,16 +183809,15 @@ export const Records = $root.Records = (() => { */ RecordFileForConversion.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Records.RecordFileForConversion"; + return typeUrlPrefix + '/Records.RecordFileForConversion'; }; return RecordFileForConversion; })(); - Records.RecordFolderForConversion = (function() { - + Records.RecordFolderForConversion = (function () { /** * Properties of a RecordFolderForConversion. * @memberof Records @@ -176653,8 +183837,7 @@ export const Records = $root.Records = (() => { function RecordFolderForConversion(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -176695,12 +183878,11 @@ export const Records = $root.Records = (() => { * @returns {$protobuf.Writer} Writer */ RecordFolderForConversion.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.folderUid != null && Object.hasOwnProperty.call(message, "folderUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.folderUid); - if (message.recordFolderKey != null && Object.hasOwnProperty.call(message, "recordFolderKey")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.recordFolderKey); + if (!writer) writer = $Writer.create(); + if (message.folderUid != null && Object.hasOwnProperty.call(message, 'folderUid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.folderUid); + if (message.recordFolderKey != null && Object.hasOwnProperty.call(message, 'recordFolderKey')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.recordFolderKey); return writer; }; @@ -176729,23 +183911,23 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RecordFolderForConversion.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordFolderForConversion(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Records.RecordFolderForConversion(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.folderUid = reader.bytes(); break; } - case 2: { + case 2: { message.recordFolderKey = reader.bytes(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -176762,8 +183944,7 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RecordFolderForConversion.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -176776,14 +183957,23 @@ export const Records = $root.Records = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ RecordFolderForConversion.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.folderUid != null && message.hasOwnProperty("folderUid")) - if (!(message.folderUid && typeof message.folderUid.length === "number" || $util.isString(message.folderUid))) - return "folderUid: buffer expected"; - if (message.recordFolderKey != null && message.hasOwnProperty("recordFolderKey")) - if (!(message.recordFolderKey && typeof message.recordFolderKey.length === "number" || $util.isString(message.recordFolderKey))) - return "recordFolderKey: buffer expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.folderUid != null && message.hasOwnProperty('folderUid')) + if ( + !( + (message.folderUid && typeof message.folderUid.length === 'number') || + $util.isString(message.folderUid) + ) + ) + return 'folderUid: buffer expected'; + if (message.recordFolderKey != null && message.hasOwnProperty('recordFolderKey')) + if ( + !( + (message.recordFolderKey && typeof message.recordFolderKey.length === 'number') || + $util.isString(message.recordFolderKey) + ) + ) + return 'recordFolderKey: buffer expected'; return null; }; @@ -176796,19 +183986,24 @@ export const Records = $root.Records = (() => { * @returns {Records.RecordFolderForConversion} RecordFolderForConversion */ RecordFolderForConversion.fromObject = function fromObject(object) { - if (object instanceof $root.Records.RecordFolderForConversion) - return object; + if (object instanceof $root.Records.RecordFolderForConversion) return object; let message = new $root.Records.RecordFolderForConversion(); 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 (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.recordFolderKey != null) - if (typeof object.recordFolderKey === "string") - $util.base64.decode(object.recordFolderKey, message.recordFolderKey = $util.newBuffer($util.base64.length(object.recordFolderKey)), 0); - else if (object.recordFolderKey.length >= 0) - message.recordFolderKey = object.recordFolderKey; + if (typeof object.recordFolderKey === 'string') + $util.base64.decode( + object.recordFolderKey, + (message.recordFolderKey = $util.newBuffer($util.base64.length(object.recordFolderKey))), + 0 + ); + else if (object.recordFolderKey.length >= 0) message.recordFolderKey = object.recordFolderKey; return message; }; @@ -176822,29 +184017,34 @@ export const Records = $root.Records = (() => { * @returns {Object.} Plain object */ RecordFolderForConversion.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.folderUid = ""; + if (options.bytes === String) object.folderUid = ''; else { object.folderUid = []; - if (options.bytes !== Array) - object.folderUid = $util.newBuffer(object.folderUid); + if (options.bytes !== Array) object.folderUid = $util.newBuffer(object.folderUid); } - if (options.bytes === String) - object.recordFolderKey = ""; + if (options.bytes === String) object.recordFolderKey = ''; else { object.recordFolderKey = []; - if (options.bytes !== Array) - object.recordFolderKey = $util.newBuffer(object.recordFolderKey); + if (options.bytes !== Array) object.recordFolderKey = $util.newBuffer(object.recordFolderKey); } } - if (message.folderUid != null && message.hasOwnProperty("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.recordFolderKey != null && message.hasOwnProperty("recordFolderKey")) - object.recordFolderKey = options.bytes === String ? $util.base64.encode(message.recordFolderKey, 0, message.recordFolderKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordFolderKey) : message.recordFolderKey; + if (message.folderUid != null && message.hasOwnProperty('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.recordFolderKey != null && message.hasOwnProperty('recordFolderKey')) + object.recordFolderKey = + options.bytes === String + ? $util.base64.encode(message.recordFolderKey, 0, message.recordFolderKey.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.recordFolderKey) + : message.recordFolderKey; return object; }; @@ -176869,16 +184069,15 @@ export const Records = $root.Records = (() => { */ RecordFolderForConversion.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Records.RecordFolderForConversion"; + return typeUrlPrefix + '/Records.RecordFolderForConversion'; }; return RecordFolderForConversion; })(); - Records.RecordConvertToV3 = (function() { - + Records.RecordConvertToV3 = (function () { /** * Properties of a RecordConvertToV3. * @memberof Records @@ -176906,8 +184105,7 @@ export const Records = $root.Records = (() => { this.folderKey = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -176924,7 +184122,7 @@ export const Records = $root.Records = (() => { * @memberof Records.RecordConvertToV3 * @instance */ - RecordConvertToV3.prototype.clientModifiedTime = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + RecordConvertToV3.prototype.clientModifiedTime = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * RecordConvertToV3 revision. @@ -176932,7 +184130,7 @@ export const Records = $root.Records = (() => { * @memberof Records.RecordConvertToV3 * @instance */ - RecordConvertToV3.prototype.revision = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + RecordConvertToV3.prototype.revision = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * RecordConvertToV3 data. @@ -176996,26 +184194,34 @@ export const Records = $root.Records = (() => { * @returns {$protobuf.Writer} Writer */ RecordConvertToV3.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); - if (message.clientModifiedTime != null && Object.hasOwnProperty.call(message, "clientModifiedTime")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.clientModifiedTime); - if (message.revision != null && Object.hasOwnProperty.call(message, "revision")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.revision); - if (message.data != null && Object.hasOwnProperty.call(message, "data")) - writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.data); - if (message.nonSharedData != null && Object.hasOwnProperty.call(message, "nonSharedData")) - writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.nonSharedData); - if (message.audit != null && Object.hasOwnProperty.call(message, "audit")) - $root.Records.RecordAudit.encode(message.audit, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (!writer) writer = $Writer.create(); + if (message.recordUid != null && Object.hasOwnProperty.call(message, 'recordUid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.recordUid); + if (message.clientModifiedTime != null && Object.hasOwnProperty.call(message, 'clientModifiedTime')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int64(message.clientModifiedTime); + if (message.revision != null && Object.hasOwnProperty.call(message, 'revision')) + writer.uint32(/* id 3, wireType 0 =*/ 24).int64(message.revision); + if (message.data != null && Object.hasOwnProperty.call(message, 'data')) + writer.uint32(/* id 4, wireType 2 =*/ 34).bytes(message.data); + if (message.nonSharedData != null && Object.hasOwnProperty.call(message, 'nonSharedData')) + writer.uint32(/* id 5, wireType 2 =*/ 42).bytes(message.nonSharedData); + if (message.audit != null && Object.hasOwnProperty.call(message, 'audit')) + $root.Records.RecordAudit.encode( + message.audit, + writer.uint32(/* id 6, wireType 2 =*/ 50).fork() + ).ldelim(); if (message.recordFile != null && message.recordFile.length) for (let i = 0; i < message.recordFile.length; ++i) - $root.Records.RecordFileForConversion.encode(message.recordFile[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + $root.Records.RecordFileForConversion.encode( + message.recordFile[i], + writer.uint32(/* id 7, wireType 2 =*/ 58).fork() + ).ldelim(); if (message.folderKey != null && message.folderKey.length) for (let i = 0; i < message.folderKey.length; ++i) - $root.Records.RecordFolderForConversion.encode(message.folderKey[i], writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + $root.Records.RecordFolderForConversion.encode( + message.folderKey[i], + writer.uint32(/* id 8, wireType 2 =*/ 66).fork() + ).ldelim(); return writer; }; @@ -177044,51 +184250,49 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RecordConvertToV3.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordConvertToV3(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Records.RecordConvertToV3(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.recordUid = reader.bytes(); break; } - case 2: { + case 2: { message.clientModifiedTime = reader.int64(); break; } - case 3: { + case 3: { message.revision = reader.int64(); break; } - case 4: { + case 4: { message.data = reader.bytes(); break; } - case 5: { + case 5: { message.nonSharedData = reader.bytes(); break; } - case 6: { + case 6: { message.audit = $root.Records.RecordAudit.decode(reader, reader.uint32()); break; } - case 7: { - if (!(message.recordFile && message.recordFile.length)) - message.recordFile = []; + case 7: { + if (!(message.recordFile && message.recordFile.length)) message.recordFile = []; message.recordFile.push($root.Records.RecordFileForConversion.decode(reader, reader.uint32())); break; } - case 8: { - if (!(message.folderKey && message.folderKey.length)) - message.folderKey = []; + case 8: { + if (!(message.folderKey && message.folderKey.length)) message.folderKey = []; message.folderKey.push($root.Records.RecordFolderForConversion.decode(reader, reader.uint32())); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -177105,8 +184309,7 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RecordConvertToV3.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -177119,44 +184322,62 @@ export const Records = $root.Records = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ RecordConvertToV3.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) - return "recordUid: buffer expected"; - if (message.clientModifiedTime != null && message.hasOwnProperty("clientModifiedTime")) - if (!$util.isInteger(message.clientModifiedTime) && !(message.clientModifiedTime && $util.isInteger(message.clientModifiedTime.low) && $util.isInteger(message.clientModifiedTime.high))) - return "clientModifiedTime: integer|Long expected"; - if (message.revision != null && message.hasOwnProperty("revision")) - if (!$util.isInteger(message.revision) && !(message.revision && $util.isInteger(message.revision.low) && $util.isInteger(message.revision.high))) - return "revision: integer|Long expected"; - if (message.data != null && message.hasOwnProperty("data")) - if (!(message.data && typeof message.data.length === "number" || $util.isString(message.data))) - return "data: buffer expected"; - if (message.nonSharedData != null && message.hasOwnProperty("nonSharedData")) - if (!(message.nonSharedData && typeof message.nonSharedData.length === "number" || $util.isString(message.nonSharedData))) - return "nonSharedData: buffer expected"; - if (message.audit != null && message.hasOwnProperty("audit")) { + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.recordUid != null && message.hasOwnProperty('recordUid')) + if ( + !( + (message.recordUid && typeof message.recordUid.length === 'number') || + $util.isString(message.recordUid) + ) + ) + return 'recordUid: buffer expected'; + if (message.clientModifiedTime != null && message.hasOwnProperty('clientModifiedTime')) + if ( + !$util.isInteger(message.clientModifiedTime) && + !( + message.clientModifiedTime && + $util.isInteger(message.clientModifiedTime.low) && + $util.isInteger(message.clientModifiedTime.high) + ) + ) + return 'clientModifiedTime: integer|Long expected'; + if (message.revision != null && message.hasOwnProperty('revision')) + if ( + !$util.isInteger(message.revision) && + !( + message.revision && + $util.isInteger(message.revision.low) && + $util.isInteger(message.revision.high) + ) + ) + return 'revision: integer|Long expected'; + if (message.data != null && message.hasOwnProperty('data')) + if (!((message.data && typeof message.data.length === 'number') || $util.isString(message.data))) + return 'data: buffer expected'; + if (message.nonSharedData != null && message.hasOwnProperty('nonSharedData')) + if ( + !( + (message.nonSharedData && typeof message.nonSharedData.length === 'number') || + $util.isString(message.nonSharedData) + ) + ) + return 'nonSharedData: buffer expected'; + if (message.audit != null && message.hasOwnProperty('audit')) { let error = $root.Records.RecordAudit.verify(message.audit); - if (error) - return "audit." + error; + if (error) return 'audit.' + error; } - if (message.recordFile != null && message.hasOwnProperty("recordFile")) { - if (!Array.isArray(message.recordFile)) - return "recordFile: array expected"; + if (message.recordFile != null && message.hasOwnProperty('recordFile')) { + if (!Array.isArray(message.recordFile)) return 'recordFile: array expected'; for (let i = 0; i < message.recordFile.length; ++i) { let error = $root.Records.RecordFileForConversion.verify(message.recordFile[i]); - if (error) - return "recordFile." + error; + if (error) return 'recordFile.' + error; } } - if (message.folderKey != null && message.hasOwnProperty("folderKey")) { - if (!Array.isArray(message.folderKey)) - return "folderKey: array expected"; + if (message.folderKey != null && message.hasOwnProperty('folderKey')) { + if (!Array.isArray(message.folderKey)) return 'folderKey: array expected'; for (let i = 0; i < message.folderKey.length; ++i) { let error = $root.Records.RecordFolderForConversion.verify(message.folderKey[i]); - if (error) - return "folderKey." + error; + if (error) return 'folderKey.' + error; } } return null; @@ -177171,64 +184392,75 @@ export const Records = $root.Records = (() => { * @returns {Records.RecordConvertToV3} RecordConvertToV3 */ RecordConvertToV3.fromObject = function fromObject(object) { - if (object instanceof $root.Records.RecordConvertToV3) - return object; + if (object instanceof $root.Records.RecordConvertToV3) return object; let message = new $root.Records.RecordConvertToV3(); 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 (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.clientModifiedTime != null) if ($util.Long) (message.clientModifiedTime = $util.Long.fromValue(object.clientModifiedTime)).unsigned = false; - else if (typeof object.clientModifiedTime === "string") + else if (typeof object.clientModifiedTime === 'string') message.clientModifiedTime = parseInt(object.clientModifiedTime, 10); - else if (typeof object.clientModifiedTime === "number") + else if (typeof object.clientModifiedTime === 'number') message.clientModifiedTime = object.clientModifiedTime; - else if (typeof object.clientModifiedTime === "object") - message.clientModifiedTime = new $util.LongBits(object.clientModifiedTime.low >>> 0, object.clientModifiedTime.high >>> 0).toNumber(); + else if (typeof object.clientModifiedTime === 'object') + message.clientModifiedTime = new $util.LongBits( + object.clientModifiedTime.low >>> 0, + object.clientModifiedTime.high >>> 0 + ).toNumber(); if (object.revision != null) - if ($util.Long) - (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; - else if (typeof object.revision === "string") - message.revision = parseInt(object.revision, 10); - else if (typeof object.revision === "number") - message.revision = object.revision; - else if (typeof object.revision === "object") - message.revision = new $util.LongBits(object.revision.low >>> 0, object.revision.high >>> 0).toNumber(); + if ($util.Long) (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; + else if (typeof object.revision === 'string') message.revision = parseInt(object.revision, 10); + else if (typeof object.revision === 'number') message.revision = object.revision; + else if (typeof object.revision === 'object') + message.revision = new $util.LongBits( + object.revision.low >>> 0, + object.revision.high >>> 0 + ).toNumber(); if (object.data != null) - if (typeof object.data === "string") - $util.base64.decode(object.data, message.data = $util.newBuffer($util.base64.length(object.data)), 0); - else if (object.data.length >= 0) - message.data = object.data; + if (typeof object.data === 'string') + $util.base64.decode( + object.data, + (message.data = $util.newBuffer($util.base64.length(object.data))), + 0 + ); + else if (object.data.length >= 0) message.data = object.data; if (object.nonSharedData != null) - if (typeof object.nonSharedData === "string") - $util.base64.decode(object.nonSharedData, message.nonSharedData = $util.newBuffer($util.base64.length(object.nonSharedData)), 0); - else if (object.nonSharedData.length >= 0) - message.nonSharedData = object.nonSharedData; + if (typeof object.nonSharedData === 'string') + $util.base64.decode( + object.nonSharedData, + (message.nonSharedData = $util.newBuffer($util.base64.length(object.nonSharedData))), + 0 + ); + else if (object.nonSharedData.length >= 0) message.nonSharedData = object.nonSharedData; if (object.audit != null) { - if (typeof object.audit !== "object") - throw TypeError(".Records.RecordConvertToV3.audit: object expected"); + if (typeof object.audit !== 'object') + throw TypeError('.Records.RecordConvertToV3.audit: object expected'); message.audit = $root.Records.RecordAudit.fromObject(object.audit); } if (object.recordFile) { if (!Array.isArray(object.recordFile)) - throw TypeError(".Records.RecordConvertToV3.recordFile: array expected"); + throw TypeError('.Records.RecordConvertToV3.recordFile: array expected'); message.recordFile = []; for (let i = 0; i < object.recordFile.length; ++i) { - if (typeof object.recordFile[i] !== "object") - throw TypeError(".Records.RecordConvertToV3.recordFile: object expected"); + if (typeof object.recordFile[i] !== 'object') + throw TypeError('.Records.RecordConvertToV3.recordFile: object expected'); message.recordFile[i] = $root.Records.RecordFileForConversion.fromObject(object.recordFile[i]); } } if (object.folderKey) { if (!Array.isArray(object.folderKey)) - throw TypeError(".Records.RecordConvertToV3.folderKey: array expected"); + throw TypeError('.Records.RecordConvertToV3.folderKey: array expected'); message.folderKey = []; for (let i = 0; i < object.folderKey.length; ++i) { - if (typeof object.folderKey[i] !== "object") - throw TypeError(".Records.RecordConvertToV3.folderKey: object expected"); + if (typeof object.folderKey[i] !== 'object') + throw TypeError('.Records.RecordConvertToV3.folderKey: object expected'); message.folderKey[i] = $root.Records.RecordFolderForConversion.fromObject(object.folderKey[i]); } } @@ -177245,74 +184477,102 @@ export const Records = $root.Records = (() => { * @returns {Object.} Plain object */ RecordConvertToV3.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.arrays || options.defaults) { object.recordFile = []; object.folderKey = []; } if (options.defaults) { - if (options.bytes === String) - object.recordUid = ""; + if (options.bytes === String) object.recordUid = ''; else { object.recordUid = []; - if (options.bytes !== Array) - object.recordUid = $util.newBuffer(object.recordUid); + if (options.bytes !== Array) object.recordUid = $util.newBuffer(object.recordUid); } if ($util.Long) { let long = new $util.Long(0, 0, false); - object.clientModifiedTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.clientModifiedTime = options.longs === String ? "0" : 0; + object.clientModifiedTime = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.clientModifiedTime = options.longs === String ? '0' : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.revision = options.longs === String ? "0" : 0; - if (options.bytes === String) - object.data = ""; + object.revision = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.revision = options.longs === String ? '0' : 0; + if (options.bytes === String) object.data = ''; else { object.data = []; - if (options.bytes !== Array) - object.data = $util.newBuffer(object.data); + if (options.bytes !== Array) object.data = $util.newBuffer(object.data); } - if (options.bytes === String) - object.nonSharedData = ""; + if (options.bytes === String) object.nonSharedData = ''; else { object.nonSharedData = []; - if (options.bytes !== Array) - object.nonSharedData = $util.newBuffer(object.nonSharedData); + if (options.bytes !== Array) object.nonSharedData = $util.newBuffer(object.nonSharedData); } object.audit = null; } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; - if (message.clientModifiedTime != null && message.hasOwnProperty("clientModifiedTime")) - if (typeof message.clientModifiedTime === "number") - object.clientModifiedTime = options.longs === String ? String(message.clientModifiedTime) : message.clientModifiedTime; + if (message.recordUid != null && message.hasOwnProperty('recordUid')) + object.recordUid = + options.bytes === String + ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.recordUid) + : message.recordUid; + if (message.clientModifiedTime != null && message.hasOwnProperty('clientModifiedTime')) + if (typeof message.clientModifiedTime === 'number') + object.clientModifiedTime = + options.longs === String ? String(message.clientModifiedTime) : message.clientModifiedTime; else - object.clientModifiedTime = options.longs === String ? $util.Long.prototype.toString.call(message.clientModifiedTime) : options.longs === Number ? new $util.LongBits(message.clientModifiedTime.low >>> 0, message.clientModifiedTime.high >>> 0).toNumber() : message.clientModifiedTime; - if (message.revision != null && message.hasOwnProperty("revision")) - if (typeof message.revision === "number") + object.clientModifiedTime = + options.longs === String + ? $util.Long.prototype.toString.call(message.clientModifiedTime) + : options.longs === Number + ? new $util.LongBits( + message.clientModifiedTime.low >>> 0, + message.clientModifiedTime.high >>> 0 + ).toNumber() + : message.clientModifiedTime; + if (message.revision != null && message.hasOwnProperty('revision')) + if (typeof message.revision === 'number') object.revision = options.longs === String ? String(message.revision) : message.revision; else - object.revision = options.longs === String ? $util.Long.prototype.toString.call(message.revision) : options.longs === Number ? new $util.LongBits(message.revision.low >>> 0, message.revision.high >>> 0).toNumber() : message.revision; - if (message.data != null && message.hasOwnProperty("data")) - object.data = options.bytes === String ? $util.base64.encode(message.data, 0, message.data.length) : options.bytes === Array ? Array.prototype.slice.call(message.data) : message.data; - if (message.nonSharedData != null && message.hasOwnProperty("nonSharedData")) - object.nonSharedData = options.bytes === String ? $util.base64.encode(message.nonSharedData, 0, message.nonSharedData.length) : options.bytes === Array ? Array.prototype.slice.call(message.nonSharedData) : message.nonSharedData; - if (message.audit != null && message.hasOwnProperty("audit")) + object.revision = + options.longs === String + ? $util.Long.prototype.toString.call(message.revision) + : options.longs === Number + ? new $util.LongBits(message.revision.low >>> 0, message.revision.high >>> 0).toNumber() + : message.revision; + if (message.data != null && message.hasOwnProperty('data')) + object.data = + options.bytes === String + ? $util.base64.encode(message.data, 0, message.data.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.data) + : message.data; + if (message.nonSharedData != null && message.hasOwnProperty('nonSharedData')) + object.nonSharedData = + options.bytes === String + ? $util.base64.encode(message.nonSharedData, 0, message.nonSharedData.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.nonSharedData) + : message.nonSharedData; + if (message.audit != null && message.hasOwnProperty('audit')) object.audit = $root.Records.RecordAudit.toObject(message.audit, options); if (message.recordFile && message.recordFile.length) { object.recordFile = []; for (let j = 0; j < message.recordFile.length; ++j) - object.recordFile[j] = $root.Records.RecordFileForConversion.toObject(message.recordFile[j], options); + object.recordFile[j] = $root.Records.RecordFileForConversion.toObject( + message.recordFile[j], + options + ); } if (message.folderKey && message.folderKey.length) { object.folderKey = []; for (let j = 0; j < message.folderKey.length; ++j) - object.folderKey[j] = $root.Records.RecordFolderForConversion.toObject(message.folderKey[j], options); + object.folderKey[j] = $root.Records.RecordFolderForConversion.toObject( + message.folderKey[j], + options + ); } return object; }; @@ -177338,16 +184598,15 @@ export const Records = $root.Records = (() => { */ RecordConvertToV3.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Records.RecordConvertToV3"; + return typeUrlPrefix + '/Records.RecordConvertToV3'; }; return RecordConvertToV3; })(); - Records.RecordsConvertToV3Request = (function() { - + Records.RecordsConvertToV3Request = (function () { /** * Properties of a RecordsConvertToV3Request. * @memberof Records @@ -177368,8 +184627,7 @@ export const Records = $root.Records = (() => { this.records = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -177386,7 +184644,7 @@ export const Records = $root.Records = (() => { * @memberof Records.RecordsConvertToV3Request * @instance */ - RecordsConvertToV3Request.prototype.clientTime = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + RecordsConvertToV3Request.prototype.clientTime = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * Creates a new RecordsConvertToV3Request instance using the specified properties. @@ -177410,13 +184668,15 @@ export const Records = $root.Records = (() => { * @returns {$protobuf.Writer} Writer */ RecordsConvertToV3Request.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.records != null && message.records.length) for (let i = 0; i < message.records.length; ++i) - $root.Records.RecordConvertToV3.encode(message.records[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.clientTime != null && Object.hasOwnProperty.call(message, "clientTime")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.clientTime); + $root.Records.RecordConvertToV3.encode( + message.records[i], + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); + if (message.clientTime != null && Object.hasOwnProperty.call(message, 'clientTime')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int64(message.clientTime); return writer; }; @@ -177445,25 +184705,24 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RecordsConvertToV3Request.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordsConvertToV3Request(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Records.RecordsConvertToV3Request(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (!(message.records && message.records.length)) - message.records = []; + case 1: { + if (!(message.records && message.records.length)) message.records = []; message.records.push($root.Records.RecordConvertToV3.decode(reader, reader.uint32())); break; } - case 2: { + case 2: { message.clientTime = reader.int64(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -177480,8 +184739,7 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RecordsConvertToV3Request.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -177494,20 +184752,24 @@ export const Records = $root.Records = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ RecordsConvertToV3Request.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.records != null && message.hasOwnProperty("records")) { - if (!Array.isArray(message.records)) - return "records: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.records != null && message.hasOwnProperty('records')) { + if (!Array.isArray(message.records)) return 'records: array expected'; for (let i = 0; i < message.records.length; ++i) { let error = $root.Records.RecordConvertToV3.verify(message.records[i]); - if (error) - return "records." + error; + if (error) return 'records.' + error; } } - if (message.clientTime != null && message.hasOwnProperty("clientTime")) - if (!$util.isInteger(message.clientTime) && !(message.clientTime && $util.isInteger(message.clientTime.low) && $util.isInteger(message.clientTime.high))) - return "clientTime: integer|Long expected"; + if (message.clientTime != null && message.hasOwnProperty('clientTime')) + if ( + !$util.isInteger(message.clientTime) && + !( + message.clientTime && + $util.isInteger(message.clientTime.low) && + $util.isInteger(message.clientTime.high) + ) + ) + return 'clientTime: integer|Long expected'; return null; }; @@ -177520,28 +184782,27 @@ export const Records = $root.Records = (() => { * @returns {Records.RecordsConvertToV3Request} RecordsConvertToV3Request */ RecordsConvertToV3Request.fromObject = function fromObject(object) { - if (object instanceof $root.Records.RecordsConvertToV3Request) - return object; + if (object instanceof $root.Records.RecordsConvertToV3Request) return object; let message = new $root.Records.RecordsConvertToV3Request(); if (object.records) { if (!Array.isArray(object.records)) - throw TypeError(".Records.RecordsConvertToV3Request.records: array expected"); + throw TypeError('.Records.RecordsConvertToV3Request.records: array expected'); message.records = []; for (let i = 0; i < object.records.length; ++i) { - if (typeof object.records[i] !== "object") - throw TypeError(".Records.RecordsConvertToV3Request.records: object expected"); + if (typeof object.records[i] !== 'object') + throw TypeError('.Records.RecordsConvertToV3Request.records: object expected'); message.records[i] = $root.Records.RecordConvertToV3.fromObject(object.records[i]); } } if (object.clientTime != null) - if ($util.Long) - (message.clientTime = $util.Long.fromValue(object.clientTime)).unsigned = 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 ($util.Long) (message.clientTime = $util.Long.fromValue(object.clientTime)).unsigned = 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(); return message; }; @@ -177555,27 +184816,33 @@ export const Records = $root.Records = (() => { * @returns {Object.} Plain object */ RecordsConvertToV3Request.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.records = []; + if (options.arrays || options.defaults) object.records = []; 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() : long; - } else - object.clientTime = options.longs === String ? "0" : 0; + object.clientTime = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.clientTime = options.longs === String ? '0' : 0; if (message.records && message.records.length) { object.records = []; for (let j = 0; j < message.records.length; ++j) object.records[j] = $root.Records.RecordConvertToV3.toObject(message.records[j], options); } - if (message.clientTime != null && message.hasOwnProperty("clientTime")) - if (typeof message.clientTime === "number") + if (message.clientTime != null && message.hasOwnProperty('clientTime')) + 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; + 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; return object; }; @@ -177600,16 +184867,15 @@ export const Records = $root.Records = (() => { */ RecordsConvertToV3Request.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Records.RecordsConvertToV3Request"; + return typeUrlPrefix + '/Records.RecordsConvertToV3Request'; }; return RecordsConvertToV3Request; })(); - Records.RecordsRemoveRequest = (function() { - + Records.RecordsRemoveRequest = (function () { /** * Properties of a RecordsRemoveRequest. * @memberof Records @@ -177629,8 +184895,7 @@ export const Records = $root.Records = (() => { this.records = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -177663,11 +184928,10 @@ export const Records = $root.Records = (() => { * @returns {$protobuf.Writer} Writer */ RecordsRemoveRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.records != null && message.records.length) for (let i = 0; i < message.records.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.records[i]); + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.records[i]); return writer; }; @@ -177696,21 +184960,20 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RecordsRemoveRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordsRemoveRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Records.RecordsRemoveRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (!(message.records && message.records.length)) - message.records = []; + case 1: { + if (!(message.records && message.records.length)) message.records = []; message.records.push(reader.bytes()); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -177727,8 +184990,7 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RecordsRemoveRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -177741,14 +185003,17 @@ export const Records = $root.Records = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ RecordsRemoveRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.records != null && message.hasOwnProperty("records")) { - if (!Array.isArray(message.records)) - return "records: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.records != null && message.hasOwnProperty('records')) { + if (!Array.isArray(message.records)) return 'records: array expected'; for (let i = 0; i < message.records.length; ++i) - if (!(message.records[i] && typeof message.records[i].length === "number" || $util.isString(message.records[i]))) - return "records: buffer[] expected"; + if ( + !( + (message.records[i] && typeof message.records[i].length === 'number') || + $util.isString(message.records[i]) + ) + ) + return 'records: buffer[] expected'; } return null; }; @@ -177762,18 +185027,20 @@ export const Records = $root.Records = (() => { * @returns {Records.RecordsRemoveRequest} RecordsRemoveRequest */ RecordsRemoveRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Records.RecordsRemoveRequest) - return object; + if (object instanceof $root.Records.RecordsRemoveRequest) return object; let message = new $root.Records.RecordsRemoveRequest(); if (object.records) { if (!Array.isArray(object.records)) - throw TypeError(".Records.RecordsRemoveRequest.records: array expected"); + throw TypeError('.Records.RecordsRemoveRequest.records: array expected'); message.records = []; for (let i = 0; i < object.records.length; ++i) - if (typeof object.records[i] === "string") - $util.base64.decode(object.records[i], message.records[i] = $util.newBuffer($util.base64.length(object.records[i])), 0); - else if (object.records[i].length >= 0) - message.records[i] = object.records[i]; + if (typeof object.records[i] === 'string') + $util.base64.decode( + object.records[i], + (message.records[i] = $util.newBuffer($util.base64.length(object.records[i]))), + 0 + ); + else if (object.records[i].length >= 0) message.records[i] = object.records[i]; } return message; }; @@ -177788,15 +185055,18 @@ export const Records = $root.Records = (() => { * @returns {Object.} Plain object */ RecordsRemoveRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.records = []; + if (options.arrays || options.defaults) object.records = []; if (message.records && message.records.length) { object.records = []; for (let j = 0; j < message.records.length; ++j) - object.records[j] = options.bytes === String ? $util.base64.encode(message.records[j], 0, message.records[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.records[j]) : message.records[j]; + object.records[j] = + options.bytes === String + ? $util.base64.encode(message.records[j], 0, message.records[j].length) + : options.bytes === Array + ? Array.prototype.slice.call(message.records[j]) + : message.records[j]; } return object; }; @@ -177822,16 +185092,15 @@ export const Records = $root.Records = (() => { */ RecordsRemoveRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Records.RecordsRemoveRequest"; + return typeUrlPrefix + '/Records.RecordsRemoveRequest'; }; return RecordsRemoveRequest; })(); - Records.RecordRevert = (function() { - + Records.RecordRevert = (function () { /** * Properties of a RecordRevert. * @memberof Records @@ -177851,8 +185120,7 @@ export const Records = $root.Records = (() => { function RecordRevert(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -177869,7 +185137,7 @@ export const Records = $root.Records = (() => { * @memberof Records.RecordRevert * @instance */ - RecordRevert.prototype.revertToRevision = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + RecordRevert.prototype.revertToRevision = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * Creates a new RecordRevert instance using the specified properties. @@ -177893,12 +185161,11 @@ export const Records = $root.Records = (() => { * @returns {$protobuf.Writer} Writer */ RecordRevert.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); - if (message.revertToRevision != null && Object.hasOwnProperty.call(message, "revertToRevision")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.revertToRevision); + if (!writer) writer = $Writer.create(); + if (message.recordUid != null && Object.hasOwnProperty.call(message, 'recordUid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.recordUid); + if (message.revertToRevision != null && Object.hasOwnProperty.call(message, 'revertToRevision')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int64(message.revertToRevision); return writer; }; @@ -177927,23 +185194,23 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RecordRevert.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordRevert(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Records.RecordRevert(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.recordUid = reader.bytes(); break; } - case 2: { + case 2: { message.revertToRevision = reader.int64(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -177960,8 +185227,7 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RecordRevert.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -177974,14 +185240,25 @@ export const Records = $root.Records = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ RecordRevert.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) - return "recordUid: buffer expected"; - if (message.revertToRevision != null && message.hasOwnProperty("revertToRevision")) - if (!$util.isInteger(message.revertToRevision) && !(message.revertToRevision && $util.isInteger(message.revertToRevision.low) && $util.isInteger(message.revertToRevision.high))) - return "revertToRevision: integer|Long expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.recordUid != null && message.hasOwnProperty('recordUid')) + if ( + !( + (message.recordUid && typeof message.recordUid.length === 'number') || + $util.isString(message.recordUid) + ) + ) + return 'recordUid: buffer expected'; + if (message.revertToRevision != null && message.hasOwnProperty('revertToRevision')) + if ( + !$util.isInteger(message.revertToRevision) && + !( + message.revertToRevision && + $util.isInteger(message.revertToRevision.low) && + $util.isInteger(message.revertToRevision.high) + ) + ) + return 'revertToRevision: integer|Long expected'; return null; }; @@ -177994,23 +185271,28 @@ export const Records = $root.Records = (() => { * @returns {Records.RecordRevert} RecordRevert */ RecordRevert.fromObject = function fromObject(object) { - if (object instanceof $root.Records.RecordRevert) - return object; + if (object instanceof $root.Records.RecordRevert) return object; let message = new $root.Records.RecordRevert(); 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 (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.revertToRevision != null) if ($util.Long) (message.revertToRevision = $util.Long.fromValue(object.revertToRevision)).unsigned = false; - else if (typeof object.revertToRevision === "string") + else if (typeof object.revertToRevision === 'string') message.revertToRevision = parseInt(object.revertToRevision, 10); - else if (typeof object.revertToRevision === "number") + else if (typeof object.revertToRevision === 'number') message.revertToRevision = object.revertToRevision; - else if (typeof object.revertToRevision === "object") - message.revertToRevision = new $util.LongBits(object.revertToRevision.low >>> 0, object.revertToRevision.high >>> 0).toNumber(); + else if (typeof object.revertToRevision === 'object') + message.revertToRevision = new $util.LongBits( + object.revertToRevision.low >>> 0, + object.revertToRevision.high >>> 0 + ).toNumber(); return message; }; @@ -178024,30 +185306,41 @@ export const Records = $root.Records = (() => { * @returns {Object.} Plain object */ RecordRevert.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.recordUid = ""; + if (options.bytes === String) object.recordUid = ''; else { object.recordUid = []; - if (options.bytes !== Array) - object.recordUid = $util.newBuffer(object.recordUid); + if (options.bytes !== Array) object.recordUid = $util.newBuffer(object.recordUid); } if ($util.Long) { let long = new $util.Long(0, 0, false); - object.revertToRevision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.revertToRevision = options.longs === String ? "0" : 0; - } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; - if (message.revertToRevision != null && message.hasOwnProperty("revertToRevision")) - if (typeof message.revertToRevision === "number") - object.revertToRevision = options.longs === String ? String(message.revertToRevision) : message.revertToRevision; + object.revertToRevision = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.revertToRevision = options.longs === String ? '0' : 0; + } + if (message.recordUid != null && message.hasOwnProperty('recordUid')) + object.recordUid = + options.bytes === String + ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.recordUid) + : message.recordUid; + if (message.revertToRevision != null && message.hasOwnProperty('revertToRevision')) + if (typeof message.revertToRevision === 'number') + object.revertToRevision = + options.longs === String ? String(message.revertToRevision) : message.revertToRevision; else - object.revertToRevision = options.longs === String ? $util.Long.prototype.toString.call(message.revertToRevision) : options.longs === Number ? new $util.LongBits(message.revertToRevision.low >>> 0, message.revertToRevision.high >>> 0).toNumber() : message.revertToRevision; + object.revertToRevision = + options.longs === String + ? $util.Long.prototype.toString.call(message.revertToRevision) + : options.longs === Number + ? new $util.LongBits( + message.revertToRevision.low >>> 0, + message.revertToRevision.high >>> 0 + ).toNumber() + : message.revertToRevision; return object; }; @@ -178072,16 +185365,15 @@ export const Records = $root.Records = (() => { */ RecordRevert.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Records.RecordRevert"; + return typeUrlPrefix + '/Records.RecordRevert'; }; return RecordRevert; })(); - Records.RecordsRevertRequest = (function() { - + Records.RecordsRevertRequest = (function () { /** * Properties of a RecordsRevertRequest. * @memberof Records @@ -178101,8 +185393,7 @@ export const Records = $root.Records = (() => { this.records = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -178135,11 +185426,13 @@ export const Records = $root.Records = (() => { * @returns {$protobuf.Writer} Writer */ RecordsRevertRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.records != null && message.records.length) for (let i = 0; i < message.records.length; ++i) - $root.Records.RecordRevert.encode(message.records[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.Records.RecordRevert.encode( + message.records[i], + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); return writer; }; @@ -178168,21 +185461,20 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RecordsRevertRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordsRevertRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Records.RecordsRevertRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (!(message.records && message.records.length)) - message.records = []; + case 1: { + if (!(message.records && message.records.length)) message.records = []; message.records.push($root.Records.RecordRevert.decode(reader, reader.uint32())); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -178199,8 +185491,7 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RecordsRevertRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -178213,15 +185504,12 @@ export const Records = $root.Records = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ RecordsRevertRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.records != null && message.hasOwnProperty("records")) { - if (!Array.isArray(message.records)) - return "records: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.records != null && message.hasOwnProperty('records')) { + if (!Array.isArray(message.records)) return 'records: array expected'; for (let i = 0; i < message.records.length; ++i) { let error = $root.Records.RecordRevert.verify(message.records[i]); - if (error) - return "records." + error; + if (error) return 'records.' + error; } } return null; @@ -178236,16 +185524,15 @@ export const Records = $root.Records = (() => { * @returns {Records.RecordsRevertRequest} RecordsRevertRequest */ RecordsRevertRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Records.RecordsRevertRequest) - return object; + if (object instanceof $root.Records.RecordsRevertRequest) return object; let message = new $root.Records.RecordsRevertRequest(); if (object.records) { if (!Array.isArray(object.records)) - throw TypeError(".Records.RecordsRevertRequest.records: array expected"); + throw TypeError('.Records.RecordsRevertRequest.records: array expected'); message.records = []; for (let i = 0; i < object.records.length; ++i) { - if (typeof object.records[i] !== "object") - throw TypeError(".Records.RecordsRevertRequest.records: object expected"); + if (typeof object.records[i] !== 'object') + throw TypeError('.Records.RecordsRevertRequest.records: object expected'); message.records[i] = $root.Records.RecordRevert.fromObject(object.records[i]); } } @@ -178262,11 +185549,9 @@ export const Records = $root.Records = (() => { * @returns {Object.} Plain object */ RecordsRevertRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.records = []; + if (options.arrays || options.defaults) object.records = []; if (message.records && message.records.length) { object.records = []; for (let j = 0; j < message.records.length; ++j) @@ -178296,9 +185581,9 @@ export const Records = $root.Records = (() => { */ RecordsRevertRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Records.RecordsRevertRequest"; + return typeUrlPrefix + '/Records.RecordsRevertRequest'; }; return RecordsRevertRequest; @@ -178322,26 +185607,26 @@ export const Records = $root.Records = (() => { * @property {number} RS_SIZE_EXCEEDED_LIMIT=11 RS_SIZE_EXCEEDED_LIMIT value * @property {number} RS_ONLY_OWNER_CAN_MODIFY_SCRIPTS=12 RS_ONLY_OWNER_CAN_MODIFY_SCRIPTS value */ - Records.RecordModifyResult = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "RS_SUCCESS"] = 0; - values[valuesById[1] = "RS_OUT_OF_SYNC"] = 1; - values[valuesById[2] = "RS_ACCESS_DENIED"] = 2; - values[valuesById[3] = "RS_SHARE_DENIED"] = 3; - values[valuesById[4] = "RS_RECORD_EXISTS"] = 4; - values[valuesById[5] = "RS_OLD_RECORD_VERSION_TYPE"] = 5; - values[valuesById[6] = "RS_NEW_RECORD_VERSION_TYPE"] = 6; - values[valuesById[7] = "RS_FILES_NOT_MATCH"] = 7; - values[valuesById[8] = "RS_RECORD_NOT_SHAREABLE"] = 8; - values[valuesById[9] = "RS_ATTACHMENT_NOT_SHAREABLE"] = 9; - values[valuesById[10] = "RS_FILE_LIMIT_REACHED"] = 10; - values[valuesById[11] = "RS_SIZE_EXCEEDED_LIMIT"] = 11; - values[valuesById[12] = "RS_ONLY_OWNER_CAN_MODIFY_SCRIPTS"] = 12; + Records.RecordModifyResult = (function () { + const valuesById = {}, + values = Object.create(valuesById); + values[(valuesById[0] = 'RS_SUCCESS')] = 0; + values[(valuesById[1] = 'RS_OUT_OF_SYNC')] = 1; + values[(valuesById[2] = 'RS_ACCESS_DENIED')] = 2; + values[(valuesById[3] = 'RS_SHARE_DENIED')] = 3; + values[(valuesById[4] = 'RS_RECORD_EXISTS')] = 4; + values[(valuesById[5] = 'RS_OLD_RECORD_VERSION_TYPE')] = 5; + values[(valuesById[6] = 'RS_NEW_RECORD_VERSION_TYPE')] = 6; + values[(valuesById[7] = 'RS_FILES_NOT_MATCH')] = 7; + values[(valuesById[8] = 'RS_RECORD_NOT_SHAREABLE')] = 8; + values[(valuesById[9] = 'RS_ATTACHMENT_NOT_SHAREABLE')] = 9; + values[(valuesById[10] = 'RS_FILE_LIMIT_REACHED')] = 10; + values[(valuesById[11] = 'RS_SIZE_EXCEEDED_LIMIT')] = 11; + values[(valuesById[12] = 'RS_ONLY_OWNER_CAN_MODIFY_SCRIPTS')] = 12; return values; })(); - Records.RecordLinkError = (function() { - + Records.RecordLinkError = (function () { /** * Properties of a RecordLinkError. * @memberof Records @@ -178362,8 +185647,7 @@ export const Records = $root.Records = (() => { function RecordLinkError(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -178388,7 +185672,7 @@ export const Records = $root.Records = (() => { * @memberof Records.RecordLinkError * @instance */ - RecordLinkError.prototype.message = ""; + RecordLinkError.prototype.message = ''; /** * Creates a new RecordLinkError instance using the specified properties. @@ -178412,14 +185696,13 @@ export const Records = $root.Records = (() => { * @returns {$protobuf.Writer} Writer */ RecordLinkError.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); - if (message.status != null && Object.hasOwnProperty.call(message, "status")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.status); - if (message.message != null && Object.hasOwnProperty.call(message, "message")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.message); + if (!writer) writer = $Writer.create(); + if (message.recordUid != null && Object.hasOwnProperty.call(message, 'recordUid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.recordUid); + if (message.status != null && Object.hasOwnProperty.call(message, 'status')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int32(message.status); + if (message.message != null && Object.hasOwnProperty.call(message, 'message')) + writer.uint32(/* id 3, wireType 2 =*/ 26).string(message.message); return writer; }; @@ -178448,27 +185731,27 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RecordLinkError.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordLinkError(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Records.RecordLinkError(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.recordUid = reader.bytes(); break; } - case 2: { + case 2: { message.status = reader.int32(); break; } - case 3: { + case 3: { message.message = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -178485,8 +185768,7 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RecordLinkError.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -178499,33 +185781,36 @@ export const Records = $root.Records = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ RecordLinkError.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) - return "recordUid: buffer expected"; - if (message.status != null && message.hasOwnProperty("status")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.recordUid != null && message.hasOwnProperty('recordUid')) + if ( + !( + (message.recordUid && typeof message.recordUid.length === 'number') || + $util.isString(message.recordUid) + ) + ) + return 'recordUid: buffer expected'; + if (message.status != null && message.hasOwnProperty('status')) switch (message.status) { - default: - return "status: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - case 10: - case 11: - case 12: - break; + default: + return 'status: enum value expected'; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + case 10: + case 11: + case 12: + break; } - if (message.message != null && message.hasOwnProperty("message")) - if (!$util.isString(message.message)) - return "message: string expected"; + if (message.message != null && message.hasOwnProperty('message')) + if (!$util.isString(message.message)) return 'message: string expected'; return null; }; @@ -178538,76 +185823,77 @@ export const Records = $root.Records = (() => { * @returns {Records.RecordLinkError} RecordLinkError */ RecordLinkError.fromObject = function fromObject(object) { - if (object instanceof $root.Records.RecordLinkError) - return object; + if (object instanceof $root.Records.RecordLinkError) return object; let message = new $root.Records.RecordLinkError(); 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 (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; switch (object.status) { - default: - if (typeof object.status === "number") { - message.status = object.status; - break; - } - break; - case "RS_SUCCESS": - case 0: - message.status = 0; - break; - case "RS_OUT_OF_SYNC": - case 1: - message.status = 1; - break; - case "RS_ACCESS_DENIED": - case 2: - message.status = 2; - break; - case "RS_SHARE_DENIED": - case 3: - message.status = 3; - break; - case "RS_RECORD_EXISTS": - case 4: - message.status = 4; - break; - case "RS_OLD_RECORD_VERSION_TYPE": - case 5: - message.status = 5; - break; - case "RS_NEW_RECORD_VERSION_TYPE": - case 6: - message.status = 6; - break; - case "RS_FILES_NOT_MATCH": - case 7: - message.status = 7; - break; - case "RS_RECORD_NOT_SHAREABLE": - case 8: - message.status = 8; - break; - case "RS_ATTACHMENT_NOT_SHAREABLE": - case 9: - message.status = 9; - break; - case "RS_FILE_LIMIT_REACHED": - case 10: - message.status = 10; - break; - case "RS_SIZE_EXCEEDED_LIMIT": - case 11: - message.status = 11; - break; - case "RS_ONLY_OWNER_CAN_MODIFY_SCRIPTS": - case 12: - message.status = 12; - break; + default: + if (typeof object.status === 'number') { + message.status = object.status; + break; + } + break; + case 'RS_SUCCESS': + case 0: + message.status = 0; + break; + case 'RS_OUT_OF_SYNC': + case 1: + message.status = 1; + break; + case 'RS_ACCESS_DENIED': + case 2: + message.status = 2; + break; + case 'RS_SHARE_DENIED': + case 3: + message.status = 3; + break; + case 'RS_RECORD_EXISTS': + case 4: + message.status = 4; + break; + case 'RS_OLD_RECORD_VERSION_TYPE': + case 5: + message.status = 5; + break; + case 'RS_NEW_RECORD_VERSION_TYPE': + case 6: + message.status = 6; + break; + case 'RS_FILES_NOT_MATCH': + case 7: + message.status = 7; + break; + case 'RS_RECORD_NOT_SHAREABLE': + case 8: + message.status = 8; + break; + case 'RS_ATTACHMENT_NOT_SHAREABLE': + case 9: + message.status = 9; + break; + case 'RS_FILE_LIMIT_REACHED': + case 10: + message.status = 10; + break; + case 'RS_SIZE_EXCEEDED_LIMIT': + case 11: + message.status = 11; + break; + case 'RS_ONLY_OWNER_CAN_MODIFY_SCRIPTS': + case 12: + message.status = 12; + break; } - if (object.message != null) - message.message = String(object.message); + if (object.message != null) message.message = String(object.message); return message; }; @@ -178621,26 +185907,32 @@ export const Records = $root.Records = (() => { * @returns {Object.} Plain object */ RecordLinkError.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.recordUid = ""; + if (options.bytes === String) object.recordUid = ''; else { object.recordUid = []; - if (options.bytes !== Array) - object.recordUid = $util.newBuffer(object.recordUid); + if (options.bytes !== Array) object.recordUid = $util.newBuffer(object.recordUid); } - object.status = options.enums === String ? "RS_SUCCESS" : 0; - object.message = ""; + object.status = options.enums === String ? 'RS_SUCCESS' : 0; + object.message = ''; } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; - if (message.status != null && message.hasOwnProperty("status")) - object.status = options.enums === String ? $root.Records.RecordModifyResult[message.status] === undefined ? message.status : $root.Records.RecordModifyResult[message.status] : message.status; - if (message.message != null && message.hasOwnProperty("message")) - object.message = message.message; + if (message.recordUid != null && message.hasOwnProperty('recordUid')) + object.recordUid = + options.bytes === String + ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.recordUid) + : message.recordUid; + if (message.status != null && message.hasOwnProperty('status')) + object.status = + options.enums === String + ? $root.Records.RecordModifyResult[message.status] === undefined + ? message.status + : $root.Records.RecordModifyResult[message.status] + : message.status; + if (message.message != null && message.hasOwnProperty('message')) object.message = message.message; return object; }; @@ -178665,16 +185957,15 @@ export const Records = $root.Records = (() => { */ RecordLinkError.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Records.RecordLinkError"; + return typeUrlPrefix + '/Records.RecordLinkError'; }; return RecordLinkError; })(); - Records.RecordModifyStatus = (function() { - + Records.RecordModifyStatus = (function () { /** * Properties of a RecordModifyStatus. * @memberof Records @@ -178697,8 +185988,7 @@ export const Records = $root.Records = (() => { this.linkErrors = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -178723,7 +186013,7 @@ export const Records = $root.Records = (() => { * @memberof Records.RecordModifyStatus * @instance */ - RecordModifyStatus.prototype.message = ""; + RecordModifyStatus.prototype.message = ''; /** * RecordModifyStatus linkErrors. @@ -178755,17 +186045,19 @@ export const Records = $root.Records = (() => { * @returns {$protobuf.Writer} Writer */ RecordModifyStatus.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); - if (message.status != null && Object.hasOwnProperty.call(message, "status")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.status); - if (message.message != null && Object.hasOwnProperty.call(message, "message")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.message); + if (!writer) writer = $Writer.create(); + if (message.recordUid != null && Object.hasOwnProperty.call(message, 'recordUid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.recordUid); + if (message.status != null && Object.hasOwnProperty.call(message, 'status')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int32(message.status); + if (message.message != null && Object.hasOwnProperty.call(message, 'message')) + writer.uint32(/* id 3, wireType 2 =*/ 26).string(message.message); if (message.linkErrors != null && message.linkErrors.length) for (let i = 0; i < message.linkErrors.length; ++i) - $root.Records.RecordLinkError.encode(message.linkErrors[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + $root.Records.RecordLinkError.encode( + message.linkErrors[i], + writer.uint32(/* id 4, wireType 2 =*/ 34).fork() + ).ldelim(); return writer; }; @@ -178794,33 +186086,32 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RecordModifyStatus.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordModifyStatus(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Records.RecordModifyStatus(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.recordUid = reader.bytes(); break; } - case 2: { + case 2: { message.status = reader.int32(); break; } - case 3: { + case 3: { message.message = reader.string(); break; } - case 4: { - if (!(message.linkErrors && message.linkErrors.length)) - message.linkErrors = []; + case 4: { + if (!(message.linkErrors && message.linkErrors.length)) message.linkErrors = []; message.linkErrors.push($root.Records.RecordLinkError.decode(reader, reader.uint32())); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -178837,8 +186128,7 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RecordModifyStatus.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -178851,40 +186141,41 @@ export const Records = $root.Records = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ RecordModifyStatus.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) - return "recordUid: buffer expected"; - if (message.status != null && message.hasOwnProperty("status")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.recordUid != null && message.hasOwnProperty('recordUid')) + if ( + !( + (message.recordUid && typeof message.recordUid.length === 'number') || + $util.isString(message.recordUid) + ) + ) + return 'recordUid: buffer expected'; + if (message.status != null && message.hasOwnProperty('status')) switch (message.status) { - default: - return "status: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - case 10: - case 11: - case 12: - break; + default: + return 'status: enum value expected'; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + case 10: + case 11: + case 12: + break; } - if (message.message != null && message.hasOwnProperty("message")) - if (!$util.isString(message.message)) - return "message: string expected"; - if (message.linkErrors != null && message.hasOwnProperty("linkErrors")) { - if (!Array.isArray(message.linkErrors)) - return "linkErrors: array expected"; + if (message.message != null && message.hasOwnProperty('message')) + if (!$util.isString(message.message)) return 'message: string expected'; + if (message.linkErrors != null && message.hasOwnProperty('linkErrors')) { + if (!Array.isArray(message.linkErrors)) return 'linkErrors: array expected'; for (let i = 0; i < message.linkErrors.length; ++i) { let error = $root.Records.RecordLinkError.verify(message.linkErrors[i]); - if (error) - return "linkErrors." + error; + if (error) return 'linkErrors.' + error; } } return null; @@ -178899,83 +186190,84 @@ export const Records = $root.Records = (() => { * @returns {Records.RecordModifyStatus} RecordModifyStatus */ RecordModifyStatus.fromObject = function fromObject(object) { - if (object instanceof $root.Records.RecordModifyStatus) - return object; + if (object instanceof $root.Records.RecordModifyStatus) return object; let message = new $root.Records.RecordModifyStatus(); 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 (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; switch (object.status) { - default: - if (typeof object.status === "number") { - message.status = object.status; - break; - } - break; - case "RS_SUCCESS": - case 0: - message.status = 0; - break; - case "RS_OUT_OF_SYNC": - case 1: - message.status = 1; - break; - case "RS_ACCESS_DENIED": - case 2: - message.status = 2; - break; - case "RS_SHARE_DENIED": - case 3: - message.status = 3; - break; - case "RS_RECORD_EXISTS": - case 4: - message.status = 4; - break; - case "RS_OLD_RECORD_VERSION_TYPE": - case 5: - message.status = 5; - break; - case "RS_NEW_RECORD_VERSION_TYPE": - case 6: - message.status = 6; - break; - case "RS_FILES_NOT_MATCH": - case 7: - message.status = 7; - break; - case "RS_RECORD_NOT_SHAREABLE": - case 8: - message.status = 8; - break; - case "RS_ATTACHMENT_NOT_SHAREABLE": - case 9: - message.status = 9; - break; - case "RS_FILE_LIMIT_REACHED": - case 10: - message.status = 10; - break; - case "RS_SIZE_EXCEEDED_LIMIT": - case 11: - message.status = 11; - break; - case "RS_ONLY_OWNER_CAN_MODIFY_SCRIPTS": - case 12: - message.status = 12; - break; + default: + if (typeof object.status === 'number') { + message.status = object.status; + break; + } + break; + case 'RS_SUCCESS': + case 0: + message.status = 0; + break; + case 'RS_OUT_OF_SYNC': + case 1: + message.status = 1; + break; + case 'RS_ACCESS_DENIED': + case 2: + message.status = 2; + break; + case 'RS_SHARE_DENIED': + case 3: + message.status = 3; + break; + case 'RS_RECORD_EXISTS': + case 4: + message.status = 4; + break; + case 'RS_OLD_RECORD_VERSION_TYPE': + case 5: + message.status = 5; + break; + case 'RS_NEW_RECORD_VERSION_TYPE': + case 6: + message.status = 6; + break; + case 'RS_FILES_NOT_MATCH': + case 7: + message.status = 7; + break; + case 'RS_RECORD_NOT_SHAREABLE': + case 8: + message.status = 8; + break; + case 'RS_ATTACHMENT_NOT_SHAREABLE': + case 9: + message.status = 9; + break; + case 'RS_FILE_LIMIT_REACHED': + case 10: + message.status = 10; + break; + case 'RS_SIZE_EXCEEDED_LIMIT': + case 11: + message.status = 11; + break; + case 'RS_ONLY_OWNER_CAN_MODIFY_SCRIPTS': + case 12: + message.status = 12; + break; } - if (object.message != null) - message.message = String(object.message); + if (object.message != null) message.message = String(object.message); if (object.linkErrors) { if (!Array.isArray(object.linkErrors)) - throw TypeError(".Records.RecordModifyStatus.linkErrors: array expected"); + throw TypeError('.Records.RecordModifyStatus.linkErrors: array expected'); message.linkErrors = []; for (let i = 0; i < object.linkErrors.length; ++i) { - if (typeof object.linkErrors[i] !== "object") - throw TypeError(".Records.RecordModifyStatus.linkErrors: object expected"); + if (typeof object.linkErrors[i] !== 'object') + throw TypeError('.Records.RecordModifyStatus.linkErrors: object expected'); message.linkErrors[i] = $root.Records.RecordLinkError.fromObject(object.linkErrors[i]); } } @@ -178992,28 +186284,33 @@ export const Records = $root.Records = (() => { * @returns {Object.} Plain object */ RecordModifyStatus.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.linkErrors = []; + if (options.arrays || options.defaults) object.linkErrors = []; if (options.defaults) { - if (options.bytes === String) - object.recordUid = ""; + if (options.bytes === String) object.recordUid = ''; else { object.recordUid = []; - if (options.bytes !== Array) - object.recordUid = $util.newBuffer(object.recordUid); - } - object.status = options.enums === String ? "RS_SUCCESS" : 0; - object.message = ""; - } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; - if (message.status != null && message.hasOwnProperty("status")) - object.status = options.enums === String ? $root.Records.RecordModifyResult[message.status] === undefined ? message.status : $root.Records.RecordModifyResult[message.status] : message.status; - if (message.message != null && message.hasOwnProperty("message")) - object.message = message.message; + if (options.bytes !== Array) object.recordUid = $util.newBuffer(object.recordUid); + } + object.status = options.enums === String ? 'RS_SUCCESS' : 0; + object.message = ''; + } + if (message.recordUid != null && message.hasOwnProperty('recordUid')) + object.recordUid = + options.bytes === String + ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.recordUid) + : message.recordUid; + if (message.status != null && message.hasOwnProperty('status')) + object.status = + options.enums === String + ? $root.Records.RecordModifyResult[message.status] === undefined + ? message.status + : $root.Records.RecordModifyResult[message.status] + : message.status; + if (message.message != null && message.hasOwnProperty('message')) object.message = message.message; if (message.linkErrors && message.linkErrors.length) { object.linkErrors = []; for (let j = 0; j < message.linkErrors.length; ++j) @@ -179043,16 +186340,15 @@ export const Records = $root.Records = (() => { */ RecordModifyStatus.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Records.RecordModifyStatus"; + return typeUrlPrefix + '/Records.RecordModifyStatus'; }; return RecordModifyStatus; })(); - Records.RecordsModifyResponse = (function() { - + Records.RecordsModifyResponse = (function () { /** * Properties of a RecordsModifyResponse. * @memberof Records @@ -179073,8 +186369,7 @@ export const Records = $root.Records = (() => { this.records = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -179091,7 +186386,7 @@ export const Records = $root.Records = (() => { * @memberof Records.RecordsModifyResponse * @instance */ - RecordsModifyResponse.prototype.revision = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + RecordsModifyResponse.prototype.revision = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * Creates a new RecordsModifyResponse instance using the specified properties. @@ -179115,13 +186410,15 @@ export const Records = $root.Records = (() => { * @returns {$protobuf.Writer} Writer */ RecordsModifyResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.records != null && message.records.length) for (let i = 0; i < message.records.length; ++i) - $root.Records.RecordModifyStatus.encode(message.records[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.revision != null && Object.hasOwnProperty.call(message, "revision")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.revision); + $root.Records.RecordModifyStatus.encode( + message.records[i], + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); + if (message.revision != null && Object.hasOwnProperty.call(message, 'revision')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int64(message.revision); return writer; }; @@ -179150,25 +186447,24 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RecordsModifyResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordsModifyResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Records.RecordsModifyResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (!(message.records && message.records.length)) - message.records = []; + case 1: { + if (!(message.records && message.records.length)) message.records = []; message.records.push($root.Records.RecordModifyStatus.decode(reader, reader.uint32())); break; } - case 2: { + case 2: { message.revision = reader.int64(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -179185,8 +186481,7 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RecordsModifyResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -179199,20 +186494,24 @@ export const Records = $root.Records = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ RecordsModifyResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.records != null && message.hasOwnProperty("records")) { - if (!Array.isArray(message.records)) - return "records: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.records != null && message.hasOwnProperty('records')) { + if (!Array.isArray(message.records)) return 'records: array expected'; for (let i = 0; i < message.records.length; ++i) { let error = $root.Records.RecordModifyStatus.verify(message.records[i]); - if (error) - return "records." + error; + if (error) return 'records.' + error; } } - if (message.revision != null && message.hasOwnProperty("revision")) - if (!$util.isInteger(message.revision) && !(message.revision && $util.isInteger(message.revision.low) && $util.isInteger(message.revision.high))) - return "revision: integer|Long expected"; + if (message.revision != null && message.hasOwnProperty('revision')) + if ( + !$util.isInteger(message.revision) && + !( + message.revision && + $util.isInteger(message.revision.low) && + $util.isInteger(message.revision.high) + ) + ) + return 'revision: integer|Long expected'; return null; }; @@ -179225,28 +186524,27 @@ export const Records = $root.Records = (() => { * @returns {Records.RecordsModifyResponse} RecordsModifyResponse */ RecordsModifyResponse.fromObject = function fromObject(object) { - if (object instanceof $root.Records.RecordsModifyResponse) - return object; + if (object instanceof $root.Records.RecordsModifyResponse) return object; let message = new $root.Records.RecordsModifyResponse(); if (object.records) { if (!Array.isArray(object.records)) - throw TypeError(".Records.RecordsModifyResponse.records: array expected"); + throw TypeError('.Records.RecordsModifyResponse.records: array expected'); message.records = []; for (let i = 0; i < object.records.length; ++i) { - if (typeof object.records[i] !== "object") - throw TypeError(".Records.RecordsModifyResponse.records: object expected"); + if (typeof object.records[i] !== 'object') + throw TypeError('.Records.RecordsModifyResponse.records: object expected'); message.records[i] = $root.Records.RecordModifyStatus.fromObject(object.records[i]); } } if (object.revision != null) - if ($util.Long) - (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; - else if (typeof object.revision === "string") - message.revision = parseInt(object.revision, 10); - else if (typeof object.revision === "number") - message.revision = object.revision; - else if (typeof object.revision === "object") - message.revision = new $util.LongBits(object.revision.low >>> 0, object.revision.high >>> 0).toNumber(); + if ($util.Long) (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; + else if (typeof object.revision === 'string') message.revision = parseInt(object.revision, 10); + else if (typeof object.revision === 'number') message.revision = object.revision; + else if (typeof object.revision === 'object') + message.revision = new $util.LongBits( + object.revision.low >>> 0, + object.revision.high >>> 0 + ).toNumber(); return message; }; @@ -179260,27 +186558,30 @@ export const Records = $root.Records = (() => { * @returns {Object.} Plain object */ RecordsModifyResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.records = []; + if (options.arrays || options.defaults) object.records = []; if (options.defaults) if ($util.Long) { let long = new $util.Long(0, 0, false); - object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.revision = options.longs === String ? "0" : 0; + object.revision = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.revision = options.longs === String ? '0' : 0; if (message.records && message.records.length) { object.records = []; for (let j = 0; j < message.records.length; ++j) object.records[j] = $root.Records.RecordModifyStatus.toObject(message.records[j], options); } - if (message.revision != null && message.hasOwnProperty("revision")) - if (typeof message.revision === "number") + if (message.revision != null && message.hasOwnProperty('revision')) + if (typeof message.revision === 'number') object.revision = options.longs === String ? String(message.revision) : message.revision; else - object.revision = options.longs === String ? $util.Long.prototype.toString.call(message.revision) : options.longs === Number ? new $util.LongBits(message.revision.low >>> 0, message.revision.high >>> 0).toNumber() : message.revision; + object.revision = + options.longs === String + ? $util.Long.prototype.toString.call(message.revision) + : options.longs === Number + ? new $util.LongBits(message.revision.low >>> 0, message.revision.high >>> 0).toNumber() + : message.revision; return object; }; @@ -179305,16 +186606,15 @@ export const Records = $root.Records = (() => { */ RecordsModifyResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Records.RecordsModifyResponse"; + return typeUrlPrefix + '/Records.RecordsModifyResponse'; }; return RecordsModifyResponse; })(); - Records.RecordAddAuditData = (function() { - + Records.RecordAddAuditData = (function () { /** * Properties of a RecordAddAuditData. * @memberof Records @@ -179336,8 +186636,7 @@ export const Records = $root.Records = (() => { function RecordAddAuditData(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -179354,7 +186653,7 @@ export const Records = $root.Records = (() => { * @memberof Records.RecordAddAuditData * @instance */ - RecordAddAuditData.prototype.revision = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + RecordAddAuditData.prototype.revision = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * RecordAddAuditData data. @@ -179394,16 +186693,15 @@ export const Records = $root.Records = (() => { * @returns {$protobuf.Writer} Writer */ RecordAddAuditData.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); - if (message.revision != null && Object.hasOwnProperty.call(message, "revision")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.revision); - if (message.data != null && Object.hasOwnProperty.call(message, "data")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.data); - if (message.version != null && Object.hasOwnProperty.call(message, "version")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.version); + if (!writer) writer = $Writer.create(); + if (message.recordUid != null && Object.hasOwnProperty.call(message, 'recordUid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.recordUid); + if (message.revision != null && Object.hasOwnProperty.call(message, 'revision')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int64(message.revision); + if (message.data != null && Object.hasOwnProperty.call(message, 'data')) + writer.uint32(/* id 3, wireType 2 =*/ 26).bytes(message.data); + if (message.version != null && Object.hasOwnProperty.call(message, 'version')) + writer.uint32(/* id 4, wireType 0 =*/ 32).int32(message.version); return writer; }; @@ -179432,31 +186730,31 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RecordAddAuditData.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordAddAuditData(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Records.RecordAddAuditData(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.recordUid = reader.bytes(); break; } - case 2: { + case 2: { message.revision = reader.int64(); break; } - case 3: { + case 3: { message.data = reader.bytes(); break; } - case 4: { + case 4: { message.version = reader.int32(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -179473,8 +186771,7 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RecordAddAuditData.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -179487,20 +186784,30 @@ export const Records = $root.Records = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ RecordAddAuditData.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) - return "recordUid: buffer expected"; - if (message.revision != null && message.hasOwnProperty("revision")) - if (!$util.isInteger(message.revision) && !(message.revision && $util.isInteger(message.revision.low) && $util.isInteger(message.revision.high))) - return "revision: integer|Long expected"; - if (message.data != null && message.hasOwnProperty("data")) - if (!(message.data && typeof message.data.length === "number" || $util.isString(message.data))) - return "data: buffer expected"; - if (message.version != null && message.hasOwnProperty("version")) - if (!$util.isInteger(message.version)) - return "version: integer expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.recordUid != null && message.hasOwnProperty('recordUid')) + if ( + !( + (message.recordUid && typeof message.recordUid.length === 'number') || + $util.isString(message.recordUid) + ) + ) + return 'recordUid: buffer expected'; + if (message.revision != null && message.hasOwnProperty('revision')) + if ( + !$util.isInteger(message.revision) && + !( + message.revision && + $util.isInteger(message.revision.low) && + $util.isInteger(message.revision.high) + ) + ) + return 'revision: integer|Long expected'; + if (message.data != null && message.hasOwnProperty('data')) + if (!((message.data && typeof message.data.length === 'number') || $util.isString(message.data))) + return 'data: buffer expected'; + if (message.version != null && message.hasOwnProperty('version')) + if (!$util.isInteger(message.version)) return 'version: integer expected'; return null; }; @@ -179513,30 +186820,34 @@ export const Records = $root.Records = (() => { * @returns {Records.RecordAddAuditData} RecordAddAuditData */ RecordAddAuditData.fromObject = function fromObject(object) { - if (object instanceof $root.Records.RecordAddAuditData) - return object; + if (object instanceof $root.Records.RecordAddAuditData) return object; let message = new $root.Records.RecordAddAuditData(); 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 (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.revision != null) - if ($util.Long) - (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; - else if (typeof object.revision === "string") - message.revision = parseInt(object.revision, 10); - else if (typeof object.revision === "number") - message.revision = object.revision; - else if (typeof object.revision === "object") - message.revision = new $util.LongBits(object.revision.low >>> 0, object.revision.high >>> 0).toNumber(); + if ($util.Long) (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; + else if (typeof object.revision === 'string') message.revision = parseInt(object.revision, 10); + else if (typeof object.revision === 'number') message.revision = object.revision; + else if (typeof object.revision === 'object') + message.revision = new $util.LongBits( + object.revision.low >>> 0, + object.revision.high >>> 0 + ).toNumber(); if (object.data != null) - if (typeof object.data === "string") - $util.base64.decode(object.data, message.data = $util.newBuffer($util.base64.length(object.data)), 0); - else if (object.data.length >= 0) - message.data = object.data; - if (object.version != null) - message.version = object.version | 0; + if (typeof object.data === 'string') + $util.base64.decode( + object.data, + (message.data = $util.newBuffer($util.base64.length(object.data))), + 0 + ); + else if (object.data.length >= 0) message.data = object.data; + if (object.version != null) message.version = object.version | 0; return message; }; @@ -179550,42 +186861,51 @@ export const Records = $root.Records = (() => { * @returns {Object.} Plain object */ RecordAddAuditData.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.recordUid = ""; + if (options.bytes === String) object.recordUid = ''; else { object.recordUid = []; - if (options.bytes !== Array) - object.recordUid = $util.newBuffer(object.recordUid); + if (options.bytes !== Array) object.recordUid = $util.newBuffer(object.recordUid); } if ($util.Long) { let long = new $util.Long(0, 0, false); - object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.revision = options.longs === String ? "0" : 0; - if (options.bytes === String) - object.data = ""; + object.revision = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.revision = options.longs === String ? '0' : 0; + if (options.bytes === String) object.data = ''; else { object.data = []; - if (options.bytes !== Array) - object.data = $util.newBuffer(object.data); + if (options.bytes !== Array) object.data = $util.newBuffer(object.data); } object.version = 0; } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; - if (message.revision != null && message.hasOwnProperty("revision")) - if (typeof message.revision === "number") + if (message.recordUid != null && message.hasOwnProperty('recordUid')) + object.recordUid = + options.bytes === String + ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.recordUid) + : message.recordUid; + if (message.revision != null && message.hasOwnProperty('revision')) + if (typeof message.revision === 'number') object.revision = options.longs === String ? String(message.revision) : message.revision; else - object.revision = options.longs === String ? $util.Long.prototype.toString.call(message.revision) : options.longs === Number ? new $util.LongBits(message.revision.low >>> 0, message.revision.high >>> 0).toNumber() : message.revision; - if (message.data != null && message.hasOwnProperty("data")) - object.data = options.bytes === String ? $util.base64.encode(message.data, 0, message.data.length) : options.bytes === Array ? Array.prototype.slice.call(message.data) : message.data; - if (message.version != null && message.hasOwnProperty("version")) - object.version = message.version; + object.revision = + options.longs === String + ? $util.Long.prototype.toString.call(message.revision) + : options.longs === Number + ? new $util.LongBits(message.revision.low >>> 0, message.revision.high >>> 0).toNumber() + : message.revision; + if (message.data != null && message.hasOwnProperty('data')) + object.data = + options.bytes === String + ? $util.base64.encode(message.data, 0, message.data.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.data) + : message.data; + if (message.version != null && message.hasOwnProperty('version')) object.version = message.version; return object; }; @@ -179610,16 +186930,15 @@ export const Records = $root.Records = (() => { */ RecordAddAuditData.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Records.RecordAddAuditData"; + return typeUrlPrefix + '/Records.RecordAddAuditData'; }; return RecordAddAuditData; })(); - Records.AddAuditDataRequest = (function() { - + Records.AddAuditDataRequest = (function () { /** * Properties of an AddAuditDataRequest. * @memberof Records @@ -179639,8 +186958,7 @@ export const Records = $root.Records = (() => { this.records = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -179673,11 +186991,13 @@ export const Records = $root.Records = (() => { * @returns {$protobuf.Writer} Writer */ AddAuditDataRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.records != null && message.records.length) for (let i = 0; i < message.records.length; ++i) - $root.Records.RecordAddAuditData.encode(message.records[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.Records.RecordAddAuditData.encode( + message.records[i], + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); return writer; }; @@ -179706,21 +187026,20 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ AddAuditDataRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.AddAuditDataRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Records.AddAuditDataRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (!(message.records && message.records.length)) - message.records = []; + case 1: { + if (!(message.records && message.records.length)) message.records = []; message.records.push($root.Records.RecordAddAuditData.decode(reader, reader.uint32())); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -179737,8 +187056,7 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ AddAuditDataRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -179751,15 +187069,12 @@ export const Records = $root.Records = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ AddAuditDataRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.records != null && message.hasOwnProperty("records")) { - if (!Array.isArray(message.records)) - return "records: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.records != null && message.hasOwnProperty('records')) { + if (!Array.isArray(message.records)) return 'records: array expected'; for (let i = 0; i < message.records.length; ++i) { let error = $root.Records.RecordAddAuditData.verify(message.records[i]); - if (error) - return "records." + error; + if (error) return 'records.' + error; } } return null; @@ -179774,16 +187089,15 @@ export const Records = $root.Records = (() => { * @returns {Records.AddAuditDataRequest} AddAuditDataRequest */ AddAuditDataRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Records.AddAuditDataRequest) - return object; + if (object instanceof $root.Records.AddAuditDataRequest) return object; let message = new $root.Records.AddAuditDataRequest(); if (object.records) { if (!Array.isArray(object.records)) - throw TypeError(".Records.AddAuditDataRequest.records: array expected"); + throw TypeError('.Records.AddAuditDataRequest.records: array expected'); message.records = []; for (let i = 0; i < object.records.length; ++i) { - if (typeof object.records[i] !== "object") - throw TypeError(".Records.AddAuditDataRequest.records: object expected"); + if (typeof object.records[i] !== 'object') + throw TypeError('.Records.AddAuditDataRequest.records: object expected'); message.records[i] = $root.Records.RecordAddAuditData.fromObject(object.records[i]); } } @@ -179800,11 +187114,9 @@ export const Records = $root.Records = (() => { * @returns {Object.} Plain object */ AddAuditDataRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.records = []; + if (options.arrays || options.defaults) object.records = []; if (message.records && message.records.length) { object.records = []; for (let j = 0; j < message.records.length; ++j) @@ -179834,16 +187146,15 @@ export const Records = $root.Records = (() => { */ AddAuditDataRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Records.AddAuditDataRequest"; + return typeUrlPrefix + '/Records.AddAuditDataRequest'; }; return AddAuditDataRequest; })(); - Records.File = (function() { - + Records.File = (function () { /** * Properties of a File. * @memberof Records @@ -179867,8 +187178,7 @@ export const Records = $root.Records = (() => { function File(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -179901,7 +187211,7 @@ export const Records = $root.Records = (() => { * @memberof Records.File * @instance */ - File.prototype.fileSize = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + File.prototype.fileSize = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * File thumbSize. @@ -179941,20 +187251,19 @@ export const Records = $root.Records = (() => { * @returns {$protobuf.Writer} Writer */ File.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); - if (message.recordKey != null && Object.hasOwnProperty.call(message, "recordKey")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.recordKey); - if (message.data != null && Object.hasOwnProperty.call(message, "data")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.data); - if (message.fileSize != null && Object.hasOwnProperty.call(message, "fileSize")) - writer.uint32(/* id 4, wireType 0 =*/32).int64(message.fileSize); - if (message.thumbSize != null && Object.hasOwnProperty.call(message, "thumbSize")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.thumbSize); - if (message.isScript != null && Object.hasOwnProperty.call(message, "isScript")) - writer.uint32(/* id 6, wireType 0 =*/48).bool(message.isScript); + if (!writer) writer = $Writer.create(); + if (message.recordUid != null && Object.hasOwnProperty.call(message, 'recordUid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.recordUid); + if (message.recordKey != null && Object.hasOwnProperty.call(message, 'recordKey')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.recordKey); + if (message.data != null && Object.hasOwnProperty.call(message, 'data')) + writer.uint32(/* id 3, wireType 2 =*/ 26).bytes(message.data); + if (message.fileSize != null && Object.hasOwnProperty.call(message, 'fileSize')) + writer.uint32(/* id 4, wireType 0 =*/ 32).int64(message.fileSize); + if (message.thumbSize != null && Object.hasOwnProperty.call(message, 'thumbSize')) + writer.uint32(/* id 5, wireType 0 =*/ 40).int32(message.thumbSize); + if (message.isScript != null && Object.hasOwnProperty.call(message, 'isScript')) + writer.uint32(/* id 6, wireType 0 =*/ 48).bool(message.isScript); return writer; }; @@ -179983,39 +187292,39 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ File.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.File(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Records.File(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.recordUid = reader.bytes(); break; } - case 2: { + case 2: { message.recordKey = reader.bytes(); break; } - case 3: { + case 3: { message.data = reader.bytes(); break; } - case 4: { + case 4: { message.fileSize = reader.int64(); break; } - case 5: { + case 5: { message.thumbSize = reader.int32(); break; } - case 6: { + case 6: { message.isScript = reader.bool(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -180032,8 +187341,7 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ File.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -180046,26 +187354,40 @@ export const Records = $root.Records = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ File.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) - return "recordUid: buffer expected"; - if (message.recordKey != null && message.hasOwnProperty("recordKey")) - if (!(message.recordKey && typeof message.recordKey.length === "number" || $util.isString(message.recordKey))) - return "recordKey: buffer expected"; - if (message.data != null && message.hasOwnProperty("data")) - if (!(message.data && typeof message.data.length === "number" || $util.isString(message.data))) - return "data: buffer expected"; - if (message.fileSize != null && message.hasOwnProperty("fileSize")) - if (!$util.isInteger(message.fileSize) && !(message.fileSize && $util.isInteger(message.fileSize.low) && $util.isInteger(message.fileSize.high))) - return "fileSize: integer|Long expected"; - if (message.thumbSize != null && message.hasOwnProperty("thumbSize")) - if (!$util.isInteger(message.thumbSize)) - return "thumbSize: integer expected"; - if (message.isScript != null && message.hasOwnProperty("isScript")) - if (typeof message.isScript !== "boolean") - return "isScript: boolean expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.recordUid != null && message.hasOwnProperty('recordUid')) + if ( + !( + (message.recordUid && typeof message.recordUid.length === 'number') || + $util.isString(message.recordUid) + ) + ) + return 'recordUid: buffer expected'; + if (message.recordKey != null && message.hasOwnProperty('recordKey')) + if ( + !( + (message.recordKey && typeof message.recordKey.length === 'number') || + $util.isString(message.recordKey) + ) + ) + return 'recordKey: buffer expected'; + if (message.data != null && message.hasOwnProperty('data')) + if (!((message.data && typeof message.data.length === 'number') || $util.isString(message.data))) + return 'data: buffer expected'; + if (message.fileSize != null && message.hasOwnProperty('fileSize')) + if ( + !$util.isInteger(message.fileSize) && + !( + message.fileSize && + $util.isInteger(message.fileSize.low) && + $util.isInteger(message.fileSize.high) + ) + ) + return 'fileSize: integer|Long expected'; + if (message.thumbSize != null && message.hasOwnProperty('thumbSize')) + if (!$util.isInteger(message.thumbSize)) return 'thumbSize: integer expected'; + if (message.isScript != null && message.hasOwnProperty('isScript')) + if (typeof message.isScript !== 'boolean') return 'isScript: boolean expected'; return null; }; @@ -180078,37 +187400,43 @@ export const Records = $root.Records = (() => { * @returns {Records.File} File */ File.fromObject = function fromObject(object) { - if (object instanceof $root.Records.File) - return object; + if (object instanceof $root.Records.File) return object; let message = new $root.Records.File(); 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 (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.recordKey != null) - if (typeof object.recordKey === "string") - $util.base64.decode(object.recordKey, message.recordKey = $util.newBuffer($util.base64.length(object.recordKey)), 0); - else if (object.recordKey.length >= 0) - message.recordKey = object.recordKey; + if (typeof object.recordKey === 'string') + $util.base64.decode( + object.recordKey, + (message.recordKey = $util.newBuffer($util.base64.length(object.recordKey))), + 0 + ); + else if (object.recordKey.length >= 0) message.recordKey = object.recordKey; if (object.data != null) - if (typeof object.data === "string") - $util.base64.decode(object.data, message.data = $util.newBuffer($util.base64.length(object.data)), 0); - else if (object.data.length >= 0) - message.data = object.data; + if (typeof object.data === 'string') + $util.base64.decode( + object.data, + (message.data = $util.newBuffer($util.base64.length(object.data))), + 0 + ); + else if (object.data.length >= 0) message.data = object.data; if (object.fileSize != null) - if ($util.Long) - (message.fileSize = $util.Long.fromValue(object.fileSize)).unsigned = false; - else if (typeof object.fileSize === "string") - message.fileSize = parseInt(object.fileSize, 10); - else if (typeof object.fileSize === "number") - message.fileSize = object.fileSize; - else if (typeof object.fileSize === "object") - message.fileSize = new $util.LongBits(object.fileSize.low >>> 0, object.fileSize.high >>> 0).toNumber(); - if (object.thumbSize != null) - message.thumbSize = object.thumbSize | 0; - if (object.isScript != null) - message.isScript = Boolean(object.isScript); + if ($util.Long) (message.fileSize = $util.Long.fromValue(object.fileSize)).unsigned = false; + else if (typeof object.fileSize === 'string') message.fileSize = parseInt(object.fileSize, 10); + else if (typeof object.fileSize === 'number') message.fileSize = object.fileSize; + else if (typeof object.fileSize === 'object') + message.fileSize = new $util.LongBits( + object.fileSize.low >>> 0, + object.fileSize.high >>> 0 + ).toNumber(); + if (object.thumbSize != null) message.thumbSize = object.thumbSize | 0; + if (object.isScript != null) message.isScript = Boolean(object.isScript); return message; }; @@ -180122,54 +187450,65 @@ export const Records = $root.Records = (() => { * @returns {Object.} Plain object */ File.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.recordUid = ""; + if (options.bytes === String) object.recordUid = ''; else { object.recordUid = []; - if (options.bytes !== Array) - object.recordUid = $util.newBuffer(object.recordUid); + if (options.bytes !== Array) object.recordUid = $util.newBuffer(object.recordUid); } - if (options.bytes === String) - object.recordKey = ""; + if (options.bytes === String) object.recordKey = ''; else { object.recordKey = []; - if (options.bytes !== Array) - object.recordKey = $util.newBuffer(object.recordKey); + if (options.bytes !== Array) object.recordKey = $util.newBuffer(object.recordKey); } - if (options.bytes === String) - object.data = ""; + if (options.bytes === String) object.data = ''; else { object.data = []; - if (options.bytes !== Array) - object.data = $util.newBuffer(object.data); + if (options.bytes !== Array) object.data = $util.newBuffer(object.data); } if ($util.Long) { let long = new $util.Long(0, 0, false); - object.fileSize = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.fileSize = options.longs === String ? "0" : 0; + object.fileSize = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.fileSize = options.longs === String ? '0' : 0; object.thumbSize = 0; object.isScript = false; } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; - if (message.recordKey != null && message.hasOwnProperty("recordKey")) - object.recordKey = options.bytes === String ? $util.base64.encode(message.recordKey, 0, message.recordKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordKey) : message.recordKey; - if (message.data != null && message.hasOwnProperty("data")) - object.data = options.bytes === String ? $util.base64.encode(message.data, 0, message.data.length) : options.bytes === Array ? Array.prototype.slice.call(message.data) : message.data; - if (message.fileSize != null && message.hasOwnProperty("fileSize")) - if (typeof message.fileSize === "number") + if (message.recordUid != null && message.hasOwnProperty('recordUid')) + object.recordUid = + options.bytes === String + ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.recordUid) + : message.recordUid; + if (message.recordKey != null && message.hasOwnProperty('recordKey')) + object.recordKey = + options.bytes === String + ? $util.base64.encode(message.recordKey, 0, message.recordKey.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.recordKey) + : message.recordKey; + if (message.data != null && message.hasOwnProperty('data')) + object.data = + options.bytes === String + ? $util.base64.encode(message.data, 0, message.data.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.data) + : message.data; + if (message.fileSize != null && message.hasOwnProperty('fileSize')) + if (typeof message.fileSize === 'number') object.fileSize = options.longs === String ? String(message.fileSize) : message.fileSize; else - object.fileSize = options.longs === String ? $util.Long.prototype.toString.call(message.fileSize) : options.longs === Number ? new $util.LongBits(message.fileSize.low >>> 0, message.fileSize.high >>> 0).toNumber() : message.fileSize; - if (message.thumbSize != null && message.hasOwnProperty("thumbSize")) - object.thumbSize = message.thumbSize; - if (message.isScript != null && message.hasOwnProperty("isScript")) - object.isScript = message.isScript; + object.fileSize = + options.longs === String + ? $util.Long.prototype.toString.call(message.fileSize) + : options.longs === Number + ? new $util.LongBits(message.fileSize.low >>> 0, message.fileSize.high >>> 0).toNumber() + : message.fileSize; + if (message.thumbSize != null && message.hasOwnProperty('thumbSize')) object.thumbSize = message.thumbSize; + if (message.isScript != null && message.hasOwnProperty('isScript')) object.isScript = message.isScript; return object; }; @@ -180194,16 +187533,15 @@ export const Records = $root.Records = (() => { */ File.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Records.File"; + return typeUrlPrefix + '/Records.File'; }; return File; })(); - Records.FilesAddRequest = (function() { - + Records.FilesAddRequest = (function () { /** * Properties of a FilesAddRequest. * @memberof Records @@ -180224,8 +187562,7 @@ export const Records = $root.Records = (() => { this.files = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -180242,7 +187579,7 @@ export const Records = $root.Records = (() => { * @memberof Records.FilesAddRequest * @instance */ - FilesAddRequest.prototype.clientTime = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + FilesAddRequest.prototype.clientTime = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * Creates a new FilesAddRequest instance using the specified properties. @@ -180266,13 +187603,15 @@ export const Records = $root.Records = (() => { * @returns {$protobuf.Writer} Writer */ FilesAddRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.files != null && message.files.length) for (let i = 0; i < message.files.length; ++i) - $root.Records.File.encode(message.files[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.clientTime != null && Object.hasOwnProperty.call(message, "clientTime")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.clientTime); + $root.Records.File.encode( + message.files[i], + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); + if (message.clientTime != null && Object.hasOwnProperty.call(message, 'clientTime')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int64(message.clientTime); return writer; }; @@ -180301,25 +187640,24 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ FilesAddRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.FilesAddRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Records.FilesAddRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (!(message.files && message.files.length)) - message.files = []; + case 1: { + if (!(message.files && message.files.length)) message.files = []; message.files.push($root.Records.File.decode(reader, reader.uint32())); break; } - case 2: { + case 2: { message.clientTime = reader.int64(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -180336,8 +187674,7 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ FilesAddRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -180350,20 +187687,24 @@ export const Records = $root.Records = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ FilesAddRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.files != null && message.hasOwnProperty("files")) { - if (!Array.isArray(message.files)) - return "files: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.files != null && message.hasOwnProperty('files')) { + if (!Array.isArray(message.files)) return 'files: array expected'; for (let i = 0; i < message.files.length; ++i) { let error = $root.Records.File.verify(message.files[i]); - if (error) - return "files." + error; + if (error) return 'files.' + error; } } - if (message.clientTime != null && message.hasOwnProperty("clientTime")) - if (!$util.isInteger(message.clientTime) && !(message.clientTime && $util.isInteger(message.clientTime.low) && $util.isInteger(message.clientTime.high))) - return "clientTime: integer|Long expected"; + if (message.clientTime != null && message.hasOwnProperty('clientTime')) + if ( + !$util.isInteger(message.clientTime) && + !( + message.clientTime && + $util.isInteger(message.clientTime.low) && + $util.isInteger(message.clientTime.high) + ) + ) + return 'clientTime: integer|Long expected'; return null; }; @@ -180376,28 +187717,26 @@ export const Records = $root.Records = (() => { * @returns {Records.FilesAddRequest} FilesAddRequest */ FilesAddRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Records.FilesAddRequest) - return object; + if (object instanceof $root.Records.FilesAddRequest) return object; let message = new $root.Records.FilesAddRequest(); if (object.files) { - if (!Array.isArray(object.files)) - throw TypeError(".Records.FilesAddRequest.files: array expected"); + if (!Array.isArray(object.files)) throw TypeError('.Records.FilesAddRequest.files: array expected'); message.files = []; for (let i = 0; i < object.files.length; ++i) { - if (typeof object.files[i] !== "object") - throw TypeError(".Records.FilesAddRequest.files: object expected"); + if (typeof object.files[i] !== 'object') + throw TypeError('.Records.FilesAddRequest.files: object expected'); message.files[i] = $root.Records.File.fromObject(object.files[i]); } } if (object.clientTime != null) - if ($util.Long) - (message.clientTime = $util.Long.fromValue(object.clientTime)).unsigned = 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 ($util.Long) (message.clientTime = $util.Long.fromValue(object.clientTime)).unsigned = 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(); return message; }; @@ -180411,27 +187750,33 @@ export const Records = $root.Records = (() => { * @returns {Object.} Plain object */ FilesAddRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.files = []; + if (options.arrays || options.defaults) object.files = []; 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() : long; - } else - object.clientTime = options.longs === String ? "0" : 0; + object.clientTime = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.clientTime = options.longs === String ? '0' : 0; if (message.files && message.files.length) { object.files = []; for (let j = 0; j < message.files.length; ++j) object.files[j] = $root.Records.File.toObject(message.files[j], options); } - if (message.clientTime != null && message.hasOwnProperty("clientTime")) - if (typeof message.clientTime === "number") + if (message.clientTime != null && message.hasOwnProperty('clientTime')) + 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; + 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; return object; }; @@ -180456,9 +187801,9 @@ export const Records = $root.Records = (() => { */ FilesAddRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Records.FilesAddRequest"; + return typeUrlPrefix + '/Records.FilesAddRequest'; }; return FilesAddRequest; @@ -180471,15 +187816,15 @@ export const Records = $root.Records = (() => { * @property {number} FA_SUCCESS=0 FA_SUCCESS value * @property {number} FA_ERROR=1 FA_ERROR value */ - Records.FileAddResult = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "FA_SUCCESS"] = 0; - values[valuesById[1] = "FA_ERROR"] = 1; + Records.FileAddResult = (function () { + const valuesById = {}, + values = Object.create(valuesById); + values[(valuesById[0] = 'FA_SUCCESS')] = 0; + values[(valuesById[1] = 'FA_ERROR')] = 1; return values; })(); - Records.FileAddStatus = (function() { - + Records.FileAddStatus = (function () { /** * Properties of a FileAddStatus. * @memberof Records @@ -180503,8 +187848,7 @@ export const Records = $root.Records = (() => { function FileAddStatus(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -180529,7 +187873,7 @@ export const Records = $root.Records = (() => { * @memberof Records.FileAddStatus * @instance */ - FileAddStatus.prototype.url = ""; + FileAddStatus.prototype.url = ''; /** * FileAddStatus parameters. @@ -180537,7 +187881,7 @@ export const Records = $root.Records = (() => { * @memberof Records.FileAddStatus * @instance */ - FileAddStatus.prototype.parameters = ""; + FileAddStatus.prototype.parameters = ''; /** * FileAddStatus thumbnailParameters. @@ -180545,7 +187889,7 @@ export const Records = $root.Records = (() => { * @memberof Records.FileAddStatus * @instance */ - FileAddStatus.prototype.thumbnailParameters = ""; + FileAddStatus.prototype.thumbnailParameters = ''; /** * FileAddStatus successStatusCode. @@ -180577,20 +187921,19 @@ export const Records = $root.Records = (() => { * @returns {$protobuf.Writer} Writer */ FileAddStatus.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); - if (message.status != null && Object.hasOwnProperty.call(message, "status")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.status); - if (message.url != null && Object.hasOwnProperty.call(message, "url")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.url); - if (message.parameters != null && Object.hasOwnProperty.call(message, "parameters")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.parameters); - if (message.thumbnailParameters != null && Object.hasOwnProperty.call(message, "thumbnailParameters")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.thumbnailParameters); - if (message.successStatusCode != null && Object.hasOwnProperty.call(message, "successStatusCode")) - writer.uint32(/* id 6, wireType 0 =*/48).int32(message.successStatusCode); + if (!writer) writer = $Writer.create(); + if (message.recordUid != null && Object.hasOwnProperty.call(message, 'recordUid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.recordUid); + if (message.status != null && Object.hasOwnProperty.call(message, 'status')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int32(message.status); + if (message.url != null && Object.hasOwnProperty.call(message, 'url')) + writer.uint32(/* id 3, wireType 2 =*/ 26).string(message.url); + if (message.parameters != null && Object.hasOwnProperty.call(message, 'parameters')) + writer.uint32(/* id 4, wireType 2 =*/ 34).string(message.parameters); + if (message.thumbnailParameters != null && Object.hasOwnProperty.call(message, 'thumbnailParameters')) + writer.uint32(/* id 5, wireType 2 =*/ 42).string(message.thumbnailParameters); + if (message.successStatusCode != null && Object.hasOwnProperty.call(message, 'successStatusCode')) + writer.uint32(/* id 6, wireType 0 =*/ 48).int32(message.successStatusCode); return writer; }; @@ -180619,39 +187962,39 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ FileAddStatus.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.FileAddStatus(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Records.FileAddStatus(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.recordUid = reader.bytes(); break; } - case 2: { + case 2: { message.status = reader.int32(); break; } - case 3: { + case 3: { message.url = reader.string(); break; } - case 4: { + case 4: { message.parameters = reader.string(); break; } - case 5: { + case 5: { message.thumbnailParameters = reader.string(); break; } - case 6: { + case 6: { message.successStatusCode = reader.int32(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -180668,8 +188011,7 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ FileAddStatus.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -180682,31 +188024,31 @@ export const Records = $root.Records = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ FileAddStatus.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) - return "recordUid: buffer expected"; - if (message.status != null && message.hasOwnProperty("status")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.recordUid != null && message.hasOwnProperty('recordUid')) + if ( + !( + (message.recordUid && typeof message.recordUid.length === 'number') || + $util.isString(message.recordUid) + ) + ) + return 'recordUid: buffer expected'; + if (message.status != null && message.hasOwnProperty('status')) switch (message.status) { - default: - return "status: enum value expected"; - case 0: - case 1: - break; + default: + return 'status: enum value expected'; + case 0: + case 1: + break; } - if (message.url != null && message.hasOwnProperty("url")) - if (!$util.isString(message.url)) - return "url: string expected"; - if (message.parameters != null && message.hasOwnProperty("parameters")) - if (!$util.isString(message.parameters)) - return "parameters: string expected"; - if (message.thumbnailParameters != null && message.hasOwnProperty("thumbnailParameters")) - if (!$util.isString(message.thumbnailParameters)) - return "thumbnailParameters: string expected"; - if (message.successStatusCode != null && message.hasOwnProperty("successStatusCode")) - if (!$util.isInteger(message.successStatusCode)) - return "successStatusCode: integer expected"; + if (message.url != null && message.hasOwnProperty('url')) + if (!$util.isString(message.url)) return 'url: string expected'; + if (message.parameters != null && message.hasOwnProperty('parameters')) + if (!$util.isString(message.parameters)) return 'parameters: string expected'; + if (message.thumbnailParameters != null && message.hasOwnProperty('thumbnailParameters')) + if (!$util.isString(message.thumbnailParameters)) return 'thumbnailParameters: string expected'; + if (message.successStatusCode != null && message.hasOwnProperty('successStatusCode')) + if (!$util.isInteger(message.successStatusCode)) return 'successStatusCode: integer expected'; return null; }; @@ -180719,38 +188061,36 @@ export const Records = $root.Records = (() => { * @returns {Records.FileAddStatus} FileAddStatus */ FileAddStatus.fromObject = function fromObject(object) { - if (object instanceof $root.Records.FileAddStatus) - return object; + if (object instanceof $root.Records.FileAddStatus) return object; let message = new $root.Records.FileAddStatus(); 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 (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; switch (object.status) { - default: - if (typeof object.status === "number") { - message.status = object.status; + default: + if (typeof object.status === 'number') { + message.status = object.status; + break; + } + break; + case 'FA_SUCCESS': + case 0: + message.status = 0; + break; + case 'FA_ERROR': + case 1: + message.status = 1; break; - } - break; - case "FA_SUCCESS": - case 0: - message.status = 0; - break; - case "FA_ERROR": - case 1: - message.status = 1; - break; } - if (object.url != null) - message.url = String(object.url); - if (object.parameters != null) - message.parameters = String(object.parameters); - if (object.thumbnailParameters != null) - message.thumbnailParameters = String(object.thumbnailParameters); - if (object.successStatusCode != null) - message.successStatusCode = object.successStatusCode | 0; + if (object.url != null) message.url = String(object.url); + if (object.parameters != null) message.parameters = String(object.parameters); + if (object.thumbnailParameters != null) message.thumbnailParameters = String(object.thumbnailParameters); + if (object.successStatusCode != null) message.successStatusCode = object.successStatusCode | 0; return message; }; @@ -180764,34 +188104,40 @@ export const Records = $root.Records = (() => { * @returns {Object.} Plain object */ FileAddStatus.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.recordUid = ""; + if (options.bytes === String) object.recordUid = ''; else { object.recordUid = []; - if (options.bytes !== Array) - object.recordUid = $util.newBuffer(object.recordUid); + if (options.bytes !== Array) object.recordUid = $util.newBuffer(object.recordUid); } - object.status = options.enums === String ? "FA_SUCCESS" : 0; - object.url = ""; - object.parameters = ""; - object.thumbnailParameters = ""; + object.status = options.enums === String ? 'FA_SUCCESS' : 0; + object.url = ''; + object.parameters = ''; + object.thumbnailParameters = ''; object.successStatusCode = 0; } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; - if (message.status != null && message.hasOwnProperty("status")) - object.status = options.enums === String ? $root.Records.FileAddResult[message.status] === undefined ? message.status : $root.Records.FileAddResult[message.status] : message.status; - if (message.url != null && message.hasOwnProperty("url")) - object.url = message.url; - if (message.parameters != null && message.hasOwnProperty("parameters")) + if (message.recordUid != null && message.hasOwnProperty('recordUid')) + object.recordUid = + options.bytes === String + ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.recordUid) + : message.recordUid; + if (message.status != null && message.hasOwnProperty('status')) + object.status = + options.enums === String + ? $root.Records.FileAddResult[message.status] === undefined + ? message.status + : $root.Records.FileAddResult[message.status] + : message.status; + if (message.url != null && message.hasOwnProperty('url')) object.url = message.url; + if (message.parameters != null && message.hasOwnProperty('parameters')) object.parameters = message.parameters; - if (message.thumbnailParameters != null && message.hasOwnProperty("thumbnailParameters")) + if (message.thumbnailParameters != null && message.hasOwnProperty('thumbnailParameters')) object.thumbnailParameters = message.thumbnailParameters; - if (message.successStatusCode != null && message.hasOwnProperty("successStatusCode")) + if (message.successStatusCode != null && message.hasOwnProperty('successStatusCode')) object.successStatusCode = message.successStatusCode; return object; }; @@ -180817,16 +188163,15 @@ export const Records = $root.Records = (() => { */ FileAddStatus.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Records.FileAddStatus"; + return typeUrlPrefix + '/Records.FileAddStatus'; }; return FileAddStatus; })(); - Records.FilesAddResponse = (function() { - + Records.FilesAddResponse = (function () { /** * Properties of a FilesAddResponse. * @memberof Records @@ -180847,8 +188192,7 @@ export const Records = $root.Records = (() => { this.files = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -180865,7 +188209,7 @@ export const Records = $root.Records = (() => { * @memberof Records.FilesAddResponse * @instance */ - FilesAddResponse.prototype.revision = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + FilesAddResponse.prototype.revision = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * Creates a new FilesAddResponse instance using the specified properties. @@ -180889,13 +188233,15 @@ export const Records = $root.Records = (() => { * @returns {$protobuf.Writer} Writer */ FilesAddResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.files != null && message.files.length) for (let i = 0; i < message.files.length; ++i) - $root.Records.FileAddStatus.encode(message.files[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.revision != null && Object.hasOwnProperty.call(message, "revision")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.revision); + $root.Records.FileAddStatus.encode( + message.files[i], + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); + if (message.revision != null && Object.hasOwnProperty.call(message, 'revision')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int64(message.revision); return writer; }; @@ -180924,25 +188270,24 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ FilesAddResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.FilesAddResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Records.FilesAddResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (!(message.files && message.files.length)) - message.files = []; + case 1: { + if (!(message.files && message.files.length)) message.files = []; message.files.push($root.Records.FileAddStatus.decode(reader, reader.uint32())); break; } - case 2: { + case 2: { message.revision = reader.int64(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -180959,8 +188304,7 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ FilesAddResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -180973,20 +188317,24 @@ export const Records = $root.Records = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ FilesAddResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.files != null && message.hasOwnProperty("files")) { - if (!Array.isArray(message.files)) - return "files: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.files != null && message.hasOwnProperty('files')) { + if (!Array.isArray(message.files)) return 'files: array expected'; for (let i = 0; i < message.files.length; ++i) { let error = $root.Records.FileAddStatus.verify(message.files[i]); - if (error) - return "files." + error; + if (error) return 'files.' + error; } } - if (message.revision != null && message.hasOwnProperty("revision")) - if (!$util.isInteger(message.revision) && !(message.revision && $util.isInteger(message.revision.low) && $util.isInteger(message.revision.high))) - return "revision: integer|Long expected"; + if (message.revision != null && message.hasOwnProperty('revision')) + if ( + !$util.isInteger(message.revision) && + !( + message.revision && + $util.isInteger(message.revision.low) && + $util.isInteger(message.revision.high) + ) + ) + return 'revision: integer|Long expected'; return null; }; @@ -180999,28 +188347,26 @@ export const Records = $root.Records = (() => { * @returns {Records.FilesAddResponse} FilesAddResponse */ FilesAddResponse.fromObject = function fromObject(object) { - if (object instanceof $root.Records.FilesAddResponse) - return object; + if (object instanceof $root.Records.FilesAddResponse) return object; let message = new $root.Records.FilesAddResponse(); if (object.files) { - if (!Array.isArray(object.files)) - throw TypeError(".Records.FilesAddResponse.files: array expected"); + if (!Array.isArray(object.files)) throw TypeError('.Records.FilesAddResponse.files: array expected'); message.files = []; for (let i = 0; i < object.files.length; ++i) { - if (typeof object.files[i] !== "object") - throw TypeError(".Records.FilesAddResponse.files: object expected"); + if (typeof object.files[i] !== 'object') + throw TypeError('.Records.FilesAddResponse.files: object expected'); message.files[i] = $root.Records.FileAddStatus.fromObject(object.files[i]); } } if (object.revision != null) - if ($util.Long) - (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; - else if (typeof object.revision === "string") - message.revision = parseInt(object.revision, 10); - else if (typeof object.revision === "number") - message.revision = object.revision; - else if (typeof object.revision === "object") - message.revision = new $util.LongBits(object.revision.low >>> 0, object.revision.high >>> 0).toNumber(); + if ($util.Long) (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; + else if (typeof object.revision === 'string') message.revision = parseInt(object.revision, 10); + else if (typeof object.revision === 'number') message.revision = object.revision; + else if (typeof object.revision === 'object') + message.revision = new $util.LongBits( + object.revision.low >>> 0, + object.revision.high >>> 0 + ).toNumber(); return message; }; @@ -181034,27 +188380,30 @@ export const Records = $root.Records = (() => { * @returns {Object.} Plain object */ FilesAddResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.files = []; + if (options.arrays || options.defaults) object.files = []; if (options.defaults) if ($util.Long) { let long = new $util.Long(0, 0, false); - object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.revision = options.longs === String ? "0" : 0; + object.revision = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.revision = options.longs === String ? '0' : 0; if (message.files && message.files.length) { object.files = []; for (let j = 0; j < message.files.length; ++j) object.files[j] = $root.Records.FileAddStatus.toObject(message.files[j], options); } - if (message.revision != null && message.hasOwnProperty("revision")) - if (typeof message.revision === "number") + if (message.revision != null && message.hasOwnProperty('revision')) + if (typeof message.revision === 'number') object.revision = options.longs === String ? String(message.revision) : message.revision; else - object.revision = options.longs === String ? $util.Long.prototype.toString.call(message.revision) : options.longs === Number ? new $util.LongBits(message.revision.low >>> 0, message.revision.high >>> 0).toNumber() : message.revision; + object.revision = + options.longs === String + ? $util.Long.prototype.toString.call(message.revision) + : options.longs === Number + ? new $util.LongBits(message.revision.low >>> 0, message.revision.high >>> 0).toNumber() + : message.revision; return object; }; @@ -181079,16 +188428,15 @@ export const Records = $root.Records = (() => { */ FilesAddResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Records.FilesAddResponse"; + return typeUrlPrefix + '/Records.FilesAddResponse'; }; return FilesAddResponse; })(); - Records.FilesGetRequest = (function() { - + Records.FilesGetRequest = (function () { /** * Properties of a FilesGetRequest. * @memberof Records @@ -181110,8 +188458,7 @@ export const Records = $root.Records = (() => { this.recordUids = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -181136,7 +188483,7 @@ export const Records = $root.Records = (() => { * @memberof Records.FilesGetRequest * @instance */ - FilesGetRequest.prototype.emergencyAccessAccountOwner = ""; + FilesGetRequest.prototype.emergencyAccessAccountOwner = ''; /** * Creates a new FilesGetRequest instance using the specified properties. @@ -181160,15 +188507,17 @@ export const Records = $root.Records = (() => { * @returns {$protobuf.Writer} Writer */ FilesGetRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.recordUids != null && message.recordUids.length) for (let i = 0; i < message.recordUids.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUids[i]); - if (message.forThumbnails != null && Object.hasOwnProperty.call(message, "forThumbnails")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.forThumbnails); - if (message.emergencyAccessAccountOwner != null && Object.hasOwnProperty.call(message, "emergencyAccessAccountOwner")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.emergencyAccessAccountOwner); + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.recordUids[i]); + if (message.forThumbnails != null && Object.hasOwnProperty.call(message, 'forThumbnails')) + writer.uint32(/* id 2, wireType 0 =*/ 16).bool(message.forThumbnails); + if ( + message.emergencyAccessAccountOwner != null && + Object.hasOwnProperty.call(message, 'emergencyAccessAccountOwner') + ) + writer.uint32(/* id 3, wireType 2 =*/ 26).string(message.emergencyAccessAccountOwner); return writer; }; @@ -181197,29 +188546,28 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ FilesGetRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.FilesGetRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Records.FilesGetRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (!(message.recordUids && message.recordUids.length)) - message.recordUids = []; + case 1: { + if (!(message.recordUids && message.recordUids.length)) message.recordUids = []; message.recordUids.push(reader.bytes()); break; } - case 2: { + case 2: { message.forThumbnails = reader.bool(); break; } - case 3: { + case 3: { message.emergencyAccessAccountOwner = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -181236,8 +188584,7 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ FilesGetRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -181250,21 +188597,23 @@ export const Records = $root.Records = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ FilesGetRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.recordUids != null && message.hasOwnProperty("recordUids")) { - if (!Array.isArray(message.recordUids)) - return "recordUids: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.recordUids != null && message.hasOwnProperty('recordUids')) { + if (!Array.isArray(message.recordUids)) return 'recordUids: array expected'; for (let i = 0; i < message.recordUids.length; ++i) - if (!(message.recordUids[i] && typeof message.recordUids[i].length === "number" || $util.isString(message.recordUids[i]))) - return "recordUids: buffer[] expected"; - } - if (message.forThumbnails != null && message.hasOwnProperty("forThumbnails")) - if (typeof message.forThumbnails !== "boolean") - return "forThumbnails: boolean expected"; - if (message.emergencyAccessAccountOwner != null && message.hasOwnProperty("emergencyAccessAccountOwner")) + if ( + !( + (message.recordUids[i] && typeof message.recordUids[i].length === 'number') || + $util.isString(message.recordUids[i]) + ) + ) + return 'recordUids: buffer[] expected'; + } + if (message.forThumbnails != null && message.hasOwnProperty('forThumbnails')) + if (typeof message.forThumbnails !== 'boolean') return 'forThumbnails: boolean expected'; + if (message.emergencyAccessAccountOwner != null && message.hasOwnProperty('emergencyAccessAccountOwner')) if (!$util.isString(message.emergencyAccessAccountOwner)) - return "emergencyAccessAccountOwner: string expected"; + return 'emergencyAccessAccountOwner: string expected'; return null; }; @@ -181277,21 +188626,22 @@ export const Records = $root.Records = (() => { * @returns {Records.FilesGetRequest} FilesGetRequest */ FilesGetRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Records.FilesGetRequest) - return object; + if (object instanceof $root.Records.FilesGetRequest) return object; let message = new $root.Records.FilesGetRequest(); if (object.recordUids) { if (!Array.isArray(object.recordUids)) - throw TypeError(".Records.FilesGetRequest.recordUids: array expected"); + throw TypeError('.Records.FilesGetRequest.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.forThumbnails != null) - message.forThumbnails = Boolean(object.forThumbnails); + 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.forThumbnails != null) message.forThumbnails = Boolean(object.forThumbnails); if (object.emergencyAccessAccountOwner != null) message.emergencyAccessAccountOwner = String(object.emergencyAccessAccountOwner); return message; @@ -181307,23 +188657,26 @@ export const Records = $root.Records = (() => { * @returns {Object.} Plain object */ FilesGetRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.recordUids = []; + if (options.arrays || options.defaults) object.recordUids = []; if (options.defaults) { object.forThumbnails = false; - object.emergencyAccessAccountOwner = ""; + object.emergencyAccessAccountOwner = ''; } 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]; - } - if (message.forThumbnails != null && message.hasOwnProperty("forThumbnails")) + 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]; + } + if (message.forThumbnails != null && message.hasOwnProperty('forThumbnails')) object.forThumbnails = message.forThumbnails; - if (message.emergencyAccessAccountOwner != null && message.hasOwnProperty("emergencyAccessAccountOwner")) + if (message.emergencyAccessAccountOwner != null && message.hasOwnProperty('emergencyAccessAccountOwner')) object.emergencyAccessAccountOwner = message.emergencyAccessAccountOwner; return object; }; @@ -181349,9 +188702,9 @@ export const Records = $root.Records = (() => { */ FilesGetRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Records.FilesGetRequest"; + return typeUrlPrefix + '/Records.FilesGetRequest'; }; return FilesGetRequest; @@ -181365,16 +188718,16 @@ export const Records = $root.Records = (() => { * @property {number} FG_ERROR=1 FG_ERROR value * @property {number} FG_ACCESS_DENIED=2 FG_ACCESS_DENIED value */ - Records.FileGetResult = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "FG_SUCCESS"] = 0; - values[valuesById[1] = "FG_ERROR"] = 1; - values[valuesById[2] = "FG_ACCESS_DENIED"] = 2; + Records.FileGetResult = (function () { + const valuesById = {}, + values = Object.create(valuesById); + values[(valuesById[0] = 'FG_SUCCESS')] = 0; + values[(valuesById[1] = 'FG_ERROR')] = 1; + values[(valuesById[2] = 'FG_ACCESS_DENIED')] = 2; return values; })(); - Records.FileGetStatus = (function() { - + Records.FileGetStatus = (function () { /** * Properties of a FileGetStatus. * @memberof Records @@ -181397,8 +188750,7 @@ export const Records = $root.Records = (() => { function FileGetStatus(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -181423,7 +188775,7 @@ export const Records = $root.Records = (() => { * @memberof Records.FileGetStatus * @instance */ - FileGetStatus.prototype.url = ""; + FileGetStatus.prototype.url = ''; /** * FileGetStatus successStatusCode. @@ -181463,18 +188815,17 @@ export const Records = $root.Records = (() => { * @returns {$protobuf.Writer} Writer */ FileGetStatus.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); - if (message.status != null && Object.hasOwnProperty.call(message, "status")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.status); - if (message.url != null && Object.hasOwnProperty.call(message, "url")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.url); - if (message.successStatusCode != null && Object.hasOwnProperty.call(message, "successStatusCode")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.successStatusCode); - if (message.fileKeyType != null && Object.hasOwnProperty.call(message, "fileKeyType")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.fileKeyType); + if (!writer) writer = $Writer.create(); + if (message.recordUid != null && Object.hasOwnProperty.call(message, 'recordUid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.recordUid); + if (message.status != null && Object.hasOwnProperty.call(message, 'status')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int32(message.status); + if (message.url != null && Object.hasOwnProperty.call(message, 'url')) + writer.uint32(/* id 3, wireType 2 =*/ 26).string(message.url); + if (message.successStatusCode != null && Object.hasOwnProperty.call(message, 'successStatusCode')) + writer.uint32(/* id 4, wireType 0 =*/ 32).int32(message.successStatusCode); + if (message.fileKeyType != null && Object.hasOwnProperty.call(message, 'fileKeyType')) + writer.uint32(/* id 5, wireType 0 =*/ 40).int32(message.fileKeyType); return writer; }; @@ -181503,35 +188854,35 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ FileGetStatus.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.FileGetStatus(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Records.FileGetStatus(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.recordUid = reader.bytes(); break; } - case 2: { + case 2: { message.status = reader.int32(); break; } - case 3: { + case 3: { message.url = reader.string(); break; } - case 4: { + case 4: { message.successStatusCode = reader.int32(); break; } - case 5: { + case 5: { message.fileKeyType = reader.int32(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -181548,8 +188899,7 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ FileGetStatus.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -181562,38 +188912,40 @@ export const Records = $root.Records = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ FileGetStatus.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) - return "recordUid: buffer expected"; - if (message.status != null && message.hasOwnProperty("status")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.recordUid != null && message.hasOwnProperty('recordUid')) + if ( + !( + (message.recordUid && typeof message.recordUid.length === 'number') || + $util.isString(message.recordUid) + ) + ) + return 'recordUid: buffer expected'; + if (message.status != null && message.hasOwnProperty('status')) switch (message.status) { - default: - return "status: enum value expected"; - case 0: - case 1: - case 2: - break; + default: + return 'status: enum value expected'; + case 0: + case 1: + case 2: + break; } - if (message.url != null && message.hasOwnProperty("url")) - if (!$util.isString(message.url)) - return "url: string expected"; - if (message.successStatusCode != null && message.hasOwnProperty("successStatusCode")) - if (!$util.isInteger(message.successStatusCode)) - return "successStatusCode: integer expected"; - if (message.fileKeyType != null && message.hasOwnProperty("fileKeyType")) + if (message.url != null && message.hasOwnProperty('url')) + if (!$util.isString(message.url)) return 'url: string expected'; + if (message.successStatusCode != null && message.hasOwnProperty('successStatusCode')) + if (!$util.isInteger(message.successStatusCode)) return 'successStatusCode: integer expected'; + if (message.fileKeyType != null && message.hasOwnProperty('fileKeyType')) switch (message.fileKeyType) { - default: - return "fileKeyType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - break; + default: + return 'fileKeyType: enum value expected'; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + break; } return null; }; @@ -181607,73 +188959,73 @@ export const Records = $root.Records = (() => { * @returns {Records.FileGetStatus} FileGetStatus */ FileGetStatus.fromObject = function fromObject(object) { - if (object instanceof $root.Records.FileGetStatus) - return object; + if (object instanceof $root.Records.FileGetStatus) return object; let message = new $root.Records.FileGetStatus(); 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 (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; switch (object.status) { - default: - if (typeof object.status === "number") { - message.status = object.status; - break; - } - break; - case "FG_SUCCESS": - case 0: - message.status = 0; - break; - case "FG_ERROR": - case 1: - message.status = 1; - break; - case "FG_ACCESS_DENIED": - case 2: - message.status = 2; - break; - } - if (object.url != null) - message.url = String(object.url); - if (object.successStatusCode != null) - message.successStatusCode = object.successStatusCode | 0; + default: + if (typeof object.status === 'number') { + message.status = object.status; + break; + } + break; + case 'FG_SUCCESS': + case 0: + message.status = 0; + break; + case 'FG_ERROR': + case 1: + message.status = 1; + break; + case 'FG_ACCESS_DENIED': + case 2: + message.status = 2; + break; + } + if (object.url != null) message.url = String(object.url); + if (object.successStatusCode != null) message.successStatusCode = object.successStatusCode | 0; switch (object.fileKeyType) { - default: - if (typeof object.fileKeyType === "number") { - message.fileKeyType = object.fileKeyType; - break; - } - break; - case "NO_KEY": - case 0: - message.fileKeyType = 0; - break; - case "ENCRYPTED_BY_DATA_KEY": - case 1: - message.fileKeyType = 1; - break; - case "ENCRYPTED_BY_PUBLIC_KEY": - case 2: - message.fileKeyType = 2; - break; - case "ENCRYPTED_BY_DATA_KEY_GCM": - case 3: - message.fileKeyType = 3; - break; - case "ENCRYPTED_BY_PUBLIC_KEY_ECC": - case 4: - message.fileKeyType = 4; - break; - case "ENCRYPTED_BY_ROOT_KEY_CBC": - case 5: - message.fileKeyType = 5; - break; - case "ENCRYPTED_BY_ROOT_KEY_GCM": - case 6: - message.fileKeyType = 6; - break; + default: + if (typeof object.fileKeyType === 'number') { + message.fileKeyType = object.fileKeyType; + break; + } + break; + case 'NO_KEY': + case 0: + message.fileKeyType = 0; + break; + case 'ENCRYPTED_BY_DATA_KEY': + case 1: + message.fileKeyType = 1; + break; + case 'ENCRYPTED_BY_PUBLIC_KEY': + case 2: + message.fileKeyType = 2; + break; + case 'ENCRYPTED_BY_DATA_KEY_GCM': + case 3: + message.fileKeyType = 3; + break; + case 'ENCRYPTED_BY_PUBLIC_KEY_ECC': + case 4: + message.fileKeyType = 4; + break; + case 'ENCRYPTED_BY_ROOT_KEY_CBC': + case 5: + message.fileKeyType = 5; + break; + case 'ENCRYPTED_BY_ROOT_KEY_GCM': + case 6: + message.fileKeyType = 6; + break; } return message; }; @@ -181688,32 +189040,43 @@ export const Records = $root.Records = (() => { * @returns {Object.} Plain object */ FileGetStatus.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.recordUid = ""; + if (options.bytes === String) object.recordUid = ''; else { object.recordUid = []; - if (options.bytes !== Array) - object.recordUid = $util.newBuffer(object.recordUid); + if (options.bytes !== Array) object.recordUid = $util.newBuffer(object.recordUid); } - object.status = options.enums === String ? "FG_SUCCESS" : 0; - object.url = ""; + object.status = options.enums === String ? 'FG_SUCCESS' : 0; + object.url = ''; object.successStatusCode = 0; - object.fileKeyType = options.enums === String ? "NO_KEY" : 0; - } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; - if (message.status != null && message.hasOwnProperty("status")) - object.status = options.enums === String ? $root.Records.FileGetResult[message.status] === undefined ? message.status : $root.Records.FileGetResult[message.status] : message.status; - if (message.url != null && message.hasOwnProperty("url")) - object.url = message.url; - if (message.successStatusCode != null && message.hasOwnProperty("successStatusCode")) + object.fileKeyType = options.enums === String ? 'NO_KEY' : 0; + } + if (message.recordUid != null && message.hasOwnProperty('recordUid')) + object.recordUid = + options.bytes === String + ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.recordUid) + : message.recordUid; + if (message.status != null && message.hasOwnProperty('status')) + object.status = + options.enums === String + ? $root.Records.FileGetResult[message.status] === undefined + ? message.status + : $root.Records.FileGetResult[message.status] + : message.status; + if (message.url != null && message.hasOwnProperty('url')) object.url = message.url; + if (message.successStatusCode != null && message.hasOwnProperty('successStatusCode')) object.successStatusCode = message.successStatusCode; - if (message.fileKeyType != null && message.hasOwnProperty("fileKeyType")) - object.fileKeyType = options.enums === String ? $root.Records.RecordKeyType[message.fileKeyType] === undefined ? message.fileKeyType : $root.Records.RecordKeyType[message.fileKeyType] : message.fileKeyType; + if (message.fileKeyType != null && message.hasOwnProperty('fileKeyType')) + object.fileKeyType = + options.enums === String + ? $root.Records.RecordKeyType[message.fileKeyType] === undefined + ? message.fileKeyType + : $root.Records.RecordKeyType[message.fileKeyType] + : message.fileKeyType; return object; }; @@ -181738,16 +189101,15 @@ export const Records = $root.Records = (() => { */ FileGetStatus.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Records.FileGetStatus"; + return typeUrlPrefix + '/Records.FileGetStatus'; }; return FileGetStatus; })(); - Records.FilesGetResponse = (function() { - + Records.FilesGetResponse = (function () { /** * Properties of a FilesGetResponse. * @memberof Records @@ -181767,8 +189129,7 @@ export const Records = $root.Records = (() => { this.files = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -181801,11 +189162,13 @@ export const Records = $root.Records = (() => { * @returns {$protobuf.Writer} Writer */ FilesGetResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.files != null && message.files.length) for (let i = 0; i < message.files.length; ++i) - $root.Records.FileGetStatus.encode(message.files[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.Records.FileGetStatus.encode( + message.files[i], + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); return writer; }; @@ -181834,21 +189197,20 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ FilesGetResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.FilesGetResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Records.FilesGetResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (!(message.files && message.files.length)) - message.files = []; + case 1: { + if (!(message.files && message.files.length)) message.files = []; message.files.push($root.Records.FileGetStatus.decode(reader, reader.uint32())); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -181865,8 +189227,7 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ FilesGetResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -181879,15 +189240,12 @@ export const Records = $root.Records = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ FilesGetResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.files != null && message.hasOwnProperty("files")) { - if (!Array.isArray(message.files)) - return "files: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.files != null && message.hasOwnProperty('files')) { + if (!Array.isArray(message.files)) return 'files: array expected'; for (let i = 0; i < message.files.length; ++i) { let error = $root.Records.FileGetStatus.verify(message.files[i]); - if (error) - return "files." + error; + if (error) return 'files.' + error; } } return null; @@ -181902,16 +189260,14 @@ export const Records = $root.Records = (() => { * @returns {Records.FilesGetResponse} FilesGetResponse */ FilesGetResponse.fromObject = function fromObject(object) { - if (object instanceof $root.Records.FilesGetResponse) - return object; + if (object instanceof $root.Records.FilesGetResponse) return object; let message = new $root.Records.FilesGetResponse(); if (object.files) { - if (!Array.isArray(object.files)) - throw TypeError(".Records.FilesGetResponse.files: array expected"); + if (!Array.isArray(object.files)) throw TypeError('.Records.FilesGetResponse.files: array expected'); message.files = []; for (let i = 0; i < object.files.length; ++i) { - if (typeof object.files[i] !== "object") - throw TypeError(".Records.FilesGetResponse.files: object expected"); + if (typeof object.files[i] !== 'object') + throw TypeError('.Records.FilesGetResponse.files: object expected'); message.files[i] = $root.Records.FileGetStatus.fromObject(object.files[i]); } } @@ -181928,11 +189284,9 @@ export const Records = $root.Records = (() => { * @returns {Object.} Plain object */ FilesGetResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.files = []; + if (options.arrays || options.defaults) object.files = []; if (message.files && message.files.length) { object.files = []; for (let j = 0; j < message.files.length; ++j) @@ -181962,16 +189316,15 @@ export const Records = $root.Records = (() => { */ FilesGetResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Records.FilesGetResponse"; + return typeUrlPrefix + '/Records.FilesGetResponse'; }; return FilesGetResponse; })(); - Records.ApplicationAddRequest = (function() { - + Records.ApplicationAddRequest = (function () { /** * Properties of an ApplicationAddRequest. * @memberof Records @@ -181994,8 +189347,7 @@ export const Records = $root.Records = (() => { function ApplicationAddRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -182020,7 +189372,7 @@ export const Records = $root.Records = (() => { * @memberof Records.ApplicationAddRequest * @instance */ - ApplicationAddRequest.prototype.clientModifiedTime = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + ApplicationAddRequest.prototype.clientModifiedTime = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * ApplicationAddRequest data. @@ -182060,18 +189412,20 @@ export const Records = $root.Records = (() => { * @returns {$protobuf.Writer} Writer */ ApplicationAddRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.appUid != null && Object.hasOwnProperty.call(message, "appUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.appUid); - if (message.recordKey != null && Object.hasOwnProperty.call(message, "recordKey")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.recordKey); - if (message.clientModifiedTime != null && Object.hasOwnProperty.call(message, "clientModifiedTime")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.clientModifiedTime); - if (message.data != null && Object.hasOwnProperty.call(message, "data")) - writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.data); - if (message.audit != null && Object.hasOwnProperty.call(message, "audit")) - $root.Records.RecordAudit.encode(message.audit, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (!writer) writer = $Writer.create(); + if (message.appUid != null && Object.hasOwnProperty.call(message, 'appUid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.appUid); + if (message.recordKey != null && Object.hasOwnProperty.call(message, 'recordKey')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.recordKey); + if (message.clientModifiedTime != null && Object.hasOwnProperty.call(message, 'clientModifiedTime')) + writer.uint32(/* id 3, wireType 0 =*/ 24).int64(message.clientModifiedTime); + if (message.data != null && Object.hasOwnProperty.call(message, 'data')) + writer.uint32(/* id 4, wireType 2 =*/ 34).bytes(message.data); + if (message.audit != null && Object.hasOwnProperty.call(message, 'audit')) + $root.Records.RecordAudit.encode( + message.audit, + writer.uint32(/* id 5, wireType 2 =*/ 42).fork() + ).ldelim(); return writer; }; @@ -182100,35 +189454,35 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ApplicationAddRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.ApplicationAddRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Records.ApplicationAddRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.appUid = reader.bytes(); break; } - case 2: { + case 2: { message.recordKey = reader.bytes(); break; } - case 3: { + case 3: { message.clientModifiedTime = reader.int64(); break; } - case 4: { + case 4: { message.data = reader.bytes(); break; } - case 5: { + case 5: { message.audit = $root.Records.RecordAudit.decode(reader, reader.uint32()); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -182145,8 +189499,7 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ApplicationAddRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -182159,24 +189512,34 @@ export const Records = $root.Records = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ ApplicationAddRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.appUid != null && message.hasOwnProperty("appUid")) - if (!(message.appUid && typeof message.appUid.length === "number" || $util.isString(message.appUid))) - return "appUid: buffer expected"; - if (message.recordKey != null && message.hasOwnProperty("recordKey")) - if (!(message.recordKey && typeof message.recordKey.length === "number" || $util.isString(message.recordKey))) - return "recordKey: buffer expected"; - if (message.clientModifiedTime != null && message.hasOwnProperty("clientModifiedTime")) - if (!$util.isInteger(message.clientModifiedTime) && !(message.clientModifiedTime && $util.isInteger(message.clientModifiedTime.low) && $util.isInteger(message.clientModifiedTime.high))) - return "clientModifiedTime: integer|Long expected"; - if (message.data != null && message.hasOwnProperty("data")) - if (!(message.data && typeof message.data.length === "number" || $util.isString(message.data))) - return "data: buffer expected"; - if (message.audit != null && message.hasOwnProperty("audit")) { + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.appUid != null && message.hasOwnProperty('appUid')) + if (!((message.appUid && typeof message.appUid.length === 'number') || $util.isString(message.appUid))) + return 'appUid: buffer expected'; + if (message.recordKey != null && message.hasOwnProperty('recordKey')) + if ( + !( + (message.recordKey && typeof message.recordKey.length === 'number') || + $util.isString(message.recordKey) + ) + ) + return 'recordKey: buffer expected'; + if (message.clientModifiedTime != null && message.hasOwnProperty('clientModifiedTime')) + if ( + !$util.isInteger(message.clientModifiedTime) && + !( + message.clientModifiedTime && + $util.isInteger(message.clientModifiedTime.low) && + $util.isInteger(message.clientModifiedTime.high) + ) + ) + return 'clientModifiedTime: integer|Long expected'; + if (message.data != null && message.hasOwnProperty('data')) + if (!((message.data && typeof message.data.length === 'number') || $util.isString(message.data))) + return 'data: buffer expected'; + if (message.audit != null && message.hasOwnProperty('audit')) { let error = $root.Records.RecordAudit.verify(message.audit); - if (error) - return "audit." + error; + if (error) return 'audit.' + error; } return null; }; @@ -182190,36 +189553,47 @@ export const Records = $root.Records = (() => { * @returns {Records.ApplicationAddRequest} ApplicationAddRequest */ ApplicationAddRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Records.ApplicationAddRequest) - return object; + if (object instanceof $root.Records.ApplicationAddRequest) return object; let message = new $root.Records.ApplicationAddRequest(); if (object.appUid != null) - if (typeof object.appUid === "string") - $util.base64.decode(object.appUid, message.appUid = $util.newBuffer($util.base64.length(object.appUid)), 0); - else if (object.appUid.length >= 0) - message.appUid = object.appUid; + if (typeof object.appUid === 'string') + $util.base64.decode( + object.appUid, + (message.appUid = $util.newBuffer($util.base64.length(object.appUid))), + 0 + ); + else if (object.appUid.length >= 0) message.appUid = object.appUid; if (object.recordKey != null) - if (typeof object.recordKey === "string") - $util.base64.decode(object.recordKey, message.recordKey = $util.newBuffer($util.base64.length(object.recordKey)), 0); - else if (object.recordKey.length >= 0) - message.recordKey = object.recordKey; + if (typeof object.recordKey === 'string') + $util.base64.decode( + object.recordKey, + (message.recordKey = $util.newBuffer($util.base64.length(object.recordKey))), + 0 + ); + else if (object.recordKey.length >= 0) message.recordKey = object.recordKey; if (object.clientModifiedTime != null) if ($util.Long) (message.clientModifiedTime = $util.Long.fromValue(object.clientModifiedTime)).unsigned = false; - else if (typeof object.clientModifiedTime === "string") + else if (typeof object.clientModifiedTime === 'string') message.clientModifiedTime = parseInt(object.clientModifiedTime, 10); - else if (typeof object.clientModifiedTime === "number") + else if (typeof object.clientModifiedTime === 'number') message.clientModifiedTime = object.clientModifiedTime; - else if (typeof object.clientModifiedTime === "object") - message.clientModifiedTime = new $util.LongBits(object.clientModifiedTime.low >>> 0, object.clientModifiedTime.high >>> 0).toNumber(); + else if (typeof object.clientModifiedTime === 'object') + message.clientModifiedTime = new $util.LongBits( + object.clientModifiedTime.low >>> 0, + object.clientModifiedTime.high >>> 0 + ).toNumber(); if (object.data != null) - if (typeof object.data === "string") - $util.base64.decode(object.data, message.data = $util.newBuffer($util.base64.length(object.data)), 0); - else if (object.data.length >= 0) - message.data = object.data; + if (typeof object.data === 'string') + $util.base64.decode( + object.data, + (message.data = $util.newBuffer($util.base64.length(object.data))), + 0 + ); + else if (object.data.length >= 0) message.data = object.data; if (object.audit != null) { - if (typeof object.audit !== "object") - throw TypeError(".Records.ApplicationAddRequest.audit: object expected"); + if (typeof object.audit !== 'object') + throw TypeError('.Records.ApplicationAddRequest.audit: object expected'); message.audit = $root.Records.RecordAudit.fromObject(object.audit); } return message; @@ -182235,50 +189609,67 @@ export const Records = $root.Records = (() => { * @returns {Object.} Plain object */ ApplicationAddRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.appUid = ""; + if (options.bytes === String) object.appUid = ''; else { object.appUid = []; - if (options.bytes !== Array) - object.appUid = $util.newBuffer(object.appUid); + if (options.bytes !== Array) object.appUid = $util.newBuffer(object.appUid); } - if (options.bytes === String) - object.recordKey = ""; + if (options.bytes === String) object.recordKey = ''; else { object.recordKey = []; - if (options.bytes !== Array) - object.recordKey = $util.newBuffer(object.recordKey); + if (options.bytes !== Array) object.recordKey = $util.newBuffer(object.recordKey); } if ($util.Long) { let long = new $util.Long(0, 0, false); - object.clientModifiedTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.clientModifiedTime = options.longs === String ? "0" : 0; - if (options.bytes === String) - object.data = ""; + object.clientModifiedTime = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.clientModifiedTime = options.longs === String ? '0' : 0; + if (options.bytes === String) object.data = ''; else { object.data = []; - if (options.bytes !== Array) - object.data = $util.newBuffer(object.data); + if (options.bytes !== Array) object.data = $util.newBuffer(object.data); } object.audit = null; } - if (message.appUid != null && message.hasOwnProperty("appUid")) - object.appUid = options.bytes === String ? $util.base64.encode(message.appUid, 0, message.appUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.appUid) : message.appUid; - if (message.recordKey != null && message.hasOwnProperty("recordKey")) - object.recordKey = options.bytes === String ? $util.base64.encode(message.recordKey, 0, message.recordKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordKey) : message.recordKey; - if (message.clientModifiedTime != null && message.hasOwnProperty("clientModifiedTime")) - if (typeof message.clientModifiedTime === "number") - object.clientModifiedTime = options.longs === String ? String(message.clientModifiedTime) : message.clientModifiedTime; + if (message.appUid != null && message.hasOwnProperty('appUid')) + object.appUid = + options.bytes === String + ? $util.base64.encode(message.appUid, 0, message.appUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.appUid) + : message.appUid; + if (message.recordKey != null && message.hasOwnProperty('recordKey')) + object.recordKey = + options.bytes === String + ? $util.base64.encode(message.recordKey, 0, message.recordKey.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.recordKey) + : message.recordKey; + if (message.clientModifiedTime != null && message.hasOwnProperty('clientModifiedTime')) + if (typeof message.clientModifiedTime === 'number') + object.clientModifiedTime = + options.longs === String ? String(message.clientModifiedTime) : message.clientModifiedTime; else - object.clientModifiedTime = options.longs === String ? $util.Long.prototype.toString.call(message.clientModifiedTime) : options.longs === Number ? new $util.LongBits(message.clientModifiedTime.low >>> 0, message.clientModifiedTime.high >>> 0).toNumber() : message.clientModifiedTime; - if (message.data != null && message.hasOwnProperty("data")) - object.data = options.bytes === String ? $util.base64.encode(message.data, 0, message.data.length) : options.bytes === Array ? Array.prototype.slice.call(message.data) : message.data; - if (message.audit != null && message.hasOwnProperty("audit")) + object.clientModifiedTime = + options.longs === String + ? $util.Long.prototype.toString.call(message.clientModifiedTime) + : options.longs === Number + ? new $util.LongBits( + message.clientModifiedTime.low >>> 0, + message.clientModifiedTime.high >>> 0 + ).toNumber() + : message.clientModifiedTime; + if (message.data != null && message.hasOwnProperty('data')) + object.data = + options.bytes === String + ? $util.base64.encode(message.data, 0, message.data.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.data) + : message.data; + if (message.audit != null && message.hasOwnProperty('audit')) object.audit = $root.Records.RecordAudit.toObject(message.audit, options); return object; }; @@ -182304,9 +189695,9 @@ export const Records = $root.Records = (() => { */ ApplicationAddRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Records.ApplicationAddRequest"; + return typeUrlPrefix + '/Records.ApplicationAddRequest'; }; return ApplicationAddRequest; @@ -182320,16 +189711,16 @@ export const Records = $root.Records = (() => { * @property {number} DATA_ONLY=1 DATA_ONLY value * @property {number} SHARE_ONLY=2 SHARE_ONLY value */ - Records.RecordDetailsInclude = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "DATA_PLUS_SHARE"] = 0; - values[valuesById[1] = "DATA_ONLY"] = 1; - values[valuesById[2] = "SHARE_ONLY"] = 2; + Records.RecordDetailsInclude = (function () { + const valuesById = {}, + values = Object.create(valuesById); + values[(valuesById[0] = 'DATA_PLUS_SHARE')] = 0; + values[(valuesById[1] = 'DATA_ONLY')] = 1; + values[(valuesById[2] = 'SHARE_ONLY')] = 2; return values; })(); - Records.GetRecordDataWithAccessInfoRequest = (function() { - + Records.GetRecordDataWithAccessInfoRequest = (function () { /** * Properties of a GetRecordDataWithAccessInfoRequest. * @memberof Records @@ -182351,8 +189742,7 @@ export const Records = $root.Records = (() => { this.recordUid = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -182361,7 +189751,7 @@ export const Records = $root.Records = (() => { * @memberof Records.GetRecordDataWithAccessInfoRequest * @instance */ - GetRecordDataWithAccessInfoRequest.prototype.clientTime = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + GetRecordDataWithAccessInfoRequest.prototype.clientTime = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * GetRecordDataWithAccessInfoRequest recordUid. @@ -182401,15 +189791,14 @@ export const Records = $root.Records = (() => { * @returns {$protobuf.Writer} Writer */ GetRecordDataWithAccessInfoRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.clientTime != null && Object.hasOwnProperty.call(message, "clientTime")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.clientTime); + if (!writer) writer = $Writer.create(); + if (message.clientTime != null && Object.hasOwnProperty.call(message, 'clientTime')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int64(message.clientTime); if (message.recordUid != null && message.recordUid.length) for (let i = 0; i < message.recordUid.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.recordUid[i]); - if (message.recordDetailsInclude != null && Object.hasOwnProperty.call(message, "recordDetailsInclude")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.recordDetailsInclude); + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.recordUid[i]); + if (message.recordDetailsInclude != null && Object.hasOwnProperty.call(message, 'recordDetailsInclude')) + writer.uint32(/* id 3, wireType 0 =*/ 24).int32(message.recordDetailsInclude); return writer; }; @@ -182438,29 +189827,28 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ GetRecordDataWithAccessInfoRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.GetRecordDataWithAccessInfoRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Records.GetRecordDataWithAccessInfoRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.clientTime = reader.int64(); break; } - case 2: { - if (!(message.recordUid && message.recordUid.length)) - message.recordUid = []; + case 2: { + if (!(message.recordUid && message.recordUid.length)) message.recordUid = []; message.recordUid.push(reader.bytes()); break; } - case 3: { + case 3: { message.recordDetailsInclude = reader.int32(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -182477,8 +189865,7 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ GetRecordDataWithAccessInfoRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -182491,26 +189878,36 @@ export const Records = $root.Records = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ GetRecordDataWithAccessInfoRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.clientTime != null && message.hasOwnProperty("clientTime")) - if (!$util.isInteger(message.clientTime) && !(message.clientTime && $util.isInteger(message.clientTime.low) && $util.isInteger(message.clientTime.high))) - return "clientTime: integer|Long expected"; - if (message.recordUid != null && message.hasOwnProperty("recordUid")) { - if (!Array.isArray(message.recordUid)) - return "recordUid: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.clientTime != null && message.hasOwnProperty('clientTime')) + if ( + !$util.isInteger(message.clientTime) && + !( + message.clientTime && + $util.isInteger(message.clientTime.low) && + $util.isInteger(message.clientTime.high) + ) + ) + return 'clientTime: integer|Long expected'; + if (message.recordUid != null && message.hasOwnProperty('recordUid')) { + if (!Array.isArray(message.recordUid)) return 'recordUid: array expected'; for (let i = 0; i < message.recordUid.length; ++i) - if (!(message.recordUid[i] && typeof message.recordUid[i].length === "number" || $util.isString(message.recordUid[i]))) - return "recordUid: buffer[] expected"; - } - if (message.recordDetailsInclude != null && message.hasOwnProperty("recordDetailsInclude")) + if ( + !( + (message.recordUid[i] && typeof message.recordUid[i].length === 'number') || + $util.isString(message.recordUid[i]) + ) + ) + return 'recordUid: buffer[] expected'; + } + if (message.recordDetailsInclude != null && message.hasOwnProperty('recordDetailsInclude')) switch (message.recordDetailsInclude) { - default: - return "recordDetailsInclude: enum value expected"; - case 0: - case 1: - case 2: - break; + default: + return 'recordDetailsInclude: enum value expected'; + case 0: + case 1: + case 2: + break; } return null; }; @@ -182524,47 +189921,49 @@ export const Records = $root.Records = (() => { * @returns {Records.GetRecordDataWithAccessInfoRequest} GetRecordDataWithAccessInfoRequest */ GetRecordDataWithAccessInfoRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Records.GetRecordDataWithAccessInfoRequest) - return object; + if (object instanceof $root.Records.GetRecordDataWithAccessInfoRequest) return object; let message = new $root.Records.GetRecordDataWithAccessInfoRequest(); if (object.clientTime != null) - if ($util.Long) - (message.clientTime = $util.Long.fromValue(object.clientTime)).unsigned = 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 ($util.Long) (message.clientTime = $util.Long.fromValue(object.clientTime)).unsigned = 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.recordUid) { if (!Array.isArray(object.recordUid)) - throw TypeError(".Records.GetRecordDataWithAccessInfoRequest.recordUid: array expected"); + throw TypeError('.Records.GetRecordDataWithAccessInfoRequest.recordUid: array expected'); message.recordUid = []; for (let i = 0; i < object.recordUid.length; ++i) - if (typeof object.recordUid[i] === "string") - $util.base64.decode(object.recordUid[i], message.recordUid[i] = $util.newBuffer($util.base64.length(object.recordUid[i])), 0); - else if (object.recordUid[i].length >= 0) - message.recordUid[i] = object.recordUid[i]; + if (typeof object.recordUid[i] === 'string') + $util.base64.decode( + object.recordUid[i], + (message.recordUid[i] = $util.newBuffer($util.base64.length(object.recordUid[i]))), + 0 + ); + else if (object.recordUid[i].length >= 0) message.recordUid[i] = object.recordUid[i]; } switch (object.recordDetailsInclude) { - default: - if (typeof object.recordDetailsInclude === "number") { - message.recordDetailsInclude = object.recordDetailsInclude; + default: + if (typeof object.recordDetailsInclude === 'number') { + message.recordDetailsInclude = object.recordDetailsInclude; + break; + } + break; + case 'DATA_PLUS_SHARE': + case 0: + message.recordDetailsInclude = 0; + break; + case 'DATA_ONLY': + case 1: + message.recordDetailsInclude = 1; + break; + case 'SHARE_ONLY': + case 2: + message.recordDetailsInclude = 2; break; - } - break; - case "DATA_PLUS_SHARE": - case 0: - message.recordDetailsInclude = 0; - break; - case "DATA_ONLY": - case 1: - message.recordDetailsInclude = 1; - break; - case "SHARE_ONLY": - case 2: - message.recordDetailsInclude = 2; - break; } return message; }; @@ -182579,31 +189978,47 @@ export const Records = $root.Records = (() => { * @returns {Object.} Plain object */ GetRecordDataWithAccessInfoRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.recordUid = []; + if (options.arrays || options.defaults) object.recordUid = []; 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() : long; - } else - object.clientTime = options.longs === String ? "0" : 0; - object.recordDetailsInclude = options.enums === String ? "DATA_PLUS_SHARE" : 0; + object.clientTime = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.clientTime = options.longs === String ? '0' : 0; + object.recordDetailsInclude = options.enums === String ? 'DATA_PLUS_SHARE' : 0; } - if (message.clientTime != null && message.hasOwnProperty("clientTime")) - if (typeof message.clientTime === "number") + if (message.clientTime != null && message.hasOwnProperty('clientTime')) + 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; + 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.recordUid && message.recordUid.length) { object.recordUid = []; for (let j = 0; j < message.recordUid.length; ++j) - object.recordUid[j] = options.bytes === String ? $util.base64.encode(message.recordUid[j], 0, message.recordUid[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid[j]) : message.recordUid[j]; + object.recordUid[j] = + options.bytes === String + ? $util.base64.encode(message.recordUid[j], 0, message.recordUid[j].length) + : options.bytes === Array + ? Array.prototype.slice.call(message.recordUid[j]) + : message.recordUid[j]; } - if (message.recordDetailsInclude != null && message.hasOwnProperty("recordDetailsInclude")) - object.recordDetailsInclude = options.enums === String ? $root.Records.RecordDetailsInclude[message.recordDetailsInclude] === undefined ? message.recordDetailsInclude : $root.Records.RecordDetailsInclude[message.recordDetailsInclude] : message.recordDetailsInclude; + if (message.recordDetailsInclude != null && message.hasOwnProperty('recordDetailsInclude')) + object.recordDetailsInclude = + options.enums === String + ? $root.Records.RecordDetailsInclude[message.recordDetailsInclude] === undefined + ? message.recordDetailsInclude + : $root.Records.RecordDetailsInclude[message.recordDetailsInclude] + : message.recordDetailsInclude; return object; }; @@ -182628,16 +190043,15 @@ export const Records = $root.Records = (() => { */ GetRecordDataWithAccessInfoRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Records.GetRecordDataWithAccessInfoRequest"; + return typeUrlPrefix + '/Records.GetRecordDataWithAccessInfoRequest'; }; return GetRecordDataWithAccessInfoRequest; })(); - Records.UserPermission = (function() { - + Records.UserPermission = (function () { /** * Properties of a UserPermission. * @memberof Records @@ -182665,8 +190079,7 @@ export const Records = $root.Records = (() => { function UserPermission(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -182675,7 +190088,7 @@ export const Records = $root.Records = (() => { * @memberof Records.UserPermission * @instance */ - UserPermission.prototype.username = ""; + UserPermission.prototype.username = ''; /** * UserPermission owner. @@ -182723,7 +190136,7 @@ export const Records = $root.Records = (() => { * @memberof Records.UserPermission * @instance */ - UserPermission.prototype.expiration = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + UserPermission.prototype.expiration = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * UserPermission accountUid. @@ -182771,28 +190184,27 @@ export const Records = $root.Records = (() => { * @returns {$protobuf.Writer} Writer */ UserPermission.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.username != null && Object.hasOwnProperty.call(message, "username")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.username); - if (message.owner != null && Object.hasOwnProperty.call(message, "owner")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.owner); - if (message.shareAdmin != null && Object.hasOwnProperty.call(message, "shareAdmin")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.shareAdmin); - if (message.sharable != null && Object.hasOwnProperty.call(message, "sharable")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.sharable); - if (message.editable != null && Object.hasOwnProperty.call(message, "editable")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.editable); - if (message.awaitingApproval != null && Object.hasOwnProperty.call(message, "awaitingApproval")) - writer.uint32(/* id 6, wireType 0 =*/48).bool(message.awaitingApproval); - if (message.expiration != null && Object.hasOwnProperty.call(message, "expiration")) - writer.uint32(/* id 7, wireType 0 =*/56).int64(message.expiration); - if (message.accountUid != null && Object.hasOwnProperty.call(message, "accountUid")) - writer.uint32(/* id 8, wireType 2 =*/66).bytes(message.accountUid); - if (message.timerNotificationType != null && Object.hasOwnProperty.call(message, "timerNotificationType")) - writer.uint32(/* id 9, wireType 0 =*/72).int32(message.timerNotificationType); - if (message.rotateOnExpiration != null && Object.hasOwnProperty.call(message, "rotateOnExpiration")) - writer.uint32(/* id 10, wireType 0 =*/80).bool(message.rotateOnExpiration); + if (!writer) writer = $Writer.create(); + if (message.username != null && Object.hasOwnProperty.call(message, 'username')) + writer.uint32(/* id 1, wireType 2 =*/ 10).string(message.username); + if (message.owner != null && Object.hasOwnProperty.call(message, 'owner')) + writer.uint32(/* id 2, wireType 0 =*/ 16).bool(message.owner); + if (message.shareAdmin != null && Object.hasOwnProperty.call(message, 'shareAdmin')) + writer.uint32(/* id 3, wireType 0 =*/ 24).bool(message.shareAdmin); + if (message.sharable != null && Object.hasOwnProperty.call(message, 'sharable')) + writer.uint32(/* id 4, wireType 0 =*/ 32).bool(message.sharable); + if (message.editable != null && Object.hasOwnProperty.call(message, 'editable')) + writer.uint32(/* id 5, wireType 0 =*/ 40).bool(message.editable); + if (message.awaitingApproval != null && Object.hasOwnProperty.call(message, 'awaitingApproval')) + writer.uint32(/* id 6, wireType 0 =*/ 48).bool(message.awaitingApproval); + if (message.expiration != null && Object.hasOwnProperty.call(message, 'expiration')) + writer.uint32(/* id 7, wireType 0 =*/ 56).int64(message.expiration); + if (message.accountUid != null && Object.hasOwnProperty.call(message, 'accountUid')) + writer.uint32(/* id 8, wireType 2 =*/ 66).bytes(message.accountUid); + if (message.timerNotificationType != null && Object.hasOwnProperty.call(message, 'timerNotificationType')) + writer.uint32(/* id 9, wireType 0 =*/ 72).int32(message.timerNotificationType); + if (message.rotateOnExpiration != null && Object.hasOwnProperty.call(message, 'rotateOnExpiration')) + writer.uint32(/* id 10, wireType 0 =*/ 80).bool(message.rotateOnExpiration); return writer; }; @@ -182821,55 +190233,55 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ UserPermission.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.UserPermission(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Records.UserPermission(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.username = reader.string(); break; } - case 2: { + case 2: { message.owner = reader.bool(); break; } - case 3: { + case 3: { message.shareAdmin = reader.bool(); break; } - case 4: { + case 4: { message.sharable = reader.bool(); break; } - case 5: { + case 5: { message.editable = reader.bool(); break; } - case 6: { + case 6: { message.awaitingApproval = reader.bool(); break; } - case 7: { + case 7: { message.expiration = reader.int64(); break; } - case 8: { + case 8: { message.accountUid = reader.bytes(); break; } - case 9: { + case 9: { message.timerNotificationType = reader.int32(); break; } - case 10: { + case 10: { message.rotateOnExpiration = reader.bool(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -182886,8 +190298,7 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ UserPermission.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -182900,44 +190311,48 @@ export const Records = $root.Records = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ UserPermission.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.username != null && message.hasOwnProperty("username")) - if (!$util.isString(message.username)) - return "username: string expected"; - if (message.owner != null && message.hasOwnProperty("owner")) - if (typeof message.owner !== "boolean") - return "owner: boolean expected"; - if (message.shareAdmin != null && message.hasOwnProperty("shareAdmin")) - if (typeof message.shareAdmin !== "boolean") - return "shareAdmin: boolean expected"; - if (message.sharable != null && message.hasOwnProperty("sharable")) - if (typeof message.sharable !== "boolean") - return "sharable: boolean expected"; - if (message.editable != null && message.hasOwnProperty("editable")) - if (typeof message.editable !== "boolean") - return "editable: boolean expected"; - if (message.awaitingApproval != null && message.hasOwnProperty("awaitingApproval")) - if (typeof message.awaitingApproval !== "boolean") - return "awaitingApproval: boolean expected"; - if (message.expiration != null && message.hasOwnProperty("expiration")) - if (!$util.isInteger(message.expiration) && !(message.expiration && $util.isInteger(message.expiration.low) && $util.isInteger(message.expiration.high))) - return "expiration: integer|Long expected"; - if (message.accountUid != null && message.hasOwnProperty("accountUid")) - if (!(message.accountUid && typeof message.accountUid.length === "number" || $util.isString(message.accountUid))) - return "accountUid: buffer expected"; - if (message.timerNotificationType != null && message.hasOwnProperty("timerNotificationType")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.username != null && message.hasOwnProperty('username')) + if (!$util.isString(message.username)) return 'username: string expected'; + if (message.owner != null && message.hasOwnProperty('owner')) + if (typeof message.owner !== 'boolean') return 'owner: boolean expected'; + if (message.shareAdmin != null && message.hasOwnProperty('shareAdmin')) + if (typeof message.shareAdmin !== 'boolean') return 'shareAdmin: boolean expected'; + if (message.sharable != null && message.hasOwnProperty('sharable')) + if (typeof message.sharable !== 'boolean') return 'sharable: boolean expected'; + if (message.editable != null && message.hasOwnProperty('editable')) + if (typeof message.editable !== 'boolean') return 'editable: boolean expected'; + if (message.awaitingApproval != null && message.hasOwnProperty('awaitingApproval')) + if (typeof message.awaitingApproval !== 'boolean') return 'awaitingApproval: boolean expected'; + if (message.expiration != null && message.hasOwnProperty('expiration')) + if ( + !$util.isInteger(message.expiration) && + !( + message.expiration && + $util.isInteger(message.expiration.low) && + $util.isInteger(message.expiration.high) + ) + ) + return 'expiration: integer|Long expected'; + if (message.accountUid != null && message.hasOwnProperty('accountUid')) + if ( + !( + (message.accountUid && typeof message.accountUid.length === 'number') || + $util.isString(message.accountUid) + ) + ) + return 'accountUid: buffer expected'; + if (message.timerNotificationType != null && message.hasOwnProperty('timerNotificationType')) switch (message.timerNotificationType) { - default: - return "timerNotificationType: enum value expected"; - case 0: - case 1: - case 2: - break; + default: + return 'timerNotificationType: enum value expected'; + case 0: + case 1: + case 2: + break; } - if (message.rotateOnExpiration != null && message.hasOwnProperty("rotateOnExpiration")) - if (typeof message.rotateOnExpiration !== "boolean") - return "rotateOnExpiration: boolean expected"; + if (message.rotateOnExpiration != null && message.hasOwnProperty('rotateOnExpiration')) + if (typeof message.rotateOnExpiration !== 'boolean') return 'rotateOnExpiration: boolean expected'; return null; }; @@ -182950,57 +190365,52 @@ export const Records = $root.Records = (() => { * @returns {Records.UserPermission} UserPermission */ UserPermission.fromObject = function fromObject(object) { - if (object instanceof $root.Records.UserPermission) - return object; + if (object instanceof $root.Records.UserPermission) return object; let message = new $root.Records.UserPermission(); - if (object.username != null) - message.username = String(object.username); - if (object.owner != null) - message.owner = Boolean(object.owner); - if (object.shareAdmin != null) - message.shareAdmin = Boolean(object.shareAdmin); - if (object.sharable != null) - message.sharable = Boolean(object.sharable); - if (object.editable != null) - message.editable = Boolean(object.editable); - if (object.awaitingApproval != null) - message.awaitingApproval = Boolean(object.awaitingApproval); + if (object.username != null) message.username = String(object.username); + if (object.owner != null) message.owner = Boolean(object.owner); + if (object.shareAdmin != null) message.shareAdmin = Boolean(object.shareAdmin); + if (object.sharable != null) message.sharable = Boolean(object.sharable); + if (object.editable != null) message.editable = Boolean(object.editable); + if (object.awaitingApproval != null) message.awaitingApproval = Boolean(object.awaitingApproval); if (object.expiration != null) - if ($util.Long) - (message.expiration = $util.Long.fromValue(object.expiration)).unsigned = false; - else if (typeof object.expiration === "string") - message.expiration = parseInt(object.expiration, 10); - else if (typeof object.expiration === "number") - message.expiration = object.expiration; - else if (typeof object.expiration === "object") - message.expiration = new $util.LongBits(object.expiration.low >>> 0, object.expiration.high >>> 0).toNumber(); + if ($util.Long) (message.expiration = $util.Long.fromValue(object.expiration)).unsigned = false; + else if (typeof object.expiration === 'string') message.expiration = parseInt(object.expiration, 10); + else if (typeof object.expiration === 'number') message.expiration = object.expiration; + else if (typeof object.expiration === 'object') + message.expiration = new $util.LongBits( + object.expiration.low >>> 0, + object.expiration.high >>> 0 + ).toNumber(); if (object.accountUid != null) - if (typeof object.accountUid === "string") - $util.base64.decode(object.accountUid, message.accountUid = $util.newBuffer($util.base64.length(object.accountUid)), 0); - else if (object.accountUid.length >= 0) - message.accountUid = object.accountUid; + if (typeof object.accountUid === 'string') + $util.base64.decode( + object.accountUid, + (message.accountUid = $util.newBuffer($util.base64.length(object.accountUid))), + 0 + ); + else if (object.accountUid.length >= 0) message.accountUid = object.accountUid; switch (object.timerNotificationType) { - default: - if (typeof object.timerNotificationType === "number") { - message.timerNotificationType = object.timerNotificationType; + default: + if (typeof object.timerNotificationType === 'number') { + message.timerNotificationType = object.timerNotificationType; + break; + } + break; + case 'NOTIFICATION_OFF': + case 0: + message.timerNotificationType = 0; + break; + case 'NOTIFY_OWNER': + case 1: + message.timerNotificationType = 1; + break; + case 'NOTIFY_PRIVILEGED_USERS': + case 2: + message.timerNotificationType = 2; break; - } - break; - case "NOTIFICATION_OFF": - case 0: - message.timerNotificationType = 0; - break; - case "NOTIFY_OWNER": - case 1: - message.timerNotificationType = 1; - break; - case "NOTIFY_PRIVILEGED_USERS": - case 2: - message.timerNotificationType = 2; - break; } - if (object.rotateOnExpiration != null) - message.rotateOnExpiration = Boolean(object.rotateOnExpiration); + if (object.rotateOnExpiration != null) message.rotateOnExpiration = Boolean(object.rotateOnExpiration); return message; }; @@ -183014,11 +190424,10 @@ export const Records = $root.Records = (() => { * @returns {Object.} Plain object */ UserPermission.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - object.username = ""; + object.username = ''; object.owner = false; object.shareAdmin = false; object.sharable = false; @@ -183026,41 +190435,53 @@ export const Records = $root.Records = (() => { object.awaitingApproval = false; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.expiration = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.expiration = options.longs === String ? "0" : 0; - if (options.bytes === String) - object.accountUid = ""; + object.expiration = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.expiration = options.longs === String ? '0' : 0; + if (options.bytes === String) object.accountUid = ''; else { object.accountUid = []; - if (options.bytes !== Array) - object.accountUid = $util.newBuffer(object.accountUid); + if (options.bytes !== Array) object.accountUid = $util.newBuffer(object.accountUid); } - object.timerNotificationType = options.enums === String ? "NOTIFICATION_OFF" : 0; + object.timerNotificationType = options.enums === String ? 'NOTIFICATION_OFF' : 0; object.rotateOnExpiration = false; } - if (message.username != null && message.hasOwnProperty("username")) - object.username = message.username; - if (message.owner != null && message.hasOwnProperty("owner")) - object.owner = message.owner; - if (message.shareAdmin != null && message.hasOwnProperty("shareAdmin")) + if (message.username != null && message.hasOwnProperty('username')) object.username = message.username; + if (message.owner != null && message.hasOwnProperty('owner')) object.owner = message.owner; + if (message.shareAdmin != null && message.hasOwnProperty('shareAdmin')) object.shareAdmin = message.shareAdmin; - if (message.sharable != null && message.hasOwnProperty("sharable")) - object.sharable = message.sharable; - if (message.editable != null && message.hasOwnProperty("editable")) - object.editable = message.editable; - if (message.awaitingApproval != null && message.hasOwnProperty("awaitingApproval")) + if (message.sharable != null && message.hasOwnProperty('sharable')) object.sharable = message.sharable; + if (message.editable != null && message.hasOwnProperty('editable')) object.editable = message.editable; + if (message.awaitingApproval != null && message.hasOwnProperty('awaitingApproval')) object.awaitingApproval = message.awaitingApproval; - if (message.expiration != null && message.hasOwnProperty("expiration")) - if (typeof message.expiration === "number") + if (message.expiration != null && message.hasOwnProperty('expiration')) + if (typeof message.expiration === 'number') object.expiration = options.longs === String ? String(message.expiration) : message.expiration; else - object.expiration = options.longs === String ? $util.Long.prototype.toString.call(message.expiration) : options.longs === Number ? new $util.LongBits(message.expiration.low >>> 0, message.expiration.high >>> 0).toNumber() : message.expiration; - if (message.accountUid != null && message.hasOwnProperty("accountUid")) - object.accountUid = options.bytes === String ? $util.base64.encode(message.accountUid, 0, message.accountUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.accountUid) : message.accountUid; - if (message.timerNotificationType != null && message.hasOwnProperty("timerNotificationType")) - object.timerNotificationType = options.enums === String ? $root.Records.TimerNotificationType[message.timerNotificationType] === undefined ? message.timerNotificationType : $root.Records.TimerNotificationType[message.timerNotificationType] : message.timerNotificationType; - if (message.rotateOnExpiration != null && message.hasOwnProperty("rotateOnExpiration")) + object.expiration = + options.longs === String + ? $util.Long.prototype.toString.call(message.expiration) + : options.longs === Number + ? new $util.LongBits( + message.expiration.low >>> 0, + message.expiration.high >>> 0 + ).toNumber() + : message.expiration; + if (message.accountUid != null && message.hasOwnProperty('accountUid')) + object.accountUid = + options.bytes === String + ? $util.base64.encode(message.accountUid, 0, message.accountUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.accountUid) + : message.accountUid; + if (message.timerNotificationType != null && message.hasOwnProperty('timerNotificationType')) + object.timerNotificationType = + options.enums === String + ? $root.Records.TimerNotificationType[message.timerNotificationType] === undefined + ? message.timerNotificationType + : $root.Records.TimerNotificationType[message.timerNotificationType] + : message.timerNotificationType; + if (message.rotateOnExpiration != null && message.hasOwnProperty('rotateOnExpiration')) object.rotateOnExpiration = message.rotateOnExpiration; return object; }; @@ -183086,16 +190507,15 @@ export const Records = $root.Records = (() => { */ UserPermission.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Records.UserPermission"; + return typeUrlPrefix + '/Records.UserPermission'; }; return UserPermission; })(); - Records.SharedFolderPermission = (function() { - + Records.SharedFolderPermission = (function () { /** * Properties of a SharedFolderPermission. * @memberof Records @@ -183120,8 +190540,7 @@ export const Records = $root.Records = (() => { function SharedFolderPermission(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -183154,7 +190573,7 @@ export const Records = $root.Records = (() => { * @memberof Records.SharedFolderPermission * @instance */ - SharedFolderPermission.prototype.revision = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + SharedFolderPermission.prototype.revision = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * SharedFolderPermission expiration. @@ -183162,7 +190581,7 @@ export const Records = $root.Records = (() => { * @memberof Records.SharedFolderPermission * @instance */ - SharedFolderPermission.prototype.expiration = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + SharedFolderPermission.prototype.expiration = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * SharedFolderPermission timerNotificationType. @@ -183202,22 +190621,21 @@ export const Records = $root.Records = (() => { * @returns {$protobuf.Writer} Writer */ SharedFolderPermission.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, "sharedFolderUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.sharedFolderUid); - if (message.resharable != null && Object.hasOwnProperty.call(message, "resharable")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.resharable); - if (message.editable != null && Object.hasOwnProperty.call(message, "editable")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.editable); - if (message.revision != null && Object.hasOwnProperty.call(message, "revision")) - writer.uint32(/* id 4, wireType 0 =*/32).int64(message.revision); - if (message.expiration != null && Object.hasOwnProperty.call(message, "expiration")) - writer.uint32(/* id 5, wireType 0 =*/40).int64(message.expiration); - if (message.timerNotificationType != null && Object.hasOwnProperty.call(message, "timerNotificationType")) - writer.uint32(/* id 6, wireType 0 =*/48).int32(message.timerNotificationType); - if (message.rotateOnExpiration != null && Object.hasOwnProperty.call(message, "rotateOnExpiration")) - writer.uint32(/* id 7, wireType 0 =*/56).bool(message.rotateOnExpiration); + if (!writer) writer = $Writer.create(); + if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, 'sharedFolderUid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.sharedFolderUid); + if (message.resharable != null && Object.hasOwnProperty.call(message, 'resharable')) + writer.uint32(/* id 2, wireType 0 =*/ 16).bool(message.resharable); + if (message.editable != null && Object.hasOwnProperty.call(message, 'editable')) + writer.uint32(/* id 3, wireType 0 =*/ 24).bool(message.editable); + if (message.revision != null && Object.hasOwnProperty.call(message, 'revision')) + writer.uint32(/* id 4, wireType 0 =*/ 32).int64(message.revision); + if (message.expiration != null && Object.hasOwnProperty.call(message, 'expiration')) + writer.uint32(/* id 5, wireType 0 =*/ 40).int64(message.expiration); + if (message.timerNotificationType != null && Object.hasOwnProperty.call(message, 'timerNotificationType')) + writer.uint32(/* id 6, wireType 0 =*/ 48).int32(message.timerNotificationType); + if (message.rotateOnExpiration != null && Object.hasOwnProperty.call(message, 'rotateOnExpiration')) + writer.uint32(/* id 7, wireType 0 =*/ 56).bool(message.rotateOnExpiration); return writer; }; @@ -183246,43 +190664,43 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SharedFolderPermission.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.SharedFolderPermission(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Records.SharedFolderPermission(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.sharedFolderUid = reader.bytes(); break; } - case 2: { + case 2: { message.resharable = reader.bool(); break; } - case 3: { + case 3: { message.editable = reader.bool(); break; } - case 4: { + case 4: { message.revision = reader.int64(); break; } - case 5: { + case 5: { message.expiration = reader.int64(); break; } - case 6: { + case 6: { message.timerNotificationType = reader.int32(); break; } - case 7: { + case 7: { message.rotateOnExpiration = reader.bool(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -183299,8 +190717,7 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SharedFolderPermission.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -183313,35 +190730,50 @@ export const Records = $root.Records = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ SharedFolderPermission.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) - if (!(message.sharedFolderUid && typeof message.sharedFolderUid.length === "number" || $util.isString(message.sharedFolderUid))) - return "sharedFolderUid: buffer expected"; - if (message.resharable != null && message.hasOwnProperty("resharable")) - if (typeof message.resharable !== "boolean") - return "resharable: boolean expected"; - if (message.editable != null && message.hasOwnProperty("editable")) - if (typeof message.editable !== "boolean") - return "editable: boolean expected"; - if (message.revision != null && message.hasOwnProperty("revision")) - if (!$util.isInteger(message.revision) && !(message.revision && $util.isInteger(message.revision.low) && $util.isInteger(message.revision.high))) - return "revision: integer|Long expected"; - if (message.expiration != null && message.hasOwnProperty("expiration")) - if (!$util.isInteger(message.expiration) && !(message.expiration && $util.isInteger(message.expiration.low) && $util.isInteger(message.expiration.high))) - return "expiration: integer|Long expected"; - if (message.timerNotificationType != null && message.hasOwnProperty("timerNotificationType")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.sharedFolderUid != null && message.hasOwnProperty('sharedFolderUid')) + if ( + !( + (message.sharedFolderUid && typeof message.sharedFolderUid.length === 'number') || + $util.isString(message.sharedFolderUid) + ) + ) + return 'sharedFolderUid: buffer expected'; + if (message.resharable != null && message.hasOwnProperty('resharable')) + if (typeof message.resharable !== 'boolean') return 'resharable: boolean expected'; + if (message.editable != null && message.hasOwnProperty('editable')) + if (typeof message.editable !== 'boolean') return 'editable: boolean expected'; + if (message.revision != null && message.hasOwnProperty('revision')) + if ( + !$util.isInteger(message.revision) && + !( + message.revision && + $util.isInteger(message.revision.low) && + $util.isInteger(message.revision.high) + ) + ) + return 'revision: integer|Long expected'; + if (message.expiration != null && message.hasOwnProperty('expiration')) + if ( + !$util.isInteger(message.expiration) && + !( + message.expiration && + $util.isInteger(message.expiration.low) && + $util.isInteger(message.expiration.high) + ) + ) + return 'expiration: integer|Long expected'; + if (message.timerNotificationType != null && message.hasOwnProperty('timerNotificationType')) switch (message.timerNotificationType) { - default: - return "timerNotificationType: enum value expected"; - case 0: - case 1: - case 2: - break; + default: + return 'timerNotificationType: enum value expected'; + case 0: + case 1: + case 2: + break; } - if (message.rotateOnExpiration != null && message.hasOwnProperty("rotateOnExpiration")) - if (typeof message.rotateOnExpiration !== "boolean") - return "rotateOnExpiration: boolean expected"; + if (message.rotateOnExpiration != null && message.hasOwnProperty('rotateOnExpiration')) + if (typeof message.rotateOnExpiration !== 'boolean') return 'rotateOnExpiration: boolean expected'; return null; }; @@ -183354,58 +190786,57 @@ export const Records = $root.Records = (() => { * @returns {Records.SharedFolderPermission} SharedFolderPermission */ SharedFolderPermission.fromObject = function fromObject(object) { - if (object instanceof $root.Records.SharedFolderPermission) - return object; + if (object instanceof $root.Records.SharedFolderPermission) return object; let message = new $root.Records.SharedFolderPermission(); if (object.sharedFolderUid != null) - if (typeof object.sharedFolderUid === "string") - $util.base64.decode(object.sharedFolderUid, message.sharedFolderUid = $util.newBuffer($util.base64.length(object.sharedFolderUid)), 0); - else if (object.sharedFolderUid.length >= 0) - message.sharedFolderUid = object.sharedFolderUid; - if (object.resharable != null) - message.resharable = Boolean(object.resharable); - if (object.editable != null) - message.editable = Boolean(object.editable); + if (typeof object.sharedFolderUid === 'string') + $util.base64.decode( + object.sharedFolderUid, + (message.sharedFolderUid = $util.newBuffer($util.base64.length(object.sharedFolderUid))), + 0 + ); + else if (object.sharedFolderUid.length >= 0) message.sharedFolderUid = object.sharedFolderUid; + if (object.resharable != null) message.resharable = Boolean(object.resharable); + if (object.editable != null) message.editable = Boolean(object.editable); if (object.revision != null) - if ($util.Long) - (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; - else if (typeof object.revision === "string") - message.revision = parseInt(object.revision, 10); - else if (typeof object.revision === "number") - message.revision = object.revision; - else if (typeof object.revision === "object") - message.revision = new $util.LongBits(object.revision.low >>> 0, object.revision.high >>> 0).toNumber(); + if ($util.Long) (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; + else if (typeof object.revision === 'string') message.revision = parseInt(object.revision, 10); + else if (typeof object.revision === 'number') message.revision = object.revision; + else if (typeof object.revision === 'object') + message.revision = new $util.LongBits( + object.revision.low >>> 0, + object.revision.high >>> 0 + ).toNumber(); if (object.expiration != null) - if ($util.Long) - (message.expiration = $util.Long.fromValue(object.expiration)).unsigned = false; - else if (typeof object.expiration === "string") - message.expiration = parseInt(object.expiration, 10); - else if (typeof object.expiration === "number") - message.expiration = object.expiration; - else if (typeof object.expiration === "object") - message.expiration = new $util.LongBits(object.expiration.low >>> 0, object.expiration.high >>> 0).toNumber(); + if ($util.Long) (message.expiration = $util.Long.fromValue(object.expiration)).unsigned = false; + else if (typeof object.expiration === 'string') message.expiration = parseInt(object.expiration, 10); + else if (typeof object.expiration === 'number') message.expiration = object.expiration; + else if (typeof object.expiration === 'object') + message.expiration = new $util.LongBits( + object.expiration.low >>> 0, + object.expiration.high >>> 0 + ).toNumber(); switch (object.timerNotificationType) { - default: - if (typeof object.timerNotificationType === "number") { - message.timerNotificationType = object.timerNotificationType; + default: + if (typeof object.timerNotificationType === 'number') { + message.timerNotificationType = object.timerNotificationType; + break; + } + break; + case 'NOTIFICATION_OFF': + case 0: + message.timerNotificationType = 0; + break; + case 'NOTIFY_OWNER': + case 1: + message.timerNotificationType = 1; + break; + case 'NOTIFY_PRIVILEGED_USERS': + case 2: + message.timerNotificationType = 2; break; - } - break; - case "NOTIFICATION_OFF": - case 0: - message.timerNotificationType = 0; - break; - case "NOTIFY_OWNER": - case 1: - message.timerNotificationType = 1; - break; - case "NOTIFY_PRIVILEGED_USERS": - case 2: - message.timerNotificationType = 2; - break; } - if (object.rotateOnExpiration != null) - message.rotateOnExpiration = Boolean(object.rotateOnExpiration); + if (object.rotateOnExpiration != null) message.rotateOnExpiration = Boolean(object.rotateOnExpiration); return message; }; @@ -183419,51 +190850,70 @@ export const Records = $root.Records = (() => { * @returns {Object.} Plain object */ SharedFolderPermission.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.sharedFolderUid = ""; + if (options.bytes === String) object.sharedFolderUid = ''; else { object.sharedFolderUid = []; - if (options.bytes !== Array) - object.sharedFolderUid = $util.newBuffer(object.sharedFolderUid); + if (options.bytes !== Array) object.sharedFolderUid = $util.newBuffer(object.sharedFolderUid); } object.resharable = false; object.editable = false; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.revision = options.longs === String ? "0" : 0; + object.revision = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.revision = options.longs === String ? '0' : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.expiration = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.expiration = options.longs === String ? "0" : 0; - object.timerNotificationType = options.enums === String ? "NOTIFICATION_OFF" : 0; + object.expiration = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.expiration = options.longs === String ? '0' : 0; + object.timerNotificationType = options.enums === String ? 'NOTIFICATION_OFF' : 0; object.rotateOnExpiration = false; } - if (message.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) - object.sharedFolderUid = options.bytes === String ? $util.base64.encode(message.sharedFolderUid, 0, message.sharedFolderUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.sharedFolderUid) : message.sharedFolderUid; - if (message.resharable != null && message.hasOwnProperty("resharable")) + if (message.sharedFolderUid != null && message.hasOwnProperty('sharedFolderUid')) + object.sharedFolderUid = + options.bytes === String + ? $util.base64.encode(message.sharedFolderUid, 0, message.sharedFolderUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.sharedFolderUid) + : message.sharedFolderUid; + if (message.resharable != null && message.hasOwnProperty('resharable')) object.resharable = message.resharable; - if (message.editable != null && message.hasOwnProperty("editable")) - object.editable = message.editable; - if (message.revision != null && message.hasOwnProperty("revision")) - if (typeof message.revision === "number") + if (message.editable != null && message.hasOwnProperty('editable')) object.editable = message.editable; + if (message.revision != null && message.hasOwnProperty('revision')) + if (typeof message.revision === 'number') object.revision = options.longs === String ? String(message.revision) : message.revision; else - object.revision = options.longs === String ? $util.Long.prototype.toString.call(message.revision) : options.longs === Number ? new $util.LongBits(message.revision.low >>> 0, message.revision.high >>> 0).toNumber() : message.revision; - if (message.expiration != null && message.hasOwnProperty("expiration")) - if (typeof message.expiration === "number") + object.revision = + options.longs === String + ? $util.Long.prototype.toString.call(message.revision) + : options.longs === Number + ? new $util.LongBits(message.revision.low >>> 0, message.revision.high >>> 0).toNumber() + : message.revision; + if (message.expiration != null && message.hasOwnProperty('expiration')) + if (typeof message.expiration === 'number') object.expiration = options.longs === String ? String(message.expiration) : message.expiration; else - object.expiration = options.longs === String ? $util.Long.prototype.toString.call(message.expiration) : options.longs === Number ? new $util.LongBits(message.expiration.low >>> 0, message.expiration.high >>> 0).toNumber() : message.expiration; - if (message.timerNotificationType != null && message.hasOwnProperty("timerNotificationType")) - object.timerNotificationType = options.enums === String ? $root.Records.TimerNotificationType[message.timerNotificationType] === undefined ? message.timerNotificationType : $root.Records.TimerNotificationType[message.timerNotificationType] : message.timerNotificationType; - if (message.rotateOnExpiration != null && message.hasOwnProperty("rotateOnExpiration")) + object.expiration = + options.longs === String + ? $util.Long.prototype.toString.call(message.expiration) + : options.longs === Number + ? new $util.LongBits( + message.expiration.low >>> 0, + message.expiration.high >>> 0 + ).toNumber() + : message.expiration; + if (message.timerNotificationType != null && message.hasOwnProperty('timerNotificationType')) + object.timerNotificationType = + options.enums === String + ? $root.Records.TimerNotificationType[message.timerNotificationType] === undefined + ? message.timerNotificationType + : $root.Records.TimerNotificationType[message.timerNotificationType] + : message.timerNotificationType; + if (message.rotateOnExpiration != null && message.hasOwnProperty('rotateOnExpiration')) object.rotateOnExpiration = message.rotateOnExpiration; return object; }; @@ -183489,16 +190939,15 @@ export const Records = $root.Records = (() => { */ SharedFolderPermission.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Records.SharedFolderPermission"; + return typeUrlPrefix + '/Records.SharedFolderPermission'; }; return SharedFolderPermission; })(); - Records.RecordData = (function() { - + Records.RecordData = (function () { /** * Properties of a RecordData. * @memberof Records @@ -183532,8 +190981,7 @@ export const Records = $root.Records = (() => { this.fileId = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -183542,7 +190990,7 @@ export const Records = $root.Records = (() => { * @memberof Records.RecordData * @instance */ - RecordData.prototype.revision = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + RecordData.prototype.revision = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * RecordData version. @@ -183566,7 +191014,7 @@ export const Records = $root.Records = (() => { * @memberof Records.RecordData * @instance */ - RecordData.prototype.encryptedRecordData = ""; + RecordData.prototype.encryptedRecordData = ''; /** * RecordData encryptedExtraData. @@ -183574,7 +191022,7 @@ export const Records = $root.Records = (() => { * @memberof Records.RecordData * @instance */ - RecordData.prototype.encryptedExtraData = ""; + RecordData.prototype.encryptedExtraData = ''; /** * RecordData clientModifiedTime. @@ -183582,7 +191030,7 @@ export const Records = $root.Records = (() => { * @memberof Records.RecordData * @instance */ - RecordData.prototype.clientModifiedTime = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + RecordData.prototype.clientModifiedTime = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * RecordData nonSharedData. @@ -183590,7 +191038,7 @@ export const Records = $root.Records = (() => { * @memberof Records.RecordData * @instance */ - RecordData.prototype.nonSharedData = ""; + RecordData.prototype.nonSharedData = ''; /** * RecordData linkedRecordData. @@ -183614,7 +191062,7 @@ export const Records = $root.Records = (() => { * @memberof Records.RecordData * @instance */ - RecordData.prototype.fileSize = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + RecordData.prototype.fileSize = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * RecordData thumbnailSize. @@ -183622,7 +191070,7 @@ export const Records = $root.Records = (() => { * @memberof Records.RecordData * @instance */ - RecordData.prototype.thumbnailSize = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + RecordData.prototype.thumbnailSize = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * RecordData recordKeyType. @@ -183670,38 +191118,40 @@ export const Records = $root.Records = (() => { * @returns {$protobuf.Writer} Writer */ RecordData.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.revision != null && Object.hasOwnProperty.call(message, "revision")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.revision); - if (message.version != null && Object.hasOwnProperty.call(message, "version")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.version); - if (message.shared != null && Object.hasOwnProperty.call(message, "shared")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.shared); - if (message.encryptedRecordData != null && Object.hasOwnProperty.call(message, "encryptedRecordData")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.encryptedRecordData); - if (message.encryptedExtraData != null && Object.hasOwnProperty.call(message, "encryptedExtraData")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.encryptedExtraData); - if (message.clientModifiedTime != null && Object.hasOwnProperty.call(message, "clientModifiedTime")) - writer.uint32(/* id 6, wireType 0 =*/48).int64(message.clientModifiedTime); - if (message.nonSharedData != null && Object.hasOwnProperty.call(message, "nonSharedData")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.nonSharedData); + if (!writer) writer = $Writer.create(); + if (message.revision != null && Object.hasOwnProperty.call(message, 'revision')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int64(message.revision); + if (message.version != null && Object.hasOwnProperty.call(message, 'version')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int32(message.version); + if (message.shared != null && Object.hasOwnProperty.call(message, 'shared')) + writer.uint32(/* id 3, wireType 0 =*/ 24).bool(message.shared); + if (message.encryptedRecordData != null && Object.hasOwnProperty.call(message, 'encryptedRecordData')) + writer.uint32(/* id 4, wireType 2 =*/ 34).string(message.encryptedRecordData); + if (message.encryptedExtraData != null && Object.hasOwnProperty.call(message, 'encryptedExtraData')) + writer.uint32(/* id 5, wireType 2 =*/ 42).string(message.encryptedExtraData); + if (message.clientModifiedTime != null && Object.hasOwnProperty.call(message, 'clientModifiedTime')) + writer.uint32(/* id 6, wireType 0 =*/ 48).int64(message.clientModifiedTime); + if (message.nonSharedData != null && Object.hasOwnProperty.call(message, 'nonSharedData')) + writer.uint32(/* id 7, wireType 2 =*/ 58).string(message.nonSharedData); if (message.linkedRecordData != null && message.linkedRecordData.length) for (let i = 0; i < message.linkedRecordData.length; ++i) - $root.Records.RecordData.encode(message.linkedRecordData[i], writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + $root.Records.RecordData.encode( + message.linkedRecordData[i], + writer.uint32(/* id 8, wireType 2 =*/ 66).fork() + ).ldelim(); if (message.fileId != null && message.fileId.length) for (let i = 0; i < message.fileId.length; ++i) - writer.uint32(/* id 9, wireType 2 =*/74).bytes(message.fileId[i]); - if (message.fileSize != null && Object.hasOwnProperty.call(message, "fileSize")) - writer.uint32(/* id 10, wireType 0 =*/80).int64(message.fileSize); - if (message.thumbnailSize != null && Object.hasOwnProperty.call(message, "thumbnailSize")) - writer.uint32(/* id 11, wireType 0 =*/88).int64(message.thumbnailSize); - if (message.recordKeyType != null && Object.hasOwnProperty.call(message, "recordKeyType")) - writer.uint32(/* id 12, wireType 0 =*/96).int32(message.recordKeyType); - if (message.recordKey != null && Object.hasOwnProperty.call(message, "recordKey")) - writer.uint32(/* id 13, wireType 2 =*/106).bytes(message.recordKey); - if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) - writer.uint32(/* id 14, wireType 2 =*/114).bytes(message.recordUid); + writer.uint32(/* id 9, wireType 2 =*/ 74).bytes(message.fileId[i]); + if (message.fileSize != null && Object.hasOwnProperty.call(message, 'fileSize')) + writer.uint32(/* id 10, wireType 0 =*/ 80).int64(message.fileSize); + if (message.thumbnailSize != null && Object.hasOwnProperty.call(message, 'thumbnailSize')) + writer.uint32(/* id 11, wireType 0 =*/ 88).int64(message.thumbnailSize); + if (message.recordKeyType != null && Object.hasOwnProperty.call(message, 'recordKeyType')) + writer.uint32(/* id 12, wireType 0 =*/ 96).int32(message.recordKeyType); + if (message.recordKey != null && Object.hasOwnProperty.call(message, 'recordKey')) + writer.uint32(/* id 13, wireType 2 =*/ 106).bytes(message.recordKey); + if (message.recordUid != null && Object.hasOwnProperty.call(message, 'recordUid')) + writer.uint32(/* id 14, wireType 2 =*/ 114).bytes(message.recordUid); return writer; }; @@ -183730,75 +191180,74 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RecordData.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordData(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Records.RecordData(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.revision = reader.int64(); break; } - case 2: { + case 2: { message.version = reader.int32(); break; } - case 3: { + case 3: { message.shared = reader.bool(); break; } - case 4: { + case 4: { message.encryptedRecordData = reader.string(); break; } - case 5: { + case 5: { message.encryptedExtraData = reader.string(); break; } - case 6: { + case 6: { message.clientModifiedTime = reader.int64(); break; } - case 7: { + case 7: { message.nonSharedData = reader.string(); break; } - case 8: { + case 8: { if (!(message.linkedRecordData && message.linkedRecordData.length)) message.linkedRecordData = []; message.linkedRecordData.push($root.Records.RecordData.decode(reader, reader.uint32())); break; } - case 9: { - if (!(message.fileId && message.fileId.length)) - message.fileId = []; + case 9: { + if (!(message.fileId && message.fileId.length)) message.fileId = []; message.fileId.push(reader.bytes()); break; } - case 10: { + case 10: { message.fileSize = reader.int64(); break; } - case 11: { + case 11: { message.thumbnailSize = reader.int64(); break; } - case 12: { + case 12: { message.recordKeyType = reader.int32(); break; } - case 13: { + case 13: { message.recordKey = reader.bytes(); break; } - case 14: { + case 14: { message.recordUid = reader.bytes(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -183815,8 +191264,7 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RecordData.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -183829,70 +191277,104 @@ export const Records = $root.Records = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ RecordData.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.revision != null && message.hasOwnProperty("revision")) - if (!$util.isInteger(message.revision) && !(message.revision && $util.isInteger(message.revision.low) && $util.isInteger(message.revision.high))) - return "revision: integer|Long expected"; - if (message.version != null && message.hasOwnProperty("version")) - if (!$util.isInteger(message.version)) - return "version: integer expected"; - if (message.shared != null && message.hasOwnProperty("shared")) - if (typeof message.shared !== "boolean") - return "shared: boolean expected"; - if (message.encryptedRecordData != null && message.hasOwnProperty("encryptedRecordData")) - if (!$util.isString(message.encryptedRecordData)) - return "encryptedRecordData: string expected"; - if (message.encryptedExtraData != null && message.hasOwnProperty("encryptedExtraData")) - if (!$util.isString(message.encryptedExtraData)) - return "encryptedExtraData: string expected"; - if (message.clientModifiedTime != null && message.hasOwnProperty("clientModifiedTime")) - if (!$util.isInteger(message.clientModifiedTime) && !(message.clientModifiedTime && $util.isInteger(message.clientModifiedTime.low) && $util.isInteger(message.clientModifiedTime.high))) - return "clientModifiedTime: integer|Long expected"; - if (message.nonSharedData != null && message.hasOwnProperty("nonSharedData")) - if (!$util.isString(message.nonSharedData)) - return "nonSharedData: string expected"; - if (message.linkedRecordData != null && message.hasOwnProperty("linkedRecordData")) { - if (!Array.isArray(message.linkedRecordData)) - return "linkedRecordData: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.revision != null && message.hasOwnProperty('revision')) + if ( + !$util.isInteger(message.revision) && + !( + message.revision && + $util.isInteger(message.revision.low) && + $util.isInteger(message.revision.high) + ) + ) + return 'revision: integer|Long expected'; + if (message.version != null && message.hasOwnProperty('version')) + if (!$util.isInteger(message.version)) return 'version: integer expected'; + if (message.shared != null && message.hasOwnProperty('shared')) + if (typeof message.shared !== 'boolean') return 'shared: boolean expected'; + if (message.encryptedRecordData != null && message.hasOwnProperty('encryptedRecordData')) + if (!$util.isString(message.encryptedRecordData)) return 'encryptedRecordData: string expected'; + if (message.encryptedExtraData != null && message.hasOwnProperty('encryptedExtraData')) + if (!$util.isString(message.encryptedExtraData)) return 'encryptedExtraData: string expected'; + if (message.clientModifiedTime != null && message.hasOwnProperty('clientModifiedTime')) + if ( + !$util.isInteger(message.clientModifiedTime) && + !( + message.clientModifiedTime && + $util.isInteger(message.clientModifiedTime.low) && + $util.isInteger(message.clientModifiedTime.high) + ) + ) + return 'clientModifiedTime: integer|Long expected'; + if (message.nonSharedData != null && message.hasOwnProperty('nonSharedData')) + if (!$util.isString(message.nonSharedData)) return 'nonSharedData: string expected'; + if (message.linkedRecordData != null && message.hasOwnProperty('linkedRecordData')) { + if (!Array.isArray(message.linkedRecordData)) return 'linkedRecordData: array expected'; for (let i = 0; i < message.linkedRecordData.length; ++i) { let error = $root.Records.RecordData.verify(message.linkedRecordData[i]); - if (error) - return "linkedRecordData." + error; + if (error) return 'linkedRecordData.' + error; } } - if (message.fileId != null && message.hasOwnProperty("fileId")) { - if (!Array.isArray(message.fileId)) - return "fileId: array expected"; + if (message.fileId != null && message.hasOwnProperty('fileId')) { + if (!Array.isArray(message.fileId)) return 'fileId: array expected'; for (let i = 0; i < message.fileId.length; ++i) - if (!(message.fileId[i] && typeof message.fileId[i].length === "number" || $util.isString(message.fileId[i]))) - return "fileId: buffer[] expected"; - } - if (message.fileSize != null && message.hasOwnProperty("fileSize")) - if (!$util.isInteger(message.fileSize) && !(message.fileSize && $util.isInteger(message.fileSize.low) && $util.isInteger(message.fileSize.high))) - return "fileSize: integer|Long expected"; - if (message.thumbnailSize != null && message.hasOwnProperty("thumbnailSize")) - if (!$util.isInteger(message.thumbnailSize) && !(message.thumbnailSize && $util.isInteger(message.thumbnailSize.low) && $util.isInteger(message.thumbnailSize.high))) - return "thumbnailSize: integer|Long expected"; - if (message.recordKeyType != null && message.hasOwnProperty("recordKeyType")) + if ( + !( + (message.fileId[i] && typeof message.fileId[i].length === 'number') || + $util.isString(message.fileId[i]) + ) + ) + return 'fileId: buffer[] expected'; + } + if (message.fileSize != null && message.hasOwnProperty('fileSize')) + if ( + !$util.isInteger(message.fileSize) && + !( + message.fileSize && + $util.isInteger(message.fileSize.low) && + $util.isInteger(message.fileSize.high) + ) + ) + return 'fileSize: integer|Long expected'; + if (message.thumbnailSize != null && message.hasOwnProperty('thumbnailSize')) + if ( + !$util.isInteger(message.thumbnailSize) && + !( + message.thumbnailSize && + $util.isInteger(message.thumbnailSize.low) && + $util.isInteger(message.thumbnailSize.high) + ) + ) + return 'thumbnailSize: integer|Long expected'; + if (message.recordKeyType != null && message.hasOwnProperty('recordKeyType')) switch (message.recordKeyType) { - default: - return "recordKeyType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - break; + default: + return 'recordKeyType: enum value expected'; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + break; } - if (message.recordKey != null && message.hasOwnProperty("recordKey")) - if (!(message.recordKey && typeof message.recordKey.length === "number" || $util.isString(message.recordKey))) - return "recordKey: buffer expected"; - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) - return "recordUid: buffer expected"; + if (message.recordKey != null && message.hasOwnProperty('recordKey')) + if ( + !( + (message.recordKey && typeof message.recordKey.length === 'number') || + $util.isString(message.recordKey) + ) + ) + return 'recordKey: buffer expected'; + if (message.recordUid != null && message.hasOwnProperty('recordUid')) + if ( + !( + (message.recordUid && typeof message.recordUid.length === 'number') || + $util.isString(message.recordUid) + ) + ) + return 'recordUid: buffer expected'; return null; }; @@ -183905,121 +191387,127 @@ export const Records = $root.Records = (() => { * @returns {Records.RecordData} RecordData */ RecordData.fromObject = function fromObject(object) { - if (object instanceof $root.Records.RecordData) - return object; + if (object instanceof $root.Records.RecordData) return object; let message = new $root.Records.RecordData(); if (object.revision != null) - if ($util.Long) - (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; - else if (typeof object.revision === "string") - message.revision = parseInt(object.revision, 10); - else if (typeof object.revision === "number") - message.revision = object.revision; - else if (typeof object.revision === "object") - message.revision = new $util.LongBits(object.revision.low >>> 0, object.revision.high >>> 0).toNumber(); - if (object.version != null) - message.version = object.version | 0; - if (object.shared != null) - message.shared = Boolean(object.shared); - if (object.encryptedRecordData != null) - message.encryptedRecordData = String(object.encryptedRecordData); - if (object.encryptedExtraData != null) - message.encryptedExtraData = String(object.encryptedExtraData); + if ($util.Long) (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; + else if (typeof object.revision === 'string') message.revision = parseInt(object.revision, 10); + else if (typeof object.revision === 'number') message.revision = object.revision; + else if (typeof object.revision === 'object') + message.revision = new $util.LongBits( + object.revision.low >>> 0, + object.revision.high >>> 0 + ).toNumber(); + if (object.version != null) message.version = object.version | 0; + if (object.shared != null) message.shared = Boolean(object.shared); + if (object.encryptedRecordData != null) message.encryptedRecordData = String(object.encryptedRecordData); + if (object.encryptedExtraData != null) message.encryptedExtraData = String(object.encryptedExtraData); if (object.clientModifiedTime != null) if ($util.Long) (message.clientModifiedTime = $util.Long.fromValue(object.clientModifiedTime)).unsigned = false; - else if (typeof object.clientModifiedTime === "string") + else if (typeof object.clientModifiedTime === 'string') message.clientModifiedTime = parseInt(object.clientModifiedTime, 10); - else if (typeof object.clientModifiedTime === "number") + else if (typeof object.clientModifiedTime === 'number') message.clientModifiedTime = object.clientModifiedTime; - else if (typeof object.clientModifiedTime === "object") - message.clientModifiedTime = new $util.LongBits(object.clientModifiedTime.low >>> 0, object.clientModifiedTime.high >>> 0).toNumber(); - if (object.nonSharedData != null) - message.nonSharedData = String(object.nonSharedData); + else if (typeof object.clientModifiedTime === 'object') + message.clientModifiedTime = new $util.LongBits( + object.clientModifiedTime.low >>> 0, + object.clientModifiedTime.high >>> 0 + ).toNumber(); + if (object.nonSharedData != null) message.nonSharedData = String(object.nonSharedData); if (object.linkedRecordData) { if (!Array.isArray(object.linkedRecordData)) - throw TypeError(".Records.RecordData.linkedRecordData: array expected"); + throw TypeError('.Records.RecordData.linkedRecordData: array expected'); message.linkedRecordData = []; for (let i = 0; i < object.linkedRecordData.length; ++i) { - if (typeof object.linkedRecordData[i] !== "object") - throw TypeError(".Records.RecordData.linkedRecordData: object expected"); + if (typeof object.linkedRecordData[i] !== 'object') + throw TypeError('.Records.RecordData.linkedRecordData: object expected'); message.linkedRecordData[i] = $root.Records.RecordData.fromObject(object.linkedRecordData[i]); } } if (object.fileId) { - if (!Array.isArray(object.fileId)) - throw TypeError(".Records.RecordData.fileId: array expected"); + if (!Array.isArray(object.fileId)) throw TypeError('.Records.RecordData.fileId: array expected'); message.fileId = []; for (let i = 0; i < object.fileId.length; ++i) - if (typeof object.fileId[i] === "string") - $util.base64.decode(object.fileId[i], message.fileId[i] = $util.newBuffer($util.base64.length(object.fileId[i])), 0); - else if (object.fileId[i].length >= 0) - message.fileId[i] = object.fileId[i]; + if (typeof object.fileId[i] === 'string') + $util.base64.decode( + object.fileId[i], + (message.fileId[i] = $util.newBuffer($util.base64.length(object.fileId[i]))), + 0 + ); + else if (object.fileId[i].length >= 0) message.fileId[i] = object.fileId[i]; } if (object.fileSize != null) - if ($util.Long) - (message.fileSize = $util.Long.fromValue(object.fileSize)).unsigned = false; - else if (typeof object.fileSize === "string") - message.fileSize = parseInt(object.fileSize, 10); - else if (typeof object.fileSize === "number") - message.fileSize = object.fileSize; - else if (typeof object.fileSize === "object") - message.fileSize = new $util.LongBits(object.fileSize.low >>> 0, object.fileSize.high >>> 0).toNumber(); + if ($util.Long) (message.fileSize = $util.Long.fromValue(object.fileSize)).unsigned = false; + else if (typeof object.fileSize === 'string') message.fileSize = parseInt(object.fileSize, 10); + else if (typeof object.fileSize === 'number') message.fileSize = object.fileSize; + else if (typeof object.fileSize === 'object') + message.fileSize = new $util.LongBits( + object.fileSize.low >>> 0, + object.fileSize.high >>> 0 + ).toNumber(); if (object.thumbnailSize != null) - if ($util.Long) - (message.thumbnailSize = $util.Long.fromValue(object.thumbnailSize)).unsigned = false; - else if (typeof object.thumbnailSize === "string") + if ($util.Long) (message.thumbnailSize = $util.Long.fromValue(object.thumbnailSize)).unsigned = false; + else if (typeof object.thumbnailSize === 'string') message.thumbnailSize = parseInt(object.thumbnailSize, 10); - else if (typeof object.thumbnailSize === "number") - message.thumbnailSize = object.thumbnailSize; - else if (typeof object.thumbnailSize === "object") - message.thumbnailSize = new $util.LongBits(object.thumbnailSize.low >>> 0, object.thumbnailSize.high >>> 0).toNumber(); + else if (typeof object.thumbnailSize === 'number') message.thumbnailSize = object.thumbnailSize; + else if (typeof object.thumbnailSize === 'object') + message.thumbnailSize = new $util.LongBits( + object.thumbnailSize.low >>> 0, + object.thumbnailSize.high >>> 0 + ).toNumber(); switch (object.recordKeyType) { - default: - if (typeof object.recordKeyType === "number") { - message.recordKeyType = object.recordKeyType; - break; - } - break; - case "NO_KEY": - case 0: - message.recordKeyType = 0; - break; - case "ENCRYPTED_BY_DATA_KEY": - case 1: - message.recordKeyType = 1; - break; - case "ENCRYPTED_BY_PUBLIC_KEY": - case 2: - message.recordKeyType = 2; - break; - case "ENCRYPTED_BY_DATA_KEY_GCM": - case 3: - message.recordKeyType = 3; - break; - case "ENCRYPTED_BY_PUBLIC_KEY_ECC": - case 4: - message.recordKeyType = 4; - break; - case "ENCRYPTED_BY_ROOT_KEY_CBC": - case 5: - message.recordKeyType = 5; - break; - case "ENCRYPTED_BY_ROOT_KEY_GCM": - case 6: - message.recordKeyType = 6; - break; + default: + if (typeof object.recordKeyType === 'number') { + message.recordKeyType = object.recordKeyType; + break; + } + break; + case 'NO_KEY': + case 0: + message.recordKeyType = 0; + break; + case 'ENCRYPTED_BY_DATA_KEY': + case 1: + message.recordKeyType = 1; + break; + case 'ENCRYPTED_BY_PUBLIC_KEY': + case 2: + message.recordKeyType = 2; + break; + case 'ENCRYPTED_BY_DATA_KEY_GCM': + case 3: + message.recordKeyType = 3; + break; + case 'ENCRYPTED_BY_PUBLIC_KEY_ECC': + case 4: + message.recordKeyType = 4; + break; + case 'ENCRYPTED_BY_ROOT_KEY_CBC': + case 5: + message.recordKeyType = 5; + break; + case 'ENCRYPTED_BY_ROOT_KEY_GCM': + case 6: + message.recordKeyType = 6; + break; } if (object.recordKey != null) - if (typeof object.recordKey === "string") - $util.base64.decode(object.recordKey, message.recordKey = $util.newBuffer($util.base64.length(object.recordKey)), 0); - else if (object.recordKey.length >= 0) - message.recordKey = object.recordKey; + if (typeof object.recordKey === 'string') + $util.base64.decode( + object.recordKey, + (message.recordKey = $util.newBuffer($util.base64.length(object.recordKey))), + 0 + ); + else if (object.recordKey.length >= 0) message.recordKey = object.recordKey; 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 (typeof object.recordUid === 'string') + $util.base64.decode( + object.recordUid, + (message.recordUid = $util.newBuffer($util.base64.length(object.recordUid))), + 0 + ); + else if (object.recordUid.length >= 0) message.recordUid = object.recordUid; return message; }; @@ -184033,8 +191521,7 @@ export const Records = $root.Records = (() => { * @returns {Object.} Plain object */ RecordData.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.arrays || options.defaults) { object.linkedRecordData = []; @@ -184043,91 +191530,136 @@ export const Records = $root.Records = (() => { if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.revision = options.longs === String ? "0" : 0; + object.revision = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.revision = options.longs === String ? '0' : 0; object.version = 0; object.shared = false; - object.encryptedRecordData = ""; - object.encryptedExtraData = ""; + object.encryptedRecordData = ''; + object.encryptedExtraData = ''; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.clientModifiedTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.clientModifiedTime = options.longs === String ? "0" : 0; - object.nonSharedData = ""; + object.clientModifiedTime = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.clientModifiedTime = options.longs === String ? '0' : 0; + object.nonSharedData = ''; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.fileSize = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.fileSize = options.longs === String ? "0" : 0; + object.fileSize = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.fileSize = options.longs === String ? '0' : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.thumbnailSize = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.thumbnailSize = options.longs === String ? "0" : 0; - object.recordKeyType = options.enums === String ? "NO_KEY" : 0; - if (options.bytes === String) - object.recordKey = ""; + object.thumbnailSize = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.thumbnailSize = options.longs === String ? '0' : 0; + object.recordKeyType = options.enums === String ? 'NO_KEY' : 0; + if (options.bytes === String) object.recordKey = ''; else { object.recordKey = []; - if (options.bytes !== Array) - object.recordKey = $util.newBuffer(object.recordKey); + if (options.bytes !== Array) object.recordKey = $util.newBuffer(object.recordKey); } - if (options.bytes === String) - object.recordUid = ""; + if (options.bytes === String) object.recordUid = ''; else { object.recordUid = []; - if (options.bytes !== Array) - object.recordUid = $util.newBuffer(object.recordUid); + if (options.bytes !== Array) object.recordUid = $util.newBuffer(object.recordUid); } } - if (message.revision != null && message.hasOwnProperty("revision")) - if (typeof message.revision === "number") + if (message.revision != null && message.hasOwnProperty('revision')) + if (typeof message.revision === 'number') object.revision = options.longs === String ? String(message.revision) : message.revision; else - object.revision = options.longs === String ? $util.Long.prototype.toString.call(message.revision) : options.longs === Number ? new $util.LongBits(message.revision.low >>> 0, message.revision.high >>> 0).toNumber() : message.revision; - if (message.version != null && message.hasOwnProperty("version")) - object.version = message.version; - if (message.shared != null && message.hasOwnProperty("shared")) - object.shared = message.shared; - if (message.encryptedRecordData != null && message.hasOwnProperty("encryptedRecordData")) + object.revision = + options.longs === String + ? $util.Long.prototype.toString.call(message.revision) + : options.longs === Number + ? new $util.LongBits(message.revision.low >>> 0, message.revision.high >>> 0).toNumber() + : message.revision; + if (message.version != null && message.hasOwnProperty('version')) object.version = message.version; + if (message.shared != null && message.hasOwnProperty('shared')) object.shared = message.shared; + if (message.encryptedRecordData != null && message.hasOwnProperty('encryptedRecordData')) object.encryptedRecordData = message.encryptedRecordData; - if (message.encryptedExtraData != null && message.hasOwnProperty("encryptedExtraData")) + if (message.encryptedExtraData != null && message.hasOwnProperty('encryptedExtraData')) object.encryptedExtraData = message.encryptedExtraData; - if (message.clientModifiedTime != null && message.hasOwnProperty("clientModifiedTime")) - if (typeof message.clientModifiedTime === "number") - object.clientModifiedTime = options.longs === String ? String(message.clientModifiedTime) : message.clientModifiedTime; + if (message.clientModifiedTime != null && message.hasOwnProperty('clientModifiedTime')) + if (typeof message.clientModifiedTime === 'number') + object.clientModifiedTime = + options.longs === String ? String(message.clientModifiedTime) : message.clientModifiedTime; else - object.clientModifiedTime = options.longs === String ? $util.Long.prototype.toString.call(message.clientModifiedTime) : options.longs === Number ? new $util.LongBits(message.clientModifiedTime.low >>> 0, message.clientModifiedTime.high >>> 0).toNumber() : message.clientModifiedTime; - if (message.nonSharedData != null && message.hasOwnProperty("nonSharedData")) + object.clientModifiedTime = + options.longs === String + ? $util.Long.prototype.toString.call(message.clientModifiedTime) + : options.longs === Number + ? new $util.LongBits( + message.clientModifiedTime.low >>> 0, + message.clientModifiedTime.high >>> 0 + ).toNumber() + : message.clientModifiedTime; + if (message.nonSharedData != null && message.hasOwnProperty('nonSharedData')) object.nonSharedData = message.nonSharedData; if (message.linkedRecordData && message.linkedRecordData.length) { object.linkedRecordData = []; for (let j = 0; j < message.linkedRecordData.length; ++j) - object.linkedRecordData[j] = $root.Records.RecordData.toObject(message.linkedRecordData[j], options); + object.linkedRecordData[j] = $root.Records.RecordData.toObject( + message.linkedRecordData[j], + options + ); } if (message.fileId && message.fileId.length) { object.fileId = []; for (let j = 0; j < message.fileId.length; ++j) - object.fileId[j] = options.bytes === String ? $util.base64.encode(message.fileId[j], 0, message.fileId[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.fileId[j]) : message.fileId[j]; - } - if (message.fileSize != null && message.hasOwnProperty("fileSize")) - if (typeof message.fileSize === "number") + object.fileId[j] = + options.bytes === String + ? $util.base64.encode(message.fileId[j], 0, message.fileId[j].length) + : options.bytes === Array + ? Array.prototype.slice.call(message.fileId[j]) + : message.fileId[j]; + } + if (message.fileSize != null && message.hasOwnProperty('fileSize')) + if (typeof message.fileSize === 'number') object.fileSize = options.longs === String ? String(message.fileSize) : message.fileSize; else - object.fileSize = options.longs === String ? $util.Long.prototype.toString.call(message.fileSize) : options.longs === Number ? new $util.LongBits(message.fileSize.low >>> 0, message.fileSize.high >>> 0).toNumber() : message.fileSize; - if (message.thumbnailSize != null && message.hasOwnProperty("thumbnailSize")) - if (typeof message.thumbnailSize === "number") - object.thumbnailSize = options.longs === String ? String(message.thumbnailSize) : message.thumbnailSize; + object.fileSize = + options.longs === String + ? $util.Long.prototype.toString.call(message.fileSize) + : options.longs === Number + ? new $util.LongBits(message.fileSize.low >>> 0, message.fileSize.high >>> 0).toNumber() + : message.fileSize; + if (message.thumbnailSize != null && message.hasOwnProperty('thumbnailSize')) + if (typeof message.thumbnailSize === 'number') + object.thumbnailSize = + options.longs === String ? String(message.thumbnailSize) : message.thumbnailSize; else - object.thumbnailSize = options.longs === String ? $util.Long.prototype.toString.call(message.thumbnailSize) : options.longs === Number ? new $util.LongBits(message.thumbnailSize.low >>> 0, message.thumbnailSize.high >>> 0).toNumber() : message.thumbnailSize; - if (message.recordKeyType != null && message.hasOwnProperty("recordKeyType")) - object.recordKeyType = options.enums === String ? $root.Records.RecordKeyType[message.recordKeyType] === undefined ? message.recordKeyType : $root.Records.RecordKeyType[message.recordKeyType] : message.recordKeyType; - if (message.recordKey != null && message.hasOwnProperty("recordKey")) - object.recordKey = options.bytes === String ? $util.base64.encode(message.recordKey, 0, message.recordKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordKey) : message.recordKey; - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; + object.thumbnailSize = + options.longs === String + ? $util.Long.prototype.toString.call(message.thumbnailSize) + : options.longs === Number + ? new $util.LongBits( + message.thumbnailSize.low >>> 0, + message.thumbnailSize.high >>> 0 + ).toNumber() + : message.thumbnailSize; + if (message.recordKeyType != null && message.hasOwnProperty('recordKeyType')) + object.recordKeyType = + options.enums === String + ? $root.Records.RecordKeyType[message.recordKeyType] === undefined + ? message.recordKeyType + : $root.Records.RecordKeyType[message.recordKeyType] + : message.recordKeyType; + if (message.recordKey != null && message.hasOwnProperty('recordKey')) + object.recordKey = + options.bytes === String + ? $util.base64.encode(message.recordKey, 0, message.recordKey.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.recordKey) + : message.recordKey; + if (message.recordUid != null && message.hasOwnProperty('recordUid')) + object.recordUid = + options.bytes === String + ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.recordUid) + : message.recordUid; return object; }; @@ -184152,16 +191684,15 @@ export const Records = $root.Records = (() => { */ RecordData.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Records.RecordData"; + return typeUrlPrefix + '/Records.RecordData'; }; return RecordData; })(); - Records.RecordDataWithAccessInfo = (function() { - + Records.RecordDataWithAccessInfo = (function () { /** * Properties of a RecordDataWithAccessInfo. * @memberof Records @@ -184185,8 +191716,7 @@ export const Records = $root.Records = (() => { this.sharedFolderPermission = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -184243,18 +191773,26 @@ export const Records = $root.Records = (() => { * @returns {$protobuf.Writer} Writer */ RecordDataWithAccessInfo.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); - if (message.recordData != null && Object.hasOwnProperty.call(message, "recordData")) - $root.Records.RecordData.encode(message.recordData, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (!writer) writer = $Writer.create(); + if (message.recordUid != null && Object.hasOwnProperty.call(message, 'recordUid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.recordUid); + if (message.recordData != null && Object.hasOwnProperty.call(message, 'recordData')) + $root.Records.RecordData.encode( + message.recordData, + writer.uint32(/* id 2, wireType 2 =*/ 18).fork() + ).ldelim(); if (message.userPermission != null && message.userPermission.length) for (let i = 0; i < message.userPermission.length; ++i) - $root.Records.UserPermission.encode(message.userPermission[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + $root.Records.UserPermission.encode( + message.userPermission[i], + writer.uint32(/* id 3, wireType 2 =*/ 26).fork() + ).ldelim(); if (message.sharedFolderPermission != null && message.sharedFolderPermission.length) for (let i = 0; i < message.sharedFolderPermission.length; ++i) - $root.Records.SharedFolderPermission.encode(message.sharedFolderPermission[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + $root.Records.SharedFolderPermission.encode( + message.sharedFolderPermission[i], + writer.uint32(/* id 4, wireType 2 =*/ 34).fork() + ).ldelim(); return writer; }; @@ -184283,35 +191821,36 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RecordDataWithAccessInfo.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordDataWithAccessInfo(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Records.RecordDataWithAccessInfo(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.recordUid = reader.bytes(); break; } - case 2: { + case 2: { message.recordData = $root.Records.RecordData.decode(reader, reader.uint32()); break; } - case 3: { - if (!(message.userPermission && message.userPermission.length)) - message.userPermission = []; + case 3: { + if (!(message.userPermission && message.userPermission.length)) message.userPermission = []; message.userPermission.push($root.Records.UserPermission.decode(reader, reader.uint32())); break; } - case 4: { + case 4: { if (!(message.sharedFolderPermission && message.sharedFolderPermission.length)) message.sharedFolderPermission = []; - message.sharedFolderPermission.push($root.Records.SharedFolderPermission.decode(reader, reader.uint32())); + message.sharedFolderPermission.push( + $root.Records.SharedFolderPermission.decode(reader, reader.uint32()) + ); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -184328,8 +191867,7 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RecordDataWithAccessInfo.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -184342,32 +191880,31 @@ export const Records = $root.Records = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ RecordDataWithAccessInfo.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) - return "recordUid: buffer expected"; - if (message.recordData != null && message.hasOwnProperty("recordData")) { + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.recordUid != null && message.hasOwnProperty('recordUid')) + if ( + !( + (message.recordUid && typeof message.recordUid.length === 'number') || + $util.isString(message.recordUid) + ) + ) + return 'recordUid: buffer expected'; + if (message.recordData != null && message.hasOwnProperty('recordData')) { let error = $root.Records.RecordData.verify(message.recordData); - if (error) - return "recordData." + error; + if (error) return 'recordData.' + error; } - if (message.userPermission != null && message.hasOwnProperty("userPermission")) { - if (!Array.isArray(message.userPermission)) - return "userPermission: array expected"; + if (message.userPermission != null && message.hasOwnProperty('userPermission')) { + if (!Array.isArray(message.userPermission)) return 'userPermission: array expected'; for (let i = 0; i < message.userPermission.length; ++i) { let error = $root.Records.UserPermission.verify(message.userPermission[i]); - if (error) - return "userPermission." + error; + if (error) return 'userPermission.' + error; } } - if (message.sharedFolderPermission != null && message.hasOwnProperty("sharedFolderPermission")) { - if (!Array.isArray(message.sharedFolderPermission)) - return "sharedFolderPermission: array expected"; + if (message.sharedFolderPermission != null && message.hasOwnProperty('sharedFolderPermission')) { + if (!Array.isArray(message.sharedFolderPermission)) return 'sharedFolderPermission: array expected'; for (let i = 0; i < message.sharedFolderPermission.length; ++i) { let error = $root.Records.SharedFolderPermission.verify(message.sharedFolderPermission[i]); - if (error) - return "sharedFolderPermission." + error; + if (error) return 'sharedFolderPermission.' + error; } } return null; @@ -184382,37 +191919,41 @@ export const Records = $root.Records = (() => { * @returns {Records.RecordDataWithAccessInfo} RecordDataWithAccessInfo */ RecordDataWithAccessInfo.fromObject = function fromObject(object) { - if (object instanceof $root.Records.RecordDataWithAccessInfo) - return object; + if (object instanceof $root.Records.RecordDataWithAccessInfo) return object; let message = new $root.Records.RecordDataWithAccessInfo(); 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 (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.recordData != null) { - if (typeof object.recordData !== "object") - throw TypeError(".Records.RecordDataWithAccessInfo.recordData: object expected"); + if (typeof object.recordData !== 'object') + throw TypeError('.Records.RecordDataWithAccessInfo.recordData: object expected'); message.recordData = $root.Records.RecordData.fromObject(object.recordData); } if (object.userPermission) { if (!Array.isArray(object.userPermission)) - throw TypeError(".Records.RecordDataWithAccessInfo.userPermission: array expected"); + throw TypeError('.Records.RecordDataWithAccessInfo.userPermission: array expected'); message.userPermission = []; for (let i = 0; i < object.userPermission.length; ++i) { - if (typeof object.userPermission[i] !== "object") - throw TypeError(".Records.RecordDataWithAccessInfo.userPermission: object expected"); + if (typeof object.userPermission[i] !== 'object') + throw TypeError('.Records.RecordDataWithAccessInfo.userPermission: object expected'); message.userPermission[i] = $root.Records.UserPermission.fromObject(object.userPermission[i]); } } if (object.sharedFolderPermission) { if (!Array.isArray(object.sharedFolderPermission)) - throw TypeError(".Records.RecordDataWithAccessInfo.sharedFolderPermission: array expected"); + throw TypeError('.Records.RecordDataWithAccessInfo.sharedFolderPermission: array expected'); message.sharedFolderPermission = []; for (let i = 0; i < object.sharedFolderPermission.length; ++i) { - if (typeof object.sharedFolderPermission[i] !== "object") - throw TypeError(".Records.RecordDataWithAccessInfo.sharedFolderPermission: object expected"); - message.sharedFolderPermission[i] = $root.Records.SharedFolderPermission.fromObject(object.sharedFolderPermission[i]); + if (typeof object.sharedFolderPermission[i] !== 'object') + throw TypeError('.Records.RecordDataWithAccessInfo.sharedFolderPermission: object expected'); + message.sharedFolderPermission[i] = $root.Records.SharedFolderPermission.fromObject( + object.sharedFolderPermission[i] + ); } } return message; @@ -184428,36 +191969,44 @@ export const Records = $root.Records = (() => { * @returns {Object.} Plain object */ RecordDataWithAccessInfo.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.arrays || options.defaults) { object.userPermission = []; object.sharedFolderPermission = []; } if (options.defaults) { - if (options.bytes === String) - object.recordUid = ""; + if (options.bytes === String) object.recordUid = ''; else { object.recordUid = []; - if (options.bytes !== Array) - object.recordUid = $util.newBuffer(object.recordUid); + if (options.bytes !== Array) object.recordUid = $util.newBuffer(object.recordUid); } object.recordData = null; } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; - if (message.recordData != null && message.hasOwnProperty("recordData")) + if (message.recordUid != null && message.hasOwnProperty('recordUid')) + object.recordUid = + options.bytes === String + ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.recordUid) + : message.recordUid; + if (message.recordData != null && message.hasOwnProperty('recordData')) object.recordData = $root.Records.RecordData.toObject(message.recordData, options); if (message.userPermission && message.userPermission.length) { object.userPermission = []; for (let j = 0; j < message.userPermission.length; ++j) - object.userPermission[j] = $root.Records.UserPermission.toObject(message.userPermission[j], options); + object.userPermission[j] = $root.Records.UserPermission.toObject( + message.userPermission[j], + options + ); } if (message.sharedFolderPermission && message.sharedFolderPermission.length) { object.sharedFolderPermission = []; for (let j = 0; j < message.sharedFolderPermission.length; ++j) - object.sharedFolderPermission[j] = $root.Records.SharedFolderPermission.toObject(message.sharedFolderPermission[j], options); + object.sharedFolderPermission[j] = $root.Records.SharedFolderPermission.toObject( + message.sharedFolderPermission[j], + options + ); } return object; }; @@ -184483,16 +192032,15 @@ export const Records = $root.Records = (() => { */ RecordDataWithAccessInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Records.RecordDataWithAccessInfo"; + return typeUrlPrefix + '/Records.RecordDataWithAccessInfo'; }; return RecordDataWithAccessInfo; })(); - Records.GetRecordDataWithAccessInfoResponse = (function() { - + Records.GetRecordDataWithAccessInfoResponse = (function () { /** * Properties of a GetRecordDataWithAccessInfoResponse. * @memberof Records @@ -184514,8 +192062,7 @@ export const Records = $root.Records = (() => { this.noPermissionRecordUid = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -184556,14 +192103,16 @@ export const Records = $root.Records = (() => { * @returns {$protobuf.Writer} Writer */ GetRecordDataWithAccessInfoResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.recordDataWithAccessInfo != null && message.recordDataWithAccessInfo.length) for (let i = 0; i < message.recordDataWithAccessInfo.length; ++i) - $root.Records.RecordDataWithAccessInfo.encode(message.recordDataWithAccessInfo[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.Records.RecordDataWithAccessInfo.encode( + message.recordDataWithAccessInfo[i], + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); if (message.noPermissionRecordUid != null && message.noPermissionRecordUid.length) for (let i = 0; i < message.noPermissionRecordUid.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.noPermissionRecordUid[i]); + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.noPermissionRecordUid[i]); return writer; }; @@ -184592,27 +192141,29 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ GetRecordDataWithAccessInfoResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.GetRecordDataWithAccessInfoResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Records.GetRecordDataWithAccessInfoResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { if (!(message.recordDataWithAccessInfo && message.recordDataWithAccessInfo.length)) message.recordDataWithAccessInfo = []; - message.recordDataWithAccessInfo.push($root.Records.RecordDataWithAccessInfo.decode(reader, reader.uint32())); + message.recordDataWithAccessInfo.push( + $root.Records.RecordDataWithAccessInfo.decode(reader, reader.uint32()) + ); break; } - case 2: { + case 2: { if (!(message.noPermissionRecordUid && message.noPermissionRecordUid.length)) message.noPermissionRecordUid = []; message.noPermissionRecordUid.push(reader.bytes()); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -184629,8 +192180,7 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ GetRecordDataWithAccessInfoResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -184643,23 +192193,25 @@ export const Records = $root.Records = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ GetRecordDataWithAccessInfoResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.recordDataWithAccessInfo != null && message.hasOwnProperty("recordDataWithAccessInfo")) { - if (!Array.isArray(message.recordDataWithAccessInfo)) - return "recordDataWithAccessInfo: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.recordDataWithAccessInfo != null && message.hasOwnProperty('recordDataWithAccessInfo')) { + if (!Array.isArray(message.recordDataWithAccessInfo)) return 'recordDataWithAccessInfo: array expected'; for (let i = 0; i < message.recordDataWithAccessInfo.length; ++i) { let error = $root.Records.RecordDataWithAccessInfo.verify(message.recordDataWithAccessInfo[i]); - if (error) - return "recordDataWithAccessInfo." + error; + if (error) return 'recordDataWithAccessInfo.' + error; } } - if (message.noPermissionRecordUid != null && message.hasOwnProperty("noPermissionRecordUid")) { - if (!Array.isArray(message.noPermissionRecordUid)) - return "noPermissionRecordUid: array expected"; + if (message.noPermissionRecordUid != null && message.hasOwnProperty('noPermissionRecordUid')) { + if (!Array.isArray(message.noPermissionRecordUid)) return 'noPermissionRecordUid: array expected'; for (let i = 0; i < message.noPermissionRecordUid.length; ++i) - if (!(message.noPermissionRecordUid[i] && typeof message.noPermissionRecordUid[i].length === "number" || $util.isString(message.noPermissionRecordUid[i]))) - return "noPermissionRecordUid: buffer[] expected"; + if ( + !( + (message.noPermissionRecordUid[i] && + typeof message.noPermissionRecordUid[i].length === 'number') || + $util.isString(message.noPermissionRecordUid[i]) + ) + ) + return 'noPermissionRecordUid: buffer[] expected'; } return null; }; @@ -184673,26 +192225,39 @@ export const Records = $root.Records = (() => { * @returns {Records.GetRecordDataWithAccessInfoResponse} GetRecordDataWithAccessInfoResponse */ GetRecordDataWithAccessInfoResponse.fromObject = function fromObject(object) { - if (object instanceof $root.Records.GetRecordDataWithAccessInfoResponse) - return object; + if (object instanceof $root.Records.GetRecordDataWithAccessInfoResponse) return object; let message = new $root.Records.GetRecordDataWithAccessInfoResponse(); if (object.recordDataWithAccessInfo) { if (!Array.isArray(object.recordDataWithAccessInfo)) - throw TypeError(".Records.GetRecordDataWithAccessInfoResponse.recordDataWithAccessInfo: array expected"); + throw TypeError( + '.Records.GetRecordDataWithAccessInfoResponse.recordDataWithAccessInfo: array expected' + ); message.recordDataWithAccessInfo = []; for (let i = 0; i < object.recordDataWithAccessInfo.length; ++i) { - if (typeof object.recordDataWithAccessInfo[i] !== "object") - throw TypeError(".Records.GetRecordDataWithAccessInfoResponse.recordDataWithAccessInfo: object expected"); - message.recordDataWithAccessInfo[i] = $root.Records.RecordDataWithAccessInfo.fromObject(object.recordDataWithAccessInfo[i]); + if (typeof object.recordDataWithAccessInfo[i] !== 'object') + throw TypeError( + '.Records.GetRecordDataWithAccessInfoResponse.recordDataWithAccessInfo: object expected' + ); + message.recordDataWithAccessInfo[i] = $root.Records.RecordDataWithAccessInfo.fromObject( + object.recordDataWithAccessInfo[i] + ); } } if (object.noPermissionRecordUid) { if (!Array.isArray(object.noPermissionRecordUid)) - throw TypeError(".Records.GetRecordDataWithAccessInfoResponse.noPermissionRecordUid: array expected"); + throw TypeError( + '.Records.GetRecordDataWithAccessInfoResponse.noPermissionRecordUid: array expected' + ); message.noPermissionRecordUid = []; for (let i = 0; i < object.noPermissionRecordUid.length; ++i) - if (typeof object.noPermissionRecordUid[i] === "string") - $util.base64.decode(object.noPermissionRecordUid[i], message.noPermissionRecordUid[i] = $util.newBuffer($util.base64.length(object.noPermissionRecordUid[i])), 0); + if (typeof object.noPermissionRecordUid[i] === 'string') + $util.base64.decode( + object.noPermissionRecordUid[i], + (message.noPermissionRecordUid[i] = $util.newBuffer( + $util.base64.length(object.noPermissionRecordUid[i]) + )), + 0 + ); else if (object.noPermissionRecordUid[i].length >= 0) message.noPermissionRecordUid[i] = object.noPermissionRecordUid[i]; } @@ -184709,8 +192274,7 @@ export const Records = $root.Records = (() => { * @returns {Object.} Plain object */ GetRecordDataWithAccessInfoResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.arrays || options.defaults) { object.recordDataWithAccessInfo = []; @@ -184719,12 +192283,24 @@ export const Records = $root.Records = (() => { if (message.recordDataWithAccessInfo && message.recordDataWithAccessInfo.length) { object.recordDataWithAccessInfo = []; for (let j = 0; j < message.recordDataWithAccessInfo.length; ++j) - object.recordDataWithAccessInfo[j] = $root.Records.RecordDataWithAccessInfo.toObject(message.recordDataWithAccessInfo[j], options); + object.recordDataWithAccessInfo[j] = $root.Records.RecordDataWithAccessInfo.toObject( + message.recordDataWithAccessInfo[j], + options + ); } if (message.noPermissionRecordUid && message.noPermissionRecordUid.length) { object.noPermissionRecordUid = []; for (let j = 0; j < message.noPermissionRecordUid.length; ++j) - object.noPermissionRecordUid[j] = options.bytes === String ? $util.base64.encode(message.noPermissionRecordUid[j], 0, message.noPermissionRecordUid[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.noPermissionRecordUid[j]) : message.noPermissionRecordUid[j]; + object.noPermissionRecordUid[j] = + options.bytes === String + ? $util.base64.encode( + message.noPermissionRecordUid[j], + 0, + message.noPermissionRecordUid[j].length + ) + : options.bytes === Array + ? Array.prototype.slice.call(message.noPermissionRecordUid[j]) + : message.noPermissionRecordUid[j]; } return object; }; @@ -184750,9 +192326,9 @@ export const Records = $root.Records = (() => { */ GetRecordDataWithAccessInfoResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Records.GetRecordDataWithAccessInfoResponse"; + return typeUrlPrefix + '/Records.GetRecordDataWithAccessInfoResponse'; }; return GetRecordDataWithAccessInfoResponse; @@ -184766,16 +192342,16 @@ export const Records = $root.Records = (() => { * @property {number} CHECK_SA_ON_SF=1 CHECK_SA_ON_SF value * @property {number} CHECK_SA_ON_RECORD=2 CHECK_SA_ON_RECORD value */ - Records.CheckShareAdminObjectType = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "CHECK_SA_INVALID_TYPE"] = 0; - values[valuesById[1] = "CHECK_SA_ON_SF"] = 1; - values[valuesById[2] = "CHECK_SA_ON_RECORD"] = 2; + Records.CheckShareAdminObjectType = (function () { + const valuesById = {}, + values = Object.create(valuesById); + values[(valuesById[0] = 'CHECK_SA_INVALID_TYPE')] = 0; + values[(valuesById[1] = 'CHECK_SA_ON_SF')] = 1; + values[(valuesById[2] = 'CHECK_SA_ON_RECORD')] = 2; return values; })(); - Records.IsObjectShareAdmin = (function() { - + Records.IsObjectShareAdmin = (function () { /** * Properties of an IsObjectShareAdmin. * @memberof Records @@ -184796,8 +192372,7 @@ export const Records = $root.Records = (() => { function IsObjectShareAdmin(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -184846,14 +192421,13 @@ export const Records = $root.Records = (() => { * @returns {$protobuf.Writer} Writer */ IsObjectShareAdmin.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.uid != null && Object.hasOwnProperty.call(message, "uid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.uid); - if (message.isAdmin != null && Object.hasOwnProperty.call(message, "isAdmin")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.isAdmin); - if (message.objectType != null && Object.hasOwnProperty.call(message, "objectType")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.objectType); + if (!writer) writer = $Writer.create(); + if (message.uid != null && Object.hasOwnProperty.call(message, 'uid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.uid); + if (message.isAdmin != null && Object.hasOwnProperty.call(message, 'isAdmin')) + writer.uint32(/* id 2, wireType 0 =*/ 16).bool(message.isAdmin); + if (message.objectType != null && Object.hasOwnProperty.call(message, 'objectType')) + writer.uint32(/* id 3, wireType 0 =*/ 24).int32(message.objectType); return writer; }; @@ -184882,27 +192456,27 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ IsObjectShareAdmin.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.IsObjectShareAdmin(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Records.IsObjectShareAdmin(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.uid = reader.bytes(); break; } - case 2: { + case 2: { message.isAdmin = reader.bool(); break; } - case 3: { + case 3: { message.objectType = reader.int32(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -184919,8 +192493,7 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ IsObjectShareAdmin.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -184933,22 +192506,20 @@ export const Records = $root.Records = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ IsObjectShareAdmin.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.uid != null && message.hasOwnProperty("uid")) - if (!(message.uid && typeof message.uid.length === "number" || $util.isString(message.uid))) - return "uid: buffer expected"; - if (message.isAdmin != null && message.hasOwnProperty("isAdmin")) - if (typeof message.isAdmin !== "boolean") - return "isAdmin: boolean expected"; - if (message.objectType != null && message.hasOwnProperty("objectType")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.uid != null && message.hasOwnProperty('uid')) + if (!((message.uid && typeof message.uid.length === 'number') || $util.isString(message.uid))) + return 'uid: buffer expected'; + if (message.isAdmin != null && message.hasOwnProperty('isAdmin')) + if (typeof message.isAdmin !== 'boolean') return 'isAdmin: boolean expected'; + if (message.objectType != null && message.hasOwnProperty('objectType')) switch (message.objectType) { - default: - return "objectType: enum value expected"; - case 0: - case 1: - case 2: - break; + default: + return 'objectType: enum value expected'; + case 0: + case 1: + case 2: + break; } return null; }; @@ -184962,35 +192533,36 @@ export const Records = $root.Records = (() => { * @returns {Records.IsObjectShareAdmin} IsObjectShareAdmin */ IsObjectShareAdmin.fromObject = function fromObject(object) { - if (object instanceof $root.Records.IsObjectShareAdmin) - return object; + if (object instanceof $root.Records.IsObjectShareAdmin) return object; let message = new $root.Records.IsObjectShareAdmin(); if (object.uid != null) - if (typeof object.uid === "string") - $util.base64.decode(object.uid, message.uid = $util.newBuffer($util.base64.length(object.uid)), 0); - else if (object.uid.length >= 0) - message.uid = object.uid; - if (object.isAdmin != null) - message.isAdmin = Boolean(object.isAdmin); + if (typeof object.uid === 'string') + $util.base64.decode( + object.uid, + (message.uid = $util.newBuffer($util.base64.length(object.uid))), + 0 + ); + else if (object.uid.length >= 0) message.uid = object.uid; + if (object.isAdmin != null) message.isAdmin = Boolean(object.isAdmin); switch (object.objectType) { - default: - if (typeof object.objectType === "number") { - message.objectType = object.objectType; + default: + if (typeof object.objectType === 'number') { + message.objectType = object.objectType; + break; + } + break; + case 'CHECK_SA_INVALID_TYPE': + case 0: + message.objectType = 0; + break; + case 'CHECK_SA_ON_SF': + case 1: + message.objectType = 1; + break; + case 'CHECK_SA_ON_RECORD': + case 2: + message.objectType = 2; break; - } - break; - case "CHECK_SA_INVALID_TYPE": - case 0: - message.objectType = 0; - break; - case "CHECK_SA_ON_SF": - case 1: - message.objectType = 1; - break; - case "CHECK_SA_ON_RECORD": - case 2: - message.objectType = 2; - break; } return message; }; @@ -185005,26 +192577,32 @@ export const Records = $root.Records = (() => { * @returns {Object.} Plain object */ IsObjectShareAdmin.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.uid = ""; + if (options.bytes === String) object.uid = ''; else { object.uid = []; - if (options.bytes !== Array) - object.uid = $util.newBuffer(object.uid); + if (options.bytes !== Array) object.uid = $util.newBuffer(object.uid); } object.isAdmin = false; - object.objectType = options.enums === String ? "CHECK_SA_INVALID_TYPE" : 0; + object.objectType = options.enums === String ? 'CHECK_SA_INVALID_TYPE' : 0; } - if (message.uid != null && message.hasOwnProperty("uid")) - object.uid = options.bytes === String ? $util.base64.encode(message.uid, 0, message.uid.length) : options.bytes === Array ? Array.prototype.slice.call(message.uid) : message.uid; - if (message.isAdmin != null && message.hasOwnProperty("isAdmin")) - object.isAdmin = message.isAdmin; - if (message.objectType != null && message.hasOwnProperty("objectType")) - object.objectType = options.enums === String ? $root.Records.CheckShareAdminObjectType[message.objectType] === undefined ? message.objectType : $root.Records.CheckShareAdminObjectType[message.objectType] : message.objectType; + if (message.uid != null && message.hasOwnProperty('uid')) + object.uid = + options.bytes === String + ? $util.base64.encode(message.uid, 0, message.uid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.uid) + : message.uid; + if (message.isAdmin != null && message.hasOwnProperty('isAdmin')) object.isAdmin = message.isAdmin; + if (message.objectType != null && message.hasOwnProperty('objectType')) + object.objectType = + options.enums === String + ? $root.Records.CheckShareAdminObjectType[message.objectType] === undefined + ? message.objectType + : $root.Records.CheckShareAdminObjectType[message.objectType] + : message.objectType; return object; }; @@ -185049,16 +192627,15 @@ export const Records = $root.Records = (() => { */ IsObjectShareAdmin.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Records.IsObjectShareAdmin"; + return typeUrlPrefix + '/Records.IsObjectShareAdmin'; }; return IsObjectShareAdmin; })(); - Records.AmIShareAdmin = (function() { - + Records.AmIShareAdmin = (function () { /** * Properties of an AmIShareAdmin. * @memberof Records @@ -185078,8 +192655,7 @@ export const Records = $root.Records = (() => { this.isObjectShareAdmin = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -185112,11 +192688,13 @@ export const Records = $root.Records = (() => { * @returns {$protobuf.Writer} Writer */ AmIShareAdmin.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.isObjectShareAdmin != null && message.isObjectShareAdmin.length) for (let i = 0; i < message.isObjectShareAdmin.length; ++i) - $root.Records.IsObjectShareAdmin.encode(message.isObjectShareAdmin[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.Records.IsObjectShareAdmin.encode( + message.isObjectShareAdmin[i], + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); return writer; }; @@ -185145,21 +192723,23 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ AmIShareAdmin.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.AmIShareAdmin(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Records.AmIShareAdmin(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { if (!(message.isObjectShareAdmin && message.isObjectShareAdmin.length)) message.isObjectShareAdmin = []; - message.isObjectShareAdmin.push($root.Records.IsObjectShareAdmin.decode(reader, reader.uint32())); + message.isObjectShareAdmin.push( + $root.Records.IsObjectShareAdmin.decode(reader, reader.uint32()) + ); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -185176,8 +192756,7 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ AmIShareAdmin.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -185190,15 +192769,12 @@ export const Records = $root.Records = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ AmIShareAdmin.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.isObjectShareAdmin != null && message.hasOwnProperty("isObjectShareAdmin")) { - if (!Array.isArray(message.isObjectShareAdmin)) - return "isObjectShareAdmin: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.isObjectShareAdmin != null && message.hasOwnProperty('isObjectShareAdmin')) { + if (!Array.isArray(message.isObjectShareAdmin)) return 'isObjectShareAdmin: array expected'; for (let i = 0; i < message.isObjectShareAdmin.length; ++i) { let error = $root.Records.IsObjectShareAdmin.verify(message.isObjectShareAdmin[i]); - if (error) - return "isObjectShareAdmin." + error; + if (error) return 'isObjectShareAdmin.' + error; } } return null; @@ -185213,17 +192789,18 @@ export const Records = $root.Records = (() => { * @returns {Records.AmIShareAdmin} AmIShareAdmin */ AmIShareAdmin.fromObject = function fromObject(object) { - if (object instanceof $root.Records.AmIShareAdmin) - return object; + if (object instanceof $root.Records.AmIShareAdmin) return object; let message = new $root.Records.AmIShareAdmin(); if (object.isObjectShareAdmin) { if (!Array.isArray(object.isObjectShareAdmin)) - throw TypeError(".Records.AmIShareAdmin.isObjectShareAdmin: array expected"); + throw TypeError('.Records.AmIShareAdmin.isObjectShareAdmin: array expected'); message.isObjectShareAdmin = []; for (let i = 0; i < object.isObjectShareAdmin.length; ++i) { - if (typeof object.isObjectShareAdmin[i] !== "object") - throw TypeError(".Records.AmIShareAdmin.isObjectShareAdmin: object expected"); - message.isObjectShareAdmin[i] = $root.Records.IsObjectShareAdmin.fromObject(object.isObjectShareAdmin[i]); + if (typeof object.isObjectShareAdmin[i] !== 'object') + throw TypeError('.Records.AmIShareAdmin.isObjectShareAdmin: object expected'); + message.isObjectShareAdmin[i] = $root.Records.IsObjectShareAdmin.fromObject( + object.isObjectShareAdmin[i] + ); } } return message; @@ -185239,15 +192816,16 @@ export const Records = $root.Records = (() => { * @returns {Object.} Plain object */ AmIShareAdmin.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.isObjectShareAdmin = []; + if (options.arrays || options.defaults) object.isObjectShareAdmin = []; if (message.isObjectShareAdmin && message.isObjectShareAdmin.length) { object.isObjectShareAdmin = []; for (let j = 0; j < message.isObjectShareAdmin.length; ++j) - object.isObjectShareAdmin[j] = $root.Records.IsObjectShareAdmin.toObject(message.isObjectShareAdmin[j], options); + object.isObjectShareAdmin[j] = $root.Records.IsObjectShareAdmin.toObject( + message.isObjectShareAdmin[j], + options + ); } return object; }; @@ -185273,16 +192851,15 @@ export const Records = $root.Records = (() => { */ AmIShareAdmin.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Records.AmIShareAdmin"; + return typeUrlPrefix + '/Records.AmIShareAdmin'; }; return AmIShareAdmin; })(); - Records.RecordShareUpdateRequest = (function() { - + Records.RecordShareUpdateRequest = (function () { /** * Properties of a RecordShareUpdateRequest. * @memberof Records @@ -185307,8 +192884,7 @@ export const Records = $root.Records = (() => { this.removeSharedRecord = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -185341,7 +192917,7 @@ export const Records = $root.Records = (() => { * @memberof Records.RecordShareUpdateRequest * @instance */ - RecordShareUpdateRequest.prototype.pt = ""; + RecordShareUpdateRequest.prototype.pt = ''; /** * Creates a new RecordShareUpdateRequest instance using the specified properties. @@ -185365,19 +192941,27 @@ export const Records = $root.Records = (() => { * @returns {$protobuf.Writer} Writer */ RecordShareUpdateRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.addSharedRecord != null && message.addSharedRecord.length) for (let i = 0; i < message.addSharedRecord.length; ++i) - $root.Records.SharedRecord.encode(message.addSharedRecord[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.Records.SharedRecord.encode( + message.addSharedRecord[i], + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); if (message.updateSharedRecord != null && message.updateSharedRecord.length) for (let i = 0; i < message.updateSharedRecord.length; ++i) - $root.Records.SharedRecord.encode(message.updateSharedRecord[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + $root.Records.SharedRecord.encode( + message.updateSharedRecord[i], + writer.uint32(/* id 2, wireType 2 =*/ 18).fork() + ).ldelim(); if (message.removeSharedRecord != null && message.removeSharedRecord.length) for (let i = 0; i < message.removeSharedRecord.length; ++i) - $root.Records.SharedRecord.encode(message.removeSharedRecord[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.pt != null && Object.hasOwnProperty.call(message, "pt")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.pt); + $root.Records.SharedRecord.encode( + message.removeSharedRecord[i], + writer.uint32(/* id 3, wireType 2 =*/ 26).fork() + ).ldelim(); + if (message.pt != null && Object.hasOwnProperty.call(message, 'pt')) + writer.uint32(/* id 4, wireType 2 =*/ 34).string(message.pt); return writer; }; @@ -185406,37 +192990,36 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RecordShareUpdateRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordShareUpdateRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Records.RecordShareUpdateRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (!(message.addSharedRecord && message.addSharedRecord.length)) - message.addSharedRecord = []; + case 1: { + if (!(message.addSharedRecord && message.addSharedRecord.length)) message.addSharedRecord = []; message.addSharedRecord.push($root.Records.SharedRecord.decode(reader, reader.uint32())); break; } - case 2: { + case 2: { if (!(message.updateSharedRecord && message.updateSharedRecord.length)) message.updateSharedRecord = []; message.updateSharedRecord.push($root.Records.SharedRecord.decode(reader, reader.uint32())); break; } - case 3: { + case 3: { if (!(message.removeSharedRecord && message.removeSharedRecord.length)) message.removeSharedRecord = []; message.removeSharedRecord.push($root.Records.SharedRecord.decode(reader, reader.uint32())); break; } - case 4: { + case 4: { message.pt = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -185453,8 +193036,7 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RecordShareUpdateRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -185467,38 +193049,30 @@ export const Records = $root.Records = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ RecordShareUpdateRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.addSharedRecord != null && message.hasOwnProperty("addSharedRecord")) { - if (!Array.isArray(message.addSharedRecord)) - return "addSharedRecord: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.addSharedRecord != null && message.hasOwnProperty('addSharedRecord')) { + if (!Array.isArray(message.addSharedRecord)) return 'addSharedRecord: array expected'; for (let i = 0; i < message.addSharedRecord.length; ++i) { let error = $root.Records.SharedRecord.verify(message.addSharedRecord[i]); - if (error) - return "addSharedRecord." + error; + if (error) return 'addSharedRecord.' + error; } } - if (message.updateSharedRecord != null && message.hasOwnProperty("updateSharedRecord")) { - if (!Array.isArray(message.updateSharedRecord)) - return "updateSharedRecord: array expected"; + if (message.updateSharedRecord != null && message.hasOwnProperty('updateSharedRecord')) { + if (!Array.isArray(message.updateSharedRecord)) return 'updateSharedRecord: array expected'; for (let i = 0; i < message.updateSharedRecord.length; ++i) { let error = $root.Records.SharedRecord.verify(message.updateSharedRecord[i]); - if (error) - return "updateSharedRecord." + error; + if (error) return 'updateSharedRecord.' + error; } } - if (message.removeSharedRecord != null && message.hasOwnProperty("removeSharedRecord")) { - if (!Array.isArray(message.removeSharedRecord)) - return "removeSharedRecord: array expected"; + if (message.removeSharedRecord != null && message.hasOwnProperty('removeSharedRecord')) { + if (!Array.isArray(message.removeSharedRecord)) return 'removeSharedRecord: array expected'; for (let i = 0; i < message.removeSharedRecord.length; ++i) { let error = $root.Records.SharedRecord.verify(message.removeSharedRecord[i]); - if (error) - return "removeSharedRecord." + error; + if (error) return 'removeSharedRecord.' + error; } } - if (message.pt != null && message.hasOwnProperty("pt")) - if (!$util.isString(message.pt)) - return "pt: string expected"; + if (message.pt != null && message.hasOwnProperty('pt')) + if (!$util.isString(message.pt)) return 'pt: string expected'; return null; }; @@ -185511,41 +193085,39 @@ export const Records = $root.Records = (() => { * @returns {Records.RecordShareUpdateRequest} RecordShareUpdateRequest */ RecordShareUpdateRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Records.RecordShareUpdateRequest) - return object; + if (object instanceof $root.Records.RecordShareUpdateRequest) return object; let message = new $root.Records.RecordShareUpdateRequest(); if (object.addSharedRecord) { if (!Array.isArray(object.addSharedRecord)) - throw TypeError(".Records.RecordShareUpdateRequest.addSharedRecord: array expected"); + throw TypeError('.Records.RecordShareUpdateRequest.addSharedRecord: array expected'); message.addSharedRecord = []; for (let i = 0; i < object.addSharedRecord.length; ++i) { - if (typeof object.addSharedRecord[i] !== "object") - throw TypeError(".Records.RecordShareUpdateRequest.addSharedRecord: object expected"); + if (typeof object.addSharedRecord[i] !== 'object') + throw TypeError('.Records.RecordShareUpdateRequest.addSharedRecord: object expected'); message.addSharedRecord[i] = $root.Records.SharedRecord.fromObject(object.addSharedRecord[i]); } } if (object.updateSharedRecord) { if (!Array.isArray(object.updateSharedRecord)) - throw TypeError(".Records.RecordShareUpdateRequest.updateSharedRecord: array expected"); + throw TypeError('.Records.RecordShareUpdateRequest.updateSharedRecord: array expected'); message.updateSharedRecord = []; for (let i = 0; i < object.updateSharedRecord.length; ++i) { - if (typeof object.updateSharedRecord[i] !== "object") - throw TypeError(".Records.RecordShareUpdateRequest.updateSharedRecord: object expected"); + if (typeof object.updateSharedRecord[i] !== 'object') + throw TypeError('.Records.RecordShareUpdateRequest.updateSharedRecord: object expected'); message.updateSharedRecord[i] = $root.Records.SharedRecord.fromObject(object.updateSharedRecord[i]); } } if (object.removeSharedRecord) { if (!Array.isArray(object.removeSharedRecord)) - throw TypeError(".Records.RecordShareUpdateRequest.removeSharedRecord: array expected"); + throw TypeError('.Records.RecordShareUpdateRequest.removeSharedRecord: array expected'); message.removeSharedRecord = []; for (let i = 0; i < object.removeSharedRecord.length; ++i) { - if (typeof object.removeSharedRecord[i] !== "object") - throw TypeError(".Records.RecordShareUpdateRequest.removeSharedRecord: object expected"); + if (typeof object.removeSharedRecord[i] !== 'object') + throw TypeError('.Records.RecordShareUpdateRequest.removeSharedRecord: object expected'); message.removeSharedRecord[i] = $root.Records.SharedRecord.fromObject(object.removeSharedRecord[i]); } } - if (object.pt != null) - message.pt = String(object.pt); + if (object.pt != null) message.pt = String(object.pt); return message; }; @@ -185559,33 +193131,39 @@ export const Records = $root.Records = (() => { * @returns {Object.} Plain object */ RecordShareUpdateRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.arrays || options.defaults) { object.addSharedRecord = []; object.updateSharedRecord = []; object.removeSharedRecord = []; } - if (options.defaults) - object.pt = ""; + if (options.defaults) object.pt = ''; if (message.addSharedRecord && message.addSharedRecord.length) { object.addSharedRecord = []; for (let j = 0; j < message.addSharedRecord.length; ++j) - object.addSharedRecord[j] = $root.Records.SharedRecord.toObject(message.addSharedRecord[j], options); + object.addSharedRecord[j] = $root.Records.SharedRecord.toObject( + message.addSharedRecord[j], + options + ); } if (message.updateSharedRecord && message.updateSharedRecord.length) { object.updateSharedRecord = []; for (let j = 0; j < message.updateSharedRecord.length; ++j) - object.updateSharedRecord[j] = $root.Records.SharedRecord.toObject(message.updateSharedRecord[j], options); + object.updateSharedRecord[j] = $root.Records.SharedRecord.toObject( + message.updateSharedRecord[j], + options + ); } if (message.removeSharedRecord && message.removeSharedRecord.length) { object.removeSharedRecord = []; for (let j = 0; j < message.removeSharedRecord.length; ++j) - object.removeSharedRecord[j] = $root.Records.SharedRecord.toObject(message.removeSharedRecord[j], options); + object.removeSharedRecord[j] = $root.Records.SharedRecord.toObject( + message.removeSharedRecord[j], + options + ); } - if (message.pt != null && message.hasOwnProperty("pt")) - object.pt = message.pt; + if (message.pt != null && message.hasOwnProperty('pt')) object.pt = message.pt; return object; }; @@ -185610,16 +193188,15 @@ export const Records = $root.Records = (() => { */ RecordShareUpdateRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Records.RecordShareUpdateRequest"; + return typeUrlPrefix + '/Records.RecordShareUpdateRequest'; }; return RecordShareUpdateRequest; })(); - Records.SharedRecord = (function() { - + Records.SharedRecord = (function () { /** * Properties of a SharedRecord. * @memberof Records @@ -185650,8 +193227,7 @@ export const Records = $root.Records = (() => { function SharedRecord(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -185660,7 +193236,7 @@ export const Records = $root.Records = (() => { * @memberof Records.SharedRecord * @instance */ - SharedRecord.prototype.toUsername = ""; + SharedRecord.prototype.toUsername = ''; /** * SharedRecord recordUid. @@ -185740,7 +193316,7 @@ export const Records = $root.Records = (() => { * @memberof Records.SharedRecord * @instance */ - SharedRecord.prototype.expiration = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + SharedRecord.prototype.expiration = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * SharedRecord timerNotificationType. @@ -185780,34 +193356,33 @@ export const Records = $root.Records = (() => { * @returns {$protobuf.Writer} Writer */ SharedRecord.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.toUsername != null && Object.hasOwnProperty.call(message, "toUsername")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.toUsername); - if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.recordUid); - if (message.recordKey != null && Object.hasOwnProperty.call(message, "recordKey")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.recordKey); - if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, "sharedFolderUid")) - writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.sharedFolderUid); - if (message.teamUid != null && Object.hasOwnProperty.call(message, "teamUid")) - writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.teamUid); - if (message.editable != null && Object.hasOwnProperty.call(message, "editable")) - writer.uint32(/* id 6, wireType 0 =*/48).bool(message.editable); - if (message.shareable != null && Object.hasOwnProperty.call(message, "shareable")) - writer.uint32(/* id 7, wireType 0 =*/56).bool(message.shareable); - if (message.transfer != null && Object.hasOwnProperty.call(message, "transfer")) - writer.uint32(/* id 8, wireType 0 =*/64).bool(message.transfer); - if (message.useEccKey != null && Object.hasOwnProperty.call(message, "useEccKey")) - writer.uint32(/* id 9, wireType 0 =*/72).bool(message.useEccKey); - if (message.removeVaultData != null && Object.hasOwnProperty.call(message, "removeVaultData")) - writer.uint32(/* id 10, wireType 0 =*/80).bool(message.removeVaultData); - if (message.expiration != null && Object.hasOwnProperty.call(message, "expiration")) - writer.uint32(/* id 11, wireType 0 =*/88).int64(message.expiration); - if (message.timerNotificationType != null && Object.hasOwnProperty.call(message, "timerNotificationType")) - writer.uint32(/* id 12, wireType 0 =*/96).int32(message.timerNotificationType); - if (message.rotateOnExpiration != null && Object.hasOwnProperty.call(message, "rotateOnExpiration")) - writer.uint32(/* id 13, wireType 0 =*/104).bool(message.rotateOnExpiration); + if (!writer) writer = $Writer.create(); + if (message.toUsername != null && Object.hasOwnProperty.call(message, 'toUsername')) + writer.uint32(/* id 1, wireType 2 =*/ 10).string(message.toUsername); + if (message.recordUid != null && Object.hasOwnProperty.call(message, 'recordUid')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.recordUid); + if (message.recordKey != null && Object.hasOwnProperty.call(message, 'recordKey')) + writer.uint32(/* id 3, wireType 2 =*/ 26).bytes(message.recordKey); + if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, 'sharedFolderUid')) + writer.uint32(/* id 4, wireType 2 =*/ 34).bytes(message.sharedFolderUid); + if (message.teamUid != null && Object.hasOwnProperty.call(message, 'teamUid')) + writer.uint32(/* id 5, wireType 2 =*/ 42).bytes(message.teamUid); + if (message.editable != null && Object.hasOwnProperty.call(message, 'editable')) + writer.uint32(/* id 6, wireType 0 =*/ 48).bool(message.editable); + if (message.shareable != null && Object.hasOwnProperty.call(message, 'shareable')) + writer.uint32(/* id 7, wireType 0 =*/ 56).bool(message.shareable); + if (message.transfer != null && Object.hasOwnProperty.call(message, 'transfer')) + writer.uint32(/* id 8, wireType 0 =*/ 64).bool(message.transfer); + if (message.useEccKey != null && Object.hasOwnProperty.call(message, 'useEccKey')) + writer.uint32(/* id 9, wireType 0 =*/ 72).bool(message.useEccKey); + if (message.removeVaultData != null && Object.hasOwnProperty.call(message, 'removeVaultData')) + writer.uint32(/* id 10, wireType 0 =*/ 80).bool(message.removeVaultData); + if (message.expiration != null && Object.hasOwnProperty.call(message, 'expiration')) + writer.uint32(/* id 11, wireType 0 =*/ 88).int64(message.expiration); + if (message.timerNotificationType != null && Object.hasOwnProperty.call(message, 'timerNotificationType')) + writer.uint32(/* id 12, wireType 0 =*/ 96).int32(message.timerNotificationType); + if (message.rotateOnExpiration != null && Object.hasOwnProperty.call(message, 'rotateOnExpiration')) + writer.uint32(/* id 13, wireType 0 =*/ 104).bool(message.rotateOnExpiration); return writer; }; @@ -185836,67 +193411,67 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SharedRecord.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.SharedRecord(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Records.SharedRecord(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.toUsername = reader.string(); break; } - case 2: { + case 2: { message.recordUid = reader.bytes(); break; } - case 3: { + case 3: { message.recordKey = reader.bytes(); break; } - case 4: { + case 4: { message.sharedFolderUid = reader.bytes(); break; } - case 5: { + case 5: { message.teamUid = reader.bytes(); break; } - case 6: { + case 6: { message.editable = reader.bool(); break; } - case 7: { + case 7: { message.shareable = reader.bool(); break; } - case 8: { + case 8: { message.transfer = reader.bool(); break; } - case 9: { + case 9: { message.useEccKey = reader.bool(); break; } - case 10: { + case 10: { message.removeVaultData = reader.bool(); break; } - case 11: { + case 11: { message.expiration = reader.int64(); break; } - case 12: { + case 12: { message.timerNotificationType = reader.int32(); break; } - case 13: { + case 13: { message.rotateOnExpiration = reader.bool(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -185913,8 +193488,7 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SharedRecord.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -185927,53 +193501,72 @@ export const Records = $root.Records = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ SharedRecord.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.toUsername != null && message.hasOwnProperty("toUsername")) - if (!$util.isString(message.toUsername)) - return "toUsername: string expected"; - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) - return "recordUid: buffer expected"; - if (message.recordKey != null && message.hasOwnProperty("recordKey")) - if (!(message.recordKey && typeof message.recordKey.length === "number" || $util.isString(message.recordKey))) - return "recordKey: buffer expected"; - if (message.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) - if (!(message.sharedFolderUid && typeof message.sharedFolderUid.length === "number" || $util.isString(message.sharedFolderUid))) - return "sharedFolderUid: buffer expected"; - if (message.teamUid != null && message.hasOwnProperty("teamUid")) - if (!(message.teamUid && typeof message.teamUid.length === "number" || $util.isString(message.teamUid))) - return "teamUid: buffer expected"; - if (message.editable != null && message.hasOwnProperty("editable")) - if (typeof message.editable !== "boolean") - return "editable: boolean expected"; - if (message.shareable != null && message.hasOwnProperty("shareable")) - if (typeof message.shareable !== "boolean") - return "shareable: boolean expected"; - if (message.transfer != null && message.hasOwnProperty("transfer")) - if (typeof message.transfer !== "boolean") - return "transfer: boolean expected"; - if (message.useEccKey != null && message.hasOwnProperty("useEccKey")) - if (typeof message.useEccKey !== "boolean") - return "useEccKey: boolean expected"; - if (message.removeVaultData != null && message.hasOwnProperty("removeVaultData")) - if (typeof message.removeVaultData !== "boolean") - return "removeVaultData: boolean expected"; - if (message.expiration != null && message.hasOwnProperty("expiration")) - if (!$util.isInteger(message.expiration) && !(message.expiration && $util.isInteger(message.expiration.low) && $util.isInteger(message.expiration.high))) - return "expiration: integer|Long expected"; - if (message.timerNotificationType != null && message.hasOwnProperty("timerNotificationType")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.toUsername != null && message.hasOwnProperty('toUsername')) + if (!$util.isString(message.toUsername)) return 'toUsername: string expected'; + if (message.recordUid != null && message.hasOwnProperty('recordUid')) + if ( + !( + (message.recordUid && typeof message.recordUid.length === 'number') || + $util.isString(message.recordUid) + ) + ) + return 'recordUid: buffer expected'; + if (message.recordKey != null && message.hasOwnProperty('recordKey')) + if ( + !( + (message.recordKey && typeof message.recordKey.length === 'number') || + $util.isString(message.recordKey) + ) + ) + return 'recordKey: buffer expected'; + if (message.sharedFolderUid != null && message.hasOwnProperty('sharedFolderUid')) + if ( + !( + (message.sharedFolderUid && typeof message.sharedFolderUid.length === 'number') || + $util.isString(message.sharedFolderUid) + ) + ) + return 'sharedFolderUid: buffer expected'; + if (message.teamUid != null && message.hasOwnProperty('teamUid')) + if ( + !( + (message.teamUid && typeof message.teamUid.length === 'number') || + $util.isString(message.teamUid) + ) + ) + return 'teamUid: buffer expected'; + if (message.editable != null && message.hasOwnProperty('editable')) + if (typeof message.editable !== 'boolean') return 'editable: boolean expected'; + if (message.shareable != null && message.hasOwnProperty('shareable')) + if (typeof message.shareable !== 'boolean') return 'shareable: boolean expected'; + if (message.transfer != null && message.hasOwnProperty('transfer')) + if (typeof message.transfer !== 'boolean') return 'transfer: boolean expected'; + if (message.useEccKey != null && message.hasOwnProperty('useEccKey')) + if (typeof message.useEccKey !== 'boolean') return 'useEccKey: boolean expected'; + if (message.removeVaultData != null && message.hasOwnProperty('removeVaultData')) + if (typeof message.removeVaultData !== 'boolean') return 'removeVaultData: boolean expected'; + if (message.expiration != null && message.hasOwnProperty('expiration')) + if ( + !$util.isInteger(message.expiration) && + !( + message.expiration && + $util.isInteger(message.expiration.low) && + $util.isInteger(message.expiration.high) + ) + ) + return 'expiration: integer|Long expected'; + if (message.timerNotificationType != null && message.hasOwnProperty('timerNotificationType')) switch (message.timerNotificationType) { - default: - return "timerNotificationType: enum value expected"; - case 0: - case 1: - case 2: - break; + default: + return 'timerNotificationType: enum value expected'; + case 0: + case 1: + case 2: + break; } - if (message.rotateOnExpiration != null && message.hasOwnProperty("rotateOnExpiration")) - if (typeof message.rotateOnExpiration !== "boolean") - return "rotateOnExpiration: boolean expected"; + if (message.rotateOnExpiration != null && message.hasOwnProperty('rotateOnExpiration')) + if (typeof message.rotateOnExpiration !== 'boolean') return 'rotateOnExpiration: boolean expected'; return null; }; @@ -185986,72 +193579,76 @@ export const Records = $root.Records = (() => { * @returns {Records.SharedRecord} SharedRecord */ SharedRecord.fromObject = function fromObject(object) { - if (object instanceof $root.Records.SharedRecord) - return object; + if (object instanceof $root.Records.SharedRecord) return object; let message = new $root.Records.SharedRecord(); - if (object.toUsername != null) - message.toUsername = String(object.toUsername); + if (object.toUsername != null) message.toUsername = String(object.toUsername); 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 (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.recordKey != null) - if (typeof object.recordKey === "string") - $util.base64.decode(object.recordKey, message.recordKey = $util.newBuffer($util.base64.length(object.recordKey)), 0); - else if (object.recordKey.length >= 0) - message.recordKey = object.recordKey; + if (typeof object.recordKey === 'string') + $util.base64.decode( + object.recordKey, + (message.recordKey = $util.newBuffer($util.base64.length(object.recordKey))), + 0 + ); + else if (object.recordKey.length >= 0) message.recordKey = object.recordKey; if (object.sharedFolderUid != null) - if (typeof object.sharedFolderUid === "string") - $util.base64.decode(object.sharedFolderUid, message.sharedFolderUid = $util.newBuffer($util.base64.length(object.sharedFolderUid)), 0); - else if (object.sharedFolderUid.length >= 0) - message.sharedFolderUid = object.sharedFolderUid; + if (typeof object.sharedFolderUid === 'string') + $util.base64.decode( + object.sharedFolderUid, + (message.sharedFolderUid = $util.newBuffer($util.base64.length(object.sharedFolderUid))), + 0 + ); + else if (object.sharedFolderUid.length >= 0) message.sharedFolderUid = object.sharedFolderUid; if (object.teamUid != null) - if (typeof object.teamUid === "string") - $util.base64.decode(object.teamUid, message.teamUid = $util.newBuffer($util.base64.length(object.teamUid)), 0); - else if (object.teamUid.length >= 0) - message.teamUid = object.teamUid; - if (object.editable != null) - message.editable = Boolean(object.editable); - if (object.shareable != null) - message.shareable = Boolean(object.shareable); - if (object.transfer != null) - message.transfer = Boolean(object.transfer); - if (object.useEccKey != null) - message.useEccKey = Boolean(object.useEccKey); - if (object.removeVaultData != null) - message.removeVaultData = Boolean(object.removeVaultData); + if (typeof object.teamUid === 'string') + $util.base64.decode( + object.teamUid, + (message.teamUid = $util.newBuffer($util.base64.length(object.teamUid))), + 0 + ); + else if (object.teamUid.length >= 0) message.teamUid = object.teamUid; + if (object.editable != null) message.editable = Boolean(object.editable); + if (object.shareable != null) message.shareable = Boolean(object.shareable); + if (object.transfer != null) message.transfer = Boolean(object.transfer); + if (object.useEccKey != null) message.useEccKey = Boolean(object.useEccKey); + if (object.removeVaultData != null) message.removeVaultData = Boolean(object.removeVaultData); if (object.expiration != null) - if ($util.Long) - (message.expiration = $util.Long.fromValue(object.expiration)).unsigned = false; - else if (typeof object.expiration === "string") - message.expiration = parseInt(object.expiration, 10); - else if (typeof object.expiration === "number") - message.expiration = object.expiration; - else if (typeof object.expiration === "object") - message.expiration = new $util.LongBits(object.expiration.low >>> 0, object.expiration.high >>> 0).toNumber(); + if ($util.Long) (message.expiration = $util.Long.fromValue(object.expiration)).unsigned = false; + else if (typeof object.expiration === 'string') message.expiration = parseInt(object.expiration, 10); + else if (typeof object.expiration === 'number') message.expiration = object.expiration; + else if (typeof object.expiration === 'object') + message.expiration = new $util.LongBits( + object.expiration.low >>> 0, + object.expiration.high >>> 0 + ).toNumber(); switch (object.timerNotificationType) { - default: - if (typeof object.timerNotificationType === "number") { - message.timerNotificationType = object.timerNotificationType; + default: + if (typeof object.timerNotificationType === 'number') { + message.timerNotificationType = object.timerNotificationType; + break; + } + break; + case 'NOTIFICATION_OFF': + case 0: + message.timerNotificationType = 0; + break; + case 'NOTIFY_OWNER': + case 1: + message.timerNotificationType = 1; + break; + case 'NOTIFY_PRIVILEGED_USERS': + case 2: + message.timerNotificationType = 2; break; - } - break; - case "NOTIFICATION_OFF": - case 0: - message.timerNotificationType = 0; - break; - case "NOTIFY_OWNER": - case 1: - message.timerNotificationType = 1; - break; - case "NOTIFY_PRIVILEGED_USERS": - case 2: - message.timerNotificationType = 2; - break; } - if (object.rotateOnExpiration != null) - message.rotateOnExpiration = Boolean(object.rotateOnExpiration); + if (object.rotateOnExpiration != null) message.rotateOnExpiration = Boolean(object.rotateOnExpiration); return message; }; @@ -186065,38 +193662,29 @@ export const Records = $root.Records = (() => { * @returns {Object.} Plain object */ SharedRecord.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - object.toUsername = ""; - if (options.bytes === String) - object.recordUid = ""; + object.toUsername = ''; + if (options.bytes === String) object.recordUid = ''; else { object.recordUid = []; - if (options.bytes !== Array) - object.recordUid = $util.newBuffer(object.recordUid); + if (options.bytes !== Array) object.recordUid = $util.newBuffer(object.recordUid); } - if (options.bytes === String) - object.recordKey = ""; + if (options.bytes === String) object.recordKey = ''; else { object.recordKey = []; - if (options.bytes !== Array) - object.recordKey = $util.newBuffer(object.recordKey); + if (options.bytes !== Array) object.recordKey = $util.newBuffer(object.recordKey); } - if (options.bytes === String) - object.sharedFolderUid = ""; + if (options.bytes === String) object.sharedFolderUid = ''; else { object.sharedFolderUid = []; - if (options.bytes !== Array) - object.sharedFolderUid = $util.newBuffer(object.sharedFolderUid); + if (options.bytes !== Array) object.sharedFolderUid = $util.newBuffer(object.sharedFolderUid); } - if (options.bytes === String) - object.teamUid = ""; + if (options.bytes === String) object.teamUid = ''; else { object.teamUid = []; - if (options.bytes !== Array) - object.teamUid = $util.newBuffer(object.teamUid); + if (options.bytes !== Array) object.teamUid = $util.newBuffer(object.teamUid); } object.editable = false; object.shareable = false; @@ -186105,40 +193693,69 @@ export const Records = $root.Records = (() => { object.removeVaultData = false; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.expiration = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.expiration = options.longs === String ? "0" : 0; - object.timerNotificationType = options.enums === String ? "NOTIFICATION_OFF" : 0; + object.expiration = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.expiration = options.longs === String ? '0' : 0; + object.timerNotificationType = options.enums === String ? 'NOTIFICATION_OFF' : 0; object.rotateOnExpiration = false; } - if (message.toUsername != null && message.hasOwnProperty("toUsername")) + if (message.toUsername != null && message.hasOwnProperty('toUsername')) object.toUsername = message.toUsername; - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; - if (message.recordKey != null && message.hasOwnProperty("recordKey")) - object.recordKey = options.bytes === String ? $util.base64.encode(message.recordKey, 0, message.recordKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordKey) : message.recordKey; - if (message.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) - object.sharedFolderUid = options.bytes === String ? $util.base64.encode(message.sharedFolderUid, 0, message.sharedFolderUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.sharedFolderUid) : message.sharedFolderUid; - if (message.teamUid != null && message.hasOwnProperty("teamUid")) - object.teamUid = options.bytes === String ? $util.base64.encode(message.teamUid, 0, message.teamUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.teamUid) : message.teamUid; - if (message.editable != null && message.hasOwnProperty("editable")) - object.editable = message.editable; - if (message.shareable != null && message.hasOwnProperty("shareable")) - object.shareable = message.shareable; - if (message.transfer != null && message.hasOwnProperty("transfer")) - object.transfer = message.transfer; - if (message.useEccKey != null && message.hasOwnProperty("useEccKey")) - object.useEccKey = message.useEccKey; - if (message.removeVaultData != null && message.hasOwnProperty("removeVaultData")) + if (message.recordUid != null && message.hasOwnProperty('recordUid')) + object.recordUid = + options.bytes === String + ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.recordUid) + : message.recordUid; + if (message.recordKey != null && message.hasOwnProperty('recordKey')) + object.recordKey = + options.bytes === String + ? $util.base64.encode(message.recordKey, 0, message.recordKey.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.recordKey) + : message.recordKey; + if (message.sharedFolderUid != null && message.hasOwnProperty('sharedFolderUid')) + object.sharedFolderUid = + options.bytes === String + ? $util.base64.encode(message.sharedFolderUid, 0, message.sharedFolderUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.sharedFolderUid) + : message.sharedFolderUid; + if (message.teamUid != null && message.hasOwnProperty('teamUid')) + object.teamUid = + options.bytes === String + ? $util.base64.encode(message.teamUid, 0, message.teamUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.teamUid) + : message.teamUid; + if (message.editable != null && message.hasOwnProperty('editable')) object.editable = message.editable; + if (message.shareable != null && message.hasOwnProperty('shareable')) object.shareable = message.shareable; + if (message.transfer != null && message.hasOwnProperty('transfer')) object.transfer = message.transfer; + if (message.useEccKey != null && message.hasOwnProperty('useEccKey')) object.useEccKey = message.useEccKey; + if (message.removeVaultData != null && message.hasOwnProperty('removeVaultData')) object.removeVaultData = message.removeVaultData; - if (message.expiration != null && message.hasOwnProperty("expiration")) - if (typeof message.expiration === "number") + if (message.expiration != null && message.hasOwnProperty('expiration')) + if (typeof message.expiration === 'number') object.expiration = options.longs === String ? String(message.expiration) : message.expiration; else - object.expiration = options.longs === String ? $util.Long.prototype.toString.call(message.expiration) : options.longs === Number ? new $util.LongBits(message.expiration.low >>> 0, message.expiration.high >>> 0).toNumber() : message.expiration; - if (message.timerNotificationType != null && message.hasOwnProperty("timerNotificationType")) - object.timerNotificationType = options.enums === String ? $root.Records.TimerNotificationType[message.timerNotificationType] === undefined ? message.timerNotificationType : $root.Records.TimerNotificationType[message.timerNotificationType] : message.timerNotificationType; - if (message.rotateOnExpiration != null && message.hasOwnProperty("rotateOnExpiration")) + object.expiration = + options.longs === String + ? $util.Long.prototype.toString.call(message.expiration) + : options.longs === Number + ? new $util.LongBits( + message.expiration.low >>> 0, + message.expiration.high >>> 0 + ).toNumber() + : message.expiration; + if (message.timerNotificationType != null && message.hasOwnProperty('timerNotificationType')) + object.timerNotificationType = + options.enums === String + ? $root.Records.TimerNotificationType[message.timerNotificationType] === undefined + ? message.timerNotificationType + : $root.Records.TimerNotificationType[message.timerNotificationType] + : message.timerNotificationType; + if (message.rotateOnExpiration != null && message.hasOwnProperty('rotateOnExpiration')) object.rotateOnExpiration = message.rotateOnExpiration; return object; }; @@ -186164,16 +193781,15 @@ export const Records = $root.Records = (() => { */ SharedRecord.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Records.SharedRecord"; + return typeUrlPrefix + '/Records.SharedRecord'; }; return SharedRecord; })(); - Records.RecordShareUpdateResponse = (function() { - + Records.RecordShareUpdateResponse = (function () { /** * Properties of a RecordShareUpdateResponse. * @memberof Records @@ -186197,8 +193813,7 @@ export const Records = $root.Records = (() => { this.removeSharedRecordStatus = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -186247,17 +193862,25 @@ export const Records = $root.Records = (() => { * @returns {$protobuf.Writer} Writer */ RecordShareUpdateResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.addSharedRecordStatus != null && message.addSharedRecordStatus.length) for (let i = 0; i < message.addSharedRecordStatus.length; ++i) - $root.Records.SharedRecordStatus.encode(message.addSharedRecordStatus[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.Records.SharedRecordStatus.encode( + message.addSharedRecordStatus[i], + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); if (message.updateSharedRecordStatus != null && message.updateSharedRecordStatus.length) for (let i = 0; i < message.updateSharedRecordStatus.length; ++i) - $root.Records.SharedRecordStatus.encode(message.updateSharedRecordStatus[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + $root.Records.SharedRecordStatus.encode( + message.updateSharedRecordStatus[i], + writer.uint32(/* id 2, wireType 2 =*/ 18).fork() + ).ldelim(); if (message.removeSharedRecordStatus != null && message.removeSharedRecordStatus.length) for (let i = 0; i < message.removeSharedRecordStatus.length; ++i) - $root.Records.SharedRecordStatus.encode(message.removeSharedRecordStatus[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + $root.Records.SharedRecordStatus.encode( + message.removeSharedRecordStatus[i], + writer.uint32(/* id 3, wireType 2 =*/ 26).fork() + ).ldelim(); return writer; }; @@ -186286,33 +193909,39 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RecordShareUpdateResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordShareUpdateResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Records.RecordShareUpdateResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { if (!(message.addSharedRecordStatus && message.addSharedRecordStatus.length)) message.addSharedRecordStatus = []; - message.addSharedRecordStatus.push($root.Records.SharedRecordStatus.decode(reader, reader.uint32())); + message.addSharedRecordStatus.push( + $root.Records.SharedRecordStatus.decode(reader, reader.uint32()) + ); break; } - case 2: { + case 2: { if (!(message.updateSharedRecordStatus && message.updateSharedRecordStatus.length)) message.updateSharedRecordStatus = []; - message.updateSharedRecordStatus.push($root.Records.SharedRecordStatus.decode(reader, reader.uint32())); + message.updateSharedRecordStatus.push( + $root.Records.SharedRecordStatus.decode(reader, reader.uint32()) + ); break; } - case 3: { + case 3: { if (!(message.removeSharedRecordStatus && message.removeSharedRecordStatus.length)) message.removeSharedRecordStatus = []; - message.removeSharedRecordStatus.push($root.Records.SharedRecordStatus.decode(reader, reader.uint32())); + message.removeSharedRecordStatus.push( + $root.Records.SharedRecordStatus.decode(reader, reader.uint32()) + ); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -186329,8 +193958,7 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RecordShareUpdateResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -186343,33 +193971,26 @@ export const Records = $root.Records = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ RecordShareUpdateResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.addSharedRecordStatus != null && message.hasOwnProperty("addSharedRecordStatus")) { - if (!Array.isArray(message.addSharedRecordStatus)) - return "addSharedRecordStatus: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.addSharedRecordStatus != null && message.hasOwnProperty('addSharedRecordStatus')) { + if (!Array.isArray(message.addSharedRecordStatus)) return 'addSharedRecordStatus: array expected'; for (let i = 0; i < message.addSharedRecordStatus.length; ++i) { let error = $root.Records.SharedRecordStatus.verify(message.addSharedRecordStatus[i]); - if (error) - return "addSharedRecordStatus." + error; + if (error) return 'addSharedRecordStatus.' + error; } } - if (message.updateSharedRecordStatus != null && message.hasOwnProperty("updateSharedRecordStatus")) { - if (!Array.isArray(message.updateSharedRecordStatus)) - return "updateSharedRecordStatus: array expected"; + if (message.updateSharedRecordStatus != null && message.hasOwnProperty('updateSharedRecordStatus')) { + if (!Array.isArray(message.updateSharedRecordStatus)) return 'updateSharedRecordStatus: array expected'; for (let i = 0; i < message.updateSharedRecordStatus.length; ++i) { let error = $root.Records.SharedRecordStatus.verify(message.updateSharedRecordStatus[i]); - if (error) - return "updateSharedRecordStatus." + error; + if (error) return 'updateSharedRecordStatus.' + error; } } - if (message.removeSharedRecordStatus != null && message.hasOwnProperty("removeSharedRecordStatus")) { - if (!Array.isArray(message.removeSharedRecordStatus)) - return "removeSharedRecordStatus: array expected"; + if (message.removeSharedRecordStatus != null && message.hasOwnProperty('removeSharedRecordStatus')) { + if (!Array.isArray(message.removeSharedRecordStatus)) return 'removeSharedRecordStatus: array expected'; for (let i = 0; i < message.removeSharedRecordStatus.length; ++i) { let error = $root.Records.SharedRecordStatus.verify(message.removeSharedRecordStatus[i]); - if (error) - return "removeSharedRecordStatus." + error; + if (error) return 'removeSharedRecordStatus.' + error; } } return null; @@ -186384,37 +194005,42 @@ export const Records = $root.Records = (() => { * @returns {Records.RecordShareUpdateResponse} RecordShareUpdateResponse */ RecordShareUpdateResponse.fromObject = function fromObject(object) { - if (object instanceof $root.Records.RecordShareUpdateResponse) - return object; + if (object instanceof $root.Records.RecordShareUpdateResponse) return object; let message = new $root.Records.RecordShareUpdateResponse(); if (object.addSharedRecordStatus) { if (!Array.isArray(object.addSharedRecordStatus)) - throw TypeError(".Records.RecordShareUpdateResponse.addSharedRecordStatus: array expected"); + throw TypeError('.Records.RecordShareUpdateResponse.addSharedRecordStatus: array expected'); message.addSharedRecordStatus = []; for (let i = 0; i < object.addSharedRecordStatus.length; ++i) { - if (typeof object.addSharedRecordStatus[i] !== "object") - throw TypeError(".Records.RecordShareUpdateResponse.addSharedRecordStatus: object expected"); - message.addSharedRecordStatus[i] = $root.Records.SharedRecordStatus.fromObject(object.addSharedRecordStatus[i]); + if (typeof object.addSharedRecordStatus[i] !== 'object') + throw TypeError('.Records.RecordShareUpdateResponse.addSharedRecordStatus: object expected'); + message.addSharedRecordStatus[i] = $root.Records.SharedRecordStatus.fromObject( + object.addSharedRecordStatus[i] + ); } } if (object.updateSharedRecordStatus) { if (!Array.isArray(object.updateSharedRecordStatus)) - throw TypeError(".Records.RecordShareUpdateResponse.updateSharedRecordStatus: array expected"); + throw TypeError('.Records.RecordShareUpdateResponse.updateSharedRecordStatus: array expected'); message.updateSharedRecordStatus = []; for (let i = 0; i < object.updateSharedRecordStatus.length; ++i) { - if (typeof object.updateSharedRecordStatus[i] !== "object") - throw TypeError(".Records.RecordShareUpdateResponse.updateSharedRecordStatus: object expected"); - message.updateSharedRecordStatus[i] = $root.Records.SharedRecordStatus.fromObject(object.updateSharedRecordStatus[i]); + if (typeof object.updateSharedRecordStatus[i] !== 'object') + throw TypeError('.Records.RecordShareUpdateResponse.updateSharedRecordStatus: object expected'); + message.updateSharedRecordStatus[i] = $root.Records.SharedRecordStatus.fromObject( + object.updateSharedRecordStatus[i] + ); } } if (object.removeSharedRecordStatus) { if (!Array.isArray(object.removeSharedRecordStatus)) - throw TypeError(".Records.RecordShareUpdateResponse.removeSharedRecordStatus: array expected"); + throw TypeError('.Records.RecordShareUpdateResponse.removeSharedRecordStatus: array expected'); message.removeSharedRecordStatus = []; for (let i = 0; i < object.removeSharedRecordStatus.length; ++i) { - if (typeof object.removeSharedRecordStatus[i] !== "object") - throw TypeError(".Records.RecordShareUpdateResponse.removeSharedRecordStatus: object expected"); - message.removeSharedRecordStatus[i] = $root.Records.SharedRecordStatus.fromObject(object.removeSharedRecordStatus[i]); + if (typeof object.removeSharedRecordStatus[i] !== 'object') + throw TypeError('.Records.RecordShareUpdateResponse.removeSharedRecordStatus: object expected'); + message.removeSharedRecordStatus[i] = $root.Records.SharedRecordStatus.fromObject( + object.removeSharedRecordStatus[i] + ); } } return message; @@ -186430,8 +194056,7 @@ export const Records = $root.Records = (() => { * @returns {Object.} Plain object */ RecordShareUpdateResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.arrays || options.defaults) { object.addSharedRecordStatus = []; @@ -186441,17 +194066,26 @@ export const Records = $root.Records = (() => { if (message.addSharedRecordStatus && message.addSharedRecordStatus.length) { object.addSharedRecordStatus = []; for (let j = 0; j < message.addSharedRecordStatus.length; ++j) - object.addSharedRecordStatus[j] = $root.Records.SharedRecordStatus.toObject(message.addSharedRecordStatus[j], options); + object.addSharedRecordStatus[j] = $root.Records.SharedRecordStatus.toObject( + message.addSharedRecordStatus[j], + options + ); } if (message.updateSharedRecordStatus && message.updateSharedRecordStatus.length) { object.updateSharedRecordStatus = []; for (let j = 0; j < message.updateSharedRecordStatus.length; ++j) - object.updateSharedRecordStatus[j] = $root.Records.SharedRecordStatus.toObject(message.updateSharedRecordStatus[j], options); + object.updateSharedRecordStatus[j] = $root.Records.SharedRecordStatus.toObject( + message.updateSharedRecordStatus[j], + options + ); } if (message.removeSharedRecordStatus && message.removeSharedRecordStatus.length) { object.removeSharedRecordStatus = []; for (let j = 0; j < message.removeSharedRecordStatus.length; ++j) - object.removeSharedRecordStatus[j] = $root.Records.SharedRecordStatus.toObject(message.removeSharedRecordStatus[j], options); + object.removeSharedRecordStatus[j] = $root.Records.SharedRecordStatus.toObject( + message.removeSharedRecordStatus[j], + options + ); } return object; }; @@ -186477,16 +194111,15 @@ export const Records = $root.Records = (() => { */ RecordShareUpdateResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Records.RecordShareUpdateResponse"; + return typeUrlPrefix + '/Records.RecordShareUpdateResponse'; }; return RecordShareUpdateResponse; })(); - Records.SharedRecordStatus = (function() { - + Records.SharedRecordStatus = (function () { /** * Properties of a SharedRecordStatus. * @memberof Records @@ -186508,8 +194141,7 @@ export const Records = $root.Records = (() => { function SharedRecordStatus(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -186526,7 +194158,7 @@ export const Records = $root.Records = (() => { * @memberof Records.SharedRecordStatus * @instance */ - SharedRecordStatus.prototype.status = ""; + SharedRecordStatus.prototype.status = ''; /** * SharedRecordStatus message. @@ -186534,7 +194166,7 @@ export const Records = $root.Records = (() => { * @memberof Records.SharedRecordStatus * @instance */ - SharedRecordStatus.prototype.message = ""; + SharedRecordStatus.prototype.message = ''; /** * SharedRecordStatus username. @@ -186542,7 +194174,7 @@ export const Records = $root.Records = (() => { * @memberof Records.SharedRecordStatus * @instance */ - SharedRecordStatus.prototype.username = ""; + SharedRecordStatus.prototype.username = ''; /** * Creates a new SharedRecordStatus instance using the specified properties. @@ -186566,16 +194198,15 @@ export const Records = $root.Records = (() => { * @returns {$protobuf.Writer} Writer */ SharedRecordStatus.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); - if (message.status != null && Object.hasOwnProperty.call(message, "status")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.status); - if (message.message != null && Object.hasOwnProperty.call(message, "message")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.message); - if (message.username != null && Object.hasOwnProperty.call(message, "username")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.username); + if (!writer) writer = $Writer.create(); + if (message.recordUid != null && Object.hasOwnProperty.call(message, 'recordUid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.recordUid); + if (message.status != null && Object.hasOwnProperty.call(message, 'status')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.status); + if (message.message != null && Object.hasOwnProperty.call(message, 'message')) + writer.uint32(/* id 3, wireType 2 =*/ 26).string(message.message); + if (message.username != null && Object.hasOwnProperty.call(message, 'username')) + writer.uint32(/* id 4, wireType 2 =*/ 34).string(message.username); return writer; }; @@ -186604,31 +194235,31 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SharedRecordStatus.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.SharedRecordStatus(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Records.SharedRecordStatus(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.recordUid = reader.bytes(); break; } - case 2: { + case 2: { message.status = reader.string(); break; } - case 3: { + case 3: { message.message = reader.string(); break; } - case 4: { + case 4: { message.username = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -186645,8 +194276,7 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SharedRecordStatus.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -186659,20 +194289,21 @@ export const Records = $root.Records = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ SharedRecordStatus.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) - return "recordUid: buffer expected"; - if (message.status != null && message.hasOwnProperty("status")) - if (!$util.isString(message.status)) - return "status: string expected"; - if (message.message != null && message.hasOwnProperty("message")) - if (!$util.isString(message.message)) - return "message: string expected"; - if (message.username != null && message.hasOwnProperty("username")) - if (!$util.isString(message.username)) - return "username: string expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.recordUid != null && message.hasOwnProperty('recordUid')) + if ( + !( + (message.recordUid && typeof message.recordUid.length === 'number') || + $util.isString(message.recordUid) + ) + ) + return 'recordUid: buffer expected'; + if (message.status != null && message.hasOwnProperty('status')) + if (!$util.isString(message.status)) return 'status: string expected'; + if (message.message != null && message.hasOwnProperty('message')) + if (!$util.isString(message.message)) return 'message: string expected'; + if (message.username != null && message.hasOwnProperty('username')) + if (!$util.isString(message.username)) return 'username: string expected'; return null; }; @@ -186685,20 +194316,19 @@ export const Records = $root.Records = (() => { * @returns {Records.SharedRecordStatus} SharedRecordStatus */ SharedRecordStatus.fromObject = function fromObject(object) { - if (object instanceof $root.Records.SharedRecordStatus) - return object; + if (object instanceof $root.Records.SharedRecordStatus) return object; let message = new $root.Records.SharedRecordStatus(); 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.status != null) - message.status = String(object.status); - if (object.message != null) - message.message = String(object.message); - if (object.username != null) - message.username = String(object.username); + 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.status != null) message.status = String(object.status); + if (object.message != null) message.message = String(object.message); + if (object.username != null) message.username = String(object.username); return message; }; @@ -186712,29 +194342,28 @@ export const Records = $root.Records = (() => { * @returns {Object.} Plain object */ SharedRecordStatus.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.recordUid = ""; + if (options.bytes === String) object.recordUid = ''; else { object.recordUid = []; - if (options.bytes !== Array) - object.recordUid = $util.newBuffer(object.recordUid); - } - object.status = ""; - object.message = ""; - object.username = ""; - } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; - if (message.status != null && message.hasOwnProperty("status")) - object.status = message.status; - if (message.message != null && message.hasOwnProperty("message")) - object.message = message.message; - if (message.username != null && message.hasOwnProperty("username")) - object.username = message.username; + if (options.bytes !== Array) object.recordUid = $util.newBuffer(object.recordUid); + } + object.status = ''; + object.message = ''; + object.username = ''; + } + if (message.recordUid != null && message.hasOwnProperty('recordUid')) + object.recordUid = + options.bytes === String + ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.recordUid) + : message.recordUid; + if (message.status != null && message.hasOwnProperty('status')) object.status = message.status; + if (message.message != null && message.hasOwnProperty('message')) object.message = message.message; + if (message.username != null && message.hasOwnProperty('username')) object.username = message.username; return object; }; @@ -186759,16 +194388,15 @@ export const Records = $root.Records = (() => { */ SharedRecordStatus.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Records.SharedRecordStatus"; + return typeUrlPrefix + '/Records.SharedRecordStatus'; }; return SharedRecordStatus; })(); - Records.GetRecordPermissionsRequest = (function() { - + Records.GetRecordPermissionsRequest = (function () { /** * Properties of a GetRecordPermissionsRequest. * @memberof Records @@ -186789,8 +194417,7 @@ export const Records = $root.Records = (() => { this.recordUids = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -186831,13 +194458,12 @@ export const Records = $root.Records = (() => { * @returns {$protobuf.Writer} Writer */ GetRecordPermissionsRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.recordUids != null && message.recordUids.length) for (let i = 0; i < message.recordUids.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUids[i]); - if (message.isShareAdmin != null && Object.hasOwnProperty.call(message, "isShareAdmin")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.isShareAdmin); + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.recordUids[i]); + if (message.isShareAdmin != null && Object.hasOwnProperty.call(message, 'isShareAdmin')) + writer.uint32(/* id 2, wireType 0 =*/ 16).bool(message.isShareAdmin); return writer; }; @@ -186866,25 +194492,24 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ GetRecordPermissionsRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.GetRecordPermissionsRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Records.GetRecordPermissionsRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (!(message.recordUids && message.recordUids.length)) - message.recordUids = []; + case 1: { + if (!(message.recordUids && message.recordUids.length)) message.recordUids = []; message.recordUids.push(reader.bytes()); break; } - case 2: { + case 2: { message.isShareAdmin = reader.bool(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -186901,8 +194526,7 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ GetRecordPermissionsRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -186915,18 +194539,20 @@ export const Records = $root.Records = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ GetRecordPermissionsRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.recordUids != null && message.hasOwnProperty("recordUids")) { - if (!Array.isArray(message.recordUids)) - return "recordUids: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.recordUids != null && message.hasOwnProperty('recordUids')) { + if (!Array.isArray(message.recordUids)) return 'recordUids: array expected'; for (let i = 0; i < message.recordUids.length; ++i) - if (!(message.recordUids[i] && typeof message.recordUids[i].length === "number" || $util.isString(message.recordUids[i]))) - return "recordUids: buffer[] expected"; + if ( + !( + (message.recordUids[i] && typeof message.recordUids[i].length === 'number') || + $util.isString(message.recordUids[i]) + ) + ) + return 'recordUids: buffer[] expected'; } - if (message.isShareAdmin != null && message.hasOwnProperty("isShareAdmin")) - if (typeof message.isShareAdmin !== "boolean") - return "isShareAdmin: boolean expected"; + if (message.isShareAdmin != null && message.hasOwnProperty('isShareAdmin')) + if (typeof message.isShareAdmin !== 'boolean') return 'isShareAdmin: boolean expected'; return null; }; @@ -186939,21 +194565,22 @@ export const Records = $root.Records = (() => { * @returns {Records.GetRecordPermissionsRequest} GetRecordPermissionsRequest */ GetRecordPermissionsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Records.GetRecordPermissionsRequest) - return object; + if (object instanceof $root.Records.GetRecordPermissionsRequest) return object; let message = new $root.Records.GetRecordPermissionsRequest(); if (object.recordUids) { if (!Array.isArray(object.recordUids)) - throw TypeError(".Records.GetRecordPermissionsRequest.recordUids: array expected"); + throw TypeError('.Records.GetRecordPermissionsRequest.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 (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.isShareAdmin != null) - message.isShareAdmin = Boolean(object.isShareAdmin); + if (object.isShareAdmin != null) message.isShareAdmin = Boolean(object.isShareAdmin); return message; }; @@ -186967,19 +194594,21 @@ export const Records = $root.Records = (() => { * @returns {Object.} Plain object */ GetRecordPermissionsRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.recordUids = []; - if (options.defaults) - object.isShareAdmin = false; + if (options.arrays || options.defaults) object.recordUids = []; + if (options.defaults) object.isShareAdmin = false; 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]; - } - if (message.isShareAdmin != null && message.hasOwnProperty("isShareAdmin")) + 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]; + } + if (message.isShareAdmin != null && message.hasOwnProperty('isShareAdmin')) object.isShareAdmin = message.isShareAdmin; return object; }; @@ -187005,16 +194634,15 @@ export const Records = $root.Records = (() => { */ GetRecordPermissionsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Records.GetRecordPermissionsRequest"; + return typeUrlPrefix + '/Records.GetRecordPermissionsRequest'; }; return GetRecordPermissionsRequest; })(); - Records.GetRecordPermissionsResponse = (function() { - + Records.GetRecordPermissionsResponse = (function () { /** * Properties of a GetRecordPermissionsResponse. * @memberof Records @@ -187034,8 +194662,7 @@ export const Records = $root.Records = (() => { this.recordPermissions = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -187068,11 +194695,13 @@ export const Records = $root.Records = (() => { * @returns {$protobuf.Writer} Writer */ GetRecordPermissionsResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.recordPermissions != null && message.recordPermissions.length) for (let i = 0; i < message.recordPermissions.length; ++i) - $root.Records.RecordPermission.encode(message.recordPermissions[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.Records.RecordPermission.encode( + message.recordPermissions[i], + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); return writer; }; @@ -187101,21 +194730,21 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ GetRecordPermissionsResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.GetRecordPermissionsResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Records.GetRecordPermissionsResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { if (!(message.recordPermissions && message.recordPermissions.length)) message.recordPermissions = []; message.recordPermissions.push($root.Records.RecordPermission.decode(reader, reader.uint32())); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -187132,8 +194761,7 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ GetRecordPermissionsResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -187146,15 +194774,12 @@ export const Records = $root.Records = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ GetRecordPermissionsResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.recordPermissions != null && message.hasOwnProperty("recordPermissions")) { - if (!Array.isArray(message.recordPermissions)) - return "recordPermissions: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.recordPermissions != null && message.hasOwnProperty('recordPermissions')) { + if (!Array.isArray(message.recordPermissions)) return 'recordPermissions: array expected'; for (let i = 0; i < message.recordPermissions.length; ++i) { let error = $root.Records.RecordPermission.verify(message.recordPermissions[i]); - if (error) - return "recordPermissions." + error; + if (error) return 'recordPermissions.' + error; } } return null; @@ -187169,17 +194794,18 @@ export const Records = $root.Records = (() => { * @returns {Records.GetRecordPermissionsResponse} GetRecordPermissionsResponse */ GetRecordPermissionsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.Records.GetRecordPermissionsResponse) - return object; + if (object instanceof $root.Records.GetRecordPermissionsResponse) return object; let message = new $root.Records.GetRecordPermissionsResponse(); if (object.recordPermissions) { if (!Array.isArray(object.recordPermissions)) - throw TypeError(".Records.GetRecordPermissionsResponse.recordPermissions: array expected"); + throw TypeError('.Records.GetRecordPermissionsResponse.recordPermissions: array expected'); message.recordPermissions = []; for (let i = 0; i < object.recordPermissions.length; ++i) { - if (typeof object.recordPermissions[i] !== "object") - throw TypeError(".Records.GetRecordPermissionsResponse.recordPermissions: object expected"); - message.recordPermissions[i] = $root.Records.RecordPermission.fromObject(object.recordPermissions[i]); + if (typeof object.recordPermissions[i] !== 'object') + throw TypeError('.Records.GetRecordPermissionsResponse.recordPermissions: object expected'); + message.recordPermissions[i] = $root.Records.RecordPermission.fromObject( + object.recordPermissions[i] + ); } } return message; @@ -187195,15 +194821,16 @@ export const Records = $root.Records = (() => { * @returns {Object.} Plain object */ GetRecordPermissionsResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.recordPermissions = []; + if (options.arrays || options.defaults) object.recordPermissions = []; if (message.recordPermissions && message.recordPermissions.length) { object.recordPermissions = []; for (let j = 0; j < message.recordPermissions.length; ++j) - object.recordPermissions[j] = $root.Records.RecordPermission.toObject(message.recordPermissions[j], options); + object.recordPermissions[j] = $root.Records.RecordPermission.toObject( + message.recordPermissions[j], + options + ); } return object; }; @@ -187229,16 +194856,15 @@ export const Records = $root.Records = (() => { */ GetRecordPermissionsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Records.GetRecordPermissionsResponse"; + return typeUrlPrefix + '/Records.GetRecordPermissionsResponse'; }; return GetRecordPermissionsResponse; })(); - Records.RecordPermission = (function() { - + Records.RecordPermission = (function () { /** * Properties of a RecordPermission. * @memberof Records @@ -187261,8 +194887,7 @@ export const Records = $root.Records = (() => { function RecordPermission(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -187327,18 +194952,17 @@ export const Records = $root.Records = (() => { * @returns {$protobuf.Writer} Writer */ RecordPermission.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); - if (message.owner != null && Object.hasOwnProperty.call(message, "owner")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.owner); - if (message.canEdit != null && Object.hasOwnProperty.call(message, "canEdit")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.canEdit); - if (message.canShare != null && Object.hasOwnProperty.call(message, "canShare")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.canShare); - if (message.canTransfer != null && Object.hasOwnProperty.call(message, "canTransfer")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.canTransfer); + if (!writer) writer = $Writer.create(); + if (message.recordUid != null && Object.hasOwnProperty.call(message, 'recordUid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.recordUid); + if (message.owner != null && Object.hasOwnProperty.call(message, 'owner')) + writer.uint32(/* id 2, wireType 0 =*/ 16).bool(message.owner); + if (message.canEdit != null && Object.hasOwnProperty.call(message, 'canEdit')) + writer.uint32(/* id 3, wireType 0 =*/ 24).bool(message.canEdit); + if (message.canShare != null && Object.hasOwnProperty.call(message, 'canShare')) + writer.uint32(/* id 4, wireType 0 =*/ 32).bool(message.canShare); + if (message.canTransfer != null && Object.hasOwnProperty.call(message, 'canTransfer')) + writer.uint32(/* id 5, wireType 0 =*/ 40).bool(message.canTransfer); return writer; }; @@ -187367,35 +194991,35 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RecordPermission.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordPermission(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Records.RecordPermission(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.recordUid = reader.bytes(); break; } - case 2: { + case 2: { message.owner = reader.bool(); break; } - case 3: { + case 3: { message.canEdit = reader.bool(); break; } - case 4: { + case 4: { message.canShare = reader.bool(); break; } - case 5: { + case 5: { message.canTransfer = reader.bool(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -187412,8 +195036,7 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RecordPermission.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -187426,23 +195049,23 @@ export const Records = $root.Records = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ RecordPermission.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) - return "recordUid: buffer expected"; - if (message.owner != null && message.hasOwnProperty("owner")) - if (typeof message.owner !== "boolean") - return "owner: boolean expected"; - if (message.canEdit != null && message.hasOwnProperty("canEdit")) - if (typeof message.canEdit !== "boolean") - return "canEdit: boolean expected"; - if (message.canShare != null && message.hasOwnProperty("canShare")) - if (typeof message.canShare !== "boolean") - return "canShare: boolean expected"; - if (message.canTransfer != null && message.hasOwnProperty("canTransfer")) - if (typeof message.canTransfer !== "boolean") - return "canTransfer: boolean expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.recordUid != null && message.hasOwnProperty('recordUid')) + if ( + !( + (message.recordUid && typeof message.recordUid.length === 'number') || + $util.isString(message.recordUid) + ) + ) + return 'recordUid: buffer expected'; + if (message.owner != null && message.hasOwnProperty('owner')) + if (typeof message.owner !== 'boolean') return 'owner: boolean expected'; + if (message.canEdit != null && message.hasOwnProperty('canEdit')) + if (typeof message.canEdit !== 'boolean') return 'canEdit: boolean expected'; + if (message.canShare != null && message.hasOwnProperty('canShare')) + if (typeof message.canShare !== 'boolean') return 'canShare: boolean expected'; + if (message.canTransfer != null && message.hasOwnProperty('canTransfer')) + if (typeof message.canTransfer !== 'boolean') return 'canTransfer: boolean expected'; return null; }; @@ -187455,22 +195078,20 @@ export const Records = $root.Records = (() => { * @returns {Records.RecordPermission} RecordPermission */ RecordPermission.fromObject = function fromObject(object) { - if (object instanceof $root.Records.RecordPermission) - return object; + if (object instanceof $root.Records.RecordPermission) return object; let message = new $root.Records.RecordPermission(); 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.owner != null) - message.owner = Boolean(object.owner); - if (object.canEdit != null) - message.canEdit = Boolean(object.canEdit); - if (object.canShare != null) - message.canShare = Boolean(object.canShare); - if (object.canTransfer != null) - message.canTransfer = Boolean(object.canTransfer); + 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.owner != null) message.owner = Boolean(object.owner); + if (object.canEdit != null) message.canEdit = Boolean(object.canEdit); + if (object.canShare != null) message.canShare = Boolean(object.canShare); + if (object.canTransfer != null) message.canTransfer = Boolean(object.canTransfer); return message; }; @@ -187484,31 +195105,30 @@ export const Records = $root.Records = (() => { * @returns {Object.} Plain object */ RecordPermission.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.recordUid = ""; + if (options.bytes === String) object.recordUid = ''; else { object.recordUid = []; - if (options.bytes !== Array) - object.recordUid = $util.newBuffer(object.recordUid); + if (options.bytes !== Array) object.recordUid = $util.newBuffer(object.recordUid); } object.owner = false; object.canEdit = false; object.canShare = false; object.canTransfer = false; } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; - if (message.owner != null && message.hasOwnProperty("owner")) - object.owner = message.owner; - if (message.canEdit != null && message.hasOwnProperty("canEdit")) - object.canEdit = message.canEdit; - if (message.canShare != null && message.hasOwnProperty("canShare")) - object.canShare = message.canShare; - if (message.canTransfer != null && message.hasOwnProperty("canTransfer")) + if (message.recordUid != null && message.hasOwnProperty('recordUid')) + object.recordUid = + options.bytes === String + ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.recordUid) + : message.recordUid; + if (message.owner != null && message.hasOwnProperty('owner')) object.owner = message.owner; + if (message.canEdit != null && message.hasOwnProperty('canEdit')) object.canEdit = message.canEdit; + if (message.canShare != null && message.hasOwnProperty('canShare')) object.canShare = message.canShare; + if (message.canTransfer != null && message.hasOwnProperty('canTransfer')) object.canTransfer = message.canTransfer; return object; }; @@ -187534,16 +195154,15 @@ export const Records = $root.Records = (() => { */ RecordPermission.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Records.RecordPermission"; + return typeUrlPrefix + '/Records.RecordPermission'; }; return RecordPermission; })(); - Records.GetShareObjectsRequest = (function() { - + Records.GetShareObjectsRequest = (function () { /** * Properties of a GetShareObjectsRequest. * @memberof Records @@ -187565,8 +195184,7 @@ export const Records = $root.Records = (() => { function GetShareObjectsRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -187575,7 +195193,7 @@ export const Records = $root.Records = (() => { * @memberof Records.GetShareObjectsRequest * @instance */ - GetShareObjectsRequest.prototype.startWith = ""; + GetShareObjectsRequest.prototype.startWith = ''; /** * GetShareObjectsRequest contains. @@ -187583,7 +195201,7 @@ export const Records = $root.Records = (() => { * @memberof Records.GetShareObjectsRequest * @instance */ - GetShareObjectsRequest.prototype.contains = ""; + GetShareObjectsRequest.prototype.contains = ''; /** * GetShareObjectsRequest filtered. @@ -187623,16 +195241,15 @@ export const Records = $root.Records = (() => { * @returns {$protobuf.Writer} Writer */ GetShareObjectsRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.startWith != null && Object.hasOwnProperty.call(message, "startWith")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.startWith); - if (message.contains != null && Object.hasOwnProperty.call(message, "contains")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.contains); - if (message.filtered != null && Object.hasOwnProperty.call(message, "filtered")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.filtered); - if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, "sharedFolderUid")) - writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.sharedFolderUid); + if (!writer) writer = $Writer.create(); + if (message.startWith != null && Object.hasOwnProperty.call(message, 'startWith')) + writer.uint32(/* id 1, wireType 2 =*/ 10).string(message.startWith); + if (message.contains != null && Object.hasOwnProperty.call(message, 'contains')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.contains); + if (message.filtered != null && Object.hasOwnProperty.call(message, 'filtered')) + writer.uint32(/* id 3, wireType 0 =*/ 24).bool(message.filtered); + if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, 'sharedFolderUid')) + writer.uint32(/* id 4, wireType 2 =*/ 34).bytes(message.sharedFolderUid); return writer; }; @@ -187661,31 +195278,31 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ GetShareObjectsRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.GetShareObjectsRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Records.GetShareObjectsRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.startWith = reader.string(); break; } - case 2: { + case 2: { message.contains = reader.string(); break; } - case 3: { + case 3: { message.filtered = reader.bool(); break; } - case 4: { + case 4: { message.sharedFolderUid = reader.bytes(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -187702,8 +195319,7 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ GetShareObjectsRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -187716,20 +195332,21 @@ export const Records = $root.Records = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ GetShareObjectsRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.startWith != null && message.hasOwnProperty("startWith")) - if (!$util.isString(message.startWith)) - return "startWith: string expected"; - if (message.contains != null && message.hasOwnProperty("contains")) - if (!$util.isString(message.contains)) - return "contains: string expected"; - if (message.filtered != null && message.hasOwnProperty("filtered")) - if (typeof message.filtered !== "boolean") - return "filtered: boolean expected"; - if (message.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) - if (!(message.sharedFolderUid && typeof message.sharedFolderUid.length === "number" || $util.isString(message.sharedFolderUid))) - return "sharedFolderUid: buffer expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.startWith != null && message.hasOwnProperty('startWith')) + if (!$util.isString(message.startWith)) return 'startWith: string expected'; + if (message.contains != null && message.hasOwnProperty('contains')) + if (!$util.isString(message.contains)) return 'contains: string expected'; + if (message.filtered != null && message.hasOwnProperty('filtered')) + if (typeof message.filtered !== 'boolean') return 'filtered: boolean expected'; + if (message.sharedFolderUid != null && message.hasOwnProperty('sharedFolderUid')) + if ( + !( + (message.sharedFolderUid && typeof message.sharedFolderUid.length === 'number') || + $util.isString(message.sharedFolderUid) + ) + ) + return 'sharedFolderUid: buffer expected'; return null; }; @@ -187742,20 +195359,19 @@ export const Records = $root.Records = (() => { * @returns {Records.GetShareObjectsRequest} GetShareObjectsRequest */ GetShareObjectsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Records.GetShareObjectsRequest) - return object; + if (object instanceof $root.Records.GetShareObjectsRequest) return object; let message = new $root.Records.GetShareObjectsRequest(); - if (object.startWith != null) - message.startWith = String(object.startWith); - if (object.contains != null) - message.contains = String(object.contains); - if (object.filtered != null) - message.filtered = Boolean(object.filtered); + if (object.startWith != null) message.startWith = String(object.startWith); + if (object.contains != null) message.contains = String(object.contains); + if (object.filtered != null) message.filtered = Boolean(object.filtered); if (object.sharedFolderUid != null) - if (typeof object.sharedFolderUid === "string") - $util.base64.decode(object.sharedFolderUid, message.sharedFolderUid = $util.newBuffer($util.base64.length(object.sharedFolderUid)), 0); - else if (object.sharedFolderUid.length >= 0) - message.sharedFolderUid = object.sharedFolderUid; + if (typeof object.sharedFolderUid === 'string') + $util.base64.decode( + object.sharedFolderUid, + (message.sharedFolderUid = $util.newBuffer($util.base64.length(object.sharedFolderUid))), + 0 + ); + else if (object.sharedFolderUid.length >= 0) message.sharedFolderUid = object.sharedFolderUid; return message; }; @@ -187769,29 +195385,28 @@ export const Records = $root.Records = (() => { * @returns {Object.} Plain object */ GetShareObjectsRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - object.startWith = ""; - object.contains = ""; + object.startWith = ''; + object.contains = ''; object.filtered = false; - if (options.bytes === String) - object.sharedFolderUid = ""; + if (options.bytes === String) object.sharedFolderUid = ''; else { object.sharedFolderUid = []; - if (options.bytes !== Array) - object.sharedFolderUid = $util.newBuffer(object.sharedFolderUid); + if (options.bytes !== Array) object.sharedFolderUid = $util.newBuffer(object.sharedFolderUid); } } - if (message.startWith != null && message.hasOwnProperty("startWith")) - object.startWith = message.startWith; - if (message.contains != null && message.hasOwnProperty("contains")) - object.contains = message.contains; - if (message.filtered != null && message.hasOwnProperty("filtered")) - object.filtered = message.filtered; - if (message.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) - object.sharedFolderUid = options.bytes === String ? $util.base64.encode(message.sharedFolderUid, 0, message.sharedFolderUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.sharedFolderUid) : message.sharedFolderUid; + if (message.startWith != null && message.hasOwnProperty('startWith')) object.startWith = message.startWith; + if (message.contains != null && message.hasOwnProperty('contains')) object.contains = message.contains; + if (message.filtered != null && message.hasOwnProperty('filtered')) object.filtered = message.filtered; + if (message.sharedFolderUid != null && message.hasOwnProperty('sharedFolderUid')) + object.sharedFolderUid = + options.bytes === String + ? $util.base64.encode(message.sharedFolderUid, 0, message.sharedFolderUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.sharedFolderUid) + : message.sharedFolderUid; return object; }; @@ -187816,16 +195431,15 @@ export const Records = $root.Records = (() => { */ GetShareObjectsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Records.GetShareObjectsRequest"; + return typeUrlPrefix + '/Records.GetShareObjectsRequest'; }; return GetShareObjectsRequest; })(); - Records.GetShareObjectsResponse = (function() { - + Records.GetShareObjectsResponse = (function () { /** * Properties of a GetShareObjectsResponse. * @memberof Records @@ -187857,8 +195471,7 @@ export const Records = $root.Records = (() => { this.shareEnterpriseNames = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -187939,29 +195552,49 @@ export const Records = $root.Records = (() => { * @returns {$protobuf.Writer} Writer */ GetShareObjectsResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.shareRelationships != null && message.shareRelationships.length) for (let i = 0; i < message.shareRelationships.length; ++i) - $root.Records.ShareUser.encode(message.shareRelationships[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.Records.ShareUser.encode( + message.shareRelationships[i], + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); if (message.shareFamilyUsers != null && message.shareFamilyUsers.length) for (let i = 0; i < message.shareFamilyUsers.length; ++i) - $root.Records.ShareUser.encode(message.shareFamilyUsers[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + $root.Records.ShareUser.encode( + message.shareFamilyUsers[i], + writer.uint32(/* id 2, wireType 2 =*/ 18).fork() + ).ldelim(); if (message.shareEnterpriseUsers != null && message.shareEnterpriseUsers.length) for (let i = 0; i < message.shareEnterpriseUsers.length; ++i) - $root.Records.ShareUser.encode(message.shareEnterpriseUsers[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + $root.Records.ShareUser.encode( + message.shareEnterpriseUsers[i], + writer.uint32(/* id 3, wireType 2 =*/ 26).fork() + ).ldelim(); if (message.shareTeams != null && message.shareTeams.length) for (let i = 0; i < message.shareTeams.length; ++i) - $root.Records.ShareTeam.encode(message.shareTeams[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + $root.Records.ShareTeam.encode( + message.shareTeams[i], + writer.uint32(/* id 4, wireType 2 =*/ 34).fork() + ).ldelim(); if (message.shareMCTeams != null && message.shareMCTeams.length) for (let i = 0; i < message.shareMCTeams.length; ++i) - $root.Records.ShareTeam.encode(message.shareMCTeams[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + $root.Records.ShareTeam.encode( + message.shareMCTeams[i], + writer.uint32(/* id 5, wireType 2 =*/ 42).fork() + ).ldelim(); if (message.shareMCEnterpriseUsers != null && message.shareMCEnterpriseUsers.length) for (let i = 0; i < message.shareMCEnterpriseUsers.length; ++i) - $root.Records.ShareUser.encode(message.shareMCEnterpriseUsers[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + $root.Records.ShareUser.encode( + message.shareMCEnterpriseUsers[i], + writer.uint32(/* id 6, wireType 2 =*/ 50).fork() + ).ldelim(); if (message.shareEnterpriseNames != null && message.shareEnterpriseNames.length) for (let i = 0; i < message.shareEnterpriseNames.length; ++i) - $root.Records.ShareEnterprise.encode(message.shareEnterpriseNames[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + $root.Records.ShareEnterprise.encode( + message.shareEnterpriseNames[i], + writer.uint32(/* id 7, wireType 2 =*/ 58).fork() + ).ldelim(); return writer; }; @@ -187990,57 +195623,57 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ GetShareObjectsResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.GetShareObjectsResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Records.GetShareObjectsResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { if (!(message.shareRelationships && message.shareRelationships.length)) message.shareRelationships = []; message.shareRelationships.push($root.Records.ShareUser.decode(reader, reader.uint32())); break; } - case 2: { + case 2: { if (!(message.shareFamilyUsers && message.shareFamilyUsers.length)) message.shareFamilyUsers = []; message.shareFamilyUsers.push($root.Records.ShareUser.decode(reader, reader.uint32())); break; } - case 3: { + case 3: { if (!(message.shareEnterpriseUsers && message.shareEnterpriseUsers.length)) message.shareEnterpriseUsers = []; message.shareEnterpriseUsers.push($root.Records.ShareUser.decode(reader, reader.uint32())); break; } - case 4: { - if (!(message.shareTeams && message.shareTeams.length)) - message.shareTeams = []; + case 4: { + if (!(message.shareTeams && message.shareTeams.length)) message.shareTeams = []; message.shareTeams.push($root.Records.ShareTeam.decode(reader, reader.uint32())); break; } - case 5: { - if (!(message.shareMCTeams && message.shareMCTeams.length)) - message.shareMCTeams = []; + case 5: { + if (!(message.shareMCTeams && message.shareMCTeams.length)) message.shareMCTeams = []; message.shareMCTeams.push($root.Records.ShareTeam.decode(reader, reader.uint32())); break; } - case 6: { + case 6: { if (!(message.shareMCEnterpriseUsers && message.shareMCEnterpriseUsers.length)) message.shareMCEnterpriseUsers = []; message.shareMCEnterpriseUsers.push($root.Records.ShareUser.decode(reader, reader.uint32())); break; } - case 7: { + case 7: { if (!(message.shareEnterpriseNames && message.shareEnterpriseNames.length)) message.shareEnterpriseNames = []; - message.shareEnterpriseNames.push($root.Records.ShareEnterprise.decode(reader, reader.uint32())); + message.shareEnterpriseNames.push( + $root.Records.ShareEnterprise.decode(reader, reader.uint32()) + ); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -188057,8 +195690,7 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ GetShareObjectsResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -188071,69 +195703,54 @@ export const Records = $root.Records = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ GetShareObjectsResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.shareRelationships != null && message.hasOwnProperty("shareRelationships")) { - if (!Array.isArray(message.shareRelationships)) - return "shareRelationships: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.shareRelationships != null && message.hasOwnProperty('shareRelationships')) { + if (!Array.isArray(message.shareRelationships)) return 'shareRelationships: array expected'; for (let i = 0; i < message.shareRelationships.length; ++i) { let error = $root.Records.ShareUser.verify(message.shareRelationships[i]); - if (error) - return "shareRelationships." + error; + if (error) return 'shareRelationships.' + error; } } - if (message.shareFamilyUsers != null && message.hasOwnProperty("shareFamilyUsers")) { - if (!Array.isArray(message.shareFamilyUsers)) - return "shareFamilyUsers: array expected"; + if (message.shareFamilyUsers != null && message.hasOwnProperty('shareFamilyUsers')) { + if (!Array.isArray(message.shareFamilyUsers)) return 'shareFamilyUsers: array expected'; for (let i = 0; i < message.shareFamilyUsers.length; ++i) { let error = $root.Records.ShareUser.verify(message.shareFamilyUsers[i]); - if (error) - return "shareFamilyUsers." + error; + if (error) return 'shareFamilyUsers.' + error; } } - if (message.shareEnterpriseUsers != null && message.hasOwnProperty("shareEnterpriseUsers")) { - if (!Array.isArray(message.shareEnterpriseUsers)) - return "shareEnterpriseUsers: array expected"; + if (message.shareEnterpriseUsers != null && message.hasOwnProperty('shareEnterpriseUsers')) { + if (!Array.isArray(message.shareEnterpriseUsers)) return 'shareEnterpriseUsers: array expected'; for (let i = 0; i < message.shareEnterpriseUsers.length; ++i) { let error = $root.Records.ShareUser.verify(message.shareEnterpriseUsers[i]); - if (error) - return "shareEnterpriseUsers." + error; + if (error) return 'shareEnterpriseUsers.' + error; } } - if (message.shareTeams != null && message.hasOwnProperty("shareTeams")) { - if (!Array.isArray(message.shareTeams)) - return "shareTeams: array expected"; + if (message.shareTeams != null && message.hasOwnProperty('shareTeams')) { + if (!Array.isArray(message.shareTeams)) return 'shareTeams: array expected'; for (let i = 0; i < message.shareTeams.length; ++i) { let error = $root.Records.ShareTeam.verify(message.shareTeams[i]); - if (error) - return "shareTeams." + error; + if (error) return 'shareTeams.' + error; } } - if (message.shareMCTeams != null && message.hasOwnProperty("shareMCTeams")) { - if (!Array.isArray(message.shareMCTeams)) - return "shareMCTeams: array expected"; + if (message.shareMCTeams != null && message.hasOwnProperty('shareMCTeams')) { + if (!Array.isArray(message.shareMCTeams)) return 'shareMCTeams: array expected'; for (let i = 0; i < message.shareMCTeams.length; ++i) { let error = $root.Records.ShareTeam.verify(message.shareMCTeams[i]); - if (error) - return "shareMCTeams." + error; + if (error) return 'shareMCTeams.' + error; } } - if (message.shareMCEnterpriseUsers != null && message.hasOwnProperty("shareMCEnterpriseUsers")) { - if (!Array.isArray(message.shareMCEnterpriseUsers)) - return "shareMCEnterpriseUsers: array expected"; + if (message.shareMCEnterpriseUsers != null && message.hasOwnProperty('shareMCEnterpriseUsers')) { + if (!Array.isArray(message.shareMCEnterpriseUsers)) return 'shareMCEnterpriseUsers: array expected'; for (let i = 0; i < message.shareMCEnterpriseUsers.length; ++i) { let error = $root.Records.ShareUser.verify(message.shareMCEnterpriseUsers[i]); - if (error) - return "shareMCEnterpriseUsers." + error; + if (error) return 'shareMCEnterpriseUsers.' + error; } } - if (message.shareEnterpriseNames != null && message.hasOwnProperty("shareEnterpriseNames")) { - if (!Array.isArray(message.shareEnterpriseNames)) - return "shareEnterpriseNames: array expected"; + if (message.shareEnterpriseNames != null && message.hasOwnProperty('shareEnterpriseNames')) { + if (!Array.isArray(message.shareEnterpriseNames)) return 'shareEnterpriseNames: array expected'; for (let i = 0; i < message.shareEnterpriseNames.length; ++i) { let error = $root.Records.ShareEnterprise.verify(message.shareEnterpriseNames[i]); - if (error) - return "shareEnterpriseNames." + error; + if (error) return 'shareEnterpriseNames.' + error; } } return null; @@ -188148,77 +195765,82 @@ export const Records = $root.Records = (() => { * @returns {Records.GetShareObjectsResponse} GetShareObjectsResponse */ GetShareObjectsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.Records.GetShareObjectsResponse) - return object; + if (object instanceof $root.Records.GetShareObjectsResponse) return object; let message = new $root.Records.GetShareObjectsResponse(); if (object.shareRelationships) { if (!Array.isArray(object.shareRelationships)) - throw TypeError(".Records.GetShareObjectsResponse.shareRelationships: array expected"); + throw TypeError('.Records.GetShareObjectsResponse.shareRelationships: array expected'); message.shareRelationships = []; for (let i = 0; i < object.shareRelationships.length; ++i) { - if (typeof object.shareRelationships[i] !== "object") - throw TypeError(".Records.GetShareObjectsResponse.shareRelationships: object expected"); + if (typeof object.shareRelationships[i] !== 'object') + throw TypeError('.Records.GetShareObjectsResponse.shareRelationships: object expected'); message.shareRelationships[i] = $root.Records.ShareUser.fromObject(object.shareRelationships[i]); } } if (object.shareFamilyUsers) { if (!Array.isArray(object.shareFamilyUsers)) - throw TypeError(".Records.GetShareObjectsResponse.shareFamilyUsers: array expected"); + throw TypeError('.Records.GetShareObjectsResponse.shareFamilyUsers: array expected'); message.shareFamilyUsers = []; for (let i = 0; i < object.shareFamilyUsers.length; ++i) { - if (typeof object.shareFamilyUsers[i] !== "object") - throw TypeError(".Records.GetShareObjectsResponse.shareFamilyUsers: object expected"); + if (typeof object.shareFamilyUsers[i] !== 'object') + throw TypeError('.Records.GetShareObjectsResponse.shareFamilyUsers: object expected'); message.shareFamilyUsers[i] = $root.Records.ShareUser.fromObject(object.shareFamilyUsers[i]); } } if (object.shareEnterpriseUsers) { if (!Array.isArray(object.shareEnterpriseUsers)) - throw TypeError(".Records.GetShareObjectsResponse.shareEnterpriseUsers: array expected"); + throw TypeError('.Records.GetShareObjectsResponse.shareEnterpriseUsers: array expected'); message.shareEnterpriseUsers = []; for (let i = 0; i < object.shareEnterpriseUsers.length; ++i) { - if (typeof object.shareEnterpriseUsers[i] !== "object") - throw TypeError(".Records.GetShareObjectsResponse.shareEnterpriseUsers: object expected"); - message.shareEnterpriseUsers[i] = $root.Records.ShareUser.fromObject(object.shareEnterpriseUsers[i]); + if (typeof object.shareEnterpriseUsers[i] !== 'object') + throw TypeError('.Records.GetShareObjectsResponse.shareEnterpriseUsers: object expected'); + message.shareEnterpriseUsers[i] = $root.Records.ShareUser.fromObject( + object.shareEnterpriseUsers[i] + ); } } if (object.shareTeams) { if (!Array.isArray(object.shareTeams)) - throw TypeError(".Records.GetShareObjectsResponse.shareTeams: array expected"); + throw TypeError('.Records.GetShareObjectsResponse.shareTeams: array expected'); message.shareTeams = []; for (let i = 0; i < object.shareTeams.length; ++i) { - if (typeof object.shareTeams[i] !== "object") - throw TypeError(".Records.GetShareObjectsResponse.shareTeams: object expected"); + if (typeof object.shareTeams[i] !== 'object') + throw TypeError('.Records.GetShareObjectsResponse.shareTeams: object expected'); message.shareTeams[i] = $root.Records.ShareTeam.fromObject(object.shareTeams[i]); } } if (object.shareMCTeams) { if (!Array.isArray(object.shareMCTeams)) - throw TypeError(".Records.GetShareObjectsResponse.shareMCTeams: array expected"); + throw TypeError('.Records.GetShareObjectsResponse.shareMCTeams: array expected'); message.shareMCTeams = []; for (let i = 0; i < object.shareMCTeams.length; ++i) { - if (typeof object.shareMCTeams[i] !== "object") - throw TypeError(".Records.GetShareObjectsResponse.shareMCTeams: object expected"); + if (typeof object.shareMCTeams[i] !== 'object') + throw TypeError('.Records.GetShareObjectsResponse.shareMCTeams: object expected'); message.shareMCTeams[i] = $root.Records.ShareTeam.fromObject(object.shareMCTeams[i]); } } if (object.shareMCEnterpriseUsers) { if (!Array.isArray(object.shareMCEnterpriseUsers)) - throw TypeError(".Records.GetShareObjectsResponse.shareMCEnterpriseUsers: array expected"); + throw TypeError('.Records.GetShareObjectsResponse.shareMCEnterpriseUsers: array expected'); message.shareMCEnterpriseUsers = []; for (let i = 0; i < object.shareMCEnterpriseUsers.length; ++i) { - if (typeof object.shareMCEnterpriseUsers[i] !== "object") - throw TypeError(".Records.GetShareObjectsResponse.shareMCEnterpriseUsers: object expected"); - message.shareMCEnterpriseUsers[i] = $root.Records.ShareUser.fromObject(object.shareMCEnterpriseUsers[i]); + if (typeof object.shareMCEnterpriseUsers[i] !== 'object') + throw TypeError('.Records.GetShareObjectsResponse.shareMCEnterpriseUsers: object expected'); + message.shareMCEnterpriseUsers[i] = $root.Records.ShareUser.fromObject( + object.shareMCEnterpriseUsers[i] + ); } } if (object.shareEnterpriseNames) { if (!Array.isArray(object.shareEnterpriseNames)) - throw TypeError(".Records.GetShareObjectsResponse.shareEnterpriseNames: array expected"); + throw TypeError('.Records.GetShareObjectsResponse.shareEnterpriseNames: array expected'); message.shareEnterpriseNames = []; for (let i = 0; i < object.shareEnterpriseNames.length; ++i) { - if (typeof object.shareEnterpriseNames[i] !== "object") - throw TypeError(".Records.GetShareObjectsResponse.shareEnterpriseNames: object expected"); - message.shareEnterpriseNames[i] = $root.Records.ShareEnterprise.fromObject(object.shareEnterpriseNames[i]); + if (typeof object.shareEnterpriseNames[i] !== 'object') + throw TypeError('.Records.GetShareObjectsResponse.shareEnterpriseNames: object expected'); + message.shareEnterpriseNames[i] = $root.Records.ShareEnterprise.fromObject( + object.shareEnterpriseNames[i] + ); } } return message; @@ -188234,8 +195856,7 @@ export const Records = $root.Records = (() => { * @returns {Object.} Plain object */ GetShareObjectsResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.arrays || options.defaults) { object.shareRelationships = []; @@ -188249,7 +195870,10 @@ export const Records = $root.Records = (() => { if (message.shareRelationships && message.shareRelationships.length) { object.shareRelationships = []; for (let j = 0; j < message.shareRelationships.length; ++j) - object.shareRelationships[j] = $root.Records.ShareUser.toObject(message.shareRelationships[j], options); + object.shareRelationships[j] = $root.Records.ShareUser.toObject( + message.shareRelationships[j], + options + ); } if (message.shareFamilyUsers && message.shareFamilyUsers.length) { object.shareFamilyUsers = []; @@ -188259,7 +195883,10 @@ export const Records = $root.Records = (() => { if (message.shareEnterpriseUsers && message.shareEnterpriseUsers.length) { object.shareEnterpriseUsers = []; for (let j = 0; j < message.shareEnterpriseUsers.length; ++j) - object.shareEnterpriseUsers[j] = $root.Records.ShareUser.toObject(message.shareEnterpriseUsers[j], options); + object.shareEnterpriseUsers[j] = $root.Records.ShareUser.toObject( + message.shareEnterpriseUsers[j], + options + ); } if (message.shareTeams && message.shareTeams.length) { object.shareTeams = []; @@ -188274,12 +195901,18 @@ export const Records = $root.Records = (() => { if (message.shareMCEnterpriseUsers && message.shareMCEnterpriseUsers.length) { object.shareMCEnterpriseUsers = []; for (let j = 0; j < message.shareMCEnterpriseUsers.length; ++j) - object.shareMCEnterpriseUsers[j] = $root.Records.ShareUser.toObject(message.shareMCEnterpriseUsers[j], options); + object.shareMCEnterpriseUsers[j] = $root.Records.ShareUser.toObject( + message.shareMCEnterpriseUsers[j], + options + ); } if (message.shareEnterpriseNames && message.shareEnterpriseNames.length) { object.shareEnterpriseNames = []; for (let j = 0; j < message.shareEnterpriseNames.length; ++j) - object.shareEnterpriseNames[j] = $root.Records.ShareEnterprise.toObject(message.shareEnterpriseNames[j], options); + object.shareEnterpriseNames[j] = $root.Records.ShareEnterprise.toObject( + message.shareEnterpriseNames[j], + options + ); } return object; }; @@ -188305,16 +195938,15 @@ export const Records = $root.Records = (() => { */ GetShareObjectsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Records.GetShareObjectsResponse"; + return typeUrlPrefix + '/Records.GetShareObjectsResponse'; }; return GetShareObjectsResponse; })(); - Records.ShareUser = (function() { - + Records.ShareUser = (function () { /** * Properties of a ShareUser. * @memberof Records @@ -188338,8 +195970,7 @@ export const Records = $root.Records = (() => { function ShareUser(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -188348,7 +195979,7 @@ export const Records = $root.Records = (() => { * @memberof Records.ShareUser * @instance */ - ShareUser.prototype.username = ""; + ShareUser.prototype.username = ''; /** * ShareUser fullname. @@ -188356,7 +195987,7 @@ export const Records = $root.Records = (() => { * @memberof Records.ShareUser * @instance */ - ShareUser.prototype.fullname = ""; + ShareUser.prototype.fullname = ''; /** * ShareUser enterpriseId. @@ -188412,20 +196043,22 @@ export const Records = $root.Records = (() => { * @returns {$protobuf.Writer} Writer */ ShareUser.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.username != null && Object.hasOwnProperty.call(message, "username")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.username); - if (message.fullname != null && Object.hasOwnProperty.call(message, "fullname")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.fullname); - if (message.enterpriseId != null && Object.hasOwnProperty.call(message, "enterpriseId")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.enterpriseId); - if (message.status != null && Object.hasOwnProperty.call(message, "status")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.status); - if (message.isShareAdmin != null && Object.hasOwnProperty.call(message, "isShareAdmin")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.isShareAdmin); - if (message.isAdminOfSharedFolderOwner != null && Object.hasOwnProperty.call(message, "isAdminOfSharedFolderOwner")) - writer.uint32(/* id 6, wireType 0 =*/48).bool(message.isAdminOfSharedFolderOwner); + if (!writer) writer = $Writer.create(); + if (message.username != null && Object.hasOwnProperty.call(message, 'username')) + writer.uint32(/* id 1, wireType 2 =*/ 10).string(message.username); + if (message.fullname != null && Object.hasOwnProperty.call(message, 'fullname')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.fullname); + if (message.enterpriseId != null && Object.hasOwnProperty.call(message, 'enterpriseId')) + writer.uint32(/* id 3, wireType 0 =*/ 24).int32(message.enterpriseId); + if (message.status != null && Object.hasOwnProperty.call(message, 'status')) + writer.uint32(/* id 4, wireType 0 =*/ 32).int32(message.status); + if (message.isShareAdmin != null && Object.hasOwnProperty.call(message, 'isShareAdmin')) + writer.uint32(/* id 5, wireType 0 =*/ 40).bool(message.isShareAdmin); + if ( + message.isAdminOfSharedFolderOwner != null && + Object.hasOwnProperty.call(message, 'isAdminOfSharedFolderOwner') + ) + writer.uint32(/* id 6, wireType 0 =*/ 48).bool(message.isAdminOfSharedFolderOwner); return writer; }; @@ -188454,39 +196087,39 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ShareUser.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.ShareUser(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Records.ShareUser(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.username = reader.string(); break; } - case 2: { + case 2: { message.fullname = reader.string(); break; } - case 3: { + case 3: { message.enterpriseId = reader.int32(); break; } - case 4: { + case 4: { message.status = reader.int32(); break; } - case 5: { + case 5: { message.isShareAdmin = reader.bool(); break; } - case 6: { + case 6: { message.isAdminOfSharedFolderOwner = reader.bool(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -188503,8 +196136,7 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ShareUser.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -188517,32 +196149,27 @@ export const Records = $root.Records = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ ShareUser.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.username != null && message.hasOwnProperty("username")) - if (!$util.isString(message.username)) - return "username: string expected"; - if (message.fullname != null && message.hasOwnProperty("fullname")) - if (!$util.isString(message.fullname)) - return "fullname: string expected"; - if (message.enterpriseId != null && message.hasOwnProperty("enterpriseId")) - if (!$util.isInteger(message.enterpriseId)) - return "enterpriseId: integer expected"; - if (message.status != null && message.hasOwnProperty("status")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.username != null && message.hasOwnProperty('username')) + if (!$util.isString(message.username)) return 'username: string expected'; + if (message.fullname != null && message.hasOwnProperty('fullname')) + if (!$util.isString(message.fullname)) return 'fullname: string expected'; + if (message.enterpriseId != null && message.hasOwnProperty('enterpriseId')) + if (!$util.isInteger(message.enterpriseId)) return 'enterpriseId: integer expected'; + if (message.status != null && message.hasOwnProperty('status')) switch (message.status) { - default: - return "status: enum value expected"; - case 0: - case 1: - case 2: - break; + default: + return 'status: enum value expected'; + case 0: + case 1: + case 2: + break; } - if (message.isShareAdmin != null && message.hasOwnProperty("isShareAdmin")) - if (typeof message.isShareAdmin !== "boolean") - return "isShareAdmin: boolean expected"; - if (message.isAdminOfSharedFolderOwner != null && message.hasOwnProperty("isAdminOfSharedFolderOwner")) - if (typeof message.isAdminOfSharedFolderOwner !== "boolean") - return "isAdminOfSharedFolderOwner: boolean expected"; + if (message.isShareAdmin != null && message.hasOwnProperty('isShareAdmin')) + if (typeof message.isShareAdmin !== 'boolean') return 'isShareAdmin: boolean expected'; + if (message.isAdminOfSharedFolderOwner != null && message.hasOwnProperty('isAdminOfSharedFolderOwner')) + if (typeof message.isAdminOfSharedFolderOwner !== 'boolean') + return 'isAdminOfSharedFolderOwner: boolean expected'; return null; }; @@ -188555,37 +196182,32 @@ export const Records = $root.Records = (() => { * @returns {Records.ShareUser} ShareUser */ ShareUser.fromObject = function fromObject(object) { - if (object instanceof $root.Records.ShareUser) - return object; + if (object instanceof $root.Records.ShareUser) return object; let message = new $root.Records.ShareUser(); - if (object.username != null) - message.username = String(object.username); - if (object.fullname != null) - message.fullname = String(object.fullname); - if (object.enterpriseId != null) - message.enterpriseId = object.enterpriseId | 0; + if (object.username != null) message.username = String(object.username); + if (object.fullname != null) message.fullname = String(object.fullname); + if (object.enterpriseId != null) message.enterpriseId = object.enterpriseId | 0; switch (object.status) { - default: - if (typeof object.status === "number") { - message.status = object.status; - break; - } - break; - case "ACTIVE": - case 0: - message.status = 0; - break; - case "BLOCK": - case 1: - message.status = 1; - break; - case "INVITED": - case 2: - message.status = 2; - break; - } - if (object.isShareAdmin != null) - message.isShareAdmin = Boolean(object.isShareAdmin); + default: + if (typeof object.status === 'number') { + message.status = object.status; + break; + } + break; + case 'ACTIVE': + case 0: + message.status = 0; + break; + case 'BLOCK': + case 1: + message.status = 1; + break; + case 'INVITED': + case 2: + message.status = 2; + break; + } + if (object.isShareAdmin != null) message.isShareAdmin = Boolean(object.isShareAdmin); if (object.isAdminOfSharedFolderOwner != null) message.isAdminOfSharedFolderOwner = Boolean(object.isAdminOfSharedFolderOwner); return message; @@ -188601,28 +196223,30 @@ export const Records = $root.Records = (() => { * @returns {Object.} Plain object */ ShareUser.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - object.username = ""; - object.fullname = ""; + object.username = ''; + object.fullname = ''; object.enterpriseId = 0; - object.status = options.enums === String ? "ACTIVE" : 0; + object.status = options.enums === String ? 'ACTIVE' : 0; object.isShareAdmin = false; object.isAdminOfSharedFolderOwner = false; } - if (message.username != null && message.hasOwnProperty("username")) - object.username = message.username; - if (message.fullname != null && message.hasOwnProperty("fullname")) - object.fullname = message.fullname; - if (message.enterpriseId != null && message.hasOwnProperty("enterpriseId")) + if (message.username != null && message.hasOwnProperty('username')) object.username = message.username; + if (message.fullname != null && message.hasOwnProperty('fullname')) object.fullname = message.fullname; + if (message.enterpriseId != null && message.hasOwnProperty('enterpriseId')) object.enterpriseId = message.enterpriseId; - if (message.status != null && message.hasOwnProperty("status")) - object.status = options.enums === String ? $root.Records.ShareStatus[message.status] === undefined ? message.status : $root.Records.ShareStatus[message.status] : message.status; - if (message.isShareAdmin != null && message.hasOwnProperty("isShareAdmin")) + if (message.status != null && message.hasOwnProperty('status')) + object.status = + options.enums === String + ? $root.Records.ShareStatus[message.status] === undefined + ? message.status + : $root.Records.ShareStatus[message.status] + : message.status; + if (message.isShareAdmin != null && message.hasOwnProperty('isShareAdmin')) object.isShareAdmin = message.isShareAdmin; - if (message.isAdminOfSharedFolderOwner != null && message.hasOwnProperty("isAdminOfSharedFolderOwner")) + if (message.isAdminOfSharedFolderOwner != null && message.hasOwnProperty('isAdminOfSharedFolderOwner')) object.isAdminOfSharedFolderOwner = message.isAdminOfSharedFolderOwner; return object; }; @@ -188648,16 +196272,15 @@ export const Records = $root.Records = (() => { */ ShareUser.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Records.ShareUser"; + return typeUrlPrefix + '/Records.ShareUser'; }; return ShareUser; })(); - Records.ShareTeam = (function() { - + Records.ShareTeam = (function () { /** * Properties of a ShareTeam. * @memberof Records @@ -188678,8 +196301,7 @@ export const Records = $root.Records = (() => { function ShareTeam(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -188688,7 +196310,7 @@ export const Records = $root.Records = (() => { * @memberof Records.ShareTeam * @instance */ - ShareTeam.prototype.teamname = ""; + ShareTeam.prototype.teamname = ''; /** * ShareTeam enterpriseId. @@ -188728,14 +196350,13 @@ export const Records = $root.Records = (() => { * @returns {$protobuf.Writer} Writer */ ShareTeam.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.teamname != null && Object.hasOwnProperty.call(message, "teamname")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.teamname); - if (message.enterpriseId != null && Object.hasOwnProperty.call(message, "enterpriseId")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.enterpriseId); - if (message.teamUid != null && Object.hasOwnProperty.call(message, "teamUid")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.teamUid); + if (!writer) writer = $Writer.create(); + if (message.teamname != null && Object.hasOwnProperty.call(message, 'teamname')) + writer.uint32(/* id 1, wireType 2 =*/ 10).string(message.teamname); + if (message.enterpriseId != null && Object.hasOwnProperty.call(message, 'enterpriseId')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int32(message.enterpriseId); + if (message.teamUid != null && Object.hasOwnProperty.call(message, 'teamUid')) + writer.uint32(/* id 3, wireType 2 =*/ 26).bytes(message.teamUid); return writer; }; @@ -188764,27 +196385,27 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ShareTeam.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.ShareTeam(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Records.ShareTeam(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.teamname = reader.string(); break; } - case 2: { + case 2: { message.enterpriseId = reader.int32(); break; } - case 3: { + case 3: { message.teamUid = reader.bytes(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -188801,8 +196422,7 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ShareTeam.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -188815,17 +196435,19 @@ export const Records = $root.Records = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ ShareTeam.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.teamname != null && message.hasOwnProperty("teamname")) - if (!$util.isString(message.teamname)) - return "teamname: string expected"; - if (message.enterpriseId != null && message.hasOwnProperty("enterpriseId")) - if (!$util.isInteger(message.enterpriseId)) - return "enterpriseId: integer expected"; - if (message.teamUid != null && message.hasOwnProperty("teamUid")) - if (!(message.teamUid && typeof message.teamUid.length === "number" || $util.isString(message.teamUid))) - return "teamUid: buffer expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.teamname != null && message.hasOwnProperty('teamname')) + if (!$util.isString(message.teamname)) return 'teamname: string expected'; + if (message.enterpriseId != null && message.hasOwnProperty('enterpriseId')) + if (!$util.isInteger(message.enterpriseId)) return 'enterpriseId: integer expected'; + if (message.teamUid != null && message.hasOwnProperty('teamUid')) + if ( + !( + (message.teamUid && typeof message.teamUid.length === 'number') || + $util.isString(message.teamUid) + ) + ) + return 'teamUid: buffer expected'; return null; }; @@ -188838,18 +196460,18 @@ export const Records = $root.Records = (() => { * @returns {Records.ShareTeam} ShareTeam */ ShareTeam.fromObject = function fromObject(object) { - if (object instanceof $root.Records.ShareTeam) - return object; + if (object instanceof $root.Records.ShareTeam) return object; let message = new $root.Records.ShareTeam(); - if (object.teamname != null) - message.teamname = String(object.teamname); - if (object.enterpriseId != null) - message.enterpriseId = object.enterpriseId | 0; + if (object.teamname != null) message.teamname = String(object.teamname); + if (object.enterpriseId != null) message.enterpriseId = object.enterpriseId | 0; if (object.teamUid != null) - if (typeof object.teamUid === "string") - $util.base64.decode(object.teamUid, message.teamUid = $util.newBuffer($util.base64.length(object.teamUid)), 0); - else if (object.teamUid.length >= 0) - message.teamUid = object.teamUid; + if (typeof object.teamUid === 'string') + $util.base64.decode( + object.teamUid, + (message.teamUid = $util.newBuffer($util.base64.length(object.teamUid))), + 0 + ); + else if (object.teamUid.length >= 0) message.teamUid = object.teamUid; return message; }; @@ -188863,26 +196485,27 @@ export const Records = $root.Records = (() => { * @returns {Object.} Plain object */ ShareTeam.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - object.teamname = ""; + object.teamname = ''; object.enterpriseId = 0; - if (options.bytes === String) - object.teamUid = ""; + if (options.bytes === String) object.teamUid = ''; else { object.teamUid = []; - if (options.bytes !== Array) - object.teamUid = $util.newBuffer(object.teamUid); + if (options.bytes !== Array) object.teamUid = $util.newBuffer(object.teamUid); } } - if (message.teamname != null && message.hasOwnProperty("teamname")) - object.teamname = message.teamname; - if (message.enterpriseId != null && message.hasOwnProperty("enterpriseId")) + if (message.teamname != null && message.hasOwnProperty('teamname')) object.teamname = message.teamname; + if (message.enterpriseId != null && message.hasOwnProperty('enterpriseId')) object.enterpriseId = message.enterpriseId; - if (message.teamUid != null && message.hasOwnProperty("teamUid")) - object.teamUid = options.bytes === String ? $util.base64.encode(message.teamUid, 0, message.teamUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.teamUid) : message.teamUid; + if (message.teamUid != null && message.hasOwnProperty('teamUid')) + object.teamUid = + options.bytes === String + ? $util.base64.encode(message.teamUid, 0, message.teamUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.teamUid) + : message.teamUid; return object; }; @@ -188907,16 +196530,15 @@ export const Records = $root.Records = (() => { */ ShareTeam.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Records.ShareTeam"; + return typeUrlPrefix + '/Records.ShareTeam'; }; return ShareTeam; })(); - Records.ShareEnterprise = (function() { - + Records.ShareEnterprise = (function () { /** * Properties of a ShareEnterprise. * @memberof Records @@ -188936,8 +196558,7 @@ export const Records = $root.Records = (() => { function ShareEnterprise(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -188946,7 +196567,7 @@ export const Records = $root.Records = (() => { * @memberof Records.ShareEnterprise * @instance */ - ShareEnterprise.prototype.enterprisename = ""; + ShareEnterprise.prototype.enterprisename = ''; /** * ShareEnterprise enterpriseId. @@ -188978,12 +196599,11 @@ export const Records = $root.Records = (() => { * @returns {$protobuf.Writer} Writer */ ShareEnterprise.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.enterprisename != null && Object.hasOwnProperty.call(message, "enterprisename")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.enterprisename); - if (message.enterpriseId != null && Object.hasOwnProperty.call(message, "enterpriseId")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.enterpriseId); + if (!writer) writer = $Writer.create(); + if (message.enterprisename != null && Object.hasOwnProperty.call(message, 'enterprisename')) + writer.uint32(/* id 1, wireType 2 =*/ 10).string(message.enterprisename); + if (message.enterpriseId != null && Object.hasOwnProperty.call(message, 'enterpriseId')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int32(message.enterpriseId); return writer; }; @@ -189012,23 +196632,23 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ShareEnterprise.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.ShareEnterprise(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Records.ShareEnterprise(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.enterprisename = reader.string(); break; } - case 2: { + case 2: { message.enterpriseId = reader.int32(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -189045,8 +196665,7 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ShareEnterprise.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -189059,14 +196678,11 @@ export const Records = $root.Records = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ ShareEnterprise.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.enterprisename != null && message.hasOwnProperty("enterprisename")) - if (!$util.isString(message.enterprisename)) - return "enterprisename: string expected"; - if (message.enterpriseId != null && message.hasOwnProperty("enterpriseId")) - if (!$util.isInteger(message.enterpriseId)) - return "enterpriseId: integer expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.enterprisename != null && message.hasOwnProperty('enterprisename')) + if (!$util.isString(message.enterprisename)) return 'enterprisename: string expected'; + if (message.enterpriseId != null && message.hasOwnProperty('enterpriseId')) + if (!$util.isInteger(message.enterpriseId)) return 'enterpriseId: integer expected'; return null; }; @@ -189079,13 +196695,10 @@ export const Records = $root.Records = (() => { * @returns {Records.ShareEnterprise} ShareEnterprise */ ShareEnterprise.fromObject = function fromObject(object) { - if (object instanceof $root.Records.ShareEnterprise) - return object; + if (object instanceof $root.Records.ShareEnterprise) return object; let message = new $root.Records.ShareEnterprise(); - if (object.enterprisename != null) - message.enterprisename = String(object.enterprisename); - if (object.enterpriseId != null) - message.enterpriseId = object.enterpriseId | 0; + if (object.enterprisename != null) message.enterprisename = String(object.enterprisename); + if (object.enterpriseId != null) message.enterpriseId = object.enterpriseId | 0; return message; }; @@ -189099,16 +196712,15 @@ export const Records = $root.Records = (() => { * @returns {Object.} Plain object */ ShareEnterprise.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - object.enterprisename = ""; + object.enterprisename = ''; object.enterpriseId = 0; } - if (message.enterprisename != null && message.hasOwnProperty("enterprisename")) + if (message.enterprisename != null && message.hasOwnProperty('enterprisename')) object.enterprisename = message.enterprisename; - if (message.enterpriseId != null && message.hasOwnProperty("enterpriseId")) + if (message.enterpriseId != null && message.hasOwnProperty('enterpriseId')) object.enterpriseId = message.enterpriseId; return object; }; @@ -189134,9 +196746,9 @@ export const Records = $root.Records = (() => { */ ShareEnterprise.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Records.ShareEnterprise"; + return typeUrlPrefix + '/Records.ShareEnterprise'; }; return ShareEnterprise; @@ -189150,16 +196762,16 @@ export const Records = $root.Records = (() => { * @property {number} BLOCK=1 BLOCK value * @property {number} INVITED=2 INVITED value */ - Records.ShareStatus = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "ACTIVE"] = 0; - values[valuesById[1] = "BLOCK"] = 1; - values[valuesById[2] = "INVITED"] = 2; + Records.ShareStatus = (function () { + const valuesById = {}, + values = Object.create(valuesById); + values[(valuesById[0] = 'ACTIVE')] = 0; + values[(valuesById[1] = 'BLOCK')] = 1; + values[(valuesById[2] = 'INVITED')] = 2; return values; })(); - Records.RecordsOnwershipTransferRequest = (function() { - + Records.RecordsOnwershipTransferRequest = (function () { /** * Properties of a RecordsOnwershipTransferRequest. * @memberof Records @@ -189179,8 +196791,7 @@ export const Records = $root.Records = (() => { this.transferRecords = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -189213,11 +196824,13 @@ export const Records = $root.Records = (() => { * @returns {$protobuf.Writer} Writer */ RecordsOnwershipTransferRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.transferRecords != null && message.transferRecords.length) for (let i = 0; i < message.transferRecords.length; ++i) - $root.Records.TransferRecord.encode(message.transferRecords[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.Records.TransferRecord.encode( + message.transferRecords[i], + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); return writer; }; @@ -189246,21 +196859,20 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RecordsOnwershipTransferRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordsOnwershipTransferRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Records.RecordsOnwershipTransferRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (!(message.transferRecords && message.transferRecords.length)) - message.transferRecords = []; + case 1: { + if (!(message.transferRecords && message.transferRecords.length)) message.transferRecords = []; message.transferRecords.push($root.Records.TransferRecord.decode(reader, reader.uint32())); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -189277,8 +196889,7 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RecordsOnwershipTransferRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -189291,15 +196902,12 @@ export const Records = $root.Records = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ RecordsOnwershipTransferRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.transferRecords != null && message.hasOwnProperty("transferRecords")) { - if (!Array.isArray(message.transferRecords)) - return "transferRecords: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.transferRecords != null && message.hasOwnProperty('transferRecords')) { + if (!Array.isArray(message.transferRecords)) return 'transferRecords: array expected'; for (let i = 0; i < message.transferRecords.length; ++i) { let error = $root.Records.TransferRecord.verify(message.transferRecords[i]); - if (error) - return "transferRecords." + error; + if (error) return 'transferRecords.' + error; } } return null; @@ -189314,16 +196922,15 @@ export const Records = $root.Records = (() => { * @returns {Records.RecordsOnwershipTransferRequest} RecordsOnwershipTransferRequest */ RecordsOnwershipTransferRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Records.RecordsOnwershipTransferRequest) - return object; + if (object instanceof $root.Records.RecordsOnwershipTransferRequest) return object; let message = new $root.Records.RecordsOnwershipTransferRequest(); if (object.transferRecords) { if (!Array.isArray(object.transferRecords)) - throw TypeError(".Records.RecordsOnwershipTransferRequest.transferRecords: array expected"); + throw TypeError('.Records.RecordsOnwershipTransferRequest.transferRecords: array expected'); message.transferRecords = []; for (let i = 0; i < object.transferRecords.length; ++i) { - if (typeof object.transferRecords[i] !== "object") - throw TypeError(".Records.RecordsOnwershipTransferRequest.transferRecords: object expected"); + if (typeof object.transferRecords[i] !== 'object') + throw TypeError('.Records.RecordsOnwershipTransferRequest.transferRecords: object expected'); message.transferRecords[i] = $root.Records.TransferRecord.fromObject(object.transferRecords[i]); } } @@ -189340,15 +196947,16 @@ export const Records = $root.Records = (() => { * @returns {Object.} Plain object */ RecordsOnwershipTransferRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.transferRecords = []; + if (options.arrays || options.defaults) object.transferRecords = []; if (message.transferRecords && message.transferRecords.length) { object.transferRecords = []; for (let j = 0; j < message.transferRecords.length; ++j) - object.transferRecords[j] = $root.Records.TransferRecord.toObject(message.transferRecords[j], options); + object.transferRecords[j] = $root.Records.TransferRecord.toObject( + message.transferRecords[j], + options + ); } return object; }; @@ -189374,16 +196982,15 @@ export const Records = $root.Records = (() => { */ RecordsOnwershipTransferRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Records.RecordsOnwershipTransferRequest"; + return typeUrlPrefix + '/Records.RecordsOnwershipTransferRequest'; }; return RecordsOnwershipTransferRequest; })(); - Records.TransferRecord = (function() { - + Records.TransferRecord = (function () { /** * Properties of a TransferRecord. * @memberof Records @@ -189405,8 +197012,7 @@ export const Records = $root.Records = (() => { function TransferRecord(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -189415,7 +197021,7 @@ export const Records = $root.Records = (() => { * @memberof Records.TransferRecord * @instance */ - TransferRecord.prototype.username = ""; + TransferRecord.prototype.username = ''; /** * TransferRecord recordUid. @@ -189463,16 +197069,15 @@ export const Records = $root.Records = (() => { * @returns {$protobuf.Writer} Writer */ TransferRecord.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.username != null && Object.hasOwnProperty.call(message, "username")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.username); - if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.recordUid); - if (message.recordKey != null && Object.hasOwnProperty.call(message, "recordKey")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.recordKey); - if (message.useEccKey != null && Object.hasOwnProperty.call(message, "useEccKey")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.useEccKey); + if (!writer) writer = $Writer.create(); + if (message.username != null && Object.hasOwnProperty.call(message, 'username')) + writer.uint32(/* id 1, wireType 2 =*/ 10).string(message.username); + if (message.recordUid != null && Object.hasOwnProperty.call(message, 'recordUid')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.recordUid); + if (message.recordKey != null && Object.hasOwnProperty.call(message, 'recordKey')) + writer.uint32(/* id 3, wireType 2 =*/ 26).bytes(message.recordKey); + if (message.useEccKey != null && Object.hasOwnProperty.call(message, 'useEccKey')) + writer.uint32(/* id 4, wireType 0 =*/ 32).bool(message.useEccKey); return writer; }; @@ -189501,31 +197106,31 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ TransferRecord.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.TransferRecord(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Records.TransferRecord(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.username = reader.string(); break; } - case 2: { + case 2: { message.recordUid = reader.bytes(); break; } - case 3: { + case 3: { message.recordKey = reader.bytes(); break; } - case 4: { + case 4: { message.useEccKey = reader.bool(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -189542,8 +197147,7 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ TransferRecord.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -189556,20 +197160,27 @@ export const Records = $root.Records = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ TransferRecord.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.username != null && message.hasOwnProperty("username")) - if (!$util.isString(message.username)) - return "username: string expected"; - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) - return "recordUid: buffer expected"; - if (message.recordKey != null && message.hasOwnProperty("recordKey")) - if (!(message.recordKey && typeof message.recordKey.length === "number" || $util.isString(message.recordKey))) - return "recordKey: buffer expected"; - if (message.useEccKey != null && message.hasOwnProperty("useEccKey")) - if (typeof message.useEccKey !== "boolean") - return "useEccKey: boolean expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.username != null && message.hasOwnProperty('username')) + if (!$util.isString(message.username)) return 'username: string expected'; + if (message.recordUid != null && message.hasOwnProperty('recordUid')) + if ( + !( + (message.recordUid && typeof message.recordUid.length === 'number') || + $util.isString(message.recordUid) + ) + ) + return 'recordUid: buffer expected'; + if (message.recordKey != null && message.hasOwnProperty('recordKey')) + if ( + !( + (message.recordKey && typeof message.recordKey.length === 'number') || + $util.isString(message.recordKey) + ) + ) + return 'recordKey: buffer expected'; + if (message.useEccKey != null && message.hasOwnProperty('useEccKey')) + if (typeof message.useEccKey !== 'boolean') return 'useEccKey: boolean expected'; return null; }; @@ -189582,23 +197193,26 @@ export const Records = $root.Records = (() => { * @returns {Records.TransferRecord} TransferRecord */ TransferRecord.fromObject = function fromObject(object) { - if (object instanceof $root.Records.TransferRecord) - return object; + if (object instanceof $root.Records.TransferRecord) return object; let message = new $root.Records.TransferRecord(); - if (object.username != null) - message.username = String(object.username); + if (object.username != null) message.username = String(object.username); 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 (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.recordKey != null) - if (typeof object.recordKey === "string") - $util.base64.decode(object.recordKey, message.recordKey = $util.newBuffer($util.base64.length(object.recordKey)), 0); - else if (object.recordKey.length >= 0) - message.recordKey = object.recordKey; - if (object.useEccKey != null) - message.useEccKey = Boolean(object.useEccKey); + if (typeof object.recordKey === 'string') + $util.base64.decode( + object.recordKey, + (message.recordKey = $util.newBuffer($util.base64.length(object.recordKey))), + 0 + ); + else if (object.recordKey.length >= 0) message.recordKey = object.recordKey; + if (object.useEccKey != null) message.useEccKey = Boolean(object.useEccKey); return message; }; @@ -189612,35 +197226,38 @@ export const Records = $root.Records = (() => { * @returns {Object.} Plain object */ TransferRecord.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - object.username = ""; - if (options.bytes === String) - object.recordUid = ""; + object.username = ''; + if (options.bytes === String) object.recordUid = ''; else { object.recordUid = []; - if (options.bytes !== Array) - object.recordUid = $util.newBuffer(object.recordUid); + if (options.bytes !== Array) object.recordUid = $util.newBuffer(object.recordUid); } - if (options.bytes === String) - object.recordKey = ""; + if (options.bytes === String) object.recordKey = ''; else { object.recordKey = []; - if (options.bytes !== Array) - object.recordKey = $util.newBuffer(object.recordKey); + if (options.bytes !== Array) object.recordKey = $util.newBuffer(object.recordKey); } object.useEccKey = false; } - if (message.username != null && message.hasOwnProperty("username")) - object.username = message.username; - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; - if (message.recordKey != null && message.hasOwnProperty("recordKey")) - object.recordKey = options.bytes === String ? $util.base64.encode(message.recordKey, 0, message.recordKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordKey) : message.recordKey; - if (message.useEccKey != null && message.hasOwnProperty("useEccKey")) - object.useEccKey = message.useEccKey; + if (message.username != null && message.hasOwnProperty('username')) object.username = message.username; + if (message.recordUid != null && message.hasOwnProperty('recordUid')) + object.recordUid = + options.bytes === String + ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.recordUid) + : message.recordUid; + if (message.recordKey != null && message.hasOwnProperty('recordKey')) + object.recordKey = + options.bytes === String + ? $util.base64.encode(message.recordKey, 0, message.recordKey.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.recordKey) + : message.recordKey; + if (message.useEccKey != null && message.hasOwnProperty('useEccKey')) object.useEccKey = message.useEccKey; return object; }; @@ -189665,16 +197282,15 @@ export const Records = $root.Records = (() => { */ TransferRecord.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Records.TransferRecord"; + return typeUrlPrefix + '/Records.TransferRecord'; }; return TransferRecord; })(); - Records.RecordsOnwershipTransferResponse = (function() { - + Records.RecordsOnwershipTransferResponse = (function () { /** * Properties of a RecordsOnwershipTransferResponse. * @memberof Records @@ -189694,8 +197310,7 @@ export const Records = $root.Records = (() => { this.transferRecordStatus = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -189728,11 +197343,13 @@ export const Records = $root.Records = (() => { * @returns {$protobuf.Writer} Writer */ RecordsOnwershipTransferResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.transferRecordStatus != null && message.transferRecordStatus.length) for (let i = 0; i < message.transferRecordStatus.length; ++i) - $root.Records.TransferRecordStatus.encode(message.transferRecordStatus[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.Records.TransferRecordStatus.encode( + message.transferRecordStatus[i], + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); return writer; }; @@ -189761,21 +197378,23 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RecordsOnwershipTransferResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordsOnwershipTransferResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Records.RecordsOnwershipTransferResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { if (!(message.transferRecordStatus && message.transferRecordStatus.length)) message.transferRecordStatus = []; - message.transferRecordStatus.push($root.Records.TransferRecordStatus.decode(reader, reader.uint32())); + message.transferRecordStatus.push( + $root.Records.TransferRecordStatus.decode(reader, reader.uint32()) + ); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -189792,8 +197411,7 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RecordsOnwershipTransferResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -189806,15 +197424,12 @@ export const Records = $root.Records = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ RecordsOnwershipTransferResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.transferRecordStatus != null && message.hasOwnProperty("transferRecordStatus")) { - if (!Array.isArray(message.transferRecordStatus)) - return "transferRecordStatus: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.transferRecordStatus != null && message.hasOwnProperty('transferRecordStatus')) { + if (!Array.isArray(message.transferRecordStatus)) return 'transferRecordStatus: array expected'; for (let i = 0; i < message.transferRecordStatus.length; ++i) { let error = $root.Records.TransferRecordStatus.verify(message.transferRecordStatus[i]); - if (error) - return "transferRecordStatus." + error; + if (error) return 'transferRecordStatus.' + error; } } return null; @@ -189829,17 +197444,20 @@ export const Records = $root.Records = (() => { * @returns {Records.RecordsOnwershipTransferResponse} RecordsOnwershipTransferResponse */ RecordsOnwershipTransferResponse.fromObject = function fromObject(object) { - if (object instanceof $root.Records.RecordsOnwershipTransferResponse) - return object; + if (object instanceof $root.Records.RecordsOnwershipTransferResponse) return object; let message = new $root.Records.RecordsOnwershipTransferResponse(); if (object.transferRecordStatus) { if (!Array.isArray(object.transferRecordStatus)) - throw TypeError(".Records.RecordsOnwershipTransferResponse.transferRecordStatus: array expected"); + throw TypeError('.Records.RecordsOnwershipTransferResponse.transferRecordStatus: array expected'); message.transferRecordStatus = []; for (let i = 0; i < object.transferRecordStatus.length; ++i) { - if (typeof object.transferRecordStatus[i] !== "object") - throw TypeError(".Records.RecordsOnwershipTransferResponse.transferRecordStatus: object expected"); - message.transferRecordStatus[i] = $root.Records.TransferRecordStatus.fromObject(object.transferRecordStatus[i]); + if (typeof object.transferRecordStatus[i] !== 'object') + throw TypeError( + '.Records.RecordsOnwershipTransferResponse.transferRecordStatus: object expected' + ); + message.transferRecordStatus[i] = $root.Records.TransferRecordStatus.fromObject( + object.transferRecordStatus[i] + ); } } return message; @@ -189855,15 +197473,16 @@ export const Records = $root.Records = (() => { * @returns {Object.} Plain object */ RecordsOnwershipTransferResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.transferRecordStatus = []; + if (options.arrays || options.defaults) object.transferRecordStatus = []; if (message.transferRecordStatus && message.transferRecordStatus.length) { object.transferRecordStatus = []; for (let j = 0; j < message.transferRecordStatus.length; ++j) - object.transferRecordStatus[j] = $root.Records.TransferRecordStatus.toObject(message.transferRecordStatus[j], options); + object.transferRecordStatus[j] = $root.Records.TransferRecordStatus.toObject( + message.transferRecordStatus[j], + options + ); } return object; }; @@ -189889,16 +197508,15 @@ export const Records = $root.Records = (() => { */ RecordsOnwershipTransferResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Records.RecordsOnwershipTransferResponse"; + return typeUrlPrefix + '/Records.RecordsOnwershipTransferResponse'; }; return RecordsOnwershipTransferResponse; })(); - Records.TransferRecordStatus = (function() { - + Records.TransferRecordStatus = (function () { /** * Properties of a TransferRecordStatus. * @memberof Records @@ -189920,8 +197538,7 @@ export const Records = $root.Records = (() => { function TransferRecordStatus(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -189930,7 +197547,7 @@ export const Records = $root.Records = (() => { * @memberof Records.TransferRecordStatus * @instance */ - TransferRecordStatus.prototype.username = ""; + TransferRecordStatus.prototype.username = ''; /** * TransferRecordStatus recordUid. @@ -189946,7 +197563,7 @@ export const Records = $root.Records = (() => { * @memberof Records.TransferRecordStatus * @instance */ - TransferRecordStatus.prototype.status = ""; + TransferRecordStatus.prototype.status = ''; /** * TransferRecordStatus message. @@ -189954,7 +197571,7 @@ export const Records = $root.Records = (() => { * @memberof Records.TransferRecordStatus * @instance */ - TransferRecordStatus.prototype.message = ""; + TransferRecordStatus.prototype.message = ''; /** * Creates a new TransferRecordStatus instance using the specified properties. @@ -189978,16 +197595,15 @@ export const Records = $root.Records = (() => { * @returns {$protobuf.Writer} Writer */ TransferRecordStatus.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.username != null && Object.hasOwnProperty.call(message, "username")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.username); - if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.recordUid); - if (message.status != null && Object.hasOwnProperty.call(message, "status")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.status); - if (message.message != null && Object.hasOwnProperty.call(message, "message")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.message); + if (!writer) writer = $Writer.create(); + if (message.username != null && Object.hasOwnProperty.call(message, 'username')) + writer.uint32(/* id 1, wireType 2 =*/ 10).string(message.username); + if (message.recordUid != null && Object.hasOwnProperty.call(message, 'recordUid')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.recordUid); + if (message.status != null && Object.hasOwnProperty.call(message, 'status')) + writer.uint32(/* id 3, wireType 2 =*/ 26).string(message.status); + if (message.message != null && Object.hasOwnProperty.call(message, 'message')) + writer.uint32(/* id 4, wireType 2 =*/ 34).string(message.message); return writer; }; @@ -190016,31 +197632,31 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ TransferRecordStatus.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.TransferRecordStatus(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Records.TransferRecordStatus(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.username = reader.string(); break; } - case 2: { + case 2: { message.recordUid = reader.bytes(); break; } - case 3: { + case 3: { message.status = reader.string(); break; } - case 4: { + case 4: { message.message = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -190057,8 +197673,7 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ TransferRecordStatus.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -190071,20 +197686,21 @@ export const Records = $root.Records = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ TransferRecordStatus.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.username != null && message.hasOwnProperty("username")) - if (!$util.isString(message.username)) - return "username: string expected"; - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) - return "recordUid: buffer expected"; - if (message.status != null && message.hasOwnProperty("status")) - if (!$util.isString(message.status)) - return "status: string expected"; - if (message.message != null && message.hasOwnProperty("message")) - if (!$util.isString(message.message)) - return "message: string expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.username != null && message.hasOwnProperty('username')) + if (!$util.isString(message.username)) return 'username: string expected'; + if (message.recordUid != null && message.hasOwnProperty('recordUid')) + if ( + !( + (message.recordUid && typeof message.recordUid.length === 'number') || + $util.isString(message.recordUid) + ) + ) + return 'recordUid: buffer expected'; + if (message.status != null && message.hasOwnProperty('status')) + if (!$util.isString(message.status)) return 'status: string expected'; + if (message.message != null && message.hasOwnProperty('message')) + if (!$util.isString(message.message)) return 'message: string expected'; return null; }; @@ -190097,20 +197713,19 @@ export const Records = $root.Records = (() => { * @returns {Records.TransferRecordStatus} TransferRecordStatus */ TransferRecordStatus.fromObject = function fromObject(object) { - if (object instanceof $root.Records.TransferRecordStatus) - return object; + if (object instanceof $root.Records.TransferRecordStatus) return object; let message = new $root.Records.TransferRecordStatus(); - if (object.username != null) - message.username = String(object.username); + if (object.username != null) message.username = String(object.username); 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.status != null) - message.status = String(object.status); - if (object.message != null) - message.message = String(object.message); + 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.status != null) message.status = String(object.status); + if (object.message != null) message.message = String(object.message); return message; }; @@ -190124,29 +197739,28 @@ export const Records = $root.Records = (() => { * @returns {Object.} Plain object */ TransferRecordStatus.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - object.username = ""; - if (options.bytes === String) - object.recordUid = ""; + object.username = ''; + if (options.bytes === String) object.recordUid = ''; else { object.recordUid = []; - if (options.bytes !== Array) - object.recordUid = $util.newBuffer(object.recordUid); + if (options.bytes !== Array) object.recordUid = $util.newBuffer(object.recordUid); } - object.status = ""; - object.message = ""; + object.status = ''; + object.message = ''; } - if (message.username != null && message.hasOwnProperty("username")) - object.username = message.username; - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; - if (message.status != null && message.hasOwnProperty("status")) - object.status = message.status; - if (message.message != null && message.hasOwnProperty("message")) - object.message = message.message; + if (message.username != null && message.hasOwnProperty('username')) object.username = message.username; + if (message.recordUid != null && message.hasOwnProperty('recordUid')) + object.recordUid = + options.bytes === String + ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.recordUid) + : message.recordUid; + if (message.status != null && message.hasOwnProperty('status')) object.status = message.status; + if (message.message != null && message.hasOwnProperty('message')) object.message = message.message; return object; }; @@ -190171,16 +197785,15 @@ export const Records = $root.Records = (() => { */ TransferRecordStatus.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Records.TransferRecordStatus"; + return typeUrlPrefix + '/Records.TransferRecordStatus'; }; return TransferRecordStatus; })(); - Records.RecordsUnshareRequest = (function() { - + Records.RecordsUnshareRequest = (function () { /** * Properties of a RecordsUnshareRequest. * @memberof Records @@ -190202,8 +197815,7 @@ export const Records = $root.Records = (() => { this.users = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -190244,14 +197856,19 @@ export const Records = $root.Records = (() => { * @returns {$protobuf.Writer} Writer */ RecordsUnshareRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.sharedFolders != null && message.sharedFolders.length) for (let i = 0; i < message.sharedFolders.length; ++i) - $root.Records.RecordsUnshareFolder.encode(message.sharedFolders[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.Records.RecordsUnshareFolder.encode( + message.sharedFolders[i], + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); if (message.users != null && message.users.length) for (let i = 0; i < message.users.length; ++i) - $root.Records.RecordsUnshareUser.encode(message.users[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + $root.Records.RecordsUnshareUser.encode( + message.users[i], + writer.uint32(/* id 2, wireType 2 =*/ 18).fork() + ).ldelim(); return writer; }; @@ -190280,27 +197897,25 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RecordsUnshareRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordsUnshareRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Records.RecordsUnshareRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (!(message.sharedFolders && message.sharedFolders.length)) - message.sharedFolders = []; + case 1: { + if (!(message.sharedFolders && message.sharedFolders.length)) message.sharedFolders = []; message.sharedFolders.push($root.Records.RecordsUnshareFolder.decode(reader, reader.uint32())); break; } - case 2: { - if (!(message.users && message.users.length)) - message.users = []; + case 2: { + if (!(message.users && message.users.length)) message.users = []; message.users.push($root.Records.RecordsUnshareUser.decode(reader, reader.uint32())); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -190317,8 +197932,7 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RecordsUnshareRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -190331,24 +197945,19 @@ export const Records = $root.Records = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ RecordsUnshareRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.sharedFolders != null && message.hasOwnProperty("sharedFolders")) { - if (!Array.isArray(message.sharedFolders)) - return "sharedFolders: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.sharedFolders != null && message.hasOwnProperty('sharedFolders')) { + if (!Array.isArray(message.sharedFolders)) return 'sharedFolders: array expected'; for (let i = 0; i < message.sharedFolders.length; ++i) { let error = $root.Records.RecordsUnshareFolder.verify(message.sharedFolders[i]); - if (error) - return "sharedFolders." + error; + if (error) return 'sharedFolders.' + error; } } - if (message.users != null && message.hasOwnProperty("users")) { - if (!Array.isArray(message.users)) - return "users: array expected"; + if (message.users != null && message.hasOwnProperty('users')) { + if (!Array.isArray(message.users)) return 'users: array expected'; for (let i = 0; i < message.users.length; ++i) { let error = $root.Records.RecordsUnshareUser.verify(message.users[i]); - if (error) - return "users." + error; + if (error) return 'users.' + error; } } return null; @@ -190363,26 +197972,25 @@ export const Records = $root.Records = (() => { * @returns {Records.RecordsUnshareRequest} RecordsUnshareRequest */ RecordsUnshareRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Records.RecordsUnshareRequest) - return object; + if (object instanceof $root.Records.RecordsUnshareRequest) return object; let message = new $root.Records.RecordsUnshareRequest(); if (object.sharedFolders) { if (!Array.isArray(object.sharedFolders)) - throw TypeError(".Records.RecordsUnshareRequest.sharedFolders: array expected"); + throw TypeError('.Records.RecordsUnshareRequest.sharedFolders: array expected'); message.sharedFolders = []; for (let i = 0; i < object.sharedFolders.length; ++i) { - if (typeof object.sharedFolders[i] !== "object") - throw TypeError(".Records.RecordsUnshareRequest.sharedFolders: object expected"); + if (typeof object.sharedFolders[i] !== 'object') + throw TypeError('.Records.RecordsUnshareRequest.sharedFolders: object expected'); message.sharedFolders[i] = $root.Records.RecordsUnshareFolder.fromObject(object.sharedFolders[i]); } } if (object.users) { if (!Array.isArray(object.users)) - throw TypeError(".Records.RecordsUnshareRequest.users: array expected"); + throw TypeError('.Records.RecordsUnshareRequest.users: array expected'); message.users = []; for (let i = 0; i < object.users.length; ++i) { - if (typeof object.users[i] !== "object") - throw TypeError(".Records.RecordsUnshareRequest.users: object expected"); + if (typeof object.users[i] !== 'object') + throw TypeError('.Records.RecordsUnshareRequest.users: object expected'); message.users[i] = $root.Records.RecordsUnshareUser.fromObject(object.users[i]); } } @@ -190399,8 +198007,7 @@ export const Records = $root.Records = (() => { * @returns {Object.} Plain object */ RecordsUnshareRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.arrays || options.defaults) { object.sharedFolders = []; @@ -190409,7 +198016,10 @@ export const Records = $root.Records = (() => { if (message.sharedFolders && message.sharedFolders.length) { object.sharedFolders = []; for (let j = 0; j < message.sharedFolders.length; ++j) - object.sharedFolders[j] = $root.Records.RecordsUnshareFolder.toObject(message.sharedFolders[j], options); + object.sharedFolders[j] = $root.Records.RecordsUnshareFolder.toObject( + message.sharedFolders[j], + options + ); } if (message.users && message.users.length) { object.users = []; @@ -190440,16 +198050,15 @@ export const Records = $root.Records = (() => { */ RecordsUnshareRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Records.RecordsUnshareRequest"; + return typeUrlPrefix + '/Records.RecordsUnshareRequest'; }; return RecordsUnshareRequest; })(); - Records.RecordsUnshareResponse = (function() { - + Records.RecordsUnshareResponse = (function () { /** * Properties of a RecordsUnshareResponse. * @memberof Records @@ -190471,8 +198080,7 @@ export const Records = $root.Records = (() => { this.users = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -190513,14 +198121,19 @@ export const Records = $root.Records = (() => { * @returns {$protobuf.Writer} Writer */ RecordsUnshareResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.sharedFolders != null && message.sharedFolders.length) for (let i = 0; i < message.sharedFolders.length; ++i) - $root.Records.RecordsUnshareFolderStatus.encode(message.sharedFolders[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.Records.RecordsUnshareFolderStatus.encode( + message.sharedFolders[i], + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); if (message.users != null && message.users.length) for (let i = 0; i < message.users.length; ++i) - $root.Records.RecordsUnshareUserStatus.encode(message.users[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + $root.Records.RecordsUnshareUserStatus.encode( + message.users[i], + writer.uint32(/* id 2, wireType 2 =*/ 18).fork() + ).ldelim(); return writer; }; @@ -190549,27 +198162,27 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RecordsUnshareResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordsUnshareResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Records.RecordsUnshareResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (!(message.sharedFolders && message.sharedFolders.length)) - message.sharedFolders = []; - message.sharedFolders.push($root.Records.RecordsUnshareFolderStatus.decode(reader, reader.uint32())); + case 1: { + if (!(message.sharedFolders && message.sharedFolders.length)) message.sharedFolders = []; + message.sharedFolders.push( + $root.Records.RecordsUnshareFolderStatus.decode(reader, reader.uint32()) + ); break; } - case 2: { - if (!(message.users && message.users.length)) - message.users = []; + case 2: { + if (!(message.users && message.users.length)) message.users = []; message.users.push($root.Records.RecordsUnshareUserStatus.decode(reader, reader.uint32())); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -190586,8 +198199,7 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RecordsUnshareResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -190600,24 +198212,19 @@ export const Records = $root.Records = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ RecordsUnshareResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.sharedFolders != null && message.hasOwnProperty("sharedFolders")) { - if (!Array.isArray(message.sharedFolders)) - return "sharedFolders: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.sharedFolders != null && message.hasOwnProperty('sharedFolders')) { + if (!Array.isArray(message.sharedFolders)) return 'sharedFolders: array expected'; for (let i = 0; i < message.sharedFolders.length; ++i) { let error = $root.Records.RecordsUnshareFolderStatus.verify(message.sharedFolders[i]); - if (error) - return "sharedFolders." + error; + if (error) return 'sharedFolders.' + error; } } - if (message.users != null && message.hasOwnProperty("users")) { - if (!Array.isArray(message.users)) - return "users: array expected"; + if (message.users != null && message.hasOwnProperty('users')) { + if (!Array.isArray(message.users)) return 'users: array expected'; for (let i = 0; i < message.users.length; ++i) { let error = $root.Records.RecordsUnshareUserStatus.verify(message.users[i]); - if (error) - return "users." + error; + if (error) return 'users.' + error; } } return null; @@ -190632,26 +198239,27 @@ export const Records = $root.Records = (() => { * @returns {Records.RecordsUnshareResponse} RecordsUnshareResponse */ RecordsUnshareResponse.fromObject = function fromObject(object) { - if (object instanceof $root.Records.RecordsUnshareResponse) - return object; + if (object instanceof $root.Records.RecordsUnshareResponse) return object; let message = new $root.Records.RecordsUnshareResponse(); if (object.sharedFolders) { if (!Array.isArray(object.sharedFolders)) - throw TypeError(".Records.RecordsUnshareResponse.sharedFolders: array expected"); + throw TypeError('.Records.RecordsUnshareResponse.sharedFolders: array expected'); message.sharedFolders = []; for (let i = 0; i < object.sharedFolders.length; ++i) { - if (typeof object.sharedFolders[i] !== "object") - throw TypeError(".Records.RecordsUnshareResponse.sharedFolders: object expected"); - message.sharedFolders[i] = $root.Records.RecordsUnshareFolderStatus.fromObject(object.sharedFolders[i]); + if (typeof object.sharedFolders[i] !== 'object') + throw TypeError('.Records.RecordsUnshareResponse.sharedFolders: object expected'); + message.sharedFolders[i] = $root.Records.RecordsUnshareFolderStatus.fromObject( + object.sharedFolders[i] + ); } } if (object.users) { if (!Array.isArray(object.users)) - throw TypeError(".Records.RecordsUnshareResponse.users: array expected"); + throw TypeError('.Records.RecordsUnshareResponse.users: array expected'); message.users = []; for (let i = 0; i < object.users.length; ++i) { - if (typeof object.users[i] !== "object") - throw TypeError(".Records.RecordsUnshareResponse.users: object expected"); + if (typeof object.users[i] !== 'object') + throw TypeError('.Records.RecordsUnshareResponse.users: object expected'); message.users[i] = $root.Records.RecordsUnshareUserStatus.fromObject(object.users[i]); } } @@ -190668,8 +198276,7 @@ export const Records = $root.Records = (() => { * @returns {Object.} Plain object */ RecordsUnshareResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.arrays || options.defaults) { object.sharedFolders = []; @@ -190678,7 +198285,10 @@ export const Records = $root.Records = (() => { if (message.sharedFolders && message.sharedFolders.length) { object.sharedFolders = []; for (let j = 0; j < message.sharedFolders.length; ++j) - object.sharedFolders[j] = $root.Records.RecordsUnshareFolderStatus.toObject(message.sharedFolders[j], options); + object.sharedFolders[j] = $root.Records.RecordsUnshareFolderStatus.toObject( + message.sharedFolders[j], + options + ); } if (message.users && message.users.length) { object.users = []; @@ -190709,16 +198319,15 @@ export const Records = $root.Records = (() => { */ RecordsUnshareResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Records.RecordsUnshareResponse"; + return typeUrlPrefix + '/Records.RecordsUnshareResponse'; }; return RecordsUnshareResponse; })(); - Records.RecordsUnshareFolder = (function() { - + Records.RecordsUnshareFolder = (function () { /** * Properties of a RecordsUnshareFolder. * @memberof Records @@ -190738,8 +198347,7 @@ export const Records = $root.Records = (() => { function RecordsUnshareFolder(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -190780,12 +198388,11 @@ export const Records = $root.Records = (() => { * @returns {$protobuf.Writer} Writer */ RecordsUnshareFolder.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); - if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, "sharedFolderUid")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.sharedFolderUid); + if (!writer) writer = $Writer.create(); + if (message.recordUid != null && Object.hasOwnProperty.call(message, 'recordUid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.recordUid); + if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, 'sharedFolderUid')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.sharedFolderUid); return writer; }; @@ -190814,23 +198421,23 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RecordsUnshareFolder.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordsUnshareFolder(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Records.RecordsUnshareFolder(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.recordUid = reader.bytes(); break; } - case 2: { + case 2: { message.sharedFolderUid = reader.bytes(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -190847,8 +198454,7 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RecordsUnshareFolder.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -190861,14 +198467,23 @@ export const Records = $root.Records = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ RecordsUnshareFolder.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) - return "recordUid: buffer expected"; - if (message.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) - if (!(message.sharedFolderUid && typeof message.sharedFolderUid.length === "number" || $util.isString(message.sharedFolderUid))) - return "sharedFolderUid: buffer expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.recordUid != null && message.hasOwnProperty('recordUid')) + if ( + !( + (message.recordUid && typeof message.recordUid.length === 'number') || + $util.isString(message.recordUid) + ) + ) + return 'recordUid: buffer expected'; + if (message.sharedFolderUid != null && message.hasOwnProperty('sharedFolderUid')) + if ( + !( + (message.sharedFolderUid && typeof message.sharedFolderUid.length === 'number') || + $util.isString(message.sharedFolderUid) + ) + ) + return 'sharedFolderUid: buffer expected'; return null; }; @@ -190881,19 +198496,24 @@ export const Records = $root.Records = (() => { * @returns {Records.RecordsUnshareFolder} RecordsUnshareFolder */ RecordsUnshareFolder.fromObject = function fromObject(object) { - if (object instanceof $root.Records.RecordsUnshareFolder) - return object; + if (object instanceof $root.Records.RecordsUnshareFolder) return object; let message = new $root.Records.RecordsUnshareFolder(); 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 (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.sharedFolderUid != null) - if (typeof object.sharedFolderUid === "string") - $util.base64.decode(object.sharedFolderUid, message.sharedFolderUid = $util.newBuffer($util.base64.length(object.sharedFolderUid)), 0); - else if (object.sharedFolderUid.length >= 0) - message.sharedFolderUid = object.sharedFolderUid; + if (typeof object.sharedFolderUid === 'string') + $util.base64.decode( + object.sharedFolderUid, + (message.sharedFolderUid = $util.newBuffer($util.base64.length(object.sharedFolderUid))), + 0 + ); + else if (object.sharedFolderUid.length >= 0) message.sharedFolderUid = object.sharedFolderUid; return message; }; @@ -190907,29 +198527,34 @@ export const Records = $root.Records = (() => { * @returns {Object.} Plain object */ RecordsUnshareFolder.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.recordUid = ""; + if (options.bytes === String) object.recordUid = ''; else { object.recordUid = []; - if (options.bytes !== Array) - object.recordUid = $util.newBuffer(object.recordUid); + if (options.bytes !== Array) object.recordUid = $util.newBuffer(object.recordUid); } - if (options.bytes === String) - object.sharedFolderUid = ""; + if (options.bytes === String) object.sharedFolderUid = ''; else { object.sharedFolderUid = []; - if (options.bytes !== Array) - object.sharedFolderUid = $util.newBuffer(object.sharedFolderUid); + if (options.bytes !== Array) object.sharedFolderUid = $util.newBuffer(object.sharedFolderUid); } } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; - if (message.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) - object.sharedFolderUid = options.bytes === String ? $util.base64.encode(message.sharedFolderUid, 0, message.sharedFolderUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.sharedFolderUid) : message.sharedFolderUid; + if (message.recordUid != null && message.hasOwnProperty('recordUid')) + object.recordUid = + options.bytes === String + ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.recordUid) + : message.recordUid; + if (message.sharedFolderUid != null && message.hasOwnProperty('sharedFolderUid')) + object.sharedFolderUid = + options.bytes === String + ? $util.base64.encode(message.sharedFolderUid, 0, message.sharedFolderUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.sharedFolderUid) + : message.sharedFolderUid; return object; }; @@ -190954,16 +198579,15 @@ export const Records = $root.Records = (() => { */ RecordsUnshareFolder.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Records.RecordsUnshareFolder"; + return typeUrlPrefix + '/Records.RecordsUnshareFolder'; }; return RecordsUnshareFolder; })(); - Records.RecordsUnshareUser = (function() { - + Records.RecordsUnshareUser = (function () { /** * Properties of a RecordsUnshareUser. * @memberof Records @@ -190983,8 +198607,7 @@ export const Records = $root.Records = (() => { function RecordsUnshareUser(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -191025,12 +198648,11 @@ export const Records = $root.Records = (() => { * @returns {$protobuf.Writer} Writer */ RecordsUnshareUser.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); - if (message.accountUid != null && Object.hasOwnProperty.call(message, "accountUid")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.accountUid); + if (!writer) writer = $Writer.create(); + if (message.recordUid != null && Object.hasOwnProperty.call(message, 'recordUid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.recordUid); + if (message.accountUid != null && Object.hasOwnProperty.call(message, 'accountUid')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.accountUid); return writer; }; @@ -191059,23 +198681,23 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RecordsUnshareUser.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordsUnshareUser(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Records.RecordsUnshareUser(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.recordUid = reader.bytes(); break; } - case 2: { + case 2: { message.accountUid = reader.bytes(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -191092,8 +198714,7 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RecordsUnshareUser.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -191106,14 +198727,23 @@ export const Records = $root.Records = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ RecordsUnshareUser.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) - return "recordUid: buffer expected"; - if (message.accountUid != null && message.hasOwnProperty("accountUid")) - if (!(message.accountUid && typeof message.accountUid.length === "number" || $util.isString(message.accountUid))) - return "accountUid: buffer expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.recordUid != null && message.hasOwnProperty('recordUid')) + if ( + !( + (message.recordUid && typeof message.recordUid.length === 'number') || + $util.isString(message.recordUid) + ) + ) + return 'recordUid: buffer expected'; + if (message.accountUid != null && message.hasOwnProperty('accountUid')) + if ( + !( + (message.accountUid && typeof message.accountUid.length === 'number') || + $util.isString(message.accountUid) + ) + ) + return 'accountUid: buffer expected'; return null; }; @@ -191126,19 +198756,24 @@ export const Records = $root.Records = (() => { * @returns {Records.RecordsUnshareUser} RecordsUnshareUser */ RecordsUnshareUser.fromObject = function fromObject(object) { - if (object instanceof $root.Records.RecordsUnshareUser) - return object; + if (object instanceof $root.Records.RecordsUnshareUser) return object; let message = new $root.Records.RecordsUnshareUser(); 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 (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.accountUid != null) - if (typeof object.accountUid === "string") - $util.base64.decode(object.accountUid, message.accountUid = $util.newBuffer($util.base64.length(object.accountUid)), 0); - else if (object.accountUid.length >= 0) - message.accountUid = object.accountUid; + if (typeof object.accountUid === 'string') + $util.base64.decode( + object.accountUid, + (message.accountUid = $util.newBuffer($util.base64.length(object.accountUid))), + 0 + ); + else if (object.accountUid.length >= 0) message.accountUid = object.accountUid; return message; }; @@ -191152,29 +198787,34 @@ export const Records = $root.Records = (() => { * @returns {Object.} Plain object */ RecordsUnshareUser.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.recordUid = ""; + if (options.bytes === String) object.recordUid = ''; else { object.recordUid = []; - if (options.bytes !== Array) - object.recordUid = $util.newBuffer(object.recordUid); + if (options.bytes !== Array) object.recordUid = $util.newBuffer(object.recordUid); } - if (options.bytes === String) - object.accountUid = ""; + if (options.bytes === String) object.accountUid = ''; else { object.accountUid = []; - if (options.bytes !== Array) - object.accountUid = $util.newBuffer(object.accountUid); + if (options.bytes !== Array) object.accountUid = $util.newBuffer(object.accountUid); } } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; - if (message.accountUid != null && message.hasOwnProperty("accountUid")) - object.accountUid = options.bytes === String ? $util.base64.encode(message.accountUid, 0, message.accountUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.accountUid) : message.accountUid; + if (message.recordUid != null && message.hasOwnProperty('recordUid')) + object.recordUid = + options.bytes === String + ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.recordUid) + : message.recordUid; + if (message.accountUid != null && message.hasOwnProperty('accountUid')) + object.accountUid = + options.bytes === String + ? $util.base64.encode(message.accountUid, 0, message.accountUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.accountUid) + : message.accountUid; return object; }; @@ -191199,16 +198839,15 @@ export const Records = $root.Records = (() => { */ RecordsUnshareUser.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Records.RecordsUnshareUser"; + return typeUrlPrefix + '/Records.RecordsUnshareUser'; }; return RecordsUnshareUser; })(); - Records.RecordsUnshareFolderStatus = (function() { - + Records.RecordsUnshareFolderStatus = (function () { /** * Properties of a RecordsUnshareFolderStatus. * @memberof Records @@ -191228,8 +198867,7 @@ export const Records = $root.Records = (() => { function RecordsUnshareFolderStatus(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -191270,12 +198908,11 @@ export const Records = $root.Records = (() => { * @returns {$protobuf.Writer} Writer */ RecordsUnshareFolderStatus.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); - if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, "sharedFolderUid")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.sharedFolderUid); + if (!writer) writer = $Writer.create(); + if (message.recordUid != null && Object.hasOwnProperty.call(message, 'recordUid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.recordUid); + if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, 'sharedFolderUid')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.sharedFolderUid); return writer; }; @@ -191304,23 +198941,23 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RecordsUnshareFolderStatus.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordsUnshareFolderStatus(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Records.RecordsUnshareFolderStatus(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.recordUid = reader.bytes(); break; } - case 2: { + case 2: { message.sharedFolderUid = reader.bytes(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -191337,8 +198974,7 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RecordsUnshareFolderStatus.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -191351,14 +198987,23 @@ export const Records = $root.Records = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ RecordsUnshareFolderStatus.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) - return "recordUid: buffer expected"; - if (message.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) - if (!(message.sharedFolderUid && typeof message.sharedFolderUid.length === "number" || $util.isString(message.sharedFolderUid))) - return "sharedFolderUid: buffer expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.recordUid != null && message.hasOwnProperty('recordUid')) + if ( + !( + (message.recordUid && typeof message.recordUid.length === 'number') || + $util.isString(message.recordUid) + ) + ) + return 'recordUid: buffer expected'; + if (message.sharedFolderUid != null && message.hasOwnProperty('sharedFolderUid')) + if ( + !( + (message.sharedFolderUid && typeof message.sharedFolderUid.length === 'number') || + $util.isString(message.sharedFolderUid) + ) + ) + return 'sharedFolderUid: buffer expected'; return null; }; @@ -191371,19 +199016,24 @@ export const Records = $root.Records = (() => { * @returns {Records.RecordsUnshareFolderStatus} RecordsUnshareFolderStatus */ RecordsUnshareFolderStatus.fromObject = function fromObject(object) { - if (object instanceof $root.Records.RecordsUnshareFolderStatus) - return object; + if (object instanceof $root.Records.RecordsUnshareFolderStatus) return object; let message = new $root.Records.RecordsUnshareFolderStatus(); 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 (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.sharedFolderUid != null) - if (typeof object.sharedFolderUid === "string") - $util.base64.decode(object.sharedFolderUid, message.sharedFolderUid = $util.newBuffer($util.base64.length(object.sharedFolderUid)), 0); - else if (object.sharedFolderUid.length >= 0) - message.sharedFolderUid = object.sharedFolderUid; + if (typeof object.sharedFolderUid === 'string') + $util.base64.decode( + object.sharedFolderUid, + (message.sharedFolderUid = $util.newBuffer($util.base64.length(object.sharedFolderUid))), + 0 + ); + else if (object.sharedFolderUid.length >= 0) message.sharedFolderUid = object.sharedFolderUid; return message; }; @@ -191397,29 +199047,34 @@ export const Records = $root.Records = (() => { * @returns {Object.} Plain object */ RecordsUnshareFolderStatus.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.recordUid = ""; + if (options.bytes === String) object.recordUid = ''; else { object.recordUid = []; - if (options.bytes !== Array) - object.recordUid = $util.newBuffer(object.recordUid); + if (options.bytes !== Array) object.recordUid = $util.newBuffer(object.recordUid); } - if (options.bytes === String) - object.sharedFolderUid = ""; + if (options.bytes === String) object.sharedFolderUid = ''; else { object.sharedFolderUid = []; - if (options.bytes !== Array) - object.sharedFolderUid = $util.newBuffer(object.sharedFolderUid); + if (options.bytes !== Array) object.sharedFolderUid = $util.newBuffer(object.sharedFolderUid); } } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; - if (message.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) - object.sharedFolderUid = options.bytes === String ? $util.base64.encode(message.sharedFolderUid, 0, message.sharedFolderUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.sharedFolderUid) : message.sharedFolderUid; + if (message.recordUid != null && message.hasOwnProperty('recordUid')) + object.recordUid = + options.bytes === String + ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.recordUid) + : message.recordUid; + if (message.sharedFolderUid != null && message.hasOwnProperty('sharedFolderUid')) + object.sharedFolderUid = + options.bytes === String + ? $util.base64.encode(message.sharedFolderUid, 0, message.sharedFolderUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.sharedFolderUid) + : message.sharedFolderUid; return object; }; @@ -191444,16 +199099,15 @@ export const Records = $root.Records = (() => { */ RecordsUnshareFolderStatus.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Records.RecordsUnshareFolderStatus"; + return typeUrlPrefix + '/Records.RecordsUnshareFolderStatus'; }; return RecordsUnshareFolderStatus; })(); - Records.RecordsUnshareUserStatus = (function() { - + Records.RecordsUnshareUserStatus = (function () { /** * Properties of a RecordsUnshareUserStatus. * @memberof Records @@ -191473,8 +199127,7 @@ export const Records = $root.Records = (() => { function RecordsUnshareUserStatus(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -191515,12 +199168,11 @@ export const Records = $root.Records = (() => { * @returns {$protobuf.Writer} Writer */ RecordsUnshareUserStatus.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); - if (message.accountUid != null && Object.hasOwnProperty.call(message, "accountUid")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.accountUid); + if (!writer) writer = $Writer.create(); + if (message.recordUid != null && Object.hasOwnProperty.call(message, 'recordUid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.recordUid); + if (message.accountUid != null && Object.hasOwnProperty.call(message, 'accountUid')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.accountUid); return writer; }; @@ -191549,23 +199201,23 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RecordsUnshareUserStatus.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.RecordsUnshareUserStatus(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Records.RecordsUnshareUserStatus(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.recordUid = reader.bytes(); break; } - case 2: { + case 2: { message.accountUid = reader.bytes(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -191582,8 +199234,7 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RecordsUnshareUserStatus.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -191596,14 +199247,23 @@ export const Records = $root.Records = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ RecordsUnshareUserStatus.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) - return "recordUid: buffer expected"; - if (message.accountUid != null && message.hasOwnProperty("accountUid")) - if (!(message.accountUid && typeof message.accountUid.length === "number" || $util.isString(message.accountUid))) - return "accountUid: buffer expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.recordUid != null && message.hasOwnProperty('recordUid')) + if ( + !( + (message.recordUid && typeof message.recordUid.length === 'number') || + $util.isString(message.recordUid) + ) + ) + return 'recordUid: buffer expected'; + if (message.accountUid != null && message.hasOwnProperty('accountUid')) + if ( + !( + (message.accountUid && typeof message.accountUid.length === 'number') || + $util.isString(message.accountUid) + ) + ) + return 'accountUid: buffer expected'; return null; }; @@ -191616,19 +199276,24 @@ export const Records = $root.Records = (() => { * @returns {Records.RecordsUnshareUserStatus} RecordsUnshareUserStatus */ RecordsUnshareUserStatus.fromObject = function fromObject(object) { - if (object instanceof $root.Records.RecordsUnshareUserStatus) - return object; + if (object instanceof $root.Records.RecordsUnshareUserStatus) return object; let message = new $root.Records.RecordsUnshareUserStatus(); 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 (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.accountUid != null) - if (typeof object.accountUid === "string") - $util.base64.decode(object.accountUid, message.accountUid = $util.newBuffer($util.base64.length(object.accountUid)), 0); - else if (object.accountUid.length >= 0) - message.accountUid = object.accountUid; + if (typeof object.accountUid === 'string') + $util.base64.decode( + object.accountUid, + (message.accountUid = $util.newBuffer($util.base64.length(object.accountUid))), + 0 + ); + else if (object.accountUid.length >= 0) message.accountUid = object.accountUid; return message; }; @@ -191642,29 +199307,34 @@ export const Records = $root.Records = (() => { * @returns {Object.} Plain object */ RecordsUnshareUserStatus.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.recordUid = ""; + if (options.bytes === String) object.recordUid = ''; else { object.recordUid = []; - if (options.bytes !== Array) - object.recordUid = $util.newBuffer(object.recordUid); + if (options.bytes !== Array) object.recordUid = $util.newBuffer(object.recordUid); } - if (options.bytes === String) - object.accountUid = ""; + if (options.bytes === String) object.accountUid = ''; else { object.accountUid = []; - if (options.bytes !== Array) - object.accountUid = $util.newBuffer(object.accountUid); + if (options.bytes !== Array) object.accountUid = $util.newBuffer(object.accountUid); } } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; - if (message.accountUid != null && message.hasOwnProperty("accountUid")) - object.accountUid = options.bytes === String ? $util.base64.encode(message.accountUid, 0, message.accountUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.accountUid) : message.accountUid; + if (message.recordUid != null && message.hasOwnProperty('recordUid')) + object.recordUid = + options.bytes === String + ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.recordUid) + : message.recordUid; + if (message.accountUid != null && message.hasOwnProperty('accountUid')) + object.accountUid = + options.bytes === String + ? $util.base64.encode(message.accountUid, 0, message.accountUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.accountUid) + : message.accountUid; return object; }; @@ -191689,9 +199359,9 @@ export const Records = $root.Records = (() => { */ RecordsUnshareUserStatus.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Records.RecordsUnshareUserStatus"; + return typeUrlPrefix + '/Records.RecordsUnshareUserStatus'; }; return RecordsUnshareUserStatus; @@ -191704,10 +199374,11 @@ export const Records = $root.Records = (() => { * @property {number} RTT_GENERAL=0 RTT_GENERAL value * @property {number} RTT_ROTATION=1 RTT_ROTATION value */ - Records.RecordTransactionType = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "RTT_GENERAL"] = 0; - values[valuesById[1] = "RTT_ROTATION"] = 1; + Records.RecordTransactionType = (function () { + const valuesById = {}, + values = Object.create(valuesById); + values[(valuesById[0] = 'RTT_GENERAL')] = 0; + values[(valuesById[1] = 'RTT_ROTATION')] = 1; return values; })(); @@ -191722,14 +199393,15 @@ export const Records = $root.Records = (() => { * @property {number} USER_ACCESS_TO_SHAREDFOLDER=4 USER_ACCESS_TO_SHAREDFOLDER value * @property {number} TEAM_ACCESS_TO_SHAREDFOLDER=5 TEAM_ACCESS_TO_SHAREDFOLDER value */ - Records.TimeLimitedAccessType = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "INVALID_TIME_LIMITED_ACCESS_TYPE"] = 0; - values[valuesById[1] = "USER_ACCESS_TO_RECORD"] = 1; - values[valuesById[2] = "USER_OR_TEAM_ACCESS_TO_SHAREDFOLDER"] = 2; - values[valuesById[3] = "RECORD_ACCESS_TO_SHAREDFOLDER"] = 3; - values[valuesById[4] = "USER_ACCESS_TO_SHAREDFOLDER"] = 4; - values[valuesById[5] = "TEAM_ACCESS_TO_SHAREDFOLDER"] = 5; + Records.TimeLimitedAccessType = (function () { + const valuesById = {}, + values = Object.create(valuesById); + values[(valuesById[0] = 'INVALID_TIME_LIMITED_ACCESS_TYPE')] = 0; + values[(valuesById[1] = 'USER_ACCESS_TO_RECORD')] = 1; + values[(valuesById[2] = 'USER_OR_TEAM_ACCESS_TO_SHAREDFOLDER')] = 2; + values[(valuesById[3] = 'RECORD_ACCESS_TO_SHAREDFOLDER')] = 3; + values[(valuesById[4] = 'USER_ACCESS_TO_SHAREDFOLDER')] = 4; + values[(valuesById[5] = 'TEAM_ACCESS_TO_SHAREDFOLDER')] = 5; return values; })(); @@ -191741,16 +199413,16 @@ export const Records = $root.Records = (() => { * @property {number} NOTIFY_OWNER=1 NOTIFY_OWNER value * @property {number} NOTIFY_PRIVILEGED_USERS=2 NOTIFY_PRIVILEGED_USERS value */ - Records.TimerNotificationType = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "NOTIFICATION_OFF"] = 0; - values[valuesById[1] = "NOTIFY_OWNER"] = 1; - values[valuesById[2] = "NOTIFY_PRIVILEGED_USERS"] = 2; + Records.TimerNotificationType = (function () { + const valuesById = {}, + values = Object.create(valuesById); + values[(valuesById[0] = 'NOTIFICATION_OFF')] = 0; + values[(valuesById[1] = 'NOTIFY_OWNER')] = 1; + values[(valuesById[2] = 'NOTIFY_PRIVILEGED_USERS')] = 2; return values; })(); - Records.TimedAccessCallbackPayload = (function() { - + Records.TimedAccessCallbackPayload = (function () { /** * Properties of a TimedAccessCallbackPayload. * @memberof Records @@ -191769,8 +199441,7 @@ export const Records = $root.Records = (() => { function TimedAccessCallbackPayload(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -191803,10 +199474,9 @@ export const Records = $root.Records = (() => { * @returns {$protobuf.Writer} Writer */ TimedAccessCallbackPayload.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.timeLimitedAccessType != null && Object.hasOwnProperty.call(message, "timeLimitedAccessType")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.timeLimitedAccessType); + if (!writer) writer = $Writer.create(); + if (message.timeLimitedAccessType != null && Object.hasOwnProperty.call(message, 'timeLimitedAccessType')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int32(message.timeLimitedAccessType); return writer; }; @@ -191835,19 +199505,19 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ TimedAccessCallbackPayload.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.TimedAccessCallbackPayload(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Records.TimedAccessCallbackPayload(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.timeLimitedAccessType = reader.int32(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -191864,8 +199534,7 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ TimedAccessCallbackPayload.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -191878,19 +199547,18 @@ export const Records = $root.Records = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ TimedAccessCallbackPayload.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.timeLimitedAccessType != null && message.hasOwnProperty("timeLimitedAccessType")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.timeLimitedAccessType != null && message.hasOwnProperty('timeLimitedAccessType')) switch (message.timeLimitedAccessType) { - default: - return "timeLimitedAccessType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - break; + default: + return 'timeLimitedAccessType: enum value expected'; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + break; } return null; }; @@ -191904,40 +199572,39 @@ export const Records = $root.Records = (() => { * @returns {Records.TimedAccessCallbackPayload} TimedAccessCallbackPayload */ TimedAccessCallbackPayload.fromObject = function fromObject(object) { - if (object instanceof $root.Records.TimedAccessCallbackPayload) - return object; + if (object instanceof $root.Records.TimedAccessCallbackPayload) return object; let message = new $root.Records.TimedAccessCallbackPayload(); switch (object.timeLimitedAccessType) { - default: - if (typeof object.timeLimitedAccessType === "number") { - message.timeLimitedAccessType = object.timeLimitedAccessType; - break; - } - break; - case "INVALID_TIME_LIMITED_ACCESS_TYPE": - case 0: - message.timeLimitedAccessType = 0; - break; - case "USER_ACCESS_TO_RECORD": - case 1: - message.timeLimitedAccessType = 1; - break; - case "USER_OR_TEAM_ACCESS_TO_SHAREDFOLDER": - case 2: - message.timeLimitedAccessType = 2; - break; - case "RECORD_ACCESS_TO_SHAREDFOLDER": - case 3: - message.timeLimitedAccessType = 3; - break; - case "USER_ACCESS_TO_SHAREDFOLDER": - case 4: - message.timeLimitedAccessType = 4; - break; - case "TEAM_ACCESS_TO_SHAREDFOLDER": - case 5: - message.timeLimitedAccessType = 5; - break; + default: + if (typeof object.timeLimitedAccessType === 'number') { + message.timeLimitedAccessType = object.timeLimitedAccessType; + break; + } + break; + case 'INVALID_TIME_LIMITED_ACCESS_TYPE': + case 0: + message.timeLimitedAccessType = 0; + break; + case 'USER_ACCESS_TO_RECORD': + case 1: + message.timeLimitedAccessType = 1; + break; + case 'USER_OR_TEAM_ACCESS_TO_SHAREDFOLDER': + case 2: + message.timeLimitedAccessType = 2; + break; + case 'RECORD_ACCESS_TO_SHAREDFOLDER': + case 3: + message.timeLimitedAccessType = 3; + break; + case 'USER_ACCESS_TO_SHAREDFOLDER': + case 4: + message.timeLimitedAccessType = 4; + break; + case 'TEAM_ACCESS_TO_SHAREDFOLDER': + case 5: + message.timeLimitedAccessType = 5; + break; } return message; }; @@ -191952,13 +199619,17 @@ export const Records = $root.Records = (() => { * @returns {Object.} Plain object */ TimedAccessCallbackPayload.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) - object.timeLimitedAccessType = options.enums === String ? "INVALID_TIME_LIMITED_ACCESS_TYPE" : 0; - if (message.timeLimitedAccessType != null && message.hasOwnProperty("timeLimitedAccessType")) - object.timeLimitedAccessType = options.enums === String ? $root.Records.TimeLimitedAccessType[message.timeLimitedAccessType] === undefined ? message.timeLimitedAccessType : $root.Records.TimeLimitedAccessType[message.timeLimitedAccessType] : message.timeLimitedAccessType; + object.timeLimitedAccessType = options.enums === String ? 'INVALID_TIME_LIMITED_ACCESS_TYPE' : 0; + if (message.timeLimitedAccessType != null && message.hasOwnProperty('timeLimitedAccessType')) + object.timeLimitedAccessType = + options.enums === String + ? $root.Records.TimeLimitedAccessType[message.timeLimitedAccessType] === undefined + ? message.timeLimitedAccessType + : $root.Records.TimeLimitedAccessType[message.timeLimitedAccessType] + : message.timeLimitedAccessType; return object; }; @@ -191983,16 +199654,15 @@ export const Records = $root.Records = (() => { */ TimedAccessCallbackPayload.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Records.TimedAccessCallbackPayload"; + return typeUrlPrefix + '/Records.TimedAccessCallbackPayload'; }; return TimedAccessCallbackPayload; })(); - Records.TimeLimitedAccessRequest = (function() { - + Records.TimeLimitedAccessRequest = (function () { /** * Properties of a TimeLimitedAccessRequest. * @memberof Records @@ -192020,8 +199690,7 @@ export const Records = $root.Records = (() => { this.recordUid = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -192070,7 +199739,7 @@ export const Records = $root.Records = (() => { * @memberof Records.TimeLimitedAccessRequest * @instance */ - TimeLimitedAccessRequest.prototype.expiration = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + TimeLimitedAccessRequest.prototype.expiration = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * TimeLimitedAccessRequest timerNotificationType. @@ -192102,25 +199771,24 @@ export const Records = $root.Records = (() => { * @returns {$protobuf.Writer} Writer */ TimeLimitedAccessRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.accountUid != null && message.accountUid.length) for (let i = 0; i < message.accountUid.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.accountUid[i]); + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.accountUid[i]); if (message.teamUid != null && message.teamUid.length) for (let i = 0; i < message.teamUid.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.teamUid[i]); + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.teamUid[i]); if (message.recordUid != null && message.recordUid.length) for (let i = 0; i < message.recordUid.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.recordUid[i]); - if (message.sharedObjectUid != null && Object.hasOwnProperty.call(message, "sharedObjectUid")) - writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.sharedObjectUid); - if (message.timeLimitedAccessType != null && Object.hasOwnProperty.call(message, "timeLimitedAccessType")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.timeLimitedAccessType); - if (message.expiration != null && Object.hasOwnProperty.call(message, "expiration")) - writer.uint32(/* id 6, wireType 0 =*/48).int64(message.expiration); - if (message.timerNotificationType != null && Object.hasOwnProperty.call(message, "timerNotificationType")) - writer.uint32(/* id 7, wireType 0 =*/56).int32(message.timerNotificationType); + writer.uint32(/* id 3, wireType 2 =*/ 26).bytes(message.recordUid[i]); + if (message.sharedObjectUid != null && Object.hasOwnProperty.call(message, 'sharedObjectUid')) + writer.uint32(/* id 4, wireType 2 =*/ 34).bytes(message.sharedObjectUid); + if (message.timeLimitedAccessType != null && Object.hasOwnProperty.call(message, 'timeLimitedAccessType')) + writer.uint32(/* id 5, wireType 0 =*/ 40).int32(message.timeLimitedAccessType); + if (message.expiration != null && Object.hasOwnProperty.call(message, 'expiration')) + writer.uint32(/* id 6, wireType 0 =*/ 48).int64(message.expiration); + if (message.timerNotificationType != null && Object.hasOwnProperty.call(message, 'timerNotificationType')) + writer.uint32(/* id 7, wireType 0 =*/ 56).int32(message.timerNotificationType); return writer; }; @@ -192149,49 +199817,46 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ TimeLimitedAccessRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.TimeLimitedAccessRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Records.TimeLimitedAccessRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (!(message.accountUid && message.accountUid.length)) - message.accountUid = []; + case 1: { + if (!(message.accountUid && message.accountUid.length)) message.accountUid = []; message.accountUid.push(reader.bytes()); break; } - case 2: { - if (!(message.teamUid && message.teamUid.length)) - message.teamUid = []; + case 2: { + if (!(message.teamUid && message.teamUid.length)) message.teamUid = []; message.teamUid.push(reader.bytes()); break; } - case 3: { - if (!(message.recordUid && message.recordUid.length)) - message.recordUid = []; + case 3: { + if (!(message.recordUid && message.recordUid.length)) message.recordUid = []; message.recordUid.push(reader.bytes()); break; } - case 4: { + case 4: { message.sharedObjectUid = reader.bytes(); break; } - case 5: { + case 5: { message.timeLimitedAccessType = reader.int32(); break; } - case 6: { + case 6: { message.expiration = reader.int64(); break; } - case 7: { + case 7: { message.timerNotificationType = reader.int32(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -192208,8 +199873,7 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ TimeLimitedAccessRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -192222,55 +199886,78 @@ export const Records = $root.Records = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ TimeLimitedAccessRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.accountUid != null && message.hasOwnProperty("accountUid")) { - if (!Array.isArray(message.accountUid)) - return "accountUid: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.accountUid != null && message.hasOwnProperty('accountUid')) { + if (!Array.isArray(message.accountUid)) return 'accountUid: array expected'; for (let i = 0; i < message.accountUid.length; ++i) - if (!(message.accountUid[i] && typeof message.accountUid[i].length === "number" || $util.isString(message.accountUid[i]))) - return "accountUid: buffer[] expected"; - } - if (message.teamUid != null && message.hasOwnProperty("teamUid")) { - if (!Array.isArray(message.teamUid)) - return "teamUid: array expected"; + if ( + !( + (message.accountUid[i] && typeof message.accountUid[i].length === 'number') || + $util.isString(message.accountUid[i]) + ) + ) + return 'accountUid: buffer[] expected'; + } + if (message.teamUid != null && message.hasOwnProperty('teamUid')) { + if (!Array.isArray(message.teamUid)) return 'teamUid: array expected'; for (let i = 0; i < message.teamUid.length; ++i) - if (!(message.teamUid[i] && typeof message.teamUid[i].length === "number" || $util.isString(message.teamUid[i]))) - return "teamUid: buffer[] expected"; - } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) { - if (!Array.isArray(message.recordUid)) - return "recordUid: array expected"; + if ( + !( + (message.teamUid[i] && typeof message.teamUid[i].length === 'number') || + $util.isString(message.teamUid[i]) + ) + ) + return 'teamUid: buffer[] expected'; + } + if (message.recordUid != null && message.hasOwnProperty('recordUid')) { + if (!Array.isArray(message.recordUid)) return 'recordUid: array expected'; for (let i = 0; i < message.recordUid.length; ++i) - if (!(message.recordUid[i] && typeof message.recordUid[i].length === "number" || $util.isString(message.recordUid[i]))) - return "recordUid: buffer[] expected"; - } - if (message.sharedObjectUid != null && message.hasOwnProperty("sharedObjectUid")) - if (!(message.sharedObjectUid && typeof message.sharedObjectUid.length === "number" || $util.isString(message.sharedObjectUid))) - return "sharedObjectUid: buffer expected"; - if (message.timeLimitedAccessType != null && message.hasOwnProperty("timeLimitedAccessType")) + if ( + !( + (message.recordUid[i] && typeof message.recordUid[i].length === 'number') || + $util.isString(message.recordUid[i]) + ) + ) + return 'recordUid: buffer[] expected'; + } + if (message.sharedObjectUid != null && message.hasOwnProperty('sharedObjectUid')) + if ( + !( + (message.sharedObjectUid && typeof message.sharedObjectUid.length === 'number') || + $util.isString(message.sharedObjectUid) + ) + ) + return 'sharedObjectUid: buffer expected'; + if (message.timeLimitedAccessType != null && message.hasOwnProperty('timeLimitedAccessType')) switch (message.timeLimitedAccessType) { - default: - return "timeLimitedAccessType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - break; + default: + return 'timeLimitedAccessType: enum value expected'; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + break; } - if (message.expiration != null && message.hasOwnProperty("expiration")) - if (!$util.isInteger(message.expiration) && !(message.expiration && $util.isInteger(message.expiration.low) && $util.isInteger(message.expiration.high))) - return "expiration: integer|Long expected"; - if (message.timerNotificationType != null && message.hasOwnProperty("timerNotificationType")) + if (message.expiration != null && message.hasOwnProperty('expiration')) + if ( + !$util.isInteger(message.expiration) && + !( + message.expiration && + $util.isInteger(message.expiration.low) && + $util.isInteger(message.expiration.high) + ) + ) + return 'expiration: integer|Long expected'; + if (message.timerNotificationType != null && message.hasOwnProperty('timerNotificationType')) switch (message.timerNotificationType) { - default: - return "timerNotificationType: enum value expected"; - case 0: - case 1: - case 2: - break; + default: + return 'timerNotificationType: enum value expected'; + case 0: + case 1: + case 2: + break; } return null; }; @@ -192284,104 +199971,115 @@ export const Records = $root.Records = (() => { * @returns {Records.TimeLimitedAccessRequest} TimeLimitedAccessRequest */ TimeLimitedAccessRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Records.TimeLimitedAccessRequest) - return object; + if (object instanceof $root.Records.TimeLimitedAccessRequest) return object; let message = new $root.Records.TimeLimitedAccessRequest(); if (object.accountUid) { if (!Array.isArray(object.accountUid)) - throw TypeError(".Records.TimeLimitedAccessRequest.accountUid: array expected"); + throw TypeError('.Records.TimeLimitedAccessRequest.accountUid: array expected'); message.accountUid = []; for (let i = 0; i < object.accountUid.length; ++i) - if (typeof object.accountUid[i] === "string") - $util.base64.decode(object.accountUid[i], message.accountUid[i] = $util.newBuffer($util.base64.length(object.accountUid[i])), 0); - else if (object.accountUid[i].length >= 0) - message.accountUid[i] = object.accountUid[i]; + if (typeof object.accountUid[i] === 'string') + $util.base64.decode( + object.accountUid[i], + (message.accountUid[i] = $util.newBuffer($util.base64.length(object.accountUid[i]))), + 0 + ); + else if (object.accountUid[i].length >= 0) message.accountUid[i] = object.accountUid[i]; } if (object.teamUid) { if (!Array.isArray(object.teamUid)) - throw TypeError(".Records.TimeLimitedAccessRequest.teamUid: array expected"); + throw TypeError('.Records.TimeLimitedAccessRequest.teamUid: array expected'); message.teamUid = []; for (let i = 0; i < object.teamUid.length; ++i) - if (typeof object.teamUid[i] === "string") - $util.base64.decode(object.teamUid[i], message.teamUid[i] = $util.newBuffer($util.base64.length(object.teamUid[i])), 0); - else if (object.teamUid[i].length >= 0) - message.teamUid[i] = object.teamUid[i]; + if (typeof object.teamUid[i] === 'string') + $util.base64.decode( + object.teamUid[i], + (message.teamUid[i] = $util.newBuffer($util.base64.length(object.teamUid[i]))), + 0 + ); + else if (object.teamUid[i].length >= 0) message.teamUid[i] = object.teamUid[i]; } if (object.recordUid) { if (!Array.isArray(object.recordUid)) - throw TypeError(".Records.TimeLimitedAccessRequest.recordUid: array expected"); + throw TypeError('.Records.TimeLimitedAccessRequest.recordUid: array expected'); message.recordUid = []; for (let i = 0; i < object.recordUid.length; ++i) - if (typeof object.recordUid[i] === "string") - $util.base64.decode(object.recordUid[i], message.recordUid[i] = $util.newBuffer($util.base64.length(object.recordUid[i])), 0); - else if (object.recordUid[i].length >= 0) - message.recordUid[i] = object.recordUid[i]; + if (typeof object.recordUid[i] === 'string') + $util.base64.decode( + object.recordUid[i], + (message.recordUid[i] = $util.newBuffer($util.base64.length(object.recordUid[i]))), + 0 + ); + else if (object.recordUid[i].length >= 0) message.recordUid[i] = object.recordUid[i]; } if (object.sharedObjectUid != null) - if (typeof object.sharedObjectUid === "string") - $util.base64.decode(object.sharedObjectUid, message.sharedObjectUid = $util.newBuffer($util.base64.length(object.sharedObjectUid)), 0); - else if (object.sharedObjectUid.length >= 0) - message.sharedObjectUid = object.sharedObjectUid; + if (typeof object.sharedObjectUid === 'string') + $util.base64.decode( + object.sharedObjectUid, + (message.sharedObjectUid = $util.newBuffer($util.base64.length(object.sharedObjectUid))), + 0 + ); + else if (object.sharedObjectUid.length >= 0) message.sharedObjectUid = object.sharedObjectUid; switch (object.timeLimitedAccessType) { - default: - if (typeof object.timeLimitedAccessType === "number") { - message.timeLimitedAccessType = object.timeLimitedAccessType; - break; - } - break; - case "INVALID_TIME_LIMITED_ACCESS_TYPE": - case 0: - message.timeLimitedAccessType = 0; - break; - case "USER_ACCESS_TO_RECORD": - case 1: - message.timeLimitedAccessType = 1; - break; - case "USER_OR_TEAM_ACCESS_TO_SHAREDFOLDER": - case 2: - message.timeLimitedAccessType = 2; - break; - case "RECORD_ACCESS_TO_SHAREDFOLDER": - case 3: - message.timeLimitedAccessType = 3; - break; - case "USER_ACCESS_TO_SHAREDFOLDER": - case 4: - message.timeLimitedAccessType = 4; - break; - case "TEAM_ACCESS_TO_SHAREDFOLDER": - case 5: - message.timeLimitedAccessType = 5; - break; + default: + if (typeof object.timeLimitedAccessType === 'number') { + message.timeLimitedAccessType = object.timeLimitedAccessType; + break; + } + break; + case 'INVALID_TIME_LIMITED_ACCESS_TYPE': + case 0: + message.timeLimitedAccessType = 0; + break; + case 'USER_ACCESS_TO_RECORD': + case 1: + message.timeLimitedAccessType = 1; + break; + case 'USER_OR_TEAM_ACCESS_TO_SHAREDFOLDER': + case 2: + message.timeLimitedAccessType = 2; + break; + case 'RECORD_ACCESS_TO_SHAREDFOLDER': + case 3: + message.timeLimitedAccessType = 3; + break; + case 'USER_ACCESS_TO_SHAREDFOLDER': + case 4: + message.timeLimitedAccessType = 4; + break; + case 'TEAM_ACCESS_TO_SHAREDFOLDER': + case 5: + message.timeLimitedAccessType = 5; + break; } if (object.expiration != null) - if ($util.Long) - (message.expiration = $util.Long.fromValue(object.expiration)).unsigned = false; - else if (typeof object.expiration === "string") - message.expiration = parseInt(object.expiration, 10); - else if (typeof object.expiration === "number") - message.expiration = object.expiration; - else if (typeof object.expiration === "object") - message.expiration = new $util.LongBits(object.expiration.low >>> 0, object.expiration.high >>> 0).toNumber(); + if ($util.Long) (message.expiration = $util.Long.fromValue(object.expiration)).unsigned = false; + else if (typeof object.expiration === 'string') message.expiration = parseInt(object.expiration, 10); + else if (typeof object.expiration === 'number') message.expiration = object.expiration; + else if (typeof object.expiration === 'object') + message.expiration = new $util.LongBits( + object.expiration.low >>> 0, + object.expiration.high >>> 0 + ).toNumber(); switch (object.timerNotificationType) { - default: - if (typeof object.timerNotificationType === "number") { - message.timerNotificationType = object.timerNotificationType; + default: + if (typeof object.timerNotificationType === 'number') { + message.timerNotificationType = object.timerNotificationType; + break; + } + break; + case 'NOTIFICATION_OFF': + case 0: + message.timerNotificationType = 0; + break; + case 'NOTIFY_OWNER': + case 1: + message.timerNotificationType = 1; + break; + case 'NOTIFY_PRIVILEGED_USERS': + case 2: + message.timerNotificationType = 2; break; - } - break; - case "NOTIFICATION_OFF": - case 0: - message.timerNotificationType = 0; - break; - case "NOTIFY_OWNER": - case 1: - message.timerNotificationType = 1; - break; - case "NOTIFY_PRIVILEGED_USERS": - case 2: - message.timerNotificationType = 2; - break; } return message; }; @@ -192396,8 +200094,7 @@ export const Records = $root.Records = (() => { * @returns {Object.} Plain object */ TimeLimitedAccessRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.arrays || options.defaults) { object.accountUid = []; @@ -192405,47 +200102,83 @@ export const Records = $root.Records = (() => { object.recordUid = []; } if (options.defaults) { - if (options.bytes === String) - object.sharedObjectUid = ""; + if (options.bytes === String) object.sharedObjectUid = ''; else { object.sharedObjectUid = []; - if (options.bytes !== Array) - object.sharedObjectUid = $util.newBuffer(object.sharedObjectUid); + if (options.bytes !== Array) object.sharedObjectUid = $util.newBuffer(object.sharedObjectUid); } - object.timeLimitedAccessType = options.enums === String ? "INVALID_TIME_LIMITED_ACCESS_TYPE" : 0; + object.timeLimitedAccessType = options.enums === String ? 'INVALID_TIME_LIMITED_ACCESS_TYPE' : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.expiration = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.expiration = options.longs === String ? "0" : 0; - object.timerNotificationType = options.enums === String ? "NOTIFICATION_OFF" : 0; + object.expiration = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.expiration = options.longs === String ? '0' : 0; + object.timerNotificationType = options.enums === String ? 'NOTIFICATION_OFF' : 0; } if (message.accountUid && message.accountUid.length) { object.accountUid = []; for (let j = 0; j < message.accountUid.length; ++j) - object.accountUid[j] = options.bytes === String ? $util.base64.encode(message.accountUid[j], 0, message.accountUid[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.accountUid[j]) : message.accountUid[j]; + object.accountUid[j] = + options.bytes === String + ? $util.base64.encode(message.accountUid[j], 0, message.accountUid[j].length) + : options.bytes === Array + ? Array.prototype.slice.call(message.accountUid[j]) + : message.accountUid[j]; } if (message.teamUid && message.teamUid.length) { object.teamUid = []; for (let j = 0; j < message.teamUid.length; ++j) - object.teamUid[j] = options.bytes === String ? $util.base64.encode(message.teamUid[j], 0, message.teamUid[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.teamUid[j]) : message.teamUid[j]; + object.teamUid[j] = + options.bytes === String + ? $util.base64.encode(message.teamUid[j], 0, message.teamUid[j].length) + : options.bytes === Array + ? Array.prototype.slice.call(message.teamUid[j]) + : message.teamUid[j]; } if (message.recordUid && message.recordUid.length) { object.recordUid = []; for (let j = 0; j < message.recordUid.length; ++j) - object.recordUid[j] = options.bytes === String ? $util.base64.encode(message.recordUid[j], 0, message.recordUid[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid[j]) : message.recordUid[j]; - } - if (message.sharedObjectUid != null && message.hasOwnProperty("sharedObjectUid")) - object.sharedObjectUid = options.bytes === String ? $util.base64.encode(message.sharedObjectUid, 0, message.sharedObjectUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.sharedObjectUid) : message.sharedObjectUid; - if (message.timeLimitedAccessType != null && message.hasOwnProperty("timeLimitedAccessType")) - object.timeLimitedAccessType = options.enums === String ? $root.Records.TimeLimitedAccessType[message.timeLimitedAccessType] === undefined ? message.timeLimitedAccessType : $root.Records.TimeLimitedAccessType[message.timeLimitedAccessType] : message.timeLimitedAccessType; - if (message.expiration != null && message.hasOwnProperty("expiration")) - if (typeof message.expiration === "number") + object.recordUid[j] = + options.bytes === String + ? $util.base64.encode(message.recordUid[j], 0, message.recordUid[j].length) + : options.bytes === Array + ? Array.prototype.slice.call(message.recordUid[j]) + : message.recordUid[j]; + } + if (message.sharedObjectUid != null && message.hasOwnProperty('sharedObjectUid')) + object.sharedObjectUid = + options.bytes === String + ? $util.base64.encode(message.sharedObjectUid, 0, message.sharedObjectUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.sharedObjectUid) + : message.sharedObjectUid; + if (message.timeLimitedAccessType != null && message.hasOwnProperty('timeLimitedAccessType')) + object.timeLimitedAccessType = + options.enums === String + ? $root.Records.TimeLimitedAccessType[message.timeLimitedAccessType] === undefined + ? message.timeLimitedAccessType + : $root.Records.TimeLimitedAccessType[message.timeLimitedAccessType] + : message.timeLimitedAccessType; + if (message.expiration != null && message.hasOwnProperty('expiration')) + if (typeof message.expiration === 'number') object.expiration = options.longs === String ? String(message.expiration) : message.expiration; else - object.expiration = options.longs === String ? $util.Long.prototype.toString.call(message.expiration) : options.longs === Number ? new $util.LongBits(message.expiration.low >>> 0, message.expiration.high >>> 0).toNumber() : message.expiration; - if (message.timerNotificationType != null && message.hasOwnProperty("timerNotificationType")) - object.timerNotificationType = options.enums === String ? $root.Records.TimerNotificationType[message.timerNotificationType] === undefined ? message.timerNotificationType : $root.Records.TimerNotificationType[message.timerNotificationType] : message.timerNotificationType; + object.expiration = + options.longs === String + ? $util.Long.prototype.toString.call(message.expiration) + : options.longs === Number + ? new $util.LongBits( + message.expiration.low >>> 0, + message.expiration.high >>> 0 + ).toNumber() + : message.expiration; + if (message.timerNotificationType != null && message.hasOwnProperty('timerNotificationType')) + object.timerNotificationType = + options.enums === String + ? $root.Records.TimerNotificationType[message.timerNotificationType] === undefined + ? message.timerNotificationType + : $root.Records.TimerNotificationType[message.timerNotificationType] + : message.timerNotificationType; return object; }; @@ -192470,16 +200203,15 @@ export const Records = $root.Records = (() => { */ TimeLimitedAccessRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Records.TimeLimitedAccessRequest"; + return typeUrlPrefix + '/Records.TimeLimitedAccessRequest'; }; return TimeLimitedAccessRequest; })(); - Records.TimeLimitedAccessStatus = (function() { - + Records.TimeLimitedAccessStatus = (function () { /** * Properties of a TimeLimitedAccessStatus. * @memberof Records @@ -192499,8 +200231,7 @@ export const Records = $root.Records = (() => { function TimeLimitedAccessStatus(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -192517,7 +200248,7 @@ export const Records = $root.Records = (() => { * @memberof Records.TimeLimitedAccessStatus * @instance */ - TimeLimitedAccessStatus.prototype.message = ""; + TimeLimitedAccessStatus.prototype.message = ''; /** * Creates a new TimeLimitedAccessStatus instance using the specified properties. @@ -192541,12 +200272,11 @@ export const Records = $root.Records = (() => { * @returns {$protobuf.Writer} Writer */ TimeLimitedAccessStatus.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.uid != null && Object.hasOwnProperty.call(message, "uid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.uid); - if (message.message != null && Object.hasOwnProperty.call(message, "message")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.message); + if (!writer) writer = $Writer.create(); + if (message.uid != null && Object.hasOwnProperty.call(message, 'uid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.uid); + if (message.message != null && Object.hasOwnProperty.call(message, 'message')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.message); return writer; }; @@ -192575,23 +200305,23 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ TimeLimitedAccessStatus.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.TimeLimitedAccessStatus(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Records.TimeLimitedAccessStatus(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.uid = reader.bytes(); break; } - case 2: { + case 2: { message.message = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -192608,8 +200338,7 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ TimeLimitedAccessStatus.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -192622,14 +200351,12 @@ export const Records = $root.Records = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ TimeLimitedAccessStatus.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.uid != null && message.hasOwnProperty("uid")) - if (!(message.uid && typeof message.uid.length === "number" || $util.isString(message.uid))) - return "uid: buffer expected"; - if (message.message != null && message.hasOwnProperty("message")) - if (!$util.isString(message.message)) - return "message: string expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.uid != null && message.hasOwnProperty('uid')) + if (!((message.uid && typeof message.uid.length === 'number') || $util.isString(message.uid))) + return 'uid: buffer expected'; + if (message.message != null && message.hasOwnProperty('message')) + if (!$util.isString(message.message)) return 'message: string expected'; return null; }; @@ -192642,16 +200369,17 @@ export const Records = $root.Records = (() => { * @returns {Records.TimeLimitedAccessStatus} TimeLimitedAccessStatus */ TimeLimitedAccessStatus.fromObject = function fromObject(object) { - if (object instanceof $root.Records.TimeLimitedAccessStatus) - return object; + if (object instanceof $root.Records.TimeLimitedAccessStatus) return object; let message = new $root.Records.TimeLimitedAccessStatus(); if (object.uid != null) - if (typeof object.uid === "string") - $util.base64.decode(object.uid, message.uid = $util.newBuffer($util.base64.length(object.uid)), 0); - else if (object.uid.length >= 0) - message.uid = object.uid; - if (object.message != null) - message.message = String(object.message); + if (typeof object.uid === 'string') + $util.base64.decode( + object.uid, + (message.uid = $util.newBuffer($util.base64.length(object.uid))), + 0 + ); + else if (object.uid.length >= 0) message.uid = object.uid; + if (object.message != null) message.message = String(object.message); return message; }; @@ -192665,23 +200393,24 @@ export const Records = $root.Records = (() => { * @returns {Object.} Plain object */ TimeLimitedAccessStatus.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.uid = ""; + if (options.bytes === String) object.uid = ''; else { object.uid = []; - if (options.bytes !== Array) - object.uid = $util.newBuffer(object.uid); + if (options.bytes !== Array) object.uid = $util.newBuffer(object.uid); } - object.message = ""; + object.message = ''; } - if (message.uid != null && message.hasOwnProperty("uid")) - object.uid = options.bytes === String ? $util.base64.encode(message.uid, 0, message.uid.length) : options.bytes === Array ? Array.prototype.slice.call(message.uid) : message.uid; - if (message.message != null && message.hasOwnProperty("message")) - object.message = message.message; + if (message.uid != null && message.hasOwnProperty('uid')) + object.uid = + options.bytes === String + ? $util.base64.encode(message.uid, 0, message.uid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.uid) + : message.uid; + if (message.message != null && message.hasOwnProperty('message')) object.message = message.message; return object; }; @@ -192706,16 +200435,15 @@ export const Records = $root.Records = (() => { */ TimeLimitedAccessStatus.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Records.TimeLimitedAccessStatus"; + return typeUrlPrefix + '/Records.TimeLimitedAccessStatus'; }; return TimeLimitedAccessStatus; })(); - Records.TimeLimitedAccessResponse = (function() { - + Records.TimeLimitedAccessResponse = (function () { /** * Properties of a TimeLimitedAccessResponse. * @memberof Records @@ -192740,8 +200468,7 @@ export const Records = $root.Records = (() => { this.recordAccessStatus = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -192750,7 +200477,7 @@ export const Records = $root.Records = (() => { * @memberof Records.TimeLimitedAccessResponse * @instance */ - TimeLimitedAccessResponse.prototype.revision = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + TimeLimitedAccessResponse.prototype.revision = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * TimeLimitedAccessResponse userAccessStatus. @@ -192798,19 +200525,27 @@ export const Records = $root.Records = (() => { * @returns {$protobuf.Writer} Writer */ TimeLimitedAccessResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.revision != null && Object.hasOwnProperty.call(message, "revision")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.revision); + if (!writer) writer = $Writer.create(); + if (message.revision != null && Object.hasOwnProperty.call(message, 'revision')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int64(message.revision); if (message.userAccessStatus != null && message.userAccessStatus.length) for (let i = 0; i < message.userAccessStatus.length; ++i) - $root.Records.TimeLimitedAccessStatus.encode(message.userAccessStatus[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + $root.Records.TimeLimitedAccessStatus.encode( + message.userAccessStatus[i], + writer.uint32(/* id 2, wireType 2 =*/ 18).fork() + ).ldelim(); if (message.teamAccessStatus != null && message.teamAccessStatus.length) for (let i = 0; i < message.teamAccessStatus.length; ++i) - $root.Records.TimeLimitedAccessStatus.encode(message.teamAccessStatus[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + $root.Records.TimeLimitedAccessStatus.encode( + message.teamAccessStatus[i], + writer.uint32(/* id 3, wireType 2 =*/ 26).fork() + ).ldelim(); if (message.recordAccessStatus != null && message.recordAccessStatus.length) for (let i = 0; i < message.recordAccessStatus.length; ++i) - $root.Records.TimeLimitedAccessStatus.encode(message.recordAccessStatus[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + $root.Records.TimeLimitedAccessStatus.encode( + message.recordAccessStatus[i], + writer.uint32(/* id 4, wireType 2 =*/ 34).fork() + ).ldelim(); return writer; }; @@ -192839,37 +200574,43 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ TimeLimitedAccessResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Records.TimeLimitedAccessResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Records.TimeLimitedAccessResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.revision = reader.int64(); break; } - case 2: { + case 2: { if (!(message.userAccessStatus && message.userAccessStatus.length)) message.userAccessStatus = []; - message.userAccessStatus.push($root.Records.TimeLimitedAccessStatus.decode(reader, reader.uint32())); + message.userAccessStatus.push( + $root.Records.TimeLimitedAccessStatus.decode(reader, reader.uint32()) + ); break; } - case 3: { + case 3: { if (!(message.teamAccessStatus && message.teamAccessStatus.length)) message.teamAccessStatus = []; - message.teamAccessStatus.push($root.Records.TimeLimitedAccessStatus.decode(reader, reader.uint32())); + message.teamAccessStatus.push( + $root.Records.TimeLimitedAccessStatus.decode(reader, reader.uint32()) + ); break; } - case 4: { + case 4: { if (!(message.recordAccessStatus && message.recordAccessStatus.length)) message.recordAccessStatus = []; - message.recordAccessStatus.push($root.Records.TimeLimitedAccessStatus.decode(reader, reader.uint32())); + message.recordAccessStatus.push( + $root.Records.TimeLimitedAccessStatus.decode(reader, reader.uint32()) + ); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -192886,8 +200627,7 @@ export const Records = $root.Records = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ TimeLimitedAccessResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -192900,36 +200640,36 @@ export const Records = $root.Records = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ TimeLimitedAccessResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.revision != null && message.hasOwnProperty("revision")) - if (!$util.isInteger(message.revision) && !(message.revision && $util.isInteger(message.revision.low) && $util.isInteger(message.revision.high))) - return "revision: integer|Long expected"; - if (message.userAccessStatus != null && message.hasOwnProperty("userAccessStatus")) { - if (!Array.isArray(message.userAccessStatus)) - return "userAccessStatus: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.revision != null && message.hasOwnProperty('revision')) + if ( + !$util.isInteger(message.revision) && + !( + message.revision && + $util.isInteger(message.revision.low) && + $util.isInteger(message.revision.high) + ) + ) + return 'revision: integer|Long expected'; + if (message.userAccessStatus != null && message.hasOwnProperty('userAccessStatus')) { + if (!Array.isArray(message.userAccessStatus)) return 'userAccessStatus: array expected'; for (let i = 0; i < message.userAccessStatus.length; ++i) { let error = $root.Records.TimeLimitedAccessStatus.verify(message.userAccessStatus[i]); - if (error) - return "userAccessStatus." + error; + if (error) return 'userAccessStatus.' + error; } } - if (message.teamAccessStatus != null && message.hasOwnProperty("teamAccessStatus")) { - if (!Array.isArray(message.teamAccessStatus)) - return "teamAccessStatus: array expected"; + if (message.teamAccessStatus != null && message.hasOwnProperty('teamAccessStatus')) { + if (!Array.isArray(message.teamAccessStatus)) return 'teamAccessStatus: array expected'; for (let i = 0; i < message.teamAccessStatus.length; ++i) { let error = $root.Records.TimeLimitedAccessStatus.verify(message.teamAccessStatus[i]); - if (error) - return "teamAccessStatus." + error; + if (error) return 'teamAccessStatus.' + error; } } - if (message.recordAccessStatus != null && message.hasOwnProperty("recordAccessStatus")) { - if (!Array.isArray(message.recordAccessStatus)) - return "recordAccessStatus: array expected"; + if (message.recordAccessStatus != null && message.hasOwnProperty('recordAccessStatus')) { + if (!Array.isArray(message.recordAccessStatus)) return 'recordAccessStatus: array expected'; for (let i = 0; i < message.recordAccessStatus.length; ++i) { let error = $root.Records.TimeLimitedAccessStatus.verify(message.recordAccessStatus[i]); - if (error) - return "recordAccessStatus." + error; + if (error) return 'recordAccessStatus.' + error; } } return null; @@ -192944,46 +200684,51 @@ export const Records = $root.Records = (() => { * @returns {Records.TimeLimitedAccessResponse} TimeLimitedAccessResponse */ TimeLimitedAccessResponse.fromObject = function fromObject(object) { - if (object instanceof $root.Records.TimeLimitedAccessResponse) - return object; + if (object instanceof $root.Records.TimeLimitedAccessResponse) return object; let message = new $root.Records.TimeLimitedAccessResponse(); if (object.revision != null) - if ($util.Long) - (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; - else if (typeof object.revision === "string") - message.revision = parseInt(object.revision, 10); - else if (typeof object.revision === "number") - message.revision = object.revision; - else if (typeof object.revision === "object") - message.revision = new $util.LongBits(object.revision.low >>> 0, object.revision.high >>> 0).toNumber(); + if ($util.Long) (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; + else if (typeof object.revision === 'string') message.revision = parseInt(object.revision, 10); + else if (typeof object.revision === 'number') message.revision = object.revision; + else if (typeof object.revision === 'object') + message.revision = new $util.LongBits( + object.revision.low >>> 0, + object.revision.high >>> 0 + ).toNumber(); if (object.userAccessStatus) { if (!Array.isArray(object.userAccessStatus)) - throw TypeError(".Records.TimeLimitedAccessResponse.userAccessStatus: array expected"); + throw TypeError('.Records.TimeLimitedAccessResponse.userAccessStatus: array expected'); message.userAccessStatus = []; for (let i = 0; i < object.userAccessStatus.length; ++i) { - if (typeof object.userAccessStatus[i] !== "object") - throw TypeError(".Records.TimeLimitedAccessResponse.userAccessStatus: object expected"); - message.userAccessStatus[i] = $root.Records.TimeLimitedAccessStatus.fromObject(object.userAccessStatus[i]); + if (typeof object.userAccessStatus[i] !== 'object') + throw TypeError('.Records.TimeLimitedAccessResponse.userAccessStatus: object expected'); + message.userAccessStatus[i] = $root.Records.TimeLimitedAccessStatus.fromObject( + object.userAccessStatus[i] + ); } } if (object.teamAccessStatus) { if (!Array.isArray(object.teamAccessStatus)) - throw TypeError(".Records.TimeLimitedAccessResponse.teamAccessStatus: array expected"); + throw TypeError('.Records.TimeLimitedAccessResponse.teamAccessStatus: array expected'); message.teamAccessStatus = []; for (let i = 0; i < object.teamAccessStatus.length; ++i) { - if (typeof object.teamAccessStatus[i] !== "object") - throw TypeError(".Records.TimeLimitedAccessResponse.teamAccessStatus: object expected"); - message.teamAccessStatus[i] = $root.Records.TimeLimitedAccessStatus.fromObject(object.teamAccessStatus[i]); + if (typeof object.teamAccessStatus[i] !== 'object') + throw TypeError('.Records.TimeLimitedAccessResponse.teamAccessStatus: object expected'); + message.teamAccessStatus[i] = $root.Records.TimeLimitedAccessStatus.fromObject( + object.teamAccessStatus[i] + ); } } if (object.recordAccessStatus) { if (!Array.isArray(object.recordAccessStatus)) - throw TypeError(".Records.TimeLimitedAccessResponse.recordAccessStatus: array expected"); + throw TypeError('.Records.TimeLimitedAccessResponse.recordAccessStatus: array expected'); message.recordAccessStatus = []; for (let i = 0; i < object.recordAccessStatus.length; ++i) { - if (typeof object.recordAccessStatus[i] !== "object") - throw TypeError(".Records.TimeLimitedAccessResponse.recordAccessStatus: object expected"); - message.recordAccessStatus[i] = $root.Records.TimeLimitedAccessStatus.fromObject(object.recordAccessStatus[i]); + if (typeof object.recordAccessStatus[i] !== 'object') + throw TypeError('.Records.TimeLimitedAccessResponse.recordAccessStatus: object expected'); + message.recordAccessStatus[i] = $root.Records.TimeLimitedAccessStatus.fromObject( + object.recordAccessStatus[i] + ); } } return message; @@ -192999,8 +200744,7 @@ export const Records = $root.Records = (() => { * @returns {Object.} Plain object */ TimeLimitedAccessResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.arrays || options.defaults) { object.userAccessStatus = []; @@ -193010,28 +200754,42 @@ export const Records = $root.Records = (() => { if (options.defaults) if ($util.Long) { let long = new $util.Long(0, 0, false); - object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.revision = options.longs === String ? "0" : 0; - if (message.revision != null && message.hasOwnProperty("revision")) - if (typeof message.revision === "number") + object.revision = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.revision = options.longs === String ? '0' : 0; + if (message.revision != null && message.hasOwnProperty('revision')) + if (typeof message.revision === 'number') object.revision = options.longs === String ? String(message.revision) : message.revision; else - object.revision = options.longs === String ? $util.Long.prototype.toString.call(message.revision) : options.longs === Number ? new $util.LongBits(message.revision.low >>> 0, message.revision.high >>> 0).toNumber() : message.revision; + object.revision = + options.longs === String + ? $util.Long.prototype.toString.call(message.revision) + : options.longs === Number + ? new $util.LongBits(message.revision.low >>> 0, message.revision.high >>> 0).toNumber() + : message.revision; if (message.userAccessStatus && message.userAccessStatus.length) { object.userAccessStatus = []; for (let j = 0; j < message.userAccessStatus.length; ++j) - object.userAccessStatus[j] = $root.Records.TimeLimitedAccessStatus.toObject(message.userAccessStatus[j], options); + object.userAccessStatus[j] = $root.Records.TimeLimitedAccessStatus.toObject( + message.userAccessStatus[j], + options + ); } if (message.teamAccessStatus && message.teamAccessStatus.length) { object.teamAccessStatus = []; for (let j = 0; j < message.teamAccessStatus.length; ++j) - object.teamAccessStatus[j] = $root.Records.TimeLimitedAccessStatus.toObject(message.teamAccessStatus[j], options); + object.teamAccessStatus[j] = $root.Records.TimeLimitedAccessStatus.toObject( + message.teamAccessStatus[j], + options + ); } if (message.recordAccessStatus && message.recordAccessStatus.length) { object.recordAccessStatus = []; for (let j = 0; j < message.recordAccessStatus.length; ++j) - object.recordAccessStatus[j] = $root.Records.TimeLimitedAccessStatus.toObject(message.recordAccessStatus[j], options); + object.recordAccessStatus[j] = $root.Records.TimeLimitedAccessStatus.toObject( + message.recordAccessStatus[j], + options + ); } return object; }; @@ -193057,19 +200815,18 @@ export const Records = $root.Records = (() => { */ TimeLimitedAccessResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Records.TimeLimitedAccessResponse"; + return typeUrlPrefix + '/Records.TimeLimitedAccessResponse'; }; return TimeLimitedAccessResponse; })(); return Records; -})(); - -export const Push = $root.Push = (() => { +})()); +export const Push = ($root.Push = (() => { /** * Namespace Push. * @exports Push @@ -193077,8 +200834,7 @@ export const Push = $root.Push = (() => { */ const Push = {}; - Push.UserRegistrationRequest = (function() { - + Push.UserRegistrationRequest = (function () { /** * Properties of a UserRegistrationRequest. * @memberof Push @@ -193099,8 +200855,7 @@ export const Push = $root.Push = (() => { function UserRegistrationRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -193149,14 +200904,13 @@ export const Push = $root.Push = (() => { * @returns {$protobuf.Writer} Writer */ UserRegistrationRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.messageSessionUid != null && Object.hasOwnProperty.call(message, "messageSessionUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.messageSessionUid); - if (message.userId != null && Object.hasOwnProperty.call(message, "userId")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.userId); - if (message.enterpriseId != null && Object.hasOwnProperty.call(message, "enterpriseId")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.enterpriseId); + if (!writer) writer = $Writer.create(); + if (message.messageSessionUid != null && Object.hasOwnProperty.call(message, 'messageSessionUid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.messageSessionUid); + if (message.userId != null && Object.hasOwnProperty.call(message, 'userId')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int32(message.userId); + if (message.enterpriseId != null && Object.hasOwnProperty.call(message, 'enterpriseId')) + writer.uint32(/* id 3, wireType 0 =*/ 24).int32(message.enterpriseId); return writer; }; @@ -193185,27 +200939,27 @@ export const Push = $root.Push = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ UserRegistrationRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Push.UserRegistrationRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Push.UserRegistrationRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.messageSessionUid = reader.bytes(); break; } - case 2: { + case 2: { message.userId = reader.int32(); break; } - case 3: { + case 3: { message.enterpriseId = reader.int32(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -193222,8 +200976,7 @@ export const Push = $root.Push = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ UserRegistrationRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -193236,17 +200989,19 @@ export const Push = $root.Push = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ UserRegistrationRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.messageSessionUid != null && message.hasOwnProperty("messageSessionUid")) - if (!(message.messageSessionUid && typeof message.messageSessionUid.length === "number" || $util.isString(message.messageSessionUid))) - return "messageSessionUid: buffer expected"; - if (message.userId != null && message.hasOwnProperty("userId")) - if (!$util.isInteger(message.userId)) - return "userId: integer expected"; - if (message.enterpriseId != null && message.hasOwnProperty("enterpriseId")) - if (!$util.isInteger(message.enterpriseId)) - return "enterpriseId: integer expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.messageSessionUid != null && message.hasOwnProperty('messageSessionUid')) + if ( + !( + (message.messageSessionUid && typeof message.messageSessionUid.length === 'number') || + $util.isString(message.messageSessionUid) + ) + ) + return 'messageSessionUid: buffer expected'; + if (message.userId != null && message.hasOwnProperty('userId')) + if (!$util.isInteger(message.userId)) return 'userId: integer expected'; + if (message.enterpriseId != null && message.hasOwnProperty('enterpriseId')) + if (!$util.isInteger(message.enterpriseId)) return 'enterpriseId: integer expected'; return null; }; @@ -193259,18 +201014,18 @@ export const Push = $root.Push = (() => { * @returns {Push.UserRegistrationRequest} UserRegistrationRequest */ UserRegistrationRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Push.UserRegistrationRequest) - return object; + if (object instanceof $root.Push.UserRegistrationRequest) return object; let message = new $root.Push.UserRegistrationRequest(); if (object.messageSessionUid != null) - if (typeof object.messageSessionUid === "string") - $util.base64.decode(object.messageSessionUid, message.messageSessionUid = $util.newBuffer($util.base64.length(object.messageSessionUid)), 0); - else if (object.messageSessionUid.length >= 0) - message.messageSessionUid = object.messageSessionUid; - if (object.userId != null) - message.userId = object.userId | 0; - if (object.enterpriseId != null) - message.enterpriseId = object.enterpriseId | 0; + if (typeof object.messageSessionUid === 'string') + $util.base64.decode( + object.messageSessionUid, + (message.messageSessionUid = $util.newBuffer($util.base64.length(object.messageSessionUid))), + 0 + ); + else if (object.messageSessionUid.length >= 0) message.messageSessionUid = object.messageSessionUid; + if (object.userId != null) message.userId = object.userId | 0; + if (object.enterpriseId != null) message.enterpriseId = object.enterpriseId | 0; return message; }; @@ -193284,25 +201039,26 @@ export const Push = $root.Push = (() => { * @returns {Object.} Plain object */ UserRegistrationRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.messageSessionUid = ""; + if (options.bytes === String) object.messageSessionUid = ''; else { object.messageSessionUid = []; - if (options.bytes !== Array) - object.messageSessionUid = $util.newBuffer(object.messageSessionUid); + if (options.bytes !== Array) object.messageSessionUid = $util.newBuffer(object.messageSessionUid); } object.userId = 0; object.enterpriseId = 0; } - if (message.messageSessionUid != null && message.hasOwnProperty("messageSessionUid")) - object.messageSessionUid = options.bytes === String ? $util.base64.encode(message.messageSessionUid, 0, message.messageSessionUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.messageSessionUid) : message.messageSessionUid; - if (message.userId != null && message.hasOwnProperty("userId")) - object.userId = message.userId; - if (message.enterpriseId != null && message.hasOwnProperty("enterpriseId")) + if (message.messageSessionUid != null && message.hasOwnProperty('messageSessionUid')) + object.messageSessionUid = + options.bytes === String + ? $util.base64.encode(message.messageSessionUid, 0, message.messageSessionUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.messageSessionUid) + : message.messageSessionUid; + if (message.userId != null && message.hasOwnProperty('userId')) object.userId = message.userId; + if (message.enterpriseId != null && message.hasOwnProperty('enterpriseId')) object.enterpriseId = message.enterpriseId; return object; }; @@ -193328,9 +201084,9 @@ export const Push = $root.Push = (() => { */ UserRegistrationRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Push.UserRegistrationRequest"; + return typeUrlPrefix + '/Push.UserRegistrationRequest'; }; return UserRegistrationRequest; @@ -193351,23 +201107,23 @@ export const Push = $root.Push = (() => { * @property {number} DEVICE=8 DEVICE value * @property {number} TOTP=9 TOTP value */ - Push.MessageType = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "UNKNOWN"] = 0; - values[valuesById[1] = "DNA"] = 1; - values[valuesById[2] = "SSO"] = 2; - values[valuesById[3] = "CHAT"] = 3; - values[valuesById[4] = "USER"] = 4; - values[valuesById[5] = "ENTERPRISE"] = 5; - values[valuesById[6] = "KEEPER"] = 6; - values[valuesById[7] = "SESSION"] = 7; - values[valuesById[8] = "DEVICE"] = 8; - values[valuesById[9] = "TOTP"] = 9; + Push.MessageType = (function () { + const valuesById = {}, + values = Object.create(valuesById); + values[(valuesById[0] = 'UNKNOWN')] = 0; + values[(valuesById[1] = 'DNA')] = 1; + values[(valuesById[2] = 'SSO')] = 2; + values[(valuesById[3] = 'CHAT')] = 3; + values[(valuesById[4] = 'USER')] = 4; + values[(valuesById[5] = 'ENTERPRISE')] = 5; + values[(valuesById[6] = 'KEEPER')] = 6; + values[(valuesById[7] = 'SESSION')] = 7; + values[(valuesById[8] = 'DEVICE')] = 8; + values[(valuesById[9] = 'TOTP')] = 9; return values; })(); - Push.KAToPushServerRequest = (function() { - + Push.KAToPushServerRequest = (function () { /** * Properties of a KAToPushServerRequest. * @memberof Push @@ -193394,8 +201150,7 @@ export const Push = $root.Push = (() => { this.enterpriseId = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -193412,7 +201167,7 @@ export const Push = $root.Push = (() => { * @memberof Push.KAToPushServerRequest * @instance */ - KAToPushServerRequest.prototype.message = ""; + KAToPushServerRequest.prototype.message = ''; /** * KAToPushServerRequest messageSessionUid. @@ -193468,27 +201223,24 @@ export const Push = $root.Push = (() => { * @returns {$protobuf.Writer} Writer */ KAToPushServerRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.messageType != null && Object.hasOwnProperty.call(message, "messageType")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.messageType); - if (message.message != null && Object.hasOwnProperty.call(message, "message")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.message); - if (message.messageSessionUid != null && Object.hasOwnProperty.call(message, "messageSessionUid")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.messageSessionUid); + if (!writer) writer = $Writer.create(); + if (message.messageType != null && Object.hasOwnProperty.call(message, 'messageType')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int32(message.messageType); + if (message.message != null && Object.hasOwnProperty.call(message, 'message')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.message); + if (message.messageSessionUid != null && Object.hasOwnProperty.call(message, 'messageSessionUid')) + writer.uint32(/* id 3, wireType 2 =*/ 26).bytes(message.messageSessionUid); if (message.encryptedDeviceToken != null && message.encryptedDeviceToken.length) for (let i = 0; i < message.encryptedDeviceToken.length; ++i) - writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.encryptedDeviceToken[i]); + writer.uint32(/* id 4, wireType 2 =*/ 34).bytes(message.encryptedDeviceToken[i]); if (message.userId != null && message.userId.length) { - writer.uint32(/* id 5, wireType 2 =*/42).fork(); - for (let i = 0; i < message.userId.length; ++i) - writer.int32(message.userId[i]); + writer.uint32(/* id 5, wireType 2 =*/ 42).fork(); + for (let i = 0; i < message.userId.length; ++i) writer.int32(message.userId[i]); writer.ldelim(); } if (message.enterpriseId != null && message.enterpriseId.length) { - writer.uint32(/* id 6, wireType 2 =*/50).fork(); - for (let i = 0; i < message.enterpriseId.length; ++i) - writer.int32(message.enterpriseId[i]); + writer.uint32(/* id 6, wireType 2 =*/ 50).fork(); + for (let i = 0; i < message.enterpriseId.length; ++i) writer.int32(message.enterpriseId[i]); writer.ldelim(); } return writer; @@ -193519,55 +201271,49 @@ export const Push = $root.Push = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ KAToPushServerRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Push.KAToPushServerRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Push.KAToPushServerRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.messageType = reader.int32(); break; } - case 2: { + case 2: { message.message = reader.string(); break; } - case 3: { + case 3: { message.messageSessionUid = reader.bytes(); break; } - case 4: { + case 4: { if (!(message.encryptedDeviceToken && message.encryptedDeviceToken.length)) message.encryptedDeviceToken = []; message.encryptedDeviceToken.push(reader.bytes()); break; } - case 5: { - if (!(message.userId && message.userId.length)) - message.userId = []; + case 5: { + if (!(message.userId && message.userId.length)) message.userId = []; if ((tag & 7) === 2) { let end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.userId.push(reader.int32()); - } else - message.userId.push(reader.int32()); + while (reader.pos < end2) message.userId.push(reader.int32()); + } else message.userId.push(reader.int32()); break; } - case 6: { - if (!(message.enterpriseId && message.enterpriseId.length)) - message.enterpriseId = []; + case 6: { + if (!(message.enterpriseId && message.enterpriseId.length)) message.enterpriseId = []; if ((tag & 7) === 2) { let end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.enterpriseId.push(reader.int32()); - } else - message.enterpriseId.push(reader.int32()); + while (reader.pos < end2) message.enterpriseId.push(reader.int32()); + } else message.enterpriseId.push(reader.int32()); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -193584,8 +201330,7 @@ export const Push = $root.Push = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ KAToPushServerRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -193598,50 +201343,54 @@ export const Push = $root.Push = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ KAToPushServerRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.messageType != null && message.hasOwnProperty("messageType")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.messageType != null && message.hasOwnProperty('messageType')) switch (message.messageType) { - default: - return "messageType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - break; + default: + return 'messageType: enum value expected'; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + break; } - if (message.message != null && message.hasOwnProperty("message")) - if (!$util.isString(message.message)) - return "message: string expected"; - if (message.messageSessionUid != null && message.hasOwnProperty("messageSessionUid")) - if (!(message.messageSessionUid && typeof message.messageSessionUid.length === "number" || $util.isString(message.messageSessionUid))) - return "messageSessionUid: buffer expected"; - if (message.encryptedDeviceToken != null && message.hasOwnProperty("encryptedDeviceToken")) { - if (!Array.isArray(message.encryptedDeviceToken)) - return "encryptedDeviceToken: array expected"; + if (message.message != null && message.hasOwnProperty('message')) + if (!$util.isString(message.message)) return 'message: string expected'; + if (message.messageSessionUid != null && message.hasOwnProperty('messageSessionUid')) + if ( + !( + (message.messageSessionUid && typeof message.messageSessionUid.length === 'number') || + $util.isString(message.messageSessionUid) + ) + ) + return 'messageSessionUid: buffer expected'; + if (message.encryptedDeviceToken != null && message.hasOwnProperty('encryptedDeviceToken')) { + if (!Array.isArray(message.encryptedDeviceToken)) return 'encryptedDeviceToken: array expected'; for (let i = 0; i < message.encryptedDeviceToken.length; ++i) - if (!(message.encryptedDeviceToken[i] && typeof message.encryptedDeviceToken[i].length === "number" || $util.isString(message.encryptedDeviceToken[i]))) - return "encryptedDeviceToken: buffer[] expected"; - } - if (message.userId != null && message.hasOwnProperty("userId")) { - if (!Array.isArray(message.userId)) - return "userId: array expected"; + if ( + !( + (message.encryptedDeviceToken[i] && + typeof message.encryptedDeviceToken[i].length === 'number') || + $util.isString(message.encryptedDeviceToken[i]) + ) + ) + return 'encryptedDeviceToken: buffer[] expected'; + } + if (message.userId != null && message.hasOwnProperty('userId')) { + if (!Array.isArray(message.userId)) return 'userId: array expected'; for (let i = 0; i < message.userId.length; ++i) - if (!$util.isInteger(message.userId[i])) - return "userId: integer[] expected"; + if (!$util.isInteger(message.userId[i])) return 'userId: integer[] expected'; } - if (message.enterpriseId != null && message.hasOwnProperty("enterpriseId")) { - if (!Array.isArray(message.enterpriseId)) - return "enterpriseId: array expected"; + if (message.enterpriseId != null && message.hasOwnProperty('enterpriseId')) { + if (!Array.isArray(message.enterpriseId)) return 'enterpriseId: array expected'; for (let i = 0; i < message.enterpriseId.length; ++i) - if (!$util.isInteger(message.enterpriseId[i])) - return "enterpriseId: integer[] expected"; + if (!$util.isInteger(message.enterpriseId[i])) return 'enterpriseId: integer[] expected'; } return null; }; @@ -193655,84 +201404,90 @@ export const Push = $root.Push = (() => { * @returns {Push.KAToPushServerRequest} KAToPushServerRequest */ KAToPushServerRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Push.KAToPushServerRequest) - return object; + if (object instanceof $root.Push.KAToPushServerRequest) return object; let message = new $root.Push.KAToPushServerRequest(); switch (object.messageType) { - default: - if (typeof object.messageType === "number") { - message.messageType = object.messageType; - break; - } - break; - case "UNKNOWN": - case 0: - message.messageType = 0; - break; - case "DNA": - case 1: - message.messageType = 1; - break; - case "SSO": - case 2: - message.messageType = 2; - break; - case "CHAT": - case 3: - message.messageType = 3; - break; - case "USER": - case 4: - message.messageType = 4; - break; - case "ENTERPRISE": - case 5: - message.messageType = 5; - break; - case "KEEPER": - case 6: - message.messageType = 6; - break; - case "SESSION": - case 7: - message.messageType = 7; - break; - case "DEVICE": - case 8: - message.messageType = 8; - break; - case "TOTP": - case 9: - message.messageType = 9; - break; + default: + if (typeof object.messageType === 'number') { + message.messageType = object.messageType; + break; + } + break; + case 'UNKNOWN': + case 0: + message.messageType = 0; + break; + case 'DNA': + case 1: + message.messageType = 1; + break; + case 'SSO': + case 2: + message.messageType = 2; + break; + case 'CHAT': + case 3: + message.messageType = 3; + break; + case 'USER': + case 4: + message.messageType = 4; + break; + case 'ENTERPRISE': + case 5: + message.messageType = 5; + break; + case 'KEEPER': + case 6: + message.messageType = 6; + break; + case 'SESSION': + case 7: + message.messageType = 7; + break; + case 'DEVICE': + case 8: + message.messageType = 8; + break; + case 'TOTP': + case 9: + message.messageType = 9; + break; } - if (object.message != null) - message.message = String(object.message); + if (object.message != null) message.message = String(object.message); if (object.messageSessionUid != null) - if (typeof object.messageSessionUid === "string") - $util.base64.decode(object.messageSessionUid, message.messageSessionUid = $util.newBuffer($util.base64.length(object.messageSessionUid)), 0); - else if (object.messageSessionUid.length >= 0) - message.messageSessionUid = object.messageSessionUid; + if (typeof object.messageSessionUid === 'string') + $util.base64.decode( + object.messageSessionUid, + (message.messageSessionUid = $util.newBuffer($util.base64.length(object.messageSessionUid))), + 0 + ); + else if (object.messageSessionUid.length >= 0) message.messageSessionUid = object.messageSessionUid; if (object.encryptedDeviceToken) { if (!Array.isArray(object.encryptedDeviceToken)) - throw TypeError(".Push.KAToPushServerRequest.encryptedDeviceToken: array expected"); + throw TypeError('.Push.KAToPushServerRequest.encryptedDeviceToken: array expected'); message.encryptedDeviceToken = []; for (let i = 0; i < object.encryptedDeviceToken.length; ++i) - if (typeof object.encryptedDeviceToken[i] === "string") - $util.base64.decode(object.encryptedDeviceToken[i], message.encryptedDeviceToken[i] = $util.newBuffer($util.base64.length(object.encryptedDeviceToken[i])), 0); + if (typeof object.encryptedDeviceToken[i] === 'string') + $util.base64.decode( + object.encryptedDeviceToken[i], + (message.encryptedDeviceToken[i] = $util.newBuffer( + $util.base64.length(object.encryptedDeviceToken[i]) + )), + 0 + ); else if (object.encryptedDeviceToken[i].length >= 0) message.encryptedDeviceToken[i] = object.encryptedDeviceToken[i]; } if (object.userId) { if (!Array.isArray(object.userId)) - throw TypeError(".Push.KAToPushServerRequest.userId: array expected"); + throw TypeError('.Push.KAToPushServerRequest.userId: array expected'); message.userId = []; - for (let i = 0; i < object.userId.length; ++i) - message.userId[i] = object.userId[i] | 0; + for (let i = 0; i < object.userId.length; ++i) message.userId[i] = object.userId[i] | 0; } if (object.enterpriseId) { if (!Array.isArray(object.enterpriseId)) - throw TypeError(".Push.KAToPushServerRequest.enterpriseId: array expected"); + throw TypeError('.Push.KAToPushServerRequest.enterpriseId: array expected'); message.enterpriseId = []; for (let i = 0; i < object.enterpriseId.length; ++i) message.enterpriseId[i] = object.enterpriseId[i] | 0; @@ -193750,8 +201505,7 @@ export const Push = $root.Push = (() => { * @returns {Object.} Plain object */ KAToPushServerRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.arrays || options.defaults) { object.encryptedDeviceToken = []; @@ -193759,36 +201513,50 @@ export const Push = $root.Push = (() => { object.enterpriseId = []; } if (options.defaults) { - object.messageType = options.enums === String ? "UNKNOWN" : 0; - object.message = ""; - if (options.bytes === String) - object.messageSessionUid = ""; + object.messageType = options.enums === String ? 'UNKNOWN' : 0; + object.message = ''; + if (options.bytes === String) object.messageSessionUid = ''; else { object.messageSessionUid = []; - if (options.bytes !== Array) - object.messageSessionUid = $util.newBuffer(object.messageSessionUid); - } - } - if (message.messageType != null && message.hasOwnProperty("messageType")) - object.messageType = options.enums === String ? $root.Push.MessageType[message.messageType] === undefined ? message.messageType : $root.Push.MessageType[message.messageType] : message.messageType; - if (message.message != null && message.hasOwnProperty("message")) - object.message = message.message; - if (message.messageSessionUid != null && message.hasOwnProperty("messageSessionUid")) - object.messageSessionUid = options.bytes === String ? $util.base64.encode(message.messageSessionUid, 0, message.messageSessionUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.messageSessionUid) : message.messageSessionUid; + if (options.bytes !== Array) object.messageSessionUid = $util.newBuffer(object.messageSessionUid); + } + } + if (message.messageType != null && message.hasOwnProperty('messageType')) + object.messageType = + options.enums === String + ? $root.Push.MessageType[message.messageType] === undefined + ? message.messageType + : $root.Push.MessageType[message.messageType] + : message.messageType; + if (message.message != null && message.hasOwnProperty('message')) object.message = message.message; + if (message.messageSessionUid != null && message.hasOwnProperty('messageSessionUid')) + object.messageSessionUid = + options.bytes === String + ? $util.base64.encode(message.messageSessionUid, 0, message.messageSessionUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.messageSessionUid) + : message.messageSessionUid; if (message.encryptedDeviceToken && message.encryptedDeviceToken.length) { object.encryptedDeviceToken = []; for (let j = 0; j < message.encryptedDeviceToken.length; ++j) - object.encryptedDeviceToken[j] = options.bytes === String ? $util.base64.encode(message.encryptedDeviceToken[j], 0, message.encryptedDeviceToken[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedDeviceToken[j]) : message.encryptedDeviceToken[j]; + object.encryptedDeviceToken[j] = + options.bytes === String + ? $util.base64.encode( + message.encryptedDeviceToken[j], + 0, + message.encryptedDeviceToken[j].length + ) + : options.bytes === Array + ? Array.prototype.slice.call(message.encryptedDeviceToken[j]) + : message.encryptedDeviceToken[j]; } if (message.userId && message.userId.length) { object.userId = []; - for (let j = 0; j < message.userId.length; ++j) - object.userId[j] = message.userId[j]; + for (let j = 0; j < message.userId.length; ++j) object.userId[j] = message.userId[j]; } if (message.enterpriseId && message.enterpriseId.length) { object.enterpriseId = []; - for (let j = 0; j < message.enterpriseId.length; ++j) - object.enterpriseId[j] = message.enterpriseId[j]; + for (let j = 0; j < message.enterpriseId.length; ++j) object.enterpriseId[j] = message.enterpriseId[j]; } return object; }; @@ -193814,16 +201582,15 @@ export const Push = $root.Push = (() => { */ KAToPushServerRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Push.KAToPushServerRequest"; + return typeUrlPrefix + '/Push.KAToPushServerRequest'; }; return KAToPushServerRequest; })(); - Push.WssConnectionRequest = (function() { - + Push.WssConnectionRequest = (function () { /** * Properties of a WssConnectionRequest. * @memberof Push @@ -193844,8 +201611,7 @@ export const Push = $root.Push = (() => { function WssConnectionRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -193870,7 +201636,7 @@ export const Push = $root.Push = (() => { * @memberof Push.WssConnectionRequest * @instance */ - WssConnectionRequest.prototype.deviceTimeStamp = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + WssConnectionRequest.prototype.deviceTimeStamp = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * Creates a new WssConnectionRequest instance using the specified properties. @@ -193894,14 +201660,13 @@ export const Push = $root.Push = (() => { * @returns {$protobuf.Writer} Writer */ WssConnectionRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.messageSessionUid != null && Object.hasOwnProperty.call(message, "messageSessionUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.messageSessionUid); - if (message.encryptedDeviceToken != null && Object.hasOwnProperty.call(message, "encryptedDeviceToken")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.encryptedDeviceToken); - if (message.deviceTimeStamp != null && Object.hasOwnProperty.call(message, "deviceTimeStamp")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.deviceTimeStamp); + if (!writer) writer = $Writer.create(); + if (message.messageSessionUid != null && Object.hasOwnProperty.call(message, 'messageSessionUid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.messageSessionUid); + if (message.encryptedDeviceToken != null && Object.hasOwnProperty.call(message, 'encryptedDeviceToken')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.encryptedDeviceToken); + if (message.deviceTimeStamp != null && Object.hasOwnProperty.call(message, 'deviceTimeStamp')) + writer.uint32(/* id 3, wireType 0 =*/ 24).int64(message.deviceTimeStamp); return writer; }; @@ -193930,27 +201695,27 @@ export const Push = $root.Push = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ WssConnectionRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Push.WssConnectionRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Push.WssConnectionRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.messageSessionUid = reader.bytes(); break; } - case 2: { + case 2: { message.encryptedDeviceToken = reader.bytes(); break; } - case 3: { + case 3: { message.deviceTimeStamp = reader.int64(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -193967,8 +201732,7 @@ export const Push = $root.Push = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ WssConnectionRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -193981,17 +201745,33 @@ export const Push = $root.Push = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ WssConnectionRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.messageSessionUid != null && message.hasOwnProperty("messageSessionUid")) - if (!(message.messageSessionUid && typeof message.messageSessionUid.length === "number" || $util.isString(message.messageSessionUid))) - return "messageSessionUid: buffer expected"; - if (message.encryptedDeviceToken != null && message.hasOwnProperty("encryptedDeviceToken")) - if (!(message.encryptedDeviceToken && typeof message.encryptedDeviceToken.length === "number" || $util.isString(message.encryptedDeviceToken))) - return "encryptedDeviceToken: buffer expected"; - if (message.deviceTimeStamp != null && message.hasOwnProperty("deviceTimeStamp")) - if (!$util.isInteger(message.deviceTimeStamp) && !(message.deviceTimeStamp && $util.isInteger(message.deviceTimeStamp.low) && $util.isInteger(message.deviceTimeStamp.high))) - return "deviceTimeStamp: integer|Long expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.messageSessionUid != null && message.hasOwnProperty('messageSessionUid')) + if ( + !( + (message.messageSessionUid && typeof message.messageSessionUid.length === 'number') || + $util.isString(message.messageSessionUid) + ) + ) + return 'messageSessionUid: buffer expected'; + if (message.encryptedDeviceToken != null && message.hasOwnProperty('encryptedDeviceToken')) + if ( + !( + (message.encryptedDeviceToken && typeof message.encryptedDeviceToken.length === 'number') || + $util.isString(message.encryptedDeviceToken) + ) + ) + return 'encryptedDeviceToken: buffer expected'; + if (message.deviceTimeStamp != null && message.hasOwnProperty('deviceTimeStamp')) + if ( + !$util.isInteger(message.deviceTimeStamp) && + !( + message.deviceTimeStamp && + $util.isInteger(message.deviceTimeStamp.low) && + $util.isInteger(message.deviceTimeStamp.high) + ) + ) + return 'deviceTimeStamp: integer|Long expected'; return null; }; @@ -194004,28 +201784,38 @@ export const Push = $root.Push = (() => { * @returns {Push.WssConnectionRequest} WssConnectionRequest */ WssConnectionRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Push.WssConnectionRequest) - return object; + if (object instanceof $root.Push.WssConnectionRequest) return object; let message = new $root.Push.WssConnectionRequest(); if (object.messageSessionUid != null) - if (typeof object.messageSessionUid === "string") - $util.base64.decode(object.messageSessionUid, message.messageSessionUid = $util.newBuffer($util.base64.length(object.messageSessionUid)), 0); - else if (object.messageSessionUid.length >= 0) - message.messageSessionUid = object.messageSessionUid; + if (typeof object.messageSessionUid === 'string') + $util.base64.decode( + object.messageSessionUid, + (message.messageSessionUid = $util.newBuffer($util.base64.length(object.messageSessionUid))), + 0 + ); + else if (object.messageSessionUid.length >= 0) message.messageSessionUid = object.messageSessionUid; if (object.encryptedDeviceToken != null) - if (typeof object.encryptedDeviceToken === "string") - $util.base64.decode(object.encryptedDeviceToken, message.encryptedDeviceToken = $util.newBuffer($util.base64.length(object.encryptedDeviceToken)), 0); + if (typeof object.encryptedDeviceToken === 'string') + $util.base64.decode( + object.encryptedDeviceToken, + (message.encryptedDeviceToken = $util.newBuffer( + $util.base64.length(object.encryptedDeviceToken) + )), + 0 + ); else if (object.encryptedDeviceToken.length >= 0) message.encryptedDeviceToken = object.encryptedDeviceToken; if (object.deviceTimeStamp != null) if ($util.Long) (message.deviceTimeStamp = $util.Long.fromValue(object.deviceTimeStamp)).unsigned = false; - else if (typeof object.deviceTimeStamp === "string") + else if (typeof object.deviceTimeStamp === 'string') message.deviceTimeStamp = parseInt(object.deviceTimeStamp, 10); - else if (typeof object.deviceTimeStamp === "number") - message.deviceTimeStamp = object.deviceTimeStamp; - else if (typeof object.deviceTimeStamp === "object") - message.deviceTimeStamp = new $util.LongBits(object.deviceTimeStamp.low >>> 0, object.deviceTimeStamp.high >>> 0).toNumber(); + else if (typeof object.deviceTimeStamp === 'number') message.deviceTimeStamp = object.deviceTimeStamp; + else if (typeof object.deviceTimeStamp === 'object') + message.deviceTimeStamp = new $util.LongBits( + object.deviceTimeStamp.low >>> 0, + object.deviceTimeStamp.high >>> 0 + ).toNumber(); return message; }; @@ -194039,19 +201829,15 @@ export const Push = $root.Push = (() => { * @returns {Object.} Plain object */ WssConnectionRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.messageSessionUid = ""; + if (options.bytes === String) object.messageSessionUid = ''; else { object.messageSessionUid = []; - if (options.bytes !== Array) - object.messageSessionUid = $util.newBuffer(object.messageSessionUid); + if (options.bytes !== Array) object.messageSessionUid = $util.newBuffer(object.messageSessionUid); } - if (options.bytes === String) - object.encryptedDeviceToken = ""; + if (options.bytes === String) object.encryptedDeviceToken = ''; else { object.encryptedDeviceToken = []; if (options.bytes !== Array) @@ -194059,19 +201845,38 @@ export const Push = $root.Push = (() => { } if ($util.Long) { let long = new $util.Long(0, 0, false); - object.deviceTimeStamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.deviceTimeStamp = options.longs === String ? "0" : 0; - } - if (message.messageSessionUid != null && message.hasOwnProperty("messageSessionUid")) - object.messageSessionUid = options.bytes === String ? $util.base64.encode(message.messageSessionUid, 0, message.messageSessionUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.messageSessionUid) : message.messageSessionUid; - if (message.encryptedDeviceToken != null && message.hasOwnProperty("encryptedDeviceToken")) - object.encryptedDeviceToken = options.bytes === String ? $util.base64.encode(message.encryptedDeviceToken, 0, message.encryptedDeviceToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedDeviceToken) : message.encryptedDeviceToken; - if (message.deviceTimeStamp != null && message.hasOwnProperty("deviceTimeStamp")) - if (typeof message.deviceTimeStamp === "number") - object.deviceTimeStamp = options.longs === String ? String(message.deviceTimeStamp) : message.deviceTimeStamp; + object.deviceTimeStamp = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.deviceTimeStamp = options.longs === String ? '0' : 0; + } + if (message.messageSessionUid != null && message.hasOwnProperty('messageSessionUid')) + object.messageSessionUid = + options.bytes === String + ? $util.base64.encode(message.messageSessionUid, 0, message.messageSessionUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.messageSessionUid) + : message.messageSessionUid; + if (message.encryptedDeviceToken != null && message.hasOwnProperty('encryptedDeviceToken')) + object.encryptedDeviceToken = + options.bytes === String + ? $util.base64.encode(message.encryptedDeviceToken, 0, message.encryptedDeviceToken.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.encryptedDeviceToken) + : message.encryptedDeviceToken; + if (message.deviceTimeStamp != null && message.hasOwnProperty('deviceTimeStamp')) + if (typeof message.deviceTimeStamp === 'number') + object.deviceTimeStamp = + options.longs === String ? String(message.deviceTimeStamp) : message.deviceTimeStamp; else - object.deviceTimeStamp = options.longs === String ? $util.Long.prototype.toString.call(message.deviceTimeStamp) : options.longs === Number ? new $util.LongBits(message.deviceTimeStamp.low >>> 0, message.deviceTimeStamp.high >>> 0).toNumber() : message.deviceTimeStamp; + object.deviceTimeStamp = + options.longs === String + ? $util.Long.prototype.toString.call(message.deviceTimeStamp) + : options.longs === Number + ? new $util.LongBits( + message.deviceTimeStamp.low >>> 0, + message.deviceTimeStamp.high >>> 0 + ).toNumber() + : message.deviceTimeStamp; return object; }; @@ -194096,16 +201901,15 @@ export const Push = $root.Push = (() => { */ WssConnectionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Push.WssConnectionRequest"; + return typeUrlPrefix + '/Push.WssConnectionRequest'; }; return WssConnectionRequest; })(); - Push.WssClientResponse = (function() { - + Push.WssClientResponse = (function () { /** * Properties of a WssClientResponse. * @memberof Push @@ -194125,8 +201929,7 @@ export const Push = $root.Push = (() => { function WssClientResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -194143,7 +201946,7 @@ export const Push = $root.Push = (() => { * @memberof Push.WssClientResponse * @instance */ - WssClientResponse.prototype.message = ""; + WssClientResponse.prototype.message = ''; /** * Creates a new WssClientResponse instance using the specified properties. @@ -194167,12 +201970,11 @@ export const Push = $root.Push = (() => { * @returns {$protobuf.Writer} Writer */ WssClientResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.messageType != null && Object.hasOwnProperty.call(message, "messageType")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.messageType); - if (message.message != null && Object.hasOwnProperty.call(message, "message")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.message); + if (!writer) writer = $Writer.create(); + if (message.messageType != null && Object.hasOwnProperty.call(message, 'messageType')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int32(message.messageType); + if (message.message != null && Object.hasOwnProperty.call(message, 'message')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.message); return writer; }; @@ -194201,23 +202003,23 @@ export const Push = $root.Push = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ WssClientResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Push.WssClientResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Push.WssClientResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.messageType = reader.int32(); break; } - case 2: { + case 2: { message.message = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -194234,8 +202036,7 @@ export const Push = $root.Push = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ WssClientResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -194248,27 +202049,25 @@ export const Push = $root.Push = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ WssClientResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.messageType != null && message.hasOwnProperty("messageType")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.messageType != null && message.hasOwnProperty('messageType')) switch (message.messageType) { - default: - return "messageType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - break; + default: + return 'messageType: enum value expected'; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + break; } - if (message.message != null && message.hasOwnProperty("message")) - if (!$util.isString(message.message)) - return "message: string expected"; + if (message.message != null && message.hasOwnProperty('message')) + if (!$util.isString(message.message)) return 'message: string expected'; return null; }; @@ -194281,59 +202080,57 @@ export const Push = $root.Push = (() => { * @returns {Push.WssClientResponse} WssClientResponse */ WssClientResponse.fromObject = function fromObject(object) { - if (object instanceof $root.Push.WssClientResponse) - return object; + if (object instanceof $root.Push.WssClientResponse) return object; let message = new $root.Push.WssClientResponse(); switch (object.messageType) { - default: - if (typeof object.messageType === "number") { - message.messageType = object.messageType; - break; - } - break; - case "UNKNOWN": - case 0: - message.messageType = 0; - break; - case "DNA": - case 1: - message.messageType = 1; - break; - case "SSO": - case 2: - message.messageType = 2; - break; - case "CHAT": - case 3: - message.messageType = 3; - break; - case "USER": - case 4: - message.messageType = 4; - break; - case "ENTERPRISE": - case 5: - message.messageType = 5; - break; - case "KEEPER": - case 6: - message.messageType = 6; - break; - case "SESSION": - case 7: - message.messageType = 7; - break; - case "DEVICE": - case 8: - message.messageType = 8; - break; - case "TOTP": - case 9: - message.messageType = 9; - break; + default: + if (typeof object.messageType === 'number') { + message.messageType = object.messageType; + break; + } + break; + case 'UNKNOWN': + case 0: + message.messageType = 0; + break; + case 'DNA': + case 1: + message.messageType = 1; + break; + case 'SSO': + case 2: + message.messageType = 2; + break; + case 'CHAT': + case 3: + message.messageType = 3; + break; + case 'USER': + case 4: + message.messageType = 4; + break; + case 'ENTERPRISE': + case 5: + message.messageType = 5; + break; + case 'KEEPER': + case 6: + message.messageType = 6; + break; + case 'SESSION': + case 7: + message.messageType = 7; + break; + case 'DEVICE': + case 8: + message.messageType = 8; + break; + case 'TOTP': + case 9: + message.messageType = 9; + break; } - if (object.message != null) - message.message = String(object.message); + if (object.message != null) message.message = String(object.message); return message; }; @@ -194347,17 +202144,20 @@ export const Push = $root.Push = (() => { * @returns {Object.} Plain object */ WssClientResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - object.messageType = options.enums === String ? "UNKNOWN" : 0; - object.message = ""; + object.messageType = options.enums === String ? 'UNKNOWN' : 0; + object.message = ''; } - if (message.messageType != null && message.hasOwnProperty("messageType")) - object.messageType = options.enums === String ? $root.Push.MessageType[message.messageType] === undefined ? message.messageType : $root.Push.MessageType[message.messageType] : message.messageType; - if (message.message != null && message.hasOwnProperty("message")) - object.message = message.message; + if (message.messageType != null && message.hasOwnProperty('messageType')) + object.messageType = + options.enums === String + ? $root.Push.MessageType[message.messageType] === undefined + ? message.messageType + : $root.Push.MessageType[message.messageType] + : message.messageType; + if (message.message != null && message.hasOwnProperty('message')) object.message = message.message; return object; }; @@ -194382,16 +202182,15 @@ export const Push = $root.Push = (() => { */ WssClientResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Push.WssClientResponse"; + return typeUrlPrefix + '/Push.WssClientResponse'; }; return WssClientResponse; })(); - Push.PushServerDeviceRegistrationRequest = (function() { - + Push.PushServerDeviceRegistrationRequest = (function () { /** * Properties of a PushServerDeviceRegistrationRequest. * @memberof Push @@ -194413,8 +202212,7 @@ export const Push = $root.Push = (() => { function PushServerDeviceRegistrationRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -194431,7 +202229,7 @@ export const Push = $root.Push = (() => { * @memberof Push.PushServerDeviceRegistrationRequest * @instance */ - PushServerDeviceRegistrationRequest.prototype.pushToken = ""; + PushServerDeviceRegistrationRequest.prototype.pushToken = ''; /** * PushServerDeviceRegistrationRequest mobilePushPlatform. @@ -194439,7 +202237,7 @@ export const Push = $root.Push = (() => { * @memberof Push.PushServerDeviceRegistrationRequest * @instance */ - PushServerDeviceRegistrationRequest.prototype.mobilePushPlatform = ""; + PushServerDeviceRegistrationRequest.prototype.mobilePushPlatform = ''; /** * PushServerDeviceRegistrationRequest transmissionKey. @@ -194471,16 +202269,15 @@ export const Push = $root.Push = (() => { * @returns {$protobuf.Writer} Writer */ PushServerDeviceRegistrationRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.encryptedDeviceToken != null && Object.hasOwnProperty.call(message, "encryptedDeviceToken")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.encryptedDeviceToken); - if (message.pushToken != null && Object.hasOwnProperty.call(message, "pushToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.pushToken); - if (message.mobilePushPlatform != null && Object.hasOwnProperty.call(message, "mobilePushPlatform")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.mobilePushPlatform); - if (message.transmissionKey != null && Object.hasOwnProperty.call(message, "transmissionKey")) - writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.transmissionKey); + if (!writer) writer = $Writer.create(); + if (message.encryptedDeviceToken != null && Object.hasOwnProperty.call(message, 'encryptedDeviceToken')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.encryptedDeviceToken); + if (message.pushToken != null && Object.hasOwnProperty.call(message, 'pushToken')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.pushToken); + if (message.mobilePushPlatform != null && Object.hasOwnProperty.call(message, 'mobilePushPlatform')) + writer.uint32(/* id 3, wireType 2 =*/ 26).string(message.mobilePushPlatform); + if (message.transmissionKey != null && Object.hasOwnProperty.call(message, 'transmissionKey')) + writer.uint32(/* id 4, wireType 2 =*/ 34).bytes(message.transmissionKey); return writer; }; @@ -194509,31 +202306,31 @@ export const Push = $root.Push = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ PushServerDeviceRegistrationRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Push.PushServerDeviceRegistrationRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Push.PushServerDeviceRegistrationRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.encryptedDeviceToken = reader.bytes(); break; } - case 2: { + case 2: { message.pushToken = reader.string(); break; } - case 3: { + case 3: { message.mobilePushPlatform = reader.string(); break; } - case 4: { + case 4: { message.transmissionKey = reader.bytes(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -194550,8 +202347,7 @@ export const Push = $root.Push = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ PushServerDeviceRegistrationRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -194564,20 +202360,27 @@ export const Push = $root.Push = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ PushServerDeviceRegistrationRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.encryptedDeviceToken != null && message.hasOwnProperty("encryptedDeviceToken")) - if (!(message.encryptedDeviceToken && typeof message.encryptedDeviceToken.length === "number" || $util.isString(message.encryptedDeviceToken))) - return "encryptedDeviceToken: buffer expected"; - if (message.pushToken != null && message.hasOwnProperty("pushToken")) - if (!$util.isString(message.pushToken)) - return "pushToken: string expected"; - if (message.mobilePushPlatform != null && message.hasOwnProperty("mobilePushPlatform")) - if (!$util.isString(message.mobilePushPlatform)) - return "mobilePushPlatform: string expected"; - if (message.transmissionKey != null && message.hasOwnProperty("transmissionKey")) - if (!(message.transmissionKey && typeof message.transmissionKey.length === "number" || $util.isString(message.transmissionKey))) - return "transmissionKey: buffer expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.encryptedDeviceToken != null && message.hasOwnProperty('encryptedDeviceToken')) + if ( + !( + (message.encryptedDeviceToken && typeof message.encryptedDeviceToken.length === 'number') || + $util.isString(message.encryptedDeviceToken) + ) + ) + return 'encryptedDeviceToken: buffer expected'; + if (message.pushToken != null && message.hasOwnProperty('pushToken')) + if (!$util.isString(message.pushToken)) return 'pushToken: string expected'; + if (message.mobilePushPlatform != null && message.hasOwnProperty('mobilePushPlatform')) + if (!$util.isString(message.mobilePushPlatform)) return 'mobilePushPlatform: string expected'; + if (message.transmissionKey != null && message.hasOwnProperty('transmissionKey')) + if ( + !( + (message.transmissionKey && typeof message.transmissionKey.length === 'number') || + $util.isString(message.transmissionKey) + ) + ) + return 'transmissionKey: buffer expected'; return null; }; @@ -194590,23 +202393,29 @@ export const Push = $root.Push = (() => { * @returns {Push.PushServerDeviceRegistrationRequest} PushServerDeviceRegistrationRequest */ PushServerDeviceRegistrationRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Push.PushServerDeviceRegistrationRequest) - return object; + if (object instanceof $root.Push.PushServerDeviceRegistrationRequest) return object; let message = new $root.Push.PushServerDeviceRegistrationRequest(); if (object.encryptedDeviceToken != null) - if (typeof object.encryptedDeviceToken === "string") - $util.base64.decode(object.encryptedDeviceToken, message.encryptedDeviceToken = $util.newBuffer($util.base64.length(object.encryptedDeviceToken)), 0); + if (typeof object.encryptedDeviceToken === 'string') + $util.base64.decode( + object.encryptedDeviceToken, + (message.encryptedDeviceToken = $util.newBuffer( + $util.base64.length(object.encryptedDeviceToken) + )), + 0 + ); else if (object.encryptedDeviceToken.length >= 0) message.encryptedDeviceToken = object.encryptedDeviceToken; - if (object.pushToken != null) - message.pushToken = String(object.pushToken); - if (object.mobilePushPlatform != null) - message.mobilePushPlatform = String(object.mobilePushPlatform); + if (object.pushToken != null) message.pushToken = String(object.pushToken); + if (object.mobilePushPlatform != null) message.mobilePushPlatform = String(object.mobilePushPlatform); if (object.transmissionKey != null) - if (typeof object.transmissionKey === "string") - $util.base64.decode(object.transmissionKey, message.transmissionKey = $util.newBuffer($util.base64.length(object.transmissionKey)), 0); - else if (object.transmissionKey.length >= 0) - message.transmissionKey = object.transmissionKey; + if (typeof object.transmissionKey === 'string') + $util.base64.decode( + object.transmissionKey, + (message.transmissionKey = $util.newBuffer($util.base64.length(object.transmissionKey))), + 0 + ); + else if (object.transmissionKey.length >= 0) message.transmissionKey = object.transmissionKey; return message; }; @@ -194620,35 +202429,40 @@ export const Push = $root.Push = (() => { * @returns {Object.} Plain object */ PushServerDeviceRegistrationRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.encryptedDeviceToken = ""; + if (options.bytes === String) object.encryptedDeviceToken = ''; else { object.encryptedDeviceToken = []; if (options.bytes !== Array) object.encryptedDeviceToken = $util.newBuffer(object.encryptedDeviceToken); } - object.pushToken = ""; - object.mobilePushPlatform = ""; - if (options.bytes === String) - object.transmissionKey = ""; + object.pushToken = ''; + object.mobilePushPlatform = ''; + if (options.bytes === String) object.transmissionKey = ''; else { object.transmissionKey = []; - if (options.bytes !== Array) - object.transmissionKey = $util.newBuffer(object.transmissionKey); - } - } - if (message.encryptedDeviceToken != null && message.hasOwnProperty("encryptedDeviceToken")) - object.encryptedDeviceToken = options.bytes === String ? $util.base64.encode(message.encryptedDeviceToken, 0, message.encryptedDeviceToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedDeviceToken) : message.encryptedDeviceToken; - if (message.pushToken != null && message.hasOwnProperty("pushToken")) - object.pushToken = message.pushToken; - if (message.mobilePushPlatform != null && message.hasOwnProperty("mobilePushPlatform")) + if (options.bytes !== Array) object.transmissionKey = $util.newBuffer(object.transmissionKey); + } + } + if (message.encryptedDeviceToken != null && message.hasOwnProperty('encryptedDeviceToken')) + object.encryptedDeviceToken = + options.bytes === String + ? $util.base64.encode(message.encryptedDeviceToken, 0, message.encryptedDeviceToken.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.encryptedDeviceToken) + : message.encryptedDeviceToken; + if (message.pushToken != null && message.hasOwnProperty('pushToken')) object.pushToken = message.pushToken; + if (message.mobilePushPlatform != null && message.hasOwnProperty('mobilePushPlatform')) object.mobilePushPlatform = message.mobilePushPlatform; - if (message.transmissionKey != null && message.hasOwnProperty("transmissionKey")) - object.transmissionKey = options.bytes === String ? $util.base64.encode(message.transmissionKey, 0, message.transmissionKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.transmissionKey) : message.transmissionKey; + if (message.transmissionKey != null && message.hasOwnProperty('transmissionKey')) + object.transmissionKey = + options.bytes === String + ? $util.base64.encode(message.transmissionKey, 0, message.transmissionKey.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.transmissionKey) + : message.transmissionKey; return object; }; @@ -194673,16 +202487,15 @@ export const Push = $root.Push = (() => { */ PushServerDeviceRegistrationRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Push.PushServerDeviceRegistrationRequest"; + return typeUrlPrefix + '/Push.PushServerDeviceRegistrationRequest'; }; return PushServerDeviceRegistrationRequest; })(); - Push.SnsMessage = (function() { - + Push.SnsMessage = (function () { /** * Properties of a SnsMessage. * @memberof Push @@ -194702,8 +202515,7 @@ export const Push = $root.Push = (() => { function SnsMessage(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -194744,12 +202556,11 @@ export const Push = $root.Push = (() => { * @returns {$protobuf.Writer} Writer */ SnsMessage.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.messageType != null && Object.hasOwnProperty.call(message, "messageType")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.messageType); - if (message.message != null && Object.hasOwnProperty.call(message, "message")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.message); + if (!writer) writer = $Writer.create(); + if (message.messageType != null && Object.hasOwnProperty.call(message, 'messageType')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int32(message.messageType); + if (message.message != null && Object.hasOwnProperty.call(message, 'message')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.message); return writer; }; @@ -194778,23 +202589,23 @@ export const Push = $root.Push = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SnsMessage.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Push.SnsMessage(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Push.SnsMessage(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.messageType = reader.int32(); break; } - case 2: { + case 2: { message.message = reader.bytes(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -194811,8 +202622,7 @@ export const Push = $root.Push = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SnsMessage.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -194825,27 +202635,31 @@ export const Push = $root.Push = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ SnsMessage.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.messageType != null && message.hasOwnProperty("messageType")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.messageType != null && message.hasOwnProperty('messageType')) switch (message.messageType) { - default: - return "messageType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - break; + default: + return 'messageType: enum value expected'; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + break; } - if (message.message != null && message.hasOwnProperty("message")) - if (!(message.message && typeof message.message.length === "number" || $util.isString(message.message))) - return "message: buffer expected"; + if (message.message != null && message.hasOwnProperty('message')) + if ( + !( + (message.message && typeof message.message.length === 'number') || + $util.isString(message.message) + ) + ) + return 'message: buffer expected'; return null; }; @@ -194858,62 +202672,64 @@ export const Push = $root.Push = (() => { * @returns {Push.SnsMessage} SnsMessage */ SnsMessage.fromObject = function fromObject(object) { - if (object instanceof $root.Push.SnsMessage) - return object; + if (object instanceof $root.Push.SnsMessage) return object; let message = new $root.Push.SnsMessage(); switch (object.messageType) { - default: - if (typeof object.messageType === "number") { - message.messageType = object.messageType; - break; - } - break; - case "UNKNOWN": - case 0: - message.messageType = 0; - break; - case "DNA": - case 1: - message.messageType = 1; - break; - case "SSO": - case 2: - message.messageType = 2; - break; - case "CHAT": - case 3: - message.messageType = 3; - break; - case "USER": - case 4: - message.messageType = 4; - break; - case "ENTERPRISE": - case 5: - message.messageType = 5; - break; - case "KEEPER": - case 6: - message.messageType = 6; - break; - case "SESSION": - case 7: - message.messageType = 7; - break; - case "DEVICE": - case 8: - message.messageType = 8; - break; - case "TOTP": - case 9: - message.messageType = 9; - break; + default: + if (typeof object.messageType === 'number') { + message.messageType = object.messageType; + break; + } + break; + case 'UNKNOWN': + case 0: + message.messageType = 0; + break; + case 'DNA': + case 1: + message.messageType = 1; + break; + case 'SSO': + case 2: + message.messageType = 2; + break; + case 'CHAT': + case 3: + message.messageType = 3; + break; + case 'USER': + case 4: + message.messageType = 4; + break; + case 'ENTERPRISE': + case 5: + message.messageType = 5; + break; + case 'KEEPER': + case 6: + message.messageType = 6; + break; + case 'SESSION': + case 7: + message.messageType = 7; + break; + case 'DEVICE': + case 8: + message.messageType = 8; + break; + case 'TOTP': + case 9: + message.messageType = 9; + break; } if (object.message != null) - if (typeof object.message === "string") - $util.base64.decode(object.message, message.message = $util.newBuffer($util.base64.length(object.message)), 0); - else if (object.message.length >= 0) - message.message = object.message; + if (typeof object.message === 'string') + $util.base64.decode( + object.message, + (message.message = $util.newBuffer($util.base64.length(object.message))), + 0 + ); + else if (object.message.length >= 0) message.message = object.message; return message; }; @@ -194927,23 +202743,30 @@ export const Push = $root.Push = (() => { * @returns {Object.} Plain object */ SnsMessage.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - object.messageType = options.enums === String ? "UNKNOWN" : 0; - if (options.bytes === String) - object.message = ""; + object.messageType = options.enums === String ? 'UNKNOWN' : 0; + if (options.bytes === String) object.message = ''; else { object.message = []; - if (options.bytes !== Array) - object.message = $util.newBuffer(object.message); + if (options.bytes !== Array) object.message = $util.newBuffer(object.message); } } - if (message.messageType != null && message.hasOwnProperty("messageType")) - object.messageType = options.enums === String ? $root.Push.MessageType[message.messageType] === undefined ? message.messageType : $root.Push.MessageType[message.messageType] : message.messageType; - if (message.message != null && message.hasOwnProperty("message")) - object.message = options.bytes === String ? $util.base64.encode(message.message, 0, message.message.length) : options.bytes === Array ? Array.prototype.slice.call(message.message) : message.message; + if (message.messageType != null && message.hasOwnProperty('messageType')) + object.messageType = + options.enums === String + ? $root.Push.MessageType[message.messageType] === undefined + ? message.messageType + : $root.Push.MessageType[message.messageType] + : message.messageType; + if (message.message != null && message.hasOwnProperty('message')) + object.message = + options.bytes === String + ? $util.base64.encode(message.message, 0, message.message.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.message) + : message.message; return object; }; @@ -194968,19 +202791,18 @@ export const Push = $root.Push = (() => { */ SnsMessage.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Push.SnsMessage"; + return typeUrlPrefix + '/Push.SnsMessage'; }; return SnsMessage; })(); return Push; -})(); - -export const ServiceLogger = $root.ServiceLogger = (() => { +})()); +export const ServiceLogger = ($root.ServiceLogger = (() => { /** * Namespace ServiceLogger. * @exports ServiceLogger @@ -194988,8 +202810,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { */ const ServiceLogger = {}; - ServiceLogger.IdRange = (function() { - + ServiceLogger.IdRange = (function () { /** * Properties of an IdRange. * @memberof ServiceLogger @@ -195009,8 +202830,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { function IdRange(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -195019,7 +202839,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @memberof ServiceLogger.IdRange * @instance */ - IdRange.prototype.startingId = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + IdRange.prototype.startingId = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; /** * IdRange endingId. @@ -195027,7 +202847,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @memberof ServiceLogger.IdRange * @instance */ - IdRange.prototype.endingId = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + IdRange.prototype.endingId = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; /** * Creates a new IdRange instance using the specified properties. @@ -195051,12 +202871,11 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @returns {$protobuf.Writer} Writer */ IdRange.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.startingId != null && Object.hasOwnProperty.call(message, "startingId")) - writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.startingId); - if (message.endingId != null && Object.hasOwnProperty.call(message, "endingId")) - writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.endingId); + if (!writer) writer = $Writer.create(); + if (message.startingId != null && Object.hasOwnProperty.call(message, 'startingId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).uint64(message.startingId); + if (message.endingId != null && Object.hasOwnProperty.call(message, 'endingId')) + writer.uint32(/* id 2, wireType 0 =*/ 16).uint64(message.endingId); return writer; }; @@ -195085,23 +202904,23 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ IdRange.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ServiceLogger.IdRange(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.ServiceLogger.IdRange(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.startingId = reader.uint64(); break; } - case 2: { + case 2: { message.endingId = reader.uint64(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -195118,8 +202937,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ IdRange.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -195132,14 +202950,27 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ IdRange.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.startingId != null && message.hasOwnProperty("startingId")) - if (!$util.isInteger(message.startingId) && !(message.startingId && $util.isInteger(message.startingId.low) && $util.isInteger(message.startingId.high))) - return "startingId: integer|Long expected"; - if (message.endingId != null && message.hasOwnProperty("endingId")) - if (!$util.isInteger(message.endingId) && !(message.endingId && $util.isInteger(message.endingId.low) && $util.isInteger(message.endingId.high))) - return "endingId: integer|Long expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.startingId != null && message.hasOwnProperty('startingId')) + if ( + !$util.isInteger(message.startingId) && + !( + message.startingId && + $util.isInteger(message.startingId.low) && + $util.isInteger(message.startingId.high) + ) + ) + return 'startingId: integer|Long expected'; + if (message.endingId != null && message.hasOwnProperty('endingId')) + if ( + !$util.isInteger(message.endingId) && + !( + message.endingId && + $util.isInteger(message.endingId.low) && + $util.isInteger(message.endingId.high) + ) + ) + return 'endingId: integer|Long expected'; return null; }; @@ -195152,27 +202983,26 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @returns {ServiceLogger.IdRange} IdRange */ IdRange.fromObject = function fromObject(object) { - if (object instanceof $root.ServiceLogger.IdRange) - return object; + if (object instanceof $root.ServiceLogger.IdRange) return object; let message = new $root.ServiceLogger.IdRange(); if (object.startingId != null) - if ($util.Long) - (message.startingId = $util.Long.fromValue(object.startingId)).unsigned = true; - else if (typeof object.startingId === "string") - message.startingId = parseInt(object.startingId, 10); - else if (typeof object.startingId === "number") - message.startingId = object.startingId; - else if (typeof object.startingId === "object") - message.startingId = new $util.LongBits(object.startingId.low >>> 0, object.startingId.high >>> 0).toNumber(true); + if ($util.Long) (message.startingId = $util.Long.fromValue(object.startingId)).unsigned = true; + else if (typeof object.startingId === 'string') message.startingId = parseInt(object.startingId, 10); + else if (typeof object.startingId === 'number') message.startingId = object.startingId; + else if (typeof object.startingId === 'object') + message.startingId = new $util.LongBits( + object.startingId.low >>> 0, + object.startingId.high >>> 0 + ).toNumber(true); if (object.endingId != null) - if ($util.Long) - (message.endingId = $util.Long.fromValue(object.endingId)).unsigned = true; - else if (typeof object.endingId === "string") - message.endingId = parseInt(object.endingId, 10); - else if (typeof object.endingId === "number") - message.endingId = object.endingId; - else if (typeof object.endingId === "object") - message.endingId = new $util.LongBits(object.endingId.low >>> 0, object.endingId.high >>> 0).toNumber(true); + if ($util.Long) (message.endingId = $util.Long.fromValue(object.endingId)).unsigned = true; + else if (typeof object.endingId === 'string') message.endingId = parseInt(object.endingId, 10); + else if (typeof object.endingId === 'number') message.endingId = object.endingId; + else if (typeof object.endingId === 'object') + message.endingId = new $util.LongBits( + object.endingId.low >>> 0, + object.endingId.high >>> 0 + ).toNumber(true); return message; }; @@ -195186,31 +203016,45 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @returns {Object.} Plain object */ IdRange.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, true); - object.startingId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.startingId = options.longs === String ? "0" : 0; + object.startingId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.startingId = options.longs === String ? '0' : 0; if ($util.Long) { let long = new $util.Long(0, 0, true); - object.endingId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.endingId = options.longs === String ? "0" : 0; + object.endingId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.endingId = options.longs === String ? '0' : 0; } - if (message.startingId != null && message.hasOwnProperty("startingId")) - if (typeof message.startingId === "number") + if (message.startingId != null && message.hasOwnProperty('startingId')) + if (typeof message.startingId === 'number') object.startingId = options.longs === String ? String(message.startingId) : message.startingId; else - object.startingId = options.longs === String ? $util.Long.prototype.toString.call(message.startingId) : options.longs === Number ? new $util.LongBits(message.startingId.low >>> 0, message.startingId.high >>> 0).toNumber(true) : message.startingId; - if (message.endingId != null && message.hasOwnProperty("endingId")) - if (typeof message.endingId === "number") + object.startingId = + options.longs === String + ? $util.Long.prototype.toString.call(message.startingId) + : options.longs === Number + ? new $util.LongBits( + message.startingId.low >>> 0, + message.startingId.high >>> 0 + ).toNumber(true) + : message.startingId; + if (message.endingId != null && message.hasOwnProperty('endingId')) + if (typeof message.endingId === 'number') object.endingId = options.longs === String ? String(message.endingId) : message.endingId; else - object.endingId = options.longs === String ? $util.Long.prototype.toString.call(message.endingId) : options.longs === Number ? new $util.LongBits(message.endingId.low >>> 0, message.endingId.high >>> 0).toNumber(true) : message.endingId; + object.endingId = + options.longs === String + ? $util.Long.prototype.toString.call(message.endingId) + : options.longs === Number + ? new $util.LongBits(message.endingId.low >>> 0, message.endingId.high >>> 0).toNumber( + true + ) + : message.endingId; return object; }; @@ -195235,16 +203079,15 @@ export const ServiceLogger = $root.ServiceLogger = (() => { */ IdRange.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/ServiceLogger.IdRange"; + return typeUrlPrefix + '/ServiceLogger.IdRange'; }; return IdRange; })(); - ServiceLogger.ServiceInfoSpecifier = (function() { - + ServiceLogger.ServiceInfoSpecifier = (function () { /** * Properties of a ServiceInfoSpecifier. * @memberof ServiceLogger @@ -195265,8 +203108,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { function ServiceInfoSpecifier(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -195283,7 +203125,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @memberof ServiceLogger.ServiceInfoSpecifier * @instance */ - ServiceInfoSpecifier.prototype.serviceInfoId = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + ServiceInfoSpecifier.prototype.serviceInfoId = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; /** * ServiceInfoSpecifier name. @@ -195291,7 +203133,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @memberof ServiceLogger.ServiceInfoSpecifier * @instance */ - ServiceInfoSpecifier.prototype.name = ""; + ServiceInfoSpecifier.prototype.name = ''; /** * Creates a new ServiceInfoSpecifier instance using the specified properties. @@ -195315,14 +203157,13 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @returns {$protobuf.Writer} Writer */ ServiceInfoSpecifier.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.all != null && Object.hasOwnProperty.call(message, "all")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.all); - if (message.serviceInfoId != null && Object.hasOwnProperty.call(message, "serviceInfoId")) - writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.serviceInfoId); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.name); + if (!writer) writer = $Writer.create(); + if (message.all != null && Object.hasOwnProperty.call(message, 'all')) + writer.uint32(/* id 1, wireType 0 =*/ 8).bool(message.all); + if (message.serviceInfoId != null && Object.hasOwnProperty.call(message, 'serviceInfoId')) + writer.uint32(/* id 2, wireType 0 =*/ 16).uint64(message.serviceInfoId); + if (message.name != null && Object.hasOwnProperty.call(message, 'name')) + writer.uint32(/* id 3, wireType 2 =*/ 26).string(message.name); return writer; }; @@ -195351,27 +203192,27 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ServiceInfoSpecifier.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ServiceLogger.ServiceInfoSpecifier(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.ServiceLogger.ServiceInfoSpecifier(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.all = reader.bool(); break; } - case 2: { + case 2: { message.serviceInfoId = reader.uint64(); break; } - case 3: { + case 3: { message.name = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -195388,8 +203229,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ServiceInfoSpecifier.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -195402,17 +203242,21 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ ServiceInfoSpecifier.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.all != null && message.hasOwnProperty("all")) - if (typeof message.all !== "boolean") - return "all: boolean expected"; - if (message.serviceInfoId != null && message.hasOwnProperty("serviceInfoId")) - if (!$util.isInteger(message.serviceInfoId) && !(message.serviceInfoId && $util.isInteger(message.serviceInfoId.low) && $util.isInteger(message.serviceInfoId.high))) - return "serviceInfoId: integer|Long expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.all != null && message.hasOwnProperty('all')) + if (typeof message.all !== 'boolean') return 'all: boolean expected'; + if (message.serviceInfoId != null && message.hasOwnProperty('serviceInfoId')) + if ( + !$util.isInteger(message.serviceInfoId) && + !( + message.serviceInfoId && + $util.isInteger(message.serviceInfoId.low) && + $util.isInteger(message.serviceInfoId.high) + ) + ) + return 'serviceInfoId: integer|Long expected'; + if (message.name != null && message.hasOwnProperty('name')) + if (!$util.isString(message.name)) return 'name: string expected'; return null; }; @@ -195425,22 +203269,20 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @returns {ServiceLogger.ServiceInfoSpecifier} ServiceInfoSpecifier */ ServiceInfoSpecifier.fromObject = function fromObject(object) { - if (object instanceof $root.ServiceLogger.ServiceInfoSpecifier) - return object; + if (object instanceof $root.ServiceLogger.ServiceInfoSpecifier) return object; let message = new $root.ServiceLogger.ServiceInfoSpecifier(); - if (object.all != null) - message.all = Boolean(object.all); + if (object.all != null) message.all = Boolean(object.all); if (object.serviceInfoId != null) - if ($util.Long) - (message.serviceInfoId = $util.Long.fromValue(object.serviceInfoId)).unsigned = true; - else if (typeof object.serviceInfoId === "string") + if ($util.Long) (message.serviceInfoId = $util.Long.fromValue(object.serviceInfoId)).unsigned = true; + else if (typeof object.serviceInfoId === 'string') message.serviceInfoId = parseInt(object.serviceInfoId, 10); - else if (typeof object.serviceInfoId === "number") - message.serviceInfoId = object.serviceInfoId; - else if (typeof object.serviceInfoId === "object") - message.serviceInfoId = new $util.LongBits(object.serviceInfoId.low >>> 0, object.serviceInfoId.high >>> 0).toNumber(true); - if (object.name != null) - message.name = String(object.name); + else if (typeof object.serviceInfoId === 'number') message.serviceInfoId = object.serviceInfoId; + else if (typeof object.serviceInfoId === 'object') + message.serviceInfoId = new $util.LongBits( + object.serviceInfoId.low >>> 0, + object.serviceInfoId.high >>> 0 + ).toNumber(true); + if (object.name != null) message.name = String(object.name); return message; }; @@ -195454,27 +203296,33 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @returns {Object.} Plain object */ ServiceInfoSpecifier.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { object.all = false; if ($util.Long) { let long = new $util.Long(0, 0, true); - object.serviceInfoId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.serviceInfoId = options.longs === String ? "0" : 0; - object.name = ""; - } - if (message.all != null && message.hasOwnProperty("all")) - object.all = message.all; - if (message.serviceInfoId != null && message.hasOwnProperty("serviceInfoId")) - if (typeof message.serviceInfoId === "number") - object.serviceInfoId = options.longs === String ? String(message.serviceInfoId) : message.serviceInfoId; + object.serviceInfoId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.serviceInfoId = options.longs === String ? '0' : 0; + object.name = ''; + } + if (message.all != null && message.hasOwnProperty('all')) object.all = message.all; + if (message.serviceInfoId != null && message.hasOwnProperty('serviceInfoId')) + if (typeof message.serviceInfoId === 'number') + object.serviceInfoId = + options.longs === String ? String(message.serviceInfoId) : message.serviceInfoId; else - object.serviceInfoId = options.longs === String ? $util.Long.prototype.toString.call(message.serviceInfoId) : options.longs === Number ? new $util.LongBits(message.serviceInfoId.low >>> 0, message.serviceInfoId.high >>> 0).toNumber(true) : message.serviceInfoId; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + object.serviceInfoId = + options.longs === String + ? $util.Long.prototype.toString.call(message.serviceInfoId) + : options.longs === Number + ? new $util.LongBits( + message.serviceInfoId.low >>> 0, + message.serviceInfoId.high >>> 0 + ).toNumber(true) + : message.serviceInfoId; + if (message.name != null && message.hasOwnProperty('name')) object.name = message.name; return object; }; @@ -195499,16 +203347,15 @@ export const ServiceLogger = $root.ServiceLogger = (() => { */ ServiceInfoSpecifier.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/ServiceLogger.ServiceInfoSpecifier"; + return typeUrlPrefix + '/ServiceLogger.ServiceInfoSpecifier'; }; return ServiceInfoSpecifier; })(); - ServiceLogger.ServiceInfoRequest = (function() { - + ServiceLogger.ServiceInfoRequest = (function () { /** * Properties of a ServiceInfoRequest. * @memberof ServiceLogger @@ -195528,8 +203375,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { this.serviceInfoSpecifier = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -195562,11 +203408,13 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @returns {$protobuf.Writer} Writer */ ServiceInfoRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.serviceInfoSpecifier != null && message.serviceInfoSpecifier.length) for (let i = 0; i < message.serviceInfoSpecifier.length; ++i) - $root.ServiceLogger.ServiceInfoSpecifier.encode(message.serviceInfoSpecifier[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.ServiceLogger.ServiceInfoSpecifier.encode( + message.serviceInfoSpecifier[i], + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); return writer; }; @@ -195595,21 +203443,23 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ServiceInfoRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ServiceLogger.ServiceInfoRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.ServiceLogger.ServiceInfoRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { if (!(message.serviceInfoSpecifier && message.serviceInfoSpecifier.length)) message.serviceInfoSpecifier = []; - message.serviceInfoSpecifier.push($root.ServiceLogger.ServiceInfoSpecifier.decode(reader, reader.uint32())); + message.serviceInfoSpecifier.push( + $root.ServiceLogger.ServiceInfoSpecifier.decode(reader, reader.uint32()) + ); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -195626,8 +203476,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ServiceInfoRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -195640,15 +203489,12 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ ServiceInfoRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.serviceInfoSpecifier != null && message.hasOwnProperty("serviceInfoSpecifier")) { - if (!Array.isArray(message.serviceInfoSpecifier)) - return "serviceInfoSpecifier: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.serviceInfoSpecifier != null && message.hasOwnProperty('serviceInfoSpecifier')) { + if (!Array.isArray(message.serviceInfoSpecifier)) return 'serviceInfoSpecifier: array expected'; for (let i = 0; i < message.serviceInfoSpecifier.length; ++i) { let error = $root.ServiceLogger.ServiceInfoSpecifier.verify(message.serviceInfoSpecifier[i]); - if (error) - return "serviceInfoSpecifier." + error; + if (error) return 'serviceInfoSpecifier.' + error; } } return null; @@ -195663,17 +203509,18 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @returns {ServiceLogger.ServiceInfoRequest} ServiceInfoRequest */ ServiceInfoRequest.fromObject = function fromObject(object) { - if (object instanceof $root.ServiceLogger.ServiceInfoRequest) - return object; + if (object instanceof $root.ServiceLogger.ServiceInfoRequest) return object; let message = new $root.ServiceLogger.ServiceInfoRequest(); if (object.serviceInfoSpecifier) { if (!Array.isArray(object.serviceInfoSpecifier)) - throw TypeError(".ServiceLogger.ServiceInfoRequest.serviceInfoSpecifier: array expected"); + throw TypeError('.ServiceLogger.ServiceInfoRequest.serviceInfoSpecifier: array expected'); message.serviceInfoSpecifier = []; for (let i = 0; i < object.serviceInfoSpecifier.length; ++i) { - if (typeof object.serviceInfoSpecifier[i] !== "object") - throw TypeError(".ServiceLogger.ServiceInfoRequest.serviceInfoSpecifier: object expected"); - message.serviceInfoSpecifier[i] = $root.ServiceLogger.ServiceInfoSpecifier.fromObject(object.serviceInfoSpecifier[i]); + if (typeof object.serviceInfoSpecifier[i] !== 'object') + throw TypeError('.ServiceLogger.ServiceInfoRequest.serviceInfoSpecifier: object expected'); + message.serviceInfoSpecifier[i] = $root.ServiceLogger.ServiceInfoSpecifier.fromObject( + object.serviceInfoSpecifier[i] + ); } } return message; @@ -195689,15 +203536,16 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @returns {Object.} Plain object */ ServiceInfoRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.serviceInfoSpecifier = []; + if (options.arrays || options.defaults) object.serviceInfoSpecifier = []; if (message.serviceInfoSpecifier && message.serviceInfoSpecifier.length) { object.serviceInfoSpecifier = []; for (let j = 0; j < message.serviceInfoSpecifier.length; ++j) - object.serviceInfoSpecifier[j] = $root.ServiceLogger.ServiceInfoSpecifier.toObject(message.serviceInfoSpecifier[j], options); + object.serviceInfoSpecifier[j] = $root.ServiceLogger.ServiceInfoSpecifier.toObject( + message.serviceInfoSpecifier[j], + options + ); } return object; }; @@ -195723,16 +203571,15 @@ export const ServiceLogger = $root.ServiceLogger = (() => { */ ServiceInfoRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/ServiceLogger.ServiceInfoRequest"; + return typeUrlPrefix + '/ServiceLogger.ServiceInfoRequest'; }; return ServiceInfoRequest; })(); - ServiceLogger.ServiceInfoRecord = (function() { - + ServiceLogger.ServiceInfoRecord = (function () { /** * Properties of a ServiceInfoRecord. * @memberof ServiceLogger @@ -195755,8 +203602,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { function ServiceInfoRecord(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -195765,7 +203611,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @memberof ServiceLogger.ServiceInfoRecord * @instance */ - ServiceInfoRecord.prototype.serviceInfoId = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + ServiceInfoRecord.prototype.serviceInfoId = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; /** * ServiceInfoRecord name. @@ -195773,7 +203619,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @memberof ServiceLogger.ServiceInfoRecord * @instance */ - ServiceInfoRecord.prototype.name = ""; + ServiceInfoRecord.prototype.name = ''; /** * ServiceInfoRecord deleteAfter. @@ -195789,7 +203635,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @memberof ServiceLogger.ServiceInfoRecord * @instance */ - ServiceInfoRecord.prototype.deleteAfterTimeUnits = ""; + ServiceInfoRecord.prototype.deleteAfterTimeUnits = ''; /** * ServiceInfoRecord isShortTermLogging. @@ -195821,18 +203667,17 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @returns {$protobuf.Writer} Writer */ ServiceInfoRecord.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.serviceInfoId != null && Object.hasOwnProperty.call(message, "serviceInfoId")) - writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.serviceInfoId); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.name); - if (message.deleteAfter != null && Object.hasOwnProperty.call(message, "deleteAfter")) - writer.uint32(/* id 3, wireType 0 =*/24).uint32(message.deleteAfter); - if (message.deleteAfterTimeUnits != null && Object.hasOwnProperty.call(message, "deleteAfterTimeUnits")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.deleteAfterTimeUnits); - if (message.isShortTermLogging != null && Object.hasOwnProperty.call(message, "isShortTermLogging")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.isShortTermLogging); + if (!writer) writer = $Writer.create(); + if (message.serviceInfoId != null && Object.hasOwnProperty.call(message, 'serviceInfoId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).uint64(message.serviceInfoId); + if (message.name != null && Object.hasOwnProperty.call(message, 'name')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.name); + if (message.deleteAfter != null && Object.hasOwnProperty.call(message, 'deleteAfter')) + writer.uint32(/* id 3, wireType 0 =*/ 24).uint32(message.deleteAfter); + if (message.deleteAfterTimeUnits != null && Object.hasOwnProperty.call(message, 'deleteAfterTimeUnits')) + writer.uint32(/* id 4, wireType 2 =*/ 34).string(message.deleteAfterTimeUnits); + if (message.isShortTermLogging != null && Object.hasOwnProperty.call(message, 'isShortTermLogging')) + writer.uint32(/* id 5, wireType 0 =*/ 40).bool(message.isShortTermLogging); return writer; }; @@ -195861,35 +203706,35 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ServiceInfoRecord.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ServiceLogger.ServiceInfoRecord(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.ServiceLogger.ServiceInfoRecord(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.serviceInfoId = reader.uint64(); break; } - case 2: { + case 2: { message.name = reader.string(); break; } - case 3: { + case 3: { message.deleteAfter = reader.uint32(); break; } - case 4: { + case 4: { message.deleteAfterTimeUnits = reader.string(); break; } - case 5: { + case 5: { message.isShortTermLogging = reader.bool(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -195906,8 +203751,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ServiceInfoRecord.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -195920,23 +203764,25 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ ServiceInfoRecord.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.serviceInfoId != null && message.hasOwnProperty("serviceInfoId")) - if (!$util.isInteger(message.serviceInfoId) && !(message.serviceInfoId && $util.isInteger(message.serviceInfoId.low) && $util.isInteger(message.serviceInfoId.high))) - return "serviceInfoId: integer|Long expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.deleteAfter != null && message.hasOwnProperty("deleteAfter")) - if (!$util.isInteger(message.deleteAfter)) - return "deleteAfter: integer expected"; - if (message.deleteAfterTimeUnits != null && message.hasOwnProperty("deleteAfterTimeUnits")) - if (!$util.isString(message.deleteAfterTimeUnits)) - return "deleteAfterTimeUnits: string expected"; - if (message.isShortTermLogging != null && message.hasOwnProperty("isShortTermLogging")) - if (typeof message.isShortTermLogging !== "boolean") - return "isShortTermLogging: boolean expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.serviceInfoId != null && message.hasOwnProperty('serviceInfoId')) + if ( + !$util.isInteger(message.serviceInfoId) && + !( + message.serviceInfoId && + $util.isInteger(message.serviceInfoId.low) && + $util.isInteger(message.serviceInfoId.high) + ) + ) + return 'serviceInfoId: integer|Long expected'; + if (message.name != null && message.hasOwnProperty('name')) + if (!$util.isString(message.name)) return 'name: string expected'; + if (message.deleteAfter != null && message.hasOwnProperty('deleteAfter')) + if (!$util.isInteger(message.deleteAfter)) return 'deleteAfter: integer expected'; + if (message.deleteAfterTimeUnits != null && message.hasOwnProperty('deleteAfterTimeUnits')) + if (!$util.isString(message.deleteAfterTimeUnits)) return 'deleteAfterTimeUnits: string expected'; + if (message.isShortTermLogging != null && message.hasOwnProperty('isShortTermLogging')) + if (typeof message.isShortTermLogging !== 'boolean') return 'isShortTermLogging: boolean expected'; return null; }; @@ -195949,26 +203795,22 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @returns {ServiceLogger.ServiceInfoRecord} ServiceInfoRecord */ ServiceInfoRecord.fromObject = function fromObject(object) { - if (object instanceof $root.ServiceLogger.ServiceInfoRecord) - return object; + if (object instanceof $root.ServiceLogger.ServiceInfoRecord) return object; let message = new $root.ServiceLogger.ServiceInfoRecord(); if (object.serviceInfoId != null) - if ($util.Long) - (message.serviceInfoId = $util.Long.fromValue(object.serviceInfoId)).unsigned = true; - else if (typeof object.serviceInfoId === "string") + if ($util.Long) (message.serviceInfoId = $util.Long.fromValue(object.serviceInfoId)).unsigned = true; + else if (typeof object.serviceInfoId === 'string') message.serviceInfoId = parseInt(object.serviceInfoId, 10); - else if (typeof object.serviceInfoId === "number") - message.serviceInfoId = object.serviceInfoId; - else if (typeof object.serviceInfoId === "object") - message.serviceInfoId = new $util.LongBits(object.serviceInfoId.low >>> 0, object.serviceInfoId.high >>> 0).toNumber(true); - if (object.name != null) - message.name = String(object.name); - if (object.deleteAfter != null) - message.deleteAfter = object.deleteAfter >>> 0; - if (object.deleteAfterTimeUnits != null) - message.deleteAfterTimeUnits = String(object.deleteAfterTimeUnits); - if (object.isShortTermLogging != null) - message.isShortTermLogging = Boolean(object.isShortTermLogging); + else if (typeof object.serviceInfoId === 'number') message.serviceInfoId = object.serviceInfoId; + else if (typeof object.serviceInfoId === 'object') + message.serviceInfoId = new $util.LongBits( + object.serviceInfoId.low >>> 0, + object.serviceInfoId.high >>> 0 + ).toNumber(true); + if (object.name != null) message.name = String(object.name); + if (object.deleteAfter != null) message.deleteAfter = object.deleteAfter >>> 0; + if (object.deleteAfterTimeUnits != null) message.deleteAfterTimeUnits = String(object.deleteAfterTimeUnits); + if (object.isShortTermLogging != null) message.isShortTermLogging = Boolean(object.isShortTermLogging); return message; }; @@ -195982,32 +203824,39 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @returns {Object.} Plain object */ ServiceInfoRecord.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, true); - object.serviceInfoId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.serviceInfoId = options.longs === String ? "0" : 0; - object.name = ""; + object.serviceInfoId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.serviceInfoId = options.longs === String ? '0' : 0; + object.name = ''; object.deleteAfter = 0; - object.deleteAfterTimeUnits = ""; + object.deleteAfterTimeUnits = ''; object.isShortTermLogging = false; } - if (message.serviceInfoId != null && message.hasOwnProperty("serviceInfoId")) - if (typeof message.serviceInfoId === "number") - object.serviceInfoId = options.longs === String ? String(message.serviceInfoId) : message.serviceInfoId; + if (message.serviceInfoId != null && message.hasOwnProperty('serviceInfoId')) + if (typeof message.serviceInfoId === 'number') + object.serviceInfoId = + options.longs === String ? String(message.serviceInfoId) : message.serviceInfoId; else - object.serviceInfoId = options.longs === String ? $util.Long.prototype.toString.call(message.serviceInfoId) : options.longs === Number ? new $util.LongBits(message.serviceInfoId.low >>> 0, message.serviceInfoId.high >>> 0).toNumber(true) : message.serviceInfoId; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.deleteAfter != null && message.hasOwnProperty("deleteAfter")) + object.serviceInfoId = + options.longs === String + ? $util.Long.prototype.toString.call(message.serviceInfoId) + : options.longs === Number + ? new $util.LongBits( + message.serviceInfoId.low >>> 0, + message.serviceInfoId.high >>> 0 + ).toNumber(true) + : message.serviceInfoId; + if (message.name != null && message.hasOwnProperty('name')) object.name = message.name; + if (message.deleteAfter != null && message.hasOwnProperty('deleteAfter')) object.deleteAfter = message.deleteAfter; - if (message.deleteAfterTimeUnits != null && message.hasOwnProperty("deleteAfterTimeUnits")) + if (message.deleteAfterTimeUnits != null && message.hasOwnProperty('deleteAfterTimeUnits')) object.deleteAfterTimeUnits = message.deleteAfterTimeUnits; - if (message.isShortTermLogging != null && message.hasOwnProperty("isShortTermLogging")) + if (message.isShortTermLogging != null && message.hasOwnProperty('isShortTermLogging')) object.isShortTermLogging = message.isShortTermLogging; return object; }; @@ -196033,16 +203882,15 @@ export const ServiceLogger = $root.ServiceLogger = (() => { */ ServiceInfoRecord.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/ServiceLogger.ServiceInfoRecord"; + return typeUrlPrefix + '/ServiceLogger.ServiceInfoRecord'; }; return ServiceInfoRecord; })(); - ServiceLogger.ServiceInfoResponse = (function() { - + ServiceLogger.ServiceInfoResponse = (function () { /** * Properties of a ServiceInfoResponse. * @memberof ServiceLogger @@ -196062,8 +203910,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { this.serviceInfoRecord = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -196096,11 +203943,13 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @returns {$protobuf.Writer} Writer */ ServiceInfoResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.serviceInfoRecord != null && message.serviceInfoRecord.length) for (let i = 0; i < message.serviceInfoRecord.length; ++i) - $root.ServiceLogger.ServiceInfoRecord.encode(message.serviceInfoRecord[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.ServiceLogger.ServiceInfoRecord.encode( + message.serviceInfoRecord[i], + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); return writer; }; @@ -196129,21 +203978,23 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ServiceInfoResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ServiceLogger.ServiceInfoResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.ServiceLogger.ServiceInfoResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { if (!(message.serviceInfoRecord && message.serviceInfoRecord.length)) message.serviceInfoRecord = []; - message.serviceInfoRecord.push($root.ServiceLogger.ServiceInfoRecord.decode(reader, reader.uint32())); + message.serviceInfoRecord.push( + $root.ServiceLogger.ServiceInfoRecord.decode(reader, reader.uint32()) + ); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -196160,8 +204011,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ServiceInfoResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -196174,15 +204024,12 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ ServiceInfoResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.serviceInfoRecord != null && message.hasOwnProperty("serviceInfoRecord")) { - if (!Array.isArray(message.serviceInfoRecord)) - return "serviceInfoRecord: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.serviceInfoRecord != null && message.hasOwnProperty('serviceInfoRecord')) { + if (!Array.isArray(message.serviceInfoRecord)) return 'serviceInfoRecord: array expected'; for (let i = 0; i < message.serviceInfoRecord.length; ++i) { let error = $root.ServiceLogger.ServiceInfoRecord.verify(message.serviceInfoRecord[i]); - if (error) - return "serviceInfoRecord." + error; + if (error) return 'serviceInfoRecord.' + error; } } return null; @@ -196197,17 +204044,18 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @returns {ServiceLogger.ServiceInfoResponse} ServiceInfoResponse */ ServiceInfoResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ServiceLogger.ServiceInfoResponse) - return object; + if (object instanceof $root.ServiceLogger.ServiceInfoResponse) return object; let message = new $root.ServiceLogger.ServiceInfoResponse(); if (object.serviceInfoRecord) { if (!Array.isArray(object.serviceInfoRecord)) - throw TypeError(".ServiceLogger.ServiceInfoResponse.serviceInfoRecord: array expected"); + throw TypeError('.ServiceLogger.ServiceInfoResponse.serviceInfoRecord: array expected'); message.serviceInfoRecord = []; for (let i = 0; i < object.serviceInfoRecord.length; ++i) { - if (typeof object.serviceInfoRecord[i] !== "object") - throw TypeError(".ServiceLogger.ServiceInfoResponse.serviceInfoRecord: object expected"); - message.serviceInfoRecord[i] = $root.ServiceLogger.ServiceInfoRecord.fromObject(object.serviceInfoRecord[i]); + if (typeof object.serviceInfoRecord[i] !== 'object') + throw TypeError('.ServiceLogger.ServiceInfoResponse.serviceInfoRecord: object expected'); + message.serviceInfoRecord[i] = $root.ServiceLogger.ServiceInfoRecord.fromObject( + object.serviceInfoRecord[i] + ); } } return message; @@ -196223,15 +204071,16 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @returns {Object.} Plain object */ ServiceInfoResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.serviceInfoRecord = []; + if (options.arrays || options.defaults) object.serviceInfoRecord = []; if (message.serviceInfoRecord && message.serviceInfoRecord.length) { object.serviceInfoRecord = []; for (let j = 0; j < message.serviceInfoRecord.length; ++j) - object.serviceInfoRecord[j] = $root.ServiceLogger.ServiceInfoRecord.toObject(message.serviceInfoRecord[j], options); + object.serviceInfoRecord[j] = $root.ServiceLogger.ServiceInfoRecord.toObject( + message.serviceInfoRecord[j], + options + ); } return object; }; @@ -196257,16 +204106,15 @@ export const ServiceLogger = $root.ServiceLogger = (() => { */ ServiceInfoResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/ServiceLogger.ServiceInfoResponse"; + return typeUrlPrefix + '/ServiceLogger.ServiceInfoResponse'; }; return ServiceInfoResponse; })(); - ServiceLogger.ServiceInfoUpdateRequest = (function() { - + ServiceLogger.ServiceInfoUpdateRequest = (function () { /** * Properties of a ServiceInfoUpdateRequest. * @memberof ServiceLogger @@ -196286,8 +204134,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { this.serviceInfoRecord = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -196320,11 +204167,13 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @returns {$protobuf.Writer} Writer */ ServiceInfoUpdateRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.serviceInfoRecord != null && message.serviceInfoRecord.length) for (let i = 0; i < message.serviceInfoRecord.length; ++i) - $root.ServiceLogger.ServiceInfoRecord.encode(message.serviceInfoRecord[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.ServiceLogger.ServiceInfoRecord.encode( + message.serviceInfoRecord[i], + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); return writer; }; @@ -196353,21 +204202,23 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ServiceInfoUpdateRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ServiceLogger.ServiceInfoUpdateRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.ServiceLogger.ServiceInfoUpdateRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { if (!(message.serviceInfoRecord && message.serviceInfoRecord.length)) message.serviceInfoRecord = []; - message.serviceInfoRecord.push($root.ServiceLogger.ServiceInfoRecord.decode(reader, reader.uint32())); + message.serviceInfoRecord.push( + $root.ServiceLogger.ServiceInfoRecord.decode(reader, reader.uint32()) + ); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -196384,8 +204235,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ServiceInfoUpdateRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -196398,15 +204248,12 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ ServiceInfoUpdateRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.serviceInfoRecord != null && message.hasOwnProperty("serviceInfoRecord")) { - if (!Array.isArray(message.serviceInfoRecord)) - return "serviceInfoRecord: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.serviceInfoRecord != null && message.hasOwnProperty('serviceInfoRecord')) { + if (!Array.isArray(message.serviceInfoRecord)) return 'serviceInfoRecord: array expected'; for (let i = 0; i < message.serviceInfoRecord.length; ++i) { let error = $root.ServiceLogger.ServiceInfoRecord.verify(message.serviceInfoRecord[i]); - if (error) - return "serviceInfoRecord." + error; + if (error) return 'serviceInfoRecord.' + error; } } return null; @@ -196421,17 +204268,18 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @returns {ServiceLogger.ServiceInfoUpdateRequest} ServiceInfoUpdateRequest */ ServiceInfoUpdateRequest.fromObject = function fromObject(object) { - if (object instanceof $root.ServiceLogger.ServiceInfoUpdateRequest) - return object; + if (object instanceof $root.ServiceLogger.ServiceInfoUpdateRequest) return object; let message = new $root.ServiceLogger.ServiceInfoUpdateRequest(); if (object.serviceInfoRecord) { if (!Array.isArray(object.serviceInfoRecord)) - throw TypeError(".ServiceLogger.ServiceInfoUpdateRequest.serviceInfoRecord: array expected"); + throw TypeError('.ServiceLogger.ServiceInfoUpdateRequest.serviceInfoRecord: array expected'); message.serviceInfoRecord = []; for (let i = 0; i < object.serviceInfoRecord.length; ++i) { - if (typeof object.serviceInfoRecord[i] !== "object") - throw TypeError(".ServiceLogger.ServiceInfoUpdateRequest.serviceInfoRecord: object expected"); - message.serviceInfoRecord[i] = $root.ServiceLogger.ServiceInfoRecord.fromObject(object.serviceInfoRecord[i]); + if (typeof object.serviceInfoRecord[i] !== 'object') + throw TypeError('.ServiceLogger.ServiceInfoUpdateRequest.serviceInfoRecord: object expected'); + message.serviceInfoRecord[i] = $root.ServiceLogger.ServiceInfoRecord.fromObject( + object.serviceInfoRecord[i] + ); } } return message; @@ -196447,15 +204295,16 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @returns {Object.} Plain object */ ServiceInfoUpdateRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.serviceInfoRecord = []; + if (options.arrays || options.defaults) object.serviceInfoRecord = []; if (message.serviceInfoRecord && message.serviceInfoRecord.length) { object.serviceInfoRecord = []; for (let j = 0; j < message.serviceInfoRecord.length; ++j) - object.serviceInfoRecord[j] = $root.ServiceLogger.ServiceInfoRecord.toObject(message.serviceInfoRecord[j], options); + object.serviceInfoRecord[j] = $root.ServiceLogger.ServiceInfoRecord.toObject( + message.serviceInfoRecord[j], + options + ); } return object; }; @@ -196481,16 +204330,15 @@ export const ServiceLogger = $root.ServiceLogger = (() => { */ ServiceInfoUpdateRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/ServiceLogger.ServiceInfoUpdateRequest"; + return typeUrlPrefix + '/ServiceLogger.ServiceInfoUpdateRequest'; }; return ServiceInfoUpdateRequest; })(); - ServiceLogger.ServiceRuleSpecifier = (function() { - + ServiceLogger.ServiceRuleSpecifier = (function () { /** * Properties of a ServiceRuleSpecifier. * @memberof ServiceLogger @@ -196513,8 +204361,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { this.resourceIdRange = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -196531,7 +204378,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @memberof ServiceLogger.ServiceRuleSpecifier * @instance */ - ServiceRuleSpecifier.prototype.serviceRuleId = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + ServiceRuleSpecifier.prototype.serviceRuleId = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; /** * ServiceRuleSpecifier serviceInfoId. @@ -196539,7 +204386,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @memberof ServiceLogger.ServiceRuleSpecifier * @instance */ - ServiceRuleSpecifier.prototype.serviceInfoId = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + ServiceRuleSpecifier.prototype.serviceInfoId = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; /** * ServiceRuleSpecifier resourceIdRange. @@ -196571,17 +204418,19 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @returns {$protobuf.Writer} Writer */ ServiceRuleSpecifier.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.all != null && Object.hasOwnProperty.call(message, "all")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.all); - if (message.serviceRuleId != null && Object.hasOwnProperty.call(message, "serviceRuleId")) - writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.serviceRuleId); - if (message.serviceInfoId != null && Object.hasOwnProperty.call(message, "serviceInfoId")) - writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.serviceInfoId); + if (!writer) writer = $Writer.create(); + if (message.all != null && Object.hasOwnProperty.call(message, 'all')) + writer.uint32(/* id 1, wireType 0 =*/ 8).bool(message.all); + if (message.serviceRuleId != null && Object.hasOwnProperty.call(message, 'serviceRuleId')) + writer.uint32(/* id 2, wireType 0 =*/ 16).uint64(message.serviceRuleId); + if (message.serviceInfoId != null && Object.hasOwnProperty.call(message, 'serviceInfoId')) + writer.uint32(/* id 3, wireType 0 =*/ 24).uint64(message.serviceInfoId); if (message.resourceIdRange != null && message.resourceIdRange.length) for (let i = 0; i < message.resourceIdRange.length; ++i) - $root.ServiceLogger.IdRange.encode(message.resourceIdRange[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + $root.ServiceLogger.IdRange.encode( + message.resourceIdRange[i], + writer.uint32(/* id 4, wireType 2 =*/ 34).fork() + ).ldelim(); return writer; }; @@ -196610,33 +204459,32 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ServiceRuleSpecifier.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ServiceLogger.ServiceRuleSpecifier(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.ServiceLogger.ServiceRuleSpecifier(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.all = reader.bool(); break; } - case 2: { + case 2: { message.serviceRuleId = reader.uint64(); break; } - case 3: { + case 3: { message.serviceInfoId = reader.uint64(); break; } - case 4: { - if (!(message.resourceIdRange && message.resourceIdRange.length)) - message.resourceIdRange = []; + case 4: { + if (!(message.resourceIdRange && message.resourceIdRange.length)) message.resourceIdRange = []; message.resourceIdRange.push($root.ServiceLogger.IdRange.decode(reader, reader.uint32())); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -196653,8 +204501,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ServiceRuleSpecifier.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -196667,24 +204514,34 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ ServiceRuleSpecifier.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.all != null && message.hasOwnProperty("all")) - if (typeof message.all !== "boolean") - return "all: boolean expected"; - if (message.serviceRuleId != null && message.hasOwnProperty("serviceRuleId")) - if (!$util.isInteger(message.serviceRuleId) && !(message.serviceRuleId && $util.isInteger(message.serviceRuleId.low) && $util.isInteger(message.serviceRuleId.high))) - return "serviceRuleId: integer|Long expected"; - if (message.serviceInfoId != null && message.hasOwnProperty("serviceInfoId")) - if (!$util.isInteger(message.serviceInfoId) && !(message.serviceInfoId && $util.isInteger(message.serviceInfoId.low) && $util.isInteger(message.serviceInfoId.high))) - return "serviceInfoId: integer|Long expected"; - if (message.resourceIdRange != null && message.hasOwnProperty("resourceIdRange")) { - if (!Array.isArray(message.resourceIdRange)) - return "resourceIdRange: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.all != null && message.hasOwnProperty('all')) + if (typeof message.all !== 'boolean') return 'all: boolean expected'; + if (message.serviceRuleId != null && message.hasOwnProperty('serviceRuleId')) + if ( + !$util.isInteger(message.serviceRuleId) && + !( + message.serviceRuleId && + $util.isInteger(message.serviceRuleId.low) && + $util.isInteger(message.serviceRuleId.high) + ) + ) + return 'serviceRuleId: integer|Long expected'; + if (message.serviceInfoId != null && message.hasOwnProperty('serviceInfoId')) + if ( + !$util.isInteger(message.serviceInfoId) && + !( + message.serviceInfoId && + $util.isInteger(message.serviceInfoId.low) && + $util.isInteger(message.serviceInfoId.high) + ) + ) + return 'serviceInfoId: integer|Long expected'; + if (message.resourceIdRange != null && message.hasOwnProperty('resourceIdRange')) { + if (!Array.isArray(message.resourceIdRange)) return 'resourceIdRange: array expected'; for (let i = 0; i < message.resourceIdRange.length; ++i) { let error = $root.ServiceLogger.IdRange.verify(message.resourceIdRange[i]); - if (error) - return "resourceIdRange." + error; + if (error) return 'resourceIdRange.' + error; } } return null; @@ -196699,36 +204556,36 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @returns {ServiceLogger.ServiceRuleSpecifier} ServiceRuleSpecifier */ ServiceRuleSpecifier.fromObject = function fromObject(object) { - if (object instanceof $root.ServiceLogger.ServiceRuleSpecifier) - return object; + if (object instanceof $root.ServiceLogger.ServiceRuleSpecifier) return object; let message = new $root.ServiceLogger.ServiceRuleSpecifier(); - if (object.all != null) - message.all = Boolean(object.all); + if (object.all != null) message.all = Boolean(object.all); if (object.serviceRuleId != null) - if ($util.Long) - (message.serviceRuleId = $util.Long.fromValue(object.serviceRuleId)).unsigned = true; - else if (typeof object.serviceRuleId === "string") + if ($util.Long) (message.serviceRuleId = $util.Long.fromValue(object.serviceRuleId)).unsigned = true; + else if (typeof object.serviceRuleId === 'string') message.serviceRuleId = parseInt(object.serviceRuleId, 10); - else if (typeof object.serviceRuleId === "number") - message.serviceRuleId = object.serviceRuleId; - else if (typeof object.serviceRuleId === "object") - message.serviceRuleId = new $util.LongBits(object.serviceRuleId.low >>> 0, object.serviceRuleId.high >>> 0).toNumber(true); + else if (typeof object.serviceRuleId === 'number') message.serviceRuleId = object.serviceRuleId; + else if (typeof object.serviceRuleId === 'object') + message.serviceRuleId = new $util.LongBits( + object.serviceRuleId.low >>> 0, + object.serviceRuleId.high >>> 0 + ).toNumber(true); if (object.serviceInfoId != null) - if ($util.Long) - (message.serviceInfoId = $util.Long.fromValue(object.serviceInfoId)).unsigned = true; - else if (typeof object.serviceInfoId === "string") + if ($util.Long) (message.serviceInfoId = $util.Long.fromValue(object.serviceInfoId)).unsigned = true; + else if (typeof object.serviceInfoId === 'string') message.serviceInfoId = parseInt(object.serviceInfoId, 10); - else if (typeof object.serviceInfoId === "number") - message.serviceInfoId = object.serviceInfoId; - else if (typeof object.serviceInfoId === "object") - message.serviceInfoId = new $util.LongBits(object.serviceInfoId.low >>> 0, object.serviceInfoId.high >>> 0).toNumber(true); + else if (typeof object.serviceInfoId === 'number') message.serviceInfoId = object.serviceInfoId; + else if (typeof object.serviceInfoId === 'object') + message.serviceInfoId = new $util.LongBits( + object.serviceInfoId.low >>> 0, + object.serviceInfoId.high >>> 0 + ).toNumber(true); if (object.resourceIdRange) { if (!Array.isArray(object.resourceIdRange)) - throw TypeError(".ServiceLogger.ServiceRuleSpecifier.resourceIdRange: array expected"); + throw TypeError('.ServiceLogger.ServiceRuleSpecifier.resourceIdRange: array expected'); message.resourceIdRange = []; for (let i = 0; i < object.resourceIdRange.length; ++i) { - if (typeof object.resourceIdRange[i] !== "object") - throw TypeError(".ServiceLogger.ServiceRuleSpecifier.resourceIdRange: object expected"); + if (typeof object.resourceIdRange[i] !== 'object') + throw TypeError('.ServiceLogger.ServiceRuleSpecifier.resourceIdRange: object expected'); message.resourceIdRange[i] = $root.ServiceLogger.IdRange.fromObject(object.resourceIdRange[i]); } } @@ -196745,40 +204602,58 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @returns {Object.} Plain object */ ServiceRuleSpecifier.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.resourceIdRange = []; + if (options.arrays || options.defaults) object.resourceIdRange = []; if (options.defaults) { object.all = false; if ($util.Long) { let long = new $util.Long(0, 0, true); - object.serviceRuleId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.serviceRuleId = options.longs === String ? "0" : 0; + object.serviceRuleId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.serviceRuleId = options.longs === String ? '0' : 0; if ($util.Long) { let long = new $util.Long(0, 0, true); - object.serviceInfoId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.serviceInfoId = options.longs === String ? "0" : 0; - } - if (message.all != null && message.hasOwnProperty("all")) - object.all = message.all; - if (message.serviceRuleId != null && message.hasOwnProperty("serviceRuleId")) - if (typeof message.serviceRuleId === "number") - object.serviceRuleId = options.longs === String ? String(message.serviceRuleId) : message.serviceRuleId; + object.serviceInfoId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.serviceInfoId = options.longs === String ? '0' : 0; + } + if (message.all != null && message.hasOwnProperty('all')) object.all = message.all; + if (message.serviceRuleId != null && message.hasOwnProperty('serviceRuleId')) + if (typeof message.serviceRuleId === 'number') + object.serviceRuleId = + options.longs === String ? String(message.serviceRuleId) : message.serviceRuleId; else - object.serviceRuleId = options.longs === String ? $util.Long.prototype.toString.call(message.serviceRuleId) : options.longs === Number ? new $util.LongBits(message.serviceRuleId.low >>> 0, message.serviceRuleId.high >>> 0).toNumber(true) : message.serviceRuleId; - if (message.serviceInfoId != null && message.hasOwnProperty("serviceInfoId")) - if (typeof message.serviceInfoId === "number") - object.serviceInfoId = options.longs === String ? String(message.serviceInfoId) : message.serviceInfoId; + object.serviceRuleId = + options.longs === String + ? $util.Long.prototype.toString.call(message.serviceRuleId) + : options.longs === Number + ? new $util.LongBits( + message.serviceRuleId.low >>> 0, + message.serviceRuleId.high >>> 0 + ).toNumber(true) + : message.serviceRuleId; + if (message.serviceInfoId != null && message.hasOwnProperty('serviceInfoId')) + if (typeof message.serviceInfoId === 'number') + object.serviceInfoId = + options.longs === String ? String(message.serviceInfoId) : message.serviceInfoId; else - object.serviceInfoId = options.longs === String ? $util.Long.prototype.toString.call(message.serviceInfoId) : options.longs === Number ? new $util.LongBits(message.serviceInfoId.low >>> 0, message.serviceInfoId.high >>> 0).toNumber(true) : message.serviceInfoId; + object.serviceInfoId = + options.longs === String + ? $util.Long.prototype.toString.call(message.serviceInfoId) + : options.longs === Number + ? new $util.LongBits( + message.serviceInfoId.low >>> 0, + message.serviceInfoId.high >>> 0 + ).toNumber(true) + : message.serviceInfoId; if (message.resourceIdRange && message.resourceIdRange.length) { object.resourceIdRange = []; for (let j = 0; j < message.resourceIdRange.length; ++j) - object.resourceIdRange[j] = $root.ServiceLogger.IdRange.toObject(message.resourceIdRange[j], options); + object.resourceIdRange[j] = $root.ServiceLogger.IdRange.toObject( + message.resourceIdRange[j], + options + ); } return object; }; @@ -196804,16 +204679,15 @@ export const ServiceLogger = $root.ServiceLogger = (() => { */ ServiceRuleSpecifier.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/ServiceLogger.ServiceRuleSpecifier"; + return typeUrlPrefix + '/ServiceLogger.ServiceRuleSpecifier'; }; return ServiceRuleSpecifier; })(); - ServiceLogger.ServiceRuleRequest = (function() { - + ServiceLogger.ServiceRuleRequest = (function () { /** * Properties of a ServiceRuleRequest. * @memberof ServiceLogger @@ -196833,8 +204707,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { this.serviceRuleSpecifier = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -196867,11 +204740,13 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @returns {$protobuf.Writer} Writer */ ServiceRuleRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.serviceRuleSpecifier != null && message.serviceRuleSpecifier.length) for (let i = 0; i < message.serviceRuleSpecifier.length; ++i) - $root.ServiceLogger.ServiceRuleSpecifier.encode(message.serviceRuleSpecifier[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.ServiceLogger.ServiceRuleSpecifier.encode( + message.serviceRuleSpecifier[i], + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); return writer; }; @@ -196900,21 +204775,23 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ServiceRuleRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ServiceLogger.ServiceRuleRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.ServiceLogger.ServiceRuleRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { if (!(message.serviceRuleSpecifier && message.serviceRuleSpecifier.length)) message.serviceRuleSpecifier = []; - message.serviceRuleSpecifier.push($root.ServiceLogger.ServiceRuleSpecifier.decode(reader, reader.uint32())); + message.serviceRuleSpecifier.push( + $root.ServiceLogger.ServiceRuleSpecifier.decode(reader, reader.uint32()) + ); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -196931,8 +204808,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ServiceRuleRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -196945,15 +204821,12 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ ServiceRuleRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.serviceRuleSpecifier != null && message.hasOwnProperty("serviceRuleSpecifier")) { - if (!Array.isArray(message.serviceRuleSpecifier)) - return "serviceRuleSpecifier: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.serviceRuleSpecifier != null && message.hasOwnProperty('serviceRuleSpecifier')) { + if (!Array.isArray(message.serviceRuleSpecifier)) return 'serviceRuleSpecifier: array expected'; for (let i = 0; i < message.serviceRuleSpecifier.length; ++i) { let error = $root.ServiceLogger.ServiceRuleSpecifier.verify(message.serviceRuleSpecifier[i]); - if (error) - return "serviceRuleSpecifier." + error; + if (error) return 'serviceRuleSpecifier.' + error; } } return null; @@ -196968,17 +204841,18 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @returns {ServiceLogger.ServiceRuleRequest} ServiceRuleRequest */ ServiceRuleRequest.fromObject = function fromObject(object) { - if (object instanceof $root.ServiceLogger.ServiceRuleRequest) - return object; + if (object instanceof $root.ServiceLogger.ServiceRuleRequest) return object; let message = new $root.ServiceLogger.ServiceRuleRequest(); if (object.serviceRuleSpecifier) { if (!Array.isArray(object.serviceRuleSpecifier)) - throw TypeError(".ServiceLogger.ServiceRuleRequest.serviceRuleSpecifier: array expected"); + throw TypeError('.ServiceLogger.ServiceRuleRequest.serviceRuleSpecifier: array expected'); message.serviceRuleSpecifier = []; for (let i = 0; i < object.serviceRuleSpecifier.length; ++i) { - if (typeof object.serviceRuleSpecifier[i] !== "object") - throw TypeError(".ServiceLogger.ServiceRuleRequest.serviceRuleSpecifier: object expected"); - message.serviceRuleSpecifier[i] = $root.ServiceLogger.ServiceRuleSpecifier.fromObject(object.serviceRuleSpecifier[i]); + if (typeof object.serviceRuleSpecifier[i] !== 'object') + throw TypeError('.ServiceLogger.ServiceRuleRequest.serviceRuleSpecifier: object expected'); + message.serviceRuleSpecifier[i] = $root.ServiceLogger.ServiceRuleSpecifier.fromObject( + object.serviceRuleSpecifier[i] + ); } } return message; @@ -196994,15 +204868,16 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @returns {Object.} Plain object */ ServiceRuleRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.serviceRuleSpecifier = []; + if (options.arrays || options.defaults) object.serviceRuleSpecifier = []; if (message.serviceRuleSpecifier && message.serviceRuleSpecifier.length) { object.serviceRuleSpecifier = []; for (let j = 0; j < message.serviceRuleSpecifier.length; ++j) - object.serviceRuleSpecifier[j] = $root.ServiceLogger.ServiceRuleSpecifier.toObject(message.serviceRuleSpecifier[j], options); + object.serviceRuleSpecifier[j] = $root.ServiceLogger.ServiceRuleSpecifier.toObject( + message.serviceRuleSpecifier[j], + options + ); } return object; }; @@ -197028,16 +204903,15 @@ export const ServiceLogger = $root.ServiceLogger = (() => { */ ServiceRuleRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/ServiceLogger.ServiceRuleRequest"; + return typeUrlPrefix + '/ServiceLogger.ServiceRuleRequest'; }; return ServiceRuleRequest; })(); - ServiceLogger.ServiceRuleRecord = (function() { - + ServiceLogger.ServiceRuleRecord = (function () { /** * Properties of a ServiceRuleRecord. * @memberof ServiceLogger @@ -197063,8 +204937,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { function ServiceRuleRecord(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -197073,7 +204946,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @memberof ServiceLogger.ServiceRuleRecord * @instance */ - ServiceRuleRecord.prototype.serviceRuleId = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + ServiceRuleRecord.prototype.serviceRuleId = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; /** * ServiceRuleRecord serviceInfoId. @@ -197081,7 +204954,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @memberof ServiceLogger.ServiceRuleRecord * @instance */ - ServiceRuleRecord.prototype.serviceInfoId = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + ServiceRuleRecord.prototype.serviceInfoId = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; /** * ServiceRuleRecord resourceId. @@ -197089,7 +204962,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @memberof ServiceLogger.ServiceRuleRecord * @instance */ - ServiceRuleRecord.prototype.resourceId = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + ServiceRuleRecord.prototype.resourceId = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; /** * ServiceRuleRecord isLoggingEnabled. @@ -197105,7 +204978,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @memberof ServiceLogger.ServiceRuleRecord * @instance */ - ServiceRuleRecord.prototype.logLevel = ""; + ServiceRuleRecord.prototype.logLevel = ''; /** * ServiceRuleRecord ruleStart. @@ -197113,7 +204986,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @memberof ServiceLogger.ServiceRuleRecord * @instance */ - ServiceRuleRecord.prototype.ruleStart = ""; + ServiceRuleRecord.prototype.ruleStart = ''; /** * ServiceRuleRecord ruleEnd. @@ -197121,7 +204994,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @memberof ServiceLogger.ServiceRuleRecord * @instance */ - ServiceRuleRecord.prototype.ruleEnd = ""; + ServiceRuleRecord.prototype.ruleEnd = ''; /** * ServiceRuleRecord dateModified. @@ -197129,7 +205002,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @memberof ServiceLogger.ServiceRuleRecord * @instance */ - ServiceRuleRecord.prototype.dateModified = ""; + ServiceRuleRecord.prototype.dateModified = ''; /** * Creates a new ServiceRuleRecord instance using the specified properties. @@ -197153,24 +205026,23 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @returns {$protobuf.Writer} Writer */ ServiceRuleRecord.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.serviceRuleId != null && Object.hasOwnProperty.call(message, "serviceRuleId")) - writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.serviceRuleId); - if (message.serviceInfoId != null && Object.hasOwnProperty.call(message, "serviceInfoId")) - writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.serviceInfoId); - if (message.resourceId != null && Object.hasOwnProperty.call(message, "resourceId")) - writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.resourceId); - if (message.isLoggingEnabled != null && Object.hasOwnProperty.call(message, "isLoggingEnabled")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.isLoggingEnabled); - if (message.logLevel != null && Object.hasOwnProperty.call(message, "logLevel")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.logLevel); - if (message.ruleStart != null && Object.hasOwnProperty.call(message, "ruleStart")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.ruleStart); - if (message.ruleEnd != null && Object.hasOwnProperty.call(message, "ruleEnd")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.ruleEnd); - if (message.dateModified != null && Object.hasOwnProperty.call(message, "dateModified")) - writer.uint32(/* id 8, wireType 2 =*/66).string(message.dateModified); + if (!writer) writer = $Writer.create(); + if (message.serviceRuleId != null && Object.hasOwnProperty.call(message, 'serviceRuleId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).uint64(message.serviceRuleId); + if (message.serviceInfoId != null && Object.hasOwnProperty.call(message, 'serviceInfoId')) + writer.uint32(/* id 2, wireType 0 =*/ 16).uint64(message.serviceInfoId); + if (message.resourceId != null && Object.hasOwnProperty.call(message, 'resourceId')) + writer.uint32(/* id 3, wireType 0 =*/ 24).uint64(message.resourceId); + if (message.isLoggingEnabled != null && Object.hasOwnProperty.call(message, 'isLoggingEnabled')) + writer.uint32(/* id 4, wireType 0 =*/ 32).bool(message.isLoggingEnabled); + if (message.logLevel != null && Object.hasOwnProperty.call(message, 'logLevel')) + writer.uint32(/* id 5, wireType 2 =*/ 42).string(message.logLevel); + if (message.ruleStart != null && Object.hasOwnProperty.call(message, 'ruleStart')) + writer.uint32(/* id 6, wireType 2 =*/ 50).string(message.ruleStart); + if (message.ruleEnd != null && Object.hasOwnProperty.call(message, 'ruleEnd')) + writer.uint32(/* id 7, wireType 2 =*/ 58).string(message.ruleEnd); + if (message.dateModified != null && Object.hasOwnProperty.call(message, 'dateModified')) + writer.uint32(/* id 8, wireType 2 =*/ 66).string(message.dateModified); return writer; }; @@ -197199,47 +205071,47 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ServiceRuleRecord.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ServiceLogger.ServiceRuleRecord(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.ServiceLogger.ServiceRuleRecord(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.serviceRuleId = reader.uint64(); break; } - case 2: { + case 2: { message.serviceInfoId = reader.uint64(); break; } - case 3: { + case 3: { message.resourceId = reader.uint64(); break; } - case 4: { + case 4: { message.isLoggingEnabled = reader.bool(); break; } - case 5: { + case 5: { message.logLevel = reader.string(); break; } - case 6: { + case 6: { message.ruleStart = reader.string(); break; } - case 7: { + case 7: { message.ruleEnd = reader.string(); break; } - case 8: { + case 8: { message.dateModified = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -197256,8 +205128,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ServiceRuleRecord.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -197270,32 +205141,47 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ ServiceRuleRecord.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.serviceRuleId != null && message.hasOwnProperty("serviceRuleId")) - if (!$util.isInteger(message.serviceRuleId) && !(message.serviceRuleId && $util.isInteger(message.serviceRuleId.low) && $util.isInteger(message.serviceRuleId.high))) - return "serviceRuleId: integer|Long expected"; - if (message.serviceInfoId != null && message.hasOwnProperty("serviceInfoId")) - if (!$util.isInteger(message.serviceInfoId) && !(message.serviceInfoId && $util.isInteger(message.serviceInfoId.low) && $util.isInteger(message.serviceInfoId.high))) - return "serviceInfoId: integer|Long expected"; - if (message.resourceId != null && message.hasOwnProperty("resourceId")) - if (!$util.isInteger(message.resourceId) && !(message.resourceId && $util.isInteger(message.resourceId.low) && $util.isInteger(message.resourceId.high))) - return "resourceId: integer|Long expected"; - if (message.isLoggingEnabled != null && message.hasOwnProperty("isLoggingEnabled")) - if (typeof message.isLoggingEnabled !== "boolean") - return "isLoggingEnabled: boolean expected"; - if (message.logLevel != null && message.hasOwnProperty("logLevel")) - if (!$util.isString(message.logLevel)) - return "logLevel: string expected"; - if (message.ruleStart != null && message.hasOwnProperty("ruleStart")) - if (!$util.isString(message.ruleStart)) - return "ruleStart: string expected"; - if (message.ruleEnd != null && message.hasOwnProperty("ruleEnd")) - if (!$util.isString(message.ruleEnd)) - return "ruleEnd: string expected"; - if (message.dateModified != null && message.hasOwnProperty("dateModified")) - if (!$util.isString(message.dateModified)) - return "dateModified: string expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.serviceRuleId != null && message.hasOwnProperty('serviceRuleId')) + if ( + !$util.isInteger(message.serviceRuleId) && + !( + message.serviceRuleId && + $util.isInteger(message.serviceRuleId.low) && + $util.isInteger(message.serviceRuleId.high) + ) + ) + return 'serviceRuleId: integer|Long expected'; + if (message.serviceInfoId != null && message.hasOwnProperty('serviceInfoId')) + if ( + !$util.isInteger(message.serviceInfoId) && + !( + message.serviceInfoId && + $util.isInteger(message.serviceInfoId.low) && + $util.isInteger(message.serviceInfoId.high) + ) + ) + return 'serviceInfoId: integer|Long expected'; + if (message.resourceId != null && message.hasOwnProperty('resourceId')) + if ( + !$util.isInteger(message.resourceId) && + !( + message.resourceId && + $util.isInteger(message.resourceId.low) && + $util.isInteger(message.resourceId.high) + ) + ) + return 'resourceId: integer|Long expected'; + if (message.isLoggingEnabled != null && message.hasOwnProperty('isLoggingEnabled')) + if (typeof message.isLoggingEnabled !== 'boolean') return 'isLoggingEnabled: boolean expected'; + if (message.logLevel != null && message.hasOwnProperty('logLevel')) + if (!$util.isString(message.logLevel)) return 'logLevel: string expected'; + if (message.ruleStart != null && message.hasOwnProperty('ruleStart')) + if (!$util.isString(message.ruleStart)) return 'ruleStart: string expected'; + if (message.ruleEnd != null && message.hasOwnProperty('ruleEnd')) + if (!$util.isString(message.ruleEnd)) return 'ruleEnd: string expected'; + if (message.dateModified != null && message.hasOwnProperty('dateModified')) + if (!$util.isString(message.dateModified)) return 'dateModified: string expected'; return null; }; @@ -197308,46 +205194,42 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @returns {ServiceLogger.ServiceRuleRecord} ServiceRuleRecord */ ServiceRuleRecord.fromObject = function fromObject(object) { - if (object instanceof $root.ServiceLogger.ServiceRuleRecord) - return object; + if (object instanceof $root.ServiceLogger.ServiceRuleRecord) return object; let message = new $root.ServiceLogger.ServiceRuleRecord(); if (object.serviceRuleId != null) - if ($util.Long) - (message.serviceRuleId = $util.Long.fromValue(object.serviceRuleId)).unsigned = true; - else if (typeof object.serviceRuleId === "string") + if ($util.Long) (message.serviceRuleId = $util.Long.fromValue(object.serviceRuleId)).unsigned = true; + else if (typeof object.serviceRuleId === 'string') message.serviceRuleId = parseInt(object.serviceRuleId, 10); - else if (typeof object.serviceRuleId === "number") - message.serviceRuleId = object.serviceRuleId; - else if (typeof object.serviceRuleId === "object") - message.serviceRuleId = new $util.LongBits(object.serviceRuleId.low >>> 0, object.serviceRuleId.high >>> 0).toNumber(true); + else if (typeof object.serviceRuleId === 'number') message.serviceRuleId = object.serviceRuleId; + else if (typeof object.serviceRuleId === 'object') + message.serviceRuleId = new $util.LongBits( + object.serviceRuleId.low >>> 0, + object.serviceRuleId.high >>> 0 + ).toNumber(true); if (object.serviceInfoId != null) - if ($util.Long) - (message.serviceInfoId = $util.Long.fromValue(object.serviceInfoId)).unsigned = true; - else if (typeof object.serviceInfoId === "string") + if ($util.Long) (message.serviceInfoId = $util.Long.fromValue(object.serviceInfoId)).unsigned = true; + else if (typeof object.serviceInfoId === 'string') message.serviceInfoId = parseInt(object.serviceInfoId, 10); - else if (typeof object.serviceInfoId === "number") - message.serviceInfoId = object.serviceInfoId; - else if (typeof object.serviceInfoId === "object") - message.serviceInfoId = new $util.LongBits(object.serviceInfoId.low >>> 0, object.serviceInfoId.high >>> 0).toNumber(true); + else if (typeof object.serviceInfoId === 'number') message.serviceInfoId = object.serviceInfoId; + else if (typeof object.serviceInfoId === 'object') + message.serviceInfoId = new $util.LongBits( + object.serviceInfoId.low >>> 0, + object.serviceInfoId.high >>> 0 + ).toNumber(true); if (object.resourceId != null) - if ($util.Long) - (message.resourceId = $util.Long.fromValue(object.resourceId)).unsigned = true; - else if (typeof object.resourceId === "string") - message.resourceId = parseInt(object.resourceId, 10); - else if (typeof object.resourceId === "number") - message.resourceId = object.resourceId; - else if (typeof object.resourceId === "object") - message.resourceId = new $util.LongBits(object.resourceId.low >>> 0, object.resourceId.high >>> 0).toNumber(true); - if (object.isLoggingEnabled != null) - message.isLoggingEnabled = Boolean(object.isLoggingEnabled); - if (object.logLevel != null) - message.logLevel = String(object.logLevel); - if (object.ruleStart != null) - message.ruleStart = String(object.ruleStart); - if (object.ruleEnd != null) - message.ruleEnd = String(object.ruleEnd); - if (object.dateModified != null) - message.dateModified = String(object.dateModified); + if ($util.Long) (message.resourceId = $util.Long.fromValue(object.resourceId)).unsigned = true; + else if (typeof object.resourceId === 'string') message.resourceId = parseInt(object.resourceId, 10); + else if (typeof object.resourceId === 'number') message.resourceId = object.resourceId; + else if (typeof object.resourceId === 'object') + message.resourceId = new $util.LongBits( + object.resourceId.low >>> 0, + object.resourceId.high >>> 0 + ).toNumber(true); + if (object.isLoggingEnabled != null) message.isLoggingEnabled = Boolean(object.isLoggingEnabled); + if (object.logLevel != null) message.logLevel = String(object.logLevel); + if (object.ruleStart != null) message.ruleStart = String(object.ruleStart); + if (object.ruleEnd != null) message.ruleEnd = String(object.ruleEnd); + if (object.dateModified != null) message.dateModified = String(object.dateModified); return message; }; @@ -197361,55 +205243,77 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @returns {Object.} Plain object */ ServiceRuleRecord.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, true); - object.serviceRuleId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.serviceRuleId = options.longs === String ? "0" : 0; + object.serviceRuleId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.serviceRuleId = options.longs === String ? '0' : 0; if ($util.Long) { let long = new $util.Long(0, 0, true); - object.serviceInfoId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.serviceInfoId = options.longs === String ? "0" : 0; + object.serviceInfoId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.serviceInfoId = options.longs === String ? '0' : 0; if ($util.Long) { let long = new $util.Long(0, 0, true); - object.resourceId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.resourceId = options.longs === String ? "0" : 0; + object.resourceId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.resourceId = options.longs === String ? '0' : 0; object.isLoggingEnabled = false; - object.logLevel = ""; - object.ruleStart = ""; - object.ruleEnd = ""; - object.dateModified = ""; - } - if (message.serviceRuleId != null && message.hasOwnProperty("serviceRuleId")) - if (typeof message.serviceRuleId === "number") - object.serviceRuleId = options.longs === String ? String(message.serviceRuleId) : message.serviceRuleId; + object.logLevel = ''; + object.ruleStart = ''; + object.ruleEnd = ''; + object.dateModified = ''; + } + if (message.serviceRuleId != null && message.hasOwnProperty('serviceRuleId')) + if (typeof message.serviceRuleId === 'number') + object.serviceRuleId = + options.longs === String ? String(message.serviceRuleId) : message.serviceRuleId; else - object.serviceRuleId = options.longs === String ? $util.Long.prototype.toString.call(message.serviceRuleId) : options.longs === Number ? new $util.LongBits(message.serviceRuleId.low >>> 0, message.serviceRuleId.high >>> 0).toNumber(true) : message.serviceRuleId; - if (message.serviceInfoId != null && message.hasOwnProperty("serviceInfoId")) - if (typeof message.serviceInfoId === "number") - object.serviceInfoId = options.longs === String ? String(message.serviceInfoId) : message.serviceInfoId; + object.serviceRuleId = + options.longs === String + ? $util.Long.prototype.toString.call(message.serviceRuleId) + : options.longs === Number + ? new $util.LongBits( + message.serviceRuleId.low >>> 0, + message.serviceRuleId.high >>> 0 + ).toNumber(true) + : message.serviceRuleId; + if (message.serviceInfoId != null && message.hasOwnProperty('serviceInfoId')) + if (typeof message.serviceInfoId === 'number') + object.serviceInfoId = + options.longs === String ? String(message.serviceInfoId) : message.serviceInfoId; else - object.serviceInfoId = options.longs === String ? $util.Long.prototype.toString.call(message.serviceInfoId) : options.longs === Number ? new $util.LongBits(message.serviceInfoId.low >>> 0, message.serviceInfoId.high >>> 0).toNumber(true) : message.serviceInfoId; - if (message.resourceId != null && message.hasOwnProperty("resourceId")) - if (typeof message.resourceId === "number") + object.serviceInfoId = + options.longs === String + ? $util.Long.prototype.toString.call(message.serviceInfoId) + : options.longs === Number + ? new $util.LongBits( + message.serviceInfoId.low >>> 0, + message.serviceInfoId.high >>> 0 + ).toNumber(true) + : message.serviceInfoId; + if (message.resourceId != null && message.hasOwnProperty('resourceId')) + if (typeof message.resourceId === 'number') object.resourceId = options.longs === String ? String(message.resourceId) : message.resourceId; else - object.resourceId = options.longs === String ? $util.Long.prototype.toString.call(message.resourceId) : options.longs === Number ? new $util.LongBits(message.resourceId.low >>> 0, message.resourceId.high >>> 0).toNumber(true) : message.resourceId; - if (message.isLoggingEnabled != null && message.hasOwnProperty("isLoggingEnabled")) + object.resourceId = + options.longs === String + ? $util.Long.prototype.toString.call(message.resourceId) + : options.longs === Number + ? new $util.LongBits( + message.resourceId.low >>> 0, + message.resourceId.high >>> 0 + ).toNumber(true) + : message.resourceId; + if (message.isLoggingEnabled != null && message.hasOwnProperty('isLoggingEnabled')) object.isLoggingEnabled = message.isLoggingEnabled; - if (message.logLevel != null && message.hasOwnProperty("logLevel")) - object.logLevel = message.logLevel; - if (message.ruleStart != null && message.hasOwnProperty("ruleStart")) - object.ruleStart = message.ruleStart; - if (message.ruleEnd != null && message.hasOwnProperty("ruleEnd")) - object.ruleEnd = message.ruleEnd; - if (message.dateModified != null && message.hasOwnProperty("dateModified")) + if (message.logLevel != null && message.hasOwnProperty('logLevel')) object.logLevel = message.logLevel; + if (message.ruleStart != null && message.hasOwnProperty('ruleStart')) object.ruleStart = message.ruleStart; + if (message.ruleEnd != null && message.hasOwnProperty('ruleEnd')) object.ruleEnd = message.ruleEnd; + if (message.dateModified != null && message.hasOwnProperty('dateModified')) object.dateModified = message.dateModified; return object; }; @@ -197435,16 +205339,15 @@ export const ServiceLogger = $root.ServiceLogger = (() => { */ ServiceRuleRecord.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/ServiceLogger.ServiceRuleRecord"; + return typeUrlPrefix + '/ServiceLogger.ServiceRuleRecord'; }; return ServiceRuleRecord; })(); - ServiceLogger.ServiceRuleResponse = (function() { - + ServiceLogger.ServiceRuleResponse = (function () { /** * Properties of a ServiceRuleResponse. * @memberof ServiceLogger @@ -197464,8 +205367,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { this.serviceRule = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -197498,11 +205400,13 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @returns {$protobuf.Writer} Writer */ ServiceRuleResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.serviceRule != null && message.serviceRule.length) for (let i = 0; i < message.serviceRule.length; ++i) - $root.ServiceLogger.ServiceRuleRecord.encode(message.serviceRule[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.ServiceLogger.ServiceRuleRecord.encode( + message.serviceRule[i], + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); return writer; }; @@ -197531,21 +205435,20 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ServiceRuleResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ServiceLogger.ServiceRuleResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.ServiceLogger.ServiceRuleResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (!(message.serviceRule && message.serviceRule.length)) - message.serviceRule = []; + case 1: { + if (!(message.serviceRule && message.serviceRule.length)) message.serviceRule = []; message.serviceRule.push($root.ServiceLogger.ServiceRuleRecord.decode(reader, reader.uint32())); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -197562,8 +205465,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ServiceRuleResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -197576,15 +205478,12 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ ServiceRuleResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.serviceRule != null && message.hasOwnProperty("serviceRule")) { - if (!Array.isArray(message.serviceRule)) - return "serviceRule: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.serviceRule != null && message.hasOwnProperty('serviceRule')) { + if (!Array.isArray(message.serviceRule)) return 'serviceRule: array expected'; for (let i = 0; i < message.serviceRule.length; ++i) { let error = $root.ServiceLogger.ServiceRuleRecord.verify(message.serviceRule[i]); - if (error) - return "serviceRule." + error; + if (error) return 'serviceRule.' + error; } } return null; @@ -197599,16 +205498,15 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @returns {ServiceLogger.ServiceRuleResponse} ServiceRuleResponse */ ServiceRuleResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ServiceLogger.ServiceRuleResponse) - return object; + if (object instanceof $root.ServiceLogger.ServiceRuleResponse) return object; let message = new $root.ServiceLogger.ServiceRuleResponse(); if (object.serviceRule) { if (!Array.isArray(object.serviceRule)) - throw TypeError(".ServiceLogger.ServiceRuleResponse.serviceRule: array expected"); + throw TypeError('.ServiceLogger.ServiceRuleResponse.serviceRule: array expected'); message.serviceRule = []; for (let i = 0; i < object.serviceRule.length; ++i) { - if (typeof object.serviceRule[i] !== "object") - throw TypeError(".ServiceLogger.ServiceRuleResponse.serviceRule: object expected"); + if (typeof object.serviceRule[i] !== 'object') + throw TypeError('.ServiceLogger.ServiceRuleResponse.serviceRule: object expected'); message.serviceRule[i] = $root.ServiceLogger.ServiceRuleRecord.fromObject(object.serviceRule[i]); } } @@ -197625,15 +205523,16 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @returns {Object.} Plain object */ ServiceRuleResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.serviceRule = []; + if (options.arrays || options.defaults) object.serviceRule = []; if (message.serviceRule && message.serviceRule.length) { object.serviceRule = []; for (let j = 0; j < message.serviceRule.length; ++j) - object.serviceRule[j] = $root.ServiceLogger.ServiceRuleRecord.toObject(message.serviceRule[j], options); + object.serviceRule[j] = $root.ServiceLogger.ServiceRuleRecord.toObject( + message.serviceRule[j], + options + ); } return object; }; @@ -197659,16 +205558,15 @@ export const ServiceLogger = $root.ServiceLogger = (() => { */ ServiceRuleResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/ServiceLogger.ServiceRuleResponse"; + return typeUrlPrefix + '/ServiceLogger.ServiceRuleResponse'; }; return ServiceRuleResponse; })(); - ServiceLogger.ServiceRuleUpdateRequest = (function() { - + ServiceLogger.ServiceRuleUpdateRequest = (function () { /** * Properties of a ServiceRuleUpdateRequest. * @memberof ServiceLogger @@ -197688,8 +205586,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { this.serviceRuleRecord = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -197722,11 +205619,13 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @returns {$protobuf.Writer} Writer */ ServiceRuleUpdateRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.serviceRuleRecord != null && message.serviceRuleRecord.length) for (let i = 0; i < message.serviceRuleRecord.length; ++i) - $root.ServiceLogger.ServiceRuleRecord.encode(message.serviceRuleRecord[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.ServiceLogger.ServiceRuleRecord.encode( + message.serviceRuleRecord[i], + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); return writer; }; @@ -197755,21 +205654,23 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ServiceRuleUpdateRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ServiceLogger.ServiceRuleUpdateRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.ServiceLogger.ServiceRuleUpdateRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { if (!(message.serviceRuleRecord && message.serviceRuleRecord.length)) message.serviceRuleRecord = []; - message.serviceRuleRecord.push($root.ServiceLogger.ServiceRuleRecord.decode(reader, reader.uint32())); + message.serviceRuleRecord.push( + $root.ServiceLogger.ServiceRuleRecord.decode(reader, reader.uint32()) + ); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -197786,8 +205687,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ServiceRuleUpdateRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -197800,15 +205700,12 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ ServiceRuleUpdateRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.serviceRuleRecord != null && message.hasOwnProperty("serviceRuleRecord")) { - if (!Array.isArray(message.serviceRuleRecord)) - return "serviceRuleRecord: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.serviceRuleRecord != null && message.hasOwnProperty('serviceRuleRecord')) { + if (!Array.isArray(message.serviceRuleRecord)) return 'serviceRuleRecord: array expected'; for (let i = 0; i < message.serviceRuleRecord.length; ++i) { let error = $root.ServiceLogger.ServiceRuleRecord.verify(message.serviceRuleRecord[i]); - if (error) - return "serviceRuleRecord." + error; + if (error) return 'serviceRuleRecord.' + error; } } return null; @@ -197823,17 +205720,18 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @returns {ServiceLogger.ServiceRuleUpdateRequest} ServiceRuleUpdateRequest */ ServiceRuleUpdateRequest.fromObject = function fromObject(object) { - if (object instanceof $root.ServiceLogger.ServiceRuleUpdateRequest) - return object; + if (object instanceof $root.ServiceLogger.ServiceRuleUpdateRequest) return object; let message = new $root.ServiceLogger.ServiceRuleUpdateRequest(); if (object.serviceRuleRecord) { if (!Array.isArray(object.serviceRuleRecord)) - throw TypeError(".ServiceLogger.ServiceRuleUpdateRequest.serviceRuleRecord: array expected"); + throw TypeError('.ServiceLogger.ServiceRuleUpdateRequest.serviceRuleRecord: array expected'); message.serviceRuleRecord = []; for (let i = 0; i < object.serviceRuleRecord.length; ++i) { - if (typeof object.serviceRuleRecord[i] !== "object") - throw TypeError(".ServiceLogger.ServiceRuleUpdateRequest.serviceRuleRecord: object expected"); - message.serviceRuleRecord[i] = $root.ServiceLogger.ServiceRuleRecord.fromObject(object.serviceRuleRecord[i]); + if (typeof object.serviceRuleRecord[i] !== 'object') + throw TypeError('.ServiceLogger.ServiceRuleUpdateRequest.serviceRuleRecord: object expected'); + message.serviceRuleRecord[i] = $root.ServiceLogger.ServiceRuleRecord.fromObject( + object.serviceRuleRecord[i] + ); } } return message; @@ -197849,15 +205747,16 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @returns {Object.} Plain object */ ServiceRuleUpdateRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.serviceRuleRecord = []; + if (options.arrays || options.defaults) object.serviceRuleRecord = []; if (message.serviceRuleRecord && message.serviceRuleRecord.length) { object.serviceRuleRecord = []; for (let j = 0; j < message.serviceRuleRecord.length; ++j) - object.serviceRuleRecord[j] = $root.ServiceLogger.ServiceRuleRecord.toObject(message.serviceRuleRecord[j], options); + object.serviceRuleRecord[j] = $root.ServiceLogger.ServiceRuleRecord.toObject( + message.serviceRuleRecord[j], + options + ); } return object; }; @@ -197883,16 +205782,15 @@ export const ServiceLogger = $root.ServiceLogger = (() => { */ ServiceRuleUpdateRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/ServiceLogger.ServiceRuleUpdateRequest"; + return typeUrlPrefix + '/ServiceLogger.ServiceRuleUpdateRequest'; }; return ServiceRuleUpdateRequest; })(); - ServiceLogger.ServiceLogSpecifier = (function() { - + ServiceLogger.ServiceLogSpecifier = (function () { /** * Properties of a ServiceLogSpecifier. * @memberof ServiceLogger @@ -197918,8 +205816,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { this.resourceIdRange = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -197936,7 +205833,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @memberof ServiceLogger.ServiceLogSpecifier * @instance */ - ServiceLogSpecifier.prototype.serviceLogId = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + ServiceLogSpecifier.prototype.serviceLogId = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; /** * ServiceLogSpecifier serviceIdRange. @@ -197960,7 +205857,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @memberof ServiceLogger.ServiceLogSpecifier * @instance */ - ServiceLogSpecifier.prototype.startDateTime = ""; + ServiceLogSpecifier.prototype.startDateTime = ''; /** * ServiceLogSpecifier endDateTime. @@ -197968,7 +205865,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @memberof ServiceLogger.ServiceLogSpecifier * @instance */ - ServiceLogSpecifier.prototype.endDateTime = ""; + ServiceLogSpecifier.prototype.endDateTime = ''; /** * Creates a new ServiceLogSpecifier instance using the specified properties. @@ -197992,22 +205889,27 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @returns {$protobuf.Writer} Writer */ ServiceLogSpecifier.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.all != null && Object.hasOwnProperty.call(message, "all")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.all); - if (message.serviceLogId != null && Object.hasOwnProperty.call(message, "serviceLogId")) - writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.serviceLogId); + if (!writer) writer = $Writer.create(); + if (message.all != null && Object.hasOwnProperty.call(message, 'all')) + writer.uint32(/* id 1, wireType 0 =*/ 8).bool(message.all); + if (message.serviceLogId != null && Object.hasOwnProperty.call(message, 'serviceLogId')) + writer.uint32(/* id 2, wireType 0 =*/ 16).uint64(message.serviceLogId); if (message.serviceIdRange != null && message.serviceIdRange.length) for (let i = 0; i < message.serviceIdRange.length; ++i) - $root.ServiceLogger.IdRange.encode(message.serviceIdRange[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + $root.ServiceLogger.IdRange.encode( + message.serviceIdRange[i], + writer.uint32(/* id 3, wireType 2 =*/ 26).fork() + ).ldelim(); if (message.resourceIdRange != null && message.resourceIdRange.length) for (let i = 0; i < message.resourceIdRange.length; ++i) - $root.ServiceLogger.IdRange.encode(message.resourceIdRange[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.startDateTime != null && Object.hasOwnProperty.call(message, "startDateTime")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.startDateTime); - if (message.endDateTime != null && Object.hasOwnProperty.call(message, "endDateTime")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.endDateTime); + $root.ServiceLogger.IdRange.encode( + message.resourceIdRange[i], + writer.uint32(/* id 4, wireType 2 =*/ 34).fork() + ).ldelim(); + if (message.startDateTime != null && Object.hasOwnProperty.call(message, 'startDateTime')) + writer.uint32(/* id 5, wireType 2 =*/ 42).string(message.startDateTime); + if (message.endDateTime != null && Object.hasOwnProperty.call(message, 'endDateTime')) + writer.uint32(/* id 6, wireType 2 =*/ 50).string(message.endDateTime); return writer; }; @@ -198036,43 +205938,41 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ServiceLogSpecifier.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ServiceLogger.ServiceLogSpecifier(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.ServiceLogger.ServiceLogSpecifier(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.all = reader.bool(); break; } - case 2: { + case 2: { message.serviceLogId = reader.uint64(); break; } - case 3: { - if (!(message.serviceIdRange && message.serviceIdRange.length)) - message.serviceIdRange = []; + case 3: { + if (!(message.serviceIdRange && message.serviceIdRange.length)) message.serviceIdRange = []; message.serviceIdRange.push($root.ServiceLogger.IdRange.decode(reader, reader.uint32())); break; } - case 4: { - if (!(message.resourceIdRange && message.resourceIdRange.length)) - message.resourceIdRange = []; + case 4: { + if (!(message.resourceIdRange && message.resourceIdRange.length)) message.resourceIdRange = []; message.resourceIdRange.push($root.ServiceLogger.IdRange.decode(reader, reader.uint32())); break; } - case 5: { + case 5: { message.startDateTime = reader.string(); break; } - case 6: { + case 6: { message.endDateTime = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -198089,8 +205989,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ServiceLogSpecifier.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -198103,38 +206002,37 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ ServiceLogSpecifier.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.all != null && message.hasOwnProperty("all")) - if (typeof message.all !== "boolean") - return "all: boolean expected"; - if (message.serviceLogId != null && message.hasOwnProperty("serviceLogId")) - if (!$util.isInteger(message.serviceLogId) && !(message.serviceLogId && $util.isInteger(message.serviceLogId.low) && $util.isInteger(message.serviceLogId.high))) - return "serviceLogId: integer|Long expected"; - if (message.serviceIdRange != null && message.hasOwnProperty("serviceIdRange")) { - if (!Array.isArray(message.serviceIdRange)) - return "serviceIdRange: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.all != null && message.hasOwnProperty('all')) + if (typeof message.all !== 'boolean') return 'all: boolean expected'; + if (message.serviceLogId != null && message.hasOwnProperty('serviceLogId')) + if ( + !$util.isInteger(message.serviceLogId) && + !( + message.serviceLogId && + $util.isInteger(message.serviceLogId.low) && + $util.isInteger(message.serviceLogId.high) + ) + ) + return 'serviceLogId: integer|Long expected'; + if (message.serviceIdRange != null && message.hasOwnProperty('serviceIdRange')) { + if (!Array.isArray(message.serviceIdRange)) return 'serviceIdRange: array expected'; for (let i = 0; i < message.serviceIdRange.length; ++i) { let error = $root.ServiceLogger.IdRange.verify(message.serviceIdRange[i]); - if (error) - return "serviceIdRange." + error; + if (error) return 'serviceIdRange.' + error; } } - if (message.resourceIdRange != null && message.hasOwnProperty("resourceIdRange")) { - if (!Array.isArray(message.resourceIdRange)) - return "resourceIdRange: array expected"; + if (message.resourceIdRange != null && message.hasOwnProperty('resourceIdRange')) { + if (!Array.isArray(message.resourceIdRange)) return 'resourceIdRange: array expected'; for (let i = 0; i < message.resourceIdRange.length; ++i) { let error = $root.ServiceLogger.IdRange.verify(message.resourceIdRange[i]); - if (error) - return "resourceIdRange." + error; + if (error) return 'resourceIdRange.' + error; } } - if (message.startDateTime != null && message.hasOwnProperty("startDateTime")) - if (!$util.isString(message.startDateTime)) - return "startDateTime: string expected"; - if (message.endDateTime != null && message.hasOwnProperty("endDateTime")) - if (!$util.isString(message.endDateTime)) - return "endDateTime: string expected"; + if (message.startDateTime != null && message.hasOwnProperty('startDateTime')) + if (!$util.isString(message.startDateTime)) return 'startDateTime: string expected'; + if (message.endDateTime != null && message.hasOwnProperty('endDateTime')) + if (!$util.isString(message.endDateTime)) return 'endDateTime: string expected'; return null; }; @@ -198147,44 +206045,41 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @returns {ServiceLogger.ServiceLogSpecifier} ServiceLogSpecifier */ ServiceLogSpecifier.fromObject = function fromObject(object) { - if (object instanceof $root.ServiceLogger.ServiceLogSpecifier) - return object; + if (object instanceof $root.ServiceLogger.ServiceLogSpecifier) return object; let message = new $root.ServiceLogger.ServiceLogSpecifier(); - if (object.all != null) - message.all = Boolean(object.all); + if (object.all != null) message.all = Boolean(object.all); if (object.serviceLogId != null) - if ($util.Long) - (message.serviceLogId = $util.Long.fromValue(object.serviceLogId)).unsigned = true; - else if (typeof object.serviceLogId === "string") + if ($util.Long) (message.serviceLogId = $util.Long.fromValue(object.serviceLogId)).unsigned = true; + else if (typeof object.serviceLogId === 'string') message.serviceLogId = parseInt(object.serviceLogId, 10); - else if (typeof object.serviceLogId === "number") - message.serviceLogId = object.serviceLogId; - else if (typeof object.serviceLogId === "object") - message.serviceLogId = new $util.LongBits(object.serviceLogId.low >>> 0, object.serviceLogId.high >>> 0).toNumber(true); + else if (typeof object.serviceLogId === 'number') message.serviceLogId = object.serviceLogId; + else if (typeof object.serviceLogId === 'object') + message.serviceLogId = new $util.LongBits( + object.serviceLogId.low >>> 0, + object.serviceLogId.high >>> 0 + ).toNumber(true); if (object.serviceIdRange) { if (!Array.isArray(object.serviceIdRange)) - throw TypeError(".ServiceLogger.ServiceLogSpecifier.serviceIdRange: array expected"); + throw TypeError('.ServiceLogger.ServiceLogSpecifier.serviceIdRange: array expected'); message.serviceIdRange = []; for (let i = 0; i < object.serviceIdRange.length; ++i) { - if (typeof object.serviceIdRange[i] !== "object") - throw TypeError(".ServiceLogger.ServiceLogSpecifier.serviceIdRange: object expected"); + if (typeof object.serviceIdRange[i] !== 'object') + throw TypeError('.ServiceLogger.ServiceLogSpecifier.serviceIdRange: object expected'); message.serviceIdRange[i] = $root.ServiceLogger.IdRange.fromObject(object.serviceIdRange[i]); } } if (object.resourceIdRange) { if (!Array.isArray(object.resourceIdRange)) - throw TypeError(".ServiceLogger.ServiceLogSpecifier.resourceIdRange: array expected"); + throw TypeError('.ServiceLogger.ServiceLogSpecifier.resourceIdRange: array expected'); message.resourceIdRange = []; for (let i = 0; i < object.resourceIdRange.length; ++i) { - if (typeof object.resourceIdRange[i] !== "object") - throw TypeError(".ServiceLogger.ServiceLogSpecifier.resourceIdRange: object expected"); + if (typeof object.resourceIdRange[i] !== 'object') + throw TypeError('.ServiceLogger.ServiceLogSpecifier.resourceIdRange: object expected'); message.resourceIdRange[i] = $root.ServiceLogger.IdRange.fromObject(object.resourceIdRange[i]); } } - if (object.startDateTime != null) - message.startDateTime = String(object.startDateTime); - if (object.endDateTime != null) - message.endDateTime = String(object.endDateTime); + if (object.startDateTime != null) message.startDateTime = String(object.startDateTime); + if (object.endDateTime != null) message.endDateTime = String(object.endDateTime); return message; }; @@ -198198,8 +206093,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @returns {Object.} Plain object */ ServiceLogSpecifier.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.arrays || options.defaults) { object.serviceIdRange = []; @@ -198209,19 +206103,27 @@ export const ServiceLogger = $root.ServiceLogger = (() => { object.all = false; if ($util.Long) { let long = new $util.Long(0, 0, true); - object.serviceLogId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.serviceLogId = options.longs === String ? "0" : 0; - object.startDateTime = ""; - object.endDateTime = ""; - } - if (message.all != null && message.hasOwnProperty("all")) - object.all = message.all; - if (message.serviceLogId != null && message.hasOwnProperty("serviceLogId")) - if (typeof message.serviceLogId === "number") - object.serviceLogId = options.longs === String ? String(message.serviceLogId) : message.serviceLogId; + object.serviceLogId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.serviceLogId = options.longs === String ? '0' : 0; + object.startDateTime = ''; + object.endDateTime = ''; + } + if (message.all != null && message.hasOwnProperty('all')) object.all = message.all; + if (message.serviceLogId != null && message.hasOwnProperty('serviceLogId')) + if (typeof message.serviceLogId === 'number') + object.serviceLogId = + options.longs === String ? String(message.serviceLogId) : message.serviceLogId; else - object.serviceLogId = options.longs === String ? $util.Long.prototype.toString.call(message.serviceLogId) : options.longs === Number ? new $util.LongBits(message.serviceLogId.low >>> 0, message.serviceLogId.high >>> 0).toNumber(true) : message.serviceLogId; + object.serviceLogId = + options.longs === String + ? $util.Long.prototype.toString.call(message.serviceLogId) + : options.longs === Number + ? new $util.LongBits( + message.serviceLogId.low >>> 0, + message.serviceLogId.high >>> 0 + ).toNumber(true) + : message.serviceLogId; if (message.serviceIdRange && message.serviceIdRange.length) { object.serviceIdRange = []; for (let j = 0; j < message.serviceIdRange.length; ++j) @@ -198230,11 +206132,14 @@ export const ServiceLogger = $root.ServiceLogger = (() => { if (message.resourceIdRange && message.resourceIdRange.length) { object.resourceIdRange = []; for (let j = 0; j < message.resourceIdRange.length; ++j) - object.resourceIdRange[j] = $root.ServiceLogger.IdRange.toObject(message.resourceIdRange[j], options); + object.resourceIdRange[j] = $root.ServiceLogger.IdRange.toObject( + message.resourceIdRange[j], + options + ); } - if (message.startDateTime != null && message.hasOwnProperty("startDateTime")) + if (message.startDateTime != null && message.hasOwnProperty('startDateTime')) object.startDateTime = message.startDateTime; - if (message.endDateTime != null && message.hasOwnProperty("endDateTime")) + if (message.endDateTime != null && message.hasOwnProperty('endDateTime')) object.endDateTime = message.endDateTime; return object; }; @@ -198260,16 +206165,15 @@ export const ServiceLogger = $root.ServiceLogger = (() => { */ ServiceLogSpecifier.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/ServiceLogger.ServiceLogSpecifier"; + return typeUrlPrefix + '/ServiceLogger.ServiceLogSpecifier'; }; return ServiceLogSpecifier; })(); - ServiceLogger.ServiceLogGetRequest = (function() { - + ServiceLogger.ServiceLogGetRequest = (function () { /** * Properties of a ServiceLogGetRequest. * @memberof ServiceLogger @@ -198289,8 +206193,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { this.serviceLogSpecifier = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -198323,11 +206226,13 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @returns {$protobuf.Writer} Writer */ ServiceLogGetRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.serviceLogSpecifier != null && message.serviceLogSpecifier.length) for (let i = 0; i < message.serviceLogSpecifier.length; ++i) - $root.ServiceLogger.ServiceLogSpecifier.encode(message.serviceLogSpecifier[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.ServiceLogger.ServiceLogSpecifier.encode( + message.serviceLogSpecifier[i], + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); return writer; }; @@ -198356,21 +206261,23 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ServiceLogGetRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ServiceLogger.ServiceLogGetRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.ServiceLogger.ServiceLogGetRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { if (!(message.serviceLogSpecifier && message.serviceLogSpecifier.length)) message.serviceLogSpecifier = []; - message.serviceLogSpecifier.push($root.ServiceLogger.ServiceLogSpecifier.decode(reader, reader.uint32())); + message.serviceLogSpecifier.push( + $root.ServiceLogger.ServiceLogSpecifier.decode(reader, reader.uint32()) + ); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -198387,8 +206294,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ServiceLogGetRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -198401,15 +206307,12 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ ServiceLogGetRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.serviceLogSpecifier != null && message.hasOwnProperty("serviceLogSpecifier")) { - if (!Array.isArray(message.serviceLogSpecifier)) - return "serviceLogSpecifier: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.serviceLogSpecifier != null && message.hasOwnProperty('serviceLogSpecifier')) { + if (!Array.isArray(message.serviceLogSpecifier)) return 'serviceLogSpecifier: array expected'; for (let i = 0; i < message.serviceLogSpecifier.length; ++i) { let error = $root.ServiceLogger.ServiceLogSpecifier.verify(message.serviceLogSpecifier[i]); - if (error) - return "serviceLogSpecifier." + error; + if (error) return 'serviceLogSpecifier.' + error; } } return null; @@ -198424,17 +206327,18 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @returns {ServiceLogger.ServiceLogGetRequest} ServiceLogGetRequest */ ServiceLogGetRequest.fromObject = function fromObject(object) { - if (object instanceof $root.ServiceLogger.ServiceLogGetRequest) - return object; + if (object instanceof $root.ServiceLogger.ServiceLogGetRequest) return object; let message = new $root.ServiceLogger.ServiceLogGetRequest(); if (object.serviceLogSpecifier) { if (!Array.isArray(object.serviceLogSpecifier)) - throw TypeError(".ServiceLogger.ServiceLogGetRequest.serviceLogSpecifier: array expected"); + throw TypeError('.ServiceLogger.ServiceLogGetRequest.serviceLogSpecifier: array expected'); message.serviceLogSpecifier = []; for (let i = 0; i < object.serviceLogSpecifier.length; ++i) { - if (typeof object.serviceLogSpecifier[i] !== "object") - throw TypeError(".ServiceLogger.ServiceLogGetRequest.serviceLogSpecifier: object expected"); - message.serviceLogSpecifier[i] = $root.ServiceLogger.ServiceLogSpecifier.fromObject(object.serviceLogSpecifier[i]); + if (typeof object.serviceLogSpecifier[i] !== 'object') + throw TypeError('.ServiceLogger.ServiceLogGetRequest.serviceLogSpecifier: object expected'); + message.serviceLogSpecifier[i] = $root.ServiceLogger.ServiceLogSpecifier.fromObject( + object.serviceLogSpecifier[i] + ); } } return message; @@ -198450,15 +206354,16 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @returns {Object.} Plain object */ ServiceLogGetRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.serviceLogSpecifier = []; + if (options.arrays || options.defaults) object.serviceLogSpecifier = []; if (message.serviceLogSpecifier && message.serviceLogSpecifier.length) { object.serviceLogSpecifier = []; for (let j = 0; j < message.serviceLogSpecifier.length; ++j) - object.serviceLogSpecifier[j] = $root.ServiceLogger.ServiceLogSpecifier.toObject(message.serviceLogSpecifier[j], options); + object.serviceLogSpecifier[j] = $root.ServiceLogger.ServiceLogSpecifier.toObject( + message.serviceLogSpecifier[j], + options + ); } return object; }; @@ -198484,16 +206389,15 @@ export const ServiceLogger = $root.ServiceLogger = (() => { */ ServiceLogGetRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/ServiceLogger.ServiceLogGetRequest"; + return typeUrlPrefix + '/ServiceLogger.ServiceLogGetRequest'; }; return ServiceLogGetRequest; })(); - ServiceLogger.ServiceLogRecord = (function() { - + ServiceLogger.ServiceLogRecord = (function () { /** * Properties of a ServiceLogRecord. * @memberof ServiceLogger @@ -198519,8 +206423,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { function ServiceLogRecord(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -198529,7 +206432,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @memberof ServiceLogger.ServiceLogRecord * @instance */ - ServiceLogRecord.prototype.serviceLogId = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + ServiceLogRecord.prototype.serviceLogId = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; /** * ServiceLogRecord serviceInfoId. @@ -198537,7 +206440,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @memberof ServiceLogger.ServiceLogRecord * @instance */ - ServiceLogRecord.prototype.serviceInfoId = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + ServiceLogRecord.prototype.serviceInfoId = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; /** * ServiceLogRecord resourceId. @@ -198545,7 +206448,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @memberof ServiceLogger.ServiceLogRecord * @instance */ - ServiceLogRecord.prototype.resourceId = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + ServiceLogRecord.prototype.resourceId = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; /** * ServiceLogRecord logger. @@ -198553,7 +206456,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @memberof ServiceLogger.ServiceLogRecord * @instance */ - ServiceLogRecord.prototype.logger = ""; + ServiceLogRecord.prototype.logger = ''; /** * ServiceLogRecord logLevel. @@ -198561,7 +206464,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @memberof ServiceLogger.ServiceLogRecord * @instance */ - ServiceLogRecord.prototype.logLevel = ""; + ServiceLogRecord.prototype.logLevel = ''; /** * ServiceLogRecord message. @@ -198569,7 +206472,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @memberof ServiceLogger.ServiceLogRecord * @instance */ - ServiceLogRecord.prototype.message = ""; + ServiceLogRecord.prototype.message = ''; /** * ServiceLogRecord exception. @@ -198577,7 +206480,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @memberof ServiceLogger.ServiceLogRecord * @instance */ - ServiceLogRecord.prototype.exception = ""; + ServiceLogRecord.prototype.exception = ''; /** * ServiceLogRecord dateCreated. @@ -198585,7 +206488,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @memberof ServiceLogger.ServiceLogRecord * @instance */ - ServiceLogRecord.prototype.dateCreated = ""; + ServiceLogRecord.prototype.dateCreated = ''; /** * Creates a new ServiceLogRecord instance using the specified properties. @@ -198609,24 +206512,23 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @returns {$protobuf.Writer} Writer */ ServiceLogRecord.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.serviceLogId != null && Object.hasOwnProperty.call(message, "serviceLogId")) - writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.serviceLogId); - if (message.serviceInfoId != null && Object.hasOwnProperty.call(message, "serviceInfoId")) - writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.serviceInfoId); - if (message.resourceId != null && Object.hasOwnProperty.call(message, "resourceId")) - writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.resourceId); - if (message.logger != null && Object.hasOwnProperty.call(message, "logger")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.logger); - if (message.logLevel != null && Object.hasOwnProperty.call(message, "logLevel")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.logLevel); - if (message.message != null && Object.hasOwnProperty.call(message, "message")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.message); - if (message.exception != null && Object.hasOwnProperty.call(message, "exception")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.exception); - if (message.dateCreated != null && Object.hasOwnProperty.call(message, "dateCreated")) - writer.uint32(/* id 8, wireType 2 =*/66).string(message.dateCreated); + if (!writer) writer = $Writer.create(); + if (message.serviceLogId != null && Object.hasOwnProperty.call(message, 'serviceLogId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).uint64(message.serviceLogId); + if (message.serviceInfoId != null && Object.hasOwnProperty.call(message, 'serviceInfoId')) + writer.uint32(/* id 2, wireType 0 =*/ 16).uint64(message.serviceInfoId); + if (message.resourceId != null && Object.hasOwnProperty.call(message, 'resourceId')) + writer.uint32(/* id 3, wireType 0 =*/ 24).uint64(message.resourceId); + if (message.logger != null && Object.hasOwnProperty.call(message, 'logger')) + writer.uint32(/* id 4, wireType 2 =*/ 34).string(message.logger); + if (message.logLevel != null && Object.hasOwnProperty.call(message, 'logLevel')) + writer.uint32(/* id 5, wireType 2 =*/ 42).string(message.logLevel); + if (message.message != null && Object.hasOwnProperty.call(message, 'message')) + writer.uint32(/* id 6, wireType 2 =*/ 50).string(message.message); + if (message.exception != null && Object.hasOwnProperty.call(message, 'exception')) + writer.uint32(/* id 7, wireType 2 =*/ 58).string(message.exception); + if (message.dateCreated != null && Object.hasOwnProperty.call(message, 'dateCreated')) + writer.uint32(/* id 8, wireType 2 =*/ 66).string(message.dateCreated); return writer; }; @@ -198655,47 +206557,47 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ServiceLogRecord.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ServiceLogger.ServiceLogRecord(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.ServiceLogger.ServiceLogRecord(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.serviceLogId = reader.uint64(); break; } - case 2: { + case 2: { message.serviceInfoId = reader.uint64(); break; } - case 3: { + case 3: { message.resourceId = reader.uint64(); break; } - case 4: { + case 4: { message.logger = reader.string(); break; } - case 5: { + case 5: { message.logLevel = reader.string(); break; } - case 6: { + case 6: { message.message = reader.string(); break; } - case 7: { + case 7: { message.exception = reader.string(); break; } - case 8: { + case 8: { message.dateCreated = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -198712,8 +206614,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ServiceLogRecord.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -198726,32 +206627,47 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ ServiceLogRecord.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.serviceLogId != null && message.hasOwnProperty("serviceLogId")) - if (!$util.isInteger(message.serviceLogId) && !(message.serviceLogId && $util.isInteger(message.serviceLogId.low) && $util.isInteger(message.serviceLogId.high))) - return "serviceLogId: integer|Long expected"; - if (message.serviceInfoId != null && message.hasOwnProperty("serviceInfoId")) - if (!$util.isInteger(message.serviceInfoId) && !(message.serviceInfoId && $util.isInteger(message.serviceInfoId.low) && $util.isInteger(message.serviceInfoId.high))) - return "serviceInfoId: integer|Long expected"; - if (message.resourceId != null && message.hasOwnProperty("resourceId")) - if (!$util.isInteger(message.resourceId) && !(message.resourceId && $util.isInteger(message.resourceId.low) && $util.isInteger(message.resourceId.high))) - return "resourceId: integer|Long expected"; - if (message.logger != null && message.hasOwnProperty("logger")) - if (!$util.isString(message.logger)) - return "logger: string expected"; - if (message.logLevel != null && message.hasOwnProperty("logLevel")) - if (!$util.isString(message.logLevel)) - return "logLevel: string expected"; - if (message.message != null && message.hasOwnProperty("message")) - if (!$util.isString(message.message)) - return "message: string expected"; - if (message.exception != null && message.hasOwnProperty("exception")) - if (!$util.isString(message.exception)) - return "exception: string expected"; - if (message.dateCreated != null && message.hasOwnProperty("dateCreated")) - if (!$util.isString(message.dateCreated)) - return "dateCreated: string expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.serviceLogId != null && message.hasOwnProperty('serviceLogId')) + if ( + !$util.isInteger(message.serviceLogId) && + !( + message.serviceLogId && + $util.isInteger(message.serviceLogId.low) && + $util.isInteger(message.serviceLogId.high) + ) + ) + return 'serviceLogId: integer|Long expected'; + if (message.serviceInfoId != null && message.hasOwnProperty('serviceInfoId')) + if ( + !$util.isInteger(message.serviceInfoId) && + !( + message.serviceInfoId && + $util.isInteger(message.serviceInfoId.low) && + $util.isInteger(message.serviceInfoId.high) + ) + ) + return 'serviceInfoId: integer|Long expected'; + if (message.resourceId != null && message.hasOwnProperty('resourceId')) + if ( + !$util.isInteger(message.resourceId) && + !( + message.resourceId && + $util.isInteger(message.resourceId.low) && + $util.isInteger(message.resourceId.high) + ) + ) + return 'resourceId: integer|Long expected'; + if (message.logger != null && message.hasOwnProperty('logger')) + if (!$util.isString(message.logger)) return 'logger: string expected'; + if (message.logLevel != null && message.hasOwnProperty('logLevel')) + if (!$util.isString(message.logLevel)) return 'logLevel: string expected'; + if (message.message != null && message.hasOwnProperty('message')) + if (!$util.isString(message.message)) return 'message: string expected'; + if (message.exception != null && message.hasOwnProperty('exception')) + if (!$util.isString(message.exception)) return 'exception: string expected'; + if (message.dateCreated != null && message.hasOwnProperty('dateCreated')) + if (!$util.isString(message.dateCreated)) return 'dateCreated: string expected'; return null; }; @@ -198764,46 +206680,42 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @returns {ServiceLogger.ServiceLogRecord} ServiceLogRecord */ ServiceLogRecord.fromObject = function fromObject(object) { - if (object instanceof $root.ServiceLogger.ServiceLogRecord) - return object; + if (object instanceof $root.ServiceLogger.ServiceLogRecord) return object; let message = new $root.ServiceLogger.ServiceLogRecord(); if (object.serviceLogId != null) - if ($util.Long) - (message.serviceLogId = $util.Long.fromValue(object.serviceLogId)).unsigned = true; - else if (typeof object.serviceLogId === "string") + if ($util.Long) (message.serviceLogId = $util.Long.fromValue(object.serviceLogId)).unsigned = true; + else if (typeof object.serviceLogId === 'string') message.serviceLogId = parseInt(object.serviceLogId, 10); - else if (typeof object.serviceLogId === "number") - message.serviceLogId = object.serviceLogId; - else if (typeof object.serviceLogId === "object") - message.serviceLogId = new $util.LongBits(object.serviceLogId.low >>> 0, object.serviceLogId.high >>> 0).toNumber(true); + else if (typeof object.serviceLogId === 'number') message.serviceLogId = object.serviceLogId; + else if (typeof object.serviceLogId === 'object') + message.serviceLogId = new $util.LongBits( + object.serviceLogId.low >>> 0, + object.serviceLogId.high >>> 0 + ).toNumber(true); if (object.serviceInfoId != null) - if ($util.Long) - (message.serviceInfoId = $util.Long.fromValue(object.serviceInfoId)).unsigned = true; - else if (typeof object.serviceInfoId === "string") + if ($util.Long) (message.serviceInfoId = $util.Long.fromValue(object.serviceInfoId)).unsigned = true; + else if (typeof object.serviceInfoId === 'string') message.serviceInfoId = parseInt(object.serviceInfoId, 10); - else if (typeof object.serviceInfoId === "number") - message.serviceInfoId = object.serviceInfoId; - else if (typeof object.serviceInfoId === "object") - message.serviceInfoId = new $util.LongBits(object.serviceInfoId.low >>> 0, object.serviceInfoId.high >>> 0).toNumber(true); + else if (typeof object.serviceInfoId === 'number') message.serviceInfoId = object.serviceInfoId; + else if (typeof object.serviceInfoId === 'object') + message.serviceInfoId = new $util.LongBits( + object.serviceInfoId.low >>> 0, + object.serviceInfoId.high >>> 0 + ).toNumber(true); if (object.resourceId != null) - if ($util.Long) - (message.resourceId = $util.Long.fromValue(object.resourceId)).unsigned = true; - else if (typeof object.resourceId === "string") - message.resourceId = parseInt(object.resourceId, 10); - else if (typeof object.resourceId === "number") - message.resourceId = object.resourceId; - else if (typeof object.resourceId === "object") - message.resourceId = new $util.LongBits(object.resourceId.low >>> 0, object.resourceId.high >>> 0).toNumber(true); - if (object.logger != null) - message.logger = String(object.logger); - if (object.logLevel != null) - message.logLevel = String(object.logLevel); - if (object.message != null) - message.message = String(object.message); - if (object.exception != null) - message.exception = String(object.exception); - if (object.dateCreated != null) - message.dateCreated = String(object.dateCreated); + if ($util.Long) (message.resourceId = $util.Long.fromValue(object.resourceId)).unsigned = true; + else if (typeof object.resourceId === 'string') message.resourceId = parseInt(object.resourceId, 10); + else if (typeof object.resourceId === 'number') message.resourceId = object.resourceId; + else if (typeof object.resourceId === 'object') + message.resourceId = new $util.LongBits( + object.resourceId.low >>> 0, + object.resourceId.high >>> 0 + ).toNumber(true); + if (object.logger != null) message.logger = String(object.logger); + if (object.logLevel != null) message.logLevel = String(object.logLevel); + if (object.message != null) message.message = String(object.message); + if (object.exception != null) message.exception = String(object.exception); + if (object.dateCreated != null) message.dateCreated = String(object.dateCreated); return message; }; @@ -198817,55 +206729,76 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @returns {Object.} Plain object */ ServiceLogRecord.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, true); - object.serviceLogId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.serviceLogId = options.longs === String ? "0" : 0; + object.serviceLogId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.serviceLogId = options.longs === String ? '0' : 0; if ($util.Long) { let long = new $util.Long(0, 0, true); - object.serviceInfoId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.serviceInfoId = options.longs === String ? "0" : 0; + object.serviceInfoId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.serviceInfoId = options.longs === String ? '0' : 0; if ($util.Long) { let long = new $util.Long(0, 0, true); - object.resourceId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.resourceId = options.longs === String ? "0" : 0; - object.logger = ""; - object.logLevel = ""; - object.message = ""; - object.exception = ""; - object.dateCreated = ""; - } - if (message.serviceLogId != null && message.hasOwnProperty("serviceLogId")) - if (typeof message.serviceLogId === "number") - object.serviceLogId = options.longs === String ? String(message.serviceLogId) : message.serviceLogId; + object.resourceId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.resourceId = options.longs === String ? '0' : 0; + object.logger = ''; + object.logLevel = ''; + object.message = ''; + object.exception = ''; + object.dateCreated = ''; + } + if (message.serviceLogId != null && message.hasOwnProperty('serviceLogId')) + if (typeof message.serviceLogId === 'number') + object.serviceLogId = + options.longs === String ? String(message.serviceLogId) : message.serviceLogId; else - object.serviceLogId = options.longs === String ? $util.Long.prototype.toString.call(message.serviceLogId) : options.longs === Number ? new $util.LongBits(message.serviceLogId.low >>> 0, message.serviceLogId.high >>> 0).toNumber(true) : message.serviceLogId; - if (message.serviceInfoId != null && message.hasOwnProperty("serviceInfoId")) - if (typeof message.serviceInfoId === "number") - object.serviceInfoId = options.longs === String ? String(message.serviceInfoId) : message.serviceInfoId; + object.serviceLogId = + options.longs === String + ? $util.Long.prototype.toString.call(message.serviceLogId) + : options.longs === Number + ? new $util.LongBits( + message.serviceLogId.low >>> 0, + message.serviceLogId.high >>> 0 + ).toNumber(true) + : message.serviceLogId; + if (message.serviceInfoId != null && message.hasOwnProperty('serviceInfoId')) + if (typeof message.serviceInfoId === 'number') + object.serviceInfoId = + options.longs === String ? String(message.serviceInfoId) : message.serviceInfoId; else - object.serviceInfoId = options.longs === String ? $util.Long.prototype.toString.call(message.serviceInfoId) : options.longs === Number ? new $util.LongBits(message.serviceInfoId.low >>> 0, message.serviceInfoId.high >>> 0).toNumber(true) : message.serviceInfoId; - if (message.resourceId != null && message.hasOwnProperty("resourceId")) - if (typeof message.resourceId === "number") + object.serviceInfoId = + options.longs === String + ? $util.Long.prototype.toString.call(message.serviceInfoId) + : options.longs === Number + ? new $util.LongBits( + message.serviceInfoId.low >>> 0, + message.serviceInfoId.high >>> 0 + ).toNumber(true) + : message.serviceInfoId; + if (message.resourceId != null && message.hasOwnProperty('resourceId')) + if (typeof message.resourceId === 'number') object.resourceId = options.longs === String ? String(message.resourceId) : message.resourceId; else - object.resourceId = options.longs === String ? $util.Long.prototype.toString.call(message.resourceId) : options.longs === Number ? new $util.LongBits(message.resourceId.low >>> 0, message.resourceId.high >>> 0).toNumber(true) : message.resourceId; - if (message.logger != null && message.hasOwnProperty("logger")) - object.logger = message.logger; - if (message.logLevel != null && message.hasOwnProperty("logLevel")) - object.logLevel = message.logLevel; - if (message.message != null && message.hasOwnProperty("message")) - object.message = message.message; - if (message.exception != null && message.hasOwnProperty("exception")) - object.exception = message.exception; - if (message.dateCreated != null && message.hasOwnProperty("dateCreated")) + object.resourceId = + options.longs === String + ? $util.Long.prototype.toString.call(message.resourceId) + : options.longs === Number + ? new $util.LongBits( + message.resourceId.low >>> 0, + message.resourceId.high >>> 0 + ).toNumber(true) + : message.resourceId; + if (message.logger != null && message.hasOwnProperty('logger')) object.logger = message.logger; + if (message.logLevel != null && message.hasOwnProperty('logLevel')) object.logLevel = message.logLevel; + if (message.message != null && message.hasOwnProperty('message')) object.message = message.message; + if (message.exception != null && message.hasOwnProperty('exception')) object.exception = message.exception; + if (message.dateCreated != null && message.hasOwnProperty('dateCreated')) object.dateCreated = message.dateCreated; return object; }; @@ -198891,16 +206824,15 @@ export const ServiceLogger = $root.ServiceLogger = (() => { */ ServiceLogRecord.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/ServiceLogger.ServiceLogRecord"; + return typeUrlPrefix + '/ServiceLogger.ServiceLogRecord'; }; return ServiceLogRecord; })(); - ServiceLogger.ServiceLogAddRequest = (function() { - + ServiceLogger.ServiceLogAddRequest = (function () { /** * Properties of a ServiceLogAddRequest. * @memberof ServiceLogger @@ -198920,8 +206852,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { this.entry = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -198954,11 +206885,13 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @returns {$protobuf.Writer} Writer */ ServiceLogAddRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.entry != null && message.entry.length) for (let i = 0; i < message.entry.length; ++i) - $root.ServiceLogger.ServiceLogRecord.encode(message.entry[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.ServiceLogger.ServiceLogRecord.encode( + message.entry[i], + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); return writer; }; @@ -198987,21 +206920,20 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ServiceLogAddRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ServiceLogger.ServiceLogAddRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.ServiceLogger.ServiceLogAddRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (!(message.entry && message.entry.length)) - message.entry = []; + case 1: { + if (!(message.entry && message.entry.length)) message.entry = []; message.entry.push($root.ServiceLogger.ServiceLogRecord.decode(reader, reader.uint32())); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -199018,8 +206950,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ServiceLogAddRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -199032,15 +206963,12 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ ServiceLogAddRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.entry != null && message.hasOwnProperty("entry")) { - if (!Array.isArray(message.entry)) - return "entry: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.entry != null && message.hasOwnProperty('entry')) { + if (!Array.isArray(message.entry)) return 'entry: array expected'; for (let i = 0; i < message.entry.length; ++i) { let error = $root.ServiceLogger.ServiceLogRecord.verify(message.entry[i]); - if (error) - return "entry." + error; + if (error) return 'entry.' + error; } } return null; @@ -199055,16 +206983,15 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @returns {ServiceLogger.ServiceLogAddRequest} ServiceLogAddRequest */ ServiceLogAddRequest.fromObject = function fromObject(object) { - if (object instanceof $root.ServiceLogger.ServiceLogAddRequest) - return object; + if (object instanceof $root.ServiceLogger.ServiceLogAddRequest) return object; let message = new $root.ServiceLogger.ServiceLogAddRequest(); if (object.entry) { if (!Array.isArray(object.entry)) - throw TypeError(".ServiceLogger.ServiceLogAddRequest.entry: array expected"); + throw TypeError('.ServiceLogger.ServiceLogAddRequest.entry: array expected'); message.entry = []; for (let i = 0; i < object.entry.length; ++i) { - if (typeof object.entry[i] !== "object") - throw TypeError(".ServiceLogger.ServiceLogAddRequest.entry: object expected"); + if (typeof object.entry[i] !== 'object') + throw TypeError('.ServiceLogger.ServiceLogAddRequest.entry: object expected'); message.entry[i] = $root.ServiceLogger.ServiceLogRecord.fromObject(object.entry[i]); } } @@ -199081,11 +207008,9 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @returns {Object.} Plain object */ ServiceLogAddRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.entry = []; + if (options.arrays || options.defaults) object.entry = []; if (message.entry && message.entry.length) { object.entry = []; for (let j = 0; j < message.entry.length; ++j) @@ -199115,16 +207040,15 @@ export const ServiceLogger = $root.ServiceLogger = (() => { */ ServiceLogAddRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/ServiceLogger.ServiceLogAddRequest"; + return typeUrlPrefix + '/ServiceLogger.ServiceLogAddRequest'; }; return ServiceLogAddRequest; })(); - ServiceLogger.ServiceLogResponse = (function() { - + ServiceLogger.ServiceLogResponse = (function () { /** * Properties of a ServiceLogResponse. * @memberof ServiceLogger @@ -199144,8 +207068,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { this.entry = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -199178,11 +207101,13 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @returns {$protobuf.Writer} Writer */ ServiceLogResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.entry != null && message.entry.length) for (let i = 0; i < message.entry.length; ++i) - $root.ServiceLogger.ServiceLogRecord.encode(message.entry[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.ServiceLogger.ServiceLogRecord.encode( + message.entry[i], + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); return writer; }; @@ -199211,21 +207136,20 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ServiceLogResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ServiceLogger.ServiceLogResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.ServiceLogger.ServiceLogResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (!(message.entry && message.entry.length)) - message.entry = []; + case 1: { + if (!(message.entry && message.entry.length)) message.entry = []; message.entry.push($root.ServiceLogger.ServiceLogRecord.decode(reader, reader.uint32())); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -199242,8 +207166,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ServiceLogResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -199256,15 +207179,12 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ ServiceLogResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.entry != null && message.hasOwnProperty("entry")) { - if (!Array.isArray(message.entry)) - return "entry: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.entry != null && message.hasOwnProperty('entry')) { + if (!Array.isArray(message.entry)) return 'entry: array expected'; for (let i = 0; i < message.entry.length; ++i) { let error = $root.ServiceLogger.ServiceLogRecord.verify(message.entry[i]); - if (error) - return "entry." + error; + if (error) return 'entry.' + error; } } return null; @@ -199279,16 +207199,15 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @returns {ServiceLogger.ServiceLogResponse} ServiceLogResponse */ ServiceLogResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ServiceLogger.ServiceLogResponse) - return object; + if (object instanceof $root.ServiceLogger.ServiceLogResponse) return object; let message = new $root.ServiceLogger.ServiceLogResponse(); if (object.entry) { if (!Array.isArray(object.entry)) - throw TypeError(".ServiceLogger.ServiceLogResponse.entry: array expected"); + throw TypeError('.ServiceLogger.ServiceLogResponse.entry: array expected'); message.entry = []; for (let i = 0; i < object.entry.length; ++i) { - if (typeof object.entry[i] !== "object") - throw TypeError(".ServiceLogger.ServiceLogResponse.entry: object expected"); + if (typeof object.entry[i] !== 'object') + throw TypeError('.ServiceLogger.ServiceLogResponse.entry: object expected'); message.entry[i] = $root.ServiceLogger.ServiceLogRecord.fromObject(object.entry[i]); } } @@ -199305,11 +207224,9 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @returns {Object.} Plain object */ ServiceLogResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.entry = []; + if (options.arrays || options.defaults) object.entry = []; if (message.entry && message.entry.length) { object.entry = []; for (let j = 0; j < message.entry.length; ++j) @@ -199339,16 +207256,15 @@ export const ServiceLogger = $root.ServiceLogger = (() => { */ ServiceLogResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/ServiceLogger.ServiceLogResponse"; + return typeUrlPrefix + '/ServiceLogger.ServiceLogResponse'; }; return ServiceLogResponse; })(); - ServiceLogger.ServiceLogClearRequest = (function() { - + ServiceLogger.ServiceLogClearRequest = (function () { /** * Properties of a ServiceLogClearRequest. * @memberof ServiceLogger @@ -199372,8 +207288,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { this.resourceIdRange = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -199390,7 +207305,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @memberof ServiceLogger.ServiceLogClearRequest * @instance */ - ServiceLogClearRequest.prototype.serviceTypeId = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + ServiceLogClearRequest.prototype.serviceTypeId = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; /** * ServiceLogClearRequest daysOld. @@ -199438,19 +207353,21 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @returns {$protobuf.Writer} Writer */ ServiceLogClearRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.useDefaults != null && Object.hasOwnProperty.call(message, "useDefaults")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.useDefaults); - if (message.serviceTypeId != null && Object.hasOwnProperty.call(message, "serviceTypeId")) - writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.serviceTypeId); - if (message.daysOld != null && Object.hasOwnProperty.call(message, "daysOld")) - writer.uint32(/* id 3, wireType 0 =*/24).uint32(message.daysOld); - if (message.hoursOld != null && Object.hasOwnProperty.call(message, "hoursOld")) - writer.uint32(/* id 4, wireType 0 =*/32).uint32(message.hoursOld); + if (!writer) writer = $Writer.create(); + if (message.useDefaults != null && Object.hasOwnProperty.call(message, 'useDefaults')) + writer.uint32(/* id 1, wireType 0 =*/ 8).bool(message.useDefaults); + if (message.serviceTypeId != null && Object.hasOwnProperty.call(message, 'serviceTypeId')) + writer.uint32(/* id 2, wireType 0 =*/ 16).uint64(message.serviceTypeId); + if (message.daysOld != null && Object.hasOwnProperty.call(message, 'daysOld')) + writer.uint32(/* id 3, wireType 0 =*/ 24).uint32(message.daysOld); + if (message.hoursOld != null && Object.hasOwnProperty.call(message, 'hoursOld')) + writer.uint32(/* id 4, wireType 0 =*/ 32).uint32(message.hoursOld); if (message.resourceIdRange != null && message.resourceIdRange.length) for (let i = 0; i < message.resourceIdRange.length; ++i) - $root.ServiceLogger.IdRange.encode(message.resourceIdRange[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + $root.ServiceLogger.IdRange.encode( + message.resourceIdRange[i], + writer.uint32(/* id 5, wireType 2 =*/ 42).fork() + ).ldelim(); return writer; }; @@ -199479,37 +207396,36 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ServiceLogClearRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ServiceLogger.ServiceLogClearRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.ServiceLogger.ServiceLogClearRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.useDefaults = reader.bool(); break; } - case 2: { + case 2: { message.serviceTypeId = reader.uint64(); break; } - case 3: { + case 3: { message.daysOld = reader.uint32(); break; } - case 4: { + case 4: { message.hoursOld = reader.uint32(); break; } - case 5: { - if (!(message.resourceIdRange && message.resourceIdRange.length)) - message.resourceIdRange = []; + case 5: { + if (!(message.resourceIdRange && message.resourceIdRange.length)) message.resourceIdRange = []; message.resourceIdRange.push($root.ServiceLogger.IdRange.decode(reader, reader.uint32())); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -199526,8 +207442,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ServiceLogClearRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -199540,27 +207455,28 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ ServiceLogClearRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.useDefaults != null && message.hasOwnProperty("useDefaults")) - if (typeof message.useDefaults !== "boolean") - return "useDefaults: boolean expected"; - if (message.serviceTypeId != null && message.hasOwnProperty("serviceTypeId")) - if (!$util.isInteger(message.serviceTypeId) && !(message.serviceTypeId && $util.isInteger(message.serviceTypeId.low) && $util.isInteger(message.serviceTypeId.high))) - return "serviceTypeId: integer|Long expected"; - if (message.daysOld != null && message.hasOwnProperty("daysOld")) - if (!$util.isInteger(message.daysOld)) - return "daysOld: integer expected"; - if (message.hoursOld != null && message.hasOwnProperty("hoursOld")) - if (!$util.isInteger(message.hoursOld)) - return "hoursOld: integer expected"; - if (message.resourceIdRange != null && message.hasOwnProperty("resourceIdRange")) { - if (!Array.isArray(message.resourceIdRange)) - return "resourceIdRange: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.useDefaults != null && message.hasOwnProperty('useDefaults')) + if (typeof message.useDefaults !== 'boolean') return 'useDefaults: boolean expected'; + if (message.serviceTypeId != null && message.hasOwnProperty('serviceTypeId')) + if ( + !$util.isInteger(message.serviceTypeId) && + !( + message.serviceTypeId && + $util.isInteger(message.serviceTypeId.low) && + $util.isInteger(message.serviceTypeId.high) + ) + ) + return 'serviceTypeId: integer|Long expected'; + if (message.daysOld != null && message.hasOwnProperty('daysOld')) + if (!$util.isInteger(message.daysOld)) return 'daysOld: integer expected'; + if (message.hoursOld != null && message.hasOwnProperty('hoursOld')) + if (!$util.isInteger(message.hoursOld)) return 'hoursOld: integer expected'; + if (message.resourceIdRange != null && message.hasOwnProperty('resourceIdRange')) { + if (!Array.isArray(message.resourceIdRange)) return 'resourceIdRange: array expected'; for (let i = 0; i < message.resourceIdRange.length; ++i) { let error = $root.ServiceLogger.IdRange.verify(message.resourceIdRange[i]); - if (error) - return "resourceIdRange." + error; + if (error) return 'resourceIdRange.' + error; } } return null; @@ -199575,31 +207491,28 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @returns {ServiceLogger.ServiceLogClearRequest} ServiceLogClearRequest */ ServiceLogClearRequest.fromObject = function fromObject(object) { - if (object instanceof $root.ServiceLogger.ServiceLogClearRequest) - return object; + if (object instanceof $root.ServiceLogger.ServiceLogClearRequest) return object; let message = new $root.ServiceLogger.ServiceLogClearRequest(); - if (object.useDefaults != null) - message.useDefaults = Boolean(object.useDefaults); + if (object.useDefaults != null) message.useDefaults = Boolean(object.useDefaults); if (object.serviceTypeId != null) - if ($util.Long) - (message.serviceTypeId = $util.Long.fromValue(object.serviceTypeId)).unsigned = true; - else if (typeof object.serviceTypeId === "string") + if ($util.Long) (message.serviceTypeId = $util.Long.fromValue(object.serviceTypeId)).unsigned = true; + else if (typeof object.serviceTypeId === 'string') message.serviceTypeId = parseInt(object.serviceTypeId, 10); - else if (typeof object.serviceTypeId === "number") - message.serviceTypeId = object.serviceTypeId; - else if (typeof object.serviceTypeId === "object") - message.serviceTypeId = new $util.LongBits(object.serviceTypeId.low >>> 0, object.serviceTypeId.high >>> 0).toNumber(true); - if (object.daysOld != null) - message.daysOld = object.daysOld >>> 0; - if (object.hoursOld != null) - message.hoursOld = object.hoursOld >>> 0; + else if (typeof object.serviceTypeId === 'number') message.serviceTypeId = object.serviceTypeId; + else if (typeof object.serviceTypeId === 'object') + message.serviceTypeId = new $util.LongBits( + object.serviceTypeId.low >>> 0, + object.serviceTypeId.high >>> 0 + ).toNumber(true); + if (object.daysOld != null) message.daysOld = object.daysOld >>> 0; + if (object.hoursOld != null) message.hoursOld = object.hoursOld >>> 0; if (object.resourceIdRange) { if (!Array.isArray(object.resourceIdRange)) - throw TypeError(".ServiceLogger.ServiceLogClearRequest.resourceIdRange: array expected"); + throw TypeError('.ServiceLogger.ServiceLogClearRequest.resourceIdRange: array expected'); message.resourceIdRange = []; for (let i = 0; i < object.resourceIdRange.length; ++i) { - if (typeof object.resourceIdRange[i] !== "object") - throw TypeError(".ServiceLogger.ServiceLogClearRequest.resourceIdRange: object expected"); + if (typeof object.resourceIdRange[i] !== 'object') + throw TypeError('.ServiceLogger.ServiceLogClearRequest.resourceIdRange: object expected'); message.resourceIdRange[i] = $root.ServiceLogger.IdRange.fromObject(object.resourceIdRange[i]); } } @@ -199616,36 +207529,44 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @returns {Object.} Plain object */ ServiceLogClearRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.resourceIdRange = []; + if (options.arrays || options.defaults) object.resourceIdRange = []; if (options.defaults) { object.useDefaults = false; if ($util.Long) { let long = new $util.Long(0, 0, true); - object.serviceTypeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.serviceTypeId = options.longs === String ? "0" : 0; + object.serviceTypeId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.serviceTypeId = options.longs === String ? '0' : 0; object.daysOld = 0; object.hoursOld = 0; } - if (message.useDefaults != null && message.hasOwnProperty("useDefaults")) + if (message.useDefaults != null && message.hasOwnProperty('useDefaults')) object.useDefaults = message.useDefaults; - if (message.serviceTypeId != null && message.hasOwnProperty("serviceTypeId")) - if (typeof message.serviceTypeId === "number") - object.serviceTypeId = options.longs === String ? String(message.serviceTypeId) : message.serviceTypeId; + if (message.serviceTypeId != null && message.hasOwnProperty('serviceTypeId')) + if (typeof message.serviceTypeId === 'number') + object.serviceTypeId = + options.longs === String ? String(message.serviceTypeId) : message.serviceTypeId; else - object.serviceTypeId = options.longs === String ? $util.Long.prototype.toString.call(message.serviceTypeId) : options.longs === Number ? new $util.LongBits(message.serviceTypeId.low >>> 0, message.serviceTypeId.high >>> 0).toNumber(true) : message.serviceTypeId; - if (message.daysOld != null && message.hasOwnProperty("daysOld")) - object.daysOld = message.daysOld; - if (message.hoursOld != null && message.hasOwnProperty("hoursOld")) - object.hoursOld = message.hoursOld; + object.serviceTypeId = + options.longs === String + ? $util.Long.prototype.toString.call(message.serviceTypeId) + : options.longs === Number + ? new $util.LongBits( + message.serviceTypeId.low >>> 0, + message.serviceTypeId.high >>> 0 + ).toNumber(true) + : message.serviceTypeId; + if (message.daysOld != null && message.hasOwnProperty('daysOld')) object.daysOld = message.daysOld; + if (message.hoursOld != null && message.hasOwnProperty('hoursOld')) object.hoursOld = message.hoursOld; if (message.resourceIdRange && message.resourceIdRange.length) { object.resourceIdRange = []; for (let j = 0; j < message.resourceIdRange.length; ++j) - object.resourceIdRange[j] = $root.ServiceLogger.IdRange.toObject(message.resourceIdRange[j], options); + object.resourceIdRange[j] = $root.ServiceLogger.IdRange.toObject( + message.resourceIdRange[j], + options + ); } return object; }; @@ -199671,16 +207592,15 @@ export const ServiceLogger = $root.ServiceLogger = (() => { */ ServiceLogClearRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/ServiceLogger.ServiceLogClearRequest"; + return typeUrlPrefix + '/ServiceLogger.ServiceLogClearRequest'; }; return ServiceLogClearRequest; })(); - ServiceLogger.ServiceLogClearResponse = (function() { - + ServiceLogger.ServiceLogClearResponse = (function () { /** * Properties of a ServiceLogClearResponse. * @memberof ServiceLogger @@ -199704,8 +207624,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { this.resourceIdRange = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -199714,7 +207633,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @memberof ServiceLogger.ServiceLogClearResponse * @instance */ - ServiceLogClearResponse.prototype.serviceTypeId = $util.Long ? $util.Long.fromBits(0,0,true) : 0; + ServiceLogClearResponse.prototype.serviceTypeId = $util.Long ? $util.Long.fromBits(0, 0, true) : 0; /** * ServiceLogClearResponse serviceName. @@ -199722,7 +207641,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @memberof ServiceLogger.ServiceLogClearResponse * @instance */ - ServiceLogClearResponse.prototype.serviceName = ""; + ServiceLogClearResponse.prototype.serviceName = ''; /** * ServiceLogClearResponse resourceIdRange. @@ -199770,19 +207689,21 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @returns {$protobuf.Writer} Writer */ ServiceLogClearResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.serviceTypeId != null && Object.hasOwnProperty.call(message, "serviceTypeId")) - writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.serviceTypeId); - if (message.serviceName != null && Object.hasOwnProperty.call(message, "serviceName")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.serviceName); + if (!writer) writer = $Writer.create(); + if (message.serviceTypeId != null && Object.hasOwnProperty.call(message, 'serviceTypeId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).uint64(message.serviceTypeId); + if (message.serviceName != null && Object.hasOwnProperty.call(message, 'serviceName')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.serviceName); if (message.resourceIdRange != null && message.resourceIdRange.length) for (let i = 0; i < message.resourceIdRange.length; ++i) - $root.ServiceLogger.IdRange.encode(message.resourceIdRange[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.numDeleted != null && Object.hasOwnProperty.call(message, "numDeleted")) - writer.uint32(/* id 4, wireType 0 =*/32).uint32(message.numDeleted); - if (message.numRemaining != null && Object.hasOwnProperty.call(message, "numRemaining")) - writer.uint32(/* id 5, wireType 0 =*/40).uint32(message.numRemaining); + $root.ServiceLogger.IdRange.encode( + message.resourceIdRange[i], + writer.uint32(/* id 3, wireType 2 =*/ 26).fork() + ).ldelim(); + if (message.numDeleted != null && Object.hasOwnProperty.call(message, 'numDeleted')) + writer.uint32(/* id 4, wireType 0 =*/ 32).uint32(message.numDeleted); + if (message.numRemaining != null && Object.hasOwnProperty.call(message, 'numRemaining')) + writer.uint32(/* id 5, wireType 0 =*/ 40).uint32(message.numRemaining); return writer; }; @@ -199811,37 +207732,36 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ServiceLogClearResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.ServiceLogger.ServiceLogClearResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.ServiceLogger.ServiceLogClearResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.serviceTypeId = reader.uint64(); break; } - case 2: { + case 2: { message.serviceName = reader.string(); break; } - case 3: { - if (!(message.resourceIdRange && message.resourceIdRange.length)) - message.resourceIdRange = []; + case 3: { + if (!(message.resourceIdRange && message.resourceIdRange.length)) message.resourceIdRange = []; message.resourceIdRange.push($root.ServiceLogger.IdRange.decode(reader, reader.uint32())); break; } - case 4: { + case 4: { message.numDeleted = reader.uint32(); break; } - case 5: { + case 5: { message.numRemaining = reader.uint32(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -199858,8 +207778,7 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ServiceLogClearResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -199872,29 +207791,30 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ ServiceLogClearResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.serviceTypeId != null && message.hasOwnProperty("serviceTypeId")) - if (!$util.isInteger(message.serviceTypeId) && !(message.serviceTypeId && $util.isInteger(message.serviceTypeId.low) && $util.isInteger(message.serviceTypeId.high))) - return "serviceTypeId: integer|Long expected"; - if (message.serviceName != null && message.hasOwnProperty("serviceName")) - if (!$util.isString(message.serviceName)) - return "serviceName: string expected"; - if (message.resourceIdRange != null && message.hasOwnProperty("resourceIdRange")) { - if (!Array.isArray(message.resourceIdRange)) - return "resourceIdRange: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.serviceTypeId != null && message.hasOwnProperty('serviceTypeId')) + if ( + !$util.isInteger(message.serviceTypeId) && + !( + message.serviceTypeId && + $util.isInteger(message.serviceTypeId.low) && + $util.isInteger(message.serviceTypeId.high) + ) + ) + return 'serviceTypeId: integer|Long expected'; + if (message.serviceName != null && message.hasOwnProperty('serviceName')) + if (!$util.isString(message.serviceName)) return 'serviceName: string expected'; + if (message.resourceIdRange != null && message.hasOwnProperty('resourceIdRange')) { + if (!Array.isArray(message.resourceIdRange)) return 'resourceIdRange: array expected'; for (let i = 0; i < message.resourceIdRange.length; ++i) { let error = $root.ServiceLogger.IdRange.verify(message.resourceIdRange[i]); - if (error) - return "resourceIdRange." + error; + if (error) return 'resourceIdRange.' + error; } } - if (message.numDeleted != null && message.hasOwnProperty("numDeleted")) - if (!$util.isInteger(message.numDeleted)) - return "numDeleted: integer expected"; - if (message.numRemaining != null && message.hasOwnProperty("numRemaining")) - if (!$util.isInteger(message.numRemaining)) - return "numRemaining: integer expected"; + if (message.numDeleted != null && message.hasOwnProperty('numDeleted')) + if (!$util.isInteger(message.numDeleted)) return 'numDeleted: integer expected'; + if (message.numRemaining != null && message.hasOwnProperty('numRemaining')) + if (!$util.isInteger(message.numRemaining)) return 'numRemaining: integer expected'; return null; }; @@ -199907,34 +207827,31 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @returns {ServiceLogger.ServiceLogClearResponse} ServiceLogClearResponse */ ServiceLogClearResponse.fromObject = function fromObject(object) { - if (object instanceof $root.ServiceLogger.ServiceLogClearResponse) - return object; + if (object instanceof $root.ServiceLogger.ServiceLogClearResponse) return object; let message = new $root.ServiceLogger.ServiceLogClearResponse(); if (object.serviceTypeId != null) - if ($util.Long) - (message.serviceTypeId = $util.Long.fromValue(object.serviceTypeId)).unsigned = true; - else if (typeof object.serviceTypeId === "string") + if ($util.Long) (message.serviceTypeId = $util.Long.fromValue(object.serviceTypeId)).unsigned = true; + else if (typeof object.serviceTypeId === 'string') message.serviceTypeId = parseInt(object.serviceTypeId, 10); - else if (typeof object.serviceTypeId === "number") - message.serviceTypeId = object.serviceTypeId; - else if (typeof object.serviceTypeId === "object") - message.serviceTypeId = new $util.LongBits(object.serviceTypeId.low >>> 0, object.serviceTypeId.high >>> 0).toNumber(true); - if (object.serviceName != null) - message.serviceName = String(object.serviceName); + else if (typeof object.serviceTypeId === 'number') message.serviceTypeId = object.serviceTypeId; + else if (typeof object.serviceTypeId === 'object') + message.serviceTypeId = new $util.LongBits( + object.serviceTypeId.low >>> 0, + object.serviceTypeId.high >>> 0 + ).toNumber(true); + if (object.serviceName != null) message.serviceName = String(object.serviceName); if (object.resourceIdRange) { if (!Array.isArray(object.resourceIdRange)) - throw TypeError(".ServiceLogger.ServiceLogClearResponse.resourceIdRange: array expected"); + throw TypeError('.ServiceLogger.ServiceLogClearResponse.resourceIdRange: array expected'); message.resourceIdRange = []; for (let i = 0; i < object.resourceIdRange.length; ++i) { - if (typeof object.resourceIdRange[i] !== "object") - throw TypeError(".ServiceLogger.ServiceLogClearResponse.resourceIdRange: object expected"); + if (typeof object.resourceIdRange[i] !== 'object') + throw TypeError('.ServiceLogger.ServiceLogClearResponse.resourceIdRange: object expected'); message.resourceIdRange[i] = $root.ServiceLogger.IdRange.fromObject(object.resourceIdRange[i]); } } - if (object.numDeleted != null) - message.numDeleted = object.numDeleted >>> 0; - if (object.numRemaining != null) - message.numRemaining = object.numRemaining >>> 0; + if (object.numDeleted != null) message.numDeleted = object.numDeleted >>> 0; + if (object.numRemaining != null) message.numRemaining = object.numRemaining >>> 0; return message; }; @@ -199948,36 +207865,46 @@ export const ServiceLogger = $root.ServiceLogger = (() => { * @returns {Object.} Plain object */ ServiceLogClearResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.resourceIdRange = []; + if (options.arrays || options.defaults) object.resourceIdRange = []; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, true); - object.serviceTypeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.serviceTypeId = options.longs === String ? "0" : 0; - object.serviceName = ""; + object.serviceTypeId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.serviceTypeId = options.longs === String ? '0' : 0; + object.serviceName = ''; object.numDeleted = 0; object.numRemaining = 0; } - if (message.serviceTypeId != null && message.hasOwnProperty("serviceTypeId")) - if (typeof message.serviceTypeId === "number") - object.serviceTypeId = options.longs === String ? String(message.serviceTypeId) : message.serviceTypeId; + if (message.serviceTypeId != null && message.hasOwnProperty('serviceTypeId')) + if (typeof message.serviceTypeId === 'number') + object.serviceTypeId = + options.longs === String ? String(message.serviceTypeId) : message.serviceTypeId; else - object.serviceTypeId = options.longs === String ? $util.Long.prototype.toString.call(message.serviceTypeId) : options.longs === Number ? new $util.LongBits(message.serviceTypeId.low >>> 0, message.serviceTypeId.high >>> 0).toNumber(true) : message.serviceTypeId; - if (message.serviceName != null && message.hasOwnProperty("serviceName")) + object.serviceTypeId = + options.longs === String + ? $util.Long.prototype.toString.call(message.serviceTypeId) + : options.longs === Number + ? new $util.LongBits( + message.serviceTypeId.low >>> 0, + message.serviceTypeId.high >>> 0 + ).toNumber(true) + : message.serviceTypeId; + if (message.serviceName != null && message.hasOwnProperty('serviceName')) object.serviceName = message.serviceName; if (message.resourceIdRange && message.resourceIdRange.length) { object.resourceIdRange = []; for (let j = 0; j < message.resourceIdRange.length; ++j) - object.resourceIdRange[j] = $root.ServiceLogger.IdRange.toObject(message.resourceIdRange[j], options); + object.resourceIdRange[j] = $root.ServiceLogger.IdRange.toObject( + message.resourceIdRange[j], + options + ); } - if (message.numDeleted != null && message.hasOwnProperty("numDeleted")) + if (message.numDeleted != null && message.hasOwnProperty('numDeleted')) object.numDeleted = message.numDeleted; - if (message.numRemaining != null && message.hasOwnProperty("numRemaining")) + if (message.numRemaining != null && message.hasOwnProperty('numRemaining')) object.numRemaining = message.numRemaining; return object; }; @@ -200003,19 +207930,18 @@ export const ServiceLogger = $root.ServiceLogger = (() => { */ ServiceLogClearResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/ServiceLogger.ServiceLogClearResponse"; + return typeUrlPrefix + '/ServiceLogger.ServiceLogClearResponse'; }; return ServiceLogClearResponse; })(); return ServiceLogger; -})(); - -export const Vault = $root.Vault = (() => { +})()); +export const Vault = ($root.Vault = (() => { /** * Namespace Vault. * @exports Vault @@ -200030,15 +207956,15 @@ export const Vault = $root.Vault = (() => { * @property {number} KEEP=0 KEEP value * @property {number} CLEAR=1 CLEAR value */ - Vault.CacheStatus = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "KEEP"] = 0; - values[valuesById[1] = "CLEAR"] = 1; + Vault.CacheStatus = (function () { + const valuesById = {}, + values = Object.create(valuesById); + values[(valuesById[0] = 'KEEP')] = 0; + values[(valuesById[1] = 'CLEAR')] = 1; return values; })(); - Vault.SyncDownRequest = (function() { - + Vault.SyncDownRequest = (function () { /** * Properties of a SyncDownRequest. * @memberof Vault @@ -200058,8 +207984,7 @@ export const Vault = $root.Vault = (() => { function SyncDownRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -200100,12 +208025,11 @@ export const Vault = $root.Vault = (() => { * @returns {$protobuf.Writer} Writer */ SyncDownRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.continuationToken != null && Object.hasOwnProperty.call(message, "continuationToken")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.continuationToken); - if (message.dataVersion != null && Object.hasOwnProperty.call(message, "dataVersion")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.dataVersion); + if (!writer) writer = $Writer.create(); + if (message.continuationToken != null && Object.hasOwnProperty.call(message, 'continuationToken')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.continuationToken); + if (message.dataVersion != null && Object.hasOwnProperty.call(message, 'dataVersion')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int32(message.dataVersion); return writer; }; @@ -200134,23 +208058,23 @@ export const Vault = $root.Vault = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SyncDownRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.SyncDownRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Vault.SyncDownRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.continuationToken = reader.bytes(); break; } - case 2: { + case 2: { message.dataVersion = reader.int32(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -200167,8 +208091,7 @@ export const Vault = $root.Vault = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SyncDownRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -200181,14 +208104,17 @@ export const Vault = $root.Vault = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ SyncDownRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.continuationToken != null && message.hasOwnProperty("continuationToken")) - if (!(message.continuationToken && typeof message.continuationToken.length === "number" || $util.isString(message.continuationToken))) - return "continuationToken: buffer expected"; - if (message.dataVersion != null && message.hasOwnProperty("dataVersion")) - if (!$util.isInteger(message.dataVersion)) - return "dataVersion: integer expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.continuationToken != null && message.hasOwnProperty('continuationToken')) + if ( + !( + (message.continuationToken && typeof message.continuationToken.length === 'number') || + $util.isString(message.continuationToken) + ) + ) + return 'continuationToken: buffer expected'; + if (message.dataVersion != null && message.hasOwnProperty('dataVersion')) + if (!$util.isInteger(message.dataVersion)) return 'dataVersion: integer expected'; return null; }; @@ -200201,16 +208127,17 @@ export const Vault = $root.Vault = (() => { * @returns {Vault.SyncDownRequest} SyncDownRequest */ SyncDownRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Vault.SyncDownRequest) - return object; + if (object instanceof $root.Vault.SyncDownRequest) return object; let message = new $root.Vault.SyncDownRequest(); if (object.continuationToken != null) - if (typeof object.continuationToken === "string") - $util.base64.decode(object.continuationToken, message.continuationToken = $util.newBuffer($util.base64.length(object.continuationToken)), 0); - else if (object.continuationToken.length >= 0) - message.continuationToken = object.continuationToken; - if (object.dataVersion != null) - message.dataVersion = object.dataVersion | 0; + if (typeof object.continuationToken === 'string') + $util.base64.decode( + object.continuationToken, + (message.continuationToken = $util.newBuffer($util.base64.length(object.continuationToken))), + 0 + ); + else if (object.continuationToken.length >= 0) message.continuationToken = object.continuationToken; + if (object.dataVersion != null) message.dataVersion = object.dataVersion | 0; return message; }; @@ -200224,22 +208151,24 @@ export const Vault = $root.Vault = (() => { * @returns {Object.} Plain object */ SyncDownRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.continuationToken = ""; + if (options.bytes === String) object.continuationToken = ''; else { object.continuationToken = []; - if (options.bytes !== Array) - object.continuationToken = $util.newBuffer(object.continuationToken); + if (options.bytes !== Array) object.continuationToken = $util.newBuffer(object.continuationToken); } object.dataVersion = 0; } - if (message.continuationToken != null && message.hasOwnProperty("continuationToken")) - object.continuationToken = options.bytes === String ? $util.base64.encode(message.continuationToken, 0, message.continuationToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.continuationToken) : message.continuationToken; - if (message.dataVersion != null && message.hasOwnProperty("dataVersion")) + if (message.continuationToken != null && message.hasOwnProperty('continuationToken')) + object.continuationToken = + options.bytes === String + ? $util.base64.encode(message.continuationToken, 0, message.continuationToken.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.continuationToken) + : message.continuationToken; + if (message.dataVersion != null && message.hasOwnProperty('dataVersion')) object.dataVersion = message.dataVersion; return object; }; @@ -200265,16 +208194,15 @@ export const Vault = $root.Vault = (() => { */ SyncDownRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Vault.SyncDownRequest"; + return typeUrlPrefix + '/Vault.SyncDownRequest'; }; return SyncDownRequest; })(); - Vault.SyncDownResponse = (function() { - + Vault.SyncDownResponse = (function () { /** * Properties of a SyncDownResponse. * @memberof Vault @@ -200379,8 +208307,7 @@ export const Vault = $root.Vault = (() => { this.notificationSync = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -200781,142 +208708,255 @@ export const Vault = $root.Vault = (() => { * @returns {$protobuf.Writer} Writer */ SyncDownResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.continuationToken != null && Object.hasOwnProperty.call(message, "continuationToken")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.continuationToken); - if (message.hasMore != null && Object.hasOwnProperty.call(message, "hasMore")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.hasMore); - if (message.cacheStatus != null && Object.hasOwnProperty.call(message, "cacheStatus")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.cacheStatus); + if (!writer) writer = $Writer.create(); + if (message.continuationToken != null && Object.hasOwnProperty.call(message, 'continuationToken')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.continuationToken); + if (message.hasMore != null && Object.hasOwnProperty.call(message, 'hasMore')) + writer.uint32(/* id 2, wireType 0 =*/ 16).bool(message.hasMore); + if (message.cacheStatus != null && Object.hasOwnProperty.call(message, 'cacheStatus')) + writer.uint32(/* id 3, wireType 0 =*/ 24).int32(message.cacheStatus); if (message.userFolders != null && message.userFolders.length) for (let i = 0; i < message.userFolders.length; ++i) - $root.Vault.UserFolder.encode(message.userFolders[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + $root.Vault.UserFolder.encode( + message.userFolders[i], + writer.uint32(/* id 4, wireType 2 =*/ 34).fork() + ).ldelim(); if (message.sharedFolders != null && message.sharedFolders.length) for (let i = 0; i < message.sharedFolders.length; ++i) - $root.Vault.SharedFolder.encode(message.sharedFolders[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + $root.Vault.SharedFolder.encode( + message.sharedFolders[i], + writer.uint32(/* id 5, wireType 2 =*/ 42).fork() + ).ldelim(); if (message.userFolderSharedFolders != null && message.userFolderSharedFolders.length) for (let i = 0; i < message.userFolderSharedFolders.length; ++i) - $root.Vault.UserFolderSharedFolder.encode(message.userFolderSharedFolders[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + $root.Vault.UserFolderSharedFolder.encode( + message.userFolderSharedFolders[i], + writer.uint32(/* id 6, wireType 2 =*/ 50).fork() + ).ldelim(); if (message.sharedFolderFolders != null && message.sharedFolderFolders.length) for (let i = 0; i < message.sharedFolderFolders.length; ++i) - $root.Vault.SharedFolderFolder.encode(message.sharedFolderFolders[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + $root.Vault.SharedFolderFolder.encode( + message.sharedFolderFolders[i], + writer.uint32(/* id 7, wireType 2 =*/ 58).fork() + ).ldelim(); if (message.records != null && message.records.length) for (let i = 0; i < message.records.length; ++i) - $root.Vault.Record.encode(message.records[i], writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + $root.Vault.Record.encode( + message.records[i], + writer.uint32(/* id 8, wireType 2 =*/ 66).fork() + ).ldelim(); if (message.recordMetaData != null && message.recordMetaData.length) for (let i = 0; i < message.recordMetaData.length; ++i) - $root.Vault.RecordMetaData.encode(message.recordMetaData[i], writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + $root.Vault.RecordMetaData.encode( + message.recordMetaData[i], + writer.uint32(/* id 9, wireType 2 =*/ 74).fork() + ).ldelim(); if (message.nonSharedData != null && message.nonSharedData.length) for (let i = 0; i < message.nonSharedData.length; ++i) - $root.Vault.NonSharedData.encode(message.nonSharedData[i], writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + $root.Vault.NonSharedData.encode( + message.nonSharedData[i], + writer.uint32(/* id 10, wireType 2 =*/ 82).fork() + ).ldelim(); if (message.recordLinks != null && message.recordLinks.length) for (let i = 0; i < message.recordLinks.length; ++i) - $root.Vault.RecordLink.encode(message.recordLinks[i], writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); + $root.Vault.RecordLink.encode( + message.recordLinks[i], + writer.uint32(/* id 11, wireType 2 =*/ 90).fork() + ).ldelim(); if (message.userFolderRecords != null && message.userFolderRecords.length) for (let i = 0; i < message.userFolderRecords.length; ++i) - $root.Vault.UserFolderRecord.encode(message.userFolderRecords[i], writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); + $root.Vault.UserFolderRecord.encode( + message.userFolderRecords[i], + writer.uint32(/* id 12, wireType 2 =*/ 98).fork() + ).ldelim(); if (message.sharedFolderRecords != null && message.sharedFolderRecords.length) for (let i = 0; i < message.sharedFolderRecords.length; ++i) - $root.Vault.SharedFolderRecord.encode(message.sharedFolderRecords[i], writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); + $root.Vault.SharedFolderRecord.encode( + message.sharedFolderRecords[i], + writer.uint32(/* id 13, wireType 2 =*/ 106).fork() + ).ldelim(); if (message.sharedFolderFolderRecords != null && message.sharedFolderFolderRecords.length) for (let i = 0; i < message.sharedFolderFolderRecords.length; ++i) - $root.Vault.SharedFolderFolderRecord.encode(message.sharedFolderFolderRecords[i], writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim(); + $root.Vault.SharedFolderFolderRecord.encode( + message.sharedFolderFolderRecords[i], + writer.uint32(/* id 14, wireType 2 =*/ 114).fork() + ).ldelim(); if (message.sharedFolderUsers != null && message.sharedFolderUsers.length) for (let i = 0; i < message.sharedFolderUsers.length; ++i) - $root.Vault.SharedFolderUser.encode(message.sharedFolderUsers[i], writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim(); + $root.Vault.SharedFolderUser.encode( + message.sharedFolderUsers[i], + writer.uint32(/* id 15, wireType 2 =*/ 122).fork() + ).ldelim(); if (message.sharedFolderTeams != null && message.sharedFolderTeams.length) for (let i = 0; i < message.sharedFolderTeams.length; ++i) - $root.Vault.SharedFolderTeam.encode(message.sharedFolderTeams[i], writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim(); + $root.Vault.SharedFolderTeam.encode( + message.sharedFolderTeams[i], + writer.uint32(/* id 16, wireType 2 =*/ 130).fork() + ).ldelim(); if (message.recordAddAuditData != null && message.recordAddAuditData.length) for (let i = 0; i < message.recordAddAuditData.length; ++i) - writer.uint32(/* id 17, wireType 2 =*/138).bytes(message.recordAddAuditData[i]); + writer.uint32(/* id 17, wireType 2 =*/ 138).bytes(message.recordAddAuditData[i]); if (message.teams != null && message.teams.length) for (let i = 0; i < message.teams.length; ++i) - $root.Vault.Team.encode(message.teams[i], writer.uint32(/* id 18, wireType 2 =*/146).fork()).ldelim(); + $root.Vault.Team.encode( + message.teams[i], + writer.uint32(/* id 18, wireType 2 =*/ 146).fork() + ).ldelim(); if (message.sharingChanges != null && message.sharingChanges.length) for (let i = 0; i < message.sharingChanges.length; ++i) - $root.Vault.SharingChange.encode(message.sharingChanges[i], writer.uint32(/* id 19, wireType 2 =*/154).fork()).ldelim(); - if (message.profile != null && Object.hasOwnProperty.call(message, "profile")) - $root.Vault.Profile.encode(message.profile, writer.uint32(/* id 20, wireType 2 =*/162).fork()).ldelim(); - if (message.profilePic != null && Object.hasOwnProperty.call(message, "profilePic")) - $root.Vault.ProfilePic.encode(message.profilePic, writer.uint32(/* id 21, wireType 2 =*/170).fork()).ldelim(); + $root.Vault.SharingChange.encode( + message.sharingChanges[i], + writer.uint32(/* id 19, wireType 2 =*/ 154).fork() + ).ldelim(); + if (message.profile != null && Object.hasOwnProperty.call(message, 'profile')) + $root.Vault.Profile.encode( + message.profile, + writer.uint32(/* id 20, wireType 2 =*/ 162).fork() + ).ldelim(); + if (message.profilePic != null && Object.hasOwnProperty.call(message, 'profilePic')) + $root.Vault.ProfilePic.encode( + message.profilePic, + writer.uint32(/* id 21, wireType 2 =*/ 170).fork() + ).ldelim(); if (message.pendingTeamMembers != null && message.pendingTeamMembers.length) for (let i = 0; i < message.pendingTeamMembers.length; ++i) - $root.Vault.PendingTeamMember.encode(message.pendingTeamMembers[i], writer.uint32(/* id 22, wireType 2 =*/178).fork()).ldelim(); + $root.Vault.PendingTeamMember.encode( + message.pendingTeamMembers[i], + writer.uint32(/* id 22, wireType 2 =*/ 178).fork() + ).ldelim(); if (message.breachWatchRecords != null && message.breachWatchRecords.length) for (let i = 0; i < message.breachWatchRecords.length; ++i) - $root.Vault.BreachWatchRecord.encode(message.breachWatchRecords[i], writer.uint32(/* id 23, wireType 2 =*/186).fork()).ldelim(); + $root.Vault.BreachWatchRecord.encode( + message.breachWatchRecords[i], + writer.uint32(/* id 23, wireType 2 =*/ 186).fork() + ).ldelim(); if (message.userAuths != null && message.userAuths.length) for (let i = 0; i < message.userAuths.length; ++i) - $root.Vault.UserAuth.encode(message.userAuths[i], writer.uint32(/* id 24, wireType 2 =*/194).fork()).ldelim(); + $root.Vault.UserAuth.encode( + message.userAuths[i], + writer.uint32(/* id 24, wireType 2 =*/ 194).fork() + ).ldelim(); if (message.breachWatchSecurityData != null && message.breachWatchSecurityData.length) for (let i = 0; i < message.breachWatchSecurityData.length; ++i) - $root.Vault.BreachWatchSecurityData.encode(message.breachWatchSecurityData[i], writer.uint32(/* id 25, wireType 2 =*/202).fork()).ldelim(); - if (message.reusedPasswords != null && Object.hasOwnProperty.call(message, "reusedPasswords")) - $root.Vault.ReusedPasswords.encode(message.reusedPasswords, writer.uint32(/* id 26, wireType 2 =*/210).fork()).ldelim(); + $root.Vault.BreachWatchSecurityData.encode( + message.breachWatchSecurityData[i], + writer.uint32(/* id 25, wireType 2 =*/ 202).fork() + ).ldelim(); + if (message.reusedPasswords != null && Object.hasOwnProperty.call(message, 'reusedPasswords')) + $root.Vault.ReusedPasswords.encode( + message.reusedPasswords, + writer.uint32(/* id 26, wireType 2 =*/ 210).fork() + ).ldelim(); if (message.removedUserFolders != null && message.removedUserFolders.length) for (let i = 0; i < message.removedUserFolders.length; ++i) - writer.uint32(/* id 27, wireType 2 =*/218).bytes(message.removedUserFolders[i]); + writer.uint32(/* id 27, wireType 2 =*/ 218).bytes(message.removedUserFolders[i]); if (message.removedSharedFolders != null && message.removedSharedFolders.length) for (let i = 0; i < message.removedSharedFolders.length; ++i) - writer.uint32(/* id 28, wireType 2 =*/226).bytes(message.removedSharedFolders[i]); + writer.uint32(/* id 28, wireType 2 =*/ 226).bytes(message.removedSharedFolders[i]); if (message.removedUserFolderSharedFolders != null && message.removedUserFolderSharedFolders.length) for (let i = 0; i < message.removedUserFolderSharedFolders.length; ++i) - $root.Vault.UserFolderSharedFolder.encode(message.removedUserFolderSharedFolders[i], writer.uint32(/* id 29, wireType 2 =*/234).fork()).ldelim(); + $root.Vault.UserFolderSharedFolder.encode( + message.removedUserFolderSharedFolders[i], + writer.uint32(/* id 29, wireType 2 =*/ 234).fork() + ).ldelim(); if (message.removedSharedFolderFolders != null && message.removedSharedFolderFolders.length) for (let i = 0; i < message.removedSharedFolderFolders.length; ++i) - $root.Vault.SharedFolderFolder.encode(message.removedSharedFolderFolders[i], writer.uint32(/* id 30, wireType 2 =*/242).fork()).ldelim(); + $root.Vault.SharedFolderFolder.encode( + message.removedSharedFolderFolders[i], + writer.uint32(/* id 30, wireType 2 =*/ 242).fork() + ).ldelim(); if (message.removedRecords != null && message.removedRecords.length) for (let i = 0; i < message.removedRecords.length; ++i) - writer.uint32(/* id 31, wireType 2 =*/250).bytes(message.removedRecords[i]); + writer.uint32(/* id 31, wireType 2 =*/ 250).bytes(message.removedRecords[i]); if (message.removedRecordLinks != null && message.removedRecordLinks.length) for (let i = 0; i < message.removedRecordLinks.length; ++i) - $root.Vault.RecordLink.encode(message.removedRecordLinks[i], writer.uint32(/* id 32, wireType 2 =*/258).fork()).ldelim(); + $root.Vault.RecordLink.encode( + message.removedRecordLinks[i], + writer.uint32(/* id 32, wireType 2 =*/ 258).fork() + ).ldelim(); if (message.removedUserFolderRecords != null && message.removedUserFolderRecords.length) for (let i = 0; i < message.removedUserFolderRecords.length; ++i) - $root.Vault.UserFolderRecord.encode(message.removedUserFolderRecords[i], writer.uint32(/* id 33, wireType 2 =*/266).fork()).ldelim(); + $root.Vault.UserFolderRecord.encode( + message.removedUserFolderRecords[i], + writer.uint32(/* id 33, wireType 2 =*/ 266).fork() + ).ldelim(); if (message.removedSharedFolderRecords != null && message.removedSharedFolderRecords.length) for (let i = 0; i < message.removedSharedFolderRecords.length; ++i) - $root.Vault.SharedFolderRecord.encode(message.removedSharedFolderRecords[i], writer.uint32(/* id 34, wireType 2 =*/274).fork()).ldelim(); + $root.Vault.SharedFolderRecord.encode( + message.removedSharedFolderRecords[i], + writer.uint32(/* id 34, wireType 2 =*/ 274).fork() + ).ldelim(); if (message.removedSharedFolderFolderRecords != null && message.removedSharedFolderFolderRecords.length) for (let i = 0; i < message.removedSharedFolderFolderRecords.length; ++i) - $root.Vault.SharedFolderFolderRecord.encode(message.removedSharedFolderFolderRecords[i], writer.uint32(/* id 35, wireType 2 =*/282).fork()).ldelim(); + $root.Vault.SharedFolderFolderRecord.encode( + message.removedSharedFolderFolderRecords[i], + writer.uint32(/* id 35, wireType 2 =*/ 282).fork() + ).ldelim(); if (message.removedSharedFolderUsers != null && message.removedSharedFolderUsers.length) for (let i = 0; i < message.removedSharedFolderUsers.length; ++i) - $root.Vault.SharedFolderUser.encode(message.removedSharedFolderUsers[i], writer.uint32(/* id 36, wireType 2 =*/290).fork()).ldelim(); + $root.Vault.SharedFolderUser.encode( + message.removedSharedFolderUsers[i], + writer.uint32(/* id 36, wireType 2 =*/ 290).fork() + ).ldelim(); if (message.removedSharedFolderTeams != null && message.removedSharedFolderTeams.length) for (let i = 0; i < message.removedSharedFolderTeams.length; ++i) - $root.Vault.SharedFolderTeam.encode(message.removedSharedFolderTeams[i], writer.uint32(/* id 37, wireType 2 =*/298).fork()).ldelim(); + $root.Vault.SharedFolderTeam.encode( + message.removedSharedFolderTeams[i], + writer.uint32(/* id 37, wireType 2 =*/ 298).fork() + ).ldelim(); if (message.removedTeams != null && message.removedTeams.length) for (let i = 0; i < message.removedTeams.length; ++i) - writer.uint32(/* id 38, wireType 2 =*/306).bytes(message.removedTeams[i]); + writer.uint32(/* id 38, wireType 2 =*/ 306).bytes(message.removedTeams[i]); if (message.ksmAppShares != null && message.ksmAppShares.length) for (let i = 0; i < message.ksmAppShares.length; ++i) - $root.Vault.KsmChange.encode(message.ksmAppShares[i], writer.uint32(/* id 39, wireType 2 =*/314).fork()).ldelim(); + $root.Vault.KsmChange.encode( + message.ksmAppShares[i], + writer.uint32(/* id 39, wireType 2 =*/ 314).fork() + ).ldelim(); if (message.ksmAppClients != null && message.ksmAppClients.length) for (let i = 0; i < message.ksmAppClients.length; ++i) - $root.Vault.KsmChange.encode(message.ksmAppClients[i], writer.uint32(/* id 40, wireType 2 =*/322).fork()).ldelim(); + $root.Vault.KsmChange.encode( + message.ksmAppClients[i], + writer.uint32(/* id 40, wireType 2 =*/ 322).fork() + ).ldelim(); if (message.shareInvitations != null && message.shareInvitations.length) for (let i = 0; i < message.shareInvitations.length; ++i) - $root.Vault.ShareInvitation.encode(message.shareInvitations[i], writer.uint32(/* id 41, wireType 2 =*/330).fork()).ldelim(); - if (message.diagnostics != null && Object.hasOwnProperty.call(message, "diagnostics")) - $root.Vault.SyncDiagnostics.encode(message.diagnostics, writer.uint32(/* id 42, wireType 2 =*/338).fork()).ldelim(); + $root.Vault.ShareInvitation.encode( + message.shareInvitations[i], + writer.uint32(/* id 41, wireType 2 =*/ 330).fork() + ).ldelim(); + if (message.diagnostics != null && Object.hasOwnProperty.call(message, 'diagnostics')) + $root.Vault.SyncDiagnostics.encode( + message.diagnostics, + writer.uint32(/* id 42, wireType 2 =*/ 338).fork() + ).ldelim(); if (message.recordRotations != null && message.recordRotations.length) for (let i = 0; i < message.recordRotations.length; ++i) - $root.Vault.RecordRotation.encode(message.recordRotations[i], writer.uint32(/* id 43, wireType 2 =*/346).fork()).ldelim(); + $root.Vault.RecordRotation.encode( + message.recordRotations[i], + writer.uint32(/* id 43, wireType 2 =*/ 346).fork() + ).ldelim(); if (message.users != null && message.users.length) for (let i = 0; i < message.users.length; ++i) - $root.Vault.User.encode(message.users[i], writer.uint32(/* id 44, wireType 2 =*/354).fork()).ldelim(); + $root.Vault.User.encode( + message.users[i], + writer.uint32(/* id 44, wireType 2 =*/ 354).fork() + ).ldelim(); if (message.removedUsers != null && message.removedUsers.length) for (let i = 0; i < message.removedUsers.length; ++i) - writer.uint32(/* id 45, wireType 2 =*/362).bytes(message.removedUsers[i]); + writer.uint32(/* id 45, wireType 2 =*/ 362).bytes(message.removedUsers[i]); if (message.securityScoreData != null && message.securityScoreData.length) for (let i = 0; i < message.securityScoreData.length; ++i) - $root.Vault.SecurityScoreData.encode(message.securityScoreData[i], writer.uint32(/* id 46, wireType 2 =*/370).fork()).ldelim(); + $root.Vault.SecurityScoreData.encode( + message.securityScoreData[i], + writer.uint32(/* id 46, wireType 2 =*/ 370).fork() + ).ldelim(); if (message.notificationSync != null && message.notificationSync.length) for (let i = 0; i < message.notificationSync.length; ++i) - $root.NotificationCenter.NotificationWrapper.encode(message.notificationSync[i], writer.uint32(/* id 47, wireType 2 =*/378).fork()).ldelim(); + $root.NotificationCenter.NotificationWrapper.encode( + message.notificationSync[i], + writer.uint32(/* id 47, wireType 2 =*/ 378).fork() + ).ldelim(); return writer; }; @@ -200945,283 +208985,298 @@ export const Vault = $root.Vault = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SyncDownResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.SyncDownResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Vault.SyncDownResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.continuationToken = reader.bytes(); break; } - case 2: { + case 2: { message.hasMore = reader.bool(); break; } - case 3: { + case 3: { message.cacheStatus = reader.int32(); break; } - case 4: { - if (!(message.userFolders && message.userFolders.length)) - message.userFolders = []; + case 4: { + if (!(message.userFolders && message.userFolders.length)) message.userFolders = []; message.userFolders.push($root.Vault.UserFolder.decode(reader, reader.uint32())); break; } - case 5: { - if (!(message.sharedFolders && message.sharedFolders.length)) - message.sharedFolders = []; + case 5: { + if (!(message.sharedFolders && message.sharedFolders.length)) message.sharedFolders = []; message.sharedFolders.push($root.Vault.SharedFolder.decode(reader, reader.uint32())); break; } - case 6: { + case 6: { if (!(message.userFolderSharedFolders && message.userFolderSharedFolders.length)) message.userFolderSharedFolders = []; - message.userFolderSharedFolders.push($root.Vault.UserFolderSharedFolder.decode(reader, reader.uint32())); + message.userFolderSharedFolders.push( + $root.Vault.UserFolderSharedFolder.decode(reader, reader.uint32()) + ); break; } - case 7: { + case 7: { if (!(message.sharedFolderFolders && message.sharedFolderFolders.length)) message.sharedFolderFolders = []; - message.sharedFolderFolders.push($root.Vault.SharedFolderFolder.decode(reader, reader.uint32())); + message.sharedFolderFolders.push( + $root.Vault.SharedFolderFolder.decode(reader, reader.uint32()) + ); break; } - case 8: { - if (!(message.records && message.records.length)) - message.records = []; + case 8: { + if (!(message.records && message.records.length)) message.records = []; message.records.push($root.Vault.Record.decode(reader, reader.uint32())); break; } - case 9: { - if (!(message.recordMetaData && message.recordMetaData.length)) - message.recordMetaData = []; + case 9: { + if (!(message.recordMetaData && message.recordMetaData.length)) message.recordMetaData = []; message.recordMetaData.push($root.Vault.RecordMetaData.decode(reader, reader.uint32())); break; } - case 10: { - if (!(message.nonSharedData && message.nonSharedData.length)) - message.nonSharedData = []; + case 10: { + if (!(message.nonSharedData && message.nonSharedData.length)) message.nonSharedData = []; message.nonSharedData.push($root.Vault.NonSharedData.decode(reader, reader.uint32())); break; } - case 11: { - if (!(message.recordLinks && message.recordLinks.length)) - message.recordLinks = []; + case 11: { + if (!(message.recordLinks && message.recordLinks.length)) message.recordLinks = []; message.recordLinks.push($root.Vault.RecordLink.decode(reader, reader.uint32())); break; } - case 12: { + case 12: { if (!(message.userFolderRecords && message.userFolderRecords.length)) message.userFolderRecords = []; message.userFolderRecords.push($root.Vault.UserFolderRecord.decode(reader, reader.uint32())); break; } - case 13: { + case 13: { if (!(message.sharedFolderRecords && message.sharedFolderRecords.length)) message.sharedFolderRecords = []; - message.sharedFolderRecords.push($root.Vault.SharedFolderRecord.decode(reader, reader.uint32())); + message.sharedFolderRecords.push( + $root.Vault.SharedFolderRecord.decode(reader, reader.uint32()) + ); break; } - case 14: { + case 14: { if (!(message.sharedFolderFolderRecords && message.sharedFolderFolderRecords.length)) message.sharedFolderFolderRecords = []; - message.sharedFolderFolderRecords.push($root.Vault.SharedFolderFolderRecord.decode(reader, reader.uint32())); + message.sharedFolderFolderRecords.push( + $root.Vault.SharedFolderFolderRecord.decode(reader, reader.uint32()) + ); break; } - case 15: { + case 15: { if (!(message.sharedFolderUsers && message.sharedFolderUsers.length)) message.sharedFolderUsers = []; message.sharedFolderUsers.push($root.Vault.SharedFolderUser.decode(reader, reader.uint32())); break; } - case 16: { + case 16: { if (!(message.sharedFolderTeams && message.sharedFolderTeams.length)) message.sharedFolderTeams = []; message.sharedFolderTeams.push($root.Vault.SharedFolderTeam.decode(reader, reader.uint32())); break; } - case 17: { + case 17: { if (!(message.recordAddAuditData && message.recordAddAuditData.length)) message.recordAddAuditData = []; message.recordAddAuditData.push(reader.bytes()); break; } - case 18: { - if (!(message.teams && message.teams.length)) - message.teams = []; + case 18: { + if (!(message.teams && message.teams.length)) message.teams = []; message.teams.push($root.Vault.Team.decode(reader, reader.uint32())); break; } - case 19: { - if (!(message.sharingChanges && message.sharingChanges.length)) - message.sharingChanges = []; + case 19: { + if (!(message.sharingChanges && message.sharingChanges.length)) message.sharingChanges = []; message.sharingChanges.push($root.Vault.SharingChange.decode(reader, reader.uint32())); break; } - case 20: { + case 20: { message.profile = $root.Vault.Profile.decode(reader, reader.uint32()); break; } - case 21: { + case 21: { message.profilePic = $root.Vault.ProfilePic.decode(reader, reader.uint32()); break; } - case 22: { + case 22: { if (!(message.pendingTeamMembers && message.pendingTeamMembers.length)) message.pendingTeamMembers = []; message.pendingTeamMembers.push($root.Vault.PendingTeamMember.decode(reader, reader.uint32())); break; } - case 23: { + case 23: { if (!(message.breachWatchRecords && message.breachWatchRecords.length)) message.breachWatchRecords = []; message.breachWatchRecords.push($root.Vault.BreachWatchRecord.decode(reader, reader.uint32())); break; } - case 24: { - if (!(message.userAuths && message.userAuths.length)) - message.userAuths = []; + case 24: { + if (!(message.userAuths && message.userAuths.length)) message.userAuths = []; message.userAuths.push($root.Vault.UserAuth.decode(reader, reader.uint32())); break; } - case 25: { + case 25: { if (!(message.breachWatchSecurityData && message.breachWatchSecurityData.length)) message.breachWatchSecurityData = []; - message.breachWatchSecurityData.push($root.Vault.BreachWatchSecurityData.decode(reader, reader.uint32())); + message.breachWatchSecurityData.push( + $root.Vault.BreachWatchSecurityData.decode(reader, reader.uint32()) + ); break; } - case 26: { + case 26: { message.reusedPasswords = $root.Vault.ReusedPasswords.decode(reader, reader.uint32()); break; } - case 27: { + case 27: { if (!(message.removedUserFolders && message.removedUserFolders.length)) message.removedUserFolders = []; message.removedUserFolders.push(reader.bytes()); break; } - case 28: { + case 28: { if (!(message.removedSharedFolders && message.removedSharedFolders.length)) message.removedSharedFolders = []; message.removedSharedFolders.push(reader.bytes()); break; } - case 29: { + case 29: { if (!(message.removedUserFolderSharedFolders && message.removedUserFolderSharedFolders.length)) message.removedUserFolderSharedFolders = []; - message.removedUserFolderSharedFolders.push($root.Vault.UserFolderSharedFolder.decode(reader, reader.uint32())); + message.removedUserFolderSharedFolders.push( + $root.Vault.UserFolderSharedFolder.decode(reader, reader.uint32()) + ); break; } - case 30: { + case 30: { if (!(message.removedSharedFolderFolders && message.removedSharedFolderFolders.length)) message.removedSharedFolderFolders = []; - message.removedSharedFolderFolders.push($root.Vault.SharedFolderFolder.decode(reader, reader.uint32())); + message.removedSharedFolderFolders.push( + $root.Vault.SharedFolderFolder.decode(reader, reader.uint32()) + ); break; } - case 31: { - if (!(message.removedRecords && message.removedRecords.length)) - message.removedRecords = []; + case 31: { + if (!(message.removedRecords && message.removedRecords.length)) message.removedRecords = []; message.removedRecords.push(reader.bytes()); break; } - case 32: { + case 32: { if (!(message.removedRecordLinks && message.removedRecordLinks.length)) message.removedRecordLinks = []; message.removedRecordLinks.push($root.Vault.RecordLink.decode(reader, reader.uint32())); break; } - case 33: { + case 33: { if (!(message.removedUserFolderRecords && message.removedUserFolderRecords.length)) message.removedUserFolderRecords = []; - message.removedUserFolderRecords.push($root.Vault.UserFolderRecord.decode(reader, reader.uint32())); + message.removedUserFolderRecords.push( + $root.Vault.UserFolderRecord.decode(reader, reader.uint32()) + ); break; } - case 34: { + case 34: { if (!(message.removedSharedFolderRecords && message.removedSharedFolderRecords.length)) message.removedSharedFolderRecords = []; - message.removedSharedFolderRecords.push($root.Vault.SharedFolderRecord.decode(reader, reader.uint32())); - break; - } - case 35: { - if (!(message.removedSharedFolderFolderRecords && message.removedSharedFolderFolderRecords.length)) + message.removedSharedFolderRecords.push( + $root.Vault.SharedFolderRecord.decode(reader, reader.uint32()) + ); + break; + } + case 35: { + if ( + !( + message.removedSharedFolderFolderRecords && + message.removedSharedFolderFolderRecords.length + ) + ) message.removedSharedFolderFolderRecords = []; - message.removedSharedFolderFolderRecords.push($root.Vault.SharedFolderFolderRecord.decode(reader, reader.uint32())); + message.removedSharedFolderFolderRecords.push( + $root.Vault.SharedFolderFolderRecord.decode(reader, reader.uint32()) + ); break; } - case 36: { + case 36: { if (!(message.removedSharedFolderUsers && message.removedSharedFolderUsers.length)) message.removedSharedFolderUsers = []; - message.removedSharedFolderUsers.push($root.Vault.SharedFolderUser.decode(reader, reader.uint32())); + message.removedSharedFolderUsers.push( + $root.Vault.SharedFolderUser.decode(reader, reader.uint32()) + ); break; } - case 37: { + case 37: { if (!(message.removedSharedFolderTeams && message.removedSharedFolderTeams.length)) message.removedSharedFolderTeams = []; - message.removedSharedFolderTeams.push($root.Vault.SharedFolderTeam.decode(reader, reader.uint32())); + message.removedSharedFolderTeams.push( + $root.Vault.SharedFolderTeam.decode(reader, reader.uint32()) + ); break; } - case 38: { - if (!(message.removedTeams && message.removedTeams.length)) - message.removedTeams = []; + case 38: { + if (!(message.removedTeams && message.removedTeams.length)) message.removedTeams = []; message.removedTeams.push(reader.bytes()); break; } - case 39: { - if (!(message.ksmAppShares && message.ksmAppShares.length)) - message.ksmAppShares = []; + case 39: { + if (!(message.ksmAppShares && message.ksmAppShares.length)) message.ksmAppShares = []; message.ksmAppShares.push($root.Vault.KsmChange.decode(reader, reader.uint32())); break; } - case 40: { - if (!(message.ksmAppClients && message.ksmAppClients.length)) - message.ksmAppClients = []; + case 40: { + if (!(message.ksmAppClients && message.ksmAppClients.length)) message.ksmAppClients = []; message.ksmAppClients.push($root.Vault.KsmChange.decode(reader, reader.uint32())); break; } - case 41: { + case 41: { if (!(message.shareInvitations && message.shareInvitations.length)) message.shareInvitations = []; message.shareInvitations.push($root.Vault.ShareInvitation.decode(reader, reader.uint32())); break; } - case 42: { + case 42: { message.diagnostics = $root.Vault.SyncDiagnostics.decode(reader, reader.uint32()); break; } - case 43: { - if (!(message.recordRotations && message.recordRotations.length)) - message.recordRotations = []; + case 43: { + if (!(message.recordRotations && message.recordRotations.length)) message.recordRotations = []; message.recordRotations.push($root.Vault.RecordRotation.decode(reader, reader.uint32())); break; } - case 44: { - if (!(message.users && message.users.length)) - message.users = []; + case 44: { + if (!(message.users && message.users.length)) message.users = []; message.users.push($root.Vault.User.decode(reader, reader.uint32())); break; } - case 45: { - if (!(message.removedUsers && message.removedUsers.length)) - message.removedUsers = []; + case 45: { + if (!(message.removedUsers && message.removedUsers.length)) message.removedUsers = []; message.removedUsers.push(reader.bytes()); break; } - case 46: { + case 46: { if (!(message.securityScoreData && message.securityScoreData.length)) message.securityScoreData = []; message.securityScoreData.push($root.Vault.SecurityScoreData.decode(reader, reader.uint32())); break; } - case 47: { + case 47: { if (!(message.notificationSync && message.notificationSync.length)) message.notificationSync = []; - message.notificationSync.push($root.NotificationCenter.NotificationWrapper.decode(reader, reader.uint32())); + message.notificationSync.push( + $root.NotificationCenter.NotificationWrapper.decode(reader, reader.uint32()) + ); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -201238,8 +209293,7 @@ export const Vault = $root.Vault = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SyncDownResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -201252,388 +209306,359 @@ export const Vault = $root.Vault = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ SyncDownResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.continuationToken != null && message.hasOwnProperty("continuationToken")) - if (!(message.continuationToken && typeof message.continuationToken.length === "number" || $util.isString(message.continuationToken))) - return "continuationToken: buffer expected"; - if (message.hasMore != null && message.hasOwnProperty("hasMore")) - if (typeof message.hasMore !== "boolean") - return "hasMore: boolean expected"; - if (message.cacheStatus != null && message.hasOwnProperty("cacheStatus")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.continuationToken != null && message.hasOwnProperty('continuationToken')) + if ( + !( + (message.continuationToken && typeof message.continuationToken.length === 'number') || + $util.isString(message.continuationToken) + ) + ) + return 'continuationToken: buffer expected'; + if (message.hasMore != null && message.hasOwnProperty('hasMore')) + if (typeof message.hasMore !== 'boolean') return 'hasMore: boolean expected'; + if (message.cacheStatus != null && message.hasOwnProperty('cacheStatus')) switch (message.cacheStatus) { - default: - return "cacheStatus: enum value expected"; - case 0: - case 1: - break; + default: + return 'cacheStatus: enum value expected'; + case 0: + case 1: + break; } - if (message.userFolders != null && message.hasOwnProperty("userFolders")) { - if (!Array.isArray(message.userFolders)) - return "userFolders: array expected"; + if (message.userFolders != null && message.hasOwnProperty('userFolders')) { + if (!Array.isArray(message.userFolders)) return 'userFolders: array expected'; for (let i = 0; i < message.userFolders.length; ++i) { let error = $root.Vault.UserFolder.verify(message.userFolders[i]); - if (error) - return "userFolders." + error; + if (error) return 'userFolders.' + error; } } - if (message.sharedFolders != null && message.hasOwnProperty("sharedFolders")) { - if (!Array.isArray(message.sharedFolders)) - return "sharedFolders: array expected"; + if (message.sharedFolders != null && message.hasOwnProperty('sharedFolders')) { + if (!Array.isArray(message.sharedFolders)) return 'sharedFolders: array expected'; for (let i = 0; i < message.sharedFolders.length; ++i) { let error = $root.Vault.SharedFolder.verify(message.sharedFolders[i]); - if (error) - return "sharedFolders." + error; + if (error) return 'sharedFolders.' + error; } } - if (message.userFolderSharedFolders != null && message.hasOwnProperty("userFolderSharedFolders")) { - if (!Array.isArray(message.userFolderSharedFolders)) - return "userFolderSharedFolders: array expected"; + if (message.userFolderSharedFolders != null && message.hasOwnProperty('userFolderSharedFolders')) { + if (!Array.isArray(message.userFolderSharedFolders)) return 'userFolderSharedFolders: array expected'; for (let i = 0; i < message.userFolderSharedFolders.length; ++i) { let error = $root.Vault.UserFolderSharedFolder.verify(message.userFolderSharedFolders[i]); - if (error) - return "userFolderSharedFolders." + error; + if (error) return 'userFolderSharedFolders.' + error; } } - if (message.sharedFolderFolders != null && message.hasOwnProperty("sharedFolderFolders")) { - if (!Array.isArray(message.sharedFolderFolders)) - return "sharedFolderFolders: array expected"; + if (message.sharedFolderFolders != null && message.hasOwnProperty('sharedFolderFolders')) { + if (!Array.isArray(message.sharedFolderFolders)) return 'sharedFolderFolders: array expected'; for (let i = 0; i < message.sharedFolderFolders.length; ++i) { let error = $root.Vault.SharedFolderFolder.verify(message.sharedFolderFolders[i]); - if (error) - return "sharedFolderFolders." + error; + if (error) return 'sharedFolderFolders.' + error; } } - if (message.records != null && message.hasOwnProperty("records")) { - if (!Array.isArray(message.records)) - return "records: array expected"; + if (message.records != null && message.hasOwnProperty('records')) { + if (!Array.isArray(message.records)) return 'records: array expected'; for (let i = 0; i < message.records.length; ++i) { let error = $root.Vault.Record.verify(message.records[i]); - if (error) - return "records." + error; + if (error) return 'records.' + error; } } - if (message.recordMetaData != null && message.hasOwnProperty("recordMetaData")) { - if (!Array.isArray(message.recordMetaData)) - return "recordMetaData: array expected"; + if (message.recordMetaData != null && message.hasOwnProperty('recordMetaData')) { + if (!Array.isArray(message.recordMetaData)) return 'recordMetaData: array expected'; for (let i = 0; i < message.recordMetaData.length; ++i) { let error = $root.Vault.RecordMetaData.verify(message.recordMetaData[i]); - if (error) - return "recordMetaData." + error; + if (error) return 'recordMetaData.' + error; } } - if (message.nonSharedData != null && message.hasOwnProperty("nonSharedData")) { - if (!Array.isArray(message.nonSharedData)) - return "nonSharedData: array expected"; + if (message.nonSharedData != null && message.hasOwnProperty('nonSharedData')) { + if (!Array.isArray(message.nonSharedData)) return 'nonSharedData: array expected'; for (let i = 0; i < message.nonSharedData.length; ++i) { let error = $root.Vault.NonSharedData.verify(message.nonSharedData[i]); - if (error) - return "nonSharedData." + error; + if (error) return 'nonSharedData.' + error; } } - if (message.recordLinks != null && message.hasOwnProperty("recordLinks")) { - if (!Array.isArray(message.recordLinks)) - return "recordLinks: array expected"; + if (message.recordLinks != null && message.hasOwnProperty('recordLinks')) { + if (!Array.isArray(message.recordLinks)) return 'recordLinks: array expected'; for (let i = 0; i < message.recordLinks.length; ++i) { let error = $root.Vault.RecordLink.verify(message.recordLinks[i]); - if (error) - return "recordLinks." + error; + if (error) return 'recordLinks.' + error; } } - if (message.userFolderRecords != null && message.hasOwnProperty("userFolderRecords")) { - if (!Array.isArray(message.userFolderRecords)) - return "userFolderRecords: array expected"; + if (message.userFolderRecords != null && message.hasOwnProperty('userFolderRecords')) { + if (!Array.isArray(message.userFolderRecords)) return 'userFolderRecords: array expected'; for (let i = 0; i < message.userFolderRecords.length; ++i) { let error = $root.Vault.UserFolderRecord.verify(message.userFolderRecords[i]); - if (error) - return "userFolderRecords." + error; + if (error) return 'userFolderRecords.' + error; } } - if (message.sharedFolderRecords != null && message.hasOwnProperty("sharedFolderRecords")) { - if (!Array.isArray(message.sharedFolderRecords)) - return "sharedFolderRecords: array expected"; + if (message.sharedFolderRecords != null && message.hasOwnProperty('sharedFolderRecords')) { + if (!Array.isArray(message.sharedFolderRecords)) return 'sharedFolderRecords: array expected'; for (let i = 0; i < message.sharedFolderRecords.length; ++i) { let error = $root.Vault.SharedFolderRecord.verify(message.sharedFolderRecords[i]); - if (error) - return "sharedFolderRecords." + error; + if (error) return 'sharedFolderRecords.' + error; } } - if (message.sharedFolderFolderRecords != null && message.hasOwnProperty("sharedFolderFolderRecords")) { + if (message.sharedFolderFolderRecords != null && message.hasOwnProperty('sharedFolderFolderRecords')) { if (!Array.isArray(message.sharedFolderFolderRecords)) - return "sharedFolderFolderRecords: array expected"; + return 'sharedFolderFolderRecords: array expected'; for (let i = 0; i < message.sharedFolderFolderRecords.length; ++i) { let error = $root.Vault.SharedFolderFolderRecord.verify(message.sharedFolderFolderRecords[i]); - if (error) - return "sharedFolderFolderRecords." + error; + if (error) return 'sharedFolderFolderRecords.' + error; } } - if (message.sharedFolderUsers != null && message.hasOwnProperty("sharedFolderUsers")) { - if (!Array.isArray(message.sharedFolderUsers)) - return "sharedFolderUsers: array expected"; + if (message.sharedFolderUsers != null && message.hasOwnProperty('sharedFolderUsers')) { + if (!Array.isArray(message.sharedFolderUsers)) return 'sharedFolderUsers: array expected'; for (let i = 0; i < message.sharedFolderUsers.length; ++i) { let error = $root.Vault.SharedFolderUser.verify(message.sharedFolderUsers[i]); - if (error) - return "sharedFolderUsers." + error; + if (error) return 'sharedFolderUsers.' + error; } } - if (message.sharedFolderTeams != null && message.hasOwnProperty("sharedFolderTeams")) { - if (!Array.isArray(message.sharedFolderTeams)) - return "sharedFolderTeams: array expected"; + if (message.sharedFolderTeams != null && message.hasOwnProperty('sharedFolderTeams')) { + if (!Array.isArray(message.sharedFolderTeams)) return 'sharedFolderTeams: array expected'; for (let i = 0; i < message.sharedFolderTeams.length; ++i) { let error = $root.Vault.SharedFolderTeam.verify(message.sharedFolderTeams[i]); - if (error) - return "sharedFolderTeams." + error; + if (error) return 'sharedFolderTeams.' + error; } } - if (message.recordAddAuditData != null && message.hasOwnProperty("recordAddAuditData")) { - if (!Array.isArray(message.recordAddAuditData)) - return "recordAddAuditData: array expected"; + if (message.recordAddAuditData != null && message.hasOwnProperty('recordAddAuditData')) { + if (!Array.isArray(message.recordAddAuditData)) return 'recordAddAuditData: array expected'; for (let i = 0; i < message.recordAddAuditData.length; ++i) - if (!(message.recordAddAuditData[i] && typeof message.recordAddAuditData[i].length === "number" || $util.isString(message.recordAddAuditData[i]))) - return "recordAddAuditData: buffer[] expected"; - } - if (message.teams != null && message.hasOwnProperty("teams")) { - if (!Array.isArray(message.teams)) - return "teams: array expected"; + if ( + !( + (message.recordAddAuditData[i] && + typeof message.recordAddAuditData[i].length === 'number') || + $util.isString(message.recordAddAuditData[i]) + ) + ) + return 'recordAddAuditData: buffer[] expected'; + } + if (message.teams != null && message.hasOwnProperty('teams')) { + if (!Array.isArray(message.teams)) return 'teams: array expected'; for (let i = 0; i < message.teams.length; ++i) { let error = $root.Vault.Team.verify(message.teams[i]); - if (error) - return "teams." + error; + if (error) return 'teams.' + error; } } - if (message.sharingChanges != null && message.hasOwnProperty("sharingChanges")) { - if (!Array.isArray(message.sharingChanges)) - return "sharingChanges: array expected"; + if (message.sharingChanges != null && message.hasOwnProperty('sharingChanges')) { + if (!Array.isArray(message.sharingChanges)) return 'sharingChanges: array expected'; for (let i = 0; i < message.sharingChanges.length; ++i) { let error = $root.Vault.SharingChange.verify(message.sharingChanges[i]); - if (error) - return "sharingChanges." + error; + if (error) return 'sharingChanges.' + error; } } - if (message.profile != null && message.hasOwnProperty("profile")) { + if (message.profile != null && message.hasOwnProperty('profile')) { let error = $root.Vault.Profile.verify(message.profile); - if (error) - return "profile." + error; + if (error) return 'profile.' + error; } - if (message.profilePic != null && message.hasOwnProperty("profilePic")) { + if (message.profilePic != null && message.hasOwnProperty('profilePic')) { let error = $root.Vault.ProfilePic.verify(message.profilePic); - if (error) - return "profilePic." + error; + if (error) return 'profilePic.' + error; } - if (message.pendingTeamMembers != null && message.hasOwnProperty("pendingTeamMembers")) { - if (!Array.isArray(message.pendingTeamMembers)) - return "pendingTeamMembers: array expected"; + if (message.pendingTeamMembers != null && message.hasOwnProperty('pendingTeamMembers')) { + if (!Array.isArray(message.pendingTeamMembers)) return 'pendingTeamMembers: array expected'; for (let i = 0; i < message.pendingTeamMembers.length; ++i) { let error = $root.Vault.PendingTeamMember.verify(message.pendingTeamMembers[i]); - if (error) - return "pendingTeamMembers." + error; + if (error) return 'pendingTeamMembers.' + error; } } - if (message.breachWatchRecords != null && message.hasOwnProperty("breachWatchRecords")) { - if (!Array.isArray(message.breachWatchRecords)) - return "breachWatchRecords: array expected"; + if (message.breachWatchRecords != null && message.hasOwnProperty('breachWatchRecords')) { + if (!Array.isArray(message.breachWatchRecords)) return 'breachWatchRecords: array expected'; for (let i = 0; i < message.breachWatchRecords.length; ++i) { let error = $root.Vault.BreachWatchRecord.verify(message.breachWatchRecords[i]); - if (error) - return "breachWatchRecords." + error; + if (error) return 'breachWatchRecords.' + error; } } - if (message.userAuths != null && message.hasOwnProperty("userAuths")) { - if (!Array.isArray(message.userAuths)) - return "userAuths: array expected"; + if (message.userAuths != null && message.hasOwnProperty('userAuths')) { + if (!Array.isArray(message.userAuths)) return 'userAuths: array expected'; for (let i = 0; i < message.userAuths.length; ++i) { let error = $root.Vault.UserAuth.verify(message.userAuths[i]); - if (error) - return "userAuths." + error; + if (error) return 'userAuths.' + error; } } - if (message.breachWatchSecurityData != null && message.hasOwnProperty("breachWatchSecurityData")) { - if (!Array.isArray(message.breachWatchSecurityData)) - return "breachWatchSecurityData: array expected"; + if (message.breachWatchSecurityData != null && message.hasOwnProperty('breachWatchSecurityData')) { + if (!Array.isArray(message.breachWatchSecurityData)) return 'breachWatchSecurityData: array expected'; for (let i = 0; i < message.breachWatchSecurityData.length; ++i) { let error = $root.Vault.BreachWatchSecurityData.verify(message.breachWatchSecurityData[i]); - if (error) - return "breachWatchSecurityData." + error; + if (error) return 'breachWatchSecurityData.' + error; } } - if (message.reusedPasswords != null && message.hasOwnProperty("reusedPasswords")) { + if (message.reusedPasswords != null && message.hasOwnProperty('reusedPasswords')) { let error = $root.Vault.ReusedPasswords.verify(message.reusedPasswords); - if (error) - return "reusedPasswords." + error; + if (error) return 'reusedPasswords.' + error; } - if (message.removedUserFolders != null && message.hasOwnProperty("removedUserFolders")) { - if (!Array.isArray(message.removedUserFolders)) - return "removedUserFolders: array expected"; + if (message.removedUserFolders != null && message.hasOwnProperty('removedUserFolders')) { + if (!Array.isArray(message.removedUserFolders)) return 'removedUserFolders: array expected'; for (let i = 0; i < message.removedUserFolders.length; ++i) - if (!(message.removedUserFolders[i] && typeof message.removedUserFolders[i].length === "number" || $util.isString(message.removedUserFolders[i]))) - return "removedUserFolders: buffer[] expected"; - } - if (message.removedSharedFolders != null && message.hasOwnProperty("removedSharedFolders")) { - if (!Array.isArray(message.removedSharedFolders)) - return "removedSharedFolders: array expected"; + if ( + !( + (message.removedUserFolders[i] && + typeof message.removedUserFolders[i].length === 'number') || + $util.isString(message.removedUserFolders[i]) + ) + ) + return 'removedUserFolders: buffer[] expected'; + } + if (message.removedSharedFolders != null && message.hasOwnProperty('removedSharedFolders')) { + if (!Array.isArray(message.removedSharedFolders)) return 'removedSharedFolders: array expected'; for (let i = 0; i < message.removedSharedFolders.length; ++i) - if (!(message.removedSharedFolders[i] && typeof message.removedSharedFolders[i].length === "number" || $util.isString(message.removedSharedFolders[i]))) - return "removedSharedFolders: buffer[] expected"; - } - if (message.removedUserFolderSharedFolders != null && message.hasOwnProperty("removedUserFolderSharedFolders")) { + if ( + !( + (message.removedSharedFolders[i] && + typeof message.removedSharedFolders[i].length === 'number') || + $util.isString(message.removedSharedFolders[i]) + ) + ) + return 'removedSharedFolders: buffer[] expected'; + } + if ( + message.removedUserFolderSharedFolders != null && + message.hasOwnProperty('removedUserFolderSharedFolders') + ) { if (!Array.isArray(message.removedUserFolderSharedFolders)) - return "removedUserFolderSharedFolders: array expected"; + return 'removedUserFolderSharedFolders: array expected'; for (let i = 0; i < message.removedUserFolderSharedFolders.length; ++i) { let error = $root.Vault.UserFolderSharedFolder.verify(message.removedUserFolderSharedFolders[i]); - if (error) - return "removedUserFolderSharedFolders." + error; + if (error) return 'removedUserFolderSharedFolders.' + error; } } - if (message.removedSharedFolderFolders != null && message.hasOwnProperty("removedSharedFolderFolders")) { + if (message.removedSharedFolderFolders != null && message.hasOwnProperty('removedSharedFolderFolders')) { if (!Array.isArray(message.removedSharedFolderFolders)) - return "removedSharedFolderFolders: array expected"; + return 'removedSharedFolderFolders: array expected'; for (let i = 0; i < message.removedSharedFolderFolders.length; ++i) { let error = $root.Vault.SharedFolderFolder.verify(message.removedSharedFolderFolders[i]); - if (error) - return "removedSharedFolderFolders." + error; + if (error) return 'removedSharedFolderFolders.' + error; } } - if (message.removedRecords != null && message.hasOwnProperty("removedRecords")) { - if (!Array.isArray(message.removedRecords)) - return "removedRecords: array expected"; + if (message.removedRecords != null && message.hasOwnProperty('removedRecords')) { + if (!Array.isArray(message.removedRecords)) return 'removedRecords: array expected'; for (let i = 0; i < message.removedRecords.length; ++i) - if (!(message.removedRecords[i] && typeof message.removedRecords[i].length === "number" || $util.isString(message.removedRecords[i]))) - return "removedRecords: buffer[] expected"; - } - if (message.removedRecordLinks != null && message.hasOwnProperty("removedRecordLinks")) { - if (!Array.isArray(message.removedRecordLinks)) - return "removedRecordLinks: array expected"; + if ( + !( + (message.removedRecords[i] && typeof message.removedRecords[i].length === 'number') || + $util.isString(message.removedRecords[i]) + ) + ) + return 'removedRecords: buffer[] expected'; + } + if (message.removedRecordLinks != null && message.hasOwnProperty('removedRecordLinks')) { + if (!Array.isArray(message.removedRecordLinks)) return 'removedRecordLinks: array expected'; for (let i = 0; i < message.removedRecordLinks.length; ++i) { let error = $root.Vault.RecordLink.verify(message.removedRecordLinks[i]); - if (error) - return "removedRecordLinks." + error; + if (error) return 'removedRecordLinks.' + error; } } - if (message.removedUserFolderRecords != null && message.hasOwnProperty("removedUserFolderRecords")) { - if (!Array.isArray(message.removedUserFolderRecords)) - return "removedUserFolderRecords: array expected"; + if (message.removedUserFolderRecords != null && message.hasOwnProperty('removedUserFolderRecords')) { + if (!Array.isArray(message.removedUserFolderRecords)) return 'removedUserFolderRecords: array expected'; for (let i = 0; i < message.removedUserFolderRecords.length; ++i) { let error = $root.Vault.UserFolderRecord.verify(message.removedUserFolderRecords[i]); - if (error) - return "removedUserFolderRecords." + error; + if (error) return 'removedUserFolderRecords.' + error; } } - if (message.removedSharedFolderRecords != null && message.hasOwnProperty("removedSharedFolderRecords")) { + if (message.removedSharedFolderRecords != null && message.hasOwnProperty('removedSharedFolderRecords')) { if (!Array.isArray(message.removedSharedFolderRecords)) - return "removedSharedFolderRecords: array expected"; + return 'removedSharedFolderRecords: array expected'; for (let i = 0; i < message.removedSharedFolderRecords.length; ++i) { let error = $root.Vault.SharedFolderRecord.verify(message.removedSharedFolderRecords[i]); - if (error) - return "removedSharedFolderRecords." + error; + if (error) return 'removedSharedFolderRecords.' + error; } } - if (message.removedSharedFolderFolderRecords != null && message.hasOwnProperty("removedSharedFolderFolderRecords")) { + if ( + message.removedSharedFolderFolderRecords != null && + message.hasOwnProperty('removedSharedFolderFolderRecords') + ) { if (!Array.isArray(message.removedSharedFolderFolderRecords)) - return "removedSharedFolderFolderRecords: array expected"; + return 'removedSharedFolderFolderRecords: array expected'; for (let i = 0; i < message.removedSharedFolderFolderRecords.length; ++i) { - let error = $root.Vault.SharedFolderFolderRecord.verify(message.removedSharedFolderFolderRecords[i]); - if (error) - return "removedSharedFolderFolderRecords." + error; + let error = $root.Vault.SharedFolderFolderRecord.verify( + message.removedSharedFolderFolderRecords[i] + ); + if (error) return 'removedSharedFolderFolderRecords.' + error; } } - if (message.removedSharedFolderUsers != null && message.hasOwnProperty("removedSharedFolderUsers")) { - if (!Array.isArray(message.removedSharedFolderUsers)) - return "removedSharedFolderUsers: array expected"; + if (message.removedSharedFolderUsers != null && message.hasOwnProperty('removedSharedFolderUsers')) { + if (!Array.isArray(message.removedSharedFolderUsers)) return 'removedSharedFolderUsers: array expected'; for (let i = 0; i < message.removedSharedFolderUsers.length; ++i) { let error = $root.Vault.SharedFolderUser.verify(message.removedSharedFolderUsers[i]); - if (error) - return "removedSharedFolderUsers." + error; + if (error) return 'removedSharedFolderUsers.' + error; } } - if (message.removedSharedFolderTeams != null && message.hasOwnProperty("removedSharedFolderTeams")) { - if (!Array.isArray(message.removedSharedFolderTeams)) - return "removedSharedFolderTeams: array expected"; + if (message.removedSharedFolderTeams != null && message.hasOwnProperty('removedSharedFolderTeams')) { + if (!Array.isArray(message.removedSharedFolderTeams)) return 'removedSharedFolderTeams: array expected'; for (let i = 0; i < message.removedSharedFolderTeams.length; ++i) { let error = $root.Vault.SharedFolderTeam.verify(message.removedSharedFolderTeams[i]); - if (error) - return "removedSharedFolderTeams." + error; + if (error) return 'removedSharedFolderTeams.' + error; } } - if (message.removedTeams != null && message.hasOwnProperty("removedTeams")) { - if (!Array.isArray(message.removedTeams)) - return "removedTeams: array expected"; + if (message.removedTeams != null && message.hasOwnProperty('removedTeams')) { + if (!Array.isArray(message.removedTeams)) return 'removedTeams: array expected'; for (let i = 0; i < message.removedTeams.length; ++i) - if (!(message.removedTeams[i] && typeof message.removedTeams[i].length === "number" || $util.isString(message.removedTeams[i]))) - return "removedTeams: buffer[] expected"; - } - if (message.ksmAppShares != null && message.hasOwnProperty("ksmAppShares")) { - if (!Array.isArray(message.ksmAppShares)) - return "ksmAppShares: array expected"; + if ( + !( + (message.removedTeams[i] && typeof message.removedTeams[i].length === 'number') || + $util.isString(message.removedTeams[i]) + ) + ) + return 'removedTeams: buffer[] expected'; + } + if (message.ksmAppShares != null && message.hasOwnProperty('ksmAppShares')) { + if (!Array.isArray(message.ksmAppShares)) return 'ksmAppShares: array expected'; for (let i = 0; i < message.ksmAppShares.length; ++i) { let error = $root.Vault.KsmChange.verify(message.ksmAppShares[i]); - if (error) - return "ksmAppShares." + error; + if (error) return 'ksmAppShares.' + error; } } - if (message.ksmAppClients != null && message.hasOwnProperty("ksmAppClients")) { - if (!Array.isArray(message.ksmAppClients)) - return "ksmAppClients: array expected"; + if (message.ksmAppClients != null && message.hasOwnProperty('ksmAppClients')) { + if (!Array.isArray(message.ksmAppClients)) return 'ksmAppClients: array expected'; for (let i = 0; i < message.ksmAppClients.length; ++i) { let error = $root.Vault.KsmChange.verify(message.ksmAppClients[i]); - if (error) - return "ksmAppClients." + error; + if (error) return 'ksmAppClients.' + error; } } - if (message.shareInvitations != null && message.hasOwnProperty("shareInvitations")) { - if (!Array.isArray(message.shareInvitations)) - return "shareInvitations: array expected"; + if (message.shareInvitations != null && message.hasOwnProperty('shareInvitations')) { + if (!Array.isArray(message.shareInvitations)) return 'shareInvitations: array expected'; for (let i = 0; i < message.shareInvitations.length; ++i) { let error = $root.Vault.ShareInvitation.verify(message.shareInvitations[i]); - if (error) - return "shareInvitations." + error; + if (error) return 'shareInvitations.' + error; } } - if (message.diagnostics != null && message.hasOwnProperty("diagnostics")) { + if (message.diagnostics != null && message.hasOwnProperty('diagnostics')) { let error = $root.Vault.SyncDiagnostics.verify(message.diagnostics); - if (error) - return "diagnostics." + error; + if (error) return 'diagnostics.' + error; } - if (message.recordRotations != null && message.hasOwnProperty("recordRotations")) { - if (!Array.isArray(message.recordRotations)) - return "recordRotations: array expected"; + if (message.recordRotations != null && message.hasOwnProperty('recordRotations')) { + if (!Array.isArray(message.recordRotations)) return 'recordRotations: array expected'; for (let i = 0; i < message.recordRotations.length; ++i) { let error = $root.Vault.RecordRotation.verify(message.recordRotations[i]); - if (error) - return "recordRotations." + error; + if (error) return 'recordRotations.' + error; } } - if (message.users != null && message.hasOwnProperty("users")) { - if (!Array.isArray(message.users)) - return "users: array expected"; + if (message.users != null && message.hasOwnProperty('users')) { + if (!Array.isArray(message.users)) return 'users: array expected'; for (let i = 0; i < message.users.length; ++i) { let error = $root.Vault.User.verify(message.users[i]); - if (error) - return "users." + error; + if (error) return 'users.' + error; } } - if (message.removedUsers != null && message.hasOwnProperty("removedUsers")) { - if (!Array.isArray(message.removedUsers)) - return "removedUsers: array expected"; + if (message.removedUsers != null && message.hasOwnProperty('removedUsers')) { + if (!Array.isArray(message.removedUsers)) return 'removedUsers: array expected'; for (let i = 0; i < message.removedUsers.length; ++i) - if (!(message.removedUsers[i] && typeof message.removedUsers[i].length === "number" || $util.isString(message.removedUsers[i]))) - return "removedUsers: buffer[] expected"; - } - if (message.securityScoreData != null && message.hasOwnProperty("securityScoreData")) { - if (!Array.isArray(message.securityScoreData)) - return "securityScoreData: array expected"; + if ( + !( + (message.removedUsers[i] && typeof message.removedUsers[i].length === 'number') || + $util.isString(message.removedUsers[i]) + ) + ) + return 'removedUsers: buffer[] expected'; + } + if (message.securityScoreData != null && message.hasOwnProperty('securityScoreData')) { + if (!Array.isArray(message.securityScoreData)) return 'securityScoreData: array expected'; for (let i = 0; i < message.securityScoreData.length; ++i) { let error = $root.Vault.SecurityScoreData.verify(message.securityScoreData[i]); - if (error) - return "securityScoreData." + error; + if (error) return 'securityScoreData.' + error; } } - if (message.notificationSync != null && message.hasOwnProperty("notificationSync")) { - if (!Array.isArray(message.notificationSync)) - return "notificationSync: array expected"; + if (message.notificationSync != null && message.hasOwnProperty('notificationSync')) { + if (!Array.isArray(message.notificationSync)) return 'notificationSync: array expected'; for (let i = 0; i < message.notificationSync.length; ++i) { let error = $root.NotificationCenter.NotificationWrapper.verify(message.notificationSync[i]); - if (error) - return "notificationSync." + error; + if (error) return 'notificationSync.' + error; } } return null; @@ -201648,450 +209673,509 @@ export const Vault = $root.Vault = (() => { * @returns {Vault.SyncDownResponse} SyncDownResponse */ SyncDownResponse.fromObject = function fromObject(object) { - if (object instanceof $root.Vault.SyncDownResponse) - return object; + if (object instanceof $root.Vault.SyncDownResponse) return object; let message = new $root.Vault.SyncDownResponse(); if (object.continuationToken != null) - if (typeof object.continuationToken === "string") - $util.base64.decode(object.continuationToken, message.continuationToken = $util.newBuffer($util.base64.length(object.continuationToken)), 0); - else if (object.continuationToken.length >= 0) - message.continuationToken = object.continuationToken; - if (object.hasMore != null) - message.hasMore = Boolean(object.hasMore); + if (typeof object.continuationToken === 'string') + $util.base64.decode( + object.continuationToken, + (message.continuationToken = $util.newBuffer($util.base64.length(object.continuationToken))), + 0 + ); + else if (object.continuationToken.length >= 0) message.continuationToken = object.continuationToken; + if (object.hasMore != null) message.hasMore = Boolean(object.hasMore); switch (object.cacheStatus) { - default: - if (typeof object.cacheStatus === "number") { - message.cacheStatus = object.cacheStatus; + default: + if (typeof object.cacheStatus === 'number') { + message.cacheStatus = object.cacheStatus; + break; + } + break; + case 'KEEP': + case 0: + message.cacheStatus = 0; + break; + case 'CLEAR': + case 1: + message.cacheStatus = 1; break; - } - break; - case "KEEP": - case 0: - message.cacheStatus = 0; - break; - case "CLEAR": - case 1: - message.cacheStatus = 1; - break; } if (object.userFolders) { if (!Array.isArray(object.userFolders)) - throw TypeError(".Vault.SyncDownResponse.userFolders: array expected"); + throw TypeError('.Vault.SyncDownResponse.userFolders: array expected'); message.userFolders = []; for (let i = 0; i < object.userFolders.length; ++i) { - if (typeof object.userFolders[i] !== "object") - throw TypeError(".Vault.SyncDownResponse.userFolders: object expected"); + if (typeof object.userFolders[i] !== 'object') + throw TypeError('.Vault.SyncDownResponse.userFolders: object expected'); message.userFolders[i] = $root.Vault.UserFolder.fromObject(object.userFolders[i]); } } if (object.sharedFolders) { if (!Array.isArray(object.sharedFolders)) - throw TypeError(".Vault.SyncDownResponse.sharedFolders: array expected"); + throw TypeError('.Vault.SyncDownResponse.sharedFolders: array expected'); message.sharedFolders = []; for (let i = 0; i < object.sharedFolders.length; ++i) { - if (typeof object.sharedFolders[i] !== "object") - throw TypeError(".Vault.SyncDownResponse.sharedFolders: object expected"); + if (typeof object.sharedFolders[i] !== 'object') + throw TypeError('.Vault.SyncDownResponse.sharedFolders: object expected'); message.sharedFolders[i] = $root.Vault.SharedFolder.fromObject(object.sharedFolders[i]); } } if (object.userFolderSharedFolders) { if (!Array.isArray(object.userFolderSharedFolders)) - throw TypeError(".Vault.SyncDownResponse.userFolderSharedFolders: array expected"); + throw TypeError('.Vault.SyncDownResponse.userFolderSharedFolders: array expected'); message.userFolderSharedFolders = []; for (let i = 0; i < object.userFolderSharedFolders.length; ++i) { - if (typeof object.userFolderSharedFolders[i] !== "object") - throw TypeError(".Vault.SyncDownResponse.userFolderSharedFolders: object expected"); - message.userFolderSharedFolders[i] = $root.Vault.UserFolderSharedFolder.fromObject(object.userFolderSharedFolders[i]); + if (typeof object.userFolderSharedFolders[i] !== 'object') + throw TypeError('.Vault.SyncDownResponse.userFolderSharedFolders: object expected'); + message.userFolderSharedFolders[i] = $root.Vault.UserFolderSharedFolder.fromObject( + object.userFolderSharedFolders[i] + ); } } if (object.sharedFolderFolders) { if (!Array.isArray(object.sharedFolderFolders)) - throw TypeError(".Vault.SyncDownResponse.sharedFolderFolders: array expected"); + throw TypeError('.Vault.SyncDownResponse.sharedFolderFolders: array expected'); message.sharedFolderFolders = []; for (let i = 0; i < object.sharedFolderFolders.length; ++i) { - if (typeof object.sharedFolderFolders[i] !== "object") - throw TypeError(".Vault.SyncDownResponse.sharedFolderFolders: object expected"); - message.sharedFolderFolders[i] = $root.Vault.SharedFolderFolder.fromObject(object.sharedFolderFolders[i]); + if (typeof object.sharedFolderFolders[i] !== 'object') + throw TypeError('.Vault.SyncDownResponse.sharedFolderFolders: object expected'); + message.sharedFolderFolders[i] = $root.Vault.SharedFolderFolder.fromObject( + object.sharedFolderFolders[i] + ); } } if (object.records) { - if (!Array.isArray(object.records)) - throw TypeError(".Vault.SyncDownResponse.records: array expected"); + if (!Array.isArray(object.records)) throw TypeError('.Vault.SyncDownResponse.records: array expected'); message.records = []; for (let i = 0; i < object.records.length; ++i) { - if (typeof object.records[i] !== "object") - throw TypeError(".Vault.SyncDownResponse.records: object expected"); + if (typeof object.records[i] !== 'object') + throw TypeError('.Vault.SyncDownResponse.records: object expected'); message.records[i] = $root.Vault.Record.fromObject(object.records[i]); } } if (object.recordMetaData) { if (!Array.isArray(object.recordMetaData)) - throw TypeError(".Vault.SyncDownResponse.recordMetaData: array expected"); + throw TypeError('.Vault.SyncDownResponse.recordMetaData: array expected'); message.recordMetaData = []; for (let i = 0; i < object.recordMetaData.length; ++i) { - if (typeof object.recordMetaData[i] !== "object") - throw TypeError(".Vault.SyncDownResponse.recordMetaData: object expected"); + if (typeof object.recordMetaData[i] !== 'object') + throw TypeError('.Vault.SyncDownResponse.recordMetaData: object expected'); message.recordMetaData[i] = $root.Vault.RecordMetaData.fromObject(object.recordMetaData[i]); } } if (object.nonSharedData) { if (!Array.isArray(object.nonSharedData)) - throw TypeError(".Vault.SyncDownResponse.nonSharedData: array expected"); + throw TypeError('.Vault.SyncDownResponse.nonSharedData: array expected'); message.nonSharedData = []; for (let i = 0; i < object.nonSharedData.length; ++i) { - if (typeof object.nonSharedData[i] !== "object") - throw TypeError(".Vault.SyncDownResponse.nonSharedData: object expected"); + if (typeof object.nonSharedData[i] !== 'object') + throw TypeError('.Vault.SyncDownResponse.nonSharedData: object expected'); message.nonSharedData[i] = $root.Vault.NonSharedData.fromObject(object.nonSharedData[i]); } } if (object.recordLinks) { if (!Array.isArray(object.recordLinks)) - throw TypeError(".Vault.SyncDownResponse.recordLinks: array expected"); + throw TypeError('.Vault.SyncDownResponse.recordLinks: array expected'); message.recordLinks = []; for (let i = 0; i < object.recordLinks.length; ++i) { - if (typeof object.recordLinks[i] !== "object") - throw TypeError(".Vault.SyncDownResponse.recordLinks: object expected"); + if (typeof object.recordLinks[i] !== 'object') + throw TypeError('.Vault.SyncDownResponse.recordLinks: object expected'); message.recordLinks[i] = $root.Vault.RecordLink.fromObject(object.recordLinks[i]); } } if (object.userFolderRecords) { if (!Array.isArray(object.userFolderRecords)) - throw TypeError(".Vault.SyncDownResponse.userFolderRecords: array expected"); + throw TypeError('.Vault.SyncDownResponse.userFolderRecords: array expected'); message.userFolderRecords = []; for (let i = 0; i < object.userFolderRecords.length; ++i) { - if (typeof object.userFolderRecords[i] !== "object") - throw TypeError(".Vault.SyncDownResponse.userFolderRecords: object expected"); + if (typeof object.userFolderRecords[i] !== 'object') + throw TypeError('.Vault.SyncDownResponse.userFolderRecords: object expected'); message.userFolderRecords[i] = $root.Vault.UserFolderRecord.fromObject(object.userFolderRecords[i]); } } if (object.sharedFolderRecords) { if (!Array.isArray(object.sharedFolderRecords)) - throw TypeError(".Vault.SyncDownResponse.sharedFolderRecords: array expected"); + throw TypeError('.Vault.SyncDownResponse.sharedFolderRecords: array expected'); message.sharedFolderRecords = []; for (let i = 0; i < object.sharedFolderRecords.length; ++i) { - if (typeof object.sharedFolderRecords[i] !== "object") - throw TypeError(".Vault.SyncDownResponse.sharedFolderRecords: object expected"); - message.sharedFolderRecords[i] = $root.Vault.SharedFolderRecord.fromObject(object.sharedFolderRecords[i]); + if (typeof object.sharedFolderRecords[i] !== 'object') + throw TypeError('.Vault.SyncDownResponse.sharedFolderRecords: object expected'); + message.sharedFolderRecords[i] = $root.Vault.SharedFolderRecord.fromObject( + object.sharedFolderRecords[i] + ); } } if (object.sharedFolderFolderRecords) { if (!Array.isArray(object.sharedFolderFolderRecords)) - throw TypeError(".Vault.SyncDownResponse.sharedFolderFolderRecords: array expected"); + throw TypeError('.Vault.SyncDownResponse.sharedFolderFolderRecords: array expected'); message.sharedFolderFolderRecords = []; for (let i = 0; i < object.sharedFolderFolderRecords.length; ++i) { - if (typeof object.sharedFolderFolderRecords[i] !== "object") - throw TypeError(".Vault.SyncDownResponse.sharedFolderFolderRecords: object expected"); - message.sharedFolderFolderRecords[i] = $root.Vault.SharedFolderFolderRecord.fromObject(object.sharedFolderFolderRecords[i]); + if (typeof object.sharedFolderFolderRecords[i] !== 'object') + throw TypeError('.Vault.SyncDownResponse.sharedFolderFolderRecords: object expected'); + message.sharedFolderFolderRecords[i] = $root.Vault.SharedFolderFolderRecord.fromObject( + object.sharedFolderFolderRecords[i] + ); } } if (object.sharedFolderUsers) { if (!Array.isArray(object.sharedFolderUsers)) - throw TypeError(".Vault.SyncDownResponse.sharedFolderUsers: array expected"); + throw TypeError('.Vault.SyncDownResponse.sharedFolderUsers: array expected'); message.sharedFolderUsers = []; for (let i = 0; i < object.sharedFolderUsers.length; ++i) { - if (typeof object.sharedFolderUsers[i] !== "object") - throw TypeError(".Vault.SyncDownResponse.sharedFolderUsers: object expected"); + if (typeof object.sharedFolderUsers[i] !== 'object') + throw TypeError('.Vault.SyncDownResponse.sharedFolderUsers: object expected'); message.sharedFolderUsers[i] = $root.Vault.SharedFolderUser.fromObject(object.sharedFolderUsers[i]); } } if (object.sharedFolderTeams) { if (!Array.isArray(object.sharedFolderTeams)) - throw TypeError(".Vault.SyncDownResponse.sharedFolderTeams: array expected"); + throw TypeError('.Vault.SyncDownResponse.sharedFolderTeams: array expected'); message.sharedFolderTeams = []; for (let i = 0; i < object.sharedFolderTeams.length; ++i) { - if (typeof object.sharedFolderTeams[i] !== "object") - throw TypeError(".Vault.SyncDownResponse.sharedFolderTeams: object expected"); + if (typeof object.sharedFolderTeams[i] !== 'object') + throw TypeError('.Vault.SyncDownResponse.sharedFolderTeams: object expected'); message.sharedFolderTeams[i] = $root.Vault.SharedFolderTeam.fromObject(object.sharedFolderTeams[i]); } } if (object.recordAddAuditData) { if (!Array.isArray(object.recordAddAuditData)) - throw TypeError(".Vault.SyncDownResponse.recordAddAuditData: array expected"); + throw TypeError('.Vault.SyncDownResponse.recordAddAuditData: array expected'); message.recordAddAuditData = []; for (let i = 0; i < object.recordAddAuditData.length; ++i) - if (typeof object.recordAddAuditData[i] === "string") - $util.base64.decode(object.recordAddAuditData[i], message.recordAddAuditData[i] = $util.newBuffer($util.base64.length(object.recordAddAuditData[i])), 0); + if (typeof object.recordAddAuditData[i] === 'string') + $util.base64.decode( + object.recordAddAuditData[i], + (message.recordAddAuditData[i] = $util.newBuffer( + $util.base64.length(object.recordAddAuditData[i]) + )), + 0 + ); else if (object.recordAddAuditData[i].length >= 0) message.recordAddAuditData[i] = object.recordAddAuditData[i]; } if (object.teams) { - if (!Array.isArray(object.teams)) - throw TypeError(".Vault.SyncDownResponse.teams: array expected"); + if (!Array.isArray(object.teams)) throw TypeError('.Vault.SyncDownResponse.teams: array expected'); message.teams = []; for (let i = 0; i < object.teams.length; ++i) { - if (typeof object.teams[i] !== "object") - throw TypeError(".Vault.SyncDownResponse.teams: object expected"); + if (typeof object.teams[i] !== 'object') + throw TypeError('.Vault.SyncDownResponse.teams: object expected'); message.teams[i] = $root.Vault.Team.fromObject(object.teams[i]); } } if (object.sharingChanges) { if (!Array.isArray(object.sharingChanges)) - throw TypeError(".Vault.SyncDownResponse.sharingChanges: array expected"); + throw TypeError('.Vault.SyncDownResponse.sharingChanges: array expected'); message.sharingChanges = []; for (let i = 0; i < object.sharingChanges.length; ++i) { - if (typeof object.sharingChanges[i] !== "object") - throw TypeError(".Vault.SyncDownResponse.sharingChanges: object expected"); + if (typeof object.sharingChanges[i] !== 'object') + throw TypeError('.Vault.SyncDownResponse.sharingChanges: object expected'); message.sharingChanges[i] = $root.Vault.SharingChange.fromObject(object.sharingChanges[i]); } } if (object.profile != null) { - if (typeof object.profile !== "object") - throw TypeError(".Vault.SyncDownResponse.profile: object expected"); + if (typeof object.profile !== 'object') + throw TypeError('.Vault.SyncDownResponse.profile: object expected'); message.profile = $root.Vault.Profile.fromObject(object.profile); } if (object.profilePic != null) { - if (typeof object.profilePic !== "object") - throw TypeError(".Vault.SyncDownResponse.profilePic: object expected"); + if (typeof object.profilePic !== 'object') + throw TypeError('.Vault.SyncDownResponse.profilePic: object expected'); message.profilePic = $root.Vault.ProfilePic.fromObject(object.profilePic); } if (object.pendingTeamMembers) { if (!Array.isArray(object.pendingTeamMembers)) - throw TypeError(".Vault.SyncDownResponse.pendingTeamMembers: array expected"); + throw TypeError('.Vault.SyncDownResponse.pendingTeamMembers: array expected'); message.pendingTeamMembers = []; for (let i = 0; i < object.pendingTeamMembers.length; ++i) { - if (typeof object.pendingTeamMembers[i] !== "object") - throw TypeError(".Vault.SyncDownResponse.pendingTeamMembers: object expected"); - message.pendingTeamMembers[i] = $root.Vault.PendingTeamMember.fromObject(object.pendingTeamMembers[i]); + if (typeof object.pendingTeamMembers[i] !== 'object') + throw TypeError('.Vault.SyncDownResponse.pendingTeamMembers: object expected'); + message.pendingTeamMembers[i] = $root.Vault.PendingTeamMember.fromObject( + object.pendingTeamMembers[i] + ); } } if (object.breachWatchRecords) { if (!Array.isArray(object.breachWatchRecords)) - throw TypeError(".Vault.SyncDownResponse.breachWatchRecords: array expected"); + throw TypeError('.Vault.SyncDownResponse.breachWatchRecords: array expected'); message.breachWatchRecords = []; for (let i = 0; i < object.breachWatchRecords.length; ++i) { - if (typeof object.breachWatchRecords[i] !== "object") - throw TypeError(".Vault.SyncDownResponse.breachWatchRecords: object expected"); - message.breachWatchRecords[i] = $root.Vault.BreachWatchRecord.fromObject(object.breachWatchRecords[i]); + if (typeof object.breachWatchRecords[i] !== 'object') + throw TypeError('.Vault.SyncDownResponse.breachWatchRecords: object expected'); + message.breachWatchRecords[i] = $root.Vault.BreachWatchRecord.fromObject( + object.breachWatchRecords[i] + ); } } if (object.userAuths) { if (!Array.isArray(object.userAuths)) - throw TypeError(".Vault.SyncDownResponse.userAuths: array expected"); + throw TypeError('.Vault.SyncDownResponse.userAuths: array expected'); message.userAuths = []; for (let i = 0; i < object.userAuths.length; ++i) { - if (typeof object.userAuths[i] !== "object") - throw TypeError(".Vault.SyncDownResponse.userAuths: object expected"); + if (typeof object.userAuths[i] !== 'object') + throw TypeError('.Vault.SyncDownResponse.userAuths: object expected'); message.userAuths[i] = $root.Vault.UserAuth.fromObject(object.userAuths[i]); } } if (object.breachWatchSecurityData) { if (!Array.isArray(object.breachWatchSecurityData)) - throw TypeError(".Vault.SyncDownResponse.breachWatchSecurityData: array expected"); + throw TypeError('.Vault.SyncDownResponse.breachWatchSecurityData: array expected'); message.breachWatchSecurityData = []; for (let i = 0; i < object.breachWatchSecurityData.length; ++i) { - if (typeof object.breachWatchSecurityData[i] !== "object") - throw TypeError(".Vault.SyncDownResponse.breachWatchSecurityData: object expected"); - message.breachWatchSecurityData[i] = $root.Vault.BreachWatchSecurityData.fromObject(object.breachWatchSecurityData[i]); + if (typeof object.breachWatchSecurityData[i] !== 'object') + throw TypeError('.Vault.SyncDownResponse.breachWatchSecurityData: object expected'); + message.breachWatchSecurityData[i] = $root.Vault.BreachWatchSecurityData.fromObject( + object.breachWatchSecurityData[i] + ); } } if (object.reusedPasswords != null) { - if (typeof object.reusedPasswords !== "object") - throw TypeError(".Vault.SyncDownResponse.reusedPasswords: object expected"); + if (typeof object.reusedPasswords !== 'object') + throw TypeError('.Vault.SyncDownResponse.reusedPasswords: object expected'); message.reusedPasswords = $root.Vault.ReusedPasswords.fromObject(object.reusedPasswords); } if (object.removedUserFolders) { if (!Array.isArray(object.removedUserFolders)) - throw TypeError(".Vault.SyncDownResponse.removedUserFolders: array expected"); + throw TypeError('.Vault.SyncDownResponse.removedUserFolders: array expected'); message.removedUserFolders = []; for (let i = 0; i < object.removedUserFolders.length; ++i) - if (typeof object.removedUserFolders[i] === "string") - $util.base64.decode(object.removedUserFolders[i], message.removedUserFolders[i] = $util.newBuffer($util.base64.length(object.removedUserFolders[i])), 0); + if (typeof object.removedUserFolders[i] === 'string') + $util.base64.decode( + object.removedUserFolders[i], + (message.removedUserFolders[i] = $util.newBuffer( + $util.base64.length(object.removedUserFolders[i]) + )), + 0 + ); else if (object.removedUserFolders[i].length >= 0) message.removedUserFolders[i] = object.removedUserFolders[i]; } if (object.removedSharedFolders) { if (!Array.isArray(object.removedSharedFolders)) - throw TypeError(".Vault.SyncDownResponse.removedSharedFolders: array expected"); + throw TypeError('.Vault.SyncDownResponse.removedSharedFolders: array expected'); message.removedSharedFolders = []; for (let i = 0; i < object.removedSharedFolders.length; ++i) - if (typeof object.removedSharedFolders[i] === "string") - $util.base64.decode(object.removedSharedFolders[i], message.removedSharedFolders[i] = $util.newBuffer($util.base64.length(object.removedSharedFolders[i])), 0); + if (typeof object.removedSharedFolders[i] === 'string') + $util.base64.decode( + object.removedSharedFolders[i], + (message.removedSharedFolders[i] = $util.newBuffer( + $util.base64.length(object.removedSharedFolders[i]) + )), + 0 + ); else if (object.removedSharedFolders[i].length >= 0) message.removedSharedFolders[i] = object.removedSharedFolders[i]; } if (object.removedUserFolderSharedFolders) { if (!Array.isArray(object.removedUserFolderSharedFolders)) - throw TypeError(".Vault.SyncDownResponse.removedUserFolderSharedFolders: array expected"); + throw TypeError('.Vault.SyncDownResponse.removedUserFolderSharedFolders: array expected'); message.removedUserFolderSharedFolders = []; for (let i = 0; i < object.removedUserFolderSharedFolders.length; ++i) { - if (typeof object.removedUserFolderSharedFolders[i] !== "object") - throw TypeError(".Vault.SyncDownResponse.removedUserFolderSharedFolders: object expected"); - message.removedUserFolderSharedFolders[i] = $root.Vault.UserFolderSharedFolder.fromObject(object.removedUserFolderSharedFolders[i]); + if (typeof object.removedUserFolderSharedFolders[i] !== 'object') + throw TypeError('.Vault.SyncDownResponse.removedUserFolderSharedFolders: object expected'); + message.removedUserFolderSharedFolders[i] = $root.Vault.UserFolderSharedFolder.fromObject( + object.removedUserFolderSharedFolders[i] + ); } } if (object.removedSharedFolderFolders) { if (!Array.isArray(object.removedSharedFolderFolders)) - throw TypeError(".Vault.SyncDownResponse.removedSharedFolderFolders: array expected"); + throw TypeError('.Vault.SyncDownResponse.removedSharedFolderFolders: array expected'); message.removedSharedFolderFolders = []; for (let i = 0; i < object.removedSharedFolderFolders.length; ++i) { - if (typeof object.removedSharedFolderFolders[i] !== "object") - throw TypeError(".Vault.SyncDownResponse.removedSharedFolderFolders: object expected"); - message.removedSharedFolderFolders[i] = $root.Vault.SharedFolderFolder.fromObject(object.removedSharedFolderFolders[i]); + if (typeof object.removedSharedFolderFolders[i] !== 'object') + throw TypeError('.Vault.SyncDownResponse.removedSharedFolderFolders: object expected'); + message.removedSharedFolderFolders[i] = $root.Vault.SharedFolderFolder.fromObject( + object.removedSharedFolderFolders[i] + ); } } if (object.removedRecords) { if (!Array.isArray(object.removedRecords)) - throw TypeError(".Vault.SyncDownResponse.removedRecords: array expected"); + throw TypeError('.Vault.SyncDownResponse.removedRecords: array expected'); message.removedRecords = []; for (let i = 0; i < object.removedRecords.length; ++i) - if (typeof object.removedRecords[i] === "string") - $util.base64.decode(object.removedRecords[i], message.removedRecords[i] = $util.newBuffer($util.base64.length(object.removedRecords[i])), 0); - else if (object.removedRecords[i].length >= 0) - message.removedRecords[i] = object.removedRecords[i]; + if (typeof object.removedRecords[i] === 'string') + $util.base64.decode( + object.removedRecords[i], + (message.removedRecords[i] = $util.newBuffer( + $util.base64.length(object.removedRecords[i]) + )), + 0 + ); + else if (object.removedRecords[i].length >= 0) message.removedRecords[i] = object.removedRecords[i]; } if (object.removedRecordLinks) { if (!Array.isArray(object.removedRecordLinks)) - throw TypeError(".Vault.SyncDownResponse.removedRecordLinks: array expected"); + throw TypeError('.Vault.SyncDownResponse.removedRecordLinks: array expected'); message.removedRecordLinks = []; for (let i = 0; i < object.removedRecordLinks.length; ++i) { - if (typeof object.removedRecordLinks[i] !== "object") - throw TypeError(".Vault.SyncDownResponse.removedRecordLinks: object expected"); + if (typeof object.removedRecordLinks[i] !== 'object') + throw TypeError('.Vault.SyncDownResponse.removedRecordLinks: object expected'); message.removedRecordLinks[i] = $root.Vault.RecordLink.fromObject(object.removedRecordLinks[i]); } } if (object.removedUserFolderRecords) { if (!Array.isArray(object.removedUserFolderRecords)) - throw TypeError(".Vault.SyncDownResponse.removedUserFolderRecords: array expected"); + throw TypeError('.Vault.SyncDownResponse.removedUserFolderRecords: array expected'); message.removedUserFolderRecords = []; for (let i = 0; i < object.removedUserFolderRecords.length; ++i) { - if (typeof object.removedUserFolderRecords[i] !== "object") - throw TypeError(".Vault.SyncDownResponse.removedUserFolderRecords: object expected"); - message.removedUserFolderRecords[i] = $root.Vault.UserFolderRecord.fromObject(object.removedUserFolderRecords[i]); + if (typeof object.removedUserFolderRecords[i] !== 'object') + throw TypeError('.Vault.SyncDownResponse.removedUserFolderRecords: object expected'); + message.removedUserFolderRecords[i] = $root.Vault.UserFolderRecord.fromObject( + object.removedUserFolderRecords[i] + ); } } if (object.removedSharedFolderRecords) { if (!Array.isArray(object.removedSharedFolderRecords)) - throw TypeError(".Vault.SyncDownResponse.removedSharedFolderRecords: array expected"); + throw TypeError('.Vault.SyncDownResponse.removedSharedFolderRecords: array expected'); message.removedSharedFolderRecords = []; for (let i = 0; i < object.removedSharedFolderRecords.length; ++i) { - if (typeof object.removedSharedFolderRecords[i] !== "object") - throw TypeError(".Vault.SyncDownResponse.removedSharedFolderRecords: object expected"); - message.removedSharedFolderRecords[i] = $root.Vault.SharedFolderRecord.fromObject(object.removedSharedFolderRecords[i]); + if (typeof object.removedSharedFolderRecords[i] !== 'object') + throw TypeError('.Vault.SyncDownResponse.removedSharedFolderRecords: object expected'); + message.removedSharedFolderRecords[i] = $root.Vault.SharedFolderRecord.fromObject( + object.removedSharedFolderRecords[i] + ); } } if (object.removedSharedFolderFolderRecords) { if (!Array.isArray(object.removedSharedFolderFolderRecords)) - throw TypeError(".Vault.SyncDownResponse.removedSharedFolderFolderRecords: array expected"); + throw TypeError('.Vault.SyncDownResponse.removedSharedFolderFolderRecords: array expected'); message.removedSharedFolderFolderRecords = []; for (let i = 0; i < object.removedSharedFolderFolderRecords.length; ++i) { - if (typeof object.removedSharedFolderFolderRecords[i] !== "object") - throw TypeError(".Vault.SyncDownResponse.removedSharedFolderFolderRecords: object expected"); - message.removedSharedFolderFolderRecords[i] = $root.Vault.SharedFolderFolderRecord.fromObject(object.removedSharedFolderFolderRecords[i]); + if (typeof object.removedSharedFolderFolderRecords[i] !== 'object') + throw TypeError('.Vault.SyncDownResponse.removedSharedFolderFolderRecords: object expected'); + message.removedSharedFolderFolderRecords[i] = $root.Vault.SharedFolderFolderRecord.fromObject( + object.removedSharedFolderFolderRecords[i] + ); } } if (object.removedSharedFolderUsers) { if (!Array.isArray(object.removedSharedFolderUsers)) - throw TypeError(".Vault.SyncDownResponse.removedSharedFolderUsers: array expected"); + throw TypeError('.Vault.SyncDownResponse.removedSharedFolderUsers: array expected'); message.removedSharedFolderUsers = []; for (let i = 0; i < object.removedSharedFolderUsers.length; ++i) { - if (typeof object.removedSharedFolderUsers[i] !== "object") - throw TypeError(".Vault.SyncDownResponse.removedSharedFolderUsers: object expected"); - message.removedSharedFolderUsers[i] = $root.Vault.SharedFolderUser.fromObject(object.removedSharedFolderUsers[i]); + if (typeof object.removedSharedFolderUsers[i] !== 'object') + throw TypeError('.Vault.SyncDownResponse.removedSharedFolderUsers: object expected'); + message.removedSharedFolderUsers[i] = $root.Vault.SharedFolderUser.fromObject( + object.removedSharedFolderUsers[i] + ); } } if (object.removedSharedFolderTeams) { if (!Array.isArray(object.removedSharedFolderTeams)) - throw TypeError(".Vault.SyncDownResponse.removedSharedFolderTeams: array expected"); + throw TypeError('.Vault.SyncDownResponse.removedSharedFolderTeams: array expected'); message.removedSharedFolderTeams = []; for (let i = 0; i < object.removedSharedFolderTeams.length; ++i) { - if (typeof object.removedSharedFolderTeams[i] !== "object") - throw TypeError(".Vault.SyncDownResponse.removedSharedFolderTeams: object expected"); - message.removedSharedFolderTeams[i] = $root.Vault.SharedFolderTeam.fromObject(object.removedSharedFolderTeams[i]); + if (typeof object.removedSharedFolderTeams[i] !== 'object') + throw TypeError('.Vault.SyncDownResponse.removedSharedFolderTeams: object expected'); + message.removedSharedFolderTeams[i] = $root.Vault.SharedFolderTeam.fromObject( + object.removedSharedFolderTeams[i] + ); } } if (object.removedTeams) { if (!Array.isArray(object.removedTeams)) - throw TypeError(".Vault.SyncDownResponse.removedTeams: array expected"); + throw TypeError('.Vault.SyncDownResponse.removedTeams: array expected'); message.removedTeams = []; for (let i = 0; i < object.removedTeams.length; ++i) - if (typeof object.removedTeams[i] === "string") - $util.base64.decode(object.removedTeams[i], message.removedTeams[i] = $util.newBuffer($util.base64.length(object.removedTeams[i])), 0); - else if (object.removedTeams[i].length >= 0) - message.removedTeams[i] = object.removedTeams[i]; + if (typeof object.removedTeams[i] === 'string') + $util.base64.decode( + object.removedTeams[i], + (message.removedTeams[i] = $util.newBuffer($util.base64.length(object.removedTeams[i]))), + 0 + ); + else if (object.removedTeams[i].length >= 0) message.removedTeams[i] = object.removedTeams[i]; } if (object.ksmAppShares) { if (!Array.isArray(object.ksmAppShares)) - throw TypeError(".Vault.SyncDownResponse.ksmAppShares: array expected"); + throw TypeError('.Vault.SyncDownResponse.ksmAppShares: array expected'); message.ksmAppShares = []; for (let i = 0; i < object.ksmAppShares.length; ++i) { - if (typeof object.ksmAppShares[i] !== "object") - throw TypeError(".Vault.SyncDownResponse.ksmAppShares: object expected"); + if (typeof object.ksmAppShares[i] !== 'object') + throw TypeError('.Vault.SyncDownResponse.ksmAppShares: object expected'); message.ksmAppShares[i] = $root.Vault.KsmChange.fromObject(object.ksmAppShares[i]); } } if (object.ksmAppClients) { if (!Array.isArray(object.ksmAppClients)) - throw TypeError(".Vault.SyncDownResponse.ksmAppClients: array expected"); + throw TypeError('.Vault.SyncDownResponse.ksmAppClients: array expected'); message.ksmAppClients = []; for (let i = 0; i < object.ksmAppClients.length; ++i) { - if (typeof object.ksmAppClients[i] !== "object") - throw TypeError(".Vault.SyncDownResponse.ksmAppClients: object expected"); + if (typeof object.ksmAppClients[i] !== 'object') + throw TypeError('.Vault.SyncDownResponse.ksmAppClients: object expected'); message.ksmAppClients[i] = $root.Vault.KsmChange.fromObject(object.ksmAppClients[i]); } } if (object.shareInvitations) { if (!Array.isArray(object.shareInvitations)) - throw TypeError(".Vault.SyncDownResponse.shareInvitations: array expected"); + throw TypeError('.Vault.SyncDownResponse.shareInvitations: array expected'); message.shareInvitations = []; for (let i = 0; i < object.shareInvitations.length; ++i) { - if (typeof object.shareInvitations[i] !== "object") - throw TypeError(".Vault.SyncDownResponse.shareInvitations: object expected"); + if (typeof object.shareInvitations[i] !== 'object') + throw TypeError('.Vault.SyncDownResponse.shareInvitations: object expected'); message.shareInvitations[i] = $root.Vault.ShareInvitation.fromObject(object.shareInvitations[i]); } } if (object.diagnostics != null) { - if (typeof object.diagnostics !== "object") - throw TypeError(".Vault.SyncDownResponse.diagnostics: object expected"); + if (typeof object.diagnostics !== 'object') + throw TypeError('.Vault.SyncDownResponse.diagnostics: object expected'); message.diagnostics = $root.Vault.SyncDiagnostics.fromObject(object.diagnostics); } if (object.recordRotations) { if (!Array.isArray(object.recordRotations)) - throw TypeError(".Vault.SyncDownResponse.recordRotations: array expected"); + throw TypeError('.Vault.SyncDownResponse.recordRotations: array expected'); message.recordRotations = []; for (let i = 0; i < object.recordRotations.length; ++i) { - if (typeof object.recordRotations[i] !== "object") - throw TypeError(".Vault.SyncDownResponse.recordRotations: object expected"); + if (typeof object.recordRotations[i] !== 'object') + throw TypeError('.Vault.SyncDownResponse.recordRotations: object expected'); message.recordRotations[i] = $root.Vault.RecordRotation.fromObject(object.recordRotations[i]); } } if (object.users) { - if (!Array.isArray(object.users)) - throw TypeError(".Vault.SyncDownResponse.users: array expected"); + if (!Array.isArray(object.users)) throw TypeError('.Vault.SyncDownResponse.users: array expected'); message.users = []; for (let i = 0; i < object.users.length; ++i) { - if (typeof object.users[i] !== "object") - throw TypeError(".Vault.SyncDownResponse.users: object expected"); + if (typeof object.users[i] !== 'object') + throw TypeError('.Vault.SyncDownResponse.users: object expected'); message.users[i] = $root.Vault.User.fromObject(object.users[i]); } } if (object.removedUsers) { if (!Array.isArray(object.removedUsers)) - throw TypeError(".Vault.SyncDownResponse.removedUsers: array expected"); + throw TypeError('.Vault.SyncDownResponse.removedUsers: array expected'); message.removedUsers = []; for (let i = 0; i < object.removedUsers.length; ++i) - if (typeof object.removedUsers[i] === "string") - $util.base64.decode(object.removedUsers[i], message.removedUsers[i] = $util.newBuffer($util.base64.length(object.removedUsers[i])), 0); - else if (object.removedUsers[i].length >= 0) - message.removedUsers[i] = object.removedUsers[i]; + if (typeof object.removedUsers[i] === 'string') + $util.base64.decode( + object.removedUsers[i], + (message.removedUsers[i] = $util.newBuffer($util.base64.length(object.removedUsers[i]))), + 0 + ); + else if (object.removedUsers[i].length >= 0) message.removedUsers[i] = object.removedUsers[i]; } if (object.securityScoreData) { if (!Array.isArray(object.securityScoreData)) - throw TypeError(".Vault.SyncDownResponse.securityScoreData: array expected"); + throw TypeError('.Vault.SyncDownResponse.securityScoreData: array expected'); message.securityScoreData = []; for (let i = 0; i < object.securityScoreData.length; ++i) { - if (typeof object.securityScoreData[i] !== "object") - throw TypeError(".Vault.SyncDownResponse.securityScoreData: object expected"); - message.securityScoreData[i] = $root.Vault.SecurityScoreData.fromObject(object.securityScoreData[i]); + if (typeof object.securityScoreData[i] !== 'object') + throw TypeError('.Vault.SyncDownResponse.securityScoreData: object expected'); + message.securityScoreData[i] = $root.Vault.SecurityScoreData.fromObject( + object.securityScoreData[i] + ); } } if (object.notificationSync) { if (!Array.isArray(object.notificationSync)) - throw TypeError(".Vault.SyncDownResponse.notificationSync: array expected"); + throw TypeError('.Vault.SyncDownResponse.notificationSync: array expected'); message.notificationSync = []; for (let i = 0; i < object.notificationSync.length; ++i) { - if (typeof object.notificationSync[i] !== "object") - throw TypeError(".Vault.SyncDownResponse.notificationSync: object expected"); - message.notificationSync[i] = $root.NotificationCenter.NotificationWrapper.fromObject(object.notificationSync[i]); + if (typeof object.notificationSync[i] !== 'object') + throw TypeError('.Vault.SyncDownResponse.notificationSync: object expected'); + message.notificationSync[i] = $root.NotificationCenter.NotificationWrapper.fromObject( + object.notificationSync[i] + ); } } return message; @@ -202107,8 +210191,7 @@ export const Vault = $root.Vault = (() => { * @returns {Object.} Plain object */ SyncDownResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.arrays || options.defaults) { object.userFolders = []; @@ -202153,26 +210236,33 @@ export const Vault = $root.Vault = (() => { object.notificationSync = []; } if (options.defaults) { - if (options.bytes === String) - object.continuationToken = ""; + if (options.bytes === String) object.continuationToken = ''; else { object.continuationToken = []; - if (options.bytes !== Array) - object.continuationToken = $util.newBuffer(object.continuationToken); + if (options.bytes !== Array) object.continuationToken = $util.newBuffer(object.continuationToken); } object.hasMore = false; - object.cacheStatus = options.enums === String ? "KEEP" : 0; + object.cacheStatus = options.enums === String ? 'KEEP' : 0; object.profile = null; object.profilePic = null; object.reusedPasswords = null; object.diagnostics = null; } - if (message.continuationToken != null && message.hasOwnProperty("continuationToken")) - object.continuationToken = options.bytes === String ? $util.base64.encode(message.continuationToken, 0, message.continuationToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.continuationToken) : message.continuationToken; - if (message.hasMore != null && message.hasOwnProperty("hasMore")) - object.hasMore = message.hasMore; - if (message.cacheStatus != null && message.hasOwnProperty("cacheStatus")) - object.cacheStatus = options.enums === String ? $root.Vault.CacheStatus[message.cacheStatus] === undefined ? message.cacheStatus : $root.Vault.CacheStatus[message.cacheStatus] : message.cacheStatus; + if (message.continuationToken != null && message.hasOwnProperty('continuationToken')) + object.continuationToken = + options.bytes === String + ? $util.base64.encode(message.continuationToken, 0, message.continuationToken.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.continuationToken) + : message.continuationToken; + if (message.hasMore != null && message.hasOwnProperty('hasMore')) object.hasMore = message.hasMore; + if (message.cacheStatus != null && message.hasOwnProperty('cacheStatus')) + object.cacheStatus = + options.enums === String + ? $root.Vault.CacheStatus[message.cacheStatus] === undefined + ? message.cacheStatus + : $root.Vault.CacheStatus[message.cacheStatus] + : message.cacheStatus; if (message.userFolders && message.userFolders.length) { object.userFolders = []; for (let j = 0; j < message.userFolders.length; ++j) @@ -202186,12 +210276,18 @@ export const Vault = $root.Vault = (() => { if (message.userFolderSharedFolders && message.userFolderSharedFolders.length) { object.userFolderSharedFolders = []; for (let j = 0; j < message.userFolderSharedFolders.length; ++j) - object.userFolderSharedFolders[j] = $root.Vault.UserFolderSharedFolder.toObject(message.userFolderSharedFolders[j], options); + object.userFolderSharedFolders[j] = $root.Vault.UserFolderSharedFolder.toObject( + message.userFolderSharedFolders[j], + options + ); } if (message.sharedFolderFolders && message.sharedFolderFolders.length) { object.sharedFolderFolders = []; for (let j = 0; j < message.sharedFolderFolders.length; ++j) - object.sharedFolderFolders[j] = $root.Vault.SharedFolderFolder.toObject(message.sharedFolderFolders[j], options); + object.sharedFolderFolders[j] = $root.Vault.SharedFolderFolder.toObject( + message.sharedFolderFolders[j], + options + ); } if (message.records && message.records.length) { object.records = []; @@ -202216,32 +210312,56 @@ export const Vault = $root.Vault = (() => { if (message.userFolderRecords && message.userFolderRecords.length) { object.userFolderRecords = []; for (let j = 0; j < message.userFolderRecords.length; ++j) - object.userFolderRecords[j] = $root.Vault.UserFolderRecord.toObject(message.userFolderRecords[j], options); + object.userFolderRecords[j] = $root.Vault.UserFolderRecord.toObject( + message.userFolderRecords[j], + options + ); } if (message.sharedFolderRecords && message.sharedFolderRecords.length) { object.sharedFolderRecords = []; for (let j = 0; j < message.sharedFolderRecords.length; ++j) - object.sharedFolderRecords[j] = $root.Vault.SharedFolderRecord.toObject(message.sharedFolderRecords[j], options); + object.sharedFolderRecords[j] = $root.Vault.SharedFolderRecord.toObject( + message.sharedFolderRecords[j], + options + ); } if (message.sharedFolderFolderRecords && message.sharedFolderFolderRecords.length) { object.sharedFolderFolderRecords = []; for (let j = 0; j < message.sharedFolderFolderRecords.length; ++j) - object.sharedFolderFolderRecords[j] = $root.Vault.SharedFolderFolderRecord.toObject(message.sharedFolderFolderRecords[j], options); + object.sharedFolderFolderRecords[j] = $root.Vault.SharedFolderFolderRecord.toObject( + message.sharedFolderFolderRecords[j], + options + ); } if (message.sharedFolderUsers && message.sharedFolderUsers.length) { object.sharedFolderUsers = []; for (let j = 0; j < message.sharedFolderUsers.length; ++j) - object.sharedFolderUsers[j] = $root.Vault.SharedFolderUser.toObject(message.sharedFolderUsers[j], options); + object.sharedFolderUsers[j] = $root.Vault.SharedFolderUser.toObject( + message.sharedFolderUsers[j], + options + ); } if (message.sharedFolderTeams && message.sharedFolderTeams.length) { object.sharedFolderTeams = []; for (let j = 0; j < message.sharedFolderTeams.length; ++j) - object.sharedFolderTeams[j] = $root.Vault.SharedFolderTeam.toObject(message.sharedFolderTeams[j], options); + object.sharedFolderTeams[j] = $root.Vault.SharedFolderTeam.toObject( + message.sharedFolderTeams[j], + options + ); } if (message.recordAddAuditData && message.recordAddAuditData.length) { object.recordAddAuditData = []; for (let j = 0; j < message.recordAddAuditData.length; ++j) - object.recordAddAuditData[j] = options.bytes === String ? $util.base64.encode(message.recordAddAuditData[j], 0, message.recordAddAuditData[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.recordAddAuditData[j]) : message.recordAddAuditData[j]; + object.recordAddAuditData[j] = + options.bytes === String + ? $util.base64.encode( + message.recordAddAuditData[j], + 0, + message.recordAddAuditData[j].length + ) + : options.bytes === Array + ? Array.prototype.slice.call(message.recordAddAuditData[j]) + : message.recordAddAuditData[j]; } if (message.teams && message.teams.length) { object.teams = []; @@ -202253,19 +210373,25 @@ export const Vault = $root.Vault = (() => { for (let j = 0; j < message.sharingChanges.length; ++j) object.sharingChanges[j] = $root.Vault.SharingChange.toObject(message.sharingChanges[j], options); } - if (message.profile != null && message.hasOwnProperty("profile")) + if (message.profile != null && message.hasOwnProperty('profile')) object.profile = $root.Vault.Profile.toObject(message.profile, options); - if (message.profilePic != null && message.hasOwnProperty("profilePic")) + if (message.profilePic != null && message.hasOwnProperty('profilePic')) object.profilePic = $root.Vault.ProfilePic.toObject(message.profilePic, options); if (message.pendingTeamMembers && message.pendingTeamMembers.length) { object.pendingTeamMembers = []; for (let j = 0; j < message.pendingTeamMembers.length; ++j) - object.pendingTeamMembers[j] = $root.Vault.PendingTeamMember.toObject(message.pendingTeamMembers[j], options); + object.pendingTeamMembers[j] = $root.Vault.PendingTeamMember.toObject( + message.pendingTeamMembers[j], + options + ); } if (message.breachWatchRecords && message.breachWatchRecords.length) { object.breachWatchRecords = []; for (let j = 0; j < message.breachWatchRecords.length; ++j) - object.breachWatchRecords[j] = $root.Vault.BreachWatchRecord.toObject(message.breachWatchRecords[j], options); + object.breachWatchRecords[j] = $root.Vault.BreachWatchRecord.toObject( + message.breachWatchRecords[j], + options + ); } if (message.userAuths && message.userAuths.length) { object.userAuths = []; @@ -202275,69 +210401,124 @@ export const Vault = $root.Vault = (() => { if (message.breachWatchSecurityData && message.breachWatchSecurityData.length) { object.breachWatchSecurityData = []; for (let j = 0; j < message.breachWatchSecurityData.length; ++j) - object.breachWatchSecurityData[j] = $root.Vault.BreachWatchSecurityData.toObject(message.breachWatchSecurityData[j], options); + object.breachWatchSecurityData[j] = $root.Vault.BreachWatchSecurityData.toObject( + message.breachWatchSecurityData[j], + options + ); } - if (message.reusedPasswords != null && message.hasOwnProperty("reusedPasswords")) + if (message.reusedPasswords != null && message.hasOwnProperty('reusedPasswords')) object.reusedPasswords = $root.Vault.ReusedPasswords.toObject(message.reusedPasswords, options); if (message.removedUserFolders && message.removedUserFolders.length) { object.removedUserFolders = []; for (let j = 0; j < message.removedUserFolders.length; ++j) - object.removedUserFolders[j] = options.bytes === String ? $util.base64.encode(message.removedUserFolders[j], 0, message.removedUserFolders[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.removedUserFolders[j]) : message.removedUserFolders[j]; + object.removedUserFolders[j] = + options.bytes === String + ? $util.base64.encode( + message.removedUserFolders[j], + 0, + message.removedUserFolders[j].length + ) + : options.bytes === Array + ? Array.prototype.slice.call(message.removedUserFolders[j]) + : message.removedUserFolders[j]; } if (message.removedSharedFolders && message.removedSharedFolders.length) { object.removedSharedFolders = []; for (let j = 0; j < message.removedSharedFolders.length; ++j) - object.removedSharedFolders[j] = options.bytes === String ? $util.base64.encode(message.removedSharedFolders[j], 0, message.removedSharedFolders[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.removedSharedFolders[j]) : message.removedSharedFolders[j]; + object.removedSharedFolders[j] = + options.bytes === String + ? $util.base64.encode( + message.removedSharedFolders[j], + 0, + message.removedSharedFolders[j].length + ) + : options.bytes === Array + ? Array.prototype.slice.call(message.removedSharedFolders[j]) + : message.removedSharedFolders[j]; } if (message.removedUserFolderSharedFolders && message.removedUserFolderSharedFolders.length) { object.removedUserFolderSharedFolders = []; for (let j = 0; j < message.removedUserFolderSharedFolders.length; ++j) - object.removedUserFolderSharedFolders[j] = $root.Vault.UserFolderSharedFolder.toObject(message.removedUserFolderSharedFolders[j], options); + object.removedUserFolderSharedFolders[j] = $root.Vault.UserFolderSharedFolder.toObject( + message.removedUserFolderSharedFolders[j], + options + ); } if (message.removedSharedFolderFolders && message.removedSharedFolderFolders.length) { object.removedSharedFolderFolders = []; for (let j = 0; j < message.removedSharedFolderFolders.length; ++j) - object.removedSharedFolderFolders[j] = $root.Vault.SharedFolderFolder.toObject(message.removedSharedFolderFolders[j], options); + object.removedSharedFolderFolders[j] = $root.Vault.SharedFolderFolder.toObject( + message.removedSharedFolderFolders[j], + options + ); } if (message.removedRecords && message.removedRecords.length) { object.removedRecords = []; for (let j = 0; j < message.removedRecords.length; ++j) - object.removedRecords[j] = options.bytes === String ? $util.base64.encode(message.removedRecords[j], 0, message.removedRecords[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.removedRecords[j]) : message.removedRecords[j]; + object.removedRecords[j] = + options.bytes === String + ? $util.base64.encode(message.removedRecords[j], 0, message.removedRecords[j].length) + : options.bytes === Array + ? Array.prototype.slice.call(message.removedRecords[j]) + : message.removedRecords[j]; } if (message.removedRecordLinks && message.removedRecordLinks.length) { object.removedRecordLinks = []; for (let j = 0; j < message.removedRecordLinks.length; ++j) - object.removedRecordLinks[j] = $root.Vault.RecordLink.toObject(message.removedRecordLinks[j], options); + object.removedRecordLinks[j] = $root.Vault.RecordLink.toObject( + message.removedRecordLinks[j], + options + ); } if (message.removedUserFolderRecords && message.removedUserFolderRecords.length) { object.removedUserFolderRecords = []; for (let j = 0; j < message.removedUserFolderRecords.length; ++j) - object.removedUserFolderRecords[j] = $root.Vault.UserFolderRecord.toObject(message.removedUserFolderRecords[j], options); + object.removedUserFolderRecords[j] = $root.Vault.UserFolderRecord.toObject( + message.removedUserFolderRecords[j], + options + ); } if (message.removedSharedFolderRecords && message.removedSharedFolderRecords.length) { object.removedSharedFolderRecords = []; for (let j = 0; j < message.removedSharedFolderRecords.length; ++j) - object.removedSharedFolderRecords[j] = $root.Vault.SharedFolderRecord.toObject(message.removedSharedFolderRecords[j], options); + object.removedSharedFolderRecords[j] = $root.Vault.SharedFolderRecord.toObject( + message.removedSharedFolderRecords[j], + options + ); } if (message.removedSharedFolderFolderRecords && message.removedSharedFolderFolderRecords.length) { object.removedSharedFolderFolderRecords = []; for (let j = 0; j < message.removedSharedFolderFolderRecords.length; ++j) - object.removedSharedFolderFolderRecords[j] = $root.Vault.SharedFolderFolderRecord.toObject(message.removedSharedFolderFolderRecords[j], options); + object.removedSharedFolderFolderRecords[j] = $root.Vault.SharedFolderFolderRecord.toObject( + message.removedSharedFolderFolderRecords[j], + options + ); } if (message.removedSharedFolderUsers && message.removedSharedFolderUsers.length) { object.removedSharedFolderUsers = []; for (let j = 0; j < message.removedSharedFolderUsers.length; ++j) - object.removedSharedFolderUsers[j] = $root.Vault.SharedFolderUser.toObject(message.removedSharedFolderUsers[j], options); + object.removedSharedFolderUsers[j] = $root.Vault.SharedFolderUser.toObject( + message.removedSharedFolderUsers[j], + options + ); } if (message.removedSharedFolderTeams && message.removedSharedFolderTeams.length) { object.removedSharedFolderTeams = []; for (let j = 0; j < message.removedSharedFolderTeams.length; ++j) - object.removedSharedFolderTeams[j] = $root.Vault.SharedFolderTeam.toObject(message.removedSharedFolderTeams[j], options); + object.removedSharedFolderTeams[j] = $root.Vault.SharedFolderTeam.toObject( + message.removedSharedFolderTeams[j], + options + ); } if (message.removedTeams && message.removedTeams.length) { object.removedTeams = []; for (let j = 0; j < message.removedTeams.length; ++j) - object.removedTeams[j] = options.bytes === String ? $util.base64.encode(message.removedTeams[j], 0, message.removedTeams[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.removedTeams[j]) : message.removedTeams[j]; + object.removedTeams[j] = + options.bytes === String + ? $util.base64.encode(message.removedTeams[j], 0, message.removedTeams[j].length) + : options.bytes === Array + ? Array.prototype.slice.call(message.removedTeams[j]) + : message.removedTeams[j]; } if (message.ksmAppShares && message.ksmAppShares.length) { object.ksmAppShares = []; @@ -202352,14 +210533,20 @@ export const Vault = $root.Vault = (() => { if (message.shareInvitations && message.shareInvitations.length) { object.shareInvitations = []; for (let j = 0; j < message.shareInvitations.length; ++j) - object.shareInvitations[j] = $root.Vault.ShareInvitation.toObject(message.shareInvitations[j], options); + object.shareInvitations[j] = $root.Vault.ShareInvitation.toObject( + message.shareInvitations[j], + options + ); } - if (message.diagnostics != null && message.hasOwnProperty("diagnostics")) + if (message.diagnostics != null && message.hasOwnProperty('diagnostics')) object.diagnostics = $root.Vault.SyncDiagnostics.toObject(message.diagnostics, options); if (message.recordRotations && message.recordRotations.length) { object.recordRotations = []; for (let j = 0; j < message.recordRotations.length; ++j) - object.recordRotations[j] = $root.Vault.RecordRotation.toObject(message.recordRotations[j], options); + object.recordRotations[j] = $root.Vault.RecordRotation.toObject( + message.recordRotations[j], + options + ); } if (message.users && message.users.length) { object.users = []; @@ -202369,17 +210556,28 @@ export const Vault = $root.Vault = (() => { if (message.removedUsers && message.removedUsers.length) { object.removedUsers = []; for (let j = 0; j < message.removedUsers.length; ++j) - object.removedUsers[j] = options.bytes === String ? $util.base64.encode(message.removedUsers[j], 0, message.removedUsers[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.removedUsers[j]) : message.removedUsers[j]; + object.removedUsers[j] = + options.bytes === String + ? $util.base64.encode(message.removedUsers[j], 0, message.removedUsers[j].length) + : options.bytes === Array + ? Array.prototype.slice.call(message.removedUsers[j]) + : message.removedUsers[j]; } if (message.securityScoreData && message.securityScoreData.length) { object.securityScoreData = []; for (let j = 0; j < message.securityScoreData.length; ++j) - object.securityScoreData[j] = $root.Vault.SecurityScoreData.toObject(message.securityScoreData[j], options); + object.securityScoreData[j] = $root.Vault.SecurityScoreData.toObject( + message.securityScoreData[j], + options + ); } if (message.notificationSync && message.notificationSync.length) { object.notificationSync = []; for (let j = 0; j < message.notificationSync.length; ++j) - object.notificationSync[j] = $root.NotificationCenter.NotificationWrapper.toObject(message.notificationSync[j], options); + object.notificationSync[j] = $root.NotificationCenter.NotificationWrapper.toObject( + message.notificationSync[j], + options + ); } return object; }; @@ -202405,16 +210603,15 @@ export const Vault = $root.Vault = (() => { */ SyncDownResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Vault.SyncDownResponse"; + return typeUrlPrefix + '/Vault.SyncDownResponse'; }; return SyncDownResponse; })(); - Vault.UserFolder = (function() { - + Vault.UserFolder = (function () { /** * Properties of a UserFolder. * @memberof Vault @@ -202438,8 +210635,7 @@ export const Vault = $root.Vault = (() => { function UserFolder(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -202480,7 +210676,7 @@ export const Vault = $root.Vault = (() => { * @memberof Vault.UserFolder * @instance */ - UserFolder.prototype.revision = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + UserFolder.prototype.revision = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * UserFolder data. @@ -202512,20 +210708,19 @@ export const Vault = $root.Vault = (() => { * @returns {$protobuf.Writer} Writer */ UserFolder.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.folderUid != null && Object.hasOwnProperty.call(message, "folderUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.folderUid); - if (message.parentUid != null && Object.hasOwnProperty.call(message, "parentUid")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.parentUid); - if (message.userFolderKey != null && Object.hasOwnProperty.call(message, "userFolderKey")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.userFolderKey); - if (message.keyType != null && Object.hasOwnProperty.call(message, "keyType")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.keyType); - if (message.revision != null && Object.hasOwnProperty.call(message, "revision")) - writer.uint32(/* id 5, wireType 0 =*/40).int64(message.revision); - if (message.data != null && Object.hasOwnProperty.call(message, "data")) - writer.uint32(/* id 6, wireType 2 =*/50).bytes(message.data); + if (!writer) writer = $Writer.create(); + if (message.folderUid != null && Object.hasOwnProperty.call(message, 'folderUid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.folderUid); + if (message.parentUid != null && Object.hasOwnProperty.call(message, 'parentUid')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.parentUid); + if (message.userFolderKey != null && Object.hasOwnProperty.call(message, 'userFolderKey')) + writer.uint32(/* id 3, wireType 2 =*/ 26).bytes(message.userFolderKey); + if (message.keyType != null && Object.hasOwnProperty.call(message, 'keyType')) + writer.uint32(/* id 4, wireType 0 =*/ 32).int32(message.keyType); + if (message.revision != null && Object.hasOwnProperty.call(message, 'revision')) + writer.uint32(/* id 5, wireType 0 =*/ 40).int64(message.revision); + if (message.data != null && Object.hasOwnProperty.call(message, 'data')) + writer.uint32(/* id 6, wireType 2 =*/ 50).bytes(message.data); return writer; }; @@ -202554,39 +210749,39 @@ export const Vault = $root.Vault = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ UserFolder.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.UserFolder(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Vault.UserFolder(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.folderUid = reader.bytes(); break; } - case 2: { + case 2: { message.parentUid = reader.bytes(); break; } - case 3: { + case 3: { message.userFolderKey = reader.bytes(); break; } - case 4: { + case 4: { message.keyType = reader.int32(); break; } - case 5: { + case 5: { message.revision = reader.int64(); break; } - case 6: { + case 6: { message.data = reader.bytes(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -202603,8 +210798,7 @@ export const Vault = $root.Vault = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ UserFolder.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -202617,36 +210811,57 @@ export const Vault = $root.Vault = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ UserFolder.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.folderUid != null && message.hasOwnProperty("folderUid")) - if (!(message.folderUid && typeof message.folderUid.length === "number" || $util.isString(message.folderUid))) - return "folderUid: buffer expected"; - if (message.parentUid != null && message.hasOwnProperty("parentUid")) - if (!(message.parentUid && typeof message.parentUid.length === "number" || $util.isString(message.parentUid))) - return "parentUid: buffer expected"; - if (message.userFolderKey != null && message.hasOwnProperty("userFolderKey")) - if (!(message.userFolderKey && typeof message.userFolderKey.length === "number" || $util.isString(message.userFolderKey))) - return "userFolderKey: buffer expected"; - if (message.keyType != null && message.hasOwnProperty("keyType")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.folderUid != null && message.hasOwnProperty('folderUid')) + if ( + !( + (message.folderUid && typeof message.folderUid.length === 'number') || + $util.isString(message.folderUid) + ) + ) + return 'folderUid: buffer expected'; + if (message.parentUid != null && message.hasOwnProperty('parentUid')) + if ( + !( + (message.parentUid && typeof message.parentUid.length === 'number') || + $util.isString(message.parentUid) + ) + ) + return 'parentUid: buffer expected'; + if (message.userFolderKey != null && message.hasOwnProperty('userFolderKey')) + if ( + !( + (message.userFolderKey && typeof message.userFolderKey.length === 'number') || + $util.isString(message.userFolderKey) + ) + ) + return 'userFolderKey: buffer expected'; + if (message.keyType != null && message.hasOwnProperty('keyType')) switch (message.keyType) { - default: - return "keyType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - break; + default: + return 'keyType: enum value expected'; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + break; } - if (message.revision != null && message.hasOwnProperty("revision")) - if (!$util.isInteger(message.revision) && !(message.revision && $util.isInteger(message.revision.low) && $util.isInteger(message.revision.high))) - return "revision: integer|Long expected"; - if (message.data != null && message.hasOwnProperty("data")) - if (!(message.data && typeof message.data.length === "number" || $util.isString(message.data))) - return "data: buffer expected"; + if (message.revision != null && message.hasOwnProperty('revision')) + if ( + !$util.isInteger(message.revision) && + !( + message.revision && + $util.isInteger(message.revision.low) && + $util.isInteger(message.revision.high) + ) + ) + return 'revision: integer|Long expected'; + if (message.data != null && message.hasOwnProperty('data')) + if (!((message.data && typeof message.data.length === 'number') || $util.isString(message.data))) + return 'data: buffer expected'; return null; }; @@ -202659,74 +210874,85 @@ export const Vault = $root.Vault = (() => { * @returns {Vault.UserFolder} UserFolder */ UserFolder.fromObject = function fromObject(object) { - if (object instanceof $root.Vault.UserFolder) - return object; + if (object instanceof $root.Vault.UserFolder) return object; let message = new $root.Vault.UserFolder(); 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 (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.parentUid != null) - if (typeof object.parentUid === "string") - $util.base64.decode(object.parentUid, message.parentUid = $util.newBuffer($util.base64.length(object.parentUid)), 0); - else if (object.parentUid.length >= 0) - message.parentUid = object.parentUid; + if (typeof object.parentUid === 'string') + $util.base64.decode( + object.parentUid, + (message.parentUid = $util.newBuffer($util.base64.length(object.parentUid))), + 0 + ); + else if (object.parentUid.length >= 0) message.parentUid = object.parentUid; if (object.userFolderKey != null) - if (typeof object.userFolderKey === "string") - $util.base64.decode(object.userFolderKey, message.userFolderKey = $util.newBuffer($util.base64.length(object.userFolderKey)), 0); - else if (object.userFolderKey.length >= 0) - message.userFolderKey = object.userFolderKey; + if (typeof object.userFolderKey === 'string') + $util.base64.decode( + object.userFolderKey, + (message.userFolderKey = $util.newBuffer($util.base64.length(object.userFolderKey))), + 0 + ); + else if (object.userFolderKey.length >= 0) message.userFolderKey = object.userFolderKey; switch (object.keyType) { - default: - if (typeof object.keyType === "number") { - message.keyType = object.keyType; - break; - } - break; - case "NO_KEY": - case 0: - message.keyType = 0; - break; - case "ENCRYPTED_BY_DATA_KEY": - case 1: - message.keyType = 1; - break; - case "ENCRYPTED_BY_PUBLIC_KEY": - case 2: - message.keyType = 2; - break; - case "ENCRYPTED_BY_DATA_KEY_GCM": - case 3: - message.keyType = 3; - break; - case "ENCRYPTED_BY_PUBLIC_KEY_ECC": - case 4: - message.keyType = 4; - break; - case "ENCRYPTED_BY_ROOT_KEY_CBC": - case 5: - message.keyType = 5; - break; - case "ENCRYPTED_BY_ROOT_KEY_GCM": - case 6: - message.keyType = 6; - break; + default: + if (typeof object.keyType === 'number') { + message.keyType = object.keyType; + break; + } + break; + case 'NO_KEY': + case 0: + message.keyType = 0; + break; + case 'ENCRYPTED_BY_DATA_KEY': + case 1: + message.keyType = 1; + break; + case 'ENCRYPTED_BY_PUBLIC_KEY': + case 2: + message.keyType = 2; + break; + case 'ENCRYPTED_BY_DATA_KEY_GCM': + case 3: + message.keyType = 3; + break; + case 'ENCRYPTED_BY_PUBLIC_KEY_ECC': + case 4: + message.keyType = 4; + break; + case 'ENCRYPTED_BY_ROOT_KEY_CBC': + case 5: + message.keyType = 5; + break; + case 'ENCRYPTED_BY_ROOT_KEY_GCM': + case 6: + message.keyType = 6; + break; } if (object.revision != null) - if ($util.Long) - (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; - else if (typeof object.revision === "string") - message.revision = parseInt(object.revision, 10); - else if (typeof object.revision === "number") - message.revision = object.revision; - else if (typeof object.revision === "object") - message.revision = new $util.LongBits(object.revision.low >>> 0, object.revision.high >>> 0).toNumber(); + if ($util.Long) (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; + else if (typeof object.revision === 'string') message.revision = parseInt(object.revision, 10); + else if (typeof object.revision === 'number') message.revision = object.revision; + else if (typeof object.revision === 'object') + message.revision = new $util.LongBits( + object.revision.low >>> 0, + object.revision.high >>> 0 + ).toNumber(); if (object.data != null) - if (typeof object.data === "string") - $util.base64.decode(object.data, message.data = $util.newBuffer($util.base64.length(object.data)), 0); - else if (object.data.length >= 0) - message.data = object.data; + if (typeof object.data === 'string') + $util.base64.decode( + object.data, + (message.data = $util.newBuffer($util.base64.length(object.data))), + 0 + ); + else if (object.data.length >= 0) message.data = object.data; return message; }; @@ -202740,60 +210966,81 @@ export const Vault = $root.Vault = (() => { * @returns {Object.} Plain object */ UserFolder.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.folderUid = ""; + if (options.bytes === String) object.folderUid = ''; else { object.folderUid = []; - if (options.bytes !== Array) - object.folderUid = $util.newBuffer(object.folderUid); + if (options.bytes !== Array) object.folderUid = $util.newBuffer(object.folderUid); } - if (options.bytes === String) - object.parentUid = ""; + if (options.bytes === String) object.parentUid = ''; else { object.parentUid = []; - if (options.bytes !== Array) - object.parentUid = $util.newBuffer(object.parentUid); + if (options.bytes !== Array) object.parentUid = $util.newBuffer(object.parentUid); } - if (options.bytes === String) - object.userFolderKey = ""; + if (options.bytes === String) object.userFolderKey = ''; else { object.userFolderKey = []; - if (options.bytes !== Array) - object.userFolderKey = $util.newBuffer(object.userFolderKey); + if (options.bytes !== Array) object.userFolderKey = $util.newBuffer(object.userFolderKey); } - object.keyType = options.enums === String ? "NO_KEY" : 0; + object.keyType = options.enums === String ? 'NO_KEY' : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.revision = options.longs === String ? "0" : 0; - if (options.bytes === String) - object.data = ""; + object.revision = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.revision = options.longs === String ? '0' : 0; + if (options.bytes === String) object.data = ''; else { object.data = []; - if (options.bytes !== Array) - object.data = $util.newBuffer(object.data); - } - } - if (message.folderUid != null && message.hasOwnProperty("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.parentUid != null && message.hasOwnProperty("parentUid")) - object.parentUid = options.bytes === String ? $util.base64.encode(message.parentUid, 0, message.parentUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.parentUid) : message.parentUid; - if (message.userFolderKey != null && message.hasOwnProperty("userFolderKey")) - object.userFolderKey = options.bytes === String ? $util.base64.encode(message.userFolderKey, 0, message.userFolderKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.userFolderKey) : message.userFolderKey; - if (message.keyType != null && message.hasOwnProperty("keyType")) - object.keyType = options.enums === String ? $root.Records.RecordKeyType[message.keyType] === undefined ? message.keyType : $root.Records.RecordKeyType[message.keyType] : message.keyType; - if (message.revision != null && message.hasOwnProperty("revision")) - if (typeof message.revision === "number") + if (options.bytes !== Array) object.data = $util.newBuffer(object.data); + } + } + if (message.folderUid != null && message.hasOwnProperty('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.parentUid != null && message.hasOwnProperty('parentUid')) + object.parentUid = + options.bytes === String + ? $util.base64.encode(message.parentUid, 0, message.parentUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.parentUid) + : message.parentUid; + if (message.userFolderKey != null && message.hasOwnProperty('userFolderKey')) + object.userFolderKey = + options.bytes === String + ? $util.base64.encode(message.userFolderKey, 0, message.userFolderKey.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.userFolderKey) + : message.userFolderKey; + if (message.keyType != null && message.hasOwnProperty('keyType')) + object.keyType = + options.enums === String + ? $root.Records.RecordKeyType[message.keyType] === undefined + ? message.keyType + : $root.Records.RecordKeyType[message.keyType] + : message.keyType; + if (message.revision != null && message.hasOwnProperty('revision')) + if (typeof message.revision === 'number') object.revision = options.longs === String ? String(message.revision) : message.revision; else - object.revision = options.longs === String ? $util.Long.prototype.toString.call(message.revision) : options.longs === Number ? new $util.LongBits(message.revision.low >>> 0, message.revision.high >>> 0).toNumber() : message.revision; - if (message.data != null && message.hasOwnProperty("data")) - object.data = options.bytes === String ? $util.base64.encode(message.data, 0, message.data.length) : options.bytes === Array ? Array.prototype.slice.call(message.data) : message.data; + object.revision = + options.longs === String + ? $util.Long.prototype.toString.call(message.revision) + : options.longs === Number + ? new $util.LongBits(message.revision.low >>> 0, message.revision.high >>> 0).toNumber() + : message.revision; + if (message.data != null && message.hasOwnProperty('data')) + object.data = + options.bytes === String + ? $util.base64.encode(message.data, 0, message.data.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.data) + : message.data; return object; }; @@ -202818,16 +211065,15 @@ export const Vault = $root.Vault = (() => { */ UserFolder.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Vault.UserFolder"; + return typeUrlPrefix + '/Vault.UserFolder'; }; return UserFolder; })(); - Vault.SharedFolder = (function() { - + Vault.SharedFolder = (function () { /** * Properties of a SharedFolder. * @memberof Vault @@ -202858,8 +211104,7 @@ export const Vault = $root.Vault = (() => { function SharedFolder(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -202876,7 +211121,7 @@ export const Vault = $root.Vault = (() => { * @memberof Vault.SharedFolder * @instance */ - SharedFolder.prototype.revision = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + SharedFolder.prototype.revision = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * SharedFolder sharedFolderKey. @@ -202948,7 +211193,7 @@ export const Vault = $root.Vault = (() => { * @memberof Vault.SharedFolder * @instance */ - SharedFolder.prototype.owner = ""; + SharedFolder.prototype.owner = ''; /** * SharedFolder ownerAccountUid. @@ -202988,34 +211233,33 @@ export const Vault = $root.Vault = (() => { * @returns {$protobuf.Writer} Writer */ SharedFolder.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, "sharedFolderUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.sharedFolderUid); - if (message.revision != null && Object.hasOwnProperty.call(message, "revision")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.revision); - if (message.sharedFolderKey != null && Object.hasOwnProperty.call(message, "sharedFolderKey")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.sharedFolderKey); - if (message.keyType != null && Object.hasOwnProperty.call(message, "keyType")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.keyType); - if (message.data != null && Object.hasOwnProperty.call(message, "data")) - writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.data); - if (message.defaultManageRecords != null && Object.hasOwnProperty.call(message, "defaultManageRecords")) - writer.uint32(/* id 6, wireType 0 =*/48).bool(message.defaultManageRecords); - if (message.defaultManageUsers != null && Object.hasOwnProperty.call(message, "defaultManageUsers")) - writer.uint32(/* id 7, wireType 0 =*/56).bool(message.defaultManageUsers); - if (message.defaultCanEdit != null && Object.hasOwnProperty.call(message, "defaultCanEdit")) - writer.uint32(/* id 8, wireType 0 =*/64).bool(message.defaultCanEdit); - if (message.defaultCanReshare != null && Object.hasOwnProperty.call(message, "defaultCanReshare")) - writer.uint32(/* id 9, wireType 0 =*/72).bool(message.defaultCanReshare); - if (message.cacheStatus != null && Object.hasOwnProperty.call(message, "cacheStatus")) - writer.uint32(/* id 10, wireType 0 =*/80).int32(message.cacheStatus); - if (message.owner != null && Object.hasOwnProperty.call(message, "owner")) - writer.uint32(/* id 11, wireType 2 =*/90).string(message.owner); - if (message.ownerAccountUid != null && Object.hasOwnProperty.call(message, "ownerAccountUid")) - writer.uint32(/* id 12, wireType 2 =*/98).bytes(message.ownerAccountUid); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 13, wireType 2 =*/106).bytes(message.name); + if (!writer) writer = $Writer.create(); + if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, 'sharedFolderUid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.sharedFolderUid); + if (message.revision != null && Object.hasOwnProperty.call(message, 'revision')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int64(message.revision); + if (message.sharedFolderKey != null && Object.hasOwnProperty.call(message, 'sharedFolderKey')) + writer.uint32(/* id 3, wireType 2 =*/ 26).bytes(message.sharedFolderKey); + if (message.keyType != null && Object.hasOwnProperty.call(message, 'keyType')) + writer.uint32(/* id 4, wireType 0 =*/ 32).int32(message.keyType); + if (message.data != null && Object.hasOwnProperty.call(message, 'data')) + writer.uint32(/* id 5, wireType 2 =*/ 42).bytes(message.data); + if (message.defaultManageRecords != null && Object.hasOwnProperty.call(message, 'defaultManageRecords')) + writer.uint32(/* id 6, wireType 0 =*/ 48).bool(message.defaultManageRecords); + if (message.defaultManageUsers != null && Object.hasOwnProperty.call(message, 'defaultManageUsers')) + writer.uint32(/* id 7, wireType 0 =*/ 56).bool(message.defaultManageUsers); + if (message.defaultCanEdit != null && Object.hasOwnProperty.call(message, 'defaultCanEdit')) + writer.uint32(/* id 8, wireType 0 =*/ 64).bool(message.defaultCanEdit); + if (message.defaultCanReshare != null && Object.hasOwnProperty.call(message, 'defaultCanReshare')) + writer.uint32(/* id 9, wireType 0 =*/ 72).bool(message.defaultCanReshare); + if (message.cacheStatus != null && Object.hasOwnProperty.call(message, 'cacheStatus')) + writer.uint32(/* id 10, wireType 0 =*/ 80).int32(message.cacheStatus); + if (message.owner != null && Object.hasOwnProperty.call(message, 'owner')) + writer.uint32(/* id 11, wireType 2 =*/ 90).string(message.owner); + if (message.ownerAccountUid != null && Object.hasOwnProperty.call(message, 'ownerAccountUid')) + writer.uint32(/* id 12, wireType 2 =*/ 98).bytes(message.ownerAccountUid); + if (message.name != null && Object.hasOwnProperty.call(message, 'name')) + writer.uint32(/* id 13, wireType 2 =*/ 106).bytes(message.name); return writer; }; @@ -203044,67 +211288,67 @@ export const Vault = $root.Vault = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SharedFolder.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.SharedFolder(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Vault.SharedFolder(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.sharedFolderUid = reader.bytes(); break; } - case 2: { + case 2: { message.revision = reader.int64(); break; } - case 3: { + case 3: { message.sharedFolderKey = reader.bytes(); break; } - case 4: { + case 4: { message.keyType = reader.int32(); break; } - case 5: { + case 5: { message.data = reader.bytes(); break; } - case 6: { + case 6: { message.defaultManageRecords = reader.bool(); break; } - case 7: { + case 7: { message.defaultManageUsers = reader.bool(); break; } - case 8: { + case 8: { message.defaultCanEdit = reader.bool(); break; } - case 9: { + case 9: { message.defaultCanReshare = reader.bool(); break; } - case 10: { + case 10: { message.cacheStatus = reader.int32(); break; } - case 11: { + case 11: { message.owner = reader.string(); break; } - case 12: { + case 12: { message.ownerAccountUid = reader.bytes(); break; } - case 13: { + case 13: { message.name = reader.bytes(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -203121,8 +211365,7 @@ export const Vault = $root.Vault = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SharedFolder.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -203135,62 +211378,78 @@ export const Vault = $root.Vault = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ SharedFolder.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) - if (!(message.sharedFolderUid && typeof message.sharedFolderUid.length === "number" || $util.isString(message.sharedFolderUid))) - return "sharedFolderUid: buffer expected"; - if (message.revision != null && message.hasOwnProperty("revision")) - if (!$util.isInteger(message.revision) && !(message.revision && $util.isInteger(message.revision.low) && $util.isInteger(message.revision.high))) - return "revision: integer|Long expected"; - if (message.sharedFolderKey != null && message.hasOwnProperty("sharedFolderKey")) - if (!(message.sharedFolderKey && typeof message.sharedFolderKey.length === "number" || $util.isString(message.sharedFolderKey))) - return "sharedFolderKey: buffer expected"; - if (message.keyType != null && message.hasOwnProperty("keyType")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.sharedFolderUid != null && message.hasOwnProperty('sharedFolderUid')) + if ( + !( + (message.sharedFolderUid && typeof message.sharedFolderUid.length === 'number') || + $util.isString(message.sharedFolderUid) + ) + ) + return 'sharedFolderUid: buffer expected'; + if (message.revision != null && message.hasOwnProperty('revision')) + if ( + !$util.isInteger(message.revision) && + !( + message.revision && + $util.isInteger(message.revision.low) && + $util.isInteger(message.revision.high) + ) + ) + return 'revision: integer|Long expected'; + if (message.sharedFolderKey != null && message.hasOwnProperty('sharedFolderKey')) + if ( + !( + (message.sharedFolderKey && typeof message.sharedFolderKey.length === 'number') || + $util.isString(message.sharedFolderKey) + ) + ) + return 'sharedFolderKey: buffer expected'; + if (message.keyType != null && message.hasOwnProperty('keyType')) switch (message.keyType) { - default: - return "keyType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - break; + default: + return 'keyType: enum value expected'; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + break; } - if (message.data != null && message.hasOwnProperty("data")) - if (!(message.data && typeof message.data.length === "number" || $util.isString(message.data))) - return "data: buffer expected"; - if (message.defaultManageRecords != null && message.hasOwnProperty("defaultManageRecords")) - if (typeof message.defaultManageRecords !== "boolean") - return "defaultManageRecords: boolean expected"; - if (message.defaultManageUsers != null && message.hasOwnProperty("defaultManageUsers")) - if (typeof message.defaultManageUsers !== "boolean") - return "defaultManageUsers: boolean expected"; - if (message.defaultCanEdit != null && message.hasOwnProperty("defaultCanEdit")) - if (typeof message.defaultCanEdit !== "boolean") - return "defaultCanEdit: boolean expected"; - if (message.defaultCanReshare != null && message.hasOwnProperty("defaultCanReshare")) - if (typeof message.defaultCanReshare !== "boolean") - return "defaultCanReshare: boolean expected"; - if (message.cacheStatus != null && message.hasOwnProperty("cacheStatus")) + if (message.data != null && message.hasOwnProperty('data')) + if (!((message.data && typeof message.data.length === 'number') || $util.isString(message.data))) + return 'data: buffer expected'; + if (message.defaultManageRecords != null && message.hasOwnProperty('defaultManageRecords')) + if (typeof message.defaultManageRecords !== 'boolean') return 'defaultManageRecords: boolean expected'; + if (message.defaultManageUsers != null && message.hasOwnProperty('defaultManageUsers')) + if (typeof message.defaultManageUsers !== 'boolean') return 'defaultManageUsers: boolean expected'; + if (message.defaultCanEdit != null && message.hasOwnProperty('defaultCanEdit')) + if (typeof message.defaultCanEdit !== 'boolean') return 'defaultCanEdit: boolean expected'; + if (message.defaultCanReshare != null && message.hasOwnProperty('defaultCanReshare')) + if (typeof message.defaultCanReshare !== 'boolean') return 'defaultCanReshare: boolean expected'; + if (message.cacheStatus != null && message.hasOwnProperty('cacheStatus')) switch (message.cacheStatus) { - default: - return "cacheStatus: enum value expected"; - case 0: - case 1: - break; + default: + return 'cacheStatus: enum value expected'; + case 0: + case 1: + break; } - if (message.owner != null && message.hasOwnProperty("owner")) - if (!$util.isString(message.owner)) - return "owner: string expected"; - if (message.ownerAccountUid != null && message.hasOwnProperty("ownerAccountUid")) - if (!(message.ownerAccountUid && typeof message.ownerAccountUid.length === "number" || $util.isString(message.ownerAccountUid))) - return "ownerAccountUid: buffer expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!(message.name && typeof message.name.length === "number" || $util.isString(message.name))) - return "name: buffer expected"; + if (message.owner != null && message.hasOwnProperty('owner')) + if (!$util.isString(message.owner)) return 'owner: string expected'; + if (message.ownerAccountUid != null && message.hasOwnProperty('ownerAccountUid')) + if ( + !( + (message.ownerAccountUid && typeof message.ownerAccountUid.length === 'number') || + $util.isString(message.ownerAccountUid) + ) + ) + return 'ownerAccountUid: buffer expected'; + if (message.name != null && message.hasOwnProperty('name')) + if (!((message.name && typeof message.name.length === 'number') || $util.isString(message.name))) + return 'name: buffer expected'; return null; }; @@ -203203,105 +211462,115 @@ export const Vault = $root.Vault = (() => { * @returns {Vault.SharedFolder} SharedFolder */ SharedFolder.fromObject = function fromObject(object) { - if (object instanceof $root.Vault.SharedFolder) - return object; + if (object instanceof $root.Vault.SharedFolder) return object; let message = new $root.Vault.SharedFolder(); if (object.sharedFolderUid != null) - if (typeof object.sharedFolderUid === "string") - $util.base64.decode(object.sharedFolderUid, message.sharedFolderUid = $util.newBuffer($util.base64.length(object.sharedFolderUid)), 0); - else if (object.sharedFolderUid.length >= 0) - message.sharedFolderUid = object.sharedFolderUid; + if (typeof object.sharedFolderUid === 'string') + $util.base64.decode( + object.sharedFolderUid, + (message.sharedFolderUid = $util.newBuffer($util.base64.length(object.sharedFolderUid))), + 0 + ); + else if (object.sharedFolderUid.length >= 0) message.sharedFolderUid = object.sharedFolderUid; if (object.revision != null) - if ($util.Long) - (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; - else if (typeof object.revision === "string") - message.revision = parseInt(object.revision, 10); - else if (typeof object.revision === "number") - message.revision = object.revision; - else if (typeof object.revision === "object") - message.revision = new $util.LongBits(object.revision.low >>> 0, object.revision.high >>> 0).toNumber(); + if ($util.Long) (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; + else if (typeof object.revision === 'string') message.revision = parseInt(object.revision, 10); + else if (typeof object.revision === 'number') message.revision = object.revision; + else if (typeof object.revision === 'object') + message.revision = new $util.LongBits( + object.revision.low >>> 0, + object.revision.high >>> 0 + ).toNumber(); if (object.sharedFolderKey != null) - if (typeof object.sharedFolderKey === "string") - $util.base64.decode(object.sharedFolderKey, message.sharedFolderKey = $util.newBuffer($util.base64.length(object.sharedFolderKey)), 0); - else if (object.sharedFolderKey.length >= 0) - message.sharedFolderKey = object.sharedFolderKey; + if (typeof object.sharedFolderKey === 'string') + $util.base64.decode( + object.sharedFolderKey, + (message.sharedFolderKey = $util.newBuffer($util.base64.length(object.sharedFolderKey))), + 0 + ); + else if (object.sharedFolderKey.length >= 0) message.sharedFolderKey = object.sharedFolderKey; switch (object.keyType) { - default: - if (typeof object.keyType === "number") { - message.keyType = object.keyType; - break; - } - break; - case "NO_KEY": - case 0: - message.keyType = 0; - break; - case "ENCRYPTED_BY_DATA_KEY": - case 1: - message.keyType = 1; - break; - case "ENCRYPTED_BY_PUBLIC_KEY": - case 2: - message.keyType = 2; - break; - case "ENCRYPTED_BY_DATA_KEY_GCM": - case 3: - message.keyType = 3; - break; - case "ENCRYPTED_BY_PUBLIC_KEY_ECC": - case 4: - message.keyType = 4; - break; - case "ENCRYPTED_BY_ROOT_KEY_CBC": - case 5: - message.keyType = 5; - break; - case "ENCRYPTED_BY_ROOT_KEY_GCM": - case 6: - message.keyType = 6; - break; + default: + if (typeof object.keyType === 'number') { + message.keyType = object.keyType; + break; + } + break; + case 'NO_KEY': + case 0: + message.keyType = 0; + break; + case 'ENCRYPTED_BY_DATA_KEY': + case 1: + message.keyType = 1; + break; + case 'ENCRYPTED_BY_PUBLIC_KEY': + case 2: + message.keyType = 2; + break; + case 'ENCRYPTED_BY_DATA_KEY_GCM': + case 3: + message.keyType = 3; + break; + case 'ENCRYPTED_BY_PUBLIC_KEY_ECC': + case 4: + message.keyType = 4; + break; + case 'ENCRYPTED_BY_ROOT_KEY_CBC': + case 5: + message.keyType = 5; + break; + case 'ENCRYPTED_BY_ROOT_KEY_GCM': + case 6: + message.keyType = 6; + break; } if (object.data != null) - if (typeof object.data === "string") - $util.base64.decode(object.data, message.data = $util.newBuffer($util.base64.length(object.data)), 0); - else if (object.data.length >= 0) - message.data = object.data; + if (typeof object.data === 'string') + $util.base64.decode( + object.data, + (message.data = $util.newBuffer($util.base64.length(object.data))), + 0 + ); + else if (object.data.length >= 0) message.data = object.data; if (object.defaultManageRecords != null) message.defaultManageRecords = Boolean(object.defaultManageRecords); - if (object.defaultManageUsers != null) - message.defaultManageUsers = Boolean(object.defaultManageUsers); - if (object.defaultCanEdit != null) - message.defaultCanEdit = Boolean(object.defaultCanEdit); - if (object.defaultCanReshare != null) - message.defaultCanReshare = Boolean(object.defaultCanReshare); + if (object.defaultManageUsers != null) message.defaultManageUsers = Boolean(object.defaultManageUsers); + if (object.defaultCanEdit != null) message.defaultCanEdit = Boolean(object.defaultCanEdit); + if (object.defaultCanReshare != null) message.defaultCanReshare = Boolean(object.defaultCanReshare); switch (object.cacheStatus) { - default: - if (typeof object.cacheStatus === "number") { - message.cacheStatus = object.cacheStatus; - break; - } - break; - case "KEEP": - case 0: - message.cacheStatus = 0; - break; - case "CLEAR": - case 1: - message.cacheStatus = 1; - break; - } - if (object.owner != null) - message.owner = String(object.owner); + default: + if (typeof object.cacheStatus === 'number') { + message.cacheStatus = object.cacheStatus; + break; + } + break; + case 'KEEP': + case 0: + message.cacheStatus = 0; + break; + case 'CLEAR': + case 1: + message.cacheStatus = 1; + break; + } + if (object.owner != null) message.owner = String(object.owner); if (object.ownerAccountUid != null) - if (typeof object.ownerAccountUid === "string") - $util.base64.decode(object.ownerAccountUid, message.ownerAccountUid = $util.newBuffer($util.base64.length(object.ownerAccountUid)), 0); - else if (object.ownerAccountUid.length >= 0) - message.ownerAccountUid = object.ownerAccountUid; + if (typeof object.ownerAccountUid === 'string') + $util.base64.decode( + object.ownerAccountUid, + (message.ownerAccountUid = $util.newBuffer($util.base64.length(object.ownerAccountUid))), + 0 + ); + else if (object.ownerAccountUid.length >= 0) message.ownerAccountUid = object.ownerAccountUid; if (object.name != null) - if (typeof object.name === "string") - $util.base64.decode(object.name, message.name = $util.newBuffer($util.base64.length(object.name)), 0); - else if (object.name.length >= 0) - message.name = object.name; + if (typeof object.name === 'string') + $util.base64.decode( + object.name, + (message.name = $util.newBuffer($util.base64.length(object.name))), + 0 + ); + else if (object.name.length >= 0) message.name = object.name; return message; }; @@ -203315,87 +211584,115 @@ export const Vault = $root.Vault = (() => { * @returns {Object.} Plain object */ SharedFolder.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.sharedFolderUid = ""; + if (options.bytes === String) object.sharedFolderUid = ''; else { object.sharedFolderUid = []; - if (options.bytes !== Array) - object.sharedFolderUid = $util.newBuffer(object.sharedFolderUid); + if (options.bytes !== Array) object.sharedFolderUid = $util.newBuffer(object.sharedFolderUid); } if ($util.Long) { let long = new $util.Long(0, 0, false); - object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.revision = options.longs === String ? "0" : 0; - if (options.bytes === String) - object.sharedFolderKey = ""; + object.revision = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.revision = options.longs === String ? '0' : 0; + if (options.bytes === String) object.sharedFolderKey = ''; else { object.sharedFolderKey = []; - if (options.bytes !== Array) - object.sharedFolderKey = $util.newBuffer(object.sharedFolderKey); + if (options.bytes !== Array) object.sharedFolderKey = $util.newBuffer(object.sharedFolderKey); } - object.keyType = options.enums === String ? "NO_KEY" : 0; - if (options.bytes === String) - object.data = ""; + object.keyType = options.enums === String ? 'NO_KEY' : 0; + if (options.bytes === String) object.data = ''; else { object.data = []; - if (options.bytes !== Array) - object.data = $util.newBuffer(object.data); + if (options.bytes !== Array) object.data = $util.newBuffer(object.data); } object.defaultManageRecords = false; object.defaultManageUsers = false; object.defaultCanEdit = false; object.defaultCanReshare = false; - object.cacheStatus = options.enums === String ? "KEEP" : 0; - object.owner = ""; - if (options.bytes === String) - object.ownerAccountUid = ""; + object.cacheStatus = options.enums === String ? 'KEEP' : 0; + object.owner = ''; + if (options.bytes === String) object.ownerAccountUid = ''; else { object.ownerAccountUid = []; - if (options.bytes !== Array) - object.ownerAccountUid = $util.newBuffer(object.ownerAccountUid); + if (options.bytes !== Array) object.ownerAccountUid = $util.newBuffer(object.ownerAccountUid); } - if (options.bytes === String) - object.name = ""; + if (options.bytes === String) object.name = ''; else { object.name = []; - if (options.bytes !== Array) - object.name = $util.newBuffer(object.name); - } - } - if (message.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) - object.sharedFolderUid = options.bytes === String ? $util.base64.encode(message.sharedFolderUid, 0, message.sharedFolderUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.sharedFolderUid) : message.sharedFolderUid; - if (message.revision != null && message.hasOwnProperty("revision")) - if (typeof message.revision === "number") + if (options.bytes !== Array) object.name = $util.newBuffer(object.name); + } + } + if (message.sharedFolderUid != null && message.hasOwnProperty('sharedFolderUid')) + object.sharedFolderUid = + options.bytes === String + ? $util.base64.encode(message.sharedFolderUid, 0, message.sharedFolderUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.sharedFolderUid) + : message.sharedFolderUid; + if (message.revision != null && message.hasOwnProperty('revision')) + if (typeof message.revision === 'number') object.revision = options.longs === String ? String(message.revision) : message.revision; else - object.revision = options.longs === String ? $util.Long.prototype.toString.call(message.revision) : options.longs === Number ? new $util.LongBits(message.revision.low >>> 0, message.revision.high >>> 0).toNumber() : message.revision; - if (message.sharedFolderKey != null && message.hasOwnProperty("sharedFolderKey")) - object.sharedFolderKey = options.bytes === String ? $util.base64.encode(message.sharedFolderKey, 0, message.sharedFolderKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.sharedFolderKey) : message.sharedFolderKey; - if (message.keyType != null && message.hasOwnProperty("keyType")) - object.keyType = options.enums === String ? $root.Records.RecordKeyType[message.keyType] === undefined ? message.keyType : $root.Records.RecordKeyType[message.keyType] : message.keyType; - if (message.data != null && message.hasOwnProperty("data")) - object.data = options.bytes === String ? $util.base64.encode(message.data, 0, message.data.length) : options.bytes === Array ? Array.prototype.slice.call(message.data) : message.data; - if (message.defaultManageRecords != null && message.hasOwnProperty("defaultManageRecords")) + object.revision = + options.longs === String + ? $util.Long.prototype.toString.call(message.revision) + : options.longs === Number + ? new $util.LongBits(message.revision.low >>> 0, message.revision.high >>> 0).toNumber() + : message.revision; + if (message.sharedFolderKey != null && message.hasOwnProperty('sharedFolderKey')) + object.sharedFolderKey = + options.bytes === String + ? $util.base64.encode(message.sharedFolderKey, 0, message.sharedFolderKey.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.sharedFolderKey) + : message.sharedFolderKey; + if (message.keyType != null && message.hasOwnProperty('keyType')) + object.keyType = + options.enums === String + ? $root.Records.RecordKeyType[message.keyType] === undefined + ? message.keyType + : $root.Records.RecordKeyType[message.keyType] + : message.keyType; + if (message.data != null && message.hasOwnProperty('data')) + object.data = + options.bytes === String + ? $util.base64.encode(message.data, 0, message.data.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.data) + : message.data; + if (message.defaultManageRecords != null && message.hasOwnProperty('defaultManageRecords')) object.defaultManageRecords = message.defaultManageRecords; - if (message.defaultManageUsers != null && message.hasOwnProperty("defaultManageUsers")) + if (message.defaultManageUsers != null && message.hasOwnProperty('defaultManageUsers')) object.defaultManageUsers = message.defaultManageUsers; - if (message.defaultCanEdit != null && message.hasOwnProperty("defaultCanEdit")) + if (message.defaultCanEdit != null && message.hasOwnProperty('defaultCanEdit')) object.defaultCanEdit = message.defaultCanEdit; - if (message.defaultCanReshare != null && message.hasOwnProperty("defaultCanReshare")) + if (message.defaultCanReshare != null && message.hasOwnProperty('defaultCanReshare')) object.defaultCanReshare = message.defaultCanReshare; - if (message.cacheStatus != null && message.hasOwnProperty("cacheStatus")) - object.cacheStatus = options.enums === String ? $root.Vault.CacheStatus[message.cacheStatus] === undefined ? message.cacheStatus : $root.Vault.CacheStatus[message.cacheStatus] : message.cacheStatus; - if (message.owner != null && message.hasOwnProperty("owner")) - object.owner = message.owner; - if (message.ownerAccountUid != null && message.hasOwnProperty("ownerAccountUid")) - object.ownerAccountUid = options.bytes === String ? $util.base64.encode(message.ownerAccountUid, 0, message.ownerAccountUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.ownerAccountUid) : message.ownerAccountUid; - if (message.name != null && message.hasOwnProperty("name")) - object.name = options.bytes === String ? $util.base64.encode(message.name, 0, message.name.length) : options.bytes === Array ? Array.prototype.slice.call(message.name) : message.name; + if (message.cacheStatus != null && message.hasOwnProperty('cacheStatus')) + object.cacheStatus = + options.enums === String + ? $root.Vault.CacheStatus[message.cacheStatus] === undefined + ? message.cacheStatus + : $root.Vault.CacheStatus[message.cacheStatus] + : message.cacheStatus; + if (message.owner != null && message.hasOwnProperty('owner')) object.owner = message.owner; + if (message.ownerAccountUid != null && message.hasOwnProperty('ownerAccountUid')) + object.ownerAccountUid = + options.bytes === String + ? $util.base64.encode(message.ownerAccountUid, 0, message.ownerAccountUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.ownerAccountUid) + : message.ownerAccountUid; + if (message.name != null && message.hasOwnProperty('name')) + object.name = + options.bytes === String + ? $util.base64.encode(message.name, 0, message.name.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.name) + : message.name; return object; }; @@ -203420,16 +211717,15 @@ export const Vault = $root.Vault = (() => { */ SharedFolder.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Vault.SharedFolder"; + return typeUrlPrefix + '/Vault.SharedFolder'; }; return SharedFolder; })(); - Vault.UserFolderSharedFolder = (function() { - + Vault.UserFolderSharedFolder = (function () { /** * Properties of a UserFolderSharedFolder. * @memberof Vault @@ -203450,8 +211746,7 @@ export const Vault = $root.Vault = (() => { function UserFolderSharedFolder(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -203476,7 +211771,7 @@ export const Vault = $root.Vault = (() => { * @memberof Vault.UserFolderSharedFolder * @instance */ - UserFolderSharedFolder.prototype.revision = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + UserFolderSharedFolder.prototype.revision = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * Creates a new UserFolderSharedFolder instance using the specified properties. @@ -203500,14 +211795,13 @@ export const Vault = $root.Vault = (() => { * @returns {$protobuf.Writer} Writer */ UserFolderSharedFolder.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.folderUid != null && Object.hasOwnProperty.call(message, "folderUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.folderUid); - if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, "sharedFolderUid")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.sharedFolderUid); - if (message.revision != null && Object.hasOwnProperty.call(message, "revision")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.revision); + if (!writer) writer = $Writer.create(); + if (message.folderUid != null && Object.hasOwnProperty.call(message, 'folderUid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.folderUid); + if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, 'sharedFolderUid')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.sharedFolderUid); + if (message.revision != null && Object.hasOwnProperty.call(message, 'revision')) + writer.uint32(/* id 3, wireType 0 =*/ 24).int64(message.revision); return writer; }; @@ -203536,27 +211830,27 @@ export const Vault = $root.Vault = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ UserFolderSharedFolder.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.UserFolderSharedFolder(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Vault.UserFolderSharedFolder(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.folderUid = reader.bytes(); break; } - case 2: { + case 2: { message.sharedFolderUid = reader.bytes(); break; } - case 3: { + case 3: { message.revision = reader.int64(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -203573,8 +211867,7 @@ export const Vault = $root.Vault = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ UserFolderSharedFolder.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -203587,17 +211880,33 @@ export const Vault = $root.Vault = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ UserFolderSharedFolder.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.folderUid != null && message.hasOwnProperty("folderUid")) - if (!(message.folderUid && typeof message.folderUid.length === "number" || $util.isString(message.folderUid))) - return "folderUid: buffer expected"; - if (message.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) - if (!(message.sharedFolderUid && typeof message.sharedFolderUid.length === "number" || $util.isString(message.sharedFolderUid))) - return "sharedFolderUid: buffer expected"; - if (message.revision != null && message.hasOwnProperty("revision")) - if (!$util.isInteger(message.revision) && !(message.revision && $util.isInteger(message.revision.low) && $util.isInteger(message.revision.high))) - return "revision: integer|Long expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.folderUid != null && message.hasOwnProperty('folderUid')) + if ( + !( + (message.folderUid && typeof message.folderUid.length === 'number') || + $util.isString(message.folderUid) + ) + ) + return 'folderUid: buffer expected'; + if (message.sharedFolderUid != null && message.hasOwnProperty('sharedFolderUid')) + if ( + !( + (message.sharedFolderUid && typeof message.sharedFolderUid.length === 'number') || + $util.isString(message.sharedFolderUid) + ) + ) + return 'sharedFolderUid: buffer expected'; + if (message.revision != null && message.hasOwnProperty('revision')) + if ( + !$util.isInteger(message.revision) && + !( + message.revision && + $util.isInteger(message.revision.low) && + $util.isInteger(message.revision.high) + ) + ) + return 'revision: integer|Long expected'; return null; }; @@ -203610,28 +211919,33 @@ export const Vault = $root.Vault = (() => { * @returns {Vault.UserFolderSharedFolder} UserFolderSharedFolder */ UserFolderSharedFolder.fromObject = function fromObject(object) { - if (object instanceof $root.Vault.UserFolderSharedFolder) - return object; + if (object instanceof $root.Vault.UserFolderSharedFolder) return object; let message = new $root.Vault.UserFolderSharedFolder(); 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 (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.sharedFolderUid != null) - if (typeof object.sharedFolderUid === "string") - $util.base64.decode(object.sharedFolderUid, message.sharedFolderUid = $util.newBuffer($util.base64.length(object.sharedFolderUid)), 0); - else if (object.sharedFolderUid.length >= 0) - message.sharedFolderUid = object.sharedFolderUid; + if (typeof object.sharedFolderUid === 'string') + $util.base64.decode( + object.sharedFolderUid, + (message.sharedFolderUid = $util.newBuffer($util.base64.length(object.sharedFolderUid))), + 0 + ); + else if (object.sharedFolderUid.length >= 0) message.sharedFolderUid = object.sharedFolderUid; if (object.revision != null) - if ($util.Long) - (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; - else if (typeof object.revision === "string") - message.revision = parseInt(object.revision, 10); - else if (typeof object.revision === "number") - message.revision = object.revision; - else if (typeof object.revision === "object") - message.revision = new $util.LongBits(object.revision.low >>> 0, object.revision.high >>> 0).toNumber(); + if ($util.Long) (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; + else if (typeof object.revision === 'string') message.revision = parseInt(object.revision, 10); + else if (typeof object.revision === 'number') message.revision = object.revision; + else if (typeof object.revision === 'object') + message.revision = new $util.LongBits( + object.revision.low >>> 0, + object.revision.high >>> 0 + ).toNumber(); return message; }; @@ -203645,39 +211959,49 @@ export const Vault = $root.Vault = (() => { * @returns {Object.} Plain object */ UserFolderSharedFolder.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.folderUid = ""; + if (options.bytes === String) object.folderUid = ''; else { object.folderUid = []; - if (options.bytes !== Array) - object.folderUid = $util.newBuffer(object.folderUid); + if (options.bytes !== Array) object.folderUid = $util.newBuffer(object.folderUid); } - if (options.bytes === String) - object.sharedFolderUid = ""; + if (options.bytes === String) object.sharedFolderUid = ''; else { object.sharedFolderUid = []; - if (options.bytes !== Array) - object.sharedFolderUid = $util.newBuffer(object.sharedFolderUid); + if (options.bytes !== Array) object.sharedFolderUid = $util.newBuffer(object.sharedFolderUid); } if ($util.Long) { let long = new $util.Long(0, 0, false); - object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.revision = options.longs === String ? "0" : 0; - } - if (message.folderUid != null && message.hasOwnProperty("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.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) - object.sharedFolderUid = options.bytes === String ? $util.base64.encode(message.sharedFolderUid, 0, message.sharedFolderUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.sharedFolderUid) : message.sharedFolderUid; - if (message.revision != null && message.hasOwnProperty("revision")) - if (typeof message.revision === "number") + object.revision = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.revision = options.longs === String ? '0' : 0; + } + if (message.folderUid != null && message.hasOwnProperty('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.sharedFolderUid != null && message.hasOwnProperty('sharedFolderUid')) + object.sharedFolderUid = + options.bytes === String + ? $util.base64.encode(message.sharedFolderUid, 0, message.sharedFolderUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.sharedFolderUid) + : message.sharedFolderUid; + if (message.revision != null && message.hasOwnProperty('revision')) + if (typeof message.revision === 'number') object.revision = options.longs === String ? String(message.revision) : message.revision; else - object.revision = options.longs === String ? $util.Long.prototype.toString.call(message.revision) : options.longs === Number ? new $util.LongBits(message.revision.low >>> 0, message.revision.high >>> 0).toNumber() : message.revision; + object.revision = + options.longs === String + ? $util.Long.prototype.toString.call(message.revision) + : options.longs === Number + ? new $util.LongBits(message.revision.low >>> 0, message.revision.high >>> 0).toNumber() + : message.revision; return object; }; @@ -203702,16 +212026,15 @@ export const Vault = $root.Vault = (() => { */ UserFolderSharedFolder.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Vault.UserFolderSharedFolder"; + return typeUrlPrefix + '/Vault.UserFolderSharedFolder'; }; return UserFolderSharedFolder; })(); - Vault.SharedFolderFolder = (function() { - + Vault.SharedFolderFolder = (function () { /** * Properties of a SharedFolderFolder. * @memberof Vault @@ -203736,8 +212059,7 @@ export const Vault = $root.Vault = (() => { function SharedFolderFolder(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -203786,7 +212108,7 @@ export const Vault = $root.Vault = (() => { * @memberof Vault.SharedFolderFolder * @instance */ - SharedFolderFolder.prototype.revision = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + SharedFolderFolder.prototype.revision = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * SharedFolderFolder data. @@ -203818,22 +212140,21 @@ export const Vault = $root.Vault = (() => { * @returns {$protobuf.Writer} Writer */ SharedFolderFolder.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, "sharedFolderUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.sharedFolderUid); - if (message.folderUid != null && Object.hasOwnProperty.call(message, "folderUid")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.folderUid); - if (message.parentUid != null && Object.hasOwnProperty.call(message, "parentUid")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.parentUid); - if (message.sharedFolderFolderKey != null && Object.hasOwnProperty.call(message, "sharedFolderFolderKey")) - writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.sharedFolderFolderKey); - if (message.keyType != null && Object.hasOwnProperty.call(message, "keyType")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.keyType); - if (message.revision != null && Object.hasOwnProperty.call(message, "revision")) - writer.uint32(/* id 6, wireType 0 =*/48).int64(message.revision); - if (message.data != null && Object.hasOwnProperty.call(message, "data")) - writer.uint32(/* id 7, wireType 2 =*/58).bytes(message.data); + if (!writer) writer = $Writer.create(); + if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, 'sharedFolderUid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.sharedFolderUid); + if (message.folderUid != null && Object.hasOwnProperty.call(message, 'folderUid')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.folderUid); + if (message.parentUid != null && Object.hasOwnProperty.call(message, 'parentUid')) + writer.uint32(/* id 3, wireType 2 =*/ 26).bytes(message.parentUid); + if (message.sharedFolderFolderKey != null && Object.hasOwnProperty.call(message, 'sharedFolderFolderKey')) + writer.uint32(/* id 4, wireType 2 =*/ 34).bytes(message.sharedFolderFolderKey); + if (message.keyType != null && Object.hasOwnProperty.call(message, 'keyType')) + writer.uint32(/* id 5, wireType 0 =*/ 40).int32(message.keyType); + if (message.revision != null && Object.hasOwnProperty.call(message, 'revision')) + writer.uint32(/* id 6, wireType 0 =*/ 48).int64(message.revision); + if (message.data != null && Object.hasOwnProperty.call(message, 'data')) + writer.uint32(/* id 7, wireType 2 =*/ 58).bytes(message.data); return writer; }; @@ -203862,43 +212183,43 @@ export const Vault = $root.Vault = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SharedFolderFolder.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.SharedFolderFolder(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Vault.SharedFolderFolder(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.sharedFolderUid = reader.bytes(); break; } - case 2: { + case 2: { message.folderUid = reader.bytes(); break; } - case 3: { + case 3: { message.parentUid = reader.bytes(); break; } - case 4: { + case 4: { message.sharedFolderFolderKey = reader.bytes(); break; } - case 5: { + case 5: { message.keyType = reader.int32(); break; } - case 6: { + case 6: { message.revision = reader.int64(); break; } - case 7: { + case 7: { message.data = reader.bytes(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -203915,8 +212236,7 @@ export const Vault = $root.Vault = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SharedFolderFolder.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -203929,39 +212249,65 @@ export const Vault = $root.Vault = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ SharedFolderFolder.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) - if (!(message.sharedFolderUid && typeof message.sharedFolderUid.length === "number" || $util.isString(message.sharedFolderUid))) - return "sharedFolderUid: buffer expected"; - if (message.folderUid != null && message.hasOwnProperty("folderUid")) - if (!(message.folderUid && typeof message.folderUid.length === "number" || $util.isString(message.folderUid))) - return "folderUid: buffer expected"; - if (message.parentUid != null && message.hasOwnProperty("parentUid")) - if (!(message.parentUid && typeof message.parentUid.length === "number" || $util.isString(message.parentUid))) - return "parentUid: buffer expected"; - if (message.sharedFolderFolderKey != null && message.hasOwnProperty("sharedFolderFolderKey")) - if (!(message.sharedFolderFolderKey && typeof message.sharedFolderFolderKey.length === "number" || $util.isString(message.sharedFolderFolderKey))) - return "sharedFolderFolderKey: buffer expected"; - if (message.keyType != null && message.hasOwnProperty("keyType")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.sharedFolderUid != null && message.hasOwnProperty('sharedFolderUid')) + if ( + !( + (message.sharedFolderUid && typeof message.sharedFolderUid.length === 'number') || + $util.isString(message.sharedFolderUid) + ) + ) + return 'sharedFolderUid: buffer expected'; + if (message.folderUid != null && message.hasOwnProperty('folderUid')) + if ( + !( + (message.folderUid && typeof message.folderUid.length === 'number') || + $util.isString(message.folderUid) + ) + ) + return 'folderUid: buffer expected'; + if (message.parentUid != null && message.hasOwnProperty('parentUid')) + if ( + !( + (message.parentUid && typeof message.parentUid.length === 'number') || + $util.isString(message.parentUid) + ) + ) + return 'parentUid: buffer expected'; + if (message.sharedFolderFolderKey != null && message.hasOwnProperty('sharedFolderFolderKey')) + if ( + !( + (message.sharedFolderFolderKey && typeof message.sharedFolderFolderKey.length === 'number') || + $util.isString(message.sharedFolderFolderKey) + ) + ) + return 'sharedFolderFolderKey: buffer expected'; + if (message.keyType != null && message.hasOwnProperty('keyType')) switch (message.keyType) { - default: - return "keyType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - break; + default: + return 'keyType: enum value expected'; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + break; } - if (message.revision != null && message.hasOwnProperty("revision")) - if (!$util.isInteger(message.revision) && !(message.revision && $util.isInteger(message.revision.low) && $util.isInteger(message.revision.high))) - return "revision: integer|Long expected"; - if (message.data != null && message.hasOwnProperty("data")) - if (!(message.data && typeof message.data.length === "number" || $util.isString(message.data))) - return "data: buffer expected"; + if (message.revision != null && message.hasOwnProperty('revision')) + if ( + !$util.isInteger(message.revision) && + !( + message.revision && + $util.isInteger(message.revision.low) && + $util.isInteger(message.revision.high) + ) + ) + return 'revision: integer|Long expected'; + if (message.data != null && message.hasOwnProperty('data')) + if (!((message.data && typeof message.data.length === 'number') || $util.isString(message.data))) + return 'data: buffer expected'; return null; }; @@ -203974,79 +212320,96 @@ export const Vault = $root.Vault = (() => { * @returns {Vault.SharedFolderFolder} SharedFolderFolder */ SharedFolderFolder.fromObject = function fromObject(object) { - if (object instanceof $root.Vault.SharedFolderFolder) - return object; + if (object instanceof $root.Vault.SharedFolderFolder) return object; let message = new $root.Vault.SharedFolderFolder(); if (object.sharedFolderUid != null) - if (typeof object.sharedFolderUid === "string") - $util.base64.decode(object.sharedFolderUid, message.sharedFolderUid = $util.newBuffer($util.base64.length(object.sharedFolderUid)), 0); - else if (object.sharedFolderUid.length >= 0) - message.sharedFolderUid = object.sharedFolderUid; + if (typeof object.sharedFolderUid === 'string') + $util.base64.decode( + object.sharedFolderUid, + (message.sharedFolderUid = $util.newBuffer($util.base64.length(object.sharedFolderUid))), + 0 + ); + else if (object.sharedFolderUid.length >= 0) message.sharedFolderUid = object.sharedFolderUid; 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 (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.parentUid != null) - if (typeof object.parentUid === "string") - $util.base64.decode(object.parentUid, message.parentUid = $util.newBuffer($util.base64.length(object.parentUid)), 0); - else if (object.parentUid.length >= 0) - message.parentUid = object.parentUid; + if (typeof object.parentUid === 'string') + $util.base64.decode( + object.parentUid, + (message.parentUid = $util.newBuffer($util.base64.length(object.parentUid))), + 0 + ); + else if (object.parentUid.length >= 0) message.parentUid = object.parentUid; if (object.sharedFolderFolderKey != null) - if (typeof object.sharedFolderFolderKey === "string") - $util.base64.decode(object.sharedFolderFolderKey, message.sharedFolderFolderKey = $util.newBuffer($util.base64.length(object.sharedFolderFolderKey)), 0); + if (typeof object.sharedFolderFolderKey === 'string') + $util.base64.decode( + object.sharedFolderFolderKey, + (message.sharedFolderFolderKey = $util.newBuffer( + $util.base64.length(object.sharedFolderFolderKey) + )), + 0 + ); else if (object.sharedFolderFolderKey.length >= 0) message.sharedFolderFolderKey = object.sharedFolderFolderKey; switch (object.keyType) { - default: - if (typeof object.keyType === "number") { - message.keyType = object.keyType; - break; - } - break; - case "NO_KEY": - case 0: - message.keyType = 0; - break; - case "ENCRYPTED_BY_DATA_KEY": - case 1: - message.keyType = 1; - break; - case "ENCRYPTED_BY_PUBLIC_KEY": - case 2: - message.keyType = 2; - break; - case "ENCRYPTED_BY_DATA_KEY_GCM": - case 3: - message.keyType = 3; - break; - case "ENCRYPTED_BY_PUBLIC_KEY_ECC": - case 4: - message.keyType = 4; - break; - case "ENCRYPTED_BY_ROOT_KEY_CBC": - case 5: - message.keyType = 5; - break; - case "ENCRYPTED_BY_ROOT_KEY_GCM": - case 6: - message.keyType = 6; - break; + default: + if (typeof object.keyType === 'number') { + message.keyType = object.keyType; + break; + } + break; + case 'NO_KEY': + case 0: + message.keyType = 0; + break; + case 'ENCRYPTED_BY_DATA_KEY': + case 1: + message.keyType = 1; + break; + case 'ENCRYPTED_BY_PUBLIC_KEY': + case 2: + message.keyType = 2; + break; + case 'ENCRYPTED_BY_DATA_KEY_GCM': + case 3: + message.keyType = 3; + break; + case 'ENCRYPTED_BY_PUBLIC_KEY_ECC': + case 4: + message.keyType = 4; + break; + case 'ENCRYPTED_BY_ROOT_KEY_CBC': + case 5: + message.keyType = 5; + break; + case 'ENCRYPTED_BY_ROOT_KEY_GCM': + case 6: + message.keyType = 6; + break; } if (object.revision != null) - if ($util.Long) - (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; - else if (typeof object.revision === "string") - message.revision = parseInt(object.revision, 10); - else if (typeof object.revision === "number") - message.revision = object.revision; - else if (typeof object.revision === "object") - message.revision = new $util.LongBits(object.revision.low >>> 0, object.revision.high >>> 0).toNumber(); + if ($util.Long) (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; + else if (typeof object.revision === 'string') message.revision = parseInt(object.revision, 10); + else if (typeof object.revision === 'number') message.revision = object.revision; + else if (typeof object.revision === 'object') + message.revision = new $util.LongBits( + object.revision.low >>> 0, + object.revision.high >>> 0 + ).toNumber(); if (object.data != null) - if (typeof object.data === "string") - $util.base64.decode(object.data, message.data = $util.newBuffer($util.base64.length(object.data)), 0); - else if (object.data.length >= 0) - message.data = object.data; + if (typeof object.data === 'string') + $util.base64.decode( + object.data, + (message.data = $util.newBuffer($util.base64.length(object.data))), + 0 + ); + else if (object.data.length >= 0) message.data = object.data; return message; }; @@ -204060,69 +212423,94 @@ export const Vault = $root.Vault = (() => { * @returns {Object.} Plain object */ SharedFolderFolder.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.sharedFolderUid = ""; + if (options.bytes === String) object.sharedFolderUid = ''; else { object.sharedFolderUid = []; - if (options.bytes !== Array) - object.sharedFolderUid = $util.newBuffer(object.sharedFolderUid); + if (options.bytes !== Array) object.sharedFolderUid = $util.newBuffer(object.sharedFolderUid); } - if (options.bytes === String) - object.folderUid = ""; + if (options.bytes === String) object.folderUid = ''; else { object.folderUid = []; - if (options.bytes !== Array) - object.folderUid = $util.newBuffer(object.folderUid); + if (options.bytes !== Array) object.folderUid = $util.newBuffer(object.folderUid); } - if (options.bytes === String) - object.parentUid = ""; + if (options.bytes === String) object.parentUid = ''; else { object.parentUid = []; - if (options.bytes !== Array) - object.parentUid = $util.newBuffer(object.parentUid); + if (options.bytes !== Array) object.parentUid = $util.newBuffer(object.parentUid); } - if (options.bytes === String) - object.sharedFolderFolderKey = ""; + if (options.bytes === String) object.sharedFolderFolderKey = ''; else { object.sharedFolderFolderKey = []; if (options.bytes !== Array) object.sharedFolderFolderKey = $util.newBuffer(object.sharedFolderFolderKey); } - object.keyType = options.enums === String ? "NO_KEY" : 0; + object.keyType = options.enums === String ? 'NO_KEY' : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.revision = options.longs === String ? "0" : 0; - if (options.bytes === String) - object.data = ""; + object.revision = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.revision = options.longs === String ? '0' : 0; + if (options.bytes === String) object.data = ''; else { object.data = []; - if (options.bytes !== Array) - object.data = $util.newBuffer(object.data); - } - } - if (message.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) - object.sharedFolderUid = options.bytes === String ? $util.base64.encode(message.sharedFolderUid, 0, message.sharedFolderUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.sharedFolderUid) : message.sharedFolderUid; - if (message.folderUid != null && message.hasOwnProperty("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.parentUid != null && message.hasOwnProperty("parentUid")) - object.parentUid = options.bytes === String ? $util.base64.encode(message.parentUid, 0, message.parentUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.parentUid) : message.parentUid; - if (message.sharedFolderFolderKey != null && message.hasOwnProperty("sharedFolderFolderKey")) - object.sharedFolderFolderKey = options.bytes === String ? $util.base64.encode(message.sharedFolderFolderKey, 0, message.sharedFolderFolderKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.sharedFolderFolderKey) : message.sharedFolderFolderKey; - if (message.keyType != null && message.hasOwnProperty("keyType")) - object.keyType = options.enums === String ? $root.Records.RecordKeyType[message.keyType] === undefined ? message.keyType : $root.Records.RecordKeyType[message.keyType] : message.keyType; - if (message.revision != null && message.hasOwnProperty("revision")) - if (typeof message.revision === "number") + if (options.bytes !== Array) object.data = $util.newBuffer(object.data); + } + } + if (message.sharedFolderUid != null && message.hasOwnProperty('sharedFolderUid')) + object.sharedFolderUid = + options.bytes === String + ? $util.base64.encode(message.sharedFolderUid, 0, message.sharedFolderUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.sharedFolderUid) + : message.sharedFolderUid; + if (message.folderUid != null && message.hasOwnProperty('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.parentUid != null && message.hasOwnProperty('parentUid')) + object.parentUid = + options.bytes === String + ? $util.base64.encode(message.parentUid, 0, message.parentUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.parentUid) + : message.parentUid; + if (message.sharedFolderFolderKey != null && message.hasOwnProperty('sharedFolderFolderKey')) + object.sharedFolderFolderKey = + options.bytes === String + ? $util.base64.encode(message.sharedFolderFolderKey, 0, message.sharedFolderFolderKey.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.sharedFolderFolderKey) + : message.sharedFolderFolderKey; + if (message.keyType != null && message.hasOwnProperty('keyType')) + object.keyType = + options.enums === String + ? $root.Records.RecordKeyType[message.keyType] === undefined + ? message.keyType + : $root.Records.RecordKeyType[message.keyType] + : message.keyType; + if (message.revision != null && message.hasOwnProperty('revision')) + if (typeof message.revision === 'number') object.revision = options.longs === String ? String(message.revision) : message.revision; else - object.revision = options.longs === String ? $util.Long.prototype.toString.call(message.revision) : options.longs === Number ? new $util.LongBits(message.revision.low >>> 0, message.revision.high >>> 0).toNumber() : message.revision; - if (message.data != null && message.hasOwnProperty("data")) - object.data = options.bytes === String ? $util.base64.encode(message.data, 0, message.data.length) : options.bytes === Array ? Array.prototype.slice.call(message.data) : message.data; + object.revision = + options.longs === String + ? $util.Long.prototype.toString.call(message.revision) + : options.longs === Number + ? new $util.LongBits(message.revision.low >>> 0, message.revision.high >>> 0).toNumber() + : message.revision; + if (message.data != null && message.hasOwnProperty('data')) + object.data = + options.bytes === String + ? $util.base64.encode(message.data, 0, message.data.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.data) + : message.data; return object; }; @@ -204147,16 +212535,15 @@ export const Vault = $root.Vault = (() => { */ SharedFolderFolder.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Vault.SharedFolderFolder"; + return typeUrlPrefix + '/Vault.SharedFolderFolder'; }; return SharedFolderFolder; })(); - Vault.SharedFolderKey = (function() { - + Vault.SharedFolderKey = (function () { /** * Properties of a SharedFolderKey. * @memberof Vault @@ -204177,8 +212564,7 @@ export const Vault = $root.Vault = (() => { function SharedFolderKey(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -204227,14 +212613,13 @@ export const Vault = $root.Vault = (() => { * @returns {$protobuf.Writer} Writer */ SharedFolderKey.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, "sharedFolderUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.sharedFolderUid); - if (message.sharedFolderKey != null && Object.hasOwnProperty.call(message, "sharedFolderKey")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.sharedFolderKey); - if (message.keyType != null && Object.hasOwnProperty.call(message, "keyType")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.keyType); + if (!writer) writer = $Writer.create(); + if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, 'sharedFolderUid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.sharedFolderUid); + if (message.sharedFolderKey != null && Object.hasOwnProperty.call(message, 'sharedFolderKey')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.sharedFolderKey); + if (message.keyType != null && Object.hasOwnProperty.call(message, 'keyType')) + writer.uint32(/* id 3, wireType 0 =*/ 24).int32(message.keyType); return writer; }; @@ -204263,27 +212648,27 @@ export const Vault = $root.Vault = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SharedFolderKey.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.SharedFolderKey(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Vault.SharedFolderKey(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.sharedFolderUid = reader.bytes(); break; } - case 2: { + case 2: { message.sharedFolderKey = reader.bytes(); break; } - case 3: { + case 3: { message.keyType = reader.int32(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -204300,8 +212685,7 @@ export const Vault = $root.Vault = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SharedFolderKey.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -204314,26 +212698,35 @@ export const Vault = $root.Vault = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ SharedFolderKey.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) - if (!(message.sharedFolderUid && typeof message.sharedFolderUid.length === "number" || $util.isString(message.sharedFolderUid))) - return "sharedFolderUid: buffer expected"; - if (message.sharedFolderKey != null && message.hasOwnProperty("sharedFolderKey")) - if (!(message.sharedFolderKey && typeof message.sharedFolderKey.length === "number" || $util.isString(message.sharedFolderKey))) - return "sharedFolderKey: buffer expected"; - if (message.keyType != null && message.hasOwnProperty("keyType")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.sharedFolderUid != null && message.hasOwnProperty('sharedFolderUid')) + if ( + !( + (message.sharedFolderUid && typeof message.sharedFolderUid.length === 'number') || + $util.isString(message.sharedFolderUid) + ) + ) + return 'sharedFolderUid: buffer expected'; + if (message.sharedFolderKey != null && message.hasOwnProperty('sharedFolderKey')) + if ( + !( + (message.sharedFolderKey && typeof message.sharedFolderKey.length === 'number') || + $util.isString(message.sharedFolderKey) + ) + ) + return 'sharedFolderKey: buffer expected'; + if (message.keyType != null && message.hasOwnProperty('keyType')) switch (message.keyType) { - default: - return "keyType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - break; + default: + return 'keyType: enum value expected'; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + break; } return null; }; @@ -204347,54 +212740,59 @@ export const Vault = $root.Vault = (() => { * @returns {Vault.SharedFolderKey} SharedFolderKey */ SharedFolderKey.fromObject = function fromObject(object) { - if (object instanceof $root.Vault.SharedFolderKey) - return object; + if (object instanceof $root.Vault.SharedFolderKey) return object; let message = new $root.Vault.SharedFolderKey(); if (object.sharedFolderUid != null) - if (typeof object.sharedFolderUid === "string") - $util.base64.decode(object.sharedFolderUid, message.sharedFolderUid = $util.newBuffer($util.base64.length(object.sharedFolderUid)), 0); - else if (object.sharedFolderUid.length >= 0) - message.sharedFolderUid = object.sharedFolderUid; + if (typeof object.sharedFolderUid === 'string') + $util.base64.decode( + object.sharedFolderUid, + (message.sharedFolderUid = $util.newBuffer($util.base64.length(object.sharedFolderUid))), + 0 + ); + else if (object.sharedFolderUid.length >= 0) message.sharedFolderUid = object.sharedFolderUid; if (object.sharedFolderKey != null) - if (typeof object.sharedFolderKey === "string") - $util.base64.decode(object.sharedFolderKey, message.sharedFolderKey = $util.newBuffer($util.base64.length(object.sharedFolderKey)), 0); - else if (object.sharedFolderKey.length >= 0) - message.sharedFolderKey = object.sharedFolderKey; + if (typeof object.sharedFolderKey === 'string') + $util.base64.decode( + object.sharedFolderKey, + (message.sharedFolderKey = $util.newBuffer($util.base64.length(object.sharedFolderKey))), + 0 + ); + else if (object.sharedFolderKey.length >= 0) message.sharedFolderKey = object.sharedFolderKey; switch (object.keyType) { - default: - if (typeof object.keyType === "number") { - message.keyType = object.keyType; - break; - } - break; - case "NO_KEY": - case 0: - message.keyType = 0; - break; - case "ENCRYPTED_BY_DATA_KEY": - case 1: - message.keyType = 1; - break; - case "ENCRYPTED_BY_PUBLIC_KEY": - case 2: - message.keyType = 2; - break; - case "ENCRYPTED_BY_DATA_KEY_GCM": - case 3: - message.keyType = 3; - break; - case "ENCRYPTED_BY_PUBLIC_KEY_ECC": - case 4: - message.keyType = 4; - break; - case "ENCRYPTED_BY_ROOT_KEY_CBC": - case 5: - message.keyType = 5; - break; - case "ENCRYPTED_BY_ROOT_KEY_GCM": - case 6: - message.keyType = 6; - break; + default: + if (typeof object.keyType === 'number') { + message.keyType = object.keyType; + break; + } + break; + case 'NO_KEY': + case 0: + message.keyType = 0; + break; + case 'ENCRYPTED_BY_DATA_KEY': + case 1: + message.keyType = 1; + break; + case 'ENCRYPTED_BY_PUBLIC_KEY': + case 2: + message.keyType = 2; + break; + case 'ENCRYPTED_BY_DATA_KEY_GCM': + case 3: + message.keyType = 3; + break; + case 'ENCRYPTED_BY_PUBLIC_KEY_ECC': + case 4: + message.keyType = 4; + break; + case 'ENCRYPTED_BY_ROOT_KEY_CBC': + case 5: + message.keyType = 5; + break; + case 'ENCRYPTED_BY_ROOT_KEY_GCM': + case 6: + message.keyType = 6; + break; } return message; }; @@ -204409,32 +212807,42 @@ export const Vault = $root.Vault = (() => { * @returns {Object.} Plain object */ SharedFolderKey.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.sharedFolderUid = ""; + if (options.bytes === String) object.sharedFolderUid = ''; else { object.sharedFolderUid = []; - if (options.bytes !== Array) - object.sharedFolderUid = $util.newBuffer(object.sharedFolderUid); + if (options.bytes !== Array) object.sharedFolderUid = $util.newBuffer(object.sharedFolderUid); } - if (options.bytes === String) - object.sharedFolderKey = ""; + if (options.bytes === String) object.sharedFolderKey = ''; else { object.sharedFolderKey = []; - if (options.bytes !== Array) - object.sharedFolderKey = $util.newBuffer(object.sharedFolderKey); - } - object.keyType = options.enums === String ? "NO_KEY" : 0; - } - if (message.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) - object.sharedFolderUid = options.bytes === String ? $util.base64.encode(message.sharedFolderUid, 0, message.sharedFolderUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.sharedFolderUid) : message.sharedFolderUid; - if (message.sharedFolderKey != null && message.hasOwnProperty("sharedFolderKey")) - object.sharedFolderKey = options.bytes === String ? $util.base64.encode(message.sharedFolderKey, 0, message.sharedFolderKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.sharedFolderKey) : message.sharedFolderKey; - if (message.keyType != null && message.hasOwnProperty("keyType")) - object.keyType = options.enums === String ? $root.Records.RecordKeyType[message.keyType] === undefined ? message.keyType : $root.Records.RecordKeyType[message.keyType] : message.keyType; + if (options.bytes !== Array) object.sharedFolderKey = $util.newBuffer(object.sharedFolderKey); + } + object.keyType = options.enums === String ? 'NO_KEY' : 0; + } + if (message.sharedFolderUid != null && message.hasOwnProperty('sharedFolderUid')) + object.sharedFolderUid = + options.bytes === String + ? $util.base64.encode(message.sharedFolderUid, 0, message.sharedFolderUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.sharedFolderUid) + : message.sharedFolderUid; + if (message.sharedFolderKey != null && message.hasOwnProperty('sharedFolderKey')) + object.sharedFolderKey = + options.bytes === String + ? $util.base64.encode(message.sharedFolderKey, 0, message.sharedFolderKey.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.sharedFolderKey) + : message.sharedFolderKey; + if (message.keyType != null && message.hasOwnProperty('keyType')) + object.keyType = + options.enums === String + ? $root.Records.RecordKeyType[message.keyType] === undefined + ? message.keyType + : $root.Records.RecordKeyType[message.keyType] + : message.keyType; return object; }; @@ -204459,16 +212867,15 @@ export const Vault = $root.Vault = (() => { */ SharedFolderKey.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Vault.SharedFolderKey"; + return typeUrlPrefix + '/Vault.SharedFolderKey'; }; return SharedFolderKey; })(); - Vault.Team = (function() { - + Vault.Team = (function () { /** * Properties of a Team. * @memberof Vault @@ -204500,8 +212907,7 @@ export const Vault = $root.Vault = (() => { this.sharedFolderKeys = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -204518,7 +212924,7 @@ export const Vault = $root.Vault = (() => { * @memberof Vault.Team * @instance */ - Team.prototype.name = ""; + Team.prototype.name = ''; /** * Team teamKey. @@ -204622,34 +213028,36 @@ export const Vault = $root.Vault = (() => { * @returns {$protobuf.Writer} Writer */ Team.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.teamUid != null && Object.hasOwnProperty.call(message, "teamUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.teamUid); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.name); - if (message.teamKey != null && Object.hasOwnProperty.call(message, "teamKey")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.teamKey); - if (message.teamKeyType != null && Object.hasOwnProperty.call(message, "teamKeyType")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.teamKeyType); - if (message.teamPrivateKey != null && Object.hasOwnProperty.call(message, "teamPrivateKey")) - writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.teamPrivateKey); - if (message.restrictEdit != null && Object.hasOwnProperty.call(message, "restrictEdit")) - writer.uint32(/* id 6, wireType 0 =*/48).bool(message.restrictEdit); - if (message.restrictShare != null && Object.hasOwnProperty.call(message, "restrictShare")) - writer.uint32(/* id 7, wireType 0 =*/56).bool(message.restrictShare); - if (message.restrictView != null && Object.hasOwnProperty.call(message, "restrictView")) - writer.uint32(/* id 8, wireType 0 =*/64).bool(message.restrictView); + if (!writer) writer = $Writer.create(); + if (message.teamUid != null && Object.hasOwnProperty.call(message, 'teamUid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.teamUid); + if (message.name != null && Object.hasOwnProperty.call(message, 'name')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.name); + if (message.teamKey != null && Object.hasOwnProperty.call(message, 'teamKey')) + writer.uint32(/* id 3, wireType 2 =*/ 26).bytes(message.teamKey); + if (message.teamKeyType != null && Object.hasOwnProperty.call(message, 'teamKeyType')) + writer.uint32(/* id 4, wireType 0 =*/ 32).int32(message.teamKeyType); + if (message.teamPrivateKey != null && Object.hasOwnProperty.call(message, 'teamPrivateKey')) + writer.uint32(/* id 5, wireType 2 =*/ 42).bytes(message.teamPrivateKey); + if (message.restrictEdit != null && Object.hasOwnProperty.call(message, 'restrictEdit')) + writer.uint32(/* id 6, wireType 0 =*/ 48).bool(message.restrictEdit); + if (message.restrictShare != null && Object.hasOwnProperty.call(message, 'restrictShare')) + writer.uint32(/* id 7, wireType 0 =*/ 56).bool(message.restrictShare); + if (message.restrictView != null && Object.hasOwnProperty.call(message, 'restrictView')) + writer.uint32(/* id 8, wireType 0 =*/ 64).bool(message.restrictView); if (message.removedSharedFolders != null && message.removedSharedFolders.length) for (let i = 0; i < message.removedSharedFolders.length; ++i) - writer.uint32(/* id 9, wireType 2 =*/74).bytes(message.removedSharedFolders[i]); + writer.uint32(/* id 9, wireType 2 =*/ 74).bytes(message.removedSharedFolders[i]); if (message.sharedFolderKeys != null && message.sharedFolderKeys.length) for (let i = 0; i < message.sharedFolderKeys.length; ++i) - $root.Vault.SharedFolderKey.encode(message.sharedFolderKeys[i], writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); - if (message.teamEccPrivateKey != null && Object.hasOwnProperty.call(message, "teamEccPrivateKey")) - writer.uint32(/* id 11, wireType 2 =*/90).bytes(message.teamEccPrivateKey); - if (message.teamEccPublicKey != null && Object.hasOwnProperty.call(message, "teamEccPublicKey")) - writer.uint32(/* id 12, wireType 2 =*/98).bytes(message.teamEccPublicKey); + $root.Vault.SharedFolderKey.encode( + message.sharedFolderKeys[i], + writer.uint32(/* id 10, wireType 2 =*/ 82).fork() + ).ldelim(); + if (message.teamEccPrivateKey != null && Object.hasOwnProperty.call(message, 'teamEccPrivateKey')) + writer.uint32(/* id 11, wireType 2 =*/ 90).bytes(message.teamEccPrivateKey); + if (message.teamEccPublicKey != null && Object.hasOwnProperty.call(message, 'teamEccPublicKey')) + writer.uint32(/* id 12, wireType 2 =*/ 98).bytes(message.teamEccPublicKey); return writer; }; @@ -204678,67 +213086,67 @@ export const Vault = $root.Vault = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ Team.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.Team(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Vault.Team(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.teamUid = reader.bytes(); break; } - case 2: { + case 2: { message.name = reader.string(); break; } - case 3: { + case 3: { message.teamKey = reader.bytes(); break; } - case 4: { + case 4: { message.teamKeyType = reader.int32(); break; } - case 5: { + case 5: { message.teamPrivateKey = reader.bytes(); break; } - case 6: { + case 6: { message.restrictEdit = reader.bool(); break; } - case 7: { + case 7: { message.restrictShare = reader.bool(); break; } - case 8: { + case 8: { message.restrictView = reader.bool(); break; } - case 9: { + case 9: { if (!(message.removedSharedFolders && message.removedSharedFolders.length)) message.removedSharedFolders = []; message.removedSharedFolders.push(reader.bytes()); break; } - case 10: { + case 10: { if (!(message.sharedFolderKeys && message.sharedFolderKeys.length)) message.sharedFolderKeys = []; message.sharedFolderKeys.push($root.Vault.SharedFolderKey.decode(reader, reader.uint32())); break; } - case 11: { + case 11: { message.teamEccPrivateKey = reader.bytes(); break; } - case 12: { + case 12: { message.teamEccPublicKey = reader.bytes(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -204755,8 +213163,7 @@ export const Vault = $root.Vault = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ Team.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -204769,64 +213176,87 @@ export const Vault = $root.Vault = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ Team.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.teamUid != null && message.hasOwnProperty("teamUid")) - if (!(message.teamUid && typeof message.teamUid.length === "number" || $util.isString(message.teamUid))) - return "teamUid: buffer expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.teamKey != null && message.hasOwnProperty("teamKey")) - if (!(message.teamKey && typeof message.teamKey.length === "number" || $util.isString(message.teamKey))) - return "teamKey: buffer expected"; - if (message.teamKeyType != null && message.hasOwnProperty("teamKeyType")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.teamUid != null && message.hasOwnProperty('teamUid')) + if ( + !( + (message.teamUid && typeof message.teamUid.length === 'number') || + $util.isString(message.teamUid) + ) + ) + return 'teamUid: buffer expected'; + if (message.name != null && message.hasOwnProperty('name')) + if (!$util.isString(message.name)) return 'name: string expected'; + if (message.teamKey != null && message.hasOwnProperty('teamKey')) + if ( + !( + (message.teamKey && typeof message.teamKey.length === 'number') || + $util.isString(message.teamKey) + ) + ) + return 'teamKey: buffer expected'; + if (message.teamKeyType != null && message.hasOwnProperty('teamKeyType')) switch (message.teamKeyType) { - default: - return "teamKeyType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - break; + default: + return 'teamKeyType: enum value expected'; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + break; } - if (message.teamPrivateKey != null && message.hasOwnProperty("teamPrivateKey")) - if (!(message.teamPrivateKey && typeof message.teamPrivateKey.length === "number" || $util.isString(message.teamPrivateKey))) - return "teamPrivateKey: buffer expected"; - if (message.restrictEdit != null && message.hasOwnProperty("restrictEdit")) - if (typeof message.restrictEdit !== "boolean") - return "restrictEdit: boolean expected"; - if (message.restrictShare != null && message.hasOwnProperty("restrictShare")) - if (typeof message.restrictShare !== "boolean") - return "restrictShare: boolean expected"; - if (message.restrictView != null && message.hasOwnProperty("restrictView")) - if (typeof message.restrictView !== "boolean") - return "restrictView: boolean expected"; - if (message.removedSharedFolders != null && message.hasOwnProperty("removedSharedFolders")) { - if (!Array.isArray(message.removedSharedFolders)) - return "removedSharedFolders: array expected"; + if (message.teamPrivateKey != null && message.hasOwnProperty('teamPrivateKey')) + if ( + !( + (message.teamPrivateKey && typeof message.teamPrivateKey.length === 'number') || + $util.isString(message.teamPrivateKey) + ) + ) + return 'teamPrivateKey: buffer expected'; + if (message.restrictEdit != null && message.hasOwnProperty('restrictEdit')) + if (typeof message.restrictEdit !== 'boolean') return 'restrictEdit: boolean expected'; + if (message.restrictShare != null && message.hasOwnProperty('restrictShare')) + if (typeof message.restrictShare !== 'boolean') return 'restrictShare: boolean expected'; + if (message.restrictView != null && message.hasOwnProperty('restrictView')) + if (typeof message.restrictView !== 'boolean') return 'restrictView: boolean expected'; + if (message.removedSharedFolders != null && message.hasOwnProperty('removedSharedFolders')) { + if (!Array.isArray(message.removedSharedFolders)) return 'removedSharedFolders: array expected'; for (let i = 0; i < message.removedSharedFolders.length; ++i) - if (!(message.removedSharedFolders[i] && typeof message.removedSharedFolders[i].length === "number" || $util.isString(message.removedSharedFolders[i]))) - return "removedSharedFolders: buffer[] expected"; - } - if (message.sharedFolderKeys != null && message.hasOwnProperty("sharedFolderKeys")) { - if (!Array.isArray(message.sharedFolderKeys)) - return "sharedFolderKeys: array expected"; + if ( + !( + (message.removedSharedFolders[i] && + typeof message.removedSharedFolders[i].length === 'number') || + $util.isString(message.removedSharedFolders[i]) + ) + ) + return 'removedSharedFolders: buffer[] expected'; + } + if (message.sharedFolderKeys != null && message.hasOwnProperty('sharedFolderKeys')) { + if (!Array.isArray(message.sharedFolderKeys)) return 'sharedFolderKeys: array expected'; for (let i = 0; i < message.sharedFolderKeys.length; ++i) { let error = $root.Vault.SharedFolderKey.verify(message.sharedFolderKeys[i]); - if (error) - return "sharedFolderKeys." + error; + if (error) return 'sharedFolderKeys.' + error; } } - if (message.teamEccPrivateKey != null && message.hasOwnProperty("teamEccPrivateKey")) - if (!(message.teamEccPrivateKey && typeof message.teamEccPrivateKey.length === "number" || $util.isString(message.teamEccPrivateKey))) - return "teamEccPrivateKey: buffer expected"; - if (message.teamEccPublicKey != null && message.hasOwnProperty("teamEccPublicKey")) - if (!(message.teamEccPublicKey && typeof message.teamEccPublicKey.length === "number" || $util.isString(message.teamEccPublicKey))) - return "teamEccPublicKey: buffer expected"; + if (message.teamEccPrivateKey != null && message.hasOwnProperty('teamEccPrivateKey')) + if ( + !( + (message.teamEccPrivateKey && typeof message.teamEccPrivateKey.length === 'number') || + $util.isString(message.teamEccPrivateKey) + ) + ) + return 'teamEccPrivateKey: buffer expected'; + if (message.teamEccPublicKey != null && message.hasOwnProperty('teamEccPublicKey')) + if ( + !( + (message.teamEccPublicKey && typeof message.teamEccPublicKey.length === 'number') || + $util.isString(message.teamEccPublicKey) + ) + ) + return 'teamEccPublicKey: buffer expected'; return null; }; @@ -204839,98 +213269,114 @@ export const Vault = $root.Vault = (() => { * @returns {Vault.Team} Team */ Team.fromObject = function fromObject(object) { - if (object instanceof $root.Vault.Team) - return object; + if (object instanceof $root.Vault.Team) return object; let message = new $root.Vault.Team(); if (object.teamUid != null) - if (typeof object.teamUid === "string") - $util.base64.decode(object.teamUid, message.teamUid = $util.newBuffer($util.base64.length(object.teamUid)), 0); - else if (object.teamUid.length >= 0) - message.teamUid = object.teamUid; - if (object.name != null) - message.name = String(object.name); + if (typeof object.teamUid === 'string') + $util.base64.decode( + object.teamUid, + (message.teamUid = $util.newBuffer($util.base64.length(object.teamUid))), + 0 + ); + else if (object.teamUid.length >= 0) message.teamUid = object.teamUid; + if (object.name != null) message.name = String(object.name); if (object.teamKey != null) - if (typeof object.teamKey === "string") - $util.base64.decode(object.teamKey, message.teamKey = $util.newBuffer($util.base64.length(object.teamKey)), 0); - else if (object.teamKey.length >= 0) - message.teamKey = object.teamKey; + if (typeof object.teamKey === 'string') + $util.base64.decode( + object.teamKey, + (message.teamKey = $util.newBuffer($util.base64.length(object.teamKey))), + 0 + ); + else if (object.teamKey.length >= 0) message.teamKey = object.teamKey; switch (object.teamKeyType) { - default: - if (typeof object.teamKeyType === "number") { - message.teamKeyType = object.teamKeyType; - break; - } - break; - case "NO_KEY": - case 0: - message.teamKeyType = 0; - break; - case "ENCRYPTED_BY_DATA_KEY": - case 1: - message.teamKeyType = 1; - break; - case "ENCRYPTED_BY_PUBLIC_KEY": - case 2: - message.teamKeyType = 2; - break; - case "ENCRYPTED_BY_DATA_KEY_GCM": - case 3: - message.teamKeyType = 3; - break; - case "ENCRYPTED_BY_PUBLIC_KEY_ECC": - case 4: - message.teamKeyType = 4; - break; - case "ENCRYPTED_BY_ROOT_KEY_CBC": - case 5: - message.teamKeyType = 5; - break; - case "ENCRYPTED_BY_ROOT_KEY_GCM": - case 6: - message.teamKeyType = 6; - break; + default: + if (typeof object.teamKeyType === 'number') { + message.teamKeyType = object.teamKeyType; + break; + } + break; + case 'NO_KEY': + case 0: + message.teamKeyType = 0; + break; + case 'ENCRYPTED_BY_DATA_KEY': + case 1: + message.teamKeyType = 1; + break; + case 'ENCRYPTED_BY_PUBLIC_KEY': + case 2: + message.teamKeyType = 2; + break; + case 'ENCRYPTED_BY_DATA_KEY_GCM': + case 3: + message.teamKeyType = 3; + break; + case 'ENCRYPTED_BY_PUBLIC_KEY_ECC': + case 4: + message.teamKeyType = 4; + break; + case 'ENCRYPTED_BY_ROOT_KEY_CBC': + case 5: + message.teamKeyType = 5; + break; + case 'ENCRYPTED_BY_ROOT_KEY_GCM': + case 6: + message.teamKeyType = 6; + break; } if (object.teamPrivateKey != null) - if (typeof object.teamPrivateKey === "string") - $util.base64.decode(object.teamPrivateKey, message.teamPrivateKey = $util.newBuffer($util.base64.length(object.teamPrivateKey)), 0); - else if (object.teamPrivateKey.length >= 0) - message.teamPrivateKey = object.teamPrivateKey; - if (object.restrictEdit != null) - message.restrictEdit = Boolean(object.restrictEdit); - if (object.restrictShare != null) - message.restrictShare = Boolean(object.restrictShare); - if (object.restrictView != null) - message.restrictView = Boolean(object.restrictView); + if (typeof object.teamPrivateKey === 'string') + $util.base64.decode( + object.teamPrivateKey, + (message.teamPrivateKey = $util.newBuffer($util.base64.length(object.teamPrivateKey))), + 0 + ); + else if (object.teamPrivateKey.length >= 0) message.teamPrivateKey = object.teamPrivateKey; + if (object.restrictEdit != null) message.restrictEdit = Boolean(object.restrictEdit); + if (object.restrictShare != null) message.restrictShare = Boolean(object.restrictShare); + if (object.restrictView != null) message.restrictView = Boolean(object.restrictView); if (object.removedSharedFolders) { if (!Array.isArray(object.removedSharedFolders)) - throw TypeError(".Vault.Team.removedSharedFolders: array expected"); + throw TypeError('.Vault.Team.removedSharedFolders: array expected'); message.removedSharedFolders = []; for (let i = 0; i < object.removedSharedFolders.length; ++i) - if (typeof object.removedSharedFolders[i] === "string") - $util.base64.decode(object.removedSharedFolders[i], message.removedSharedFolders[i] = $util.newBuffer($util.base64.length(object.removedSharedFolders[i])), 0); + if (typeof object.removedSharedFolders[i] === 'string') + $util.base64.decode( + object.removedSharedFolders[i], + (message.removedSharedFolders[i] = $util.newBuffer( + $util.base64.length(object.removedSharedFolders[i]) + )), + 0 + ); else if (object.removedSharedFolders[i].length >= 0) message.removedSharedFolders[i] = object.removedSharedFolders[i]; } if (object.sharedFolderKeys) { if (!Array.isArray(object.sharedFolderKeys)) - throw TypeError(".Vault.Team.sharedFolderKeys: array expected"); + throw TypeError('.Vault.Team.sharedFolderKeys: array expected'); message.sharedFolderKeys = []; for (let i = 0; i < object.sharedFolderKeys.length; ++i) { - if (typeof object.sharedFolderKeys[i] !== "object") - throw TypeError(".Vault.Team.sharedFolderKeys: object expected"); + if (typeof object.sharedFolderKeys[i] !== 'object') + throw TypeError('.Vault.Team.sharedFolderKeys: object expected'); message.sharedFolderKeys[i] = $root.Vault.SharedFolderKey.fromObject(object.sharedFolderKeys[i]); } } if (object.teamEccPrivateKey != null) - if (typeof object.teamEccPrivateKey === "string") - $util.base64.decode(object.teamEccPrivateKey, message.teamEccPrivateKey = $util.newBuffer($util.base64.length(object.teamEccPrivateKey)), 0); - else if (object.teamEccPrivateKey.length >= 0) - message.teamEccPrivateKey = object.teamEccPrivateKey; + if (typeof object.teamEccPrivateKey === 'string') + $util.base64.decode( + object.teamEccPrivateKey, + (message.teamEccPrivateKey = $util.newBuffer($util.base64.length(object.teamEccPrivateKey))), + 0 + ); + else if (object.teamEccPrivateKey.length >= 0) message.teamEccPrivateKey = object.teamEccPrivateKey; if (object.teamEccPublicKey != null) - if (typeof object.teamEccPublicKey === "string") - $util.base64.decode(object.teamEccPublicKey, message.teamEccPublicKey = $util.newBuffer($util.base64.length(object.teamEccPublicKey)), 0); - else if (object.teamEccPublicKey.length >= 0) - message.teamEccPublicKey = object.teamEccPublicKey; + if (typeof object.teamEccPublicKey === 'string') + $util.base64.decode( + object.teamEccPublicKey, + (message.teamEccPublicKey = $util.newBuffer($util.base64.length(object.teamEccPublicKey))), + 0 + ); + else if (object.teamEccPublicKey.length >= 0) message.teamEccPublicKey = object.teamEccPublicKey; return message; }; @@ -204944,85 +213390,115 @@ export const Vault = $root.Vault = (() => { * @returns {Object.} Plain object */ Team.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.arrays || options.defaults) { object.removedSharedFolders = []; object.sharedFolderKeys = []; } if (options.defaults) { - if (options.bytes === String) - object.teamUid = ""; + if (options.bytes === String) object.teamUid = ''; else { object.teamUid = []; - if (options.bytes !== Array) - object.teamUid = $util.newBuffer(object.teamUid); + if (options.bytes !== Array) object.teamUid = $util.newBuffer(object.teamUid); } - object.name = ""; - if (options.bytes === String) - object.teamKey = ""; + object.name = ''; + if (options.bytes === String) object.teamKey = ''; else { object.teamKey = []; - if (options.bytes !== Array) - object.teamKey = $util.newBuffer(object.teamKey); + if (options.bytes !== Array) object.teamKey = $util.newBuffer(object.teamKey); } - object.teamKeyType = options.enums === String ? "NO_KEY" : 0; - if (options.bytes === String) - object.teamPrivateKey = ""; + object.teamKeyType = options.enums === String ? 'NO_KEY' : 0; + if (options.bytes === String) object.teamPrivateKey = ''; else { object.teamPrivateKey = []; - if (options.bytes !== Array) - object.teamPrivateKey = $util.newBuffer(object.teamPrivateKey); + if (options.bytes !== Array) object.teamPrivateKey = $util.newBuffer(object.teamPrivateKey); } object.restrictEdit = false; object.restrictShare = false; object.restrictView = false; - if (options.bytes === String) - object.teamEccPrivateKey = ""; + if (options.bytes === String) object.teamEccPrivateKey = ''; else { object.teamEccPrivateKey = []; - if (options.bytes !== Array) - object.teamEccPrivateKey = $util.newBuffer(object.teamEccPrivateKey); + if (options.bytes !== Array) object.teamEccPrivateKey = $util.newBuffer(object.teamEccPrivateKey); } - if (options.bytes === String) - object.teamEccPublicKey = ""; + if (options.bytes === String) object.teamEccPublicKey = ''; else { object.teamEccPublicKey = []; - if (options.bytes !== Array) - object.teamEccPublicKey = $util.newBuffer(object.teamEccPublicKey); - } - } - if (message.teamUid != null && message.hasOwnProperty("teamUid")) - object.teamUid = options.bytes === String ? $util.base64.encode(message.teamUid, 0, message.teamUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.teamUid) : message.teamUid; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.teamKey != null && message.hasOwnProperty("teamKey")) - object.teamKey = options.bytes === String ? $util.base64.encode(message.teamKey, 0, message.teamKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.teamKey) : message.teamKey; - if (message.teamKeyType != null && message.hasOwnProperty("teamKeyType")) - object.teamKeyType = options.enums === String ? $root.Records.RecordKeyType[message.teamKeyType] === undefined ? message.teamKeyType : $root.Records.RecordKeyType[message.teamKeyType] : message.teamKeyType; - if (message.teamPrivateKey != null && message.hasOwnProperty("teamPrivateKey")) - object.teamPrivateKey = options.bytes === String ? $util.base64.encode(message.teamPrivateKey, 0, message.teamPrivateKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.teamPrivateKey) : message.teamPrivateKey; - if (message.restrictEdit != null && message.hasOwnProperty("restrictEdit")) + if (options.bytes !== Array) object.teamEccPublicKey = $util.newBuffer(object.teamEccPublicKey); + } + } + if (message.teamUid != null && message.hasOwnProperty('teamUid')) + object.teamUid = + options.bytes === String + ? $util.base64.encode(message.teamUid, 0, message.teamUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.teamUid) + : message.teamUid; + if (message.name != null && message.hasOwnProperty('name')) object.name = message.name; + if (message.teamKey != null && message.hasOwnProperty('teamKey')) + object.teamKey = + options.bytes === String + ? $util.base64.encode(message.teamKey, 0, message.teamKey.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.teamKey) + : message.teamKey; + if (message.teamKeyType != null && message.hasOwnProperty('teamKeyType')) + object.teamKeyType = + options.enums === String + ? $root.Records.RecordKeyType[message.teamKeyType] === undefined + ? message.teamKeyType + : $root.Records.RecordKeyType[message.teamKeyType] + : message.teamKeyType; + if (message.teamPrivateKey != null && message.hasOwnProperty('teamPrivateKey')) + object.teamPrivateKey = + options.bytes === String + ? $util.base64.encode(message.teamPrivateKey, 0, message.teamPrivateKey.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.teamPrivateKey) + : message.teamPrivateKey; + if (message.restrictEdit != null && message.hasOwnProperty('restrictEdit')) object.restrictEdit = message.restrictEdit; - if (message.restrictShare != null && message.hasOwnProperty("restrictShare")) + if (message.restrictShare != null && message.hasOwnProperty('restrictShare')) object.restrictShare = message.restrictShare; - if (message.restrictView != null && message.hasOwnProperty("restrictView")) + if (message.restrictView != null && message.hasOwnProperty('restrictView')) object.restrictView = message.restrictView; if (message.removedSharedFolders && message.removedSharedFolders.length) { object.removedSharedFolders = []; for (let j = 0; j < message.removedSharedFolders.length; ++j) - object.removedSharedFolders[j] = options.bytes === String ? $util.base64.encode(message.removedSharedFolders[j], 0, message.removedSharedFolders[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.removedSharedFolders[j]) : message.removedSharedFolders[j]; + object.removedSharedFolders[j] = + options.bytes === String + ? $util.base64.encode( + message.removedSharedFolders[j], + 0, + message.removedSharedFolders[j].length + ) + : options.bytes === Array + ? Array.prototype.slice.call(message.removedSharedFolders[j]) + : message.removedSharedFolders[j]; } if (message.sharedFolderKeys && message.sharedFolderKeys.length) { object.sharedFolderKeys = []; for (let j = 0; j < message.sharedFolderKeys.length; ++j) - object.sharedFolderKeys[j] = $root.Vault.SharedFolderKey.toObject(message.sharedFolderKeys[j], options); + object.sharedFolderKeys[j] = $root.Vault.SharedFolderKey.toObject( + message.sharedFolderKeys[j], + options + ); } - if (message.teamEccPrivateKey != null && message.hasOwnProperty("teamEccPrivateKey")) - object.teamEccPrivateKey = options.bytes === String ? $util.base64.encode(message.teamEccPrivateKey, 0, message.teamEccPrivateKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.teamEccPrivateKey) : message.teamEccPrivateKey; - if (message.teamEccPublicKey != null && message.hasOwnProperty("teamEccPublicKey")) - object.teamEccPublicKey = options.bytes === String ? $util.base64.encode(message.teamEccPublicKey, 0, message.teamEccPublicKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.teamEccPublicKey) : message.teamEccPublicKey; + if (message.teamEccPrivateKey != null && message.hasOwnProperty('teamEccPrivateKey')) + object.teamEccPrivateKey = + options.bytes === String + ? $util.base64.encode(message.teamEccPrivateKey, 0, message.teamEccPrivateKey.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.teamEccPrivateKey) + : message.teamEccPrivateKey; + if (message.teamEccPublicKey != null && message.hasOwnProperty('teamEccPublicKey')) + object.teamEccPublicKey = + options.bytes === String + ? $util.base64.encode(message.teamEccPublicKey, 0, message.teamEccPublicKey.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.teamEccPublicKey) + : message.teamEccPublicKey; return object; }; @@ -205047,16 +213523,15 @@ export const Vault = $root.Vault = (() => { */ Team.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Vault.Team"; + return typeUrlPrefix + '/Vault.Team'; }; return Team; })(); - Vault.Record = (function() { - + Vault.Record = (function () { /** * Properties of a Record. * @memberof Vault @@ -205084,8 +213559,7 @@ export const Vault = $root.Vault = (() => { function Record(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -205102,7 +213576,7 @@ export const Vault = $root.Vault = (() => { * @memberof Vault.Record * @instance */ - Record.prototype.revision = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + Record.prototype.revision = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * Record version. @@ -205126,7 +213600,7 @@ export const Vault = $root.Vault = (() => { * @memberof Vault.Record * @instance */ - Record.prototype.clientModifiedTime = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + Record.prototype.clientModifiedTime = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * Record data. @@ -205150,7 +213624,7 @@ export const Vault = $root.Vault = (() => { * @memberof Vault.Record * @instance */ - Record.prototype.udata = ""; + Record.prototype.udata = ''; /** * Record fileSize. @@ -205158,7 +213632,7 @@ export const Vault = $root.Vault = (() => { * @memberof Vault.Record * @instance */ - Record.prototype.fileSize = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + Record.prototype.fileSize = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * Record thumbnailSize. @@ -205166,7 +213640,7 @@ export const Vault = $root.Vault = (() => { * @memberof Vault.Record * @instance */ - Record.prototype.thumbnailSize = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + Record.prototype.thumbnailSize = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * Creates a new Record instance using the specified properties. @@ -205190,28 +213664,27 @@ export const Vault = $root.Vault = (() => { * @returns {$protobuf.Writer} Writer */ Record.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); - if (message.revision != null && Object.hasOwnProperty.call(message, "revision")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.revision); - if (message.version != null && Object.hasOwnProperty.call(message, "version")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.version); - if (message.shared != null && Object.hasOwnProperty.call(message, "shared")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.shared); - if (message.clientModifiedTime != null && Object.hasOwnProperty.call(message, "clientModifiedTime")) - writer.uint32(/* id 5, wireType 0 =*/40).int64(message.clientModifiedTime); - if (message.data != null && Object.hasOwnProperty.call(message, "data")) - writer.uint32(/* id 6, wireType 2 =*/50).bytes(message.data); - if (message.extra != null && Object.hasOwnProperty.call(message, "extra")) - writer.uint32(/* id 7, wireType 2 =*/58).bytes(message.extra); - if (message.udata != null && Object.hasOwnProperty.call(message, "udata")) - writer.uint32(/* id 8, wireType 2 =*/66).string(message.udata); - if (message.fileSize != null && Object.hasOwnProperty.call(message, "fileSize")) - writer.uint32(/* id 9, wireType 0 =*/72).int64(message.fileSize); - if (message.thumbnailSize != null && Object.hasOwnProperty.call(message, "thumbnailSize")) - writer.uint32(/* id 10, wireType 0 =*/80).int64(message.thumbnailSize); + if (!writer) writer = $Writer.create(); + if (message.recordUid != null && Object.hasOwnProperty.call(message, 'recordUid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.recordUid); + if (message.revision != null && Object.hasOwnProperty.call(message, 'revision')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int64(message.revision); + if (message.version != null && Object.hasOwnProperty.call(message, 'version')) + writer.uint32(/* id 3, wireType 0 =*/ 24).int32(message.version); + if (message.shared != null && Object.hasOwnProperty.call(message, 'shared')) + writer.uint32(/* id 4, wireType 0 =*/ 32).bool(message.shared); + if (message.clientModifiedTime != null && Object.hasOwnProperty.call(message, 'clientModifiedTime')) + writer.uint32(/* id 5, wireType 0 =*/ 40).int64(message.clientModifiedTime); + if (message.data != null && Object.hasOwnProperty.call(message, 'data')) + writer.uint32(/* id 6, wireType 2 =*/ 50).bytes(message.data); + if (message.extra != null && Object.hasOwnProperty.call(message, 'extra')) + writer.uint32(/* id 7, wireType 2 =*/ 58).bytes(message.extra); + if (message.udata != null && Object.hasOwnProperty.call(message, 'udata')) + writer.uint32(/* id 8, wireType 2 =*/ 66).string(message.udata); + if (message.fileSize != null && Object.hasOwnProperty.call(message, 'fileSize')) + writer.uint32(/* id 9, wireType 0 =*/ 72).int64(message.fileSize); + if (message.thumbnailSize != null && Object.hasOwnProperty.call(message, 'thumbnailSize')) + writer.uint32(/* id 10, wireType 0 =*/ 80).int64(message.thumbnailSize); return writer; }; @@ -205240,55 +213713,55 @@ export const Vault = $root.Vault = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ Record.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.Record(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Vault.Record(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.recordUid = reader.bytes(); break; } - case 2: { + case 2: { message.revision = reader.int64(); break; } - case 3: { + case 3: { message.version = reader.int32(); break; } - case 4: { + case 4: { message.shared = reader.bool(); break; } - case 5: { + case 5: { message.clientModifiedTime = reader.int64(); break; } - case 6: { + case 6: { message.data = reader.bytes(); break; } - case 7: { + case 7: { message.extra = reader.bytes(); break; } - case 8: { + case 8: { message.udata = reader.string(); break; } - case 9: { + case 9: { message.fileSize = reader.int64(); break; } - case 10: { + case 10: { message.thumbnailSize = reader.int64(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -205305,8 +213778,7 @@ export const Vault = $root.Vault = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ Record.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -205319,38 +213791,67 @@ export const Vault = $root.Vault = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ Record.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) - return "recordUid: buffer expected"; - if (message.revision != null && message.hasOwnProperty("revision")) - if (!$util.isInteger(message.revision) && !(message.revision && $util.isInteger(message.revision.low) && $util.isInteger(message.revision.high))) - return "revision: integer|Long expected"; - if (message.version != null && message.hasOwnProperty("version")) - if (!$util.isInteger(message.version)) - return "version: integer expected"; - if (message.shared != null && message.hasOwnProperty("shared")) - if (typeof message.shared !== "boolean") - return "shared: boolean expected"; - if (message.clientModifiedTime != null && message.hasOwnProperty("clientModifiedTime")) - if (!$util.isInteger(message.clientModifiedTime) && !(message.clientModifiedTime && $util.isInteger(message.clientModifiedTime.low) && $util.isInteger(message.clientModifiedTime.high))) - return "clientModifiedTime: integer|Long expected"; - if (message.data != null && message.hasOwnProperty("data")) - if (!(message.data && typeof message.data.length === "number" || $util.isString(message.data))) - return "data: buffer expected"; - if (message.extra != null && message.hasOwnProperty("extra")) - if (!(message.extra && typeof message.extra.length === "number" || $util.isString(message.extra))) - return "extra: buffer expected"; - if (message.udata != null && message.hasOwnProperty("udata")) - if (!$util.isString(message.udata)) - return "udata: string expected"; - if (message.fileSize != null && message.hasOwnProperty("fileSize")) - if (!$util.isInteger(message.fileSize) && !(message.fileSize && $util.isInteger(message.fileSize.low) && $util.isInteger(message.fileSize.high))) - return "fileSize: integer|Long expected"; - if (message.thumbnailSize != null && message.hasOwnProperty("thumbnailSize")) - if (!$util.isInteger(message.thumbnailSize) && !(message.thumbnailSize && $util.isInteger(message.thumbnailSize.low) && $util.isInteger(message.thumbnailSize.high))) - return "thumbnailSize: integer|Long expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.recordUid != null && message.hasOwnProperty('recordUid')) + if ( + !( + (message.recordUid && typeof message.recordUid.length === 'number') || + $util.isString(message.recordUid) + ) + ) + return 'recordUid: buffer expected'; + if (message.revision != null && message.hasOwnProperty('revision')) + if ( + !$util.isInteger(message.revision) && + !( + message.revision && + $util.isInteger(message.revision.low) && + $util.isInteger(message.revision.high) + ) + ) + return 'revision: integer|Long expected'; + if (message.version != null && message.hasOwnProperty('version')) + if (!$util.isInteger(message.version)) return 'version: integer expected'; + if (message.shared != null && message.hasOwnProperty('shared')) + if (typeof message.shared !== 'boolean') return 'shared: boolean expected'; + if (message.clientModifiedTime != null && message.hasOwnProperty('clientModifiedTime')) + if ( + !$util.isInteger(message.clientModifiedTime) && + !( + message.clientModifiedTime && + $util.isInteger(message.clientModifiedTime.low) && + $util.isInteger(message.clientModifiedTime.high) + ) + ) + return 'clientModifiedTime: integer|Long expected'; + if (message.data != null && message.hasOwnProperty('data')) + if (!((message.data && typeof message.data.length === 'number') || $util.isString(message.data))) + return 'data: buffer expected'; + if (message.extra != null && message.hasOwnProperty('extra')) + if (!((message.extra && typeof message.extra.length === 'number') || $util.isString(message.extra))) + return 'extra: buffer expected'; + if (message.udata != null && message.hasOwnProperty('udata')) + if (!$util.isString(message.udata)) return 'udata: string expected'; + if (message.fileSize != null && message.hasOwnProperty('fileSize')) + if ( + !$util.isInteger(message.fileSize) && + !( + message.fileSize && + $util.isInteger(message.fileSize.low) && + $util.isInteger(message.fileSize.high) + ) + ) + return 'fileSize: integer|Long expected'; + if (message.thumbnailSize != null && message.hasOwnProperty('thumbnailSize')) + if ( + !$util.isInteger(message.thumbnailSize) && + !( + message.thumbnailSize && + $util.isInteger(message.thumbnailSize.low) && + $util.isInteger(message.thumbnailSize.high) + ) + ) + return 'thumbnailSize: integer|Long expected'; return null; }; @@ -205363,66 +213864,75 @@ export const Vault = $root.Vault = (() => { * @returns {Vault.Record} Record */ Record.fromObject = function fromObject(object) { - if (object instanceof $root.Vault.Record) - return object; + if (object instanceof $root.Vault.Record) return object; let message = new $root.Vault.Record(); 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 (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.revision != null) - if ($util.Long) - (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; - else if (typeof object.revision === "string") - message.revision = parseInt(object.revision, 10); - else if (typeof object.revision === "number") - message.revision = object.revision; - else if (typeof object.revision === "object") - message.revision = new $util.LongBits(object.revision.low >>> 0, object.revision.high >>> 0).toNumber(); - if (object.version != null) - message.version = object.version | 0; - if (object.shared != null) - message.shared = Boolean(object.shared); + if ($util.Long) (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; + else if (typeof object.revision === 'string') message.revision = parseInt(object.revision, 10); + else if (typeof object.revision === 'number') message.revision = object.revision; + else if (typeof object.revision === 'object') + message.revision = new $util.LongBits( + object.revision.low >>> 0, + object.revision.high >>> 0 + ).toNumber(); + if (object.version != null) message.version = object.version | 0; + if (object.shared != null) message.shared = Boolean(object.shared); if (object.clientModifiedTime != null) if ($util.Long) (message.clientModifiedTime = $util.Long.fromValue(object.clientModifiedTime)).unsigned = false; - else if (typeof object.clientModifiedTime === "string") + else if (typeof object.clientModifiedTime === 'string') message.clientModifiedTime = parseInt(object.clientModifiedTime, 10); - else if (typeof object.clientModifiedTime === "number") + else if (typeof object.clientModifiedTime === 'number') message.clientModifiedTime = object.clientModifiedTime; - else if (typeof object.clientModifiedTime === "object") - message.clientModifiedTime = new $util.LongBits(object.clientModifiedTime.low >>> 0, object.clientModifiedTime.high >>> 0).toNumber(); + else if (typeof object.clientModifiedTime === 'object') + message.clientModifiedTime = new $util.LongBits( + object.clientModifiedTime.low >>> 0, + object.clientModifiedTime.high >>> 0 + ).toNumber(); if (object.data != null) - if (typeof object.data === "string") - $util.base64.decode(object.data, message.data = $util.newBuffer($util.base64.length(object.data)), 0); - else if (object.data.length >= 0) - message.data = object.data; + if (typeof object.data === 'string') + $util.base64.decode( + object.data, + (message.data = $util.newBuffer($util.base64.length(object.data))), + 0 + ); + else if (object.data.length >= 0) message.data = object.data; if (object.extra != null) - if (typeof object.extra === "string") - $util.base64.decode(object.extra, message.extra = $util.newBuffer($util.base64.length(object.extra)), 0); - else if (object.extra.length >= 0) - message.extra = object.extra; - if (object.udata != null) - message.udata = String(object.udata); + if (typeof object.extra === 'string') + $util.base64.decode( + object.extra, + (message.extra = $util.newBuffer($util.base64.length(object.extra))), + 0 + ); + else if (object.extra.length >= 0) message.extra = object.extra; + if (object.udata != null) message.udata = String(object.udata); if (object.fileSize != null) - if ($util.Long) - (message.fileSize = $util.Long.fromValue(object.fileSize)).unsigned = false; - else if (typeof object.fileSize === "string") - message.fileSize = parseInt(object.fileSize, 10); - else if (typeof object.fileSize === "number") - message.fileSize = object.fileSize; - else if (typeof object.fileSize === "object") - message.fileSize = new $util.LongBits(object.fileSize.low >>> 0, object.fileSize.high >>> 0).toNumber(); + if ($util.Long) (message.fileSize = $util.Long.fromValue(object.fileSize)).unsigned = false; + else if (typeof object.fileSize === 'string') message.fileSize = parseInt(object.fileSize, 10); + else if (typeof object.fileSize === 'number') message.fileSize = object.fileSize; + else if (typeof object.fileSize === 'object') + message.fileSize = new $util.LongBits( + object.fileSize.low >>> 0, + object.fileSize.high >>> 0 + ).toNumber(); if (object.thumbnailSize != null) - if ($util.Long) - (message.thumbnailSize = $util.Long.fromValue(object.thumbnailSize)).unsigned = false; - else if (typeof object.thumbnailSize === "string") + if ($util.Long) (message.thumbnailSize = $util.Long.fromValue(object.thumbnailSize)).unsigned = false; + else if (typeof object.thumbnailSize === 'string') message.thumbnailSize = parseInt(object.thumbnailSize, 10); - else if (typeof object.thumbnailSize === "number") - message.thumbnailSize = object.thumbnailSize; - else if (typeof object.thumbnailSize === "object") - message.thumbnailSize = new $util.LongBits(object.thumbnailSize.low >>> 0, object.thumbnailSize.high >>> 0).toNumber(); + else if (typeof object.thumbnailSize === 'number') message.thumbnailSize = object.thumbnailSize; + else if (typeof object.thumbnailSize === 'object') + message.thumbnailSize = new $util.LongBits( + object.thumbnailSize.low >>> 0, + object.thumbnailSize.high >>> 0 + ).toNumber(); return message; }; @@ -205436,87 +213946,120 @@ export const Vault = $root.Vault = (() => { * @returns {Object.} Plain object */ Record.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.recordUid = ""; + if (options.bytes === String) object.recordUid = ''; else { object.recordUid = []; - if (options.bytes !== Array) - object.recordUid = $util.newBuffer(object.recordUid); + if (options.bytes !== Array) object.recordUid = $util.newBuffer(object.recordUid); } if ($util.Long) { let long = new $util.Long(0, 0, false); - object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.revision = options.longs === String ? "0" : 0; + object.revision = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.revision = options.longs === String ? '0' : 0; object.version = 0; object.shared = false; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.clientModifiedTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.clientModifiedTime = options.longs === String ? "0" : 0; - if (options.bytes === String) - object.data = ""; + object.clientModifiedTime = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.clientModifiedTime = options.longs === String ? '0' : 0; + if (options.bytes === String) object.data = ''; else { object.data = []; - if (options.bytes !== Array) - object.data = $util.newBuffer(object.data); + if (options.bytes !== Array) object.data = $util.newBuffer(object.data); } - if (options.bytes === String) - object.extra = ""; + if (options.bytes === String) object.extra = ''; else { object.extra = []; - if (options.bytes !== Array) - object.extra = $util.newBuffer(object.extra); + if (options.bytes !== Array) object.extra = $util.newBuffer(object.extra); } - object.udata = ""; + object.udata = ''; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.fileSize = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.fileSize = options.longs === String ? "0" : 0; + object.fileSize = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.fileSize = options.longs === String ? '0' : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.thumbnailSize = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.thumbnailSize = options.longs === String ? "0" : 0; - } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; - if (message.revision != null && message.hasOwnProperty("revision")) - if (typeof message.revision === "number") + object.thumbnailSize = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.thumbnailSize = options.longs === String ? '0' : 0; + } + if (message.recordUid != null && message.hasOwnProperty('recordUid')) + object.recordUid = + options.bytes === String + ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.recordUid) + : message.recordUid; + if (message.revision != null && message.hasOwnProperty('revision')) + if (typeof message.revision === 'number') object.revision = options.longs === String ? String(message.revision) : message.revision; else - object.revision = options.longs === String ? $util.Long.prototype.toString.call(message.revision) : options.longs === Number ? new $util.LongBits(message.revision.low >>> 0, message.revision.high >>> 0).toNumber() : message.revision; - if (message.version != null && message.hasOwnProperty("version")) - object.version = message.version; - if (message.shared != null && message.hasOwnProperty("shared")) - object.shared = message.shared; - if (message.clientModifiedTime != null && message.hasOwnProperty("clientModifiedTime")) - if (typeof message.clientModifiedTime === "number") - object.clientModifiedTime = options.longs === String ? String(message.clientModifiedTime) : message.clientModifiedTime; + object.revision = + options.longs === String + ? $util.Long.prototype.toString.call(message.revision) + : options.longs === Number + ? new $util.LongBits(message.revision.low >>> 0, message.revision.high >>> 0).toNumber() + : message.revision; + if (message.version != null && message.hasOwnProperty('version')) object.version = message.version; + if (message.shared != null && message.hasOwnProperty('shared')) object.shared = message.shared; + if (message.clientModifiedTime != null && message.hasOwnProperty('clientModifiedTime')) + if (typeof message.clientModifiedTime === 'number') + object.clientModifiedTime = + options.longs === String ? String(message.clientModifiedTime) : message.clientModifiedTime; else - object.clientModifiedTime = options.longs === String ? $util.Long.prototype.toString.call(message.clientModifiedTime) : options.longs === Number ? new $util.LongBits(message.clientModifiedTime.low >>> 0, message.clientModifiedTime.high >>> 0).toNumber() : message.clientModifiedTime; - if (message.data != null && message.hasOwnProperty("data")) - object.data = options.bytes === String ? $util.base64.encode(message.data, 0, message.data.length) : options.bytes === Array ? Array.prototype.slice.call(message.data) : message.data; - if (message.extra != null && message.hasOwnProperty("extra")) - object.extra = options.bytes === String ? $util.base64.encode(message.extra, 0, message.extra.length) : options.bytes === Array ? Array.prototype.slice.call(message.extra) : message.extra; - if (message.udata != null && message.hasOwnProperty("udata")) - object.udata = message.udata; - if (message.fileSize != null && message.hasOwnProperty("fileSize")) - if (typeof message.fileSize === "number") + object.clientModifiedTime = + options.longs === String + ? $util.Long.prototype.toString.call(message.clientModifiedTime) + : options.longs === Number + ? new $util.LongBits( + message.clientModifiedTime.low >>> 0, + message.clientModifiedTime.high >>> 0 + ).toNumber() + : message.clientModifiedTime; + if (message.data != null && message.hasOwnProperty('data')) + object.data = + options.bytes === String + ? $util.base64.encode(message.data, 0, message.data.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.data) + : message.data; + if (message.extra != null && message.hasOwnProperty('extra')) + object.extra = + options.bytes === String + ? $util.base64.encode(message.extra, 0, message.extra.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.extra) + : message.extra; + if (message.udata != null && message.hasOwnProperty('udata')) object.udata = message.udata; + if (message.fileSize != null && message.hasOwnProperty('fileSize')) + if (typeof message.fileSize === 'number') object.fileSize = options.longs === String ? String(message.fileSize) : message.fileSize; else - object.fileSize = options.longs === String ? $util.Long.prototype.toString.call(message.fileSize) : options.longs === Number ? new $util.LongBits(message.fileSize.low >>> 0, message.fileSize.high >>> 0).toNumber() : message.fileSize; - if (message.thumbnailSize != null && message.hasOwnProperty("thumbnailSize")) - if (typeof message.thumbnailSize === "number") - object.thumbnailSize = options.longs === String ? String(message.thumbnailSize) : message.thumbnailSize; + object.fileSize = + options.longs === String + ? $util.Long.prototype.toString.call(message.fileSize) + : options.longs === Number + ? new $util.LongBits(message.fileSize.low >>> 0, message.fileSize.high >>> 0).toNumber() + : message.fileSize; + if (message.thumbnailSize != null && message.hasOwnProperty('thumbnailSize')) + if (typeof message.thumbnailSize === 'number') + object.thumbnailSize = + options.longs === String ? String(message.thumbnailSize) : message.thumbnailSize; else - object.thumbnailSize = options.longs === String ? $util.Long.prototype.toString.call(message.thumbnailSize) : options.longs === Number ? new $util.LongBits(message.thumbnailSize.low >>> 0, message.thumbnailSize.high >>> 0).toNumber() : message.thumbnailSize; + object.thumbnailSize = + options.longs === String + ? $util.Long.prototype.toString.call(message.thumbnailSize) + : options.longs === Number + ? new $util.LongBits( + message.thumbnailSize.low >>> 0, + message.thumbnailSize.high >>> 0 + ).toNumber() + : message.thumbnailSize; return object; }; @@ -205541,16 +214084,15 @@ export const Vault = $root.Vault = (() => { */ Record.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Vault.Record"; + return typeUrlPrefix + '/Vault.Record'; }; return Record; })(); - Vault.RecordLink = (function() { - + Vault.RecordLink = (function () { /** * Properties of a RecordLink. * @memberof Vault @@ -205572,8 +214114,7 @@ export const Vault = $root.Vault = (() => { function RecordLink(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -205606,7 +214147,7 @@ export const Vault = $root.Vault = (() => { * @memberof Vault.RecordLink * @instance */ - RecordLink.prototype.revision = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + RecordLink.prototype.revision = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * Creates a new RecordLink instance using the specified properties. @@ -205630,16 +214171,15 @@ export const Vault = $root.Vault = (() => { * @returns {$protobuf.Writer} Writer */ RecordLink.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.parentRecordUid != null && Object.hasOwnProperty.call(message, "parentRecordUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.parentRecordUid); - if (message.childRecordUid != null && Object.hasOwnProperty.call(message, "childRecordUid")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.childRecordUid); - if (message.recordKey != null && Object.hasOwnProperty.call(message, "recordKey")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.recordKey); - if (message.revision != null && Object.hasOwnProperty.call(message, "revision")) - writer.uint32(/* id 4, wireType 0 =*/32).int64(message.revision); + if (!writer) writer = $Writer.create(); + if (message.parentRecordUid != null && Object.hasOwnProperty.call(message, 'parentRecordUid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.parentRecordUid); + if (message.childRecordUid != null && Object.hasOwnProperty.call(message, 'childRecordUid')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.childRecordUid); + if (message.recordKey != null && Object.hasOwnProperty.call(message, 'recordKey')) + writer.uint32(/* id 3, wireType 2 =*/ 26).bytes(message.recordKey); + if (message.revision != null && Object.hasOwnProperty.call(message, 'revision')) + writer.uint32(/* id 4, wireType 0 =*/ 32).int64(message.revision); return writer; }; @@ -205668,31 +214208,31 @@ export const Vault = $root.Vault = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RecordLink.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.RecordLink(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Vault.RecordLink(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.parentRecordUid = reader.bytes(); break; } - case 2: { + case 2: { message.childRecordUid = reader.bytes(); break; } - case 3: { + case 3: { message.recordKey = reader.bytes(); break; } - case 4: { + case 4: { message.revision = reader.int64(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -205709,8 +214249,7 @@ export const Vault = $root.Vault = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RecordLink.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -205723,20 +214262,41 @@ export const Vault = $root.Vault = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ RecordLink.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.parentRecordUid != null && message.hasOwnProperty("parentRecordUid")) - if (!(message.parentRecordUid && typeof message.parentRecordUid.length === "number" || $util.isString(message.parentRecordUid))) - return "parentRecordUid: buffer expected"; - if (message.childRecordUid != null && message.hasOwnProperty("childRecordUid")) - if (!(message.childRecordUid && typeof message.childRecordUid.length === "number" || $util.isString(message.childRecordUid))) - return "childRecordUid: buffer expected"; - if (message.recordKey != null && message.hasOwnProperty("recordKey")) - if (!(message.recordKey && typeof message.recordKey.length === "number" || $util.isString(message.recordKey))) - return "recordKey: buffer expected"; - if (message.revision != null && message.hasOwnProperty("revision")) - if (!$util.isInteger(message.revision) && !(message.revision && $util.isInteger(message.revision.low) && $util.isInteger(message.revision.high))) - return "revision: integer|Long expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.parentRecordUid != null && message.hasOwnProperty('parentRecordUid')) + if ( + !( + (message.parentRecordUid && typeof message.parentRecordUid.length === 'number') || + $util.isString(message.parentRecordUid) + ) + ) + return 'parentRecordUid: buffer expected'; + if (message.childRecordUid != null && message.hasOwnProperty('childRecordUid')) + if ( + !( + (message.childRecordUid && typeof message.childRecordUid.length === 'number') || + $util.isString(message.childRecordUid) + ) + ) + return 'childRecordUid: buffer expected'; + if (message.recordKey != null && message.hasOwnProperty('recordKey')) + if ( + !( + (message.recordKey && typeof message.recordKey.length === 'number') || + $util.isString(message.recordKey) + ) + ) + return 'recordKey: buffer expected'; + if (message.revision != null && message.hasOwnProperty('revision')) + if ( + !$util.isInteger(message.revision) && + !( + message.revision && + $util.isInteger(message.revision.low) && + $util.isInteger(message.revision.high) + ) + ) + return 'revision: integer|Long expected'; return null; }; @@ -205749,33 +214309,41 @@ export const Vault = $root.Vault = (() => { * @returns {Vault.RecordLink} RecordLink */ RecordLink.fromObject = function fromObject(object) { - if (object instanceof $root.Vault.RecordLink) - return object; + if (object instanceof $root.Vault.RecordLink) return object; let message = new $root.Vault.RecordLink(); if (object.parentRecordUid != null) - if (typeof object.parentRecordUid === "string") - $util.base64.decode(object.parentRecordUid, message.parentRecordUid = $util.newBuffer($util.base64.length(object.parentRecordUid)), 0); - else if (object.parentRecordUid.length >= 0) - message.parentRecordUid = object.parentRecordUid; + if (typeof object.parentRecordUid === 'string') + $util.base64.decode( + object.parentRecordUid, + (message.parentRecordUid = $util.newBuffer($util.base64.length(object.parentRecordUid))), + 0 + ); + else if (object.parentRecordUid.length >= 0) message.parentRecordUid = object.parentRecordUid; if (object.childRecordUid != null) - if (typeof object.childRecordUid === "string") - $util.base64.decode(object.childRecordUid, message.childRecordUid = $util.newBuffer($util.base64.length(object.childRecordUid)), 0); - else if (object.childRecordUid.length >= 0) - message.childRecordUid = object.childRecordUid; + if (typeof object.childRecordUid === 'string') + $util.base64.decode( + object.childRecordUid, + (message.childRecordUid = $util.newBuffer($util.base64.length(object.childRecordUid))), + 0 + ); + else if (object.childRecordUid.length >= 0) message.childRecordUid = object.childRecordUid; if (object.recordKey != null) - if (typeof object.recordKey === "string") - $util.base64.decode(object.recordKey, message.recordKey = $util.newBuffer($util.base64.length(object.recordKey)), 0); - else if (object.recordKey.length >= 0) - message.recordKey = object.recordKey; + if (typeof object.recordKey === 'string') + $util.base64.decode( + object.recordKey, + (message.recordKey = $util.newBuffer($util.base64.length(object.recordKey))), + 0 + ); + else if (object.recordKey.length >= 0) message.recordKey = object.recordKey; if (object.revision != null) - if ($util.Long) - (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; - else if (typeof object.revision === "string") - message.revision = parseInt(object.revision, 10); - else if (typeof object.revision === "number") - message.revision = object.revision; - else if (typeof object.revision === "object") - message.revision = new $util.LongBits(object.revision.low >>> 0, object.revision.high >>> 0).toNumber(); + if ($util.Long) (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; + else if (typeof object.revision === 'string') message.revision = parseInt(object.revision, 10); + else if (typeof object.revision === 'number') message.revision = object.revision; + else if (typeof object.revision === 'object') + message.revision = new $util.LongBits( + object.revision.low >>> 0, + object.revision.high >>> 0 + ).toNumber(); return message; }; @@ -205789,48 +214357,61 @@ export const Vault = $root.Vault = (() => { * @returns {Object.} Plain object */ RecordLink.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.parentRecordUid = ""; + if (options.bytes === String) object.parentRecordUid = ''; else { object.parentRecordUid = []; - if (options.bytes !== Array) - object.parentRecordUid = $util.newBuffer(object.parentRecordUid); + if (options.bytes !== Array) object.parentRecordUid = $util.newBuffer(object.parentRecordUid); } - if (options.bytes === String) - object.childRecordUid = ""; + if (options.bytes === String) object.childRecordUid = ''; else { object.childRecordUid = []; - if (options.bytes !== Array) - object.childRecordUid = $util.newBuffer(object.childRecordUid); + if (options.bytes !== Array) object.childRecordUid = $util.newBuffer(object.childRecordUid); } - if (options.bytes === String) - object.recordKey = ""; + if (options.bytes === String) object.recordKey = ''; else { object.recordKey = []; - if (options.bytes !== Array) - object.recordKey = $util.newBuffer(object.recordKey); + if (options.bytes !== Array) object.recordKey = $util.newBuffer(object.recordKey); } if ($util.Long) { let long = new $util.Long(0, 0, false); - object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.revision = options.longs === String ? "0" : 0; - } - if (message.parentRecordUid != null && message.hasOwnProperty("parentRecordUid")) - object.parentRecordUid = options.bytes === String ? $util.base64.encode(message.parentRecordUid, 0, message.parentRecordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.parentRecordUid) : message.parentRecordUid; - if (message.childRecordUid != null && message.hasOwnProperty("childRecordUid")) - object.childRecordUid = options.bytes === String ? $util.base64.encode(message.childRecordUid, 0, message.childRecordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.childRecordUid) : message.childRecordUid; - if (message.recordKey != null && message.hasOwnProperty("recordKey")) - object.recordKey = options.bytes === String ? $util.base64.encode(message.recordKey, 0, message.recordKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordKey) : message.recordKey; - if (message.revision != null && message.hasOwnProperty("revision")) - if (typeof message.revision === "number") + object.revision = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.revision = options.longs === String ? '0' : 0; + } + if (message.parentRecordUid != null && message.hasOwnProperty('parentRecordUid')) + object.parentRecordUid = + options.bytes === String + ? $util.base64.encode(message.parentRecordUid, 0, message.parentRecordUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.parentRecordUid) + : message.parentRecordUid; + if (message.childRecordUid != null && message.hasOwnProperty('childRecordUid')) + object.childRecordUid = + options.bytes === String + ? $util.base64.encode(message.childRecordUid, 0, message.childRecordUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.childRecordUid) + : message.childRecordUid; + if (message.recordKey != null && message.hasOwnProperty('recordKey')) + object.recordKey = + options.bytes === String + ? $util.base64.encode(message.recordKey, 0, message.recordKey.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.recordKey) + : message.recordKey; + if (message.revision != null && message.hasOwnProperty('revision')) + if (typeof message.revision === 'number') object.revision = options.longs === String ? String(message.revision) : message.revision; else - object.revision = options.longs === String ? $util.Long.prototype.toString.call(message.revision) : options.longs === Number ? new $util.LongBits(message.revision.low >>> 0, message.revision.high >>> 0).toNumber() : message.revision; + object.revision = + options.longs === String + ? $util.Long.prototype.toString.call(message.revision) + : options.longs === Number + ? new $util.LongBits(message.revision.low >>> 0, message.revision.high >>> 0).toNumber() + : message.revision; return object; }; @@ -205855,16 +214436,15 @@ export const Vault = $root.Vault = (() => { */ RecordLink.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Vault.RecordLink"; + return typeUrlPrefix + '/Vault.RecordLink'; }; return RecordLink; })(); - Vault.UserFolderRecord = (function() { - + Vault.UserFolderRecord = (function () { /** * Properties of a UserFolderRecord. * @memberof Vault @@ -205885,8 +214465,7 @@ export const Vault = $root.Vault = (() => { function UserFolderRecord(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -205911,7 +214490,7 @@ export const Vault = $root.Vault = (() => { * @memberof Vault.UserFolderRecord * @instance */ - UserFolderRecord.prototype.revision = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + UserFolderRecord.prototype.revision = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * Creates a new UserFolderRecord instance using the specified properties. @@ -205935,14 +214514,13 @@ export const Vault = $root.Vault = (() => { * @returns {$protobuf.Writer} Writer */ UserFolderRecord.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.folderUid != null && Object.hasOwnProperty.call(message, "folderUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.folderUid); - if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.recordUid); - if (message.revision != null && Object.hasOwnProperty.call(message, "revision")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.revision); + if (!writer) writer = $Writer.create(); + if (message.folderUid != null && Object.hasOwnProperty.call(message, 'folderUid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.folderUid); + if (message.recordUid != null && Object.hasOwnProperty.call(message, 'recordUid')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.recordUid); + if (message.revision != null && Object.hasOwnProperty.call(message, 'revision')) + writer.uint32(/* id 3, wireType 0 =*/ 24).int64(message.revision); return writer; }; @@ -205971,27 +214549,27 @@ export const Vault = $root.Vault = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ UserFolderRecord.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.UserFolderRecord(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Vault.UserFolderRecord(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.folderUid = reader.bytes(); break; } - case 2: { + case 2: { message.recordUid = reader.bytes(); break; } - case 3: { + case 3: { message.revision = reader.int64(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -206008,8 +214586,7 @@ export const Vault = $root.Vault = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ UserFolderRecord.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -206022,17 +214599,33 @@ export const Vault = $root.Vault = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ UserFolderRecord.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.folderUid != null && message.hasOwnProperty("folderUid")) - if (!(message.folderUid && typeof message.folderUid.length === "number" || $util.isString(message.folderUid))) - return "folderUid: buffer expected"; - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) - return "recordUid: buffer expected"; - if (message.revision != null && message.hasOwnProperty("revision")) - if (!$util.isInteger(message.revision) && !(message.revision && $util.isInteger(message.revision.low) && $util.isInteger(message.revision.high))) - return "revision: integer|Long expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.folderUid != null && message.hasOwnProperty('folderUid')) + if ( + !( + (message.folderUid && typeof message.folderUid.length === 'number') || + $util.isString(message.folderUid) + ) + ) + return 'folderUid: buffer expected'; + if (message.recordUid != null && message.hasOwnProperty('recordUid')) + if ( + !( + (message.recordUid && typeof message.recordUid.length === 'number') || + $util.isString(message.recordUid) + ) + ) + return 'recordUid: buffer expected'; + if (message.revision != null && message.hasOwnProperty('revision')) + if ( + !$util.isInteger(message.revision) && + !( + message.revision && + $util.isInteger(message.revision.low) && + $util.isInteger(message.revision.high) + ) + ) + return 'revision: integer|Long expected'; return null; }; @@ -206045,28 +214638,33 @@ export const Vault = $root.Vault = (() => { * @returns {Vault.UserFolderRecord} UserFolderRecord */ UserFolderRecord.fromObject = function fromObject(object) { - if (object instanceof $root.Vault.UserFolderRecord) - return object; + if (object instanceof $root.Vault.UserFolderRecord) return object; let message = new $root.Vault.UserFolderRecord(); 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 (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.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 (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.revision != null) - if ($util.Long) - (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; - else if (typeof object.revision === "string") - message.revision = parseInt(object.revision, 10); - else if (typeof object.revision === "number") - message.revision = object.revision; - else if (typeof object.revision === "object") - message.revision = new $util.LongBits(object.revision.low >>> 0, object.revision.high >>> 0).toNumber(); + if ($util.Long) (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; + else if (typeof object.revision === 'string') message.revision = parseInt(object.revision, 10); + else if (typeof object.revision === 'number') message.revision = object.revision; + else if (typeof object.revision === 'object') + message.revision = new $util.LongBits( + object.revision.low >>> 0, + object.revision.high >>> 0 + ).toNumber(); return message; }; @@ -206080,39 +214678,49 @@ export const Vault = $root.Vault = (() => { * @returns {Object.} Plain object */ UserFolderRecord.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.folderUid = ""; + if (options.bytes === String) object.folderUid = ''; else { object.folderUid = []; - if (options.bytes !== Array) - object.folderUid = $util.newBuffer(object.folderUid); + if (options.bytes !== Array) object.folderUid = $util.newBuffer(object.folderUid); } - if (options.bytes === String) - object.recordUid = ""; + if (options.bytes === String) object.recordUid = ''; else { object.recordUid = []; - if (options.bytes !== Array) - object.recordUid = $util.newBuffer(object.recordUid); + if (options.bytes !== Array) object.recordUid = $util.newBuffer(object.recordUid); } if ($util.Long) { let long = new $util.Long(0, 0, false); - object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.revision = options.longs === String ? "0" : 0; - } - if (message.folderUid != null && message.hasOwnProperty("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.recordUid != null && message.hasOwnProperty("recordUid")) - object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; - if (message.revision != null && message.hasOwnProperty("revision")) - if (typeof message.revision === "number") + object.revision = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.revision = options.longs === String ? '0' : 0; + } + if (message.folderUid != null && message.hasOwnProperty('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.recordUid != null && message.hasOwnProperty('recordUid')) + object.recordUid = + options.bytes === String + ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.recordUid) + : message.recordUid; + if (message.revision != null && message.hasOwnProperty('revision')) + if (typeof message.revision === 'number') object.revision = options.longs === String ? String(message.revision) : message.revision; else - object.revision = options.longs === String ? $util.Long.prototype.toString.call(message.revision) : options.longs === Number ? new $util.LongBits(message.revision.low >>> 0, message.revision.high >>> 0).toNumber() : message.revision; + object.revision = + options.longs === String + ? $util.Long.prototype.toString.call(message.revision) + : options.longs === Number + ? new $util.LongBits(message.revision.low >>> 0, message.revision.high >>> 0).toNumber() + : message.revision; return object; }; @@ -206137,16 +214745,15 @@ export const Vault = $root.Vault = (() => { */ UserFolderRecord.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Vault.UserFolderRecord"; + return typeUrlPrefix + '/Vault.UserFolderRecord'; }; return UserFolderRecord; })(); - Vault.SharedFolderFolderRecord = (function() { - + Vault.SharedFolderFolderRecord = (function () { /** * Properties of a SharedFolderFolderRecord. * @memberof Vault @@ -206168,8 +214775,7 @@ export const Vault = $root.Vault = (() => { function SharedFolderFolderRecord(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -206202,7 +214808,7 @@ export const Vault = $root.Vault = (() => { * @memberof Vault.SharedFolderFolderRecord * @instance */ - SharedFolderFolderRecord.prototype.revision = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + SharedFolderFolderRecord.prototype.revision = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * Creates a new SharedFolderFolderRecord instance using the specified properties. @@ -206226,16 +214832,15 @@ export const Vault = $root.Vault = (() => { * @returns {$protobuf.Writer} Writer */ SharedFolderFolderRecord.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, "sharedFolderUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.sharedFolderUid); - if (message.folderUid != null && Object.hasOwnProperty.call(message, "folderUid")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.folderUid); - if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.recordUid); - if (message.revision != null && Object.hasOwnProperty.call(message, "revision")) - writer.uint32(/* id 4, wireType 0 =*/32).int64(message.revision); + if (!writer) writer = $Writer.create(); + if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, 'sharedFolderUid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.sharedFolderUid); + if (message.folderUid != null && Object.hasOwnProperty.call(message, 'folderUid')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.folderUid); + if (message.recordUid != null && Object.hasOwnProperty.call(message, 'recordUid')) + writer.uint32(/* id 3, wireType 2 =*/ 26).bytes(message.recordUid); + if (message.revision != null && Object.hasOwnProperty.call(message, 'revision')) + writer.uint32(/* id 4, wireType 0 =*/ 32).int64(message.revision); return writer; }; @@ -206264,31 +214869,31 @@ export const Vault = $root.Vault = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SharedFolderFolderRecord.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.SharedFolderFolderRecord(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Vault.SharedFolderFolderRecord(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.sharedFolderUid = reader.bytes(); break; } - case 2: { + case 2: { message.folderUid = reader.bytes(); break; } - case 3: { + case 3: { message.recordUid = reader.bytes(); break; } - case 4: { + case 4: { message.revision = reader.int64(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -206305,8 +214910,7 @@ export const Vault = $root.Vault = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SharedFolderFolderRecord.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -206319,20 +214923,41 @@ export const Vault = $root.Vault = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ SharedFolderFolderRecord.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) - if (!(message.sharedFolderUid && typeof message.sharedFolderUid.length === "number" || $util.isString(message.sharedFolderUid))) - return "sharedFolderUid: buffer expected"; - if (message.folderUid != null && message.hasOwnProperty("folderUid")) - if (!(message.folderUid && typeof message.folderUid.length === "number" || $util.isString(message.folderUid))) - return "folderUid: buffer expected"; - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) - return "recordUid: buffer expected"; - if (message.revision != null && message.hasOwnProperty("revision")) - if (!$util.isInteger(message.revision) && !(message.revision && $util.isInteger(message.revision.low) && $util.isInteger(message.revision.high))) - return "revision: integer|Long expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.sharedFolderUid != null && message.hasOwnProperty('sharedFolderUid')) + if ( + !( + (message.sharedFolderUid && typeof message.sharedFolderUid.length === 'number') || + $util.isString(message.sharedFolderUid) + ) + ) + return 'sharedFolderUid: buffer expected'; + if (message.folderUid != null && message.hasOwnProperty('folderUid')) + if ( + !( + (message.folderUid && typeof message.folderUid.length === 'number') || + $util.isString(message.folderUid) + ) + ) + return 'folderUid: buffer expected'; + if (message.recordUid != null && message.hasOwnProperty('recordUid')) + if ( + !( + (message.recordUid && typeof message.recordUid.length === 'number') || + $util.isString(message.recordUid) + ) + ) + return 'recordUid: buffer expected'; + if (message.revision != null && message.hasOwnProperty('revision')) + if ( + !$util.isInteger(message.revision) && + !( + message.revision && + $util.isInteger(message.revision.low) && + $util.isInteger(message.revision.high) + ) + ) + return 'revision: integer|Long expected'; return null; }; @@ -206345,33 +214970,41 @@ export const Vault = $root.Vault = (() => { * @returns {Vault.SharedFolderFolderRecord} SharedFolderFolderRecord */ SharedFolderFolderRecord.fromObject = function fromObject(object) { - if (object instanceof $root.Vault.SharedFolderFolderRecord) - return object; + if (object instanceof $root.Vault.SharedFolderFolderRecord) return object; let message = new $root.Vault.SharedFolderFolderRecord(); if (object.sharedFolderUid != null) - if (typeof object.sharedFolderUid === "string") - $util.base64.decode(object.sharedFolderUid, message.sharedFolderUid = $util.newBuffer($util.base64.length(object.sharedFolderUid)), 0); - else if (object.sharedFolderUid.length >= 0) - message.sharedFolderUid = object.sharedFolderUid; + if (typeof object.sharedFolderUid === 'string') + $util.base64.decode( + object.sharedFolderUid, + (message.sharedFolderUid = $util.newBuffer($util.base64.length(object.sharedFolderUid))), + 0 + ); + else if (object.sharedFolderUid.length >= 0) message.sharedFolderUid = object.sharedFolderUid; 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 (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.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 (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.revision != null) - if ($util.Long) - (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; - else if (typeof object.revision === "string") - message.revision = parseInt(object.revision, 10); - else if (typeof object.revision === "number") - message.revision = object.revision; - else if (typeof object.revision === "object") - message.revision = new $util.LongBits(object.revision.low >>> 0, object.revision.high >>> 0).toNumber(); + if ($util.Long) (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; + else if (typeof object.revision === 'string') message.revision = parseInt(object.revision, 10); + else if (typeof object.revision === 'number') message.revision = object.revision; + else if (typeof object.revision === 'object') + message.revision = new $util.LongBits( + object.revision.low >>> 0, + object.revision.high >>> 0 + ).toNumber(); return message; }; @@ -206385,48 +215018,61 @@ export const Vault = $root.Vault = (() => { * @returns {Object.} Plain object */ SharedFolderFolderRecord.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.sharedFolderUid = ""; + if (options.bytes === String) object.sharedFolderUid = ''; else { object.sharedFolderUid = []; - if (options.bytes !== Array) - object.sharedFolderUid = $util.newBuffer(object.sharedFolderUid); + if (options.bytes !== Array) object.sharedFolderUid = $util.newBuffer(object.sharedFolderUid); } - if (options.bytes === String) - object.folderUid = ""; + if (options.bytes === String) object.folderUid = ''; else { object.folderUid = []; - if (options.bytes !== Array) - object.folderUid = $util.newBuffer(object.folderUid); + if (options.bytes !== Array) object.folderUid = $util.newBuffer(object.folderUid); } - if (options.bytes === String) - object.recordUid = ""; + if (options.bytes === String) object.recordUid = ''; else { object.recordUid = []; - if (options.bytes !== Array) - object.recordUid = $util.newBuffer(object.recordUid); + if (options.bytes !== Array) object.recordUid = $util.newBuffer(object.recordUid); } if ($util.Long) { let long = new $util.Long(0, 0, false); - object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.revision = options.longs === String ? "0" : 0; - } - if (message.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) - object.sharedFolderUid = options.bytes === String ? $util.base64.encode(message.sharedFolderUid, 0, message.sharedFolderUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.sharedFolderUid) : message.sharedFolderUid; - if (message.folderUid != null && message.hasOwnProperty("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.recordUid != null && message.hasOwnProperty("recordUid")) - object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; - if (message.revision != null && message.hasOwnProperty("revision")) - if (typeof message.revision === "number") + object.revision = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.revision = options.longs === String ? '0' : 0; + } + if (message.sharedFolderUid != null && message.hasOwnProperty('sharedFolderUid')) + object.sharedFolderUid = + options.bytes === String + ? $util.base64.encode(message.sharedFolderUid, 0, message.sharedFolderUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.sharedFolderUid) + : message.sharedFolderUid; + if (message.folderUid != null && message.hasOwnProperty('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.recordUid != null && message.hasOwnProperty('recordUid')) + object.recordUid = + options.bytes === String + ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.recordUid) + : message.recordUid; + if (message.revision != null && message.hasOwnProperty('revision')) + if (typeof message.revision === 'number') object.revision = options.longs === String ? String(message.revision) : message.revision; else - object.revision = options.longs === String ? $util.Long.prototype.toString.call(message.revision) : options.longs === Number ? new $util.LongBits(message.revision.low >>> 0, message.revision.high >>> 0).toNumber() : message.revision; + object.revision = + options.longs === String + ? $util.Long.prototype.toString.call(message.revision) + : options.longs === Number + ? new $util.LongBits(message.revision.low >>> 0, message.revision.high >>> 0).toNumber() + : message.revision; return object; }; @@ -206451,16 +215097,15 @@ export const Vault = $root.Vault = (() => { */ SharedFolderFolderRecord.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Vault.SharedFolderFolderRecord"; + return typeUrlPrefix + '/Vault.SharedFolderFolderRecord'; }; return SharedFolderFolderRecord; })(); - Vault.NonSharedData = (function() { - + Vault.NonSharedData = (function () { /** * Properties of a NonSharedData. * @memberof Vault @@ -206480,8 +215125,7 @@ export const Vault = $root.Vault = (() => { function NonSharedData(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -206522,12 +215166,11 @@ export const Vault = $root.Vault = (() => { * @returns {$protobuf.Writer} Writer */ NonSharedData.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); - if (message.data != null && Object.hasOwnProperty.call(message, "data")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.data); + if (!writer) writer = $Writer.create(); + if (message.recordUid != null && Object.hasOwnProperty.call(message, 'recordUid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.recordUid); + if (message.data != null && Object.hasOwnProperty.call(message, 'data')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.data); return writer; }; @@ -206556,23 +215199,23 @@ export const Vault = $root.Vault = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ NonSharedData.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.NonSharedData(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Vault.NonSharedData(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.recordUid = reader.bytes(); break; } - case 2: { + case 2: { message.data = reader.bytes(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -206589,8 +215232,7 @@ export const Vault = $root.Vault = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ NonSharedData.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -206603,14 +215245,18 @@ export const Vault = $root.Vault = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ NonSharedData.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) - return "recordUid: buffer expected"; - if (message.data != null && message.hasOwnProperty("data")) - if (!(message.data && typeof message.data.length === "number" || $util.isString(message.data))) - return "data: buffer expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.recordUid != null && message.hasOwnProperty('recordUid')) + if ( + !( + (message.recordUid && typeof message.recordUid.length === 'number') || + $util.isString(message.recordUid) + ) + ) + return 'recordUid: buffer expected'; + if (message.data != null && message.hasOwnProperty('data')) + if (!((message.data && typeof message.data.length === 'number') || $util.isString(message.data))) + return 'data: buffer expected'; return null; }; @@ -206623,19 +215269,24 @@ export const Vault = $root.Vault = (() => { * @returns {Vault.NonSharedData} NonSharedData */ NonSharedData.fromObject = function fromObject(object) { - if (object instanceof $root.Vault.NonSharedData) - return object; + if (object instanceof $root.Vault.NonSharedData) return object; let message = new $root.Vault.NonSharedData(); 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 (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.data != null) - if (typeof object.data === "string") - $util.base64.decode(object.data, message.data = $util.newBuffer($util.base64.length(object.data)), 0); - else if (object.data.length >= 0) - message.data = object.data; + if (typeof object.data === 'string') + $util.base64.decode( + object.data, + (message.data = $util.newBuffer($util.base64.length(object.data))), + 0 + ); + else if (object.data.length >= 0) message.data = object.data; return message; }; @@ -206649,29 +215300,34 @@ export const Vault = $root.Vault = (() => { * @returns {Object.} Plain object */ NonSharedData.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.recordUid = ""; + if (options.bytes === String) object.recordUid = ''; else { object.recordUid = []; - if (options.bytes !== Array) - object.recordUid = $util.newBuffer(object.recordUid); + if (options.bytes !== Array) object.recordUid = $util.newBuffer(object.recordUid); } - if (options.bytes === String) - object.data = ""; + if (options.bytes === String) object.data = ''; else { object.data = []; - if (options.bytes !== Array) - object.data = $util.newBuffer(object.data); + if (options.bytes !== Array) object.data = $util.newBuffer(object.data); } } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; - if (message.data != null && message.hasOwnProperty("data")) - object.data = options.bytes === String ? $util.base64.encode(message.data, 0, message.data.length) : options.bytes === Array ? Array.prototype.slice.call(message.data) : message.data; + if (message.recordUid != null && message.hasOwnProperty('recordUid')) + object.recordUid = + options.bytes === String + ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.recordUid) + : message.recordUid; + if (message.data != null && message.hasOwnProperty('data')) + object.data = + options.bytes === String + ? $util.base64.encode(message.data, 0, message.data.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.data) + : message.data; return object; }; @@ -206696,16 +215352,15 @@ export const Vault = $root.Vault = (() => { */ NonSharedData.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Vault.NonSharedData"; + return typeUrlPrefix + '/Vault.NonSharedData'; }; return NonSharedData; })(); - Vault.RecordMetaData = (function() { - + Vault.RecordMetaData = (function () { /** * Properties of a RecordMetaData. * @memberof Vault @@ -206733,8 +215388,7 @@ export const Vault = $root.Vault = (() => { function RecordMetaData(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -206799,7 +215453,7 @@ export const Vault = $root.Vault = (() => { * @memberof Vault.RecordMetaData * @instance */ - RecordMetaData.prototype.expiration = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + RecordMetaData.prototype.expiration = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * RecordMetaData expirationNotificationType. @@ -206815,7 +215469,7 @@ export const Vault = $root.Vault = (() => { * @memberof Vault.RecordMetaData * @instance */ - RecordMetaData.prototype.ownerUsername = ""; + RecordMetaData.prototype.ownerUsername = ''; /** * Creates a new RecordMetaData instance using the specified properties. @@ -206839,28 +215493,30 @@ export const Vault = $root.Vault = (() => { * @returns {$protobuf.Writer} Writer */ RecordMetaData.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); - if (message.owner != null && Object.hasOwnProperty.call(message, "owner")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.owner); - if (message.recordKey != null && Object.hasOwnProperty.call(message, "recordKey")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.recordKey); - if (message.recordKeyType != null && Object.hasOwnProperty.call(message, "recordKeyType")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.recordKeyType); - if (message.canShare != null && Object.hasOwnProperty.call(message, "canShare")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.canShare); - if (message.canEdit != null && Object.hasOwnProperty.call(message, "canEdit")) - writer.uint32(/* id 6, wireType 0 =*/48).bool(message.canEdit); - if (message.ownerAccountUid != null && Object.hasOwnProperty.call(message, "ownerAccountUid")) - writer.uint32(/* id 7, wireType 2 =*/58).bytes(message.ownerAccountUid); - if (message.expiration != null && Object.hasOwnProperty.call(message, "expiration")) - writer.uint32(/* id 8, wireType 0 =*/64).int64(message.expiration); - if (message.expirationNotificationType != null && Object.hasOwnProperty.call(message, "expirationNotificationType")) - writer.uint32(/* id 9, wireType 0 =*/72).int32(message.expirationNotificationType); - if (message.ownerUsername != null && Object.hasOwnProperty.call(message, "ownerUsername")) - writer.uint32(/* id 10, wireType 2 =*/82).string(message.ownerUsername); + if (!writer) writer = $Writer.create(); + if (message.recordUid != null && Object.hasOwnProperty.call(message, 'recordUid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.recordUid); + if (message.owner != null && Object.hasOwnProperty.call(message, 'owner')) + writer.uint32(/* id 2, wireType 0 =*/ 16).bool(message.owner); + if (message.recordKey != null && Object.hasOwnProperty.call(message, 'recordKey')) + writer.uint32(/* id 3, wireType 2 =*/ 26).bytes(message.recordKey); + if (message.recordKeyType != null && Object.hasOwnProperty.call(message, 'recordKeyType')) + writer.uint32(/* id 4, wireType 0 =*/ 32).int32(message.recordKeyType); + if (message.canShare != null && Object.hasOwnProperty.call(message, 'canShare')) + writer.uint32(/* id 5, wireType 0 =*/ 40).bool(message.canShare); + if (message.canEdit != null && Object.hasOwnProperty.call(message, 'canEdit')) + writer.uint32(/* id 6, wireType 0 =*/ 48).bool(message.canEdit); + if (message.ownerAccountUid != null && Object.hasOwnProperty.call(message, 'ownerAccountUid')) + writer.uint32(/* id 7, wireType 2 =*/ 58).bytes(message.ownerAccountUid); + if (message.expiration != null && Object.hasOwnProperty.call(message, 'expiration')) + writer.uint32(/* id 8, wireType 0 =*/ 64).int64(message.expiration); + if ( + message.expirationNotificationType != null && + Object.hasOwnProperty.call(message, 'expirationNotificationType') + ) + writer.uint32(/* id 9, wireType 0 =*/ 72).int32(message.expirationNotificationType); + if (message.ownerUsername != null && Object.hasOwnProperty.call(message, 'ownerUsername')) + writer.uint32(/* id 10, wireType 2 =*/ 82).string(message.ownerUsername); return writer; }; @@ -206889,55 +215545,55 @@ export const Vault = $root.Vault = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RecordMetaData.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.RecordMetaData(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Vault.RecordMetaData(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.recordUid = reader.bytes(); break; } - case 2: { + case 2: { message.owner = reader.bool(); break; } - case 3: { + case 3: { message.recordKey = reader.bytes(); break; } - case 4: { + case 4: { message.recordKeyType = reader.int32(); break; } - case 5: { + case 5: { message.canShare = reader.bool(); break; } - case 6: { + case 6: { message.canEdit = reader.bool(); break; } - case 7: { + case 7: { message.ownerAccountUid = reader.bytes(); break; } - case 8: { + case 8: { message.expiration = reader.int64(); break; } - case 9: { + case 9: { message.expirationNotificationType = reader.int32(); break; } - case 10: { + case 10: { message.ownerUsername = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -206954,8 +215610,7 @@ export const Vault = $root.Vault = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RecordMetaData.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -206968,54 +215623,71 @@ export const Vault = $root.Vault = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ RecordMetaData.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) - return "recordUid: buffer expected"; - if (message.owner != null && message.hasOwnProperty("owner")) - if (typeof message.owner !== "boolean") - return "owner: boolean expected"; - if (message.recordKey != null && message.hasOwnProperty("recordKey")) - if (!(message.recordKey && typeof message.recordKey.length === "number" || $util.isString(message.recordKey))) - return "recordKey: buffer expected"; - if (message.recordKeyType != null && message.hasOwnProperty("recordKeyType")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.recordUid != null && message.hasOwnProperty('recordUid')) + if ( + !( + (message.recordUid && typeof message.recordUid.length === 'number') || + $util.isString(message.recordUid) + ) + ) + return 'recordUid: buffer expected'; + if (message.owner != null && message.hasOwnProperty('owner')) + if (typeof message.owner !== 'boolean') return 'owner: boolean expected'; + if (message.recordKey != null && message.hasOwnProperty('recordKey')) + if ( + !( + (message.recordKey && typeof message.recordKey.length === 'number') || + $util.isString(message.recordKey) + ) + ) + return 'recordKey: buffer expected'; + if (message.recordKeyType != null && message.hasOwnProperty('recordKeyType')) switch (message.recordKeyType) { - default: - return "recordKeyType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - break; + default: + return 'recordKeyType: enum value expected'; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + break; } - if (message.canShare != null && message.hasOwnProperty("canShare")) - if (typeof message.canShare !== "boolean") - return "canShare: boolean expected"; - if (message.canEdit != null && message.hasOwnProperty("canEdit")) - if (typeof message.canEdit !== "boolean") - return "canEdit: boolean expected"; - if (message.ownerAccountUid != null && message.hasOwnProperty("ownerAccountUid")) - if (!(message.ownerAccountUid && typeof message.ownerAccountUid.length === "number" || $util.isString(message.ownerAccountUid))) - return "ownerAccountUid: buffer expected"; - if (message.expiration != null && message.hasOwnProperty("expiration")) - if (!$util.isInteger(message.expiration) && !(message.expiration && $util.isInteger(message.expiration.low) && $util.isInteger(message.expiration.high))) - return "expiration: integer|Long expected"; - if (message.expirationNotificationType != null && message.hasOwnProperty("expirationNotificationType")) + if (message.canShare != null && message.hasOwnProperty('canShare')) + if (typeof message.canShare !== 'boolean') return 'canShare: boolean expected'; + if (message.canEdit != null && message.hasOwnProperty('canEdit')) + if (typeof message.canEdit !== 'boolean') return 'canEdit: boolean expected'; + if (message.ownerAccountUid != null && message.hasOwnProperty('ownerAccountUid')) + if ( + !( + (message.ownerAccountUid && typeof message.ownerAccountUid.length === 'number') || + $util.isString(message.ownerAccountUid) + ) + ) + return 'ownerAccountUid: buffer expected'; + if (message.expiration != null && message.hasOwnProperty('expiration')) + if ( + !$util.isInteger(message.expiration) && + !( + message.expiration && + $util.isInteger(message.expiration.low) && + $util.isInteger(message.expiration.high) + ) + ) + return 'expiration: integer|Long expected'; + if (message.expirationNotificationType != null && message.hasOwnProperty('expirationNotificationType')) switch (message.expirationNotificationType) { - default: - return "expirationNotificationType: enum value expected"; - case 0: - case 1: - case 2: - break; + default: + return 'expirationNotificationType: enum value expected'; + case 0: + case 1: + case 2: + break; } - if (message.ownerUsername != null && message.hasOwnProperty("ownerUsername")) - if (!$util.isString(message.ownerUsername)) - return "ownerUsername: string expected"; + if (message.ownerUsername != null && message.hasOwnProperty('ownerUsername')) + if (!$util.isString(message.ownerUsername)) return 'ownerUsername: string expected'; return null; }; @@ -207028,97 +215700,101 @@ export const Vault = $root.Vault = (() => { * @returns {Vault.RecordMetaData} RecordMetaData */ RecordMetaData.fromObject = function fromObject(object) { - if (object instanceof $root.Vault.RecordMetaData) - return object; + if (object instanceof $root.Vault.RecordMetaData) return object; let message = new $root.Vault.RecordMetaData(); 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.owner != null) - message.owner = Boolean(object.owner); + 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.owner != null) message.owner = Boolean(object.owner); if (object.recordKey != null) - if (typeof object.recordKey === "string") - $util.base64.decode(object.recordKey, message.recordKey = $util.newBuffer($util.base64.length(object.recordKey)), 0); - else if (object.recordKey.length >= 0) - message.recordKey = object.recordKey; + if (typeof object.recordKey === 'string') + $util.base64.decode( + object.recordKey, + (message.recordKey = $util.newBuffer($util.base64.length(object.recordKey))), + 0 + ); + else if (object.recordKey.length >= 0) message.recordKey = object.recordKey; switch (object.recordKeyType) { - default: - if (typeof object.recordKeyType === "number") { - message.recordKeyType = object.recordKeyType; - break; - } - break; - case "NO_KEY": - case 0: - message.recordKeyType = 0; - break; - case "ENCRYPTED_BY_DATA_KEY": - case 1: - message.recordKeyType = 1; - break; - case "ENCRYPTED_BY_PUBLIC_KEY": - case 2: - message.recordKeyType = 2; - break; - case "ENCRYPTED_BY_DATA_KEY_GCM": - case 3: - message.recordKeyType = 3; - break; - case "ENCRYPTED_BY_PUBLIC_KEY_ECC": - case 4: - message.recordKeyType = 4; - break; - case "ENCRYPTED_BY_ROOT_KEY_CBC": - case 5: - message.recordKeyType = 5; - break; - case "ENCRYPTED_BY_ROOT_KEY_GCM": - case 6: - message.recordKeyType = 6; - break; - } - if (object.canShare != null) - message.canShare = Boolean(object.canShare); - if (object.canEdit != null) - message.canEdit = Boolean(object.canEdit); + default: + if (typeof object.recordKeyType === 'number') { + message.recordKeyType = object.recordKeyType; + break; + } + break; + case 'NO_KEY': + case 0: + message.recordKeyType = 0; + break; + case 'ENCRYPTED_BY_DATA_KEY': + case 1: + message.recordKeyType = 1; + break; + case 'ENCRYPTED_BY_PUBLIC_KEY': + case 2: + message.recordKeyType = 2; + break; + case 'ENCRYPTED_BY_DATA_KEY_GCM': + case 3: + message.recordKeyType = 3; + break; + case 'ENCRYPTED_BY_PUBLIC_KEY_ECC': + case 4: + message.recordKeyType = 4; + break; + case 'ENCRYPTED_BY_ROOT_KEY_CBC': + case 5: + message.recordKeyType = 5; + break; + case 'ENCRYPTED_BY_ROOT_KEY_GCM': + case 6: + message.recordKeyType = 6; + break; + } + if (object.canShare != null) message.canShare = Boolean(object.canShare); + if (object.canEdit != null) message.canEdit = Boolean(object.canEdit); if (object.ownerAccountUid != null) - if (typeof object.ownerAccountUid === "string") - $util.base64.decode(object.ownerAccountUid, message.ownerAccountUid = $util.newBuffer($util.base64.length(object.ownerAccountUid)), 0); - else if (object.ownerAccountUid.length >= 0) - message.ownerAccountUid = object.ownerAccountUid; + if (typeof object.ownerAccountUid === 'string') + $util.base64.decode( + object.ownerAccountUid, + (message.ownerAccountUid = $util.newBuffer($util.base64.length(object.ownerAccountUid))), + 0 + ); + else if (object.ownerAccountUid.length >= 0) message.ownerAccountUid = object.ownerAccountUid; if (object.expiration != null) - if ($util.Long) - (message.expiration = $util.Long.fromValue(object.expiration)).unsigned = false; - else if (typeof object.expiration === "string") - message.expiration = parseInt(object.expiration, 10); - else if (typeof object.expiration === "number") - message.expiration = object.expiration; - else if (typeof object.expiration === "object") - message.expiration = new $util.LongBits(object.expiration.low >>> 0, object.expiration.high >>> 0).toNumber(); + if ($util.Long) (message.expiration = $util.Long.fromValue(object.expiration)).unsigned = false; + else if (typeof object.expiration === 'string') message.expiration = parseInt(object.expiration, 10); + else if (typeof object.expiration === 'number') message.expiration = object.expiration; + else if (typeof object.expiration === 'object') + message.expiration = new $util.LongBits( + object.expiration.low >>> 0, + object.expiration.high >>> 0 + ).toNumber(); switch (object.expirationNotificationType) { - default: - if (typeof object.expirationNotificationType === "number") { - message.expirationNotificationType = object.expirationNotificationType; + default: + if (typeof object.expirationNotificationType === 'number') { + message.expirationNotificationType = object.expirationNotificationType; + break; + } + break; + case 'NOTIFICATION_OFF': + case 0: + message.expirationNotificationType = 0; + break; + case 'NOTIFY_OWNER': + case 1: + message.expirationNotificationType = 1; + break; + case 'NOTIFY_PRIVILEGED_USERS': + case 2: + message.expirationNotificationType = 2; break; - } - break; - case "NOTIFICATION_OFF": - case 0: - message.expirationNotificationType = 0; - break; - case "NOTIFY_OWNER": - case 1: - message.expirationNotificationType = 1; - break; - case "NOTIFY_PRIVILEGED_USERS": - case 2: - message.expirationNotificationType = 2; - break; } - if (object.ownerUsername != null) - message.ownerUsername = String(object.ownerUsername); + if (object.ownerUsername != null) message.ownerUsername = String(object.ownerUsername); return message; }; @@ -207132,65 +215808,88 @@ export const Vault = $root.Vault = (() => { * @returns {Object.} Plain object */ RecordMetaData.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.recordUid = ""; + if (options.bytes === String) object.recordUid = ''; else { object.recordUid = []; - if (options.bytes !== Array) - object.recordUid = $util.newBuffer(object.recordUid); + if (options.bytes !== Array) object.recordUid = $util.newBuffer(object.recordUid); } object.owner = false; - if (options.bytes === String) - object.recordKey = ""; + if (options.bytes === String) object.recordKey = ''; else { object.recordKey = []; - if (options.bytes !== Array) - object.recordKey = $util.newBuffer(object.recordKey); + if (options.bytes !== Array) object.recordKey = $util.newBuffer(object.recordKey); } - object.recordKeyType = options.enums === String ? "NO_KEY" : 0; + object.recordKeyType = options.enums === String ? 'NO_KEY' : 0; object.canShare = false; object.canEdit = false; - if (options.bytes === String) - object.ownerAccountUid = ""; + if (options.bytes === String) object.ownerAccountUid = ''; else { object.ownerAccountUid = []; - if (options.bytes !== Array) - object.ownerAccountUid = $util.newBuffer(object.ownerAccountUid); + if (options.bytes !== Array) object.ownerAccountUid = $util.newBuffer(object.ownerAccountUid); } if ($util.Long) { let long = new $util.Long(0, 0, false); - object.expiration = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.expiration = options.longs === String ? "0" : 0; - object.expirationNotificationType = options.enums === String ? "NOTIFICATION_OFF" : 0; - object.ownerUsername = ""; - } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; - if (message.owner != null && message.hasOwnProperty("owner")) - object.owner = message.owner; - if (message.recordKey != null && message.hasOwnProperty("recordKey")) - object.recordKey = options.bytes === String ? $util.base64.encode(message.recordKey, 0, message.recordKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordKey) : message.recordKey; - if (message.recordKeyType != null && message.hasOwnProperty("recordKeyType")) - object.recordKeyType = options.enums === String ? $root.Records.RecordKeyType[message.recordKeyType] === undefined ? message.recordKeyType : $root.Records.RecordKeyType[message.recordKeyType] : message.recordKeyType; - if (message.canShare != null && message.hasOwnProperty("canShare")) - object.canShare = message.canShare; - if (message.canEdit != null && message.hasOwnProperty("canEdit")) - object.canEdit = message.canEdit; - if (message.ownerAccountUid != null && message.hasOwnProperty("ownerAccountUid")) - object.ownerAccountUid = options.bytes === String ? $util.base64.encode(message.ownerAccountUid, 0, message.ownerAccountUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.ownerAccountUid) : message.ownerAccountUid; - if (message.expiration != null && message.hasOwnProperty("expiration")) - if (typeof message.expiration === "number") + object.expiration = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.expiration = options.longs === String ? '0' : 0; + object.expirationNotificationType = options.enums === String ? 'NOTIFICATION_OFF' : 0; + object.ownerUsername = ''; + } + if (message.recordUid != null && message.hasOwnProperty('recordUid')) + object.recordUid = + options.bytes === String + ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.recordUid) + : message.recordUid; + if (message.owner != null && message.hasOwnProperty('owner')) object.owner = message.owner; + if (message.recordKey != null && message.hasOwnProperty('recordKey')) + object.recordKey = + options.bytes === String + ? $util.base64.encode(message.recordKey, 0, message.recordKey.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.recordKey) + : message.recordKey; + if (message.recordKeyType != null && message.hasOwnProperty('recordKeyType')) + object.recordKeyType = + options.enums === String + ? $root.Records.RecordKeyType[message.recordKeyType] === undefined + ? message.recordKeyType + : $root.Records.RecordKeyType[message.recordKeyType] + : message.recordKeyType; + if (message.canShare != null && message.hasOwnProperty('canShare')) object.canShare = message.canShare; + if (message.canEdit != null && message.hasOwnProperty('canEdit')) object.canEdit = message.canEdit; + if (message.ownerAccountUid != null && message.hasOwnProperty('ownerAccountUid')) + object.ownerAccountUid = + options.bytes === String + ? $util.base64.encode(message.ownerAccountUid, 0, message.ownerAccountUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.ownerAccountUid) + : message.ownerAccountUid; + if (message.expiration != null && message.hasOwnProperty('expiration')) + if (typeof message.expiration === 'number') object.expiration = options.longs === String ? String(message.expiration) : message.expiration; else - object.expiration = options.longs === String ? $util.Long.prototype.toString.call(message.expiration) : options.longs === Number ? new $util.LongBits(message.expiration.low >>> 0, message.expiration.high >>> 0).toNumber() : message.expiration; - if (message.expirationNotificationType != null && message.hasOwnProperty("expirationNotificationType")) - object.expirationNotificationType = options.enums === String ? $root.Records.TimerNotificationType[message.expirationNotificationType] === undefined ? message.expirationNotificationType : $root.Records.TimerNotificationType[message.expirationNotificationType] : message.expirationNotificationType; - if (message.ownerUsername != null && message.hasOwnProperty("ownerUsername")) + object.expiration = + options.longs === String + ? $util.Long.prototype.toString.call(message.expiration) + : options.longs === Number + ? new $util.LongBits( + message.expiration.low >>> 0, + message.expiration.high >>> 0 + ).toNumber() + : message.expiration; + if (message.expirationNotificationType != null && message.hasOwnProperty('expirationNotificationType')) + object.expirationNotificationType = + options.enums === String + ? $root.Records.TimerNotificationType[message.expirationNotificationType] === undefined + ? message.expirationNotificationType + : $root.Records.TimerNotificationType[message.expirationNotificationType] + : message.expirationNotificationType; + if (message.ownerUsername != null && message.hasOwnProperty('ownerUsername')) object.ownerUsername = message.ownerUsername; return object; }; @@ -207216,16 +215915,15 @@ export const Vault = $root.Vault = (() => { */ RecordMetaData.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Vault.RecordMetaData"; + return typeUrlPrefix + '/Vault.RecordMetaData'; }; return RecordMetaData; })(); - Vault.SharingChange = (function() { - + Vault.SharingChange = (function () { /** * Properties of a SharingChange. * @memberof Vault @@ -207245,8 +215943,7 @@ export const Vault = $root.Vault = (() => { function SharingChange(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -207287,12 +215984,11 @@ export const Vault = $root.Vault = (() => { * @returns {$protobuf.Writer} Writer */ SharingChange.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); - if (message.shared != null && Object.hasOwnProperty.call(message, "shared")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.shared); + if (!writer) writer = $Writer.create(); + if (message.recordUid != null && Object.hasOwnProperty.call(message, 'recordUid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.recordUid); + if (message.shared != null && Object.hasOwnProperty.call(message, 'shared')) + writer.uint32(/* id 2, wireType 0 =*/ 16).bool(message.shared); return writer; }; @@ -207321,23 +216017,23 @@ export const Vault = $root.Vault = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SharingChange.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.SharingChange(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Vault.SharingChange(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.recordUid = reader.bytes(); break; } - case 2: { + case 2: { message.shared = reader.bool(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -207354,8 +216050,7 @@ export const Vault = $root.Vault = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SharingChange.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -207368,14 +216063,17 @@ export const Vault = $root.Vault = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ SharingChange.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) - return "recordUid: buffer expected"; - if (message.shared != null && message.hasOwnProperty("shared")) - if (typeof message.shared !== "boolean") - return "shared: boolean expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.recordUid != null && message.hasOwnProperty('recordUid')) + if ( + !( + (message.recordUid && typeof message.recordUid.length === 'number') || + $util.isString(message.recordUid) + ) + ) + return 'recordUid: buffer expected'; + if (message.shared != null && message.hasOwnProperty('shared')) + if (typeof message.shared !== 'boolean') return 'shared: boolean expected'; return null; }; @@ -207388,16 +216086,17 @@ export const Vault = $root.Vault = (() => { * @returns {Vault.SharingChange} SharingChange */ SharingChange.fromObject = function fromObject(object) { - if (object instanceof $root.Vault.SharingChange) - return object; + if (object instanceof $root.Vault.SharingChange) return object; let message = new $root.Vault.SharingChange(); 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.shared != null) - message.shared = Boolean(object.shared); + 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.shared != null) message.shared = Boolean(object.shared); return message; }; @@ -207411,23 +216110,24 @@ export const Vault = $root.Vault = (() => { * @returns {Object.} Plain object */ SharingChange.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.recordUid = ""; + if (options.bytes === String) object.recordUid = ''; else { object.recordUid = []; - if (options.bytes !== Array) - object.recordUid = $util.newBuffer(object.recordUid); + if (options.bytes !== Array) object.recordUid = $util.newBuffer(object.recordUid); } object.shared = false; } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; - if (message.shared != null && message.hasOwnProperty("shared")) - object.shared = message.shared; + if (message.recordUid != null && message.hasOwnProperty('recordUid')) + object.recordUid = + options.bytes === String + ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.recordUid) + : message.recordUid; + if (message.shared != null && message.hasOwnProperty('shared')) object.shared = message.shared; return object; }; @@ -207452,16 +216152,15 @@ export const Vault = $root.Vault = (() => { */ SharingChange.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Vault.SharingChange"; + return typeUrlPrefix + '/Vault.SharingChange'; }; return SharingChange; })(); - Vault.Profile = (function() { - + Vault.Profile = (function () { /** * Properties of a Profile. * @memberof Vault @@ -207482,8 +216181,7 @@ export const Vault = $root.Vault = (() => { function Profile(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -207500,7 +216198,7 @@ export const Vault = $root.Vault = (() => { * @memberof Vault.Profile * @instance */ - Profile.prototype.profileName = ""; + Profile.prototype.profileName = ''; /** * Profile revision. @@ -207508,7 +216206,7 @@ export const Vault = $root.Vault = (() => { * @memberof Vault.Profile * @instance */ - Profile.prototype.revision = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + Profile.prototype.revision = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * Creates a new Profile instance using the specified properties. @@ -207532,14 +216230,13 @@ export const Vault = $root.Vault = (() => { * @returns {$protobuf.Writer} Writer */ Profile.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.data != null && Object.hasOwnProperty.call(message, "data")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.data); - if (message.profileName != null && Object.hasOwnProperty.call(message, "profileName")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.profileName); - if (message.revision != null && Object.hasOwnProperty.call(message, "revision")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.revision); + if (!writer) writer = $Writer.create(); + if (message.data != null && Object.hasOwnProperty.call(message, 'data')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.data); + if (message.profileName != null && Object.hasOwnProperty.call(message, 'profileName')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.profileName); + if (message.revision != null && Object.hasOwnProperty.call(message, 'revision')) + writer.uint32(/* id 3, wireType 0 =*/ 24).int64(message.revision); return writer; }; @@ -207568,27 +216265,27 @@ export const Vault = $root.Vault = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ Profile.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.Profile(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Vault.Profile(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.data = reader.bytes(); break; } - case 2: { + case 2: { message.profileName = reader.string(); break; } - case 3: { + case 3: { message.revision = reader.int64(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -207605,8 +216302,7 @@ export const Vault = $root.Vault = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ Profile.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -207619,17 +216315,22 @@ export const Vault = $root.Vault = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ Profile.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.data != null && message.hasOwnProperty("data")) - if (!(message.data && typeof message.data.length === "number" || $util.isString(message.data))) - return "data: buffer expected"; - if (message.profileName != null && message.hasOwnProperty("profileName")) - if (!$util.isString(message.profileName)) - return "profileName: string expected"; - if (message.revision != null && message.hasOwnProperty("revision")) - if (!$util.isInteger(message.revision) && !(message.revision && $util.isInteger(message.revision.low) && $util.isInteger(message.revision.high))) - return "revision: integer|Long expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.data != null && message.hasOwnProperty('data')) + if (!((message.data && typeof message.data.length === 'number') || $util.isString(message.data))) + return 'data: buffer expected'; + if (message.profileName != null && message.hasOwnProperty('profileName')) + if (!$util.isString(message.profileName)) return 'profileName: string expected'; + if (message.revision != null && message.hasOwnProperty('revision')) + if ( + !$util.isInteger(message.revision) && + !( + message.revision && + $util.isInteger(message.revision.low) && + $util.isInteger(message.revision.high) + ) + ) + return 'revision: integer|Long expected'; return null; }; @@ -207642,25 +216343,26 @@ export const Vault = $root.Vault = (() => { * @returns {Vault.Profile} Profile */ Profile.fromObject = function fromObject(object) { - if (object instanceof $root.Vault.Profile) - return object; + if (object instanceof $root.Vault.Profile) return object; let message = new $root.Vault.Profile(); if (object.data != null) - if (typeof object.data === "string") - $util.base64.decode(object.data, message.data = $util.newBuffer($util.base64.length(object.data)), 0); - else if (object.data.length >= 0) - message.data = object.data; - if (object.profileName != null) - message.profileName = String(object.profileName); + if (typeof object.data === 'string') + $util.base64.decode( + object.data, + (message.data = $util.newBuffer($util.base64.length(object.data))), + 0 + ); + else if (object.data.length >= 0) message.data = object.data; + if (object.profileName != null) message.profileName = String(object.profileName); if (object.revision != null) - if ($util.Long) - (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; - else if (typeof object.revision === "string") - message.revision = parseInt(object.revision, 10); - else if (typeof object.revision === "number") - message.revision = object.revision; - else if (typeof object.revision === "object") - message.revision = new $util.LongBits(object.revision.low >>> 0, object.revision.high >>> 0).toNumber(); + if ($util.Long) (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; + else if (typeof object.revision === 'string') message.revision = parseInt(object.revision, 10); + else if (typeof object.revision === 'number') message.revision = object.revision; + else if (typeof object.revision === 'object') + message.revision = new $util.LongBits( + object.revision.low >>> 0, + object.revision.high >>> 0 + ).toNumber(); return message; }; @@ -207674,33 +216376,40 @@ export const Vault = $root.Vault = (() => { * @returns {Object.} Plain object */ Profile.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.data = ""; + if (options.bytes === String) object.data = ''; else { object.data = []; - if (options.bytes !== Array) - object.data = $util.newBuffer(object.data); + if (options.bytes !== Array) object.data = $util.newBuffer(object.data); } - object.profileName = ""; + object.profileName = ''; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.revision = options.longs === String ? "0" : 0; - } - if (message.data != null && message.hasOwnProperty("data")) - object.data = options.bytes === String ? $util.base64.encode(message.data, 0, message.data.length) : options.bytes === Array ? Array.prototype.slice.call(message.data) : message.data; - if (message.profileName != null && message.hasOwnProperty("profileName")) + object.revision = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.revision = options.longs === String ? '0' : 0; + } + if (message.data != null && message.hasOwnProperty('data')) + object.data = + options.bytes === String + ? $util.base64.encode(message.data, 0, message.data.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.data) + : message.data; + if (message.profileName != null && message.hasOwnProperty('profileName')) object.profileName = message.profileName; - if (message.revision != null && message.hasOwnProperty("revision")) - if (typeof message.revision === "number") + if (message.revision != null && message.hasOwnProperty('revision')) + if (typeof message.revision === 'number') object.revision = options.longs === String ? String(message.revision) : message.revision; else - object.revision = options.longs === String ? $util.Long.prototype.toString.call(message.revision) : options.longs === Number ? new $util.LongBits(message.revision.low >>> 0, message.revision.high >>> 0).toNumber() : message.revision; + object.revision = + options.longs === String + ? $util.Long.prototype.toString.call(message.revision) + : options.longs === Number + ? new $util.LongBits(message.revision.low >>> 0, message.revision.high >>> 0).toNumber() + : message.revision; return object; }; @@ -207725,16 +216434,15 @@ export const Vault = $root.Vault = (() => { */ Profile.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Vault.Profile"; + return typeUrlPrefix + '/Vault.Profile'; }; return Profile; })(); - Vault.ProfilePic = (function() { - + Vault.ProfilePic = (function () { /** * Properties of a ProfilePic. * @memberof Vault @@ -207754,8 +216462,7 @@ export const Vault = $root.Vault = (() => { function ProfilePic(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -207764,7 +216471,7 @@ export const Vault = $root.Vault = (() => { * @memberof Vault.ProfilePic * @instance */ - ProfilePic.prototype.url = ""; + ProfilePic.prototype.url = ''; /** * ProfilePic revision. @@ -207772,7 +216479,7 @@ export const Vault = $root.Vault = (() => { * @memberof Vault.ProfilePic * @instance */ - ProfilePic.prototype.revision = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + ProfilePic.prototype.revision = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * Creates a new ProfilePic instance using the specified properties. @@ -207796,12 +216503,11 @@ export const Vault = $root.Vault = (() => { * @returns {$protobuf.Writer} Writer */ ProfilePic.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.url != null && Object.hasOwnProperty.call(message, "url")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.url); - if (message.revision != null && Object.hasOwnProperty.call(message, "revision")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.revision); + if (!writer) writer = $Writer.create(); + if (message.url != null && Object.hasOwnProperty.call(message, 'url')) + writer.uint32(/* id 1, wireType 2 =*/ 10).string(message.url); + if (message.revision != null && Object.hasOwnProperty.call(message, 'revision')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int64(message.revision); return writer; }; @@ -207830,23 +216536,23 @@ export const Vault = $root.Vault = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ProfilePic.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.ProfilePic(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Vault.ProfilePic(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.url = reader.string(); break; } - case 2: { + case 2: { message.revision = reader.int64(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -207863,8 +216569,7 @@ export const Vault = $root.Vault = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ProfilePic.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -207877,14 +216582,19 @@ export const Vault = $root.Vault = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ ProfilePic.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.url != null && message.hasOwnProperty("url")) - if (!$util.isString(message.url)) - return "url: string expected"; - if (message.revision != null && message.hasOwnProperty("revision")) - if (!$util.isInteger(message.revision) && !(message.revision && $util.isInteger(message.revision.low) && $util.isInteger(message.revision.high))) - return "revision: integer|Long expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.url != null && message.hasOwnProperty('url')) + if (!$util.isString(message.url)) return 'url: string expected'; + if (message.revision != null && message.hasOwnProperty('revision')) + if ( + !$util.isInteger(message.revision) && + !( + message.revision && + $util.isInteger(message.revision.low) && + $util.isInteger(message.revision.high) + ) + ) + return 'revision: integer|Long expected'; return null; }; @@ -207897,20 +216607,18 @@ export const Vault = $root.Vault = (() => { * @returns {Vault.ProfilePic} ProfilePic */ ProfilePic.fromObject = function fromObject(object) { - if (object instanceof $root.Vault.ProfilePic) - return object; + if (object instanceof $root.Vault.ProfilePic) return object; let message = new $root.Vault.ProfilePic(); - if (object.url != null) - message.url = String(object.url); + if (object.url != null) message.url = String(object.url); if (object.revision != null) - if ($util.Long) - (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; - else if (typeof object.revision === "string") - message.revision = parseInt(object.revision, 10); - else if (typeof object.revision === "number") - message.revision = object.revision; - else if (typeof object.revision === "object") - message.revision = new $util.LongBits(object.revision.low >>> 0, object.revision.high >>> 0).toNumber(); + if ($util.Long) (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; + else if (typeof object.revision === 'string') message.revision = parseInt(object.revision, 10); + else if (typeof object.revision === 'number') message.revision = object.revision; + else if (typeof object.revision === 'object') + message.revision = new $util.LongBits( + object.revision.low >>> 0, + object.revision.high >>> 0 + ).toNumber(); return message; }; @@ -207924,24 +216632,27 @@ export const Vault = $root.Vault = (() => { * @returns {Object.} Plain object */ ProfilePic.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - object.url = ""; + object.url = ''; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.revision = options.longs === String ? "0" : 0; - } - if (message.url != null && message.hasOwnProperty("url")) - object.url = message.url; - if (message.revision != null && message.hasOwnProperty("revision")) - if (typeof message.revision === "number") + object.revision = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.revision = options.longs === String ? '0' : 0; + } + if (message.url != null && message.hasOwnProperty('url')) object.url = message.url; + if (message.revision != null && message.hasOwnProperty('revision')) + if (typeof message.revision === 'number') object.revision = options.longs === String ? String(message.revision) : message.revision; else - object.revision = options.longs === String ? $util.Long.prototype.toString.call(message.revision) : options.longs === Number ? new $util.LongBits(message.revision.low >>> 0, message.revision.high >>> 0).toNumber() : message.revision; + object.revision = + options.longs === String + ? $util.Long.prototype.toString.call(message.revision) + : options.longs === Number + ? new $util.LongBits(message.revision.low >>> 0, message.revision.high >>> 0).toNumber() + : message.revision; return object; }; @@ -207966,16 +216677,15 @@ export const Vault = $root.Vault = (() => { */ ProfilePic.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Vault.ProfilePic"; + return typeUrlPrefix + '/Vault.ProfilePic'; }; return ProfilePic; })(); - Vault.PendingTeamMember = (function() { - + Vault.PendingTeamMember = (function () { /** * Properties of a PendingTeamMember. * @memberof Vault @@ -207998,8 +216708,7 @@ export const Vault = $root.Vault = (() => { this.teamUids = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -208008,7 +216717,7 @@ export const Vault = $root.Vault = (() => { * @memberof Vault.PendingTeamMember * @instance */ - PendingTeamMember.prototype.enterpriseUserId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + PendingTeamMember.prototype.enterpriseUserId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * PendingTeamMember userPublicKey. @@ -208056,17 +216765,16 @@ export const Vault = $root.Vault = (() => { * @returns {$protobuf.Writer} Writer */ PendingTeamMember.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "enterpriseUserId")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.enterpriseUserId); - if (message.userPublicKey != null && Object.hasOwnProperty.call(message, "userPublicKey")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.userPublicKey); + if (!writer) writer = $Writer.create(); + if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, 'enterpriseUserId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int64(message.enterpriseUserId); + if (message.userPublicKey != null && Object.hasOwnProperty.call(message, 'userPublicKey')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.userPublicKey); if (message.teamUids != null && message.teamUids.length) for (let i = 0; i < message.teamUids.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.teamUids[i]); - if (message.userEccPublicKey != null && Object.hasOwnProperty.call(message, "userEccPublicKey")) - writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.userEccPublicKey); + writer.uint32(/* id 3, wireType 2 =*/ 26).bytes(message.teamUids[i]); + if (message.userEccPublicKey != null && Object.hasOwnProperty.call(message, 'userEccPublicKey')) + writer.uint32(/* id 4, wireType 2 =*/ 34).bytes(message.userEccPublicKey); return writer; }; @@ -208095,33 +216803,32 @@ export const Vault = $root.Vault = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ PendingTeamMember.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.PendingTeamMember(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Vault.PendingTeamMember(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.enterpriseUserId = reader.int64(); break; } - case 2: { + case 2: { message.userPublicKey = reader.bytes(); break; } - case 3: { - if (!(message.teamUids && message.teamUids.length)) - message.teamUids = []; + case 3: { + if (!(message.teamUids && message.teamUids.length)) message.teamUids = []; message.teamUids.push(reader.bytes()); break; } - case 4: { + case 4: { message.userEccPublicKey = reader.bytes(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -208138,8 +216845,7 @@ export const Vault = $root.Vault = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ PendingTeamMember.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -208152,24 +216858,44 @@ export const Vault = $root.Vault = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ PendingTeamMember.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (!$util.isInteger(message.enterpriseUserId) && !(message.enterpriseUserId && $util.isInteger(message.enterpriseUserId.low) && $util.isInteger(message.enterpriseUserId.high))) - return "enterpriseUserId: integer|Long expected"; - if (message.userPublicKey != null && message.hasOwnProperty("userPublicKey")) - if (!(message.userPublicKey && typeof message.userPublicKey.length === "number" || $util.isString(message.userPublicKey))) - return "userPublicKey: buffer expected"; - if (message.teamUids != null && message.hasOwnProperty("teamUids")) { - if (!Array.isArray(message.teamUids)) - return "teamUids: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.enterpriseUserId != null && message.hasOwnProperty('enterpriseUserId')) + if ( + !$util.isInteger(message.enterpriseUserId) && + !( + message.enterpriseUserId && + $util.isInteger(message.enterpriseUserId.low) && + $util.isInteger(message.enterpriseUserId.high) + ) + ) + return 'enterpriseUserId: integer|Long expected'; + if (message.userPublicKey != null && message.hasOwnProperty('userPublicKey')) + if ( + !( + (message.userPublicKey && typeof message.userPublicKey.length === 'number') || + $util.isString(message.userPublicKey) + ) + ) + return 'userPublicKey: buffer expected'; + if (message.teamUids != null && message.hasOwnProperty('teamUids')) { + if (!Array.isArray(message.teamUids)) return 'teamUids: array expected'; for (let i = 0; i < message.teamUids.length; ++i) - if (!(message.teamUids[i] && typeof message.teamUids[i].length === "number" || $util.isString(message.teamUids[i]))) - return "teamUids: buffer[] expected"; + if ( + !( + (message.teamUids[i] && typeof message.teamUids[i].length === 'number') || + $util.isString(message.teamUids[i]) + ) + ) + return 'teamUids: buffer[] expected'; } - if (message.userEccPublicKey != null && message.hasOwnProperty("userEccPublicKey")) - if (!(message.userEccPublicKey && typeof message.userEccPublicKey.length === "number" || $util.isString(message.userEccPublicKey))) - return "userEccPublicKey: buffer expected"; + if (message.userEccPublicKey != null && message.hasOwnProperty('userEccPublicKey')) + if ( + !( + (message.userEccPublicKey && typeof message.userEccPublicKey.length === 'number') || + $util.isString(message.userEccPublicKey) + ) + ) + return 'userEccPublicKey: buffer expected'; return null; }; @@ -208182,38 +216908,49 @@ export const Vault = $root.Vault = (() => { * @returns {Vault.PendingTeamMember} PendingTeamMember */ PendingTeamMember.fromObject = function fromObject(object) { - if (object instanceof $root.Vault.PendingTeamMember) - return object; + if (object instanceof $root.Vault.PendingTeamMember) return object; let message = new $root.Vault.PendingTeamMember(); if (object.enterpriseUserId != null) if ($util.Long) (message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId)).unsigned = false; - else if (typeof object.enterpriseUserId === "string") + else if (typeof object.enterpriseUserId === 'string') message.enterpriseUserId = parseInt(object.enterpriseUserId, 10); - else if (typeof object.enterpriseUserId === "number") + else if (typeof object.enterpriseUserId === 'number') message.enterpriseUserId = object.enterpriseUserId; - else if (typeof object.enterpriseUserId === "object") - message.enterpriseUserId = new $util.LongBits(object.enterpriseUserId.low >>> 0, object.enterpriseUserId.high >>> 0).toNumber(); + else if (typeof object.enterpriseUserId === 'object') + message.enterpriseUserId = new $util.LongBits( + object.enterpriseUserId.low >>> 0, + object.enterpriseUserId.high >>> 0 + ).toNumber(); if (object.userPublicKey != null) - if (typeof object.userPublicKey === "string") - $util.base64.decode(object.userPublicKey, message.userPublicKey = $util.newBuffer($util.base64.length(object.userPublicKey)), 0); - else if (object.userPublicKey.length >= 0) - message.userPublicKey = object.userPublicKey; + if (typeof object.userPublicKey === 'string') + $util.base64.decode( + object.userPublicKey, + (message.userPublicKey = $util.newBuffer($util.base64.length(object.userPublicKey))), + 0 + ); + else if (object.userPublicKey.length >= 0) message.userPublicKey = object.userPublicKey; if (object.teamUids) { if (!Array.isArray(object.teamUids)) - throw TypeError(".Vault.PendingTeamMember.teamUids: array expected"); + throw TypeError('.Vault.PendingTeamMember.teamUids: array expected'); message.teamUids = []; for (let i = 0; i < object.teamUids.length; ++i) - if (typeof object.teamUids[i] === "string") - $util.base64.decode(object.teamUids[i], message.teamUids[i] = $util.newBuffer($util.base64.length(object.teamUids[i])), 0); - else if (object.teamUids[i].length >= 0) - message.teamUids[i] = object.teamUids[i]; + if (typeof object.teamUids[i] === 'string') + $util.base64.decode( + object.teamUids[i], + (message.teamUids[i] = $util.newBuffer($util.base64.length(object.teamUids[i]))), + 0 + ); + else if (object.teamUids[i].length >= 0) message.teamUids[i] = object.teamUids[i]; } if (object.userEccPublicKey != null) - if (typeof object.userEccPublicKey === "string") - $util.base64.decode(object.userEccPublicKey, message.userEccPublicKey = $util.newBuffer($util.base64.length(object.userEccPublicKey)), 0); - else if (object.userEccPublicKey.length >= 0) - message.userEccPublicKey = object.userEccPublicKey; + if (typeof object.userEccPublicKey === 'string') + $util.base64.decode( + object.userEccPublicKey, + (message.userEccPublicKey = $util.newBuffer($util.base64.length(object.userEccPublicKey))), + 0 + ); + else if (object.userEccPublicKey.length >= 0) message.userEccPublicKey = object.userEccPublicKey; return message; }; @@ -208227,46 +216964,64 @@ export const Vault = $root.Vault = (() => { * @returns {Object.} Plain object */ PendingTeamMember.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.teamUids = []; + if (options.arrays || options.defaults) object.teamUids = []; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.enterpriseUserId = options.longs === String ? "0" : 0; - if (options.bytes === String) - object.userPublicKey = ""; + object.enterpriseUserId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.enterpriseUserId = options.longs === String ? '0' : 0; + if (options.bytes === String) object.userPublicKey = ''; else { object.userPublicKey = []; - if (options.bytes !== Array) - object.userPublicKey = $util.newBuffer(object.userPublicKey); + if (options.bytes !== Array) object.userPublicKey = $util.newBuffer(object.userPublicKey); } - if (options.bytes === String) - object.userEccPublicKey = ""; + if (options.bytes === String) object.userEccPublicKey = ''; else { object.userEccPublicKey = []; - if (options.bytes !== Array) - object.userEccPublicKey = $util.newBuffer(object.userEccPublicKey); + if (options.bytes !== Array) object.userEccPublicKey = $util.newBuffer(object.userEccPublicKey); } } - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (typeof message.enterpriseUserId === "number") - object.enterpriseUserId = options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; + if (message.enterpriseUserId != null && message.hasOwnProperty('enterpriseUserId')) + if (typeof message.enterpriseUserId === 'number') + object.enterpriseUserId = + options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; else - object.enterpriseUserId = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseUserId) : options.longs === Number ? new $util.LongBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0).toNumber() : message.enterpriseUserId; - if (message.userPublicKey != null && message.hasOwnProperty("userPublicKey")) - object.userPublicKey = options.bytes === String ? $util.base64.encode(message.userPublicKey, 0, message.userPublicKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.userPublicKey) : message.userPublicKey; + object.enterpriseUserId = + options.longs === String + ? $util.Long.prototype.toString.call(message.enterpriseUserId) + : options.longs === Number + ? new $util.LongBits( + message.enterpriseUserId.low >>> 0, + message.enterpriseUserId.high >>> 0 + ).toNumber() + : message.enterpriseUserId; + if (message.userPublicKey != null && message.hasOwnProperty('userPublicKey')) + object.userPublicKey = + options.bytes === String + ? $util.base64.encode(message.userPublicKey, 0, message.userPublicKey.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.userPublicKey) + : message.userPublicKey; if (message.teamUids && message.teamUids.length) { object.teamUids = []; for (let j = 0; j < message.teamUids.length; ++j) - object.teamUids[j] = options.bytes === String ? $util.base64.encode(message.teamUids[j], 0, message.teamUids[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.teamUids[j]) : message.teamUids[j]; + object.teamUids[j] = + options.bytes === String + ? $util.base64.encode(message.teamUids[j], 0, message.teamUids[j].length) + : options.bytes === Array + ? Array.prototype.slice.call(message.teamUids[j]) + : message.teamUids[j]; } - if (message.userEccPublicKey != null && message.hasOwnProperty("userEccPublicKey")) - object.userEccPublicKey = options.bytes === String ? $util.base64.encode(message.userEccPublicKey, 0, message.userEccPublicKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.userEccPublicKey) : message.userEccPublicKey; + if (message.userEccPublicKey != null && message.hasOwnProperty('userEccPublicKey')) + object.userEccPublicKey = + options.bytes === String + ? $util.base64.encode(message.userEccPublicKey, 0, message.userEccPublicKey.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.userEccPublicKey) + : message.userEccPublicKey; return object; }; @@ -208291,16 +217046,15 @@ export const Vault = $root.Vault = (() => { */ PendingTeamMember.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Vault.PendingTeamMember"; + return typeUrlPrefix + '/Vault.PendingTeamMember'; }; return PendingTeamMember; })(); - Vault.BreachWatchRecord = (function() { - + Vault.BreachWatchRecord = (function () { /** * Properties of a BreachWatchRecord. * @memberof Vault @@ -208324,8 +217078,7 @@ export const Vault = $root.Vault = (() => { function BreachWatchRecord(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -208358,7 +217111,7 @@ export const Vault = $root.Vault = (() => { * @memberof Vault.BreachWatchRecord * @instance */ - BreachWatchRecord.prototype.scannedBy = ""; + BreachWatchRecord.prototype.scannedBy = ''; /** * BreachWatchRecord revision. @@ -208366,7 +217119,7 @@ export const Vault = $root.Vault = (() => { * @memberof Vault.BreachWatchRecord * @instance */ - BreachWatchRecord.prototype.revision = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + BreachWatchRecord.prototype.revision = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * BreachWatchRecord scannedByAccountUid. @@ -208398,20 +217151,19 @@ export const Vault = $root.Vault = (() => { * @returns {$protobuf.Writer} Writer */ BreachWatchRecord.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); - if (message.data != null && Object.hasOwnProperty.call(message, "data")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.data); - if (message.type != null && Object.hasOwnProperty.call(message, "type")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.type); - if (message.scannedBy != null && Object.hasOwnProperty.call(message, "scannedBy")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.scannedBy); - if (message.revision != null && Object.hasOwnProperty.call(message, "revision")) - writer.uint32(/* id 5, wireType 0 =*/40).int64(message.revision); - if (message.scannedByAccountUid != null && Object.hasOwnProperty.call(message, "scannedByAccountUid")) - writer.uint32(/* id 6, wireType 2 =*/50).bytes(message.scannedByAccountUid); + if (!writer) writer = $Writer.create(); + if (message.recordUid != null && Object.hasOwnProperty.call(message, 'recordUid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.recordUid); + if (message.data != null && Object.hasOwnProperty.call(message, 'data')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.data); + if (message.type != null && Object.hasOwnProperty.call(message, 'type')) + writer.uint32(/* id 3, wireType 0 =*/ 24).int32(message.type); + if (message.scannedBy != null && Object.hasOwnProperty.call(message, 'scannedBy')) + writer.uint32(/* id 4, wireType 2 =*/ 34).string(message.scannedBy); + if (message.revision != null && Object.hasOwnProperty.call(message, 'revision')) + writer.uint32(/* id 5, wireType 0 =*/ 40).int64(message.revision); + if (message.scannedByAccountUid != null && Object.hasOwnProperty.call(message, 'scannedByAccountUid')) + writer.uint32(/* id 6, wireType 2 =*/ 50).bytes(message.scannedByAccountUid); return writer; }; @@ -208440,39 +217192,39 @@ export const Vault = $root.Vault = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ BreachWatchRecord.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.BreachWatchRecord(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Vault.BreachWatchRecord(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.recordUid = reader.bytes(); break; } - case 2: { + case 2: { message.data = reader.bytes(); break; } - case 3: { + case 3: { message.type = reader.int32(); break; } - case 4: { + case 4: { message.scannedBy = reader.string(); break; } - case 5: { + case 5: { message.revision = reader.int64(); break; } - case 6: { + case 6: { message.scannedByAccountUid = reader.bytes(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -208489,8 +217241,7 @@ export const Vault = $root.Vault = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ BreachWatchRecord.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -208503,31 +217254,46 @@ export const Vault = $root.Vault = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ BreachWatchRecord.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) - return "recordUid: buffer expected"; - if (message.data != null && message.hasOwnProperty("data")) - if (!(message.data && typeof message.data.length === "number" || $util.isString(message.data))) - return "data: buffer expected"; - if (message.type != null && message.hasOwnProperty("type")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.recordUid != null && message.hasOwnProperty('recordUid')) + if ( + !( + (message.recordUid && typeof message.recordUid.length === 'number') || + $util.isString(message.recordUid) + ) + ) + return 'recordUid: buffer expected'; + if (message.data != null && message.hasOwnProperty('data')) + if (!((message.data && typeof message.data.length === 'number') || $util.isString(message.data))) + return 'data: buffer expected'; + if (message.type != null && message.hasOwnProperty('type')) switch (message.type) { - default: - return "type: enum value expected"; - case 0: - case 1: - break; + default: + return 'type: enum value expected'; + case 0: + case 1: + break; } - if (message.scannedBy != null && message.hasOwnProperty("scannedBy")) - if (!$util.isString(message.scannedBy)) - return "scannedBy: string expected"; - if (message.revision != null && message.hasOwnProperty("revision")) - if (!$util.isInteger(message.revision) && !(message.revision && $util.isInteger(message.revision.low) && $util.isInteger(message.revision.high))) - return "revision: integer|Long expected"; - if (message.scannedByAccountUid != null && message.hasOwnProperty("scannedByAccountUid")) - if (!(message.scannedByAccountUid && typeof message.scannedByAccountUid.length === "number" || $util.isString(message.scannedByAccountUid))) - return "scannedByAccountUid: buffer expected"; + if (message.scannedBy != null && message.hasOwnProperty('scannedBy')) + if (!$util.isString(message.scannedBy)) return 'scannedBy: string expected'; + if (message.revision != null && message.hasOwnProperty('revision')) + if ( + !$util.isInteger(message.revision) && + !( + message.revision && + $util.isInteger(message.revision.low) && + $util.isInteger(message.revision.high) + ) + ) + return 'revision: integer|Long expected'; + if (message.scannedByAccountUid != null && message.hasOwnProperty('scannedByAccountUid')) + if ( + !( + (message.scannedByAccountUid && typeof message.scannedByAccountUid.length === 'number') || + $util.isString(message.scannedByAccountUid) + ) + ) + return 'scannedByAccountUid: buffer expected'; return null; }; @@ -208540,49 +217306,59 @@ export const Vault = $root.Vault = (() => { * @returns {Vault.BreachWatchRecord} BreachWatchRecord */ BreachWatchRecord.fromObject = function fromObject(object) { - if (object instanceof $root.Vault.BreachWatchRecord) - return object; + if (object instanceof $root.Vault.BreachWatchRecord) return object; let message = new $root.Vault.BreachWatchRecord(); 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 (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.data != null) - if (typeof object.data === "string") - $util.base64.decode(object.data, message.data = $util.newBuffer($util.base64.length(object.data)), 0); - else if (object.data.length >= 0) - message.data = object.data; + if (typeof object.data === 'string') + $util.base64.decode( + object.data, + (message.data = $util.newBuffer($util.base64.length(object.data))), + 0 + ); + else if (object.data.length >= 0) message.data = object.data; switch (object.type) { - default: - if (typeof object.type === "number") { - message.type = object.type; - break; - } - break; - case "RECORD": - case 0: - message.type = 0; - break; - case "ALTERNATE_PASSWORD": - case 1: - message.type = 1; - break; - } - if (object.scannedBy != null) - message.scannedBy = String(object.scannedBy); + default: + if (typeof object.type === 'number') { + message.type = object.type; + break; + } + break; + case 'RECORD': + case 0: + message.type = 0; + break; + case 'ALTERNATE_PASSWORD': + case 1: + message.type = 1; + break; + } + if (object.scannedBy != null) message.scannedBy = String(object.scannedBy); if (object.revision != null) - if ($util.Long) - (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; - else if (typeof object.revision === "string") - message.revision = parseInt(object.revision, 10); - else if (typeof object.revision === "number") - message.revision = object.revision; - else if (typeof object.revision === "object") - message.revision = new $util.LongBits(object.revision.low >>> 0, object.revision.high >>> 0).toNumber(); + if ($util.Long) (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; + else if (typeof object.revision === 'string') message.revision = parseInt(object.revision, 10); + else if (typeof object.revision === 'number') message.revision = object.revision; + else if (typeof object.revision === 'object') + message.revision = new $util.LongBits( + object.revision.low >>> 0, + object.revision.high >>> 0 + ).toNumber(); if (object.scannedByAccountUid != null) - if (typeof object.scannedByAccountUid === "string") - $util.base64.decode(object.scannedByAccountUid, message.scannedByAccountUid = $util.newBuffer($util.base64.length(object.scannedByAccountUid)), 0); + if (typeof object.scannedByAccountUid === 'string') + $util.base64.decode( + object.scannedByAccountUid, + (message.scannedByAccountUid = $util.newBuffer( + $util.base64.length(object.scannedByAccountUid) + )), + 0 + ); else if (object.scannedByAccountUid.length >= 0) message.scannedByAccountUid = object.scannedByAccountUid; return message; @@ -208598,54 +217374,72 @@ export const Vault = $root.Vault = (() => { * @returns {Object.} Plain object */ BreachWatchRecord.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.recordUid = ""; + if (options.bytes === String) object.recordUid = ''; else { object.recordUid = []; - if (options.bytes !== Array) - object.recordUid = $util.newBuffer(object.recordUid); + if (options.bytes !== Array) object.recordUid = $util.newBuffer(object.recordUid); } - if (options.bytes === String) - object.data = ""; + if (options.bytes === String) object.data = ''; else { object.data = []; - if (options.bytes !== Array) - object.data = $util.newBuffer(object.data); + if (options.bytes !== Array) object.data = $util.newBuffer(object.data); } - object.type = options.enums === String ? "RECORD" : 0; - object.scannedBy = ""; + object.type = options.enums === String ? 'RECORD' : 0; + object.scannedBy = ''; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.revision = options.longs === String ? "0" : 0; - if (options.bytes === String) - object.scannedByAccountUid = ""; + object.revision = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.revision = options.longs === String ? '0' : 0; + if (options.bytes === String) object.scannedByAccountUid = ''; else { object.scannedByAccountUid = []; if (options.bytes !== Array) object.scannedByAccountUid = $util.newBuffer(object.scannedByAccountUid); } } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; - if (message.data != null && message.hasOwnProperty("data")) - object.data = options.bytes === String ? $util.base64.encode(message.data, 0, message.data.length) : options.bytes === Array ? Array.prototype.slice.call(message.data) : message.data; - if (message.type != null && message.hasOwnProperty("type")) - object.type = options.enums === String ? $root.BreachWatch.BreachWatchInfoType[message.type] === undefined ? message.type : $root.BreachWatch.BreachWatchInfoType[message.type] : message.type; - if (message.scannedBy != null && message.hasOwnProperty("scannedBy")) - object.scannedBy = message.scannedBy; - if (message.revision != null && message.hasOwnProperty("revision")) - if (typeof message.revision === "number") + if (message.recordUid != null && message.hasOwnProperty('recordUid')) + object.recordUid = + options.bytes === String + ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.recordUid) + : message.recordUid; + if (message.data != null && message.hasOwnProperty('data')) + object.data = + options.bytes === String + ? $util.base64.encode(message.data, 0, message.data.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.data) + : message.data; + if (message.type != null && message.hasOwnProperty('type')) + object.type = + options.enums === String + ? $root.BreachWatch.BreachWatchInfoType[message.type] === undefined + ? message.type + : $root.BreachWatch.BreachWatchInfoType[message.type] + : message.type; + if (message.scannedBy != null && message.hasOwnProperty('scannedBy')) object.scannedBy = message.scannedBy; + if (message.revision != null && message.hasOwnProperty('revision')) + if (typeof message.revision === 'number') object.revision = options.longs === String ? String(message.revision) : message.revision; else - object.revision = options.longs === String ? $util.Long.prototype.toString.call(message.revision) : options.longs === Number ? new $util.LongBits(message.revision.low >>> 0, message.revision.high >>> 0).toNumber() : message.revision; - if (message.scannedByAccountUid != null && message.hasOwnProperty("scannedByAccountUid")) - object.scannedByAccountUid = options.bytes === String ? $util.base64.encode(message.scannedByAccountUid, 0, message.scannedByAccountUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.scannedByAccountUid) : message.scannedByAccountUid; + object.revision = + options.longs === String + ? $util.Long.prototype.toString.call(message.revision) + : options.longs === Number + ? new $util.LongBits(message.revision.low >>> 0, message.revision.high >>> 0).toNumber() + : message.revision; + if (message.scannedByAccountUid != null && message.hasOwnProperty('scannedByAccountUid')) + object.scannedByAccountUid = + options.bytes === String + ? $util.base64.encode(message.scannedByAccountUid, 0, message.scannedByAccountUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.scannedByAccountUid) + : message.scannedByAccountUid; return object; }; @@ -208670,16 +217464,15 @@ export const Vault = $root.Vault = (() => { */ BreachWatchRecord.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Vault.BreachWatchRecord"; + return typeUrlPrefix + '/Vault.BreachWatchRecord'; }; return BreachWatchRecord; })(); - Vault.UserAuth = (function() { - + Vault.UserAuth = (function () { /** * Properties of a UserAuth. * @memberof Vault @@ -208705,8 +217498,7 @@ export const Vault = $root.Vault = (() => { function UserAuth(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -208763,7 +217555,7 @@ export const Vault = $root.Vault = (() => { * @memberof Vault.UserAuth * @instance */ - UserAuth.prototype.revision = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + UserAuth.prototype.revision = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * UserAuth name. @@ -208771,7 +217563,7 @@ export const Vault = $root.Vault = (() => { * @memberof Vault.UserAuth * @instance */ - UserAuth.prototype.name = ""; + UserAuth.prototype.name = ''; /** * Creates a new UserAuth instance using the specified properties. @@ -208795,24 +217587,23 @@ export const Vault = $root.Vault = (() => { * @returns {$protobuf.Writer} Writer */ UserAuth.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.uid != null && Object.hasOwnProperty.call(message, "uid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.uid); - if (message.loginType != null && Object.hasOwnProperty.call(message, "loginType")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.loginType); - if (message.deleted != null && Object.hasOwnProperty.call(message, "deleted")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.deleted); - if (message.iterations != null && Object.hasOwnProperty.call(message, "iterations")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.iterations); - if (message.salt != null && Object.hasOwnProperty.call(message, "salt")) - writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.salt); - if (message.encryptedClientKey != null && Object.hasOwnProperty.call(message, "encryptedClientKey")) - writer.uint32(/* id 6, wireType 2 =*/50).bytes(message.encryptedClientKey); - if (message.revision != null && Object.hasOwnProperty.call(message, "revision")) - writer.uint32(/* id 7, wireType 0 =*/56).int64(message.revision); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 8, wireType 2 =*/66).string(message.name); + if (!writer) writer = $Writer.create(); + if (message.uid != null && Object.hasOwnProperty.call(message, 'uid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.uid); + if (message.loginType != null && Object.hasOwnProperty.call(message, 'loginType')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int32(message.loginType); + if (message.deleted != null && Object.hasOwnProperty.call(message, 'deleted')) + writer.uint32(/* id 3, wireType 0 =*/ 24).bool(message.deleted); + if (message.iterations != null && Object.hasOwnProperty.call(message, 'iterations')) + writer.uint32(/* id 4, wireType 0 =*/ 32).int32(message.iterations); + if (message.salt != null && Object.hasOwnProperty.call(message, 'salt')) + writer.uint32(/* id 5, wireType 2 =*/ 42).bytes(message.salt); + if (message.encryptedClientKey != null && Object.hasOwnProperty.call(message, 'encryptedClientKey')) + writer.uint32(/* id 6, wireType 2 =*/ 50).bytes(message.encryptedClientKey); + if (message.revision != null && Object.hasOwnProperty.call(message, 'revision')) + writer.uint32(/* id 7, wireType 0 =*/ 56).int64(message.revision); + if (message.name != null && Object.hasOwnProperty.call(message, 'name')) + writer.uint32(/* id 8, wireType 2 =*/ 66).string(message.name); return writer; }; @@ -208841,47 +217632,47 @@ export const Vault = $root.Vault = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ UserAuth.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.UserAuth(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Vault.UserAuth(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.uid = reader.bytes(); break; } - case 2: { + case 2: { message.loginType = reader.int32(); break; } - case 3: { + case 3: { message.deleted = reader.bool(); break; } - case 4: { + case 4: { message.iterations = reader.int32(); break; } - case 5: { + case 5: { message.salt = reader.bytes(); break; } - case 6: { + case 6: { message.encryptedClientKey = reader.bytes(); break; } - case 7: { + case 7: { message.revision = reader.int64(); break; } - case 8: { + case 8: { message.name = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -208898,8 +217689,7 @@ export const Vault = $root.Vault = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ UserAuth.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -208912,42 +217702,50 @@ export const Vault = $root.Vault = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ UserAuth.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.uid != null && message.hasOwnProperty("uid")) - if (!(message.uid && typeof message.uid.length === "number" || $util.isString(message.uid))) - return "uid: buffer expected"; - if (message.loginType != null && message.hasOwnProperty("loginType")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.uid != null && message.hasOwnProperty('uid')) + if (!((message.uid && typeof message.uid.length === 'number') || $util.isString(message.uid))) + return 'uid: buffer expected'; + if (message.loginType != null && message.hasOwnProperty('loginType')) switch (message.loginType) { - default: - return "loginType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - break; + default: + return 'loginType: enum value expected'; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + break; } - if (message.deleted != null && message.hasOwnProperty("deleted")) - if (typeof message.deleted !== "boolean") - return "deleted: boolean expected"; - if (message.iterations != null && message.hasOwnProperty("iterations")) - if (!$util.isInteger(message.iterations)) - return "iterations: integer expected"; - if (message.salt != null && message.hasOwnProperty("salt")) - if (!(message.salt && typeof message.salt.length === "number" || $util.isString(message.salt))) - return "salt: buffer expected"; - if (message.encryptedClientKey != null && message.hasOwnProperty("encryptedClientKey")) - if (!(message.encryptedClientKey && typeof message.encryptedClientKey.length === "number" || $util.isString(message.encryptedClientKey))) - return "encryptedClientKey: buffer expected"; - if (message.revision != null && message.hasOwnProperty("revision")) - if (!$util.isInteger(message.revision) && !(message.revision && $util.isInteger(message.revision.low) && $util.isInteger(message.revision.high))) - return "revision: integer|Long expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.deleted != null && message.hasOwnProperty('deleted')) + if (typeof message.deleted !== 'boolean') return 'deleted: boolean expected'; + if (message.iterations != null && message.hasOwnProperty('iterations')) + if (!$util.isInteger(message.iterations)) return 'iterations: integer expected'; + if (message.salt != null && message.hasOwnProperty('salt')) + if (!((message.salt && typeof message.salt.length === 'number') || $util.isString(message.salt))) + return 'salt: buffer expected'; + if (message.encryptedClientKey != null && message.hasOwnProperty('encryptedClientKey')) + if ( + !( + (message.encryptedClientKey && typeof message.encryptedClientKey.length === 'number') || + $util.isString(message.encryptedClientKey) + ) + ) + return 'encryptedClientKey: buffer expected'; + if (message.revision != null && message.hasOwnProperty('revision')) + if ( + !$util.isInteger(message.revision) && + !( + message.revision && + $util.isInteger(message.revision.low) && + $util.isInteger(message.revision.high) + ) + ) + return 'revision: integer|Long expected'; + if (message.name != null && message.hasOwnProperty('name')) + if (!$util.isString(message.name)) return 'name: string expected'; return null; }; @@ -208960,75 +217758,80 @@ export const Vault = $root.Vault = (() => { * @returns {Vault.UserAuth} UserAuth */ UserAuth.fromObject = function fromObject(object) { - if (object instanceof $root.Vault.UserAuth) - return object; + if (object instanceof $root.Vault.UserAuth) return object; let message = new $root.Vault.UserAuth(); if (object.uid != null) - if (typeof object.uid === "string") - $util.base64.decode(object.uid, message.uid = $util.newBuffer($util.base64.length(object.uid)), 0); - else if (object.uid.length >= 0) - message.uid = object.uid; + if (typeof object.uid === 'string') + $util.base64.decode( + object.uid, + (message.uid = $util.newBuffer($util.base64.length(object.uid))), + 0 + ); + else if (object.uid.length >= 0) message.uid = object.uid; switch (object.loginType) { - default: - if (typeof object.loginType === "number") { - message.loginType = object.loginType; - break; - } - break; - case "NORMAL": - case 0: - message.loginType = 0; - break; - case "SSO": - case 1: - message.loginType = 1; - break; - case "BIO": - case 2: - message.loginType = 2; - break; - case "ALTERNATE": - case 3: - message.loginType = 3; - break; - case "OFFLINE": - case 4: - message.loginType = 4; - break; - case "FORGOT_PASSWORD": - case 5: - message.loginType = 5; - break; - case "PASSKEY_BIO": - case 6: - message.loginType = 6; - break; - } - if (object.deleted != null) - message.deleted = Boolean(object.deleted); - if (object.iterations != null) - message.iterations = object.iterations | 0; + default: + if (typeof object.loginType === 'number') { + message.loginType = object.loginType; + break; + } + break; + case 'NORMAL': + case 0: + message.loginType = 0; + break; + case 'SSO': + case 1: + message.loginType = 1; + break; + case 'BIO': + case 2: + message.loginType = 2; + break; + case 'ALTERNATE': + case 3: + message.loginType = 3; + break; + case 'OFFLINE': + case 4: + message.loginType = 4; + break; + case 'FORGOT_PASSWORD': + case 5: + message.loginType = 5; + break; + case 'PASSKEY_BIO': + case 6: + message.loginType = 6; + break; + } + if (object.deleted != null) message.deleted = Boolean(object.deleted); + if (object.iterations != null) message.iterations = object.iterations | 0; if (object.salt != null) - if (typeof object.salt === "string") - $util.base64.decode(object.salt, message.salt = $util.newBuffer($util.base64.length(object.salt)), 0); - else if (object.salt.length >= 0) - message.salt = object.salt; + if (typeof object.salt === 'string') + $util.base64.decode( + object.salt, + (message.salt = $util.newBuffer($util.base64.length(object.salt))), + 0 + ); + else if (object.salt.length >= 0) message.salt = object.salt; if (object.encryptedClientKey != null) - if (typeof object.encryptedClientKey === "string") - $util.base64.decode(object.encryptedClientKey, message.encryptedClientKey = $util.newBuffer($util.base64.length(object.encryptedClientKey)), 0); - else if (object.encryptedClientKey.length >= 0) - message.encryptedClientKey = object.encryptedClientKey; + if (typeof object.encryptedClientKey === 'string') + $util.base64.decode( + object.encryptedClientKey, + (message.encryptedClientKey = $util.newBuffer($util.base64.length(object.encryptedClientKey))), + 0 + ); + else if (object.encryptedClientKey.length >= 0) message.encryptedClientKey = object.encryptedClientKey; if (object.revision != null) - if ($util.Long) - (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; - else if (typeof object.revision === "string") - message.revision = parseInt(object.revision, 10); - else if (typeof object.revision === "number") - message.revision = object.revision; - else if (typeof object.revision === "object") - message.revision = new $util.LongBits(object.revision.low >>> 0, object.revision.high >>> 0).toNumber(); - if (object.name != null) - message.name = String(object.name); + if ($util.Long) (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; + else if (typeof object.revision === 'string') message.revision = parseInt(object.revision, 10); + else if (typeof object.revision === 'number') message.revision = object.revision; + else if (typeof object.revision === 'object') + message.revision = new $util.LongBits( + object.revision.low >>> 0, + object.revision.high >>> 0 + ).toNumber(); + if (object.name != null) message.name = String(object.name); return message; }; @@ -209042,60 +217845,76 @@ export const Vault = $root.Vault = (() => { * @returns {Object.} Plain object */ UserAuth.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.uid = ""; + if (options.bytes === String) object.uid = ''; else { object.uid = []; - if (options.bytes !== Array) - object.uid = $util.newBuffer(object.uid); + if (options.bytes !== Array) object.uid = $util.newBuffer(object.uid); } - object.loginType = options.enums === String ? "NORMAL" : 0; + object.loginType = options.enums === String ? 'NORMAL' : 0; object.deleted = false; object.iterations = 0; - if (options.bytes === String) - object.salt = ""; + if (options.bytes === String) object.salt = ''; else { object.salt = []; - if (options.bytes !== Array) - object.salt = $util.newBuffer(object.salt); + if (options.bytes !== Array) object.salt = $util.newBuffer(object.salt); } - if (options.bytes === String) - object.encryptedClientKey = ""; + if (options.bytes === String) object.encryptedClientKey = ''; else { object.encryptedClientKey = []; - if (options.bytes !== Array) - object.encryptedClientKey = $util.newBuffer(object.encryptedClientKey); + if (options.bytes !== Array) object.encryptedClientKey = $util.newBuffer(object.encryptedClientKey); } if ($util.Long) { let long = new $util.Long(0, 0, false); - object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.revision = options.longs === String ? "0" : 0; - object.name = ""; - } - if (message.uid != null && message.hasOwnProperty("uid")) - object.uid = options.bytes === String ? $util.base64.encode(message.uid, 0, message.uid.length) : options.bytes === Array ? Array.prototype.slice.call(message.uid) : message.uid; - if (message.loginType != null && message.hasOwnProperty("loginType")) - object.loginType = options.enums === String ? $root.Authentication.LoginType[message.loginType] === undefined ? message.loginType : $root.Authentication.LoginType[message.loginType] : message.loginType; - if (message.deleted != null && message.hasOwnProperty("deleted")) - object.deleted = message.deleted; - if (message.iterations != null && message.hasOwnProperty("iterations")) + object.revision = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.revision = options.longs === String ? '0' : 0; + object.name = ''; + } + if (message.uid != null && message.hasOwnProperty('uid')) + object.uid = + options.bytes === String + ? $util.base64.encode(message.uid, 0, message.uid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.uid) + : message.uid; + if (message.loginType != null && message.hasOwnProperty('loginType')) + object.loginType = + options.enums === String + ? $root.Authentication.LoginType[message.loginType] === undefined + ? message.loginType + : $root.Authentication.LoginType[message.loginType] + : message.loginType; + if (message.deleted != null && message.hasOwnProperty('deleted')) object.deleted = message.deleted; + if (message.iterations != null && message.hasOwnProperty('iterations')) object.iterations = message.iterations; - if (message.salt != null && message.hasOwnProperty("salt")) - object.salt = options.bytes === String ? $util.base64.encode(message.salt, 0, message.salt.length) : options.bytes === Array ? Array.prototype.slice.call(message.salt) : message.salt; - if (message.encryptedClientKey != null && message.hasOwnProperty("encryptedClientKey")) - object.encryptedClientKey = options.bytes === String ? $util.base64.encode(message.encryptedClientKey, 0, message.encryptedClientKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedClientKey) : message.encryptedClientKey; - if (message.revision != null && message.hasOwnProperty("revision")) - if (typeof message.revision === "number") + if (message.salt != null && message.hasOwnProperty('salt')) + object.salt = + options.bytes === String + ? $util.base64.encode(message.salt, 0, message.salt.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.salt) + : message.salt; + if (message.encryptedClientKey != null && message.hasOwnProperty('encryptedClientKey')) + object.encryptedClientKey = + options.bytes === String + ? $util.base64.encode(message.encryptedClientKey, 0, message.encryptedClientKey.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.encryptedClientKey) + : message.encryptedClientKey; + if (message.revision != null && message.hasOwnProperty('revision')) + if (typeof message.revision === 'number') object.revision = options.longs === String ? String(message.revision) : message.revision; else - object.revision = options.longs === String ? $util.Long.prototype.toString.call(message.revision) : options.longs === Number ? new $util.LongBits(message.revision.low >>> 0, message.revision.high >>> 0).toNumber() : message.revision; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + object.revision = + options.longs === String + ? $util.Long.prototype.toString.call(message.revision) + : options.longs === Number + ? new $util.LongBits(message.revision.low >>> 0, message.revision.high >>> 0).toNumber() + : message.revision; + if (message.name != null && message.hasOwnProperty('name')) object.name = message.name; return object; }; @@ -209120,16 +217939,15 @@ export const Vault = $root.Vault = (() => { */ UserAuth.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Vault.UserAuth"; + return typeUrlPrefix + '/Vault.UserAuth'; }; return UserAuth; })(); - Vault.BreachWatchSecurityData = (function() { - + Vault.BreachWatchSecurityData = (function () { /** * Properties of a BreachWatchSecurityData. * @memberof Vault @@ -209150,8 +217968,7 @@ export const Vault = $root.Vault = (() => { function BreachWatchSecurityData(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -209168,7 +217985,7 @@ export const Vault = $root.Vault = (() => { * @memberof Vault.BreachWatchSecurityData * @instance */ - BreachWatchSecurityData.prototype.revision = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + BreachWatchSecurityData.prototype.revision = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * BreachWatchSecurityData removed. @@ -209200,14 +218017,13 @@ export const Vault = $root.Vault = (() => { * @returns {$protobuf.Writer} Writer */ BreachWatchSecurityData.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); - if (message.revision != null && Object.hasOwnProperty.call(message, "revision")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.revision); - if (message.removed != null && Object.hasOwnProperty.call(message, "removed")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.removed); + if (!writer) writer = $Writer.create(); + if (message.recordUid != null && Object.hasOwnProperty.call(message, 'recordUid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.recordUid); + if (message.revision != null && Object.hasOwnProperty.call(message, 'revision')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int64(message.revision); + if (message.removed != null && Object.hasOwnProperty.call(message, 'removed')) + writer.uint32(/* id 3, wireType 0 =*/ 24).bool(message.removed); return writer; }; @@ -209236,27 +218052,27 @@ export const Vault = $root.Vault = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ BreachWatchSecurityData.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.BreachWatchSecurityData(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Vault.BreachWatchSecurityData(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.recordUid = reader.bytes(); break; } - case 2: { + case 2: { message.revision = reader.int64(); break; } - case 3: { + case 3: { message.removed = reader.bool(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -209273,8 +218089,7 @@ export const Vault = $root.Vault = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ BreachWatchSecurityData.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -209287,17 +218102,27 @@ export const Vault = $root.Vault = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ BreachWatchSecurityData.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) - return "recordUid: buffer expected"; - if (message.revision != null && message.hasOwnProperty("revision")) - if (!$util.isInteger(message.revision) && !(message.revision && $util.isInteger(message.revision.low) && $util.isInteger(message.revision.high))) - return "revision: integer|Long expected"; - if (message.removed != null && message.hasOwnProperty("removed")) - if (typeof message.removed !== "boolean") - return "removed: boolean expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.recordUid != null && message.hasOwnProperty('recordUid')) + if ( + !( + (message.recordUid && typeof message.recordUid.length === 'number') || + $util.isString(message.recordUid) + ) + ) + return 'recordUid: buffer expected'; + if (message.revision != null && message.hasOwnProperty('revision')) + if ( + !$util.isInteger(message.revision) && + !( + message.revision && + $util.isInteger(message.revision.low) && + $util.isInteger(message.revision.high) + ) + ) + return 'revision: integer|Long expected'; + if (message.removed != null && message.hasOwnProperty('removed')) + if (typeof message.removed !== 'boolean') return 'removed: boolean expected'; return null; }; @@ -209310,25 +218135,26 @@ export const Vault = $root.Vault = (() => { * @returns {Vault.BreachWatchSecurityData} BreachWatchSecurityData */ BreachWatchSecurityData.fromObject = function fromObject(object) { - if (object instanceof $root.Vault.BreachWatchSecurityData) - return object; + if (object instanceof $root.Vault.BreachWatchSecurityData) return object; let message = new $root.Vault.BreachWatchSecurityData(); 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 (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.revision != null) - if ($util.Long) - (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; - else if (typeof object.revision === "string") - message.revision = parseInt(object.revision, 10); - else if (typeof object.revision === "number") - message.revision = object.revision; - else if (typeof object.revision === "object") - message.revision = new $util.LongBits(object.revision.low >>> 0, object.revision.high >>> 0).toNumber(); - if (object.removed != null) - message.removed = Boolean(object.removed); + if ($util.Long) (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; + else if (typeof object.revision === 'string') message.revision = parseInt(object.revision, 10); + else if (typeof object.revision === 'number') message.revision = object.revision; + else if (typeof object.revision === 'object') + message.revision = new $util.LongBits( + object.revision.low >>> 0, + object.revision.high >>> 0 + ).toNumber(); + if (object.removed != null) message.removed = Boolean(object.removed); return message; }; @@ -209342,33 +218168,39 @@ export const Vault = $root.Vault = (() => { * @returns {Object.} Plain object */ BreachWatchSecurityData.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.recordUid = ""; + if (options.bytes === String) object.recordUid = ''; else { object.recordUid = []; - if (options.bytes !== Array) - object.recordUid = $util.newBuffer(object.recordUid); + if (options.bytes !== Array) object.recordUid = $util.newBuffer(object.recordUid); } if ($util.Long) { let long = new $util.Long(0, 0, false); - object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.revision = options.longs === String ? "0" : 0; + object.revision = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.revision = options.longs === String ? '0' : 0; object.removed = false; } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; - if (message.revision != null && message.hasOwnProperty("revision")) - if (typeof message.revision === "number") + if (message.recordUid != null && message.hasOwnProperty('recordUid')) + object.recordUid = + options.bytes === String + ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.recordUid) + : message.recordUid; + if (message.revision != null && message.hasOwnProperty('revision')) + if (typeof message.revision === 'number') object.revision = options.longs === String ? String(message.revision) : message.revision; else - object.revision = options.longs === String ? $util.Long.prototype.toString.call(message.revision) : options.longs === Number ? new $util.LongBits(message.revision.low >>> 0, message.revision.high >>> 0).toNumber() : message.revision; - if (message.removed != null && message.hasOwnProperty("removed")) - object.removed = message.removed; + object.revision = + options.longs === String + ? $util.Long.prototype.toString.call(message.revision) + : options.longs === Number + ? new $util.LongBits(message.revision.low >>> 0, message.revision.high >>> 0).toNumber() + : message.revision; + if (message.removed != null && message.hasOwnProperty('removed')) object.removed = message.removed; return object; }; @@ -209393,16 +218225,15 @@ export const Vault = $root.Vault = (() => { */ BreachWatchSecurityData.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Vault.BreachWatchSecurityData"; + return typeUrlPrefix + '/Vault.BreachWatchSecurityData'; }; return BreachWatchSecurityData; })(); - Vault.ReusedPasswords = (function() { - + Vault.ReusedPasswords = (function () { /** * Properties of a ReusedPasswords. * @memberof Vault @@ -209422,8 +218253,7 @@ export const Vault = $root.Vault = (() => { function ReusedPasswords(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -209440,7 +218270,7 @@ export const Vault = $root.Vault = (() => { * @memberof Vault.ReusedPasswords * @instance */ - ReusedPasswords.prototype.revision = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + ReusedPasswords.prototype.revision = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * Creates a new ReusedPasswords instance using the specified properties. @@ -209464,12 +218294,11 @@ export const Vault = $root.Vault = (() => { * @returns {$protobuf.Writer} Writer */ ReusedPasswords.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.count != null && Object.hasOwnProperty.call(message, "count")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.count); - if (message.revision != null && Object.hasOwnProperty.call(message, "revision")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.revision); + if (!writer) writer = $Writer.create(); + if (message.count != null && Object.hasOwnProperty.call(message, 'count')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int32(message.count); + if (message.revision != null && Object.hasOwnProperty.call(message, 'revision')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int64(message.revision); return writer; }; @@ -209498,23 +218327,23 @@ export const Vault = $root.Vault = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ReusedPasswords.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.ReusedPasswords(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Vault.ReusedPasswords(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.count = reader.int32(); break; } - case 2: { + case 2: { message.revision = reader.int64(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -209531,8 +218360,7 @@ export const Vault = $root.Vault = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ReusedPasswords.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -209545,14 +218373,19 @@ export const Vault = $root.Vault = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ ReusedPasswords.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.count != null && message.hasOwnProperty("count")) - if (!$util.isInteger(message.count)) - return "count: integer expected"; - if (message.revision != null && message.hasOwnProperty("revision")) - if (!$util.isInteger(message.revision) && !(message.revision && $util.isInteger(message.revision.low) && $util.isInteger(message.revision.high))) - return "revision: integer|Long expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.count != null && message.hasOwnProperty('count')) + if (!$util.isInteger(message.count)) return 'count: integer expected'; + if (message.revision != null && message.hasOwnProperty('revision')) + if ( + !$util.isInteger(message.revision) && + !( + message.revision && + $util.isInteger(message.revision.low) && + $util.isInteger(message.revision.high) + ) + ) + return 'revision: integer|Long expected'; return null; }; @@ -209565,20 +218398,18 @@ export const Vault = $root.Vault = (() => { * @returns {Vault.ReusedPasswords} ReusedPasswords */ ReusedPasswords.fromObject = function fromObject(object) { - if (object instanceof $root.Vault.ReusedPasswords) - return object; + if (object instanceof $root.Vault.ReusedPasswords) return object; let message = new $root.Vault.ReusedPasswords(); - if (object.count != null) - message.count = object.count | 0; + if (object.count != null) message.count = object.count | 0; if (object.revision != null) - if ($util.Long) - (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; - else if (typeof object.revision === "string") - message.revision = parseInt(object.revision, 10); - else if (typeof object.revision === "number") - message.revision = object.revision; - else if (typeof object.revision === "object") - message.revision = new $util.LongBits(object.revision.low >>> 0, object.revision.high >>> 0).toNumber(); + if ($util.Long) (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; + else if (typeof object.revision === 'string') message.revision = parseInt(object.revision, 10); + else if (typeof object.revision === 'number') message.revision = object.revision; + else if (typeof object.revision === 'object') + message.revision = new $util.LongBits( + object.revision.low >>> 0, + object.revision.high >>> 0 + ).toNumber(); return message; }; @@ -209592,24 +218423,27 @@ export const Vault = $root.Vault = (() => { * @returns {Object.} Plain object */ ReusedPasswords.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { object.count = 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.revision = options.longs === String ? "0" : 0; - } - if (message.count != null && message.hasOwnProperty("count")) - object.count = message.count; - if (message.revision != null && message.hasOwnProperty("revision")) - if (typeof message.revision === "number") + object.revision = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.revision = options.longs === String ? '0' : 0; + } + if (message.count != null && message.hasOwnProperty('count')) object.count = message.count; + if (message.revision != null && message.hasOwnProperty('revision')) + if (typeof message.revision === 'number') object.revision = options.longs === String ? String(message.revision) : message.revision; else - object.revision = options.longs === String ? $util.Long.prototype.toString.call(message.revision) : options.longs === Number ? new $util.LongBits(message.revision.low >>> 0, message.revision.high >>> 0).toNumber() : message.revision; + object.revision = + options.longs === String + ? $util.Long.prototype.toString.call(message.revision) + : options.longs === Number + ? new $util.LongBits(message.revision.low >>> 0, message.revision.high >>> 0).toNumber() + : message.revision; return object; }; @@ -209634,16 +218468,15 @@ export const Vault = $root.Vault = (() => { */ ReusedPasswords.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Vault.ReusedPasswords"; + return typeUrlPrefix + '/Vault.ReusedPasswords'; }; return ReusedPasswords; })(); - Vault.SharedFolderRecord = (function() { - + Vault.SharedFolderRecord = (function () { /** * Properties of a SharedFolderRecord. * @memberof Vault @@ -209672,8 +218505,7 @@ export const Vault = $root.Vault = (() => { function SharedFolderRecord(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -209730,7 +218562,7 @@ export const Vault = $root.Vault = (() => { * @memberof Vault.SharedFolderRecord * @instance */ - SharedFolderRecord.prototype.expiration = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + SharedFolderRecord.prototype.expiration = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * SharedFolderRecord owner. @@ -209754,7 +218586,7 @@ export const Vault = $root.Vault = (() => { * @memberof Vault.SharedFolderRecord * @instance */ - SharedFolderRecord.prototype.ownerUsername = ""; + SharedFolderRecord.prototype.ownerUsername = ''; /** * SharedFolderRecord rotateOnExpiration. @@ -209786,30 +218618,32 @@ export const Vault = $root.Vault = (() => { * @returns {$protobuf.Writer} Writer */ SharedFolderRecord.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, "sharedFolderUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.sharedFolderUid); - if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.recordUid); - if (message.recordKey != null && Object.hasOwnProperty.call(message, "recordKey")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.recordKey); - if (message.canShare != null && Object.hasOwnProperty.call(message, "canShare")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.canShare); - if (message.canEdit != null && Object.hasOwnProperty.call(message, "canEdit")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.canEdit); - if (message.ownerAccountUid != null && Object.hasOwnProperty.call(message, "ownerAccountUid")) - writer.uint32(/* id 6, wireType 2 =*/50).bytes(message.ownerAccountUid); - if (message.expiration != null && Object.hasOwnProperty.call(message, "expiration")) - writer.uint32(/* id 7, wireType 0 =*/56).int64(message.expiration); - if (message.owner != null && Object.hasOwnProperty.call(message, "owner")) - writer.uint32(/* id 8, wireType 0 =*/64).bool(message.owner); - if (message.expirationNotificationType != null && Object.hasOwnProperty.call(message, "expirationNotificationType")) - writer.uint32(/* id 9, wireType 0 =*/72).int32(message.expirationNotificationType); - if (message.ownerUsername != null && Object.hasOwnProperty.call(message, "ownerUsername")) - writer.uint32(/* id 10, wireType 2 =*/82).string(message.ownerUsername); - if (message.rotateOnExpiration != null && Object.hasOwnProperty.call(message, "rotateOnExpiration")) - writer.uint32(/* id 11, wireType 0 =*/88).bool(message.rotateOnExpiration); + if (!writer) writer = $Writer.create(); + if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, 'sharedFolderUid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.sharedFolderUid); + if (message.recordUid != null && Object.hasOwnProperty.call(message, 'recordUid')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.recordUid); + if (message.recordKey != null && Object.hasOwnProperty.call(message, 'recordKey')) + writer.uint32(/* id 3, wireType 2 =*/ 26).bytes(message.recordKey); + if (message.canShare != null && Object.hasOwnProperty.call(message, 'canShare')) + writer.uint32(/* id 4, wireType 0 =*/ 32).bool(message.canShare); + if (message.canEdit != null && Object.hasOwnProperty.call(message, 'canEdit')) + writer.uint32(/* id 5, wireType 0 =*/ 40).bool(message.canEdit); + if (message.ownerAccountUid != null && Object.hasOwnProperty.call(message, 'ownerAccountUid')) + writer.uint32(/* id 6, wireType 2 =*/ 50).bytes(message.ownerAccountUid); + if (message.expiration != null && Object.hasOwnProperty.call(message, 'expiration')) + writer.uint32(/* id 7, wireType 0 =*/ 56).int64(message.expiration); + if (message.owner != null && Object.hasOwnProperty.call(message, 'owner')) + writer.uint32(/* id 8, wireType 0 =*/ 64).bool(message.owner); + if ( + message.expirationNotificationType != null && + Object.hasOwnProperty.call(message, 'expirationNotificationType') + ) + writer.uint32(/* id 9, wireType 0 =*/ 72).int32(message.expirationNotificationType); + if (message.ownerUsername != null && Object.hasOwnProperty.call(message, 'ownerUsername')) + writer.uint32(/* id 10, wireType 2 =*/ 82).string(message.ownerUsername); + if (message.rotateOnExpiration != null && Object.hasOwnProperty.call(message, 'rotateOnExpiration')) + writer.uint32(/* id 11, wireType 0 =*/ 88).bool(message.rotateOnExpiration); return writer; }; @@ -209838,59 +218672,59 @@ export const Vault = $root.Vault = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SharedFolderRecord.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.SharedFolderRecord(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Vault.SharedFolderRecord(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.sharedFolderUid = reader.bytes(); break; } - case 2: { + case 2: { message.recordUid = reader.bytes(); break; } - case 3: { + case 3: { message.recordKey = reader.bytes(); break; } - case 4: { + case 4: { message.canShare = reader.bool(); break; } - case 5: { + case 5: { message.canEdit = reader.bool(); break; } - case 6: { + case 6: { message.ownerAccountUid = reader.bytes(); break; } - case 7: { + case 7: { message.expiration = reader.int64(); break; } - case 8: { + case 8: { message.owner = reader.bool(); break; } - case 9: { + case 9: { message.expirationNotificationType = reader.int32(); break; } - case 10: { + case 10: { message.ownerUsername = reader.string(); break; } - case 11: { + case 11: { message.rotateOnExpiration = reader.bool(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -209907,8 +218741,7 @@ export const Vault = $root.Vault = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SharedFolderRecord.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -209921,47 +218754,68 @@ export const Vault = $root.Vault = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ SharedFolderRecord.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) - if (!(message.sharedFolderUid && typeof message.sharedFolderUid.length === "number" || $util.isString(message.sharedFolderUid))) - return "sharedFolderUid: buffer expected"; - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) - return "recordUid: buffer expected"; - if (message.recordKey != null && message.hasOwnProperty("recordKey")) - if (!(message.recordKey && typeof message.recordKey.length === "number" || $util.isString(message.recordKey))) - return "recordKey: buffer expected"; - if (message.canShare != null && message.hasOwnProperty("canShare")) - if (typeof message.canShare !== "boolean") - return "canShare: boolean expected"; - if (message.canEdit != null && message.hasOwnProperty("canEdit")) - if (typeof message.canEdit !== "boolean") - return "canEdit: boolean expected"; - if (message.ownerAccountUid != null && message.hasOwnProperty("ownerAccountUid")) - if (!(message.ownerAccountUid && typeof message.ownerAccountUid.length === "number" || $util.isString(message.ownerAccountUid))) - return "ownerAccountUid: buffer expected"; - if (message.expiration != null && message.hasOwnProperty("expiration")) - if (!$util.isInteger(message.expiration) && !(message.expiration && $util.isInteger(message.expiration.low) && $util.isInteger(message.expiration.high))) - return "expiration: integer|Long expected"; - if (message.owner != null && message.hasOwnProperty("owner")) - if (typeof message.owner !== "boolean") - return "owner: boolean expected"; - if (message.expirationNotificationType != null && message.hasOwnProperty("expirationNotificationType")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.sharedFolderUid != null && message.hasOwnProperty('sharedFolderUid')) + if ( + !( + (message.sharedFolderUid && typeof message.sharedFolderUid.length === 'number') || + $util.isString(message.sharedFolderUid) + ) + ) + return 'sharedFolderUid: buffer expected'; + if (message.recordUid != null && message.hasOwnProperty('recordUid')) + if ( + !( + (message.recordUid && typeof message.recordUid.length === 'number') || + $util.isString(message.recordUid) + ) + ) + return 'recordUid: buffer expected'; + if (message.recordKey != null && message.hasOwnProperty('recordKey')) + if ( + !( + (message.recordKey && typeof message.recordKey.length === 'number') || + $util.isString(message.recordKey) + ) + ) + return 'recordKey: buffer expected'; + if (message.canShare != null && message.hasOwnProperty('canShare')) + if (typeof message.canShare !== 'boolean') return 'canShare: boolean expected'; + if (message.canEdit != null && message.hasOwnProperty('canEdit')) + if (typeof message.canEdit !== 'boolean') return 'canEdit: boolean expected'; + if (message.ownerAccountUid != null && message.hasOwnProperty('ownerAccountUid')) + if ( + !( + (message.ownerAccountUid && typeof message.ownerAccountUid.length === 'number') || + $util.isString(message.ownerAccountUid) + ) + ) + return 'ownerAccountUid: buffer expected'; + if (message.expiration != null && message.hasOwnProperty('expiration')) + if ( + !$util.isInteger(message.expiration) && + !( + message.expiration && + $util.isInteger(message.expiration.low) && + $util.isInteger(message.expiration.high) + ) + ) + return 'expiration: integer|Long expected'; + if (message.owner != null && message.hasOwnProperty('owner')) + if (typeof message.owner !== 'boolean') return 'owner: boolean expected'; + if (message.expirationNotificationType != null && message.hasOwnProperty('expirationNotificationType')) switch (message.expirationNotificationType) { - default: - return "expirationNotificationType: enum value expected"; - case 0: - case 1: - case 2: - break; + default: + return 'expirationNotificationType: enum value expected'; + case 0: + case 1: + case 2: + break; } - if (message.ownerUsername != null && message.hasOwnProperty("ownerUsername")) - if (!$util.isString(message.ownerUsername)) - return "ownerUsername: string expected"; - if (message.rotateOnExpiration != null && message.hasOwnProperty("rotateOnExpiration")) - if (typeof message.rotateOnExpiration !== "boolean") - return "rotateOnExpiration: boolean expected"; + if (message.ownerUsername != null && message.hasOwnProperty('ownerUsername')) + if (!$util.isString(message.ownerUsername)) return 'ownerUsername: string expected'; + if (message.rotateOnExpiration != null && message.hasOwnProperty('rotateOnExpiration')) + if (typeof message.rotateOnExpiration !== 'boolean') return 'rotateOnExpiration: boolean expected'; return null; }; @@ -209974,68 +218828,74 @@ export const Vault = $root.Vault = (() => { * @returns {Vault.SharedFolderRecord} SharedFolderRecord */ SharedFolderRecord.fromObject = function fromObject(object) { - if (object instanceof $root.Vault.SharedFolderRecord) - return object; + if (object instanceof $root.Vault.SharedFolderRecord) return object; let message = new $root.Vault.SharedFolderRecord(); if (object.sharedFolderUid != null) - if (typeof object.sharedFolderUid === "string") - $util.base64.decode(object.sharedFolderUid, message.sharedFolderUid = $util.newBuffer($util.base64.length(object.sharedFolderUid)), 0); - else if (object.sharedFolderUid.length >= 0) - message.sharedFolderUid = object.sharedFolderUid; + if (typeof object.sharedFolderUid === 'string') + $util.base64.decode( + object.sharedFolderUid, + (message.sharedFolderUid = $util.newBuffer($util.base64.length(object.sharedFolderUid))), + 0 + ); + else if (object.sharedFolderUid.length >= 0) message.sharedFolderUid = object.sharedFolderUid; 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 (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.recordKey != null) - if (typeof object.recordKey === "string") - $util.base64.decode(object.recordKey, message.recordKey = $util.newBuffer($util.base64.length(object.recordKey)), 0); - else if (object.recordKey.length >= 0) - message.recordKey = object.recordKey; - if (object.canShare != null) - message.canShare = Boolean(object.canShare); - if (object.canEdit != null) - message.canEdit = Boolean(object.canEdit); + if (typeof object.recordKey === 'string') + $util.base64.decode( + object.recordKey, + (message.recordKey = $util.newBuffer($util.base64.length(object.recordKey))), + 0 + ); + else if (object.recordKey.length >= 0) message.recordKey = object.recordKey; + if (object.canShare != null) message.canShare = Boolean(object.canShare); + if (object.canEdit != null) message.canEdit = Boolean(object.canEdit); if (object.ownerAccountUid != null) - if (typeof object.ownerAccountUid === "string") - $util.base64.decode(object.ownerAccountUid, message.ownerAccountUid = $util.newBuffer($util.base64.length(object.ownerAccountUid)), 0); - else if (object.ownerAccountUid.length >= 0) - message.ownerAccountUid = object.ownerAccountUid; + if (typeof object.ownerAccountUid === 'string') + $util.base64.decode( + object.ownerAccountUid, + (message.ownerAccountUid = $util.newBuffer($util.base64.length(object.ownerAccountUid))), + 0 + ); + else if (object.ownerAccountUid.length >= 0) message.ownerAccountUid = object.ownerAccountUid; if (object.expiration != null) - if ($util.Long) - (message.expiration = $util.Long.fromValue(object.expiration)).unsigned = false; - else if (typeof object.expiration === "string") - message.expiration = parseInt(object.expiration, 10); - else if (typeof object.expiration === "number") - message.expiration = object.expiration; - else if (typeof object.expiration === "object") - message.expiration = new $util.LongBits(object.expiration.low >>> 0, object.expiration.high >>> 0).toNumber(); - if (object.owner != null) - message.owner = Boolean(object.owner); + if ($util.Long) (message.expiration = $util.Long.fromValue(object.expiration)).unsigned = false; + else if (typeof object.expiration === 'string') message.expiration = parseInt(object.expiration, 10); + else if (typeof object.expiration === 'number') message.expiration = object.expiration; + else if (typeof object.expiration === 'object') + message.expiration = new $util.LongBits( + object.expiration.low >>> 0, + object.expiration.high >>> 0 + ).toNumber(); + if (object.owner != null) message.owner = Boolean(object.owner); switch (object.expirationNotificationType) { - default: - if (typeof object.expirationNotificationType === "number") { - message.expirationNotificationType = object.expirationNotificationType; + default: + if (typeof object.expirationNotificationType === 'number') { + message.expirationNotificationType = object.expirationNotificationType; + break; + } + break; + case 'NOTIFICATION_OFF': + case 0: + message.expirationNotificationType = 0; + break; + case 'NOTIFY_OWNER': + case 1: + message.expirationNotificationType = 1; + break; + case 'NOTIFY_PRIVILEGED_USERS': + case 2: + message.expirationNotificationType = 2; break; - } - break; - case "NOTIFICATION_OFF": - case 0: - message.expirationNotificationType = 0; - break; - case "NOTIFY_OWNER": - case 1: - message.expirationNotificationType = 1; - break; - case "NOTIFY_PRIVILEGED_USERS": - case 2: - message.expirationNotificationType = 2; - break; } - if (object.ownerUsername != null) - message.ownerUsername = String(object.ownerUsername); - if (object.rotateOnExpiration != null) - message.rotateOnExpiration = Boolean(object.rotateOnExpiration); + if (object.ownerUsername != null) message.ownerUsername = String(object.ownerUsername); + if (object.rotateOnExpiration != null) message.rotateOnExpiration = Boolean(object.rotateOnExpiration); return message; }; @@ -210049,74 +218909,95 @@ export const Vault = $root.Vault = (() => { * @returns {Object.} Plain object */ SharedFolderRecord.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.sharedFolderUid = ""; + if (options.bytes === String) object.sharedFolderUid = ''; else { object.sharedFolderUid = []; - if (options.bytes !== Array) - object.sharedFolderUid = $util.newBuffer(object.sharedFolderUid); + if (options.bytes !== Array) object.sharedFolderUid = $util.newBuffer(object.sharedFolderUid); } - if (options.bytes === String) - object.recordUid = ""; + if (options.bytes === String) object.recordUid = ''; else { object.recordUid = []; - if (options.bytes !== Array) - object.recordUid = $util.newBuffer(object.recordUid); + if (options.bytes !== Array) object.recordUid = $util.newBuffer(object.recordUid); } - if (options.bytes === String) - object.recordKey = ""; + if (options.bytes === String) object.recordKey = ''; else { object.recordKey = []; - if (options.bytes !== Array) - object.recordKey = $util.newBuffer(object.recordKey); + if (options.bytes !== Array) object.recordKey = $util.newBuffer(object.recordKey); } object.canShare = false; object.canEdit = false; - if (options.bytes === String) - object.ownerAccountUid = ""; + if (options.bytes === String) object.ownerAccountUid = ''; else { object.ownerAccountUid = []; - if (options.bytes !== Array) - object.ownerAccountUid = $util.newBuffer(object.ownerAccountUid); + if (options.bytes !== Array) object.ownerAccountUid = $util.newBuffer(object.ownerAccountUid); } if ($util.Long) { let long = new $util.Long(0, 0, false); - object.expiration = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.expiration = options.longs === String ? "0" : 0; + object.expiration = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.expiration = options.longs === String ? '0' : 0; object.owner = false; - object.expirationNotificationType = options.enums === String ? "NOTIFICATION_OFF" : 0; - object.ownerUsername = ""; + object.expirationNotificationType = options.enums === String ? 'NOTIFICATION_OFF' : 0; + object.ownerUsername = ''; object.rotateOnExpiration = false; } - if (message.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) - object.sharedFolderUid = options.bytes === String ? $util.base64.encode(message.sharedFolderUid, 0, message.sharedFolderUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.sharedFolderUid) : message.sharedFolderUid; - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; - if (message.recordKey != null && message.hasOwnProperty("recordKey")) - object.recordKey = options.bytes === String ? $util.base64.encode(message.recordKey, 0, message.recordKey.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordKey) : message.recordKey; - if (message.canShare != null && message.hasOwnProperty("canShare")) - object.canShare = message.canShare; - if (message.canEdit != null && message.hasOwnProperty("canEdit")) - object.canEdit = message.canEdit; - if (message.ownerAccountUid != null && message.hasOwnProperty("ownerAccountUid")) - object.ownerAccountUid = options.bytes === String ? $util.base64.encode(message.ownerAccountUid, 0, message.ownerAccountUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.ownerAccountUid) : message.ownerAccountUid; - if (message.expiration != null && message.hasOwnProperty("expiration")) - if (typeof message.expiration === "number") + if (message.sharedFolderUid != null && message.hasOwnProperty('sharedFolderUid')) + object.sharedFolderUid = + options.bytes === String + ? $util.base64.encode(message.sharedFolderUid, 0, message.sharedFolderUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.sharedFolderUid) + : message.sharedFolderUid; + if (message.recordUid != null && message.hasOwnProperty('recordUid')) + object.recordUid = + options.bytes === String + ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.recordUid) + : message.recordUid; + if (message.recordKey != null && message.hasOwnProperty('recordKey')) + object.recordKey = + options.bytes === String + ? $util.base64.encode(message.recordKey, 0, message.recordKey.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.recordKey) + : message.recordKey; + if (message.canShare != null && message.hasOwnProperty('canShare')) object.canShare = message.canShare; + if (message.canEdit != null && message.hasOwnProperty('canEdit')) object.canEdit = message.canEdit; + if (message.ownerAccountUid != null && message.hasOwnProperty('ownerAccountUid')) + object.ownerAccountUid = + options.bytes === String + ? $util.base64.encode(message.ownerAccountUid, 0, message.ownerAccountUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.ownerAccountUid) + : message.ownerAccountUid; + if (message.expiration != null && message.hasOwnProperty('expiration')) + if (typeof message.expiration === 'number') object.expiration = options.longs === String ? String(message.expiration) : message.expiration; else - object.expiration = options.longs === String ? $util.Long.prototype.toString.call(message.expiration) : options.longs === Number ? new $util.LongBits(message.expiration.low >>> 0, message.expiration.high >>> 0).toNumber() : message.expiration; - if (message.owner != null && message.hasOwnProperty("owner")) - object.owner = message.owner; - if (message.expirationNotificationType != null && message.hasOwnProperty("expirationNotificationType")) - object.expirationNotificationType = options.enums === String ? $root.Records.TimerNotificationType[message.expirationNotificationType] === undefined ? message.expirationNotificationType : $root.Records.TimerNotificationType[message.expirationNotificationType] : message.expirationNotificationType; - if (message.ownerUsername != null && message.hasOwnProperty("ownerUsername")) + object.expiration = + options.longs === String + ? $util.Long.prototype.toString.call(message.expiration) + : options.longs === Number + ? new $util.LongBits( + message.expiration.low >>> 0, + message.expiration.high >>> 0 + ).toNumber() + : message.expiration; + if (message.owner != null && message.hasOwnProperty('owner')) object.owner = message.owner; + if (message.expirationNotificationType != null && message.hasOwnProperty('expirationNotificationType')) + object.expirationNotificationType = + options.enums === String + ? $root.Records.TimerNotificationType[message.expirationNotificationType] === undefined + ? message.expirationNotificationType + : $root.Records.TimerNotificationType[message.expirationNotificationType] + : message.expirationNotificationType; + if (message.ownerUsername != null && message.hasOwnProperty('ownerUsername')) object.ownerUsername = message.ownerUsername; - if (message.rotateOnExpiration != null && message.hasOwnProperty("rotateOnExpiration")) + if (message.rotateOnExpiration != null && message.hasOwnProperty('rotateOnExpiration')) object.rotateOnExpiration = message.rotateOnExpiration; return object; }; @@ -210142,16 +219023,15 @@ export const Vault = $root.Vault = (() => { */ SharedFolderRecord.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Vault.SharedFolderRecord"; + return typeUrlPrefix + '/Vault.SharedFolderRecord'; }; return SharedFolderRecord; })(); - Vault.SharedFolderUser = (function() { - + Vault.SharedFolderUser = (function () { /** * Properties of a SharedFolderUser. * @memberof Vault @@ -210177,8 +219057,7 @@ export const Vault = $root.Vault = (() => { function SharedFolderUser(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -210195,7 +219074,7 @@ export const Vault = $root.Vault = (() => { * @memberof Vault.SharedFolderUser * @instance */ - SharedFolderUser.prototype.username = ""; + SharedFolderUser.prototype.username = ''; /** * SharedFolderUser manageRecords. @@ -210227,7 +219106,7 @@ export const Vault = $root.Vault = (() => { * @memberof Vault.SharedFolderUser * @instance */ - SharedFolderUser.prototype.expiration = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + SharedFolderUser.prototype.expiration = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * SharedFolderUser expirationNotificationType. @@ -210267,24 +219146,26 @@ export const Vault = $root.Vault = (() => { * @returns {$protobuf.Writer} Writer */ SharedFolderUser.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, "sharedFolderUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.sharedFolderUid); - if (message.username != null && Object.hasOwnProperty.call(message, "username")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.username); - if (message.manageRecords != null && Object.hasOwnProperty.call(message, "manageRecords")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.manageRecords); - if (message.manageUsers != null && Object.hasOwnProperty.call(message, "manageUsers")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.manageUsers); - if (message.accountUid != null && Object.hasOwnProperty.call(message, "accountUid")) - writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.accountUid); - if (message.expiration != null && Object.hasOwnProperty.call(message, "expiration")) - writer.uint32(/* id 6, wireType 0 =*/48).int64(message.expiration); - if (message.expirationNotificationType != null && Object.hasOwnProperty.call(message, "expirationNotificationType")) - writer.uint32(/* id 7, wireType 0 =*/56).int32(message.expirationNotificationType); - if (message.rotateOnExpiration != null && Object.hasOwnProperty.call(message, "rotateOnExpiration")) - writer.uint32(/* id 8, wireType 0 =*/64).bool(message.rotateOnExpiration); + if (!writer) writer = $Writer.create(); + if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, 'sharedFolderUid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.sharedFolderUid); + if (message.username != null && Object.hasOwnProperty.call(message, 'username')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.username); + if (message.manageRecords != null && Object.hasOwnProperty.call(message, 'manageRecords')) + writer.uint32(/* id 3, wireType 0 =*/ 24).bool(message.manageRecords); + if (message.manageUsers != null && Object.hasOwnProperty.call(message, 'manageUsers')) + writer.uint32(/* id 4, wireType 0 =*/ 32).bool(message.manageUsers); + if (message.accountUid != null && Object.hasOwnProperty.call(message, 'accountUid')) + writer.uint32(/* id 5, wireType 2 =*/ 42).bytes(message.accountUid); + if (message.expiration != null && Object.hasOwnProperty.call(message, 'expiration')) + writer.uint32(/* id 6, wireType 0 =*/ 48).int64(message.expiration); + if ( + message.expirationNotificationType != null && + Object.hasOwnProperty.call(message, 'expirationNotificationType') + ) + writer.uint32(/* id 7, wireType 0 =*/ 56).int32(message.expirationNotificationType); + if (message.rotateOnExpiration != null && Object.hasOwnProperty.call(message, 'rotateOnExpiration')) + writer.uint32(/* id 8, wireType 0 =*/ 64).bool(message.rotateOnExpiration); return writer; }; @@ -210313,47 +219194,47 @@ export const Vault = $root.Vault = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SharedFolderUser.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.SharedFolderUser(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Vault.SharedFolderUser(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.sharedFolderUid = reader.bytes(); break; } - case 2: { + case 2: { message.username = reader.string(); break; } - case 3: { + case 3: { message.manageRecords = reader.bool(); break; } - case 4: { + case 4: { message.manageUsers = reader.bool(); break; } - case 5: { + case 5: { message.accountUid = reader.bytes(); break; } - case 6: { + case 6: { message.expiration = reader.int64(); break; } - case 7: { + case 7: { message.expirationNotificationType = reader.int32(); break; } - case 8: { + case 8: { message.rotateOnExpiration = reader.bool(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -210370,8 +219251,7 @@ export const Vault = $root.Vault = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SharedFolderUser.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -210384,38 +219264,50 @@ export const Vault = $root.Vault = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ SharedFolderUser.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) - if (!(message.sharedFolderUid && typeof message.sharedFolderUid.length === "number" || $util.isString(message.sharedFolderUid))) - return "sharedFolderUid: buffer expected"; - if (message.username != null && message.hasOwnProperty("username")) - if (!$util.isString(message.username)) - return "username: string expected"; - if (message.manageRecords != null && message.hasOwnProperty("manageRecords")) - if (typeof message.manageRecords !== "boolean") - return "manageRecords: boolean expected"; - if (message.manageUsers != null && message.hasOwnProperty("manageUsers")) - if (typeof message.manageUsers !== "boolean") - return "manageUsers: boolean expected"; - if (message.accountUid != null && message.hasOwnProperty("accountUid")) - if (!(message.accountUid && typeof message.accountUid.length === "number" || $util.isString(message.accountUid))) - return "accountUid: buffer expected"; - if (message.expiration != null && message.hasOwnProperty("expiration")) - if (!$util.isInteger(message.expiration) && !(message.expiration && $util.isInteger(message.expiration.low) && $util.isInteger(message.expiration.high))) - return "expiration: integer|Long expected"; - if (message.expirationNotificationType != null && message.hasOwnProperty("expirationNotificationType")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.sharedFolderUid != null && message.hasOwnProperty('sharedFolderUid')) + if ( + !( + (message.sharedFolderUid && typeof message.sharedFolderUid.length === 'number') || + $util.isString(message.sharedFolderUid) + ) + ) + return 'sharedFolderUid: buffer expected'; + if (message.username != null && message.hasOwnProperty('username')) + if (!$util.isString(message.username)) return 'username: string expected'; + if (message.manageRecords != null && message.hasOwnProperty('manageRecords')) + if (typeof message.manageRecords !== 'boolean') return 'manageRecords: boolean expected'; + if (message.manageUsers != null && message.hasOwnProperty('manageUsers')) + if (typeof message.manageUsers !== 'boolean') return 'manageUsers: boolean expected'; + if (message.accountUid != null && message.hasOwnProperty('accountUid')) + if ( + !( + (message.accountUid && typeof message.accountUid.length === 'number') || + $util.isString(message.accountUid) + ) + ) + return 'accountUid: buffer expected'; + if (message.expiration != null && message.hasOwnProperty('expiration')) + if ( + !$util.isInteger(message.expiration) && + !( + message.expiration && + $util.isInteger(message.expiration.low) && + $util.isInteger(message.expiration.high) + ) + ) + return 'expiration: integer|Long expected'; + if (message.expirationNotificationType != null && message.hasOwnProperty('expirationNotificationType')) switch (message.expirationNotificationType) { - default: - return "expirationNotificationType: enum value expected"; - case 0: - case 1: - case 2: - break; + default: + return 'expirationNotificationType: enum value expected'; + case 0: + case 1: + case 2: + break; } - if (message.rotateOnExpiration != null && message.hasOwnProperty("rotateOnExpiration")) - if (typeof message.rotateOnExpiration !== "boolean") - return "rotateOnExpiration: boolean expected"; + if (message.rotateOnExpiration != null && message.hasOwnProperty('rotateOnExpiration')) + if (typeof message.rotateOnExpiration !== 'boolean') return 'rotateOnExpiration: boolean expected'; return null; }; @@ -210428,56 +219320,57 @@ export const Vault = $root.Vault = (() => { * @returns {Vault.SharedFolderUser} SharedFolderUser */ SharedFolderUser.fromObject = function fromObject(object) { - if (object instanceof $root.Vault.SharedFolderUser) - return object; + if (object instanceof $root.Vault.SharedFolderUser) return object; let message = new $root.Vault.SharedFolderUser(); if (object.sharedFolderUid != null) - if (typeof object.sharedFolderUid === "string") - $util.base64.decode(object.sharedFolderUid, message.sharedFolderUid = $util.newBuffer($util.base64.length(object.sharedFolderUid)), 0); - else if (object.sharedFolderUid.length >= 0) - message.sharedFolderUid = object.sharedFolderUid; - if (object.username != null) - message.username = String(object.username); - if (object.manageRecords != null) - message.manageRecords = Boolean(object.manageRecords); - if (object.manageUsers != null) - message.manageUsers = Boolean(object.manageUsers); + if (typeof object.sharedFolderUid === 'string') + $util.base64.decode( + object.sharedFolderUid, + (message.sharedFolderUid = $util.newBuffer($util.base64.length(object.sharedFolderUid))), + 0 + ); + else if (object.sharedFolderUid.length >= 0) message.sharedFolderUid = object.sharedFolderUid; + if (object.username != null) message.username = String(object.username); + if (object.manageRecords != null) message.manageRecords = Boolean(object.manageRecords); + if (object.manageUsers != null) message.manageUsers = Boolean(object.manageUsers); if (object.accountUid != null) - if (typeof object.accountUid === "string") - $util.base64.decode(object.accountUid, message.accountUid = $util.newBuffer($util.base64.length(object.accountUid)), 0); - else if (object.accountUid.length >= 0) - message.accountUid = object.accountUid; + if (typeof object.accountUid === 'string') + $util.base64.decode( + object.accountUid, + (message.accountUid = $util.newBuffer($util.base64.length(object.accountUid))), + 0 + ); + else if (object.accountUid.length >= 0) message.accountUid = object.accountUid; if (object.expiration != null) - if ($util.Long) - (message.expiration = $util.Long.fromValue(object.expiration)).unsigned = false; - else if (typeof object.expiration === "string") - message.expiration = parseInt(object.expiration, 10); - else if (typeof object.expiration === "number") - message.expiration = object.expiration; - else if (typeof object.expiration === "object") - message.expiration = new $util.LongBits(object.expiration.low >>> 0, object.expiration.high >>> 0).toNumber(); + if ($util.Long) (message.expiration = $util.Long.fromValue(object.expiration)).unsigned = false; + else if (typeof object.expiration === 'string') message.expiration = parseInt(object.expiration, 10); + else if (typeof object.expiration === 'number') message.expiration = object.expiration; + else if (typeof object.expiration === 'object') + message.expiration = new $util.LongBits( + object.expiration.low >>> 0, + object.expiration.high >>> 0 + ).toNumber(); switch (object.expirationNotificationType) { - default: - if (typeof object.expirationNotificationType === "number") { - message.expirationNotificationType = object.expirationNotificationType; + default: + if (typeof object.expirationNotificationType === 'number') { + message.expirationNotificationType = object.expirationNotificationType; + break; + } + break; + case 'NOTIFICATION_OFF': + case 0: + message.expirationNotificationType = 0; + break; + case 'NOTIFY_OWNER': + case 1: + message.expirationNotificationType = 1; + break; + case 'NOTIFY_PRIVILEGED_USERS': + case 2: + message.expirationNotificationType = 2; break; - } - break; - case "NOTIFICATION_OFF": - case 0: - message.expirationNotificationType = 0; - break; - case "NOTIFY_OWNER": - case 1: - message.expirationNotificationType = 1; - break; - case "NOTIFY_PRIVILEGED_USERS": - case 2: - message.expirationNotificationType = 2; - break; } - if (object.rotateOnExpiration != null) - message.rotateOnExpiration = Boolean(object.rotateOnExpiration); + if (object.rotateOnExpiration != null) message.rotateOnExpiration = Boolean(object.rotateOnExpiration); return message; }; @@ -210491,53 +219384,70 @@ export const Vault = $root.Vault = (() => { * @returns {Object.} Plain object */ SharedFolderUser.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.sharedFolderUid = ""; + if (options.bytes === String) object.sharedFolderUid = ''; else { object.sharedFolderUid = []; - if (options.bytes !== Array) - object.sharedFolderUid = $util.newBuffer(object.sharedFolderUid); + if (options.bytes !== Array) object.sharedFolderUid = $util.newBuffer(object.sharedFolderUid); } - object.username = ""; + object.username = ''; object.manageRecords = false; object.manageUsers = false; - if (options.bytes === String) - object.accountUid = ""; + if (options.bytes === String) object.accountUid = ''; else { object.accountUid = []; - if (options.bytes !== Array) - object.accountUid = $util.newBuffer(object.accountUid); + if (options.bytes !== Array) object.accountUid = $util.newBuffer(object.accountUid); } if ($util.Long) { let long = new $util.Long(0, 0, false); - object.expiration = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.expiration = options.longs === String ? "0" : 0; - object.expirationNotificationType = options.enums === String ? "NOTIFICATION_OFF" : 0; + object.expiration = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.expiration = options.longs === String ? '0' : 0; + object.expirationNotificationType = options.enums === String ? 'NOTIFICATION_OFF' : 0; object.rotateOnExpiration = false; } - if (message.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) - object.sharedFolderUid = options.bytes === String ? $util.base64.encode(message.sharedFolderUid, 0, message.sharedFolderUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.sharedFolderUid) : message.sharedFolderUid; - if (message.username != null && message.hasOwnProperty("username")) - object.username = message.username; - if (message.manageRecords != null && message.hasOwnProperty("manageRecords")) + if (message.sharedFolderUid != null && message.hasOwnProperty('sharedFolderUid')) + object.sharedFolderUid = + options.bytes === String + ? $util.base64.encode(message.sharedFolderUid, 0, message.sharedFolderUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.sharedFolderUid) + : message.sharedFolderUid; + if (message.username != null && message.hasOwnProperty('username')) object.username = message.username; + if (message.manageRecords != null && message.hasOwnProperty('manageRecords')) object.manageRecords = message.manageRecords; - if (message.manageUsers != null && message.hasOwnProperty("manageUsers")) + if (message.manageUsers != null && message.hasOwnProperty('manageUsers')) object.manageUsers = message.manageUsers; - if (message.accountUid != null && message.hasOwnProperty("accountUid")) - object.accountUid = options.bytes === String ? $util.base64.encode(message.accountUid, 0, message.accountUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.accountUid) : message.accountUid; - if (message.expiration != null && message.hasOwnProperty("expiration")) - if (typeof message.expiration === "number") + if (message.accountUid != null && message.hasOwnProperty('accountUid')) + object.accountUid = + options.bytes === String + ? $util.base64.encode(message.accountUid, 0, message.accountUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.accountUid) + : message.accountUid; + if (message.expiration != null && message.hasOwnProperty('expiration')) + if (typeof message.expiration === 'number') object.expiration = options.longs === String ? String(message.expiration) : message.expiration; else - object.expiration = options.longs === String ? $util.Long.prototype.toString.call(message.expiration) : options.longs === Number ? new $util.LongBits(message.expiration.low >>> 0, message.expiration.high >>> 0).toNumber() : message.expiration; - if (message.expirationNotificationType != null && message.hasOwnProperty("expirationNotificationType")) - object.expirationNotificationType = options.enums === String ? $root.Records.TimerNotificationType[message.expirationNotificationType] === undefined ? message.expirationNotificationType : $root.Records.TimerNotificationType[message.expirationNotificationType] : message.expirationNotificationType; - if (message.rotateOnExpiration != null && message.hasOwnProperty("rotateOnExpiration")) + object.expiration = + options.longs === String + ? $util.Long.prototype.toString.call(message.expiration) + : options.longs === Number + ? new $util.LongBits( + message.expiration.low >>> 0, + message.expiration.high >>> 0 + ).toNumber() + : message.expiration; + if (message.expirationNotificationType != null && message.hasOwnProperty('expirationNotificationType')) + object.expirationNotificationType = + options.enums === String + ? $root.Records.TimerNotificationType[message.expirationNotificationType] === undefined + ? message.expirationNotificationType + : $root.Records.TimerNotificationType[message.expirationNotificationType] + : message.expirationNotificationType; + if (message.rotateOnExpiration != null && message.hasOwnProperty('rotateOnExpiration')) object.rotateOnExpiration = message.rotateOnExpiration; return object; }; @@ -210563,16 +219473,15 @@ export const Vault = $root.Vault = (() => { */ SharedFolderUser.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Vault.SharedFolderUser"; + return typeUrlPrefix + '/Vault.SharedFolderUser'; }; return SharedFolderUser; })(); - Vault.SharedFolderTeam = (function() { - + Vault.SharedFolderTeam = (function () { /** * Properties of a SharedFolderTeam. * @memberof Vault @@ -210598,8 +219507,7 @@ export const Vault = $root.Vault = (() => { function SharedFolderTeam(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -210624,7 +219532,7 @@ export const Vault = $root.Vault = (() => { * @memberof Vault.SharedFolderTeam * @instance */ - SharedFolderTeam.prototype.name = ""; + SharedFolderTeam.prototype.name = ''; /** * SharedFolderTeam manageRecords. @@ -210648,7 +219556,7 @@ export const Vault = $root.Vault = (() => { * @memberof Vault.SharedFolderTeam * @instance */ - SharedFolderTeam.prototype.expiration = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + SharedFolderTeam.prototype.expiration = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * SharedFolderTeam expirationNotificationType. @@ -210688,24 +219596,26 @@ export const Vault = $root.Vault = (() => { * @returns {$protobuf.Writer} Writer */ SharedFolderTeam.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, "sharedFolderUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.sharedFolderUid); - if (message.teamUid != null && Object.hasOwnProperty.call(message, "teamUid")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.teamUid); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.name); - if (message.manageRecords != null && Object.hasOwnProperty.call(message, "manageRecords")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.manageRecords); - if (message.manageUsers != null && Object.hasOwnProperty.call(message, "manageUsers")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.manageUsers); - if (message.expiration != null && Object.hasOwnProperty.call(message, "expiration")) - writer.uint32(/* id 6, wireType 0 =*/48).int64(message.expiration); - if (message.expirationNotificationType != null && Object.hasOwnProperty.call(message, "expirationNotificationType")) - writer.uint32(/* id 7, wireType 0 =*/56).int32(message.expirationNotificationType); - if (message.rotateOnExpiration != null && Object.hasOwnProperty.call(message, "rotateOnExpiration")) - writer.uint32(/* id 8, wireType 0 =*/64).bool(message.rotateOnExpiration); + if (!writer) writer = $Writer.create(); + if (message.sharedFolderUid != null && Object.hasOwnProperty.call(message, 'sharedFolderUid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.sharedFolderUid); + if (message.teamUid != null && Object.hasOwnProperty.call(message, 'teamUid')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.teamUid); + if (message.name != null && Object.hasOwnProperty.call(message, 'name')) + writer.uint32(/* id 3, wireType 2 =*/ 26).string(message.name); + if (message.manageRecords != null && Object.hasOwnProperty.call(message, 'manageRecords')) + writer.uint32(/* id 4, wireType 0 =*/ 32).bool(message.manageRecords); + if (message.manageUsers != null && Object.hasOwnProperty.call(message, 'manageUsers')) + writer.uint32(/* id 5, wireType 0 =*/ 40).bool(message.manageUsers); + if (message.expiration != null && Object.hasOwnProperty.call(message, 'expiration')) + writer.uint32(/* id 6, wireType 0 =*/ 48).int64(message.expiration); + if ( + message.expirationNotificationType != null && + Object.hasOwnProperty.call(message, 'expirationNotificationType') + ) + writer.uint32(/* id 7, wireType 0 =*/ 56).int32(message.expirationNotificationType); + if (message.rotateOnExpiration != null && Object.hasOwnProperty.call(message, 'rotateOnExpiration')) + writer.uint32(/* id 8, wireType 0 =*/ 64).bool(message.rotateOnExpiration); return writer; }; @@ -210734,47 +219644,47 @@ export const Vault = $root.Vault = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SharedFolderTeam.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.SharedFolderTeam(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Vault.SharedFolderTeam(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.sharedFolderUid = reader.bytes(); break; } - case 2: { + case 2: { message.teamUid = reader.bytes(); break; } - case 3: { + case 3: { message.name = reader.string(); break; } - case 4: { + case 4: { message.manageRecords = reader.bool(); break; } - case 5: { + case 5: { message.manageUsers = reader.bool(); break; } - case 6: { + case 6: { message.expiration = reader.int64(); break; } - case 7: { + case 7: { message.expirationNotificationType = reader.int32(); break; } - case 8: { + case 8: { message.rotateOnExpiration = reader.bool(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -210791,8 +219701,7 @@ export const Vault = $root.Vault = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SharedFolderTeam.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -210805,38 +219714,50 @@ export const Vault = $root.Vault = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ SharedFolderTeam.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) - if (!(message.sharedFolderUid && typeof message.sharedFolderUid.length === "number" || $util.isString(message.sharedFolderUid))) - return "sharedFolderUid: buffer expected"; - if (message.teamUid != null && message.hasOwnProperty("teamUid")) - if (!(message.teamUid && typeof message.teamUid.length === "number" || $util.isString(message.teamUid))) - return "teamUid: buffer expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.manageRecords != null && message.hasOwnProperty("manageRecords")) - if (typeof message.manageRecords !== "boolean") - return "manageRecords: boolean expected"; - if (message.manageUsers != null && message.hasOwnProperty("manageUsers")) - if (typeof message.manageUsers !== "boolean") - return "manageUsers: boolean expected"; - if (message.expiration != null && message.hasOwnProperty("expiration")) - if (!$util.isInteger(message.expiration) && !(message.expiration && $util.isInteger(message.expiration.low) && $util.isInteger(message.expiration.high))) - return "expiration: integer|Long expected"; - if (message.expirationNotificationType != null && message.hasOwnProperty("expirationNotificationType")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.sharedFolderUid != null && message.hasOwnProperty('sharedFolderUid')) + if ( + !( + (message.sharedFolderUid && typeof message.sharedFolderUid.length === 'number') || + $util.isString(message.sharedFolderUid) + ) + ) + return 'sharedFolderUid: buffer expected'; + if (message.teamUid != null && message.hasOwnProperty('teamUid')) + if ( + !( + (message.teamUid && typeof message.teamUid.length === 'number') || + $util.isString(message.teamUid) + ) + ) + return 'teamUid: buffer expected'; + if (message.name != null && message.hasOwnProperty('name')) + if (!$util.isString(message.name)) return 'name: string expected'; + if (message.manageRecords != null && message.hasOwnProperty('manageRecords')) + if (typeof message.manageRecords !== 'boolean') return 'manageRecords: boolean expected'; + if (message.manageUsers != null && message.hasOwnProperty('manageUsers')) + if (typeof message.manageUsers !== 'boolean') return 'manageUsers: boolean expected'; + if (message.expiration != null && message.hasOwnProperty('expiration')) + if ( + !$util.isInteger(message.expiration) && + !( + message.expiration && + $util.isInteger(message.expiration.low) && + $util.isInteger(message.expiration.high) + ) + ) + return 'expiration: integer|Long expected'; + if (message.expirationNotificationType != null && message.hasOwnProperty('expirationNotificationType')) switch (message.expirationNotificationType) { - default: - return "expirationNotificationType: enum value expected"; - case 0: - case 1: - case 2: - break; + default: + return 'expirationNotificationType: enum value expected'; + case 0: + case 1: + case 2: + break; } - if (message.rotateOnExpiration != null && message.hasOwnProperty("rotateOnExpiration")) - if (typeof message.rotateOnExpiration !== "boolean") - return "rotateOnExpiration: boolean expected"; + if (message.rotateOnExpiration != null && message.hasOwnProperty('rotateOnExpiration')) + if (typeof message.rotateOnExpiration !== 'boolean') return 'rotateOnExpiration: boolean expected'; return null; }; @@ -210849,56 +219770,57 @@ export const Vault = $root.Vault = (() => { * @returns {Vault.SharedFolderTeam} SharedFolderTeam */ SharedFolderTeam.fromObject = function fromObject(object) { - if (object instanceof $root.Vault.SharedFolderTeam) - return object; + if (object instanceof $root.Vault.SharedFolderTeam) return object; let message = new $root.Vault.SharedFolderTeam(); if (object.sharedFolderUid != null) - if (typeof object.sharedFolderUid === "string") - $util.base64.decode(object.sharedFolderUid, message.sharedFolderUid = $util.newBuffer($util.base64.length(object.sharedFolderUid)), 0); - else if (object.sharedFolderUid.length >= 0) - message.sharedFolderUid = object.sharedFolderUid; + if (typeof object.sharedFolderUid === 'string') + $util.base64.decode( + object.sharedFolderUid, + (message.sharedFolderUid = $util.newBuffer($util.base64.length(object.sharedFolderUid))), + 0 + ); + else if (object.sharedFolderUid.length >= 0) message.sharedFolderUid = object.sharedFolderUid; if (object.teamUid != null) - if (typeof object.teamUid === "string") - $util.base64.decode(object.teamUid, message.teamUid = $util.newBuffer($util.base64.length(object.teamUid)), 0); - else if (object.teamUid.length >= 0) - message.teamUid = object.teamUid; - if (object.name != null) - message.name = String(object.name); - if (object.manageRecords != null) - message.manageRecords = Boolean(object.manageRecords); - if (object.manageUsers != null) - message.manageUsers = Boolean(object.manageUsers); + if (typeof object.teamUid === 'string') + $util.base64.decode( + object.teamUid, + (message.teamUid = $util.newBuffer($util.base64.length(object.teamUid))), + 0 + ); + else if (object.teamUid.length >= 0) message.teamUid = object.teamUid; + if (object.name != null) message.name = String(object.name); + if (object.manageRecords != null) message.manageRecords = Boolean(object.manageRecords); + if (object.manageUsers != null) message.manageUsers = Boolean(object.manageUsers); if (object.expiration != null) - if ($util.Long) - (message.expiration = $util.Long.fromValue(object.expiration)).unsigned = false; - else if (typeof object.expiration === "string") - message.expiration = parseInt(object.expiration, 10); - else if (typeof object.expiration === "number") - message.expiration = object.expiration; - else if (typeof object.expiration === "object") - message.expiration = new $util.LongBits(object.expiration.low >>> 0, object.expiration.high >>> 0).toNumber(); + if ($util.Long) (message.expiration = $util.Long.fromValue(object.expiration)).unsigned = false; + else if (typeof object.expiration === 'string') message.expiration = parseInt(object.expiration, 10); + else if (typeof object.expiration === 'number') message.expiration = object.expiration; + else if (typeof object.expiration === 'object') + message.expiration = new $util.LongBits( + object.expiration.low >>> 0, + object.expiration.high >>> 0 + ).toNumber(); switch (object.expirationNotificationType) { - default: - if (typeof object.expirationNotificationType === "number") { - message.expirationNotificationType = object.expirationNotificationType; + default: + if (typeof object.expirationNotificationType === 'number') { + message.expirationNotificationType = object.expirationNotificationType; + break; + } + break; + case 'NOTIFICATION_OFF': + case 0: + message.expirationNotificationType = 0; + break; + case 'NOTIFY_OWNER': + case 1: + message.expirationNotificationType = 1; + break; + case 'NOTIFY_PRIVILEGED_USERS': + case 2: + message.expirationNotificationType = 2; break; - } - break; - case "NOTIFICATION_OFF": - case 0: - message.expirationNotificationType = 0; - break; - case "NOTIFY_OWNER": - case 1: - message.expirationNotificationType = 1; - break; - case "NOTIFY_PRIVILEGED_USERS": - case 2: - message.expirationNotificationType = 2; - break; } - if (object.rotateOnExpiration != null) - message.rotateOnExpiration = Boolean(object.rotateOnExpiration); + if (object.rotateOnExpiration != null) message.rotateOnExpiration = Boolean(object.rotateOnExpiration); return message; }; @@ -210912,53 +219834,70 @@ export const Vault = $root.Vault = (() => { * @returns {Object.} Plain object */ SharedFolderTeam.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.sharedFolderUid = ""; + if (options.bytes === String) object.sharedFolderUid = ''; else { object.sharedFolderUid = []; - if (options.bytes !== Array) - object.sharedFolderUid = $util.newBuffer(object.sharedFolderUid); + if (options.bytes !== Array) object.sharedFolderUid = $util.newBuffer(object.sharedFolderUid); } - if (options.bytes === String) - object.teamUid = ""; + if (options.bytes === String) object.teamUid = ''; else { object.teamUid = []; - if (options.bytes !== Array) - object.teamUid = $util.newBuffer(object.teamUid); + if (options.bytes !== Array) object.teamUid = $util.newBuffer(object.teamUid); } - object.name = ""; + object.name = ''; object.manageRecords = false; object.manageUsers = false; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.expiration = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.expiration = options.longs === String ? "0" : 0; - object.expirationNotificationType = options.enums === String ? "NOTIFICATION_OFF" : 0; + object.expiration = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.expiration = options.longs === String ? '0' : 0; + object.expirationNotificationType = options.enums === String ? 'NOTIFICATION_OFF' : 0; object.rotateOnExpiration = false; } - if (message.sharedFolderUid != null && message.hasOwnProperty("sharedFolderUid")) - object.sharedFolderUid = options.bytes === String ? $util.base64.encode(message.sharedFolderUid, 0, message.sharedFolderUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.sharedFolderUid) : message.sharedFolderUid; - if (message.teamUid != null && message.hasOwnProperty("teamUid")) - object.teamUid = options.bytes === String ? $util.base64.encode(message.teamUid, 0, message.teamUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.teamUid) : message.teamUid; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.manageRecords != null && message.hasOwnProperty("manageRecords")) + if (message.sharedFolderUid != null && message.hasOwnProperty('sharedFolderUid')) + object.sharedFolderUid = + options.bytes === String + ? $util.base64.encode(message.sharedFolderUid, 0, message.sharedFolderUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.sharedFolderUid) + : message.sharedFolderUid; + if (message.teamUid != null && message.hasOwnProperty('teamUid')) + object.teamUid = + options.bytes === String + ? $util.base64.encode(message.teamUid, 0, message.teamUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.teamUid) + : message.teamUid; + if (message.name != null && message.hasOwnProperty('name')) object.name = message.name; + if (message.manageRecords != null && message.hasOwnProperty('manageRecords')) object.manageRecords = message.manageRecords; - if (message.manageUsers != null && message.hasOwnProperty("manageUsers")) + if (message.manageUsers != null && message.hasOwnProperty('manageUsers')) object.manageUsers = message.manageUsers; - if (message.expiration != null && message.hasOwnProperty("expiration")) - if (typeof message.expiration === "number") + if (message.expiration != null && message.hasOwnProperty('expiration')) + if (typeof message.expiration === 'number') object.expiration = options.longs === String ? String(message.expiration) : message.expiration; else - object.expiration = options.longs === String ? $util.Long.prototype.toString.call(message.expiration) : options.longs === Number ? new $util.LongBits(message.expiration.low >>> 0, message.expiration.high >>> 0).toNumber() : message.expiration; - if (message.expirationNotificationType != null && message.hasOwnProperty("expirationNotificationType")) - object.expirationNotificationType = options.enums === String ? $root.Records.TimerNotificationType[message.expirationNotificationType] === undefined ? message.expirationNotificationType : $root.Records.TimerNotificationType[message.expirationNotificationType] : message.expirationNotificationType; - if (message.rotateOnExpiration != null && message.hasOwnProperty("rotateOnExpiration")) + object.expiration = + options.longs === String + ? $util.Long.prototype.toString.call(message.expiration) + : options.longs === Number + ? new $util.LongBits( + message.expiration.low >>> 0, + message.expiration.high >>> 0 + ).toNumber() + : message.expiration; + if (message.expirationNotificationType != null && message.hasOwnProperty('expirationNotificationType')) + object.expirationNotificationType = + options.enums === String + ? $root.Records.TimerNotificationType[message.expirationNotificationType] === undefined + ? message.expirationNotificationType + : $root.Records.TimerNotificationType[message.expirationNotificationType] + : message.expirationNotificationType; + if (message.rotateOnExpiration != null && message.hasOwnProperty('rotateOnExpiration')) object.rotateOnExpiration = message.rotateOnExpiration; return object; }; @@ -210984,16 +219923,15 @@ export const Vault = $root.Vault = (() => { */ SharedFolderTeam.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Vault.SharedFolderTeam"; + return typeUrlPrefix + '/Vault.SharedFolderTeam'; }; return SharedFolderTeam; })(); - Vault.KsmChange = (function() { - + Vault.KsmChange = (function () { /** * Properties of a KsmChange. * @memberof Vault @@ -211016,8 +219954,7 @@ export const Vault = $root.Vault = (() => { function KsmChange(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -211058,7 +219995,7 @@ export const Vault = $root.Vault = (() => { * @memberof Vault.KsmChange * @instance */ - KsmChange.prototype.expiration = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + KsmChange.prototype.expiration = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * Creates a new KsmChange instance using the specified properties. @@ -211082,18 +220019,17 @@ export const Vault = $root.Vault = (() => { * @returns {$protobuf.Writer} Writer */ KsmChange.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.appRecordUid != null && Object.hasOwnProperty.call(message, "appRecordUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.appRecordUid); - if (message.detailId != null && Object.hasOwnProperty.call(message, "detailId")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.detailId); - if (message.removed != null && Object.hasOwnProperty.call(message, "removed")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.removed); - if (message.appClientType != null && Object.hasOwnProperty.call(message, "appClientType")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.appClientType); - if (message.expiration != null && Object.hasOwnProperty.call(message, "expiration")) - writer.uint32(/* id 5, wireType 0 =*/40).int64(message.expiration); + if (!writer) writer = $Writer.create(); + if (message.appRecordUid != null && Object.hasOwnProperty.call(message, 'appRecordUid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.appRecordUid); + if (message.detailId != null && Object.hasOwnProperty.call(message, 'detailId')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.detailId); + if (message.removed != null && Object.hasOwnProperty.call(message, 'removed')) + writer.uint32(/* id 3, wireType 0 =*/ 24).bool(message.removed); + if (message.appClientType != null && Object.hasOwnProperty.call(message, 'appClientType')) + writer.uint32(/* id 4, wireType 0 =*/ 32).int32(message.appClientType); + if (message.expiration != null && Object.hasOwnProperty.call(message, 'expiration')) + writer.uint32(/* id 5, wireType 0 =*/ 40).int64(message.expiration); return writer; }; @@ -211122,35 +220058,35 @@ export const Vault = $root.Vault = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ KsmChange.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.KsmChange(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Vault.KsmChange(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.appRecordUid = reader.bytes(); break; } - case 2: { + case 2: { message.detailId = reader.bytes(); break; } - case 3: { + case 3: { message.removed = reader.bool(); break; } - case 4: { + case 4: { message.appClientType = reader.int32(); break; } - case 5: { + case 5: { message.expiration = reader.int64(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -211167,8 +220103,7 @@ export const Vault = $root.Vault = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ KsmChange.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -211181,31 +220116,46 @@ export const Vault = $root.Vault = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ KsmChange.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.appRecordUid != null && message.hasOwnProperty("appRecordUid")) - if (!(message.appRecordUid && typeof message.appRecordUid.length === "number" || $util.isString(message.appRecordUid))) - return "appRecordUid: buffer expected"; - if (message.detailId != null && message.hasOwnProperty("detailId")) - if (!(message.detailId && typeof message.detailId.length === "number" || $util.isString(message.detailId))) - return "detailId: buffer expected"; - if (message.removed != null && message.hasOwnProperty("removed")) - if (typeof message.removed !== "boolean") - return "removed: boolean expected"; - if (message.appClientType != null && message.hasOwnProperty("appClientType")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.appRecordUid != null && message.hasOwnProperty('appRecordUid')) + if ( + !( + (message.appRecordUid && typeof message.appRecordUid.length === 'number') || + $util.isString(message.appRecordUid) + ) + ) + return 'appRecordUid: buffer expected'; + if (message.detailId != null && message.hasOwnProperty('detailId')) + if ( + !( + (message.detailId && typeof message.detailId.length === 'number') || + $util.isString(message.detailId) + ) + ) + return 'detailId: buffer expected'; + if (message.removed != null && message.hasOwnProperty('removed')) + if (typeof message.removed !== 'boolean') return 'removed: boolean expected'; + if (message.appClientType != null && message.hasOwnProperty('appClientType')) switch (message.appClientType) { - default: - return "appClientType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; + default: + return 'appClientType: enum value expected'; + case 0: + case 1: + case 2: + case 3: + case 4: + break; } - if (message.expiration != null && message.hasOwnProperty("expiration")) - if (!$util.isInteger(message.expiration) && !(message.expiration && $util.isInteger(message.expiration.low) && $util.isInteger(message.expiration.high))) - return "expiration: integer|Long expected"; + if (message.expiration != null && message.hasOwnProperty('expiration')) + if ( + !$util.isInteger(message.expiration) && + !( + message.expiration && + $util.isInteger(message.expiration.low) && + $util.isInteger(message.expiration.high) + ) + ) + return 'expiration: integer|Long expected'; return null; }; @@ -211218,58 +220168,62 @@ export const Vault = $root.Vault = (() => { * @returns {Vault.KsmChange} KsmChange */ KsmChange.fromObject = function fromObject(object) { - if (object instanceof $root.Vault.KsmChange) - return object; + if (object instanceof $root.Vault.KsmChange) return object; let message = new $root.Vault.KsmChange(); if (object.appRecordUid != null) - if (typeof object.appRecordUid === "string") - $util.base64.decode(object.appRecordUid, message.appRecordUid = $util.newBuffer($util.base64.length(object.appRecordUid)), 0); - else if (object.appRecordUid.length >= 0) - message.appRecordUid = object.appRecordUid; + if (typeof object.appRecordUid === 'string') + $util.base64.decode( + object.appRecordUid, + (message.appRecordUid = $util.newBuffer($util.base64.length(object.appRecordUid))), + 0 + ); + else if (object.appRecordUid.length >= 0) message.appRecordUid = object.appRecordUid; if (object.detailId != null) - if (typeof object.detailId === "string") - $util.base64.decode(object.detailId, message.detailId = $util.newBuffer($util.base64.length(object.detailId)), 0); - else if (object.detailId.length >= 0) - message.detailId = object.detailId; - if (object.removed != null) - message.removed = Boolean(object.removed); + if (typeof object.detailId === 'string') + $util.base64.decode( + object.detailId, + (message.detailId = $util.newBuffer($util.base64.length(object.detailId))), + 0 + ); + else if (object.detailId.length >= 0) message.detailId = object.detailId; + if (object.removed != null) message.removed = Boolean(object.removed); switch (object.appClientType) { - default: - if (typeof object.appClientType === "number") { - message.appClientType = object.appClientType; - break; - } - break; - case "NOT_USED": - case 0: - message.appClientType = 0; - break; - case "GENERAL": - case 1: - message.appClientType = 1; - break; - case "DISCOVERY_AND_ROTATION_CONTROLLER": - case 2: - message.appClientType = 2; - break; - case "KCM_CONTROLLER": - case 3: - message.appClientType = 3; - break; - case "SELF_DESTRUCT": - case 4: - message.appClientType = 4; - break; + default: + if (typeof object.appClientType === 'number') { + message.appClientType = object.appClientType; + break; + } + break; + case 'NOT_USED': + case 0: + message.appClientType = 0; + break; + case 'GENERAL': + case 1: + message.appClientType = 1; + break; + case 'DISCOVERY_AND_ROTATION_CONTROLLER': + case 2: + message.appClientType = 2; + break; + case 'KCM_CONTROLLER': + case 3: + message.appClientType = 3; + break; + case 'SELF_DESTRUCT': + case 4: + message.appClientType = 4; + break; } if (object.expiration != null) - if ($util.Long) - (message.expiration = $util.Long.fromValue(object.expiration)).unsigned = false; - else if (typeof object.expiration === "string") - message.expiration = parseInt(object.expiration, 10); - else if (typeof object.expiration === "number") - message.expiration = object.expiration; - else if (typeof object.expiration === "object") - message.expiration = new $util.LongBits(object.expiration.low >>> 0, object.expiration.high >>> 0).toNumber(); + if ($util.Long) (message.expiration = $util.Long.fromValue(object.expiration)).unsigned = false; + else if (typeof object.expiration === 'string') message.expiration = parseInt(object.expiration, 10); + else if (typeof object.expiration === 'number') message.expiration = object.expiration; + else if (typeof object.expiration === 'object') + message.expiration = new $util.LongBits( + object.expiration.low >>> 0, + object.expiration.high >>> 0 + ).toNumber(); return message; }; @@ -211283,45 +220237,62 @@ export const Vault = $root.Vault = (() => { * @returns {Object.} Plain object */ KsmChange.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.appRecordUid = ""; + if (options.bytes === String) object.appRecordUid = ''; else { object.appRecordUid = []; - if (options.bytes !== Array) - object.appRecordUid = $util.newBuffer(object.appRecordUid); + if (options.bytes !== Array) object.appRecordUid = $util.newBuffer(object.appRecordUid); } - if (options.bytes === String) - object.detailId = ""; + if (options.bytes === String) object.detailId = ''; else { object.detailId = []; - if (options.bytes !== Array) - object.detailId = $util.newBuffer(object.detailId); + if (options.bytes !== Array) object.detailId = $util.newBuffer(object.detailId); } object.removed = false; - object.appClientType = options.enums === String ? "NOT_USED" : 0; + object.appClientType = options.enums === String ? 'NOT_USED' : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.expiration = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.expiration = options.longs === String ? "0" : 0; - } - if (message.appRecordUid != null && message.hasOwnProperty("appRecordUid")) - object.appRecordUid = options.bytes === String ? $util.base64.encode(message.appRecordUid, 0, message.appRecordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.appRecordUid) : message.appRecordUid; - if (message.detailId != null && message.hasOwnProperty("detailId")) - object.detailId = options.bytes === String ? $util.base64.encode(message.detailId, 0, message.detailId.length) : options.bytes === Array ? Array.prototype.slice.call(message.detailId) : message.detailId; - if (message.removed != null && message.hasOwnProperty("removed")) - object.removed = message.removed; - if (message.appClientType != null && message.hasOwnProperty("appClientType")) - object.appClientType = options.enums === String ? $root.Enterprise.AppClientType[message.appClientType] === undefined ? message.appClientType : $root.Enterprise.AppClientType[message.appClientType] : message.appClientType; - if (message.expiration != null && message.hasOwnProperty("expiration")) - if (typeof message.expiration === "number") + object.expiration = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.expiration = options.longs === String ? '0' : 0; + } + if (message.appRecordUid != null && message.hasOwnProperty('appRecordUid')) + object.appRecordUid = + options.bytes === String + ? $util.base64.encode(message.appRecordUid, 0, message.appRecordUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.appRecordUid) + : message.appRecordUid; + if (message.detailId != null && message.hasOwnProperty('detailId')) + object.detailId = + options.bytes === String + ? $util.base64.encode(message.detailId, 0, message.detailId.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.detailId) + : message.detailId; + if (message.removed != null && message.hasOwnProperty('removed')) object.removed = message.removed; + if (message.appClientType != null && message.hasOwnProperty('appClientType')) + object.appClientType = + options.enums === String + ? $root.Enterprise.AppClientType[message.appClientType] === undefined + ? message.appClientType + : $root.Enterprise.AppClientType[message.appClientType] + : message.appClientType; + if (message.expiration != null && message.hasOwnProperty('expiration')) + if (typeof message.expiration === 'number') object.expiration = options.longs === String ? String(message.expiration) : message.expiration; else - object.expiration = options.longs === String ? $util.Long.prototype.toString.call(message.expiration) : options.longs === Number ? new $util.LongBits(message.expiration.low >>> 0, message.expiration.high >>> 0).toNumber() : message.expiration; + object.expiration = + options.longs === String + ? $util.Long.prototype.toString.call(message.expiration) + : options.longs === Number + ? new $util.LongBits( + message.expiration.low >>> 0, + message.expiration.high >>> 0 + ).toNumber() + : message.expiration; return object; }; @@ -211346,16 +220317,15 @@ export const Vault = $root.Vault = (() => { */ KsmChange.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Vault.KsmChange"; + return typeUrlPrefix + '/Vault.KsmChange'; }; return KsmChange; })(); - Vault.ShareInvitation = (function() { - + Vault.ShareInvitation = (function () { /** * Properties of a ShareInvitation. * @memberof Vault @@ -211374,8 +220344,7 @@ export const Vault = $root.Vault = (() => { function ShareInvitation(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -211384,7 +220353,7 @@ export const Vault = $root.Vault = (() => { * @memberof Vault.ShareInvitation * @instance */ - ShareInvitation.prototype.username = ""; + ShareInvitation.prototype.username = ''; /** * Creates a new ShareInvitation instance using the specified properties. @@ -211408,10 +220377,9 @@ export const Vault = $root.Vault = (() => { * @returns {$protobuf.Writer} Writer */ ShareInvitation.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.username != null && Object.hasOwnProperty.call(message, "username")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.username); + if (!writer) writer = $Writer.create(); + if (message.username != null && Object.hasOwnProperty.call(message, 'username')) + writer.uint32(/* id 1, wireType 2 =*/ 10).string(message.username); return writer; }; @@ -211440,19 +220408,19 @@ export const Vault = $root.Vault = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ShareInvitation.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.ShareInvitation(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Vault.ShareInvitation(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.username = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -211469,8 +220437,7 @@ export const Vault = $root.Vault = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ShareInvitation.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -211483,11 +220450,9 @@ export const Vault = $root.Vault = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ ShareInvitation.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.username != null && message.hasOwnProperty("username")) - if (!$util.isString(message.username)) - return "username: string expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.username != null && message.hasOwnProperty('username')) + if (!$util.isString(message.username)) return 'username: string expected'; return null; }; @@ -211500,11 +220465,9 @@ export const Vault = $root.Vault = (() => { * @returns {Vault.ShareInvitation} ShareInvitation */ ShareInvitation.fromObject = function fromObject(object) { - if (object instanceof $root.Vault.ShareInvitation) - return object; + if (object instanceof $root.Vault.ShareInvitation) return object; let message = new $root.Vault.ShareInvitation(); - if (object.username != null) - message.username = String(object.username); + if (object.username != null) message.username = String(object.username); return message; }; @@ -211518,13 +220481,10 @@ export const Vault = $root.Vault = (() => { * @returns {Object.} Plain object */ ShareInvitation.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.defaults) - object.username = ""; - if (message.username != null && message.hasOwnProperty("username")) - object.username = message.username; + if (options.defaults) object.username = ''; + if (message.username != null && message.hasOwnProperty('username')) object.username = message.username; return object; }; @@ -211549,16 +220509,15 @@ export const Vault = $root.Vault = (() => { */ ShareInvitation.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Vault.ShareInvitation"; + return typeUrlPrefix + '/Vault.ShareInvitation'; }; return ShareInvitation; })(); - Vault.User = (function() { - + Vault.User = (function () { /** * Properties of a User. * @memberof Vault @@ -211578,8 +220537,7 @@ export const Vault = $root.Vault = (() => { function User(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -211596,7 +220554,7 @@ export const Vault = $root.Vault = (() => { * @memberof Vault.User * @instance */ - User.prototype.username = ""; + User.prototype.username = ''; /** * Creates a new User instance using the specified properties. @@ -211620,12 +220578,11 @@ export const Vault = $root.Vault = (() => { * @returns {$protobuf.Writer} Writer */ User.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.accountUid != null && Object.hasOwnProperty.call(message, "accountUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.accountUid); - if (message.username != null && Object.hasOwnProperty.call(message, "username")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.username); + if (!writer) writer = $Writer.create(); + if (message.accountUid != null && Object.hasOwnProperty.call(message, 'accountUid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.accountUid); + if (message.username != null && Object.hasOwnProperty.call(message, 'username')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.username); return writer; }; @@ -211654,23 +220611,23 @@ export const Vault = $root.Vault = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ User.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.User(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Vault.User(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.accountUid = reader.bytes(); break; } - case 2: { + case 2: { message.username = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -211687,8 +220644,7 @@ export const Vault = $root.Vault = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ User.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -211701,14 +220657,17 @@ export const Vault = $root.Vault = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ User.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.accountUid != null && message.hasOwnProperty("accountUid")) - if (!(message.accountUid && typeof message.accountUid.length === "number" || $util.isString(message.accountUid))) - return "accountUid: buffer expected"; - if (message.username != null && message.hasOwnProperty("username")) - if (!$util.isString(message.username)) - return "username: string expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.accountUid != null && message.hasOwnProperty('accountUid')) + if ( + !( + (message.accountUid && typeof message.accountUid.length === 'number') || + $util.isString(message.accountUid) + ) + ) + return 'accountUid: buffer expected'; + if (message.username != null && message.hasOwnProperty('username')) + if (!$util.isString(message.username)) return 'username: string expected'; return null; }; @@ -211721,16 +220680,17 @@ export const Vault = $root.Vault = (() => { * @returns {Vault.User} User */ User.fromObject = function fromObject(object) { - if (object instanceof $root.Vault.User) - return object; + if (object instanceof $root.Vault.User) return object; let message = new $root.Vault.User(); if (object.accountUid != null) - if (typeof object.accountUid === "string") - $util.base64.decode(object.accountUid, message.accountUid = $util.newBuffer($util.base64.length(object.accountUid)), 0); - else if (object.accountUid.length >= 0) - message.accountUid = object.accountUid; - if (object.username != null) - message.username = String(object.username); + if (typeof object.accountUid === 'string') + $util.base64.decode( + object.accountUid, + (message.accountUid = $util.newBuffer($util.base64.length(object.accountUid))), + 0 + ); + else if (object.accountUid.length >= 0) message.accountUid = object.accountUid; + if (object.username != null) message.username = String(object.username); return message; }; @@ -211744,23 +220704,24 @@ export const Vault = $root.Vault = (() => { * @returns {Object.} Plain object */ User.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.accountUid = ""; + if (options.bytes === String) object.accountUid = ''; else { object.accountUid = []; - if (options.bytes !== Array) - object.accountUid = $util.newBuffer(object.accountUid); + if (options.bytes !== Array) object.accountUid = $util.newBuffer(object.accountUid); } - object.username = ""; + object.username = ''; } - if (message.accountUid != null && message.hasOwnProperty("accountUid")) - object.accountUid = options.bytes === String ? $util.base64.encode(message.accountUid, 0, message.accountUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.accountUid) : message.accountUid; - if (message.username != null && message.hasOwnProperty("username")) - object.username = message.username; + if (message.accountUid != null && message.hasOwnProperty('accountUid')) + object.accountUid = + options.bytes === String + ? $util.base64.encode(message.accountUid, 0, message.accountUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.accountUid) + : message.accountUid; + if (message.username != null && message.hasOwnProperty('username')) object.username = message.username; return object; }; @@ -211785,16 +220746,15 @@ export const Vault = $root.Vault = (() => { */ User.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Vault.User"; + return typeUrlPrefix + '/Vault.User'; }; return User; })(); - Vault.SyncDiagnostics = (function() { - + Vault.SyncDiagnostics = (function () { /** * Properties of a SyncDiagnostics. * @memberof Vault @@ -211817,8 +220777,7 @@ export const Vault = $root.Vault = (() => { function SyncDiagnostics(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -211843,7 +220802,7 @@ export const Vault = $root.Vault = (() => { * @memberof Vault.SyncDiagnostics * @instance */ - SyncDiagnostics.prototype.enterpriseUserId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + SyncDiagnostics.prototype.enterpriseUserId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * SyncDiagnostics syncedTo. @@ -211851,7 +220810,7 @@ export const Vault = $root.Vault = (() => { * @memberof Vault.SyncDiagnostics * @instance */ - SyncDiagnostics.prototype.syncedTo = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + SyncDiagnostics.prototype.syncedTo = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * SyncDiagnostics syncingTo. @@ -211859,7 +220818,7 @@ export const Vault = $root.Vault = (() => { * @memberof Vault.SyncDiagnostics * @instance */ - SyncDiagnostics.prototype.syncingTo = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + SyncDiagnostics.prototype.syncingTo = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * Creates a new SyncDiagnostics instance using the specified properties. @@ -211883,18 +220842,17 @@ export const Vault = $root.Vault = (() => { * @returns {$protobuf.Writer} Writer */ SyncDiagnostics.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.continuationToken != null && Object.hasOwnProperty.call(message, "continuationToken")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.continuationToken); - if (message.userId != null && Object.hasOwnProperty.call(message, "userId")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.userId); - if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "enterpriseUserId")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.enterpriseUserId); - if (message.syncedTo != null && Object.hasOwnProperty.call(message, "syncedTo")) - writer.uint32(/* id 4, wireType 0 =*/32).int64(message.syncedTo); - if (message.syncingTo != null && Object.hasOwnProperty.call(message, "syncingTo")) - writer.uint32(/* id 5, wireType 0 =*/40).int64(message.syncingTo); + if (!writer) writer = $Writer.create(); + if (message.continuationToken != null && Object.hasOwnProperty.call(message, 'continuationToken')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.continuationToken); + if (message.userId != null && Object.hasOwnProperty.call(message, 'userId')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int32(message.userId); + if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, 'enterpriseUserId')) + writer.uint32(/* id 3, wireType 0 =*/ 24).int64(message.enterpriseUserId); + if (message.syncedTo != null && Object.hasOwnProperty.call(message, 'syncedTo')) + writer.uint32(/* id 4, wireType 0 =*/ 32).int64(message.syncedTo); + if (message.syncingTo != null && Object.hasOwnProperty.call(message, 'syncingTo')) + writer.uint32(/* id 5, wireType 0 =*/ 40).int64(message.syncingTo); return writer; }; @@ -211923,35 +220881,35 @@ export const Vault = $root.Vault = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SyncDiagnostics.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.SyncDiagnostics(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Vault.SyncDiagnostics(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.continuationToken = reader.bytes(); break; } - case 2: { + case 2: { message.userId = reader.int32(); break; } - case 3: { + case 3: { message.enterpriseUserId = reader.int64(); break; } - case 4: { + case 4: { message.syncedTo = reader.int64(); break; } - case 5: { + case 5: { message.syncingTo = reader.int64(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -211968,8 +220926,7 @@ export const Vault = $root.Vault = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SyncDiagnostics.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -211982,23 +220939,47 @@ export const Vault = $root.Vault = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ SyncDiagnostics.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.continuationToken != null && message.hasOwnProperty("continuationToken")) - if (!(message.continuationToken && typeof message.continuationToken.length === "number" || $util.isString(message.continuationToken))) - return "continuationToken: buffer expected"; - if (message.userId != null && message.hasOwnProperty("userId")) - if (!$util.isInteger(message.userId)) - return "userId: integer expected"; - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (!$util.isInteger(message.enterpriseUserId) && !(message.enterpriseUserId && $util.isInteger(message.enterpriseUserId.low) && $util.isInteger(message.enterpriseUserId.high))) - return "enterpriseUserId: integer|Long expected"; - if (message.syncedTo != null && message.hasOwnProperty("syncedTo")) - if (!$util.isInteger(message.syncedTo) && !(message.syncedTo && $util.isInteger(message.syncedTo.low) && $util.isInteger(message.syncedTo.high))) - return "syncedTo: integer|Long expected"; - if (message.syncingTo != null && message.hasOwnProperty("syncingTo")) - if (!$util.isInteger(message.syncingTo) && !(message.syncingTo && $util.isInteger(message.syncingTo.low) && $util.isInteger(message.syncingTo.high))) - return "syncingTo: integer|Long expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.continuationToken != null && message.hasOwnProperty('continuationToken')) + if ( + !( + (message.continuationToken && typeof message.continuationToken.length === 'number') || + $util.isString(message.continuationToken) + ) + ) + return 'continuationToken: buffer expected'; + if (message.userId != null && message.hasOwnProperty('userId')) + if (!$util.isInteger(message.userId)) return 'userId: integer expected'; + if (message.enterpriseUserId != null && message.hasOwnProperty('enterpriseUserId')) + if ( + !$util.isInteger(message.enterpriseUserId) && + !( + message.enterpriseUserId && + $util.isInteger(message.enterpriseUserId.low) && + $util.isInteger(message.enterpriseUserId.high) + ) + ) + return 'enterpriseUserId: integer|Long expected'; + if (message.syncedTo != null && message.hasOwnProperty('syncedTo')) + if ( + !$util.isInteger(message.syncedTo) && + !( + message.syncedTo && + $util.isInteger(message.syncedTo.low) && + $util.isInteger(message.syncedTo.high) + ) + ) + return 'syncedTo: integer|Long expected'; + if (message.syncingTo != null && message.hasOwnProperty('syncingTo')) + if ( + !$util.isInteger(message.syncingTo) && + !( + message.syncingTo && + $util.isInteger(message.syncingTo.low) && + $util.isInteger(message.syncingTo.high) + ) + ) + return 'syncingTo: integer|Long expected'; return null; }; @@ -212011,43 +220992,47 @@ export const Vault = $root.Vault = (() => { * @returns {Vault.SyncDiagnostics} SyncDiagnostics */ SyncDiagnostics.fromObject = function fromObject(object) { - if (object instanceof $root.Vault.SyncDiagnostics) - return object; + if (object instanceof $root.Vault.SyncDiagnostics) return object; let message = new $root.Vault.SyncDiagnostics(); if (object.continuationToken != null) - if (typeof object.continuationToken === "string") - $util.base64.decode(object.continuationToken, message.continuationToken = $util.newBuffer($util.base64.length(object.continuationToken)), 0); - else if (object.continuationToken.length >= 0) - message.continuationToken = object.continuationToken; - if (object.userId != null) - message.userId = object.userId | 0; + if (typeof object.continuationToken === 'string') + $util.base64.decode( + object.continuationToken, + (message.continuationToken = $util.newBuffer($util.base64.length(object.continuationToken))), + 0 + ); + else if (object.continuationToken.length >= 0) message.continuationToken = object.continuationToken; + if (object.userId != null) message.userId = object.userId | 0; if (object.enterpriseUserId != null) if ($util.Long) (message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId)).unsigned = false; - else if (typeof object.enterpriseUserId === "string") + else if (typeof object.enterpriseUserId === 'string') message.enterpriseUserId = parseInt(object.enterpriseUserId, 10); - else if (typeof object.enterpriseUserId === "number") + else if (typeof object.enterpriseUserId === 'number') message.enterpriseUserId = object.enterpriseUserId; - else if (typeof object.enterpriseUserId === "object") - message.enterpriseUserId = new $util.LongBits(object.enterpriseUserId.low >>> 0, object.enterpriseUserId.high >>> 0).toNumber(); + else if (typeof object.enterpriseUserId === 'object') + message.enterpriseUserId = new $util.LongBits( + object.enterpriseUserId.low >>> 0, + object.enterpriseUserId.high >>> 0 + ).toNumber(); if (object.syncedTo != null) - if ($util.Long) - (message.syncedTo = $util.Long.fromValue(object.syncedTo)).unsigned = false; - else if (typeof object.syncedTo === "string") - message.syncedTo = parseInt(object.syncedTo, 10); - else if (typeof object.syncedTo === "number") - message.syncedTo = object.syncedTo; - else if (typeof object.syncedTo === "object") - message.syncedTo = new $util.LongBits(object.syncedTo.low >>> 0, object.syncedTo.high >>> 0).toNumber(); + if ($util.Long) (message.syncedTo = $util.Long.fromValue(object.syncedTo)).unsigned = false; + else if (typeof object.syncedTo === 'string') message.syncedTo = parseInt(object.syncedTo, 10); + else if (typeof object.syncedTo === 'number') message.syncedTo = object.syncedTo; + else if (typeof object.syncedTo === 'object') + message.syncedTo = new $util.LongBits( + object.syncedTo.low >>> 0, + object.syncedTo.high >>> 0 + ).toNumber(); if (object.syncingTo != null) - if ($util.Long) - (message.syncingTo = $util.Long.fromValue(object.syncingTo)).unsigned = false; - else if (typeof object.syncingTo === "string") - message.syncingTo = parseInt(object.syncingTo, 10); - else if (typeof object.syncingTo === "number") - message.syncingTo = object.syncingTo; - else if (typeof object.syncingTo === "object") - message.syncingTo = new $util.LongBits(object.syncingTo.low >>> 0, object.syncingTo.high >>> 0).toNumber(); + if ($util.Long) (message.syncingTo = $util.Long.fromValue(object.syncingTo)).unsigned = false; + else if (typeof object.syncingTo === 'string') message.syncingTo = parseInt(object.syncingTo, 10); + else if (typeof object.syncingTo === 'number') message.syncingTo = object.syncingTo; + else if (typeof object.syncingTo === 'object') + message.syncingTo = new $util.LongBits( + object.syncingTo.low >>> 0, + object.syncingTo.high >>> 0 + ).toNumber(); return message; }; @@ -212061,53 +221046,73 @@ export const Vault = $root.Vault = (() => { * @returns {Object.} Plain object */ SyncDiagnostics.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.continuationToken = ""; + if (options.bytes === String) object.continuationToken = ''; else { object.continuationToken = []; - if (options.bytes !== Array) - object.continuationToken = $util.newBuffer(object.continuationToken); + if (options.bytes !== Array) object.continuationToken = $util.newBuffer(object.continuationToken); } object.userId = 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.enterpriseUserId = options.longs === String ? "0" : 0; + object.enterpriseUserId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.enterpriseUserId = options.longs === String ? '0' : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.syncedTo = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.syncedTo = options.longs === String ? "0" : 0; + object.syncedTo = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.syncedTo = options.longs === String ? '0' : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.syncingTo = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.syncingTo = options.longs === String ? "0" : 0; - } - if (message.continuationToken != null && message.hasOwnProperty("continuationToken")) - object.continuationToken = options.bytes === String ? $util.base64.encode(message.continuationToken, 0, message.continuationToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.continuationToken) : message.continuationToken; - if (message.userId != null && message.hasOwnProperty("userId")) - object.userId = message.userId; - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (typeof message.enterpriseUserId === "number") - object.enterpriseUserId = options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; + object.syncingTo = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.syncingTo = options.longs === String ? '0' : 0; + } + if (message.continuationToken != null && message.hasOwnProperty('continuationToken')) + object.continuationToken = + options.bytes === String + ? $util.base64.encode(message.continuationToken, 0, message.continuationToken.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.continuationToken) + : message.continuationToken; + if (message.userId != null && message.hasOwnProperty('userId')) object.userId = message.userId; + if (message.enterpriseUserId != null && message.hasOwnProperty('enterpriseUserId')) + if (typeof message.enterpriseUserId === 'number') + object.enterpriseUserId = + options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; else - object.enterpriseUserId = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseUserId) : options.longs === Number ? new $util.LongBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0).toNumber() : message.enterpriseUserId; - if (message.syncedTo != null && message.hasOwnProperty("syncedTo")) - if (typeof message.syncedTo === "number") + object.enterpriseUserId = + options.longs === String + ? $util.Long.prototype.toString.call(message.enterpriseUserId) + : options.longs === Number + ? new $util.LongBits( + message.enterpriseUserId.low >>> 0, + message.enterpriseUserId.high >>> 0 + ).toNumber() + : message.enterpriseUserId; + if (message.syncedTo != null && message.hasOwnProperty('syncedTo')) + if (typeof message.syncedTo === 'number') object.syncedTo = options.longs === String ? String(message.syncedTo) : message.syncedTo; else - object.syncedTo = options.longs === String ? $util.Long.prototype.toString.call(message.syncedTo) : options.longs === Number ? new $util.LongBits(message.syncedTo.low >>> 0, message.syncedTo.high >>> 0).toNumber() : message.syncedTo; - if (message.syncingTo != null && message.hasOwnProperty("syncingTo")) - if (typeof message.syncingTo === "number") + object.syncedTo = + options.longs === String + ? $util.Long.prototype.toString.call(message.syncedTo) + : options.longs === Number + ? new $util.LongBits(message.syncedTo.low >>> 0, message.syncedTo.high >>> 0).toNumber() + : message.syncedTo; + if (message.syncingTo != null && message.hasOwnProperty('syncingTo')) + if (typeof message.syncingTo === 'number') object.syncingTo = options.longs === String ? String(message.syncingTo) : message.syncingTo; else - object.syncingTo = options.longs === String ? $util.Long.prototype.toString.call(message.syncingTo) : options.longs === Number ? new $util.LongBits(message.syncingTo.low >>> 0, message.syncingTo.high >>> 0).toNumber() : message.syncingTo; + object.syncingTo = + options.longs === String + ? $util.Long.prototype.toString.call(message.syncingTo) + : options.longs === Number + ? new $util.LongBits(message.syncingTo.low >>> 0, message.syncingTo.high >>> 0).toNumber() + : message.syncingTo; return object; }; @@ -212132,9 +221137,9 @@ export const Vault = $root.Vault = (() => { */ SyncDiagnostics.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Vault.SyncDiagnostics"; + return typeUrlPrefix + '/Vault.SyncDiagnostics'; }; return SyncDiagnostics; @@ -212149,17 +221154,17 @@ export const Vault = $root.Vault = (() => { * @property {number} RRST_SUCCESS=2 RRST_SUCCESS value * @property {number} RRST_FAILURE=3 RRST_FAILURE value */ - Vault.RecordRotationStatus = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "RRST_NOT_ROTATED"] = 0; - values[valuesById[1] = "RRST_IN_PROGRESS"] = 1; - values[valuesById[2] = "RRST_SUCCESS"] = 2; - values[valuesById[3] = "RRST_FAILURE"] = 3; + Vault.RecordRotationStatus = (function () { + const valuesById = {}, + values = Object.create(valuesById); + values[(valuesById[0] = 'RRST_NOT_ROTATED')] = 0; + values[(valuesById[1] = 'RRST_IN_PROGRESS')] = 1; + values[(valuesById[2] = 'RRST_SUCCESS')] = 2; + values[(valuesById[3] = 'RRST_FAILURE')] = 3; return values; })(); - Vault.RecordRotation = (function() { - + Vault.RecordRotation = (function () { /** * Properties of a RecordRotation. * @memberof Vault @@ -212186,8 +221191,7 @@ export const Vault = $root.Vault = (() => { function RecordRotation(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -212204,7 +221208,7 @@ export const Vault = $root.Vault = (() => { * @memberof Vault.RecordRotation * @instance */ - RecordRotation.prototype.revision = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + RecordRotation.prototype.revision = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * RecordRotation configurationUid. @@ -212220,7 +221224,7 @@ export const Vault = $root.Vault = (() => { * @memberof Vault.RecordRotation * @instance */ - RecordRotation.prototype.schedule = ""; + RecordRotation.prototype.schedule = ''; /** * RecordRotation pwdComplexity. @@ -212252,7 +221256,7 @@ export const Vault = $root.Vault = (() => { * @memberof Vault.RecordRotation * @instance */ - RecordRotation.prototype.lastRotation = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + RecordRotation.prototype.lastRotation = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * RecordRotation lastRotationStatus. @@ -212284,26 +221288,25 @@ export const Vault = $root.Vault = (() => { * @returns {$protobuf.Writer} Writer */ RecordRotation.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); - if (message.revision != null && Object.hasOwnProperty.call(message, "revision")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.revision); - if (message.configurationUid != null && Object.hasOwnProperty.call(message, "configurationUid")) - writer.uint32(/* id 3, wireType 2 =*/26).bytes(message.configurationUid); - if (message.schedule != null && Object.hasOwnProperty.call(message, "schedule")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.schedule); - if (message.pwdComplexity != null && Object.hasOwnProperty.call(message, "pwdComplexity")) - writer.uint32(/* id 5, wireType 2 =*/42).bytes(message.pwdComplexity); - if (message.disabled != null && Object.hasOwnProperty.call(message, "disabled")) - writer.uint32(/* id 6, wireType 0 =*/48).bool(message.disabled); - if (message.resourceUid != null && Object.hasOwnProperty.call(message, "resourceUid")) - writer.uint32(/* id 7, wireType 2 =*/58).bytes(message.resourceUid); - if (message.lastRotation != null && Object.hasOwnProperty.call(message, "lastRotation")) - writer.uint32(/* id 8, wireType 0 =*/64).int64(message.lastRotation); - if (message.lastRotationStatus != null && Object.hasOwnProperty.call(message, "lastRotationStatus")) - writer.uint32(/* id 9, wireType 0 =*/72).int32(message.lastRotationStatus); + if (!writer) writer = $Writer.create(); + if (message.recordUid != null && Object.hasOwnProperty.call(message, 'recordUid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.recordUid); + if (message.revision != null && Object.hasOwnProperty.call(message, 'revision')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int64(message.revision); + if (message.configurationUid != null && Object.hasOwnProperty.call(message, 'configurationUid')) + writer.uint32(/* id 3, wireType 2 =*/ 26).bytes(message.configurationUid); + if (message.schedule != null && Object.hasOwnProperty.call(message, 'schedule')) + writer.uint32(/* id 4, wireType 2 =*/ 34).string(message.schedule); + if (message.pwdComplexity != null && Object.hasOwnProperty.call(message, 'pwdComplexity')) + writer.uint32(/* id 5, wireType 2 =*/ 42).bytes(message.pwdComplexity); + if (message.disabled != null && Object.hasOwnProperty.call(message, 'disabled')) + writer.uint32(/* id 6, wireType 0 =*/ 48).bool(message.disabled); + if (message.resourceUid != null && Object.hasOwnProperty.call(message, 'resourceUid')) + writer.uint32(/* id 7, wireType 2 =*/ 58).bytes(message.resourceUid); + if (message.lastRotation != null && Object.hasOwnProperty.call(message, 'lastRotation')) + writer.uint32(/* id 8, wireType 0 =*/ 64).int64(message.lastRotation); + if (message.lastRotationStatus != null && Object.hasOwnProperty.call(message, 'lastRotationStatus')) + writer.uint32(/* id 9, wireType 0 =*/ 72).int32(message.lastRotationStatus); return writer; }; @@ -212332,51 +221335,51 @@ export const Vault = $root.Vault = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RecordRotation.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.RecordRotation(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Vault.RecordRotation(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.recordUid = reader.bytes(); break; } - case 2: { + case 2: { message.revision = reader.int64(); break; } - case 3: { + case 3: { message.configurationUid = reader.bytes(); break; } - case 4: { + case 4: { message.schedule = reader.string(); break; } - case 5: { + case 5: { message.pwdComplexity = reader.bytes(); break; } - case 6: { + case 6: { message.disabled = reader.bool(); break; } - case 7: { + case 7: { message.resourceUid = reader.bytes(); break; } - case 8: { + case 8: { message.lastRotation = reader.int64(); break; } - case 9: { + case 9: { message.lastRotationStatus = reader.int32(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -212393,8 +221396,7 @@ export const Vault = $root.Vault = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ RecordRotation.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -212407,41 +221409,72 @@ export const Vault = $root.Vault = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ RecordRotation.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) - return "recordUid: buffer expected"; - if (message.revision != null && message.hasOwnProperty("revision")) - if (!$util.isInteger(message.revision) && !(message.revision && $util.isInteger(message.revision.low) && $util.isInteger(message.revision.high))) - return "revision: integer|Long expected"; - if (message.configurationUid != null && message.hasOwnProperty("configurationUid")) - if (!(message.configurationUid && typeof message.configurationUid.length === "number" || $util.isString(message.configurationUid))) - return "configurationUid: buffer expected"; - if (message.schedule != null && message.hasOwnProperty("schedule")) - if (!$util.isString(message.schedule)) - return "schedule: string expected"; - if (message.pwdComplexity != null && message.hasOwnProperty("pwdComplexity")) - if (!(message.pwdComplexity && typeof message.pwdComplexity.length === "number" || $util.isString(message.pwdComplexity))) - return "pwdComplexity: buffer expected"; - if (message.disabled != null && message.hasOwnProperty("disabled")) - if (typeof message.disabled !== "boolean") - return "disabled: boolean expected"; - if (message.resourceUid != null && message.hasOwnProperty("resourceUid")) - if (!(message.resourceUid && typeof message.resourceUid.length === "number" || $util.isString(message.resourceUid))) - return "resourceUid: buffer expected"; - if (message.lastRotation != null && message.hasOwnProperty("lastRotation")) - if (!$util.isInteger(message.lastRotation) && !(message.lastRotation && $util.isInteger(message.lastRotation.low) && $util.isInteger(message.lastRotation.high))) - return "lastRotation: integer|Long expected"; - if (message.lastRotationStatus != null && message.hasOwnProperty("lastRotationStatus")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.recordUid != null && message.hasOwnProperty('recordUid')) + if ( + !( + (message.recordUid && typeof message.recordUid.length === 'number') || + $util.isString(message.recordUid) + ) + ) + return 'recordUid: buffer expected'; + if (message.revision != null && message.hasOwnProperty('revision')) + if ( + !$util.isInteger(message.revision) && + !( + message.revision && + $util.isInteger(message.revision.low) && + $util.isInteger(message.revision.high) + ) + ) + return 'revision: integer|Long expected'; + if (message.configurationUid != null && message.hasOwnProperty('configurationUid')) + if ( + !( + (message.configurationUid && typeof message.configurationUid.length === 'number') || + $util.isString(message.configurationUid) + ) + ) + return 'configurationUid: buffer expected'; + if (message.schedule != null && message.hasOwnProperty('schedule')) + if (!$util.isString(message.schedule)) return 'schedule: string expected'; + if (message.pwdComplexity != null && message.hasOwnProperty('pwdComplexity')) + if ( + !( + (message.pwdComplexity && typeof message.pwdComplexity.length === 'number') || + $util.isString(message.pwdComplexity) + ) + ) + return 'pwdComplexity: buffer expected'; + if (message.disabled != null && message.hasOwnProperty('disabled')) + if (typeof message.disabled !== 'boolean') return 'disabled: boolean expected'; + if (message.resourceUid != null && message.hasOwnProperty('resourceUid')) + if ( + !( + (message.resourceUid && typeof message.resourceUid.length === 'number') || + $util.isString(message.resourceUid) + ) + ) + return 'resourceUid: buffer expected'; + if (message.lastRotation != null && message.hasOwnProperty('lastRotation')) + if ( + !$util.isInteger(message.lastRotation) && + !( + message.lastRotation && + $util.isInteger(message.lastRotation.low) && + $util.isInteger(message.lastRotation.high) + ) + ) + return 'lastRotation: integer|Long expected'; + if (message.lastRotationStatus != null && message.hasOwnProperty('lastRotationStatus')) switch (message.lastRotationStatus) { - default: - return "lastRotationStatus: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; + default: + return 'lastRotationStatus: enum value expected'; + case 0: + case 1: + case 2: + case 3: + break; } return null; }; @@ -212455,74 +221488,84 @@ export const Vault = $root.Vault = (() => { * @returns {Vault.RecordRotation} RecordRotation */ RecordRotation.fromObject = function fromObject(object) { - if (object instanceof $root.Vault.RecordRotation) - return object; + if (object instanceof $root.Vault.RecordRotation) return object; let message = new $root.Vault.RecordRotation(); 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 (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.revision != null) - if ($util.Long) - (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; - else if (typeof object.revision === "string") - message.revision = parseInt(object.revision, 10); - else if (typeof object.revision === "number") - message.revision = object.revision; - else if (typeof object.revision === "object") - message.revision = new $util.LongBits(object.revision.low >>> 0, object.revision.high >>> 0).toNumber(); + if ($util.Long) (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; + else if (typeof object.revision === 'string') message.revision = parseInt(object.revision, 10); + else if (typeof object.revision === 'number') message.revision = object.revision; + else if (typeof object.revision === 'object') + message.revision = new $util.LongBits( + object.revision.low >>> 0, + object.revision.high >>> 0 + ).toNumber(); if (object.configurationUid != null) - if (typeof object.configurationUid === "string") - $util.base64.decode(object.configurationUid, message.configurationUid = $util.newBuffer($util.base64.length(object.configurationUid)), 0); - else if (object.configurationUid.length >= 0) - message.configurationUid = object.configurationUid; - if (object.schedule != null) - message.schedule = String(object.schedule); + if (typeof object.configurationUid === 'string') + $util.base64.decode( + object.configurationUid, + (message.configurationUid = $util.newBuffer($util.base64.length(object.configurationUid))), + 0 + ); + else if (object.configurationUid.length >= 0) message.configurationUid = object.configurationUid; + if (object.schedule != null) message.schedule = String(object.schedule); if (object.pwdComplexity != null) - if (typeof object.pwdComplexity === "string") - $util.base64.decode(object.pwdComplexity, message.pwdComplexity = $util.newBuffer($util.base64.length(object.pwdComplexity)), 0); - else if (object.pwdComplexity.length >= 0) - message.pwdComplexity = object.pwdComplexity; - if (object.disabled != null) - message.disabled = Boolean(object.disabled); + if (typeof object.pwdComplexity === 'string') + $util.base64.decode( + object.pwdComplexity, + (message.pwdComplexity = $util.newBuffer($util.base64.length(object.pwdComplexity))), + 0 + ); + else if (object.pwdComplexity.length >= 0) message.pwdComplexity = object.pwdComplexity; + if (object.disabled != null) message.disabled = Boolean(object.disabled); if (object.resourceUid != null) - if (typeof object.resourceUid === "string") - $util.base64.decode(object.resourceUid, message.resourceUid = $util.newBuffer($util.base64.length(object.resourceUid)), 0); - else if (object.resourceUid.length >= 0) - message.resourceUid = object.resourceUid; + if (typeof object.resourceUid === 'string') + $util.base64.decode( + object.resourceUid, + (message.resourceUid = $util.newBuffer($util.base64.length(object.resourceUid))), + 0 + ); + else if (object.resourceUid.length >= 0) message.resourceUid = object.resourceUid; if (object.lastRotation != null) - if ($util.Long) - (message.lastRotation = $util.Long.fromValue(object.lastRotation)).unsigned = false; - else if (typeof object.lastRotation === "string") + if ($util.Long) (message.lastRotation = $util.Long.fromValue(object.lastRotation)).unsigned = false; + else if (typeof object.lastRotation === 'string') message.lastRotation = parseInt(object.lastRotation, 10); - else if (typeof object.lastRotation === "number") - message.lastRotation = object.lastRotation; - else if (typeof object.lastRotation === "object") - message.lastRotation = new $util.LongBits(object.lastRotation.low >>> 0, object.lastRotation.high >>> 0).toNumber(); + else if (typeof object.lastRotation === 'number') message.lastRotation = object.lastRotation; + else if (typeof object.lastRotation === 'object') + message.lastRotation = new $util.LongBits( + object.lastRotation.low >>> 0, + object.lastRotation.high >>> 0 + ).toNumber(); switch (object.lastRotationStatus) { - default: - if (typeof object.lastRotationStatus === "number") { - message.lastRotationStatus = object.lastRotationStatus; + default: + if (typeof object.lastRotationStatus === 'number') { + message.lastRotationStatus = object.lastRotationStatus; + break; + } + break; + case 'RRST_NOT_ROTATED': + case 0: + message.lastRotationStatus = 0; + break; + case 'RRST_IN_PROGRESS': + case 1: + message.lastRotationStatus = 1; + break; + case 'RRST_SUCCESS': + case 2: + message.lastRotationStatus = 2; + break; + case 'RRST_FAILURE': + case 3: + message.lastRotationStatus = 3; break; - } - break; - case "RRST_NOT_ROTATED": - case 0: - message.lastRotationStatus = 0; - break; - case "RRST_IN_PROGRESS": - case 1: - message.lastRotationStatus = 1; - break; - case "RRST_SUCCESS": - case 2: - message.lastRotationStatus = 2; - break; - case "RRST_FAILURE": - case 3: - message.lastRotationStatus = 3; - break; } return message; }; @@ -212537,76 +221580,104 @@ export const Vault = $root.Vault = (() => { * @returns {Object.} Plain object */ RecordRotation.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.recordUid = ""; + if (options.bytes === String) object.recordUid = ''; else { object.recordUid = []; - if (options.bytes !== Array) - object.recordUid = $util.newBuffer(object.recordUid); + if (options.bytes !== Array) object.recordUid = $util.newBuffer(object.recordUid); } if ($util.Long) { let long = new $util.Long(0, 0, false); - object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.revision = options.longs === String ? "0" : 0; - if (options.bytes === String) - object.configurationUid = ""; + object.revision = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.revision = options.longs === String ? '0' : 0; + if (options.bytes === String) object.configurationUid = ''; else { object.configurationUid = []; - if (options.bytes !== Array) - object.configurationUid = $util.newBuffer(object.configurationUid); + if (options.bytes !== Array) object.configurationUid = $util.newBuffer(object.configurationUid); } - object.schedule = ""; - if (options.bytes === String) - object.pwdComplexity = ""; + object.schedule = ''; + if (options.bytes === String) object.pwdComplexity = ''; else { object.pwdComplexity = []; - if (options.bytes !== Array) - object.pwdComplexity = $util.newBuffer(object.pwdComplexity); + if (options.bytes !== Array) object.pwdComplexity = $util.newBuffer(object.pwdComplexity); } object.disabled = false; - if (options.bytes === String) - object.resourceUid = ""; + if (options.bytes === String) object.resourceUid = ''; else { object.resourceUid = []; - if (options.bytes !== Array) - object.resourceUid = $util.newBuffer(object.resourceUid); + if (options.bytes !== Array) object.resourceUid = $util.newBuffer(object.resourceUid); } if ($util.Long) { let long = new $util.Long(0, 0, false); - object.lastRotation = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.lastRotation = options.longs === String ? "0" : 0; - object.lastRotationStatus = options.enums === String ? "RRST_NOT_ROTATED" : 0; - } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; - if (message.revision != null && message.hasOwnProperty("revision")) - if (typeof message.revision === "number") + object.lastRotation = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.lastRotation = options.longs === String ? '0' : 0; + object.lastRotationStatus = options.enums === String ? 'RRST_NOT_ROTATED' : 0; + } + if (message.recordUid != null && message.hasOwnProperty('recordUid')) + object.recordUid = + options.bytes === String + ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.recordUid) + : message.recordUid; + if (message.revision != null && message.hasOwnProperty('revision')) + if (typeof message.revision === 'number') object.revision = options.longs === String ? String(message.revision) : message.revision; else - object.revision = options.longs === String ? $util.Long.prototype.toString.call(message.revision) : options.longs === Number ? new $util.LongBits(message.revision.low >>> 0, message.revision.high >>> 0).toNumber() : message.revision; - if (message.configurationUid != null && message.hasOwnProperty("configurationUid")) - object.configurationUid = options.bytes === String ? $util.base64.encode(message.configurationUid, 0, message.configurationUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.configurationUid) : message.configurationUid; - if (message.schedule != null && message.hasOwnProperty("schedule")) - object.schedule = message.schedule; - if (message.pwdComplexity != null && message.hasOwnProperty("pwdComplexity")) - object.pwdComplexity = options.bytes === String ? $util.base64.encode(message.pwdComplexity, 0, message.pwdComplexity.length) : options.bytes === Array ? Array.prototype.slice.call(message.pwdComplexity) : message.pwdComplexity; - if (message.disabled != null && message.hasOwnProperty("disabled")) - object.disabled = message.disabled; - if (message.resourceUid != null && message.hasOwnProperty("resourceUid")) - object.resourceUid = options.bytes === String ? $util.base64.encode(message.resourceUid, 0, message.resourceUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.resourceUid) : message.resourceUid; - if (message.lastRotation != null && message.hasOwnProperty("lastRotation")) - if (typeof message.lastRotation === "number") - object.lastRotation = options.longs === String ? String(message.lastRotation) : message.lastRotation; + object.revision = + options.longs === String + ? $util.Long.prototype.toString.call(message.revision) + : options.longs === Number + ? new $util.LongBits(message.revision.low >>> 0, message.revision.high >>> 0).toNumber() + : message.revision; + if (message.configurationUid != null && message.hasOwnProperty('configurationUid')) + object.configurationUid = + options.bytes === String + ? $util.base64.encode(message.configurationUid, 0, message.configurationUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.configurationUid) + : message.configurationUid; + if (message.schedule != null && message.hasOwnProperty('schedule')) object.schedule = message.schedule; + if (message.pwdComplexity != null && message.hasOwnProperty('pwdComplexity')) + object.pwdComplexity = + options.bytes === String + ? $util.base64.encode(message.pwdComplexity, 0, message.pwdComplexity.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.pwdComplexity) + : message.pwdComplexity; + if (message.disabled != null && message.hasOwnProperty('disabled')) object.disabled = message.disabled; + if (message.resourceUid != null && message.hasOwnProperty('resourceUid')) + object.resourceUid = + options.bytes === String + ? $util.base64.encode(message.resourceUid, 0, message.resourceUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.resourceUid) + : message.resourceUid; + if (message.lastRotation != null && message.hasOwnProperty('lastRotation')) + if (typeof message.lastRotation === 'number') + object.lastRotation = + options.longs === String ? String(message.lastRotation) : message.lastRotation; else - object.lastRotation = options.longs === String ? $util.Long.prototype.toString.call(message.lastRotation) : options.longs === Number ? new $util.LongBits(message.lastRotation.low >>> 0, message.lastRotation.high >>> 0).toNumber() : message.lastRotation; - if (message.lastRotationStatus != null && message.hasOwnProperty("lastRotationStatus")) - object.lastRotationStatus = options.enums === String ? $root.Vault.RecordRotationStatus[message.lastRotationStatus] === undefined ? message.lastRotationStatus : $root.Vault.RecordRotationStatus[message.lastRotationStatus] : message.lastRotationStatus; + object.lastRotation = + options.longs === String + ? $util.Long.prototype.toString.call(message.lastRotation) + : options.longs === Number + ? new $util.LongBits( + message.lastRotation.low >>> 0, + message.lastRotation.high >>> 0 + ).toNumber() + : message.lastRotation; + if (message.lastRotationStatus != null && message.hasOwnProperty('lastRotationStatus')) + object.lastRotationStatus = + options.enums === String + ? $root.Vault.RecordRotationStatus[message.lastRotationStatus] === undefined + ? message.lastRotationStatus + : $root.Vault.RecordRotationStatus[message.lastRotationStatus] + : message.lastRotationStatus; return object; }; @@ -212631,16 +221702,15 @@ export const Vault = $root.Vault = (() => { */ RecordRotation.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Vault.RecordRotation"; + return typeUrlPrefix + '/Vault.RecordRotation'; }; return RecordRotation; })(); - Vault.SecurityScoreData = (function() { - + Vault.SecurityScoreData = (function () { /** * Properties of a SecurityScoreData. * @memberof Vault @@ -212661,8 +221731,7 @@ export const Vault = $root.Vault = (() => { function SecurityScoreData(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -212687,7 +221756,7 @@ export const Vault = $root.Vault = (() => { * @memberof Vault.SecurityScoreData * @instance */ - SecurityScoreData.prototype.revision = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + SecurityScoreData.prototype.revision = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * Creates a new SecurityScoreData instance using the specified properties. @@ -212711,14 +221780,13 @@ export const Vault = $root.Vault = (() => { * @returns {$protobuf.Writer} Writer */ SecurityScoreData.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.recordUid != null && Object.hasOwnProperty.call(message, "recordUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUid); - if (message.data != null && Object.hasOwnProperty.call(message, "data")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.data); - if (message.revision != null && Object.hasOwnProperty.call(message, "revision")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.revision); + if (!writer) writer = $Writer.create(); + if (message.recordUid != null && Object.hasOwnProperty.call(message, 'recordUid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.recordUid); + if (message.data != null && Object.hasOwnProperty.call(message, 'data')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.data); + if (message.revision != null && Object.hasOwnProperty.call(message, 'revision')) + writer.uint32(/* id 3, wireType 0 =*/ 24).int64(message.revision); return writer; }; @@ -212747,27 +221815,27 @@ export const Vault = $root.Vault = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SecurityScoreData.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.SecurityScoreData(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Vault.SecurityScoreData(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.recordUid = reader.bytes(); break; } - case 2: { + case 2: { message.data = reader.bytes(); break; } - case 3: { + case 3: { message.revision = reader.int64(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -212784,8 +221852,7 @@ export const Vault = $root.Vault = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SecurityScoreData.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -212798,17 +221865,28 @@ export const Vault = $root.Vault = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ SecurityScoreData.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - if (!(message.recordUid && typeof message.recordUid.length === "number" || $util.isString(message.recordUid))) - return "recordUid: buffer expected"; - if (message.data != null && message.hasOwnProperty("data")) - if (!(message.data && typeof message.data.length === "number" || $util.isString(message.data))) - return "data: buffer expected"; - if (message.revision != null && message.hasOwnProperty("revision")) - if (!$util.isInteger(message.revision) && !(message.revision && $util.isInteger(message.revision.low) && $util.isInteger(message.revision.high))) - return "revision: integer|Long expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.recordUid != null && message.hasOwnProperty('recordUid')) + if ( + !( + (message.recordUid && typeof message.recordUid.length === 'number') || + $util.isString(message.recordUid) + ) + ) + return 'recordUid: buffer expected'; + if (message.data != null && message.hasOwnProperty('data')) + if (!((message.data && typeof message.data.length === 'number') || $util.isString(message.data))) + return 'data: buffer expected'; + if (message.revision != null && message.hasOwnProperty('revision')) + if ( + !$util.isInteger(message.revision) && + !( + message.revision && + $util.isInteger(message.revision.low) && + $util.isInteger(message.revision.high) + ) + ) + return 'revision: integer|Long expected'; return null; }; @@ -212821,28 +221899,33 @@ export const Vault = $root.Vault = (() => { * @returns {Vault.SecurityScoreData} SecurityScoreData */ SecurityScoreData.fromObject = function fromObject(object) { - if (object instanceof $root.Vault.SecurityScoreData) - return object; + if (object instanceof $root.Vault.SecurityScoreData) return object; let message = new $root.Vault.SecurityScoreData(); 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 (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.data != null) - if (typeof object.data === "string") - $util.base64.decode(object.data, message.data = $util.newBuffer($util.base64.length(object.data)), 0); - else if (object.data.length >= 0) - message.data = object.data; + if (typeof object.data === 'string') + $util.base64.decode( + object.data, + (message.data = $util.newBuffer($util.base64.length(object.data))), + 0 + ); + else if (object.data.length >= 0) message.data = object.data; if (object.revision != null) - if ($util.Long) - (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; - else if (typeof object.revision === "string") - message.revision = parseInt(object.revision, 10); - else if (typeof object.revision === "number") - message.revision = object.revision; - else if (typeof object.revision === "object") - message.revision = new $util.LongBits(object.revision.low >>> 0, object.revision.high >>> 0).toNumber(); + if ($util.Long) (message.revision = $util.Long.fromValue(object.revision)).unsigned = false; + else if (typeof object.revision === 'string') message.revision = parseInt(object.revision, 10); + else if (typeof object.revision === 'number') message.revision = object.revision; + else if (typeof object.revision === 'object') + message.revision = new $util.LongBits( + object.revision.low >>> 0, + object.revision.high >>> 0 + ).toNumber(); return message; }; @@ -212856,39 +221939,49 @@ export const Vault = $root.Vault = (() => { * @returns {Object.} Plain object */ SecurityScoreData.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.recordUid = ""; + if (options.bytes === String) object.recordUid = ''; else { object.recordUid = []; - if (options.bytes !== Array) - object.recordUid = $util.newBuffer(object.recordUid); + if (options.bytes !== Array) object.recordUid = $util.newBuffer(object.recordUid); } - if (options.bytes === String) - object.data = ""; + if (options.bytes === String) object.data = ''; else { object.data = []; - if (options.bytes !== Array) - object.data = $util.newBuffer(object.data); + if (options.bytes !== Array) object.data = $util.newBuffer(object.data); } if ($util.Long) { let long = new $util.Long(0, 0, false); - object.revision = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.revision = options.longs === String ? "0" : 0; - } - if (message.recordUid != null && message.hasOwnProperty("recordUid")) - object.recordUid = options.bytes === String ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.recordUid) : message.recordUid; - if (message.data != null && message.hasOwnProperty("data")) - object.data = options.bytes === String ? $util.base64.encode(message.data, 0, message.data.length) : options.bytes === Array ? Array.prototype.slice.call(message.data) : message.data; - if (message.revision != null && message.hasOwnProperty("revision")) - if (typeof message.revision === "number") + object.revision = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.revision = options.longs === String ? '0' : 0; + } + if (message.recordUid != null && message.hasOwnProperty('recordUid')) + object.recordUid = + options.bytes === String + ? $util.base64.encode(message.recordUid, 0, message.recordUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.recordUid) + : message.recordUid; + if (message.data != null && message.hasOwnProperty('data')) + object.data = + options.bytes === String + ? $util.base64.encode(message.data, 0, message.data.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.data) + : message.data; + if (message.revision != null && message.hasOwnProperty('revision')) + if (typeof message.revision === 'number') object.revision = options.longs === String ? String(message.revision) : message.revision; else - object.revision = options.longs === String ? $util.Long.prototype.toString.call(message.revision) : options.longs === Number ? new $util.LongBits(message.revision.low >>> 0, message.revision.high >>> 0).toNumber() : message.revision; + object.revision = + options.longs === String + ? $util.Long.prototype.toString.call(message.revision) + : options.longs === Number + ? new $util.LongBits(message.revision.low >>> 0, message.revision.high >>> 0).toNumber() + : message.revision; return object; }; @@ -212913,16 +222006,15 @@ export const Vault = $root.Vault = (() => { */ SecurityScoreData.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Vault.SecurityScoreData"; + return typeUrlPrefix + '/Vault.SecurityScoreData'; }; return SecurityScoreData; })(); - Vault.BreachWatchGetSyncDataRequest = (function() { - + Vault.BreachWatchGetSyncDataRequest = (function () { /** * Properties of a BreachWatchGetSyncDataRequest. * @memberof Vault @@ -212942,8 +222034,7 @@ export const Vault = $root.Vault = (() => { this.recordUids = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -212976,11 +222067,10 @@ export const Vault = $root.Vault = (() => { * @returns {$protobuf.Writer} Writer */ BreachWatchGetSyncDataRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.recordUids != null && message.recordUids.length) for (let i = 0; i < message.recordUids.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.recordUids[i]); + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.recordUids[i]); return writer; }; @@ -213009,21 +222099,20 @@ export const Vault = $root.Vault = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ BreachWatchGetSyncDataRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.BreachWatchGetSyncDataRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Vault.BreachWatchGetSyncDataRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (!(message.recordUids && message.recordUids.length)) - message.recordUids = []; + case 1: { + if (!(message.recordUids && message.recordUids.length)) message.recordUids = []; message.recordUids.push(reader.bytes()); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -213040,8 +222129,7 @@ export const Vault = $root.Vault = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ BreachWatchGetSyncDataRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -213054,14 +222142,17 @@ export const Vault = $root.Vault = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ BreachWatchGetSyncDataRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.recordUids != null && message.hasOwnProperty("recordUids")) { - if (!Array.isArray(message.recordUids)) - return "recordUids: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.recordUids != null && message.hasOwnProperty('recordUids')) { + if (!Array.isArray(message.recordUids)) return 'recordUids: array expected'; for (let i = 0; i < message.recordUids.length; ++i) - if (!(message.recordUids[i] && typeof message.recordUids[i].length === "number" || $util.isString(message.recordUids[i]))) - return "recordUids: buffer[] expected"; + if ( + !( + (message.recordUids[i] && typeof message.recordUids[i].length === 'number') || + $util.isString(message.recordUids[i]) + ) + ) + return 'recordUids: buffer[] expected'; } return null; }; @@ -213075,18 +222166,20 @@ export const Vault = $root.Vault = (() => { * @returns {Vault.BreachWatchGetSyncDataRequest} BreachWatchGetSyncDataRequest */ BreachWatchGetSyncDataRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Vault.BreachWatchGetSyncDataRequest) - return object; + if (object instanceof $root.Vault.BreachWatchGetSyncDataRequest) return object; let message = new $root.Vault.BreachWatchGetSyncDataRequest(); if (object.recordUids) { if (!Array.isArray(object.recordUids)) - throw TypeError(".Vault.BreachWatchGetSyncDataRequest.recordUids: array expected"); + throw TypeError('.Vault.BreachWatchGetSyncDataRequest.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 (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; }; @@ -213101,15 +222194,18 @@ export const Vault = $root.Vault = (() => { * @returns {Object.} Plain object */ BreachWatchGetSyncDataRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.recordUids = []; + if (options.arrays || options.defaults) object.recordUids = []; 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]; + 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; }; @@ -213135,16 +222231,15 @@ export const Vault = $root.Vault = (() => { */ BreachWatchGetSyncDataRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Vault.BreachWatchGetSyncDataRequest"; + return typeUrlPrefix + '/Vault.BreachWatchGetSyncDataRequest'; }; return BreachWatchGetSyncDataRequest; })(); - Vault.BreachWatchGetSyncDataResponse = (function() { - + Vault.BreachWatchGetSyncDataResponse = (function () { /** * Properties of a BreachWatchGetSyncDataResponse. * @memberof Vault @@ -213168,8 +222263,7 @@ export const Vault = $root.Vault = (() => { this.users = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -213218,17 +222312,25 @@ export const Vault = $root.Vault = (() => { * @returns {$protobuf.Writer} Writer */ BreachWatchGetSyncDataResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.breachWatchRecords != null && message.breachWatchRecords.length) for (let i = 0; i < message.breachWatchRecords.length; ++i) - $root.Vault.BreachWatchRecord.encode(message.breachWatchRecords[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.Vault.BreachWatchRecord.encode( + message.breachWatchRecords[i], + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); if (message.breachWatchSecurityData != null && message.breachWatchSecurityData.length) for (let i = 0; i < message.breachWatchSecurityData.length; ++i) - $root.Vault.BreachWatchSecurityData.encode(message.breachWatchSecurityData[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + $root.Vault.BreachWatchSecurityData.encode( + message.breachWatchSecurityData[i], + writer.uint32(/* id 2, wireType 2 =*/ 18).fork() + ).ldelim(); if (message.users != null && message.users.length) for (let i = 0; i < message.users.length; ++i) - $root.Vault.User.encode(message.users[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + $root.Vault.User.encode( + message.users[i], + writer.uint32(/* id 3, wireType 2 =*/ 26).fork() + ).ldelim(); return writer; }; @@ -213257,33 +222359,34 @@ export const Vault = $root.Vault = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ BreachWatchGetSyncDataResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.BreachWatchGetSyncDataResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Vault.BreachWatchGetSyncDataResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { if (!(message.breachWatchRecords && message.breachWatchRecords.length)) message.breachWatchRecords = []; message.breachWatchRecords.push($root.Vault.BreachWatchRecord.decode(reader, reader.uint32())); break; } - case 2: { + case 2: { if (!(message.breachWatchSecurityData && message.breachWatchSecurityData.length)) message.breachWatchSecurityData = []; - message.breachWatchSecurityData.push($root.Vault.BreachWatchSecurityData.decode(reader, reader.uint32())); + message.breachWatchSecurityData.push( + $root.Vault.BreachWatchSecurityData.decode(reader, reader.uint32()) + ); break; } - case 3: { - if (!(message.users && message.users.length)) - message.users = []; + case 3: { + if (!(message.users && message.users.length)) message.users = []; message.users.push($root.Vault.User.decode(reader, reader.uint32())); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -213300,8 +222403,7 @@ export const Vault = $root.Vault = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ BreachWatchGetSyncDataResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -213314,33 +222416,26 @@ export const Vault = $root.Vault = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ BreachWatchGetSyncDataResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.breachWatchRecords != null && message.hasOwnProperty("breachWatchRecords")) { - if (!Array.isArray(message.breachWatchRecords)) - return "breachWatchRecords: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.breachWatchRecords != null && message.hasOwnProperty('breachWatchRecords')) { + if (!Array.isArray(message.breachWatchRecords)) return 'breachWatchRecords: array expected'; for (let i = 0; i < message.breachWatchRecords.length; ++i) { let error = $root.Vault.BreachWatchRecord.verify(message.breachWatchRecords[i]); - if (error) - return "breachWatchRecords." + error; + if (error) return 'breachWatchRecords.' + error; } } - if (message.breachWatchSecurityData != null && message.hasOwnProperty("breachWatchSecurityData")) { - if (!Array.isArray(message.breachWatchSecurityData)) - return "breachWatchSecurityData: array expected"; + if (message.breachWatchSecurityData != null && message.hasOwnProperty('breachWatchSecurityData')) { + if (!Array.isArray(message.breachWatchSecurityData)) return 'breachWatchSecurityData: array expected'; for (let i = 0; i < message.breachWatchSecurityData.length; ++i) { let error = $root.Vault.BreachWatchSecurityData.verify(message.breachWatchSecurityData[i]); - if (error) - return "breachWatchSecurityData." + error; + if (error) return 'breachWatchSecurityData.' + error; } } - if (message.users != null && message.hasOwnProperty("users")) { - if (!Array.isArray(message.users)) - return "users: array expected"; + if (message.users != null && message.hasOwnProperty('users')) { + if (!Array.isArray(message.users)) return 'users: array expected'; for (let i = 0; i < message.users.length; ++i) { let error = $root.Vault.User.verify(message.users[i]); - if (error) - return "users." + error; + if (error) return 'users.' + error; } } return null; @@ -213355,36 +222450,41 @@ export const Vault = $root.Vault = (() => { * @returns {Vault.BreachWatchGetSyncDataResponse} BreachWatchGetSyncDataResponse */ BreachWatchGetSyncDataResponse.fromObject = function fromObject(object) { - if (object instanceof $root.Vault.BreachWatchGetSyncDataResponse) - return object; + if (object instanceof $root.Vault.BreachWatchGetSyncDataResponse) return object; let message = new $root.Vault.BreachWatchGetSyncDataResponse(); if (object.breachWatchRecords) { if (!Array.isArray(object.breachWatchRecords)) - throw TypeError(".Vault.BreachWatchGetSyncDataResponse.breachWatchRecords: array expected"); + throw TypeError('.Vault.BreachWatchGetSyncDataResponse.breachWatchRecords: array expected'); message.breachWatchRecords = []; for (let i = 0; i < object.breachWatchRecords.length; ++i) { - if (typeof object.breachWatchRecords[i] !== "object") - throw TypeError(".Vault.BreachWatchGetSyncDataResponse.breachWatchRecords: object expected"); - message.breachWatchRecords[i] = $root.Vault.BreachWatchRecord.fromObject(object.breachWatchRecords[i]); + if (typeof object.breachWatchRecords[i] !== 'object') + throw TypeError('.Vault.BreachWatchGetSyncDataResponse.breachWatchRecords: object expected'); + message.breachWatchRecords[i] = $root.Vault.BreachWatchRecord.fromObject( + object.breachWatchRecords[i] + ); } } if (object.breachWatchSecurityData) { if (!Array.isArray(object.breachWatchSecurityData)) - throw TypeError(".Vault.BreachWatchGetSyncDataResponse.breachWatchSecurityData: array expected"); + throw TypeError('.Vault.BreachWatchGetSyncDataResponse.breachWatchSecurityData: array expected'); message.breachWatchSecurityData = []; for (let i = 0; i < object.breachWatchSecurityData.length; ++i) { - if (typeof object.breachWatchSecurityData[i] !== "object") - throw TypeError(".Vault.BreachWatchGetSyncDataResponse.breachWatchSecurityData: object expected"); - message.breachWatchSecurityData[i] = $root.Vault.BreachWatchSecurityData.fromObject(object.breachWatchSecurityData[i]); + if (typeof object.breachWatchSecurityData[i] !== 'object') + throw TypeError( + '.Vault.BreachWatchGetSyncDataResponse.breachWatchSecurityData: object expected' + ); + message.breachWatchSecurityData[i] = $root.Vault.BreachWatchSecurityData.fromObject( + object.breachWatchSecurityData[i] + ); } } if (object.users) { if (!Array.isArray(object.users)) - throw TypeError(".Vault.BreachWatchGetSyncDataResponse.users: array expected"); + throw TypeError('.Vault.BreachWatchGetSyncDataResponse.users: array expected'); message.users = []; for (let i = 0; i < object.users.length; ++i) { - if (typeof object.users[i] !== "object") - throw TypeError(".Vault.BreachWatchGetSyncDataResponse.users: object expected"); + if (typeof object.users[i] !== 'object') + throw TypeError('.Vault.BreachWatchGetSyncDataResponse.users: object expected'); message.users[i] = $root.Vault.User.fromObject(object.users[i]); } } @@ -213401,8 +222501,7 @@ export const Vault = $root.Vault = (() => { * @returns {Object.} Plain object */ BreachWatchGetSyncDataResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.arrays || options.defaults) { object.breachWatchRecords = []; @@ -213412,12 +222511,18 @@ export const Vault = $root.Vault = (() => { if (message.breachWatchRecords && message.breachWatchRecords.length) { object.breachWatchRecords = []; for (let j = 0; j < message.breachWatchRecords.length; ++j) - object.breachWatchRecords[j] = $root.Vault.BreachWatchRecord.toObject(message.breachWatchRecords[j], options); + object.breachWatchRecords[j] = $root.Vault.BreachWatchRecord.toObject( + message.breachWatchRecords[j], + options + ); } if (message.breachWatchSecurityData && message.breachWatchSecurityData.length) { object.breachWatchSecurityData = []; for (let j = 0; j < message.breachWatchSecurityData.length; ++j) - object.breachWatchSecurityData[j] = $root.Vault.BreachWatchSecurityData.toObject(message.breachWatchSecurityData[j], options); + object.breachWatchSecurityData[j] = $root.Vault.BreachWatchSecurityData.toObject( + message.breachWatchSecurityData[j], + options + ); } if (message.users && message.users.length) { object.users = []; @@ -213448,16 +222553,15 @@ export const Vault = $root.Vault = (() => { */ BreachWatchGetSyncDataResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Vault.BreachWatchGetSyncDataResponse"; + return typeUrlPrefix + '/Vault.BreachWatchGetSyncDataResponse'; }; return BreachWatchGetSyncDataResponse; })(); - Vault.GetAccountUidMapResponse = (function() { - + Vault.GetAccountUidMapResponse = (function () { /** * Properties of a GetAccountUidMapResponse. * @memberof Vault @@ -213477,8 +222581,7 @@ export const Vault = $root.Vault = (() => { this.users = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -213511,11 +222614,13 @@ export const Vault = $root.Vault = (() => { * @returns {$protobuf.Writer} Writer */ GetAccountUidMapResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.users != null && message.users.length) for (let i = 0; i < message.users.length; ++i) - $root.Vault.User.encode(message.users[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.Vault.User.encode( + message.users[i], + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); return writer; }; @@ -213544,21 +222649,20 @@ export const Vault = $root.Vault = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ GetAccountUidMapResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Vault.GetAccountUidMapResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Vault.GetAccountUidMapResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (!(message.users && message.users.length)) - message.users = []; + case 1: { + if (!(message.users && message.users.length)) message.users = []; message.users.push($root.Vault.User.decode(reader, reader.uint32())); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -213575,8 +222679,7 @@ export const Vault = $root.Vault = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ GetAccountUidMapResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -213589,15 +222692,12 @@ export const Vault = $root.Vault = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ GetAccountUidMapResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.users != null && message.hasOwnProperty("users")) { - if (!Array.isArray(message.users)) - return "users: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.users != null && message.hasOwnProperty('users')) { + if (!Array.isArray(message.users)) return 'users: array expected'; for (let i = 0; i < message.users.length; ++i) { let error = $root.Vault.User.verify(message.users[i]); - if (error) - return "users." + error; + if (error) return 'users.' + error; } } return null; @@ -213612,16 +222712,15 @@ export const Vault = $root.Vault = (() => { * @returns {Vault.GetAccountUidMapResponse} GetAccountUidMapResponse */ GetAccountUidMapResponse.fromObject = function fromObject(object) { - if (object instanceof $root.Vault.GetAccountUidMapResponse) - return object; + if (object instanceof $root.Vault.GetAccountUidMapResponse) return object; let message = new $root.Vault.GetAccountUidMapResponse(); if (object.users) { if (!Array.isArray(object.users)) - throw TypeError(".Vault.GetAccountUidMapResponse.users: array expected"); + throw TypeError('.Vault.GetAccountUidMapResponse.users: array expected'); message.users = []; for (let i = 0; i < object.users.length; ++i) { - if (typeof object.users[i] !== "object") - throw TypeError(".Vault.GetAccountUidMapResponse.users: object expected"); + if (typeof object.users[i] !== 'object') + throw TypeError('.Vault.GetAccountUidMapResponse.users: object expected'); message.users[i] = $root.Vault.User.fromObject(object.users[i]); } } @@ -213638,11 +222737,9 @@ export const Vault = $root.Vault = (() => { * @returns {Object.} Plain object */ GetAccountUidMapResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.users = []; + if (options.arrays || options.defaults) object.users = []; if (message.users && message.users.length) { object.users = []; for (let j = 0; j < message.users.length; ++j) @@ -213672,19 +222769,18 @@ export const Vault = $root.Vault = (() => { */ GetAccountUidMapResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Vault.GetAccountUidMapResponse"; + return typeUrlPrefix + '/Vault.GetAccountUidMapResponse'; }; return GetAccountUidMapResponse; })(); return Vault; -})(); - -export const NotificationCenter = $root.NotificationCenter = (() => { +})()); +export const NotificationCenter = ($root.NotificationCenter = (() => { /** * Namespace NotificationCenter. * @exports NotificationCenter @@ -213705,16 +222801,17 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @property {number} NC_SYSTEM=6 NC_SYSTEM value * @property {number} NC_PROMOTION=7 NC_PROMOTION value */ - NotificationCenter.NotificationCategory = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "NC_UNSPECIFIED"] = 0; - values[valuesById[1] = "NC_ACCOUNT"] = 1; - values[valuesById[2] = "NC_SHARING"] = 2; - values[valuesById[3] = "NC_ENTERPRISE"] = 3; - values[valuesById[4] = "NC_SECURITY"] = 4; - values[valuesById[5] = "NC_REQUEST"] = 5; - values[valuesById[6] = "NC_SYSTEM"] = 6; - values[valuesById[7] = "NC_PROMOTION"] = 7; + NotificationCenter.NotificationCategory = (function () { + const valuesById = {}, + values = Object.create(valuesById); + values[(valuesById[0] = 'NC_UNSPECIFIED')] = 0; + values[(valuesById[1] = 'NC_ACCOUNT')] = 1; + values[(valuesById[2] = 'NC_SHARING')] = 2; + values[(valuesById[3] = 'NC_ENTERPRISE')] = 3; + values[(valuesById[4] = 'NC_SECURITY')] = 4; + values[(valuesById[5] = 'NC_REQUEST')] = 5; + values[(valuesById[6] = 'NC_SYSTEM')] = 6; + values[(valuesById[7] = 'NC_PROMOTION')] = 7; return values; })(); @@ -213744,29 +222841,30 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @property {number} NT_SECURITY_KEYS_ENABLED=19 NT_SECURITY_KEYS_ENABLED value * @property {number} NT_SECURITY_KEYS_DISABLED=20 NT_SECURITY_KEYS_DISABLED value */ - NotificationCenter.NotificationType = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "NT_UNSPECIFIED"] = 0; - values[valuesById[1] = "NT_ALERT"] = 1; - values[valuesById[2] = "NT_DEVICE_APPROVAL"] = 2; - values[valuesById[3] = "NT_MASTER_PASS_UPDATED"] = 3; - values[valuesById[4] = "NT_SHARE_APPROVAL"] = 4; - values[valuesById[5] = "NT_SHARE_APPROVAL_APPROVED"] = 5; - values[valuesById[6] = "NT_SHARED"] = 6; - values[valuesById[7] = "NT_TRANSFERRED"] = 7; - values[valuesById[8] = "NT_LICENSE_LIMIT_REACHED"] = 8; - values[valuesById[9] = "NT_APPROVAL_REQUEST"] = 9; - values[valuesById[10] = "NT_APPROVED_RESPONSE"] = 10; - values[valuesById[11] = "NT_DENIED_RESPONSE"] = 11; - values[valuesById[12] = "NT_2FA_CONFIGURED"] = 12; - values[valuesById[13] = "NT_SHARE_APPROVAL_DENIED"] = 13; - values[valuesById[14] = "NT_DEVICE_APPROVAL_APPROVED"] = 14; - values[valuesById[15] = "NT_DEVICE_APPROVAL_DENIED"] = 15; - values[valuesById[16] = "NT_ACCOUNT_CREATED"] = 16; - values[valuesById[17] = "NT_2FA_ENABLED"] = 17; - values[valuesById[18] = "NT_2FA_DISABLED"] = 18; - values[valuesById[19] = "NT_SECURITY_KEYS_ENABLED"] = 19; - values[valuesById[20] = "NT_SECURITY_KEYS_DISABLED"] = 20; + NotificationCenter.NotificationType = (function () { + const valuesById = {}, + values = Object.create(valuesById); + values[(valuesById[0] = 'NT_UNSPECIFIED')] = 0; + values[(valuesById[1] = 'NT_ALERT')] = 1; + values[(valuesById[2] = 'NT_DEVICE_APPROVAL')] = 2; + values[(valuesById[3] = 'NT_MASTER_PASS_UPDATED')] = 3; + values[(valuesById[4] = 'NT_SHARE_APPROVAL')] = 4; + values[(valuesById[5] = 'NT_SHARE_APPROVAL_APPROVED')] = 5; + values[(valuesById[6] = 'NT_SHARED')] = 6; + values[(valuesById[7] = 'NT_TRANSFERRED')] = 7; + values[(valuesById[8] = 'NT_LICENSE_LIMIT_REACHED')] = 8; + values[(valuesById[9] = 'NT_APPROVAL_REQUEST')] = 9; + values[(valuesById[10] = 'NT_APPROVED_RESPONSE')] = 10; + values[(valuesById[11] = 'NT_DENIED_RESPONSE')] = 11; + values[(valuesById[12] = 'NT_2FA_CONFIGURED')] = 12; + values[(valuesById[13] = 'NT_SHARE_APPROVAL_DENIED')] = 13; + values[(valuesById[14] = 'NT_DEVICE_APPROVAL_APPROVED')] = 14; + values[(valuesById[15] = 'NT_DEVICE_APPROVAL_DENIED')] = 15; + values[(valuesById[16] = 'NT_ACCOUNT_CREATED')] = 16; + values[(valuesById[17] = 'NT_2FA_ENABLED')] = 17; + values[(valuesById[18] = 'NT_2FA_DISABLED')] = 18; + values[(valuesById[19] = 'NT_SECURITY_KEYS_ENABLED')] = 19; + values[(valuesById[20] = 'NT_SECURITY_KEYS_DISABLED')] = 20; return values; })(); @@ -213779,12 +222877,13 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @property {number} NRS_READ=2 NRS_READ value * @property {number} NRS_UNREAD=3 NRS_UNREAD value */ - NotificationCenter.NotificationReadStatus = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "NRS_UNSPECIFIED"] = 0; - values[valuesById[1] = "NRS_LAST"] = 1; - values[valuesById[2] = "NRS_READ"] = 2; - values[valuesById[3] = "NRS_UNREAD"] = 3; + NotificationCenter.NotificationReadStatus = (function () { + const valuesById = {}, + values = Object.create(valuesById); + values[(valuesById[0] = 'NRS_UNSPECIFIED')] = 0; + values[(valuesById[1] = 'NRS_LAST')] = 1; + values[(valuesById[2] = 'NRS_READ')] = 2; + values[(valuesById[3] = 'NRS_UNREAD')] = 3; return values; })(); @@ -213798,18 +222897,18 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @property {number} NAS_LOST_APPROVAL_RIGHTS=3 NAS_LOST_APPROVAL_RIGHTS value * @property {number} NAS_LOST_ACCESS=4 NAS_LOST_ACCESS value */ - NotificationCenter.NotificationApprovalStatus = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "NAS_UNSPECIFIED"] = 0; - values[valuesById[1] = "NAS_APPROVED"] = 1; - values[valuesById[2] = "NAS_DENIED"] = 2; - values[valuesById[3] = "NAS_LOST_APPROVAL_RIGHTS"] = 3; - values[valuesById[4] = "NAS_LOST_ACCESS"] = 4; + NotificationCenter.NotificationApprovalStatus = (function () { + const valuesById = {}, + values = Object.create(valuesById); + values[(valuesById[0] = 'NAS_UNSPECIFIED')] = 0; + values[(valuesById[1] = 'NAS_APPROVED')] = 1; + values[(valuesById[2] = 'NAS_DENIED')] = 2; + values[(valuesById[3] = 'NAS_LOST_APPROVAL_RIGHTS')] = 3; + values[(valuesById[4] = 'NAS_LOST_ACCESS')] = 4; return values; })(); - NotificationCenter.EncryptedData = (function() { - + NotificationCenter.EncryptedData = (function () { /** * Properties of an EncryptedData. * @memberof NotificationCenter @@ -213829,8 +222928,7 @@ export const NotificationCenter = $root.NotificationCenter = (() => { function EncryptedData(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -213871,12 +222969,11 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @returns {$protobuf.Writer} Writer */ EncryptedData.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.version != null && Object.hasOwnProperty.call(message, "version")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.version); - if (message.data != null && Object.hasOwnProperty.call(message, "data")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.data); + if (!writer) writer = $Writer.create(); + if (message.version != null && Object.hasOwnProperty.call(message, 'version')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int32(message.version); + if (message.data != null && Object.hasOwnProperty.call(message, 'data')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.data); return writer; }; @@ -213905,23 +223002,23 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ EncryptedData.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NotificationCenter.EncryptedData(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.NotificationCenter.EncryptedData(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.version = reader.int32(); break; } - case 2: { + case 2: { message.data = reader.bytes(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -213938,8 +223035,7 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ EncryptedData.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -213952,14 +223048,12 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ EncryptedData.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.version != null && message.hasOwnProperty("version")) - if (!$util.isInteger(message.version)) - return "version: integer expected"; - if (message.data != null && message.hasOwnProperty("data")) - if (!(message.data && typeof message.data.length === "number" || $util.isString(message.data))) - return "data: buffer expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.version != null && message.hasOwnProperty('version')) + if (!$util.isInteger(message.version)) return 'version: integer expected'; + if (message.data != null && message.hasOwnProperty('data')) + if (!((message.data && typeof message.data.length === 'number') || $util.isString(message.data))) + return 'data: buffer expected'; return null; }; @@ -213972,16 +223066,17 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @returns {NotificationCenter.EncryptedData} EncryptedData */ EncryptedData.fromObject = function fromObject(object) { - if (object instanceof $root.NotificationCenter.EncryptedData) - return object; + if (object instanceof $root.NotificationCenter.EncryptedData) return object; let message = new $root.NotificationCenter.EncryptedData(); - if (object.version != null) - message.version = object.version | 0; + if (object.version != null) message.version = object.version | 0; if (object.data != null) - if (typeof object.data === "string") - $util.base64.decode(object.data, message.data = $util.newBuffer($util.base64.length(object.data)), 0); - else if (object.data.length >= 0) - message.data = object.data; + if (typeof object.data === 'string') + $util.base64.decode( + object.data, + (message.data = $util.newBuffer($util.base64.length(object.data))), + 0 + ); + else if (object.data.length >= 0) message.data = object.data; return message; }; @@ -213995,23 +223090,24 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @returns {Object.} Plain object */ EncryptedData.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { object.version = 0; - if (options.bytes === String) - object.data = ""; + if (options.bytes === String) object.data = ''; else { object.data = []; - if (options.bytes !== Array) - object.data = $util.newBuffer(object.data); + if (options.bytes !== Array) object.data = $util.newBuffer(object.data); } } - if (message.version != null && message.hasOwnProperty("version")) - object.version = message.version; - if (message.data != null && message.hasOwnProperty("data")) - object.data = options.bytes === String ? $util.base64.encode(message.data, 0, message.data.length) : options.bytes === Array ? Array.prototype.slice.call(message.data) : message.data; + if (message.version != null && message.hasOwnProperty('version')) object.version = message.version; + if (message.data != null && message.hasOwnProperty('data')) + object.data = + options.bytes === String + ? $util.base64.encode(message.data, 0, message.data.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.data) + : message.data; return object; }; @@ -214036,16 +223132,15 @@ export const NotificationCenter = $root.NotificationCenter = (() => { */ EncryptedData.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/NotificationCenter.EncryptedData"; + return typeUrlPrefix + '/NotificationCenter.EncryptedData'; }; return EncryptedData; })(); - NotificationCenter.Notification = (function() { - + NotificationCenter.Notification = (function () { /** * Properties of a Notification. * @memberof NotificationCenter @@ -214072,8 +223167,7 @@ export const NotificationCenter = $root.NotificationCenter = (() => { this.categories = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -214106,7 +223200,7 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @memberof NotificationCenter.Notification * @instance */ - Notification.prototype.senderFullName = ""; + Notification.prototype.senderFullName = ''; /** * Notification encryptedData. @@ -214154,25 +223248,32 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @returns {$protobuf.Writer} Writer */ Notification.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.type != null && Object.hasOwnProperty.call(message, "type")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.type); - if (message.category != null && Object.hasOwnProperty.call(message, "category")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.category); - if (message.sender != null && Object.hasOwnProperty.call(message, "sender")) - $root.GraphSync.GraphSyncRef.encode(message.sender, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.senderFullName != null && Object.hasOwnProperty.call(message, "senderFullName")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.senderFullName); - if (message.encryptedData != null && Object.hasOwnProperty.call(message, "encryptedData")) - $root.NotificationCenter.EncryptedData.encode(message.encryptedData, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (!writer) writer = $Writer.create(); + if (message.type != null && Object.hasOwnProperty.call(message, 'type')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int32(message.type); + if (message.category != null && Object.hasOwnProperty.call(message, 'category')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int32(message.category); + if (message.sender != null && Object.hasOwnProperty.call(message, 'sender')) + $root.GraphSync.GraphSyncRef.encode( + message.sender, + writer.uint32(/* id 3, wireType 2 =*/ 26).fork() + ).ldelim(); + if (message.senderFullName != null && Object.hasOwnProperty.call(message, 'senderFullName')) + writer.uint32(/* id 4, wireType 2 =*/ 34).string(message.senderFullName); + if (message.encryptedData != null && Object.hasOwnProperty.call(message, 'encryptedData')) + $root.NotificationCenter.EncryptedData.encode( + message.encryptedData, + writer.uint32(/* id 5, wireType 2 =*/ 42).fork() + ).ldelim(); if (message.refs != null && message.refs.length) for (let i = 0; i < message.refs.length; ++i) - $root.GraphSync.GraphSyncRef.encode(message.refs[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + $root.GraphSync.GraphSyncRef.encode( + message.refs[i], + writer.uint32(/* id 6, wireType 2 =*/ 50).fork() + ).ldelim(); if (message.categories != null && message.categories.length) { - writer.uint32(/* id 7, wireType 2 =*/58).fork(); - for (let i = 0; i < message.categories.length; ++i) - writer.int32(message.categories[i]); + writer.uint32(/* id 7, wireType 2 =*/ 58).fork(); + for (let i = 0; i < message.categories.length; ++i) writer.int32(message.categories[i]); writer.ldelim(); } return writer; @@ -214203,52 +223304,48 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ Notification.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NotificationCenter.Notification(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.NotificationCenter.Notification(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.type = reader.int32(); break; } - case 2: { + case 2: { message.category = reader.int32(); break; } - case 3: { + case 3: { message.sender = $root.GraphSync.GraphSyncRef.decode(reader, reader.uint32()); break; } - case 4: { + case 4: { message.senderFullName = reader.string(); break; } - case 5: { + case 5: { message.encryptedData = $root.NotificationCenter.EncryptedData.decode(reader, reader.uint32()); break; } - case 6: { - if (!(message.refs && message.refs.length)) - message.refs = []; + case 6: { + if (!(message.refs && message.refs.length)) message.refs = []; message.refs.push($root.GraphSync.GraphSyncRef.decode(reader, reader.uint32())); break; } - case 7: { - if (!(message.categories && message.categories.length)) - message.categories = []; + case 7: { + if (!(message.categories && message.categories.length)) message.categories = []; if ((tag & 7) === 2) { let end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.categories.push(reader.int32()); - } else - message.categories.push(reader.int32()); + while (reader.pos < end2) message.categories.push(reader.int32()); + } else message.categories.push(reader.int32()); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -214265,8 +223362,7 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ Notification.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -214279,301 +223375,292 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ Notification.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.type != null && message.hasOwnProperty("type")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.type != null && message.hasOwnProperty('type')) switch (message.type) { + default: + return 'type: enum value expected'; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + case 10: + case 11: + case 12: + case 13: + case 14: + case 15: + case 16: + case 17: + case 18: + case 19: + case 20: + break; + } + if (message.category != null && message.hasOwnProperty('category')) + switch (message.category) { + default: + return 'category: enum value expected'; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + break; + } + if (message.sender != null && message.hasOwnProperty('sender')) { + let error = $root.GraphSync.GraphSyncRef.verify(message.sender); + if (error) return 'sender.' + error; + } + if (message.senderFullName != null && message.hasOwnProperty('senderFullName')) + if (!$util.isString(message.senderFullName)) return 'senderFullName: string expected'; + if (message.encryptedData != null && message.hasOwnProperty('encryptedData')) { + let error = $root.NotificationCenter.EncryptedData.verify(message.encryptedData); + if (error) return 'encryptedData.' + error; + } + if (message.refs != null && message.hasOwnProperty('refs')) { + if (!Array.isArray(message.refs)) return 'refs: array expected'; + for (let i = 0; i < message.refs.length; ++i) { + let error = $root.GraphSync.GraphSyncRef.verify(message.refs[i]); + if (error) return 'refs.' + error; + } + } + if (message.categories != null && message.hasOwnProperty('categories')) { + if (!Array.isArray(message.categories)) return 'categories: array expected'; + for (let i = 0; i < message.categories.length; ++i) + switch (message.categories[i]) { + default: + return 'categories: enum value[] expected'; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + break; + } + } + return null; + }; + + /** + * Creates a Notification message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof NotificationCenter.Notification + * @static + * @param {Object.} object Plain object + * @returns {NotificationCenter.Notification} Notification + */ + Notification.fromObject = function fromObject(object) { + if (object instanceof $root.NotificationCenter.Notification) return object; + let message = new $root.NotificationCenter.Notification(); + switch (object.type) { default: - return "type: enum value expected"; + if (typeof object.type === 'number') { + message.type = object.type; + break; + } + break; + case 'NT_UNSPECIFIED': case 0: + message.type = 0; + break; + case 'NT_ALERT': case 1: + message.type = 1; + break; + case 'NT_DEVICE_APPROVAL': case 2: + message.type = 2; + break; + case 'NT_MASTER_PASS_UPDATED': case 3: + message.type = 3; + break; + case 'NT_SHARE_APPROVAL': case 4: + message.type = 4; + break; + case 'NT_SHARE_APPROVAL_APPROVED': case 5: + message.type = 5; + break; + case 'NT_SHARED': case 6: + message.type = 6; + break; + case 'NT_TRANSFERRED': case 7: + message.type = 7; + break; + case 'NT_LICENSE_LIMIT_REACHED': case 8: + message.type = 8; + break; + case 'NT_APPROVAL_REQUEST': case 9: + message.type = 9; + break; + case 'NT_APPROVED_RESPONSE': case 10: + message.type = 10; + break; + case 'NT_DENIED_RESPONSE': case 11: + message.type = 11; + break; + case 'NT_2FA_CONFIGURED': case 12: + message.type = 12; + break; + case 'NT_SHARE_APPROVAL_DENIED': case 13: + message.type = 13; + break; + case 'NT_DEVICE_APPROVAL_APPROVED': case 14: + message.type = 14; + break; + case 'NT_DEVICE_APPROVAL_DENIED': case 15: + message.type = 15; + break; + case 'NT_ACCOUNT_CREATED': case 16: + message.type = 16; + break; + case 'NT_2FA_ENABLED': case 17: + message.type = 17; + break; + case 'NT_2FA_DISABLED': case 18: + message.type = 18; + break; + case 'NT_SECURITY_KEYS_ENABLED': case 19: + message.type = 19; + break; + case 'NT_SECURITY_KEYS_DISABLED': case 20: + message.type = 20; break; - } - if (message.category != null && message.hasOwnProperty("category")) - switch (message.category) { + } + switch (object.category) { default: - return "category: enum value expected"; + if (typeof object.category === 'number') { + message.category = object.category; + break; + } + break; + case 'NC_UNSPECIFIED': case 0: + message.category = 0; + break; + case 'NC_ACCOUNT': case 1: + message.category = 1; + break; + case 'NC_SHARING': case 2: + message.category = 2; + break; + case 'NC_ENTERPRISE': case 3: + message.category = 3; + break; + case 'NC_SECURITY': case 4: + message.category = 4; + break; + case 'NC_REQUEST': case 5: + message.category = 5; + break; + case 'NC_SYSTEM': case 6: + message.category = 6; + break; + case 'NC_PROMOTION': case 7: + message.category = 7; break; - } - if (message.sender != null && message.hasOwnProperty("sender")) { - let error = $root.GraphSync.GraphSyncRef.verify(message.sender); - if (error) - return "sender." + error; - } - if (message.senderFullName != null && message.hasOwnProperty("senderFullName")) - if (!$util.isString(message.senderFullName)) - return "senderFullName: string expected"; - if (message.encryptedData != null && message.hasOwnProperty("encryptedData")) { - let error = $root.NotificationCenter.EncryptedData.verify(message.encryptedData); - if (error) - return "encryptedData." + error; - } - if (message.refs != null && message.hasOwnProperty("refs")) { - if (!Array.isArray(message.refs)) - return "refs: array expected"; - for (let i = 0; i < message.refs.length; ++i) { - let error = $root.GraphSync.GraphSyncRef.verify(message.refs[i]); - if (error) - return "refs." + error; - } - } - if (message.categories != null && message.hasOwnProperty("categories")) { - if (!Array.isArray(message.categories)) - return "categories: array expected"; - for (let i = 0; i < message.categories.length; ++i) - switch (message.categories[i]) { - default: - return "categories: enum value[] expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - break; - } - } - return null; - }; - - /** - * Creates a Notification message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof NotificationCenter.Notification - * @static - * @param {Object.} object Plain object - * @returns {NotificationCenter.Notification} Notification - */ - Notification.fromObject = function fromObject(object) { - if (object instanceof $root.NotificationCenter.Notification) - return object; - let message = new $root.NotificationCenter.Notification(); - switch (object.type) { - default: - if (typeof object.type === "number") { - message.type = object.type; - break; - } - break; - case "NT_UNSPECIFIED": - case 0: - message.type = 0; - break; - case "NT_ALERT": - case 1: - message.type = 1; - break; - case "NT_DEVICE_APPROVAL": - case 2: - message.type = 2; - break; - case "NT_MASTER_PASS_UPDATED": - case 3: - message.type = 3; - break; - case "NT_SHARE_APPROVAL": - case 4: - message.type = 4; - break; - case "NT_SHARE_APPROVAL_APPROVED": - case 5: - message.type = 5; - break; - case "NT_SHARED": - case 6: - message.type = 6; - break; - case "NT_TRANSFERRED": - case 7: - message.type = 7; - break; - case "NT_LICENSE_LIMIT_REACHED": - case 8: - message.type = 8; - break; - case "NT_APPROVAL_REQUEST": - case 9: - message.type = 9; - break; - case "NT_APPROVED_RESPONSE": - case 10: - message.type = 10; - break; - case "NT_DENIED_RESPONSE": - case 11: - message.type = 11; - break; - case "NT_2FA_CONFIGURED": - case 12: - message.type = 12; - break; - case "NT_SHARE_APPROVAL_DENIED": - case 13: - message.type = 13; - break; - case "NT_DEVICE_APPROVAL_APPROVED": - case 14: - message.type = 14; - break; - case "NT_DEVICE_APPROVAL_DENIED": - case 15: - message.type = 15; - break; - case "NT_ACCOUNT_CREATED": - case 16: - message.type = 16; - break; - case "NT_2FA_ENABLED": - case 17: - message.type = 17; - break; - case "NT_2FA_DISABLED": - case 18: - message.type = 18; - break; - case "NT_SECURITY_KEYS_ENABLED": - case 19: - message.type = 19; - break; - case "NT_SECURITY_KEYS_DISABLED": - case 20: - message.type = 20; - break; - } - switch (object.category) { - default: - if (typeof object.category === "number") { - message.category = object.category; - break; - } - break; - case "NC_UNSPECIFIED": - case 0: - message.category = 0; - break; - case "NC_ACCOUNT": - case 1: - message.category = 1; - break; - case "NC_SHARING": - case 2: - message.category = 2; - break; - case "NC_ENTERPRISE": - case 3: - message.category = 3; - break; - case "NC_SECURITY": - case 4: - message.category = 4; - break; - case "NC_REQUEST": - case 5: - message.category = 5; - break; - case "NC_SYSTEM": - case 6: - message.category = 6; - break; - case "NC_PROMOTION": - case 7: - message.category = 7; - break; } if (object.sender != null) { - if (typeof object.sender !== "object") - throw TypeError(".NotificationCenter.Notification.sender: object expected"); + if (typeof object.sender !== 'object') + throw TypeError('.NotificationCenter.Notification.sender: object expected'); message.sender = $root.GraphSync.GraphSyncRef.fromObject(object.sender); } - if (object.senderFullName != null) - message.senderFullName = String(object.senderFullName); + if (object.senderFullName != null) message.senderFullName = String(object.senderFullName); if (object.encryptedData != null) { - if (typeof object.encryptedData !== "object") - throw TypeError(".NotificationCenter.Notification.encryptedData: object expected"); + if (typeof object.encryptedData !== 'object') + throw TypeError('.NotificationCenter.Notification.encryptedData: object expected'); message.encryptedData = $root.NotificationCenter.EncryptedData.fromObject(object.encryptedData); } if (object.refs) { if (!Array.isArray(object.refs)) - throw TypeError(".NotificationCenter.Notification.refs: array expected"); + throw TypeError('.NotificationCenter.Notification.refs: array expected'); message.refs = []; for (let i = 0; i < object.refs.length; ++i) { - if (typeof object.refs[i] !== "object") - throw TypeError(".NotificationCenter.Notification.refs: object expected"); + if (typeof object.refs[i] !== 'object') + throw TypeError('.NotificationCenter.Notification.refs: object expected'); message.refs[i] = $root.GraphSync.GraphSyncRef.fromObject(object.refs[i]); } } if (object.categories) { if (!Array.isArray(object.categories)) - throw TypeError(".NotificationCenter.Notification.categories: array expected"); + throw TypeError('.NotificationCenter.Notification.categories: array expected'); message.categories = []; for (let i = 0; i < object.categories.length; ++i) switch (object.categories[i]) { - default: - if (typeof object.categories[i] === "number") { - message.categories[i] = object.categories[i]; + default: + if (typeof object.categories[i] === 'number') { + message.categories[i] = object.categories[i]; + break; + } + case 'NC_UNSPECIFIED': + case 0: + message.categories[i] = 0; + break; + case 'NC_ACCOUNT': + case 1: + message.categories[i] = 1; + break; + case 'NC_SHARING': + case 2: + message.categories[i] = 2; + break; + case 'NC_ENTERPRISE': + case 3: + message.categories[i] = 3; + break; + case 'NC_SECURITY': + case 4: + message.categories[i] = 4; + break; + case 'NC_REQUEST': + case 5: + message.categories[i] = 5; + break; + case 'NC_SYSTEM': + case 6: + message.categories[i] = 6; + break; + case 'NC_PROMOTION': + case 7: + message.categories[i] = 7; break; - } - case "NC_UNSPECIFIED": - case 0: - message.categories[i] = 0; - break; - case "NC_ACCOUNT": - case 1: - message.categories[i] = 1; - break; - case "NC_SHARING": - case 2: - message.categories[i] = 2; - break; - case "NC_ENTERPRISE": - case 3: - message.categories[i] = 3; - break; - case "NC_SECURITY": - case 4: - message.categories[i] = 4; - break; - case "NC_REQUEST": - case 5: - message.categories[i] = 5; - break; - case "NC_SYSTEM": - case 6: - message.categories[i] = 6; - break; - case "NC_PROMOTION": - case 7: - message.categories[i] = 7; - break; } } return message; @@ -214589,29 +223676,38 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @returns {Object.} Plain object */ Notification.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.arrays || options.defaults) { object.refs = []; object.categories = []; } if (options.defaults) { - object.type = options.enums === String ? "NT_UNSPECIFIED" : 0; - object.category = options.enums === String ? "NC_UNSPECIFIED" : 0; + object.type = options.enums === String ? 'NT_UNSPECIFIED' : 0; + object.category = options.enums === String ? 'NC_UNSPECIFIED' : 0; object.sender = null; - object.senderFullName = ""; + object.senderFullName = ''; object.encryptedData = null; } - if (message.type != null && message.hasOwnProperty("type")) - object.type = options.enums === String ? $root.NotificationCenter.NotificationType[message.type] === undefined ? message.type : $root.NotificationCenter.NotificationType[message.type] : message.type; - if (message.category != null && message.hasOwnProperty("category")) - object.category = options.enums === String ? $root.NotificationCenter.NotificationCategory[message.category] === undefined ? message.category : $root.NotificationCenter.NotificationCategory[message.category] : message.category; - if (message.sender != null && message.hasOwnProperty("sender")) + if (message.type != null && message.hasOwnProperty('type')) + object.type = + options.enums === String + ? $root.NotificationCenter.NotificationType[message.type] === undefined + ? message.type + : $root.NotificationCenter.NotificationType[message.type] + : message.type; + if (message.category != null && message.hasOwnProperty('category')) + object.category = + options.enums === String + ? $root.NotificationCenter.NotificationCategory[message.category] === undefined + ? message.category + : $root.NotificationCenter.NotificationCategory[message.category] + : message.category; + if (message.sender != null && message.hasOwnProperty('sender')) object.sender = $root.GraphSync.GraphSyncRef.toObject(message.sender, options); - if (message.senderFullName != null && message.hasOwnProperty("senderFullName")) + if (message.senderFullName != null && message.hasOwnProperty('senderFullName')) object.senderFullName = message.senderFullName; - if (message.encryptedData != null && message.hasOwnProperty("encryptedData")) + if (message.encryptedData != null && message.hasOwnProperty('encryptedData')) object.encryptedData = $root.NotificationCenter.EncryptedData.toObject(message.encryptedData, options); if (message.refs && message.refs.length) { object.refs = []; @@ -214621,7 +223717,12 @@ export const NotificationCenter = $root.NotificationCenter = (() => { if (message.categories && message.categories.length) { object.categories = []; for (let j = 0; j < message.categories.length; ++j) - object.categories[j] = options.enums === String ? $root.NotificationCenter.NotificationCategory[message.categories[j]] === undefined ? message.categories[j] : $root.NotificationCenter.NotificationCategory[message.categories[j]] : message.categories[j]; + object.categories[j] = + options.enums === String + ? $root.NotificationCenter.NotificationCategory[message.categories[j]] === undefined + ? message.categories[j] + : $root.NotificationCenter.NotificationCategory[message.categories[j]] + : message.categories[j]; } return object; }; @@ -214647,16 +223748,15 @@ export const NotificationCenter = $root.NotificationCenter = (() => { */ Notification.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/NotificationCenter.Notification"; + return typeUrlPrefix + '/NotificationCenter.Notification'; }; return Notification; })(); - NotificationCenter.NotificationReadMark = (function() { - + NotificationCenter.NotificationReadMark = (function () { /** * Properties of a NotificationReadMark. * @memberof NotificationCenter @@ -214678,8 +223778,7 @@ export const NotificationCenter = $root.NotificationCenter = (() => { function NotificationReadMark(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -214696,7 +223795,7 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @memberof NotificationCenter.NotificationReadMark * @instance */ - NotificationReadMark.prototype.notificationEdgeId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + NotificationReadMark.prototype.notificationEdgeId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * NotificationReadMark markEdgeId. @@ -214704,7 +223803,7 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @memberof NotificationCenter.NotificationReadMark * @instance */ - NotificationReadMark.prototype.markEdgeId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + NotificationReadMark.prototype.markEdgeId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * NotificationReadMark readStatus. @@ -214736,16 +223835,15 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @returns {$protobuf.Writer} Writer */ NotificationReadMark.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.uid != null && Object.hasOwnProperty.call(message, "uid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.uid); - if (message.notificationEdgeId != null && Object.hasOwnProperty.call(message, "notificationEdgeId")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.notificationEdgeId); - if (message.markEdgeId != null && Object.hasOwnProperty.call(message, "markEdgeId")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.markEdgeId); - if (message.readStatus != null && Object.hasOwnProperty.call(message, "readStatus")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.readStatus); + if (!writer) writer = $Writer.create(); + if (message.uid != null && Object.hasOwnProperty.call(message, 'uid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.uid); + if (message.notificationEdgeId != null && Object.hasOwnProperty.call(message, 'notificationEdgeId')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int64(message.notificationEdgeId); + if (message.markEdgeId != null && Object.hasOwnProperty.call(message, 'markEdgeId')) + writer.uint32(/* id 3, wireType 0 =*/ 24).int64(message.markEdgeId); + if (message.readStatus != null && Object.hasOwnProperty.call(message, 'readStatus')) + writer.uint32(/* id 4, wireType 0 =*/ 32).int32(message.readStatus); return writer; }; @@ -214774,31 +223872,31 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ NotificationReadMark.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NotificationCenter.NotificationReadMark(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.NotificationCenter.NotificationReadMark(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.uid = reader.bytes(); break; } - case 2: { + case 2: { message.notificationEdgeId = reader.int64(); break; } - case 3: { + case 3: { message.markEdgeId = reader.int64(); break; } - case 4: { + case 4: { message.readStatus = reader.int32(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -214815,8 +223913,7 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ NotificationReadMark.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -214829,26 +223926,39 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ NotificationReadMark.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.uid != null && message.hasOwnProperty("uid")) - if (!(message.uid && typeof message.uid.length === "number" || $util.isString(message.uid))) - return "uid: buffer expected"; - if (message.notificationEdgeId != null && message.hasOwnProperty("notificationEdgeId")) - if (!$util.isInteger(message.notificationEdgeId) && !(message.notificationEdgeId && $util.isInteger(message.notificationEdgeId.low) && $util.isInteger(message.notificationEdgeId.high))) - return "notificationEdgeId: integer|Long expected"; - if (message.markEdgeId != null && message.hasOwnProperty("markEdgeId")) - if (!$util.isInteger(message.markEdgeId) && !(message.markEdgeId && $util.isInteger(message.markEdgeId.low) && $util.isInteger(message.markEdgeId.high))) - return "markEdgeId: integer|Long expected"; - if (message.readStatus != null && message.hasOwnProperty("readStatus")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.uid != null && message.hasOwnProperty('uid')) + if (!((message.uid && typeof message.uid.length === 'number') || $util.isString(message.uid))) + return 'uid: buffer expected'; + if (message.notificationEdgeId != null && message.hasOwnProperty('notificationEdgeId')) + if ( + !$util.isInteger(message.notificationEdgeId) && + !( + message.notificationEdgeId && + $util.isInteger(message.notificationEdgeId.low) && + $util.isInteger(message.notificationEdgeId.high) + ) + ) + return 'notificationEdgeId: integer|Long expected'; + if (message.markEdgeId != null && message.hasOwnProperty('markEdgeId')) + if ( + !$util.isInteger(message.markEdgeId) && + !( + message.markEdgeId && + $util.isInteger(message.markEdgeId.low) && + $util.isInteger(message.markEdgeId.high) + ) + ) + return 'markEdgeId: integer|Long expected'; + if (message.readStatus != null && message.hasOwnProperty('readStatus')) switch (message.readStatus) { - default: - return "readStatus: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; + default: + return 'readStatus: enum value expected'; + case 0: + case 1: + case 2: + case 3: + break; } return null; }; @@ -214862,55 +223972,60 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @returns {NotificationCenter.NotificationReadMark} NotificationReadMark */ NotificationReadMark.fromObject = function fromObject(object) { - if (object instanceof $root.NotificationCenter.NotificationReadMark) - return object; + if (object instanceof $root.NotificationCenter.NotificationReadMark) return object; let message = new $root.NotificationCenter.NotificationReadMark(); if (object.uid != null) - if (typeof object.uid === "string") - $util.base64.decode(object.uid, message.uid = $util.newBuffer($util.base64.length(object.uid)), 0); - else if (object.uid.length >= 0) - message.uid = object.uid; + if (typeof object.uid === 'string') + $util.base64.decode( + object.uid, + (message.uid = $util.newBuffer($util.base64.length(object.uid))), + 0 + ); + else if (object.uid.length >= 0) message.uid = object.uid; if (object.notificationEdgeId != null) if ($util.Long) (message.notificationEdgeId = $util.Long.fromValue(object.notificationEdgeId)).unsigned = false; - else if (typeof object.notificationEdgeId === "string") + else if (typeof object.notificationEdgeId === 'string') message.notificationEdgeId = parseInt(object.notificationEdgeId, 10); - else if (typeof object.notificationEdgeId === "number") + else if (typeof object.notificationEdgeId === 'number') message.notificationEdgeId = object.notificationEdgeId; - else if (typeof object.notificationEdgeId === "object") - message.notificationEdgeId = new $util.LongBits(object.notificationEdgeId.low >>> 0, object.notificationEdgeId.high >>> 0).toNumber(); + else if (typeof object.notificationEdgeId === 'object') + message.notificationEdgeId = new $util.LongBits( + object.notificationEdgeId.low >>> 0, + object.notificationEdgeId.high >>> 0 + ).toNumber(); if (object.markEdgeId != null) - if ($util.Long) - (message.markEdgeId = $util.Long.fromValue(object.markEdgeId)).unsigned = false; - else if (typeof object.markEdgeId === "string") - message.markEdgeId = parseInt(object.markEdgeId, 10); - else if (typeof object.markEdgeId === "number") - message.markEdgeId = object.markEdgeId; - else if (typeof object.markEdgeId === "object") - message.markEdgeId = new $util.LongBits(object.markEdgeId.low >>> 0, object.markEdgeId.high >>> 0).toNumber(); + if ($util.Long) (message.markEdgeId = $util.Long.fromValue(object.markEdgeId)).unsigned = false; + else if (typeof object.markEdgeId === 'string') message.markEdgeId = parseInt(object.markEdgeId, 10); + else if (typeof object.markEdgeId === 'number') message.markEdgeId = object.markEdgeId; + else if (typeof object.markEdgeId === 'object') + message.markEdgeId = new $util.LongBits( + object.markEdgeId.low >>> 0, + object.markEdgeId.high >>> 0 + ).toNumber(); switch (object.readStatus) { - default: - if (typeof object.readStatus === "number") { - message.readStatus = object.readStatus; + default: + if (typeof object.readStatus === 'number') { + message.readStatus = object.readStatus; + break; + } + break; + case 'NRS_UNSPECIFIED': + case 0: + message.readStatus = 0; + break; + case 'NRS_LAST': + case 1: + message.readStatus = 1; + break; + case 'NRS_READ': + case 2: + message.readStatus = 2; + break; + case 'NRS_UNREAD': + case 3: + message.readStatus = 3; break; - } - break; - case "NRS_UNSPECIFIED": - case 0: - message.readStatus = 0; - break; - case "NRS_LAST": - case 1: - message.readStatus = 1; - break; - case "NRS_READ": - case 2: - message.readStatus = 2; - break; - case "NRS_UNREAD": - case 3: - message.readStatus = 3; - break; } return message; }; @@ -214925,43 +224040,67 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @returns {Object.} Plain object */ NotificationReadMark.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.uid = ""; + if (options.bytes === String) object.uid = ''; else { object.uid = []; - if (options.bytes !== Array) - object.uid = $util.newBuffer(object.uid); + if (options.bytes !== Array) object.uid = $util.newBuffer(object.uid); } if ($util.Long) { let long = new $util.Long(0, 0, false); - object.notificationEdgeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.notificationEdgeId = options.longs === String ? "0" : 0; + object.notificationEdgeId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.notificationEdgeId = options.longs === String ? '0' : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.markEdgeId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.markEdgeId = options.longs === String ? "0" : 0; - object.readStatus = options.enums === String ? "NRS_UNSPECIFIED" : 0; - } - if (message.uid != null && message.hasOwnProperty("uid")) - object.uid = options.bytes === String ? $util.base64.encode(message.uid, 0, message.uid.length) : options.bytes === Array ? Array.prototype.slice.call(message.uid) : message.uid; - if (message.notificationEdgeId != null && message.hasOwnProperty("notificationEdgeId")) - if (typeof message.notificationEdgeId === "number") - object.notificationEdgeId = options.longs === String ? String(message.notificationEdgeId) : message.notificationEdgeId; + object.markEdgeId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.markEdgeId = options.longs === String ? '0' : 0; + object.readStatus = options.enums === String ? 'NRS_UNSPECIFIED' : 0; + } + if (message.uid != null && message.hasOwnProperty('uid')) + object.uid = + options.bytes === String + ? $util.base64.encode(message.uid, 0, message.uid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.uid) + : message.uid; + if (message.notificationEdgeId != null && message.hasOwnProperty('notificationEdgeId')) + if (typeof message.notificationEdgeId === 'number') + object.notificationEdgeId = + options.longs === String ? String(message.notificationEdgeId) : message.notificationEdgeId; else - object.notificationEdgeId = options.longs === String ? $util.Long.prototype.toString.call(message.notificationEdgeId) : options.longs === Number ? new $util.LongBits(message.notificationEdgeId.low >>> 0, message.notificationEdgeId.high >>> 0).toNumber() : message.notificationEdgeId; - if (message.markEdgeId != null && message.hasOwnProperty("markEdgeId")) - if (typeof message.markEdgeId === "number") + object.notificationEdgeId = + options.longs === String + ? $util.Long.prototype.toString.call(message.notificationEdgeId) + : options.longs === Number + ? new $util.LongBits( + message.notificationEdgeId.low >>> 0, + message.notificationEdgeId.high >>> 0 + ).toNumber() + : message.notificationEdgeId; + if (message.markEdgeId != null && message.hasOwnProperty('markEdgeId')) + if (typeof message.markEdgeId === 'number') object.markEdgeId = options.longs === String ? String(message.markEdgeId) : message.markEdgeId; else - object.markEdgeId = options.longs === String ? $util.Long.prototype.toString.call(message.markEdgeId) : options.longs === Number ? new $util.LongBits(message.markEdgeId.low >>> 0, message.markEdgeId.high >>> 0).toNumber() : message.markEdgeId; - if (message.readStatus != null && message.hasOwnProperty("readStatus")) - object.readStatus = options.enums === String ? $root.NotificationCenter.NotificationReadStatus[message.readStatus] === undefined ? message.readStatus : $root.NotificationCenter.NotificationReadStatus[message.readStatus] : message.readStatus; + object.markEdgeId = + options.longs === String + ? $util.Long.prototype.toString.call(message.markEdgeId) + : options.longs === Number + ? new $util.LongBits( + message.markEdgeId.low >>> 0, + message.markEdgeId.high >>> 0 + ).toNumber() + : message.markEdgeId; + if (message.readStatus != null && message.hasOwnProperty('readStatus')) + object.readStatus = + options.enums === String + ? $root.NotificationCenter.NotificationReadStatus[message.readStatus] === undefined + ? message.readStatus + : $root.NotificationCenter.NotificationReadStatus[message.readStatus] + : message.readStatus; return object; }; @@ -214986,16 +224125,15 @@ export const NotificationCenter = $root.NotificationCenter = (() => { */ NotificationReadMark.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/NotificationCenter.NotificationReadMark"; + return typeUrlPrefix + '/NotificationCenter.NotificationReadMark'; }; return NotificationReadMark; })(); - NotificationCenter.NotificationContent = (function() { - + NotificationCenter.NotificationContent = (function () { /** * Properties of a NotificationContent. * @memberof NotificationCenter @@ -215021,8 +224159,7 @@ export const NotificationCenter = $root.NotificationCenter = (() => { this.deviceIDs = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -215082,9 +224219,9 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @memberof NotificationCenter.NotificationContent * @instance */ - Object.defineProperty(NotificationContent.prototype, "type", { - get: $util.oneOfGetter($oneOfFields = ["notification", "readStatus", "approvalStatus", "trimmingPoint"]), - set: $util.oneOfSetter($oneOfFields) + Object.defineProperty(NotificationContent.prototype, 'type', { + get: $util.oneOfGetter(($oneOfFields = ['notification', 'readStatus', 'approvalStatus', 'trimmingPoint'])), + set: $util.oneOfSetter($oneOfFields), }); /** @@ -215109,26 +224246,26 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @returns {$protobuf.Writer} Writer */ NotificationContent.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.notification != null && Object.hasOwnProperty.call(message, "notification")) - $root.NotificationCenter.Notification.encode(message.notification, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.readStatus != null && Object.hasOwnProperty.call(message, "readStatus")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.readStatus); - if (message.approvalStatus != null && Object.hasOwnProperty.call(message, "approvalStatus")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.approvalStatus); - if (message.trimmingPoint != null && Object.hasOwnProperty.call(message, "trimmingPoint")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.trimmingPoint); + if (!writer) writer = $Writer.create(); + if (message.notification != null && Object.hasOwnProperty.call(message, 'notification')) + $root.NotificationCenter.Notification.encode( + message.notification, + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); + if (message.readStatus != null && Object.hasOwnProperty.call(message, 'readStatus')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int32(message.readStatus); + if (message.approvalStatus != null && Object.hasOwnProperty.call(message, 'approvalStatus')) + writer.uint32(/* id 3, wireType 0 =*/ 24).int32(message.approvalStatus); + if (message.trimmingPoint != null && Object.hasOwnProperty.call(message, 'trimmingPoint')) + writer.uint32(/* id 4, wireType 0 =*/ 32).bool(message.trimmingPoint); if (message.clientTypeIDs != null && message.clientTypeIDs.length) { - writer.uint32(/* id 5, wireType 2 =*/42).fork(); - for (let i = 0; i < message.clientTypeIDs.length; ++i) - writer.int32(message.clientTypeIDs[i]); + writer.uint32(/* id 5, wireType 2 =*/ 42).fork(); + for (let i = 0; i < message.clientTypeIDs.length; ++i) writer.int32(message.clientTypeIDs[i]); writer.ldelim(); } if (message.deviceIDs != null && message.deviceIDs.length) { - writer.uint32(/* id 6, wireType 2 =*/50).fork(); - for (let i = 0; i < message.deviceIDs.length; ++i) - writer.int64(message.deviceIDs[i]); + writer.uint32(/* id 6, wireType 2 =*/ 50).fork(); + for (let i = 0; i < message.deviceIDs.length; ++i) writer.int64(message.deviceIDs[i]); writer.ldelim(); } return writer; @@ -215159,53 +224296,47 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ NotificationContent.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NotificationCenter.NotificationContent(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.NotificationCenter.NotificationContent(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.notification = $root.NotificationCenter.Notification.decode(reader, reader.uint32()); break; } - case 2: { + case 2: { message.readStatus = reader.int32(); break; } - case 3: { + case 3: { message.approvalStatus = reader.int32(); break; } - case 4: { + case 4: { message.trimmingPoint = reader.bool(); break; } - case 5: { - if (!(message.clientTypeIDs && message.clientTypeIDs.length)) - message.clientTypeIDs = []; + case 5: { + if (!(message.clientTypeIDs && message.clientTypeIDs.length)) message.clientTypeIDs = []; if ((tag & 7) === 2) { let end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.clientTypeIDs.push(reader.int32()); - } else - message.clientTypeIDs.push(reader.int32()); + while (reader.pos < end2) message.clientTypeIDs.push(reader.int32()); + } else message.clientTypeIDs.push(reader.int32()); break; } - case 6: { - if (!(message.deviceIDs && message.deviceIDs.length)) - message.deviceIDs = []; + case 6: { + if (!(message.deviceIDs && message.deviceIDs.length)) message.deviceIDs = []; if ((tag & 7) === 2) { let end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.deviceIDs.push(reader.int64()); - } else - message.deviceIDs.push(reader.int64()); + while (reader.pos < end2) message.deviceIDs.push(reader.int64()); + } else message.deviceIDs.push(reader.int64()); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -215222,8 +224353,7 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ NotificationContent.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -215236,66 +224366,64 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ NotificationContent.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; let properties = {}; - if (message.notification != null && message.hasOwnProperty("notification")) { + if (message.notification != null && message.hasOwnProperty('notification')) { properties.type = 1; { let error = $root.NotificationCenter.Notification.verify(message.notification); - if (error) - return "notification." + error; + if (error) return 'notification.' + error; } } - if (message.readStatus != null && message.hasOwnProperty("readStatus")) { - if (properties.type === 1) - return "type: multiple values"; + if (message.readStatus != null && message.hasOwnProperty('readStatus')) { + if (properties.type === 1) return 'type: multiple values'; properties.type = 1; switch (message.readStatus) { - default: - return "readStatus: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; + default: + return 'readStatus: enum value expected'; + case 0: + case 1: + case 2: + case 3: + break; } } - if (message.approvalStatus != null && message.hasOwnProperty("approvalStatus")) { - if (properties.type === 1) - return "type: multiple values"; + if (message.approvalStatus != null && message.hasOwnProperty('approvalStatus')) { + if (properties.type === 1) return 'type: multiple values'; properties.type = 1; switch (message.approvalStatus) { - default: - return "approvalStatus: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; + default: + return 'approvalStatus: enum value expected'; + case 0: + case 1: + case 2: + case 3: + case 4: + break; } } - if (message.trimmingPoint != null && message.hasOwnProperty("trimmingPoint")) { - if (properties.type === 1) - return "type: multiple values"; + if (message.trimmingPoint != null && message.hasOwnProperty('trimmingPoint')) { + if (properties.type === 1) return 'type: multiple values'; properties.type = 1; - if (typeof message.trimmingPoint !== "boolean") - return "trimmingPoint: boolean expected"; + if (typeof message.trimmingPoint !== 'boolean') return 'trimmingPoint: boolean expected'; } - if (message.clientTypeIDs != null && message.hasOwnProperty("clientTypeIDs")) { - if (!Array.isArray(message.clientTypeIDs)) - return "clientTypeIDs: array expected"; + if (message.clientTypeIDs != null && message.hasOwnProperty('clientTypeIDs')) { + if (!Array.isArray(message.clientTypeIDs)) return 'clientTypeIDs: array expected'; for (let i = 0; i < message.clientTypeIDs.length; ++i) - if (!$util.isInteger(message.clientTypeIDs[i])) - return "clientTypeIDs: integer[] expected"; + if (!$util.isInteger(message.clientTypeIDs[i])) return 'clientTypeIDs: integer[] expected'; } - if (message.deviceIDs != null && message.hasOwnProperty("deviceIDs")) { - if (!Array.isArray(message.deviceIDs)) - return "deviceIDs: array expected"; + if (message.deviceIDs != null && message.hasOwnProperty('deviceIDs')) { + if (!Array.isArray(message.deviceIDs)) return 'deviceIDs: array expected'; for (let i = 0; i < message.deviceIDs.length; ++i) - if (!$util.isInteger(message.deviceIDs[i]) && !(message.deviceIDs[i] && $util.isInteger(message.deviceIDs[i].low) && $util.isInteger(message.deviceIDs[i].high))) - return "deviceIDs: integer|Long[] expected"; + if ( + !$util.isInteger(message.deviceIDs[i]) && + !( + message.deviceIDs[i] && + $util.isInteger(message.deviceIDs[i].low) && + $util.isInteger(message.deviceIDs[i].high) + ) + ) + return 'deviceIDs: integer|Long[] expected'; } return null; }; @@ -215309,88 +224437,87 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @returns {NotificationCenter.NotificationContent} NotificationContent */ NotificationContent.fromObject = function fromObject(object) { - if (object instanceof $root.NotificationCenter.NotificationContent) - return object; + if (object instanceof $root.NotificationCenter.NotificationContent) return object; let message = new $root.NotificationCenter.NotificationContent(); if (object.notification != null) { - if (typeof object.notification !== "object") - throw TypeError(".NotificationCenter.NotificationContent.notification: object expected"); + if (typeof object.notification !== 'object') + throw TypeError('.NotificationCenter.NotificationContent.notification: object expected'); message.notification = $root.NotificationCenter.Notification.fromObject(object.notification); } switch (object.readStatus) { - default: - if (typeof object.readStatus === "number") { - message.readStatus = object.readStatus; - break; - } - break; - case "NRS_UNSPECIFIED": - case 0: - message.readStatus = 0; - break; - case "NRS_LAST": - case 1: - message.readStatus = 1; - break; - case "NRS_READ": - case 2: - message.readStatus = 2; - break; - case "NRS_UNREAD": - case 3: - message.readStatus = 3; - break; + default: + if (typeof object.readStatus === 'number') { + message.readStatus = object.readStatus; + break; + } + break; + case 'NRS_UNSPECIFIED': + case 0: + message.readStatus = 0; + break; + case 'NRS_LAST': + case 1: + message.readStatus = 1; + break; + case 'NRS_READ': + case 2: + message.readStatus = 2; + break; + case 'NRS_UNREAD': + case 3: + message.readStatus = 3; + break; } switch (object.approvalStatus) { - default: - if (typeof object.approvalStatus === "number") { - message.approvalStatus = object.approvalStatus; - break; - } - break; - case "NAS_UNSPECIFIED": - case 0: - message.approvalStatus = 0; - break; - case "NAS_APPROVED": - case 1: - message.approvalStatus = 1; - break; - case "NAS_DENIED": - case 2: - message.approvalStatus = 2; - break; - case "NAS_LOST_APPROVAL_RIGHTS": - case 3: - message.approvalStatus = 3; - break; - case "NAS_LOST_ACCESS": - case 4: - message.approvalStatus = 4; - break; - } - if (object.trimmingPoint != null) - message.trimmingPoint = Boolean(object.trimmingPoint); + default: + if (typeof object.approvalStatus === 'number') { + message.approvalStatus = object.approvalStatus; + break; + } + break; + case 'NAS_UNSPECIFIED': + case 0: + message.approvalStatus = 0; + break; + case 'NAS_APPROVED': + case 1: + message.approvalStatus = 1; + break; + case 'NAS_DENIED': + case 2: + message.approvalStatus = 2; + break; + case 'NAS_LOST_APPROVAL_RIGHTS': + case 3: + message.approvalStatus = 3; + break; + case 'NAS_LOST_ACCESS': + case 4: + message.approvalStatus = 4; + break; + } + if (object.trimmingPoint != null) message.trimmingPoint = Boolean(object.trimmingPoint); if (object.clientTypeIDs) { if (!Array.isArray(object.clientTypeIDs)) - throw TypeError(".NotificationCenter.NotificationContent.clientTypeIDs: array expected"); + throw TypeError('.NotificationCenter.NotificationContent.clientTypeIDs: array expected'); message.clientTypeIDs = []; for (let i = 0; i < object.clientTypeIDs.length; ++i) message.clientTypeIDs[i] = object.clientTypeIDs[i] | 0; } if (object.deviceIDs) { if (!Array.isArray(object.deviceIDs)) - throw TypeError(".NotificationCenter.NotificationContent.deviceIDs: array expected"); + throw TypeError('.NotificationCenter.NotificationContent.deviceIDs: array expected'); message.deviceIDs = []; for (let i = 0; i < object.deviceIDs.length; ++i) - if ($util.Long) - (message.deviceIDs[i] = $util.Long.fromValue(object.deviceIDs[i])).unsigned = false; - else if (typeof object.deviceIDs[i] === "string") + if ($util.Long) (message.deviceIDs[i] = $util.Long.fromValue(object.deviceIDs[i])).unsigned = false; + else if (typeof object.deviceIDs[i] === 'string') message.deviceIDs[i] = parseInt(object.deviceIDs[i], 10); - else if (typeof object.deviceIDs[i] === "number") - message.deviceIDs[i] = object.deviceIDs[i]; - else if (typeof object.deviceIDs[i] === "object") - message.deviceIDs[i] = new $util.LongBits(object.deviceIDs[i].low >>> 0, object.deviceIDs[i].high >>> 0).toNumber(); + else if (typeof object.deviceIDs[i] === 'number') message.deviceIDs[i] = object.deviceIDs[i]; + else if (typeof object.deviceIDs[i] === 'object') + message.deviceIDs[i] = new $util.LongBits( + object.deviceIDs[i].low >>> 0, + object.deviceIDs[i].high >>> 0 + ).toNumber(); } return message; }; @@ -215405,32 +224532,37 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @returns {Object.} Plain object */ NotificationContent.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.arrays || options.defaults) { object.clientTypeIDs = []; object.deviceIDs = []; } - if (message.notification != null && message.hasOwnProperty("notification")) { + if (message.notification != null && message.hasOwnProperty('notification')) { object.notification = $root.NotificationCenter.Notification.toObject(message.notification, options); - if (options.oneofs) - object.type = "notification"; - } - if (message.readStatus != null && message.hasOwnProperty("readStatus")) { - object.readStatus = options.enums === String ? $root.NotificationCenter.NotificationReadStatus[message.readStatus] === undefined ? message.readStatus : $root.NotificationCenter.NotificationReadStatus[message.readStatus] : message.readStatus; - if (options.oneofs) - object.type = "readStatus"; - } - if (message.approvalStatus != null && message.hasOwnProperty("approvalStatus")) { - object.approvalStatus = options.enums === String ? $root.NotificationCenter.NotificationApprovalStatus[message.approvalStatus] === undefined ? message.approvalStatus : $root.NotificationCenter.NotificationApprovalStatus[message.approvalStatus] : message.approvalStatus; - if (options.oneofs) - object.type = "approvalStatus"; - } - if (message.trimmingPoint != null && message.hasOwnProperty("trimmingPoint")) { + if (options.oneofs) object.type = 'notification'; + } + if (message.readStatus != null && message.hasOwnProperty('readStatus')) { + object.readStatus = + options.enums === String + ? $root.NotificationCenter.NotificationReadStatus[message.readStatus] === undefined + ? message.readStatus + : $root.NotificationCenter.NotificationReadStatus[message.readStatus] + : message.readStatus; + if (options.oneofs) object.type = 'readStatus'; + } + if (message.approvalStatus != null && message.hasOwnProperty('approvalStatus')) { + object.approvalStatus = + options.enums === String + ? $root.NotificationCenter.NotificationApprovalStatus[message.approvalStatus] === undefined + ? message.approvalStatus + : $root.NotificationCenter.NotificationApprovalStatus[message.approvalStatus] + : message.approvalStatus; + if (options.oneofs) object.type = 'approvalStatus'; + } + if (message.trimmingPoint != null && message.hasOwnProperty('trimmingPoint')) { object.trimmingPoint = message.trimmingPoint; - if (options.oneofs) - object.type = "trimmingPoint"; + if (options.oneofs) object.type = 'trimmingPoint'; } if (message.clientTypeIDs && message.clientTypeIDs.length) { object.clientTypeIDs = []; @@ -215440,10 +224572,19 @@ export const NotificationCenter = $root.NotificationCenter = (() => { if (message.deviceIDs && message.deviceIDs.length) { object.deviceIDs = []; for (let j = 0; j < message.deviceIDs.length; ++j) - if (typeof message.deviceIDs[j] === "number") - object.deviceIDs[j] = options.longs === String ? String(message.deviceIDs[j]) : message.deviceIDs[j]; + if (typeof message.deviceIDs[j] === 'number') + object.deviceIDs[j] = + options.longs === String ? String(message.deviceIDs[j]) : message.deviceIDs[j]; else - object.deviceIDs[j] = options.longs === String ? $util.Long.prototype.toString.call(message.deviceIDs[j]) : options.longs === Number ? new $util.LongBits(message.deviceIDs[j].low >>> 0, message.deviceIDs[j].high >>> 0).toNumber() : message.deviceIDs[j]; + object.deviceIDs[j] = + options.longs === String + ? $util.Long.prototype.toString.call(message.deviceIDs[j]) + : options.longs === Number + ? new $util.LongBits( + message.deviceIDs[j].low >>> 0, + message.deviceIDs[j].high >>> 0 + ).toNumber() + : message.deviceIDs[j]; } return object; }; @@ -215469,16 +224610,15 @@ export const NotificationCenter = $root.NotificationCenter = (() => { */ NotificationContent.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/NotificationCenter.NotificationContent"; + return typeUrlPrefix + '/NotificationCenter.NotificationContent'; }; return NotificationContent; })(); - NotificationCenter.NotificationWrapper = (function() { - + NotificationCenter.NotificationWrapper = (function () { /** * Properties of a NotificationWrapper. * @memberof NotificationCenter @@ -215499,8 +224639,7 @@ export const NotificationCenter = $root.NotificationCenter = (() => { function NotificationWrapper(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -215525,7 +224664,7 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @memberof NotificationCenter.NotificationWrapper * @instance */ - NotificationWrapper.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + NotificationWrapper.prototype.timestamp = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * Creates a new NotificationWrapper instance using the specified properties. @@ -215549,14 +224688,16 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @returns {$protobuf.Writer} Writer */ NotificationWrapper.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.uid != null && Object.hasOwnProperty.call(message, "uid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.uid); - if (message.content != null && Object.hasOwnProperty.call(message, "content")) - $root.NotificationCenter.NotificationContent.encode(message.content, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.timestamp != null && Object.hasOwnProperty.call(message, "timestamp")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.timestamp); + if (!writer) writer = $Writer.create(); + if (message.uid != null && Object.hasOwnProperty.call(message, 'uid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.uid); + if (message.content != null && Object.hasOwnProperty.call(message, 'content')) + $root.NotificationCenter.NotificationContent.encode( + message.content, + writer.uint32(/* id 2, wireType 2 =*/ 18).fork() + ).ldelim(); + if (message.timestamp != null && Object.hasOwnProperty.call(message, 'timestamp')) + writer.uint32(/* id 3, wireType 0 =*/ 24).int64(message.timestamp); return writer; }; @@ -215585,27 +224726,27 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ NotificationWrapper.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NotificationCenter.NotificationWrapper(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.NotificationCenter.NotificationWrapper(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.uid = reader.bytes(); break; } - case 2: { + case 2: { message.content = $root.NotificationCenter.NotificationContent.decode(reader, reader.uint32()); break; } - case 3: { + case 3: { message.timestamp = reader.int64(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -215622,8 +224763,7 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ NotificationWrapper.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -215636,19 +224776,24 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ NotificationWrapper.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.uid != null && message.hasOwnProperty("uid")) - if (!(message.uid && typeof message.uid.length === "number" || $util.isString(message.uid))) - return "uid: buffer expected"; - if (message.content != null && message.hasOwnProperty("content")) { + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.uid != null && message.hasOwnProperty('uid')) + if (!((message.uid && typeof message.uid.length === 'number') || $util.isString(message.uid))) + return 'uid: buffer expected'; + if (message.content != null && message.hasOwnProperty('content')) { let error = $root.NotificationCenter.NotificationContent.verify(message.content); - if (error) - return "content." + error; + if (error) return 'content.' + error; } - if (message.timestamp != null && message.hasOwnProperty("timestamp")) - if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high))) - return "timestamp: integer|Long expected"; + if (message.timestamp != null && message.hasOwnProperty('timestamp')) + if ( + !$util.isInteger(message.timestamp) && + !( + message.timestamp && + $util.isInteger(message.timestamp.low) && + $util.isInteger(message.timestamp.high) + ) + ) + return 'timestamp: integer|Long expected'; return null; }; @@ -215661,28 +224806,30 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @returns {NotificationCenter.NotificationWrapper} NotificationWrapper */ NotificationWrapper.fromObject = function fromObject(object) { - if (object instanceof $root.NotificationCenter.NotificationWrapper) - return object; + if (object instanceof $root.NotificationCenter.NotificationWrapper) return object; let message = new $root.NotificationCenter.NotificationWrapper(); if (object.uid != null) - if (typeof object.uid === "string") - $util.base64.decode(object.uid, message.uid = $util.newBuffer($util.base64.length(object.uid)), 0); - else if (object.uid.length >= 0) - message.uid = object.uid; + if (typeof object.uid === 'string') + $util.base64.decode( + object.uid, + (message.uid = $util.newBuffer($util.base64.length(object.uid))), + 0 + ); + else if (object.uid.length >= 0) message.uid = object.uid; if (object.content != null) { - if (typeof object.content !== "object") - throw TypeError(".NotificationCenter.NotificationWrapper.content: object expected"); + if (typeof object.content !== 'object') + throw TypeError('.NotificationCenter.NotificationWrapper.content: object expected'); message.content = $root.NotificationCenter.NotificationContent.fromObject(object.content); } if (object.timestamp != null) - if ($util.Long) - (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = false; - else if (typeof object.timestamp === "string") - message.timestamp = parseInt(object.timestamp, 10); - else if (typeof object.timestamp === "number") - message.timestamp = object.timestamp; - else if (typeof object.timestamp === "object") - message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(); + if ($util.Long) (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = false; + else if (typeof object.timestamp === 'string') message.timestamp = parseInt(object.timestamp, 10); + else if (typeof object.timestamp === 'number') message.timestamp = object.timestamp; + else if (typeof object.timestamp === 'object') + message.timestamp = new $util.LongBits( + object.timestamp.low >>> 0, + object.timestamp.high >>> 0 + ).toNumber(); return message; }; @@ -215696,33 +224843,40 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @returns {Object.} Plain object */ NotificationWrapper.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.uid = ""; + if (options.bytes === String) object.uid = ''; else { object.uid = []; - if (options.bytes !== Array) - object.uid = $util.newBuffer(object.uid); + if (options.bytes !== Array) object.uid = $util.newBuffer(object.uid); } object.content = null; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.timestamp = options.longs === String ? "0" : 0; - } - if (message.uid != null && message.hasOwnProperty("uid")) - object.uid = options.bytes === String ? $util.base64.encode(message.uid, 0, message.uid.length) : options.bytes === Array ? Array.prototype.slice.call(message.uid) : message.uid; - if (message.content != null && message.hasOwnProperty("content")) + object.timestamp = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.timestamp = options.longs === String ? '0' : 0; + } + if (message.uid != null && message.hasOwnProperty('uid')) + object.uid = + options.bytes === String + ? $util.base64.encode(message.uid, 0, message.uid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.uid) + : message.uid; + if (message.content != null && message.hasOwnProperty('content')) object.content = $root.NotificationCenter.NotificationContent.toObject(message.content, options); - if (message.timestamp != null && message.hasOwnProperty("timestamp")) - if (typeof message.timestamp === "number") + if (message.timestamp != null && message.hasOwnProperty('timestamp')) + if (typeof message.timestamp === 'number') object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp; else - object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber() : message.timestamp; + object.timestamp = + options.longs === String + ? $util.Long.prototype.toString.call(message.timestamp) + : options.longs === Number + ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber() + : message.timestamp; return object; }; @@ -215747,16 +224901,15 @@ export const NotificationCenter = $root.NotificationCenter = (() => { */ NotificationWrapper.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/NotificationCenter.NotificationWrapper"; + return typeUrlPrefix + '/NotificationCenter.NotificationWrapper'; }; return NotificationWrapper; })(); - NotificationCenter.NotificationSync = (function() { - + NotificationCenter.NotificationSync = (function () { /** * Properties of a NotificationSync. * @memberof NotificationCenter @@ -215778,8 +224931,7 @@ export const NotificationCenter = $root.NotificationCenter = (() => { this.data = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -215796,7 +224948,7 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @memberof NotificationCenter.NotificationSync * @instance */ - NotificationSync.prototype.syncPoint = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + NotificationSync.prototype.syncPoint = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * NotificationSync hasMore. @@ -215828,15 +224980,17 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @returns {$protobuf.Writer} Writer */ NotificationSync.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.data != null && message.data.length) for (let i = 0; i < message.data.length; ++i) - $root.NotificationCenter.NotificationWrapper.encode(message.data[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.syncPoint != null && Object.hasOwnProperty.call(message, "syncPoint")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.syncPoint); - if (message.hasMore != null && Object.hasOwnProperty.call(message, "hasMore")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.hasMore); + $root.NotificationCenter.NotificationWrapper.encode( + message.data[i], + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); + if (message.syncPoint != null && Object.hasOwnProperty.call(message, 'syncPoint')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int64(message.syncPoint); + if (message.hasMore != null && Object.hasOwnProperty.call(message, 'hasMore')) + writer.uint32(/* id 3, wireType 0 =*/ 24).bool(message.hasMore); return writer; }; @@ -215865,29 +225019,28 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ NotificationSync.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NotificationCenter.NotificationSync(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.NotificationCenter.NotificationSync(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (!(message.data && message.data.length)) - message.data = []; + case 1: { + if (!(message.data && message.data.length)) message.data = []; message.data.push($root.NotificationCenter.NotificationWrapper.decode(reader, reader.uint32())); break; } - case 2: { + case 2: { message.syncPoint = reader.int64(); break; } - case 3: { + case 3: { message.hasMore = reader.bool(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -215904,8 +225057,7 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ NotificationSync.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -215918,23 +225070,26 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ NotificationSync.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.data != null && message.hasOwnProperty("data")) { - if (!Array.isArray(message.data)) - return "data: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.data != null && message.hasOwnProperty('data')) { + if (!Array.isArray(message.data)) return 'data: array expected'; for (let i = 0; i < message.data.length; ++i) { let error = $root.NotificationCenter.NotificationWrapper.verify(message.data[i]); - if (error) - return "data." + error; + if (error) return 'data.' + error; } } - if (message.syncPoint != null && message.hasOwnProperty("syncPoint")) - if (!$util.isInteger(message.syncPoint) && !(message.syncPoint && $util.isInteger(message.syncPoint.low) && $util.isInteger(message.syncPoint.high))) - return "syncPoint: integer|Long expected"; - if (message.hasMore != null && message.hasOwnProperty("hasMore")) - if (typeof message.hasMore !== "boolean") - return "hasMore: boolean expected"; + if (message.syncPoint != null && message.hasOwnProperty('syncPoint')) + if ( + !$util.isInteger(message.syncPoint) && + !( + message.syncPoint && + $util.isInteger(message.syncPoint.low) && + $util.isInteger(message.syncPoint.high) + ) + ) + return 'syncPoint: integer|Long expected'; + if (message.hasMore != null && message.hasOwnProperty('hasMore')) + if (typeof message.hasMore !== 'boolean') return 'hasMore: boolean expected'; return null; }; @@ -215947,30 +225102,28 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @returns {NotificationCenter.NotificationSync} NotificationSync */ NotificationSync.fromObject = function fromObject(object) { - if (object instanceof $root.NotificationCenter.NotificationSync) - return object; + if (object instanceof $root.NotificationCenter.NotificationSync) return object; let message = new $root.NotificationCenter.NotificationSync(); if (object.data) { if (!Array.isArray(object.data)) - throw TypeError(".NotificationCenter.NotificationSync.data: array expected"); + throw TypeError('.NotificationCenter.NotificationSync.data: array expected'); message.data = []; for (let i = 0; i < object.data.length; ++i) { - if (typeof object.data[i] !== "object") - throw TypeError(".NotificationCenter.NotificationSync.data: object expected"); + if (typeof object.data[i] !== 'object') + throw TypeError('.NotificationCenter.NotificationSync.data: object expected'); message.data[i] = $root.NotificationCenter.NotificationWrapper.fromObject(object.data[i]); } } if (object.syncPoint != null) - if ($util.Long) - (message.syncPoint = $util.Long.fromValue(object.syncPoint)).unsigned = false; - else if (typeof object.syncPoint === "string") - message.syncPoint = parseInt(object.syncPoint, 10); - else if (typeof object.syncPoint === "number") - message.syncPoint = object.syncPoint; - else if (typeof object.syncPoint === "object") - message.syncPoint = new $util.LongBits(object.syncPoint.low >>> 0, object.syncPoint.high >>> 0).toNumber(); - if (object.hasMore != null) - message.hasMore = Boolean(object.hasMore); + if ($util.Long) (message.syncPoint = $util.Long.fromValue(object.syncPoint)).unsigned = false; + else if (typeof object.syncPoint === 'string') message.syncPoint = parseInt(object.syncPoint, 10); + else if (typeof object.syncPoint === 'number') message.syncPoint = object.syncPoint; + else if (typeof object.syncPoint === 'object') + message.syncPoint = new $util.LongBits( + object.syncPoint.low >>> 0, + object.syncPoint.high >>> 0 + ).toNumber(); + if (object.hasMore != null) message.hasMore = Boolean(object.hasMore); return message; }; @@ -215984,17 +225137,15 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @returns {Object.} Plain object */ NotificationSync.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.data = []; + if (options.arrays || options.defaults) object.data = []; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.syncPoint = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.syncPoint = options.longs === String ? "0" : 0; + object.syncPoint = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.syncPoint = options.longs === String ? '0' : 0; object.hasMore = false; } if (message.data && message.data.length) { @@ -216002,13 +225153,17 @@ export const NotificationCenter = $root.NotificationCenter = (() => { for (let j = 0; j < message.data.length; ++j) object.data[j] = $root.NotificationCenter.NotificationWrapper.toObject(message.data[j], options); } - if (message.syncPoint != null && message.hasOwnProperty("syncPoint")) - if (typeof message.syncPoint === "number") + if (message.syncPoint != null && message.hasOwnProperty('syncPoint')) + if (typeof message.syncPoint === 'number') object.syncPoint = options.longs === String ? String(message.syncPoint) : message.syncPoint; else - object.syncPoint = options.longs === String ? $util.Long.prototype.toString.call(message.syncPoint) : options.longs === Number ? new $util.LongBits(message.syncPoint.low >>> 0, message.syncPoint.high >>> 0).toNumber() : message.syncPoint; - if (message.hasMore != null && message.hasOwnProperty("hasMore")) - object.hasMore = message.hasMore; + object.syncPoint = + options.longs === String + ? $util.Long.prototype.toString.call(message.syncPoint) + : options.longs === Number + ? new $util.LongBits(message.syncPoint.low >>> 0, message.syncPoint.high >>> 0).toNumber() + : message.syncPoint; + if (message.hasMore != null && message.hasOwnProperty('hasMore')) object.hasMore = message.hasMore; return object; }; @@ -216033,16 +225188,15 @@ export const NotificationCenter = $root.NotificationCenter = (() => { */ NotificationSync.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/NotificationCenter.NotificationSync"; + return typeUrlPrefix + '/NotificationCenter.NotificationSync'; }; return NotificationSync; })(); - NotificationCenter.ReadStatusUpdate = (function() { - + NotificationCenter.ReadStatusUpdate = (function () { /** * Properties of a ReadStatusUpdate. * @memberof NotificationCenter @@ -216062,8 +225216,7 @@ export const NotificationCenter = $root.NotificationCenter = (() => { function ReadStatusUpdate(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -216104,12 +225257,11 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @returns {$protobuf.Writer} Writer */ ReadStatusUpdate.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.notificationUid != null && Object.hasOwnProperty.call(message, "notificationUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.notificationUid); - if (message.status != null && Object.hasOwnProperty.call(message, "status")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.status); + if (!writer) writer = $Writer.create(); + if (message.notificationUid != null && Object.hasOwnProperty.call(message, 'notificationUid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.notificationUid); + if (message.status != null && Object.hasOwnProperty.call(message, 'status')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int32(message.status); return writer; }; @@ -216138,23 +225290,23 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ReadStatusUpdate.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NotificationCenter.ReadStatusUpdate(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.NotificationCenter.ReadStatusUpdate(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.notificationUid = reader.bytes(); break; } - case 2: { + case 2: { message.status = reader.int32(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -216171,8 +225323,7 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ReadStatusUpdate.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -216185,20 +225336,24 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ ReadStatusUpdate.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.notificationUid != null && message.hasOwnProperty("notificationUid")) - if (!(message.notificationUid && typeof message.notificationUid.length === "number" || $util.isString(message.notificationUid))) - return "notificationUid: buffer expected"; - if (message.status != null && message.hasOwnProperty("status")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.notificationUid != null && message.hasOwnProperty('notificationUid')) + if ( + !( + (message.notificationUid && typeof message.notificationUid.length === 'number') || + $util.isString(message.notificationUid) + ) + ) + return 'notificationUid: buffer expected'; + if (message.status != null && message.hasOwnProperty('status')) switch (message.status) { - default: - return "status: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; + default: + return 'status: enum value expected'; + case 0: + case 1: + case 2: + case 3: + break; } return null; }; @@ -216212,37 +225367,39 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @returns {NotificationCenter.ReadStatusUpdate} ReadStatusUpdate */ ReadStatusUpdate.fromObject = function fromObject(object) { - if (object instanceof $root.NotificationCenter.ReadStatusUpdate) - return object; + if (object instanceof $root.NotificationCenter.ReadStatusUpdate) return object; let message = new $root.NotificationCenter.ReadStatusUpdate(); if (object.notificationUid != null) - if (typeof object.notificationUid === "string") - $util.base64.decode(object.notificationUid, message.notificationUid = $util.newBuffer($util.base64.length(object.notificationUid)), 0); - else if (object.notificationUid.length >= 0) - message.notificationUid = object.notificationUid; + if (typeof object.notificationUid === 'string') + $util.base64.decode( + object.notificationUid, + (message.notificationUid = $util.newBuffer($util.base64.length(object.notificationUid))), + 0 + ); + else if (object.notificationUid.length >= 0) message.notificationUid = object.notificationUid; switch (object.status) { - default: - if (typeof object.status === "number") { - message.status = object.status; + default: + if (typeof object.status === 'number') { + message.status = object.status; + break; + } + break; + case 'NRS_UNSPECIFIED': + case 0: + message.status = 0; + break; + case 'NRS_LAST': + case 1: + message.status = 1; + break; + case 'NRS_READ': + case 2: + message.status = 2; + break; + case 'NRS_UNREAD': + case 3: + message.status = 3; break; - } - break; - case "NRS_UNSPECIFIED": - case 0: - message.status = 0; - break; - case "NRS_LAST": - case 1: - message.status = 1; - break; - case "NRS_READ": - case 2: - message.status = 2; - break; - case "NRS_UNREAD": - case 3: - message.status = 3; - break; } return message; }; @@ -216257,23 +225414,30 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @returns {Object.} Plain object */ ReadStatusUpdate.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.notificationUid = ""; + if (options.bytes === String) object.notificationUid = ''; else { object.notificationUid = []; - if (options.bytes !== Array) - object.notificationUid = $util.newBuffer(object.notificationUid); + if (options.bytes !== Array) object.notificationUid = $util.newBuffer(object.notificationUid); } - object.status = options.enums === String ? "NRS_UNSPECIFIED" : 0; + object.status = options.enums === String ? 'NRS_UNSPECIFIED' : 0; } - if (message.notificationUid != null && message.hasOwnProperty("notificationUid")) - object.notificationUid = options.bytes === String ? $util.base64.encode(message.notificationUid, 0, message.notificationUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.notificationUid) : message.notificationUid; - if (message.status != null && message.hasOwnProperty("status")) - object.status = options.enums === String ? $root.NotificationCenter.NotificationReadStatus[message.status] === undefined ? message.status : $root.NotificationCenter.NotificationReadStatus[message.status] : message.status; + if (message.notificationUid != null && message.hasOwnProperty('notificationUid')) + object.notificationUid = + options.bytes === String + ? $util.base64.encode(message.notificationUid, 0, message.notificationUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.notificationUid) + : message.notificationUid; + if (message.status != null && message.hasOwnProperty('status')) + object.status = + options.enums === String + ? $root.NotificationCenter.NotificationReadStatus[message.status] === undefined + ? message.status + : $root.NotificationCenter.NotificationReadStatus[message.status] + : message.status; return object; }; @@ -216298,16 +225462,15 @@ export const NotificationCenter = $root.NotificationCenter = (() => { */ ReadStatusUpdate.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/NotificationCenter.ReadStatusUpdate"; + return typeUrlPrefix + '/NotificationCenter.ReadStatusUpdate'; }; return ReadStatusUpdate; })(); - NotificationCenter.ApprovalStatusUpdate = (function() { - + NotificationCenter.ApprovalStatusUpdate = (function () { /** * Properties of an ApprovalStatusUpdate. * @memberof NotificationCenter @@ -216327,8 +225490,7 @@ export const NotificationCenter = $root.NotificationCenter = (() => { function ApprovalStatusUpdate(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -216369,12 +225531,11 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @returns {$protobuf.Writer} Writer */ ApprovalStatusUpdate.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.notificationUid != null && Object.hasOwnProperty.call(message, "notificationUid")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.notificationUid); - if (message.status != null && Object.hasOwnProperty.call(message, "status")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.status); + if (!writer) writer = $Writer.create(); + if (message.notificationUid != null && Object.hasOwnProperty.call(message, 'notificationUid')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.notificationUid); + if (message.status != null && Object.hasOwnProperty.call(message, 'status')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int32(message.status); return writer; }; @@ -216403,23 +225564,23 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ApprovalStatusUpdate.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NotificationCenter.ApprovalStatusUpdate(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.NotificationCenter.ApprovalStatusUpdate(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.notificationUid = reader.bytes(); break; } - case 2: { + case 2: { message.status = reader.int32(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -216436,8 +225597,7 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ApprovalStatusUpdate.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -216450,21 +225610,25 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ ApprovalStatusUpdate.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.notificationUid != null && message.hasOwnProperty("notificationUid")) - if (!(message.notificationUid && typeof message.notificationUid.length === "number" || $util.isString(message.notificationUid))) - return "notificationUid: buffer expected"; - if (message.status != null && message.hasOwnProperty("status")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.notificationUid != null && message.hasOwnProperty('notificationUid')) + if ( + !( + (message.notificationUid && typeof message.notificationUid.length === 'number') || + $util.isString(message.notificationUid) + ) + ) + return 'notificationUid: buffer expected'; + if (message.status != null && message.hasOwnProperty('status')) switch (message.status) { - default: - return "status: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; + default: + return 'status: enum value expected'; + case 0: + case 1: + case 2: + case 3: + case 4: + break; } return null; }; @@ -216478,41 +225642,43 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @returns {NotificationCenter.ApprovalStatusUpdate} ApprovalStatusUpdate */ ApprovalStatusUpdate.fromObject = function fromObject(object) { - if (object instanceof $root.NotificationCenter.ApprovalStatusUpdate) - return object; + if (object instanceof $root.NotificationCenter.ApprovalStatusUpdate) return object; let message = new $root.NotificationCenter.ApprovalStatusUpdate(); if (object.notificationUid != null) - if (typeof object.notificationUid === "string") - $util.base64.decode(object.notificationUid, message.notificationUid = $util.newBuffer($util.base64.length(object.notificationUid)), 0); - else if (object.notificationUid.length >= 0) - message.notificationUid = object.notificationUid; + if (typeof object.notificationUid === 'string') + $util.base64.decode( + object.notificationUid, + (message.notificationUid = $util.newBuffer($util.base64.length(object.notificationUid))), + 0 + ); + else if (object.notificationUid.length >= 0) message.notificationUid = object.notificationUid; switch (object.status) { - default: - if (typeof object.status === "number") { - message.status = object.status; + default: + if (typeof object.status === 'number') { + message.status = object.status; + break; + } + break; + case 'NAS_UNSPECIFIED': + case 0: + message.status = 0; + break; + case 'NAS_APPROVED': + case 1: + message.status = 1; + break; + case 'NAS_DENIED': + case 2: + message.status = 2; + break; + case 'NAS_LOST_APPROVAL_RIGHTS': + case 3: + message.status = 3; + break; + case 'NAS_LOST_ACCESS': + case 4: + message.status = 4; break; - } - break; - case "NAS_UNSPECIFIED": - case 0: - message.status = 0; - break; - case "NAS_APPROVED": - case 1: - message.status = 1; - break; - case "NAS_DENIED": - case 2: - message.status = 2; - break; - case "NAS_LOST_APPROVAL_RIGHTS": - case 3: - message.status = 3; - break; - case "NAS_LOST_ACCESS": - case 4: - message.status = 4; - break; } return message; }; @@ -216527,23 +225693,30 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @returns {Object.} Plain object */ ApprovalStatusUpdate.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.notificationUid = ""; + if (options.bytes === String) object.notificationUid = ''; else { object.notificationUid = []; - if (options.bytes !== Array) - object.notificationUid = $util.newBuffer(object.notificationUid); + if (options.bytes !== Array) object.notificationUid = $util.newBuffer(object.notificationUid); } - object.status = options.enums === String ? "NAS_UNSPECIFIED" : 0; + object.status = options.enums === String ? 'NAS_UNSPECIFIED' : 0; } - if (message.notificationUid != null && message.hasOwnProperty("notificationUid")) - object.notificationUid = options.bytes === String ? $util.base64.encode(message.notificationUid, 0, message.notificationUid.length) : options.bytes === Array ? Array.prototype.slice.call(message.notificationUid) : message.notificationUid; - if (message.status != null && message.hasOwnProperty("status")) - object.status = options.enums === String ? $root.NotificationCenter.NotificationApprovalStatus[message.status] === undefined ? message.status : $root.NotificationCenter.NotificationApprovalStatus[message.status] : message.status; + if (message.notificationUid != null && message.hasOwnProperty('notificationUid')) + object.notificationUid = + options.bytes === String + ? $util.base64.encode(message.notificationUid, 0, message.notificationUid.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.notificationUid) + : message.notificationUid; + if (message.status != null && message.hasOwnProperty('status')) + object.status = + options.enums === String + ? $root.NotificationCenter.NotificationApprovalStatus[message.status] === undefined + ? message.status + : $root.NotificationCenter.NotificationApprovalStatus[message.status] + : message.status; return object; }; @@ -216568,16 +225741,15 @@ export const NotificationCenter = $root.NotificationCenter = (() => { */ ApprovalStatusUpdate.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/NotificationCenter.ApprovalStatusUpdate"; + return typeUrlPrefix + '/NotificationCenter.ApprovalStatusUpdate'; }; return ApprovalStatusUpdate; })(); - NotificationCenter.ProcessMarkReadEventsRequest = (function() { - + NotificationCenter.ProcessMarkReadEventsRequest = (function () { /** * Properties of a ProcessMarkReadEventsRequest. * @memberof NotificationCenter @@ -216597,8 +225769,7 @@ export const NotificationCenter = $root.NotificationCenter = (() => { this.readStatusUpdate = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -216631,11 +225802,13 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @returns {$protobuf.Writer} Writer */ ProcessMarkReadEventsRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.readStatusUpdate != null && message.readStatusUpdate.length) for (let i = 0; i < message.readStatusUpdate.length; ++i) - $root.NotificationCenter.ReadStatusUpdate.encode(message.readStatusUpdate[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.NotificationCenter.ReadStatusUpdate.encode( + message.readStatusUpdate[i], + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); return writer; }; @@ -216664,21 +225837,23 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ProcessMarkReadEventsRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NotificationCenter.ProcessMarkReadEventsRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.NotificationCenter.ProcessMarkReadEventsRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { if (!(message.readStatusUpdate && message.readStatusUpdate.length)) message.readStatusUpdate = []; - message.readStatusUpdate.push($root.NotificationCenter.ReadStatusUpdate.decode(reader, reader.uint32())); + message.readStatusUpdate.push( + $root.NotificationCenter.ReadStatusUpdate.decode(reader, reader.uint32()) + ); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -216695,8 +225870,7 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ProcessMarkReadEventsRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -216709,15 +225883,12 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ ProcessMarkReadEventsRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.readStatusUpdate != null && message.hasOwnProperty("readStatusUpdate")) { - if (!Array.isArray(message.readStatusUpdate)) - return "readStatusUpdate: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.readStatusUpdate != null && message.hasOwnProperty('readStatusUpdate')) { + if (!Array.isArray(message.readStatusUpdate)) return 'readStatusUpdate: array expected'; for (let i = 0; i < message.readStatusUpdate.length; ++i) { let error = $root.NotificationCenter.ReadStatusUpdate.verify(message.readStatusUpdate[i]); - if (error) - return "readStatusUpdate." + error; + if (error) return 'readStatusUpdate.' + error; } } return null; @@ -216732,17 +225903,22 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @returns {NotificationCenter.ProcessMarkReadEventsRequest} ProcessMarkReadEventsRequest */ ProcessMarkReadEventsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.NotificationCenter.ProcessMarkReadEventsRequest) - return object; + if (object instanceof $root.NotificationCenter.ProcessMarkReadEventsRequest) return object; let message = new $root.NotificationCenter.ProcessMarkReadEventsRequest(); if (object.readStatusUpdate) { if (!Array.isArray(object.readStatusUpdate)) - throw TypeError(".NotificationCenter.ProcessMarkReadEventsRequest.readStatusUpdate: array expected"); + throw TypeError( + '.NotificationCenter.ProcessMarkReadEventsRequest.readStatusUpdate: array expected' + ); message.readStatusUpdate = []; for (let i = 0; i < object.readStatusUpdate.length; ++i) { - if (typeof object.readStatusUpdate[i] !== "object") - throw TypeError(".NotificationCenter.ProcessMarkReadEventsRequest.readStatusUpdate: object expected"); - message.readStatusUpdate[i] = $root.NotificationCenter.ReadStatusUpdate.fromObject(object.readStatusUpdate[i]); + if (typeof object.readStatusUpdate[i] !== 'object') + throw TypeError( + '.NotificationCenter.ProcessMarkReadEventsRequest.readStatusUpdate: object expected' + ); + message.readStatusUpdate[i] = $root.NotificationCenter.ReadStatusUpdate.fromObject( + object.readStatusUpdate[i] + ); } } return message; @@ -216758,15 +225934,16 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @returns {Object.} Plain object */ ProcessMarkReadEventsRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.readStatusUpdate = []; + if (options.arrays || options.defaults) object.readStatusUpdate = []; if (message.readStatusUpdate && message.readStatusUpdate.length) { object.readStatusUpdate = []; for (let j = 0; j < message.readStatusUpdate.length; ++j) - object.readStatusUpdate[j] = $root.NotificationCenter.ReadStatusUpdate.toObject(message.readStatusUpdate[j], options); + object.readStatusUpdate[j] = $root.NotificationCenter.ReadStatusUpdate.toObject( + message.readStatusUpdate[j], + options + ); } return object; }; @@ -216792,16 +225969,15 @@ export const NotificationCenter = $root.NotificationCenter = (() => { */ ProcessMarkReadEventsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/NotificationCenter.ProcessMarkReadEventsRequest"; + return typeUrlPrefix + '/NotificationCenter.ProcessMarkReadEventsRequest'; }; return ProcessMarkReadEventsRequest; })(); - NotificationCenter.NotificationSendRequest = (function() { - + NotificationCenter.NotificationSendRequest = (function () { /** * Properties of a NotificationSendRequest. * @memberof NotificationCenter @@ -216826,8 +226002,7 @@ export const NotificationCenter = $root.NotificationCenter = (() => { this.deviceIDs = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -216884,23 +226059,26 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @returns {$protobuf.Writer} Writer */ NotificationSendRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.recipients != null && message.recipients.length) for (let i = 0; i < message.recipients.length; ++i) - $root.GraphSync.GraphSyncRef.encode(message.recipients[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.notification != null && Object.hasOwnProperty.call(message, "notification")) - $root.NotificationCenter.Notification.encode(message.notification, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + $root.GraphSync.GraphSyncRef.encode( + message.recipients[i], + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); + if (message.notification != null && Object.hasOwnProperty.call(message, 'notification')) + $root.NotificationCenter.Notification.encode( + message.notification, + writer.uint32(/* id 2, wireType 2 =*/ 18).fork() + ).ldelim(); if (message.clientTypeIDs != null && message.clientTypeIDs.length) { - writer.uint32(/* id 3, wireType 2 =*/26).fork(); - for (let i = 0; i < message.clientTypeIDs.length; ++i) - writer.int32(message.clientTypeIDs[i]); + writer.uint32(/* id 3, wireType 2 =*/ 26).fork(); + for (let i = 0; i < message.clientTypeIDs.length; ++i) writer.int32(message.clientTypeIDs[i]); writer.ldelim(); } if (message.deviceIDs != null && message.deviceIDs.length) { - writer.uint32(/* id 4, wireType 2 =*/34).fork(); - for (let i = 0; i < message.deviceIDs.length; ++i) - writer.int64(message.deviceIDs[i]); + writer.uint32(/* id 4, wireType 2 =*/ 34).fork(); + for (let i = 0; i < message.deviceIDs.length; ++i) writer.int64(message.deviceIDs[i]); writer.ldelim(); } return writer; @@ -216931,47 +226109,40 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ NotificationSendRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NotificationCenter.NotificationSendRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.NotificationCenter.NotificationSendRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (!(message.recipients && message.recipients.length)) - message.recipients = []; + case 1: { + if (!(message.recipients && message.recipients.length)) message.recipients = []; message.recipients.push($root.GraphSync.GraphSyncRef.decode(reader, reader.uint32())); break; } - case 2: { + case 2: { message.notification = $root.NotificationCenter.Notification.decode(reader, reader.uint32()); break; } - case 3: { - if (!(message.clientTypeIDs && message.clientTypeIDs.length)) - message.clientTypeIDs = []; + case 3: { + if (!(message.clientTypeIDs && message.clientTypeIDs.length)) message.clientTypeIDs = []; if ((tag & 7) === 2) { let end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.clientTypeIDs.push(reader.int32()); - } else - message.clientTypeIDs.push(reader.int32()); + while (reader.pos < end2) message.clientTypeIDs.push(reader.int32()); + } else message.clientTypeIDs.push(reader.int32()); break; } - case 4: { - if (!(message.deviceIDs && message.deviceIDs.length)) - message.deviceIDs = []; + case 4: { + if (!(message.deviceIDs && message.deviceIDs.length)) message.deviceIDs = []; if ((tag & 7) === 2) { let end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.deviceIDs.push(reader.int64()); - } else - message.deviceIDs.push(reader.int64()); + while (reader.pos < end2) message.deviceIDs.push(reader.int64()); + } else message.deviceIDs.push(reader.int64()); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -216988,8 +226159,7 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ NotificationSendRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -217002,35 +226172,35 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ NotificationSendRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.recipients != null && message.hasOwnProperty("recipients")) { - if (!Array.isArray(message.recipients)) - return "recipients: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.recipients != null && message.hasOwnProperty('recipients')) { + if (!Array.isArray(message.recipients)) return 'recipients: array expected'; for (let i = 0; i < message.recipients.length; ++i) { let error = $root.GraphSync.GraphSyncRef.verify(message.recipients[i]); - if (error) - return "recipients." + error; + if (error) return 'recipients.' + error; } } - if (message.notification != null && message.hasOwnProperty("notification")) { + if (message.notification != null && message.hasOwnProperty('notification')) { let error = $root.NotificationCenter.Notification.verify(message.notification); - if (error) - return "notification." + error; + if (error) return 'notification.' + error; } - if (message.clientTypeIDs != null && message.hasOwnProperty("clientTypeIDs")) { - if (!Array.isArray(message.clientTypeIDs)) - return "clientTypeIDs: array expected"; + if (message.clientTypeIDs != null && message.hasOwnProperty('clientTypeIDs')) { + if (!Array.isArray(message.clientTypeIDs)) return 'clientTypeIDs: array expected'; for (let i = 0; i < message.clientTypeIDs.length; ++i) - if (!$util.isInteger(message.clientTypeIDs[i])) - return "clientTypeIDs: integer[] expected"; + if (!$util.isInteger(message.clientTypeIDs[i])) return 'clientTypeIDs: integer[] expected'; } - if (message.deviceIDs != null && message.hasOwnProperty("deviceIDs")) { - if (!Array.isArray(message.deviceIDs)) - return "deviceIDs: array expected"; + if (message.deviceIDs != null && message.hasOwnProperty('deviceIDs')) { + if (!Array.isArray(message.deviceIDs)) return 'deviceIDs: array expected'; for (let i = 0; i < message.deviceIDs.length; ++i) - if (!$util.isInteger(message.deviceIDs[i]) && !(message.deviceIDs[i] && $util.isInteger(message.deviceIDs[i].low) && $util.isInteger(message.deviceIDs[i].high))) - return "deviceIDs: integer|Long[] expected"; + if ( + !$util.isInteger(message.deviceIDs[i]) && + !( + message.deviceIDs[i] && + $util.isInteger(message.deviceIDs[i].low) && + $util.isInteger(message.deviceIDs[i].high) + ) + ) + return 'deviceIDs: integer|Long[] expected'; } return null; }; @@ -217044,44 +226214,44 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @returns {NotificationCenter.NotificationSendRequest} NotificationSendRequest */ NotificationSendRequest.fromObject = function fromObject(object) { - if (object instanceof $root.NotificationCenter.NotificationSendRequest) - return object; + if (object instanceof $root.NotificationCenter.NotificationSendRequest) return object; let message = new $root.NotificationCenter.NotificationSendRequest(); if (object.recipients) { if (!Array.isArray(object.recipients)) - throw TypeError(".NotificationCenter.NotificationSendRequest.recipients: array expected"); + throw TypeError('.NotificationCenter.NotificationSendRequest.recipients: array expected'); message.recipients = []; for (let i = 0; i < object.recipients.length; ++i) { - if (typeof object.recipients[i] !== "object") - throw TypeError(".NotificationCenter.NotificationSendRequest.recipients: object expected"); + if (typeof object.recipients[i] !== 'object') + throw TypeError('.NotificationCenter.NotificationSendRequest.recipients: object expected'); message.recipients[i] = $root.GraphSync.GraphSyncRef.fromObject(object.recipients[i]); } } if (object.notification != null) { - if (typeof object.notification !== "object") - throw TypeError(".NotificationCenter.NotificationSendRequest.notification: object expected"); + if (typeof object.notification !== 'object') + throw TypeError('.NotificationCenter.NotificationSendRequest.notification: object expected'); message.notification = $root.NotificationCenter.Notification.fromObject(object.notification); } if (object.clientTypeIDs) { if (!Array.isArray(object.clientTypeIDs)) - throw TypeError(".NotificationCenter.NotificationSendRequest.clientTypeIDs: array expected"); + throw TypeError('.NotificationCenter.NotificationSendRequest.clientTypeIDs: array expected'); message.clientTypeIDs = []; for (let i = 0; i < object.clientTypeIDs.length; ++i) message.clientTypeIDs[i] = object.clientTypeIDs[i] | 0; } if (object.deviceIDs) { if (!Array.isArray(object.deviceIDs)) - throw TypeError(".NotificationCenter.NotificationSendRequest.deviceIDs: array expected"); + throw TypeError('.NotificationCenter.NotificationSendRequest.deviceIDs: array expected'); message.deviceIDs = []; for (let i = 0; i < object.deviceIDs.length; ++i) - if ($util.Long) - (message.deviceIDs[i] = $util.Long.fromValue(object.deviceIDs[i])).unsigned = false; - else if (typeof object.deviceIDs[i] === "string") + if ($util.Long) (message.deviceIDs[i] = $util.Long.fromValue(object.deviceIDs[i])).unsigned = false; + else if (typeof object.deviceIDs[i] === 'string') message.deviceIDs[i] = parseInt(object.deviceIDs[i], 10); - else if (typeof object.deviceIDs[i] === "number") - message.deviceIDs[i] = object.deviceIDs[i]; - else if (typeof object.deviceIDs[i] === "object") - message.deviceIDs[i] = new $util.LongBits(object.deviceIDs[i].low >>> 0, object.deviceIDs[i].high >>> 0).toNumber(); + else if (typeof object.deviceIDs[i] === 'number') message.deviceIDs[i] = object.deviceIDs[i]; + else if (typeof object.deviceIDs[i] === 'object') + message.deviceIDs[i] = new $util.LongBits( + object.deviceIDs[i].low >>> 0, + object.deviceIDs[i].high >>> 0 + ).toNumber(); } return message; }; @@ -217096,22 +226266,20 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @returns {Object.} Plain object */ NotificationSendRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.arrays || options.defaults) { object.recipients = []; object.clientTypeIDs = []; object.deviceIDs = []; } - if (options.defaults) - object.notification = null; + if (options.defaults) object.notification = null; if (message.recipients && message.recipients.length) { object.recipients = []; for (let j = 0; j < message.recipients.length; ++j) object.recipients[j] = $root.GraphSync.GraphSyncRef.toObject(message.recipients[j], options); } - if (message.notification != null && message.hasOwnProperty("notification")) + if (message.notification != null && message.hasOwnProperty('notification')) object.notification = $root.NotificationCenter.Notification.toObject(message.notification, options); if (message.clientTypeIDs && message.clientTypeIDs.length) { object.clientTypeIDs = []; @@ -217121,10 +226289,19 @@ export const NotificationCenter = $root.NotificationCenter = (() => { if (message.deviceIDs && message.deviceIDs.length) { object.deviceIDs = []; for (let j = 0; j < message.deviceIDs.length; ++j) - if (typeof message.deviceIDs[j] === "number") - object.deviceIDs[j] = options.longs === String ? String(message.deviceIDs[j]) : message.deviceIDs[j]; + if (typeof message.deviceIDs[j] === 'number') + object.deviceIDs[j] = + options.longs === String ? String(message.deviceIDs[j]) : message.deviceIDs[j]; else - object.deviceIDs[j] = options.longs === String ? $util.Long.prototype.toString.call(message.deviceIDs[j]) : options.longs === Number ? new $util.LongBits(message.deviceIDs[j].low >>> 0, message.deviceIDs[j].high >>> 0).toNumber() : message.deviceIDs[j]; + object.deviceIDs[j] = + options.longs === String + ? $util.Long.prototype.toString.call(message.deviceIDs[j]) + : options.longs === Number + ? new $util.LongBits( + message.deviceIDs[j].low >>> 0, + message.deviceIDs[j].high >>> 0 + ).toNumber() + : message.deviceIDs[j]; } return object; }; @@ -217150,16 +226327,15 @@ export const NotificationCenter = $root.NotificationCenter = (() => { */ NotificationSendRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/NotificationCenter.NotificationSendRequest"; + return typeUrlPrefix + '/NotificationCenter.NotificationSendRequest'; }; return NotificationSendRequest; })(); - NotificationCenter.NotificationsSendRequest = (function() { - + NotificationCenter.NotificationsSendRequest = (function () { /** * Properties of a NotificationsSendRequest. * @memberof NotificationCenter @@ -217179,8 +226355,7 @@ export const NotificationCenter = $root.NotificationCenter = (() => { this.notifications = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -217213,11 +226388,13 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @returns {$protobuf.Writer} Writer */ NotificationsSendRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.notifications != null && message.notifications.length) for (let i = 0; i < message.notifications.length; ++i) - $root.NotificationCenter.NotificationSendRequest.encode(message.notifications[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.NotificationCenter.NotificationSendRequest.encode( + message.notifications[i], + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); return writer; }; @@ -217246,21 +226423,22 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ NotificationsSendRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NotificationCenter.NotificationsSendRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.NotificationCenter.NotificationsSendRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (!(message.notifications && message.notifications.length)) - message.notifications = []; - message.notifications.push($root.NotificationCenter.NotificationSendRequest.decode(reader, reader.uint32())); + case 1: { + if (!(message.notifications && message.notifications.length)) message.notifications = []; + message.notifications.push( + $root.NotificationCenter.NotificationSendRequest.decode(reader, reader.uint32()) + ); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -217277,8 +226455,7 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ NotificationsSendRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -217291,15 +226468,12 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ NotificationsSendRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.notifications != null && message.hasOwnProperty("notifications")) { - if (!Array.isArray(message.notifications)) - return "notifications: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.notifications != null && message.hasOwnProperty('notifications')) { + if (!Array.isArray(message.notifications)) return 'notifications: array expected'; for (let i = 0; i < message.notifications.length; ++i) { let error = $root.NotificationCenter.NotificationSendRequest.verify(message.notifications[i]); - if (error) - return "notifications." + error; + if (error) return 'notifications.' + error; } } return null; @@ -217314,17 +226488,18 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @returns {NotificationCenter.NotificationsSendRequest} NotificationsSendRequest */ NotificationsSendRequest.fromObject = function fromObject(object) { - if (object instanceof $root.NotificationCenter.NotificationsSendRequest) - return object; + if (object instanceof $root.NotificationCenter.NotificationsSendRequest) return object; let message = new $root.NotificationCenter.NotificationsSendRequest(); if (object.notifications) { if (!Array.isArray(object.notifications)) - throw TypeError(".NotificationCenter.NotificationsSendRequest.notifications: array expected"); + throw TypeError('.NotificationCenter.NotificationsSendRequest.notifications: array expected'); message.notifications = []; for (let i = 0; i < object.notifications.length; ++i) { - if (typeof object.notifications[i] !== "object") - throw TypeError(".NotificationCenter.NotificationsSendRequest.notifications: object expected"); - message.notifications[i] = $root.NotificationCenter.NotificationSendRequest.fromObject(object.notifications[i]); + if (typeof object.notifications[i] !== 'object') + throw TypeError('.NotificationCenter.NotificationsSendRequest.notifications: object expected'); + message.notifications[i] = $root.NotificationCenter.NotificationSendRequest.fromObject( + object.notifications[i] + ); } } return message; @@ -217340,15 +226515,16 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @returns {Object.} Plain object */ NotificationsSendRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.notifications = []; + if (options.arrays || options.defaults) object.notifications = []; if (message.notifications && message.notifications.length) { object.notifications = []; for (let j = 0; j < message.notifications.length; ++j) - object.notifications[j] = $root.NotificationCenter.NotificationSendRequest.toObject(message.notifications[j], options); + object.notifications[j] = $root.NotificationCenter.NotificationSendRequest.toObject( + message.notifications[j], + options + ); } return object; }; @@ -217374,16 +226550,15 @@ export const NotificationCenter = $root.NotificationCenter = (() => { */ NotificationsSendRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/NotificationCenter.NotificationsSendRequest"; + return typeUrlPrefix + '/NotificationCenter.NotificationsSendRequest'; }; return NotificationsSendRequest; })(); - NotificationCenter.NotificationSyncRequest = (function() { - + NotificationCenter.NotificationSyncRequest = (function () { /** * Properties of a NotificationSyncRequest. * @memberof NotificationCenter @@ -217402,8 +226577,7 @@ export const NotificationCenter = $root.NotificationCenter = (() => { function NotificationSyncRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -217412,7 +226586,7 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @memberof NotificationCenter.NotificationSyncRequest * @instance */ - NotificationSyncRequest.prototype.syncPoint = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + NotificationSyncRequest.prototype.syncPoint = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * Creates a new NotificationSyncRequest instance using the specified properties. @@ -217436,10 +226610,9 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @returns {$protobuf.Writer} Writer */ NotificationSyncRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.syncPoint != null && Object.hasOwnProperty.call(message, "syncPoint")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.syncPoint); + if (!writer) writer = $Writer.create(); + if (message.syncPoint != null && Object.hasOwnProperty.call(message, 'syncPoint')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int64(message.syncPoint); return writer; }; @@ -217468,19 +226641,19 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ NotificationSyncRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NotificationCenter.NotificationSyncRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.NotificationCenter.NotificationSyncRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.syncPoint = reader.int64(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -217497,8 +226670,7 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ NotificationSyncRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -217511,11 +226683,17 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ NotificationSyncRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.syncPoint != null && message.hasOwnProperty("syncPoint")) - if (!$util.isInteger(message.syncPoint) && !(message.syncPoint && $util.isInteger(message.syncPoint.low) && $util.isInteger(message.syncPoint.high))) - return "syncPoint: integer|Long expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.syncPoint != null && message.hasOwnProperty('syncPoint')) + if ( + !$util.isInteger(message.syncPoint) && + !( + message.syncPoint && + $util.isInteger(message.syncPoint.low) && + $util.isInteger(message.syncPoint.high) + ) + ) + return 'syncPoint: integer|Long expected'; return null; }; @@ -217528,18 +226706,17 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @returns {NotificationCenter.NotificationSyncRequest} NotificationSyncRequest */ NotificationSyncRequest.fromObject = function fromObject(object) { - if (object instanceof $root.NotificationCenter.NotificationSyncRequest) - return object; + if (object instanceof $root.NotificationCenter.NotificationSyncRequest) return object; let message = new $root.NotificationCenter.NotificationSyncRequest(); if (object.syncPoint != null) - if ($util.Long) - (message.syncPoint = $util.Long.fromValue(object.syncPoint)).unsigned = false; - else if (typeof object.syncPoint === "string") - message.syncPoint = parseInt(object.syncPoint, 10); - else if (typeof object.syncPoint === "number") - message.syncPoint = object.syncPoint; - else if (typeof object.syncPoint === "object") - message.syncPoint = new $util.LongBits(object.syncPoint.low >>> 0, object.syncPoint.high >>> 0).toNumber(); + if ($util.Long) (message.syncPoint = $util.Long.fromValue(object.syncPoint)).unsigned = false; + else if (typeof object.syncPoint === 'string') message.syncPoint = parseInt(object.syncPoint, 10); + else if (typeof object.syncPoint === 'number') message.syncPoint = object.syncPoint; + else if (typeof object.syncPoint === 'object') + message.syncPoint = new $util.LongBits( + object.syncPoint.low >>> 0, + object.syncPoint.high >>> 0 + ).toNumber(); return message; }; @@ -217553,20 +226730,24 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @returns {Object.} Plain object */ NotificationSyncRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) if ($util.Long) { let long = new $util.Long(0, 0, false); - object.syncPoint = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.syncPoint = options.longs === String ? "0" : 0; - if (message.syncPoint != null && message.hasOwnProperty("syncPoint")) - if (typeof message.syncPoint === "number") + object.syncPoint = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.syncPoint = options.longs === String ? '0' : 0; + if (message.syncPoint != null && message.hasOwnProperty('syncPoint')) + if (typeof message.syncPoint === 'number') object.syncPoint = options.longs === String ? String(message.syncPoint) : message.syncPoint; else - object.syncPoint = options.longs === String ? $util.Long.prototype.toString.call(message.syncPoint) : options.longs === Number ? new $util.LongBits(message.syncPoint.low >>> 0, message.syncPoint.high >>> 0).toNumber() : message.syncPoint; + object.syncPoint = + options.longs === String + ? $util.Long.prototype.toString.call(message.syncPoint) + : options.longs === Number + ? new $util.LongBits(message.syncPoint.low >>> 0, message.syncPoint.high >>> 0).toNumber() + : message.syncPoint; return object; }; @@ -217591,16 +226772,15 @@ export const NotificationCenter = $root.NotificationCenter = (() => { */ NotificationSyncRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/NotificationCenter.NotificationSyncRequest"; + return typeUrlPrefix + '/NotificationCenter.NotificationSyncRequest'; }; return NotificationSyncRequest; })(); - NotificationCenter.NotificationsApprovalStatusUpdateRequest = (function() { - + NotificationCenter.NotificationsApprovalStatusUpdateRequest = (function () { /** * Properties of a NotificationsApprovalStatusUpdateRequest. * @memberof NotificationCenter @@ -217620,8 +226800,7 @@ export const NotificationCenter = $root.NotificationCenter = (() => { this.updates = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -217654,11 +226833,13 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @returns {$protobuf.Writer} Writer */ NotificationsApprovalStatusUpdateRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.updates != null && message.updates.length) for (let i = 0; i < message.updates.length; ++i) - $root.NotificationCenter.ApprovalStatusUpdate.encode(message.updates[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.NotificationCenter.ApprovalStatusUpdate.encode( + message.updates[i], + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); return writer; }; @@ -217687,21 +226868,22 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ NotificationsApprovalStatusUpdateRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.NotificationCenter.NotificationsApprovalStatusUpdateRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.NotificationCenter.NotificationsApprovalStatusUpdateRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (!(message.updates && message.updates.length)) - message.updates = []; - message.updates.push($root.NotificationCenter.ApprovalStatusUpdate.decode(reader, reader.uint32())); + case 1: { + if (!(message.updates && message.updates.length)) message.updates = []; + message.updates.push( + $root.NotificationCenter.ApprovalStatusUpdate.decode(reader, reader.uint32()) + ); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -217718,8 +226900,7 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ NotificationsApprovalStatusUpdateRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -217732,15 +226913,12 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ NotificationsApprovalStatusUpdateRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.updates != null && message.hasOwnProperty("updates")) { - if (!Array.isArray(message.updates)) - return "updates: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.updates != null && message.hasOwnProperty('updates')) { + if (!Array.isArray(message.updates)) return 'updates: array expected'; for (let i = 0; i < message.updates.length; ++i) { let error = $root.NotificationCenter.ApprovalStatusUpdate.verify(message.updates[i]); - if (error) - return "updates." + error; + if (error) return 'updates.' + error; } } return null; @@ -217755,16 +226933,19 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @returns {NotificationCenter.NotificationsApprovalStatusUpdateRequest} NotificationsApprovalStatusUpdateRequest */ NotificationsApprovalStatusUpdateRequest.fromObject = function fromObject(object) { - if (object instanceof $root.NotificationCenter.NotificationsApprovalStatusUpdateRequest) - return object; + if (object instanceof $root.NotificationCenter.NotificationsApprovalStatusUpdateRequest) return object; let message = new $root.NotificationCenter.NotificationsApprovalStatusUpdateRequest(); if (object.updates) { if (!Array.isArray(object.updates)) - throw TypeError(".NotificationCenter.NotificationsApprovalStatusUpdateRequest.updates: array expected"); + throw TypeError( + '.NotificationCenter.NotificationsApprovalStatusUpdateRequest.updates: array expected' + ); message.updates = []; for (let i = 0; i < object.updates.length; ++i) { - if (typeof object.updates[i] !== "object") - throw TypeError(".NotificationCenter.NotificationsApprovalStatusUpdateRequest.updates: object expected"); + if (typeof object.updates[i] !== 'object') + throw TypeError( + '.NotificationCenter.NotificationsApprovalStatusUpdateRequest.updates: object expected' + ); message.updates[i] = $root.NotificationCenter.ApprovalStatusUpdate.fromObject(object.updates[i]); } } @@ -217781,15 +226962,16 @@ export const NotificationCenter = $root.NotificationCenter = (() => { * @returns {Object.} Plain object */ NotificationsApprovalStatusUpdateRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.updates = []; + if (options.arrays || options.defaults) object.updates = []; if (message.updates && message.updates.length) { object.updates = []; for (let j = 0; j < message.updates.length; ++j) - object.updates[j] = $root.NotificationCenter.ApprovalStatusUpdate.toObject(message.updates[j], options); + object.updates[j] = $root.NotificationCenter.ApprovalStatusUpdate.toObject( + message.updates[j], + options + ); } return object; }; @@ -217815,19 +226997,18 @@ export const NotificationCenter = $root.NotificationCenter = (() => { */ NotificationsApprovalStatusUpdateRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/NotificationCenter.NotificationsApprovalStatusUpdateRequest"; + return typeUrlPrefix + '/NotificationCenter.NotificationsApprovalStatusUpdateRequest'; }; return NotificationsApprovalStatusUpdateRequest; })(); return NotificationCenter; -})(); - -export const GraphSync = $root.GraphSync = (() => { +})()); +export const GraphSync = ($root.GraphSync = (() => { /** * Namespace GraphSync. * @exports GraphSync @@ -217859,32 +227040,32 @@ export const GraphSync = $root.GraphSync = (() => { * @property {number} RFT_TEAM_INFO=17 RFT_TEAM_INFO value * @property {number} RFT_ROLE=18 RFT_ROLE value */ - GraphSync.RefType = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "RFT_GENERAL"] = 0; - values[valuesById[1] = "RFT_USER"] = 1; - values[valuesById[2] = "RFT_DEVICE"] = 2; - values[valuesById[3] = "RFT_REC"] = 3; - values[valuesById[4] = "RFT_FOLDER"] = 4; - values[valuesById[5] = "RFT_TEAM"] = 5; - values[valuesById[6] = "RFT_ENTERPRISE"] = 6; - values[valuesById[7] = "RFT_PAM_DIRECTORY"] = 7; - values[valuesById[8] = "RFT_PAM_MACHINE"] = 8; - values[valuesById[9] = "RFT_PAM_DATABASE"] = 9; - values[valuesById[10] = "RFT_PAM_USER"] = 10; - values[valuesById[11] = "RFT_PAM_NETWORK"] = 11; - values[valuesById[12] = "RFT_PAM_BROWSER"] = 12; - values[valuesById[13] = "RFT_CONNECTION"] = 13; - values[valuesById[14] = "RFT_WORKFLOW"] = 14; - values[valuesById[15] = "RFT_NOTIFICATION"] = 15; - values[valuesById[16] = "RFT_USER_INFO"] = 16; - values[valuesById[17] = "RFT_TEAM_INFO"] = 17; - values[valuesById[18] = "RFT_ROLE"] = 18; + GraphSync.RefType = (function () { + const valuesById = {}, + values = Object.create(valuesById); + values[(valuesById[0] = 'RFT_GENERAL')] = 0; + values[(valuesById[1] = 'RFT_USER')] = 1; + values[(valuesById[2] = 'RFT_DEVICE')] = 2; + values[(valuesById[3] = 'RFT_REC')] = 3; + values[(valuesById[4] = 'RFT_FOLDER')] = 4; + values[(valuesById[5] = 'RFT_TEAM')] = 5; + values[(valuesById[6] = 'RFT_ENTERPRISE')] = 6; + values[(valuesById[7] = 'RFT_PAM_DIRECTORY')] = 7; + values[(valuesById[8] = 'RFT_PAM_MACHINE')] = 8; + values[(valuesById[9] = 'RFT_PAM_DATABASE')] = 9; + values[(valuesById[10] = 'RFT_PAM_USER')] = 10; + values[(valuesById[11] = 'RFT_PAM_NETWORK')] = 11; + values[(valuesById[12] = 'RFT_PAM_BROWSER')] = 12; + values[(valuesById[13] = 'RFT_CONNECTION')] = 13; + values[(valuesById[14] = 'RFT_WORKFLOW')] = 14; + values[(valuesById[15] = 'RFT_NOTIFICATION')] = 15; + values[(valuesById[16] = 'RFT_USER_INFO')] = 16; + values[(valuesById[17] = 'RFT_TEAM_INFO')] = 17; + values[(valuesById[18] = 'RFT_ROLE')] = 18; return values; })(); - GraphSync.GraphSyncRef = (function() { - + GraphSync.GraphSyncRef = (function () { /** * Properties of a GraphSyncRef. * @memberof GraphSync @@ -217905,8 +227086,7 @@ export const GraphSync = $root.GraphSync = (() => { function GraphSyncRef(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -217931,7 +227111,7 @@ export const GraphSync = $root.GraphSync = (() => { * @memberof GraphSync.GraphSyncRef * @instance */ - GraphSyncRef.prototype.name = ""; + GraphSyncRef.prototype.name = ''; /** * Creates a new GraphSyncRef instance using the specified properties. @@ -217955,14 +227135,13 @@ export const GraphSync = $root.GraphSync = (() => { * @returns {$protobuf.Writer} Writer */ GraphSyncRef.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.type != null && Object.hasOwnProperty.call(message, "type")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.type); - if (message.value != null && Object.hasOwnProperty.call(message, "value")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.value); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.name); + if (!writer) writer = $Writer.create(); + if (message.type != null && Object.hasOwnProperty.call(message, 'type')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int32(message.type); + if (message.value != null && Object.hasOwnProperty.call(message, 'value')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.value); + if (message.name != null && Object.hasOwnProperty.call(message, 'name')) + writer.uint32(/* id 3, wireType 2 =*/ 26).string(message.name); return writer; }; @@ -217991,27 +227170,27 @@ export const GraphSync = $root.GraphSync = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ GraphSyncRef.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.GraphSync.GraphSyncRef(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.GraphSync.GraphSyncRef(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.type = reader.int32(); break; } - case 2: { + case 2: { message.value = reader.bytes(); break; } - case 3: { + case 3: { message.name = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -218028,8 +227207,7 @@ export const GraphSync = $root.GraphSync = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ GraphSyncRef.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -218042,145 +227220,144 @@ export const GraphSync = $root.GraphSync = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ GraphSyncRef.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.type != null && message.hasOwnProperty("type")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.type != null && message.hasOwnProperty('type')) switch (message.type) { + default: + return 'type: enum value expected'; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + case 10: + case 11: + case 12: + case 13: + case 14: + case 15: + case 16: + case 17: + case 18: + break; + } + if (message.value != null && message.hasOwnProperty('value')) + if (!((message.value && typeof message.value.length === 'number') || $util.isString(message.value))) + return 'value: buffer expected'; + if (message.name != null && message.hasOwnProperty('name')) + if (!$util.isString(message.name)) return 'name: string expected'; + return null; + }; + + /** + * Creates a GraphSyncRef message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof GraphSync.GraphSyncRef + * @static + * @param {Object.} object Plain object + * @returns {GraphSync.GraphSyncRef} GraphSyncRef + */ + GraphSyncRef.fromObject = function fromObject(object) { + if (object instanceof $root.GraphSync.GraphSyncRef) return object; + let message = new $root.GraphSync.GraphSyncRef(); + switch (object.type) { default: - return "type: enum value expected"; + if (typeof object.type === 'number') { + message.type = object.type; + break; + } + break; + case 'RFT_GENERAL': case 0: + message.type = 0; + break; + case 'RFT_USER': case 1: + message.type = 1; + break; + case 'RFT_DEVICE': case 2: + message.type = 2; + break; + case 'RFT_REC': case 3: + message.type = 3; + break; + case 'RFT_FOLDER': case 4: + message.type = 4; + break; + case 'RFT_TEAM': case 5: + message.type = 5; + break; + case 'RFT_ENTERPRISE': case 6: + message.type = 6; + break; + case 'RFT_PAM_DIRECTORY': case 7: + message.type = 7; + break; + case 'RFT_PAM_MACHINE': case 8: + message.type = 8; + break; + case 'RFT_PAM_DATABASE': case 9: + message.type = 9; + break; + case 'RFT_PAM_USER': case 10: + message.type = 10; + break; + case 'RFT_PAM_NETWORK': case 11: + message.type = 11; + break; + case 'RFT_PAM_BROWSER': case 12: + message.type = 12; + break; + case 'RFT_CONNECTION': case 13: + message.type = 13; + break; + case 'RFT_WORKFLOW': case 14: + message.type = 14; + break; + case 'RFT_NOTIFICATION': case 15: + message.type = 15; + break; + case 'RFT_USER_INFO': case 16: + message.type = 16; + break; + case 'RFT_TEAM_INFO': case 17: + message.type = 17; + break; + case 'RFT_ROLE': case 18: + message.type = 18; break; - } - if (message.value != null && message.hasOwnProperty("value")) - if (!(message.value && typeof message.value.length === "number" || $util.isString(message.value))) - return "value: buffer expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - return null; - }; - - /** - * Creates a GraphSyncRef message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof GraphSync.GraphSyncRef - * @static - * @param {Object.} object Plain object - * @returns {GraphSync.GraphSyncRef} GraphSyncRef - */ - GraphSyncRef.fromObject = function fromObject(object) { - if (object instanceof $root.GraphSync.GraphSyncRef) - return object; - let message = new $root.GraphSync.GraphSyncRef(); - switch (object.type) { - default: - if (typeof object.type === "number") { - message.type = object.type; - break; - } - break; - case "RFT_GENERAL": - case 0: - message.type = 0; - break; - case "RFT_USER": - case 1: - message.type = 1; - break; - case "RFT_DEVICE": - case 2: - message.type = 2; - break; - case "RFT_REC": - case 3: - message.type = 3; - break; - case "RFT_FOLDER": - case 4: - message.type = 4; - break; - case "RFT_TEAM": - case 5: - message.type = 5; - break; - case "RFT_ENTERPRISE": - case 6: - message.type = 6; - break; - case "RFT_PAM_DIRECTORY": - case 7: - message.type = 7; - break; - case "RFT_PAM_MACHINE": - case 8: - message.type = 8; - break; - case "RFT_PAM_DATABASE": - case 9: - message.type = 9; - break; - case "RFT_PAM_USER": - case 10: - message.type = 10; - break; - case "RFT_PAM_NETWORK": - case 11: - message.type = 11; - break; - case "RFT_PAM_BROWSER": - case 12: - message.type = 12; - break; - case "RFT_CONNECTION": - case 13: - message.type = 13; - break; - case "RFT_WORKFLOW": - case 14: - message.type = 14; - break; - case "RFT_NOTIFICATION": - case 15: - message.type = 15; - break; - case "RFT_USER_INFO": - case 16: - message.type = 16; - break; - case "RFT_TEAM_INFO": - case 17: - message.type = 17; - break; - case "RFT_ROLE": - case 18: - message.type = 18; - break; } if (object.value != null) - if (typeof object.value === "string") - $util.base64.decode(object.value, message.value = $util.newBuffer($util.base64.length(object.value)), 0); - else if (object.value.length >= 0) - message.value = object.value; - if (object.name != null) - message.name = String(object.name); + if (typeof object.value === 'string') + $util.base64.decode( + object.value, + (message.value = $util.newBuffer($util.base64.length(object.value))), + 0 + ); + else if (object.value.length >= 0) message.value = object.value; + if (object.name != null) message.name = String(object.name); return message; }; @@ -218194,26 +227371,32 @@ export const GraphSync = $root.GraphSync = (() => { * @returns {Object.} Plain object */ GraphSyncRef.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - object.type = options.enums === String ? "RFT_GENERAL" : 0; - if (options.bytes === String) - object.value = ""; + object.type = options.enums === String ? 'RFT_GENERAL' : 0; + if (options.bytes === String) object.value = ''; else { object.value = []; - if (options.bytes !== Array) - object.value = $util.newBuffer(object.value); + if (options.bytes !== Array) object.value = $util.newBuffer(object.value); } - object.name = ""; + object.name = ''; } - if (message.type != null && message.hasOwnProperty("type")) - object.type = options.enums === String ? $root.GraphSync.RefType[message.type] === undefined ? message.type : $root.GraphSync.RefType[message.type] : message.type; - if (message.value != null && message.hasOwnProperty("value")) - object.value = options.bytes === String ? $util.base64.encode(message.value, 0, message.value.length) : options.bytes === Array ? Array.prototype.slice.call(message.value) : message.value; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + if (message.type != null && message.hasOwnProperty('type')) + object.type = + options.enums === String + ? $root.GraphSync.RefType[message.type] === undefined + ? message.type + : $root.GraphSync.RefType[message.type] + : message.type; + if (message.value != null && message.hasOwnProperty('value')) + object.value = + options.bytes === String + ? $util.base64.encode(message.value, 0, message.value.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.value) + : message.value; + if (message.name != null && message.hasOwnProperty('name')) object.name = message.name; return object; }; @@ -218238,9 +227421,9 @@ export const GraphSync = $root.GraphSync = (() => { */ GraphSyncRef.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/GraphSync.GraphSyncRef"; + return typeUrlPrefix + '/GraphSync.GraphSyncRef'; }; return GraphSyncRef; @@ -218256,13 +227439,14 @@ export const GraphSync = $root.GraphSync = (() => { * @property {number} GSE_ACL=3 GSE_ACL value * @property {number} GSE_DELETION=4 GSE_DELETION value */ - GraphSync.GraphSyncDataType = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "GSE_DATA"] = 0; - values[valuesById[1] = "GSE_KEY"] = 1; - values[valuesById[2] = "GSE_LINK"] = 2; - values[valuesById[3] = "GSE_ACL"] = 3; - values[valuesById[4] = "GSE_DELETION"] = 4; + GraphSync.GraphSyncDataType = (function () { + const valuesById = {}, + values = Object.create(valuesById); + values[(valuesById[0] = 'GSE_DATA')] = 0; + values[(valuesById[1] = 'GSE_KEY')] = 1; + values[(valuesById[2] = 'GSE_LINK')] = 2; + values[(valuesById[3] = 'GSE_ACL')] = 3; + values[(valuesById[4] = 'GSE_DELETION')] = 4; return values; })(); @@ -218274,16 +227458,16 @@ export const GraphSync = $root.GraphSync = (() => { * @property {number} GSA_SERVICE=1 GSA_SERVICE value * @property {number} GSA_PAM_GATEWAY=2 GSA_PAM_GATEWAY value */ - GraphSync.GraphSyncActorType = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "GSA_USER"] = 0; - values[valuesById[1] = "GSA_SERVICE"] = 1; - values[valuesById[2] = "GSA_PAM_GATEWAY"] = 2; + GraphSync.GraphSyncActorType = (function () { + const valuesById = {}, + values = Object.create(valuesById); + values[(valuesById[0] = 'GSA_USER')] = 0; + values[(valuesById[1] = 'GSA_SERVICE')] = 1; + values[(valuesById[2] = 'GSA_PAM_GATEWAY')] = 2; return values; })(); - GraphSync.GraphSyncActor = (function() { - + GraphSync.GraphSyncActor = (function () { /** * Properties of a GraphSyncActor. * @memberof GraphSync @@ -218305,8 +227489,7 @@ export const GraphSync = $root.GraphSync = (() => { function GraphSyncActor(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -218331,7 +227514,7 @@ export const GraphSync = $root.GraphSync = (() => { * @memberof GraphSync.GraphSyncActor * @instance */ - GraphSyncActor.prototype.name = ""; + GraphSyncActor.prototype.name = ''; /** * GraphSyncActor effectiveUserId. @@ -218363,16 +227546,15 @@ export const GraphSync = $root.GraphSync = (() => { * @returns {$protobuf.Writer} Writer */ GraphSyncActor.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.type != null && Object.hasOwnProperty.call(message, "type")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.type); - if (message.id != null && Object.hasOwnProperty.call(message, "id")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.id); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.name); - if (message.effectiveUserId != null && Object.hasOwnProperty.call(message, "effectiveUserId")) - writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.effectiveUserId); + if (!writer) writer = $Writer.create(); + if (message.type != null && Object.hasOwnProperty.call(message, 'type')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int32(message.type); + if (message.id != null && Object.hasOwnProperty.call(message, 'id')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.id); + if (message.name != null && Object.hasOwnProperty.call(message, 'name')) + writer.uint32(/* id 3, wireType 2 =*/ 26).string(message.name); + if (message.effectiveUserId != null && Object.hasOwnProperty.call(message, 'effectiveUserId')) + writer.uint32(/* id 4, wireType 2 =*/ 34).bytes(message.effectiveUserId); return writer; }; @@ -218401,31 +227583,31 @@ export const GraphSync = $root.GraphSync = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ GraphSyncActor.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.GraphSync.GraphSyncActor(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.GraphSync.GraphSyncActor(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.type = reader.int32(); break; } - case 2: { + case 2: { message.id = reader.bytes(); break; } - case 3: { + case 3: { message.name = reader.string(); break; } - case 4: { + case 4: { message.effectiveUserId = reader.bytes(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -218442,8 +227624,7 @@ export const GraphSync = $root.GraphSync = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ GraphSyncActor.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -218456,26 +227637,29 @@ export const GraphSync = $root.GraphSync = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ GraphSyncActor.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.type != null && message.hasOwnProperty("type")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.type != null && message.hasOwnProperty('type')) switch (message.type) { - default: - return "type: enum value expected"; - case 0: - case 1: - case 2: - break; + default: + return 'type: enum value expected'; + case 0: + case 1: + case 2: + break; } - if (message.id != null && message.hasOwnProperty("id")) - if (!(message.id && typeof message.id.length === "number" || $util.isString(message.id))) - return "id: buffer expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.effectiveUserId != null && message.hasOwnProperty("effectiveUserId")) - if (!(message.effectiveUserId && typeof message.effectiveUserId.length === "number" || $util.isString(message.effectiveUserId))) - return "effectiveUserId: buffer expected"; + if (message.id != null && message.hasOwnProperty('id')) + if (!((message.id && typeof message.id.length === 'number') || $util.isString(message.id))) + return 'id: buffer expected'; + if (message.name != null && message.hasOwnProperty('name')) + if (!$util.isString(message.name)) return 'name: string expected'; + if (message.effectiveUserId != null && message.hasOwnProperty('effectiveUserId')) + if ( + !( + (message.effectiveUserId && typeof message.effectiveUserId.length === 'number') || + $util.isString(message.effectiveUserId) + ) + ) + return 'effectiveUserId: buffer expected'; return null; }; @@ -218488,41 +227672,41 @@ export const GraphSync = $root.GraphSync = (() => { * @returns {GraphSync.GraphSyncActor} GraphSyncActor */ GraphSyncActor.fromObject = function fromObject(object) { - if (object instanceof $root.GraphSync.GraphSyncActor) - return object; + if (object instanceof $root.GraphSync.GraphSyncActor) return object; let message = new $root.GraphSync.GraphSyncActor(); switch (object.type) { - default: - if (typeof object.type === "number") { - message.type = object.type; - break; - } - break; - case "GSA_USER": - case 0: - message.type = 0; - break; - case "GSA_SERVICE": - case 1: - message.type = 1; - break; - case "GSA_PAM_GATEWAY": - case 2: - message.type = 2; - break; + default: + if (typeof object.type === 'number') { + message.type = object.type; + break; + } + break; + case 'GSA_USER': + case 0: + message.type = 0; + break; + case 'GSA_SERVICE': + case 1: + message.type = 1; + break; + case 'GSA_PAM_GATEWAY': + case 2: + message.type = 2; + break; } if (object.id != null) - if (typeof object.id === "string") - $util.base64.decode(object.id, message.id = $util.newBuffer($util.base64.length(object.id)), 0); - else if (object.id.length >= 0) - message.id = object.id; - if (object.name != null) - message.name = String(object.name); + if (typeof object.id === 'string') + $util.base64.decode(object.id, (message.id = $util.newBuffer($util.base64.length(object.id))), 0); + else if (object.id.length >= 0) message.id = object.id; + if (object.name != null) message.name = String(object.name); if (object.effectiveUserId != null) - if (typeof object.effectiveUserId === "string") - $util.base64.decode(object.effectiveUserId, message.effectiveUserId = $util.newBuffer($util.base64.length(object.effectiveUserId)), 0); - else if (object.effectiveUserId.length >= 0) - message.effectiveUserId = object.effectiveUserId; + if (typeof object.effectiveUserId === 'string') + $util.base64.decode( + object.effectiveUserId, + (message.effectiveUserId = $util.newBuffer($util.base64.length(object.effectiveUserId))), + 0 + ); + else if (object.effectiveUserId.length >= 0) message.effectiveUserId = object.effectiveUserId; return message; }; @@ -218536,35 +227720,44 @@ export const GraphSync = $root.GraphSync = (() => { * @returns {Object.} Plain object */ GraphSyncActor.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - object.type = options.enums === String ? "GSA_USER" : 0; - if (options.bytes === String) - object.id = ""; + object.type = options.enums === String ? 'GSA_USER' : 0; + if (options.bytes === String) object.id = ''; else { object.id = []; - if (options.bytes !== Array) - object.id = $util.newBuffer(object.id); + if (options.bytes !== Array) object.id = $util.newBuffer(object.id); } - object.name = ""; - if (options.bytes === String) - object.effectiveUserId = ""; + object.name = ''; + if (options.bytes === String) object.effectiveUserId = ''; else { object.effectiveUserId = []; - if (options.bytes !== Array) - object.effectiveUserId = $util.newBuffer(object.effectiveUserId); - } - } - if (message.type != null && message.hasOwnProperty("type")) - object.type = options.enums === String ? $root.GraphSync.GraphSyncActorType[message.type] === undefined ? message.type : $root.GraphSync.GraphSyncActorType[message.type] : message.type; - if (message.id != null && message.hasOwnProperty("id")) - object.id = options.bytes === String ? $util.base64.encode(message.id, 0, message.id.length) : options.bytes === Array ? Array.prototype.slice.call(message.id) : message.id; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.effectiveUserId != null && message.hasOwnProperty("effectiveUserId")) - object.effectiveUserId = options.bytes === String ? $util.base64.encode(message.effectiveUserId, 0, message.effectiveUserId.length) : options.bytes === Array ? Array.prototype.slice.call(message.effectiveUserId) : message.effectiveUserId; + if (options.bytes !== Array) object.effectiveUserId = $util.newBuffer(object.effectiveUserId); + } + } + if (message.type != null && message.hasOwnProperty('type')) + object.type = + options.enums === String + ? $root.GraphSync.GraphSyncActorType[message.type] === undefined + ? message.type + : $root.GraphSync.GraphSyncActorType[message.type] + : message.type; + if (message.id != null && message.hasOwnProperty('id')) + object.id = + options.bytes === String + ? $util.base64.encode(message.id, 0, message.id.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.id) + : message.id; + if (message.name != null && message.hasOwnProperty('name')) object.name = message.name; + if (message.effectiveUserId != null && message.hasOwnProperty('effectiveUserId')) + object.effectiveUserId = + options.bytes === String + ? $util.base64.encode(message.effectiveUserId, 0, message.effectiveUserId.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.effectiveUserId) + : message.effectiveUserId; return object; }; @@ -218589,16 +227782,15 @@ export const GraphSync = $root.GraphSync = (() => { */ GraphSyncActor.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/GraphSync.GraphSyncActor"; + return typeUrlPrefix + '/GraphSync.GraphSyncActor'; }; return GraphSyncActor; })(); - GraphSync.GraphSyncData = (function() { - + GraphSync.GraphSyncData = (function () { /** * Properties of a GraphSyncData. * @memberof GraphSync @@ -218621,8 +227813,7 @@ export const GraphSync = $root.GraphSync = (() => { function GraphSyncData(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -218663,7 +227854,7 @@ export const GraphSync = $root.GraphSync = (() => { * @memberof GraphSync.GraphSyncData * @instance */ - GraphSyncData.prototype.path = ""; + GraphSyncData.prototype.path = ''; /** * Creates a new GraphSyncData instance using the specified properties. @@ -218687,18 +227878,23 @@ export const GraphSync = $root.GraphSync = (() => { * @returns {$protobuf.Writer} Writer */ GraphSyncData.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.type != null && Object.hasOwnProperty.call(message, "type")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.type); - if (message.ref != null && Object.hasOwnProperty.call(message, "ref")) - $root.GraphSync.GraphSyncRef.encode(message.ref, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.parentRef != null && Object.hasOwnProperty.call(message, "parentRef")) - $root.GraphSync.GraphSyncRef.encode(message.parentRef, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.content != null && Object.hasOwnProperty.call(message, "content")) - writer.uint32(/* id 4, wireType 2 =*/34).bytes(message.content); - if (message.path != null && Object.hasOwnProperty.call(message, "path")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.path); + if (!writer) writer = $Writer.create(); + if (message.type != null && Object.hasOwnProperty.call(message, 'type')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int32(message.type); + if (message.ref != null && Object.hasOwnProperty.call(message, 'ref')) + $root.GraphSync.GraphSyncRef.encode( + message.ref, + writer.uint32(/* id 2, wireType 2 =*/ 18).fork() + ).ldelim(); + if (message.parentRef != null && Object.hasOwnProperty.call(message, 'parentRef')) + $root.GraphSync.GraphSyncRef.encode( + message.parentRef, + writer.uint32(/* id 3, wireType 2 =*/ 26).fork() + ).ldelim(); + if (message.content != null && Object.hasOwnProperty.call(message, 'content')) + writer.uint32(/* id 4, wireType 2 =*/ 34).bytes(message.content); + if (message.path != null && Object.hasOwnProperty.call(message, 'path')) + writer.uint32(/* id 5, wireType 2 =*/ 42).string(message.path); return writer; }; @@ -218727,35 +227923,35 @@ export const GraphSync = $root.GraphSync = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ GraphSyncData.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.GraphSync.GraphSyncData(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.GraphSync.GraphSyncData(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.type = reader.int32(); break; } - case 2: { + case 2: { message.ref = $root.GraphSync.GraphSyncRef.decode(reader, reader.uint32()); break; } - case 3: { + case 3: { message.parentRef = $root.GraphSync.GraphSyncRef.decode(reader, reader.uint32()); break; } - case 4: { + case 4: { message.content = reader.bytes(); break; } - case 5: { + case 5: { message.path = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -218772,8 +227968,7 @@ export const GraphSync = $root.GraphSync = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ GraphSyncData.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -218786,35 +227981,36 @@ export const GraphSync = $root.GraphSync = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ GraphSyncData.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.type != null && message.hasOwnProperty("type")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.type != null && message.hasOwnProperty('type')) switch (message.type) { - default: - return "type: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; + default: + return 'type: enum value expected'; + case 0: + case 1: + case 2: + case 3: + case 4: + break; } - if (message.ref != null && message.hasOwnProperty("ref")) { + if (message.ref != null && message.hasOwnProperty('ref')) { let error = $root.GraphSync.GraphSyncRef.verify(message.ref); - if (error) - return "ref." + error; + if (error) return 'ref.' + error; } - if (message.parentRef != null && message.hasOwnProperty("parentRef")) { + if (message.parentRef != null && message.hasOwnProperty('parentRef')) { let error = $root.GraphSync.GraphSyncRef.verify(message.parentRef); - if (error) - return "parentRef." + error; + if (error) return 'parentRef.' + error; } - if (message.content != null && message.hasOwnProperty("content")) - if (!(message.content && typeof message.content.length === "number" || $util.isString(message.content))) - return "content: buffer expected"; - if (message.path != null && message.hasOwnProperty("path")) - if (!$util.isString(message.path)) - return "path: string expected"; + if (message.content != null && message.hasOwnProperty('content')) + if ( + !( + (message.content && typeof message.content.length === 'number') || + $util.isString(message.content) + ) + ) + return 'content: buffer expected'; + if (message.path != null && message.hasOwnProperty('path')) + if (!$util.isString(message.path)) return 'path: string expected'; return null; }; @@ -218827,54 +228023,54 @@ export const GraphSync = $root.GraphSync = (() => { * @returns {GraphSync.GraphSyncData} GraphSyncData */ GraphSyncData.fromObject = function fromObject(object) { - if (object instanceof $root.GraphSync.GraphSyncData) - return object; + if (object instanceof $root.GraphSync.GraphSyncData) return object; let message = new $root.GraphSync.GraphSyncData(); switch (object.type) { - default: - if (typeof object.type === "number") { - message.type = object.type; - break; - } - break; - case "GSE_DATA": - case 0: - message.type = 0; - break; - case "GSE_KEY": - case 1: - message.type = 1; - break; - case "GSE_LINK": - case 2: - message.type = 2; - break; - case "GSE_ACL": - case 3: - message.type = 3; - break; - case "GSE_DELETION": - case 4: - message.type = 4; - break; + default: + if (typeof object.type === 'number') { + message.type = object.type; + break; + } + break; + case 'GSE_DATA': + case 0: + message.type = 0; + break; + case 'GSE_KEY': + case 1: + message.type = 1; + break; + case 'GSE_LINK': + case 2: + message.type = 2; + break; + case 'GSE_ACL': + case 3: + message.type = 3; + break; + case 'GSE_DELETION': + case 4: + message.type = 4; + break; } if (object.ref != null) { - if (typeof object.ref !== "object") - throw TypeError(".GraphSync.GraphSyncData.ref: object expected"); + if (typeof object.ref !== 'object') throw TypeError('.GraphSync.GraphSyncData.ref: object expected'); message.ref = $root.GraphSync.GraphSyncRef.fromObject(object.ref); } if (object.parentRef != null) { - if (typeof object.parentRef !== "object") - throw TypeError(".GraphSync.GraphSyncData.parentRef: object expected"); + if (typeof object.parentRef !== 'object') + throw TypeError('.GraphSync.GraphSyncData.parentRef: object expected'); message.parentRef = $root.GraphSync.GraphSyncRef.fromObject(object.parentRef); } if (object.content != null) - if (typeof object.content === "string") - $util.base64.decode(object.content, message.content = $util.newBuffer($util.base64.length(object.content)), 0); - else if (object.content.length >= 0) - message.content = object.content; - if (object.path != null) - message.path = String(object.path); + if (typeof object.content === 'string') + $util.base64.decode( + object.content, + (message.content = $util.newBuffer($util.base64.length(object.content))), + 0 + ); + else if (object.content.length >= 0) message.content = object.content; + if (object.path != null) message.path = String(object.path); return message; }; @@ -218888,32 +228084,38 @@ export const GraphSync = $root.GraphSync = (() => { * @returns {Object.} Plain object */ GraphSyncData.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - object.type = options.enums === String ? "GSE_DATA" : 0; + object.type = options.enums === String ? 'GSE_DATA' : 0; object.ref = null; object.parentRef = null; - if (options.bytes === String) - object.content = ""; + if (options.bytes === String) object.content = ''; else { object.content = []; - if (options.bytes !== Array) - object.content = $util.newBuffer(object.content); - } - object.path = ""; - } - if (message.type != null && message.hasOwnProperty("type")) - object.type = options.enums === String ? $root.GraphSync.GraphSyncDataType[message.type] === undefined ? message.type : $root.GraphSync.GraphSyncDataType[message.type] : message.type; - if (message.ref != null && message.hasOwnProperty("ref")) + if (options.bytes !== Array) object.content = $util.newBuffer(object.content); + } + object.path = ''; + } + if (message.type != null && message.hasOwnProperty('type')) + object.type = + options.enums === String + ? $root.GraphSync.GraphSyncDataType[message.type] === undefined + ? message.type + : $root.GraphSync.GraphSyncDataType[message.type] + : message.type; + if (message.ref != null && message.hasOwnProperty('ref')) object.ref = $root.GraphSync.GraphSyncRef.toObject(message.ref, options); - if (message.parentRef != null && message.hasOwnProperty("parentRef")) + if (message.parentRef != null && message.hasOwnProperty('parentRef')) object.parentRef = $root.GraphSync.GraphSyncRef.toObject(message.parentRef, options); - if (message.content != null && message.hasOwnProperty("content")) - object.content = options.bytes === String ? $util.base64.encode(message.content, 0, message.content.length) : options.bytes === Array ? Array.prototype.slice.call(message.content) : message.content; - if (message.path != null && message.hasOwnProperty("path")) - object.path = message.path; + if (message.content != null && message.hasOwnProperty('content')) + object.content = + options.bytes === String + ? $util.base64.encode(message.content, 0, message.content.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.content) + : message.content; + if (message.path != null && message.hasOwnProperty('path')) object.path = message.path; return object; }; @@ -218938,16 +228140,15 @@ export const GraphSync = $root.GraphSync = (() => { */ GraphSyncData.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/GraphSync.GraphSyncData"; + return typeUrlPrefix + '/GraphSync.GraphSyncData'; }; return GraphSyncData; })(); - GraphSync.GraphSyncDataPlus = (function() { - + GraphSync.GraphSyncDataPlus = (function () { /** * Properties of a GraphSyncDataPlus. * @memberof GraphSync @@ -218968,8 +228169,7 @@ export const GraphSync = $root.GraphSync = (() => { function GraphSyncDataPlus(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -218986,7 +228186,7 @@ export const GraphSync = $root.GraphSync = (() => { * @memberof GraphSync.GraphSyncDataPlus * @instance */ - GraphSyncDataPlus.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + GraphSyncDataPlus.prototype.timestamp = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * GraphSyncDataPlus actor. @@ -219018,14 +228218,19 @@ export const GraphSync = $root.GraphSync = (() => { * @returns {$protobuf.Writer} Writer */ GraphSyncDataPlus.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.data != null && Object.hasOwnProperty.call(message, "data")) - $root.GraphSync.GraphSyncData.encode(message.data, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.timestamp != null && Object.hasOwnProperty.call(message, "timestamp")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.timestamp); - if (message.actor != null && Object.hasOwnProperty.call(message, "actor")) - $root.GraphSync.GraphSyncActor.encode(message.actor, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (!writer) writer = $Writer.create(); + if (message.data != null && Object.hasOwnProperty.call(message, 'data')) + $root.GraphSync.GraphSyncData.encode( + message.data, + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); + if (message.timestamp != null && Object.hasOwnProperty.call(message, 'timestamp')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int64(message.timestamp); + if (message.actor != null && Object.hasOwnProperty.call(message, 'actor')) + $root.GraphSync.GraphSyncActor.encode( + message.actor, + writer.uint32(/* id 3, wireType 2 =*/ 26).fork() + ).ldelim(); return writer; }; @@ -219054,27 +228259,27 @@ export const GraphSync = $root.GraphSync = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ GraphSyncDataPlus.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.GraphSync.GraphSyncDataPlus(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.GraphSync.GraphSyncDataPlus(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.data = $root.GraphSync.GraphSyncData.decode(reader, reader.uint32()); break; } - case 2: { + case 2: { message.timestamp = reader.int64(); break; } - case 3: { + case 3: { message.actor = $root.GraphSync.GraphSyncActor.decode(reader, reader.uint32()); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -219091,8 +228296,7 @@ export const GraphSync = $root.GraphSync = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ GraphSyncDataPlus.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -219105,20 +228309,24 @@ export const GraphSync = $root.GraphSync = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ GraphSyncDataPlus.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.data != null && message.hasOwnProperty("data")) { + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.data != null && message.hasOwnProperty('data')) { let error = $root.GraphSync.GraphSyncData.verify(message.data); - if (error) - return "data." + error; - } - if (message.timestamp != null && message.hasOwnProperty("timestamp")) - if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high))) - return "timestamp: integer|Long expected"; - if (message.actor != null && message.hasOwnProperty("actor")) { + if (error) return 'data.' + error; + } + if (message.timestamp != null && message.hasOwnProperty('timestamp')) + if ( + !$util.isInteger(message.timestamp) && + !( + message.timestamp && + $util.isInteger(message.timestamp.low) && + $util.isInteger(message.timestamp.high) + ) + ) + return 'timestamp: integer|Long expected'; + if (message.actor != null && message.hasOwnProperty('actor')) { let error = $root.GraphSync.GraphSyncActor.verify(message.actor); - if (error) - return "actor." + error; + if (error) return 'actor.' + error; } return null; }; @@ -219132,26 +228340,25 @@ export const GraphSync = $root.GraphSync = (() => { * @returns {GraphSync.GraphSyncDataPlus} GraphSyncDataPlus */ GraphSyncDataPlus.fromObject = function fromObject(object) { - if (object instanceof $root.GraphSync.GraphSyncDataPlus) - return object; + if (object instanceof $root.GraphSync.GraphSyncDataPlus) return object; let message = new $root.GraphSync.GraphSyncDataPlus(); if (object.data != null) { - if (typeof object.data !== "object") - throw TypeError(".GraphSync.GraphSyncDataPlus.data: object expected"); + if (typeof object.data !== 'object') + throw TypeError('.GraphSync.GraphSyncDataPlus.data: object expected'); message.data = $root.GraphSync.GraphSyncData.fromObject(object.data); } if (object.timestamp != null) - if ($util.Long) - (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = false; - else if (typeof object.timestamp === "string") - message.timestamp = parseInt(object.timestamp, 10); - else if (typeof object.timestamp === "number") - message.timestamp = object.timestamp; - else if (typeof object.timestamp === "object") - message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(); + if ($util.Long) (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = false; + else if (typeof object.timestamp === 'string') message.timestamp = parseInt(object.timestamp, 10); + else if (typeof object.timestamp === 'number') message.timestamp = object.timestamp; + else if (typeof object.timestamp === 'object') + message.timestamp = new $util.LongBits( + object.timestamp.low >>> 0, + object.timestamp.high >>> 0 + ).toNumber(); if (object.actor != null) { - if (typeof object.actor !== "object") - throw TypeError(".GraphSync.GraphSyncDataPlus.actor: object expected"); + if (typeof object.actor !== 'object') + throw TypeError('.GraphSync.GraphSyncDataPlus.actor: object expected'); message.actor = $root.GraphSync.GraphSyncActor.fromObject(object.actor); } return message; @@ -219167,26 +228374,30 @@ export const GraphSync = $root.GraphSync = (() => { * @returns {Object.} Plain object */ GraphSyncDataPlus.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { object.data = null; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.timestamp = options.longs === String ? "0" : 0; + object.timestamp = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.timestamp = options.longs === String ? '0' : 0; object.actor = null; } - if (message.data != null && message.hasOwnProperty("data")) + if (message.data != null && message.hasOwnProperty('data')) object.data = $root.GraphSync.GraphSyncData.toObject(message.data, options); - if (message.timestamp != null && message.hasOwnProperty("timestamp")) - if (typeof message.timestamp === "number") + if (message.timestamp != null && message.hasOwnProperty('timestamp')) + if (typeof message.timestamp === 'number') object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp; else - object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber() : message.timestamp; - if (message.actor != null && message.hasOwnProperty("actor")) + object.timestamp = + options.longs === String + ? $util.Long.prototype.toString.call(message.timestamp) + : options.longs === Number + ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber() + : message.timestamp; + if (message.actor != null && message.hasOwnProperty('actor')) object.actor = $root.GraphSync.GraphSyncActor.toObject(message.actor, options); return object; }; @@ -219212,16 +228423,15 @@ export const GraphSync = $root.GraphSync = (() => { */ GraphSyncDataPlus.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/GraphSync.GraphSyncDataPlus"; + return typeUrlPrefix + '/GraphSync.GraphSyncDataPlus'; }; return GraphSyncDataPlus; })(); - GraphSync.GraphSyncQuery = (function() { - + GraphSync.GraphSyncQuery = (function () { /** * Properties of a GraphSyncQuery. * @memberof GraphSync @@ -219243,8 +228453,7 @@ export const GraphSync = $root.GraphSync = (() => { function GraphSyncQuery(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -219269,7 +228478,7 @@ export const GraphSync = $root.GraphSync = (() => { * @memberof GraphSync.GraphSyncQuery * @instance */ - GraphSyncQuery.prototype.syncPoint = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + GraphSyncQuery.prototype.syncPoint = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * GraphSyncQuery maxCount. @@ -219301,16 +228510,15 @@ export const GraphSync = $root.GraphSync = (() => { * @returns {$protobuf.Writer} Writer */ GraphSyncQuery.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.streamId != null && Object.hasOwnProperty.call(message, "streamId")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.streamId); - if (message.origin != null && Object.hasOwnProperty.call(message, "origin")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.origin); - if (message.syncPoint != null && Object.hasOwnProperty.call(message, "syncPoint")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.syncPoint); - if (message.maxCount != null && Object.hasOwnProperty.call(message, "maxCount")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.maxCount); + if (!writer) writer = $Writer.create(); + if (message.streamId != null && Object.hasOwnProperty.call(message, 'streamId')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.streamId); + if (message.origin != null && Object.hasOwnProperty.call(message, 'origin')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.origin); + if (message.syncPoint != null && Object.hasOwnProperty.call(message, 'syncPoint')) + writer.uint32(/* id 3, wireType 0 =*/ 24).int64(message.syncPoint); + if (message.maxCount != null && Object.hasOwnProperty.call(message, 'maxCount')) + writer.uint32(/* id 4, wireType 0 =*/ 32).int32(message.maxCount); return writer; }; @@ -219339,31 +228547,31 @@ export const GraphSync = $root.GraphSync = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ GraphSyncQuery.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.GraphSync.GraphSyncQuery(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.GraphSync.GraphSyncQuery(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.streamId = reader.bytes(); break; } - case 2: { + case 2: { message.origin = reader.bytes(); break; } - case 3: { + case 3: { message.syncPoint = reader.int64(); break; } - case 4: { + case 4: { message.maxCount = reader.int32(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -219380,8 +228588,7 @@ export const GraphSync = $root.GraphSync = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ GraphSyncQuery.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -219394,20 +228601,30 @@ export const GraphSync = $root.GraphSync = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ GraphSyncQuery.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.streamId != null && message.hasOwnProperty("streamId")) - if (!(message.streamId && typeof message.streamId.length === "number" || $util.isString(message.streamId))) - return "streamId: buffer expected"; - if (message.origin != null && message.hasOwnProperty("origin")) - if (!(message.origin && typeof message.origin.length === "number" || $util.isString(message.origin))) - return "origin: buffer expected"; - if (message.syncPoint != null && message.hasOwnProperty("syncPoint")) - if (!$util.isInteger(message.syncPoint) && !(message.syncPoint && $util.isInteger(message.syncPoint.low) && $util.isInteger(message.syncPoint.high))) - return "syncPoint: integer|Long expected"; - if (message.maxCount != null && message.hasOwnProperty("maxCount")) - if (!$util.isInteger(message.maxCount)) - return "maxCount: integer expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.streamId != null && message.hasOwnProperty('streamId')) + if ( + !( + (message.streamId && typeof message.streamId.length === 'number') || + $util.isString(message.streamId) + ) + ) + return 'streamId: buffer expected'; + if (message.origin != null && message.hasOwnProperty('origin')) + if (!((message.origin && typeof message.origin.length === 'number') || $util.isString(message.origin))) + return 'origin: buffer expected'; + if (message.syncPoint != null && message.hasOwnProperty('syncPoint')) + if ( + !$util.isInteger(message.syncPoint) && + !( + message.syncPoint && + $util.isInteger(message.syncPoint.low) && + $util.isInteger(message.syncPoint.high) + ) + ) + return 'syncPoint: integer|Long expected'; + if (message.maxCount != null && message.hasOwnProperty('maxCount')) + if (!$util.isInteger(message.maxCount)) return 'maxCount: integer expected'; return null; }; @@ -219420,30 +228637,34 @@ export const GraphSync = $root.GraphSync = (() => { * @returns {GraphSync.GraphSyncQuery} GraphSyncQuery */ GraphSyncQuery.fromObject = function fromObject(object) { - if (object instanceof $root.GraphSync.GraphSyncQuery) - return object; + if (object instanceof $root.GraphSync.GraphSyncQuery) return object; let message = new $root.GraphSync.GraphSyncQuery(); if (object.streamId != null) - if (typeof object.streamId === "string") - $util.base64.decode(object.streamId, message.streamId = $util.newBuffer($util.base64.length(object.streamId)), 0); - else if (object.streamId.length >= 0) - message.streamId = object.streamId; + if (typeof object.streamId === 'string') + $util.base64.decode( + object.streamId, + (message.streamId = $util.newBuffer($util.base64.length(object.streamId))), + 0 + ); + else if (object.streamId.length >= 0) message.streamId = object.streamId; if (object.origin != null) - if (typeof object.origin === "string") - $util.base64.decode(object.origin, message.origin = $util.newBuffer($util.base64.length(object.origin)), 0); - else if (object.origin.length >= 0) - message.origin = object.origin; + if (typeof object.origin === 'string') + $util.base64.decode( + object.origin, + (message.origin = $util.newBuffer($util.base64.length(object.origin))), + 0 + ); + else if (object.origin.length >= 0) message.origin = object.origin; if (object.syncPoint != null) - if ($util.Long) - (message.syncPoint = $util.Long.fromValue(object.syncPoint)).unsigned = false; - else if (typeof object.syncPoint === "string") - message.syncPoint = parseInt(object.syncPoint, 10); - else if (typeof object.syncPoint === "number") - message.syncPoint = object.syncPoint; - else if (typeof object.syncPoint === "object") - message.syncPoint = new $util.LongBits(object.syncPoint.low >>> 0, object.syncPoint.high >>> 0).toNumber(); - if (object.maxCount != null) - message.maxCount = object.maxCount | 0; + if ($util.Long) (message.syncPoint = $util.Long.fromValue(object.syncPoint)).unsigned = false; + else if (typeof object.syncPoint === 'string') message.syncPoint = parseInt(object.syncPoint, 10); + else if (typeof object.syncPoint === 'number') message.syncPoint = object.syncPoint; + else if (typeof object.syncPoint === 'object') + message.syncPoint = new $util.LongBits( + object.syncPoint.low >>> 0, + object.syncPoint.high >>> 0 + ).toNumber(); + if (object.maxCount != null) message.maxCount = object.maxCount | 0; return message; }; @@ -219457,42 +228678,51 @@ export const GraphSync = $root.GraphSync = (() => { * @returns {Object.} Plain object */ GraphSyncQuery.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.streamId = ""; + if (options.bytes === String) object.streamId = ''; else { object.streamId = []; - if (options.bytes !== Array) - object.streamId = $util.newBuffer(object.streamId); + if (options.bytes !== Array) object.streamId = $util.newBuffer(object.streamId); } - if (options.bytes === String) - object.origin = ""; + if (options.bytes === String) object.origin = ''; else { object.origin = []; - if (options.bytes !== Array) - object.origin = $util.newBuffer(object.origin); + if (options.bytes !== Array) object.origin = $util.newBuffer(object.origin); } if ($util.Long) { let long = new $util.Long(0, 0, false); - object.syncPoint = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.syncPoint = options.longs === String ? "0" : 0; + object.syncPoint = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.syncPoint = options.longs === String ? '0' : 0; object.maxCount = 0; } - if (message.streamId != null && message.hasOwnProperty("streamId")) - object.streamId = options.bytes === String ? $util.base64.encode(message.streamId, 0, message.streamId.length) : options.bytes === Array ? Array.prototype.slice.call(message.streamId) : message.streamId; - if (message.origin != null && message.hasOwnProperty("origin")) - object.origin = options.bytes === String ? $util.base64.encode(message.origin, 0, message.origin.length) : options.bytes === Array ? Array.prototype.slice.call(message.origin) : message.origin; - if (message.syncPoint != null && message.hasOwnProperty("syncPoint")) - if (typeof message.syncPoint === "number") + if (message.streamId != null && message.hasOwnProperty('streamId')) + object.streamId = + options.bytes === String + ? $util.base64.encode(message.streamId, 0, message.streamId.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.streamId) + : message.streamId; + if (message.origin != null && message.hasOwnProperty('origin')) + object.origin = + options.bytes === String + ? $util.base64.encode(message.origin, 0, message.origin.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.origin) + : message.origin; + if (message.syncPoint != null && message.hasOwnProperty('syncPoint')) + if (typeof message.syncPoint === 'number') object.syncPoint = options.longs === String ? String(message.syncPoint) : message.syncPoint; else - object.syncPoint = options.longs === String ? $util.Long.prototype.toString.call(message.syncPoint) : options.longs === Number ? new $util.LongBits(message.syncPoint.low >>> 0, message.syncPoint.high >>> 0).toNumber() : message.syncPoint; - if (message.maxCount != null && message.hasOwnProperty("maxCount")) - object.maxCount = message.maxCount; + object.syncPoint = + options.longs === String + ? $util.Long.prototype.toString.call(message.syncPoint) + : options.longs === Number + ? new $util.LongBits(message.syncPoint.low >>> 0, message.syncPoint.high >>> 0).toNumber() + : message.syncPoint; + if (message.maxCount != null && message.hasOwnProperty('maxCount')) object.maxCount = message.maxCount; return object; }; @@ -219517,16 +228747,15 @@ export const GraphSync = $root.GraphSync = (() => { */ GraphSyncQuery.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/GraphSync.GraphSyncQuery"; + return typeUrlPrefix + '/GraphSync.GraphSyncQuery'; }; return GraphSyncQuery; })(); - GraphSync.GraphSyncResult = (function() { - + GraphSync.GraphSyncResult = (function () { /** * Properties of a GraphSyncResult. * @memberof GraphSync @@ -219549,8 +228778,7 @@ export const GraphSync = $root.GraphSync = (() => { this.data = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -219567,7 +228795,7 @@ export const GraphSync = $root.GraphSync = (() => { * @memberof GraphSync.GraphSyncResult * @instance */ - GraphSyncResult.prototype.syncPoint = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + GraphSyncResult.prototype.syncPoint = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * GraphSyncResult data. @@ -219607,17 +228835,19 @@ export const GraphSync = $root.GraphSync = (() => { * @returns {$protobuf.Writer} Writer */ GraphSyncResult.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.streamId != null && Object.hasOwnProperty.call(message, "streamId")) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.streamId); - if (message.syncPoint != null && Object.hasOwnProperty.call(message, "syncPoint")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.syncPoint); + if (!writer) writer = $Writer.create(); + if (message.streamId != null && Object.hasOwnProperty.call(message, 'streamId')) + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.streamId); + if (message.syncPoint != null && Object.hasOwnProperty.call(message, 'syncPoint')) + writer.uint32(/* id 3, wireType 0 =*/ 24).int64(message.syncPoint); if (message.data != null && message.data.length) for (let i = 0; i < message.data.length; ++i) - $root.GraphSync.GraphSyncDataPlus.encode(message.data[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.hasMore != null && Object.hasOwnProperty.call(message, "hasMore")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.hasMore); + $root.GraphSync.GraphSyncDataPlus.encode( + message.data[i], + writer.uint32(/* id 4, wireType 2 =*/ 34).fork() + ).ldelim(); + if (message.hasMore != null && Object.hasOwnProperty.call(message, 'hasMore')) + writer.uint32(/* id 5, wireType 0 =*/ 40).bool(message.hasMore); return writer; }; @@ -219646,33 +228876,32 @@ export const GraphSync = $root.GraphSync = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ GraphSyncResult.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.GraphSync.GraphSyncResult(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.GraphSync.GraphSyncResult(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 2: { + case 2: { message.streamId = reader.bytes(); break; } - case 3: { + case 3: { message.syncPoint = reader.int64(); break; } - case 4: { - if (!(message.data && message.data.length)) - message.data = []; + case 4: { + if (!(message.data && message.data.length)) message.data = []; message.data.push($root.GraphSync.GraphSyncDataPlus.decode(reader, reader.uint32())); break; } - case 5: { + case 5: { message.hasMore = reader.bool(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -219689,8 +228918,7 @@ export const GraphSync = $root.GraphSync = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ GraphSyncResult.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -219703,26 +228931,34 @@ export const GraphSync = $root.GraphSync = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ GraphSyncResult.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.streamId != null && message.hasOwnProperty("streamId")) - if (!(message.streamId && typeof message.streamId.length === "number" || $util.isString(message.streamId))) - return "streamId: buffer expected"; - if (message.syncPoint != null && message.hasOwnProperty("syncPoint")) - if (!$util.isInteger(message.syncPoint) && !(message.syncPoint && $util.isInteger(message.syncPoint.low) && $util.isInteger(message.syncPoint.high))) - return "syncPoint: integer|Long expected"; - if (message.data != null && message.hasOwnProperty("data")) { - if (!Array.isArray(message.data)) - return "data: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.streamId != null && message.hasOwnProperty('streamId')) + if ( + !( + (message.streamId && typeof message.streamId.length === 'number') || + $util.isString(message.streamId) + ) + ) + return 'streamId: buffer expected'; + if (message.syncPoint != null && message.hasOwnProperty('syncPoint')) + if ( + !$util.isInteger(message.syncPoint) && + !( + message.syncPoint && + $util.isInteger(message.syncPoint.low) && + $util.isInteger(message.syncPoint.high) + ) + ) + return 'syncPoint: integer|Long expected'; + if (message.data != null && message.hasOwnProperty('data')) { + if (!Array.isArray(message.data)) return 'data: array expected'; for (let i = 0; i < message.data.length; ++i) { let error = $root.GraphSync.GraphSyncDataPlus.verify(message.data[i]); - if (error) - return "data." + error; + if (error) return 'data.' + error; } } - if (message.hasMore != null && message.hasOwnProperty("hasMore")) - if (typeof message.hasMore !== "boolean") - return "hasMore: boolean expected"; + if (message.hasMore != null && message.hasOwnProperty('hasMore')) + if (typeof message.hasMore !== 'boolean') return 'hasMore: boolean expected'; return null; }; @@ -219735,35 +228971,35 @@ export const GraphSync = $root.GraphSync = (() => { * @returns {GraphSync.GraphSyncResult} GraphSyncResult */ GraphSyncResult.fromObject = function fromObject(object) { - if (object instanceof $root.GraphSync.GraphSyncResult) - return object; + if (object instanceof $root.GraphSync.GraphSyncResult) return object; let message = new $root.GraphSync.GraphSyncResult(); if (object.streamId != null) - if (typeof object.streamId === "string") - $util.base64.decode(object.streamId, message.streamId = $util.newBuffer($util.base64.length(object.streamId)), 0); - else if (object.streamId.length >= 0) - message.streamId = object.streamId; + if (typeof object.streamId === 'string') + $util.base64.decode( + object.streamId, + (message.streamId = $util.newBuffer($util.base64.length(object.streamId))), + 0 + ); + else if (object.streamId.length >= 0) message.streamId = object.streamId; if (object.syncPoint != null) - if ($util.Long) - (message.syncPoint = $util.Long.fromValue(object.syncPoint)).unsigned = false; - else if (typeof object.syncPoint === "string") - message.syncPoint = parseInt(object.syncPoint, 10); - else if (typeof object.syncPoint === "number") - message.syncPoint = object.syncPoint; - else if (typeof object.syncPoint === "object") - message.syncPoint = new $util.LongBits(object.syncPoint.low >>> 0, object.syncPoint.high >>> 0).toNumber(); + if ($util.Long) (message.syncPoint = $util.Long.fromValue(object.syncPoint)).unsigned = false; + else if (typeof object.syncPoint === 'string') message.syncPoint = parseInt(object.syncPoint, 10); + else if (typeof object.syncPoint === 'number') message.syncPoint = object.syncPoint; + else if (typeof object.syncPoint === 'object') + message.syncPoint = new $util.LongBits( + object.syncPoint.low >>> 0, + object.syncPoint.high >>> 0 + ).toNumber(); if (object.data) { - if (!Array.isArray(object.data)) - throw TypeError(".GraphSync.GraphSyncResult.data: array expected"); + if (!Array.isArray(object.data)) throw TypeError('.GraphSync.GraphSyncResult.data: array expected'); message.data = []; for (let i = 0; i < object.data.length; ++i) { - if (typeof object.data[i] !== "object") - throw TypeError(".GraphSync.GraphSyncResult.data: object expected"); + if (typeof object.data[i] !== 'object') + throw TypeError('.GraphSync.GraphSyncResult.data: object expected'); message.data[i] = $root.GraphSync.GraphSyncDataPlus.fromObject(object.data[i]); } } - if (object.hasMore != null) - message.hasMore = Boolean(object.hasMore); + if (object.hasMore != null) message.hasMore = Boolean(object.hasMore); return message; }; @@ -219777,40 +229013,45 @@ export const GraphSync = $root.GraphSync = (() => { * @returns {Object.} Plain object */ GraphSyncResult.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.data = []; + if (options.arrays || options.defaults) object.data = []; if (options.defaults) { - if (options.bytes === String) - object.streamId = ""; + if (options.bytes === String) object.streamId = ''; else { object.streamId = []; - if (options.bytes !== Array) - object.streamId = $util.newBuffer(object.streamId); + if (options.bytes !== Array) object.streamId = $util.newBuffer(object.streamId); } if ($util.Long) { let long = new $util.Long(0, 0, false); - object.syncPoint = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.syncPoint = options.longs === String ? "0" : 0; + object.syncPoint = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.syncPoint = options.longs === String ? '0' : 0; object.hasMore = false; } - if (message.streamId != null && message.hasOwnProperty("streamId")) - object.streamId = options.bytes === String ? $util.base64.encode(message.streamId, 0, message.streamId.length) : options.bytes === Array ? Array.prototype.slice.call(message.streamId) : message.streamId; - if (message.syncPoint != null && message.hasOwnProperty("syncPoint")) - if (typeof message.syncPoint === "number") + if (message.streamId != null && message.hasOwnProperty('streamId')) + object.streamId = + options.bytes === String + ? $util.base64.encode(message.streamId, 0, message.streamId.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.streamId) + : message.streamId; + if (message.syncPoint != null && message.hasOwnProperty('syncPoint')) + if (typeof message.syncPoint === 'number') object.syncPoint = options.longs === String ? String(message.syncPoint) : message.syncPoint; else - object.syncPoint = options.longs === String ? $util.Long.prototype.toString.call(message.syncPoint) : options.longs === Number ? new $util.LongBits(message.syncPoint.low >>> 0, message.syncPoint.high >>> 0).toNumber() : message.syncPoint; + object.syncPoint = + options.longs === String + ? $util.Long.prototype.toString.call(message.syncPoint) + : options.longs === Number + ? new $util.LongBits(message.syncPoint.low >>> 0, message.syncPoint.high >>> 0).toNumber() + : message.syncPoint; if (message.data && message.data.length) { object.data = []; for (let j = 0; j < message.data.length; ++j) object.data[j] = $root.GraphSync.GraphSyncDataPlus.toObject(message.data[j], options); } - if (message.hasMore != null && message.hasOwnProperty("hasMore")) - object.hasMore = message.hasMore; + if (message.hasMore != null && message.hasOwnProperty('hasMore')) object.hasMore = message.hasMore; return object; }; @@ -219835,16 +229076,15 @@ export const GraphSync = $root.GraphSync = (() => { */ GraphSyncResult.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/GraphSync.GraphSyncResult"; + return typeUrlPrefix + '/GraphSync.GraphSyncResult'; }; return GraphSyncResult; })(); - GraphSync.GraphSyncMultiQuery = (function() { - + GraphSync.GraphSyncMultiQuery = (function () { /** * Properties of a GraphSyncMultiQuery. * @memberof GraphSync @@ -219864,8 +229104,7 @@ export const GraphSync = $root.GraphSync = (() => { this.queries = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -219898,11 +229137,13 @@ export const GraphSync = $root.GraphSync = (() => { * @returns {$protobuf.Writer} Writer */ GraphSyncMultiQuery.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.queries != null && message.queries.length) for (let i = 0; i < message.queries.length; ++i) - $root.GraphSync.GraphSyncQuery.encode(message.queries[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.GraphSync.GraphSyncQuery.encode( + message.queries[i], + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); return writer; }; @@ -219931,21 +229172,20 @@ export const GraphSync = $root.GraphSync = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ GraphSyncMultiQuery.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.GraphSync.GraphSyncMultiQuery(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.GraphSync.GraphSyncMultiQuery(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (!(message.queries && message.queries.length)) - message.queries = []; + case 1: { + if (!(message.queries && message.queries.length)) message.queries = []; message.queries.push($root.GraphSync.GraphSyncQuery.decode(reader, reader.uint32())); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -219962,8 +229202,7 @@ export const GraphSync = $root.GraphSync = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ GraphSyncMultiQuery.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -219976,15 +229215,12 @@ export const GraphSync = $root.GraphSync = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ GraphSyncMultiQuery.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.queries != null && message.hasOwnProperty("queries")) { - if (!Array.isArray(message.queries)) - return "queries: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.queries != null && message.hasOwnProperty('queries')) { + if (!Array.isArray(message.queries)) return 'queries: array expected'; for (let i = 0; i < message.queries.length; ++i) { let error = $root.GraphSync.GraphSyncQuery.verify(message.queries[i]); - if (error) - return "queries." + error; + if (error) return 'queries.' + error; } } return null; @@ -219999,16 +229235,15 @@ export const GraphSync = $root.GraphSync = (() => { * @returns {GraphSync.GraphSyncMultiQuery} GraphSyncMultiQuery */ GraphSyncMultiQuery.fromObject = function fromObject(object) { - if (object instanceof $root.GraphSync.GraphSyncMultiQuery) - return object; + if (object instanceof $root.GraphSync.GraphSyncMultiQuery) return object; let message = new $root.GraphSync.GraphSyncMultiQuery(); if (object.queries) { if (!Array.isArray(object.queries)) - throw TypeError(".GraphSync.GraphSyncMultiQuery.queries: array expected"); + throw TypeError('.GraphSync.GraphSyncMultiQuery.queries: array expected'); message.queries = []; for (let i = 0; i < object.queries.length; ++i) { - if (typeof object.queries[i] !== "object") - throw TypeError(".GraphSync.GraphSyncMultiQuery.queries: object expected"); + if (typeof object.queries[i] !== 'object') + throw TypeError('.GraphSync.GraphSyncMultiQuery.queries: object expected'); message.queries[i] = $root.GraphSync.GraphSyncQuery.fromObject(object.queries[i]); } } @@ -220025,11 +229260,9 @@ export const GraphSync = $root.GraphSync = (() => { * @returns {Object.} Plain object */ GraphSyncMultiQuery.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.queries = []; + if (options.arrays || options.defaults) object.queries = []; if (message.queries && message.queries.length) { object.queries = []; for (let j = 0; j < message.queries.length; ++j) @@ -220059,16 +229292,15 @@ export const GraphSync = $root.GraphSync = (() => { */ GraphSyncMultiQuery.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/GraphSync.GraphSyncMultiQuery"; + return typeUrlPrefix + '/GraphSync.GraphSyncMultiQuery'; }; return GraphSyncMultiQuery; })(); - GraphSync.GraphSyncMultiResult = (function() { - + GraphSync.GraphSyncMultiResult = (function () { /** * Properties of a GraphSyncMultiResult. * @memberof GraphSync @@ -220088,8 +229320,7 @@ export const GraphSync = $root.GraphSync = (() => { this.results = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -220122,11 +229353,13 @@ export const GraphSync = $root.GraphSync = (() => { * @returns {$protobuf.Writer} Writer */ GraphSyncMultiResult.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.results != null && message.results.length) for (let i = 0; i < message.results.length; ++i) - $root.GraphSync.GraphSyncResult.encode(message.results[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.GraphSync.GraphSyncResult.encode( + message.results[i], + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); return writer; }; @@ -220155,21 +229388,20 @@ export const GraphSync = $root.GraphSync = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ GraphSyncMultiResult.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.GraphSync.GraphSyncMultiResult(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.GraphSync.GraphSyncMultiResult(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (!(message.results && message.results.length)) - message.results = []; + case 1: { + if (!(message.results && message.results.length)) message.results = []; message.results.push($root.GraphSync.GraphSyncResult.decode(reader, reader.uint32())); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -220186,8 +229418,7 @@ export const GraphSync = $root.GraphSync = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ GraphSyncMultiResult.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -220200,15 +229431,12 @@ export const GraphSync = $root.GraphSync = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ GraphSyncMultiResult.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.results != null && message.hasOwnProperty("results")) { - if (!Array.isArray(message.results)) - return "results: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.results != null && message.hasOwnProperty('results')) { + if (!Array.isArray(message.results)) return 'results: array expected'; for (let i = 0; i < message.results.length; ++i) { let error = $root.GraphSync.GraphSyncResult.verify(message.results[i]); - if (error) - return "results." + error; + if (error) return 'results.' + error; } } return null; @@ -220223,16 +229451,15 @@ export const GraphSync = $root.GraphSync = (() => { * @returns {GraphSync.GraphSyncMultiResult} GraphSyncMultiResult */ GraphSyncMultiResult.fromObject = function fromObject(object) { - if (object instanceof $root.GraphSync.GraphSyncMultiResult) - return object; + if (object instanceof $root.GraphSync.GraphSyncMultiResult) return object; let message = new $root.GraphSync.GraphSyncMultiResult(); if (object.results) { if (!Array.isArray(object.results)) - throw TypeError(".GraphSync.GraphSyncMultiResult.results: array expected"); + throw TypeError('.GraphSync.GraphSyncMultiResult.results: array expected'); message.results = []; for (let i = 0; i < object.results.length; ++i) { - if (typeof object.results[i] !== "object") - throw TypeError(".GraphSync.GraphSyncMultiResult.results: object expected"); + if (typeof object.results[i] !== 'object') + throw TypeError('.GraphSync.GraphSyncMultiResult.results: object expected'); message.results[i] = $root.GraphSync.GraphSyncResult.fromObject(object.results[i]); } } @@ -220249,11 +229476,9 @@ export const GraphSync = $root.GraphSync = (() => { * @returns {Object.} Plain object */ GraphSyncMultiResult.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.results = []; + if (options.arrays || options.defaults) object.results = []; if (message.results && message.results.length) { object.results = []; for (let j = 0; j < message.results.length; ++j) @@ -220283,16 +229508,15 @@ export const GraphSync = $root.GraphSync = (() => { */ GraphSyncMultiResult.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/GraphSync.GraphSyncMultiResult"; + return typeUrlPrefix + '/GraphSync.GraphSyncMultiResult'; }; return GraphSyncMultiResult; })(); - GraphSync.GraphSyncAddDataRequest = (function() { - + GraphSync.GraphSyncAddDataRequest = (function () { /** * Properties of a GraphSyncAddDataRequest. * @memberof GraphSync @@ -220313,8 +229537,7 @@ export const GraphSync = $root.GraphSync = (() => { this.data = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -220355,13 +229578,18 @@ export const GraphSync = $root.GraphSync = (() => { * @returns {$protobuf.Writer} Writer */ GraphSyncAddDataRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.origin != null && Object.hasOwnProperty.call(message, "origin")) - $root.GraphSync.GraphSyncRef.encode(message.origin, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (!writer) writer = $Writer.create(); + if (message.origin != null && Object.hasOwnProperty.call(message, 'origin')) + $root.GraphSync.GraphSyncRef.encode( + message.origin, + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); if (message.data != null && message.data.length) for (let i = 0; i < message.data.length; ++i) - $root.GraphSync.GraphSyncData.encode(message.data[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + $root.GraphSync.GraphSyncData.encode( + message.data[i], + writer.uint32(/* id 2, wireType 2 =*/ 18).fork() + ).ldelim(); return writer; }; @@ -220390,25 +229618,24 @@ export const GraphSync = $root.GraphSync = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ GraphSyncAddDataRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.GraphSync.GraphSyncAddDataRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.GraphSync.GraphSyncAddDataRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.origin = $root.GraphSync.GraphSyncRef.decode(reader, reader.uint32()); break; } - case 2: { - if (!(message.data && message.data.length)) - message.data = []; + case 2: { + if (!(message.data && message.data.length)) message.data = []; message.data.push($root.GraphSync.GraphSyncData.decode(reader, reader.uint32())); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -220425,8 +229652,7 @@ export const GraphSync = $root.GraphSync = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ GraphSyncAddDataRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -220439,20 +229665,16 @@ export const GraphSync = $root.GraphSync = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ GraphSyncAddDataRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.origin != null && message.hasOwnProperty("origin")) { + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.origin != null && message.hasOwnProperty('origin')) { let error = $root.GraphSync.GraphSyncRef.verify(message.origin); - if (error) - return "origin." + error; + if (error) return 'origin.' + error; } - if (message.data != null && message.hasOwnProperty("data")) { - if (!Array.isArray(message.data)) - return "data: array expected"; + if (message.data != null && message.hasOwnProperty('data')) { + if (!Array.isArray(message.data)) return 'data: array expected'; for (let i = 0; i < message.data.length; ++i) { let error = $root.GraphSync.GraphSyncData.verify(message.data[i]); - if (error) - return "data." + error; + if (error) return 'data.' + error; } } return null; @@ -220467,21 +229689,20 @@ export const GraphSync = $root.GraphSync = (() => { * @returns {GraphSync.GraphSyncAddDataRequest} GraphSyncAddDataRequest */ GraphSyncAddDataRequest.fromObject = function fromObject(object) { - if (object instanceof $root.GraphSync.GraphSyncAddDataRequest) - return object; + if (object instanceof $root.GraphSync.GraphSyncAddDataRequest) return object; let message = new $root.GraphSync.GraphSyncAddDataRequest(); if (object.origin != null) { - if (typeof object.origin !== "object") - throw TypeError(".GraphSync.GraphSyncAddDataRequest.origin: object expected"); + if (typeof object.origin !== 'object') + throw TypeError('.GraphSync.GraphSyncAddDataRequest.origin: object expected'); message.origin = $root.GraphSync.GraphSyncRef.fromObject(object.origin); } if (object.data) { if (!Array.isArray(object.data)) - throw TypeError(".GraphSync.GraphSyncAddDataRequest.data: array expected"); + throw TypeError('.GraphSync.GraphSyncAddDataRequest.data: array expected'); message.data = []; for (let i = 0; i < object.data.length; ++i) { - if (typeof object.data[i] !== "object") - throw TypeError(".GraphSync.GraphSyncAddDataRequest.data: object expected"); + if (typeof object.data[i] !== 'object') + throw TypeError('.GraphSync.GraphSyncAddDataRequest.data: object expected'); message.data[i] = $root.GraphSync.GraphSyncData.fromObject(object.data[i]); } } @@ -220498,14 +229719,11 @@ export const GraphSync = $root.GraphSync = (() => { * @returns {Object.} Plain object */ GraphSyncAddDataRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.data = []; - if (options.defaults) - object.origin = null; - if (message.origin != null && message.hasOwnProperty("origin")) + if (options.arrays || options.defaults) object.data = []; + if (options.defaults) object.origin = null; + if (message.origin != null && message.hasOwnProperty('origin')) object.origin = $root.GraphSync.GraphSyncRef.toObject(message.origin, options); if (message.data && message.data.length) { object.data = []; @@ -220536,16 +229754,15 @@ export const GraphSync = $root.GraphSync = (() => { */ GraphSyncAddDataRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/GraphSync.GraphSyncAddDataRequest"; + return typeUrlPrefix + '/GraphSync.GraphSyncAddDataRequest'; }; return GraphSyncAddDataRequest; })(); - GraphSync.GraphSyncLeafsQuery = (function() { - + GraphSync.GraphSyncLeafsQuery = (function () { /** * Properties of a GraphSyncLeafsQuery. * @memberof GraphSync @@ -220565,8 +229782,7 @@ export const GraphSync = $root.GraphSync = (() => { this.vertices = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -220599,11 +229815,10 @@ export const GraphSync = $root.GraphSync = (() => { * @returns {$protobuf.Writer} Writer */ GraphSyncLeafsQuery.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.vertices != null && message.vertices.length) for (let i = 0; i < message.vertices.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.vertices[i]); + writer.uint32(/* id 2, wireType 2 =*/ 18).bytes(message.vertices[i]); return writer; }; @@ -220632,21 +229847,20 @@ export const GraphSync = $root.GraphSync = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ GraphSyncLeafsQuery.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.GraphSync.GraphSyncLeafsQuery(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.GraphSync.GraphSyncLeafsQuery(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 2: { - if (!(message.vertices && message.vertices.length)) - message.vertices = []; + case 2: { + if (!(message.vertices && message.vertices.length)) message.vertices = []; message.vertices.push(reader.bytes()); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -220663,8 +229877,7 @@ export const GraphSync = $root.GraphSync = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ GraphSyncLeafsQuery.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -220677,14 +229890,17 @@ export const GraphSync = $root.GraphSync = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ GraphSyncLeafsQuery.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.vertices != null && message.hasOwnProperty("vertices")) { - if (!Array.isArray(message.vertices)) - return "vertices: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.vertices != null && message.hasOwnProperty('vertices')) { + if (!Array.isArray(message.vertices)) return 'vertices: array expected'; for (let i = 0; i < message.vertices.length; ++i) - if (!(message.vertices[i] && typeof message.vertices[i].length === "number" || $util.isString(message.vertices[i]))) - return "vertices: buffer[] expected"; + if ( + !( + (message.vertices[i] && typeof message.vertices[i].length === 'number') || + $util.isString(message.vertices[i]) + ) + ) + return 'vertices: buffer[] expected'; } return null; }; @@ -220698,18 +229914,20 @@ export const GraphSync = $root.GraphSync = (() => { * @returns {GraphSync.GraphSyncLeafsQuery} GraphSyncLeafsQuery */ GraphSyncLeafsQuery.fromObject = function fromObject(object) { - if (object instanceof $root.GraphSync.GraphSyncLeafsQuery) - return object; + if (object instanceof $root.GraphSync.GraphSyncLeafsQuery) return object; let message = new $root.GraphSync.GraphSyncLeafsQuery(); if (object.vertices) { if (!Array.isArray(object.vertices)) - throw TypeError(".GraphSync.GraphSyncLeafsQuery.vertices: array expected"); + throw TypeError('.GraphSync.GraphSyncLeafsQuery.vertices: array expected'); message.vertices = []; for (let i = 0; i < object.vertices.length; ++i) - if (typeof object.vertices[i] === "string") - $util.base64.decode(object.vertices[i], message.vertices[i] = $util.newBuffer($util.base64.length(object.vertices[i])), 0); - else if (object.vertices[i].length >= 0) - message.vertices[i] = object.vertices[i]; + if (typeof object.vertices[i] === 'string') + $util.base64.decode( + object.vertices[i], + (message.vertices[i] = $util.newBuffer($util.base64.length(object.vertices[i]))), + 0 + ); + else if (object.vertices[i].length >= 0) message.vertices[i] = object.vertices[i]; } return message; }; @@ -220724,15 +229942,18 @@ export const GraphSync = $root.GraphSync = (() => { * @returns {Object.} Plain object */ GraphSyncLeafsQuery.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.vertices = []; + if (options.arrays || options.defaults) object.vertices = []; if (message.vertices && message.vertices.length) { object.vertices = []; for (let j = 0; j < message.vertices.length; ++j) - object.vertices[j] = options.bytes === String ? $util.base64.encode(message.vertices[j], 0, message.vertices[j].length) : options.bytes === Array ? Array.prototype.slice.call(message.vertices[j]) : message.vertices[j]; + object.vertices[j] = + options.bytes === String + ? $util.base64.encode(message.vertices[j], 0, message.vertices[j].length) + : options.bytes === Array + ? Array.prototype.slice.call(message.vertices[j]) + : message.vertices[j]; } return object; }; @@ -220758,16 +229979,15 @@ export const GraphSync = $root.GraphSync = (() => { */ GraphSyncLeafsQuery.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/GraphSync.GraphSyncLeafsQuery"; + return typeUrlPrefix + '/GraphSync.GraphSyncLeafsQuery'; }; return GraphSyncLeafsQuery; })(); - GraphSync.GraphSyncRefsResult = (function() { - + GraphSync.GraphSyncRefsResult = (function () { /** * Properties of a GraphSyncRefsResult. * @memberof GraphSync @@ -220787,8 +230007,7 @@ export const GraphSync = $root.GraphSync = (() => { this.refs = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -220821,11 +230040,13 @@ export const GraphSync = $root.GraphSync = (() => { * @returns {$protobuf.Writer} Writer */ GraphSyncRefsResult.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.refs != null && message.refs.length) for (let i = 0; i < message.refs.length; ++i) - $root.GraphSync.GraphSyncRef.encode(message.refs[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.GraphSync.GraphSyncRef.encode( + message.refs[i], + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); return writer; }; @@ -220854,21 +230075,20 @@ export const GraphSync = $root.GraphSync = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ GraphSyncRefsResult.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.GraphSync.GraphSyncRefsResult(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.GraphSync.GraphSyncRefsResult(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (!(message.refs && message.refs.length)) - message.refs = []; + case 1: { + if (!(message.refs && message.refs.length)) message.refs = []; message.refs.push($root.GraphSync.GraphSyncRef.decode(reader, reader.uint32())); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -220885,8 +230105,7 @@ export const GraphSync = $root.GraphSync = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ GraphSyncRefsResult.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -220899,15 +230118,12 @@ export const GraphSync = $root.GraphSync = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ GraphSyncRefsResult.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.refs != null && message.hasOwnProperty("refs")) { - if (!Array.isArray(message.refs)) - return "refs: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.refs != null && message.hasOwnProperty('refs')) { + if (!Array.isArray(message.refs)) return 'refs: array expected'; for (let i = 0; i < message.refs.length; ++i) { let error = $root.GraphSync.GraphSyncRef.verify(message.refs[i]); - if (error) - return "refs." + error; + if (error) return 'refs.' + error; } } return null; @@ -220922,16 +230138,14 @@ export const GraphSync = $root.GraphSync = (() => { * @returns {GraphSync.GraphSyncRefsResult} GraphSyncRefsResult */ GraphSyncRefsResult.fromObject = function fromObject(object) { - if (object instanceof $root.GraphSync.GraphSyncRefsResult) - return object; + if (object instanceof $root.GraphSync.GraphSyncRefsResult) return object; let message = new $root.GraphSync.GraphSyncRefsResult(); if (object.refs) { - if (!Array.isArray(object.refs)) - throw TypeError(".GraphSync.GraphSyncRefsResult.refs: array expected"); + if (!Array.isArray(object.refs)) throw TypeError('.GraphSync.GraphSyncRefsResult.refs: array expected'); message.refs = []; for (let i = 0; i < object.refs.length; ++i) { - if (typeof object.refs[i] !== "object") - throw TypeError(".GraphSync.GraphSyncRefsResult.refs: object expected"); + if (typeof object.refs[i] !== 'object') + throw TypeError('.GraphSync.GraphSyncRefsResult.refs: object expected'); message.refs[i] = $root.GraphSync.GraphSyncRef.fromObject(object.refs[i]); } } @@ -220948,11 +230162,9 @@ export const GraphSync = $root.GraphSync = (() => { * @returns {Object.} Plain object */ GraphSyncRefsResult.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.refs = []; + if (options.arrays || options.defaults) object.refs = []; if (message.refs && message.refs.length) { object.refs = []; for (let j = 0; j < message.refs.length; ++j) @@ -220982,19 +230194,18 @@ export const GraphSync = $root.GraphSync = (() => { */ GraphSyncRefsResult.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/GraphSync.GraphSyncRefsResult"; + return typeUrlPrefix + '/GraphSync.GraphSyncRefsResult'; }; return GraphSyncRefsResult; })(); return GraphSync; -})(); - -export const Upsell = $root.Upsell = (() => { +})()); +export const Upsell = ($root.Upsell = (() => { /** * Namespace Upsell. * @exports Upsell @@ -221002,8 +230213,7 @@ export const Upsell = $root.Upsell = (() => { */ const Upsell = {}; - Upsell.UpsellRequest = (function() { - + Upsell.UpsellRequest = (function () { /** * Properties of an UpsellRequest. * @memberof Upsell @@ -221025,8 +230235,7 @@ export const Upsell = $root.Upsell = (() => { function UpsellRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -221035,7 +230244,7 @@ export const Upsell = $root.Upsell = (() => { * @memberof Upsell.UpsellRequest * @instance */ - UpsellRequest.prototype.email = ""; + UpsellRequest.prototype.email = ''; /** * UpsellRequest locale. @@ -221043,7 +230252,7 @@ export const Upsell = $root.Upsell = (() => { * @memberof Upsell.UpsellRequest * @instance */ - UpsellRequest.prototype.locale = ""; + UpsellRequest.prototype.locale = ''; /** * UpsellRequest clientVersion. @@ -221051,7 +230260,7 @@ export const Upsell = $root.Upsell = (() => { * @memberof Upsell.UpsellRequest * @instance */ - UpsellRequest.prototype.clientVersion = ""; + UpsellRequest.prototype.clientVersion = ''; /** * UpsellRequest sessionToken. @@ -221059,7 +230268,7 @@ export const Upsell = $root.Upsell = (() => { * @memberof Upsell.UpsellRequest * @instance */ - UpsellRequest.prototype.sessionToken = ""; + UpsellRequest.prototype.sessionToken = ''; /** * Creates a new UpsellRequest instance using the specified properties. @@ -221083,16 +230292,15 @@ export const Upsell = $root.Upsell = (() => { * @returns {$protobuf.Writer} Writer */ UpsellRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.email != null && Object.hasOwnProperty.call(message, "email")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.email); - if (message.locale != null && Object.hasOwnProperty.call(message, "locale")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.locale); - if (message.clientVersion != null && Object.hasOwnProperty.call(message, "clientVersion")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.clientVersion); - if (message.sessionToken != null && Object.hasOwnProperty.call(message, "sessionToken")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.sessionToken); + if (!writer) writer = $Writer.create(); + if (message.email != null && Object.hasOwnProperty.call(message, 'email')) + writer.uint32(/* id 1, wireType 2 =*/ 10).string(message.email); + if (message.locale != null && Object.hasOwnProperty.call(message, 'locale')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.locale); + if (message.clientVersion != null && Object.hasOwnProperty.call(message, 'clientVersion')) + writer.uint32(/* id 3, wireType 2 =*/ 26).string(message.clientVersion); + if (message.sessionToken != null && Object.hasOwnProperty.call(message, 'sessionToken')) + writer.uint32(/* id 4, wireType 2 =*/ 34).string(message.sessionToken); return writer; }; @@ -221121,31 +230329,31 @@ export const Upsell = $root.Upsell = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ UpsellRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Upsell.UpsellRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Upsell.UpsellRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.email = reader.string(); break; } - case 2: { + case 2: { message.locale = reader.string(); break; } - case 3: { + case 3: { message.clientVersion = reader.string(); break; } - case 4: { + case 4: { message.sessionToken = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -221162,8 +230370,7 @@ export const Upsell = $root.Upsell = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ UpsellRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -221176,20 +230383,15 @@ export const Upsell = $root.Upsell = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ UpsellRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.email != null && message.hasOwnProperty("email")) - if (!$util.isString(message.email)) - return "email: string expected"; - if (message.locale != null && message.hasOwnProperty("locale")) - if (!$util.isString(message.locale)) - return "locale: string expected"; - if (message.clientVersion != null && message.hasOwnProperty("clientVersion")) - if (!$util.isString(message.clientVersion)) - return "clientVersion: string expected"; - if (message.sessionToken != null && message.hasOwnProperty("sessionToken")) - if (!$util.isString(message.sessionToken)) - return "sessionToken: string expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.email != null && message.hasOwnProperty('email')) + if (!$util.isString(message.email)) return 'email: string expected'; + if (message.locale != null && message.hasOwnProperty('locale')) + if (!$util.isString(message.locale)) return 'locale: string expected'; + if (message.clientVersion != null && message.hasOwnProperty('clientVersion')) + if (!$util.isString(message.clientVersion)) return 'clientVersion: string expected'; + if (message.sessionToken != null && message.hasOwnProperty('sessionToken')) + if (!$util.isString(message.sessionToken)) return 'sessionToken: string expected'; return null; }; @@ -221202,17 +230404,12 @@ export const Upsell = $root.Upsell = (() => { * @returns {Upsell.UpsellRequest} UpsellRequest */ UpsellRequest.fromObject = function fromObject(object) { - if (object instanceof $root.Upsell.UpsellRequest) - return object; + if (object instanceof $root.Upsell.UpsellRequest) return object; let message = new $root.Upsell.UpsellRequest(); - if (object.email != null) - message.email = String(object.email); - if (object.locale != null) - message.locale = String(object.locale); - if (object.clientVersion != null) - message.clientVersion = String(object.clientVersion); - if (object.sessionToken != null) - message.sessionToken = String(object.sessionToken); + if (object.email != null) message.email = String(object.email); + if (object.locale != null) message.locale = String(object.locale); + if (object.clientVersion != null) message.clientVersion = String(object.clientVersion); + if (object.sessionToken != null) message.sessionToken = String(object.sessionToken); return message; }; @@ -221226,22 +230423,19 @@ export const Upsell = $root.Upsell = (() => { * @returns {Object.} Plain object */ UpsellRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - object.email = ""; - object.locale = ""; - object.clientVersion = ""; - object.sessionToken = ""; + object.email = ''; + object.locale = ''; + object.clientVersion = ''; + object.sessionToken = ''; } - if (message.email != null && message.hasOwnProperty("email")) - object.email = message.email; - if (message.locale != null && message.hasOwnProperty("locale")) - object.locale = message.locale; - if (message.clientVersion != null && message.hasOwnProperty("clientVersion")) + if (message.email != null && message.hasOwnProperty('email')) object.email = message.email; + if (message.locale != null && message.hasOwnProperty('locale')) object.locale = message.locale; + if (message.clientVersion != null && message.hasOwnProperty('clientVersion')) object.clientVersion = message.clientVersion; - if (message.sessionToken != null && message.hasOwnProperty("sessionToken")) + if (message.sessionToken != null && message.hasOwnProperty('sessionToken')) object.sessionToken = message.sessionToken; return object; }; @@ -221267,16 +230461,15 @@ export const Upsell = $root.Upsell = (() => { */ UpsellRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Upsell.UpsellRequest"; + return typeUrlPrefix + '/Upsell.UpsellRequest'; }; return UpsellRequest; })(); - Upsell.UpsellResponse = (function() { - + Upsell.UpsellResponse = (function () { /** * Properties of an UpsellResponse. * @memberof Upsell @@ -221296,8 +230489,7 @@ export const Upsell = $root.Upsell = (() => { this.UpsellBanner = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -221330,11 +230522,13 @@ export const Upsell = $root.Upsell = (() => { * @returns {$protobuf.Writer} Writer */ UpsellResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.UpsellBanner != null && message.UpsellBanner.length) for (let i = 0; i < message.UpsellBanner.length; ++i) - $root.Upsell.UpsellBanner.encode(message.UpsellBanner[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.Upsell.UpsellBanner.encode( + message.UpsellBanner[i], + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); return writer; }; @@ -221363,21 +230557,20 @@ export const Upsell = $root.Upsell = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ UpsellResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Upsell.UpsellResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Upsell.UpsellResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (!(message.UpsellBanner && message.UpsellBanner.length)) - message.UpsellBanner = []; + case 1: { + if (!(message.UpsellBanner && message.UpsellBanner.length)) message.UpsellBanner = []; message.UpsellBanner.push($root.Upsell.UpsellBanner.decode(reader, reader.uint32())); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -221394,8 +230587,7 @@ export const Upsell = $root.Upsell = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ UpsellResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -221408,15 +230600,12 @@ export const Upsell = $root.Upsell = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ UpsellResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.UpsellBanner != null && message.hasOwnProperty("UpsellBanner")) { - if (!Array.isArray(message.UpsellBanner)) - return "UpsellBanner: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.UpsellBanner != null && message.hasOwnProperty('UpsellBanner')) { + if (!Array.isArray(message.UpsellBanner)) return 'UpsellBanner: array expected'; for (let i = 0; i < message.UpsellBanner.length; ++i) { let error = $root.Upsell.UpsellBanner.verify(message.UpsellBanner[i]); - if (error) - return "UpsellBanner." + error; + if (error) return 'UpsellBanner.' + error; } } return null; @@ -221431,16 +230620,15 @@ export const Upsell = $root.Upsell = (() => { * @returns {Upsell.UpsellResponse} UpsellResponse */ UpsellResponse.fromObject = function fromObject(object) { - if (object instanceof $root.Upsell.UpsellResponse) - return object; + if (object instanceof $root.Upsell.UpsellResponse) return object; let message = new $root.Upsell.UpsellResponse(); if (object.UpsellBanner) { if (!Array.isArray(object.UpsellBanner)) - throw TypeError(".Upsell.UpsellResponse.UpsellBanner: array expected"); + throw TypeError('.Upsell.UpsellResponse.UpsellBanner: array expected'); message.UpsellBanner = []; for (let i = 0; i < object.UpsellBanner.length; ++i) { - if (typeof object.UpsellBanner[i] !== "object") - throw TypeError(".Upsell.UpsellResponse.UpsellBanner: object expected"); + if (typeof object.UpsellBanner[i] !== 'object') + throw TypeError('.Upsell.UpsellResponse.UpsellBanner: object expected'); message.UpsellBanner[i] = $root.Upsell.UpsellBanner.fromObject(object.UpsellBanner[i]); } } @@ -221457,11 +230645,9 @@ export const Upsell = $root.Upsell = (() => { * @returns {Object.} Plain object */ UpsellResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.UpsellBanner = []; + if (options.arrays || options.defaults) object.UpsellBanner = []; if (message.UpsellBanner && message.UpsellBanner.length) { object.UpsellBanner = []; for (let j = 0; j < message.UpsellBanner.length; ++j) @@ -221491,16 +230677,15 @@ export const Upsell = $root.Upsell = (() => { */ UpsellResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Upsell.UpsellResponse"; + return typeUrlPrefix + '/Upsell.UpsellResponse'; }; return UpsellResponse; })(); - Upsell.UpsellBanner = (function() { - + Upsell.UpsellBanner = (function () { /** * Properties of an UpsellBanner. * @memberof Upsell @@ -221525,8 +230710,7 @@ export const Upsell = $root.Upsell = (() => { function UpsellBanner(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -221543,7 +230727,7 @@ export const Upsell = $root.Upsell = (() => { * @memberof Upsell.UpsellBanner * @instance */ - UpsellBanner.prototype.bannerOkAction = ""; + UpsellBanner.prototype.bannerOkAction = ''; /** * UpsellBanner bannerOkButton. @@ -221551,7 +230735,7 @@ export const Upsell = $root.Upsell = (() => { * @memberof Upsell.UpsellBanner * @instance */ - UpsellBanner.prototype.bannerOkButton = ""; + UpsellBanner.prototype.bannerOkButton = ''; /** * UpsellBanner bannerCancelAction. @@ -221559,7 +230743,7 @@ export const Upsell = $root.Upsell = (() => { * @memberof Upsell.UpsellBanner * @instance */ - UpsellBanner.prototype.bannerCancelAction = ""; + UpsellBanner.prototype.bannerCancelAction = ''; /** * UpsellBanner bannerCancelButton. @@ -221567,7 +230751,7 @@ export const Upsell = $root.Upsell = (() => { * @memberof Upsell.UpsellBanner * @instance */ - UpsellBanner.prototype.bannerCancelButton = ""; + UpsellBanner.prototype.bannerCancelButton = ''; /** * UpsellBanner bannerMessage. @@ -221575,7 +230759,7 @@ export const Upsell = $root.Upsell = (() => { * @memberof Upsell.UpsellBanner * @instance */ - UpsellBanner.prototype.bannerMessage = ""; + UpsellBanner.prototype.bannerMessage = ''; /** * UpsellBanner locale. @@ -221583,7 +230767,7 @@ export const Upsell = $root.Upsell = (() => { * @memberof Upsell.UpsellBanner * @instance */ - UpsellBanner.prototype.locale = ""; + UpsellBanner.prototype.locale = ''; /** * Creates a new UpsellBanner instance using the specified properties. @@ -221607,22 +230791,21 @@ export const Upsell = $root.Upsell = (() => { * @returns {$protobuf.Writer} Writer */ UpsellBanner.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.bannerId != null && Object.hasOwnProperty.call(message, "bannerId")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.bannerId); - if (message.bannerOkAction != null && Object.hasOwnProperty.call(message, "bannerOkAction")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.bannerOkAction); - if (message.bannerOkButton != null && Object.hasOwnProperty.call(message, "bannerOkButton")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.bannerOkButton); - if (message.bannerCancelAction != null && Object.hasOwnProperty.call(message, "bannerCancelAction")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.bannerCancelAction); - if (message.bannerCancelButton != null && Object.hasOwnProperty.call(message, "bannerCancelButton")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.bannerCancelButton); - if (message.bannerMessage != null && Object.hasOwnProperty.call(message, "bannerMessage")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.bannerMessage); - if (message.locale != null && Object.hasOwnProperty.call(message, "locale")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.locale); + if (!writer) writer = $Writer.create(); + if (message.bannerId != null && Object.hasOwnProperty.call(message, 'bannerId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int32(message.bannerId); + if (message.bannerOkAction != null && Object.hasOwnProperty.call(message, 'bannerOkAction')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.bannerOkAction); + if (message.bannerOkButton != null && Object.hasOwnProperty.call(message, 'bannerOkButton')) + writer.uint32(/* id 3, wireType 2 =*/ 26).string(message.bannerOkButton); + if (message.bannerCancelAction != null && Object.hasOwnProperty.call(message, 'bannerCancelAction')) + writer.uint32(/* id 4, wireType 2 =*/ 34).string(message.bannerCancelAction); + if (message.bannerCancelButton != null && Object.hasOwnProperty.call(message, 'bannerCancelButton')) + writer.uint32(/* id 5, wireType 2 =*/ 42).string(message.bannerCancelButton); + if (message.bannerMessage != null && Object.hasOwnProperty.call(message, 'bannerMessage')) + writer.uint32(/* id 6, wireType 2 =*/ 50).string(message.bannerMessage); + if (message.locale != null && Object.hasOwnProperty.call(message, 'locale')) + writer.uint32(/* id 7, wireType 2 =*/ 58).string(message.locale); return writer; }; @@ -221651,43 +230834,43 @@ export const Upsell = $root.Upsell = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ UpsellBanner.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.Upsell.UpsellBanner(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.Upsell.UpsellBanner(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.bannerId = reader.int32(); break; } - case 2: { + case 2: { message.bannerOkAction = reader.string(); break; } - case 3: { + case 3: { message.bannerOkButton = reader.string(); break; } - case 4: { + case 4: { message.bannerCancelAction = reader.string(); break; } - case 5: { + case 5: { message.bannerCancelButton = reader.string(); break; } - case 6: { + case 6: { message.bannerMessage = reader.string(); break; } - case 7: { + case 7: { message.locale = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -221704,8 +230887,7 @@ export const Upsell = $root.Upsell = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ UpsellBanner.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -221718,29 +230900,21 @@ export const Upsell = $root.Upsell = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ UpsellBanner.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.bannerId != null && message.hasOwnProperty("bannerId")) - if (!$util.isInteger(message.bannerId)) - return "bannerId: integer expected"; - if (message.bannerOkAction != null && message.hasOwnProperty("bannerOkAction")) - if (!$util.isString(message.bannerOkAction)) - return "bannerOkAction: string expected"; - if (message.bannerOkButton != null && message.hasOwnProperty("bannerOkButton")) - if (!$util.isString(message.bannerOkButton)) - return "bannerOkButton: string expected"; - if (message.bannerCancelAction != null && message.hasOwnProperty("bannerCancelAction")) - if (!$util.isString(message.bannerCancelAction)) - return "bannerCancelAction: string expected"; - if (message.bannerCancelButton != null && message.hasOwnProperty("bannerCancelButton")) - if (!$util.isString(message.bannerCancelButton)) - return "bannerCancelButton: string expected"; - if (message.bannerMessage != null && message.hasOwnProperty("bannerMessage")) - if (!$util.isString(message.bannerMessage)) - return "bannerMessage: string expected"; - if (message.locale != null && message.hasOwnProperty("locale")) - if (!$util.isString(message.locale)) - return "locale: string expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.bannerId != null && message.hasOwnProperty('bannerId')) + if (!$util.isInteger(message.bannerId)) return 'bannerId: integer expected'; + if (message.bannerOkAction != null && message.hasOwnProperty('bannerOkAction')) + if (!$util.isString(message.bannerOkAction)) return 'bannerOkAction: string expected'; + if (message.bannerOkButton != null && message.hasOwnProperty('bannerOkButton')) + if (!$util.isString(message.bannerOkButton)) return 'bannerOkButton: string expected'; + if (message.bannerCancelAction != null && message.hasOwnProperty('bannerCancelAction')) + if (!$util.isString(message.bannerCancelAction)) return 'bannerCancelAction: string expected'; + if (message.bannerCancelButton != null && message.hasOwnProperty('bannerCancelButton')) + if (!$util.isString(message.bannerCancelButton)) return 'bannerCancelButton: string expected'; + if (message.bannerMessage != null && message.hasOwnProperty('bannerMessage')) + if (!$util.isString(message.bannerMessage)) return 'bannerMessage: string expected'; + if (message.locale != null && message.hasOwnProperty('locale')) + if (!$util.isString(message.locale)) return 'locale: string expected'; return null; }; @@ -221753,23 +230927,15 @@ export const Upsell = $root.Upsell = (() => { * @returns {Upsell.UpsellBanner} UpsellBanner */ UpsellBanner.fromObject = function fromObject(object) { - if (object instanceof $root.Upsell.UpsellBanner) - return object; + if (object instanceof $root.Upsell.UpsellBanner) return object; let message = new $root.Upsell.UpsellBanner(); - if (object.bannerId != null) - message.bannerId = object.bannerId | 0; - if (object.bannerOkAction != null) - message.bannerOkAction = String(object.bannerOkAction); - if (object.bannerOkButton != null) - message.bannerOkButton = String(object.bannerOkButton); - if (object.bannerCancelAction != null) - message.bannerCancelAction = String(object.bannerCancelAction); - if (object.bannerCancelButton != null) - message.bannerCancelButton = String(object.bannerCancelButton); - if (object.bannerMessage != null) - message.bannerMessage = String(object.bannerMessage); - if (object.locale != null) - message.locale = String(object.locale); + if (object.bannerId != null) message.bannerId = object.bannerId | 0; + if (object.bannerOkAction != null) message.bannerOkAction = String(object.bannerOkAction); + if (object.bannerOkButton != null) message.bannerOkButton = String(object.bannerOkButton); + if (object.bannerCancelAction != null) message.bannerCancelAction = String(object.bannerCancelAction); + if (object.bannerCancelButton != null) message.bannerCancelButton = String(object.bannerCancelButton); + if (object.bannerMessage != null) message.bannerMessage = String(object.bannerMessage); + if (object.locale != null) message.locale = String(object.locale); return message; }; @@ -221783,32 +230949,29 @@ export const Upsell = $root.Upsell = (() => { * @returns {Object.} Plain object */ UpsellBanner.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { object.bannerId = 0; - object.bannerOkAction = ""; - object.bannerOkButton = ""; - object.bannerCancelAction = ""; - object.bannerCancelButton = ""; - object.bannerMessage = ""; - object.locale = ""; - } - if (message.bannerId != null && message.hasOwnProperty("bannerId")) - object.bannerId = message.bannerId; - if (message.bannerOkAction != null && message.hasOwnProperty("bannerOkAction")) + object.bannerOkAction = ''; + object.bannerOkButton = ''; + object.bannerCancelAction = ''; + object.bannerCancelButton = ''; + object.bannerMessage = ''; + object.locale = ''; + } + if (message.bannerId != null && message.hasOwnProperty('bannerId')) object.bannerId = message.bannerId; + if (message.bannerOkAction != null && message.hasOwnProperty('bannerOkAction')) object.bannerOkAction = message.bannerOkAction; - if (message.bannerOkButton != null && message.hasOwnProperty("bannerOkButton")) + if (message.bannerOkButton != null && message.hasOwnProperty('bannerOkButton')) object.bannerOkButton = message.bannerOkButton; - if (message.bannerCancelAction != null && message.hasOwnProperty("bannerCancelAction")) + if (message.bannerCancelAction != null && message.hasOwnProperty('bannerCancelAction')) object.bannerCancelAction = message.bannerCancelAction; - if (message.bannerCancelButton != null && message.hasOwnProperty("bannerCancelButton")) + if (message.bannerCancelButton != null && message.hasOwnProperty('bannerCancelButton')) object.bannerCancelButton = message.bannerCancelButton; - if (message.bannerMessage != null && message.hasOwnProperty("bannerMessage")) + if (message.bannerMessage != null && message.hasOwnProperty('bannerMessage')) object.bannerMessage = message.bannerMessage; - if (message.locale != null && message.hasOwnProperty("locale")) - object.locale = message.locale; + if (message.locale != null && message.hasOwnProperty('locale')) object.locale = message.locale; return object; }; @@ -221833,9 +230996,9 @@ export const Upsell = $root.Upsell = (() => { */ UpsellBanner.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/Upsell.UpsellBanner"; + return typeUrlPrefix + '/Upsell.UpsellBanner'; }; return UpsellBanner; @@ -221852,14 +231015,15 @@ export const Upsell = $root.Upsell = (() => { * @property {number} MICROSOFT=4 MICROSOFT value * @property {number} WEBAPP=5 WEBAPP value */ - Upsell.ClientType = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "DEFAULT_CLIENT_TYPE"] = 0; - values[valuesById[1] = "ALL"] = 1; - values[valuesById[2] = "ANDROID"] = 2; - values[valuesById[3] = "IOS"] = 3; - values[valuesById[4] = "MICROSOFT"] = 4; - values[valuesById[5] = "WEBAPP"] = 5; + Upsell.ClientType = (function () { + const valuesById = {}, + values = Object.create(valuesById); + values[(valuesById[0] = 'DEFAULT_CLIENT_TYPE')] = 0; + values[(valuesById[1] = 'ALL')] = 1; + values[(valuesById[2] = 'ANDROID')] = 2; + values[(valuesById[3] = 'IOS')] = 3; + values[(valuesById[4] = 'MICROSOFT')] = 4; + values[(valuesById[5] = 'WEBAPP')] = 5; return values; })(); @@ -221872,20 +231036,20 @@ export const Upsell = $root.Upsell = (() => { * @property {number} BASEVERSION=14 BASEVERSION value * @property {number} ABOVERANGE=15 ABOVERANGE value */ - Upsell.ClientVersion = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "DEFAULT_VERSION"] = 0; - values[valuesById[1] = "SUPPORTS_ALL"] = 1; - values[valuesById[14] = "BASEVERSION"] = 14; - values[valuesById[15] = "ABOVERANGE"] = 15; + Upsell.ClientVersion = (function () { + const valuesById = {}, + values = Object.create(valuesById); + values[(valuesById[0] = 'DEFAULT_VERSION')] = 0; + values[(valuesById[1] = 'SUPPORTS_ALL')] = 1; + values[(valuesById[14] = 'BASEVERSION')] = 14; + values[(valuesById[15] = 'ABOVERANGE')] = 15; return values; })(); return Upsell; -})(); - -export const BI = $root.BI = (() => { +})()); +export const BI = ($root.BI = (() => { /** * Namespace BI. * @exports BI @@ -221905,20 +231069,20 @@ export const BI = $root.BI = (() => { * @property {number} AUD=5 AUD value * @property {number} CAD=6 CAD value */ - BI.Currency = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "UNKNOWN"] = 0; - values[valuesById[1] = "USD"] = 1; - values[valuesById[2] = "GBP"] = 2; - values[valuesById[3] = "JPY"] = 3; - values[valuesById[4] = "EUR"] = 4; - values[valuesById[5] = "AUD"] = 5; - values[valuesById[6] = "CAD"] = 6; + BI.Currency = (function () { + const valuesById = {}, + values = Object.create(valuesById); + values[(valuesById[0] = 'UNKNOWN')] = 0; + values[(valuesById[1] = 'USD')] = 1; + values[(valuesById[2] = 'GBP')] = 2; + values[(valuesById[3] = 'JPY')] = 3; + values[(valuesById[4] = 'EUR')] = 4; + values[(valuesById[5] = 'AUD')] = 5; + values[(valuesById[6] = 'CAD')] = 6; return values; })(); - BI.ValidateSessionTokenRequest = (function() { - + BI.ValidateSessionTokenRequest = (function () { /** * Properties of a ValidateSessionTokenRequest. * @memberof BI @@ -221939,8 +231103,7 @@ export const BI = $root.BI = (() => { function ValidateSessionTokenRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -221965,7 +231128,7 @@ export const BI = $root.BI = (() => { * @memberof BI.ValidateSessionTokenRequest * @instance */ - ValidateSessionTokenRequest.prototype.ip = ""; + ValidateSessionTokenRequest.prototype.ip = ''; /** * Creates a new ValidateSessionTokenRequest instance using the specified properties. @@ -221989,14 +231152,13 @@ export const BI = $root.BI = (() => { * @returns {$protobuf.Writer} Writer */ ValidateSessionTokenRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.encryptedSessionToken != null && Object.hasOwnProperty.call(message, "encryptedSessionToken")) - writer.uint32(/* id 1, wireType 2 =*/10).bytes(message.encryptedSessionToken); - if (message.returnMcEnterpiseIds != null && Object.hasOwnProperty.call(message, "returnMcEnterpiseIds")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.returnMcEnterpiseIds); - if (message.ip != null && Object.hasOwnProperty.call(message, "ip")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.ip); + if (!writer) writer = $Writer.create(); + if (message.encryptedSessionToken != null && Object.hasOwnProperty.call(message, 'encryptedSessionToken')) + writer.uint32(/* id 1, wireType 2 =*/ 10).bytes(message.encryptedSessionToken); + if (message.returnMcEnterpiseIds != null && Object.hasOwnProperty.call(message, 'returnMcEnterpiseIds')) + writer.uint32(/* id 2, wireType 0 =*/ 16).bool(message.returnMcEnterpiseIds); + if (message.ip != null && Object.hasOwnProperty.call(message, 'ip')) + writer.uint32(/* id 3, wireType 2 =*/ 26).string(message.ip); return writer; }; @@ -222025,27 +231187,27 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ValidateSessionTokenRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.ValidateSessionTokenRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.BI.ValidateSessionTokenRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.encryptedSessionToken = reader.bytes(); break; } - case 2: { + case 2: { message.returnMcEnterpiseIds = reader.bool(); break; } - case 3: { + case 3: { message.ip = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -222062,8 +231224,7 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ValidateSessionTokenRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -222076,17 +231237,19 @@ export const BI = $root.BI = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ ValidateSessionTokenRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.encryptedSessionToken != null && message.hasOwnProperty("encryptedSessionToken")) - if (!(message.encryptedSessionToken && typeof message.encryptedSessionToken.length === "number" || $util.isString(message.encryptedSessionToken))) - return "encryptedSessionToken: buffer expected"; - if (message.returnMcEnterpiseIds != null && message.hasOwnProperty("returnMcEnterpiseIds")) - if (typeof message.returnMcEnterpiseIds !== "boolean") - return "returnMcEnterpiseIds: boolean expected"; - if (message.ip != null && message.hasOwnProperty("ip")) - if (!$util.isString(message.ip)) - return "ip: string expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.encryptedSessionToken != null && message.hasOwnProperty('encryptedSessionToken')) + if ( + !( + (message.encryptedSessionToken && typeof message.encryptedSessionToken.length === 'number') || + $util.isString(message.encryptedSessionToken) + ) + ) + return 'encryptedSessionToken: buffer expected'; + if (message.returnMcEnterpiseIds != null && message.hasOwnProperty('returnMcEnterpiseIds')) + if (typeof message.returnMcEnterpiseIds !== 'boolean') return 'returnMcEnterpiseIds: boolean expected'; + if (message.ip != null && message.hasOwnProperty('ip')) + if (!$util.isString(message.ip)) return 'ip: string expected'; return null; }; @@ -222099,18 +231262,22 @@ export const BI = $root.BI = (() => { * @returns {BI.ValidateSessionTokenRequest} ValidateSessionTokenRequest */ ValidateSessionTokenRequest.fromObject = function fromObject(object) { - if (object instanceof $root.BI.ValidateSessionTokenRequest) - return object; + if (object instanceof $root.BI.ValidateSessionTokenRequest) return object; let message = new $root.BI.ValidateSessionTokenRequest(); if (object.encryptedSessionToken != null) - if (typeof object.encryptedSessionToken === "string") - $util.base64.decode(object.encryptedSessionToken, message.encryptedSessionToken = $util.newBuffer($util.base64.length(object.encryptedSessionToken)), 0); + if (typeof object.encryptedSessionToken === 'string') + $util.base64.decode( + object.encryptedSessionToken, + (message.encryptedSessionToken = $util.newBuffer( + $util.base64.length(object.encryptedSessionToken) + )), + 0 + ); else if (object.encryptedSessionToken.length >= 0) message.encryptedSessionToken = object.encryptedSessionToken; if (object.returnMcEnterpiseIds != null) message.returnMcEnterpiseIds = Boolean(object.returnMcEnterpiseIds); - if (object.ip != null) - message.ip = String(object.ip); + if (object.ip != null) message.ip = String(object.ip); return message; }; @@ -222124,26 +231291,28 @@ export const BI = $root.BI = (() => { * @returns {Object.} Plain object */ ValidateSessionTokenRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - if (options.bytes === String) - object.encryptedSessionToken = ""; + if (options.bytes === String) object.encryptedSessionToken = ''; else { object.encryptedSessionToken = []; if (options.bytes !== Array) object.encryptedSessionToken = $util.newBuffer(object.encryptedSessionToken); } object.returnMcEnterpiseIds = false; - object.ip = ""; - } - if (message.encryptedSessionToken != null && message.hasOwnProperty("encryptedSessionToken")) - object.encryptedSessionToken = options.bytes === String ? $util.base64.encode(message.encryptedSessionToken, 0, message.encryptedSessionToken.length) : options.bytes === Array ? Array.prototype.slice.call(message.encryptedSessionToken) : message.encryptedSessionToken; - if (message.returnMcEnterpiseIds != null && message.hasOwnProperty("returnMcEnterpiseIds")) + object.ip = ''; + } + if (message.encryptedSessionToken != null && message.hasOwnProperty('encryptedSessionToken')) + object.encryptedSessionToken = + options.bytes === String + ? $util.base64.encode(message.encryptedSessionToken, 0, message.encryptedSessionToken.length) + : options.bytes === Array + ? Array.prototype.slice.call(message.encryptedSessionToken) + : message.encryptedSessionToken; + if (message.returnMcEnterpiseIds != null && message.hasOwnProperty('returnMcEnterpiseIds')) object.returnMcEnterpiseIds = message.returnMcEnterpiseIds; - if (message.ip != null && message.hasOwnProperty("ip")) - object.ip = message.ip; + if (message.ip != null && message.hasOwnProperty('ip')) object.ip = message.ip; return object; }; @@ -222168,16 +231337,15 @@ export const BI = $root.BI = (() => { */ ValidateSessionTokenRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/BI.ValidateSessionTokenRequest"; + return typeUrlPrefix + '/BI.ValidateSessionTokenRequest'; }; return ValidateSessionTokenRequest; })(); - BI.ValidateSessionTokenResponse = (function() { - + BI.ValidateSessionTokenResponse = (function () { /** * Properties of a ValidateSessionTokenResponse. * @memberof BI @@ -222205,8 +231373,7 @@ export const BI = $root.BI = (() => { this.deletedMcEnterpriseIds = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -222215,7 +231382,7 @@ export const BI = $root.BI = (() => { * @memberof BI.ValidateSessionTokenResponse * @instance */ - ValidateSessionTokenResponse.prototype.username = ""; + ValidateSessionTokenResponse.prototype.username = ''; /** * ValidateSessionTokenResponse userId. @@ -222231,7 +231398,7 @@ export const BI = $root.BI = (() => { * @memberof BI.ValidateSessionTokenResponse * @instance */ - ValidateSessionTokenResponse.prototype.enterpriseUserId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + ValidateSessionTokenResponse.prototype.enterpriseUserId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * ValidateSessionTokenResponse status. @@ -222247,7 +231414,7 @@ export const BI = $root.BI = (() => { * @memberof BI.ValidateSessionTokenResponse * @instance */ - ValidateSessionTokenResponse.prototype.statusMessage = ""; + ValidateSessionTokenResponse.prototype.statusMessage = ''; /** * ValidateSessionTokenResponse mcEnterpriseIds. @@ -222295,28 +231462,26 @@ export const BI = $root.BI = (() => { * @returns {$protobuf.Writer} Writer */ ValidateSessionTokenResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.username != null && Object.hasOwnProperty.call(message, "username")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.username); - if (message.userId != null && Object.hasOwnProperty.call(message, "userId")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.userId); - if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "enterpriseUserId")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.enterpriseUserId); - if (message.status != null && Object.hasOwnProperty.call(message, "status")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.status); - if (message.statusMessage != null && Object.hasOwnProperty.call(message, "statusMessage")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.statusMessage); + if (!writer) writer = $Writer.create(); + if (message.username != null && Object.hasOwnProperty.call(message, 'username')) + writer.uint32(/* id 1, wireType 2 =*/ 10).string(message.username); + if (message.userId != null && Object.hasOwnProperty.call(message, 'userId')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int32(message.userId); + if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, 'enterpriseUserId')) + writer.uint32(/* id 3, wireType 0 =*/ 24).int64(message.enterpriseUserId); + if (message.status != null && Object.hasOwnProperty.call(message, 'status')) + writer.uint32(/* id 4, wireType 0 =*/ 32).int32(message.status); + if (message.statusMessage != null && Object.hasOwnProperty.call(message, 'statusMessage')) + writer.uint32(/* id 5, wireType 2 =*/ 42).string(message.statusMessage); if (message.mcEnterpriseIds != null && message.mcEnterpriseIds.length) { - writer.uint32(/* id 6, wireType 2 =*/50).fork(); - for (let i = 0; i < message.mcEnterpriseIds.length; ++i) - writer.int32(message.mcEnterpriseIds[i]); + writer.uint32(/* id 6, wireType 2 =*/ 50).fork(); + for (let i = 0; i < message.mcEnterpriseIds.length; ++i) writer.int32(message.mcEnterpriseIds[i]); writer.ldelim(); } - if (message.hasMSPPermission != null && Object.hasOwnProperty.call(message, "hasMSPPermission")) - writer.uint32(/* id 7, wireType 0 =*/56).bool(message.hasMSPPermission); + if (message.hasMSPPermission != null && Object.hasOwnProperty.call(message, 'hasMSPPermission')) + writer.uint32(/* id 7, wireType 0 =*/ 56).bool(message.hasMSPPermission); if (message.deletedMcEnterpriseIds != null && message.deletedMcEnterpriseIds.length) { - writer.uint32(/* id 8, wireType 2 =*/66).fork(); + writer.uint32(/* id 8, wireType 2 =*/ 66).fork(); for (let i = 0; i < message.deletedMcEnterpriseIds.length; ++i) writer.int32(message.deletedMcEnterpriseIds[i]); writer.ldelim(); @@ -222349,61 +231514,56 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ValidateSessionTokenResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.ValidateSessionTokenResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.BI.ValidateSessionTokenResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.username = reader.string(); break; } - case 2: { + case 2: { message.userId = reader.int32(); break; } - case 3: { + case 3: { message.enterpriseUserId = reader.int64(); break; } - case 4: { + case 4: { message.status = reader.int32(); break; } - case 5: { + case 5: { message.statusMessage = reader.string(); break; } - case 6: { - if (!(message.mcEnterpriseIds && message.mcEnterpriseIds.length)) - message.mcEnterpriseIds = []; + case 6: { + if (!(message.mcEnterpriseIds && message.mcEnterpriseIds.length)) message.mcEnterpriseIds = []; if ((tag & 7) === 2) { let end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.mcEnterpriseIds.push(reader.int32()); - } else - message.mcEnterpriseIds.push(reader.int32()); + while (reader.pos < end2) message.mcEnterpriseIds.push(reader.int32()); + } else message.mcEnterpriseIds.push(reader.int32()); break; } - case 7: { + case 7: { message.hasMSPPermission = reader.bool(); break; } - case 8: { + case 8: { if (!(message.deletedMcEnterpriseIds && message.deletedMcEnterpriseIds.length)) message.deletedMcEnterpriseIds = []; if ((tag & 7) === 2) { let end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.deletedMcEnterpriseIds.push(reader.int32()); - } else - message.deletedMcEnterpriseIds.push(reader.int32()); + while (reader.pos < end2) message.deletedMcEnterpriseIds.push(reader.int32()); + } else message.deletedMcEnterpriseIds.push(reader.int32()); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -222420,8 +231580,7 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ValidateSessionTokenResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -222434,47 +231593,46 @@ export const BI = $root.BI = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ ValidateSessionTokenResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.username != null && message.hasOwnProperty("username")) - if (!$util.isString(message.username)) - return "username: string expected"; - if (message.userId != null && message.hasOwnProperty("userId")) - if (!$util.isInteger(message.userId)) - return "userId: integer expected"; - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (!$util.isInteger(message.enterpriseUserId) && !(message.enterpriseUserId && $util.isInteger(message.enterpriseUserId.low) && $util.isInteger(message.enterpriseUserId.high))) - return "enterpriseUserId: integer|Long expected"; - if (message.status != null && message.hasOwnProperty("status")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.username != null && message.hasOwnProperty('username')) + if (!$util.isString(message.username)) return 'username: string expected'; + if (message.userId != null && message.hasOwnProperty('userId')) + if (!$util.isInteger(message.userId)) return 'userId: integer expected'; + if (message.enterpriseUserId != null && message.hasOwnProperty('enterpriseUserId')) + if ( + !$util.isInteger(message.enterpriseUserId) && + !( + message.enterpriseUserId && + $util.isInteger(message.enterpriseUserId.low) && + $util.isInteger(message.enterpriseUserId.high) + ) + ) + return 'enterpriseUserId: integer|Long expected'; + if (message.status != null && message.hasOwnProperty('status')) switch (message.status) { - default: - return "status: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; + default: + return 'status: enum value expected'; + case 0: + case 1: + case 2: + case 3: + case 4: + break; } - if (message.statusMessage != null && message.hasOwnProperty("statusMessage")) - if (!$util.isString(message.statusMessage)) - return "statusMessage: string expected"; - if (message.mcEnterpriseIds != null && message.hasOwnProperty("mcEnterpriseIds")) { - if (!Array.isArray(message.mcEnterpriseIds)) - return "mcEnterpriseIds: array expected"; + if (message.statusMessage != null && message.hasOwnProperty('statusMessage')) + if (!$util.isString(message.statusMessage)) return 'statusMessage: string expected'; + if (message.mcEnterpriseIds != null && message.hasOwnProperty('mcEnterpriseIds')) { + if (!Array.isArray(message.mcEnterpriseIds)) return 'mcEnterpriseIds: array expected'; for (let i = 0; i < message.mcEnterpriseIds.length; ++i) - if (!$util.isInteger(message.mcEnterpriseIds[i])) - return "mcEnterpriseIds: integer[] expected"; - } - if (message.hasMSPPermission != null && message.hasOwnProperty("hasMSPPermission")) - if (typeof message.hasMSPPermission !== "boolean") - return "hasMSPPermission: boolean expected"; - if (message.deletedMcEnterpriseIds != null && message.hasOwnProperty("deletedMcEnterpriseIds")) { - if (!Array.isArray(message.deletedMcEnterpriseIds)) - return "deletedMcEnterpriseIds: array expected"; + if (!$util.isInteger(message.mcEnterpriseIds[i])) return 'mcEnterpriseIds: integer[] expected'; + } + if (message.hasMSPPermission != null && message.hasOwnProperty('hasMSPPermission')) + if (typeof message.hasMSPPermission !== 'boolean') return 'hasMSPPermission: boolean expected'; + if (message.deletedMcEnterpriseIds != null && message.hasOwnProperty('deletedMcEnterpriseIds')) { + if (!Array.isArray(message.deletedMcEnterpriseIds)) return 'deletedMcEnterpriseIds: array expected'; for (let i = 0; i < message.deletedMcEnterpriseIds.length; ++i) if (!$util.isInteger(message.deletedMcEnterpriseIds[i])) - return "deletedMcEnterpriseIds: integer[] expected"; + return 'deletedMcEnterpriseIds: integer[] expected'; } return null; }; @@ -222488,64 +231646,62 @@ export const BI = $root.BI = (() => { * @returns {BI.ValidateSessionTokenResponse} ValidateSessionTokenResponse */ ValidateSessionTokenResponse.fromObject = function fromObject(object) { - if (object instanceof $root.BI.ValidateSessionTokenResponse) - return object; + if (object instanceof $root.BI.ValidateSessionTokenResponse) return object; let message = new $root.BI.ValidateSessionTokenResponse(); - if (object.username != null) - message.username = String(object.username); - if (object.userId != null) - message.userId = object.userId | 0; + if (object.username != null) message.username = String(object.username); + if (object.userId != null) message.userId = object.userId | 0; if (object.enterpriseUserId != null) if ($util.Long) (message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId)).unsigned = false; - else if (typeof object.enterpriseUserId === "string") + else if (typeof object.enterpriseUserId === 'string') message.enterpriseUserId = parseInt(object.enterpriseUserId, 10); - else if (typeof object.enterpriseUserId === "number") + else if (typeof object.enterpriseUserId === 'number') message.enterpriseUserId = object.enterpriseUserId; - else if (typeof object.enterpriseUserId === "object") - message.enterpriseUserId = new $util.LongBits(object.enterpriseUserId.low >>> 0, object.enterpriseUserId.high >>> 0).toNumber(); + else if (typeof object.enterpriseUserId === 'object') + message.enterpriseUserId = new $util.LongBits( + object.enterpriseUserId.low >>> 0, + object.enterpriseUserId.high >>> 0 + ).toNumber(); switch (object.status) { - default: - if (typeof object.status === "number") { - message.status = object.status; - break; - } - break; - case "VALID": - case 0: - message.status = 0; - break; - case "NOT_VALID": - case 1: - message.status = 1; - break; - case "EXPIRED": - case 2: - message.status = 2; - break; - case "IP_BLOCKED": - case 3: - message.status = 3; - break; - case "INVALID_CLIENT_VERSION": - case 4: - message.status = 4; - break; - } - if (object.statusMessage != null) - message.statusMessage = String(object.statusMessage); + default: + if (typeof object.status === 'number') { + message.status = object.status; + break; + } + break; + case 'VALID': + case 0: + message.status = 0; + break; + case 'NOT_VALID': + case 1: + message.status = 1; + break; + case 'EXPIRED': + case 2: + message.status = 2; + break; + case 'IP_BLOCKED': + case 3: + message.status = 3; + break; + case 'INVALID_CLIENT_VERSION': + case 4: + message.status = 4; + break; + } + if (object.statusMessage != null) message.statusMessage = String(object.statusMessage); if (object.mcEnterpriseIds) { if (!Array.isArray(object.mcEnterpriseIds)) - throw TypeError(".BI.ValidateSessionTokenResponse.mcEnterpriseIds: array expected"); + throw TypeError('.BI.ValidateSessionTokenResponse.mcEnterpriseIds: array expected'); message.mcEnterpriseIds = []; for (let i = 0; i < object.mcEnterpriseIds.length; ++i) message.mcEnterpriseIds[i] = object.mcEnterpriseIds[i] | 0; } - if (object.hasMSPPermission != null) - message.hasMSPPermission = Boolean(object.hasMSPPermission); + if (object.hasMSPPermission != null) message.hasMSPPermission = Boolean(object.hasMSPPermission); if (object.deletedMcEnterpriseIds) { if (!Array.isArray(object.deletedMcEnterpriseIds)) - throw TypeError(".BI.ValidateSessionTokenResponse.deletedMcEnterpriseIds: array expected"); + throw TypeError('.BI.ValidateSessionTokenResponse.deletedMcEnterpriseIds: array expected'); message.deletedMcEnterpriseIds = []; for (let i = 0; i < object.deletedMcEnterpriseIds.length; ++i) message.deletedMcEnterpriseIds[i] = object.deletedMcEnterpriseIds[i] | 0; @@ -222563,44 +231719,55 @@ export const BI = $root.BI = (() => { * @returns {Object.} Plain object */ ValidateSessionTokenResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.arrays || options.defaults) { object.mcEnterpriseIds = []; object.deletedMcEnterpriseIds = []; } if (options.defaults) { - object.username = ""; + object.username = ''; object.userId = 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.enterpriseUserId = options.longs === String ? "0" : 0; - object.status = options.enums === String ? "VALID" : 0; - object.statusMessage = ""; + object.enterpriseUserId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.enterpriseUserId = options.longs === String ? '0' : 0; + object.status = options.enums === String ? 'VALID' : 0; + object.statusMessage = ''; object.hasMSPPermission = false; } - if (message.username != null && message.hasOwnProperty("username")) - object.username = message.username; - if (message.userId != null && message.hasOwnProperty("userId")) - object.userId = message.userId; - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (typeof message.enterpriseUserId === "number") - object.enterpriseUserId = options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; + if (message.username != null && message.hasOwnProperty('username')) object.username = message.username; + if (message.userId != null && message.hasOwnProperty('userId')) object.userId = message.userId; + if (message.enterpriseUserId != null && message.hasOwnProperty('enterpriseUserId')) + if (typeof message.enterpriseUserId === 'number') + object.enterpriseUserId = + options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; else - object.enterpriseUserId = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseUserId) : options.longs === Number ? new $util.LongBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0).toNumber() : message.enterpriseUserId; - if (message.status != null && message.hasOwnProperty("status")) - object.status = options.enums === String ? $root.BI.ValidateSessionTokenResponse.Status[message.status] === undefined ? message.status : $root.BI.ValidateSessionTokenResponse.Status[message.status] : message.status; - if (message.statusMessage != null && message.hasOwnProperty("statusMessage")) + object.enterpriseUserId = + options.longs === String + ? $util.Long.prototype.toString.call(message.enterpriseUserId) + : options.longs === Number + ? new $util.LongBits( + message.enterpriseUserId.low >>> 0, + message.enterpriseUserId.high >>> 0 + ).toNumber() + : message.enterpriseUserId; + if (message.status != null && message.hasOwnProperty('status')) + object.status = + options.enums === String + ? $root.BI.ValidateSessionTokenResponse.Status[message.status] === undefined + ? message.status + : $root.BI.ValidateSessionTokenResponse.Status[message.status] + : message.status; + if (message.statusMessage != null && message.hasOwnProperty('statusMessage')) object.statusMessage = message.statusMessage; if (message.mcEnterpriseIds && message.mcEnterpriseIds.length) { object.mcEnterpriseIds = []; for (let j = 0; j < message.mcEnterpriseIds.length; ++j) object.mcEnterpriseIds[j] = message.mcEnterpriseIds[j]; } - if (message.hasMSPPermission != null && message.hasOwnProperty("hasMSPPermission")) + if (message.hasMSPPermission != null && message.hasOwnProperty('hasMSPPermission')) object.hasMSPPermission = message.hasMSPPermission; if (message.deletedMcEnterpriseIds && message.deletedMcEnterpriseIds.length) { object.deletedMcEnterpriseIds = []; @@ -222631,9 +231798,9 @@ export const BI = $root.BI = (() => { */ ValidateSessionTokenResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/BI.ValidateSessionTokenResponse"; + return typeUrlPrefix + '/BI.ValidateSessionTokenResponse'; }; /** @@ -222646,21 +231813,21 @@ export const BI = $root.BI = (() => { * @property {number} IP_BLOCKED=3 IP_BLOCKED value * @property {number} INVALID_CLIENT_VERSION=4 INVALID_CLIENT_VERSION value */ - ValidateSessionTokenResponse.Status = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "VALID"] = 0; - values[valuesById[1] = "NOT_VALID"] = 1; - values[valuesById[2] = "EXPIRED"] = 2; - values[valuesById[3] = "IP_BLOCKED"] = 3; - values[valuesById[4] = "INVALID_CLIENT_VERSION"] = 4; + ValidateSessionTokenResponse.Status = (function () { + const valuesById = {}, + values = Object.create(valuesById); + values[(valuesById[0] = 'VALID')] = 0; + values[(valuesById[1] = 'NOT_VALID')] = 1; + values[(valuesById[2] = 'EXPIRED')] = 2; + values[(valuesById[3] = 'IP_BLOCKED')] = 3; + values[(valuesById[4] = 'INVALID_CLIENT_VERSION')] = 4; return values; })(); return ValidateSessionTokenResponse; })(); - BI.SubscriptionStatusRequest = (function() { - + BI.SubscriptionStatusRequest = (function () { /** * Properties of a SubscriptionStatusRequest. * @memberof BI @@ -222678,8 +231845,7 @@ export const BI = $root.BI = (() => { function SubscriptionStatusRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -222704,8 +231870,7 @@ export const BI = $root.BI = (() => { * @returns {$protobuf.Writer} Writer */ SubscriptionStatusRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); return writer; }; @@ -222734,15 +231899,15 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SubscriptionStatusRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.SubscriptionStatusRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.BI.SubscriptionStatusRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -222759,8 +231924,7 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SubscriptionStatusRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -222773,8 +231937,7 @@ export const BI = $root.BI = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ SubscriptionStatusRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; return null; }; @@ -222787,8 +231950,7 @@ export const BI = $root.BI = (() => { * @returns {BI.SubscriptionStatusRequest} SubscriptionStatusRequest */ SubscriptionStatusRequest.fromObject = function fromObject(object) { - if (object instanceof $root.BI.SubscriptionStatusRequest) - return object; + if (object instanceof $root.BI.SubscriptionStatusRequest) return object; return new $root.BI.SubscriptionStatusRequest(); }; @@ -222826,16 +231988,15 @@ export const BI = $root.BI = (() => { */ SubscriptionStatusRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/BI.SubscriptionStatusRequest"; + return typeUrlPrefix + '/BI.SubscriptionStatusRequest'; }; return SubscriptionStatusRequest; })(); - BI.SubscriptionStatusResponse = (function() { - + BI.SubscriptionStatusResponse = (function () { /** * Properties of a SubscriptionStatusResponse. * @memberof BI @@ -222866,8 +232027,7 @@ export const BI = $root.BI = (() => { this.licenseStats = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -222892,7 +232052,7 @@ export const BI = $root.BI = (() => { * @memberof BI.SubscriptionStatusResponse * @instance */ - SubscriptionStatusResponse.prototype.checkoutLink = ""; + SubscriptionStatusResponse.prototype.checkoutLink = ''; /** * SubscriptionStatusResponse licenseCreateDate. @@ -222900,7 +232060,7 @@ export const BI = $root.BI = (() => { * @memberof BI.SubscriptionStatusResponse * @instance */ - SubscriptionStatusResponse.prototype.licenseCreateDate = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + SubscriptionStatusResponse.prototype.licenseCreateDate = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * SubscriptionStatusResponse isDistributor. @@ -222948,7 +232108,7 @@ export const BI = $root.BI = (() => { * @memberof BI.SubscriptionStatusResponse * @instance */ - SubscriptionStatusResponse.prototype.gradientLastSyncDate = ""; + SubscriptionStatusResponse.prototype.gradientLastSyncDate = ''; /** * SubscriptionStatusResponse gradientNextSyncDate. @@ -222956,7 +232116,7 @@ export const BI = $root.BI = (() => { * @memberof BI.SubscriptionStatusResponse * @instance */ - SubscriptionStatusResponse.prototype.gradientNextSyncDate = ""; + SubscriptionStatusResponse.prototype.gradientNextSyncDate = ''; /** * SubscriptionStatusResponse isGradientMappingPending. @@ -222988,33 +232148,44 @@ export const BI = $root.BI = (() => { * @returns {$protobuf.Writer} Writer */ SubscriptionStatusResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.autoRenewal != null && Object.hasOwnProperty.call(message, "autoRenewal")) - $root.BI.AutoRenewal.encode(message.autoRenewal, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.currentPaymentMethod != null && Object.hasOwnProperty.call(message, "currentPaymentMethod")) - $root.BI.PaymentMethod.encode(message.currentPaymentMethod, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.checkoutLink != null && Object.hasOwnProperty.call(message, "checkoutLink")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.checkoutLink); - if (message.licenseCreateDate != null && Object.hasOwnProperty.call(message, "licenseCreateDate")) - writer.uint32(/* id 4, wireType 0 =*/32).int64(message.licenseCreateDate); - if (message.isDistributor != null && Object.hasOwnProperty.call(message, "isDistributor")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.isDistributor); - if (message.isLegacyMsp != null && Object.hasOwnProperty.call(message, "isLegacyMsp")) - writer.uint32(/* id 6, wireType 0 =*/48).bool(message.isLegacyMsp); + if (!writer) writer = $Writer.create(); + if (message.autoRenewal != null && Object.hasOwnProperty.call(message, 'autoRenewal')) + $root.BI.AutoRenewal.encode( + message.autoRenewal, + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); + if (message.currentPaymentMethod != null && Object.hasOwnProperty.call(message, 'currentPaymentMethod')) + $root.BI.PaymentMethod.encode( + message.currentPaymentMethod, + writer.uint32(/* id 2, wireType 2 =*/ 18).fork() + ).ldelim(); + if (message.checkoutLink != null && Object.hasOwnProperty.call(message, 'checkoutLink')) + writer.uint32(/* id 3, wireType 2 =*/ 26).string(message.checkoutLink); + if (message.licenseCreateDate != null && Object.hasOwnProperty.call(message, 'licenseCreateDate')) + writer.uint32(/* id 4, wireType 0 =*/ 32).int64(message.licenseCreateDate); + if (message.isDistributor != null && Object.hasOwnProperty.call(message, 'isDistributor')) + writer.uint32(/* id 5, wireType 0 =*/ 40).bool(message.isDistributor); + if (message.isLegacyMsp != null && Object.hasOwnProperty.call(message, 'isLegacyMsp')) + writer.uint32(/* id 6, wireType 0 =*/ 48).bool(message.isLegacyMsp); if (message.licenseStats != null && message.licenseStats.length) for (let i = 0; i < message.licenseStats.length; ++i) - $root.BI.LicenseStats.encode(message.licenseStats[i], writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.gradientStatus != null && Object.hasOwnProperty.call(message, "gradientStatus")) - writer.uint32(/* id 9, wireType 0 =*/72).int32(message.gradientStatus); - if (message.hideTrialBanner != null && Object.hasOwnProperty.call(message, "hideTrialBanner")) - writer.uint32(/* id 10, wireType 0 =*/80).bool(message.hideTrialBanner); - if (message.gradientLastSyncDate != null && Object.hasOwnProperty.call(message, "gradientLastSyncDate")) - writer.uint32(/* id 11, wireType 2 =*/90).string(message.gradientLastSyncDate); - if (message.gradientNextSyncDate != null && Object.hasOwnProperty.call(message, "gradientNextSyncDate")) - writer.uint32(/* id 12, wireType 2 =*/98).string(message.gradientNextSyncDate); - if (message.isGradientMappingPending != null && Object.hasOwnProperty.call(message, "isGradientMappingPending")) - writer.uint32(/* id 13, wireType 0 =*/104).bool(message.isGradientMappingPending); + $root.BI.LicenseStats.encode( + message.licenseStats[i], + writer.uint32(/* id 8, wireType 2 =*/ 66).fork() + ).ldelim(); + if (message.gradientStatus != null && Object.hasOwnProperty.call(message, 'gradientStatus')) + writer.uint32(/* id 9, wireType 0 =*/ 72).int32(message.gradientStatus); + if (message.hideTrialBanner != null && Object.hasOwnProperty.call(message, 'hideTrialBanner')) + writer.uint32(/* id 10, wireType 0 =*/ 80).bool(message.hideTrialBanner); + if (message.gradientLastSyncDate != null && Object.hasOwnProperty.call(message, 'gradientLastSyncDate')) + writer.uint32(/* id 11, wireType 2 =*/ 90).string(message.gradientLastSyncDate); + if (message.gradientNextSyncDate != null && Object.hasOwnProperty.call(message, 'gradientNextSyncDate')) + writer.uint32(/* id 12, wireType 2 =*/ 98).string(message.gradientNextSyncDate); + if ( + message.isGradientMappingPending != null && + Object.hasOwnProperty.call(message, 'isGradientMappingPending') + ) + writer.uint32(/* id 13, wireType 0 =*/ 104).bool(message.isGradientMappingPending); return writer; }; @@ -223043,65 +232214,64 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SubscriptionStatusResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.SubscriptionStatusResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.BI.SubscriptionStatusResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.autoRenewal = $root.BI.AutoRenewal.decode(reader, reader.uint32()); break; } - case 2: { + case 2: { message.currentPaymentMethod = $root.BI.PaymentMethod.decode(reader, reader.uint32()); break; } - case 3: { + case 3: { message.checkoutLink = reader.string(); break; } - case 4: { + case 4: { message.licenseCreateDate = reader.int64(); break; } - case 5: { + case 5: { message.isDistributor = reader.bool(); break; } - case 6: { + case 6: { message.isLegacyMsp = reader.bool(); break; } - case 8: { - if (!(message.licenseStats && message.licenseStats.length)) - message.licenseStats = []; + case 8: { + if (!(message.licenseStats && message.licenseStats.length)) message.licenseStats = []; message.licenseStats.push($root.BI.LicenseStats.decode(reader, reader.uint32())); break; } - case 9: { + case 9: { message.gradientStatus = reader.int32(); break; } - case 10: { + case 10: { message.hideTrialBanner = reader.bool(); break; } - case 11: { + case 11: { message.gradientLastSyncDate = reader.string(); break; } - case 12: { + case 12: { message.gradientNextSyncDate = reader.string(); break; } - case 13: { + case 13: { message.isGradientMappingPending = reader.bool(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -223118,8 +232288,7 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SubscriptionStatusResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -223132,61 +232301,57 @@ export const BI = $root.BI = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ SubscriptionStatusResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.autoRenewal != null && message.hasOwnProperty("autoRenewal")) { + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.autoRenewal != null && message.hasOwnProperty('autoRenewal')) { let error = $root.BI.AutoRenewal.verify(message.autoRenewal); - if (error) - return "autoRenewal." + error; + if (error) return 'autoRenewal.' + error; } - if (message.currentPaymentMethod != null && message.hasOwnProperty("currentPaymentMethod")) { + if (message.currentPaymentMethod != null && message.hasOwnProperty('currentPaymentMethod')) { let error = $root.BI.PaymentMethod.verify(message.currentPaymentMethod); - if (error) - return "currentPaymentMethod." + error; - } - if (message.checkoutLink != null && message.hasOwnProperty("checkoutLink")) - if (!$util.isString(message.checkoutLink)) - return "checkoutLink: string expected"; - if (message.licenseCreateDate != null && message.hasOwnProperty("licenseCreateDate")) - if (!$util.isInteger(message.licenseCreateDate) && !(message.licenseCreateDate && $util.isInteger(message.licenseCreateDate.low) && $util.isInteger(message.licenseCreateDate.high))) - return "licenseCreateDate: integer|Long expected"; - if (message.isDistributor != null && message.hasOwnProperty("isDistributor")) - if (typeof message.isDistributor !== "boolean") - return "isDistributor: boolean expected"; - if (message.isLegacyMsp != null && message.hasOwnProperty("isLegacyMsp")) - if (typeof message.isLegacyMsp !== "boolean") - return "isLegacyMsp: boolean expected"; - if (message.licenseStats != null && message.hasOwnProperty("licenseStats")) { - if (!Array.isArray(message.licenseStats)) - return "licenseStats: array expected"; + if (error) return 'currentPaymentMethod.' + error; + } + if (message.checkoutLink != null && message.hasOwnProperty('checkoutLink')) + if (!$util.isString(message.checkoutLink)) return 'checkoutLink: string expected'; + if (message.licenseCreateDate != null && message.hasOwnProperty('licenseCreateDate')) + if ( + !$util.isInteger(message.licenseCreateDate) && + !( + message.licenseCreateDate && + $util.isInteger(message.licenseCreateDate.low) && + $util.isInteger(message.licenseCreateDate.high) + ) + ) + return 'licenseCreateDate: integer|Long expected'; + if (message.isDistributor != null && message.hasOwnProperty('isDistributor')) + if (typeof message.isDistributor !== 'boolean') return 'isDistributor: boolean expected'; + if (message.isLegacyMsp != null && message.hasOwnProperty('isLegacyMsp')) + if (typeof message.isLegacyMsp !== 'boolean') return 'isLegacyMsp: boolean expected'; + if (message.licenseStats != null && message.hasOwnProperty('licenseStats')) { + if (!Array.isArray(message.licenseStats)) return 'licenseStats: array expected'; for (let i = 0; i < message.licenseStats.length; ++i) { let error = $root.BI.LicenseStats.verify(message.licenseStats[i]); - if (error) - return "licenseStats." + error; + if (error) return 'licenseStats.' + error; } } - if (message.gradientStatus != null && message.hasOwnProperty("gradientStatus")) + if (message.gradientStatus != null && message.hasOwnProperty('gradientStatus')) switch (message.gradientStatus) { - default: - return "gradientStatus: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; + default: + return 'gradientStatus: enum value expected'; + case 0: + case 1: + case 2: + case 3: + break; } - if (message.hideTrialBanner != null && message.hasOwnProperty("hideTrialBanner")) - if (typeof message.hideTrialBanner !== "boolean") - return "hideTrialBanner: boolean expected"; - if (message.gradientLastSyncDate != null && message.hasOwnProperty("gradientLastSyncDate")) - if (!$util.isString(message.gradientLastSyncDate)) - return "gradientLastSyncDate: string expected"; - if (message.gradientNextSyncDate != null && message.hasOwnProperty("gradientNextSyncDate")) - if (!$util.isString(message.gradientNextSyncDate)) - return "gradientNextSyncDate: string expected"; - if (message.isGradientMappingPending != null && message.hasOwnProperty("isGradientMappingPending")) - if (typeof message.isGradientMappingPending !== "boolean") - return "isGradientMappingPending: boolean expected"; + if (message.hideTrialBanner != null && message.hasOwnProperty('hideTrialBanner')) + if (typeof message.hideTrialBanner !== 'boolean') return 'hideTrialBanner: boolean expected'; + if (message.gradientLastSyncDate != null && message.hasOwnProperty('gradientLastSyncDate')) + if (!$util.isString(message.gradientLastSyncDate)) return 'gradientLastSyncDate: string expected'; + if (message.gradientNextSyncDate != null && message.hasOwnProperty('gradientNextSyncDate')) + if (!$util.isString(message.gradientNextSyncDate)) return 'gradientNextSyncDate: string expected'; + if (message.isGradientMappingPending != null && message.hasOwnProperty('isGradientMappingPending')) + if (typeof message.isGradientMappingPending !== 'boolean') + return 'isGradientMappingPending: boolean expected'; return null; }; @@ -223199,74 +232364,70 @@ export const BI = $root.BI = (() => { * @returns {BI.SubscriptionStatusResponse} SubscriptionStatusResponse */ SubscriptionStatusResponse.fromObject = function fromObject(object) { - if (object instanceof $root.BI.SubscriptionStatusResponse) - return object; + if (object instanceof $root.BI.SubscriptionStatusResponse) return object; let message = new $root.BI.SubscriptionStatusResponse(); if (object.autoRenewal != null) { - if (typeof object.autoRenewal !== "object") - throw TypeError(".BI.SubscriptionStatusResponse.autoRenewal: object expected"); + if (typeof object.autoRenewal !== 'object') + throw TypeError('.BI.SubscriptionStatusResponse.autoRenewal: object expected'); message.autoRenewal = $root.BI.AutoRenewal.fromObject(object.autoRenewal); } if (object.currentPaymentMethod != null) { - if (typeof object.currentPaymentMethod !== "object") - throw TypeError(".BI.SubscriptionStatusResponse.currentPaymentMethod: object expected"); + if (typeof object.currentPaymentMethod !== 'object') + throw TypeError('.BI.SubscriptionStatusResponse.currentPaymentMethod: object expected'); message.currentPaymentMethod = $root.BI.PaymentMethod.fromObject(object.currentPaymentMethod); } - if (object.checkoutLink != null) - message.checkoutLink = String(object.checkoutLink); + if (object.checkoutLink != null) message.checkoutLink = String(object.checkoutLink); if (object.licenseCreateDate != null) if ($util.Long) (message.licenseCreateDate = $util.Long.fromValue(object.licenseCreateDate)).unsigned = false; - else if (typeof object.licenseCreateDate === "string") + else if (typeof object.licenseCreateDate === 'string') message.licenseCreateDate = parseInt(object.licenseCreateDate, 10); - else if (typeof object.licenseCreateDate === "number") + else if (typeof object.licenseCreateDate === 'number') message.licenseCreateDate = object.licenseCreateDate; - else if (typeof object.licenseCreateDate === "object") - message.licenseCreateDate = new $util.LongBits(object.licenseCreateDate.low >>> 0, object.licenseCreateDate.high >>> 0).toNumber(); - if (object.isDistributor != null) - message.isDistributor = Boolean(object.isDistributor); - if (object.isLegacyMsp != null) - message.isLegacyMsp = Boolean(object.isLegacyMsp); + else if (typeof object.licenseCreateDate === 'object') + message.licenseCreateDate = new $util.LongBits( + object.licenseCreateDate.low >>> 0, + object.licenseCreateDate.high >>> 0 + ).toNumber(); + if (object.isDistributor != null) message.isDistributor = Boolean(object.isDistributor); + if (object.isLegacyMsp != null) message.isLegacyMsp = Boolean(object.isLegacyMsp); if (object.licenseStats) { if (!Array.isArray(object.licenseStats)) - throw TypeError(".BI.SubscriptionStatusResponse.licenseStats: array expected"); + throw TypeError('.BI.SubscriptionStatusResponse.licenseStats: array expected'); message.licenseStats = []; for (let i = 0; i < object.licenseStats.length; ++i) { - if (typeof object.licenseStats[i] !== "object") - throw TypeError(".BI.SubscriptionStatusResponse.licenseStats: object expected"); + if (typeof object.licenseStats[i] !== 'object') + throw TypeError('.BI.SubscriptionStatusResponse.licenseStats: object expected'); message.licenseStats[i] = $root.BI.LicenseStats.fromObject(object.licenseStats[i]); } } switch (object.gradientStatus) { - default: - if (typeof object.gradientStatus === "number") { - message.gradientStatus = object.gradientStatus; - break; - } - break; - case "NOTCONNECTED": - case 0: - message.gradientStatus = 0; - break; - case "PENDING": - case 1: - message.gradientStatus = 1; - break; - case "CONNECTED": - case 2: - message.gradientStatus = 2; - break; - case "NONE": - case 3: - message.gradientStatus = 3; - break; - } - if (object.hideTrialBanner != null) - message.hideTrialBanner = Boolean(object.hideTrialBanner); - if (object.gradientLastSyncDate != null) - message.gradientLastSyncDate = String(object.gradientLastSyncDate); - if (object.gradientNextSyncDate != null) - message.gradientNextSyncDate = String(object.gradientNextSyncDate); + default: + if (typeof object.gradientStatus === 'number') { + message.gradientStatus = object.gradientStatus; + break; + } + break; + case 'NOTCONNECTED': + case 0: + message.gradientStatus = 0; + break; + case 'PENDING': + case 1: + message.gradientStatus = 1; + break; + case 'CONNECTED': + case 2: + message.gradientStatus = 2; + break; + case 'NONE': + case 3: + message.gradientStatus = 3; + break; + } + if (object.hideTrialBanner != null) message.hideTrialBanner = Boolean(object.hideTrialBanner); + if (object.gradientLastSyncDate != null) message.gradientLastSyncDate = String(object.gradientLastSyncDate); + if (object.gradientNextSyncDate != null) message.gradientNextSyncDate = String(object.gradientNextSyncDate); if (object.isGradientMappingPending != null) message.isGradientMappingPending = Boolean(object.isGradientMappingPending); return message; @@ -223282,57 +232443,69 @@ export const BI = $root.BI = (() => { * @returns {Object.} Plain object */ SubscriptionStatusResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.licenseStats = []; + if (options.arrays || options.defaults) object.licenseStats = []; if (options.defaults) { object.autoRenewal = null; object.currentPaymentMethod = null; - object.checkoutLink = ""; + object.checkoutLink = ''; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.licenseCreateDate = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.licenseCreateDate = options.longs === String ? "0" : 0; + object.licenseCreateDate = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.licenseCreateDate = options.longs === String ? '0' : 0; object.isDistributor = false; object.isLegacyMsp = false; - object.gradientStatus = options.enums === String ? "NOTCONNECTED" : 0; + object.gradientStatus = options.enums === String ? 'NOTCONNECTED' : 0; object.hideTrialBanner = false; - object.gradientLastSyncDate = ""; - object.gradientNextSyncDate = ""; + object.gradientLastSyncDate = ''; + object.gradientNextSyncDate = ''; object.isGradientMappingPending = false; } - if (message.autoRenewal != null && message.hasOwnProperty("autoRenewal")) + if (message.autoRenewal != null && message.hasOwnProperty('autoRenewal')) object.autoRenewal = $root.BI.AutoRenewal.toObject(message.autoRenewal, options); - if (message.currentPaymentMethod != null && message.hasOwnProperty("currentPaymentMethod")) + if (message.currentPaymentMethod != null && message.hasOwnProperty('currentPaymentMethod')) object.currentPaymentMethod = $root.BI.PaymentMethod.toObject(message.currentPaymentMethod, options); - if (message.checkoutLink != null && message.hasOwnProperty("checkoutLink")) + if (message.checkoutLink != null && message.hasOwnProperty('checkoutLink')) object.checkoutLink = message.checkoutLink; - if (message.licenseCreateDate != null && message.hasOwnProperty("licenseCreateDate")) - if (typeof message.licenseCreateDate === "number") - object.licenseCreateDate = options.longs === String ? String(message.licenseCreateDate) : message.licenseCreateDate; + if (message.licenseCreateDate != null && message.hasOwnProperty('licenseCreateDate')) + if (typeof message.licenseCreateDate === 'number') + object.licenseCreateDate = + options.longs === String ? String(message.licenseCreateDate) : message.licenseCreateDate; else - object.licenseCreateDate = options.longs === String ? $util.Long.prototype.toString.call(message.licenseCreateDate) : options.longs === Number ? new $util.LongBits(message.licenseCreateDate.low >>> 0, message.licenseCreateDate.high >>> 0).toNumber() : message.licenseCreateDate; - if (message.isDistributor != null && message.hasOwnProperty("isDistributor")) + object.licenseCreateDate = + options.longs === String + ? $util.Long.prototype.toString.call(message.licenseCreateDate) + : options.longs === Number + ? new $util.LongBits( + message.licenseCreateDate.low >>> 0, + message.licenseCreateDate.high >>> 0 + ).toNumber() + : message.licenseCreateDate; + if (message.isDistributor != null && message.hasOwnProperty('isDistributor')) object.isDistributor = message.isDistributor; - if (message.isLegacyMsp != null && message.hasOwnProperty("isLegacyMsp")) + if (message.isLegacyMsp != null && message.hasOwnProperty('isLegacyMsp')) object.isLegacyMsp = message.isLegacyMsp; if (message.licenseStats && message.licenseStats.length) { object.licenseStats = []; for (let j = 0; j < message.licenseStats.length; ++j) object.licenseStats[j] = $root.BI.LicenseStats.toObject(message.licenseStats[j], options); } - if (message.gradientStatus != null && message.hasOwnProperty("gradientStatus")) - object.gradientStatus = options.enums === String ? $root.BI.GradientIntegrationStatus[message.gradientStatus] === undefined ? message.gradientStatus : $root.BI.GradientIntegrationStatus[message.gradientStatus] : message.gradientStatus; - if (message.hideTrialBanner != null && message.hasOwnProperty("hideTrialBanner")) + if (message.gradientStatus != null && message.hasOwnProperty('gradientStatus')) + object.gradientStatus = + options.enums === String + ? $root.BI.GradientIntegrationStatus[message.gradientStatus] === undefined + ? message.gradientStatus + : $root.BI.GradientIntegrationStatus[message.gradientStatus] + : message.gradientStatus; + if (message.hideTrialBanner != null && message.hasOwnProperty('hideTrialBanner')) object.hideTrialBanner = message.hideTrialBanner; - if (message.gradientLastSyncDate != null && message.hasOwnProperty("gradientLastSyncDate")) + if (message.gradientLastSyncDate != null && message.hasOwnProperty('gradientLastSyncDate')) object.gradientLastSyncDate = message.gradientLastSyncDate; - if (message.gradientNextSyncDate != null && message.hasOwnProperty("gradientNextSyncDate")) + if (message.gradientNextSyncDate != null && message.hasOwnProperty('gradientNextSyncDate')) object.gradientNextSyncDate = message.gradientNextSyncDate; - if (message.isGradientMappingPending != null && message.hasOwnProperty("isGradientMappingPending")) + if (message.isGradientMappingPending != null && message.hasOwnProperty('isGradientMappingPending')) object.isGradientMappingPending = message.isGradientMappingPending; return object; }; @@ -223358,16 +232531,15 @@ export const BI = $root.BI = (() => { */ SubscriptionStatusResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/BI.SubscriptionStatusResponse"; + return typeUrlPrefix + '/BI.SubscriptionStatusResponse'; }; return SubscriptionStatusResponse; })(); - BI.LicenseStats = (function() { - + BI.LicenseStats = (function () { /** * Properties of a LicenseStats. * @memberof BI @@ -223388,8 +232560,7 @@ export const BI = $root.BI = (() => { function LicenseStats(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -223438,14 +232609,13 @@ export const BI = $root.BI = (() => { * @returns {$protobuf.Writer} Writer */ LicenseStats.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.type != null && Object.hasOwnProperty.call(message, "type")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.type); - if (message.available != null && Object.hasOwnProperty.call(message, "available")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.available); - if (message.used != null && Object.hasOwnProperty.call(message, "used")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.used); + if (!writer) writer = $Writer.create(); + if (message.type != null && Object.hasOwnProperty.call(message, 'type')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int32(message.type); + if (message.available != null && Object.hasOwnProperty.call(message, 'available')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int32(message.available); + if (message.used != null && Object.hasOwnProperty.call(message, 'used')) + writer.uint32(/* id 3, wireType 0 =*/ 24).int32(message.used); return writer; }; @@ -223474,27 +232644,27 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ LicenseStats.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.LicenseStats(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.BI.LicenseStats(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.type = reader.int32(); break; } - case 2: { + case 2: { message.available = reader.int32(); break; } - case 3: { + case 3: { message.used = reader.int32(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -223511,8 +232681,7 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ LicenseStats.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -223525,29 +232694,26 @@ export const BI = $root.BI = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ LicenseStats.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.type != null && message.hasOwnProperty("type")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.type != null && message.hasOwnProperty('type')) switch (message.type) { - default: - return "type: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - break; + default: + return 'type: enum value expected'; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + break; } - if (message.available != null && message.hasOwnProperty("available")) - if (!$util.isInteger(message.available)) - return "available: integer expected"; - if (message.used != null && message.hasOwnProperty("used")) - if (!$util.isInteger(message.used)) - return "used: integer expected"; + if (message.available != null && message.hasOwnProperty('available')) + if (!$util.isInteger(message.available)) return 'available: integer expected'; + if (message.used != null && message.hasOwnProperty('used')) + if (!$util.isInteger(message.used)) return 'used: integer expected'; return null; }; @@ -223560,57 +232726,54 @@ export const BI = $root.BI = (() => { * @returns {BI.LicenseStats} LicenseStats */ LicenseStats.fromObject = function fromObject(object) { - if (object instanceof $root.BI.LicenseStats) - return object; + if (object instanceof $root.BI.LicenseStats) return object; let message = new $root.BI.LicenseStats(); switch (object.type) { - default: - if (typeof object.type === "number") { - message.type = object.type; - break; - } - break; - case "LICENSE_STAT_UNKNOWN": - case 0: - message.type = 0; - break; - case "MSP_BASE": - case 1: - message.type = 1; - break; - case "MC_BUSINESS": - case 2: - message.type = 2; - break; - case "MC_BUSINESS_PLUS": - case 3: - message.type = 3; - break; - case "MC_ENTERPRISE": - case 4: - message.type = 4; - break; - case "MC_ENTERPRISE_PLUS": - case 5: - message.type = 5; - break; - case "B2B_BUSINESS_STARTER": - case 6: - message.type = 6; - break; - case "B2B_BUSINESS": - case 7: - message.type = 7; - break; - case "B2B_ENTERPRISE": - case 8: - message.type = 8; - break; - } - if (object.available != null) - message.available = object.available | 0; - if (object.used != null) - message.used = object.used | 0; + default: + if (typeof object.type === 'number') { + message.type = object.type; + break; + } + break; + case 'LICENSE_STAT_UNKNOWN': + case 0: + message.type = 0; + break; + case 'MSP_BASE': + case 1: + message.type = 1; + break; + case 'MC_BUSINESS': + case 2: + message.type = 2; + break; + case 'MC_BUSINESS_PLUS': + case 3: + message.type = 3; + break; + case 'MC_ENTERPRISE': + case 4: + message.type = 4; + break; + case 'MC_ENTERPRISE_PLUS': + case 5: + message.type = 5; + break; + case 'B2B_BUSINESS_STARTER': + case 6: + message.type = 6; + break; + case 'B2B_BUSINESS': + case 7: + message.type = 7; + break; + case 'B2B_ENTERPRISE': + case 8: + message.type = 8; + break; + } + if (object.available != null) message.available = object.available | 0; + if (object.used != null) message.used = object.used | 0; return message; }; @@ -223624,20 +232787,22 @@ export const BI = $root.BI = (() => { * @returns {Object.} Plain object */ LicenseStats.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - object.type = options.enums === String ? "LICENSE_STAT_UNKNOWN" : 0; + object.type = options.enums === String ? 'LICENSE_STAT_UNKNOWN' : 0; object.available = 0; object.used = 0; } - if (message.type != null && message.hasOwnProperty("type")) - object.type = options.enums === String ? $root.BI.LicenseStats.Type[message.type] === undefined ? message.type : $root.BI.LicenseStats.Type[message.type] : message.type; - if (message.available != null && message.hasOwnProperty("available")) - object.available = message.available; - if (message.used != null && message.hasOwnProperty("used")) - object.used = message.used; + if (message.type != null && message.hasOwnProperty('type')) + object.type = + options.enums === String + ? $root.BI.LicenseStats.Type[message.type] === undefined + ? message.type + : $root.BI.LicenseStats.Type[message.type] + : message.type; + if (message.available != null && message.hasOwnProperty('available')) object.available = message.available; + if (message.used != null && message.hasOwnProperty('used')) object.used = message.used; return object; }; @@ -223662,9 +232827,9 @@ export const BI = $root.BI = (() => { */ LicenseStats.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/BI.LicenseStats"; + return typeUrlPrefix + '/BI.LicenseStats'; }; /** @@ -223681,25 +232846,25 @@ export const BI = $root.BI = (() => { * @property {number} B2B_BUSINESS=7 B2B_BUSINESS value * @property {number} B2B_ENTERPRISE=8 B2B_ENTERPRISE value */ - LicenseStats.Type = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "LICENSE_STAT_UNKNOWN"] = 0; - values[valuesById[1] = "MSP_BASE"] = 1; - values[valuesById[2] = "MC_BUSINESS"] = 2; - values[valuesById[3] = "MC_BUSINESS_PLUS"] = 3; - values[valuesById[4] = "MC_ENTERPRISE"] = 4; - values[valuesById[5] = "MC_ENTERPRISE_PLUS"] = 5; - values[valuesById[6] = "B2B_BUSINESS_STARTER"] = 6; - values[valuesById[7] = "B2B_BUSINESS"] = 7; - values[valuesById[8] = "B2B_ENTERPRISE"] = 8; + LicenseStats.Type = (function () { + const valuesById = {}, + values = Object.create(valuesById); + values[(valuesById[0] = 'LICENSE_STAT_UNKNOWN')] = 0; + values[(valuesById[1] = 'MSP_BASE')] = 1; + values[(valuesById[2] = 'MC_BUSINESS')] = 2; + values[(valuesById[3] = 'MC_BUSINESS_PLUS')] = 3; + values[(valuesById[4] = 'MC_ENTERPRISE')] = 4; + values[(valuesById[5] = 'MC_ENTERPRISE_PLUS')] = 5; + values[(valuesById[6] = 'B2B_BUSINESS_STARTER')] = 6; + values[(valuesById[7] = 'B2B_BUSINESS')] = 7; + values[(valuesById[8] = 'B2B_ENTERPRISE')] = 8; return values; })(); return LicenseStats; })(); - BI.AutoRenewal = (function() { - + BI.AutoRenewal = (function () { /** * Properties of an AutoRenewal. * @memberof BI @@ -223720,8 +232885,7 @@ export const BI = $root.BI = (() => { function AutoRenewal(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -223730,7 +232894,7 @@ export const BI = $root.BI = (() => { * @memberof BI.AutoRenewal * @instance */ - AutoRenewal.prototype.nextOn = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + AutoRenewal.prototype.nextOn = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * AutoRenewal daysLeft. @@ -223770,14 +232934,13 @@ export const BI = $root.BI = (() => { * @returns {$protobuf.Writer} Writer */ AutoRenewal.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.nextOn != null && Object.hasOwnProperty.call(message, "nextOn")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.nextOn); - if (message.daysLeft != null && Object.hasOwnProperty.call(message, "daysLeft")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.daysLeft); - if (message.isTrial != null && Object.hasOwnProperty.call(message, "isTrial")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.isTrial); + if (!writer) writer = $Writer.create(); + if (message.nextOn != null && Object.hasOwnProperty.call(message, 'nextOn')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int64(message.nextOn); + if (message.daysLeft != null && Object.hasOwnProperty.call(message, 'daysLeft')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int32(message.daysLeft); + if (message.isTrial != null && Object.hasOwnProperty.call(message, 'isTrial')) + writer.uint32(/* id 3, wireType 0 =*/ 24).bool(message.isTrial); return writer; }; @@ -223806,27 +232969,27 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ AutoRenewal.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.AutoRenewal(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.BI.AutoRenewal(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.nextOn = reader.int64(); break; } - case 2: { + case 2: { message.daysLeft = reader.int32(); break; } - case 3: { + case 3: { message.isTrial = reader.bool(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -223843,8 +233006,7 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ AutoRenewal.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -223857,17 +233019,17 @@ export const BI = $root.BI = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ AutoRenewal.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.nextOn != null && message.hasOwnProperty("nextOn")) - if (!$util.isInteger(message.nextOn) && !(message.nextOn && $util.isInteger(message.nextOn.low) && $util.isInteger(message.nextOn.high))) - return "nextOn: integer|Long expected"; - if (message.daysLeft != null && message.hasOwnProperty("daysLeft")) - if (!$util.isInteger(message.daysLeft)) - return "daysLeft: integer expected"; - if (message.isTrial != null && message.hasOwnProperty("isTrial")) - if (typeof message.isTrial !== "boolean") - return "isTrial: boolean expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.nextOn != null && message.hasOwnProperty('nextOn')) + if ( + !$util.isInteger(message.nextOn) && + !(message.nextOn && $util.isInteger(message.nextOn.low) && $util.isInteger(message.nextOn.high)) + ) + return 'nextOn: integer|Long expected'; + if (message.daysLeft != null && message.hasOwnProperty('daysLeft')) + if (!$util.isInteger(message.daysLeft)) return 'daysLeft: integer expected'; + if (message.isTrial != null && message.hasOwnProperty('isTrial')) + if (typeof message.isTrial !== 'boolean') return 'isTrial: boolean expected'; return null; }; @@ -223880,22 +233042,16 @@ export const BI = $root.BI = (() => { * @returns {BI.AutoRenewal} AutoRenewal */ AutoRenewal.fromObject = function fromObject(object) { - if (object instanceof $root.BI.AutoRenewal) - return object; + if (object instanceof $root.BI.AutoRenewal) return object; let message = new $root.BI.AutoRenewal(); if (object.nextOn != null) - if ($util.Long) - (message.nextOn = $util.Long.fromValue(object.nextOn)).unsigned = false; - else if (typeof object.nextOn === "string") - message.nextOn = parseInt(object.nextOn, 10); - else if (typeof object.nextOn === "number") - message.nextOn = object.nextOn; - else if (typeof object.nextOn === "object") + if ($util.Long) (message.nextOn = $util.Long.fromValue(object.nextOn)).unsigned = false; + else if (typeof object.nextOn === 'string') message.nextOn = parseInt(object.nextOn, 10); + else if (typeof object.nextOn === 'number') message.nextOn = object.nextOn; + else if (typeof object.nextOn === 'object') message.nextOn = new $util.LongBits(object.nextOn.low >>> 0, object.nextOn.high >>> 0).toNumber(); - if (object.daysLeft != null) - message.daysLeft = object.daysLeft | 0; - if (object.isTrial != null) - message.isTrial = Boolean(object.isTrial); + if (object.daysLeft != null) message.daysLeft = object.daysLeft | 0; + if (object.isTrial != null) message.isTrial = Boolean(object.isTrial); return message; }; @@ -223909,27 +233065,29 @@ export const BI = $root.BI = (() => { * @returns {Object.} Plain object */ AutoRenewal.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.nextOn = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.nextOn = options.longs === String ? "0" : 0; + object.nextOn = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.nextOn = options.longs === String ? '0' : 0; object.daysLeft = 0; object.isTrial = false; } - if (message.nextOn != null && message.hasOwnProperty("nextOn")) - if (typeof message.nextOn === "number") + if (message.nextOn != null && message.hasOwnProperty('nextOn')) + if (typeof message.nextOn === 'number') object.nextOn = options.longs === String ? String(message.nextOn) : message.nextOn; else - object.nextOn = options.longs === String ? $util.Long.prototype.toString.call(message.nextOn) : options.longs === Number ? new $util.LongBits(message.nextOn.low >>> 0, message.nextOn.high >>> 0).toNumber() : message.nextOn; - if (message.daysLeft != null && message.hasOwnProperty("daysLeft")) - object.daysLeft = message.daysLeft; - if (message.isTrial != null && message.hasOwnProperty("isTrial")) - object.isTrial = message.isTrial; + object.nextOn = + options.longs === String + ? $util.Long.prototype.toString.call(message.nextOn) + : options.longs === Number + ? new $util.LongBits(message.nextOn.low >>> 0, message.nextOn.high >>> 0).toNumber() + : message.nextOn; + if (message.daysLeft != null && message.hasOwnProperty('daysLeft')) object.daysLeft = message.daysLeft; + if (message.isTrial != null && message.hasOwnProperty('isTrial')) object.isTrial = message.isTrial; return object; }; @@ -223954,16 +233112,15 @@ export const BI = $root.BI = (() => { */ AutoRenewal.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/BI.AutoRenewal"; + return typeUrlPrefix + '/BI.AutoRenewal'; }; return AutoRenewal; })(); - BI.PaymentMethod = (function() { - + BI.PaymentMethod = (function () { /** * Properties of a PaymentMethod. * @memberof BI @@ -223988,8 +233145,7 @@ export const BI = $root.BI = (() => { function PaymentMethod(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -224070,22 +233226,36 @@ export const BI = $root.BI = (() => { * @returns {$protobuf.Writer} Writer */ PaymentMethod.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.type != null && Object.hasOwnProperty.call(message, "type")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.type); - if (message.card != null && Object.hasOwnProperty.call(message, "card")) - $root.BI.PaymentMethod.Card.encode(message.card, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.sepa != null && Object.hasOwnProperty.call(message, "sepa")) - $root.BI.PaymentMethod.Sepa.encode(message.sepa, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.paypal != null && Object.hasOwnProperty.call(message, "paypal")) - $root.BI.PaymentMethod.Paypal.encode(message.paypal, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.failedBilling != null && Object.hasOwnProperty.call(message, "failedBilling")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.failedBilling); - if (message.vendor != null && Object.hasOwnProperty.call(message, "vendor")) - $root.BI.PaymentMethod.Vendor.encode(message.vendor, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.purchaseOrder != null && Object.hasOwnProperty.call(message, "purchaseOrder")) - $root.BI.PaymentMethod.PurchaseOrder.encode(message.purchaseOrder, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (!writer) writer = $Writer.create(); + if (message.type != null && Object.hasOwnProperty.call(message, 'type')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int32(message.type); + if (message.card != null && Object.hasOwnProperty.call(message, 'card')) + $root.BI.PaymentMethod.Card.encode( + message.card, + writer.uint32(/* id 2, wireType 2 =*/ 18).fork() + ).ldelim(); + if (message.sepa != null && Object.hasOwnProperty.call(message, 'sepa')) + $root.BI.PaymentMethod.Sepa.encode( + message.sepa, + writer.uint32(/* id 3, wireType 2 =*/ 26).fork() + ).ldelim(); + if (message.paypal != null && Object.hasOwnProperty.call(message, 'paypal')) + $root.BI.PaymentMethod.Paypal.encode( + message.paypal, + writer.uint32(/* id 4, wireType 2 =*/ 34).fork() + ).ldelim(); + if (message.failedBilling != null && Object.hasOwnProperty.call(message, 'failedBilling')) + writer.uint32(/* id 5, wireType 0 =*/ 40).bool(message.failedBilling); + if (message.vendor != null && Object.hasOwnProperty.call(message, 'vendor')) + $root.BI.PaymentMethod.Vendor.encode( + message.vendor, + writer.uint32(/* id 6, wireType 2 =*/ 50).fork() + ).ldelim(); + if (message.purchaseOrder != null && Object.hasOwnProperty.call(message, 'purchaseOrder')) + $root.BI.PaymentMethod.PurchaseOrder.encode( + message.purchaseOrder, + writer.uint32(/* id 7, wireType 2 =*/ 58).fork() + ).ldelim(); return writer; }; @@ -224114,43 +233284,43 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ PaymentMethod.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.PaymentMethod(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.BI.PaymentMethod(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.type = reader.int32(); break; } - case 2: { + case 2: { message.card = $root.BI.PaymentMethod.Card.decode(reader, reader.uint32()); break; } - case 3: { + case 3: { message.sepa = $root.BI.PaymentMethod.Sepa.decode(reader, reader.uint32()); break; } - case 4: { + case 4: { message.paypal = $root.BI.PaymentMethod.Paypal.decode(reader, reader.uint32()); break; } - case 5: { + case 5: { message.failedBilling = reader.bool(); break; } - case 6: { + case 6: { message.vendor = $root.BI.PaymentMethod.Vendor.decode(reader, reader.uint32()); break; } - case 7: { + case 7: { message.purchaseOrder = $root.BI.PaymentMethod.PurchaseOrder.decode(reader, reader.uint32()); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -224167,8 +233337,7 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ PaymentMethod.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -224181,47 +233350,40 @@ export const BI = $root.BI = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ PaymentMethod.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.type != null && message.hasOwnProperty("type")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.type != null && message.hasOwnProperty('type')) switch (message.type) { - default: - return "type: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - break; + default: + return 'type: enum value expected'; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + break; } - if (message.card != null && message.hasOwnProperty("card")) { + if (message.card != null && message.hasOwnProperty('card')) { let error = $root.BI.PaymentMethod.Card.verify(message.card); - if (error) - return "card." + error; + if (error) return 'card.' + error; } - if (message.sepa != null && message.hasOwnProperty("sepa")) { + if (message.sepa != null && message.hasOwnProperty('sepa')) { let error = $root.BI.PaymentMethod.Sepa.verify(message.sepa); - if (error) - return "sepa." + error; + if (error) return 'sepa.' + error; } - if (message.paypal != null && message.hasOwnProperty("paypal")) { + if (message.paypal != null && message.hasOwnProperty('paypal')) { let error = $root.BI.PaymentMethod.Paypal.verify(message.paypal); - if (error) - return "paypal." + error; + if (error) return 'paypal.' + error; } - if (message.failedBilling != null && message.hasOwnProperty("failedBilling")) - if (typeof message.failedBilling !== "boolean") - return "failedBilling: boolean expected"; - if (message.vendor != null && message.hasOwnProperty("vendor")) { + if (message.failedBilling != null && message.hasOwnProperty('failedBilling')) + if (typeof message.failedBilling !== 'boolean') return 'failedBilling: boolean expected'; + if (message.vendor != null && message.hasOwnProperty('vendor')) { let error = $root.BI.PaymentMethod.Vendor.verify(message.vendor); - if (error) - return "vendor." + error; + if (error) return 'vendor.' + error; } - if (message.purchaseOrder != null && message.hasOwnProperty("purchaseOrder")) { + if (message.purchaseOrder != null && message.hasOwnProperty('purchaseOrder')) { let error = $root.BI.PaymentMethod.PurchaseOrder.verify(message.purchaseOrder); - if (error) - return "purchaseOrder." + error; + if (error) return 'purchaseOrder.' + error; } return null; }; @@ -224235,66 +233397,60 @@ export const BI = $root.BI = (() => { * @returns {BI.PaymentMethod} PaymentMethod */ PaymentMethod.fromObject = function fromObject(object) { - if (object instanceof $root.BI.PaymentMethod) - return object; + if (object instanceof $root.BI.PaymentMethod) return object; let message = new $root.BI.PaymentMethod(); switch (object.type) { - default: - if (typeof object.type === "number") { - message.type = object.type; - break; - } - break; - case "CARD": - case 0: - message.type = 0; - break; - case "SEPA": - case 1: - message.type = 1; - break; - case "PAYPAL": - case 2: - message.type = 2; - break; - case "NONE": - case 3: - message.type = 3; - break; - case "VENDOR": - case 4: - message.type = 4; - break; - case "PURCHASEORDER": - case 5: - message.type = 5; - break; + default: + if (typeof object.type === 'number') { + message.type = object.type; + break; + } + break; + case 'CARD': + case 0: + message.type = 0; + break; + case 'SEPA': + case 1: + message.type = 1; + break; + case 'PAYPAL': + case 2: + message.type = 2; + break; + case 'NONE': + case 3: + message.type = 3; + break; + case 'VENDOR': + case 4: + message.type = 4; + break; + case 'PURCHASEORDER': + case 5: + message.type = 5; + break; } if (object.card != null) { - if (typeof object.card !== "object") - throw TypeError(".BI.PaymentMethod.card: object expected"); + if (typeof object.card !== 'object') throw TypeError('.BI.PaymentMethod.card: object expected'); message.card = $root.BI.PaymentMethod.Card.fromObject(object.card); } if (object.sepa != null) { - if (typeof object.sepa !== "object") - throw TypeError(".BI.PaymentMethod.sepa: object expected"); + if (typeof object.sepa !== 'object') throw TypeError('.BI.PaymentMethod.sepa: object expected'); message.sepa = $root.BI.PaymentMethod.Sepa.fromObject(object.sepa); } if (object.paypal != null) { - if (typeof object.paypal !== "object") - throw TypeError(".BI.PaymentMethod.paypal: object expected"); + if (typeof object.paypal !== 'object') throw TypeError('.BI.PaymentMethod.paypal: object expected'); message.paypal = $root.BI.PaymentMethod.Paypal.fromObject(object.paypal); } - if (object.failedBilling != null) - message.failedBilling = Boolean(object.failedBilling); + if (object.failedBilling != null) message.failedBilling = Boolean(object.failedBilling); if (object.vendor != null) { - if (typeof object.vendor !== "object") - throw TypeError(".BI.PaymentMethod.vendor: object expected"); + if (typeof object.vendor !== 'object') throw TypeError('.BI.PaymentMethod.vendor: object expected'); message.vendor = $root.BI.PaymentMethod.Vendor.fromObject(object.vendor); } if (object.purchaseOrder != null) { - if (typeof object.purchaseOrder !== "object") - throw TypeError(".BI.PaymentMethod.purchaseOrder: object expected"); + if (typeof object.purchaseOrder !== 'object') + throw TypeError('.BI.PaymentMethod.purchaseOrder: object expected'); message.purchaseOrder = $root.BI.PaymentMethod.PurchaseOrder.fromObject(object.purchaseOrder); } return message; @@ -224310,11 +233466,10 @@ export const BI = $root.BI = (() => { * @returns {Object.} Plain object */ PaymentMethod.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - object.type = options.enums === String ? "CARD" : 0; + object.type = options.enums === String ? 'CARD' : 0; object.card = null; object.sepa = null; object.paypal = null; @@ -224322,19 +233477,24 @@ export const BI = $root.BI = (() => { object.vendor = null; object.purchaseOrder = null; } - if (message.type != null && message.hasOwnProperty("type")) - object.type = options.enums === String ? $root.BI.PaymentMethod.Type[message.type] === undefined ? message.type : $root.BI.PaymentMethod.Type[message.type] : message.type; - if (message.card != null && message.hasOwnProperty("card")) + if (message.type != null && message.hasOwnProperty('type')) + object.type = + options.enums === String + ? $root.BI.PaymentMethod.Type[message.type] === undefined + ? message.type + : $root.BI.PaymentMethod.Type[message.type] + : message.type; + if (message.card != null && message.hasOwnProperty('card')) object.card = $root.BI.PaymentMethod.Card.toObject(message.card, options); - if (message.sepa != null && message.hasOwnProperty("sepa")) + if (message.sepa != null && message.hasOwnProperty('sepa')) object.sepa = $root.BI.PaymentMethod.Sepa.toObject(message.sepa, options); - if (message.paypal != null && message.hasOwnProperty("paypal")) + if (message.paypal != null && message.hasOwnProperty('paypal')) object.paypal = $root.BI.PaymentMethod.Paypal.toObject(message.paypal, options); - if (message.failedBilling != null && message.hasOwnProperty("failedBilling")) + if (message.failedBilling != null && message.hasOwnProperty('failedBilling')) object.failedBilling = message.failedBilling; - if (message.vendor != null && message.hasOwnProperty("vendor")) + if (message.vendor != null && message.hasOwnProperty('vendor')) object.vendor = $root.BI.PaymentMethod.Vendor.toObject(message.vendor, options); - if (message.purchaseOrder != null && message.hasOwnProperty("purchaseOrder")) + if (message.purchaseOrder != null && message.hasOwnProperty('purchaseOrder')) object.purchaseOrder = $root.BI.PaymentMethod.PurchaseOrder.toObject(message.purchaseOrder, options); return object; }; @@ -224360,9 +233520,9 @@ export const BI = $root.BI = (() => { */ PaymentMethod.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/BI.PaymentMethod"; + return typeUrlPrefix + '/BI.PaymentMethod'; }; /** @@ -224376,19 +233536,19 @@ export const BI = $root.BI = (() => { * @property {number} VENDOR=4 VENDOR value * @property {number} PURCHASEORDER=5 PURCHASEORDER value */ - PaymentMethod.Type = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "CARD"] = 0; - values[valuesById[1] = "SEPA"] = 1; - values[valuesById[2] = "PAYPAL"] = 2; - values[valuesById[3] = "NONE"] = 3; - values[valuesById[4] = "VENDOR"] = 4; - values[valuesById[5] = "PURCHASEORDER"] = 5; + PaymentMethod.Type = (function () { + const valuesById = {}, + values = Object.create(valuesById); + values[(valuesById[0] = 'CARD')] = 0; + values[(valuesById[1] = 'SEPA')] = 1; + values[(valuesById[2] = 'PAYPAL')] = 2; + values[(valuesById[3] = 'NONE')] = 3; + values[(valuesById[4] = 'VENDOR')] = 4; + values[(valuesById[5] = 'PURCHASEORDER')] = 5; return values; })(); - PaymentMethod.Card = (function() { - + PaymentMethod.Card = (function () { /** * Properties of a Card. * @memberof BI.PaymentMethod @@ -224408,8 +233568,7 @@ export const BI = $root.BI = (() => { function Card(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -224418,7 +233577,7 @@ export const BI = $root.BI = (() => { * @memberof BI.PaymentMethod.Card * @instance */ - Card.prototype.last4 = ""; + Card.prototype.last4 = ''; /** * Card brand. @@ -224426,7 +233585,7 @@ export const BI = $root.BI = (() => { * @memberof BI.PaymentMethod.Card * @instance */ - Card.prototype.brand = ""; + Card.prototype.brand = ''; /** * Creates a new Card instance using the specified properties. @@ -224450,12 +233609,11 @@ export const BI = $root.BI = (() => { * @returns {$protobuf.Writer} Writer */ Card.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.last4 != null && Object.hasOwnProperty.call(message, "last4")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.last4); - if (message.brand != null && Object.hasOwnProperty.call(message, "brand")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.brand); + if (!writer) writer = $Writer.create(); + if (message.last4 != null && Object.hasOwnProperty.call(message, 'last4')) + writer.uint32(/* id 1, wireType 2 =*/ 10).string(message.last4); + if (message.brand != null && Object.hasOwnProperty.call(message, 'brand')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.brand); return writer; }; @@ -224484,23 +233642,23 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ Card.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.PaymentMethod.Card(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.BI.PaymentMethod.Card(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.last4 = reader.string(); break; } - case 2: { + case 2: { message.brand = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -224517,8 +233675,7 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ Card.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -224531,14 +233688,11 @@ export const BI = $root.BI = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ Card.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.last4 != null && message.hasOwnProperty("last4")) - if (!$util.isString(message.last4)) - return "last4: string expected"; - if (message.brand != null && message.hasOwnProperty("brand")) - if (!$util.isString(message.brand)) - return "brand: string expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.last4 != null && message.hasOwnProperty('last4')) + if (!$util.isString(message.last4)) return 'last4: string expected'; + if (message.brand != null && message.hasOwnProperty('brand')) + if (!$util.isString(message.brand)) return 'brand: string expected'; return null; }; @@ -224551,13 +233705,10 @@ export const BI = $root.BI = (() => { * @returns {BI.PaymentMethod.Card} Card */ Card.fromObject = function fromObject(object) { - if (object instanceof $root.BI.PaymentMethod.Card) - return object; + if (object instanceof $root.BI.PaymentMethod.Card) return object; let message = new $root.BI.PaymentMethod.Card(); - if (object.last4 != null) - message.last4 = String(object.last4); - if (object.brand != null) - message.brand = String(object.brand); + if (object.last4 != null) message.last4 = String(object.last4); + if (object.brand != null) message.brand = String(object.brand); return message; }; @@ -224571,17 +233722,14 @@ export const BI = $root.BI = (() => { * @returns {Object.} Plain object */ Card.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - object.last4 = ""; - object.brand = ""; + object.last4 = ''; + object.brand = ''; } - if (message.last4 != null && message.hasOwnProperty("last4")) - object.last4 = message.last4; - if (message.brand != null && message.hasOwnProperty("brand")) - object.brand = message.brand; + if (message.last4 != null && message.hasOwnProperty('last4')) object.last4 = message.last4; + if (message.brand != null && message.hasOwnProperty('brand')) object.brand = message.brand; return object; }; @@ -224606,16 +233754,15 @@ export const BI = $root.BI = (() => { */ Card.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/BI.PaymentMethod.Card"; + return typeUrlPrefix + '/BI.PaymentMethod.Card'; }; return Card; })(); - PaymentMethod.Sepa = (function() { - + PaymentMethod.Sepa = (function () { /** * Properties of a Sepa. * @memberof BI.PaymentMethod @@ -224635,8 +233782,7 @@ export const BI = $root.BI = (() => { function Sepa(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -224645,7 +233791,7 @@ export const BI = $root.BI = (() => { * @memberof BI.PaymentMethod.Sepa * @instance */ - Sepa.prototype.last4 = ""; + Sepa.prototype.last4 = ''; /** * Sepa country. @@ -224653,7 +233799,7 @@ export const BI = $root.BI = (() => { * @memberof BI.PaymentMethod.Sepa * @instance */ - Sepa.prototype.country = ""; + Sepa.prototype.country = ''; /** * Creates a new Sepa instance using the specified properties. @@ -224677,12 +233823,11 @@ export const BI = $root.BI = (() => { * @returns {$protobuf.Writer} Writer */ Sepa.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.last4 != null && Object.hasOwnProperty.call(message, "last4")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.last4); - if (message.country != null && Object.hasOwnProperty.call(message, "country")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.country); + if (!writer) writer = $Writer.create(); + if (message.last4 != null && Object.hasOwnProperty.call(message, 'last4')) + writer.uint32(/* id 1, wireType 2 =*/ 10).string(message.last4); + if (message.country != null && Object.hasOwnProperty.call(message, 'country')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.country); return writer; }; @@ -224711,23 +233856,23 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ Sepa.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.PaymentMethod.Sepa(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.BI.PaymentMethod.Sepa(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.last4 = reader.string(); break; } - case 2: { + case 2: { message.country = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -224744,8 +233889,7 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ Sepa.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -224758,14 +233902,11 @@ export const BI = $root.BI = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ Sepa.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.last4 != null && message.hasOwnProperty("last4")) - if (!$util.isString(message.last4)) - return "last4: string expected"; - if (message.country != null && message.hasOwnProperty("country")) - if (!$util.isString(message.country)) - return "country: string expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.last4 != null && message.hasOwnProperty('last4')) + if (!$util.isString(message.last4)) return 'last4: string expected'; + if (message.country != null && message.hasOwnProperty('country')) + if (!$util.isString(message.country)) return 'country: string expected'; return null; }; @@ -224778,13 +233919,10 @@ export const BI = $root.BI = (() => { * @returns {BI.PaymentMethod.Sepa} Sepa */ Sepa.fromObject = function fromObject(object) { - if (object instanceof $root.BI.PaymentMethod.Sepa) - return object; + if (object instanceof $root.BI.PaymentMethod.Sepa) return object; let message = new $root.BI.PaymentMethod.Sepa(); - if (object.last4 != null) - message.last4 = String(object.last4); - if (object.country != null) - message.country = String(object.country); + if (object.last4 != null) message.last4 = String(object.last4); + if (object.country != null) message.country = String(object.country); return message; }; @@ -224798,17 +233936,14 @@ export const BI = $root.BI = (() => { * @returns {Object.} Plain object */ Sepa.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - object.last4 = ""; - object.country = ""; + object.last4 = ''; + object.country = ''; } - if (message.last4 != null && message.hasOwnProperty("last4")) - object.last4 = message.last4; - if (message.country != null && message.hasOwnProperty("country")) - object.country = message.country; + if (message.last4 != null && message.hasOwnProperty('last4')) object.last4 = message.last4; + if (message.country != null && message.hasOwnProperty('country')) object.country = message.country; return object; }; @@ -224833,16 +233968,15 @@ export const BI = $root.BI = (() => { */ Sepa.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/BI.PaymentMethod.Sepa"; + return typeUrlPrefix + '/BI.PaymentMethod.Sepa'; }; return Sepa; })(); - PaymentMethod.Paypal = (function() { - + PaymentMethod.Paypal = (function () { /** * Properties of a Paypal. * @memberof BI.PaymentMethod @@ -224860,8 +233994,7 @@ export const BI = $root.BI = (() => { function Paypal(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -224886,8 +234019,7 @@ export const BI = $root.BI = (() => { * @returns {$protobuf.Writer} Writer */ Paypal.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); return writer; }; @@ -224916,15 +234048,15 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ Paypal.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.PaymentMethod.Paypal(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.BI.PaymentMethod.Paypal(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -224941,8 +234073,7 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ Paypal.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -224955,8 +234086,7 @@ export const BI = $root.BI = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ Paypal.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; return null; }; @@ -224969,8 +234099,7 @@ export const BI = $root.BI = (() => { * @returns {BI.PaymentMethod.Paypal} Paypal */ Paypal.fromObject = function fromObject(object) { - if (object instanceof $root.BI.PaymentMethod.Paypal) - return object; + if (object instanceof $root.BI.PaymentMethod.Paypal) return object; return new $root.BI.PaymentMethod.Paypal(); }; @@ -225008,16 +234137,15 @@ export const BI = $root.BI = (() => { */ Paypal.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/BI.PaymentMethod.Paypal"; + return typeUrlPrefix + '/BI.PaymentMethod.Paypal'; }; return Paypal; })(); - PaymentMethod.Vendor = (function() { - + PaymentMethod.Vendor = (function () { /** * Properties of a Vendor. * @memberof BI.PaymentMethod @@ -225036,8 +234164,7 @@ export const BI = $root.BI = (() => { function Vendor(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -225046,7 +234173,7 @@ export const BI = $root.BI = (() => { * @memberof BI.PaymentMethod.Vendor * @instance */ - Vendor.prototype.name = ""; + Vendor.prototype.name = ''; /** * Creates a new Vendor instance using the specified properties. @@ -225070,10 +234197,9 @@ export const BI = $root.BI = (() => { * @returns {$protobuf.Writer} Writer */ Vendor.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (!writer) writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, 'name')) + writer.uint32(/* id 1, wireType 2 =*/ 10).string(message.name); return writer; }; @@ -225102,19 +234228,19 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ Vendor.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.PaymentMethod.Vendor(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.BI.PaymentMethod.Vendor(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.name = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -225131,8 +234257,7 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ Vendor.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -225145,11 +234270,9 @@ export const BI = $root.BI = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ Vendor.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.name != null && message.hasOwnProperty('name')) + if (!$util.isString(message.name)) return 'name: string expected'; return null; }; @@ -225162,11 +234285,9 @@ export const BI = $root.BI = (() => { * @returns {BI.PaymentMethod.Vendor} Vendor */ Vendor.fromObject = function fromObject(object) { - if (object instanceof $root.BI.PaymentMethod.Vendor) - return object; + if (object instanceof $root.BI.PaymentMethod.Vendor) return object; let message = new $root.BI.PaymentMethod.Vendor(); - if (object.name != null) - message.name = String(object.name); + if (object.name != null) message.name = String(object.name); return message; }; @@ -225180,13 +234301,10 @@ export const BI = $root.BI = (() => { * @returns {Object.} Plain object */ Vendor.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + if (options.defaults) object.name = ''; + if (message.name != null && message.hasOwnProperty('name')) object.name = message.name; return object; }; @@ -225211,16 +234329,15 @@ export const BI = $root.BI = (() => { */ Vendor.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/BI.PaymentMethod.Vendor"; + return typeUrlPrefix + '/BI.PaymentMethod.Vendor'; }; return Vendor; })(); - PaymentMethod.PurchaseOrder = (function() { - + PaymentMethod.PurchaseOrder = (function () { /** * Properties of a PurchaseOrder. * @memberof BI.PaymentMethod @@ -225239,8 +234356,7 @@ export const BI = $root.BI = (() => { function PurchaseOrder(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -225249,7 +234365,7 @@ export const BI = $root.BI = (() => { * @memberof BI.PaymentMethod.PurchaseOrder * @instance */ - PurchaseOrder.prototype.name = ""; + PurchaseOrder.prototype.name = ''; /** * Creates a new PurchaseOrder instance using the specified properties. @@ -225273,10 +234389,9 @@ export const BI = $root.BI = (() => { * @returns {$protobuf.Writer} Writer */ PurchaseOrder.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (!writer) writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, 'name')) + writer.uint32(/* id 1, wireType 2 =*/ 10).string(message.name); return writer; }; @@ -225305,19 +234420,19 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ PurchaseOrder.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.PaymentMethod.PurchaseOrder(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.BI.PaymentMethod.PurchaseOrder(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.name = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -225334,8 +234449,7 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ PurchaseOrder.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -225348,11 +234462,9 @@ export const BI = $root.BI = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ PurchaseOrder.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.name != null && message.hasOwnProperty('name')) + if (!$util.isString(message.name)) return 'name: string expected'; return null; }; @@ -225365,11 +234477,9 @@ export const BI = $root.BI = (() => { * @returns {BI.PaymentMethod.PurchaseOrder} PurchaseOrder */ PurchaseOrder.fromObject = function fromObject(object) { - if (object instanceof $root.BI.PaymentMethod.PurchaseOrder) - return object; + if (object instanceof $root.BI.PaymentMethod.PurchaseOrder) return object; let message = new $root.BI.PaymentMethod.PurchaseOrder(); - if (object.name != null) - message.name = String(object.name); + if (object.name != null) message.name = String(object.name); return message; }; @@ -225383,13 +234493,10 @@ export const BI = $root.BI = (() => { * @returns {Object.} Plain object */ PurchaseOrder.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + if (options.defaults) object.name = ''; + if (message.name != null && message.hasOwnProperty('name')) object.name = message.name; return object; }; @@ -225414,9 +234521,9 @@ export const BI = $root.BI = (() => { */ PurchaseOrder.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/BI.PaymentMethod.PurchaseOrder"; + return typeUrlPrefix + '/BI.PaymentMethod.PurchaseOrder'; }; return PurchaseOrder; @@ -225425,8 +234532,7 @@ export const BI = $root.BI = (() => { return PaymentMethod; })(); - BI.SubscriptionMspPricingRequest = (function() { - + BI.SubscriptionMspPricingRequest = (function () { /** * Properties of a SubscriptionMspPricingRequest. * @memberof BI @@ -225444,8 +234550,7 @@ export const BI = $root.BI = (() => { function SubscriptionMspPricingRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -225470,8 +234575,7 @@ export const BI = $root.BI = (() => { * @returns {$protobuf.Writer} Writer */ SubscriptionMspPricingRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); return writer; }; @@ -225500,15 +234604,15 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SubscriptionMspPricingRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.SubscriptionMspPricingRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.BI.SubscriptionMspPricingRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -225525,8 +234629,7 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SubscriptionMspPricingRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -225539,8 +234642,7 @@ export const BI = $root.BI = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ SubscriptionMspPricingRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; return null; }; @@ -225553,8 +234655,7 @@ export const BI = $root.BI = (() => { * @returns {BI.SubscriptionMspPricingRequest} SubscriptionMspPricingRequest */ SubscriptionMspPricingRequest.fromObject = function fromObject(object) { - if (object instanceof $root.BI.SubscriptionMspPricingRequest) - return object; + if (object instanceof $root.BI.SubscriptionMspPricingRequest) return object; return new $root.BI.SubscriptionMspPricingRequest(); }; @@ -225592,16 +234693,15 @@ export const BI = $root.BI = (() => { */ SubscriptionMspPricingRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/BI.SubscriptionMspPricingRequest"; + return typeUrlPrefix + '/BI.SubscriptionMspPricingRequest'; }; return SubscriptionMspPricingRequest; })(); - BI.SubscriptionMspPricingResponse = (function() { - + BI.SubscriptionMspPricingResponse = (function () { /** * Properties of a SubscriptionMspPricingResponse. * @memberof BI @@ -225623,8 +234723,7 @@ export const BI = $root.BI = (() => { this.filePlans = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -225665,14 +234764,16 @@ export const BI = $root.BI = (() => { * @returns {$protobuf.Writer} Writer */ SubscriptionMspPricingResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.addons != null && message.addons.length) for (let i = 0; i < message.addons.length; ++i) - $root.BI.Addon.encode(message.addons[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + $root.BI.Addon.encode(message.addons[i], writer.uint32(/* id 2, wireType 2 =*/ 18).fork()).ldelim(); if (message.filePlans != null && message.filePlans.length) for (let i = 0; i < message.filePlans.length; ++i) - $root.BI.FilePlan.encode(message.filePlans[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + $root.BI.FilePlan.encode( + message.filePlans[i], + writer.uint32(/* id 3, wireType 2 =*/ 26).fork() + ).ldelim(); return writer; }; @@ -225701,27 +234802,25 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SubscriptionMspPricingResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.SubscriptionMspPricingResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.BI.SubscriptionMspPricingResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 2: { - if (!(message.addons && message.addons.length)) - message.addons = []; + case 2: { + if (!(message.addons && message.addons.length)) message.addons = []; message.addons.push($root.BI.Addon.decode(reader, reader.uint32())); break; } - case 3: { - if (!(message.filePlans && message.filePlans.length)) - message.filePlans = []; + case 3: { + if (!(message.filePlans && message.filePlans.length)) message.filePlans = []; message.filePlans.push($root.BI.FilePlan.decode(reader, reader.uint32())); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -225738,8 +234837,7 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SubscriptionMspPricingResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -225752,24 +234850,19 @@ export const BI = $root.BI = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ SubscriptionMspPricingResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.addons != null && message.hasOwnProperty("addons")) { - if (!Array.isArray(message.addons)) - return "addons: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.addons != null && message.hasOwnProperty('addons')) { + if (!Array.isArray(message.addons)) return 'addons: array expected'; for (let i = 0; i < message.addons.length; ++i) { let error = $root.BI.Addon.verify(message.addons[i]); - if (error) - return "addons." + error; + if (error) return 'addons.' + error; } } - if (message.filePlans != null && message.hasOwnProperty("filePlans")) { - if (!Array.isArray(message.filePlans)) - return "filePlans: array expected"; + if (message.filePlans != null && message.hasOwnProperty('filePlans')) { + if (!Array.isArray(message.filePlans)) return 'filePlans: array expected'; for (let i = 0; i < message.filePlans.length; ++i) { let error = $root.BI.FilePlan.verify(message.filePlans[i]); - if (error) - return "filePlans." + error; + if (error) return 'filePlans.' + error; } } return null; @@ -225784,26 +234877,25 @@ export const BI = $root.BI = (() => { * @returns {BI.SubscriptionMspPricingResponse} SubscriptionMspPricingResponse */ SubscriptionMspPricingResponse.fromObject = function fromObject(object) { - if (object instanceof $root.BI.SubscriptionMspPricingResponse) - return object; + if (object instanceof $root.BI.SubscriptionMspPricingResponse) return object; let message = new $root.BI.SubscriptionMspPricingResponse(); if (object.addons) { if (!Array.isArray(object.addons)) - throw TypeError(".BI.SubscriptionMspPricingResponse.addons: array expected"); + throw TypeError('.BI.SubscriptionMspPricingResponse.addons: array expected'); message.addons = []; for (let i = 0; i < object.addons.length; ++i) { - if (typeof object.addons[i] !== "object") - throw TypeError(".BI.SubscriptionMspPricingResponse.addons: object expected"); + if (typeof object.addons[i] !== 'object') + throw TypeError('.BI.SubscriptionMspPricingResponse.addons: object expected'); message.addons[i] = $root.BI.Addon.fromObject(object.addons[i]); } } if (object.filePlans) { if (!Array.isArray(object.filePlans)) - throw TypeError(".BI.SubscriptionMspPricingResponse.filePlans: array expected"); + throw TypeError('.BI.SubscriptionMspPricingResponse.filePlans: array expected'); message.filePlans = []; for (let i = 0; i < object.filePlans.length; ++i) { - if (typeof object.filePlans[i] !== "object") - throw TypeError(".BI.SubscriptionMspPricingResponse.filePlans: object expected"); + if (typeof object.filePlans[i] !== 'object') + throw TypeError('.BI.SubscriptionMspPricingResponse.filePlans: object expected'); message.filePlans[i] = $root.BI.FilePlan.fromObject(object.filePlans[i]); } } @@ -225820,8 +234912,7 @@ export const BI = $root.BI = (() => { * @returns {Object.} Plain object */ SubscriptionMspPricingResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.arrays || options.defaults) { object.addons = []; @@ -225861,16 +234952,15 @@ export const BI = $root.BI = (() => { */ SubscriptionMspPricingResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/BI.SubscriptionMspPricingResponse"; + return typeUrlPrefix + '/BI.SubscriptionMspPricingResponse'; }; return SubscriptionMspPricingResponse; })(); - BI.SubscriptionMcPricingRequest = (function() { - + BI.SubscriptionMcPricingRequest = (function () { /** * Properties of a SubscriptionMcPricingRequest. * @memberof BI @@ -225888,8 +234978,7 @@ export const BI = $root.BI = (() => { function SubscriptionMcPricingRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -225914,8 +235003,7 @@ export const BI = $root.BI = (() => { * @returns {$protobuf.Writer} Writer */ SubscriptionMcPricingRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); return writer; }; @@ -225944,15 +235032,15 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SubscriptionMcPricingRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.SubscriptionMcPricingRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.BI.SubscriptionMcPricingRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -225969,8 +235057,7 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SubscriptionMcPricingRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -225983,8 +235070,7 @@ export const BI = $root.BI = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ SubscriptionMcPricingRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; return null; }; @@ -225997,8 +235083,7 @@ export const BI = $root.BI = (() => { * @returns {BI.SubscriptionMcPricingRequest} SubscriptionMcPricingRequest */ SubscriptionMcPricingRequest.fromObject = function fromObject(object) { - if (object instanceof $root.BI.SubscriptionMcPricingRequest) - return object; + if (object instanceof $root.BI.SubscriptionMcPricingRequest) return object; return new $root.BI.SubscriptionMcPricingRequest(); }; @@ -226036,16 +235121,15 @@ export const BI = $root.BI = (() => { */ SubscriptionMcPricingRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/BI.SubscriptionMcPricingRequest"; + return typeUrlPrefix + '/BI.SubscriptionMcPricingRequest'; }; return SubscriptionMcPricingRequest; })(); - BI.SubscriptionMcPricingResponse = (function() { - + BI.SubscriptionMcPricingResponse = (function () { /** * Properties of a SubscriptionMcPricingResponse. * @memberof BI @@ -226069,8 +235153,7 @@ export const BI = $root.BI = (() => { this.filePlans = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -226119,17 +235202,22 @@ export const BI = $root.BI = (() => { * @returns {$protobuf.Writer} Writer */ SubscriptionMcPricingResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.basePlans != null && message.basePlans.length) for (let i = 0; i < message.basePlans.length; ++i) - $root.BI.BasePlan.encode(message.basePlans[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.BI.BasePlan.encode( + message.basePlans[i], + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); if (message.addons != null && message.addons.length) for (let i = 0; i < message.addons.length; ++i) - $root.BI.Addon.encode(message.addons[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + $root.BI.Addon.encode(message.addons[i], writer.uint32(/* id 2, wireType 2 =*/ 18).fork()).ldelim(); if (message.filePlans != null && message.filePlans.length) for (let i = 0; i < message.filePlans.length; ++i) - $root.BI.FilePlan.encode(message.filePlans[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + $root.BI.FilePlan.encode( + message.filePlans[i], + writer.uint32(/* id 3, wireType 2 =*/ 26).fork() + ).ldelim(); return writer; }; @@ -226158,33 +235246,30 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SubscriptionMcPricingResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.SubscriptionMcPricingResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.BI.SubscriptionMcPricingResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (!(message.basePlans && message.basePlans.length)) - message.basePlans = []; + case 1: { + if (!(message.basePlans && message.basePlans.length)) message.basePlans = []; message.basePlans.push($root.BI.BasePlan.decode(reader, reader.uint32())); break; } - case 2: { - if (!(message.addons && message.addons.length)) - message.addons = []; + case 2: { + if (!(message.addons && message.addons.length)) message.addons = []; message.addons.push($root.BI.Addon.decode(reader, reader.uint32())); break; } - case 3: { - if (!(message.filePlans && message.filePlans.length)) - message.filePlans = []; + case 3: { + if (!(message.filePlans && message.filePlans.length)) message.filePlans = []; message.filePlans.push($root.BI.FilePlan.decode(reader, reader.uint32())); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -226201,8 +235286,7 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SubscriptionMcPricingResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -226215,33 +235299,26 @@ export const BI = $root.BI = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ SubscriptionMcPricingResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.basePlans != null && message.hasOwnProperty("basePlans")) { - if (!Array.isArray(message.basePlans)) - return "basePlans: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.basePlans != null && message.hasOwnProperty('basePlans')) { + if (!Array.isArray(message.basePlans)) return 'basePlans: array expected'; for (let i = 0; i < message.basePlans.length; ++i) { let error = $root.BI.BasePlan.verify(message.basePlans[i]); - if (error) - return "basePlans." + error; + if (error) return 'basePlans.' + error; } } - if (message.addons != null && message.hasOwnProperty("addons")) { - if (!Array.isArray(message.addons)) - return "addons: array expected"; + if (message.addons != null && message.hasOwnProperty('addons')) { + if (!Array.isArray(message.addons)) return 'addons: array expected'; for (let i = 0; i < message.addons.length; ++i) { let error = $root.BI.Addon.verify(message.addons[i]); - if (error) - return "addons." + error; + if (error) return 'addons.' + error; } } - if (message.filePlans != null && message.hasOwnProperty("filePlans")) { - if (!Array.isArray(message.filePlans)) - return "filePlans: array expected"; + if (message.filePlans != null && message.hasOwnProperty('filePlans')) { + if (!Array.isArray(message.filePlans)) return 'filePlans: array expected'; for (let i = 0; i < message.filePlans.length; ++i) { let error = $root.BI.FilePlan.verify(message.filePlans[i]); - if (error) - return "filePlans." + error; + if (error) return 'filePlans.' + error; } } return null; @@ -226256,36 +235333,35 @@ export const BI = $root.BI = (() => { * @returns {BI.SubscriptionMcPricingResponse} SubscriptionMcPricingResponse */ SubscriptionMcPricingResponse.fromObject = function fromObject(object) { - if (object instanceof $root.BI.SubscriptionMcPricingResponse) - return object; + if (object instanceof $root.BI.SubscriptionMcPricingResponse) return object; let message = new $root.BI.SubscriptionMcPricingResponse(); if (object.basePlans) { if (!Array.isArray(object.basePlans)) - throw TypeError(".BI.SubscriptionMcPricingResponse.basePlans: array expected"); + throw TypeError('.BI.SubscriptionMcPricingResponse.basePlans: array expected'); message.basePlans = []; for (let i = 0; i < object.basePlans.length; ++i) { - if (typeof object.basePlans[i] !== "object") - throw TypeError(".BI.SubscriptionMcPricingResponse.basePlans: object expected"); + if (typeof object.basePlans[i] !== 'object') + throw TypeError('.BI.SubscriptionMcPricingResponse.basePlans: object expected'); message.basePlans[i] = $root.BI.BasePlan.fromObject(object.basePlans[i]); } } if (object.addons) { if (!Array.isArray(object.addons)) - throw TypeError(".BI.SubscriptionMcPricingResponse.addons: array expected"); + throw TypeError('.BI.SubscriptionMcPricingResponse.addons: array expected'); message.addons = []; for (let i = 0; i < object.addons.length; ++i) { - if (typeof object.addons[i] !== "object") - throw TypeError(".BI.SubscriptionMcPricingResponse.addons: object expected"); + if (typeof object.addons[i] !== 'object') + throw TypeError('.BI.SubscriptionMcPricingResponse.addons: object expected'); message.addons[i] = $root.BI.Addon.fromObject(object.addons[i]); } } if (object.filePlans) { if (!Array.isArray(object.filePlans)) - throw TypeError(".BI.SubscriptionMcPricingResponse.filePlans: array expected"); + throw TypeError('.BI.SubscriptionMcPricingResponse.filePlans: array expected'); message.filePlans = []; for (let i = 0; i < object.filePlans.length; ++i) { - if (typeof object.filePlans[i] !== "object") - throw TypeError(".BI.SubscriptionMcPricingResponse.filePlans: object expected"); + if (typeof object.filePlans[i] !== 'object') + throw TypeError('.BI.SubscriptionMcPricingResponse.filePlans: object expected'); message.filePlans[i] = $root.BI.FilePlan.fromObject(object.filePlans[i]); } } @@ -226302,8 +235378,7 @@ export const BI = $root.BI = (() => { * @returns {Object.} Plain object */ SubscriptionMcPricingResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.arrays || options.defaults) { object.basePlans = []; @@ -226349,16 +235424,15 @@ export const BI = $root.BI = (() => { */ SubscriptionMcPricingResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/BI.SubscriptionMcPricingResponse"; + return typeUrlPrefix + '/BI.SubscriptionMcPricingResponse'; }; return SubscriptionMcPricingResponse; })(); - BI.BasePlan = (function() { - + BI.BasePlan = (function () { /** * Properties of a BasePlan. * @memberof BI @@ -226378,8 +235452,7 @@ export const BI = $root.BI = (() => { function BasePlan(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -226420,12 +235493,11 @@ export const BI = $root.BI = (() => { * @returns {$protobuf.Writer} Writer */ BasePlan.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.id != null && Object.hasOwnProperty.call(message, "id")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.id); - if (message.cost != null && Object.hasOwnProperty.call(message, "cost")) - $root.BI.Cost.encode(message.cost, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (!writer) writer = $Writer.create(); + if (message.id != null && Object.hasOwnProperty.call(message, 'id')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int32(message.id); + if (message.cost != null && Object.hasOwnProperty.call(message, 'cost')) + $root.BI.Cost.encode(message.cost, writer.uint32(/* id 2, wireType 2 =*/ 18).fork()).ldelim(); return writer; }; @@ -226454,23 +235526,23 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ BasePlan.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.BasePlan(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.BI.BasePlan(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.id = reader.int32(); break; } - case 2: { + case 2: { message.cost = $root.BI.Cost.decode(reader, reader.uint32()); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -226487,8 +235559,7 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ BasePlan.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -226501,15 +235572,12 @@ export const BI = $root.BI = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ BasePlan.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) - if (!$util.isInteger(message.id)) - return "id: integer expected"; - if (message.cost != null && message.hasOwnProperty("cost")) { + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.id != null && message.hasOwnProperty('id')) + if (!$util.isInteger(message.id)) return 'id: integer expected'; + if (message.cost != null && message.hasOwnProperty('cost')) { let error = $root.BI.Cost.verify(message.cost); - if (error) - return "cost." + error; + if (error) return 'cost.' + error; } return null; }; @@ -226523,14 +235591,11 @@ export const BI = $root.BI = (() => { * @returns {BI.BasePlan} BasePlan */ BasePlan.fromObject = function fromObject(object) { - if (object instanceof $root.BI.BasePlan) - return object; + if (object instanceof $root.BI.BasePlan) return object; let message = new $root.BI.BasePlan(); - if (object.id != null) - message.id = object.id | 0; + if (object.id != null) message.id = object.id | 0; if (object.cost != null) { - if (typeof object.cost !== "object") - throw TypeError(".BI.BasePlan.cost: object expected"); + if (typeof object.cost !== 'object') throw TypeError('.BI.BasePlan.cost: object expected'); message.cost = $root.BI.Cost.fromObject(object.cost); } return message; @@ -226546,16 +235611,14 @@ export const BI = $root.BI = (() => { * @returns {Object.} Plain object */ BasePlan.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { object.id = 0; object.cost = null; } - if (message.id != null && message.hasOwnProperty("id")) - object.id = message.id; - if (message.cost != null && message.hasOwnProperty("cost")) + if (message.id != null && message.hasOwnProperty('id')) object.id = message.id; + if (message.cost != null && message.hasOwnProperty('cost')) object.cost = $root.BI.Cost.toObject(message.cost, options); return object; }; @@ -226581,16 +235644,15 @@ export const BI = $root.BI = (() => { */ BasePlan.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/BI.BasePlan"; + return typeUrlPrefix + '/BI.BasePlan'; }; return BasePlan; })(); - BI.Addon = (function() { - + BI.Addon = (function () { /** * Properties of an Addon. * @memberof BI @@ -226611,8 +235673,7 @@ export const BI = $root.BI = (() => { function Addon(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -226637,7 +235698,7 @@ export const BI = $root.BI = (() => { * @memberof BI.Addon * @instance */ - Addon.prototype.amountConsumed = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + Addon.prototype.amountConsumed = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * Creates a new Addon instance using the specified properties. @@ -226661,14 +235722,13 @@ export const BI = $root.BI = (() => { * @returns {$protobuf.Writer} Writer */ Addon.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.id != null && Object.hasOwnProperty.call(message, "id")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.id); - if (message.cost != null && Object.hasOwnProperty.call(message, "cost")) - $root.BI.Cost.encode(message.cost, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.amountConsumed != null && Object.hasOwnProperty.call(message, "amountConsumed")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.amountConsumed); + if (!writer) writer = $Writer.create(); + if (message.id != null && Object.hasOwnProperty.call(message, 'id')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int32(message.id); + if (message.cost != null && Object.hasOwnProperty.call(message, 'cost')) + $root.BI.Cost.encode(message.cost, writer.uint32(/* id 2, wireType 2 =*/ 18).fork()).ldelim(); + if (message.amountConsumed != null && Object.hasOwnProperty.call(message, 'amountConsumed')) + writer.uint32(/* id 3, wireType 0 =*/ 24).int64(message.amountConsumed); return writer; }; @@ -226697,27 +235757,27 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ Addon.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.Addon(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.BI.Addon(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.id = reader.int32(); break; } - case 2: { + case 2: { message.cost = $root.BI.Cost.decode(reader, reader.uint32()); break; } - case 3: { + case 3: { message.amountConsumed = reader.int64(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -226734,8 +235794,7 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ Addon.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -226748,19 +235807,23 @@ export const BI = $root.BI = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ Addon.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) - if (!$util.isInteger(message.id)) - return "id: integer expected"; - if (message.cost != null && message.hasOwnProperty("cost")) { + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.id != null && message.hasOwnProperty('id')) + if (!$util.isInteger(message.id)) return 'id: integer expected'; + if (message.cost != null && message.hasOwnProperty('cost')) { let error = $root.BI.Cost.verify(message.cost); - if (error) - return "cost." + error; + if (error) return 'cost.' + error; } - if (message.amountConsumed != null && message.hasOwnProperty("amountConsumed")) - if (!$util.isInteger(message.amountConsumed) && !(message.amountConsumed && $util.isInteger(message.amountConsumed.low) && $util.isInteger(message.amountConsumed.high))) - return "amountConsumed: integer|Long expected"; + if (message.amountConsumed != null && message.hasOwnProperty('amountConsumed')) + if ( + !$util.isInteger(message.amountConsumed) && + !( + message.amountConsumed && + $util.isInteger(message.amountConsumed.low) && + $util.isInteger(message.amountConsumed.high) + ) + ) + return 'amountConsumed: integer|Long expected'; return null; }; @@ -226773,25 +235836,23 @@ export const BI = $root.BI = (() => { * @returns {BI.Addon} Addon */ Addon.fromObject = function fromObject(object) { - if (object instanceof $root.BI.Addon) - return object; + if (object instanceof $root.BI.Addon) return object; let message = new $root.BI.Addon(); - if (object.id != null) - message.id = object.id | 0; + if (object.id != null) message.id = object.id | 0; if (object.cost != null) { - if (typeof object.cost !== "object") - throw TypeError(".BI.Addon.cost: object expected"); + if (typeof object.cost !== 'object') throw TypeError('.BI.Addon.cost: object expected'); message.cost = $root.BI.Cost.fromObject(object.cost); } if (object.amountConsumed != null) - if ($util.Long) - (message.amountConsumed = $util.Long.fromValue(object.amountConsumed)).unsigned = false; - else if (typeof object.amountConsumed === "string") + if ($util.Long) (message.amountConsumed = $util.Long.fromValue(object.amountConsumed)).unsigned = false; + else if (typeof object.amountConsumed === 'string') message.amountConsumed = parseInt(object.amountConsumed, 10); - else if (typeof object.amountConsumed === "number") - message.amountConsumed = object.amountConsumed; - else if (typeof object.amountConsumed === "object") - message.amountConsumed = new $util.LongBits(object.amountConsumed.low >>> 0, object.amountConsumed.high >>> 0).toNumber(); + else if (typeof object.amountConsumed === 'number') message.amountConsumed = object.amountConsumed; + else if (typeof object.amountConsumed === 'object') + message.amountConsumed = new $util.LongBits( + object.amountConsumed.low >>> 0, + object.amountConsumed.high >>> 0 + ).toNumber(); return message; }; @@ -226805,27 +235866,34 @@ export const BI = $root.BI = (() => { * @returns {Object.} Plain object */ Addon.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { object.id = 0; object.cost = null; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.amountConsumed = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.amountConsumed = options.longs === String ? "0" : 0; + object.amountConsumed = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.amountConsumed = options.longs === String ? '0' : 0; } - if (message.id != null && message.hasOwnProperty("id")) - object.id = message.id; - if (message.cost != null && message.hasOwnProperty("cost")) + if (message.id != null && message.hasOwnProperty('id')) object.id = message.id; + if (message.cost != null && message.hasOwnProperty('cost')) object.cost = $root.BI.Cost.toObject(message.cost, options); - if (message.amountConsumed != null && message.hasOwnProperty("amountConsumed")) - if (typeof message.amountConsumed === "number") - object.amountConsumed = options.longs === String ? String(message.amountConsumed) : message.amountConsumed; + if (message.amountConsumed != null && message.hasOwnProperty('amountConsumed')) + if (typeof message.amountConsumed === 'number') + object.amountConsumed = + options.longs === String ? String(message.amountConsumed) : message.amountConsumed; else - object.amountConsumed = options.longs === String ? $util.Long.prototype.toString.call(message.amountConsumed) : options.longs === Number ? new $util.LongBits(message.amountConsumed.low >>> 0, message.amountConsumed.high >>> 0).toNumber() : message.amountConsumed; + object.amountConsumed = + options.longs === String + ? $util.Long.prototype.toString.call(message.amountConsumed) + : options.longs === Number + ? new $util.LongBits( + message.amountConsumed.low >>> 0, + message.amountConsumed.high >>> 0 + ).toNumber() + : message.amountConsumed; return object; }; @@ -226850,16 +235918,15 @@ export const BI = $root.BI = (() => { */ Addon.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/BI.Addon"; + return typeUrlPrefix + '/BI.Addon'; }; return Addon; })(); - BI.FilePlan = (function() { - + BI.FilePlan = (function () { /** * Properties of a FilePlan. * @memberof BI @@ -226879,8 +235946,7 @@ export const BI = $root.BI = (() => { function FilePlan(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -226921,12 +235987,11 @@ export const BI = $root.BI = (() => { * @returns {$protobuf.Writer} Writer */ FilePlan.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.id != null && Object.hasOwnProperty.call(message, "id")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.id); - if (message.cost != null && Object.hasOwnProperty.call(message, "cost")) - $root.BI.Cost.encode(message.cost, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (!writer) writer = $Writer.create(); + if (message.id != null && Object.hasOwnProperty.call(message, 'id')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int32(message.id); + if (message.cost != null && Object.hasOwnProperty.call(message, 'cost')) + $root.BI.Cost.encode(message.cost, writer.uint32(/* id 2, wireType 2 =*/ 18).fork()).ldelim(); return writer; }; @@ -226955,23 +236020,23 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ FilePlan.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.FilePlan(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.BI.FilePlan(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.id = reader.int32(); break; } - case 2: { + case 2: { message.cost = $root.BI.Cost.decode(reader, reader.uint32()); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -226988,8 +236053,7 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ FilePlan.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -227002,15 +236066,12 @@ export const BI = $root.BI = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ FilePlan.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) - if (!$util.isInteger(message.id)) - return "id: integer expected"; - if (message.cost != null && message.hasOwnProperty("cost")) { + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.id != null && message.hasOwnProperty('id')) + if (!$util.isInteger(message.id)) return 'id: integer expected'; + if (message.cost != null && message.hasOwnProperty('cost')) { let error = $root.BI.Cost.verify(message.cost); - if (error) - return "cost." + error; + if (error) return 'cost.' + error; } return null; }; @@ -227024,14 +236085,11 @@ export const BI = $root.BI = (() => { * @returns {BI.FilePlan} FilePlan */ FilePlan.fromObject = function fromObject(object) { - if (object instanceof $root.BI.FilePlan) - return object; + if (object instanceof $root.BI.FilePlan) return object; let message = new $root.BI.FilePlan(); - if (object.id != null) - message.id = object.id | 0; + if (object.id != null) message.id = object.id | 0; if (object.cost != null) { - if (typeof object.cost !== "object") - throw TypeError(".BI.FilePlan.cost: object expected"); + if (typeof object.cost !== 'object') throw TypeError('.BI.FilePlan.cost: object expected'); message.cost = $root.BI.Cost.fromObject(object.cost); } return message; @@ -227047,16 +236105,14 @@ export const BI = $root.BI = (() => { * @returns {Object.} Plain object */ FilePlan.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { object.id = 0; object.cost = null; } - if (message.id != null && message.hasOwnProperty("id")) - object.id = message.id; - if (message.cost != null && message.hasOwnProperty("cost")) + if (message.id != null && message.hasOwnProperty('id')) object.id = message.id; + if (message.cost != null && message.hasOwnProperty('cost')) object.cost = $root.BI.Cost.toObject(message.cost, options); return object; }; @@ -227082,16 +236138,15 @@ export const BI = $root.BI = (() => { */ FilePlan.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/BI.FilePlan"; + return typeUrlPrefix + '/BI.FilePlan'; }; return FilePlan; })(); - BI.Cost = (function() { - + BI.Cost = (function () { /** * Properties of a Cost. * @memberof BI @@ -227112,8 +236167,7 @@ export const BI = $root.BI = (() => { function Cost(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -227162,14 +236216,13 @@ export const BI = $root.BI = (() => { * @returns {$protobuf.Writer} Writer */ Cost.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.amount != null && Object.hasOwnProperty.call(message, "amount")) - writer.uint32(/* id 3, wireType 1 =*/25).double(message.amount); - if (message.amountPer != null && Object.hasOwnProperty.call(message, "amountPer")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.amountPer); - if (message.currency != null && Object.hasOwnProperty.call(message, "currency")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.currency); + if (!writer) writer = $Writer.create(); + if (message.amount != null && Object.hasOwnProperty.call(message, 'amount')) + writer.uint32(/* id 3, wireType 1 =*/ 25).double(message.amount); + if (message.amountPer != null && Object.hasOwnProperty.call(message, 'amountPer')) + writer.uint32(/* id 4, wireType 0 =*/ 32).int32(message.amountPer); + if (message.currency != null && Object.hasOwnProperty.call(message, 'currency')) + writer.uint32(/* id 5, wireType 0 =*/ 40).int32(message.currency); return writer; }; @@ -227198,27 +236251,27 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ Cost.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.Cost(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.BI.Cost(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 3: { + case 3: { message.amount = reader.double(); break; } - case 4: { + case 4: { message.amountPer = reader.int32(); break; } - case 5: { + case 5: { message.currency = reader.int32(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -227235,8 +236288,7 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ Cost.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -227249,135 +236301,131 @@ export const BI = $root.BI = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ Cost.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.amount != null && message.hasOwnProperty("amount")) - if (typeof message.amount !== "number") - return "amount: number expected"; - if (message.amountPer != null && message.hasOwnProperty("amountPer")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.amount != null && message.hasOwnProperty('amount')) + if (typeof message.amount !== 'number') return 'amount: number expected'; + if (message.amountPer != null && message.hasOwnProperty('amountPer')) switch (message.amountPer) { + default: + return 'amountPer: enum value expected'; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + break; + } + if (message.currency != null && message.hasOwnProperty('currency')) + switch (message.currency) { + default: + return 'currency: enum value expected'; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + break; + } + return null; + }; + + /** + * Creates a Cost message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof BI.Cost + * @static + * @param {Object.} object Plain object + * @returns {BI.Cost} Cost + */ + Cost.fromObject = function fromObject(object) { + if (object instanceof $root.BI.Cost) return object; + let message = new $root.BI.Cost(); + if (object.amount != null) message.amount = Number(object.amount); + switch (object.amountPer) { default: - return "amountPer: enum value expected"; + if (typeof object.amountPer === 'number') { + message.amountPer = object.amountPer; + break; + } + break; + case 'UNKNOWN': case 0: + message.amountPer = 0; + break; + case 'MONTH': case 1: + message.amountPer = 1; + break; + case 'USER_MONTH': case 2: + message.amountPer = 2; + break; + case 'USER_CONSUMED_MONTH': case 3: + message.amountPer = 3; + break; + case 'ENDPOINT_MONTH': case 4: + message.amountPer = 4; + break; + case 'USER_YEAR': case 5: + message.amountPer = 5; + break; + case 'USER_CONSUMED_YEAR': case 6: + message.amountPer = 6; + break; + case 'YEAR': case 7: + message.amountPer = 7; + break; + case 'ENDPOINT_YEAR': case 8: + message.amountPer = 8; break; - } - if (message.currency != null && message.hasOwnProperty("currency")) - switch (message.currency) { + } + switch (object.currency) { default: - return "currency: enum value expected"; + if (typeof object.currency === 'number') { + message.currency = object.currency; + break; + } + break; + case 'UNKNOWN': case 0: + message.currency = 0; + break; + case 'USD': case 1: + message.currency = 1; + break; + case 'GBP': case 2: + message.currency = 2; + break; + case 'JPY': case 3: + message.currency = 3; + break; + case 'EUR': case 4: + message.currency = 4; + break; + case 'AUD': case 5: + message.currency = 5; + break; + case 'CAD': case 6: + message.currency = 6; break; - } - return null; - }; - - /** - * Creates a Cost message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof BI.Cost - * @static - * @param {Object.} object Plain object - * @returns {BI.Cost} Cost - */ - Cost.fromObject = function fromObject(object) { - if (object instanceof $root.BI.Cost) - return object; - let message = new $root.BI.Cost(); - if (object.amount != null) - message.amount = Number(object.amount); - switch (object.amountPer) { - default: - if (typeof object.amountPer === "number") { - message.amountPer = object.amountPer; - break; - } - break; - case "UNKNOWN": - case 0: - message.amountPer = 0; - break; - case "MONTH": - case 1: - message.amountPer = 1; - break; - case "USER_MONTH": - case 2: - message.amountPer = 2; - break; - case "USER_CONSUMED_MONTH": - case 3: - message.amountPer = 3; - break; - case "ENDPOINT_MONTH": - case 4: - message.amountPer = 4; - break; - case "USER_YEAR": - case 5: - message.amountPer = 5; - break; - case "USER_CONSUMED_YEAR": - case 6: - message.amountPer = 6; - break; - case "YEAR": - case 7: - message.amountPer = 7; - break; - case "ENDPOINT_YEAR": - case 8: - message.amountPer = 8; - break; - } - switch (object.currency) { - default: - if (typeof object.currency === "number") { - message.currency = object.currency; - break; - } - break; - case "UNKNOWN": - case 0: - message.currency = 0; - break; - case "USD": - case 1: - message.currency = 1; - break; - case "GBP": - case 2: - message.currency = 2; - break; - case "JPY": - case 3: - message.currency = 3; - break; - case "EUR": - case 4: - message.currency = 4; - break; - case "AUD": - case 5: - message.currency = 5; - break; - case "CAD": - case 6: - message.currency = 6; - break; } return message; }; @@ -227392,20 +236440,29 @@ export const BI = $root.BI = (() => { * @returns {Object.} Plain object */ Cost.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { object.amount = 0; - object.amountPer = options.enums === String ? "UNKNOWN" : 0; - object.currency = options.enums === String ? "UNKNOWN" : 0; + object.amountPer = options.enums === String ? 'UNKNOWN' : 0; + object.currency = options.enums === String ? 'UNKNOWN' : 0; } - if (message.amount != null && message.hasOwnProperty("amount")) + if (message.amount != null && message.hasOwnProperty('amount')) object.amount = options.json && !isFinite(message.amount) ? String(message.amount) : message.amount; - if (message.amountPer != null && message.hasOwnProperty("amountPer")) - object.amountPer = options.enums === String ? $root.BI.Cost.AmountPer[message.amountPer] === undefined ? message.amountPer : $root.BI.Cost.AmountPer[message.amountPer] : message.amountPer; - if (message.currency != null && message.hasOwnProperty("currency")) - object.currency = options.enums === String ? $root.BI.Currency[message.currency] === undefined ? message.currency : $root.BI.Currency[message.currency] : message.currency; + if (message.amountPer != null && message.hasOwnProperty('amountPer')) + object.amountPer = + options.enums === String + ? $root.BI.Cost.AmountPer[message.amountPer] === undefined + ? message.amountPer + : $root.BI.Cost.AmountPer[message.amountPer] + : message.amountPer; + if (message.currency != null && message.hasOwnProperty('currency')) + object.currency = + options.enums === String + ? $root.BI.Currency[message.currency] === undefined + ? message.currency + : $root.BI.Currency[message.currency] + : message.currency; return object; }; @@ -227430,9 +236487,9 @@ export const BI = $root.BI = (() => { */ Cost.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/BI.Cost"; + return typeUrlPrefix + '/BI.Cost'; }; /** @@ -227449,25 +236506,25 @@ export const BI = $root.BI = (() => { * @property {number} YEAR=7 YEAR value * @property {number} ENDPOINT_YEAR=8 ENDPOINT_YEAR value */ - Cost.AmountPer = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "UNKNOWN"] = 0; - values[valuesById[1] = "MONTH"] = 1; - values[valuesById[2] = "USER_MONTH"] = 2; - values[valuesById[3] = "USER_CONSUMED_MONTH"] = 3; - values[valuesById[4] = "ENDPOINT_MONTH"] = 4; - values[valuesById[5] = "USER_YEAR"] = 5; - values[valuesById[6] = "USER_CONSUMED_YEAR"] = 6; - values[valuesById[7] = "YEAR"] = 7; - values[valuesById[8] = "ENDPOINT_YEAR"] = 8; + Cost.AmountPer = (function () { + const valuesById = {}, + values = Object.create(valuesById); + values[(valuesById[0] = 'UNKNOWN')] = 0; + values[(valuesById[1] = 'MONTH')] = 1; + values[(valuesById[2] = 'USER_MONTH')] = 2; + values[(valuesById[3] = 'USER_CONSUMED_MONTH')] = 3; + values[(valuesById[4] = 'ENDPOINT_MONTH')] = 4; + values[(valuesById[5] = 'USER_YEAR')] = 5; + values[(valuesById[6] = 'USER_CONSUMED_YEAR')] = 6; + values[(valuesById[7] = 'YEAR')] = 7; + values[(valuesById[8] = 'ENDPOINT_YEAR')] = 8; return values; })(); return Cost; })(); - BI.InvoiceSearchRequest = (function() { - + BI.InvoiceSearchRequest = (function () { /** * Properties of an InvoiceSearchRequest. * @memberof BI @@ -227488,8 +236545,7 @@ export const BI = $root.BI = (() => { function InvoiceSearchRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -227538,14 +236594,13 @@ export const BI = $root.BI = (() => { * @returns {$protobuf.Writer} Writer */ InvoiceSearchRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.size != null && Object.hasOwnProperty.call(message, "size")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.size); - if (message.startingAfterId != null && Object.hasOwnProperty.call(message, "startingAfterId")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.startingAfterId); - if (message.allInvoicesUnfiltered != null && Object.hasOwnProperty.call(message, "allInvoicesUnfiltered")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.allInvoicesUnfiltered); + if (!writer) writer = $Writer.create(); + if (message.size != null && Object.hasOwnProperty.call(message, 'size')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int32(message.size); + if (message.startingAfterId != null && Object.hasOwnProperty.call(message, 'startingAfterId')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int32(message.startingAfterId); + if (message.allInvoicesUnfiltered != null && Object.hasOwnProperty.call(message, 'allInvoicesUnfiltered')) + writer.uint32(/* id 3, wireType 0 =*/ 24).bool(message.allInvoicesUnfiltered); return writer; }; @@ -227574,27 +236629,27 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ InvoiceSearchRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.InvoiceSearchRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.BI.InvoiceSearchRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.size = reader.int32(); break; } - case 2: { + case 2: { message.startingAfterId = reader.int32(); break; } - case 3: { + case 3: { message.allInvoicesUnfiltered = reader.bool(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -227611,8 +236666,7 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ InvoiceSearchRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -227625,17 +236679,14 @@ export const BI = $root.BI = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ InvoiceSearchRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.size != null && message.hasOwnProperty("size")) - if (!$util.isInteger(message.size)) - return "size: integer expected"; - if (message.startingAfterId != null && message.hasOwnProperty("startingAfterId")) - if (!$util.isInteger(message.startingAfterId)) - return "startingAfterId: integer expected"; - if (message.allInvoicesUnfiltered != null && message.hasOwnProperty("allInvoicesUnfiltered")) - if (typeof message.allInvoicesUnfiltered !== "boolean") - return "allInvoicesUnfiltered: boolean expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.size != null && message.hasOwnProperty('size')) + if (!$util.isInteger(message.size)) return 'size: integer expected'; + if (message.startingAfterId != null && message.hasOwnProperty('startingAfterId')) + if (!$util.isInteger(message.startingAfterId)) return 'startingAfterId: integer expected'; + if (message.allInvoicesUnfiltered != null && message.hasOwnProperty('allInvoicesUnfiltered')) + if (typeof message.allInvoicesUnfiltered !== 'boolean') + return 'allInvoicesUnfiltered: boolean expected'; return null; }; @@ -227648,13 +236699,10 @@ export const BI = $root.BI = (() => { * @returns {BI.InvoiceSearchRequest} InvoiceSearchRequest */ InvoiceSearchRequest.fromObject = function fromObject(object) { - if (object instanceof $root.BI.InvoiceSearchRequest) - return object; + if (object instanceof $root.BI.InvoiceSearchRequest) return object; let message = new $root.BI.InvoiceSearchRequest(); - if (object.size != null) - message.size = object.size | 0; - if (object.startingAfterId != null) - message.startingAfterId = object.startingAfterId | 0; + if (object.size != null) message.size = object.size | 0; + if (object.startingAfterId != null) message.startingAfterId = object.startingAfterId | 0; if (object.allInvoicesUnfiltered != null) message.allInvoicesUnfiltered = Boolean(object.allInvoicesUnfiltered); return message; @@ -227670,19 +236718,17 @@ export const BI = $root.BI = (() => { * @returns {Object.} Plain object */ InvoiceSearchRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { object.size = 0; object.startingAfterId = 0; object.allInvoicesUnfiltered = false; } - if (message.size != null && message.hasOwnProperty("size")) - object.size = message.size; - if (message.startingAfterId != null && message.hasOwnProperty("startingAfterId")) + if (message.size != null && message.hasOwnProperty('size')) object.size = message.size; + if (message.startingAfterId != null && message.hasOwnProperty('startingAfterId')) object.startingAfterId = message.startingAfterId; - if (message.allInvoicesUnfiltered != null && message.hasOwnProperty("allInvoicesUnfiltered")) + if (message.allInvoicesUnfiltered != null && message.hasOwnProperty('allInvoicesUnfiltered')) object.allInvoicesUnfiltered = message.allInvoicesUnfiltered; return object; }; @@ -227708,16 +236754,15 @@ export const BI = $root.BI = (() => { */ InvoiceSearchRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/BI.InvoiceSearchRequest"; + return typeUrlPrefix + '/BI.InvoiceSearchRequest'; }; return InvoiceSearchRequest; })(); - BI.InvoiceSearchResponse = (function() { - + BI.InvoiceSearchResponse = (function () { /** * Properties of an InvoiceSearchResponse. * @memberof BI @@ -227737,8 +236782,7 @@ export const BI = $root.BI = (() => { this.invoices = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -227771,11 +236815,13 @@ export const BI = $root.BI = (() => { * @returns {$protobuf.Writer} Writer */ InvoiceSearchResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.invoices != null && message.invoices.length) for (let i = 0; i < message.invoices.length; ++i) - $root.BI.Invoice.encode(message.invoices[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.BI.Invoice.encode( + message.invoices[i], + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); return writer; }; @@ -227804,21 +236850,20 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ InvoiceSearchResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.InvoiceSearchResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.BI.InvoiceSearchResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (!(message.invoices && message.invoices.length)) - message.invoices = []; + case 1: { + if (!(message.invoices && message.invoices.length)) message.invoices = []; message.invoices.push($root.BI.Invoice.decode(reader, reader.uint32())); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -227835,8 +236880,7 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ InvoiceSearchResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -227849,15 +236893,12 @@ export const BI = $root.BI = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ InvoiceSearchResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.invoices != null && message.hasOwnProperty("invoices")) { - if (!Array.isArray(message.invoices)) - return "invoices: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.invoices != null && message.hasOwnProperty('invoices')) { + if (!Array.isArray(message.invoices)) return 'invoices: array expected'; for (let i = 0; i < message.invoices.length; ++i) { let error = $root.BI.Invoice.verify(message.invoices[i]); - if (error) - return "invoices." + error; + if (error) return 'invoices.' + error; } } return null; @@ -227872,16 +236913,15 @@ export const BI = $root.BI = (() => { * @returns {BI.InvoiceSearchResponse} InvoiceSearchResponse */ InvoiceSearchResponse.fromObject = function fromObject(object) { - if (object instanceof $root.BI.InvoiceSearchResponse) - return object; + if (object instanceof $root.BI.InvoiceSearchResponse) return object; let message = new $root.BI.InvoiceSearchResponse(); if (object.invoices) { if (!Array.isArray(object.invoices)) - throw TypeError(".BI.InvoiceSearchResponse.invoices: array expected"); + throw TypeError('.BI.InvoiceSearchResponse.invoices: array expected'); message.invoices = []; for (let i = 0; i < object.invoices.length; ++i) { - if (typeof object.invoices[i] !== "object") - throw TypeError(".BI.InvoiceSearchResponse.invoices: object expected"); + if (typeof object.invoices[i] !== 'object') + throw TypeError('.BI.InvoiceSearchResponse.invoices: object expected'); message.invoices[i] = $root.BI.Invoice.fromObject(object.invoices[i]); } } @@ -227898,11 +236938,9 @@ export const BI = $root.BI = (() => { * @returns {Object.} Plain object */ InvoiceSearchResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.invoices = []; + if (options.arrays || options.defaults) object.invoices = []; if (message.invoices && message.invoices.length) { object.invoices = []; for (let j = 0; j < message.invoices.length; ++j) @@ -227932,16 +236970,15 @@ export const BI = $root.BI = (() => { */ InvoiceSearchResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/BI.InvoiceSearchResponse"; + return typeUrlPrefix + '/BI.InvoiceSearchResponse'; }; return InvoiceSearchResponse; })(); - BI.Invoice = (function() { - + BI.Invoice = (function () { /** * Properties of an Invoice. * @memberof BI @@ -227965,8 +237002,7 @@ export const BI = $root.BI = (() => { function Invoice(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -227983,7 +237019,7 @@ export const BI = $root.BI = (() => { * @memberof BI.Invoice * @instance */ - Invoice.prototype.invoiceNumber = ""; + Invoice.prototype.invoiceNumber = ''; /** * Invoice invoiceDate. @@ -227991,7 +237027,7 @@ export const BI = $root.BI = (() => { * @memberof BI.Invoice * @instance */ - Invoice.prototype.invoiceDate = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + Invoice.prototype.invoiceDate = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * Invoice licenseCount. @@ -228039,20 +237075,22 @@ export const BI = $root.BI = (() => { * @returns {$protobuf.Writer} Writer */ Invoice.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.id != null && Object.hasOwnProperty.call(message, "id")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.id); - if (message.invoiceNumber != null && Object.hasOwnProperty.call(message, "invoiceNumber")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.invoiceNumber); - if (message.invoiceDate != null && Object.hasOwnProperty.call(message, "invoiceDate")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.invoiceDate); - if (message.licenseCount != null && Object.hasOwnProperty.call(message, "licenseCount")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.licenseCount); - if (message.totalCost != null && Object.hasOwnProperty.call(message, "totalCost")) - $root.BI.Invoice.Cost.encode(message.totalCost, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.invoiceType != null && Object.hasOwnProperty.call(message, "invoiceType")) - writer.uint32(/* id 6, wireType 0 =*/48).int32(message.invoiceType); + if (!writer) writer = $Writer.create(); + if (message.id != null && Object.hasOwnProperty.call(message, 'id')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int32(message.id); + if (message.invoiceNumber != null && Object.hasOwnProperty.call(message, 'invoiceNumber')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.invoiceNumber); + if (message.invoiceDate != null && Object.hasOwnProperty.call(message, 'invoiceDate')) + writer.uint32(/* id 3, wireType 0 =*/ 24).int64(message.invoiceDate); + if (message.licenseCount != null && Object.hasOwnProperty.call(message, 'licenseCount')) + writer.uint32(/* id 4, wireType 0 =*/ 32).int32(message.licenseCount); + if (message.totalCost != null && Object.hasOwnProperty.call(message, 'totalCost')) + $root.BI.Invoice.Cost.encode( + message.totalCost, + writer.uint32(/* id 5, wireType 2 =*/ 42).fork() + ).ldelim(); + if (message.invoiceType != null && Object.hasOwnProperty.call(message, 'invoiceType')) + writer.uint32(/* id 6, wireType 0 =*/ 48).int32(message.invoiceType); return writer; }; @@ -228081,39 +237119,39 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ Invoice.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.Invoice(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.BI.Invoice(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.id = reader.int32(); break; } - case 2: { + case 2: { message.invoiceNumber = reader.string(); break; } - case 3: { + case 3: { message.invoiceDate = reader.int64(); break; } - case 4: { + case 4: { message.licenseCount = reader.int32(); break; } - case 5: { + case 5: { message.totalCost = $root.BI.Invoice.Cost.decode(reader, reader.uint32()); break; } - case 6: { + case 6: { message.invoiceType = reader.int32(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -228130,8 +237168,7 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ Invoice.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -228144,37 +237181,39 @@ export const BI = $root.BI = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ Invoice.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) - if (!$util.isInteger(message.id)) - return "id: integer expected"; - if (message.invoiceNumber != null && message.hasOwnProperty("invoiceNumber")) - if (!$util.isString(message.invoiceNumber)) - return "invoiceNumber: string expected"; - if (message.invoiceDate != null && message.hasOwnProperty("invoiceDate")) - if (!$util.isInteger(message.invoiceDate) && !(message.invoiceDate && $util.isInteger(message.invoiceDate.low) && $util.isInteger(message.invoiceDate.high))) - return "invoiceDate: integer|Long expected"; - if (message.licenseCount != null && message.hasOwnProperty("licenseCount")) - if (!$util.isInteger(message.licenseCount)) - return "licenseCount: integer expected"; - if (message.totalCost != null && message.hasOwnProperty("totalCost")) { + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.id != null && message.hasOwnProperty('id')) + if (!$util.isInteger(message.id)) return 'id: integer expected'; + if (message.invoiceNumber != null && message.hasOwnProperty('invoiceNumber')) + if (!$util.isString(message.invoiceNumber)) return 'invoiceNumber: string expected'; + if (message.invoiceDate != null && message.hasOwnProperty('invoiceDate')) + if ( + !$util.isInteger(message.invoiceDate) && + !( + message.invoiceDate && + $util.isInteger(message.invoiceDate.low) && + $util.isInteger(message.invoiceDate.high) + ) + ) + return 'invoiceDate: integer|Long expected'; + if (message.licenseCount != null && message.hasOwnProperty('licenseCount')) + if (!$util.isInteger(message.licenseCount)) return 'licenseCount: integer expected'; + if (message.totalCost != null && message.hasOwnProperty('totalCost')) { let error = $root.BI.Invoice.Cost.verify(message.totalCost); - if (error) - return "totalCost." + error; + if (error) return 'totalCost.' + error; } - if (message.invoiceType != null && message.hasOwnProperty("invoiceType")) + if (message.invoiceType != null && message.hasOwnProperty('invoiceType')) switch (message.invoiceType) { - default: - return "invoiceType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - break; + default: + return 'invoiceType: enum value expected'; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + break; } return null; }; @@ -228188,64 +237227,59 @@ export const BI = $root.BI = (() => { * @returns {BI.Invoice} Invoice */ Invoice.fromObject = function fromObject(object) { - if (object instanceof $root.BI.Invoice) - return object; + if (object instanceof $root.BI.Invoice) return object; let message = new $root.BI.Invoice(); - if (object.id != null) - message.id = object.id | 0; - if (object.invoiceNumber != null) - message.invoiceNumber = String(object.invoiceNumber); + if (object.id != null) message.id = object.id | 0; + if (object.invoiceNumber != null) message.invoiceNumber = String(object.invoiceNumber); if (object.invoiceDate != null) - if ($util.Long) - (message.invoiceDate = $util.Long.fromValue(object.invoiceDate)).unsigned = false; - else if (typeof object.invoiceDate === "string") - message.invoiceDate = parseInt(object.invoiceDate, 10); - else if (typeof object.invoiceDate === "number") - message.invoiceDate = object.invoiceDate; - else if (typeof object.invoiceDate === "object") - message.invoiceDate = new $util.LongBits(object.invoiceDate.low >>> 0, object.invoiceDate.high >>> 0).toNumber(); - if (object.licenseCount != null) - message.licenseCount = object.licenseCount | 0; + if ($util.Long) (message.invoiceDate = $util.Long.fromValue(object.invoiceDate)).unsigned = false; + else if (typeof object.invoiceDate === 'string') message.invoiceDate = parseInt(object.invoiceDate, 10); + else if (typeof object.invoiceDate === 'number') message.invoiceDate = object.invoiceDate; + else if (typeof object.invoiceDate === 'object') + message.invoiceDate = new $util.LongBits( + object.invoiceDate.low >>> 0, + object.invoiceDate.high >>> 0 + ).toNumber(); + if (object.licenseCount != null) message.licenseCount = object.licenseCount | 0; if (object.totalCost != null) { - if (typeof object.totalCost !== "object") - throw TypeError(".BI.Invoice.totalCost: object expected"); + if (typeof object.totalCost !== 'object') throw TypeError('.BI.Invoice.totalCost: object expected'); message.totalCost = $root.BI.Invoice.Cost.fromObject(object.totalCost); } switch (object.invoiceType) { - default: - if (typeof object.invoiceType === "number") { - message.invoiceType = object.invoiceType; - break; - } - break; - case "UNKNOWN": - case 0: - message.invoiceType = 0; - break; - case "NEW": - case 1: - message.invoiceType = 1; - break; - case "RENEWAL": - case 2: - message.invoiceType = 2; - break; - case "UPGRADE": - case 3: - message.invoiceType = 3; - break; - case "RESTORE": - case 4: - message.invoiceType = 4; - break; - case "ASSOCIATION": - case 5: - message.invoiceType = 5; - break; - case "OVERAGE": - case 6: - message.invoiceType = 6; - break; + default: + if (typeof object.invoiceType === 'number') { + message.invoiceType = object.invoiceType; + break; + } + break; + case 'UNKNOWN': + case 0: + message.invoiceType = 0; + break; + case 'NEW': + case 1: + message.invoiceType = 1; + break; + case 'RENEWAL': + case 2: + message.invoiceType = 2; + break; + case 'UPGRADE': + case 3: + message.invoiceType = 3; + break; + case 'RESTORE': + case 4: + message.invoiceType = 4; + break; + case 'ASSOCIATION': + case 5: + message.invoiceType = 5; + break; + case 'OVERAGE': + case 6: + message.invoiceType = 6; + break; } return message; }; @@ -228260,36 +237294,47 @@ export const BI = $root.BI = (() => { * @returns {Object.} Plain object */ Invoice.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { object.id = 0; - object.invoiceNumber = ""; + object.invoiceNumber = ''; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.invoiceDate = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.invoiceDate = options.longs === String ? "0" : 0; + object.invoiceDate = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.invoiceDate = options.longs === String ? '0' : 0; object.licenseCount = 0; object.totalCost = null; - object.invoiceType = options.enums === String ? "UNKNOWN" : 0; + object.invoiceType = options.enums === String ? 'UNKNOWN' : 0; } - if (message.id != null && message.hasOwnProperty("id")) - object.id = message.id; - if (message.invoiceNumber != null && message.hasOwnProperty("invoiceNumber")) + if (message.id != null && message.hasOwnProperty('id')) object.id = message.id; + if (message.invoiceNumber != null && message.hasOwnProperty('invoiceNumber')) object.invoiceNumber = message.invoiceNumber; - if (message.invoiceDate != null && message.hasOwnProperty("invoiceDate")) - if (typeof message.invoiceDate === "number") + if (message.invoiceDate != null && message.hasOwnProperty('invoiceDate')) + if (typeof message.invoiceDate === 'number') object.invoiceDate = options.longs === String ? String(message.invoiceDate) : message.invoiceDate; else - object.invoiceDate = options.longs === String ? $util.Long.prototype.toString.call(message.invoiceDate) : options.longs === Number ? new $util.LongBits(message.invoiceDate.low >>> 0, message.invoiceDate.high >>> 0).toNumber() : message.invoiceDate; - if (message.licenseCount != null && message.hasOwnProperty("licenseCount")) + object.invoiceDate = + options.longs === String + ? $util.Long.prototype.toString.call(message.invoiceDate) + : options.longs === Number + ? new $util.LongBits( + message.invoiceDate.low >>> 0, + message.invoiceDate.high >>> 0 + ).toNumber() + : message.invoiceDate; + if (message.licenseCount != null && message.hasOwnProperty('licenseCount')) object.licenseCount = message.licenseCount; - if (message.totalCost != null && message.hasOwnProperty("totalCost")) + if (message.totalCost != null && message.hasOwnProperty('totalCost')) object.totalCost = $root.BI.Invoice.Cost.toObject(message.totalCost, options); - if (message.invoiceType != null && message.hasOwnProperty("invoiceType")) - object.invoiceType = options.enums === String ? $root.BI.Invoice.Type[message.invoiceType] === undefined ? message.invoiceType : $root.BI.Invoice.Type[message.invoiceType] : message.invoiceType; + if (message.invoiceType != null && message.hasOwnProperty('invoiceType')) + object.invoiceType = + options.enums === String + ? $root.BI.Invoice.Type[message.invoiceType] === undefined + ? message.invoiceType + : $root.BI.Invoice.Type[message.invoiceType] + : message.invoiceType; return object; }; @@ -228314,13 +237359,12 @@ export const BI = $root.BI = (() => { */ Invoice.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/BI.Invoice"; + return typeUrlPrefix + '/BI.Invoice'; }; - Invoice.Cost = (function() { - + Invoice.Cost = (function () { /** * Properties of a Cost. * @memberof BI.Invoice @@ -228340,8 +237384,7 @@ export const BI = $root.BI = (() => { function Cost(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -228382,12 +237425,11 @@ export const BI = $root.BI = (() => { * @returns {$protobuf.Writer} Writer */ Cost.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.amount != null && Object.hasOwnProperty.call(message, "amount")) - writer.uint32(/* id 1, wireType 1 =*/9).double(message.amount); - if (message.currency != null && Object.hasOwnProperty.call(message, "currency")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.currency); + if (!writer) writer = $Writer.create(); + if (message.amount != null && Object.hasOwnProperty.call(message, 'amount')) + writer.uint32(/* id 1, wireType 1 =*/ 9).double(message.amount); + if (message.currency != null && Object.hasOwnProperty.call(message, 'currency')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int32(message.currency); return writer; }; @@ -228416,23 +237458,23 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ Cost.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.Invoice.Cost(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.BI.Invoice.Cost(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.amount = reader.double(); break; } - case 2: { + case 2: { message.currency = reader.int32(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -228449,8 +237491,7 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ Cost.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -228463,23 +237504,21 @@ export const BI = $root.BI = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ Cost.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.amount != null && message.hasOwnProperty("amount")) - if (typeof message.amount !== "number") - return "amount: number expected"; - if (message.currency != null && message.hasOwnProperty("currency")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.amount != null && message.hasOwnProperty('amount')) + if (typeof message.amount !== 'number') return 'amount: number expected'; + if (message.currency != null && message.hasOwnProperty('currency')) switch (message.currency) { - default: - return "currency: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - break; + default: + return 'currency: enum value expected'; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + break; } return null; }; @@ -228493,46 +237532,44 @@ export const BI = $root.BI = (() => { * @returns {BI.Invoice.Cost} Cost */ Cost.fromObject = function fromObject(object) { - if (object instanceof $root.BI.Invoice.Cost) - return object; + if (object instanceof $root.BI.Invoice.Cost) return object; let message = new $root.BI.Invoice.Cost(); - if (object.amount != null) - message.amount = Number(object.amount); + if (object.amount != null) message.amount = Number(object.amount); switch (object.currency) { - default: - if (typeof object.currency === "number") { - message.currency = object.currency; + default: + if (typeof object.currency === 'number') { + message.currency = object.currency; + break; + } + break; + case 'UNKNOWN': + case 0: + message.currency = 0; + break; + case 'USD': + case 1: + message.currency = 1; + break; + case 'GBP': + case 2: + message.currency = 2; + break; + case 'JPY': + case 3: + message.currency = 3; + break; + case 'EUR': + case 4: + message.currency = 4; + break; + case 'AUD': + case 5: + message.currency = 5; + break; + case 'CAD': + case 6: + message.currency = 6; break; - } - break; - case "UNKNOWN": - case 0: - message.currency = 0; - break; - case "USD": - case 1: - message.currency = 1; - break; - case "GBP": - case 2: - message.currency = 2; - break; - case "JPY": - case 3: - message.currency = 3; - break; - case "EUR": - case 4: - message.currency = 4; - break; - case "AUD": - case 5: - message.currency = 5; - break; - case "CAD": - case 6: - message.currency = 6; - break; } return message; }; @@ -228547,17 +237584,21 @@ export const BI = $root.BI = (() => { * @returns {Object.} Plain object */ Cost.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { object.amount = 0; - object.currency = options.enums === String ? "UNKNOWN" : 0; + object.currency = options.enums === String ? 'UNKNOWN' : 0; } - if (message.amount != null && message.hasOwnProperty("amount")) + if (message.amount != null && message.hasOwnProperty('amount')) object.amount = options.json && !isFinite(message.amount) ? String(message.amount) : message.amount; - if (message.currency != null && message.hasOwnProperty("currency")) - object.currency = options.enums === String ? $root.BI.Currency[message.currency] === undefined ? message.currency : $root.BI.Currency[message.currency] : message.currency; + if (message.currency != null && message.hasOwnProperty('currency')) + object.currency = + options.enums === String + ? $root.BI.Currency[message.currency] === undefined + ? message.currency + : $root.BI.Currency[message.currency] + : message.currency; return object; }; @@ -228582,9 +237623,9 @@ export const BI = $root.BI = (() => { */ Cost.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/BI.Invoice.Cost"; + return typeUrlPrefix + '/BI.Invoice.Cost'; }; return Cost; @@ -228602,23 +237643,23 @@ export const BI = $root.BI = (() => { * @property {number} ASSOCIATION=5 ASSOCIATION value * @property {number} OVERAGE=6 OVERAGE value */ - Invoice.Type = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "UNKNOWN"] = 0; - values[valuesById[1] = "NEW"] = 1; - values[valuesById[2] = "RENEWAL"] = 2; - values[valuesById[3] = "UPGRADE"] = 3; - values[valuesById[4] = "RESTORE"] = 4; - values[valuesById[5] = "ASSOCIATION"] = 5; - values[valuesById[6] = "OVERAGE"] = 6; + Invoice.Type = (function () { + const valuesById = {}, + values = Object.create(valuesById); + values[(valuesById[0] = 'UNKNOWN')] = 0; + values[(valuesById[1] = 'NEW')] = 1; + values[(valuesById[2] = 'RENEWAL')] = 2; + values[(valuesById[3] = 'UPGRADE')] = 3; + values[(valuesById[4] = 'RESTORE')] = 4; + values[(valuesById[5] = 'ASSOCIATION')] = 5; + values[(valuesById[6] = 'OVERAGE')] = 6; return values; })(); return Invoice; })(); - BI.VaultInvoicesListRequest = (function() { - + BI.VaultInvoicesListRequest = (function () { /** * Properties of a VaultInvoicesListRequest. * @memberof BI @@ -228636,8 +237677,7 @@ export const BI = $root.BI = (() => { function VaultInvoicesListRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -228662,8 +237702,7 @@ export const BI = $root.BI = (() => { * @returns {$protobuf.Writer} Writer */ VaultInvoicesListRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); return writer; }; @@ -228692,15 +237731,15 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ VaultInvoicesListRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.VaultInvoicesListRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.BI.VaultInvoicesListRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -228717,8 +237756,7 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ VaultInvoicesListRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -228731,8 +237769,7 @@ export const BI = $root.BI = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ VaultInvoicesListRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; return null; }; @@ -228745,8 +237782,7 @@ export const BI = $root.BI = (() => { * @returns {BI.VaultInvoicesListRequest} VaultInvoicesListRequest */ VaultInvoicesListRequest.fromObject = function fromObject(object) { - if (object instanceof $root.BI.VaultInvoicesListRequest) - return object; + if (object instanceof $root.BI.VaultInvoicesListRequest) return object; return new $root.BI.VaultInvoicesListRequest(); }; @@ -228784,16 +237820,15 @@ export const BI = $root.BI = (() => { */ VaultInvoicesListRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/BI.VaultInvoicesListRequest"; + return typeUrlPrefix + '/BI.VaultInvoicesListRequest'; }; return VaultInvoicesListRequest; })(); - BI.VaultInvoicesListResponse = (function() { - + BI.VaultInvoicesListResponse = (function () { /** * Properties of a VaultInvoicesListResponse. * @memberof BI @@ -228813,8 +237848,7 @@ export const BI = $root.BI = (() => { this.invoices = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -228847,11 +237881,13 @@ export const BI = $root.BI = (() => { * @returns {$protobuf.Writer} Writer */ VaultInvoicesListResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.invoices != null && message.invoices.length) for (let i = 0; i < message.invoices.length; ++i) - $root.BI.VaultInvoice.encode(message.invoices[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.BI.VaultInvoice.encode( + message.invoices[i], + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); return writer; }; @@ -228880,21 +237916,20 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ VaultInvoicesListResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.VaultInvoicesListResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.BI.VaultInvoicesListResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (!(message.invoices && message.invoices.length)) - message.invoices = []; + case 1: { + if (!(message.invoices && message.invoices.length)) message.invoices = []; message.invoices.push($root.BI.VaultInvoice.decode(reader, reader.uint32())); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -228911,8 +237946,7 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ VaultInvoicesListResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -228925,15 +237959,12 @@ export const BI = $root.BI = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ VaultInvoicesListResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.invoices != null && message.hasOwnProperty("invoices")) { - if (!Array.isArray(message.invoices)) - return "invoices: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.invoices != null && message.hasOwnProperty('invoices')) { + if (!Array.isArray(message.invoices)) return 'invoices: array expected'; for (let i = 0; i < message.invoices.length; ++i) { let error = $root.BI.VaultInvoice.verify(message.invoices[i]); - if (error) - return "invoices." + error; + if (error) return 'invoices.' + error; } } return null; @@ -228948,16 +237979,15 @@ export const BI = $root.BI = (() => { * @returns {BI.VaultInvoicesListResponse} VaultInvoicesListResponse */ VaultInvoicesListResponse.fromObject = function fromObject(object) { - if (object instanceof $root.BI.VaultInvoicesListResponse) - return object; + if (object instanceof $root.BI.VaultInvoicesListResponse) return object; let message = new $root.BI.VaultInvoicesListResponse(); if (object.invoices) { if (!Array.isArray(object.invoices)) - throw TypeError(".BI.VaultInvoicesListResponse.invoices: array expected"); + throw TypeError('.BI.VaultInvoicesListResponse.invoices: array expected'); message.invoices = []; for (let i = 0; i < object.invoices.length; ++i) { - if (typeof object.invoices[i] !== "object") - throw TypeError(".BI.VaultInvoicesListResponse.invoices: object expected"); + if (typeof object.invoices[i] !== 'object') + throw TypeError('.BI.VaultInvoicesListResponse.invoices: object expected'); message.invoices[i] = $root.BI.VaultInvoice.fromObject(object.invoices[i]); } } @@ -228974,11 +238004,9 @@ export const BI = $root.BI = (() => { * @returns {Object.} Plain object */ VaultInvoicesListResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.invoices = []; + if (options.arrays || options.defaults) object.invoices = []; if (message.invoices && message.invoices.length) { object.invoices = []; for (let j = 0; j < message.invoices.length; ++j) @@ -229008,16 +238036,15 @@ export const BI = $root.BI = (() => { */ VaultInvoicesListResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/BI.VaultInvoicesListResponse"; + return typeUrlPrefix + '/BI.VaultInvoicesListResponse'; }; return VaultInvoicesListResponse; })(); - BI.VaultInvoice = (function() { - + BI.VaultInvoice = (function () { /** * Properties of a VaultInvoice. * @memberof BI @@ -229040,8 +238067,7 @@ export const BI = $root.BI = (() => { function VaultInvoice(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -229058,7 +238084,7 @@ export const BI = $root.BI = (() => { * @memberof BI.VaultInvoice * @instance */ - VaultInvoice.prototype.invoiceNumber = ""; + VaultInvoice.prototype.invoiceNumber = ''; /** * VaultInvoice dateCreated. @@ -229066,7 +238092,7 @@ export const BI = $root.BI = (() => { * @memberof BI.VaultInvoice * @instance */ - VaultInvoice.prototype.dateCreated = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + VaultInvoice.prototype.dateCreated = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * VaultInvoice total. @@ -229106,18 +238132,17 @@ export const BI = $root.BI = (() => { * @returns {$protobuf.Writer} Writer */ VaultInvoice.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.id != null && Object.hasOwnProperty.call(message, "id")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.id); - if (message.invoiceNumber != null && Object.hasOwnProperty.call(message, "invoiceNumber")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.invoiceNumber); - if (message.dateCreated != null && Object.hasOwnProperty.call(message, "dateCreated")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.dateCreated); - if (message.total != null && Object.hasOwnProperty.call(message, "total")) - $root.BI.Invoice.Cost.encode(message.total, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.purchaseType != null && Object.hasOwnProperty.call(message, "purchaseType")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.purchaseType); + if (!writer) writer = $Writer.create(); + if (message.id != null && Object.hasOwnProperty.call(message, 'id')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int32(message.id); + if (message.invoiceNumber != null && Object.hasOwnProperty.call(message, 'invoiceNumber')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.invoiceNumber); + if (message.dateCreated != null && Object.hasOwnProperty.call(message, 'dateCreated')) + writer.uint32(/* id 3, wireType 0 =*/ 24).int64(message.dateCreated); + if (message.total != null && Object.hasOwnProperty.call(message, 'total')) + $root.BI.Invoice.Cost.encode(message.total, writer.uint32(/* id 4, wireType 2 =*/ 34).fork()).ldelim(); + if (message.purchaseType != null && Object.hasOwnProperty.call(message, 'purchaseType')) + writer.uint32(/* id 5, wireType 0 =*/ 40).int32(message.purchaseType); return writer; }; @@ -229146,35 +238171,35 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ VaultInvoice.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.VaultInvoice(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.BI.VaultInvoice(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.id = reader.int32(); break; } - case 2: { + case 2: { message.invoiceNumber = reader.string(); break; } - case 3: { + case 3: { message.dateCreated = reader.int64(); break; } - case 4: { + case 4: { message.total = $root.BI.Invoice.Cost.decode(reader, reader.uint32()); break; } - case 5: { + case 5: { message.purchaseType = reader.int32(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -229191,8 +238216,7 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ VaultInvoice.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -229205,34 +238229,37 @@ export const BI = $root.BI = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ VaultInvoice.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) - if (!$util.isInteger(message.id)) - return "id: integer expected"; - if (message.invoiceNumber != null && message.hasOwnProperty("invoiceNumber")) - if (!$util.isString(message.invoiceNumber)) - return "invoiceNumber: string expected"; - if (message.dateCreated != null && message.hasOwnProperty("dateCreated")) - if (!$util.isInteger(message.dateCreated) && !(message.dateCreated && $util.isInteger(message.dateCreated.low) && $util.isInteger(message.dateCreated.high))) - return "dateCreated: integer|Long expected"; - if (message.total != null && message.hasOwnProperty("total")) { + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.id != null && message.hasOwnProperty('id')) + if (!$util.isInteger(message.id)) return 'id: integer expected'; + if (message.invoiceNumber != null && message.hasOwnProperty('invoiceNumber')) + if (!$util.isString(message.invoiceNumber)) return 'invoiceNumber: string expected'; + if (message.dateCreated != null && message.hasOwnProperty('dateCreated')) + if ( + !$util.isInteger(message.dateCreated) && + !( + message.dateCreated && + $util.isInteger(message.dateCreated.low) && + $util.isInteger(message.dateCreated.high) + ) + ) + return 'dateCreated: integer|Long expected'; + if (message.total != null && message.hasOwnProperty('total')) { let error = $root.BI.Invoice.Cost.verify(message.total); - if (error) - return "total." + error; + if (error) return 'total.' + error; } - if (message.purchaseType != null && message.hasOwnProperty("purchaseType")) + if (message.purchaseType != null && message.hasOwnProperty('purchaseType')) switch (message.purchaseType) { - default: - return "purchaseType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - break; + default: + return 'purchaseType: enum value expected'; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + break; } return null; }; @@ -229246,62 +238273,58 @@ export const BI = $root.BI = (() => { * @returns {BI.VaultInvoice} VaultInvoice */ VaultInvoice.fromObject = function fromObject(object) { - if (object instanceof $root.BI.VaultInvoice) - return object; + if (object instanceof $root.BI.VaultInvoice) return object; let message = new $root.BI.VaultInvoice(); - if (object.id != null) - message.id = object.id | 0; - if (object.invoiceNumber != null) - message.invoiceNumber = String(object.invoiceNumber); + if (object.id != null) message.id = object.id | 0; + if (object.invoiceNumber != null) message.invoiceNumber = String(object.invoiceNumber); if (object.dateCreated != null) - if ($util.Long) - (message.dateCreated = $util.Long.fromValue(object.dateCreated)).unsigned = false; - else if (typeof object.dateCreated === "string") - message.dateCreated = parseInt(object.dateCreated, 10); - else if (typeof object.dateCreated === "number") - message.dateCreated = object.dateCreated; - else if (typeof object.dateCreated === "object") - message.dateCreated = new $util.LongBits(object.dateCreated.low >>> 0, object.dateCreated.high >>> 0).toNumber(); + if ($util.Long) (message.dateCreated = $util.Long.fromValue(object.dateCreated)).unsigned = false; + else if (typeof object.dateCreated === 'string') message.dateCreated = parseInt(object.dateCreated, 10); + else if (typeof object.dateCreated === 'number') message.dateCreated = object.dateCreated; + else if (typeof object.dateCreated === 'object') + message.dateCreated = new $util.LongBits( + object.dateCreated.low >>> 0, + object.dateCreated.high >>> 0 + ).toNumber(); if (object.total != null) { - if (typeof object.total !== "object") - throw TypeError(".BI.VaultInvoice.total: object expected"); + if (typeof object.total !== 'object') throw TypeError('.BI.VaultInvoice.total: object expected'); message.total = $root.BI.Invoice.Cost.fromObject(object.total); } switch (object.purchaseType) { - default: - if (typeof object.purchaseType === "number") { - message.purchaseType = object.purchaseType; - break; - } - break; - case "UNKNOWN": - case 0: - message.purchaseType = 0; - break; - case "NEW": - case 1: - message.purchaseType = 1; - break; - case "RENEWAL": - case 2: - message.purchaseType = 2; - break; - case "UPGRADE": - case 3: - message.purchaseType = 3; - break; - case "RESTORE": - case 4: - message.purchaseType = 4; - break; - case "ASSOCIATION": - case 5: - message.purchaseType = 5; - break; - case "OVERAGE": - case 6: - message.purchaseType = 6; - break; + default: + if (typeof object.purchaseType === 'number') { + message.purchaseType = object.purchaseType; + break; + } + break; + case 'UNKNOWN': + case 0: + message.purchaseType = 0; + break; + case 'NEW': + case 1: + message.purchaseType = 1; + break; + case 'RENEWAL': + case 2: + message.purchaseType = 2; + break; + case 'UPGRADE': + case 3: + message.purchaseType = 3; + break; + case 'RESTORE': + case 4: + message.purchaseType = 4; + break; + case 'ASSOCIATION': + case 5: + message.purchaseType = 5; + break; + case 'OVERAGE': + case 6: + message.purchaseType = 6; + break; } return message; }; @@ -229316,33 +238339,44 @@ export const BI = $root.BI = (() => { * @returns {Object.} Plain object */ VaultInvoice.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { object.id = 0; - object.invoiceNumber = ""; + object.invoiceNumber = ''; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.dateCreated = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.dateCreated = options.longs === String ? "0" : 0; + object.dateCreated = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.dateCreated = options.longs === String ? '0' : 0; object.total = null; - object.purchaseType = options.enums === String ? "UNKNOWN" : 0; + object.purchaseType = options.enums === String ? 'UNKNOWN' : 0; } - if (message.id != null && message.hasOwnProperty("id")) - object.id = message.id; - if (message.invoiceNumber != null && message.hasOwnProperty("invoiceNumber")) + if (message.id != null && message.hasOwnProperty('id')) object.id = message.id; + if (message.invoiceNumber != null && message.hasOwnProperty('invoiceNumber')) object.invoiceNumber = message.invoiceNumber; - if (message.dateCreated != null && message.hasOwnProperty("dateCreated")) - if (typeof message.dateCreated === "number") + if (message.dateCreated != null && message.hasOwnProperty('dateCreated')) + if (typeof message.dateCreated === 'number') object.dateCreated = options.longs === String ? String(message.dateCreated) : message.dateCreated; else - object.dateCreated = options.longs === String ? $util.Long.prototype.toString.call(message.dateCreated) : options.longs === Number ? new $util.LongBits(message.dateCreated.low >>> 0, message.dateCreated.high >>> 0).toNumber() : message.dateCreated; - if (message.total != null && message.hasOwnProperty("total")) + object.dateCreated = + options.longs === String + ? $util.Long.prototype.toString.call(message.dateCreated) + : options.longs === Number + ? new $util.LongBits( + message.dateCreated.low >>> 0, + message.dateCreated.high >>> 0 + ).toNumber() + : message.dateCreated; + if (message.total != null && message.hasOwnProperty('total')) object.total = $root.BI.Invoice.Cost.toObject(message.total, options); - if (message.purchaseType != null && message.hasOwnProperty("purchaseType")) - object.purchaseType = options.enums === String ? $root.BI.Invoice.Type[message.purchaseType] === undefined ? message.purchaseType : $root.BI.Invoice.Type[message.purchaseType] : message.purchaseType; + if (message.purchaseType != null && message.hasOwnProperty('purchaseType')) + object.purchaseType = + options.enums === String + ? $root.BI.Invoice.Type[message.purchaseType] === undefined + ? message.purchaseType + : $root.BI.Invoice.Type[message.purchaseType] + : message.purchaseType; return object; }; @@ -229367,16 +238401,15 @@ export const BI = $root.BI = (() => { */ VaultInvoice.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/BI.VaultInvoice"; + return typeUrlPrefix + '/BI.VaultInvoice'; }; return VaultInvoice; })(); - BI.InvoiceDownloadRequest = (function() { - + BI.InvoiceDownloadRequest = (function () { /** * Properties of an InvoiceDownloadRequest. * @memberof BI @@ -229395,8 +238428,7 @@ export const BI = $root.BI = (() => { function InvoiceDownloadRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -229405,7 +238437,7 @@ export const BI = $root.BI = (() => { * @memberof BI.InvoiceDownloadRequest * @instance */ - InvoiceDownloadRequest.prototype.invoiceNumber = ""; + InvoiceDownloadRequest.prototype.invoiceNumber = ''; /** * Creates a new InvoiceDownloadRequest instance using the specified properties. @@ -229429,10 +238461,9 @@ export const BI = $root.BI = (() => { * @returns {$protobuf.Writer} Writer */ InvoiceDownloadRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.invoiceNumber != null && Object.hasOwnProperty.call(message, "invoiceNumber")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.invoiceNumber); + if (!writer) writer = $Writer.create(); + if (message.invoiceNumber != null && Object.hasOwnProperty.call(message, 'invoiceNumber')) + writer.uint32(/* id 1, wireType 2 =*/ 10).string(message.invoiceNumber); return writer; }; @@ -229461,19 +238492,19 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ InvoiceDownloadRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.InvoiceDownloadRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.BI.InvoiceDownloadRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.invoiceNumber = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -229490,8 +238521,7 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ InvoiceDownloadRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -229504,11 +238534,9 @@ export const BI = $root.BI = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ InvoiceDownloadRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.invoiceNumber != null && message.hasOwnProperty("invoiceNumber")) - if (!$util.isString(message.invoiceNumber)) - return "invoiceNumber: string expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.invoiceNumber != null && message.hasOwnProperty('invoiceNumber')) + if (!$util.isString(message.invoiceNumber)) return 'invoiceNumber: string expected'; return null; }; @@ -229521,11 +238549,9 @@ export const BI = $root.BI = (() => { * @returns {BI.InvoiceDownloadRequest} InvoiceDownloadRequest */ InvoiceDownloadRequest.fromObject = function fromObject(object) { - if (object instanceof $root.BI.InvoiceDownloadRequest) - return object; + if (object instanceof $root.BI.InvoiceDownloadRequest) return object; let message = new $root.BI.InvoiceDownloadRequest(); - if (object.invoiceNumber != null) - message.invoiceNumber = String(object.invoiceNumber); + if (object.invoiceNumber != null) message.invoiceNumber = String(object.invoiceNumber); return message; }; @@ -229539,12 +238565,10 @@ export const BI = $root.BI = (() => { * @returns {Object.} Plain object */ InvoiceDownloadRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.defaults) - object.invoiceNumber = ""; - if (message.invoiceNumber != null && message.hasOwnProperty("invoiceNumber")) + if (options.defaults) object.invoiceNumber = ''; + if (message.invoiceNumber != null && message.hasOwnProperty('invoiceNumber')) object.invoiceNumber = message.invoiceNumber; return object; }; @@ -229570,16 +238594,15 @@ export const BI = $root.BI = (() => { */ InvoiceDownloadRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/BI.InvoiceDownloadRequest"; + return typeUrlPrefix + '/BI.InvoiceDownloadRequest'; }; return InvoiceDownloadRequest; })(); - BI.InvoiceDownloadResponse = (function() { - + BI.InvoiceDownloadResponse = (function () { /** * Properties of an InvoiceDownloadResponse. * @memberof BI @@ -229599,8 +238622,7 @@ export const BI = $root.BI = (() => { function InvoiceDownloadResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -229609,7 +238631,7 @@ export const BI = $root.BI = (() => { * @memberof BI.InvoiceDownloadResponse * @instance */ - InvoiceDownloadResponse.prototype.link = ""; + InvoiceDownloadResponse.prototype.link = ''; /** * InvoiceDownloadResponse fileName. @@ -229617,7 +238639,7 @@ export const BI = $root.BI = (() => { * @memberof BI.InvoiceDownloadResponse * @instance */ - InvoiceDownloadResponse.prototype.fileName = ""; + InvoiceDownloadResponse.prototype.fileName = ''; /** * Creates a new InvoiceDownloadResponse instance using the specified properties. @@ -229641,12 +238663,11 @@ export const BI = $root.BI = (() => { * @returns {$protobuf.Writer} Writer */ InvoiceDownloadResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.link != null && Object.hasOwnProperty.call(message, "link")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.link); - if (message.fileName != null && Object.hasOwnProperty.call(message, "fileName")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.fileName); + if (!writer) writer = $Writer.create(); + if (message.link != null && Object.hasOwnProperty.call(message, 'link')) + writer.uint32(/* id 1, wireType 2 =*/ 10).string(message.link); + if (message.fileName != null && Object.hasOwnProperty.call(message, 'fileName')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.fileName); return writer; }; @@ -229675,23 +238696,23 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ InvoiceDownloadResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.InvoiceDownloadResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.BI.InvoiceDownloadResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.link = reader.string(); break; } - case 2: { + case 2: { message.fileName = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -229708,8 +238729,7 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ InvoiceDownloadResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -229722,14 +238742,11 @@ export const BI = $root.BI = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ InvoiceDownloadResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.link != null && message.hasOwnProperty("link")) - if (!$util.isString(message.link)) - return "link: string expected"; - if (message.fileName != null && message.hasOwnProperty("fileName")) - if (!$util.isString(message.fileName)) - return "fileName: string expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.link != null && message.hasOwnProperty('link')) + if (!$util.isString(message.link)) return 'link: string expected'; + if (message.fileName != null && message.hasOwnProperty('fileName')) + if (!$util.isString(message.fileName)) return 'fileName: string expected'; return null; }; @@ -229742,13 +238759,10 @@ export const BI = $root.BI = (() => { * @returns {BI.InvoiceDownloadResponse} InvoiceDownloadResponse */ InvoiceDownloadResponse.fromObject = function fromObject(object) { - if (object instanceof $root.BI.InvoiceDownloadResponse) - return object; + if (object instanceof $root.BI.InvoiceDownloadResponse) return object; let message = new $root.BI.InvoiceDownloadResponse(); - if (object.link != null) - message.link = String(object.link); - if (object.fileName != null) - message.fileName = String(object.fileName); + if (object.link != null) message.link = String(object.link); + if (object.fileName != null) message.fileName = String(object.fileName); return message; }; @@ -229762,17 +238776,14 @@ export const BI = $root.BI = (() => { * @returns {Object.} Plain object */ InvoiceDownloadResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - object.link = ""; - object.fileName = ""; + object.link = ''; + object.fileName = ''; } - if (message.link != null && message.hasOwnProperty("link")) - object.link = message.link; - if (message.fileName != null && message.hasOwnProperty("fileName")) - object.fileName = message.fileName; + if (message.link != null && message.hasOwnProperty('link')) object.link = message.link; + if (message.fileName != null && message.hasOwnProperty('fileName')) object.fileName = message.fileName; return object; }; @@ -229797,16 +238808,15 @@ export const BI = $root.BI = (() => { */ InvoiceDownloadResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/BI.InvoiceDownloadResponse"; + return typeUrlPrefix + '/BI.InvoiceDownloadResponse'; }; return InvoiceDownloadResponse; })(); - BI.VaultInvoiceDownloadLinkRequest = (function() { - + BI.VaultInvoiceDownloadLinkRequest = (function () { /** * Properties of a VaultInvoiceDownloadLinkRequest. * @memberof BI @@ -229825,8 +238835,7 @@ export const BI = $root.BI = (() => { function VaultInvoiceDownloadLinkRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -229835,7 +238844,7 @@ export const BI = $root.BI = (() => { * @memberof BI.VaultInvoiceDownloadLinkRequest * @instance */ - VaultInvoiceDownloadLinkRequest.prototype.invoiceNumber = ""; + VaultInvoiceDownloadLinkRequest.prototype.invoiceNumber = ''; /** * Creates a new VaultInvoiceDownloadLinkRequest instance using the specified properties. @@ -229859,10 +238868,9 @@ export const BI = $root.BI = (() => { * @returns {$protobuf.Writer} Writer */ VaultInvoiceDownloadLinkRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.invoiceNumber != null && Object.hasOwnProperty.call(message, "invoiceNumber")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.invoiceNumber); + if (!writer) writer = $Writer.create(); + if (message.invoiceNumber != null && Object.hasOwnProperty.call(message, 'invoiceNumber')) + writer.uint32(/* id 1, wireType 2 =*/ 10).string(message.invoiceNumber); return writer; }; @@ -229891,19 +238899,19 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ VaultInvoiceDownloadLinkRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.VaultInvoiceDownloadLinkRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.BI.VaultInvoiceDownloadLinkRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.invoiceNumber = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -229920,8 +238928,7 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ VaultInvoiceDownloadLinkRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -229934,11 +238941,9 @@ export const BI = $root.BI = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ VaultInvoiceDownloadLinkRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.invoiceNumber != null && message.hasOwnProperty("invoiceNumber")) - if (!$util.isString(message.invoiceNumber)) - return "invoiceNumber: string expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.invoiceNumber != null && message.hasOwnProperty('invoiceNumber')) + if (!$util.isString(message.invoiceNumber)) return 'invoiceNumber: string expected'; return null; }; @@ -229951,11 +238956,9 @@ export const BI = $root.BI = (() => { * @returns {BI.VaultInvoiceDownloadLinkRequest} VaultInvoiceDownloadLinkRequest */ VaultInvoiceDownloadLinkRequest.fromObject = function fromObject(object) { - if (object instanceof $root.BI.VaultInvoiceDownloadLinkRequest) - return object; + if (object instanceof $root.BI.VaultInvoiceDownloadLinkRequest) return object; let message = new $root.BI.VaultInvoiceDownloadLinkRequest(); - if (object.invoiceNumber != null) - message.invoiceNumber = String(object.invoiceNumber); + if (object.invoiceNumber != null) message.invoiceNumber = String(object.invoiceNumber); return message; }; @@ -229969,12 +238972,10 @@ export const BI = $root.BI = (() => { * @returns {Object.} Plain object */ VaultInvoiceDownloadLinkRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.defaults) - object.invoiceNumber = ""; - if (message.invoiceNumber != null && message.hasOwnProperty("invoiceNumber")) + if (options.defaults) object.invoiceNumber = ''; + if (message.invoiceNumber != null && message.hasOwnProperty('invoiceNumber')) object.invoiceNumber = message.invoiceNumber; return object; }; @@ -230000,16 +239001,15 @@ export const BI = $root.BI = (() => { */ VaultInvoiceDownloadLinkRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/BI.VaultInvoiceDownloadLinkRequest"; + return typeUrlPrefix + '/BI.VaultInvoiceDownloadLinkRequest'; }; return VaultInvoiceDownloadLinkRequest; })(); - BI.VaultInvoiceDownloadLinkResponse = (function() { - + BI.VaultInvoiceDownloadLinkResponse = (function () { /** * Properties of a VaultInvoiceDownloadLinkResponse. * @memberof BI @@ -230029,8 +239029,7 @@ export const BI = $root.BI = (() => { function VaultInvoiceDownloadLinkResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -230039,7 +239038,7 @@ export const BI = $root.BI = (() => { * @memberof BI.VaultInvoiceDownloadLinkResponse * @instance */ - VaultInvoiceDownloadLinkResponse.prototype.link = ""; + VaultInvoiceDownloadLinkResponse.prototype.link = ''; /** * VaultInvoiceDownloadLinkResponse fileName. @@ -230047,7 +239046,7 @@ export const BI = $root.BI = (() => { * @memberof BI.VaultInvoiceDownloadLinkResponse * @instance */ - VaultInvoiceDownloadLinkResponse.prototype.fileName = ""; + VaultInvoiceDownloadLinkResponse.prototype.fileName = ''; /** * Creates a new VaultInvoiceDownloadLinkResponse instance using the specified properties. @@ -230071,12 +239070,11 @@ export const BI = $root.BI = (() => { * @returns {$protobuf.Writer} Writer */ VaultInvoiceDownloadLinkResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.link != null && Object.hasOwnProperty.call(message, "link")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.link); - if (message.fileName != null && Object.hasOwnProperty.call(message, "fileName")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.fileName); + if (!writer) writer = $Writer.create(); + if (message.link != null && Object.hasOwnProperty.call(message, 'link')) + writer.uint32(/* id 1, wireType 2 =*/ 10).string(message.link); + if (message.fileName != null && Object.hasOwnProperty.call(message, 'fileName')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.fileName); return writer; }; @@ -230105,23 +239103,23 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ VaultInvoiceDownloadLinkResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.VaultInvoiceDownloadLinkResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.BI.VaultInvoiceDownloadLinkResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.link = reader.string(); break; } - case 2: { + case 2: { message.fileName = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -230138,8 +239136,7 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ VaultInvoiceDownloadLinkResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -230152,14 +239149,11 @@ export const BI = $root.BI = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ VaultInvoiceDownloadLinkResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.link != null && message.hasOwnProperty("link")) - if (!$util.isString(message.link)) - return "link: string expected"; - if (message.fileName != null && message.hasOwnProperty("fileName")) - if (!$util.isString(message.fileName)) - return "fileName: string expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.link != null && message.hasOwnProperty('link')) + if (!$util.isString(message.link)) return 'link: string expected'; + if (message.fileName != null && message.hasOwnProperty('fileName')) + if (!$util.isString(message.fileName)) return 'fileName: string expected'; return null; }; @@ -230172,13 +239166,10 @@ export const BI = $root.BI = (() => { * @returns {BI.VaultInvoiceDownloadLinkResponse} VaultInvoiceDownloadLinkResponse */ VaultInvoiceDownloadLinkResponse.fromObject = function fromObject(object) { - if (object instanceof $root.BI.VaultInvoiceDownloadLinkResponse) - return object; + if (object instanceof $root.BI.VaultInvoiceDownloadLinkResponse) return object; let message = new $root.BI.VaultInvoiceDownloadLinkResponse(); - if (object.link != null) - message.link = String(object.link); - if (object.fileName != null) - message.fileName = String(object.fileName); + if (object.link != null) message.link = String(object.link); + if (object.fileName != null) message.fileName = String(object.fileName); return message; }; @@ -230192,17 +239183,14 @@ export const BI = $root.BI = (() => { * @returns {Object.} Plain object */ VaultInvoiceDownloadLinkResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - object.link = ""; - object.fileName = ""; + object.link = ''; + object.fileName = ''; } - if (message.link != null && message.hasOwnProperty("link")) - object.link = message.link; - if (message.fileName != null && message.hasOwnProperty("fileName")) - object.fileName = message.fileName; + if (message.link != null && message.hasOwnProperty('link')) object.link = message.link; + if (message.fileName != null && message.hasOwnProperty('fileName')) object.fileName = message.fileName; return object; }; @@ -230227,16 +239215,15 @@ export const BI = $root.BI = (() => { */ VaultInvoiceDownloadLinkResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/BI.VaultInvoiceDownloadLinkResponse"; + return typeUrlPrefix + '/BI.VaultInvoiceDownloadLinkResponse'; }; return VaultInvoiceDownloadLinkResponse; })(); - BI.ReportingDailySnapshotRequest = (function() { - + BI.ReportingDailySnapshotRequest = (function () { /** * Properties of a ReportingDailySnapshotRequest. * @memberof BI @@ -230256,8 +239243,7 @@ export const BI = $root.BI = (() => { function ReportingDailySnapshotRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -230298,12 +239284,11 @@ export const BI = $root.BI = (() => { * @returns {$protobuf.Writer} Writer */ ReportingDailySnapshotRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.month != null && Object.hasOwnProperty.call(message, "month")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.month); - if (message.year != null && Object.hasOwnProperty.call(message, "year")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.year); + if (!writer) writer = $Writer.create(); + if (message.month != null && Object.hasOwnProperty.call(message, 'month')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int32(message.month); + if (message.year != null && Object.hasOwnProperty.call(message, 'year')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int32(message.year); return writer; }; @@ -230332,23 +239317,23 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ReportingDailySnapshotRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.ReportingDailySnapshotRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.BI.ReportingDailySnapshotRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.month = reader.int32(); break; } - case 2: { + case 2: { message.year = reader.int32(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -230365,8 +239350,7 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ReportingDailySnapshotRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -230379,14 +239363,11 @@ export const BI = $root.BI = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ ReportingDailySnapshotRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.month != null && message.hasOwnProperty("month")) - if (!$util.isInteger(message.month)) - return "month: integer expected"; - if (message.year != null && message.hasOwnProperty("year")) - if (!$util.isInteger(message.year)) - return "year: integer expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.month != null && message.hasOwnProperty('month')) + if (!$util.isInteger(message.month)) return 'month: integer expected'; + if (message.year != null && message.hasOwnProperty('year')) + if (!$util.isInteger(message.year)) return 'year: integer expected'; return null; }; @@ -230399,13 +239380,10 @@ export const BI = $root.BI = (() => { * @returns {BI.ReportingDailySnapshotRequest} ReportingDailySnapshotRequest */ ReportingDailySnapshotRequest.fromObject = function fromObject(object) { - if (object instanceof $root.BI.ReportingDailySnapshotRequest) - return object; + if (object instanceof $root.BI.ReportingDailySnapshotRequest) return object; let message = new $root.BI.ReportingDailySnapshotRequest(); - if (object.month != null) - message.month = object.month | 0; - if (object.year != null) - message.year = object.year | 0; + if (object.month != null) message.month = object.month | 0; + if (object.year != null) message.year = object.year | 0; return message; }; @@ -230419,17 +239397,14 @@ export const BI = $root.BI = (() => { * @returns {Object.} Plain object */ ReportingDailySnapshotRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { object.month = 0; object.year = 0; } - if (message.month != null && message.hasOwnProperty("month")) - object.month = message.month; - if (message.year != null && message.hasOwnProperty("year")) - object.year = message.year; + if (message.month != null && message.hasOwnProperty('month')) object.month = message.month; + if (message.year != null && message.hasOwnProperty('year')) object.year = message.year; return object; }; @@ -230454,16 +239429,15 @@ export const BI = $root.BI = (() => { */ ReportingDailySnapshotRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/BI.ReportingDailySnapshotRequest"; + return typeUrlPrefix + '/BI.ReportingDailySnapshotRequest'; }; return ReportingDailySnapshotRequest; })(); - BI.ReportingDailySnapshotResponse = (function() { - + BI.ReportingDailySnapshotResponse = (function () { /** * Properties of a ReportingDailySnapshotResponse. * @memberof BI @@ -230485,8 +239459,7 @@ export const BI = $root.BI = (() => { this.mcEnterprises = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -230527,14 +239500,19 @@ export const BI = $root.BI = (() => { * @returns {$protobuf.Writer} Writer */ ReportingDailySnapshotResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.records != null && message.records.length) for (let i = 0; i < message.records.length; ++i) - $root.BI.SnapshotRecord.encode(message.records[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.BI.SnapshotRecord.encode( + message.records[i], + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); if (message.mcEnterprises != null && message.mcEnterprises.length) for (let i = 0; i < message.mcEnterprises.length; ++i) - $root.BI.SnapshotMcEnterprise.encode(message.mcEnterprises[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + $root.BI.SnapshotMcEnterprise.encode( + message.mcEnterprises[i], + writer.uint32(/* id 2, wireType 2 =*/ 18).fork() + ).ldelim(); return writer; }; @@ -230563,27 +239541,25 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ReportingDailySnapshotResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.ReportingDailySnapshotResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.BI.ReportingDailySnapshotResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (!(message.records && message.records.length)) - message.records = []; + case 1: { + if (!(message.records && message.records.length)) message.records = []; message.records.push($root.BI.SnapshotRecord.decode(reader, reader.uint32())); break; } - case 2: { - if (!(message.mcEnterprises && message.mcEnterprises.length)) - message.mcEnterprises = []; + case 2: { + if (!(message.mcEnterprises && message.mcEnterprises.length)) message.mcEnterprises = []; message.mcEnterprises.push($root.BI.SnapshotMcEnterprise.decode(reader, reader.uint32())); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -230600,8 +239576,7 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ReportingDailySnapshotResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -230614,24 +239589,19 @@ export const BI = $root.BI = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ ReportingDailySnapshotResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.records != null && message.hasOwnProperty("records")) { - if (!Array.isArray(message.records)) - return "records: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.records != null && message.hasOwnProperty('records')) { + if (!Array.isArray(message.records)) return 'records: array expected'; for (let i = 0; i < message.records.length; ++i) { let error = $root.BI.SnapshotRecord.verify(message.records[i]); - if (error) - return "records." + error; + if (error) return 'records.' + error; } } - if (message.mcEnterprises != null && message.hasOwnProperty("mcEnterprises")) { - if (!Array.isArray(message.mcEnterprises)) - return "mcEnterprises: array expected"; + if (message.mcEnterprises != null && message.hasOwnProperty('mcEnterprises')) { + if (!Array.isArray(message.mcEnterprises)) return 'mcEnterprises: array expected'; for (let i = 0; i < message.mcEnterprises.length; ++i) { let error = $root.BI.SnapshotMcEnterprise.verify(message.mcEnterprises[i]); - if (error) - return "mcEnterprises." + error; + if (error) return 'mcEnterprises.' + error; } } return null; @@ -230646,26 +239616,25 @@ export const BI = $root.BI = (() => { * @returns {BI.ReportingDailySnapshotResponse} ReportingDailySnapshotResponse */ ReportingDailySnapshotResponse.fromObject = function fromObject(object) { - if (object instanceof $root.BI.ReportingDailySnapshotResponse) - return object; + if (object instanceof $root.BI.ReportingDailySnapshotResponse) return object; let message = new $root.BI.ReportingDailySnapshotResponse(); if (object.records) { if (!Array.isArray(object.records)) - throw TypeError(".BI.ReportingDailySnapshotResponse.records: array expected"); + throw TypeError('.BI.ReportingDailySnapshotResponse.records: array expected'); message.records = []; for (let i = 0; i < object.records.length; ++i) { - if (typeof object.records[i] !== "object") - throw TypeError(".BI.ReportingDailySnapshotResponse.records: object expected"); + if (typeof object.records[i] !== 'object') + throw TypeError('.BI.ReportingDailySnapshotResponse.records: object expected'); message.records[i] = $root.BI.SnapshotRecord.fromObject(object.records[i]); } } if (object.mcEnterprises) { if (!Array.isArray(object.mcEnterprises)) - throw TypeError(".BI.ReportingDailySnapshotResponse.mcEnterprises: array expected"); + throw TypeError('.BI.ReportingDailySnapshotResponse.mcEnterprises: array expected'); message.mcEnterprises = []; for (let i = 0; i < object.mcEnterprises.length; ++i) { - if (typeof object.mcEnterprises[i] !== "object") - throw TypeError(".BI.ReportingDailySnapshotResponse.mcEnterprises: object expected"); + if (typeof object.mcEnterprises[i] !== 'object') + throw TypeError('.BI.ReportingDailySnapshotResponse.mcEnterprises: object expected'); message.mcEnterprises[i] = $root.BI.SnapshotMcEnterprise.fromObject(object.mcEnterprises[i]); } } @@ -230682,8 +239651,7 @@ export const BI = $root.BI = (() => { * @returns {Object.} Plain object */ ReportingDailySnapshotResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.arrays || options.defaults) { object.records = []; @@ -230723,16 +239691,15 @@ export const BI = $root.BI = (() => { */ ReportingDailySnapshotResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/BI.ReportingDailySnapshotResponse"; + return typeUrlPrefix + '/BI.ReportingDailySnapshotResponse'; }; return ReportingDailySnapshotResponse; })(); - BI.SnapshotRecord = (function() { - + BI.SnapshotRecord = (function () { /** * Properties of a SnapshotRecord. * @memberof BI @@ -230757,8 +239724,7 @@ export const BI = $root.BI = (() => { this.addons = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -230767,7 +239733,7 @@ export const BI = $root.BI = (() => { * @memberof BI.SnapshotRecord * @instance */ - SnapshotRecord.prototype.date = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + SnapshotRecord.prototype.date = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * SnapshotRecord mcEnterpriseId. @@ -230831,21 +239797,23 @@ export const BI = $root.BI = (() => { * @returns {$protobuf.Writer} Writer */ SnapshotRecord.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.date != null && Object.hasOwnProperty.call(message, "date")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.date); - if (message.mcEnterpriseId != null && Object.hasOwnProperty.call(message, "mcEnterpriseId")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.mcEnterpriseId); - if (message.maxLicenseCount != null && Object.hasOwnProperty.call(message, "maxLicenseCount")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.maxLicenseCount); - if (message.maxFilePlanTypeId != null && Object.hasOwnProperty.call(message, "maxFilePlanTypeId")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.maxFilePlanTypeId); - if (message.maxBasePlanId != null && Object.hasOwnProperty.call(message, "maxBasePlanId")) - writer.uint32(/* id 6, wireType 0 =*/48).int32(message.maxBasePlanId); + if (!writer) writer = $Writer.create(); + if (message.date != null && Object.hasOwnProperty.call(message, 'date')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int64(message.date); + if (message.mcEnterpriseId != null && Object.hasOwnProperty.call(message, 'mcEnterpriseId')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int32(message.mcEnterpriseId); + if (message.maxLicenseCount != null && Object.hasOwnProperty.call(message, 'maxLicenseCount')) + writer.uint32(/* id 4, wireType 0 =*/ 32).int32(message.maxLicenseCount); + if (message.maxFilePlanTypeId != null && Object.hasOwnProperty.call(message, 'maxFilePlanTypeId')) + writer.uint32(/* id 5, wireType 0 =*/ 40).int32(message.maxFilePlanTypeId); + if (message.maxBasePlanId != null && Object.hasOwnProperty.call(message, 'maxBasePlanId')) + writer.uint32(/* id 6, wireType 0 =*/ 48).int32(message.maxBasePlanId); if (message.addons != null && message.addons.length) for (let i = 0; i < message.addons.length; ++i) - $root.BI.SnapshotRecord.Addon.encode(message.addons[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + $root.BI.SnapshotRecord.Addon.encode( + message.addons[i], + writer.uint32(/* id 7, wireType 2 =*/ 58).fork() + ).ldelim(); return writer; }; @@ -230874,41 +239842,40 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SnapshotRecord.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.SnapshotRecord(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.BI.SnapshotRecord(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.date = reader.int64(); break; } - case 2: { + case 2: { message.mcEnterpriseId = reader.int32(); break; } - case 4: { + case 4: { message.maxLicenseCount = reader.int32(); break; } - case 5: { + case 5: { message.maxFilePlanTypeId = reader.int32(); break; } - case 6: { + case 6: { message.maxBasePlanId = reader.int32(); break; } - case 7: { - if (!(message.addons && message.addons.length)) - message.addons = []; + case 7: { + if (!(message.addons && message.addons.length)) message.addons = []; message.addons.push($root.BI.SnapshotRecord.Addon.decode(reader, reader.uint32())); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -230925,8 +239892,7 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SnapshotRecord.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -230939,30 +239905,26 @@ export const BI = $root.BI = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ SnapshotRecord.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.date != null && message.hasOwnProperty("date")) - if (!$util.isInteger(message.date) && !(message.date && $util.isInteger(message.date.low) && $util.isInteger(message.date.high))) - return "date: integer|Long expected"; - if (message.mcEnterpriseId != null && message.hasOwnProperty("mcEnterpriseId")) - if (!$util.isInteger(message.mcEnterpriseId)) - return "mcEnterpriseId: integer expected"; - if (message.maxLicenseCount != null && message.hasOwnProperty("maxLicenseCount")) - if (!$util.isInteger(message.maxLicenseCount)) - return "maxLicenseCount: integer expected"; - if (message.maxFilePlanTypeId != null && message.hasOwnProperty("maxFilePlanTypeId")) - if (!$util.isInteger(message.maxFilePlanTypeId)) - return "maxFilePlanTypeId: integer expected"; - if (message.maxBasePlanId != null && message.hasOwnProperty("maxBasePlanId")) - if (!$util.isInteger(message.maxBasePlanId)) - return "maxBasePlanId: integer expected"; - if (message.addons != null && message.hasOwnProperty("addons")) { - if (!Array.isArray(message.addons)) - return "addons: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.date != null && message.hasOwnProperty('date')) + if ( + !$util.isInteger(message.date) && + !(message.date && $util.isInteger(message.date.low) && $util.isInteger(message.date.high)) + ) + return 'date: integer|Long expected'; + if (message.mcEnterpriseId != null && message.hasOwnProperty('mcEnterpriseId')) + if (!$util.isInteger(message.mcEnterpriseId)) return 'mcEnterpriseId: integer expected'; + if (message.maxLicenseCount != null && message.hasOwnProperty('maxLicenseCount')) + if (!$util.isInteger(message.maxLicenseCount)) return 'maxLicenseCount: integer expected'; + if (message.maxFilePlanTypeId != null && message.hasOwnProperty('maxFilePlanTypeId')) + if (!$util.isInteger(message.maxFilePlanTypeId)) return 'maxFilePlanTypeId: integer expected'; + if (message.maxBasePlanId != null && message.hasOwnProperty('maxBasePlanId')) + if (!$util.isInteger(message.maxBasePlanId)) return 'maxBasePlanId: integer expected'; + if (message.addons != null && message.hasOwnProperty('addons')) { + if (!Array.isArray(message.addons)) return 'addons: array expected'; for (let i = 0; i < message.addons.length; ++i) { let error = $root.BI.SnapshotRecord.Addon.verify(message.addons[i]); - if (error) - return "addons." + error; + if (error) return 'addons.' + error; } } return null; @@ -230977,33 +239939,24 @@ export const BI = $root.BI = (() => { * @returns {BI.SnapshotRecord} SnapshotRecord */ SnapshotRecord.fromObject = function fromObject(object) { - if (object instanceof $root.BI.SnapshotRecord) - return object; + if (object instanceof $root.BI.SnapshotRecord) return object; let message = new $root.BI.SnapshotRecord(); if (object.date != null) - if ($util.Long) - (message.date = $util.Long.fromValue(object.date)).unsigned = false; - else if (typeof object.date === "string") - message.date = parseInt(object.date, 10); - else if (typeof object.date === "number") - message.date = object.date; - else if (typeof object.date === "object") + if ($util.Long) (message.date = $util.Long.fromValue(object.date)).unsigned = false; + else if (typeof object.date === 'string') message.date = parseInt(object.date, 10); + else if (typeof object.date === 'number') message.date = object.date; + else if (typeof object.date === 'object') message.date = new $util.LongBits(object.date.low >>> 0, object.date.high >>> 0).toNumber(); - if (object.mcEnterpriseId != null) - message.mcEnterpriseId = object.mcEnterpriseId | 0; - if (object.maxLicenseCount != null) - message.maxLicenseCount = object.maxLicenseCount | 0; - if (object.maxFilePlanTypeId != null) - message.maxFilePlanTypeId = object.maxFilePlanTypeId | 0; - if (object.maxBasePlanId != null) - message.maxBasePlanId = object.maxBasePlanId | 0; + if (object.mcEnterpriseId != null) message.mcEnterpriseId = object.mcEnterpriseId | 0; + if (object.maxLicenseCount != null) message.maxLicenseCount = object.maxLicenseCount | 0; + if (object.maxFilePlanTypeId != null) message.maxFilePlanTypeId = object.maxFilePlanTypeId | 0; + if (object.maxBasePlanId != null) message.maxBasePlanId = object.maxBasePlanId | 0; if (object.addons) { - if (!Array.isArray(object.addons)) - throw TypeError(".BI.SnapshotRecord.addons: array expected"); + if (!Array.isArray(object.addons)) throw TypeError('.BI.SnapshotRecord.addons: array expected'); message.addons = []; for (let i = 0; i < object.addons.length; ++i) { - if (typeof object.addons[i] !== "object") - throw TypeError(".BI.SnapshotRecord.addons: object expected"); + if (typeof object.addons[i] !== 'object') + throw TypeError('.BI.SnapshotRecord.addons: object expected'); message.addons[i] = $root.BI.SnapshotRecord.Addon.fromObject(object.addons[i]); } } @@ -231020,34 +239973,37 @@ export const BI = $root.BI = (() => { * @returns {Object.} Plain object */ SnapshotRecord.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.addons = []; + if (options.arrays || options.defaults) object.addons = []; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.date = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.date = options.longs === String ? "0" : 0; + object.date = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.date = options.longs === String ? '0' : 0; object.mcEnterpriseId = 0; object.maxLicenseCount = 0; object.maxFilePlanTypeId = 0; object.maxBasePlanId = 0; } - if (message.date != null && message.hasOwnProperty("date")) - if (typeof message.date === "number") + if (message.date != null && message.hasOwnProperty('date')) + if (typeof message.date === 'number') object.date = options.longs === String ? String(message.date) : message.date; else - object.date = options.longs === String ? $util.Long.prototype.toString.call(message.date) : options.longs === Number ? new $util.LongBits(message.date.low >>> 0, message.date.high >>> 0).toNumber() : message.date; - if (message.mcEnterpriseId != null && message.hasOwnProperty("mcEnterpriseId")) + object.date = + options.longs === String + ? $util.Long.prototype.toString.call(message.date) + : options.longs === Number + ? new $util.LongBits(message.date.low >>> 0, message.date.high >>> 0).toNumber() + : message.date; + if (message.mcEnterpriseId != null && message.hasOwnProperty('mcEnterpriseId')) object.mcEnterpriseId = message.mcEnterpriseId; - if (message.maxLicenseCount != null && message.hasOwnProperty("maxLicenseCount")) + if (message.maxLicenseCount != null && message.hasOwnProperty('maxLicenseCount')) object.maxLicenseCount = message.maxLicenseCount; - if (message.maxFilePlanTypeId != null && message.hasOwnProperty("maxFilePlanTypeId")) + if (message.maxFilePlanTypeId != null && message.hasOwnProperty('maxFilePlanTypeId')) object.maxFilePlanTypeId = message.maxFilePlanTypeId; - if (message.maxBasePlanId != null && message.hasOwnProperty("maxBasePlanId")) + if (message.maxBasePlanId != null && message.hasOwnProperty('maxBasePlanId')) object.maxBasePlanId = message.maxBasePlanId; if (message.addons && message.addons.length) { object.addons = []; @@ -231078,13 +240034,12 @@ export const BI = $root.BI = (() => { */ SnapshotRecord.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/BI.SnapshotRecord"; + return typeUrlPrefix + '/BI.SnapshotRecord'; }; - SnapshotRecord.Addon = (function() { - + SnapshotRecord.Addon = (function () { /** * Properties of an Addon. * @memberof BI.SnapshotRecord @@ -231104,8 +240059,7 @@ export const BI = $root.BI = (() => { function Addon(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -231122,7 +240076,7 @@ export const BI = $root.BI = (() => { * @memberof BI.SnapshotRecord.Addon * @instance */ - Addon.prototype.units = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + Addon.prototype.units = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * Creates a new Addon instance using the specified properties. @@ -231146,12 +240100,11 @@ export const BI = $root.BI = (() => { * @returns {$protobuf.Writer} Writer */ Addon.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.maxAddonId != null && Object.hasOwnProperty.call(message, "maxAddonId")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.maxAddonId); - if (message.units != null && Object.hasOwnProperty.call(message, "units")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.units); + if (!writer) writer = $Writer.create(); + if (message.maxAddonId != null && Object.hasOwnProperty.call(message, 'maxAddonId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int32(message.maxAddonId); + if (message.units != null && Object.hasOwnProperty.call(message, 'units')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int64(message.units); return writer; }; @@ -231180,23 +240133,23 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ Addon.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.SnapshotRecord.Addon(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.BI.SnapshotRecord.Addon(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.maxAddonId = reader.int32(); break; } - case 2: { + case 2: { message.units = reader.int64(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -231213,8 +240166,7 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ Addon.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -231227,14 +240179,15 @@ export const BI = $root.BI = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ Addon.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.maxAddonId != null && message.hasOwnProperty("maxAddonId")) - if (!$util.isInteger(message.maxAddonId)) - return "maxAddonId: integer expected"; - if (message.units != null && message.hasOwnProperty("units")) - if (!$util.isInteger(message.units) && !(message.units && $util.isInteger(message.units.low) && $util.isInteger(message.units.high))) - return "units: integer|Long expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.maxAddonId != null && message.hasOwnProperty('maxAddonId')) + if (!$util.isInteger(message.maxAddonId)) return 'maxAddonId: integer expected'; + if (message.units != null && message.hasOwnProperty('units')) + if ( + !$util.isInteger(message.units) && + !(message.units && $util.isInteger(message.units.low) && $util.isInteger(message.units.high)) + ) + return 'units: integer|Long expected'; return null; }; @@ -231247,19 +240200,14 @@ export const BI = $root.BI = (() => { * @returns {BI.SnapshotRecord.Addon} Addon */ Addon.fromObject = function fromObject(object) { - if (object instanceof $root.BI.SnapshotRecord.Addon) - return object; + if (object instanceof $root.BI.SnapshotRecord.Addon) return object; let message = new $root.BI.SnapshotRecord.Addon(); - if (object.maxAddonId != null) - message.maxAddonId = object.maxAddonId | 0; + if (object.maxAddonId != null) message.maxAddonId = object.maxAddonId | 0; if (object.units != null) - if ($util.Long) - (message.units = $util.Long.fromValue(object.units)).unsigned = false; - else if (typeof object.units === "string") - message.units = parseInt(object.units, 10); - else if (typeof object.units === "number") - message.units = object.units; - else if (typeof object.units === "object") + if ($util.Long) (message.units = $util.Long.fromValue(object.units)).unsigned = false; + else if (typeof object.units === 'string') message.units = parseInt(object.units, 10); + else if (typeof object.units === 'number') message.units = object.units; + else if (typeof object.units === 'object') message.units = new $util.LongBits(object.units.low >>> 0, object.units.high >>> 0).toNumber(); return message; }; @@ -231274,24 +240222,32 @@ export const BI = $root.BI = (() => { * @returns {Object.} Plain object */ Addon.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { object.maxAddonId = 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.units = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.units = options.longs === String ? "0" : 0; - } - if (message.maxAddonId != null && message.hasOwnProperty("maxAddonId")) + object.units = + options.longs === String + ? long.toString() + : options.longs === Number + ? long.toNumber() + : long; + } else object.units = options.longs === String ? '0' : 0; + } + if (message.maxAddonId != null && message.hasOwnProperty('maxAddonId')) object.maxAddonId = message.maxAddonId; - if (message.units != null && message.hasOwnProperty("units")) - if (typeof message.units === "number") + if (message.units != null && message.hasOwnProperty('units')) + if (typeof message.units === 'number') object.units = options.longs === String ? String(message.units) : message.units; else - object.units = options.longs === String ? $util.Long.prototype.toString.call(message.units) : options.longs === Number ? new $util.LongBits(message.units.low >>> 0, message.units.high >>> 0).toNumber() : message.units; + object.units = + options.longs === String + ? $util.Long.prototype.toString.call(message.units) + : options.longs === Number + ? new $util.LongBits(message.units.low >>> 0, message.units.high >>> 0).toNumber() + : message.units; return object; }; @@ -231316,9 +240272,9 @@ export const BI = $root.BI = (() => { */ Addon.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/BI.SnapshotRecord.Addon"; + return typeUrlPrefix + '/BI.SnapshotRecord.Addon'; }; return Addon; @@ -231327,8 +240283,7 @@ export const BI = $root.BI = (() => { return SnapshotRecord; })(); - BI.SnapshotMcEnterprise = (function() { - + BI.SnapshotMcEnterprise = (function () { /** * Properties of a SnapshotMcEnterprise. * @memberof BI @@ -231348,8 +240303,7 @@ export const BI = $root.BI = (() => { function SnapshotMcEnterprise(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -231366,7 +240320,7 @@ export const BI = $root.BI = (() => { * @memberof BI.SnapshotMcEnterprise * @instance */ - SnapshotMcEnterprise.prototype.name = ""; + SnapshotMcEnterprise.prototype.name = ''; /** * Creates a new SnapshotMcEnterprise instance using the specified properties. @@ -231390,12 +240344,11 @@ export const BI = $root.BI = (() => { * @returns {$protobuf.Writer} Writer */ SnapshotMcEnterprise.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.id != null && Object.hasOwnProperty.call(message, "id")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.id); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.name); + if (!writer) writer = $Writer.create(); + if (message.id != null && Object.hasOwnProperty.call(message, 'id')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int32(message.id); + if (message.name != null && Object.hasOwnProperty.call(message, 'name')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.name); return writer; }; @@ -231424,23 +240377,23 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SnapshotMcEnterprise.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.SnapshotMcEnterprise(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.BI.SnapshotMcEnterprise(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.id = reader.int32(); break; } - case 2: { + case 2: { message.name = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -231457,8 +240410,7 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SnapshotMcEnterprise.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -231471,14 +240423,11 @@ export const BI = $root.BI = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ SnapshotMcEnterprise.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) - if (!$util.isInteger(message.id)) - return "id: integer expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.id != null && message.hasOwnProperty('id')) + if (!$util.isInteger(message.id)) return 'id: integer expected'; + if (message.name != null && message.hasOwnProperty('name')) + if (!$util.isString(message.name)) return 'name: string expected'; return null; }; @@ -231491,13 +240440,10 @@ export const BI = $root.BI = (() => { * @returns {BI.SnapshotMcEnterprise} SnapshotMcEnterprise */ SnapshotMcEnterprise.fromObject = function fromObject(object) { - if (object instanceof $root.BI.SnapshotMcEnterprise) - return object; + if (object instanceof $root.BI.SnapshotMcEnterprise) return object; let message = new $root.BI.SnapshotMcEnterprise(); - if (object.id != null) - message.id = object.id | 0; - if (object.name != null) - message.name = String(object.name); + if (object.id != null) message.id = object.id | 0; + if (object.name != null) message.name = String(object.name); return message; }; @@ -231511,17 +240457,14 @@ export const BI = $root.BI = (() => { * @returns {Object.} Plain object */ SnapshotMcEnterprise.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { object.id = 0; - object.name = ""; + object.name = ''; } - if (message.id != null && message.hasOwnProperty("id")) - object.id = message.id; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + if (message.id != null && message.hasOwnProperty('id')) object.id = message.id; + if (message.name != null && message.hasOwnProperty('name')) object.name = message.name; return object; }; @@ -231546,16 +240489,15 @@ export const BI = $root.BI = (() => { */ SnapshotMcEnterprise.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/BI.SnapshotMcEnterprise"; + return typeUrlPrefix + '/BI.SnapshotMcEnterprise'; }; return SnapshotMcEnterprise; })(); - BI.MappingAddonsRequest = (function() { - + BI.MappingAddonsRequest = (function () { /** * Properties of a MappingAddonsRequest. * @memberof BI @@ -231573,8 +240515,7 @@ export const BI = $root.BI = (() => { function MappingAddonsRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -231599,8 +240540,7 @@ export const BI = $root.BI = (() => { * @returns {$protobuf.Writer} Writer */ MappingAddonsRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); return writer; }; @@ -231629,15 +240569,15 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ MappingAddonsRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.MappingAddonsRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.BI.MappingAddonsRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -231654,8 +240594,7 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ MappingAddonsRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -231668,8 +240607,7 @@ export const BI = $root.BI = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ MappingAddonsRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; return null; }; @@ -231682,8 +240620,7 @@ export const BI = $root.BI = (() => { * @returns {BI.MappingAddonsRequest} MappingAddonsRequest */ MappingAddonsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.BI.MappingAddonsRequest) - return object; + if (object instanceof $root.BI.MappingAddonsRequest) return object; return new $root.BI.MappingAddonsRequest(); }; @@ -231721,16 +240658,15 @@ export const BI = $root.BI = (() => { */ MappingAddonsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/BI.MappingAddonsRequest"; + return typeUrlPrefix + '/BI.MappingAddonsRequest'; }; return MappingAddonsRequest; })(); - BI.MappingAddonsResponse = (function() { - + BI.MappingAddonsResponse = (function () { /** * Properties of a MappingAddonsResponse. * @memberof BI @@ -231752,8 +240688,7 @@ export const BI = $root.BI = (() => { this.filePlans = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -231794,14 +240729,19 @@ export const BI = $root.BI = (() => { * @returns {$protobuf.Writer} Writer */ MappingAddonsResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.addons != null && message.addons.length) for (let i = 0; i < message.addons.length; ++i) - $root.BI.MappingItem.encode(message.addons[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.BI.MappingItem.encode( + message.addons[i], + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); if (message.filePlans != null && message.filePlans.length) for (let i = 0; i < message.filePlans.length; ++i) - $root.BI.MappingItem.encode(message.filePlans[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + $root.BI.MappingItem.encode( + message.filePlans[i], + writer.uint32(/* id 2, wireType 2 =*/ 18).fork() + ).ldelim(); return writer; }; @@ -231830,27 +240770,25 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ MappingAddonsResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.MappingAddonsResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.BI.MappingAddonsResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (!(message.addons && message.addons.length)) - message.addons = []; + case 1: { + if (!(message.addons && message.addons.length)) message.addons = []; message.addons.push($root.BI.MappingItem.decode(reader, reader.uint32())); break; } - case 2: { - if (!(message.filePlans && message.filePlans.length)) - message.filePlans = []; + case 2: { + if (!(message.filePlans && message.filePlans.length)) message.filePlans = []; message.filePlans.push($root.BI.MappingItem.decode(reader, reader.uint32())); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -231867,8 +240805,7 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ MappingAddonsResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -231881,24 +240818,19 @@ export const BI = $root.BI = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ MappingAddonsResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.addons != null && message.hasOwnProperty("addons")) { - if (!Array.isArray(message.addons)) - return "addons: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.addons != null && message.hasOwnProperty('addons')) { + if (!Array.isArray(message.addons)) return 'addons: array expected'; for (let i = 0; i < message.addons.length; ++i) { let error = $root.BI.MappingItem.verify(message.addons[i]); - if (error) - return "addons." + error; + if (error) return 'addons.' + error; } } - if (message.filePlans != null && message.hasOwnProperty("filePlans")) { - if (!Array.isArray(message.filePlans)) - return "filePlans: array expected"; + if (message.filePlans != null && message.hasOwnProperty('filePlans')) { + if (!Array.isArray(message.filePlans)) return 'filePlans: array expected'; for (let i = 0; i < message.filePlans.length; ++i) { let error = $root.BI.MappingItem.verify(message.filePlans[i]); - if (error) - return "filePlans." + error; + if (error) return 'filePlans.' + error; } } return null; @@ -231913,26 +240845,24 @@ export const BI = $root.BI = (() => { * @returns {BI.MappingAddonsResponse} MappingAddonsResponse */ MappingAddonsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.BI.MappingAddonsResponse) - return object; + if (object instanceof $root.BI.MappingAddonsResponse) return object; let message = new $root.BI.MappingAddonsResponse(); if (object.addons) { - if (!Array.isArray(object.addons)) - throw TypeError(".BI.MappingAddonsResponse.addons: array expected"); + if (!Array.isArray(object.addons)) throw TypeError('.BI.MappingAddonsResponse.addons: array expected'); message.addons = []; for (let i = 0; i < object.addons.length; ++i) { - if (typeof object.addons[i] !== "object") - throw TypeError(".BI.MappingAddonsResponse.addons: object expected"); + if (typeof object.addons[i] !== 'object') + throw TypeError('.BI.MappingAddonsResponse.addons: object expected'); message.addons[i] = $root.BI.MappingItem.fromObject(object.addons[i]); } } if (object.filePlans) { if (!Array.isArray(object.filePlans)) - throw TypeError(".BI.MappingAddonsResponse.filePlans: array expected"); + throw TypeError('.BI.MappingAddonsResponse.filePlans: array expected'); message.filePlans = []; for (let i = 0; i < object.filePlans.length; ++i) { - if (typeof object.filePlans[i] !== "object") - throw TypeError(".BI.MappingAddonsResponse.filePlans: object expected"); + if (typeof object.filePlans[i] !== 'object') + throw TypeError('.BI.MappingAddonsResponse.filePlans: object expected'); message.filePlans[i] = $root.BI.MappingItem.fromObject(object.filePlans[i]); } } @@ -231949,8 +240879,7 @@ export const BI = $root.BI = (() => { * @returns {Object.} Plain object */ MappingAddonsResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.arrays || options.defaults) { object.addons = []; @@ -231990,16 +240919,15 @@ export const BI = $root.BI = (() => { */ MappingAddonsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/BI.MappingAddonsResponse"; + return typeUrlPrefix + '/BI.MappingAddonsResponse'; }; return MappingAddonsResponse; })(); - BI.MappingItem = (function() { - + BI.MappingItem = (function () { /** * Properties of a MappingItem. * @memberof BI @@ -232019,8 +240947,7 @@ export const BI = $root.BI = (() => { function MappingItem(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -232037,7 +240964,7 @@ export const BI = $root.BI = (() => { * @memberof BI.MappingItem * @instance */ - MappingItem.prototype.name = ""; + MappingItem.prototype.name = ''; /** * Creates a new MappingItem instance using the specified properties. @@ -232061,12 +240988,11 @@ export const BI = $root.BI = (() => { * @returns {$protobuf.Writer} Writer */ MappingItem.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.id != null && Object.hasOwnProperty.call(message, "id")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.id); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.name); + if (!writer) writer = $Writer.create(); + if (message.id != null && Object.hasOwnProperty.call(message, 'id')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int32(message.id); + if (message.name != null && Object.hasOwnProperty.call(message, 'name')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.name); return writer; }; @@ -232095,23 +241021,23 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ MappingItem.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.MappingItem(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.BI.MappingItem(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.id = reader.int32(); break; } - case 2: { + case 2: { message.name = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -232128,8 +241054,7 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ MappingItem.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -232142,14 +241067,11 @@ export const BI = $root.BI = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ MappingItem.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) - if (!$util.isInteger(message.id)) - return "id: integer expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.id != null && message.hasOwnProperty('id')) + if (!$util.isInteger(message.id)) return 'id: integer expected'; + if (message.name != null && message.hasOwnProperty('name')) + if (!$util.isString(message.name)) return 'name: string expected'; return null; }; @@ -232162,13 +241084,10 @@ export const BI = $root.BI = (() => { * @returns {BI.MappingItem} MappingItem */ MappingItem.fromObject = function fromObject(object) { - if (object instanceof $root.BI.MappingItem) - return object; + if (object instanceof $root.BI.MappingItem) return object; let message = new $root.BI.MappingItem(); - if (object.id != null) - message.id = object.id | 0; - if (object.name != null) - message.name = String(object.name); + if (object.id != null) message.id = object.id | 0; + if (object.name != null) message.name = String(object.name); return message; }; @@ -232182,17 +241101,14 @@ export const BI = $root.BI = (() => { * @returns {Object.} Plain object */ MappingItem.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { object.id = 0; - object.name = ""; + object.name = ''; } - if (message.id != null && message.hasOwnProperty("id")) - object.id = message.id; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + if (message.id != null && message.hasOwnProperty('id')) object.id = message.id; + if (message.name != null && message.hasOwnProperty('name')) object.name = message.name; return object; }; @@ -232217,16 +241133,15 @@ export const BI = $root.BI = (() => { */ MappingItem.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/BI.MappingItem"; + return typeUrlPrefix + '/BI.MappingItem'; }; return MappingItem; })(); - BI.GradientValidateKeyRequest = (function() { - + BI.GradientValidateKeyRequest = (function () { /** * Properties of a GradientValidateKeyRequest. * @memberof BI @@ -232245,8 +241160,7 @@ export const BI = $root.BI = (() => { function GradientValidateKeyRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -232255,7 +241169,7 @@ export const BI = $root.BI = (() => { * @memberof BI.GradientValidateKeyRequest * @instance */ - GradientValidateKeyRequest.prototype.gradientKey = ""; + GradientValidateKeyRequest.prototype.gradientKey = ''; /** * Creates a new GradientValidateKeyRequest instance using the specified properties. @@ -232279,10 +241193,9 @@ export const BI = $root.BI = (() => { * @returns {$protobuf.Writer} Writer */ GradientValidateKeyRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.gradientKey != null && Object.hasOwnProperty.call(message, "gradientKey")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.gradientKey); + if (!writer) writer = $Writer.create(); + if (message.gradientKey != null && Object.hasOwnProperty.call(message, 'gradientKey')) + writer.uint32(/* id 1, wireType 2 =*/ 10).string(message.gradientKey); return writer; }; @@ -232311,19 +241224,19 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ GradientValidateKeyRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.GradientValidateKeyRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.BI.GradientValidateKeyRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.gradientKey = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -232340,8 +241253,7 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ GradientValidateKeyRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -232354,11 +241266,9 @@ export const BI = $root.BI = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ GradientValidateKeyRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.gradientKey != null && message.hasOwnProperty("gradientKey")) - if (!$util.isString(message.gradientKey)) - return "gradientKey: string expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.gradientKey != null && message.hasOwnProperty('gradientKey')) + if (!$util.isString(message.gradientKey)) return 'gradientKey: string expected'; return null; }; @@ -232371,11 +241281,9 @@ export const BI = $root.BI = (() => { * @returns {BI.GradientValidateKeyRequest} GradientValidateKeyRequest */ GradientValidateKeyRequest.fromObject = function fromObject(object) { - if (object instanceof $root.BI.GradientValidateKeyRequest) - return object; + if (object instanceof $root.BI.GradientValidateKeyRequest) return object; let message = new $root.BI.GradientValidateKeyRequest(); - if (object.gradientKey != null) - message.gradientKey = String(object.gradientKey); + if (object.gradientKey != null) message.gradientKey = String(object.gradientKey); return message; }; @@ -232389,12 +241297,10 @@ export const BI = $root.BI = (() => { * @returns {Object.} Plain object */ GradientValidateKeyRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.defaults) - object.gradientKey = ""; - if (message.gradientKey != null && message.hasOwnProperty("gradientKey")) + if (options.defaults) object.gradientKey = ''; + if (message.gradientKey != null && message.hasOwnProperty('gradientKey')) object.gradientKey = message.gradientKey; return object; }; @@ -232420,16 +241326,15 @@ export const BI = $root.BI = (() => { */ GradientValidateKeyRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/BI.GradientValidateKeyRequest"; + return typeUrlPrefix + '/BI.GradientValidateKeyRequest'; }; return GradientValidateKeyRequest; })(); - BI.GradientValidateKeyResponse = (function() { - + BI.GradientValidateKeyResponse = (function () { /** * Properties of a GradientValidateKeyResponse. * @memberof BI @@ -232449,8 +241354,7 @@ export const BI = $root.BI = (() => { function GradientValidateKeyResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -232467,7 +241371,7 @@ export const BI = $root.BI = (() => { * @memberof BI.GradientValidateKeyResponse * @instance */ - GradientValidateKeyResponse.prototype.message = ""; + GradientValidateKeyResponse.prototype.message = ''; /** * Creates a new GradientValidateKeyResponse instance using the specified properties. @@ -232491,12 +241395,11 @@ export const BI = $root.BI = (() => { * @returns {$protobuf.Writer} Writer */ GradientValidateKeyResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.success != null && Object.hasOwnProperty.call(message, "success")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.success); - if (message.message != null && Object.hasOwnProperty.call(message, "message")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.message); + if (!writer) writer = $Writer.create(); + if (message.success != null && Object.hasOwnProperty.call(message, 'success')) + writer.uint32(/* id 1, wireType 0 =*/ 8).bool(message.success); + if (message.message != null && Object.hasOwnProperty.call(message, 'message')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.message); return writer; }; @@ -232525,23 +241428,23 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ GradientValidateKeyResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.GradientValidateKeyResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.BI.GradientValidateKeyResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.success = reader.bool(); break; } - case 2: { + case 2: { message.message = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -232558,8 +241461,7 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ GradientValidateKeyResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -232572,14 +241474,11 @@ export const BI = $root.BI = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ GradientValidateKeyResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.success != null && message.hasOwnProperty("success")) - if (typeof message.success !== "boolean") - return "success: boolean expected"; - if (message.message != null && message.hasOwnProperty("message")) - if (!$util.isString(message.message)) - return "message: string expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.success != null && message.hasOwnProperty('success')) + if (typeof message.success !== 'boolean') return 'success: boolean expected'; + if (message.message != null && message.hasOwnProperty('message')) + if (!$util.isString(message.message)) return 'message: string expected'; return null; }; @@ -232592,13 +241491,10 @@ export const BI = $root.BI = (() => { * @returns {BI.GradientValidateKeyResponse} GradientValidateKeyResponse */ GradientValidateKeyResponse.fromObject = function fromObject(object) { - if (object instanceof $root.BI.GradientValidateKeyResponse) - return object; + if (object instanceof $root.BI.GradientValidateKeyResponse) return object; let message = new $root.BI.GradientValidateKeyResponse(); - if (object.success != null) - message.success = Boolean(object.success); - if (object.message != null) - message.message = String(object.message); + if (object.success != null) message.success = Boolean(object.success); + if (object.message != null) message.message = String(object.message); return message; }; @@ -232612,17 +241508,14 @@ export const BI = $root.BI = (() => { * @returns {Object.} Plain object */ GradientValidateKeyResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { object.success = false; - object.message = ""; + object.message = ''; } - if (message.success != null && message.hasOwnProperty("success")) - object.success = message.success; - if (message.message != null && message.hasOwnProperty("message")) - object.message = message.message; + if (message.success != null && message.hasOwnProperty('success')) object.success = message.success; + if (message.message != null && message.hasOwnProperty('message')) object.message = message.message; return object; }; @@ -232647,16 +241540,15 @@ export const BI = $root.BI = (() => { */ GradientValidateKeyResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/BI.GradientValidateKeyResponse"; + return typeUrlPrefix + '/BI.GradientValidateKeyResponse'; }; return GradientValidateKeyResponse; })(); - BI.GradientSaveRequest = (function() { - + BI.GradientSaveRequest = (function () { /** * Properties of a GradientSaveRequest. * @memberof BI @@ -232676,8 +241568,7 @@ export const BI = $root.BI = (() => { function GradientSaveRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -232686,7 +241577,7 @@ export const BI = $root.BI = (() => { * @memberof BI.GradientSaveRequest * @instance */ - GradientSaveRequest.prototype.gradientKey = ""; + GradientSaveRequest.prototype.gradientKey = ''; /** * GradientSaveRequest enterpriseUserId. @@ -232694,7 +241585,7 @@ export const BI = $root.BI = (() => { * @memberof BI.GradientSaveRequest * @instance */ - GradientSaveRequest.prototype.enterpriseUserId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + GradientSaveRequest.prototype.enterpriseUserId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * Creates a new GradientSaveRequest instance using the specified properties. @@ -232718,12 +241609,11 @@ export const BI = $root.BI = (() => { * @returns {$protobuf.Writer} Writer */ GradientSaveRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.gradientKey != null && Object.hasOwnProperty.call(message, "gradientKey")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.gradientKey); - if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "enterpriseUserId")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.enterpriseUserId); + if (!writer) writer = $Writer.create(); + if (message.gradientKey != null && Object.hasOwnProperty.call(message, 'gradientKey')) + writer.uint32(/* id 1, wireType 2 =*/ 10).string(message.gradientKey); + if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, 'enterpriseUserId')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int64(message.enterpriseUserId); return writer; }; @@ -232752,23 +241642,23 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ GradientSaveRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.GradientSaveRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.BI.GradientSaveRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.gradientKey = reader.string(); break; } - case 2: { + case 2: { message.enterpriseUserId = reader.int64(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -232785,8 +241675,7 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ GradientSaveRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -232799,14 +241688,19 @@ export const BI = $root.BI = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ GradientSaveRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.gradientKey != null && message.hasOwnProperty("gradientKey")) - if (!$util.isString(message.gradientKey)) - return "gradientKey: string expected"; - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (!$util.isInteger(message.enterpriseUserId) && !(message.enterpriseUserId && $util.isInteger(message.enterpriseUserId.low) && $util.isInteger(message.enterpriseUserId.high))) - return "enterpriseUserId: integer|Long expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.gradientKey != null && message.hasOwnProperty('gradientKey')) + if (!$util.isString(message.gradientKey)) return 'gradientKey: string expected'; + if (message.enterpriseUserId != null && message.hasOwnProperty('enterpriseUserId')) + if ( + !$util.isInteger(message.enterpriseUserId) && + !( + message.enterpriseUserId && + $util.isInteger(message.enterpriseUserId.low) && + $util.isInteger(message.enterpriseUserId.high) + ) + ) + return 'enterpriseUserId: integer|Long expected'; return null; }; @@ -232819,20 +241713,21 @@ export const BI = $root.BI = (() => { * @returns {BI.GradientSaveRequest} GradientSaveRequest */ GradientSaveRequest.fromObject = function fromObject(object) { - if (object instanceof $root.BI.GradientSaveRequest) - return object; + if (object instanceof $root.BI.GradientSaveRequest) return object; let message = new $root.BI.GradientSaveRequest(); - if (object.gradientKey != null) - message.gradientKey = String(object.gradientKey); + if (object.gradientKey != null) message.gradientKey = String(object.gradientKey); if (object.enterpriseUserId != null) if ($util.Long) (message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId)).unsigned = false; - else if (typeof object.enterpriseUserId === "string") + else if (typeof object.enterpriseUserId === 'string') message.enterpriseUserId = parseInt(object.enterpriseUserId, 10); - else if (typeof object.enterpriseUserId === "number") + else if (typeof object.enterpriseUserId === 'number') message.enterpriseUserId = object.enterpriseUserId; - else if (typeof object.enterpriseUserId === "object") - message.enterpriseUserId = new $util.LongBits(object.enterpriseUserId.low >>> 0, object.enterpriseUserId.high >>> 0).toNumber(); + else if (typeof object.enterpriseUserId === 'object') + message.enterpriseUserId = new $util.LongBits( + object.enterpriseUserId.low >>> 0, + object.enterpriseUserId.high >>> 0 + ).toNumber(); return message; }; @@ -232846,24 +241741,32 @@ export const BI = $root.BI = (() => { * @returns {Object.} Plain object */ GradientSaveRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - object.gradientKey = ""; + object.gradientKey = ''; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.enterpriseUserId = options.longs === String ? "0" : 0; + object.enterpriseUserId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.enterpriseUserId = options.longs === String ? '0' : 0; } - if (message.gradientKey != null && message.hasOwnProperty("gradientKey")) + if (message.gradientKey != null && message.hasOwnProperty('gradientKey')) object.gradientKey = message.gradientKey; - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (typeof message.enterpriseUserId === "number") - object.enterpriseUserId = options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; + if (message.enterpriseUserId != null && message.hasOwnProperty('enterpriseUserId')) + if (typeof message.enterpriseUserId === 'number') + object.enterpriseUserId = + options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; else - object.enterpriseUserId = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseUserId) : options.longs === Number ? new $util.LongBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0).toNumber() : message.enterpriseUserId; + object.enterpriseUserId = + options.longs === String + ? $util.Long.prototype.toString.call(message.enterpriseUserId) + : options.longs === Number + ? new $util.LongBits( + message.enterpriseUserId.low >>> 0, + message.enterpriseUserId.high >>> 0 + ).toNumber() + : message.enterpriseUserId; return object; }; @@ -232888,16 +241791,15 @@ export const BI = $root.BI = (() => { */ GradientSaveRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/BI.GradientSaveRequest"; + return typeUrlPrefix + '/BI.GradientSaveRequest'; }; return GradientSaveRequest; })(); - BI.GradientSaveResponse = (function() { - + BI.GradientSaveResponse = (function () { /** * Properties of a GradientSaveResponse. * @memberof BI @@ -232918,8 +241820,7 @@ export const BI = $root.BI = (() => { function GradientSaveResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -232944,7 +241845,7 @@ export const BI = $root.BI = (() => { * @memberof BI.GradientSaveResponse * @instance */ - GradientSaveResponse.prototype.message = ""; + GradientSaveResponse.prototype.message = ''; /** * Creates a new GradientSaveResponse instance using the specified properties. @@ -232968,14 +241869,13 @@ export const BI = $root.BI = (() => { * @returns {$protobuf.Writer} Writer */ GradientSaveResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.success != null && Object.hasOwnProperty.call(message, "success")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.success); - if (message.status != null && Object.hasOwnProperty.call(message, "status")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.status); - if (message.message != null && Object.hasOwnProperty.call(message, "message")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.message); + if (!writer) writer = $Writer.create(); + if (message.success != null && Object.hasOwnProperty.call(message, 'success')) + writer.uint32(/* id 1, wireType 0 =*/ 8).bool(message.success); + if (message.status != null && Object.hasOwnProperty.call(message, 'status')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int32(message.status); + if (message.message != null && Object.hasOwnProperty.call(message, 'message')) + writer.uint32(/* id 3, wireType 2 =*/ 26).string(message.message); return writer; }; @@ -233004,27 +241904,27 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ GradientSaveResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.GradientSaveResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.BI.GradientSaveResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.success = reader.bool(); break; } - case 2: { + case 2: { message.status = reader.int32(); break; } - case 3: { + case 3: { message.message = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -233041,8 +241941,7 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ GradientSaveResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -233055,24 +241954,21 @@ export const BI = $root.BI = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ GradientSaveResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.success != null && message.hasOwnProperty("success")) - if (typeof message.success !== "boolean") - return "success: boolean expected"; - if (message.status != null && message.hasOwnProperty("status")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.success != null && message.hasOwnProperty('success')) + if (typeof message.success !== 'boolean') return 'success: boolean expected'; + if (message.status != null && message.hasOwnProperty('status')) switch (message.status) { - default: - return "status: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; + default: + return 'status: enum value expected'; + case 0: + case 1: + case 2: + case 3: + break; } - if (message.message != null && message.hasOwnProperty("message")) - if (!$util.isString(message.message)) - return "message: string expected"; + if (message.message != null && message.hasOwnProperty('message')) + if (!$util.isString(message.message)) return 'message: string expected'; return null; }; @@ -233085,37 +241981,34 @@ export const BI = $root.BI = (() => { * @returns {BI.GradientSaveResponse} GradientSaveResponse */ GradientSaveResponse.fromObject = function fromObject(object) { - if (object instanceof $root.BI.GradientSaveResponse) - return object; + if (object instanceof $root.BI.GradientSaveResponse) return object; let message = new $root.BI.GradientSaveResponse(); - if (object.success != null) - message.success = Boolean(object.success); + if (object.success != null) message.success = Boolean(object.success); switch (object.status) { - default: - if (typeof object.status === "number") { - message.status = object.status; - break; - } - break; - case "NOTCONNECTED": - case 0: - message.status = 0; - break; - case "PENDING": - case 1: - message.status = 1; - break; - case "CONNECTED": - case 2: - message.status = 2; - break; - case "NONE": - case 3: - message.status = 3; - break; + default: + if (typeof object.status === 'number') { + message.status = object.status; + break; + } + break; + case 'NOTCONNECTED': + case 0: + message.status = 0; + break; + case 'PENDING': + case 1: + message.status = 1; + break; + case 'CONNECTED': + case 2: + message.status = 2; + break; + case 'NONE': + case 3: + message.status = 3; + break; } - if (object.message != null) - message.message = String(object.message); + if (object.message != null) message.message = String(object.message); return message; }; @@ -233129,20 +242022,22 @@ export const BI = $root.BI = (() => { * @returns {Object.} Plain object */ GradientSaveResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { object.success = false; - object.status = options.enums === String ? "NOTCONNECTED" : 0; - object.message = ""; + object.status = options.enums === String ? 'NOTCONNECTED' : 0; + object.message = ''; } - if (message.success != null && message.hasOwnProperty("success")) - object.success = message.success; - if (message.status != null && message.hasOwnProperty("status")) - object.status = options.enums === String ? $root.BI.GradientIntegrationStatus[message.status] === undefined ? message.status : $root.BI.GradientIntegrationStatus[message.status] : message.status; - if (message.message != null && message.hasOwnProperty("message")) - object.message = message.message; + if (message.success != null && message.hasOwnProperty('success')) object.success = message.success; + if (message.status != null && message.hasOwnProperty('status')) + object.status = + options.enums === String + ? $root.BI.GradientIntegrationStatus[message.status] === undefined + ? message.status + : $root.BI.GradientIntegrationStatus[message.status] + : message.status; + if (message.message != null && message.hasOwnProperty('message')) object.message = message.message; return object; }; @@ -233167,16 +242062,15 @@ export const BI = $root.BI = (() => { */ GradientSaveResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/BI.GradientSaveResponse"; + return typeUrlPrefix + '/BI.GradientSaveResponse'; }; return GradientSaveResponse; })(); - BI.GradientRemoveRequest = (function() { - + BI.GradientRemoveRequest = (function () { /** * Properties of a GradientRemoveRequest. * @memberof BI @@ -233195,8 +242089,7 @@ export const BI = $root.BI = (() => { function GradientRemoveRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -233205,7 +242098,7 @@ export const BI = $root.BI = (() => { * @memberof BI.GradientRemoveRequest * @instance */ - GradientRemoveRequest.prototype.enterpriseUserId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + GradientRemoveRequest.prototype.enterpriseUserId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * Creates a new GradientRemoveRequest instance using the specified properties. @@ -233229,10 +242122,9 @@ export const BI = $root.BI = (() => { * @returns {$protobuf.Writer} Writer */ GradientRemoveRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "enterpriseUserId")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.enterpriseUserId); + if (!writer) writer = $Writer.create(); + if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, 'enterpriseUserId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int64(message.enterpriseUserId); return writer; }; @@ -233261,19 +242153,19 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ GradientRemoveRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.GradientRemoveRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.BI.GradientRemoveRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.enterpriseUserId = reader.int64(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -233290,8 +242182,7 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ GradientRemoveRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -233304,11 +242195,17 @@ export const BI = $root.BI = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ GradientRemoveRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (!$util.isInteger(message.enterpriseUserId) && !(message.enterpriseUserId && $util.isInteger(message.enterpriseUserId.low) && $util.isInteger(message.enterpriseUserId.high))) - return "enterpriseUserId: integer|Long expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.enterpriseUserId != null && message.hasOwnProperty('enterpriseUserId')) + if ( + !$util.isInteger(message.enterpriseUserId) && + !( + message.enterpriseUserId && + $util.isInteger(message.enterpriseUserId.low) && + $util.isInteger(message.enterpriseUserId.high) + ) + ) + return 'enterpriseUserId: integer|Long expected'; return null; }; @@ -233321,18 +242218,20 @@ export const BI = $root.BI = (() => { * @returns {BI.GradientRemoveRequest} GradientRemoveRequest */ GradientRemoveRequest.fromObject = function fromObject(object) { - if (object instanceof $root.BI.GradientRemoveRequest) - return object; + if (object instanceof $root.BI.GradientRemoveRequest) return object; let message = new $root.BI.GradientRemoveRequest(); if (object.enterpriseUserId != null) if ($util.Long) (message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId)).unsigned = false; - else if (typeof object.enterpriseUserId === "string") + else if (typeof object.enterpriseUserId === 'string') message.enterpriseUserId = parseInt(object.enterpriseUserId, 10); - else if (typeof object.enterpriseUserId === "number") + else if (typeof object.enterpriseUserId === 'number') message.enterpriseUserId = object.enterpriseUserId; - else if (typeof object.enterpriseUserId === "object") - message.enterpriseUserId = new $util.LongBits(object.enterpriseUserId.low >>> 0, object.enterpriseUserId.high >>> 0).toNumber(); + else if (typeof object.enterpriseUserId === 'object') + message.enterpriseUserId = new $util.LongBits( + object.enterpriseUserId.low >>> 0, + object.enterpriseUserId.high >>> 0 + ).toNumber(); return message; }; @@ -233346,20 +242245,28 @@ export const BI = $root.BI = (() => { * @returns {Object.} Plain object */ GradientRemoveRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) if ($util.Long) { let long = new $util.Long(0, 0, false); - object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.enterpriseUserId = options.longs === String ? "0" : 0; - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (typeof message.enterpriseUserId === "number") - object.enterpriseUserId = options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; + object.enterpriseUserId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.enterpriseUserId = options.longs === String ? '0' : 0; + if (message.enterpriseUserId != null && message.hasOwnProperty('enterpriseUserId')) + if (typeof message.enterpriseUserId === 'number') + object.enterpriseUserId = + options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; else - object.enterpriseUserId = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseUserId) : options.longs === Number ? new $util.LongBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0).toNumber() : message.enterpriseUserId; + object.enterpriseUserId = + options.longs === String + ? $util.Long.prototype.toString.call(message.enterpriseUserId) + : options.longs === Number + ? new $util.LongBits( + message.enterpriseUserId.low >>> 0, + message.enterpriseUserId.high >>> 0 + ).toNumber() + : message.enterpriseUserId; return object; }; @@ -233384,16 +242291,15 @@ export const BI = $root.BI = (() => { */ GradientRemoveRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/BI.GradientRemoveRequest"; + return typeUrlPrefix + '/BI.GradientRemoveRequest'; }; return GradientRemoveRequest; })(); - BI.GradientRemoveResponse = (function() { - + BI.GradientRemoveResponse = (function () { /** * Properties of a GradientRemoveResponse. * @memberof BI @@ -233413,8 +242319,7 @@ export const BI = $root.BI = (() => { function GradientRemoveResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -233431,7 +242336,7 @@ export const BI = $root.BI = (() => { * @memberof BI.GradientRemoveResponse * @instance */ - GradientRemoveResponse.prototype.message = ""; + GradientRemoveResponse.prototype.message = ''; /** * Creates a new GradientRemoveResponse instance using the specified properties. @@ -233455,12 +242360,11 @@ export const BI = $root.BI = (() => { * @returns {$protobuf.Writer} Writer */ GradientRemoveResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.success != null && Object.hasOwnProperty.call(message, "success")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.success); - if (message.message != null && Object.hasOwnProperty.call(message, "message")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.message); + if (!writer) writer = $Writer.create(); + if (message.success != null && Object.hasOwnProperty.call(message, 'success')) + writer.uint32(/* id 1, wireType 0 =*/ 8).bool(message.success); + if (message.message != null && Object.hasOwnProperty.call(message, 'message')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.message); return writer; }; @@ -233489,23 +242393,23 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ GradientRemoveResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.GradientRemoveResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.BI.GradientRemoveResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.success = reader.bool(); break; } - case 2: { + case 2: { message.message = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -233522,8 +242426,7 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ GradientRemoveResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -233536,14 +242439,11 @@ export const BI = $root.BI = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ GradientRemoveResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.success != null && message.hasOwnProperty("success")) - if (typeof message.success !== "boolean") - return "success: boolean expected"; - if (message.message != null && message.hasOwnProperty("message")) - if (!$util.isString(message.message)) - return "message: string expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.success != null && message.hasOwnProperty('success')) + if (typeof message.success !== 'boolean') return 'success: boolean expected'; + if (message.message != null && message.hasOwnProperty('message')) + if (!$util.isString(message.message)) return 'message: string expected'; return null; }; @@ -233556,13 +242456,10 @@ export const BI = $root.BI = (() => { * @returns {BI.GradientRemoveResponse} GradientRemoveResponse */ GradientRemoveResponse.fromObject = function fromObject(object) { - if (object instanceof $root.BI.GradientRemoveResponse) - return object; + if (object instanceof $root.BI.GradientRemoveResponse) return object; let message = new $root.BI.GradientRemoveResponse(); - if (object.success != null) - message.success = Boolean(object.success); - if (object.message != null) - message.message = String(object.message); + if (object.success != null) message.success = Boolean(object.success); + if (object.message != null) message.message = String(object.message); return message; }; @@ -233576,17 +242473,14 @@ export const BI = $root.BI = (() => { * @returns {Object.} Plain object */ GradientRemoveResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { object.success = false; - object.message = ""; + object.message = ''; } - if (message.success != null && message.hasOwnProperty("success")) - object.success = message.success; - if (message.message != null && message.hasOwnProperty("message")) - object.message = message.message; + if (message.success != null && message.hasOwnProperty('success')) object.success = message.success; + if (message.message != null && message.hasOwnProperty('message')) object.message = message.message; return object; }; @@ -233611,16 +242505,15 @@ export const BI = $root.BI = (() => { */ GradientRemoveResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/BI.GradientRemoveResponse"; + return typeUrlPrefix + '/BI.GradientRemoveResponse'; }; return GradientRemoveResponse; })(); - BI.GradientSyncRequest = (function() { - + BI.GradientSyncRequest = (function () { /** * Properties of a GradientSyncRequest. * @memberof BI @@ -233639,8 +242532,7 @@ export const BI = $root.BI = (() => { function GradientSyncRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -233649,7 +242541,7 @@ export const BI = $root.BI = (() => { * @memberof BI.GradientSyncRequest * @instance */ - GradientSyncRequest.prototype.enterpriseUserId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + GradientSyncRequest.prototype.enterpriseUserId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * Creates a new GradientSyncRequest instance using the specified properties. @@ -233673,10 +242565,9 @@ export const BI = $root.BI = (() => { * @returns {$protobuf.Writer} Writer */ GradientSyncRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "enterpriseUserId")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.enterpriseUserId); + if (!writer) writer = $Writer.create(); + if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, 'enterpriseUserId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int64(message.enterpriseUserId); return writer; }; @@ -233705,19 +242596,19 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ GradientSyncRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.GradientSyncRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.BI.GradientSyncRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.enterpriseUserId = reader.int64(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -233734,8 +242625,7 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ GradientSyncRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -233748,11 +242638,17 @@ export const BI = $root.BI = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ GradientSyncRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (!$util.isInteger(message.enterpriseUserId) && !(message.enterpriseUserId && $util.isInteger(message.enterpriseUserId.low) && $util.isInteger(message.enterpriseUserId.high))) - return "enterpriseUserId: integer|Long expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.enterpriseUserId != null && message.hasOwnProperty('enterpriseUserId')) + if ( + !$util.isInteger(message.enterpriseUserId) && + !( + message.enterpriseUserId && + $util.isInteger(message.enterpriseUserId.low) && + $util.isInteger(message.enterpriseUserId.high) + ) + ) + return 'enterpriseUserId: integer|Long expected'; return null; }; @@ -233765,18 +242661,20 @@ export const BI = $root.BI = (() => { * @returns {BI.GradientSyncRequest} GradientSyncRequest */ GradientSyncRequest.fromObject = function fromObject(object) { - if (object instanceof $root.BI.GradientSyncRequest) - return object; + if (object instanceof $root.BI.GradientSyncRequest) return object; let message = new $root.BI.GradientSyncRequest(); if (object.enterpriseUserId != null) if ($util.Long) (message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId)).unsigned = false; - else if (typeof object.enterpriseUserId === "string") + else if (typeof object.enterpriseUserId === 'string') message.enterpriseUserId = parseInt(object.enterpriseUserId, 10); - else if (typeof object.enterpriseUserId === "number") + else if (typeof object.enterpriseUserId === 'number') message.enterpriseUserId = object.enterpriseUserId; - else if (typeof object.enterpriseUserId === "object") - message.enterpriseUserId = new $util.LongBits(object.enterpriseUserId.low >>> 0, object.enterpriseUserId.high >>> 0).toNumber(); + else if (typeof object.enterpriseUserId === 'object') + message.enterpriseUserId = new $util.LongBits( + object.enterpriseUserId.low >>> 0, + object.enterpriseUserId.high >>> 0 + ).toNumber(); return message; }; @@ -233790,20 +242688,28 @@ export const BI = $root.BI = (() => { * @returns {Object.} Plain object */ GradientSyncRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) if ($util.Long) { let long = new $util.Long(0, 0, false); - object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.enterpriseUserId = options.longs === String ? "0" : 0; - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (typeof message.enterpriseUserId === "number") - object.enterpriseUserId = options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; + object.enterpriseUserId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.enterpriseUserId = options.longs === String ? '0' : 0; + if (message.enterpriseUserId != null && message.hasOwnProperty('enterpriseUserId')) + if (typeof message.enterpriseUserId === 'number') + object.enterpriseUserId = + options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; else - object.enterpriseUserId = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseUserId) : options.longs === Number ? new $util.LongBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0).toNumber() : message.enterpriseUserId; + object.enterpriseUserId = + options.longs === String + ? $util.Long.prototype.toString.call(message.enterpriseUserId) + : options.longs === Number + ? new $util.LongBits( + message.enterpriseUserId.low >>> 0, + message.enterpriseUserId.high >>> 0 + ).toNumber() + : message.enterpriseUserId; return object; }; @@ -233828,16 +242734,15 @@ export const BI = $root.BI = (() => { */ GradientSyncRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/BI.GradientSyncRequest"; + return typeUrlPrefix + '/BI.GradientSyncRequest'; }; return GradientSyncRequest; })(); - BI.GradientSyncResponse = (function() { - + BI.GradientSyncResponse = (function () { /** * Properties of a GradientSyncResponse. * @memberof BI @@ -233858,8 +242763,7 @@ export const BI = $root.BI = (() => { function GradientSyncResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -233884,7 +242788,7 @@ export const BI = $root.BI = (() => { * @memberof BI.GradientSyncResponse * @instance */ - GradientSyncResponse.prototype.message = ""; + GradientSyncResponse.prototype.message = ''; /** * Creates a new GradientSyncResponse instance using the specified properties. @@ -233908,14 +242812,13 @@ export const BI = $root.BI = (() => { * @returns {$protobuf.Writer} Writer */ GradientSyncResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.success != null && Object.hasOwnProperty.call(message, "success")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.success); - if (message.status != null && Object.hasOwnProperty.call(message, "status")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.status); - if (message.message != null && Object.hasOwnProperty.call(message, "message")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.message); + if (!writer) writer = $Writer.create(); + if (message.success != null && Object.hasOwnProperty.call(message, 'success')) + writer.uint32(/* id 1, wireType 0 =*/ 8).bool(message.success); + if (message.status != null && Object.hasOwnProperty.call(message, 'status')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int32(message.status); + if (message.message != null && Object.hasOwnProperty.call(message, 'message')) + writer.uint32(/* id 3, wireType 2 =*/ 26).string(message.message); return writer; }; @@ -233944,27 +242847,27 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ GradientSyncResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.GradientSyncResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.BI.GradientSyncResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.success = reader.bool(); break; } - case 2: { + case 2: { message.status = reader.int32(); break; } - case 3: { + case 3: { message.message = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -233981,8 +242884,7 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ GradientSyncResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -233995,24 +242897,21 @@ export const BI = $root.BI = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ GradientSyncResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.success != null && message.hasOwnProperty("success")) - if (typeof message.success !== "boolean") - return "success: boolean expected"; - if (message.status != null && message.hasOwnProperty("status")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.success != null && message.hasOwnProperty('success')) + if (typeof message.success !== 'boolean') return 'success: boolean expected'; + if (message.status != null && message.hasOwnProperty('status')) switch (message.status) { - default: - return "status: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; + default: + return 'status: enum value expected'; + case 0: + case 1: + case 2: + case 3: + break; } - if (message.message != null && message.hasOwnProperty("message")) - if (!$util.isString(message.message)) - return "message: string expected"; + if (message.message != null && message.hasOwnProperty('message')) + if (!$util.isString(message.message)) return 'message: string expected'; return null; }; @@ -234025,37 +242924,34 @@ export const BI = $root.BI = (() => { * @returns {BI.GradientSyncResponse} GradientSyncResponse */ GradientSyncResponse.fromObject = function fromObject(object) { - if (object instanceof $root.BI.GradientSyncResponse) - return object; + if (object instanceof $root.BI.GradientSyncResponse) return object; let message = new $root.BI.GradientSyncResponse(); - if (object.success != null) - message.success = Boolean(object.success); + if (object.success != null) message.success = Boolean(object.success); switch (object.status) { - default: - if (typeof object.status === "number") { - message.status = object.status; - break; - } - break; - case "NOTCONNECTED": - case 0: - message.status = 0; - break; - case "PENDING": - case 1: - message.status = 1; - break; - case "CONNECTED": - case 2: - message.status = 2; - break; - case "NONE": - case 3: - message.status = 3; - break; + default: + if (typeof object.status === 'number') { + message.status = object.status; + break; + } + break; + case 'NOTCONNECTED': + case 0: + message.status = 0; + break; + case 'PENDING': + case 1: + message.status = 1; + break; + case 'CONNECTED': + case 2: + message.status = 2; + break; + case 'NONE': + case 3: + message.status = 3; + break; } - if (object.message != null) - message.message = String(object.message); + if (object.message != null) message.message = String(object.message); return message; }; @@ -234069,20 +242965,22 @@ export const BI = $root.BI = (() => { * @returns {Object.} Plain object */ GradientSyncResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { object.success = false; - object.status = options.enums === String ? "NOTCONNECTED" : 0; - object.message = ""; + object.status = options.enums === String ? 'NOTCONNECTED' : 0; + object.message = ''; } - if (message.success != null && message.hasOwnProperty("success")) - object.success = message.success; - if (message.status != null && message.hasOwnProperty("status")) - object.status = options.enums === String ? $root.BI.GradientIntegrationStatus[message.status] === undefined ? message.status : $root.BI.GradientIntegrationStatus[message.status] : message.status; - if (message.message != null && message.hasOwnProperty("message")) - object.message = message.message; + if (message.success != null && message.hasOwnProperty('success')) object.success = message.success; + if (message.status != null && message.hasOwnProperty('status')) + object.status = + options.enums === String + ? $root.BI.GradientIntegrationStatus[message.status] === undefined + ? message.status + : $root.BI.GradientIntegrationStatus[message.status] + : message.status; + if (message.message != null && message.hasOwnProperty('message')) object.message = message.message; return object; }; @@ -234107,9 +243005,9 @@ export const BI = $root.BI = (() => { */ GradientSyncResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/BI.GradientSyncResponse"; + return typeUrlPrefix + '/BI.GradientSyncResponse'; }; return GradientSyncResponse; @@ -234124,17 +243022,17 @@ export const BI = $root.BI = (() => { * @property {number} CONNECTED=2 CONNECTED value * @property {number} NONE=3 NONE value */ - BI.GradientIntegrationStatus = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "NOTCONNECTED"] = 0; - values[valuesById[1] = "PENDING"] = 1; - values[valuesById[2] = "CONNECTED"] = 2; - values[valuesById[3] = "NONE"] = 3; + BI.GradientIntegrationStatus = (function () { + const valuesById = {}, + values = Object.create(valuesById); + values[(valuesById[0] = 'NOTCONNECTED')] = 0; + values[(valuesById[1] = 'PENDING')] = 1; + values[(valuesById[2] = 'CONNECTED')] = 2; + values[(valuesById[3] = 'NONE')] = 3; return values; })(); - BI.NetPromoterScoreSurveySubmissionRequest = (function() { - + BI.NetPromoterScoreSurveySubmissionRequest = (function () { /** * Properties of a NetPromoterScoreSurveySubmissionRequest. * @memberof BI @@ -234154,8 +243052,7 @@ export const BI = $root.BI = (() => { function NetPromoterScoreSurveySubmissionRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -234172,7 +243069,7 @@ export const BI = $root.BI = (() => { * @memberof BI.NetPromoterScoreSurveySubmissionRequest * @instance */ - NetPromoterScoreSurveySubmissionRequest.prototype.notes = ""; + NetPromoterScoreSurveySubmissionRequest.prototype.notes = ''; /** * Creates a new NetPromoterScoreSurveySubmissionRequest instance using the specified properties. @@ -234196,12 +243093,11 @@ export const BI = $root.BI = (() => { * @returns {$protobuf.Writer} Writer */ NetPromoterScoreSurveySubmissionRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.surveyScore != null && Object.hasOwnProperty.call(message, "surveyScore")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.surveyScore); - if (message.notes != null && Object.hasOwnProperty.call(message, "notes")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.notes); + if (!writer) writer = $Writer.create(); + if (message.surveyScore != null && Object.hasOwnProperty.call(message, 'surveyScore')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int32(message.surveyScore); + if (message.notes != null && Object.hasOwnProperty.call(message, 'notes')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.notes); return writer; }; @@ -234230,23 +243126,23 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ NetPromoterScoreSurveySubmissionRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.NetPromoterScoreSurveySubmissionRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.BI.NetPromoterScoreSurveySubmissionRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.surveyScore = reader.int32(); break; } - case 2: { + case 2: { message.notes = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -234263,8 +243159,7 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ NetPromoterScoreSurveySubmissionRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -234277,14 +243172,11 @@ export const BI = $root.BI = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ NetPromoterScoreSurveySubmissionRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.surveyScore != null && message.hasOwnProperty("surveyScore")) - if (!$util.isInteger(message.surveyScore)) - return "surveyScore: integer expected"; - if (message.notes != null && message.hasOwnProperty("notes")) - if (!$util.isString(message.notes)) - return "notes: string expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.surveyScore != null && message.hasOwnProperty('surveyScore')) + if (!$util.isInteger(message.surveyScore)) return 'surveyScore: integer expected'; + if (message.notes != null && message.hasOwnProperty('notes')) + if (!$util.isString(message.notes)) return 'notes: string expected'; return null; }; @@ -234297,13 +243189,10 @@ export const BI = $root.BI = (() => { * @returns {BI.NetPromoterScoreSurveySubmissionRequest} NetPromoterScoreSurveySubmissionRequest */ NetPromoterScoreSurveySubmissionRequest.fromObject = function fromObject(object) { - if (object instanceof $root.BI.NetPromoterScoreSurveySubmissionRequest) - return object; + if (object instanceof $root.BI.NetPromoterScoreSurveySubmissionRequest) return object; let message = new $root.BI.NetPromoterScoreSurveySubmissionRequest(); - if (object.surveyScore != null) - message.surveyScore = object.surveyScore | 0; - if (object.notes != null) - message.notes = String(object.notes); + if (object.surveyScore != null) message.surveyScore = object.surveyScore | 0; + if (object.notes != null) message.notes = String(object.notes); return message; }; @@ -234317,17 +243206,15 @@ export const BI = $root.BI = (() => { * @returns {Object.} Plain object */ NetPromoterScoreSurveySubmissionRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { object.surveyScore = 0; - object.notes = ""; + object.notes = ''; } - if (message.surveyScore != null && message.hasOwnProperty("surveyScore")) + if (message.surveyScore != null && message.hasOwnProperty('surveyScore')) object.surveyScore = message.surveyScore; - if (message.notes != null && message.hasOwnProperty("notes")) - object.notes = message.notes; + if (message.notes != null && message.hasOwnProperty('notes')) object.notes = message.notes; return object; }; @@ -234352,16 +243239,15 @@ export const BI = $root.BI = (() => { */ NetPromoterScoreSurveySubmissionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/BI.NetPromoterScoreSurveySubmissionRequest"; + return typeUrlPrefix + '/BI.NetPromoterScoreSurveySubmissionRequest'; }; return NetPromoterScoreSurveySubmissionRequest; })(); - BI.NetPromoterScoreSurveySubmissionResponse = (function() { - + BI.NetPromoterScoreSurveySubmissionResponse = (function () { /** * Properties of a NetPromoterScoreSurveySubmissionResponse. * @memberof BI @@ -234379,8 +243265,7 @@ export const BI = $root.BI = (() => { function NetPromoterScoreSurveySubmissionResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -234405,8 +243290,7 @@ export const BI = $root.BI = (() => { * @returns {$protobuf.Writer} Writer */ NetPromoterScoreSurveySubmissionResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); return writer; }; @@ -234435,15 +243319,15 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ NetPromoterScoreSurveySubmissionResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.NetPromoterScoreSurveySubmissionResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.BI.NetPromoterScoreSurveySubmissionResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -234460,8 +243344,7 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ NetPromoterScoreSurveySubmissionResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -234474,8 +243357,7 @@ export const BI = $root.BI = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ NetPromoterScoreSurveySubmissionResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; return null; }; @@ -234488,8 +243370,7 @@ export const BI = $root.BI = (() => { * @returns {BI.NetPromoterScoreSurveySubmissionResponse} NetPromoterScoreSurveySubmissionResponse */ NetPromoterScoreSurveySubmissionResponse.fromObject = function fromObject(object) { - if (object instanceof $root.BI.NetPromoterScoreSurveySubmissionResponse) - return object; + if (object instanceof $root.BI.NetPromoterScoreSurveySubmissionResponse) return object; return new $root.BI.NetPromoterScoreSurveySubmissionResponse(); }; @@ -234527,16 +243408,15 @@ export const BI = $root.BI = (() => { */ NetPromoterScoreSurveySubmissionResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/BI.NetPromoterScoreSurveySubmissionResponse"; + return typeUrlPrefix + '/BI.NetPromoterScoreSurveySubmissionResponse'; }; return NetPromoterScoreSurveySubmissionResponse; })(); - BI.NetPromoterScorePopupScheduleRequest = (function() { - + BI.NetPromoterScorePopupScheduleRequest = (function () { /** * Properties of a NetPromoterScorePopupScheduleRequest. * @memberof BI @@ -234554,8 +243434,7 @@ export const BI = $root.BI = (() => { function NetPromoterScorePopupScheduleRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -234580,8 +243459,7 @@ export const BI = $root.BI = (() => { * @returns {$protobuf.Writer} Writer */ NetPromoterScorePopupScheduleRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); return writer; }; @@ -234610,15 +243488,15 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ NetPromoterScorePopupScheduleRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.NetPromoterScorePopupScheduleRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.BI.NetPromoterScorePopupScheduleRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -234635,8 +243513,7 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ NetPromoterScorePopupScheduleRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -234649,8 +243526,7 @@ export const BI = $root.BI = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ NetPromoterScorePopupScheduleRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; return null; }; @@ -234663,8 +243539,7 @@ export const BI = $root.BI = (() => { * @returns {BI.NetPromoterScorePopupScheduleRequest} NetPromoterScorePopupScheduleRequest */ NetPromoterScorePopupScheduleRequest.fromObject = function fromObject(object) { - if (object instanceof $root.BI.NetPromoterScorePopupScheduleRequest) - return object; + if (object instanceof $root.BI.NetPromoterScorePopupScheduleRequest) return object; return new $root.BI.NetPromoterScorePopupScheduleRequest(); }; @@ -234702,16 +243577,15 @@ export const BI = $root.BI = (() => { */ NetPromoterScorePopupScheduleRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/BI.NetPromoterScorePopupScheduleRequest"; + return typeUrlPrefix + '/BI.NetPromoterScorePopupScheduleRequest'; }; return NetPromoterScorePopupScheduleRequest; })(); - BI.NetPromoterScorePopupScheduleResponse = (function() { - + BI.NetPromoterScorePopupScheduleResponse = (function () { /** * Properties of a NetPromoterScorePopupScheduleResponse. * @memberof BI @@ -234730,8 +243604,7 @@ export const BI = $root.BI = (() => { function NetPromoterScorePopupScheduleResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -234764,10 +243637,9 @@ export const BI = $root.BI = (() => { * @returns {$protobuf.Writer} Writer */ NetPromoterScorePopupScheduleResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.showPopup != null && Object.hasOwnProperty.call(message, "showPopup")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.showPopup); + if (!writer) writer = $Writer.create(); + if (message.showPopup != null && Object.hasOwnProperty.call(message, 'showPopup')) + writer.uint32(/* id 1, wireType 0 =*/ 8).bool(message.showPopup); return writer; }; @@ -234796,19 +243668,19 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ NetPromoterScorePopupScheduleResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.NetPromoterScorePopupScheduleResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.BI.NetPromoterScorePopupScheduleResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.showPopup = reader.bool(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -234825,8 +243697,7 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ NetPromoterScorePopupScheduleResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -234839,11 +243710,9 @@ export const BI = $root.BI = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ NetPromoterScorePopupScheduleResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.showPopup != null && message.hasOwnProperty("showPopup")) - if (typeof message.showPopup !== "boolean") - return "showPopup: boolean expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.showPopup != null && message.hasOwnProperty('showPopup')) + if (typeof message.showPopup !== 'boolean') return 'showPopup: boolean expected'; return null; }; @@ -234856,11 +243725,9 @@ export const BI = $root.BI = (() => { * @returns {BI.NetPromoterScorePopupScheduleResponse} NetPromoterScorePopupScheduleResponse */ NetPromoterScorePopupScheduleResponse.fromObject = function fromObject(object) { - if (object instanceof $root.BI.NetPromoterScorePopupScheduleResponse) - return object; + if (object instanceof $root.BI.NetPromoterScorePopupScheduleResponse) return object; let message = new $root.BI.NetPromoterScorePopupScheduleResponse(); - if (object.showPopup != null) - message.showPopup = Boolean(object.showPopup); + if (object.showPopup != null) message.showPopup = Boolean(object.showPopup); return message; }; @@ -234874,13 +243741,10 @@ export const BI = $root.BI = (() => { * @returns {Object.} Plain object */ NetPromoterScorePopupScheduleResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.defaults) - object.showPopup = false; - if (message.showPopup != null && message.hasOwnProperty("showPopup")) - object.showPopup = message.showPopup; + if (options.defaults) object.showPopup = false; + if (message.showPopup != null && message.hasOwnProperty('showPopup')) object.showPopup = message.showPopup; return object; }; @@ -234905,16 +243769,15 @@ export const BI = $root.BI = (() => { */ NetPromoterScorePopupScheduleResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/BI.NetPromoterScorePopupScheduleResponse"; + return typeUrlPrefix + '/BI.NetPromoterScorePopupScheduleResponse'; }; return NetPromoterScorePopupScheduleResponse; })(); - BI.NetPromoterScorePopupDismissalRequest = (function() { - + BI.NetPromoterScorePopupDismissalRequest = (function () { /** * Properties of a NetPromoterScorePopupDismissalRequest. * @memberof BI @@ -234932,8 +243795,7 @@ export const BI = $root.BI = (() => { function NetPromoterScorePopupDismissalRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -234958,8 +243820,7 @@ export const BI = $root.BI = (() => { * @returns {$protobuf.Writer} Writer */ NetPromoterScorePopupDismissalRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); return writer; }; @@ -234988,15 +243849,15 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ NetPromoterScorePopupDismissalRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.NetPromoterScorePopupDismissalRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.BI.NetPromoterScorePopupDismissalRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -235013,8 +243874,7 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ NetPromoterScorePopupDismissalRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -235027,8 +243887,7 @@ export const BI = $root.BI = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ NetPromoterScorePopupDismissalRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; return null; }; @@ -235041,8 +243900,7 @@ export const BI = $root.BI = (() => { * @returns {BI.NetPromoterScorePopupDismissalRequest} NetPromoterScorePopupDismissalRequest */ NetPromoterScorePopupDismissalRequest.fromObject = function fromObject(object) { - if (object instanceof $root.BI.NetPromoterScorePopupDismissalRequest) - return object; + if (object instanceof $root.BI.NetPromoterScorePopupDismissalRequest) return object; return new $root.BI.NetPromoterScorePopupDismissalRequest(); }; @@ -235080,16 +243938,15 @@ export const BI = $root.BI = (() => { */ NetPromoterScorePopupDismissalRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/BI.NetPromoterScorePopupDismissalRequest"; + return typeUrlPrefix + '/BI.NetPromoterScorePopupDismissalRequest'; }; return NetPromoterScorePopupDismissalRequest; })(); - BI.NetPromoterScorePopupDismissalResponse = (function() { - + BI.NetPromoterScorePopupDismissalResponse = (function () { /** * Properties of a NetPromoterScorePopupDismissalResponse. * @memberof BI @@ -235107,8 +243964,7 @@ export const BI = $root.BI = (() => { function NetPromoterScorePopupDismissalResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -235133,8 +243989,7 @@ export const BI = $root.BI = (() => { * @returns {$protobuf.Writer} Writer */ NetPromoterScorePopupDismissalResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); return writer; }; @@ -235163,15 +244018,15 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ NetPromoterScorePopupDismissalResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.NetPromoterScorePopupDismissalResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.BI.NetPromoterScorePopupDismissalResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -235188,8 +244043,7 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ NetPromoterScorePopupDismissalResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -235202,8 +244056,7 @@ export const BI = $root.BI = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ NetPromoterScorePopupDismissalResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; return null; }; @@ -235216,8 +244069,7 @@ export const BI = $root.BI = (() => { * @returns {BI.NetPromoterScorePopupDismissalResponse} NetPromoterScorePopupDismissalResponse */ NetPromoterScorePopupDismissalResponse.fromObject = function fromObject(object) { - if (object instanceof $root.BI.NetPromoterScorePopupDismissalResponse) - return object; + if (object instanceof $root.BI.NetPromoterScorePopupDismissalResponse) return object; return new $root.BI.NetPromoterScorePopupDismissalResponse(); }; @@ -235255,16 +244107,15 @@ export const BI = $root.BI = (() => { */ NetPromoterScorePopupDismissalResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/BI.NetPromoterScorePopupDismissalResponse"; + return typeUrlPrefix + '/BI.NetPromoterScorePopupDismissalResponse'; }; return NetPromoterScorePopupDismissalResponse; })(); - BI.KCMLicenseRequest = (function() { - + BI.KCMLicenseRequest = (function () { /** * Properties of a KCMLicenseRequest. * @memberof BI @@ -235283,8 +244134,7 @@ export const BI = $root.BI = (() => { function KCMLicenseRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -235293,7 +244143,7 @@ export const BI = $root.BI = (() => { * @memberof BI.KCMLicenseRequest * @instance */ - KCMLicenseRequest.prototype.enterpriseUserId = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + KCMLicenseRequest.prototype.enterpriseUserId = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * Creates a new KCMLicenseRequest instance using the specified properties. @@ -235317,10 +244167,9 @@ export const BI = $root.BI = (() => { * @returns {$protobuf.Writer} Writer */ KCMLicenseRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, "enterpriseUserId")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.enterpriseUserId); + if (!writer) writer = $Writer.create(); + if (message.enterpriseUserId != null && Object.hasOwnProperty.call(message, 'enterpriseUserId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int64(message.enterpriseUserId); return writer; }; @@ -235349,19 +244198,19 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ KCMLicenseRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.KCMLicenseRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.BI.KCMLicenseRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.enterpriseUserId = reader.int64(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -235378,8 +244227,7 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ KCMLicenseRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -235392,11 +244240,17 @@ export const BI = $root.BI = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ KCMLicenseRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (!$util.isInteger(message.enterpriseUserId) && !(message.enterpriseUserId && $util.isInteger(message.enterpriseUserId.low) && $util.isInteger(message.enterpriseUserId.high))) - return "enterpriseUserId: integer|Long expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.enterpriseUserId != null && message.hasOwnProperty('enterpriseUserId')) + if ( + !$util.isInteger(message.enterpriseUserId) && + !( + message.enterpriseUserId && + $util.isInteger(message.enterpriseUserId.low) && + $util.isInteger(message.enterpriseUserId.high) + ) + ) + return 'enterpriseUserId: integer|Long expected'; return null; }; @@ -235409,18 +244263,20 @@ export const BI = $root.BI = (() => { * @returns {BI.KCMLicenseRequest} KCMLicenseRequest */ KCMLicenseRequest.fromObject = function fromObject(object) { - if (object instanceof $root.BI.KCMLicenseRequest) - return object; + if (object instanceof $root.BI.KCMLicenseRequest) return object; let message = new $root.BI.KCMLicenseRequest(); if (object.enterpriseUserId != null) if ($util.Long) (message.enterpriseUserId = $util.Long.fromValue(object.enterpriseUserId)).unsigned = false; - else if (typeof object.enterpriseUserId === "string") + else if (typeof object.enterpriseUserId === 'string') message.enterpriseUserId = parseInt(object.enterpriseUserId, 10); - else if (typeof object.enterpriseUserId === "number") + else if (typeof object.enterpriseUserId === 'number') message.enterpriseUserId = object.enterpriseUserId; - else if (typeof object.enterpriseUserId === "object") - message.enterpriseUserId = new $util.LongBits(object.enterpriseUserId.low >>> 0, object.enterpriseUserId.high >>> 0).toNumber(); + else if (typeof object.enterpriseUserId === 'object') + message.enterpriseUserId = new $util.LongBits( + object.enterpriseUserId.low >>> 0, + object.enterpriseUserId.high >>> 0 + ).toNumber(); return message; }; @@ -235434,20 +244290,28 @@ export const BI = $root.BI = (() => { * @returns {Object.} Plain object */ KCMLicenseRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) if ($util.Long) { let long = new $util.Long(0, 0, false); - object.enterpriseUserId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.enterpriseUserId = options.longs === String ? "0" : 0; - if (message.enterpriseUserId != null && message.hasOwnProperty("enterpriseUserId")) - if (typeof message.enterpriseUserId === "number") - object.enterpriseUserId = options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; + object.enterpriseUserId = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.enterpriseUserId = options.longs === String ? '0' : 0; + if (message.enterpriseUserId != null && message.hasOwnProperty('enterpriseUserId')) + if (typeof message.enterpriseUserId === 'number') + object.enterpriseUserId = + options.longs === String ? String(message.enterpriseUserId) : message.enterpriseUserId; else - object.enterpriseUserId = options.longs === String ? $util.Long.prototype.toString.call(message.enterpriseUserId) : options.longs === Number ? new $util.LongBits(message.enterpriseUserId.low >>> 0, message.enterpriseUserId.high >>> 0).toNumber() : message.enterpriseUserId; + object.enterpriseUserId = + options.longs === String + ? $util.Long.prototype.toString.call(message.enterpriseUserId) + : options.longs === Number + ? new $util.LongBits( + message.enterpriseUserId.low >>> 0, + message.enterpriseUserId.high >>> 0 + ).toNumber() + : message.enterpriseUserId; return object; }; @@ -235472,16 +244336,15 @@ export const BI = $root.BI = (() => { */ KCMLicenseRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/BI.KCMLicenseRequest"; + return typeUrlPrefix + '/BI.KCMLicenseRequest'; }; return KCMLicenseRequest; })(); - BI.KCMLicenseResponse = (function() { - + BI.KCMLicenseResponse = (function () { /** * Properties of a KCMLicenseResponse. * @memberof BI @@ -235500,8 +244363,7 @@ export const BI = $root.BI = (() => { function KCMLicenseResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -235510,7 +244372,7 @@ export const BI = $root.BI = (() => { * @memberof BI.KCMLicenseResponse * @instance */ - KCMLicenseResponse.prototype.message = ""; + KCMLicenseResponse.prototype.message = ''; /** * Creates a new KCMLicenseResponse instance using the specified properties. @@ -235534,10 +244396,9 @@ export const BI = $root.BI = (() => { * @returns {$protobuf.Writer} Writer */ KCMLicenseResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.message != null && Object.hasOwnProperty.call(message, "message")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.message); + if (!writer) writer = $Writer.create(); + if (message.message != null && Object.hasOwnProperty.call(message, 'message')) + writer.uint32(/* id 1, wireType 2 =*/ 10).string(message.message); return writer; }; @@ -235566,19 +244427,19 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ KCMLicenseResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.KCMLicenseResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.BI.KCMLicenseResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.message = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -235595,8 +244456,7 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ KCMLicenseResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -235609,11 +244469,9 @@ export const BI = $root.BI = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ KCMLicenseResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.message != null && message.hasOwnProperty("message")) - if (!$util.isString(message.message)) - return "message: string expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.message != null && message.hasOwnProperty('message')) + if (!$util.isString(message.message)) return 'message: string expected'; return null; }; @@ -235626,11 +244484,9 @@ export const BI = $root.BI = (() => { * @returns {BI.KCMLicenseResponse} KCMLicenseResponse */ KCMLicenseResponse.fromObject = function fromObject(object) { - if (object instanceof $root.BI.KCMLicenseResponse) - return object; + if (object instanceof $root.BI.KCMLicenseResponse) return object; let message = new $root.BI.KCMLicenseResponse(); - if (object.message != null) - message.message = String(object.message); + if (object.message != null) message.message = String(object.message); return message; }; @@ -235644,13 +244500,10 @@ export const BI = $root.BI = (() => { * @returns {Object.} Plain object */ KCMLicenseResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.defaults) - object.message = ""; - if (message.message != null && message.hasOwnProperty("message")) - object.message = message.message; + if (options.defaults) object.message = ''; + if (message.message != null && message.hasOwnProperty('message')) object.message = message.message; return object; }; @@ -235675,9 +244528,9 @@ export const BI = $root.BI = (() => { */ KCMLicenseResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/BI.KCMLicenseResponse"; + return typeUrlPrefix + '/BI.KCMLicenseResponse'; }; return KCMLicenseResponse; @@ -235696,21 +244549,21 @@ export const BI = $root.BI = (() => { * @property {number} CONSOLE_ACTION=6 CONSOLE_ACTION value * @property {number} VAULT_ACTION=7 VAULT_ACTION value */ - BI.EventType = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "UNKNOWN_TRACKING_EVENT_TYPE"] = 0; - values[valuesById[1] = "TRACKING_POPUP_DISPLAYED"] = 1; - values[valuesById[2] = "TRACKING_POPUP_ACCEPTED"] = 2; - values[valuesById[3] = "TRACKING_POPUP_DISMISSED"] = 3; - values[valuesById[4] = "TRACKING_POPUP_PAID"] = 4; - values[valuesById[5] = "TRACKING_PUSH_CLICKED"] = 5; - values[valuesById[6] = "CONSOLE_ACTION"] = 6; - values[valuesById[7] = "VAULT_ACTION"] = 7; + BI.EventType = (function () { + const valuesById = {}, + values = Object.create(valuesById); + values[(valuesById[0] = 'UNKNOWN_TRACKING_EVENT_TYPE')] = 0; + values[(valuesById[1] = 'TRACKING_POPUP_DISPLAYED')] = 1; + values[(valuesById[2] = 'TRACKING_POPUP_ACCEPTED')] = 2; + values[(valuesById[3] = 'TRACKING_POPUP_DISMISSED')] = 3; + values[(valuesById[4] = 'TRACKING_POPUP_PAID')] = 4; + values[(valuesById[5] = 'TRACKING_PUSH_CLICKED')] = 5; + values[(valuesById[6] = 'CONSOLE_ACTION')] = 6; + values[(valuesById[7] = 'VAULT_ACTION')] = 7; return values; })(); - BI.EventRequest = (function() { - + BI.EventRequest = (function () { /** * Properties of an EventRequest. * @memberof BI @@ -235732,8 +244585,7 @@ export const BI = $root.BI = (() => { function EventRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -235750,7 +244602,7 @@ export const BI = $root.BI = (() => { * @memberof BI.EventRequest * @instance */ - EventRequest.prototype.eventValue = ""; + EventRequest.prototype.eventValue = ''; /** * EventRequest eventTime. @@ -235758,7 +244610,7 @@ export const BI = $root.BI = (() => { * @memberof BI.EventRequest * @instance */ - EventRequest.prototype.eventTime = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + EventRequest.prototype.eventTime = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * EventRequest attributes. @@ -235790,16 +244642,18 @@ export const BI = $root.BI = (() => { * @returns {$protobuf.Writer} Writer */ EventRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.eventType != null && Object.hasOwnProperty.call(message, "eventType")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.eventType); - if (message.eventValue != null && Object.hasOwnProperty.call(message, "eventValue")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.eventValue); - if (message.eventTime != null && Object.hasOwnProperty.call(message, "eventTime")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.eventTime); - if (message.attributes != null && Object.hasOwnProperty.call(message, "attributes")) - $root.google.protobuf.Struct.encode(message.attributes, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (!writer) writer = $Writer.create(); + if (message.eventType != null && Object.hasOwnProperty.call(message, 'eventType')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int32(message.eventType); + if (message.eventValue != null && Object.hasOwnProperty.call(message, 'eventValue')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.eventValue); + if (message.eventTime != null && Object.hasOwnProperty.call(message, 'eventTime')) + writer.uint32(/* id 3, wireType 0 =*/ 24).int64(message.eventTime); + if (message.attributes != null && Object.hasOwnProperty.call(message, 'attributes')) + $root.google.protobuf.Struct.encode( + message.attributes, + writer.uint32(/* id 4, wireType 2 =*/ 34).fork() + ).ldelim(); return writer; }; @@ -235828,31 +244682,31 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ EventRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.EventRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.BI.EventRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.eventType = reader.int32(); break; } - case 2: { + case 2: { message.eventValue = reader.string(); break; } - case 3: { + case 3: { message.eventTime = reader.int64(); break; } - case 4: { + case 4: { message.attributes = $root.google.protobuf.Struct.decode(reader, reader.uint32()); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -235869,8 +244723,7 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ EventRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -235883,32 +244736,36 @@ export const BI = $root.BI = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ EventRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.eventType != null && message.hasOwnProperty("eventType")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.eventType != null && message.hasOwnProperty('eventType')) switch (message.eventType) { - default: - return "eventType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - break; + default: + return 'eventType: enum value expected'; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + break; } - if (message.eventValue != null && message.hasOwnProperty("eventValue")) - if (!$util.isString(message.eventValue)) - return "eventValue: string expected"; - if (message.eventTime != null && message.hasOwnProperty("eventTime")) - if (!$util.isInteger(message.eventTime) && !(message.eventTime && $util.isInteger(message.eventTime.low) && $util.isInteger(message.eventTime.high))) - return "eventTime: integer|Long expected"; - if (message.attributes != null && message.hasOwnProperty("attributes")) { + if (message.eventValue != null && message.hasOwnProperty('eventValue')) + if (!$util.isString(message.eventValue)) return 'eventValue: string expected'; + if (message.eventTime != null && message.hasOwnProperty('eventTime')) + if ( + !$util.isInteger(message.eventTime) && + !( + message.eventTime && + $util.isInteger(message.eventTime.low) && + $util.isInteger(message.eventTime.high) + ) + ) + return 'eventTime: integer|Long expected'; + if (message.attributes != null && message.hasOwnProperty('attributes')) { let error = $root.google.protobuf.Struct.verify(message.attributes); - if (error) - return "attributes." + error; + if (error) return 'attributes.' + error; } return null; }; @@ -235922,63 +244779,61 @@ export const BI = $root.BI = (() => { * @returns {BI.EventRequest} EventRequest */ EventRequest.fromObject = function fromObject(object) { - if (object instanceof $root.BI.EventRequest) - return object; + if (object instanceof $root.BI.EventRequest) return object; let message = new $root.BI.EventRequest(); switch (object.eventType) { - default: - if (typeof object.eventType === "number") { - message.eventType = object.eventType; - break; - } - break; - case "UNKNOWN_TRACKING_EVENT_TYPE": - case 0: - message.eventType = 0; - break; - case "TRACKING_POPUP_DISPLAYED": - case 1: - message.eventType = 1; - break; - case "TRACKING_POPUP_ACCEPTED": - case 2: - message.eventType = 2; - break; - case "TRACKING_POPUP_DISMISSED": - case 3: - message.eventType = 3; - break; - case "TRACKING_POPUP_PAID": - case 4: - message.eventType = 4; - break; - case "TRACKING_PUSH_CLICKED": - case 5: - message.eventType = 5; - break; - case "CONSOLE_ACTION": - case 6: - message.eventType = 6; - break; - case "VAULT_ACTION": - case 7: - message.eventType = 7; - break; - } - if (object.eventValue != null) - message.eventValue = String(object.eventValue); + default: + if (typeof object.eventType === 'number') { + message.eventType = object.eventType; + break; + } + break; + case 'UNKNOWN_TRACKING_EVENT_TYPE': + case 0: + message.eventType = 0; + break; + case 'TRACKING_POPUP_DISPLAYED': + case 1: + message.eventType = 1; + break; + case 'TRACKING_POPUP_ACCEPTED': + case 2: + message.eventType = 2; + break; + case 'TRACKING_POPUP_DISMISSED': + case 3: + message.eventType = 3; + break; + case 'TRACKING_POPUP_PAID': + case 4: + message.eventType = 4; + break; + case 'TRACKING_PUSH_CLICKED': + case 5: + message.eventType = 5; + break; + case 'CONSOLE_ACTION': + case 6: + message.eventType = 6; + break; + case 'VAULT_ACTION': + case 7: + message.eventType = 7; + break; + } + if (object.eventValue != null) message.eventValue = String(object.eventValue); if (object.eventTime != null) - if ($util.Long) - (message.eventTime = $util.Long.fromValue(object.eventTime)).unsigned = false; - else if (typeof object.eventTime === "string") - message.eventTime = parseInt(object.eventTime, 10); - else if (typeof object.eventTime === "number") - message.eventTime = object.eventTime; - else if (typeof object.eventTime === "object") - message.eventTime = new $util.LongBits(object.eventTime.low >>> 0, object.eventTime.high >>> 0).toNumber(); + if ($util.Long) (message.eventTime = $util.Long.fromValue(object.eventTime)).unsigned = false; + else if (typeof object.eventTime === 'string') message.eventTime = parseInt(object.eventTime, 10); + else if (typeof object.eventTime === 'number') message.eventTime = object.eventTime; + else if (typeof object.eventTime === 'object') + message.eventTime = new $util.LongBits( + object.eventTime.low >>> 0, + object.eventTime.high >>> 0 + ).toNumber(); if (object.attributes != null) { - if (typeof object.attributes !== "object") - throw TypeError(".BI.EventRequest.attributes: object expected"); + if (typeof object.attributes !== 'object') + throw TypeError('.BI.EventRequest.attributes: object expected'); message.attributes = $root.google.protobuf.Struct.fromObject(object.attributes); } return message; @@ -235994,29 +244849,38 @@ export const BI = $root.BI = (() => { * @returns {Object.} Plain object */ EventRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - object.eventType = options.enums === String ? "UNKNOWN_TRACKING_EVENT_TYPE" : 0; - object.eventValue = ""; + object.eventType = options.enums === String ? 'UNKNOWN_TRACKING_EVENT_TYPE' : 0; + object.eventValue = ''; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.eventTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.eventTime = options.longs === String ? "0" : 0; + object.eventTime = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.eventTime = options.longs === String ? '0' : 0; object.attributes = null; } - if (message.eventType != null && message.hasOwnProperty("eventType")) - object.eventType = options.enums === String ? $root.BI.EventType[message.eventType] === undefined ? message.eventType : $root.BI.EventType[message.eventType] : message.eventType; - if (message.eventValue != null && message.hasOwnProperty("eventValue")) + if (message.eventType != null && message.hasOwnProperty('eventType')) + object.eventType = + options.enums === String + ? $root.BI.EventType[message.eventType] === undefined + ? message.eventType + : $root.BI.EventType[message.eventType] + : message.eventType; + if (message.eventValue != null && message.hasOwnProperty('eventValue')) object.eventValue = message.eventValue; - if (message.eventTime != null && message.hasOwnProperty("eventTime")) - if (typeof message.eventTime === "number") + if (message.eventTime != null && message.hasOwnProperty('eventTime')) + if (typeof message.eventTime === 'number') object.eventTime = options.longs === String ? String(message.eventTime) : message.eventTime; else - object.eventTime = options.longs === String ? $util.Long.prototype.toString.call(message.eventTime) : options.longs === Number ? new $util.LongBits(message.eventTime.low >>> 0, message.eventTime.high >>> 0).toNumber() : message.eventTime; - if (message.attributes != null && message.hasOwnProperty("attributes")) + object.eventTime = + options.longs === String + ? $util.Long.prototype.toString.call(message.eventTime) + : options.longs === Number + ? new $util.LongBits(message.eventTime.low >>> 0, message.eventTime.high >>> 0).toNumber() + : message.eventTime; + if (message.attributes != null && message.hasOwnProperty('attributes')) object.attributes = $root.google.protobuf.Struct.toObject(message.attributes, options); return object; }; @@ -236042,16 +244906,15 @@ export const BI = $root.BI = (() => { */ EventRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/BI.EventRequest"; + return typeUrlPrefix + '/BI.EventRequest'; }; return EventRequest; })(); - BI.EventsRequest = (function() { - + BI.EventsRequest = (function () { /** * Properties of an EventsRequest. * @memberof BI @@ -236071,8 +244934,7 @@ export const BI = $root.BI = (() => { this.event = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -236105,11 +244967,13 @@ export const BI = $root.BI = (() => { * @returns {$protobuf.Writer} Writer */ EventsRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.event != null && message.event.length) for (let i = 0; i < message.event.length; ++i) - $root.BI.EventRequest.encode(message.event[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.BI.EventRequest.encode( + message.event[i], + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); return writer; }; @@ -236138,21 +245002,20 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ EventsRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.EventsRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.BI.EventsRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (!(message.event && message.event.length)) - message.event = []; + case 1: { + if (!(message.event && message.event.length)) message.event = []; message.event.push($root.BI.EventRequest.decode(reader, reader.uint32())); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -236169,8 +245032,7 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ EventsRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -236183,15 +245045,12 @@ export const BI = $root.BI = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ EventsRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.event != null && message.hasOwnProperty("event")) { - if (!Array.isArray(message.event)) - return "event: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.event != null && message.hasOwnProperty('event')) { + if (!Array.isArray(message.event)) return 'event: array expected'; for (let i = 0; i < message.event.length; ++i) { let error = $root.BI.EventRequest.verify(message.event[i]); - if (error) - return "event." + error; + if (error) return 'event.' + error; } } return null; @@ -236206,16 +245065,14 @@ export const BI = $root.BI = (() => { * @returns {BI.EventsRequest} EventsRequest */ EventsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.BI.EventsRequest) - return object; + if (object instanceof $root.BI.EventsRequest) return object; let message = new $root.BI.EventsRequest(); if (object.event) { - if (!Array.isArray(object.event)) - throw TypeError(".BI.EventsRequest.event: array expected"); + if (!Array.isArray(object.event)) throw TypeError('.BI.EventsRequest.event: array expected'); message.event = []; for (let i = 0; i < object.event.length; ++i) { - if (typeof object.event[i] !== "object") - throw TypeError(".BI.EventsRequest.event: object expected"); + if (typeof object.event[i] !== 'object') + throw TypeError('.BI.EventsRequest.event: object expected'); message.event[i] = $root.BI.EventRequest.fromObject(object.event[i]); } } @@ -236232,11 +245089,9 @@ export const BI = $root.BI = (() => { * @returns {Object.} Plain object */ EventsRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.event = []; + if (options.arrays || options.defaults) object.event = []; if (message.event && message.event.length) { object.event = []; for (let j = 0; j < message.event.length; ++j) @@ -236266,16 +245121,15 @@ export const BI = $root.BI = (() => { */ EventsRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/BI.EventsRequest"; + return typeUrlPrefix + '/BI.EventsRequest'; }; return EventsRequest; })(); - BI.EventResponse = (function() { - + BI.EventResponse = (function () { /** * Properties of an EventResponse. * @memberof BI @@ -236295,8 +245149,7 @@ export const BI = $root.BI = (() => { function EventResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -236337,12 +245190,11 @@ export const BI = $root.BI = (() => { * @returns {$protobuf.Writer} Writer */ EventResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.index != null && Object.hasOwnProperty.call(message, "index")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.index); - if (message.status != null && Object.hasOwnProperty.call(message, "status")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.status); + if (!writer) writer = $Writer.create(); + if (message.index != null && Object.hasOwnProperty.call(message, 'index')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int32(message.index); + if (message.status != null && Object.hasOwnProperty.call(message, 'status')) + writer.uint32(/* id 2, wireType 0 =*/ 16).bool(message.status); return writer; }; @@ -236371,23 +245223,23 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ EventResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.EventResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.BI.EventResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.index = reader.int32(); break; } - case 2: { + case 2: { message.status = reader.bool(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -236404,8 +245256,7 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ EventResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -236418,14 +245269,11 @@ export const BI = $root.BI = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ EventResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.index != null && message.hasOwnProperty("index")) - if (!$util.isInteger(message.index)) - return "index: integer expected"; - if (message.status != null && message.hasOwnProperty("status")) - if (typeof message.status !== "boolean") - return "status: boolean expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.index != null && message.hasOwnProperty('index')) + if (!$util.isInteger(message.index)) return 'index: integer expected'; + if (message.status != null && message.hasOwnProperty('status')) + if (typeof message.status !== 'boolean') return 'status: boolean expected'; return null; }; @@ -236438,13 +245286,10 @@ export const BI = $root.BI = (() => { * @returns {BI.EventResponse} EventResponse */ EventResponse.fromObject = function fromObject(object) { - if (object instanceof $root.BI.EventResponse) - return object; + if (object instanceof $root.BI.EventResponse) return object; let message = new $root.BI.EventResponse(); - if (object.index != null) - message.index = object.index | 0; - if (object.status != null) - message.status = Boolean(object.status); + if (object.index != null) message.index = object.index | 0; + if (object.status != null) message.status = Boolean(object.status); return message; }; @@ -236458,17 +245303,14 @@ export const BI = $root.BI = (() => { * @returns {Object.} Plain object */ EventResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { object.index = 0; object.status = false; } - if (message.index != null && message.hasOwnProperty("index")) - object.index = message.index; - if (message.status != null && message.hasOwnProperty("status")) - object.status = message.status; + if (message.index != null && message.hasOwnProperty('index')) object.index = message.index; + if (message.status != null && message.hasOwnProperty('status')) object.status = message.status; return object; }; @@ -236493,16 +245335,15 @@ export const BI = $root.BI = (() => { */ EventResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/BI.EventResponse"; + return typeUrlPrefix + '/BI.EventResponse'; }; return EventResponse; })(); - BI.EventsResponse = (function() { - + BI.EventsResponse = (function () { /** * Properties of an EventsResponse. * @memberof BI @@ -236522,8 +245363,7 @@ export const BI = $root.BI = (() => { this.response = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -236556,11 +245396,13 @@ export const BI = $root.BI = (() => { * @returns {$protobuf.Writer} Writer */ EventsResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.response != null && message.response.length) for (let i = 0; i < message.response.length; ++i) - $root.BI.EventResponse.encode(message.response[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.BI.EventResponse.encode( + message.response[i], + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); return writer; }; @@ -236589,21 +245431,20 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ EventsResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.EventsResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.BI.EventsResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (!(message.response && message.response.length)) - message.response = []; + case 1: { + if (!(message.response && message.response.length)) message.response = []; message.response.push($root.BI.EventResponse.decode(reader, reader.uint32())); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -236620,8 +245461,7 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ EventsResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -236634,15 +245474,12 @@ export const BI = $root.BI = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ EventsResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.response != null && message.hasOwnProperty("response")) { - if (!Array.isArray(message.response)) - return "response: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.response != null && message.hasOwnProperty('response')) { + if (!Array.isArray(message.response)) return 'response: array expected'; for (let i = 0; i < message.response.length; ++i) { let error = $root.BI.EventResponse.verify(message.response[i]); - if (error) - return "response." + error; + if (error) return 'response.' + error; } } return null; @@ -236657,16 +245494,14 @@ export const BI = $root.BI = (() => { * @returns {BI.EventsResponse} EventsResponse */ EventsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.BI.EventsResponse) - return object; + if (object instanceof $root.BI.EventsResponse) return object; let message = new $root.BI.EventsResponse(); if (object.response) { - if (!Array.isArray(object.response)) - throw TypeError(".BI.EventsResponse.response: array expected"); + if (!Array.isArray(object.response)) throw TypeError('.BI.EventsResponse.response: array expected'); message.response = []; for (let i = 0; i < object.response.length; ++i) { - if (typeof object.response[i] !== "object") - throw TypeError(".BI.EventsResponse.response: object expected"); + if (typeof object.response[i] !== 'object') + throw TypeError('.BI.EventsResponse.response: object expected'); message.response[i] = $root.BI.EventResponse.fromObject(object.response[i]); } } @@ -236683,11 +245518,9 @@ export const BI = $root.BI = (() => { * @returns {Object.} Plain object */ EventsResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.response = []; + if (options.arrays || options.defaults) object.response = []; if (message.response && message.response.length) { object.response = []; for (let j = 0; j < message.response.length; ++j) @@ -236717,16 +245550,15 @@ export const BI = $root.BI = (() => { */ EventsResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/BI.EventsResponse"; + return typeUrlPrefix + '/BI.EventsResponse'; }; return EventsResponse; })(); - BI.CustomerCaptureRequest = (function() { - + BI.CustomerCaptureRequest = (function () { /** * Properties of a CustomerCaptureRequest. * @memberof BI @@ -236753,8 +245585,7 @@ export const BI = $root.BI = (() => { function CustomerCaptureRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -236763,7 +245594,7 @@ export const BI = $root.BI = (() => { * @memberof BI.CustomerCaptureRequest * @instance */ - CustomerCaptureRequest.prototype.pageUrl = ""; + CustomerCaptureRequest.prototype.pageUrl = ''; /** * CustomerCaptureRequest tree. @@ -236771,7 +245602,7 @@ export const BI = $root.BI = (() => { * @memberof BI.CustomerCaptureRequest * @instance */ - CustomerCaptureRequest.prototype.tree = ""; + CustomerCaptureRequest.prototype.tree = ''; /** * CustomerCaptureRequest hash. @@ -236779,7 +245610,7 @@ export const BI = $root.BI = (() => { * @memberof BI.CustomerCaptureRequest * @instance */ - CustomerCaptureRequest.prototype.hash = ""; + CustomerCaptureRequest.prototype.hash = ''; /** * CustomerCaptureRequest image. @@ -236787,7 +245618,7 @@ export const BI = $root.BI = (() => { * @memberof BI.CustomerCaptureRequest * @instance */ - CustomerCaptureRequest.prototype.image = ""; + CustomerCaptureRequest.prototype.image = ''; /** * CustomerCaptureRequest pageLoadTime. @@ -236795,7 +245626,7 @@ export const BI = $root.BI = (() => { * @memberof BI.CustomerCaptureRequest * @instance */ - CustomerCaptureRequest.prototype.pageLoadTime = ""; + CustomerCaptureRequest.prototype.pageLoadTime = ''; /** * CustomerCaptureRequest keyId. @@ -236803,7 +245634,7 @@ export const BI = $root.BI = (() => { * @memberof BI.CustomerCaptureRequest * @instance */ - CustomerCaptureRequest.prototype.keyId = ""; + CustomerCaptureRequest.prototype.keyId = ''; /** * CustomerCaptureRequest test. @@ -236819,7 +245650,7 @@ export const BI = $root.BI = (() => { * @memberof BI.CustomerCaptureRequest * @instance */ - CustomerCaptureRequest.prototype.issueType = ""; + CustomerCaptureRequest.prototype.issueType = ''; /** * CustomerCaptureRequest notes. @@ -236827,7 +245658,7 @@ export const BI = $root.BI = (() => { * @memberof BI.CustomerCaptureRequest * @instance */ - CustomerCaptureRequest.prototype.notes = ""; + CustomerCaptureRequest.prototype.notes = ''; /** * Creates a new CustomerCaptureRequest instance using the specified properties. @@ -236851,26 +245682,25 @@ export const BI = $root.BI = (() => { * @returns {$protobuf.Writer} Writer */ CustomerCaptureRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.pageUrl != null && Object.hasOwnProperty.call(message, "pageUrl")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.pageUrl); - if (message.tree != null && Object.hasOwnProperty.call(message, "tree")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.tree); - if (message.hash != null && Object.hasOwnProperty.call(message, "hash")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.hash); - if (message.image != null && Object.hasOwnProperty.call(message, "image")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.image); - if (message.pageLoadTime != null && Object.hasOwnProperty.call(message, "pageLoadTime")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.pageLoadTime); - if (message.keyId != null && Object.hasOwnProperty.call(message, "keyId")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.keyId); - if (message.test != null && Object.hasOwnProperty.call(message, "test")) - writer.uint32(/* id 7, wireType 0 =*/56).bool(message.test); - if (message.issueType != null && Object.hasOwnProperty.call(message, "issueType")) - writer.uint32(/* id 8, wireType 2 =*/66).string(message.issueType); - if (message.notes != null && Object.hasOwnProperty.call(message, "notes")) - writer.uint32(/* id 9, wireType 2 =*/74).string(message.notes); + if (!writer) writer = $Writer.create(); + if (message.pageUrl != null && Object.hasOwnProperty.call(message, 'pageUrl')) + writer.uint32(/* id 1, wireType 2 =*/ 10).string(message.pageUrl); + if (message.tree != null && Object.hasOwnProperty.call(message, 'tree')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.tree); + if (message.hash != null && Object.hasOwnProperty.call(message, 'hash')) + writer.uint32(/* id 3, wireType 2 =*/ 26).string(message.hash); + if (message.image != null && Object.hasOwnProperty.call(message, 'image')) + writer.uint32(/* id 4, wireType 2 =*/ 34).string(message.image); + if (message.pageLoadTime != null && Object.hasOwnProperty.call(message, 'pageLoadTime')) + writer.uint32(/* id 5, wireType 2 =*/ 42).string(message.pageLoadTime); + if (message.keyId != null && Object.hasOwnProperty.call(message, 'keyId')) + writer.uint32(/* id 6, wireType 2 =*/ 50).string(message.keyId); + if (message.test != null && Object.hasOwnProperty.call(message, 'test')) + writer.uint32(/* id 7, wireType 0 =*/ 56).bool(message.test); + if (message.issueType != null && Object.hasOwnProperty.call(message, 'issueType')) + writer.uint32(/* id 8, wireType 2 =*/ 66).string(message.issueType); + if (message.notes != null && Object.hasOwnProperty.call(message, 'notes')) + writer.uint32(/* id 9, wireType 2 =*/ 74).string(message.notes); return writer; }; @@ -236899,51 +245729,51 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ CustomerCaptureRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.CustomerCaptureRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.BI.CustomerCaptureRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.pageUrl = reader.string(); break; } - case 2: { + case 2: { message.tree = reader.string(); break; } - case 3: { + case 3: { message.hash = reader.string(); break; } - case 4: { + case 4: { message.image = reader.string(); break; } - case 5: { + case 5: { message.pageLoadTime = reader.string(); break; } - case 6: { + case 6: { message.keyId = reader.string(); break; } - case 7: { + case 7: { message.test = reader.bool(); break; } - case 8: { + case 8: { message.issueType = reader.string(); break; } - case 9: { + case 9: { message.notes = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -236960,8 +245790,7 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ CustomerCaptureRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -236974,35 +245803,25 @@ export const BI = $root.BI = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ CustomerCaptureRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.pageUrl != null && message.hasOwnProperty("pageUrl")) - if (!$util.isString(message.pageUrl)) - return "pageUrl: string expected"; - if (message.tree != null && message.hasOwnProperty("tree")) - if (!$util.isString(message.tree)) - return "tree: string expected"; - if (message.hash != null && message.hasOwnProperty("hash")) - if (!$util.isString(message.hash)) - return "hash: string expected"; - if (message.image != null && message.hasOwnProperty("image")) - if (!$util.isString(message.image)) - return "image: string expected"; - if (message.pageLoadTime != null && message.hasOwnProperty("pageLoadTime")) - if (!$util.isString(message.pageLoadTime)) - return "pageLoadTime: string expected"; - if (message.keyId != null && message.hasOwnProperty("keyId")) - if (!$util.isString(message.keyId)) - return "keyId: string expected"; - if (message.test != null && message.hasOwnProperty("test")) - if (typeof message.test !== "boolean") - return "test: boolean expected"; - if (message.issueType != null && message.hasOwnProperty("issueType")) - if (!$util.isString(message.issueType)) - return "issueType: string expected"; - if (message.notes != null && message.hasOwnProperty("notes")) - if (!$util.isString(message.notes)) - return "notes: string expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.pageUrl != null && message.hasOwnProperty('pageUrl')) + if (!$util.isString(message.pageUrl)) return 'pageUrl: string expected'; + if (message.tree != null && message.hasOwnProperty('tree')) + if (!$util.isString(message.tree)) return 'tree: string expected'; + if (message.hash != null && message.hasOwnProperty('hash')) + if (!$util.isString(message.hash)) return 'hash: string expected'; + if (message.image != null && message.hasOwnProperty('image')) + if (!$util.isString(message.image)) return 'image: string expected'; + if (message.pageLoadTime != null && message.hasOwnProperty('pageLoadTime')) + if (!$util.isString(message.pageLoadTime)) return 'pageLoadTime: string expected'; + if (message.keyId != null && message.hasOwnProperty('keyId')) + if (!$util.isString(message.keyId)) return 'keyId: string expected'; + if (message.test != null && message.hasOwnProperty('test')) + if (typeof message.test !== 'boolean') return 'test: boolean expected'; + if (message.issueType != null && message.hasOwnProperty('issueType')) + if (!$util.isString(message.issueType)) return 'issueType: string expected'; + if (message.notes != null && message.hasOwnProperty('notes')) + if (!$util.isString(message.notes)) return 'notes: string expected'; return null; }; @@ -237015,27 +245834,17 @@ export const BI = $root.BI = (() => { * @returns {BI.CustomerCaptureRequest} CustomerCaptureRequest */ CustomerCaptureRequest.fromObject = function fromObject(object) { - if (object instanceof $root.BI.CustomerCaptureRequest) - return object; + if (object instanceof $root.BI.CustomerCaptureRequest) return object; let message = new $root.BI.CustomerCaptureRequest(); - if (object.pageUrl != null) - message.pageUrl = String(object.pageUrl); - if (object.tree != null) - message.tree = String(object.tree); - if (object.hash != null) - message.hash = String(object.hash); - if (object.image != null) - message.image = String(object.image); - if (object.pageLoadTime != null) - message.pageLoadTime = String(object.pageLoadTime); - if (object.keyId != null) - message.keyId = String(object.keyId); - if (object.test != null) - message.test = Boolean(object.test); - if (object.issueType != null) - message.issueType = String(object.issueType); - if (object.notes != null) - message.notes = String(object.notes); + if (object.pageUrl != null) message.pageUrl = String(object.pageUrl); + if (object.tree != null) message.tree = String(object.tree); + if (object.hash != null) message.hash = String(object.hash); + if (object.image != null) message.image = String(object.image); + if (object.pageLoadTime != null) message.pageLoadTime = String(object.pageLoadTime); + if (object.keyId != null) message.keyId = String(object.keyId); + if (object.test != null) message.test = Boolean(object.test); + if (object.issueType != null) message.issueType = String(object.issueType); + if (object.notes != null) message.notes = String(object.notes); return message; }; @@ -237049,38 +245858,29 @@ export const BI = $root.BI = (() => { * @returns {Object.} Plain object */ CustomerCaptureRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - object.pageUrl = ""; - object.tree = ""; - object.hash = ""; - object.image = ""; - object.pageLoadTime = ""; - object.keyId = ""; + object.pageUrl = ''; + object.tree = ''; + object.hash = ''; + object.image = ''; + object.pageLoadTime = ''; + object.keyId = ''; object.test = false; - object.issueType = ""; - object.notes = ""; - } - if (message.pageUrl != null && message.hasOwnProperty("pageUrl")) - object.pageUrl = message.pageUrl; - if (message.tree != null && message.hasOwnProperty("tree")) - object.tree = message.tree; - if (message.hash != null && message.hasOwnProperty("hash")) - object.hash = message.hash; - if (message.image != null && message.hasOwnProperty("image")) - object.image = message.image; - if (message.pageLoadTime != null && message.hasOwnProperty("pageLoadTime")) + object.issueType = ''; + object.notes = ''; + } + if (message.pageUrl != null && message.hasOwnProperty('pageUrl')) object.pageUrl = message.pageUrl; + if (message.tree != null && message.hasOwnProperty('tree')) object.tree = message.tree; + if (message.hash != null && message.hasOwnProperty('hash')) object.hash = message.hash; + if (message.image != null && message.hasOwnProperty('image')) object.image = message.image; + if (message.pageLoadTime != null && message.hasOwnProperty('pageLoadTime')) object.pageLoadTime = message.pageLoadTime; - if (message.keyId != null && message.hasOwnProperty("keyId")) - object.keyId = message.keyId; - if (message.test != null && message.hasOwnProperty("test")) - object.test = message.test; - if (message.issueType != null && message.hasOwnProperty("issueType")) - object.issueType = message.issueType; - if (message.notes != null && message.hasOwnProperty("notes")) - object.notes = message.notes; + if (message.keyId != null && message.hasOwnProperty('keyId')) object.keyId = message.keyId; + if (message.test != null && message.hasOwnProperty('test')) object.test = message.test; + if (message.issueType != null && message.hasOwnProperty('issueType')) object.issueType = message.issueType; + if (message.notes != null && message.hasOwnProperty('notes')) object.notes = message.notes; return object; }; @@ -237105,16 +245905,15 @@ export const BI = $root.BI = (() => { */ CustomerCaptureRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/BI.CustomerCaptureRequest"; + return typeUrlPrefix + '/BI.CustomerCaptureRequest'; }; return CustomerCaptureRequest; })(); - BI.CustomerCaptureResponse = (function() { - + BI.CustomerCaptureResponse = (function () { /** * Properties of a CustomerCaptureResponse. * @memberof BI @@ -237132,8 +245931,7 @@ export const BI = $root.BI = (() => { function CustomerCaptureResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -237158,8 +245956,7 @@ export const BI = $root.BI = (() => { * @returns {$protobuf.Writer} Writer */ CustomerCaptureResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); return writer; }; @@ -237188,15 +245985,15 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ CustomerCaptureResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.CustomerCaptureResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.BI.CustomerCaptureResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -237213,8 +246010,7 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ CustomerCaptureResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -237227,8 +246023,7 @@ export const BI = $root.BI = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ CustomerCaptureResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; return null; }; @@ -237241,8 +246036,7 @@ export const BI = $root.BI = (() => { * @returns {BI.CustomerCaptureResponse} CustomerCaptureResponse */ CustomerCaptureResponse.fromObject = function fromObject(object) { - if (object instanceof $root.BI.CustomerCaptureResponse) - return object; + if (object instanceof $root.BI.CustomerCaptureResponse) return object; return new $root.BI.CustomerCaptureResponse(); }; @@ -237280,9 +246074,9 @@ export const BI = $root.BI = (() => { */ CustomerCaptureResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/BI.CustomerCaptureResponse"; + return typeUrlPrefix + '/BI.CustomerCaptureResponse'; }; return CustomerCaptureResponse; @@ -237304,24 +246098,24 @@ export const BI = $root.BI = (() => { * @property {number} addPlatinumSupport=9 addPlatinumSupport value * @property {number} addKEPM=10 addKEPM value */ - BI.PurchaseProductType = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "upgradeToEnterprise"] = 0; - values[valuesById[1] = "addUsers"] = 1; - values[valuesById[2] = "addStorage"] = 2; - values[valuesById[3] = "addAudit"] = 3; - values[valuesById[4] = "addBreachWatch"] = 4; - values[valuesById[5] = "addCompliance"] = 5; - values[valuesById[6] = "addChat"] = 6; - values[valuesById[7] = "addPAM"] = 7; - values[valuesById[8] = "addSilverSupport"] = 8; - values[valuesById[9] = "addPlatinumSupport"] = 9; - values[valuesById[10] = "addKEPM"] = 10; + BI.PurchaseProductType = (function () { + const valuesById = {}, + values = Object.create(valuesById); + values[(valuesById[0] = 'upgradeToEnterprise')] = 0; + values[(valuesById[1] = 'addUsers')] = 1; + values[(valuesById[2] = 'addStorage')] = 2; + values[(valuesById[3] = 'addAudit')] = 3; + values[(valuesById[4] = 'addBreachWatch')] = 4; + values[(valuesById[5] = 'addCompliance')] = 5; + values[(valuesById[6] = 'addChat')] = 6; + values[(valuesById[7] = 'addPAM')] = 7; + values[(valuesById[8] = 'addSilverSupport')] = 8; + values[(valuesById[9] = 'addPlatinumSupport')] = 9; + values[(valuesById[10] = 'addKEPM')] = 10; return values; })(); - BI.Error = (function() { - + BI.Error = (function () { /** * Properties of an Error. * @memberof BI @@ -237343,8 +246137,7 @@ export const BI = $root.BI = (() => { this.extras = {}; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -237353,7 +246146,7 @@ export const BI = $root.BI = (() => { * @memberof BI.Error * @instance */ - Error.prototype.code = ""; + Error.prototype.code = ''; /** * Error message. @@ -237361,7 +246154,7 @@ export const BI = $root.BI = (() => { * @memberof BI.Error * @instance */ - Error.prototype.message = ""; + Error.prototype.message = ''; /** * Error extras. @@ -237393,15 +246186,21 @@ export const BI = $root.BI = (() => { * @returns {$protobuf.Writer} Writer */ Error.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.code != null && Object.hasOwnProperty.call(message, "code")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.code); - if (message.message != null && Object.hasOwnProperty.call(message, "message")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.message); - if (message.extras != null && Object.hasOwnProperty.call(message, "extras")) + if (!writer) writer = $Writer.create(); + if (message.code != null && Object.hasOwnProperty.call(message, 'code')) + writer.uint32(/* id 1, wireType 2 =*/ 10).string(message.code); + if (message.message != null && Object.hasOwnProperty.call(message, 'message')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.message); + if (message.extras != null && Object.hasOwnProperty.call(message, 'extras')) for (let keys = Object.keys(message.extras), i = 0; i < keys.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.extras[keys[i]]).ldelim(); + writer + .uint32(/* id 3, wireType 2 =*/ 26) + .fork() + .uint32(/* id 1, wireType 2 =*/ 10) + .string(keys[i]) + .uint32(/* id 2, wireType 2 =*/ 18) + .string(message.extras[keys[i]]) + .ldelim(); return writer; }; @@ -237430,46 +246229,47 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ Error.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.Error(), key, value; + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.BI.Error(), + key, + value; while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.code = reader.string(); break; } - case 2: { + case 2: { message.message = reader.string(); break; } - case 3: { - if (message.extras === $util.emptyObject) - message.extras = {}; + case 3: { + if (message.extras === $util.emptyObject) message.extras = {}; let end2 = reader.uint32() + reader.pos; - key = ""; - value = ""; + key = ''; + value = ''; while (reader.pos < end2) { let tag2 = reader.uint32(); switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = reader.string(); - break; - default: - reader.skipType(tag2 & 7); - break; + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; } } message.extras[key] = value; break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -237486,8 +246286,7 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ Error.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -237500,21 +246299,16 @@ export const BI = $root.BI = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ Error.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.code != null && message.hasOwnProperty("code")) - if (!$util.isString(message.code)) - return "code: string expected"; - if (message.message != null && message.hasOwnProperty("message")) - if (!$util.isString(message.message)) - return "message: string expected"; - if (message.extras != null && message.hasOwnProperty("extras")) { - if (!$util.isObject(message.extras)) - return "extras: object expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.code != null && message.hasOwnProperty('code')) + if (!$util.isString(message.code)) return 'code: string expected'; + if (message.message != null && message.hasOwnProperty('message')) + if (!$util.isString(message.message)) return 'message: string expected'; + if (message.extras != null && message.hasOwnProperty('extras')) { + if (!$util.isObject(message.extras)) return 'extras: object expected'; let key = Object.keys(message.extras); for (let i = 0; i < key.length; ++i) - if (!$util.isString(message.extras[key[i]])) - return "extras: string{k:string} expected"; + if (!$util.isString(message.extras[key[i]])) return 'extras: string{k:string} expected'; } return null; }; @@ -237528,16 +246322,12 @@ export const BI = $root.BI = (() => { * @returns {BI.Error} Error */ Error.fromObject = function fromObject(object) { - if (object instanceof $root.BI.Error) - return object; + if (object instanceof $root.BI.Error) return object; let message = new $root.BI.Error(); - if (object.code != null) - message.code = String(object.code); - if (object.message != null) - message.message = String(object.message); + if (object.code != null) message.code = String(object.code); + if (object.message != null) message.message = String(object.message); if (object.extras) { - if (typeof object.extras !== "object") - throw TypeError(".BI.Error.extras: object expected"); + if (typeof object.extras !== 'object') throw TypeError('.BI.Error.extras: object expected'); message.extras = {}; for (let keys = Object.keys(object.extras), i = 0; i < keys.length; ++i) message.extras[keys[i]] = String(object.extras[keys[i]]); @@ -237555,24 +246345,19 @@ export const BI = $root.BI = (() => { * @returns {Object.} Plain object */ Error.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.objects || options.defaults) - object.extras = {}; + if (options.objects || options.defaults) object.extras = {}; if (options.defaults) { - object.code = ""; - object.message = ""; + object.code = ''; + object.message = ''; } - if (message.code != null && message.hasOwnProperty("code")) - object.code = message.code; - if (message.message != null && message.hasOwnProperty("message")) - object.message = message.message; + if (message.code != null && message.hasOwnProperty('code')) object.code = message.code; + if (message.message != null && message.hasOwnProperty('message')) object.message = message.message; let keys2; if (message.extras && (keys2 = Object.keys(message.extras)).length) { object.extras = {}; - for (let j = 0; j < keys2.length; ++j) - object.extras[keys2[j]] = message.extras[keys2[j]]; + for (let j = 0; j < keys2.length; ++j) object.extras[keys2[j]] = message.extras[keys2[j]]; } return object; }; @@ -237598,16 +246383,15 @@ export const BI = $root.BI = (() => { */ Error.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/BI.Error"; + return typeUrlPrefix + '/BI.Error'; }; return Error; })(); - BI.QuotePurchase = (function() { - + BI.QuotePurchase = (function () { /** * Properties of a QuotePurchase. * @memberof BI @@ -237631,8 +246415,7 @@ export const BI = $root.BI = (() => { function QuotePurchase(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -237673,7 +246456,7 @@ export const BI = $root.BI = (() => { * @memberof BI.QuotePurchase * @instance */ - QuotePurchase.prototype.taxLabel = ""; + QuotePurchase.prototype.taxLabel = ''; /** * QuotePurchase purchaseIdentifier. @@ -237681,7 +246464,7 @@ export const BI = $root.BI = (() => { * @memberof BI.QuotePurchase * @instance */ - QuotePurchase.prototype.purchaseIdentifier = ""; + QuotePurchase.prototype.purchaseIdentifier = ''; /** * Creates a new QuotePurchase instance using the specified properties. @@ -237705,20 +246488,19 @@ export const BI = $root.BI = (() => { * @returns {$protobuf.Writer} Writer */ QuotePurchase.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.quoteTotal != null && Object.hasOwnProperty.call(message, "quoteTotal")) - writer.uint32(/* id 1, wireType 1 =*/9).double(message.quoteTotal); - if (message.includedTax != null && Object.hasOwnProperty.call(message, "includedTax")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.includedTax); - if (message.includedOtherAddons != null && Object.hasOwnProperty.call(message, "includedOtherAddons")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.includedOtherAddons); - if (message.taxAmount != null && Object.hasOwnProperty.call(message, "taxAmount")) - writer.uint32(/* id 4, wireType 1 =*/33).double(message.taxAmount); - if (message.taxLabel != null && Object.hasOwnProperty.call(message, "taxLabel")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.taxLabel); - if (message.purchaseIdentifier != null && Object.hasOwnProperty.call(message, "purchaseIdentifier")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.purchaseIdentifier); + if (!writer) writer = $Writer.create(); + if (message.quoteTotal != null && Object.hasOwnProperty.call(message, 'quoteTotal')) + writer.uint32(/* id 1, wireType 1 =*/ 9).double(message.quoteTotal); + if (message.includedTax != null && Object.hasOwnProperty.call(message, 'includedTax')) + writer.uint32(/* id 2, wireType 0 =*/ 16).bool(message.includedTax); + if (message.includedOtherAddons != null && Object.hasOwnProperty.call(message, 'includedOtherAddons')) + writer.uint32(/* id 3, wireType 0 =*/ 24).bool(message.includedOtherAddons); + if (message.taxAmount != null && Object.hasOwnProperty.call(message, 'taxAmount')) + writer.uint32(/* id 4, wireType 1 =*/ 33).double(message.taxAmount); + if (message.taxLabel != null && Object.hasOwnProperty.call(message, 'taxLabel')) + writer.uint32(/* id 5, wireType 2 =*/ 42).string(message.taxLabel); + if (message.purchaseIdentifier != null && Object.hasOwnProperty.call(message, 'purchaseIdentifier')) + writer.uint32(/* id 6, wireType 2 =*/ 50).string(message.purchaseIdentifier); return writer; }; @@ -237747,39 +246529,39 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ QuotePurchase.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.QuotePurchase(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.BI.QuotePurchase(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.quoteTotal = reader.double(); break; } - case 2: { + case 2: { message.includedTax = reader.bool(); break; } - case 3: { + case 3: { message.includedOtherAddons = reader.bool(); break; } - case 4: { + case 4: { message.taxAmount = reader.double(); break; } - case 5: { + case 5: { message.taxLabel = reader.string(); break; } - case 6: { + case 6: { message.purchaseIdentifier = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -237796,8 +246578,7 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ QuotePurchase.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -237810,26 +246591,19 @@ export const BI = $root.BI = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ QuotePurchase.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.quoteTotal != null && message.hasOwnProperty("quoteTotal")) - if (typeof message.quoteTotal !== "number") - return "quoteTotal: number expected"; - if (message.includedTax != null && message.hasOwnProperty("includedTax")) - if (typeof message.includedTax !== "boolean") - return "includedTax: boolean expected"; - if (message.includedOtherAddons != null && message.hasOwnProperty("includedOtherAddons")) - if (typeof message.includedOtherAddons !== "boolean") - return "includedOtherAddons: boolean expected"; - if (message.taxAmount != null && message.hasOwnProperty("taxAmount")) - if (typeof message.taxAmount !== "number") - return "taxAmount: number expected"; - if (message.taxLabel != null && message.hasOwnProperty("taxLabel")) - if (!$util.isString(message.taxLabel)) - return "taxLabel: string expected"; - if (message.purchaseIdentifier != null && message.hasOwnProperty("purchaseIdentifier")) - if (!$util.isString(message.purchaseIdentifier)) - return "purchaseIdentifier: string expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.quoteTotal != null && message.hasOwnProperty('quoteTotal')) + if (typeof message.quoteTotal !== 'number') return 'quoteTotal: number expected'; + if (message.includedTax != null && message.hasOwnProperty('includedTax')) + if (typeof message.includedTax !== 'boolean') return 'includedTax: boolean expected'; + if (message.includedOtherAddons != null && message.hasOwnProperty('includedOtherAddons')) + if (typeof message.includedOtherAddons !== 'boolean') return 'includedOtherAddons: boolean expected'; + if (message.taxAmount != null && message.hasOwnProperty('taxAmount')) + if (typeof message.taxAmount !== 'number') return 'taxAmount: number expected'; + if (message.taxLabel != null && message.hasOwnProperty('taxLabel')) + if (!$util.isString(message.taxLabel)) return 'taxLabel: string expected'; + if (message.purchaseIdentifier != null && message.hasOwnProperty('purchaseIdentifier')) + if (!$util.isString(message.purchaseIdentifier)) return 'purchaseIdentifier: string expected'; return null; }; @@ -237842,21 +246616,14 @@ export const BI = $root.BI = (() => { * @returns {BI.QuotePurchase} QuotePurchase */ QuotePurchase.fromObject = function fromObject(object) { - if (object instanceof $root.BI.QuotePurchase) - return object; + if (object instanceof $root.BI.QuotePurchase) return object; let message = new $root.BI.QuotePurchase(); - if (object.quoteTotal != null) - message.quoteTotal = Number(object.quoteTotal); - if (object.includedTax != null) - message.includedTax = Boolean(object.includedTax); - if (object.includedOtherAddons != null) - message.includedOtherAddons = Boolean(object.includedOtherAddons); - if (object.taxAmount != null) - message.taxAmount = Number(object.taxAmount); - if (object.taxLabel != null) - message.taxLabel = String(object.taxLabel); - if (object.purchaseIdentifier != null) - message.purchaseIdentifier = String(object.purchaseIdentifier); + if (object.quoteTotal != null) message.quoteTotal = Number(object.quoteTotal); + if (object.includedTax != null) message.includedTax = Boolean(object.includedTax); + if (object.includedOtherAddons != null) message.includedOtherAddons = Boolean(object.includedOtherAddons); + if (object.taxAmount != null) message.taxAmount = Number(object.taxAmount); + if (object.taxLabel != null) message.taxLabel = String(object.taxLabel); + if (object.purchaseIdentifier != null) message.purchaseIdentifier = String(object.purchaseIdentifier); return message; }; @@ -237870,28 +246637,28 @@ export const BI = $root.BI = (() => { * @returns {Object.} Plain object */ QuotePurchase.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { object.quoteTotal = 0; object.includedTax = false; object.includedOtherAddons = false; object.taxAmount = 0; - object.taxLabel = ""; - object.purchaseIdentifier = ""; + object.taxLabel = ''; + object.purchaseIdentifier = ''; } - if (message.quoteTotal != null && message.hasOwnProperty("quoteTotal")) - object.quoteTotal = options.json && !isFinite(message.quoteTotal) ? String(message.quoteTotal) : message.quoteTotal; - if (message.includedTax != null && message.hasOwnProperty("includedTax")) + if (message.quoteTotal != null && message.hasOwnProperty('quoteTotal')) + object.quoteTotal = + options.json && !isFinite(message.quoteTotal) ? String(message.quoteTotal) : message.quoteTotal; + if (message.includedTax != null && message.hasOwnProperty('includedTax')) object.includedTax = message.includedTax; - if (message.includedOtherAddons != null && message.hasOwnProperty("includedOtherAddons")) + if (message.includedOtherAddons != null && message.hasOwnProperty('includedOtherAddons')) object.includedOtherAddons = message.includedOtherAddons; - if (message.taxAmount != null && message.hasOwnProperty("taxAmount")) - object.taxAmount = options.json && !isFinite(message.taxAmount) ? String(message.taxAmount) : message.taxAmount; - if (message.taxLabel != null && message.hasOwnProperty("taxLabel")) - object.taxLabel = message.taxLabel; - if (message.purchaseIdentifier != null && message.hasOwnProperty("purchaseIdentifier")) + if (message.taxAmount != null && message.hasOwnProperty('taxAmount')) + object.taxAmount = + options.json && !isFinite(message.taxAmount) ? String(message.taxAmount) : message.taxAmount; + if (message.taxLabel != null && message.hasOwnProperty('taxLabel')) object.taxLabel = message.taxLabel; + if (message.purchaseIdentifier != null && message.hasOwnProperty('purchaseIdentifier')) object.purchaseIdentifier = message.purchaseIdentifier; return object; }; @@ -237917,16 +246684,15 @@ export const BI = $root.BI = (() => { */ QuotePurchase.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/BI.QuotePurchase"; + return typeUrlPrefix + '/BI.QuotePurchase'; }; return QuotePurchase; })(); - BI.PurchaseOptions = (function() { - + BI.PurchaseOptions = (function () { /** * Properties of a PurchaseOptions. * @memberof BI @@ -237946,8 +246712,7 @@ export const BI = $root.BI = (() => { function PurchaseOptions(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -237975,9 +246740,9 @@ export const BI = $root.BI = (() => { * @memberof BI.PurchaseOptions * @instance */ - Object.defineProperty(PurchaseOptions.prototype, "_inConsole", { - get: $util.oneOfGetter($oneOfFields = ["inConsole"]), - set: $util.oneOfSetter($oneOfFields) + Object.defineProperty(PurchaseOptions.prototype, '_inConsole', { + get: $util.oneOfGetter(($oneOfFields = ['inConsole'])), + set: $util.oneOfSetter($oneOfFields), }); /** @@ -237986,9 +246751,9 @@ export const BI = $root.BI = (() => { * @memberof BI.PurchaseOptions * @instance */ - Object.defineProperty(PurchaseOptions.prototype, "_externalCheckout", { - get: $util.oneOfGetter($oneOfFields = ["externalCheckout"]), - set: $util.oneOfSetter($oneOfFields) + Object.defineProperty(PurchaseOptions.prototype, '_externalCheckout', { + get: $util.oneOfGetter(($oneOfFields = ['externalCheckout'])), + set: $util.oneOfSetter($oneOfFields), }); /** @@ -238013,12 +246778,11 @@ export const BI = $root.BI = (() => { * @returns {$protobuf.Writer} Writer */ PurchaseOptions.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.inConsole != null && Object.hasOwnProperty.call(message, "inConsole")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.inConsole); - if (message.externalCheckout != null && Object.hasOwnProperty.call(message, "externalCheckout")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.externalCheckout); + if (!writer) writer = $Writer.create(); + if (message.inConsole != null && Object.hasOwnProperty.call(message, 'inConsole')) + writer.uint32(/* id 1, wireType 0 =*/ 8).bool(message.inConsole); + if (message.externalCheckout != null && Object.hasOwnProperty.call(message, 'externalCheckout')) + writer.uint32(/* id 2, wireType 0 =*/ 16).bool(message.externalCheckout); return writer; }; @@ -238047,23 +246811,23 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ PurchaseOptions.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.PurchaseOptions(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.BI.PurchaseOptions(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.inConsole = reader.bool(); break; } - case 2: { + case 2: { message.externalCheckout = reader.bool(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -238080,8 +246844,7 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ PurchaseOptions.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -238094,18 +246857,15 @@ export const BI = $root.BI = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ PurchaseOptions.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; let properties = {}; - if (message.inConsole != null && message.hasOwnProperty("inConsole")) { + if (message.inConsole != null && message.hasOwnProperty('inConsole')) { properties._inConsole = 1; - if (typeof message.inConsole !== "boolean") - return "inConsole: boolean expected"; + if (typeof message.inConsole !== 'boolean') return 'inConsole: boolean expected'; } - if (message.externalCheckout != null && message.hasOwnProperty("externalCheckout")) { + if (message.externalCheckout != null && message.hasOwnProperty('externalCheckout')) { properties._externalCheckout = 1; - if (typeof message.externalCheckout !== "boolean") - return "externalCheckout: boolean expected"; + if (typeof message.externalCheckout !== 'boolean') return 'externalCheckout: boolean expected'; } return null; }; @@ -238119,13 +246879,10 @@ export const BI = $root.BI = (() => { * @returns {BI.PurchaseOptions} PurchaseOptions */ PurchaseOptions.fromObject = function fromObject(object) { - if (object instanceof $root.BI.PurchaseOptions) - return object; + if (object instanceof $root.BI.PurchaseOptions) return object; let message = new $root.BI.PurchaseOptions(); - if (object.inConsole != null) - message.inConsole = Boolean(object.inConsole); - if (object.externalCheckout != null) - message.externalCheckout = Boolean(object.externalCheckout); + if (object.inConsole != null) message.inConsole = Boolean(object.inConsole); + if (object.externalCheckout != null) message.externalCheckout = Boolean(object.externalCheckout); return message; }; @@ -238139,18 +246896,15 @@ export const BI = $root.BI = (() => { * @returns {Object.} Plain object */ PurchaseOptions.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (message.inConsole != null && message.hasOwnProperty("inConsole")) { + if (message.inConsole != null && message.hasOwnProperty('inConsole')) { object.inConsole = message.inConsole; - if (options.oneofs) - object._inConsole = "inConsole"; + if (options.oneofs) object._inConsole = 'inConsole'; } - if (message.externalCheckout != null && message.hasOwnProperty("externalCheckout")) { + if (message.externalCheckout != null && message.hasOwnProperty('externalCheckout')) { object.externalCheckout = message.externalCheckout; - if (options.oneofs) - object._externalCheckout = "externalCheckout"; + if (options.oneofs) object._externalCheckout = 'externalCheckout'; } return object; }; @@ -238176,16 +246930,15 @@ export const BI = $root.BI = (() => { */ PurchaseOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/BI.PurchaseOptions"; + return typeUrlPrefix + '/BI.PurchaseOptions'; }; return PurchaseOptions; })(); - BI.AddonPurchaseOptions = (function() { - + BI.AddonPurchaseOptions = (function () { /** * Properties of an AddonPurchaseOptions. * @memberof BI @@ -238215,8 +246968,7 @@ export const BI = $root.BI = (() => { function AddonPurchaseOptions(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -238324,9 +247076,9 @@ export const BI = $root.BI = (() => { * @memberof BI.AddonPurchaseOptions * @instance */ - Object.defineProperty(AddonPurchaseOptions.prototype, "_storage", { - get: $util.oneOfGetter($oneOfFields = ["storage"]), - set: $util.oneOfSetter($oneOfFields) + Object.defineProperty(AddonPurchaseOptions.prototype, '_storage', { + get: $util.oneOfGetter(($oneOfFields = ['storage'])), + set: $util.oneOfSetter($oneOfFields), }); /** @@ -238335,9 +247087,9 @@ export const BI = $root.BI = (() => { * @memberof BI.AddonPurchaseOptions * @instance */ - Object.defineProperty(AddonPurchaseOptions.prototype, "_audit", { - get: $util.oneOfGetter($oneOfFields = ["audit"]), - set: $util.oneOfSetter($oneOfFields) + Object.defineProperty(AddonPurchaseOptions.prototype, '_audit', { + get: $util.oneOfGetter(($oneOfFields = ['audit'])), + set: $util.oneOfSetter($oneOfFields), }); /** @@ -238346,9 +247098,9 @@ export const BI = $root.BI = (() => { * @memberof BI.AddonPurchaseOptions * @instance */ - Object.defineProperty(AddonPurchaseOptions.prototype, "_breachwatch", { - get: $util.oneOfGetter($oneOfFields = ["breachwatch"]), - set: $util.oneOfSetter($oneOfFields) + Object.defineProperty(AddonPurchaseOptions.prototype, '_breachwatch', { + get: $util.oneOfGetter(($oneOfFields = ['breachwatch'])), + set: $util.oneOfSetter($oneOfFields), }); /** @@ -238357,9 +247109,9 @@ export const BI = $root.BI = (() => { * @memberof BI.AddonPurchaseOptions * @instance */ - Object.defineProperty(AddonPurchaseOptions.prototype, "_chat", { - get: $util.oneOfGetter($oneOfFields = ["chat"]), - set: $util.oneOfSetter($oneOfFields) + Object.defineProperty(AddonPurchaseOptions.prototype, '_chat', { + get: $util.oneOfGetter(($oneOfFields = ['chat'])), + set: $util.oneOfSetter($oneOfFields), }); /** @@ -238368,9 +247120,9 @@ export const BI = $root.BI = (() => { * @memberof BI.AddonPurchaseOptions * @instance */ - Object.defineProperty(AddonPurchaseOptions.prototype, "_compliance", { - get: $util.oneOfGetter($oneOfFields = ["compliance"]), - set: $util.oneOfSetter($oneOfFields) + Object.defineProperty(AddonPurchaseOptions.prototype, '_compliance', { + get: $util.oneOfGetter(($oneOfFields = ['compliance'])), + set: $util.oneOfSetter($oneOfFields), }); /** @@ -238379,9 +247131,9 @@ export const BI = $root.BI = (() => { * @memberof BI.AddonPurchaseOptions * @instance */ - Object.defineProperty(AddonPurchaseOptions.prototype, "_professionalServicesSilver", { - get: $util.oneOfGetter($oneOfFields = ["professionalServicesSilver"]), - set: $util.oneOfSetter($oneOfFields) + Object.defineProperty(AddonPurchaseOptions.prototype, '_professionalServicesSilver', { + get: $util.oneOfGetter(($oneOfFields = ['professionalServicesSilver'])), + set: $util.oneOfSetter($oneOfFields), }); /** @@ -238390,9 +247142,9 @@ export const BI = $root.BI = (() => { * @memberof BI.AddonPurchaseOptions * @instance */ - Object.defineProperty(AddonPurchaseOptions.prototype, "_professionalServicesPlatinum", { - get: $util.oneOfGetter($oneOfFields = ["professionalServicesPlatinum"]), - set: $util.oneOfSetter($oneOfFields) + Object.defineProperty(AddonPurchaseOptions.prototype, '_professionalServicesPlatinum', { + get: $util.oneOfGetter(($oneOfFields = ['professionalServicesPlatinum'])), + set: $util.oneOfSetter($oneOfFields), }); /** @@ -238401,9 +247153,9 @@ export const BI = $root.BI = (() => { * @memberof BI.AddonPurchaseOptions * @instance */ - Object.defineProperty(AddonPurchaseOptions.prototype, "_pam", { - get: $util.oneOfGetter($oneOfFields = ["pam"]), - set: $util.oneOfSetter($oneOfFields) + Object.defineProperty(AddonPurchaseOptions.prototype, '_pam', { + get: $util.oneOfGetter(($oneOfFields = ['pam'])), + set: $util.oneOfSetter($oneOfFields), }); /** @@ -238412,9 +247164,9 @@ export const BI = $root.BI = (() => { * @memberof BI.AddonPurchaseOptions * @instance */ - Object.defineProperty(AddonPurchaseOptions.prototype, "_epm", { - get: $util.oneOfGetter($oneOfFields = ["epm"]), - set: $util.oneOfSetter($oneOfFields) + Object.defineProperty(AddonPurchaseOptions.prototype, '_epm', { + get: $util.oneOfGetter(($oneOfFields = ['epm'])), + set: $util.oneOfSetter($oneOfFields), }); /** @@ -238423,9 +247175,9 @@ export const BI = $root.BI = (() => { * @memberof BI.AddonPurchaseOptions * @instance */ - Object.defineProperty(AddonPurchaseOptions.prototype, "_secretsManager", { - get: $util.oneOfGetter($oneOfFields = ["secretsManager"]), - set: $util.oneOfSetter($oneOfFields) + Object.defineProperty(AddonPurchaseOptions.prototype, '_secretsManager', { + get: $util.oneOfGetter(($oneOfFields = ['secretsManager'])), + set: $util.oneOfSetter($oneOfFields), }); /** @@ -238434,9 +247186,9 @@ export const BI = $root.BI = (() => { * @memberof BI.AddonPurchaseOptions * @instance */ - Object.defineProperty(AddonPurchaseOptions.prototype, "_connectionManager", { - get: $util.oneOfGetter($oneOfFields = ["connectionManager"]), - set: $util.oneOfSetter($oneOfFields) + Object.defineProperty(AddonPurchaseOptions.prototype, '_connectionManager', { + get: $util.oneOfGetter(($oneOfFields = ['connectionManager'])), + set: $util.oneOfSetter($oneOfFields), }); /** @@ -238445,9 +247197,9 @@ export const BI = $root.BI = (() => { * @memberof BI.AddonPurchaseOptions * @instance */ - Object.defineProperty(AddonPurchaseOptions.prototype, "_remoteBrowserIsolation", { - get: $util.oneOfGetter($oneOfFields = ["remoteBrowserIsolation"]), - set: $util.oneOfSetter($oneOfFields) + Object.defineProperty(AddonPurchaseOptions.prototype, '_remoteBrowserIsolation', { + get: $util.oneOfGetter(($oneOfFields = ['remoteBrowserIsolation'])), + set: $util.oneOfSetter($oneOfFields), }); /** @@ -238472,32 +247224,67 @@ export const BI = $root.BI = (() => { * @returns {$protobuf.Writer} Writer */ AddonPurchaseOptions.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.storage != null && Object.hasOwnProperty.call(message, "storage")) - $root.BI.PurchaseOptions.encode(message.storage, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.audit != null && Object.hasOwnProperty.call(message, "audit")) - $root.BI.PurchaseOptions.encode(message.audit, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.breachwatch != null && Object.hasOwnProperty.call(message, "breachwatch")) - $root.BI.PurchaseOptions.encode(message.breachwatch, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.chat != null && Object.hasOwnProperty.call(message, "chat")) - $root.BI.PurchaseOptions.encode(message.chat, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.compliance != null && Object.hasOwnProperty.call(message, "compliance")) - $root.BI.PurchaseOptions.encode(message.compliance, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.professionalServicesSilver != null && Object.hasOwnProperty.call(message, "professionalServicesSilver")) - $root.BI.PurchaseOptions.encode(message.professionalServicesSilver, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.professionalServicesPlatinum != null && Object.hasOwnProperty.call(message, "professionalServicesPlatinum")) - $root.BI.PurchaseOptions.encode(message.professionalServicesPlatinum, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.pam != null && Object.hasOwnProperty.call(message, "pam")) - $root.BI.PurchaseOptions.encode(message.pam, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.epm != null && Object.hasOwnProperty.call(message, "epm")) - $root.BI.PurchaseOptions.encode(message.epm, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); - if (message.secretsManager != null && Object.hasOwnProperty.call(message, "secretsManager")) - $root.BI.PurchaseOptions.encode(message.secretsManager, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); - if (message.connectionManager != null && Object.hasOwnProperty.call(message, "connectionManager")) - $root.BI.PurchaseOptions.encode(message.connectionManager, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); - if (message.remoteBrowserIsolation != null && Object.hasOwnProperty.call(message, "remoteBrowserIsolation")) - $root.BI.PurchaseOptions.encode(message.remoteBrowserIsolation, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); + if (!writer) writer = $Writer.create(); + if (message.storage != null && Object.hasOwnProperty.call(message, 'storage')) + $root.BI.PurchaseOptions.encode( + message.storage, + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); + if (message.audit != null && Object.hasOwnProperty.call(message, 'audit')) + $root.BI.PurchaseOptions.encode( + message.audit, + writer.uint32(/* id 2, wireType 2 =*/ 18).fork() + ).ldelim(); + if (message.breachwatch != null && Object.hasOwnProperty.call(message, 'breachwatch')) + $root.BI.PurchaseOptions.encode( + message.breachwatch, + writer.uint32(/* id 3, wireType 2 =*/ 26).fork() + ).ldelim(); + if (message.chat != null && Object.hasOwnProperty.call(message, 'chat')) + $root.BI.PurchaseOptions.encode( + message.chat, + writer.uint32(/* id 4, wireType 2 =*/ 34).fork() + ).ldelim(); + if (message.compliance != null && Object.hasOwnProperty.call(message, 'compliance')) + $root.BI.PurchaseOptions.encode( + message.compliance, + writer.uint32(/* id 5, wireType 2 =*/ 42).fork() + ).ldelim(); + if ( + message.professionalServicesSilver != null && + Object.hasOwnProperty.call(message, 'professionalServicesSilver') + ) + $root.BI.PurchaseOptions.encode( + message.professionalServicesSilver, + writer.uint32(/* id 6, wireType 2 =*/ 50).fork() + ).ldelim(); + if ( + message.professionalServicesPlatinum != null && + Object.hasOwnProperty.call(message, 'professionalServicesPlatinum') + ) + $root.BI.PurchaseOptions.encode( + message.professionalServicesPlatinum, + writer.uint32(/* id 7, wireType 2 =*/ 58).fork() + ).ldelim(); + if (message.pam != null && Object.hasOwnProperty.call(message, 'pam')) + $root.BI.PurchaseOptions.encode(message.pam, writer.uint32(/* id 8, wireType 2 =*/ 66).fork()).ldelim(); + if (message.epm != null && Object.hasOwnProperty.call(message, 'epm')) + $root.BI.PurchaseOptions.encode(message.epm, writer.uint32(/* id 9, wireType 2 =*/ 74).fork()).ldelim(); + if (message.secretsManager != null && Object.hasOwnProperty.call(message, 'secretsManager')) + $root.BI.PurchaseOptions.encode( + message.secretsManager, + writer.uint32(/* id 10, wireType 2 =*/ 82).fork() + ).ldelim(); + if (message.connectionManager != null && Object.hasOwnProperty.call(message, 'connectionManager')) + $root.BI.PurchaseOptions.encode( + message.connectionManager, + writer.uint32(/* id 11, wireType 2 =*/ 90).fork() + ).ldelim(); + if (message.remoteBrowserIsolation != null && Object.hasOwnProperty.call(message, 'remoteBrowserIsolation')) + $root.BI.PurchaseOptions.encode( + message.remoteBrowserIsolation, + writer.uint32(/* id 12, wireType 2 =*/ 98).fork() + ).ldelim(); return writer; }; @@ -238526,63 +247313,63 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ AddonPurchaseOptions.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.AddonPurchaseOptions(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.BI.AddonPurchaseOptions(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.storage = $root.BI.PurchaseOptions.decode(reader, reader.uint32()); break; } - case 2: { + case 2: { message.audit = $root.BI.PurchaseOptions.decode(reader, reader.uint32()); break; } - case 3: { + case 3: { message.breachwatch = $root.BI.PurchaseOptions.decode(reader, reader.uint32()); break; } - case 4: { + case 4: { message.chat = $root.BI.PurchaseOptions.decode(reader, reader.uint32()); break; } - case 5: { + case 5: { message.compliance = $root.BI.PurchaseOptions.decode(reader, reader.uint32()); break; } - case 6: { + case 6: { message.professionalServicesSilver = $root.BI.PurchaseOptions.decode(reader, reader.uint32()); break; } - case 7: { + case 7: { message.professionalServicesPlatinum = $root.BI.PurchaseOptions.decode(reader, reader.uint32()); break; } - case 8: { + case 8: { message.pam = $root.BI.PurchaseOptions.decode(reader, reader.uint32()); break; } - case 9: { + case 9: { message.epm = $root.BI.PurchaseOptions.decode(reader, reader.uint32()); break; } - case 10: { + case 10: { message.secretsManager = $root.BI.PurchaseOptions.decode(reader, reader.uint32()); break; } - case 11: { + case 11: { message.connectionManager = $root.BI.PurchaseOptions.decode(reader, reader.uint32()); break; } - case 12: { + case 12: { message.remoteBrowserIsolation = $root.BI.PurchaseOptions.decode(reader, reader.uint32()); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -238599,8 +247386,7 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ AddonPurchaseOptions.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -238613,103 +247399,93 @@ export const BI = $root.BI = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ AddonPurchaseOptions.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; let properties = {}; - if (message.storage != null && message.hasOwnProperty("storage")) { + if (message.storage != null && message.hasOwnProperty('storage')) { properties._storage = 1; { let error = $root.BI.PurchaseOptions.verify(message.storage); - if (error) - return "storage." + error; + if (error) return 'storage.' + error; } } - if (message.audit != null && message.hasOwnProperty("audit")) { + if (message.audit != null && message.hasOwnProperty('audit')) { properties._audit = 1; { let error = $root.BI.PurchaseOptions.verify(message.audit); - if (error) - return "audit." + error; + if (error) return 'audit.' + error; } } - if (message.breachwatch != null && message.hasOwnProperty("breachwatch")) { + if (message.breachwatch != null && message.hasOwnProperty('breachwatch')) { properties._breachwatch = 1; { let error = $root.BI.PurchaseOptions.verify(message.breachwatch); - if (error) - return "breachwatch." + error; + if (error) return 'breachwatch.' + error; } } - if (message.chat != null && message.hasOwnProperty("chat")) { + if (message.chat != null && message.hasOwnProperty('chat')) { properties._chat = 1; { let error = $root.BI.PurchaseOptions.verify(message.chat); - if (error) - return "chat." + error; + if (error) return 'chat.' + error; } } - if (message.compliance != null && message.hasOwnProperty("compliance")) { + if (message.compliance != null && message.hasOwnProperty('compliance')) { properties._compliance = 1; { let error = $root.BI.PurchaseOptions.verify(message.compliance); - if (error) - return "compliance." + error; + if (error) return 'compliance.' + error; } } - if (message.professionalServicesSilver != null && message.hasOwnProperty("professionalServicesSilver")) { + if (message.professionalServicesSilver != null && message.hasOwnProperty('professionalServicesSilver')) { properties._professionalServicesSilver = 1; { let error = $root.BI.PurchaseOptions.verify(message.professionalServicesSilver); - if (error) - return "professionalServicesSilver." + error; + if (error) return 'professionalServicesSilver.' + error; } } - if (message.professionalServicesPlatinum != null && message.hasOwnProperty("professionalServicesPlatinum")) { + if ( + message.professionalServicesPlatinum != null && + message.hasOwnProperty('professionalServicesPlatinum') + ) { properties._professionalServicesPlatinum = 1; { let error = $root.BI.PurchaseOptions.verify(message.professionalServicesPlatinum); - if (error) - return "professionalServicesPlatinum." + error; + if (error) return 'professionalServicesPlatinum.' + error; } } - if (message.pam != null && message.hasOwnProperty("pam")) { + if (message.pam != null && message.hasOwnProperty('pam')) { properties._pam = 1; { let error = $root.BI.PurchaseOptions.verify(message.pam); - if (error) - return "pam." + error; + if (error) return 'pam.' + error; } } - if (message.epm != null && message.hasOwnProperty("epm")) { + if (message.epm != null && message.hasOwnProperty('epm')) { properties._epm = 1; { let error = $root.BI.PurchaseOptions.verify(message.epm); - if (error) - return "epm." + error; + if (error) return 'epm.' + error; } } - if (message.secretsManager != null && message.hasOwnProperty("secretsManager")) { + if (message.secretsManager != null && message.hasOwnProperty('secretsManager')) { properties._secretsManager = 1; { let error = $root.BI.PurchaseOptions.verify(message.secretsManager); - if (error) - return "secretsManager." + error; + if (error) return 'secretsManager.' + error; } } - if (message.connectionManager != null && message.hasOwnProperty("connectionManager")) { + if (message.connectionManager != null && message.hasOwnProperty('connectionManager')) { properties._connectionManager = 1; { let error = $root.BI.PurchaseOptions.verify(message.connectionManager); - if (error) - return "connectionManager." + error; + if (error) return 'connectionManager.' + error; } } - if (message.remoteBrowserIsolation != null && message.hasOwnProperty("remoteBrowserIsolation")) { + if (message.remoteBrowserIsolation != null && message.hasOwnProperty('remoteBrowserIsolation')) { properties._remoteBrowserIsolation = 1; { let error = $root.BI.PurchaseOptions.verify(message.remoteBrowserIsolation); - if (error) - return "remoteBrowserIsolation." + error; + if (error) return 'remoteBrowserIsolation.' + error; } } return null; @@ -238724,67 +247500,67 @@ export const BI = $root.BI = (() => { * @returns {BI.AddonPurchaseOptions} AddonPurchaseOptions */ AddonPurchaseOptions.fromObject = function fromObject(object) { - if (object instanceof $root.BI.AddonPurchaseOptions) - return object; + if (object instanceof $root.BI.AddonPurchaseOptions) return object; let message = new $root.BI.AddonPurchaseOptions(); if (object.storage != null) { - if (typeof object.storage !== "object") - throw TypeError(".BI.AddonPurchaseOptions.storage: object expected"); + if (typeof object.storage !== 'object') + throw TypeError('.BI.AddonPurchaseOptions.storage: object expected'); message.storage = $root.BI.PurchaseOptions.fromObject(object.storage); } if (object.audit != null) { - if (typeof object.audit !== "object") - throw TypeError(".BI.AddonPurchaseOptions.audit: object expected"); + if (typeof object.audit !== 'object') + throw TypeError('.BI.AddonPurchaseOptions.audit: object expected'); message.audit = $root.BI.PurchaseOptions.fromObject(object.audit); } if (object.breachwatch != null) { - if (typeof object.breachwatch !== "object") - throw TypeError(".BI.AddonPurchaseOptions.breachwatch: object expected"); + if (typeof object.breachwatch !== 'object') + throw TypeError('.BI.AddonPurchaseOptions.breachwatch: object expected'); message.breachwatch = $root.BI.PurchaseOptions.fromObject(object.breachwatch); } if (object.chat != null) { - if (typeof object.chat !== "object") - throw TypeError(".BI.AddonPurchaseOptions.chat: object expected"); + if (typeof object.chat !== 'object') throw TypeError('.BI.AddonPurchaseOptions.chat: object expected'); message.chat = $root.BI.PurchaseOptions.fromObject(object.chat); } if (object.compliance != null) { - if (typeof object.compliance !== "object") - throw TypeError(".BI.AddonPurchaseOptions.compliance: object expected"); + if (typeof object.compliance !== 'object') + throw TypeError('.BI.AddonPurchaseOptions.compliance: object expected'); message.compliance = $root.BI.PurchaseOptions.fromObject(object.compliance); } if (object.professionalServicesSilver != null) { - if (typeof object.professionalServicesSilver !== "object") - throw TypeError(".BI.AddonPurchaseOptions.professionalServicesSilver: object expected"); - message.professionalServicesSilver = $root.BI.PurchaseOptions.fromObject(object.professionalServicesSilver); + if (typeof object.professionalServicesSilver !== 'object') + throw TypeError('.BI.AddonPurchaseOptions.professionalServicesSilver: object expected'); + message.professionalServicesSilver = $root.BI.PurchaseOptions.fromObject( + object.professionalServicesSilver + ); } if (object.professionalServicesPlatinum != null) { - if (typeof object.professionalServicesPlatinum !== "object") - throw TypeError(".BI.AddonPurchaseOptions.professionalServicesPlatinum: object expected"); - message.professionalServicesPlatinum = $root.BI.PurchaseOptions.fromObject(object.professionalServicesPlatinum); + if (typeof object.professionalServicesPlatinum !== 'object') + throw TypeError('.BI.AddonPurchaseOptions.professionalServicesPlatinum: object expected'); + message.professionalServicesPlatinum = $root.BI.PurchaseOptions.fromObject( + object.professionalServicesPlatinum + ); } if (object.pam != null) { - if (typeof object.pam !== "object") - throw TypeError(".BI.AddonPurchaseOptions.pam: object expected"); + if (typeof object.pam !== 'object') throw TypeError('.BI.AddonPurchaseOptions.pam: object expected'); message.pam = $root.BI.PurchaseOptions.fromObject(object.pam); } if (object.epm != null) { - if (typeof object.epm !== "object") - throw TypeError(".BI.AddonPurchaseOptions.epm: object expected"); + if (typeof object.epm !== 'object') throw TypeError('.BI.AddonPurchaseOptions.epm: object expected'); message.epm = $root.BI.PurchaseOptions.fromObject(object.epm); } if (object.secretsManager != null) { - if (typeof object.secretsManager !== "object") - throw TypeError(".BI.AddonPurchaseOptions.secretsManager: object expected"); + if (typeof object.secretsManager !== 'object') + throw TypeError('.BI.AddonPurchaseOptions.secretsManager: object expected'); message.secretsManager = $root.BI.PurchaseOptions.fromObject(object.secretsManager); } if (object.connectionManager != null) { - if (typeof object.connectionManager !== "object") - throw TypeError(".BI.AddonPurchaseOptions.connectionManager: object expected"); + if (typeof object.connectionManager !== 'object') + throw TypeError('.BI.AddonPurchaseOptions.connectionManager: object expected'); message.connectionManager = $root.BI.PurchaseOptions.fromObject(object.connectionManager); } if (object.remoteBrowserIsolation != null) { - if (typeof object.remoteBrowserIsolation !== "object") - throw TypeError(".BI.AddonPurchaseOptions.remoteBrowserIsolation: object expected"); + if (typeof object.remoteBrowserIsolation !== 'object') + throw TypeError('.BI.AddonPurchaseOptions.remoteBrowserIsolation: object expected'); message.remoteBrowserIsolation = $root.BI.PurchaseOptions.fromObject(object.remoteBrowserIsolation); } return message; @@ -238800,68 +247576,67 @@ export const BI = $root.BI = (() => { * @returns {Object.} Plain object */ AddonPurchaseOptions.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (message.storage != null && message.hasOwnProperty("storage")) { + if (message.storage != null && message.hasOwnProperty('storage')) { object.storage = $root.BI.PurchaseOptions.toObject(message.storage, options); - if (options.oneofs) - object._storage = "storage"; + if (options.oneofs) object._storage = 'storage'; } - if (message.audit != null && message.hasOwnProperty("audit")) { + if (message.audit != null && message.hasOwnProperty('audit')) { object.audit = $root.BI.PurchaseOptions.toObject(message.audit, options); - if (options.oneofs) - object._audit = "audit"; + if (options.oneofs) object._audit = 'audit'; } - if (message.breachwatch != null && message.hasOwnProperty("breachwatch")) { + if (message.breachwatch != null && message.hasOwnProperty('breachwatch')) { object.breachwatch = $root.BI.PurchaseOptions.toObject(message.breachwatch, options); - if (options.oneofs) - object._breachwatch = "breachwatch"; + if (options.oneofs) object._breachwatch = 'breachwatch'; } - if (message.chat != null && message.hasOwnProperty("chat")) { + if (message.chat != null && message.hasOwnProperty('chat')) { object.chat = $root.BI.PurchaseOptions.toObject(message.chat, options); - if (options.oneofs) - object._chat = "chat"; + if (options.oneofs) object._chat = 'chat'; } - if (message.compliance != null && message.hasOwnProperty("compliance")) { + if (message.compliance != null && message.hasOwnProperty('compliance')) { object.compliance = $root.BI.PurchaseOptions.toObject(message.compliance, options); - if (options.oneofs) - object._compliance = "compliance"; - } - if (message.professionalServicesSilver != null && message.hasOwnProperty("professionalServicesSilver")) { - object.professionalServicesSilver = $root.BI.PurchaseOptions.toObject(message.professionalServicesSilver, options); - if (options.oneofs) - object._professionalServicesSilver = "professionalServicesSilver"; - } - if (message.professionalServicesPlatinum != null && message.hasOwnProperty("professionalServicesPlatinum")) { - object.professionalServicesPlatinum = $root.BI.PurchaseOptions.toObject(message.professionalServicesPlatinum, options); - if (options.oneofs) - object._professionalServicesPlatinum = "professionalServicesPlatinum"; - } - if (message.pam != null && message.hasOwnProperty("pam")) { + if (options.oneofs) object._compliance = 'compliance'; + } + if (message.professionalServicesSilver != null && message.hasOwnProperty('professionalServicesSilver')) { + object.professionalServicesSilver = $root.BI.PurchaseOptions.toObject( + message.professionalServicesSilver, + options + ); + if (options.oneofs) object._professionalServicesSilver = 'professionalServicesSilver'; + } + if ( + message.professionalServicesPlatinum != null && + message.hasOwnProperty('professionalServicesPlatinum') + ) { + object.professionalServicesPlatinum = $root.BI.PurchaseOptions.toObject( + message.professionalServicesPlatinum, + options + ); + if (options.oneofs) object._professionalServicesPlatinum = 'professionalServicesPlatinum'; + } + if (message.pam != null && message.hasOwnProperty('pam')) { object.pam = $root.BI.PurchaseOptions.toObject(message.pam, options); - if (options.oneofs) - object._pam = "pam"; + if (options.oneofs) object._pam = 'pam'; } - if (message.epm != null && message.hasOwnProperty("epm")) { + if (message.epm != null && message.hasOwnProperty('epm')) { object.epm = $root.BI.PurchaseOptions.toObject(message.epm, options); - if (options.oneofs) - object._epm = "epm"; + if (options.oneofs) object._epm = 'epm'; } - if (message.secretsManager != null && message.hasOwnProperty("secretsManager")) { + if (message.secretsManager != null && message.hasOwnProperty('secretsManager')) { object.secretsManager = $root.BI.PurchaseOptions.toObject(message.secretsManager, options); - if (options.oneofs) - object._secretsManager = "secretsManager"; + if (options.oneofs) object._secretsManager = 'secretsManager'; } - if (message.connectionManager != null && message.hasOwnProperty("connectionManager")) { + if (message.connectionManager != null && message.hasOwnProperty('connectionManager')) { object.connectionManager = $root.BI.PurchaseOptions.toObject(message.connectionManager, options); - if (options.oneofs) - object._connectionManager = "connectionManager"; + if (options.oneofs) object._connectionManager = 'connectionManager'; } - if (message.remoteBrowserIsolation != null && message.hasOwnProperty("remoteBrowserIsolation")) { - object.remoteBrowserIsolation = $root.BI.PurchaseOptions.toObject(message.remoteBrowserIsolation, options); - if (options.oneofs) - object._remoteBrowserIsolation = "remoteBrowserIsolation"; + if (message.remoteBrowserIsolation != null && message.hasOwnProperty('remoteBrowserIsolation')) { + object.remoteBrowserIsolation = $root.BI.PurchaseOptions.toObject( + message.remoteBrowserIsolation, + options + ); + if (options.oneofs) object._remoteBrowserIsolation = 'remoteBrowserIsolation'; } return object; }; @@ -238887,16 +247662,15 @@ export const BI = $root.BI = (() => { */ AddonPurchaseOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/BI.AddonPurchaseOptions"; + return typeUrlPrefix + '/BI.AddonPurchaseOptions'; }; return AddonPurchaseOptions; })(); - BI.AvailablePurchaseOptions = (function() { - + BI.AvailablePurchaseOptions = (function () { /** * Properties of an AvailablePurchaseOptions. * @memberof BI @@ -238917,8 +247691,7 @@ export const BI = $root.BI = (() => { function AvailablePurchaseOptions(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -238967,14 +247740,22 @@ export const BI = $root.BI = (() => { * @returns {$protobuf.Writer} Writer */ AvailablePurchaseOptions.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.basePlan != null && Object.hasOwnProperty.call(message, "basePlan")) - $root.BI.PurchaseOptions.encode(message.basePlan, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.users != null && Object.hasOwnProperty.call(message, "users")) - $root.BI.PurchaseOptions.encode(message.users, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.addons != null && Object.hasOwnProperty.call(message, "addons")) - $root.BI.AddonPurchaseOptions.encode(message.addons, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (!writer) writer = $Writer.create(); + if (message.basePlan != null && Object.hasOwnProperty.call(message, 'basePlan')) + $root.BI.PurchaseOptions.encode( + message.basePlan, + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); + if (message.users != null && Object.hasOwnProperty.call(message, 'users')) + $root.BI.PurchaseOptions.encode( + message.users, + writer.uint32(/* id 2, wireType 2 =*/ 18).fork() + ).ldelim(); + if (message.addons != null && Object.hasOwnProperty.call(message, 'addons')) + $root.BI.AddonPurchaseOptions.encode( + message.addons, + writer.uint32(/* id 3, wireType 2 =*/ 26).fork() + ).ldelim(); return writer; }; @@ -239003,27 +247784,27 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ AvailablePurchaseOptions.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.AvailablePurchaseOptions(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.BI.AvailablePurchaseOptions(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.basePlan = $root.BI.PurchaseOptions.decode(reader, reader.uint32()); break; } - case 2: { + case 2: { message.users = $root.BI.PurchaseOptions.decode(reader, reader.uint32()); break; } - case 3: { + case 3: { message.addons = $root.BI.AddonPurchaseOptions.decode(reader, reader.uint32()); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -239040,8 +247821,7 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ AvailablePurchaseOptions.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -239054,22 +247834,18 @@ export const BI = $root.BI = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ AvailablePurchaseOptions.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.basePlan != null && message.hasOwnProperty("basePlan")) { + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.basePlan != null && message.hasOwnProperty('basePlan')) { let error = $root.BI.PurchaseOptions.verify(message.basePlan); - if (error) - return "basePlan." + error; + if (error) return 'basePlan.' + error; } - if (message.users != null && message.hasOwnProperty("users")) { + if (message.users != null && message.hasOwnProperty('users')) { let error = $root.BI.PurchaseOptions.verify(message.users); - if (error) - return "users." + error; + if (error) return 'users.' + error; } - if (message.addons != null && message.hasOwnProperty("addons")) { + if (message.addons != null && message.hasOwnProperty('addons')) { let error = $root.BI.AddonPurchaseOptions.verify(message.addons); - if (error) - return "addons." + error; + if (error) return 'addons.' + error; } return null; }; @@ -239083,22 +247859,21 @@ export const BI = $root.BI = (() => { * @returns {BI.AvailablePurchaseOptions} AvailablePurchaseOptions */ AvailablePurchaseOptions.fromObject = function fromObject(object) { - if (object instanceof $root.BI.AvailablePurchaseOptions) - return object; + if (object instanceof $root.BI.AvailablePurchaseOptions) return object; let message = new $root.BI.AvailablePurchaseOptions(); if (object.basePlan != null) { - if (typeof object.basePlan !== "object") - throw TypeError(".BI.AvailablePurchaseOptions.basePlan: object expected"); + if (typeof object.basePlan !== 'object') + throw TypeError('.BI.AvailablePurchaseOptions.basePlan: object expected'); message.basePlan = $root.BI.PurchaseOptions.fromObject(object.basePlan); } if (object.users != null) { - if (typeof object.users !== "object") - throw TypeError(".BI.AvailablePurchaseOptions.users: object expected"); + if (typeof object.users !== 'object') + throw TypeError('.BI.AvailablePurchaseOptions.users: object expected'); message.users = $root.BI.PurchaseOptions.fromObject(object.users); } if (object.addons != null) { - if (typeof object.addons !== "object") - throw TypeError(".BI.AvailablePurchaseOptions.addons: object expected"); + if (typeof object.addons !== 'object') + throw TypeError('.BI.AvailablePurchaseOptions.addons: object expected'); message.addons = $root.BI.AddonPurchaseOptions.fromObject(object.addons); } return message; @@ -239114,19 +247889,18 @@ export const BI = $root.BI = (() => { * @returns {Object.} Plain object */ AvailablePurchaseOptions.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { object.basePlan = null; object.users = null; object.addons = null; } - if (message.basePlan != null && message.hasOwnProperty("basePlan")) + if (message.basePlan != null && message.hasOwnProperty('basePlan')) object.basePlan = $root.BI.PurchaseOptions.toObject(message.basePlan, options); - if (message.users != null && message.hasOwnProperty("users")) + if (message.users != null && message.hasOwnProperty('users')) object.users = $root.BI.PurchaseOptions.toObject(message.users, options); - if (message.addons != null && message.hasOwnProperty("addons")) + if (message.addons != null && message.hasOwnProperty('addons')) object.addons = $root.BI.AddonPurchaseOptions.toObject(message.addons, options); return object; }; @@ -239152,16 +247926,15 @@ export const BI = $root.BI = (() => { */ AvailablePurchaseOptions.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/BI.AvailablePurchaseOptions"; + return typeUrlPrefix + '/BI.AvailablePurchaseOptions'; }; return AvailablePurchaseOptions; })(); - BI.UpgradeLicenseStatusRequest = (function() { - + BI.UpgradeLicenseStatusRequest = (function () { /** * Properties of an UpgradeLicenseStatusRequest. * @memberof BI @@ -239179,8 +247952,7 @@ export const BI = $root.BI = (() => { function UpgradeLicenseStatusRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -239205,8 +247977,7 @@ export const BI = $root.BI = (() => { * @returns {$protobuf.Writer} Writer */ UpgradeLicenseStatusRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); return writer; }; @@ -239235,15 +248006,15 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ UpgradeLicenseStatusRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.UpgradeLicenseStatusRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.BI.UpgradeLicenseStatusRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -239260,8 +248031,7 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ UpgradeLicenseStatusRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -239274,8 +248044,7 @@ export const BI = $root.BI = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ UpgradeLicenseStatusRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; return null; }; @@ -239288,8 +248057,7 @@ export const BI = $root.BI = (() => { * @returns {BI.UpgradeLicenseStatusRequest} UpgradeLicenseStatusRequest */ UpgradeLicenseStatusRequest.fromObject = function fromObject(object) { - if (object instanceof $root.BI.UpgradeLicenseStatusRequest) - return object; + if (object instanceof $root.BI.UpgradeLicenseStatusRequest) return object; return new $root.BI.UpgradeLicenseStatusRequest(); }; @@ -239327,16 +248095,15 @@ export const BI = $root.BI = (() => { */ UpgradeLicenseStatusRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/BI.UpgradeLicenseStatusRequest"; + return typeUrlPrefix + '/BI.UpgradeLicenseStatusRequest'; }; return UpgradeLicenseStatusRequest; })(); - BI.UpgradeLicenseStatusResponse = (function() { - + BI.UpgradeLicenseStatusResponse = (function () { /** * Properties of an UpgradeLicenseStatusResponse. * @memberof BI @@ -239357,8 +248124,7 @@ export const BI = $root.BI = (() => { function UpgradeLicenseStatusResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -239407,14 +248173,19 @@ export const BI = $root.BI = (() => { * @returns {$protobuf.Writer} Writer */ UpgradeLicenseStatusResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.allowPurchaseFromConsole != null && Object.hasOwnProperty.call(message, "allowPurchaseFromConsole")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.allowPurchaseFromConsole); - if (message.purchaseOptions != null && Object.hasOwnProperty.call(message, "purchaseOptions")) - $root.BI.AvailablePurchaseOptions.encode(message.purchaseOptions, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.error != null && Object.hasOwnProperty.call(message, "error")) - $root.BI.Error.encode(message.error, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (!writer) writer = $Writer.create(); + if ( + message.allowPurchaseFromConsole != null && + Object.hasOwnProperty.call(message, 'allowPurchaseFromConsole') + ) + writer.uint32(/* id 1, wireType 0 =*/ 8).bool(message.allowPurchaseFromConsole); + if (message.purchaseOptions != null && Object.hasOwnProperty.call(message, 'purchaseOptions')) + $root.BI.AvailablePurchaseOptions.encode( + message.purchaseOptions, + writer.uint32(/* id 2, wireType 2 =*/ 18).fork() + ).ldelim(); + if (message.error != null && Object.hasOwnProperty.call(message, 'error')) + $root.BI.Error.encode(message.error, writer.uint32(/* id 3, wireType 2 =*/ 26).fork()).ldelim(); return writer; }; @@ -239443,27 +248214,27 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ UpgradeLicenseStatusResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.UpgradeLicenseStatusResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.BI.UpgradeLicenseStatusResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.allowPurchaseFromConsole = reader.bool(); break; } - case 2: { + case 2: { message.purchaseOptions = $root.BI.AvailablePurchaseOptions.decode(reader, reader.uint32()); break; } - case 3: { + case 3: { message.error = $root.BI.Error.decode(reader, reader.uint32()); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -239480,8 +248251,7 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ UpgradeLicenseStatusResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -239494,20 +248264,17 @@ export const BI = $root.BI = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ UpgradeLicenseStatusResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.allowPurchaseFromConsole != null && message.hasOwnProperty("allowPurchaseFromConsole")) - if (typeof message.allowPurchaseFromConsole !== "boolean") - return "allowPurchaseFromConsole: boolean expected"; - if (message.purchaseOptions != null && message.hasOwnProperty("purchaseOptions")) { + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.allowPurchaseFromConsole != null && message.hasOwnProperty('allowPurchaseFromConsole')) + if (typeof message.allowPurchaseFromConsole !== 'boolean') + return 'allowPurchaseFromConsole: boolean expected'; + if (message.purchaseOptions != null && message.hasOwnProperty('purchaseOptions')) { let error = $root.BI.AvailablePurchaseOptions.verify(message.purchaseOptions); - if (error) - return "purchaseOptions." + error; + if (error) return 'purchaseOptions.' + error; } - if (message.error != null && message.hasOwnProperty("error")) { + if (message.error != null && message.hasOwnProperty('error')) { let error = $root.BI.Error.verify(message.error); - if (error) - return "error." + error; + if (error) return 'error.' + error; } return null; }; @@ -239521,19 +248288,18 @@ export const BI = $root.BI = (() => { * @returns {BI.UpgradeLicenseStatusResponse} UpgradeLicenseStatusResponse */ UpgradeLicenseStatusResponse.fromObject = function fromObject(object) { - if (object instanceof $root.BI.UpgradeLicenseStatusResponse) - return object; + if (object instanceof $root.BI.UpgradeLicenseStatusResponse) return object; let message = new $root.BI.UpgradeLicenseStatusResponse(); if (object.allowPurchaseFromConsole != null) message.allowPurchaseFromConsole = Boolean(object.allowPurchaseFromConsole); if (object.purchaseOptions != null) { - if (typeof object.purchaseOptions !== "object") - throw TypeError(".BI.UpgradeLicenseStatusResponse.purchaseOptions: object expected"); + if (typeof object.purchaseOptions !== 'object') + throw TypeError('.BI.UpgradeLicenseStatusResponse.purchaseOptions: object expected'); message.purchaseOptions = $root.BI.AvailablePurchaseOptions.fromObject(object.purchaseOptions); } if (object.error != null) { - if (typeof object.error !== "object") - throw TypeError(".BI.UpgradeLicenseStatusResponse.error: object expected"); + if (typeof object.error !== 'object') + throw TypeError('.BI.UpgradeLicenseStatusResponse.error: object expected'); message.error = $root.BI.Error.fromObject(object.error); } return message; @@ -239549,19 +248315,18 @@ export const BI = $root.BI = (() => { * @returns {Object.} Plain object */ UpgradeLicenseStatusResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { object.allowPurchaseFromConsole = false; object.purchaseOptions = null; object.error = null; } - if (message.allowPurchaseFromConsole != null && message.hasOwnProperty("allowPurchaseFromConsole")) + if (message.allowPurchaseFromConsole != null && message.hasOwnProperty('allowPurchaseFromConsole')) object.allowPurchaseFromConsole = message.allowPurchaseFromConsole; - if (message.purchaseOptions != null && message.hasOwnProperty("purchaseOptions")) + if (message.purchaseOptions != null && message.hasOwnProperty('purchaseOptions')) object.purchaseOptions = $root.BI.AvailablePurchaseOptions.toObject(message.purchaseOptions, options); - if (message.error != null && message.hasOwnProperty("error")) + if (message.error != null && message.hasOwnProperty('error')) object.error = $root.BI.Error.toObject(message.error, options); return object; }; @@ -239587,16 +248352,15 @@ export const BI = $root.BI = (() => { */ UpgradeLicenseStatusResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/BI.UpgradeLicenseStatusResponse"; + return typeUrlPrefix + '/BI.UpgradeLicenseStatusResponse'; }; return UpgradeLicenseStatusResponse; })(); - BI.UpgradeLicenseQuotePurchaseRequest = (function() { - + BI.UpgradeLicenseQuotePurchaseRequest = (function () { /** * Properties of an UpgradeLicenseQuotePurchaseRequest. * @memberof BI @@ -239617,8 +248381,7 @@ export const BI = $root.BI = (() => { function UpgradeLicenseQuotePurchaseRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -239667,14 +248430,13 @@ export const BI = $root.BI = (() => { * @returns {$protobuf.Writer} Writer */ UpgradeLicenseQuotePurchaseRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.productType != null && Object.hasOwnProperty.call(message, "productType")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.productType); - if (message.quantity != null && Object.hasOwnProperty.call(message, "quantity")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.quantity); - if (message.tier != null && Object.hasOwnProperty.call(message, "tier")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.tier); + if (!writer) writer = $Writer.create(); + if (message.productType != null && Object.hasOwnProperty.call(message, 'productType')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int32(message.productType); + if (message.quantity != null && Object.hasOwnProperty.call(message, 'quantity')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int32(message.quantity); + if (message.tier != null && Object.hasOwnProperty.call(message, 'tier')) + writer.uint32(/* id 3, wireType 0 =*/ 24).int32(message.tier); return writer; }; @@ -239703,27 +248465,27 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ UpgradeLicenseQuotePurchaseRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.UpgradeLicenseQuotePurchaseRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.BI.UpgradeLicenseQuotePurchaseRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.productType = reader.int32(); break; } - case 2: { + case 2: { message.quantity = reader.int32(); break; } - case 3: { + case 3: { message.tier = reader.int32(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -239740,8 +248502,7 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ UpgradeLicenseQuotePurchaseRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -239754,31 +248515,28 @@ export const BI = $root.BI = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ UpgradeLicenseQuotePurchaseRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.productType != null && message.hasOwnProperty("productType")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.productType != null && message.hasOwnProperty('productType')) switch (message.productType) { - default: - return "productType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - case 10: - break; + default: + return 'productType: enum value expected'; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + case 10: + break; } - if (message.quantity != null && message.hasOwnProperty("quantity")) - if (!$util.isInteger(message.quantity)) - return "quantity: integer expected"; - if (message.tier != null && message.hasOwnProperty("tier")) - if (!$util.isInteger(message.tier)) - return "tier: integer expected"; + if (message.quantity != null && message.hasOwnProperty('quantity')) + if (!$util.isInteger(message.quantity)) return 'quantity: integer expected'; + if (message.tier != null && message.hasOwnProperty('tier')) + if (!$util.isInteger(message.tier)) return 'tier: integer expected'; return null; }; @@ -239791,65 +248549,62 @@ export const BI = $root.BI = (() => { * @returns {BI.UpgradeLicenseQuotePurchaseRequest} UpgradeLicenseQuotePurchaseRequest */ UpgradeLicenseQuotePurchaseRequest.fromObject = function fromObject(object) { - if (object instanceof $root.BI.UpgradeLicenseQuotePurchaseRequest) - return object; + if (object instanceof $root.BI.UpgradeLicenseQuotePurchaseRequest) return object; let message = new $root.BI.UpgradeLicenseQuotePurchaseRequest(); switch (object.productType) { - default: - if (typeof object.productType === "number") { - message.productType = object.productType; - break; - } - break; - case "upgradeToEnterprise": - case 0: - message.productType = 0; - break; - case "addUsers": - case 1: - message.productType = 1; - break; - case "addStorage": - case 2: - message.productType = 2; - break; - case "addAudit": - case 3: - message.productType = 3; - break; - case "addBreachWatch": - case 4: - message.productType = 4; - break; - case "addCompliance": - case 5: - message.productType = 5; - break; - case "addChat": - case 6: - message.productType = 6; - break; - case "addPAM": - case 7: - message.productType = 7; - break; - case "addSilverSupport": - case 8: - message.productType = 8; - break; - case "addPlatinumSupport": - case 9: - message.productType = 9; - break; - case "addKEPM": - case 10: - message.productType = 10; - break; - } - if (object.quantity != null) - message.quantity = object.quantity | 0; - if (object.tier != null) - message.tier = object.tier | 0; + default: + if (typeof object.productType === 'number') { + message.productType = object.productType; + break; + } + break; + case 'upgradeToEnterprise': + case 0: + message.productType = 0; + break; + case 'addUsers': + case 1: + message.productType = 1; + break; + case 'addStorage': + case 2: + message.productType = 2; + break; + case 'addAudit': + case 3: + message.productType = 3; + break; + case 'addBreachWatch': + case 4: + message.productType = 4; + break; + case 'addCompliance': + case 5: + message.productType = 5; + break; + case 'addChat': + case 6: + message.productType = 6; + break; + case 'addPAM': + case 7: + message.productType = 7; + break; + case 'addSilverSupport': + case 8: + message.productType = 8; + break; + case 'addPlatinumSupport': + case 9: + message.productType = 9; + break; + case 'addKEPM': + case 10: + message.productType = 10; + break; + } + if (object.quantity != null) message.quantity = object.quantity | 0; + if (object.tier != null) message.tier = object.tier | 0; return message; }; @@ -239863,20 +248618,22 @@ export const BI = $root.BI = (() => { * @returns {Object.} Plain object */ UpgradeLicenseQuotePurchaseRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - object.productType = options.enums === String ? "upgradeToEnterprise" : 0; + object.productType = options.enums === String ? 'upgradeToEnterprise' : 0; object.quantity = 0; object.tier = 0; } - if (message.productType != null && message.hasOwnProperty("productType")) - object.productType = options.enums === String ? $root.BI.PurchaseProductType[message.productType] === undefined ? message.productType : $root.BI.PurchaseProductType[message.productType] : message.productType; - if (message.quantity != null && message.hasOwnProperty("quantity")) - object.quantity = message.quantity; - if (message.tier != null && message.hasOwnProperty("tier")) - object.tier = message.tier; + if (message.productType != null && message.hasOwnProperty('productType')) + object.productType = + options.enums === String + ? $root.BI.PurchaseProductType[message.productType] === undefined + ? message.productType + : $root.BI.PurchaseProductType[message.productType] + : message.productType; + if (message.quantity != null && message.hasOwnProperty('quantity')) object.quantity = message.quantity; + if (message.tier != null && message.hasOwnProperty('tier')) object.tier = message.tier; return object; }; @@ -239901,16 +248658,15 @@ export const BI = $root.BI = (() => { */ UpgradeLicenseQuotePurchaseRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/BI.UpgradeLicenseQuotePurchaseRequest"; + return typeUrlPrefix + '/BI.UpgradeLicenseQuotePurchaseRequest'; }; return UpgradeLicenseQuotePurchaseRequest; })(); - BI.UpgradeLicenseQuotePurchaseResponse = (function() { - + BI.UpgradeLicenseQuotePurchaseResponse = (function () { /** * Properties of an UpgradeLicenseQuotePurchaseResponse. * @memberof BI @@ -239932,8 +248688,7 @@ export const BI = $root.BI = (() => { function UpgradeLicenseQuotePurchaseResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -239958,7 +248713,7 @@ export const BI = $root.BI = (() => { * @memberof BI.UpgradeLicenseQuotePurchaseResponse * @instance */ - UpgradeLicenseQuotePurchaseResponse.prototype.viewSummaryLink = ""; + UpgradeLicenseQuotePurchaseResponse.prototype.viewSummaryLink = ''; /** * UpgradeLicenseQuotePurchaseResponse error. @@ -239990,16 +248745,18 @@ export const BI = $root.BI = (() => { * @returns {$protobuf.Writer} Writer */ UpgradeLicenseQuotePurchaseResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.success != null && Object.hasOwnProperty.call(message, "success")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.success); - if (message.quotePurchase != null && Object.hasOwnProperty.call(message, "quotePurchase")) - $root.BI.QuotePurchase.encode(message.quotePurchase, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.viewSummaryLink != null && Object.hasOwnProperty.call(message, "viewSummaryLink")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.viewSummaryLink); - if (message.error != null && Object.hasOwnProperty.call(message, "error")) - $root.BI.Error.encode(message.error, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (!writer) writer = $Writer.create(); + if (message.success != null && Object.hasOwnProperty.call(message, 'success')) + writer.uint32(/* id 1, wireType 0 =*/ 8).bool(message.success); + if (message.quotePurchase != null && Object.hasOwnProperty.call(message, 'quotePurchase')) + $root.BI.QuotePurchase.encode( + message.quotePurchase, + writer.uint32(/* id 2, wireType 2 =*/ 18).fork() + ).ldelim(); + if (message.viewSummaryLink != null && Object.hasOwnProperty.call(message, 'viewSummaryLink')) + writer.uint32(/* id 3, wireType 2 =*/ 26).string(message.viewSummaryLink); + if (message.error != null && Object.hasOwnProperty.call(message, 'error')) + $root.BI.Error.encode(message.error, writer.uint32(/* id 4, wireType 2 =*/ 34).fork()).ldelim(); return writer; }; @@ -240028,31 +248785,31 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ UpgradeLicenseQuotePurchaseResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.UpgradeLicenseQuotePurchaseResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.BI.UpgradeLicenseQuotePurchaseResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.success = reader.bool(); break; } - case 2: { + case 2: { message.quotePurchase = $root.BI.QuotePurchase.decode(reader, reader.uint32()); break; } - case 3: { + case 3: { message.viewSummaryLink = reader.string(); break; } - case 4: { + case 4: { message.error = $root.BI.Error.decode(reader, reader.uint32()); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -240069,8 +248826,7 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ UpgradeLicenseQuotePurchaseResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -240083,23 +248839,18 @@ export const BI = $root.BI = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ UpgradeLicenseQuotePurchaseResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.success != null && message.hasOwnProperty("success")) - if (typeof message.success !== "boolean") - return "success: boolean expected"; - if (message.quotePurchase != null && message.hasOwnProperty("quotePurchase")) { + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.success != null && message.hasOwnProperty('success')) + if (typeof message.success !== 'boolean') return 'success: boolean expected'; + if (message.quotePurchase != null && message.hasOwnProperty('quotePurchase')) { let error = $root.BI.QuotePurchase.verify(message.quotePurchase); - if (error) - return "quotePurchase." + error; + if (error) return 'quotePurchase.' + error; } - if (message.viewSummaryLink != null && message.hasOwnProperty("viewSummaryLink")) - if (!$util.isString(message.viewSummaryLink)) - return "viewSummaryLink: string expected"; - if (message.error != null && message.hasOwnProperty("error")) { + if (message.viewSummaryLink != null && message.hasOwnProperty('viewSummaryLink')) + if (!$util.isString(message.viewSummaryLink)) return 'viewSummaryLink: string expected'; + if (message.error != null && message.hasOwnProperty('error')) { let error = $root.BI.Error.verify(message.error); - if (error) - return "error." + error; + if (error) return 'error.' + error; } return null; }; @@ -240113,21 +248864,18 @@ export const BI = $root.BI = (() => { * @returns {BI.UpgradeLicenseQuotePurchaseResponse} UpgradeLicenseQuotePurchaseResponse */ UpgradeLicenseQuotePurchaseResponse.fromObject = function fromObject(object) { - if (object instanceof $root.BI.UpgradeLicenseQuotePurchaseResponse) - return object; + if (object instanceof $root.BI.UpgradeLicenseQuotePurchaseResponse) return object; let message = new $root.BI.UpgradeLicenseQuotePurchaseResponse(); - if (object.success != null) - message.success = Boolean(object.success); + if (object.success != null) message.success = Boolean(object.success); if (object.quotePurchase != null) { - if (typeof object.quotePurchase !== "object") - throw TypeError(".BI.UpgradeLicenseQuotePurchaseResponse.quotePurchase: object expected"); + if (typeof object.quotePurchase !== 'object') + throw TypeError('.BI.UpgradeLicenseQuotePurchaseResponse.quotePurchase: object expected'); message.quotePurchase = $root.BI.QuotePurchase.fromObject(object.quotePurchase); } - if (object.viewSummaryLink != null) - message.viewSummaryLink = String(object.viewSummaryLink); + if (object.viewSummaryLink != null) message.viewSummaryLink = String(object.viewSummaryLink); if (object.error != null) { - if (typeof object.error !== "object") - throw TypeError(".BI.UpgradeLicenseQuotePurchaseResponse.error: object expected"); + if (typeof object.error !== 'object') + throw TypeError('.BI.UpgradeLicenseQuotePurchaseResponse.error: object expected'); message.error = $root.BI.Error.fromObject(object.error); } return message; @@ -240143,22 +248891,20 @@ export const BI = $root.BI = (() => { * @returns {Object.} Plain object */ UpgradeLicenseQuotePurchaseResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { object.success = false; object.quotePurchase = null; - object.viewSummaryLink = ""; + object.viewSummaryLink = ''; object.error = null; } - if (message.success != null && message.hasOwnProperty("success")) - object.success = message.success; - if (message.quotePurchase != null && message.hasOwnProperty("quotePurchase")) + if (message.success != null && message.hasOwnProperty('success')) object.success = message.success; + if (message.quotePurchase != null && message.hasOwnProperty('quotePurchase')) object.quotePurchase = $root.BI.QuotePurchase.toObject(message.quotePurchase, options); - if (message.viewSummaryLink != null && message.hasOwnProperty("viewSummaryLink")) + if (message.viewSummaryLink != null && message.hasOwnProperty('viewSummaryLink')) object.viewSummaryLink = message.viewSummaryLink; - if (message.error != null && message.hasOwnProperty("error")) + if (message.error != null && message.hasOwnProperty('error')) object.error = $root.BI.Error.toObject(message.error, options); return object; }; @@ -240184,16 +248930,15 @@ export const BI = $root.BI = (() => { */ UpgradeLicenseQuotePurchaseResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/BI.UpgradeLicenseQuotePurchaseResponse"; + return typeUrlPrefix + '/BI.UpgradeLicenseQuotePurchaseResponse'; }; return UpgradeLicenseQuotePurchaseResponse; })(); - BI.UpgradeLicenseCompletePurchaseRequest = (function() { - + BI.UpgradeLicenseCompletePurchaseRequest = (function () { /** * Properties of an UpgradeLicenseCompletePurchaseRequest. * @memberof BI @@ -240215,8 +248960,7 @@ export const BI = $root.BI = (() => { function UpgradeLicenseCompletePurchaseRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -240273,16 +249017,18 @@ export const BI = $root.BI = (() => { * @returns {$protobuf.Writer} Writer */ UpgradeLicenseCompletePurchaseRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.productType != null && Object.hasOwnProperty.call(message, "productType")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.productType); - if (message.quantity != null && Object.hasOwnProperty.call(message, "quantity")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.quantity); - if (message.quotePurchase != null && Object.hasOwnProperty.call(message, "quotePurchase")) - $root.BI.QuotePurchase.encode(message.quotePurchase, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.tier != null && Object.hasOwnProperty.call(message, "tier")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.tier); + if (!writer) writer = $Writer.create(); + if (message.productType != null && Object.hasOwnProperty.call(message, 'productType')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int32(message.productType); + if (message.quantity != null && Object.hasOwnProperty.call(message, 'quantity')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int32(message.quantity); + if (message.quotePurchase != null && Object.hasOwnProperty.call(message, 'quotePurchase')) + $root.BI.QuotePurchase.encode( + message.quotePurchase, + writer.uint32(/* id 3, wireType 2 =*/ 26).fork() + ).ldelim(); + if (message.tier != null && Object.hasOwnProperty.call(message, 'tier')) + writer.uint32(/* id 4, wireType 0 =*/ 32).int32(message.tier); return writer; }; @@ -240311,31 +249057,31 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ UpgradeLicenseCompletePurchaseRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.UpgradeLicenseCompletePurchaseRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.BI.UpgradeLicenseCompletePurchaseRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.productType = reader.int32(); break; } - case 2: { + case 2: { message.quantity = reader.int32(); break; } - case 3: { + case 3: { message.quotePurchase = $root.BI.QuotePurchase.decode(reader, reader.uint32()); break; } - case 4: { + case 4: { message.tier = reader.int32(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -240352,8 +249098,7 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ UpgradeLicenseCompletePurchaseRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -240366,36 +249111,32 @@ export const BI = $root.BI = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ UpgradeLicenseCompletePurchaseRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.productType != null && message.hasOwnProperty("productType")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.productType != null && message.hasOwnProperty('productType')) switch (message.productType) { - default: - return "productType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - case 10: - break; + default: + return 'productType: enum value expected'; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + case 10: + break; } - if (message.quantity != null && message.hasOwnProperty("quantity")) - if (!$util.isInteger(message.quantity)) - return "quantity: integer expected"; - if (message.quotePurchase != null && message.hasOwnProperty("quotePurchase")) { + if (message.quantity != null && message.hasOwnProperty('quantity')) + if (!$util.isInteger(message.quantity)) return 'quantity: integer expected'; + if (message.quotePurchase != null && message.hasOwnProperty('quotePurchase')) { let error = $root.BI.QuotePurchase.verify(message.quotePurchase); - if (error) - return "quotePurchase." + error; + if (error) return 'quotePurchase.' + error; } - if (message.tier != null && message.hasOwnProperty("tier")) - if (!$util.isInteger(message.tier)) - return "tier: integer expected"; + if (message.tier != null && message.hasOwnProperty('tier')) + if (!$util.isInteger(message.tier)) return 'tier: integer expected'; return null; }; @@ -240408,70 +249149,67 @@ export const BI = $root.BI = (() => { * @returns {BI.UpgradeLicenseCompletePurchaseRequest} UpgradeLicenseCompletePurchaseRequest */ UpgradeLicenseCompletePurchaseRequest.fromObject = function fromObject(object) { - if (object instanceof $root.BI.UpgradeLicenseCompletePurchaseRequest) - return object; + if (object instanceof $root.BI.UpgradeLicenseCompletePurchaseRequest) return object; let message = new $root.BI.UpgradeLicenseCompletePurchaseRequest(); switch (object.productType) { - default: - if (typeof object.productType === "number") { - message.productType = object.productType; - break; - } - break; - case "upgradeToEnterprise": - case 0: - message.productType = 0; - break; - case "addUsers": - case 1: - message.productType = 1; - break; - case "addStorage": - case 2: - message.productType = 2; - break; - case "addAudit": - case 3: - message.productType = 3; - break; - case "addBreachWatch": - case 4: - message.productType = 4; - break; - case "addCompliance": - case 5: - message.productType = 5; - break; - case "addChat": - case 6: - message.productType = 6; - break; - case "addPAM": - case 7: - message.productType = 7; - break; - case "addSilverSupport": - case 8: - message.productType = 8; - break; - case "addPlatinumSupport": - case 9: - message.productType = 9; - break; - case "addKEPM": - case 10: - message.productType = 10; - break; - } - if (object.quantity != null) - message.quantity = object.quantity | 0; + default: + if (typeof object.productType === 'number') { + message.productType = object.productType; + break; + } + break; + case 'upgradeToEnterprise': + case 0: + message.productType = 0; + break; + case 'addUsers': + case 1: + message.productType = 1; + break; + case 'addStorage': + case 2: + message.productType = 2; + break; + case 'addAudit': + case 3: + message.productType = 3; + break; + case 'addBreachWatch': + case 4: + message.productType = 4; + break; + case 'addCompliance': + case 5: + message.productType = 5; + break; + case 'addChat': + case 6: + message.productType = 6; + break; + case 'addPAM': + case 7: + message.productType = 7; + break; + case 'addSilverSupport': + case 8: + message.productType = 8; + break; + case 'addPlatinumSupport': + case 9: + message.productType = 9; + break; + case 'addKEPM': + case 10: + message.productType = 10; + break; + } + if (object.quantity != null) message.quantity = object.quantity | 0; if (object.quotePurchase != null) { - if (typeof object.quotePurchase !== "object") - throw TypeError(".BI.UpgradeLicenseCompletePurchaseRequest.quotePurchase: object expected"); + if (typeof object.quotePurchase !== 'object') + throw TypeError('.BI.UpgradeLicenseCompletePurchaseRequest.quotePurchase: object expected'); message.quotePurchase = $root.BI.QuotePurchase.fromObject(object.quotePurchase); } - if (object.tier != null) - message.tier = object.tier | 0; + if (object.tier != null) message.tier = object.tier | 0; return message; }; @@ -240485,23 +249223,25 @@ export const BI = $root.BI = (() => { * @returns {Object.} Plain object */ UpgradeLicenseCompletePurchaseRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - object.productType = options.enums === String ? "upgradeToEnterprise" : 0; + object.productType = options.enums === String ? 'upgradeToEnterprise' : 0; object.quantity = 0; object.quotePurchase = null; object.tier = 0; } - if (message.productType != null && message.hasOwnProperty("productType")) - object.productType = options.enums === String ? $root.BI.PurchaseProductType[message.productType] === undefined ? message.productType : $root.BI.PurchaseProductType[message.productType] : message.productType; - if (message.quantity != null && message.hasOwnProperty("quantity")) - object.quantity = message.quantity; - if (message.quotePurchase != null && message.hasOwnProperty("quotePurchase")) + if (message.productType != null && message.hasOwnProperty('productType')) + object.productType = + options.enums === String + ? $root.BI.PurchaseProductType[message.productType] === undefined + ? message.productType + : $root.BI.PurchaseProductType[message.productType] + : message.productType; + if (message.quantity != null && message.hasOwnProperty('quantity')) object.quantity = message.quantity; + if (message.quotePurchase != null && message.hasOwnProperty('quotePurchase')) object.quotePurchase = $root.BI.QuotePurchase.toObject(message.quotePurchase, options); - if (message.tier != null && message.hasOwnProperty("tier")) - object.tier = message.tier; + if (message.tier != null && message.hasOwnProperty('tier')) object.tier = message.tier; return object; }; @@ -240526,16 +249266,15 @@ export const BI = $root.BI = (() => { */ UpgradeLicenseCompletePurchaseRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/BI.UpgradeLicenseCompletePurchaseRequest"; + return typeUrlPrefix + '/BI.UpgradeLicenseCompletePurchaseRequest'; }; return UpgradeLicenseCompletePurchaseRequest; })(); - BI.UpgradeLicenseCompletePurchaseResponse = (function() { - + BI.UpgradeLicenseCompletePurchaseResponse = (function () { /** * Properties of an UpgradeLicenseCompletePurchaseResponse. * @memberof BI @@ -240557,8 +249296,7 @@ export const BI = $root.BI = (() => { function UpgradeLicenseCompletePurchaseResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -240575,7 +249313,7 @@ export const BI = $root.BI = (() => { * @memberof BI.UpgradeLicenseCompletePurchaseResponse * @instance */ - UpgradeLicenseCompletePurchaseResponse.prototype.invoiceNumber = ""; + UpgradeLicenseCompletePurchaseResponse.prototype.invoiceNumber = ''; /** * UpgradeLicenseCompletePurchaseResponse error. @@ -240615,16 +249353,18 @@ export const BI = $root.BI = (() => { * @returns {$protobuf.Writer} Writer */ UpgradeLicenseCompletePurchaseResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.success != null && Object.hasOwnProperty.call(message, "success")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.success); - if (message.invoiceNumber != null && Object.hasOwnProperty.call(message, "invoiceNumber")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.invoiceNumber); - if (message.error != null && Object.hasOwnProperty.call(message, "error")) - $root.BI.Error.encode(message.error, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.quotePurchase != null && Object.hasOwnProperty.call(message, "quotePurchase")) - $root.BI.QuotePurchase.encode(message.quotePurchase, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (!writer) writer = $Writer.create(); + if (message.success != null && Object.hasOwnProperty.call(message, 'success')) + writer.uint32(/* id 1, wireType 0 =*/ 8).bool(message.success); + if (message.invoiceNumber != null && Object.hasOwnProperty.call(message, 'invoiceNumber')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.invoiceNumber); + if (message.error != null && Object.hasOwnProperty.call(message, 'error')) + $root.BI.Error.encode(message.error, writer.uint32(/* id 3, wireType 2 =*/ 26).fork()).ldelim(); + if (message.quotePurchase != null && Object.hasOwnProperty.call(message, 'quotePurchase')) + $root.BI.QuotePurchase.encode( + message.quotePurchase, + writer.uint32(/* id 4, wireType 2 =*/ 34).fork() + ).ldelim(); return writer; }; @@ -240653,31 +249393,31 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ UpgradeLicenseCompletePurchaseResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.UpgradeLicenseCompletePurchaseResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.BI.UpgradeLicenseCompletePurchaseResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.success = reader.bool(); break; } - case 2: { + case 2: { message.invoiceNumber = reader.string(); break; } - case 3: { + case 3: { message.error = $root.BI.Error.decode(reader, reader.uint32()); break; } - case 4: { + case 4: { message.quotePurchase = $root.BI.QuotePurchase.decode(reader, reader.uint32()); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -240694,8 +249434,7 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ UpgradeLicenseCompletePurchaseResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -240708,23 +249447,18 @@ export const BI = $root.BI = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ UpgradeLicenseCompletePurchaseResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.success != null && message.hasOwnProperty("success")) - if (typeof message.success !== "boolean") - return "success: boolean expected"; - if (message.invoiceNumber != null && message.hasOwnProperty("invoiceNumber")) - if (!$util.isString(message.invoiceNumber)) - return "invoiceNumber: string expected"; - if (message.error != null && message.hasOwnProperty("error")) { + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.success != null && message.hasOwnProperty('success')) + if (typeof message.success !== 'boolean') return 'success: boolean expected'; + if (message.invoiceNumber != null && message.hasOwnProperty('invoiceNumber')) + if (!$util.isString(message.invoiceNumber)) return 'invoiceNumber: string expected'; + if (message.error != null && message.hasOwnProperty('error')) { let error = $root.BI.Error.verify(message.error); - if (error) - return "error." + error; + if (error) return 'error.' + error; } - if (message.quotePurchase != null && message.hasOwnProperty("quotePurchase")) { + if (message.quotePurchase != null && message.hasOwnProperty('quotePurchase')) { let error = $root.BI.QuotePurchase.verify(message.quotePurchase); - if (error) - return "quotePurchase." + error; + if (error) return 'quotePurchase.' + error; } return null; }; @@ -240738,21 +249472,18 @@ export const BI = $root.BI = (() => { * @returns {BI.UpgradeLicenseCompletePurchaseResponse} UpgradeLicenseCompletePurchaseResponse */ UpgradeLicenseCompletePurchaseResponse.fromObject = function fromObject(object) { - if (object instanceof $root.BI.UpgradeLicenseCompletePurchaseResponse) - return object; + if (object instanceof $root.BI.UpgradeLicenseCompletePurchaseResponse) return object; let message = new $root.BI.UpgradeLicenseCompletePurchaseResponse(); - if (object.success != null) - message.success = Boolean(object.success); - if (object.invoiceNumber != null) - message.invoiceNumber = String(object.invoiceNumber); + if (object.success != null) message.success = Boolean(object.success); + if (object.invoiceNumber != null) message.invoiceNumber = String(object.invoiceNumber); if (object.error != null) { - if (typeof object.error !== "object") - throw TypeError(".BI.UpgradeLicenseCompletePurchaseResponse.error: object expected"); + if (typeof object.error !== 'object') + throw TypeError('.BI.UpgradeLicenseCompletePurchaseResponse.error: object expected'); message.error = $root.BI.Error.fromObject(object.error); } if (object.quotePurchase != null) { - if (typeof object.quotePurchase !== "object") - throw TypeError(".BI.UpgradeLicenseCompletePurchaseResponse.quotePurchase: object expected"); + if (typeof object.quotePurchase !== 'object') + throw TypeError('.BI.UpgradeLicenseCompletePurchaseResponse.quotePurchase: object expected'); message.quotePurchase = $root.BI.QuotePurchase.fromObject(object.quotePurchase); } return message; @@ -240768,22 +249499,20 @@ export const BI = $root.BI = (() => { * @returns {Object.} Plain object */ UpgradeLicenseCompletePurchaseResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { object.success = false; - object.invoiceNumber = ""; + object.invoiceNumber = ''; object.error = null; object.quotePurchase = null; } - if (message.success != null && message.hasOwnProperty("success")) - object.success = message.success; - if (message.invoiceNumber != null && message.hasOwnProperty("invoiceNumber")) + if (message.success != null && message.hasOwnProperty('success')) object.success = message.success; + if (message.invoiceNumber != null && message.hasOwnProperty('invoiceNumber')) object.invoiceNumber = message.invoiceNumber; - if (message.error != null && message.hasOwnProperty("error")) + if (message.error != null && message.hasOwnProperty('error')) object.error = $root.BI.Error.toObject(message.error, options); - if (message.quotePurchase != null && message.hasOwnProperty("quotePurchase")) + if (message.quotePurchase != null && message.hasOwnProperty('quotePurchase')) object.quotePurchase = $root.BI.QuotePurchase.toObject(message.quotePurchase, options); return object; }; @@ -240809,16 +249538,15 @@ export const BI = $root.BI = (() => { */ UpgradeLicenseCompletePurchaseResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/BI.UpgradeLicenseCompletePurchaseResponse"; + return typeUrlPrefix + '/BI.UpgradeLicenseCompletePurchaseResponse'; }; return UpgradeLicenseCompletePurchaseResponse; })(); - BI.EnterpriseBasePlan = (function() { - + BI.EnterpriseBasePlan = (function () { /** * Properties of an EnterpriseBasePlan. * @memberof BI @@ -240838,8 +249566,7 @@ export const BI = $root.BI = (() => { function EnterpriseBasePlan(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -240880,12 +249607,11 @@ export const BI = $root.BI = (() => { * @returns {$protobuf.Writer} Writer */ EnterpriseBasePlan.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.baseplanVersion != null && Object.hasOwnProperty.call(message, "baseplanVersion")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.baseplanVersion); - if (message.cost != null && Object.hasOwnProperty.call(message, "cost")) - $root.BI.Cost.encode(message.cost, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (!writer) writer = $Writer.create(); + if (message.baseplanVersion != null && Object.hasOwnProperty.call(message, 'baseplanVersion')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int32(message.baseplanVersion); + if (message.cost != null && Object.hasOwnProperty.call(message, 'cost')) + $root.BI.Cost.encode(message.cost, writer.uint32(/* id 2, wireType 2 =*/ 18).fork()).ldelim(); return writer; }; @@ -240914,23 +249640,23 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ EnterpriseBasePlan.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.EnterpriseBasePlan(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.BI.EnterpriseBasePlan(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.baseplanVersion = reader.int32(); break; } - case 2: { + case 2: { message.cost = $root.BI.Cost.decode(reader, reader.uint32()); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -240947,8 +249673,7 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ EnterpriseBasePlan.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -240961,22 +249686,20 @@ export const BI = $root.BI = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ EnterpriseBasePlan.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.baseplanVersion != null && message.hasOwnProperty("baseplanVersion")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.baseplanVersion != null && message.hasOwnProperty('baseplanVersion')) switch (message.baseplanVersion) { - default: - return "baseplanVersion: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; + default: + return 'baseplanVersion: enum value expected'; + case 0: + case 1: + case 2: + case 3: + break; } - if (message.cost != null && message.hasOwnProperty("cost")) { + if (message.cost != null && message.hasOwnProperty('cost')) { let error = $root.BI.Cost.verify(message.cost); - if (error) - return "cost." + error; + if (error) return 'cost.' + error; } return null; }; @@ -240990,36 +249713,34 @@ export const BI = $root.BI = (() => { * @returns {BI.EnterpriseBasePlan} EnterpriseBasePlan */ EnterpriseBasePlan.fromObject = function fromObject(object) { - if (object instanceof $root.BI.EnterpriseBasePlan) - return object; + if (object instanceof $root.BI.EnterpriseBasePlan) return object; let message = new $root.BI.EnterpriseBasePlan(); switch (object.baseplanVersion) { - default: - if (typeof object.baseplanVersion === "number") { - message.baseplanVersion = object.baseplanVersion; - break; - } - break; - case "UNKNOWN": - case 0: - message.baseplanVersion = 0; - break; - case "BUSINESS_STARTER": - case 1: - message.baseplanVersion = 1; - break; - case "BUSINESS": - case 2: - message.baseplanVersion = 2; - break; - case "ENTERPRISE": - case 3: - message.baseplanVersion = 3; - break; + default: + if (typeof object.baseplanVersion === 'number') { + message.baseplanVersion = object.baseplanVersion; + break; + } + break; + case 'UNKNOWN': + case 0: + message.baseplanVersion = 0; + break; + case 'BUSINESS_STARTER': + case 1: + message.baseplanVersion = 1; + break; + case 'BUSINESS': + case 2: + message.baseplanVersion = 2; + break; + case 'ENTERPRISE': + case 3: + message.baseplanVersion = 3; + break; } if (object.cost != null) { - if (typeof object.cost !== "object") - throw TypeError(".BI.EnterpriseBasePlan.cost: object expected"); + if (typeof object.cost !== 'object') throw TypeError('.BI.EnterpriseBasePlan.cost: object expected'); message.cost = $root.BI.Cost.fromObject(object.cost); } return message; @@ -241035,16 +249756,20 @@ export const BI = $root.BI = (() => { * @returns {Object.} Plain object */ EnterpriseBasePlan.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - object.baseplanVersion = options.enums === String ? "UNKNOWN" : 0; + object.baseplanVersion = options.enums === String ? 'UNKNOWN' : 0; object.cost = null; } - if (message.baseplanVersion != null && message.hasOwnProperty("baseplanVersion")) - object.baseplanVersion = options.enums === String ? $root.BI.EnterpriseBasePlan.EnterpriseBasePlanVersion[message.baseplanVersion] === undefined ? message.baseplanVersion : $root.BI.EnterpriseBasePlan.EnterpriseBasePlanVersion[message.baseplanVersion] : message.baseplanVersion; - if (message.cost != null && message.hasOwnProperty("cost")) + if (message.baseplanVersion != null && message.hasOwnProperty('baseplanVersion')) + object.baseplanVersion = + options.enums === String + ? $root.BI.EnterpriseBasePlan.EnterpriseBasePlanVersion[message.baseplanVersion] === undefined + ? message.baseplanVersion + : $root.BI.EnterpriseBasePlan.EnterpriseBasePlanVersion[message.baseplanVersion] + : message.baseplanVersion; + if (message.cost != null && message.hasOwnProperty('cost')) object.cost = $root.BI.Cost.toObject(message.cost, options); return object; }; @@ -241070,9 +249795,9 @@ export const BI = $root.BI = (() => { */ EnterpriseBasePlan.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/BI.EnterpriseBasePlan"; + return typeUrlPrefix + '/BI.EnterpriseBasePlan'; }; /** @@ -241084,20 +249809,20 @@ export const BI = $root.BI = (() => { * @property {number} BUSINESS=2 BUSINESS value * @property {number} ENTERPRISE=3 ENTERPRISE value */ - EnterpriseBasePlan.EnterpriseBasePlanVersion = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "UNKNOWN"] = 0; - values[valuesById[1] = "BUSINESS_STARTER"] = 1; - values[valuesById[2] = "BUSINESS"] = 2; - values[valuesById[3] = "ENTERPRISE"] = 3; + EnterpriseBasePlan.EnterpriseBasePlanVersion = (function () { + const valuesById = {}, + values = Object.create(valuesById); + values[(valuesById[0] = 'UNKNOWN')] = 0; + values[(valuesById[1] = 'BUSINESS_STARTER')] = 1; + values[(valuesById[2] = 'BUSINESS')] = 2; + values[(valuesById[3] = 'ENTERPRISE')] = 3; return values; })(); return EnterpriseBasePlan; })(); - BI.SubscriptionEnterprisePricingRequest = (function() { - + BI.SubscriptionEnterprisePricingRequest = (function () { /** * Properties of a SubscriptionEnterprisePricingRequest. * @memberof BI @@ -241115,8 +249840,7 @@ export const BI = $root.BI = (() => { function SubscriptionEnterprisePricingRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -241141,8 +249865,7 @@ export const BI = $root.BI = (() => { * @returns {$protobuf.Writer} Writer */ SubscriptionEnterprisePricingRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); return writer; }; @@ -241171,15 +249894,15 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SubscriptionEnterprisePricingRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.SubscriptionEnterprisePricingRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.BI.SubscriptionEnterprisePricingRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -241196,8 +249919,7 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SubscriptionEnterprisePricingRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -241210,8 +249932,7 @@ export const BI = $root.BI = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ SubscriptionEnterprisePricingRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; return null; }; @@ -241224,8 +249945,7 @@ export const BI = $root.BI = (() => { * @returns {BI.SubscriptionEnterprisePricingRequest} SubscriptionEnterprisePricingRequest */ SubscriptionEnterprisePricingRequest.fromObject = function fromObject(object) { - if (object instanceof $root.BI.SubscriptionEnterprisePricingRequest) - return object; + if (object instanceof $root.BI.SubscriptionEnterprisePricingRequest) return object; return new $root.BI.SubscriptionEnterprisePricingRequest(); }; @@ -241263,16 +249983,15 @@ export const BI = $root.BI = (() => { */ SubscriptionEnterprisePricingRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/BI.SubscriptionEnterprisePricingRequest"; + return typeUrlPrefix + '/BI.SubscriptionEnterprisePricingRequest'; }; return SubscriptionEnterprisePricingRequest; })(); - BI.SubscriptionEnterprisePricingResponse = (function() { - + BI.SubscriptionEnterprisePricingResponse = (function () { /** * Properties of a SubscriptionEnterprisePricingResponse. * @memberof BI @@ -241296,8 +250015,7 @@ export const BI = $root.BI = (() => { this.filePlans = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -241346,17 +250064,22 @@ export const BI = $root.BI = (() => { * @returns {$protobuf.Writer} Writer */ SubscriptionEnterprisePricingResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.basePlans != null && message.basePlans.length) for (let i = 0; i < message.basePlans.length; ++i) - $root.BI.EnterpriseBasePlan.encode(message.basePlans[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.BI.EnterpriseBasePlan.encode( + message.basePlans[i], + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); if (message.addons != null && message.addons.length) for (let i = 0; i < message.addons.length; ++i) - $root.BI.Addon.encode(message.addons[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + $root.BI.Addon.encode(message.addons[i], writer.uint32(/* id 2, wireType 2 =*/ 18).fork()).ldelim(); if (message.filePlans != null && message.filePlans.length) for (let i = 0; i < message.filePlans.length; ++i) - $root.BI.FilePlan.encode(message.filePlans[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + $root.BI.FilePlan.encode( + message.filePlans[i], + writer.uint32(/* id 3, wireType 2 =*/ 26).fork() + ).ldelim(); return writer; }; @@ -241385,33 +250108,30 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SubscriptionEnterprisePricingResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.SubscriptionEnterprisePricingResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.BI.SubscriptionEnterprisePricingResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (!(message.basePlans && message.basePlans.length)) - message.basePlans = []; + case 1: { + if (!(message.basePlans && message.basePlans.length)) message.basePlans = []; message.basePlans.push($root.BI.EnterpriseBasePlan.decode(reader, reader.uint32())); break; } - case 2: { - if (!(message.addons && message.addons.length)) - message.addons = []; + case 2: { + if (!(message.addons && message.addons.length)) message.addons = []; message.addons.push($root.BI.Addon.decode(reader, reader.uint32())); break; } - case 3: { - if (!(message.filePlans && message.filePlans.length)) - message.filePlans = []; + case 3: { + if (!(message.filePlans && message.filePlans.length)) message.filePlans = []; message.filePlans.push($root.BI.FilePlan.decode(reader, reader.uint32())); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -241428,8 +250148,7 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SubscriptionEnterprisePricingResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -241442,33 +250161,26 @@ export const BI = $root.BI = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ SubscriptionEnterprisePricingResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.basePlans != null && message.hasOwnProperty("basePlans")) { - if (!Array.isArray(message.basePlans)) - return "basePlans: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.basePlans != null && message.hasOwnProperty('basePlans')) { + if (!Array.isArray(message.basePlans)) return 'basePlans: array expected'; for (let i = 0; i < message.basePlans.length; ++i) { let error = $root.BI.EnterpriseBasePlan.verify(message.basePlans[i]); - if (error) - return "basePlans." + error; + if (error) return 'basePlans.' + error; } } - if (message.addons != null && message.hasOwnProperty("addons")) { - if (!Array.isArray(message.addons)) - return "addons: array expected"; + if (message.addons != null && message.hasOwnProperty('addons')) { + if (!Array.isArray(message.addons)) return 'addons: array expected'; for (let i = 0; i < message.addons.length; ++i) { let error = $root.BI.Addon.verify(message.addons[i]); - if (error) - return "addons." + error; + if (error) return 'addons.' + error; } } - if (message.filePlans != null && message.hasOwnProperty("filePlans")) { - if (!Array.isArray(message.filePlans)) - return "filePlans: array expected"; + if (message.filePlans != null && message.hasOwnProperty('filePlans')) { + if (!Array.isArray(message.filePlans)) return 'filePlans: array expected'; for (let i = 0; i < message.filePlans.length; ++i) { let error = $root.BI.FilePlan.verify(message.filePlans[i]); - if (error) - return "filePlans." + error; + if (error) return 'filePlans.' + error; } } return null; @@ -241483,36 +250195,35 @@ export const BI = $root.BI = (() => { * @returns {BI.SubscriptionEnterprisePricingResponse} SubscriptionEnterprisePricingResponse */ SubscriptionEnterprisePricingResponse.fromObject = function fromObject(object) { - if (object instanceof $root.BI.SubscriptionEnterprisePricingResponse) - return object; + if (object instanceof $root.BI.SubscriptionEnterprisePricingResponse) return object; let message = new $root.BI.SubscriptionEnterprisePricingResponse(); if (object.basePlans) { if (!Array.isArray(object.basePlans)) - throw TypeError(".BI.SubscriptionEnterprisePricingResponse.basePlans: array expected"); + throw TypeError('.BI.SubscriptionEnterprisePricingResponse.basePlans: array expected'); message.basePlans = []; for (let i = 0; i < object.basePlans.length; ++i) { - if (typeof object.basePlans[i] !== "object") - throw TypeError(".BI.SubscriptionEnterprisePricingResponse.basePlans: object expected"); + if (typeof object.basePlans[i] !== 'object') + throw TypeError('.BI.SubscriptionEnterprisePricingResponse.basePlans: object expected'); message.basePlans[i] = $root.BI.EnterpriseBasePlan.fromObject(object.basePlans[i]); } } if (object.addons) { if (!Array.isArray(object.addons)) - throw TypeError(".BI.SubscriptionEnterprisePricingResponse.addons: array expected"); + throw TypeError('.BI.SubscriptionEnterprisePricingResponse.addons: array expected'); message.addons = []; for (let i = 0; i < object.addons.length; ++i) { - if (typeof object.addons[i] !== "object") - throw TypeError(".BI.SubscriptionEnterprisePricingResponse.addons: object expected"); + if (typeof object.addons[i] !== 'object') + throw TypeError('.BI.SubscriptionEnterprisePricingResponse.addons: object expected'); message.addons[i] = $root.BI.Addon.fromObject(object.addons[i]); } } if (object.filePlans) { if (!Array.isArray(object.filePlans)) - throw TypeError(".BI.SubscriptionEnterprisePricingResponse.filePlans: array expected"); + throw TypeError('.BI.SubscriptionEnterprisePricingResponse.filePlans: array expected'); message.filePlans = []; for (let i = 0; i < object.filePlans.length; ++i) { - if (typeof object.filePlans[i] !== "object") - throw TypeError(".BI.SubscriptionEnterprisePricingResponse.filePlans: object expected"); + if (typeof object.filePlans[i] !== 'object') + throw TypeError('.BI.SubscriptionEnterprisePricingResponse.filePlans: object expected'); message.filePlans[i] = $root.BI.FilePlan.fromObject(object.filePlans[i]); } } @@ -241529,8 +250240,7 @@ export const BI = $root.BI = (() => { * @returns {Object.} Plain object */ SubscriptionEnterprisePricingResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.arrays || options.defaults) { object.basePlans = []; @@ -241576,9 +250286,9 @@ export const BI = $root.BI = (() => { */ SubscriptionEnterprisePricingResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/BI.SubscriptionEnterprisePricingResponse"; + return typeUrlPrefix + '/BI.SubscriptionEnterprisePricingResponse'; }; return SubscriptionEnterprisePricingResponse; @@ -241598,22 +250308,22 @@ export const BI = $root.BI = (() => { * @property {number} SINGULAR_DEVICE_ID=7 SINGULAR_DEVICE_ID value * @property {number} CLIENT_DEFINED_ID=8 CLIENT_DEFINED_ID value */ - BI.IdentifierType = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "UNKNOWN_IDENTIFIER_TYPE"] = 0; - values[valuesById[1] = "IOS_ID"] = 1; - values[valuesById[2] = "ANDROID_GOOGLE_PLAY_ID"] = 2; - values[valuesById[3] = "ANDROID_APP_SET_ID"] = 3; - values[valuesById[4] = "ANDROID_ID"] = 4; - values[valuesById[5] = "AMAZON_ADVERTISING_ID"] = 5; - values[valuesById[6] = "OPEN_ADVERTISING_ID"] = 6; - values[valuesById[7] = "SINGULAR_DEVICE_ID"] = 7; - values[valuesById[8] = "CLIENT_DEFINED_ID"] = 8; + BI.IdentifierType = (function () { + const valuesById = {}, + values = Object.create(valuesById); + values[(valuesById[0] = 'UNKNOWN_IDENTIFIER_TYPE')] = 0; + values[(valuesById[1] = 'IOS_ID')] = 1; + values[(valuesById[2] = 'ANDROID_GOOGLE_PLAY_ID')] = 2; + values[(valuesById[3] = 'ANDROID_APP_SET_ID')] = 3; + values[(valuesById[4] = 'ANDROID_ID')] = 4; + values[(valuesById[5] = 'AMAZON_ADVERTISING_ID')] = 5; + values[(valuesById[6] = 'OPEN_ADVERTISING_ID')] = 6; + values[(valuesById[7] = 'SINGULAR_DEVICE_ID')] = 7; + values[(valuesById[8] = 'CLIENT_DEFINED_ID')] = 8; return values; })(); - BI.SingularDeviceIdentifier = (function() { - + BI.SingularDeviceIdentifier = (function () { /** * Properties of a SingularDeviceIdentifier. * @memberof BI @@ -241633,8 +250343,7 @@ export const BI = $root.BI = (() => { function SingularDeviceIdentifier(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -241643,7 +250352,7 @@ export const BI = $root.BI = (() => { * @memberof BI.SingularDeviceIdentifier * @instance */ - SingularDeviceIdentifier.prototype.id = ""; + SingularDeviceIdentifier.prototype.id = ''; /** * SingularDeviceIdentifier idType. @@ -241675,12 +250384,11 @@ export const BI = $root.BI = (() => { * @returns {$protobuf.Writer} Writer */ SingularDeviceIdentifier.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.id != null && Object.hasOwnProperty.call(message, "id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.id); - if (message.idType != null && Object.hasOwnProperty.call(message, "idType")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.idType); + if (!writer) writer = $Writer.create(); + if (message.id != null && Object.hasOwnProperty.call(message, 'id')) + writer.uint32(/* id 1, wireType 2 =*/ 10).string(message.id); + if (message.idType != null && Object.hasOwnProperty.call(message, 'idType')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int32(message.idType); return writer; }; @@ -241709,23 +250417,23 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SingularDeviceIdentifier.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.SingularDeviceIdentifier(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.BI.SingularDeviceIdentifier(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.id = reader.string(); break; } - case 2: { + case 2: { message.idType = reader.int32(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -241742,8 +250450,7 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SingularDeviceIdentifier.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -241756,25 +250463,23 @@ export const BI = $root.BI = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ SingularDeviceIdentifier.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) - if (!$util.isString(message.id)) - return "id: string expected"; - if (message.idType != null && message.hasOwnProperty("idType")) + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.id != null && message.hasOwnProperty('id')) + if (!$util.isString(message.id)) return 'id: string expected'; + if (message.idType != null && message.hasOwnProperty('idType')) switch (message.idType) { - default: - return "idType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - break; + default: + return 'idType: enum value expected'; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + break; } return null; }; @@ -241788,54 +250493,52 @@ export const BI = $root.BI = (() => { * @returns {BI.SingularDeviceIdentifier} SingularDeviceIdentifier */ SingularDeviceIdentifier.fromObject = function fromObject(object) { - if (object instanceof $root.BI.SingularDeviceIdentifier) - return object; + if (object instanceof $root.BI.SingularDeviceIdentifier) return object; let message = new $root.BI.SingularDeviceIdentifier(); - if (object.id != null) - message.id = String(object.id); + if (object.id != null) message.id = String(object.id); switch (object.idType) { - default: - if (typeof object.idType === "number") { - message.idType = object.idType; - break; - } - break; - case "UNKNOWN_IDENTIFIER_TYPE": - case 0: - message.idType = 0; - break; - case "IOS_ID": - case 1: - message.idType = 1; - break; - case "ANDROID_GOOGLE_PLAY_ID": - case 2: - message.idType = 2; - break; - case "ANDROID_APP_SET_ID": - case 3: - message.idType = 3; - break; - case "ANDROID_ID": - case 4: - message.idType = 4; - break; - case "AMAZON_ADVERTISING_ID": - case 5: - message.idType = 5; - break; - case "OPEN_ADVERTISING_ID": - case 6: - message.idType = 6; - break; - case "SINGULAR_DEVICE_ID": - case 7: - message.idType = 7; - break; - case "CLIENT_DEFINED_ID": - case 8: - message.idType = 8; - break; + default: + if (typeof object.idType === 'number') { + message.idType = object.idType; + break; + } + break; + case 'UNKNOWN_IDENTIFIER_TYPE': + case 0: + message.idType = 0; + break; + case 'IOS_ID': + case 1: + message.idType = 1; + break; + case 'ANDROID_GOOGLE_PLAY_ID': + case 2: + message.idType = 2; + break; + case 'ANDROID_APP_SET_ID': + case 3: + message.idType = 3; + break; + case 'ANDROID_ID': + case 4: + message.idType = 4; + break; + case 'AMAZON_ADVERTISING_ID': + case 5: + message.idType = 5; + break; + case 'OPEN_ADVERTISING_ID': + case 6: + message.idType = 6; + break; + case 'SINGULAR_DEVICE_ID': + case 7: + message.idType = 7; + break; + case 'CLIENT_DEFINED_ID': + case 8: + message.idType = 8; + break; } return message; }; @@ -241850,17 +250553,20 @@ export const BI = $root.BI = (() => { * @returns {Object.} Plain object */ SingularDeviceIdentifier.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - object.id = ""; - object.idType = options.enums === String ? "UNKNOWN_IDENTIFIER_TYPE" : 0; + object.id = ''; + object.idType = options.enums === String ? 'UNKNOWN_IDENTIFIER_TYPE' : 0; } - if (message.id != null && message.hasOwnProperty("id")) - object.id = message.id; - if (message.idType != null && message.hasOwnProperty("idType")) - object.idType = options.enums === String ? $root.BI.IdentifierType[message.idType] === undefined ? message.idType : $root.BI.IdentifierType[message.idType] : message.idType; + if (message.id != null && message.hasOwnProperty('id')) object.id = message.id; + if (message.idType != null && message.hasOwnProperty('idType')) + object.idType = + options.enums === String + ? $root.BI.IdentifierType[message.idType] === undefined + ? message.idType + : $root.BI.IdentifierType[message.idType] + : message.idType; return object; }; @@ -241885,16 +250591,15 @@ export const BI = $root.BI = (() => { */ SingularDeviceIdentifier.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/BI.SingularDeviceIdentifier"; + return typeUrlPrefix + '/BI.SingularDeviceIdentifier'; }; return SingularDeviceIdentifier; })(); - BI.SingularSharedData = (function() { - + BI.SingularSharedData = (function () { /** * Properties of a SingularSharedData. * @memberof BI @@ -241920,8 +250625,7 @@ export const BI = $root.BI = (() => { function SingularSharedData(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -241930,7 +250634,7 @@ export const BI = $root.BI = (() => { * @memberof BI.SingularSharedData * @instance */ - SingularSharedData.prototype.platform = ""; + SingularSharedData.prototype.platform = ''; /** * SingularSharedData osVersion. @@ -241938,7 +250642,7 @@ export const BI = $root.BI = (() => { * @memberof BI.SingularSharedData * @instance */ - SingularSharedData.prototype.osVersion = ""; + SingularSharedData.prototype.osVersion = ''; /** * SingularSharedData make. @@ -241946,7 +250650,7 @@ export const BI = $root.BI = (() => { * @memberof BI.SingularSharedData * @instance */ - SingularSharedData.prototype.make = ""; + SingularSharedData.prototype.make = ''; /** * SingularSharedData model. @@ -241954,7 +250658,7 @@ export const BI = $root.BI = (() => { * @memberof BI.SingularSharedData * @instance */ - SingularSharedData.prototype.model = ""; + SingularSharedData.prototype.model = ''; /** * SingularSharedData locale. @@ -241962,7 +250666,7 @@ export const BI = $root.BI = (() => { * @memberof BI.SingularSharedData * @instance */ - SingularSharedData.prototype.locale = ""; + SingularSharedData.prototype.locale = ''; /** * SingularSharedData build. @@ -241970,7 +250674,7 @@ export const BI = $root.BI = (() => { * @memberof BI.SingularSharedData * @instance */ - SingularSharedData.prototype.build = ""; + SingularSharedData.prototype.build = ''; /** * SingularSharedData appIdentifier. @@ -241978,7 +250682,7 @@ export const BI = $root.BI = (() => { * @memberof BI.SingularSharedData * @instance */ - SingularSharedData.prototype.appIdentifier = ""; + SingularSharedData.prototype.appIdentifier = ''; /** * SingularSharedData attAuthorizationStatus. @@ -242010,24 +250714,23 @@ export const BI = $root.BI = (() => { * @returns {$protobuf.Writer} Writer */ SingularSharedData.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.platform != null && Object.hasOwnProperty.call(message, "platform")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.platform); - if (message.osVersion != null && Object.hasOwnProperty.call(message, "osVersion")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.osVersion); - if (message.make != null && Object.hasOwnProperty.call(message, "make")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.make); - if (message.model != null && Object.hasOwnProperty.call(message, "model")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.model); - if (message.locale != null && Object.hasOwnProperty.call(message, "locale")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.locale); - if (message.build != null && Object.hasOwnProperty.call(message, "build")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.build); - if (message.appIdentifier != null && Object.hasOwnProperty.call(message, "appIdentifier")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.appIdentifier); - if (message.attAuthorizationStatus != null && Object.hasOwnProperty.call(message, "attAuthorizationStatus")) - writer.uint32(/* id 8, wireType 0 =*/64).int32(message.attAuthorizationStatus); + if (!writer) writer = $Writer.create(); + if (message.platform != null && Object.hasOwnProperty.call(message, 'platform')) + writer.uint32(/* id 1, wireType 2 =*/ 10).string(message.platform); + if (message.osVersion != null && Object.hasOwnProperty.call(message, 'osVersion')) + writer.uint32(/* id 2, wireType 2 =*/ 18).string(message.osVersion); + if (message.make != null && Object.hasOwnProperty.call(message, 'make')) + writer.uint32(/* id 3, wireType 2 =*/ 26).string(message.make); + if (message.model != null && Object.hasOwnProperty.call(message, 'model')) + writer.uint32(/* id 4, wireType 2 =*/ 34).string(message.model); + if (message.locale != null && Object.hasOwnProperty.call(message, 'locale')) + writer.uint32(/* id 5, wireType 2 =*/ 42).string(message.locale); + if (message.build != null && Object.hasOwnProperty.call(message, 'build')) + writer.uint32(/* id 6, wireType 2 =*/ 50).string(message.build); + if (message.appIdentifier != null && Object.hasOwnProperty.call(message, 'appIdentifier')) + writer.uint32(/* id 7, wireType 2 =*/ 58).string(message.appIdentifier); + if (message.attAuthorizationStatus != null && Object.hasOwnProperty.call(message, 'attAuthorizationStatus')) + writer.uint32(/* id 8, wireType 0 =*/ 64).int32(message.attAuthorizationStatus); return writer; }; @@ -242056,47 +250759,47 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SingularSharedData.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.SingularSharedData(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.BI.SingularSharedData(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.platform = reader.string(); break; } - case 2: { + case 2: { message.osVersion = reader.string(); break; } - case 3: { + case 3: { message.make = reader.string(); break; } - case 4: { + case 4: { message.model = reader.string(); break; } - case 5: { + case 5: { message.locale = reader.string(); break; } - case 6: { + case 6: { message.build = reader.string(); break; } - case 7: { + case 7: { message.appIdentifier = reader.string(); break; } - case 8: { + case 8: { message.attAuthorizationStatus = reader.int32(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -242113,8 +250816,7 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SingularSharedData.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -242127,32 +250829,23 @@ export const BI = $root.BI = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ SingularSharedData.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.platform != null && message.hasOwnProperty("platform")) - if (!$util.isString(message.platform)) - return "platform: string expected"; - if (message.osVersion != null && message.hasOwnProperty("osVersion")) - if (!$util.isString(message.osVersion)) - return "osVersion: string expected"; - if (message.make != null && message.hasOwnProperty("make")) - if (!$util.isString(message.make)) - return "make: string expected"; - if (message.model != null && message.hasOwnProperty("model")) - if (!$util.isString(message.model)) - return "model: string expected"; - if (message.locale != null && message.hasOwnProperty("locale")) - if (!$util.isString(message.locale)) - return "locale: string expected"; - if (message.build != null && message.hasOwnProperty("build")) - if (!$util.isString(message.build)) - return "build: string expected"; - if (message.appIdentifier != null && message.hasOwnProperty("appIdentifier")) - if (!$util.isString(message.appIdentifier)) - return "appIdentifier: string expected"; - if (message.attAuthorizationStatus != null && message.hasOwnProperty("attAuthorizationStatus")) - if (!$util.isInteger(message.attAuthorizationStatus)) - return "attAuthorizationStatus: integer expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.platform != null && message.hasOwnProperty('platform')) + if (!$util.isString(message.platform)) return 'platform: string expected'; + if (message.osVersion != null && message.hasOwnProperty('osVersion')) + if (!$util.isString(message.osVersion)) return 'osVersion: string expected'; + if (message.make != null && message.hasOwnProperty('make')) + if (!$util.isString(message.make)) return 'make: string expected'; + if (message.model != null && message.hasOwnProperty('model')) + if (!$util.isString(message.model)) return 'model: string expected'; + if (message.locale != null && message.hasOwnProperty('locale')) + if (!$util.isString(message.locale)) return 'locale: string expected'; + if (message.build != null && message.hasOwnProperty('build')) + if (!$util.isString(message.build)) return 'build: string expected'; + if (message.appIdentifier != null && message.hasOwnProperty('appIdentifier')) + if (!$util.isString(message.appIdentifier)) return 'appIdentifier: string expected'; + if (message.attAuthorizationStatus != null && message.hasOwnProperty('attAuthorizationStatus')) + if (!$util.isInteger(message.attAuthorizationStatus)) return 'attAuthorizationStatus: integer expected'; return null; }; @@ -242165,23 +250858,15 @@ export const BI = $root.BI = (() => { * @returns {BI.SingularSharedData} SingularSharedData */ SingularSharedData.fromObject = function fromObject(object) { - if (object instanceof $root.BI.SingularSharedData) - return object; + if (object instanceof $root.BI.SingularSharedData) return object; let message = new $root.BI.SingularSharedData(); - if (object.platform != null) - message.platform = String(object.platform); - if (object.osVersion != null) - message.osVersion = String(object.osVersion); - if (object.make != null) - message.make = String(object.make); - if (object.model != null) - message.model = String(object.model); - if (object.locale != null) - message.locale = String(object.locale); - if (object.build != null) - message.build = String(object.build); - if (object.appIdentifier != null) - message.appIdentifier = String(object.appIdentifier); + if (object.platform != null) message.platform = String(object.platform); + if (object.osVersion != null) message.osVersion = String(object.osVersion); + if (object.make != null) message.make = String(object.make); + if (object.model != null) message.model = String(object.model); + if (object.locale != null) message.locale = String(object.locale); + if (object.build != null) message.build = String(object.build); + if (object.appIdentifier != null) message.appIdentifier = String(object.appIdentifier); if (object.attAuthorizationStatus != null) message.attAuthorizationStatus = object.attAuthorizationStatus | 0; return message; @@ -242197,34 +250882,27 @@ export const BI = $root.BI = (() => { * @returns {Object.} Plain object */ SingularSharedData.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { - object.platform = ""; - object.osVersion = ""; - object.make = ""; - object.model = ""; - object.locale = ""; - object.build = ""; - object.appIdentifier = ""; + object.platform = ''; + object.osVersion = ''; + object.make = ''; + object.model = ''; + object.locale = ''; + object.build = ''; + object.appIdentifier = ''; object.attAuthorizationStatus = 0; } - if (message.platform != null && message.hasOwnProperty("platform")) - object.platform = message.platform; - if (message.osVersion != null && message.hasOwnProperty("osVersion")) - object.osVersion = message.osVersion; - if (message.make != null && message.hasOwnProperty("make")) - object.make = message.make; - if (message.model != null && message.hasOwnProperty("model")) - object.model = message.model; - if (message.locale != null && message.hasOwnProperty("locale")) - object.locale = message.locale; - if (message.build != null && message.hasOwnProperty("build")) - object.build = message.build; - if (message.appIdentifier != null && message.hasOwnProperty("appIdentifier")) + if (message.platform != null && message.hasOwnProperty('platform')) object.platform = message.platform; + if (message.osVersion != null && message.hasOwnProperty('osVersion')) object.osVersion = message.osVersion; + if (message.make != null && message.hasOwnProperty('make')) object.make = message.make; + if (message.model != null && message.hasOwnProperty('model')) object.model = message.model; + if (message.locale != null && message.hasOwnProperty('locale')) object.locale = message.locale; + if (message.build != null && message.hasOwnProperty('build')) object.build = message.build; + if (message.appIdentifier != null && message.hasOwnProperty('appIdentifier')) object.appIdentifier = message.appIdentifier; - if (message.attAuthorizationStatus != null && message.hasOwnProperty("attAuthorizationStatus")) + if (message.attAuthorizationStatus != null && message.hasOwnProperty('attAuthorizationStatus')) object.attAuthorizationStatus = message.attAuthorizationStatus; return object; }; @@ -242250,16 +250928,15 @@ export const BI = $root.BI = (() => { */ SingularSharedData.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/BI.SingularSharedData"; + return typeUrlPrefix + '/BI.SingularSharedData'; }; return SingularSharedData; })(); - BI.SingularSessionRequest = (function() { - + BI.SingularSessionRequest = (function () { /** * Properties of a SingularSessionRequest. * @memberof BI @@ -242292,8 +250969,7 @@ export const BI = $root.BI = (() => { this.deviceIdentifiers = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -242318,7 +250994,7 @@ export const BI = $root.BI = (() => { * @memberof BI.SingularSessionRequest * @instance */ - SingularSessionRequest.prototype.applicationVersion = ""; + SingularSessionRequest.prototype.applicationVersion = ''; /** * SingularSessionRequest install. @@ -242334,7 +251010,7 @@ export const BI = $root.BI = (() => { * @memberof BI.SingularSessionRequest * @instance */ - SingularSessionRequest.prototype.installTime = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + SingularSessionRequest.prototype.installTime = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * SingularSessionRequest updateTime. @@ -242342,7 +251018,7 @@ export const BI = $root.BI = (() => { * @memberof BI.SingularSessionRequest * @instance */ - SingularSessionRequest.prototype.updateTime = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + SingularSessionRequest.prototype.updateTime = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * SingularSessionRequest installSource. @@ -242350,7 +251026,7 @@ export const BI = $root.BI = (() => { * @memberof BI.SingularSessionRequest * @instance */ - SingularSessionRequest.prototype.installSource = ""; + SingularSessionRequest.prototype.installSource = ''; /** * SingularSessionRequest installReceipt. @@ -242358,7 +251034,7 @@ export const BI = $root.BI = (() => { * @memberof BI.SingularSessionRequest * @instance */ - SingularSessionRequest.prototype.installReceipt = ""; + SingularSessionRequest.prototype.installReceipt = ''; /** * SingularSessionRequest openuri. @@ -242366,7 +251042,7 @@ export const BI = $root.BI = (() => { * @memberof BI.SingularSessionRequest * @instance */ - SingularSessionRequest.prototype.openuri = ""; + SingularSessionRequest.prototype.openuri = ''; /** * SingularSessionRequest ddlEnabled. @@ -242390,7 +251066,7 @@ export const BI = $root.BI = (() => { * @memberof BI.SingularSessionRequest * @instance */ - SingularSessionRequest.prototype.installRef = ""; + SingularSessionRequest.prototype.installRef = ''; /** * SingularSessionRequest metaRef. @@ -242398,7 +251074,7 @@ export const BI = $root.BI = (() => { * @memberof BI.SingularSessionRequest * @instance */ - SingularSessionRequest.prototype.metaRef = ""; + SingularSessionRequest.prototype.metaRef = ''; /** * SingularSessionRequest attributionToken. @@ -242406,7 +251082,7 @@ export const BI = $root.BI = (() => { * @memberof BI.SingularSessionRequest * @instance */ - SingularSessionRequest.prototype.attributionToken = ""; + SingularSessionRequest.prototype.attributionToken = ''; /** * Creates a new SingularSessionRequest instance using the specified properties. @@ -242430,37 +251106,45 @@ export const BI = $root.BI = (() => { * @returns {$protobuf.Writer} Writer */ SingularSessionRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.deviceIdentifiers != null && message.deviceIdentifiers.length) for (let i = 0; i < message.deviceIdentifiers.length; ++i) - $root.BI.SingularDeviceIdentifier.encode(message.deviceIdentifiers[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.sharedData != null && Object.hasOwnProperty.call(message, "sharedData")) - $root.BI.SingularSharedData.encode(message.sharedData, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.applicationVersion != null && Object.hasOwnProperty.call(message, "applicationVersion")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.applicationVersion); - if (message.install != null && Object.hasOwnProperty.call(message, "install")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.install); - if (message.installTime != null && Object.hasOwnProperty.call(message, "installTime")) - writer.uint32(/* id 5, wireType 0 =*/40).int64(message.installTime); - if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) - writer.uint32(/* id 6, wireType 0 =*/48).int64(message.updateTime); - if (message.installSource != null && Object.hasOwnProperty.call(message, "installSource")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.installSource); - if (message.installReceipt != null && Object.hasOwnProperty.call(message, "installReceipt")) - writer.uint32(/* id 8, wireType 2 =*/66).string(message.installReceipt); - if (message.openuri != null && Object.hasOwnProperty.call(message, "openuri")) - writer.uint32(/* id 9, wireType 2 =*/74).string(message.openuri); - if (message.ddlEnabled != null && Object.hasOwnProperty.call(message, "ddlEnabled")) - writer.uint32(/* id 10, wireType 0 =*/80).bool(message.ddlEnabled); - if (message.singularLinkResolveRequired != null && Object.hasOwnProperty.call(message, "singularLinkResolveRequired")) - writer.uint32(/* id 11, wireType 0 =*/88).bool(message.singularLinkResolveRequired); - if (message.installRef != null && Object.hasOwnProperty.call(message, "installRef")) - writer.uint32(/* id 12, wireType 2 =*/98).string(message.installRef); - if (message.metaRef != null && Object.hasOwnProperty.call(message, "metaRef")) - writer.uint32(/* id 13, wireType 2 =*/106).string(message.metaRef); - if (message.attributionToken != null && Object.hasOwnProperty.call(message, "attributionToken")) - writer.uint32(/* id 14, wireType 2 =*/114).string(message.attributionToken); + $root.BI.SingularDeviceIdentifier.encode( + message.deviceIdentifiers[i], + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); + if (message.sharedData != null && Object.hasOwnProperty.call(message, 'sharedData')) + $root.BI.SingularSharedData.encode( + message.sharedData, + writer.uint32(/* id 2, wireType 2 =*/ 18).fork() + ).ldelim(); + if (message.applicationVersion != null && Object.hasOwnProperty.call(message, 'applicationVersion')) + writer.uint32(/* id 3, wireType 2 =*/ 26).string(message.applicationVersion); + if (message.install != null && Object.hasOwnProperty.call(message, 'install')) + writer.uint32(/* id 4, wireType 0 =*/ 32).bool(message.install); + if (message.installTime != null && Object.hasOwnProperty.call(message, 'installTime')) + writer.uint32(/* id 5, wireType 0 =*/ 40).int64(message.installTime); + if (message.updateTime != null && Object.hasOwnProperty.call(message, 'updateTime')) + writer.uint32(/* id 6, wireType 0 =*/ 48).int64(message.updateTime); + if (message.installSource != null && Object.hasOwnProperty.call(message, 'installSource')) + writer.uint32(/* id 7, wireType 2 =*/ 58).string(message.installSource); + if (message.installReceipt != null && Object.hasOwnProperty.call(message, 'installReceipt')) + writer.uint32(/* id 8, wireType 2 =*/ 66).string(message.installReceipt); + if (message.openuri != null && Object.hasOwnProperty.call(message, 'openuri')) + writer.uint32(/* id 9, wireType 2 =*/ 74).string(message.openuri); + if (message.ddlEnabled != null && Object.hasOwnProperty.call(message, 'ddlEnabled')) + writer.uint32(/* id 10, wireType 0 =*/ 80).bool(message.ddlEnabled); + if ( + message.singularLinkResolveRequired != null && + Object.hasOwnProperty.call(message, 'singularLinkResolveRequired') + ) + writer.uint32(/* id 11, wireType 0 =*/ 88).bool(message.singularLinkResolveRequired); + if (message.installRef != null && Object.hasOwnProperty.call(message, 'installRef')) + writer.uint32(/* id 12, wireType 2 =*/ 98).string(message.installRef); + if (message.metaRef != null && Object.hasOwnProperty.call(message, 'metaRef')) + writer.uint32(/* id 13, wireType 2 =*/ 106).string(message.metaRef); + if (message.attributionToken != null && Object.hasOwnProperty.call(message, 'attributionToken')) + writer.uint32(/* id 14, wireType 2 =*/ 114).string(message.attributionToken); return writer; }; @@ -242489,73 +251173,75 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SingularSessionRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.SingularSessionRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.BI.SingularSessionRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { if (!(message.deviceIdentifiers && message.deviceIdentifiers.length)) message.deviceIdentifiers = []; - message.deviceIdentifiers.push($root.BI.SingularDeviceIdentifier.decode(reader, reader.uint32())); + message.deviceIdentifiers.push( + $root.BI.SingularDeviceIdentifier.decode(reader, reader.uint32()) + ); break; } - case 2: { + case 2: { message.sharedData = $root.BI.SingularSharedData.decode(reader, reader.uint32()); break; } - case 3: { + case 3: { message.applicationVersion = reader.string(); break; } - case 4: { + case 4: { message.install = reader.bool(); break; } - case 5: { + case 5: { message.installTime = reader.int64(); break; } - case 6: { + case 6: { message.updateTime = reader.int64(); break; } - case 7: { + case 7: { message.installSource = reader.string(); break; } - case 8: { + case 8: { message.installReceipt = reader.string(); break; } - case 9: { + case 9: { message.openuri = reader.string(); break; } - case 10: { + case 10: { message.ddlEnabled = reader.bool(); break; } - case 11: { + case 11: { message.singularLinkResolveRequired = reader.bool(); break; } - case 12: { + case 12: { message.installRef = reader.string(); break; } - case 13: { + case 13: { message.metaRef = reader.string(); break; } - case 14: { + case 14: { message.attributionToken = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -242572,8 +251258,7 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SingularSessionRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -242586,58 +251271,59 @@ export const BI = $root.BI = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ SingularSessionRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.deviceIdentifiers != null && message.hasOwnProperty("deviceIdentifiers")) { - if (!Array.isArray(message.deviceIdentifiers)) - return "deviceIdentifiers: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.deviceIdentifiers != null && message.hasOwnProperty('deviceIdentifiers')) { + if (!Array.isArray(message.deviceIdentifiers)) return 'deviceIdentifiers: array expected'; for (let i = 0; i < message.deviceIdentifiers.length; ++i) { let error = $root.BI.SingularDeviceIdentifier.verify(message.deviceIdentifiers[i]); - if (error) - return "deviceIdentifiers." + error; + if (error) return 'deviceIdentifiers.' + error; } } - if (message.sharedData != null && message.hasOwnProperty("sharedData")) { + if (message.sharedData != null && message.hasOwnProperty('sharedData')) { let error = $root.BI.SingularSharedData.verify(message.sharedData); - if (error) - return "sharedData." + error; - } - if (message.applicationVersion != null && message.hasOwnProperty("applicationVersion")) - if (!$util.isString(message.applicationVersion)) - return "applicationVersion: string expected"; - if (message.install != null && message.hasOwnProperty("install")) - if (typeof message.install !== "boolean") - return "install: boolean expected"; - if (message.installTime != null && message.hasOwnProperty("installTime")) - if (!$util.isInteger(message.installTime) && !(message.installTime && $util.isInteger(message.installTime.low) && $util.isInteger(message.installTime.high))) - return "installTime: integer|Long expected"; - if (message.updateTime != null && message.hasOwnProperty("updateTime")) - if (!$util.isInteger(message.updateTime) && !(message.updateTime && $util.isInteger(message.updateTime.low) && $util.isInteger(message.updateTime.high))) - return "updateTime: integer|Long expected"; - if (message.installSource != null && message.hasOwnProperty("installSource")) - if (!$util.isString(message.installSource)) - return "installSource: string expected"; - if (message.installReceipt != null && message.hasOwnProperty("installReceipt")) - if (!$util.isString(message.installReceipt)) - return "installReceipt: string expected"; - if (message.openuri != null && message.hasOwnProperty("openuri")) - if (!$util.isString(message.openuri)) - return "openuri: string expected"; - if (message.ddlEnabled != null && message.hasOwnProperty("ddlEnabled")) - if (typeof message.ddlEnabled !== "boolean") - return "ddlEnabled: boolean expected"; - if (message.singularLinkResolveRequired != null && message.hasOwnProperty("singularLinkResolveRequired")) - if (typeof message.singularLinkResolveRequired !== "boolean") - return "singularLinkResolveRequired: boolean expected"; - if (message.installRef != null && message.hasOwnProperty("installRef")) - if (!$util.isString(message.installRef)) - return "installRef: string expected"; - if (message.metaRef != null && message.hasOwnProperty("metaRef")) - if (!$util.isString(message.metaRef)) - return "metaRef: string expected"; - if (message.attributionToken != null && message.hasOwnProperty("attributionToken")) - if (!$util.isString(message.attributionToken)) - return "attributionToken: string expected"; + if (error) return 'sharedData.' + error; + } + if (message.applicationVersion != null && message.hasOwnProperty('applicationVersion')) + if (!$util.isString(message.applicationVersion)) return 'applicationVersion: string expected'; + if (message.install != null && message.hasOwnProperty('install')) + if (typeof message.install !== 'boolean') return 'install: boolean expected'; + if (message.installTime != null && message.hasOwnProperty('installTime')) + if ( + !$util.isInteger(message.installTime) && + !( + message.installTime && + $util.isInteger(message.installTime.low) && + $util.isInteger(message.installTime.high) + ) + ) + return 'installTime: integer|Long expected'; + if (message.updateTime != null && message.hasOwnProperty('updateTime')) + if ( + !$util.isInteger(message.updateTime) && + !( + message.updateTime && + $util.isInteger(message.updateTime.low) && + $util.isInteger(message.updateTime.high) + ) + ) + return 'updateTime: integer|Long expected'; + if (message.installSource != null && message.hasOwnProperty('installSource')) + if (!$util.isString(message.installSource)) return 'installSource: string expected'; + if (message.installReceipt != null && message.hasOwnProperty('installReceipt')) + if (!$util.isString(message.installReceipt)) return 'installReceipt: string expected'; + if (message.openuri != null && message.hasOwnProperty('openuri')) + if (!$util.isString(message.openuri)) return 'openuri: string expected'; + if (message.ddlEnabled != null && message.hasOwnProperty('ddlEnabled')) + if (typeof message.ddlEnabled !== 'boolean') return 'ddlEnabled: boolean expected'; + if (message.singularLinkResolveRequired != null && message.hasOwnProperty('singularLinkResolveRequired')) + if (typeof message.singularLinkResolveRequired !== 'boolean') + return 'singularLinkResolveRequired: boolean expected'; + if (message.installRef != null && message.hasOwnProperty('installRef')) + if (!$util.isString(message.installRef)) return 'installRef: string expected'; + if (message.metaRef != null && message.hasOwnProperty('metaRef')) + if (!$util.isString(message.metaRef)) return 'metaRef: string expected'; + if (message.attributionToken != null && message.hasOwnProperty('attributionToken')) + if (!$util.isString(message.attributionToken)) return 'attributionToken: string expected'; return null; }; @@ -242650,62 +251336,54 @@ export const BI = $root.BI = (() => { * @returns {BI.SingularSessionRequest} SingularSessionRequest */ SingularSessionRequest.fromObject = function fromObject(object) { - if (object instanceof $root.BI.SingularSessionRequest) - return object; + if (object instanceof $root.BI.SingularSessionRequest) return object; let message = new $root.BI.SingularSessionRequest(); if (object.deviceIdentifiers) { if (!Array.isArray(object.deviceIdentifiers)) - throw TypeError(".BI.SingularSessionRequest.deviceIdentifiers: array expected"); + throw TypeError('.BI.SingularSessionRequest.deviceIdentifiers: array expected'); message.deviceIdentifiers = []; for (let i = 0; i < object.deviceIdentifiers.length; ++i) { - if (typeof object.deviceIdentifiers[i] !== "object") - throw TypeError(".BI.SingularSessionRequest.deviceIdentifiers: object expected"); - message.deviceIdentifiers[i] = $root.BI.SingularDeviceIdentifier.fromObject(object.deviceIdentifiers[i]); + if (typeof object.deviceIdentifiers[i] !== 'object') + throw TypeError('.BI.SingularSessionRequest.deviceIdentifiers: object expected'); + message.deviceIdentifiers[i] = $root.BI.SingularDeviceIdentifier.fromObject( + object.deviceIdentifiers[i] + ); } } if (object.sharedData != null) { - if (typeof object.sharedData !== "object") - throw TypeError(".BI.SingularSessionRequest.sharedData: object expected"); + if (typeof object.sharedData !== 'object') + throw TypeError('.BI.SingularSessionRequest.sharedData: object expected'); message.sharedData = $root.BI.SingularSharedData.fromObject(object.sharedData); } - if (object.applicationVersion != null) - message.applicationVersion = String(object.applicationVersion); - if (object.install != null) - message.install = Boolean(object.install); + if (object.applicationVersion != null) message.applicationVersion = String(object.applicationVersion); + if (object.install != null) message.install = Boolean(object.install); if (object.installTime != null) - if ($util.Long) - (message.installTime = $util.Long.fromValue(object.installTime)).unsigned = false; - else if (typeof object.installTime === "string") - message.installTime = parseInt(object.installTime, 10); - else if (typeof object.installTime === "number") - message.installTime = object.installTime; - else if (typeof object.installTime === "object") - message.installTime = new $util.LongBits(object.installTime.low >>> 0, object.installTime.high >>> 0).toNumber(); + if ($util.Long) (message.installTime = $util.Long.fromValue(object.installTime)).unsigned = false; + else if (typeof object.installTime === 'string') message.installTime = parseInt(object.installTime, 10); + else if (typeof object.installTime === 'number') message.installTime = object.installTime; + else if (typeof object.installTime === 'object') + message.installTime = new $util.LongBits( + object.installTime.low >>> 0, + object.installTime.high >>> 0 + ).toNumber(); if (object.updateTime != null) - if ($util.Long) - (message.updateTime = $util.Long.fromValue(object.updateTime)).unsigned = false; - else if (typeof object.updateTime === "string") - message.updateTime = parseInt(object.updateTime, 10); - else if (typeof object.updateTime === "number") - message.updateTime = object.updateTime; - else if (typeof object.updateTime === "object") - message.updateTime = new $util.LongBits(object.updateTime.low >>> 0, object.updateTime.high >>> 0).toNumber(); - if (object.installSource != null) - message.installSource = String(object.installSource); - if (object.installReceipt != null) - message.installReceipt = String(object.installReceipt); - if (object.openuri != null) - message.openuri = String(object.openuri); - if (object.ddlEnabled != null) - message.ddlEnabled = Boolean(object.ddlEnabled); + if ($util.Long) (message.updateTime = $util.Long.fromValue(object.updateTime)).unsigned = false; + else if (typeof object.updateTime === 'string') message.updateTime = parseInt(object.updateTime, 10); + else if (typeof object.updateTime === 'number') message.updateTime = object.updateTime; + else if (typeof object.updateTime === 'object') + message.updateTime = new $util.LongBits( + object.updateTime.low >>> 0, + object.updateTime.high >>> 0 + ).toNumber(); + if (object.installSource != null) message.installSource = String(object.installSource); + if (object.installReceipt != null) message.installReceipt = String(object.installReceipt); + if (object.openuri != null) message.openuri = String(object.openuri); + if (object.ddlEnabled != null) message.ddlEnabled = Boolean(object.ddlEnabled); if (object.singularLinkResolveRequired != null) message.singularLinkResolveRequired = Boolean(object.singularLinkResolveRequired); - if (object.installRef != null) - message.installRef = String(object.installRef); - if (object.metaRef != null) - message.metaRef = String(object.metaRef); - if (object.attributionToken != null) - message.attributionToken = String(object.attributionToken); + if (object.installRef != null) message.installRef = String(object.installRef); + if (object.metaRef != null) message.metaRef = String(object.metaRef); + if (object.attributionToken != null) message.attributionToken = String(object.attributionToken); return message; }; @@ -242719,70 +251397,84 @@ export const BI = $root.BI = (() => { * @returns {Object.} Plain object */ SingularSessionRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.deviceIdentifiers = []; + if (options.arrays || options.defaults) object.deviceIdentifiers = []; if (options.defaults) { object.sharedData = null; - object.applicationVersion = ""; + object.applicationVersion = ''; object.install = false; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.installTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.installTime = options.longs === String ? "0" : 0; + object.installTime = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.installTime = options.longs === String ? '0' : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.updateTime = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.updateTime = options.longs === String ? "0" : 0; - object.installSource = ""; - object.installReceipt = ""; - object.openuri = ""; + object.updateTime = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.updateTime = options.longs === String ? '0' : 0; + object.installSource = ''; + object.installReceipt = ''; + object.openuri = ''; object.ddlEnabled = false; object.singularLinkResolveRequired = false; - object.installRef = ""; - object.metaRef = ""; - object.attributionToken = ""; + object.installRef = ''; + object.metaRef = ''; + object.attributionToken = ''; } if (message.deviceIdentifiers && message.deviceIdentifiers.length) { object.deviceIdentifiers = []; for (let j = 0; j < message.deviceIdentifiers.length; ++j) - object.deviceIdentifiers[j] = $root.BI.SingularDeviceIdentifier.toObject(message.deviceIdentifiers[j], options); + object.deviceIdentifiers[j] = $root.BI.SingularDeviceIdentifier.toObject( + message.deviceIdentifiers[j], + options + ); } - if (message.sharedData != null && message.hasOwnProperty("sharedData")) + if (message.sharedData != null && message.hasOwnProperty('sharedData')) object.sharedData = $root.BI.SingularSharedData.toObject(message.sharedData, options); - if (message.applicationVersion != null && message.hasOwnProperty("applicationVersion")) + if (message.applicationVersion != null && message.hasOwnProperty('applicationVersion')) object.applicationVersion = message.applicationVersion; - if (message.install != null && message.hasOwnProperty("install")) - object.install = message.install; - if (message.installTime != null && message.hasOwnProperty("installTime")) - if (typeof message.installTime === "number") + if (message.install != null && message.hasOwnProperty('install')) object.install = message.install; + if (message.installTime != null && message.hasOwnProperty('installTime')) + if (typeof message.installTime === 'number') object.installTime = options.longs === String ? String(message.installTime) : message.installTime; else - object.installTime = options.longs === String ? $util.Long.prototype.toString.call(message.installTime) : options.longs === Number ? new $util.LongBits(message.installTime.low >>> 0, message.installTime.high >>> 0).toNumber() : message.installTime; - if (message.updateTime != null && message.hasOwnProperty("updateTime")) - if (typeof message.updateTime === "number") + object.installTime = + options.longs === String + ? $util.Long.prototype.toString.call(message.installTime) + : options.longs === Number + ? new $util.LongBits( + message.installTime.low >>> 0, + message.installTime.high >>> 0 + ).toNumber() + : message.installTime; + if (message.updateTime != null && message.hasOwnProperty('updateTime')) + if (typeof message.updateTime === 'number') object.updateTime = options.longs === String ? String(message.updateTime) : message.updateTime; else - object.updateTime = options.longs === String ? $util.Long.prototype.toString.call(message.updateTime) : options.longs === Number ? new $util.LongBits(message.updateTime.low >>> 0, message.updateTime.high >>> 0).toNumber() : message.updateTime; - if (message.installSource != null && message.hasOwnProperty("installSource")) + object.updateTime = + options.longs === String + ? $util.Long.prototype.toString.call(message.updateTime) + : options.longs === Number + ? new $util.LongBits( + message.updateTime.low >>> 0, + message.updateTime.high >>> 0 + ).toNumber() + : message.updateTime; + if (message.installSource != null && message.hasOwnProperty('installSource')) object.installSource = message.installSource; - if (message.installReceipt != null && message.hasOwnProperty("installReceipt")) + if (message.installReceipt != null && message.hasOwnProperty('installReceipt')) object.installReceipt = message.installReceipt; - if (message.openuri != null && message.hasOwnProperty("openuri")) - object.openuri = message.openuri; - if (message.ddlEnabled != null && message.hasOwnProperty("ddlEnabled")) + if (message.openuri != null && message.hasOwnProperty('openuri')) object.openuri = message.openuri; + if (message.ddlEnabled != null && message.hasOwnProperty('ddlEnabled')) object.ddlEnabled = message.ddlEnabled; - if (message.singularLinkResolveRequired != null && message.hasOwnProperty("singularLinkResolveRequired")) + if (message.singularLinkResolveRequired != null && message.hasOwnProperty('singularLinkResolveRequired')) object.singularLinkResolveRequired = message.singularLinkResolveRequired; - if (message.installRef != null && message.hasOwnProperty("installRef")) + if (message.installRef != null && message.hasOwnProperty('installRef')) object.installRef = message.installRef; - if (message.metaRef != null && message.hasOwnProperty("metaRef")) - object.metaRef = message.metaRef; - if (message.attributionToken != null && message.hasOwnProperty("attributionToken")) + if (message.metaRef != null && message.hasOwnProperty('metaRef')) object.metaRef = message.metaRef; + if (message.attributionToken != null && message.hasOwnProperty('attributionToken')) object.attributionToken = message.attributionToken; return object; }; @@ -242808,16 +251500,15 @@ export const BI = $root.BI = (() => { */ SingularSessionRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/BI.SingularSessionRequest"; + return typeUrlPrefix + '/BI.SingularSessionRequest'; }; return SingularSessionRequest; })(); - BI.SingularEventRequest = (function() { - + BI.SingularEventRequest = (function () { /** * Properties of a SingularEventRequest. * @memberof BI @@ -242839,8 +251530,7 @@ export const BI = $root.BI = (() => { this.deviceIdentifiers = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -242865,7 +251555,7 @@ export const BI = $root.BI = (() => { * @memberof BI.SingularEventRequest * @instance */ - SingularEventRequest.prototype.eventName = ""; + SingularEventRequest.prototype.eventName = ''; /** * Creates a new SingularEventRequest instance using the specified properties. @@ -242889,15 +251579,20 @@ export const BI = $root.BI = (() => { * @returns {$protobuf.Writer} Writer */ SingularEventRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.deviceIdentifiers != null && message.deviceIdentifiers.length) for (let i = 0; i < message.deviceIdentifiers.length; ++i) - $root.BI.SingularDeviceIdentifier.encode(message.deviceIdentifiers[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.sharedData != null && Object.hasOwnProperty.call(message, "sharedData")) - $root.BI.SingularSharedData.encode(message.sharedData, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.eventName != null && Object.hasOwnProperty.call(message, "eventName")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.eventName); + $root.BI.SingularDeviceIdentifier.encode( + message.deviceIdentifiers[i], + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); + if (message.sharedData != null && Object.hasOwnProperty.call(message, 'sharedData')) + $root.BI.SingularSharedData.encode( + message.sharedData, + writer.uint32(/* id 2, wireType 2 =*/ 18).fork() + ).ldelim(); + if (message.eventName != null && Object.hasOwnProperty.call(message, 'eventName')) + writer.uint32(/* id 3, wireType 2 =*/ 26).string(message.eventName); return writer; }; @@ -242926,29 +251621,31 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SingularEventRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.SingularEventRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.BI.SingularEventRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { if (!(message.deviceIdentifiers && message.deviceIdentifiers.length)) message.deviceIdentifiers = []; - message.deviceIdentifiers.push($root.BI.SingularDeviceIdentifier.decode(reader, reader.uint32())); + message.deviceIdentifiers.push( + $root.BI.SingularDeviceIdentifier.decode(reader, reader.uint32()) + ); break; } - case 2: { + case 2: { message.sharedData = $root.BI.SingularSharedData.decode(reader, reader.uint32()); break; } - case 3: { + case 3: { message.eventName = reader.string(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -242965,8 +251662,7 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ SingularEventRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -242979,25 +251675,20 @@ export const BI = $root.BI = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ SingularEventRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.deviceIdentifiers != null && message.hasOwnProperty("deviceIdentifiers")) { - if (!Array.isArray(message.deviceIdentifiers)) - return "deviceIdentifiers: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.deviceIdentifiers != null && message.hasOwnProperty('deviceIdentifiers')) { + if (!Array.isArray(message.deviceIdentifiers)) return 'deviceIdentifiers: array expected'; for (let i = 0; i < message.deviceIdentifiers.length; ++i) { let error = $root.BI.SingularDeviceIdentifier.verify(message.deviceIdentifiers[i]); - if (error) - return "deviceIdentifiers." + error; + if (error) return 'deviceIdentifiers.' + error; } } - if (message.sharedData != null && message.hasOwnProperty("sharedData")) { + if (message.sharedData != null && message.hasOwnProperty('sharedData')) { let error = $root.BI.SingularSharedData.verify(message.sharedData); - if (error) - return "sharedData." + error; + if (error) return 'sharedData.' + error; } - if (message.eventName != null && message.hasOwnProperty("eventName")) - if (!$util.isString(message.eventName)) - return "eventName: string expected"; + if (message.eventName != null && message.hasOwnProperty('eventName')) + if (!$util.isString(message.eventName)) return 'eventName: string expected'; return null; }; @@ -243010,26 +251701,26 @@ export const BI = $root.BI = (() => { * @returns {BI.SingularEventRequest} SingularEventRequest */ SingularEventRequest.fromObject = function fromObject(object) { - if (object instanceof $root.BI.SingularEventRequest) - return object; + if (object instanceof $root.BI.SingularEventRequest) return object; let message = new $root.BI.SingularEventRequest(); if (object.deviceIdentifiers) { if (!Array.isArray(object.deviceIdentifiers)) - throw TypeError(".BI.SingularEventRequest.deviceIdentifiers: array expected"); + throw TypeError('.BI.SingularEventRequest.deviceIdentifiers: array expected'); message.deviceIdentifiers = []; for (let i = 0; i < object.deviceIdentifiers.length; ++i) { - if (typeof object.deviceIdentifiers[i] !== "object") - throw TypeError(".BI.SingularEventRequest.deviceIdentifiers: object expected"); - message.deviceIdentifiers[i] = $root.BI.SingularDeviceIdentifier.fromObject(object.deviceIdentifiers[i]); + if (typeof object.deviceIdentifiers[i] !== 'object') + throw TypeError('.BI.SingularEventRequest.deviceIdentifiers: object expected'); + message.deviceIdentifiers[i] = $root.BI.SingularDeviceIdentifier.fromObject( + object.deviceIdentifiers[i] + ); } } if (object.sharedData != null) { - if (typeof object.sharedData !== "object") - throw TypeError(".BI.SingularEventRequest.sharedData: object expected"); + if (typeof object.sharedData !== 'object') + throw TypeError('.BI.SingularEventRequest.sharedData: object expected'); message.sharedData = $root.BI.SingularSharedData.fromObject(object.sharedData); } - if (object.eventName != null) - message.eventName = String(object.eventName); + if (object.eventName != null) message.eventName = String(object.eventName); return message; }; @@ -243043,24 +251734,24 @@ export const BI = $root.BI = (() => { * @returns {Object.} Plain object */ SingularEventRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.deviceIdentifiers = []; + if (options.arrays || options.defaults) object.deviceIdentifiers = []; if (options.defaults) { object.sharedData = null; - object.eventName = ""; + object.eventName = ''; } if (message.deviceIdentifiers && message.deviceIdentifiers.length) { object.deviceIdentifiers = []; for (let j = 0; j < message.deviceIdentifiers.length; ++j) - object.deviceIdentifiers[j] = $root.BI.SingularDeviceIdentifier.toObject(message.deviceIdentifiers[j], options); + object.deviceIdentifiers[j] = $root.BI.SingularDeviceIdentifier.toObject( + message.deviceIdentifiers[j], + options + ); } - if (message.sharedData != null && message.hasOwnProperty("sharedData")) + if (message.sharedData != null && message.hasOwnProperty('sharedData')) object.sharedData = $root.BI.SingularSharedData.toObject(message.sharedData, options); - if (message.eventName != null && message.hasOwnProperty("eventName")) - object.eventName = message.eventName; + if (message.eventName != null && message.hasOwnProperty('eventName')) object.eventName = message.eventName; return object; }; @@ -243085,16 +251776,15 @@ export const BI = $root.BI = (() => { */ SingularEventRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/BI.SingularEventRequest"; + return typeUrlPrefix + '/BI.SingularEventRequest'; }; return SingularEventRequest; })(); - BI.GetDailyCountRequest = (function() { - + BI.GetDailyCountRequest = (function () { /** * Properties of a GetDailyCountRequest. * @memberof BI @@ -243116,8 +251806,7 @@ export const BI = $root.BI = (() => { this.enterpriseId = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -243153,9 +251842,9 @@ export const BI = $root.BI = (() => { * @memberof BI.GetDailyCountRequest * @instance */ - Object.defineProperty(GetDailyCountRequest.prototype, "period", { - get: $util.oneOfGetter($oneOfFields = ["monthYear", "dateRange"]), - set: $util.oneOfSetter($oneOfFields) + Object.defineProperty(GetDailyCountRequest.prototype, 'period', { + get: $util.oneOfGetter(($oneOfFields = ['monthYear', 'dateRange'])), + set: $util.oneOfSetter($oneOfFields), }); /** @@ -243180,18 +251869,16 @@ export const BI = $root.BI = (() => { * @returns {$protobuf.Writer} Writer */ GetDailyCountRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.enterpriseId != null && message.enterpriseId.length) { - writer.uint32(/* id 1, wireType 2 =*/10).fork(); - for (let i = 0; i < message.enterpriseId.length; ++i) - writer.int32(message.enterpriseId[i]); + writer.uint32(/* id 1, wireType 2 =*/ 10).fork(); + for (let i = 0; i < message.enterpriseId.length; ++i) writer.int32(message.enterpriseId[i]); writer.ldelim(); } - if (message.monthYear != null && Object.hasOwnProperty.call(message, "monthYear")) - $root.BI.MonthYear.encode(message.monthYear, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.dateRange != null && Object.hasOwnProperty.call(message, "dateRange")) - $root.BI.DateRange.encode(message.dateRange, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.monthYear != null && Object.hasOwnProperty.call(message, 'monthYear')) + $root.BI.MonthYear.encode(message.monthYear, writer.uint32(/* id 2, wireType 2 =*/ 18).fork()).ldelim(); + if (message.dateRange != null && Object.hasOwnProperty.call(message, 'dateRange')) + $root.BI.DateRange.encode(message.dateRange, writer.uint32(/* id 3, wireType 2 =*/ 26).fork()).ldelim(); return writer; }; @@ -243220,34 +251907,31 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ GetDailyCountRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.GetDailyCountRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.BI.GetDailyCountRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (!(message.enterpriseId && message.enterpriseId.length)) - message.enterpriseId = []; + case 1: { + if (!(message.enterpriseId && message.enterpriseId.length)) message.enterpriseId = []; if ((tag & 7) === 2) { let end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.enterpriseId.push(reader.int32()); - } else - message.enterpriseId.push(reader.int32()); + while (reader.pos < end2) message.enterpriseId.push(reader.int32()); + } else message.enterpriseId.push(reader.int32()); break; } - case 2: { + case 2: { message.monthYear = $root.BI.MonthYear.decode(reader, reader.uint32()); break; } - case 3: { + case 3: { message.dateRange = $root.BI.DateRange.decode(reader, reader.uint32()); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -243264,8 +251948,7 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ GetDailyCountRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -243278,32 +251961,26 @@ export const BI = $root.BI = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ GetDailyCountRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; let properties = {}; - if (message.enterpriseId != null && message.hasOwnProperty("enterpriseId")) { - if (!Array.isArray(message.enterpriseId)) - return "enterpriseId: array expected"; + if (message.enterpriseId != null && message.hasOwnProperty('enterpriseId')) { + if (!Array.isArray(message.enterpriseId)) return 'enterpriseId: array expected'; for (let i = 0; i < message.enterpriseId.length; ++i) - if (!$util.isInteger(message.enterpriseId[i])) - return "enterpriseId: integer[] expected"; + if (!$util.isInteger(message.enterpriseId[i])) return 'enterpriseId: integer[] expected'; } - if (message.monthYear != null && message.hasOwnProperty("monthYear")) { + if (message.monthYear != null && message.hasOwnProperty('monthYear')) { properties.period = 1; { let error = $root.BI.MonthYear.verify(message.monthYear); - if (error) - return "monthYear." + error; + if (error) return 'monthYear.' + error; } } - if (message.dateRange != null && message.hasOwnProperty("dateRange")) { - if (properties.period === 1) - return "period: multiple values"; + if (message.dateRange != null && message.hasOwnProperty('dateRange')) { + if (properties.period === 1) return 'period: multiple values'; properties.period = 1; { let error = $root.BI.DateRange.verify(message.dateRange); - if (error) - return "dateRange." + error; + if (error) return 'dateRange.' + error; } } return null; @@ -243318,24 +251995,23 @@ export const BI = $root.BI = (() => { * @returns {BI.GetDailyCountRequest} GetDailyCountRequest */ GetDailyCountRequest.fromObject = function fromObject(object) { - if (object instanceof $root.BI.GetDailyCountRequest) - return object; + if (object instanceof $root.BI.GetDailyCountRequest) return object; let message = new $root.BI.GetDailyCountRequest(); if (object.enterpriseId) { if (!Array.isArray(object.enterpriseId)) - throw TypeError(".BI.GetDailyCountRequest.enterpriseId: array expected"); + throw TypeError('.BI.GetDailyCountRequest.enterpriseId: array expected'); message.enterpriseId = []; for (let i = 0; i < object.enterpriseId.length; ++i) message.enterpriseId[i] = object.enterpriseId[i] | 0; } if (object.monthYear != null) { - if (typeof object.monthYear !== "object") - throw TypeError(".BI.GetDailyCountRequest.monthYear: object expected"); + if (typeof object.monthYear !== 'object') + throw TypeError('.BI.GetDailyCountRequest.monthYear: object expected'); message.monthYear = $root.BI.MonthYear.fromObject(object.monthYear); } if (object.dateRange != null) { - if (typeof object.dateRange !== "object") - throw TypeError(".BI.GetDailyCountRequest.dateRange: object expected"); + if (typeof object.dateRange !== 'object') + throw TypeError('.BI.GetDailyCountRequest.dateRange: object expected'); message.dateRange = $root.BI.DateRange.fromObject(object.dateRange); } return message; @@ -243351,25 +252027,20 @@ export const BI = $root.BI = (() => { * @returns {Object.} Plain object */ GetDailyCountRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.enterpriseId = []; + if (options.arrays || options.defaults) object.enterpriseId = []; if (message.enterpriseId && message.enterpriseId.length) { object.enterpriseId = []; - for (let j = 0; j < message.enterpriseId.length; ++j) - object.enterpriseId[j] = message.enterpriseId[j]; + for (let j = 0; j < message.enterpriseId.length; ++j) object.enterpriseId[j] = message.enterpriseId[j]; } - if (message.monthYear != null && message.hasOwnProperty("monthYear")) { + if (message.monthYear != null && message.hasOwnProperty('monthYear')) { object.monthYear = $root.BI.MonthYear.toObject(message.monthYear, options); - if (options.oneofs) - object.period = "monthYear"; + if (options.oneofs) object.period = 'monthYear'; } - if (message.dateRange != null && message.hasOwnProperty("dateRange")) { + if (message.dateRange != null && message.hasOwnProperty('dateRange')) { object.dateRange = $root.BI.DateRange.toObject(message.dateRange, options); - if (options.oneofs) - object.period = "dateRange"; + if (options.oneofs) object.period = 'dateRange'; } return object; }; @@ -243395,16 +252066,15 @@ export const BI = $root.BI = (() => { */ GetDailyCountRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/BI.GetDailyCountRequest"; + return typeUrlPrefix + '/BI.GetDailyCountRequest'; }; return GetDailyCountRequest; })(); - BI.MonthYear = (function() { - + BI.MonthYear = (function () { /** * Properties of a MonthYear. * @memberof BI @@ -243424,8 +252094,7 @@ export const BI = $root.BI = (() => { function MonthYear(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -243466,12 +252135,11 @@ export const BI = $root.BI = (() => { * @returns {$protobuf.Writer} Writer */ MonthYear.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.month != null && Object.hasOwnProperty.call(message, "month")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.month); - if (message.year != null && Object.hasOwnProperty.call(message, "year")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.year); + if (!writer) writer = $Writer.create(); + if (message.month != null && Object.hasOwnProperty.call(message, 'month')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int32(message.month); + if (message.year != null && Object.hasOwnProperty.call(message, 'year')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int32(message.year); return writer; }; @@ -243500,23 +252168,23 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ MonthYear.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.MonthYear(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.BI.MonthYear(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.month = reader.int32(); break; } - case 2: { + case 2: { message.year = reader.int32(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -243533,8 +252201,7 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ MonthYear.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -243547,14 +252214,11 @@ export const BI = $root.BI = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ MonthYear.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.month != null && message.hasOwnProperty("month")) - if (!$util.isInteger(message.month)) - return "month: integer expected"; - if (message.year != null && message.hasOwnProperty("year")) - if (!$util.isInteger(message.year)) - return "year: integer expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.month != null && message.hasOwnProperty('month')) + if (!$util.isInteger(message.month)) return 'month: integer expected'; + if (message.year != null && message.hasOwnProperty('year')) + if (!$util.isInteger(message.year)) return 'year: integer expected'; return null; }; @@ -243567,13 +252231,10 @@ export const BI = $root.BI = (() => { * @returns {BI.MonthYear} MonthYear */ MonthYear.fromObject = function fromObject(object) { - if (object instanceof $root.BI.MonthYear) - return object; + if (object instanceof $root.BI.MonthYear) return object; let message = new $root.BI.MonthYear(); - if (object.month != null) - message.month = object.month | 0; - if (object.year != null) - message.year = object.year | 0; + if (object.month != null) message.month = object.month | 0; + if (object.year != null) message.year = object.year | 0; return message; }; @@ -243587,17 +252248,14 @@ export const BI = $root.BI = (() => { * @returns {Object.} Plain object */ MonthYear.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { object.month = 0; object.year = 0; } - if (message.month != null && message.hasOwnProperty("month")) - object.month = message.month; - if (message.year != null && message.hasOwnProperty("year")) - object.year = message.year; + if (message.month != null && message.hasOwnProperty('month')) object.month = message.month; + if (message.year != null && message.hasOwnProperty('year')) object.year = message.year; return object; }; @@ -243622,16 +252280,15 @@ export const BI = $root.BI = (() => { */ MonthYear.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/BI.MonthYear"; + return typeUrlPrefix + '/BI.MonthYear'; }; return MonthYear; })(); - BI.DateRange = (function() { - + BI.DateRange = (function () { /** * Properties of a DateRange. * @memberof BI @@ -243651,8 +252308,7 @@ export const BI = $root.BI = (() => { function DateRange(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -243661,7 +252317,7 @@ export const BI = $root.BI = (() => { * @memberof BI.DateRange * @instance */ - DateRange.prototype.start = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + DateRange.prototype.start = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * DateRange end. @@ -243669,7 +252325,7 @@ export const BI = $root.BI = (() => { * @memberof BI.DateRange * @instance */ - DateRange.prototype.end = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + DateRange.prototype.end = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * Creates a new DateRange instance using the specified properties. @@ -243693,12 +252349,11 @@ export const BI = $root.BI = (() => { * @returns {$protobuf.Writer} Writer */ DateRange.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.start != null && Object.hasOwnProperty.call(message, "start")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.start); - if (message.end != null && Object.hasOwnProperty.call(message, "end")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.end); + if (!writer) writer = $Writer.create(); + if (message.start != null && Object.hasOwnProperty.call(message, 'start')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int64(message.start); + if (message.end != null && Object.hasOwnProperty.call(message, 'end')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int64(message.end); return writer; }; @@ -243727,23 +252382,23 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ DateRange.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.DateRange(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.BI.DateRange(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.start = reader.int64(); break; } - case 2: { + case 2: { message.end = reader.int64(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -243760,8 +252415,7 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ DateRange.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -243774,14 +252428,19 @@ export const BI = $root.BI = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ DateRange.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.start != null && message.hasOwnProperty("start")) - if (!$util.isInteger(message.start) && !(message.start && $util.isInteger(message.start.low) && $util.isInteger(message.start.high))) - return "start: integer|Long expected"; - if (message.end != null && message.hasOwnProperty("end")) - if (!$util.isInteger(message.end) && !(message.end && $util.isInteger(message.end.low) && $util.isInteger(message.end.high))) - return "end: integer|Long expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.start != null && message.hasOwnProperty('start')) + if ( + !$util.isInteger(message.start) && + !(message.start && $util.isInteger(message.start.low) && $util.isInteger(message.start.high)) + ) + return 'start: integer|Long expected'; + if (message.end != null && message.hasOwnProperty('end')) + if ( + !$util.isInteger(message.end) && + !(message.end && $util.isInteger(message.end.low) && $util.isInteger(message.end.high)) + ) + return 'end: integer|Long expected'; return null; }; @@ -243794,26 +252453,19 @@ export const BI = $root.BI = (() => { * @returns {BI.DateRange} DateRange */ DateRange.fromObject = function fromObject(object) { - if (object instanceof $root.BI.DateRange) - return object; + if (object instanceof $root.BI.DateRange) return object; let message = new $root.BI.DateRange(); if (object.start != null) - if ($util.Long) - (message.start = $util.Long.fromValue(object.start)).unsigned = false; - else if (typeof object.start === "string") - message.start = parseInt(object.start, 10); - else if (typeof object.start === "number") - message.start = object.start; - else if (typeof object.start === "object") + if ($util.Long) (message.start = $util.Long.fromValue(object.start)).unsigned = false; + else if (typeof object.start === 'string') message.start = parseInt(object.start, 10); + else if (typeof object.start === 'number') message.start = object.start; + else if (typeof object.start === 'object') message.start = new $util.LongBits(object.start.low >>> 0, object.start.high >>> 0).toNumber(); if (object.end != null) - if ($util.Long) - (message.end = $util.Long.fromValue(object.end)).unsigned = false; - else if (typeof object.end === "string") - message.end = parseInt(object.end, 10); - else if (typeof object.end === "number") - message.end = object.end; - else if (typeof object.end === "object") + if ($util.Long) (message.end = $util.Long.fromValue(object.end)).unsigned = false; + else if (typeof object.end === 'string') message.end = parseInt(object.end, 10); + else if (typeof object.end === 'number') message.end = object.end; + else if (typeof object.end === 'object') message.end = new $util.LongBits(object.end.low >>> 0, object.end.high >>> 0).toNumber(); return message; }; @@ -243828,31 +252480,40 @@ export const BI = $root.BI = (() => { * @returns {Object.} Plain object */ DateRange.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.start = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.start = options.longs === String ? "0" : 0; + object.start = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.start = options.longs === String ? '0' : 0; if ($util.Long) { let long = new $util.Long(0, 0, false); - object.end = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.end = options.longs === String ? "0" : 0; + object.end = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.end = options.longs === String ? '0' : 0; } - if (message.start != null && message.hasOwnProperty("start")) - if (typeof message.start === "number") + if (message.start != null && message.hasOwnProperty('start')) + if (typeof message.start === 'number') object.start = options.longs === String ? String(message.start) : message.start; else - object.start = options.longs === String ? $util.Long.prototype.toString.call(message.start) : options.longs === Number ? new $util.LongBits(message.start.low >>> 0, message.start.high >>> 0).toNumber() : message.start; - if (message.end != null && message.hasOwnProperty("end")) - if (typeof message.end === "number") + object.start = + options.longs === String + ? $util.Long.prototype.toString.call(message.start) + : options.longs === Number + ? new $util.LongBits(message.start.low >>> 0, message.start.high >>> 0).toNumber() + : message.start; + if (message.end != null && message.hasOwnProperty('end')) + if (typeof message.end === 'number') object.end = options.longs === String ? String(message.end) : message.end; else - object.end = options.longs === String ? $util.Long.prototype.toString.call(message.end) : options.longs === Number ? new $util.LongBits(message.end.low >>> 0, message.end.high >>> 0).toNumber() : message.end; + object.end = + options.longs === String + ? $util.Long.prototype.toString.call(message.end) + : options.longs === Number + ? new $util.LongBits(message.end.low >>> 0, message.end.high >>> 0).toNumber() + : message.end; return object; }; @@ -243877,16 +252538,15 @@ export const BI = $root.BI = (() => { */ DateRange.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/BI.DateRange"; + return typeUrlPrefix + '/BI.DateRange'; }; return DateRange; })(); - BI.DailyCount = (function() { - + BI.DailyCount = (function () { /** * Properties of a DailyCount. * @memberof BI @@ -243906,8 +252566,7 @@ export const BI = $root.BI = (() => { function DailyCount(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -243916,7 +252575,7 @@ export const BI = $root.BI = (() => { * @memberof BI.DailyCount * @instance */ - DailyCount.prototype.date = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + DailyCount.prototype.date = $util.Long ? $util.Long.fromBits(0, 0, false) : 0; /** * DailyCount pamCount. @@ -243948,12 +252607,11 @@ export const BI = $root.BI = (() => { * @returns {$protobuf.Writer} Writer */ DailyCount.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.date != null && Object.hasOwnProperty.call(message, "date")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.date); - if (message.pamCount != null && Object.hasOwnProperty.call(message, "pamCount")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pamCount); + if (!writer) writer = $Writer.create(); + if (message.date != null && Object.hasOwnProperty.call(message, 'date')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int64(message.date); + if (message.pamCount != null && Object.hasOwnProperty.call(message, 'pamCount')) + writer.uint32(/* id 2, wireType 0 =*/ 16).int32(message.pamCount); return writer; }; @@ -243982,23 +252640,23 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ DailyCount.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.DailyCount(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.BI.DailyCount(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.date = reader.int64(); break; } - case 2: { + case 2: { message.pamCount = reader.int32(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -244015,8 +252673,7 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ DailyCount.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -244029,14 +252686,15 @@ export const BI = $root.BI = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ DailyCount.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.date != null && message.hasOwnProperty("date")) - if (!$util.isInteger(message.date) && !(message.date && $util.isInteger(message.date.low) && $util.isInteger(message.date.high))) - return "date: integer|Long expected"; - if (message.pamCount != null && message.hasOwnProperty("pamCount")) - if (!$util.isInteger(message.pamCount)) - return "pamCount: integer expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.date != null && message.hasOwnProperty('date')) + if ( + !$util.isInteger(message.date) && + !(message.date && $util.isInteger(message.date.low) && $util.isInteger(message.date.high)) + ) + return 'date: integer|Long expected'; + if (message.pamCount != null && message.hasOwnProperty('pamCount')) + if (!$util.isInteger(message.pamCount)) return 'pamCount: integer expected'; return null; }; @@ -244049,20 +252707,15 @@ export const BI = $root.BI = (() => { * @returns {BI.DailyCount} DailyCount */ DailyCount.fromObject = function fromObject(object) { - if (object instanceof $root.BI.DailyCount) - return object; + if (object instanceof $root.BI.DailyCount) return object; let message = new $root.BI.DailyCount(); if (object.date != null) - if ($util.Long) - (message.date = $util.Long.fromValue(object.date)).unsigned = false; - else if (typeof object.date === "string") - message.date = parseInt(object.date, 10); - else if (typeof object.date === "number") - message.date = object.date; - else if (typeof object.date === "object") + if ($util.Long) (message.date = $util.Long.fromValue(object.date)).unsigned = false; + else if (typeof object.date === 'string') message.date = parseInt(object.date, 10); + else if (typeof object.date === 'number') message.date = object.date; + else if (typeof object.date === 'object') message.date = new $util.LongBits(object.date.low >>> 0, object.date.high >>> 0).toNumber(); - if (object.pamCount != null) - message.pamCount = object.pamCount | 0; + if (object.pamCount != null) message.pamCount = object.pamCount | 0; return message; }; @@ -244076,24 +252729,27 @@ export const BI = $root.BI = (() => { * @returns {Object.} Plain object */ DailyCount.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; if (options.defaults) { if ($util.Long) { let long = new $util.Long(0, 0, false); - object.date = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.date = options.longs === String ? "0" : 0; + object.date = + options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else object.date = options.longs === String ? '0' : 0; object.pamCount = 0; } - if (message.date != null && message.hasOwnProperty("date")) - if (typeof message.date === "number") + if (message.date != null && message.hasOwnProperty('date')) + if (typeof message.date === 'number') object.date = options.longs === String ? String(message.date) : message.date; else - object.date = options.longs === String ? $util.Long.prototype.toString.call(message.date) : options.longs === Number ? new $util.LongBits(message.date.low >>> 0, message.date.high >>> 0).toNumber() : message.date; - if (message.pamCount != null && message.hasOwnProperty("pamCount")) - object.pamCount = message.pamCount; + object.date = + options.longs === String + ? $util.Long.prototype.toString.call(message.date) + : options.longs === Number + ? new $util.LongBits(message.date.low >>> 0, message.date.high >>> 0).toNumber() + : message.date; + if (message.pamCount != null && message.hasOwnProperty('pamCount')) object.pamCount = message.pamCount; return object; }; @@ -244118,16 +252774,15 @@ export const BI = $root.BI = (() => { */ DailyCount.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/BI.DailyCount"; + return typeUrlPrefix + '/BI.DailyCount'; }; return DailyCount; })(); - BI.CountForEnterprise = (function() { - + BI.CountForEnterprise = (function () { /** * Properties of a CountForEnterprise. * @memberof BI @@ -244148,8 +252803,7 @@ export const BI = $root.BI = (() => { this.counts = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -244190,13 +252844,15 @@ export const BI = $root.BI = (() => { * @returns {$protobuf.Writer} Writer */ CountForEnterprise.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.enterpriseId != null && Object.hasOwnProperty.call(message, "enterpriseId")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.enterpriseId); + if (!writer) writer = $Writer.create(); + if (message.enterpriseId != null && Object.hasOwnProperty.call(message, 'enterpriseId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int32(message.enterpriseId); if (message.counts != null && message.counts.length) for (let i = 0; i < message.counts.length; ++i) - $root.BI.DailyCount.encode(message.counts[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + $root.BI.DailyCount.encode( + message.counts[i], + writer.uint32(/* id 2, wireType 2 =*/ 18).fork() + ).ldelim(); return writer; }; @@ -244225,25 +252881,24 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ CountForEnterprise.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.CountForEnterprise(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.BI.CountForEnterprise(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.enterpriseId = reader.int32(); break; } - case 2: { - if (!(message.counts && message.counts.length)) - message.counts = []; + case 2: { + if (!(message.counts && message.counts.length)) message.counts = []; message.counts.push($root.BI.DailyCount.decode(reader, reader.uint32())); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -244260,8 +252915,7 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ CountForEnterprise.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -244274,18 +252928,14 @@ export const BI = $root.BI = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ CountForEnterprise.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.enterpriseId != null && message.hasOwnProperty("enterpriseId")) - if (!$util.isInteger(message.enterpriseId)) - return "enterpriseId: integer expected"; - if (message.counts != null && message.hasOwnProperty("counts")) { - if (!Array.isArray(message.counts)) - return "counts: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.enterpriseId != null && message.hasOwnProperty('enterpriseId')) + if (!$util.isInteger(message.enterpriseId)) return 'enterpriseId: integer expected'; + if (message.counts != null && message.hasOwnProperty('counts')) { + if (!Array.isArray(message.counts)) return 'counts: array expected'; for (let i = 0; i < message.counts.length; ++i) { let error = $root.BI.DailyCount.verify(message.counts[i]); - if (error) - return "counts." + error; + if (error) return 'counts.' + error; } } return null; @@ -244300,18 +252950,15 @@ export const BI = $root.BI = (() => { * @returns {BI.CountForEnterprise} CountForEnterprise */ CountForEnterprise.fromObject = function fromObject(object) { - if (object instanceof $root.BI.CountForEnterprise) - return object; + if (object instanceof $root.BI.CountForEnterprise) return object; let message = new $root.BI.CountForEnterprise(); - if (object.enterpriseId != null) - message.enterpriseId = object.enterpriseId | 0; + if (object.enterpriseId != null) message.enterpriseId = object.enterpriseId | 0; if (object.counts) { - if (!Array.isArray(object.counts)) - throw TypeError(".BI.CountForEnterprise.counts: array expected"); + if (!Array.isArray(object.counts)) throw TypeError('.BI.CountForEnterprise.counts: array expected'); message.counts = []; for (let i = 0; i < object.counts.length; ++i) { - if (typeof object.counts[i] !== "object") - throw TypeError(".BI.CountForEnterprise.counts: object expected"); + if (typeof object.counts[i] !== 'object') + throw TypeError('.BI.CountForEnterprise.counts: object expected'); message.counts[i] = $root.BI.DailyCount.fromObject(object.counts[i]); } } @@ -244328,14 +252975,11 @@ export const BI = $root.BI = (() => { * @returns {Object.} Plain object */ CountForEnterprise.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.counts = []; - if (options.defaults) - object.enterpriseId = 0; - if (message.enterpriseId != null && message.hasOwnProperty("enterpriseId")) + if (options.arrays || options.defaults) object.counts = []; + if (options.defaults) object.enterpriseId = 0; + if (message.enterpriseId != null && message.hasOwnProperty('enterpriseId')) object.enterpriseId = message.enterpriseId; if (message.counts && message.counts.length) { object.counts = []; @@ -244366,16 +253010,15 @@ export const BI = $root.BI = (() => { */ CountForEnterprise.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/BI.CountForEnterprise"; + return typeUrlPrefix + '/BI.CountForEnterprise'; }; return CountForEnterprise; })(); - BI.GetDailyCountResponse = (function() { - + BI.GetDailyCountResponse = (function () { /** * Properties of a GetDailyCountResponse. * @memberof BI @@ -244395,8 +253038,7 @@ export const BI = $root.BI = (() => { this.enterpriseCounts = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -244429,11 +253071,13 @@ export const BI = $root.BI = (() => { * @returns {$protobuf.Writer} Writer */ GetDailyCountResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.enterpriseCounts != null && message.enterpriseCounts.length) for (let i = 0; i < message.enterpriseCounts.length; ++i) - $root.BI.CountForEnterprise.encode(message.enterpriseCounts[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.BI.CountForEnterprise.encode( + message.enterpriseCounts[i], + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); return writer; }; @@ -244462,21 +253106,21 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ GetDailyCountResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.GetDailyCountResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.BI.GetDailyCountResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { if (!(message.enterpriseCounts && message.enterpriseCounts.length)) message.enterpriseCounts = []; message.enterpriseCounts.push($root.BI.CountForEnterprise.decode(reader, reader.uint32())); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -244493,8 +253137,7 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ GetDailyCountResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -244507,15 +253150,12 @@ export const BI = $root.BI = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ GetDailyCountResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.enterpriseCounts != null && message.hasOwnProperty("enterpriseCounts")) { - if (!Array.isArray(message.enterpriseCounts)) - return "enterpriseCounts: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.enterpriseCounts != null && message.hasOwnProperty('enterpriseCounts')) { + if (!Array.isArray(message.enterpriseCounts)) return 'enterpriseCounts: array expected'; for (let i = 0; i < message.enterpriseCounts.length; ++i) { let error = $root.BI.CountForEnterprise.verify(message.enterpriseCounts[i]); - if (error) - return "enterpriseCounts." + error; + if (error) return 'enterpriseCounts.' + error; } } return null; @@ -244530,16 +253170,15 @@ export const BI = $root.BI = (() => { * @returns {BI.GetDailyCountResponse} GetDailyCountResponse */ GetDailyCountResponse.fromObject = function fromObject(object) { - if (object instanceof $root.BI.GetDailyCountResponse) - return object; + if (object instanceof $root.BI.GetDailyCountResponse) return object; let message = new $root.BI.GetDailyCountResponse(); if (object.enterpriseCounts) { if (!Array.isArray(object.enterpriseCounts)) - throw TypeError(".BI.GetDailyCountResponse.enterpriseCounts: array expected"); + throw TypeError('.BI.GetDailyCountResponse.enterpriseCounts: array expected'); message.enterpriseCounts = []; for (let i = 0; i < object.enterpriseCounts.length; ++i) { - if (typeof object.enterpriseCounts[i] !== "object") - throw TypeError(".BI.GetDailyCountResponse.enterpriseCounts: object expected"); + if (typeof object.enterpriseCounts[i] !== 'object') + throw TypeError('.BI.GetDailyCountResponse.enterpriseCounts: object expected'); message.enterpriseCounts[i] = $root.BI.CountForEnterprise.fromObject(object.enterpriseCounts[i]); } } @@ -244556,15 +253195,16 @@ export const BI = $root.BI = (() => { * @returns {Object.} Plain object */ GetDailyCountResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.enterpriseCounts = []; + if (options.arrays || options.defaults) object.enterpriseCounts = []; if (message.enterpriseCounts && message.enterpriseCounts.length) { object.enterpriseCounts = []; for (let j = 0; j < message.enterpriseCounts.length; ++j) - object.enterpriseCounts[j] = $root.BI.CountForEnterprise.toObject(message.enterpriseCounts[j], options); + object.enterpriseCounts[j] = $root.BI.CountForEnterprise.toObject( + message.enterpriseCounts[j], + options + ); } return object; }; @@ -244590,16 +253230,15 @@ export const BI = $root.BI = (() => { */ GetDailyCountResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/BI.GetDailyCountResponse"; + return typeUrlPrefix + '/BI.GetDailyCountResponse'; }; return GetDailyCountResponse; })(); - BI.ActivePamCountRequest = (function() { - + BI.ActivePamCountRequest = (function () { /** * Properties of an ActivePamCountRequest. * @memberof BI @@ -244618,8 +253257,7 @@ export const BI = $root.BI = (() => { function ActivePamCountRequest(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -244652,10 +253290,9 @@ export const BI = $root.BI = (() => { * @returns {$protobuf.Writer} Writer */ ActivePamCountRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.enterpriseId != null && Object.hasOwnProperty.call(message, "enterpriseId")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.enterpriseId); + if (!writer) writer = $Writer.create(); + if (message.enterpriseId != null && Object.hasOwnProperty.call(message, 'enterpriseId')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int32(message.enterpriseId); return writer; }; @@ -244684,19 +253321,19 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ActivePamCountRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.ActivePamCountRequest(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.BI.ActivePamCountRequest(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.enterpriseId = reader.int32(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -244713,8 +253350,7 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ActivePamCountRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -244727,11 +253363,9 @@ export const BI = $root.BI = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ ActivePamCountRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.enterpriseId != null && message.hasOwnProperty("enterpriseId")) - if (!$util.isInteger(message.enterpriseId)) - return "enterpriseId: integer expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.enterpriseId != null && message.hasOwnProperty('enterpriseId')) + if (!$util.isInteger(message.enterpriseId)) return 'enterpriseId: integer expected'; return null; }; @@ -244744,11 +253378,9 @@ export const BI = $root.BI = (() => { * @returns {BI.ActivePamCountRequest} ActivePamCountRequest */ ActivePamCountRequest.fromObject = function fromObject(object) { - if (object instanceof $root.BI.ActivePamCountRequest) - return object; + if (object instanceof $root.BI.ActivePamCountRequest) return object; let message = new $root.BI.ActivePamCountRequest(); - if (object.enterpriseId != null) - message.enterpriseId = object.enterpriseId | 0; + if (object.enterpriseId != null) message.enterpriseId = object.enterpriseId | 0; return message; }; @@ -244762,12 +253394,10 @@ export const BI = $root.BI = (() => { * @returns {Object.} Plain object */ ActivePamCountRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.defaults) - object.enterpriseId = 0; - if (message.enterpriseId != null && message.hasOwnProperty("enterpriseId")) + if (options.defaults) object.enterpriseId = 0; + if (message.enterpriseId != null && message.hasOwnProperty('enterpriseId')) object.enterpriseId = message.enterpriseId; return object; }; @@ -244793,16 +253423,15 @@ export const BI = $root.BI = (() => { */ ActivePamCountRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/BI.ActivePamCountRequest"; + return typeUrlPrefix + '/BI.ActivePamCountRequest'; }; return ActivePamCountRequest; })(); - BI.ActivePamCountResponse = (function() { - + BI.ActivePamCountResponse = (function () { /** * Properties of an ActivePamCountResponse. * @memberof BI @@ -244821,8 +253450,7 @@ export const BI = $root.BI = (() => { function ActivePamCountResponse(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -244855,10 +253483,9 @@ export const BI = $root.BI = (() => { * @returns {$protobuf.Writer} Writer */ ActivePamCountResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.pamCount != null && Object.hasOwnProperty.call(message, "pamCount")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.pamCount); + if (!writer) writer = $Writer.create(); + if (message.pamCount != null && Object.hasOwnProperty.call(message, 'pamCount')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int32(message.pamCount); return writer; }; @@ -244887,19 +253514,19 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ActivePamCountResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.BI.ActivePamCountResponse(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.BI.ActivePamCountResponse(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.pamCount = reader.int32(); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -244916,8 +253543,7 @@ export const BI = $root.BI = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ActivePamCountResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -244930,11 +253556,9 @@ export const BI = $root.BI = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ ActivePamCountResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.pamCount != null && message.hasOwnProperty("pamCount")) - if (!$util.isInteger(message.pamCount)) - return "pamCount: integer expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.pamCount != null && message.hasOwnProperty('pamCount')) + if (!$util.isInteger(message.pamCount)) return 'pamCount: integer expected'; return null; }; @@ -244947,11 +253571,9 @@ export const BI = $root.BI = (() => { * @returns {BI.ActivePamCountResponse} ActivePamCountResponse */ ActivePamCountResponse.fromObject = function fromObject(object) { - if (object instanceof $root.BI.ActivePamCountResponse) - return object; + if (object instanceof $root.BI.ActivePamCountResponse) return object; let message = new $root.BI.ActivePamCountResponse(); - if (object.pamCount != null) - message.pamCount = object.pamCount | 0; + if (object.pamCount != null) message.pamCount = object.pamCount | 0; return message; }; @@ -244965,13 +253587,10 @@ export const BI = $root.BI = (() => { * @returns {Object.} Plain object */ ActivePamCountResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.defaults) - object.pamCount = 0; - if (message.pamCount != null && message.hasOwnProperty("pamCount")) - object.pamCount = message.pamCount; + if (options.defaults) object.pamCount = 0; + if (message.pamCount != null && message.hasOwnProperty('pamCount')) object.pamCount = message.pamCount; return object; }; @@ -244996,19 +253615,18 @@ export const BI = $root.BI = (() => { */ ActivePamCountResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/BI.ActivePamCountResponse"; + return typeUrlPrefix + '/BI.ActivePamCountResponse'; }; return ActivePamCountResponse; })(); return BI; -})(); - -export const google = $root.google = (() => { +})()); +export const google = ($root.google = (() => { /** * Namespace google. * @exports google @@ -245016,8 +253634,7 @@ export const google = $root.google = (() => { */ const google = {}; - google.protobuf = (function() { - + google.protobuf = (function () { /** * Namespace protobuf. * @memberof google @@ -245025,8 +253642,7 @@ export const google = $root.google = (() => { */ const protobuf = {}; - protobuf.Struct = (function() { - + protobuf.Struct = (function () { /** * Properties of a Struct. * @memberof google.protobuf @@ -245046,8 +253662,7 @@ export const google = $root.google = (() => { this.fields = {}; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -245080,12 +253695,20 @@ export const google = $root.google = (() => { * @returns {$protobuf.Writer} Writer */ Struct.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.fields != null && Object.hasOwnProperty.call(message, "fields")) + if (!writer) writer = $Writer.create(); + if (message.fields != null && Object.hasOwnProperty.call(message, 'fields')) for (let keys = Object.keys(message.fields), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.google.protobuf.Value.encode(message.fields[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + writer + .uint32(/* id 1, wireType 2 =*/ 10) + .fork() + .uint32(/* id 1, wireType 2 =*/ 10) + .string(keys[i]); + $root.google.protobuf.Value.encode( + message.fields[keys[i]], + writer.uint32(/* id 2, wireType 2 =*/ 18).fork() + ) + .ldelim() + .ldelim(); } return writer; }; @@ -245115,38 +253738,39 @@ export const google = $root.google = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ Struct.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Struct(), key, value; + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.google.protobuf.Struct(), + key, + value; while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (message.fields === $util.emptyObject) - message.fields = {}; + case 1: { + if (message.fields === $util.emptyObject) message.fields = {}; let end2 = reader.uint32() + reader.pos; - key = ""; + key = ''; value = null; while (reader.pos < end2) { let tag2 = reader.uint32(); switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = $root.google.protobuf.Value.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; + case 1: + key = reader.string(); + break; + case 2: + value = $root.google.protobuf.Value.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; } } message.fields[key] = value; break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -245163,8 +253787,7 @@ export const google = $root.google = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ Struct.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -245177,16 +253800,13 @@ export const google = $root.google = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ Struct.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.fields != null && message.hasOwnProperty("fields")) { - if (!$util.isObject(message.fields)) - return "fields: object expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.fields != null && message.hasOwnProperty('fields')) { + if (!$util.isObject(message.fields)) return 'fields: object expected'; let key = Object.keys(message.fields); for (let i = 0; i < key.length; ++i) { let error = $root.google.protobuf.Value.verify(message.fields[key[i]]); - if (error) - return "fields." + error; + if (error) return 'fields.' + error; } } return null; @@ -245201,16 +253821,15 @@ export const google = $root.google = (() => { * @returns {google.protobuf.Struct} Struct */ Struct.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.Struct) - return object; + if (object instanceof $root.google.protobuf.Struct) return object; let message = new $root.google.protobuf.Struct(); if (object.fields) { - if (typeof object.fields !== "object") - throw TypeError(".google.protobuf.Struct.fields: object expected"); + if (typeof object.fields !== 'object') + throw TypeError('.google.protobuf.Struct.fields: object expected'); message.fields = {}; for (let keys = Object.keys(object.fields), i = 0; i < keys.length; ++i) { - if (typeof object.fields[keys[i]] !== "object") - throw TypeError(".google.protobuf.Struct.fields: object expected"); + if (typeof object.fields[keys[i]] !== 'object') + throw TypeError('.google.protobuf.Struct.fields: object expected'); message.fields[keys[i]] = $root.google.protobuf.Value.fromObject(object.fields[keys[i]]); } } @@ -245227,16 +253846,17 @@ export const google = $root.google = (() => { * @returns {Object.} Plain object */ Struct.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.objects || options.defaults) - object.fields = {}; + if (options.objects || options.defaults) object.fields = {}; let keys2; if (message.fields && (keys2 = Object.keys(message.fields)).length) { object.fields = {}; for (let j = 0; j < keys2.length; ++j) - object.fields[keys2[j]] = $root.google.protobuf.Value.toObject(message.fields[keys2[j]], options); + object.fields[keys2[j]] = $root.google.protobuf.Value.toObject( + message.fields[keys2[j]], + options + ); } return object; }; @@ -245262,16 +253882,15 @@ export const google = $root.google = (() => { */ Struct.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/google.protobuf.Struct"; + return typeUrlPrefix + '/google.protobuf.Struct'; }; return Struct; })(); - protobuf.Value = (function() { - + protobuf.Value = (function () { /** * Properties of a Value. * @memberof google.protobuf @@ -245295,8 +253914,7 @@ export const google = $root.google = (() => { function Value(properties) { if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -245356,9 +253974,18 @@ export const google = $root.google = (() => { * @memberof google.protobuf.Value * @instance */ - Object.defineProperty(Value.prototype, "kind", { - get: $util.oneOfGetter($oneOfFields = ["nullValue", "numberValue", "stringValue", "boolValue", "structValue", "listValue"]), - set: $util.oneOfSetter($oneOfFields) + Object.defineProperty(Value.prototype, 'kind', { + get: $util.oneOfGetter( + ($oneOfFields = [ + 'nullValue', + 'numberValue', + 'stringValue', + 'boolValue', + 'structValue', + 'listValue', + ]) + ), + set: $util.oneOfSetter($oneOfFields), }); /** @@ -245383,20 +254010,25 @@ export const google = $root.google = (() => { * @returns {$protobuf.Writer} Writer */ Value.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.nullValue != null && Object.hasOwnProperty.call(message, "nullValue")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.nullValue); - if (message.numberValue != null && Object.hasOwnProperty.call(message, "numberValue")) - writer.uint32(/* id 2, wireType 1 =*/17).double(message.numberValue); - if (message.stringValue != null && Object.hasOwnProperty.call(message, "stringValue")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.stringValue); - if (message.boolValue != null && Object.hasOwnProperty.call(message, "boolValue")) - writer.uint32(/* id 4, wireType 0 =*/32).bool(message.boolValue); - if (message.structValue != null && Object.hasOwnProperty.call(message, "structValue")) - $root.google.protobuf.Struct.encode(message.structValue, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.listValue != null && Object.hasOwnProperty.call(message, "listValue")) - $root.google.protobuf.ListValue.encode(message.listValue, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (!writer) writer = $Writer.create(); + if (message.nullValue != null && Object.hasOwnProperty.call(message, 'nullValue')) + writer.uint32(/* id 1, wireType 0 =*/ 8).int32(message.nullValue); + if (message.numberValue != null && Object.hasOwnProperty.call(message, 'numberValue')) + writer.uint32(/* id 2, wireType 1 =*/ 17).double(message.numberValue); + if (message.stringValue != null && Object.hasOwnProperty.call(message, 'stringValue')) + writer.uint32(/* id 3, wireType 2 =*/ 26).string(message.stringValue); + if (message.boolValue != null && Object.hasOwnProperty.call(message, 'boolValue')) + writer.uint32(/* id 4, wireType 0 =*/ 32).bool(message.boolValue); + if (message.structValue != null && Object.hasOwnProperty.call(message, 'structValue')) + $root.google.protobuf.Struct.encode( + message.structValue, + writer.uint32(/* id 5, wireType 2 =*/ 42).fork() + ).ldelim(); + if (message.listValue != null && Object.hasOwnProperty.call(message, 'listValue')) + $root.google.protobuf.ListValue.encode( + message.listValue, + writer.uint32(/* id 6, wireType 2 =*/ 50).fork() + ).ldelim(); return writer; }; @@ -245425,39 +254057,39 @@ export const google = $root.google = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ Value.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Value(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.google.protobuf.Value(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { + case 1: { message.nullValue = reader.int32(); break; } - case 2: { + case 2: { message.numberValue = reader.double(); break; } - case 3: { + case 3: { message.stringValue = reader.string(); break; } - case 4: { + case 4: { message.boolValue = reader.bool(); break; } - case 5: { + case 5: { message.structValue = $root.google.protobuf.Struct.decode(reader, reader.uint32()); break; } - case 6: { + case 6: { message.listValue = $root.google.protobuf.ListValue.decode(reader, reader.uint32()); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -245474,8 +254106,7 @@ export const google = $root.google = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ Value.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -245488,57 +254119,46 @@ export const google = $root.google = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ Value.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; let properties = {}; - if (message.nullValue != null && message.hasOwnProperty("nullValue")) { + if (message.nullValue != null && message.hasOwnProperty('nullValue')) { properties.kind = 1; switch (message.nullValue) { - default: - return "nullValue: enum value expected"; - case 0: - break; + default: + return 'nullValue: enum value expected'; + case 0: + break; } } - if (message.numberValue != null && message.hasOwnProperty("numberValue")) { - if (properties.kind === 1) - return "kind: multiple values"; + if (message.numberValue != null && message.hasOwnProperty('numberValue')) { + if (properties.kind === 1) return 'kind: multiple values'; properties.kind = 1; - if (typeof message.numberValue !== "number") - return "numberValue: number expected"; + if (typeof message.numberValue !== 'number') return 'numberValue: number expected'; } - if (message.stringValue != null && message.hasOwnProperty("stringValue")) { - if (properties.kind === 1) - return "kind: multiple values"; + if (message.stringValue != null && message.hasOwnProperty('stringValue')) { + if (properties.kind === 1) return 'kind: multiple values'; properties.kind = 1; - if (!$util.isString(message.stringValue)) - return "stringValue: string expected"; + if (!$util.isString(message.stringValue)) return 'stringValue: string expected'; } - if (message.boolValue != null && message.hasOwnProperty("boolValue")) { - if (properties.kind === 1) - return "kind: multiple values"; + if (message.boolValue != null && message.hasOwnProperty('boolValue')) { + if (properties.kind === 1) return 'kind: multiple values'; properties.kind = 1; - if (typeof message.boolValue !== "boolean") - return "boolValue: boolean expected"; + if (typeof message.boolValue !== 'boolean') return 'boolValue: boolean expected'; } - if (message.structValue != null && message.hasOwnProperty("structValue")) { - if (properties.kind === 1) - return "kind: multiple values"; + if (message.structValue != null && message.hasOwnProperty('structValue')) { + if (properties.kind === 1) return 'kind: multiple values'; properties.kind = 1; { let error = $root.google.protobuf.Struct.verify(message.structValue); - if (error) - return "structValue." + error; + if (error) return 'structValue.' + error; } } - if (message.listValue != null && message.hasOwnProperty("listValue")) { - if (properties.kind === 1) - return "kind: multiple values"; + if (message.listValue != null && message.hasOwnProperty('listValue')) { + if (properties.kind === 1) return 'kind: multiple values'; properties.kind = 1; { let error = $root.google.protobuf.ListValue.verify(message.listValue); - if (error) - return "listValue." + error; + if (error) return 'listValue.' + error; } } return null; @@ -245553,35 +254173,31 @@ export const google = $root.google = (() => { * @returns {google.protobuf.Value} Value */ Value.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.Value) - return object; + if (object instanceof $root.google.protobuf.Value) return object; let message = new $root.google.protobuf.Value(); switch (object.nullValue) { - default: - if (typeof object.nullValue === "number") { - message.nullValue = object.nullValue; + default: + if (typeof object.nullValue === 'number') { + message.nullValue = object.nullValue; + break; + } + break; + case 'NULL_VALUE': + case 0: + message.nullValue = 0; break; - } - break; - case "NULL_VALUE": - case 0: - message.nullValue = 0; - break; } - if (object.numberValue != null) - message.numberValue = Number(object.numberValue); - if (object.stringValue != null) - message.stringValue = String(object.stringValue); - if (object.boolValue != null) - message.boolValue = Boolean(object.boolValue); + if (object.numberValue != null) message.numberValue = Number(object.numberValue); + if (object.stringValue != null) message.stringValue = String(object.stringValue); + if (object.boolValue != null) message.boolValue = Boolean(object.boolValue); if (object.structValue != null) { - if (typeof object.structValue !== "object") - throw TypeError(".google.protobuf.Value.structValue: object expected"); + if (typeof object.structValue !== 'object') + throw TypeError('.google.protobuf.Value.structValue: object expected'); message.structValue = $root.google.protobuf.Struct.fromObject(object.structValue); } if (object.listValue != null) { - if (typeof object.listValue !== "object") - throw TypeError(".google.protobuf.Value.listValue: object expected"); + if (typeof object.listValue !== 'object') + throw TypeError('.google.protobuf.Value.listValue: object expected'); message.listValue = $root.google.protobuf.ListValue.fromObject(object.listValue); } return message; @@ -245597,38 +254213,39 @@ export const google = $root.google = (() => { * @returns {Object.} Plain object */ Value.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (message.nullValue != null && message.hasOwnProperty("nullValue")) { - object.nullValue = options.enums === String ? $root.google.protobuf.NullValue[message.nullValue] === undefined ? message.nullValue : $root.google.protobuf.NullValue[message.nullValue] : message.nullValue; - if (options.oneofs) - object.kind = "nullValue"; - } - if (message.numberValue != null && message.hasOwnProperty("numberValue")) { - object.numberValue = options.json && !isFinite(message.numberValue) ? String(message.numberValue) : message.numberValue; - if (options.oneofs) - object.kind = "numberValue"; - } - if (message.stringValue != null && message.hasOwnProperty("stringValue")) { + if (message.nullValue != null && message.hasOwnProperty('nullValue')) { + object.nullValue = + options.enums === String + ? $root.google.protobuf.NullValue[message.nullValue] === undefined + ? message.nullValue + : $root.google.protobuf.NullValue[message.nullValue] + : message.nullValue; + if (options.oneofs) object.kind = 'nullValue'; + } + if (message.numberValue != null && message.hasOwnProperty('numberValue')) { + object.numberValue = + options.json && !isFinite(message.numberValue) + ? String(message.numberValue) + : message.numberValue; + if (options.oneofs) object.kind = 'numberValue'; + } + if (message.stringValue != null && message.hasOwnProperty('stringValue')) { object.stringValue = message.stringValue; - if (options.oneofs) - object.kind = "stringValue"; + if (options.oneofs) object.kind = 'stringValue'; } - if (message.boolValue != null && message.hasOwnProperty("boolValue")) { + if (message.boolValue != null && message.hasOwnProperty('boolValue')) { object.boolValue = message.boolValue; - if (options.oneofs) - object.kind = "boolValue"; + if (options.oneofs) object.kind = 'boolValue'; } - if (message.structValue != null && message.hasOwnProperty("structValue")) { + if (message.structValue != null && message.hasOwnProperty('structValue')) { object.structValue = $root.google.protobuf.Struct.toObject(message.structValue, options); - if (options.oneofs) - object.kind = "structValue"; + if (options.oneofs) object.kind = 'structValue'; } - if (message.listValue != null && message.hasOwnProperty("listValue")) { + if (message.listValue != null && message.hasOwnProperty('listValue')) { object.listValue = $root.google.protobuf.ListValue.toObject(message.listValue, options); - if (options.oneofs) - object.kind = "listValue"; + if (options.oneofs) object.kind = 'listValue'; } return object; }; @@ -245654,9 +254271,9 @@ export const google = $root.google = (() => { */ Value.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/google.protobuf.Value"; + return typeUrlPrefix + '/google.protobuf.Value'; }; return Value; @@ -245668,14 +254285,14 @@ export const google = $root.google = (() => { * @enum {number} * @property {number} NULL_VALUE=0 NULL_VALUE value */ - protobuf.NullValue = (function() { - const valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "NULL_VALUE"] = 0; + protobuf.NullValue = (function () { + const valuesById = {}, + values = Object.create(valuesById); + values[(valuesById[0] = 'NULL_VALUE')] = 0; return values; })(); - protobuf.ListValue = (function() { - + protobuf.ListValue = (function () { /** * Properties of a ListValue. * @memberof google.protobuf @@ -245695,8 +254312,7 @@ export const google = $root.google = (() => { this.values = []; if (properties) for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + if (properties[keys[i]] != null) this[keys[i]] = properties[keys[i]]; } /** @@ -245729,11 +254345,13 @@ export const google = $root.google = (() => { * @returns {$protobuf.Writer} Writer */ ListValue.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); + if (!writer) writer = $Writer.create(); if (message.values != null && message.values.length) for (let i = 0; i < message.values.length; ++i) - $root.google.protobuf.Value.encode(message.values[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + $root.google.protobuf.Value.encode( + message.values[i], + writer.uint32(/* id 1, wireType 2 =*/ 10).fork() + ).ldelim(); return writer; }; @@ -245762,21 +254380,20 @@ export const google = $root.google = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ListValue.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - let end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.ListValue(); + if (!(reader instanceof $Reader)) reader = $Reader.create(reader); + let end = length === undefined ? reader.len : reader.pos + length, + message = new $root.google.protobuf.ListValue(); while (reader.pos < end) { let tag = reader.uint32(); switch (tag >>> 3) { - case 1: { - if (!(message.values && message.values.length)) - message.values = []; + case 1: { + if (!(message.values && message.values.length)) message.values = []; message.values.push($root.google.protobuf.Value.decode(reader, reader.uint32())); break; } - default: - reader.skipType(tag & 7); - break; + default: + reader.skipType(tag & 7); + break; } } return message; @@ -245793,8 +254410,7 @@ export const google = $root.google = (() => { * @throws {$protobuf.util.ProtocolError} If required fields are missing */ ListValue.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); + if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; @@ -245807,15 +254423,12 @@ export const google = $root.google = (() => { * @returns {string|null} `null` if valid, otherwise the reason why it is not */ ListValue.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.values != null && message.hasOwnProperty("values")) { - if (!Array.isArray(message.values)) - return "values: array expected"; + if (typeof message !== 'object' || message === null) return 'object expected'; + if (message.values != null && message.hasOwnProperty('values')) { + if (!Array.isArray(message.values)) return 'values: array expected'; for (let i = 0; i < message.values.length; ++i) { let error = $root.google.protobuf.Value.verify(message.values[i]); - if (error) - return "values." + error; + if (error) return 'values.' + error; } } return null; @@ -245830,16 +254443,15 @@ export const google = $root.google = (() => { * @returns {google.protobuf.ListValue} ListValue */ ListValue.fromObject = function fromObject(object) { - if (object instanceof $root.google.protobuf.ListValue) - return object; + if (object instanceof $root.google.protobuf.ListValue) return object; let message = new $root.google.protobuf.ListValue(); if (object.values) { if (!Array.isArray(object.values)) - throw TypeError(".google.protobuf.ListValue.values: array expected"); + throw TypeError('.google.protobuf.ListValue.values: array expected'); message.values = []; for (let i = 0; i < object.values.length; ++i) { - if (typeof object.values[i] !== "object") - throw TypeError(".google.protobuf.ListValue.values: object expected"); + if (typeof object.values[i] !== 'object') + throw TypeError('.google.protobuf.ListValue.values: object expected'); message.values[i] = $root.google.protobuf.Value.fromObject(object.values[i]); } } @@ -245856,11 +254468,9 @@ export const google = $root.google = (() => { * @returns {Object.} Plain object */ ListValue.toObject = function toObject(message, options) { - if (!options) - options = {}; + if (!options) options = {}; let object = {}; - if (options.arrays || options.defaults) - object.values = []; + if (options.arrays || options.defaults) object.values = []; if (message.values && message.values.length) { object.values = []; for (let j = 0; j < message.values.length; ++j) @@ -245890,9 +254500,9 @@ export const google = $root.google = (() => { */ ListValue.getTypeUrl = function getTypeUrl(typeUrlPrefix) { if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; + typeUrlPrefix = 'type.googleapis.com'; } - return typeUrlPrefix + "/google.protobuf.ListValue"; + return typeUrlPrefix + '/google.protobuf.ListValue'; }; return ListValue; @@ -245902,6 +254512,6 @@ export const google = $root.google = (() => { })(); return google; -})(); +})()); export { $root as default }; diff --git a/keeperapi/src/qrc/constants.ts b/keeperapi/src/qrc/constants.ts index 7e4efdd..b46aa05 100644 --- a/keeperapi/src/qrc/constants.ts +++ b/keeperapi/src/qrc/constants.ts @@ -19,18 +19,18 @@ export const ML_KEM_1024_PRIVATE_KEY_LENGTH = 3168; export const ML_KEM_SHARED_SECRET_LENGTH = 32; // ECDH key lengths -export const EC_PUBLIC_KEY_LENGTH = 65; // Uncompressed P-256 public key (0x04 + x + y) +export const EC_PUBLIC_KEY_LENGTH = 65; // Uncompressed P-256 public key (0x04 + x + y) export const EC_PRIVATE_KEY_LENGTH = 32; // P-256 private key scalar export const EC_SHARED_SECRET_LENGTH = 32; // ECDH shared secret with P-256 // AES-GCM parameters -export const AES_KEY_LENGTH = 32; // AES-256 -export const AES_GCM_IV_LENGTH = 12; // 96-bit IV for GCM -export const AES_GCM_TAG_LENGTH = 16; // 128-bit authentication tag +export const AES_KEY_LENGTH = 32; // AES-256 +export const AES_GCM_IV_LENGTH = 12; // 96-bit IV for GCM +export const AES_GCM_TAG_LENGTH = 16; // 128-bit authentication tag // HKDF parameters -export const HKDF_SALT_LENGTH = 32; // SHA-256 output size -export const HKDF_OUTPUT_LENGTH = 32; // AES-256 key size +export const HKDF_SALT_LENGTH = 32; // SHA-256 output size +export const HKDF_OUTPUT_LENGTH = 32; // AES-256 key size // Protocol version export const QRC_PROTOCOL_VERSION = 1; @@ -41,13 +41,13 @@ export const OPTIONAL_DATA_LENGTH = 16; // Ciphersuite identifiers (must match server implementation) export enum Ciphersuite { HPKE_MLKEM768_ECDHP256_HKDFSHA256_AESGCM256 = 'HPKE_ML-KEM-768_ECDH-P256_HKDF-SHA256_AES-GCM-256', - HPKE_MLKEM1024_ECDHP256_HKDFSHA256_AESGCM256 = 'HPKE_ML-KEM-1024_ECDH-P256_HKDF-SHA256_AES-GCM-256' + HPKE_MLKEM1024_ECDHP256_HKDFSHA256_AESGCM256 = 'HPKE_ML-KEM-1024_ECDH-P256_HKDF-SHA256_AES-GCM-256', } // ML-KEM variant types export enum MlKemVariant { ML_KEM_768 = 768, - ML_KEM_1024 = 1024 + ML_KEM_1024 = 1024, } // Map ciphersuite to ML-KEM variant diff --git a/keeperapi/src/qrc/context.ts b/keeperapi/src/qrc/context.ts index a9a2128..f780e77 100644 --- a/keeperapi/src/qrc/context.ts +++ b/keeperapi/src/qrc/context.ts @@ -69,11 +69,15 @@ export function validateContextInfoParams( mlKemCiphertextHash: Uint8Array ): void { if (serverEcPublicKey.length !== EC_PUBLIC_KEY_LENGTH) { - throw new Error(`Invalid server EC public key length: ${serverEcPublicKey.length}, expected ${EC_PUBLIC_KEY_LENGTH}`); + throw new Error( + `Invalid server EC public key length: ${serverEcPublicKey.length}, expected ${EC_PUBLIC_KEY_LENGTH}` + ); } if (clientEphemeralEcPublicKey.length !== EC_PUBLIC_KEY_LENGTH) { - throw new Error(`Invalid client EC public key length: ${clientEphemeralEcPublicKey.length}, expected ${EC_PUBLIC_KEY_LENGTH}`); + throw new Error( + `Invalid client EC public key length: ${clientEphemeralEcPublicKey.length}, expected ${EC_PUBLIC_KEY_LENGTH}` + ); } if (mlKemCiphertextHash.length !== 32) { diff --git a/keeperapi/src/qrc/hpke.ts b/keeperapi/src/qrc/hpke.ts index 1c46939..0864920 100644 --- a/keeperapi/src/qrc/hpke.ts +++ b/keeperapi/src/qrc/hpke.ts @@ -71,8 +71,10 @@ export class HPKE_ECDH_KYBER { ); // Perform ML-KEM encapsulation - const { ciphertext: mlKemCiphertext, sharedSecret: mlKemSharedSecret } = - mlKemEncapsulate(serverMlKemPublicKey, this.mlKemVariant); + const { ciphertext: mlKemCiphertext, sharedSecret: mlKemSharedSecret } = mlKemEncapsulate( + serverMlKemPublicKey, + this.mlKemVariant + ); // Combine both shared secrets (concatenate) const combinedSecret = concatUint8Arrays(ecSharedSecret, mlKemSharedSecret); @@ -143,11 +145,7 @@ export class HPKE_ECDH_KYBER { ); // Perform ML-KEM decapsulation - const mlKemSharedSecret = mlKemDecapsulate( - mlKemEncapsulatedKey, - serverMlKemPrivateKey, - this.mlKemVariant - ); + const mlKemSharedSecret = mlKemDecapsulate(mlKemEncapsulatedKey, serverMlKemPrivateKey, this.mlKemVariant); // Combine both shared secrets (concatenate) const combinedSecret = concatUint8Arrays(ecSharedSecret, mlKemSharedSecret); diff --git a/keeperapi/src/qrc/index.ts b/keeperapi/src/qrc/index.ts index 3d95165..2ae2c60 100644 --- a/keeperapi/src/qrc/index.ts +++ b/keeperapi/src/qrc/index.ts @@ -7,11 +7,7 @@ export { HPKE_ECDH_KYBER } from './hpke'; // Types -export type { - MlKemKeyPair, - QrcEncryptionResult, - MlKemEncapsulation, -} from './types'; +export type { MlKemKeyPair, QrcEncryptionResult, MlKemEncapsulation } from './types'; // Constants export { @@ -28,28 +24,17 @@ export { ML_KEM_1024_PUBLIC_KEY_LENGTH, EC_PUBLIC_KEY_LENGTH, EC_PRIVATE_KEY_LENGTH, - AES_KEY_LENGTH + AES_KEY_LENGTH, } from './constants'; // Utilities -export { - concatUint8Arrays, -} from './utils'; +export { concatUint8Arrays } from './utils'; // ML-KEM operations -export { - mlKemKeygen, - mlKemEncapsulate, - mlKemDecapsulate -} from './mlkem'; +export { mlKemKeygen, mlKemEncapsulate, mlKemDecapsulate } from './mlkem'; // Context info builder -export { - buildContextInfo, - validateContextInfoParams -} from './context'; +export { buildContextInfo, validateContextInfoParams } from './context'; // PEM encoding -export { - encodeMlKemPublicKeyToPem -} from './pem'; +export { encodeMlKemPublicKeyToPem } from './pem'; diff --git a/keeperapi/src/qrc/mlkem.ts b/keeperapi/src/qrc/mlkem.ts index 8e1b83b..23895db 100644 --- a/keeperapi/src/qrc/mlkem.ts +++ b/keeperapi/src/qrc/mlkem.ts @@ -29,7 +29,7 @@ export function mlKemKeygen(variant: MlKemVariant, seed?: Uint8Array): MlKemKeyP return { publicKey: result.publicKey, - privateKey: result.secretKey + privateKey: result.secretKey, }; } @@ -39,10 +39,7 @@ export function mlKemKeygen(variant: MlKemVariant, seed?: Uint8Array): MlKemKeyP * @param variant - ML-KEM variant * @returns Encapsulation (ciphertext and shared secret) */ -export function mlKemEncapsulate( - publicKey: Uint8Array, - variant: MlKemVariant -): MlKemEncapsulation { +export function mlKemEncapsulate(publicKey: Uint8Array, variant: MlKemVariant): MlKemEncapsulation { // Extract raw public key from PEM format if needed const expectedLength = getMlKemPublicKeyLength(variant); const rawPublicKey = extractRawMlKemPublicKey(publicKey, expectedLength); @@ -62,7 +59,7 @@ export function mlKemEncapsulate( return { ciphertext: result.cipherText, - sharedSecret: result.sharedSecret + sharedSecret: result.sharedSecret, }; } @@ -73,11 +70,7 @@ export function mlKemEncapsulate( * @param variant - ML-KEM variant * @returns Shared secret */ -export function mlKemDecapsulate( - ciphertext: Uint8Array, - privateKey: Uint8Array, - variant: MlKemVariant -): Uint8Array { +export function mlKemDecapsulate(ciphertext: Uint8Array, privateKey: Uint8Array, variant: MlKemVariant): Uint8Array { switch (variant) { case MlKemVariant.ML_KEM_768: return mlKem.ml_kem768.decapsulate(ciphertext, privateKey); diff --git a/keeperapi/src/qrc/pem.ts b/keeperapi/src/qrc/pem.ts index 79ab24c..51eef08 100644 --- a/keeperapi/src/qrc/pem.ts +++ b/keeperapi/src/qrc/pem.ts @@ -7,8 +7,8 @@ import { concatUint8Arrays } from './utils'; import { MlKemVariant } from './constants'; // ML-KEM OIDs from NIST -const ML_KEM_768_OID = new Uint8Array([0x06, 0x0B, 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x04, 0x04, 0x02]); -const ML_KEM_1024_OID = new Uint8Array([0x06, 0x0B, 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x04, 0x04, 0x03]); +const ML_KEM_768_OID = new Uint8Array([0x06, 0x0b, 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x04, 0x04, 0x02]); +const ML_KEM_1024_OID = new Uint8Array([0x06, 0x0b, 0x60, 0x86, 0x48, 0x01, 0x65, 0x03, 0x04, 0x04, 0x03]); /** * Encodes a length in DER format @@ -19,7 +19,7 @@ function encodeLength(length: number): Uint8Array { } else if (length < 256) { return new Uint8Array([0x81, length]); } else if (length < 65536) { - return new Uint8Array([0x82, (length >> 8) & 0xFF, length & 0xFF]); + return new Uint8Array([0x82, (length >> 8) & 0xff, length & 0xff]); } else { throw new Error('Length too large for DER encoding'); } diff --git a/keeperapi/src/qrc/utils.ts b/keeperapi/src/qrc/utils.ts index 454af12..7b992e0 100644 --- a/keeperapi/src/qrc/utils.ts +++ b/keeperapi/src/qrc/utils.ts @@ -3,7 +3,7 @@ * Leverages existing platform utilities where possible */ -import { platform } from "../platform"; +import { platform } from '../platform'; /** * Concatenates multiple Uint8Arrays into a single Uint8Array @@ -77,10 +77,10 @@ export function extractRawMlKemPublicKey(keyData: Uint8Array, expectedRawLength: // Otherwise, try to parse it as PEM const spkiDER = decodePem(keyData); - const spki = parseDER(spkiDER); // SEQUENCE (outer) - const algId = parseDER(spki.data); // SEQUENCE (AlgorithmIdentifier) + const spki = parseDER(spkiDER); // SEQUENCE (outer) + const algId = parseDER(spki.data); // SEQUENCE (AlgorithmIdentifier) const pubKey = parseDER(spki.data, algId.next); // BIT STRING - const rawPublicKey = pubKey.data.subarray(1); // skip unused-bits byte + const rawPublicKey = pubKey.data.subarray(1); // skip unused-bits byte if (rawPublicKey.length !== expectedRawLength) { throw new Error(`Extracted key length ${rawPublicKey.length} does not match expected ${expectedRawLength}`); } @@ -93,7 +93,7 @@ type DERElement = { len: number; data: Uint8Array; next: number; -} +}; function parseDER(buf: Uint8Array, offset: number = 0): DERElement { const tag = buf[offset]; diff --git a/keeperapi/src/restMessages.ts b/keeperapi/src/restMessages.ts index 3093993..0d34291 100644 --- a/keeperapi/src/restMessages.ts +++ b/keeperapi/src/restMessages.ts @@ -1,6 +1,6 @@ // noinspection JSUnusedGlobalSymbols -import {Writer} from 'protobufjs' +import { Writer } from 'protobufjs'; import { AccountSummary, Authentication, @@ -13,424 +13,828 @@ import { SsoCloud, Vault, Tokens, - NotificationCenter -} from './proto' + NotificationCenter, +} from './proto'; // 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 }> +export type NN = Required<{ [prop in keyof T]: NonNullable }>; export type RestInMessage = { - path: string - toBytes(): Uint8Array - apiVersion?: number -} + path: string; + toBytes(): Uint8Array; + apiVersion?: number; +}; export type RestOutMessage = { - path: string - fromBytes(data: Uint8Array): TOut - apiVersion?: number -} + path: string; + fromBytes(data: Uint8Array): TOut; + apiVersion?: number; +}; -export type RestMessage = RestInMessage & RestOutMessage +export type RestMessage = RestInMessage & RestOutMessage; export type RestActionMessage = { - path: string - apiVersion?: number -} + path: string; + apiVersion?: number; +}; type encoderClass = { - encode: (message: T, writer?: Writer) => Writer -} + encode: (message: T, writer?: Writer) => Writer; +}; type decoderClass = { - decode: (reader: Uint8Array, length?: number) => T -} + decode: (reader: Uint8Array, length?: number) => T; +}; -const createInMessage = (data: TIn, path: string, encoder: encoderClass, apiVersion?: number): RestInMessage => ({ +const createInMessage = ( + data: TIn, + path: string, + encoder: encoderClass, + apiVersion?: number +): RestInMessage => ({ path: path, toBytes(): Uint8Array { - return encoder.encode(data).finish() + return encoder.encode(data).finish(); }, - apiVersion -}) + apiVersion, +}); -const createOutMessage = (path: string, decoder: decoderClass, apiVersion?: number): RestOutMessage => ({ +const createOutMessage = ( + path: string, + decoder: decoderClass, + apiVersion?: number +): RestOutMessage => ({ path: path, fromBytes(data: Uint8Array): TOut { - return decoder.decode(data) + return decoder.decode(data); }, - apiVersion -}) - -const createMessage = (data: TIn, path: string, encoder: encoderClass, decoder: decoderClass, apiVersion?: number): RestMessage> => ({ + apiVersion, +}); + +const createMessage = ( + data: TIn, + path: string, + encoder: encoderClass, + decoder: decoderClass, + apiVersion?: number +): RestMessage> => ({ path: path, toBytes(): Uint8Array { - return encoder.encode(data).finish() + return encoder.encode(data).finish(); }, fromBytes(data: Uint8Array): NN { - return >decoder.decode(data) + return >decoder.decode(data); }, - apiVersion -}) + apiVersion, +}); const createActionMessage = (path: string, apiVersion?: number): RestActionMessage => ({ path: path, - apiVersion -}) + apiVersion, +}); // new login -export const registerDeviceMessage = (data: Authentication.IDeviceRegistrationRequest): RestMessage => - createMessage(data, 'authentication/register_device', Authentication.DeviceRegistrationRequest, Authentication.Device) - -export const registerDeviceInRegionMessage = (data: Authentication.IRegisterDeviceInRegionRequest): RestInMessage => - createInMessage(data, 'authentication/register_device_in_region', Authentication.RegisterDeviceInRegionRequest) - -export const updateDeviceMessage = (data: Authentication.IDeviceUpdateRequest): RestInMessage => - createInMessage(data, 'authentication/update_device', Authentication.DeviceUpdateRequest) - -export const requestDeviceVerificationMessage = (data: Authentication.IDeviceVerificationRequest): RestInMessage => - createInMessage(data, 'authentication/request_device_verification', Authentication.DeviceVerificationRequest) - -export const requestCreateUserMessage = (data: Authentication.ICreateUserRequest, isSso: boolean): RestInMessage => - createInMessage(data, isSso ? 'authentication/create_user_sso' : 'authentication/request_create_user', Authentication.CreateUserRequest) - -export const startLoginMessage = (data: Authentication.IStartLoginRequest): RestMessage> => - createMessage(data, 'authentication/start_login', Authentication.StartLoginRequest, Authentication.LoginResponse) - -export const validateAuthHashMessage = (data: Authentication.IValidateAuthHashRequest): RestMessage> => - createMessage(data, 'authentication/validate_auth_hash', Authentication.ValidateAuthHashRequest, Authentication.LoginResponse) - -export const twoFactorValidateMessage = (data: Authentication.ITwoFactorValidateRequest): RestMessage => - createMessage(data, 'authentication/2fa_validate', Authentication.TwoFactorValidateRequest, Authentication.TwoFactorValidateResponse) - -export const twoFactorSend2FAPushMessage = (data: Authentication.ITwoFactorSendPushRequest): RestInMessage => - createInMessage(data, 'authentication/2fa_send_push', Authentication.TwoFactorSendPushRequest) - -export const twoFactorAdd = (data: Authentication.ITwoFactorAddRequest): RestMessage => - createMessage(data, 'authentication/2fa_add', Authentication.TwoFactorAddRequest, Authentication.TwoFactorAddResponse) - -export const twoFactorAddValidate = (data: Authentication.ITwoFactorValidateRequest): RestMessage => - createMessage(data, 'authentication/2fa_add_validate', Authentication.TwoFactorValidateRequest, Authentication.TwoFactorAddResponse) - -export const twoFactorList = (data: Authentication.ITwoFactorChannelInfo): RestMessage => - createMessage(data, 'authentication/2fa_list', Authentication.TwoFactorChannelInfo, Authentication.TwoFactorListResponse) - -export const twoFactorRename = (data: Authentication.ITwoFactorRenameRequest): RestInMessage => - createInMessage(data, 'authentication/2fa_rename', Authentication.TwoFactorRenameRequest) - -export const twoFactorDelete = (data: Authentication.ITwoFactorDeleteRequest): RestInMessage => - createInMessage(data, 'authentication/2fa_delete', Authentication.TwoFactorDeleteRequest) - -export const twoFactorDuoStatus = (data: Authentication.ITwoFactorDuoStatus): RestInMessage => - createInMessage(data, 'authentication/2fa_duo_status', Authentication.TwoFactorDuoStatus) - -export const approveDeviceMessage = (data: Authentication.IApproveDeviceRequest): RestInMessage => - createInMessage(data, 'authentication/approve_device', Authentication.ApproveDeviceRequest) - -export const approveDeviceInstantMessage = (data: Authentication.IApproveDeviceRequest): RestInMessage => - createInMessage(data, 'authentication/approve_device_instant', Authentication.ApproveDeviceRequest) - -export const validateDeviceVerificationCodeMessage = (data: Authentication.IValidateDeviceVerificationCodeRequest): RestInMessage => - createInMessage(data, 'authentication/validate_device_verification_code', Authentication.ValidateDeviceVerificationCodeRequest) - -export const validateCreateUserVerificationCodeMessage = (data: Authentication.IValidateCreateUserVerificationCodeRequest): RestInMessage => - createInMessage(data, 'authentication/validate_create_user_verification_code', Authentication.ValidateCreateUserVerificationCodeRequest) - -export const approveUserDevicesMessage = (data: Enterprise.IApproveUserDevicesRequest): RestMessage => - createMessage(data, 'enterprise/approve_user_devices', Enterprise.ApproveUserDevicesRequest, Enterprise.ApproveUserDevicesResponse) - -export const registerEncryptedDataKeyForDeviceMessage = (data: Authentication.IRegisterDeviceDataKeyRequest): RestInMessage => - createInMessage(data, 'authentication/register_encrypted_data_key_for_device', Authentication.RegisterDeviceDataKeyRequest) - -export const setUserSettingMessage = (data: Authentication.IUserSettingRequest): RestInMessage => - createInMessage(data, 'setting/set_user_setting', Authentication.UserSettingRequest) - -export const requestDeviceAdminApprovalMessage = (data: Authentication.IDeviceVerificationRequest): RestInMessage => - createInMessage(data, 'authentication/request_device_admin_approval', Authentication.DeviceVerificationRequest) +export const registerDeviceMessage = ( + data: Authentication.IDeviceRegistrationRequest +): RestMessage => + createMessage( + data, + 'authentication/register_device', + Authentication.DeviceRegistrationRequest, + Authentication.Device + ); + +export const registerDeviceInRegionMessage = ( + data: Authentication.IRegisterDeviceInRegionRequest +): RestInMessage => + createInMessage(data, 'authentication/register_device_in_region', Authentication.RegisterDeviceInRegionRequest); + +export const updateDeviceMessage = ( + data: Authentication.IDeviceUpdateRequest +): RestInMessage => + createInMessage(data, 'authentication/update_device', Authentication.DeviceUpdateRequest); + +export const requestDeviceVerificationMessage = ( + data: Authentication.IDeviceVerificationRequest +): RestInMessage => + createInMessage(data, 'authentication/request_device_verification', Authentication.DeviceVerificationRequest); + +export const requestCreateUserMessage = ( + data: Authentication.ICreateUserRequest, + isSso: boolean +): RestInMessage => + createInMessage( + data, + isSso ? 'authentication/create_user_sso' : 'authentication/request_create_user', + Authentication.CreateUserRequest + ); + +export const startLoginMessage = ( + data: Authentication.IStartLoginRequest +): RestMessage> => + createMessage(data, 'authentication/start_login', Authentication.StartLoginRequest, Authentication.LoginResponse); + +export const validateAuthHashMessage = ( + data: Authentication.IValidateAuthHashRequest +): RestMessage> => + createMessage( + data, + 'authentication/validate_auth_hash', + Authentication.ValidateAuthHashRequest, + Authentication.LoginResponse + ); + +export const twoFactorValidateMessage = ( + data: Authentication.ITwoFactorValidateRequest +): RestMessage => + createMessage( + data, + 'authentication/2fa_validate', + Authentication.TwoFactorValidateRequest, + Authentication.TwoFactorValidateResponse + ); + +export const twoFactorSend2FAPushMessage = ( + data: Authentication.ITwoFactorSendPushRequest +): RestInMessage => + createInMessage(data, 'authentication/2fa_send_push', Authentication.TwoFactorSendPushRequest); + +export const twoFactorAdd = ( + data: Authentication.ITwoFactorAddRequest +): RestMessage => + createMessage( + data, + 'authentication/2fa_add', + Authentication.TwoFactorAddRequest, + Authentication.TwoFactorAddResponse + ); + +export const twoFactorAddValidate = ( + data: Authentication.ITwoFactorValidateRequest +): RestMessage => + createMessage( + data, + 'authentication/2fa_add_validate', + Authentication.TwoFactorValidateRequest, + Authentication.TwoFactorAddResponse + ); + +export const twoFactorList = ( + data: Authentication.ITwoFactorChannelInfo +): RestMessage => + createMessage( + data, + 'authentication/2fa_list', + Authentication.TwoFactorChannelInfo, + Authentication.TwoFactorListResponse + ); + +export const twoFactorRename = ( + data: Authentication.ITwoFactorRenameRequest +): RestInMessage => + createInMessage(data, 'authentication/2fa_rename', Authentication.TwoFactorRenameRequest); + +export const twoFactorDelete = ( + data: Authentication.ITwoFactorDeleteRequest +): RestInMessage => + createInMessage(data, 'authentication/2fa_delete', Authentication.TwoFactorDeleteRequest); + +export const twoFactorDuoStatus = ( + data: Authentication.ITwoFactorDuoStatus +): RestInMessage => + createInMessage(data, 'authentication/2fa_duo_status', Authentication.TwoFactorDuoStatus); + +export const approveDeviceMessage = ( + data: Authentication.IApproveDeviceRequest +): RestInMessage => + createInMessage(data, 'authentication/approve_device', Authentication.ApproveDeviceRequest); + +export const approveDeviceInstantMessage = ( + data: Authentication.IApproveDeviceRequest +): RestInMessage => + createInMessage(data, 'authentication/approve_device_instant', Authentication.ApproveDeviceRequest); + +export const validateDeviceVerificationCodeMessage = ( + data: Authentication.IValidateDeviceVerificationCodeRequest +): RestInMessage => + createInMessage( + data, + 'authentication/validate_device_verification_code', + Authentication.ValidateDeviceVerificationCodeRequest + ); + +export const validateCreateUserVerificationCodeMessage = ( + data: Authentication.IValidateCreateUserVerificationCodeRequest +): RestInMessage => + createInMessage( + data, + 'authentication/validate_create_user_verification_code', + Authentication.ValidateCreateUserVerificationCodeRequest + ); + +export const approveUserDevicesMessage = ( + data: Enterprise.IApproveUserDevicesRequest +): RestMessage => + createMessage( + data, + 'enterprise/approve_user_devices', + Enterprise.ApproveUserDevicesRequest, + Enterprise.ApproveUserDevicesResponse + ); + +export const registerEncryptedDataKeyForDeviceMessage = ( + data: Authentication.IRegisterDeviceDataKeyRequest +): RestInMessage => + createInMessage( + data, + 'authentication/register_encrypted_data_key_for_device', + Authentication.RegisterDeviceDataKeyRequest + ); + +export const setUserSettingMessage = ( + data: Authentication.IUserSettingRequest +): RestInMessage => + createInMessage(data, 'setting/set_user_setting', Authentication.UserSettingRequest); + +export const requestDeviceAdminApprovalMessage = ( + data: Authentication.IDeviceVerificationRequest +): RestInMessage => + createInMessage(data, 'authentication/request_device_admin_approval', Authentication.DeviceVerificationRequest); export const requestSaltAndIterations = (): RestOutMessage => - createOutMessage('authentication/get_salt_and_iterations', Authentication.Salt) - -export const validateMasterPasswordMessage = (data: Authentication.IMasterPasswordReentryRequest): RestMessage => - createMessage(data, 'authentication/validate_master_password', Authentication.MasterPasswordReentryRequest, Authentication.MasterPasswordReentryResponse, 1) - -export const startLoginMessageFromSessionToken = (data: Authentication.IStartLoginRequest): RestMessage> => - createMessage(data, 'authentication/login_from_existing_session_token', Authentication.StartLoginRequest, Authentication.LoginResponse) - -export const twoFASendDuoMessage = (data: Authentication.ITwoFactorSendPushRequest): RestMessage => - createMessage(data, 'authentication/2fa_send_duo', Authentication.TwoFactorSendPushRequest, Authentication.TwoFactorValidateResponse) - -export const syncDownMessage = (data: Vault.ISyncDownRequest): RestMessage> => - createMessage(data, 'vault/sync_down', Vault.SyncDownRequest, Vault.SyncDownResponse) - -export const getSyncData = (data: Vault.IBreachWatchGetSyncDataRequest): RestMessage => - createMessage(data, 'breachwatch/get_sync_data', Vault.BreachWatchGetSyncDataRequest, Vault.BreachWatchGetSyncDataResponse) - -export const generatePasskeyRegistration = (data: Authentication.IPasskeyRegistrationRequest): RestMessage => - createMessage(data, 'authentication/passkey/generate_registration', Authentication.PasskeyRegistrationRequest, Authentication.PasskeyRegistrationResponse) - -export const verifyPasskeyRegistration = (data: Authentication.IPasskeyRegistrationFinalization): RestInMessage => - createInMessage(data, 'authentication/passkey/verify_registration', Authentication.PasskeyRegistrationFinalization) - -export const generatePasskeyAuthentication = (data: Authentication.IPasskeyAuthenticationRequest): RestMessage => - createMessage(data, 'authentication/passkey/generate_authentication', Authentication.PasskeyAuthenticationRequest, Authentication.PasskeyAuthenticationResponse) - -export const verifyPasskeyAuthentication = (data: Authentication.IPasskeyValidationRequest): RestMessage => - createMessage(data, 'authentication/passkey/verify_authentication', Authentication.PasskeyValidationRequest, Authentication.PasskeyValidationResponse) - -export const getAvailablePasskeys = (data: Authentication.IPasskeyListRequest): RestMessage => - createMessage(data, 'authentication/passkey/get_available_keys', Authentication.PasskeyListRequest, Authentication.PasskeyListResponse) - -export const disablePasskey = (data: Authentication.IUpdatePasskeyRequest): RestInMessage => - createInMessage(data, 'authentication/passkey/disable', Authentication.UpdatePasskeyRequest) - -export const updatePasskeyName = (data: Authentication.IUpdatePasskeyRequest): RestInMessage => - createInMessage(data, 'authentication/passkey/update_friendly_name', Authentication.UpdatePasskeyRequest) - -export const keepAliveMessage = (): RestActionMessage => createActionMessage('keep_alive') - -export const logoutV3Message = (): RestActionMessage => createActionMessage('vault/logout_v3') + createOutMessage('authentication/get_salt_and_iterations', Authentication.Salt); + +export const validateMasterPasswordMessage = ( + data: Authentication.IMasterPasswordReentryRequest +): RestMessage => + createMessage( + data, + 'authentication/validate_master_password', + Authentication.MasterPasswordReentryRequest, + Authentication.MasterPasswordReentryResponse, + 1 + ); + +export const startLoginMessageFromSessionToken = ( + data: Authentication.IStartLoginRequest +): RestMessage> => + createMessage( + data, + 'authentication/login_from_existing_session_token', + Authentication.StartLoginRequest, + Authentication.LoginResponse + ); + +export const twoFASendDuoMessage = ( + data: Authentication.ITwoFactorSendPushRequest +): RestMessage => + createMessage( + data, + 'authentication/2fa_send_duo', + Authentication.TwoFactorSendPushRequest, + Authentication.TwoFactorValidateResponse + ); + +export const syncDownMessage = ( + data: Vault.ISyncDownRequest +): RestMessage> => + createMessage(data, 'vault/sync_down', Vault.SyncDownRequest, Vault.SyncDownResponse); + +export const getSyncData = ( + data: Vault.IBreachWatchGetSyncDataRequest +): RestMessage => + createMessage( + data, + 'breachwatch/get_sync_data', + Vault.BreachWatchGetSyncDataRequest, + Vault.BreachWatchGetSyncDataResponse + ); + +export const generatePasskeyRegistration = ( + data: Authentication.IPasskeyRegistrationRequest +): RestMessage => + createMessage( + data, + 'authentication/passkey/generate_registration', + Authentication.PasskeyRegistrationRequest, + Authentication.PasskeyRegistrationResponse + ); + +export const verifyPasskeyRegistration = ( + data: Authentication.IPasskeyRegistrationFinalization +): RestInMessage => + createInMessage(data, 'authentication/passkey/verify_registration', Authentication.PasskeyRegistrationFinalization); + +export const generatePasskeyAuthentication = ( + data: Authentication.IPasskeyAuthenticationRequest +): RestMessage => + createMessage( + data, + 'authentication/passkey/generate_authentication', + Authentication.PasskeyAuthenticationRequest, + Authentication.PasskeyAuthenticationResponse + ); + +export const verifyPasskeyAuthentication = ( + data: Authentication.IPasskeyValidationRequest +): RestMessage => + createMessage( + data, + 'authentication/passkey/verify_authentication', + Authentication.PasskeyValidationRequest, + Authentication.PasskeyValidationResponse + ); + +export const getAvailablePasskeys = ( + data: Authentication.IPasskeyListRequest +): RestMessage => + createMessage( + data, + 'authentication/passkey/get_available_keys', + Authentication.PasskeyListRequest, + Authentication.PasskeyListResponse + ); + +export const disablePasskey = ( + data: Authentication.IUpdatePasskeyRequest +): RestInMessage => + createInMessage(data, 'authentication/passkey/disable', Authentication.UpdatePasskeyRequest); + +export const updatePasskeyName = ( + data: Authentication.IUpdatePasskeyRequest +): RestInMessage => + createInMessage(data, 'authentication/passkey/update_friendly_name', Authentication.UpdatePasskeyRequest); + +export const keepAliveMessage = (): RestActionMessage => createActionMessage('keep_alive'); + +export const logoutV3Message = (): RestActionMessage => createActionMessage('vault/logout_v3'); // end new login -export const deviceMessage = (data: Authentication.IDeviceRequest): RestMessage => - createMessage(data, 'authentication/get_device_token', Authentication.DeviceRequest, Authentication.DeviceResponse) - -export const preLoginMessage = (data: Authentication.IPreLoginRequest): RestMessage => - createMessage(data, 'authentication/pre_login', Authentication.PreLoginRequest, Authentication.PreLoginResponse) - -export const securityReportMessage = (data: Authentication.ISecurityReportRequest): RestMessage => - createMessage(data, 'enterprise/get_security_report_data', Authentication.SecurityReportRequest, Authentication.SecurityReportResponse) - -export const enterpriseNodeToManagedCompanyMessage = (data: Enterprise.INodeToManagedCompanyRequest): RestInMessage => - createInMessage(data, 'enterprise/node_to_managed_company', Enterprise.NodeToManagedCompanyRequest) - -export const recordTypesGetMessage = (data: Records.IRecordTypesRequest): RestMessage => - createMessage(data, 'vault/get_record_types', Records.RecordTypesRequest, Records.RecordTypesResponse) - -export const recordTypeAddMessage = (data: Records.IRecordType): RestMessage => - createMessage(data, 'vault/record_type_add', Records.RecordType, Records.RecordTypeModifyResponse) - -export const recordTypeUpdateMessage = (data: Records.IRecordType): RestMessage => - createMessage(data, 'vault/record_type_update', Records.RecordType, Records.RecordTypeModifyResponse) - -export const recordTypeDeleteMessage = (data: Records.IRecordType): RestMessage => - createMessage(data, 'vault/record_type_delete', Records.RecordType, Records.RecordTypeModifyResponse) - -export const recordsGetMessage = (data: Records.IRecordsGetRequest): RestMessage => - createMessage(data, 'vault/records_get', Records.RecordsGetRequest, Records.RecordsGetResponse) - -export const getRecordsDetailsMessage = (data: Records.IGetRecordDataWithAccessInfoRequest): RestMessage => - createMessage(data, 'vault/get_records_details', Records.GetRecordDataWithAccessInfoRequest, Records.GetRecordDataWithAccessInfoResponse) - -export const recordsAddMessage = (data: Records.IRecordsAddRequest): RestMessage => - createMessage(data, 'vault/records_add', Records.RecordsAddRequest, Records.RecordsModifyResponse) - -export const recordsUpdateMessage = (data: Records.IRecordsUpdateRequest): RestMessage => - createMessage(data, 'vault/records_update', Records.RecordsUpdateRequest, Records.RecordsModifyResponse) - -export const recordsRevertMessage = (data: Records.IRecordsRevertRequest): RestMessage => - createMessage(data, 'vault/records_revert', Records.RecordsRevertRequest, Records.RecordsModifyResponse) - -export const fileDownloadMessage = (data: Records.IFilesGetRequest): RestMessage => - createMessage(data, 'vault/files_download', Records.FilesGetRequest, Records.FilesGetResponse) - -export const fileAddMessage = (data: Records.IFilesAddRequest): RestMessage => - createMessage(data, 'vault/files_add', Records.FilesAddRequest, Records.FilesAddResponse) - -export const recordsConvert3Message = (data: Records.RecordsConvertToV3Request): RestMessage => - createMessage(data, 'vault/records_convert3', Records.RecordsConvertToV3Request, Records.RecordsModifyResponse) +export const deviceMessage = ( + data: Authentication.IDeviceRequest +): RestMessage => + createMessage(data, 'authentication/get_device_token', Authentication.DeviceRequest, Authentication.DeviceResponse); + +export const preLoginMessage = ( + data: Authentication.IPreLoginRequest +): RestMessage => + createMessage(data, 'authentication/pre_login', Authentication.PreLoginRequest, Authentication.PreLoginResponse); + +export const securityReportMessage = ( + data: Authentication.ISecurityReportRequest +): RestMessage => + createMessage( + data, + 'enterprise/get_security_report_data', + Authentication.SecurityReportRequest, + Authentication.SecurityReportResponse + ); + +export const enterpriseNodeToManagedCompanyMessage = ( + data: Enterprise.INodeToManagedCompanyRequest +): RestInMessage => + createInMessage(data, 'enterprise/node_to_managed_company', Enterprise.NodeToManagedCompanyRequest); + +export const recordTypesGetMessage = ( + data: Records.IRecordTypesRequest +): RestMessage => + createMessage(data, 'vault/get_record_types', Records.RecordTypesRequest, Records.RecordTypesResponse); + +export const recordTypeAddMessage = ( + data: Records.IRecordType +): RestMessage => + createMessage(data, 'vault/record_type_add', Records.RecordType, Records.RecordTypeModifyResponse); + +export const recordTypeUpdateMessage = ( + data: Records.IRecordType +): RestMessage => + createMessage(data, 'vault/record_type_update', Records.RecordType, Records.RecordTypeModifyResponse); + +export const recordTypeDeleteMessage = ( + data: Records.IRecordType +): RestMessage => + createMessage(data, 'vault/record_type_delete', Records.RecordType, Records.RecordTypeModifyResponse); + +export const recordsGetMessage = ( + data: Records.IRecordsGetRequest +): RestMessage => + createMessage(data, 'vault/records_get', Records.RecordsGetRequest, Records.RecordsGetResponse); + +export const getRecordsDetailsMessage = ( + data: Records.IGetRecordDataWithAccessInfoRequest +): RestMessage => + createMessage( + data, + 'vault/get_records_details', + Records.GetRecordDataWithAccessInfoRequest, + Records.GetRecordDataWithAccessInfoResponse + ); + +export const recordsAddMessage = ( + data: Records.IRecordsAddRequest +): RestMessage => + createMessage(data, 'vault/records_add', Records.RecordsAddRequest, Records.RecordsModifyResponse); + +export const recordsUpdateMessage = ( + data: Records.IRecordsUpdateRequest +): RestMessage => + createMessage(data, 'vault/records_update', Records.RecordsUpdateRequest, Records.RecordsModifyResponse); + +export const recordsRevertMessage = ( + data: Records.IRecordsRevertRequest +): RestMessage => + createMessage(data, 'vault/records_revert', Records.RecordsRevertRequest, Records.RecordsModifyResponse); + +export const fileDownloadMessage = ( + data: Records.IFilesGetRequest +): RestMessage => + createMessage(data, 'vault/files_download', Records.FilesGetRequest, Records.FilesGetResponse); + +export const fileAddMessage = ( + data: Records.IFilesAddRequest +): RestMessage => + createMessage(data, 'vault/files_add', Records.FilesAddRequest, Records.FilesAddResponse); + +export const recordsConvert3Message = ( + data: Records.RecordsConvertToV3Request +): RestMessage => + createMessage(data, 'vault/records_convert3', Records.RecordsConvertToV3Request, Records.RecordsModifyResponse); export const recordAddAuditData = (data: Records.AddAuditDataRequest): RestInMessage => - createInMessage(data, 'vault/record_add_audit_data', Records.AddAuditDataRequest) - -export const accountSummaryMessage = (data: AccountSummary.IAccountSummaryRequest): RestMessage => - createMessage(data, 'login/account_summary', AccountSummary.AccountSummaryRequest, AccountSummary.AccountSummaryElements) - -export const sendSessionMessage = (data: Authentication.ISendSessionMessageRequest): RestInMessage => - createInMessage(data, 'pushserver/send_session_message', Authentication.SendSessionMessageRequest) - -export const supportSendNotifications = (data: NotificationCenter.INotificationsSendRequest): RestInMessage => - createInMessage(data, 'support/send_notifications', NotificationCenter.NotificationsSendRequest) - -export const teamsEnterpriseUsersAdd = (data: Enterprise.ITeamsEnterpriseUsersAddRequest): RestMessage => - createMessage(data, 'enterprise/teams_enterprise_users_add', Enterprise.TeamsEnterpriseUsersAddRequest, Enterprise.TeamsEnterpriseUsersAddResponse) - -export const setEncryptedTeamKeyMessage = (data: Enterprise.IEncryptedTeamKeyRequest): RestInMessage => - createInMessage(data, 'enterprise/set_encrypted_team_key', Enterprise.EncryptedTeamKeyRequest) - -export const getBackupMessage = (data: Enterprise.IBackupRequest): RestMessage => - createMessage(data, 'enterprise/get_backup', Enterprise.BackupRequest, Enterprise.BackupResponse) + createInMessage(data, 'vault/record_add_audit_data', Records.AddAuditDataRequest); + +export const accountSummaryMessage = ( + data: AccountSummary.IAccountSummaryRequest +): RestMessage => + createMessage( + data, + 'login/account_summary', + AccountSummary.AccountSummaryRequest, + AccountSummary.AccountSummaryElements + ); + +export const sendSessionMessage = ( + data: Authentication.ISendSessionMessageRequest +): RestInMessage => + createInMessage(data, 'pushserver/send_session_message', Authentication.SendSessionMessageRequest); + +export const supportSendNotifications = ( + data: NotificationCenter.INotificationsSendRequest +): RestInMessage => + createInMessage(data, 'support/send_notifications', NotificationCenter.NotificationsSendRequest); + +export const teamsEnterpriseUsersAdd = ( + data: Enterprise.ITeamsEnterpriseUsersAddRequest +): RestMessage => + createMessage( + data, + 'enterprise/teams_enterprise_users_add', + Enterprise.TeamsEnterpriseUsersAddRequest, + Enterprise.TeamsEnterpriseUsersAddResponse + ); + +export const setEncryptedTeamKeyMessage = ( + data: Enterprise.IEncryptedTeamKeyRequest +): RestInMessage => + createInMessage(data, 'enterprise/set_encrypted_team_key', Enterprise.EncryptedTeamKeyRequest); + +export const getBackupMessage = ( + data: Enterprise.IBackupRequest +): RestMessage => + createMessage(data, 'enterprise/get_backup', Enterprise.BackupRequest, Enterprise.BackupResponse); export const getEnterprisePublicKeyMessage = (): RestOutMessage => - createOutMessage('enterprise/get_enterprise_public_key', BreachWatch.EnterprisePublicKeyResponse) - -export const getEnterpriseDataForUserMessage = (data: Enterprise.IEnterpriseDataRequest): RestMessage => - createMessage(data, 'enterprise/get_enterprise_data_for_user', Enterprise.EnterpriseDataRequest, Enterprise.EnterpriseDataResponse) - -export const setEnterpriseDataKeyMessage = (data: Enterprise.IEnterpriseUserDataKey): RestInMessage => - createInMessage(data, 'enterprise/set_enterprise_user_data_key', Enterprise.EnterpriseUserDataKey) - -export const setV2AlternatePasswordMessage = (data: Authentication.IUserAuthRequest): RestInMessage => - createInMessage(data, 'authentication/set_v2_alternate_password', Authentication.UserAuthRequest) + createOutMessage('enterprise/get_enterprise_public_key', BreachWatch.EnterprisePublicKeyResponse); + +export const getEnterpriseDataForUserMessage = ( + data: Enterprise.IEnterpriseDataRequest +): RestMessage => + createMessage( + data, + 'enterprise/get_enterprise_data_for_user', + Enterprise.EnterpriseDataRequest, + Enterprise.EnterpriseDataResponse + ); + +export const setEnterpriseDataKeyMessage = ( + data: Enterprise.IEnterpriseUserDataKey +): RestInMessage => + createInMessage(data, 'enterprise/set_enterprise_user_data_key', Enterprise.EnterpriseUserDataKey); + +export const setV2AlternatePasswordMessage = ( + data: Authentication.IUserAuthRequest +): RestInMessage => + createInMessage(data, 'authentication/set_v2_alternate_password', Authentication.UserAuthRequest); export const getMasterPasswordSaltMessage = (): RestOutMessage => - createOutMessage('setting/get_master_password_salt', Authentication.Salt) - -export const getPublicKeysMessage = (data: Authentication.IGetPublicKeysRequest): RestMessage => - createMessage(data, 'vault/get_public_keys', Authentication.GetPublicKeysRequest, Authentication.GetPublicKeysResponse) - -export const setEccKeyPairMessage = (data: Authentication.ISetEccKeyPairRequest): RestInMessage => - createInMessage(data, 'vault/set_ecc_key_pair', Authentication.SetEccKeyPairRequest) - -export const applicationAddMessage = (data: Records.IApplicationAddRequest): RestInMessage => - createInMessage(data, 'vault/application_add', Records.ApplicationAddRequest) - -export const addAppShareMessage = (data: Authentication.IAddAppSharesRequest): RestInMessage => - createInMessage(data, 'vault/app_share_add', Authentication.AddAppSharesRequest) - -export const removeAppShareMessage = (data: Authentication.IRemoveAppSharesRequest): RestInMessage => - createInMessage(data, 'vault/app_share_remove', Authentication.RemoveAppSharesRequest) - -export const addAppClientMessage = (data: Authentication.IAddAppClientRequest): RestMessage => - createMessage(data, 'vault/app_client_add', Authentication.AddAppClientRequest, Authentication.Device) - -export const addExternalShareMessage = (data: Authentication.IAddExternalShareRequest): RestMessage => - createMessage(data, 'vault/external_share_add', Authentication.AddExternalShareRequest, Authentication.Device) - -export const removeExternalShareMessage = (data: Authentication.IRemoveAppClientsRequest): RestInMessage => - createInMessage(data, 'vault/external_share_remove', Authentication.RemoveAppClientsRequest) - -export const removeAppClientMessage = (data: Authentication.IRemoveAppClientsRequest): RestInMessage => - createInMessage(data, 'vault/app_client_remove', Authentication.RemoveAppClientsRequest) - -export const getAppInfoMessage = (data: Authentication.IGetAppInfoRequest): RestMessage => - createMessage(data, 'vault/get_app_info', Authentication.GetAppInfoRequest, Authentication.GetAppInfoResponse) + createOutMessage('setting/get_master_password_salt', Authentication.Salt); + +export const getPublicKeysMessage = ( + data: Authentication.IGetPublicKeysRequest +): RestMessage => + createMessage( + data, + 'vault/get_public_keys', + Authentication.GetPublicKeysRequest, + Authentication.GetPublicKeysResponse + ); + +export const setEccKeyPairMessage = ( + data: Authentication.ISetEccKeyPairRequest +): RestInMessage => + createInMessage(data, 'vault/set_ecc_key_pair', Authentication.SetEccKeyPairRequest); + +export const applicationAddMessage = ( + data: Records.IApplicationAddRequest +): RestInMessage => + createInMessage(data, 'vault/application_add', Records.ApplicationAddRequest); + +export const addAppShareMessage = ( + data: Authentication.IAddAppSharesRequest +): RestInMessage => + createInMessage(data, 'vault/app_share_add', Authentication.AddAppSharesRequest); + +export const removeAppShareMessage = ( + data: Authentication.IRemoveAppSharesRequest +): RestInMessage => + createInMessage(data, 'vault/app_share_remove', Authentication.RemoveAppSharesRequest); + +export const addAppClientMessage = ( + data: Authentication.IAddAppClientRequest +): RestMessage => + createMessage(data, 'vault/app_client_add', Authentication.AddAppClientRequest, Authentication.Device); + +export const addExternalShareMessage = ( + data: Authentication.IAddExternalShareRequest +): RestMessage => + createMessage(data, 'vault/external_share_add', Authentication.AddExternalShareRequest, Authentication.Device); + +export const removeExternalShareMessage = ( + data: Authentication.IRemoveAppClientsRequest +): RestInMessage => + createInMessage(data, 'vault/external_share_remove', Authentication.RemoveAppClientsRequest); + +export const removeAppClientMessage = ( + data: Authentication.IRemoveAppClientsRequest +): RestInMessage => + createInMessage(data, 'vault/app_client_remove', Authentication.RemoveAppClientsRequest); + +export const getAppInfoMessage = ( + data: Authentication.IGetAppInfoRequest +): RestMessage => + createMessage(data, 'vault/get_app_info', Authentication.GetAppInfoRequest, Authentication.GetAppInfoResponse); export const getApplicationsSummaryMessage = (): RestOutMessage => - createOutMessage('vault/get_applications_summary', Authentication.GetApplicationsSummaryResponse) - -export const sendShareInviteMessage = (data: Authentication.ISendShareInviteRequest): RestInMessage => - createInMessage(data, 'vault/send_share_invite', Authentication.SendShareInviteRequest) - -export const updateSecurityData = (data: Authentication.ISecurityDataRequest): RestMessage => - createMessage(data, 'enterprise/update_security_data', Authentication.SecurityDataRequest, Authentication.RevisionResponse) - -export const setReusedPasswords = (data: Authentication.IReusedPasswordsRequest): RestInMessage => - createInMessage(data, 'enterprise/set_reused_passwords', Authentication.ReusedPasswordsRequest) - -export const changeToKeyTypeOne = (data: Authentication.IChangeToKeyTypeOne): RestInMessage => - createInMessage(data, 'vault/change_to_key_type_one', Authentication.ChangeToKeyTypeOne) + createOutMessage('vault/get_applications_summary', Authentication.GetApplicationsSummaryResponse); + +export const sendShareInviteMessage = ( + data: Authentication.ISendShareInviteRequest +): RestInMessage => + createInMessage(data, 'vault/send_share_invite', Authentication.SendShareInviteRequest); + +export const updateSecurityData = ( + data: Authentication.ISecurityDataRequest +): RestMessage => + createMessage( + data, + 'enterprise/update_security_data', + Authentication.SecurityDataRequest, + Authentication.RevisionResponse + ); + +export const setReusedPasswords = ( + data: Authentication.IReusedPasswordsRequest +): RestInMessage => + createInMessage(data, 'enterprise/set_reused_passwords', Authentication.ReusedPasswordsRequest); + +export const changeToKeyTypeOne = ( + data: Authentication.IChangeToKeyTypeOne +): RestInMessage => + createInMessage(data, 'vault/change_to_key_type_one', Authentication.ChangeToKeyTypeOne); /* -- BI -- */ -export const customerCapture = (data: BI.ICustomerCaptureRequest): RestMessage => - createMessage(data, 'bi_api/rest/browser_extension/customer_capture', BI.CustomerCaptureRequest, BI.CustomerCaptureResponse) +export const customerCapture = ( + data: BI.ICustomerCaptureRequest +): RestMessage => + createMessage( + data, + 'bi_api/rest/browser_extension/customer_capture', + BI.CustomerCaptureRequest, + BI.CustomerCaptureResponse + ); /* -- BreachWatch -- */ export const breachWatchInitialize = (): RestOutMessage => - createOutMessage('breachwatch/initialize', BreachWatch.BreachWatchTokenResponse) - -export const breachWatchSaveToken = (data: BreachWatch.IBreachWatchTokenRequest): RestInMessage => - createInMessage(data,'breachwatch/save_token', BreachWatch.BreachWatchTokenRequest) - -export const breachWatchAnonymizeToken = (data: BreachWatch.IBreachWatchTokenRequest): RestMessage => - createMessage(data, 'breachwatch/anonymize_token', BreachWatch.BreachWatchTokenRequest, BreachWatch.AnonymizedTokenResponse) - -export const breachWatchStatus = (data: BreachWatch.IBreachWatchStatusRequest): RestMessage => - createMessage(data, 'breachwatch/status', BreachWatch.BreachWatchStatusRequest, BreachWatch.BreachWatchStatusResponse) - -export const breachWatchUpdateRecordData = (data: BreachWatch.IBreachWatchUpdateRequest): RestMessage => - createMessage(data, 'breachwatch/update_record_data', BreachWatch.BreachWatchUpdateRequest, BreachWatch.BreachWatchUpdateResponse) + createOutMessage('breachwatch/initialize', BreachWatch.BreachWatchTokenResponse); + +export const breachWatchSaveToken = ( + data: BreachWatch.IBreachWatchTokenRequest +): RestInMessage => + createInMessage(data, 'breachwatch/save_token', BreachWatch.BreachWatchTokenRequest); + +export const breachWatchAnonymizeToken = ( + data: BreachWatch.IBreachWatchTokenRequest +): RestMessage => + createMessage( + data, + 'breachwatch/anonymize_token', + BreachWatch.BreachWatchTokenRequest, + BreachWatch.AnonymizedTokenResponse + ); + +export const breachWatchStatus = ( + data: BreachWatch.IBreachWatchStatusRequest +): RestMessage => + createMessage( + data, + 'breachwatch/status', + BreachWatch.BreachWatchStatusRequest, + BreachWatch.BreachWatchStatusResponse + ); + +export const breachWatchUpdateRecordData = ( + data: BreachWatch.IBreachWatchUpdateRequest +): RestMessage => + createMessage( + data, + 'breachwatch/update_record_data', + BreachWatch.BreachWatchUpdateRequest, + BreachWatch.BreachWatchUpdateResponse + ); export const getCheckoutTokenMessage = (): RestOutMessage => - createOutMessage('checkouttoken/get_checkout_token', Tokens.CheckOutTokenResponse) - + createOutMessage('checkouttoken/get_checkout_token', Tokens.CheckOutTokenResponse); /* -- SERVICE LOGGER -- */ -export const serviceLoggerGetMessage = (data: ServiceLogger.IServiceLogGetRequest): RestMessage => - createMessage(data, 'logger/get', ServiceLogger.ServiceLogGetRequest, ServiceLogger.ServiceLogResponse) - +export const serviceLoggerGetMessage = ( + data: ServiceLogger.IServiceLogGetRequest +): RestMessage => + createMessage(data, 'logger/get', ServiceLogger.ServiceLogGetRequest, ServiceLogger.ServiceLogResponse); /* -- Cloud SSO Connect -- */ -export const ssoSamlMessage = (endpoint: string): RestActionMessage => - createActionMessage('sso/saml/' + endpoint) +export const ssoSamlMessage = (endpoint: string): RestActionMessage => createActionMessage('sso/saml/' + endpoint); -export const ssoConfigMessage = (endpoint: string): RestActionMessage => - createActionMessage('sso/config/' + endpoint) +export const ssoConfigMessage = (endpoint: string): RestActionMessage => createActionMessage('sso/config/' + endpoint); -export const ssoLoginMessageWithUrl = (url): RestActionMessage => - createActionMessage(url) +export const ssoLoginMessageWithUrl = (url): RestActionMessage => createActionMessage(url); export const ssoLogoutMessage = (serviceProviderId): RestActionMessage => - createActionMessage('sso/saml/logout/' + serviceProviderId) + createActionMessage('sso/saml/logout/' + serviceProviderId); export const ssoGetMetadataMessage = (serviceProviderId): RestActionMessage => - createActionMessage('sso/saml/metadata/' + serviceProviderId) - -export const ssoUploadIdpMetadataMessage = (data: SsoCloud.ISsoCloudIdpMetadataRequest): RestMessage => - createMessage(data, 'sso/config/sso_cloud_upload_idp_metadata', SsoCloud.SsoCloudIdpMetadataRequest, SsoCloud.SsoCloudConfigurationValidationResponse) - -export const ssoCloudServiceProviderUpdateRequestMessage = (data: SsoCloud.ISsoCloudServiceProviderUpdateRequest): RestMessage => - createMessage(data, 'sso/config/sso_cloud_sp_configuration_set', SsoCloud.SsoCloudServiceProviderUpdateRequest, SsoCloud.SsoCloudConfigurationResponse) - -export const ssoCloudConfigurationRequestMessage = (data: SsoCloud.ISsoCloudConfigurationRequest, url: string): RestMessage => - createMessage(data, url, SsoCloud.SsoCloudConfigurationRequest, SsoCloud.SsoCloudConfigurationResponse) - -export const ssoCloudLogRequestMessage = (data: SsoCloud.ISsoCloudLogRequest, url: string): RestMessage => - createMessage(data, url, SsoCloud.SsoCloudLogRequest, ServiceLogger.ServiceLogResponse) - -export const ssoCloudSAMLLogRequestMessage = (data: SsoCloud.ISsoCloudSAMLLogRequest, url: string): RestMessage => - createMessage(data, url, SsoCloud.SsoCloudSAMLLogRequest, SsoCloud.SsoCloudSAMLLogResponse) - -export const ssoCloudServiceProviderConfigurationListRequestMessage = (data: SsoCloud.ISsoCloudServiceProviderConfigurationListRequest): RestMessage => - createMessage(data, 'sso/config/sso_cloud_sp_configuration_get', SsoCloud.SsoCloudServiceProviderConfigurationListRequest, SsoCloud.SsoCloudServiceProviderConfigurationListResponse) - -export const ssoServiceProviderRequestMessage = (data: Authentication.ISsoServiceProviderRequest): RestMessage> => - createMessage(data, 'enterprise/get_sso_service_provider', Authentication.SsoServiceProviderRequest, Authentication.SsoServiceProviderResponse) - -export const ssoCloudValidationRequestMessage = (data: SsoCloud.ISsoCloudConfigurationValidationRequest, url: string): RestMessage => - createMessage(data, url, SsoCloud.SsoCloudConfigurationValidationRequest, SsoCloud.SsoCloudConfigurationValidationResponse) - -export const switchAccountListAuthenticated = () => createOutMessage('/authentication/switch_account_list_authenticated', Authentication.SwitchListResponse) - -export const switchAccountListRemoved = (data: Authentication.LoginAsUserRequest): RestInMessage => createInMessage(data, '/authentication/switch_account_list_remove', Authentication.LoginAsUserRequest) - -export const switchAccountFromAuthenticated = (data: Authentication.LoginAsUserRequest) => createMessage(data, '/authentication/switch_account_from_authenticated', Authentication.LoginAsUserRequest, Authentication.LoginResponse) - + createActionMessage('sso/saml/metadata/' + serviceProviderId); + +export const ssoUploadIdpMetadataMessage = ( + data: SsoCloud.ISsoCloudIdpMetadataRequest +): RestMessage => + createMessage( + data, + 'sso/config/sso_cloud_upload_idp_metadata', + SsoCloud.SsoCloudIdpMetadataRequest, + SsoCloud.SsoCloudConfigurationValidationResponse + ); + +export const ssoCloudServiceProviderUpdateRequestMessage = ( + data: SsoCloud.ISsoCloudServiceProviderUpdateRequest +): RestMessage => + createMessage( + data, + 'sso/config/sso_cloud_sp_configuration_set', + SsoCloud.SsoCloudServiceProviderUpdateRequest, + SsoCloud.SsoCloudConfigurationResponse + ); + +export const ssoCloudConfigurationRequestMessage = ( + data: SsoCloud.ISsoCloudConfigurationRequest, + url: string +): RestMessage => + createMessage(data, url, SsoCloud.SsoCloudConfigurationRequest, SsoCloud.SsoCloudConfigurationResponse); + +export const ssoCloudLogRequestMessage = ( + data: SsoCloud.ISsoCloudLogRequest, + url: string +): RestMessage => + createMessage(data, url, SsoCloud.SsoCloudLogRequest, ServiceLogger.ServiceLogResponse); + +export const ssoCloudSAMLLogRequestMessage = ( + data: SsoCloud.ISsoCloudSAMLLogRequest, + url: string +): RestMessage => + createMessage(data, url, SsoCloud.SsoCloudSAMLLogRequest, SsoCloud.SsoCloudSAMLLogResponse); + +export const ssoCloudServiceProviderConfigurationListRequestMessage = ( + data: SsoCloud.ISsoCloudServiceProviderConfigurationListRequest +): RestMessage< + SsoCloud.ISsoCloudServiceProviderConfigurationListRequest, + SsoCloud.ISsoCloudServiceProviderConfigurationListResponse +> => + createMessage( + data, + 'sso/config/sso_cloud_sp_configuration_get', + SsoCloud.SsoCloudServiceProviderConfigurationListRequest, + SsoCloud.SsoCloudServiceProviderConfigurationListResponse + ); + +export const ssoServiceProviderRequestMessage = ( + data: Authentication.ISsoServiceProviderRequest +): RestMessage> => + createMessage( + data, + 'enterprise/get_sso_service_provider', + Authentication.SsoServiceProviderRequest, + Authentication.SsoServiceProviderResponse + ); + +export const ssoCloudValidationRequestMessage = ( + data: SsoCloud.ISsoCloudConfigurationValidationRequest, + url: string +): RestMessage => + createMessage( + data, + url, + SsoCloud.SsoCloudConfigurationValidationRequest, + SsoCloud.SsoCloudConfigurationValidationResponse + ); + +export const switchAccountListAuthenticated = () => + createOutMessage('/authentication/switch_account_list_authenticated', Authentication.SwitchListResponse); + +export const switchAccountListRemoved = ( + data: Authentication.LoginAsUserRequest +): RestInMessage => + createInMessage(data, '/authentication/switch_account_list_remove', Authentication.LoginAsUserRequest); + +export const switchAccountFromAuthenticated = (data: Authentication.LoginAsUserRequest) => + createMessage( + data, + '/authentication/switch_account_from_authenticated', + Authentication.LoginAsUserRequest, + Authentication.LoginResponse + ); /* -- Keeper Automator -- */ - -export const automatorApproveDeviceMessage = (data: Automator.ApproveDeviceRequest, url: string): RestMessage => - createMessage(data, url, Automator.ApproveDeviceRequest, Automator.AutomatorResponse) - -export const automatorAdminCreateMessage = (data: Automator.AdminCreateAutomatorRequest, url: string): RestMessage => - createMessage(data, url, Automator.AdminCreateAutomatorRequest, Automator.AdminResponse) - -export const automatorAdminDeleteMessage = (data: Automator.AdminDeleteAutomatorRequest, url: string): RestMessage => - createMessage(data, url, Automator.AdminDeleteAutomatorRequest, Automator.AdminResponse) - -export const automatorAdminEditMessage = (data: Automator.AdminEditAutomatorRequest, url: string): RestMessage => - createMessage(data, url, Automator.AdminEditAutomatorRequest, Automator.AdminResponse) - -export const automatorAdminEnableMessage = (data: Automator.AdminEnableAutomatorRequest, url: string): RestMessage => - createMessage(data, url, Automator.AdminEnableAutomatorRequest, Automator.AdminResponse) - -export const automatorAdminGetMessage = (data: Automator.AdminGetAutomatorRequest, url: string): RestMessage => - createMessage(data, url, Automator.AdminGetAutomatorRequest, Automator.AdminResponse) - -export const automatorAdminGetAllOnNodeMessage = (data: Automator.AdminGetAutomatorsOnNodeRequest, url: string): RestMessage => - createMessage(data, url, Automator.AdminGetAutomatorsOnNodeRequest, Automator.AdminResponse) - -export const automatorAdminGetAllForEnterpriseMessage = (data: Automator.AdminGetAutomatorsForEnterpriseRequest, url: string): RestMessage => - createMessage(data, url, Automator.AdminGetAutomatorsForEnterpriseRequest, Automator.AdminResponse) - -export const automatorAdminInitializeMessage = (data: Automator.AdminInitializeAutomatorRequest, url: string): RestMessage => - createMessage(data, url, Automator.AdminInitializeAutomatorRequest, Automator.AdminResponse) - -export const automatorAdminResetMessage = (data: Automator.AdminResetAutomatorRequest, url: string): RestMessage => - createMessage(data, url, Automator.AdminResetAutomatorRequest, Automator.AdminResponse) +export const automatorApproveDeviceMessage = ( + data: Automator.ApproveDeviceRequest, + url: string +): RestMessage => + createMessage(data, url, Automator.ApproveDeviceRequest, Automator.AutomatorResponse); + +export const automatorAdminCreateMessage = ( + data: Automator.AdminCreateAutomatorRequest, + url: string +): RestMessage => + createMessage(data, url, Automator.AdminCreateAutomatorRequest, Automator.AdminResponse); + +export const automatorAdminDeleteMessage = ( + data: Automator.AdminDeleteAutomatorRequest, + url: string +): RestMessage => + createMessage(data, url, Automator.AdminDeleteAutomatorRequest, Automator.AdminResponse); + +export const automatorAdminEditMessage = ( + data: Automator.AdminEditAutomatorRequest, + url: string +): RestMessage => + createMessage(data, url, Automator.AdminEditAutomatorRequest, Automator.AdminResponse); + +export const automatorAdminEnableMessage = ( + data: Automator.AdminEnableAutomatorRequest, + url: string +): RestMessage => + createMessage(data, url, Automator.AdminEnableAutomatorRequest, Automator.AdminResponse); + +export const automatorAdminGetMessage = ( + data: Automator.AdminGetAutomatorRequest, + url: string +): RestMessage => + createMessage(data, url, Automator.AdminGetAutomatorRequest, Automator.AdminResponse); + +export const automatorAdminGetAllOnNodeMessage = ( + data: Automator.AdminGetAutomatorsOnNodeRequest, + url: string +): RestMessage => + createMessage(data, url, Automator.AdminGetAutomatorsOnNodeRequest, Automator.AdminResponse); + +export const automatorAdminGetAllForEnterpriseMessage = ( + data: Automator.AdminGetAutomatorsForEnterpriseRequest, + url: string +): RestMessage => + createMessage(data, url, Automator.AdminGetAutomatorsForEnterpriseRequest, Automator.AdminResponse); + +export const automatorAdminInitializeMessage = ( + data: Automator.AdminInitializeAutomatorRequest, + url: string +): RestMessage => + createMessage(data, url, Automator.AdminInitializeAutomatorRequest, Automator.AdminResponse); + +export const automatorAdminResetMessage = ( + data: Automator.AdminResetAutomatorRequest, + url: string +): RestMessage => + createMessage(data, url, Automator.AdminResetAutomatorRequest, Automator.AdminResponse); diff --git a/keeperapi/src/socket.ts b/keeperapi/src/socket.ts index 5c3737d..1969f37 100644 --- a/keeperapi/src/socket.ts +++ b/keeperapi/src/socket.ts @@ -1,9 +1,9 @@ -import { platform } from "./platform" +import { platform } from './platform'; export type CloseReason = { - code: number, - reason: CloseReasonMessage -} + code: number; + reason: CloseReasonMessage; +}; enum CloseReasonCode { CANNOT_ACCEPT = 1003, @@ -13,286 +13,294 @@ enum CloseReasonCode { } type CloseReasonMessage = { - close_reason:string - key_id?:number -} + close_reason: string; + key_id?: number; +}; type SocketMessage = { - event: 'received_totp' - type: 'dna' - passcode: string -} + event: 'received_totp'; + type: 'dna'; + passcode: string; +}; export type SocketProxy = { - onOpen: (callback: () => void) => void - close: () => void - onClose: (callback: (e:Event) => void) => void - onError: (callback: (e: Event | Error) => void) => void - onMessage: (callback: (e: Uint8Array) => void) => void - send: (message: any) => void - messageQueue: any[] // Since messages are type any here, make this an any array -} + onOpen: (callback: () => void) => void; + close: () => void; + onClose: (callback: (e: Event) => void) => void; + onError: (callback: (e: Event | Error) => void) => void; + onMessage: (callback: (e: Uint8Array) => void) => void; + send: (message: any) => void; + messageQueue: any[]; // Since messages are type any here, make this an any array +}; export class SocketListener { private socket?: SocketProxy; - private url: string - private getConnectionRequest?: (Uint8Array) => Promise + private url: string; + private getConnectionRequest?: (Uint8Array) => Promise; // Listeners that receive all messages - private messageListeners: Array<(data: any) => void> + private messageListeners: Array<(data: any) => void>; // Listeners that receive a single message private singleMessageListeners: Array<{ - resolve: (data: any) => void, - reject: (errorMessage: string) => void - }> + resolve: (data: any) => void; + reject: (errorMessage: string) => void; + }>; // Listeners that receive all messages - private closeListeners: Array<(data: any) => void> + private closeListeners: Array<(data: any) => void>; // Listeners that receive a single message private singleCloseListeners: Array<{ - resolve: (data: any) => void, - reject: (errorMessage: string) => void - }> + resolve: (data: any) => void; + reject: (errorMessage: string) => void; + }>; // Listeners that signal a re-connected socket - private onOpenListeners: Array<() => void> + private onOpenListeners: Array<() => void>; // The messageSessionUid - private messageSessionUid?: Uint8Array - - private isConnected: boolean - private reconnectTimeout?: ReturnType - private currentBackoffSeconds: number = 0 - private isClosedByClient: boolean - - constructor(url: string, messageSessionUid?: Uint8Array, getConnectionRequest?: (messageSessionUid:Uint8Array) => Promise) { - console.log('Connecting to ' + url) - - this.url = url - this.closeListeners = [] - this.singleCloseListeners = [] - this.messageListeners = [] - this.singleMessageListeners = [] - this.onOpenListeners = [] - this.currentBackoffSeconds = this.getBaseReconnectionInterval() - this.isClosedByClient = false - this.isConnected = false - if (getConnectionRequest) this.getConnectionRequest = getConnectionRequest - - if (messageSessionUid){ - this.messageSessionUid = messageSessionUid + private messageSessionUid?: Uint8Array; + + private isConnected: boolean; + private reconnectTimeout?: ReturnType; + private currentBackoffSeconds: number = 0; + private isClosedByClient: boolean; + + constructor( + url: string, + messageSessionUid?: Uint8Array, + getConnectionRequest?: (messageSessionUid: Uint8Array) => Promise + ) { + console.log('Connecting to ' + url); + + this.url = url; + this.closeListeners = []; + this.singleCloseListeners = []; + this.messageListeners = []; + this.singleMessageListeners = []; + this.onOpenListeners = []; + this.currentBackoffSeconds = this.getBaseReconnectionInterval(); + this.isClosedByClient = false; + this.isConnected = false; + if (getConnectionRequest) this.getConnectionRequest = getConnectionRequest; + + if (messageSessionUid) { + this.messageSessionUid = messageSessionUid; } } - async createWebsocket(messageSessionUid?:Uint8Array) { + async createWebsocket(messageSessionUid?: Uint8Array) { if (this.getConnectionRequest && messageSessionUid) { - const connectionRequest = await this.getConnectionRequest(messageSessionUid) - this.socket = platform.createWebsocket(`${this.url}/${connectionRequest}`) + const connectionRequest = await this.getConnectionRequest(messageSessionUid); + this.socket = platform.createWebsocket(`${this.url}/${connectionRequest}`); } else { - this.socket = platform.createWebsocket(this.url) + this.socket = platform.createWebsocket(this.url); } this.socket!.onOpen(() => { - console.log('socket opened') + console.log('socket opened'); if (this.reconnectTimeout) { - clearTimeout(this.reconnectTimeout) + clearTimeout(this.reconnectTimeout); } - this.currentBackoffSeconds = this.getBaseReconnectionInterval() - this.handleOnOpen() - }) + this.currentBackoffSeconds = this.getBaseReconnectionInterval(); + this.handleOnOpen(); + }); this.socket!.onClose(async (event: Event) => { if (this.isClosedByClient) { - return + return; } - let reason - this.isConnected = false + let reason; + this.isConnected = false; try { - reason = JSON.parse(event['reason']) + reason = JSON.parse(event['reason']); } catch { - console.log('Connection closed - no close reason.') - this.handleClose({code: 0, reason: {close_reason: 'No close reason provided'}}) - this.reconnect() - return + console.log('Connection closed - no close reason.'); + this.handleClose({ code: 0, reason: { close_reason: 'No close reason provided' } }); + this.reconnect(); + return; } - switch (event['code']){ + switch (event['code']) { case CloseReasonCode.CANNOT_ACCEPT: // Exact messages that can come from CANNOT_ACCEPT: // - Push server is in progress of shutting down // - Push server is not registered with KA // - Cannot process encrypted message.xxxx - if(reason && reason.close_reason.includes('Push server')){ + if (reason && reason.close_reason.includes('Push server')) { // Tell User to try again - this.handleClose({code:event['code'], reason}) + this.handleClose({ code: event['code'], reason }); } else { // this would be an internal error and shouldnt reach here in production - console.error('Incorrect internal error: ', reason.close_reason) + console.error('Incorrect internal error: ', reason.close_reason); } - break + break; case CloseReasonCode.NOT_CONSISTENT: // Error Message: device timestamp: {time} is off by {off_time} //Tell User to adjust their system clock - this.handleClose({ code: event['code'], reason }) - break + this.handleClose({ code: event['code'], reason }); + break; case CloseReasonCode.VIOLATED_POLICY: // Error Message: duplicate messageSessionUid=${messageSessionUid} // Relogin if this happens - this.handleClose({ code: event['code'], reason }) - break + this.handleClose({ code: event['code'], reason }); + break; case CloseReasonCode.TRY_AGAIN_LATER: // Error Message: throttled messageSessionUid=${messageSessionUid} //Tell User to try again in 1 minute - this.handleClose({ code: event['code'], reason }) - break + this.handleClose({ code: event['code'], reason }); + break; default: if (!this.isClosedByClient) { - this.reconnect() + this.reconnect(); } } - }) + }); this.socket!.onError((e: Event | Error) => { - console.log('socket error: ' + e) - }) - this.socket!.onMessage(e => { - this.handleMessage(e) - }) + console.log('socket error: ' + e); + }); + this.socket!.onMessage((e) => { + this.handleMessage(e); + }); - this.isConnected = true + this.isConnected = true; } registerLogin(sessionToken: string) { - if (!this.socket) throw new Error('Socket not available') - this.socket.send(sessionToken) + if (!this.socket) throw new Error('Socket not available'); + this.socket.send(sessionToken); } onOpen(callback: () => void): void { - this.onOpenListeners.push(callback) + this.onOpenListeners.push(callback); } onClose(callback: () => void): void { - if (!this.socket) throw new Error('Socket not available') - this.closeListeners.push(callback) + if (!this.socket) throw new Error('Socket not available'); + this.closeListeners.push(callback); } onError(callback: () => void): void { - if (!this.socket) throw new Error('Socket not available') - this.socket.onError(callback) + if (!this.socket) throw new Error('Socket not available'); + this.socket.onError(callback); } private handleOnOpen() { for (let callback of this.onOpenListeners) { - callback() + callback(); } } private handleMessage(messageData: Uint8Array): void { for (let callback of this.messageListeners) { - callback(messageData) + callback(messageData); } - for (let {resolve} of this.singleMessageListeners) { - resolve(messageData) + for (let { resolve } of this.singleMessageListeners) { + resolve(messageData); } - this.singleMessageListeners.length = 0 + this.singleMessageListeners.length = 0; } - private handleClose(messageData: {code: number, reason:CloseReasonMessage}): void { + private handleClose(messageData: { code: number; reason: CloseReasonMessage }): void { for (let callback of this.closeListeners) { - callback(messageData) + callback(messageData); } for (let { resolve } of this.singleCloseListeners) { - resolve(messageData) + resolve(messageData); } - - this.singleCloseListeners.length = 0 + + this.singleCloseListeners.length = 0; } onPushMessage(callback: (data: any) => void): void { - this.messageListeners.push(callback) + this.messageListeners.push(callback); } onCloseMessage(callback: (data: any) => void): void { - this.closeListeners.push(callback) + this.closeListeners.push(callback); } async getPushMessage(): Promise { - console.log('Awaiting web socket message...') + console.log('Awaiting web socket message...'); return new Promise((resolve, reject) => { - this.singleMessageListeners.push({resolve, reject}) - }) + this.singleMessageListeners.push({ resolve, reject }); + }); } private getBaseReconnectionInterval(): number { if (this.currentBackoffSeconds === 0) { - return Math.random() * 5 + return Math.random() * 5; } else { - return this.currentBackoffSeconds + return this.currentBackoffSeconds; } } private reconnect() { - console.log(`Reconnecting websocket in ${this.currentBackoffSeconds.toFixed(2)} seconds...`) + console.log(`Reconnecting websocket in ${this.currentBackoffSeconds.toFixed(2)} seconds...`); // schedule next reconnect attempt if (this.reconnectTimeout) { - clearTimeout(this.reconnectTimeout) + clearTimeout(this.reconnectTimeout); } this.reconnectTimeout = setTimeout(() => { - this.createWebsocket(this.messageSessionUid) - }, this.currentBackoffSeconds * 1000) + this.createWebsocket(this.messageSessionUid); + }, this.currentBackoffSeconds * 1000); - this.currentBackoffSeconds = Math.min(this.currentBackoffSeconds * 2, 60) // Cap at 1 min, as suggested by docs + this.currentBackoffSeconds = Math.min(this.currentBackoffSeconds * 2, 60); // Cap at 1 min, as suggested by docs } disconnect() { - this.isConnected = false - this.isClosedByClient = true - this.socket?.close() - this.socket = undefined - this.messageListeners.length = 0 + this.isConnected = false; + this.isClosedByClient = true; + this.socket?.close(); + this.socket = undefined; + this.messageListeners.length = 0; - this.currentBackoffSeconds = Math.random() * 5 + this.currentBackoffSeconds = Math.random() * 5; if (this.reconnectTimeout) { - clearTimeout(this.reconnectTimeout) + clearTimeout(this.reconnectTimeout); } - this.singleMessageListeners.length = 0 + this.singleMessageListeners.length = 0; } - getIsConnected(){ - return this.isConnected + getIsConnected() { + return this.isConnected; } } // Use this to create a websocket. Our way of creating transmission keys is asynchronous and the constructor of the socket required -// these transmission keys to be made before operating on the socket. Instead use a helper to still create the object from the +// these transmission keys to be made before operating on the socket. Instead use a helper to still create the object from the // class and also create the necessary websocket before allowing other functions to operate on this. -export async function createAsyncSocket(url: string, messageSessionUid?: Uint8Array, getConnectionRequest?: (messageSessionUid:Uint8Array) => Promise):Promise{ - const socket = new SocketListener(url, messageSessionUid, getConnectionRequest) - await socket.createWebsocket(messageSessionUid) - return socket +export async function createAsyncSocket( + url: string, + messageSessionUid?: Uint8Array, + getConnectionRequest?: (messageSessionUid: Uint8Array) => Promise +): Promise { + const socket = new SocketListener(url, messageSessionUid, getConnectionRequest); + await socket.createWebsocket(messageSessionUid); + return socket; } -export function socketSendMessage(message: any, socket: WebSocket, createdSocket:any){ +export function socketSendMessage(message: any, socket: WebSocket, createdSocket: any) { switch (socket.readyState) { - case 0:// CONNECTING - if (createdSocket.messageQueue.indexOf(message) === -1) createdSocket.messageQueue.push(message) + case 0: // CONNECTING + if (createdSocket.messageQueue.indexOf(message) === -1) createdSocket.messageQueue.push(message); break; - case 1:// OPEN - if (createdSocket.messageQueue.indexOf(message) === -1) createdSocket.messageQueue.push(message) + case 1: // OPEN + if (createdSocket.messageQueue.indexOf(message) === -1) createdSocket.messageQueue.push(message); if (createdSocket.messageQueue.length > 0) { for (let counter = 0; counter < createdSocket.messageQueue.length; counter++) { - socket.send(createdSocket.messageQueue[counter]) + socket.send(createdSocket.messageQueue[counter]); } } - createdSocket.messageQueue.length = 0 + createdSocket.messageQueue.length = 0; break; - case 2:// CLOSING - case 3:// CLOSED - createdSocket.messageQueue.length = 0 - console.error('Trying to send a message while in the CLOSING or CLOSED state') + case 2: // CLOSING + case 3: // CLOSED + createdSocket.messageQueue.length = 0; + console.error('Trying to send a message while in the CLOSING or CLOSED state'); break; } } diff --git a/keeperapi/src/transmissionKeys.ts b/keeperapi/src/transmissionKeys.ts index 817e7d9..12280b5 100644 --- a/keeperapi/src/transmissionKeys.ts +++ b/keeperapi/src/transmissionKeys.ts @@ -1,25 +1,13 @@ -import { MlKemVariant } from "./qrc" +import { MlKemVariant } from './qrc'; -export type AllowedEcKeyIds = -| 7 -| 8 -| 9 -| 10 -| 11 -| 12 -| 13 -| 14 -| 15 -| 16 -| 17 -| 18 +export type AllowedEcKeyIds = 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18; -export function isAllowedEcKeyId(num:number):num is AllowedEcKeyIds { - return num >= 7 && num <= 18 +export function isAllowedEcKeyId(num: number): num is AllowedEcKeyIds { + return num >= 7 && num <= 18; } -export function getKeeperKeys(fct:(source: string) => Uint8Array){ - let keyNumber = 7 +export function getKeeperKeys(fct: (source: string) => Uint8Array) { + let keyNumber = 7; return [ 'BK9w6TZFxE6nFNbMfIpULCup2a8xc6w2tUTABjxny7yFmxW0dAEojwC6j6zb5nTlmb1dAx8nwo3qF7RPYGmloRM', 'BKnhy0obglZJK-igwthNLdknoSXRrGB-mvFRzyb_L-DKKefWjYdFD2888qN1ROczz4n3keYSfKz9Koj90Z6w_tQ', @@ -32,34 +20,30 @@ export function getKeeperKeys(fct:(source: string) => Uint8Array){ 'BDKyWBvLbyZ-jMueORl3JwJnnEpCiZdN7yUvT0vOyjwpPBCDf6zfL4RWzvSkhAAFnwOni_1tQSl8dfXHbXqXsQ8', 'BDXyZZnrl0tc2jdC5I61JjwkjK2kr7uet9tZjt8StTiJTAQQmnVOYBgbtP08PWDbecxnHghx3kJ8QXq1XE68y8c', 'BFX68cb97m9_sweGdOVavFM3j5ot6gveg6xT4BtGahfGhKib-zdZyO9pwvv1cBda9ahkSzo1BQ4NVXp9qRyqVGU', - 'BNhngQqTT1bPKxGuB6FhbPTAeNVFl8PKGGSGo5W06xWIReutm6ix6JPivqnbvkydY-1uDQTr-5e6t70G01Bb5JA' - ].reduce((keys:Uint8Array[], key) => { - keys[keyNumber++] = fct(key) - return keys - }, []) + 'BNhngQqTT1bPKxGuB6FhbPTAeNVFl8PKGGSGo5W06xWIReutm6ix6JPivqnbvkydY-1uDQTr-5e6t70G01Bb5JA', + ].reduce((keys: Uint8Array[], key) => { + keys[keyNumber++] = fct(key); + return keys; + }, []); } -export type AllowedMlKemKeyIds = -| 100 -| 107 -| 124 -| 136 +export type AllowedMlKemKeyIds = 100 | 107 | 124 | 136; export function isAllowedMlKemKeyId(num: number): num is AllowedMlKemKeyIds { - return [100, 107, 124, 136].includes(num) + return [100, 107, 124, 136].includes(num); } export function getKeeperMlKemKeyVariant(keyId: AllowedMlKemKeyIds): MlKemVariant { - switch (keyId) { - case 100: - return MlKemVariant.ML_KEM_768 - case 107: - case 124: - case 136: - return MlKemVariant.ML_KEM_1024 - default: - throw new Error(`Unsupported ML-KEM key ID: ${keyId}`) - } + switch (keyId) { + case 100: + return MlKemVariant.ML_KEM_768; + case 107: + case 124: + case 136: + return MlKemVariant.ML_KEM_1024; + default: + throw new Error(`Unsupported ML-KEM key ID: ${keyId}`); + } } // ML-KEM public keys for QRC encryption @@ -68,17 +52,23 @@ export function getKeeperMlKemKeys(fct: (source: string) => Uint8Array): Uint8Ar // DEV ML-KEM-768 mlKemKeys[100] = fct( - "LS0tLS1CRUdJTiBQVUJMSUMgS0VZLS0tLS0KTUlJRXNqQUxCZ2xnaGtnQlpRTUVCQUlEZ2dTaEFLYlFCS0ZSa3JRNkFnTjNvcGhuUXFHREpLZ1VQeDR6YmJYUgp0cDBJSEp1a052R1lIUnUwcVBicGx6YWdFdEJaRkVEQnNucUN6SnlZQ1R3d1JvT1VOaTdNSVJIQU5sRmtmYmt4Clg3S2txSVZHQVRkWVVzU25rcjZNSlNGR3VLMERBQnZtdXdUbVFld0FQU1VoWERIcU1USUpUQm1ScmthV2JSd0YKbVRRaXRLM3FVcXRidHF6bVdxVklCajVFZ0VYb3czMHdVSXNEbEwrSmNnOXp0bzBuVDh6VHBjK2hySFNuTUJraApuUTZZQnJWa1BiYnBXN0puQnlVV2NXT3NZcnJEQkpxWkNMTWtxRS96Qk4zZ1Q4NE1WQXNxaEdGOG5DZ1FiNGhTCmhQclZJanBRUWhGenBIcGtHQzlzVzI5TUxXdFpVbUFUdWl4eFBncGlJTFYxT3R4c0l5OVRtbHdNeFVtVm9KVFcKWXdhN0Z6bTBBamRVZi9Ib29Ba0FxcDRvTkJvUnVSUThUZEUwY2pLckpEaG1OekFKdFhUaVVQZWtTRnM1ZkNsRwpHbXZUR1N6WmM2cEVpbzJHZEpWcVpTemtXNVNwREVGeHBod0Vsc0c1bWR5V05peTFjWVVHZklFZ2hONW9sZ3pZCkRPbURZdUFSQStibkN3K3hjM1FJTnluak9VTWl1TlFndWNKbFBrWEpOQ3dKTGQ4RFR3L0tkUm9ZRWt2VFk1UEIKUDJlYnBPSU1vWUlsakhJRENZQkRKMGlzb2VVaHFvUUxnMzBneUhickR4cXlqQlNTYldsTFpaWEtaandHQndTNgppQzI1WTdNYXNFZFNBZGZxS3FWSlpyZTZ3TkpXRHRvalY4aXhHYVdTWVhSSWFQa2tPdGhaWDRpWmdCSjNzQVRhCmlrbHpZMnNGSFJSSXpkSFJRM1N3R3dYcFNCOElpcyt3TlJPc3ZwQVp4MVpxc1lzNVBvTUJ1Vk0yaGxPVlJaTFUKU29DVlZPWXF4N1RWQU4wVmI3bTZvRFpDdUJWanM2djVEakY4Y2dCN3pLNlJvV2JYSThUcUdUMEdXWXNFQ08vWAplS2lCajJsNXVOcXhST2tTZ0NIVnIyYzZiU016S2pibkVQRjRILzM0b2k4OFFzVGhzbjBHeUtqSmpsSGtnam4zCmcvRjhtd2drVWRVQ3hNMzJ6VWRyZnY4SU1GOWNRQ0tGdFhCeVA3RUhDVzk2YXg5VEZDcU1vRjFhUmt3MkozWXkKWTlWVEliaThOQ3c2RHEwWG5VK1hRWDhvU1RSU0RVVnBnMFIyQTZxNXhrN0NKQ0xFQWFObnBuQVdBK1JpZFhONApSZXBjS1NubUl2R2psRmFXRjZ1S3JoNWNoNW5DakZ1eUJxWkRCTGoyYlN4RUtBYkNYMjlzRlI3d3JabDJWQ2hqCnRTbVhPMVdZYVNSRG9zVXBBVFdhcXBBUnRYTkhYNjZRVmZIR2p4UWNNanoxQ01CWkNJbjZ2UlBKajRrYW0vZ0wKQU80YXZLRUVkeURIbFE5QlJLQU1qS3pDbytyaXV2SktkSXRGbFM3YXFLRWllcUpVaTJVS3RIODNwSTFJVUNDTQp5SERvZE1IMGtzNjdUa1VsdjR1WlJ5K3JkeUpCaWNpaWtxNENMWk5JQWllMmt0TnNLRUFRRzRTMVFrNHhlM0hNCkdsSG9VV2huaWtpRkNWck10OGR6ZGMyVG96eTdaMGNEUmQvWXlrNFZkeUJUdG52NEw0dm1BaTBiRWIwQUxmZUsKSk9GeUdYR1dZT2h4UGR5eW9UUnFJcHBJRkpiN0dLYVJkT2hNdjZtMXRHd0x0K0hFclRQc00wVGlrWGhLanBabQpnNWlKZEk5YWRBNkxyYThrbVdPVEdsK0dUaU0zRXZzY0dwRXFCRG5VTHYrSU5sdkNnSEk3UnQrenQ4dUpzLytxCnZXS3drRGlyZE1ueFY0NUVyejlNang4cGw5WThUcWQ0alJ4ek42TXNvQmkyYXI0a2xjTWt5VDhBVW9saEs0QWsKaERLV3JWMEhYcnFSejFQWFZ6bTVDUkx6ZGU2S3BqNU9ZaTNydktLOGZGNy9SaEl5TDA3dzlFNjNNdWJHbGRwUQpnNUltdVBBVAotLS0tLUVORCBQVUJMSUMgS0VZLS0tLS0K" + 'LS0tLS1CRUdJTiBQVUJMSUMgS0VZLS0tLS0KTUlJRXNqQUxCZ2xnaGtnQlpRTUVCQUlEZ2dTaEFLYlFCS0ZSa3JRNkFnTjNvcGhuUXFHREpLZ1VQeDR6YmJYUgp0cDBJSEp1a052R1lIUnUwcVBicGx6YWdFdEJaRkVEQnNucUN6SnlZQ1R3d1JvT1VOaTdNSVJIQU5sRmtmYmt4Clg3S2txSVZHQVRkWVVzU25rcjZNSlNGR3VLMERBQnZtdXdUbVFld0FQU1VoWERIcU1USUpUQm1ScmthV2JSd0YKbVRRaXRLM3FVcXRidHF6bVdxVklCajVFZ0VYb3czMHdVSXNEbEwrSmNnOXp0bzBuVDh6VHBjK2hySFNuTUJraApuUTZZQnJWa1BiYnBXN0puQnlVV2NXT3NZcnJEQkpxWkNMTWtxRS96Qk4zZ1Q4NE1WQXNxaEdGOG5DZ1FiNGhTCmhQclZJanBRUWhGenBIcGtHQzlzVzI5TUxXdFpVbUFUdWl4eFBncGlJTFYxT3R4c0l5OVRtbHdNeFVtVm9KVFcKWXdhN0Z6bTBBamRVZi9Ib29Ba0FxcDRvTkJvUnVSUThUZEUwY2pLckpEaG1OekFKdFhUaVVQZWtTRnM1ZkNsRwpHbXZUR1N6WmM2cEVpbzJHZEpWcVpTemtXNVNwREVGeHBod0Vsc0c1bWR5V05peTFjWVVHZklFZ2hONW9sZ3pZCkRPbURZdUFSQStibkN3K3hjM1FJTnluak9VTWl1TlFndWNKbFBrWEpOQ3dKTGQ4RFR3L0tkUm9ZRWt2VFk1UEIKUDJlYnBPSU1vWUlsakhJRENZQkRKMGlzb2VVaHFvUUxnMzBneUhickR4cXlqQlNTYldsTFpaWEtaandHQndTNgppQzI1WTdNYXNFZFNBZGZxS3FWSlpyZTZ3TkpXRHRvalY4aXhHYVdTWVhSSWFQa2tPdGhaWDRpWmdCSjNzQVRhCmlrbHpZMnNGSFJSSXpkSFJRM1N3R3dYcFNCOElpcyt3TlJPc3ZwQVp4MVpxc1lzNVBvTUJ1Vk0yaGxPVlJaTFUKU29DVlZPWXF4N1RWQU4wVmI3bTZvRFpDdUJWanM2djVEakY4Y2dCN3pLNlJvV2JYSThUcUdUMEdXWXNFQ08vWAplS2lCajJsNXVOcXhST2tTZ0NIVnIyYzZiU016S2pibkVQRjRILzM0b2k4OFFzVGhzbjBHeUtqSmpsSGtnam4zCmcvRjhtd2drVWRVQ3hNMzJ6VWRyZnY4SU1GOWNRQ0tGdFhCeVA3RUhDVzk2YXg5VEZDcU1vRjFhUmt3MkozWXkKWTlWVEliaThOQ3c2RHEwWG5VK1hRWDhvU1RSU0RVVnBnMFIyQTZxNXhrN0NKQ0xFQWFObnBuQVdBK1JpZFhONApSZXBjS1NubUl2R2psRmFXRjZ1S3JoNWNoNW5DakZ1eUJxWkRCTGoyYlN4RUtBYkNYMjlzRlI3d3JabDJWQ2hqCnRTbVhPMVdZYVNSRG9zVXBBVFdhcXBBUnRYTkhYNjZRVmZIR2p4UWNNanoxQ01CWkNJbjZ2UlBKajRrYW0vZ0wKQU80YXZLRUVkeURIbFE5QlJLQU1qS3pDbytyaXV2SktkSXRGbFM3YXFLRWllcUpVaTJVS3RIODNwSTFJVUNDTQp5SERvZE1IMGtzNjdUa1VsdjR1WlJ5K3JkeUpCaWNpaWtxNENMWk5JQWllMmt0TnNLRUFRRzRTMVFrNHhlM0hNCkdsSG9VV2huaWtpRkNWck10OGR6ZGMyVG96eTdaMGNEUmQvWXlrNFZkeUJUdG52NEw0dm1BaTBiRWIwQUxmZUsKSk9GeUdYR1dZT2h4UGR5eW9UUnFJcHBJRkpiN0dLYVJkT2hNdjZtMXRHd0x0K0hFclRQc00wVGlrWGhLanBabQpnNWlKZEk5YWRBNkxyYThrbVdPVEdsK0dUaU0zRXZzY0dwRXFCRG5VTHYrSU5sdkNnSEk3UnQrenQ4dUpzLytxCnZXS3drRGlyZE1ueFY0NUVyejlNang4cGw5WThUcWQ0alJ4ek42TXNvQmkyYXI0a2xjTWt5VDhBVW9saEs0QWsKaERLV3JWMEhYcnFSejFQWFZ6bTVDUkx6ZGU2S3BqNU9ZaTNydktLOGZGNy9SaEl5TDA3dzlFNjNNdWJHbGRwUQpnNUltdVBBVAotLS0tLUVORCBQVUJMSUMgS0VZLS0tLS0K' ); // QA ML-KEM-1024 - mlKemKeys[107] = fct('LS0tLS1CRUdJTiBQVUJMSUMgS0VZLS0tLS0KTUlJR01qQUxCZ2xnaGtnQlpRTUVCQU1EZ2dZaEFLN0VwZURueVNIM3p0QmNhZXFBWUJxaWJaNGpQSHNvWXVaYwpKVG9sV1o4QnE1LzZwMDNJZVgxMnljS1FHNTc2Q0d1bFV0TkRIalVvUWJ3Nk9telNFZGtVYnF1SlpJQjFGelgyCnFlL1pmQ1E0dXNaWlgxU3lrWithYkZheHFsNU1tOFl5Ui9WRFVGaVNxK1U3cTEwWnh2VnBaZE1Wd2d1cWFSemIKTTJkM3V3LzhiZVpCVHRqVXVUMVpmTjdqYWZrS2U0a1FNM0JMWXM3d2VlYVpLd0c4aHBBQUM1UXFyRGtqRDFseQpPZU9McGJmQkZRb0ZOUWtaUEx6TERVcGpSdkpqdHhYQW9OSzVnTzVZelhVa0QwSTBOdDlUU2FnM2tYWlZBR1hKClN2SUpMTjFpaGRBaUxHMVptMDJTQWhYckhlTmdzUFFteDdyR1ZJeXFNbFNBejFhTUJaaDRPOXBISmo2THdjREwKbnJCb04zS0FJL3phQlFKVXNvbDdMNER6VEEzSWpRL21lem9rYVN2bmh1a1JzbEw0WEhaY09wT1JjNDN6V20rVwpZc2ZZUjVLR1laTWh2b2ZYc2MwOGNZSFhydWdEQ3hDcGRrQjdWNmFwWHVNM3BUa29qclpJQXZBVWNqMzR3K1R3CmNLeWJIYnNLRjM5Q3BZdzF6OUhIZ0pqMnpHa2pHbTNqSTl3aVdQRHJoMlRpTWMwQmRpZk1SSndBdmNMamc5aEoKVFhGY2prT3BjaFFybmwzNkh4M0h2NERBQ0dhUUFXVldROGJBZG95d1Z0VlJkY3BMRVc5VEFJejJBUnhWZTJDWQpSOG9qQ04rRlVXejZOYU41YXZiNVB1SzhEOEdGRmcxa0hqdzFKSW1Mc1VFN04rbHNGMVFMV1BsemhmUnpKNUVZCnl0dWJLbGY3c00yd0NCd01uL0VxSmxSMUYrd0xZOGpHTHVkbmQ5NUpCNFlnTzZINmw0OEFTdXZhSFVmQXBNMnAKdm5vQ3BMbEZwWkR5WGcxOGtmd0lhV0lRS204Nm9FQjhPMElhUkdzZ1NFdmNVWEFvc1RqU3hwQ3JaL01TTFB1aAp5b1R3bzB4QXhEZnlJMWNUUGh4R1A2eDZXUDhFbG9tN1RUeER3SUFCTFdVa0NGc295Y2p6RVdFeElDV1JBVkZKCk5ZWXJqWXZ4UllqVE85Y0pDWlhjWjRJcVhWbUhmU2hiZWJJUk1UdUFnTThiWGR6RGs2eDBCQWJsemMraGkrZEgKWWdTYm9xRVVlVUlZQW5YVFhvd0hIcmZGSmRIYmdGN2dzaU5rQTJad2tIOUVUdmUyZldwY0dKWld3T3V4R1RFbgpBYXVyUE5aUUtxbDFqeVRUVmtHMEJGYzRuWm5WdHZHU0cyam1qeXpsTGlLbUNiL3lldEY3aXkzR0QrSWF6QVFECmFyY0FHL3h6WlZ4bWx0T3J5VSs4R3JCRE00UXlsVFVxUmJPRldFakpOYlNFZXNJN0tSbUNVUmhoTzRhWW1nd2oKeWprRVh0dUdOaHp5UkFaalJscGpJMFJDcVdXQ29OcDdGZloxcncxVW9TcUpkU2FXVE5wQ1BRQkVEeUNLUFdZaAp3WlhvZnpwOHAxbkFsUUhaZldiRHBLVHJUQlQyV3FmSUtLS3FqTGRoVHZvS0gwcVJwQlpEYk9OV3VZTVJucWtSCkU0Z2JLR3ZtVGNxcXRzQ1p1KzZpYWtyd3VlS0Jqb3hSUDVueVFSOUNPQldvY3VpcEp2c3lxeVJBTG5vV2xVMTEKUjJwb0NYa3BIeTNwcmQxbFpZRDhHWXpTVEllUmJEUEZ2SzNKUk8vTWlObG1LV1BZdEVZVGlaRFZZZ1JuSitSSwpMNEJFU1R4TEN6dTBnYjRpY0hyWmxFTWxGV3pnTWwrR29QM0FTZG41bEpNRlVMb1ZlajNiSjA2aFgxZG5UTnFiClcwSUhLS2NxYng4b0lJZGJ4YUtER0F5RkFtZTZud1dXTWUyWEpWZE1LSG5DUm80aXZaaW9FNWJwcHg3Wk1kY3cKaEU3VGJtMEdnd0RaS1FKV1pDcmt1TmxuTTFBeE02Y252RHFYbUlHaGVqU0tKYWpSYlA2WllHVllZUGYyUVJDRwpYSnpSbmRiSUc0TjRyZjBaT3hHVnlReHdmK25GcUV2RlZ0Vm5LdTloUWFSUXpsZzRvZ21xY05FSkp3dmFYd2Y0CkZlODV1cHlhY3hVWENKeUtocmpUU1hUSEFtNWp3RmRIQ2djUmtlejN5a3VDZ2k2RXdobkxVdDN5cVJQa1BtU1EKVGNGa2NBZm5LSUhyTG4wSGE5YUNpZDhWeWJjeG5LREN0cC9Ua2dBRXJiZHdQMWZtTDVGVmMyOUdkOWh6QnUvVApZQUFIZ2h2Y1Y1SW5WU3lLY3k3b1lPQUVFVmM2VjMvSUs4dXFnV1ZLYVd6d3E0a2tnYS9ydzVTU0I0ZW9MdS9zCnRYQzR0c3g0cDY0anFCSlRDdDMxaU5TVHV4MUNMY1N3aDY1TXliZUVkamZaemcvSUE2aUN0ZXZqaHZVckxFRFoKWHNlWHRERlpHd0FOQVVkWnArekVrd2IzcjhObFhMRXlhQ01WeENJMHZPMzBiN21uY0t5cXNONXloVGowZ21jNApBdTF4YmM4U0tXczBnaGxvditVVWcxcDBseGl5YnpYQ29YTDRINllKT0kwcUJIUXlDZDlCVkF4Y3g1THJGSjMxClFHMDV3aUZnbUF5bHNwT3h2RzdFWEZXY0RjY0NpZXh0ak0rR3Q4cTVHTHNXaFpoaVYrUkhRaERPQkZuSGhlYTEKVnQyVUxyODYKLS0tLS1FTkQgUFVCTElDIEtFWS0tLS0tCg==') + mlKemKeys[107] = fct( + 'LS0tLS1CRUdJTiBQVUJMSUMgS0VZLS0tLS0KTUlJR01qQUxCZ2xnaGtnQlpRTUVCQU1EZ2dZaEFLN0VwZURueVNIM3p0QmNhZXFBWUJxaWJaNGpQSHNvWXVaYwpKVG9sV1o4QnE1LzZwMDNJZVgxMnljS1FHNTc2Q0d1bFV0TkRIalVvUWJ3Nk9telNFZGtVYnF1SlpJQjFGelgyCnFlL1pmQ1E0dXNaWlgxU3lrWithYkZheHFsNU1tOFl5Ui9WRFVGaVNxK1U3cTEwWnh2VnBaZE1Wd2d1cWFSemIKTTJkM3V3LzhiZVpCVHRqVXVUMVpmTjdqYWZrS2U0a1FNM0JMWXM3d2VlYVpLd0c4aHBBQUM1UXFyRGtqRDFseQpPZU9McGJmQkZRb0ZOUWtaUEx6TERVcGpSdkpqdHhYQW9OSzVnTzVZelhVa0QwSTBOdDlUU2FnM2tYWlZBR1hKClN2SUpMTjFpaGRBaUxHMVptMDJTQWhYckhlTmdzUFFteDdyR1ZJeXFNbFNBejFhTUJaaDRPOXBISmo2THdjREwKbnJCb04zS0FJL3phQlFKVXNvbDdMNER6VEEzSWpRL21lem9rYVN2bmh1a1JzbEw0WEhaY09wT1JjNDN6V20rVwpZc2ZZUjVLR1laTWh2b2ZYc2MwOGNZSFhydWdEQ3hDcGRrQjdWNmFwWHVNM3BUa29qclpJQXZBVWNqMzR3K1R3CmNLeWJIYnNLRjM5Q3BZdzF6OUhIZ0pqMnpHa2pHbTNqSTl3aVdQRHJoMlRpTWMwQmRpZk1SSndBdmNMamc5aEoKVFhGY2prT3BjaFFybmwzNkh4M0h2NERBQ0dhUUFXVldROGJBZG95d1Z0VlJkY3BMRVc5VEFJejJBUnhWZTJDWQpSOG9qQ04rRlVXejZOYU41YXZiNVB1SzhEOEdGRmcxa0hqdzFKSW1Mc1VFN04rbHNGMVFMV1BsemhmUnpKNUVZCnl0dWJLbGY3c00yd0NCd01uL0VxSmxSMUYrd0xZOGpHTHVkbmQ5NUpCNFlnTzZINmw0OEFTdXZhSFVmQXBNMnAKdm5vQ3BMbEZwWkR5WGcxOGtmd0lhV0lRS204Nm9FQjhPMElhUkdzZ1NFdmNVWEFvc1RqU3hwQ3JaL01TTFB1aAp5b1R3bzB4QXhEZnlJMWNUUGh4R1A2eDZXUDhFbG9tN1RUeER3SUFCTFdVa0NGc295Y2p6RVdFeElDV1JBVkZKCk5ZWXJqWXZ4UllqVE85Y0pDWlhjWjRJcVhWbUhmU2hiZWJJUk1UdUFnTThiWGR6RGs2eDBCQWJsemMraGkrZEgKWWdTYm9xRVVlVUlZQW5YVFhvd0hIcmZGSmRIYmdGN2dzaU5rQTJad2tIOUVUdmUyZldwY0dKWld3T3V4R1RFbgpBYXVyUE5aUUtxbDFqeVRUVmtHMEJGYzRuWm5WdHZHU0cyam1qeXpsTGlLbUNiL3lldEY3aXkzR0QrSWF6QVFECmFyY0FHL3h6WlZ4bWx0T3J5VSs4R3JCRE00UXlsVFVxUmJPRldFakpOYlNFZXNJN0tSbUNVUmhoTzRhWW1nd2oKeWprRVh0dUdOaHp5UkFaalJscGpJMFJDcVdXQ29OcDdGZloxcncxVW9TcUpkU2FXVE5wQ1BRQkVEeUNLUFdZaAp3WlhvZnpwOHAxbkFsUUhaZldiRHBLVHJUQlQyV3FmSUtLS3FqTGRoVHZvS0gwcVJwQlpEYk9OV3VZTVJucWtSCkU0Z2JLR3ZtVGNxcXRzQ1p1KzZpYWtyd3VlS0Jqb3hSUDVueVFSOUNPQldvY3VpcEp2c3lxeVJBTG5vV2xVMTEKUjJwb0NYa3BIeTNwcmQxbFpZRDhHWXpTVEllUmJEUEZ2SzNKUk8vTWlObG1LV1BZdEVZVGlaRFZZZ1JuSitSSwpMNEJFU1R4TEN6dTBnYjRpY0hyWmxFTWxGV3pnTWwrR29QM0FTZG41bEpNRlVMb1ZlajNiSjA2aFgxZG5UTnFiClcwSUhLS2NxYng4b0lJZGJ4YUtER0F5RkFtZTZud1dXTWUyWEpWZE1LSG5DUm80aXZaaW9FNWJwcHg3Wk1kY3cKaEU3VGJtMEdnd0RaS1FKV1pDcmt1TmxuTTFBeE02Y252RHFYbUlHaGVqU0tKYWpSYlA2WllHVllZUGYyUVJDRwpYSnpSbmRiSUc0TjRyZjBaT3hHVnlReHdmK25GcUV2RlZ0Vm5LdTloUWFSUXpsZzRvZ21xY05FSkp3dmFYd2Y0CkZlODV1cHlhY3hVWENKeUtocmpUU1hUSEFtNWp3RmRIQ2djUmtlejN5a3VDZ2k2RXdobkxVdDN5cVJQa1BtU1EKVGNGa2NBZm5LSUhyTG4wSGE5YUNpZDhWeWJjeG5LREN0cC9Ua2dBRXJiZHdQMWZtTDVGVmMyOUdkOWh6QnUvVApZQUFIZ2h2Y1Y1SW5WU3lLY3k3b1lPQUVFVmM2VjMvSUs4dXFnV1ZLYVd6d3E0a2tnYS9ydzVTU0I0ZW9MdS9zCnRYQzR0c3g0cDY0anFCSlRDdDMxaU5TVHV4MUNMY1N3aDY1TXliZUVkamZaemcvSUE2aUN0ZXZqaHZVckxFRFoKWHNlWHRERlpHd0FOQVVkWnArekVrd2IzcjhObFhMRXlhQ01WeENJMHZPMzBiN21uY0t5cXNONXloVGowZ21jNApBdTF4YmM4U0tXczBnaGxvditVVWcxcDBseGl5YnpYQ29YTDRINllKT0kwcUJIUXlDZDlCVkF4Y3g1THJGSjMxClFHMDV3aUZnbUF5bHNwT3h2RzdFWEZXY0RjY0NpZXh0ak0rR3Q4cTVHTHNXaFpoaVYrUkhRaERPQkZuSGhlYTEKVnQyVUxyODYKLS0tLS1FTkQgUFVCTElDIEtFWS0tLS0tCg==' + ); // STAGING ML-KEM-1024 - mlKemKeys[124] = fct('LS0tLS1CRUdJTiBQVUJMSUMgS0VZLS0tLS0KTUlJR01qQUxCZ2xnaGtnQlpRTUVCQU1EZ2dZaEFLRGxrU0FJWDVyaFZkRm9oOTBNWnpkVHZOVmFwVkhUemx5YQpzU0Y2U2hTaGNXYUNYeXJoa2owV1E4MjRSV0xzRUhIRGJNTWlaYnpHZEF1UnJqMzhLQmxzajdkaFRqaW5LRFBLCndFZzZhOVpZcnVaMFpvZ1N4U2s4VEJ1cW5IQ0V3K0YyY3NlcEcvQ21XVFo4cnRYcmtrQmhPM1ZaZmd5RE5ja28KdVRDalVTWUZxOXhxVzRTUU5LQ2NaN2NhZjFscFhRSjZoS3RyYnBGcUNvbkl0K0dCQ0laMEhsNXdiWHBGUURORgpPNCt4Y3h4R3VRV2luV3lLVCsrRlFFdTBuTEVqSEVhSmFFRmtySU9YaURqM0FFKzJYTW5GSWJXNG91Nkp1alVCCkVoQ2NZVkhZekZrMHhZbEJoS0VRWUxTV0dPZmNKTWRDTDBHNmxFL0trcE5DSk4zMnJINHlFVUhvVm5pcE91OUMKbnhRYk1CMGFvS3phbU4rOEFsRHpyZzB5bytKcHpxdVlKRUVvcnVlUnIyTTZWRmVKdUdDVE1VVDRLZmtjejJNSgpHN3lyV1NDb0RMQ3pua2RHaGdrd0tYVkFKOXhhTVVEY1lDMUtrRnZtakRjbExSeUxNUFdjRjhaMEFKaEpJbitWCkRZaGd3MzRFbkpwSVNoeXJRdE5CYlVjRFJVWm1tYmkxTUtxNWN1QXlwODM4Q1RpWXp3QXdnMHFhSHBjTVVDT3kKUk5jakdmZjFGc2NFZ0pPUUlCUURWd243bTY3SmV5ZTRvUldzc01mbElWaGxGOXVNUWNseHdMQmx2NFR3RVRqMQpmcS9aUVdKTFdoWkFYMlpxSTRvMFFqdW5kS0JGYzZIeWFaRURJMlpsUk04bWFJaGNOWmlURjZhYUVsbFFmNVJDCnZ5NllyRm1sSms5U2M3YUFEWlMyWEcrWHdaTGFZb1REUU96UndmNHFDblExaGpjV3RKb3JyV2FvVmd6enJQTzQKRHIvRGJ1OUVYUmNhRkJwd2pJQUVNS3h4SzNtMVhXU2doanNYZkgyRHF4bnFCOUpGZ3ZaZ08vdkJpa0tuYkpqbApMVlhNa0U2QXE3RDVGd2I0eW9iNnNIeklxN0k1TzlMb21la0FBWFFjdTQvYkx3c29zbzJsUnlXSWtuMFNRNmpRCmVPejhsYkpJUjkxckp6Nm9YeW5FSzZFeU9xVTV3bUhTWGlSNEtpZ3FkaUFubG1XQ20wVzNpa0RpUC93NW1LZGcKdFFBZFR3ZTV4UTlRRmJyNXhwem5pMmtXaE85b2RYVGNsVUNCY3N5RHNQRm1OdVBnZjROU1YxSnNtb2tGT003NgpLQmlaUXE1cHVwL3pEZCtydEVkbk1Gc0tmUlkwUEcxakdBcmFtMGw3Y0xha0t6TkR5Q2g4YlhsS3FrdXBGcG81CnN1LzRUMU1HRzJJaExNeGltQ04zeFEraHk3cllwdkR5RW9lc2c1WDVjTTRXbVR1Q28zc0dITkUzU3FiSHJaangKZlFMQVU1UVhJajhwVHV1cFBZaEp3c0NBWUIwcXJRNjJsRkRWVVd6V2xNLzFVb3NWZjdoQ1BHYjZBYzRSTVZzTAp4OVljUXRNa1hTckpHZlJuWWxNNVh2b2dFZUdBVU5LSWx6L0xneFFveGU2b1AvNUJ3RGo3VmdZeW96ZDdWOEFwCnNDWjdjTVZFY1d6UUJhbWhrbktpVXNCcEVKUmh6bHZ4UzVVWkdUb0RmODdhUThpc2VFNjZ1RW9EbmZpaFlnSG4KdEJvS1J2VUtLdFAzeDJDWXVsN0NuUzRsekhlV1UxQUZxSkFwT0ZhR1hpV0RXTytXZUc1R1JSSUp3bk9Ub3hieQpaaXNEYzFyN3VmM25lVUtJaThYZ0ZuYWJNcUJreXNhN2lVZlZSd3FqRnBHWW5rNTdmclVCalY2bk10bWFuTnB3CmMvSnJwTllJelplcmRuR1RyNXdBbWx1SnpjWVdKVXloemVQY3d5ejJKbGMwRk8yQUJIUzFQclNNYi95QmpodmIKcFNvVVhhR0FxellEaUowRmFlOHlWRWxTRlE2Q3ZZNXNjYTdyVE1zcGRNVzNyQWZKV0hnRHUzK1F3cmpoZVVwSwp1Q2d4ekdOaGdLTnN5eUJ5WXVKVWU1azRxeW9BcGNnVkZBUzJTUUVFbmdLNHA1OGtSc3RtUFdnYm5CMjNhcjU2CnFvd1lCVjV4UTJTMnJIZzd0R3pBQnJGVFM2aHpGSDJncXVaNFIxQXlIdnFRV2pMaHBxdmFUR3pLZFpEVUkvRVgKaVZSS2dTd0l0bVhFZFVIaXZNN3NzUGZDUmVIQ3dMMlNmZHp6V1puVHZPMUpxUVZDUys5a2w1aWxDWmMyYlJkcApabXRVR284R0FqazVja0hEVDkzSkhkeW9yZEZZbndqMWNTV3FvOFFneTU0WW1rQWdDeXhXWndPMUxoL0JSRm5pCldYYWNzV0JEcXN6c0FOVUt1eVkyR0hWaWZxRkVud3hwZW5ZRHhhU0pGYmRvZCt4UlE4K0lUZ3N6UGtpSUtwUksKcUFPcXhnd2dGcTcwcjRyM3JKUUZWRWRvZzRwU3NwYVNvbFB5dG85b1NoWjJld2RFTC9xeGZybEJCeHZtV002RApwcENKZ0szWG1yOVl1MVBrdUEyVXJoRFNaenVEWXNDcGNzWEFINjNIZnhtQ0JxSlZtdWFRenlITFZjSTZtMUxZClJzYzdwSWhwTHUrckxuNnJ0bjBYVDJyaXk3akhVNTMrcjF6ZEUwYVBrVDIzL0JxNG8wb3ZWRGZ1ZGpsT3hPd3UKNmxDU3hNWlkKLS0tLS1FTkQgUFVCTElDIEtFWS0tLS0tCg==') + mlKemKeys[124] = fct( + 'LS0tLS1CRUdJTiBQVUJMSUMgS0VZLS0tLS0KTUlJR01qQUxCZ2xnaGtnQlpRTUVCQU1EZ2dZaEFLRGxrU0FJWDVyaFZkRm9oOTBNWnpkVHZOVmFwVkhUemx5YQpzU0Y2U2hTaGNXYUNYeXJoa2owV1E4MjRSV0xzRUhIRGJNTWlaYnpHZEF1UnJqMzhLQmxzajdkaFRqaW5LRFBLCndFZzZhOVpZcnVaMFpvZ1N4U2s4VEJ1cW5IQ0V3K0YyY3NlcEcvQ21XVFo4cnRYcmtrQmhPM1ZaZmd5RE5ja28KdVRDalVTWUZxOXhxVzRTUU5LQ2NaN2NhZjFscFhRSjZoS3RyYnBGcUNvbkl0K0dCQ0laMEhsNXdiWHBGUURORgpPNCt4Y3h4R3VRV2luV3lLVCsrRlFFdTBuTEVqSEVhSmFFRmtySU9YaURqM0FFKzJYTW5GSWJXNG91Nkp1alVCCkVoQ2NZVkhZekZrMHhZbEJoS0VRWUxTV0dPZmNKTWRDTDBHNmxFL0trcE5DSk4zMnJINHlFVUhvVm5pcE91OUMKbnhRYk1CMGFvS3phbU4rOEFsRHpyZzB5bytKcHpxdVlKRUVvcnVlUnIyTTZWRmVKdUdDVE1VVDRLZmtjejJNSgpHN3lyV1NDb0RMQ3pua2RHaGdrd0tYVkFKOXhhTVVEY1lDMUtrRnZtakRjbExSeUxNUFdjRjhaMEFKaEpJbitWCkRZaGd3MzRFbkpwSVNoeXJRdE5CYlVjRFJVWm1tYmkxTUtxNWN1QXlwODM4Q1RpWXp3QXdnMHFhSHBjTVVDT3kKUk5jakdmZjFGc2NFZ0pPUUlCUURWd243bTY3SmV5ZTRvUldzc01mbElWaGxGOXVNUWNseHdMQmx2NFR3RVRqMQpmcS9aUVdKTFdoWkFYMlpxSTRvMFFqdW5kS0JGYzZIeWFaRURJMlpsUk04bWFJaGNOWmlURjZhYUVsbFFmNVJDCnZ5NllyRm1sSms5U2M3YUFEWlMyWEcrWHdaTGFZb1REUU96UndmNHFDblExaGpjV3RKb3JyV2FvVmd6enJQTzQKRHIvRGJ1OUVYUmNhRkJwd2pJQUVNS3h4SzNtMVhXU2doanNYZkgyRHF4bnFCOUpGZ3ZaZ08vdkJpa0tuYkpqbApMVlhNa0U2QXE3RDVGd2I0eW9iNnNIeklxN0k1TzlMb21la0FBWFFjdTQvYkx3c29zbzJsUnlXSWtuMFNRNmpRCmVPejhsYkpJUjkxckp6Nm9YeW5FSzZFeU9xVTV3bUhTWGlSNEtpZ3FkaUFubG1XQ20wVzNpa0RpUC93NW1LZGcKdFFBZFR3ZTV4UTlRRmJyNXhwem5pMmtXaE85b2RYVGNsVUNCY3N5RHNQRm1OdVBnZjROU1YxSnNtb2tGT003NgpLQmlaUXE1cHVwL3pEZCtydEVkbk1Gc0tmUlkwUEcxakdBcmFtMGw3Y0xha0t6TkR5Q2g4YlhsS3FrdXBGcG81CnN1LzRUMU1HRzJJaExNeGltQ04zeFEraHk3cllwdkR5RW9lc2c1WDVjTTRXbVR1Q28zc0dITkUzU3FiSHJaangKZlFMQVU1UVhJajhwVHV1cFBZaEp3c0NBWUIwcXJRNjJsRkRWVVd6V2xNLzFVb3NWZjdoQ1BHYjZBYzRSTVZzTAp4OVljUXRNa1hTckpHZlJuWWxNNVh2b2dFZUdBVU5LSWx6L0xneFFveGU2b1AvNUJ3RGo3VmdZeW96ZDdWOEFwCnNDWjdjTVZFY1d6UUJhbWhrbktpVXNCcEVKUmh6bHZ4UzVVWkdUb0RmODdhUThpc2VFNjZ1RW9EbmZpaFlnSG4KdEJvS1J2VUtLdFAzeDJDWXVsN0NuUzRsekhlV1UxQUZxSkFwT0ZhR1hpV0RXTytXZUc1R1JSSUp3bk9Ub3hieQpaaXNEYzFyN3VmM25lVUtJaThYZ0ZuYWJNcUJreXNhN2lVZlZSd3FqRnBHWW5rNTdmclVCalY2bk10bWFuTnB3CmMvSnJwTllJelplcmRuR1RyNXdBbWx1SnpjWVdKVXloemVQY3d5ejJKbGMwRk8yQUJIUzFQclNNYi95QmpodmIKcFNvVVhhR0FxellEaUowRmFlOHlWRWxTRlE2Q3ZZNXNjYTdyVE1zcGRNVzNyQWZKV0hnRHUzK1F3cmpoZVVwSwp1Q2d4ekdOaGdLTnN5eUJ5WXVKVWU1azRxeW9BcGNnVkZBUzJTUUVFbmdLNHA1OGtSc3RtUFdnYm5CMjNhcjU2CnFvd1lCVjV4UTJTMnJIZzd0R3pBQnJGVFM2aHpGSDJncXVaNFIxQXlIdnFRV2pMaHBxdmFUR3pLZFpEVUkvRVgKaVZSS2dTd0l0bVhFZFVIaXZNN3NzUGZDUmVIQ3dMMlNmZHp6V1puVHZPMUpxUVZDUys5a2w1aWxDWmMyYlJkcApabXRVR284R0FqazVja0hEVDkzSkhkeW9yZEZZbndqMWNTV3FvOFFneTU0WW1rQWdDeXhXWndPMUxoL0JSRm5pCldYYWNzV0JEcXN6c0FOVUt1eVkyR0hWaWZxRkVud3hwZW5ZRHhhU0pGYmRvZCt4UlE4K0lUZ3N6UGtpSUtwUksKcUFPcXhnd2dGcTcwcjRyM3JKUUZWRWRvZzRwU3NwYVNvbFB5dG85b1NoWjJld2RFTC9xeGZybEJCeHZtV002RApwcENKZ0szWG1yOVl1MVBrdUEyVXJoRFNaenVEWXNDcGNzWEFINjNIZnhtQ0JxSlZtdWFRenlITFZjSTZtMUxZClJzYzdwSWhwTHUrckxuNnJ0bjBYVDJyaXk3akhVNTMrcjF6ZEUwYVBrVDIzL0JxNG8wb3ZWRGZ1ZGpsT3hPd3UKNmxDU3hNWlkKLS0tLS1FTkQgUFVCTElDIEtFWS0tLS0tCg==' + ); // PROD ML-KEM-1024 - mlKemKeys[136] = fct('LS0tLS1CRUdJTiBQVUJMSUMgS0VZLS0tLS0KTUlJR01qQUxCZ2xnaGtnQlpRTUVCQU1EZ2dZaEFCZlJTaTlXaEttekRMR2toL2lJTnhEbXRheVZIUzliendGeApOOEhCVXFXOFBNbElDTnpWbTBuRFAwdDRhTnhFRmNYYmtvMHdWbjZYRzdGYlpNZW5PVUdybEdGY2Q2N2NlVzRJCkRLL2xmeWtrd3VVWUdLWkNHY0Iwa3FNYUR2ajFXcGpscVp4aW16UUxGYkprRm5QRm92Q1RFQnd4Wis3c09hVlQKR1ZoS3VialNVU3dDcjZwVmFPRk1kWFUwaUdrSUxBWHl6YjJHVHZhaGFYTzF3cFdsUGpZWHgzbkRadDRSQjBJSgpwWXNjYk5CMnprS3BvdmRHS3dtY0V0NXBJeFlMd0RXcms1b1V4WXJsbTRLRkc5eEZvV3JyR3M1VU53T2JabzhrClVadkNFcDRsYXdwanEyeE12dmRxbnRzMnJCTXN5K0pxWFZsRFk4d2tBdXFxeW5PQ244aDJpWWNIV3FxSEdLZFYKWnNCSmtxNW5iK2J5cVI2RWhuQUdSQWpEaFVGUkRicmhGNVhMQnU1R0JEcHhKOUpaWlpZRGsyMmNEYkt5S1ZZeAp3Q2hpU0dqZ284VHJIT09uUWRWNk14MExtYlAwSTJVYVNoRDdDU1kzRGQyRmNJSldnN2l3ZDE0SFlyUkNTZGFKCksxbUlBdUhvUjZwQ21Ha2txRS93VTRlbnZJNm5yR0tSZVVqb3hqTFFFdEtZbVJ2OHhsOFlHTGdtbVZGS2JXaW8KdGhYY243WDRBaVJMU3hmWnhhelNQeGpxTEEzTW5RUVZ0bWRMRVg5V2xBNHlONXlTcnpEYUpDRTBPKzUwUjQvTQpvNkhoSVF3R2Vuclp2bzB3d2tUaHlIajZLSTREc0tVWWt5VWNYZ0Vjdlp2WXRnVmhtYnFLdmQzbGNjN2pML1oyCnhVK1RaS2NjS05XSnl0S2dJYWVnSzVDMG9WeURNdTNaQzBFVkZiVmFpb0Q1ZHBjbGNLb2xrbXN6UDdkaXBnTW0KUFMyQ2ZjUWlNVlRTVkFyemEyY3hDNnlMQ1hVVWF2UW5kQ2dZYmhKc1ZNQmd3OU5hamMxVG5KWU1KOGtBekpregpSN1owdU9vbkY5UUpROEpLdDFkMnRjUTRSZGVFak1GV1N4NUlzWThxTUZSaWhhQkxNSGVsTWRoZ0d1VGxmdkNUCmcxbFJzWVNJTFZiS1daSldyclh4akpWMFpmYklmRklndXQzY3FLN0R4NmZFS3l1N2dhZG1RSVpKa0F4U0s2ME0KblZJV0pJRkxSQU53UGNZYUhXam12VjhtZWhsVnhSQXdkVU40cll0Z1pLR2dXWEN5SGZERW9JMm9UbE02dUdHRApFOUpzRC9xS3hKSUxvNzlnWVVwckxoWkFycnBwTEVzVkRzNlltdmVwYkg2V3pmdnJyYklpSVpxb0p2YXpQVFFICkkrWmpHd3NITHJtQVcyajRWdkVJd0lXTGY5cmd1ZDNCQ3VBVk1ZTUZEZnNnbnpLaG1jTzFwU0pYcHJsRWVjekEKSkxFOGxqN0t2SHJIWHg1MXYwUGxvZkxJVXppVUVRODVMNk9DbFFZeUNxRHlUenNDcHFQMUw5TklDSXNBZWZZcApwMElSSnV6R01sdWJMblRaQTVjRVk3UDNvYldGVTRJbGNvZ1VTaDk2eWxaaVVGMGdHNUZWYm1uY2pHUzBNdWtwCkZyMjVxWHBGTThJQWhIV0dZN056SU9yMXdZaUJtZW1Kdml1MmJLK3dzMjVnbHEzR1c1WW54YXpoQ0JHb0ZlNFIKbThuaFppS1dmclZjRlJJNEtVenl3RzZzWDI3Y2h6YnJpdGtjVGVUVEM4TzFjY3lTVXprOEwzWFpQVGt6U1pOawpPV3pHU1hmb051ZkdqbFBxcGcyZ1NNbUdqN2g2VXY5NUk0TkxQR1Z4dE1QRERtUmpkdm5tcXZHMWtkMDJ4WGZyCm83STBkckVwR0ZYbUJuRWllbDc3UmUxTFZ5K3dueE5ybzBUSGZKUDVWdXJXdzJlTGdOZXdiOWwxWnFOWEZoRFcKSXN0bGVRbHlaT0ZKdmFrV3JZWmNVYlk3SW56MnJKR01kdWt3dHNoWldEWENmdXdzQ3NGMGI0T0ZGakVtTnA0RAplZDBWQ1lvS0VQTnBZdVk3SDkxN1VNQVNMZWZFTXVzWlU4dzBrOWJISDB6cnNuUHdNSWk0Q2hBamdtTVVrNHBvCnF1S2pyN013U2Fmd0FCeGpSM1Y3SUtNWWs1WkRReStrQ0MvcVNBM0x0KytLSk0rcHVYdUxkdk1NRm9nMWo0VnIKdGNBQlpxZExiQ3ZEUG5mbWVGRldQQlptQjYySUdEWndPNHRZeDFJc0dJbzRScGNsZHlsSWxvYWpzWWhuemVDMgpFWENTb3RMNXBWS01mZSt4ZDhxa2ZRVERHc2lIYmg4NHE3QWt1a3FnbkZ0M1diSkZHNVBZeWl5d2EvUHlIWnJtCnFHUlRScDVsQUVMbkRyQjNHdXFxVE41NmZwRlpDUHc1ZktJUUJuRGpwUTFvVTYvZ2htbDNIZDhTZXQwRUJqQzIKRVJTWXE1RkREOXVxcnVvYW00WkxtVjRqdTlkcFdsK01tM1ZIWnNYWHRocEpnNXk4czRXRGtFa2xJakpndzJJSgpvMjFITnhnbkZhd2tSNXJHeVU4cEt1cDNrQWZ5bzlaVGhaUUdyWHVFUTFQeXhsOGxzYVNKcmtLUndxakdzeWFWCmdxUGhtcmdBZ1VnWVJRN25LTDh5bTE0M25iT21hYXQ1UVN2MC9SR2o3eGdFZytoVHR0NnIvaDhWQk1oNEoxdmwKWkI0VllxNU8KLS0tLS1FTkQgUFVCTElDIEtFWS0tLS0tCg==') + mlKemKeys[136] = fct( + 'LS0tLS1CRUdJTiBQVUJMSUMgS0VZLS0tLS0KTUlJR01qQUxCZ2xnaGtnQlpRTUVCQU1EZ2dZaEFCZlJTaTlXaEttekRMR2toL2lJTnhEbXRheVZIUzliendGeApOOEhCVXFXOFBNbElDTnpWbTBuRFAwdDRhTnhFRmNYYmtvMHdWbjZYRzdGYlpNZW5PVUdybEdGY2Q2N2NlVzRJCkRLL2xmeWtrd3VVWUdLWkNHY0Iwa3FNYUR2ajFXcGpscVp4aW16UUxGYkprRm5QRm92Q1RFQnd4Wis3c09hVlQKR1ZoS3VialNVU3dDcjZwVmFPRk1kWFUwaUdrSUxBWHl6YjJHVHZhaGFYTzF3cFdsUGpZWHgzbkRadDRSQjBJSgpwWXNjYk5CMnprS3BvdmRHS3dtY0V0NXBJeFlMd0RXcms1b1V4WXJsbTRLRkc5eEZvV3JyR3M1VU53T2JabzhrClVadkNFcDRsYXdwanEyeE12dmRxbnRzMnJCTXN5K0pxWFZsRFk4d2tBdXFxeW5PQ244aDJpWWNIV3FxSEdLZFYKWnNCSmtxNW5iK2J5cVI2RWhuQUdSQWpEaFVGUkRicmhGNVhMQnU1R0JEcHhKOUpaWlpZRGsyMmNEYkt5S1ZZeAp3Q2hpU0dqZ284VHJIT09uUWRWNk14MExtYlAwSTJVYVNoRDdDU1kzRGQyRmNJSldnN2l3ZDE0SFlyUkNTZGFKCksxbUlBdUhvUjZwQ21Ha2txRS93VTRlbnZJNm5yR0tSZVVqb3hqTFFFdEtZbVJ2OHhsOFlHTGdtbVZGS2JXaW8KdGhYY243WDRBaVJMU3hmWnhhelNQeGpxTEEzTW5RUVZ0bWRMRVg5V2xBNHlONXlTcnpEYUpDRTBPKzUwUjQvTQpvNkhoSVF3R2Vuclp2bzB3d2tUaHlIajZLSTREc0tVWWt5VWNYZ0Vjdlp2WXRnVmhtYnFLdmQzbGNjN2pML1oyCnhVK1RaS2NjS05XSnl0S2dJYWVnSzVDMG9WeURNdTNaQzBFVkZiVmFpb0Q1ZHBjbGNLb2xrbXN6UDdkaXBnTW0KUFMyQ2ZjUWlNVlRTVkFyemEyY3hDNnlMQ1hVVWF2UW5kQ2dZYmhKc1ZNQmd3OU5hamMxVG5KWU1KOGtBekpregpSN1owdU9vbkY5UUpROEpLdDFkMnRjUTRSZGVFak1GV1N4NUlzWThxTUZSaWhhQkxNSGVsTWRoZ0d1VGxmdkNUCmcxbFJzWVNJTFZiS1daSldyclh4akpWMFpmYklmRklndXQzY3FLN0R4NmZFS3l1N2dhZG1RSVpKa0F4U0s2ME0KblZJV0pJRkxSQU53UGNZYUhXam12VjhtZWhsVnhSQXdkVU40cll0Z1pLR2dXWEN5SGZERW9JMm9UbE02dUdHRApFOUpzRC9xS3hKSUxvNzlnWVVwckxoWkFycnBwTEVzVkRzNlltdmVwYkg2V3pmdnJyYklpSVpxb0p2YXpQVFFICkkrWmpHd3NITHJtQVcyajRWdkVJd0lXTGY5cmd1ZDNCQ3VBVk1ZTUZEZnNnbnpLaG1jTzFwU0pYcHJsRWVjekEKSkxFOGxqN0t2SHJIWHg1MXYwUGxvZkxJVXppVUVRODVMNk9DbFFZeUNxRHlUenNDcHFQMUw5TklDSXNBZWZZcApwMElSSnV6R01sdWJMblRaQTVjRVk3UDNvYldGVTRJbGNvZ1VTaDk2eWxaaVVGMGdHNUZWYm1uY2pHUzBNdWtwCkZyMjVxWHBGTThJQWhIV0dZN056SU9yMXdZaUJtZW1Kdml1MmJLK3dzMjVnbHEzR1c1WW54YXpoQ0JHb0ZlNFIKbThuaFppS1dmclZjRlJJNEtVenl3RzZzWDI3Y2h6YnJpdGtjVGVUVEM4TzFjY3lTVXprOEwzWFpQVGt6U1pOawpPV3pHU1hmb051ZkdqbFBxcGcyZ1NNbUdqN2g2VXY5NUk0TkxQR1Z4dE1QRERtUmpkdm5tcXZHMWtkMDJ4WGZyCm83STBkckVwR0ZYbUJuRWllbDc3UmUxTFZ5K3dueE5ybzBUSGZKUDVWdXJXdzJlTGdOZXdiOWwxWnFOWEZoRFcKSXN0bGVRbHlaT0ZKdmFrV3JZWmNVYlk3SW56MnJKR01kdWt3dHNoWldEWENmdXdzQ3NGMGI0T0ZGakVtTnA0RAplZDBWQ1lvS0VQTnBZdVk3SDkxN1VNQVNMZWZFTXVzWlU4dzBrOWJISDB6cnNuUHdNSWk0Q2hBamdtTVVrNHBvCnF1S2pyN013U2Fmd0FCeGpSM1Y3SUtNWWs1WkRReStrQ0MvcVNBM0x0KytLSk0rcHVYdUxkdk1NRm9nMWo0VnIKdGNBQlpxZExiQ3ZEUG5mbWVGRldQQlptQjYySUdEWndPNHRZeDFJc0dJbzRScGNsZHlsSWxvYWpzWWhuemVDMgpFWENTb3RMNXBWS01mZSt4ZDhxa2ZRVERHc2lIYmg4NHE3QWt1a3FnbkZ0M1diSkZHNVBZeWl5d2EvUHlIWnJtCnFHUlRScDVsQUVMbkRyQjNHdXFxVE41NmZwRlpDUHc1ZktJUUJuRGpwUTFvVTYvZ2htbDNIZDhTZXQwRUJqQzIKRVJTWXE1RkREOXVxcnVvYW00WkxtVjRqdTlkcFdsK01tM1ZIWnNYWHRocEpnNXk4czRXRGtFa2xJakpndzJJSgpvMjFITnhnbkZhd2tSNXJHeVU4cEt1cDNrQWZ5bzlaVGhaUUdyWHVFUTFQeXhsOGxzYVNKcmtLUndxakdzeWFWCmdxUGhtcmdBZ1VnWVJRN25LTDh5bTE0M25iT21hYXQ1UVN2MC9SR2o3eGdFZytoVHR0NnIvaDhWQk1oNEoxdmwKWkI0VllxNU8KLS0tLS1FTkQgUFVCTElDIEtFWS0tLS0tCg==' + ); // GOV DEV ML-KEM-1024 // mlKemKeys[148] = fct('...') diff --git a/keeperapi/src/utils.ts b/keeperapi/src/utils.ts index 94d2a4f..7761bc5 100644 --- a/keeperapi/src/utils.ts +++ b/keeperapi/src/utils.ts @@ -1,20 +1,26 @@ -import {KeyWrapper, LogOptions, Platform, platform} from "./platform"; -import type {KeeperHost, TransmissionKey, TransmissionKeyHpke} from './configuration'; -import { AllowedEcKeyIds, AllowedMlKemKeyIds, getKeeperMlKemKeyVariant, isAllowedEcKeyId, isAllowedMlKemKeyId } from "./transmissionKeys"; -import { Ciphersuite, HPKE_ECDH_KYBER, MlKemVariant, OPTIONAL_DATA_LENGTH } from "./qrc"; +import { KeyWrapper, LogOptions, Platform, platform } from './platform'; +import type { KeeperHost, TransmissionKey, TransmissionKeyHpke } from './configuration'; +import { + AllowedEcKeyIds, + AllowedMlKemKeyIds, + getKeeperMlKemKeyVariant, + isAllowedEcKeyId, + isAllowedMlKemKeyId, +} from './transmissionKeys'; +import { Ciphersuite, HPKE_ECDH_KYBER, MlKemVariant, OPTIONAL_DATA_LENGTH } from './qrc'; export const log = (message: string, options: LogOptions = 'default') => { - platform.log(message, options) -} + platform.log(message, options); +}; export const formatTimeDiff = (timeDiff: Date): string => { - const minutes = timeDiff.getMinutes() - const seconds = timeDiff.getSeconds().toString().padStart(2, '0') - const milliseconds = timeDiff.getMilliseconds() + const minutes = timeDiff.getMinutes(); + const seconds = timeDiff.getSeconds().toString().padStart(2, '0'); + const milliseconds = timeDiff.getMilliseconds(); return minutes > 0 ? `${minutes.toString().padStart(2, '0')}:${seconds}.${milliseconds}` - : `${seconds}.${milliseconds}` -} + : `${seconds}.${milliseconds}`; +}; export function getKeeperUrl(host: KeeperHost, forPath: string) { const basePath = forPath.startsWith('bi_api') ? '' : 'api/rest/'; @@ -45,14 +51,17 @@ export function getKeeperAutomatorAdminUrl(host: KeeperHost, forPath: string, au } } -export async function generateTransmissionKey(ecKeyId: AllowedEcKeyIds, mlKemKeyId: AllowedMlKemKeyIds): Promise { - const transmissionKey = platform.getRandomBytes(32) +export async function generateTransmissionKey( + ecKeyId: AllowedEcKeyIds, + mlKemKeyId: AllowedMlKemKeyIds +): Promise { + const transmissionKey = platform.getRandomBytes(32); return { ecKeyId, key: transmissionKey, ecEncryptedKey: await platform.publicEncryptEC(transmissionKey, platform.keys[ecKeyId]), - mlKemKeyId - } + mlKemKeyId, + }; } export async function generateHpkeTransmissionKey( @@ -60,20 +69,20 @@ export async function generateHpkeTransmissionKey( useOptionalData: boolean = true ): Promise { // Validate and get server public keys - const {ecKeyId, mlKemKeyId} = transmissionKey + const { ecKeyId, mlKemKeyId } = transmissionKey; if (!isAllowedEcKeyId(ecKeyId)) { - throw new Error(`Invalid EC key ID: ${ecKeyId}`) + throw new Error(`Invalid EC key ID: ${ecKeyId}`); } if (!isAllowedMlKemKeyId(mlKemKeyId)) { - throw new Error(`Invalid ML-KEM key ID: ${mlKemKeyId}`) + throw new Error(`Invalid ML-KEM key ID: ${mlKemKeyId}`); } - const serverEcPublicKey = platform.keys[ecKeyId] - const serverMlKemPublicKey = platform.mlKemKeys[mlKemKeyId] + const serverEcPublicKey = platform.keys[ecKeyId]; + const serverMlKemPublicKey = platform.mlKemKeys[mlKemKeyId]; if (!serverEcPublicKey) { - throw new Error(`EC public key not found for ID: ${ecKeyId}`) + throw new Error(`EC public key not found for ID: ${ecKeyId}`); } if (!serverMlKemPublicKey) { - throw new Error(`ML-KEM public key not found for ID: ${mlKemKeyId}`) + throw new Error(`ML-KEM public key not found for ID: ${mlKemKeyId}`); } // Generate optional data if requested (recommended for unique request binding) @@ -94,12 +103,7 @@ export async function generateHpkeTransmissionKey( } // Encrypt transmission key using QRC - const qrcResult = await hpke.encrypt( - transmissionKey.key, - serverEcPublicKey, - serverMlKemPublicKey, - optionalData - ); + const qrcResult = await hpke.encrypt(transmissionKey.key, serverEcPublicKey, serverMlKemPublicKey, optionalData); return { mlKemKeyId, @@ -109,9 +113,9 @@ export async function generateHpkeTransmissionKey( mlKemEncapsulatedKey: qrcResult.mlKemEncapsulatedKey, data: qrcResult.encryptedData, msgVersion: qrcResult.msgVersion, - ecKeyId: ecKeyId + ecKeyId: ecKeyId, }, - optionalData: optionalData + optionalData: optionalData, }; } @@ -132,7 +136,7 @@ export function normal64Bytes(source: string): Uint8Array { } export function isTwoFactorResultCode(resultCode: string): boolean { - return ["need_totp", "invalid_device_token", "invalid_totp"].includes(resultCode); + return ['need_totp', 'invalid_device_token', 'invalid_totp'].includes(resultCode); } export function generateEncryptionKey(): Uint8Array { @@ -149,12 +153,12 @@ export function generateUid(): string { export function wrapPassword(key: string | Uint8Array): KeyWrapper { if (typeof key === 'string') { - return platform.wrapPassword(platform.stringToBytes(key)) + return platform.wrapPassword(platform.stringToBytes(key)); } if (key instanceof Uint8Array) { - return platform.wrapPassword(key) + return platform.wrapPassword(key); } - throw new Error('Error wrapping the password') + throw new Error('Error wrapping the password'); } export async function encryptKey(key: Uint8Array, withKey: Uint8Array): Promise { @@ -197,38 +201,39 @@ export async function encryptObjectForStorage(obj: T, key: Uint8Array): Promi export async function encryptObjectForStorageAsBytes(obj: T, key: Uint8Array): Promise { let s = JSON.stringify(obj); let bytes = platform.stringToBytes(s); - return platform.aesCbcEncrypt(bytes, key, true) + return platform.aesCbcEncrypt(bytes, key, true); } export async function decryptObjectFromStorage(data: string, key: Uint8Array): Promise { try { let decrypted = await decryptFromStorage(data, key); return JSON.parse(platform.bytesToString(decrypted)); - } - catch (e) { + } catch (e) { console.log(`Unable to decrypt ${data}`); - return {} as T + return {} as T; } } -export async function encryptObjectForStorageGCM(obj: T, key: Uint8Array, usePadding: boolean = true): Promise { +export async function encryptObjectForStorageGCM( + obj: T, + key: Uint8Array, + usePadding: boolean = true +): Promise { let bytes = platform.stringToBytes(JSON.stringify(obj)); if (usePadding) { - const paddedSize = Math.ceil(Math.max(384, bytes.length) / 16) * 16 - bytes = Uint8Array.of(...bytes, ...Array(paddedSize - bytes.length).fill(0x20)) + const paddedSize = Math.ceil(Math.max(384, bytes.length) / 16) * 16; + bytes = Uint8Array.of(...bytes, ...Array(paddedSize - bytes.length).fill(0x20)); } - return platform.aesGcmEncrypt(bytes, key) + return platform.aesGcmEncrypt(bytes, key); } -export function resolvablePromise(): { promise: Promise, resolve: () => void } { - let resolver +export function resolvablePromise(): { promise: Promise; resolve: () => void } { + let resolver; const promise = new Promise((resolve) => { - resolver = resolve - }) + resolver = resolve; + }); return { promise: promise, - resolve: resolver - } + resolve: resolver, + }; } - - diff --git a/keeperapi/src/vault.ts b/keeperapi/src/vault.ts index 31be115..f3d82aa 100644 --- a/keeperapi/src/vault.ts +++ b/keeperapi/src/vault.ts @@ -1,306 +1,340 @@ -import {Auth} from './auth' -import {NN, syncDownMessage} from './restMessages' -import {CryptoWorkerOptions, EncryptionType, KeyStorage, platform} from './platform' -import {Records, Tokens, Vault} from './proto' -import {formatTimeDiff, webSafe64FromBytes} from './utils' -import CacheStatus = Vault.CacheStatus -import RecordKeyType = Records.RecordKeyType -import IRecordMetaData = Vault.IRecordMetaData -import IRecord = Vault.IRecord -import INonSharedData = Vault.INonSharedData -import ISharedFolder = Vault.ISharedFolder -import ISharedFolderUser = Vault.ISharedFolderUser -import ISharedFolderTeam = Vault.ISharedFolderTeam -import ISharedFolderRecord = Vault.ISharedFolderRecord -import IRecordLink = Vault.IRecordLink -import IUserFolder = Vault.IUserFolder -import ITeam = Vault.ITeam -import ISharedFolderKey = Vault.ISharedFolderKey -import ISharedFolderFolder = Vault.ISharedFolderFolder +import { Auth } from './auth'; +import { NN, syncDownMessage } from './restMessages'; +import { CryptoWorkerOptions, EncryptionType, KeyStorage, platform } from './platform'; +import { Records, Tokens, Vault } from './proto'; +import { formatTimeDiff, webSafe64FromBytes } from './utils'; +import CacheStatus = Vault.CacheStatus; +import RecordKeyType = Records.RecordKeyType; +import IRecordMetaData = Vault.IRecordMetaData; +import IRecord = Vault.IRecord; +import INonSharedData = Vault.INonSharedData; +import ISharedFolder = Vault.ISharedFolder; +import ISharedFolderUser = Vault.ISharedFolderUser; +import ISharedFolderTeam = Vault.ISharedFolderTeam; +import ISharedFolderRecord = Vault.ISharedFolderRecord; +import IRecordLink = Vault.IRecordLink; +import IUserFolder = Vault.IUserFolder; +import ITeam = Vault.ITeam; +import ISharedFolderKey = Vault.ISharedFolderKey; +import ISharedFolderFolder = Vault.ISharedFolderFolder; import IUserFolderRecord = Vault.IUserFolderRecord; import ISharedFolderFolderRecord = Vault.ISharedFolderFolderRecord; -import IUserFolderSharedFolder = Vault.IUserFolderSharedFolder -import IReusedPasswords = Vault.IReusedPasswords -import IProfile = Vault.IProfile -import IBreachWatchRecord = Vault.IBreachWatchRecord -import IBreachWatchSecurityData = Vault.IBreachWatchSecurityData -import type {UnwrapKeyMap} from './platform' +import IUserFolderSharedFolder = Vault.IUserFolderSharedFolder; +import IReusedPasswords = Vault.IReusedPasswords; +import IProfile = Vault.IProfile; +import IBreachWatchRecord = Vault.IBreachWatchRecord; +import IBreachWatchSecurityData = Vault.IBreachWatchSecurityData; +import type { UnwrapKeyMap } from './platform'; export type VaultStorage = KeyStorage & { - put(data: VaultStorageData): Promise - getDependencies(uid: string): Promise - addDependencies(dependencies: Dependencies): Promise - removeDependencies(dependencies: RemovedDependencies): Promise - clear(): Promise - get(kind: T, uid?: string): Promise> - delete(kind: VaultStorageKind, uid: string | Uint8Array): Promise -} - -export type VaultStorageData = DProfilePic | DContinuationToken | DRecord | DRecordMetadata | DRecordNonSharedData | DTeam | DSharedFolder | DSharedFolderUser | DSharedFolderTeam | DSharedFolderRecord | DSharedFolderFolder | DUserFolder | DProfile | DReusedPasswords | DBWRecord | DBWSecurityData | DSecurityScoreData | DUser - -export type VaultStorageKind = 'profilePic' | 'record' | 'metadata' | 'non_shared_data' | 'team' | 'shared_folder' | 'shared_folder_user' | 'shared_folder_team' | 'shared_folder_record' | 'shared_folder_folder' | 'user_folder' | 'profile' | 'continuationToken' | 'reused_passwords' | 'bw_record' | 'bw_security_data' | 'security_score_data' | 'user' + put(data: VaultStorageData): Promise; + getDependencies(uid: string): Promise; + addDependencies(dependencies: Dependencies): Promise; + removeDependencies(dependencies: RemovedDependencies): Promise; + clear(): Promise; + get(kind: T, uid?: string): Promise>; + delete(kind: VaultStorageKind, uid: string | Uint8Array): Promise; +}; -export type VaultStorageResult = ( - T extends 'continuationToken' ? DContinuationToken : - T extends 'record' ? DRecord : - never -) | undefined +export type VaultStorageData = + | DProfilePic + | DContinuationToken + | DRecord + | DRecordMetadata + | DRecordNonSharedData + | DTeam + | DSharedFolder + | DSharedFolderUser + | DSharedFolderTeam + | DSharedFolderRecord + | DSharedFolderFolder + | DUserFolder + | DProfile + | DReusedPasswords + | DBWRecord + | DBWSecurityData + | DSecurityScoreData + | DUser; + +export type VaultStorageKind = + | 'profilePic' + | 'record' + | 'metadata' + | 'non_shared_data' + | 'team' + | 'shared_folder' + | 'shared_folder_user' + | 'shared_folder_team' + | 'shared_folder_record' + | 'shared_folder_folder' + | 'user_folder' + | 'profile' + | 'continuationToken' + | 'reused_passwords' + | 'bw_record' + | 'bw_security_data' + | 'security_score_data' + | 'user'; + +export type VaultStorageResult = + | (T extends 'continuationToken' ? DContinuationToken : T extends 'record' ? DRecord : never) + | undefined; type MappedCounts = { - [Property in keyof Type]: number -} + [Property in keyof Type]: number; +}; -type SyncResponseCounts = MappedCounts +type SyncResponseCounts = MappedCounts; export type SyncResult = { - started: Date - username: string - pageCount: number - counts: SyncResponseCounts - totalTime?: string - networkTime?: string - error?: string - continuationToken?: string - fullSync?: boolean -} + started: Date; + username: string; + pageCount: number; + counts: SyncResponseCounts; + totalTime?: string; + networkTime?: string; + error?: string; + continuationToken?: string; + fullSync?: boolean; +}; export type Udata = { - file_ids?: string[] -} + file_ids?: string[]; +}; export type DRecord = { - kind: 'record' - uid: string - data: any - version: number - revision: number - shared: boolean - clientModifiedTime: number - extra?: any - udata?: Udata -} + kind: 'record'; + uid: string; + data: any; + version: number; + revision: number; + shared: boolean; + clientModifiedTime: number; + extra?: any; + udata?: Udata; +}; export type DRecordMetadata = { - kind: 'metadata' - uid: string - owner: boolean - canShare: boolean - canEdit: boolean - recordKeyType: Records.RecordKeyType - ownerAccountUid?: string - ownerUsername?: string -} + kind: 'metadata'; + uid: string; + owner: boolean; + canShare: boolean; + canEdit: boolean; + recordKeyType: Records.RecordKeyType; + ownerAccountUid?: string; + ownerUsername?: string; +}; export type DTeam = { - kind: 'team' - uid: string - name: string - restrictEdit: boolean - restrictShare: boolean - restrictView: boolean -} + kind: 'team'; + uid: string; + name: string; + restrictEdit: boolean; + restrictShare: boolean; + restrictView: boolean; +}; export type DRecordNonSharedData = { - kind: 'non_shared_data' - uid: string - data: {[key: string]: any} -} + kind: 'non_shared_data'; + uid: string; + data: { [key: string]: any }; +}; export type DSharedFolder = { - kind: 'shared_folder' - uid: string - data: any - name?: string - ownerAccountUid?: string - ownerUsername?: string - revision: number - defaultCanEdit: boolean - defaultCanShare: boolean - defaultManageRecords: boolean - defaultManageUsers: boolean -} + kind: 'shared_folder'; + uid: string; + data: any; + name?: string; + ownerAccountUid?: string; + ownerUsername?: string; + revision: number; + defaultCanEdit: boolean; + defaultCanShare: boolean; + defaultManageRecords: boolean; + defaultManageUsers: boolean; +}; export type DSharedFolderUser = { - kind: 'shared_folder_user' - sharedFolderUid: string - accountUid?: string - accountUsername?: string - manageRecords: boolean - manageUsers: boolean -} + kind: 'shared_folder_user'; + sharedFolderUid: string; + accountUid?: string; + accountUsername?: string; + manageRecords: boolean; + manageUsers: boolean; +}; export type DSharedFolderTeam = { - kind: 'shared_folder_team' - sharedFolderUid: string - teamUid: string - name: string - manageRecords: boolean - manageUsers: boolean -} + kind: 'shared_folder_team'; + sharedFolderUid: string; + teamUid: string; + name: string; + manageRecords: boolean; + manageUsers: boolean; +}; export type DSharedFolderRecord = { - kind: 'shared_folder_record' - sharedFolderUid: string - recordUid: string + kind: 'shared_folder_record'; + sharedFolderUid: string; + recordUid: string; // ownerAccountUid?: Uint8Array - ownerUid: string - owner: boolean - canShare: boolean - canEdit: boolean - ownerUsername?: string -} + ownerUid: string; + owner: boolean; + canShare: boolean; + canEdit: boolean; + ownerUsername?: string; +}; export type DSharedFolderFolder = { - kind: 'shared_folder_folder' - uid: string - data: any - revision: number - sharedFolderUid: string -} + kind: 'shared_folder_folder'; + uid: string; + data: any; + revision: number; + sharedFolderUid: string; +}; export type DUserFolder = { - kind: 'user_folder' - uid: string - data: any - revision: number -} + kind: 'user_folder'; + uid: string; + data: any; + revision: number; +}; export type DReusedPasswords = { - kind: 'reused_passwords' - count: number - revision: number -} + kind: 'reused_passwords'; + count: number; + revision: number; +}; export type DProfile = { - kind: 'profile' - profileName: string - data: any - revision: number -} + kind: 'profile'; + profileName: string; + data: any; + revision: number; +}; export type DProfilePic = { - kind: 'profilePic' + kind: 'profilePic'; data: { - url: string - revision: number - } -} + url: string; + revision: number; + }; +}; export type DBWRecord = { - kind: 'bw_record' - uid: string - data: any - scannedBy?: string - scannedByAccountUid?: string - type: string - revision: number -} + kind: 'bw_record'; + uid: string; + data: any; + scannedBy?: string; + scannedByAccountUid?: string; + type: string; + revision: number; +}; export type DBWSecurityData = { - kind: 'bw_security_data' - uid: string - revision: number -} + kind: 'bw_security_data'; + uid: string; + revision: number; +}; export type DSecurityScoreData = { - kind: 'security_score_data', - uid: string, - data: any, - revision: number, -} + kind: 'security_score_data'; + uid: string; + data: any; + revision: number; +}; export type DUser = { - kind: 'user', - accountUid:Uint8Array, - username:string, -} + kind: 'user'; + accountUid: Uint8Array; + username: string; +}; export type DContinuationToken = { - kind?: 'continuationToken' - token: string - isSecurityDataFieldEmptyInFullSync?: boolean -} + kind?: 'continuationToken'; + token: string; + isSecurityDataFieldEmptyInFullSync?: boolean; +}; export type Dependency = { - kind: VaultStorageKind - parentUid: string - uid: string -} -export type DependencyMap = Record -export type Dependencies = Record> -export type RemovedDependencies = Record | '*'> + kind: VaultStorageKind; + parentUid: string; + uid: string; +}; +export type DependencyMap = Record; +export type Dependencies = Record>; +export type RemovedDependencies = Record | '*'>; const addDependencies = (dependencies: Dependencies, parentUid: string, childUid: string, kind: VaultStorageKind) => { - let children = dependencies[parentUid] + let children = dependencies[parentUid]; if (!children) { - children = new Set() - dependencies[parentUid] = children + children = new Set(); + dependencies[parentUid] = children; } children.add({ kind: kind, uid: childUid, - parentUid: parentUid - }) -} + parentUid: parentUid, + }); +}; const addRemovedDependencies = (dependencies: RemovedDependencies, parentUid: string, childUid: string) => { - let children = dependencies[parentUid] + let children = dependencies[parentUid]; if (children === '*') { - return + return; } if (!children) { - children = new Set() - dependencies[parentUid] = children + children = new Set(); + dependencies[parentUid] = children; } - children.add(childUid) -} + children.add(childUid); +}; const getDependencies = async (folderUid: string, storage: VaultStorage, results: DependencyMap) => { - const storageGetDependencies = await storage.getDependencies(folderUid) + const storageGetDependencies = await storage.getDependencies(folderUid); for await (const dependency of storageGetDependencies || []) { switch (dependency.kind) { - case "record": - results[dependency.parentUid] = dependency + case 'record': + results[dependency.parentUid] = dependency; break; - case "user_folder": - results[dependency.parentUid] = dependency - await getDependencies(dependency.uid, storage, results) + case 'user_folder': + results[dependency.parentUid] = dependency; + await getDependencies(dependency.uid, storage, results); break; default: - throw Error('Unexpected dependency: ' + dependency.kind) + throw Error('Unexpected dependency: ' + dependency.kind); } } -} +}; -const mapKeyType = (keyType: Records.RecordKeyType): { keyId: string, encryptionType: EncryptionType } | null => { - let keyId: string - let encryptionType: EncryptionType +const mapKeyType = (keyType: Records.RecordKeyType): { keyId: string; encryptionType: EncryptionType } | null => { + let keyId: string; + let encryptionType: EncryptionType; switch (keyType) { case RecordKeyType.NO_KEY: - return null + return null; case RecordKeyType.ENCRYPTED_BY_DATA_KEY: - keyId = 'data' - encryptionType = 'cbc' - break + keyId = 'data'; + encryptionType = 'cbc'; + break; case RecordKeyType.ENCRYPTED_BY_DATA_KEY_GCM: - keyId = 'data' - encryptionType = 'gcm' - break + keyId = 'data'; + encryptionType = 'gcm'; + break; // RSA TAGGED - might have to fallback to ecc or force ecc - dont make a change here, rely on keeperapp to provide the correct keyType case RecordKeyType.ENCRYPTED_BY_PUBLIC_KEY: - keyId = 'pk_rsa' - encryptionType = 'rsa' - break + keyId = 'pk_rsa'; + encryptionType = 'rsa'; + break; case RecordKeyType.ENCRYPTED_BY_PUBLIC_KEY_ECC: - keyId = 'pk_ecc' - encryptionType = 'ecc' - break + keyId = 'pk_ecc'; + encryptionType = 'ecc'; + break; default: - console.error('Unknown record key type: ' + keyType) - return null + console.error('Unknown record key type: ' + keyType); + return null; } - return {keyId, encryptionType} -} + return { keyId, encryptionType }; +}; export const processUsers = async (users: Vault.IUser[], storage: VaultStorage) => { for (const user of users as NN[]) { @@ -308,61 +342,63 @@ export const processUsers = async (users: Vault.IUser[], storage: VaultStorage) kind: 'user', accountUid: user.accountUid, username: user.username, - }) + }); } -} +}; export const processTeams = async (teams: NN[], storage: VaultStorage, dependencies: Dependencies) => { - const teamKeys: UnwrapKeyMap = {} - const teamPrivateKeys: UnwrapKeyMap = {} - const teamSharedFolderKeys: UnwrapKeyMap = {} + const teamKeys: UnwrapKeyMap = {}; + const teamPrivateKeys: UnwrapKeyMap = {}; + const teamSharedFolderKeys: UnwrapKeyMap = {}; for (const team of Object.values(teams)) { - const teamUid = webSafe64FromBytes(team.teamUid) + const teamUid = webSafe64FromBytes(team.teamUid); - const keyInfo = mapKeyType(team.teamKeyType) + const keyInfo = mapKeyType(team.teamKeyType); if (keyInfo) { - const {keyId, encryptionType} = keyInfo + const { keyId, encryptionType } = keyInfo; teamKeys[teamUid] = { data: team.teamKey, dataId: teamUid, keyId, encryptionType, unwrappedType: 'aes', - } + }; } - if(team.teamPrivateKey?.length){ + if (team.teamPrivateKey?.length) { teamPrivateKeys[teamUid + '_priv'] = { data: team.teamPrivateKey, dataId: teamUid + '_priv', keyId: teamUid, encryptionType: 'cbc', unwrappedType: 'rsa', - } + }; } - if(team.teamEccPublicKey?.length && team.teamEccPrivateKey?.length) { + if (team.teamEccPublicKey?.length && team.teamEccPrivateKey?.length) { teamPrivateKeys[teamUid + '_ecc'] = { data: new Uint8Array([...team.teamEccPublicKey, ...team.teamEccPrivateKey]), dataId: teamUid + '_ecc', keyId: teamUid, encryptionType: 'gcm', unwrappedType: 'ecc', - } + }; } - if(!team.teamPrivateKey?.length && (!team.teamEccPublicKey?.length || !team.teamEccPrivateKey?.length)){ - console.error(`Key ${team.teamKeyType} type for team folder private key ${teamUid} is not supported for team folder decryption`) + if (!team.teamPrivateKey?.length && (!team.teamEccPublicKey?.length || !team.teamEccPrivateKey?.length)) { + console.error( + `Key ${team.teamKeyType} type for team folder private key ${teamUid} is not supported for team folder decryption` + ); } for (const folderKey of team.sharedFolderKeys as NN[]) { // Empty if team being removed from shared folder - if (!folderKey.sharedFolderKey.byteLength) continue + if (!folderKey.sharedFolderKey.byteLength) continue; // Shared folder already going to be decrypted for a different team - const folderUid = webSafe64FromBytes(folderKey.sharedFolderUid) - if (teamSharedFolderKeys[folderUid]) continue + const folderUid = webSafe64FromBytes(folderKey.sharedFolderUid); + if (teamSharedFolderKeys[folderUid]) continue; switch (folderKey.keyType) { case Records.RecordKeyType.ENCRYPTED_BY_DATA_KEY: @@ -372,8 +408,8 @@ export const processTeams = async (teams: NN[], storage: VaultStorage, de keyId: teamUid, encryptionType: 'cbc', unwrappedType: 'aes', - } - break + }; + break; case Records.RecordKeyType.ENCRYPTED_BY_PUBLIC_KEY: teamSharedFolderKeys[folderUid] = { data: folderKey.sharedFolderKey, @@ -381,8 +417,8 @@ export const processTeams = async (teams: NN[], storage: VaultStorage, de keyId: teamUid + '_priv', encryptionType: 'rsa', unwrappedType: 'aes', - } - break + }; + break; case Records.RecordKeyType.ENCRYPTED_BY_PUBLIC_KEY_ECC: teamSharedFolderKeys[folderUid] = { data: folderKey.sharedFolderKey, @@ -390,14 +426,16 @@ export const processTeams = async (teams: NN[], storage: VaultStorage, de keyId: teamUid + '_ecc', encryptionType: 'ecc', unwrappedType: 'aes', - } - break + }; + break; default: - console.error(`Key ${folderKey.keyType} type for team folder key ${teamUid}/${folderUid} is not supported for team folder decryption`) - break + console.error( + `Key ${folderKey.keyType} type for team folder key ${teamUid}/${folderUid} is not supported for team folder decryption` + ); + break; } - addDependencies(dependencies, teamUid, folderUid, 'shared_folder') + addDependencies(dependencies, teamUid, folderUid, 'shared_folder'); } await storage.put({ @@ -407,118 +445,123 @@ export const processTeams = async (teams: NN[], storage: VaultStorage, de restrictEdit: team.restrictEdit, restrictShare: team.restrictShare, restrictView: team.restrictView, - }) + }); } // Unwrap in order of dependency - await platform.unwrapKeys(teamKeys, storage) - await platform.unwrapKeys(teamPrivateKeys, storage) - await platform.unwrapKeys(teamSharedFolderKeys, storage) -} + await platform.unwrapKeys(teamKeys, storage); + await platform.unwrapKeys(teamPrivateKeys, storage); + await platform.unwrapKeys(teamSharedFolderKeys, storage); +}; -const processFolder = async (folderUid: string, fData: Uint8Array, shared: boolean, storage: VaultStorage): Promise => { +const processFolder = async ( + folderUid: string, + fData: Uint8Array, + shared: boolean, + storage: VaultStorage +): Promise => { try { - const decryptedData = await platform.decrypt(fData, folderUid, 'cbc', storage) - return JSON.parse(platform.bytesToString(decryptedData)) + const decryptedData = await platform.decrypt(fData, folderUid, 'cbc', storage); + return JSON.parse(platform.bytesToString(decryptedData)); } catch (e: any) { - console.error(`The ${shared ? 'shared ' : ''}folder ${folderUid} data cannot be decrypted (${e.message})`) + console.error(`The ${shared ? 'shared ' : ''}folder ${folderUid} data cannot be decrypted (${e.message})`); } -} +}; const processUserFolders = async (folders: IUserFolder[], storage: VaultStorage, dependencies: Dependencies) => { - const folderKeys: UnwrapKeyMap = {} + const folderKeys: UnwrapKeyMap = {}; for (const folder of folders as NN[]) { - const {userFolderKey, keyType} = folder - const folderUid = webSafe64FromBytes(folder.folderUid) + const { userFolderKey, keyType } = folder; + const folderUid = webSafe64FromBytes(folder.folderUid); - const keyInfo = mapKeyType(keyType) + const keyInfo = mapKeyType(keyType); if (keyInfo) { - const {keyId, encryptionType} = keyInfo + const { keyId, encryptionType } = keyInfo; folderKeys[folderUid] = { data: userFolderKey, dataId: folderUid, keyId, encryptionType, - unwrappedType: 'aes' - } + unwrappedType: 'aes', + }; } } - await platform.unwrapKeys(folderKeys, storage) + await platform.unwrapKeys(folderKeys, storage); for (const folder of folders as NN[]) { - const folderUid = webSafe64FromBytes(folder.folderUid) - const folderData = await processFolder(folderUid, folder.data, false, storage) + const folderUid = webSafe64FromBytes(folder.folderUid); + const folderData = await processFolder(folderUid, folder.data, false, storage); if (!folderData) { - continue + continue; } await storage.put({ kind: 'user_folder', uid: folderUid, data: folderData, - revision: folder.revision - }) + revision: folder.revision, + }); if (folder.parentUid.length > 0) { - addDependencies(dependencies, webSafe64FromBytes(folder.parentUid), folderUid, 'user_folder') + addDependencies(dependencies, webSafe64FromBytes(folder.parentUid), folderUid, 'user_folder'); } } -} +}; const processUserFolderRecords = async (folderRecords: IUserFolderRecord[], dependencies: Dependencies) => { for (const folderRecord of folderRecords as NN[]) { - const recUid = webSafe64FromBytes(folderRecord.recordUid) + const recUid = webSafe64FromBytes(folderRecord.recordUid); if (folderRecord.folderUid?.length > 0) { - addDependencies(dependencies, webSafe64FromBytes(folderRecord.folderUid), recUid, 'record') + addDependencies(dependencies, webSafe64FromBytes(folderRecord.folderUid), recUid, 'record'); } else { // Root user folder - addDependencies(dependencies, '', recUid, 'record') + addDependencies(dependencies, '', recUid, 'record'); } } -} +}; const processSharedFolders = async (folders: ISharedFolder[], storage: VaultStorage) => { - const sharedFolderKeys: UnwrapKeyMap = {} + const sharedFolderKeys: UnwrapKeyMap = {}; for (const folder of folders as NN[]) { - const {sharedFolderKey, keyType} = folder - const sharedFolderUid = webSafe64FromBytes(folder.sharedFolderUid) + const { sharedFolderKey, keyType } = folder; + const sharedFolderUid = webSafe64FromBytes(folder.sharedFolderUid); - const keyInfo = mapKeyType(keyType) + const keyInfo = mapKeyType(keyType); if (keyInfo) { - const {keyId, encryptionType} = keyInfo + const { keyId, encryptionType } = keyInfo; sharedFolderKeys[sharedFolderUid] = { data: sharedFolderKey, dataId: sharedFolderUid, keyId, encryptionType, - unwrappedType: 'aes' - } + unwrappedType: 'aes', + }; } } - await platform.unwrapKeys(sharedFolderKeys, storage) + await platform.unwrapKeys(sharedFolderKeys, storage); for (const folder of folders as NN[]) { - const folderUid = webSafe64FromBytes(folder.sharedFolderUid) + const folderUid = webSafe64FromBytes(folder.sharedFolderUid); // name - let folderName: string | undefined + let folderName: string | undefined; if (folder.name.length) { try { - const folderNameBytes = await platform.decrypt(folder.name, folderUid, 'cbc', storage) - folderName = platform.bytesToString(folderNameBytes) + const folderNameBytes = await platform.decrypt(folder.name, folderUid, 'cbc', storage); + folderName = platform.bytesToString(folderNameBytes); } catch (e: any) { - console.error(`The shared folder ${folderUid} name cannot be decrypted (${e.message})`) + console.error(`The shared folder ${folderUid} name cannot be decrypted (${e.message})`); } } // data - let folderData = await processFolder(folderUid, folder.data, true, storage) + let folderData = await processFolder(folderUid, folder.data, true, storage); if (!folderName && !folderData) { - continue + continue; } - const ownerUid = folder.ownerAccountUid ? webSafe64FromBytes(folder.ownerAccountUid) : undefined + const ownerUid = folder.ownerAccountUid ? webSafe64FromBytes(folder.ownerAccountUid) : undefined; await storage.put({ kind: 'shared_folder', uid: folderUid, @@ -531,9 +574,9 @@ const processSharedFolders = async (folders: ISharedFolder[], storage: VaultStor defaultManageRecords: folder.defaultManageRecords, ownerAccountUid: ownerUid, ownerUsername: folder.owner, - }) + }); } -} +}; const processSharedFolderUsers = async (users: ISharedFolderUser[], storage: VaultStorage) => { for (const user of users as NN[]) { @@ -544,14 +587,14 @@ const processSharedFolderUsers = async (users: ISharedFolderUser[], storage: Vau accountUsername: user.username, manageRecords: user.manageRecords, manageUsers: user.manageUsers, - }) + }); } -} +}; const processSharedFolderTeams = async (sharedFolderTeams: ISharedFolderTeam[], storage: VaultStorage) => { for (const sharedFolderTeam of sharedFolderTeams as NN[]) { - const teamUid = webSafe64FromBytes(sharedFolderTeam.teamUid) - const sharedFolderUid = webSafe64FromBytes(sharedFolderTeam.sharedFolderUid) + const teamUid = webSafe64FromBytes(sharedFolderTeam.teamUid); + const sharedFolderUid = webSafe64FromBytes(sharedFolderTeam.sharedFolderUid); await storage.put({ kind: 'shared_folder_team', @@ -560,33 +603,33 @@ const processSharedFolderTeams = async (sharedFolderTeams: ISharedFolderTeam[], name: sharedFolderTeam.name, manageRecords: sharedFolderTeam.manageRecords, manageUsers: sharedFolderTeam.manageUsers, - }) + }); } -} +}; const processSharedFolderRecords = async (records: ISharedFolderRecord[], storage: VaultStorage) => { for (const rec of records as NN[]) { - const recUid = webSafe64FromBytes(rec.recordUid) + const recUid = webSafe64FromBytes(rec.recordUid); - let encryptionType: EncryptionType | undefined + let encryptionType: EncryptionType | undefined; switch (rec.recordKey.length) { case 60: - encryptionType = 'gcm' - break + encryptionType = 'gcm'; + break; case 64: - encryptionType = 'cbc' - break + encryptionType = 'cbc'; + break; default: - console.error('Unable to detect the shared folder key encryption type') + console.error('Unable to detect the shared folder key encryption type'); } try { - const sharedFolderUid = webSafe64FromBytes(rec.sharedFolderUid) + const sharedFolderUid = webSafe64FromBytes(rec.sharedFolderUid); if (encryptionType) { - await platform.unwrapKey(rec.recordKey, recUid, sharedFolderUid, encryptionType, 'aes', storage) + await platform.unwrapKey(rec.recordKey, recUid, sharedFolderUid, encryptionType, 'aes', storage); } - const ownerUid = webSafe64FromBytes(rec.ownerAccountUid) + const ownerUid = webSafe64FromBytes(rec.ownerAccountUid); await storage.put({ kind: 'shared_folder_record', recordUid: recUid, @@ -596,67 +639,76 @@ const processSharedFolderRecords = async (records: ISharedFolderRecord[], storag canEdit: rec.owner ? true : rec.canEdit, canShare: rec.owner ? true : rec.canShare, ownerUsername: rec.ownerUsername, - }) + }); } catch (e: any) { - console.error(`The shared folder record ${recUid} cannot be decrypted (${e.message})`) + console.error(`The shared folder record ${recUid} cannot be decrypted (${e.message})`); } } -} +}; const processSharedFolderFolderRecords = async (records: ISharedFolderFolderRecord[], dependencies: Dependencies) => { for (const rec of records as NN[]) { - const parentUid = rec.folderUid.length > 0 ? webSafe64FromBytes(rec.folderUid) : webSafe64FromBytes(rec.sharedFolderUid) - addDependencies(dependencies, parentUid, webSafe64FromBytes(rec.recordUid), 'record') + const parentUid = + rec.folderUid.length > 0 ? webSafe64FromBytes(rec.folderUid) : webSafe64FromBytes(rec.sharedFolderUid); + addDependencies(dependencies, parentUid, webSafe64FromBytes(rec.recordUid), 'record'); } -} +}; const processUserFolderSharedFolders = async (folders: IUserFolderSharedFolder[], dependencies: Dependencies) => { for (const folder of folders as NN[]) { - const folderUid = webSafe64FromBytes(folder.folderUid) - const sharedFolderUid = webSafe64FromBytes(folder.sharedFolderUid) + const folderUid = webSafe64FromBytes(folder.folderUid); + const sharedFolderUid = webSafe64FromBytes(folder.sharedFolderUid); if (folderUid.length > 0) { - addDependencies(dependencies, folderUid, sharedFolderUid, 'shared_folder') + addDependencies(dependencies, folderUid, sharedFolderUid, 'shared_folder'); } } -} +}; const processRecordLinks = async (links: IRecordLink[], storage: VaultStorage) => { for (const link of links as NN[]) { - const recUid = webSafe64FromBytes(link.childRecordUid) + const recUid = webSafe64FromBytes(link.childRecordUid); try { - await platform.unwrapKey(link.recordKey, recUid, webSafe64FromBytes(link.parentRecordUid), 'gcm', 'aes', storage, true) + await platform.unwrapKey( + link.recordKey, + recUid, + webSafe64FromBytes(link.parentRecordUid), + 'gcm', + 'aes', + storage, + true + ); } catch (e: any) { - console.error(`The record link for ${recUid} cannot be decrypted (${e.message})`) + console.error(`The record link for ${recUid} cannot be decrypted (${e.message})`); } } -} +}; const processRecords = async (records: IRecord[], storage: VaultStorage) => { for (const rec of records as NN[]) { - const recUid = webSafe64FromBytes(rec.recordUid) - const encryptionType: EncryptionType = rec.version >= 3 ? 'gcm' : 'cbc' + const recUid = webSafe64FromBytes(rec.recordUid); + const encryptionType: EncryptionType = rec.version >= 3 ? 'gcm' : 'cbc'; - let extra: any - let udata: Udata | undefined + let extra: any; + let udata: Udata | undefined; try { if (rec.extra.byteLength > 0) { - const decryptedExtra = await platform.decrypt(rec.extra, recUid, encryptionType, storage) - extra = JSON.parse(platform.bytesToString(decryptedExtra)) + const decryptedExtra = await platform.decrypt(rec.extra, recUid, encryptionType, storage); + extra = JSON.parse(platform.bytesToString(decryptedExtra)); } } catch (e: any) { - console.error(`The record extra data ${recUid} cannot be decrypted (${e.message})`) + console.error(`The record extra data ${recUid} cannot be decrypted (${e.message})`); } try { if (!!rec.udata) { - udata = JSON.parse(rec.udata) + udata = JSON.parse(rec.udata); } } catch { - console.error('failed to parse the udata') + console.error('failed to parse the udata'); } try { - const decryptedData = await platform.decrypt(rec.data, recUid, encryptionType, storage) - const recordData = JSON.parse(platform.bytesToString(decryptedData)) + const decryptedData = await platform.decrypt(rec.data, recUid, encryptionType, storage); + const recordData = JSON.parse(platform.bytesToString(decryptedData)); await storage.put({ kind: 'record', uid: recUid, @@ -667,542 +719,578 @@ const processRecords = async (records: IRecord[], storage: VaultStorage) => { extra, clientModifiedTime: rec.clientModifiedTime, udata, - }) + }); } catch (e: any) { - console.error(`The record ${recUid} cannot be decrypted (${e.message})`) + console.error(`The record ${recUid} cannot be decrypted (${e.message})`); } } -} +}; const processNonSharedData = async (nonSharedData: INonSharedData[], storage: VaultStorage) => { for (const nsData of nonSharedData as NN[]) { - const recUid = webSafe64FromBytes(nsData.recordUid) + const recUid = webSafe64FromBytes(nsData.recordUid); try { if (!nsData.data.byteLength) { await storage.put({ kind: 'non_shared_data', uid: recUid, data: {}, - }) - continue + }); + continue; } - const rec = await storage.get('record', recUid) - if (!rec) throw new Error('Missing record in storage') + const rec = await storage.get('record', recUid); + if (!rec) throw new Error('Missing record in storage'); // While generally v3 nsData will be gcm encrypted, and v2 will be cbc encrypted, there's a case // where a record that has been shared to you has been converted from v2 to v3, leaving the nsData // still cbc encrypted. So, we fallback to cbc if gcm fails. - const encryptionTypes: EncryptionType[] = rec.version >= 3 ? ['gcm', 'cbc'] : ['cbc'] - let decryptedNsData: Uint8Array | undefined - const errorMessages: string[] = [] + const encryptionTypes: EncryptionType[] = rec.version >= 3 ? ['gcm', 'cbc'] : ['cbc']; + let decryptedNsData: Uint8Array | undefined; + const errorMessages: string[] = []; for (const encryptionType of encryptionTypes) { try { - decryptedNsData = await platform.decrypt(nsData.data, 'data', encryptionType, storage) - break // exit on successful decryption + decryptedNsData = await platform.decrypt(nsData.data, 'data', encryptionType, storage); + break; // exit on successful decryption } catch (e) { - const message = e instanceof Error ? e.message : String(e) - errorMessages.push(message) + const message = e instanceof Error ? e.message : String(e); + errorMessages.push(message); } } - if (!decryptedNsData) throw new Error(errorMessages.join('\n')) + if (!decryptedNsData) throw new Error(errorMessages.join('\n')); - const data = JSON.parse(platform.bytesToString(decryptedNsData)) + const data = JSON.parse(platform.bytesToString(decryptedNsData)); await storage.put({ kind: 'non_shared_data', uid: recUid, data: data, - }) + }); } catch (e: any) { - console.error(`The non shared data ${recUid} cannot be decrypted (${e.message})`) + console.error(`The non shared data ${recUid} cannot be decrypted (${e.message})`); } } -} +}; const processReusedPasswords = async (reusedPasswords: IReusedPasswords | null | undefined, storage: VaultStorage) => { try { - if (!reusedPasswords) return + if (!reusedPasswords) return; await storage.put({ - kind: 'reused_passwords', - count: reusedPasswords.count, - revision: reusedPasswords.revision - }) + kind: 'reused_passwords', + count: reusedPasswords.count, + revision: reusedPasswords.revision, + }); } catch (e: any) { - console.error(`Could not process reusedPasswords (${e.message})`) + console.error(`Could not process reusedPasswords (${e.message})`); } -} +}; const processProfile = async (profile: IProfile | null | undefined, storage: VaultStorage) => { try { - if (!profile) return + if (!profile) return; - const prof = profile as NN - const decryptedProfileData = await platform.decrypt(prof.data, 'data', 'cbc', storage) - const profileData = JSON.parse(platform.bytesToString(decryptedProfileData)) + const prof = profile as NN; + const decryptedProfileData = await platform.decrypt(prof.data, 'data', 'cbc', storage); + const profileData = JSON.parse(platform.bytesToString(decryptedProfileData)); await storage.put({ kind: 'profile', profileName: prof.profileName, data: profileData, revision: prof.revision, - }) + }); } catch (e: any) { - console.error(`Profile cannot be decrypted (${e.message})`) + console.error(`Profile cannot be decrypted (${e.message})`); } -} +}; const processProfilePic = async (profilePic, storage) => { try { - if (!profilePic) - return; + if (!profilePic) return; await storage.put({ kind: 'profilePic', data: profilePic, }); - } - catch (e: any) { + } catch (e: any) { console.error(`Profile picture cannot be decrypted (${e.message})`); } }; -const processSharedFolderFolders = async (folders: ISharedFolderFolder[], storage: VaultStorage, dependencies: Dependencies) => { +const processSharedFolderFolders = async ( + folders: ISharedFolderFolder[], + storage: VaultStorage, + dependencies: Dependencies +) => { for (const folder of folders as NN[]) { - const sharedFolderUid = webSafe64FromBytes(folder.sharedFolderUid) - const folderUid = webSafe64FromBytes(folder.folderUid) + const sharedFolderUid = webSafe64FromBytes(folder.sharedFolderUid); + const folderUid = webSafe64FromBytes(folder.folderUid); - const keyInfo = mapKeyType(folder.keyType) - if (!keyInfo) continue + const keyInfo = mapKeyType(folder.keyType); + if (!keyInfo) continue; try { - const {encryptionType} = keyInfo - await platform.unwrapKey(folder.sharedFolderFolderKey, folderUid, sharedFolderUid, encryptionType, 'aes', storage) + const { encryptionType } = keyInfo; + await platform.unwrapKey( + folder.sharedFolderFolderKey, + folderUid, + sharedFolderUid, + encryptionType, + 'aes', + storage + ); } catch (e: any) { - console.error(`The shared folder folder key for ${folderUid} cannot be decrypted (${e.message})`) + console.error(`The shared folder folder key for ${folderUid} cannot be decrypted (${e.message})`); } try { - const decryptedData = await platform.decrypt(folder.data, folderUid, 'cbc', storage) - const folderData = JSON.parse(platform.bytesToString(decryptedData)) + const decryptedData = await platform.decrypt(folder.data, folderUid, 'cbc', storage); + const folderData = JSON.parse(platform.bytesToString(decryptedData)); await storage.put({ kind: 'shared_folder_folder', uid: folderUid, data: folderData, revision: folder.revision, sharedFolderUid, - }) + }); if (folder.parentUid.length > 0) { - addDependencies(dependencies, webSafe64FromBytes(folder.parentUid), folderUid, 'shared_folder_folder') + addDependencies(dependencies, webSafe64FromBytes(folder.parentUid), folderUid, 'shared_folder_folder'); } } catch (e: any) { - console.error(`The folder folder ${folderUid} cannot be decrypted (${e.message})`) + console.error(`The folder folder ${folderUid} cannot be decrypted (${e.message})`); } } -} +}; const processRemovedUserFolderRecords = (records: IUserFolderRecord[], dependencies: RemovedDependencies) => { for (const record of records as Vault.UserFolderRecord[]) { - const folderUid = webSafe64FromBytes(record.folderUid) - const recordUid = webSafe64FromBytes(record.recordUid) - addRemovedDependencies(dependencies, folderUid, recordUid) + const folderUid = webSafe64FromBytes(record.folderUid); + const recordUid = webSafe64FromBytes(record.recordUid); + addRemovedDependencies(dependencies, folderUid, recordUid); } -} +}; -const processRemovedSharedFolderFolders = async (folders: Vault.ISharedFolderFolder[], storage: VaultStorage, dependencies: RemovedDependencies) => { +const processRemovedSharedFolderFolders = async ( + folders: Vault.ISharedFolderFolder[], + storage: VaultStorage, + dependencies: RemovedDependencies +) => { for (const folder of folders as NN[]) { - const sharedFolderUid = webSafe64FromBytes(folder.sharedFolderUid) - const folderUid = webSafe64FromBytes(folder.folderUid) - await storage.delete('user_folder', folderUid) - dependencies[folderUid] = '*' - addRemovedDependencies(dependencies, sharedFolderUid, folderUid) + const sharedFolderUid = webSafe64FromBytes(folder.sharedFolderUid); + const folderUid = webSafe64FromBytes(folder.folderUid); + await storage.delete('user_folder', folderUid); + dependencies[folderUid] = '*'; + addRemovedDependencies(dependencies, sharedFolderUid, folderUid); if (folder.parentUid.length > 0) { - addRemovedDependencies(dependencies, webSafe64FromBytes(folder.parentUid), folderUid) + addRemovedDependencies(dependencies, webSafe64FromBytes(folder.parentUid), folderUid); } } -} +}; -const processRemovedSharedFolderTeams = async (sharedFolderTeams: ISharedFolderTeam[], dependencies: RemovedDependencies) => { +const processRemovedSharedFolderTeams = async ( + sharedFolderTeams: ISharedFolderTeam[], + dependencies: RemovedDependencies +) => { for (const sharedFolderTeam of sharedFolderTeams as NN[]) { - const sharedFolderUid = webSafe64FromBytes(sharedFolderTeam.sharedFolderUid) - const teamUid = webSafe64FromBytes(sharedFolderTeam.teamUid) - addRemovedDependencies(dependencies, sharedFolderUid, teamUid) + const sharedFolderUid = webSafe64FromBytes(sharedFolderTeam.sharedFolderUid); + const teamUid = webSafe64FromBytes(sharedFolderTeam.teamUid); + addRemovedDependencies(dependencies, sharedFolderUid, teamUid); } -} +}; const processRemovedSharedFolderUsers = (users: ISharedFolderUser[], dependencies: RemovedDependencies) => { for (const user of users as NN[]) { - const sharedFolderUid = webSafe64FromBytes(user.sharedFolderUid) - addRemovedDependencies(dependencies, sharedFolderUid, webSafe64FromBytes(user.accountUid)) + const sharedFolderUid = webSafe64FromBytes(user.sharedFolderUid); + addRemovedDependencies(dependencies, sharedFolderUid, webSafe64FromBytes(user.accountUid)); } -} +}; -const processRemovedSharedFolderRecords = async (records: ISharedFolderRecord[], storage: VaultStorage, dependencies: RemovedDependencies) => { +const processRemovedSharedFolderRecords = async ( + records: ISharedFolderRecord[], + storage: VaultStorage, + dependencies: RemovedDependencies +) => { for (const record of records as NN[]) { - const sharedFolderUid = webSafe64FromBytes(record.sharedFolderUid) - const recordUid = webSafe64FromBytes(record.recordUid) - addRemovedDependencies(dependencies, sharedFolderUid, recordUid) + const sharedFolderUid = webSafe64FromBytes(record.sharedFolderUid); + const recordUid = webSafe64FromBytes(record.recordUid); + addRemovedDependencies(dependencies, sharedFolderUid, recordUid); } -} +}; -const processRemovedSharedFolderFolderRecords = async (records: ISharedFolderFolderRecord[], storage: VaultStorage, dependencies: RemovedDependencies) => { +const processRemovedSharedFolderFolderRecords = async ( + records: ISharedFolderFolderRecord[], + storage: VaultStorage, + dependencies: RemovedDependencies +) => { for (const record of records as NN[]) { - const sharedFolderFolderUid = webSafe64FromBytes(record.folderUid) - const recordUid = webSafe64FromBytes(record.recordUid) - addRemovedDependencies(dependencies, sharedFolderFolderUid, recordUid) + const sharedFolderFolderUid = webSafe64FromBytes(record.folderUid); + const recordUid = webSafe64FromBytes(record.recordUid); + addRemovedDependencies(dependencies, sharedFolderFolderUid, recordUid); } -} +}; const processMetadata = async (recordMetaData: IRecordMetaData[], storage: VaultStorage) => { - const recordKeys: UnwrapKeyMap = {} + const recordKeys: UnwrapKeyMap = {}; for (const mData of recordMetaData as NN[]) { - const recUid = webSafe64FromBytes(mData.recordUid) + const recUid = webSafe64FromBytes(mData.recordUid); try { - const keyInfo = mapKeyType(mData.recordKeyType) + const keyInfo = mapKeyType(mData.recordKeyType); if (keyInfo) { - const {keyId, encryptionType} = keyInfo + const { keyId, encryptionType } = keyInfo; recordKeys[recUid] = { data: mData.recordKey, dataId: recUid, keyId, encryptionType, - unwrappedType: 'aes' - } + unwrappedType: 'aes', + }; } - const ownerUid = mData.ownerAccountUid ? webSafe64FromBytes(mData.ownerAccountUid) : undefined + const ownerUid = mData.ownerAccountUid ? webSafe64FromBytes(mData.ownerAccountUid) : undefined; await storage.put({ - kind: 'metadata', - uid: recUid, - canEdit: mData.canEdit, - canShare: mData.canShare, - owner: mData.owner, - recordKeyType: mData.recordKeyType, - ownerAccountUid: ownerUid, - ownerUsername: mData.ownerUsername, - }) + kind: 'metadata', + uid: recUid, + canEdit: mData.canEdit, + canShare: mData.canShare, + owner: mData.owner, + recordKeyType: mData.recordKeyType, + ownerAccountUid: ownerUid, + ownerUsername: mData.ownerUsername, + }); } catch (e: any) { - console.error(`The record metadata ${recUid} cannot be decrypted (${e.message})`) + console.error(`The record metadata ${recUid} cannot be decrypted (${e.message})`); } } - await platform.unwrapKeys(recordKeys, storage) -} + await platform.unwrapKeys(recordKeys, storage); +}; const processBreachWatchRecords = async (bwRecords: IBreachWatchRecord[], storage: VaultStorage) => { for (const bwRecord of bwRecords as NN[]) { - if (!bwRecord.recordUid) continue + if (!bwRecord.recordUid) continue; - const recUid = webSafe64FromBytes(bwRecord.recordUid) + const recUid = webSafe64FromBytes(bwRecord.recordUid); try { - const {data} = bwRecord - const decrypted = await platform.decrypt(data, recUid, 'gcm', storage) - const decoded = Tokens.BreachWatchData.decode(decrypted) - const obj = Tokens.BreachWatchData.toObject(decoded) + const { data } = bwRecord; + const decrypted = await platform.decrypt(data, recUid, 'gcm', storage); + const decoded = Tokens.BreachWatchData.decode(decrypted); + const obj = Tokens.BreachWatchData.toObject(decoded); await storage.put({ - kind: 'bw_record', - uid: recUid, - data: obj, - scannedBy: bwRecord.scannedBy ? bwRecord.scannedBy : undefined, - scannedByAccountUid: bwRecord.scannedByAccountUid ? webSafe64FromBytes(bwRecord.scannedByAccountUid) : undefined, - type: 'RECORD', - revision: bwRecord.revision as number - }) + kind: 'bw_record', + uid: recUid, + data: obj, + scannedBy: bwRecord.scannedBy ? bwRecord.scannedBy : undefined, + scannedByAccountUid: bwRecord.scannedByAccountUid + ? webSafe64FromBytes(bwRecord.scannedByAccountUid) + : undefined, + type: 'RECORD', + revision: bwRecord.revision as number, + }); } catch (e: any) { - console.error(`Breach watch record ${recUid} cannot be decrypted (${e.message})`) + console.error(`Breach watch record ${recUid} cannot be decrypted (${e.message})`); } } -} +}; const processBreachWatchSecurityData = async (securityData: IBreachWatchSecurityData[], storage: VaultStorage) => { for (const bwSecurityData of securityData as NN[]) { - const uid = webSafe64FromBytes(bwSecurityData.recordUid) + const uid = webSafe64FromBytes(bwSecurityData.recordUid); try { await storage.put({ - kind: 'bw_security_data', - uid, - revision: bwSecurityData.revision as number - }) + kind: 'bw_security_data', + uid, + revision: bwSecurityData.revision as number, + }); } catch (e: any) { - console.error(`Breach watch security data ${uid} cannot be processed (${e.message})`) + console.error(`Breach watch security data ${uid} cannot be processed (${e.message})`); } } -} +}; const processSecurityScoreData = async (securityScoreDataList: Vault.ISecurityScoreData[], storage: VaultStorage) => { for (const securityScoreData of securityScoreDataList) { - if ( - !securityScoreData.recordUid - || typeof securityScoreData.revision !== 'number' - ) continue + if (!securityScoreData.recordUid || typeof securityScoreData.revision !== 'number') continue; - const recUid = webSafe64FromBytes(securityScoreData.recordUid) + const recUid = webSafe64FromBytes(securityScoreData.recordUid); if (!securityScoreData.data || securityScoreData.data.length === 0) { - await storage.delete('security_score_data', recUid) - continue + await storage.delete('security_score_data', recUid); + continue; } try { - const decrypted = await platform.decrypt(securityScoreData.data, recUid, 'gcm', storage) - const securityScoreDataObj = JSON.parse(platform.bytesToString(decrypted)) + const decrypted = await platform.decrypt(securityScoreData.data, recUid, 'gcm', storage); + const securityScoreDataObj = JSON.parse(platform.bytesToString(decrypted)); await storage.put({ kind: 'security_score_data', uid: recUid, revision: securityScoreData.revision, data: securityScoreDataObj, - }) + }); } catch (e: any) { - console.error( - `The security score data ${recUid} cannot be decrypted (${e.message})` - ) + console.error(`The security score data ${recUid} cannot be decrypted (${e.message})`); } } -} +}; -export type SyncLogFormat = '!' | 'raw' | 'obj' | 'str' | 'cnt' | 'cnt_t' +export type SyncLogFormat = '!' | 'raw' | 'obj' | 'str' | 'cnt' | 'cnt_t'; const logProtobuf = (data: any, format: SyncLogFormat, seqNo: number, counts: any) => { switch (format) { case '!': - return + return; case 'raw': - console.log(data) - break + console.log(data); + break; case 'obj': - console.log(JSON.parse(JSON.stringify(data))) - break + console.log(JSON.parse(JSON.stringify(data))); + break; case 'str': - console.log(JSON.stringify(data)) - break + console.log(JSON.stringify(data)); + break; case 'cnt_t': case 'cnt': if (format === 'cnt_t') { - console.log('continuationToken: ', platform.bytesToBase64(data.continuationToken)) + console.log('continuationToken: ', platform.bytesToBase64(data.continuationToken)); } console.log({ seq: seqNo, - ...counts - }) - break + ...counts, + }); + break; } -} +}; const getCounts = (obj: Vault.ISyncDownResponse): SyncResponseCounts => { - const results = {} + const results = {}; for (const prop in obj) { if (['continuationToken', 'constructor'].includes(prop)) { - continue + continue; } if (obj[prop]?.length) { - results[prop] = obj[prop].length + results[prop] = obj[prop].length; } } - return results -} + return results; +}; const addCounts = (totalCounts: SyncResponseCounts, counts: SyncResponseCounts) => { for (const prop in counts) { - totalCounts[prop] = (totalCounts[prop] || 0) + counts[prop] + totalCounts[prop] = (totalCounts[prop] || 0) + counts[prop]; } -} +}; export type SyncDownOptions = { - auth: Auth, - storage: VaultStorage - maxCalls?: number - logFormat?: SyncLogFormat + auth: Auth; + storage: VaultStorage; + maxCalls?: number; + logFormat?: SyncLogFormat; /** * Only supported in browser platform */ - useWorkers?: boolean - workerOptions?: CryptoWorkerOptions - controller?: SyncController -} + useWorkers?: boolean; + workerOptions?: CryptoWorkerOptions; + controller?: SyncController; +}; export class SyncController { - aborted: boolean = false + aborted: boolean = false; abort() { - this.aborted = true + this.aborted = true; } throwIfAborted() { if (this.aborted) { - throw new Error('sync_aborted') + throw new Error('sync_aborted'); } } } // Intercepts all property access to given object abort execution if needed -function wrapObjWithProxy (obj: T, controller?: SyncController): T { +function wrapObjWithProxy(obj: T, controller?: SyncController): T { return new Proxy(obj, { get(target, prop, receiver) { - controller?.throwIfAborted() - return Reflect.get(target, prop, receiver) - } - }) + controller?.throwIfAborted(); + return Reflect.get(target, prop, receiver); + }, + }); } export const syncDown = async (options: SyncDownOptions): Promise => { - const {auth, useWorkers, controller} = options - const totalCounts = {} + const { auth, useWorkers, controller } = options; + const totalCounts = {}; let result: SyncResult = { started: new Date(), username: auth.username, counts: totalCounts, pageCount: 0, - } - let networkTime = 0 + }; + let networkTime = 0; try { - const storage = wrapObjWithProxy(options.storage, controller) - const dToken = await storage.get('continuationToken') - let continuationToken = dToken ? platform.base64ToBytes(dToken.token) : undefined - - await platform.importKey('data', auth.dataKey!, undefined, true) - await platform.importKeyEC('pk_ecc', new Uint8Array(auth.eccPrivateKey!), new Uint8Array(auth.eccPublicKey!), undefined, true) - await platform.importKeyRSA('pk_rsa', auth.privateKey!, undefined, true) + const storage = wrapObjWithProxy(options.storage, controller); + const dToken = await storage.get('continuationToken'); + let continuationToken = dToken ? platform.base64ToBytes(dToken.token) : undefined; + + await platform.importKey('data', auth.dataKey!, undefined, true); + await platform.importKeyEC( + 'pk_ecc', + new Uint8Array(auth.eccPrivateKey!), + new Uint8Array(auth.eccPublicKey!), + undefined, + true + ); + await platform.importKeyRSA('pk_rsa', auth.privateKey!, undefined, true); while (true) { const msg = syncDownMessage({ - continuationToken - }) - let requestTime = Date.now() - const resp = wrapObjWithProxy(await auth.executeRest(msg), controller) - requestTime = Date.now() - requestTime - const counts = getCounts(resp) - addCounts(totalCounts, counts) - logProtobuf(resp, options.logFormat || '!', result.pageCount, counts) + continuationToken, + }); + let requestTime = Date.now(); + const resp = wrapObjWithProxy(await auth.executeRest(msg), controller); + requestTime = Date.now() - requestTime; + const counts = getCounts(resp); + addCounts(totalCounts, counts); + logProtobuf(resp, options.logFormat || '!', result.pageCount, counts); if (resp.cacheStatus == CacheStatus.CLEAR) { - platform.unloadNonUserKeys() - await storage.clear() - result.fullSync = true + platform.unloadNonUserKeys(); + await storage.clear(); + result.fullSync = true; } if (result.pageCount === 0 && useWorkers && platform.supportsConcurrency && resp.hasMore) { try { - const workerOptions = options.workerOptions || {} - await platform.createCryptoWorker(storage, workerOptions) + const workerOptions = options.workerOptions || {}; + await platform.createCryptoWorker(storage, workerOptions); } catch (e) { - console.error(e) + console.error(e); } } - result.pageCount += 1 - networkTime += requestTime - const dependencies = {} + result.pageCount += 1; + networkTime += requestTime; + const dependencies = {}; + + await processUsers(resp.users, storage); - await processUsers(resp.users, storage) + await processTeams(resp.teams as NN[], storage, dependencies); - await processTeams(resp.teams as NN[], storage, dependencies) + await processUserFolders(resp.userFolders, storage, dependencies); - await processUserFolders(resp.userFolders, storage, dependencies) + await processUserFolderRecords(resp.userFolderRecords, dependencies); - await processUserFolderRecords(resp.userFolderRecords, dependencies) + await processSharedFolders(resp.sharedFolders, storage); - await processSharedFolders(resp.sharedFolders, storage) + await processSharedFolderUsers(resp.sharedFolderUsers, storage); - await processSharedFolderUsers(resp.sharedFolderUsers, storage) + await processSharedFolderTeams(resp.sharedFolderTeams, storage); - await processSharedFolderTeams(resp.sharedFolderTeams, storage) + await processSharedFolderRecords(resp.sharedFolderRecords, storage); - await processSharedFolderRecords(resp.sharedFolderRecords, storage) + await processSharedFolderFolderRecords(resp.sharedFolderFolderRecords, dependencies); - await processSharedFolderFolderRecords(resp.sharedFolderFolderRecords, dependencies) + await processUserFolderSharedFolders(resp.userFolderSharedFolders, dependencies); - await processUserFolderSharedFolders(resp.userFolderSharedFolders, dependencies) + await processMetadata(resp.recordMetaData, storage); - await processMetadata(resp.recordMetaData, storage) + await processRecordLinks(resp.recordLinks, storage); - await processRecordLinks(resp.recordLinks, storage) + await processRecords(resp.records, storage); - await processRecords(resp.records, storage) + await processNonSharedData(resp.nonSharedData, storage); - await processNonSharedData(resp.nonSharedData, storage) + await processSharedFolderFolders(resp.sharedFolderFolders, storage, dependencies); - await processSharedFolderFolders(resp.sharedFolderFolders, storage, dependencies) + await processReusedPasswords(resp.reusedPasswords, storage); - await processReusedPasswords(resp.reusedPasswords, storage) + await processProfile(resp.profile, storage); - await processProfile(resp.profile, storage) - await processProfilePic(resp.profilePic, storage); - await processBreachWatchRecords(resp.breachWatchRecords, storage) + await processBreachWatchRecords(resp.breachWatchRecords, storage); - await processBreachWatchSecurityData(resp.breachWatchSecurityData, storage) + await processBreachWatchSecurityData(resp.breachWatchSecurityData, storage); - await processSecurityScoreData(resp.securityScoreData, storage) + await processSecurityScoreData(resp.securityScoreData, storage); - await storage.addDependencies(dependencies) + await storage.addDependencies(dependencies); - const removedDependencies = {} + const removedDependencies = {}; for await (let teamUid of resp.removedTeams) { - await storage.delete('team', webSafe64FromBytes(teamUid)) + await storage.delete('team', webSafe64FromBytes(teamUid)); } for await (const recUid of resp.removedRecords) { - await storage.delete('record', webSafe64FromBytes(recUid)) + await storage.delete('record', webSafe64FromBytes(recUid)); } for (const recordLink of resp.removedRecordLinks as Vault.RecordLink[]) { - const parentUid = webSafe64FromBytes(recordLink.parentRecordUid) - const childUid = webSafe64FromBytes(recordLink.childRecordUid) - addRemovedDependencies(removedDependencies, parentUid, childUid) + const parentUid = webSafe64FromBytes(recordLink.parentRecordUid); + const childUid = webSafe64FromBytes(recordLink.childRecordUid); + addRemovedDependencies(removedDependencies, parentUid, childUid); } for await (const folder of resp.removedUserFolders) { - const folderUid = webSafe64FromBytes(folder) - removedDependencies[folderUid] = '*' - await storage.delete('user_folder', folderUid) + const folderUid = webSafe64FromBytes(folder); + removedDependencies[folderUid] = '*'; + await storage.delete('user_folder', folderUid); } - processRemovedUserFolderRecords(resp.removedUserFolderRecords, removedDependencies) - await processRemovedSharedFolderFolders(resp.removedSharedFolderFolders, storage, removedDependencies) - await processRemovedSharedFolderTeams(resp.removedSharedFolderTeams, removedDependencies) - processRemovedSharedFolderUsers(resp.removedSharedFolderUsers, removedDependencies) - await processRemovedSharedFolderRecords(resp.removedSharedFolderRecords, storage, removedDependencies) - await processRemovedSharedFolderFolderRecords(resp.removedSharedFolderFolderRecords, storage, removedDependencies) - - const removedSFDependencies: DependencyMap = {} + processRemovedUserFolderRecords(resp.removedUserFolderRecords, removedDependencies); + await processRemovedSharedFolderFolders(resp.removedSharedFolderFolders, storage, removedDependencies); + await processRemovedSharedFolderTeams(resp.removedSharedFolderTeams, removedDependencies); + processRemovedSharedFolderUsers(resp.removedSharedFolderUsers, removedDependencies); + await processRemovedSharedFolderRecords(resp.removedSharedFolderRecords, storage, removedDependencies); + await processRemovedSharedFolderFolderRecords( + resp.removedSharedFolderFolderRecords, + storage, + removedDependencies + ); + + const removedSFDependencies: DependencyMap = {}; for await (const folder of resp.removedSharedFolders) { - const folderUid = webSafe64FromBytes(folder) - await getDependencies(folderUid, storage, removedSFDependencies) - if(!removedDependencies[folderUid] && !removedSFDependencies[folderUid]){ - removedDependencies[folderUid] = '*' + const folderUid = webSafe64FromBytes(folder); + await getDependencies(folderUid, storage, removedSFDependencies); + if (!removedDependencies[folderUid] && !removedSFDependencies[folderUid]) { + removedDependencies[folderUid] = '*'; } - await storage.delete('shared_folder', folderUid) + await storage.delete('shared_folder', folderUid); } for await (const removedSFDependency of Object.values(removedSFDependencies)) { switch (removedSFDependency.kind) { - case "record": - addRemovedDependencies(removedDependencies, removedSFDependency.parentUid, removedSFDependency.uid) + case 'record': + addRemovedDependencies( + removedDependencies, + removedSFDependency.parentUid, + removedSFDependency.uid + ); break; - case "user_folder": - removedDependencies[removedSFDependency.uid] = '*' - await storage.delete('user_folder', removedSFDependency.uid) + case 'user_folder': + removedDependencies[removedSFDependency.uid] = '*'; + await storage.delete('user_folder', removedSFDependency.uid); break; } } for await (const user of resp.removedUsers) { - await storage.delete('user', user) + await storage.delete('user', user); } - await storage.removeDependencies(removedDependencies) + await storage.removeDependencies(removedDependencies); - continuationToken = resp.continuationToken || undefined - const respContinuationToken = platform.bytesToBase64(continuationToken) - result.continuationToken = respContinuationToken + continuationToken = resp.continuationToken || undefined; + const respContinuationToken = platform.bytesToBase64(continuationToken); + result.continuationToken = respContinuationToken; await storage.put({ kind: 'continuationToken', token: respContinuationToken, - isSecurityDataFieldEmptyInFullSync: resp.cacheStatus === CacheStatus.CLEAR && resp.breachWatchSecurityData.length === 0, - }) + isSecurityDataFieldEmptyInFullSync: + resp.cacheStatus === CacheStatus.CLEAR && resp.breachWatchSecurityData.length === 0, + }); if (!resp.hasMore || (options.maxCalls && result.pageCount >= options.maxCalls)) { - break + break; } } } catch (e: any) { - console.error(e) - result.error = e.message + console.error(e); + result.error = e.message; } - await platform.closeCryptoWorker() - result.networkTime = formatTimeDiff(new Date(networkTime)) - result.totalTime = formatTimeDiff(new Date(Date.now() - result.started.getTime())) - return result -} \ No newline at end of file + await platform.closeCryptoWorker(); + result.networkTime = formatTimeDiff(new Date(networkTime)); + result.totalTime = formatTimeDiff(new Date(Date.now() - result.started.getTime())); + return result; +}; diff --git a/keeperapi/src/vendorModel.ts b/keeperapi/src/vendorModel.ts index 3aacfbf..0933f0f 100644 --- a/keeperapi/src/vendorModel.ts +++ b/keeperapi/src/vendorModel.ts @@ -33,4 +33,3 @@ export interface LicenseAdjustment { seats?: number; products: Product[]; } - diff --git a/keeperapi/tsconfig.json b/keeperapi/tsconfig.json index 199269c..a5c95cd 100644 --- a/keeperapi/tsconfig.json +++ b/keeperapi/tsconfig.json @@ -1,19 +1,13 @@ { - "compilerOptions": { - "module": "commonjs", - "noEmit": true, - "noImplicitAny": false, - "strict": true, - "target": "es2017", - "lib": [ - "dom", - "esnext" - ], - "skipLibCheck": true - }, - "include": [ - "src/**/*", - "test/**/*" - ], - "exclude": ["node_modules"] + "compilerOptions": { + "module": "commonjs", + "noEmit": true, + "noImplicitAny": false, + "strict": true, + "target": "es2017", + "lib": ["dom", "esnext"], + "skipLibCheck": true + }, + "include": ["src/**/*", "test/**/*"], + "exclude": ["node_modules"] } diff --git a/keeperapi/tsconfig.rollup.json b/keeperapi/tsconfig.rollup.json index 9aa00ec..a1821db 100644 --- a/keeperapi/tsconfig.rollup.json +++ b/keeperapi/tsconfig.rollup.json @@ -1,14 +1,12 @@ { - "extends": "./tsconfig.json", - "compilerOptions": { - "declaration": true, - "declarationDir": "./dist", - "module": "es6", - "noEmit": false, - "outDir": "./dist", - "sourceMap": true - }, - "include": [ - "src/**/*" - ] + "extends": "./tsconfig.json", + "compilerOptions": { + "declaration": true, + "declarationDir": "./dist", + "module": "es6", + "noEmit": false, + "outDir": "./dist", + "sourceMap": true + }, + "include": ["src/**/*"] } diff --git a/package-lock.json b/package-lock.json index 647b6a6..4bf8f6a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { - "name": "keeper-sdk-javascript", - "lockfileVersion": 2, - "requires": true, - "packages": {} + "name": "keeper-sdk-javascript", + "lockfileVersion": 2, + "requires": true, + "packages": {} } From 2df3f2cb756285e522a1f741665f54cafbff38e6 Mon Sep 17 00:00:00 2001 From: mwojick-keeper Date: Thu, 5 Mar 2026 15:06:05 -0800 Subject: [PATCH 3/3] ignore prettier commit --- .git-blame-ignore-revs | 1 + 1 file changed, 1 insertion(+) diff --git a/.git-blame-ignore-revs b/.git-blame-ignore-revs index e69de29..928da0d 100644 --- a/.git-blame-ignore-revs +++ b/.git-blame-ignore-revs @@ -0,0 +1 @@ +1738772fec746bca5575c5e7d8b0fbd3acad505a